rpicms

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

commit 2654b5f3168a2076ae74eb2116b263bf2279887c
parent b9820b62ec8b4f00e091a4f3c5f8bfa8d4ec3bd3
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sun, 23 Nov 2014 17:41:24 +0100

clean code :D

Diffstat:
Mthemes/jumbotron/index.php | 91++++++++++++++++++++++++++++++++++++++++---------------------------------------
1 file changed, 46 insertions(+), 45 deletions(-)

diff --git a/themes/jumbotron/index.php b/themes/jumbotron/index.php @@ -79,51 +79,52 @@ <!-- Main jumbotron for a primary marketing message or call to action --> <div class="jumbotron"> <div class="container"> - <h1> - <?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 "<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</br> - </p>"; - $x = $x+1; - $id = $id+1; - next_id(); - } - }else{ - echo "<a href='index.php?id=$id' rel='bookmark'> $post_title </a>"; - } - ?> - <!--</h1> - <div> - <h4> - <?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></br>"; - ?> - </h4> - </div> - <div> - <p> - <?php - //echo "$post_text</br>"; - ?> - </p>--> + <?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 " + <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</br> + </p> + "; + $x = $x+1; + $id = $id+1; + next_id(); + } + }else{ + 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</br> + </p> + "; + } + ?> </div> <p><a class="btn btn-primary btn-lg" href="http://rpicms.readthedocs.org/de/develop/features/themes.html" role="button">Learn more &raquo;</a></p> </div>