- {php} $pattern="/<[img|IMG].*?src=[\'|\"](.*?(?:[\.gif|\.jpg|\.png|\.jpeg|\.bmp]))[\'|\"].*?[\/]?>/"; preg_match_all($pattern,$vo['art_content'],$imgArray); {/php} {if count($imgArray.1) egt 3 && $maccms.mid !=3}

  ### {$vo.art_name}

  {maccms:foreach name="$imgArray.1" id="img" key="key_img"} {if $key_img lt 3}
  {/if} {/maccms:foreach}
  {else/}

  ### {$vo.art_name}

  {$vo.art_blurb}

  {$vo.type.type_name}{$vo.art_time|date='Y-m-d',###}
  {/if}