root/donation/optionals/de.easy-coding.wcf.donation.wishlist/files/lib/system/event/listener/DonationFormCodeListener.class.php @ 91

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

two new plugins for codeentries and wishlist

Line 
1<?php
2// WCF includes
3require_once(WCF_DIR.'lib/system/event/EventListener.class.php');
4
5/**
6 * Adds wishlist for donation
7 *
8 * @author      Torben Brodt
9 * @package     de.easy-coding.wcf.donation.wishlist
10 * @license     GNU General Public License <http://opensource.org/licenses/gpl-3.0.html>
11 */
12class DonationFormWishlistListener 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('donationWishlist'));
21                }
22        }
23}
24?>
Note: See TracBrowser for help on using the browser.