| @@ -1,57 +1,54 @@ | ||
| 1 | -<?php | |
| 2 | - | |
| 3 | - /* | |
| 4 | - * Plugin Name: WP MapIt | |
| 5 | - * Plugin URI: http://wp-mapit.chandnipatel.in | |
| 6 | - * Description: WP MapIt is a Wordpress plugin to display Open street maps using leaflet on your Wordpress site | |
| 7 | - * Version: 2.4 | |
| 8 | - * Author: Chandni Patel | |
| 9 | - * Author URI: http://chandnipatel.in/ | |
| 10 | - * Developer: Chandni Patel | |
| 11 | - * Developer URI: http://chandnipatel.in/ | |
| 12 | - * Text Domain: wp-mapit | |
| 13 | - * Domain Path: wp_mapit/languages | |
| 14 | - * License: GNU General Public License v3.0 | |
| 15 | - * License URI: http://www.gnu.org/licenses/gpl-3.0.html | |
| 16 | - */ | |
| 17 | - | |
| 18 | - /** | |
| 19 | - * Exit if accessed directly | |
| 20 | - */ | |
| 21 | - if( ! defined( 'ABSPATH' ) ) { | |
| 22 | - die('Access Denied'); | |
| 23 | - } | |
| 24 | - | |
| 25 | - /** | |
| 26 | - * Define constants used in the plugin | |
| 27 | - */ | |
| 28 | - define( 'WP_MAPIT_DIR', plugin_dir_path(__FILE__) . 'wp_mapit/' ); | |
| 29 | - define( 'WP_MAPIT_URL', plugin_dir_url(__FILE__) . 'wp_mapit/' ); | |
| 30 | - define( 'WP_MAPIT_TEXTDOMAIN', 'wp-mapit' ); | |
| 31 | - | |
| 32 | - /** | |
| 33 | - * Include the core file of the plugin | |
| 34 | - */ | |
| 35 | - require_once(WP_MAPIT_DIR . 'classes/class.wp_mapit.php'); | |
| 36 | - | |
| 37 | - if(!function_exists('wp_mapit_init')) { | |
| 38 | - | |
| 39 | - /** | |
| 40 | - * Function to initialize the plugin. | |
| 41 | - * @since 1.0 | |
| 42 | - * @return class object | |
| 43 | - */ | |
| 44 | - function wp_mapit_init() { | |
| 45 | - | |
| 46 | - /* Loading the textdomain */ | |
| 47 | - load_plugin_textdomain( 'wp-mapit', FALSE, basename( dirname( __FILE__ ) ) . '/wp_mapit/languages' ); | |
| 48 | - | |
| 49 | - /* Initialize the base class of the plugin */ | |
| 50 | - return wp_mapit::instance(); | |
| 51 | - } | |
| 52 | - } | |
| 53 | - | |
| 54 | - /** | |
| 55 | - * Create the main object of the plugin when the plugins are loaded | |
| 56 | - */ | |
| 1 | +<?php | |
| 2 | + | |
| 3 | + /* | |
| 4 | + * Plugin Name: WP MapIt | |
| 5 | + * Plugin URI: http://wp-mapit.chandnipatel.in | |
| 6 | + * Description: WP MapIt is a Wordpress plugin to display Open street maps using leaflet on your Wordpress site | |
| 7 | + * Version: 2.2 | |
| 8 | + * Author: Chandni Patel | |
| 9 | + * Author URI: http://chandnipatel.in/ | |
| 10 | + * Developer: Chandni Patel | |
| 11 | + * Developer URI: http://chandnipatel.in/ | |
| 12 | + * Text Domain: wp-mapit | |
| 13 | + * Domain Path: wp_mapit/languages | |
| 14 | + * License: GNU General Public License v3.0 | |
| 15 | + * License URI: http://www.gnu.org/licenses/gpl-3.0.html | |
| 16 | + */ | |
| 17 | + | |
| 18 | + /** | |
| 19 | + * Exit if accessed directly | |
| 20 | + */ | |
| 21 | + if( ! defined( 'ABSPATH' ) ) { | |
| 22 | + die('Access Denied'); | |
| 23 | + } | |
| 24 | + | |
| 25 | + /** | |
| 26 | + * Define constants used in the plugin | |
| 27 | + */ | |
| 28 | + define( 'WP_MAPIT_DIR', plugin_dir_path(__FILE__) . 'wp_mapit/' ); | |
| 29 | + define( 'WP_MAPIT_URL', plugin_dir_url(__FILE__) . 'wp_mapit/' ); | |
| 30 | + define( 'WP_MAPIT_TEXTDOMAIN', 'wp-mapit' ); | |
| 31 | + | |
| 32 | + /** | |
| 33 | + * Include the core file of the plugin | |
| 34 | + */ | |
| 35 | + require_once(WP_MAPIT_DIR . 'classes/class.wp_mapit.php'); | |
| 36 | + | |
| 37 | + if(!function_exists('wp_mapit_init')) { | |
| 38 | + | |
| 39 | + /** | |
| 40 | + * Function to initialize the plugin. | |
| 41 | + * @since 1.0 | |
| 42 | + * @return class object | |
| 43 | + */ | |
| 44 | + function wp_mapit_init() | |
| 45 | + { | |
| 46 | + /* Initialize the base class of the plugin */ | |
| 47 | + return wp_mapit::instance(); | |
| 48 | + } | |
| 49 | + } | |
| 50 | + | |
| 51 | + /** | |
| 52 | + * Create the main object of the plugin when the plugins are loaded | |
| 53 | + */ | |
| 57 | 54 | add_action('plugins_loaded', 'wp_mapit_init'); |