[geeklog-cvs] geeklog: Throw in some Microformat class names (but we're nowher...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Wed Feb 17 14:32:19 EST 2010


changeset 7727:e59d7f7af38b
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/e59d7f7af38b
user: Dirk Haun <dirk at haun-online.de>
date: Mon Feb 15 11:05:01 2010 +0100
description:
Throw in some Microformat class names (but we're nowhere near proper hCalendar support)

diffstat:

 plugins/calendar/templates/eventdetails.thtml |   4 ++--
 public_html/calendar/event.php                |  12 +++++++-----
 2 files changed, 9 insertions(+), 7 deletions(-)

diffs (56 lines):

diff -r 008d5dbf7a36 -r e59d7f7af38b plugins/calendar/templates/eventdetails.thtml
--- a/plugins/calendar/templates/eventdetails.thtml	Tue Feb 16 11:22:55 2010 -0500
+++ b/plugins/calendar/templates/eventdetails.thtml	Mon Feb 15 11:05:01 2010 +0100
@@ -14,7 +14,7 @@
                                 </tr>
                                 <tr valign="top">
                                     <td align="right"><b>{lang_where}:</b></td>
-                                    <td width="100%">
+                                    <td width="100%" class="location">
                                         {event_location}{br0}
                                         {event_address1}{br1}
                                         {event_address2}{br2}
@@ -23,7 +23,7 @@
                                 </tr>
                                 <tr valign="top">
                                     <td align="right"><b>{lang_description}:</b></td>
-                                    <td width="100%">{event_description}</td>
+                                    <td width="100%" class="description">{event_description}</td>
                                 </tr>
                                 <tr><td colspan="2">{addremove_event} {edit_icon}</td></tr>
                             </table><br{xhtml}><br{xhtml}>
diff -r 008d5dbf7a36 -r e59d7f7af38b public_html/calendar/event.php
--- a/public_html/calendar/event.php	Tue Feb 16 11:22:55 2010 -0500
+++ b/public_html/calendar/event.php	Mon Feb 15 11:05:01 2010 +0100
@@ -72,13 +72,14 @@
         $cal_template->set_var('layout_url', $_CONF['layout_url']);
         $cal_template->set_var('intro_msg', $LANG_CAL_1[8]);
         $cal_template->set_var('lang_event', $LANG_CAL_1[12]);
+
         $event_title = stripslashes($A['title']);
-
         if (!empty($A['url']) && ($A['url'] != 'http://')) {
-            $event_title = COM_createLink($event_title, $A['url']);
+            $event_title = COM_createLink($event_title, $A['url'],
+                                          array('class' => 'summary url'));
             $cal_template->set_var('event_url', $A['url']);
             $cal_template->set_var('event_begin_anchortag',
-                                   '<a href="' . $A['url'] . '">');
+                '<a href="' . $A['url'] . '" class="summary url">');
             $cal_template->set_var('event_end_anchortag', '</a>');
         } else {
             $cal_template->set_var('event_url', '');
@@ -556,10 +557,11 @@
 
                 $event_title = stripslashes($A['title']);
                 if (!empty($A['url'])) {
-                    $event_title = COM_createLink($event_title, $A['url']);
+                    $event_title = COM_createLink($event_title, $A['url'],
+                                            array('class' => 'summary url'));
                     $cal_templates->set_var('event_url', $A['url']);
                     $cal_templates->set_var('event_begin_anchortag',
-                                            '<a href="' . $A['url'] . '">');
+                        '<a href="' . $A['url'] . '" class="summaary url">');
                     $cal_templates->set_var('event_end_anchortag', '</a>');
                 } else {
                     $cal_templates->set_var('event_begin_anchortag', '');



More information about the geeklog-cvs mailing list