|
@@ -1,41 +1,41 @@
|
|
|
@section ('crumbs')
|
|
|
<ul class="f-crumbs">
|
|
|
- @foreach ($p->crumbs as $cur)
|
|
|
+ @foreach ($p->crumbs as $cur)
|
|
|
<li class="f-crumb"><!-- inline -->
|
|
|
- @if ($cur[0])
|
|
|
+ @if ($cur[0])
|
|
|
<a href="{!! $cur[0] !!}" @if ($cur[2]) class="active" @endif>{{ $cur[1] }}</a>
|
|
|
- @else
|
|
|
+ @else
|
|
|
<span @if ($cur[2]) class="active" @endif>{{ $cur[1] }}</span>
|
|
|
- @endif
|
|
|
+ @endif
|
|
|
</li><!-- endinline -->
|
|
|
- @endforeach
|
|
|
+ @endforeach
|
|
|
</ul>
|
|
|
@endsection
|
|
|
@section ('pagination')
|
|
|
- @if ($p->model->pagination)
|
|
|
+ @if ($p->model->pagination)
|
|
|
<nav class="f-pages">
|
|
|
- @foreach ($p->model->pagination as $cur)
|
|
|
- @if ($cur[2])
|
|
|
+ @foreach ($p->model->pagination as $cur)
|
|
|
+ @if ($cur[2])
|
|
|
<a class="f-page active" href="{!! $cur[0] !!}">{{ $cur[1] }}</a>
|
|
|
- @elseif ('info' === $cur[1])
|
|
|
+ @elseif ('info' === $cur[1])
|
|
|
<span class="f-pinfo">{!! $cur[0] !!}</span>
|
|
|
- @elseif ('space' === $cur[1])
|
|
|
+ @elseif ('space' === $cur[1])
|
|
|
<span class="f-page f-pspacer">{!! __('Spacer') !!}</span>
|
|
|
- @elseif ('prev' === $cur[1])
|
|
|
+ @elseif ('prev' === $cur[1])
|
|
|
<a rel="prev" class="f-page f-pprev" href="{!! $cur[0] !!}">{!! __('Previous') !!}</a>
|
|
|
- @elseif ('next' === $cur[1])
|
|
|
+ @elseif ('next' === $cur[1])
|
|
|
<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>
|
|
|
- @endif
|
|
|
- @endforeach
|
|
|
+ @endif
|
|
|
+ @endforeach
|
|
|
</nav>
|
|
|
- @endif
|
|
|
+ @endif
|
|
|
@endsection
|
|
|
@extends ('layouts/main')
|
|
|
@if ($forums = $p->model->subforums)
|
|
|
<div class="f-nav-links">
|
|
|
- @yield ('crumbs')
|
|
|
+ @yield ('crumbs')
|
|
|
</div>
|
|
|
<section class="f-subforums">
|
|
|
<ol class="f-ftlist">
|
|
@@ -47,7 +47,7 @@
|
|
|
<div class="f-hcell f-cstats">{!! __('Stats') !!}</div>
|
|
|
<div class="f-hcell f-clast">{!! __('Last post') !!}</div>
|
|
|
</li>
|
|
|
- @include ('layouts/subforums')
|
|
|
+ @include ('layouts/subforums')
|
|
|
</ol>
|
|
|
</li>
|
|
|
</ol>
|
|
@@ -57,12 +57,12 @@
|
|
|
@yield ('crumbs')
|
|
|
@if ($p->model->canCreateTopic || $p->model->pagination)
|
|
|
<div class="f-nlinks-b">
|
|
|
- @yield ('pagination')
|
|
|
- @if ($p->model->canCreateTopic)
|
|
|
+ @yield ('pagination')
|
|
|
+ @if ($p->model->canCreateTopic)
|
|
|
<div class="f-actions-links">
|
|
|
<a class="f-btn f-btn-create-topic" href="{!! $p->model->linkCreateTopic !!}">{!! __('Post topic') !!}</a>
|
|
|
</div>
|
|
|
- @endif
|
|
|
+ @endif
|
|
|
</div>
|
|
|
@endif
|
|
|
</div>
|
|
@@ -76,12 +76,12 @@
|
|
|
<div class="f-hcell f-cstats">{!! __('Stats') !!}</div>
|
|
|
<div class="f-hcell f-clast">{!! __('Last post') !!}</div>
|
|
|
</li>
|
|
|
- @foreach ($p->topics as $id => $topic)
|
|
|
- @if (empty($topic->id) && $iswev = ['e' => [__('Topic %s was not found in the database', $id)]])
|
|
|
+ @foreach ($p->topics as $id => $topic)
|
|
|
+ @if (empty($topic->id) && $iswev = ['e' => [__('Topic %s was not found in the database', $id)]])
|
|
|
<li id="topic-{!! $id !!}" class="f-row">
|
|
|
- @include ('layouts/iswev')
|
|
|
+ @include ('layouts/iswev')
|
|
|
</li>
|
|
|
- @elseif ($topic->moved_to)
|
|
|
+ @elseif ($topic->moved_to)
|
|
|
<li id="topic-{!! $topic->id !!}" class="f-row f-fredir">
|
|
|
<div class="f-cell f-cmain">
|
|
|
<div class="f-ficon"></div>
|
|
@@ -90,82 +90,82 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</li>
|
|
|
- @else
|
|
|
- <li id="topic-{!! $topic->id !!}" class="f-row @if ($topic->hasNew !== false) f-fnew @endif @if ($topic->hasUnread !== false) f-funread @endif @if ($topic->sticky) f-fsticky @endif @if ($topic->closed) f-fclosed @endif @if ($topic->poll_type) f-fpoll @endif @if ($topic->dot) f-fposted @endif">
|
|
|
+ @else
|
|
|
+ <li id="topic-{!! $topic->id !!}" class="f-row @if (false !== $topic->hasNew) f-fnew @endif @if (false !== $topic->hasUnread) f-funread @endif @if ($topic->sticky) f-fsticky @endif @if ($topic->closed) f-fclosed @endif @if ($topic->poll_type) f-fpoll @endif @if ($topic->dot) f-fposted @endif">
|
|
|
<div class="f-cell f-cmain">
|
|
|
<div class="f-ficon"></div>
|
|
|
<div class="f-finfo">
|
|
|
<h3>
|
|
|
- @if ($topic->dot)
|
|
|
+ @if ($topic->dot)
|
|
|
<span class="f-tdot">·</span>
|
|
|
- @endif
|
|
|
- @if ($topic->sticky)
|
|
|
+ @endif
|
|
|
+ @if ($topic->sticky)
|
|
|
<span class="f-stickytxt">{!! __('Sticky') !!}</span>
|
|
|
- @endif
|
|
|
- @if ($topic->closed)
|
|
|
+ @endif
|
|
|
+ @if ($topic->closed)
|
|
|
<span class="f-closedtxt">{!! __('Closed') !!}</span>
|
|
|
- @endif
|
|
|
- @if ($topic->poll_type)
|
|
|
+ @endif
|
|
|
+ @if ($topic->poll_type)
|
|
|
<span class="f-polltxt">{!! __('Poll') !!}</span>
|
|
|
- @endif
|
|
|
+ @endif
|
|
|
<a class="f-ftname" href="{!! $topic->link !!}">{{ cens($topic->subject) }}</a>
|
|
|
- @if ($topic->pagination)
|
|
|
+ @if ($topic->pagination)
|
|
|
<span class="f-tpages">
|
|
|
- @foreach ($topic->pagination as $cur)
|
|
|
- @if ($cur[1] === 'space')
|
|
|
+ @foreach ($topic->pagination as $cur)
|
|
|
+ @if ('space' === $cur[1])
|
|
|
<span class="f-page f-pspacer">{!! __('Spacer') !!}</span>
|
|
|
- @else
|
|
|
+ @else
|
|
|
<a class="f-page" href="{!! $cur[0] !!}">{{ $cur[1] }}</a>
|
|
|
- @endif
|
|
|
- @endforeach
|
|
|
+ @endif
|
|
|
+ @endforeach
|
|
|
</span>
|
|
|
- @endif
|
|
|
- @if ($topic->hasNew !== false)
|
|
|
+ @endif
|
|
|
+ @if (false !== $topic->hasNew)
|
|
|
<span class="f-newtxt"><a href="{!! $topic->linkNew !!}" title="{!! __('New posts info') !!}">{!! __('New posts') !!}</a></span>
|
|
|
- @endif
|
|
|
+ @endif
|
|
|
</h3>
|
|
|
- <p class="f-cmposter">{!! __('by') !!} {{ $topic->poster }}</p>
|
|
|
- @if ($p->searchMode)
|
|
|
+ <p class="f-cmposter">{!! __('by %s', $topic->poster) !!}</p>
|
|
|
+ @if ($p->searchMode)
|
|
|
<p class="f-cmforum"><a href="{!! $topic->parent->link !!}">{{ $topic->parent->forum_name }}</a></p>
|
|
|
- @endif
|
|
|
+ @endif
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="f-cell f-cstats">
|
|
|
<ul>
|
|
|
<li>{!! __('%s Reply', $topic->num_replies, num($topic->num_replies)) !!}</li>
|
|
|
- @if ($topic->showViews)
|
|
|
+ @if ($topic->showViews)
|
|
|
<li>{!! __('%s View', $topic->num_views, num($topic->num_views)) !!}</li>
|
|
|
- @endif
|
|
|
+ @endif
|
|
|
</ul>
|
|
|
</div>
|
|
|
<div class="f-cell f-clast">
|
|
|
<ul>
|
|
|
<li class="f-cltopic"><a href="{!! $topic->linkLast !!}" title=""{{ cens($topic->subject) }}" - {!! __('Last post') !!}">{{ dt($topic->last_post) }}</a></li>
|
|
|
- <li class="f-clposter">{!! __('by') !!} {{ $topic->last_poster }}</li>
|
|
|
+ <li class="f-clposter">{!! __('by %s', $topic->last_poster) !!}</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
</li>
|
|
|
- @endif
|
|
|
- @endforeach
|
|
|
+ @endif
|
|
|
+ @endforeach
|
|
|
</ol>
|
|
|
</div>
|
|
|
</section>
|
|
|
<div class="f-nav-links">
|
|
|
- @if ($p->model->canCreateTopic || $p->model->pagination || $p->model->canMarkRead)
|
|
|
+ @if ($p->model->canCreateTopic || $p->model->pagination || $p->model->canMarkRead)
|
|
|
<div class="f-nlinks-a">
|
|
|
- @if ($p->model->canCreateTopic || $p->model->canMarkRead)
|
|
|
+ @if ($p->model->canCreateTopic || $p->model->canMarkRead)
|
|
|
<div class="f-actions-links">
|
|
|
- @if ($p->model->canMarkRead)
|
|
|
+ @if ($p->model->canMarkRead)
|
|
|
<a class="f-btn f-btn-markread" title="{!! __('Mark forum read') !!}" href="{!! $p->model->linkMarkRead !!}">{!! __('All is read') !!}</a>
|
|
|
- @endif
|
|
|
- @if ($p->model->canCreateTopic)
|
|
|
+ @endif
|
|
|
+ @if ($p->model->canCreateTopic)
|
|
|
<a class="f-btn f-btn-create-topic" href="{!! $p->model->linkCreateTopic !!}">{!! __('Post topic') !!}</a>
|
|
|
</div>
|
|
|
- @endif
|
|
|
- @endif
|
|
|
- @yield ('pagination')
|
|
|
+ @endif
|
|
|
+ @endif
|
|
|
+ @yield ('pagination')
|
|
|
</div>
|
|
|
- @endif
|
|
|
- @yield ('crumbs')
|
|
|
+ @endif
|
|
|
+ @yield ('crumbs')
|
|
|
</div>
|
|
|
@endif
|