From bd418516f39926edba6629d777e85564130c2b05 Mon Sep 17 00:00:00 2001 From: Orwah Issa Date: Thu, 10 Nov 2016 03:54:42 +0200 Subject: [PATCH 1/3] Update xoops_version.php add show_css_buttons config --- xoops_version.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/xoops_version.php b/xoops_version.php index 3bb68ef7..b23f76de 100644 --- a/xoops_version.php +++ b/xoops_version.php @@ -446,6 +446,15 @@ 'default' => 1 ); +$modversion['config'][] = array( + 'name' => 'show_css_buttons', + 'title' => '_MI_SHOW_CSS_BUTTONS', + 'description' => '_MI_SHOW_CSS_BUTTONS_DESC', + 'formtype' => 'yesno', + 'valuetype' => 'int', + 'default' => 1 +); + $modversion['config'][] = array( 'name' => 'user_level', 'title' => '_MI_USERLEVEL', From 3b930ccdc200597dc405a59e92002cb106f033a8 Mon Sep 17 00:00:00 2001 From: Orwah Issa Date: Thu, 10 Nov 2016 04:02:10 +0200 Subject: [PATCH 2/3] Update modinfo.php --- language/english/modinfo.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/language/english/modinfo.php b/language/english/modinfo.php index 1cf17ff2..2febf20b 100644 --- a/language/english/modinfo.php +++ b/language/english/modinfo.php @@ -253,3 +253,5 @@ define('_MI_USERATTACH_DESC', 'shows attachments in the forum only after logging in.'); // 4.3 define('_MI_NEWBB_BLOCK_LIST_TOPIC', 'Render a list of topics');// irmtfan +define('_MI_SHOW_CSS_BUTTONS', 'Show CSS Buttons'); +define('_MI_SHOW_CSS_BUTTONS_DESC', 'render buttons as CSS instead of using images'); From 5c1bf833b403a1a45b1f6128cd9ff2b305d1ccac Mon Sep 17 00:00:00 2001 From: Orwah Issa Date: Thu, 10 Nov 2016 04:02:56 +0200 Subject: [PATCH 3/3] Update display.php --- include/display.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/display.php b/include/display.php index 896cace2..c3cafa4a 100644 --- a/include/display.php +++ b/include/display.php @@ -66,6 +66,9 @@ 3-2- no style means just image */ + +if ($GLOBALS['xoopsModuleConfig']['show_css_buttons'] == 1) +{ // uncomment to show text link instead of images (set to true) $displayText[''] = //$displayText['blank'] = @@ -138,6 +141,8 @@ $displayText['p_bann'] = true; +} + for ($i = 1; $i <= 5; ++$i) { //$displayText['rate'.$i] = true;