Skip to content

Commit

Permalink
Updates to release v1.3.3 fix #62 #67
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Mar 15, 2017
1 parent 207d596 commit 637326e
Show file tree
Hide file tree
Showing 81 changed files with 2,335 additions and 136 deletions.
11 changes: 11 additions & 0 deletions CHANGE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
Change Log: `yii2-social`
=========================

version 1.3.3
=============
**Date:** 15-Mar-2017

- (enh #62): Update Facebook SDK to release v5.0.
- (enh #63): Add Polish Translations.
- (enh #64): Add Dutch Translations.
- (enh #66): Add Lithuanian Translations.
- (enh #67): Add new class `kartik\social\FacebookPersistentHandler`.
- Update message config to include all default standard translation files.

version 1.3.2
=============
**Date:** 16-Aug-2016
Expand Down
4 changes: 2 additions & 2 deletions Disqus.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
/**
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2013 - 2016
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2013 - 2017
* @package yii2-social
* @version 1.3.2
* @version 1.3.3
*/

namespace kartik\social;
Expand Down
38 changes: 38 additions & 0 deletions FacebookPersistentHandler.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?php
/**
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2013 - 2017
* @package yii2-social
* @version 1.3.3
*/

namespace kartik\social;

use Facebook\PersistentData\PersistentDataInterface;
use Yii;

/**
* Facebook persistent handler for Yii.
*/
class FacebookPersistentHandler implements PersistentDataInterface
{
/**
* @var string prefix to use for session variables.
*/
public $sessionPrefix = 'FBPH_';

/**
* @inheritdoc
*/
public function get($key)
{
return Yii::$app->session->get($this->sessionPrefix . $key);
}

/**
* @inheritdoc
*/
public function set($key, $value)
{
Yii::$app->session->set($this->sessionPrefix . $key, $value);
}
}
7 changes: 3 additions & 4 deletions FacebookPlugin.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
/**
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2013 - 2016
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2013 - 2017
* @package yii2-social
* @version 1.3.2
* @version 1.3.3
*/

namespace kartik\social;
Expand Down Expand Up @@ -110,8 +110,7 @@ protected function registerAssets()
$js = <<< SCRIPT
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id))
return;
if (d.getElementById(id)) return;
js = d.createElement(s);
js.id = id;
{$async}
Expand Down
4 changes: 2 additions & 2 deletions GithubPlugin.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
/**
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2013 - 2016
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2013 - 2017
* @package yii2-social
* @version 1.3.2
* @version 1.3.3
*/

namespace kartik\social;
Expand Down
4 changes: 2 additions & 2 deletions GithubXPlugin.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
/**
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2013 - 2016
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2013 - 2017
* @package yii2-social
* @version 1.3.2
* @version 1.3.3
*/

namespace kartik\social;
Expand Down
4 changes: 2 additions & 2 deletions GoogleAnalytics.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
/**
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2013 - 2016
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2013 - 2017
* @package yii2-social
* @version 1.3.2
* @version 1.3.3
*/

namespace kartik\social;
Expand Down
4 changes: 2 additions & 2 deletions GooglePlugin.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
/**
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2013 - 2016
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2013 - 2017
* @package yii2-social
* @version 1.3.2
* @version 1.3.3
*/

namespace kartik\social;
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2013 - 2016, Kartik Visweswaran
Copyright (c) 2013 - 2017, Kartik Visweswaran
Krajee.com
All rights reserved.

Expand Down
Loading

0 comments on commit 637326e

Please sign in to comment.