Merge pull request #814 from nupplaphil/6691-rendertime-fix
[friendica-addons.git/.git] / buglink / buglink.php
1 <?php
2 /**
3  * Name: BugLink
4  * Description: Show link to Friendica bug site at bottom of page
5  * Version: 1.0
6  * Author: Mike Macgirvin <mike@macgirvin.com>
7  */
8
9 use Friendica\App;
10 use Friendica\Core\Hook;
11 use Friendica\Core\L10n;
12
13 function buglink_install()
14 {
15         Hook::register('page_end', 'addon/buglink/buglink.php', 'buglink_active');
16 }
17
18 function buglink_uninstall()
19 {
20         Hook::unregister('page_end', 'addon/buglink/buglink.php', 'buglink_active');
21 }
22
23 function buglink_active(App $a, &$b)
24 {
25         $b .= '<div id="buglink_wrapper" style="position: fixed; bottom: 5px; left: 5px;"><a href="https://github.com/friendica/friendica/issues" target="_blank" title="' . L10n::t('Report Bug') . '"><img src="addon/buglink/bug-x.gif" alt="' . L10n::t('Report Bug') . '" /></a></div>';
26 }