-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathsettings-original-image.php
More file actions
119 lines (113 loc) · 3.06 KB
/
settings-original-image.php
File metadata and controls
119 lines (113 loc) · 3.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<?php
$strong = array(
'strong' => array(),
);
?>
<tr>
<th scope="row"><?php esc_html_e( 'Original image', 'tiny-compress-images' ); ?></th>
<td>
<div class="tiny-resize-unavailable" style="display: none">
<?php
esc_html_e(
'Enable compression of the original image size for more options.',
'tiny-compress-images'
);
?>
</div>
<div class="tiny-resize-available">
<?php
$resize_original_enabled_id = self::get_prefixed_name( 'resize_original_enabled' );
$resize_original_enabled_name = self::get_prefixed_name( 'resize_original[enabled]' );
$resize_original_enabled = $this->get_resize_enabled();
?>
<input
type="checkbox"
id="<?php echo esc_attr( $resize_original_enabled_id ); ?>"
name="<?php echo esc_attr( $resize_original_enabled_name ); ?>"
value="on"
<?php checked( $resize_original_enabled ); ?> />
<label for="<?php echo esc_attr( $resize_original_enabled_id ); ?>">
<?php
esc_html_e(
'Resize the original image',
'tiny-compress-images'
);
?>
</label><br>
<div class="tiny-resize-available tiny-resize-resolution">
<span>
<?php
echo wp_kses(
__(
'<strong>Save space</strong> by setting a maximum width and height for all images uploaded.',
'tiny-compress-images'
),
$strong
);
?>
<br>
<?php
echo wp_kses(
__(
'Resizing takes <strong>1 additional compression</strong> for each image that is larger.',
'tiny-compress-images'
),
$strong
);
?>
</span>
<div class="tiny-resize-inputs">
<?php esc_html_e( 'Max Width', 'tiny-compress-images' ); ?>:
<?php $this->render_resize_input( 'width' ); ?>
<?php esc_html_e( 'Max Height', 'tiny-compress-images' ); ?>:
<?php $this->render_resize_input( 'height' ); ?>
</div>
</div>
<p class="tiny-preserve">
<?php
$backup_enabled_id = self::get_prefixed_name( 'backup' );
$backup_enabled_name = self::get_prefixed_name( 'backup[enabled]' );
$backup_enabled = $this->get_backup_enabled();
?>
<input
type="checkbox"
id="<?php echo esc_attr( $backup_enabled_id ); ?>"
name="<?php echo esc_attr( $backup_enabled_name ); ?>"
value="on"
<?php checked( $backup_enabled ); ?> />
<label for="<?php echo esc_attr( $backup_enabled_id ); ?>">
<?php
esc_html_e(
'Create a backup of the uncompressed image',
'tiny-compress-images'
);
?>
</label>
</p>
<?php
$this->render_preserve_input(
'creation',
esc_html__(
'Preserve creation date and time in the original image',
'tiny-compress-images'
)
);
$this->render_preserve_input(
'copyright',
esc_html__(
'Preserve copyright information in the original image',
'tiny-compress-images'
)
);
$this->render_preserve_input(
'location',
esc_html__(
'Preserve GPS location in the original image',
'tiny-compress-images'
) . ' ' .
esc_html__( '(JPEG only)', 'tiny-compress-images' )
);
?>
</div>
</td>
</tr>