Add three new event shortcodes (Teams, Venue, Officials)

This commit is contained in:
savvasha
2018-08-31 17:46:13 +03:00
parent bf50beb953
commit 329de03646
7 changed files with 209 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
* SP_Shortcodes class.
*
* @class SP_Shortcodes
* @version 2.5.5
* @version 2.6.9
* @package SportsPress/Classes
* @category Class
* @author ThemeBoy
@@ -19,6 +19,9 @@ class SP_Shortcodes {
'event_results' => __CLASS__ . '::event_results',
'event_details' => __CLASS__ . '::event_details',
'event_performance' => __CLASS__ . '::event_performance',
'event_venue' => __CLASS__ . '::event_venue',
'event_officials' => __CLASS__ . '::event_officials',
'event_teams' => __CLASS__ . '::event_teams',
'countdown' => __CLASS__ . '::countdown',
'player_details' => __CLASS__ . '::player_details',
'player_statistics' => __CLASS__ . '::player_statistics',
@@ -101,6 +104,39 @@ class SP_Shortcodes {
public static function event_performance( $atts ) {
return self::shortcode_wrapper( array( 'SP_Shortcode_Event_Performance', 'output' ), $atts );
}
/**
* Event venue shortcode.
*
* @access public
* @param mixed $atts
* @return string
*/
public static function event_venue( $atts ) {
return self::shortcode_wrapper( array( 'SP_Shortcode_Event_Venue', 'output' ), $atts );
}
/**
* Event officials shortcode.
*
* @access public
* @param mixed $atts
* @return string
*/
public static function event_officials( $atts ) {
return self::shortcode_wrapper( array( 'SP_Shortcode_Event_Officials', 'output' ), $atts );
}
/**
* Event teams shortcode.
*
* @access public
* @param mixed $atts
* @return string
*/
public static function event_teams( $atts ) {
return self::shortcode_wrapper( array( 'SP_Shortcode_Event_Teams', 'output' ), $atts );
}
/**
* Countdown shortcode.