account-status-connected.php
5 months ago
account-status-create-advanced.php
5 months ago
account-status-create-simple.php
5 months ago
account-status-loading.php
3 years ago
bulk-optimization-form.php
5 months ago
bulk-optimization-upgrade-notice.php
5 months ago
bulk-optimization.php
2 months ago
compress-details-processing.php
5 months ago
compress-details.php
5 months ago
dashboard-widget.php
2 months ago
notice-feedback.php
2 months ago
optimization-chart.php
5 months ago
request-review.php
2 months ago
settings-conversion-delivery.php
2 months ago
settings-conversion-enabled.php
2 months ago
settings-conversion-output.php
2 months ago
settings-conversion.php
2 months ago
settings-diagnostics.php
5 months ago
settings-original-image-original.php
2 months ago
settings-original-image-preserve.php
2 months ago
settings-original-image.php
2 months ago
settings.php
2 months ago
settings-conversion-output.php
54 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Conversion enabled view |
| 5 | * |
| 6 | * @package tiny-compress-images |
| 7 | */ |
| 8 | |
| 9 | if ( ! defined( 'ABSPATH' ) ) { |
| 10 | exit; // Exit if accessed directly. |
| 11 | } |
| 12 | $convertopts_convert_to_name = self::get_prefixed_name( 'convert_format[convert_to]' ); |
| 13 | $convertopts_convert_value = self::get_convert_format_option( 'convert_to', 'smallest' ); |
| 14 | ?> |
| 15 | <h4><?php esc_html_e( 'Conversion output', 'tiny-compress-images' ); ?></h4> |
| 16 | |
| 17 | <?php |
| 18 | self::render_radiobutton( |
| 19 | $convertopts_convert_to_name, |
| 20 | sprintf( self::get_prefixed_name( 'convert_convert_to_%s' ), 'smallest' ), |
| 21 | 'smallest', |
| 22 | $convertopts_convert_value, |
| 23 | __( 'Convert to smallest file type (Recommended)', 'tiny-compress-images' ), |
| 24 | __( |
| 25 | 'We will calculate what is the best format for your image.', |
| 26 | 'tiny-compress-images' |
| 27 | ) |
| 28 | ); |
| 29 | ?> |
| 30 | |
| 31 | <?php |
| 32 | self::render_radiobutton( |
| 33 | $convertopts_convert_to_name, |
| 34 | sprintf( self::get_prefixed_name( 'convert_convert_to_%s' ), 'webp' ), |
| 35 | 'webp', |
| 36 | $convertopts_convert_value, |
| 37 | __( 'Convert to WebP', 'tiny-compress-images' ), |
| 38 | __( |
| 39 | 'WebP balances a small file size with good visual quality, supporting transparency and animation.', |
| 40 | 'tiny-compress-images' |
| 41 | ) |
| 42 | ); |
| 43 | ?> |
| 44 | |
| 45 | <?php self::render_radiobutton( |
| 46 | $convertopts_convert_to_name, |
| 47 | sprintf( self::get_prefixed_name( 'convert_convert_to_%s' ), 'avif' ), |
| 48 | 'avif', |
| 49 | $convertopts_convert_value, |
| 50 | __( 'Convert to AVIF', 'tiny-compress-images' ), |
| 51 | __( 'AVIF delivers even better compression and image quality than WebP. Browser support is not as good as WebP.', 'tiny-compress-images' ) |
| 52 | ); |
| 53 | ?> |
| 54 |