Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class av_google_maps
- {
- const API_URL = 'https://maps.googleapis.com/maps/api/js';
- const API_VERSION = '3.38';
- const MAPS_SEARCH_URL = 'https://www.google.com/maps/search/';
- const AJAX_NONCE = 'av_google_maps_nonce';
- static private $_instance = null;
- protected $key;
- protected $verified_key;
- protected $usage_count;
- protected $unconditionally_count;
- protected $maps_array;
- protected $loading_prohibited;
- static public function instance()
- {
- if( is_null( av_google_maps::$_instance ) )
- {
- av_google_maps::$_instance = new av_google_maps();
- }
- return av_google_maps::$_instance;
- }
- protected function __construct( $key = '' )
- {
- $this->key = '';
- $this->verified_key = '';
- $this->usage_count = 0;
- $this->unconditionally_count = 0;
- $this->maps_array = array();
- $this->loading_prohibited = null;
- }
- public function __destruct() {}
- public function handler_wp_register_scripts() {}
- public function handler_wp_enqueue_scripts() {}
- public function handler_wp_admin_enqueue_scripts() {}
- public function is_loading_prohibited() {}
- public function add_usage( $unconditionally = 'unconditionally' ) {}
- static public function api_url( $api_key = '', $callback = '' ) {}
- static public function api_destination_url( $latitude, $longitude ) {}
- static public function gmap_js_globals() {}
- public function handler_wp_footer() {}
- public function handler_wp_admin_footer() {}
- protected function check_api_key() {}
- public function get_key() {}
- protected function get_last_verified_key() {}
- protected function store_key( $key ) {}
- protected function delete_key() {}
- public function add_map( array $data, $add, $id = '' ) {}
- public function get_maps_count() {}
- public function backend_html( $api_key = '', $ajax = true, $valid_key = false ) {}
- }
- function Av_Google_Maps()
- {
- return av_google_maps::instance();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement