Skip to content

Commit

Permalink
added little footer
Browse files Browse the repository at this point in the history
  • Loading branch information
A1Gard committed Oct 17, 2024
1 parent c44e3cc commit ee0069d
Show file tree
Hide file tree
Showing 7 changed files with 78 additions and 1 deletion.
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 resources/views/segments/footer/LittleFooter/LittleFooter.json
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 resources/views/segments/footer/LittleFooter/LittleFooter.php
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 resources/views/segments/footer/LittleFooter/LittleFooter.scss
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.
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
"url": "https:\/\/xstack.ir",
"author_url": "https:\/\/4xmen.ir",
"packages": []
}
}

0 comments on commit ee0069d

Please sign in to comment.