Plugin Directory

Changeset 626436


Ignore:
Timestamp:
11/17/2012 01:17:35 PM (13 years ago)
Author:
AHWEBDEV
Message:

Fix 1.5.1, replace with 1.5.2, fix login and box modules.

Location:
facebook-awd/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • facebook-awd/trunk/AWD_facebook.php

    r625808 r626436  
    44Plugin URI: http://facebook-awd.ahwebdev.fr
    55Description: Adds extensions from facebook on wordpress easily. Like button, Like Box, Activity box, Fb comments, OpenGraph and more.
    6 Version: 1.5.1
     6Version: 1.5.2
    77Author: AHWEBDEV
    88Author URI: http://www.ahwebdev.fr
     
    19541954                $error = new WP_Error(500, $this->plugin_name ." Api not configured");
    19551955                return $error;
    1956                 throw new Exception("Facebook AWD not set");
    19571956            }
    19581957            $sub = isset($sub['data']) ? $sub['data'] : array();
     
    20862085        $this->facebook_page_url = $this->get_facebook_page_url();
    20872086    }
    2088 
     2087   
    20892088    /**
    20902089     * Add Js init fcbk to footer  ADMIN AND FRONT
     
    20942093    public function js_sdk_init()
    20952094    {
    2096         $html = '
     2095        $html = "\n".'
     2096        <!-- '.$this->plugin_name.' Facebook Library Library-->
    20972097        <div id="fb-root"></div>
    20982098        <script type="text/javascript">
     
    21102110
    21112111        if ($this->options['connect_enable'] == 1) {
    2112             $html .= '
    2113             //When jquery ready, load JS SDK
     2112            $html .= '                 
    21142113            jQuery(document).ready(function(){
    21152114                window.fbAsyncInit = function(){
     
    21272126        ';
    21282127        }
    2129         $html .= '
    2130         </script>';
     2128        $html .= '</script>';
    21312129        echo $html;
    21322130    }
  • facebook-awd/trunk/inc/init.php

    r625272 r626436  
    100100$this->options = $this->optionsManager->getOptions();
    101101
     102//load the facebook lib
     103//and load the sdk if connect if activated.
     104add_action('wp_print_footer_scripts',array(&$this,'js_sdk_init'), 11);
     105add_action('admin_print_footer_scripts',array(&$this,'js_sdk_init'));
    102106
    103107//init the FB connect
    104108if($this->options['app_id'] !='' && $this->options['app_secret_key'] !=''){
    105    
    106     add_action('wp_print_footer_scripts',array(&$this,'js_sdk_init'));
    107     add_action('admin_print_footer_scripts',array(&$this,'js_sdk_init'));
    108    
    109109    if($this->options['connect_enable'] == 1){
    110        
    111110        //add action to add the login button on the wp-login.php page...
    112111        if($this->options['login_button']['display_on_login_page'] == 1)
  • facebook-awd/trunk/readme.md

    r625808 r626436  
    1 Facebook AWD All in one 1.5.1
     1Facebook AWD All in one 1.5.2
    22==============
    33
  • facebook-awd/trunk/readme.txt

    r625808 r626436  
    66Requires at least: 3.3
    77Tested up to: 3.4.2
    8 Stable tag: 1.5.1
     8Stable tag: 1.5.2
    99
    1010Facebook AWD is an all in one Facebook capabilities for wordpress.
Note: See TracChangeset for help on using the changeset viewer.