Add after template hooks

This commit is contained in:
Brian Miyaji
2014-05-09 18:57:46 +10:00
parent 506c90b6d3
commit 883f211e85
7 changed files with 84 additions and 91 deletions

View File

@@ -6,23 +6,22 @@
*
* @author ThemeBoy
* @package SportsPress/Templates
* @version 0.8.1
* @version 0.9
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! in_the_loop() ) return; // Return if not in main loop
?>
<?php
/**
* sportspress_before_single_calendar hook
*/
do_action( 'sportspress_before_single_calendar' );
/**
* sportspress_before_single_calendar hook
*/
do_action( 'sportspress_before_single_calendar' );
if ( post_password_required() ) {
echo get_the_password_form();
return;
}
?>
if ( post_password_required() ) {
echo get_the_password_form();
return;
}
<?php do_action( 'sportspress_single_calendar_content' ); ?>
do_action( 'sportspress_single_calendar_content' );
do_action( 'sportspress_after_single_calendar' );