function theme_blockify_site_name in Blockify 6
Same name and namespace in other branches
- 8 blockify.theme.inc \theme_blockify_site_name()
- 7 blockify.theme.inc \theme_blockify_site_name()
Returns the rendered site name.
1 theme call to theme_blockify_site_name()
- blockify_get_content in ./
blockify.module - Provides individual block content.
File
- ./
blockify.theme.inc, line 35
Code
function theme_blockify_site_name($site_name) {
$title = drupal_get_title();
// If there is no page title set for this page, use an h1 for the site name.
$tag = $title !== '' ? 'span' : 'h1';
return '<' . $tag . ' class="site-name">' . $site_name . '</' . $tag . '>';
}