From: garvinhicking Date: Wed, 12 Dec 2007 10:37:41 +0000 (+0000) Subject: Tweak CSS output of rss sidebar plugin X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8ac15205d8c51ffe9ea67b1cb8ebade146b88c58;p=s9y.git Tweak CSS output of rss sidebar plugin --- diff --git a/docs/NEWS b/docs/NEWS index f3e59e3..2f10b34 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -3,6 +3,10 @@ Version 1.3 () ------------------------------------------------------------------------ + * Add more verbose CSS classes to remote RSS sidebar plugin, also + only encapsulate the first XML-Item as link. All following + items are only encapsulated in s. (garvinhicking) + * Make browser compatibility plugin bail out for IE7. Thanks to Freudi from the forums. diff --git a/plugins/serendipity_plugin_remoterss/serendipity_plugin_remoterss.php b/plugins/serendipity_plugin_remoterss/serendipity_plugin_remoterss.php index 34b2f58..4169e36 100644 --- a/plugins/serendipity_plugin_remoterss/serendipity_plugin_remoterss.php +++ b/plugins/serendipity_plugin_remoterss/serendipity_plugin_remoterss.php @@ -379,7 +379,7 @@ class serendipity_plugin_remoterss extends serendipity_plugin { case 'displaydate': $propbag->add('type', 'boolean'); $propbag->add('name', PLUGIN_REMOTERSS_DISPLAYDATE); - $propbag->add('description', PLUGIN_REMOTERSS_BLAHBLAH); + $propbag->add('description', PLUGIN_REMOTERSS_DISPLAYDATE_BLAHBLAH); $propbag->add('default', 'true'); break; @@ -480,24 +480,41 @@ class serendipity_plugin_remoterss extends serendipity_plugin { continue; } + echo '
'; if ($use_rss_link) { - $content .= ''; + $content .= ''; // end of first linked element + } + $is_first = false; } - if ($use_rss_link) { + if ($is_first && $use_rss_link) { + // No XML element has been configured. $content .= ''; } @@ -506,9 +523,10 @@ class serendipity_plugin_remoterss extends serendipity_plugin { if (!($item['timestamp'] == -1) AND ($displaydate == 'true')) { $content .= '
' . htmlspecialchars(serendipity_formatTime($dateformat, $item['timestamp'], false)) - . '

'; + . '
'; } + echo ''; // end of rss_item ++$i; }