1. $i=0; foreach($show as $s){ $i++;
  2. if($i==1) $ornament = "ornament-1"; else $ornament = '';
  3. if($title == $s['title']) $s['title'] = ' ';
  4. echo '
  5. <div class="block-1c fl">
  6. <h2><span class="fc3 '.$ornament.'">'.$s['title'].'</span></h2>
  7. <div class="product" >
  8. <a href="#" class="img" style="background-image: url({{pot}}images/tmp4.jpg);">Ustna voda</a>
  9. <br /><br />
  10. <strong class="fs14 fc3">'.$s['pagetitle'].'</strong>
  11. <p class="fc3">'.$s['introtext'].'</p>
  12. <a href="[~'.$s['id'].'~]" class="arrow">Preberite več</a>
  13. </div>
  14. </div>
  15. ';
  16. $title = $s['title'];
  17. }