-
Notifications
You must be signed in to change notification settings - Fork 3
/
osm-tiles-proxy.php
35 lines (27 loc) · 1.03 KB
/
osm-tiles-proxy.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
<?php
/*
* Plugin Name: Tiles Proxy for OpenStreetMap
* Plugin URI: https://wordpress.org/plugins/osm-tiles-proxy
* Description: Helper plugin for embedding OpenStreetMaps
* Version: 2.3.2
* Requires at least: 6.0
* Requires PHP: 7.3
* Author: MOEWE
* Author URI: https://www.moerchen.io/
* Text Domain: osm-tiles-proxy
*/
use MOEWE\OSM_Tiles_proxy\Customizer;
use MOEWE\OSM_Tiles_proxy\Proxy;
define('OSM_PROXY_BASE_URL', plugins_url('/', __FILE__));
define('OSM_PROXY_BASE_DIR', __DIR__ . DIRECTORY_SEPARATOR);
include "includes/osm-tiles-proxy.class.php";
include "includes/osm-tiles-proxy.customizer-class.php";
include "includes/plugin.leaflet-map.php";
new Proxy();
new Customizer();
add_action('wp_enqueue_scripts', 'osm_tiles_proxy_register_leaflet');
function osm_tiles_proxy_register_leaflet()
{
wp_register_style('leaflet-js', apply_filters('osm_tiles_proxy_get_leaflet_js_url', false), false, '1.9.4');
wp_register_script('leaflet-js', apply_filters('osm_tiles_proxy_get_leaflet_css_url', false), array(), '1.9.4');
}