Revert responsive table behavior to 2.5
This commit is contained in:
@@ -436,7 +436,7 @@ $identifier = uniqid( 'eventlist_' );
|
||||
<?php
|
||||
// If responsive tables are enabled then load the inline css code
|
||||
if ( $responsive ){
|
||||
sportspress_responsive_tables_css( $identifier );
|
||||
//sportspress_responsive_tables_css( $identifier );
|
||||
}
|
||||
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>';
|
||||
|
||||
@@ -26,7 +26,7 @@ $responsive = get_option( 'sportspress_enable_responsive_tables', 'no' ) == 'yes
|
||||
$identifier = uniqid( 'performance_' );
|
||||
// If responsive tables are enabled then load the inline css code
|
||||
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; } ?>">
|
||||
|
||||
@@ -66,7 +66,7 @@ $data = $table->data();
|
||||
$labels = $data[0];
|
||||
// If responsive tables are enabled then load the inline css code
|
||||
if ( true == $responsive ){
|
||||
sportspress_responsive_tables_css( $identifier );
|
||||
//sportspress_responsive_tables_css( $identifier );
|
||||
}
|
||||
// Remove the first row to leave us with the actual data
|
||||
unset( $data[0] );
|
||||
|
||||
@@ -61,7 +61,7 @@ $labels = $data[0];
|
||||
$identifier = uniqid( 'playerlist_' );
|
||||
// If responsive tables are enabled then load the inline css code
|
||||
if ( true == $responsive ){
|
||||
sportspress_responsive_tables_css( $identifier );
|
||||
//sportspress_responsive_tables_css( $identifier );
|
||||
}
|
||||
// Remove the first row to leave us with the actual data
|
||||
unset( $data[0] );
|
||||
|
||||
Reference in New Issue
Block a user