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

Revision 24871, 882 bytes checked in by mistic100, 6 years ago (diff)

force spaces between attributes (valid HTML)

Line 
1{strip}
2<a href="https://twitter.com/share?url={$SOCIALBUTT.share_url|urlencode}&text={$PAGE_TITLE|cat:' | '|cat:$GALLERY_TITLE|urlencode}{if $SOCIALBUTT.TWITTER.via}&via={$SOCIALBUTT.TWITTER.via}{/if}" rel="nofollow"
3{if $SOCIALBUTT.light}
4  {' '}onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=470,width=600');return false;" target="_blank"
5{else}
6  {' '}data-url="{$SOCIALBUTT.share_url}" data-lang="{$SOCIALBUTT.TWITTER.lang}" data-via="{$SOCIALBUTT.TWITTER.via}"
7  {' '}data-size="{$SOCIALBUTT.TWITTER.size}" data-count="{$SOCIALBUTT.TWITTER.count}" class="twitter-share-button"
8  {combine_script id='twitter_widgets' load='footer' path='https://platform.twitter.com/widgets.js'}
9{/if}
10><img src="{$ROOT_PATH}{$SOCIALBUTT_PATH}template/images/twitter_{$SOCIALBUTT.TWITTER.size}.png" alt="Share on Twitter"></a>
11{/strip}
Note: See TracBrowser for help on using the repository browser.