forked from tinify/wordpress-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsettings.php
More file actions
66 lines (64 loc) · 2.49 KB
/
settings.php
File metadata and controls
66 lines (64 loc) · 2.49 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
<div class="wrap">
<h1><?php esc_html_e( 'TinyPNG - JPEG, PNG & WebP image compression', 'tiny-compress-images' ); ?></h2>
<p><?php esc_html_e( 'Speed up your website. Optimize your JPEG, PNG, and WebP images automatically with TinyPNG.', 'tiny-compress-images' ); ?></p>
<div class="tiny-compress-images">
<span id="tiny-compress-images"></span>
<form action="<?php echo esc_url( admin_url( 'options.php' ) ); ?>" id="tinify-settings" method="post">
<?php settings_fields( 'tinify' ); ?>
<table class="form-table tinify-settings">
<tbody>
<tr>
<th scope="row"><?php esc_html_e( 'Tinify account', 'tiny-compress-images' ); ?></th>
<td>
<?php $this->render_pending_status(); ?>
</td>
</tr>
<tr>
<th scope="row"><?php esc_html_e( 'New image uploads', 'tiny-compress-images' ); ?></th>
<td>
<?php $this->render_compression_timing_settings(); ?>
</td>
</tr>
<tr>
<th scope="row"><?php esc_html_e( 'Image sizes', 'tiny-compress-images' ); ?></th>
<td>
<h4><?php esc_html_e( 'Select image sizes to be compressed', 'tiny-compress-images' ); ?></h4>
<p class="intro">
<?php
esc_html_e(
'WordPress generates resized versions of every image. Choose which sizes to compress.',
'tiny-compress-images'
)
?>
</p>
<div class="sizes">
<?php $this->render_sizes(); ?>
</div>
</td>
</tr>
<tr>
<th scope="row"><?php esc_html_e( 'Conversion', 'tiny-compress-images' ); ?></th>
<td>
<h4><?php esc_html_e( 'Convert files to different formats', 'tiny-compress-images' ); ?></h4>
<p class="intro">
<?php
esc_html_e(
'Generate optimized formats like WebP or AVIF. These file types will improve site performance but might take up more disk space. Creating an optimized image will take 1 additional compression for each image size.',
'tiny-compress-images'
)
?>
</p>
<?php $this->render_format_conversion(); ?>
</td>
</tr>
<?php require plugin_dir_path( __FILE__ ) . 'settings-original-image.php'; ?>
</tbody>
</table>
<?php require plugin_dir_path( __FILE__ ) . 'settings-diagnostics.php'; ?>
<p><?php echo Tiny_Plugin::request_review(); ?></p>
<p class="submit">
<input type="submit" name="submit" id="submit" class="button button-primary" value="<?php esc_html_e( 'Save Changes', 'tiny-compress-images' ); ?>">
</p>
</form>
</div>
</div>