From 84de819756f563be9467f17d1da7a4536945708d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20Nicou=C3=A9?= Date: Thu, 1 May 2025 15:26:33 +0200 Subject: [PATCH] Remove k3-image-clip plugin --- composer.json | 1 - composer.lock | 44 +------------------ site/blueprints/files/pdf.yml | 2 +- .../sections/site_content_images.yml | 1 - .../blueprints/sections/site_seo_metadata.yml | 13 +++--- site/snippets/metadata.twig | 6 +-- 6 files changed, 10 insertions(+), 57 deletions(-) diff --git a/composer.json b/composer.json index c6647b1..67aded7 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,6 @@ "php": ">=8.1.0 <8.4.0", "getkirby/cms": "^4.0", "kirbyzone/sitemapper": "^1.2.1", - "mullema/k3-image-clip": "^3.2", "wearejust/kirby-twig": "^5.0" }, "scripts": { diff --git a/composer.lock b/composer.lock index a0abb20..41e45db 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "1484ade1a41699eca25b1637f84aaccf", + "content-hash": "f17093a48c983686f90617c12b92d15c", "packages": [ { "name": "christian-riesen/base32", @@ -633,48 +633,6 @@ }, "time": "2016-12-13T01:01:17+00:00" }, - { - "name": "mullema/k3-image-clip", - "version": "3.2.0", - "source": { - "type": "git", - "url": "https://github.com/mullema/k3-image-clip.git", - "reference": "66e5c2147fd6736f48878aaed6eef9ffe08cdd21" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/mullema/k3-image-clip/zipball/66e5c2147fd6736f48878aaed6eef9ffe08cdd21", - "reference": "66e5c2147fd6736f48878aaed6eef9ffe08cdd21", - "shasum": "" - }, - "require": { - "getkirby/composer-installer": "^1.2" - }, - "conflict": { - "getkirby/cms": "<3.6" - }, - "type": "kirby-plugin", - "extra": { - "installer-name": "k3-image-clip" - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Matthias Müller", - "email": "moeli@moeli.com", - "homepage": "https://getkirby.com/plugins/mullema" - } - ], - "description": "Visual image clip for Kirby 3", - "support": { - "issues": "https://github.com/mullema/k3-image-clip/issues", - "source": "https://github.com/mullema/k3-image-clip/tree/3.2.0" - }, - "time": "2022-11-05T10:49:35+00:00" - }, { "name": "phpmailer/phpmailer", "version": "v6.9.3", diff --git a/site/blueprints/files/pdf.yml b/site/blueprints/files/pdf.yml index f70fa3b..c3e46f8 100644 --- a/site/blueprints/files/pdf.yml +++ b/site/blueprints/files/pdf.yml @@ -1,3 +1,3 @@ -title: Image +title: PDF accept: mime: application/pdf diff --git a/site/blueprints/sections/site_content_images.yml b/site/blueprints/sections/site_content_images.yml index 0010b9b..c68069b 100644 --- a/site/blueprints/sections/site_content_images.yml +++ b/site/blueprints/sections/site_content_images.yml @@ -9,4 +9,3 @@ size: small limit: 15 image: ratio: 1/1 - back: white diff --git a/site/blueprints/sections/site_seo_metadata.yml b/site/blueprints/sections/site_seo_metadata.yml index db7c228..6c010e6 100644 --- a/site/blueprints/sections/site_seo_metadata.yml +++ b/site/blueprints/sections/site_seo_metadata.yml @@ -19,18 +19,15 @@ fields: label: en: Meta image fr: Méta image - type: image-clip + type: files query: site.images + uploads: false + multiple: false + required: true layout: cards image: cover: true - back: white - multiple: false - required: true - clip: - minwidth: 1200 - minheight: 675 - ratio: fixed + ratio: 1200/675 help: en: "Image displayed by social networks (format: JPEG or PNG)." fr: "Image affichée par les réseaux sociaux (format : JPEG ou PNG)." diff --git a/site/snippets/metadata.twig b/site/snippets/metadata.twig index e468094..f987bec 100644 --- a/site/snippets/metadata.twig +++ b/site/snippets/metadata.twig @@ -26,7 +26,7 @@ {# Image #} {% if site.meta_image is not empty %} - + {% endif %} {% if page.template != 'error' %} @@ -37,7 +37,7 @@ {% endif %} {% if site.meta_image is not empty %} - + {% endif %} @@ -51,7 +51,7 @@ {% endif %} {% if site.meta_image is not empty %} - + {% endif %} {% endif %}