From c4759ebe4eb9552943914f6d524903754793120a Mon Sep 17 00:00:00 2001
From: Tim Steiner <tsteiner2@unl.edu>
Date: Fri, 10 Sep 2010 16:34:19 +0000
Subject: [PATCH] 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
---
 sites/all/themes/unl_wdn/template.php | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/sites/all/themes/unl_wdn/template.php b/sites/all/themes/unl_wdn/template.php
index d7c7528e..c3763cc1 100644
--- a/sites/all/themes/unl_wdn/template.php
+++ b/sites/all/themes/unl_wdn/template.php
@@ -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()) {
-- 
GitLab