Skip to content

Commit

Permalink
Fix #23: Enhance Facebook plugin and fix comments plugin width property.
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Feb 11, 2015
1 parent 214221d commit b0fa6fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions CHANGE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version 1.3.0
=============
**Date:** 08-Feb-2015
**Date:** 11-Feb-2015

- (enh #6): Remove Facebook PHP SDK support (old version v3.0).
- (enh #10): German translations added
Expand All @@ -14,7 +14,7 @@ version 1.3.0
- New `getFbGraphUser` method gets the Facebook graph user object for current user.
- Changes from earlier release
- Method `getFbApi`has been removed from the social module
- Module `getFbUser` has been removed from the social module
- Method `getFbUser` has been removed from the social module
- Set release to stable.
- (enh #14): Add new configuration for GoogleAnalytics `anonymizeIp`.
- (enh #15): Various enhancements and additional configuration settings for the `GoogleAnalytics` widget:
Expand All @@ -30,6 +30,7 @@ version 1.3.0
- (enh #19): Implement GithubXPlugin based on [github buttons](https://github.com/ntkme/github-buttons).
- (enh #20): Allow `social` module to be used as an embedded submodule.
- (enh #22): Set dependency on kartik-v/yii2-krajee-base.
- (enh #23): Enhance Facebook plugin and fix comments plugin width property.

version 1.2.0
=============
Expand Down
5 changes: 4 additions & 1 deletion FacebookPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ public function init()
);
}
$this->registerAssets();
if ($this->type === self::COMMENT && empty($this->settings['data-href'])) {
$this->settings['data-href'] = Yii::$app->request->getAbsoluteUrl();
}
$this->setPluginOptions();
echo "<div id='fb-root'></div>\n" . $this->renderPlugin();
}
Expand All @@ -109,7 +112,7 @@ protected function registerAssets()
return;
js = d.createElement(s);
js.id = id;
js.src = "//connect.facebook.net/{$this->language}/all.js#xfbml=1&appId={$this->appId}";
js.src = "//connect.facebook.net/{$this->language}/sdk.js#xfbml=1&appId={$this->appId}&version=v2.0";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
SCRIPT;
Expand Down

0 comments on commit b0fa6fc

Please sign in to comment.