Для добавления нового движка шаблонизации на сайт в файл /bitrix/php_interface/init.php необходимо добавить следующее:
1. Глобальную переменную $arCustomTemplateEngines, которая содержит ассоциативный массив, каждый элемент которого имеет вид:
"код_шаблонизатора" => array(
"templateExt" => array("расширение1"[, "расширение2"...]),
"function" => "имя_функции_подключения_движка"
)
где:
"код_шаблонизатора" - произвольное уникальное в рамках сайта слово;
"расширениеN" - расширение файла, который должен обрабатываться этим движком шаблонизации;
"имя_функции_подключения_движка" - имя функции, которая будет вызываться, если шаблон компонента имеет указанное расширение.
2. Функцию подключения движков:
function имя_функции_подключения_движка($templateFile, $arResult, $arParams, $arLangMessages, $templateFolder, $parentTemplateFolder, $template),
где:
$templateFile – путь к файлу шаблона относительно корня сайта,
$arResult – массив результатов работы компонента,
$arParams – массив входных параметров компонента,
$arLangMessages – массив языковых сообщений (переводов) шаблона,
$templateFolder – путь к папке шаблона относительно корня сайта (если шаблон лежит не в
папке, то эта переменная пуста),
$parentTemplateFolder - путь относительно корня сайта к папке шаблона комплексного
компонента, в составе которого подключается данный компонент (если компонент
подключается самостоятельно, то эта переменная пуста),
$template – объект шаблона.
Рассмотрим подключение движков на конкретных примерах.
Страница
1 - 1 из 3
Начало | Пред. |
123
|
След. |
Конец
As the fame for the Aviator game grows globally, its designers are introducing new features. From improving the gameplay to creating limited-time promotions, the Aviator official website ensures ongoing excitement.
For players interested in the latest updates, following updates is highly recommended. As Aviator games expand, their player numbers will undoubtedly continue to grow, solidifying the Aviator betting game as a leader in the online casino industry.
The aviator game is not just a game of chance; it’s a dynamic experience that captures attention with its innovative mechanics. Whether you’re curious about the best Aviator game, searching for tips on how to play and win, or wanting a new gaming challenge, this digital sensation has something for everyone.
As you immerse yourself in the Aviator online game, don’t forget the importance of strategy. While the excitement of watching the plane soar higher is unmatched, careful planning will increase your chances of success. The real Aviator game is about finding the perfect moment to cash out, and it provides a sense of accomplishment every time you cash out at the right time.
As the Aviator game captures more players worldwide, it’s clear that this standout title is a lasting phenomenon. Whether you’re playing for leisure or serious rewards, the Aviator crash game promises moments of thrill.
So, what are you waiting for? Visit the Aviator official website - https://aviatorcl.netlify.app/, start your adventure, and join the community of Aviator winners today.
The Aviator game sets itself apart in the world of online gaming due to its unique mechanics and unmatched excitement. From its straightforward setup to its high-stakes moments, it’s clear why the game has gained a global following among serious bettors.
One of the key draws of the Aviator game is its wide availability. Whether you’re downloading it for offline play, you’ll find that the game is perfectly suited for mobile and desktop users. This cross-platform compatibility makes it suitable for players who enjoy gaming on the go.
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />