forked from SimonPadbury/bst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.php
executable file
·30 lines (25 loc) · 884 Bytes
/
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
<?php get_template_part('parts/header'); ?>
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-8">
<div id="content" role="main">
<?php if(have_posts()): while(have_posts()): the_post();?>
<article role="article" id="post_<?php the_ID()?>" <?php post_class()?>>
<header>
<h2><?php the_title()?></h2>
<hr/>
</header>
<?php the_content()?>
</article>
<?php endwhile; ?>
<?php else: ?>
<?php wp_redirect(get_bloginfo('siteurl').'/404', 404); exit; ?>
<?php endif;?>
</div><!-- /#content -->
</div>
<div class="col-xs-6 col-sm-4" id="sidebar" role="navigation">
<?php get_template_part('parts/sidebar'); ?>
</div>
</div><!-- /.row -->
</div><!-- /.container -->
<?php get_template_part('parts/footer'); ?>