Display photo in player details shortcode

This commit is contained in:
Brian Miyaji
2014-11-11 09:45:48 +11:00
parent 1a9270cac5
commit c996b3f082

View File

@@ -5,7 +5,7 @@
* @author ThemeBoy * @author ThemeBoy
* @category Shortcodes * @category Shortcodes
* @package SportsPress/Shortcodes/Player_Details * @package SportsPress/Shortcodes/Player_Details
* @version 1.2 * @version 1.4.7
*/ */
class SP_Shortcode_Player_Details { class SP_Shortcode_Player_Details {
@@ -19,6 +19,7 @@ class SP_Shortcode_Player_Details {
if ( ! isset( $atts['id'] ) && isset( $atts[0] ) && is_numeric( $atts[0] ) ) if ( ! isset( $atts['id'] ) && isset( $atts[0] ) && is_numeric( $atts[0] ) )
$atts['id'] = $atts[0]; $atts['id'] = $atts[0];
sp_get_template( 'player-photo.php', $atts );
sp_get_template( 'player-details.php', $atts ); sp_get_template( 'player-details.php', $atts );
} }
} }