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
class AdminPanelProvider extends PanelProvider | |
{ | |
public function boot(): void | |
{ | |
FilamentView::registerRenderHook( | |
PanelsRenderHook::BODY_START, | |
fn (): string => Blade::render('<x-tenant-menu />'), | |
scopes: [Onboard::class] | |
); | |
} |
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
<?php | |
namespace TTF_WP_Mega_Menu; | |
function setup(): void { | |
// Stylesheet in the editor. | |
add_editor_style( 'style.css' ); | |
} | |
add_action( 'after_setup_theme', __NAMESPACE__ . '\setup' ); |
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
.navigation-overlay { | |
position: fixed; | |
top: 150px; | |
left: 0; | |
right: 0; | |
bottom: 0; | |
height: calc(100dvh - 150px); | |
max-width: 100% !important; | |
backdrop-filter: blur(10px); | |
-webkit-backdrop-filter: blur(10px); |
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
document.addEventListener('DOMContentLoaded', function () { | |
// Get all accordion items | |
const allItems = document.querySelectorAll('header .gb-accordion__item'); | |
// Function to close all other accordion items | |
function closeOtherAccordionItems() { | |
allItems.forEach(item => { | |
item.classList.remove('gb-accordion__item-open'); | |
let toggle = item.querySelector('.gb-accordion__toggle'); | |
toggle.setAttribute('aria-expanded', 'false'); |
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
<?php | |
use App\Filament\Resources\MilestoneResource; | |
use App\Filament\Resources\TaskResource; | |
use Filament\Navigation\NavigationBuilder; | |
use Filament\Navigation\NavigationGroup; | |
use Filament\Navigation\NavigationItem; | |
use Filament\Panel; | |
public function panel(Panel $panel): Panel |
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
<?php | |
namespace App\Models; | |
use AshAllenDesign\FaviconFetcher\Facades\Favicon; | |
use Illuminate\Database\Eloquent\Factories\HasFactory; | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Database\Eloquent\Relations\HasMany; | |
use Illuminate\Support\Facades\Storage; |
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
<?php | |
use AshAllenDesign\FaviconFetcher\Facades\Favicon; | |
// Returns my twitter avatar | |
Favicon::driver("unavatar-services") | |
->fetch("https://x.com/neverything"); | |
// Returns my github profile avatar | |
Favicon::driver("unavatar-services") |
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
<?php | |
namespace App\Providers; | |
use App\FaviconFetcher\Drivers\UnavatarServices; | |
use AshAllenDesign\FaviconFetcher\Facades\Favicon; | |
use Illuminate\Support\ServiceProvider; | |
class AppServiceProvider extends ServiceProvider | |
{ |