Ejemplo n.º 1
0
/**
 * 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);
}
Ejemplo n.º 2
0
/**
 * 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);
}
Ejemplo n.º 3
0
/**
 * 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);
}
Ejemplo n.º 4
0
/**
 * 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);
}
Ejemplo n.º 5
0
 /**
 * 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