[geeklog-cvs] geeklog: Move "summary" to the template
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Wed Feb 17 14:32:19 EST 2010
changeset 7728:ce8fa687aa32
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/ce8fa687aa32
user: Dirk Haun <dirk at haun-online.de>
date: Tue Feb 16 19:42:51 2010 +0100
description:
Move "summary" to the template
diffstat:
plugins/calendar/templates/eventdetails.thtml | 2 +-
public_html/calendar/event.php | 21 +++++++++++++--------
2 files changed, 14 insertions(+), 9 deletions(-)
diffs (65 lines):
diff -r e59d7f7af38b -r ce8fa687aa32 plugins/calendar/templates/eventdetails.thtml
--- a/plugins/calendar/templates/eventdetails.thtml Mon Feb 15 11:05:01 2010 +0100
+++ b/plugins/calendar/templates/eventdetails.thtml Tue Feb 16 19:42:51 2010 +0100
@@ -1,7 +1,7 @@
<table cellspacing="0" cellpadding="3" border="0" width="100%">
<tr>
<td colspan="2">
- <h1>{event_title}</h1>
+ <h1 class="summary">{event_title}</h1>
</td>
</tr>
<tr valign="top">
diff -r e59d7f7af38b -r ce8fa687aa32 public_html/calendar/event.php
--- a/public_html/calendar/event.php Mon Feb 15 11:05:01 2010 +0100
+++ b/public_html/calendar/event.php Tue Feb 16 19:42:51 2010 +0100
@@ -75,18 +75,20 @@
$event_title = stripslashes($A['title']);
if (!empty($A['url']) && ($A['url'] != 'http://')) {
- $event_title = COM_createLink($event_title, $A['url'],
- array('class' => 'summary url'));
+ $event_title_and_url = COM_createLink($event_title, $A['url'],
+ array('class' => 'url'));
$cal_template->set_var('event_url', $A['url']);
$cal_template->set_var('event_begin_anchortag',
- '<a href="' . $A['url'] . '" class="summary url">');
+ '<a href="' . $A['url'] . '" class="url">');
$cal_template->set_var('event_end_anchortag', '</a>');
} else {
+ $event_title_and_url = $event_title;
$cal_template->set_var('event_url', '');
$cal_template->set_var('event_begin_anchortag', '');
$cal_template->set_var('event_end_anchortag', '');
}
- $cal_template->set_var('event_title', $event_title);
+ $cal_template->set_var('event_title', $event_title_and_url);
+ $cal_template->set_var('event_title_only', $event_title);
$cal_template->set_var('lang_starts', $LANG_CAL_1[13]);
$cal_template->set_var('lang_ends', $LANG_CAL_1[14]);
@@ -557,17 +559,20 @@
$event_title = stripslashes($A['title']);
if (!empty($A['url'])) {
- $event_title = COM_createLink($event_title, $A['url'],
- array('class' => 'summary url'));
+ $event_title_and_url = COM_createLink($event_title,
+ $A['url'], array('class' => 'url'));
$cal_templates->set_var('event_url', $A['url']);
$cal_templates->set_var('event_begin_anchortag',
- '<a href="' . $A['url'] . '" class="summaary url">');
+ '<a href="' . $A['url'] . '" class="url">');
$cal_templates->set_var('event_end_anchortag', '</a>');
} else {
+ $event_title_and_url = $event_title;
+ $cal_templates->set_var('event_url', '');
$cal_templates->set_var('event_begin_anchortag', '');
$cal_templates->set_var('event_end_anchortag', '');
}
- $cal_templates->set_var('event_title', $event_title);
+ $cal_templates->set_var('event_title', $event_title_and_url);
+ $cal_templates->set_var('event_title_only', $event_title);
if (($_CA_CONF['personalcalendars'] == 1)
&& !COM_isAnonUser()) {
More information about the geeklog-cvs
mailing list