Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 56 lines (39 sloc) 1.75 KB
<?php
/**
* The template for displaying all pages.
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site will use a
* different template.
*
* @package cc2
*/
$content_class = array('main-content-inner');
get_header(); ?>
<div class="main-content">
<div id="container" class="container">
<div class="row">
<?php do_action( 'cc_first_inside_main_content'); ?>
<?php
// get the left sidebar if it should be displayed
if( cc2_display_sidebar( 'left' ) )
get_sidebar( 'left' ); ?>
<div id="content" class="<?php echo apply_filters( 'cc2_content_class', $content_class ); ?>">
<?php do_action( 'cc_first_inside_main_content_inner'); ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'page' ); ?>
<?php
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || '0' != get_comments_number() )
comments_template();
?>
<?php endwhile; // end of the loop. ?>
<?php do_action( 'cc_last_inside_main_content_inner'); ?>
</div><!-- close #content -->
<?php if( cc2_display_sidebar( 'right' ) )
get_sidebar( 'right' ); ?>
</div><!-- close .row -->
</div><!-- close .container -->
</div><!-- close .main-content -->
<?php get_footer(); ?>