Your IP : 216.73.216.50


Current Path : /proc/1908984/root/proc/thread-self/root/proc/self/root/proc/1908984/root/tmp/
Upload File :
Current File : //proc/1908984/root/proc/thread-self/root/proc/self/root/proc/1908984/root/tmp/phpegs1SO

<html><body></body></html><?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_row_config extends Su_Data {

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

        return array(
            'name'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_ROW'),
            'desc'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_ROW_DESC'),
            'icon'    => 'columns',
            'type'    => 'wrap',
            'group'   => 'box',
            'content' => sprintf('%s',"\n\n\t[%prefix_column size=\"1/3\"]Content[/%prefix_column]\n\t[%prefix_column size=\"1/3\"]Content[/%prefix_column]\n\t[%prefix_column size=\"1/3\"]Content[/%prefix_column]\n"),
            'atts'    => array(
                'gutter' => array(
                    'type' => 'select',
                    'values' => array(
                        'default' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_DEFAULT'),
                        'large'   => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_LARGE'),
                        'small'   => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SMALL'),
                        'no'      => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_NO')
                    ),
                    'default' => 'default',
                    'name'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_GUTTER'),
                    'desc'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_GUTTER_DESC')
                ),
                'divider' => array(
                    'type'    => 'bool',
                    'default' => 'no',
                    'name'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_DIVIDER'),
                    'desc'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_DIVIDER_DESC'),
                    'child' => array(
                        'equal_height' => array(
                            'type'    => 'bool',
                            'default' => 'no',
                            'name'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_EQUAL_HEIGHT'),
                            'desc'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_EQUAL_HEIGHT_DESC')
                        ),
                        'column_margin_small' => array(
                            'type'    => 'bool',
                            'default' => 'yes',
                            'name'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_COLUMN_MARGIN_SMALL'),
                            'desc'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_COLUMN_MARGIN_SMALL_DESC')
                        )
                    )
                ),
                'scroll_reveal' => array(
                    'default' => '',
                    'name'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SCROLL_REVEAL'),
                    'desc'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SCROLL_REVEAL_DESC')
                ),
                'class' => array(
                    'default' => '',
                    'name'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_CLASS'),
                    'desc'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_CLASS_DESC')
                )
            )
        );
    }

}
<html><body></body></html><?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_row extends Su_Shortcodes {

    function __construct() {
        parent::__construct();
    }   
    public static function row($atts = null, $content = null) {
        $atts = su_shortcode_atts(array(
            'gutter'              => '',
            'divider'             => 'no',
            'divider_color'       => '',
            'column_margin_small' => 'yes',
            'margin_top'          => 'no',
            'equal_height'        => 'no',
            'scroll_reveal'       => '',
            'class'               => ''
        ), $atts);

        $id                  = uniqid('surow');
        $divider             = ($atts['divider'] === 'yes') ? 'has-divider' : '' ;
        $margin_top          = ($atts['margin_top'] === 'yes') ? 'margin-top-yes' : '' ;
        $column_margin_small = ($atts['column_margin_small'] === 'yes') ? 'su-clmms-yes' : '' ;
        $gutter              = ($atts['gutter']) ? 'su-gutter-'.$atts['gutter'] : '' ;
        $classes             = array('su-row', $margin_top, $column_margin_small, $divider, $gutter, su_ecssc($atts));

        // Equal height matching script for better equal height ouput
        if ($atts['equal_height'] === 'yes') {
            $classes[] = 'su-match-height';
            suAsset::addFile('js', 'jquery.matchHeight.min.js');

            $js = 'jQuery(document).ready(function($) {
                        \'use strict\';
                        jQuery("#'.$id.' .su-column > .su-column-inner").matchHeight();
                    });';
            suAsset::addString('js', $js);
        }
        
        return '<div id="'.$id.'"'.su_scroll_reveal($atts).' class="'.su_acssc($classes).'">' . su_do_shortcode($content) . '</div>';
    }
}