From 2591e694975924967f858847716b6f818835afaf Mon Sep 17 00:00:00 2001 From: Danang Probo Sayekti Date: Thu, 13 Feb 2014 08:54:13 +0700 Subject: [PATCH] Add disqus recent comments Add disqus recent comments to the core. --- system/includes/functions.php | 48 +++++++++++++++++++++++++++++++++++++++++++ themes/logs/css/style.css | 7 ++++++- themes/logs/layout.html.php | 5 +++++ 3 files changed, 59 insertions(+), 1 deletion(-) diff --git a/system/includes/functions.php b/system/includes/functions.php index 5de80cc..fb569cc 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -848,6 +848,54 @@ EOF; } } +// Disqus recent comments +function recent_comments(){ + $disqus = config('disqus.shortname'); + $script = << + var heading ='

Comments

'; + document.write(heading); + + + +EOF; + if (!empty($disqus)) { + return $script; + } +} + // Google Publisher (Google+ page). function publisher(){ $publisher = config('google.publisher'); diff --git a/themes/logs/css/style.css b/themes/logs/css/style.css index f5073fa..c6a7ece 100644 --- a/themes/logs/css/style.css +++ b/themes/logs/css/style.css @@ -585,7 +585,7 @@ ul li, ol li{ margin:0; } -.about, .social, .archive, .tagcloud { +.about, .social, .archive, .comments, .tagcloud { margin-bottom:2em; } @@ -793,6 +793,11 @@ table.post-list td a { margin-bottom:1em; } + pre { + white-space: pre-wrap; + word-wrap:break-word; + } + } @media all and (max-width: 360px) { diff --git a/themes/logs/layout.html.php b/themes/logs/layout.html.php index 524539f..0df7579 100644 --- a/themes/logs/layout.html.php +++ b/themes/logs/layout.html.php @@ -47,6 +47,11 @@
+ +
+ +
+