Ejemplo n.º 1
0
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
}
Ejemplo n.º 2
0
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
}
Ejemplo n.º 3
0
 function times_add_administration_tab() {
   add_tabbed_navigation_item(new TabbedNavigationItem(
     ADMINISTRATION_TAB_TIME,
     lang('time'),
     get_url('administration', 'time')
   ));
 }
Ejemplo n.º 4
0
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
}
Ejemplo n.º 5
0
 function tickets_add_project_tab() {
   add_tabbed_navigation_item(new TabbedNavigationItem(
     PROJECT_TAB_TICKETS, 
     lang('tickets'), 
     get_url('tickets', 'index')
   ));
 }
Ejemplo n.º 6
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.º 7
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.º 8
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.º 9
0
function times_add_administration_tab()
{
    add_tabbed_navigation_item('time', 'time', get_url('administration', 'time'));
}
Ejemplo n.º 10
0
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'));
    }
}
Ejemplo n.º 11
0
function links_add_project_tab()
{
    add_tabbed_navigation_item('links', 'links', get_url('links', 'index'));
}
Ejemplo n.º 12
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
Ejemplo n.º 13
0
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'));
    }
}
Ejemplo n.º 14
0
function i18n_add_administration_tab()
{
    add_tabbed_navigation_item('i18n', 'i18n', get_url('i18n', 'index'));
}
Ejemplo n.º 15
0
function wiki_add_project_tab()
{
    add_tabbed_navigation_item(new TabbedNavigationItem(PROJECT_TAB_WIKI, lang('wiki'), get_url('wiki', 'index')));
}
Ejemplo n.º 16
0
function tags_add_project_tab()
{
    add_tabbed_navigation_item(new TabbedNavigationItem(PROJECT_TAB_TAGS, lang('tags'), get_url('project', 'tags')));
}
Ejemplo n.º 17
0
function tags_add_project_tab()
{
    add_tabbed_navigation_item('tags', 'tags', get_url('project', 'tags'));
}
Ejemplo n.º 18
0
function links_add_project_tab()
{
    add_tabbed_navigation_item(new TabbedNavigationItem(PROJECT_TAB_LINKS, lang('links'), get_url('links', 'index')));
}
Ejemplo n.º 19
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.º 20
0
function files_add_project_tab()
{
    add_tabbed_navigation_item(new TabbedNavigationItem(PROJECT_TAB_FILES, lang('files'), get_url('files', 'index')));
}