Simplify responsive styles to avoid theme-specific tweaks
This commit is contained in:
@@ -452,8 +452,7 @@ $identifier = uniqid( 'eventlist_' );
|
||||
<?php
|
||||
// If responsive tables are enabled then load the inline css code
|
||||
if ( true == $responsive ){
|
||||
$theme_name = wp_get_theme()->get( 'Name' );
|
||||
sportspress_responsive_tables_css( $labels, $identifier, $theme_name );
|
||||
sportspress_responsive_tables_css( $labels, $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>';
|
||||
|
||||
@@ -268,6 +268,5 @@ $identifier = uniqid( 'performance_' );
|
||||
<?php
|
||||
// If responsive tables are enabled then load the inline css code
|
||||
if ( true == $responsive && $mode == 'values' ){
|
||||
$theme_name = wp_get_theme()->get( 'Name' );
|
||||
sportspress_responsive_tables_css( $rlabels, $identifier, $theme_name );
|
||||
sportspress_responsive_tables_css( $rlabels, $identifier );
|
||||
}
|
||||
|
||||
@@ -66,8 +66,7 @@ $data = $table->data();
|
||||
$labels = $data[0];
|
||||
// If responsive tables are enabled then load the inline css code
|
||||
if ( true == $responsive ){
|
||||
$theme_name = wp_get_theme()->get( 'Name' );
|
||||
sportspress_responsive_tables_css( $labels, $identifier, $theme_name );
|
||||
sportspress_responsive_tables_css( $labels, $identifier );
|
||||
}
|
||||
// Remove the first row to leave us with the actual data
|
||||
unset( $data[0] );
|
||||
|
||||
@@ -60,8 +60,7 @@ $labels = $data[0];
|
||||
$identifier = uniqid( 'playerlist_' );
|
||||
// If responsive tables are enabled then load the inline css code
|
||||
if ( true == $responsive ){
|
||||
$theme_name = wp_get_theme()->get( 'Name' );
|
||||
sportspress_responsive_tables_css( $labels, $identifier, $theme_name );
|
||||
sportspress_responsive_tables_css( $labels, $identifier );
|
||||
}
|
||||
// Remove the first row to leave us with the actual data
|
||||
unset( $data[0] );
|
||||
|
||||
Reference in New Issue
Block a user