27 lines
723 B
PHP
27 lines
723 B
PHP
<?php
|
|
|
|
namespace App\Livewire\Web\Components\Sections;
|
|
|
|
use Livewire\Component;
|
|
|
|
class ContentSection extends Component
|
|
{
|
|
public $content = [];
|
|
public $layout = 'left'; // Standard-Layout
|
|
public $bg = 'bg-background';
|
|
public $section = 'content_section_left';
|
|
|
|
public function mount($layout = 'left', $bg = 'bg-background', $section = 'content_section')
|
|
{
|
|
$this->layout = $layout;
|
|
$this->bg = $bg;
|
|
$this->section = $section;
|
|
$theme = config('app.theme', 'b2in');
|
|
$this->content = config("content.themes.{$theme}.{$this->section}", []);
|
|
}
|
|
|
|
public function render()
|
|
{
|
|
return view('livewire.web.components.sections.content-section');
|
|
}
|
|
}
|