Directory template tag

Here are all the template tags, used in the design templates in DIAFAN.CMS. Tags are collected alphabetically grouped by modules.

Attention!

We encourage developers to add this page to your "Favorites".

General tags

  • custom – выводит путь до файла с учетом кастомизации;
  • language – выводит номер текущей языковой версии сайта;
  • module – выводит подключенный к странице модуль;
  • path – выводит адрес сайта;
  • path_url – выводит адрес сайта, с учетом языковой версии сайта;
  • show_body – выводит основной контент страницы: заголовка (если не запрещен его вывод в настройке странице «Не показывать заголовок»), текста страницы и прикрепленного модуля. Заменяет три тега: show_h1, show_text, show_module;
  • show_breadcrumb – выводит навигацию по сайту «Хлебные крошки»;
  • show_css – подключает CSS-файлы. При включенном режиме разработки файлы будут объеденены и сжаты, что приведет к более быстрой загрузке файлов. Если существуют какие-то проблемы при включенном сжатии, подключите CSS-файлы стандартным HTML-тегом <link rel="stylesheet" type="text/css"...>;
  • show_description – выводит мета-тег description страницы;
  • show_h1 – выводит заголовок страницы, если не запрещен его вывод в настройке странице «Не показывать заголовок»;
  • show_head – формирует часть HTML-шапки сайта. Включает в себя в том числе теги: show_title, show_description, show_keywords;
  • show_href – выводит ссылку на страницу сайта. Если текущая страница соответствует адресу, на которую ведет ссылка, то ссылка становится неактивной. Шаблонная функция аналогична стандартной HTML-конструкции <a href=""></a>, но ликвидирует ссылки, которые никуда не ведут;
  • show_include – подключает файл-блок шаблона;
  • show_js – подключает JS-файлы. Тег нужно добавить перед </body>;
  • show_keywords – выводит ключевые слова страницы. Используется для мета-тега keywords;
  • show_module – выводит контент модуля;
  • show_protect – выводит JS код запрещающий копирование контента на сайте;
  • show_social_links – выводит ссылки на социальные сети;
  • show_text – выводит текст страницы;
  • show_title – выводит заголовок. Используется между тегами <title></title> в шапке сайта;
  • show_year – displays during operation of the site in years;
  • title – название сайта, заданное в параметрах сайта, на текущем языке.

Ads

  • show_block – shows latest ads on all pages, except the ads page, when the list of the same ads as in the function is shown;
  • show_block_rel – shows similar ads on the page of the ad. By default the connection between ads are one-sided, this can be changed by checking the option "Link back to parent in the block of similar ads" in module settings;
  • show_form – выводит форму добавления сообщения. Для правильной работы тега должна существовать страница, к которой прикреплен модуль Объявления;
  • show_search – выводит форму поиска объявлений. Если для категорий прикреплены дополнительные характеристики, то поиск по ним производится только на странице категории.

Articles

  • show_block – shows latest articles on all pages, except the articles page, when the list of the same articles as in the function is shown;
  • show_block_rel – shows similar articles on the page of the article. By default the connection between articles are one-sided, this can be changed by checking the option "Link back to parent in the block of similar articles" in module settings.

Banners

Comments

Feedback

  • show_form – shows the form of adding message. For proper operation of the tag there should be a page, which is attached to the module Feedback.

Files

  • show_block – выводит несколько файлов из файлового архива;
  • show_block_rel – shows similar files on the page of the file. By default the connection between files are one-sided, this can be changed by checking the option "Link back to parent in the block of similar files" in module settings.

Forum

Languages

  • show_block – выводит ссылки на альтернативные языковые версии сайта.

Mailing

  • show_form – выводит форму подписки на рассылки.

Menu

Mistakes

  • show_block – подключает модуль «Ошибка на сайте».

News

  • show_block – shows latest news on all pages, except the news page, when the list of the same news as in the function is shown;
  • show_block_rel – shows similar news on the page of the piece of news. By default the connection between news are one-sided, this can be changed by checking the option "Link back to parent in the block of similar news" in module settings;
  • show_calendar – shows the calendar with links to the news for a certain period. Periods are shown as links to months, only if there are news correspoding to these periods.

On-line consultant

Online shop

  • show_add_coupon – displays the activation form of the coupon for a discount, if the non-activated coupon is in the system, the user is authorized and has not activated another coupon;
  • show_block – выводит информацию о заказанных товарах, т. н. корзину;
  • show_block – выводит несколько товаров из каталога;
  • show_block – displays information about products in the wishlist;
  • show_block_order_rel – товары, которые обычно покупают с текущим товаром;
  • show_block_rel – shows similar products on the page of the product. By default the connection between products are one-sided, this can be changed by checking the option "Link back to parent in the block of similar products" in module settings;
  • show_brand – выводит несколько производителей;
  • show_category – выводит несколько категорий;
  • show_last_order – выводит информацию о последнем совершенном заказе;
  • show_search – выводит форму поиска товаров. Если для категорий прикреплены дополнительные характеристики, то поиск по ним производится только на странице категории. Поиск по обязательным полям подключается в настройках модуля (опции «Искать по цене», «Искать по артикулу», «Искать товары по акции», «Искать по новинкам», «Искать по хитам»). Если в форму поиска выведены характеристики с типом «выпадающий список» и «список с выбором нескольких значений», то значения характеристик, которые не найдут ни один товар, в форме поиска не выведутся.

Photogallery

  • show_block – выводит несколько фотографий;
  • show_block_rel – shows similar photos on the page of the photo. By default the connection between photos are one-sided, this can be changed by checking the option "Link back to parent in the block of similar photos" in module settings.

Polls

Question-Answer

  • show_block – shows latest questionson all pages, except the questions page, when the list of the same questions as in the function is shown;
  • show_block_rel – shows similar questions on the page of the question. By default the connection between questions are one-sided, this can be changed by checking the option "Link back to parent in the block of similar questions" in module settings;
  • show_form – выводит форму добавления вопроса. Для правильной работы тега должна существовать страница, к которой прикреплен модуль Вопрос-Ответ.

Reviews

  • show – выводит отзывы и форму добавления отзывов для текущей страницы;
  • show_block – shows latest reviews.

Search

  • show_search – выводит форму поиска по сайту.

Site pages

  • show_block – выводит содержимое блока на сайте, номер которой передан в виде атрибута id;
  • show_comments – выводит комментарии, прикрепленные к странице сайта, если в конфигурации модуля «Страницы сайты» подключены комментарии;
  • show_dynamic – выводит содержимое динамического блока, номер которой передан в виде атрибута id;
  • show_images – выводит изображения, прикрепленные к странице сайта, если в конфигурации модуля «Страницы сайта» включен параметры «Использовать изображения»;
  • show_links – выводит ссылки на страницы нижнего уровня, принадлежащие текущей странице;
  • show_previous_next – shown links to the previous and following pages;
  • show_tags – выводит теги (слова-якори), прикрепленные к странице сайта, если в конфигурации модуля «Страницы сайты» подключены теги.

Tags

  • show_block – выводит список тегов.

Users

  • show_block – выводит статистику пользователей на сайте;
  • show_login – выводит форму авторизации или приветствие и ссылки на редактирование данных и выход, если пользователь авторизован.


A

show_add_coupon module="shop"

Displays the activation form of the coupon for a discount, if the non-activated coupon is in the system, the user is authorized and has not activated another coupon.

Атрибуты:

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/shop/views/shop.view.show_add_coupon_template.php; by default - file modules/shop/views/shop.view.show_add_coupon.php).

Example:

<insert name="show_add_coupon" module="shop">

выведет форму активирования купона

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].



B

show_block module="ab"

Shows latest ads on all pages, except the ads page, when the list of the same ads as in the function is shown.

Атрибуты:

count – number of displayed ads (by default 3);

site_id – pages to which the module is attached. Page identifiers are enumerated comma-separated. You can indicate negative value, then the ads from the indicated section will be excluded. By default all pages are selected;

cat_id – categories of ads, if "Use categories" is checked in the module settings. Category identifiers are enumerated comma-separated. You can indicate negative value, then the ads from the indicated category will be excluded. You can indicate current value, then the ads from the current (opened) category or all categories, if neither of them is opened, will be shown. By default the category is not taken into account, all ads are shown.;

sort – sorting ads: date – by date (by default), rand – randomly;

images – number of images attached to the piece of ads;

images_variation – image size tag, set in module settings;

param – значения дополнительных характеристик;

Example:

Объявления обладают следующими характеристиками:

  • тип: квартира, дом, участок – выпадающий список, номер 3;
  • площадь – число, номер 10;
  • новостройка – галочка, номер 16.

Значит значение атрибута param="3=5&3=6&10>50&16=1" расшифровывается как объявления о квартире и доме (5 и 6 номер), площадью более 50 кв.м, в новостройке.

<insert name="show_block" module="ab" param="param="3=5&3=6&10>50&16=1">

Номер (или идентификатор) характеристики можно посмотреть, если подвести курсор к названию характеристики в списке характеристик в административной части. Появиться всплывающая подсказка «Редактировать (номер характеристики)».

Номер (или идентификатор) значения характеристики можно посмотреть, если при редактировании характеристики подвести курсора на нужное значение. Появиться всплывающия подсказка «ID: номер».

only_module – show the block only on the page to which "Ads" module is attached: true – show the block only on the module page, by default the block will be shown on all pages;

tag – tag attached to the ads;

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/ab/views/ab.view.show_block_template.php; default - file modules/ab/views/ab.view.show_block.php).

Example:

<insert name="show_block" module="ab">

выведет 3 последние объявления сайта


<insert name="show_block" module="ab" count="5">

выведет 5 последних объявлений сайта


<insert name="show_block" module="ab" count="1" site_id="12">

выведет последнее объявление, прикрепленнок к странице 12

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_block module="bs"

Shows banners.

Атрибуты:

count – number of displayed banners (by default 1). Значение all выведет все баннеры;

id – идентификатор баннера, если задан, атрибут count игнорируется;

sort – sorting banners: by default as on the module page, date – by date, rand – randomly;

cat_id – categories of banners, if "Use categories" is checked in the module settings.;

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/bs/views/bs.view.show_block_template.php; default - file modules/bs/views/bs.view.show_block.php).

Example:

<insert name="show_block" module="bs" sort="rand">

выведет 1 случайный баннер

show_block module="cart"

Выводит информацию о заказанных товарах, т. н. корзину.

Атрибуты:

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/cart/views/cart.view.show_block_template.php; default - file modules/cart/views/cart.view.show_block.php).

Example:

<insert name="show_block" module="cart">

выведет информацию о корзине

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_block module="clauses"

Shows latest articles on all pages, except the articles page, when the list of the same articles as in the function is shown.

Атрибуты:

count – number of displayed articles (by default 3);

site_id – pages to which the module is attached. Page identifiers are enumerated comma-separated. You can indicate negative value, then the articles from the indicated section will be excluded. By default all pages are selected;

cat_id – categories of articles, if "Use categories" is checked in the module settings. Category identifiers are enumerated comma-separated. You can indicate negative value, then the articles from the indicated category will be excluded. You can indicate current value, then the articles from the current (opened) category or all categories, if neither of them is opened, will be shown. By default the category is not taken into account, all articles are shown.;

sort – sorting articles: by default as on the module page, date – by date, rand – randomly, keywords – articles with similar titles for the current page ("Site search" module must be enabled and articles indexed);

images – number of images attached to the article;

images_variation – image size tag, set in module settings;

only_module – show the block only on the page to which "Articles" module is attached: true – show the block only on the module page, by default the block will be shown on all pages;

tag – tag attached to the articles;

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/clauses/views/clauses.view.show_block_template.php; template by default modules/clauses/views/clauses.view.show_block.php).

Example:

<insert name="show_block" module="clauses">

выведет 3 статьи сайта


<insert name="show_block" module="clauses" count="5" sort="date">

выведет 5 последних статей сайта


<insert name="show_block" module="clauses" count="1" cat_id="35">

выведет одну статью сайта, из раздела статей с id=35

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_block module="comments"

Shows latest comments.

Атрибуты:

count – number of displayed comments (by default 3);

modules – модули (разделенные запятой), к которым подключены комментарии;

element_id – идентификаторы элементов модулей (разделенные запятой), к которым подключены комментарии;

element_type – type of elements (element – element (by default), cat – category);

sort – sorting comments: date – by date (by default), rand – randomly;

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/comments/views/comments.view.show_block_template.php; default - file modules/comments/views/comments.view.show_block.php).

Example:

<insert name="show_block" module="comments" modules="shop" count="2">

выведет 2 последних комментария к товарам

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_block module="consultant"

Connects online chat.

Атрибуты:

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/consultant/views/consultant.view.show_block_template.php; default - file modules/consultant/views/consultant.view.show_block.php).

Example:

<insert name="show_block" module="consultant" system="jivosite">

выведет код для подключения on-line консультанта JivoSite

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_block module="faq"

Shows latest questionson all pages, except the questions page, when the list of the same questions as in the function is shown.

Атрибуты:

count – number of displayed questions (by default 3);

site_id – pages to which the module is attached. Page identifiers are enumerated comma-separated. You can indicate negative value, then the questions from the indicated section will be excluded. By default all pages are selected;

cat_id – categories of questions, if "Use categories" is checked in the module settings. Category identifiers are enumerated comma-separated. You can indicate negative value, then the questions from the indicated category will be excluded. You can indicate current value, then the questions from the current (opened) category or all categories, if neither of them is opened, will be shown. By default the category is not taken into account, all questions are shown.;

sort – sorting questions: date – by date (by default), rand – randomly;

often – frequently asked question : true – выводятся только вопросы с пометкой "Frequently Asked Question", по умолчанию пометка "Frequently Asked Question" игнорируется;

only_module – show the block only on the page to which "Question-Answer" module is attached: true – show the block only on the module page, by default the block will be shown on all pages;

tag – tag attached to the questions;

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/faq/views/faq.view.show_block_template.php; default - file modules/faq/views/faq.view.show_block.php).

Формат даты задается в настройках модуля.

Example:

<insert name="show_block" module="faq">

выведет 3 последниx активных вопроса сайта с ответами


<insert name="show_block" module="faq" count="5">

выведет в ячейке таблицы 5 последних активных вопросов сайта с ответами


<insert name="show_block" module="faq" often="1">

выведет часто задаваемые вопросы

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_block module="files"

Выводит несколько файлов из файлового архива.

Атрибуты:

count – number of displayed files (by default 3);

site_id – pages to which the module is attached. Page identifiers are enumerated comma-separated. You can indicate negative value, then the files from the indicated section will be excluded. By default all pages are selected;

cat_id – categories of files, if "Use categories" is checked in the module settings. Category identifiers are enumerated comma-separated. You can indicate negative value, then the files from the indicated category will be excluded. You can indicate current value, then the files from the current (opened) category or all categories, if neither of them is opened, will be shown. You can indicate current value, then the files from the current (opened) category or all categories, if neither of them is opened, will be shown. By default the category is not taken into account, all files are shown.;

sort – sorting files: by default as on the module page, rand – randomly, date – by date;

images – number of images attached to the piece of files;

images_variation – image size tag, set in module settings;

only_module – show the block only on the page to which "Files" module is attached: true – show the block only on the module page, by default the block will be shown on all pages;

tag – tag attached to the files;

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/files/views/files.view.show_block_template.php; default - file modules/files/views/files.view.show_block.php).

Example:

<insert name="show_block" module="files">

выведет 3 последние файла из файлового архива

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_block module="forum"

Shows latest topics.

Атрибуты:

count – number of displayed topics (by default 3);

block_id – forum blocks. Block identifiers are enumerated comma-separated. You can indicate negative value, then the topics from the indicated blocks will be excluded. По умолчанию блок не учитывается, выводятся темы из всех блоков;

cat_id – forum categories. Category identifiers are enumerated comma-separated. You can indicate negative value, then the topics from the indicated category will be excluded. По умолчанию категория не учитывается, выводятся темы из всех категорий;

sort – sorting topics: by default as on the module page, date – by date, rand – randomly, keywords – topics with similar titles for the current page;

only_module – show the block only on the page to which "Forum" module is attached: true – show the block only on the module page, by default the block will be shown on all pages;

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/forum/views/forum.view.show_block_template.php; default - file modules/forum/views/forum.view.show_block.php).

Example:

<insert name="show_block_rel" module="forum">

выведет 3 похожие на текущую темы

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_block module="languages"

Выводит ссылки на альтернативные языковые версии сайта.

Атрибуты:

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/languages/views/languages.view.show_block_template.php; default - file modules/languages/views/languages.view.show_block.php).

Example:

<insert name="show_block" module="languages">

выведет список ссылок на языковые версии сайта, «ru/eng»

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_block module="menu"

Shows menu.

Атрибуты:

id – идентификатор категории меню;

template – имя шаблона;

Attention!

Атрибут template является «переключателем» режима работы шаблонного тега. Если в шаблонном теге есть этот атрибут, то меню на сайте оформляется с помощью традиционных шаблонов модулей. Если этого атрибута нет, то меню на сайте оформляется с помощью атрибутов оформления.

Если в атрибуте template указано какое-либо значение, то должен существовать файл modules/menu/view/menu.view.show_block_template.php.

Example:

<insert name="show_block" module="menu" template="supermenu">

меню оформится с помощью файла modules/menu/view/menu.view.show_block_supermenu.php, который необходимо будет создать (можно скопировать любой другой существующий файл шаблона)

Значение template="default" подключит шаблон modules/menu/view/menu.view.show_block.php.

Значение template="select" подключит шаблон выбранный для меню в административном интерфейсе – параметр «Шаблон вывода меню».

Если атрибут template не задан, меню оформляется с помощью атрибутов оформления и выводится шаблоном modules/menu/view/menu.view.show_menu.php.

tag_start_номер – текст, выводимый перед каждой ссылкой меню (может содержать слово Increment – при выводе автоматически заменяемое на арифметическую прогресиию, 1, 2, 3, … и Level – заменяемое на номер уровня меню);

tag_end_номер – текст, выводимый после каждой ссылки пункта меню (может содержать слово Increment - заменяемое на увеличивающийся номер и Level – заменяемое на номер уровня меню);

tag_end_after_children_номер – текст, выводимый после вложенных пунктов каждого пункта меню (может содержать слово Increment - заменяемое на увеличивающийся номер и Level – заменяемое на номер уровня меню);

tag_level_start_номер – текст, выводимый перед уровнем (номер) меню;

tag_level_end_номер – текст, выводимый после уровня (номер) меню;

tag_active_start_номер – текст, выводимый перед активным пунктом меню уровня (может содержать слово Increment - заменяемое на увеличивающийся номер и Level – заменяемое на номер уровня меню);

tag_active_end_номер – текст, выводимый после активного пункта меню уровня (может содержать слово Increment - заменяемое на увеличивающийся номер и Level – заменяемое на номер уровня меню);

tag_active_end_after_children_номер – текст, выводимый после вложенных пунктов активного пункта меню уровня (может содержать слово Increment - заменяемое на увеличивающийся номер и Level – заменяемое на номер уровня меню);

tag_active_child_start_номер – текст, выводимый перед пунктом меню уровня (номер) с активным дочерним пунктом (может содержать слово Increment - заменяемое на увеличивающийся номер и Level – заменяемое на номер уровня меню);

tag_active_child_end_номер – текст, выводимый после пункта меню уровня (номер) с активным дочерним пунктом (может содержать слово Increment - заменяемое на увеличивающийся номер и Level – заменяемое на номер уровня меню);

tag_active_child_end_after_children_номер – текст, выводимый после вложенных пунктов пункта меню уровня (номер) с активным дочерним пунктом (может содержать слово Increment - заменяемое на увеличивающийся номер и Level – заменяемое на номер уровня меню);

separator_номер – текст, разделяющий пункты меню;

count_level – number of displayed menu levels, атрибут используется при оформлении меню атрибутами (template="");

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag.

Номер в названии атрибутов обозначает номер уровня. Если атрибуты не указаны для текущего уровня, то они наследуются у верхнего уровня.

Example:

<insert name="show_block" module="menu">

выведет просто список ссылок основного меню


<table>
        <insert name="show_block" module="menu" id="2" tag_start_1="[tr][td]" tag_end_1="[/td][/tr]">
</table>

сформирует таблицу, в отдельной ячейке которой будут пункты меню из второго меню


<insert name="show_block" module="menu" tag_start_1="[div class=`menu`]" tag_end_1="[/div]" tag_start_2="[div class=`submenu`]" tag_end_2="[/div]">

Выведет:

<div class="menu"><a href="...">О нас</a></div>
   <div class="submenu"><a href="...">Животные</a></div>
   <div class="submenu"><a href="...">Миссия</a></div>
   <div class="submenu"><a href="...">История</a></div>
<div class="menu"><a href="...">Фотогалерея</a></div>

<insert name="show_block" module="menu" tag_start_1="[div class=`menuLevel`]" tag_end_1="[/div]">

Выведет:

<div class="menu1"><a href="...">О нас</a></div>
   <div class="menu2"><a href="...">Животные</a></div>
   <div class="menu2"><a href="...">Миссия</a></div>
   <div class="menu2"><a href="...">История</a></div>
<div class="menu1"><a href="...">Фотогалерея</a></div>

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_block_messages module="forum"

Shows messages block.

Атрибуты:

count – number of displayed messages (by default 3);

block_id – блоки форума. Идентификаторы блоков перечисляются через запятую. You can indicate negative value, then the messages from the indicated blocks will be excluded. По умолчанию блок не учитывается, выводятся сообщения из всех блоков.;

cat_id – категории форума. Category identifiers are enumerated comma-separated. You can indicate negative value, then the messages from the indicated category will be excluded. По умолчанию категория не учитывается, выводятся сообщения из всех категорий;

only_module – show the block only on the page to which "Forum" module is attached: true – show the block only on the module page, by default the block will be shown on all pages;

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/forum/views/forum.view.show_block_messages_template.php; default - file modules/forum/views/forum.view.show_block_messages.php).

Example:

<insert name="show_block_messages" module="forum">

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_block module="mistakes"

Подключает модуль «Ошибка на сайте».

Example:

<insert name="show_block" module="mistakes">

Выведет «Если Вы заметили ошибку на сайте, выделите ее и нажмите Ctrl+Enter».

Шаблон: файл modules/mistakes/views/mistakes.show_block.php.

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_block module="news"

Shows latest news on all pages, except the news page, when the list of the same news as in the function is shown.

Атрибуты:

count – number of displayed news (by default 3);

site_id – pages to which the module is attached. Page identifiers are enumerated comma-separated. You can indicate negative value, then the news from the indicated section will be excluded. By default all pages are selected.;

cat_id – categories of news, if "Use categories" is checked in the module settings. Category identifiers are enumerated comma-separated. You can indicate negative value, then the news from the indicated category will be excluded. You can indicate current value, then the news from the current (opened) category or all categories, if neither of them is opened, will be shown. By default the category is not taken into account, all news is shown.;

sort – news sorting: date – by date (by default), keywords – news with similar titles for the current page ("Site search" module must be enabled and news indexed);

images – number of images attached to the piece of news;

images_variation – image size tag, set in module settings;

only_module – show the block only on the page to which "News" module is attached: true – show the block only on the module page, by default the block will be shown on all pages;

tag – tag attached to the news;

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/news/views/news.view.show_block_template.php; template by default modules/news/views/news.view.show_block.php).

Формат даты задается в настройках модуля.

Example:

<insert name="show_block" module="news">

выведет 3 последние новости сайта


<insert name="show_block" module="news" count="5">

выведет 5 последних новостей сайта


<insert name="show_block" module="news" count="1" site_id="12">

выведет последнюю новость, прикрепленную к странице 12

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_block_order_rel module="shop"

Товары, которые обычно покупают с текущим товаром.

Атрибуты:

count – number of displayed goods (by default 3);

images – number of images attached to the piece of goods;

images_variation – image size tag, set in module settings;

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/shop/views/shop.view.show_block_order_rel_template.php; default - file modules/shop/views/shop.view.show_block_order_rel.php).

Example:

<insert name="show_block_order_rel" module="shop">

выведет 3 товара, которые обычно покупают с текущим товаром

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_block module="photo"

Выводит несколько фотографий.

Атрибуты:

count – number of displayed photos (by default 3);

site_id – pages to which the module is attached. Page identifiers are enumerated comma-separated. You can indicate negative value, then the photos from the indicated section will be excluded. By default all pages are selected;

cat_id – альбомы фотографий, если в настройках модуля отмечено «Использовать альбомы». Идентификаторы альбомов перечисляются через запятую. You can indicate negative value, then the photos from the indicated albums will be excluded. You can indicate current value, then the photos from the current (opened) album or all albums, if neither of them is opened, will be shown. By default the album is not taken into account, all photos are shown.;

sort – sorting photos: by default as on the module page, date – by date, rand – randomly;

images_variation – image size tag, set in module settings;

only_module – show the block only on the page to which "Photogallery" module is attached: true – show the block only on the module page, by default the block will be shown on all pages;

tag – tag attached to the photos;

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/photo/views/photo.view.show_block_template.php; default - file modules/photo/views/photo.view.show_block.php).

Example:

<insert name="show_block" module="photo">

выведет 3 последние фотографии из фотогалереи

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_block_rel module="ab"

Shows similar ads on the page of the ad. By default the connection between ads are one-sided, this can be changed by checking the option "Link back to parent in the block of similar ads" in module settings.

Атрибуты:

count – number of displayed ads (by default 3);

images – number of images attached to the piece of ads;

images_variation – image size tag, set in module settings;

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/ab/views/ab.view.show_block_rel_template.php; default - file modules/ab/views/ab.view.show_block_rel.php).

Формат даты задается в настройках модуля.

Example:

<insert name="show_block_rel" module="ab">

выведет 3 объявления, прикрепленные к текущей объявления

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_block_rel module="clauses"

Shows similar articles on the page of the article. By default the connection between articles are one-sided, this can be changed by checking the option "Link back to parent in the block of similar articles" in module settings.

Атрибуты:

count – number of articles shown (by default 3);

images – number of images attached to the article;

images_variation – image size tag, set in module settings;

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/clauses/views/clauses.view.show_block_rel_template.php; template by default modules/clauses/views/clauses.view.show_block_rel.php).

Формат даты задается в настройках модуля.

Example:

<insert name="show_block_rel" module="clauses">

выведет 3 статьи, прикрепленные к текущей статье

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_block_rel module="faq"

Shows similar questions on the page of the question. By default the connection between questions are one-sided, this can be changed by checking the option "Link back to parent in the block of similar questions" in module settings.

Атрибуты:

count – number of displayed questions (by default 3);

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/faq/views/faq.view.show_block_rel_template.php; default - file modules/faq/views/faq.view.show_block_rel.php).

Формат даты задается в настройках модуля.

Example:

<insert name="show_block_rel" module="faq">

выведет 3 вопроса, прикрепленные к текущему вопросу

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_block_rel module="files"

Shows similar files on the page of the file. By default the connection between files are one-sided, this can be changed by checking the option "Link back to parent in the block of similar files" in module settings.

Атрибуты:

count – number of displayed files (by default 3);

images – number of images attached to the piece of files;

images_variation – image size tag, set in module settings;

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/files/views/files.view.show_block_rel_template.php; default - file modules/files/views/files.view.show_block_rel.php).

Example:

<insert name="show_block_rel" module="files">

выведет 3 файла, прикрепленные к текущему файлу

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_block_rel module="news"

Shows similar news on the page of the piece of news. By default the connection between news are one-sided, this can be changed by checking the option "Link back to parent in the block of similar news" in module settings.

Атрибуты:

count – number of news shown (by default 3);

images – number of images attached to the piece of news;

images_variation – image size tag, set in module settings;

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/news/views/news.view.show_block_rel_template.php; template by default modules/news/views/news.view.show_block_rel.php).

Формат даты задается в настройках модуля.

Example:

<insert name="show_block_rel" module="news">

выведет 3 новости, прикрепленные к текущей новости

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_block_rel module="photo"

Shows similar photos on the page of the photo. By default the connection between photos are one-sided, this can be changed by checking the option "Link back to parent in the block of similar photos" in module settings.

Атрибуты:

count – number of displayed photos (by default 3);

images_variation – image size tag, set in module settings;

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/photo/views/photo.view.show_block_rel_template.php; default - file modules/photo/views/photo.view.show_block_rel.php).

Example:

<insert name="show_block_rel" module="photo">

выведет 3 фотографии, прикрепленные к текущей фотографии

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_block_rel module="shop"

Shows similar products on the page of the product. By default the connection between products are one-sided, this can be changed by checking the option "Link back to parent in the block of similar products" in module settings.

Атрибуты:

count – number of displayed goods (by default 3);

images – number of images attached to the piece of goods;

images_variation – image size tag, set in module settings;

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/shop/views/shop.view.show_block_rel_template.php; default - file modules/shop/views/shop.view.show_block_rel.php).

Example:

<insert name="show_block_rel" module="shop">

выведет 3 товара, прикрепленные к текущему товару

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_block module="reviews"

Shows latest reviews.

Атрибуты:

count – number of displayed reviews (by default 3);

modules – модули (разделенные запятой), к которым подключены отзывы;

element_id – идентификаторы элементов модулей (разделенные запятой), к которым подключены отзывы;

element_type – type of element (element – element (by default), cat – category, brand – brand);

sort – sorting reviews: date – by date (by default), rand – randomly;

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/reviews/views/reviews.view.show_block_template.php; default - file modules/reviews/views/reviews.view.show_block.php).

Example:

<insert name="show_block" module="reviews">

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_block module="shop"

Выводит несколько товаров из каталога.

Атрибуты:

count – number of displayed goods (by default 3);

site_id – pages to which the module is attached. Page identifiers are enumerated comma-separated. You can indicate negative value, then the goods from the indicated section will be excluded. By default all pages are selected;

cat_id – categories of goods, if "Use categories" is checked in the module settings. You can indicate negative value, then the questions from the indicated category will be excluded. Category identifiers are enumerated comma-separated. You can indicate current value, then the goods from the current (opened) category or all categories, if neither of them is opened, will be shown. By default the category is not taken into account, all goods are shown.;

brand_id – brands of goods. You can indicate negative value, then the questions from the indicated brands will be excluded. Brand identifiers are enumerated comma-separated. By default the brand is not taken into account, all goods are shown.;

sort – sorting goods: by default as on the module page, date – by date, rand – randomly, price - by price, sale – по количеству продаж;

images – number of images attached to the piece of goods;

images_variation – image size tag, set in module settings;

param – значения дополнительных характеристике;

Example:

Товары обладают следующими характеристиками:

  • цвет – выпадающий список, номер 3;
  • высота – число, номер 10;
  • наличие аналогов – галочка, номер 16.

Значит значение атрибута param="3=5&3=6&10>12&16=0" расшифровывается как товары красного и синего цвета (5 и 6 номер), высотой более 12, не имеющие аналогов. Символы < и > нужно заменять HTML-мнемониками &lt; и &gt;.

<insert name="show_block" module="shop" param="3=5&3=6&10&gt;12&16=0">

Номер (или идентификатор) характеристики можно посмотреть, если подвести курсор к названию характеристики в списке характеристик в административной части. Появиться всплывающая подсказка «Редактировать (номер характеристики)».

Номер (или идентификатор) значения характеристики можно посмотреть, если при редактировании характеристики подвести курсора на нужное значение. Появиться всплывающия подсказка «ID: номер».

hits_only – выводить только товары с пометкой «Хит»: true – выводить только товары с пометкой «Хит», по умолчанию пометка «Хит» будет игнорироваться;

action_only – выводить только товары с пометкой «Акция»: true – выводить только товары с пометкой «Акция», по умолчанию пометка «Акция» будет игнорироваться;

new_only – выводить только товары с пометкой «Новинка»: true – выводить только товары с пометкой «Новинка», по умолчанию пометка «Новинка» будет игнорироваться;

discount_only – выводить только товары, на которые действует скидка: true – выводить только товары, на которые действует скидка, по умолчанию скидка у товаров игнорируется;

only_module – show the block only on the page to which "Online shop" module is attached: true – show the block only on the module page, by default the block will be shown on all pages;

tag – tag attached to the goods;

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/shop/views/shop.view.show_block_template.php; default - file modules/shop/views/shop.view.show_block.php).

Example:

<insert name="show_block" module="shop">

выведет 3 последних товара из магазина


<insert name="show_block" module="shop" count="5" sort="rand">

выведет 5 случайных товаров из магазина


<insert name="show_block" module="shop" sort="price" count="4" cat_id="12">

выведет 4 самых дешевых товаров из рубрики №12 магазина

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_block module="site"

Выводит содержимое блока на сайте, номер которой передан в виде атрибута id.

Атрибуты:

id – идентификатор блока;

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/site/views/site.view.show_block_template.php; default - file modules/site/views/site.view.show_block.php).

Example:

<insert name="show_block" module="site" id="7">

выведет в ячейке таблицы содержимое страницы с id=7, редактируемой в модуле «Страницы сайта»

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_block module="tags"

Выводит список тегов.

Атрибуты:

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/tags/views/tags.view.show_block_template.php; default - file modules/tags/views/tags.view.show_block.php).

Example:

<insert name="show_block" module="tags">

выведет облако тегов

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_block module="users"

Выводит статистику пользователей на сайте.

Атрибуты:

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/users/views/users.view.show_block_template.php; default - file modules/users/views/users.view.show_block.php).

Example:

<insert name="show_block" module="users">

выведет «Сейчас на сайте: 13 гостей, 9 пользователей.»

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_block module="votes"

Sown votes.

Атрибуты:

id – задает номер вопроса;

count – количество вопросов. Значение all выведет все вопросы. По умолчанию 1;

sort – sorting votes: by default as on the module page, rand – randomly;

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/votes/views/votes.view.show_block_template.php; default - file modules/votes/views/votes.view.show_block.php).

Example:

<insert name="show_block" module="votes">

выведет вопрос, варианты ответа и кнопки «Ответить» и «Результаты», согласно настройкам и заполнению модуля «Опросы» в административной части сайта

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_block module="wishlist"

Displays information about products in the wishlist.

Атрибуты:

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/wishlist/views/wishlist.view.show_block_template.php; default - file modules/wishlist/views/wishlist.view.show_block.php).

Example:

<insert name="show_block" module="wishlist">

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_body

Выводит основной контент страницы: заголовка (если не запрещен его вывод в настройке странице «Не показывать заголовок»), текста страницы и прикрепленного модуля. Заменяет три тега: show_h1, show_text, show_module.

Example:

<insert name="show_body">

Шаблон в файле themes/functions/show_body.php.

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_brand module="shop"

Выводит несколько производителей.

Атрибуты:

count – number of displayed brands (by default all brands);

site_id – pages to which the module is attached. Page identifiers are enumerated comma-separated. You can indicate negative value, then the goods from the indicated section will be excluded. By default all pages are selected;

cat_id – categories of goods, if "Use categories" is checked in the module settings. You can indicate negative value, then the brands from the indicated category will be excluded. Category identifiers are enumerated comma-separated. You can indicate current value, then the brands from the current (opened) category or all categories, if neither of them is opened, will be shown. By default the category is not taken into account, all brands are shown.;

sort – sorting brands: by default as on the module page, name – by name, rand – randomly;

images – number of images attached to the piece of brands;

images_variation – image size tag, set in module settings;

only_module – show the block only on the page to which "Online shop" module is attached: true – show the block only on the module page, by default the block will be shown on all pages;

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/shop/views/shop.view.show_brand_template.php; default - file modules/shop/views/shop.view.show_brand.php).

Example:

<insert name="show_brand" module="shop">

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_breadcrumb

Выводит навигацию по сайту «Хлебные крошки».

Атрибуты:

separator – разделитель ссылок в навигации;

current – выводить текущий пункт: true – выводить ссылку на текущую страницу, по умолчанию ссылка на текущую страницу не выводится.

Example:

<insert name="show_breadcrumb">

Шаблон в файле themes/functions/show_breadcrumb.php.

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].



C

show_calendar module="news"

Shows the calendar with links to the news for a certain period. Periods are shown as links to months, only if there are news correspoding to these periods.

Атрибуты:

site_id – the page to which the module is attached, one page is selected by default;

cat_id – news category (category id, all news are taken into account by default), if "Use categories" is checked in module settings;

detail – detalization (day – days, month – months (by default), year – years);

only_module – show the block only on "News" page: true – show the block only on module page, by default the block will be shown on all pages;

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/news/views/news.view.show_calendar_template.php or modules/news/views/news.view.show_calendar_day_template.php for detalization by days; template by default modules/news/views/news.view.show_calendar.php or modules/news/views/news.view.show_calendar_day.php for detalization by days).

Example:

<insert name="show_calendar" module="news">

выведет календарь новостей

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_category module="shop"

Выводит несколько категорий.

Example:

<insert name="show_category" module="shop">

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_comments module="site"

Выводит комментарии, прикрепленные к странице сайта, если в конфигурации модуля «Страницы сайты» подключены комментарии.

Атрибуты:

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/site/views/site.view.show_comments_template.php; default - file modules/site/views/site.view.show_comments.php).

Example:

<insert name="show_comments" module="site">

выведет форму для отправки комментариев и добавленные комментарии посетителей

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_css

Подключает CSS-файлы. При включенном режиме разработки файлы будут объеденены и сжаты, что приведет к более быстрой загрузке файлов. Если существуют какие-то проблемы при включенном сжатии, подключите CSS-файлы стандартным HTML-тегом <link rel="stylesheet" type="text/css"...>.

Атрибуты:

files – перечень CSS-файлов, которые нужно подключить. Файлы должны размещаться в папке css. Если файлов несколько, то названия должны быть разделены запятыми.

Example:

<insert name="show_css">

Шаблон в файле themes/functions/show_css.php.

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

custom

Выводит путь до файла с учетом кастомизации.

Атрибуты:

path – исходный путь до файла;

absolute – путь абсолютный: true – тег выведет полный путь до файла, по умолчанию тег выведет относительный путь до файла без доменного имени;

compress – сжатие файла: js - тип js, css - тип css.

Example:

<insert name="custom">

Шаблон в файле themes/functions/custom.php.

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].



D

show_description

Выводит мета-тег description страницы.

Example:

<insert name="show_description">

Шаблон в файле themes/functions/show_description.php.

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_dynamic module="site"

Выводит содержимое динамического блока, номер которой передан в виде атрибута id.

Атрибуты:

id – идентификатор динамического блока;

element_id – номер элемента, для которого будет выведено значение блока, по умолчанию текущий элемент;

module_name – модуль элемента, для которого будет выведено значение блока, по умолчанию текущий модуль;

element_type – тип элемента, для которого будет выведено значение блока, по умолчанию тип текущего элемента;

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/site/views/site.view.show_dynamic_template.php; default - file modules/site/views/site.view.show_dynamic.php).

Example:

<insert name="show_dynamic" module="site">

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].



F

show_form module="ab"

Выводит форму добавления сообщения. Для правильной работы тега должна существовать страница, к которой прикреплен модуль Объявления.

Атрибуты:

site_id – pages to which the module is attached. Page identifiers are enumerated comma-separated. By default all pages are selected. Если задано несколько страниц, то в форме появляется выпадающий список «Раздел»;

cat_id – categories of ads, if "Use categories" is checked in the module settings. Category identifiers are enumerated comma-separated. Можно указать значение current, тогда форма будет добавлять объявление в текущую (открытую) категорию или выводить поле «Категория», если ни одна категория не открыта. Если задано несколько категорий, то в форме появляется выпадающий список «Категория»;

only_module – show the block only on the page to which "Ads" module is attached: true – show the block only on the module page, by default the block will be shown on all pages;

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/ab/views/ab.view.form_template.php; default - file modules/ab/views/ab.view.form.php).

Example:

<insert name="show_form" module="ab">

выведет форму добавления объявления

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_form module="faq"

Выводит форму добавления вопроса. Для правильной работы тега должна существовать страница, к которой прикреплен модуль Вопрос-Ответ.

Атрибуты:

site_id – page, which is attached to the module, one page is selected by default;

cat_id – категория вопросов (id категории, по умолчанию выбирается одна категория), если в настройках модуля отмечено «Использовать категории»;

only_module – show the block only on the page to which "Question-Answer" module is attached: true – show the block only on the module page, by default the block will be shown on all pages;

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/faq/views/faq.view.form_template.php; default - file modules/faq/views/faq.view.form.php).

Example:

<insert name="show_form" module="faq">

выведет форму добавления вопроса

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_form module="feedback"

Shows the form of adding message. For proper operation of the tag there should be a page, which is attached to the module Feedback.

Атрибуты:

site_id – page, which is attached to the module, one page is selected by default;

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/feedback/views/feedback.view.form_template.php; default - file modules/feedback/views/feedback.view.form.php).

Example:

<insert name="show_form" module="feedback">

выведет форму добавления сообщения

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_form module="subscription"

Выводит форму подписки на рассылки.

Атрибуты:

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/subscription/views/subscription.view.form_template.php; default - file modules/subscription/views/subscription.view.form.php).

Example:

<insert name="show_form" module="subscription">

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].



H

show_h1

Выводит заголовок страницы, если не запрещен его вывод в настройке странице «Не показывать заголовок».

Example:

<insert name="show_h1">

Шаблон в файле themes/functions/show_h1.php.

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_head

Формирует часть HTML-шапки сайта. Включает в себя в том числе теги: show_title, show_description, show_keywords.

Example:

<insert name="show_head">

Шаблон в файле themes/functions/show_head.php.

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_href

Выводит ссылку на страницу сайта. Если текущая страница соответствует адресу, на которую ведет ссылка, то ссылка становится неактивной. Шаблонная функция аналогична стандартной HTML-конструкции <a href=""></a>, но ликвидирует ссылки, которые никуда не ведут.

Атрибуты:

rewrite – псевдоссылка страницы, на которую ведет ссылка, например: news;

img – адрес изображения, использующегося в качестве ссылки, например: img/logo.png, можно добавлять _LANG, чтобы подставить ID текущего языка;

img_act – адрес изображения на текущей странице, например: img/home_act.gif, можно добавлять _LANG, чтобы подставить ID текущего языка;

width – ширина изображения;

height – высота изображения;

class – класс для ссылки;

alt – альтернативный тег для изображения или текст ссылки. Если задано title, будет подставлено название сайта из параметров сайта. Если задано url, будет подставлена ссылка на главную страницу сайта.

Example:

<insert name="show_href">

Шаблон в файле themes/functions/show_href.php.

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].



I

show_images module="site"

Выводит изображения, прикрепленные к странице сайта, если в конфигурации модуля «Страницы сайта» включен параметры «Использовать изображения».

Атрибуты:

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/site/views/site.view.show_images_template.php; default - file modules/site/views/site.view.show_images.php).

Example:

<insert name="show_images" module="site">

выведет группу фотографий, прикрепленных к текущей странице

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_include

Подключает файл-блок шаблона.

Атрибуты:

file – имя PHP-файла из папки themes/blocks без расширения.

Example:

<insert name="show_include">

Шаблон в файле themes/functions/show_include.php.

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].



J

show_js

Подключает JS-файлы. Тег нужно добавить перед </body>.

Example:

<insert name="show_js">

Шаблон в файле themes/functions/show_js.php.

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].



K

show_keywords

Выводит ключевые слова страницы. Используется для мета-тега keywords.

Example:

<insert name="show_keywords">

Шаблон в файле themes/functions/show_keywords.php.

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].



L

language

Выводит номер текущей языковой версии сайта.

Example:

<insert name="language">

Шаблон в файле themes/functions/language.php.

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_last_order module="cart"

Выводит информацию о последнем совершенном заказе.

Атрибуты:

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/cart/views/cart.view.show_last_order_template.php; default - file modules/cart/views/cart.view.show_last_order.php).

Example:

<insert name="show_last_order" module="cart">

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_links module="site"

Выводит ссылки на страницы нижнего уровня, принадлежащие текущей странице.

Атрибуты:

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/site/views/site.view.show_links_template.php; default - file modules/site/views/site.view.show_links.php).

Example:

<insert name="show_links" module="site">

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_login module="registration"

Выводит форму авторизации или приветствие и ссылки на редактирование данных и выход, если пользователь авторизован.

Атрибуты:

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/registration/views/registration.view.show_login_template.php; default - file modules/registration/views/registration.view.show_login.php).

Example:

<insert name="show_login" module="registration">

выведет форму авторизации

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].



M

show_module

Выводит контент модуля.

Example:

<insert name="show_module">

Шаблон в файле themes/functions/show_module.php.

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].



P

path

Выводит адрес сайта.

Example:

<insert name="path">

Шаблон в файле themes/functions/path.php.

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

path_url

Выводит адрес сайта, с учетом языковой версии сайта.

Example:

<insert name="path_url">

Шаблон в файле themes/functions/path_url.php.

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_previous_next module="site"

Shown links to the previous and following pages.

Атрибуты:

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/site/views/site.view.show_previous_next_template.php; default - file modules/site/views/site.view.show_previous_next.php).

Example:

<insert name="show_previous_next" module="site">

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_protect

Выводит JS код запрещающий копирование контента на сайте.

Example:

<insert name="show_protect">

Шаблон в файле themes/functions/show_protect.php.

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].



S

show_search module="ab"

Выводит форму поиска объявлений. Если для категорий прикреплены дополнительные характеристики, то поиск по ним производится только на странице категории.

Атрибуты:

site_id – pages to which the module is attached. Page identifiers are enumerated comma-separated. By default all pages are selected. Если выбрано несколько страниц сайта, то в форме поиска появляется выпадающих список по выбранным страницам. Можно указать отрицательное значение, тогда указанные страницы будут исключены из списка;

cat_id – categories of ads, if "Use categories" is checked in the module settings. Category identifiers are enumerated comma-separated. Можно указать значение current, тогда поиск будет осуществляться по текущей (открытой) категории или по всем категориям, если ни одна категория не открыта. Если выбрано несколько категорий, то в форме поиска появится выпадающий список категорий, который будет подгружать прикрепленные к категориям характеристики. You can indicate negative value, then the indicated categories will be excluded from list. Можно указать значение all, тогда поиск будет осуществлятся по всем категориям объявлений и в форме будут участвовать только общие характеристики. Атрибут не обязателен;

ajax – подгружать результаты поиска без перезагрузки страницы. Результаты подгружаются только если открыта страница со списком объявлений, иначе поиск работает обычным образом: true – результаты поиска подгружаются, по умолчанию будет перезагружена вся страница.;

only_module – show the block only on the page to which "Ads" module is attached: true – show the block only on the module page, by default the block will be shown on all pages;

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/ab/views/ab.view.show_search_template.php; default - file modules/ab/views/ab.view.show_search.php).

Example:

<insert name="show_search" module="ab">

выведет форму поиска по каталогу объявлений

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_search module="search"

Выводит форму поиска по сайту.

Атрибуты:

button – значение кнопки «Найти». Для неосновной языковой версии значение можно перевести в административной части в меню «Языки сайта» – «Перевод интерфейса»;

ajax – подгружать результаты поиска без перезагрузки страницы.: true – результаты поиска подгружаются, по умолчанию будет перезагружена вся страница.;

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/search/views/search.view.show_search_template.php; default - file modules/search/views/search.view.show_search.php).

Example:

<insert name="show_search" module="search" button="найти">

выведет форму поиска по сайту. "button" - необязательный атрибут названия кнопки поиска

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_search module="shop"

Выводит форму поиска товаров. Если для категорий прикреплены дополнительные характеристики, то поиск по ним производится только на странице категории. Поиск по обязательным полям подключается в настройках модуля (опции «Искать по цене», «Искать по артикулу», «Искать товары по акции», «Искать по новинкам», «Искать по хитам»). Если в форму поиска выведены характеристики с типом «выпадающий список» и «список с выбором нескольких значений», то значения характеристик, которые не найдут ни один товар, в форме поиска не выведутся.

Атрибуты:

site_id – pages to which the module is attached. Page identifiers are enumerated comma-separated. By default all pages are selected. Если выбрано несколько страниц сайта, то в форме поиска появляется выпадающих список по выбранным страницам. Можно указать отрицательное значение, тогда указанные страницы будут исключены из списка;

cat_id – categories of goods, if "Use categories" is checked in the module settings. Category identifiers are enumerated comma-separated. Можно указать значение current, тогда поиск будет осуществляться по текущей (открытой) категории магазина или по всем категориям, если ни одна категория не открыта. Если выбрано несколько категорий, то в форме поиска появится выпадающий список категорий магазина, который будет подгружать прикрепленные к категориям характеристики. You can indicate negative value, then the indicated categories will be excluded from list. Можно указать значение all, тогда поиск будет осуществлятся по всем категориям товаров и в форме будут участвовать только общие характеристики. Атрибут не обязателен;

ajax – подгружать результаты поиска без перезагрузки страницы: true – результаты поиска подгружаются, по умолчанию будет перезагружена вся страница. Результаты подгружаются только если открыта страница со списком товаром, иначе поиск работает обычным образом;

only_module – show the block only on the page to which "Online shop" module is attached: true – show the block only on the module page, by default the block will be shown on all pages;

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/shop/views/shop.view.show_search_template.php; default - file modules/shop/views/shop.view.show_search.php).

Example:

<insert name="show_search" module="shop">

выведет форму поиска по каталогу товаров

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show module="reviews"

Выводит отзывы и форму добавления отзывов для текущей страницы.

Атрибуты:

modules – модули (разделенные запятой), к которым подключены отзывы;

element_types – типы данных (разделенные запятой): element – элемент (by default), cat – категория, brand – производитель. Если не задан, то подключается ко всем типам данных модуля;

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/reviews/views/reviews.view.show_template.php; default - file modules/reviews/views/reviews.view.show.php).

Example:

<insert name="show" module="reviews">

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_social_links

Выводит ссылки на социальные сети.

Example:

<insert name="show_social_links">

Шаблон в файле themes/functions/show_social_links.php.

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].



T

show_tags module="site"

Выводит теги (слова-якори), прикрепленные к странице сайта, если в конфигурации модуля «Страницы сайты» подключены теги.

Атрибуты:

defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;

defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;

template – tag template (file modules/site/views/site.view.show_tags_template.php; default - file modules/site/views/site.view.show_tags.php).

Example:

<insert name="show_tags" module="site">

выведет список ссылок на теги, прикрепленные к текущей страние

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_text

Выводит текст страницы.

Example:

<insert name="show_text">

Шаблон в файле themes/functions/show_text.php.

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].

show_title

Выводит заголовок. Используется между тегами <title></title> в шапке сайта.

Example:

<insert name="show_title">

Шаблон в файле themes/functions/show_title.php.

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].



Y

show_year

Displays during operation of the site in years.

Атрибуты:

year – origin (by default the current year).

Example:

<insert name="show_year">

Шаблон в файле themes/functions/show_year.php.

В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"].