Add class to table captions instead of wrapping
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 ) );
|
||||
|
||||
@@ -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>' .
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user