diff --git a/assets/css/sportspress.css b/assets/css/sportspress.css index afaa4efe..137139c0 100644 --- a/assets/css/sportspress.css +++ b/assets/css/sportspress.css @@ -1,8 +1,13 @@ /* SportsPress */ +.sp-scrollable-table-wrapper { + overflow: auto; +} + /* Data Tables */ .sp-data-table { width: 100%; + position: relative; } .sp-data-table thead .sorting, .sp-data-table thead .sorting_asc, @@ -122,7 +127,6 @@ } .sp-event-blocks .team-logo { width: 20%; - height: auto; margin: 10px; } .sp-event-blocks .logo-odd { diff --git a/templates/event-blocks.php b/templates/event-blocks.php index 8cedcb41..eda416b7 100644 --- a/templates/event-blocks.php +++ b/templates/event-blocks.php @@ -94,8 +94,8 @@ if ( isset( $columns ) ) ?> - ' . SP()->text->string('View all events') . ''; - ?> - \ No newline at end of file + +' . SP()->text->string('View all events') . ''; +?> \ No newline at end of file diff --git a/templates/event-details.php b/templates/event-details.php index 2cc562b1..7519deb9 100644 --- a/templates/event-details.php +++ b/templates/event-details.php @@ -30,7 +30,7 @@ if ( $seasons ): endif; ?>

text->string('Details'); ?>

-
+
diff --git a/templates/event-list.php b/templates/event-list.php index b2b3837c..6ce922a9 100644 --- a/templates/event-list.php +++ b/templates/event-list.php @@ -35,7 +35,7 @@ $usecolumns = $calendar->columns; if ( isset( $columns ) ) $usecolumns = $columns; ?> -
+
@@ -163,8 +163,8 @@ if ( isset( $columns ) ) ?>
- ' . SP()->text->string('View all events') . ''; - ?> -
\ No newline at end of file +
+' . SP()->text->string('View all events') . ''; +?> \ No newline at end of file diff --git a/templates/event-performance.php b/templates/event-performance.php index 78338fb8..8c58755e 100644 --- a/templates/event-performance.php +++ b/templates/event-performance.php @@ -41,7 +41,7 @@ foreach( $teams as $key => $team_id ): $data = sp_array_combine( $players, sp_array_value( $stats, $team_id, array() ) ); ?>

-
+
diff --git a/templates/event-results.php b/templates/event-results.php index 90163f20..d7f4f2b0 100644 --- a/templates/event-results.php +++ b/templates/event-results.php @@ -33,7 +33,7 @@ if ( empty( $results ) ) return false; foreach( $results as $team_id => $result ): - if ( sp_array_value( $result, 'outcome', '-1' ) != '-1' ): + if ( count( array_filter( $results ) ) ): if ( $show_outcomes ): $outcomes = array(); @@ -85,7 +85,7 @@ else: $output .= '

' . SP()->text->string('Team Results') . '

'; - $output .= '
' . + $output .= '
' . '
' . ''; foreach( $result_labels as $key => $label ): diff --git a/templates/league-table.php b/templates/league-table.php index 02ec0a5f..17c3192b 100644 --- a/templates/league-table.php +++ b/templates/league-table.php @@ -25,7 +25,7 @@ $defaults = array( extract( $defaults, EXTR_SKIP ); -$output = '
'; +$output = '
'; if ( $show_caption ): $output .= '

' . get_the_title( $id ) . '

'; @@ -102,9 +102,9 @@ endforeach; $output .= '' . '
' . SP()->text->string('Team') . '
'; +$output .= '
'; + if ( $show_full_table_link ) $output .= '' . SP()->text->string('View full table') . ''; -$output .= '
'; - echo $output; diff --git a/templates/player-list.php b/templates/player-list.php index 48afb228..376565c2 100644 --- a/templates/player-list.php +++ b/templates/player-list.php @@ -68,7 +68,7 @@ foreach ( $groups as $group ): if ( ! empty( $group->name ) ) $output .= '

' . $group->name . '

'; - $output .= '
' . + $output .= '
' . '' . '' . ''; if ( in_array( $orderby, array( 'number', 'name' ) ) ): diff --git a/templates/player-performance-table.php b/templates/player-performance-table.php index 9c5e0176..df33a3cf 100644 --- a/templates/player-performance-table.php +++ b/templates/player-performance-table.php @@ -30,7 +30,7 @@ if ( empty( $data ) ) return false; $output = '

' . $league->name . '

' . - '
' . + '
' . '
' . '' . ''; foreach( $labels as $key => $label ): diff --git a/templates/player-statistics.php b/templates/player-statistics.php index eecc905e..f70a5d56 100644 --- a/templates/player-statistics.php +++ b/templates/player-statistics.php @@ -33,7 +33,7 @@ if ( is_array( $leagues ) ): return false; $output = '

' . $league->name . '

' . - '
' . + '
' . '
' . '' . ''; foreach( $labels as $key => $label ): diff --git a/templates/team-columns.php b/templates/team-columns.php index d9793ccc..53afbe36 100644 --- a/templates/team-columns.php +++ b/templates/team-columns.php @@ -35,7 +35,7 @@ foreach ( $leagues as $league ): unset( $data[0] ); $output .= '

' . $league->name . '

' . - '
' . + '
' . '
' . '' . ''; foreach( $labels as $key => $label ):