. * * Copyright (C) 2024 MD Arzan Hosen */ /** * Dynamic Custom Styles */ function application_guy_custom_styles() { $primary_color = get_theme_mod('primary_color', '#3b82f6'); $secondary_color = get_theme_mod('secondary_color', '#1e293b'); $gradient_start = get_theme_mod('gradient_start', '#3b82f6'); $gradient_end = get_theme_mod('gradient_end', '#8b5cf6'); $heading_color = get_theme_mod('heading_color', '#1e293b'); $text_color = get_theme_mod('text_color_global', '#475569'); $logo_width = get_theme_mod('logo_width', '150'); // Background Colors $hero_bg = get_theme_mod('hero_bg_color', '#f8fafc'); $services_bg = get_theme_mod('services_bg_color', '#f8fafc'); $process_bg = get_theme_mod('process_bg_color', '#ffffff'); $team_bg = get_theme_mod('team_bg_color', '#f8fafc'); $testimonials_bg = get_theme_mod('testimonials_bg_color', '#ffffff'); $contact_bg = get_theme_mod('contact_bg_color', '#f8fafc'); $cta_bg = get_theme_mod('cta_bg_color', '#3b82f6'); // fallback to blue if unset // Fonts $heading_font = get_theme_mod('heading_font', 'Inter'); $body_font = get_theme_mod('body_font', 'Inter'); // Build Font Import // We do a simple approach: Load both chosen fonts weights 400,600,700 // In a real optimized theme, we might enqueue in functions.php, but this is fine for dynamic preview $fonts_to_load = array_unique(array($heading_font, $body_font)); $font_query = ''; foreach ($fonts_to_load as $font) { $font_query .= '&family=' . urlencode($font) . ':wght@400;500;600;700'; } if ($font_query) { echo ''; } ?>