I am creating an responsive template and for that to happen I need to use and if else and function. This is what I have so far.
<?php if ($this->countModules('left')) { ?>
<p>Left + Content</p>
<?php } elseif ($this->countModules('right')) { ?>
<p>Right + Content</p>
<?php } elseif ($this->countModules('left')) && ($this->countModules('right')) { ?>
<p>Left + Right + Content</p>
<?php } else { ?>
<p>Content</p>
<?php } ?>
I am now receiving the error: Parse error: syntax error, unexpected '&&' (T_BOOLEAN_AND) in index.php on line 197
Line 197 =
<?php } elseif ($this->countModules('left')) && ($this->countModules('right')) { ?>
I have tried adding an extra () but that did not work:
<?php } elseif (($this->countModules('left')) && ($this->countModules('right'))) { ?>
I am forgetting something but what.