Для добавления нового движка шаблонизации на сайт в файл /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
|
След. |
Конец
Digital casinos have modernized the casino gaming market, offering an unmatched level of accessibility and range that conventional establishments are unable to replicate. In recent years, a growing community internationally have welcomed the fun of virtual casinos in light of its availability, exciting features, and widening selection of games.
If you’re just starting with the world of digital casinos or are looking to delve deeper into reputable operators, why not become part of our vibrant gaming forum? It’s a platform where enthusiasts share experiences, guiding you to enhance your virtual play. Check out the conversation and start your journey now: https://t.me/india_plinko
One of the main appeals of online casinos is the sheer range of choices ready to play. Whether you love rolling vintage one-armed bandits, diving into theme-based video slots, or playing smart in table games like Baccarat, casino websites provide limitless entertainment avenues. Plenty of operators even offer real-time gaming experiences, enabling you to communicate with actual dealers and fellow gamblers, all while soaking in the immersive ambiance of a traditional gambling venue from the comfort of your home.
Reasons Why Online Casinos Are an International Sensation
Internet-based gambling hubs have reshaped the betting landscape, offering a level of convenience and diversity that land-based establishments don’t provide. Recently, countless gamblers across the globe have welcomed the adventure of digital casino play as a result of its accessibility, exciting features, and widening catalogs of games.
If you’re unfamiliar with the world of internet-based gaming or seek to learn about safe services, why not engage with our dynamic social network? It’s a place where gamblers offer reviews, making it easier for you to get the most out of your casino activities. Discover the connections and check it out now: 1win site
One of the key draws of internet-based platforms is the astounding diversity of choices at your disposal. Whether you like playing on traditional slots, playing through engaging modern slot games, or strategizing in strategy-based games like Blackjack, virtual venues deliver numerous entertainment avenues. Several sites furthermore feature live gaming streams, making it possible for you to communicate with live hosts and fellow gamblers, all while immersing yourself in the engaging atmosphere of a traditional gambling venue from anywhere you want.
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />