<?php
// Copyright 1999-2022. Plesk International GmbH. All rights reserved.
?>
<?= $this->doctype() ?>
<html <?= $this->htmlDoc() ?>>
<head>
    <?= $this->headMeta() ?>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE">
    <meta name="format-detection" content="telephone=no">
    <meta name="forgery_protection_token" id="forgery_protection_token" content="<?= Session::get()->panel()->forgeryProtectionToken ?>">
    <?= $this->headTitle() ?>
    <?= $this->favicon() ?>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="plesk-build" content="<?= StatInfo::make()->getProductVersion()['plesk_build'] ?>">
    <meta name="plesk-revision" content="<?= StatInfo::make()->getProductVersion()['plesk_revision'] ?>">
    <?= $GLOBALS['skin']->getThemeCssIncludes() ?>
    <?= $this->headStyle() ?>
    <?= $this->headLink() ?>
    <?php $this->jsLoad()->requireJs(); ?>
    <?php $this->jsLoad()->prepend('/javascript/main.js'); ?>
    <?php $this->jsLoad()->prepend('/javascript/vendors.js'); ?>
    <?php $this->jsLoad()->uiLibrary(); ?>
    <?php $this->jsLoad()->prepend('/javascript/externals/prototype.js'); ?>
    <?= new \Plesk\UserActivityTracking\View($this) ?>
    <?= $this->headScript() ?>
    <?= $this->partial('partials/context_header.phtml') ?>

    <?= $this->layout()->extensionsAdditionalHead ?>

    <?php if ($this->layout()->googleTagManagerId): ?>
        <?= $this->partial('partials/google-tag-manager.phtml') ?>
    <?php endif; ?>
</head>
<body>
<?= $this->plesk()->run() ?>
<?php if ($this->layout()->googleTagManagerId): ?>
    <?= $this->partial('partials/google-tag-manager-noscript.phtml') ?>
<?php endif; ?>
<?php if ($this->layout()->content): ?>
    <?= $this->plesk()->renderAsTemplate($this->layout()->content, 'document.getElementById("main")') ?>
<?php endif; ?>
    <?= $this->layout()->extensionsAdditionalBody; ?>
</body>
</html>
