started second cartel of audio player

This commit is contained in:
Bachir Soussi Chiadmi
2018-03-07 21:21:45 +01:00
parent 608e9f6ae2
commit 0ca9c9cc83
30 changed files with 607 additions and 81 deletions
@@ -82,19 +82,32 @@
%}
{{ attach_library('classy/node') }}
<article{{ attributes.addClass(classes) }}>
<div class="entrees">
{# THIS IS REALLY DIRTY !! #}
{% for key, child in content.field_entrees if key|first != '#' %}
{% set tid = child['#cache']['tags'][0]|replace({'taxonomy_term:':''}) %}
<span class="entree" tid="{{ tid }}" title="{{ child }}"></span>
{% endfor %}
</div>
<h2{{ title_attributes.addClass('node-title') }}>
{{ label }}
</h2>
<div{{ content_attributes.addClass('node__content') }}>
{{ content|without('field_entrees') }}
</div>
<section class="first-cartel">
<div class="entrees">
{# THIS IS REALLY DIRTY !! #}
{% for key, child in content.field_entrees if key|first != '#' %}
{% set tid = child['#cache']['tags'][0]|replace({'taxonomy_term:':''}) %}
<span class="entree" tid="{{ tid }}" title="{{ child }}"></span>
{% endfor %}
</div>
<h2{{ title_attributes.addClass('node-title') }}>
{{ label }}
</h2>
<div class="description">
{{ content.field_description }}
</div>
</section>
<section class="second-cartel">
{% if col_left %}
<div class="col-left">
{{ link_transcript }}
{{ link_article }}
</div>
{% endif %}
{% if col_right %}
<div class="col-right">
right colume
</div>
{% endif %}
</section>
</article>