[dev] smallheader in agora

Vilius Šumskas vilius at lnk.lt
Wed Nov 3 01:57:36 PST 2004


It seems that .smallheader class in mozilla theme was overwritten by
.smallheader a from main horde theme. Patch attached.

-- 
  Vilius
-------------- next part --------------
Index: agora/lib/Block/threads.php
===================================================================
RCS file: /repository/agora/lib/Block/threads.php,v
retrieving revision 1.36
diff -u -r1.36 threads.php
--- agora/lib/Block/threads.php	19 Oct 2004 15:21:44 -0000	1.36
+++ agora/lib/Block/threads.php	3 Nov 2004 09:51:41 -0000
@@ -77,7 +77,7 @@
 
         if (Auth::getAuth()) {
             $url = Agora::setAgoraId($this->_params['forum_id'], null, Horde::applicationUrl('messages/edit.php'));
-            $html .= ' :: ' . Horde::link($url, _("Post message"), 'smallheader') . Horde::img('newmessage.png', _("Post message"), 'hspace="5"') . _("Post message") . '</a>';
+            $html .= ' :: ' . Horde::link($url, _("Post message")) . Horde::img('newmessage.png', _("Post message"), 'hspace="5"') . _("Post message") . '</a>';
         }
 
         return $html;
Index: agora/messages/index.php
===================================================================
RCS file: /repository/agora/messages/index.php,v
retrieving revision 1.12
diff -u -r1.12 index.php
--- agora/messages/index.php	19 Oct 2004 00:45:20 -0000	1.12
+++ agora/messages/index.php	3 Nov 2004 09:51:41 -0000
@@ -51,7 +51,7 @@
 if (Auth::isAdmin('agora:admin')) {
     $url = Agora::setAgoraId($forum_id, $message_id, Horde::applicationUrl('messages/lock.php'));
     $label = ($message->isLocked()) ? _("Unlock thread") : _("Lock thread");
-    $actions[] = Horde::link($url, $label, 'smallheader') . $label . '</a>';
+    $actions[] = Horde::link($url, $label) . $label . '</a>';
 }
 
 /* Get the thread table. */
Index: agora/messages/message.php
===================================================================
RCS file: /repository/agora/messages/message.php,v
retrieving revision 1.63
diff -u -r1.63 message.php
--- agora/messages/message.php	19 Oct 2004 00:45:20 -0000	1.63
+++ agora/messages/message.php	3 Nov 2004 09:51:41 -0000
@@ -66,19 +66,19 @@
 if (!$message->isLocked()) {
     $url = Agora::setAgoraId($forum_id, null, Horde::applicationUrl('messages/edit.php'));
     $url = Util::addParameter($url, 'message_parent_id', $message_id);
-    $actions[] = Horde::link($url, _("Reply"), 'smallheader') . _("Reply") . '</a>';
+    $actions[] = Horde::link($url, _("Reply")) . _("Reply") . '</a>';
 }
 
 if (Auth::isAdmin('agora:admin')) {
     $url = Agora::setAgoraId($forum_id, $message_id, Horde::applicationUrl('messages/edit.php'));
-    $actions[] = Horde::link($url, _("Edit"), 'smallheader') . _("Edit") . '</a>';
+    $actions[] = Horde::link($url, _("Edit")) . _("Edit") . '</a>';
 
     $url = Agora::setAgoraId($forum_id, $message_id, Horde::applicationUrl('messages/delete.php'));
-    $actions[] = Horde::link($url, _("Delete"), 'smallheader') . _("Delete") . '</a>';
+    $actions[] = Horde::link($url, _("Delete")) . _("Delete") . '</a>';
 
     $url = Agora::setAgoraId($forum_id, $message_id, Horde::applicationUrl('messages/lock.php'));
     $label = ($message->isLocked()) ? _("Unlock thread") : _("Lock thread");
-    $actions[] = Horde::link($url, $label, 'smallheader') . $label . '</a>';
+    $actions[] = Horde::link($url, $label) . $label . '</a>';
 }
 
 $template->setOption('gettext', true);
Index: themes/mozilla/screen.css
===================================================================
RCS file: /repository/horde/themes/mozilla/screen.css,v
retrieving revision 1.4
diff -u -r1.4 screen.css
--- themes/mozilla/screen.css	31 Oct 2004 03:12:12 -0000	1.4
+++ themes/mozilla/screen.css	3 Nov 2004 09:51:47 -0000
@@ -57,6 +57,9 @@
     background-image: none;
     background-color: transparent;
 }
+.smallheader a {
+    color: black;
+}
 .control {
     background-color: #AEBACA;
 }


More information about the dev mailing list