Move content size preference into look & feel section

This commit is contained in:
Hadi Nategh 2022-09-26 16:40:01 +02:00
parent 7ba571b710
commit 9f33ebf782
2 changed files with 19 additions and 18 deletions

View File

@ -39,13 +39,6 @@ $colors = array(
'#b4b4b4' => lang('Gray'), '#b4b4b4' => lang('Gray'),
); );
$textsize = array (
'10' => lang('small'),
'12' => lang('standard'),
'14' => lang('large'),
'16' => lang('x-large')
);
asort($colors); asort($colors);
$colors['custom'] = lang('Custom color'); // custom allways last $colors['custom'] = lang('Custom color'); // custom allways last
$template_colors = array(); $template_colors = array();
@ -138,17 +131,6 @@ $GLOBALS['settings'] = array(
'xmlrpc' => False, 'xmlrpc' => False,
'admin' => False, 'admin' => False,
), ),
'textsize' => array(
'type' => 'select',
'label' => 'Set content size',
'no_lang' => true,
'name' => 'textsize',
'help' => lang('It sets content size (text only) according to selected size.'),
'xmlrpc' => True,
'values' => $textsize,
'default' => '12',
'admin' => False,
),
'navbar_format' => false, // not used in JDots (defined in common prefs) 'navbar_format' => false, // not used in JDots (defined in common prefs)
'default_app' => false, // not used in JDots, as we can have multiple tabs open ... 'default_app' => false, // not used in JDots, as we can have multiple tabs open ...
); );

View File

@ -131,6 +131,14 @@ class preferences_hooks
$font_size_options = Api\Etemplate\Widget\HtmlArea::$font_size_options; $font_size_options = Api\Etemplate\Widget\HtmlArea::$font_size_options;
} }
$textsize = array (
'10' => lang('small'),
'12' => lang('standard'),
'14' => lang('large'),
'16' => lang('x-large')
);
// Settings array for this app // Settings array for this app
$settings = array( $settings = array(
array( array(
@ -147,6 +155,17 @@ class preferences_hooks
'admin' => False, 'admin' => False,
'forced' => 20, // hidden as not used in eTemplate2 'forced' => 20, // hidden as not used in eTemplate2
), ),
'textsize' => array(
'type' => 'select',
'label' => 'Set content size',
'no_lang' => true,
'name' => 'textsize',
'help' => lang('It sets content size (text only) according to selected size.'),
'xmlrpc' => True,
'values' => $textsize,
'default' => '12',
'admin' => False,
),
'lazy-update' => array( 'lazy-update' => array(
'type' => 'select', 'type' => 'select',
'label' => 'How to update lists', 'label' => 'How to update lists',