Current Path : /var/www/mainsite/wp-content/themes/maxcoach/customizer/advanced/ |
Current File : /var/www/mainsite/wp-content/themes/maxcoach/customizer/advanced/light-gallery.php |
<?php $section = 'light_gallery'; $priority = 1; $prefix = 'light_gallery_'; Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'radio-buttonset', 'settings' => $prefix . 'background', 'label' => esc_html__( 'Background', 'maxcoach' ), 'section' => $section, 'priority' => $priority ++, 'default' => 'custom', 'choices' => array( 'primary' => esc_html__( 'Primary', 'maxcoach' ), 'secondary' => esc_html__( 'Secondary', 'maxcoach' ), 'custom' => esc_html__( 'Custom', 'maxcoach' ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'color', 'settings' => $prefix . 'custom_background', 'label' => esc_html__( 'Custom Background Color', 'maxcoach' ), 'section' => $section, 'priority' => $priority ++, 'transport' => 'auto', 'default' => '#000', 'active_callback' => array( array( 'setting' => 'light_gallery_background', 'operator' => '==', 'value' => 'custom', ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'radio-buttonset', 'settings' => $prefix . 'auto_play', 'label' => esc_html__( 'Auto Play', 'maxcoach' ), 'section' => $section, 'priority' => $priority ++, 'default' => '0', 'choices' => array( '0' => esc_html__( 'Off', 'maxcoach' ), '1' => esc_html__( 'On', 'maxcoach' ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'radio-buttonset', 'settings' => $prefix . 'download', 'label' => esc_html__( 'Download Button', 'maxcoach' ), 'section' => $section, 'priority' => $priority ++, 'default' => '1', 'choices' => array( '0' => esc_html__( 'Off', 'maxcoach' ), '1' => esc_html__( 'On', 'maxcoach' ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'radio-buttonset', 'settings' => $prefix . 'full_screen', 'label' => esc_html__( 'Full Screen Button', 'maxcoach' ), 'section' => $section, 'priority' => $priority ++, 'default' => '1', 'choices' => array( '0' => esc_html__( 'Off', 'maxcoach' ), '1' => esc_html__( 'On', 'maxcoach' ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'radio-buttonset', 'settings' => $prefix . 'share', 'label' => esc_html__( 'Share Button', 'maxcoach' ), 'section' => $section, 'priority' => $priority ++, 'default' => '1', 'choices' => array( '0' => esc_html__( 'Off', 'maxcoach' ), '1' => esc_html__( 'On', 'maxcoach' ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'radio-buttonset', 'settings' => $prefix . 'zoom', 'label' => esc_html__( 'Zoom Buttons', 'maxcoach' ), 'section' => $section, 'priority' => $priority ++, 'default' => '1', 'choices' => array( '0' => esc_html__( 'Off', 'maxcoach' ), '1' => esc_html__( 'On', 'maxcoach' ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'radio-buttonset', 'settings' => $prefix . 'thumbnail', 'label' => esc_html__( 'Thumbnail Gallery', 'maxcoach' ), 'section' => $section, 'priority' => $priority ++, 'default' => '1', 'choices' => array( '0' => esc_html__( 'Off', 'maxcoach' ), '1' => esc_html__( 'On', 'maxcoach' ), ), ) );