// ids instead of class on home tab toogle

This commit is contained in:
gRoussac
2013-12-10 11:45:22 +01:00
parent 70628845b7
commit a45e816e98
7 changed files with 7 additions and 7 deletions

View File

@@ -25,5 +25,5 @@
*}
{if is_array($best_sellers) && count($best_sellers)}
{include file="$tpl_dir./product-list.tpl" products=$best_sellers class='blockbestsellers tab-pane'}
{include file="$tpl_dir./product-list.tpl" products=$best_sellers class='blockbestsellers tab-pane' id='blockbestsellers'}
{/if}

View File

@@ -24,5 +24,5 @@
*}
{if is_array($best_sellers) && count($best_sellers)}
<li><a data-toggle="tab" href="{$link->getPageLink('best-sales')|escape:'html'}" class="blockbestsellers">{l s='Best Sellers' mod='blockbestsellers'}</a></li>
<li><a data-toggle="tab" href="#blockbestsellers" class="blockbestsellers">{l s='Best Sellers' mod='blockbestsellers'}</a></li>
{/if}

View File

@@ -22,4 +22,4 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{include file="$tpl_dir./product-list.tpl" products=$new_products class='blocknewproducts tab-pane active'}
{include file="$tpl_dir./product-list.tpl" products=$new_products class='blocknewproducts tab-pane active' id='blocknewproducts'}

View File

@@ -22,4 +22,4 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<li class="active"><a data-toggle="tab" href="{$link->getPageLink('new-products')|escape:'html'}" class="blocknewproducts">{l s='New arrivals' mod='blocknewproducts'}</a></li>
<li class="active"><a data-toggle="tab" href="#blocknewproducts" class="blocknewproducts">{l s='New arrivals' mod='blocknewproducts'}</a></li>

View File

@@ -22,4 +22,4 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{include file="$tpl_dir./product-list.tpl" class='homefeatured tab-pane'}
{include file="$tpl_dir./product-list.tpl" class='homefeatured tab-pane' id='homefeatured'}

View File

@@ -22,4 +22,4 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<li><a data-toggle="tab" href="{$link->getPageLink('index')|escape:'html'}" class="homefeatured">{l s='Popular' mod='homefeatured'}</a></li>
<li><a data-toggle="tab" href="#homefeatured" class="homefeatured">{l s='Popular' mod='homefeatured'}</a></li>

View File

@@ -39,7 +39,7 @@
{math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines}
{math equation="nbLi/nbItemsPerLineTablet" nbLi=$nbLi nbItemsPerLineTablet=$nbItemsPerLineTablet assign=nbLinesTablet}
<!-- Products list -->
<ul class="product_list grid row {if isset($class) && $class} {$class}{/if}">
<ul{if isset($id) && $id} id="{$id}" {/if}class="product_list grid row{if isset($class) && $class} {$class}{/if}">
{foreach from=$products item=product name=products}
{math equation="(total%perLine)" total=$smarty.foreach.products.total perLine=$nbItemsPerLine assign=totModulo}
{math equation="(total%perLineT)" total=$smarty.foreach.products.total perLineT=$nbItemsPerLineTablet assign=totModuloTablet}