From c781d8ef2d02b3c6f0f8654161d9768adbfe05af Mon Sep 17 00:00:00 2001 From: sLorenzini Date: Tue, 10 Dec 2013 16:37:25 +0100 Subject: [PATCH] // update tpl for w3c validator and code indent --- .../default-bootstrap/manufacturer-list.tpl | 129 ++++++++---- themes/default-bootstrap/manufacturer.tpl | 54 +++-- themes/default-bootstrap/pagination.tpl | 193 ++++++++++++------ themes/default-bootstrap/product-compare.tpl | 2 +- .../default-bootstrap/products-comparison.tpl | 67 ++++-- themes/default-bootstrap/search.tpl | 40 +++- themes/default-bootstrap/supplier-list.tpl | 129 ++++++------ themes/default-bootstrap/supplier.tpl | 38 ++-- 8 files changed, 423 insertions(+), 229 deletions(-) diff --git a/themes/default-bootstrap/manufacturer-list.tpl b/themes/default-bootstrap/manufacturer-list.tpl index 240940682..c41f5b3af 100644 --- a/themes/default-bootstrap/manufacturer-list.tpl +++ b/themes/default-bootstrap/manufacturer-list.tpl @@ -43,70 +43,109 @@ {if isset($errors) AND $errors} {include file="$tpl_dir./errors.tpl"} {else} - {if $nbManufacturers > 0}
{include file="./nbr-product-page.tpl"}
{include file="$tpl_dir./pagination.tpl"}
-
+ + {assign var='nbItemsPerLine' value=3} {assign var='nbItemsPerLineTablet' value=2} {assign var='nbLi' value=$manufacturers|@count} {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines} {math equation="nbLi/nbItemsPerLineTablet" nbLi=$nbLi nbItemsPerLineTablet=$nbItemsPerLineTablet assign=nbLinesTablet} +
- {include file="$tpl_dir./pagination.tpl"} + {include file="$tpl_dir./pagination.tpl" paginationId='bottom'}