Для добавления нового движка шаблонизации на сайт в файл /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 revolutionized the gaming industry, delivering a level of convenience and selection that traditional gambling houses don’t provide. In recent years, a growing community globally have chosen the excitement of online gaming in light of its anytime, anywhere convenience, exciting features, and continuously increasing game libraries.
One of the main appeals of digital gambling sites is the astounding variety of games available. Whether you love rolling vintage one-armed bandits, diving into plot-filled modern slot games, or strategizing in traditional table offerings like poker, internet-based gambling sites deliver infinite possibilities. Several sites moreover introduce interactive dealer games, giving you the chance you to communicate with actual dealers and other players, all while immersing yourself in the lifelike atmosphere of a real casino from the comfort of your home.
Adding to the extensive catalog, online casinos excel constant connectivity.
The Reasons Behind Why Online Casinos Remain So Popular
Virtual gambling platforms have reshaped the betting industry, delivering an unmatched level of convenience and variety that land-based casinos fall short of. Over time, a growing community across the globe have turned to the pleasure of digital casino play because of its anytime, anywhere convenience, engaging traits, and continuously increasing game libraries.
If you’re a beginner with the world of online gaming or are looking to delve deeper into trusted platforms, why not become part of our vibrant gaming forum? It’s a platform where players offer tips, guiding you to enjoy more of your virtual play. Check out the experience and visit us now: aviator game download
One of the main appeals of digital gambling sites is the incredible range of games on offer. Whether you love playing on traditional slots, trying out engaging video-based games, or testing your strategy in card and board games like Roulette, online platforms boast limitless options. Many casinos additionally present live dealer games, allowing you to interact with live hosts and opponents, all while taking in the realistic ambiance of a brick-and-mortar establishment without leaving your home.
What Makes Online Casinos Remain Highly Preferred Worldwide
Online casinos have revolutionized the betting landscape, offering an unmatched level of convenience and variety that land-based establishments struggle to rival. Throughout the last ten years, a growing community worldwide have adopted the adventure of online gaming in light of its always-open nature, thrilling aspects, and constantly growing selection of games.
If you’re just starting with the world of online gaming or want to delve deeper into reliable sites, why not engage with our vibrant interactive platform? It’s a platform where gamblers share stories, making it easier for you to get the most out of your virtual play. Discover the discussions and check it out now: https://pinterest.com/Mines_Juego_Venezuela
One of the main appeals of internet-based platforms is the vast array of entertainment options provided. Whether you like rolling vintage one-armed bandits, exploring narrative-rich thematic slots, or mastering skills in card and board games like Baccarat, online platforms deliver countless entertainment avenues. Numerous services furthermore introduce live dealer games, giving you the chance you to participate with human game hosts and other players, all while immersing yourself in the immersive atmosphere of a real casino in your own space.
Termoplitka большой выбор материалов предоставляет. Наши термопанели - это простой способ преобразить фасад вашего дома. Цена их вполне доступная. Мы заинтересованы в долгосрочном сотрудничестве. Ищете фасадные термопанели купить для наружной отделки дома? Termo-plitka.ru/catalog/termopaneli-fasadnye/termopaneli-fasadnye-bestpoint-ppu - здесь можете купить термопанели для отделки фасада дома. Репутацией своей мы дорожим. Предлагаем продукцию, которая соответствует высоким стандартам. Для обсуждения деталей доставки и оплаты, обратитесь к нам по телефону, указанному на сайте.
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />