Skip to content

Commit

Permalink
[Fixed] Fixed the variable accessor rountines getSocial() and getIden…
Browse files Browse the repository at this point in the history
…tity()
  • Loading branch information
khalwat committed Jun 27, 2016
1 parent acaafb8 commit 2f9da9f
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ Some things to do, and ideas for potential features:

## Changelog

### 1.1.21 -- 2016.06.27

* [Fixed] Fixed the variable accessor rountines getSocial() and getIdentity()
* [Improved] Updated the README.md

### 1.1.21 -- 2016.06.25

* [Improved] Contents of SEOmatic Meta FieldTypes are now parsed when they are saved, rather than at runtime, which should be faster, and also makes the contents of the fields always accessible. Please re-save your Sections that use SEOmatic FieldTypes as per: [https://github.com/nystudio107/seomatic/wiki/05.-SEO-Entry-Meta](https://github.com/nystudio107/seomatic/wiki/05.-SEO-Entry-Meta)
Expand Down
2 changes: 1 addition & 1 deletion SeomaticPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function getReleaseFeedUrl()

public function getVersion()
{
return '1.1.21';
return '1.1.22';
}

public function getSchemaVersion()
Expand Down
9 changes: 9 additions & 0 deletions releases.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
[
{
"version": "1.1.22",
"downloadUrl": "https://github.com/nystudio107/seomatic/archive/master.zip",
"date": "2016-06-27T11:00:00-11:00",
"notes": [
"[Fixed] Fixed the variable accessor rountines getSocial() and getIdentity()",
"[Improved] Updated the README.md"
]
},
{
"version": "1.1.21",
"downloadUrl": "https://github.com/nystudio107/seomatic/archive/master.zip",
Expand Down
12 changes: 8 additions & 4 deletions variables/SeomaticVariable.php
Original file line number Diff line number Diff line change
Expand Up @@ -464,18 +464,22 @@ public function renderRobotsTemplate()
Get the identity record
-------------------------------------------------------------------------------- */

public function getIdentity()
public function getIdentity($locale=null)
{
return craft()->seomatic->getIdentity();
if (!$locale)
$locale = craft()->language;
return craft()->seomatic->getIdentity($locale);
} /* -- getIdentity */

/* --------------------------------------------------------------------------------
Get the social record
-------------------------------------------------------------------------------- */

public function getSocial()
public function getSocial($locale=null)
{
return craft()->seomatic->getSocial();
if (!$locale)
$locale = craft()->language;
return craft()->seomatic->getSocial($locale);
} /* -- getSocial */

/* --------------------------------------------------------------------------------
Expand Down

0 comments on commit 2f9da9f

Please sign in to comment.