102 lines
2.9 KiB
HTML
102 lines
2.9 KiB
HTML
[viewBag]
|
|
|
|
[blogPosts postsMainLeft]
|
|
pageNumber = "{{ :page }}"
|
|
categoryFilter = "novosti-biznesa"
|
|
postsPerPage = 6
|
|
noPostsMessage = "No posts found"
|
|
sortOrder = "published_at desc"
|
|
categoryPage = 404
|
|
postPage = 404
|
|
|
|
[blogPosts postsMainRight]
|
|
pageNumber = "{{ :page }}"
|
|
categoryFilter = "watan"
|
|
postsPerPage = 4
|
|
noPostsMessage = "No posts found"
|
|
sortOrder = "published_at desc"
|
|
categoryPage = 404
|
|
postPage = 404
|
|
|
|
[adverts adverts2]
|
|
code = 2
|
|
type = "slider"
|
|
random = 0
|
|
|
|
[popularPosts]
|
|
category = "{{ :category }}"
|
|
postsLimit = 5
|
|
noPostsMessage = "No posts found"
|
|
postPage = 404
|
|
==
|
|
{% set postsMainLeft = postsMainLeft.posts %}
|
|
{% set postsMainRight = postsMainRight.posts %}
|
|
{% set populars = popularPosts.posts %}
|
|
|
|
|
|
|
|
<!-- MAIN ======== -->
|
|
<main class="main" style="margin-top: 40px;">
|
|
<div class="main-inner">
|
|
<section class="main-inner-content">
|
|
|
|
|
|
{% partial 'newHome/main-slider' %}
|
|
|
|
|
|
<section class="main-advert">
|
|
<div class="container main-news-container">
|
|
<div class="main-advert-inner">
|
|
|
|
<div class="swiper mainAdvertSwiper">
|
|
<div class="swiper-wrapper">
|
|
|
|
|
|
{% if adverts2.group and adverts2.group.adds %}
|
|
|
|
{% for reklama in adverts2.group.adds %}
|
|
<div class="swiper-slide">
|
|
<a {% if reklama.enable_stats and reklama.url %} data-request="onRedirect"
|
|
data-request-data='[{id:{{reklama.id}}},{url:"{{reklama.url}}"}]'
|
|
onclick='window.open("{{reklama.url}}", "_blank");' {% else %} href="#" {% endif
|
|
%}>
|
|
<picture>
|
|
<source media="(min-width:700px)" srcset="{{reklama.media|media_cdn}}">
|
|
<img src="{{reklama.web_media_mobile|default(reklama.media)|media_cdn}}"
|
|
alt="{{reklama.title}}">
|
|
</picture>
|
|
</a>
|
|
</div>
|
|
{% endfor %}
|
|
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
|
|
|
|
<section class="sub-news">
|
|
|
|
<div class="container">
|
|
<div class="sub-news-inner">
|
|
|
|
{% partial 'newHome/main-bussiness' categoryPosts = postsMainLeft %}
|
|
|
|
{% partial 'newHome/main-tender' categoryPosts = populars %}
|
|
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</section>
|
|
|
|
{% partial 'newHome/right-sidebar'%}
|
|
|
|
</div>
|
|
</main>
|
|
<!-- MAIN end ======== --> |