define('SMOPT_TYPE_THEME', 10);
define('SMOPT_TYPE_PLUGINS', 11);
define('SMOPT_TYPE_LDAP', 12);
+define('SMOPT_TYPE_CUSTOM', 13);
define('SMOPT_TYPE_EXTERNAL', 32);
define('SMOPT_TYPE_PATH',33);
+/**
+ * Returns reformated aTemplateSet array data for option selection
+ * @return array template selection options
+ * @since 1.5.1
+ */
+function adm_template_options() {
+ global $aTemplateSet;
+ $ret = array();
+ foreach ($aTemplateSet as $iTemplateID => $aTemplate) {
+ $ret[$iTemplateID] = $aTemplate['NAME'];
+ }
+ return $ret;
+}
+
global $languages, $version;
$language_values = array( );
'$hide_auth_header' => array( 'name' => _("Remove username from headers"),
'comment' => _("Used only when identities can't be modified"),
'type' => SMOPT_TYPE_BOOLEAN ),
- '$allow_server_sort' => array( 'name' => _("Use server-side sorting"),
+ '$disable_server_sort' => array( 'name' => _("Disable server-side sorting"),
'type' => SMOPT_TYPE_BOOLEAN,
'default' => false ),
- '$allow_thread_sort' => array( 'name' => _("Use server-side thread sorting"),
+ '$disable_thread_sort' => array( 'name' => _("Disable server-side thread sorting"),
'type' => SMOPT_TYPE_BOOLEAN,
'default' => false ),
'$allow_charset_search' => array( 'name' => _("Allow server charset search"),
/* ---- Tweaks ---- */
'Group10' => array( 'name' => _("Tweaks"),
'type' => SMOPT_TYPE_TITLE ),
- '$advanced_tree' => array( 'name' => _("Use advanced tree folder listing"),
- 'type' => SMOPT_TYPE_BOOLEAN ),
'$use_icons' => array( 'name' => _("Use icons"),
'type' => SMOPT_TYPE_BOOLEAN ),
'$use_iframe' => array( 'name' => _("Use inline frames with HTML mails"),
'$abook_global_file_listing' => array( 'name' => _("Allow listing of global address book"),
'type' => SMOPT_TYPE_BOOLEAN ),
/* --------------------------------------------------------*/
- 'Group7' => array( 'name' => _("Themes"),
+ 'Group7' => array( 'name' => _("Templates"),
'type' => SMOPT_TYPE_TITLE ),
'$theme_css' => array( 'name' => _("Style Sheet URL (css)"),
'type' => SMOPT_TYPE_PATH,
'size' => 40 ),
+ '$default_fontsize' => array( 'name' => _("Default font size"),
+ 'type' => SMOPT_TYPE_STRING,
+ 'default' => ''),
+ '$default_fontset' => array( 'name' => _("Default font set"),
+ 'type' => SMOPT_TYPE_STRLIST,
+ 'posvals' => $fontsets),
+ '$templateset_default' => array( 'name' => _("Default template"),
+ 'type' => SMOPT_TYPE_STRLIST,
+ 'posvals' => adm_template_options()),
'$theme_default' => array( 'name' => _("Default theme"),
'type' => SMOPT_TYPE_INTEGER,
'default' => 0,