-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-single.php
57 lines (54 loc) · 2.15 KB
/
content-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
// require_once "core/init.php";
while($row = mysqli_fetch_assoc($post)){
$id_a = $row['ID'];
$title_a = $row['post_title'];
$content_a = $row['post_content'];
$date_a = $row['post_date'];
$date = date_create($date_a);
$date = date_format($date, 'F j, Y');
// Ini untuk title page di browser
$web_title = $title_a;
}
require_once "views/header.php";
require_once "views/navbar.php";
require_once "views/head_title.php";
?>
<div class="container">
<div class="row">
<div class="col-sm-7 col-sm-offset-1 col-md-7 col-md-offset-1">
<ol class="breadcrumb basic">
<li><a rel="nofollow" href="<?= $base_url ?>">Home</a></li>
<li><a rel="nofollow" href="<?= $base_url ?>blog">Blog</a></li>
<li class="active"><?=$title_a;?></li>
</ol>
<div class="content">
<ul class="meta-post">
<li class="meta-item">
<span class="glyphicon glyphicon-calendar"></span> <p><?= $date ?></p>
</li>
<li class="meta-item">
<?php $grav_url = "https://www.gravatar.com/avatar/".md5('bor.yahya@gmail.com')."?s=16&d=identicon"; ?>
<img class="author-avatar" src="<?= $grav_url; ?>" />
<a rel="nofollow" href="#">x-lab</a>
</li>
<li class="meta-item">
<span class="glyphicon glyphicon-bookmark"></span> <a rel="nofollow" href="#">Mesin antrian</a>
</li>
</ul>
<div class="post detail-post" itemscope itemtype="http://schema.org/Article">
<?=$content_a;?>
</div>
</div>
<div class="artikel-terkait">
<h3>Belum ada artikel terkait</h3>
<hr>
</div>
<div class="form-komentar">
<?php require_once "comments.php"; ?>
</div>
</div>
<?php
require_once "views/sidebar.php";
require_once "views/footer.php";
?>