[% #---------------------------------------------------------------------- # Arguments (probably *not* a complete list!) that this template accepts: # # allow_login_autocomplete # app_name # display_locales # https # login_messages # logout # msg_code # reset_pass - should be true if either resetpass or resetpass_sub is enabled (doesn't have to be both) USE CPBranding; USE JSON; SET TEMPLATE_PATH = "login/" _ locale_attributes.locale _ "/"; SET CPANEL.CPVAR.dprefix = "./"; SET style_sheets = []; SET scripts = []; SET user_locale = locale.get_language_tag(); SET direction = locale.get_html_dir_attr(); SET base_dir = '/usr/local/cpanel/base/unprotected/wp-squared/'; SET dark_path = get_theme_url(TEMPLATE_PATH _ "assets/wp2-logo-white-white.svg"); SET light_path = get_theme_url(TEMPLATE_PATH _ "assets/wp2-logo-sm.svg"); SET favicon_path = TEMPLATE_PATH _ "assets/favicon.ico"; SET customizations = CPBranding.get_customizations(dark_path, light_path, favicon_path, "cpanel", "wp-squared"); #---------------------------------------------------- # ∨∨∨ THIS IS GENERATED CODE, DO NOT MODIFY IT ∨∨∨ #---------------------------------------------------- # scripts.push(TEMPLATE_PATH _ 'polyfills.js'); scripts.push(TEMPLATE_PATH _ 'main.js'); # ~~~INSERT ABOVE~~~ USE dir = Directory(base_dir); SET custom_variables_file = 0; FOREACH file IN dir.files; IF file.name.match("-variables-custom\.css$"); custom_variables_file = file.name; END; END; SET login_msgs = login_messages; login_msgs.max_users_exceeded = { msg => locale.maketext('Maximum Users Exceeded.'), info => locale.maketext('For more information, contact your hosting provider: “[output,url,_1,_2,target,_blank]”', contact_info.url, contact_info.name) }; %]