From f24646663f633c3b8e84749502ed05398455c3f5 Mon Sep 17 00:00:00 2001 From: Bhashkar Yadav Date: Thu, 29 Dec 2022 18:07:00 +0530 Subject: [PATCH] Added Craft 4+ support --- composer.json | 4 ++-- src/FirstImage.php | 10 +++++----- src/translations/en/first-image.php | 8 ++++---- src/twigextensions/FirstImageTwigExtension.php | 14 +++++++------- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/composer.json b/composer.json index 2bc54a8..0820c4d 100755 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "by/first-image", "description": "A plugin to get first image from Redactor Field.", "type": "craft-plugin", - "version": "1.1.0", + "version": "2.0.0", "keywords": [ "craft", "cms", @@ -22,7 +22,7 @@ } ], "require": { - "craftcms/cms": "^3.0.0" + "craftcms/cms": "^4.0.0" }, "autoload": { "psr-4": { diff --git a/src/FirstImage.php b/src/FirstImage.php index 8a78a43..5401a75 100755 --- a/src/FirstImage.php +++ b/src/FirstImage.php @@ -1,10 +1,10 @@ 'First Image plugin loaded', diff --git a/src/twigextensions/FirstImageTwigExtension.php b/src/twigextensions/FirstImageTwigExtension.php index 8e84bfd..33827bb 100755 --- a/src/twigextensions/FirstImageTwigExtension.php +++ b/src/twigextensions/FirstImageTwigExtension.php @@ -1,10 +1,10 @@