-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
78 additions
and
1 deletion.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
resources/views/segments/footer/LittleFooter/LittleFooter.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<section class='LittleFooter'> | ||
<div class="{{gfx()['container']}}"> | ||
<div class="row"> | ||
<div class="col-md-4"> | ||
{{getSetting('copyright')}} | ||
</div> | ||
<div class="col-md-4"> | ||
<ul class="social text-center"> | ||
@foreach(getSettingsGroup('social_')??[] as $k => $social) | ||
<li class="d-inline-block mx-2"> | ||
<a href="{{$social}}"> | ||
<i class="ri-{{$k}}-line"></i> | ||
</a> | ||
</li> | ||
@endforeach | ||
</ul> | ||
</div> | ||
<div class="col-md-4"> | ||
{!! getSetting($data->area_name.'_'.$data->part.'_text') !!} | ||
</div> | ||
</div> | ||
</div> | ||
</section> |
Empty file.
10 changes: 10 additions & 0 deletions
10
resources/views/segments/footer/LittleFooter/LittleFooter.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "LittleFooter", | ||
"version": "1.0", | ||
"author": "xStack", | ||
"email": "[email protected]", | ||
"license": "GPL-3.0-or-later", | ||
"url": "https:\/\/xstack.ir", | ||
"author_url": "https:\/\/4xmen.ir", | ||
"packages": [] | ||
} |
29 changes: 29 additions & 0 deletions
29
resources/views/segments/footer/LittleFooter/LittleFooter.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace Resources\Views\Segments; | ||
|
||
use App\Models\Part; | ||
use App\Models\Setting; | ||
|
||
class LittleFooter | ||
{ | ||
public static function onAdd(Part $part = null) | ||
{ | ||
$setting = new Setting(); | ||
$setting->section = 'theme'; | ||
$setting->key = $part->area_name . '_' . $part->part.'_text'; | ||
$setting->value = 'A usually green, flattened, lateral structure attached to a stem and functioning as a principal organ of photosynthesis and transpiration in most plants.'; | ||
$setting->type = 'EDITOR'; | ||
$setting->size = 12; | ||
$setting->title = $part->area_name . ' ' . $part->part .' text'; | ||
$setting->save(); | ||
} | ||
public static function onRemove(Part $part = null) | ||
{ | ||
Setting::where('key',$part->area_name . '_' . $part->part.'_text')->first()?->delete(); | ||
} | ||
public static function onMount(Part $part = null) | ||
{ | ||
return $part; | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
resources/views/segments/footer/LittleFooter/LittleFooter.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.LittleFooter { | ||
// scss | ||
padding: 1rem 0; | ||
|
||
.col-md-4{ | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.social{ | ||
i{ | ||
font-size: 30px; | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
"url": "https:\/\/xstack.ir", | ||
"author_url": "https:\/\/4xmen.ir", | ||
"packages": [] | ||
} | ||
} |