• 7 Community House, 41 Salt River Road, Salt River
  • 021 486 1100
{% set article = articles[0] %} {% if article == null %}
{% set random = Math.random() * 4 %} {% set floor = Math.floor(random) %} {% set randomMastHead = site.masthead_images[floor] %} {% if randomMastHead != null %}
{% endif %}

Oops! Article not found, where to from here:

{% endif %} {% if article != null %}
{% set random = Math.random() * 4 %} {% set floor = Math.floor(random) %} {% set randomMastHead = site.masthead_images[floor] %} {% if randomMastHead != null %}
{% endif %}

{{article.headline}}

{% set media_article = article %} {% set articleMediaItem = {location:'http://placehold.it/840x381'} %} {% set found = null %} {% set first = null %} {% for mediaItem in media_article.media %} {% if mediaItem.location != null %} {% set media_url = mediaItem.location.toLowerCase() %} {% set parts = media_url.split('.') %} {% set ext = parts[parts.length - 1] %} {% if ext == 'jpeg' || ext == 'bmp' || ext == 'jpg' || ext == 'png' %} {% if !found && !first %} {% set articleMediaItem = mediaItem %} {% set first = true %} {% endif %} {% if mediaItem.name.indexOf('big_image') > -1 %} {% set articleMediaItem = mediaItem %} {% set found = true %} {% endif %} {% endif %} {% endif %} {% endfor %} {% set mediaSizeX = 840 %} {% set mediaSizeY = 381 %} {% set mediaItem = articleMediaItem %} {% set gallery_exclude = articleMediaItem.location %} {% if mediaSizeX == null %} {% set mediaSizeX = 570 %} {% endif %} {% if mediaSizeY == null %} {% set mediaSizeY = 371 %} {% endif %} {% if mediaItem.location != null && mediaItem.location.indexOf("www.youtube.com") > -1 %}
{% else %} {% set location = mediaItem.location %} {% endif %}
{{article.subheading}}
{{article.article_layout|safe}}
{% if article %} {% endif %}
{% endif %}
{% if article != null %} {% endif %}