-1, 'sortable' => get_option( 'sportspress_enable_sortable_tables', 'yes' ) == 'yes' ? true : false, 'responsive' => get_option( 'sportspress_enable_responsive_tables', 'yes' ) == 'yes' ? true : false, 'paginated' => get_option( 'sportspress_calendar_paginated', 'yes' ) == 'yes' ? true : false, 'rows' => get_option( 'sportspress_calendar_rows', 10 ), 'show_all_events_link' => false, ); extract( $defaults, EXTR_SKIP ); ?>
| ' . SP()->text->string('Event', 'event') . ' | '; if ( $usecolumns == null || in_array( 'teams', $usecolumns ) ) echo '' . SP()->text->string('Teams', 'event') . ' | '; if ( $usecolumns == null || in_array( 'time', $usecolumns ) ) echo '' . SP()->text->string('Time', 'event') . ' | '; if ( $usecolumns == null || in_array( 'venue', $usecolumns ) ) echo '' . SP()->text->string('Venue', 'event') . ' | '; if ( $usecolumns == null || in_array( 'article', $usecolumns ) ) echo '' . SP()->text->string('Article', 'event') . ' | '; ?>|
|---|---|---|---|---|---|
| ' . get_post_time( get_option( 'date_format' ), false, $event ) . ' | '; if ( $usecolumns == null || in_array( 'event', $usecolumns ) ) echo '' . $event->post_title . ' | '; if ( $usecolumns == null || in_array( 'teams', $usecolumns ) ): echo '';
$teams = get_post_meta( $event->ID, 'sp_team', false );
if ( $teams ):
foreach ( $teams as $team ):
$name = get_the_title( $team );
if ( $name ):
$team_results = sp_array_value( $results, $team, null );
if ( $primary_result ):
$team_result = sp_array_value( $team_results, $primary_result, null );
else:
if ( is_array( $team_results ) ):
end( $team_results );
$team_result = prev( $team_results );
else:
$team_result = null;
endif;
endif;
echo $name;
if ( $team_result != null ):
echo ' (' . $team_result . ')';
endif;
echo ' '; endif; endforeach; else: echo '—'; endif; echo ' | ';
endif;
if ( $usecolumns == null || in_array( 'time', $usecolumns ) )
echo '' . get_post_time( get_option( 'time_format' ), false, $event ) . ' | '; if ( $usecolumns == null || in_array( 'venue', $usecolumns ) ): echo ''; the_terms( $event->ID, 'sp_venue' ); echo ' | '; endif; if ( $usecolumns == null || in_array( 'article', $usecolumns ) ): echo ''; if ( $video ): echo ''; elseif ( has_post_thumbnail( $event->ID ) ): echo ''; endif; if ( $event->post_content !== null ): if ( $event->post_status == 'publish' ): echo SP()->text->string('Recap', 'event'); else: echo SP()->text->string('Preview', 'event'); endif; endif; echo ' | '; endif; echo '