Add all files

This commit is contained in:
root
2025-11-30 11:57:22 +01:00
parent 2ee51cac4f
commit 044271db3d
1476 changed files with 142544 additions and 0 deletions

33
app/Classes/helpers.php Normal file
View File

@@ -0,0 +1,33 @@
<?php
if (!function_exists('theme')) {
/**
* Get the specified configuration value.
*
* If an array is passed as the key, we will assume you want to set an array of values.
*
* @param array|string $key
* @param mixed $default
* @return mixed|\Illuminate\Config\Repository
*/
function theme($key, $default = null)
{
$current_theme = config('settings.theme', 'default');
return config("settings.theme_$current_theme" . "_$key", $default) ?? $default;
}
}
if (!function_exists('hook')) {
/**
* Dispatch an event and return the items
*
* @param string $event
* @param array $items
* @return array
*/
function hook($event)
{
return \App\Helpers\EventHelper::renderEvent($event);
}
}