I just stole some code from Zen theme, modified to fit into Basic and got the functionality of adding body classes "page-views" and "page-panels" to the pages that are generated by panels or views. That way, you can style the panel and views pages differently. Here is the code:
$vars['menu_item'] = menu_get_item();
switch ($vars['menu_item']['page_callback']) {
case 'views_page':
// Is this a Views page?
$body_classes[] = 'page-views';
break;
case 'page_manager_page_execute':
case 'page_manager_node_view':
case 'page_manager_contact_site':
// Is this a Panels page?
$body_classes[] = 'page-panels';
break;
}
This code goes into template.php file just under the line: $body_classes = array($vars['body_classes']);
Hope it helps...
Comments
Comment #1
lil.destro commentedthis is fairly specific to certain modules so it's not something we will be adding into basic.