| Line | |
|---|
| 1 | <?php |
|---|
| 2 | /** |
|---|
| 3 | * The template for displaying pages |
|---|
| 4 | * |
|---|
| 5 | * This is the template that displays all pages by default. |
|---|
| 6 | * Please note that this is the WordPress construct of pages and that |
|---|
| 7 | * other "pages" on your WordPress site will use a different template. |
|---|
| 8 | * |
|---|
| 9 | * @subpackage MultiSport |
|---|
| 10 | * @author customizablethemes |
|---|
| 11 | * @since MultiSport 1.0.0 |
|---|
| 12 | * |
|---|
| 13 | */ |
|---|
| 14 | |
|---|
| 15 | get_header(); ?> |
|---|
| 16 | |
|---|
| 17 | <div id="main-content-wrapper"> |
|---|
| 18 | |
|---|
| 19 | <div id="main-content"> |
|---|
| 20 | |
|---|
| 21 | <?php if ( have_posts() ) : |
|---|
| 22 | |
|---|
| 23 | while ( have_posts() ) : |
|---|
| 24 | |
|---|
| 25 | the_post(); |
|---|
| 26 | |
|---|
| 27 | // includes the single page content templata here |
|---|
| 28 | get_template_part( 'template-parts/content', 'page' ); |
|---|
| 29 | |
|---|
| 30 | // if comments are open or there's at least one comment, load up the comment template. |
|---|
| 31 | if ( comments_open() || get_comments_number() ) { |
|---|
| 32 | comments_template(); |
|---|
| 33 | } |
|---|
| 34 | |
|---|
| 35 | endwhile; |
|---|
| 36 | |
|---|
| 37 | wp_link_pages( array( |
|---|
| 38 | 'link_before' => '<li>', |
|---|
| 39 | 'link_after' => '</li>', |
|---|
| 40 | ) ); |
|---|
| 41 | |
|---|
| 42 | else : |
|---|
| 43 | |
|---|
| 44 | // if no content is loaded, show the 'no found' template |
|---|
| 45 | get_template_part( 'template-parts/content', 'none' ); |
|---|
| 46 | |
|---|
| 47 | endif; ?> |
|---|
| 48 | |
|---|
| 49 | </div><!-- #main-content --> |
|---|
| 50 | |
|---|
| 51 | <?php get_sidebar(); ?> |
|---|
| 52 | |
|---|
| 53 | </div><!-- #main-content-wrapper --> |
|---|
| 54 | |
|---|
| 55 | <?php get_footer(); ?> |
|---|
Note: See
TracBrowser
for help on using the repository browser.