24 lines
713 B
PHP
24 lines
713 B
PHP
<?php
|
|
|
|
class KagiSummarizerExtension extends Minz_Extension {
|
|
public function init() {
|
|
$this->registerTranslates();
|
|
|
|
//Minz_View::appendScript($this->getFileUrl('script.js', 'js'), false, false, false);
|
|
//Minz_View::appendStyle($this->getFileUrl('style.css', 'css'));
|
|
//Minz_View::appendScript(_url('kagiSummarizer', 'jsVars', false, true, false);
|
|
|
|
//$this->registerController('kagiSummarizer');
|
|
//$this->registerViews();
|
|
}
|
|
|
|
public function handleConfigureAction() {
|
|
$this->registerTranslates();
|
|
|
|
if (Minz_Request::isPost()) {
|
|
FreshRSS_Context::$user_conf->kagi_api_key = Minz_Request::param('kagi_api_key', '');
|
|
FreshRSS_Context::$user_conf->save();
|
|
}
|
|
}
|
|
}
|