????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 18.217.65.73 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/www.astacus.eu/wp-content/plugins/fusion-builder/shortcodes/ |
Upload File : |
<?php /** * Shortcode class. * * @package fusion-builder * @since 1.0 */ class FusionSC_FusionLightbox { /** * An array of the shortcode arguments. * * @static * @access public * @since 1.0 * @var array */ public static $args; /** * Constructor. * * @access public * @since 1.0 */ public function __construct() { add_shortcode( 'fusion_lightbox', array( $this, 'render' ) ); } /** * Render the shortcode * * @access public * @since 1.0 * @param array $args Shortcode parameters. * @param string $content Content between shortcode. * @return string HTML output. */ public function render( $args, $content = '' ) { return $content; } } new FusionSC_FusionLightbox(); /** * Map shortcode to Fusion Builder * * @since 1.0 */ function fusion_element_lightbox() { fusion_builder_map( array( 'name' => esc_attr__( 'Lightbox', 'fusion-builder' ), 'shortcode' => 'fusion_lightbox', 'generator_only' => true, 'icon' => 'fusiona-image', 'on_save' => 'lightboxShortcodeFilter', 'admin_enqueue_js' => FUSION_BUILDER_PLUGIN_URL . 'shortcodes/js/fusion-lightbox.js', 'params' => array( array( 'type' => 'upload', 'heading' => esc_attr__( 'Full Image', 'fusion-builder' ), 'description' => esc_attr__( 'Upload an image that will show up in the lightbox.', 'fusion-builder' ), 'param_name' => 'full_image', 'value' => '', 'remove_from_atts' => true, ), array( 'type' => 'upload', 'heading' => esc_attr__( 'Thumbnail Image', 'fusion-builder' ), 'description' => esc_attr__( 'Clicking this image will show lightbox.', 'fusion-builder' ), 'param_name' => 'thumbnail_image', 'value' => '', 'remove_from_atts' => true, ), array( 'type' => 'textfield', 'heading' => esc_attr__( 'Alt Text', 'fusion-builder' ), 'param_name' => 'alt_text', 'value' => '', 'remove_from_atts' => true, 'description' => esc_attr__( 'The alt attribute provides alternative information if an image cannot be viewed.', 'fusion-builder' ), ), array( 'type' => 'textfield', 'heading' => esc_attr__( 'Lightbox Description', 'fusion-builder' ), 'param_name' => 'description', 'value' => '', 'remove_from_atts' => true, 'description' => esc_attr__( 'This will show up in the lightbox as a description below the image.', 'fusion-builder' ), ), array( 'type' => 'textfield', 'heading' => esc_attr__( 'CSS Class', 'fusion-builder' ), 'param_name' => 'class', 'value' => '', 'remove_from_atts' => true, 'description' => esc_attr__( 'Add a class to the wrapping HTML element.', 'fusion-builder' ), ), array( 'type' => 'textfield', 'heading' => esc_attr__( 'CSS ID', 'fusion-builder' ), 'param_name' => 'id', 'value' => '', 'remove_from_atts' => true, 'description' => esc_attr__( 'Add an ID to the wrapping HTML element.', 'fusion-builder' ), ), ), ) ); } add_action( 'fusion_builder_before_init', 'fusion_element_lightbox' );