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; 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'); 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',