[% #NOTE: Please do not remove this. Added so that processing of footer will still have access to Whostmgr methods. This is a fix for most of the cgi files and the pages that process footer independently to work. USE Whostmgr; USE JSON; USE NVData; USE VarCache; SET has_component_system = template_exists("/usr/local/cpanel/whostmgr/docroot/templates/master_templates/component.html.tt"); IF has_component_system; USE Components; END; IF inside_frame_or_tab_or_popup; SET skipheader = 1, hide_header = 1, hide_navigation = 1, hide_license_warnings = 1, skipbreadcrumb = 1, skipsupport = 1; skipfooter = 1; END; SET whm_variables = Whostmgr.template_vars; %] [% IF has_component_system && Components.has_components_for('whostmgr', app_key, 'page-bottom'); PROCESS "master_templates/component.html.tt", APP_KEY => app_key, TAG => 'div', SLOT => 'page-bottom'; END; %] [% IF !skipfooter %] [% END %] [% #Load scripts from the template scripts parameter at the end of the body IF theme == "bootstrap" || theme == "jupiter"; IF scripts; FOR src=scripts.list(); PROCESS '_loadjs.tmpl'; END; END; #Load page specific javascript from the js2 folder with the same name as the page if it exists FOR src=Whostmgr.defheader_js2_urls(); PROCESS '_loadjs.tmpl'; END; ELSIF theme == "yui"; SET page_specifc_js = Whostmgr.get_page_js(); IF page_specifc_js; ""; END; ELSE; #Load page specific javascript from the js2 folder with the same name as the page if it exists FOR src=Whostmgr.defheader_js2_urls(); PROCESS '_loadjs.tmpl'; END; END; -%] [% # NOTE: Analytics UI includes are disabled by default and are strictly opt-in only. IF !inside_frame_or_tab_or_popup && template_exists('/var/cpanel/customizations/whm/includes/cp_analytics_whm.html.tt'); # The package updates setting check is required to avoid regressions during cPanel&WHM upgrade to v112. # This regression may occur only for users who have package updates disabled. (Details available in PH-19613) IF varcache.is_package_update_enabled; TRY; '
'; INCLUDE '/var/cpanel/customizations/whm/includes/cp_analytics_whm.html.tt'; '
'; CATCH; ""; END; ELSIF CPANEL.analytics_ui_includes_are_enabled() && Whostmgr.ENV.DNT.substr(0, 1) != '1'; TRY; '
'; INCLUDE '/var/cpanel/customizations/whm/includes/cp_analytics_whm.html.tt'; '
'; CATCH; ""; END; END; END; %] [% IF js_block %] [% js_block %] [% END %]