{% extends "base.html" %} {% load wagtailsettings_tags wagtailcore_tags core_tags wagtailimages_tags wagtailembeds_tags gem_tags %} {% get_settings %} {% block content %} {% with ancestor=self.get_parent_section.get_parent_section.get_parent_section parent=self.get_parent_section.get_parent_section section=self.get_parent_section %} {% get_translation section as translated_section %} {% if ancestor %} {% content_is ancestor "Watch" as is_watch_ancestor %} {% content_is ancestor "Listen" as is_listen_ancestor %} {% elif parent %} {% content_is parent "Watch" as is_watch_parent %} {% content_is parent "Listen" as is_listen_parent %} {% else %} {% content_is section "Watch" as is_watch %} {% content_is section "Listen" as is_listen %} {% content_is section "News" as is_news %} {% content_is section "Cast" as is_cast %} {% endif %}
{% if is_watch_ancestor or is_watch_parent or is_watch %}

{{ page.title}}

{% if page.homepage_media %} {% for block in page.homepage_media %} {% with block.value as media %} {% if media.duration %}

({{media.duration}})

{% endif %} {% endwith %} {% endfor %} {% endif %} {% endif %} {% if is_listen_ancestor or is_listen_parent or is_listen %}

{{ page.title}}

{% if page.homepage_media %} {% for block in page.homepage_media %} {% with block.value as media %} {% endwith %} {% endfor %} {% endif %} {% endif %} {% if page.homepage_media %} {% for block in page.homepage_media %} {% with block.value as media %} {% if block.value.youtube_link %}
{% embed media.youtube_link %}
{% elif block.value.type == 'video' %}
{% elif block.value.type == 'audio' %} {% if self.get_effective_image %}
{% image self.get_effective_image width-1080 format-jpeg as article_thumbnail %} {{ self.title }}
{% endif %}
{% endif %} {% endwith %} {% endfor %} {% else %} {% if self.get_effective_image %}
{% image self.get_effective_image width-1080 format-jpeg as article_thumbnail %} {{ self.title }}
{% endif %} {% endif %} {% if is_news or is_cast %}

{{ page.title}}

{{ page.subtitle}}

{% endif %} {% load_tags_for_article self as tags %} {% if tags %} {% endif %} {% if is_watch_ancestor or is_watch_parent or is_watch %}
{% elif is_listen_ancestor or is_listen_parent or is_listen %}
{% endif %}
{% for block in self.body %} {% if block.block_type == 'heading' %}

{{ block.value }}

{% elif block.block_type == 'image' %}
{% image block.value width-720 format-jpeg class="article-page__thumbnail--inner" %}
{% elif block.value.youtube_link %} {% with block.value as media %}
{% if not is_via_freebasics %}
{% embed media.youtube_link %}
{% else %}

{{media.title}}

{% trans 'Click to watch on youtube!' %}

{% trans "Media will be played externally in a new window" %}

{% endif %}
{% endwith %} {% elif block.value.type == 'video'%} {% with block.value as media %}
{% if not is_via_freebasics %}
{% else %}

{{media.title}}

{% trans "Video files will not be played, you can download them" %}

{% endif %}
{% endwith %} {% elif block.value.type == 'audio'%} {% with block.value as media %}
{% if not is_via_freebasics %}
{% else %}

{{media.title}}

{% trans "Audio files will not be played, you can download them" %}

{% endif %}
{% endwith %} {% elif block.block_type == 'numbered_list' %}
    {% for item in block.value %}
  1. {{ item|handle_markdown }}
  2. {% endfor %}
{% elif block.block_type == 'list' %}
    {% for item in block.value %}
  • {{ item|handle_markdown }}
  • {% endfor %}
{% else %} {{ block }} {% endif %} {% endfor %}
{% if settings.core.SiteSettings.enable_clickable_tags %}
    {% for tag in self.tags_list %}
  • {{tag}}
  • {% endfor %}
{% endif %} {% if settings.core.SiteSettings.facebook_sharing or settings.core.SiteSettings.twitter_sharing or settings.core.SiteSettings.whatsapp_sharing or settings.core.SiteSettings.telegram_sharing or settings.core.SiteSettings.viber_sharing %} {% if is_watch_ancestor or is_watch_parent or is_watch %} {% elif is_listen_ancestor or is_listen_parent or is_listen %} {% else %} {% endif %} {% endif %} {% trans "Go back to" %} {{translated_section}} {% if is_watch_ancestor or is_watch_parent or is_watch %}
{% include "core/related-article-list.html" with teaser_type="grid" %}
{% elif is_listen_ancestor or is_listen_parent or is_listen %}
{% include "core/related-article-list.html" with teaser_type="grid" %}
{% endif %}
{% endwith %} {% endblock %}