Last change
on this file since 22179 was
20406,
checked in by mistic100, 12 years ago
|
simplyfy code, add noscript fallback for twitter
|
File size:
845 bytes
|
Line | |
---|
1 | {strip} |
---|
2 | {combine_script id='tumblr_share' load='footer' path='http://platform.tumblr.com/v1/share.js'} |
---|
3 | |
---|
4 | {if $SOCIALBUTT.TUMBLR.mode=='photo'} |
---|
5 | {capture assign="inline_tags"}{foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first},{/if}{$tag.name}{/foreach}{/capture} |
---|
6 | <a href="http://www.tumblr.com/share/photo?source={$SOCIALBUTT.TUMBLR.source|urlencode}&caption={$SOCIALBUTT.TUMBLR.title|cat:$SOCIALBUTT.copyright|urlencode}&clickthru={$SOCIALBUTT.share_url|urlencode}&tags={$inline_tags|urlencode}" |
---|
7 | {else} |
---|
8 | <a href="http://www.tumblr.com/share/link?url={$SOCIALBUTT.share_url|urlencode}&name={$SOCIALBUTT.TUMBLR.title|urlencode}&description={$CONTENT_DESCRIPTION|cat:$SOCIALBUTT.copyright|urlencode}" |
---|
9 | {/if} |
---|
10 | ><img src="http://platform.tumblr.com/v1/{$SOCIALBUTT.TUMBLR.type}.png" alt="Share on Tumblr"></a> |
---|
11 | {/strip} |
---|
Note: See
TracBrowser
for help on using the repository browser.