commit dc85b0ed4f9db037c14264ca24234cc38786deaf parent b8e812353c62c1c16dea794f2f3c648b3651d8eb Author: MTRNord <mtrnord1@gmail.com> Date: Sat, 13 Dec 2014 14:12:59 +0100 IT WORKS :D Diffstat:
| M | themes/jumbotron/index.php | | | 48 | +++++++++++++++++++++++++++--------------------- |
1 file changed, 27 insertions(+), 21 deletions(-)
diff --git a/themes/jumbotron/index.php b/themes/jumbotron/index.php @@ -182,29 +182,35 @@ include('../../core/backend/blog/posts.php'); while ($x < $category_id_clean+1){ include('../../core/config/connect.db.inc.php'); - echo " - <h1> - <a href='index.php?id=$id' rel='bookmark'> $post_title </a> - </h1> - <div> - <h4> - <span class='theauthor'><a href='index.php?author=$post_author' rel='author'>$post_author</a></span> | - <time>$post_date</time> | - <span class='thecategory'><a href='index.php?category=$post_category' rel='category tag'>$post_category</a></span></br> - </h4> - </div> - <div> + if($post_category != $category){ + $x = $x+1; + $id = $id+1; + next_id_category(); + }else{ + echo " + <h1> + <a href='index.php?id=$id' rel='bookmark'> $post_title </a> + </h1> + <div> + <h4> + <span class='theauthor'><a href='index.php?author=$post_author' rel='author'>$post_author</a></span> | + <time>$post_date</time> | + <span class='thecategory'><a href='index.php?category=$post_category' rel='category tag'>$post_category</a></span></br> + </h4> + </div> + <div> + <p> + $post_text_short</br> + </p> + </div> <p> - $post_text_short</br> + <a class='btn btn-primary btn-lg' href='index.php?id=$id' role='button'>$name_more »</a> </p> - </div> - <p> - <a class='btn btn-primary btn-lg' href='index.php?id=$id' role='button'>$name_more »</a> - </p> - "; - $x = $x+1; - $id = $id+1; - next_id_category(); + "; + $x = $x+1; + $id = $id+1; + next_id_category(); + } } }else{ if ($author){