[% #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; 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 !skipfooter %] [% END %] [% #Load scripts from the template scripts parameter at the end of the body for bootstrap theme IF theme == "bootstrap"; 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 CPANEL.analytics_ui_includes_are_enabled() && !inside_frame_or_tab_or_popup && Whostmgr.ENV.DNT.substr(0, 1) != '1' && template_exists('/var/cpanel/customizations/whm/includes/cp_analytics_whm.html.tt'); TRY; '
'; INCLUDE '/var/cpanel/customizations/whm/includes/cp_analytics_whm.html.tt'; '
'; CATCH; ""; END; END; %]