Location: PHPKode > scripts > googlemapsForWP > googlemapsforp/ui/googlemapsForWPVisitor.php
<?php
/**
 * @package googlemapsForWP
 * @author webcat
*/
//#################################################################
// Stop direct call
//if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); }
//#################################################################
if (!class_exists('googlemapsForWPVisitor')) {
/**
 *
 * sets up all the links into wordpress and provides access to the output functions
 */
include_once googlemapsForWP::pluginDir().DIRECTORY_SEPARATOR.'business'.DIRECTORY_SEPARATOR.'googlemapsForWPMaps.php';
   class googlemapsForWPVisitor {
        protected $maps;
       function __construct($args) {
            $this->maps=new googlemapsForWPMaps();
       }
       function getShortCode($atts, $content = null){
           extract(shortcode_atts(array("mapnumber" => 'mapnumber'), $atts));
           $map = $this->maps->getMap($atts['mapnumber']);
           $img="<img src='".$map->createURL('1')."' alt='".$map->getParam('mapdescription')."' />";
           echo $img;
       }
   }
}
?>
Return current item: googlemapsForWP