Display venue table body only when content exists

This commit is contained in:
Brian Miyaji
2014-03-29 18:07:52 +11:00
parent 8488cf56bc
commit 62094357c6

View File

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