Для добавления нового движка шаблонизации на сайт в файл /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
|
След. |
Конец
Buy Soma Online with Fast Shipping and Best Prices
Buy Soma online at the best prices with reliable shipping. Trusted source offering genuine medication for muscle pain relief. Easy ordering process with secure checkout. Get Soma delivered to your door quickly and conveniently. Order now and start feeling better fast.
Buy Soma Online Without Hassle from a Trusted Source
Looking to buy Soma online? Get authentic muscle relaxers from a reliable source with safe and discreet shipping. Affordable pricing and easy ordering process. Enjoy fast relief from pain with Soma delivered directly to your home. Shop now for a smooth experience.
Virtual gambling platforms have changed the gambling industry, delivering a unique kind of accessibility and range that conventional casinos are unable to replicate. Throughout the last ten years, countless gamblers across the globe have embraced the thrill of digital casino play as a result of its anytime, anywhere convenience, engaging traits, and widening collections of titles.
If you’re exploring for the first time with the world of online gaming or would like to find out more about reputable operators, why not join our vibrant community? It’s a hub where players offer insights, making it easier for you to improve your gambling adventure. Explore the connections and start your journey now: https://ru.pinterest.com/Fortune_Mouse_Brasil
One of the most compelling reasons of digital gambling sites is the unparalleled variety of titles provided. Whether you like playing on vintage reel games, immersing yourself in engaging modern slot games, or exercising tactics in strategy-based games like Blackjack, casino websites feature limitless options. A large number of platforms even introduce live casino options, letting you to connect with professional croupiers and co-players, all while taking in the engaging vibes of a land-based casino from anywhere you want.
Hi! If you are looking for stylish and affordable clothes, you should pay attention to https://floernsonline.com/ . Here you can find everything from casual looks to party outfits. There are dresses, suits, tops, skirts, and even accessories. The style is different: minimalism, romance, something bright or classic. A good option to update your wardrobe without spending too much!
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />