ldc-sbv/wp-content/themes/sbv/page-template2.php
2021-09-21 15:01:08 +02:00

41 lines
788 B
PHP

<?php
/*
* Template Name: Template 2
*/
get_header(); // inclut la page header.php
while ( have_posts() ) : the_post();
?>
<div class="template deux content">
<div class="header grid grid--center grid--middle grid--flush">
<?php
// if ( has_post_thumbnail() ) {
// echo '<div class="imgHeader 1/2 grid__cell">';
// echo '<div class="img ">';
// the_post_thumbnail('medium');
// echo'</div>';
// echo'</div>';
// $titleClass="";
// }else{
// $titleClass="red";
// }
?>
<div class="title 1/2 grid__cell <?php echo $titleClass ?>">
<h1><?php the_title(); ?></h1>
</div>
</div>
<div class="contentTemplate">
<?php the_content(); ?>
</div>
</div>
<?php
// End the loop.
endwhile;
get_footer(); // inclut la page footer.php
?>