Commit 40995765cc67434941f0cd9e47dc73f74ac520b7
1 parent
89de3228
+ upd catalog_product-list.php
Showing
3 changed files
with
2 additions
and
494 deletions
Show diff stats
templates/_catalogs_product.tpl deleted
| 1 | -{include file="box/navig.tpl"} | ||
| 2 | -<div class="product_box" itemscope itemtype = "http://schema.org/Product"> | ||
| 3 | -{* | ||
| 4 | -<div class="pr_t"><div class="l"><div class="r">{$product.rubric_id|rubric}</div></div></div> | ||
| 5 | -*} | ||
| 6 | - <div class="row_product2"><div class="wrp"> | ||
| 7 | - {if $modifications[0].pic}<div style="width:240px;float:left;text-align:center;overflow:hidden;"><a href="{$smarty.const.URL}uploaded/pic/catalogs/modifications/big/{$modifications[0].pic_big}" rel="shadowbox[gal]" title="{$modifications[0].code|stripslashes|escape:"html"}"><img src="{$smarty.const.URL}uploaded/pic/catalogs/modifications/big/{$modifications[0].pic_big}" border="0" class="pic" {if $rubric.is_width eq 1}width="200"{else}height="200"{/if} alt="{$modifications[0].code|stripslashes|escape:'html'}" /></a></div> | ||
| 8 | - {elseif $product.pic2} | ||
| 9 | - <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> | ||
| 10 | - {else} | ||
| 11 | - <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" /> | ||
| 12 | - {/if} | ||
| 13 | - <div class="infor" align="center"> | ||
| 14 | - | ||
| 15 | - | ||
| 16 | -<div class="cost_box"> | ||
| 17 | - | ||
| 18 | -<div id='ratig-layer-{$product.id}' style="float: none;"> | ||
| 19 | -<div class="rating" style=""> | ||
| 20 | - <ul class="unit-rating"> | ||
| 21 | - <li class="current-rating" style="width:{$rating}px;">{$rating}</li> | ||
| 22 | - <li><a href="#" title="Óæàñíî" class="r1-unit" onclick="doRate('1', '{$product.id}'); return false;">1</a></li> | ||
| 23 | - <li><a href="#" title="Ïëîõî" class="r2-unit" onclick="doRate('2', '{$product.id}'); return false;">2</a></li> | ||
| 24 | - <li><a href="#" title="Ñðåäíå" class="r3-unit" onclick="doRate('3', '{$product.id}'); return false;">3</a></li> | ||
| 25 | - <li><a href="#" title="Õîðîøî" class="r4-unit" onclick="doRate('4', '{$product.id}'); return false;">4</a></li> | ||
| 26 | - <li><a href="#" title="Îòëè÷íî" class="r5-unit" onclick="doRate('5', '{$product.id}'); return false;">5</a></li> | ||
| 27 | - </ul> | ||
| 28 | -</div></div> | ||
| 29 | -<div style="display:none;" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"> | ||
| 30 | -<meta itemprop="ratingValue" content="{$product.rating2}"> | ||
| 31 | -<meta itemprop="reviewCount" content="{$product.vote_num}"> | ||
| 32 | -</div> | ||
| 33 | -<p>{$product.rating2} íà îñíîâå<br /> {$product.vote_num} ãîëîñîâ</p> | ||
| 34 | -<br /> | ||
| 35 | - | ||
| 36 | - | ||
| 37 | - | ||
| 38 | - | ||
| 39 | - {if $product.cine_last>0}<div><strike>{$product.cine_last}</strike></div>{/if} | ||
| 40 | - {if $product.is_cost2 eq 1} | ||
| 41 | - <div><strike>{$product.cine}</strike></div> | ||
| 42 | - <br /><div class="cost">{$product.cine2} ãðí.</div> | ||
| 43 | - {if $rubric.is_usd eq 1}<div class="cost">{$product.cine|usd} $</div>{/if} | ||
| 44 | - {else} | ||
| 45 | - <br /><div class="cost">{if $product.salepc>0}<strike>{/if}{$product.cine} ãðí.{if $product.salepc>0}</strike>{/if}</div> | ||
| 46 | - {if $rubric.is_usd eq 1}<div class="cost">{$product.cine|usd} $</div>{/if} | ||
| 47 | - {if $product.salepc>0} | ||
| 48 | - {assign var="twenty_procent" value="`$product.cine*$product.salepc/100`"} | ||
| 49 | - {assign var="cost" value="`$product.cine-$twenty_procent`"} | ||
| 50 | - <br /><img src="{$smarty.const.URL}img/_sale10.png" width="57" height="46" /><br /><br /><div class="cost" style="color:#e31515;font-size:16px;"> = {$cost|round} ãðí.</div> | ||
| 51 | - {/if} | ||
| 52 | - {/if} | ||
| 53 | - <br/><br/><p>Íàëè÷èå è öåíû<br/> óòî÷íÿéòå íà<br/> ìîìåíò ïîêóïêè</p> | ||
| 54 | - </div> | ||
| 55 | - </div> | ||
| 56 | - <div class="infob"> | ||
| 57 | - {* | ||
| 58 | - <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> | ||
| 59 | - *} | ||
| 60 | - <h1>{$product.ph1} {$rubric.list_name} {$product.brend_name|stripslashes} {$product.art|stripslashes} {if $rubric.literal eq 1}{$product.name|stripslashes|prodliteral}{else}{$product.name|stripslashes|replace:'\'':' '}{/if}</h1> | ||
| 61 | - <p> | ||
| 62 | - {*{if $product.sex eq 1}<a href="/{$rubric.translit}-catalogs/filter;sex=male/" class="link_blue">Ìóæñêîé</a> | ||
| 63 | - {elseif $product.sex eq 2}<a href="/{$rubric.translit}-catalogs/filter;sex=female/" class="link_blue">Æåíñêèé</a> | ||
| 64 | - {elseif $product.sex eq 3}<a href="/{$rubric.translit}-catalogs/filter;sex=child/" class="link_blue">Äåòñêèé</a> | ||
| 65 | - {elseif $product.sex eq 4}<a href="/{$rubric.translit}-catalogs/filter;sex=unisex/" class="link_blue">Óíèñåêñ</a> | ||
| 66 | - {/if}*} | ||
| 67 | - {if count($product_sex)>0}<span class="txtb">Ïîë:</span> | ||
| 68 | - {section name=i loop=$product_sex} | ||
| 69 | - {if $product_sex[i].sex eq 1}<a href="/{$rubric.translit}-catalogs/filter;sex=male/" class="link_blue">Ìóæñêîé</a>{/if} | ||
| 70 | - {if $product_sex[i].sex eq 2}<a href="/{$rubric.translit}-catalogs/filter;sex=female/" class="link_blue">Æåíñêèé</a>{/if} | ||
| 71 | - {if $product_sex[i].sex eq 3}<a href="/{$rubric.translit}-catalogs/filter;sex=child/" class="link_blue">Äåòñêèé</a>{/if} | ||
| 72 | - {/section} | ||
| 73 | - {/if} | ||
| 74 | - | ||
| 75 | - {if count($product_years)>0}<span class="txtb">Ãîä âûïóñêà:</span> {section name=i loop=$product_years}<a href="{url4 prefix=y n=$product_years[i].id s=$product_years[i].name}" class="link_blue">{$product_years[i].name}</a> {/section}{/if} | ||
| 76 | - </p> | ||
| 77 | - <p> | ||
| 78 | - <span class="txtb">Íàçíà÷åíèå:</span> {section name=i loop=$product_filters}<a href="{url4 prefix=f n=$product_filters[i].id s=$product_filters[i].prefix}" class="link_blue">{$product_filters[i].name}</a> {/section} | ||
| 79 | - </p> | ||
| 80 | - {if $lang eq 'ukr'}{$product.about|stripslashes}{else}{$product.text|stripslashes}{/if} | ||
| 81 | - <br /><br /> | ||
| 82 | - {if $product.kovrick eq 1} | ||
| 83 | - <a href="http://extremstyle.ua/kovriki_i_matrasyi-catalogs/PE_Campingmat_NA-3610-S-84712/"><img src="/img/kovrick.png" width="168" height="64" border="0" /></a> | ||
| 84 | - {/if} | ||
| 85 | - {if $smarty.get.test eq 1} | ||
| 86 | - <a href="#" id="subscribe"><img src="{$smarty.const.URL}img/subscribe.jpg" width="540" height="58" /></a> | ||
| 87 | - {/if} | ||
| 88 | - {if $product.brend_text} | ||
| 89 | - <br /><a href="#" id="v_slidein" style="display:inline-block;border-bottom:1px dashed black;text-decoration:none;">ðàçìåðíàÿ ñåòêà</a> | ||
| 90 | - <div id="vertical_slide"> | ||
| 91 | - {$product.brend_text|stripslashes} | ||
| 92 | - </div> | ||
| 93 | - {/if} | ||
| 94 | - <div class="both"></div> | ||
| 95 | - </div><div class="both"></div> | ||
| 96 | - {if $product.video_code1}<p><a href="#video" class="link_video">ñìîòðåòü âèäåî</a></p>{/if} | ||
| 97 | - {if $product.brend_pic_s} | ||
| 98 | - <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> | ||
| 99 | - {/if} | ||
| 100 | - {if count($gallery)} | ||
| 101 | - <div class="gallery_box"> | ||
| 102 | - {section name=i loop=$gallery} | ||
| 103 | - <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> | ||
| 104 | - {/section}<div class="both"></div> | ||
| 105 | - </div> | ||
| 106 | - {/if} | ||
| 107 | - </div> | ||
| 108 | -</div></div> | ||
| 109 | - | ||
| 110 | - | ||
| 111 | -<div class="both"></div> | ||
| 112 | - | ||
| 113 | -<div class="bar_products_parent"> | ||
| 114 | - | ||
| 115 | -{include file="box/banner.tpl" banner=$banner_14} | ||
| 116 | -<br /> | ||
| 117 | -{if count($products_top)>0} | ||
| 118 | -<ul class="list"> | ||
| 119 | - <li class="active"><span class="l"></span><a href="#">Òîï òîâàðû</a><span class="r"></span></li> | ||
| 120 | -</ul> | ||
| 121 | -<div class="tab_container2 rd" style="width:215px;margin-bottom:10px;"> | ||
| 122 | -{if count($modifications)>count($products_top)}{assign var=products_top2 value=$products_top}{else}{assign var=products_top2 value=$modifications}{/if} | ||
| 123 | -{section name=i loop=$products_top2} | ||
| 124 | - <div class="product"> | ||
| 125 | - <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> | ||
| 126 | - <p class="name1"><strong>{$products_top[i].rubric}</strong> <a href="{$smarty.const.URL}{$products_top[i].rubric_translit}-catalogs/{$products_top[i].translit}-{$products_top[i].id}/" style="text-transform:uppercase;" class="link_green"><strong>{$products_top[i].name|stripslashes|truncate:30}</strong></a></p> | ||
| 127 | - <p class="cost">{$products_top[i].cine} ãðí.</p> | ||
| 128 | - </div> | ||
| 129 | -{/section} | ||
| 130 | -<p align="center"><a href="{$smarty.const.URL}{$rubric.translit}-catalogs/?topall=1">âñå òîï òîâàðû</a></p> | ||
| 131 | -</div> | ||
| 132 | -{/if} | ||
| 133 | - | ||
| 134 | -{* | ||
| 135 | -<div class="head">Ïðîñìîòðåííûå òîâàðû</div> | ||
| 136 | -<div class="box_products"> | ||
| 137 | -{section name=i loop=$products_view} | ||
| 138 | - <div class="product"> | ||
| 139 | - <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> | ||
| 140 | - <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> | ||
| 141 | - <p class="cost">{$products_view[i].cine} ãðí.</p> | ||
| 142 | - </div> | ||
| 143 | -{/section} | ||
| 144 | -</div> | ||
| 145 | -*} | ||
| 146 | -{* | ||
| 147 | -<div class="head">Ðåêîìåíäóåìûå òîâàðû</div> | ||
| 148 | -<div class="box_products"> | ||
| 149 | -{section name=i loop=$products_parent} | ||
| 150 | - <div class="product"> | ||
| 151 | - <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> | ||
| 152 | - <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> | ||
| 153 | - <p class="cost">{$products_parent[i].cine} ãðí.</p> | ||
| 154 | - </div> | ||
| 155 | -{/section} | ||
| 156 | -</div> | ||
| 157 | -*} | ||
| 158 | -</div> | ||
| 159 | - | ||
| 160 | -<div class="fl"> | ||
| 161 | - | ||
| 162 | - <ul class="list2" id="list7"> | ||
| 163 | - {if count($modifications)>0}<li id="tab31"><a href="#etab31">Ìîäèôèêàöèè</a></li>{/if} | ||
| 164 | - {if count($params)>0}<li id="tab32"><a href="#etab32">Õàðàêòåðèñòèêè</a></li>{/if} | ||
| 165 | - {*<li id="tab33"><a href="#etab33">Îòçûâû</a></li>*} | ||
| 166 | - {if $product.video_code1}<li id="tab34"><a href="#etab34">Âèäåî</a></li>{/if} | ||
| 167 | - {*<li id="tab35"><a href="#etab35">Äîñòàâêà/îïëàòà</a></li>*} | ||
| 168 | - </ul> | ||
| 169 | - | ||
| 170 | - <div class="tab_container3"> | ||
| 171 | - <div id="etab31" class="tab_content7" style="overflow:hidden;width:750px;"> | ||
| 172 | -<table cellpadding="4" cellspacing="1" border="0" width="750" bgcolor="#c1c1c1" style="border-radius:5px 5px 0px 0px;"> | ||
| 173 | -<tr align="center" bgcolor="#969696" height="30" class="tr"><td width="144">Ôîòî</td><td width="150">{if $product.rubric_id eq 14032}Ïîãîäíûå óñëîâèÿ{else}Ðàçìåð{/if}</td>{if $product.rubric_parent_id eq 13976}<td width="150">Ðîñò</td>{/if}</td><td width="150">Öâåò</td><td width="150">Êîä</td><td width="150">Ãäå êóïèòü</td><td width="150">Êóïèòü</td></tr> | ||
| 174 | -{section name=i loop=$modifications} | ||
| 175 | -{if $modifications[i].code} | ||
| 176 | -<tr align="center" bgcolor="#ffffff"> | ||
| 177 | -<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> | ||
| 178 | -<td>{$modifications[i].size} </td> | ||
| 179 | -{if $product.rubric_parent_id eq 13976}<td>{$modifications[i].rost} </td>{/if} | ||
| 180 | -<td>{$modifications[i].color} </td> | ||
| 181 | -<td>{$modifications[i].code} </td> | ||
| 182 | -<td>{if $modifications[i].code|mod_city}{$modifications[i].code|mod_city}{else}Â ðåçåðâå{/if} </td> | ||
| 183 | -<td>{if $modifications[i].cine_last>0}<strike>{$modifications[i].cine_last}</strike><br />{/if}{if $modifications[i].cine>0}{if $modifications[i].sale>0}<strike>{/if}{$modifications[i].cine}{if $modifications[i].sale>0}</strike>{/if}<br />{if $modifications[i].sale>0}{assign var="twenty_procent" value="`$modifications[i].cine*$modifications[i].sale/100`"}{$modifications[i].cine-$twenty_procent|round}{/if}<br />{else}{$product.cine}{/if}<br /><a href="#" rel="product {$modifications[i].id}" class="link_kupit">â êîðçèíó</a></td></tr> | ||
| 184 | -{/if}{/section} | ||
| 185 | -</table> | ||
| 186 | -<br /> | ||
| 187 | -{if $product.video_code} | ||
| 188 | - <center>{$product.video_code|stripslashes}</center> | ||
| 189 | -{/if} | ||
| 190 | -</div> | ||
| 191 | -<div id="etab32" class="tab_content7"> | ||
| 192 | -{if count($params)>0} | ||
| 193 | - <table bgcolor="#C7C7C7" cellpadding="2" cellspacing="1" width="750"> | ||
| 194 | - {section name=i loop=$params} | ||
| 195 | - <tr bgcolor="#ffffff"><td width="200">{$params[i].name}</td><td>{if $params[i].size}{$params[i].size} {/if}{$params[i].metka}</td></tr> | ||
| 196 | - {/section} | ||
| 197 | - </table> | ||
| 198 | -{/if} | ||
| 199 | -</div> | ||
| 200 | -<div id="etab33" class="tab_content7"> | ||
| 201 | -</div> | ||
| 202 | -{*<div id="etab34" class="tab_content7"> | ||
| 203 | -{if $product.video_code} | ||
| 204 | - <center>{$product.video_code|stripslashes}</center> | ||
| 205 | -{/if} | ||
| 206 | -</div>*} | ||
| 207 | -<div id="etab35" class="tab_content7"> | ||
| 208 | -</div> | ||
| 209 | - | ||
| 210 | -</div> | ||
| 211 | -<div class="both"></div> | ||
| 212 | - | ||
| 213 | - | ||
| 214 | - | ||
| 215 | - <!--Begin box--> | ||
| 216 | - | ||
| 217 | - <div style="margin:20px 0px;"> | ||
| 218 | - <ul class="list" id="list5"> | ||
| 219 | - {if count($products_parent)>0}<li id="tab10_n"><span class="l"></span><a href="#etab10_n">Ñîïóòñòâóþùèå òîâàðû</a><span class="r"></span></li>{/if} | ||
| 220 | - <li id="tab11_n"><span class="l"></span><a href="#etab11_n">Ïîõîæèå òîâàðû</a><span class="r"></span></li> | ||
| 221 | - {if count($products_view)}<li id="tab12_n"><span class="l"></span><a href="#etab12_n">Ïðîñìîòðåííûå òîâàðû</a><span class="r"></span></li>{/if} | ||
| 222 | - </ul> | ||
| 223 | - <div class="tab_container rd" style="width:750px;"> | ||
| 224 | - {if count($products_parent)>0} | ||
| 225 | - <div id="etab10_n" class="tab_content5"> | ||
| 226 | - <ul id="mycarousel5" class="jcarousel-skin-tango"> | ||
| 227 | - | ||
| 228 | - {section name=i loop=$products_parent} | ||
| 229 | - <li> | ||
| 230 | - <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> | ||
| 231 | - <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> | ||
| 232 | - <p class="brend1">{$products_parent[i].brend_name}</p> | ||
| 233 | - <p class="cost">{$products_parent[i].cine} ãðí.</p> | ||
| 234 | - <a href="{$smarty.const.URL}{$products_parent[i].rubric_translit}-catalogs/{$products_parent[i].translit}-{$products_parent[i].id}/" class="link_kupit">Êóïèòü</a> | ||
| 235 | - </li> | ||
| 236 | - {/section} | ||
| 237 | - | ||
| 238 | - </ul> | ||
| 239 | - </div> | ||
| 240 | - {/if} | ||
| 241 | - {if count($products_similar_prev) or count($products_similar_next)} | ||
| 242 | - <div id="etab11_n" class="tab_content5"> | ||
| 243 | - <ul id="mycarousel4" class="jcarousel-skin-tango"> | ||
| 244 | - | ||
| 245 | - {section name=i loop=$products_similar_prev} | ||
| 246 | - {if $products_similar_prev[i].pic} | ||
| 247 | - <li> | ||
| 248 | - <a href="{$smarty.const.URL}{$products_similar_prev[i].rubric_translit}-catalogs/{$products_similar_prev[i].translit}-{$products_similar_prev[i].id}/" class="link_pic4"><img src="http://i1.extremstyle.ua/pic/catalogs/products/{$products_similar_prev[i].pic}" alt="{$products_similar_prev[i].title|escape:'html'}" title="{$products_similar_prev[i].title|escape:'html'}" border="0" /></a> | ||
| 249 | - <p class="name1"><a href="{$smarty.const.URL}{$products_similar_prev[i].rubric_translit}-catalogs/{$products_similar_prev[i].translit}-{$products_similar_prev[i].id}/"><strong>{$products_similar_prev[i].name|stripslashes|truncate:30}</strong></a></p> | ||
| 250 | - <p class="brend1">{$products_similar_prev[i].brend_name}</p> | ||
| 251 | - <p class="cost">{$products_similar_prev[i].cine} ãðí.</p> | ||
| 252 | - <a href="{$smarty.const.URL}{$products_similar_prev[i].rubric_translit}-catalogs/{$products_similar_prev[i].translit}-{$products_similar_prev[i].id}/" class="link_kupit">Êóïèòü</a> | ||
| 253 | - </li> | ||
| 254 | - {/if} | ||
| 255 | - {/section} | ||
| 256 | - {section name=i loop=$products_similar_next} | ||
| 257 | - {if $products_similar_next[i].pic} | ||
| 258 | - <li> | ||
| 259 | - <a href="{$smarty.const.URL}{$products_similar_next[i].rubric_translit}-catalogs/{$products_similar_next[i].translit}-{$products_similar_next[i].id}/" class="link_pic4"><img src="http://i1.extremstyle.ua/pic/catalogs/products/{$products_similar_next[i].pic}" alt="{$products_similar_next[i].title|escape:'html'}" title="{$products_similar_next[i].title|escape:'html'}" border="0" /></a> | ||
| 260 | - <p class="name1"><a href="{$smarty.const.URL}{$products_similar_next[i].rubric_translit}-catalogs/{$products_similar_next[i].translit}-{$products_similar_next[i].id}/"><strong>{$products_similar_next[i].name|stripslashes|truncate:30}</strong></a></p> | ||
| 261 | - <p class="brend1">{$products_similar_next[i].brend_name}</p> | ||
| 262 | - <p class="cost">{$products_similar_next[i].cine} ãðí.</p> | ||
| 263 | - <a href="{$smarty.const.URL}{$products_similar_next[i].rubric_translit}-catalogs/{$products_similar_next[i].translit}-{$products_similar_next[i].id}/" class="link_kupit">Êóïèòü</a> | ||
| 264 | - </li> | ||
| 265 | - {/if} | ||
| 266 | - {/section} | ||
| 267 | - | ||
| 268 | - | ||
| 269 | - </ul><div class="both"></div> | ||
| 270 | - | ||
| 271 | - | ||
| 272 | - </div> | ||
| 273 | - {/if} | ||
| 274 | - | ||
| 275 | - {if count($products_view)} | ||
| 276 | - <div id="etab12_n" class="tab_content5"> | ||
| 277 | - <ul id="mycarousel5" class="jcarousel-skin-tango"> | ||
| 278 | - | ||
| 279 | - {section name=i loop=$products_view} | ||
| 280 | - {if $products_view[i].pic} | ||
| 281 | - <li> | ||
| 282 | - <a href="{$smarty.const.URL}{$products_view[i].rubric_translit}-catalogs/{$products_view[i].translit}-{$products_view[i].id}/" class="link_pic4"><img src="http://i1.extremstyle.ua/pic/catalogs/products/{$products_view[i].pic}" alt="{$products_view[i].title|escape:'html'}" title="{$products_view[i].title|escape:'html'}" border="0" /></a> | ||
| 283 | - <p class="name1"><a href="{$smarty.const.URL}{$products_view[i].rubric_translit}-catalogs/{$products_view[i].translit}-{$products_view[i].id}/"><strong>{$products_view[i].name|stripslashes|truncate:30}</strong></a></p> | ||
| 284 | - <p class="brend1">{$products_view[i].brend_name}</p> | ||
| 285 | - <p class="cost">{$products_view[i].cine} ãðí.</p> | ||
| 286 | - <a href="{$smarty.const.URL}{$products_view[i].rubric_translit}-catalogs/{$products_view[i].translit}-{$products_view[i].id}/" class="link_kupit">Êóïèòü</a> | ||
| 287 | - </li> | ||
| 288 | - {/if} | ||
| 289 | - {/section} | ||
| 290 | - | ||
| 291 | - </ul><div class="both"></div> | ||
| 292 | - | ||
| 293 | - | ||
| 294 | - </div> | ||
| 295 | - {/if} | ||
| 296 | - | ||
| 297 | - </div><div class="both"></div> | ||
| 298 | - | ||
| 299 | -</div> | ||
| 300 | - <!--End box--> | ||
| 301 | - | ||
| 302 | - | ||
| 303 | - | ||
| 304 | - {if count($articles)>0} | ||
| 305 | - | ||
| 306 | - {section name=i loop=4 start=0} | ||
| 307 | - {if $articles[i].id>0} | ||
| 308 | - <div class="block_info_item2" style="width:750px;"> | ||
| 309 | - {if $articles[i].pic}<a href="{$smarty.const.URL}articles/{$articles[i].title|translit}-{$articles[i].id}/"><img class="pic right" src="{$smarty.const.URL}uploaded/pic/articles/{$articles[i].pic}" border="0" align="left" alt="{$articles[i].title|escape:'html'}" title="{$articles[i].title|escape:'html'}"></a>{/if} | ||
| 310 | - <p><a href="{$smarty.const.URL}articles/{$articles[i].title|translit}-{$articles[i].id}/" class="link4"><strong>{$articles[i].title}</strong></a></p> | ||
| 311 | - <p>{$articles[i].text|stripslashes|strip_tags:false|truncate:200} <a href="{$smarty.const.URL}articles/{$articles[i].title|translit}-{$articles[i].id}/" class="smill">ïîäðîáíåå</a></p> | ||
| 312 | - <p><span class="date">{$articles[i].date|date_format:"%d/%m/%Y"}</span></p> | ||
| 313 | - <div class="both"></div> | ||
| 314 | - </div> | ||
| 315 | - {/if} | ||
| 316 | - {/section} | ||
| 317 | - | ||
| 318 | -{/if} | ||
| 319 | - | ||
| 320 | - | ||
| 321 | - | ||
| 322 | -</div><div class="both"></div> | ||
| 323 | - | ||
| 324 | - | ||
| 325 | - | ||
| 326 | -{literal}<div class="addsoz"> | ||
| 327 | - <table width="100%" border=0> | ||
| 328 | - <tr> | ||
| 329 | - <td width="50"> | ||
| 330 | - <div id="fb-root"></div> | ||
| 331 | - <script> | ||
| 332 | - (function(d, s, id) { | ||
| 333 | - var js, fjs = d.getElementsByTagName(s)[0]; | ||
| 334 | - if (d.getElementById(id)) {return;} | ||
| 335 | - js = d.createElement(s); js.id = id; | ||
| 336 | - js.src = "//connect.facebook.net/ru_RU/all.js#xfbml=1"; | ||
| 337 | - fjs.parentNode.insertBefore(js, fjs); | ||
| 338 | - }(document, 'script', 'facebook-jssdk')); | ||
| 339 | - </script> | ||
| 340 | - <div class="fb-like" data-href="extremstyle.ua" data-send="false" data-layout="button_count" data-width="50" data-show-faces="true"></div> | ||
| 341 | - </td> | ||
| 342 | - <td width="50"> | ||
| 343 | - <link href="http://stg.odnoklassniki.ru/share/odkl_share.css" rel="stylesheet"> | ||
| 344 | - <script src="http://stg.odnoklassniki.ru/share/odkl_share.js" type="text/javascript" ></script> | ||
| 345 | - <a class="odkl-klass-stat" href="{/literal}{$smarty.server.REQUEST_URI}{literal}" onclick="ODKL.Share(this);return false;" ><span>0</span></a> | ||
| 346 | - </td> | ||
| 347 | - <td width="100%"> | ||
| 348 | - <div style="width:100px;"> | ||
| 349 | - <!-- Put this script tag to the <head> of your page --> | ||
| 350 | - <script type="text/javascript" src="http://userapi.com/js/api/openapi.js?34"></script> | ||
| 351 | - | ||
| 352 | - <script type="text/javascript"> | ||
| 353 | - VK.init({apiId: 2474832, onlyWidgets: true}); | ||
| 354 | - </script> | ||
| 355 | - | ||
| 356 | - <!-- Put this div tag to the place, where the Like block will be --> | ||
| 357 | - <div id="vk_like"></div> | ||
| 358 | - <script type="text/javascript"> | ||
| 359 | - VK.Widgets.Like("vk_like", {type: "10"}); | ||
| 360 | - </script> | ||
| 361 | - </div> | ||
| 362 | - </td> | ||
| 363 | - <td width="30"> | ||
| 364 | - <span class="txtb">Ïîäåëèòüñÿ:</span> | ||
| 365 | - </td> | ||
| 366 | - <td noWrap width="180" align="right"> | ||
| 367 | - <script type="text/javascript" src="http://extremstyle.ua/js/share42/share42.js"></script> | ||
| 368 | - <script type="text/javascript">share42('http://extremstyle.ua/js/share42/','','',150,20)</script> | ||
| 369 | - </td> | ||
| 370 | - </tr> | ||
| 371 | - </table> | ||
| 372 | -</div>{/literal} | ||
| 373 | - | ||
| 374 | - | ||
| 375 | - | ||
| 376 | - | ||
| 377 | - {if count($products_parent1)} | ||
| 378 | - <div class="title3"><div class="l"><div class="r"><div class="w">Ðåêîìåíäóåìûå òîâàðû</div></div></div></div> | ||
| 379 | - <div class="tab_container rd"> | ||
| 380 | - <div id="etab11" class="tab_content2"> | ||
| 381 | - <ul id="mycarousel5" class="jcarousel-skin-tango"> | ||
| 382 | - | ||
| 383 | - {section name=i loop=$products_parent} | ||
| 384 | - <li> | ||
| 385 | - <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> | ||
| 386 | - <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> | ||
| 387 | - <p class="brend1">{$products_parent[i].brend_name}</p> | ||
| 388 | - <p class="cost">{$products_parent[i].cine} ãðí.</p> | ||
| 389 | - <a href="{$smarty.const.URL}{$products_parent[i].rubric_translit}-catalogs/{$products_parent[i].translit}-{$products_parent[i].id}/" class="link_kupit">Êóïèòü</a> | ||
| 390 | - </li> | ||
| 391 | - {/section} | ||
| 392 | - | ||
| 393 | - </ul> | ||
| 394 | - </div></div> | ||
| 395 | - <div> </div> | ||
| 396 | - {/if} | ||
| 397 | - | ||
| 398 | - | ||
| 399 | -{if count($articles1)>0}<br /><br /> | ||
| 400 | - {*<div class="title3"><div class="l"><div class="r"><div class="w">Îáçîðû</div></div></div></div>*} | ||
| 401 | - {if count($articles)>0} | ||
| 402 | - <div style="width:490px;float:left;margin-right:10px;"> | ||
| 403 | - {section name=i loop=4 start=0} | ||
| 404 | - {if $articles[i].id>0} | ||
| 405 | - <div class="block_info_item2"> | ||
| 406 | - {if $articles[i].pic}<a href="{$smarty.const.URL}articles/{$articles[i].title|translit}-{$articles[i].id}/"><img class="pic right" src="{$smarty.const.URL}uploaded/pic/articles/{$articles[i].pic}" border="0" align="left" alt="{$articles[i].title|escape:'html'}" title="{$articles[i].title|escape:'html'}"></a>{/if} | ||
| 407 | - <p><a href="{$smarty.const.URL}articles/{$articles[i].title|translit}-{$articles[i].id}/" class="link4"><strong>{$articles[i].title}</strong></a></p> | ||
| 408 | - <p>{$articles[i].text|stripslashes|strip_tags:false|truncate:200} <a href="{$smarty.const.URL}articles/{$articles[i].title|translit}-{$articles[i].id}/" class="smill">ïîäðîáíåå</a></p> | ||
| 409 | - <p><span class="date">{$articles[i].date|date_format:"%d/%m/%Y"}</span></p> | ||
| 410 | - <div class="both"></div> | ||
| 411 | - </div> | ||
| 412 | - {/if} | ||
| 413 | - {/section} | ||
| 414 | - </div> | ||
| 415 | - <div style="width:500px;float:left;"> | ||
| 416 | - {section name=i loop=$articles start=4} | ||
| 417 | - {if $articles[i].id>0} | ||
| 418 | - <div class="block_info_item2"> | ||
| 419 | - {if $articles[i].pic}<a href="{$smarty.const.URL}articles/{$articles[i].title|translit}-{$articles[i].id}/"><img class="pic right" src="{$smarty.const.URL}uploaded/pic/articles/{$articles[i].pic}" border="0" align="left" alt="{$articles[i].title|escape:'html'}" title="{$articles[i].title|escape:'html'}"></a>{/if} | ||
| 420 | - <p><a href="{$smarty.const.URL}articles/{$articles[i].title|translit}-{$articles[i].id}/" class="link4"><strong>{$articles[i].title}</strong></a></p> | ||
| 421 | - <p>{$articles[i].text|stripslashes|strip_tags:false|truncate:200} <a href="{$smarty.const.URL}articles/{$articles[i].title|translit}-{$articles[i].id}/" class="smill">ïîäðîáíåå</a></p> | ||
| 422 | - <p><span class="date">{$articles[i].date|date_format:"%d/%m/%Y"}</span></p> | ||
| 423 | - <div class="both"></div> | ||
| 424 | - </div> | ||
| 425 | - {/if} | ||
| 426 | - {/section} | ||
| 427 | - </div><div class="both"></div> | ||
| 428 | - {else} | ||
| 429 | - | ||
| 430 | - {/if} | ||
| 431 | -{/if} | ||
| 432 | - | ||
| 433 | -{if $product.doc} | ||
| 434 | -<div class="title3 mt">Äîêóìåíòàöèÿ</div> | ||
| 435 | -{$product.doc|stripslashes} | ||
| 436 | -{/if} | ||
| 437 | -{* | ||
| 438 | -<div class="bots"> | ||
| 439 | -<a href="#" class="tab">Õàðàêòåðèñòèêè</a> <a href="#" class="tab">Ôîòî-âèäåî</a> <a href="#" class="tab">Îáçîðû</a> <a href="#" class="tab">Äîêóìåíòàöèÿ</a> | ||
| 440 | -</div> | ||
| 441 | -<div class="bot_content"> | ||
| 442 | - <div class="feature">{if $product.params}{$product.params|stripslashes}{else}Çàêëàäêà ïóñòà!{/if}</div> | ||
| 443 | - <div class="feature"> | ||
| 444 | - <div class="txtb">Ôîòî:</div> | ||
| 445 | - {if count($gallery)>0} | ||
| 446 | - {section name=i loop=$gallery} | ||
| 447 | - <div class="box_pic"> | ||
| 448 | - <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> | ||
| 449 | - <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> | ||
| 450 | - </div> | ||
| 451 | - {if not ($smarty.section.i.rownum mod 3)}<div class="both"></div>{/if} | ||
| 452 | - {/section}<div class="both"></div> | ||
| 453 | - {else}ïóñòî!{/if} | ||
| 454 | - <div class="txtb">Âèäåî:</div> | ||
| 455 | - {if count($video)>0} | ||
| 456 | - {section name=i loop=$video} | ||
| 457 | - <div id="video_{$video[i].id}" class="ct">{if $video[i].type eq "code"}{$video[i].code|stripslashes}{/if}</div> | ||
| 458 | - <p class="ct">{$video[i].name}</p> | ||
| 459 | - {if $video[i].type eq "video"} | ||
| 460 | - <script type="text/javascript">{literal} | ||
| 461 | - var obj = new Swiff('{/literal}{$smarty.const.URL}{literal}js/player.swf', { | ||
| 462 | - width: 500, | ||
| 463 | - height: 300, | ||
| 464 | - container: $('video_{/literal}{$video[i].id}{literal}'), | ||
| 465 | -params: { | ||
| 466 | - allowfullscreen: 'true', | ||
| 467 | - allowscriptaccess: 'always', | ||
| 468 | - wmode: 'transparent', | ||
| 469 | - flashvars: 'file={/literal}{$smarty.const.URL}uploaded/pic/catalogs/video/{$video[i].video}{literal}' | ||
| 470 | - }, | ||
| 471 | - events: { | ||
| 472 | - onLoad: function() { | ||
| 473 | - alert("Flash is loaded!") | ||
| 474 | - } | ||
| 475 | - } | ||
| 476 | -});{/literal}</script> | ||
| 477 | - {/if} | ||
| 478 | - {/section} | ||
| 479 | - {else}ïóñòî!{/if} | ||
| 480 | - </div> | ||
| 481 | - <div class="feature"> | ||
| 482 | - {if count($articles)>0} | ||
| 483 | - {section name=i loop=$articles} | ||
| 484 | - <p><a href="{$smarty.const.URL}articles/{$articles[i].id}/">{$articles[i].title}</a></p> | ||
| 485 | - {/section} | ||
| 486 | - {else} | ||
| 487 | - Çàêëàäêà ïóñòà! | ||
| 488 | - {/if} | ||
| 489 | - </div> | ||
| 490 | - <div class="feature">{if $product.doc}{$product.doc|stripslashes}{else}Çàêëàäêà ïóñòà!{/if}</div> | ||
| 491 | -</div> | ||
| 492 | -*} |
templates/admin/catalogs_products.tpl renamed to templates/admin/catalogs_product-list.tpl
templates/catalogs_product.tpl
| @@ -66,10 +66,10 @@ | @@ -66,10 +66,10 @@ | ||
| 66 | {elseif $product_sex[i].sex eq 4}<a href="{$smarty.const.URL}{$lang_prefix}{$rubric.translit}-catalogs/filter;sex=unisex/" class="link_blue">{$smarty.const.SEX_4}</a> | 66 | {elseif $product_sex[i].sex eq 4}<a href="{$smarty.const.URL}{$lang_prefix}{$rubric.translit}-catalogs/filter;sex=unisex/" class="link_blue">{$smarty.const.SEX_4}</a> |
| 67 | {/if} | 67 | {/if} |
| 68 | {/section} | 68 | {/section} |
| 69 | - {if count($product_years)>0}<span class="txtb">{$smarty.const.FILTER_LABEL_8}</span> {section name=i loop=$product_years}<a href="{url4 prefix=y n=$product_years[i].id s=$product_years[i].name}" class="link_blue">{$product_years[i].name}</a> {/section}{/if} | 69 | + {if count($product_years)>0}<span class="txtb">{$smarty.const.FILTER_LABEL_8}</span> {section name=i loop=$product_years}<a href="{$smarty.const.URL}{$lang_prefix}{url4 prefix=y n=$product_years[i].id s=$product_years[i].name}" class="link_blue">{$product_years[i].name}</a> {/section}{/if} |
| 70 | </p> | 70 | </p> |
| 71 | <p> | 71 | <p> |
| 72 | - <span class="txtb">{if $rubric.filter}{$rubric.filter}{else}{$smarty.const.FILTER_LABEL_3}{/if}</span> {section name=i loop=$product_filters}<a href="{url4 prefix=f n=$product_filters[i].id s=$product_filters[i].prefix}" class="link_blue">{$product_filters[i].name}</a> {/section} | 72 | + <span class="txtb">{if $rubric.filter}{$rubric.filter}{else}{$smarty.const.FILTER_LABEL_3}{/if}</span> {section name=i loop=$product_filters}<a href="{$smarty.const.URL}{$lang_prefix}{url4 prefix=f n=$product_filters[i].id s=$product_filters[i].prefix}" class="link_blue">{$product_filters[i].name}</a> {/section} |
| 73 | </p> | 73 | </p> |
| 74 | {if $lang eq 'ukr'}{$product.about|stripslashes}{else}{$product.text|stripslashes}{/if} | 74 | {if $lang eq 'ukr'}{$product.about|stripslashes}{else}{$product.text|stripslashes}{/if} |
| 75 | <br /><br /> | 75 | <br /><br /> |