Close brackets in event list template

This commit is contained in:
Brian Miyaji
2018-01-17 10:50:25 +11:00
parent cb52599d17
commit 210122ad67

View File

@@ -132,8 +132,9 @@ $identifier = uniqid( 'eventlist_' );
if ( sp_column_active( $usecolumns, 'event' ) ) { if ( sp_column_active( $usecolumns, 'event' ) ) {
if ( $title_format == 'teams' ){ if ( $title_format == 'teams' ){
echo '<th class="data-teams">' . __( 'Teams', 'sportspress' ) . '</th>'; echo '<th class="data-teams">' . __( 'Teams', 'sportspress' ) . '</th>';
}else{ } else {
echo '<th class="data-event">' . __( 'Event', 'sportspress' ) . '</th>'; echo '<th class="data-event">' . __( 'Event', 'sportspress' ) . '</th>';
}
} }
switch ( $time_format ) { switch ( $time_format ) {
@@ -434,10 +435,11 @@ $identifier = uniqid( 'eventlist_' );
</div> </div>
<?php <?php
// If responsive tables are enabled then load the inline css code // If responsive tables are enabled then load the inline css code
if ( true == $responsive ){ if ( $responsive ){
sportspress_responsive_tables_css( $identifier ); sportspress_responsive_tables_css( $identifier );
} }
if ( $id && $show_all_events_link ) if ( $id && $show_all_events_link ) {
echo '<div class="sp-calendar-link sp-view-all-link"><a href="' . get_permalink( $id ) . '">' . __( 'View all events', 'sportspress' ) . '</a></div>'; echo '<div class="sp-calendar-link sp-view-all-link"><a href="' . get_permalink( $id ) . '">' . __( 'View all events', 'sportspress' ) . '</a></div>';
}
?> ?>
</div> </div>