Skip to content

Commit ee0069d

Browse files
committed
added little footer
1 parent c44e3cc commit ee0069d

File tree

7 files changed

+78
-1
lines changed

7 files changed

+78
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<section class='LittleFooter'>
2+
<div class="{{gfx()['container']}}">
3+
<div class="row">
4+
<div class="col-md-4">
5+
{{getSetting('copyright')}}
6+
</div>
7+
<div class="col-md-4">
8+
<ul class="social text-center">
9+
@foreach(getSettingsGroup('social_')??[] as $k => $social)
10+
<li class="d-inline-block mx-2">
11+
<a href="{{$social}}">
12+
<i class="ri-{{$k}}-line"></i>
13+
</a>
14+
</li>
15+
@endforeach
16+
</ul>
17+
</div>
18+
<div class="col-md-4">
19+
{!! getSetting($data->area_name.'_'.$data->part.'_text') !!}
20+
</div>
21+
</div>
22+
</div>
23+
</section>

resources/views/segments/footer/LittleFooter/LittleFooter.js

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "LittleFooter",
3+
"version": "1.0",
4+
"author": "xStack",
5+
"email": "[email protected]",
6+
"license": "GPL-3.0-or-later",
7+
"url": "https:\/\/xstack.ir",
8+
"author_url": "https:\/\/4xmen.ir",
9+
"packages": []
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
namespace Resources\Views\Segments;
4+
5+
use App\Models\Part;
6+
use App\Models\Setting;
7+
8+
class LittleFooter
9+
{
10+
public static function onAdd(Part $part = null)
11+
{
12+
$setting = new Setting();
13+
$setting->section = 'theme';
14+
$setting->key = $part->area_name . '_' . $part->part.'_text';
15+
$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.';
16+
$setting->type = 'EDITOR';
17+
$setting->size = 12;
18+
$setting->title = $part->area_name . ' ' . $part->part .' text';
19+
$setting->save();
20+
}
21+
public static function onRemove(Part $part = null)
22+
{
23+
Setting::where('key',$part->area_name . '_' . $part->part.'_text')->first()?->delete();
24+
}
25+
public static function onMount(Part $part = null)
26+
{
27+
return $part;
28+
}
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.LittleFooter {
2+
// scss
3+
padding: 1rem 0;
4+
5+
.col-md-4{
6+
display: flex;
7+
align-items: center;
8+
}
9+
10+
.social{
11+
i{
12+
font-size: 30px;
13+
}
14+
}
15+
}
Loading

resources/views/segments/index/SpliterText/SpliterText.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
"url": "https:\/\/xstack.ir",
88
"author_url": "https:\/\/4xmen.ir",
99
"packages": []
10-
}
10+
}

0 commit comments

Comments
 (0)