0
|
1 <override_macro name="post_dropdown" requires="node">
|
|
2 <n.dropdown.
|
|
3 id="postdropdown[n.id/]"
|
|
4 text="[t]More[/t]"
|
|
5 title="[t]Click for more options[/t]"
|
|
6 loadOnClick="/template/NamlServlet.jtp?macro=post_dropdown_later&node=[n.id/]"
|
|
7 >
|
|
8 <n.menu_reply_to_author/>
|
|
9 <n.menu_edit_post/>
|
|
10 <n.menu_move_post/>
|
|
11 <n.menu_delete_post/>
|
|
12 <n.menu_change_post_date/>
|
|
13 <n.menu_print_post/>
|
|
14 <n.menu_permalink/>
|
|
15 <n.menu_raw_mail/>
|
|
16 <n.menu_social/>
|
|
17 </n.dropdown.>
|
|
18 </override_macro>
|
|
19
|
|
20 <override_macro name="root_post_dropdown" requires="node">
|
|
21 <n.dropdown.
|
|
22 id="rootdropdown[n.id/]"
|
|
23 text="[t]Options[/t]"
|
|
24 title="[t]Click for more options[/t]"
|
|
25 loadOnClick="/template/NamlServlet.jtp?macro=root_post_dropdown_later&node=[n.id/]"
|
|
26 >
|
|
27 <n.menu_topic_subscription/>
|
|
28 <n.menu_reply_to_author/>
|
|
29 <n.menu_edit_post/>
|
|
30 <n.menu_move_post/>
|
|
31 <n.menu_delete_topic/>
|
|
32 <n.menu_pin_topic/>
|
|
33 <n.menu_unpin_topic/>
|
|
34 <n.menu_lock_topic/>
|
|
35 <n.menu_unlock_topic/>
|
|
36 <n.menu_change_post_date/>
|
|
37 <n.menu_change_title_and_meta_tags/>
|
|
38 <n.menu_embed_post/>
|
|
39 <n.menu_print_post/>
|
|
40 <n.menu_permalink/>
|
|
41 <n.menu_raw_mail/>
|
|
42 <n.menu_social/>
|
|
43 </n.dropdown.>
|
|
44 </override_macro>
|
|
45
|
|
46 <macro name="menu_social" requires="node">
|
|
47 <n.if.not.app_or_root.is_private>
|
|
48 <then>
|
|
49 <n.set_var. name='links'>
|
|
50 <n.regex_replace_all. pattern="src=" replacement="s'+'rc=">
|
|
51 <n.javascript_string_encode.compress.>
|
|
52 <n.social_twitter/>
|
|
53 <n.social_facebook/>
|
|
54 <n.social_delicious/>
|
|
55 <n.social_google/>
|
|
56 <n.social_stumbleupon/>
|
|
57 <n.social_linkedin/>
|
|
58 <n.social_digg/>
|
|
59 </n.javascript_string_encode.compress.>
|
|
60 </n.regex_replace_all.>
|
|
61 </n.set_var.>
|
|
62 dropdown.add('social<n.id/>', '<n.var name='links'/>','white-space:nowrap');
|
|
63 </then>
|
|
64 </n.if.not.app_or_root.is_private>
|
|
65 </macro>
|
|
66
|
|
67 <macro name="social_img_style">
|
|
68 width:16px;height:16px;margin-top:.2em;border:none;
|
|
69 </macro>
|
|
70
|
|
71 <macro name="social_facebook" requires="node">
|
|
72 <a href="[n.encode_url.]http://www.facebook.com/share.php?v=4&src=bm&u=[n.url/]&t=[n.subject/][/n.encode_url.]" title="Facebook" target="_blank" ignore="y">
|
|
73 <img src="/images/social/facebook.png" style="[n.social_img_style/]"/>
|
|
74 </a>
|
|
75 </macro>
|
|
76
|
|
77 <macro name="social_twitter" requires="node">
|
|
78 <a href="[n.encode_url.]http://twitter.com/share?text=[n.subject/]&related=[n.root_node.subject/]&url=[n.url/][/n.encode_url.]" title="Twitter" target="_blank" ignore="y">
|
|
79 <img src="/images/social/twitter.png" style="[n.social_img_style/]"/>
|
|
80 </a>
|
|
81 </macro>
|
|
82
|
|
83 <macro name="social_delicious" requires="node">
|
|
84 <a href="[n.encode_url.]http://del.icio.us/post?url=[n.url/]&title=[n.subject/][/n.encode_url.]" title="Delicious" target="_blank" ignore="y">
|
|
85 <img src="/images/social/delicious.png" style="[n.social_img_style/]"/>
|
|
86 </a>
|
|
87 </macro>
|
|
88
|
|
89 <macro name="social_digg" requires="node">
|
|
90 <a href="[n.encode_url.]http://digg.com/submit?phase=2&url=[n.url/]&title=[n.subject/][/n.encode_url.]" title="Digg" target="_blank" ignore="y">
|
|
91 <img src="/images/social/digg.png" style="[n.social_img_style/]"/>
|
|
92 </a>
|
|
93 </macro>
|
|
94
|
|
95 <macro name="social_stumbleupon" requires="node">
|
|
96 <a href="[n.encode_url.]http://www.stumbleupon.com/submit?url=[n.url/]&title=[n.subject/][/n.encode_url.]" title="Stumble Upon" target="_blank" ignore="y">
|
|
97 <img src="/images/social/stumbleupon.png" style="[n.social_img_style/]"/>
|
|
98 </a>
|
|
99 </macro>
|
|
100
|
|
101 <macro name="social_google" requires="node">
|
|
102 <a href="[n.encode_url.]http://www.google.com/bookmarks/mark?op=add&bkmk=[n.url/]&title=[n.subject/][/n.encode_url.]" title="Google Bookmarks" target="_blank" ignore="y">
|
|
103 <img src="/images/social/google.png" style="[n.social_img_style/]"/>
|
|
104 </a>
|
|
105 </macro>
|
|
106
|
|
107 <macro name="social_linkedin" requires="node">
|
|
108 <a href="[n.encode_url.]http://www.linkedin.com/shareArticle?mini=true&url=[n.url/]&title=[n.url/]&source=[n.root_node.subject/][/n.encode_url.]" title="LinkedIn" target="_blank" ignore="y">
|
|
109 <img src="/images/social/linkedin.png" style="[n.social_img_style/]"/>
|
|
110 </a>
|
|
111 </macro> |