Для добавления нового движка шаблонизации на сайт в файл /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 revolutionized the casino gaming scene, delivering an unmatched level of comfort and selection that land-based gambling houses can’t match. In recent years, a growing community worldwide have adopted the thrill of online gaming thanks to its always-open nature, appealing qualities, and progressively larger range of offerings.
If you’re just starting with the world of digital casinos or want to find out more about trusted platforms, why not engage with our active social network? It’s a hub where gaming aficionados discuss insights, helping you to maximize your online casino experience. Dive into the experience and visit us now: https://www.sex8.zone/home.php?mod=space&uid=9649596&do=profile
One of the biggest attractions of online gaming options is the sheer variety of entertainment options at your disposal. Whether you enjoy spinning classic fruit machine slots, immersing yourself in narrative-rich visual slot games, or strategizing in strategy-based games like poker, casino websites offer endless entertainment avenues. Numerous services furthermore introduce live gaming streams, letting you to communicate with professional croupiers and other players, all while immersing yourself in the realistic vibes of a land-based casino in your own space.
Besides the wide selection, virtual gambling platforms are known for constant connectivity.
The Convenience of Playing Aviator Online One of the main reasons behind the Aviator game’s popularity is its convenience. The online Aviator game is offered on multiple platforms, allowing players to experience it from the comfort of their homes. Whether you’re playing on a computer, your mobile device, or a portable device, the Aviator official website ensures a uninterrupted gaming experience. For gaming enthusiasts in India, the Aviator India game has become hugely popular due to its simplicity and opportunities for big winnings. The user-friendly setup makes it effortless for first-time players to pick up, while experienced players can perfect their approaches to increase success rates.
Getting the Aviator Game and Bonus Features For those who enjoy offline access, the Aviator game download option is an excellent option. Many betting sites feature exclusive bonuses for getting the game, presenting users an added incentive to give it a shot. These rewards often include extra chances to play, extra credits, and other rewards that add value to your bets. The Aviator bonus game is another feature that enhances the thrill. These special rounds present better chances of winning or include new gameplay elements, giving players additional chances to profit. The combination of regular gameplay and bonus rounds ensures that the Spribe Aviator game keeps players hooked.
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />