-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from pilot/task-18
Add speaker info box, #18
- Loading branch information
Showing
3 changed files
with
65 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
src/Event/EventBundle/Resources/views/Event/_speaker-modal.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<div class="modal fade" id="speaker-modal-{{ speaker.id }}"> | ||
<div class="modal-dialog"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | ||
<h4 class="modal-title">{{ speaker.fullName }}</h4> | ||
<small>{{ speaker.company ? speaker.company : '' }} {{ speaker.position ? '(' ~ speaker.position ~ ')' }}</small> | ||
</div> | ||
<div class="modal-body" id="speaker-info"> | ||
<div class="row"> | ||
<div class="col-sm-12 ta-center"> | ||
<img class="img-circle" data-src="holder.js/160x160/text:{{ speaker.fullName }}" src="{{ speaker.photo ?: '' }}" width="160" /> | ||
</div> | ||
</div> | ||
<hr> | ||
<div class="row"> | ||
<div class="col-sm-12"> | ||
<h4>Info</h4> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-sm-12"> | ||
{% if speaker.bio %} | ||
<p>{{ speaker.bio }}</p> | ||
{% endif %} | ||
{% set social = [] %} | ||
|
||
{% if speaker.github %} | ||
{% set social = social|merge(['<a href="https://github.com/' ~ (speaker.github) ~ '">GitHub</a>']) %} | ||
{% endif %} | ||
{% if speaker.twitter %} | ||
{% set social = social|merge(['<a href="https://twitter.com/' ~ (speaker.twitter) ~ '">Twitter</a>']) %} | ||
{% endif %} | ||
{% if speaker.homepage %} | ||
{% set social = social|merge(['<a href="' ~ (speaker.homepage) ~ '">Homepage</a>']) %} | ||
{% endif %} | ||
<p> | ||
{{ social|join(', ')|raw }} | ||
</p> | ||
</div> | ||
</div> | ||
<hr> | ||
<div class="row"> | ||
<div class="col-sm-12"> | ||
<h4>Speech</h4> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-sm-12"> | ||
{% for speech in speaker.speeches %} | ||
{% if currentEvent in speech.events %} | ||
<p><strong>{{ speech.title }}</strong> <small>({{ speech.language }})</small></p> | ||
<p>{{ speech.description }}</p> | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |