Display venue table body only when content exists
This commit is contained in:
@@ -29,6 +29,7 @@ foreach( $venues as $venue ):
|
||||
<th><?php echo $name; ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<?php if ( $address != null || ( $show_maps && $latitude != null && $longitude != null ) ): ?>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><?php echo $address; ?></td>
|
||||
@@ -39,6 +40,7 @@ foreach( $venues as $venue ):
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
<?php
|
||||
endforeach;
|
||||
|
||||
Reference in New Issue
Block a user