You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
2.5 KiB
59 lines
2.5 KiB
{% extends 'layout.twig' %}
|
|
|
|
|
|
{% block content %}
|
|
|
|
<!-- Home -->
|
|
<section class="home home-blog">
|
|
<div class="container">
|
|
<h1 class="home-title">{{blog_title}}</h1>
|
|
<p class="home-description">{{blog_desc}}</p>
|
|
{% include '/blog/featured-slider.twig' %}
|
|
</div>
|
|
</section>
|
|
<!-- Home end -->
|
|
|
|
<!-- Anons -->
|
|
<section class="anons" id="news-list">
|
|
<div class="container">
|
|
{% include '/blog/themes.twig' %}
|
|
{% include '/blog/most-read.twig' %}
|
|
|
|
<div class="anons-article">
|
|
<h2 class="anons-article__title">
|
|
{% if not fn('is_category') %}
|
|
{{ function('pll_e', 'ВСЕ СТАТЬИ') }}
|
|
{% else %}
|
|
{% set term = fn('get_queried_object') %}
|
|
{{ term.name }}
|
|
{% endif %}
|
|
</h2>
|
|
|
|
<ul class="anons-article__card-wrap">
|
|
{% include '/blog/news-list.twig' %}
|
|
</ul>
|
|
</div>
|
|
{% if total_pages > 1 %}
|
|
<form id="ajax-load-blog" data-total="{{ total_pages }}">
|
|
<input type="hidden" name="page_num" id="page_num" value="1">
|
|
<input type="hidden" name="action" value="load_blog_posts">
|
|
{% if fn('is_category') %}
|
|
<input type="hidden" name="category" id="category_id" value="{{ category.slug }}">
|
|
{% endif %}
|
|
<button class="anons-article__more-link" >
|
|
{{ function('pll_e', 'ПОКАЗАТЬ ЕЩЁ') }}
|
|
</button>
|
|
</form>
|
|
{% endif %}
|
|
</section>
|
|
<!-- Anons end -->
|
|
|
|
<!-- Author -->
|
|
{% include '/blog/author-banner.twig' %}
|
|
<!-- Author end -->
|
|
|
|
<!-- Editorial -->
|
|
{% include '/blog/editorial.twig' %}
|
|
<!-- Editorial end -->
|
|
|
|
{% endblock %} |