Add single player shortcodes

This commit is contained in:
Brian Miyaji
2014-07-12 02:31:42 +10:00
parent da3bf43787
commit 563f646866
5 changed files with 109 additions and 0 deletions

View File

@@ -24,6 +24,8 @@ class SP_Shortcodes {
'event_list' => __CLASS__ . '::event_list',
'event_blocks' => __CLASS__ . '::event_blocks',
'league_table' => __CLASS__ . '::league_table',
'player_details' => __CLASS__ . '::player_details',
'player_statistics' => __CLASS__ . '::player_statistics',
'player_list' => __CLASS__ . '::player_list',
'player_gallery' => __CLASS__ . '::player_gallery',
);
@@ -160,6 +162,28 @@ class SP_Shortcodes {
return self::shortcode_wrapper( array( 'SP_Shortcode_League_Table', 'output' ), $atts );
}
/**
* Player details shortcode.
*
* @access public
* @param mixed $atts
* @return string
*/
public static function player_details( $atts ) {
return self::shortcode_wrapper( array( 'SP_Shortcode_Player_Details', 'output' ), $atts );
}
/**
* Player statistics shortcode.
*
* @access public
* @param mixed $atts
* @return string
*/
public static function player_statistics( $atts ) {
return self::shortcode_wrapper( array( 'SP_Shortcode_Player_Statistics', 'output' ), $atts );
}
/**
* Player performance shortcode.
*