This commit is contained in:
Ian 2014-11-02 15:25:05 +01:00
parent 6631c516f8
commit d4544bec17
2 changed files with 10 additions and 8 deletions

View File

@ -10,7 +10,7 @@ class serendipity_plugin_html_nugget extends serendipity_plugin {
if (!empty($subtitle)) {
$desc = '(' . $subtitle . ') ' . HOLDS_A_BLAHBLAH;
} else {
$desc = HOLDS_A_BLAHBLAH;
$desc = HOLDS_A_BLAHBLAH;
}
$propbag->add('name', HTML_NUGGET);

View File

@ -185,7 +185,7 @@ class serendipity_plugin_syndication extends serendipity_plugin {
$onclick=$this->getOnclick($mainFeed);
}
echo '<ul id="serendipity_syndication_list" style="list-style: none; margin: 0px; padding: 0px">';
echo "\n".'<ul id="serendipity_syndication_list" style="list-style: none; margin: 0px; padding: 0px">';
echo $this->generateFeedButton($mainFeed, ($icon == $small_icon ? ($useRss ? "RSS $FEED" : "Atom $FEED") : ""), $onclick, $icon);
if ($useRss && $useAtom) {
@ -198,17 +198,19 @@ class serendipity_plugin_syndication extends serendipity_plugin {
($subtome ? $this->getOnclick(serendipity_rewriteURL(PATH_FEEDS .'/comments.rss2', 'serendipityHTTPPath')) : ""),
$small_icon);
}
echo "</ul>";
echo "</ul>\n";
}
function generateFeedButton($feed, $label, $onlick, $icon) {
$link = "class='serendipity_xml_icon' href='$feed' $onclick";
$output = "<li>
<a id='serendipity_subtome' $link><img src='$icon' alt='XML' style='border: 0px' /></a>";
// sadly sidebar only plugins can't use event hooks
$link = 'class="serendipity_xml_icon" href="'.$feed. $onclick.'"';
$output = '
<li>
<a id="serendipity_subtome" ' . $link . '><img src="' . $icon . '" alt="XML" style="border: 0px" /></a>'."\n";
if (! empty($label)) {
$output .= " <a $link>$label</a>";
$output .= " <a $link>$label</a>\n";
}
return $output .= "</li>";
return $output .= "</li>\n";
}
function getOnclick($url) {