<?php
// WCF includes
require_once(WCF_DIR.'lib/system/event/EventListener.class.php');

/**
 * Adds code for donation
 *
 * @author	Torben Brodt
 * @package	de.easy-coding.wcf.donation.code
 * @license	GNU General Public License <http://opensource.org/licenses/gpl-3.0.html>
 */
class DonationFormCodeListener implements EventListener {

	/**
	 * @see EventListener::execute()
	 */
	public function execute($eventObj, $className, $eventName) {
		$var = DONATION_GOOGLECHECKOUT_HTML;
		if(!empty($var)) {
			WCF::getTPL()->append('additionalDonationSystems', WCF::getTPL()->fetch('donationCode'));
		}
	}
}
?>
