Movie import v1

This commit is contained in:
2026-03-17 12:36:12 +01:00
parent e750736a1c
commit 211418c6c4
10 changed files with 312 additions and 9 deletions

View File

@@ -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>';