catalogs_products_hits.tpl
5.8 KB
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{if count($products_akcii)}
<div class="box5 mt">
<div id="SlideItMoo_outer2">
<div id="SlideItMoo_inner2">
<div id="SlideItMoo_items2">
{section name=i loop=$products_akcii}
<div class="SlideItMoo_element2"><div class="row" align="center">
<a href="{$smarty.const.URL}catalogs/{$products_akcii[i].rubric_id}/t{$products_akcii[i].id}/"><img src="{$smarty.const.URL}uploaded/pic/catalogs/products/a_{$products_akcii[i].pic}" alt="{$products_akcii[i].title|escape:'html'}" title="{$products_akcii[i].title|escape:'html'}" border="0" class="pic" /></a>
<div class="name2"><a href="{$smarty.const.URL}catalogs/{$products_akcii[i].rubric_id}/t{$products_akcii[i].id}/"><strong>{$products_akcii[i].name|stripslashes}</strong></a></div>
<div class="cine"><div class="l"><div class="r"><div class="w">{$products_akcii[i].cine} ãðí.</div></div></div></div>
</div> </div>
{/section}
</div>
</div>
</div>
</div>
{/if}
{if count($products_hits)>0}
<div class="box5 mt">
<div id="SlideItMoo_outer2">
<div id="SlideItMoo_inner2">
<div id="SlideItMoo_items2">
{section name=i loop=$products_hits}
<div class="SlideItMoo_element2"><div class="row" align="center">
<a href="{$smarty.const.URL}catalogs/{$products_hits[i].rubric_id}/t{$products_hits[i].id}/"><img src="{$smarty.const.URL}uploaded/pic/catalogs/products/a_{$products_hits[i].pic}" alt="{$products_hits[i].title|escape:'html'}" title="{$products_hits[i].title|escape:'html'}" border="0" class="pic" /></a>
<div class="name2"><a href="{$smarty.const.URL}catalogs/{$products_hits[i].rubric_id}/t{$products_hits[i].id}/"><strong>{$products_hits[i].name|stripslashes}</strong></a></div>
<div class="cine"><div class="l"><div class="r"><div class="w">{$products_hits[i].cine} ãðí.</div></div></div></div>
</div> </div>
{/section}
</div>
</div>
</div>
</div>
{/if}
{*
<div class="akciya mt">
{section name=i loop=$products_hits}
<div class="row {if not ($smarty.section.i.rownum mod 4)}n{/if}" align="center">
<a href="{$smarty.const.URL}catalogs/{$products_hits[i].rubric_id}/t{$products_hits[i].id}/"><img src="{$smarty.const.URL}uploaded/pic/catalogs/products/a_{$products_hits[i].pic}" alt="{$products_hits[i].title|escape:'html'}" title="{$products_hits[i].title|escape:'html'}" border="0" class="pic" /></a>
<div class="name1"><a href="{$smarty.const.URL}catalogs/{$products_hits[i].rubric_id}/t{$products_hits[i].id}/"><strong>{$products_hits[i].name|stripslashes}</strong></a></div>
<div class="cine"><div class="l"><div class="r"><div class="w">{$products_hits[i].cine} ãðí.</div></div></div></div>
</div>{if not ($smarty.section.i.rownum mod 4)}<div class="both"></div>{/if}
{/section}<div class="both"></div>
</div>
*}
<div class="rbk mt">
{section name=i loop=$catalogs_rubrics_begin}
<div class="row {if not ($smarty.section.i.rownum mod 4)}n{/if}">
<div class="title2"><div class="l"><div class="r"><a href="{$smarty.const.URL}{$catalogs_rubrics_begin[i].parents[0].translit}-catalogs/">{$catalogs_rubrics_begin[i].name}</a></div></div></div>
<div class="box2">
<img src="{$smarty.const.URL}uploaded/pic/catalogs/rubrics/{$catalogs_rubrics_begin[i].pic}" align="left" /> {section name=j loop=$catalogs_rubrics_begin[i].parents}<a href="{$smarty.const.URL}{$catalogs_rubrics_begin[i].parents[j].translit}-catalogs/">{$catalogs_rubrics_begin[i].parents[j].name}</a>{if $smarty.section.j.index<count($catalogs_rubrics_begin[i].parents)-1}, {/if}{/section}
</div>
</div>{if not ($smarty.section.i.rownum mod 4)}<div class="both"></div>{/if}
{/section}<div class="both"></div>
</div>
{if count($products_top)>0}
<!--box-->
<div class="title mt"><div class="l"><div class="r">Ïîïóëÿðíûå òîâàðû</div></div></div>
<div class="box3">
<div id="SlideItMoo_outer">
<div id="SlideItMoo_inner">
<div id="SlideItMoo_items">
{section name=i loop=$products_top}
<div class="SlideItMoo_element">
<a href="{$smarty.const.URL}{$products_top[i].rubric_translit}-catalogs/{$products_top[i].translit}-{$products_top[i].id}/"><img src="{$smarty.const.URL}uploaded/pic/catalogs/products/{$products_top[i].pic}" alt="{$products_top[i].title|escape:'html'}" title="{$products_top[i].title|escape:'html'}" border="0" class="pic" /></a>
<p class="name1"><a href="{$smarty.const.URL}{$products_top[i].rubric_translit}-catalogs/{$products_top[i].translit}-{$products_top[i].id}/"><strong>{$products_top[i].name|stripslashes}</strong></a></p>
<p class="brend1">{$products_top[i].brend_name}</p>
<p class="cine2">{$products_top[i].cine} ãðí.</p>
</div>
{/section}
</div>
</div>
</div>
</div>
<!--end box-->
{/if}
<div class="title2 mb"><div class="l"><div class="r">Ñòàòüè</div></div></div>
<div class="mt">
<div class="item_article">
<ul>
{section name=i loop=$articles_last}
<li><a href="{$smarty.const.URL}articles/{$articles_last[i].id}/" class="link3">{$articles_last[i].title}</a></li>
{if not ($smarty.section.i.rownum mod 8) && count($articles_last)-1>$smarty.section.i.index}</ul></div><div class="item_article {if not ($smarty.section.i.rownum mod 1)}imn{/if}"><ul>{/if}
{/section}</ul></div><div class="both"></div>
<div class="ct mt"><a href="{$smarty.const.URL}articles/" class="smill">Âñå ñòàòüè</a></div>
</div>