106 lines
5.2 KiB
Smarty
106 lines
5.2 KiB
Smarty
|
|
<ul class="breadcrumb">
|
||
|
|
{foreach from=$breadcrumbs key=myId item=crumb name=foo}
|
||
|
|
<li>{if not $smarty.foreach.foo.last}
|
||
|
|
<a href="/{$crumb->url}">{$crumb->name|escape}</a>
|
||
|
|
{else}{$crumb->name|escape}{/if}
|
||
|
|
</li>
|
||
|
|
{/foreach}
|
||
|
|
</ul>
|
||
|
|
|
||
|
|
{if $sub_pages}
|
||
|
|
<div class="services-view row">
|
||
|
|
<div class="col-sm-12">
|
||
|
|
<div class="content">
|
||
|
|
{include file='advantage.tpl'}
|
||
|
|
<!-- хиты продаж -->
|
||
|
|
{if $related_products}{include file='service_products.tpl'}{/if}
|
||
|
|
<!-- / хиты продаж -->
|
||
|
|
{*include file='graphic_block_services.tpl'*}
|
||
|
|
<div class="row">
|
||
|
|
<div class="col-sm-3">
|
||
|
|
{if !$detect->isMobile()}
|
||
|
|
{include file='services_menu.tpl'}
|
||
|
|
{/if}
|
||
|
|
</div>
|
||
|
|
<div class="col-sm-9">
|
||
|
|
<h1>{$page->header}</h1>
|
||
|
|
|
||
|
|
{$page->toptext}
|
||
|
|
|
||
|
|
{if $page->id==28}
|
||
|
|
<!-- Меню услуг -->
|
||
|
|
{foreach $sub_pages as $top}
|
||
|
|
<div class="title">{$top->name}</div>
|
||
|
|
<div class="row">
|
||
|
|
{foreach $just_service_items as $s}
|
||
|
|
{if $s->startId != $top->id}{continue}{/if}
|
||
|
|
<div class="service-unit col-sm-4">
|
||
|
|
<div class="service-box">
|
||
|
|
<a href="/tuning-centr/{$s->url}/" class="tumb">
|
||
|
|
{if $s->image}
|
||
|
|
<img src="{$s->image|resizepage:262:230:0:1}"
|
||
|
|
title="{$s->name|escape}" alt="{$s->name|escape}">
|
||
|
|
{else}
|
||
|
|
<img src="/files/page/default.jpg" title="{$s->name|escape}"
|
||
|
|
alt="{$s->name|escape}">
|
||
|
|
{/if}
|
||
|
|
</a>
|
||
|
|
<a class="service-name"
|
||
|
|
href="/tuning-centr/{$s->url}/">{$s->name|escape}</a>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
{/foreach}
|
||
|
|
</div>
|
||
|
|
<div class="service-link"><a href="/tuning-centr/{$top->url}/">все услуги раздела
|
||
|
|
"{$top->name}"</a></div>
|
||
|
|
{/foreach}
|
||
|
|
<!-- Меню услуг (The End) -->
|
||
|
|
{else}
|
||
|
|
<div class="row">
|
||
|
|
{foreach $sub_pages as $s}
|
||
|
|
{if !$s->visible}{continue}{/if}
|
||
|
|
<div class="service-unit col-sm-4">
|
||
|
|
<div class="service-box">
|
||
|
|
<a href="/tuning-centr/{$s->url}/" class="tumb">
|
||
|
|
{if $s->image}
|
||
|
|
<img src="{$s->image|resizepage:262:230:0:1}"
|
||
|
|
title="{$s->name|escape}" alt="{$s->name|escape}">
|
||
|
|
{else}
|
||
|
|
<img src="/files/page/default.jpg" title="{$s->name|escape}"
|
||
|
|
alt="{$s->name|escape}">
|
||
|
|
{/if}
|
||
|
|
</a>
|
||
|
|
<a class="service-name"
|
||
|
|
href="/tuning-centr/{$s->url}/">{$s->name|escape}</a>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
{/foreach}
|
||
|
|
</div>
|
||
|
|
{/if}
|
||
|
|
|
||
|
|
<!-- другие услуги -->
|
||
|
|
{include file='service_other.tpl'}
|
||
|
|
{$page->bottext}
|
||
|
|
<!-- / другие услуги -->
|
||
|
|
{*include file='contact_form_and_social.tpl'*}
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
{else}
|
||
|
|
<div class="services-view row">
|
||
|
|
<div class="col-sm-12">
|
||
|
|
<div class="content">
|
||
|
|
<div class="row">
|
||
|
|
<div class="col-sm-3">
|
||
|
|
{if !$detect->isMobile()}{include file='services_menu.tpl'}{/if}
|
||
|
|
</div>
|
||
|
|
<div class="col-sm-9">
|
||
|
|
{include file='service.tpl'}
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
{/if}
|