HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux vm8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: afleverb (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //var/www/drakkar_site/wp-content/themes/blocksy/inc/options/general/performance.php
<?php
/**
 * Performance options
 *
 * @copyright 2019-present Creative Themes
 * @license   http://www.gnu.org/copyleft/gpl.html GNU General Public License
 * @package   Blocksy
 */

$options = [
	'performance_section_options' => [
		'type' => 'ct-options',
		'setting' => [ 'transport' => 'postMessage' ],
		'inner-options' => [
			apply_filters(
				'blocksy_performance_end_customizer_options',
				[]
			),

			[
				[
					'emoji_scripts' => [
						'label' => __( 'Disable Emojis Script', 'blocksy' ),
						'type' => 'ct-switch',
						'value' => 'yes',
						'setting' => [ 'transport' => 'postMessage' ],
						'desc' => __( 'Enable this option if you want to remove WordPress emojis script in order to improve the performance.', 'blocksy' )
					],
	
					blocksy_rand_md5() => [
						'type' => 'ct-divider'
					]
				],

				apply_filters(
					'blocksy_performance_after_emojis_customizer_options',
					[]
				),

				'has_lazy_load' => [
					'label' => __( 'Lazy Load Images', 'blocksy' ),
					'type' => 'ct-switch',
					'value' => 'yes',
					'setting' => [ 'transport' => 'postMessage' ],
					'desc' => __( 'Enable lazy loading to improve performance.', 'blocksy' ),
				],

				blocksy_rand_md5() => [
					'type' => 'ct-condition',
					'condition' => [ 'has_lazy_load' => 'yes' ],
					'options' => [

						[
							'has_lazy_load_page_title_image' => [
								'label' => __( 'Post/Page Title Featured Image', 'blocksy' ),
								'type' => 'ct-switch',
								'value' => 'yes',
								'setting' => [ 'transport' => 'postMessage' ],
							],

							'has_lazy_load_single_featured_image' => [
								'label' => __( 'Single Post/Page Featured Image', 'blocksy' ),
								'type' => 'ct-switch',
								'value' => 'yes',
								'setting' => [ 'transport' => 'postMessage' ],
							],

							'has_lazy_load_archives_image' => [
								'label' => __( 'Archives Featured Image', 'blocksy' ),
								'type' => 'ct-switch',
								'value' => 'yes',
								'setting' => [ 'transport' => 'postMessage' ],
							],

							'has_lazy_load_related_posts_image' => [
								'label' => __( 'Related Posts Featured Image', 'blocksy' ),
								'type' => 'ct-switch',
								'value' => 'yes',
								'setting' => [ 'transport' => 'postMessage' ],
							],
						],

						function_exists('is_shop') ? [
							'has_lazy_load_single_product_image' => [
								'label' => __( 'Single Product Image', 'blocksy' ),
								'type' => 'ct-switch',
								'value' => 'yes',
								'setting' => [ 'transport' => 'postMessage' ],
							],

							'has_lazy_load_shop_card_image' => [
								'label' => __( 'Shop Archive Featured Image', 'blocksy' ),
								'type' => 'ct-switch',
								'value' => 'yes',
								'setting' => [ 'transport' => 'postMessage' ],
							],
						] : []
					],
				],
			],
		],
	],
];