~canonical-sysadmins/wordpress/4.6

« back to all changes in this revision

Viewing changes to wp-content/themes/twentythirteen/index.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
 * The main template file
 
4
 *
 
5
 * This is the most generic template file in a WordPress theme and one of the
 
6
 * two required files for a theme (the other being style.css).
 
7
 * It is used to display a page when nothing more specific matches a query.
 
8
 * For example, it puts together the home page when no home.php file exists.
 
9
 *
 
10
 * @link http://codex.wordpress.org/Template_Hierarchy
 
11
 *
 
12
 * @package WordPress
 
13
 * @subpackage Twenty_Thirteen
 
14
 * @since Twenty Thirteen 1.0
 
15
 */
 
16
 
 
17
get_header(); ?>
 
18
 
 
19
        <div id="primary" class="content-area">
 
20
                <div id="content" class="site-content" role="main">
 
21
                <?php if ( have_posts() ) : ?>
 
22
 
 
23
                        <?php /* The loop */ ?>
 
24
                        <?php while ( have_posts() ) : the_post(); ?>
 
25
                                <?php get_template_part( 'content', get_post_format() ); ?>
 
26
                        <?php endwhile; ?>
 
27
 
 
28
                        <?php twentythirteen_paging_nav(); ?>
 
29
 
 
30
                <?php else : ?>
 
31
                        <?php get_template_part( 'content', 'none' ); ?>
 
32
                <?php endif; ?>
 
33
 
 
34
                </div><!-- #content -->
 
35
        </div><!-- #primary -->
 
36
 
 
37
<?php get_sidebar(); ?>
 
38
<?php get_footer(); ?>
 
 
b'\\ No newline at end of file'