aboutsummaryrefslogtreecommitdiff
path: root/views/default/event_calendar/show_events.php
diff options
context:
space:
mode:
authorKevin Jardine <kevinjardine@yahoo.com>2011-06-28 23:13:49 -0700
committerKevin Jardine <kevinjardine@yahoo.com>2011-06-28 23:13:49 -0700
commit0a013cd9833a20d3b6334d80dba581bbbb2ce756 (patch)
treebad977e423a6d1193d362295611fe4472c2373af /views/default/event_calendar/show_events.php
parent1dd01c7ff9685995b4bc9de0ceeb7856086c3f40 (diff)
parent29792a9858484266952a53268e4fd0dd29b2f4a5 (diff)
downloadelgg-0a013cd9833a20d3b6334d80dba581bbbb2ce756.tar.gz
elgg-0a013cd9833a20d3b6334d80dba581bbbb2ce756.tar.bz2
Merge pull request #1 from cash/master
moved code into base directory
Diffstat (limited to 'views/default/event_calendar/show_events.php')
-rw-r--r--views/default/event_calendar/show_events.php53
1 files changed, 53 insertions, 0 deletions
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 @@
+<?php
+/**
+ * Elgg show events view
+ *
+ * @package event_calendar
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Kevin Jardine <kevin@radagast.biz>
+ * @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 = '<p>'.elgg_echo('event_calendar:no_events_found').'</p>';
+}
+if ($listing_format == 'paged') {
+ echo $event_list;
+} else {
+ if (isloggedin()) {
+ $nav = elgg_view('event_calendar/nav',$vars);
+ } else {
+ $nav = '';
+ }
+?>
+<table width="100%">
+<tr><td>
+<div id="event_list">
+<?php
+echo $nav.'<br />'.$event_list;
+?>
+</div>
+</td>
+<td align="right">
+<?php
+echo elgg_view('event_calendar/calendar',$vars);
+?>
+</td></tr>
+</table>
+<?php
+}
+?> \ No newline at end of file