<?php echo '<div class="widget widget_products' . (!$mobile_view ? ' mobile_view' : '') . '">'; if (!empty($title)) { echo '<h2>' . $title . '</h2>'; } echo '<ul class="list">'; foreach (products_custom(array('show' => !empty($type) ? $type : '', 'orderby' => !empty($order) ? $order : '', 'max' => !empty($limit) ? $limit : 10)) as $id) { echo '<li><a href="' . $id->link . '">' . $id->title . '</a></li>'; } echo '</ul> </div>';
</div> </article>'; } } if (searched_type() === 'products') { echo '<ul class="category" style="margin: 10px 0 5px 0;"> <li><a href="' . get_remove(array('type')) . '">Coupons</a></li>'; if (theme_has_products()) { echo '<li class="active">Products</li>'; } echo '</ul>'; echo '<div class="text-tit">Products for ' . $item->name . ':</div>'; $pagination = have_products_custom(array('store' => $item->ID)); if ($pagination['results']) { foreach (products_custom(array('store' => $item->ID, 'orderby' => 'active desc')) as $item) { echo '<article class="array_item product"> <div class="table"> <div class="left"> <img src="' . store_avatar($item->image) . '" alt=""> <span class="rating"><span style="width:' . $item->stars * 16 . 'px;"></span></span> <a href="' . $item->store_reviews_link . '">' . $item->reviews . ' reviews</a>'; echo !empty($item->cashback) ? '<span class="cashback-points" data-ttip="Great! Purchase this product and you\'ll receive ' . $item->cashback . ' points.">' . $item->cashback . '</span> ' : ''; echo '</div> <div class="right"> <a href="' . $item->link . '" class="title">' . $item->title . '</a>'; if (!empty($item->price)) { echo '<div class="price_info">Price: <span class="price">' . (empty($item->old_price) ? '' : '<span>' . price_format($item->old_price) . '</span>') . price_format($item->price) . ' ' . $item->currency . '</span></div>';
<li class="share-li" data-ttip="Share this on Linkedin"><a href="#" onclick="openwindow(\'https://www.linkedin.com/shareArticle?mini=true&url=' . $item->link . '&title=' . $item->title . '&summary=&source=\', 500, 500, \'yes\');"></a></li> </ul> <input type="text" value="' . $item->link . '" onclick="$(this).select();" /> </div> </div> </article>'; } } } else { echo '<div class="info_form">This category is no longer available !</div>'; echo '<div class="text-tit" style="margin-top: 15px;">See some products:</div>'; foreach (products_custom(array('show' => ',active', 'orderby' => 'rand', 'max' => option('items_per_page'))) as $item) { echo '<article class="array_item product"> <div class="table"> <div class="left"> <img src="' . store_avatar($item->image) . '" alt=""> <span class="rating"><span style="width:' . $item->stars * 16 . 'px;"></span></span> <a href="' . $item->store_reviews_link . '">' . $item->reviews . ' reviews</a>'; echo !empty($item->cashback) ? '<span class="cashback-points" data-ttip="Great! Purchase this product and you\'ll receive ' . $item->cashback . ' points.">' . $item->cashback . '</span> ' : ''; echo '</div> <div class="right"> <a href="' . $item->link . '" class="title">' . $item->title . '</a>'; if (!empty($item->price)) { echo '<div class="price_info">Price: <span class="price">' . (empty($item->old_price) ? '' : '<span>' . price_format($item->old_price) . '</span>') . price_format($item->price) . ' ' . $item->currency . '</span></div>';