-
Notifications
You must be signed in to change notification settings - Fork 0
/
about.php
37 lines (36 loc) · 1.05 KB
/
about.php
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
<?php
require __DIR__ . '/vendor/autoload.php';
if (session_status() === PHP_SESSION_NONE) {
session_start();
}
use App\Database;
$db = new Database();
$pageName = "About";
require __DIR__ . '/components/header.php';
?>
<body>
<?php require __DIR__ . '/components/navbar/primary.php' ?>
<?php require __DIR__ . '/components/navbar/below.php' ?>
<main>
<!-- SCROLL UP BUTTON -->
<?php include __DIR__ . '/components/navigation/scroll-to-top.php' ?>
<section class="py-5 my-5">
<div class="container">
<?php
$aboutFile = fopen("./assets/data/about.qb", "r");
if ($aboutFile) {
while (($paragraph = fgets($aboutFile)) !== false) { ?>
<p class="paragraph"><?= $paragraph ?></p>
<?php }
fclose($aboutFile);
} else {
echo "Failed to open file.";
}
?>
</div>
</section>
</main>
<?php require __DIR__ . '/components/footer/footer-widgets.php' ?>
<?php require __DIR__ . '/components/footer/footer-bar.php' ?>
</body>
</html>