<header>
    {% if authorName is not empty %}
        <span class="bubble-quote">{{ function ('getSvgCode','svg-icon-quote') }}</span>
        <img src="{{ function ('GetThemeImage','esterel-logo-blog.png') }}">
    {% endif %}
    {% if preTitle is not empty and orientation == 1 %}
        <span class="headline-text"><sup>No</sup>{{ preTitle }}</span>
    {% endif %}
    {% set titleClass =  'text-title' %}

    {% if isFullWidth or isAltStyle %}
        {% set titleClass =  'text-medium-title' %}
    {% elseif advisorSource is not empty %}
        {% set title =  advisorSource %}
        {% set titleClass =  'text-small' %}
    {% endif %}
    {% if title is not empty  %}
        <{{ hx }} class="{{ titleClass }}">{{ title }}</{{ hx }}>
    {% endif %}
</header>
{% if text is not empty  %}
    {{ text }}
{% endif %}

{% if href is not empty  %}
    {% if isFile %}
    <div class="over-pdf">
        <span class="icon-pdf">{{function('getSvgCode', "svg-link-pdf")}}</span>
    {% endif %}
    <a class="{{ btnIcon }}" href="{{ href }}">{{ linkLabel }}{{ function('getSvgCode', btnIcon) }}</a>
    {% if isFile %}
    </div>
    {% endif %}
{% endif %}

{% if advisorSource is not empty %}
    <cite>{{ row['author_comment'] }}</cite>

    <ul class="list-star">
        {% for i in 1..5 %}
            {% if row['note'] >= i  %}
                <li>{{function('getSvgCode','svg-icon-star-2')}}</li>
            {#{% else %}
                <li>{{function('getSVGCode','svg-icon-star')}}</li>#}
            {% endif %}
        {% endfor %}
    </ul>
{% elseif authorName is not empty  %}
    <span class="small-border"></span>
    <cite><strong>{{ row['author_name'] }}</strong>{{ row['author_job'] }}</cite>
{% endif %}