mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-16 11:39:16 +00:00
render headline-specific toolbar on the client
This commit is contained in:
@@ -12,6 +12,11 @@ class MailTo extends Plugin {
|
||||
$this->host = $host;
|
||||
|
||||
$host->add_hook($host::HOOK_ARTICLE_BUTTON, $this);
|
||||
$host->add_hook($host::HOOK_HEADLINE_TOOLBAR_SELECT_MENU_ITEM, $this);
|
||||
}
|
||||
|
||||
function hook_headline_toolbar_select_menu_item($feed_id, $is_cat) {
|
||||
return "<div dojoType='dijit.MenuItem' onclick='Plugins.Mailto.send()'>".__('Forward by email')."</div>";
|
||||
}
|
||||
|
||||
function get_js() {
|
||||
|
||||
Reference in New Issue
Block a user