Last change
on this file since 26168 was
10031,
checked in by ddtddt, 13 years ago
|
[extensions] - Piwigodonate - bug link
|
-
Property svn:eol-style set to
LF
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
859 bytes
|
Rev | Line | |
---|
[7750] | 1 | <?php |
---|
| 2 | /* |
---|
[7751] | 3 | Plugin Name: Piwigo Donate |
---|
[7750] | 4 | Version: auto |
---|
[7751] | 5 | Description: You like Piwigo you want to support us financially you can add a link to donate on your site in the footer |
---|
| 6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=463 |
---|
[7750] | 7 | Author: ddtddt |
---|
| 8 | Author URI: http://piwigo.org/ |
---|
| 9 | */ |
---|
| 10 | |
---|
[10027] | 11 | if (!defined('PHPWG_ROOT_PATH')) |
---|
| 12 | { |
---|
| 13 | die('Hacking attempt!'); |
---|
| 14 | } |
---|
[7750] | 15 | |
---|
| 16 | define('PIDO_DIR' , basename(dirname(__FILE__))); |
---|
| 17 | define('PIDO_PATH' , PHPWG_PLUGINS_PATH . PIDO_DIR . '/'); |
---|
| 18 | |
---|
[10027] | 19 | add_event_handler('loc_end_page_tail', 'Piwigodonate'); |
---|
[7750] | 20 | |
---|
| 21 | function Piwigodonate() |
---|
[10027] | 22 | { |
---|
| 23 | if (script_basename() != 'admin') |
---|
| 24 | { |
---|
| 25 | global $template; |
---|
| 26 | load_language('plugin.lang', PIDO_PATH); |
---|
[7750] | 27 | |
---|
[10027] | 28 | $template->assign( |
---|
[7750] | 29 | 'DONATE', PHPWG_URL.'/donate' |
---|
| 30 | ); |
---|
| 31 | |
---|
[10031] | 32 | $template->set_filename('donate', realpath(PIDO_PATH.'donate.tpl')); |
---|
| 33 | $template->append('footer_elements', $template->parse('donate', true)); |
---|
[7750] | 34 | |
---|
[10031] | 35 | |
---|
| 36 | |
---|
| 37 | |
---|
[10027] | 38 | } |
---|
| 39 | } |
---|
| 40 | |
---|
| 41 | |
---|
[7750] | 42 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.