1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hubzilla_ynh.git synced 2024-09-03 19:26:21 +02:00
hubzilla_ynh/sources/addon/buglink/buglink.php
2016-04-17 22:42:29 +05:30

16 lines
740 B
PHP
Executable file

<?php
/**
* Name: BugLink
* Description: Show link to project bug site at bottom of page
* Version: 1.0
* Author: Mike Macgirvin <mike@macgirvin.com>
* Maintainer: Mike Macgirvin <mike@macgirvin.com>
* MinVersion: 1.0
*/
function buglink_load() { register_hook('page_end', 'addon/buglink/buglink.php', 'buglink_active'); }
function buglink_unload() { unregister_hook('page_end', 'addon/buglink/buglink.php', 'buglink_active'); }
function buglink_active(&$a,&$b) { $b .= '<div style="position: fixed; bottom: 5px; left: 5px;" class="hidden-xs"><a href="https://github.com/redmatrix/hubzilla/issues" target="_blank" title="' . t('Report Bug') . '"><img src="addon/buglink/bug-x.gif" alt="' . t('Report Bug') . '" /></a></div>'; }