Advertisement
cipher87

Remove Gmaps

Feb 22nd, 2020
1,637
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.94 KB | None | 0 0
  1. class av_google_maps
  2. {
  3.   const API_URL         =   'https://maps.googleapis.com/maps/api/js';
  4.   const API_VERSION     =   '3.38';            
  5.   const MAPS_SEARCH_URL =   'https://www.google.com/maps/search/';
  6.   const AJAX_NONCE      =   'av_google_maps_nonce';
  7.  
  8.   static private $_instance = null;
  9.   protected $key;
  10.   protected $verified_key;
  11.   protected $usage_count;
  12.   protected $unconditionally_count;
  13.   protected $maps_array;
  14.   protected $loading_prohibited;
  15.  
  16.   static public function instance()
  17.   {
  18.     if( is_null( av_google_maps::$_instance ) )
  19.     {
  20.       av_google_maps::$_instance = new av_google_maps();
  21.     }
  22.    
  23.     return av_google_maps::$_instance;
  24.   }    
  25.  
  26.   protected function __construct( $key = '' )
  27.   {
  28.     $this->key = '';
  29.     $this->verified_key = '';
  30.     $this->usage_count = 0;
  31.     $this->unconditionally_count = 0;
  32.     $this->maps_array = array();
  33.     $this->loading_prohibited = null;
  34.   }
  35.  
  36.   public function __destruct() {}
  37.   public function handler_wp_register_scripts() {}
  38.   public function handler_wp_enqueue_scripts()  {}
  39.   public function handler_wp_admin_enqueue_scripts()    {}
  40.   public function is_loading_prohibited()   {}
  41.   public function add_usage( $unconditionally = 'unconditionally' ) {}
  42.   static public function api_url( $api_key = '', $callback = '' )   {}
  43.   static public function api_destination_url( $latitude, $longitude )   {}
  44.   static public function gmap_js_globals()  {}
  45.   public function handler_wp_footer()   {}
  46.   public function handler_wp_admin_footer() {}
  47.   protected function check_api_key() {}
  48.   public function get_key() {}
  49.   protected function get_last_verified_key() {}
  50.   protected function store_key( $key ) {}
  51.   protected function delete_key()   {}
  52.   public function add_map( array $data, $add, $id = '' ) {}
  53.   public function get_maps_count() {}
  54.   public function backend_html( $api_key = '', $ajax = true, $valid_key = false )   {}
  55. }
  56.  
  57. function Av_Google_Maps()
  58. {
  59.   return av_google_maps::instance();
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement