HEX
Server: LiteSpeed
System: Linux venus 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: axxoncom (1007)
PHP: 8.3.19
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/axxoncom/domains/maxvin.pk/public_html/wp-content/themes/jolie/vamtam/customizer/preview.php
<?php

function vamtam_customizer_setup_partial_options() {
	global $vamtam_theme;

	$raw_options = json_decode( stripslashes_deep( $_POST['customized'] ), true );

	$old_opts = $vamtam_theme;

	if ( isset( $_POST['customized'] ) && ! empty( $raw_options ) ) {
		if ( is_array( $raw_options ) ) {
			foreach ( $raw_options as $key => $value ) {
				if ( strpos( $key, 'vamtam_theme' ) !== false ) {
					$key                  = str_replace( 'vamtam_theme[', '', rtrim( $key, ']' ) );
					$vamtam_theme[ $key ] = $value;
				}
			}
		}
	}
}
add_action( 'customize_render_partials_before', 'vamtam_customizer_setup_partial_options' );

function vamtam_customize_register( WP_Customize_Manager $wp_customize ) {
	include VAMTAM_DIR . 'customizer/preview/general.php';
	include VAMTAM_DIR . 'customizer/preview/layout.php';
	include VAMTAM_DIR . 'customizer/preview/styles.php';
}
add_action( 'customize_register', 'vamtam_customize_register', 20 );