Changeset 8216 for extensions
- Timestamp:
- Dec 21, 2010, 7:25:32 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/FacebookPlug/Plugin/picture.inc.php
r8215 r8216 48 48 var e = document.createElement(\'script\'); 49 49 {/literal} 50 e.src = document.location.protocol + \'//connect.facebook.net/{$ language}/all.js\';50 e.src = document.location.protocol + \'//connect.facebook.net/{$LANGUAGE}/all.js\'; 51 51 {literal} 52 52 e.async = true; … … 68 68 {rdelim}); 69 69 </script> 70 <script src="http://connect.facebook.net/{$ language}/all.js#xfbml=1"></script>70 <script src="http://connect.facebook.net/{$LANGUAGE}/all.js#xfbml=1"></script> 71 71 '; 72 /*$fbp_content .= ' 73 <fb:like href="{$SRC_IMG}" show_faces="true" width="{$WIDTH_IMG}"></fb:like> 74 ';*/ 72 75 $fbp_content .= ' 73 <fb:like href="{$ SRC_IMG}" show_faces="true" width="{$WIDTH_IMG}"></fb:like>76 <fb:like href="{$FBP_URL_PICTURE}" show_faces="true" width="{$WIDTH_IMG}"></fb:like> 74 77 '; 78 75 79 return $content.$fbp_content; 76 80 } … … 78 82 function fbp_loc_begin_picture() 79 83 { 80 global $template, $user ;84 global $template, $user, $page; 81 85 82 86 // set prefilter … … 84 88 $template->set_prefilter('default_content', 'fbp_AddSocial'); 85 89 // Always use full url for FB social plugin 90 //~ set_make_full_url(); 91 // define language 92 $template->assign('LANGUAGE', $user['language']); 93 // define picture FB link 86 94 set_make_full_url(); 87 // define language88 $template->assign('language', $user['language']);95 $template->assign('FBP_URL_PICTURE', make_picture_url(array('image_id' => $page['image_id']))); 96 unset_make_full_url(); 89 97 } 90 98 … … 92 100 { 93 101 // Restore url 94 unset_make_full_url();102 //~ unset_make_full_url(); 95 103 } 96 104
Note: See TracChangeset
for help on using the changeset viewer.