mirror of
https://github.com/pelican-dev/panel.git
synced 2025-12-08 17:30:18 +01:00
Add custom render hooks to our footer (#1942)
This commit is contained in:
parent
d16e7dd876
commit
efa8eef57c
9
app/Enums/CustomRenderHooks.php
Normal file
9
app/Enums/CustomRenderHooks.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
enum CustomRenderHooks: string
|
||||
{
|
||||
case FooterStart = 'pelican::footer.start';
|
||||
case FooterEnd = 'pelican::footer.end';
|
||||
}
|
||||
@ -1,7 +1,10 @@
|
||||
<footer class="flex flex-col items-center justify-center text-center space-y-2 p-4 text-gray-600 dark:text-gray-400">
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\App\Enums\CustomRenderHooks::FooterStart->value) }}
|
||||
|
||||
<a class="font-semibold" href="https://pelican.dev/docs/#core-team" target="_blank">
|
||||
© {{ date('Y') }} Pelican
|
||||
</a>
|
||||
|
||||
@if(config('app.debug'))
|
||||
<div class="flex space-x-1 text-xs">
|
||||
<x-filament::icon
|
||||
@ -11,4 +14,6 @@
|
||||
<span>{{ round(microtime(true) - LARAVEL_START, 3) }}s</span>
|
||||
</div>
|
||||
@endif
|
||||
</footer>
|
||||
|
||||
{{ \Filament\Support\Facades\FilamentView::renderHook(\App\Enums\CustomRenderHooks::FooterEnd->value) }}
|
||||
</footer>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user