Make WordPress Themes

source: multisport/1.2.2/index.php

Last change on this file was 107764, checked in by themedropbox, 7 years ago

New version of MultiSport - 1.2.2

File size: 1.1 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 */
11
12 get_header(); ?>
13
14 <div class="clear">
15</div><!-- .clear -->
16
17<div id="main-content-wrapper">
18
19        <div id="main-content">
20
21        <?php if ( have_posts() ) : 
22
23                                // starts the loop
24                                while ( have_posts() ) :
25
26                                        the_post();
27
28                                        /*
29                                         * Include the post format-specific template for the content.
30                                         */
31                                        get_template_part( 'template-parts/content' );
32
33                                endwhile;
34
35                                the_posts_pagination( array(
36                        'prev_next' => '',
37                    ) );
38
39                  else :
40
41                                // if no content is loaded, show the 'no found' template
42                                get_template_part( 'template-parts/content', 'none' );
43                       
44                  endif; ?>
45
46        </div><!-- #main-content -->
47
48        <?php get_sidebar(); ?>
49
50</div><!-- #main-content-wrapper -->
51
52<?php get_footer(); ?>
Note: See TracBrowser for help on using the repository browser.