From 06336bc5feb7abfc5273495dab7ad65c3d3ae272 Mon Sep 17 00:00:00 2001
From: Tim Steiner <tsteiner2@unl.edu>
Date: Wed, 9 Feb 2011 19:36:40 +0000
Subject: [PATCH] [gh-89] Merging from testing into staging

git-svn-id: file:///tmp/wdn_thm_drupal/branches/drupal-7.x/staging@502 20a16fea-79d4-4915-8869-1ea9d5ebf173
---
 sites/all/themes/unl_wdn/template.php | 21 +++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)

diff --git a/sites/all/themes/unl_wdn/template.php b/sites/all/themes/unl_wdn/template.php
index 3094f04f..20a8271f 100644
--- a/sites/all/themes/unl_wdn/template.php
+++ b/sites/all/themes/unl_wdn/template.php
@@ -161,14 +161,31 @@ function unl_wdn_status_messages($variables) {
 
   $output = '';
   foreach (drupal_get_messages($display) as $type => $messages) {
+    switch ($type) {
+      case 'status':
+        $extra_class = ' affirm';
+        break;
+      
+      case 'warning':
+        $extra_class = ' alert';
+        break;
+      
+      case 'error':
+        $extra_class = ' negate';
+        break;
+        
+      default:
+        $extra_class = '';
+        break;
+    }
     $type = ucfirst($type);
     $output .= <<<EOF
-<div class="wdn_notice">
+<div class="wdn_notice$extra_class">
     <div class="close">
         <a href="#" title="Close this notice">Close this notice</a>
     </div>
     <div class="message">
-        <h3>$type</h3>
+        <h4>$type</h4>
 EOF;
     if (count($messages) > 1) {
       $output .= '<ul>' . PHP_EOL;
-- 
GitLab