]> git.wh0rd.org Git - tt-rss.git/commitdiff
headline display fixes for RTL
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 22 Mar 2006 07:49:21 +0000 (08:49 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 22 Mar 2006 07:49:21 +0000 (08:49 +0100)
backend.php
tt-rss.css

index 88de4e3c0ced0bd57a2565a4b9230ea6daa7be84..b49c0aaa53741487b99e88c561f6c27e7dd5b749 100644 (file)
                }
 
                function print_headline_subtoolbar($link, $feed_site_url, $feed_title, 
-                                               $bottom = false) {
+                                               $bottom = false, $rtl_content = false) {
 
                        if (!$bottom) {
                                $class = "headlinesSubToolbar";
                        print "<table class=\"$class\" id=\"$tid\"
                                width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"><tr>";
 
+                       if ($rtl_content) {
+                               $rtl_cpart = "RTL";
+                       } else {
+                               $rtl_cpart = "";
+                       }
+
                        if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) {
 
-                               print "<td class=\"headlineActions\">
+                               print "<td class=\"headlineActions$rtl_cpart\">
                                        Select: 
                                                                <a href='#' onclick=\"javascript:selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', true, '', true)\">All</a>,
                                                                <a href='#' onclick=\"javascript:selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', true, 'Unread', true)\">Unread</a>,
 
                        } else {
 
-                               print "<td class=\"headlineActions\">
+                               print "<td class=\"headlineActions$rtl_cpart\">
                                        Select: 
                                                                <a href=\"#\" onclick=\"javascript:cdmSelectArticles('all')\">All</a>,
                                                                <a href=\"#\" onclick=\"javascript:cdmSelectArticles('unread')\">Unread</a>,
 
                        }
 
-                       print "<td class=\"headlineTitle\">";
+                       print "<td class=\"headlineTitle$rtl_cpart\">";
                
                        if ($feed_site_url) {
                                if (!$bottom) {
        
                if (db_num_rows($result) > 0) {
 
-                       print_headline_subtoolbar($link, $feed_site_url, $feed_title);
+                       print_headline_subtoolbar($link, $feed_site_url, $feed_title, false, 
+                               $rtl_content);
 
                        if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) {
                                print "<table class=\"headlinesList\" id=\"headlinesList\" 
index 2e5a2ccf5d3f2b0dabcc77c1cdbd8e23dfa6a335..35434ab5a11d41f409a0e8764a33531b97e22459 100644 (file)
@@ -754,6 +754,12 @@ table.headlinesSubToolbar td.headlineActions {
        padding : 5px 0px 5px 5px;
 }
 
+table.headlinesSubToolbar td.headlineActionsRTL {
+       font-size : x-small;
+       color : gray;
+       padding : 5px 5px 5px 0px;
+}
+
 table.headlinesSubToolbar td.headlineTitle {
        font-size : x-small;
        color : gray;
@@ -761,6 +767,13 @@ table.headlinesSubToolbar td.headlineTitle {
        text-align : right;
 }
 
+table.headlinesSubToolbar td.headlineTitleRTL {
+       font-size : x-small;
+       color : gray;
+       padding : 5px 0px 5px 5px;
+       text-align : left;
+}
+
 span.contentPreview {
        font-size : x-small;
        color : gray;