~canonical-sysadmins/wordpress/4.7.4

« back to all changes in this revision

Viewing changes to wp-content/themes/twentyfourteen/page-templates/full-width.php

  • Committer: Jacek Nykis
  • Date: 2015-01-05 16:17:05 UTC
  • Revision ID: jacek.nykis@canonical.com-20150105161705-w544l1h5mcg7u4w9
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/**
 
3
 * Template Name: Full Width Page
 
4
 *
 
5
 * @package WordPress
 
6
 * @subpackage Twenty_Fourteen
 
7
 * @since Twenty Fourteen 1.0
 
8
 */
 
9
 
 
10
get_header(); ?>
 
11
 
 
12
<div id="main-content" class="main-content">
 
13
 
 
14
<?php
 
15
        if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
 
16
                // Include the featured content template.
 
17
                get_template_part( 'featured-content' );
 
18
        }
 
19
?>
 
20
 
 
21
        <div id="primary" class="content-area">
 
22
                <div id="content" class="site-content" role="main">
 
23
                        <?php
 
24
                                // Start the Loop.
 
25
                                while ( have_posts() ) : the_post();
 
26
 
 
27
                                        // Include the page content template.
 
28
                                        get_template_part( 'content', 'page' );
 
29
 
 
30
                                        // If comments are open or we have at least one comment, load up the comment template.
 
31
                                        if ( comments_open() || get_comments_number() ) {
 
32
                                                comments_template();
 
33
                                        }
 
34
                                endwhile;
 
35
                        ?>
 
36
                </div><!-- #content -->
 
37
        </div><!-- #primary -->
 
38
</div><!-- #main-content -->
 
39
 
 
40
<?php
 
41
get_sidebar();
 
42
get_footer();