File "gsap_animation.php"
Full Path: /home/adniftyx/public_html/wp-content/themes/credio/inc/customizer/gsap_animation.php
File size: 1.86 KB
MIME-type: text/x-php
Charset: utf-8
<?php
function credio_gsap_animation_panel( $credio_customizer, $priority ){
$credio_customizer->add_section( 'credio_gsap_animation_setting' , array(
'title' => esc_html__( 'GSAP Animation Setting', 'credio' ),
'priority' => $priority,
'panel' => 'credio_options_panel'
) );
// GSAP Control Start
$credio_customizer->add_setting( 'gsap_animation_enable_disable',
array(
'default' => '0',
)
);
$credio_customizer->add_control(
new credio_Customize_Switch_Control(
$credio_customizer,
'gsap_animation_enable_disable',
array(
'type' => 'switch',
'label' => esc_html__('GSAP Animation','credio'),
'description' => esc_html__('You can enable or disable GSAP Animation here','credio'),
'section' => 'credio_gsap_animation_setting'
)
)
);
// GSAP Control End
//Start separator
$credio_customizer->add_setting(
'separator_0',
array(
'default' => '',
'sanitize_callback' => 'esc_html',
)
);
$credio_customizer->add_control(
new credio_Separator_Control(
$credio_customizer,
'separator_0',
array(
'settings' => 'separator_0',
'section' => 'credio_gsap_animation_setting',
)
)
);
//End separator
// GSAP Custom Cursor Control Start
$credio_customizer->add_setting( 'gsap_custom_cursor_enable_disable',
array(
'default' => '0',
)
);
$credio_customizer->add_control(
new credio_Customize_Switch_Control(
$credio_customizer,
'gsap_custom_cursor_enable_disable',
array(
'type' => 'switch',
'label' => esc_html__('Custom Cursor','credio'),
'description' => esc_html__('You can enable or disable custom cursor. If GSAP Animation is on then it will work.','credio'),
'section' => 'credio_gsap_animation_setting'
)
)
);
// GSAP Custom Cursor Control End
}