Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions include/display.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] =

Expand Down Expand Up @@ -138,6 +141,8 @@
$displayText['p_bann'] =

true;
}


for ($i = 1; $i <= 5; ++$i) {
//$displayText['rate'.$i] = true;
Expand Down
2 changes: 2 additions & 0 deletions language/english/modinfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
9 changes: 9 additions & 0 deletions xoops_version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down