Add class to table captions instead of wrapping

This commit is contained in:
Brian Miyaji
2014-07-11 09:45:52 +10:00
parent 0f0d15f4f7
commit cab3ba3db5
5 changed files with 4 additions and 8 deletions

View File

@@ -75,12 +75,8 @@ function sp_get_template( $template_name, $args = array(), $template_path = '',
do_action( 'sportspress_before_template_part', $template_name, $template_path, $located, $args );
echo '<div class="sp-template sp-template-' . str_replace( '.', '-', $template_name ) . '">';
include( $located );
echo '</div>';
do_action( 'sportspress_after_template_part', $template_name, $template_path, $located, $args );
}

View File

@@ -29,7 +29,7 @@ if ( $seasons ):
$data[ __( 'Season', 'sportspress' ) ] = $season->name;
endif;
?>
<h3><?php _e( 'Details', 'sportspress' ); ?></h3>
<h4 class="sp-table=caption"><?php _e( 'Details', 'sportspress' ); ?></h4>
<div class="sp-table-wrapper sp-scrollable-table-wrapper">
<table class="sp-event-details sp-data-table">
<thead>

View File

@@ -44,7 +44,7 @@ foreach( $teams as $index => $team_id ):
$data = sp_array_combine( $players, sp_array_value( $performance, $team_id, array() ) );
?>
<h3><?php echo get_the_title( $team_id ); ?></h3>
<h4 class="sp-table=caption"><?php echo get_the_title( $team_id ); ?></h4>
<?php
if ( get_option( 'sportspress_event_show_staff', 'yes' ) == 'yes' ):
sp_get_template( 'event-staff.php', array( 'id' => $id, 'index' => $index ) );

View File

@@ -86,7 +86,7 @@ if ( empty( $table_rows ) ):
else:
$output .= '<h3>' . __( 'Team Results', 'sportspress' ) . '</h3>';
$output .= '<h4 class="sp-table=caption">' . __( 'Team Results', 'sportspress' ) . '</h4>';
$output .= '<div class="sp-table-wrapper sp-scrollable-table-wrapper">' .
'<table class="sp-event-results sp-data-table sp-responsive-table"><thead>' .

View File

@@ -32,7 +32,7 @@ foreach( $venues as $venue ):
$latitude = sp_array_value( $meta, 'sp_latitude', 0 );
$longitude = sp_array_value( $meta, 'sp_longitude', 0 );
?>
<h3><?php _e( 'Venue', 'sportspress' ); ?></h3>
<h4 class="sp-table=caption"><?php _e( 'Venue', 'sportspress' ); ?></h4>
<table class="sp-data-table sp-event-venue">
<thead>
<tr>