forked from grayghostvisuals/wp-flex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
executable file
·31 lines (26 loc) · 1.02 KB
/
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
<?php get_header(); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<section id="content" class="<?php the_title(); ?> clearfix" role="main">
<header>
<h1><?php the_title(); ?></h1>
</header>
<!-- *optional* remove read more link -->
<!-- http://codex.wordpress.org/Customizing_the_Read_More -->
<!-- Resolves Issue #4: https://github.com/grayghostvisuals/WP-Flex/issues/4 -->
<div class="entry-content">
<?php the_content(); ?>
</div>
<?php wp_link_pages( array( 'before' => '<div>' . 'Pages →', 'after' => '</div>' ) ); ?>
</section>
<?php endwhile; //end while have_posts ?>
<!-- begin comments template !IMPORTANT FOR THEME SUBMISSION -->
<?php comments_template(); ?>
<!-- end comments template !IMPORTANT FOR THEME SUBMISSION -->
<?php else : ?>
<p><?php echo ( 'sorry, this page does not exist' ); ?></p>
<?php endif; //end if have_posts ?>
<!-- sidebar -->
<aside id="sidebar" role="complementary">
<?php get_sidebar(); ?>
</aside>
<?php get_footer(); ?>