field_checkbox( array(
'option_name' => 'auto_optimize',
'label' => __( 'Auto-Optimize images on upload', 'imagify' ),
'info' => __( 'Automatically optimize every image you upload to WordPress.', 'imagify' ),
) );
?>
field_checkbox( array(
'option_name' => 'backup',
'label' => __( 'Backup original images', 'imagify' ),
'info' => __( 'Keep your original images in a separate folder before optimization process.', 'imagify' ),
) );
$backup_error_class = $options->get( 'backup' ) && ! Imagify_Requirements::attachments_backup_dir_is_writable() ? '' : ' hidden';
?>
filesystem->make_path_relative( get_imagify_backup_dir_path( true ) );
/* translators: %s is a file path. */
printf( __( 'The backup folder %s cannot be created or is not writable by the server, original images cannot be saved!', 'imagify' ), "$backup_path" );
?>
' . __( 'Learn more', 'imagify' ) . '
';
$info .= __( 'If you are a photographer, you may be interested in this option if you are displaying info like the model of your camera on your pages. Also, keeping EXIF data can fix some colorimetric problems.', 'imagify' );
$settings->field_checkbox( array(
'option_name' => 'exif',
'label' => __( 'Keep all EXIF data from your images', 'imagify' ),
'info' => $info,
) );
?>