From 3587f38bac29dd260f49c8e4c45d3e67d0edb17f Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Mon, 30 Apr 2018 09:43:25 +0200 Subject: [PATCH] Hide older / newer entries button for the RSS feed --- blog.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/blog.php b/blog.php index 94acba4..1c61f97 100644 --- a/blog.php +++ b/blog.php @@ -290,14 +290,16 @@ } } } - if ($morePosts || $postsSkip > 0) - echo "

"; - if ($morePosts) - echo ''; - if ($postsSkip > 0) - echo ''; - if ($morePosts || $postsSkip > 0) - echo "
<< Older postsNewer posts >>

"; + if (!isset($CMS_RSS)) { + if ($morePosts == 2 || $postsSkip > 0) + echo "

"; + if ($morePosts == 2) + echo ''; + if ($postsSkip > 0) + echo ''; + if ($morePosts == 2|| $postsSkip > 0) + echo "
<< Older postsNewer posts >>

"; + } } if (!isset($CMS_RSS)) echo "";