{*
 **********************************************************
 * Developed by: Team Theme Metro
 * Website: http://www.thememetro.com
 **********************************************************
*}

<link rel="stylesheet" href="{$WEB_ROOT}/assets/css/fontawesome-all.min.css">
{if $adminMasqueradingAsClient || $adminLoggedIn}
{if $themesettings.customcolors.developermod}
<link rel="stylesheet/less" href="{$WEB_ROOT}/templates/{$template}/assets/less/themes/style.less">
{else}	
<link rel="stylesheet" href="{$WEB_ROOT}/templates/{$template}/assets/css/themes/style.min.css?v={if $lessvariables.version}{$lessvariables.version}{else}{$versionHash}{/if}">
{/if}
{/if}

{if $adminMasqueradingAsClient || $adminLoggedIn}{else}
<link rel="stylesheet" href="{$WEB_ROOT}/templates/{$template}/assets/css/themes/style.min.css?v={if $lessvariables.version}{$lessvariables.version}{else}{$versionHash}{/if}">
{/if}


{if $themesettings.cookieconsent.cconsent}
<link rel="stylesheet" href="{$WEB_ROOT}/templates/{$template}/assets/css/cookieconsent.min.css">
{/if}

{if $themesettings.general.customfonts}
{if $themesettings.general.fontcdn}
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="{$themesettings.general.fontcdn}" rel="stylesheet">
{if $themesettings.general.headingfontcdn}
<link href="{$themesettings.general.headingfontcdn}" rel="stylesheet">
{/if}
{/if}
{/if}
<style rel="stylesheet">
{if $themesettings.general.customfonts}
{if $themesettings.general.fontfamily}
	body {
		font-family: {$themesettings.general.fontfamily|unescape:"entity"}!important;
	}
{/if}
{if $themesettings.general.headingfontfamily}	
	h1, h2, h3, .h1, .h2, .h3 {
		font-family: {$themesettings.general.headingfontfamily|unescape:"entity"}!important;
	}
{/if}
{/if}
{if $themesettings.customcss.customcss}
	{$themesettings.customcss.customcss|unescape:"entity"}
{/if}
{if $pagedata.customcss}
	{$pagedata.customcss|unescape:"entity"}
{/if}
</style>

<script>
    var csrfToken = '{$token}',
        markdownGuide = '{lang|addslashes key="markdown.title"}',
        locale = '{if !empty($mdeLocale)}{$mdeLocale}{else}en{/if}',
        saved = '{lang|addslashes key="markdown.saved"}',
        saving = '{lang|addslashes key="markdown.saving"}',
        whmcsBaseUrl = "{\WHMCS\Utility\Environment\WebHelper::getBaseUrl()}";
    {if $captcha}{$captcha->getPageJs()}{/if}
</script>
<script src="{$WEB_ROOT}/templates/{$template}/assets/js/scripts.min.js?v={$versionHash}"></script>

{if $adminMasqueradingAsClient || $adminLoggedIn}
	{if $themesettings.customcolors.developermod}
		{include file="$template/core/includes/theme-header.tpl"}
	{/if}
{/if}


{if $templatefile == "viewticket" && !$loggedin}
  <meta name="robots" content="noindex" />
{/if}