File "class-sp-shortcode-event-blocks.php"

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

<?php
/**
 * Event Blocks Shortcode
 *
 * @author      ThemeBoy
 * @category    Shortcodes
 * @package     SportsPress/Shortcodes/Event_Blocks
 * @version     0.8
 */
class SP_Shortcode_Event_Blocks {

	/**
	 * Output the event blocks 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( 'event-blocks.php', $atts );
	}
}