<?php 
/**
 * Fields for Scroll to top options
 * @since 1.0
 * @package evaWp
 */
function evawp_scroll_to_top_options(){	
	evawp_add_sections_and_fields( array(
		'section' => array(
			'id' => 'scroll_top_top',
			'title' => esc_html__( 'Scroll To Top Options', 'evawp' ),
			'panel' => 'general_options',
			'priority' => 10,
		),
		'fields' => array(
			'enable_stt' => array(
				'label'       => esc_html__( 'Enable', 'evawp' ),
				'type'        => 'toggle',
				'default'     => true,
				'priority'    => 10,
			)
		)
	));
}

add_action( 'init', 'evawp_scroll_to_top_options' );