| Current Path : /proc/1908984/root/proc/self/root/proc/self/root/proc/2404962/root/tmp/ |
| Current File : //proc/1908984/root/proc/self/root/proc/self/root/proc/2404962/root/tmp/phpzpdbOV |
<?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_pricing_list_config extends Su_Data {
function __construct() {
parent::__construct();
}
static function get_config() {
return array(
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_PRICING_LIST'),
'type' => 'wrap',
'group' => 'content',
'icon' => 'th-list',
'badge' => 'BETA',
'atts' => array(
'style' => array(
'type' => 'select',
'default' => 'default',
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_STYLE'),
'desc' => sprintf( '%s.', JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_STYLE_DESC') ),
'values' => array(
'default' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_DEFAULT'),
'striped' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_STRIPED')
),
'child' => array(
'space' => array(
'default' => '10',
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SPACE'),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_SPACE_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' => sprintf ('%s',"[%prefix_pricing_list_item title=\"Pricing Item Title 1\"]Content 1[/%prefix_pricing_list_item]\n[%prefix_pricing_list_item title=\"Pricing Item Title 2\"]Content 2[/%prefix_pricing_list_item]\n[%prefix_pricing_list_item title=\"Pricing Item Title 3\"]Content 3[/%prefix_pricing_list_item]"),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_PRICING_LIST_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_pricing_list extends Su_Shortcodes {
static $pricing_list = array();
static $super_tab_count = -1;
function __construct() {
parent::__construct();
}
public static function pricing_list($atts = null, $content = null) {
$atts = su_shortcode_atts(array(
'id' => uniqid('suibm_'),
'style' => 'default', // default, striped
'space' => '10',
'scroll_reveal' => '',
'class' => ''
), $atts, 'pricing_list');
$output = array();
$pricing_list = array();
$id = $atts['id'];
$css = [];
$css[] = '#'.$id.' .pricing-list li:nth-child(n+2) { margin-top: '.$atts['space'].'px;}';
$css[] = '#'.$id.'.style-default .pricing-list li:nth-child(n+2) { padding-top: '.$atts['space'].'px;}';
$space = ($atts['space'] != 'no') ? ' uk-list-large' : '';
$classes = ['su-pricing-list', $atts['class'],'style-'.$atts['style'] ];
$output[] = '
<div id="'.$id.'" '.su_scroll_reveal($atts).' class="'. su_acssc($classes) . '">
<ul class="pricing-list">';
$output[] = has_child_shortcode($content, 's');
$output[] = '</ul></div>';
suAsset::addString('css', implode("\n", $css));
return implode("\n", $output);
}
}