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