| Server IP : 104.26.4.103 / 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/cleanlinefmsv3/public_html/wp-content/themes/clanyeco/vamtam/options/core/ |
Upload File : |
<?php
/**
* Controls attached to core sections
*
* @package vamtam/clanyeco
*/
function vamtam_theme_customize_register( $wp_customize ) {
global $vamtam_theme;
$wp_customize->add_setting( 'vamtam_theme[wc-product-gallery-zoom]', array(
'default' => $vamtam_theme['wc-product-gallery-zoom'],
'transport' => 'refresh',
'type' => 'option',
'sanitize_callback' => function ( $input, $setting ) {
return ( in_array( $input, [ 'enabled', 'disabled' ] ) ) ? $input : $setting->default;
}
) );
$wp_customize->add_control( 'vamtam_theme[wc-product-gallery-zoom]', array(
'label' => esc_html__( 'Single Product Image Zoom', 'clanyeco' ),
'section' => 'woocommerce_product_images',
'settings' => 'vamtam_theme[wc-product-gallery-zoom]',
'type' => 'radio',
'choices' => array(
'enabled' => esc_html__( 'Enabled', 'clanyeco' ),
'disabled' => esc_html__( 'Disabled', 'clanyeco' ),
),
) );
}
add_action( 'customize_register', 'vamtam_theme_customize_register' );