Changeset 626436
- Timestamp:
- 11/17/2012 01:17:35 PM (13 years ago)
- Location:
- facebook-awd/trunk
- Files:
-
- 4 edited
-
AWD_facebook.php (modified) (6 diffs)
-
inc/init.php (modified) (1 diff)
-
readme.md (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
facebook-awd/trunk/AWD_facebook.php
r625808 r626436 4 4 Plugin URI: http://facebook-awd.ahwebdev.fr 5 5 Description: Adds extensions from facebook on wordpress easily. Like button, Like Box, Activity box, Fb comments, OpenGraph and more. 6 Version: 1.5. 16 Version: 1.5.2 7 7 Author: AHWEBDEV 8 8 Author URI: http://www.ahwebdev.fr … … 1954 1954 $error = new WP_Error(500, $this->plugin_name ." Api not configured"); 1955 1955 return $error; 1956 throw new Exception("Facebook AWD not set");1957 1956 } 1958 1957 $sub = isset($sub['data']) ? $sub['data'] : array(); … … 2086 2085 $this->facebook_page_url = $this->get_facebook_page_url(); 2087 2086 } 2088 2087 2089 2088 /** 2090 2089 * Add Js init fcbk to footer ADMIN AND FRONT … … 2094 2093 public function js_sdk_init() 2095 2094 { 2096 $html = ' 2095 $html = "\n".' 2096 <!-- '.$this->plugin_name.' Facebook Library Library--> 2097 2097 <div id="fb-root"></div> 2098 2098 <script type="text/javascript"> … … 2110 2110 2111 2111 if ($this->options['connect_enable'] == 1) { 2112 $html .= ' 2113 //When jquery ready, load JS SDK 2112 $html .= ' 2114 2113 jQuery(document).ready(function(){ 2115 2114 window.fbAsyncInit = function(){ … … 2127 2126 '; 2128 2127 } 2129 $html .= ' 2130 </script>'; 2128 $html .= '</script>'; 2131 2129 echo $html; 2132 2130 } -
facebook-awd/trunk/inc/init.php
r625272 r626436 100 100 $this->options = $this->optionsManager->getOptions(); 101 101 102 //load the facebook lib 103 //and load the sdk if connect if activated. 104 add_action('wp_print_footer_scripts',array(&$this,'js_sdk_init'), 11); 105 add_action('admin_print_footer_scripts',array(&$this,'js_sdk_init')); 102 106 103 107 //init the FB connect 104 108 if($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 109 109 if($this->options['connect_enable'] == 1){ 110 111 110 //add action to add the login button on the wp-login.php page... 112 111 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. 11 Facebook AWD All in one 1.5.2 2 2 ============== 3 3 -
facebook-awd/trunk/readme.txt
r625808 r626436 6 6 Requires at least: 3.3 7 7 Tested up to: 3.4.2 8 Stable tag: 1.5. 18 Stable tag: 1.5.2 9 9 10 10 Facebook AWD is an all in one Facebook capabilities for wordpress.
Note: See TracChangeset
for help on using the changeset viewer.