'PWG Stuffs', 'URL' => get_admin_plugin_menu_link(STUFFS_PATH . 'admin/admin.php'))); return $menu; } function set_stuffs_on_index() { global $page; if (isset($page['section']) and $page['section'] == 'categories') { include_once(STUFFS_PATH . 'include/stuffs.inc.php'); } } function set_stuffs_on_picture() { include_once(STUFFS_PATH . 'include/stuffs.inc.php'); } add_event_handler('get_admin_plugin_menu_links', 'stuffs_admin_menu'); add_event_handler('loc_begin_index', 'set_stuffs_on_index'); add_event_handler('loc_begin_picture', 'set_stuffs_on_picture'); function set_is_homepage() { global $tokens, $page; $next_token = 0; $parsed_url = parse_section_url($tokens, $next_token); if (!isset($parsed_url['section']) and !isset($page['chronology_field'])) { $page['is_homepage'] = true; } else { $page['is_homepage'] = false; } } add_event_handler('loc_end_section_init', 'set_is_homepage'); ?>