From bbd03579788dc5db28c2b46435a94da28f3a3474 Mon Sep 17 00:00:00 2001 From: Danang Probo Sayekti Date: Wed, 26 Aug 2015 21:36:54 +0700 Subject: [PATCH] Update style --- system/htmly.php | 10 +++++----- system/includes/functions.php | 2 ++ themes/blog/css/styles.css | 11 +++++++++++ themes/blog/post.html.php | 2 +- themes/clean/post.html.php | 1 + themes/default/post.html.php | 1 + themes/logs/css/style.css | 4 ++++ themes/logs/post.html.php | 1 + 8 files changed, 26 insertions(+), 6 deletions(-) diff --git a/system/htmly.php b/system/htmly.php index edda1ff..01157e9 100644 --- a/system/htmly.php +++ b/system/htmly.php @@ -1668,7 +1668,7 @@ get('/post/:name', function ($name) { } if (config('blog.enable') === 'true') { - $blog = ' Blog » '; + $blog = ' Blog » '; } else { $blog = ''; } @@ -1680,7 +1680,7 @@ get('/post/:name', function ($name) { 'p' => $current, 'author' => $author, 'bodyclass' => 'inpost', - 'breadcrumb' => '' . config('breadcrumb.home') . ' » '. $blog . $current->category . ' » ' . $current->title, + 'breadcrumb' => '' . config('breadcrumb.home') . ' » '. $blog . '' . $current->categoryb . '' . ' » ' . $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 = ' Blog » '; + $blog = ' Blog » '; } else { $blog = ''; } @@ -2535,7 +2535,7 @@ get('/:year/:month/:name', function ($year, $month, $name) { 'p' => $current, 'author' => $author, 'bodyclass' => 'inpost', - 'breadcrumb' => '' . config('breadcrumb.home') . ' » '. $blog . $current->category . ' » ' . $current->title, + 'breadcrumb' => '' . config('breadcrumb.home') . ' » '. $blog . '' . $current->categoryb . '' . ' » ' . $current->title, 'prev' => has_prev($prev), 'next' => has_next($next), 'type' => $var, @@ -2809,4 +2809,4 @@ get('.*', function () { }); // Serve the blog -dispatch(); \ No newline at end of file +dispatch(); diff --git a/system/includes/functions.php b/system/includes/functions.php index 9411b8d..d1bde00 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -266,9 +266,11 @@ function get_posts($posts, $page = 1, $perpage = 0) if($str[count($str) - 3] == 'uncategorized') { $category = default_category(); $post->category = '' . $category->title . ''; + $post->categoryb = '' . $category->title . ''; } else { $category = get_category_info($str[count($str) - 3]); $post->category = '' . $category[0]->title . ''; + $post->categoryb = '' . $category[0]->title . ''; } $type = $str[count($str) - 2]; diff --git a/themes/blog/css/styles.css b/themes/blog/css/styles.css index 1fe3477..e759aba 100644 --- a/themes/blog/css/styles.css +++ b/themes/blog/css/styles.css @@ -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 --------------------------*/ diff --git a/themes/blog/post.html.php b/themes/blog/post.html.php index abaa2e4..2c654ce 100644 --- a/themes/blog/post.html.php +++ b/themes/blog/post.html.php @@ -43,7 +43,7 @@ body; ?>
- tag;?> + tag;?> comments diff --git a/themes/clean/post.html.php b/themes/clean/post.html.php index bfedb75..3f0050f 100644 --- a/themes/clean/post.html.php +++ b/themes/clean/post.html.php @@ -41,6 +41,7 @@
body; ?>
+
Tags: tag;?>
diff --git a/themes/default/post.html.php b/themes/default/post.html.php index b6d9b39..95f3805 100644 --- a/themes/default/post.html.php +++ b/themes/default/post.html.php @@ -41,6 +41,7 @@
body; ?>
+
Tags: tag;?>
diff --git a/themes/logs/css/style.css b/themes/logs/css/style.css index bb02d41..2fc87a9 100644 --- a/themes/logs/css/style.css +++ b/themes/logs/css/style.css @@ -154,6 +154,10 @@ a:hover { font-family: 'Open Sans', sans-serif; } +.tags a { + margin-right:3px; +} + /*------------------------- Text element --------------------------*/ diff --git a/themes/logs/post.html.php b/themes/logs/post.html.php index 399d3f3..1d4d276 100644 --- a/themes/logs/post.html.php +++ b/themes/logs/post.html.php @@ -41,6 +41,7 @@
body; ?>
+
Tags: tag;?>