Skip to content

Commit 8bd16ba

Browse files
committed
Merge pull request #213 from benlk/custom-posts
Adds $post_status in individual posts
2 parents b2b5b6c + d9301c7 commit 8bd16ba

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

‎index.php‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,9 @@
330330
// Get the post category.
331331
$post_category = str_replace(array("\n", '-'), '', $fcontents[4]);
332332

333+
// Get the post status.
334+
$post_status = str_replace(array("\n", '- '), '', $fcontents[5]);
335+
333336
// Get the post category link.
334337
$post_category_link = $blog_url.'category/'.urlencode(trim(strtolower($post_category)));
335338

‎templates/simple/post.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<article class="single">
1+
<article class="single <?php echo($post_status); ?>">
22
<div class="row">
33
<div class="one-quarter meta">
44
<div class="thumbnail">

0 commit comments

Comments
 (0)