Clean up unused syntax
This commit is contained in:
@@ -15,7 +15,6 @@ class admin_plugin_luxtools_main extends DokuWiki_Admin_Plugin
|
||||
'extensions',
|
||||
'default_sort',
|
||||
'default_order',
|
||||
'default_style',
|
||||
'default_tableheader',
|
||||
'default_foldersfirst',
|
||||
'default_recursive',
|
||||
@@ -25,7 +24,6 @@ class admin_plugin_luxtools_main extends DokuWiki_Admin_Plugin
|
||||
'default_showsize',
|
||||
'default_showdate',
|
||||
'default_tablecolumns',
|
||||
'default_listsep',
|
||||
'default_maxheight',
|
||||
'thumb_placeholder',
|
||||
'gallery_thumb_scale',
|
||||
@@ -73,7 +71,6 @@ class admin_plugin_luxtools_main extends DokuWiki_Admin_Plugin
|
||||
|
||||
$newConf['default_sort'] = $INPUT->str('default_sort');
|
||||
$newConf['default_order'] = $INPUT->str('default_order');
|
||||
$newConf['default_style'] = $INPUT->str('default_style');
|
||||
$newConf['default_tableheader'] = (int)$INPUT->bool('default_tableheader');
|
||||
$newConf['default_foldersfirst'] = (int)$INPUT->bool('default_foldersfirst');
|
||||
$newConf['default_recursive'] = (int)$INPUT->bool('default_recursive');
|
||||
@@ -83,7 +80,6 @@ class admin_plugin_luxtools_main extends DokuWiki_Admin_Plugin
|
||||
$newConf['default_showsize'] = (int)$INPUT->bool('default_showsize');
|
||||
$newConf['default_showdate'] = (int)$INPUT->bool('default_showdate');
|
||||
$newConf['default_tablecolumns'] = $INPUT->str('default_tablecolumns');
|
||||
$newConf['default_listsep'] = $INPUT->str('default_listsep');
|
||||
$newConf['default_maxheight'] = $INPUT->str('default_maxheight');
|
||||
|
||||
$newConf['thumb_placeholder'] = $INPUT->str('thumb_placeholder');
|
||||
@@ -155,17 +151,6 @@ class admin_plugin_luxtools_main extends DokuWiki_Admin_Plugin
|
||||
echo '</select>';
|
||||
echo '</label><br />';
|
||||
|
||||
// default_style
|
||||
$defaultStyle = (string)$this->getConf('default_style');
|
||||
echo '<label class="block"><span>' . hsc($this->getLang('default_style')) . '</span>';
|
||||
echo '<select name="default_style" class="edit">';
|
||||
foreach (['list', 'olist', 'table'] as $opt) {
|
||||
$sel = ($defaultStyle === $opt) ? ' selected="selected"' : '';
|
||||
echo '<option value="' . hsc($opt) . '"' . $sel . '>' . hsc($opt) . '</option>';
|
||||
}
|
||||
echo '</select>';
|
||||
echo '</label><br />';
|
||||
|
||||
// default_tableheader
|
||||
$checked = $this->getConf('default_tableheader') ? ' checked="checked"' : '';
|
||||
echo '<label class="block"><span>' . hsc($this->getLang('default_tableheader')) . '</span> ';
|
||||
@@ -218,11 +203,6 @@ class admin_plugin_luxtools_main extends DokuWiki_Admin_Plugin
|
||||
echo '<input type="text" class="edit" name="default_tablecolumns" value="' . hsc((string)$this->getConf('default_tablecolumns')) . '" />';
|
||||
echo '</label><br />';
|
||||
|
||||
// default_listsep
|
||||
echo '<label class="block"><span>' . hsc($this->getLang('default_listsep')) . '</span>';
|
||||
echo '<input type="text" class="edit" name="default_listsep" value="' . hsc((string)$this->getConf('default_listsep')) . '" />';
|
||||
echo '</label><br />';
|
||||
|
||||
// default_maxheight
|
||||
echo '<label class="block"><span>' . hsc($this->getLang('default_maxheight')) . '</span>';
|
||||
echo '<input type="number" class="edit" name="default_maxheight" value="' . hsc((string)$this->getConf('default_maxheight')) . '" />';
|
||||
|
||||
Reference in New Issue
Block a user