| Current Path : /proc/1908984/root/tmp/ |
| Current File : //proc/1908984/root/tmp/phpBhsQiL |
<html><body></body></html>.su-spacer {display: block;height: 20px;clear: both;overflow: hidden;}
@media only screen and (min-width: 768px) and (max-width: 960px) {.su-spacer{height: 15px;}}
@media (max-width: 767px) {.su-spacer{height: 10px;}}<?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_spacer_config extends Su_Data {
function __construct() {
parent::__construct();
}
static function get_config() {
return array(
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SPACER'),
'type' => 'single',
'group' => 'content other',
'atts' => array(
'size' => array(
'type' => 'slider',
'min' => 0,
'max' => 600,
'step' => 10,
'default' => 20,
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SPACER_SIZE'),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SPACER_SIZE_DESC'),
'child' => array(
'medium' => array(
'type' => 'slider',
'min' => 0,
'max' => 400,
'step' => 5,
'default' => 15,
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SPACER_MEDIUM'),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SPACER_MEDIUM_DESC')
),
'small' => array(
'type' => 'slider',
'min' => 0,
'max' => 300,
'step' => 5,
'default' => 10,
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SPACER_SMALL'),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SPACER_SMALL_DESC')
)
)
),
'class' => array(
'default' => '',
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_CLASS'),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_CLASS_DESC')
)
),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SPACER_DESC'),
'icon' => 'arrows-v'
);
}
}
<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_spacer extends Su_Shortcodes {
function __construct() {
parent::__construct();
}
public static function spacer($atts = null, $content = null) {
$atts = su_shortcode_atts(array(
'size' => '',
'medium' => '',
'small' => '',
'class' => ''
), $atts, 'spacer');
$class = uniqid('sus');
$classes = array('su-spacer', $class, su_ecssc($atts));
$css = array();
if ($atts['size'] != '') {
$atts['size'] = (is_numeric($atts['size'])) ? $atts['size'] .'px' : $atts['size'];
$css[] = '.'.$class.'.su-spacer{height:'.$atts['size'].';}';
}
if ($atts['medium'] != '') {
$atts['medium'] = (is_numeric($atts['medium'])) ? $atts['medium'] .'px' : $atts['medium'];
$css[] = '@media only screen and (min-width: 768px) and (max-width: 960px) {.'.$class.'.su-spacer {height:'.$atts['medium'].';}}';
}
if ($atts['small'] != '') {
$atts['small'] = (is_numeric($atts['small'])) ? $atts['small'] .'px' : $atts['small'];
$css[] = '@media (max-width: 767px) {.'.$class.'.su-spacer {height:'.$atts['small'].';}}';
}
suAsset::addString('css', implode("\n", $css));
suAsset::addFile('css', 'spacer.css', __FUNCTION__);
return '<div class="'.su_acssc($classes).'"></div>';
}
}