Browse Source

Add new theme

Add new theme and set the default to when first run.
pull/31/merge
Danang Probo Sayekti 11 years ago
parent
commit
6e5926f9a4
13 changed files with 1103 additions and 3 deletions
  1. +1
    -1
      config/config.ini.example
  2. +1
    -1
      themes/clean/css/style.css
  3. +4
    -0
      themes/default/css/style.css
  4. +1
    -1
      themes/default/css/toolbar.css
  5. +22
    -0
      themes/logs/404-search.html.php
  6. +19
    -0
      themes/logs/404.html.php
  7. +858
    -0
      themes/logs/css/style.css
  8. +64
    -0
      themes/logs/layout.html.php
  9. +39
    -0
      themes/logs/main.html.php
  10. +1
    -0
      themes/logs/no-posts.html.php
  11. +45
    -0
      themes/logs/post.html.php
  12. +38
    -0
      themes/logs/profile.html.php
  13. +10
    -0
      themes/logs/static.html.php

+ 1
- 1
config/config.ini.example View File

@ -62,7 +62,7 @@ img.thumbnail = "true"
default.thumbnail = "" default.thumbnail = ""
; Set the theme here ; Set the theme here
views.root = "themes/default"
views.root = "themes/logs"
; Framework config. No need to edit. ; Framework config. No need to edit.
views.layout = "layout" views.layout = "layout"

+ 1
- 1
themes/clean/css/style.css View File

@ -437,7 +437,7 @@ aside .archive ul li ul, aside .tagcloud ul li {
margin-left:30px; margin-left:30px;
} }
aside .menu ul li a:hover{
aside .menu ul li a:hover, aside .menu ul li.active a{
background-color:#389dc1; background-color:#389dc1;
color:#fff; color:#fff;
} }


+ 4
- 0
themes/default/css/style.css View File

@ -379,6 +379,10 @@ table.post-list td a {
padding-top:3px; padding-top:3px;
} }
#menu ul li.active a {
text-decoration:underline;
}
#menu ul li:last-child { #menu ul li:last-child {
margin:0; margin:0;
} }


+ 1
- 1
themes/default/css/toolbar.css View File

@ -1 +1 @@
body{ padding-top:30px;}#toolbar {background: #666666;box-shadow: 0 5px 15px #000000;color: #CCCCCC;font-family: Georgia, sans-serif;left: 0;margin: 0 -20px;padding: 0 25px;position: fixed;right: 0;top: 0;z-index: 600;border: 0 none;font-size: 15px;text-align: left;vertical-align: baseline;min-height:30px;}#toolbar ul {margin:0;padding-top:5px;padding-bottom:5px;padding-left:30px;float:left;}#toolbar ul li, #toolbar ul li a {float: left;list-style: none outside none;margin:0;}#toolbar a {color: #FFFFFF;font-size: 0.846em;text-decoration: none;border-radius: 10px;padding: 0 10px;} @media all and (max-width: 550px) {body{ padding-top:60px;}}
body{ padding-top:30px;}#toolbar {background: #666666;box-shadow: 0 5px 15px #000000;color: #CCCCCC;font-family: Georgia, sans-serif;left: 0;margin: 0 -20px;padding: 0 25px;position: fixed;right: 0;top: 0;z-index: 600;border: 0 none;font-size: 15px;text-align: left;vertical-align: baseline;min-height:30px;}#toolbar ul {margin:0;padding-top:5px;padding-bottom:5px;padding-left:30px;float:left;}#toolbar ul li, #toolbar ul li a {float: left;list-style: none outside none;margin:0;}#toolbar a {color: #FFFFFF;font-size: 0.846em;text-decoration: none;border-radius: 10px;padding: 0 10px;line-height:1.6;} @media all and (max-width: 550px) {body{ padding-top:60px;}}

+ 22
- 0
themes/logs/404-search.html.php View File

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<link href='<?php echo site_url() ?>favicon.ico' rel='icon' type='image/x-icon'/>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" user-scalable="no" />
<title>Search results not found! - <?php echo blog_title() ?></title>
<link href="<?php echo site_url() ?>themes/logs/css/style.css" rel="stylesheet" />
<!-- Include the Open Sans font -->
<link href='//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,400,300,600&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,latin-ext,cyrillic' rel='stylesheet' type='text/css'>
</head>
<body>
<div class="center message">
<h1>Search results not found!</h1>
<div class="search-404">
<?php echo search() ?>
</div>
<p>Please search again, or would you like to try our <a href="<?php echo site_url() ?>">homepage</a> instead?</p>
</div>
</body>
</html>

+ 19
- 0
themes/logs/404.html.php View File

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<link href='<?php echo site_url() ?>favicon.ico' rel='icon' type='image/x-icon'/>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" user-scalable="no" />
<title>404 Not Found - <?php echo blog_title() ?></title>
<link href="<?php echo site_url() ?>themes/logs/css/style.css" rel="stylesheet" />
<!-- Include the Open Sans font -->
<link href='//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,400,300,600&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,latin-ext,cyrillic' rel='stylesheet' type='text/css'>
</head>
<body>
<div class="center message">
<h1>This page doesn't exist!</h1>
<p>Would you like to try our <a href="<?php echo site_url() ?>">homepage</a> instead?</p>
</div>
</body>
</html>

+ 858
- 0
themes/logs/css/style.css View File

@ -0,0 +1,858 @@
/*-------------------------
Simple reset
--------------------------*/
* {
margin: 0;
padding: 0;
}
body {
font-size: 17px;
line-height: 1.6em;
font-family: Georgia, sans-serif;
background: #F7F7F7;
color: #44444;
}
section, footer, header, aside, nav{
display: block;
}
img {
border: 0 none;
height: auto;
max-width: 100%;
outline: 0 none;
}
.hide {
display:none;
}
/*-------------------------
Heading
--------------------------*/
h1, h2, h3, h4, h5, h6 {
font-family: 'Open Sans',sans-serif;
line-height: 1.3;
margin: 0.5em 0;
font-weight:400;
}
h1 {
font-size: 28px;
}
h2 {
font-size: 24px;
}
h3 {
font-size: 18px;
}
h4 {
font-size: 16px;
}
h5 {
font-size: 14px;
}
h6 {
font-size: 12px;
}
/*-------------------------
Layout
--------------------------*/
#cover {
padding: 0 0 20px 0;
float:left;
width:100%;
}
#header-wrapper {
float:left;
width:100%;
position:relative;
}
#header {
position: relative;
padding: 0 15px;
margin: 0 auto;
}
#main-wrapper {
float:left;
width:100%;
background: #ffffff;
position:relative;
border-top:1px solid #DFDFDF;
border-bottom:1px solid #DFDFDF;
}
#main {
position: relative;
padding: 0;
margin: 0 auto;
background: #ffffff;
overflow:hidden;
padding:30px 15px;
}
.responsive {
width: 950px;
}
/*-------------------------
Link
--------------------------*/
a {
color: #21759B;
text-decoration: none;
}
a:hover {
text-decoration: none;
color: #D54E21;
}
.tab {
width:100%;
margin: 1.5em 0 0 0;
line-height:1;
border-bottom: 1px solid #E4E7EE;
}
.tab a {
background: #E4E7EE;
border-radius: 6px 6px 0px 0;
color: #555555;
text-align: center;
padding: 8px 14px;
display:inline-block;
margin: 0 5px;
font-size: 12px;
font-weight: bold;
font-family: 'Open Sans',sans-serif;
}
/*-------------------------
Text element
--------------------------*/
p {
margin: 1em 0;
}
blockquote:before {
color: #BBBBBB;
content: "“";
font-size: 3em;
line-height: 0.1em;
margin-right: 0.2em;
vertical-align: -0.4em;
}
blockquote:after {
color: #BBBBBB;
content: "”";
font-size: 3em;
line-height: 0.1em;
vertical-align: -0.45em;
}
blockquote {
font-style: italic;
margin: 1em 0 1em 1em;
}
blockquote p {
display:inline;
}
pre {
margin: 1em 0;
overflow: auto;
background: #F1F1FF;
color: #333333;
display: block;
font-family: Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif;
font-size: 14px;
padding: 10px;
line-height:1.3;
}
code {
color: #333333;
font-family: Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif;
font-size: 15px;
padding: 3px 8px;
background: #F1F1FF;
}
pre code {
color: #333333;
display: block;
font-family: Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif;
font-size: 14px;
padding:0;
line-height:1.6;
}
.thumbnail {
float: left;
height: 80px;
width: 80px;
margin: 5px 15px 0 0;
overflow: hidden;
display: block;
background-repeat: no-repeat;
background-position: center;
background-size: cover;
}
ul, ol {
padding-left: 30px;
margin: 1em 0;
}
ul li, ol li{
margin: 0.25em 0;
}
/*-------------------------
Header
--------------------------*/
#branding{
text-align: left;
position: relative;
width:100%;
float:left;
margin:1em 0;
text-shadow: 0 1px 0 #ffffff;
}
#branding a {
text-decoration: none;
color: #000000;
}
#branding p {
margin:0;
font-style:italic;
margin-top:5px;
}
#branding h1 {
font-size: 36px;
font-family: Georgia,sans-serif;
margin:0;
}
/*-------------------------
Menu
--------------------------*/
#menu-wrapper {
float:left;
width:100%;
position:relative;
text-align: left;
font-family: 'Open Sans',sans-serif;
font-size:15px;
text-shadow: 0 1px 0 #ffffff;
}
#menu {
margin: 0 auto;
padding: 0 15px;
}
#menu ul {
list-style: none;
margin:0;
padding:0;
}
#menu ul li {
padding: 0 10px;
float: left;
margin:0 0 7px 0;
}
#menu ul li.first {
padding-left:0;
}
#menu ul li.last {
padding-right:0;
}
#menu a {
text-decoration: none;
float:left;
}
#menu a:hover {
text-decoration: underline;
}
#menu ul li.active a {
text-decoration: underline;
}
/*-------------------------
Search
--------------------------*/
#search-form {
float:right;
}
.search-input {
border: 1px solid #E5E5E5;
border-top-color: gainsboro;
color: #666;
display: inline-block;
line-height: normal;
height: 22px;
padding: 0 3px;
-moz-border-radius:2px;
-webkit-border-radius:2px;
border-radius:2px;
}
.search-input:hover {
border:1px solid #b9b9b9;
border-top:1px solid #a0a0a0;
box-shadow:inset 0 1px 2px rgba(0,0,0,.1)
}
.search-input:focus {
border: 1px solid rgb(77, 144, 254);
box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3) inset;
outline: medium none;
}
.search-button {
background-color:#5e94ff;
border:1px solid #5e94ff;
-moz-border-radius:2px;
-webkit-border-radius:2px;
border-radius:2px;
-moz-box-shadow:0 1px 1px rgba(0,0,0,.2);
-webkit-box-shadow:0 1px 1px rgba(0,0,0,.2);
box-shadow:0 1px 1px rgba(0,0,0,.2);
color:#fff;
display:inline-block;
font-family:"open sans",arial,sans-serif;
font-size:13px;
font-weight:600;
line-height:1.54;
padding: 0;
margin:0;
text-align:center;
text-shadow:0 -1px 0 rgba(0,0,0,.2);
-moz-transition:all .218s ease-in;
-webkit-transition:all .218s ease-in;
transition:all .218s ease-in;
cursor:pointer;
height:22px;
padding: 0 3px;
}
/*-------------------------
Content
--------------------------*/
#content {
width: 700px;
float: left;
padding-right: 50px;
}
.breadcrumb {
color: #999999;
font-size: 15px;
margin-bottom: 1em;
font-family: 'Open Sans',sans-serif;
}
.breadcrumb a {
color: #777777;
border-bottom: 1px solid #DFDFDF;
}
.breadcrumb a:hover {
border-bottom: 1px solid #D54E21;
color: #D54E21;
}
.post {
margin: 0 0 24px 0;
overflow: hidden;
border-bottom: 1px solid #DFDFDF;
}
.post a, .post-list a, .pager a, .postnav a {
border-bottom: 1px solid #DFDFDF;
}
.post a:hover , .post-list a:hover , .pager a:hover, .postnav a:hover{
border-bottom: 1px solid #D54E21;
}
.date {
color: #999999;
font-size: 13px;
font-family: 'Open Sans',sans-serif;
margin: 1em 0;
}
.date a {
color: #777777;
}
.date a:hover {
border-bottom: 1px solid #D54E21;
color: #D54E21;
}
#main strong {
color: #454545;
}
#main h1, #main h2 {
font-size: 28px;
line-height: 1.3;
font-family: 'Open Sans',sans-serif;
}
#main h1 a, #main h2 a {
border:none;
}
.post.first .title-index {
margin-top:0;
}
.main {
margin-bottom:1.5em;
}
.inpost .post {
border:none;
}
.title-post {
margin-top:0;
}
.border {
border-top: 1px solid #DFDFDF;
margin-bottom: 15px;
margin-top: 10px;
padding-bottom: 15px;
width: 100%;
float:left;
}
.profile {
border-bottom: 1px solid #DFDFDF;
}
.post-list {
font-size: 14px;
border-bottom: 1px solid #DFDFDF;
margin-bottom: 1em;
padding-bottom: 1em;
}
/*-------------------------
Share box
--------------------------*/
.separator {
font-size: 20px;
}
.share-box {
font-size: 14px;
float:left;
line-height: 1.5;
}
.author-info {
width: 540px;
float:left;
}
.share {
width:140px;
margin-left: 1em;
float:right;
}
.share a {
display: inline-block;
width: 18px;
height: 18px;
margin: 0;
padding: 0 5px;
vertical-align: middle;
-o-transition: all .3s;
-moz-transition: all .3s;
-webkit-transition: all .3s;
-ms-transition: all .3s;
text-indent: -9999em;
border:none;
}
.share a.twitter { background: url(../../default/img/share-twitter.png) left top no-repeat; }
.share a.facebook { background: url(../../default/img/share-facebook.png) left top no-repeat; }
.share a.googleplus { background: url(../../default/img/share-googleplus.png) left top no-repeat; }
.share a:hover { background-position: left -26px; border:none; }
.related {
font-size:15px;
line-height: 1.5;
}
.pager, .postnav {
font-size: 15px;
}
.pager .newer , .postnav .newer {
float:left;
}
.pager .older , .postnav .older {
float:right;
}
.border #disqus_thread {
padding-top: 1.2em;
}
#disqus_thread {
float: left;
font-family: Georgia,Times,Cambria,serif;
width: 100%;
}
/*-------------------------
Sidebar
--------------------------*/
#sidebar {
float: left;
color: #5c5a54;
height:100%;
width: 200px;
font-size:15px;
line-height: 1.5;
}
#sidebar h2, #sidebar h3, #sidebar h4 {
color: #000000;
border-bottom: 1px solid #DFDFDF;
margin: 0 0 1em 0;
padding-bottom: 5px;
}
#sidebar ul {
list-style: none;
margin:0;
padding:0;
}
#sidebar .archivegroup ul.month {
margin-left:1.3em;
}
#sidebar .archivegroup ul.month li {
margin:0;
}
.about, .social, .archive, .tagcloud {
margin-bottom:2em;
}
/*-------------------------
Copyright
--------------------------*/
#copyright-wrapper {
margin: 20px 0 0 0;
float:left;
width:100%;
position:relative;
font-size: 14px;
line-height:1.5;
}
#copyright {
text-align: center;
color: #909090;
text-shadow: 0 1px 0 #ffffff;
text-align:center;
margin: 0 auto;
padding: 0 15px;
}
#copyright p {
margin:0;
}
/*----------------------------
The 404 page
-----------------------------*/
.message{
padding:50px 20px 20px 20px;
}
.message h1{
font-size:36px;
margin-bottom: 18px;
}
.message p{
font-size:13px;
}
.center{
text-align:center;
}
.search-404 {
position:relative;
float:left;
width:100%;
margin-bottom: 1.2em;
}
.search-404 #search-form {
float:none;
}
/*-------------------------
Table
--------------------------*/
table {
font-size:12px;
border: none;
width:100%;
color:#333333;
border: 1px solid #E3E3E3;
margin: 1em 0;
white-space: pre-wrap;
word-wrap:break-word;
}
table h2.title {
margin:5px 0;
}
th, td {
padding: 5px 10px;
border: none;
}
th.title {
margin:5px 0;
font-family: 'Open Sans',sans-serif;
font-size:16px;
font-weight:normal;
}
td.title {
font-weight:normal;
background-color: #f6f6f6;
font-family: 'Open Sans',sans-serif;
}
th {
background-color: #f6f6f6;
border-bottom: 1px solid #E3E3E3;
border-right: 1px solid #E3E3E3;
font-family: 'Open Sans',sans-serif;
font-size:16px;
}
td {
background-color: #fafafa;
border: 1px solid #E3E3E3;
border-top: none;
border-left:none;
}
table.post-list td a {
margin:0 5px;
}
/*----------------------------
Media queries
-----------------------------*/
@media all and (max-width: 1024px) {
.responsive {
width: 95%;
}
#content {
width: 73%;
padding-right:5%;
}
.author-info {
width: 68%;
}
.share {
width: 28%;
margin-left: 4%;
}
#sidebar {
width: 22%;
}
}
@media all and (max-width: 640px) {
.responsive {
width: 94%;
}
#content {
width: 100%;
padding-right:0;
}
.author-info , .related, .share-box{
width: 100%;
}
.share {
width: 100%;
margin-left: 0;
margin-bottom: 1em;
}
#sidebar {
width: 100%;
}
.tagcloud ul li {
float: left;
list-style: none outside none;
margin-right: 10px;
}
.pager .newer , .postnav .newer {
float:left;
margin-bottom: 1em;
}
.pager .older , .postnav .older {
float:left;
margin-bottom: 1em;
}
#branding, #menu-wrapper {
text-align:center;
}
#menu-wrapper ul {
width:100%;
text-align:center;
float:left;
}
#menu-wrapper ul li {
float:none;
display:inline-block;
}
#search-form {
float:left;
width:100%;
margin-bottom:1em;
}
}
@media all and (max-width: 360px) {
.responsive {
width: 92%;
}
}
@media all and (max-width: 320px) {
.responsive {
width: 90%;
}
}
/*----------------------------
Video
-----------------------------*/
.video-wrapper {
margin:1em 0;
}
@media all and (min-width: 420px) {
.video-wrapper {
padding-top:315px!important;
position:relative;
width:100%;
max-width:420px!important;
max-height:315px!important;
}
.video-wrapper iframe, .video-wrapper object, .video-wrapper embed {
height: 100%;
left: 0;
position: absolute;
top: 0;
max-width:420px!important;
width: 100%;
max-height:315px!important;
}
}
@media all and (max-width: 420px) {
.video-wrapper {
position: relative;
padding-bottom: 56.25%;
padding-top: 30px;
height: 0;
overflow: hidden;
}
.video-wrapper iframe, .video-wrapper object, .video-wrapper embed {
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 100%;
}
}

+ 64
- 0
themes/logs/layout.html.php View File

@ -0,0 +1,64 @@
<!DOCTYPE html>
<html>
<head>
<?php echo $head_contents ?>
<link href="<?php echo site_url() ?>themes/logs/css/style.css" rel="stylesheet" />
<link href='//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,400,300,600&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,latin-ext,cyrillic' rel='stylesheet' type='text/css'>
<?php if (publisher()):?><link href="<?php echo publisher() ?>" rel="publisher" /><?php endif;?>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body class="<?php echo $bodyclass; ?>" itemscope="itemscope" itemtype="http://schema.org/Blog">
<div class="hide">
<meta content="<?php echo blog_title() ?>" itemprop="name"/>
<meta content="<?php echo blog_description() ?>" itemprop="description"/>
</div>
<?php if(login()) { toolbar();} ?>
<div id="cover">
<div id="header-wrapper">
<header id="header" class="responsive">
<div id="branding">
<h1 class="blog-title"><a href="<?php echo site_url() ?>"><?php echo blog_title() ?></a></h1>
<div class="blog-tagline"><p><?php echo blog_tagline() ?></p></div>
</div>
</header>
</div>
<div id="menu-wrapper">
<nav id="menu" class="responsive">
<?php echo menu() ?>
<?php echo search() ?>
</nav>
</div>
<div id="main-wrapper">
<div id="main" class="responsive">
<section id="content">
<?php echo content()?>
</section>
<aside id="sidebar">
<div class="about">
<h3>About</h3>
<p><?php echo blog_description() ?></p>
</div>
<div class="social">
<h3>Follow</h3>
<?php echo social() ?>
</div>
<div class="archive">
<?php echo archive_list()?>
</div>
<div class="tagcloud">
<?php echo tag_cloud()?>
</div>
</aside>
</div>
</div>
<div id="copyright-wrapper">
<footer id="copyright" class="responsive">
<?php echo copyright() ?>
</footer>
</div>
</div>
<?php if (analytics()):?><?php echo analytics() ?><?php endif;?>
</body>
</html>

+ 39
- 0
themes/logs/main.html.php View File

@ -0,0 +1,39 @@
<?php if (!empty($breadcrumb)):?><div class="breadcrumb"><?php echo $breadcrumb ?></div><?php endif;?>
<?php $i = 0; $len = count($posts);?>
<?php foreach($posts as $p):?>
<?php
if ($i == 0) {
$class = 'post first';
}
elseif ($i == $len - 1) {
$class = 'post last';
}
else {
$class = 'post';
}
$i++;
?>
<div class="<?php echo $class ?>" itemprop="blogPost" itemscope="itemscope" itemtype="http://schema.org/BlogPosting">
<div class="main">
<h2 class="title-index" itemprop="name"><a href="<?php echo $p->url?>"><?php echo $p->title ?></a></h2>
<div class="date"><span itemprop="datePublished"><?php echo date('d F Y', $p->date)?></span> - Posted in <span itemprop="articleSection"><?php echo $p->tag ?></span> by <span itemprop="author"><a href="<?php echo $p->authorurl ?>"><?php echo $p->author ?></a></span><?php if (disqus_count() == true):?> - <span><a href="<?php echo $p->url?>#disqus_thread">Comments</a></span><?php endif;?></div>
<div class="teaser-body" itemprop="articleBody">
<?php echo get_thumbnail($p->body)?>
<?php echo get_teaser($p->body, $p->url)?>
</div>
</div>
</div>
<?php endforeach;?>
<?php if (!empty($pagination['prev']) || !empty($pagination['next'])):?>
<div class="pager">
<?php if (!empty($pagination['prev'])):?>
<span class="newer" >&laquo; <a href="?page=<?php echo $page-1?>" rel="prev">Newer</a></span>
<?php endif;?>
<?php if (!empty($pagination['next'])):?>
<span class="older" ><a href="?page=<?php echo $page+1?>" rel="next">Older</a> &raquo;</span>
<?php endif;?>
</div>
<?php endif;?>
<?php if (disqus_count()):?>
<?php echo disqus_count() ?>
<?php endif;?>

+ 1
- 0
themes/logs/no-posts.html.php View File

@ -0,0 +1 @@
<h1>No posts found!</h1>

+ 45
- 0
themes/logs/post.html.php View File

@ -0,0 +1,45 @@
<?php if (!empty($breadcrumb)):?><div class="breadcrumb" xmlns:v="http://rdf.data-vocabulary.org/#"><?php echo $breadcrumb ?></div><?php endif;?>
<?php if(login()) { echo tab($p);} ?>
<div class="post" itemprop="blogPost" itemscope="itemscope" itemtype="http://schema.org/BlogPosting">
<div class="main">
<a name="more"></a>
<h1 class="title-post" itemprop="name"><?php echo $p->title ?></h1>
<div class="date">
<span itemprop="datePublished"><a href="<?php echo $p->archive ?>" title="Show all posts made on this day"><?php echo date('d F Y', $p->date)?></a></span> - Posted in
<span itemprop="articleSection"><?php echo $p->tag ?></span> by
<span itemprop="author"><a href="<?php echo $p->authorurl ?>"><?php echo $p->author ?></a></span> -
<span><a href="<?php echo $p->url ?>" rel="permalink">Permalink</a></span>
</div>
<div class="post-body" itemprop="articleBody">
<?php echo $p->body; ?>
</div>
</div>
<div class="separator">&rarr;</div>
<div class="share-box">
<?php echo $authorinfo ?>
<div class="share">
<h4>Share this post</h4>
<a class="twitter" target="_blank" href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title?>">Twitter</a>
<a class="facebook" target="_blank" href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title?>">Facebook</a>
<a class="googleplus" target="_blank" href="https://plus.google.com/share?url=<?php echo $p->url ?>">Google+</a>
</div>
</div>
<?php echo get_related($p->tag)?>
<div class="comments border">
<?php if (disqus()):?>
<div id="disqus_thread"></div>
<?php endif;?>
</div>
<div class="postnav">
<?php if (!empty($next)):?>
<span class="newer">&laquo; <a href="<?php echo ($next['url']);?>" rel="next"><?php echo ($next['title']);?></a></span>
<?php endif;?>
<?php if (!empty($prev)):?>
<span class="older" ><a href="<?php echo ($prev['url']); ?>" rel="prev"><?php echo ($prev['title']); ?></a> &raquo;</span>
<?php endif;?>
</div>
<?php if (disqus()):?>
<?php echo disqus($p->title, $p->url) ?>
<?php endif;?>
</div>

+ 38
- 0
themes/logs/profile.html.php View File

@ -0,0 +1,38 @@
<?php if (!empty($breadcrumb)):?><div class="breadcrumb"><?php echo $breadcrumb ?></div><?php endif;?>
<div class="profile" itemtype="http://schema.org/Person" itemscope="itemscope" itemprop="Person">
<h1 class="title-post" itemprop="name"><?php echo $name ?></h1>
<div class="bio" itemprop="description"><?php echo $bio ?></div>
</div>
<h2 class="post-index">Posts by this author</h2>
<?php if(!empty($posts)) {?>
<ul class="post-list">
<?php $i = 0; $len = count($posts);?>
<?php foreach($posts as $p):?>
<?php
if ($i == 0) {
$class = 'item first';
}
elseif ($i == $len - 1) {
$class = 'item last';
}
else {
$class = 'item';
}
$i++;
?>
<li class="<?php echo $class;?>">
<span><a href="<?php echo $p->url?>"><?php echo $p->title ?></a></span> on <span><?php echo date('d F Y', $p->date)?></span> - Posted in <span><?php echo $p->tag ?></span>
</li>
<?php endforeach;?>
</ul>
<?php if (!empty($pagination['prev']) || !empty($pagination['next'])):?>
<div class="pager">
<?php if (!empty($pagination['prev'])):?>
<span class="newer" >&laquo; <a href="?page=<?php echo $page-1?>" rel="prev">Newer</a></span>
<?php endif;?>
<?php if (!empty($pagination['next'])):?>
<span class="older" ><a href="?page=<?php echo $page+1?>" rel="next">Older</a> &raquo;</span>
<?php endif;?>
</div>
<?php endif;?>
<?php } else { echo 'No posts found!'; }?>

+ 10
- 0
themes/logs/static.html.php View File

@ -0,0 +1,10 @@
<?php if (!empty($breadcrumb)):?><div class="breadcrumb" xmlns:v="http://rdf.data-vocabulary.org/#"><?php echo $breadcrumb ?></div><?php endif;?>
<?php if(login()) { echo tab($p);} ?>
<div class="post" itemprop="blogPost" itemscope="itemscope" itemtype="http://schema.org/BlogPosting">
<div class="main">
<h1 class="title-post" itemprop="name"><?php echo $p->title ?></h1>
<div class="post-body" itemprop="articleBody">
<?php echo $p->body; ?>
</div>
</div>
</div>

Loading…
Cancel
Save