[dev] Patch for Current Time in summary

Rick Emery rick at emery.homelinux.net
Thu Aug 14 12:20:31 PDT 2003


Quoting Jan Schneider <jan at horde.org>:

> Looks good, but the span tag isn't necessary anymore in this case. Simply
> put the style attribute in the td tag.
>
> Jan.

Something like the attached? ;-)

Thanks for the tip,
Rick
-------------- next part --------------
Index: time.php
===================================================================
RCS file: /repository/horde/lib/Block/time.php,v
retrieving revision 1.1
diff -u -r1.1 time.php
--- time.php	31 Jul 2003 03:29:49 -0000	1.1
+++ time.php	14 Aug 2003 19:17:08 -0000
@@ -44,7 +44,7 @@
      */
     function _content()
     {
-        return '<span style="font-family:verdana;font-size:18px;">' . strftime('%A, %B %d, %Y %H:%M') . '</span>';
+        return '<table width="100%" height="100%"><tr><td style="font-family:verdana;font-size:18px;" align="center" valign="center">' . strftime('%A, %B %d, %Y %H:%M') . '</td></tr></table>';
     }
 
 }


More information about the dev mailing list