| 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 |
|