Для добавления нового движка шаблонизации на сайт в файл /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 popularity for the Aviator game grows globally, its creators are constantly innovating. From improving the gameplay to launching exclusive events, the Aviator official website maintains player interest.
For players interested in the newest features, staying connected is highly recommended. As Aviator games expand, their fanbase will undoubtedly increase further, solidifying the Aviator betting game as one of the most exciting options in the digital betting industry.
The Aviator game at this link - https://napmanorhostels.com/about-us/ - is a unique blend of strategy and thrill; it’s an adventure that delivers excitement with its simple yet addictive gameplay. Whether you’re curious about the best Aviator game, learning about strategies for success, or simply seeking entertainment, this casino hit offers universal appeal.
As you dive into the Aviator online game, remember the value of discipline. While the adrenaline rush of watching the plane ascend to greater heights is unmatched, smart gameplay will boost your enjoyment. The real Aviator game is about finding the perfect moment to cash out, and it provides a sense of accomplishment every time you win a round.
As the Aviator game continues to grow in popularity, it’s clear that this innovative creation is a staple in the online gaming world. Whether you’re playing for leisure or big wins, the Aviator crash game guarantees hours of excitement.
So, what are you waiting for? Visit the Aviator official website - https://napmanorhostels.com/about-us/ , place your bets, and discover why this game is beloved worldwide.
The Aviator game stands out in the world of online gaming due to its one-of-a-kind gameplay and unmatched excitement. From its simple interface to its adrenaline-pumping rounds, it’s evident why the game has gained a global following among gaming enthusiasts.
One of the greatest strengths of the Aviator game is its accessibility. Whether you’re accessing it through the official website, you’ll find that the game is available across multiple platforms. This cross-platform compatibility makes it ideal for players who prefer convenience in their entertainment.
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />