source: extensions/SocialButtons/template/reddit.tpl @ 24758

Last change on this file since 24758 was 24758, checked in by mistic100, 11 years ago

add reddit button

File size: 823 bytes
Line 
1{strip}
2{if not $SOCIALBUTT.light && $SOCIALBUTT.REDDIT.type == 'interactive'}
3<script type="text/javascript">
4reddit_url = "{$SOCIALBUTT.share_url|escape:javascript}";
5reddit_title = "{$PAGE_TITLE|cat:' | '|cat:$GALLERY_TITLE|escape:javascript}";
6reddit_target = "{$SOCIALBUTT.REDDIT.community|escape:javascript}";
7reddit_newwindow = 1;
8</script>
9<script type="text/javascript" src="http://{$SOCIALBUTT.REDDIT.lang}.reddit.com/static/button/button1.js"></script>
10{else}
11<a href="http://{$SOCIALBUTT.REDDIT.lang}.reddit.com/submit?url={$SOCIALBUTT.share_url|urlencode}&title={$PAGE_TITLE|cat:' | '|cat:$GALLERY_TITLE|urlencode}&target={$SOCIALBUTT.REDDIT.community|urlencode}" rel="nofollow" target="_blank">
12  <img src="http://www.reddit.com/static/{$SOCIALBUTT.REDDIT.type}.gif" alt="Submit to reddit"></a>
13{/if}
14{/strip}
Note: See TracBrowser for help on using the repository browser.