Skip to content

Instantly share code, notes, and snippets.

@1stevengrant
Created August 26, 2014 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 1stevengrant/0b70c33347e425e0dda9 to your computer and use it in GitHub Desktop.
Save 1stevengrant/0b70c33347e425e0dda9 to your computer and use it in GitHub Desktop.
{% extends "_layout" %}
{% set title = "Talks" %}
{% block content %}
<div class="body-content">
<div class="body-inner">
{% for session in craft.entries.section('session').sessionType('Plenary').order('sessionDateTime','title') %}
{% if loop.first %}
<div class="talks plenaries">
{{ entry.sessionPlenariesContent }}
<h3>Plenaries</h3>
<hr class="green" />
{% endif %}
{% include "_talk-block" %}
{% if loop.last %}
</div>
<!-- // .talks .plenaries -->
{% endif %}
{% endfor %}
{# START WORKSHOPS #}
<div class="talks workshops">
{{ entry.sessionWorkshopContent }}
<h3>Workshops</h3>
<hr class="green" />
{% set allWorkshops = craft.entries.section('session').sessionType('Workshop').order('sessionRound','title') %}
{% set allWorkshopsByRound = allWorkshops|group('sessionRound') %}
{% for round, workshopsInRound in allWorkshopsByRound %}
<h3 class="round">Round {{ round }}</h3>
{% for entry in workshopsInRound %}
{% set speaker = entry.sessionSpeaker.first() %}
<div class="talk">
<h4>{% for speaker in entry.sessionSpeaker %}{{ speaker.speakerFirstName }} {{ speaker.title }}{% if not loop.last %}, {% endif %}{% endfor %} | {{ entry.title }}</h4>
{{ entry.sessionOverview }}
</div>
<!-- // .talk -->
{% endfor %}
{% endfor %}
</div>
{# START FOCUS GATHERINGS #}
{% for session in craft.entries.section('session').sessionType('Focus Gathering').order('title') %}
{% if loop.first %}
<div class="talks workshops">
{{ entry.sessionFocusGatheringContent }}
<h3>Focus Gatherings</h3>
<hr class="green" />
{% endif %}
{% include "_talk-block" %}
{% if loop.last %}
</div>
<!-- // .talks .workshops -->
{% endif %}
{% endfor %}
</div>
<!-- // .body-inner -->
</div>
<!-- // .body-content -->
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment