#{$module} {
position: relative;
+ @include clearfix;
@include margin-bottom(2);
&__title {
}
+ &__image-wrapper {
+
+ float: left;
+ width: 20%;
+ display: block;
+
+ & + #{$module}__right {
+
+ width: 80%;
+ float: left;
+ @include padding-left(1);
+
+ }
+
+ @include mq($until: xs) {
+ display: none;
+
+ & + #{$module}__right {
+
+ width: 100%;
+ float: none;
+ @include padding-left(0);
+
+ }
+ }
+
+ }
+
+ &__image {
+
+ @include fluid-aspect(720 435);
+
+ &--playlist {
+
+ @include fluid-aspect(720 435);
+
+ }
+
+ &--video {
+
+ &:after {
+ font-family: FontAwesome;
+ display: block;
+ content: "\f04b";
+ background: white;
+ width: 50px;
+ height: 50px;
+ border-radius: 50px;
+
+ font-size: 25px;
+
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ margin-top: -25px;
+ margin-left: -25px;
+
+ line-height: 50px;
+ text-align: center;
+ text-indent: 3px;
+
+ }
+
+ }
+
+ &--audio {
+
+ &:after {
+ font-family: FontAwesome;
+ display: block;
+ content: "\f028";
+ text-indent: 0px;
+ background: white;
+ width: 50px;
+ height: 50px;
+ border-radius: 50px;
+
+ font-size: 25px;
+
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ margin-top: -25px;
+ margin-left: -25px;
+
+ line-height: 50px;
+ text-align: center;
+ text-indent: 3px;
+
+ }
+
+ }
+
+ }
+
}
{% block subtitle %}
<div class="search-box__subtitle">
{% include 'agenda/includes/event_date_line.html' %}
+ {% if event.prices.all.0|floatformat != '0' and event.prices.all|length > 0 and not is_archive %}
+ <a class="button button--small ml1" href="{% url 'event_booking' event.slug %}" class="event__meta__btn">
+ {% trans "Reserve" %}
+ </a>
+ {% endif %}
</div>
{% endblock %}
+{% block image %}
+ {% with event.images.all|get_type:'card' as images %}
+ {% if images %}
+ <a href="{{ event.get_absolute_url }}" class="search-box__image-wrapper">
+ <figure class="search-box__image">
+ <img class="lazyload" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-original="{{ MEDIA_URL }}{% thumbnail images.0.file 720 435 %}">
+ </figure>
+ </a>
+ {% else %}
+ {% with event.parent.images.all|get_type:'card' as images %}
+ {% if images %}
+ <a href="{{ event.get_absolute_url }}" class="search-box__image-wrapper">
+ <figure class="search-box__image">
+ <img class="lazyload" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-original="{{ MEDIA_URL }}{% thumbnail images.0.file 720 435 %}">
+ </figure>
+ </a>
+ {% endif %}
+ {% endwith %}
+ {% endif %}
+ {% endwith %}
+{% endblock %}
+
{% block tags %}
{% keywords_for event as tags %}
{% if event.departments.all.0 or tags %}
<div class="search-box">
- {% block tags %}
+ {% block image %}
{% endblock %}
- <a href="{% block url %}{% endblock %}">
- <h2 class="search-box__title dotted">
- {% block title %}
- {% endblock %}
- <i class="fa fa-{% block icon %}{% endblock %}"></i>
- </h2>
- </a>
-
- {% block subtitle %}
- {% endblock %}
+ <div class="search-box__right">
+ {% block tags %}
+ {% endblock %}
- <div class="search-box__content">
+ <a href="{% block url %}{% endblock %}">
+ <h2 class="search-box__title dotted">
+ {% block title %}
+ {% endblock %}
+ <i class="fa fa-{% block icon %}{% endblock %}"></i>
+ </h2>
+ </a>
- {% block content %}
+ {% block subtitle %}
{% endblock %}
+
+ <div class="search-box__content">
+
+ {% block content %}
+ {% endblock %}
+ </div>
</div>
</div>
{% endif %}
<br>
{% endwith %}
+
+{% block image %}
+ {% if playlist.medias.all.0.media.poster_url %}
+ <a href="{{ playlist.get_absolute_url }}" class="search-box__image-wrapper">
+ <figure class="search-box__image search-box__image--playlist search-box__image--{{playlist.type}}">
+ <img class="lazyload" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-original="{{ playlist.medias.all.0.media.poster_url }}">
+ </figure>
+ </a>
+ {% endif %}
+{% endblock %}