Add team table columns shortcode close #32

This commit is contained in:
Brian Miyaji
2014-08-15 23:03:35 +10:00
parent 47a2aca3f7
commit 95d6210ffd
6 changed files with 160 additions and 86 deletions

View File

@@ -0,0 +1,24 @@
<?php
/**
* Team Columns Shortcode
*
* @author ThemeBoy
* @category Shortcodes
* @package SportsPress/Shortcodes/Team_Columns
* @version 1.3
*/
class SP_Shortcode_Team_Columns {
/**
* Output the team columns 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-columns.php', $atts );
}
}