function zem_article_image($atts) { global $thisarticle,$pfr,$img_dir, $id; if (is_array($atts)) extract($atts); $break = (empty($break)) ? "" : $break; $wraptag = (empty($wraptag)) ? "" : $wraptag; $limit = (empty($limit)) ? 1 : $limit; if (!empty($thisarticle["article_image"])) { $images = array_slice(split(",", $thisarticle["article_image"], $limit + 1), 0, $limit); foreach ($images as $id) { if (is_numeric($id)) { $rs = safe_row("*", "txp_image", "id='$id' limit 1"); if ($rs) { extract($rs); if (empty($thumbs)) { $out[]= ""; } elseif (!empty($rs["thumbnail"])) { $out[]= ""."".""; } } } } if (is_array($out)) { if ($break == "li") { return ($wraptag) ? tag("