summaryrefslogtreecommitdiff
path: root/plugins/mailto
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-14 22:17:13 +0300
committerAndrew Dolgov <[email protected]>2021-02-14 22:17:13 +0300
commita2e688fcb2d463a5db700ebd013c783e3a8f4971 (patch)
tree5ebd94a52899b00e75e4a5ab2fb61a26450123fa /plugins/mailto
parent37a81ba594c2b848b8ecec805527ee8766f1ed14 (diff)
render headline-specific toolbar on the client
Diffstat (limited to 'plugins/mailto')
-rw-r--r--plugins/mailto/init.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/mailto/init.php b/plugins/mailto/init.php
index 390984b71..3e24dcf29 100644
--- a/plugins/mailto/init.php
+++ b/plugins/mailto/init.php
@@ -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() {