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