| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Plugin Name: Leaflet Map |
| 5 |
* Plugin URI: https://wordpress.org/plugins/leaflet-map/ |
| 6 |
* Description: A plugin for creating a Leaflet JS map with a shortcode. Boasts two free map tile services and three free geocoders. |
| 7 |
* Author: bozdoz |
| 8 |
* Author URI: https://twitter.com/bozdoz/ |
| 9 |
* Text Domain: leaflet-map |
| 10 |
* Domain Path: /languages/ |
| 11 |
* Version: 2.15.0 |
| 12 |
* License: GPL2 |
| 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')) { |
| 29 |
exit; |
| 30 |
} |
| 31 |
|
| 32 |
define('LEAFLET_MAP__PLUGIN_VERSION', '2.15.0'); |
| 33 |
define('LEAFLET_MAP__PLUGIN_FILE', __FILE__); |
| 34 |
define('LEAFLET_MAP__PLUGIN_DIR', plugin_dir_path(__FILE__)); |
| 35 |
|
| 36 |
// import main class |
| 37 |
require_once LEAFLET_MAP__PLUGIN_DIR . 'class.leaflet-map.php'; |
| 38 |
|
| 39 |
// uninstall hook |
| 40 |
register_uninstall_hook(__FILE__, array('Leaflet_Map', 'uninstall')); |
| 41 |
|
| 42 |
add_action('init', array('Leaflet_Map', 'init')); |