rpicms

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

commit e6e44412cefc0aba4f24372c03e30929aa86bcaf
parent 517e167967e8b3420efb0e5c2b4db9bbbe877a62
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sun, 23 Nov 2014 19:41:49 +0100

Update Accentbox for new posts system

Diffstat:
Mthemes/accentbox/index.php | 84++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------
1 file changed, 55 insertions(+), 29 deletions(-)

diff --git a/themes/accentbox/index.php b/themes/accentbox/index.php @@ -47,35 +47,61 @@ header("Cache-Control: no-cache, must-revalidate, no-store"); <div id="content_box"> <div class="post excerpt "> - <?php - require('../../core/backend/blog/posts.php'); - ?> - <header> - <div class="bubble"><a href="#">4</a></div> - <h2 class="title"> - <?php - echo "<a href='#' rel='bookmark'> $post_title </a>"; - ?> - </h2> - <div class="post-info"> - <?php - echo "<span class='theauthor'><a href='#' rel='author'>$post_author</a></span>"; - echo "<time>$post_date</time>"; - echo "<span class='thecategory'><a href='#' rel='category tag'>$post_categrory</a></span>"; - ?> - </div> - </header><!--.header--> - <div class="post-content image-caption-format-1"> - <a href="#" rel="nofollow" id="featured-thumbnail"> - - <div class="featured-thumbnail"><img src="images/2457315858_32ffd98aec_n-150x150.jpg" class="attachment-featured wp-post-image" height="150" width="150"><div> - </a> - <?php - echo "$post_text"; - ?> - </div> - </div><!--.post excerpt--> - + <?php + $x = 1; + if ($empty){ + $id = 1; + include('../../core/backend/blog/posts.php'); + while ($x < $post_id_clean+1){ + include('../../core/config/connect.db.inc.php'); + echo " + <header> + <div class='bubble'><a href='#'>4</a></div> + <h2 class='title'> + <a href='index.php?id=$id' rel='bookmark'> $post_title </a> + </h2> + <div class="post-info"> + <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> + </div> + </header><!--.header + <div class='post-content image-caption-format-1'> + <a href='#' rel='nofollow' id='featured-thumbnail'> + <div class='featured-thumbnail'><img src='images/2457315858_32ffd98aec_n-150x150.jpg' class='attachment-featured wp-post-image' height='150' width='150'><div> + </a> + $post_text_short</br> + </div> + </div><!--.post excerpt--> + "; + $x = $x+1; + $id = $id+1; + next_id(); + } + }else{ + include('../../core/backend/blog/posts.php'); + echo " + <header> + <div class='bubble'><a href='#'>4</a></div> + <h2 class='title'> + <a href='index.php?id=$id' rel='bookmark'> $post_title </a> + </h2> + <div class="post-info"> + <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> + </div> + </header><!--.header + <div class='post-content image-caption-format-1'> + <a href='#' rel='nofollow' id='featured-thumbnail'> + <div class='featured-thumbnail'><img src='images/2457315858_32ffd98aec_n-150x150.jpg' class='attachment-featured wp-post-image' height='150' width='150'><div> + </a> + $post_text_short</br> + </div> + </div><!--.post excerpt--> + "; + } + ?> <div class="pnavigation2"> <div class="nav-previous left"><a href="#"><span class="meta-nav">←</span> Older posts</a></div> <div class="nav-next right"></div>