diff options
author | Kevin Jardine <kevinjardine@yahoo.com> | 2011-08-30 17:52:12 +0200 |
---|---|---|
committer | Kevin Jardine <kevinjardine@yahoo.com> | 2011-08-30 17:52:12 +0200 |
commit | 6b20e80c9d577a3eeeb570a6d9fd706fe619709b (patch) | |
tree | cecec3ee8ed121617500c6601bbeb407aed99754 /views/default/object/event_calendar.php | |
parent | 2557245a41579a15dd960e2033f4d5f39ff566ac (diff) | |
download | elgg-6b20e80c9d577a3eeeb570a6d9fd706fe619709b.tar.gz elgg-6b20e80c9d577a3eeeb570a6d9fd706fe619709b.tar.bz2 |
a few small fixes
Diffstat (limited to 'views/default/object/event_calendar.php')
-rw-r--r-- | views/default/object/event_calendar.php | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/views/default/object/event_calendar.php b/views/default/object/event_calendar.php index 97829e7c2..43e7847dc 100644 --- a/views/default/object/event_calendar.php +++ b/views/default/object/event_calendar.php @@ -36,7 +36,7 @@ if ($vars['full']) { 'class' => 'elgg-menu-hz', )); - $tags = elgg_view('output/tags', array('tags' => $event->event_tags)); + $tags = elgg_view('output/tags', array('tags' => $event->tags)); $params = array( 'entity' => $event, @@ -73,14 +73,18 @@ if ($vars['full']) { $info = ''; } - $metadata = elgg_view_menu('entity', array( - 'entity' => $event, - 'handler' => 'event_calendar', - 'sort_by' => 'priority', - 'class' => 'elgg-menu-hz', - )); + if (elgg_in_context('widgets')) { + $metadata = ''; + } else { + $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->event_tags)); + $tags = elgg_view('output/tags', array('tags' => $event->tags)); $params = array( 'entity' => $event, |