<?php

if ( ! function_exists( 'ginevra_core_add_page_spinner_meta_box' ) ) {
	/**
	 * Function that add general options for this module
	 */
	function ginevra_core_add_page_spinner_meta_box( $general_tab ) {

		if ( $general_tab ) {
			$general_tab->add_field_element(
				array(
					'field_type'  => 'select',
					'name'        => 'qodef_enable_page_spinner',
					'title'       => esc_html__( 'Enable Page Spinner', 'ginevra-core' ),
					'description' => esc_html__( 'Enable Page Spinner Effect', 'ginevra-core' ),
					'options'     => ginevra_core_get_select_type_options_pool( 'yes_no' ),
				)
			);
		}
	}

	add_action( 'ginevra_core_action_after_general_page_meta_box_map', 'ginevra_core_add_page_spinner_meta_box', 9 );
}
