You are here

function theme_panels_pane_dnd in Panels 5.2

Same name and namespace in other branches
  1. 6.2 includes/display-edit.inc \theme_panels_pane_dnd()
1 theme call to theme_panels_pane_dnd()
panels_show_pane in includes/display_edit.inc

File

includes/display_edit.inc, line 1695

Code

function theme_panels_pane_dnd($block, $id, $label, $left_buttons = NULL, $buttons = NULL) {
  if (!$block->title) {
    $block->title = t('No title');
  }
  static $count = 0;
  $output .= "<div class=\"grabber\">";
  if ($buttons) {
    $output .= "<span class='buttons'>{$buttons}</span>";
  }
  if ($left_buttons) {
    $output .= "<span class='left_buttons'>{$left_buttons}</span>";
  }
  $output .= "<span class=\"text\">{$label}</span></div>";
  $output .= '<div class="panel-pane-collapsible">';
  $output .= theme('panels_pane_collapsible', $block);
  $output .= '</div>';
  return $output;
}