Make WordPress Themes

source: multisport/1.0.5/index.php

Last change on this file was 74189, checked in by themedropbox, 9 years ago

New version of MultiSport - 1.0.5

File size: 1.3 KB
Line 
1<?php
2/**
3 * The main template file
4 *
5 * This is the most generic template file in a WordPress theme
6 * and one of the 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 * e.g., it puts together the home page when no home.php file exists.
9 *
10 * @subpackage MultiSport
11 * @author customizablethemes
12 * @since MultiSport 1.0.0
13 * @link https://codex.wordpress.org/Template_Hierarchy
14 *
15 */
16
17 get_header(); ?>
18
19 <div class="clear">
20</div><!-- .clear -->
21
22<div id="main-content-wrapper">
23
24        <div id="main-content">
25
26        <?php if ( have_posts() ) : 
27
28                                // starts the loop
29                                while ( have_posts() ) :
30
31                                        the_post();
32
33                                        /*
34                                         * Include the post format-specific template for the content.
35                                         */
36                                        get_template_part( 'template-parts/content', get_post_format() );
37
38                                endwhile;
39
40                                the_posts_pagination( array(
41                        'prev_next' => '',
42                    ) );
43
44                  else :
45
46                                // if no content is loaded, show the 'no found' template
47                                get_template_part( 'template-parts/content', 'none' );
48                       
49                  endif; ?>
50
51        </div><!-- #main-content -->
52
53        <?php get_sidebar(); ?>
54
55</div><!-- #main-content-wrapper -->
56
57<?php get_footer(); ?>
Note: See TracBrowser for help on using the repository browser.