Plugin Directory

Changeset 217813


Ignore:
Timestamp:
03/15/2010 06:41:23 PM (16 years ago)
Author:
hanok
Message:

Versión 1.5 actualizada

Location:
facebook-fan-box/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • facebook-fan-box/trunk/facebook-fan-box.php

    r217764 r217813  
    3535$ffb_options['widget_fields']['iframe'] = array('label'=>'iFrame:', 'type'=>'checkbox', 'default'=>false, 'class'=>'', 'size'=>'', 'help'=>'');
    3636$ffb_options['widget_fields']['logo'] = array('label'=>'Logo:', 'type'=>'checkbox', 'default'=>false, 'class'=>'', 'size'=>'', 'help'=>'');
    37 $ffb_options['widget_fields']['lang'] = array('label'=>'Language:', 'type'=>'text', 'default'=>'en_EN', 'class'=>'', 'size'=>'4', 'help'=>'(en_US, es_ES...)');
     37$ffb_options['widget_fields']['lang'] = array('label'=>'Language:', 'type'=>'text', 'default'=>'en_US', 'class'=>'', 'size'=>'4', 'help'=>'(en_US, es_ES...)');
    3838
    3939function facebook_fan_box($api_key, $profile_id, $stream = 1, $connections = 10, $width = 300, $css = '', $iframe = 0, $height = '', $logo = 0, $lang = '') {
     
    4242    if($iframe != 1) {
    4343      if($lang != '') $lang = '/'.$lang;
    44       $output = '<script src="http://www.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php'.$lang.'" type="text/javascript"></script>'
    45                .'<script type="text/javascript">FB.init("'.$api_key.'", "");</script>'
     44      /* -- Old Facebook call -- */
     45      /*$output = '<script src="http://www.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php'.$lang.'" type="text/javascript"></script><script type="text/javascript">FB.init("'.$api_key.'", "");</script><fb:fan profile_id="'.$profile_id.'" stream="'.$stream.'" connections="'.$connections.'" logobar="'.$logo.'" width="'.$width.'" css="'.$css.'?'.mktime().'"></fb:fan>';*/
     46      $output = '<script type="text/javascript" src="http://static.ak.connect.facebook.com/connect.php'.$lang.'"></script>'
     47               .'<script type="text/javascript">FB.init("'.$api_key.'");</script>'
    4648               .'<fb:fan profile_id="'.$profile_id.'" stream="'.$stream.'" connections="'.$connections.'" logobar="'.$logo.'" width="'.$width.'" css="'.$css.'?'.mktime().'"></fb:fan>';
    4749    } else {
  • facebook-fan-box/trunk/readme.txt

    r217764 r217813  
    6161* Facebook locale option.
    6262* Title enabled in the widget method.
     63* New Facebook javascript call.
    6364
    6465= 1.4.1 =
Note: See TracChangeset for help on using the changeset viewer.