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_global.php
<?php

$options = [];

$options[] = [
	'id'          => 'jnews_image_placeholder',
	'transport'   => 'postMessage',
	'default'     => false,
	'type'        => 'jnews-toggle',
	'label'       => esc_html__( 'Enable Placeholder', 'jnews' ),
	'description' => esc_html__( 'Enable this option to show placeholder when post thumbnail is empty.', 'jnews' ),
];

$options[] = [
	'id'          => 'jnews_image_load_alert',
	'type'        => 'jnews-alert',
	'default'     => 'info',
	'label'       => esc_html__( 'How Image Loaded', 'jnews' ),
	'description' => wp_kses( __(
		'<ul>
                    <li><strong>Normal Load Image :</strong> Support retina, largest size at first load, good for SEO.</li>
                    <li><strong>Lazy Load :</strong> Less number of image on first load, support for retina, best browsing experience, good for SEO.</li>
                    <li><strong>Background :</strong> Support GIF image as featured thumbnail, bad for SEO.</li>
                </ul>',
		'jnews' ), wp_kses_allowed_html() ),
];

$options[] = [
	'id'          => 'jnews_image_load',
	'transport'   => 'refresh',
	'default'     => 'lazyload',
	'type'        => 'jnews-select',
	'label'       => esc_html__( 'Image Load Mechanism', 'jnews' ),
	'description' => esc_html__( 'Choose image load mechanism method.', 'jnews' ),
	'choices'     => [
		'normal'     => 'Normal image load',
		'lazyload'   => 'Lazy load image',
		'background' => 'Background Image',
	],
];


$options[] = [
	'id'          => 'jnews_image_generator_alert',
	'type'        => 'jnews-alert',
	'default'     => 'info',
	'label'       => esc_html__( 'How Image Generated', 'jnews' ),
	'description' => wp_kses( __(
		'<ul>
                    <li><strong>Normal Image Generator :</strong> Fastest load time, but require more space. About 12 images will be generated for single image uploaded. If you switch to this option, please regenerate image again.</li>
                    <li><strong>Dynamic Image Generator :</strong> Slower load time only when image created for the first time. Image generated only when needed.</li>                    
                </ul>',
		'jnews' ), wp_kses_allowed_html() ),
];

$options[] = [
	'id'          => 'jnews_image_generator',
	'transport'   => 'refresh',
	'default'     => 'normal',
	'type'        => 'jnews-select',
	'label'       => esc_html__( 'Image Generator', 'jnews' ),
	'description' => esc_html__( 'Choose image generated method.', 'jnews' ),
	'choices'     => [
		'normal'  => 'Normal Image Generator',
		'dynamic' => 'Dynamic Image Generator',
	],
];

return $options;