<?php echo EasyThumbnailImage::thumbnailImg('@image/' . $item->getMainImage(), 360, 360, EasyThumbnailImage::THUMBNAIL_OUTBOUND, ["class" => "tr_all_hover"]); ?> </div> <!--carousel--> <div class="relative qv_carousel_wrap m_bottom_20"> <button class="button_type_11 t_align_c f_size_ex_large bg_cs_hover r_corners d_inline_middle bg_tr tr_all_hover qv_btn_prev"> <i class="fa fa-angle-left "></i> </button> <ul class="qv_carousel d_inline_middle"> <?php foreach ($item->itemImgs as $itemImage) { ?> <li data-src="<?php echo file_exists(Yii::getAlias('@image/' . $itemImage->pic)) ? EasyThumbnailImage::thumbnailFileUrl('@image/' . $itemImage->pic, 360, 360, EasyThumbnailImage::THUMBNAIL_OUTBOUND) : ''; ?> " > <?php echo EasyThumbnailImage::thumbnailImg('@image/' . $itemImage->pic, 90, 90, EasyThumbnailImage::THUMBNAIL_OUTBOUND); ?> </li> <?php } ?> </ul> <button class="button_type_11 t_align_c f_size_ex_large bg_cs_hover r_corners d_inline_middle bg_tr tr_all_hover qv_btn_next"> <i class="fa fa-angle-right "></i> </button> </div>
</div> <div class="span4 feature_teaser"> <img alt="responsive" src="/images/best_price.png" /> <h3>Низкие цены</h3> <p>Вы хотите купить <strong>дешевую спецтехнику</strong> (возможно с навесным оборудованием) и поэтому оказались на нашем сайте. <strong>Вы не ошиблись</strong> в своем выборе.</p> </div> </div> </section> <section id="portfolio_teasers_wrapper"> <h2 class="section_header">Запчасти ADR, BMT, L1, SAE, SAF, BPW, GIGANT для тралов, полуприцепов, прицепов HARTUNG, ЧМЗАП, ТСП</h2> <div class="portfolio_strict row"> <?php foreach ($parts as $part) { ?> <div class="portfolio_item span3"> <div class="portfolio_photo" style="background-image:url(<?php echo EasyThumbnailImage::thumbnailFileUrl($part->getFotoAliasUrl(), 200, 200); ?> )"> <?php echo Html::a('<i class="icon-2x icon-external-link"></i><p>Посмотреть запчать в каталоге...</p>', ['part/category', 'id' => $part->category_id]); ?> </div> <div class="portfolio_description"> <h3> <?php echo Html::a($part->name, ['part/category', 'id' => $part->category_id]); ?> </h3> </div> </div> <?php
public function getUploadInfo() { $filePath = Yii::getAlias('@webroot') . $this->url; return ['url' => EasyThumbnailImage::thumbnailFileUrl('@webroot' . $this->url, 200, 100, EasyThumbnailImage::THUMBNAIL_INSET), 'type' => mime_content_type($filePath), 'name' => basename($filePath), 'size' => filesize($filePath), 'uploadId' => $this->id]; }