Files
sportspress/includes/shortcodes/class-sp-shortcode-team-gallery.php
2017-06-06 15:22:33 +10:00

25 lines
473 B
PHP

<?php
/**
* Team Gallery Shortcode
*
* @author ThemeBoy
* @category Shortcodes
* @package SportsPress/Shortcodes/Team_Gallery
* @version 2.3.2
*/
class SP_Shortcode_Team_Gallery {
/**
* Output the team gallery shortcode.
*
* @param array $atts
*/
public static function output( $atts ) {
if ( ! isset( $atts['id'] ) && isset( $atts[0] ) && is_numeric( $atts[0] ) )
$atts['id'] = $atts[0];
sp_get_template( 'team-gallery.php', $atts );
}
}