%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/businessmultisite/wp-content/themes/stripes_weekly/templates/components/
Upload File :
Create Path :
Current File : /var/www/businessmultisite/wp-content/themes/stripes_weekly/templates/components/article-big.twig

{% set main_category = post.ID|get_primary_category %}
{% set geo = post.ID|get_geo %}
{% set serie = post.ID|get_serie %}
<section class="article-item article-card article-item--big{% if serie %} article--serie{% endif %}{% if post.post_type == 'chronicle' %} article--chronicle{% endif %}">
    <div class="article-item--inner">
        <div class="article-labels">
            {% if main_category %}
            <a href="{{ fn('get_term_link', main_category.ID, 'category') }}" class="article-item--category">{{ main_category.name }}</a>
            {% endif %}
            
           
            {# {% if post.post_type == 'chronicle' %}<div class="article-label--chronicle article-label">KRÖNIKA</div>{% endif %} #}
            {% if serie %}<div class="article-label--serie article-label">Artikelserie</div>{% endif %}
            {% if geo %}
            &nbsp; <div class="article-geo">{{ geo }}</div>
            {% endif %}
        </div>
        <a href="{{ post.link }}" class="article-item--title">{{ post.ID|get_title }}</a>
        {% if post.thumbnail %}
        <a href="{{ post.link }}" class="article-item--thumbnail">
            <img src="{{ post.thumbnail|resize(800,477) }}" alt="{{ post.title }}">
            {% if post.meta('featured_image_caption') %}
            <span>{{ post.meta('featured_image_caption') }}</span>
            {% endif %}
        </a>
        {% endif %}
        {% if (location == 'sidebar' and serie) or location == 'main' %}
        <div class="article-labels">
            {% if location != 'sidebar' %}
            <p class="article-author">AV: <a href="{{ post.author.link }}">{{ post.author.first_name }} {{ post.author.last_name }}</a></p>
            {% endif %}
            {% if post.ID|get_company %}
            <div class="article-item--company">För: {{ post.ID|get_company }}</div>
            {% endif %}
            {% if post.meta('sponsored') %}
            <div class="article-item--sponsored article-label">SPONSRAT</div>
            {% endif %}
            {% if location != 'sidebar' and type != 'serie' %}
            <button type="button" data-post-id="{{ post.ID }}" class="article-save-btn">Spara<i class="fa-regular fa-bookmark"></i></button>
            {% endif %}
        </div>
        {% endif %}
        <p class="article-item--description">{{ post.preview.read_more('Läs mer') }}</p>
        {% if serie %}
        <div class="article-item--serie--list">
            <div class="swiper-wrapper">
                {% for post in serie %}
                    <div class="swiper-slide">
                        {% include 'components/article-child-serie.twig' %}	
                    </div>
                {% endfor %}
            </div>
        </div>
        {% endif %}
    </div>
</section>

Zerion Mini Shell 1.0