Permalink
Fetching contributors…
Cannot retrieve contributors at this time
61 lines (51 sloc) 2.15 KB
<?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
Version: 3.4
Tested up to: 4.3
Minimum WordPress Version Required: 3.9
Released under the GPL:
http://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();