File "smooth_scrolling.php"

Full Path: /home/adniftyx/public_html/wp-content/themes/credio/inc/customizer/smooth_scrolling.php
File size: 934 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
function credio_smooth_scrolling_panel( $credio_customizer, $priority ){
    $credio_customizer->add_section( 'credio_smooth_scrolling_setting' , array(
        'title'      => esc_html__( 'Smooth Scroling Setting', 'credio' ),
        'priority'   => $priority,
        'panel'		 => 'credio_options_panel'
    ) );


	// Smooth Scroll Start
	$credio_customizer->add_setting( 'rs_smooth_scroll_enable_disable', 
	array(
		'default'    => '0',
		) 
	);
	
	$credio_customizer->add_control(
		new credio_Customize_Switch_Control(
			$credio_customizer,
			'rs_smooth_scroll_enable_disable',
			array(
				'type' => 'switch',
				'label' => esc_html__('Smooth Page Scrooling','credio'),
				'description' => esc_html__('You can enable or disable page scrolling smooth effect by switching this On or Off.','credio'),
				'section' => 'credio_smooth_scrolling_setting'
			)
		)
	);
	// Smooth Scroll End
}