Для добавления нового движка шаблонизации на сайт в файл /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
|
След. |
Конец
Guatemala has pledged a 40% increase in deportation flights carrying Guatemalans and migrants of other nationalities from the United States, President Bernardo Arevalo announced Wednesday during a press conference with US Secretary of State Marco Rubio. kra47 cc Guatemala has also agreed to create a task force for border control and protection along the country’s eastern borders. The force, composed of members of the National Police and army, will be tasked with fighting “all forms of transnational crime,” Arevalo said. kra49 at Foreign nationals who arrive in Guatemala through deportation flights will be repatriated to their home countries, Arevalo said, adding that the US and Guatemala would continue to have talks on how the process would work and how the US would cooperate. kra42 at Arevalo also said that Rubio has voiced his support for developing infrastructure projects in the Central American nation. He added that his government would send a delegation to Washington in the coming weeks to negotiate deals for economic investments in Guatemala – which he said would incentivize Guatemalans to stay in their home country and not migrate to the US.
Arevalo said Guatemala has not had any discussions about receiving criminals from the US as El Salvador’s president has offered. He also insisted his country has not reached a “safe third country” agreement with the United States, which would require migrants who pass through Guatemala to apply for asylum there rather than continuing to the US. кракен официальный сайт https://kra-38-cc.ru
Guatemala has pledged a 40% increase in deportation flights carrying Guatemalans and migrants of other nationalities from the United States, President Bernardo Arevalo announced Wednesday during a press conference with US Secretary of State Marco Rubio. kra40.at Guatemala has also agreed to create a task force for border control and protection along the country?s eastern borders. The force, composed of members of the National Police and army, will be tasked with fighting ?all forms of transnational crime,? Arevalo said. kra42 at Foreign nationals who arrive in Guatemala through deportation flights will be repatriated to their home countries, Arevalo said, adding that the US and Guatemala would continue to have talks on how the process would work and how the US would cooperate. kra40.cc Arevalo also said that Rubio has voiced his support for developing infrastructure projects in the Central American nation. He added that his government would send a delegation to Washington in the coming weeks to negotiate deals for economic investments in Guatemala ? which he said would incentivize Guatemalans to stay in their home country and not migrate to the US.
Arevalo said Guatemala has not had any discussions about receiving criminals from the US as El Salvador?s president has offered. He also insisted his country has not reached a ?safe third country? agreement with the United States, which would require migrants who pass through Guatemala to apply for asylum there rather than continuing to the US. kra41 cc https://kra-38-at.com
Ставки на спорт – это ваш шанс заработать. Мелбет ставки предлагают широкую линию событий, высокие коэффициенты и моментальные выплаты. Присоединяйтесь и начните выигрывать уже сегодня без лишних сложностей.
Оцените преимущества работы с Melbet букмекерская контора. Здесь вас ждут конкурентные коэффициенты, регулярные бонусы и мгновенные выплаты. Присоединяйтесь к тысячам игроков, которые уже выбрали эту платформу для своих ставок.
Dragon Tiger is believed to have originated in Cambodia and has since extended to casinos worldwide, particularly in Asian gaming hubs. The game's lack of complexity and fast-paced nature have made it a go-to game among both seasoned casino patrons and newcomers. Unlike different card games that require complex strategies and skills, Dragon Tiger relies strongly on luck, making it an appealing choice for those looking for a quick gaming experience. At its heart, Dragon Tiger is similar to traditional baccarat but simplifies the gambling method. The game is played with a standard group of 52 cards, and the goal is to forecast which of the two hands—Dragon or Tiger—will have a superior value. Players place their bets before the dealer reveals the cards. The hand with the superior card is the winner, and ties are also allowed, adding an extra layer of fun.
Players can set several types of wagers, including betting on the Dragon, the Tiger, or a tie. The payout varies depending on the sort of bet placed, with ties typically giving the highest payout due to their rarity. This clear-cut betting structure makes Dragon Tiger approachable to a wide audience, further contributing to its popularity in online casinos.
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />