#361 Add setting for navbar title url

merge-requests/2/head
Mike Koch 9 years ago
parent 0d2f4f0871
commit 25c8bd8ef5

@ -591,6 +591,23 @@ if (defined('HESK_DEMO')) {
placeholder="<?php echo htmlspecialchars($hesklang['wbst_url']); ?>"/>
</div>
</div>
<div class="form-group">
<label for="navbar_title_url" class="col-sm-3 control-label">
<span class="label label-primary"
data-toggle="tooltip"
title="<?php echo $hesklang['added_in_mods_for_hesk']; ?>"><?php echo $hesklang['mods_for_hesk_acronym']; ?></span>
<?php echo $hesklang['navbar_title_url']; ?>
<i class="fa fa-question-circle settingsquestionmark" data-toggle="htmlpopover"
title="<?php echo $hesklang['navbar_title_url']; ?>"
data-content="<?php echo $hesklang['navbar_title_url_help']; ?>"></i>
</label>
<div class="col-sm-9">
<input type="text" class="form-control" name="navbar_title_url" size="40" maxlength="255"
value="<?php echo $modsForHesk_settings['navbar_title_url']; ?>"
placeholder="<?php echo htmlspecialchars($hesklang['navbar_title_url']); ?>"/>
</div>
</div>
<div class="form-group">
<label for="s_webmaster_email"
class="col-sm-3 control-label"><?php echo $hesklang['email_wm']; ?> <a

@ -496,6 +496,7 @@ if ($rich_text_setting == 0) {
$set['statuses_order_column'] = empty($_POST['statuses_order_column']) ? 'sort' : 'name';
$set['kb_attach_dir'] = hesk_POST('kb_attach_dir', 'attachments');
$set['display_user_agent_information'] = empty($_POST['display_user_agent_information']) ? 0 : 1;
$set['navbar_title_url'] = hesk_POST('navbar_title_url');
if ($set['customer-email-verification-required']) {
//-- Don't allow multiple emails if verification is required
@ -539,6 +540,7 @@ mfh_updateSetting('dropdownItemTextHoverColor', $set['dropdownItemTextHoverColor
mfh_updateSetting('questionMarkColor', $set['questionMarkColor'], true);
mfh_updateSetting('dropdownItemTextHoverBackgroundColor', $set['dropdownItemTextHoverBackgroundColor'], true);
mfh_updateSetting('display_user_agent_information', $set['display_user_agent_information']);
mfh_updateSetting('navbar_title_url', $set['navbar_title_url'], true);
// Prepare settings file and save it
$settings_file_content = '<?php

@ -227,7 +227,7 @@ if ($modsForHesk_settings['show_icons']) {
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="<?php echo HESK_PATH; ?>"><?php echo $hesk_settings['hesk_title'] ?></a>
<a class="navbar-brand" href="<?php echo $modsForHesk_settings['navbar_title_url']; ?>"><?php echo $hesk_settings['hesk_title'] ?></a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">

@ -59,7 +59,7 @@ if (hesk_check_kb_only(false)) {
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="<?php echo HESK_PATH; ?>"><?php echo $hesk_settings['hesk_title'] ?></a>
<a class="navbar-brand" href="<?php echo $modsForHesk_settings['navbar_title_url']; ?>"><?php echo $hesk_settings['hesk_title'] ?></a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">

@ -829,5 +829,7 @@ function execute250Scripts()
executeQuery("ALTER TABLE `" . hesk_dbEscape($hesk_settings['db_pfix']) . "stage_tickets` ADD COLUMN `screen_resolution_height` INT");
executeQuery("INSERT INTO `" . hesk_dbEscape($hesk_settings['db_pfix']) . "settings` (`Key`, `Value`) VALUES ('display_user_agent_information', '0')");
executeQuery("INSERT INTO `" . hesk_dbEscape($hesk_settings['db_pfix']) . "settings` (`Key`, `Value`) VALUES ('navbar_title_url', '" . hesk_dbEscape($hesk_settings['hesk_url']) . "'");
}
// END Version 2.5.0

@ -36,6 +36,8 @@ $hesklang['hidden_custom_field'] = 'Hidden text field';
$hesklang['hidden_custom_field_help'] = 'This input is the same as a text field; however this value cannot be changed and will not be visible to the user.';
$hesklang['readonly_custom_field'] = 'Read-only text field';
$hesklang['readonly_custom_field_help'] = 'This input is the same as a text field; however this value cannot be changed, but will be visible to the user.';
$hesklang['navbar_title_url'] = 'Navbar Title URL';
$hesklang['navbar_title_url_help'] = 'Enter the URL you wish to use when a customer (or staff) clicks on the help desk title on the top-left corner of the screen. The URL must begin with http:// or https://.';
// ADDED OR MODIFIED IN Mods for HESK 2.4.0
$hesklang['sort_by_user_defined_order'] = 'Sort by user-defined order';

Loading…
Cancel
Save