Skip to content

Commit 898132d

Browse files
authored
Merge pull request PrestaShop#605 from Klemart3D/patch-1
Replace smarty condition "else if" by "elseif"
2 parents 9446868 + 8078593 commit 898132d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

modules/ps_mainmenu/ps_mainmenu.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{if $nodes|count}
33
<ul
44
{if $depth === 0}id="top-menu"{/if}
5-
class="{if $depth === 0}main-menu__tree h-100{else if $depth === 1}row row-cols-4 gy-3{else}submenu{/if}"
5+
class="{if $depth === 0}main-menu__tree h-100{elseif $depth === 1}row row-cols-4 gy-3{else}submenu{/if}"
66
data-depth="{$depth}"
77
>
88
{foreach from=$nodes item=node}

templates/_partials/microdata/product-jsonld.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"sku": "{if $product.reference}{$product.reference}{else}{$product.id}{/if}",
3636
"mpn": "{if $product.mpn}{$product.mpn}{elseif $product.reference}{$product.reference}{else}{$product.id}{/if}"
3737
{if $product.ean13},"gtin13": "{$product.ean13}"
38-
{else if $product.upc},"gtin13": "{$product.upc}"
38+
{elseif $product.upc},"gtin13": "{$product.upc}"
3939
{/if}
4040
{if $product_manufacturer->name},
4141
"brand": {
@@ -80,7 +80,7 @@
8080
{/if}
8181
"sku": "{if $product.reference}{$product.reference}{else}{$product.id}{/if}",
8282
"mpn": "{if $product.mpn}{$product.mpn}{elseif $product.reference}{$product.reference}{else}{$product.id}{/if}",
83-
{if $product.ean13}"gtin13": "{$product.ean13}",{else if $product.upc}"gtin13": "0{$product.upc}",{/if}
83+
{if $product.ean13}"gtin13": "{$product.ean13}",{elseif $product.upc}"gtin13": "0{$product.upc}",{/if}
8484
{if $product.condition == 'new'}"itemCondition": "https://schema.org/NewCondition",{/if}
8585
{if $product.show_condition > 0}
8686
{if $product.condition == 'used'}"itemCondition": "https://schema.org/UsedCondition",{/if}

templates/contact.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
{hook h='displayContactLeftColumn'}
1313
</div>
1414
{/block}
15-
{else if $layout === 'layouts/layout-right-column.tpl'}
15+
{elseif $layout === 'layouts/layout-right-column.tpl'}
1616
{block name='right_column'}
1717
<div id="right-column" class="wrapper__right-column col-md-4 col-lg-3">
1818
{hook h='displayContactRightColumn'}

0 commit comments

Comments
 (0)