PluginProbe
Out of the Block: OpenStreetMap / trunk
Out of the Block: OpenStreetMap vtrunk
2.13.0 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.8.9 2.9.0 untagged-6cc4be1f524988c8d317 trunk 0.2.8.2 1.0 1.0.1 1.1 1.2 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 2.0.0 2.0.1 2.0.2 2.1.0 All 40 releases
ootb-openstreetmap / ootb-openstreetmap.php

ootb-openstreetmap.php in Out of the Block: OpenStreetMap trunk, at ootb-openstreetmap.php

38 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Out of the Block: OpenStreetMap
4 * Plugin URI: https://wordpress.org/plugins/ootb-openstreetmap/
5 * Description: A map block for the Gutenberg Editor using OpenStreetMaps and Leaflet that needs no API keys and works out of the box.
6 * Requires at least: 6.6
7 * Requires PHP: 8.1
8 * Version: 2.13.0
9 * Author: Giorgos Sarigiannidis
10 * Author URI: https://www.gsarigiannidis.gr
11 * License: GPL-2.0-or-later
12 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
13 * Text Domain: ootb-openstreetmap
14 *
15 * @package ootb-openstreetmap
16 */
17
18 define( 'OOTB_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
19 define( 'OOTB_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
20 define( 'OOTB_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
21
22 const OOTB_BLOCK_NAME = 'ootb/openstreetmap';
23 const OOTB_VERSION = '2.13.0';
24 const OOTB_SCRIPT_VERSION = [
25 'leaflet' => '1.9.4',
26 'leaflet-gesture-handling' => '1.4.4',
27 ];
28 const OOTB_PLUGIN_INC = OOTB_PLUGIN_PATH . 'includes/';
29
30 // Require Composer autoloader if it exists.
31 if ( file_exists( OOTB_PLUGIN_PATH . 'vendor/autoload.php' ) ) {
32 require_once OOTB_PLUGIN_PATH . 'vendor/autoload.php';
33 }
34
35 require_once OOTB_PLUGIN_INC . '/core.php';
36 require_once OOTB_PLUGIN_INC . '/abilities.php';
37 \OOTB\Core\setup();
38