Update style

This commit is contained in:
Danang Probo Sayekti 2015-08-26 21:36:54 +07:00
commit bbd0357978
8 changed files with 26 additions and 6 deletions

View file

@ -1668,7 +1668,7 @@ get('/post/:name', function ($name) {
}
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 {
$blog = '';
}
@ -1680,7 +1680,7 @@ get('/post/:name', function ($name) {
'p' => $current,
'author' => $author,
'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),
'next' => has_next($next),
'type' => $var,
@ -2523,7 +2523,7 @@ get('/:year/:month/:name', function ($year, $month, $name) {
}
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 {
$blog = '';
}
@ -2535,7 +2535,7 @@ get('/:year/:month/:name', function ($year, $month, $name) {
'p' => $current,
'author' => $author,
'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),
'next' => has_next($next),
'type' => $var,

View file

@ -266,9 +266,11 @@ function get_posts($posts, $page = 1, $perpage = 0)
if($str[count($str) - 3] == 'uncategorized') {
$category = default_category();
$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 {
$category = get_category_info($str[count($str) - 3]);
$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];

View file

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

View file

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

View file

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

View file

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

View file

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