{extends 'file:layouts/layout.tpl'} {block 'css'} {/block} {block 'js'} {/block} {block 'main'} {'@FILE chunks/home_filter.tpl' | chunk} {set $hero = $_modx->resource.hero | fromJSON} {if $hero?} {foreach $hero as $item} {if $item.disabled != '1'} {if $item.uri_variant == 'banner'} {else} {/if} {if $item.image_mobile?} {/if} {if $item.heading?} {$item.heading} {/if} {if $item.title?} {$item.title | nl2br} {/if} {if $item.description?} {$item.description | nl2br} {/if} {if $item.uri_variant == 'banner'} {else} {/if} {/if} {/foreach} {/if} Записаться на шиномонтаж {set $beft_offers_ids = '@FILE snippets/get_products_ids_for_best_offer.php' | snippet : [ 'limit' => 8 ]} {if $beft_offers_ids?} {set $best_offers = 'msProducts' | snippet : [ 'parents' => 0, 'resources' => $beft_offers_ids, 'includeThumbs' => 'medium', 'tpl' => '@FILE chunks/product.tpl' ]} {if $best_offers?} Лучшие предложения {$best_offers} Смотреть все шины {/if} {/if} {set $vendors = '@FILE snippets/get_brands_list.php' | snippet : [ 'tpl' => '@FILE chunks/brand.tpl', 'limit' => 8 ]} {if $vendors?} Популярные производители {$vendors} Смотреть всех производителей {/if} О нас {* {8 | resource : 'longtitle'} *} {8 | resource : 'content'} Узнать подробнее {'@FILE chunks/hero_links.tpl' | chunk} {/block}