Skip to content

Commit

Permalink
Merge pull request #605 from Klemart3D/patch-1
Browse files Browse the repository at this point in the history
Replace smarty condition "else if" by "elseif"
  • Loading branch information
kpodemski authored Mar 5, 2024
2 parents 9446868 + 8078593 commit 898132d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/ps_mainmenu/ps_mainmenu.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{if $nodes|count}
<ul
{if $depth === 0}id="top-menu"{/if}
class="{if $depth === 0}main-menu__tree h-100{else if $depth === 1}row row-cols-4 gy-3{else}submenu{/if}"
class="{if $depth === 0}main-menu__tree h-100{elseif $depth === 1}row row-cols-4 gy-3{else}submenu{/if}"
data-depth="{$depth}"
>
{foreach from=$nodes item=node}
Expand Down
4 changes: 2 additions & 2 deletions templates/_partials/microdata/product-jsonld.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"sku": "{if $product.reference}{$product.reference}{else}{$product.id}{/if}",
"mpn": "{if $product.mpn}{$product.mpn}{elseif $product.reference}{$product.reference}{else}{$product.id}{/if}"
{if $product.ean13},"gtin13": "{$product.ean13}"
{else if $product.upc},"gtin13": "{$product.upc}"
{elseif $product.upc},"gtin13": "{$product.upc}"
{/if}
{if $product_manufacturer->name},
"brand": {
Expand Down Expand Up @@ -80,7 +80,7 @@
{/if}
"sku": "{if $product.reference}{$product.reference}{else}{$product.id}{/if}",
"mpn": "{if $product.mpn}{$product.mpn}{elseif $product.reference}{$product.reference}{else}{$product.id}{/if}",
{if $product.ean13}"gtin13": "{$product.ean13}",{else if $product.upc}"gtin13": "0{$product.upc}",{/if}
{if $product.ean13}"gtin13": "{$product.ean13}",{elseif $product.upc}"gtin13": "0{$product.upc}",{/if}
{if $product.condition == 'new'}"itemCondition": "https://schema.org/NewCondition",{/if}
{if $product.show_condition > 0}
{if $product.condition == 'used'}"itemCondition": "https://schema.org/UsedCondition",{/if}
Expand Down
2 changes: 1 addition & 1 deletion templates/contact.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{hook h='displayContactLeftColumn'}
</div>
{/block}
{else if $layout === 'layouts/layout-right-column.tpl'}
{elseif $layout === 'layouts/layout-right-column.tpl'}
{block name='right_column'}
<div id="right-column" class="wrapper__right-column col-md-4 col-lg-3">
{hook h='displayContactRightColumn'}
Expand Down

0 comments on commit 898132d

Please sign in to comment.