|
@@ -12,37 +12,41 @@
|
|
</ul>
|
|
</ul>
|
|
@endsection
|
|
@endsection
|
|
@section ('linkpost')
|
|
@section ('linkpost')
|
|
- @if ($p->topic->canReply || $p->topic->closed)
|
|
|
|
|
|
+ @if ($p->model->canReply || $p->model->closed)
|
|
<div class="f-link-post">
|
|
<div class="f-link-post">
|
|
- @if ($p->topic->closed)
|
|
|
|
|
|
+ @if ($p->model->closed)
|
|
{!! __('Topic closed') !!}
|
|
{!! __('Topic closed') !!}
|
|
@else
|
|
@else
|
|
- <a class="f-btn" href="{!! $p->topic->linkReply !!}">{!! __('Post reply') !!}</a>
|
|
|
|
|
|
+ <a class="f-btn" href="{!! $p->model->linkReply !!}">{!! __('Post reply') !!}</a>
|
|
@endif
|
|
@endif
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@endif
|
|
@endsection
|
|
@endsection
|
|
@section ('pagination')
|
|
@section ('pagination')
|
|
|
|
+ @if ($p->model->pagination)
|
|
<nav class="f-pages">
|
|
<nav class="f-pages">
|
|
- @foreach ($p->topic->pagination as $cur)
|
|
|
|
- @if ($cur[2])
|
|
|
|
- <span class="f-page active">{{ $cur[1] }}</span>
|
|
|
|
- @elseif ($cur[1] === 'space')
|
|
|
|
|
|
+ @foreach ($p->model->pagination as $cur)
|
|
|
|
+ @if ($cur[2])
|
|
|
|
+ <a class="f-page active" href="{!! $cur[0] !!}">{{ $cur[1] }}</a>
|
|
|
|
+ @elseif ('info' === $cur[1])
|
|
|
|
+ <span class="f-pinfo">{!! $cur[0] !!}</span>
|
|
|
|
+ @elseif ('space' === $cur[1])
|
|
<span class="f-page f-pspacer">{!! __('Spacer') !!}</span>
|
|
<span class="f-page f-pspacer">{!! __('Spacer') !!}</span>
|
|
- @elseif ($cur[1] === 'prev')
|
|
|
|
|
|
+ @elseif ('prev' === $cur[1])
|
|
<a rel="prev" class="f-page f-pprev" href="{!! $cur[0] !!}">{!! __('Previous') !!}</a>
|
|
<a rel="prev" class="f-page f-pprev" href="{!! $cur[0] !!}">{!! __('Previous') !!}</a>
|
|
- @elseif ($cur[1] === 'next')
|
|
|
|
|
|
+ @elseif ('next' === $cur[1])
|
|
<a rel="next" class="f-page f-pnext" href="{!! $cur[0] !!}">{!! __('Next') !!}</a>
|
|
<a rel="next" class="f-page f-pnext" href="{!! $cur[0] !!}">{!! __('Next') !!}</a>
|
|
- @else
|
|
|
|
|
|
+ @else
|
|
<a class="f-page" href="{!! $cur[0] !!}">{{ $cur[1] }}</a>
|
|
<a class="f-page" href="{!! $cur[0] !!}">{{ $cur[1] }}</a>
|
|
- @endif
|
|
|
|
- @endforeach
|
|
|
|
|
|
+ @endif
|
|
|
|
+ @endforeach
|
|
</nav>
|
|
</nav>
|
|
|
|
+ @endif
|
|
@endsection
|
|
@endsection
|
|
@extends ('layouts/main')
|
|
@extends ('layouts/main')
|
|
<div class="f-nav-links">
|
|
<div class="f-nav-links">
|
|
@yield ('crumbs')
|
|
@yield ('crumbs')
|
|
-@if ($p->topic->canReply || $p->topic->closed || $p->topic->pagination)
|
|
|
|
|
|
+@if ($p->model->canReply || $p->model->closed || $p->model->pagination)
|
|
<div class="f-links-b clearfix">
|
|
<div class="f-links-b clearfix">
|
|
@yield ('pagination')
|
|
@yield ('pagination')
|
|
@yield ('linkpost')
|
|
@yield ('linkpost')
|
|
@@ -50,16 +54,24 @@
|
|
@endif
|
|
@endif
|
|
</div>
|
|
</div>
|
|
<section class="f-main f-topic">
|
|
<section class="f-main f-topic">
|
|
- <h2>{{ cens($p->topic->subject) }}</h2>
|
|
|
|
|
|
+@if ($p->searchMode)
|
|
|
|
+ <h2>{{ $p->model->name }}</h2>
|
|
|
|
+@else
|
|
|
|
+ <h2>{{ cens($p->model->subject) }}</h2>
|
|
|
|
+@endif
|
|
@foreach ($p->posts as $post)
|
|
@foreach ($p->posts as $post)
|
|
- <article id="p{!! $post->id !!}" class="clearfix f-post @if ($post->user->gender == 1) f-user-male @elseif ($post->user->gender == 2) f-user-female @endif @if ($post->user->online) f-user-online @endif">
|
|
|
|
|
|
+ <article id="p{!! $post->id !!}" class="clearfix f-post @if ($post->user->gender == 1) f-user-male @elseif ($post->user->gender == 2) f-user-female @endif @if ($post->user->online) f-user-online @endif @if (1 === $post->postNumber && ! $p->searchMode) f-post-first @endif">
|
|
<header class="f-post-header clearfix">
|
|
<header class="f-post-header clearfix">
|
|
- <h3>{{ cens($p->topic->subject) }} - #{!! $post->postNumber !!}</h3>
|
|
|
|
- <span class="f-post-posted"><time datetime="{{ utc($post->posted) }}">{{ dt($post->posted) }}</time></span>
|
|
|
|
|
|
+ @if ($p->searchMode)
|
|
|
|
+ <h3>@if ($post->id !== $post->parent->first_post_id) {!! __('Re') !!} @endif {{ cens($post->parent->subject) }}</h3>
|
|
|
|
+ @else
|
|
|
|
+ <h3>@if ($post->postNumber > 1) {!! __('Re') !!} @endif {{ cens($p->model->subject) }}</h3>
|
|
|
|
+ @endif
|
|
|
|
+ <span class="f-post-posted"><a href="{!! $post->link !!}" rel="bookmark"><time datetime="{{ utc($post->posted) }}">{{ dt($post->posted) }}</time></a></span>
|
|
@if ($post->edited)
|
|
@if ($post->edited)
|
|
<span class="f-post-edited" title="{!! __('Last edit', $post->edited_by, dt($post->edited)) !!}">{!! __('Edited') !!}</span>
|
|
<span class="f-post-edited" title="{!! __('Last edit', $post->edited_by, dt($post->edited)) !!}">{!! __('Edited') !!}</span>
|
|
@endif
|
|
@endif
|
|
- <span class="f-post-number"><a href="{!! $post->link !!}" rel="bookmark">№{!! $post->postNumber !!}</a></span>
|
|
|
|
|
|
+ <span class="f-post-number">#{!! $post->postNumber !!}</span>
|
|
</header>
|
|
</header>
|
|
<div class="f-post-body clearfix">
|
|
<div class="f-post-body clearfix">
|
|
<address class="f-post-left clearfix">
|
|
<address class="f-post-left clearfix">
|
|
@@ -69,17 +81,17 @@
|
|
@else
|
|
@else
|
|
<li class="f-username">{{ $post->user->username }}</li>
|
|
<li class="f-username">{{ $post->user->username }}</li>
|
|
@endif
|
|
@endif
|
|
- @if ($post->showUserAvatar && $post->user->avatar)
|
|
|
|
|
|
+ @if (! $p->searchMode && $post->showUserAvatar && $post->user->avatar)
|
|
<li class="f-avatar">
|
|
<li class="f-avatar">
|
|
<img alt="{{ $post->user->username }}" src="{!! $post->user->avatar !!}">
|
|
<img alt="{{ $post->user->username }}" src="{!! $post->user->avatar !!}">
|
|
</li>
|
|
</li>
|
|
@endif
|
|
@endif
|
|
<li class="f-usertitle"><span>{{ $post->user->title() }}</span></li>
|
|
<li class="f-usertitle"><span>{{ $post->user->title() }}</span></li>
|
|
- @if ($post->showPostCount && $post->user->num_posts)
|
|
|
|
|
|
+ @if (! $p->searchMode && $post->showPostCount && $post->user->num_posts)
|
|
<li class="f-postcount"><span>{!! __('%s post', $post->user->num_posts, num($post->user->num_posts)) !!}</span></li>
|
|
<li class="f-postcount"><span>{!! __('%s post', $post->user->num_posts, num($post->user->num_posts)) !!}</span></li>
|
|
@endif
|
|
@endif
|
|
</ul>
|
|
</ul>
|
|
- @if ($post->showUserInfo)
|
|
|
|
|
|
+ @if (! $p->searchMode && $post->showUserInfo)
|
|
<ul class="f-user-info-add">
|
|
<ul class="f-user-info-add">
|
|
<li><span>{!! __('Registered:') !!} {{ dt($post->user->registered, true) }}</span></li>
|
|
<li><span>{!! __('Registered:') !!} {{ dt($post->user->registered, true) }}</span></li>
|
|
@if ($post->user->location)
|
|
@if ($post->user->location)
|
|
@@ -87,12 +99,22 @@
|
|
@endif
|
|
@endif
|
|
<li><span></span></li>
|
|
<li><span></span></li>
|
|
</ul>
|
|
</ul>
|
|
|
|
+ @endif
|
|
|
|
+ @if ($p->searchMode)
|
|
|
|
+ <ul class="f-post-search-info">
|
|
|
|
+ <li class="f-psiforum"><span>{!! __('Forum') !!}: <a href="{!! $post->parent->parent->link !!}">{{ $post->parent->parent->forum_name }}</a></span></li>
|
|
|
|
+ <li class="f-psitopic"><span>{!! __('Topic') !!}: <a href="{!! $post->parent->link !!}">{{ cens($post->parent->subject) }}</a></span></li>
|
|
|
|
+ <li class="f-psireply"><span>{!! __('%s Reply', $post->parent->num_replies, num($post->parent->num_replies)) !!}</span></li>
|
|
|
|
+ @if ($post->parent->showViews)
|
|
|
|
+ <li class="f-psireply"><span>{!! __('%s View', $post->parent->num_views, num($post->parent->num_views)) !!}</span></li>
|
|
|
|
+ @endif
|
|
|
|
+ </ul>
|
|
@endif
|
|
@endif
|
|
</address>
|
|
</address>
|
|
<div class="f-post-right f-post-main">
|
|
<div class="f-post-right f-post-main">
|
|
{!! $post->html() !!}
|
|
{!! $post->html() !!}
|
|
</div>
|
|
</div>
|
|
- @if ($post->showSignature && $post->user->signature)
|
|
|
|
|
|
+ @if (! $p->searchMode && $post->showSignature && $post->user->signature)
|
|
<div class="f-post-right f-post-signature">
|
|
<div class="f-post-right f-post-signature">
|
|
<hr>
|
|
<hr>
|
|
{!! $post->user->htmlSign !!}
|
|
{!! $post->user->htmlSign !!}
|
|
@@ -103,30 +125,33 @@
|
|
<div class="f-post-left">
|
|
<div class="f-post-left">
|
|
<span></span>
|
|
<span></span>
|
|
</div>
|
|
</div>
|
|
- @if ($post->canReport || $post->canDelete || $post->canEdit || $post->canQuote)
|
|
|
|
|
|
+ @if ($p->searchMode)
|
|
|
|
+ @else
|
|
|
|
+ @if ($post->canReport || $post->canDelete || $post->canEdit || $post->canQuote)
|
|
<div class="f-post-right clearfix">
|
|
<div class="f-post-right clearfix">
|
|
<ul>
|
|
<ul>
|
|
- @if ($post->canReport)
|
|
|
|
|
|
+ @if ($post->canReport)
|
|
<li class="f-postreport"><a class="f-btn f-minor" href="{!! $post->linkReport !!}">{!! __('Report') !!}</a></li>
|
|
<li class="f-postreport"><a class="f-btn f-minor" href="{!! $post->linkReport !!}">{!! __('Report') !!}</a></li>
|
|
- @endif
|
|
|
|
- @if ($post->canDelete)
|
|
|
|
|
|
+ @endif
|
|
|
|
+ @if ($post->canDelete)
|
|
<li class="f-postdelete"><a class="f-btn" href="{!! $post->linkDelete !!}">{!! __('Delete') !!}</a></li>
|
|
<li class="f-postdelete"><a class="f-btn" href="{!! $post->linkDelete !!}">{!! __('Delete') !!}</a></li>
|
|
- @endif
|
|
|
|
- @if ($post->canEdit)
|
|
|
|
|
|
+ @endif
|
|
|
|
+ @if ($post->canEdit)
|
|
<li class="f-postedit"><a class="f-btn" href="{!! $post->linkEdit !!}">{!! __('Edit') !!}</a></li>
|
|
<li class="f-postedit"><a class="f-btn" href="{!! $post->linkEdit !!}">{!! __('Edit') !!}</a></li>
|
|
- @endif
|
|
|
|
- @if ($post->canQuote)
|
|
|
|
|
|
+ @endif
|
|
|
|
+ @if ($post->canQuote)
|
|
<li class="f-postquote"><a class="f-btn" href="{!! $post->linkQuote !!}">{!! __('Quote') !!}</a></li>
|
|
<li class="f-postquote"><a class="f-btn" href="{!! $post->linkQuote !!}">{!! __('Quote') !!}</a></li>
|
|
- @endif
|
|
|
|
|
|
+ @endif
|
|
</ul>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
+ @endif
|
|
@endif
|
|
@endif
|
|
</footer>
|
|
</footer>
|
|
</article>
|
|
</article>
|
|
@endforeach
|
|
@endforeach
|
|
</section>
|
|
</section>
|
|
<div class="f-nav-links">
|
|
<div class="f-nav-links">
|
|
-@if ($p->topic->canReply || $p->topic->closed || $p->topic->pagination)
|
|
|
|
|
|
+@if ($p->model->canReply || $p->model->closed || $p->model->pagination)
|
|
<div class="f-links-a clearfix">
|
|
<div class="f-links-a clearfix">
|
|
@yield ('linkpost')
|
|
@yield ('linkpost')
|
|
@yield ('pagination')
|
|
@yield ('pagination')
|