/
page.php
executable file
·51 lines (43 loc) · 1.58 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
<?php
/**
* The template for displaying single pages.
*
* @package Standard
* @since 3.0
*/
?>
<?php get_header(); ?>
<?php $presentation_options = get_option( 'standard_theme_presentation_options' ); ?>
<div id="wrapper">
<div class="container">
<div class="row">
<?php if ( 'left_sidebar_layout' == $presentation_options['layout'] ) { ?>
<?php get_sidebar(); ?>
<?php } // end if ?>
<?php get_category_navigation(); ?>
<div id="main" class="<?php echo 'full_width_layout' == $presentation_options['layout'] ? 'span12 fullwidth' : 'span8'; ?> clearfix" role="main">
<?php get_template_part( 'breadcrumbs' ); ?>
<?php if ( have_posts() ) { ?>
<?php while ( have_posts() ) {
the_post(); ?>
<div id="post-<?php the_ID(); ?> format-standard" <?php post_class( 'post' ); ?>>
<div class="post-header clearfix">
<h1 class="post-title"><?php the_title(); ?></h1>
</div> <!-- /.post-header -->
<div id="content-<?php the_ID(); ?>" class="entry-content clearfix">
<div class="content">
<?php the_content(); ?>
</div><!-- /.entry-content -->
</div><!-- /.entry-content -->
</div> <!-- /#post- -->
<?php } // end while ?>
<?php } // end if ?>
<?php comments_template( '', true ); ?>
</div><!-- /#main -->
<?php if ( 'right_sidebar_layout' == $presentation_options['layout'] ) { ?>
<?php get_sidebar(); ?>
<?php } // end if ?>
</div><!--/ row -->
</div><!--/container -->
</div> <!-- /#wrapper -->
<?php get_footer(); ?>