Posted by GregoryHeller on August 13, 2007 at 4:09pm
Jared, Shawn and I were talking this weekend about panels and themes. The question of eliminating blocks from your theme when using a panel came up. I couldn't find the code for this, but just go it from one of my engineers:
// Hide sidebars on panel pages
if (function_exists('panels_is_panels_page') && $vars['panels_page'] = panels_is_panels_page()) {
$vars['sidebar_left'] = '';
$vars['sidebar_right'] = '';
$body_classes[] = 'panels_page';
}
Comments
thanks
thanks Gregory
-jared
Now in Panels2 alpha
Thanks! I believe Panels2 alpha now has a toggle for this in the advanced settings:
But it'll come in handy to have the code for the stable version.
Much appreciated!