From 9323147e6ee53a41477edad573ff4237b20e5b19 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 22 Mar 2006 08:41:20 +0100 Subject: feedlist display fixes for RTL --- functions.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 988369c32..68c8eac76 100644 --- a/functions.php +++ b/functions.php @@ -685,7 +685,8 @@ return false; } - function printFeedEntry($feed_id, $class, $feed_title, $unread, $icon_file, $link) { + function printFeedEntry($feed_id, $class, $feed_title, $unread, $icon_file, $link, + $rtl_content = false) { if (file_exists($icon_file) && filesize($icon_file) > 0) { $feed_icon = ""; @@ -693,6 +694,12 @@ $feed_icon = ""; } + if ($rtl_content) { + $rtl_tag = "dir=\"rtl\""; + } else { + $rtl_tag = "dir=\"ltr\""; + } + $feed = "$feed_title"; print "
  • "; @@ -700,7 +707,7 @@ print "$feed_icon"; } - print "$feed"; + print "$feed"; if ($unread != 0) { $fctr_class = ""; @@ -708,7 +715,7 @@ $fctr_class = "class=\"invisible\""; } - print " + print " ($unread)"; print "
  • "; -- cgit v1.2.3