Changeset 21232
- Timestamp:
- Mar 6, 2013, 12:51:44 AM (12 years ago)
- Location:
- extensions/SocialButtons
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/SocialButtons/admin.php
r20374 r21232 11 11 $conf['SocialButtons'] = array( 12 12 'position' => $_POST['position'], 13 'on_index' => get_boolean($_POST['on_index']), 13 14 'twitter' => array( 14 15 'enabled' => isset($_POST['twitter']['enabled']), -
extensions/SocialButtons/include/install.inc.php
r20374 r21232 10 10 $default_config = array( 11 11 'position' => 'toolbar', 12 'on_index' => true, 12 13 'twitter' => array( 13 14 'enabled' => true, … … 64 65 { 65 66 $new_conf = unserialize($conf['SocialButtons']); 67 66 68 if (empty($new_conf['pinterest'])) 67 69 { … … 71 73 'img_size' => 'Original', 72 74 ); 73 $conf['SocialButtons'] = serialize($new_conf);74 conf_update_param('SocialButtons', $conf['SocialButtons']);75 75 } 76 if (!isset($new_conf['on_index'])) 77 { 78 $new_conf['on_index'] = true; 79 } 80 81 $conf['SocialButtons'] = serialize($new_conf); 82 conf_update_param('SocialButtons', $conf['SocialButtons']); 76 83 } 77 84 } -
extensions/SocialButtons/language/en_UK/plugin.lang.php
r20358 r21232 10 10 $lang['Right bubble'] = 'Right bubble'; 11 11 $lang['Top bubble'] = 'Top bubble'; 12 $lang['Display buttons'] = 'Display buttons'; 13 $lang['on photo and album pages'] = 'on photo and album pages'; 14 $lang['only on photo pages'] = 'only on photo pages'; 12 15 ?> -
extensions/SocialButtons/language/fr_FR/plugin.lang.php
r20358 r21232 12 12 $lang['Right bubble'] = 'Bulle à droite'; 13 13 $lang['Top bubble'] = 'Bulle en haut'; 14 $lang['Display buttons'] = 'Afficher les boutons'; 15 $lang['on photo and album'] = 'sur les photos et les albums'; 16 $lang['only on photo'] = 'uniquement sur les photos'; 14 17 ?> -
extensions/SocialButtons/main.inc.php
r20406 r21232 103 103 $share_url = $root_url.ltrim(duplicate_picture_url(), './'); 104 104 } 105 else if ($basename == 'index' )105 else if ($basename == 'index' and $conf['SocialButtons']['on_index']) 106 106 { 107 107 $conf['SocialButtons']['position'] = 'index'; … … 118 118 'share_url' => $share_url, 119 119 'position' => $conf['SocialButtons']['position'], 120 'copyright' => ' (from <a href="'.$ root_url.'">'.$conf['gallery_title'].'</a>)',120 'copyright' => ' (from <a href="'.$share_url.'">'.$conf['gallery_title'].'</a>)', 121 121 ); 122 122 $buttons = array(); … … 171 171 case 'index': 172 172 foreach ($buttons as $button) { 173 // $template->add_index_button('<li>'.$button.'</li>', 100); 174 $template->concat('PLUGIN_INDEX_ACTIONS', "\n<li>".$button."</li>"); 173 $template->add_index_button('<li>'.$button.'</li>', 100); 175 174 } 176 175 break; 177 176 case 'toolbar': 178 177 foreach ($buttons as $button) { 179 // $template->add_picture_button($button, 100); 180 $template->concat('PLUGIN_PICTURE_ACTIONS', "\n".$button); 178 $template->add_picture_button($button, 100); 181 179 } 182 180 break; … … 193 191 case 'top': 194 192 $search = '<div id="theImage">'; 195 $add = '<div>{foreach from=$SOCIALBUTT_BUTTONS item=BUTTON}{$BUTTON} {/foreach}</div>';193 $add = '<div>{foreach from=$SOCIALBUTT_BUTTONS item=BUTTON}{$BUTTON} {/foreach}</div>'; 196 194 break; 197 195 198 196 case 'bottom': 199 197 $search = '{$ELEMENT_CONTENT}'; 200 $add = '<div>{foreach from=$SOCIALBUTT_BUTTONS item=BUTTON}{$BUTTON} {/foreach}</div>';198 $add = '<div>{foreach from=$SOCIALBUTT_BUTTONS item=BUTTON}{$BUTTON} {/foreach}</div>'; 201 199 break; 202 200 } -
extensions/SocialButtons/template/admin.tpl
r20403 r21232 45 45 </td> 46 46 </tr> 47 <tr class="property"> 48 <td> 49 {'Display buttons'|@translate} 50 </td> 51 <td> 52 <label><input type="radio" name="on_index" value="true" {if $on_index}checked="checked"{/if}/> {'on photo and album'|@translate}</label><br> 53 <label><input type="radio" name="on_index" value="false" {if not $on_index}checked="checked"{/if}/> {'only on photo'|@translate}</label> 54 </td> 55 </tr> 47 56 </table> 48 57 </div> -
extensions/SocialButtons/template/facebook.tpl
r20406 r21232 5 5 {if $SOCIALBUTT.FACEBOOK.layout=='none'} 6 6 {html_style}{literal} 7 .fb-like span { height: 22px !important; overflow: hidden !important; margin-right:10px;}7 .fb-like span { height: 22px !important; overflow: hidden !important; } 8 8 .fb-like iframe { top: -41px; } 9 9 {/literal}{/html_style}
Note: See TracChangeset
for help on using the changeset viewer.