38 lines
985 B
HTML
38 lines
985 B
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 %}
|
|
|
|
|
|
|
|
{% partial 'newHome/post-item-img' post=post %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
</div>
|
|
<div class="sub-news-right-bottom">
|
|
<h2><a href="{{'new/group'|page({categoryGroup: 'poster'})}}">{{afisha.name}}</a></h2>
|
|
<div class="sub-news-right-bottom-content">
|
|
{% for category in afisha.category_items %}
|
|
<a href="{{'new/group'|page({categoryGroup: 'poster', 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> |