{include 'head'}
{include 'header'}
{set $rows = json_decode($_modx->resource.slider, true)} {foreach $rows as $row}
{/foreach}
{include 'advantages'} {set $articles = $_modx->runSnippet( 'pdoResources', [ 'elementClass' => 'modSnippet', 'parents' => 9895, 'where' => '{"template:IN":[15]}', 'tpl' => 'tplBlog', 'depth' => 0, 'limit' => 4, 'sortby' => 'publishedon', 'sortdir' => 'DESC', 'tvPrefix' => '', 'includeContent' => 1, 'includeTVs' => 'img' ] )}
Популярные категории
{$_modx->runSnippet( 'pdoResources', [ 'elementClass' => 'modSnippet', 'parents' => "4", 'resources' => "1,{$_modx->resource.popular_categories}", 'where' => '{"template:IN":[2,7]}', 'tpl' => 'tplCategory', 'depth' => 4, 'limit' => 0, 'sortby' => 'menuindex', 'sortdir' => 'DESC', 'tvPrefix' => '', 'includeContent' => 1, 'includeTVs' => 'img' ] )}
{if $articles?}
Наш блог
{$articles}
Смотреть весь блог
{/if} {if $_modx->resource.content?}
{$_modx->resource.h1?:$_modx->resource.pagetitle}
{$_modx->resource.content}
Узнать больше о нас
{/if} {set $new_items = $_modx->runSnippet( 'msProducts', [ 'tpl'=>'tplProduct', 'includeThumbs' => 'thumbsmall', 'parents' => 4, 'depth' => 4, 'showLog' => 0, 'limit' => 10, 'sortby'=> 'RAND()', 'where' => '{"Data.new":"1", "Data.availability":"1"}' ] )} {if $new_items?}
Наши новые поступления:
{$new_items}
{/if} {set $best_price_items = $_modx->runSnippet( 'msProducts', [ 'tpl'=>'tplProduct', 'includeThumbs' => 'thumbsmall', 'parents' => 4, 'depth' => 4, 'showLog' => 0, 'limit' => 10, 'sortby'=> 'RAND()', 'where' => '{"Data.bestprice":"1", "Data.availability":"1"}' ] )} {if $best_price_items?}
Лучшая цена:
{$best_price_items}
{/if} {set $hits_items = $_modx->runSnippet( 'msProducts', [ 'tpl'=>'tplProduct', 'includeThumbs' => 'thumbsmall', 'parents' => 4, 'depth' => 4, 'showLog' => 0, 'limit' => 10, 'sortby'=> 'RAND()', 'where' => '{"Data.popular":"1", "Data.availability":"1"}' ] )} {if $hits_items?}
Хиты продаж:
{$hits_items}
{/if} {include 'footer'}
{include 'popup'}