gps($exif["GPSLatitude"], $exif['GPSLatitudeRef']); $location['longitude'] = $this->gps($exif["GPSLongitude"], $exif['GPSLongitudeRef']); $location['hasLocation'] = true; } else { $location['hasLocation'] = false; } add_post_meta($post_thumbnail_id,'EXIF_location',$location) || update_post_meta($post_thumbnail_id,'EXIF_location',$location); } return $location; } function feed_addNameSpace() { echo 'xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"'."\n"; } function feed_addMeta($for_comments) { $post_thumbnail_id = get_post_thumbnail_id( $GLOBALS['post']->ID ); $location = $this->getLocationFromDBorExif($post_thumbnail_id); if (!$for_comments && $location['hasLocation']) { echo "".$location['latitude']."\n"; echo "".$location['longitude']."\n"; } } function addgeorss_PluginLinks($links, $file) { $base = plugin_basename(__FILE__); if ($file == $base) { $links[] = '' . __('A review would be appriciated.',self::FS_TEXTDOMAIN) . ''; } return $links; } function myTextDomain() { load_plugin_textdomain( self::FS_TEXTDOMAIN, false, dirname(plugin_basename(__FILE__)).'/languages/' ); } } $addgeorss = new addgeorss(); ?>