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( );
'$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,
$type = SMOPT_TYPE_PLUGINS;
} else if ( substr( $k, 0, 13 ) == '$ldap_server[' ) {
$type = SMOPT_TYPE_LDAP;
+ } else if ( substr( $k, 0, 9 ) == '$fontsets' ||
+ substr( $k, 0, 13 ) == '$aTemplateSet' ) {
+ $type = SMOPT_TYPE_CUSTOM;
}
if ( $type == SMOPT_TYPE_TITLE || $colapse[$act_grp] == 'off' ) {
switch ( $type ) {
case SMOPT_TYPE_LDAP:
+ case SMOPT_TYPE_CUSTOM:
case SMOPT_TYPE_PLUGINS:
case SMOPT_TYPE_THEME:
case SMOPT_TYPE_HIDDEN: