| Current Path : /proc/1908984/root/proc/1908984/root/tmp/ |
| Current File : //proc/1908984/root/proc/1908984/root/tmp/phpw9rbT8 |
<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_column_inner_config extends Su_Data {
function __construct() {
parent::__construct();
}
static function get_config() {
return array(
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_COLUMN'),
'type' => 'wrap',
'group' => 'box',
'visible' => false,
'atts' => array(
'size' => array(
'type' => 'select',
'values' => array(
'1/1' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_FULL_WIDTH'),
'1/2' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_ONE_HALF'),
'1/3' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_ONE_THIRD'),
'2/3' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_TWO_THIRD'),
'1/4' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_ONE_FOURTH'),
'3/4' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_THREE_FOURTH'),
'1/5' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_ONE_FIFTH'),
'2/5' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_TWO_FIFTH'),
'3/5' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_THREE_FIFTH'),
'4/5' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_FOUR_FIFTH'),
'1/6' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_ONE_SIXTH'),
'5/6' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_FIVE_SIXTH')
),
'default' => '1/1',
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SIZE'),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SIZE_DESC')
),
'center' => array(
'type' => 'bool',
'default' => 'no',
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_CENTER'),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_CENTER_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')
)
),
'content' => 'Column content',
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_COLUMN_DESC'),
'icon' => 'columns'
);
}
}
<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_column_inner extends Su_Shortcodes {
function __construct() {
parent::__construct();
}
public static function column_inner($atts = null, $content = null) {
$atts = su_shortcode_atts(array(
'size' => '1/1',
'medium' => '',
'small' => '',
'visible' => '', // large, medium, small
'hidden' => '', // large, medium, small
'center' => 'no',
'last' => '',
'background' => '',
'color' => '',
'padding' => '',
'vertical_align' => 'top',
'scroll_reveal' => '',
'class' => ''
), $atts, 'column');
$id = uniqid('sucol');
$css = array();
$classes = array('su-column', su_ecssc($atts));
$vertical_align = '';
if ($atts['small']) {
$classes[] = 'su-column-size-small-' . str_replace('/', '-', $atts['small']);
} else {
$classes[] = 'su-column-size-1-1';
}
if ($atts['medium']) {
$classes[] = 'su-column-size-medium-' . str_replace('/', '-', $atts['medium']);
}
if ($atts['size'] and $atts['medium']) {
$classes[] = 'su-column-size-large-' . str_replace('/', '-', $atts['size']);
} else {
$classes[] = 'su-column-size-medium-' . str_replace('/', '-', $atts['size']);
}
if ($atts['visible']) {
$classes[] = 'su-visible-' . $atts['visible'];
}
if ($atts['hidden']) {
$classes[] = 'su-hidden-' . $atts['hidden'];
}
if ($atts['vertical_align'] === 'middle') {
$classes[] = 'su-vertical-align-middle';
} elseif ($atts['vertical_align'] === 'bottom') {
$classes[] = 'su-vertical-align-bottom';
}
if ($atts['last'] == 'yes' or $atts['last'] == '1')
$classes[] = 'su-column-last';
if ($atts['center'] === 'yes')
$classes[] = 'su-column-centered';
if ($atts['background']) {
$atts['background'] = 'background-color: '.$atts['background'].';';
}
if ($atts['color']) {
$atts['color'] = 'color: '.$atts['color'].';';
}
if ($atts['padding']) {
$atts['padding'] = 'padding: '.$atts['padding'].'px;';
}
if (($atts['background']) or ($atts['color'])) {
$css[] = '#'.$id.'.su-column > .su-column-inner {'.$atts['background'].$atts['color'].$atts['padding'].'}';
}
suAsset::addFile('css', 'row-column.css');
suAsset::addString('css', implode("\n", $css));
return '<div id="'.$id.'"'.su_scroll_reveal($atts).' class="' . su_acssc($classes) . '"><div class="su-column-inner"><div class="su-column-content">' . su_do_shortcode($content) . '</div></div></div>';
}
}