From af6f20a3beba4f499f0d4c05f658780c7919d65f Mon Sep 17 00:00:00 2001
From: Eric Rasmussen <eric@unl.edu>
Date: Thu, 16 Sep 2010 22:35:40 +0000
Subject: [PATCH] Move the "View/Edit" tabs on a unl templated page from under
 the page title to the upper right to mimic the drupal seven theme and to
 prevent pushing down the content area

git-svn-id: file:///tmp/wdn_thm_drupal/branches/drupal-7.x@171 20a16fea-79d4-4915-8869-1ea9d5ebf173
---
 sites/all/themes/unl_wdn/style.css    | 9 ++++++++-
 sites/all/themes/unl_wdn/template.php | 4 ++--
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/sites/all/themes/unl_wdn/style.css b/sites/all/themes/unl_wdn/style.css
index 1936e0bb..3314ecfa 100644
--- a/sites/all/themes/unl_wdn/style.css
+++ b/sites/all/themes/unl_wdn/style.css
@@ -8,7 +8,14 @@
 #toolbar {
 	font-size:11.5167px;
 }
-
+#maincontent {
+	overflow:visible !important;
+}
+#maincontent ul.wdn_tabs.cms_tabs {
+	position:absolute;
+	right:0;
+	top:-60px;
+}
 
 /* Older CSS from when we were going to use this theme for the admin interface
 ul.primary li a {
diff --git a/sites/all/themes/unl_wdn/template.php b/sites/all/themes/unl_wdn/template.php
index c3763cc1..62279c6c 100644
--- a/sites/all/themes/unl_wdn/template.php
+++ b/sites/all/themes/unl_wdn/template.php
@@ -111,12 +111,12 @@ function unl_wdn_menu_local_tasks()
     $output = array();
     
     if ($primary = menu_primary_local_tasks()) {
-        $primary['#prefix'] = '<ul class="wdn_tabs disableSwitching">';
+        $primary['#prefix'] = '<ul class="wdn_tabs cms_tabs disableSwitching">';
         $primary['#suffix'] = '</ul>';
         $output[] = $primary;
     }
     if ($secondary = menu_secondary_local_tasks()) {
-        $secondary['#prefix'] = '<ul class="wdn_tabs disableSwitching">';
+        $secondary['#prefix'] = '<ul class="wdn_tabs cms_tabs disableSwitching">';
         $secondary['#suffix'] = '</ul>';
         $output[] = $secondary;
     }
-- 
GitLab