23-01-2026
This commit is contained in:
parent
07959c0ba2
commit
854ce02bf6
166 changed files with 32909 additions and 1262 deletions
|
|
@ -10,6 +10,15 @@ class ThemeHelper
|
|||
public static function getLogoPath(string $type = 'positive'): string
|
||||
{
|
||||
$theme = config('app.theme', 'b2in');
|
||||
return self::getLogoPathForBrand($theme, $type);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the logo path for a specific brand
|
||||
*/
|
||||
public static function getLogoPathForBrand(?string $brand = null, string $type = 'positive'): string
|
||||
{
|
||||
$brand = $brand ?? config('app.theme', 'b2in');
|
||||
|
||||
$logoMap = [
|
||||
'b2in' => [
|
||||
|
|
@ -30,7 +39,7 @@ class ThemeHelper
|
|||
]
|
||||
];
|
||||
|
||||
return $logoMap[$theme][$type] ?? $logoMap['b2in'][$type];
|
||||
return $logoMap[$brand][$type] ?? $logoMap['b2in'][$type];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -110,4 +119,45 @@ class ThemeHelper
|
|||
$config = self::getDomainConfig();
|
||||
return $config['url'] ?? config('app.url');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get brand colors for a specific brand
|
||||
*/
|
||||
public static function getBrandColors(?string $brand = null): array
|
||||
{
|
||||
$brand = $brand ?? config('app.theme', 'b2in');
|
||||
$config = config("domains.domains.{$brand}", []);
|
||||
|
||||
return [
|
||||
'primary' => $config['color_scheme']['primary'] ?? '#2b3f51',
|
||||
'secondary' => $config['color_scheme']['secondary'] ?? '#20a0da',
|
||||
'accent' => $config['color_scheme']['accent'] ?? null,
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Get brand name for a specific brand
|
||||
*/
|
||||
public static function getBrandName(?string $brand = null): string
|
||||
{
|
||||
$brand = $brand ?? config('app.theme', 'b2in');
|
||||
|
||||
$brandNames = [
|
||||
'b2in' => 'B2IN',
|
||||
'b2a' => 'B2A',
|
||||
'stileigentum' => 'StilEigentum',
|
||||
'style2own' => 'Style2Own',
|
||||
];
|
||||
|
||||
return $brandNames[$brand] ?? strtoupper($brand);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all brand configuration for a specific brand
|
||||
*/
|
||||
public static function getBrandConfig(?string $brand = null): array
|
||||
{
|
||||
$brand = $brand ?? config('app.theme', 'b2in');
|
||||
return config("domains.domains.{$brand}", []);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue