-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
57 lines (47 loc) · 1.63 KB
/
single.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
$title = "Book Details" ;
include("./inc/header.php");
include("./inc/navbar.php");
if(isset($_GET['book_id'])){
$book_id = $_GET['book_id'] ;
$book = selectOne("posts" , ['id' => $book_id]) ;
}
?>
<!-- page wrapper/slider-->
<div class="page-wrapper">
<!-- content -->
<div class="content clearfix">
<!-- main content wrapper-->
<div class="main-content-wrapper">
<!-- main content-->
<div class="main-content single">
<h1 class="post-title"><?= $book['title'] ?></h1>
<img src="./admin/admin_assets/images/<?= $book['image'] ?>" alt=""
style="height: 400px; width: 400px ; margin:auto; padding :auto ; display: block;">
<div class="post-content">
<p>
<?= html_entity_decode($book['body']) ?>
</p>
</div>
</div>
<!-- // main content -->
</div>
<!-- // main content wrapper-->
<!-- sidebar-->
<div class="sidebar single">
<?php
#popular Books
include("./inc/popular.php") ;
#sidebar Topics
include("./inc/sidebar.php");
?>
</div>
<!-- // sidebar-->
</div>
<!--- // content -->
</div>
<!--- /// page wrapper-->
<?php
include("./inc/footer.php");
include("./inc/scripts.php");
?>