Ejemplo n.º 1
0
        $this_content .= '	<a href="single-product.php?id=' . $item->Id . '"><img src="' . $objItemImage->getPath() . $oItemImage[0]->ItemImageUrl . '" alt="' . $item->ItemName . '"></a>';
        $this_content .= '	<a href="single-product.php?id=' . $item->Id . '">' . $item->ItemName . '</a>';
        $this_content .= '</div>';
        $cClass = '';
        // Turn off active after first item
    }
    echo "            category_names[" . $cat->Id . "] = '" . $cat->CategoryName . "';\n";
    $this_content .= "</div>";
    $cat_content[$cat->Id] = $this_content;
    echo "            category_content[" . $cat->Id . "] = '" . $this_content . "';\n";
}
$objTechnology = new Technology();
$tech_content = array();
foreach ($oCategory as $cat) {
    $this_content = "";
    $oTechnology = $objTechnology->GetAllTechnologyByCategoryId($cat->Id);
    $iCnt = 3;
    // Go ahead and set it to the max to kick of a new div
    $iTotalInView = 3;
    $cClass = ' active';
    foreach ($oTechnology as $technology) {
        if ($technology->IsActive == '1') {
            $iCnt++;
            if ($iCnt > $iTotalInView) {
                if ($cClass == '') {
                    $this_content .= '</div>';
                }
                $this_content .= '<div class="item' . $cClass . '">';
                $iCnt = 1;
            }
            $this_content .= '<div class="menu-item col-sm-4">';