[geeklog-cvs] geeklog: Reintroduced {event_begin_anchortag} and {event_end_anc...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Thu Aug 6 10:19:10 EDT 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/120190f682bf
changeset: 7225:120190f682bf
user: Dirk Haun <dirk at haun-online.de>
date: Thu Aug 06 11:37:23 2009 +0200
description:
Reintroduced {event_begin_anchortag} and {event_end_anchortag} variables in event.php
diffstat:
public_html/calendar/event.php | 19 +++++++++++++++----
public_html/docs/history | 2 ++
2 files changed, 17 insertions(+), 4 deletions(-)
diffs (51 lines):
diff -r 7b33f42b2d98 -r 120190f682bf public_html/calendar/event.php
--- a/public_html/calendar/event.php Thu Aug 06 11:23:58 2009 +0200
+++ b/public_html/calendar/event.php Thu Aug 06 11:37:23 2009 +0200
@@ -74,13 +74,18 @@
$cal_template->set_var('lang_event', $LANG_CAL_1[12]);
$event_title = stripslashes($A['title']);
- if (!empty ($A['url']) && ($A['url'] != 'http://')) {
- $cal_template->set_var ('event_url', $A['url']);
+ if (!empty($A['url']) && ($A['url'] != 'http://')) {
$event_title = COM_createLink($event_title, $A['url']);
+ $cal_template->set_var('event_url', $A['url']);
+ $cal_template->set_var('event_begin_anchortag',
+ '<a href="' . $A['url'] . '">');
+ $cal_template->set_var('event_end_anchortag', '</a>');
} else {
- $cal_template->set_var ('event_url', '');
+ $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);
$cal_template->set_var('lang_starts', $LANG_CAL_1[13]);
$cal_template->set_var('lang_ends', $LANG_CAL_1[14]);
@@ -553,6 +558,12 @@
if (!empty($A['url'])) {
$event_title = COM_createLink($event_title, $A['url']);
$cal_templates->set_var('event_url', $A['url']);
+ $cal_templates->set_var('event_begin_anchortag',
+ '<a href="' . $A['url'] . '">');
+ $cal_templates->set_var('event_end_anchortag', '</a>');
+ } else {
+ $cal_templates->set_var('event_begin_anchortag', '');
+ $cal_templates->set_var('event_end_anchortag', '');
}
$cal_templates->set_var('event_title', $event_title);
diff -r 7b33f42b2d98 -r 120190f682bf public_html/docs/history
--- a/public_html/docs/history Thu Aug 06 11:23:58 2009 +0200
+++ b/public_html/docs/history Thu Aug 06 11:37:23 2009 +0200
@@ -26,6 +26,8 @@
Calendar Plugin
---------------
+- Reintroduced {event_begin_anchortag} and {event_end_anchortag} variables
+ in event.php [Dirk]
- The number of hits for an event was reset when editing the event [Dirk]
- When cloning an event, the number of hits for the clone should be 0 [Dirk]
- Avoid triggering a false spam report when submitting an event with the default
More information about the geeklog-cvs
mailing list