HESK v3.2.4

This commit is contained in:
Luke Tainton
2021-11-20 10:45:31 +00:00
parent fd87e36f6b
commit 2c117f14cb
180 changed files with 12764 additions and 12390 deletions

View File

@@ -196,16 +196,10 @@ require_once(TEMPLATE_PATH . 'customer/util/custom-fields.php');
name="message" rows="12" cols="60"
<?php if ($hesk_settings['require_message']) { ?>required<?php } ?>><?php if (isset($_SESSION['c_message'])) {echo stripslashes(hesk_input($_SESSION['c_message']));} ?></textarea>
<?php if (has_public_kb() && $hesk_settings['kb_recommendanswers']): ?>
<div class="kb-suggestions" style="margin: 0 auto; width: 100%; max-width: 752px; display: none">
<div class="alert">
<div class="alert__inner">
<div class="alert__head">
<h6 class="alert__title"><?php echo $hesklang['sc']; ?>:</h6>
</div>
<ul id="kb-suggestion-list" class="type--list">
</ul>
</div>
</div>
<div class="kb-suggestions">
<h6><?php echo $hesklang['sc']; ?>:</h6>
<ul id="kb-suggestion-list" class="type--list">
</ul>
<div id="suggested-article-hidden-inputs" style="display: none">
<?php // Will be populated with the list sent to the create ticket logic ?>
</div>
@@ -450,11 +444,17 @@ if (defined('RECAPTCHA'))
var $suggestedArticlesHiddenInputsList = $('#suggested-article-hidden-inputs');
$suggestionList.html('');
$suggestedArticlesHiddenInputsList.html('');
var format = '<li style="margin-bottom: 5px">' +
'<a class="link" href="knowledgebase.php?article={0}">{1}</a>' +
'<br>' +
'{2}' +
'</li>';
var format = '<a href="knowledgebase.php?article={0}" class="suggest-preview" target="_blank">' +
'<div class="icon-in-circle">' +
'<svg class="icon icon-knowledge">' +
'<use xlink:href="./theme/hesk3/customer/img/sprite.svg#icon-knowledge"></use>' +
'</svg>' +
'</div>' +
'<div class="suggest-preview__text">' +
'<p class="suggest-preview__title">{1}</p>' +
'<p>{2}</p>' +
'</div>' +
'</a>';
var hiddenInputFormat = '<input type="hidden" name="suggested[]" value="{0}">';
var results = false;
$.each(data, function() {
@@ -464,7 +464,7 @@ if (defined('RECAPTCHA'))
});
if (!results) {
$suggestionList.append('<li>' + noArticlesFoundText + '</li>');
$suggestionList.append('<li class="no-articles-found">' + noArticlesFoundText + '</li>');
}
}
);

View File

@@ -718,7 +718,7 @@ img:not([src]):not([srcset]) { visibility: hidden; }
.dropdown .dropdown-list > li, .dropdown-select .dropdown-list > li, .with-label .dropdown-list > li { height: 40px; display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; white-space: nowrap; padding: 0 16px; color: #002d73; }
.dropdown .dropdown-list > li.selected, .dropdown-select .dropdown-list > li.selected, .with-label .dropdown-list > li.selected { display: none; }
.dropdown .dropdown-list > li.selected, .dropdown-select .dropdown-list > li.selected, .with-label .dropdown-list > li.selected { /*display: none;*/ }
.dropdown .dropdown-list > li a, .dropdown-select .dropdown-list > li a, .with-label .dropdown-list > li a { width: 100%; height: 100%; display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; color: #002d73; }
@@ -1513,14 +1513,36 @@ input::-ms-clear { display: none; }
.rate { display: -ms-inline-flexbox; display: inline-flex; margin-left: auto; font-size: 12px; letter-spacing: 0.1px; }
.rate .icon { margin: 0 2px; }
.rate .star-rate + span { font-size: 12px; margin-left: 8px; }
.preview__text { max-width: 678px; }
.preview__text p { margin-top: 8px; }
.kb-suggestions { margin: 0 auto; width: 100%; display: none; margin-top: 10px; }
.kb-suggestions.boxed { max-width: 752px; padding: 10px; background-color: #fff; }
.kb-suggestions h6 { padding: 0px 8px 8px 8px; font-size: 16px; font-weight: bold; letter-spacing: 0.1px; color: #26282a; }
.suggest-preview { display: -ms-flexbox; display: flex; width: 100%; padding: 8px 8px; border-bottom: 1px solid #dfe4ec; background-color: #fff;}
.suggest-preview:last-of-type { border-bottom: none;}
a.suggest-preview:hover { background-color: #f9fafd;}
a.suggest-preview:hover .icon-in-circle .icon { fill: #1776ea; }
a.suggest-preview:hover .suggest-preview__title { font-weight: bold;}
.suggest-preview .icon-in-circle { margin-top: 6px; margin-right: 12px; }
.suggest-preview .suggest-preview__title { margin-bottom: 6px; font-size: 16px; /*font-weight: bold;*/ line-height: 1.38; letter-spacing: 0.11px; color: #1776ea; }
.suggest-preview__text p { margin-top: 6px; }
.no-articles-found { list-style-type: none; margin-left: 8px; }
.block__head { display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; -ms-flex-pack: center; justify-content: center; text-align: center; }
.content { margin: 28px 0; }
@@ -2146,3 +2168,15 @@ sub {
.rate .icon {
height: 1.5em;
}
.custom-field-title {
color: #959eb0;
}
.text-danger {
color: red;
}
.text-bold {
font-weight: bold;
}

File diff suppressed because one or more lines are too long

View File

@@ -71,7 +71,7 @@ if (!defined('IN_SCRIPT')) {
<div class="notification red">
<b><?php echo $hesklang['error']; ?>:</b> <?php echo $error; ?>
<?php if ($showDebugWarning): ?>
<p style="color:red;font-weight:bold;margin-top:10px">&nbsp;<br><?php echo $hesklang['warn']; ?></p>
<p class="text-danger text-bold" style="margin-top:10px">&nbsp;<br><?php echo $hesklang['warn']; ?></p>
<?php echo $hesklang['dmod']; ?>
<?php endif; ?>
<p class="text-center">

View File

@@ -190,7 +190,7 @@ function hesk3_output_custom_fields_for_display($customFields) {
echo '
<div>
<span style="color: #959eb0">'.$customField['name:'].'</span>
<span class="custom-field-title">'.$customField['name:'].'</span>
<span>'.$customField['value'].'</span>
</div>
';

View File

@@ -21,16 +21,10 @@ function displayKbSearch() {
<button id="search-button" type="submit" class="btn btn-full"><?php echo $hesklang['search']; ?></button>
<?php endif; ?>
</div>
<div class="kb-suggestions" style="margin: 0 auto; width: 100%; max-width: 752px; display: none">
<div class="alert none">
<div class="alert__inner">
<div class="alert__head">
<h6 class="alert__title" style="margin-bottom:10px"><?php echo $hesklang['sc']; ?>:</h6>
</div>
<ol id="kb-suggestion-list" class="type--list" style="list-style-type: decimal; padding-left: 15px;">
</ol>
</div>
</div>
<div class="kb-suggestions boxed">
<h6><?php echo $hesklang['sc']; ?>:</h6>
<ul id="kb-suggestion-list" class="type--list">
</ul>
</div>
</div>
</form>
@@ -70,11 +64,17 @@ function outputSearchJavascript() {
$('.kb-suggestions').show();
var $suggestionList = $('#kb-suggestion-list');
$suggestionList.html('');
var format = '<li style="margin-bottom: 15px; padding-left: 0.5em;">' +
'<a class="link" href="knowledgebase.php?article={0}">{1}</a>' +
'<br>' +
'{2}' +
'</li>';
var format = '<a href="knowledgebase.php?article={0}" class="suggest-preview">' +
'<div class="icon-in-circle">' +
'<svg class="icon icon-knowledge">' +
'<use xlink:href="./theme/hesk3/customer/img/sprite.svg#icon-knowledge"></use>' +
'</svg>' +
'</div>' +
'<div class="suggest-preview__text">' +
'<p class="suggest-preview__title">{1}</p>' +
'<p>{2}</p>' +
'</div>' +
'</a>';
var results = false;
$.each(data, function() {
results = true;
@@ -82,7 +82,7 @@ function outputSearchJavascript() {
});
if (!results) {
$suggestionList.append('<li style="list-style-type: none; margin-left: -15px;">' + noArticlesFoundText + '</li>');
$suggestionList.append('<li class="no-articles-found">' + noArticlesFoundText + '</li>');
}
});
});

View File

@@ -120,17 +120,27 @@ require(TEMPLATE_PATH . 'customer/view-ticket/partial/add-reply.php');
<div class="block--head">
<div class="d-flex">
<div class="contact">
<span><?php echo $hesklang['name']; ?>:</span>
<span><?php echo $ticket['name']; ?></span>
<?php if ($ticket['email'] == ''): ?>
<span><?php echo $hesklang['name']; ?>:</span>
<span><?php echo $ticket['name']; ?></span>
<?php else: ?>
<span><?php echo $hesklang['contact']; ?>:</span>
<div class="dropdown left out-close">
<label>
<span><?php echo $ticket['name']; ?></span>
<svg class="icon icon-chevron-down">
<use xlink:href="<?php echo HESK_PATH; ?>img/sprite.svg#icon-chevron-down"></use>
</svg>
</label>
<ul class="dropdown-list">
<li class="noclose">
<span class="title"><?php echo $hesklang['email']; ?>:</span>
<span class="value"><a href="mailto:<?php echo $ticket['email']; ?>"><?php echo $ticket['email']; ?></a></span>
</li>
</ul>
</div>
<?php endif; ?>
</div>
<?php if ($ticket['email'] != ''): ?>
<div class="contact">
<span><?php echo $hesklang['email']; ?>:</span>
<a href="mailto:<?php echo $ticket['email']; ?>" class="link">
<?php echo $ticket['email']; ?>
</a>
</div>
<?php endif; ?>
<time class="timeago tooltip" datetime="<?php echo date("c", strtotime($ticket['dt'])) ; ?>" title="<?php echo hesk_date($ticket['dt'], true); ?>"><?php echo hesk_date($ticket['dt'], true); ?></time>
</div>
<a title="<?php echo $hesklang['btn_print']; ?>" href="print.php?track=<?php echo $ticket['trackid'].$hesk_settings['e_query']; ?>" target="_blank" class="btn btn-action tooltip">

View File

@@ -112,8 +112,8 @@ if (!defined('IN_SCRIPT')) {
<?php endforeach; ?>
<?php endif; ?>
<?php if ($ticket['message'] != ''): ?>
<p><?php echo $ticket['message']; ?></p>
<?php if ($ticket['message_html'] != ''): ?>
<p><?php echo $ticket['message_html']; ?></p>
<?php endif; ?>
<?php foreach ($ticket['replies'] as $reply): ?>
@@ -128,7 +128,7 @@ if (!defined('IN_SCRIPT')) {
<td><?php echo $reply['name']; ?></td>
</tr>
</table>
<p><?php echo $reply['message']; ?></p>
<p><?php echo $reply['message_html']; ?></p>
<?php endforeach; ?>
<div style="page-break-after: always;"><?php echo $hesklang['end_ticket']; ?></div>
<?php endforeach; ?>