-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathsportspress.php
More file actions
41 lines (29 loc) · 1.06 KB
/
sportspress.php
File metadata and controls
41 lines (29 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* The template for displaying all SportsPress pages.
*
* @package Rookie
*/
get_header(); ?>
<div id="primary" class="content-area content-area-<?php echo rookie_get_sidebar_setting(); ?>-sidebar">
<main id="main" class="site-main" role="main">
<?php if ( is_archive() && have_posts() ) : ?>
<header class="page-header">
<h1 class="page-title"><?php single_cat_title(); ?></h1>
<?php the_archive_description( '<div class="taxonomy-description">', '</div>' ); ?>
</header><!-- .page-header -->
<?php endif; ?>
<?php while ( have_posts() ) : the_post();
get_template_part( 'content', 'page' );
if ( is_archive() && 'sp_event' === get_post_type() ):
sp_get_template( 'event-logos.php' );
endif;
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
endwhile; // end of the loop. ?>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>