Add a "Full Info" event shortcode. It supports template order!

This commit is contained in:
savvasha
2018-08-31 18:53:55 +03:00
parent 329de03646
commit c37705024d
6 changed files with 187 additions and 2 deletions

View File

@@ -22,6 +22,7 @@ class SP_Shortcodes {
'event_venue' => __CLASS__ . '::event_venue',
'event_officials' => __CLASS__ . '::event_officials',
'event_teams' => __CLASS__ . '::event_teams',
'event_full' => __CLASS__ . '::event_full',
'countdown' => __CLASS__ . '::countdown',
'player_details' => __CLASS__ . '::player_details',
'player_statistics' => __CLASS__ . '::player_statistics',
@@ -137,6 +138,17 @@ class SP_Shortcodes {
public static function event_teams( $atts ) {
return self::shortcode_wrapper( array( 'SP_Shortcode_Event_Teams', 'output' ), $atts );
}
/**
* Event full info shortcode.
*
* @access public
* @param mixed $atts
* @return string
*/
public static function event_full( $atts ) {
return self::shortcode_wrapper( array( 'SP_Shortcode_Event_Full', 'output' ), $atts );
}
/**
* Countdown shortcode.