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

/**
 * Adds individual html code before the </body>
 *
 * @author	Torben Brodt
 * @package	de.easy-coding.wbb.footcript
 * @license	GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
 */
class AbstractPageFootScriptListener implements EventListener {

	/**
	 * @see EventListener::execute()
	 */
	public function execute($eventObj, $className, $eventName) {
		if(defined('FOOTSCRIPT')) {
			$var = FOOTSCRIPT;
			if(!empty($var)) {
				WBBCore::getTPL()->append('specialFooters', FOOTSCRIPT);
			}
		}
	}
}
?>
