Disabling Grid Container for Zurb Foundation

Permalink
With Bootstrap based themes, there's a nifty function to bust single blocks out of the grid via the user interface ( Design & Custom Template > Advanced > Block Container Class > Disable Block Container, as documented here:https://documentation.concrete5.org/developers/working-with-blocks/c... )

I'm now trying to achieve this in a Foundation based theme. However, I can't figure out how to properly set up my theme to get it working.

Foundation does not use a .container like Bootstrap does, so this section in Foundation.php is empty. In a way, the .row acts as the container.

public function getPageThemeGridFrameworkContainerStartHTML()
    {
        return '';
    }
    public function getPageThemeGridFrameworkContainerEndHTML()
    {
        return '';
    }


In my page_theme.php, I have tried the following, without success. I.e. when I set "Disable Grid Containeer" on a block, nothing happens.

protected $pThemeGridFrameworkHandle = 'foundation';
    public function getPageThemeGridFrameworkContainerStartHTML()
    {
        return '<div class="row">';
    }
    public function getPageThemeGridFrameworkContainerEndHTML()
    {
        return '</div>';
    }


The area in my default.php where I'm trying to bust a block (image_slider) out of the container looks like this:

<main>
   <div class="row">
      <div class="small-12 columns">
         <?php
         $a = new Area('Main');
         $a->enableGridContainer();
         $a->setAreaGridMaximumColumns(12);
         $a->display($c);
         ?>
      </div>
   </div>
</main>


Has anyone else had any success with getting this working?

 
publicb replied on at Permalink Reply
Nevermind - setting ContainerStartHTML and ContainerEndHTML as detailed above is now working.