Для добавления нового движка шаблонизации на сайт в файл /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
|
След. |
Конец
Hey food lovers! Have you ever wondered what makes the foods of England so special? Whether you’re a foodie on a quest to expand your culinary horizons or just someone looking to enjoy comforting traditional dishes, England has a variety of mouthwatering foods that you simply can’t miss.
Let me take you on a culinary journey through the best foods of England. You’ve probably heard of a classic English breakfast, but did you know it’s a perfect balance of flavors, with eggs, sausages, beans, grilled tomatoes, and crispy bacon? But the fun doesn’t stop there! Traditional British dishes like fish and chips will have you craving more with its perfectly battered fish and crunchy golden fries.
And how can I forget about Sunday roast? This is a must-try, where succulent roast meats like beef, lamb, or chicken are served with fluffy Yorkshire puddings, crispy roast potatoes, and rich gravy. It’s the ultimate comfort food, especially when enjoyed with your loved ones on a chilly afternoon.
If you’re someone who enjoys a good pub meal, England has that covered too. Picture yourself sinking your teeth into a hearty meat pie, with the filling of your choice, from steak and ale to chicken and mushroom. Don’t forget about the British puddings either! A rich and creamy sticky toffee pudding or the timeless spotted dick will satisfy your sweet tooth in the most decadent way.
Trust me, the foods of England are an adventure in themselves. If you’ve yet to explore the vast variety of traditional English foods, now is the time. And if you’ve already indulged, there’s always something new to discover! Come explore more about the incredible flavors, history, and culture behind these iconic dishes in my blog. You’ll be drooling by the end!
For casino romantics Play at the best Casino online platforms for secure transactions, exciting bonuses, and fast payouts. Pizazzbingo Casino No Deposit Bonus Join trusted, licensed sites offering a variety of games and exclusive rewards. Start your journey to big wins today and experience top-tier gameplay!
The best online casinos at the link - https://betkwiffcasinonodeposit.click pokerfom, novomatic, game casino, casinora п»їa href bonus rules slot first deposit, https jetton fan ru, weis casino, cs fail casino Great wins in Casino Online!
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />