forked from bozdoz/wp-plugin-leaflet-map
-
Notifications
You must be signed in to change notification settings - Fork 0
/
leaflet-map.php
42 lines (36 loc) · 1.46 KB
/
leaflet-map.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
<?php
/**
* Plugin Name: Leaflet Map
* Plugin URI: https://wordpress.org/plugins/leaflet-map/
* Description: A plugin for creating a Leaflet JS map with a shortcode. Boasts two free map tile services and three free geocoders.
* Author: bozdoz
* Author URI: https://bozdoz.com/
* Text Domain: leaflet-map
* Domain Path: /languages/
* Version: 3.0.5
* License: GPL2
* Leaflet Map is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* any later version.
*
* Leaflet Map is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Leaflet Map. If not, see https://github.com/bozdoz/wp-plugin-leaflet-map/blob/master/LICENSE.
*/
// Exit if accessed directly
if (!defined('ABSPATH')) {
exit;
}
define('LEAFLET_MAP__PLUGIN_VERSION', '3.0.5');
define('LEAFLET_MAP__PLUGIN_FILE', __FILE__);
define('LEAFLET_MAP__PLUGIN_DIR', plugin_dir_path(__FILE__));
// import main class
require_once LEAFLET_MAP__PLUGIN_DIR . 'class.leaflet-map.php';
// uninstall hook
register_uninstall_hook(__FILE__, array('Leaflet_Map', 'uninstall'));
add_action('init', array('Leaflet_Map', 'init'));