Changeset 19396 for extensions/GooglePlusOne
- Timestamp:
- Dec 11, 2012, 5:15:15 PM (11 years ago)
- Location:
- extensions/GooglePlusOne
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GooglePlusOne/button.tpl
r19363 r19396 1 1 {combine_script id='google_plusone' load='footer' path='https://apis.google.com/js/plusone.js'} 2 2 <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 29 29 ); 30 30 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') 33 37 { 34 38 $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; 35 44 } 36 45
Note: See TracChangeset
for help on using the changeset viewer.