{# import macros #} {% import "sections.twig" as layout %} {# layout for staffpage content #} {# links in sidebox #} {{ layout.renderSidebox(content, 'links', staffName) }} {# links in sidebox #} {{ layout.renderSidebox(content, 'research_centres', staffName) }}
{# Summary section #} {{ layout.renderSummary(summary) }} {# introduction section #} {{ layout.renderSection(content, 'introduction') }} {# academic qualifications #} {{ layout.renderSection(content, 'qualifications') }} {# inline accordions #} {% set accordions = [] %} {% for accordionSection in [content.teaching, content.research] %} {% if accordionSection and accordionSection.rows|length > 0 %} {% set accordions = accordions|merge([accordionSection]) %} {% endif %} {% endfor %} {% if accordions|length > 0 %} {# end section to insert inline accordions
#} {# output accordions #} {% for section in accordions %} {{ layout.renderAccordion(content, section.sectionName) }} {% endfor %} {# continue content after inline accordions

Further profile content

#} {% endif %} {# render 'featured' section with 'show more' functionality enabled in the second column #} {{ layout.renderSection(content, 'featured') }} {# render 'grants and awards' section with 'show more' functionality enabled in the second column #} {{ layout.renderSection(content, 'awards') }} {# inline accordions #} {% set accordions = [] %} {% for accordionSection in [content.publications] %} {% if accordionSection and accordionSection.rows|length > 0 %} {% set accordions = accordions|merge([accordionSection]) %} {% endif %} {% endfor %} {% if accordions|length > 0 %} {# end section to insert inline accordions
#} {# output accordions #} {% for section in accordions %} {{ layout.renderAccordion(content, section.sectionName) }} {% endfor %} {# continue content after inline accordions

Further profile content

#} {% endif %} {# remaining sections #} {{ layout.renderRemainingSections(content) }}