source/php/Display.php
public function addGridToSidebar($markup, $module)
    {
        $sidebars = apply_filters('Modularity/Module/Container/Sidebars', array());
        $modules = apply_filters('Modularity/Module/Container/Modules', array());
        $template = apply_filters('Modularity/Module/Container/Template', '<div class="container"><div class="grid"><div class="grid-xs-12">{{module-markup}}</div></div></div>');

        if (in_array($module->args['id'], $sidebars) && in_array($module->post_type, $modules)) {
            return str_replace('{{module-markup}}', $markup, $template);
        }

        return $markup;
    }
public function addGridToSidebar($markup, $module)
    {
        $sidebars = apply_filters('Modularity/Module/Container/Sidebars', array());
        $modules = apply_filters('Modularity/Module/Container/Modules', array());
        $template = apply_filters('Modularity/Module/Container/Template', '<div class="container"><div class="grid"><div class="grid-xs-12">{{module-markup}}</div></div></div>');

        if (in_array($module->args['id'], $sidebars) && in_array($module->post_type, $modules)) {
            return str_replace('{{module-markup}}', $markup, $template);
        }

        return $markup;
    }
public function addGridToSidebar ( $ markup , $ module ) { $ sidebars = apply_filters ( 'Modularity/Module/Container/Sidebars' , array ( ) ) ; $ modules = apply_filters ( 'Modularity/Module/Container/Modules' , array ( ) ) ; $ template = apply_filters ( 'Modularity/Module/Container/Template' , '<div class="container"><div class="grid"><div class="grid-xs-12">{{module-markup}}</div></div></div>' ) ; if ( in_array ( $ module -> args [ 'id' ] , $ sidebars ) && in_array ( $ module -> post_type , $ modules ) ) { return str_replace ( '{{module-markup}}' , $ markup , $ template ) ; } return $ markup ; }
Add container grid to specified modules, in specified sidebars
@param  $markup The module markup
@return $module Module object
Add container grid to specified modules in specified sidebars