{# staff profile sections and rows #} {# macros #} {# render a section #} {% macro renderSection(content, sectionName, readMore = false, headingType = 'h2') %} {% set section = attribute(content, sectionName) %} {% do setRendered(section) %} {{ block("section") }} {% endmacro %} {# render summary #} {% macro renderSummary(summary) %}
{{ summary }}
{{ year }}
{% if row.url %}
{{ row.title }}
{% else %}
{{ row.title }}
{% endif %}
{% if row.description %}
{{ year }}{{ row.description }} {{ year }}{{ row.description }}
{{ year }}
{% if row.url %}
{{ row.title }}
{% else %}
{{ row.title }}
{% endif %}
{% if row.description %}
{{ year }}{{ row.description }} {{ year }}{{ row.description }}
'))|escape('javascript_href')|raw }}
{% endblock html_block %}
{# Base row types #}
{% block textLarge %}
{{ row.heading }}
{% endif %}
{{ block("html_block") }}
{% endfor %}
' ~ row.text %}
{% endfor %}
{% for row in section.rows %}
{% endblock yearDescription %}
{% block urlDescription %}
{% set blockTag = section.rows|length > 1 ? 'ul' : 'div' %}
{% set rowTag = section.rows|length > 1 ? 'li' : 'p' %}
<{{ blockTag }} {{ block("section_attributes") }}>
{% for row in section.rows %}
<{{ rowTag }}>
{% if row.url %}
{{ row.description }}
{% else %}
{{ row.description }}
{% endif %}
{{ rowTag }}>
{% endfor %}
{{ blockTag }}>
{% endblock urlDescription %}
{% block urlProgramme %}
{{ block("urlDescription") }}
{% endblock urlProgramme %}
{% block titleUrlYearDescription %}
{{ row.description }}
{% endif %}
{{ row.description }}
{% endif %}