Commit 1aea6c50 authored by Mathieu Mangeot's avatar Mathieu Mangeot
Browse files

ajout du screenshot et affichage des articles (the Loop)

parent 05c13719
<p>Le footer.php commence ici</p>
<p>Le footer.php commence ici. La barre d'en-tête d'admin de WP s'ajoute dans le footer.</p>
<?php wp_footer(); ?>
</body>
</html>
......@@ -8,3 +8,4 @@
<?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>
</head>
<body>
<?php
// pris du thème ltt, à comprendre
//wp_redirect(site_url());
//exit;
?>
<?php get_header(); ?>
<p>Le header est terminé. Il n'y a que le contenu du head</p>
<section id='content'>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="post">
<!-- Display the Title as a link to the Post's permalink. -->
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<!-- Display the date (November 16th, 2009 format) and a link to other posts by this posts author. -->
<small><?php the_time('F jS, Y'); ?> by <?php the_author_posts_link(); ?></small>
<?php get_sidebar(); ?>
<!-- Display the Post's content in a div box. -->
<div class="entry">
<?php the_content(); ?>
</div>
<!-- Display a comma separated list of the Post's Categories. -->
<p class="postmetadata"><?php _e( 'Posted in' ); ?> <?php the_category( ', ' ); ?></p>
</div> <!-- closes the first div box -->
<?php endwhile; else : ?>
<p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
<?php endif; ?>
</section>
<p>voici la sidebar:</p>
<?php get_sidebar(); ?>
<p>Fin de la sidebar</p>
<?php get_footer(); ?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment