aboutsummaryrefslogtreecommitdiff
path: root/views/default/event_calendar/show_events.php
diff options
context:
space:
mode:
authorKevin Jardine <kevinjardine@yahoo.com>2011-08-29 20:59:54 +0200
committerKevin Jardine <kevinjardine@yahoo.com>2011-08-29 20:59:54 +0200
commit2557245a41579a15dd960e2033f4d5f39ff566ac (patch)
tree15891d7dcef7c4d5da3ae82eb4f6ae9ad10b2521 /views/default/event_calendar/show_events.php
parent52ddfd1b76cb3e5fbb2a31eb5a3c738bb0d61b54 (diff)
downloadelgg-2557245a41579a15dd960e2033f4d5f39ff566ac.tar.gz
elgg-2557245a41579a15dd960e2033f4d5f39ff566ac.tar.bz2
first step in rewrite for Elgg 1.8
Diffstat (limited to 'views/default/event_calendar/show_events.php')
-rw-r--r--views/default/event_calendar/show_events.php33
1 files changed, 17 insertions, 16 deletions
diff --git a/views/default/event_calendar/show_events.php b/views/default/event_calendar/show_events.php
index 31771f43d..580fb5a45 100644
--- a/views/default/event_calendar/show_events.php
+++ b/views/default/event_calendar/show_events.php
@@ -13,13 +13,22 @@
$listing_format = $vars['listing_format'];
if ($vars['events']) {
- if (get_plugin_setting('agenda_view', 'event_calendar') == 'yes') {
+ if (elgg_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);
+ $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 {
@@ -28,26 +37,18 @@ if ($vars['events']) {
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">
+<div style="width:100%">
+<div id="event_list" style="float:left;">
<?php
-echo $nav.'<br />'.$event_list;
+echo $event_list;
?>
</div>
-</td>
-<td align="right">
+<div style="float:right;">
<?php
echo elgg_view('event_calendar/calendar',$vars);
?>
-</td></tr>
-</table>
+</div>
+</div>
<?php
}
-?> \ No newline at end of file