diff --git a/inc/show_admin_nav.inc.php b/inc/show_admin_nav.inc.php
index 2b7afdec..65456131 100644
--- a/inc/show_admin_nav.inc.php
+++ b/inc/show_admin_nav.inc.php
@@ -158,36 +158,73 @@ if (hesk_check_kb_only(false)) {
}
echo '
' . $hesklang['reports'] . '';
}
+ $tools_count = 0;
+ $dropdown_items = '';
+
+ if ($tools_count > 1) {
$active = '';
if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_TOOLS') {
- $active = ' class="active"';
- }
- echo ' ' . $hesklang['tools'] . ' ';
- } elseif (hesk_checkPermission('can_ban_ips', 0)) {
- $active = '';
- if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_TOOLS') {
- $active = ' class="active"';
- }
- echo ' ' . $hesklang['tools'] . ' ';
- } elseif (hesk_checkPermission('can_service_msg', 0)) {
- $active = '';
- if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_TOOLS') {
- $active = ' class="active"';
- }
- echo ' ' . $hesklang['tools'] . ' ';
- } elseif (hesk_checkPermission('can_man_email_tpl', 0)) {
- $active = '';
- if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_TOOLS') {
- $active = ' class="active"';
+ $active = ' active';
}
- echo ' ' . $hesklang['tools'] . ' ';
- } elseif (hesk_checkPermission('can_man_ticket_statuses', 0)) {
- $active = '';
- if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_TOOLS') {
- $active = ' class="active"';
+ echo '
+
+ ' . $hesklang['tools'] . '
+
+ '.$dropdown_items.'
+ ';
+ } else {
+ if (hesk_checkPermission('can_ban_emails', 0)) {
+ $active = '';
+ if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_TOOLS') {
+ $active = ' class="active"';
+ }
+ echo ' ' . $hesklang['tools'] . '';
+ } elseif (hesk_checkPermission('can_ban_ips', 0)) {
+ $active = '';
+ if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_TOOLS') {
+ $active = ' class="active"';
+ }
+ echo ' ' . $hesklang['tools'] . '';
+ } elseif (hesk_checkPermission('can_service_msg', 0)) {
+ $active = '';
+ if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_TOOLS') {
+ $active = ' class="active"';
+ }
+ echo ' ' . $hesklang['tools'] . '';
+ } elseif (hesk_checkPermission('can_man_email_tpl', 0)) {
+ $active = '';
+ if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_TOOLS') {
+ $active = ' class="active"';
+ }
+ echo ' ' . $hesklang['tools'] . '';
+ } elseif (hesk_checkPermission('can_man_ticket_statuses', 0)) {
+ $active = '';
+ if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_TOOLS') {
+ $active = ' class="active"';
+ }
+ echo ' ' . $hesklang['tools'] . '';
}
- echo ' ' . $hesklang['tools'] . ' ';
}
if (hesk_checkPermission('can_man_settings', 0)) {
$active = '';
diff --git a/language/en/text.php b/language/en/text.php
index 569be871..3404ca51 100644
--- a/language/en/text.php
+++ b/language/en/text.php
@@ -21,6 +21,13 @@ $hesklang['_COLLATE']='utf8_unicode_ci';
// This is the email break line that will be used in email piping
$hesklang['EMAIL_HR']='------ Reply above this line ------';
+// ADDED OR MODIFIED IN Mods for HESK 2.6.0
+$hesklang['manage_statuses'] = 'Manage Statuses';
+$hesklang['manage_service_messages'] = 'Manage Service Messages';
+$hesklang['manage_banned_ips'] = 'Manage Banned IPs';
+$hesklang['manage_banned_emails'] = 'Manage Banned Emails';
+$hesklang['manage_email_templates'] = 'Manage Email Templates';
+
// ADDED OR MODIFIED IN Mods for HESK 2.5.0
$hesklang['ticket_message_no_attachments'] = 'Ticket/Reply message, however attachments will not be included in the email';
$hesklang['click_for_device_information'] = 'Click for device information';