75 lines
3.4 KiB
Smarty
75 lines
3.4 KiB
Smarty
|
{if isset($tag)}
|
||
|
{capture name=path}
|
||
|
<a href="{$base_dir_ssl}{if $rewriting}{$base_url}{else}modules/privatesales/featured.php{/if}">{l s='Featured brands' mod='privatesales'}</a>
|
||
|
<span class="navigation-pipe">{$navigationPipe}</span>{$tag.value}
|
||
|
{/capture}
|
||
|
{else}
|
||
|
{capture name=path}{l s='Featured brands' mod='privatesales'}{/capture}
|
||
|
{/if}
|
||
|
{include file="$tpl_dir./breadcrumb.tpl"}
|
||
|
|
||
|
<h1>{if isset($tag)}{$tag.value}{else}{l s='Featured brands' mod='privatesales'}{/if}</h1>
|
||
|
|
||
|
{if $ordering == 0}
|
||
|
{if isset($manufacturers)}
|
||
|
{if $manufacturers}
|
||
|
<ul class="manufacturers">
|
||
|
{foreach $manufacturers as $m name='manufacturers'}
|
||
|
<li{if $smarty.foreach.manufacturers.index % 2 == 1} class="odd"{/if} onclick="window.location='{$base_dir_ssl}{if $rewriting}{$base_url}/{$m.id_manufacturer}-{$m.name|str2url}.html{else}modules/privatesales/featured.php?id_manufacturer={$m.id_manufacturer}{/if}';">
|
||
|
<a href="{$base_dir_ssl}{if $rewriting}{$base_url}/{$m.id_manufacturer}-{$m.name|str2url}.html{else}modules/privatesales/featured.php?id_manufacturer={$m.id_manufacturer}{/if}">
|
||
|
<span>{$m.name}</span>
|
||
|
<img src="{$img_ps_dir}m/{$m.id_manufacturer}-wide.jpg" alt="" />
|
||
|
</a>
|
||
|
<div class="description">{$m.short_description}</div>
|
||
|
</li>
|
||
|
{/foreach}
|
||
|
</ul>
|
||
|
{else}
|
||
|
<p class="warning">{l s='No featured brand for the moment.' mod='privatesales'}</p>
|
||
|
{/if}
|
||
|
{else}
|
||
|
<p class="warning">{l s='No featured brand for the moment.' mod='privatesales'}</p>
|
||
|
{/if}
|
||
|
{elseif $ordering == 1}
|
||
|
{if isset($tags)}
|
||
|
<div class="description">
|
||
|
{l s='Enter a description for the tags listing here.' mod='privatesales'}
|
||
|
</div>
|
||
|
|
||
|
<ul>
|
||
|
{foreach $tags as $tag}
|
||
|
<li onclick="window.location.href='{$base_dir_ssl}{if $rewriting}{$base_url}/{$tag.id_tag}-{$tag.value|str2url}{else}modules/privatesales/featured.php?id_tag={$tag.id_tag}{/if}'; return false;">
|
||
|
<h3><a href="{$base_dir_ssl}{if $rewriting}{$base_url}/{$tag.id_tag}-{$tag.value|str2url}{else}modules/privatesales/featured.php?id_tag={$tag.id_tag}{/if}">{$tag.value}</a></h3>
|
||
|
<p><a href="{$base_dir_ssl}{if $rewriting}{$base_url}/{$tag.id_tag}-{$tag.value|str2url}{else}modules/privatesales/featured.php?id_tag={$tag.id_tag}{/if}">{$tag.legend}</a></p>
|
||
|
</li>
|
||
|
{/foreach}
|
||
|
</ul>
|
||
|
{elseif isset($manufacturers)}
|
||
|
<div class="description">{$tag.description}</div>
|
||
|
|
||
|
{if $manufacturers}
|
||
|
<ul class="manufacturers">
|
||
|
{foreach $manufacturers as $m name='manufacturers'}
|
||
|
<li{if $smarty.foreach.manufacturers.index % 2 == 1} class="odd"{/if} onclick="window.location='{$base_dir_ssl}{if $rewriting}{$base_url}/{$m.id_manufacturer}-{$m.name|str2url}.html{else}modules/privatesales/featured.php?id_manufacturer={$m.id_manufacturer}{/if}';">
|
||
|
<a href="{$base_dir_ssl}{if $rewriting}{$base_url}/{$m.id_manufacturer}-{$m.name|str2url}.html{else}modules/privatesales/featured.php?id_manufacturer={$m.id_manufacturer}{/if}">
|
||
|
<img src="{$img_ps_dir}m/{$m.id_manufacturer}-wide.jpg" alt="" />
|
||
|
</a>
|
||
|
|
||
|
<div class="description">
|
||
|
<a href="{$base_dir_ssl}{if $rewriting}{$base_url}/{$m.id_manufacturer}-{$m.name|str2url}.html{else}modules/privatesales/featured.php?id_manufacturer={$m.id_manufacturer}{/if}">
|
||
|
<span>{$m.name}</span>
|
||
|
</a>
|
||
|
|
||
|
{$m.short_description}
|
||
|
</div>
|
||
|
</li>
|
||
|
{/foreach}
|
||
|
</ul>
|
||
|
{else}
|
||
|
<p class="warning">{l s='No featured brand for the moment.' mod='privatesales'}</p>
|
||
|
{/if}
|
||
|
{else}
|
||
|
<p class="warning">{l s='No featured brand for the moment.' mod='privatesales'}</p>
|
||
|
{/if}
|
||
|
{/if}
|