mirror of https://github.com/4xmen/xshop.git
parent
c44e3cc03e
commit
ee0069dcd0
@ -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>
|
@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "LittleFooter",
|
||||
"version": "1.0",
|
||||
"author": "xStack",
|
||||
"email": "xshop@xstack.ir",
|
||||
"license": "GPL-3.0-or-later",
|
||||
"url": "https:\/\/xstack.ir",
|
||||
"author_url": "https:\/\/4xmen.ir",
|
||||
"packages": []
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
.LittleFooter {
|
||||
// scss
|
||||
padding: 1rem 0;
|
||||
|
||||
.col-md-4{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.social{
|
||||
i{
|
||||
font-size: 30px;
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 27 KiB |
Loading…
Reference in New Issue