>

', ']]>', $content); $pattern = '/]*>/Ui'; preg_match_all($pattern, $content , $matches, PREG_SET_ORDER); for ($i = 0; $i <= (count($matches) - 1); $i++) { $ancien = $matches[$i][0]; $new_img = $ancien . '' . "\r\n" . '
Voir les Exif
'."\r\n"; $new_img .= '
'."\r\n"; $new_img .= '
    '."\r\n"; $pattern2 = '#wp-image-[0-9]{1,3}#'; preg_match($pattern2, $ancien, $matches2); $attachment = substr($matches2[0],9); $metadata = wp_get_attachment_metadata( $attachment ); list($exif_list, $gm_lat, $gm_lng, $title_marker) = ListeExif($metadata, $attachment); //echo $gm_lat; $new_img .= $exif_list; $new_img .= '
'."\r\n"; //$new_img .= ''; //$new_img .= '
'."\r\n"; $map = "map" . $attachment; $new_img .= '
test
test
test
test
'."\r\n"; $new_img .= ''; $content = str_replace($ancien, $new_img, $content); //echo $content; } echo $content; ?> '' ) ); ?>
', '' ); ?>