⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 productscategory.tpl

📁 一、修改产品详细页面的附件块 二、添加上浏览历史模块 三、在后台加入自定义首页、自定义页头、自定义页脚内容功能 四、在后台修改网站全局CSS样式文件功能 五、在后台修改每个模块的模板内容功能
💻 TPL
字号:
{if count($categoryProducts) > 1}
<!-- import JS and CSS of this module -->
<style type="text/css">@import url({$base_dir}modules/productscategory/css/module.css);</style>
<script type="text/javascript">var middle = {$middlePosition};</script>
<script type="text/javascript" src="{$base_dir}modules/productscategory/js/productscategory.js"></script>
<!-- /import JS and CSS of this module -->

<ul class="idTabs">
	<li><a href="#idTab3">{$itsc}</a></li>
</ul>

<div id="{if count($categoryProducts) > 5}productscategory{else}productscategory_noscroll{/if}">
{if count($categoryProducts) > 5}<a id="productscategory_scroll_left" title="{$prvs}" href="javascript:{ldelim}{rdelim}">{$prvs}</a>{/if}
<div id="productscategory_list">
	<ul {if count($categoryProducts) > 5}style="width: {math equation="width * nbImages" width=107 nbImages=$categoryProducts|@count}px"{/if}>
		{foreach from=$categoryProducts item='categoryProduct' name=categoryProduct}
		<li {if count($categoryProducts) < 6}style="width: {math equation="width / nbImages" width=94 nbImages=$categoryProducts|@count}%"{/if}>
			<a href="{$link->getProductLink($categoryProduct.id_product, $categoryProduct.link_rewrite)}" title="{$categoryProduct.name|htmlspecialchars}">
				<img src="{$img_prod_dir}{$categoryProduct.id_image}-medium.jpg" alt="{$categoryProduct.name|htmlspecialchars}" />
			</a><br/>
			<a href="{$link->getProductLink($categoryProduct.id_product, $categoryProduct.link_rewrite)}" title="{$categoryProduct.name|htmlspecialchars}">
			{$categoryProduct.name|truncate:15}
			</a>
		</li>
		{/foreach}
	</ul>
</div>
{if count($categoryProducts) > 5}<a id="productscategory_scroll_right" title="{$nxt}" href="javascript:{ldelim}{rdelim}">{$nxt}</a>{/if}
</div>
{/if}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -