<?php
/**
 * Template part for displaying page content in page.php
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package vdaube
 */

?>

<br class="p-clear">

<section id="bio" class="encadres-home">
    <h2>Bio</h2>	
	<?php
      $id = 50;
      $billet = get_post($id);
      $extrait = $billet->post_excerpt;
    ?>
    <?php echo "<p>$extrait</p>"; ?>	
</section>
	<?php 
	$url = get_permalink( $id );
	echo "<a class='fleche-home' href='$url'>";
	?>
    <img src="<?php echo get_stylesheet_directory_uri(); ?>/img/picto-fleche-rouge.svg" alt="Facebook" onerror="this.removeAttribute('onerror'); this.src='https://valeriedaube.com/wp-content/themes/vdaube-child/img/picto-fleche-rouge.png'"/>
</a>


<?php echo get_the_post_thumbnail( 9, 'medium', array( 'id' => 'img-breves', 'alt' => 'Les actualités de Valérie Daubé, artiste peintre plasticienne' ) ); ?>
<section id="breves" class="encadres-home">
    <h2>Brèves</h2>
    <?php 
	  $id = 9;
      $billet = get_post($id);
      $extrait = $billet->post_excerpt;
    ?>

    <?php echo "<p>$extrait</p>"; ?>

</section>
	<?php 
	$url = get_permalink( $id );
	echo "<a class='fleche-home' href='$url'>";
	?>
       <img src="<?php echo get_stylesheet_directory_uri(); ?>/img/picto-fleche-rouge.svg" alt="Facebook" onerror="this.removeAttribute('onerror'); this.src='https://valeriedaube.com/wp-content/themes/vdaube-child/img/picto-fleche-rouge.png'"/>
</a>

<?php get_template_part( 'template-parts/menu', 'univers' ); ?>

<div id="expo-permanente" class="cadre-expo">
	<?php 
	$id = 82;
	$url = get_permalink( $id );
	echo "<a class='lien-expo' href='$url'>";
	?>
    
      <div class="interieur-expo">
        <h2>expo permanente</h2>
        <img src="<?php echo get_stylesheet_directory_uri(); ?>/img/picto-fleche-blanche.svg" alt="Facebook" onerror="this.removeAttribute('onerror'); this.src='https://valeriedaube.com/wp-content/themes/vdaube-child/img/ppicto-fleche-blanche.svg'"/>
      </div>
    </a>  
</div>

<div id="expo-temporaire" class="cadre-expo">
		<?php 
	$id = 84;
	$url = get_permalink( $id );
	echo "<a class='lien-expo' href='$url'>";
	?>
      <div class="interieur-expo">
        <h2>expos temporaires</h2>
        <img src="<?php echo get_stylesheet_directory_uri(); ?>/img/picto-fleche-blanche.svg" alt="Facebook" onerror="this.removeAttribute('onerror'); this.src='https://valeriedaube.com/wp-content/themes/vdaube-child/img/ppicto-fleche-blanche.svg'"/>
       </div> 
     </a>       
</div>

<br class="p-clear">
