Skip to content

Commit

Permalink
Fixed a minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zohaib87 committed Oct 5, 2023
1 parent deaa380 commit d96717d
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@
$sidebar = $xe_opt->sidebar();

/**
* Render Left Sidebar
* # Render Left Sidebar
*/
if ( $sidebar['position'] == 'left' || ($sidebar['position'] == 'both' && is_active_sidebar($sidebar['left'])) ) : ?>
if ( $sidebar['position'] == 'left' || ( $sidebar['position'] == 'both' && is_active_sidebar($sidebar['left']) ) ) { ?>

<aside id="secondary" class="widget-area left" role="complementary">
<?php dynamic_sidebar($sidebar['left']); ?>
</aside><!-- #secondary -->
<aside id="secondary" class="widget-area left" role="complementary">
<?php dynamic_sidebar( $sidebar['left'] ); ?>
</aside><!-- #secondary -->

<?php endif;
<?php }

/**
* Render Right Sidebar
* # Render Right Sidebar
*/
if ( $sidebar['position'] == 'right' || ($sidebar['position'] == 'both' && is_active_sidebar($sidebar['right'])) ) : ?>
if ( $sidebar['position'] == 'right' || ( $sidebar['position'] == 'both' && is_active_sidebar($sidebar['right']) ) ) { ?>

<aside id="tertiary" class="widget-area right" role="complementary">
<?php dynamic_sidebar($sidebar['right']); ?>
</aside><!-- #tertiary -->
<aside id="tertiary" class="widget-area right" role="complementary">
<?php dynamic_sidebar( $sidebar['right'] ); ?>
</aside><!-- #tertiary -->

<?php endif;
<?php }

0 comments on commit d96717d

Please sign in to comment.