🚀 RELEASE: HESK v3.1.1
Signed-off-by: Luke Tainton <Luke.Tainton@mail.bcu.ac.uk>
This commit is contained in:
committed by
Luke Tainton
parent
d7fc040b1e
commit
e0d6aa511b
@@ -24,10 +24,20 @@ $onload='';
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
|
||||
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="<?php echo HESK_PATH; ?>img/favicon/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="<?php echo HESK_PATH; ?>img/favicon/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="<?php echo HESK_PATH; ?>img/favicon/favicon-16x16.png">
|
||||
<link rel="manifest" href="<?php echo HESK_PATH; ?>img/favicon/site.webmanifest">
|
||||
<link rel="mask-icon" href="<?php echo HESK_PATH; ?>img/favicon/safari-pinned-tab.svg" color="#5bbad5">
|
||||
<link rel="shortcut icon" href="<?php echo HESK_PATH; ?>img/favicon/favicon.ico">
|
||||
<meta name="msapplication-TileColor" content="#2d89ef">
|
||||
<meta name="msapplication-config" content="<?php echo HESK_PATH; ?>img/favicon/browserconfig.xml">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
<meta name="format-detection" content="telephone=no">
|
||||
<link rel="stylesheet" media="all" href="<?php echo HESK_PATH; ?>css/app<?php echo $hesk_settings['debug_mode'] ? '' : '.min'; ?>.css?<?php echo $hesk_settings['hesk_version']; ?>">
|
||||
<script src="<?php echo HESK_PATH; ?>js/jquery-3.4.1.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo HESK_PATH; ?>js/hesk_javascript<?php echo $hesk_settings['debug_mode'] ? '' : '.min'; ?>.js?<?php echo $hesk_settings['hesk_version']; ?>"></script>
|
||||
<script src="<?php echo HESK_PATH; ?>js/selectize.min.js"></script>
|
||||
|
||||
<?php
|
||||
/* Tickets shouldn't be indexed by search engines */
|
||||
@@ -46,6 +56,15 @@ $onload='';
|
||||
<?php
|
||||
}
|
||||
|
||||
/* If page styles <code> blocks */
|
||||
if (defined('STYLE_CODE'))
|
||||
{
|
||||
?>
|
||||
<script type="text/javascript" src="<?php echo HESK_PATH; ?>js/prism.js?<?php echo $hesk_settings['hesk_version']; ?>"></script>
|
||||
<link rel="stylesheet" media="all" href="<?php echo HESK_PATH; ?>css/prism.css?<?php echo $hesk_settings['hesk_version']; ?>">
|
||||
<?php
|
||||
}
|
||||
|
||||
/* If page requires timer load Javascript */
|
||||
if (defined('TIMER'))
|
||||
{
|
||||
@@ -135,8 +154,66 @@ $onload='';
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
|
||||
// Timeago
|
||||
if (defined('TIMEAGO'))
|
||||
{
|
||||
?>
|
||||
<script type="text/javascript" src="<?php echo HESK_PATH; ?>js/timeago/jquery.timeago.js?<?php echo $hesk_settings['hesk_version']; ?>"></script>
|
||||
<?php
|
||||
// Load language file if not English
|
||||
if ($hesklang['TIMEAGO_LANG_FILE'] != 'jquery.timeago.en.js')
|
||||
{
|
||||
?>
|
||||
<script type="text/javascript" src="<?php echo HESK_PATH; ?>js/timeago/locales/<?php echo $hesklang['TIMEAGO_LANG_FILE']; ?>?<?php echo $hesk_settings['hesk_version']; ?>"></script>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function() {
|
||||
$("time.timeago").timeago();
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
|
||||
// Back to top button
|
||||
if (defined('BACK2TOP'))
|
||||
{
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function() {
|
||||
var offset = 800;
|
||||
var duration = 250;
|
||||
jQuery(window).scroll(function() {
|
||||
if (jQuery(this).scrollTop() > offset) {
|
||||
jQuery('.back-to-top').fadeIn(duration);
|
||||
} else {
|
||||
jQuery('.back-to-top').fadeOut(duration);
|
||||
}
|
||||
});
|
||||
|
||||
jQuery('.back-to-top').click(function(event) {
|
||||
event.preventDefault();
|
||||
jQuery('html, body').animate({scrollTop: 0}, duration);
|
||||
return false;
|
||||
})
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<script type="text/javascript" src="<?php echo HESK_PATH; ?>js/zebra_tooltips.min.js?<?php echo $hesk_settings['hesk_version']; ?>"></script>
|
||||
<link rel="stylesheet" href="<?php echo HESK_PATH; ?>css/zebra_tooltips.css">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
// show tooltips for any element that has a class named "tooltip"
|
||||
// the content of the tooltip will be taken from the element's "title" attribute
|
||||
new $.Zebra_Tooltips($('.tooltip'), {animation_offset: 0, animation_speed: 100, hide_delay: 0, show_delay: 0, vertical_alignment: 'above', vertical_offset: 5});
|
||||
});
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body onload="<?php echo $onload; unset($onload); ?>">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user