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-original-image.php
97 lines
| 1 | <?php |
| 2 | |
| 3 | $strong = array( |
| 4 | 'strong' => array(), |
| 5 | ); |
| 6 | |
| 7 | ?> |
| 8 | |
| 9 | <tr> |
| 10 | <th scope="row"><?php esc_html_e( 'Original image', 'tiny-compress-images' ); ?></th> |
| 11 | <td> |
| 12 | <div class="tiny-resize-unavailable" style="display: none"> |
| 13 | <?php |
| 14 | esc_html_e( |
| 15 | 'Enable compression of the original image size for more options.', |
| 16 | 'tiny-compress-images' |
| 17 | ); |
| 18 | ?> |
| 19 | </div> |
| 20 | <div class="tiny-resize-available"> |
| 21 | <?php |
| 22 | $resize_original_enabled_id = self::get_prefixed_name( 'resize_original_enabled' ); |
| 23 | $resize_original_enabled_name = self::get_prefixed_name( 'resize_original[enabled]' ); |
| 24 | $resize_original_enabled = $this->get_resize_enabled(); |
| 25 | ?> |
| 26 | <input |
| 27 | type="checkbox" |
| 28 | id="<?php echo esc_attr( $resize_original_enabled_id ); ?>" |
| 29 | name="<?php echo esc_attr( $resize_original_enabled_name ); ?>" |
| 30 | value="on" |
| 31 | <?php checked( $resize_original_enabled ); ?> /> |
| 32 | <label for="<?php echo esc_attr( $resize_original_enabled_id ); ?>"> |
| 33 | <?php |
| 34 | esc_html_e( |
| 35 | 'Resize the original image', |
| 36 | 'tiny-compress-images' |
| 37 | ); |
| 38 | ?> |
| 39 | </label><br> |
| 40 | <div class="tiny-resize-available tiny-resize-resolution"> |
| 41 | <span> |
| 42 | <?php |
| 43 | echo wp_kses( |
| 44 | __( |
| 45 | '<strong>Save space</strong> by setting a maximum width and height for all images uploaded.', |
| 46 | 'tiny-compress-images' |
| 47 | ), |
| 48 | $strong |
| 49 | ); |
| 50 | ?> |
| 51 | <br> |
| 52 | <?php |
| 53 | echo wp_kses( |
| 54 | __( |
| 55 | 'Resizing takes <strong>1 additional compression</strong> for each image that is larger.', |
| 56 | 'tiny-compress-images' |
| 57 | ), |
| 58 | $strong |
| 59 | ); |
| 60 | ?> |
| 61 | </span> |
| 62 | |
| 63 | <div class="tiny-resize-inputs"> |
| 64 | <?php esc_html_e( 'Max Width', 'tiny-compress-images' ); ?>: |
| 65 | <?php $this->render_resize_input( 'width' ); ?> |
| 66 | <?php esc_html_e( 'Max Height', 'tiny-compress-images' ); ?>: |
| 67 | <?php $this->render_resize_input( 'height' ); ?> |
| 68 | </div> |
| 69 | </div> |
| 70 | |
| 71 | <?php |
| 72 | $this->render_preserve_input( |
| 73 | 'creation', |
| 74 | esc_html__( |
| 75 | 'Preserve creation date and time in the original image', |
| 76 | 'tiny-compress-images' |
| 77 | ) |
| 78 | ); |
| 79 | $this->render_preserve_input( |
| 80 | 'copyright', |
| 81 | esc_html__( |
| 82 | 'Preserve copyright information in the original image', |
| 83 | 'tiny-compress-images' |
| 84 | ) |
| 85 | ); |
| 86 | $this->render_preserve_input( |
| 87 | 'location', |
| 88 | esc_html__( |
| 89 | 'Preserve GPS location in the original image', |
| 90 | 'tiny-compress-images' |
| 91 | ) . ' ' . |
| 92 | esc_html__( '(JPEG only)', 'tiny-compress-images' ) |
| 93 | ); |
| 94 | ?> |
| 95 | </div> |
| 96 | </td> |
| 97 | </tr> |