From 160eccc15fe7fcd23ea1608c4daca54c6e06779f Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Sat, 24 Jan 2015 12:46:34 +1100 Subject: [PATCH] Wrap scrollable tables via script --- templates/event-details.php | 4 ++-- templates/event-list.php | 4 ++-- templates/event-performance.php | 4 ++-- templates/event-results.php | 4 ++-- templates/league-table.php | 4 ++-- templates/player-list.php | 4 ++-- templates/player-statistics.php | 8 ++++---- 7 files changed, 16 insertions(+), 16 deletions(-) diff --git a/templates/event-details.php b/templates/event-details.php index 4225b74b..873ee3ac 100644 --- a/templates/event-details.php +++ b/templates/event-details.php @@ -32,8 +32,8 @@ endforeach; ?>

-
- +
+
$value ): ?> diff --git a/templates/event-list.php b/templates/event-list.php index 590f0a8b..43137ee5 100644 --- a/templates/event-list.php +++ b/templates/event-list.php @@ -60,8 +60,8 @@ if ( $id ) { } ?>
-
-
+
+
-
-
+
+
diff --git a/templates/event-results.php b/templates/event-results.php index cbdac8f6..11256268 100644 --- a/templates/event-results.php +++ b/templates/event-results.php @@ -97,8 +97,8 @@ else: $output .= '

' . __( 'Team Results', 'sportspress' ) . '

'; - $output .= '
' . - '
' . + $output .= '
' . + '
' . ''; foreach( $labels as $key => $label ): $output .= ''; diff --git a/templates/league-table.php b/templates/league-table.php index ce1555a1..15b11ebe 100644 --- a/templates/league-table.php +++ b/templates/league-table.php @@ -30,9 +30,9 @@ if ( ! isset( $highlight ) ) $highlight = get_post_meta( $id, 'sp_highlight', tr $output = '

' . get_the_title( $id ) . '

'; -$output .= '
'; +$output .= '
'; -$output .= '
' . __( 'Team', 'sportspress' ) . '' . $label . '
' . '' . ''; +$output .= '
' . '' . ''; $table = new SP_League_Table( $id ); diff --git a/templates/player-list.php b/templates/player-list.php index a7a27bcd..9b4a997a 100644 --- a/templates/player-list.php +++ b/templates/player-list.php @@ -85,8 +85,8 @@ foreach ( $groups as $group ): $output .= '<' . $grouptag . ' class="sp-table-caption player-group-name player-list-group-name">' . $group->name . ''; endif; - $output .= '
' . - '
' . '' . ''; + $output .= '
' . + '
' . '' . ''; if ( ! is_array( $labels ) || array_key_exists( 'number', $labels ) ): if ( in_array( $orderby, array( 'number', 'name' ) ) ): diff --git a/templates/player-statistics.php b/templates/player-statistics.php index 56a2baea..25bd8da3 100644 --- a/templates/player-statistics.php +++ b/templates/player-statistics.php @@ -35,8 +35,8 @@ if ( is_array( $leagues ) ): continue; $output = '

' . $league->name . '

' . - '
' . - '
' . '' . ''; + '
' . + '
' . '' . ''; foreach( $labels as $key => $label ): $output .= ''; @@ -83,8 +83,8 @@ if ( $show_total ): return false; $output = '

' . __( 'Career Total', 'sportspress' ) . '

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