Add three new event shortcodes (Teams, Venue, Officials)

This commit is contained in:
savvasha
2018-08-31 17:46:13 +03:00
parent bf50beb953
commit 329de03646
7 changed files with 209 additions and 2 deletions

View File

@@ -0,0 +1,24 @@
<?php
/**
* Event Officials Shortcode
*
* @author ThemeBoy
* @category Shortcodes
* @package SportsPress/Shortcodes/Event_Officials
* @version 2.6.9
*/
class SP_Shortcode_Event_Officials {
/**
* Output the event officials 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-officials.php', $atts );
}
}

View File

@@ -0,0 +1,24 @@
<?php
/**
* Event Teams Shortcode
*
* @author ThemeBoy
* @category Shortcodes
* @package SportsPress/Shortcodes/Event_Officials
* @version 2.6.9
*/
class SP_Shortcode_Event_Teams {
/**
* Output the event teams 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-logos.php', $atts );
}
}

View File

@@ -0,0 +1,24 @@
<?php
/**
* Event Venue Shortcode
*
* @author ThemeBoy
* @category Shortcodes
* @package SportsPress/Shortcodes/Event_Venue
* @version 2.6.9
*/
class SP_Shortcode_Event_Venue {
/**
* Output the event venue 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-venue.php', $atts );
}
}