From fc761309655ed5465be526d5bcc6ce9065865508 Mon Sep 17 00:00:00 2001 From: Opeyemi Ibrahim Date: Mon, 15 Jan 2024 16:21:45 +0100 Subject: [PATCH] Closes #772: Changed webp to avif and slight modification to UI (#780) --- views/part-settings-webp-missing-message.php | 4 ++-- views/part-settings-webp.php | 17 ++++++++++++----- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/views/part-settings-webp-missing-message.php b/views/part-settings-webp-missing-message.php index e6fa69827..182122a3f 100644 --- a/views/part-settings-webp-missing-message.php +++ b/views/part-settings-webp-missing-message.php @@ -5,8 +5,8 @@ sprintf( /* translators: %s is a formatted number (don’t use %d). */ _n( - 'It seems that you have %s optimized image without WebP versions. You can generate it here.', - 'It seems that you have %s optimized images without WebP versions. You can generate them here.', + 'It seems that you have %s optimized image without Next-Gen versions. You can generate it here.', + 'It seems that you have %s optimized images without Next-Gen versions. You can generate them here.', $data['count'], 'imagify' ), diff --git a/views/part-settings-webp.php b/views/part-settings-webp.php index 53ea413f4..373a72658 100755 --- a/views/part-settings-webp.php +++ b/views/part-settings-webp.php @@ -9,24 +9,31 @@ $settings = Imagify_Settings::get_instance(); ?>
-

+

field_checkbox( [ - 'option_name' => 'convert_to_webp', - 'label' => __( 'Create WebP versions of images', 'imagify' ), + 'option_name' => 'convert_to_avif', + 'label' => __( 'Create AVIF versions of images', 'imagify' ), 'attributes' => [ - 'aria-describedby' => 'describe-convert_to_webp', + 'aria-describedby' => 'describe-convert_to_avif', ], ] ); ?> +
+ + +
+
+ +
field_checkbox( [ 'option_name' => 'display_webp', - 'label' => __( 'Display images in WebP format on the site', 'imagify' ), + 'label' => __( 'Display images in Next-Gen format on the site', 'imagify' ), ] ); ?>