Remove RTL support
This commit is contained in:
parent
01570e856c
commit
858e14ee8c
@ -3426,27 +3426,6 @@ $modsForHesk_settings = mfh_getSettings();
|
|||||||
value="<?php echo $hesk_settings['online_min']; ?>"/>
|
value="<?php echo $hesk_settings['online_min']; ?>"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
|
||||||
<label for="rtl" class="col-sm-4 col-xs-12 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['displayRtl']; ?>
|
|
||||||
<i class="fa fa-question-circle settingsquestionmark" data-toggle="popover"
|
|
||||||
title="<?php echo $hesklang['displayRtl']; ?>"
|
|
||||||
data-content="<?php echo $hesklang['displayRtlHelp']; ?>"></i>
|
|
||||||
</label>
|
|
||||||
|
|
||||||
<div class="col-sm-8 col-xs-12">
|
|
||||||
<div class="checkbox">
|
|
||||||
<label>
|
|
||||||
<input id="rtl" name="rtl" type="checkbox" <?php if ($modsForHesk_settings['rtl']) {
|
|
||||||
echo 'checked';
|
|
||||||
} ?>> <?php echo $hesklang['display_rtl']; ?>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<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">
|
||||||
<span class="label label-primary"
|
<span class="label label-primary"
|
||||||
@ -4135,7 +4114,7 @@ $modsForHesk_settings = mfh_getSettings();
|
|||||||
background: #fff;
|
background: #fff;
|
||||||
color: black;
|
color: black;
|
||||||
font: 68.8%/1.5 Verdana, Geneva, Arial, Helvetica, sans-serif;
|
font: 68.8%/1.5 Verdana, Geneva, Arial, Helvetica, sans-serif;
|
||||||
text-align: <?php if ($modsForHesk_settings['rtl']) { echo 'right'; } else { echo 'left'; } ?>;
|
text-align: left; ?>;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
|
@ -449,7 +449,6 @@ foreach ($postArray as $value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Save the modsForHesk_settings.inc.php file
|
// Save the modsForHesk_settings.inc.php file
|
||||||
$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['custom-field-setting'] = empty($_POST['custom-field-setting']) ? 0 : 1;
|
$set['custom-field-setting'] = empty($_POST['custom-field-setting']) ? 0 : 1;
|
||||||
$set['customer-email-verification-required'] = empty($_POST['email-verification']) ? 0 : 1;
|
$set['customer-email-verification-required'] = empty($_POST['email-verification']) ? 0 : 1;
|
||||||
@ -591,7 +590,6 @@ if ($set['login_box_header'] == 'image') {
|
|||||||
$changedLoginImage = true;
|
$changedLoginImage = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
mfh_updateSetting('rtl', $set['rtl']);
|
|
||||||
mfh_updateSetting('show_icons', $set['show-icons']);
|
mfh_updateSetting('show_icons', $set['show-icons']);
|
||||||
mfh_updateSetting('custom_field_setting', $set['custom-field-setting']);
|
mfh_updateSetting('custom_field_setting', $set['custom-field-setting']);
|
||||||
mfh_updateSetting('customer_email_verification_required', $set['customer-email-verification-required']);
|
mfh_updateSetting('customer_email_verification_required', $set['customer-email-verification-required']);
|
||||||
|
9
css/bootstrap-rtl.min.css
vendored
9
css/bootstrap-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@ -1,160 +0,0 @@
|
|||||||
.nu-rtlFloatLeft {
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nu-floatRight {
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 991px) {
|
|
||||||
.close-ticket {
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 992px) {
|
|
||||||
.close-ticket {
|
|
||||||
text-align: left;
|
|
||||||
padding-bottom: 5px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 991px) {
|
|
||||||
.ticket-cell {
|
|
||||||
border-bottom: solid 1px #ddd;
|
|
||||||
border-left: 0;
|
|
||||||
padding-top: 5px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 991px) {
|
|
||||||
.ticket-cell-admin {
|
|
||||||
border-bottom: solid 1px #ddd;
|
|
||||||
border-left: 0;
|
|
||||||
padding-top: 5px;
|
|
||||||
height: 100px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 992px) {
|
|
||||||
.ticket-cell {
|
|
||||||
border-bottom: 0;
|
|
||||||
border-left: solid 1px #ddd;
|
|
||||||
margin-top: 1px;
|
|
||||||
min-height: 70px;
|
|
||||||
padding-top: 10px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 992px) {
|
|
||||||
.ticket-cell-admin {
|
|
||||||
border-bottom: 0;
|
|
||||||
border-left: solid 1px #ddd;
|
|
||||||
margin-top: 1px;
|
|
||||||
height: 100px;
|
|
||||||
padding-top: 10px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.kbContent {
|
|
||||||
padding-top: 10px;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
.ticketMessageTop {
|
|
||||||
padding-top: 10px;
|
|
||||||
padding-right: 10px;
|
|
||||||
padding-left: 10px;
|
|
||||||
margin-left: -15px;
|
|
||||||
color: #888;
|
|
||||||
background-color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.pushMarginLeft {
|
|
||||||
margin-right: -15px;
|
|
||||||
margin-left: -15px;
|
|
||||||
padding-left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.ticketMessageBottom {
|
|
||||||
padding-right: 10px;
|
|
||||||
padding-left: 10px;
|
|
||||||
margin-left: -15px;
|
|
||||||
word-wrap: break-word;
|
|
||||||
font-size: 15px;
|
|
||||||
background-color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.ticketMessage {
|
|
||||||
margin-right: 238px;
|
|
||||||
background: #fff;
|
|
||||||
height: 100%;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.headersm {
|
|
||||||
width: 100%;
|
|
||||||
color: #fff;
|
|
||||||
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
|
|
||||||
font-size: 12px;
|
|
||||||
text-align: right;
|
|
||||||
background-color: #424b5c;
|
|
||||||
background-repeat: repeat-x;
|
|
||||||
padding: 12px 20px 8px;
|
|
||||||
margin: 0;
|
|
||||||
font-weight: 700;
|
|
||||||
padding-right: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.agreementBox {
|
|
||||||
position: relative;
|
|
||||||
background-color: #fff;
|
|
||||||
overflow: auto;
|
|
||||||
padding: 20px;
|
|
||||||
display: block;
|
|
||||||
height: 206px;
|
|
||||||
box-shadow: inset 0 0 4px #bbb, inset 0 0 20px #eee;
|
|
||||||
-webkit-box-sizing: border-box;
|
|
||||||
-moz-box-sizing: border-box;
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
.indent-15 {
|
|
||||||
margin-right: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.pad-down-20 {
|
|
||||||
padding-top: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.pad-right-10 {
|
|
||||||
padding-right: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.move-down-20 {
|
|
||||||
margin-top: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.move-right-40 {
|
|
||||||
margin-right: 40px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.move-right-25 {
|
|
||||||
margin-right: 25px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.move-right-20 {
|
|
||||||
margin-right: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.move-right-10 {
|
|
||||||
margin-right: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.move-left-20 {
|
|
||||||
margin-left: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.move-left-10 {
|
|
||||||
margin-left: 10px;
|
|
||||||
}
|
|
@ -25,7 +25,6 @@ $modsForHesk_settings = array();
|
|||||||
if (is_dir(HESK_PATH . 'install')) {
|
if (is_dir(HESK_PATH . 'install')) {
|
||||||
define('MAINTENANCE_MODE', true);
|
define('MAINTENANCE_MODE', true);
|
||||||
$modsForHesk_settings['navbar_title_url'] = 'javascript:;';
|
$modsForHesk_settings['navbar_title_url'] = 'javascript:;';
|
||||||
$modsForHesk_settings['rtl'] = 0;
|
|
||||||
$modsForHesk_settings['use_bootstrap_theme'] = 1;
|
$modsForHesk_settings['use_bootstrap_theme'] = 1;
|
||||||
$modsForHesk_settings['show_icons'] = 1;
|
$modsForHesk_settings['show_icons'] = 1;
|
||||||
$modsForHesk_settings['navbarBackgroundColor'] = '#414a5c';
|
$modsForHesk_settings['navbarBackgroundColor'] = '#414a5c';
|
||||||
@ -52,13 +51,7 @@ if (is_dir(HESK_PATH . 'install')) {
|
|||||||
<meta http-equiv="Content-Type" content="text/html;charset=<?php echo $hesklang['ENCODING']; ?>"/>
|
<meta http-equiv="Content-Type" content="text/html;charset=<?php echo $hesklang['ENCODING']; ?>"/>
|
||||||
<meta name="viewport" content="width=device-width, user-scalable=no">
|
<meta name="viewport" content="width=device-width, user-scalable=no">
|
||||||
<meta name="theme-color" content="<?php echo '#414a5c'; ?>">
|
<meta name="theme-color" content="<?php echo '#414a5c'; ?>">
|
||||||
<?php if ($modsForHesk_settings['rtl']) { ?>
|
<link href="<?php echo HESK_PATH; ?>hesk_style.css?v=<?php echo MODS_FOR_HESK_BUILD; ?>" type="text/css" rel="stylesheet"/>
|
||||||
<link href="<?php echo HESK_PATH; ?>hesk_style_RTL.css?v=<?php echo MODS_FOR_HESK_BUILD; ?>" type="text/css"
|
|
||||||
rel="stylesheet"/>
|
|
||||||
<?php } else { ?>
|
|
||||||
<link href="<?php echo HESK_PATH; ?>hesk_style.css?v=<?php echo MODS_FOR_HESK_BUILD; ?>" type="text/css"
|
|
||||||
rel="stylesheet"/>
|
|
||||||
<?php } ?>
|
|
||||||
<link href="<?php echo HESK_PATH; ?>css/datepicker.css" type="text/css" rel="stylesheet"/>
|
<link href="<?php echo HESK_PATH; ?>css/datepicker.css" type="text/css" rel="stylesheet"/>
|
||||||
<link href="<?php echo HESK_PATH; ?>css/bootstrap.css?v=<?php echo MODS_FOR_HESK_BUILD; ?>" type="text/css"
|
<link href="<?php echo HESK_PATH; ?>css/bootstrap.css?v=<?php echo MODS_FOR_HESK_BUILD; ?>" type="text/css"
|
||||||
rel="stylesheet"/>
|
rel="stylesheet"/>
|
||||||
@ -66,19 +59,10 @@ if (is_dir(HESK_PATH . 'install')) {
|
|||||||
rel="stylesheet" <?php if ($modsForHesk_settings['use_bootstrap_theme'] == 0) {
|
rel="stylesheet" <?php if ($modsForHesk_settings['use_bootstrap_theme'] == 0) {
|
||||||
echo 'disabled';
|
echo 'disabled';
|
||||||
} ?>>
|
} ?>>
|
||||||
<?php if ($modsForHesk_settings['rtl']) { ?>
|
|
||||||
<link href="<?php echo HESK_PATH; ?>css/bootstrap-rtl.min.css?v=<?php echo MODS_FOR_HESK_BUILD; ?>"
|
|
||||||
type="text/css" rel="stylesheet"/>
|
|
||||||
<link href="<?php echo HESK_PATH; ?>css/mods-for-hesk.css?v=<?php echo MODS_FOR_HESK_BUILD; ?>" type="text/css"
|
|
||||||
rel="stylesheet"/>
|
|
||||||
<link href="<?php echo HESK_PATH; ?>css/hesk_newStyleRTL.css?v=<?php echo MODS_FOR_HESK_BUILD; ?>"
|
|
||||||
type="text/css" rel="stylesheet"/>
|
|
||||||
<?php } else { ?>
|
|
||||||
<link href="<?php echo HESK_PATH; ?>css/mods-for-hesk.css?v=<?php echo MODS_FOR_HESK_BUILD; ?>" type="text/css"
|
<link href="<?php echo HESK_PATH; ?>css/mods-for-hesk.css?v=<?php echo MODS_FOR_HESK_BUILD; ?>" type="text/css"
|
||||||
rel="stylesheet"/>
|
rel="stylesheet"/>
|
||||||
<link href="<?php echo HESK_PATH; ?>css/hesk_newStyle.css?v=<?php echo MODS_FOR_HESK_BUILD; ?>" type="text/css"
|
<link href="<?php echo HESK_PATH; ?>css/hesk_newStyle.css?v=<?php echo MODS_FOR_HESK_BUILD; ?>" type="text/css"
|
||||||
rel="stylesheet"/>
|
rel="stylesheet"/>
|
||||||
<?php } ?>
|
|
||||||
<link href="<?php echo HESK_PATH; ?>css/bootstrap-iconpicker.min.css?v=<?php echo MODS_FOR_HESK_BUILD; ?>" rel="stylesheet">
|
<link href="<?php echo HESK_PATH; ?>css/bootstrap-iconpicker.min.css?v=<?php echo MODS_FOR_HESK_BUILD; ?>" rel="stylesheet">
|
||||||
<link href="//netdna.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css?v=<?php echo MODS_FOR_HESK_BUILD; ?>" rel="stylesheet">
|
<link href="//netdna.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css?v=<?php echo MODS_FOR_HESK_BUILD; ?>" rel="stylesheet">
|
||||||
<link rel="stylesheet" href="<?php echo HESK_PATH; ?>css/octicons.css?v=<?php echo MODS_FOR_HESK_BUILD; ?>" type="text/css">
|
<link rel="stylesheet" href="<?php echo HESK_PATH; ?>css/octicons.css?v=<?php echo MODS_FOR_HESK_BUILD; ?>" type="text/css">
|
||||||
|
@ -1013,6 +1013,7 @@ function execute310Scripts() {
|
|||||||
executeQuery("INSERT INTO `" . hesk_dbEscape($hesk_settings['db_pfix']) . "settings` (`Key`, `Value`) VALUES ('login_background', '#d2d6de')");
|
executeQuery("INSERT INTO `" . hesk_dbEscape($hesk_settings['db_pfix']) . "settings` (`Key`, `Value`) VALUES ('login_background', '#d2d6de')");
|
||||||
executeQuery("INSERT INTO `" . hesk_dbEscape($hesk_settings['db_pfix']) . "settings` (`Key`, `Value`) VALUES ('login_box_header', 'helpdesk-title')");
|
executeQuery("INSERT INTO `" . hesk_dbEscape($hesk_settings['db_pfix']) . "settings` (`Key`, `Value`) VALUES ('login_box_header', 'helpdesk-title')");
|
||||||
executeQuery("INSERT INTO `" . hesk_dbEscape($hesk_settings['db_pfix']) . "settings` (`Key`, `Value`) VALUES ('login_box_header_image', '')");
|
executeQuery("INSERT INTO `" . hesk_dbEscape($hesk_settings['db_pfix']) . "settings` (`Key`, `Value`) VALUES ('login_box_header_image', '')");
|
||||||
|
executeQuery("DELETE FROM `" . hesk_dbEscape($hesk_settings['db_pfix']) . "settings` WHERE `Key` = 'rtl'");
|
||||||
|
|
||||||
updateVersion('3.1.0');
|
updateVersion('3.1.0');
|
||||||
}
|
}
|
@ -117,7 +117,7 @@ $modsForHesk_settings = mfh_getSettings();
|
|||||||
background-color: #9e9e9e;
|
background-color: #9e9e9e;
|
||||||
height: 1px;
|
height: 1px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: <?php if ($modsForHesk_settings['rtl']) {echo 'right';} else {echo 'left';} ?>;
|
text-align: left; ?>;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user