Changeset 511614
- Timestamp:
- 02/28/2012 10:42:40 AM (14 years ago)
- Location:
- styled-facebook-like-box/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
styled-facebook-like-box.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
styled-facebook-like-box/trunk/readme.txt
r506898 r511614 4 4 Requires at least: 2.5 5 5 Tested up to: 3.3.1 6 Stable tag: 1. 26 Stable tag: 1.3 7 7 8 8 Displays 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 Box11 9 12 10 == Installation == … … 35 33 36 34 = 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 3 3 Plugin Name: Styled Facebook Like Box 4 4 Description: 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. 25 Version: 1.3 6 6 Author: Eduardo Russo 7 Author URI: http:// facebook.com/russoedu/7 Author URI: http://wordpress.org/extend/plugins/profile/russoedu 8 8 Plugin URI: http://wordpress.org/extend/plugins/styled-facebook-like-box 9 9 License: GPL2 10 Based in Marcos Esperon's Facebook Like Box11 10 */ 12 11 … … 25 24 function styled_facebook_like_box($title, $profile_url, $width, $height, $faces, $border_color, $background_color, $stream, $header, $style_code){ 26 25 //Insert Facebook default JavaScript 27 echo " <div id='fb-root'></div>26 echo " 28 27 <script>(function(d, s, id) { 29 28 var js, fjs = d.getElementsByTagName(s)[0]; … … 35 34 36 35 //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;"; 38 37 if ($style_code) 39 38 echo $style_code;
Note: See TracChangeset
for help on using the changeset viewer.