Changeset 478224
- Timestamp:
- 12/20/2011 09:28:19 PM (14 years ago)
- Location:
- facebook-likes-you/trunk
- Files:
-
- 2 added
- 2 edited
-
facebook-likes-you.php (modified) (6 diffs)
-
languages/fb_like_trans_domain-be_BY.mo (added)
-
languages/fb_like_trans_domain-be_BY.po (added)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
facebook-likes-you/trunk/facebook-likes-you.php
r428069 r478224 4 4 Plugin URI: http://www.sproject.name/download/wp-facebook-likes-you/ 5 5 Description: Facebook Likes You! is simple plugin which makes it easy to add Facebook Like button and widgetable Like box. It's fully configurable, so you can decide where to append the button. 6 Version: 1.5. 16 Version: 1.5.2 7 7 Author: Piotr Sochalewski 8 8 Author URI: http://www.sproject.name/ … … 181 181 182 182 echo ' <div id="fb-root"></div> 183 <script type="text/javascript"> 184 window.fbAsyncInit = function() { 185 FB.init({appId: ' . fb_like_return_appid() . ', status: true, cookie: true, xfbml: true}); 186 }; 187 (function() { 188 var e = document.createElement(\'script\'); e.async = true; 189 e.src = document.location.protocol + \'//connect.facebook.net/' . $locale . '/all.js\'; 190 document.getElementById(\'fb-root\').appendChild(e); 191 }()); 192 </script> 193 '; 183 <script>(function(d, s, id) { 184 var js, fjs = d.getElementsByTagName(s)[0]; 185 if (d.getElementById(id)) return; 186 js = d.createElement(s); js.id = id; 187 js.src = "//connect.facebook.net/pl_PL/all.js#xfbml=1&appId=' . fb_like_return_appid() . '"; 188 fjs.parentNode.insertBefore(js, fjs); 189 }(document, \'script\', \'facebook-jssdk\'));</script> 190 '; 194 191 } 195 192 } … … 371 368 global $locale; 372 369 373 $fblike = '< fb:like href="' . get_permalink() . '" send="' . (($fb_like_settings['send']=='true')?'true':'false') . '" layout="' . $fb_like_settings['layout'] . '" width="' . $fb_like_settings['width'] . '" show_faces="'. (($fb_like_settings['showfaces']=='true')?'true':'false') . '" action="' . $fb_like_settings['verb'] . '"' . (($fb_like_settings['colorscheme']=='dark')?' colorscheme="dark" ':'') . ' font="' . $fb_like_settings['font'] . '" style="margin: ' . $margin . ';' . (($fb_like_settings['css_style']!='') ? ' ' . $fb_like_settings['css_style'] : '') . '"></fb:like>';370 $fblike = '<div class="fb-like" data-href="' . get_permalink() . '" data-send="' . (($fb_like_settings['send']=='true')?'true':'false') . '" data-layout="' . $fb_like_settings['layout'] . '" data-width="' . $fb_like_settings['width'] . '" show_faces="'. (($fb_like_settings['showfaces']=='true')?'true':'false') . '" data-action="' . $fb_like_settings['verb'] . '"' . (($fb_like_settings['colorscheme']=='dark')?' data-colorscheme="dark" ':'') . ' data-font="' . $fb_like_settings['font'] . '" style="margin: ' . $margin . ';' . (($fb_like_settings['css_style']!='') ? ' ' . $fb_like_settings['css_style'] : '') . '"></div>'; 374 371 375 372 if ($fb_like_settings['valid']) … … 429 426 if($fb_like_settings['xfbml']) { 430 427 /* XFBML VERSION OF LIKE BOX */ 431 $fblikebox = '< fb:like-box href="' . $url . '" width="' . $width . '"' . ($fb_like_settings['colorscheme']=="dark" ? ' colorscheme="dark"' : '') . ' show_faces="' . ($showfaces ? 'true' : 'false') . '" border_color="" stream="' . ($stream ? 'true' : 'false') . '" header="' . ($header ? 'true' : 'false') . '"></fb:like-box>';428 $fblikebox = '<div class="fb-like-box" data-href="' . $url . '" data-width="' . $width . '"' . ($fb_like_settings['colorscheme']=="dark" ? ' data-colorscheme="dark"' : '') . ' data-show-faces="' . ($showfaces ? 'true' : 'false') . '" data-stream="' . ($stream ? 'true' : 'false') . '" data-header="' . ($header ? 'true' : 'false') . '"></div>'; 432 429 433 430 if ($fb_like_settings['valid']) … … 437 434 </span> 438 435 '; else 439 echo '<div id="fb-root"></div><script src="http://connect.facebook.net/'.$locale.'/all.js#xfbml=1"></script>' .$fblikebox;436 echo $fblikebox; 440 437 } 441 438 else { … … 448 445 $height = 420; 449 446 elseif ( $stream && $showfaces ) 450 $height = 55 6;447 $height = 558; 451 448 elseif ( $header && $showfaces ) 452 $height = 2 85;449 $height = 290; 453 450 elseif ( $stream ) 454 451 $height = 395; 455 452 elseif ( $showfaces ) 456 $height = 25 0;453 $height = 258; 457 454 else $height = 62; 458 455 -
facebook-likes-you/trunk/readme.txt
r428069 r478224 4 4 Tags: facebook, like, button, share, social, facebook like button, facebook like, facebook like box, like box, facebook send button, send button, google +1, google +1 button, widget 5 5 Requires at least: 2.9 6 Tested up to: 3. 2.17 Stable tag: 1.5. 16 Tested up to: 3.3 7 Stable tag: 1.5.2 8 8 9 9 Facebook Likes You! is simple plugin which makes it easy to add Like Button and widgetable Like Box. Google +1 Button isn't a problem too! … … 14 14 15 15 * English<br /> 16 * Belarusian (беларуская мова)<br /> 16 17 * Indonesian (Bahasa Indonesia)<br /> 17 18 * Italian (Italiano)<br /> … … 46 47 == Changelog == 47 48 49 = 1.5.2 = 50 * Updated Facebook implementation 51 * Added Belarusian translation thanks to [Alexander Ovsov](http://webhostinggeeks.com/science/) 52 48 53 = 1.5.1 = 49 54 * Fixed critical bug: really important if use Open Graph and have no app ID
Note: See TracChangeset
for help on using the changeset viewer.