[dev] [patch] striping and headers

Roel Gloudemans roel at gloudemans.info
Mon Nov 28 11:52:28 PST 2005


Some more patches for headers and striped tables. The kronolith patch 
is part of an earlier patch for the add/editevent interface.

Cheers,
Roel.

PS. And yes, I have a new theme coming...
-------------- next part --------------
--- ./kronolith/editevent.php.org	2005-11-28 18:27:08.000000000 +0100
+++ ./kronolith/editevent.php	2005-11-28 18:27:20.000000000 +0100
@@ -34,6 +34,7 @@
 $calendars = Kronolith::listCalendars(false, PERMS_EDIT);
 
 Horde::addScriptFile('open_attendees_win.js');
+Horde::addScriptFile('stripe.js', 'horde', true);
 require KRONOLITH_TEMPLATES . '/common-header.inc';
 require KRONOLITH_TEMPLATES . '/menu.inc';
 require KRONOLITH_TEMPLATES . '/edit/javascript.inc';
--- ./kronolith/addevent.php.org	2005-11-28 18:29:32.000000000 +0100
+++ ./kronolith/addevent.php	2005-11-28 18:29:47.000000000 +0100
@@ -64,6 +64,7 @@
 $title = _("Add a new event");
 $calendars = Kronolith::listCalendars(false, PERMS_EDIT);
 Horde::addScriptFile('open_attendees_win.js');
+Horde::addScriptFile('stripe.js', 'horde', true);
 require KRONOLITH_TEMPLATES . '/common-header.inc';
 require KRONOLITH_TEMPLATES . '/menu.inc';
 require KRONOLITH_TEMPLATES . '/edit/javascript.inc';
-------------- next part --------------
A non-text attachment was scrubbed...
Name: midas.patch
Type: application/octet-stream
Size: 1019 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20051128/c865bf03/midas.obj
-------------- next part --------------
--- ./scry/lib/Block/poll.php.org	2005-11-28 19:09:16.000000000 +0100
+++ ./scry/lib/Block/poll.php	2005-11-28 19:09:53.000000000 +0100
@@ -58,7 +58,7 @@
         }
 
         $url = Util::addParameter(Horde::applicationUrl('vote.php', true), 'poll_id', $poll['poll_id']);
-        return Horde::link($url, $poll['poll_title'], 'header') . $poll['poll_title'] . '</a>';
+        return Horde::link($url, $poll['poll_title']) . $poll['poll_title'] . '</a>';
     }
 
     function _content()
--- ./scry/lib/Block/summary.php.org	2005-11-28 19:09:12.000000000 +0100
+++ ./scry/lib/Block/summary.php	2005-11-28 19:09:30.000000000 +0100
@@ -24,7 +24,7 @@
 
     function _title()
     {
-        return Horde::link(Horde::applicationUrl('polls.php', true), _("Current Polls"), 'header') . _("Current Polls") . '</a>';
+        return Horde::link(Horde::applicationUrl('polls.php', true), _("Current Polls")) . _("Current Polls") . '</a>';
     }
 
     function _content()
--- ./scry/templates/polls/polls.html.org	2005-11-28 19:01:13.000000000 +0100
+++ ./scry/templates/polls/polls.html	2005-11-28 19:05:55.000000000 +0100
@@ -6,17 +6,16 @@
 <table cellspacing="0" width="100%" class="text">
 <loop:polls>
  <tr>
-  <td class="header" colspan="2">
-    <a href="<tag:polls.view_url />"><tag:polls.poll_title /></a>
-  </td>
-  <td align="right" class="header nowrap">
-   <span class="smallheader">
+  <td colspan="3">
+   <div class="header">
+    <span class="smallheader rightFloat">
     <loop:polls.links>
       <divider:polls.links> | </divider:polls.links>
       <tag:polls.links />
     </loop:polls.links>
-   </span>
-   &nbsp;
+    </span>
+    <a href="<tag:polls.view_url />"><tag:polls.poll_title /></a>
+   </div>
   </td>
  </tr>
  <tr valign="top">


More information about the dev mailing list