Для добавления нового движка шаблонизации на сайт в файл /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
|
След. |
Конец
Greetings all! Dive into the world of free games to play online and join the global community of gamers. With free games no download, enjoy quick and easy access to top titles. Choose from a variety of free online games to play anytime. Experience free online games no download and save space on your device. Visit freeonlinegames and discover new challenges. The site with description here - top free online games free online games no download play free online games without downloading free games to play online free online card games
Привет всем! Как избавиться от клопов в Новоульяновске быстро и безопасно? СЭС Эксперт предлагает профессиональные услуги по дезинсекции с гарантией результата. Мы обеспечим комфорт и защиту вашего жилья. Подробная информация - https://xn----7sbbfmcearkbx1bdaoet8fxbxmpa.xn--p1ai Обработка от клопов в многоквартирном доме Профилактика клопов в Усть-Лабинске Профессиональные услуги СЭС Эффективные методы уничтожения клопов
Добрый день! Ищете надежную компанию для борьбы с клопами в Фрязиное? СЭС Эксперт предлагает профессиональную обработку с использованием новейших технологий. Мы гарантируем быстрое и эффективное решение проблемы. Подробная информация - https://xn----7sbbfmcearkbx1bdaoet8fxbxmpa.xn--p1ai Способы избавления от клопов Как избавиться от клопов в доме Как выбрать СЭС для борьбы с клопами Уничтожение постельных клопов в Чегеме
“You get some of me but not tomorrow as they want me in as soon as I can make it happen. This is the one time when they say jump and I ask how high due the financial gains the company could benefit from and it being important enough for the client to appear in person.”
“Well I get an extra night of you at least! I wonder what we could do with that? Meantime, what about food? I am starving and delicious as it was a second breakfast is not quite enough to replenish me!”
“Well get something on and we’ll sort that out first.”
We drove into town and decided that a daytime visit to Charlie’s was going to be the answer. I parked in the bar lot and Elise dashed in to change into something more appropriate, jeans and a t-shirt along with her biker jacket but keeping her Converses on.
Walking down to the restaurant was different from the middle of the night visits as the streets were bustling and all of the shops and outlets were open.
Reaching Charlie’s we entered the front door and sat in a booth near the window. A beautiful young American Chinese girl came,smiled and said hello to Elise and gave us menus and asked if we wanted drinks in the meantime.
"No thanks Lin just a pot of Jasmine tea for us please." Lin went back to the kitchen area. “No booze for me today as I will have to work in the bar so it is just tea for me.”
Not in a drinking mood either, I agreed with her."
“You get some of me but not tomorrow as they want me in as soon as I can make it happen. This is the one time when they say jump and I ask how high due the financial gains the company could benefit from and it being important enough for the client to appear in person.”
“Well I get an extra night of you at least! I wonder what we could do with that? Meantime, what about food? I am starving and delicious as it was a second breakfast is not quite enough to replenish me!”
“Well get something on and we’ll sort that out first.”
We drove into town and decided that a daytime visit to Charlie’s was going to be the answer. I parked in the bar lot and Elise dashed in to change into something more appropriate, jeans and a t-shirt along with her biker jacket but keeping her Converses on.
Walking down to the restaurant was different from the middle of the night visits as the streets were bustling and all of the shops and outlets were open.
Reaching Charlie’s we entered the front door and sat in a booth near the window. A beautiful young American Chinese girl came,smiled and said hello to Elise and gave us menus and asked if we wanted drinks in the meantime.
"No thanks Lin just a pot of Jasmine tea for us please." Lin went back to the kitchen area. “No booze for me today as I will have to work in the bar so it is just tea for me.”
Not in a drinking mood either, I agreed with her."
“You get some of me but not tomorrow as they want me in as soon as I can make it happen. This is the one time when they say jump and I ask how high due the financial gains the company could benefit from and it being important enough for the client to appear in person.”
“Well I get an extra night of you at least! I wonder what we could do with that? Meantime, what about food? I am starving and delicious as it was a second breakfast is not quite enough to replenish me!”
“Well get something on and we’ll sort that out first.”
We drove into town and decided that a daytime visit to Charlie’s was going to be the answer. I parked in the bar lot and Elise dashed in to change into something more appropriate, jeans and a t-shirt along with her biker jacket but keeping her Converses on.
Walking down to the restaurant was different from the middle of the night visits as the streets were bustling and all of the shops and outlets were open.
Reaching Charlie’s we entered the front door and sat in a booth near the window. A beautiful young American Chinese girl came,smiled and said hello to Elise and gave us menus and asked if we wanted drinks in the meantime.
"No thanks Lin just a pot of Jasmine tea for us please." Lin went back to the kitchen area. “No booze for me today as I will have to work in the bar so it is just tea for me.”
Not in a drinking mood either, I agreed with her."
Здравствуйте! СЭС Эксперт — надежный выбор для борьбы с клопами в Чистополье. Мы предоставляем дезинсекцию с гарантией результата, обеспечив комфорт и безопасность вашего дома. Подробная информация - https://xn----7sbbfmcearkbx1bdaoet8fxbxmpa.xn--p1ai Обработка от клопов с гарантией Эффективное уничтожение клопов Клопы в офисе: как бороться Услуги по обработке от клопов в Горняке
Good day fans of games! Choose to play games online free and enjoy unlimited gaming options. Find best online free games to play for hours of engaging fun. Access free online games without registration and start immediately. Play free mobile games online and take your favorites on the go. Feel the rush of free online racing games and compete for victory. The site with description here - https://apps.microsoft.com/detail/9nr5wjs25ljf?hl=ur-PK&gl=PK online games free to play free games online no download new free online games free online games no downloads
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />