function theme_panels_ipe_pane_wrapper in Panels 7.3
Same name and namespace in other branches
- 6.3 panels_ipe/panels_ipe.module \theme_panels_ipe_pane_wrapper()
1 theme call to theme_panels_ipe_pane_wrapper()
- panels_renderer_ipe::render_pane in panels_ipe/
plugins/ display_renderers/ panels_renderer_ipe.class.php - Override & call the parent, then pass output through to the dnd wrapper theme function.
File
- panels_ipe/
panels_ipe.module, line 153
Code
function theme_panels_ipe_pane_wrapper($vars) {
$output = $vars['output'];
$pane = $vars['pane'];
$display = $vars['display'];
$attributes = array(
'class' => 'panels-ipe-linkbar',
);
$type = ctools_get_content_type($pane->type);
$title = '<span class = "panels-ipe-dragbar-admin-title">' . ctools_content_admin_title($type, $pane->subtype, $pane->configuration, $display->context) . '</span>';
$links = theme('links', array(
'links' => $vars['links'],
'attributes' => $attributes,
));
if (!empty($pane->locks['type']) && $pane->locks['type'] == 'immovable') {
$links = '<div class="panels-ipe-dragbar panels-ipe-nodraghandle clearfix">' . $links . $title . '</div>';
}
else {
$links = '<div class="panels-ipe-dragbar panels-ipe-draghandle clearfix">' . $links . $title . '<span class="panels-ipe-draghandle-icon"><span class="panels-ipe-draghandle-icon-inner"></span></span></div>';
}
$handlebar = '<div class="panels-ipe-handlebar-wrapper panels-ipe-on">' . $links . '</div>';
return $handlebar . $output;
}