Browse Source

Update style

pull/255/head
Danang Probo Sayekti 10 years ago
parent
commit
bbd0357978
8 changed files with 26 additions and 6 deletions
  1. +5
    -5
      system/htmly.php
  2. +2
    -0
      system/includes/functions.php
  3. +11
    -0
      themes/blog/css/styles.css
  4. +1
    -1
      themes/blog/post.html.php
  5. +1
    -0
      themes/clean/post.html.php
  6. +1
    -0
      themes/default/post.html.php
  7. +4
    -0
      themes/logs/css/style.css
  8. +1
    -0
      themes/logs/post.html.php

+ 5
- 5
system/htmly.php View File

@ -1668,7 +1668,7 @@ get('/post/:name', function ($name) {
} }
if (config('blog.enable') === 'true') { if (config('blog.enable') === 'true') {
$blog = ' <span typeof="v:Breadcrumb"><a href="' . site_url() . 'blog">Blog</a></span> &#187; ';
$blog = ' <span typeof="v:Breadcrumb"><a property="v:title" rel="v:url" href="' . site_url() . 'blog">Blog</a></span> &#187; ';
} else { } else {
$blog = ''; $blog = '';
} }
@ -1680,7 +1680,7 @@ get('/post/:name', function ($name) {
'p' => $current, 'p' => $current,
'author' => $author, 'author' => $author,
'bodyclass' => 'inpost', 'bodyclass' => 'inpost',
'breadcrumb' => '<span typeof="v:Breadcrumb"><a property="v:title" rel="v:url" href="' . site_url() . '">' . config('breadcrumb.home') . '</a></span> &#187; '. $blog . $current->category . ' &#187; ' . $current->title,
'breadcrumb' => '<span typeof="v:Breadcrumb"><a property="v:title" rel="v:url" href="' . site_url() . '">' . config('breadcrumb.home') . '</a></span> &#187; '. $blog . '<span typeof="v:Breadcrumb">' . $current->categoryb . '</span>' . ' &#187; ' . $current->title,
'prev' => has_prev($prev), 'prev' => has_prev($prev),
'next' => has_next($next), 'next' => has_next($next),
'type' => $var, 'type' => $var,
@ -2523,7 +2523,7 @@ get('/:year/:month/:name', function ($year, $month, $name) {
} }
if (config('blog.enable') === 'true') { if (config('blog.enable') === 'true') {
$blog = ' <span typeof="v:Breadcrumb"><a href="' . site_url() . 'blog">Blog</a></span> &#187; ';
$blog = ' <span typeof="v:Breadcrumb"><a property="v:title" rel="v:url" href="' . site_url() . 'blog">Blog</a></span> &#187; ';
} else { } else {
$blog = ''; $blog = '';
} }
@ -2535,7 +2535,7 @@ get('/:year/:month/:name', function ($year, $month, $name) {
'p' => $current, 'p' => $current,
'author' => $author, 'author' => $author,
'bodyclass' => 'inpost', 'bodyclass' => 'inpost',
'breadcrumb' => '<span typeof="v:Breadcrumb"><a property="v:title" rel="v:url" href="' . site_url() . '">' . config('breadcrumb.home') . '</a></span> &#187; '. $blog . $current->category . ' &#187; ' . $current->title,
'breadcrumb' => '<span typeof="v:Breadcrumb"><a property="v:title" rel="v:url" href="' . site_url() . '">' . config('breadcrumb.home') . '</a></span> &#187; '. $blog . '<span typeof="v:Breadcrumb">' . $current->categoryb . '</span>' . ' &#187; ' . $current->title,
'prev' => has_prev($prev), 'prev' => has_prev($prev),
'next' => has_next($next), 'next' => has_next($next),
'type' => $var, 'type' => $var,
@ -2809,4 +2809,4 @@ get('.*', function () {
}); });
// Serve the blog // Serve the blog
dispatch();
dispatch();

+ 2
- 0
system/includes/functions.php View File

@ -266,9 +266,11 @@ function get_posts($posts, $page = 1, $perpage = 0)
if($str[count($str) - 3] == 'uncategorized') { if($str[count($str) - 3] == 'uncategorized') {
$category = default_category(); $category = default_category();
$post->category = '<a href="' . $category->url . '">' . $category->title . '</a>'; $post->category = '<a href="' . $category->url . '">' . $category->title . '</a>';
$post->categoryb = '<a property="v:title" rel="v:url" href="' . $category->url . '">' . $category->title . '</a>';
} else { } else {
$category = get_category_info($str[count($str) - 3]); $category = get_category_info($str[count($str) - 3]);
$post->category = '<a href="' . $category[0]->url . '">' . $category[0]->title . '</a>'; $post->category = '<a href="' . $category[0]->url . '">' . $category[0]->title . '</a>';
$post->categoryb = '<a property="v:title" rel="v:url" href="' . $category[0]->url . '">' . $category[0]->title . '</a>';
} }
$type = $str[count($str) - 2]; $type = $str[count($str) - 2];


+ 11
- 0
themes/blog/css/styles.css View File

@ -142,6 +142,17 @@ pre {
margin:1em 0; margin:1em 0;
} }
.tags {
margin-right:5px;
}
.tags a {
background-color: #f9f2f4;
border-radius: 4px;
color: #c7254e;
padding: 2px 4px;
}
/*------------------------- /*-------------------------
Table Table
--------------------------*/ --------------------------*/


+ 1
- 1
themes/blog/post.html.php View File

@ -43,7 +43,7 @@
<?php echo $p->body; ?> <?php echo $p->body; ?>
</div><!--//desc--> </div><!--//desc-->
<div style="margin-top:30px;position:relative;"> <div style="margin-top:30px;position:relative;">
<span class="tags"><i class="fa fa-tags"></i> <?php echo $p->tag;?></span>
<span class="tags"><i class="fa fa-tags"></i> <?php echo $p->tag;?></span>
<?php if (disqus_count()) { ?> <?php if (disqus_count()) { ?>
<span><i class="fa fa-comments"></i> <a href="<?php echo $p->url ?>#disqus_thread"> comments</a></span> <span><i class="fa fa-comments"></i> <a href="<?php echo $p->url ?>#disqus_thread"> comments</a></span>
<?php } elseif (facebook()) { ?> <?php } elseif (facebook()) { ?>


+ 1
- 0
themes/clean/post.html.php View File

@ -41,6 +41,7 @@
<div class="post-body" itemprop="articleBody"> <div class="post-body" itemprop="articleBody">
<?php echo $p->body; ?> <?php echo $p->body; ?>
</div> </div>
<div class="tags"><strong>Tags:</strong> <?php echo $p->tag;?></div>
</div> </div>
<div class="separator">&rarr;</div> <div class="separator">&rarr;</div>
<div class="share-box"> <div class="share-box">


+ 1
- 0
themes/default/post.html.php View File

@ -41,6 +41,7 @@
<div class="post-body" itemprop="articleBody"> <div class="post-body" itemprop="articleBody">
<?php echo $p->body; ?> <?php echo $p->body; ?>
</div> </div>
<div class="tags"><strong>Tags:</strong> <?php echo $p->tag;?></div>
</div> </div>
<div class="separator">&rarr;</div> <div class="separator">&rarr;</div>
<div class="share-box"> <div class="share-box">


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

@ -154,6 +154,10 @@ a:hover {
font-family: 'Open Sans', sans-serif; font-family: 'Open Sans', sans-serif;
} }
.tags a {
margin-right:3px;
}
/*------------------------- /*-------------------------
Text element Text element
--------------------------*/ --------------------------*/


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

@ -41,6 +41,7 @@
<div class="post-body" itemprop="articleBody"> <div class="post-body" itemprop="articleBody">
<?php echo $p->body; ?> <?php echo $p->body; ?>
</div> </div>
<div class="tags"><strong>Tags:</strong> <?php echo $p->tag;?></div>
</div> </div>
<div class="separator">&rarr;</div> <div class="separator">&rarr;</div>
<div class="share-box"> <div class="share-box">


Loading…
Cancel
Save