From e9115f049df5d0b6ef259a27840f5749d944af94 Mon Sep 17 00:00:00 2001 From: Yannick Armand Date: Fri, 9 Feb 2024 16:25:42 +0100 Subject: [PATCH 1/5] .tpl : fix formatting --- .../views/templates/hook/ps_bestsellers.tpl | 18 +- .../views/templates/hook/ps_brandlist.tpl | 2 +- .../templates/hook/ps_categoryproducts.tpl | 6 +- .../views/templates/hook/ps_crossselling.tpl | 5 +- .../ps_customeraccountlinks.tpl | 4 +- .../templates/hook/ps_featuredproducts.tpl | 4 +- .../views/templates/hook/ps_newproducts.tpl | 17 +- .../views/templates/hook/ps_specials.tpl | 17 +- .../views/templates/hook/ps_supplierlist.tpl | 2 +- .../views/templates/hook/ps_viewedproduct.tpl | 5 +- .../templates/hook/displayGDPRConsent.tpl | 2 +- .../useProgressRing/index.stories.mdx | 2 +- templates/_partials/breadcrumb.tpl | 6 +- templates/_partials/footer.tpl | 2 + templates/_partials/form-errors.tpl | 27 +-- templates/_partials/form-fields.tpl | 7 +- templates/_partials/head.tpl | 10 +- templates/_partials/header.tpl | 3 +- templates/_partials/javascript.tpl | 2 +- templates/_partials/microdata/head-jsonld.tpl | 19 ++- .../_partials/microdata/product-jsonld.tpl | 94 +++++----- .../microdata/product-list-jsonld.tpl | 16 +- templates/_partials/notifications.tpl | 94 +++++----- templates/_partials/pagination-seo.tpl | 40 +++-- templates/_partials/pagination.tpl | 3 +- .../catalog/_partials/category-footer.tpl | 6 +- .../catalog/_partials/category-header.tpl | 43 ++--- .../catalog/_partials/customization-modal.tpl | 13 +- templates/catalog/_partials/facets.tpl | 14 +- .../catalog/_partials/miniatures/brand.tpl | 6 +- .../catalog/_partials/miniatures/category.tpl | 2 +- .../catalog/_partials/product-accessories.tpl | 5 +- .../catalog/_partials/product-activation.tpl | 1 + .../catalog/_partials/product-add-to-cart.tpl | 5 +- .../_partials/product-cover-thumbnails.tpl | 9 +- .../_partials/product-customization-modal.tpl | 10 ++ .../_partials/product-customization.tpl | 6 + .../catalog/_partials/product-details.tpl | 18 +- .../catalog/_partials/product-discounts.tpl | 26 +-- .../_partials/product-images-modal.tpl | 2 +- .../catalog/_partials/product-prices.tpl | 7 +- .../catalog/_partials/product-variants.tpl | 5 +- templates/catalog/_partials/productlist.tpl | 4 +- templates/catalog/_partials/products.tpl | 2 +- templates/catalog/_partials/quickview.tpl | 97 ++++++----- templates/catalog/_partials/sort-orders.tpl | 2 + templates/catalog/_partials/subcategories.tpl | 1 + templates/catalog/_partials/variant-links.tpl | 7 +- templates/catalog/brands.tpl | 2 +- templates/catalog/listing/manufacturer.tpl | 4 +- templates/catalog/listing/product-list.tpl | 67 ++++---- templates/catalog/listing/search.tpl | 4 +- templates/catalog/listing/supplier.tpl | 2 +- templates/catalog/product.tpl | 126 +++++++------- templates/catalog/suppliers.tpl | 2 +- templates/checkout/_partials/address-form.tpl | 16 +- .../_partials/address-selector-block.tpl | 3 + .../_partials/cart-detailed-actions.tpl | 16 +- .../_partials/cart-detailed-product-line.tpl | 2 +- .../_partials/cart-detailed-totals.tpl | 2 + .../checkout/_partials/cart-detailed.tpl | 5 +- .../_partials/cart-summary-products.tpl | 1 + .../_partials/cart-summary-subtotals.tpl | 5 +- .../_partials/cart-summary-totals.tpl | 3 +- templates/checkout/_partials/cart-voucher.tpl | 2 + .../checkout/_partials/customer-form.tpl | 31 ++-- templates/checkout/_partials/login-form.tpl | 2 +- templates/checkout/_partials/modal-terms.tpl | 1 + .../_partials/order-confirmation-table.tpl | 161 +++++++++--------- .../_partials/order-final-summary-table.tpl | 1 + .../_partials/order-final-summary.tpl | 21 ++- .../checkout/_partials/steps/addresses.tpl | 3 +- .../_partials/steps/checkout-step.tpl | 24 +-- .../checkout/_partials/steps/payment.tpl | 7 +- .../_partials/steps/personal-information.tpl | 5 +- .../checkout/_partials/steps/shipping.tpl | 5 + templates/checkout/checkout-navigation.tpl | 2 +- templates/checkout/checkout.tpl | 2 +- templates/components/account-menu.tpl | 1 + .../components/password-policy-template.tpl | 3 + templates/components/qty-input.tpl | 2 + templates/components/toast-container.tpl | 2 +- templates/components/toast.tpl | 1 + templates/contact.tpl | 4 +- templates/customer/_partials/address-form.tpl | 8 +- .../customer/_partials/customer-form.tpl | 8 +- templates/customer/address.tpl | 2 +- templates/customer/addresses.tpl | 2 +- templates/customer/authentication.tpl | 3 +- templates/customer/discount.tpl | 8 + templates/customer/guest-login.tpl | 6 +- templates/customer/history.tpl | 1 + templates/customer/order-detail.tpl | 20 ++- templates/customer/order-follow.tpl | 16 +- templates/customer/order-return.tpl | 74 +++++--- templates/customer/order-slip.tpl | 5 + templates/customer/page.tpl | 10 +- templates/customer/password-email.tpl | 6 +- templates/customer/password-infos.tpl | 3 +- templates/customer/password-new.tpl | 14 +- templates/customer/registration.tpl | 7 +- templates/errors/404.tpl | 4 +- templates/errors/410.tpl | 4 +- templates/errors/maintenance.tpl | 52 +++--- templates/errors/not-found.tpl | 15 +- templates/errors/restricted-country.tpl | 36 ++-- templates/index.tpl | 20 ++- templates/layouts/layout-both-columns.tpl | 39 ++--- templates/layouts/layout-content-only.tpl | 18 +- templates/layouts/layout-error.tpl | 9 +- templates/layouts/layout-full-width.tpl | 28 +-- templates/layouts/layout-left-column.tpl | 22 +-- templates/layouts/layout-right-column.tpl | 20 ++- templates/page.tpl | 3 +- 114 files changed, 961 insertions(+), 740 deletions(-) diff --git a/modules/ps_bestsellers/views/templates/hook/ps_bestsellers.tpl b/modules/ps_bestsellers/views/templates/hook/ps_bestsellers.tpl index 3329e2da1..92b657792 100644 --- a/modules/ps_bestsellers/views/templates/hook/ps_bestsellers.tpl +++ b/modules/ps_bestsellers/views/templates/hook/ps_bestsellers.tpl @@ -3,13 +3,15 @@ * file that was distributed with this source code. *}
-
- {include file="components/section-title.tpl" title={l s="Best Sellers" d="Shop.Theme.Catalog"}} - {include file="catalog/_partials/productlist.tpl" products=$products productClass="col-6 col-lg-4 col-xl-3"} - +
+ {include file='components/section-title.tpl' title={l s="Best Sellers" d="Shop.Theme.Catalog"}} + + {include file='catalog/_partials/productlist.tpl' products=$products productClass='col-6 col-lg-4 col-xl-3'} + + +
diff --git a/modules/ps_brandlist/views/templates/hook/ps_brandlist.tpl b/modules/ps_brandlist/views/templates/hook/ps_brandlist.tpl index fe2a69a13..a4fbad4ca 100644 --- a/modules/ps_brandlist/views/templates/hook/ps_brandlist.tpl +++ b/modules/ps_brandlist/views/templates/hook/ps_brandlist.tpl @@ -18,7 +18,7 @@
{if $brands} - {include file="module:ps_brandlist/views/templates/_partials/$brand_display_type.tpl" brands=$brands} + {include file='module:ps_brandlist/views/templates/_partials/$brand_display_type.tpl' brands=$brands} {else}

{l s='No brand' d='Shop.Theme.Catalog'}

{/if} diff --git a/modules/ps_categoryproducts/views/templates/hook/ps_categoryproducts.tpl b/modules/ps_categoryproducts/views/templates/hook/ps_categoryproducts.tpl index 6aef12c06..140f7000a 100644 --- a/modules/ps_categoryproducts/views/templates/hook/ps_categoryproducts.tpl +++ b/modules/ps_categoryproducts/views/templates/hook/ps_categoryproducts.tpl @@ -5,11 +5,11 @@
{if $products|@count == 1} - {include file="components/section-title.tpl" title={l s='%s other product in the same category' sprintf=[$products|@count] d='Shop.Theme.Catalog'}} + {include file='components/section-title.tpl' title={l s='%s other product in the same category' sprintf=[$products|@count] d='Shop.Theme.Catalog'}} {else} - {include file="components/section-title.tpl" title={l s='%s other products in the same category' sprintf=[$products|@count] d='Shop.Theme.Catalog'}} + {include file='components/section-title.tpl' title={l s='%s other products in the same category' sprintf=[$products|@count] d='Shop.Theme.Catalog'}} {/if} - {include file="catalog/_partials/productlist.tpl" products=$products productClass="col-6 col-lg-4 col-xl-3"} + {include file='catalog/_partials/productlist.tpl' products=$products productClass='col-6 col-lg-4 col-xl-3'}
diff --git a/modules/ps_crossselling/views/templates/hook/ps_crossselling.tpl b/modules/ps_crossselling/views/templates/hook/ps_crossselling.tpl index a8c803286..61d6783b1 100644 --- a/modules/ps_crossselling/views/templates/hook/ps_crossselling.tpl +++ b/modules/ps_crossselling/views/templates/hook/ps_crossselling.tpl @@ -5,7 +5,8 @@ diff --git a/modules/ps_customeraccountlinks/ps_customeraccountlinks.tpl b/modules/ps_customeraccountlinks/ps_customeraccountlinks.tpl index 0eedc41ff..ed27679b9 100644 --- a/modules/ps_customeraccountlinks/ps_customeraccountlinks.tpl +++ b/modules/ps_customeraccountlinks/ps_customeraccountlinks.tpl @@ -34,13 +34,13 @@ {if $configuration.return_enabled && !$configuration.is_catalog}
  • {l s='Merchandise returns' d='Shop.Theme.Customeraccount'}
  • {/if} - {hook h="displayMyAccountBlock"} + {hook h='displayMyAccountBlock'}
  • {l s='Sign out' d='Shop.Theme.Actions'}
  • {else}
  • {l s='Order tracking' d='Shop.Theme.Customeraccount'}
  • {l s='Sign in' d='Shop.Theme.Actions'}
  • {l s='Create account' d='Shop.Theme.Customeraccount'}
  • - {hook h="displayMyAccountBlock"} + {hook h='displayMyAccountBlock'} {/if}
    diff --git a/modules/ps_featuredproducts/views/templates/hook/ps_featuredproducts.tpl b/modules/ps_featuredproducts/views/templates/hook/ps_featuredproducts.tpl index 74d7e7d2d..822b44943 100644 --- a/modules/ps_featuredproducts/views/templates/hook/ps_featuredproducts.tpl +++ b/modules/ps_featuredproducts/views/templates/hook/ps_featuredproducts.tpl @@ -4,8 +4,8 @@ *}