$i=0; foreach($show as $s){ $i++;
if($i==1) $ornament = "ornament-1"; else $ornament = '';
if($title == $s['title']) $s['title'] = ' ';
<div class="block-1c fl">
<h2><span class="fc3 '.$ornament.'">'.$s['title'].'</span></h2>
<div class="product" >
<a href="#" class="img" style="background-image: url({{pot}}images/tmp4.jpg);">Ustna voda</a>
<br /><br />
<strong class="fs14 fc3">'.$s['pagetitle'].'</strong>
<p class="fc3">'.$s['introtext'].'</p>
<a href="[~'.$s['id'].'~]" class="arrow">Preberite več</a>
</div>
</div>
';
$title = $s['title'];
}