Adjust event venue styling

This commit is contained in:
Brian Miyaji
2015-03-03 23:10:16 +11:00
parent b06475e0c9
commit 560d19d5cb
4 changed files with 14 additions and 11 deletions

View File

@@ -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>

View File

@@ -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>