function section_mod_menu() { $data['breadcrumbs'] = shnBreadcrumbs::getBreadcrumbs(); if ($_GET['act'] == 'new_event') { $data['active'] = 'new'; } else { if ($_GET['act'] == 'browse') { $data['active'] = 'browse'; } } return $data; }
function section_mod_menu() { $data['breadcrumbs'] = shnBreadcrumbs::getBreadcrumbs(); if ($_GET['act'] == 'search_query') { $data['active'] = 'query'; } else { if ($_GET['act'] == 'adv_search') { $data['active'] = 'adv_search'; } else { if ($_GET['act'] == 'adv_report') { $data['active'] = 'adv_search'; } } } return $data; }
function section_breadcrumb() { $data['breadcrumbs'] = shnBreadcrumbs::getBreadcrumbs(); return $data; }
<?php $module = get_module(); $action = get_action(); $breadcrumbs = shnBreadcrumbs::getBreadcrumbs(); $title = ""; $title_pre = ""; if ($module == "events") { global $event; if ($event) { $title = htmlspecialchars($event->event_title); $title_pre = _t('EVENT_TITLE'); } switch ($action) { case 'new_event': $breadcrumbs->pushCrumb(array('name' => _t('NEW_EVENT'), 'mod' => 'events', 'act' => 'new_event'), 1); break; case 'get_event': $breadcrumbs->pushCrumb(array('name' => _t('VIEW_EVENT'), 'mod' => 'events', 'act' => 'get_event'), 1); break; case 'vp_list': $breadcrumbs->pushCrumb(array('name' => _t('VIEW_EVENT'), 'mod' => 'events', 'act' => 'get_event'), 1); $breadcrumbs->pushCrumb(array('name' => _t('VICTIMS_AND_PERPETRATORS'), 'mod' => 'events', 'act' => 'vp_list'), 2); break; case 'src_list': $breadcrumbs->pushCrumb(array('name' => _t('VIEW_EVENT'), 'mod' => 'events', 'act' => 'get_event'), 1); $breadcrumbs->pushCrumb(array('name' => _t('SOURCES'), 'mod' => 'events', 'act' => 'src_list'), 2); break; case 'intv_list': $breadcrumbs->pushCrumb(array('name' => _t('VIEW_EVENT'), 'mod' => 'events', 'act' => 'get_event'), 1); $breadcrumbs->pushCrumb(array('name' => _t('INTERVENTIONS'), 'mod' => 'events', 'act' => 'intv_list'), 2);