headline display fixes for RTL
This commit is contained in:
parent
9323147e6e
commit
c1c9df00e1
2 changed files with 25 additions and 5 deletions
17
backend.php
17
backend.php
|
@ -1550,7 +1550,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function print_headline_subtoolbar($link, $feed_site_url, $feed_title,
|
function print_headline_subtoolbar($link, $feed_site_url, $feed_title,
|
||||||
$bottom = false) {
|
$bottom = false, $rtl_content = false) {
|
||||||
|
|
||||||
if (!$bottom) {
|
if (!$bottom) {
|
||||||
$class = "headlinesSubToolbar";
|
$class = "headlinesSubToolbar";
|
||||||
|
@ -1563,9 +1563,15 @@
|
||||||
print "<table class=\"$class\" id=\"$tid\"
|
print "<table class=\"$class\" id=\"$tid\"
|
||||||
width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"><tr>";
|
width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"><tr>";
|
||||||
|
|
||||||
|
if ($rtl_content) {
|
||||||
|
$rtl_cpart = "RTL";
|
||||||
|
} else {
|
||||||
|
$rtl_cpart = "";
|
||||||
|
}
|
||||||
|
|
||||||
if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) {
|
if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) {
|
||||||
|
|
||||||
print "<td class=\"headlineActions\">
|
print "<td class=\"headlineActions$rtl_cpart\">
|
||||||
Select:
|
Select:
|
||||||
<a href='#' onclick=\"javascript:selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', true, '', true)\">All</a>,
|
<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>,
|
<a href='#' onclick=\"javascript:selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', true, 'Unread', true)\">Unread</a>,
|
||||||
|
@ -1577,7 +1583,7 @@
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
print "<td class=\"headlineActions\">
|
print "<td class=\"headlineActions$rtl_cpart\">
|
||||||
Select:
|
Select:
|
||||||
<a href=\"#\" onclick=\"javascript:cdmSelectArticles('all')\">All</a>,
|
<a href=\"#\" onclick=\"javascript:cdmSelectArticles('all')\">All</a>,
|
||||||
<a href=\"#\" onclick=\"javascript:cdmSelectArticles('unread')\">Unread</a>,
|
<a href=\"#\" onclick=\"javascript:cdmSelectArticles('unread')\">Unread</a>,
|
||||||
|
@ -1590,7 +1596,7 @@
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
print "<td class=\"headlineTitle\">";
|
print "<td class=\"headlineTitle$rtl_cpart\">";
|
||||||
|
|
||||||
if ($feed_site_url) {
|
if ($feed_site_url) {
|
||||||
if (!$bottom) {
|
if (!$bottom) {
|
||||||
|
@ -1608,7 +1614,8 @@
|
||||||
|
|
||||||
if (db_num_rows($result) > 0) {
|
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')) {
|
if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) {
|
||||||
print "<table class=\"headlinesList\" id=\"headlinesList\"
|
print "<table class=\"headlinesList\" id=\"headlinesList\"
|
||||||
|
|
13
tt-rss.css
13
tt-rss.css
|
@ -754,6 +754,12 @@ table.headlinesSubToolbar td.headlineActions {
|
||||||
padding : 5px 0px 5px 5px;
|
padding : 5px 0px 5px 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table.headlinesSubToolbar td.headlineActionsRTL {
|
||||||
|
font-size : x-small;
|
||||||
|
color : gray;
|
||||||
|
padding : 5px 5px 5px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
table.headlinesSubToolbar td.headlineTitle {
|
table.headlinesSubToolbar td.headlineTitle {
|
||||||
font-size : x-small;
|
font-size : x-small;
|
||||||
color : gray;
|
color : gray;
|
||||||
|
@ -761,6 +767,13 @@ table.headlinesSubToolbar td.headlineTitle {
|
||||||
text-align : right;
|
text-align : right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table.headlinesSubToolbar td.headlineTitleRTL {
|
||||||
|
font-size : x-small;
|
||||||
|
color : gray;
|
||||||
|
padding : 5px 0px 5px 5px;
|
||||||
|
text-align : left;
|
||||||
|
}
|
||||||
|
|
||||||
span.contentPreview {
|
span.contentPreview {
|
||||||
font-size : x-small;
|
font-size : x-small;
|
||||||
color : gray;
|
color : gray;
|
||||||
|
|
Loading…
Reference in a new issue