Merge pull request #362 from mkoch227/add-navbar-title-url-setting
Add setting for navbar title url
This commit is contained in:
commit
77750d4aba
@ -591,6 +591,23 @@ if (defined('HESK_DEMO')) {
|
|||||||
placeholder="<?php echo htmlspecialchars($hesklang['wbst_url']); ?>"/>
|
placeholder="<?php echo htmlspecialchars($hesklang['wbst_url']); ?>"/>
|
||||||
</div>
|
</div>
|
||||||
</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">
|
<div class="form-group">
|
||||||
<label for="s_webmaster_email"
|
<label for="s_webmaster_email"
|
||||||
class="col-sm-3 control-label"><?php echo $hesklang['email_wm']; ?> <a
|
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['statuses_order_column'] = empty($_POST['statuses_order_column']) ? 'sort' : 'name';
|
||||||
$set['kb_attach_dir'] = hesk_POST('kb_attach_dir', 'attachments');
|
$set['kb_attach_dir'] = hesk_POST('kb_attach_dir', 'attachments');
|
||||||
$set['display_user_agent_information'] = empty($_POST['display_user_agent_information']) ? 0 : 1;
|
$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']) {
|
if ($set['customer-email-verification-required']) {
|
||||||
//-- Don't allow multiple emails if verification is 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('questionMarkColor', $set['questionMarkColor'], true);
|
||||||
mfh_updateSetting('dropdownItemTextHoverBackgroundColor', $set['dropdownItemTextHoverBackgroundColor'], true);
|
mfh_updateSetting('dropdownItemTextHoverBackgroundColor', $set['dropdownItemTextHoverBackgroundColor'], true);
|
||||||
mfh_updateSetting('display_user_agent_information', $set['display_user_agent_information']);
|
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
|
// Prepare settings file and save it
|
||||||
$settings_file_content = '<?php
|
$settings_file_content = '<?php
|
||||||
|
@ -227,7 +227,7 @@ if ($modsForHesk_settings['show_icons']) {
|
|||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</button>
|
</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>
|
||||||
<div class="navbar-collapse collapse">
|
<div class="navbar-collapse collapse">
|
||||||
<ul class="nav navbar-nav">
|
<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>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</button>
|
</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>
|
||||||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
||||||
<ul class="nav navbar-nav">
|
<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("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 ('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
|
// 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['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'] = '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['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
|
// ADDED OR MODIFIED IN Mods for HESK 2.4.0
|
||||||
$hesklang['sort_by_user_defined_order'] = 'Sort by user-defined order';
|
$hesklang['sort_by_user_defined_order'] = 'Sort by user-defined order';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user