Inital commit

This commit is contained in:
2020-11-19 15:36:28 +01:00
parent 71f32f83d3
commit 66ce4ee218
18077 changed files with 2166122 additions and 35184 deletions

View File

@@ -1,3 +1,6 @@
{* This page should not replace the current previous URL *}
{set_previous_url ignore_current="1"}
{default_translation_domain domain='fo.default'}
{loop type="product" name="add_product_to_cart" id={product attr="id"}}
<div class="clearfix">
@@ -9,40 +12,49 @@
</tr>
<tr>
<td class="col-md-4">
{loop name="product_thumbnail" type="image" product=$ID width="218" height="146" resize_mode="borders" limit="1"}
<img itemprop="image" src="{$IMAGE_URL}" alt="Product #{$LOOP_COUNT}">
{/loop}
{ifloop rel="pse-first-image"}
{loop type="product-sale-elements-image" name="pse-first-image" product_sale_elements_id={$smarty.get.pse_id} limit="1"}
{loop type="image" name="product-image" id=$PRODUCT_IMAGE_ID product=$ID limit="1" width="218" height="146" resize_mode="borders"}
<img itemprop="image" src="{$IMAGE_URL nofilter}" alt="Product #{$LOOP_COUNT}">
{/loop}
{/loop}
{/ifloop}
{elseloop rel="pse-first-image"}
{loop type="image" name="product-image" product=$ID limit="1" width="218" height="146" resize_mode="borders"}
<img itemprop="image" src="{$IMAGE_URL nofilter}" alt="Product #{$LOOP_COUNT}">
{/loop}
{/elseloop}
</td>
<td class="col-md-4">
<h2>{$TITLE}</h2>
{loop type="attribute_combination" name="product_options" product_sale_elements="{$smarty.get.pse_id}"}
{loop type="attribute_combination" name="product_options" product_sale_elements={$smarty.get.pse_id} order="manual"}
<p>{$ATTRIBUTE_TITLE} : {$ATTRIBUTE_AVAILABILITY_TITLE}</p>
{/loop}
</td>
<td class="col-md-4">
{if $IS_PROMO == 1}
{assign "real_price" $TAXED_PROMO_PRICE}
<div class="special-price"><span class="price">{$TAXED_PROMO_PRICE} {currency attr="symbol"}</span></div>
<small class="old-price"> <span class="price">{$TAXED_PRICE} {currency attr="symbol"}</span></small>
{else}
{assign "real_price" $TAXED_PRICE}
<div class="special-price"><span class="price">{$TAXED_PRICE} {currency attr="symbol"}</span></div>
{/if}
{loop type="product_sale_elements" name="product_price" id={$smarty.get.pse_id}}
{if $IS_PROMO == 1}
{assign "real_price" $TAXED_PROMO_PRICE}
<div class="special-price"><span class="price">{format_money number=$TAXED_PROMO_PRICE}</span></div>
<small class="old-price"> <span class="price">{format_money number=$TAXED_PRICE}</span></small>
{else}
{assign "real_price" $TAXED_PRICE}
<div class="special-price"><span class="price">{format_money number=$TAXED_PRICE}</span></div>
{/if}
{/loop}
</td>
</tr>
</table>
<a href="{url path="/cart"}" role="button" class="btn btn_add_to_cart pull-right"><span>{intl l="View Cart"}</span></a>
<button type="button" class="btn btn-checkout pull-right" data-dismiss="modal"><span>{intl l="Continue Shopping"}</span></button>
<a href="{url path="/cart"}" role="button" class="btn btn-primary pull-right"><i class="fa fa-shopping-cart"></i> {intl l="View Cart"}</a>
<button type="button" class="btn btn-default pull-right" data-dismiss="modal"><i class="fa fa-chevron-right"></i> {intl l="Continue Shopping"}</button>
</div>
{ifloop rel="accessories"}
<aside id="products-upsell" role="complementary" aria-labelledby="products-upsell-label">
<aside id="products-upsell" class="grid" role="complementary" aria-labelledby="products-upsell-label">
<div class="products-heading">
<h3 id="products-upsell-label">{intl l="Upsell Products"}</h3>
</div>
<div class="products-content">
<ul class="products-grid product-col-3 hover-effect">
<ul class="list-unstyled row products-grid">
{loop type="accessory" name="accessories" product="$ID" order="random" limit="3"}
{include file="includes/single-product.html" product_id=$ACCESSORY_ID hasBtn=false hasDescription=false width="218" height="146"}
{/loop}

View File

@@ -1,12 +1,19 @@
{hook name="content.sidebar-top"}
{ifhook rel="content.sidebar-body"}
{hook name="content.sidebar-body"}
{/ifhook}
{elsehook rel="content.sidebar-body"}
<section id="categories" class="block block-nav" role="navigation" aria-labelledby="categories-label">
<div class="block-heading"><h3 class="block-title" >{intl l="Related"}</h3></div>
<div class="block-content">
<nav class="nav-categories">
<ul id="category" class="accordion">
{loop name="blog.article" type="content" current_folder="yes" exclude="{content attr="id"}"}
<li><a href="{$URL}">{$TITLE}</a></li>
<li><a href="{$URL nofilter}">{$TITLE}</a></li>
{/loop}
</ul>
</nav>
</div>
</section>
</section>
{/elsehook}
{hook name="content.sidebar-bottom"}

View File

@@ -1,12 +1,19 @@
<section id="brands" class="block block-nav" role="navigation" aria-labelledby="brands-label">
<div class="block-heading"><h3 class="block-title" id="brands-label">{intl l="Brands"}</h3></div>
<div class="block-content">
<nav class="nav-brands">
<ul id="brand" class="accordion">
{loop name="brands-list" type="brand"}
<li><a href="{$URL}">{$TITLE} ({count type="product" brand="{$ID}"})</a></li>
{/loop}
</ul>
</nav>
</div>
</section>
{hook name="brand.sidebar-top"}
{ifhook rel="brand.sidebar-body"}
{hook name="brand.sidebar-body"}
{/ifhook}
{elsehook rel="brand.sidebar-body"}
<section id="brands" class="block block-nav" role="navigation" aria-labelledby="brands-label">
<div class="block-heading"><h3 class="block-title" id="brands-label">{intl l="Brands"}</h3></div>
<div class="block-content">
<nav class="nav-brands">
<ul id="brand" class="accordion">
{loop name="brands-list" type="brand"}
<li><a href="{$URL nofilter}">{$TITLE} ({count type="product" brand="{$ID}"})</a></li>
{/loop}
</ul>
</nav>
</div>
</section>
{/elsehook}
{hook name="brand.sidebar-bottom"}

View File

@@ -4,7 +4,7 @@
<div class="filter filter-type">
<fieldset>
<legend class="filter-heading">Type</legend>
<div class="filter-content">
<div class="filter-content clearfix">
<div class="checkbox">
<label for="type0">
<input type="checkbox" name="type0" id="type0" value="0"> Type 0
@@ -27,7 +27,7 @@
<div class="filter filter-price">
<fieldset>
<legend class="filter-heading">Price</legend>
<div class="filter-content">
<div class="filter-content clearfix">
<div class="checkbox">
<label for="price0">
<input type="checkbox" name="price0" id="price0" value="0"> $0.00 - $99.99
@@ -50,7 +50,7 @@
<div class="filter filter-size">
<fieldset>
<legend class="filter-heading">Size</legend>
<div class="filter-content">
<div class="filter-content clearfix">
<div class="checkbox">
<label for="size0">
<input type="checkbox" name="size0" id="size0" value="0"> Large
@@ -71,7 +71,7 @@
</div><!-- /Filter Size -->
<div class="group-btn">
<button type="submit" class="btn btn-filter">Submit</button>
<button type="submit" class="btn btn-block btn-filter">Submit</button>
</div>
</form>
</section><!-- /.filters -->

View File

@@ -1,35 +1,68 @@
{hook name="category.sidebar-top"}
{ifhook rel="category.sidebar-body"}
{hook name="category.sidebar-body"}
{/ifhook}
{elsehook rel="category.sidebar-body"}
<section id="categories" class="block block-nav" role="navigation" aria-labelledby="categories-label">
<div class="block-heading"><h3 class="block-title" id="categories-label">{intl l="Categories"}</h3></div>
<div class="block-heading">
<h3 class="block-title" id="categories-label">{intl l="Categories"}</h3>
</div>
<div class="block-content">
<nav class="nav-categories">
{* define current ID *}
{loop name="current_cat" type="category" current="yes"}
{assign var="current_category_id" value="{$PARENT}"}
{/loop}
{assign var="parent_cat" value={category attr="parent"}}
{assign var="parent_cat_ids" value=[]}
{* While it's not the top level category *}
{while $parent_cat != 0}
{assign var="current_loop_cat" value=$parent_cat}
{loop name="set_parent_category" type="category" id=$parent_cat}
{assign var="parent_cat" value=$PARENT}
{append var="parent_cat_ids" value=$ID}
{/loop}
{/while}
{* define the function *}
{function menu level=0}
{if $level == 0}
<ul id="category" class="accordion">
{else}
{if $parent == $current_category_id}
<ul id="collapse{$parent}" class="in">
{else}
<ul id="collapse{$parent}" class="collapse">
{/if}
{if $level == 0}
<ul id="category" class="accordion">
{else}
{if in_array($parent, $parent_cat_ids)}
<ul id="collapse{$parent}" class="in">
{else}
<ul id="collapse{$parent}" class="collapse">
{/if}
{/if}
{loop name="cat-parent-$level" type="category" parent=$parent need_count_child=1 not_empty="1"}
{loop name="cat-parent-$level" type="category" parent=$parent need_count_child=1 not_empty="1"}
{if $CHILD_COUNT > 0}
{if in_array($ID, $parent_cat_ids)}
{assign var="collapsed" value=""}
{else}
{assign var="collapsed" value="collapsed"}
{/if}
{if $CHILD_COUNT> 0}
<li><a href="{$URL}#collapse{$ID}" class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#collapse{$ID}">{$TITLE}</a>
{menu parent=$ID level=$level+1}
</li>
{else}
<li><a href="{$URL}">{$TITLE} ({count type="product" category="{$ID}"})</a></li>
{/if}
{/loop}
<li>
<a href="{$URL nofilter}">
{$TITLE} ({count type="product" category=$ID})
</a>
</ul>
<a href="#collapse{$ID}" class="accordion-toggle {$collapsed}" data-toggle="collapse" data-parent="#collapse{$ID}"></a>
{menu parent=$ID level=$level+1}
</li>
{else}
<li>
<a href="{$URL nofilter}">
{$TITLE} ({count type="product" category=$ID})
</a>
</li>
{/if}
{/loop}
</ul>
{/function}
{menu parent='0'}
@@ -37,3 +70,5 @@
</nav>
</div>
</section>
{/elsehook}
{hook name="category.sidebar-bottom"}

View File

@@ -1,69 +1 @@
{ifloop rel="cartloop"}
<li class="dropdown pull-right cart-not-empty cart-container">
<a href="{url path="/cart"}" rel="nofollow" class="cart">
{intl l="Cart"} <span class="badge">{cart attr="count_item"}</span>
</a>
<div class="dropdown-menu cart-content">
<form id="form-cart-mini" action="{url path="/order/delivery"}" method="post">
<table class="table table-cart-mini">
<colgroup>
<col width="70">
<col>
<col width="100">
</colgroup>
<tbody>
{assign "total_price" 0}
{loop type="cart" name="cartloop"}
<tr>
<td class="image">
{loop type="image" name="product-image" product=$PRODUCT_ID limit="1" width="118" height="60"}
<img src="{$IMAGE_URL}" alt="{$TITLE}">
{/loop}
</td>
<td class="product">
<h3 class="name" style="margin:0">
{$TITLE}
</h3>
<a href="{url path="/cart/delete/{$ITEM_ID}"}" class="btn btn-remove"><i class="icon-trash"></i> <span>{intl l="Remove"}</span></a>
</td>
<td class="unitprice text-center">
{if $IS_PROMO == 1}
{assign "real_price" $PROMO_TAXED_PRICE}
{else}
{assign "real_price" $TAXED_PRICE}
{/if}
<span class="qty">{$QUANTITY}</span> X <span class="price" style="font-size:1em;">{$real_price} {currency attr="symbol"}</span>
{assign "total_price" $total_price + ($QUANTITY * $real_price)}
</td>
</tr>
{/loop}
</tbody>
<tfoot>
<tr>
<td colspan="2" class="empty">
<a href="{url path="/cart"}" role="button" class="btn btn-default btn-sm"><span>{intl l="View Cart"}</span></a>
<a href="{url path="/order/delivery"}" role="button" class="btn btn-warning btn-sm"><span>{intl l="Checkout"}</span></a>
{*<button type="submit" name="checkout" class="btn btn-warning btn-sm"><span>{intl l="Checkout"}</span></button>*}
</td>
<td class="total">
<div class="total-price">
<span class="price">{$total_price} {currency attr="symbol"}</span>
</div>
</td>
</tr>
</tfoot>
</table>
</form>
</div>
</li>
{/ifloop}
{elseloop rel="cartloop"}
<li class="dropdown pull-right cart-container">
<a href="{url path="/cart"}" rel="nofollow" class="cart">
{intl l="Cart"} <span class="badge">0</span>
</a>
<div class="dropdown-menu cart-content">
<p>{intl l="You have no items in your shopping cart."}</p>
</div>
</li>
{/elseloop}
{hook name="mini-cart"}

View File

@@ -1,6 +1,6 @@
<div class="jumbotron">
<h1>{intl l="Product Empty Title"}</h1>
<p>{intl l="Product Empty Message"}</p>
{intl l="Product Empty Message"}
<p><a href="{url path="/admin"}" class="btn btn-jumbotron btn-lg" role="button">{intl l="Product Empty Button"}</a></p>
</div>
@@ -10,20 +10,19 @@
</div>
<div class="products-content">
<ul class="products-grid product-col-4">
<ul class="list-unstyled row">
{for $count=1 to 4}
<li class="item">
<li class="item col-md-3">
<article>
<a href="{url path="/admin"}" tabindex="-1" class="product-image">
{images file='../assets/img/280x196.png'}<img src="{$asset_url}" alt="{intl l="Demo product title"}">{/images}
<span class="mask"></span>
<a href="{url path="/admin"}" tabindex="-1" class="product-image overlay">
<img src="{image file='assets/dist/img/280x196.png'}" class="img-responsive" alt="{intl l="Demo product title"}">
</a>
<a href="{url path="/admin"}" class="product-info">
<h3 class="name">{intl l="Demo product title"}</h3>
<div class="short-description">{intl l="Demo product description"}</div>
<div class="product-price">
<div class="price-container">
<span class="regular-price"><span class="price">99.99 {currency attr="symbol"}</span></span>
<span class="regular-price"><span class="price">{format_money number=99.99}</span></span>
</div>
</div>
</a>
@@ -32,4 +31,4 @@
{/for}
</ul>
</div>
</section><!-- #products-new -->
</section><!-- #products-new -->

View File

@@ -1,4 +1,4 @@
<li class="item">
<li class="item {$colClass|default:"col-md-3"}">
{if $PSE_COUNT > 1}
{assign var="hasSubmit" value = false}
{else}
@@ -8,20 +8,21 @@
{if not $product_id}
{assign var="product_id" value=$ID}
{/if}
<article itemscope itemtype="http://schema.org/Product">
<article class="row" itemscope itemtype="http://schema.org/Product">
{hook name="singleproduct.top" product="{$product_id}"}
<a href="{$URL}" itemprop="url" tabindex="-1" class="product-image{if $hasQuickView == true} product-quickview{/if}">
<a href="{$URL nofilter}" itemprop="url" tabindex="-1" class="product-image{if $hasQuickView == true} product-quickview{/if} overlay col-sm-3">
{loop name="product_thumbnail" type="image" product=$product_id width="{$width}" height="{$height}" resize_mode="borders" limit="1"}
<img itemprop="image" src="{$IMAGE_URL}" alt="{$productTitle}">
<img itemprop="image" src="{$IMAGE_URL nofilter}" class="img-responsive" alt="{$productTitle}">
{/loop}
{elseloop rel="product_thumbnail"}
{images file='../assets/img/218x146.png'}<img itemprop="image" src="{$asset_url}" alt="{$productTitle}">{/images}
<img itemprop="image" src="{image file='assets/dist/img/218x146.png'}" class="img-responsive" alt="{$productTitle}">
{/elseloop}
<span class="mask"></span>
</a>
<div class="product-info">
<h2 class="name"><a href="{$URL}"><span itemprop="name">{$productTitle}</span></a></h2>
<div class="product-info col-sm-6">
<h2 class="name"><a href="{$URL nofilter}"><span itemprop="name">{$productTitle}</span></a></h2>
{if $hasDescription}
<div class="description" itemprop="description">
<p>{$DESCRIPTION nofilter}</p>
@@ -33,14 +34,14 @@
{assign var="current_stock_content" value = "in_stock"}
{assign var="current_stock_href" value = "http://schema.org/InStock"}
{if {config key="check-available-stock"} != 0}
{if $QUANTITY == 0}
{if $VIRTUAL == 0 && $QUANTITY <= 0}
{assign var="current_stock_content" value = "out_stock"}
{assign var="current_stock_href" value = "http://schema.org/OutOfStock"}
{/if}
{/if}
<div class="product-price">
<div class="price-container" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<div class="product-price col-sm-3">
<div class="price-container row" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<meta itemprop="category" content="{category attr="title"}">
{* List of condition : NewCondition, DamagedCondition, UsedCondition, RefurbishedCondition *}
<meta itemprop="itemCondition" itemscope itemtype="http://schema.org/NewCondition">
@@ -48,45 +49,58 @@
<meta itemprop="priceCurrency" content="{currency attr="symbol"}">
<link itemprop="availability" href="{$current_stock_href}" content="{$current_stock_content}" />
{if $IS_PROMO }
<span class="special-price"><span itemprop="price" class="price-label">{intl l="Special Price:"} </span><span class="price">{format_number number=$TAXED_PROMO_PRICE} {currency attr="symbol"}</span></span>
<span class="old-price"><span class="price-label">{intl l="Regular Price:"} </span><span class="price">{format_number number=$TAXED_PRICE} {currency attr="symbol"}</span></span>
{assign var="combination_count" value={count type="product_sale_elements" promo="1" product=$ID}}
<span class="special-price col-xs-6"><span itemprop="price" class="price-label">{intl l="Special Price:"} </span><span class="price">
{if $combination_count > 1}
{intl l="From %price" price={format_money number=$BEST_TAXED_PRICE}}
{else}
{format_money number=$BEST_TAXED_PRICE}
{/if}
</span></span>
{if $SHOW_ORIGINAL_PRICE}
<span class="old-price col-xs-6"><span class="price-label">{intl l="Regular Price:"} </span><span class="price">{format_money number=$TAXED_PRICE}</span></span>
{/if}
{else}
<span class="regular-price"><span itemprop="price" class="price">{format_number number=$BEST_TAXED_PRICE} {currency attr="symbol"}</span></span>
<span class="regular-price col-xs-12"><span itemprop="price" class="price">{format_money number=$BEST_TAXED_PRICE}</span></span>
{/if}
</div>
{if $hasBtn == true}
{if $hasSubmit == true}
{if $hasSubmit == true && $current_stock_content == "in_stock"}
{form name="thelia.cart.add" }
<form id="form-product-details{$product_id}" action="{url path="/cart/add" }" method="post" class="form-product">
{form_hidden_fields form=$form}
{form_hidden_fields}
<input type="hidden" name="view" value="product">
<input type="hidden" name="product_id" value="{$product_id}">
{form_field field="append"}
<input type="hidden" name="{$name}" value="1">
{/form_field}
{if $form_error}<div class="alert alert-error">{$form_error_message}</div>{/if}
{form_field form=$form field='product_sale_elements_id'}
<input type="hidden" name="{$name}" value="{$PRODUCT_SALE_ELEMENT}" {$attr}>
{form_field field='product_sale_elements_id'}
<input type="hidden" class="pse-id" name="{$name}" value="{$PRODUCT_SALE_ELEMENT}" {$attr}>
{/form_field}
{form_field form=$form field="product"}
{form_field field="product"}
<input id="{$label_attr.for}" type="hidden" name="{$name}" value="{$product_id}" {$attr} >
{/form_field}
<fieldset class="product-cart form-inline">
{form_field form=$form field='quantity'}
{form_field field='quantity'}
<div class="form-group group-qty hide {if $error}has-error{elseif $value != "" && !$error}has-success{/if}">
<label for="{$label_attr.for}">{$label}</label>
<input type="number" name="{$name}" id="{$label_attr.for}" class="form-control" value="{$value|default:1}" min="0" required>
{if $error }
<span class="help-block"><i class="icon-remove"></i> {$message}</span>
<span class="help-block"><i class="fa fa-remove"></i> {$message}</span>
{elseif $value != "" && !$error}
<span class="help-block"><i class="icon-ok"></i></span>
<span class="help-block"><i class="fa fa"></i></span>
{/if}
</div>
{/form_field}
<div>
<div class="product-btn">
<button type="submit" class="btn btn-cart">{intl l="Add to cart"}</button>
<button type="submit" class="btn btn-primary btn-block"><i class="fa fa-shopping-cart"></i> {intl l="Add to cart"}</button>
</div>
</div>
</fieldset>
@@ -95,11 +109,14 @@
{else}
<div>
<div class="product-btn">
<a href="{$URL}" class="btn btn-cart">{intl l="View product"}</a>
<a href="{$URL nofilter}" class="btn btn-primary btn-block"><i class="fa fa-eye"></i> {intl l="View product"}</a>
</div>
</div>
{/if}
{/if}
</div>
{hook name="singleproduct.bottom" product={$product_id}}
</article><!-- /product -->
</li>

View File

@@ -1,16 +1,16 @@
<div class="toolbar toolbar-{$toolbar}" role="toolbar">
{if $toolbar == "top" }
<div class="sorter-container">
<div class="sorter-container clearfix">
<span class="amount">{if ($amount > 1)}{intl l="%nb Items" nb="{$amount}"}{else}{intl l="%nb Item" nb="{$amount}"}{/if}</span>
<span class="limiter">
<label for="limit-top">{intl l="Show"}</label>
<select id="limit-top" name="limit">
<option value="{url path={navigate to="current"} limit="4"}" {if $limit==4}selected{/if}>4</option>
<option value="{url path={navigate to="current"} limit="8"}" {if $limit==8}selected{/if}>8</option>
<option value="{url path={navigate to="current"} limit="12"}" {if $limit==12}selected{/if}>12</option>
<option value="{url path={navigate to="current"} limit="50"}"{if $limit==50}selected{/if}>50</option>
<option value="{url path={navigate to="current"} limit="100000"}" {if $limit==100000}selected{/if}>All</option>
<option value="{url current="1" limit="4"}" {if $limit==4}selected{/if}>4</option>
<option value="{url current="1" limit="8"}" {if $limit==8}selected{/if}>8</option>
<option value="{url current="1" limit="12"}" {if $limit==12}selected{/if}>12</option>
<option value="{url current="1" limit="50"}"{if $limit==50}selected{/if}>50</option>
<option value="{url current="1" limit="100000"}" {if $limit==100000}selected{/if}>{intl l="All"}</option>
</select>
<span class="per-page">{intl l="per page"}</span>
</span><!-- /.limiter -->
@@ -19,34 +19,53 @@
<label for="sortby-top">{intl l="Sort By"}</label>
<select id="sortby-top" name="sortby">
{*<option value="{url path="{category attr="url"}" order="manual"}">{intl l="Position"}</option>*}
<option value="{url path={navigate to="current"} limit=$limit order="alpha"}" {if $order=="alpha"}selected{/if}>{intl l="Name ascending"}</option>
<option value="{url path={navigate to="current"} limit=$limit order="alpha_reverse"}" {if $order=="alpha_reverse"}selected{/if}>{intl l="Name descending"}</option>
<option value="{url path={navigate to="current"} limit=$limit order="min_price"}" {if $order=="min_price"}selected{/if}>{intl l="Price ascending"}</option>
<option value="{url path={navigate to="current"} limit=$limit order="max_price"}" {if $order=="max_price"}selected{/if}>{intl l="Price descending"}</option>
<option value="{url current="1" limit=$limit order="alpha"}" {if $order=="alpha"}selected{/if}>{intl l="Name ascending"}</option>
<option value="{url current="1" limit=$limit order="alpha_reverse"}" {if $order=="alpha_reverse"}selected{/if}>{intl l="Name descending"}</option>
<option value="{url current="1" limit=$limit order="min_price"}" {if $order=="min_price"}selected{/if}>{intl l="Price ascending"}</option>
<option value="{url current="1" limit=$limit order="max_price"}" {if $order=="max_price"}selected{/if}>{intl l="Price descending"}</option>
{*<option value="{url path="{category attr="url"}" order="rating"}">{intl l="Rating"}</option>*}
</select>
</span><!-- /.sort-by -->
<span class="view-mode">
<span class="view-mode-label">{intl l="View as"}:</span>
<span class="view-mode-label sr-only">{intl l="View as"}:</span>
<span class="view-mode-btn">
<a href="{url path="{navigate to="current"}" mode="grid"}" data-toggle="view" role="button" title="{intl l="Grid"}" rel="nofollow" class="btn btn-grid"><i class="icon-grid"></i></a>
<a href="{url path="{navigate to="current"}" mode="list"}" data-toggle="view" role="button" title="{intl l="List"}" rel="nofollow" class="btn btn-list"><i class="icon-list"></i></a>
<a href="{url current="1" mode="grid"}" data-toggle="view" role="button" title="{intl l="Grid"}" rel="nofollow" class="btn btn-default btn-grid"><i class="fa fa-th"></i></a>
<a href="{url current="1" mode="list"}" data-toggle="view" role="button" title="{intl l="List"}" rel="nofollow" class="btn btn-default btn-list"><i class="fa fa-th-list"></i></a>
</span>
</span><!-- /.view-mode -->
</div><!-- /.sorter -->
{else}
{if $amount > $limit}
<div class="pagination-container" role="pagination" aria-labelledby="pagination-label-{$toolbar}}">
<strong id="pagination-label-{$toolbar}}" class="pagination-label">{intl l="Pagination"}</strong>
<ul class="pagination">
<li{if $product_page le 1} class="disabled"{/if}><a href="{url path={navigate to="current"} page={$product_page-1} }" title="{intl l="Previous"}" class="prev"><i class="icon-prev"></i></a></li>
{pageloop rel="product_list"}
<li{if $PAGE eq $CURRENT} class="active"{/if}><a href="{url path={navigate to="current"} page=$PAGE }"> {$PAGE} </a></li>
{if $PAGE eq $LAST}
<li{if $CURRENT eq $LAST} class="disabled"{/if}><a href="{url path={navigate to="current"} page={$CURRENT+1} }" title="{intl l="Next"}" class="next"><i class="icon-next"></i></a></li>
<div class="pagination-container clearfix" role="pagination" aria-labelledby="pagination-label-{$toolbar}">
<strong id="pagination-label-{$toolbar}" class="pagination-label sr-only">{intl l="Pagination"}</strong>
<ul class="pagination pagination-sm">
{if $product_page le 1}
<li class="disabled">
<span class="prev"><i class="fa fa-caret-left"></i></span>
</li>
{else}
<li>
<a href="{url current="1" page={$product_page-1} }" title="{intl l="Previous"}" class="prev"><i class="fa fa-caret-left"></i></a>
</li>
{/if}
{pageloop rel="product_list"}
<li{if $PAGE eq $CURRENT} class="active"{/if}>
<a href="{url current="1" page=$PAGE }"> {$PAGE} </a>
</li>
{if $PAGE eq $LAST}
{if $CURRENT eq $LAST}
<li class="disabled">
<span class="next"><i class="fa fa-caret-right"></i></span>
</li>
{else}
<li>
<a href="{url current="1" page={$NEXT} }" title="{intl l="Next"}" class="next"><i class="fa fa-caret-right"></i></a>
</li>
{/if}
{/if}
{/pageloop}
</ul>
</div>