Your IP : 216.73.216.134


Current Path : /home/bijouxly/www/libraries/nextend/form/element/
Upload File :
Current File : /home/bijouxly/www/libraries/nextend/form/element/fontmatrixchooser.php

<?php
/*
# author Roland Soos
# copyright Copyright (C) Nextendweb.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-3.0.txt GNU/GPL
*/
defined('_JEXEC') or die('Restricted access'); ?><?php
nextendimport('nextend.form.element.list');

class NextendElementFontMatrixChooser extends NextendElementList {
    
    function fetchElement() {
        
        if(isset($_REQUEST['get'])){
            $get = json_decode((get_magic_quotes_gpc() || nextendIsWordPress() ? stripslashes($_REQUEST['get']) : $_REQUEST['get']), true);
            if(isset($get['sliderid'])){
                nextendimportsmartslider2('nextend.smartslider.settings');
                NextendSmartSliderFontSettings::initAdminFonts(intval($get['sliderid']));
            }
        }
        
        $this->_xml->addChild('option', 'None')->addAttribute('value', '');
        
        if(isset($GLOBALS['nextendfontmatrix']) && count($GLOBALS['nextendfontmatrix'])){
            foreach($GLOBALS['nextendfontmatrix'] as $k => $v) {
                $this->_xml->addChild('option', $v)->addAttribute('value', $k);
            }
        }
        return parent::fetchElement();
    }
}