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