From: Fabio Comuni Date: Wed, 28 Mar 2012 09:44:04 +0000 (+0200) Subject: viewsrc: show message source in a fancybox via ajax X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5adb4ef80328117d8e196a1f5af75844d1a37eef;p=friendica-addons.git viewsrc: show message source in a fancybox via ajax --- diff --git a/viewsrc/viewsrc.php b/viewsrc/viewsrc.php index e39fe8a6..a610b76c 100644 --- a/viewsrc/viewsrc.php +++ b/viewsrc/viewsrc.php @@ -11,13 +11,25 @@ function viewsrc_install() { register_hook('item_photo_menu', 'addon/viewsrc/viewsrc.php', 'viewsrc_item_photo_menu'); + register_hook('page_end', 'addon/viewsrc/viewsrc.php', 'viewsrc_page_end'); } function viewsrc_uninstall() { unregister_hook('item_photo_menu', 'addon/viewsrc/viewsrc.php', 'viewsrc_item_photo_menu'); + unregister_hook('page_end', 'addon/viewsrc/viewsrc.php', 'viewsrc_page_end'); + } +function viewsrc_page_end(&$a, &$o){ + $a->page['htmlhead'] .= <<< EOS + +EOS; +} function viewsrc_item_photo_menu(&$a,&$b) { if(! local_user())