Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Plugin Name: Comprehensive Google Map Plugin AutoImage
- Plugin URI:
- Description: Add a shortcode to automatically display on a map all the images of the post based on their exif location. Require Comprehensive Google Map Plugin.
- Version: 1.0.0
- Author: Truz
- Author URI:
- License: GPLv2
- */
- if ( !function_exists('cgmp_autoimage_require_dependancies') ):
- function cgmp_autoimage_require_dependancies() {
- define('CGMP_AUTOIMAGE_PLUGIN_BOOTSTRAP', __FILE__ );
- define('CGMP_AUTOIMAGE_PLUGIN_DIR', dirname(CGMP_AUTOIMAGE_PLUGIN_BOOTSTRAP));
- require_once (CGMP_AUTOIMAGE_PLUGIN_DIR . '/shortcode.php');
- }
- endif;
- if ( !function_exists('cgmp_autoimage_add_shortcode_support') ):
- function cgmp_autoimage_add_shortcode_support() {
- add_shortcode('autoimage', 'cgmp_autoimage_shortcode_handler');
- }
- endif;
- /* BOOTSTRAPPING STARTS */
- cgmp_autoimage_require_dependancies();
- cgmp_autoimage_add_shortcode_support();
- /* BOOTSTRAPPING ENDS */
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement