Для добавления нового движка шаблонизации на сайт в файл /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
|
След. |
Конец
Игры на мобильные устройства в последнее время становятся всё более востребованными. Каждый день месяца появляются новые игры, которые восхищают пользователей со всего планеты. В этой статье мы расскажем о актуальных новостях из мира мобильных игр и свежих новостях игровой индустрии. Недавно компания Google анонсировала последнюю версию фирменной оболочки, которая принесла ряд обновлений для любителей игр. В частности, теперь доступны более высокие графические режимы, что улучшает геймплей ещё более плавным. Одной из самых интересных игр 2024 года является продолжение Call of Duty Mobile. Команда создали массу персонажей, а также улучшили визуальные эффекты и внедрили уникальные возможности. Интересным событием стало анонс проекта от компании NetEase. Название разработки пока не разглашается, но утечки говорят, что это будет уникальный стратегия с открытым миром. Для любителей мобильных стратегий есть прекрасная новость - скоро выйдет долгожданное расширение для Rise of Kingdoms. В новой версии команда включили новые юниты, а также внедрили уникальные механики. Мир мобильных игр постоянно развивается, и каждый день нас радуют свежие релизы. Следите за нашими обзорами, чтобы быть в курсе о самых интересных играх и событиях. Кроме того, не забудьте подписаться нашими новостями в https://ok.ru/group/70000006632560/topic/157472786758512, чтобы знать актуальные новости из мира мобильных развлечений. На сегодня это все известия из мира игровой индустрии. Увидимся скоро и приятной игры!
“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."
Hey everyone! If you’re a cinnamon lover like me, let me introduce you to the king of spices: Ceylon cinnamon. Known as “true cinnamon,” it’s not just a flavorful addition to recipes—it’s a powerhouse of health benefits and versatility.
What makes Ceylon cinnamon so special? For starters, it’s milder and sweeter than the regular Cassia cinnamon most of us are used to. Whether I’m brewing a cozy Ceylon cinnamon tea, sprinkling powder on my oatmeal, or simmering sticks in soups and desserts, its subtle flavor elevates every dish without overpowering it.
I love using organic Ceylon cinnamon because it’s pure and free of harmful chemicals. If you’re health-conscious, this is the way to go. Ceylon cinnamon has significantly lower levels of coumarin compared to Cassia, making it safer for everyday use. Plus, it’s packed with antioxidants, which help fight inflammation and support overall wellness.
One of my favorite uses? Turning sticks into tea! Just steep a few in hot water, add a splash of honey, and enjoy a soothing drink that feels like a warm hug. And don’t get me started on the powder—it’s perfect for baking, smoothies, or even spicing up your morning coffee.
If you’re curious about incorporating Ceylon cinnamon into your routine, blogs about its benefits, recipes, and creative uses are a must-read. They helped me discover its incredible versatility, from enhancing meals to improving health. Seriously, once you go true cinnamon, there’s no going back!
Do you use Ceylon cinnamon?
I’d love to hear your favorite recipes or tips.
Let’s swap ideas and celebrate this amazing spice!
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />