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

View File

@@ -6,14 +6,12 @@
* *
* @author ThemeBoy * @author ThemeBoy
* @package SportsPress/Templates * @package SportsPress/Templates
* @version 0.8.1 * @version 0.9
*/ */
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! in_the_loop() ) return; // Return if not in main loop if ( ! in_the_loop() ) return; // Return if not in main loop
?>
<?php
/** /**
* sportspress_before_single_event hook * sportspress_before_single_event hook
*/ */
@@ -23,6 +21,7 @@ if ( ! in_the_loop() ) return; // Return if not in main loop
echo get_the_password_form(); echo get_the_password_form();
return; return;
} }
?>
<?php do_action( 'sportspress_single_event_content' ); ?> do_action( 'sportspress_single_event_content' );
do_action( 'sportspress_after_single_event' );

View File

@@ -6,14 +6,12 @@
* *
* @author ThemeBoy * @author ThemeBoy
* @package SportsPress/Templates * @package SportsPress/Templates
* @version 0.8.1 * @version 0.9
*/ */
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! in_the_loop() ) return; // Return if not in main loop if ( ! in_the_loop() ) return; // Return if not in main loop
?>
<?php
/** /**
* sportspress_before_single_list hook * sportspress_before_single_list hook
*/ */
@@ -23,6 +21,7 @@ if ( ! in_the_loop() ) return; // Return if not in main loop
echo get_the_password_form(); echo get_the_password_form();
return; return;
} }
?>
<?php do_action( 'sportspress_single_list_content' ); ?> do_action( 'sportspress_single_list_content' );
do_action( 'sportspress_after_single_list' );

View File

@@ -6,14 +6,12 @@
* *
* @author ThemeBoy * @author ThemeBoy
* @package SportsPress/Templates * @package SportsPress/Templates
* @version 0.8.1 * @version 0.9
*/ */
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! in_the_loop() ) return; // Return if not in main loop if ( ! in_the_loop() ) return; // Return if not in main loop
?>
<?php
/** /**
* sportspress_before_single_player hook * sportspress_before_single_player hook
*/ */
@@ -23,6 +21,7 @@ if ( ! in_the_loop() ) return; // Return if not in main loop
echo get_the_password_form(); echo get_the_password_form();
return; return;
} }
?>
<?php do_action( 'sportspress_single_player_content' ); ?> do_action( 'sportspress_single_player_content' );
do_action( 'sportspress_after_single_player' );

View File

@@ -6,14 +6,12 @@
* *
* @author ThemeBoy * @author ThemeBoy
* @package SportsPress/Templates * @package SportsPress/Templates
* @version 0.8.1 * @version 0.9
*/ */
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! in_the_loop() ) return; // Return if not in main loop if ( ! in_the_loop() ) return; // Return if not in main loop
?>
<?php
/** /**
* sportspress_before_single_staff hook * sportspress_before_single_staff hook
*/ */
@@ -23,6 +21,7 @@ if ( ! in_the_loop() ) return; // Return if not in main loop
echo get_the_password_form(); echo get_the_password_form();
return; return;
} }
?>
<?php do_action( 'sportspress_single_staff_content' ); ?> do_action( 'sportspress_single_staff_content' );
do_action( 'sportspress_after_single_staff' );

View File

@@ -6,14 +6,12 @@
* *
* @author ThemeBoy * @author ThemeBoy
* @package SportsPress/Templates * @package SportsPress/Templates
* @version 0.8.1 * @version 0.9
*/ */
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! in_the_loop() ) return; // Return if not in main loop if ( ! in_the_loop() ) return; // Return if not in main loop
?>
<?php
/** /**
* sportspress_before_single_table hook * sportspress_before_single_table hook
*/ */
@@ -23,6 +21,7 @@ if ( ! in_the_loop() ) return; // Return if not in main loop
echo get_the_password_form(); echo get_the_password_form();
return; return;
} }
?>
<?php do_action( 'sportspress_single_table_content' ); ?> do_action( 'sportspress_single_table_content' );
do_action( 'sportspress_after_single_table' );

View File

@@ -6,14 +6,12 @@
* *
* @author ThemeBoy * @author ThemeBoy
* @package SportsPress/Templates * @package SportsPress/Templates
* @version 0.8.1 * @version 0.9
*/ */
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! in_the_loop() ) return; // Return if not in main loop if ( ! in_the_loop() ) return; // Return if not in main loop
?>
<?php
/** /**
* sportspress_before_single_team hook * sportspress_before_single_team hook
*/ */
@@ -23,6 +21,7 @@ if ( ! in_the_loop() ) return; // Return if not in main loop
echo get_the_password_form(); echo get_the_password_form();
return; return;
} }
?>
<?php do_action( 'sportspress_single_team_content' ); ?> do_action( 'sportspress_single_team_content' );
do_action( 'sportspress_after_single_team' );