Version Description
- Changed: Sign-up link and limitations
Download this release
Release Info
Developer | webdorado |
Plugin | Image Optimizer by 10web – Image Optimizer and Compression plugin |
Version | 1.0.22 |
Comparing to | |
See all releases |
Code changes from version 1.0.21 to 1.0.22
- assets/css/admin_main.css +20 -5
- includes/iowd-helper.php +2 -2
- includes/iowd-settings.php +2 -2
- io-wd.php +2 -2
- iowd_class.php +8 -8
- readme.txt +4 -1
- views/iowd_limit_display.php +3 -3
- views/iowd_settings_display.php +22 -9
- views/iowd_settings_form_display.php +2 -2
assets/css/admin_main.css
CHANGED
@@ -1158,7 +1158,7 @@ input:checked + .iowd-slider:before {
|
|
1158 |
}
|
1159 |
|
1160 |
.tenweb_sign_up_tooltip {
|
1161 |
-
width:
|
1162 |
text-align: center;
|
1163 |
font-size: 16px;
|
1164 |
color: #333B46;
|
@@ -1184,7 +1184,20 @@ input:checked + .iowd-slider:before {
|
|
1184 |
position: relative;
|
1185 |
}
|
1186 |
|
1187 |
-
.iowd-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1188 |
display: inline-block;
|
1189 |
}
|
1190 |
|
@@ -1198,7 +1211,7 @@ input:checked + .iowd-slider:before {
|
|
1198 |
bottom: -15px;
|
1199 |
-webkit-transform: rotate(225deg);
|
1200 |
transform: rotate(45deg);
|
1201 |
-
left:
|
1202 |
box-shadow: 5px 5px 9px rgba(0, 0, 0, 0.14);
|
1203 |
}
|
1204 |
|
@@ -1225,7 +1238,7 @@ input:checked + .iowd-slider:before {
|
|
1225 |
}
|
1226 |
.iowd-pro-container-limit .tenweb_sign_up_tooltip {
|
1227 |
bottom: 21px !important;
|
1228 |
-
left: -
|
1229 |
}
|
1230 |
|
1231 |
.iowd-limitations-block {
|
@@ -1233,4 +1246,6 @@ input:checked + .iowd-slider:before {
|
|
1233 |
justify-content: space-between;
|
1234 |
}
|
1235 |
|
1236 |
-
|
|
|
|
1158 |
}
|
1159 |
|
1160 |
.tenweb_sign_up_tooltip {
|
1161 |
+
width: 390px;
|
1162 |
text-align: center;
|
1163 |
font-size: 16px;
|
1164 |
color: #333B46;
|
1184 |
position: relative;
|
1185 |
}
|
1186 |
|
1187 |
+
.iowd-butn-ajax-container .iowd-btn-wrap {
|
1188 |
+
position: relative;
|
1189 |
+
display: inline-block;
|
1190 |
+
}
|
1191 |
+
.iowd-btn-wrap .tenweb_sign_up_tooltip{
|
1192 |
+
right: -112px!important;
|
1193 |
+
}
|
1194 |
+
|
1195 |
+
.iowd-btn.iowd-btn-disabled .tenweb_sign_up_tooltip{
|
1196 |
+
cursor: default;
|
1197 |
+
bottom: 39px;
|
1198 |
+
}
|
1199 |
+
|
1200 |
+
.iowd-extreme:hover + .tenweb_sign_up_tooltip, .iowd-pro:hover + .tenweb_sign_up_tooltip, .tenweb_sign_up_tooltip:hover, .iowd-btn.iowd-btn-disabled:hover + .tenweb_sign_up_tooltip{
|
1201 |
display: inline-block;
|
1202 |
}
|
1203 |
|
1211 |
bottom: -15px;
|
1212 |
-webkit-transform: rotate(225deg);
|
1213 |
transform: rotate(45deg);
|
1214 |
+
left: 167px;
|
1215 |
box-shadow: 5px 5px 9px rgba(0, 0, 0, 0.14);
|
1216 |
}
|
1217 |
|
1238 |
}
|
1239 |
.iowd-pro-container-limit .tenweb_sign_up_tooltip {
|
1240 |
bottom: 21px !important;
|
1241 |
+
left: -130px !important;
|
1242 |
}
|
1243 |
|
1244 |
.iowd-limitations-block {
|
1246 |
justify-content: space-between;
|
1247 |
}
|
1248 |
|
1249 |
+
#wpbody-content>div:not(.wrap):not(.wd-notice), .wrap .notice:not(.wd-notice) {
|
1250 |
+
display: none;
|
1251 |
+
}
|
includes/iowd-helper.php
CHANGED
@@ -221,8 +221,8 @@ class IOWD_Helper
|
|
221 |
}
|
222 |
|
223 |
return array(
|
224 |
-
"limit" =>
|
225 |
-
"period" => "
|
226 |
"already_optimized" => $already_optimized,
|
227 |
);
|
228 |
}
|
221 |
}
|
222 |
|
223 |
return array(
|
224 |
+
"limit" => 100,
|
225 |
+
"period" => "each month",
|
226 |
"already_optimized" => $already_optimized,
|
227 |
);
|
228 |
}
|
includes/iowd-settings.php
CHANGED
@@ -188,7 +188,7 @@ class IOWD_Settings
|
|
188 |
"classes" => "iowd-elem-250 iowd-disable",
|
189 |
"attr" => "disabled",
|
190 |
"help_text" => "",
|
191 |
-
"pro_text" => __("This option is
|
192 |
"tooltip" => __("Lossless: there will be no loss of the full information contained in the original file.", IOWD_PREFIX),
|
193 |
)
|
194 |
);
|
@@ -215,7 +215,7 @@ class IOWD_Settings
|
|
215 |
),
|
216 |
"label" => __("Scheduled optimization", IOWD_PREFIX),
|
217 |
"help_text" => "",
|
218 |
-
"pro_text" => __("This option is
|
219 |
"tooltip" => __("The images will be automatically optimized with the chosen frequency.", IOWD_PREFIX),
|
220 |
),
|
221 |
|
188 |
"classes" => "iowd-elem-250 iowd-disable",
|
189 |
"attr" => "disabled",
|
190 |
"help_text" => "",
|
191 |
+
"pro_text" => __("This option is locked.", IOWD_PREFIX),
|
192 |
"tooltip" => __("Lossless: there will be no loss of the full information contained in the original file.", IOWD_PREFIX),
|
193 |
)
|
194 |
);
|
215 |
),
|
216 |
"label" => __("Scheduled optimization", IOWD_PREFIX),
|
217 |
"help_text" => "",
|
218 |
+
"pro_text" => __("This option is locked.", IOWD_PREFIX),
|
219 |
"tooltip" => __("The images will be automatically optimized with the chosen frequency.", IOWD_PREFIX),
|
220 |
),
|
221 |
|
io-wd.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Image Optimizer WD
|
5 |
* Plugin URI: https://10web.io/services/image-optimizer/
|
6 |
* Description: Image Optimizer WordPress plugin enables you to resize, compress and optimize PNG, JPG, GIF files while maintaining image quality.
|
7 |
-
* Version: 1.0.
|
8 |
* Author: 10Web
|
9 |
* Author URI: https://10web.io
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -84,7 +84,7 @@ if (version_compare(phpversion(), "5.5", '>')) {
|
|
84 |
),
|
85 |
2 => array(
|
86 |
"title" => __("OPTIMIZE MORE IMAGES", IOWD_PREFIX),
|
87 |
-
"description" => __("Have more than
|
88 |
"logo" => IOWD_URL_IMG . "/overview/More-Images.svg"
|
89 |
),
|
90 |
3 => array(
|
4 |
* Plugin Name: Image Optimizer WD
|
5 |
* Plugin URI: https://10web.io/services/image-optimizer/
|
6 |
* Description: Image Optimizer WordPress plugin enables you to resize, compress and optimize PNG, JPG, GIF files while maintaining image quality.
|
7 |
+
* Version: 1.0.22
|
8 |
* Author: 10Web
|
9 |
* Author URI: https://10web.io
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
84 |
),
|
85 |
2 => array(
|
86 |
"title" => __("OPTIMIZE MORE IMAGES", IOWD_PREFIX),
|
87 |
+
"description" => __("Have more than 100 images on your website? Choose the premium plan to compress and optimize all images on your website.", IOWD_PREFIX),
|
88 |
"logo" => IOWD_URL_IMG . "/overview/More-Images.svg"
|
89 |
),
|
90 |
3 => array(
|
iowd_class.php
CHANGED
@@ -8,7 +8,7 @@ class IOWD
|
|
8 |
{
|
9 |
|
10 |
protected static $instance = null;
|
11 |
-
private static $version = '1.0.
|
12 |
private static $page;
|
13 |
private $reg_autoloader = false;
|
14 |
private $options = array();
|
@@ -208,7 +208,7 @@ class IOWD
|
|
208 |
"gif_to_png" => "0",
|
209 |
"jpg_to_webp" => "0",
|
210 |
"png_to_webp" => "0",
|
211 |
-
"optimize_gallery" => "
|
212 |
);
|
213 |
add_option(IOWD_PREFIX . "_options", json_encode($options), '', 'no');
|
214 |
}
|
@@ -252,13 +252,13 @@ class IOWD
|
|
252 |
'::1'
|
253 |
);
|
254 |
if (in_array($_SERVER['REMOTE_ADDR'], $whitelist)) {
|
255 |
-
echo "<div class='error'><p>" . __("Image optimizing is disabled on Localhost. Please install the plugin on a live server to optimize images.", IOWD_PREFIX) . "</p></div>";
|
256 |
}
|
257 |
if ($limitation["already_optimized"] >= $limitation["limit"]) {
|
258 |
-
echo "<div class='error'><p>" . sprintf(__("Your subscription plan allows optimizing %s images per month. This limitation has expired for current month.", IOWD_PREFIX), $limitation["limit"]) . "</p></div>";
|
259 |
}
|
260 |
if (!class_exists("WP_REST_Controller")) {
|
261 |
-
echo "<div class='error'><p>" . __("Image Optimizer plugin requires WordPress 4.7 or higher.", IOWD_PREFIX) . "</p></div>";
|
262 |
}
|
263 |
}
|
264 |
|
@@ -509,12 +509,12 @@ class IOWD
|
|
509 |
public function upgrade_pro()
|
510 |
{
|
511 |
?>
|
512 |
-
<div class="tenweb_banner">
|
513 |
<div class="tenweb_banner--left">
|
514 |
-
<div class="tenweb_banner_text"><?php _e("Sign up
|
515 |
</div>
|
516 |
<div class="tenweb_banner-right">
|
517 |
-
<a href="https://10web.io/
|
518 |
class="button"><?php _e("Sign up", IOWD_PREFIX); ?></a>
|
519 |
</div>
|
520 |
</div>
|
8 |
{
|
9 |
|
10 |
protected static $instance = null;
|
11 |
+
private static $version = '1.0.22';
|
12 |
private static $page;
|
13 |
private $reg_autoloader = false;
|
14 |
private $options = array();
|
208 |
"gif_to_png" => "0",
|
209 |
"jpg_to_webp" => "0",
|
210 |
"png_to_webp" => "0",
|
211 |
+
"optimize_gallery" => "1",
|
212 |
);
|
213 |
add_option(IOWD_PREFIX . "_options", json_encode($options), '', 'no');
|
214 |
}
|
252 |
'::1'
|
253 |
);
|
254 |
if (in_array($_SERVER['REMOTE_ADDR'], $whitelist)) {
|
255 |
+
echo "<div class='error notice wd-notice'><p>" . __("Image optimizing is disabled on Localhost. Please install the plugin on a live server to optimize images.", IOWD_PREFIX) . "</p></div>";
|
256 |
}
|
257 |
if ($limitation["already_optimized"] >= $limitation["limit"]) {
|
258 |
+
echo "<div class='error notice wd-notice'><p>" . sprintf(__("Your subscription plan allows optimizing %s images per month. This limitation has expired for current month.", IOWD_PREFIX), $limitation["limit"]) . "</p></div>";
|
259 |
}
|
260 |
if (!class_exists("WP_REST_Controller")) {
|
261 |
+
echo "<div class='error notice wd-notice'><p>" . __("Image Optimizer plugin requires WordPress 4.7 or higher.", IOWD_PREFIX) . "</p></div>";
|
262 |
}
|
263 |
}
|
264 |
|
509 |
public function upgrade_pro()
|
510 |
{
|
511 |
?>
|
512 |
+
<div class="tenweb_banner notice wd-notice">
|
513 |
<div class="tenweb_banner--left">
|
514 |
+
<div class="tenweb_banner_text"><?php _e("Sign up to unlock all features and optimize 50K images per month for FREE.", IOWD_PREFIX); ?></div>
|
515 |
</div>
|
516 |
<div class="tenweb_banner-right">
|
517 |
+
<a href="https://my.10web.io/sign-up?plugin_id=69&_ga=2.187058156.510482432.1555315654-463188236.1541581703" target="_blank"
|
518 |
class="button"><?php _e("Sign up", IOWD_PREFIX); ?></a>
|
519 |
</div>
|
520 |
</div>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: : compress, image, images optimization, performance, photos, lossless, opt
|
|
4 |
Requires at least: 3.9
|
5 |
Tested up to: 5.1
|
6 |
Requires PHP: 5.5
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -38,6 +38,9 @@ The plugin provides statistics, so you can always know how many images were opti
|
|
38 |
|
39 |
== Changelog ==
|
40 |
|
|
|
|
|
|
|
41 |
= 1.0.21 =
|
42 |
* Changed: Limitation
|
43 |
|
4 |
Requires at least: 3.9
|
5 |
Tested up to: 5.1
|
6 |
Requires PHP: 5.5
|
7 |
+
Stable tag: 1.0.22
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
38 |
|
39 |
== Changelog ==
|
40 |
|
41 |
+
= 1.0.22 =
|
42 |
+
* Changed: Sign-up link and limitations
|
43 |
+
|
44 |
= 1.0.21 =
|
45 |
* Changed: Limitation
|
46 |
|
views/iowd_limit_display.php
CHANGED
@@ -27,16 +27,16 @@ if (!defined('ABSPATH')) {
|
|
27 |
|
28 |
<div class="iowd_stat-row iowd-limitations-block">
|
29 |
<div><b class="iowd-blue-txt">
|
30 |
-
<?php echo sprintf(__("You can optimize %d images
|
31 |
</b></div>
|
32 |
<div class="iowd-pro-container iowd-pro-container-limit">
|
33 |
<div class="iowd-pro"><?php _e('Get 50K image/month for free', IOWD_PREFIX); ?></div>
|
34 |
<div class="tenweb_sign_up_tooltip">
|
35 |
<div>
|
36 |
<div>
|
37 |
-
<div><?php _e('Sign up
|
38 |
<div>
|
39 |
-
<a href="https://10web.io/
|
40 |
class="button"><?php _e("Sign up", IOWD_PREFIX); ?></a>
|
41 |
</div>
|
42 |
</div>
|
27 |
|
28 |
<div class="iowd_stat-row iowd-limitations-block">
|
29 |
<div><b class="iowd-blue-txt">
|
30 |
+
<?php echo sprintf(__("You can optimize %d images %s.", IOWD_PREFIX), $limitation["limit"], $limitation["period"]); ?>
|
31 |
</b></div>
|
32 |
<div class="iowd-pro-container iowd-pro-container-limit">
|
33 |
<div class="iowd-pro"><?php _e('Get 50K image/month for free', IOWD_PREFIX); ?></div>
|
34 |
<div class="tenweb_sign_up_tooltip">
|
35 |
<div>
|
36 |
<div>
|
37 |
+
<div><?php _e('Sign up to unlock all features and optimize 50K images per month for FREE.', IOWD_PREFIX); ?></div>
|
38 |
<div>
|
39 |
+
<a href="https://my.10web.io/sign-up?plugin_id=69&_ga=2.187058156.510482432.1555315654-463188236.1541581703" target="_blank"
|
40 |
class="button"><?php _e("Sign up", IOWD_PREFIX); ?></a>
|
41 |
</div>
|
42 |
</div>
|
views/iowd_settings_display.php
CHANGED
@@ -92,9 +92,9 @@ require_once IOWD_DIR_VIEWS . '/iowd_how_it_works_display.php';
|
|
92 |
<div class="tenweb_sign_up_tooltip">
|
93 |
<div>
|
94 |
<div>
|
95 |
-
<div><?php _e('Sign up
|
96 |
<div>
|
97 |
-
<a href="https://10web.io/
|
98 |
class="button"><?php _e("Sign up", IOWD_PREFIX); ?></a>
|
99 |
</div>
|
100 |
</div>
|
@@ -179,13 +179,26 @@ require_once IOWD_DIR_VIEWS . '/iowd_how_it_works_display.php';
|
|
179 |
$return_false = "onclick='return false;'";
|
180 |
}
|
181 |
?>
|
182 |
-
<
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
189 |
|
190 |
<img
|
191 |
src="<?php echo IOWD_URL_IMG . '/spinner.gif'; ?>"
|
92 |
<div class="tenweb_sign_up_tooltip">
|
93 |
<div>
|
94 |
<div>
|
95 |
+
<div><?php _e('Sign up to unlock all features and optimize 50K images per month for FREE.', IOWD_PREFIX); ?></div>
|
96 |
<div>
|
97 |
+
<a href="https://my.10web.io/sign-up?plugin_id=69&_ga=2.187058156.510482432.1555315654-463188236.1541581703" target="_blank"
|
98 |
class="button"><?php _e("Sign up", IOWD_PREFIX); ?></a>
|
99 |
</div>
|
100 |
</div>
|
179 |
$return_false = "onclick='return false;'";
|
180 |
}
|
181 |
?>
|
182 |
+
<div class="iowd-btn-wrap">
|
183 |
+
<button
|
184 |
+
class="iowd-btn <?php echo $optimize_btn_class; ?>"
|
185 |
+
id="<?php echo $optimize_btn_id; ?>" <?php echo $return_false; ?>>
|
186 |
+
<?php
|
187 |
+
_e("Bulk Optimizing", IOWD_PREFIX);
|
188 |
+
?>
|
189 |
+
</button>
|
190 |
+
<div class="tenweb_sign_up_tooltip">
|
191 |
+
<div>
|
192 |
+
<div>
|
193 |
+
<div><?php _e('Sign up to unlock all features and optimize 50K images per month for FREE.', IOWD_PREFIX); ?></div>
|
194 |
+
<div>
|
195 |
+
<a href="https://my.10web.io/sign-up?plugin_id=69&_ga=2.187058156.510482432.1555315654-463188236.1541581703" target="_blank"
|
196 |
+
class="button"><?php _e("Sign up", IOWD_PREFIX); ?></a>
|
197 |
+
</div>
|
198 |
+
</div>
|
199 |
+
</div>
|
200 |
+
</div>
|
201 |
+
</div>
|
202 |
|
203 |
<img
|
204 |
src="<?php echo IOWD_URL_IMG . '/spinner.gif'; ?>"
|
views/iowd_settings_form_display.php
CHANGED
@@ -125,9 +125,9 @@ if (!defined('ABSPATH')) {
|
|
125 |
<div class="tenweb_sign_up_tooltip">
|
126 |
<div>
|
127 |
<div>
|
128 |
-
<div><?php _e('Sign up
|
129 |
<div>
|
130 |
-
<a href="https://10web.io/
|
131 |
class="button"><?php _e("Sign up", IOWD_PREFIX); ?></a>
|
132 |
</div>
|
133 |
</div>
|
125 |
<div class="tenweb_sign_up_tooltip">
|
126 |
<div>
|
127 |
<div>
|
128 |
+
<div><?php _e('Sign up to unlock all features and optimize 50K images per month for FREE.', IOWD_PREFIX); ?></div>
|
129 |
<div>
|
130 |
+
<a href="https://my.10web.io/sign-up?plugin_id=69&_ga=2.187058156.510482432.1555315654-463188236.1541581703" target="_blank"
|
131 |
class="button"><?php _e("Sign up", IOWD_PREFIX); ?></a>
|
132 |
</div>
|
133 |
</div>
|