#91 Save custom field multilanguage selection.

Also fixed popovers so they're aren't crammed in on the MFH settings section
merge-requests/2/head
Mike Koch 9 years ago
parent a003a9d89f
commit e2c6e2c179

@ -1792,7 +1792,7 @@ if ( defined('HESK_DEMO') )
<div class="form-group"> <div class="form-group">
<label for="rtl" class="col-sm-4 col-xs-12 control-label"> <label for="rtl" class="col-sm-4 col-xs-12 control-label">
<?php echo $hesklang['displayRtl']; ?> <?php echo $hesklang['displayRtl']; ?>
<i class="fa fa-question-circle settingsquestionmark" data-toggle="popover" data-placement="bottom" <i class="fa fa-question-circle settingsquestionmark" data-toggle="popover"
title="<?php echo $hesklang['displayRtl']; ?>" title="<?php echo $hesklang['displayRtl']; ?>"
data-content="<?php echo $hesklang['displayRtlHelp']; ?>"></i> data-content="<?php echo $hesklang['displayRtlHelp']; ?>"></i>
</label> </label>
@ -1807,7 +1807,7 @@ if ( defined('HESK_DEMO') )
<div class="form-group"> <div class="form-group">
<label for="show-icons" class="col-sm-4 col-xs-12 control-label"> <label for="show-icons" class="col-sm-4 col-xs-12 control-label">
<?php echo $hesklang['showIcons']; ?> <?php echo $hesklang['showIcons']; ?>
<i class="fa fa-question-circle settingsquestionmark" data-toggle="popover" data-placement="bottom" <i class="fa fa-question-circle settingsquestionmark" data-toggle="popover"
title="<?php echo $hesklang['showIcons']; ?>" title="<?php echo $hesklang['showIcons']; ?>"
data-content="<?php echo $hesklang['showIconsHelp']; ?>"></i> data-content="<?php echo $hesklang['showIconsHelp']; ?>"></i>
</label> </label>
@ -1821,7 +1821,7 @@ if ( defined('HESK_DEMO') )
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="maintenance-mode" class="col-sm-4 col-xs-12 control-label"><?php echo $hesklang['maintenanceMode']; ?> <label for="maintenance-mode" class="col-sm-4 col-xs-12 control-label"><?php echo $hesklang['maintenanceMode']; ?>
<i class="fa fa-question-circle settingsquestionmark" data-toggle="popover" data-placement="bottom" <i class="fa fa-question-circle settingsquestionmark" data-toggle="popover"
title="<?php echo $hesklang['maintenanceMode']; ?>" title="<?php echo $hesklang['maintenanceMode']; ?>"
data-content="<?php echo $hesklang['maintenanceModeHelp']; ?>"></i> data-content="<?php echo $hesklang['maintenanceModeHelp']; ?>"></i>
</label> </label>
@ -1839,7 +1839,7 @@ if ( defined('HESK_DEMO') )
<div class="form-group"> <div class="form-group">
<label for="custom-field-setting" class="col-sm-4 col-xs-12 control-label"> <label for="custom-field-setting" class="col-sm-4 col-xs-12 control-label">
<?php echo $hesklang['custom_field_setting']; ?> <?php echo $hesklang['custom_field_setting']; ?>
<i class="fa fa-question-circle settingsquestionmark" data-toggle="popover" data-placement="bottom" <i class="fa fa-question-circle settingsquestionmark" data-toggle="popover"
title="<?php echo $hesklang['custom_field_setting']; ?>" title="<?php echo $hesklang['custom_field_setting']; ?>"
data-content="<?php echo $hesklang['custom_field_setting_help']; ?>"></i> data-content="<?php echo $hesklang['custom_field_setting_help']; ?>"></i>
</label> </label>

@ -538,6 +538,7 @@ $set['hesk_version'] = $hesk_settings['hesk_version'];
$set['rtl'] = empty($_POST['rtl']) ? 0 : 1; $set['rtl'] = empty($_POST['rtl']) ? 0 : 1;
$set['show-icons'] = empty($_POST['show-icons']) ? 0 : 1; $set['show-icons'] = empty($_POST['show-icons']) ? 0 : 1;
$set['maintenance-mode'] = empty($_POST['maintenance-mode']) ? 0 : 1; $set['maintenance-mode'] = empty($_POST['maintenance-mode']) ? 0 : 1;
$set['custom-field-setting'] = empty($_POST['custom-field-setting']) ? 0 : 1;
$set['navbarBackgroundColor'] = hesk_input(hesk_POST('navbarBackgroundColor')); $set['navbarBackgroundColor'] = hesk_input(hesk_POST('navbarBackgroundColor'));
$set['navbarBrandColor'] = hesk_input(hesk_POST('navbarBrandColor')); $set['navbarBrandColor'] = hesk_input(hesk_POST('navbarBrandColor'));
$set['navbarBrandHoverColor'] = hesk_input(hesk_POST('navbarBrandHoverColor')); $set['navbarBrandHoverColor'] = hesk_input(hesk_POST('navbarBrandHoverColor'));
@ -571,7 +572,10 @@ $modsForHesk_settings[\'rtl\'] = '.$set['rtl'].';
$modsForHesk_settings[\'show_icons\'] = '.$set['show-icons'].'; $modsForHesk_settings[\'show_icons\'] = '.$set['show-icons'].';
//-- Set this to 1 to enable maintenance mode //-- Set this to 1 to enable maintenance mode
$modsForHesk_settings[\'maintenance_mode\'] = '.$set['maintenance-mode'].';'; $modsForHesk_settings[\'maintenance_mode\'] = '.$set['maintenance-mode'].';
//-- Set this to 1 to enable custom field names as keys
$modsForHesk_settings[\'custom_field_setting\'] = '.$set['custom-field-setting'].';';
// Write the file // Write the file
if ( ! file_put_contents(HESK_PATH . 'modsForHesk_settings.inc.php', $modsForHesk_file_content) ) if ( ! file_put_contents(HESK_PATH . 'modsForHesk_settings.inc.php', $modsForHesk_file_content) )

@ -6,7 +6,8 @@ var loadJquery = function()
//-- Active popovers //-- Active popovers
$('[data-toggle="popover"]').popover({ $('[data-toggle="popover"]').popover({
trigger: 'hover' trigger: 'hover',
container: 'body'
}); });
//-- Activate jQuery's date picker //-- Activate jQuery's date picker

@ -28,7 +28,8 @@ $hesklang['multiple_select_custom_field'] = 'Multiple Select box';
$hesklang['multiple_select_custom_field_text'] = 'Options for this multi-select box, enter one option per line (each line will be a choice your customers can choose from). You need to enter at least two options!'; $hesklang['multiple_select_custom_field_text'] = 'Options for this multi-select box, enter one option per line (each line will be a choice your customers can choose from). You need to enter at least two options!';
$hesklang['date_format'] = 'Date must be in YYYY-MM-DD format.'; $hesklang['date_format'] = 'Date must be in YYYY-MM-DD format.';
$hesklang['custom_field_setting'] = 'Multilanguage support'; $hesklang['custom_field_setting'] = 'Multilanguage support';
$hesklang['custom_field_setting_help'] = 'Enabling this setting will use the name of the custom field as the language file\'s key, rather than the direct name itself. This will allow for translatable custom field.'; $hesklang['custom_field_setting_help'] = 'Enabling this setting will use the name of the custom field as the language
file\'s key, rather than the direct name itself. This allows the custom field to be translated into different languages.';
$hesklang['enable_custom_field_language'] = 'Enable multilanguage support'; $hesklang['enable_custom_field_language'] = 'Enable multilanguage support';
// ADDED OR MODIFIED IN Mods For HESK 1.6.0 // ADDED OR MODIFIED IN Mods For HESK 1.6.0

Loading…
Cancel
Save