Last active
August 29, 2015 14:03
-
-
Save partageit/3f687f511ea6ef4cebe7 to your computer and use it in GitHub Desktop.
Partage-it.com : template monopage pour Twenty Thirteen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
Template name: Mono page | |
Copié depuis page.php de Twenty Thirteen | |
*/ | |
get_header("mono-page"); ?> | |
<div id="primary" class="content-area"> | |
<div id="content" class="site-content" role="main"> | |
<?php /* The loop */ ?> | |
<?php while ( have_posts() ) : the_post(); ?> | |
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | |
<header class="entry-header"> | |
<?php if ( has_post_thumbnail() && ! post_password_required() ) : ?> | |
<div class="entry-thumbnail"> | |
<?php the_post_thumbnail(); ?> | |
</div> | |
<?php endif; ?> | |
<h1 class="entry-title"><?php the_title(); ?></h1> | |
</header><!-- .entry-header --> | |
<div class="entry-content"> | |
<?php echo $the_content; ?> | |
<?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?> | |
</div><!-- .entry-content --> | |
<footer class="entry-meta"> | |
<?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?> | |
</footer><!-- .entry-meta --> | |
</article><!-- #post --> | |
<?php comments_template(); ?> | |
<?php endwhile; ?> | |
</div><!-- #content --> | |
</div><!-- #primary --> | |
<?php get_sidebar(); ?> | |
<?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment