blog->settings->get(basename(__NAMESPACE__)); $s->put('active', !empty($_POST['s_active'])); $s->put('packman', !empty($_POST['s_packman'])); $s->put('file_pattern', $_POST['s_file_pattern']); dcPage::addSuccessNotice( __('Configuration successfully updated') ); http::redirect( dcCore::app()->admin->__get('list')->getURL('module=' . basename(__NAMESPACE__) . '&conf=1&redir=' . dcCore::app()->admin->__get('list')->getRedir()) ); return true; } catch (Exception $e) { dcCore::app()->error->add($e->getMessage()); } return null; } public static function render(): void { $s = dcCore::app()->blog->settings->get(basename(__NAMESPACE__)); echo '
' . __('If enabled, new tab "Tweak stores" allows your to perfom actions relative to third-party repositories.') . '
' . __('If enabled, plugin pacKman will (re)generate on the fly dcstore.xml file at root directory of the module.') . '
' .
__('You can use widcard like %author%, %type%, %id%, %version%.') . '
' .
__('For example on github https://github.com/MyGitName/%id%/releases/download/v%version%/%type%-%id%.zip') . '
' .
__('Note: on github, you must create a release and join to it the module zip file.') . '