48 lines
2.5 KiB
PHP
48 lines
2.5 KiB
PHP
<?php
|
|
$pageTitle = isset($pageTitle) ? $pageTitle : "Your Real Feedback";
|
|
$description = isset($description) ? $description : "Provide your feedback to help us improve.";
|
|
$keywords = isset($keywords) ? $keywords : "feedback, survey, customer feedback, product feedback, flatlogic, user survey, feedback app";
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title><?php echo htmlspecialchars($pageTitle); ?></title>
|
|
<meta name="description" content="<?php echo htmlspecialchars($description); ?>">
|
|
<meta name="keywords" content="<?php echo htmlspecialchars($keywords); ?>">
|
|
|
|
<!-- Open Graph / Facebook -->
|
|
<meta property="og:type" content="website">
|
|
<meta property="og:title" content="<?php echo htmlspecialchars($pageTitle); ?>">
|
|
<meta property="og:description" content="<?php echo htmlspecialchars($description); ?>">
|
|
<meta property="og:image" content="<?php echo isset($_SERVER['PROJECT_IMAGE_URL']) ? htmlspecialchars($_SERVER['PROJECT_IMAGE_URL']) : ''; ?>">
|
|
|
|
<!-- Twitter -->
|
|
<meta property="twitter:card" content="summary_large_image">
|
|
<meta property="twitter:title" content="<?php echo htmlspecialchars($pageTitle); ?>">
|
|
<meta property="twitter:description" content="<?php echo htmlspecialchars($description); ?>">
|
|
<meta property="twitter:image" content="<?php echo isset($_SERVER['PROJECT_IMAGE_URL']) ? htmlspecialchars($_SERVER['PROJECT_IMAGE_URL']) : ''; ?>">
|
|
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
|
|
</head>
|
|
<body>
|
|
|
|
<header class="header">
|
|
<div class="container d-flex justify-content-between align-items-center">
|
|
<a href="/" class="logo">Your Real Feedback</a>
|
|
<nav>
|
|
<?php if (isset($_SESSION['user_id'])): ?>
|
|
<?php if (in_array('Admin', $_SESSION['user_roles'])):
|
|
<a href="admin.php" class="btn btn-sm btn-outline-secondary">Admin</a>
|
|
<?php endif; ?>
|
|
<a href="logout.php" class="btn btn-sm btn-outline-secondary">Logout</a>
|
|
<?php else: ?>
|
|
<a href="login.php" class="btn btn-sm btn-outline-secondary">Login</a>
|
|
<a href="register.php" class="btn btn-sm btn-primary">Register</a>
|
|
<?php endif; ?>
|
|
</nav>
|
|
</div>
|
|
</header>
|