diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c796ed..c36e1a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.14.3] - 24 October 2024 +### Fixed +- Add funding + ## [0.14.2] - 23 August 2024 ### Fixed - Guarantee return type is string #170 diff --git a/Config/Frontend/Funding.php b/Config/Frontend/Funding.php new file mode 100644 index 0000000..b411f67 --- /dev/null +++ b/Config/Frontend/Funding.php @@ -0,0 +1,17 @@ +toHtml(); + } +} + diff --git a/composer.json b/composer.json index f5e4f7f..08d2c4c 100644 --- a/composer.json +++ b/composer.json @@ -1,53 +1,71 @@ { - "name": "yireo/magento2-webp2", - "license": "OSL-3.0", - "version": "0.14.2", - "type": "magento2-module", - "homepage": "https://www.yireo.com/software/magento-extensions/webp2", - "description": "Magento 2 module to add WebP support to the Magento frontend", - "keywords": [ - "composer-installer", - "magento", - "Magento 2", - "Exception", - "Yireo" - ], - "authors": [ - { - "name": "Jisse Reitsma (Yireo)", - "email": "jisse@yireo.com" - } - ], - "require": { - "yireo/magento2-next-gen-images": "~0.3", - "yireo/magento2-csp-utilities": "^1.0", - "magento/framework": "^101.0.1|^101.1|^102.0|^103.0", - "magento/module-backend": "^100.0|^101.0|^102.0", - "magento/module-config": "^101.0", - "magento/module-store": "^101.0", - "rosell-dk/webp-convert": "^2.0", - "psr/log": "^1 || ^2 || ^3", - "php": ">=7.4.0", - "ext-json": "*", - "ext-pcre": "*", - "ext-gd": "*" - }, - "require-dev": { - "phpunit/phpunit": "^9.0|^10.0|^11.0", - "phpstan/phpstan": "^0.12.32", - "bitexpert/phpstan-magento": "^0.3.0", - "yireo/magento2-integration-test-helper": "^0.0.8" - }, - "suggest": { - "yireo/magento2-webp2-for-hyva": "Additional fixes with Yireo Webp2 for Hyva", - "yireo/magento2-webp2-graph-ql": "GraphQL endpoints for Yireo Webp2" - }, - "autoload": { - "psr-4": { - "Yireo\\Webp2\\": "" + "name": "yireo/magento2-webp2", + "license": "OSL-3.0", + "version": "0.14.3", + "type": "magento2-module", + "homepage": "https://www.yireo.com/software/magento-extensions/webp2", + "description": "Magento 2 module to add WebP support to the Magento frontend", + "keywords": [ + "composer-installer", + "magento", + "Magento 2", + "Exception", + "Yireo" + ], + "authors": [ + { + "name": "Jisse Reitsma (Yireo)", + "email": "jisse@yireo.com" + } + ], + "require": { + "yireo/magento2-next-gen-images": "~0.3", + "yireo/magento2-csp-utilities": "^1.0", + "magento/framework": "^101.0.1|^101.1|^102.0|^103.0", + "magento/module-backend": "^100.0|^101.0|^102.0", + "magento/module-config": "^101.0", + "magento/module-store": "^101.0", + "rosell-dk/webp-convert": "^2.0", + "psr/log": "^1 || ^2 || ^3", + "php": ">=7.4.0", + "ext-json": "*", + "ext-pcre": "*", + "ext-gd": "*" }, - "files": [ - "registration.php" + "require-dev": { + "phpunit/phpunit": "^9.0|^10.0|^11.0", + "phpstan/phpstan": "^0.12.32", + "bitexpert/phpstan-magento": "^0.3.0", + "yireo/magento2-integration-test-helper": "^0.0.8" + }, + "suggest": { + "yireo/magento2-webp2-for-hyva": "Additional fixes with Yireo Webp2 for Hyva", + "yireo/magento2-webp2-graph-ql": "GraphQL endpoints for Yireo Webp2" + }, + "autoload": { + "psr-4": { + "Yireo\\Webp2\\": "" + }, + "files": [ + "registration.php" + ] + }, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jissereitsma" + }, + { + "type": "github", + "url": "https://github.com/sponsors/yireo" + }, + { + "type": "paypal", + "url": "https://www.paypal.me/yireo" + }, + { + "type": "other", + "url": "https://www.buymeacoffee.com/jissereitsma" + } ] - } } diff --git a/etc/adminhtml/system.xml b/etc/adminhtml/system.xml index 0d47b8e..fc53ee8 100644 --- a/etc/adminhtml/system.xml +++ b/etc/adminhtml/system.xml @@ -10,6 +10,10 @@ Yireo_Webp2::config + + + Yireo\Webp2\Config\Frontend\Funding + Magento\Config\Model\Config\Source\Yesno diff --git a/view/adminhtml/templates/funding.phtml b/view/adminhtml/templates/funding.phtml new file mode 100644 index 0000000..b10234d --- /dev/null +++ b/view/adminhtml/templates/funding.phtml @@ -0,0 +1,48 @@ + +
+ +
+

Consider sponsoring this extension

+

+ This extension is totally free. It takes time to develop and maintain though, all on a voluntary basis. + If you are using this extension in a Magento shop that earns you money (either as an agency, as a developer + or as a merchant), + please consider sponsoring me and/or Yireo via GitHub. It would be appreciated and would help me to build + even more cool things. +

+ +
+
+ +