Plugin Directory

Changeset 511614


Ignore:
Timestamp:
02/28/2012 10:42:40 AM (14 years ago)
Author:
russoedu
Message:

Display bug corrections

Location:
styled-facebook-like-box/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • styled-facebook-like-box/trunk/readme.txt

    r506898 r511614  
    44Requires at least: 2.5
    55Tested up to: 3.3.1
    6 Stable tag: 1.2
     6Stable tag: 1.3
    77
    88Displays a Facebook Like Box with options for border color, backgound color and a field to ajust the div via custom css styles such as positioning, border radius etc. Observe that some default Facebook styles, such as border, can't be overwriten.
    9 
    10 This plugin is based on Marcos Esperon's Facebook Like Box
    119
    1210== Installation ==
     
    3533
    3634= 1.2 =
    37 * Corrected facebook JS
     35* Corrected Facebook JS
     36
     37= 1.3 =
     38* Corrected an bug that caused Widgets after this FB Like Box to be incorrectly aligned
     39* Added the default class=widget" parameter in the DIV
  • styled-facebook-like-box/trunk/styled-facebook-like-box.php

    r506901 r511614  
    33Plugin Name: Styled Facebook Like Box
    44Description: Displays a Facebook Like Box with options for <strong>border color</strong>, <strong>backgound color</strong> and a <strong>field to ajust the div via custom css styles</strong> such as positioning, border radius etc. Observe that some default Facebook styles, such as border, can't be overwriten.
    5 Version: 1.2
     5Version: 1.3
    66Author: Eduardo Russo
    7 Author URI: http://facebook.com/russoedu/
     7Author URI: http://wordpress.org/extend/plugins/profile/russoedu
    88Plugin URI: http://wordpress.org/extend/plugins/styled-facebook-like-box
    99License: GPL2
    10 Based in Marcos Esperon's Facebook Like Box
    1110*/
    1211
     
    2524function styled_facebook_like_box($title, $profile_url, $width, $height, $faces, $border_color, $background_color, $stream, $header, $style_code){
    2625    //Insert Facebook default JavaScript
    27     echo "<div id='fb-root'></div>
     26    echo "
    2827    <script>(function(d, s, id) {
    2928      var js, fjs = d.getElementsByTagName(s)[0];
     
    3534   
    3635    //Insert the styled Like Box
    37     echo "<div class='fb-like-box' data-href='$profile_url' data-width='$width' data-height='$height' data-show-faces='$faces' data-border-color='$border_color' data-stream='$stream' data-header='$header' style='background-color:$background_color;";
     36    echo "<div id='fb-root' class='widget widget_facebook_like_box'><div class='fb-like-box' data-href='$profile_url' data-width='$width' data-height='$height' data-show-faces='$faces' data-border-color='$border_color' data-stream='$stream' data-header='$header' style='background-color:$background_color;";
    3837    if ($style_code)
    3938        echo $style_code;
Note: See TracChangeset for help on using the changeset viewer.