コード例 #1
0
 /**
  * Full post template tag.
  *
  * Returns a placeholder where a related map should display the full post content 
  * of the currently selected marker.
  *
  * @since 1.1
  * @link http://github.com/cyberhobo/wordpress-geo-mashup/wiki/Tag-Reference#Full_Post
  * 
  * @param string|array $args Template tag arguments.
  * @return string Placeholder HTML.
  */
 public static function full_post($args = null)
 {
     $args = wp_parse_args($args);
     $for_map = 'gm';
     if (!empty($args['for_map'])) {
         $for_map = $args['for_map'];
     }
     // It's nice if click-to-load works in the full post display
     self::$add_loader_script = true;
     return '<div id="' . $for_map . '-post"></div>';
 }