Changeset 19396


Ignore:
Timestamp:
Dec 11, 2012, 5:15:15 PM (8 years ago)
Author:
mistic100
Message:

compatible with 'question_mark_in_url'=false, use W3C valid syntax

Location:
extensions/GooglePlusOne
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/GooglePlusOne/button.tpl

    r19363 r19396  
    11{combine_script id='google_plusone' load='footer' path='https://apis.google.com/js/plusone.js'}
    22<script type="text/javascript">window.___gcfg = {ldelim}lang: '{$GPLUS1_LANG}'};</script>
    3 <g:plusone size="{$GPLUS1_SIZE}" annotation="{$GPLUS1_ANNO}"></g:plusone>
     3<div class="g-plusone" data-size="{$GPLUS1_SIZE}" data-annotation="{$GPLUS1_ANNO}" data-href="{$GPLUS1_URL}"></div>
  • extensions/GooglePlusOne/main.inc.php

    r19363 r19396  
    2929    );
    3030 
    31   // position for index
    32   if (script_basename() == 'index')
     31  // urls and position
     32  if (script_basename() == 'picture')
     33  {
     34    $template->assign('GPLUS1_URL', get_absolute_root_url().ltrim(duplicate_picture_url(), './'));
     35  }
     36  else if (script_basename() == 'index')
    3337  {
    3438    $conf['GooglePlusOne']['position'] = 'index';
     39    $template->assign('GPLUS1_URL', get_absolute_root_url().ltrim(duplicate_index_url(array(), array('start')), './'));
     40  }
     41  else
     42  {
     43    return;
    3544  }
    3645 
Note: See TracChangeset for help on using the changeset viewer.