47 lines
1.3 KiB
HTML
47 lines
1.3 KiB
HTML
[viewBag]
|
|
==
|
|
<?php
|
|
function onStart(){
|
|
|
|
$this['afisha'] = RainLab\Blog\Models\CategoryGroup::where('slug', 'poster')->with('category_items')->first();
|
|
|
|
}
|
|
?>
|
|
==
|
|
<div class="sub-news-right">
|
|
<div class="sub-news-right-top">
|
|
<h2>{{'new.home.page.right'|_ }}</h2>
|
|
<div class="sub-news-right-top-content">
|
|
|
|
{% for post in categoryPosts %}
|
|
|
|
<a href="{{'new/newPost'|page({id:post.id,slug:post.slug})}}" class="sub-news-left-content-item sub-news-right-top-item">
|
|
<div class="sub-news-left-content-item-content">
|
|
<div class="sub-news-left-content-item-date-content-head">
|
|
<h4>{{ post.published_at| date('d.m.Y')}}</h4>
|
|
<span>|</span>
|
|
<h4>{{post.published_at|date('H:i')}}</h4>
|
|
</div>
|
|
<p class="sub-news-left-content-item-date-content-info">
|
|
{{post.title}}
|
|
</p>
|
|
</div>
|
|
</a>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
</div>
|
|
<div class="sub-news-right-bottom">
|
|
<h2>{{afisha.name}}</h2>
|
|
<div class="sub-news-right-bottom-content">
|
|
{% for category in afisha.category_items %}
|
|
<a href="{{ 'new/afisha'|page({slug:category.slug}) }}" class="sub-news-right-bottom-item">{{ category.name }}</a>
|
|
{% else %}
|
|
|
|
<a href="#" class="sub-news-right-bottom-item">No Record</a>
|
|
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</div> |