Skip to content

Instantly share code, notes, and snippets.

@JMWebDevelopment
Created June 16, 2017 16:51
Show Gist options
  • Save JMWebDevelopment/9e247896c01f583c681ee972dbc91b03 to your computer and use it in GitHub Desktop.
Save JMWebDevelopment/9e247896c01f583c681ee972dbc91b03 to your computer and use it in GitHub Desktop.
For more information, go to: https://sportsbenchwp.com
<?php
/**
* Template Name: Team
*/
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php
// Start the loop.
while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry-content">
<?php if ( function_exists( 'sports_bench_get_teams' ) ) { ?>
<?php if ( isset( $team ) ) { ?>
<?php } else { ?>
<?php } ?>
<?php } ?>
</div>
</article>
<?php endwhile;
?>
</main><!-- .site-main -->
</div><!-- .content-area -->
<?php if ( function_exists( 'sports_bench_get_teams' ) ) { ?>
<?php if ( isset( $team ) ) { ?>
<aside id="secondary" class="sidebar widget-area" role="complementary">
</aside>
<?php } else { ?>
<?php get_sidebar(); ?>
<?php } ?>
<?php } ?>
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment