<ul class="breadcrumb">
{foreach $breadcrumb as $unit}
  <li><a href="/{$unit->href}">{$unit->anchor}</a></li>
{/foreach}
  <li><span>{$page->name}</span></li>
</ul>

{if $sub_pages}
<div class="services-view row">
  <div class="col-sm-12">
    <div class="content">
      {*<div class="page-content">
        <div class="row"> {if $page->image}
          <div class="col-sm-12">
            <h1>{$page->header}</h1>
          </div>
          <div class="col-sm-12"><img src="{$page->image|resizepage:390:113}" alt="{$page->name}" class="pull-left img-pull-left">{$page->toptext}</div>
          {else}
          <div class="col-sm-12">{$page->toptext}</div>
          {/if} </div>
      </div>*}
      <!-- хиты продаж -->
{if $related_products}{include file='service_products.tpl'}{/if}            
      <!-- / хиты продаж -->
{include file='graphic_block_services.tpl'}
      <h1>{$page->header}</h1>
      {$page->toptext}
      <div class="services row"> 
      {foreach $sub_pages as $service}
      {if !$service->visible}{continue}{/if}
        <div class="col-sm-6">
          <div class="service thumbnail w">
            <div class="row">
              <div class="col-sm-5 service-image">{if $service->image} <img src="{$service->image|resizepage:242:198}" alt="{$service->name}">{else}<img src="/images/zag2.jpg" alt="">{/if}</div>
              <div class="col-sm-7">
                <div class="service-title text-center h4"><a href="{$service->parentUrl}{$service->url}/">{$service->name}</a></div>
                <div class="service-adt text-center">{$service->introtext}</div>
                <div class="service-button text-center"><a href="{$service->parentUrl}{$service->url}/" class="btn btn-danger btn-block">Перейти в раздел</a></div>
              </div>
            </div>
          </div>
        </div>
        {/foreach} 
      </div>
      <!-- другие услуги -->          
{include file='service_other.tpl'}  
{$page->bottext}    
      <!-- / другие услуги -->       
{include file='contact_form_and_social.tpl'}
    </div>
  </div>
</div>
{else}
    {include file='service.tpl'}
{/if}
{if !$detect->isMobile()}
{literal}

<script>$(function(){ $('#right-cat-btn').show(); })</script>

{/literal}
{/if}