diff --git a/theme/theme.inc b/theme/theme.inc index 7405083..a2925e0 100644 --- a/theme/theme.inc +++ b/theme/theme.inc @@ -26,6 +26,13 @@ function theme_panels_everywhere_page($vars) { // if for some reason they left out the page content pane. $info = ctools_context_handler_render_handler($task, '', $page['#handler'], $contexts, $args, FALSE); + if (is_array($info['content']) && isset($info['content']['#prefix'])) { + unset($info['content']['#prefix']); + } + if (is_array($info['content']) && isset($info['content']['#suffix'])) { + unset($info['content']['#suffix']); + } + // @todo -- is this even necessary? $page['#panels_everywhere_site_template'] = array( 'name' => 'site_template',