[%#
Parameters we are expecting:
============================
hide_main_menu:
Boolean used to hide the main menu
1 to hide, 0 to show; 0 by default
hide_page_heading:
Boolean used to hide page heading
1 to hide, 0 to show; 0 by default
page_title:
String text is displayed on browser tab
and on page title
app_key:
String used to lookup application information in dynamicui.conf.
Hides page heading if the app_key and page title is not defined.
feature:
String specifying a feature required in order to render the page. If the
user does not have the feature, an error will be rendered instead.
meta:
String containing meta tags to be injected after the main
template meta tags. Highly recommend using a Template Toolkit block
and processing the block to get the output into a string.
page_stylesheets:
Array containing the path of stylesheets specific to
your page that must be relative to the root of the theme.
embed_stylesheets:
Array containing the server path of stylesheets specific to
your page that will be included with the INSERT directive.
page_styles:
A string containing a
[%- END -%]
[% # stylsheet for main_content.html.tt %]
[% # TODO: Load this stylesheet based on language %]
[%- # Page specified
[% END -%]
[%- # JavaScript Globals %]
[%
page_scripts = page_scripts || [];
page_scripts.unshift("core/web-components/dist/jupiter-web-components.cmb.js");
%]
[%- # Page specified
[%- # Page specific javascript files -%]
[%- IF page_scripts AND authorized_to_access; -%]
[%- FOR source IN page_scripts; -%]
[% IF is_ng; %]
[% SET url = theme_magic_url(source); %]
[% ELSE; %]
[% SET url = theme_magic_url(calculate_mode_js_url(source, optimized)); %]
[% END; %]
[% END %]
[% END; %]
[%- # Page specific javascript embedded in initial request -%]
[%- IF embed_scripts AND authorized_to_access %]
[%- END %]
[%- # Page specified
[% IF !CPANEL.is_debug_mode_enabled(); %]
[% ELSE %]
[% END %]