forked from benhuson/WP-Geo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwp-geo.php
More file actions
49 lines (43 loc) · 1.84 KB
/
wp-geo.php
File metadata and controls
49 lines (43 loc) · 1.84 KB
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
<?php
/*
Plugin Name: WP Geo
Plugin URI: http://www.wpgeo.com/
Description: Adds location maps to your posts, pages and custom post types.
Version: 3.3
Author: Ben Huson
Author URI: http://www.benhuson.co.uk/
Minimum WordPress Version Required: 3.1
Tested up to: 3.5.1
*/
// 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/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();