[% USE Uapi; USE JSON; USE CPBranding; USE Master; SET CPANEL.CPVAR.dprefix = "../"; SET has_feature = CPANEL.feature('sitepublisher'); SET domains = Uapi.exec('SiteTemplates', 'list_user_settings', { 'api.paginate_start' => 1, 'api.paginate_size' => 10, 'api.normalize' => 1, }); SET templates = Uapi.exec('SiteTemplates', 'list_site_templates'); SET file_manager_obj = CPBranding.get_application_from_available_applications(varcache.available_applications, 'file_manager'); SET accounts_obj = CPBranding.get_application_from_available_applications(varcache.available_applications, 'email_accounts'); SET webdisk_obj = CPBranding.get_application_from_available_applications(varcache.available_applications, 'web_disk'); %] [% WRAPPER '_assets/master.html.tt' app_key = 'site_publisher' use_master_bootstrap = 0 page_stylesheets = ["css2-min/site_publisher/publish.css"] -%] [% IF has_feature %]
[% PROCESS '_assets/cjt2_header_include.tt' %] [% ELSE -%]
[% locale.maketext('This feature is disabled.') %] [% locale.maketext('Your system administrator must enable the Site Publisher feature for your account.') %]
[% END -%] [% END #wrapper %]