예제 #1
0
 function output($cat_id = null)
 {
     $items = self::get($cat_id);
     $output = "";
     $item_count = count($items);
     if (count($items) > 0) {
         foreach ($items as $item) {
             $output .= AA_Item::output($item, get_option('dbaa_item_list_item_format'));
         }
     } elseif (count($items) == 0 && is_numeric($cat_id) && $cat_id != null) {
         /**
          * @todo generated Option für keine Produkte in Kategorie
          */
         $output = 'Keine Produkte in dieser Kategorie vorhanden';
     } else {
         $output = get_option('dbaa_no_items_message');
     }
     return $output;
 }