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

Last change on this file since 10027 was 10027, checked in by ddtddt, 13 years ago

[extensions] - Piwigodonate

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 856 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  $template->set_filename('donate', realpath(PIDO_PATH.'donate.tpl'));
28  $template->append('footer_elements', $template->parse('donate', true));
29
30        $template->assign(
31    'DONATE', PHPWG_URL.'/donate'
32    );
33
34
35        }
36}
37
38
39?>
Note: See TracBrowser for help on using the repository browser.