added link
This commit is contained in:
parent
b8fdfadf29
commit
2fc73eefd0
|
@ -4,13 +4,8 @@ class KagiSummarizerExtension extends Minz_Extension {
|
|||
public function init() {
|
||||
$this->registerTranslates();
|
||||
$this->registerHook('entry_before_display', [$this, 'addSummarizeButton']);
|
||||
|
||||
//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);
|
||||
|
||||
//$this->registerController('kagiSummarizer');
|
||||
//$this->registerViews();
|
||||
}
|
||||
|
||||
public function handleConfigureAction() {
|
||||
|
@ -28,7 +23,7 @@ class KagiSummarizerExtension extends Minz_Extension {
|
|||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue