* @copyright Radagast Solutions 2008
* @link http://radagast.biz/
*
*/
$event = $vars['entity'];
$full = elgg_extract('full_view', $vars, FALSE);
if ($full) {
$body = elgg_view('event_calendar/strapline',$vars);
if ($event->web_conference) {
$body .= '
';
$body .= elgg_view('event_calendar/conference_button',array('event'=>$event));
}
$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; } } $metadata = elgg_view_menu('entity', array( 'entity' => $event, 'handler' => 'event_calendar', 'sort_by' => 'priority', 'class' => 'elgg-menu-hz', )); $tags = elgg_view('output/tags', array('tags' => $event->tags)); $params = array( 'entity' => $event, 'metadata' => $metadata, 'tags' => $tags, 'title' => false, ); $list_body = elgg_view('object/elements/summary', $params); echo $list_body; echo $body; if ($event->long_description) { echo '
'.$event->long_description.'
'; } else { echo ''.$event->description.'
'; } if (elgg_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 = ''; $extras = array($time_bit); if ($event->description) { $extras[] = $event->description; } if ($event_calendar_venue_view = elgg_get_plugin_setting('venue_view', 'event_calendar') == 'yes') { $extras[] = $event->venue; } if ($extras) { $info = "".implode("
",$extras)."