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

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

force spaces between attributes (valid HTML)

File size: 899 bytes
Line 
1{strip}
2{if $SOCIALBUTT.light}
3  <a title="Google +" href="https://plus.google.com/share?url={$SOCIALBUTT.share_url|urlencode}&hl={$SOCIALBUTT.GOOGLE.lang}" rel="nofollow"
4    {' '}onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=390,width=480');return false;" target="_blank">
5    <img src="{$ROOT_PATH}{$SOCIALBUTT_PATH}template/images/google_{$SOCIALBUTT.GOOGLE.size}.png" alt="Share on Google+"></a>
6{else}
7  {combine_script id='google_plusone' load='footer' path='https://apis.google.com/js/plusone.js'}
8  <script type="text/javascript">window.___gcfg = {ldelim}lang: '{$SOCIALBUTT.GOOGLE.lang}'};</script>
9  <div style="display:inline-block;" class="g-plusone" data-size="{$SOCIALBUTT.GOOGLE.size}" data-annotation="{$SOCIALBUTT.GOOGLE.annotation}" data-href="{$SOCIALBUTT.share_url}" data-recommendations="false"></div>
10{/if}
11{/strip}
Note: See TracBrowser for help on using the repository browser.