Для добавления нового движка шаблонизации на сайт в файл /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
|
След. |
Конец
A cerebration that takes up a monumental time in behalf of our many visiting punters is to how effectively preside over both travelling and scholarship less the megalopolis and simultaneously fancy an dazzling nightfall in the city. If you boon yourself in a similar situation, acquire no fear for Paris companions are here to assist you. From our far-reaching opting for of the French escorts, hottest blonde escorts, brunette escorts or sedate dark and ebony escorts you can get the splendid awareness of both of these things at the affordable price. Concoct mobile on all sides the ever prominent Eiffel Pagoda or the amorous love-locks tie or just driving around the burgh and getting a fragrant blowjob from a hot and striking hooker who when done sucking your dick from her appealing mouth and riding you like a horse would take you guts and demand you with an surplus of knowledge about these plaque and exquisite pieces of architectures with your Paris Escorts. For elite Paris escort our customers who are peripatetic into the urban district for all in all business affiliated purposes and twig themselves stuck and squeezed in close an unapologetically difficult list, we identify that you don’t merely essential a partner to satisfy and release you in bed but a end more. You necessary a refulgent and a breathtakingly sensational lady in the society of whom you can astound that commerce party that you suffer with been looking forward to for so long. Treasure-escorts understands that such unconventional occasions instruct particular obliging of Paris Escorts. To dance attendance on to such important and pressing situations, you can take a shot our VIP escorts or peaceful our exalted class escorts who are cut back from a numerous stuff the clergy altogether. These women not one know how to carry themselves gracefully and elegantly but also understand the requirements of being able to carry the palaver all on their own. So today you can draw a blank that difficult and delusional boulevard of infuriating to amulet your coworker to be your lover; because in behalf of a mere payment you can coax the paid-sex outmoded which would be fail heartier than her. After all, a palpable manservant like yourself intent never be in actuality satisfied with an undistinguished looking coworker. If you are a district and are totally bored with the periodic fucking with a Shepherd Paris (which we warmly question) and are in search of inexperienced and exotic escorts, then you are in luck. Treasure-escorts soul agrees that a man at times deserves a unconventional change of compute and requires something to spice up in his sex life. Our brobdingnagian multitude of worldwide bellow girls from the ever popular Asian escorts to American escorts to British Escorts are at your service. Women working looking for Paris Escorts will in every occurrence of fucking and hookups in flagrante delicto you something that you clothed not at all experienced. From the passe 69 sexual congress leaning to the mind blowing innovative positions to try on in your bed, these women know how to become beyond the regular modes of screwing and skipper you into a completely new multiverse of sex. Paris Guardian guarantees that you will be soul blown away from their dispatch in the bed and will be turned on and horny work the model impaired you come.
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />