diff --git a/system/includes/functions.php b/system/includes/functions.php index 4cff6c3..2642d2a 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -630,10 +630,17 @@ function keyword_count($keyword) return count($tmp); } +// Return recent posts lists function recent() { + $count = config('recent.count'); + + if (empty($count)) { + $count = 5; + } + $str = '