Changeset 23201 for extensions/SocialButtons/main.inc.php
- Timestamp:
- Jun 14, 2013, 12:43:50 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/SocialButtons/main.inc.php
r21232 r23201 97 97 98 98 $basename = script_basename(); 99 set_make_full_url(); 99 100 $root_url = get_absolute_root_url(); 100 101 101 102 if ($basename == 'picture') 102 103 { 103 $share_url = $root_url.ltrim(duplicate_picture_url(), './'); 104 // global $picture; 105 106 // if ($picture['current']['level'] > 0) return; 107 108 $share_url = duplicate_picture_url(); 104 109 } 105 110 else if ($basename == 'index' and $conf['SocialButtons']['on_index']) 106 111 { 107 112 $conf['SocialButtons']['position'] = 'index'; 108 $share_url = $root_url.ltrim(duplicate_index_url(array(), array('start')), './');113 $share_url = duplicate_index_url(array(), array('start')); 109 114 } 110 115 else … … 118 123 'share_url' => $share_url, 119 124 'position' => $conf['SocialButtons']['position'], 120 'copyright' => ' 125 'copyright' => '(from <a href="'.$share_url.'">'.$conf['gallery_title'].'</a>)', 121 126 ); 122 127 $buttons = array(); … … 148 153 socialbutt_pinterest($basename, $root_url, $tpl_vars, $buttons); 149 154 } 155 156 unset_make_full_url(); 150 157 151 158 if (empty($buttons))
Note: See TracChangeset
for help on using the changeset viewer.