Add template loader to enable themed templates

This commit is contained in:
Brian Miyaji
2014-04-18 19:47:36 +10:00
parent 086a8f1955
commit 0ec3ec5669
39 changed files with 916 additions and 139 deletions

View File

@@ -0,0 +1,27 @@
<?php
/**
* The template for displaying team content.
*
* Override this template by copying it to yourtheme/sportspress/content-single-team.php
*
* @author ThemeBoy
* @package SportsPress/Templates
* @version 0.8
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
?>
<?php
/**
* sportspress_before_single_team hook
*/
do_action( 'sportspress_before_single_team' );
if ( post_password_required() ) {
echo get_the_password_form();
return;
}
?>
<?php do_action( 'sportspress_single_team_content' ); ?>