forked from JoeyButler/starkers
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloop-page.php
More file actions
33 lines (26 loc) · 758 Bytes
/
Copy pathloop-page.php
File metadata and controls
33 lines (26 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
* The loop that displays a page.
*
* @package WordPress
* @subpackage Starkers
* @since Starkers HTML5 3.2
*/
?>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header>
<?php if ( is_front_page() ) { ?>
<h2><?php the_title(); ?></h2>
<?php } else { ?>
<h1><?php the_title(); ?></h1>
<?php } ?>
</header>
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<nav>' . __( 'Pages:', 'starkers' ), 'after' => '</nav>' ) ); ?>
<footer>
<?php edit_post_link( __( 'Edit', 'starkers' ), '', '' ); ?>
</footer>
</article>
<?php comments_template( '', true ); ?>
<?php endwhile; ?>