diff options
author | Andrew Dolgov <[email protected]> | 2010-11-06 00:47:02 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-06 00:47:02 +0300 |
commit | 31a53903e635ae84ae1551d52772e75f2380b416 (patch) | |
tree | 0611e047ccca7c04d21aae64cffad3ed4ec3f1f9 /functions.php | |
parent | f0855b88af1ee551d6591eb64a9bdecb2f4a7833 (diff) |
add article forwarding by email (closes #271)
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/functions.php b/functions.php index a11d9e59c..18e7b23f1 100644 --- a/functions.php +++ b/functions.php @@ -4787,7 +4787,7 @@ print "<div class=\"postReply\">"; - print "<div class=\"postHeader\" onmouseover=\"enable_resize(true)\" + print "<div class=\"postHeader\" onmouseover=\"enable_resize(false)\" onmouseout=\"enable_resize(false)\">"; $entry_author = $line["author"]; @@ -4819,7 +4819,7 @@ if (!$zoom_mode) { print "<span id=\"ATSTR-$id\">$tags_str</span> <a title=\"".__('Edit tags for this article')."\" - href=\"javascript:editArticleTags($id, $feed_id)\">(+)</a>"; + href=\"#\" onclick=\"editArticleTags($id, $feed_id)\">(+)</a>"; print "<img src=\"".theme_image($link, 'images/art-zoom.png')."\" class='tagsPic' style=\"cursor : pointer\" style=\"cursor : pointer\" @@ -4833,6 +4833,13 @@ onclick=\"publishWithNote($id, '$note_escaped')\" alt='PubNote' title='".__('Publish article with a note')."'>"; + if (DIGEST_ENABLE) { + print "<img src=\"".theme_image($link, 'images/art-email.png')."\" + class='tagsPic' style=\"cursor : pointer\" style=\"cursor : pointer\" + onclick=\"emailArticle($id)\" + alt='Zoom' title='".__('Forward by email')."'>"; + } + } else { $tags_str = strip_tags($tags_str); print "<span id=\"ATSTR-$id\">$tags_str</span>"; @@ -6838,4 +6845,14 @@ print "<disable-cache value=\"1\"/>"; } + + function save_email_address($link, $email) { + // FIXME: implement persistent storage of emails + + if (!$_SESSION['stored_emails']) + $_SESSION['stored_emails'] = array(); + + if (!in_array($email, $_SESSION['stored_emails'])) + array_push($_SESSION['stored_emails'], $email); + } ?> |