You are here

function theme_styleguide_header in Style Guide 6

Same name and namespace in other branches
  1. 7 styleguide.theme.inc \theme_styleguide_header()

Theme the page header.

Parameters

$variables: The theme variables array, including: -- 'theme_info' an array of information about the current theme.

1 theme call to theme_styleguide_header()
styleguide_page in ./styleguide.module
The styleguide page.

File

./styleguide.theme.inc, line 15
Theme file for Style Guide module.

Code

function theme_styleguide_header($variables) {
  $theme_info = $variables['theme_info'];
  $output = '<h2>' . t('Showing style guide for %theme', array(
    '%theme' => $theme_info['name'],
  )) . '</h2>';
  if (isset($theme_info['description'])) {
    $output .= '<p>' . $theme_info['description'] . '</p>';
  }
  $output .= '<h2 class="styleguide">' . t('Styleguide element entries') . '</h2>';
  $output .= '<p class="styleguide-description">' . t('Optional item description.') . '</p>';
  $output .= '<div class="styleguide">';
  $output .= t('The header area indicates the style element being displayed. The horizontal rules indicate the top and bottom baselines of the rendered element.');
  $output .= '</div>';
  $output .= '<div class="break"><br /></div>';
  return $output;
}