Plugin Directory

Changeset 478224


Ignore:
Timestamp:
12/20/2011 09:28:19 PM (14 years ago)
Author:
sproject
Message:

1.5.2 release

Location:
facebook-likes-you/trunk
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • facebook-likes-you/trunk/facebook-likes-you.php

    r428069 r478224  
    44Plugin URI: http://www.sproject.name/download/wp-facebook-likes-you/
    55Description: 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.1
     6Version: 1.5.2
    77Author: Piotr Sochalewski
    88Author URI: http://www.sproject.name/
     
    181181   
    182182    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    ';
    194191    }
    195192}
     
    371368        global $locale;
    372369       
    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>';
    374371       
    375372        if ($fb_like_settings['valid'])
     
    429426        if($fb_like_settings['xfbml']) {
    430427            /* 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>';
    432429           
    433430            if ($fb_like_settings['valid'])
     
    437434    </span>
    438435'; else
    439             echo '<div id="fb-root"></div><script src="http://connect.facebook.net/'.$locale.'/all.js#xfbml=1"></script>' . $fblikebox;
     436            echo $fblikebox;
    440437        }
    441438        else {
     
    448445                $height = 420;
    449446            elseif ( $stream && $showfaces )
    450                 $height = 556
     447                $height = 558
    451448            elseif ( $header && $showfaces )
    452                 $height = 285
     449                $height = 290
    453450            elseif ( $stream )
    454451                $height = 395;
    455452            elseif ( $showfaces )
    456                 $height = 250;
     453                $height = 258;
    457454            else $height = 62; 
    458455           
  • facebook-likes-you/trunk/readme.txt

    r428069 r478224  
    44Tags: 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
    55Requires at least: 2.9
    6 Tested up to: 3.2.1
    7 Stable tag: 1.5.1
     6Tested up to: 3.3
     7Stable tag: 1.5.2
    88
    99Facebook 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!
     
    1414
    1515* English<br />
     16* Belarusian (беларуская мова)<br />
    1617* Indonesian (Bahasa Indonesia)<br />
    1718* Italian (Italiano)<br />
     
    4647== Changelog ==
    4748
     49= 1.5.2 =
     50* Updated Facebook implementation
     51* Added Belarusian translation thanks to [Alexander Ovsov](http://webhostinggeeks.com/science/)
     52
    4853= 1.5.1 =
    4954* Fixed critical bug: really important if use Open Graph and have no app ID
Note: See TracChangeset for help on using the changeset viewer.