summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-16 14:43:43 +0300
committerAndrew Dolgov <[email protected]>2010-11-16 14:43:43 +0300
commit6f3976c9a3a0409b16d1125802b88651213b0aae (patch)
tree8e054d61d4eabf671a4f6582c274d537f5758745 /functions.php
parent07bb58c7217cdcdc89d7209780c0f6b952e70e7e (diff)
support opening articles in new tab, misc fixes
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php20
1 files changed, 13 insertions, 7 deletions
diff --git a/functions.php b/functions.php
index 63f440999..08d3edfcf 100644
--- a/functions.php
+++ b/functions.php
@@ -4577,8 +4577,10 @@
</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"];
@@ -4615,7 +4617,7 @@
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);
@@ -4631,6 +4633,11 @@
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>";
@@ -5083,7 +5090,8 @@
onmouseout='postMouseOut($id)'";
print "<div class=\"$class\"
- id=\"RROW-$id\"
+ id=\"RROW-$id\" onclick=\"return cdmClicked(event, $id);\"
+
$mouseover_attrs'>";
print "<div class=\"cdmHeader\">";
@@ -5108,7 +5116,7 @@
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>
@@ -5123,13 +5131,11 @@
$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\">";
@@ -5220,7 +5226,7 @@
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')."\"