Created
June 8, 2016 13:29
-
-
Save congthien/118f9e38a28aa90f08d875d0d1093b56 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 WPCharming | |
*/ | |
global $wpc_option; | |
$page_layout = get_post_meta( $post->ID, '_wpc_page_layout', true ); | |
$page_breadcrumb = get_post_meta( $post->ID, '_wpc_hide_breadcrumb', true ); | |
$page_comment = wpcharming_option('page_comments'); | |
wpcharming_get_header() ?> | |
<?php | |
global $post; | |
wpcharming_get_page_header($post->ID); | |
wpcharming_get_page_title($post->ID); | |
?> | |
<?php if ( $page_breadcrumb !== 'on' ) wpcharming_breadcrumb(); ?> | |
<div id="content-wrap" class="<?php echo ( $page_layout == 'full-screen' ) ? '' : 'container'; ?> <?php echo wpcharming_get_layout_class(); ?>"> | |
<div id="primary" class="<?php echo ( $page_layout == 'full-screen' ) ? 'content-area-full' : 'content-area'; ?>"> | |
<main id="main" class="site-main" role="main"> | |
<?php while ( have_posts() ) : the_post(); ?> | |
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | |
<?php | |
if( has_post_thumbnail( ) ) { | |
echo '<div class="post-thumbnail">'; | |
the_post_thumbnail( 'blog-large' ); | |
echo '</div>'; | |
} | |
?> | |
<div class="entry-content"> | |
<?php the_content(); ?> | |
</div><!-- .entry-content --> | |
</article><!-- #post-## --> | |
<?php endwhile; // end of the loop. ?> | |
</main><!-- #main --> | |
</div><!-- #primary --> | |
<?php echo wpcharming_get_sidebar(); ?> | |
</div> <!-- /#content-wrap --> | |
<?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment