Your IP : 216.73.216.50


Current Path : /proc/1908984/root/proc/1908984/root/home/digilove/www/41423/
Upload File :
Current File : //proc/1908984/root/proc/1908984/root/home/digilove/www/41423/add_code.tar

config.php000064400000003225152434122430006524 0ustar00<?php 

/**
* @package   Shortcode Ultimate
* @author    BdThemes http://www.bdthemes.com
* @copyright Copyright (C) BdThemes Ltd
* @license   http://www.gnu.org/licenses/gpl.html GNU/GPL
*/

defined( '_JEXEC' ) or die( 'Restricted access' );

class Su_Shortcode_add_code_config extends Su_Data {

    function __construct() {
        parent::__construct();
    }
    
    static function get_config() {

        return array(
            'name'  => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_ADD_CODE'),
            'type'  => 'wrap',
            'group' => 'add_code',
            'visible' => false,
            'atts'  => array(
                'type' => array(
                        'type'    => 'select',
                        'values'  => array(
                        'default' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_CSS'),
                        'soft'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_JS')
                    ),
                    'default' => 'default',
                    'name'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_TYPE'),
                    'desc'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_TYPE_DESC')
                ),             
                'url' => array(
                    'default' => '',
                    'name'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_URL'),
                    'desc'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_URL_DESC')
                )
            ),
            'content' => 'Box content',
            'desc'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_ADD_CODE_DESC'),
            'icon'    => 'list-alt'
        );
    }

}
index.html000064400000000032152434122500006532 0ustar00<html><body></body></html>shortcode.php000064400000002227152434122550007255 0ustar00<?php 

/**
* @package   Shortcode Ultimate
* @author    BdThemes http://www.bdthemes.com
* @copyright Copyright (C) BdThemes Ltd
* @license   http://www.gnu.org/licenses/gpl.html GNU/GPL
*/

defined( '_JEXEC' ) or die( 'Restricted access' );

class Su_Shortcode_add_code extends Su_Shortcodes {

    function __construct() {
        parent::__construct();
    }
    
    public static function add_code($atts = null, $content = null) {
        $atts = su_shortcode_atts(array(
            'type'       => 'css',
            'url' => ''
        ), $atts, 'add_code');

        if (@$_REQUEST["action"] == 'su_generator_preview') {
            return JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_ADD_CODE_ERROR');
        }  

        if ($content != NULL && $content != '') {
            suAsset::addString($atts['type'], $content);
        }

        if ($atts['url'] != '' && $atts['type'] == 'css') {
            JFactory::getDocument()->addStyleSheet($atts['url']);
        } elseif ($atts['url'] != '' && $atts['type'] == 'js') {
            JFactory::getDocument()->addScript($atts['url']);
        } 
        return false;
    }

}