forked from rotarytheme/rotary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
loop-page.php
36 lines (29 loc) · 924 Bytes
/
loop-page.php
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
34
35
36
<?php
/**
* The loop that displays a page.
*
* @package WordPress
* @subpackage Rotary
* @since Rotary HTML5 3.2
*/
?>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<h1 class="pagetitle"><span><?php the_title(); ?></span></h1>
<div id="page">
<?php $width_class = ' class="fullwidth"'; ?>
<?php if ( is_page_template( 'tmpl-posts.php' ) ) : ?>
<?php $width_class = ''; ?>
<?php endif; ?>
<div id="content" role="main"<?php echo $width_class; ?>>
<div class="inner">
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<nav>' . __( 'Pages:', 'Rotary' ), 'after' => '</nav>' ) ); ?>
<footer>
<?php edit_post_link( __( 'Edit', 'Rotary' ), '', '' ); ?>
</footer>
</article>
</div>
</div>
</div>
<?php endwhile; ?>