feat: Add comprehensive documentation suite and reorganize project structure
- Created complete documentation in docs/ directory - Added PROJECT_OVERVIEW.md with feature highlights and getting started guide - Added ARCHITECTURE.md with system design and technical details - Added SECURITY.md with comprehensive security implementation guide - Added DEVELOPMENT.md with development workflows and best practices - Added DEPLOYMENT.md with production deployment instructions - Added API.md with complete REST API documentation - Added CONTRIBUTING.md with contribution guidelines - Added CHANGELOG.md with version history and migration notes - Reorganized all documentation files into docs/ directory for better organization - Updated README.md with proper documentation links and quick navigation - Enhanced project structure with professional documentation standards
This commit is contained in:
30
dynamic_theme.php
Normal file
30
dynamic_theme.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* Dynamic Theme CSS Generator
|
||||
* Serves dynamically generated CSS based on branding settings
|
||||
*/
|
||||
|
||||
define('_ISVALID', true);
|
||||
|
||||
// Set proper headers for CSS
|
||||
header('Content-Type: text/css; charset=utf-8');
|
||||
header('Cache-Control: public, max-age=3600'); // Cache for 1 hour
|
||||
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 3600) . ' GMT');
|
||||
|
||||
try {
|
||||
// Load core configuration
|
||||
include_once 'f_core/config.core.php';
|
||||
|
||||
// Initialize branding system
|
||||
$branding = VBranding::getInstance();
|
||||
|
||||
// Generate and output CSS
|
||||
echo $branding->generateCSS();
|
||||
|
||||
} catch (Exception $e) {
|
||||
// Fallback CSS in case of errors
|
||||
echo "/* Error generating dynamic CSS: " . $e->getMessage() . " */\n";
|
||||
echo ":root { --color-primary: #007bff; --color-bg-main: #ffffff; }\n";
|
||||
echo "body { font-family: Arial, sans-serif; color: #212529; background: #ffffff; }\n";
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user