rpicms

A CMS for the Raspberry Pi
git clone git://archive.git.mtrnord.blog/RpicmsTeam/rpicms.git
Log | Files | Refs | README | LICENSE

commit da0e19a3325eba1a1dfba59efecd1f9d19e98160
parent f9ceec7f7fc5bf704ce4d3e061084c0bb8756bc4
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat, 13 Dec 2014 12:38:17 +0100

90% of feature "category" is ready ;)

Diffstat:
Mthemes/jumbotron/index.php | 28+++++++++++++++++++++++++++-
1 file changed, 27 insertions(+), 1 deletion(-)

diff --git a/themes/jumbotron/index.php b/themes/jumbotron/index.php @@ -168,7 +168,33 @@ } }else{ if ($category){ - echo "test"; + #$id = 1; + include('../../core/backend/blog/posts.php'); + while ($x < $post_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='#' rel='author'>$post_author</a></span> | + <time>$post_date</time> | + <span class='thecategory'><a href='#' rel='category tag'>$post_categrory</a></span></br> + </h4> + </div> + <div> + <p> + $post_text_short</br> + </p> + </div> + <p> + <a class='btn btn-primary btn-lg' href='index.php?id=$id' role='button'>$name_more &raquo;</a> + </p> + "; + $x = $x+1; + #$id = $id+1; + next_id_only(); }else{ include('../../core/backend/blog/posts.php'); echo "