Your IP : 216.73.216.68


Current Path : /home/sunflowe/www2/j30/components/com_jce/editor/extensions/popups/
Upload File :
Current File : /home/sunflowe/www2/j30/components/com_jce/editor/extensions/popups/widgetkit2.php

<?php

/**
 * @package   	JCE
 * @copyright 	Copyright (c) 2009-2015 Ryan Demmer. All rights reserved.
 * @license   	GNU/GPL 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 * JCE is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 */
defined('_WF_EXT') or die('RESTRICTED');

class WFPopupsExtension_Widgetkit2 {

    /**
     * Constructor activating the default information of the class
     *
     * @access	protected
     */
    public function __construct() {
        if (self::isEnabled()) {
            $scripts = array();

            $document = WFDocument::getInstance();

            $document->addScript('widgetkit', 'extensions/popups/widgetkit2/js');
            $document->addStyleSheet('widgetkit', 'extensions/popups/widgetkit2/css');
        }
    }

    public function getParams() {
        $wf = WFEditorPlugin::getInstance();

        return array(
            'lightbox_group'            => $wf->getParam('popups.widgetkit.lightbox_group', ''),
            'lightbox_keyboard'         => $wf->getParam('popups.widgetkit.lightbox_keyboard', ''),
            'lightbox_duration'         => $wf->getParam('popups.widgetkit.lightbox_duration', '')
        );
    }

    public function isEnabled() {
        $wf = WFEditorPlugin::getInstance();

        if (JPluginHelper::isEnabled('content', 'widgetkit') && $wf->getParam('popups.widgetkit2.enable', 1) == 1) {
            return true;
        }

        return false;
    }
}

?>