' . t('Showing style guide for %theme', array('%theme' => $theme_info['name'])) . ''; if (isset($theme_info['description'])) { $output .= '

' . $theme_info['description'] . '

'; } $output .= '

'. t('Styleguide element entries') .'

'; $output .= '

' . t('Optional item description.') . '

'; $output .= '
'; $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 .= '
'; $output .= '

'; return $output; } /** * Theme a display item. * * @param $variables * The theme variables array, including: * -- 'key' a unique string indicating the name of the item. * -- 'item' an array of data about the item. * -- 'content' the content to display for this item. * * @see hook_styleguide() */ function theme_styleguide_item($variables) { $key = $variables['key']; $item = $variables['item']; $content = $variables['content']; $output = ''; $output .= ""; $output .= '

'. $item['title'] .'

'; if (!empty($item['description'])) { $output .= '

'; $output .= $item['description']; $output .= '

'; } $output .= '
'; $output .= $content; $output .= '
'; return $output; } /** * Theme the page links. * * NOTE: these may be turned into sub-tabs. * * @param $variables * The theme variables array, including: * -- 'items' the list of links. */ function theme_styleguide_links($variables) { // Close the header. $output = '
'; $output .= $variables['items']; $output .= '

'; $output .= '
'; return $output; } /** * Theme the content. * * This function is here in case anyone wants to change it. * * @param $variables * The theme variables array, including: * -- 'content' an HTML content element. */ function theme_styleguide_content($variables) { return $variables['content']; }