Skip to content

Commit

Permalink
Merge pull request #213 from benlk/custom-posts
Browse files Browse the repository at this point in the history
Adds $post_status in individual posts
  • Loading branch information
jptksc committed Aug 16, 2013
2 parents b2b5b6c + d9301c7 commit 8bd16ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@
// Get the post category.
$post_category = str_replace(array("\n", '-'), '', $fcontents[4]);

// Get the post status.
$post_status = str_replace(array("\n", '- '), '', $fcontents[5]);

// Get the post category link.
$post_category_link = $blog_url.'category/'.urlencode(trim(strtolower($post_category)));

Expand Down
2 changes: 1 addition & 1 deletion templates/simple/post.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<article class="single">
<article class="single <?php echo($post_status); ?>">
<div class="row">
<div class="one-quarter meta">
<div class="thumbnail">
Expand Down

0 comments on commit 8bd16ba

Please sign in to comment.