Your IP : 216.73.217.95


Current Path : /proc/1908984/root/var/tmp/
Upload File :
Current File : //proc/1908984/root/var/tmp/phpxxz4el

<html><body></body></html>jQuery(document).ready(function($) {

    $('.su-lightbox').each(function() {
        $(this).on('click', function(e) {
            var type = $(this).data('mfp-type');
            e.preventDefault();
            e.stopPropagation();
            
            
            if (type === 'image') {
                $(this).magnificPopup({
                    type: type,
                    mainClass: 'mfp-zoom-in mfp-img-mobile',
                    removalDelay: 500, //delay removal by X to allow out-animation
                    callbacks: {
                        imageLoadComplete: function() {
                            var self = this;
                            setTimeout(function() { self.wrap.addClass('mfp-image-loaded'); }, 16);
                        }
                    }
                }).magnificPopup('open');
            }
            else {
                $(this).magnificPopup({
                    type: type,
                    mainClass: 'mfp-img-mobile',
                    removalDelay: 0
                }).magnificPopup('open');
            }
        });
    });
});<?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_lightbox_config extends Su_Data {

    function __construct() {
        parent::__construct();
    }
    static function get_config() {
        return array(
            'name'  => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_LIGHTBOX'),
            'type'  => 'wrap',
            'group' => 'gallery',
            'atts'  => array(
                'src' => array(
                    'default' => '',
                    'name'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_LIGHTBOX_SOURCE'),
                    'desc'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_LIGHTBOX_SOURCE_DESC')
                ),
                'type' => array(
                    'type'   => 'select',
                    'values' => array(
                        'iframe' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_IFRAME'),
                        'image'  => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_IMAGE'),
                        'inline' => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_INLINE')
                    ),
                    'default' => 'iframe',
                    'name'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_LIGHTBOX_TYPE'),
                    'desc'    => JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_LIGHTBOX_TYPE_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_LIGHTBOX_DESC'),
            'content' => '[%prefix_button] Click Here to Watch the Video [/%prefix_button]',
            'icon'    => 'external-link'
        );
    }

}
<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_lightbox extends Su_Shortcodes {

    function __construct() {
        parent::__construct();
    }
    public static function lightbox($atts = null, $content = null) {
        $atts = su_shortcode_atts(array(
            'src'           => false,
            'type'          => 'iframe',
            'class'         => ''
        ), $atts, 'lightbox');

        if (!$atts['src']) {
            return su_alert_box(JText::_('PLG_SYSTEM_BDTHEMES_SHORTCODES_LIGHTBOX_CORRECT_SOURCE'), 'warning');
        }

        $inline = ($atts['type'] == 'inline') ? 'su-lightbox-inline' : '';

        $classes = array('su-lightbox', $inline, su_ecssc($atts));

        suAsset::addFile('css', 'magnific-popup.css');
        suAsset::addFile('js', 'magnific-popup.js');
        suAsset::addFile('js', 'lightbox.js', __FUNCTION__);

        $lightbox_src = ($atts['type'] != 'inline') ? image_media(su_scattr($atts['src'])) : su_scattr($atts['src']);

        return '<div class="' .su_acssc($classes). '" data-mfp-src="' . $lightbox_src . '" data-mfp-type="' . $atts['type'] . '">' . su_do_shortcode($content) . '</div>';
    }
}