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

Last change on this file since 12523 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
RevLine 
[7750]1<?php
2/*
[7751]3Plugin Name: Piwigo Donate
[7750]4Version: auto
[7751]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
[7750]7Author: ddtddt
8Author URI: http://piwigo.org/
9*/
10
[10027]11if (!defined('PHPWG_ROOT_PATH'))
12{
13  die('Hacking attempt!');
14}
[7750]15
16define('PIDO_DIR' , basename(dirname(__FILE__)));
17define('PIDO_PATH' , PHPWG_PLUGINS_PATH . PIDO_DIR . '/');
18
[10027]19add_event_handler('loc_end_page_tail', 'Piwigodonate');
[7750]20
21function Piwigodonate()
[10027]22{
23  if (script_basename() != 'admin')
24  {
25global $template;
26load_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.