This page lists files in the current directory. You can view content, get download/execute commands for Wget, Curl, or PowerShell, or filter the list using wildcards (e.g., `*.sh`).
wget 'https://lists2.roe3.org/hesk/theme/hesk3/customer/inc/footer.inc.php'
<?php
global $hesk_settings, $hesklang;
/**
* footer.inc.php takes care of closing the DOM structure of what header.inc.php opens up:
* Up to the <main> element.
*
* IMPORTANT: footer.inc.php closes off the <main>, <body> and <html> elements.
*
* If you need to add any custom JS to a page, just create a <script> tag before the customer/inc/footer.inc.php
* is required - so still part within the <main> scope.
*/
/**
*
* This file is part of HESK - PHP Help Desk Software.
*
* (c) Copyright Klemen Stirn. All rights reserved.
* https://www.hesk.com
*
* For the full copyright and license agreement information visit
* https://www.hesk.com/eula.php
*
*/
/* Check if this is a valid include */
if (!defined('IN_SCRIPT')) {die('Invalid attempt');}
/*******************************************************************************
The code below handles HESK licensing and must be included in the template.
Removing this code is a direct violation of the HESK End User License Agreement,
will void all support and may result in unexpected behavior.
To purchase a HESK license and support future HESK development please visit:
https://www.hesk.com/buy.php
*******************************************************************************/
$hesk_settings['hesk_license']('GZvb3RlciBjbGFzcz0iZm9vdGVyIiBzdHlsZT0iZGlzcGxhe
TpibG9jayAhaW1wb3J0YW50OyI+PHAgY2xhc3M9InRleHQtY2VudGVyIiBzdHlsZT0iZGlzcGxheTpib
G9jayAhaW1wb3J0YW50OyI+UG93ZXJlZCBieSA8YSBocmVmPSJodHRwczovL3d3dy5oZXNrLmNvbSIgY
2xhc3M9ImxpbmsiIHN0eWxlPSJkaXNwbGF5OmlubGluZSAhaW1wb3J0YW50OyI+SGVscCBEZXNrIFNvZ
nR3YXJlPC9hPiA8c3BhbiBjbGFzcz0iZm9udC13ZWlnaHQtYm9sZCIgc3R5bGU9ImRpc3BsYXk6aW5sa
W5lICFpbXBvcnRhbnQ7Ij5IRVNLPC9zcGFuPjxicj4mbmJzcDs8L3A+PC9mb290ZXI+',"\120",
"2c6d33b92c7068eed222cfc904a0e6019a579a8d");
/*******************************************************************************
END LICENSE CODE
*******************************************************************************/
?>
</main> <!-- End main -->
</div> <!-- End wrapper -->
<?php
// Start loading any additional commonly used scripts.
include(TEMPLATE_PATH . '../../footer.txt');
// Force extending sessions if specifically enabled
if ($hesk_settings['extend_customer'] && isset($_SESSION['customer']['id'])) : ?>
<iframe src="<?php echo HESK_PATH . 'extend_session.php'; ?>" height="10" width="10" style="border:none;"></iframe>
<?php
endif;
// Note: for the most common ones, they are loaded unless ignored, for the rarer ones, they're only loaded if defined.
if (!defined('IGNORE_LOAD_JQUERY')) : ?>
<script src="<?php echo TEMPLATE_PATH; ?>customer/js/jquery-3.5.1.min.js"></script>
<?php
endif;
if (!defined('IGNORE_LOAD_HESK_FUNC')) : ?>
<script src="<?php echo TEMPLATE_PATH; ?>customer/js/hesk_functions.js?<?php echo $hesk_settings['hesk_version']; ?>"></script>
<?php
endif;
if (!defined('IGNORE_LOAD_SVG4')) : ?>
<script src="<?php echo TEMPLATE_PATH; ?>customer/js/svg4everybody.min.js"></script>
<?php
endif;
if (!defined('IGNORE_LOAD_SELECTIZE')) : ?>
<script src="<?php echo TEMPLATE_PATH; ?>customer/js/selectize.min.js?<?php echo $hesk_settings['hesk_version']; ?>"></script>
<?php
endif;
if (!defined('IGNORE_LOAD_APP')) : ?>
<script src="<?php echo TEMPLATE_PATH; ?>customer/js/app<?php echo $hesk_settings['debug_mode'] ? '' : '.min'; ?>.js?<?php echo $hesk_settings['hesk_version']; ?>"></script>
<?php
endif;
if (defined('OUTPUT_SEARCH_JAVASCRIPT')) :
// TODO CAN this BE simply be moved in the end here, or does it have to be in the middle as in 4/5 cases, or is it fine like in mytickets, where it's done in the end?
outputSearchJavascript();
endif;
// Note: For less common ones, require to define them to load them.
if (defined('LOAD_JS_JQUERY_MODAL')) : ?>
<script src="<?php echo TEMPLATE_PATH; ?>customer/js/jquery.modal.min.js"></script>
<?php
endif;
if (defined('LOAD_JS_DATEPICKER')) : ?>
<script src="<?php echo TEMPLATE_PATH; ?>customer/js/datepicker.min.js"></script>
<script type="text/javascript">
(function ($) { $.fn.datepicker.language['en'] = {
days: ['<?php echo $hesklang['d0']; ?>', '<?php echo $hesklang['d1']; ?>', '<?php echo $hesklang['d2']; ?>', '<?php echo $hesklang['d3']; ?>', '<?php echo $hesklang['d4']; ?>', '<?php echo $hesklang['d5']; ?>', '<?php echo $hesklang['d6']; ?>'],
daysShort: ['<?php echo $hesklang['sun']; ?>', '<?php echo $hesklang['mon']; ?>', '<?php echo $hesklang['tue']; ?>', '<?php echo $hesklang['wed']; ?>', '<?php echo $hesklang['thu']; ?>', '<?php echo $hesklang['fri']; ?>', '<?php echo $hesklang['sat']; ?>'],
daysMin: ['<?php echo $hesklang['su']; ?>', '<?php echo $hesklang['mo']; ?>', '<?php echo $hesklang['tu']; ?>', '<?php echo $hesklang['we']; ?>', '<?php echo $hesklang['th']; ?>', '<?php echo $hesklang['fr']; ?>', '<?php echo $hesklang['sa']; ?>'],
months: ['<?php echo $hesklang['m1']; ?>','<?php echo $hesklang['m2']; ?>','<?php echo $hesklang['m3']; ?>','<?php echo $hesklang['m4']; ?>','<?php echo $hesklang['m5']; ?>','<?php echo $hesklang['m6']; ?>', '<?php echo $hesklang['m7']; ?>','<?php echo $hesklang['m8']; ?>','<?php echo $hesklang['m9']; ?>','<?php echo $hesklang['m10']; ?>','<?php echo $hesklang['m11']; ?>','<?php echo $hesklang['m12']; ?>'],
monthsShort: ['<?php echo $hesklang['ms01']; ?>','<?php echo $hesklang['ms02']; ?>','<?php echo $hesklang['ms03']; ?>','<?php echo $hesklang['ms04']; ?>','<?php echo $hesklang['ms05']; ?>','<?php echo $hesklang['ms06']; ?>', '<?php echo $hesklang['ms07']; ?>','<?php echo $hesklang['ms08']; ?>','<?php echo $hesklang['ms09']; ?>','<?php echo $hesklang['ms10']; ?>','<?php echo $hesklang['ms11']; ?>','<?php echo $hesklang['ms12']; ?>'],
today: '<?php echo hesk_slashJS($hesklang['r1']); ?>',
clear: '<?php echo hesk_slashJS($hesklang['clear']); ?>',
dateFormat: '<?php echo hesk_slashJS($hesk_settings['format_datepicker_js']); ?>',
timeFormat: '<?php echo hesk_slashJS($hesk_settings['format_time']); ?>',
firstDay: <?php echo $hesklang['first_day_of_week']; ?>
}; })(jQuery);
</script>
<?php
endif;
if (defined('LOAD_JS_DROPZONE')) :
?>
<script src="<?php echo TEMPLATE_PATH; ?>customer/js/dropzone.min.js"></script>
<?php
endif;
if (defined('LOAD_JS_ZEBRA')) :
?>
<script src="./js/zebra_tooltips.min.js?<?php echo $hesk_settings['hesk_version']; ?>"></script>
<?php if (function_exists('hesk3_output_drag_and_drop_script')) hesk3_output_drag_and_drop_script('r_attachments'); ?>
<script>
$(document).ready(function() {
new $.Zebra_Tooltips($('.tooltip'), {animation_offset: 0, animation_speed: 100, hide_delay: 0, show_delay: 0, vertical_alignment: 'above', vertical_offset: 5});
});
</script>
<?php
endif;
if (defined('RECAPTCHA')) : ?>
<script src="https://www.google.com/recaptcha/api.js?hl=<?php echo $hesklang['RECAPTCHA']; ?>" async defer></script>
<script>
if (typeof recaptcha_submitForm === 'undefined') {
// default catcha submit function - some pages might have a different handler defined already
function recaptcha_submitForm() {
document.getElementById("form1").submit();
}
}
</script>
<?php endif; ?>
<?php
/* In some cases (like create-ticket.php) we have to close out html after footer is loaded, in order we can ensure to load some
HTML elements after jQuery & other scripts have been loaded first
*/
if (!defined('FOOTER_DONT_CLOSE_HTML')) : ?>
</body> <!-- End body -->
</html> <!-- End html -->
<?php endif; ?>
wget 'https://lists2.roe3.org/hesk/theme/hesk3/customer/inc/header.inc.php'
<?php
global $hesk_settings, $hesklang;
/**
* header.inc.php takes care of loading everything from
* <DOCTYPE>, head, body,... all the way to the start of <main> element.
*
* USAGE: Wherever header.inc.php is loaded, after the custom page content is printed,
* the footer.inc.php should be loaded after that to ensure the DOM structure is properly closed.
*/
/**
*
* This file is part of HESK - PHP Help Desk Software.
*
* (c) Copyright Klemen Stirn. All rights reserved.
* https://www.hesk.com
*
* For the full copyright and license agreement information visit
* https://www.hesk.com/eula.php
*
*/
/* Check if this is a valid include */
if (!defined('IN_SCRIPT')) {
die();
}
// Load any commonly used PHP functions/includes via defined constants
if (defined('ALERTS')) {
require_once(TEMPLATE_PATH . 'customer/util/alerts.php');
}
if (defined('CUSTOM_FIELDS')) {
require_once(TEMPLATE_PATH . 'customer/util/custom-fields.php');
}
if (defined('ATTACHMENTS')) {
require_once(TEMPLATE_PATH . 'customer/util/attachments.php');
}
if (defined('KBSEARCH')) {
require_once(TEMPLATE_PATH . 'customer/util/kb-search.php');
}
if (defined('RATING')) {
require_once(TEMPLATE_PATH . 'customer/util/rating.php');
}
if (defined('ADD_REPLY')) {
require_once(TEMPLATE_PATH . 'customer/view-ticket/partial/add-reply.php');
}
if (defined('PRIORITIES')) {
require_once(HESK_PATH . 'inc/priorities.inc.php');
}
if (defined('MY_TICKETS_SEARCH')) {
require_once(TEMPLATE_PATH . 'customer/util/my-tickets-search.php');
}
if (defined('PAGER')) {
require_once(TEMPLATE_PATH . 'customer/util/pager.php');
}
$extraHtmlClasses = '';
if (defined('EXTRA_PAGE_CLASSES')) {
// add extra space, to make sure it doesn't concatenate with any existing classes by mistake
$extraHtmlClasses .= ' ' . EXTRA_PAGE_CLASSES;
}
if(isset($hesk_settings['customer_theme']) && $hesk_settings['customer_theme'] !== '') {
$extraHtmlClasses .= ' theme_'. $hesk_settings['customer_theme'];
}
$assetVersion = $hesk_settings['hesk_version'];
if ($hesk_settings['debug_mode']) {
// Note: For some reason, even with browser force cache refresh it's not always refreshing, so this is a way to force it additionally in debug mode if necessary.
$assetVersion .='_' . time();
}
?>
<!DOCTYPE html>
<html lang="<?php echo $hesk_settings['languages'][$hesk_settings['language']]['folder'] ?>" class="<?php echo $extraHtmlClasses; ?>">
<head>
<meta charset="utf-8" />
<title><?php echo (
// TODO absolutelyRework <- does tmp_title just exist/dynamically generated? or has to be defined in script?
defined('TMP_TITLE') ? $hesk_settings['tmp_title'] : $hesk_settings['hesk_title']
); ?></title>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0" />
<?php include(HESK_PATH . 'inc/favicon.inc.php'); ?>
<meta name="format-detection" content="telephone=no" />
<!-- Note: The default vars are NOT bundled, but have to be loaded first to init vars, and then get overridden by theme vars, before further color calculations are done. -->
<link rel="stylesheet" media="all" href="<?php echo TEMPLATE_PATH; ?>customer/css/core/0_00_default_theme_vars.css?<?php echo $assetVersion; ?>" />
<?php
// Check if use has any special CSS themes selected, and if they exist, load their CSS.
// NOTE! Theme vars overrides have to be loaded in first, as they are then used as part of color calculations in 0_01_variables.css file!
$attempt_load_theme = isset($hesk_settings['customer_theme']) && $hesk_settings['customer_theme'] !== '';
if ($attempt_load_theme) {
$loaded_theme = $hesk_settings['customer_theme'];
$theme_path = TEMPLATE_PATH.'customer/css/themes/'.$loaded_theme.'.css';
if (file_exists($theme_path)) { ?>
<link rel="stylesheet" media="all" href="<?php echo $theme_path; ?>?<?php echo $assetVersion; ?>" />
<?php
}
}
?>
<!-- Now load any admin/setting overrides of theme variables values
NOTE: these should be loaded even if it's production/not debug mode, on top of app.css!!! -->
<?php if (!empty($hesk_settings['theme_overrides']) && is_array($hesk_settings['theme_overrides']))
{
// prepare CSS variables from any setting overrides
$theme_overrides_css = ":root {\n";
foreach ($hesk_settings['theme_overrides'] as $var => $value) {
$theme_overrides_css .= "{$var}: {$value};\n";
}
$theme_overrides_css .= "}\n";
echo '<style type="text/css">' . $theme_overrides_css . '</style>';
}
?>
<link rel="stylesheet" media="all" href="<?php echo TEMPLATE_PATH; ?>customer/css/theme_overrides.css?<?php echo $assetVersion; ?>" />
<?php if ($hesk_settings['debug_mode']): ?>
<!--
IMPORTANT NOTE: For any potential future CSS file additions:
Please make sure to add name prefixes with numbers in whatever order you want them to be loaded.
This will ensure that when they are combined and minified, any order of CSS will be properly preserved.
-->
<!-- TODO Could potentially load these dynamically based on all that are in /core folder??? (Make sure to exclude loading 0_00_default_theme_vars here if so!)
-->
<link rel="stylesheet" media="all" href="<?php echo TEMPLATE_PATH; ?>customer/css/core/0_01_variables.css?<?php echo $assetVersion; ?>" />
<link rel="stylesheet" media="all" href="<?php echo TEMPLATE_PATH; ?>customer/css/core/0_02_font_setup.css?<?php echo $assetVersion; ?>" />
<link rel="stylesheet" media="all" href="<?php echo TEMPLATE_PATH; ?>customer/css/core/0_03_common.css?<?php echo $assetVersion; ?>" />
<link rel="stylesheet" media="all" href="<?php echo TEMPLATE_PATH; ?>customer/css/core/0_04_layout.css?<?php echo $assetVersion; ?>" />
<link rel="stylesheet" media="all" href="<?php echo TEMPLATE_PATH; ?>customer/css/core/0_05_layout_components.css?<?php echo $assetVersion; ?>" />
<link rel="stylesheet" media="all" href="<?php echo TEMPLATE_PATH; ?>customer/css/core/0_06_header.css?<?php echo $assetVersion; ?>" />
<link rel="stylesheet" media="all" href="<?php echo TEMPLATE_PATH; ?>customer/css/core/0_07_footer.css?<?php echo $assetVersion; ?>" />
<link rel="stylesheet" media="all" href="<?php echo TEMPLATE_PATH; ?>customer/css/core/0_08_buttons.css?<?php echo $assetVersion; ?>" />
<link rel="stylesheet" media="all" href="<?php echo TEMPLATE_PATH; ?>customer/css/core/0_09_forms.css?<?php echo $assetVersion; ?>" />
<link rel="stylesheet" media="all" href="<?php echo TEMPLATE_PATH; ?>customer/css/core/0_10_input.css?<?php echo $assetVersion; ?>" />
<link rel="stylesheet" media="all" href="<?php echo TEMPLATE_PATH; ?>customer/css/core/0_11_icons.css?<?php echo $assetVersion; ?>" />
<link rel="stylesheet" media="all" href="<?php echo TEMPLATE_PATH; ?>customer/css/core/0_12_dropdowns.css?<?php echo $assetVersion; ?>" />
<link rel="stylesheet" media="all" href="<?php echo TEMPLATE_PATH; ?>customer/css/core/0_13_datepickers.css?<?php echo $assetVersion; ?>" />
<link rel="stylesheet" media="all" href="<?php echo TEMPLATE_PATH; ?>customer/css/core/0_14_modal.css?<?php echo $assetVersion; ?>" />
<link rel="stylesheet" media="all" href="<?php echo TEMPLATE_PATH; ?>customer/css/core/0_15_navigation.css?<?php echo $assetVersion; ?>" />
<link rel="stylesheet" media="all" href="<?php echo TEMPLATE_PATH; ?>customer/css/core/0_16_tooltips.css?<?php echo $assetVersion; ?>" />
<link rel="stylesheet" media="all" href="<?php echo TEMPLATE_PATH; ?>customer/css/core/0_17_responsive.css?<?php echo $assetVersion; ?>" />
<link rel="stylesheet" media="all" href="<?php echo TEMPLATE_PATH; ?>customer/css/core/0_18_tickets.css?<?php echo $assetVersion; ?>" />
<link rel="stylesheet" media="all" href="<?php echo TEMPLATE_PATH; ?>customer/css/core/0_19_kb.css?<?php echo $assetVersion; ?>" />
<link rel="stylesheet" media="all" href="<?php echo TEMPLATE_PATH; ?>customer/css/core/0_20_pages.css?<?php echo $assetVersion; ?>" />
<link rel="stylesheet" media="all" href="<?php echo TEMPLATE_PATH; ?>customer/css/core/0_21_popups.css?<?php echo $assetVersion; ?>" />
<link rel="stylesheet" media="all" href="<?php echo TEMPLATE_PATH; ?>customer/css/core/0_22_misc.css?<?php echo $assetVersion; ?>" />
<!-- It's deprecated, generally we want to uncomment this out to test if it breaks anything we assume is deprecated anyway. -->
<link rel="stylesheet" media="all" href="<?php echo TEMPLATE_PATH; ?>customer/css/core/0_23_deprecated.css?<?php echo $assetVersion; ?>" />
<?php else: ?>
<link rel="stylesheet" media="all" href="<?php echo TEMPLATE_PATH; ?>customer/dist/app<?php echo $hesk_settings['debug_mode'] ? '' : '.min'; ?>.css?<?php echo $assetVersion; ?>" />
<?php endif; ?>
<!-- NOTE: these should be loaded even if it's production/not debug mode, on top of app.css!!! -->
<link rel="stylesheet" media="all" href="<?php echo TEMPLATE_PATH; ?>customer/css/core_overrides.css?<?php echo $assetVersion; ?>" />
<?php
if (defined('LOAD_CSS_MODAL')) {
?>
<link rel="stylesheet" href="<?php echo TEMPLATE_PATH; ?>customer/css/jquery.modal.css" />
<?php
}
if (defined('LOAD_CSS_DROPZONE')) {
?>
<link rel="stylesheet" media="all" href="<?php echo TEMPLATE_PATH; ?>customer/css/dropzone.min.css?<?php echo $assetVersion; ?>" />
<?php
}
if (defined('LOAD_PRISM')) {
?>
<link rel="stylesheet" media="all" href="<?php echo TEMPLATE_PATH; ?>customer/css/prism.css" />
<script src="<?php echo TEMPLATE_PATH; ?>customer/js/prism.js"></script>
<?php
}
if (defined('LOAD_PRISM_OPTIONAL') && $hesk_settings['staff_ticket_formatting'] == 2) {
?>
<script type="text/javascript" src="<?php echo HESK_PATH; ?>js/prism.js?<?php echo $assetVersion; ?>"></script>
<link rel="stylesheet" media="all" href="<?php echo HESK_PATH; ?>css/prism.css?<?php echo $assetVersion; ?>">
<?php
}
if (defined('LOAD_CSS_ZEBRA')) {
?>
<link rel="stylesheet" href="./css/zebra_tooltips.css">
<?php
}
?>
<style>
<?php
// TODO NOTE -> all these "page specific cssess will be reworked to use a page class instead and not be hardcode printed here
if (defined('OUTPUT_SEARCH_STYLING')) {
// TODO potentially rework into CSS files directly
outputSearchStyling();
}
if (defined('VIEW_CATEGORY_CSS')) {
// TODO absolutelyRework CSS
// TODO notes -> due to injecting PHP these seem to probably have to stay here
?>
/* suppress CssOverwrittenProperties */
.topics__block {
width: <?php echo $subcategoriesWidth; ?>;
}
.content .block__head {
margin-bottom: <?php echo $currentCategory['id'] != 1 ? '0' : '16px' ?>;
}
<?php
}
?>
</style>
<?php include(TEMPLATE_PATH . '../../head.txt'); ?>
</head>
<body class="cust-help">
<?php include(TEMPLATE_PATH . '../../header.txt'); ?>
<?php
if (defined('RENDER_COMMON_ELEMENTS')) {
?>
<a href="#maincontent" class="skiplink"><?php echo $hesklang['skip_to_main_content']; ?></a>
<?php
}
?>
<div class="wrapper">
<main class="main" id="maincontent">
<?php
// Print Main Navigation
require_once(TEMPLATE_PATH . 'customer/inc/main-nav.inc.php');
// IMPORTANT: Wherever loading header.inc.php, make sure to close off with footer.inc.php in the end as well.
?>
wget 'https://lists2.roe3.org/hesk/theme/hesk3/customer/inc/login-navbar-elements.php'
<?php
// This guard is used to ensure that users can't hit this outside of actual HESK code
if (!defined('IN_SCRIPT')) {
die();
}
function renderLoginNavbarElements($userContext = null) {
global $hesk_settings, $hesklang;
if (!$hesk_settings['customer_accounts']) {
//-- Customer accounts disabled; don't show anything.
return;
}
if ($userContext !== null): ?>
<div class="header__nav">
<div class="profile__item profile__user out-close">
<div class="user__ava" data-action="show-profile">
<?php
$letter = hesk_mb_substr($userContext['name'], 0, 1);
echo hesk_mb_strtoupper($letter);
?>
</div>
<div class="user__name" data-action="show-profile">
<p>
<span><?php echo $userContext['name']; ?></span>
<svg class="icon icon-chevron-down">
<use xlink:href="<?php echo HESK_PATH; ?>img/sprite.svg#icon-chevron-down"></use>
</svg>
</p>
</div>
<section class="profile__menu">
<div class="profile--view">
<a href="my_tickets.php" class="btn btn-full" ripple="ripple"><?php echo $hesklang['customer_my_tickets_heading']; ?></a>
</div>
<div class="profile--view">
<a href="index.php?a=add" class="btn btn-full" ripple="ripple"><?php echo $hesklang['submit_ticket']; ?></a>
</div>
<div class="profile--view">
<a href="profile.php" class="btn btn-full" ripple="ripple"><?php echo $hesklang['customer_profile']; ?></a>
</div>
<div class="profile--logout">
<a href="login.php?a=logout&token=<?php hesk_token_echo(); ?>">
<svg class="icon icon-log-out">
<use xlink:href="<?php echo HESK_PATH; ?>img/sprite.svg#icon-log-out"></use>
</svg>
<span><?php echo $hesklang['customer_logout']; ?></span>
</a>
</div>
</section>
</div>
</div>
<?php else: ?>
<div class="header__nav">
<div class="nav-item">
<a href="login.php"><?php echo $hesklang['customer_login']; ?></a>
</div>
<?php if ($hesk_settings['customer_accounts_customer_self_register']): ?>
<div class="nav-item">
<a href="register.php"><?php echo $hesklang['customer_register']; ?></a>
</div>
<?php endif; ?>
</div>
<?php
endif;
}
function renderNavbarLanguageSelect() {
global $hesk_settings, $hesklang;
if ($hesk_settings['can_sel_lang']) { ?>
<div class="header__lang">
<form method="get" action="" aria-label="<?php echo $hesklang['set_lang']; ?>" style="margin:0;padding:0;border:0;white-space:nowrap;">
<?php // this has to be here for an exception in view-ticket.php
if (defined('RENDER_HIDDEN_TICKET_FIELDS') && isset($hesk_settings['hidden_data'])) { ?>
<input type="hidden" name="track" value="<?php echo $hesk_settings['hidden_data']['ticket']['trackid']; ?>">
<input type="hidden" name="e" value="<?php echo $hesk_settings['hidden_data']['email']; ?>">
<?php } ?>
<div class="dropdown-select center out-close">
<select name="language" onchange="this.form.submit()">
<?php hesk_listLanguages(); ?>
</select>
</div>
<?php foreach (hesk_getCurrentGetParameters() as $key => $value): ?>
<input type="hidden" name="<?php echo hesk_htmlentities($key); ?>"
value="<?php echo hesk_htmlentities($value); ?>">
<?php endforeach; ?>
</form>
</div>
<?php }
}
wget 'https://lists2.roe3.org/hesk/theme/hesk3/customer/inc/main-nav.inc.php'
<?php
global $hesk_settings, $hesklang;
/**
* @var array $customerUserContext - User info for a customer if logged in. `null` if a customer is not logged in.
*/
/**
*
* This file is part of HESK - PHP Help Desk Software.
*
* (c) Copyright Klemen Stirn. All rights reserved.
* https://www.hesk.com
*
* For the full copyright and license agreement information visit
* https://www.hesk.com/eula.php
*
*/
/* Check if this is a valid include */
if (!defined('IN_SCRIPT')) {die('Invalid attempt');}
require_once(TEMPLATE_PATH . 'customer/inc/login-navbar-elements.php');
?>
<header class="header">
<div class="contr">
<div class="header__inner">
<a href="<?php echo $hesk_settings['hesk_url']; ?>" class="header__logo">
<?php echo $hesk_settings['hesk_title']; ?>
</a>
<?php if (!defined('IGNORE_NAVBAR_RENDER')) {
// in some cases, i.e. error.php, we want to ignore rendering this, but in all other cases we need/want to render it
renderLoginNavbarElements(isset($customerUserContext) ? $customerUserContext : null);
renderNavbarLanguageSelect();
}
?>
</div>
</div>
</header>
<?php
// Note: We're not using define() in this exception, as there's situations where breadcrumbs can't be set as a constant,
// due to some dynamic link generation in a few cases
global $BREADCRUMBS;
if (isset($BREADCRUMBS) && !empty($BREADCRUMBS)) {
?>
<div class="breadcrumbs">
<div class="contr">
<div class="breadcrumbs__inner">
<?php foreach($BREADCRUMBS as $breadcrumb):
if (!empty($breadcrumb['url'])) {
// If URL is defined, assume it's not the last breadcrumb, and there's another after it
?>
<a href="<?php echo $breadcrumb['url']; ?>">
<span><?php echo $breadcrumb['title']; ?></span>
</a>
<svg class="icon icon-chevron-right">
<use xlink:href="<?php echo TEMPLATE_PATH; ?>customer/img/sprite.svg#icon-chevron-right"></use>
</svg>
<?php
} else {
// If URL NOT defined, assume this is the last one, and don't print another chevron or URL
?>
<div class="last"><?php echo $breadcrumb['title']; ?></div>
<?php
}
endforeach; ?>
</div>
</div>
</div>
<?php
} ?>