From 29792a9858484266952a53268e4fd0dd29b2f4a5 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Tue, 28 Jun 2011 18:12:41 -0400 Subject: moved the code into the base directory so that it is easier to work with --- views/default/event_calendar/show_events.php | 53 ++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 views/default/event_calendar/show_events.php (limited to 'views/default/event_calendar/show_events.php') diff --git a/views/default/event_calendar/show_events.php b/views/default/event_calendar/show_events.php new file mode 100644 index 000000000..31771f43d --- /dev/null +++ b/views/default/event_calendar/show_events.php @@ -0,0 +1,53 @@ + + * @copyright Radagast Solutions 2008 + * @link http://radagast.biz/ + * + */ + +$listing_format = $vars['listing_format']; + +if ($vars['events']) { + if (get_plugin_setting('agenda_view', 'event_calendar') == 'yes') { + $event_list = elgg_view('event_calendar/agenda_view',$vars); + } else { + if ($listing_format == 'paged') { + $event_list = elgg_view('event_calendar/paged_view',$vars); + } else { + $event_list = elgg_view_entity_list($vars['events'], $vars['count'], $vars['offset'], $vars['limit'], false, false); + } + } +} else { + $event_list = '

'.elgg_echo('event_calendar:no_events_found').'

'; +} +if ($listing_format == 'paged') { + echo $event_list; +} else { + if (isloggedin()) { + $nav = elgg_view('event_calendar/nav',$vars); + } else { + $nav = ''; + } +?> + + + +
+
+'.$event_list; +?> +
+
+ +
+ \ No newline at end of file -- cgit v1.2.3