function tickets_add_project_tab() { if (use_permitted(logged_user(), active_project(), 'tickets')) { add_tabbed_navigation_item(PROJECT_TAB_TICKETS, 'tickets', get_url('tickets', 'index')); } // if }
function form_add_project_tab() { if (logged_user()->isAdministrator()) { add_tabbed_navigation_item(new TabbedNavigationItem(PROJECT_TAB_FORMS, lang('forms'), get_url('form', 'index'))); } // if }
function times_add_administration_tab() { add_tabbed_navigation_item(new TabbedNavigationItem( ADMINISTRATION_TAB_TIME, lang('time'), get_url('administration', 'time') )); }
function wiki_add_project_tab() { if (use_permitted(logged_user(), active_project(), 'wiki')) { add_tabbed_navigation_item(PROJECT_TAB_WIKI, 'wiki', get_url('wiki', 'index')); } // if }
function tickets_add_project_tab() { add_tabbed_navigation_item(new TabbedNavigationItem( PROJECT_TAB_TICKETS, lang('tickets'), get_url('tickets', 'index') )); }
/** * Prepare dashboard tabbed navigation * * @param string $selected ID of selected tab * @return null */ function project_tabbed_navigation($selected = PROJECT_TAB_OVERVIEW) { add_tabbed_navigation_item(new TabbedNavigationItem(PROJECT_TAB_OVERVIEW, lang('overview'), get_url('project', 'index'))); add_tabbed_navigation_item(new TabbedNavigationItem(PROJECT_TAB_MESSAGES, lang('messages'), get_url('message', 'index'))); add_tabbed_navigation_item(new TabbedNavigationItem(PROJECT_TAB_TASKS, lang('tasks'), get_url('task', 'index'))); add_tabbed_navigation_item(new TabbedNavigationItem(PROJECT_TAB_MILESTONES, lang('milestones'), get_url('milestone', 'index'))); // PLUGIN HOOK plugin_manager()->do_action('add_project_tab'); // PLUGIN HOOK tabbed_navigation_set_selected($selected); }
/** * Prepare dashboard tabbed navigation * * @param string $selected ID of selected tab * @return null */ function project_tabbed_navigation($selected = 'overview') { add_filter('tabbed_navigation_items', 'project_tabbed_navigation_filter'); add_tabbed_navigation_item('overview', 'overview', get_url('project', 'index')); add_tabbed_navigation_item('milestones', 'milestones', get_url('milestone', 'index')); add_tabbed_navigation_item('tasks', 'tasks', get_url('task', 'index')); add_tabbed_navigation_item('messages', 'messages', get_url('message', 'index')); // PLUGIN HOOK plugin_manager()->do_action('add_project_tab'); // PLUGIN HOOK tabbed_navigation_set_selected($selected); }
/** * Prepare dashboard tabbed navigation * * @param string $selected ID of selected tab * @return null */ function project_tabbed_navigation($selected = PROJECT_TAB_OVERVIEW) { add_tabbed_navigation_item(new TabbedNavigationItem(PROJECT_TAB_OVERVIEW, lang('overview'), get_url('project'))); add_tabbed_navigation_item(new TabbedNavigationItem(PROJECT_TAB_MESSAGES, lang('messages'), get_url('message'))); add_tabbed_navigation_item(new TabbedNavigationItem(PROJECT_TAB_TASKS, lang('tasks'), get_url('task'))); add_tabbed_navigation_item(new TabbedNavigationItem(PROJECT_TAB_MILESTONES, lang('milestones'), get_url('milestone'))); add_tabbed_navigation_item(new TabbedNavigationItem(PROJECT_TAB_FILES, lang('files'), get_url('files'))); add_tabbed_navigation_item(new TabbedNavigationItem(PROJECT_TAB_TAGS, lang('tags'), get_url('project', 'tags'))); if (logged_user()->isAdministrator()) { add_tabbed_navigation_item(new TabbedNavigationItem(PROJECT_TAB_FORMS, lang('forms'), get_url('form'))); } // if add_tabbed_navigation_item(new TabbedNavigationItem(PROJECT_TAB_PEOPLE, lang('people'), get_url('project', 'people'))); tabbed_navigation_set_selected($selected); }
function times_add_administration_tab() { add_tabbed_navigation_item('time', 'time', get_url('administration', 'time')); }
function files_add_project_tab() { if (use_permitted(logged_user(), active_project(), 'files')) { add_tabbed_navigation_item(PROJECT_TAB_FILES, 'files', get_url('files', 'index')); } }
function links_add_project_tab() { add_tabbed_navigation_item('links', 'links', get_url('links', 'index')); }
/** * Prepare account tabbed navigation * * @access public * @param string $selected ID of selected tab * @return null */ function account_tabbed_navigation($selected = ACCOUNT_TAB_MY_ACCOUNT) { add_tabbed_navigation_item(new TabbedNavigationItem( ACCOUNT_TAB_MY_ACCOUNT, lang('my account'), get_url('account', 'index') )); tabbed_navigation_set_selected($selected); } // account_tabbed_navigation
function reports_add_project_tab() { if (use_permitted(logged_user(), active_project(), 'reports')) { add_tabbed_navigation_item(PROJECT_TAB_REPORTS, 'reports', get_url('reports', 'index')); } }
function i18n_add_administration_tab() { add_tabbed_navigation_item('i18n', 'i18n', get_url('i18n', 'index')); }
function wiki_add_project_tab() { add_tabbed_navigation_item(new TabbedNavigationItem(PROJECT_TAB_WIKI, lang('wiki'), get_url('wiki', 'index'))); }
function tags_add_project_tab() { add_tabbed_navigation_item(new TabbedNavigationItem(PROJECT_TAB_TAGS, lang('tags'), get_url('project', 'tags'))); }
function tags_add_project_tab() { add_tabbed_navigation_item('tags', 'tags', get_url('project', 'tags')); }
function links_add_project_tab() { add_tabbed_navigation_item(new TabbedNavigationItem(PROJECT_TAB_LINKS, lang('links'), get_url('links', 'index'))); }
/** * Prepare account tabbed navigation * * @access public * @param string $selected ID of selected tab * @return null */ function account_tabbed_navigation($selected = ACCOUNT_TAB_MY_ACCOUNT) { add_tabbed_navigation_item(ACCOUNT_TAB_MY_ACCOUNT, 'my account', get_url('account', 'index')); // PLUGIN HOOK plugin_manager()->do_action('add_my_account_tab'); // PLUGIN HOOK tabbed_navigation_set_selected($selected); }
function files_add_project_tab() { add_tabbed_navigation_item(new TabbedNavigationItem(PROJECT_TAB_FILES, lang('files'), get_url('files', 'index'))); }