Hide pagination if there is only 1 page

This commit is contained in:
touffies
2013-11-06 18:57:22 +01:00
parent bd158a5233
commit 14e5ee62a7
4 changed files with 33 additions and 29 deletions

View File

@@ -19,7 +19,8 @@
{$product_order={$smarty.get.order|default:'alpha'}}
<article class="col-main {$smarty.get.mode|default:"grid"}" role="main">
{ifloop rel="product_list"}
{include file="includes/toolbar.html" toolbar="top" limit=$limit order=$product_order amount={count type="product" category={category attr="id"}}}
{assign var="amount" value="{count type="product" category={category attr="id"}}"}
{include file="includes/toolbar.html" toolbar="top" limit=$limit order=$product_order amount={$amount}}
<div id="category-products">
<div class="products-content">
<ul class="product-col-4">
@@ -29,7 +30,7 @@
</ul>
</div>
</div><!-- /#category-products -->
{include file="includes/toolbar.html" toolbar="bottom"}
{include file="includes/toolbar.html" toolbar="bottom" amount={$amount}}
{/ifloop}
{elseloop rel="product_list"}
<div class="address-warning">