summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-29 20:25:51 +0300
committerAndrew Dolgov <[email protected]>2010-11-29 20:36:39 +0300
commit741b60909ffcf67475c5ea7f66c6e870584d2b59 (patch)
tree8cfa76e163d58b992f02edb94c844deedb5327dd /functions.php
parent359866ab266a6339a00bf2a1320762fc857fc39f (diff)
tweak article notes
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php33
1 files changed, 13 insertions, 20 deletions
diff --git a/functions.php b/functions.php
index 01785e38c..7c12d538d 100644
--- a/functions.php
+++ b/functions.php
@@ -4617,12 +4617,12 @@
onclick=\"postOpenInNewTab(event, $id)\"
alt='Zoom' title='".__('Open article in new tab')."'>";
- $note_escaped = htmlspecialchars($line['note'], ENT_QUOTES);
+ //$note_escaped = htmlspecialchars($line['note'], ENT_QUOTES);
print "<img src=\"".theme_image($link, 'images/art-pub-note.png')."\"
class='tagsPic' style=\"cursor : pointer\"
- onclick=\"publishWithNote($id, '$note_escaped')\"
- alt='PubNote' title='".__('Publish article with a note')."'>";
+ onclick=\"editArticleNote($id)\"
+ alt='PubNote' title='".__('Edit article note')."'>";
if (DIGEST_ENABLE) {
print "<img src=\"".theme_image($link, 'images/art-email.png')."\"
@@ -4684,17 +4684,17 @@
href=\"".htmlspecialchars($feed_site_url)."\">".
$feed_icon . "</a></div>";
- print "<div class=\"postContent\">";
-
- $article_content = sanitize_rss($link, $line["content"], false, false,
- $feed_site_url);
-
print "<div id=\"POSTNOTE-$id\">";
if ($line['note']) {
print format_article_note($id, $line['note']);
}
print "</div>";
+ print "<div class=\"postContent\">";
+
+ $article_content = sanitize_rss($link, $line["content"], false, false,
+ $feed_site_url);
+
print $article_content;
print_article_enclosures($link, $id, $always_display_enclosures,
@@ -5234,12 +5234,12 @@
alt='Zoom'
title='".__('Open article in new tab')."'>";
- $note_escaped = htmlspecialchars($line['note'], ENT_QUOTES);
+ //$note_escaped = htmlspecialchars($line['note'], ENT_QUOTES);
print "<img src=\"images/art-pub-note.png\"
style=\"cursor : pointer\" style=\"cursor : pointer\"
- onclick=\"publishWithNote($id, '$note_escaped')\"
- alt='PubNote' title='".__('Publish article with a note')."'>";
+ onclick=\"editArticleNote($id)\"
+ alt='PubNote' title='".__('Edit article note')."'>";
if (DIGEST_ENABLE) {
print "<img src=\"".theme_image($link, 'images/art-email.png')."\"
@@ -6209,15 +6209,8 @@
function format_article_note($id, $note) {
- $note_escaped = htmlspecialchars($note, ENT_QUOTES);
-
- $str = "<div class='articleNote'>";
- $str .= $note;
- $str .= "<div class='articleNoteOps'>";
- $str .= "<a href=\"javascript:publishWithNote($id, '$note_escaped')\">".
- __('edit note')."</a>";
- $str .= "</div>";
- $str .= "</div>";
+ $str = "<div class='articleNote' title=\"".__('edit note')."\"
+ onclick=\"editArticleNote($id)\">$note</div>";
return $str;
}