31 lines
452 B
PHP
31 lines
452 B
PHP
<?php
|
|
/*
|
|
* Template Name: Template 1
|
|
*/
|
|
get_header(); // inclut la page header.php
|
|
|
|
while ( have_posts() ) : the_post();
|
|
?>
|
|
|
|
<div class="template un content">
|
|
|
|
<div class="left">
|
|
<?php
|
|
if ( has_post_thumbnail() ) {
|
|
the_post_thumbnail('full');
|
|
}
|
|
?>
|
|
</div>
|
|
|
|
<div class="right">
|
|
<h1><?php the_title(); ?></h1>
|
|
<?php the_content(); ?>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<?php
|
|
// End the loop.
|
|
endwhile;
|
|
get_footer(); // inclut la page footer.php
|
|
?>
|