I was not able to find a way to place the site name in the header; Am I missing it?
In the function marvin_2k_page() I added code to capture the site name:
$site_name = variable_get('site_name', 'Drupal');
and then added it to the set_vars() array:
$template->set_vars( array(
"site_name" => $site_name,
"title" => $title,
"links" => $links,
"sidebar_left" => $sidebar_left,
"sidebar_right" => $sidebar_right,
"layout" => $layout,
"mission" => $mission,
"breadcrumb" => $breadcrumb ? theme("breadcrumb", $breadcrumb) : "",
"display_search" => (variable_get("marvin_2k_search_box", 1) && user_access("search content")),
"help" => menu_get_active_help(),
"message" => $txt_message
));
Would this be the correct way to do this?
thanks - jim
Comments
Comment #1
CodeMonkeyX commentedYep that looks about right. You would then have insert the variable into the header template.