HEX
Server: Apache/2
System: Linux server-27-254-144-72.da.direct 5.10.0-33-amd64 #1 SMP Debian 5.10.226-1 (2024-10-03) x86_64
User: pokaorgani (1114)
PHP: 8.1.33
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/pokaorgani/public_html/wp-content/themes/sydney/inc/customizer/options/performance.php
<?php
/**
 * Performance Customizer Options
 *
 * @package Sydney
 */

$wp_customize->add_section(
    'sydney_section_performance',
    array(
        'title'      => esc_html__( 'Performance', 'sydney' ),
        'panel'      => 'sydney_panel_general',
        'priority'   => 999
    )
);

$wp_customize->add_setting(
	'perf_google_fonts_local',
	array(
		'default'           => 0,
		'sanitize_callback' => 'sydney_sanitize_checkbox'
	)
);
$wp_customize->add_control(
	new Sydney_Toggle_Control(
		$wp_customize,
		'perf_google_fonts_local',
		array(
			'label'         	=> esc_html__( 'Load Google Fonts Locally?', 'sydney' ),
			'description'		=> esc_html__( 'This option refers only to Google Fonts loaded by the theme, not by third-party plugins.', 'sydney' ),
			'section'       	=> 'sydney_section_performance',
		)
	)
);

$wp_customize->add_setting(
	'perf_disable_preconnect',
	array(
		'default'           => 0,
		'sanitize_callback' => 'sydney_sanitize_checkbox'
	)
);
$wp_customize->add_control(
	new Sydney_Toggle_Control(
		$wp_customize,
		'perf_disable_preconnect',
		array(
			'label'         	=> esc_html__( 'Disable Google Fonts preconnect', 'sydney' ),
			'section'       	=> 'sydney_section_performance',
		)
	)
);

$wp_customize->add_setting(
	'perf_disable_emojis',
	array(
		'default'           => 1,
		'sanitize_callback' => 'sydney_sanitize_checkbox'
	)
);

$wp_customize->add_control(
	new Sydney_Toggle_Control(
		$wp_customize,
		'perf_disable_emojis',
		array(
			'label'         	=> esc_html__( 'Disable Emojis', 'sydney' ),
			'section'       	=> 'sydney_section_performance',
		)
	)
);

$wp_customize->add_setting(
	'perf_jquery_migrate',
	array(
		'default'           => 0,
		'sanitize_callback' => 'sydney_sanitize_checkbox'
	)
);

$wp_customize->add_control(
	new Sydney_Toggle_Control(
		$wp_customize,
		'perf_jquery_migrate',
		array(
			'label'         	=> esc_html__( 'Disable jQuery Migrate', 'sydney' ),
			'description'		=> esc_html__( 'This option will disable jQuery Migrate, which is used by some plugins to maintain backwards compatibility with older versions of jQuery.', 'sydney' ),
			'section'       	=> 'sydney_section_performance',
		)
	)
);

$wp_customize->add_setting(
	'perf_defer_block_styles',
	array(
		'default'           => 0,
		'sanitize_callback' => 'sydney_sanitize_checkbox'
	)
);

$wp_customize->add_control(
	new Sydney_Toggle_Control(
		$wp_customize,
		'perf_defer_block_styles',
		array(
			'label'         	=> esc_html__( 'Defer block styles', 'sydney' ),
			'description'		=> esc_html__( 'Checks if a post has block content and defers the block stylesheet if it does not.', 'sydney' ),
			'section'       	=> 'sydney_section_performance',
		)
	)
);

$wp_customize->add_setting( 'perf_guide_link',
	array(
		'default' 			=> '',
		'sanitize_callback' => 'esc_attr'
	)
);

$wp_customize->add_control( new Sydney_Text_Control( $wp_customize, 'perf_guide_link',
		array(
			'description'		=> sprintf( esc_html__( 'For more information on how to improve your website\'s performance, please read our %1$sPerformance Guide%2$s.', 'sydney' ), '<a href="https://docs.athemes.com/article/how-to-speed-up-your-sydney-powered-website/" target="_blank">', '</a>' ),
			'section' 			=> 'sydney_section_performance',
			'separator'			=> 'before'
		)
	)
);