mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-26 02:57:45 +01:00
7d35419e62
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: http://core.svn.wordpress.org/trunk@24832 1a063a9b-81f0-0310-95a4-ce76da25c4cd
66 lines
1.5 KiB
PHP
66 lines
1.5 KiB
PHP
<?php
|
|
/**
|
|
* Template Name: Full Width Page
|
|
*
|
|
* @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 full-width" 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 -->
|
|
|
|
</div><!-- .front-page-content-area -->
|
|
|
|
</div><!-- .front-page-content-main -->
|
|
</div><!-- .front-page-content-wrapper -->
|
|
|
|
<?php else : ?>
|
|
|
|
<div id="primary" class="content-area">
|
|
<div id="content" class="site-content full-width" 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 endif; // is_front_page() check ?>
|
|
|
|
<?php get_sidebar(); ?>
|
|
|
|
<?php get_footer(); ?>
|