First commit
This commit is contained in:
commit
7cf3558ba7
12933 changed files with 1180047 additions and 0 deletions
27
app/Livewire/Web/Components/Sections/ContentSection.php
Normal file
27
app/Livewire/Web/Components/Sections/ContentSection.php
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<?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');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue