==
<?php
function onStart()
{
    $this['news'] = \Indikator\News\Models\Posts::where("locale", App::getLocale())
        ->where("status", 1)->where("category_id", $this->theme->year_category)
        ->orderBy('published_at', 'desc')
        ->get()->first();
    $this["cat"] = \Indikator\News\Models\Categories::where("id", $this->theme->year_category)->first();

    $this['news_second'] = \Indikator\News\Models\Posts::where("locale", App::getLocale())
        ->where("status", 1)
        ->where("category_id", $this->theme->year_category_second)
        ->orderBy('published_at', 'desc')
        ->get()->first();

    $this["cat_second"] = \Indikator\News\Models\Categories::where("id", $this->theme->year_category_second)->first();
}
?>
==
<!-- Universary  ====================================================== -->
 <div class="universary">
    <div class="auto_container">
        <div class="universary__inner">
            <div class="title">

            </div>
            <div class="univer__wrap">
                <div class="universary__emblem">
                    <img src="images/emblem.png" alt="">
                </div>

                <div class="univer__content">
                        <div class="univer__item">
                            <a href="{{ 'category'|page({ slug: cat.slug })}}" class="univer__photo">
                                <img src="{{attribute(this.theme, 'year_category_image').path}}" alt="">
                            </a>
                            <div class="univer__info new_univer_info">
                                <a href="{{ ''| page}}/post/{{news.id}}/{{news.slug}}" class="univer__text">
                                    {{  news.title }}
                                </a>
                            </div>
                        </div>

                        <div class="univer__item">
                            <a href="{{ 'category'|page({ slug: cat_second.slug })}}" class="univer__photo">
                                <img src="{{attribute(this.theme, 'year_category_second_image').path}}" alt="">
                            </a>
                            <div class="univer__info new_univer_info">
                                <a href="{{ ''| page}}/post/{{news_second.id}}/{{news_second.slug}}" class="univer__text">
                                    {{  news_second.title }}
                                </a>
                            </div>
                        </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- Universary end =================================================== -->
