File "class-sp-shortcode-staff.php"

Full Path: /home/londdqdw/public_html/06/wp-content/plugins/sportspress/includes/shortcodes/class-sp-shortcode-staff.php
File size: 507 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
/**
 * Staff Shortcode
 *
 * @author      ThemeBoy
 * @category    Shortcodes
 * @package     SportsPress/Shortcodes/Staff
 * @version   2.5.5
 */
class SP_Shortcode_Staff {

	/**
	 * Output the staff 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( 'staff-photo.php', $atts );
		sp_get_template( 'staff-details.php', $atts );
	}
}