Revert responsive table behavior to 2.5

This commit is contained in:
Brian Miyaji
2018-01-26 08:11:21 +11:00
parent dedfe98ed1
commit 2e02758969
4 changed files with 4 additions and 4 deletions

View File

@@ -436,7 +436,7 @@ $identifier = uniqid( 'eventlist_' );
<?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 ( $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>';

View File

@@ -26,7 +26,7 @@ $responsive = get_option( 'sportspress_enable_responsive_tables', 'no' ) == 'yes
$identifier = uniqid( 'performance_' ); $identifier = uniqid( 'performance_' );
// 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 && $mode == 'values' ){ if ( true == $responsive && $mode == 'values' ){
sportspress_responsive_tables_css( $identifier ); //sportspress_responsive_tables_css( $identifier );
} }
?> ?>
<div class="sp-template sp-template-event-performance sp-template-event-performance-<?php echo $mode; ?><?php if ( isset( $class ) ) { echo ' ' . $class; } ?>"> <div class="sp-template sp-template-event-performance sp-template-event-performance-<?php echo $mode; ?><?php if ( isset( $class ) ) { echo ' ' . $class; } ?>">

View File

@@ -66,7 +66,7 @@ $data = $table->data();
$labels = $data[0]; $labels = $data[0];
// 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 ( true == $responsive ){
sportspress_responsive_tables_css( $identifier ); //sportspress_responsive_tables_css( $identifier );
} }
// Remove the first row to leave us with the actual data // Remove the first row to leave us with the actual data
unset( $data[0] ); unset( $data[0] );

View File

@@ -61,7 +61,7 @@ $labels = $data[0];
$identifier = uniqid( 'playerlist_' ); $identifier = uniqid( 'playerlist_' );
// 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 ( true == $responsive ){
sportspress_responsive_tables_css( $identifier ); //sportspress_responsive_tables_css( $identifier );
} }
// Remove the first row to leave us with the actual data // Remove the first row to leave us with the actual data
unset( $data[0] ); unset( $data[0] );