Can someone please tell me why this php If-statement is displaying the html when the condition is false?
<?php if ($sidebar['blog_default_layout'] == "Left Sidebar") : ?>
<aside class="sidebar span3" role="complementary">
<?php get_sidebar( 'blog-sidebar' ); ?>
</aside>
<?php endif ?>
According to: Can HTML be embedded inside PHP “if” statement? this shouldn't display the html since the condition is not true.
The <?php get_sidebar( 'blog-sidebar' ); ?>
between the html doesn't display, as it shouldn't.