HEX
Server: Apache
System: Linux mx52.hostgator.mx 5.14.0-687.12.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Jun 7 14:39:27 EDT 2026 x86_64
User: narrativ (1644)
PHP: 8.2.33
Disabled: NONE
Upload Files
File: /home4/narrativ/wp.narrativa.mx/wp-content/themes/jnews/class/Customizer/sections/image_popup.php
<?php

$options = array();

$options[] = array(
    'id'            => 'jnews_single_popup_script',
    'transport'     => 'postMessage',
    'default'       => 'magnific',
    'type'          => 'jnews-select',
    'label'         => esc_html__('Image Popup Script','jnews'),
    'description'   => wp_kses(__("This option will enable your image popup on Gallery Thumbnail, Single image, and WordPress default gallery.
            <ol>
                <li><strong>Photoswipe :</strong> Zoomable, ability to go fullscreen, button for share on social network.</li>
                <li><strong>Magnific :</strong> Simple Option, option to turn all single image into one gallery.</li>
            </ol>",'jnews'), wp_kses_allowed_html()),
    'choices'       => array(
        'disable'       => esc_attr__( 'Disabled', 'jnews' ),
        'photoswipe'    => esc_attr__( 'Photoswipe', 'jnews' ),
        'magnific'      => esc_attr__( 'Magnific Popup', 'jnews' ),
    ),
    'postvar'       => array(
        array(
            'redirect'  => 'single_post_tag',
            'refresh'   => true
        )
    )
);

$options[] = array(
    'id'            => 'jnews_single_as_gallery',
    'transport'     => 'postMessage',
    'default'       => false,
    'type'          => 'jnews-toggle',
    'label'         => esc_html__('Set Images as Gallery','jnews'),
    'description'   => esc_html__('Set images on a single post as one instance of gallery.','jnews'),
    'active_callback'  => array(
        array(
            'setting'  => 'jnews_single_popup_script',
            'operator' => '==',
            'value'    => 'magnific',
        )
    ),
    'postvar'       => array(
        array(
            'redirect'  => 'single_post_tag',
            'refresh'   => true
        )
    )
);

return $options;