settings.php 838 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. $cidReset = true;
  4. require_once __DIR__.'/../inc/global.inc.php';
  5. api_protect_admin_script();
  6. $interbreadcrumb[] = [
  7. 'url' => api_get_path(WEB_CODE_PATH).'ticket/tickets.php',
  8. 'name' => get_lang('My tickets'),
  9. ];
  10. $action = isset($_GET['action']) ? $_GET['action'] : 'projects';
  11. Display::display_header(get_lang('Settings'));
  12. echo '<div class="actions">';
  13. echo Display::url(
  14. Display::return_icon('back.png', get_lang('Tickets'), [], ICON_SIZE_MEDIUM),
  15. api_get_path(WEB_CODE_PATH).'ticket/tickets.php'
  16. );
  17. $sections = TicketManager::getSettingsMenuItems();
  18. foreach ($sections as $item) {
  19. echo Display::url(
  20. Display::return_icon($item['icon'], $item['content'], [], ICON_SIZE_MEDIUM),
  21. $item['url']
  22. );
  23. }
  24. echo '</div>';
  25. Display::display_footer();