added link

This commit is contained in:
Rudis Muiznieks 2023-09-25 13:13:07 -05:00
parent b8fdfadf29
commit 2fc73eefd0
Signed by: rudism
GPG Key ID: CABF2F86EF7884F9
1 changed files with 1 additions and 6 deletions

View File

@ -4,13 +4,8 @@ class KagiSummarizerExtension extends Minz_Extension {
public function init() { public function init() {
$this->registerTranslates(); $this->registerTranslates();
$this->registerHook('entry_before_display', [$this, 'addSummarizeButton']); $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'));
//Minz_View::appendScript(_url('kagiSummarizer', 'jsVars', false, true, false);
//$this->registerController('kagiSummarizer');
//$this->registerViews();
} }
public function handleConfigureAction() { public function handleConfigureAction() {
@ -28,7 +23,7 @@ class KagiSummarizerExtension extends Minz_Extension {
} }
public function addSummarizeButton(FreshRSS_Entry $entry): FreshRSS_Entry { public function addSummarizeButton(FreshRSS_Entry $entry): FreshRSS_Entry {
$entry->_content('<h1>Hello World</h1>' . $entry->content()); $entry->_content('<div id="kagi-summarize"><a href="#">Summarize</a></div>' . $entry->content());
return $entry; return $entry;
} }
} }