Skip to content

Commit 9446868

Browse files
authored
Merge pull request #601 from yannicka/tpl-quotes
Templates: double quotes => single quote (for Smarty strings)
2 parents 204533b + 14b39b2 commit 9446868

File tree

51 files changed

+128
-127
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+128
-127
lines changed

modules/ps_bestsellers/views/templates/hook/ps_bestsellers.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
*}
55
<section class="best-sellers-products mt-3">
66
<div class="container">
7-
{include file="components/section-title.tpl" title={l s="Best Sellers" d="Shop.Theme.Catalog"}}
8-
{include file="catalog/_partials/productlist.tpl" products=$products productClass="col-6 col-lg-4 col-xl-3"}
7+
{include file='components/section-title.tpl' title={l s='Best Sellers' d='Shop.Theme.Catalog'}}
8+
{include file='catalog/_partials/productlist.tpl' products=$products productClass='col-6 col-lg-4 col-xl-3'}
99
<div class="best-sellers-products-footer text-center">
1010
<a class="all-product-link btn btn-outline-primary" href="{$allBestSellers}">
1111
{l s='All best sellers' d='Shop.Theme.Catalog'}<i class="material-icons rtl-flip" aria-hidden="true">&#xE315;</i>

modules/ps_brandlist/views/templates/hook/ps_brandlist.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
<div>
2020
{if $brands}
21-
{include file="module:ps_brandlist/views/templates/_partials/$brand_display_type.tpl" brands=$brands}
21+
{include file='module:ps_brandlist/views/templates/_partials/$brand_display_type.tpl' brands=$brands}
2222
{else}
2323
<p class="mb-0">{l s='No brand' d='Shop.Theme.Catalog'}</p>
2424
{/if}

modules/ps_categoryproducts/views/templates/hook/ps_categoryproducts.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
<section class="category-products mt-3">
66
<div class="container">
77
{if $products|@count == 1}
8-
{include file="components/section-title.tpl" title={l s='%s other product in the same category' sprintf=[$products|@count] d='Shop.Theme.Catalog'}}
8+
{include file='components/section-title.tpl' title={l s='%s other product in the same category' sprintf=[$products|@count] d='Shop.Theme.Catalog'}}
99
{else}
10-
{include file="components/section-title.tpl" title={l s='%s other products in the same category' sprintf=[$products|@count] d='Shop.Theme.Catalog'}}
10+
{include file='components/section-title.tpl' title={l s='%s other products in the same category' sprintf=[$products|@count] d='Shop.Theme.Catalog'}}
1111
{/if}
1212

13-
{include file="catalog/_partials/productlist.tpl" products=$products productClass="col-6 col-lg-4 col-xl-3"}
13+
{include file='catalog/_partials/productlist.tpl' products=$products productClass='col-6 col-lg-4 col-xl-3'}
1414
</div>
1515
</section>

modules/ps_crossselling/views/templates/hook/ps_crossselling.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<section class="featured-products mt-3">
77
<div class="container">
8-
{include file="components/section-title.tpl" title={l s='Customers who bought this product also bought:' d='Shop.Theme.Catalog'}}
9-
{include file="catalog/_partials/productlist.tpl" products=$products productClass="col-6 col-lg-4 col-xl-3"}
8+
{include file='components/section-title.tpl' title={l s='Customers who bought this product also bought:' d='Shop.Theme.Catalog'}}
9+
{include file='catalog/_partials/productlist.tpl' products=$products productClass='col-6 col-lg-4 col-xl-3'}
1010
</div>
1111
</section>

modules/ps_customeraccountlinks/ps_customeraccountlinks.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@
3434
{if $configuration.return_enabled && !$configuration.is_catalog}
3535
<li><a href="{$urls.pages.order_follow}" title="{l s='Merchandise returns' d='Shop.Theme.Customeraccount'}" rel="nofollow">{l s='Merchandise returns' d='Shop.Theme.Customeraccount'}</a></li>
3636
{/if}
37-
{hook h="displayMyAccountBlock"}
37+
{hook h='displayMyAccountBlock'}
3838
<li><a href="{$urls.actions.logout}" title="{l s='Log me out' d='Shop.Theme.Customeraccount'}" class="logout" rel="nofollow">{l s='Sign out' d='Shop.Theme.Actions'}</a></li>
3939
{else}
4040
<li><a href="{$urls.pages.guest_tracking}" title="{l s='Order tracking' d='Shop.Theme.Customeraccount'}" rel="nofollow">{l s='Order tracking' d='Shop.Theme.Customeraccount'}</a></li>
4141
<li><a href="{$urls.pages.my_account}" title="{l s='Log in to your customer account' d='Shop.Theme.Customeraccount'}" rel="nofollow">{l s='Sign in' d='Shop.Theme.Actions'}</a></li>
4242
<li><a href="{$urls.pages.register}" title="{l s='Create account' d='Shop.Theme.Customeraccount'}" rel="nofollow">{l s='Create account' d='Shop.Theme.Customeraccount'}</a></li>
43-
{hook h="displayMyAccountBlock"}
43+
{hook h='displayMyAccountBlock'}
4444
{/if}
4545
</ul>
4646
</div>

modules/ps_emailalerts/views/templates/hook/product.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525

2626
<div class="card card-body text-center js-mailalert mb-3 mt-3 bg-light" data-url="{url entity='module' name='ps_emailalerts' controller='actions' params=['process' => 'add']}">
2727
{if isset($email) AND $email}
28-
<p>{l s="Interested in this product? Drop us an email and we will let you know when it's available for order." d='Modules.Emailalerts.Shop'}</p>
28+
<p>{l s='Interested in this product? Drop us an email and we will let you know when it\'s available for order.' d='Modules.Emailalerts.Shop'}</p>
2929
<input class="form-control" type="email" placeholder="{l s='your@email.com' d='Modules.Emailalerts.Shop'}"/>
3030
{else}
31-
<p>{l s="Interested in this product? Click below and we will let you know when it's available for order." d='Modules.Emailalerts.Shop'}</p>
31+
<p>{l s='Interested in this product? Click below and we will let you know when it\'s available for order.' d='Modules.Emailalerts.Shop'}</p>
3232
{/if}
3333

3434
{if !empty($id_module)}

modules/ps_featuredproducts/views/templates/hook/ps_featuredproducts.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
*}
55
<section class="featured-products">
66
<div class="container">
7-
{include file="components/section-title.tpl" title={l s="Popular Products" d="Shop.Theme.Catalog"}}
8-
{include file="catalog/_partials/productlist.tpl" products=$products productClass="col-6 col-lg-4 col-xl-3"}
7+
{include file='components/section-title.tpl' title={l s='Popular Products' d='Shop.Theme.Catalog'}}
8+
{include file='catalog/_partials/productlist.tpl' products=$products productClass='col-6 col-lg-4 col-xl-3'}
99
</div>
1010

1111
<div class="featured-products-footer text-center">

modules/ps_newproducts/views/templates/hook/ps_newproducts.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
<section class="new-products mt-3">
77
<div class="container">
8-
{include file="components/section-title.tpl" title={l s="New products" d="Shop.Theme.Catalog"}}
9-
{include file="catalog/_partials/productlist.tpl" products=$products productClass="col-6 col-lg-4 col-xl-3"}
8+
{include file='components/section-title.tpl' title={l s='New products' d='Shop.Theme.Catalog'}}
9+
{include file='catalog/_partials/productlist.tpl' products=$products productClass='col-6 col-lg-4 col-xl-3'}
1010
<div class="new-products-footer text-center">
1111
<a class="all-product-link btn btn-outline-primary" href="{$allNewProductsLink}">
1212
{l s='All new products' d='Shop.Theme.Catalog'}<i class="material-icons rtl-flip" aria-hidden="true">&#xE315;</i>

modules/ps_specials/views/templates/hook/ps_specials.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
<section class="sale-products mt-3">
77
<div class="container">
8-
{include file="components/section-title.tpl" title={l s="On sale" d="Shop.Theme.Catalog"}}
9-
{include file="catalog/_partials/productlist.tpl" products=$products productClass="col-6 col-lg-4 col-xl-3"}
8+
{include file='components/section-title.tpl' title={l s='On sale' d='Shop.Theme.Catalog'}}
9+
{include file='catalog/_partials/productlist.tpl' products=$products productClass='col-6 col-lg-4 col-xl-3'}
1010
<div class="sale-products-footer text-center">
1111
<a class="all-product-link btn btn-outline-primary" href="{$allSpecialProductsLink}">
1212
{l s='All sale products' d='Shop.Theme.Catalog'}<i class="material-icons rtl-flip" aria-hidden="true">&#xE315;</i>

modules/ps_supplierlist/views/templates/hook/ps_supplierlist.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
<div>
2020
{if $suppliers}
21-
{include file="module:ps_supplierlist/views/templates/_partials/$supplier_display_type.tpl" suppliers=$suppliers}
21+
{include file='module:ps_supplierlist/views/templates/_partials/$supplier_display_type.tpl' suppliers=$suppliers}
2222
{else}
2323
<p>{l s='No supplier' d='Shop.Theme.Catalog'}</p>
2424
{/if}

0 commit comments

Comments
 (0)