Add three new event shortcodes (Teams, Venue, Officials)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user