Last change
on this file since 22076 was
10031,
checked in by ddtddt, 14 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
|
Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: Piwigo Donate |
---|
4 | Version: auto |
---|
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 |
---|
7 | Author: ddtddt |
---|
8 | Author URI: http://piwigo.org/ |
---|
9 | */ |
---|
10 | |
---|
11 | if (!defined('PHPWG_ROOT_PATH')) |
---|
12 | { |
---|
13 | die('Hacking attempt!'); |
---|
14 | } |
---|
15 | |
---|
16 | define('PIDO_DIR' , basename(dirname(__FILE__))); |
---|
17 | define('PIDO_PATH' , PHPWG_PLUGINS_PATH . PIDO_DIR . '/'); |
---|
18 | |
---|
19 | add_event_handler('loc_end_page_tail', 'Piwigodonate'); |
---|
20 | |
---|
21 | function Piwigodonate() |
---|
22 | { |
---|
23 | if (script_basename() != 'admin') |
---|
24 | { |
---|
25 | global $template; |
---|
26 | load_language('plugin.lang', PIDO_PATH); |
---|
27 | |
---|
28 | $template->assign( |
---|
29 | 'DONATE', PHPWG_URL.'/donate' |
---|
30 | ); |
---|
31 | |
---|
32 | $template->set_filename('donate', realpath(PIDO_PATH.'donate.tpl')); |
---|
33 | $template->append('footer_elements', $template->parse('donate', true)); |
---|
34 | |
---|
35 | |
---|
36 | |
---|
37 | |
---|
38 | } |
---|
39 | } |
---|
40 | |
---|
41 | |
---|
42 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.