| 1 |
<?php |
| 2 |
/* |
| 3 |
Plugin Name: Leaflet Map |
| 4 |
Plugin URI: https://wordpress.org/plugins/leaflet-map/ |
| 5 |
Description: A plugin for creating a Leaflet JS map with a shortcode. Boasts two free map tile services and three free geocoders. |
| 6 |
Author: bozdoz |
| 7 |
Author URI: https://twitter.com/bozdoz/ |
| 8 |
Text Domain: leaflet-map |
| 9 |
Domain Path: /languages/ |
| 10 |
Version: 2.10.0 |
| 11 |
License: GPL2 |
| 12 |
|
| 13 |
Leaflet Map is free software: you can redistribute it and/or modify |
| 14 |
it under the terms of the GNU General Public License as published by |
| 15 |
the Free Software Foundation, either version 2 of the License, or |
| 16 |
any later version. |
| 17 |
|
| 18 |
Leaflet Map is distributed in the hope that it will be useful, |
| 19 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 20 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 21 |
GNU General Public License for more details. |
| 22 |
|
| 23 |
You should have received a copy of the GNU General Public License |
| 24 |
along with Leaflet Map. If not, see https://github.com/bozdoz/wp-plugin-leaflet-map/blob/master/LICENSE. |
| 25 |
*/ |
| 26 |
|
| 27 |
// Exit if accessed directly |
| 28 |
if ( !defined( 'ABSPATH' ) ) exit; |
| 29 |
|
| 30 |
define('LEAFLET_MAP__PLUGIN_FILE', __FILE__); |
| 31 |
define('LEAFLET_MAP__PLUGIN_DIR', plugin_dir_path( __FILE__ )); |
| 32 |
|
| 33 |
// import main class |
| 34 |
include_once(LEAFLET_MAP__PLUGIN_DIR . 'class.leaflet-map.php'); |
| 35 |
|
| 36 |
// uninstall hook |
| 37 |
register_uninstall_hook( __FILE__, array('Leaflet_Map', 'uninstall') ); |
| 38 |
|
| 39 |
add_action('init', array('Leaflet_Map', 'init')); |