- Created separate MoneyFlix project directory - Copied Node.js redirector from production server - Added CRM PHP code (Redirects module, Core classes, Config, Routes, Views) - Created comprehensive documentation (README_MONEYFLIX.md) - Added sync script to keep CRM code updated (sync-from-crm.sh) - Configured .gitignore for Node.js and PHP - Set up proper project structure for multi-client isolation This separates MoneyFlix from the main CRM to avoid confusion between different client systems and provides a dedicated environment for MoneyFlix-specific development and maintenance.
107 lines
2.7 KiB
PHP
107 lines
2.7 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Core;
|
|
|
|
use App\Core\View;
|
|
|
|
class AppConfig
|
|
{
|
|
// Branding dinâmico
|
|
private static function getBranding(): array
|
|
{
|
|
return \App\Core\Branding::get();
|
|
}
|
|
|
|
public static function getLogoLight(): string
|
|
{
|
|
$branding = self::getBranding();
|
|
return View::asset($branding['logo_light'] ?? '/assets/images/bitreport-logo-light.png');
|
|
}
|
|
|
|
public static function getLogoDark(): string
|
|
{
|
|
$branding = self::getBranding();
|
|
return View::asset($branding['logo_dark'] ?? '/assets/images/bitreport-logo-dark.png');
|
|
}
|
|
|
|
public static function getLogo(): string
|
|
{
|
|
$branding = self::getBranding();
|
|
return View::asset($branding['logo_url'] ?? '/assets/images/bitreport-logo.png');
|
|
}
|
|
|
|
public static function getLogoSm(): string
|
|
{
|
|
$branding = self::getBranding();
|
|
return View::asset($branding['logo_url'] ?? '/assets/images/bitreport-logo-sm.png');
|
|
}
|
|
|
|
public static function getBrandName(): string
|
|
{
|
|
$branding = self::getBranding();
|
|
return $branding['company_name'] ?? 'BitReport';
|
|
}
|
|
|
|
public static function getFavicon(): string
|
|
{
|
|
$branding = self::getBranding();
|
|
return View::asset($branding['favicon_url'] ?? '/assets/images/favicon.ico');
|
|
}
|
|
|
|
public static function getCompanyName(): string
|
|
{
|
|
$branding = self::getBranding();
|
|
return $branding['company_name'] ?? 'BitReport';
|
|
}
|
|
|
|
public static function getCompanyUrl(): string
|
|
{
|
|
$branding = self::getBranding();
|
|
return $branding['company_url'] ?? 'https://bitreport.pt';
|
|
}
|
|
|
|
public static function getSupportEmail(): string
|
|
{
|
|
$branding = self::getBranding();
|
|
return $branding['support_email'] ?? '[email protected]';
|
|
}
|
|
|
|
public static function getDefaultLanguage(): string
|
|
{
|
|
return 'pt';
|
|
}
|
|
|
|
public static function getSupportedLanguages(): array
|
|
{
|
|
return ['pt', 'en', 'es', 'fr', 'it', 'de'];
|
|
}
|
|
|
|
public static function getThemeDefault(): string
|
|
{
|
|
return 'light';
|
|
}
|
|
|
|
public static function getCopyright(): string
|
|
{
|
|
$branding = self::getBranding();
|
|
$companyName = $branding['company_name'] ?? 'BitReport';
|
|
return '© ' . date('Y') . ' ' . $companyName . '. All rights reserved.';
|
|
}
|
|
|
|
public static function getUserAvatar(): string
|
|
{
|
|
return View::asset('/assets/images/users/avatar-1.jpg');
|
|
}
|
|
|
|
public static function getUserName(): string
|
|
{
|
|
return 'Admin';
|
|
}
|
|
|
|
public static function getUserTitle(): string
|
|
{
|
|
return 'Administrator';
|
|
}
|
|
}
|