Преглед на файлове

Login header image is working

tags/3.1.0
Mike Koch преди 2 години
родител
ревизия
01570e856c
променени са 3 файла, в които са добавени 31 реда и са изтрити 16 реда
  1. 14
    12
      admin/admin_settings.php
  2. 7
    2
      admin/index.php
  3. 10
    2
      language/en/text.php

+ 14
- 12
admin/admin_settings.php Целия файл

@@ -3791,12 +3791,12 @@ $modsForHesk_settings = mfh_getSettings();
</div>
</div>
</div>
<h4>LOGIN PAGE</h4>
<h4><?php echo $hesklang['login_page']; ?></h4>
<div class="row">
<div class="col-xs-12">
<div class="form-group">
<label for="login-background" class="col-sm-3 col-xs-5 control-label">
LOGIN BACKGROUND [!]
<?php echo $hesklang['login_background']; ?>
</label>
<div class="col-sm-9 col-xs-7 form-inline">
<div class="radio">
@@ -3804,23 +3804,25 @@ $modsForHesk_settings = mfh_getSettings();
<input type="radio" name="login-background"
data-activate="input[name='login-background-color']" data-deactivate="input[name='login-background-image']"
value="color" <?php if ($modsForHesk_settings['login_background_type'] == 'color') { echo 'checked'; } ?>>
SOLID COLOR
<?php echo $hesklang['solid_color']; ?>
</label>
</div>&nbsp;&nbsp;&nbsp;
<input title="LOGIN BACKGROUND COLOR" type="text" name="login-background-color" class="form-control" <?php if ($modsForHesk_settings['login_background_type'] == 'image') { echo 'disabled'; } ?>>
<input title="<?php echo $hesklang['login_background_color']; ?>" type="text"
name="login-background-color" class="form-control"
<?php if ($modsForHesk_settings['login_background_type'] == 'image') { echo 'disabled'; } ?>>
<br>
<div class="radio">
<label>
<input type="radio" name="login-background"
data-activate="input[name='login-background-image']" data-deactivate="input[name='login-background-color']"
value="image" <?php if ($modsForHesk_settings['login_background_type'] == 'image') { echo 'checked'; } ?>>
IMAGE
<?php echo $hesklang['image']; ?>
</label>
</div>
<input title="LOGIN BACKGROUND COLOR" type="file" name="login-background-image" style="display: inline;vertical-align: bottom" <?php if ($modsForHesk_settings['login_background_type'] == 'color') { echo 'disabled'; } ?>>
<input title="<?php echo $hesklang['login_background_image']; ?>" type="file" name="login-background-image" style="display: inline;vertical-align: bottom" <?php if ($modsForHesk_settings['login_background_type'] == 'color') { echo 'disabled'; } ?>>
<?php if ($modsForHesk_settings['login_background_type'] == 'image'): ?>
<br>
<img src="<?php echo HESK_PATH . $hesk_settings['cache_dir']; ?>/lb_<?php echo $modsForHesk_settings['login_background']; ?>" alt="Login Background" height="125" width="125" class="push-down-10">
<img src="<?php echo HESK_PATH . $hesk_settings['cache_dir']; ?>/lb_<?php echo $modsForHesk_settings['login_background']; ?>" alt="<?php echo $hesklang['login_background']; ?>" title="<?php echo $hesklang['login_background']; ?>" height="125" width="125" class="push-down-10">
<?php endif; ?>
<script type="text/javascript">
$('input[name="login-background-color"]').colorpicker({
@@ -3836,24 +3838,24 @@ $modsForHesk_settings = mfh_getSettings();
<div class="col-xs-12">
<div class="form-group">
<label for="login-box-header" class="col-sm-3 col-xs-5 control-label">
LOGIN BOX HEADER
<?php echo $hesklang['login_box_header']; ?>
</label>
<div class="col-sm-9 col-xs-7 form-inline">
<div class="radio">
<label>
<input type="radio" name="login-box-header" value="helpdesk-title" data-deactivate="input[name='login-box-header-image']" <?php if ($modsForHesk_settings['login_box_header'] == 'helpdesk-title') { echo 'checked'; } ?>>
HELPDESK TITLE
<?php echo $hesklang['hesk_title']; ?>
</label>
</div><br>
<div class="radio">
<label>
<input type="radio" name="login-box-header" value="image" data-activate="input[name='login-box-header-image']" <?php if ($modsForHesk_settings['login_box_header'] == 'image') { echo 'checked'; } ?>>
IMAGE
<?php echo $hesklang['image']; ?>
</label>
<input title="LOGIN HEADER IMAGE" type="file" name="login-box-header-image" style="display: inline;vertical-align: bottom" <?php if ($modsForHesk_settings['login_box_header'] == 'helpdesk-title') { echo 'disabled'; } ?>>
<input title="<?php echo $hesklang['login_header_image']; ?>" type="file" name="login-box-header-image" style="display: inline;vertical-align: bottom" <?php if ($modsForHesk_settings['login_box_header'] == 'helpdesk-title') { echo 'disabled'; } ?>>
<?php if ($modsForHesk_settings['login_box_header'] == 'image'): ?>
<br>
<img src="<?php echo HESK_PATH . $hesk_settings['cache_dir']; ?>/lbh_<?php echo $modsForHesk_settings['login_box_header_image']; ?>" alt="<?php echo $modsForHesk_settings['login_box_header_image']; ?>" height="125" width="125" class="push-down-10">
<img src="<?php echo HESK_PATH . $hesk_settings['cache_dir']; ?>/lbh_<?php echo $modsForHesk_settings['login_box_header_image']; ?>" title="<?php echo $modsForHesk_settings['login_box_header_image']; ?>" alt="<?php echo $modsForHesk_settings['login_box_header_image']; ?>" style="height: 75px" class="push-down-10">
<?php endif; ?>
</div>
</div>

+ 7
- 2
admin/index.php Целия файл

@@ -246,7 +246,7 @@ function do_login()

function print_login()
{
global $hesk_settings, $hesklang;
global $hesk_settings, $hesklang, $modsForHesk_settings;

// Tell header to load reCaptcha API if needed
if ($hesk_settings['recaptcha_use'] == 2)
@@ -279,7 +279,12 @@ function print_login()
?>
</div>
<div class="login-logo">
<?php echo $hesk_settings['hesk_title']; ?>
<?php if ($modsForHesk_settings['login_box_header'] == 'image'): ?>
<img src="<?php echo HESK_PATH . $hesk_settings['cache_dir'] . '/lbh_' . $modsForHesk_settings['login_box_header_image']; ?>"
style="height: 75px">
<?php else:
echo $hesk_settings['hesk_title'];
endif; ?>
</div>
<h4 class="login-box-msg">
<?php echo $hesklang['staff_login_title']; ?>

+ 10
- 2
language/en/text.php Целия файл

@@ -1699,7 +1699,7 @@ $hesklang['saved_ticket_tpl'] = 'Saved Templates';
$hesklang['new_ticket_tpl']='Add or Edit a Ticket Template';
$hesklang['and_change_status_to'] = 'and change status to'; // Used in combination with $hesklang['submit_reply'] (Reads as "Submit reply and change status to")
$hesklang['closed_title'] = 'Closed';
$hesklang['image'] = 'Image'; // Used for alt tag
$hesklang['image'] = 'Image';
$hesklang['close_modal'] = 'Close';
$hesklang['email_custom_field'] = 'Email Address';
$hesklang['email_custom_field_help'] = 'Allows the input of an email address. Similar to a text field, however the email address(es) will be added to all emails for this ticket, in the Cc or Bcc section, depending on the option selected.';
@@ -2130,7 +2130,15 @@ $hesklang['category_foreground_color'] = 'Foreground Color';
$hesklang['category_background_color_help'] = 'The hex code for the background color to be used on the view ticket screen and calendar.';
$hesklang['category_foreground_color_help'] = 'The hex code for the foreground color to be used on the view ticket and calendar screens. Leave blank for automatic color based on background.';
$hesklang['category_display_border'] = 'Display Border';
$hesklang['category_display_border_help'] = 'Choose to decide whether or not to display a border around the category (uses foreground color). <b>This is ignored if foreground color is set to automatic.</b>';
$hesklang['category_display_border_help'] = 'Choose to decide whether or not to display a border around the category (uses foreground color). <b>
This is ignored if foreground color is set to automatic.</b>';
$hesklang['login_page'] = 'Login Page'; // Header on admin settings page
$hesklang['login_background'] = 'Login Background';
$hesklang['solid_color'] = 'Solid Color';
$hesklang['login_background_color'] = 'Login Background Color'; // Input field information for screen-readers. Does not appear on-screen
$hesklang['login_background_image'] = 'Login Background Image'; // Input field information for screen-readers. Does not appear on-screen
$hesklang['login_box_header'] = 'Login Box Header';
$hesklang['login_header_image'] = 'Login Header Image'; // Input field information for screen-readers. Does not appear on-screen

// DO NOT CHANGE BELOW
if (!defined('IN_SCRIPT')) die('PHP syntax OK!');

Loading…
Отказ
Запис