Files
Piwigo-Social-Buttons/template/google.tpl
mistic100 1fc993b7e6 typo in variable name
git-svn-id: http://piwigo.org/svn/extensions/SocialButtons@27274 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-02-09 10:06:38 +00:00

11 lines
893 B
Smarty

{strip}
{if $SOCIALBUTT.light}
<a title="Share on Google +" href="https://plus.google.com/share?url={$SOCIALBUTT.share_url|urlencode}&hl={$SOCIALBUTT.GOOGLE.lang}"
onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=390,width=480');return false;" target="_blank" rel="nofollow">
<img src="{$ROOT_URL}{$SOCIALBUTT_PATH}template/images/google_{$SOCIALBUTT.GOOGLE.size}.png" alt="Google+"></a>
{else}
{combine_script id='google_plusone' load='footer' path='https://apis.google.com/js/plusone.js'}
<script type="text/javascript">window.___gcfg = {ldelim}lang: '{$SOCIALBUTT.GOOGLE.lang}'};</script>
<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>
{/if}
{/strip}