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()) {
|
|
|
|
$api_key = Minz_Request::param('api_key', '');
|
|
|
|
FreshRSS_Context::$user_conf->kagi_api_key = $api_key;
|
|
|
|
FreshRSS_Context::$user_conf->save();
|
|
|
|
}
|
|
|
|
}
|