Add content position hooks

This commit is contained in:
Brian Miyaji
2014-06-26 23:49:12 +10:00
parent 0514fd25dc
commit af73b62f54
9 changed files with 44 additions and 216 deletions

View File

@@ -1,27 +0,0 @@
<?php
/**
* The template for displaying calendar content.
*
* Override this template by copying it to yourtheme/sportspress/content-single-calendar.php
*
* @author ThemeBoy
* @package SportsPress/Templates
* @version 0.9
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! in_the_loop() ) return; // Return if not in main loop
/**
* sportspress_before_single_calendar hook
*/
do_action( 'sportspress_before_single_calendar' );
if ( post_password_required() ) {
echo get_the_password_form();
return;
}
do_action( 'sportspress_single_calendar_content' );
do_action( 'sportspress_after_single_calendar' );

View File

@@ -1,27 +0,0 @@
<?php
/**
* The template for displaying event content.
*
* Override this template by copying it to yourtheme/sportspress/content-single-event.php
*
* @author ThemeBoy
* @package SportsPress/Templates
* @version 0.9
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! in_the_loop() ) return; // Return if not in main loop
/**
* sportspress_before_single_event hook
*/
do_action( 'sportspress_before_single_event' );
if ( post_password_required() ) {
echo get_the_password_form();
return;
}
do_action( 'sportspress_single_event_content' );
do_action( 'sportspress_after_single_event' );

View File

@@ -1,27 +0,0 @@
<?php
/**
* The template for displaying list content.
*
* Override this template by copying it to yourtheme/sportspress/content-single-list.php
*
* @author ThemeBoy
* @package SportsPress/Templates
* @version 0.9
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! in_the_loop() ) return; // Return if not in main loop
/**
* sportspress_before_single_list hook
*/
do_action( 'sportspress_before_single_list' );
if ( post_password_required() ) {
echo get_the_password_form();
return;
}
do_action( 'sportspress_single_list_content' );
do_action( 'sportspress_after_single_list' );

View File

@@ -1,27 +0,0 @@
<?php
/**
* The template for displaying player content.
*
* Override this template by copying it to yourtheme/sportspress/content-single-player.php
*
* @author ThemeBoy
* @package SportsPress/Templates
* @version 0.9
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! in_the_loop() ) return; // Return if not in main loop
/**
* sportspress_before_single_player hook
*/
do_action( 'sportspress_before_single_player' );
if ( post_password_required() ) {
echo get_the_password_form();
return;
}
do_action( 'sportspress_single_player_content' );
do_action( 'sportspress_after_single_player' );

View File

@@ -1,27 +0,0 @@
<?php
/**
* The template for displaying staff content.
*
* Override this template by copying it to yourtheme/sportspress/content-single-staff.php
*
* @author ThemeBoy
* @package SportsPress/Templates
* @version 0.9
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! in_the_loop() ) return; // Return if not in main loop
/**
* sportspress_before_single_staff hook
*/
do_action( 'sportspress_before_single_staff' );
if ( post_password_required() ) {
echo get_the_password_form();
return;
}
do_action( 'sportspress_single_staff_content' );
do_action( 'sportspress_after_single_staff' );

View File

@@ -1,27 +0,0 @@
<?php
/**
* The template for displaying table content.
*
* Override this template by copying it to yourtheme/sportspress/content-single-table.php
*
* @author ThemeBoy
* @package SportsPress/Templates
* @version 0.9
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! in_the_loop() ) return; // Return if not in main loop
/**
* sportspress_before_single_table hook
*/
do_action( 'sportspress_before_single_table' );
if ( post_password_required() ) {
echo get_the_password_form();
return;
}
do_action( 'sportspress_single_table_content' );
do_action( 'sportspress_after_single_table' );

View File

@@ -1,27 +0,0 @@
<?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.9
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! in_the_loop() ) return; // Return if not in main loop
/**
* sportspress_before_single_team hook
*/
do_action( 'sportspress_before_single_team' );
if ( post_password_required() ) {
echo get_the_password_form();
return;
}
do_action( 'sportspress_single_team_content' );
do_action( 'sportspress_after_single_team' );