From 8bdcaa2c2d42a8f15c9604d9759faac9e1e619d5 Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Thu, 11 Apr 2013 15:52:07 +0200 Subject: [PATCH] Merge pull request #65 from Ha99y:mobile-them-HR-fix2 --- themes/default/mobile/authentication-choice.tpl | 2 +- themes/default/mobile/best-sales.tpl | 2 +- themes/default/mobile/category.tpl | 4 ++-- themes/default/mobile/contact-form.tpl | 17 ++++++++++++++--- themes/default/mobile/header.tpl | 2 +- themes/default/mobile/manufacturer.tpl | 2 +- themes/default/mobile/new-products.tpl | 2 +- themes/default/mobile/order-detail.tpl | 6 +++--- themes/default/mobile/pages-list.tpl | 2 +- themes/default/mobile/prices-drop.tpl | 2 +- themes/default/mobile/product-attributes.tpl | 2 +- themes/default/mobile/product-desc-features.tpl | 2 +- themes/default/mobile/product.tpl | 8 ++++---- themes/default/mobile/search.tpl | 2 +- themes/default/mobile/sitemap.tpl | 4 ++-- themes/default/mobile/supplier.tpl | 2 +- 16 files changed, 36 insertions(+), 25 deletions(-) diff --git a/themes/default/mobile/authentication-choice.tpl b/themes/default/mobile/authentication-choice.tpl index 4bbfb00bc..7d8346a4d 100644 --- a/themes/default/mobile/authentication-choice.tpl +++ b/themes/default/mobile/authentication-choice.tpl @@ -13,7 +13,7 @@ -
+

{l s='Already registered?'}

diff --git a/themes/default/mobile/best-sales.tpl b/themes/default/mobile/best-sales.tpl index d8dba671c..438676a91 100644 --- a/themes/default/mobile/best-sales.tpl +++ b/themes/default/mobile/best-sales.tpl @@ -46,7 +46,7 @@
{include file="./category-product-sort.tpl" container_class="container-sort"}
-
+
{include file="./pagination.tpl"} {include file="./category-product-list.tpl" products=$products} {include file="./pagination.tpl"} diff --git a/themes/default/mobile/category.tpl b/themes/default/mobile/category.tpl index 2b86926c4..90dc09310 100644 --- a/themes/default/mobile/category.tpl +++ b/themes/default/mobile/category.tpl @@ -45,13 +45,13 @@

{$category->description}

{/if} -
+
{/if}
{include file="./category-product-sort.tpl" container_class="container-sort"}

{include file="$tpl_dir./category-count.tpl"}

-
+
{include file="./pagination.tpl"} {include file="./category-product-list.tpl" products=$products} diff --git a/themes/default/mobile/contact-form.tpl b/themes/default/mobile/contact-form.tpl index 14b6cc043..6c435356a 100644 --- a/themes/default/mobile/contact-form.tpl +++ b/themes/default/mobile/contact-form.tpl @@ -44,7 +44,7 @@ {/foreach} -

+

 

{foreach from=$contacts item=contact}
{if !isset($customerThread.id_order) && isset($isLogged) && $isLogged == 1} - + {elseif !isset($customerThread.id_order) && !isset($isLogged)} {elseif $customerThread.id_order > 0} @@ -75,8 +79,15 @@ {/if} {if isset($isLogged) && $isLogged}
+ {if !isset($customerThread.id_product)} - + {foreach from=$orderedProductList key=id_order item=products name=products} + + {/foreach} {elseif $customerThread.id_product > 0} {/if} diff --git a/themes/default/mobile/header.tpl b/themes/default/mobile/header.tpl index 973b3582c..34752abba 100644 --- a/themes/default/mobile/header.tpl +++ b/themes/default/mobile/header.tpl @@ -23,7 +23,7 @@ * International Registered Trademark & Property of PrestaShop SA *} - + {$meta_title|escape:'htmlall':'UTF-8'} {**} diff --git a/themes/default/mobile/manufacturer.tpl b/themes/default/mobile/manufacturer.tpl index 3143b61a5..5233a48ed 100644 --- a/themes/default/mobile/manufacturer.tpl +++ b/themes/default/mobile/manufacturer.tpl @@ -48,7 +48,7 @@
{include file="./category-product-sort.tpl" container_class="container-sort"}
-
+
{include file="./pagination.tpl"} {include file="./category-product-list.tpl" products=$products} {include file="./pagination.tpl"} diff --git a/themes/default/mobile/new-products.tpl b/themes/default/mobile/new-products.tpl index 81b9aaa9c..4d5950126 100644 --- a/themes/default/mobile/new-products.tpl +++ b/themes/default/mobile/new-products.tpl @@ -31,7 +31,7 @@
{include file="./category-product-sort.tpl" container_class="container-sort"}
-
+
{include file="./pagination.tpl"} {include file="./category-product-list.tpl" products=$products} {include file="./pagination.tpl"} diff --git a/themes/default/mobile/order-detail.tpl b/themes/default/mobile/order-detail.tpl index c341b7461..558854be4 100644 --- a/themes/default/mobile/order-detail.tpl +++ b/themes/default/mobile/order-detail.tpl @@ -117,7 +117,7 @@ {elseif $field_item eq "phone_mobile" && $address_invoice->phone_mobile}

{$address_invoice->phone_mobile|escape:'htmlall':'UTF-8'}

{else} {assign var=address_words value=" "|explode:$field_item} -

{foreach from=$address_words item=word_item name="word_loop"}{if !$smarty.foreach.word_loop.first} {/if}{$invoiceAddressFormatedValues[$word_item]|escape:'htmlall':'UTF-8'}{/foreach}

+

{foreach from=$address_words item=word_item name="word_loop"}{if !$smarty.foreach.word_loop.first} {/if}{$invoiceAddressFormatedValues[$word_item|replace:',':'']|escape:'htmlall':'UTF-8'}{/foreach}

{/if} {/foreach} @@ -130,7 +130,7 @@ {elseif $field_item eq "phone_mobile" && $address_delivery->phone_mobile}

{$address_delivery->phone_mobile|escape:'htmlall':'UTF-8'}

{else} {assign var=address_words value=" "|explode:$field_item} -

{foreach from=$address_words item=word_item name="word_loop"}{if !$smarty.foreach.word_loop.first} {/if}{$deliveryAddressFormatedValues[$word_item]|escape:'htmlall':'UTF-8'}{/foreach}

+

{foreach from=$address_words item=word_item name="word_loop"}{if !$smarty.foreach.word_loop.first} {/if}{$deliveryAddressFormatedValues[$word_item|replace:',':'']|escape:'htmlall':'UTF-8'}{/foreach}

{/if} {/foreach} @@ -174,7 +174,7 @@ {if $priceDisplay && $use_tax}
  • {l s='Total products (tax excl.)'} {displayWtPriceWithCurrency price=$order->getTotalProductsWithoutTaxes() currency=$currency} - +
  • {/if}
  • {l s='Total products'} {if $use_tax}{l s='(tax incl.)'}{/if}: {displayWtPriceWithCurrency price=$order->getTotalProductsWithTaxes() currency=$currency} diff --git a/themes/default/mobile/pages-list.tpl b/themes/default/mobile/pages-list.tpl index 3f6148c5a..8513b4714 100644 --- a/themes/default/mobile/pages-list.tpl +++ b/themes/default/mobile/pages-list.tpl @@ -23,7 +23,7 @@ * International Registered Trademark & Property of PrestaShop SA *} -
    +

    {l s='Sitemap'}

      {if $controller_name != 'index'}
    • Accueil
    • {/if} diff --git a/themes/default/mobile/prices-drop.tpl b/themes/default/mobile/prices-drop.tpl index 0404bea93..e331a6054 100644 --- a/themes/default/mobile/prices-drop.tpl +++ b/themes/default/mobile/prices-drop.tpl @@ -31,7 +31,7 @@
      {include file="./category-product-sort.tpl" container_class="container-sort"}
      -
      +
      {include file="./pagination.tpl"} {include file="./category-product-list.tpl" products=$products} {include file="./pagination.tpl"} diff --git a/themes/default/mobile/product-attributes.tpl b/themes/default/mobile/product-attributes.tpl index 1f45f4929..ec6672b0c 100644 --- a/themes/default/mobile/product-attributes.tpl +++ b/themes/default/mobile/product-attributes.tpl @@ -23,7 +23,7 @@ * International Registered Trademark & Property of PrestaShop SA *} {if isset($groups)} -
      +
      {foreach from=$groups key=id_attribute_group item=group} diff --git a/themes/default/mobile/product-desc-features.tpl b/themes/default/mobile/product-desc-features.tpl index f81f3fd88..8692a9a3d 100644 --- a/themes/default/mobile/product-desc-features.tpl +++ b/themes/default/mobile/product-desc-features.tpl @@ -5,7 +5,7 @@ {if isset($product) && $product->description}

      {l s='More info'}

      -

      {$product->description}

      +
      {$product->description}
      {/if} diff --git a/themes/default/mobile/product.tpl b/themes/default/mobile/product.tpl index 1e22cd482..e9b88fd95 100644 --- a/themes/default/mobile/product.tpl +++ b/themes/default/mobile/product.tpl @@ -119,10 +119,10 @@
      {if $product->show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE} -
      +
      {include file="./product-prices.tpl"} {else} -
      +
      {/if}
      {hook h="displayMobileAddToCartTop"} @@ -147,13 +147,13 @@ {include file="./product-quantity-discount.tpl"} {* ================================== *} -
      +
      {include file="./product-desc-features.tpl"} {if isset($packItems) && $packItems|@count > 0} -
      +

      {l s='Pack content'}

      {include file="./category-product-list.tpl" products=$packItems} diff --git a/themes/default/mobile/search.tpl b/themes/default/mobile/search.tpl index 61ba394e0..f46bffa03 100644 --- a/themes/default/mobile/search.tpl +++ b/themes/default/mobile/search.tpl @@ -42,7 +42,7 @@
      {/if} -
      +
      {if !isset($instantSearch) || (isset($instantSearch) && !$instantSearch)} {include file="./pagination.tpl"} {/if} diff --git a/themes/default/mobile/sitemap.tpl b/themes/default/mobile/sitemap.tpl index 1b816ab10..7b0f17401 100644 --- a/themes/default/mobile/sitemap.tpl +++ b/themes/default/mobile/sitemap.tpl @@ -25,7 +25,7 @@
      {hook h="displayMobileTopSiteMap"}
      -
      +
      {if isset($categoriesTree.children)}

      {l s='Our offers'}

      @@ -54,7 +54,7 @@
    {/if} -
    +

    {l s='Sitemap'}

      {if $controller_name != 'index'}
    • {l s='Home'}
    • {/if} diff --git a/themes/default/mobile/supplier.tpl b/themes/default/mobile/supplier.tpl index 60a22525c..1526f58c0 100644 --- a/themes/default/mobile/supplier.tpl +++ b/themes/default/mobile/supplier.tpl @@ -47,7 +47,7 @@
      {include file="./category-product-sort.tpl" container_class="container-sort"}
      -
      +
      {include file="./pagination.tpl"} {include file="./category-product-list.tpl" products=$products} {include file="./pagination.tpl"}