Skip to content

Commit

Permalink
fix: smarty condition
Browse files Browse the repository at this point in the history
  • Loading branch information
tblivet committed Jan 27, 2025
1 parent 9edd52d commit 0cc0298
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/_partials/header.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

{capture name="header_banner"}{hook h='displayBanner'}{/capture}
{block name='header_banner'}
{if isset($smarty.capture.header_banner) && $smarty.capture.header_banner}
{if !empty($smarty.capture.header_banner)}
<div class="{$headerBanner}">
{$smarty.capture.header_banner nofilter}
</div>
Expand All @@ -20,7 +20,7 @@
{capture name="header_nav_1"}{hook h='displayNav1'}{/capture}
{capture name="header_nav_2"}{hook h='displayNav2'}{/capture}
{block name='header_nav'}
{if (isset($smarty.capture.header_nav_1) && $smarty.capture.header_nav_1) || (isset($smarty.capture.header_nav_2) && $smarty.capture.header_nav_2)}
{if !empty($smarty.capture.header_nav_1) || !empty($smarty.capture.header_nav_2)}
<div class="{$headerTop} d-none d-md-block">
<div class="container-md">
<div class="row">
Expand Down

0 comments on commit 0cc0298

Please sign in to comment.