</div>--> </div> <div class="col-md-6 col-sm-6 hidden-xs text-right"> <a href="#" class="bt_filters"><i class=" icon-list"></i></a> </div> </div> </div><!--/tools --> <div id="data_content"> <?php $id = $_GET['id']; //$sort_order = 'sort_order ASC'; $sort_order = "sort_order = '0', sort_order"; $where = array('category_id' => $id, 'is_deleted' => 'N', 'is_active' => 'Y'); $rows_data = getorderRows(DB_TABLE_PREFIX . 'product', $where, '*', $sort_order, '', '', 'Y', '15'); $product_data = $rows_data['data']; if ($rows_data['total_recs'] > 0) { ?> <?php foreach ($product_data as $product) { extract($product); $image_path = 'img/products/' . $image; if ($image == "" || !file_exists($image_path)) { $image_path = 'img/products/noimage.jpeg'; } $pid = $id; $cat_id = $category_id; $prod_reviews = $rating; if ($feature == 'Popular') { $Product_feature = 'popular';
<div class="col-md-9"> <div class="box_style_1"> <?php // //------------Products with search---------- if (isset($_GET['cat'])) { $search = '%' . $_GET['cat'] . '%'; $where = array('blog_category' => $search); $rows_data = searchRows(DB_TABLE_PREFIX . 'blog', $where, '*', $sort_order, '', '', 'Y', '4'); $product_data = $rows_data['data']; } else { //---------All Products on page load--------- $sort_order = "sort_order = '0', sort_order"; $where = array('is_deleted' => 'N', 'is_active' => 'Y'); $rows_data = getorderRows(DB_TABLE_PREFIX . 'blog', $where, '*', $sort_order, '', '', 'Y', '2'); $product_data = $rows_data['data']; } ?> <?php if ($rows_data['total_recs'] > 0) { ?> <?php foreach ($product_data as $product) { extract($product); $image_path = 'img/blogs/' . $image; if ($image == "" || !file_exists($image_path)) { $image_path = 'img/blogs/noimage.jpeg'; } $long_desc = $long_description; $blog_title = stripcslashes(Decode($product['title']));