Files
2026-05-15 18:33:51 +02:00

46 lines
1.5 KiB
Smarty

<h1 class="siteTitle">{$objElement->GetName()}</h1>
{assign var=x value=1}
<table width="100%" cellpadding="4" cellspacing="1" border="0">
<tr>
<th>&nbsp;</th>
<th>nazwa</th>
<th>&nbsp;</th>
</tr>
{foreach from=$arrayObj item=obj name=product}
{*{if $obj->GetPicture()}
<a href="{url label=$objSubsite->GetUrlLabel() }"><img src="{$objSubsite->GetPictureMiniUrl()}" alt="" /></a>
{/if}
<h2><a style="color:#3d4c6d;" href="{url label=$objSubsite->GetUrlLabel()}">{$objSubsite->GetName()}</a></h2>
{if count($objSubsite->content->GetDescription()) <= 0 }
<p>{$objSubsite->content->GetDescription()|strip_tags|truncate:50} <a href="{url label=$objSubsite->GetUrlLabel()}">{translate word='read_more'}</a></p>
{/if}
*}
<tr {if $x==1}{assign var=x value=0}{else}{assign var=x value=1}class="even"{/if}>
{if $obj->GetPicture()}
<td><img src="{$obj->GetPictureMiniUrl()}" alt="" /></td>
{else}
<td><img src="{$urlStatic}/image/Strona/zalepka_180.gif" alt="" /></td>
{/if}
<td>{$obj->GetName()}</td>
<td style="text-align: center;">
<a href="{url label=$urlProductDetailLabel id=$obj->GetId() title=$obj->GetName()|escape }">{translate word='read_more'}</a>
</td>
</tr>
{foreachelse}
{*if !isset($searchString) || $searchString == ""}
<tr>
<td colspan="5" style="text-align: center;">Brak zdefiniowanych produktów.</td>
</tr>
{/if*}
{/foreach}
</table>