Add after template hooks
This commit is contained in:
@@ -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' );
|
||||
|
||||
@@ -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_event hook
|
||||
*/
|
||||
do_action( 'sportspress_before_single_event' );
|
||||
/**
|
||||
* sportspress_before_single_event hook
|
||||
*/
|
||||
do_action( 'sportspress_before_single_event' );
|
||||
|
||||
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_event_content' ); ?>
|
||||
do_action( 'sportspress_single_event_content' );
|
||||
|
||||
do_action( 'sportspress_after_single_event' );
|
||||
|
||||
@@ -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_list hook
|
||||
*/
|
||||
do_action( 'sportspress_before_single_list' );
|
||||
/**
|
||||
* sportspress_before_single_list hook
|
||||
*/
|
||||
do_action( 'sportspress_before_single_list' );
|
||||
|
||||
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_list_content' ); ?>
|
||||
do_action( 'sportspress_single_list_content' );
|
||||
|
||||
do_action( 'sportspress_after_single_list' );
|
||||
|
||||
@@ -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_player hook
|
||||
*/
|
||||
do_action( 'sportspress_before_single_player' );
|
||||
/**
|
||||
* sportspress_before_single_player hook
|
||||
*/
|
||||
do_action( 'sportspress_before_single_player' );
|
||||
|
||||
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_player_content' ); ?>
|
||||
do_action( 'sportspress_single_player_content' );
|
||||
|
||||
do_action( 'sportspress_after_single_player' );
|
||||
|
||||
@@ -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_staff hook
|
||||
*/
|
||||
do_action( 'sportspress_before_single_staff' );
|
||||
/**
|
||||
* sportspress_before_single_staff hook
|
||||
*/
|
||||
do_action( 'sportspress_before_single_staff' );
|
||||
|
||||
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_staff_content' ); ?>
|
||||
do_action( 'sportspress_single_staff_content' );
|
||||
|
||||
do_action( 'sportspress_after_single_staff' );
|
||||
|
||||
@@ -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_table hook
|
||||
*/
|
||||
do_action( 'sportspress_before_single_table' );
|
||||
/**
|
||||
* sportspress_before_single_table hook
|
||||
*/
|
||||
do_action( 'sportspress_before_single_table' );
|
||||
|
||||
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_table_content' ); ?>
|
||||
do_action( 'sportspress_single_table_content' );
|
||||
|
||||
do_action( 'sportspress_after_single_table' );
|
||||
|
||||
@@ -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_team hook
|
||||
*/
|
||||
do_action( 'sportspress_before_single_team' );
|
||||
/**
|
||||
* sportspress_before_single_team hook
|
||||
*/
|
||||
do_action( 'sportspress_before_single_team' );
|
||||
|
||||
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_team_content' ); ?>
|
||||
do_action( 'sportspress_single_team_content' );
|
||||
|
||||
do_action( 'sportspress_after_single_team' );
|
||||
|
||||
Reference in New Issue
Block a user