55e956dd67
A magazine theme with clean, responsive design focused on highlighting featured content prominently on home page. This is slated for 3.8. Development will occur in trunk for the theme, and in plugins for the nice-to-have features. Nice-to-have improvements include: - Add a Contributors page template to highlight authors. - Easy-to-manage featured content. - Add support for an Authors widget to highlight authors. Welcome, Twenty Fourteen né Further. Props iamtakashi, see #24858. git-svn-id: https://develop.svn.wordpress.org/trunk@24832 602fd350-edb4-49c9-b593-d223f7449a82
77 lines
1.8 KiB
PHP
77 lines
1.8 KiB
PHP
<?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 WordPress
|
|
* @subpackage Twenty_Fourteen
|
|
*/
|
|
|
|
get_header(); ?>
|
|
|
|
<?php if ( is_front_page() ) : ?>
|
|
|
|
<div class="front-page-content-wrapper">
|
|
<div class="front-page-content-main">
|
|
|
|
<?php if ( twentyfourteen_has_featured_posts() ) : ?>
|
|
<?php get_template_part( 'featured-content' ); ?>
|
|
<?php endif; ?>
|
|
|
|
<div class="front-page-content-area clearfix">
|
|
|
|
<div id="primary" class="content-area no-sidebar">
|
|
<div id="content" class="site-content" role="main">
|
|
<?php
|
|
if ( have_posts() ) :
|
|
while ( have_posts() ) :
|
|
the_post();
|
|
get_template_part( 'content', 'page' );
|
|
comments_template( '', true );
|
|
endwhile;
|
|
|
|
twentyfourteen_content_nav( 'nav-below' );
|
|
else :
|
|
get_template_part( 'no-results', 'index' );
|
|
endif;
|
|
?>
|
|
</div><!-- #content .site-content -->
|
|
</div><!-- #primary .content-area -->
|
|
|
|
<?php get_template_part( 'recent-formatted-posts' ); ?>
|
|
|
|
</div><!-- .front-page-content-area -->
|
|
|
|
</div><!-- .front-page-content-main -->
|
|
</div><!-- .front-page-content-wrapper -->
|
|
|
|
<?php get_sidebar(); ?>
|
|
|
|
<?php else : ?>
|
|
|
|
<div id="primary" class="content-area">
|
|
<div id="content" class="site-content" role="main">
|
|
|
|
<?php while ( have_posts() ) : the_post(); ?>
|
|
|
|
<?php get_template_part( 'content', 'page' ); ?>
|
|
|
|
<?php comments_template( '', true ); ?>
|
|
|
|
<?php endwhile; ?>
|
|
|
|
</div><!-- #content .site-content -->
|
|
</div><!-- #primary .content-area -->
|
|
|
|
<?php get_sidebar( 'content' ); ?>
|
|
|
|
<?php get_sidebar(); ?>
|
|
|
|
<?php endif; // is_front_page() check ?>
|
|
|
|
<?php get_footer(); ?>
|