Для добавления нового движка шаблонизации на сайт в файл /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
|
След. |
Конец
What Makes Online Casinos Are Highly Preferred Worldwide
Digital casinos have revolutionized the gambling market, delivering an exceptional degree of accessibility and variety that traditional establishments are unable to replicate. Throughout the last ten years, millions of players around the world have adopted the adventure of virtual gambling thanks to its accessibility, engaging traits, and progressively larger range of offerings.
If you’re unfamiliar with the world of internet-based gaming or are looking to discover reputable operators, why not sign up for our growing social network? It’s a place where gamblers discuss tips, enabling you to improve your virtual play. Explore the discussions and learn more now: aviator game
One of the key draws of digital gambling sites is the unparalleled selection of entertainment options provided. Whether you enjoy rolling traditional reel games, playing through theme-based thematic slots, or mastering skills in traditional table offerings like Baccarat, digital casinos feature limitless entertainment avenues. Many casinos furthermore offer live casino options, giving you the chance you to communicate with professional croupiers and co-players, all while experiencing the authentic vibes of a real casino from anywhere you want.
Dragon Tiger is considered to have begun in this region and has since extended to gaming venues worldwide, particularly in the Asian market. The game's straightforwardness and swift nature have made it a popular choice among both seasoned gamblers and newcomers. Unlike other card games that require extensive strategies and skills, Dragon Tiger relies largely on luck, making it an attractive choice for those seeking a fast gaming experience. At its basis, Dragon Tiger is comparable to traditional baccarat but simplifies the wagering process. The game is played with a standard deck of 52 cards, and the goal is to anticipate which of the two hands—Dragon or Tiger—will have a more valuable value. Players put their bets before the dealer displays the cards. The hand with the superior card is victorious, and ties are also likely, adding an extra layer of fun.
Players can place several types of wagers, including betting on the Dragon, the Tiger, or a tie. The profits varies depending on the type of bet placed, with ties typically delivering the highest payout due to their rarity. This simple betting structure makes Dragon Tiger easy to play to a wide audience, further contributing to its popularity in online casinos.
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />