PluginProbe
CBX Map for Google Map & OpenStreetMap / 1.1.8
CBX Map for Google Map & OpenStreetMap v1.1.8
trunk 1.1.10 1.1.11 1.1.12 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5
cbxgooglemap / cbxgooglemap.php

cbxgooglemap.php in CBX Map for Google Map & OpenStreetMap 1.1.8, at cbxgooglemap.php

85 lines 2.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * The plugin bootstrap file
5 *
6 * This file is read by WordPress to generate the plugin information in the plugin
7 * admin area. This file also includes all of the dependencies used by the plugin,
8 * registers the activation and deactivation functions, and defines a function
9 * that starts the plugin.
10 *
11 * @link https://codeboxr.com
12 * @since 1.0.0
13 * @package Cbxgooglemap
14 *
15 * @wordpress-plugin
16 * Plugin Name: CBX Map for Google Map & OpenStreetMap
17 * Plugin URI: https://codeboxr.com/product/cbx-google-map-for-wordpress/
18 * Description: Easy responsive embed of google map and openstreet map
19 * Version: 1.1.8
20 * Author: Codeboxr
21 * Author URI: https://codeboxr.com
22 * License: GPL-2.0+
23 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
24 * Text Domain: cbxgooglemap
25 * Domain Path: /languages
26 */
27
28 // If this file is called directly, abort.
29 if ( ! defined( 'WPINC' ) ) {
30 die;
31 }
32
33
34 defined('CBXGOOGLEMAP_PLUGIN_NAME') or define( 'CBXGOOGLEMAP_PLUGIN_NAME', 'cbxgooglemap' );
35 defined('CBXGOOGLEMAP_PLUGIN_VERSION') or define( 'CBXGOOGLEMAP_PLUGIN_VERSION', '1.1.8' );
36 defined('CBXGOOGLEMAP_BASE_NAME') or define('CBXGOOGLEMAP_BASE_NAME', plugin_basename(__FILE__));
37 defined('CBXGOOGLEMAP_ROOT_PATH') or define('CBXGOOGLEMAP_ROOT_PATH', plugin_dir_path( __FILE__ ));
38 defined('CBXGOOGLEMAP_ROOT_URL') or define('CBXGOOGLEMAP_ROOT_URL', plugin_dir_url( __FILE__ ));
39
40
41 /**
42 * The code that runs during plugin activation.
43 * This action is documented in includes/class-cbxgooglemap-activator.php
44 */
45 function activate_cbxgooglemap() {
46 require_once plugin_dir_path( __FILE__ ) . 'includes/class-cbxgooglemap-activator.php';
47 CBXGoogleMap_Activator::activate();
48 }
49
50 /**
51 * The code that runs during plugin deactivation.
52 * This action is documented in includes/class-cbxgooglemap-deactivator.php
53 */
54 function deactivate_cbxgooglemap() {
55 require_once plugin_dir_path( __FILE__ ) . 'includes/class-cbxgooglemap-deactivator.php';
56 CBXGoogleMap_Deactivator::deactivate();
57 }
58
59 register_activation_hook( __FILE__, 'activate_cbxgooglemap' );
60 register_deactivation_hook( __FILE__, 'deactivate_cbxgooglemap' );
61
62 /**
63 * The core plugin class that is used to define internationalization,
64 * admin-specific hooks, and public-facing site hooks.
65 */
66
67 require plugin_dir_path( __FILE__ ) . 'includes/class-cbxgooglemap.php';
68
69 /**
70 * Begins execution of the plugin.
71 *
72 * Since everything within the plugin is registered via hooks,
73 * then kicking off the plugin from this point in the file does
74 * not affect the page life cycle.
75 *
76 * @since 1.0.0
77 */
78 function run_cbxgooglemap() {
79
80 $plugin = new Cbxgooglemap();
81 $plugin->run();
82
83 }
84 run_cbxgooglemap();
85