aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Jardine <kevinjardine@yahoo.com>2012-07-22 14:05:50 +0200
committerKevin Jardine <kevinjardine@yahoo.com>2012-07-22 14:05:50 +0200
commit819cebeb27c5ab8b4a04fc8660667ec9a29681c1 (patch)
treee981ef8d08d59cbbbbb882208f91bdee273cd00a
parentdae9634f5d74824e3179942b0bc62dd52d850085 (diff)
downloadelgg-819cebeb27c5ab8b4a04fc8660667ec9a29681c1.tar.gz
elgg-819cebeb27c5ab8b4a04fc8660667ec9a29681c1.tar.bz2
manager subscribers link now appears on the lightbox version of an event (assuming that the add users plugin option is enabled)
-rw-r--r--models/model.php2
-rw-r--r--views/default/object/event_calendar.php8
2 files changed, 9 insertions, 1 deletions
diff --git a/models/model.php b/models/model.php
index fb2cf44c2..85e605352 100644
--- a/models/model.php
+++ b/models/model.php
@@ -1879,7 +1879,7 @@ function event_calendar_get_page_content_view($event_guid,$light_box = FALSE) {
}
elgg_push_breadcrumb($event->title);
- $content = elgg_view_entity($event, array('full_view' => true));
+ $content = elgg_view_entity($event, array('full_view' => true,'light_box'=>$light_box));
//check to see if comment are on - TODO - add this feature to all events
if ($event->comments_on != 'Off') {
$content .= elgg_view_comments($event);
diff --git a/views/default/object/event_calendar.php b/views/default/object/event_calendar.php
index afd4325f1..5779c004c 100644
--- a/views/default/object/event_calendar.php
+++ b/views/default/object/event_calendar.php
@@ -59,9 +59,17 @@ if ($full) {
} else {
echo '<p>'.$event->description.'</p>';
}
+ if ($vars['light_box'] == TRUE) {
+ $event_calendar_add_users = elgg_get_plugin_setting('add_users', 'event_calendar');
+ if ($event_calendar_add_users == 'yes') {
+ $url = "event_calendar/manage_users/$event->guid";
+ echo '<p>'.elgg_view('output/url',array('text'=> elgg_echo('event_calendar:manage_users:breadcrumb'), 'href'=>$url)).'</p>';
+ }
+ }
if (elgg_get_plugin_setting('add_to_group_calendar', 'event_calendar') == 'yes') {
echo elgg_view('event_calendar/forms/add_to_group',array('event' => $event));
}
+
} else {
$time_bit = event_calendar_get_formatted_time($event);