google-maps.php (1994B)
1 <?php 2 /** 3 * Redux Pro Google Maps Sample config. 4 * For full documentation, please visit: http:https://devs.redux.io/ 5 * 6 * @package Redux Pro 7 */ 8 9 defined( 'ABSPATH' ) || exit; 10 11 Redux::set_section( 12 $opt_name, 13 array( 14 'title' => esc_html__( 'Google Maps', 'your-textdomain-here' ), 15 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/premium/google-maps.html" target="_blank">https://devs.redux.io/premium/google-maps.html</a>', 16 'subsection' => true, 17 'fields' => array( 18 array( 19 'id' => 'location_geocode', 20 'type' => 'google_maps', 21 'title' => esc_html__( 'Google Maps', 'your-textdomain-here' ), 22 'subtitle' => esc_html__( 'This map is set using only address information with a zoom factor of 3. Lat/Long is returned automatically.', 'your-textdomain-here' ), 23 'show_api_key' => true, 24 'default' => array( 25 'zoom' => '17', // Zoom far: 3 zoom close 17. 26 'street_number' => '1600', // Address. 27 'route' => 'Pennsylvania Avenue', // STREET. 28 'locality' => 'Washington', // CITY. 29 'administrative_area_level_1' => 'DC', // STATE. 30 'postal_code' => '20500', 31 'country' => 'United States', 32 ), 33 ), 34 array( 35 'id' => 'location_geocode2', 36 'type' => 'google_maps', 37 'title' => esc_html__( 'Google Maps', 'your-textdomain-here' ), 38 'subtitle' => esc_html__( 'This map is set using only latitude and longitude with a zoom factor of 7. When setting a Google map using lat/long, address information will not be returned.', 'your-textdomain-here' ), 39 'show_api_key' => false, 40 'full_width' => true, 41 'default' => array( 42 'latitude' => 38.8976758, 43 'longitude' => - 77.03648229999999, 44 'zoom' => 7, 45 ), 46 ), 47 ), 48 ) 49 );