last_catalogs_product.tpl
14.3 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
{include file="box/navig.tpl"}
<div class="product_box" itemscope itemtype = "http://schema.org/Product">
{*
<div class="pr_t"><div class="l"><div class="r">{$product.rubric_id|rubric}</div></div></div>
*}
<div class="row_product2"><div class="wrp">
{if $product.pic2}
<a href="{$smarty.const.URL}uploaded/pic/catalogs/products/big/{$product.pic_big}" rel="shadowbox[gal]" title="{$product.name|stripslashes|escape:"html"}"><img src="{$smarty.const.URL}{if $product.pic2}uploaded/pic/catalogs/products/2/{$product.pic2}{elseif $product.pic}uploaded/pic/catalogs/products/{$product.pic}{else}http://extremstyle.ua/img/picno.jpg{/if}" alt="{$product.name|escape:'html'}" title="{$product.name|escape:'html'}" border="0" class="pic" align="left" width="244" /></a>
{else}
<img src="{$smarty.const.URL}img/picno.jpg" alt="{$product.name|escape:'html'}" title="{$product.name|escape:'html'}" border="0" class="pic" align="left" width="244" />
{/if}
<div class="infor" align="center">
<div class="cost_box">
<div id='ratig-layer-{$product.id}' style="float: none;">
<div class="rating" style="">
<ul class="unit-rating">
<li class="current-rating" style="width:{$rating}px;">{$rating}</li>
<li><a href="#" title="Óæàñíî" class="r1-unit" onclick="doRate('1', '{$product.id}'); return false;">1</a></li>
<li><a href="#" title="Ïëîõî" class="r2-unit" onclick="doRate('2', '{$product.id}'); return false;">2</a></li>
<li><a href="#" title="Ñðåäíå" class="r3-unit" onclick="doRate('3', '{$product.id}'); return false;">3</a></li>
<li><a href="#" title="Õîðîøî" class="r4-unit" onclick="doRate('4', '{$product.id}'); return false;">4</a></li>
<li><a href="#" title="Îòëè÷íî" class="r5-unit" onclick="doRate('5', '{$product.id}'); return false;">5</a></li>
</ul>
</div></div>
<div style="display:none;" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
<meta itemprop="ratingValue" content="{$product.rating2}">
<meta itemprop="reviewCount" content="{$product.vote_num}">
</div>
<p>{$product.rating2} íà îñíîâå<br /> {$product.vote_num} ãîëîñîâ</p>
<br />
{if $product.cine_last>0}<div><strike>{$product.cine_last}</strike></div>{/if}
{if $product.is_cost2 eq 1}
<div><strike>{$product.cine}</strike></div>
<br /><div class="cost">{$product.cine2} ãðí.</div>
{if $rubric.is_usd eq 1}<div class="cost">{$product.cine|usd} $</div>{/if}
{else}
<br /><div class="cost">{$product.cine} ãðí.</div>
{if $rubric.is_usd eq 1}<div class="cost">{$product.cine|usd} $</div>{/if}
{/if}
<br/><br/><p>Íàëè÷èå è öåíû<br/> óòî÷íÿéòå íà<br/> ìîìåíò ïîêóïêè</p>
</div>
</div>
<div class="infob">
<span class="h1">{$rubric.list_name}</span> <a href="{$smarty.const.URL}catalogs/brends/{$product.brend_name}/" class="f18">{$product.brend_name|stripslashes}</a>, <h1 itemprop="name">{if $rubric.literal eq 1}{$product.name|stripslashes|prodliteral}{else}{$product.name|stripslashes}{/if}</h1><div class="both"></div>
{$product.text|stripslashes}
{if $product.brend_text}
<br /><a href="#" id="v_slidein" style="display:inline-block;border-bottom:1px dashed black;text-decoration:none;">ðàçìåðíàÿ ñåòêà</a>
<div id="vertical_slide">
{$product.brend_text|stripslashes}
</div>
{/if}
<div class="both"></div>
</div><div class="both"></div>
{if $product.video_code}<p><a href="#video" class="link_video">ñìîòðåòü âèäåî</a></p>{/if}
{if $product.brend_pic_s}
<p><a href="{$smarty.const.URL}uploaded/pic/catalogs/brends/s/{$product.brend_pic_s}" rel="shadowbox[gal]" style="border-bottom:1px dashed black;text-decoration:none;" title="ðàçìåðíàÿ ñåòêà">ðàçìåðíàÿ ñåòêà</a></p>
{/if}
{if count($gallery)}
<div class="gallery_box">
{section name=i loop=$gallery}
<a href="{$smarty.const.URL}uploaded/pic/catalogs/products/big/{$gallery[i].pic_big}" rel="shadowbox[gal]" title="{$gallery[i].name|stripslashes|escape:"html"}" class="link_pic2"><img src="{$smarty.const.URL}uploaded/pic/catalogs/products/gallery/{$gallery[i].pic}" border="0" alt="{$gallery[i].name}" title="{$gallery[i].name}" /></a>
{/section}<div class="both"></div>
</div>
{/if}
</div>
</div></div>
<div class="both"></div>
<div class="bar_products_parent">
{include file="box/banner.tpl" banner=$banner_14}
<div class="head">Ïðîñìîòðåííûå òîâàðû</div>
<div class="box_products">
{section name=i loop=$products_view}
<div class="product">
<a href="{$smarty.const.URL}{$products_view[i].rubric_translit}-catalogs/{$products_view[i].translit}-{$products_view[i].id}/"><img src="{$smarty.const.URL}uploaded/pic/catalogs/products/{$products_view[i].pic}" alt="{$products_view[i].title|escape:'html'}" title="{$products_view[i].title|escape:'html'}" border="0" class="pic" /></a>
<p class="name1"><strong>{$products_view[i].rubric}</strong> <a href="{$smarty.const.URL}{$products_view[i].rubric_translit}-catalogs/{$products_view[i].translit}-{$products_view[i].id}/" style="text-transform:uppercase;" class="link_green"><strong>{$products_view[i].name|stripslashes|truncate:30}</strong></a></p>
<p class="cost">{$products_view[i].cine} ãðí.</p>
</div>
{/section}
</div>
{*
<div class="head">Ðåêîìåíäóåìûå òîâàðû</div>
<div class="box_products">
{section name=i loop=$products_parent}
<div class="product">
<a href="{$smarty.const.URL}{$products_parent[i].rubric_translit}-catalogs/{$products_parent[i].translit}-{$products_parent[i].id}/"><img src="{$smarty.const.URL}uploaded/pic/catalogs/products/{$products_parent[i].pic}" alt="{$products_parent[i].title|escape:'html'}" title="{$products_parent[i].title|escape:'html'}" border="0" class="pic" /></a>
<p class="name1"><strong>{$products_parent[i].rubric}</strong> <a href="{$smarty.const.URL}{$products_parent[i].rubric_translit}-catalogs/{$products_parent[i].translit}-{$products_parent[i].id}/" style="text-transform:uppercase;" class="link_green"><strong>{$products_parent[i].name|stripslashes|truncate:30}</strong></a></p>
<p class="cost">{$products_parent[i].cine} ãðí.</p>
</div>
{/section}
</div>
*}
</div>
<table cellpadding="4" cellspacing="1" border="0" width="750" bgcolor="#c1c1c1" style="border-radius:5px 5px 0px 0px;">
<tr align="center" bgcolor="#969696" height="30" class="tr"><td width="144">Ôîòî</td><td width="150">Ðàçìåð</td><td width="150">Öâåò</td><td width="150">Êîä</td><td width="150">Ãäå êóïèòü</td><td width="150">Êóïèòü</td></tr>
{section name=i loop=$modifications}
{if $modifications[i].code}
<tr align="center" bgcolor="#ffffff"><td>{if $modifications[i].pic}<a href="{$smarty.const.URL}uploaded/pic/catalogs/modifications/big/{$modifications[i].pic_big}" rel="shadowbox[gal]" title="{$modifications[i].code|stripslashes|escape:"html"}"><img src="{$smarty.const.URL}uploaded/pic/catalogs/modifications/{$modifications[i].pic}" border="0" class="pic" alt="{$modifications[i].code|stripslashes|escape:"html"}" /></a>{else}<img src="{$smarty.const.URL}img/picno2.jpg" border="0" class="pic" alt="{$modifications[i].code|stripslashes|escape:"html"}" />{/if}</td><td>{$modifications[i].size} </td><td>{$modifications[i].color} </td><td>{$modifications[i].code} </td><td>{$modifications[i].code|mod_city} </td><td><a href="#" rel="product {$modifications[i].id}" class="link_kupit">â êîðçèíó</a></td></tr>
{/if}{/section}
</table>
<div class="both"></div>
{literal}<div class="addsoz">
<table width="100%" border=0>
<tr>
<td width="50">
<div id="fb-root"></div>
<script>
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/ru_RU/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<div class="fb-like" data-href="extremstyle.ua" data-send="false" data-layout="button_count" data-width="50" data-show-faces="true"></div>
</td>
<td width="50">
<link href="http://stg.odnoklassniki.ru/share/odkl_share.css" rel="stylesheet">
<script src="http://stg.odnoklassniki.ru/share/odkl_share.js" type="text/javascript" ></script>
<a class="odkl-klass-stat" href="{/literal}{$smarty.server.REQUEST_URI}{literal}" onclick="ODKL.Share(this);return false;" ><span>0</span></a>
</td>
<td width="100%">
<div style="width:100px;">
<!-- Put this script tag to the <head> of your page -->
<script type="text/javascript" src="http://userapi.com/js/api/openapi.js?34"></script>
<script type="text/javascript">
VK.init({apiId: 2474832, onlyWidgets: true});
</script>
<!-- Put this div tag to the place, where the Like block will be -->
<div id="vk_like"></div>
<script type="text/javascript">
VK.Widgets.Like("vk_like", {type: "10"});
</script>
</div>
</td>
<td width="30">
<span class="txtb">Ïîäåëèòüñÿ:</span>
</td>
<td noWrap width="180" align="right">
<script type="text/javascript" src="http://extremstyle.ua/js/share42/share42.js"></script>
<script type="text/javascript">share42('http://extremstyle.ua/js/share42/','','',150,20)</script>
</td>
</tr>
</table>
</div>{/literal}
{if count($products_parent)}
<div class="title3"><div class="l"><div class="r"><div class="w">Ðåêîìåíäóåìûå òîâàðû</div></div></div></div>
<div class="tab_container rd">
<div id="etab11" class="tab_content2">
<ul id="mycarousel5" class="jcarousel-skin-tango">
{section name=i loop=$products_parent}
<li>
<a href="{$smarty.const.URL}{$products_parent[i].rubric_translit}-catalogs/{$products_parent[i].translit}-{$products_parent[i].id}/"><img src="{$smarty.const.URL}uploaded/pic/catalogs/products/{$products_parent[i].pic}" alt="{$products_parent[i].title|escape:'html'}" title="{$products_parent[i].title|escape:'html'}" border="0" class="pic" /></a>
<p class="name1"><a href="{$smarty.const.URL}{$products_parent[i].rubric_translit}-catalogs/{$products_parent[i].translit}-{$products_parent[i].id}/"><strong>{$products_parent[i].name|stripslashes|truncate:30}</strong></a></p>
<p class="brend1">{$products_parent[i].brend_name}</p>
<p class="cost">{$products_parent[i].cine} ãðí.</p>
<a href="{$smarty.const.URL}{$products_parent[i].rubric_translit}-catalogs/{$products_parent[i].translit}-{$products_parent[i].id}/" class="link_kupit">Êóïèòü</a>
</li>
{/section}
</ul>
</div></div>
<div> </div>
{/if}
{if count($params)>0}
<div class="title3"><div class="l"><div class="r"><div class="w">Õàðàêòåðèñòèêè</div></div></div></div>
<table bgcolor="#C7C7C7" cellpadding="2" cellspacing="1" width="100%">
{section name=i loop=$params}
<tr bgcolor="#ffffff"><td width="200">{$params[i].name}</td><td>{if $params[i].size}{$params[i].size} {/if}{$params[i].metka}</td></tr>
{/section}
</table>
{/if}
{if $product.video_code}
<div id="video" class="title3"><div class="l"><div class="r"><div class="w">Âèäåî</div></div></div></div>
<center>{$product.video_code|stripslashes}</center>
{/if}
{if count($articles)>0}
<div class="title3"><div class="l"><div class="r"><div class="w">Îáçîðû</div></div></div></div>
{if count($articles)>0}
{section name=i loop=$articles}
<p><a href="{$smarty.const.URL}articles/{$articles[i].id}/">{$articles[i].title}</a></p>
{/section}
{else}
{/if}
{/if}
{if $product.doc}
<div class="title3 mt">Äîêóìåíòàöèÿ</div>
{$product.doc|stripslashes}
{/if}
{*
<div class="bots">
<a href="#" class="tab">Õàðàêòåðèñòèêè</a> <a href="#" class="tab">Ôîòî-âèäåî</a> <a href="#" class="tab">Îáçîðû</a> <a href="#" class="tab">Äîêóìåíòàöèÿ</a>
</div>
<div class="bot_content">
<div class="feature">{if $product.params}{$product.params|stripslashes}{else}Çàêëàäêà ïóñòà!{/if}</div>
<div class="feature">
<div class="txtb">Ôîòî:</div>
{if count($gallery)>0}
{section name=i loop=$gallery}
<div class="box_pic">
<p><a href="{$smarty.const.URL}uploaded/pic/catalogs/gallery/big/{$gallery[i].pic_big}" rel="milkbox[galls2]" title="{$gallery[i].name|stripslashes|escape:"html"}"><strong>{$gallery[i].name}</strong></a></p>
<a href="{$smarty.const.URL}uploaded/pic/catalogs/gallery/big/{$gallery[i].pic_big}" rel="milkbox[galls1]" title="{$gallery[i].name|stripslashes|escape:"html"}"><img src="{$smarty.const.URL}uploaded/pic/catalogs/gallery/{$gallery[i].pic}" border="0" alt="{$gallery[i].name}" title="{$gallery[i].name}" class="pic" /></a>
</div>
{if not ($smarty.section.i.rownum mod 3)}<div class="both"></div>{/if}
{/section}<div class="both"></div>
{else}ïóñòî!{/if}
<div class="txtb">Âèäåî:</div>
{if count($video)>0}
{section name=i loop=$video}
<div id="video_{$video[i].id}" class="ct">{if $video[i].type eq "code"}{$video[i].code|stripslashes}{/if}</div>
<p class="ct">{$video[i].name}</p>
{if $video[i].type eq "video"}
<script type="text/javascript">{literal}
var obj = new Swiff('{/literal}{$smarty.const.URL}{literal}js/player.swf', {
width: 500,
height: 300,
container: $('video_{/literal}{$video[i].id}{literal}'),
params: {
allowfullscreen: 'true',
allowscriptaccess: 'always',
wmode: 'transparent',
flashvars: 'file={/literal}{$smarty.const.URL}uploaded/pic/catalogs/video/{$video[i].video}{literal}'
},
events: {
onLoad: function() {
alert("Flash is loaded!")
}
}
});{/literal}</script>
{/if}
{/section}
{else}ïóñòî!{/if}
</div>
<div class="feature">
{if count($articles)>0}
{section name=i loop=$articles}
<p><a href="{$smarty.const.URL}articles/{$articles[i].id}/">{$articles[i].title}</a></p>
{/section}
{else}
Çàêëàäêà ïóñòà!
{/if}
</div>
<div class="feature">{if $product.doc}{$product.doc|stripslashes}{else}Çàêëàäêà ïóñòà!{/if}</div>
</div>
*}