HEX
Server: Apache
System: Linux webm013.cluster123.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: lesanew (165608)
PHP: 8.3.31
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/lesanew/www/wp-content/plugins/neobeat-core/inc/maps/dashboard/admin/map-options.php
<?php

if ( ! function_exists( 'neobeat_core_add_map_options' ) ) {
	/**
	 * Function that add map options
	 */
	function neobeat_core_add_map_options() {
		$qode_framework = qode_framework_get_framework_root();

		$page = $qode_framework->add_options_page(
			array(
				'scope'       => NEOBEAT_CORE_OPTIONS_NAME,
				'type'        => 'admin',
				'slug'        => 'map',
				'icon'        => 'fa fa-book',
				'title'       => esc_html__( 'Maps', 'neobeat-core' ),
				'description' => esc_html__( 'Global Maps Options', 'neobeat-core' )
			)
		);

		if ( $page ) {
			$page->add_field_element(
				array(
					'field_type'  => 'text',
					'name'        => 'qodef_maps_api_key',
					'title'       => esc_html__( 'Maps API Key', 'neobeat-core' ),
					'description' => esc_html__( 'Enter Google Maps API key', 'neobeat-core' )
				)
			);

			$page->add_field_element(
				array(
					'field_type'  => 'textarea',
					'name'        => 'qodef_map_style',
					'title'       => esc_html__( 'Map Style', 'neobeat-core' ),
					'description' => esc_html__( 'Enter Snazzy Map style JSON code', 'neobeat-core' )
				)
			);

			$page->add_field_element(
				array(
					'field_type'  => 'text',
					'name'        => 'qodef_map_zoom',
					'title'       => esc_html__( 'Map Zoom', 'neobeat-core' ),
					'description' => esc_html__( 'Enter default zoom value for map', 'neobeat-core' )
				)
			);

			$page->add_field_element(
				array(
					'field_type'    => 'yesno',
					'name'          => 'qodef_enable_map_scroll',
					'title'         => esc_html__( 'Enable Map Scroll', 'neobeat-core' ),
					'description'   => esc_html__( 'Use this option to enable map scrolling', 'neobeat-core' ),
					'default_value' => 'no'
				)
			);

			$page->add_field_element(
				array(
					'field_type'    => 'yesno',
					'name'          => 'qodef_enable_map_drag',
					'title'         => esc_html__( 'Enable Map Dragging', 'neobeat-core' ),
					'description'   => esc_html__( 'Use this option to enable map dragging', 'neobeat-core' ),
					'default_value' => 'yes'
				)
			);

			$page->add_field_element(
				array(
					'field_type'    => 'yesno',
					'name'          => 'qodef_enable_map_street_view_control',
					'title'         => esc_html__( 'Enable Map Street View Control', 'neobeat-core' ),
					'description'   => esc_html__( 'Use this option to enable street view control on map', 'neobeat-core' ),
					'default_value' => 'yes'
				)
			);

			$page->add_field_element(
				array(
					'field_type'    => 'yesno',
					'name'          => 'qodef_enable_map_zoom_control',
					'title'         => esc_html__( 'Enable Map Zoom Control', 'neobeat-core' ),
					'description'   => esc_html__( 'Use this option to enable zoom control on map', 'neobeat-core' ),
					'default_value' => 'yes'
				)
			);

			$page->add_field_element(
				array(
					'field_type'    => 'yesno',
					'name'          => 'qodef_enable_map_type_control',
					'title'         => esc_html__( 'Enable Map Type Control', 'neobeat-core' ),
					'description'   => esc_html__( 'Use this option to enable type control on map', 'neobeat-core' ),
					'default_value' => 'yes'
				)
			);

			$page->add_field_element(
				array(
					'field_type'    => 'yesno',
					'name'          => 'qodef_enable_map_full_screen_control',
					'title'         => esc_html__( 'Enable Map Full Screen Control', 'neobeat-core' ),
					'description'   => esc_html__( 'Use this option to enable full screen control on map', 'neobeat-core' ),
					'default_value' => 'yes'
				)
			);

			// Hook to include additional options after module options
			do_action( 'neobeat_core_action_after_map_options_map', $page );
		}
	}

	add_action( 'neobeat_core_action_default_options_init', 'neobeat_core_add_map_options', neobeat_core_get_admin_options_map_position( 'maps' ) );
}