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

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

improve facebook light link and clean code & conf

File size: 841 bytes
Line 
1{strip}
2{if not $SOCIALBUTT.light && $SOCIALBUTT.REDDIT.type == 'interactive'}
3  <script type="text/javascript">
4  reddit_url = "{$SOCIALBUTT.share_url|escape:javascript}";
5  reddit_title = "{$PAGE_TITLE|cat:' | '|cat:$GALLERY_TITLE|escape:javascript}";
6  reddit_target = "{$SOCIALBUTT.REDDIT.community|escape:javascript}";
7  reddit_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.