summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-19 21:20:59 +0300
committerAndrew Dolgov <[email protected]>2010-11-19 21:20:59 +0300
commitbc372fe30fecfbf4a6d831b23480c057a989c79a (patch)
tree1876a75863ac5bcd1c7cf678dc39cb0aa280f458 /functions.php
parentca07f49ee0b746b763228dcb27e58ebbef1ddc7a (diff)
add post header menu
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php15
1 files changed, 12 insertions, 3 deletions
diff --git a/functions.php b/functions.php
index dd42ea4fc..70da5ab33 100644
--- a/functions.php
+++ b/functions.php
@@ -4622,9 +4622,18 @@
truncate_string(strip_tags($line['title']), 15) . "</div>";
print "<div class=\"postReply\" id=\"POST-$id\">";
- print "<div
- onclick=\"return postClicked(event, $id)\"
- class=\"postHeader\">";
+
+ print "<div dojoType=\"dijit.Menu\" style=\"display: none;\"
+ targetNodeIds=\"POSTHDR-$id\">";
+ print "<div onclick=\"postOpenInNewTab(event, $id)\"
+ dojoType=\"dijit.MenuItem\">".__('View in a new tab')."</div>";
+ print "<div dojoType=\"dijit.MenuSeparator\"></div>";
+ print "<div onclick=\"openArticleInNewWindow($id)\"
+ dojoType=\"dijit.MenuItem\">".__('Open original article')."</div>";
+ print "</div>";
+
+ print "<div onclick=\"return postClicked(event, $id)\"
+ class=\"postHeader\" id=\"POSTHDR-$id\">";
$entry_author = $line["author"];