Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php echo $adults ?> live in a <?php echo ($bedrooms==1?$bedrooms . ' bedroom': $bedrooms . ' bedrooms') ?> <?php echo $home_type ?> in <?php echo $town ?>.
<?php if($children!=0): ?>
They live with <?php echo $children ?> children in the home.
Their
<?php if($child_1_gender != 'N/a' && $child_1_gender != 'None'): ?>
<?php echo $child_1_gender ?> was born in <?php echo $child_1_dob ?>
<?php endif; ?>
<?php if($child_2_gender != 'N/a' && $child_2_gender != 'None'): ?>
, their <?php echo $child_2_gender ?> was born in <?php echo $child_2_dob ?>
<?php endif; ?>
<?php if($child_3_gender != 'N/a' && $child_3_gender != 'None'): ?>
, their <?php echo $child_3_gender ?> was born in <?php echo $child_3_dob ?>
<?php endif; ?>
<?php if($child_4_gender != 'N/a' && $child_4_gender != 'None'): ?>
, their <?php echo $child_4_gender ?> was born in <?php echo $child_4_dob ?>
<?php endif; ?>
<?php if($child_5_gender != 'N/a' && $child_5_gender != 'None'): ?>
, their <?php echo $child_5_gender ?> was born in <?php echo $child_5_dob ?>
<?php endif; ?>.
<?php endif; ?>
<?php if($hosts_dob): ?>
<br><br>
The host(s) was/were born in <?php echo $hosts_dob ?>
<?php if($partner_dob): ?>
and <?php echo $partner_dob ?>
<?php endif; ?>
and work as a <?php echo $hosts_occupation ?>
<?php if($partners_occupation): ?>
and a <?php echo $partners_occupation ?>.
<?php endif; ?>
<?php endif; ?>
<?php if($hobbies): ?>
<br><br>
In their spare time the host(s) enjoy <?php echo $hobbies?>.
<?php endif; ?>
<br><br>
The homestay is located in zone <?php echo $homestay_zone ?>.
<?php if($tube != 'N/a'): ?>
It is <?php echo $tube_distance ?> miles (approximately <?php echo $tube_distance_mins ?> minutes’ walk) to <?php echo $tube ?> station<?php if($other_tube != 'N/a'):
?>, or <?php echo $other_tube_distance ?> miles (approximately <?php echo $other_tube_distance_mins ?> minutes’ walk) to <?php echo $other_tube ?> station
<?php endif; ?>.<br>
<?php endif; ?>
<?php if($rail_station != 'N/a'): ?>
On the rail it is <?php echo $rail_distance ?> miles (approximately <?php echo $rail_distance_mins ?> minutes’ walk) to <?php echo $rail_station ?> station.
<?php endif; ?>
<br>
They have <?php echo $pets_detail ?> as pets
<?php if($accept_smokers=='No' && $anyone_smoke_in_house=='No'): ?> and this is a strictly non-smoking home.
<?php elseif($anyone_smoke_in_house=='Yes - Outside Only'): ?> and this is a home where the hosts smoke but outside only.
<?php elseif($anyone_smoke_in_house=='Ye'): ?> and this is a home where the hosts smoke inside the home.
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.