title = "Рубрика" url = "/posts/:categoryGroup/:slug?" layout = "new/master-inside" is_hidden = 0 robot_index = "index" robot_follow = "follow" [viewBag] localeTitle[en] = "Category" [blogPosts] pageNumber = "{{ :page }}" categoryFilter = "{{ :slug }}" categoryGroup = "{{ :categoryGroup }}" postsPerPage = 10 noPostsMessage = "No posts found" sortOrder = "published_at desc" categoryPage = "new/category" postPage = "new/newPost" [mediaView] [expertForm] == param('id'); // $currentPost = RainLab\Blog\Models\Post::where('id', $postId)->with(['category_groups'])->first(); $currentLocale = $this->activeLocale; $this['group'] = $this->param('categoryGroup'); $this['categorySlug'] = $this->param('slug'); $this['groupName'] = RainLab\Blog\Models\CategoryGroup::where('slug', $this['group'])->first(); $currentCatLink = '/'.$this['categorySlug']; $currentUrl = '/'.$currentLocale.'/new/posts/'.$this['group'].$currentCatLink; if(!$this['categorySlug'] && $this['group'] != 'media'){ //$this->page->meta_title = $this['groupName']->name; if ($this['groupName']) { $this->page->meta_title = $this['groupName']->name; } else { // Handle the case where the group is not found $this->page->meta_title = 'Unknown Group'; } }elseif(!$this['categorySlug'] && $this['group'] == 'media'){ $this->page->meta_title = 'Media'; } //dd($currentUrl); if($this->menuItems && $this['group']){ foreach ($this->menuItems as $menu){ //dump($currentUrl); if(!$this['categorySlug']){ if($menu->url.'/' === $currentUrl){ $menu->isActive = true; break; } }else{ foreach ($menu->items as $menuItem){ if($menuItem->url === $currentUrl){ // dump($menuItem); $menuItem->isActive = true; $menuItem->isChildActive = true; break; } } } } } //$this['backendUsers'] = Backend\Models\User::all(); if($this['categorySlug']){ $this['mediaPostsFilter'] = Tps\Tps\Models\Media::where('type', $this['categorySlug'])->orderBy('published_at', 'DESC') //->with(['media_view' ]) ->withCount(['media_view AS view' => function ($query) { $query->select(DB::raw("SUM(view) as media_view")); } ]) ->paginate(9); }else{ $this['mediaPostsFilter'] = Tps\Tps\Models\Media::orderBy('published_at', 'DESC')->paginate(9); } } ?> == {% set records = media.records %} {% set displayColumn = media.displayColumn %} {% set noRecordsMessage = media.noRecordsMessage %} {% set detailsPage = media.detailsPage %} {% set detailsKeyColumn = media.detailsKeyColumn %} {% set detailsUrlParameter = media.detailsUrlParameter %} {% put styles %} {% endput %}
{% if category.id == 813 %}

{{'Добро пожаловать в раздел "В помощь экспортерам"!'|_}}

{{'Здесь вы можете бесплатно задать вопрос эксперту консалтинговой компании “Export Hyzmat” по экспортной деятельности и получить на него ответ в течение 24 часов.'|_}}

{{'Для этого необходимо заполнить контактную форму, нажав на кнопку «Вопрос эксперту».'|_}}

{{'Вы также можете просмотреть "Часто задаваемые вопросы" ниже. Возможно, среди них уже есть ответ на ваш вопрос.'|_}}

faq icon {{'Часто задаваемые вопросы'|_}}
{% endif %} {% if group == 'media' %}
{% for post in mediaPostsFilter %} {% if post.type == 'photo' %} {% partial 'newHome/photo-item' post=post %} {% else %} {% partial 'newHome/video-item' post=post %} {% endif %} {% else %}
  • {{ 'no Records' }}
  • {% endfor %}
    {% partial 'new/pagination' items = mediaPostsFilter %} {% else %}
    {% for post in blogPosts.posts %} {% if group == 'poster' %} {% partial 'new/afisha-item' post = post %} {% else %} {% partial 'new/post_list_item' post = post %} {% endif %} {% else %}

    No posts found

    {% endfor %}
    {% partial 'new/pagination' items = blogPosts.posts %} {% endif %}
    {% put scripts %} {% endput %}