* @copyright Radagast Solutions 2008 * @link http://radagast.biz/ * */ $event = $vars['entity']; if ($vars['full']) { $body = elgg_view('event_calendar/strapline',$vars); $event_items = event_calendar_get_formatted_full_items($event); $body .= '
'; foreach($event_items as $item) { $value = $item->value; if (!empty($value)) { //This function controls the alternating class $even_odd = ( 'odd' != $even_odd ) ? 'odd' : 'even'; $body .= "

"; $body .= $item->title.': '; $body .= $item->value; } } echo $body; if ($event->long_description) { echo '

'.$event->long_description.'

'; } else { echo '

'.$event->description.'

'; } echo '
'; if (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); $icon = elgg_view( "graphics/icon", array( 'entity' => $vars['entity'], 'size' => 'small', ) ); $info .= '

'.$event->title.''; $info .= '
'.$time_bit; if ($event->description) { $info .= '

'.$event->description; } if ($event_calendar_venue_view = get_plugin_setting('venue_view', 'event_calendar') == 'yes') { $info .= '
'.$event->venue; } $info .= '

'; echo elgg_view_listing($icon, $info); } ?>