diff --git a/inc/show_admin_nav.inc.php b/inc/show_admin_nav.inc.php
index 09b665c0..d1598dc9 100644
--- a/inc/show_admin_nav.inc.php
+++ b/inc/show_admin_nav.inc.php
@@ -230,198 +230,221 @@ $mails = mfh_get_mail_headers_for_dropdown($_SESSION['id'], $hesk_settings, $hes
+
+
+
+ ' . $hesklang['manage_users'] . '
+
+ ';
+ }
+ if (hesk_checkPermission('can_man_permission_tpl', 0)) {
+ $number_of_settings++;
+ $active = '';
+ if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_PERMISSION_TPL') {
+ $active = 'active';
+ }
+
+ $markup .= '
+
+
+
+ ' . $hesklang['permission_templates'] . '
+
+ ';
+ }
+ if (hesk_checkPermission('can_man_cat', 0)) {
+ $number_of_settings++;
+ $active = '';
+ if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_CATEGORIES') {
+ $active = 'active';
+ }
+
+ $markup .= '
+
+
+
+ ' . $hesklang['menu_cat'] . '
+
+ ';
+ }
+ if (hesk_checkPermission('can_man_canned', 0)) {
+ $number_of_settings++;
+ $active = '';
+ if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_CANNED') {
+ $active = 'active';
+ }
+
+ $markup .= '
+
+
+
+ ' . $hesklang['canned_responses_dropdown_title'] . '
+
+ ';
+ }
+ if (hesk_checkPermission('can_man_ticket_tpl', 0)) {
+ $number_of_settings++;
+ $active = '';
+ if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_TICKET_TPL') {
+ $active = 'active';
+ }
+
+ $markup .= '
+
+
+
+ ' . $hesklang['ticket_tpl'] . '
+
+ ';
+ }
+ if (hesk_checkPermission('can_ban_emails', 0)) {
+ $number_of_settings++;
+ $active = '';
+ if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_BANNED_EMAILS') {
+ $active = 'active';
+ }
+
+ $markup .= '
+
+
+
+ ' . $hesklang['manage_banned_emails'] . '
+
+ ';
+ }
+ if (hesk_checkPermission('can_ban_ips', 0)) {
+ $number_of_settings++;
+ $active = '';
+ if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_BANNED_IPS') {
+ $active = 'active';
+ }
+
+ $markup .= '
+
+
+
+ ' . $hesklang['manage_banned_ips'] . '
+
+ ';
+ }
+ if (hesk_checkPermission('can_service_msg', 0)) {
+ $number_of_settings++;
+ $active = '';
+ if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_SERVICE_MESSAGES') {
+ $active = 'active';
+ }
+
+ $markup .= '
+
+
+
+ ' . $hesklang['sm_title'] . '
+
+ ';
+ }
+ if (hesk_checkPermission('can_man_email_tpl', 0)) {
+ $number_of_settings++;
+ $active = '';
+ if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_EMAIL_TEMPLATES') {
+ $active = 'active';
+ }
+
+ $markup .= '
+
+
+
+ ' . $hesklang['manage_email_templates'] . '
+
+ ';
+ }
+ if (hesk_checkPermission('can_man_ticket_statuses', 0)) {
+ $number_of_settings++;
+ $active = '';
+ if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_STATUSES') {
+ $active = 'active';
+ }
+
+ $markup .= '
+
+
+
+ ' . $hesklang['manage_statuses'] . '
+
+ ';
+ }
+ if (hesk_checkPermission('can_man_settings', 0)) {
+ $number_of_settings++;
+ $active = '';
+ if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_CUSTOM_FIELDS') {
+ $active = 'active';
+ }
+
+ $markup .= '
+
+
+
+ ' . $hesklang['manage_custom_fields'] . '
+
+ ';
+ }
+ if ($number_of_settings > 0 &&
+ (hesk_checkPermission('can_view_logs', 0) || hesk_checkPermission('can_man_settings', 0))) {
+ $markup .= '';
+ }
+ if (hesk_checkPermission('can_view_logs', 0)) {
+ $number_of_settings++;
+ $active = '';
+ if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_LOGS') {
+ $active = 'active';
+ }
+
+ $markup .= '
+
+
+
+ ' . $hesklang['view_message_log'] . '
+
+ ';
+ }
+ if (hesk_checkPermission('can_man_settings', 0)) {
+ $number_of_settings++;
+ $active = '';
+ if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_SETTINGS') {
+ $active = 'active';
+ }
+
+ $markup .= '
+
+
+
+ ' . $hesklang['helpdesk_settings'] . '
+
+ ';
+ }
+
+ if ($number_of_settings == 1) :
+ echo $markup;
+ elseif ($number_of_settings > 1): ?>
-
+
';
- if (hesk_checkPermission('can_view_logs', 0)):
- $active = '';
- if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_LOGS') {
- $active = 'active';
- }
- ?>
-
-
- >
-
-
-
-
-
-
- >
-
-
-
-
+
+