Grid Container Woes
Permalink
I was playing with the enableGridContainer and noticed that putting two blocks next to each other nests a new container inside the first one. Am I doing something wrong? Is there a disableGridContainer or something I'm missing?
** Edited to say - This only seems to affect 'new GlobalArea' and not 'new Area'.**
So this:
outputs this
** Edited to say - This only seems to affect 'new GlobalArea' and not 'new Area'.**
So this:
<?php $a = new GlobalArea('Site Title'); $a->enableGridContainer(); $a->display(); ?> <?php $a = new GlobalArea('Navigation'); $a->enableGridContainer(); $a->display(); ?>
outputs this
<div class="container"> <div class="row"> <div class="col-sm-12"> <p> Logo Goes here </p> <div class="container"> <-- This starts a new container without finishing the last one. <div class="row"> <div class="col-sm-12"> <div class="ccm-custom-style-container ccm-custom-style-main-169"> <ul class="nav"> Autonav goes here </ul> </div> </div>
Viewing 15 lines of 20 lines. View entire code block.