Advertisement
Guest User

cgmp-autoimage.php

a guest
Mar 28th, 2012
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.97 KB | None | 0 0
  1. <?php
  2. /*
  3. Plugin Name: Comprehensive Google Map Plugin AutoImage
  4. Plugin URI:
  5. 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.
  6. Version: 1.0.0
  7. Author: Truz
  8. Author URI:
  9. License: GPLv2
  10. */
  11.  
  12.  
  13. if ( !function_exists('cgmp_autoimage_require_dependancies') ):
  14.     function cgmp_autoimage_require_dependancies() {
  15.         define('CGMP_AUTOIMAGE_PLUGIN_BOOTSTRAP', __FILE__ );
  16.                 define('CGMP_AUTOIMAGE_PLUGIN_DIR', dirname(CGMP_AUTOIMAGE_PLUGIN_BOOTSTRAP));
  17.         require_once (CGMP_AUTOIMAGE_PLUGIN_DIR . '/shortcode.php');
  18.     }
  19. endif;
  20.  
  21. if ( !function_exists('cgmp_autoimage_add_shortcode_support') ):
  22.     function cgmp_autoimage_add_shortcode_support() {
  23.         add_shortcode('autoimage', 'cgmp_autoimage_shortcode_handler');
  24.     }
  25. endif;
  26.  
  27. /* BOOTSTRAPPING STARTS */
  28. cgmp_autoimage_require_dependancies();
  29. cgmp_autoimage_add_shortcode_support();
  30. /* BOOTSTRAPPING ENDS */
  31.  
  32.  
  33. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement