HEX
Server: LiteSpeed
System: Linux cp4.porkbun.com 5.14.0-611.20.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jan 14 06:35:04 EST 2026 x86_64
User: vxblllubpkafjsjw (1110)
PHP: 8.4.19
Disabled: NONE
Upload Files
File: /data0/brighttherapyllc.com/.trash/salute/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 );