{% include concat(template.path, '/header_link.html') %} {% include concat(template.path, '/header.html') %}
{% set pkid = xget('pkid') %} {% if pkid is not null %} {% set st = 0 %} {% set newsCount = 15 %} {% if xget('page') > 0 %} {% set st = (xget('page') - 1) * newsCount %} {% endif %} {% set data = widgetDataByType( 'blog', { widget_name: 'news', start: 0, limit: 1, filter: { public: 1, lang: currentlang, pkid: pkid, '<=ugmtimePublic': time(), }, viewall: 1, } ).res.0 %} {% if data %} {% set addViews = ioCallAction( 'io.model.cms20.content.blog.addViews', { pkid: pkid, widget_name: 'news', } ) %} {% include concat(template.path, '/news_item.html') %} {% else %} {% include concat(template.path, '/news_list.html') %} {% endif %} {% else %} {% include concat(template.path, '/news_list.html') %} {% endif %}
{% include concat(template.path, '/footer.html') %} {% include concat(template.path, '/footer_link.html') %}