Sindbad~EG File Manager

Current Path : /var/www/html/amopropiedades.com/wp-content/themes/houzez/framework/options/
Upload File :
Current File : /var/www/html/amopropiedades.com/wp-content/themes/houzez/framework/options/map.php

<?php
global $houzez_opt_name, $allowed_html_array, $Option_Countries;
Redux::setSection( $houzez_opt_name, array(
    'title'  => esc_html__( 'Map Settings', 'houzez' ),
    'id'     => 'houzez-googlemap-settings',
    'desc'   => '',
    'icon'   => 'el-icon-globe el-icon-small',
    'fields' => array(
        array(
            'id'       => 'houzez_map_system',
            'type'     => 'button_set',
            'title'    => esc_html__('Map System', 'houzez'),
            'subtitle' => esc_html__('Select the map system that you want to use', 'houzez'),
            'desc'     => '',
            'options' => array(
                'osm' => 'Open Street Map',
                'mapbox' => 'Map Box',
                'google' => 'Google',
             ), 
            'default' => 'osm'
        ),
        array(
            'id'       => 'googlemap_api_key',
            'type'     => 'text',
            'title'    => esc_html__( 'Google Maps API KEY', 'houzez' ),
            'desc'     => wp_kses(__( 'We strongly encourage you to get an APIs Console key and post the code in Theme Options. You can get it from <a target="_blank" href="https://developers.google.com/maps/documentation/javascript/tutorial#api_key">here</a>.', 'houzez' ), $allowed_html_array),
            'subtitle' => esc_html__( 'Enter your google maps api key', 'houzez' ),
            'required'  => array('houzez_map_system', '=', 'google')
        ),
        array(
            'id'       => 'mapbox_api_key',
            'type'     => 'text',
            'title'    => esc_html__( 'Mapbox API KEY', 'houzez' ),
            'desc'     => wp_kses(__( 'Please enter the Mapbox API key, you can get from <a target="_blank" href="https://account.mapbox.com/">here</a>.', 'houzez' ), $allowed_html_array),
            'required'  => array('houzez_map_system', '=', 'mapbox')
        ),
        array(
            'id'       => 'houzez_map_type',
            'type'     => 'button_set',
            'title'    => esc_html__('Map Type', 'houzez'),
            'subtitle' => '',
            'desc'     => esc_html__( 'Select the map type', 'houzez' ),
            'required'  => array('houzez_map_system', '=', 'google'),
            'options' => array(
                'roadmap' => 'Road Map',
                'satellite' => 'Satellite',
                'hybrid' => 'Hybrid',
                'terrain' => 'Terrain',
             ), 
            'default' => 'roadmap'
        ),
        

        array(
            'id'       => 'markerPricePins',
            'type'     => 'select',
            'title'    => esc_html__( 'Marker Type', 'houzez' ),
            'desc' => esc_html__( 'Select marker type for Google Maps', 'houzez' ),
            //'desc'     => '',
            'options'  => array(
                'no'   => esc_html__( 'Marker Icon', 'houzez' ),
                'yes'   => esc_html__( 'Price Pins', 'houzez' )
            ),
            'default'  => 'no'
        ),
        array(
            'id'       => 'short_prices_pins',
            'type'     => 'switch',
            'title'    => esc_html__( 'Short Price', 'houzez' ),
            'subtitle'     => esc_html__( 'Please note that the currency switcher will not work if the short price functionality is enabled.', 'houzez' ),
            'desc' => esc_html__( 'Enable or disable the short price numbers like 12K, 10M, 10B.', 'houzez' ),
            'default'  => 0,
            'on'       => esc_html__( 'Enabled', 'houzez' ),
            'off'      => esc_html__( 'Disabled', 'houzez' ),
            'required'  => array('markerPricePins', '=', 'yes'),
        ),
        array(
            'id'       => 'marker_spiderfier',
            'type'     => 'switch',
            'title'    => esc_html__( 'Overlapping Marker Spiderfier', 'houzez' ),
            'desc' => esc_html__( 'Do you want to display the Overlapping Marker Spiderfier?', 'houzez' ),
            //'desc'     => '',
            'on'       => 'Yes',
            'off'      => 'No',
            'default'  => 0,
            'required'  => array('houzez_map_system', '=', 'google')
        ),

        array(
            'id'       => 'map_default_lat',
            'type'     => 'text',
            'title'    => esc_html__( 'Default Latitude', 'houzez' ),
            'subtitle' => esc_html__( 'Enter default latitude for maps', 'houzez' ),
            'default'  => '25.686540',
            'validate' => 'numeric'
        ),

        array(
            'id'       => 'map_default_long',
            'type'     => 'text',
            'title'    => esc_html__( 'Default Longitude', 'houzez' ),
            'subtitle' => esc_html__( 'Enter default longitude for maps', 'houzez' ),
            'default'  => '-80.431345',
            'validate' => 'numeric'
        ),

        array(
            'id'       => 'geo_country_limit',
            'type'     => 'switch',
            'title'    => esc_html__( 'Limit to Country', 'houzez' ),
            'desc'     => '',
            'subtitle' => esc_html__( 'Geo autocomplete limit to specific country', 'houzez' ),
            'default'  => 0,
            'on'       => 'Enabled',
            'off'      => 'Disabled',
        ),
        array(
            'id'		=> 'geocomplete_country',
            'type'		=> 'select',
            'required'  => array('geo_country_limit', '=', '1'),
            'title'		=> esc_html__( 'Geo Auto Complete Country', 'houzez' ),
            'subtitle'	=> esc_html__( 'Limit Geo auto complete to specific country', 'houzez' ),
            'options'	=> $Option_Countries,
            'default' => ''
        ),

        /*array(
            'id'       => 'map_fullscreen',
            'type'     => 'switch',
            'title'    => esc_html__( 'Map Fullscreen', 'houzez' ),
            'desc'     => '',
            'subtitle' => esc_html__( 'Enable/Disable map fullscreen button on half map.', 'houzez' ),
            'default'  => 1,
            'on'       => 'Enabled',
            'off'      => 'Disabled',
        ),

        array(
            'id'       => 'geo_location',
            'type'     => 'switch',
            'title'    => esc_html__( 'Geo Location', 'houzez' ),
            'desc'     => '',
            'subtitle' => esc_html__( 'Enable/Disable geo location.', 'houzez' ),
            'default'  => 0,
            'on'       => 'Enabled',
            'off'      => 'Disabled',
            'required'  => array('houzez_map_system', '=', 'google')
        ),

        array(
            'id' => 'geo_location_info',
            'type' => 'info',
            'required' => array('geo_location', '=', '1'),
            'title' => '',
            'style' => 'info',
            'desc' => __('Note: Google Geo location not work in chrome without SSL (https://), you can enable IPINFO location below for Google chrome if you don not have SSL. ', 'houzez')
        ),

        array(
            'id'       => 'ipinfo_location',
            'type'     => 'switch',
            'title'    => esc_html__( 'IPINFO Location', 'houzez' ),
            'desc'     => '',
            'subtitle' => esc_html__( 'Enable/Disable Ip info location, only work with chrome withour SSL.', 'houzez' ),
            'default'  => 0,
            'on'       => 'Enabled',
            'off'      => 'Disabled',
            'required'  => array('houzez_map_system', '=', 'google')
        ),
        array(
            'id'       => 'googlemap_zoom_level',
            'type'     => 'text',
            'title'    => esc_html__( 'Default Map Zoom', 'houzez' ),
            'desc'     => '',
            'subtitle' => esc_html__( '1 to 20', 'houzez' ),
            'default'  => '12',
            'required'  => array('houzez_map_system', '=', 'google')
        ),*/
    ),
));

Redux::setSection( $houzez_opt_name, array(
    'title'  => esc_html__( 'Cluster', 'houzez' ),
    'id'     => 'map-cluster',
    'desc'   => '',
    'icon'   => '',
    'subsection' => true,
    'fields'    => array(
        array(
            'id'       => 'map_cluster_enable',
            'type'     => 'switch',
            'title'    => esc_html__( 'Markers cluster', 'houzez' ),
            'subtitle' => '',
            'desc'     => esc_html__( 'enable or disable the marker cluster', 'houzez' ),
            'on'       => esc_html__('Enabled', 'houzez'),
            'off'      => esc_html__('Disabled', 'houzez'),
            'default'  => 1
        ),
        array(
            'id'        => 'map_cluster',
            'type'      => 'media',
            'title'     => esc_html__( 'Map Cluster', 'houzez' ),
            'read-only' => false,
            'default'   => array( 'url' => HOUZEZ_IMAGE . 'map/cluster-icon.png' ),
            'desc'  => esc_html__( 'Upload the map cluster icon.', 'houzez' ),
        ),
        array(
            'id'       => 'googlemap_zoom_cluster',
            'type'     => 'text',
            'title'    => esc_html__( 'Cluster Zoom Level', 'houzez' ),
            //'desc'     => '',
            'desc' => esc_html__( 'Enter the maximum zoom level for the cluster to appear. From 1 to 20 the fefault is 12', 'houzez' ),
            'default'  => '12',
            'required'  => array('houzez_map_system', '=', 'google')
        ),
    )
        
));

Redux::setSection( $houzez_opt_name, array(
    'title'  => esc_html__( 'Single Listing Map', 'houzez' ),
    'id'     => 'map-single-listing',
    'desc'   => '',
    'icon'   => '',
    'subsection' => true,
    'fields'    => array(
        array(
            'id'       => 'detail_map_pin_type',
            'type'     => 'select',
            'title'    => esc_html__('Pin or Circle', 'houzez'),
            'desc' => esc_html__('Select what to show on map, Marker or Circle', 'houzez'),
            'options'  => array(
                'marker'   => esc_html__( 'Marker Pin', 'houzez' ),
                'circle'   => esc_html__( 'Circle', 'houzez' ),
            ),
            'default'  => 'marker',
        ),
        array(
            'id'       => 'single_mapzoom',
            'type'     => 'text',
            'title'    => esc_html__( 'Single Listing Map Zoom', 'houzez' ),
            'desc'     => '',
            'desc' => esc_html__( 'Enter a number from 1 to 20 the fefault is 12', 'houzez' ),
            'default'  => '14',
            'validate' => 'numeric'
        )
    )
));

Redux::setSection( $houzez_opt_name, array(
    'title'  => esc_html__( 'Map Style', 'houzez' ),
    'id'     => 'map-style',
    'desc'   => '',
    'icon'   => '',
    'subsection' => true,
    'fields'    => array(
        array(
            'id'       => 'googlemap_stype',
            'type'     => 'ace_editor',
            'title'    => esc_html__( 'Style for Google Map', 'houzez' ),
            'subtitle' => esc_html__( 'Use https://snazzymaps.com/ to create styles', 'houzez' ),
            'desc'     => '',
            'default'  => '',
            'mode'     => 'plain',
        )
    )
));

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists