public static function product_icon_legend()
 {
     global $template, $current_page;
     $product_icons = BootstrapUtils::sese_product_icons($template, $current_page);
     $content = "<ul class='media-list'>";
     foreach ($product_icons as $icon) {
         $content .= "<li class='media'>" . "<div class='media-left media-middle'>" . "<img class='media-object' src='{$icon['image']}' alt='{$icon['title']}' title='{$icon['description']}'>" . "</div>" . "<div class='media-body'>{$icon['description']}</div>" . "</li>";
     }
     $content .= "</ul>";
     return $content;
 }
 public static function sese_icons()
 {
     global $products_is_organic, $products_is_heirloom, $products_is_southern, $products_is_eco;
     global $template, $current_page_base;
     $product_icons = BootstrapUtils::sese_product_icons($template, $current_page_base);
     $icon_order = array($products_is_organic, $products_is_heirloom, $products_is_southern, $products_is_eco);
     $content = '';
     $index = 0;
     foreach ($product_icons as $icon) {
         if ($icon_order[$index]) {
             $content .= "<img src='{$icon['image']}' title='{$icon['title']}'>";
         }
         $index++;
     }
     return $content;
 }
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: product_listing.php 17051 2010-07-29 07:25:09Z drbyte $
 */
if (!defined('IS_ADMIN_FLAG')) {
    die('Illegal Access');
}
$show_submit = zen_run_normal();
$listing_split = new BootstrapSplitPageResults($listing_sql, MAX_DISPLAY_PRODUCTS_LISTING, 'p.products_id', 'page');
$zco_notifier->notify('NOTIFY_MODULE_PRODUCT_LISTING_RESULTCOUNT', $listing_split->number_of_rows);
$how_many = 0;
$zc_col_count_description = 0;
if ($listing_split->number_of_rows > 0) {
    $rows = 0;
    $listing = $db->Execute($listing_split->sql_query);
    $extra_row = 0;
    $sese_icons = BootstrapUtils::sese_product_icons($template, $current_page_base);
    while (!$listing->EOF) {
        $rows++;
        $cur_row = sizeof($list_box_contents) - 1;
        $product_link = BootstrapProductListing::product_link($listing);
        $product_image = "<a href='{$product_link}'>" . zen_image(DIR_WS_IMAGES . $listing->fields['products_image'], $listing->fields['products_name'], 0, 0, 'class="img-responsive img-center listingProductImage"') . '</a>';
        for ($col = 0, $n = sizeof($column_list); $col < $n; $col++) {
            $lc_class = $lc_text = '';
            switch ($column_list[$col]) {
                case 'PRODUCT_LIST_NAME':
                    $lc_class = 'product-name';
                    $icons = BootstrapProductListing::product_icon_html($sese_icons, $listing);
                    $product_description = zen_trunc_string(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id'])), PRODUCT_LIST_DESCRIPTION);
                    $lc_text = "<h4 class='itemTitle'><a href='{$product_link}'><b>" . "{$listing->fields['products_name']}</b></a>{$icons}</h4>" . "<div class='hidden-xs listingDescription'>{$product_description}</div>\n" . "<div class='visible-xs'>{$product_image}</div>\n";
                    break;
                case 'PRODUCT_LIST_PRICE':