1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| <?php global $wp_query;
if(is_object($wp_query->queried_object) && $wp_query->queried_object->ID)
{
$quatre=get_post_meta($wp_query->queried_object->ID, "babelio", true);
$text=file_get_contents("$quatre");
$text = str_replace(array("\r\n", "\r", "\n", PHP_EOL, chr(10), chr(13), chr(10).chr(13)), "", $text);
echo "<a href='#quatrieme_pop' class='fancybox'><img src='".$lien."' alt='' width='193' height='300' border ='0' style='box-shadow: 10px 10px 10px 10px #cccccc'></a> ";
}
?>
<div style="display:none" class="fancybox-hidden">
<div id="quatrieme_pop" style="width:300px">
<?php
if (preg_match_all('/<div id="d_bio".*>(.*)<\/div>/U', $text, $quatrieme))
{
echo $quatrieme[0][0];
}
?>
</div>
</div> |
Partager