Для добавления нового движка шаблонизации на сайт в файл /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
Начало | Пред. |
1
2
3
|
След. |
Конец
(Голосов: 1, Рейтинг: 3.3) |
![]()
Lawyer - flego
|
Looking for the Top Auto Accident Attorney Near You
If you've been in a vehicle crash, having the right auto accident attorney can make all the difference. A experienced attorney can help you navigate claims with insurers, negotiate settlements, and even represent you in court if needed. Ways to Choose the Right - Check Their Experience – Choose a lawyer with a proven history in handling auto injury claims. - Look at Client Feedback – Online feedback can show you a lawyer’s success rate. - Initial Case Reviews – Many attorneys offer a no-cost first meeting, so take advantage of this to discuss your case. - Local Expertise – Searching for a local auto injury attorney ensures that they are well-versed in regional legal procedures. - Contingency-Based Payment – Many personal injury lawyers work on a no-win, no-fee structure, meaning there are no legal fees unless your claim is successful. Direct link: The Importance of Legal Representation Even if your case looks easy, adjusters often try to offer less than you deserve. A experienced accident lawyer can ensure you receive what you deserve, including treatment costs, lost wages, and pain and suffering. If you're looking for legal help, don’t wait—contact a local attorney today and protect your rights! |
![]()
Lawyer - flego
|
Looking for the Best Auto Accident Attorney Near You
If you are in a car accident, having the right auto accident attorney can make all the difference. A skilled lawyer can help you manage claims with insurers, negotiate settlements, and even represent you in court if necessary. Ways to Choose the Best - Check Their Experience – Choose a attorney with a proven history in handling auto injury claims. - Read Testimonials – Online feedback can help you understand a lawyer’s professionalism. - Initial Case Reviews – Many lawyers offer a free first meeting, so don’t miss out to discuss your case. - Knowledge of Local Laws – Searching for a nearby vehicle crash lawyer ensures that they are familiar with local traffic laws. - Pay Only If You Win – Many personal injury lawyers work on a no-win, no-fee structure, meaning they only get paid unless your claim is successful. Direct link: The Importance of Legal Representation Even if the crash appears simple, insurance companies often try to minimize payouts. A best car accident lawyer near me can ensure you receive what you deserve, including treatment costs, income loss, and pain and suffering. If you want professional guidance, don’t wait—find a car accident lawyer near me today and protect your rights! |
![]()
KxyuPally
|
dark web sites
|
![]()
MarkNORah
|
dark market
|
![]()
MarkNORah
|
darknet sites
|
![]()
MatthewImart
|
Лучшие зарубежные сериалы – это настоящее удовольствие для киномана
|
![]()
Victordurdy
|
п»їfarmacia online espaГ±a:
|
![]()
JasperAcuri
|
Farmacia Medic
|
![]()
Volodyaovemo
|
darknet drug links
|
![]()
MarkNONow
|
dark web drug marketplace
|
![]()
KxyuTyday
|
darkmarket 2025
|
![]()
Robertduh
|
farmacias online seguras
|
![]()
KxyuTyday
|
darknet markets
|
![]()
MatthewSpova
|
Где можно скачать сериалы в хорошем качестве?
|
![]()
Matthewutich
|
Русские сериалы становятся все популярнее за рубежом
|
![]()
Robertjof
|
farmacia online espaГ±a envГo internacional
|
![]()
Volodyasit
|
bitcoin dark web
|
![]()
Volodyasit
|
darkmarket url
|
![]()
FNDavidHaigo
|
darknet drug market
|
![]()
MatthewLic
|
Хороший сериал – это отличный способ провести вечер с пользой и удовольствием
|
![]()
MatthewImart
|
Где можно найти подборку лучших зарубежных сериалов всех времен?
|
![]()
TerenceNoxor
|
|
![]()
MarkBot
|
Как выбрать надёжного застройщика? Узнайте подробности
|
![]()
FNDavidHaigo
|
dark web market urls
|
![]()
MatthewLic
|
Какие русские сериалы стоит посмотреть в 2024 году?
|