source: extensions/TumblrShare/button.tpl @ 31142

Last change on this file since 31142 was 19361, checked in by mistic100, 12 years ago

first commit

File size: 916 bytes
Line 
1{combine_script id='tumblr_share' load='footer' path='http://platform.tumblr.com/v1/share.js'}
2
3{if $TUMBLR_MODE=='photo'}
4{capture assign="inline_tags"}{foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first},{/if}{$tag.name}{/foreach}{/capture}
5<a href="http://www.tumblr.com/share/photo?source={$TUMBLR_SOURCE|urlencode}&caption={$TUMBLR_TITLE|urlencode}{$TUMBLR_COPY|urlencode}&clickthru={$TUMBLR_URL|urlencode}&tags={$inline_tags|urlencode}"
6{else}
7<a href="http://www.tumblr.com/share/link?url={$TUMBLR_URL|urlencode}&name={$TUMBLR_TITLE|urlencode}&description={$CONTENT_DESCRIPTION|urlencode}{$TUMBLR_COPY|urlencode}"
8{/if}
9title="{'Share on Tumblr'|@translate}" style="display:inline-block; text-indent:-9999px; overflow:hidden; {$TUMBLR_CSS} background:url('http://platform.tumblr.com/v1/{$TUMBLR_TYPE}.png') top left no-repeat transparent;">{'Share on Tumblr'|@translate}</a>
Note: See TracBrowser for help on using the repository browser.