query("SELECT * FROM theme_settings WHERE id=1"); $theme = $stmt_theme->fetch(PDO::FETCH_ASSOC); } else { $theme = []; } } catch (Exception $e) { $theme = []; } // 3. DEFINE VARIABLES $site_title = !empty($theme['site_title']) ? $theme['site_title'] : 'SejiStore'; $primary = !empty($theme['primary_color']) ? $theme['primary_color'] : '#16a34a'; $contact_email = !empty($theme['contact_email']) ? $theme['contact_email'] : 'support@sejistore.in'; $logo_url = !empty($theme['logo']) ? $theme['logo'] : ''; $favicon_url = !empty($theme['favicon']) ? $theme['favicon'] : ''; $isLoggedIn = isset($_SESSION['user_id']); ?>