HEX
Server: Apache
System: Linux nc-ph-4101.simplemoneygoals.com 5.14.0-503.21.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Jan 12 09:45:05 EST 2025 x86_64
User: dailygoldindex (1004)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/dailygoldindex/public_html/wp-content/themes/jnews/class/Customizer/sections/image_popup.php
<?php

$options = [];

$options[] = [
	'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'     => [
		'disable'    => esc_attr__( 'Disabled', 'jnews' ),
		'photoswipe' => esc_attr__( 'Photoswipe', 'jnews' ),
		'magnific'   => esc_attr__( 'Magnific Popup', 'jnews' ),
	],
	'postvar'     => [
		[
			'redirect' => 'single_post_tag',
			'refresh'  => true,
		],
	],
];

$options[] = [
	'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' => [
		[
			'setting'  => 'jnews_single_popup_script',
			'operator' => '==',
			'value'    => 'magnific',
		],
	],
	'postvar'         => [
		[
			'redirect' => 'single_post_tag',
			'refresh'  => true,
		],
	],
];

return $options;