]> git.mxchange.org Git - friendica-addons.git/blob - buglink/buglink.php
0ca43924bda0f20e0af114779eb0cf5fe4be9215
[friendica-addons.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 use Friendica\Core\Addon;
9
10 function buglink_install()
11 {
12         Addon::registerHook('page_end', 'addon/buglink/buglink.php', 'buglink_active');
13 }
14
15 function buglink_uninstall()
16 {
17         Addon::unregisterHook('page_end', 'addon/buglink/buglink.php', 'buglink_active');
18 }
19
20 function buglink_active(&$a, &$b)
21 {
22         $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>';
23 }