[%
PROCESS core/partials/main_menu_nav_items.html.tt;
%]
<cp-root-variables
directory-prefix="[% varcache.directory_prefix %]"
app-list="[% applications.json() | html %]"
main-menu-links="[% links.json() | html %]"
app-name="cpanel"
primary-domain="[% domain %]"
app-search-results-limit="[% CPANEL.app_search_result_limit %]"
></cp-root-variables>
<!-- skipnav link for screenreader users -->
<a href="#content" class="visually-hidden-focusable">[% locale.maketext('Skip to main content') %]</a>
<div id="cp-overlay" class="cp-overlay"></div>
<div id="page" class="cp-layout-page">
[% IF !hide_main_menu %]
<aside id="cp-main-menu-container" class="cp-layout-main-menu">
<cp-main-menu
logo-src="[% varcache.customizations.main_menu_logo %]"
logo-alt-text="[% varcache.customizations.logo_description_html %]"
></cp-main-menu>
</aside>
[% END %]
<div class="cp-layout-wrapper">
[%- IF !hide_header %]
<header class="cp-layout-header [% IF !hide_main_menu %] cp-layout-header--with-main-menu [% END %]">
<!-- Single quotes needed to pass the props into the web component correctly. -->
<cp-header
focus-search="[% focus_feature_search ? 'true' : 'false' %]"
integrations-info='[% integrations_info.json() %]'
logo-alt-text="[% varcache.customizations.logo_description_html %]"
logo-src="[% varcache.customizations.header_logo %]"
></cp-header>
</header>
<script type="text/javascript">
(function() {
const header = document.querySelector('cp-header');
header.addEventListener('menuItemPress', event => {
if(event.detail.id === "menu-reset-link") {
reset_all_interface_settings('[% cp_security_token %]')
}
});
})();
</script>
[% END -%]
<div class="container-lg">
<!-- PAGE TEMPLATE'S CONTENT START -->
<main id="content" class="cp-layout-main-content [% IF !hide_main_menu %] cp-layout-main-content--with-main-menu [% END %] [%- IF !hide_header %] cp-layout-main-content--with-header [%- END -%]">
[% IF CPANEL.CPFLAGS.item('trial') %]
[% PROCESS 'core/license/license.component.tt'
id='trial-warning'
type='warning'
icon='information-fill'
message=locale.maketext('[output,strong,TRIAL LICENSE:] This copy is a trial version and will expire at the end of the trial term. You will need to upgrade to a paid copy to continue using the software after that term.')
-%]
[% END %]
[% IF CPANEL.CPFLAGS.item('dev') %]
[% PROCESS 'core/license/license.component.tt'
id='dev-warning'
type='warning'
icon='information-fill'
message=locale.maketext("[output,strong,DEVELOPMENT LICENSE:] This server is running on a development license. If this server is being used in a production environment, please notify [output,url,_1,cs@cpanel.net] immediately.", "mailto:cs@cpanel.net?subject=" _ host_name _ "(" _ main_ip _ "," _ main_server_ip _ ") is using a dev license in a production environment")
-%]
[% END %]
[% IF !hide_page_heading && page_title -%]
<h1 class="page-header">
<span class="page-title">[% page_title -%]</span>
</h1>
[% END %]
[% IF authorized_to_access -%]
[%- content -%]
[% ELSE -%]
<div class="body-content">
<div class="alert alert-danger">
<span class="glyphicon glyphicon-remove-sign" aria-hidden="true"></span>
<div class="alert-message">
[% locale.maketext('[output,strong,Error:] This feature, “[_1]”, is not enabled on your account. Please contact your reseller for access.',feature) %]
</div>
</div>
</div>
[% END -%]
</main>
<!-- PAGE TEMPLATE'S CONTENT END -->
</div>
<footer class="cp-layout-footer">
<cp-footer
id="cp-footer"
doc-link="[% varcache.customizations.documentation_url %]"
[% IF varcache.customizations.help_url -%]
help-link="[% varcache.customizations.help_url %]"
[% END %]
directory-prefix="[% varcache.directory_prefix %]"
version="[% cPanel_version %]"
logo-src="[% theme_magic_url('brand/cpanel-logo-orange.svg') %]">
</cp-footer>
</footer>
</div>