-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
executable file
·63 lines (40 loc) · 1.3 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
get_header();
/** @var \SpokaneFoodPolicy\Controller $sfp_controller */
global $sfp_controller;
?>
<div class="row">
<?php if ( $sfp_controller->has_left_side_bar() ) { ?>
<div class="col-md-4">
<?php get_sidebar(); ?>
</div>
<?php } ?>
<div class="col-md-<?php echo ( $sfp_controller->has_left_side_bar() || $sfp_controller->has_right_side_bar() ) ? '8' : '12'; ?>">
<main id="content">
<?php while ( have_posts() ) : the_post(); ?>
<article class="page" id="pageid-<?php the_ID(); ?>">
<?php do_action( 'basic_before_page_title' ); ?>
<h1><?php the_title(); ?></h1>
<?php do_action( 'basic_after_page_title' ); ?>
<?php do_action( 'basic_before_page_content_box' ); ?>
<div class="entry-box clearfix">
<?php do_action( 'basic_before_page_content' ); ?>
<?php the_content(); ?>
<?php do_action( 'basic_after_page_content' ); ?>
</div>
<?php do_action( 'basic_after_page_content_box' ); ?>
</article>
<?php
if ( comments_open() || get_comments_number() ) { comments_template(); }
endwhile; ?>
</main>
</div>
<?php if ( $sfp_controller->has_right_side_bar() ) { ?>
<div class="col-md-4">
<div class="well sfp-well">
<?php get_sidebar(); ?>
</div>
</div>
<?php } ?>
</div>
<?php get_footer(); ?>