By default, this editor shows only those banners that lack some required data. If you would like to se all banners, including those with all the required info already entered, please click on the Show button.
"); $catSource = EZ::mkCatSource(); $catNames = EZ::mkCatNames(); $actSource = "[{value: 1, text: 'Active'}, {value:0, text: 'Disabled'}]"; $noBanners = true; foreach ($banners as $b) { $color = "#ddd"; if (!empty($bannerMeta[$b])) { // banner in the DB extract($bannerMeta[$b]); $class = "class='all hideable'"; $style = "style='background-color:$color'"; $catName = $catNames[$category]; } else { $id = $title = $target = $category = $active = $size = ''; $md5 = md5($b); $iSize = getimagesize($b); $width = $iSize[0]; $height = $iSize[1]; $size = "{$width}x{$height}"; $noBanners = false; } $style = ""; if (empty($target)) { $color = blush($color); $style = "style='background-color:$color'"; $class = "class='all shown'"; $noBanners = false; } if (empty($title)) { $color = blush($color); $style = "style='background-color:$color'"; $class = "class='all shown'"; $noBanners = false; } if (empty($catName) || $catName == 'unknown') { $color = blush($color); $style = "style='background-color:$color'"; $class = "class='all shown'"; $noBanners = false; } $iSize = getimagesize($b); echo <<