You are here

function theme_boxes_box in Boxes 6

Same name and namespace in other branches
  1. 7 boxes.admin.inc \theme_boxes_box()

Theme function for the form.

1 theme call to theme_boxes_box()
boxes_block in ./boxes.module
Implementation of hook_block().

File

./boxes.admin.inc, line 70

Code

function theme_boxes_box($block) {
  $output = "<div id='boxes-box-" . $block['delta'] . "' class='boxes-box" . (!empty($block['editing']) ? ' boxes-box-editing' : '') . "'>";
  $output .= '<div class="boxes-box-content">' . $block['content'] . '</div>';
  if (!empty($block['controls'])) {
    $output .= '<div class="boxes-box-controls">';
    $output .= $block['controls'];
    $output .= '</div>';
  }
  if (!empty($block['editing'])) {
    $output .= '<div class="box-editor">' . $block['editing'] . '</div>';
  }
  $output .= '</div>';
  return $output;
}