Skip to content
Snippets Groups Projects
Commit c4759ebe authored by Tim Steiner's avatar Tim Steiner
Browse files

If the site name is UNL, don't prepend the UNL breadcrumbs in the theme.

git-svn-id: file:///tmp/wdn_thm_drupal/branches/drupal-7.x@160 20a16fea-79d4-4915-8869-1ea9d5ebf173
parent 67eb4a08
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,9 @@ function unl_wdn_preprocess_html(&$vars, $hook)
array_unshift($head_title, str_replace( 'Home', variable_get('site_name', 'Department'), array_shift($head_title)));
//Prepend UNL
array_unshift($head_title, 'UNL');
if (variable_get('site_name') != 'UNL') {
array_unshift($head_title, 'UNL');
}
$vars['head_title'] = implode(' | ', $head_title);
}
......@@ -71,7 +73,9 @@ function unl_wdn_breadcrumb($variables)
}
//Prepend UNL
array_unshift($breadcrumbs, '<a href="http://www.unl.edu/">UNL</a>');
if (variable_get('site_name') != 'UNL') {
array_unshift($breadcrumbs, '<a href="http://www.unl.edu/">UNL</a>');
}
//Append title of current page -- http://drupal.org/node/133242
if (!drupal_is_front_page()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment