From 14df75d6e4940fa070120605c0c27414260c8c42 Mon Sep 17 00:00:00 2001 From: Danang Probo Sayekti Date: Thu, 30 Jul 2015 11:13:00 +0700 Subject: [PATCH] Styling the blog theme --- system/includes/functions.php | 5 +-- themes/blog/css/styles.css | 27 ++++++---------- themes/blog/layout.html.php | 73 ++++++++++++++++++++++++------------------- themes/blog/post.html.php | 6 ++-- themes/blog/profile.html.php | 2 +- themes/blog/static.html.php | 2 +- 6 files changed, 58 insertions(+), 57 deletions(-) diff --git a/system/includes/functions.php b/system/includes/functions.php index 00b1c83..105f9c5 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -824,7 +824,6 @@ function popular_posts($custom = null, $count = null) if(empty($custom)) { echo ''; } else { - echo ''; return $tmp; } } @@ -1952,7 +1951,9 @@ EOF; echo '
  • Admin
  • '; if ($role === 'admin') { echo '
  • Posts
  • '; - echo '
  • Popular
  • '; + if (config('views.counter') == 'true') { + echo '
  • Popular
  • '; + } } echo '
  • Mine
  • '; echo '
  • Draft
  • '; diff --git a/themes/blog/css/styles.css b/themes/blog/css/styles.css index fbbd81f..8bd2037 100644 --- a/themes/blog/css/styles.css +++ b/themes/blog/css/styles.css @@ -325,6 +325,12 @@ iframe { .section { margin-bottom: 30px; } +.inpost.section, .inpage.section, .inprofile.section, .comment-wrapper.section, .tags.section, .section.last { + margin-bottom: 0px; +} +.comment-wrapper.section { + margin-top:30px; +} .section .section-inner { background: #fff; padding: 30px; @@ -421,6 +427,9 @@ iframe { .tab { margin-bottom: 20px; } +.pager { + margin-top:30px; +} /* share section */ .share{ @@ -456,24 +465,6 @@ iframe { margin-bottom: 0; } -/* popular-posts Section */ -.popular-posts .item { - margin-bottom: 20px; -} -.popular-posts .item .title { - font-size: 16px; - line-height: 1.3; -} -.popular-posts .item .title a { - color: #778492; -} -.popular-posts .item .title a:hover { - color: #5f6b77; -} -.popular-posts .item:last-child { - margin-bottom: 0; -} - /* archive Section */ ul.archivegroup { margin: 0; diff --git a/themes/blog/layout.html.php b/themes/blog/layout.html.php index b012b9d..0ba3a89 100644 --- a/themes/blog/layout.html.php +++ b/themes/blog/layout.html.php @@ -100,40 +100,50 @@ - - - -