| Server IP : 103.249.100.196 / Your IP : 216.73.216.194 Web Server : Apache System : Linux cp196.maytech.vn 5.14.0-687.66.2.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 6 16:20:31 EST 2026 x86_64 User : dlsafepha ( 1078) PHP Version : 8.2.36 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home2/dlsafepha/www/wp-content/plugins/redux-framework/sample/sections/extensions/ |
Upload File : |
<?php /** * Redux Google Maps Sample config. * For full documentation, please visit: https://devs.redux.io * * @package Redux */ // phpcs:disable defined( 'ABSPATH' ) || exit; Redux::set_section( $opt_name, array( 'title' => esc_html__( 'Google Maps', 'your-textdomain-here' ), 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-extensions/google-maps.html" target="_blank">https://devs.redux.io/core-extensions/google-maps.html</a>', 'subsection' => true, 'fields' => array( array( 'id' => 'location_geocode', 'type' => 'google_maps', 'title' => esc_html__( 'Google Maps', 'your-textdomain-here' ), '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' ), 'show_api_key' => true, 'default' => array( 'zoom' => '17', // Zoom far: 3 zoom close 17. 'street_number' => '1600', // Address. 'route' => 'Pennsylvania Avenue', // STREET. 'locality' => 'Washington', // CITY. 'administrative_area_level_1' => 'DC', // STATE. 'postal_code' => '20500', 'country' => 'United States', ), ), array( 'id' => 'location_geocode2', 'type' => 'google_maps', 'title' => esc_html__( 'Google Maps', 'your-textdomain-here' ), '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' ), 'show_api_key' => false, 'full_width' => true, 'default' => array( 'latitude' => 38.8976758, 'longitude' => - 77.03648229999999, 'zoom' => 7, ), ), ), ) ); // phpcs:enable