Add single image display.
This commit is contained in:
@@ -12,7 +12,6 @@ class admin_plugin_luxtools_main extends DokuWiki_Admin_Plugin
|
||||
protected $configKeys = [
|
||||
'paths',
|
||||
'scratchpad_paths',
|
||||
'allow_in_comments',
|
||||
'extensions',
|
||||
'default_sort',
|
||||
'default_order',
|
||||
@@ -25,6 +24,7 @@ class admin_plugin_luxtools_main extends DokuWiki_Admin_Plugin
|
||||
'default_randlinks',
|
||||
'default_showsize',
|
||||
'default_showdate',
|
||||
'default_tablecolumns',
|
||||
'default_listsep',
|
||||
'default_maxheight',
|
||||
'thumb_placeholder',
|
||||
@@ -69,7 +69,6 @@ class admin_plugin_luxtools_main extends DokuWiki_Admin_Plugin
|
||||
$scratchpadPaths = str_replace(["\r\n", "\r"], "\n", $scratchpadPaths);
|
||||
$newConf['scratchpad_paths'] = $scratchpadPaths;
|
||||
|
||||
$newConf['allow_in_comments'] = (int)$INPUT->bool('allow_in_comments');
|
||||
$newConf['extensions'] = $INPUT->str('extensions');
|
||||
|
||||
$newConf['default_sort'] = $INPUT->str('default_sort');
|
||||
@@ -83,6 +82,7 @@ class admin_plugin_luxtools_main extends DokuWiki_Admin_Plugin
|
||||
$newConf['default_randlinks'] = (int)$INPUT->bool('default_randlinks');
|
||||
$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');
|
||||
|
||||
@@ -126,12 +126,6 @@ class admin_plugin_luxtools_main extends DokuWiki_Admin_Plugin
|
||||
echo '<textarea name="scratchpad_paths" rows="6" cols="80" class="edit">' . hsc($scratchpadPaths) . '</textarea>';
|
||||
echo '</label><br />';
|
||||
|
||||
// allow_in_comments
|
||||
$checked = $this->getConf('allow_in_comments') ? ' checked="checked"' : '';
|
||||
echo '<label class="block"><span>' . hsc($this->getLang('allow_in_comments')) . '</span> ';
|
||||
echo '<input type="checkbox" name="allow_in_comments" value="1"' . $checked . ' />';
|
||||
echo '</label><br />';
|
||||
|
||||
// extensions
|
||||
echo '<label class="block"><span>' . hsc($this->getLang('extensions')) . '</span> ';
|
||||
echo '<input type="text" class="edit" name="extensions" value="' . hsc((string)$this->getConf('extensions')) . '" />';
|
||||
@@ -219,6 +213,11 @@ class admin_plugin_luxtools_main extends DokuWiki_Admin_Plugin
|
||||
echo '<input type="checkbox" name="default_showdate" value="1"' . $checked . ' />';
|
||||
echo '</label><br />';
|
||||
|
||||
// default_tablecolumns
|
||||
echo '<label class="block"><span>' . hsc($this->getLang('default_tablecolumns')) . '</span>';
|
||||
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')) . '" />';
|
||||
|
||||
Reference in New Issue
Block a user