Update modules
This commit is contained in:
@@ -29,6 +29,13 @@ class SP_Modules {
|
||||
'icon' => 'sp-icon-calendar',
|
||||
'desc' => __( 'Organize and publish calendars using different layouts.', 'sportspress' ),
|
||||
),
|
||||
'event_grids' => array(
|
||||
'label' => __( 'Match Grids', 'sportspress' ),
|
||||
'class' => 'SportsPress_Event_Grids',
|
||||
'icon' => 'sp-icon-grid',
|
||||
'link' => 'https://www.themeboy.com/sportspress-extensions/match-grids/',
|
||||
'desc' => __( 'Display fixtures and results between teams in a grid layout.', 'sportspress' ),
|
||||
),
|
||||
'scoreboard' => array(
|
||||
'label' => __( 'Scoreboard', 'sportspress' ),
|
||||
'class' => 'SportsPress_Scoreboard',
|
||||
|
||||
@@ -137,6 +137,15 @@ function sp_the_main_results_or_time( $post = 0, $delimiter = '-' ) {
|
||||
echo implode( $delimiter, sp_get_main_results_or_time( $post ) );
|
||||
}
|
||||
|
||||
function sp_get_main_results_or_date( $post = 0, $format = null ) {
|
||||
$results = sp_get_main_results( $post );
|
||||
if ( sizeof( $results ) ) {
|
||||
return $results;
|
||||
} else {
|
||||
return array( sp_get_date( $post, $format ) );
|
||||
}
|
||||
}
|
||||
|
||||
function sp_get_outcome( $post = 0 ) {
|
||||
$event = new SP_Event( $post );
|
||||
return $event->outcome( true );
|
||||
|
||||
Reference in New Issue
Block a user