<?php
/*
Plugin Name: Events Manager GeoIP Add-On
Version: 0.0.1
Plugin URI: http://wp-events-plugin.com
Description: Add-On for the Events Manager plugin by Marcus Sykes
Author: Stefan Keller
Author URI: http://www.fern.ch
*/

/*
Copyright (c) 2012, Stefan Keller

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/

define('EM_GEOIP_DIR', dirname( __FILE__ ));

/* Only load the component if the Events Manager plugin is loaded and initialized. */
function em_geoip_init() {
	
	if ( version_compare(EM_VERSION, '5.27', '>=' ) ){
		require( dirname( __FILE__ ) . '/em-shortcode-ext.php' );
	}
	
}

add_action('init', 'em_geoip_init' );

?>