<p class="promo-1"><strong> Category </strong></p> </li> <?php foreach ((array) $categorys->category as $key => $value) { echo '<li>'; echo Html::a($value['label'], $value['url']); echo '</li>'; } ?> </ul> <?php $count = 0; ?> <?php foreach (\app\models\product::find()->random()->all() as $data) { ?> <?php if ($count < 3) { ?> <ul class="col-lg-3 col-sm-3 col-md-3 col-xs-4"> <li><a class="newProductMenuBlock" href="product-details.html"> <img class="img-responsive" src="/images/site/promo1.jpg" alt="product"> <span class="ProductMenuCaption"> <i class="fa fa-caret-right"> </i><?php echo $data->title; ?> </span> </a></li> </ul> <?php }
if (\app\models\product::find()->all()[$id]->image) { foreach (\app\models\product::find()->all()[$id]->image as $image) { if ($image->is_thumbnail == 1) { echo Html::a(Html::img("/storages/" . $image->getFullPath(), ['class' => 'img-responsive product-largeimg', 'alt' => \app\models\product::find()->all()[$id]->title, 'title' => \app\models\product::find()->all()[$id]->title]), false, ['class' => 'box-img']); } } } ?> <div class="box-content-overly box-content-overly-white"> <div class="box-text-table"> <div class="box-text-cell "> <div class="box-text-cell-inner dark"> <h1>Discover it</h1> <p><?php echo \app\models\product::find()->all()[$id]->title; ?> </p> <a class="btn btn-stroke-dark"> SHOP NOW</a></div> </div> </div> </div> </div> </div> </div> <div class="box-pagination swiper-pagination"></div> </div> <!--/.full-container--> </div> </div>