[% #---------------------------------------------------------------------- # Arguments received by this template: # # page_to_show - Which page will the template process and load # locale - Locale Object # fourohfour - if page is a 404 page # access_denied - if page is an "access denied" page # referrer_denied - if page is an "referrer denied" page # token_denied - if page is an "token denied" page # app_name - which application is running the page (cpaneld, whostmgrd, webmaild, etc) IF fourohfour || access_denied || referrer_denied || token_denied; SET title = locale.maketext('Error'); ELSIF ssl_redirect; SET title = locale.maketext('Login redirect'); ELSE; SWITCH app_name; CASE 'whostmgrd'; SET title = locale.maketext('WHM for WP Squared Login[comment,This is the page title]'); SET body_class = "whm"; CASE DEFAULT; SET title = locale.maketext('WP Squared Login'); SET body_class = "wpsq"; END; END; SET LOGIN_FOR_WP_SQ = app_name == "cpaneld" && "$page_to_show" == "login" ? 1 : 0; %] [% IF LOGIN_FOR_WP_SQ -%] [% PROCESS "login/$page_to_show" -%] [% ELSE -%]