commit 8eeb4788d25434a24b9c641f1c5803786c7f6999
parent e938e428f8142e301eb073361ddc8fccc353a5ec
Author: MTRNord <mtrnord1@gmail.com>
Date: Sat, 22 Nov 2014 21:23:11 +0100
first try to implement posts in the new theme
Diffstat:
3 files changed, 35 insertions(+), 64 deletions(-)
diff --git a/themes/accentbox/contact.php b/themes/accentbox/contact.php
@@ -1,62 +0,0 @@
-<?php
- $page = "Contact";
- include('templates/header.php');
- include('templates/page_header.php');
-?>
-<div id="page">
- <div class="content">
- <article class="article">
- <div id="content_box">
-
- <div class="post excerpt ">
- <?php
- include('../../core/inc/db_connect.inc.php');
- include('../../core/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-->
-
- <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>
- </div>
-
- </div>
- </article>
-
-<?php
- include('templates/page_navigation.php');
-?>
-
- </div><!--#page-->
-</div><!--.container-->
-<?php
- include('templates/page_footer.php');
-?>
-
-</body>
-</html>
-
diff --git a/themes/accentbox/index.php b/themes/accentbox/index.php
@@ -1,4 +1,12 @@
<?php
+#######################
+# flush browser cache #
+#######################
+header("Cache-Control: no-cache, must-revalidate, no-store");
+
+################
+# lang support #
+################
function getBrowserLangs() {
$langs[0] = $langs[1] = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
$langs[0] = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
diff --git a/themes/jumbotron/index.php b/themes/jumbotron/index.php
@@ -61,8 +61,33 @@
<!-- Main jumbotron for a primary marketing message or call to action -->
<div class="jumbotron">
<div class="container">
- <h1>Hello, world!</h1>
- <p>This is a example template for the RPICMS based on Bootstrap. Bootstrap can be found under the Theme_engine directory in themes.</p>
+ <?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>
<p><a class="btn btn-primary btn-lg" href="http://rpicms.readthedocs.org/de/develop/features/themes.html" role="button">Learn more »</a></p>
</div>
</div>