freshrss-kagi-summarizer/extension.php

24 lines
709 B
PHP
Raw Normal View History

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