<?php
/**
 * Side Box Template
 *
 * @package templateSystem
 * @copyright Copyright 2003-2005 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_best_sellers.php 2982 2006-02-07 07:56:41Z birdbrain $
 */
  $content = '';
  $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";
  for ($i=1; $i<=sizeof($bestsellers_list); $i++) {
  	$best_seller_price = zen_get_products_display_price($bestsellers_list[$i]['id']);
    $content .= '<div class="sideBoxContentItem media products">';
      $content .= '<div class="media-left">' . "\n";
        $content .= '<a href="' . zen_href_link(zen_get_info_page($bestsellers_list[$i]['id']), 'products_id=' . $bestsellers_list[$i]['id']) . '" class="products-link">' . zen_image(DIR_WS_IMAGES . $bestsellers_list[$i]['products_image'], $bestsellers_list[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'class="media-object img-responsive"');
      $content .= '</div>';
      $content .= '<div class="media-body">' . "\n";
        $content .= '<h4 class="media-heading product-name">' . zen_trunc_string($bestsellers_list[$i]['name'], BEST_SELLERS_TRUNCATE, BEST_SELLERS_TRUNCATE_MORE) . '</a></h4>';
    	  $content .= '<div class="product-price">' . $best_seller_price . '</div>';
      $content .= '</div>';
    $content .= '</div>' . "\n";
  }
  $content .= '</div>';
?>