10-04-2026
This commit is contained in:
parent
4d6b4930b2
commit
4bb89aad8c
836 changed files with 52961 additions and 5950 deletions
|
|
@ -7,6 +7,7 @@ use Livewire\Component;
|
|||
class MagazinList extends Component
|
||||
{
|
||||
public $posts = [];
|
||||
|
||||
public $content = [];
|
||||
|
||||
public function mount()
|
||||
|
|
@ -17,7 +18,7 @@ class MagazinList extends Component
|
|||
|
||||
private function loadPosts()
|
||||
{
|
||||
$articles = config('content.articles', []);
|
||||
$articles = trans('b2in.articles');
|
||||
$this->posts = collect($articles)->map(function ($article) {
|
||||
return [
|
||||
'id' => $article['id'],
|
||||
|
|
@ -32,8 +33,7 @@ class MagazinList extends Component
|
|||
|
||||
private function loadThemeContent()
|
||||
{
|
||||
$theme = config('app.theme', 'b2in');
|
||||
$this->content = config("content.themes.{$theme}.magazin_list", []);
|
||||
$this->content = cms_theme_section('magazin_list');
|
||||
}
|
||||
|
||||
public function render()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue