-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathwp-geo.php
62 lines (53 loc) · 2.2 KB
/
wp-geo.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
/*
Plugin Name: WP Geo
Plugin URI: https://wordpress.org/plugins/wp-geo/
Description: Adds location maps to your posts, pages and custom post types.
Author: Ben Huson
Author URI: https://github.com/benhuson/wp-geo
Text Domain: wp-geo
Domain Path: /languages
Version: 3.5.1
Tested up to: 5.4
Minimum WordPress Version Required: 3.9
Released under the GPL:
https://www.opensource.org/licenses/gpl-license.php
*/
// WP Geo plugin directory and url paths. props Alain (alm)
define( 'WPGEO_SUBDIR', '/' . str_replace( basename( __FILE__ ), '', plugin_basename( __FILE__ ) ) );
define( 'WPGEO_URL', plugins_url( WPGEO_SUBDIR ) );
define( 'WPGEO_DIR', plugin_dir_path( __FILE__ ) );
// Constants
if ( ! defined( 'WPGEO_LATITUDE_META' ) ) {
define( 'WPGEO_LATITUDE_META', '_wp_geo_latitude' );
}
if ( ! defined( 'WPGEO_LONGITUDE_META' ) ) {
define( 'WPGEO_LONGITUDE_META', '_wp_geo_longitude' );
}
define( 'WPGEO_TITLE_META', '_wp_geo_title' );
define( 'WPGEO_MARKER_META', '_wp_geo_marker' );
define( 'WPGEO_MAP_SETTINGS_META', '_wp_geo_map_settings' );
// Language
load_plugin_textdomain( 'wp-geo', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
// Includes
include_once( WPGEO_DIR . 'includes/wp-geo.php' );
include_once( WPGEO_DIR . 'includes/query.php' );
include_once( WPGEO_DIR . 'includes/api.php' );
include_once( WPGEO_DIR . 'includes/marker.php' );
include_once( WPGEO_DIR . 'includes/markers.php' );
include_once( WPGEO_DIR . 'includes/maps.php' );
include_once( WPGEO_DIR . 'includes/map.php' );
include_once( WPGEO_DIR . 'includes/polyline.php' );
include_once( WPGEO_DIR . 'includes/point.php' );
include_once( WPGEO_DIR . 'includes/coord.php' );
include_once( WPGEO_DIR . 'includes/functions.php' );
include_once( WPGEO_DIR . 'includes/templates.php' );
include_once( WPGEO_DIR . 'includes/shortcodes.php' );
include_once( WPGEO_DIR . 'includes/feeds.php' );
include_once( WPGEO_DIR . 'widgets/wpgeo-widget.php' );
include_once( WPGEO_DIR . 'widgets/contextual-map.php' );
include_once( WPGEO_DIR . 'widgets/category-map.php' );
include_once( WPGEO_DIR . 'widgets/recent-locations.php' );
// Init.
global $wpgeo;
$wpgeo = new WPGeo();