<section class="product-section product-authors" id="{{ moduleKey }}">
{% if module.title is defined %}
<div class="product-section__title-mobile-wrapper d-block d-md-none">
<div class="container">
<span class="product-section__title d-block d-md-none">{{ module.title }}</span>
</div>
</div>
{% endif %}
<div class="container">
{% if module.title is defined %}
<h2 class="product-section__title d-none d-md-block">
{{ module.title }}
</h2>
{% endif %}
<div id="authors-nav" class="product-authors__slider">
{% if module.list is defined %}
{% for author in module.list %}
<div class="author__item">
<a href="#author-content-{{ loop.index }}" id="author-nav-{{ loop.index }}" class="author">
<div class="author__thumbnail"
{% if author.photo is defined and author.photo is not empty %}
style="background: url('/uploads/productCmsFiles/{{ author.photo }}');"
{% else %}
style="background: url('/frontend-eforum/src/static/images/author_default.png')"
{% endif %}
>
{# crafton solution - changed because image in this case can be only a square #}
{#<img src="/uploads/productCmsFiles/{{ author.photo }}"#}
{#alt="{{ author.title is defined ? author.title : '' }} {{ author.name is defined ? author.name : '' }}"#}
{#>#}
</div>
<div class="author__content">
<h4 class="author__title">
{% if author.title is defined and author.title is not empty %}
{{ author.title }}
{% else %}
{% endif %}
</h4>
{% if author.name is defined %}
<h3 class="author__name">{{ author.name }}</h3>
{% endif %}
<span class="author__info">więcej</span>
</div>
</a>
</div>
{% endfor %}
{% endif %}
</div>
{% if module.list is defined %}
<div id="authors-tab" class="products-authors__info">
{% for author in module.list %}
<div class="product-authors__pane"
id="author-content-{{ loop.index }}"
role="tabpanel"
aria-labelledby="author-nav-{{ loop.index }}"
>
<div class="product-authors__content">
{% if author.details is defined %}
<p>
{{ author.details|raw }}
</p>
{% endif %}
<a href="#" class="tab-toggle">zwiń</a>
</div>
</div>
{% endfor %}
</div>
{% endif %}
</div>
</section>