-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathsupplier-list.tpl
85 lines (77 loc) · 2.66 KB
/
supplier-list.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{*
* =|= Suppliers ================================================
*
* List of store's product suppliers.
* ==============================================================
*}
{capture name=path}{l s='Suppliers'}{/capture}
{include file="$tpl_dir./breadcrumb.tpl"}
<h1>{l s='Suppliers'}</h1>
{if isset($errors) AND $errors}
{include file="$tpl_dir./errors.tpl"}
{else}
<p class="nbrmanufacturer">{strip}
<span class="bold">
{if $nbSuppliers == 0}{l s='There are no suppliers.'}
{else}
{if $nbSuppliers == 1}
{l s='There is %d supplier.' sprintf=$nbSuppliers}
{else}
{l s='There are %d suppliers.' sprintf=$nbSuppliers}
{/if}
{/if}
</span>{/strip}
</p>
{if $nbSuppliers > 0}
<ul id="suppliers_list">
{foreach $suppliers_list as $supplier}
<li class="clearfix {if $supplier@first}first_item{elseif $supplier@last}last_item{else}item{/if}">
<div class="left_side">
<!-- logo -->
<div class="logo">
{if $supplier.nb_products > 0}
<a href="{$link->getsupplierLink($supplier.id_supplier, $supplier.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$supplier.name|escape:'htmlall':'UTF-8'}">
{/if}
<img src="{$img_sup_dir}{$supplier.image|escape:'htmlall':'UTF-8'}-medium.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />
{if $supplier.nb_products > 0}
</a>
{/if}
</div>
<!-- name -->
<h3>
{if $supplier.nb_products > 0}
<a href="{$link->getsupplierLink($supplier.id_supplier, $supplier.link_rewrite)|escape:'htmlall':'UTF-8'}">
{/if}
{$supplier.name|truncate:60:'...'|escape:'htmlall':'UTF-8'}
{if $supplier.nb_products > 0}
</a>
{/if}
</h3>
<p class="description">
{if $supplier.nb_products > 0}
<a href="{$link->getsupplierLink($supplier.id_supplier, $supplier.link_rewrite)|escape:'htmlall':'UTF-8'}">
{/if}
{$supplier.description|escape:'htmlall':'UTF-8'}
{if $supplier.nb_products > 0}
</a>
{/if}
{if $supplier.nb_products > 0}
<a href="{$link->getsupplierLink($supplier.id_supplier, $supplier.link_rewrite)|escape:'htmlall':'UTF-8'}">
{/if}
<span>{if $supplier.nb_products == 1}{l s='%d product' sprintf=$supplier.nb_products|intval}{else}{l s='%d products' sprintf=$supplier.nb_products|intval}{/if}</span>
{if $supplier.nb_products > 0}
</a>
{/if}
</p>
</div>
<div class="right_side">
{if $supplier.nb_products > 0}
<a class="button" href="{$link->getsupplierLink($supplier.id_supplier, $supplier.link_rewrite)|escape:'htmlall':'UTF-8'}">{l s='view products'}</a>
{/if}
</div>
</li>
{/foreach}
</ul>
{include file="$tpl_dir./pagination.tpl"}
{/if}
{/if}