Display photo in player details shortcode
This commit is contained in:
@@ -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 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user