-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
150 lines (131 loc) · 7.2 KB
/
Copy pathheader.php
File metadata and controls
150 lines (131 loc) · 7.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<?php
// Get the page title based on the current page URL
$pageTitle = '';
$baseURL = 'https://' . $_SERVER['HTTP_HOST'];
$currentPage = $_SERVER['REQUEST_URI'];
$currentURL = $baseURL . $currentPage;
// Explode the current page URL by '/' delimiter
$urlComponents = explode('/', $currentPage);
// Get the last component of the URL (page name)
$pageName = end($urlComponents);
$indexActive = "";
$contactActive = "";
$otherActive = "";
$description = "";
// Map page name to the corresponding title
switch ($pageName) {
case '':
$pageTitle = 'Home';
$indexActive = "active";
$contactActive = "";
$otherActive = "";
$description = "Connect-App: A dating app supporting mentally ill and shy individuals. Mindful matching, safety, and community-driven support for genuine connections and empathy in relationships.";
break;
case 'index':
$pageTitle = 'Home';
$indexActive = "active";
$contactActive = "";
$otherActive = "";
$description = "Connect-App: A dating app supporting mentally ill and shy individuals. Mindful matching, safety, and community-driven support for genuine connections and empathy in relationships.";
break;
case 'blogpost':
$pageTitle = 'Blog';
$blogActive = "active";
$contactActive = "";
$otherActive = "";
$description = "";
break;
case 'features':
$pageTitle = 'Features';
$indexActive = "";
$contactActive = "";
$otherActive = "";
$description = "Discover the exciting features of 'Connect', a dating app designed to support mentally ill and shy individuals. Explore mindful matching, safety measures, and a community-driven support system for genuine connections and empathy in relationships. Learn how 'Connect' revolutionizes online dating for a more inclusive and meaningful experience.";
break;
case 'contact':
$pageTitle = 'Contact Us';
$indexActive = "";
$contactActive = "active";
$otherActive = "";
$description = "Contact to get in touch with our team. We're address your concerns, and provide support. Reach out to us for any inquiries related to our dating app supporting mentally ill and shy individuals.";
break;
case 'privacy-policy':
$pageTitle = 'Privacy Policy';
$indexActive = "";
$contactActive = "";
$otherActive = "active";
$description = "Read the privacy policy of Connect-App to understand how we collect, use, and protect your personal information. Our privacy policy outlines our commitment to safeguarding your data and ensuring a secure and respectful experience on our dating app.";
break;
case 'term-and-condition':
$pageTitle = 'Terms & Conditions';
$indexActive = "";
$contactActive = "";
$otherActive = "active";
$description = "Review the terms and conditions of Connect-App to understand the guidelines and rules governing the use of our dating app. Our terms and conditions cover important aspects such as user responsibilities, content usage, privacy, and more. By using our app, you agree to comply with these terms for a safe and enjoyable experience.";
break;
default:
$pageTitle = 'Unknown Page';
$indexActive = "";
$contactActive = "";
$otherActive = "";
$description = "Oops! The page you're looking for does not exist. Explore the Connect-App to find genuine connections, empathetic relationships, and support for mentally ill and shy individuals. Visit our homepage or contact us to learn more about our dating app.";
break;
}
echo '<title>Connect- ' . $pageTitle . '</title>';
?>
<meta content="<?php echo $description; ?>" name="description">
<meta content="Dating app, mentally ill, shy individuals, mindful matching, safety, community-driven support, genuine connections, empathy, relationships" name="keywords">
<meta name="robots" content="index, follow">
<meta name="theme-color" content="#e84a5f">
<meta property="og:title" content="Connect-App::<?php echo $pageTitle; ?>">
<meta property="og:description" content="<?php echo $description; ?>">
<meta property="og:image" content="assets/img/favicon.ico">
<meta property="og:url" content="<?php echo $currentURL; ?>">
<meta property="og:type" content="website">
<!-- Favicons -->
<link href="assets/img/favicon.ico" rel="icon">
<link href="assets/img/favicon.ico" rel="apple-touch-icon">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,500,500i,600,600i,700,700i Poppins:300,300i,400,400i,500,500i,600,600i,700,700i" rel="stylesheet">
<!-- Vendor CSS Files -->
<link href="assets/vendor/aos/aos.css" rel="stylesheet">
<link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/vendor/bootstrap-icons/bootstrap-icons.css" rel="stylesheet">
<link href="assets/vendor/boxicons/css/boxicons.min.css" rel="stylesheet">
<link href="assets/vendor/swiper/swiper-bundle.min.css" rel="stylesheet">
<!-- Main CSS File -->
<link href="assets/css/style.css" rel="stylesheet">
<!-- =======================================================
* Template Name: Connect-App
* Updated: July 20 2023 with Bootstrap v5.3.0
* Developer: Offensive Technology
======================================================== -->
</head>
<body>
<!-- ======= Header ======= -->
<header id="header" class="fixed-top d-flex align-items-center">
<div class="container d-flex justify-content-between align-items-center">
<div class="logo py-3">
<a href="/"><img src="assets/img/logo.png" alt="conect logo" class = "img-fluid"></a>
</div>
<nav id="navbar" class="navbar">
<ul>
<li><a class="<?php echo $indexActive; ?>" href="/">Home</a></li>
<li><a class="<?php echo $blogActive; ?>" href="blogpost">Blog</a></li>
<li><a class="<?php echo $contactActive; ?>" href="contact">Contact Us</a></li>
<li class="dropdown"><a class="<?php echo $otherActive; ?>" href="#"><span>Other's</span> <i class="bi bi-chevron-down"></i></a>
<ul>
<li><a href="privacy-policy">Privacy Policy</a></li>
<li><a href="term-and-condition">T&C</a></li>
</ul>
</li>
</ul>
<i class="bi bi-list mobile-nav-toggle"></i>
</nav><!-- navbar -->
</div>
</header><!-- End Header -->