Monday, January 11, 2010

Code for siteslogan in Drupal

The following statement enables the site slogan to be toggled on or off, and wraps it with a div and a class for styling.

if (theme_get_setting('toggle_slogan')) {
$output .= " <div class=\"site-slogan\">". variable_get(
'site_slogan', '') ."</div>";
}

No comments: