source: extensions/Piwigodonate/main.inc.php @ 11298

Last change on this file since 11298 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
Line 
1<?php
2/*
3Plugin Name: Piwigo Donate
4Version: auto
5Description: You like Piwigo you want to support us financially you can add a link to donate on your site in the footer
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=463
7Author: ddtddt
8Author URI: http://piwigo.org/
9*/
10
11if (!defined('PHPWG_ROOT_PATH'))
12{
13  die('Hacking attempt!');
14}
15
16define('PIDO_DIR' , basename(dirname(__FILE__)));
17define('PIDO_PATH' , PHPWG_PLUGINS_PATH . PIDO_DIR . '/');
18
19add_event_handler('loc_end_page_tail', 'Piwigodonate');
20
21function Piwigodonate()
22{
23  if (script_basename() != 'admin')
24  {
25global $template;
26load_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.