function panels_render_layout_admin in Panels 6.3
Render the administrative layout of a display.
This is used for the edit version, so that layouts can have different modes, such as the flexible layout designer mode.
File
- includes/
display-render.inc, line 15 - Contains Panels display rendering functions.
Code
function panels_render_layout_admin($layout, $content, $display) {
// @todo This should be abstracted.
if (!empty($layout['css'])) {
if (file_exists(path_to_theme() . '/' . $layout['css'])) {
drupal_add_css(path_to_theme() . '/' . $layout['css']);
}
else {
drupal_add_css($layout['path'] . '/' . $layout['css']);
}
}
if (isset($layout['admin css'])) {
drupal_add_css($layout['path'] . '/' . $layout['admin css']);
}
$theme = isset($layout['admin theme']) ? $layout['admin theme'] : $layout['theme'];
return theme($theme, isset($display->css_id) ? $display->css_id : '', $content, $display->layout_settings, $display, $layout);
}