diff options
author | Kevin Jardine <kevinjardine@yahoo.com> | 2011-09-26 12:42:11 +0200 |
---|---|---|
committer | Kevin Jardine <kevinjardine@yahoo.com> | 2011-09-26 12:42:11 +0200 |
commit | 804dfcf6c4b5b6380d607c8ec6b843d56ac82247 (patch) | |
tree | cc81ecb76a5f1422100d521b9fe3b93166fcdf3e /views/default/event_calendar/show_events.php | |
parent | 6b20e80c9d577a3eeeb570a6d9fd706fe619709b (diff) | |
download | elgg-804dfcf6c4b5b6380d607c8ec6b843d56ac82247.tar.gz elgg-804dfcf6c4b5b6380d607c8ec6b843d56ac82247.tar.bz2 |
major changes for Elgg 1.8
Diffstat (limited to 'views/default/event_calendar/show_events.php')
-rw-r--r-- | views/default/event_calendar/show_events.php | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/views/default/event_calendar/show_events.php b/views/default/event_calendar/show_events.php index 580fb5a45..b51b1c05f 100644 --- a/views/default/event_calendar/show_events.php +++ b/views/default/event_calendar/show_events.php @@ -13,23 +13,21 @@ $listing_format = $vars['listing_format']; if ($vars['events']) { - if (elgg_get_plugin_setting('agenda_view', 'event_calendar') == 'yes') { + if ($listing_format == 'agenda') { $event_list = elgg_view('event_calendar/agenda_view',$vars); + } else if ($listing_format == 'paged') { + $event_list = elgg_view('event_calendar/paged_view',$vars); } else { - if ($listing_format == 'paged') { - $event_list = elgg_view('event_calendar/paged_view',$vars); - } else { - $options = array( - 'list_class' => 'elgg-list-entity', - 'full_view' => FALSE, - 'pagination' => TRUE, - 'list_type' => 'listing', - 'list_type_toggle' => FALSE, - 'offset' => $vars['offset'], - 'limit' => $vars['limit'], - ); - $event_list = elgg_view_entity_list($vars['events'], $options); - } + $options = array( + 'list_class' => 'elgg-list-entity', + 'full_view' => FALSE, + 'pagination' => TRUE, + 'list_type' => 'listing', + 'list_type_toggle' => FALSE, + 'offset' => $vars['offset'], + 'limit' => $vars['limit'], + ); + $event_list = elgg_view_entity_list($vars['events'], $options); } } else { $event_list = '<p>'.elgg_echo('event_calendar:no_events_found').'</p>'; |