| 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/phpa0ZuPd |
<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_gmap_config extends Su_Data {
function __construct() {
parent::__construct();
}
static function get_config() {
return array(
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_GMAP'),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_GMAP_DESC'),
'icon' => 'globe',
'type' => 'single',
'group' => 'media',
'atts' => array(
'height' => array(
'type' => 'slider',
'min' => 200,
'max' => 1600,
'step' => 20,
'default' => 400,
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_HEIGHT'),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_MAP_HEIGHT_DESC')
),
'responsive' => array(
'type' => 'bool',
'default' => 'yes',
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_RESPONSIVE'),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_RESPONSIVE_DESC')
),
'address' => array(
'values' => array( ),
'default' => 'BdThemes Ltd, Bogra, Bangladesh',
'name' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_ADDRESS'),
'desc' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_ADDRESS_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_gmap extends Su_Shortcodes {
function __construct() {
parent::__construct();
}
public static function gmap($atts = null, $content = null) {
$atts = su_shortcode_atts(array(
'width' => '100%',
'height' => '400',
'responsive' => 'yes',
'address' => 'BdThemes Ltd, Bogra, Bangladesh',
'scroll_reveal' => '',
'class' => ''
), $atts, 'gmap');
// Prepare protocol
$protocol = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') ? "https://" : "http://";
$responsive = ($atts['responsive'] == 'yes') ? ' su-responsive-frame' : '';
if ($atts['responsive'] == 'yes') {
suAsset::addFile('js', 'fitframe.min.js');
}
return '<div'.su_scroll_reveal($atts).' class="su-gmap' .$responsive. su_ecssc($atts) . '"><iframe class="js-reframe" width="' . $atts['width'] . '" height="' . $atts['height'] . '" src="' . $protocol . 'maps.google.com/maps?q=' . urlencode(su_scattr($atts['address'])) . '&output=embed"></iframe></div>';
}
}