@extends('layouts.user-no-nav') @section('page_title', __('Your feed')) {{-- Page specific CSS --}} @section('styles') {!! Minify::stylesheet(array_merge([ '/libs/photoswipe/dist/photoswipe.css', '/css/pages/checkout.css', '/libs/photoswipe/dist/default-skin/default-skin.css', '/css/pages/feed.css', '/css/posts/post.css', '/css/pages/search.css', '/libs/@selectize/selectize/dist/css/selectize.bootstrap4.css' ],$additionalAssets['css']))->withFullUrl() !!} {{-- This one breakes when minified by our tools --}} @if(getSetting('feed.post_box_max_height')) @include('elements.feed.fixed-height-feed-posts', ['height' => getSetting('feed.post_box_max_height')]) @endif @stop {{-- Page specific JS --}} @section('scripts') {!! Minify::javascript(array_merge([ '/js/PostsPaginator.js', '/js/CommentsPaginator.js', '/js/Post.js', '/js/SuggestionsSlider.js', '/js/pages/lists.js', '/js/pages/feed.js', '/js/pages/checkout.js', '/libs/swiper/swiper-bundle.min.js', '/js/plugins/media/photoswipe.js', '/libs/photoswipe/dist/photoswipe-ui-default.min.js', '/js/plugins/media/mediaswipe.js', '/js/plugins/media/mediaswipe-loader.js', '/libs/autolinker/dist/autolinker.min.js', '/js/TextareaHighlighter.js', '/libs/@selectize/selectize/dist/js/selectize.min.js' ],$additionalAssets['js']))->withFullUrl() !!} @stop @section('content')
@if(getSetting('stories.stories_enabled'))
{{-- Skeleton is visible by default; JS should remove/hide it once stories render --}} @include('elements.preloading.stories-swiper-skeleton', ['limit' => 8])
{{-- JS will populate slides --}}
@endif
@include('elements.message-alert',['classes'=>'pt-4 pb-4 px-2']) @include('elements.feed.posts-load-more')
@include('elements.feed.posts-wrapper',['posts'=>$posts])
@include('elements.feed.posts-loading-spinner')
@if(!getSetting('feed.search_widget_hide'))
@include('elements.search-box')
@endif @if(!getSetting('feed.hide_suggestions_slider')) @include('elements.feed.suggestions-box',[ 'id' => 'suggestions-box', 'profiles' => $suggestions, 'isMobile' => false, 'hideControls' => false, 'title' => __('Suggestions'), 'perPage' => (int)getSetting('feed.feed_suggestions_card_per_page'), ]) @endif @if(!getSetting('feed.expired_subs_widget_hide')) @if($expiredSubscriptions->count())
@include('elements.feed.suggestions-box',[ 'id' => 'suggestions-box-expired', 'profiles' => $expiredSubscriptions, 'isMobile' => false, 'hideControls' => true, 'title' => __('Expired subscriptions'), 'perPage' => (int)getSetting('feed.expired_subs_widget_card_per_page'), ])
@endif @endif @if(getSetting('feed.enable_hashtags') && !getSetting('feed.popular_hashtags_widget_disable')) @include('elements.feed.hashtags-box') @endif @if(getSetting('site.ads_sidebar_spot'))
{!! getSetting('site.ads_sidebar_spot') !!}
@endif @include('template.footer-feed')
@include('elements.checkout.checkout-box')
@include('elements.standard-dialog',[ 'dialogName' => 'comment-delete-dialog', 'title' => __('Delete comment'), 'content' => __('Are you sure you want to delete this comment?'), 'actionLabel' => __('Delete'), 'actionFunction' => 'Post.deleteComment();', ]) @include('elements.messenger.send-user-message') @stop