From 9f33ebf782749d0fcc2a7a75b5683c176e0d5482 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 26 Sep 2022 16:40:01 +0200 Subject: [PATCH] Move content size preference into look & feel section --- pixelegg/hook_settings.inc.php | 18 ------------------ .../inc/class.preferences_hooks.inc.php | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/pixelegg/hook_settings.inc.php b/pixelegg/hook_settings.inc.php index 71a69bf6aa..cf5a6dfd36 100644 --- a/pixelegg/hook_settings.inc.php +++ b/pixelegg/hook_settings.inc.php @@ -39,13 +39,6 @@ $colors = array( '#b4b4b4' => lang('Gray'), ); -$textsize = array ( - '10' => lang('small'), - '12' => lang('standard'), - '14' => lang('large'), - '16' => lang('x-large') -); - asort($colors); $colors['custom'] = lang('Custom color'); // custom allways last $template_colors = array(); @@ -138,17 +131,6 @@ $GLOBALS['settings'] = array( 'xmlrpc' => 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) 'default_app' => false, // not used in JDots, as we can have multiple tabs open ... ); diff --git a/preferences/inc/class.preferences_hooks.inc.php b/preferences/inc/class.preferences_hooks.inc.php index aed6b1da6a..4c98ead663 100644 --- a/preferences/inc/class.preferences_hooks.inc.php +++ b/preferences/inc/class.preferences_hooks.inc.php @@ -131,6 +131,14 @@ class preferences_hooks $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( array( @@ -147,6 +155,17 @@ class preferences_hooks 'admin' => False, '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( 'type' => 'select', 'label' => 'How to update lists',