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>
|
<th><?php echo $name; ?></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
<?php if ( $address != null || ( $show_maps && $latitude != null && $longitude != null ) ): ?>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo $address; ?></td>
|
<td><?php echo $address; ?></td>
|
||||||
@@ -39,6 +40,7 @@ foreach( $venues as $venue ):
|
|||||||
</tr>
|
</tr>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
<?php endif; ?>
|
||||||
</table>
|
</table>
|
||||||
<?php
|
<?php
|
||||||
endforeach;
|
endforeach;
|
||||||
|
|||||||
Reference in New Issue
Block a user