Adjust event venue styling
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author ThemeBoy
|
||||
* @package SportsPress/Templates
|
||||
* @version 1.6
|
||||
* @version 1.7
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
@@ -179,8 +179,8 @@ if ( is_array( $teams ) ):
|
||||
} else {
|
||||
// Combined table
|
||||
?>
|
||||
<h4 class="sp-table-caption"><?php _e( 'Performance', 'sportspress' ); ?></h4>
|
||||
<div class="sp-template sp-template-event-performance sp-template-event-performance-<?php echo $mode; ?>">
|
||||
<h4 class="sp-table-caption"><?php _e( 'Performance', 'sportspress' ); ?></h4>
|
||||
<div class="sp-table-wrapper">
|
||||
<table class="sp-event-performance sp-data-table <?php if ( $scrollable ) { ?> sp-scrollable-table<?php } ?>">
|
||||
<thead>
|
||||
|
||||
@@ -39,18 +39,16 @@ foreach( $venues as $venue ):
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php echo $name; ?></th>
|
||||
<?php if ( $address != null ) { ?>
|
||||
<th class="sp-event-venue-address-row"><?php echo $address; ?></th>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
</thead>
|
||||
<?php if ( $address != null || ( $show_maps && $latitude != null && $longitude != null ) ): ?>
|
||||
<?php if ( $show_maps && $latitude != null && $longitude != null ): ?>
|
||||
<tbody>
|
||||
<tr class="sp-event-venue-address-row">
|
||||
<td><?php echo $address; ?></td>
|
||||
<tr class="sp-event-venue-map-row">
|
||||
<td<?php if ( $address != null ) { ?> colspan="2"<?php } ?>><?php sp_get_template( 'venue-map.php', array( 'meta' => $meta ) ); ?></td>
|
||||
</tr>
|
||||
<?php if ( $show_maps && $latitude != null && $longitude != null ): ?>
|
||||
<tr class="sp-event-venue-map-row">
|
||||
<td><?php sp_get_template( 'venue-map.php', array( 'meta' => $meta ) ); ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user