~canonical-sysadmins/wordpress/4.7.4

« back to all changes in this revision

Viewing changes to wp-content/themes/twentytwelve/page-templates/front-page.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: Front Page Template
 
4
 *
 
5
 * Description: A page template that provides a key component of WordPress as a CMS
 
6
 * by meeting the need for a carefully crafted introductory page. The front page template
 
7
 * in Twenty Twelve consists of a page content area for adding text, images, video --
 
8
 * anything you'd like -- followed by front-page-only widgets in one or two columns.
 
9
 *
 
10
 * @package WordPress
 
11
 * @subpackage Twenty_Twelve
 
12
 * @since Twenty Twelve 1.0
 
13
 */
 
14
 
 
15
get_header(); ?>
 
16
 
 
17
        <div id="primary" class="site-content">
 
18
                <div id="content" role="main">
 
19
 
 
20
                        <?php while ( have_posts() ) : the_post(); ?>
 
21
                                <?php if ( has_post_thumbnail() ) : ?>
 
22
                                        <div class="entry-page-image">
 
23
                                                <?php the_post_thumbnail(); ?>
 
24
                                        </div><!-- .entry-page-image -->
 
25
                                <?php endif; ?>
 
26
 
 
27
                                <?php get_template_part( 'content', 'page' ); ?>
 
28
 
 
29
                        <?php endwhile; // end of the loop. ?>
 
30
 
 
31
                </div><!-- #content -->
 
32
        </div><!-- #primary -->
 
33
 
 
34
<?php get_sidebar( 'front' ); ?>
 
35
<?php get_footer(); ?>
 
 
b'\\ No newline at end of file'