{if $related_articles}

<div class="clearfix">
  <div class="infoblock other-services row">
    <div class="col-sm-12">
      <div class="h3">Примеры работ</div>
    </div>
    {foreach from=$related_articles item=related_page} 
    <div class="col-sm-3" style="min-height:242px;">
      <div class="oth-image"><a rel="nofollow" target="_blank" href="/article/{$related_page->url}/">{if $related_page->image}<img src="{$related_page->image|resizepage:242:198}" alt="{$page->name}" class="thumbnail w">{else}<img src="/images/empty.jpg" class="thumbnail w">{/if}</a></div>
      <div class="oth-title"><a rel="nofollow" target="_blank" href="/article/{$related_page->url}/">{$related_page->name}</a></div>
    </div>
    {/foreach}
  </div>
</div>


{/if}



{if $related_pages}
<div class="clearfix">
  <div class="infoblock other-services row">
    <div class="col-sm-12">
      <div class="h3">Другие услуги</div>
    </div>
    {foreach from=$related_pages item=related_page} 
    <div class="col-sm-3">
      <div class="oth-image"><a rel="nofollow" target="_blank" href="{$related_page->parentUrl}{$related_page->url}/">{if $related_page->image}<img src="{$related_page->image|resizepage:242:198}" alt="{$page->name}" class="thumbnail w">{else}<img src="/images/empty.jpg" class="thumbnail w">{/if}</a></div>
      <div class="oth-title"><a rel="nofollow" target="_blank" href="{$related_page->parentUrl}{$related_page->url}/">{$related_page->name}</a></div>
    </div>
    {/foreach}
  </div>
</div>
{/if}

