diff options
author | Andrew Dolgov <[email protected]> | 2006-03-22 08:41:20 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2006-03-22 08:41:20 +0100 |
commit | 9323147e6ee53a41477edad573ff4237b20e5b19 (patch) | |
tree | 355c9f5e43ebe26a5b45b6a3619cd0304454da72 /functions.php | |
parent | befc807f838f69f73fd07282ba389784fac499ab (diff) |
feedlist display fixes for RTL
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 13 |
1 files changed, 10 insertions, 3 deletions
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 = "<img id=\"FIMG-$feed_id\" src=\"$icon_file\">"; @@ -693,6 +694,12 @@ $feed_icon = "<img id=\"FIMG-$feed_id\" src=\"images/blank_icon.gif\">"; } + if ($rtl_content) { + $rtl_tag = "dir=\"rtl\""; + } else { + $rtl_tag = "dir=\"ltr\""; + } + $feed = "<a href=\"javascript:viewfeed('$feed_id', 0);\">$feed_title</a>"; print "<li id=\"FEEDR-$feed_id\" class=\"$class\">"; @@ -700,7 +707,7 @@ print "$feed_icon"; } - print "<span id=\"FEEDN-$feed_id\">$feed</span>"; + print "<span $rtl_tag id=\"FEEDN-$feed_id\">$feed</span>"; if ($unread != 0) { $fctr_class = ""; @@ -708,7 +715,7 @@ $fctr_class = "class=\"invisible\""; } - print "<span $fctr_class id=\"FEEDCTR-$feed_id\"> + print " <span $rtl_tag $fctr_class id=\"FEEDCTR-$feed_id\"> (<span id=\"FEEDU-$feed_id\">$unread</span>)</span>"; print "</li>"; |