root/footscript/files/lib/system/event/listener/AbstractPageFootScriptListener.class.php @ 19

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

footscript is wbb spefific, because wcf has other template files for the footer

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