fix: 🐛 the filter post error in finance page
This commit is contained in:
parent
a04b7becc2
commit
d221fee863
2 changed files with 9 additions and 11 deletions
|
|
@ -1,8 +1,10 @@
|
|||
{{-- # FIXME : Il manque les scripts JS pour filtrer et voir plus --}}
|
||||
|
||||
@php
|
||||
$news = $newsModels->items();
|
||||
$maxPosts = $newsModels->perPage();
|
||||
// FIXME: a retirer une fois le composant corriger
|
||||
$currentRoute = \Illuminate\Support\Facades\Route::currentRouteName();
|
||||
$news = $currentRoute === 'front.finance' ? null : $newsModels->items();
|
||||
$maxPosts = $currentRoute === 'front.finance' ? 3 : $newsModels->perPage();
|
||||
@endphp
|
||||
|
||||
@if (isset($postContainer))
|
||||
|
|
@ -72,10 +74,7 @@
|
|||
data-prev-button-label="Load Previous">
|
||||
@if (isset($news))
|
||||
@foreach ($news as $new)
|
||||
<x-front.sections.news
|
||||
:borders="$postBorders ?? []"
|
||||
:news='$new'
|
||||
/>
|
||||
<x-front.sections.news :borders="$postBorders ?? []" :news='$new' />
|
||||
@endforeach
|
||||
@endif
|
||||
</div>
|
||||
|
|
@ -99,9 +98,8 @@
|
|||
data-container-type="div" data-loading-style="infinite fading-circles"
|
||||
data-theme-repeater="list-item-presentation" data-post-type="post"
|
||||
data-category="{{ $postContainer['slug'] }}" data-order="DESC" data-orderby="date"
|
||||
data-offset="0" data-posts-per-page="{{ $maxPosts }}"
|
||||
data-lang="fr" data-max-pages="1"
|
||||
data-button-label="{{ $postContainer['load_more'] }}"
|
||||
data-offset="0" data-posts-per-page="{{ $maxPosts }}" data-lang="fr"
|
||||
data-max-pages="1" data-button-label="{{ $postContainer['load_more'] }}"
|
||||
data-prev-button-label="Load Previous">
|
||||
@foreach ($postContainer['documents'] as $document)
|
||||
@if ($postContainer['accordeon'])
|
||||
|
|
|
|||
|
|
@ -65,9 +65,9 @@
|
|||
<x-front.pages.finance.bourse />
|
||||
<x-front.pages.finance.finance-3 />
|
||||
<x-front.pages.finance.finance-rights />
|
||||
{{-- <x-front.pages.finance.finance-4 /> --}}
|
||||
<x-front.pages.finance.finance-4 />
|
||||
<x-front.pages.finance.graphics />
|
||||
<x-front.pages.finance.dividend />
|
||||
{{-- <x-front.pages.finance.finance-6 /> --}}
|
||||
<x-front.pages.finance.finance-6 />
|
||||
<x-front.pages.finance.assemblees-generales />
|
||||
@endsection
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue