// if title is set in menu item parameters, use that
if ($params->show_page_heading) {
// If page heading is left empty, even tags will be omitted thus enabling title to be hidden completely
if ($params->page_heading != '')
echo "
" . $params->page_heading . '
';
} else {
// the formula is this:
// [Upcoming/Past/All] [Featured] Events [at VENUE_NAME ] [in CITY_NAME ] [, Category CATEGORY_NAME ]
// [Upcoming/Past/All]
$timeline = '';
switch (parameters()->timeline) {
case 'upcoming':
$timeline = translate('COM_OHANAH_UPCOMING');
break;
case 'past':
$timeline = translate('COM_OHANAH_PAST');
break;
case 'all':
$timeline = translate('COM_OHANAH_ALL');
break;
}
if ($timeline != '') $timeline .= ' '; // if it's not empty, add space at the end
// [Featured]
$feat = '';
if ($menu->query['featured'] == 1) $feat = translate('COM_OHANAH_FEATURED');
if ($feat != '') $feat .= ' ';
// Event
$eve = translate('COM_OHANAH_EVENTS');
// [at VENUE_NAME]
$ven = '';
// if event list is filtered by venue, html.php will make sure that $venue object is injected in the view
if (isset($venue)) $ven = ' ' . translate('COM_OHANAH_AT') . ' ' . $venue->name;
// [in CITY_NAME]
$cit = '';
// if event list is filtered by category, html.php will make sure that category object is injected in the view
if (isset($menu->query['city'])) $cit = ' ' . translate('COM_OHANAH_IN') . ' ' . $menu->query['city'];
// [, Category CATEGORY_NAME]
$cat = '';
if (isset($category)) $cat = ', ' . translate('COM_OHANAH_CATEGORY') . ' ' . $category->title;
echo "" . $timeline . $feat . $ven . $cit . $cat . '
';
}
?>