' . __('Please install the latest version of our free Update Notifications plugin which helps you stay up-to-date with the most stable, secure versions of WPMU DEV themes and plugins. More information »', 'wpmudev') . '

'; } } /* --------------------------------------------------------------------- */ define ('AGM_PLUGIN_SELF_DIRNAME', basename(dirname(__FILE__)), true); //Setup proper paths/URLs and load text domains if (is_multisite() && defined('WPMU_PLUGIN_URL') && defined('WPMU_PLUGIN_DIR') && file_exists(WPMU_PLUGIN_DIR . '/' . basename(__FILE__))) { define ('AGM_PLUGIN_LOCATION', 'mu-plugins', true); define ('AGM_PLUGIN_BASE_DIR', WPMU_PLUGIN_DIR, true); define ('AGM_PLUGIN_URL', WPMU_PLUGIN_URL, true); $textdomain_handler = 'load_muplugin_textdomain'; } else if (defined('WP_PLUGIN_URL') && defined('WP_PLUGIN_DIR') && file_exists(WP_PLUGIN_DIR . '/' . AGM_PLUGIN_SELF_DIRNAME . '/' . basename(__FILE__))) { define ('AGM_PLUGIN_LOCATION', 'subfolder-plugins', true); define ('AGM_PLUGIN_BASE_DIR', WP_PLUGIN_DIR . '/' . AGM_PLUGIN_SELF_DIRNAME, true); define ('AGM_PLUGIN_URL', WP_PLUGIN_URL . '/' . AGM_PLUGIN_SELF_DIRNAME, true); $textdomain_handler = 'load_plugin_textdomain'; } else if (defined('WP_PLUGIN_URL') && defined('WP_PLUGIN_DIR') && file_exists(WP_PLUGIN_DIR . '/' . basename(__FILE__))) { define ('AGM_PLUGIN_LOCATION', 'plugins', true); define ('AGM_PLUGIN_BASE_DIR', WP_PLUGIN_DIR, true); define ('AGM_PLUGIN_URL', WP_PLUGIN_URL, true); $textdomain_handler = 'load_plugin_textdomain'; } else { // No textdomain is loaded because we can't determine the plugin location. // No point in trying to add textdomain to string and/or localizing it. wp_die(__('There was an issue determining where Google Maps plugin is installed. Please reinstall.')); } $textdomain_handler('agm_google_maps', false, AGM_PLUGIN_SELF_DIRNAME . '/languages/'); require_once AGM_PLUGIN_BASE_DIR . '/lib/class_agm_map_model.php'; require_once AGM_PLUGIN_BASE_DIR . '/lib/class_agm_maps_widget.php'; require_once AGM_PLUGIN_BASE_DIR . '/lib/class_agm_plugin_installer.php'; register_activation_hook(__FILE__, array(AgmPluginInstaller, 'install')); AgmPluginInstaller::check(); add_action('widgets_init', create_function('', "register_widget('AgmMapsWidget');")); if (is_admin()) { require_once AGM_PLUGIN_BASE_DIR . '/lib/class_agm_admin_form_renderer.php'; require_once AGM_PLUGIN_BASE_DIR . '/lib/class_agm_admin_maps.php'; AgmAdminMaps::serve(); } else { require_once AGM_PLUGIN_BASE_DIR . '/lib/class_agm_marker_replacer.php'; require_once AGM_PLUGIN_BASE_DIR . '/lib/class_agm_user_maps.php'; AgmUserMaps::serve(); }