Mercurial Hosting > nabble
diff src/nabble/modules/naml/social_tweet.naml @ 0:7ecd1a4ef557
add content
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 21 Mar 2019 19:15:52 -0600 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/nabble/modules/naml/social_tweet.naml Thu Mar 21 19:15:52 2019 -0600 @@ -0,0 +1,21 @@ +<macro name="tweet_button" requires="node"> + <span style="vertical-align:-5px"> + <iframe + src="[n.encode_url.]http://platform.twitter.com/widgets/tweet_button.html?url=[n.url/]&text=[n.subject/]&count=horizontal[/n.encode_url.]" + scrolling="no" + frameborder="0" + allowtransparency="true" + style="width:100px;height:20px"></iframe> + </span> +</macro> + +<override_macro name="topic_right_controls" requires="blog_topic_namespace"> + <n.page_node.tweet_button/> + + <n.overridden/> +</override_macro> + +<override_macro name="topic_controls_right" requires="forum_topic_namespace"> + <n.page_node.tweet_button/> + <n.overridden/> +</override_macro> \ No newline at end of file