| Server IP : 172.67.71.254 / Your IP : 216.73.216.4 Web Server : nginx/1.27.1 System : Linux in-5 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64 User : arabianexpress ( 1872) PHP Version : 8.0.30 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /storage/v9321/rimskannur/public_html/wp-content/themes/skole/vamtam/customizer/ |
Upload File : |
<?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 );