From 8052c451b6e9572c81f1a0f41e826983a017bda4 Mon Sep 17 00:00:00 2001 From: Stefan Wanzenried Date: Sat, 1 Jun 2019 15:30:48 +0200 Subject: [PATCH] Prepare release 0.7.0 --- CHANGELOG.md | 15 ++++++++++++++- FieldtypeSeoMaestro.module.php | 2 +- InputfieldSeoMaestro.info.json | 2 +- SeoMaestro.info.json | 2 +- SeoMaestro.module.php | 2 +- src/OpengraphSeoData.php | 6 +++--- 6 files changed, 21 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f9d162..2d6a451 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 @@ -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 diff --git a/FieldtypeSeoMaestro.module.php b/FieldtypeSeoMaestro.module.php index 284154c..a88ef5c 100644 --- a/FieldtypeSeoMaestro.module.php +++ b/FieldtypeSeoMaestro.module.php @@ -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' => [ diff --git a/InputfieldSeoMaestro.info.json b/InputfieldSeoMaestro.info.json index 84ecd0b..d148799 100644 --- a/InputfieldSeoMaestro.info.json +++ b/InputfieldSeoMaestro.info.json @@ -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": "", diff --git a/SeoMaestro.info.json b/SeoMaestro.info.json index 16ac68b..6a81519 100644 --- a/SeoMaestro.info.json +++ b/SeoMaestro.info.json @@ -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": "", diff --git a/SeoMaestro.module.php b/SeoMaestro.module.php index e1a8de4..4e197b8 100644 --- a/SeoMaestro.module.php +++ b/SeoMaestro.module.php @@ -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 * diff --git a/src/OpengraphSeoData.php b/src/OpengraphSeoData.php index aa3cf13..9b3e4c2 100644 --- a/src/OpengraphSeoData.php +++ b/src/OpengraphSeoData.php @@ -48,7 +48,7 @@ protected function renderValue($name, $value) */ protected function sanitizeValue($name, $value) { - return (string) $value; + return (string)$value; } /** @@ -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;