wip
This commit is contained in:
parent
68a7345dac
commit
c9983fcbfd
|
@ -3,6 +3,7 @@
|
||||||
class KagiSummarizerExtension extends Minz_Extension {
|
class KagiSummarizerExtension extends Minz_Extension {
|
||||||
public function init() {
|
public function init() {
|
||||||
$this->registerTranslates();
|
$this->registerTranslates();
|
||||||
|
$this->registerHook('entry_before_display', [$this, 'addSummarizeButton']);
|
||||||
|
|
||||||
//Minz_View::appendScript($this->getFileUrl('script.js', 'js'), false, false, false);
|
//Minz_View::appendScript($this->getFileUrl('script.js', 'js'), false, false, false);
|
||||||
//Minz_View::appendStyle($this->getFileUrl('style.css', 'css'));
|
//Minz_View::appendStyle($this->getFileUrl('style.css', 'css'));
|
||||||
|
@ -14,7 +15,6 @@ class KagiSummarizerExtension extends Minz_Extension {
|
||||||
|
|
||||||
public function handleConfigureAction() {
|
public function handleConfigureAction() {
|
||||||
$this->registerTranslates();
|
$this->registerTranslates();
|
||||||
$this->registerHook('entry_before_display', [$this, 'addSummarizeButton']);
|
|
||||||
|
|
||||||
if (Minz_Request::isPost()) {
|
if (Minz_Request::isPost()) {
|
||||||
$kagi_token = Minz_Request::param('kagi_token', '');
|
$kagi_token = Minz_Request::param('kagi_token', '');
|
||||||
|
|
Loading…
Reference in New Issue