Movie import v1
This commit is contained in:
@@ -57,6 +57,7 @@ class admin_plugin_luxtools_main extends DokuWiki_Admin_Plugin
|
||||
'calendar_slot4_color',
|
||||
'calendar_slot4_display',
|
||||
'pagelink_search_depth',
|
||||
'omdb_apikey',
|
||||
];
|
||||
|
||||
public function getMenuText($language)
|
||||
@@ -130,6 +131,8 @@ class admin_plugin_luxtools_main extends DokuWiki_Admin_Plugin
|
||||
if ($depth < 0) $depth = 0;
|
||||
$newConf['pagelink_search_depth'] = $depth;
|
||||
|
||||
$newConf['omdb_apikey'] = trim($INPUT->str('omdb_apikey'));
|
||||
|
||||
if ($this->savePluginLocalConf($newConf)) {
|
||||
msg($this->getLang('saved'), 1);
|
||||
} else {
|
||||
@@ -360,6 +363,13 @@ class admin_plugin_luxtools_main extends DokuWiki_Admin_Plugin
|
||||
echo '<input type="number" class="edit" min="0" name="pagelink_search_depth" value="' . hsc((string)$this->getConf('pagelink_search_depth')) . '" />';
|
||||
echo '</label><br />';
|
||||
|
||||
// OMDb API key
|
||||
echo '<h2>' . hsc($this->getLang('omdb_heading')) . '</h2>';
|
||||
echo '<label class="block"><span>' . hsc($this->getLang('omdb_apikey')) . '</span> ';
|
||||
echo '<input type="text" class="edit" name="omdb_apikey" value="' . hsc((string)$this->getConf('omdb_apikey')) . '" />';
|
||||
echo '</label><br />';
|
||||
echo '<p><em>' . hsc($this->getLang('omdb_apikey_note')) . '</em></p>';
|
||||
|
||||
echo '<button type="submit" class="button">' . hsc($this->getLang('btn_save')) . '</button>';
|
||||
|
||||
echo '</fieldset>';
|
||||
|
||||
Reference in New Issue
Block a user