Archived
1
0

Show two "comments feed" buttons when both feed formats (RSS+Atom) activated

This commit is contained in:
Ivan Mahonin
2016-05-09 11:33:12 -04:00
parent 98099b6a02
commit 7883b5931f
@@ -203,10 +203,18 @@ class serendipity_plugin_syndication extends serendipity_plugin {
}
if (serendipity_db_bool($this->get_config('show_2.0c', false)) || serendipity_db_bool($this->get_config('show_comment_feed', false))) {
echo $this->generateFeedButton(($useAtom && ! $useRss ? serendipity_rewriteURL(PATH_FEEDS .'/comments.atom') : serendipity_rewriteURL(PATH_FEEDS .'/comments.rss2')),
$COMMENTS,
($subtome ? $this->getOnclick(serendipity_rewriteURL(PATH_FEEDS .'/comments.rss2')) : ""),
$small_icon);
if ($useRss) {
echo $this->generateFeedButton( serendipity_rewriteURL(PATH_FEEDS .'/comments.rss2'),
$COMMENTS . ($useAtom ? " (RSS)": ""),
($subtome ? $this->getOnclick(serendipity_rewriteURL(PATH_FEEDS .'/comments.rss2')) : ""),
$small_icon);
}
if ($useAtom) {
echo $this->generateFeedButton( serendipity_rewriteURL(PATH_FEEDS .'/comments.atom10'),
$COMMENTS . ($useRss ? " (Atom)": ""),
($subtome ? $this->getOnclick(serendipity_rewriteURL(PATH_FEEDS .'/comments.atom10')) : ""),
$small_icon);
}
}
echo "</ul>\n";
}