Skip to content

Commit

Permalink
Prepare release 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wanze committed Jun 1, 2019
1 parent 0cbf6b1 commit 8052c45
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 8 deletions.
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

## [Unreleased]

## [0.7.0] - 2019-06-01

### Fixed

* Fix label being showed above the "inherit" checkbox ([#9](https://github.com/wanze/SeoMaestro/issues/9))

### Added

* Add the possibility to resize the Opengraph image when referencing a page image by specifying a width and/or height ([#7](https://github.com/wanze/SeoMaestro/issues/7))
* Opengraph image: If the referenced image field is empty and pulls the image from another page (default value), the
module now substitutes the default image ([#8](https://github.com/wanze/SeoMaestro/issues/8))

## [0.6.0] - 2019-03-13

### Fixed
Expand Down Expand Up @@ -72,7 +84,8 @@ allow installations via Composer

* Initial release of the module 🐣

[Unreleased]: https://github.com/wanze/SeoMaestro/compare/v0.6.0...HEAD
[Unreleased]: https://github.com/wanze/SeoMaestro/compare/v0.7.0...HEAD
[0.6.0]: https://github.com/wanze/SeoMaestro/releases/tag/v0.7.0
[0.6.0]: https://github.com/wanze/SeoMaestro/releases/tag/v0.6.0
[0.5.0]: https://github.com/wanze/SeoMaestro/releases/tag/v0.5.0
[0.4.0]: https://github.com/wanze/SeoMaestro/releases/tag/v0.4.0
Expand Down
2 changes: 1 addition & 1 deletion FieldtypeSeoMaestro.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static function getModuleInfo()
return [
'title' => 'Seo Maestro',
'summary' => 'A fieldtype storing various meta tags (meta, opengraph, twitter etc.) and sitemap behaviour for pages.',
'version' => '0.6.0',
'version' => '0.7.0',
'author' => 'Stefan Wanzenried (Wanze)',
'installs' => 'InputfieldSeoMaestro',
'requires' => [
Expand Down
2 changes: 1 addition & 1 deletion InputfieldSeoMaestro.info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Inputfield Seo Maestro",
"version": "0.6.0",
"version": "0.7.0",
"summary": "Inputfield to accompany FieldtypeSeoMaestro, allows to manage metatags and sitemap settings for a page",
"author": "Stefan Wanzenried (Wanze)",
"href": "",
Expand Down
2 changes: 1 addition & 1 deletion SeoMaestro.info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Seo Maestro",
"version": "0.6.0",
"version": "0.7.0",
"summary": "Seo Maestro allows to easily manage your page's metatags and the XML sitemap.",
"author": "Stefan Wanzenried (Wanze)",
"href": "",
Expand Down
2 changes: 1 addition & 1 deletion SeoMaestro.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public function ___sitemapAlwaysExclude(PageArray $excludedPages)
/**
* Hook to modify sitemap items.
*
* Use this hook to modify or add or modify items in the sitemap.
* Use this hook to add or modify items in the sitemap.
*
* @param \SeoMaestro\SitemapItem[] $sitemapItems
*
Expand Down
6 changes: 3 additions & 3 deletions src/OpengraphSeoData.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ protected function renderValue($name, $value)
*/
protected function sanitizeValue($name, $value)
{
return (string) $value;
return (string)$value;
}

/**
Expand Down Expand Up @@ -150,8 +150,8 @@ private function getPageImage($fieldName)
return null;
}

$defaultPage = $this->wire('pages')->get((int) $field->get('defaultValuePage'));
if($defaultPage->id && $defaultPage->id !== $this->pageFieldValue->getPage()->id) {
$defaultPage = $this->wire('pages')->get((int)$field->get('defaultValuePage'));
if ($defaultPage->id && $defaultPage->id !== $this->pageFieldValue->getPage()->id) {
$pageImages = $defaultPage->getUnformatted($fieldName);
if (!$pageImages->count()) {
return null;
Expand Down

0 comments on commit 8052c45

Please sign in to comment.