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\Console\Commands; | |
use App\Actions\Media\UpdateMediaInfoAction; | |
use Illuminate\Console\Command; | |
use Spatie\MediaLibrary\MediaCollections\Models\Media; | |
class UpdateMediaInfoCommand extends Command | |
{ |
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\Jobs; | |
use App\Actions\Media\UpdateMediaInfoAction; | |
use Illuminate\Bus\Queueable; | |
use Illuminate\Contracts\Queue\ShouldQueue; | |
use Illuminate\Foundation\Bus\Dispatchable; | |
use Illuminate\Queue\Attributes\DeleteWhenMissingModels; | |
use Illuminate\Queue\InteractsWithQueue; |
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\Actions\Media; | |
use Exception; | |
use FFMpeg\FFProbe; | |
use Illuminate\Support\Facades\Log; | |
use Spatie\Image\Image; | |
use Spatie\MediaLibrary\MediaCollections\Models\Media; |
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\Observers; | |
use App\Actions\Media\UpdateMediaInfoAction; | |
use App\Jobs\UpdateMediaInfoJob; | |
use Illuminate\Support\Facades\Log; | |
use Spatie\MediaLibrary\MediaCollections\Models\Media; | |
class MediaObserver |
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\Filament\Resources; | |
use App\Filament\Resources\LinkResource\Pages; | |
use App\Models\Link; | |
use AshAllenDesign\FaviconFetcher\Facades\Favicon; | |
use Filament\Forms; | |
use Filament\Forms\Form; | |
use Filament\Forms\Set; |
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 | |
/** | |
* Redirect job ads to their parent page if they are not published. | |
* | |
* @link https://developer.wordpress.org/reference/hooks/template_redirect/ | |
* @link https://developer.wordpress.org/reference/functions/is_404/ | |
* @link https://developer.wordpress.org/reference/functions/get_queried_object_id/ | |
* @link https://developer.wordpress.org/reference/functions/get_post_meta/ | |
* @link https://developer.wordpress.org/reference/functions/get_post_status/ | |
* @link https://developer.wordpress.org/reference/functions/wp_get_post_parent_id/ |
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'); |
NewerOlder