root/donation/optionals/de.easy-coding.wcf.donation.googlecheckout/files/lib/system/event/listener/DonationFormGoogleCheckoutListener.class.php @ 78

Revision 78, 0.6 kB (checked in by d0nut, 6 years ago)

license updates to version 3 of GPL and LGPL

Line 
1<?php
2// WCF includes
3require_once(WCF_DIR.'lib/system/event/EventListener.class.php');
4
5/**
6 * Adds google checkout for donation
7 *
8 * @author      Torben Brodt
9 * @package     de.easy-coding.wcf.donation.googlecheckout
10 * @license     GNU Lesser General Public License <http://opensource.org/licenses/lgpl-3.0.html>
11 */
12class DonationFormGoogleCheckoutListener implements EventListener {
13
14        /**
15         * @see EventListener::execute()
16         */
17        public function execute($eventObj, $className, $eventName) {
18                $var = DONATION_GOOGLECHECKOUT_HTML;
19                if(!empty($var)) {
20                        WCF::getTPL()->append('additionalDonationSystems', WCF::getTPL()->fetch('donationGoogleCheckout'));
21                }
22        }
23}
24?>
Note: See TracBrowser for help on using the browser.