I'm trying to achieve something in my template and hope you can help!
Within my custom mainbody.php, I'm trying to load different widths of the main body dependent on if a module is loaded to the sidebar:
<?php if ($this->countModules('sidebar-1')) :
echo '<div id="t3-content" class="t3-content col-lg-8 col-md-8 col-sm-12 col-xs-12">'
else;
echo '<div id="t3-content" class="t3-content col-lg-12 col-md-12 col-sm-12 col-xs-12">';
endif ?>
But this completely fails and does not display anything.
What am I doing wrong?
Thanks
SOLUTION
My code above is wrong use:
<?php if ($this->countModules('sidebar-1')) {
echo '<div id="t3-content" class="t3-contenty col-lg-8 col-md-8 col-sm-12 col-xs-12">';
} else {
echo '<div id="t3-content" class="t3-content col-lg-12 col-md-12 col-sm-12 col-xs-12">';
} ?>
This will then make the t3-content area full width when no sidebar module is loaded.
Hope that helps