Browse Source

Add new config

Add new config for author info.
pull/9/head
Danang Probo Sayekti 12 years ago
parent
commit
568b4262d6
4 changed files with 10 additions and 9 deletions
  1. +3
    -0
      system/config.ini
  2. +0
    -4
      themes/default/css/style.css
  3. +1
    -1
      themes/default/main.html.php
  4. +6
    -4
      themes/default/post.html.php

+ 3
- 0
system/config.ini View File

@ -33,6 +33,9 @@ profile.perpage = "30"
rss.count = "30"
json.count = "10"
; Author info on blog post. Set "true" or "false".
author.info = "true"
; Teaser char count
teaser.char = "200"


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

@ -171,10 +171,6 @@ h6{
text-decoration:none;
}
.body {
min-height: 90px;
}
.infront .post, .intag .post, .inarchive .post, .insearch .post, .inprofile .post{
border-bottom: 1px solid #dfdfdf;
padding: 30px 0 10px 0;


+ 1
- 1
themes/default/main.html.php View File

@ -17,7 +17,7 @@
<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"><a href="<?php echo $p->tagurl ?>"><?php echo $p->tag ?></a></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="body" itemprop="articleBody">
<div class="post-body" itemprop="articleBody">
<?php if (config('img.thumbnail') == 'true'):?>
<?php echo get_thumbnail($p->body)?>
<?php endif;?>


+ 6
- 4
themes/default/post.html.php View File

@ -8,13 +8,15 @@
<?php if ($type == 'blogpost'):?>
<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"><a href="<?php echo $p->tagurl ?>"><?php echo $p->tag ?></a></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>
<?php endif;?>
<div class="body" itemprop="articleBody">
<div class="teaser-body" itemprop="articleBody">
<?php echo $p->body; ?>
</div>
</div>
<?php if (config('author.info') == 'true'):?>
<?php echo $authorinfo ?>
<?php endif;?>
<?php if ($type == 'blogpost'):?>
<?php if (config('author.info') == 'true'):?>
<?php echo $authorinfo ?>
<?php endif;?>
<?php endif;?>
<div class="comments border">
<?php if ($type == 'blogpost'):?>
<?php if (disqus(null, null) == true):?>


Loading…
Cancel
Save