Make WordPress Themes

source: multisport/1.3.1/single.php

Last change on this file was 117518, checked in by themedropbox, 6 years ago

New version of MultiSport - 1.3.1

File size: 1.1 KB
Line 
1<?php
2/**
3 * The template for displaying all single posts and attachments
4 *
5 */
6
7 get_header(); ?>
8
9<div id="main-content-wrapper">
10        <div id="main-content">
11        <?php if (have_posts()) :
12
13                        while (have_posts()) :
14                       
15                                the_post();
16                               
17                                /*
18                                 * includes a post format-specific template for single content
19                                 */
20                                get_template_part( 'template-parts/content' );
21                               
22                                // if comments are open or there's at least one comment, load up the comment template.
23                                if ( comments_open() || get_comments_number() ) {
24                                        comments_template();
25                                }
26
27                                        the_post_navigation( array(
28
29                        'prev_text' => __( 'Previous Post: %title', 'multisport' ),
30                        'next_text' => __( 'Next Post: %title', 'multisport' ),
31                    ) );
32                               
33                                endwhile;
34        ?>
35        <?php else :
36
37                                // if no content is loaded, show the 'no found' template
38                                get_template_part( 'template-parts/content', 'none' );
39
40                  endif; ?>
41
42        </div><!-- #main-content -->
43
44        <?php get_sidebar(); ?>
45
46</div><!-- #main-content-wrapper -->
47
48<?php get_footer(); ?>
Note: See TracBrowser for help on using the repository browser.