Kajal's Blog
Monday, January 11, 2010
Code for sitename in Drupal
This snippet enables the site name to be toggled on or off, and wraps it with an H1 tag and a class.
if (theme_get_setting('toggle_name')) {
$output .= " <h1 class=\"site-name title\">". l(variable_
get('site_name', 'drupal'), ""). "</h1>";
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment