Файл: InstantSocial/uploud/templates/_default_/modules/mod_uc_popular.tpl
Строк: 33
{if $is_uc}
{if $cfg.showtype == 'thumb'}
{foreach key=tid
item=item from=$items}
<div
class="uc_latest_item">
<table border="0"
cellspacing="2" cellpadding="0"
width="100%">
<tr><td height="110"
align="center" valign="middle">
<a
href="/catalog/item{$item.id}.html">
<img
alt="{$item.title|escape:'html'}"
src="/images/catalog/small/{$item.imageurl}.jpg"
border="0" />
</a>
</td></tr>
<tr><td align="center"
valign="middle">
<a class="uc_latest_link"
href="/catalog/item{$item.id}.html">{$item.title}</a>
</td></tr>
{if $item.viewtype ==
'shop'}
<tr><td align="center"
valign="middle">
<div
id="uc_popular_price">{$item.price}
{$LANG.UC_POPULAR_RUB}</div>
</td></tr>
{/if}
</table>
</div>
{/foreach}
{/if}
{if $cfg.showtype == 'list'}
<table width="100%"
cellspacing="0" cellpadding="4"
class="uc_latest_list">
{foreach key=tid item=item
from=$items}
<tr>
<td width=""
valign="top"><a class="uc_latest_link"
href="/catalog/item{$item.id}.html">{$item.title}</a></td>
{section
name=customer start=0 loop=$cfg.showf step=1}
<td
valign="top">{$item.fdata[$smarty.section.customer.index]}</td>
{/section}
<td
width="" align="right"
valign="top">{$item.key}</td>
<td
align="right">
{if $item.viewtype ==
'shop'}
<td align="right"><div
id="uc_popular_price">{$item.price}
{$LANG.UC_POPULAR_RUB}</div></td>
{/if}
</td>
</tr>
{/foreach}
</table>
{/if}
{if
$cfg.fulllink}
<div style="margin-top:5px; text-align:right;
clear:both"><a style="text-decoration:underline"
href="/catalog">{$LANG.UC_POPULAR_CATALOG}</a>
{$LANG.UC_POPULAR_ARR}</div>
{/if}
{else}
<p>{$LANG.UC_POPULAR_NOOBJECTS}</p>
{/if}