[%
USE ExpVar;
SET categories = [ 'manage_inbox', 'calcontact', 'edit_settings', 'spam', 'other' ];
SET category_descriptions = {
'manage_inbox' => locale.maketext('Manage Your Inbox'),
'calcontact' => locale.maketext('Calendars and Contacts'),
'edit_settings' => locale.maketext('Edit Your Settings'),
'spam' => locale.maketext('Fight Spam'),
'other' => locale.maketext('Other Webmail Features'),
};
SET app_descriptions = {
'autoresponders' => locale.maketext("Are you going on vacation? Use this feature to configure your automated emails."),
'forwarders' => locale.maketext("Automatically send a copy of any incoming email from this email address to another."),
'email_filters' => locale.maketext("Create and manage email filters for your main email account."),
'configure_mail_client' => locale.maketext("Set up your email account on any device."),
'webmail_account_prefs' => locale.maketext("Change your Webmail account settings."),
'calendar_and_contacts' => locale.maketext("Set up your calendar and contacts on any device."),
'calendar-contact-management' => locale.maketext("Create/Edit/Delete calendars or contact lists."),
'manage-calendar-access' => locale.maketext("Share calendars or contact lists with other users on this domain."),
'change_password' => locale.maketext("Update your webmail password."),
'contact_information' => locale.maketext("Set up a different email address to receive account notifications and password reset confirmations."),
'two_factor_authentication' => locale.maketext("Configure a security measure that requires two forms of identification to log in."),
'boxtrapper' => locale.maketext("Protect your inbox from spam."),
'apache_spam_assassin' => locale.maketext('Filter unwanted spam email before it reaches your inbox.'),
'solr_search_index' => locale.maketext("IMAP Full-Text Search Index (powered by Apache Solr™) improves the speed and convenience of the search experience."),
'email_disk_usage' => locale.maketext("Delete old messages from your mailbox. Recover disk space. It’s that simple."),
'track_delivery' => locale.maketext("Review an email’s delivery route."),
'mailing_lists' => locale.maketext("Create and manage email filters for your main email account."),
};
%]
[% FOREACH category IN categories %]
[% should_show = 0 %]
[% category_descriptions.$category %]
[% FOREACH page IN global.sitemap %]
[% NEXT IF page.value.category != category %]
[% IF page.value.condition %]
[% NEXT IF page.value.condition.feature && !CPANEL.feature(page.value.condition.feature) %]
[% NEXT IF page.value.condition.if && !ExpVar.expand_and_eval(page.value.condition.if) %]
[% should_show = 1 %]
[% END %]
[% page_key = page.key %]
-
[% page.value.name %]
[% app_descriptions.$page_key %]
[% END %]
[% IF !should_show %]
[% END %]
[% END %]