Line | |
---|
1 | {strip} |
---|
2 | {if $SOCIALBUTT.basename=='picture'} |
---|
3 | {capture assign="inline_tags"}{foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first},{/if}{$tag.name}{/foreach}{/capture} |
---|
4 | <a title="Share on tumblr" href="http://www.tumblr.com/share/photo?source={$SOCIALBUTT.source|urlencode}&caption={$PAGE_TITLE|cat:' '|cat:$SOCIALBUTT.copyright|urlencode}&clickthru={$SOCIALBUTT.share_url|urlencode}&tags={$inline_tags|urlencode}" |
---|
5 | {else} |
---|
6 | <a title="Share on tumblr" href="http://www.tumblr.com/share/link?url={$SOCIALBUTT.share_url|urlencode}&name={$PAGE_TITLE|cat:' | '|cat:$GALLERY_TITLE|urlencode}&description={$CONTENT_DESCRIPTION|cat:$SOCIALBUTT.copyright|urlencode}" |
---|
7 | {/if} |
---|
8 | {if $SOCIALBUTT.light} |
---|
9 | onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=430,width=500');return false;" target="_blank" rel="nofollow" |
---|
10 | {else} |
---|
11 | {combine_script id='tumblr_share' load='footer' path='http://platform.tumblr.com/v1/share.js'} |
---|
12 | {/if} |
---|
13 | ><img src="http://platform.tumblr.com/v1/{$SOCIALBUTT.TUMBLR.type}.png" alt="Tumblr"></a> |
---|
14 | {/strip} |
---|
Note: See
TracBrowser
for help on using the repository browser.