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

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