首页更多(more)文档

文档问题 · resetl · 于 5年前 发布 · 1932 次阅读

vendor\fancyecommerce\fecshop\app\appfront\theme\base\front\cms\home\index.php

<?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">
	<?=  Yii::$service->cms->staticblock->getStoreContentByIdentify('home-big-img','appfront') ?>
	<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>
共收到 3 条回复
Fecmall#15年前 0 个赞

这是分享贴?如果是,帖子类型选择,技术分享

resetl#25年前 0 个赞

网站好用,我就把这些发在上面,自己也好搜索,您能教我这个网站是怎么做的吗?

Fecmall#35年前 0 个赞

@resetl #2楼 这个论坛是getyii做的,github搜索可以找到

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics