Hide older / newer entries button for the RSS feed

This commit is contained in:
Markus Koch 2018-04-30 09:43:25 +02:00
parent e8827ce7d4
commit 3587f38bac

View File

@ -290,14 +290,16 @@
}
}
}
if ($morePosts || $postsSkip > 0)
echo "<p><table class=\"blognav\"><tr>";
if ($morePosts)
echo '<td><a href="' . "?p=blog$tagSearchUrl&s=" . ($postsPage+1) . '">&lt;&lt; Older posts</a></td>';
if ($postsSkip > 0)
echo '<td style="text-align:right;"><a href="' . "?p=blog$tagSearchUrl&s=" . ($postsPage-1) . '">Newer posts &gt;&gt;</a></td>';
if ($morePosts || $postsSkip > 0)
echo "</tr></table></p>";
if (!isset($CMS_RSS)) {
if ($morePosts == 2 || $postsSkip > 0)
echo "<p><table class=\"blognav\"><tr>";
if ($morePosts == 2)
echo '<td><a href="' . "?p=blog$tagSearchUrl&s=" . ($postsPage+1) . '">&lt;&lt; Older posts</a></td>';
if ($postsSkip > 0)
echo '<td style="text-align:right;"><a href="' . "?p=blog$tagSearchUrl&s=" . ($postsPage-1) . '">Newer posts &gt;&gt;</a></td>';
if ($morePosts == 2|| $postsSkip > 0)
echo "</tr></table></p>";
}
}
if (!isset($CMS_RSS))
echo "</blog>";