Esempio n. 1
0
    <br class="clear">

    <div class="shortcut">
        <?php 
//все shortcut-группы с тегом homepage
if ($shortcutGroups) {
    foreach ($shortcutGroups as $key => $group) {
        $this->widget('ProductsGroupPortlet', ['id' => 'products-group-portlet-' . $key, 'linkTitle' => $group['name'], 'item_count' => 5, 'arrow' => false, 'bigImg' => 'big', 'shoppingCart' => '<i class="fa fa-shopping-cart mr8"></i>в корзину', 'portlet_width' => '100%', 'ids' => $group['shortcuts']]);
        ?>
<br class="clear"><?php 
    }
}
?>
    </div>

    <!-- Сегодня покупают -->
    <div class="d1-d2 rel clearfix">
    <?php 
$buyToday = DynamicList::getItems('segodnya-pokupayut', 'Product');
if (!empty($buyToday)) {
    $this->widget('ProductsGroupPortlet', ['id' => 'buy-today', 'linkTitle' => 'Сегодня покупают', 'item_count' => 5, 'arrow' => false, 'portlet_width' => '100%', 'dataProvider' => $buyToday]);
}
?>
    </div>

    <?php 
// widget ВЫ УЖЕ СМОТРЕЛИ
$this->widget('RecentlyViewedItemsWidget', ['linkHtmlOptions' => ['class' => 'd3']]);
?>
</div>
Esempio n. 2
0
    <div style="<?php 
echo $hide;
?>
">    
        <?php 
$this->widget('ProductsGroupPortlet', ['id' => 'buy-with-product-group', 'linkTitle' => 'С этим продуктом покупают', 'item_count' => 5, 'portlet_width' => '800px', 'noPagination' => true, 'run_carousel' => true, 'arrow' => false, 'ids' => CHtml::listData($product->buywithproducts, 'id_similar_product', 'id_similar_product'), 'linkHtmlOptions' => ['class' => 'd1-d2 products-group-portlet']]);
?>
    </div>
    
    <!-- widget ВЫ УЖЕ СМОТРЕЛИ -->
    <?php 
$this->widget('RecentlyViewedItemsWidget', ['linkHtmlOptions' => ['class' => 'd3']]);
?>

    <?php 
if ($dataProvider = DynamicList::getItems('segodnya-pokupayut', 'Product', 20)) {
    ?>
        <div class="d1-d2 rel clearfix">
            <?php 
    $this->widget('ProductsGroupPortlet', ['id' => 'buy-today', 'linkTitle' => 'Сегодня покупают', 'item_count' => 5, 'noPagination' => true, 'arrow' => true, 'run_carousel' => true, 'portlet_width' => '800px', 'dataProvider' => $dataProvider, 'linkHtmlOptions' => ['class' => 'products-group-portlet']]);
    ?>
        </div>
    <?php 
}
?>

    <div class="d3">
        <?php 
echo BannerProduct::model()->getProductBanner('leviy-banner-produkta', $product, 1, $min = 0, $size = 'big');
?>
        <a href="#" class="block mt25"><img src="<?php