You are here

function theme_panels_content_custom in Panels 5

1 theme call to theme_panels_content_custom()
panels_content_custom in content_types/custom.inc
Output function for the 'custom' content type. Outputs a custom based on the module and delta supplied in the configuration.

File

content_types/custom.inc, line 25

Code

function theme_panels_content_custom($title, $body, $css_id = NULL, $css_class = NULL) {
  if ($css_id) {
    $css_id = ' id="' . $css_id . '"';
  }
  if ($css_class) {
    $css_class = ' ' . $css_class;
  }
  $output = '<div class="panel-custom' . $css_class . '"' . $css_id . '>';
  if ($title) {
    $output .= '<h2 class="title">' . $title . '</h2>';
  }
  $output .= $body;
  $output .= '</div>';
  return $output;
}