Changeset 204588
- Timestamp:
- 02/12/2010 04:14:02 PM (16 years ago)
- Location:
- facebook-fan-box/trunk
- Files:
-
- 2 edited
-
facebook-fan-box.php (modified) (4 diffs)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
facebook-fan-box/trunk/facebook-fan-box.php
r198984 r204588 4 4 Plugin URI: http://www.dolcebita.com/wordpress/facebook-fan-box-wordpress-plugin/ 5 5 Description: Displays a Facebook Fan Box 6 Version: 1. 3.36 Version: 1.4 7 7 Author: Marcos Esperon 8 8 Author URI: http://www.dolcebita.com/ … … 33 33 $ffb_options['widget_fields']['css'] = array('label'=>'CSS:', 'type'=>'text', 'default'=>'', 'class'=>'widefat', 'size'=>'', 'help'=>'(External URL file)'); 34 34 $ffb_options['widget_fields']['iframe'] = array('label'=>'iFrame:', 'type'=>'checkbox', 'default'=>false, 'class'=>'', 'size'=>'', 'help'=>''); 35 $ffb_options['widget_fields']['logo'] = array('label'=>'Logo:', 'type'=>'checkbox', 'default'=>false, 'class'=>'', 'size'=>'', 'help'=>''); 35 36 36 function facebook_fan_box($api_key, $profile_id, $stream = 1, $connections = 10, $width = 300, $css = '', $iframe = 0, $height ) {37 function facebook_fan_box($api_key, $profile_id, $stream = 1, $connections = 10, $width = 300, $css = '', $iframe = 0, $height, $logo = 0) { 37 38 $output = ''; 38 39 if ($profile_id != '') { … … 40 41 $output = '<script src="http://www.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>' 41 42 .'<script type="text/javascript">FB.init("'.$api_key.'", "");</script>' 42 .'<fb:fan profile_id="'.$profile_id.'" stream="'.$stream.'" connections="'.$connections.'" width="'.$width.'" css="'.$css.'?'.mktime().'"></fb:fan>';43 .'<fb:fan profile_id="'.$profile_id.'" stream="'.$stream.'" connections="'.$connections.'" logobar="'.$logo.'" width="'.$width.'" css="'.$css.'?'.mktime().'"></fb:fan>'; 43 44 } else { 44 45 if($height != '') $height = ' height: '.$height.'px;'; 45 $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.'"> </iframe>';46 $output = '<iframe scrolling="no" frameborder="0" src="http://www.facebook.com/connect/connect.php?id='.$profile_id.'&stream='.$stream.'&connections='.$connections.'&logobar='.$logo.'&css='.$css.'?'.mktime().'" style="border: none; width: '.$width.'px; '.$height.'"> </iframe>'; 46 47 } 47 48 } … … 83 84 $css = $item['css']; 84 85 $iframe = ($item['iframe']) ? 1 : 0; 86 $logo = ($item['logo']) ? 1 : 0; 85 87 86 88 // These lines generate our output. 87 89 echo $before_widget; 88 facebook_fan_box($api_key, $profile_id, $stream, $connections, $width, $css, $iframe, $height );90 facebook_fan_box($api_key, $profile_id, $stream, $connections, $width, $css, $iframe, $height, $logo); 89 91 echo $after_widget; 90 92 -
facebook-fan-box/trunk/readme.txt
r198985 r204588 4 4 Requires at least: 2.0.0 5 5 Tested up to: 2.8 6 Stable tag: 1. 3.36 Stable tag: 1.4 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. … … 16 16 If you want to change updates visibility, max. number of fans, width or css properties, just do this: 17 17 18 `<?php facebook_fan_box('API_KEY', 'PROFILE_ID', 'STREAM', 'CONNECTIONS', 'WIDTH', 'CSS', 'IFRAME', 'HEIGHT' ); ?>`18 `<?php facebook_fan_box('API_KEY', 'PROFILE_ID', 'STREAM', 'CONNECTIONS', 'WIDTH', 'CSS', 'IFRAME', 'HEIGHT', 'LOGO'); ?>` 19 19 20 20 Where: … … 31 31 32 32 - HEIGHT: Limits the height used by the widget. 33 34 - LOGO: Show/Hide Facebook logo bar. 33 35 34 36 == Installation == … … 54 56 == Changelog == 55 57 58 = 1.4 = 59 * Facebook logo bar option. 60 56 61 = 1.3.2 = 57 * Height option 62 * Height option. 58 63 * Solved validation errors. 59 64
Note: See TracChangeset
for help on using the changeset viewer.