2023-09-25 11:49:34 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class KagiSummarizerExtension extends Minz_Extension {
|
|
|
|
public function init() {
|
|
|
|
$this->registerTranslates();
|
|
|
|
|
2023-09-25 11:51:14 -05:00
|
|
|
//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);
|
2023-09-25 11:49:34 -05:00
|
|
|
|
2023-09-25 11:51:14 -05:00
|
|
|
//$this->registerController('kagiSummarizer');
|
|
|
|
//$this->registerViews();
|
2023-09-25 11:49:34 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
public function handleConfigureAction() {
|
|
|
|
$this->registerTranslates();
|
|
|
|
|
|
|
|
if (Minz_Request::isPost()) {
|
2023-09-25 12:00:39 -05:00
|
|
|
FreshRSS_Context::$user_conf->kagi_api_key = Minz_Request::param('kagi_api_key', '');
|
2023-09-25 11:49:34 -05:00
|
|
|
FreshRSS_Context::$user_conf->save();
|
|
|
|
}
|
2023-09-25 11:52:51 -05:00
|
|
|
}
|
2023-09-25 11:49:34 -05:00
|
|
|
}
|