Группа: Пользователь Ранг: Мастер Регистрация: 29.10.2009 | вот по аналогии с shop_start_topseller.tpl переделал page_extern_products_new_extended.tpl, но что-то не выходит каменный цветок {if $extern_topseller_array} <script type="text/javascript"> $(function() {ldelim} $('#container-topsellers ul.rounded').tabs(); {rdelim}); $(document).ready(function() {ldelim} $('div.topseller_in_shop').toggleElements({ldelim}fxAnimation:'false', fxSpeed:'normal', className:'toggler',onClick:TopSellerInShopCloser,onHide:TopSellerInShopOpener{rdelim} ); {rdelim}); function TopSellerInShopOpener() {ldelim}$.cookie('topseller_in_shop','opened', {ldelim}expires: 30,path: '{$cookiepath}'{rdelim});{rdelim} function TopSellerInShopCloser() {ldelim}$.cookie('topseller_in_shop', '', {ldelim}expires: 30,path: '{$cookiepath}'{rdelim});{rdelim} </script> <div class="opener"> <div class="topseller_in_shop{if $smarty.cookies.topseller_in_shop=='opened'}{else} opened{/if}" title="<h3>{#Shop_Topseller#}</h3>"> <div id="container-topsellers"> <ul class="rounded"> {foreach from=$extern_topseller_array item=p name=topsellers} {assign var=count2 value=$count2+1} {if $count2 % $newest_colums==0 && !$smarty.foreach.topsellers.last || ($smarty.foreach.topsellers.first)} {assign var=nc value=$nc+1} <li><a href="#topsellers-{$nc}"><span>{#Shop_artpage#} {$nc}</span></a></li> {/if} {/foreach} </ul> <div class="clear"></div> <div id="topsellers-1" class="ui-tabs-panel-content"> <table width="100%" cellpadding="0" cellspacing="0"> <tr> {foreach from=$extern_topseller_array item=p name=topsellers} {assign var=count_split value=$count_split+1} {if $count_split % $newest_colums==0 && !$smarty.foreach.topsellers.last || ($smarty.foreach.topsellers.first)} {assign var=div_split value=$div_split+1} {/if} {assign var=count value=$count+1} <td style="width:{$colums_width}%"> <div class="shop_newest_boxes"> <div class="{if $count % $newest_colums==0}shop_newest_first{else}shop_newest_second{/if}" {if $count > $newest_colums}style="border-top:0px"{/if}> <div class="shop_product_text"> <div class="shop_image_newstart"> <a title="{$p.Titel|sysspecialchars} - {$p.Beschreibung|striptags|sysspecialchars|truncate:150}" href="{$p.ProdLink}"><img src="{$p.Bild_Mittel}" alt="{$p.Titel|sysspecialchars}" border="0" /></a> </div> <div class="shop_product_title_new"> <a title="{$p.Titel|sysspecialchars} - {$p.Beschreibung|striptags|sysspecialchars|truncate:150}" href="{$p.ProdLink}">{$p.Titel|sysspecialchars|truncate:25}</a> </div> <!-- <div class="shop_articlenumber">{#Shop_ArticleNumber#}: {$p.Artikelnummer}</div> --> <!-- {$p.Beschreibung|truncate:150|stripslashes} --> </div> <div class="shop_price_detail_footer"> {#Arrow#}<a title="{$p.Titel|sysspecialchars}" href="{$p.ProdLink}">{#Shop_moreInfo#}</a> <br /> {if $p.Preis_Liste != $p.Preis} {#Shop_instead#} <span class="shop_price_old">{$p.Preis_Liste|numformat} {$currency_symbol}</span> <br/> {else} <br /> {/if} {if $p.Vars} {#Shop_priceFrom#} {/if} {if $show_price_images==1} <br /> {$p.Preis|imgsrt}{$currency_symbol|imgletter} <br /> {else} <span class="shop_price">{$p.Preis|numformat} {$currency_symbol} *</span> {/if} {if $no_nettodisplay!=1} {if $price_onlynetto != 1} <br /> <div class="shop_subtext"> {if $shopsettings->NettoKlein==1} {#Shop_netto#} {$p.netto_price|numformat} {$currency_symbol} <br /> {/if} {include file="$incpath/shop/tax_inf_small.tpl"} </div> {/if} {if $price_onlynetto == 1 && $p.price_ust_ex != ''} <br /> <div class="shop_subtext"> {include file="$incpath/shop/tax_inf_small.tpl"} </div> {/if} {/if} </div> </div> </div> </td> {if $count % $newest_colums==0 && !$smarty.foreach.topsellers.last} </tr> </table> </div> <div id="topsellers-{$div_split}"> <table width="100%" cellpadding="0" cellspacing="0"> <tr> {else} {/if} {/foreach} </tr> </table> </div> </div> </div> </div> {/if}
|
p.s. в shop_start_topseller.tpl используется class="topseller_inshop" но его походу заменили на class="topseller_in_shop" |