productscategory.tpl

来自「一款C2C的网店程序 我也是在网上下载的」· TPL 代码 · 共 31 行

TPL
31
字号
{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 + =
减小字号Ctrl + -
显示快捷键?