2015-08-10 01:13:56 +00:00
|
|
|
<div class="availability">
|
|
|
|
<h2>Availability</h2>
|
|
|
|
<div class="content">
|
2015-08-10 08:08:18 +00:00
|
|
|
{% set now = "now"|date('U') %}
|
|
|
|
|
2015-08-10 01:15:34 +00:00
|
|
|
{% set day_available = site.availability.day.available %}
|
2015-08-10 08:04:38 +00:00
|
|
|
{% set day_start = site.availability.day.start %}
|
|
|
|
{% set day_end = site.availability.day.end %}
|
|
|
|
|
2015-08-10 01:15:34 +00:00
|
|
|
{% if (day_available == 'no') %}
|
2015-08-10 07:19:12 +00:00
|
|
|
{% set day_status = 'Not available for day contract work' %}
|
2015-08-10 01:13:56 +00:00
|
|
|
{% else %}
|
2015-08-10 07:19:12 +00:00
|
|
|
{% set day_status = 'Available for day contract work' %}
|
2015-08-10 01:13:56 +00:00
|
|
|
{% endif %}
|
2015-08-10 08:04:38 +00:00
|
|
|
|
|
|
|
{% if day_start %}
|
2015-08-10 08:08:18 +00:00
|
|
|
{% if day_start|date('U') > now %}
|
|
|
|
{% set day_status = day_status ~ ' starting ' ~ day_start|date('F Y') %}
|
|
|
|
{% endif %}
|
2015-08-10 08:10:50 +00:00
|
|
|
|
2015-08-10 08:04:38 +00:00
|
|
|
{% if evenings_end %}
|
|
|
|
{% set day_status = day_status ~ ', until ' ~ day_end|date('F Y') %}
|
|
|
|
{% endif %}
|
|
|
|
{% elseif day_end %}
|
|
|
|
{% set day_status = day_status ~ ', until ' ~ day_end|date('F Y') %}
|
|
|
|
{% endif %}
|
|
|
|
|
2015-08-10 07:19:12 +00:00
|
|
|
<p>{{ day_status }}.</p>
|
2015-08-10 01:13:56 +00:00
|
|
|
|
2015-08-10 01:15:34 +00:00
|
|
|
{% set evenings_available = site.availability.evenings.available %}
|
2015-08-10 08:04:38 +00:00
|
|
|
{% set evenings_start = site.availability.evenings.start %}
|
|
|
|
{% set evenings_end = site.availability.evenings.end %}
|
|
|
|
|
2015-08-10 01:15:34 +00:00
|
|
|
{% if (evenings_available == 'yes') %}
|
2015-08-10 07:19:12 +00:00
|
|
|
{% set evening_status = 'Available for weekend/evening freelance work' %}
|
2015-08-10 01:15:34 +00:00
|
|
|
{% elseif (evenings_available == 'limited') %}
|
2015-08-10 07:19:12 +00:00
|
|
|
{% set evening_status = 'Limited availability for weekend/evening freelance work' %}
|
2015-08-10 01:13:56 +00:00
|
|
|
{% else %}
|
2015-08-10 07:19:12 +00:00
|
|
|
{% set evening_status = 'Not available for weekend/evening freelance work' %}
|
2015-08-10 01:13:56 +00:00
|
|
|
{% endif %}
|
2015-08-10 08:04:38 +00:00
|
|
|
|
|
|
|
{% if evenings_start %}
|
2015-08-10 08:08:18 +00:00
|
|
|
{% if evenings_start|date('U') > now %}
|
|
|
|
{% set evening_status = evening_status ~ ' starting ' ~ evenings_start|date('F Y') %}
|
|
|
|
{% endif %}
|
2015-08-10 08:10:50 +00:00
|
|
|
|
2015-08-10 08:04:38 +00:00
|
|
|
{% if evenings_end %}
|
|
|
|
{% set evening_status = evening_status ~ ', until ' ~ evenings_end|date('F Y') %}
|
|
|
|
{% endif %}
|
|
|
|
{% elseif evenings_end %}
|
|
|
|
{% set evening_status = evening_status ~ ', until ' ~ evenings_end|date('F Y') %}
|
|
|
|
{% endif %}
|
|
|
|
|
2015-08-10 07:19:12 +00:00
|
|
|
<p>{{ evening_status }}.</p>
|
2015-08-10 01:13:56 +00:00
|
|
|
</div>
|
|
|
|
</div>
|