-
+
field_checkbox( array(
- 'option_name' => 'resize_larger',
- 'label' => __( 'Resize larger images', 'imagify' ),
- 'attributes' => array(
- 'aria-describedby' => 'describe-resize_larger',
- ),
- ) );
+ $settings->field_checkbox(
+ [
+ 'option_name' => 'resize_larger',
+ 'label' => __( 'Resize larger images', 'imagify' ),
+ 'attributes' => [
+ 'aria-describedby' => 'describe-resize_larger',
+ ],
+ ]
+ );
?>
@@ -26,7 +28,7 @@
$resize_larger_w = $options->get( 'resize_larger_w' );
printf(
/* translators: 1 is a text input for a number of pixels (don't use %d). */
- __( 'to maximum %s pixels width', 'imagify' ),
+ esc_html__( 'to maximum %s pixels width', 'imagify' ),
''
);
?>
@@ -38,9 +40,17 @@
' . esc_html__( 'Resizing is done on upload or during optimization.', 'imagify' ) . '';
+ } else {
+ esc_html_e( 'Resizing is done only during optimization.', 'imagify' );
+ }
?>
@@ -49,23 +59,23 @@
-
+
-
+
', ''
);
?>
-
+
@@ -73,12 +83,14 @@
/**
* Disallowed thumbnail sizes.
*/
- $settings->field_checkbox_list( array(
- 'option_name' => 'disallowed-sizes',
- 'legend' => __( 'Choose the sizes to optimize', 'imagify' ),
- 'values' => Imagify_Settings::get_thumbnail_sizes(),
- 'reverse_check' => true,
- ) );
+ $settings->field_checkbox_list(
+ [
+ 'option_name' => 'disallowed-sizes',
+ 'legend' => __( 'Choose the sizes to optimize', 'imagify' ),
+ 'values' => Imagify_Settings::get_thumbnail_sizes(),
+ 'reverse_check' => true,
+ ]
+ );
?>