Adjust event venue styling
This commit is contained in:
@@ -149,6 +149,11 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Event Venue */
|
||||||
|
.sp-event-venue thead th {
|
||||||
|
white-space: normal;
|
||||||
|
}
|
||||||
|
|
||||||
/* Event Performance */
|
/* Event Performance */
|
||||||
.sp-event-performance .sub-in,
|
.sp-event-performance .sub-in,
|
||||||
.sp-event-performance .sub-out {
|
.sp-event-performance .sub-out {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
* The SportsPress event class handles individual event data.
|
* The SportsPress event class handles individual event data.
|
||||||
*
|
*
|
||||||
* @class SP_Event
|
* @class SP_Event
|
||||||
* @version 1.6
|
* @version 1.7
|
||||||
* @package SportsPress/Classes
|
* @package SportsPress/Classes
|
||||||
* @category Class
|
* @category Class
|
||||||
* @author ThemeBoy
|
* @author ThemeBoy
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @author ThemeBoy
|
* @author ThemeBoy
|
||||||
* @package SportsPress/Templates
|
* @package SportsPress/Templates
|
||||||
* @version 1.6
|
* @version 1.7
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||||
@@ -179,8 +179,8 @@ if ( is_array( $teams ) ):
|
|||||||
} else {
|
} else {
|
||||||
// Combined table
|
// 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; ?>">
|
<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">
|
<div class="sp-table-wrapper">
|
||||||
<table class="sp-event-performance sp-data-table <?php if ( $scrollable ) { ?> sp-scrollable-table<?php } ?>">
|
<table class="sp-event-performance sp-data-table <?php if ( $scrollable ) { ?> sp-scrollable-table<?php } ?>">
|
||||||
<thead>
|
<thead>
|
||||||
|
|||||||
@@ -39,18 +39,16 @@ foreach( $venues as $venue ):
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th><?php echo $name; ?></th>
|
<th><?php echo $name; ?></th>
|
||||||
|
<?php if ( $address != null ) { ?>
|
||||||
|
<th class="sp-event-venue-address-row"><?php echo $address; ?></th>
|
||||||
|
<?php } ?>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<?php if ( $address != null || ( $show_maps && $latitude != null && $longitude != null ) ): ?>
|
<?php if ( $show_maps && $latitude != null && $longitude != null ): ?>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr class="sp-event-venue-address-row">
|
<tr class="sp-event-venue-map-row">
|
||||||
<td><?php echo $address; ?></td>
|
<td<?php if ( $address != null ) { ?> colspan="2"<?php } ?>><?php sp_get_template( 'venue-map.php', array( 'meta' => $meta ) ); ?></td>
|
||||||
</tr>
|
</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>
|
</tbody>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
Reference in New Issue
Block a user