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

Add pagetitle to the html <title>.

git-svn-id: file:///tmp/wdn_thm_drupal/branches/drupal-7.x@113 20a16fea-79d4-4915-8869-1ea9d5ebf173
parent 58203d69
No related branches found
No related tags found
No related merge requests found
......@@ -20,14 +20,14 @@ function unl_wdn_breadcrumb($variables)
{
$breadcrumbs = $variables['breadcrumb'];
if (count($breadcrumbs) == 0) {
$breadcrumbs[] = variable_get('site_name', 'Department');
} else {
//Change 'Home' to be $site_name
array_unshift($breadcrumbs,
str_replace('Home', variable_get('site_name', 'Department'),
array_shift($breadcrumbs)));
}
if (count($breadcrumbs) == 0) {
$breadcrumbs[] = variable_get('site_name', 'Department');
} else {
//Change 'Home' to be $site_name
array_unshift($breadcrumbs,
str_replace('Home', variable_get('site_name', 'Department'),
array_shift($breadcrumbs)));
}
//Prepend UNL
array_unshift($breadcrumbs, '<a href="http://www.unl.edu/">UNL</a>');
......@@ -65,6 +65,9 @@ function unl_wdn_head_title()
//Prepend UNL
array_unshift($path, 'UNL');
if (!drupal_is_front_page()) {
$path[] = drupal_get_title();
}
return implode(' | ', $path);
}
......@@ -128,11 +131,11 @@ function unl_wdn_status_messages($variables)
$type = ucfirst($type);
$output .= <<<EOF
<div class="wdn_notice">
<div class="close">
<a href="#" title="Close this notice">Close this notice</a>
</div>
<div class="message">
<h3>$type</h3>
<div class="close">
<a href="#" title="Close this notice">Close this notice</a>
</div>
<div class="message">
<h3>$type</h3>
EOF;
if (count($messages) > 1) {
$output .= '<ul>' . PHP_EOL;
......
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