123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- <?php
- /**
- * FecShop file.
- *
- * @link http://www.fecshop.com/
- * @copyright Copyright (c) 2016 FecShop Software LLC
- * @license http://www.fecshop.com/license/
- */
- ?>
- <div class="main container">
- <div id="fecshop-home-big-img">
- <div class="container">
- <div class="row">
- <div class="span12">
- <div id="owl-fecshop" class="owl-carousel">
- <div class="item">
- <a href="#"><img class="lazyOwl" data-src="<?= Yii::$service->image->getImgUrl('images/01.jpg','appfront'); ?>" alt="" /></a>
- </div>
- <div class="item">
- <a href="#"><img class="lazyOwl" data-src="<?= Yii::$service->image->getImgUrl('images/02.jpg','appfront'); ?>" alt="" /></a>
- </div><div class="item">
- <a href="#"><img class="lazyOwl" data-src="<?= Yii::$service->image->getImgUrl('images/03.jpg','appfront'); ?>" alt="" /></a>
- </div><div class="item">
- <a href="#"><img class="lazyOwl" data-src="<?= Yii::$service->image->getImgUrl('images/04.jpg','appfront'); ?>" alt="" /></a>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="mt10">
- <h4 class="sectionBox_h best_seller"><span><?= Yii::$service->page->translate->__('best seller'); ?></span><em><a href=""><?= Yii::$service->page->translate->__('more'); ?></a></em></h4>
- <div class="pro-content">
- <?php
- $parentThis['products'] = $bestSellerProducts;
- $parentThis['name'] = 'best-seller';
- $config = [
- 'view' => 'cms/home/index/product.php',
- ];
- echo Yii::$service->page->widget->renderContent('category_product_price',$config,$parentThis);
- ?>
- </div>
- </div>
- <div class="clear"></div>
- <div class="mt10" style="margin-top:34px;">
- <h4 class="sectionBox_h featured"><span><?= Yii::$service->page->translate->__('featured products'); ?></span><em><a href=""><?= Yii::$service->page->translate->__('more'); ?></a></em></h4>
- <div class="pro-content">
- <?php
- $parentThis['products'] = $bestFeaturedProducts;
- $parentThis['name'] = 'featured';
- $config = [
- 'view' => 'cms/home/index/product.php',
- ];
- echo Yii::$service->page->widget->renderContent('category_product_price',$config,$parentThis);
- ?>
- </div>
- </div>
- </div>
- <script>
- <?php $this->beginBlock('owl_fecshop_slider') ?>
- $(document).ready(function(){
- $("#owl-fecshop").owlCarousel({
- navigation : true,
- slideSpeed : 300,
- paginationSpeed : 400,
- singleItem : true,
- autoPlay:3000,
- lazyLoad:true
- // "singleItem:true" is a shortcut for:
- // items : 1,
- // itemsDesktop : false,
- // itemsDesktopSmall : false,
- // itemsTablet: false,
- // itemsMobile : false
- });
-
- $("#owl-best-seller").owlCarousel({
- items : 4,
- lazyLoad : true,
- navigation : true,
- scrollPerPage : true,
- pagination:false,
- itemsCustom : false,
- slideSpeed : 900
- });
- $("#owl-featured").owlCarousel({
- items : 4,
- lazyLoad : true,
- navigation : true,
- scrollPerPage : true,
- pagination:false,
- itemsCustom : false,
- slideSpeed : 900
- });
- });
- <?php $this->endBlock(); ?>
- </script>
- <?php $this->registerJs($this->blocks['owl_fecshop_slider'],\yii\web\View::POS_END);//将编写的js代码注册到页面底部 ?>
|