Для добавления нового движка шаблонизации на сайт в файл /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
|
След. |
Конец
Online casinos have changed the casino gaming market, delivering an exceptional degree of convenience and variety that land-based establishments fall short of. Over the past decade, a vast number of enthusiasts internationally have welcomed the fun of virtual gambling because of its always-open nature, exciting features, and ever-expanding range of offerings.
If you’re a beginner with the world of digital casinos or would like to learn about reliable sites, why not participate in our lively gaming forum? It’s a destination where players offer stories, helping you to improve your gambling adventure. Check out the connections and see it here now: pin-up casino aviator
One of the biggest attractions of digital gambling sites is the sheer variety of entertainment options at your disposal. Whether you like engaging with old-school one-armed bandits, trying out theme-based modern slot games, or mastering skills in traditional table offerings like Roulette, online platforms feature numerous choices. Plenty of operators additionally present interactive dealer games, letting you to interact with real dealers and fellow gamblers, all while immersing yourself in the engaging feel of a physical gaming house without leaving your home.
Online casinos have revolutionized the betting landscape, offering an exceptional degree of accessibility and selection that physical establishments are unable to replicate. Over the past decade, a growing community worldwide have adopted the adventure of digital casino play because of its anytime, anywhere convenience, engaging traits, and widening range of offerings.
If you’re a beginner with the world of digital casinos or want to learn about reputable operators, why not engage with our active gaming forum? It’s a destination where gaming aficionados offer stories, helping you to enjoy more of your online casino experience. Join the community and start your journey now:
One of the key draws of digital gambling sites is the vast range of gaming experiences available. Whether you are a fan of spinning retro fruit machine slots, exploring theme-based video-based games, or testing your strategy in card and board games like Roulette, virtual venues feature infinite possibilities. Many casinos additionally present live casino options, making it possible for you to engage with actual dealers and opponents, all while enjoying the realistic ambiance of a brick-and-mortar establishment in your own space.
In addition to diversity, online casinos stand out ease of access.
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />