You are here

function theme_i18npanels_panels_content_custom in Internationalization 5.3

Same name and namespace in other branches
  1. 5.2 contrib/i18npanels.module \theme_i18npanels_panels_content_custom()
1 theme call to theme_i18npanels_panels_content_custom()
i18npanels_panels_content_custom in contrib/i18npanels.module
Output function for the 'custom' content type. Outputs a custom based on the module and delta supplied in the configuration.

File

contrib/i18npanels.module, line 34

Code

function theme_i18npanels_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;
}