]> git.wh0rd.org - tt-rss.git/blobdiff - functions.php
support opening articles in new tab, misc fixes
[tt-rss.git] / functions.php
index 63f440999594c6099f29e4f4862128042403fdc9..08d3edfcf83f5c4e0deeec05579d4fd8464248e6 100644 (file)
                                        </head><body>";
                        }
 
+                       print "<div id=\"PTITLE-$id\" style=\"display : none\">" . 
+                               truncate_string(strip_tags($line['title']), 15) . "</div>";
 
-                       print "<div class=\"postReply\">";
+                       print "<div class=\"postReply\" id=\"POST-$id\">";
                        print "<div class=\"postHeader\">";
 
                        $entry_author = $line["author"];
                                print "<img src=\"".theme_image($link, 'images/art-zoom.png')."\" 
                                                class='tagsPic' style=\"cursor : pointer\"
                                                onclick=\"zoomToArticle($id)\"
-                                               alt='Zoom' title='".__('Show article summary in new window')."'>";
+                                               alt='Zoom' title='".__('Open article in new tab')."'>";
 
                                $note_escaped = htmlspecialchars($line['note'], ENT_QUOTES);
 
                                                alt='Zoom' title='".__('Forward by email')."'>";
                                }
 
+                               print "<img src=\"".theme_image($link, 'images/digest_checkbox.png')."\" 
+                                               class='tagsPic' style=\"cursor : pointer\"
+                                               onclick=\"closeArticlePanel()\"
+                                               alt='Zoom' title='".__('Close this panel')."'>";
+
                        } else {
                                $tags_str = strip_tags($tags_str);
                                print "<span id=\"ATSTR-$id\">$tags_str</span>";
                                                onmouseout='postMouseOut($id)'";
 
                                        print "<div class=\"$class\" 
-                                               id=\"RROW-$id\"                                         
+                                               id=\"RROW-$id\" onclick=\"return cdmClicked(event, $id);\"
+       
                                                $mouseover_attrs'>";
 
                                        print "<div class=\"cdmHeader\">";
                                        print "$published_pic";
 
                                        print "<span id=\"RTITLE-$id\" 
-                                               onclick=\"return cdmExpandArticle($id)\"
+                                               onclick=\"return false;\"
                                                class=\"titleWrap$hlc_suffix\">
                                                <a class=\"title\"
                                                target=\"_blank\" href=\"".$line["link"]."\">".$line["title"]."</a>
                                                $excerpt_hidden = "style=\"display : none\"";
 
                                        print "<span $excerpt_hidden
-                                               onclick=\"return cdmExpandArticle($id)\"
                                                id=\"CEXC-$id\" class=\"cdmExcerpt\"> - $content_preview</span>";
 
                                        print "</div>";
 
                                        print "<div class=\"cdmContent\" $content_hidden
-                                               onclick=\"return cdmClicked(event, $id);\"
                                                id=\"CICD-$id\">";
 
                                        print "<div class=\"cdmContentInner\">";
                                                onclick=\"zoomToArticle($id)\"
                                                style=\"cursor : pointer\"
                                                alt='Zoom' 
-                                               title='".__('Show article summary in new window')."'>";
+                                               title='".__('Open article in new tab')."'>";
 
                                        if (DIGEST_ENABLE) {
                                                print "<img src=\"".theme_image($link, 'images/art-email.png')."\"