Changeset 189135
- Timestamp:
- 01/03/2010 12:37:54 AM (16 years ago)
- Location:
- facebook-fan-box/trunk
- Files:
-
- 2 edited
-
facebook-fan-box.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
facebook-fan-box/trunk/facebook-fan-box.php
r151322 r189135 4 4 Plugin URI: http://www.hnkweb.com/2009/08/03/facebook-fan-box-wordpress-plugin/ 5 5 Description: Displays a Facebook Fan Box 6 Version: 1.3. 16 Version: 1.3.2 7 7 Author: Marcos Esperon 8 8 Author URI: http://www.hnkweb.com/ … … 30 30 $ffb_options['widget_fields']['connections'] = array('label'=>'Connections:', 'type'=>'text', 'default'=>'10', 'class'=>'', 'size'=>'3', 'help'=>'(Limit 100)'); 31 31 $ffb_options['widget_fields']['width'] = array('label'=>'Width:', 'type'=>'text', 'default'=>'300', 'class'=>'', 'size'=>'3', 'help'=>'(Value in px)'); 32 $ffb_options['widget_fields']['height'] = array('label'=>'Height:', 'type'=>'text', 'default'=>'550', 'class'=>'', 'size'=>'3', 'help'=>'(Value in px)'); 32 33 $ffb_options['widget_fields']['css'] = array('label'=>'CSS:', 'type'=>'text', 'default'=>'', 'class'=>'widefat', 'size'=>'', 'help'=>'(External URL file)'); 33 34 $ffb_options['widget_fields']['iframe'] = array('label'=>'iFrame:', 'type'=>'checkbox', 'default'=>false, 'class'=>'', 'size'=>'', 'help'=>''); 34 35 35 function facebook_fan_box($api_key, $profile_id, $stream = 1, $connections = 10, $width = 300, $css = '', $iframe = 0 ) {36 function facebook_fan_box($api_key, $profile_id, $stream = 1, $connections = 10, $width = 300, $css = '', $iframe = 0, $height = 550) { 36 37 $output = ''; 37 38 if ($profile_id != '') { … … 41 42 .'<fb:fan profile_id="'.$profile_id.'" stream="'.$stream.'" connections="'.$connections.'" width="'.$width.'" css="'.$css.'?'.mktime().'"></fb:fan>'; 42 43 } else { 43 $output = '<iframe scrolling="no" frameborder="0" src="http://www.facebook.com/connect/connect.php?id='.$profile_id.'& stream='.$stream.'&connections='.$connections.'&css='.$css.'?'.mktime().'" allowtransparency="true" style="border: none; width: '.$width.'px; height: 550px;"></iframe>';44 $output = '<iframe scrolling="no" frameborder="0" src="http://www.facebook.com/connect/connect.php?id='.$profile_id.'&stream='.$stream.'&connections='.$connections.'&css='.$css.'?'.mktime().'" style="border: none; width: '.$width.'px; height: '.$height.'px;"> </iframe>'; 44 45 } 45 46 } … … 78 79 $connections = $item['connections']; 79 80 $width = $item['width']; 81 $height = $item['height']; 80 82 $css = $item['css']; 81 83 $iframe = ($item['iframe']) ? 1 : 0; … … 83 85 // These lines generate our output. 84 86 echo $before_widget; 85 facebook_fan_box($api_key, $profile_id, $stream, $connections, $width, $css, $iframe );87 facebook_fan_box($api_key, $profile_id, $stream, $connections, $width, $css, $iframe, $height); 86 88 echo $after_widget; 87 89 -
facebook-fan-box/trunk/readme.txt
r151323 r189135 4 4 Requires at least: 2.0.0 5 5 Tested up to: 2.8 6 Stable tag: 1.3. 16 Stable tag: 1.3.2 7 7 8 8 Display a Facebook Fan Box on your blog. Put the Facebook Fan Box in your sidebar using the widget mode or call the function inside your template. … … 52 52 == Changelog == 53 53 54 = 1.3.2 = 55 * Height option 56 * Solved validation errors. 57 54 58 = 1.3.1 = 55 59 * Solved problem with CSS cache.
Note: See TracChangeset
for help on using the changeset viewer.