-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathArticle.php
More file actions
73 lines (61 loc) · 1.99 KB
/
Copy pathArticle.php
File metadata and controls
73 lines (61 loc) · 1.99 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
<?php
require_once "scripts/includes/fetch-article-page.php";
if(!$article)
die("404 Page not found !");
?>
<!DOCTYPE html>
<html lang="ar">
<head>
<?php require "scripts/includes/head.php"; ?>
<meta name="description" content="<?= $article["meta_description"] ?>">
<!--main css files-->
<link rel="stylesheet" href="css/articles.css"/>
<title>Article - <?= $article["title"]; ?></title>
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-N6JGM2PW"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<!--begging navbar-->
<?php include "scripts/includes/navbar-user.php"; ?>
<!--ending navbar-->
<!--starting article-->
<div class="article_container ">
<?php if($article["approved"]) { ?>
<div class="article_information">
<p>
<?= $article["name"]; ?>
<br>
<?= $article["cr_date"]; ?>
</p>
</div>
<h1 class="article_title text-center">
<?= $article["title"]; ?>
</h1>
<div class="article_img_container text-center">
<img loading="lazy" src="<?= $article["picture"]; ?>" class="article_img">
</div>
<div class="article_full_content article_content">
<?= processMarkdown($article["content"]); ?>
</div>
<?php } else {?>
<h1 class="article_title text-center">
Article not approved yet
</h1>
<?php } ?>
</div>
<!--ending article-->
<!--starting footer-->
<?php require_once "scripts/includes/footer.php"; ?>
<!--ending footer-->
<!--vendor js files-->
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.min.js"></script>
<script src="js/all.js"></script>
<!--main js files-->
</body>
</html>
<?php
mysqli_close($conn);
?>