| 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/php9aQw3I |
<?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_dummy_text_config extends Su_Data {
function __construct() {
parent::__construct();
}
static function get_config() {
return array(
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_DUMMY_TEXT'),
'type' => 'single',
'group' => 'content',
'atts' => array(
'what' => array(
'type' => 'select',
'values' => array(
'paras' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_PARAS'),
'words' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_WORDS'),
'bytes' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_BYTES'),
),
'default' => 'paras',
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_WHAT'),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_WHAT_DESC'),
'child' => array(
'cache' => array(
'type' => 'bool',
'default' => 'yes',
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_CACHE'),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_CACHE_DESC')
)
)
),
'amount' => array(
'type' => 'slider',
'min' => 1,
'max' => 100,
'step' => 1,
'default' => 1,
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_AMOUNT'),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_AMOUNT_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')
)
),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_DUMMY_TEXT_DESC'),
'icon' => 'text-height'
);
}
}
<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_dummy_text extends Su_Shortcodes {
function __construct() {
parent::__construct();
}
public static function dummy_text($atts = null, $content = null) {
$atts = su_shortcode_atts(array(
'amount' => 1,
'what' => 'paras',
'cache' => 'yes',
'scroll_reveal' => '',
'class' => ''
), $atts, 'dummy_text');
$xml = simplexml_load_file('http://www.lipsum.com/feed/xml?amount=' . $atts['amount'] . '&what=' . $atts['what'] . '&start=0');
$return = '<div'.su_scroll_reveal($atts).' class="su-dummy-text' . su_ecssc($atts) . '"><p>' . str_replace("\n", "</p><p>", $xml->lipsum) . '</p></div>';
return $return;
}
}