Version Description
- Added: Sign up 10Web Banner
Download this release
Release Info
| Developer | webdorado |
| Plugin | |
| Version | 1.0.19 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.17 to 1.0.19
- assets/css/admin_main.css +131 -295
- includes/iowd-ajax.php +5 -5
- includes/iowd-optimize.php +7 -7
- includes/iowd-settings.php +5 -5
- io-wd.php +3 -3
- iowd-rest.php +4 -4
- iowd_class.php +39 -23
- readme.txt +8 -4
- views/iowd_limit_display.php +20 -6
- views/iowd_settings_display.php +17 -10
- views/iowd_settings_form_display.php +14 -1
assets/css/admin_main.css
CHANGED
|
@@ -113,6 +113,7 @@ a:focus {
|
|
| 113 |
.iowd-standart-mode-view {
|
| 114 |
display: table;
|
| 115 |
margin: 11px auto 33px;
|
|
|
|
| 116 |
}
|
| 117 |
|
| 118 |
.iowd-standart-cell {
|
|
@@ -130,7 +131,8 @@ a:focus {
|
|
| 130 |
border-left: 1px solid #2D3142;
|
| 131 |
border-right: 1px solid #2D3142;
|
| 132 |
}
|
| 133 |
-
|
|
|
|
| 134 |
border-left: 1px solid #2D3142;
|
| 135 |
border-right: 1px solid #ddd;
|
| 136 |
border-top: 1px solid #ddd;
|
|
@@ -142,7 +144,7 @@ a:focus {
|
|
| 142 |
border-bottom-left-radius: 2px;
|
| 143 |
}
|
| 144 |
|
| 145 |
-
.iowd-
|
| 146 |
border-top-right-radius: 2px;
|
| 147 |
border-bottom-right-radius: 2px;
|
| 148 |
}
|
|
@@ -156,17 +158,17 @@ a:focus {
|
|
| 156 |
margin-top: 50px;
|
| 157 |
}
|
| 158 |
|
| 159 |
-
.iowd_stat_content{
|
| 160 |
margin-left: 15px;
|
| 161 |
border-radius: 2px;
|
| 162 |
}
|
| 163 |
|
| 164 |
-
.iowd_stat_content{
|
| 165 |
margin-top: 55px;
|
| 166 |
border-radius: 2px;
|
| 167 |
}
|
| 168 |
|
| 169 |
-
.iowd_limit_content{
|
| 170 |
margin-top: 20px;
|
| 171 |
margin-left: 15px;
|
| 172 |
}
|
|
@@ -284,7 +286,7 @@ a:focus {
|
|
| 284 |
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
| 285 |
}
|
| 286 |
|
| 287 |
-
.iowd_other_dirs_container, .iowd_wd_plugins{
|
| 288 |
margin-top: 20px;
|
| 289 |
}
|
| 290 |
|
|
@@ -997,24 +999,24 @@ input:checked + .iowd-slider:before {
|
|
| 997 |
}
|
| 998 |
}
|
| 999 |
|
| 1000 |
-
.iowd-abort{
|
| 1001 |
display: none;
|
| 1002 |
-
color: #fff!important;
|
| 1003 |
background: rgba(165, 51, 51, 0.97);
|
| 1004 |
padding: 1px 11px 2px;
|
| 1005 |
margin-top: 7px;
|
| 1006 |
border-radius: 3px;
|
| 1007 |
}
|
| 1008 |
|
| 1009 |
-
.iowd-pro{
|
| 1010 |
-
color:
|
| 1011 |
}
|
| 1012 |
|
| 1013 |
-
.iowd-disable{
|
| 1014 |
cursor: not-allowed !important;
|
| 1015 |
}
|
| 1016 |
|
| 1017 |
-
.iowd_upgrade{
|
| 1018 |
clear: both;
|
| 1019 |
padding: 9px 15px;
|
| 1020 |
background: #fff;
|
|
@@ -1025,53 +1027,63 @@ input:checked + .iowd-slider:before {
|
|
| 1025 |
line-height: 30px;
|
| 1026 |
|
| 1027 |
}
|
| 1028 |
-
|
|
|
|
| 1029 |
background-color: #D8D8D8;
|
| 1030 |
padding: 1px 5px;
|
| 1031 |
font-size: 11px;
|
| 1032 |
display: table;
|
| 1033 |
}
|
| 1034 |
-
|
|
|
|
| 1035 |
display: table;
|
| 1036 |
}
|
| 1037 |
-
|
|
|
|
| 1038 |
display: table-cell;
|
| 1039 |
}
|
| 1040 |
-
|
|
|
|
| 1041 |
padding-right: 8px;
|
| 1042 |
color: #72777c !important;
|
| 1043 |
}
|
|
|
|
| 1044 |
.iowd_upgrade .wd-cell:last-child {
|
| 1045 |
background: #45A6B7;
|
| 1046 |
padding: 1px 18px;
|
| 1047 |
}
|
| 1048 |
-
|
|
|
|
| 1049 |
color: #fff !important;
|
| 1050 |
}
|
| 1051 |
|
| 1052 |
.iowd_upgrade a, .iowd_upgrade a:hover {
|
| 1053 |
text-decoration: none !important;
|
| 1054 |
}
|
|
|
|
| 1055 |
.iowd_upgrade img {
|
| 1056 |
vertical-align: middle;
|
| 1057 |
}
|
| 1058 |
-
|
| 1059 |
-
|
| 1060 |
-
|
| 1061 |
-
.wd-right{
|
| 1062 |
-
float:right;
|
| 1063 |
}
|
| 1064 |
-
|
| 1065 |
-
|
| 1066 |
-
|
| 1067 |
-
display:table;
|
| 1068 |
}
|
| 1069 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1070 |
|
| 1071 |
.iowd-toggle-indicator {
|
| 1072 |
-
float:right;
|
| 1073 |
}
|
| 1074 |
-
|
|
|
|
| 1075 |
content: "";
|
| 1076 |
display: table;
|
| 1077 |
clear: both;
|
|
@@ -1101,300 +1113,124 @@ input:checked + .iowd-slider:before {
|
|
| 1101 |
}
|
| 1102 |
|
| 1103 |
/*10web banner*/
|
| 1104 |
-
.tenweb_banner{
|
| 1105 |
-
padding:
|
| 1106 |
-
|
| 1107 |
-
|
| 1108 |
box-sizing: border-box;
|
| 1109 |
-webkit-box-sizing: border-box;
|
| 1110 |
-moz-box-sizing: border-box;
|
| 1111 |
-
|
| 1112 |
-
|
| 1113 |
-
|
| 1114 |
-
|
| 1115 |
-
|
| 1116 |
-
}
|
| 1117 |
-
.tenweb_banner *{
|
| 1118 |
-
color:#ffffff;
|
| 1119 |
-
}
|
| 1120 |
|
| 1121 |
-
.tenweb_banner > div{
|
| 1122 |
-
text-align:center;
|
| 1123 |
}
|
| 1124 |
|
| 1125 |
-
.tenweb_banner .
|
| 1126 |
-
|
| 1127 |
-
|
| 1128 |
-
|
| 1129 |
-
|
| 1130 |
-
|
| 1131 |
-
font-weight: lighter;
|
| 1132 |
-
text-align:center;
|
| 1133 |
-
width:130px;
|
| 1134 |
-
line-height: 2.7;
|
| 1135 |
-
}
|
| 1136 |
-
.tenweb_desc_h3 {
|
| 1137 |
-
font-weight: normal;
|
| 1138 |
-
font-size: 19px;
|
| 1139 |
-
margin: 0 0 8px;
|
| 1140 |
-
}
|
| 1141 |
-
.tenweb_services {
|
| 1142 |
-
line-height: 1.8;
|
| 1143 |
-
}
|
| 1144 |
-
.tenweb_services span {
|
| 1145 |
-
position: relative;
|
| 1146 |
-
display: inline-block;
|
| 1147 |
-
margin: 0 16px;
|
| 1148 |
-
font-size: 14px;
|
| 1149 |
-
padding-left: 37px;
|
| 1150 |
-
}
|
| 1151 |
-
.tenweb_services span:before {
|
| 1152 |
-
content: "";
|
| 1153 |
-
position: absolute;
|
| 1154 |
-
left: 0;
|
| 1155 |
-
top: 0;
|
| 1156 |
-
width: 28px;
|
| 1157 |
-
height: 24px;
|
| 1158 |
-
background-repeat: no-repeat;
|
| 1159 |
-
background-position: 0 top;
|
| 1160 |
}
|
| 1161 |
-
|
| 1162 |
-
|
|
|
|
|
|
|
| 1163 |
color: #ffffff;
|
| 1164 |
text-transform: uppercase;
|
| 1165 |
-
|
| 1166 |
-
font-size:
|
| 1167 |
-
|
| 1168 |
-
|
| 1169 |
-
|
| 1170 |
-
display: inline-block;
|
| 1171 |
-
border: 0 !important;
|
| 1172 |
box-shadow: none;
|
| 1173 |
-
|
| 1174 |
-
}
|
| 1175 |
-
.tenweb_banner-right a.button:visited,
|
| 1176 |
-
.tenweb_banner-right a.button:active,
|
| 1177 |
-
.tenweb_banner-right a.button:hover {
|
| 1178 |
-
background: #367bf2;
|
| 1179 |
-
color: #ffffff;
|
| 1180 |
-
box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
|
| 1181 |
}
|
| 1182 |
|
| 1183 |
-
|
| 1184 |
-
|
| 1185 |
-
|
| 1186 |
-
|
| 1187 |
-
|
| 1188 |
-
content: "";
|
| 1189 |
-
background-image: url(../img/header.svg);
|
| 1190 |
-
background-position: -12px -101px;
|
| 1191 |
-
background-size: 88px;
|
| 1192 |
-
}
|
| 1193 |
-
.tenweb_services span.backup:before {
|
| 1194 |
-
content: "";
|
| 1195 |
-
background-image: url(../img/header.svg);
|
| 1196 |
-
background-position: -13px -186px;
|
| 1197 |
-
background-size: 91px;
|
| 1198 |
-
}
|
| 1199 |
-
.tenweb_services span.dashboard:before {
|
| 1200 |
-
content: "";
|
| 1201 |
-
background-image: url(../img/header.svg);
|
| 1202 |
-
background-position: -12px -79px;
|
| 1203 |
-
background-size: 91px;
|
| 1204 |
-
}
|
| 1205 |
-
.tenweb_services span.seo:before {
|
| 1206 |
-
content: "";
|
| 1207 |
-
background-image: url(../img/header.svg);
|
| 1208 |
-
background-position: -12px -126px;
|
| 1209 |
-
background-size: 87px;
|
| 1210 |
}
|
| 1211 |
-
|
| 1212 |
-
.
|
| 1213 |
-
|
| 1214 |
-
|
| 1215 |
-
.tenweb_plugin_logo{
|
| 1216 |
-
width:63px;
|
| 1217 |
-
height:48px;
|
| 1218 |
-
background:url(../img/img-opt-white.svg);
|
| 1219 |
-
margin:0 auto 10px;
|
| 1220 |
-
background-size:cover;
|
| 1221 |
-
}
|
| 1222 |
-
.tenweb_plugin_name {
|
| 1223 |
-
text-transform: uppercase;
|
| 1224 |
font-size: 16px;
|
| 1225 |
-
|
| 1226 |
-
|
| 1227 |
|
| 1228 |
-
|
| 1229 |
-
|
| 1230 |
-
|
| 1231 |
-
|
| 1232 |
-
|
| 1233 |
-
|
| 1234 |
-
background-position: -15px 0px;
|
| 1235 |
-
}
|
| 1236 |
-
.tenweb_banner .mobile{
|
| 1237 |
-
display:none;
|
| 1238 |
}
|
| 1239 |
|
| 1240 |
-
.
|
| 1241 |
-
|
| 1242 |
}
|
| 1243 |
-
.tenweb_services .tenweb_desc_h3{
|
| 1244 |
-
display:none;
|
| 1245 |
-
}
|
| 1246 |
-
@media only screen and (min-width: 1620px) {
|
| 1247 |
-
.tenweb_desc {
|
| 1248 |
-
width: 415px;
|
| 1249 |
-
}
|
| 1250 |
-
.tenweb_banner .tenweb_banner-center .wd-clear div{
|
| 1251 |
-
text-align:center;
|
| 1252 |
-
float:left;
|
| 1253 |
-
}
|
| 1254 |
-
.tenweb_and {
|
| 1255 |
-
font-size: 34px;
|
| 1256 |
-
font-weight: lighter;
|
| 1257 |
-
line-height: 2;
|
| 1258 |
-
|
| 1259 |
-
}
|
| 1260 |
-
.tenweb_banner .tenweb_banner-center .wd-clear {
|
| 1261 |
-
padding-top: 11px;
|
| 1262 |
-
}
|
| 1263 |
-
.tenweb_services {
|
| 1264 |
-
max-width: 100%;
|
| 1265 |
-
}
|
| 1266 |
-
.tenweb_services span {
|
| 1267 |
-
font-size: 15px;
|
| 1268 |
-
}
|
| 1269 |
-
.tenweb_services {
|
| 1270 |
-
line-height: 2;
|
| 1271 |
-
}
|
| 1272 |
-
|
| 1273 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1274 |
}
|
| 1275 |
-
|
| 1276 |
-
|
| 1277 |
-
|
| 1278 |
-
}
|
| 1279 |
-
}
|
| 1280 |
-
@media only screen and (max-width: 1400px){
|
| 1281 |
-
.tenweb_banner .tenweb_desc {
|
| 1282 |
-
display:none !important;
|
| 1283 |
-
}
|
| 1284 |
-
.tenweb_services .tenweb_desc_h3.screen{
|
| 1285 |
-
display:block;
|
| 1286 |
-
line-height: 1.4;
|
| 1287 |
-
}
|
| 1288 |
}
|
| 1289 |
-
@media only screen and (max-width: 1270px){
|
| 1290 |
-
.tenweb_and,
|
| 1291 |
-
.tenweb_services .tenweb_desc_h3.screen {
|
| 1292 |
-
display:none !important;
|
| 1293 |
-
}
|
| 1294 |
-
.tenweb_banner-left {
|
| 1295 |
-
min-width: 110px;
|
| 1296 |
-
}
|
| 1297 |
-
.tenweb_services .tenweb_desc_h3.mobile{
|
| 1298 |
-
display:block;
|
| 1299 |
-
}
|
| 1300 |
|
| 1301 |
-
|
| 1302 |
-
|
| 1303 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1304 |
|
| 1305 |
-
|
| 1306 |
-
|
| 1307 |
-
height: 37px;
|
| 1308 |
-
}
|
| 1309 |
-
.tenweb_plugin_name {
|
| 1310 |
-
text-transform: none;
|
| 1311 |
-
font-size: 14px;
|
| 1312 |
-
}
|
| 1313 |
-
.tenweb_banner {
|
| 1314 |
-
padding: 12px 21px 11px;
|
| 1315 |
-
}
|
| 1316 |
-
.tenweb_banner-left {
|
| 1317 |
-
max-width: 140px;
|
| 1318 |
-
}
|
| 1319 |
}
|
| 1320 |
-
@media only screen and (max-width: 1120px){
|
| 1321 |
-
.tenweb_services {
|
| 1322 |
-
padding: 0 10px;
|
| 1323 |
-
}
|
| 1324 |
-
.tenweb_banner {
|
| 1325 |
-
padding: 12px 21px 11px;
|
| 1326 |
-
text-align: center;
|
| 1327 |
-
}
|
| 1328 |
-
.tenweb_banner-right a.button {
|
| 1329 |
-
letter-spacing: 0px;
|
| 1330 |
-
font-size: 11px;
|
| 1331 |
-
padding: 9px 7px;
|
| 1332 |
-
}
|
| 1333 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1334 |
}
|
| 1335 |
-
@media only screen and (max-width: 1024px){
|
| 1336 |
-
.tenweb_desc_h3 {
|
| 1337 |
-
font-size: 17px;
|
| 1338 |
-
}
|
| 1339 |
|
|
|
|
|
|
|
|
|
|
| 1340 |
}
|
| 1341 |
-
@media only screen and (max-width:910px){
|
| 1342 |
-
.tenweb_banner {
|
| 1343 |
-
padding: 12px 10px 11px;
|
| 1344 |
-
text-align: center;
|
| 1345 |
-
}
|
| 1346 |
|
| 1347 |
-
body:not(.auto-fold) .tenweb_banner > div {
|
| 1348 |
-
display: block;
|
| 1349 |
-
}
|
| 1350 |
-
body:not(.auto-fold) .tenweb_banner-left {
|
| 1351 |
-
margin: 0 auto;
|
| 1352 |
-
max-width: 214px;
|
| 1353 |
-
}
|
| 1354 |
-
body:not(.auto-fold) .tenweb_services {
|
| 1355 |
-
margin: 10px 0 20px;
|
| 1356 |
-
}
|
| 1357 |
|
| 1358 |
-
body:not(.auto-fold) .tenweb_services span:before {
|
| 1359 |
-
content: "";
|
| 1360 |
-
top: 6px;
|
| 1361 |
-
width: 20px;
|
| 1362 |
-
height: 16px;
|
| 1363 |
-
}
|
| 1364 |
-
body:not(.auto-fold) .tenweb_services span.pro-plugins:before {
|
| 1365 |
-
content: "";
|
| 1366 |
-
background-size: contain;
|
| 1367 |
-
}
|
| 1368 |
-
body:not(.auto-fold) .tenweb_services span.themes:before {
|
| 1369 |
-
content: "";
|
| 1370 |
-
background-position: -7px -72px;
|
| 1371 |
-
background-size: 62px;
|
| 1372 |
-
}
|
| 1373 |
-
body:not(.auto-fold) .tenweb_services span.backup:before {
|
| 1374 |
-
content: "";
|
| 1375 |
-
background-position: -9px -127px;
|
| 1376 |
-
background-size: 62px;
|
| 1377 |
-
}
|
| 1378 |
-
body:not(.auto-fold) .tenweb_services span.dashboard:before {
|
| 1379 |
-
content: "";
|
| 1380 |
-
background-position: -8px -54px;
|
| 1381 |
-
background-size: 63px;
|
| 1382 |
-
}
|
| 1383 |
-
body:not(.auto-fold) .tenweb_services span.seo:before {
|
| 1384 |
-
content: "";
|
| 1385 |
-
background-position: -7px -87px;
|
| 1386 |
-
background-size: 60px;
|
| 1387 |
-
}
|
| 1388 |
-
}
|
| 1389 |
-
@media only screen and (max-width:768px){
|
| 1390 |
-
.tenweb_banner > div {
|
| 1391 |
-
display: block;
|
| 1392 |
-
}
|
| 1393 |
-
.tenweb_banner-left {
|
| 1394 |
-
margin: 0 auto;
|
| 1395 |
-
max-width: 214px;
|
| 1396 |
-
}
|
| 1397 |
-
.tenweb_services {
|
| 1398 |
-
margin: 10px 0 20px;
|
| 1399 |
-
}
|
| 1400 |
-
}
|
| 113 |
.iowd-standart-mode-view {
|
| 114 |
display: table;
|
| 115 |
margin: 11px auto 33px;
|
| 116 |
+
position: relative;
|
| 117 |
}
|
| 118 |
|
| 119 |
.iowd-standart-cell {
|
| 131 |
border-left: 1px solid #2D3142;
|
| 132 |
border-right: 1px solid #2D3142;
|
| 133 |
}
|
| 134 |
+
|
| 135 |
+
.iowd-extreme {
|
| 136 |
border-left: 1px solid #2D3142;
|
| 137 |
border-right: 1px solid #ddd;
|
| 138 |
border-top: 1px solid #ddd;
|
| 144 |
border-bottom-left-radius: 2px;
|
| 145 |
}
|
| 146 |
|
| 147 |
+
.iowd-extreme {
|
| 148 |
border-top-right-radius: 2px;
|
| 149 |
border-bottom-right-radius: 2px;
|
| 150 |
}
|
| 158 |
margin-top: 50px;
|
| 159 |
}
|
| 160 |
|
| 161 |
+
.iowd_stat_content {
|
| 162 |
margin-left: 15px;
|
| 163 |
border-radius: 2px;
|
| 164 |
}
|
| 165 |
|
| 166 |
+
.iowd_stat_content {
|
| 167 |
margin-top: 55px;
|
| 168 |
border-radius: 2px;
|
| 169 |
}
|
| 170 |
|
| 171 |
+
.iowd_limit_content {
|
| 172 |
margin-top: 20px;
|
| 173 |
margin-left: 15px;
|
| 174 |
}
|
| 286 |
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
| 287 |
}
|
| 288 |
|
| 289 |
+
.iowd_other_dirs_container, .iowd_wd_plugins {
|
| 290 |
margin-top: 20px;
|
| 291 |
}
|
| 292 |
|
| 999 |
}
|
| 1000 |
}
|
| 1001 |
|
| 1002 |
+
.iowd-abort {
|
| 1003 |
display: none;
|
| 1004 |
+
color: #fff !important;
|
| 1005 |
background: rgba(165, 51, 51, 0.97);
|
| 1006 |
padding: 1px 11px 2px;
|
| 1007 |
margin-top: 7px;
|
| 1008 |
border-radius: 3px;
|
| 1009 |
}
|
| 1010 |
|
| 1011 |
+
.iowd-pro {
|
| 1012 |
+
color: #46B450;
|
| 1013 |
}
|
| 1014 |
|
| 1015 |
+
.iowd-disable {
|
| 1016 |
cursor: not-allowed !important;
|
| 1017 |
}
|
| 1018 |
|
| 1019 |
+
.iowd_upgrade {
|
| 1020 |
clear: both;
|
| 1021 |
padding: 9px 15px;
|
| 1022 |
background: #fff;
|
| 1027 |
line-height: 30px;
|
| 1028 |
|
| 1029 |
}
|
| 1030 |
+
|
| 1031 |
+
.wd-upgrade-table {
|
| 1032 |
background-color: #D8D8D8;
|
| 1033 |
padding: 1px 5px;
|
| 1034 |
font-size: 11px;
|
| 1035 |
display: table;
|
| 1036 |
}
|
| 1037 |
+
|
| 1038 |
+
.iowd_upgrade .wd-table {
|
| 1039 |
display: table;
|
| 1040 |
}
|
| 1041 |
+
|
| 1042 |
+
.iowd_upgrade .wd-cell {
|
| 1043 |
display: table-cell;
|
| 1044 |
}
|
| 1045 |
+
|
| 1046 |
+
.iowd_upgrade .wd-cell:first-child a {
|
| 1047 |
padding-right: 8px;
|
| 1048 |
color: #72777c !important;
|
| 1049 |
}
|
| 1050 |
+
|
| 1051 |
.iowd_upgrade .wd-cell:last-child {
|
| 1052 |
background: #45A6B7;
|
| 1053 |
padding: 1px 18px;
|
| 1054 |
}
|
| 1055 |
+
|
| 1056 |
+
.iowd_upgrade .wd-cell:last-child a {
|
| 1057 |
color: #fff !important;
|
| 1058 |
}
|
| 1059 |
|
| 1060 |
.iowd_upgrade a, .iowd_upgrade a:hover {
|
| 1061 |
text-decoration: none !important;
|
| 1062 |
}
|
| 1063 |
+
|
| 1064 |
.iowd_upgrade img {
|
| 1065 |
vertical-align: middle;
|
| 1066 |
}
|
| 1067 |
+
|
| 1068 |
+
.wd-left {
|
| 1069 |
+
float: left;
|
|
|
|
|
|
|
| 1070 |
}
|
| 1071 |
+
|
| 1072 |
+
.wd-right {
|
| 1073 |
+
float: right;
|
|
|
|
| 1074 |
}
|
| 1075 |
|
| 1076 |
+
.wd-clear:after {
|
| 1077 |
+
clear: both;
|
| 1078 |
+
content: "";
|
| 1079 |
+
display: table;
|
| 1080 |
+
}
|
| 1081 |
|
| 1082 |
.iowd-toggle-indicator {
|
| 1083 |
+
float: right;
|
| 1084 |
}
|
| 1085 |
+
|
| 1086 |
+
.iowd-toggle:after {
|
| 1087 |
content: "";
|
| 1088 |
display: table;
|
| 1089 |
clear: both;
|
| 1113 |
}
|
| 1114 |
|
| 1115 |
/*10web banner*/
|
| 1116 |
+
.tenweb_banner {
|
| 1117 |
+
padding: 9px 15px;
|
| 1118 |
+
margin: 20px 30px;
|
| 1119 |
+
background: #fff;
|
| 1120 |
box-sizing: border-box;
|
| 1121 |
-webkit-box-sizing: border-box;
|
| 1122 |
-moz-box-sizing: border-box;
|
| 1123 |
+
box-shadow: 0px 2px 8px rgba(50, 58, 69, 0.14);
|
| 1124 |
+
border-radius: 10px;
|
| 1125 |
+
display: flex;
|
| 1126 |
+
justify-content: space-between;
|
| 1127 |
+
text-align: center;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1128 |
|
|
|
|
|
|
|
| 1129 |
}
|
| 1130 |
|
| 1131 |
+
.tenweb_banner .tenweb_banner_text {
|
| 1132 |
+
color: #333B46;
|
| 1133 |
+
font-size: 20px;
|
| 1134 |
+
font-weight: 700;
|
| 1135 |
+
line-height: 31px;
|
| 1136 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1137 |
}
|
| 1138 |
+
|
| 1139 |
+
.tenweb_banner-right a.button, .tenweb_banner-right a.button:hover,
|
| 1140 |
+
.tenweb_banner-right a.button:active, .tenweb_banner-right a.button:visited {
|
| 1141 |
+
background: #46B450;
|
| 1142 |
color: #ffffff;
|
| 1143 |
text-transform: uppercase;
|
| 1144 |
+
border-radius: 30px;
|
| 1145 |
+
font-size: 16px;
|
| 1146 |
+
border: none;
|
| 1147 |
+
padding: 7px 76px;
|
| 1148 |
+
line-height: 16px;
|
|
|
|
|
|
|
| 1149 |
box-shadow: none;
|
| 1150 |
+
transform: none;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1151 |
}
|
| 1152 |
|
| 1153 |
+
@media only screen and (max-width: 1024px) {
|
| 1154 |
+
.tenweb_banner {
|
| 1155 |
+
flex-direction: column;
|
| 1156 |
+
align-items: center;
|
| 1157 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1158 |
}
|
| 1159 |
+
|
| 1160 |
+
.tenweb_sign_up_tooltip {
|
| 1161 |
+
width: 336px;
|
| 1162 |
+
text-align: center;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1163 |
font-size: 16px;
|
| 1164 |
+
color: #333B46;
|
| 1165 |
+
line-height: 26px;
|
| 1166 |
|
| 1167 |
+
position: absolute;
|
| 1168 |
+
z-index: 11;
|
| 1169 |
+
/* top: -60px; */
|
| 1170 |
+
bottom: 32px;
|
| 1171 |
+
right: -95px;
|
| 1172 |
+
display: none;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1173 |
}
|
| 1174 |
|
| 1175 |
+
.tenweb_sign_up_tooltip > div {
|
| 1176 |
+
padding: 18px 20px;
|
| 1177 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1178 |
|
| 1179 |
+
.tenweb_sign_up_tooltip > div > div {
|
| 1180 |
+
border: 1px solid rgba(51, 59, 70, 0.1);
|
| 1181 |
+
box-shadow: 0px 2px 6px rgba(51, 59, 70, 0.17);
|
| 1182 |
+
background: #fff;
|
| 1183 |
+
padding: 18px 20px;
|
| 1184 |
+
position: relative;
|
| 1185 |
}
|
| 1186 |
+
|
| 1187 |
+
.iowd-extreme:hover + .tenweb_sign_up_tooltip, .iowd-pro:hover + .tenweb_sign_up_tooltip, .tenweb_sign_up_tooltip:hover {
|
| 1188 |
+
display: inline-block;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1189 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1190 |
|
| 1191 |
+
.tenweb_sign_up_tooltip > div > div:after {
|
| 1192 |
+
content: '';
|
| 1193 |
+
display: inline-block;
|
| 1194 |
+
position: absolute;
|
| 1195 |
+
border: 15px solid #fff;
|
| 1196 |
+
border-top-color: transparent;
|
| 1197 |
+
border-left-color: transparent;
|
| 1198 |
+
bottom: -15px;
|
| 1199 |
+
-webkit-transform: rotate(225deg);
|
| 1200 |
+
transform: rotate(45deg);
|
| 1201 |
+
left: 127px;
|
| 1202 |
+
box-shadow: 5px 5px 9px rgba(0, 0, 0, 0.14);
|
| 1203 |
+
}
|
| 1204 |
+
|
| 1205 |
+
.tenweb_sign_up_tooltip a.button, .tenweb_sign_up_tooltip a.button:hover,
|
| 1206 |
+
.tenweb_sign_up_tooltip a.button:active, .tenweb_sign_up_tooltip a.button:visited {
|
| 1207 |
+
background: #46B450 !important;
|
| 1208 |
+
color: #ffffff !important;
|
| 1209 |
+
border-radius: 3px;
|
| 1210 |
+
font-size: 16px;
|
| 1211 |
+
border: none;
|
| 1212 |
+
padding: 5px 28px;
|
| 1213 |
+
line-height: 16px;
|
| 1214 |
+
box-shadow: none;
|
| 1215 |
+
transform: none;
|
| 1216 |
+
}
|
| 1217 |
|
| 1218 |
+
.iowd-pro-container {
|
| 1219 |
+
position: relative;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1220 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1221 |
|
| 1222 |
+
.iowd-pro-container-settings .tenweb_sign_up_tooltip {
|
| 1223 |
+
bottom: 18px !important;
|
| 1224 |
+
left: -29px !important;
|
| 1225 |
+
}
|
| 1226 |
+
.iowd-pro-container-limit .tenweb_sign_up_tooltip {
|
| 1227 |
+
bottom: 21px !important;
|
| 1228 |
+
left: -73px !important;
|
| 1229 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1230 |
|
| 1231 |
+
.iowd-limitations-block {
|
| 1232 |
+
display: flex;
|
| 1233 |
+
justify-content: space-between;
|
| 1234 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1235 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1236 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/iowd-ajax.php
CHANGED
|
@@ -15,11 +15,11 @@ class IOWD_Ajax
|
|
| 15 |
$abort = get_option("iowd_abort");
|
| 16 |
if (!$abort) {
|
| 17 |
$id = isset($_POST["postId"]) && $_POST["postId"] ? $_POST["postId"] : '';
|
| 18 |
-
$done =
|
| 19 |
|
| 20 |
$images_count_start = get_transient("iowd_images_count_start");
|
| 21 |
// get optimization data
|
| 22 |
-
$last_optimized_data =
|
| 23 |
$last_optimized_data = $last_optimized_data ? json_decode($last_optimized_data, true) : array("image_size" => 0, "image_orig_size" => 0, "image_count" => 0);
|
| 24 |
|
| 25 |
if ($done) {
|
|
@@ -48,7 +48,7 @@ class IOWD_Ajax
|
|
| 48 |
}
|
| 49 |
$html .= '</div>';
|
| 50 |
$response["html"] = $html;
|
| 51 |
-
|
| 52 |
delete_transient("iowd_images_count_start");
|
| 53 |
}
|
| 54 |
} else {
|
|
@@ -323,7 +323,7 @@ class IOWD_Ajax
|
|
| 323 |
$media_sizes = array();
|
| 324 |
$attachments = array();
|
| 325 |
for ($i = 0; $i <= $limit; $i += 2000) {
|
| 326 |
-
$db_attachments =
|
| 327 |
$media_attachments = isset($db_attachments["media"]) ? $db_attachments["media"] : array();
|
| 328 |
$media_sizes_attachments = isset($db_attachments["media_sizes"]) ? $db_attachments["media_sizes"] : array();
|
| 329 |
$other_attachments = isset($db_attachments["other"]) ? $db_attachments["other"] : array();
|
|
@@ -334,7 +334,7 @@ class IOWD_Ajax
|
|
| 334 |
$media_sizes = $media_sizes + $media_sizes_attachments;
|
| 335 |
$attachments = $attachments + $u_attachments;
|
| 336 |
|
| 337 |
-
|
| 338 |
}
|
| 339 |
$all_attachments = array(
|
| 340 |
"media" => $media,
|
| 15 |
$abort = get_option("iowd_abort");
|
| 16 |
if (!$abort) {
|
| 17 |
$id = isset($_POST["postId"]) && $_POST["postId"] ? $_POST["postId"] : '';
|
| 18 |
+
$done = get_transient("iowd_done_" . $id);
|
| 19 |
|
| 20 |
$images_count_start = get_transient("iowd_images_count_start");
|
| 21 |
// get optimization data
|
| 22 |
+
$last_optimized_data = get_transient("iowd_last_optimized_data");
|
| 23 |
$last_optimized_data = $last_optimized_data ? json_decode($last_optimized_data, true) : array("image_size" => 0, "image_orig_size" => 0, "image_count" => 0);
|
| 24 |
|
| 25 |
if ($done) {
|
| 48 |
}
|
| 49 |
$html .= '</div>';
|
| 50 |
$response["html"] = $html;
|
| 51 |
+
delete_transient("iowd_done_" . $id);
|
| 52 |
delete_transient("iowd_images_count_start");
|
| 53 |
}
|
| 54 |
} else {
|
| 323 |
$media_sizes = array();
|
| 324 |
$attachments = array();
|
| 325 |
for ($i = 0; $i <= $limit; $i += 2000) {
|
| 326 |
+
$db_attachments = get_transient("iowd_temp_scan_data_" . $i);
|
| 327 |
$media_attachments = isset($db_attachments["media"]) ? $db_attachments["media"] : array();
|
| 328 |
$media_sizes_attachments = isset($db_attachments["media_sizes"]) ? $db_attachments["media_sizes"] : array();
|
| 329 |
$other_attachments = isset($db_attachments["other"]) ? $db_attachments["other"] : array();
|
| 334 |
$media_sizes = $media_sizes + $media_sizes_attachments;
|
| 335 |
$attachments = $attachments + $u_attachments;
|
| 336 |
|
| 337 |
+
delete_transient("iowd_temp_scan_data_" . $i);
|
| 338 |
}
|
| 339 |
$all_attachments = array(
|
| 340 |
"media" => $media,
|
includes/iowd-optimize.php
CHANGED
|
@@ -28,12 +28,12 @@ class IOWD_Optimize
|
|
| 28 |
// delete all remained data
|
| 29 |
delete_option("iowd_image_temp_data_" . $id);
|
| 30 |
delete_option("iowd_data_count_" . $id);
|
| 31 |
-
|
| 32 |
delete_transient("iowd_images_count_start");
|
| 33 |
-
|
| 34 |
delete_option("iowd_crd_" . $id);
|
| 35 |
delete_option("iowd_abort");
|
| 36 |
-
|
| 37 |
|
| 38 |
//check
|
| 39 |
$folder_name = md5(site_url());
|
|
@@ -297,7 +297,7 @@ class IOWD_Optimize
|
|
| 297 |
|
| 298 |
return $attachments_data;
|
| 299 |
} else {
|
| 300 |
-
|
| 301 |
|
| 302 |
return $image_data ? true : false;
|
| 303 |
}
|
|
@@ -378,7 +378,7 @@ class IOWD_Optimize
|
|
| 378 |
public function scanOld()
|
| 379 |
{
|
| 380 |
$options = $this->options;
|
| 381 |
-
$db_optimized_data =
|
| 382 |
$db_optimized_data = $db_optimized_data ? $db_optimized_data : array();
|
| 383 |
|
| 384 |
// all data
|
|
@@ -772,7 +772,7 @@ class IOWD_Optimize
|
|
| 772 |
$_image_count += 1;
|
| 773 |
}
|
| 774 |
|
| 775 |
-
$last_optimized_data =
|
| 776 |
$last_optimized_data = $last_optimized_data ? json_decode($last_optimized_data, true) : array("image_size" => 0, "image_orig_size" => 0, "image_count" => 0);
|
| 777 |
|
| 778 |
$last_optimized_data["image_size"] = $last_optimized_data["image_size"] + $_image_size;
|
|
@@ -782,7 +782,7 @@ class IOWD_Optimize
|
|
| 782 |
$already_optimized = get_site_transient("iowd_already_optimized");
|
| 783 |
set_site_transient("iowd_already_optimized", ($already_optimized + $_image_count), 43200);
|
| 784 |
|
| 785 |
-
|
| 786 |
|
| 787 |
|
| 788 |
}
|
| 28 |
// delete all remained data
|
| 29 |
delete_option("iowd_image_temp_data_" . $id);
|
| 30 |
delete_option("iowd_data_count_" . $id);
|
| 31 |
+
delete_transient("iowd_last_optimized_data");
|
| 32 |
delete_transient("iowd_images_count_start");
|
| 33 |
+
delete_transient("iowd_done_" . $id);
|
| 34 |
delete_option("iowd_crd_" . $id);
|
| 35 |
delete_option("iowd_abort");
|
| 36 |
+
delete_transient("iowd_received_images_". $id);
|
| 37 |
|
| 38 |
//check
|
| 39 |
$folder_name = md5(site_url());
|
| 297 |
|
| 298 |
return $attachments_data;
|
| 299 |
} else {
|
| 300 |
+
set_transient("iowd_temp_scan_data_" . $limit, $image_data);
|
| 301 |
|
| 302 |
return $image_data ? true : false;
|
| 303 |
}
|
| 378 |
public function scanOld()
|
| 379 |
{
|
| 380 |
$options = $this->options;
|
| 381 |
+
$db_optimized_data = get_transient("iowd_optimized");
|
| 382 |
$db_optimized_data = $db_optimized_data ? $db_optimized_data : array();
|
| 383 |
|
| 384 |
// all data
|
| 772 |
$_image_count += 1;
|
| 773 |
}
|
| 774 |
|
| 775 |
+
$last_optimized_data = get_transient("iowd_last_optimized_data");
|
| 776 |
$last_optimized_data = $last_optimized_data ? json_decode($last_optimized_data, true) : array("image_size" => 0, "image_orig_size" => 0, "image_count" => 0);
|
| 777 |
|
| 778 |
$last_optimized_data["image_size"] = $last_optimized_data["image_size"] + $_image_size;
|
| 782 |
$already_optimized = get_site_transient("iowd_already_optimized");
|
| 783 |
set_site_transient("iowd_already_optimized", ($already_optimized + $_image_count), 43200);
|
| 784 |
|
| 785 |
+
set_transient("iowd_last_optimized_data", json_encode($last_optimized_data));
|
| 786 |
|
| 787 |
|
| 788 |
}
|
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 |
|
|
@@ -585,7 +585,7 @@ class IOWD_Settings
|
|
| 585 |
$optimize = new IOWD_Optimize(true);
|
| 586 |
$attachments = $optimize->get_attachments($ids);
|
| 587 |
}
|
| 588 |
-
$last_optimized_data =
|
| 589 |
$last_optimized_data = $last_optimized_data ? json_decode($last_optimized_data, true) : array("image_size" => 0, "image_orig_size" => 0, "image_count" => 0);
|
| 590 |
|
| 591 |
$last_optimized_data_reduced = $last_optimized_data["image_orig_size"] - $last_optimized_data["image_size"];
|
|
@@ -601,7 +601,7 @@ class IOWD_Settings
|
|
| 601 |
$msg = __("Please select at least one optimization level for image types you want to optimize.", IOWD_PREFIX);
|
| 602 |
$msg_style = 'style="display: block;"';
|
| 603 |
$msg_class = "iowd_msg_div_error";
|
| 604 |
-
} else if (
|
| 605 |
$images_count = get_transient("iowd_images_count_start") ? get_transient("iowd_images_count_start") : 0;
|
| 606 |
$images_count = $images_count ? $images_count : "No";
|
| 607 |
$skipped = $images_count - $last_optimized_data["image_count"];
|
|
@@ -611,7 +611,7 @@ class IOWD_Settings
|
|
| 611 |
}
|
| 612 |
$msg_style = 'style="display: block;"';
|
| 613 |
$msg_class = "iowd_msg_div_msg";
|
| 614 |
-
|
| 615 |
delete_transient("iowd_images_count_start");
|
| 616 |
delete_transient("iowd_optimizing_post_ids");
|
| 617 |
} else if (get_transient("iowd_response_error")) {
|
| 188 |
"classes" => "iowd-elem-250 iowd-disable",
|
| 189 |
"attr" => "disabled",
|
| 190 |
"help_text" => "",
|
| 191 |
+
"pro_text" => __("This option is available in premium version.", 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 available in premium version.", IOWD_PREFIX),
|
| 219 |
"tooltip" => __("The images will be automatically optimized with the chosen frequency.", IOWD_PREFIX),
|
| 220 |
),
|
| 221 |
|
| 585 |
$optimize = new IOWD_Optimize(true);
|
| 586 |
$attachments = $optimize->get_attachments($ids);
|
| 587 |
}
|
| 588 |
+
$last_optimized_data = get_transient("iowd_last_optimized_data");
|
| 589 |
$last_optimized_data = $last_optimized_data ? json_decode($last_optimized_data, true) : array("image_size" => 0, "image_orig_size" => 0, "image_count" => 0);
|
| 590 |
|
| 591 |
$last_optimized_data_reduced = $last_optimized_data["image_orig_size"] - $last_optimized_data["image_size"];
|
| 601 |
$msg = __("Please select at least one optimization level for image types you want to optimize.", IOWD_PREFIX);
|
| 602 |
$msg_style = 'style="display: block;"';
|
| 603 |
$msg_class = "iowd_msg_div_error";
|
| 604 |
+
} else if (get_transient("iowd_done_") == "1") {
|
| 605 |
$images_count = get_transient("iowd_images_count_start") ? get_transient("iowd_images_count_start") : 0;
|
| 606 |
$images_count = $images_count ? $images_count : "No";
|
| 607 |
$skipped = $images_count - $last_optimized_data["image_count"];
|
| 611 |
}
|
| 612 |
$msg_style = 'style="display: block;"';
|
| 613 |
$msg_class = "iowd_msg_div_msg";
|
| 614 |
+
delete_transient("iowd_done_");
|
| 615 |
delete_transient("iowd_images_count_start");
|
| 616 |
delete_transient("iowd_optimizing_post_ids");
|
| 617 |
} else if (get_transient("iowd_response_error")) {
|
io-wd.php
CHANGED
|
@@ -4,9 +4,9 @@
|
|
| 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:
|
| 9 |
-
* Author URI:
|
| 10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
| 11 |
*/
|
| 12 |
|
| 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.19
|
| 8 |
+
* Author: 10Web
|
| 9 |
+
* Author URI: 10web.io
|
| 10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
| 11 |
*/
|
| 12 |
|
iowd-rest.php
CHANGED
|
@@ -85,7 +85,7 @@ class IOWD_Rest extends WP_REST_Controller
|
|
| 85 |
$optimizer = new IOWD_Optimize();
|
| 86 |
$optimizer->save_data_to_db($images_data, $iteration, $post_id);
|
| 87 |
|
| 88 |
-
$received_images =
|
| 89 |
if (!$received_images) {
|
| 90 |
$data_count = get_option("iowd_data_count_" . $post_id);
|
| 91 |
$received_images = range(0, $data_count-1);
|
|
@@ -93,7 +93,7 @@ class IOWD_Rest extends WP_REST_Controller
|
|
| 93 |
unset($received_images[$iteration]);
|
| 94 |
|
| 95 |
if (empty($received_images) === true) {
|
| 96 |
-
|
| 97 |
$post_ids = get_transient("iowd_optimizing_post_ids");
|
| 98 |
$post_ids = $post_ids ? $post_ids : array();
|
| 99 |
if (($key = array_search($post_id, $post_ids)) !== false) {
|
|
@@ -106,10 +106,10 @@ class IOWD_Rest extends WP_REST_Controller
|
|
| 106 |
delete_option("iowd_image_temp_data_" . $post_id);
|
| 107 |
delete_option("iowd_data_count_" . $post_id);
|
| 108 |
if (strpos($post_id, "auto") === false) {
|
| 109 |
-
|
| 110 |
}
|
| 111 |
} else {
|
| 112 |
-
|
| 113 |
}
|
| 114 |
|
| 115 |
|
| 85 |
$optimizer = new IOWD_Optimize();
|
| 86 |
$optimizer->save_data_to_db($images_data, $iteration, $post_id);
|
| 87 |
|
| 88 |
+
$received_images = get_transient("iowd_received_images_" . $post_id);
|
| 89 |
if (!$received_images) {
|
| 90 |
$data_count = get_option("iowd_data_count_" . $post_id);
|
| 91 |
$received_images = range(0, $data_count-1);
|
| 93 |
unset($received_images[$iteration]);
|
| 94 |
|
| 95 |
if (empty($received_images) === true) {
|
| 96 |
+
delete_transient("iowd_received_images_" . $post_id);
|
| 97 |
$post_ids = get_transient("iowd_optimizing_post_ids");
|
| 98 |
$post_ids = $post_ids ? $post_ids : array();
|
| 99 |
if (($key = array_search($post_id, $post_ids)) !== false) {
|
| 106 |
delete_option("iowd_image_temp_data_" . $post_id);
|
| 107 |
delete_option("iowd_data_count_" . $post_id);
|
| 108 |
if (strpos($post_id, "auto") === false) {
|
| 109 |
+
set_transient("iowd_done_" . $post_id, 1);
|
| 110 |
}
|
| 111 |
} else {
|
| 112 |
+
set_transient("iowd_received_images_" . $post_id, $received_images);
|
| 113 |
}
|
| 114 |
|
| 115 |
|
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();
|
|
@@ -71,8 +71,11 @@ class IOWD
|
|
| 71 |
|
| 72 |
// add meta fields
|
| 73 |
add_filter("plugin_row_meta", array($this, 'meta_links'), 10, 2);
|
|
|
|
|
|
|
| 74 |
|
| 75 |
}
|
|
|
|
| 76 |
public function meta_links($meta_fields, $file)
|
| 77 |
{
|
| 78 |
if (IOWD_MAIN_FILE == $file) {
|
|
@@ -101,7 +104,37 @@ class IOWD
|
|
| 101 |
return $meta_fields;
|
| 102 |
}
|
| 103 |
|
| 104 |
-
public
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
{
|
| 106 |
//delete_transient('iowd_update_check');
|
| 107 |
require_once IOWD_DIR_INCLUDES . "/iowd-helper.php";
|
|
@@ -476,30 +509,13 @@ class IOWD
|
|
| 476 |
public function upgrade_pro()
|
| 477 |
{
|
| 478 |
?>
|
| 479 |
-
<div class="tenweb_banner
|
| 480 |
-
<div class="tenweb_banner
|
| 481 |
-
<div class="
|
| 482 |
-
<div class="tenweb_plugin_name"><?php _e("Premium Image Optimizer", IOWD_PREFIX); ?></div>
|
| 483 |
-
</div>
|
| 484 |
-
<div class="tenweb_and"> & </div>
|
| 485 |
-
<div class="tenweb_desc">
|
| 486 |
-
<h3 class="tenweb_desc_h3 screen"><?php _e("Other solutions essential for your WordPress site", IOWD_PREFIX); ?></h3>
|
| 487 |
-
</div>
|
| 488 |
-
<div class="tenweb_banner-center wd-clear">
|
| 489 |
-
<div class="tenweb_services">
|
| 490 |
-
<h3 class="tenweb_desc_h3 screen"><?php _e("Other solutions essential for your WordPress site", IOWD_PREFIX); ?></h3>
|
| 491 |
-
<h3 class="tenweb_desc_h3 mobile"><?php _e("And other solutions essential for your WordPress site", IOWD_PREFIX); ?></h3>
|
| 492 |
-
<div><span class="dashboard"><?php _e("Unified Dashboard", IOWD_PREFIX); ?></span><span
|
| 493 |
-
class="pro-plugins"><?php _e("60+ Plugins/Add-ons", IOWD_PREFIX); ?></span><span
|
| 494 |
-
class="backup"><?php _e("Backup", IOWD_PREFIX); ?></span><span
|
| 495 |
-
class="seo"><?php _e("SEO", IOWD_PREFIX); ?></span><span
|
| 496 |
-
class="themes"><?php _e("Premium WP Themes", IOWD_PREFIX); ?></span></div>
|
| 497 |
-
</div>
|
| 498 |
</div>
|
| 499 |
<div class="tenweb_banner-right">
|
| 500 |
-
<div class="tenweb_banner_logo"></div>
|
| 501 |
<a href="https://10web.io/services/image-optimizer/" target="_blank"
|
| 502 |
-
class="button"><?php _e("
|
| 503 |
</div>
|
| 504 |
</div>
|
| 505 |
<?php
|
| 8 |
{
|
| 9 |
|
| 10 |
protected static $instance = null;
|
| 11 |
+
private static $version = '1.0.19';
|
| 12 |
private static $page;
|
| 13 |
private $reg_autoloader = false;
|
| 14 |
private $options = array();
|
| 71 |
|
| 72 |
// add meta fields
|
| 73 |
add_filter("plugin_row_meta", array($this, 'meta_links'), 10, 2);
|
| 74 |
+
add_action('wpmu_new_blog', array($this, 'new_blog_added'), 10, 6);
|
| 75 |
+
|
| 76 |
|
| 77 |
}
|
| 78 |
+
|
| 79 |
public function meta_links($meta_fields, $file)
|
| 80 |
{
|
| 81 |
if (IOWD_MAIN_FILE == $file) {
|
| 104 |
return $meta_fields;
|
| 105 |
}
|
| 106 |
|
| 107 |
+
public function activate()
|
| 108 |
+
{
|
| 109 |
+
if (function_exists('is_multisite') && is_multisite()) {
|
| 110 |
+
global $wpdb;
|
| 111 |
+
// Get all blog ids.
|
| 112 |
+
$blogids = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
|
| 113 |
+
foreach ($blogids as $blog_id) {
|
| 114 |
+
switch_to_blog($blog_id);
|
| 115 |
+
self::image_optimizer_activate();
|
| 116 |
+
restore_current_blog();
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
return;
|
| 120 |
+
} else {
|
| 121 |
+
self::image_optimizer_activate();
|
| 122 |
+
}
|
| 123 |
+
}
|
| 124 |
+
|
| 125 |
+
public function new_blog_added($blog_id)
|
| 126 |
+
{
|
| 127 |
+
if (!function_exists('is_plugin_active_for_network')) {
|
| 128 |
+
require_once(ABSPATH . '/wp-admin/includes/plugin.php');
|
| 129 |
+
}
|
| 130 |
+
if (is_plugin_active_for_network(IOWD_MAIN_FILE)) {
|
| 131 |
+
switch_to_blog($blog_id);
|
| 132 |
+
self::image_optimizer_activate();
|
| 133 |
+
restore_current_blog();
|
| 134 |
+
}
|
| 135 |
+
}
|
| 136 |
+
|
| 137 |
+
public static function image_optimizer_activate()
|
| 138 |
{
|
| 139 |
//delete_transient('iowd_update_check');
|
| 140 |
require_once IOWD_DIR_INCLUDES . "/iowd-helper.php";
|
| 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 for 10Web and get full access to Image Optimizer Premium with a 50K image/month for free.", IOWD_PREFIX); ?></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 515 |
</div>
|
| 516 |
<div class="tenweb_banner-right">
|
|
|
|
| 517 |
<a href="https://10web.io/services/image-optimizer/" target="_blank"
|
| 518 |
+
class="button"><?php _e("Sign up", IOWD_PREFIX); ?></a>
|
| 519 |
</div>
|
| 520 |
</div>
|
| 521 |
<?php
|
readme.txt
CHANGED
|
@@ -2,9 +2,9 @@
|
|
| 2 |
Contributors: webdorado,10web
|
| 3 |
Tags: : compress, image, images optimization, performance, photos, lossless, optimize
|
| 4 |
Requires at least: 3.9
|
| 5 |
-
Tested up to:
|
| 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 |
|
|
@@ -28,16 +28,20 @@ The advanced setting of the plugin allow you to convert your images to the file
|
|
| 28 |
The plugin provides statistics, so you can always know how many images were optimized, when the last optimization occurred and how much space you’ve saved in the result.
|
| 29 |
|
| 30 |
|
| 31 |
-
|
| 32 |
|
| 33 |
* Optimize PDF files
|
| 34 |
* Schedule optimization to automatically compress images hourly, twice daily or daily
|
| 35 |
-
* Optimize up to
|
| 36 |
* Maximum lossy/Extreme compression
|
| 37 |
|
| 38 |
|
| 39 |
== Changelog ==
|
| 40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
= 1.0.17 =
|
| 42 |
* Fixed: Conflict with photo gallery
|
| 43 |
* Changed: wd lib
|
| 2 |
Contributors: webdorado,10web
|
| 3 |
Tags: : compress, image, images optimization, performance, photos, lossless, optimize
|
| 4 |
Requires at least: 3.9
|
| 5 |
+
Tested up to: 5.1
|
| 6 |
Requires PHP: 5.5
|
| 7 |
+
Stable tag: 1.0.19
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 28 |
The plugin provides statistics, so you can always know how many images were optimized, when the last optimization occurred and how much space you’ve saved in the result.
|
| 29 |
|
| 30 |
|
| 31 |
+
[Sign up to 10Web](https://10web.io/services/image-optimizer/) to add features:
|
| 32 |
|
| 33 |
* Optimize PDF files
|
| 34 |
* Schedule optimization to automatically compress images hourly, twice daily or daily
|
| 35 |
+
* Optimize up to 50,000 images every month
|
| 36 |
* Maximum lossy/Extreme compression
|
| 37 |
|
| 38 |
|
| 39 |
== Changelog ==
|
| 40 |
|
| 41 |
+
|
| 42 |
+
= 1.0.19 =
|
| 43 |
+
* Added: Sign up 10Web Banner
|
| 44 |
+
|
| 45 |
= 1.0.17 =
|
| 46 |
* Fixed: Conflict with photo gallery
|
| 47 |
* Changed: wd lib
|
views/iowd_limit_display.php
CHANGED
|
@@ -24,12 +24,26 @@ if (!defined('ABSPATH')) {
|
|
| 24 |
<?php
|
| 25 |
if ($limitation["limit"]) {
|
| 26 |
?>
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
<div
|
| 34 |
class="iowd_stat-row">
|
| 35 |
<div
|
| 24 |
<?php
|
| 25 |
if ($limitation["limit"]) {
|
| 26 |
?>
|
| 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 every %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 for 10Web and get 50K image/month for free.', IOWD_PREFIX); ?></div>
|
| 38 |
+
<div>
|
| 39 |
+
<a href="https://10web.io/services/image-optimizer/" target="_blank"
|
| 40 |
+
class="button"><?php _e("Sign up", IOWD_PREFIX); ?></a>
|
| 41 |
+
</div>
|
| 42 |
+
</div>
|
| 43 |
+
</div>
|
| 44 |
+
</div>
|
| 45 |
+
</div>
|
| 46 |
+
</div>
|
| 47 |
<div
|
| 48 |
class="iowd_stat-row">
|
| 49 |
<div
|
views/iowd_settings_display.php
CHANGED
|
@@ -79,20 +79,27 @@ require_once IOWD_DIR_VIEWS . '/iowd_how_it_works_display.php';
|
|
| 79 |
<?php _e("Please don't leave the page while uploading.", IOWD_PREFIX); ?>
|
| 80 |
</div>
|
| 81 |
<?php if ($mode == "standart") { ?>
|
| 82 |
-
<div
|
| 83 |
-
|
| 84 |
-
<div
|
| 85 |
-
class="iowd-standart-cell <?php echo $standart_setting == "conservative" ? "iowd-standart-cell-active" : ""; ?>"
|
| 86 |
data-value="conservative"><?php _e("CONSERVATIVE", IOWD_PREFIX); ?></div>
|
| 87 |
-
<div
|
| 88 |
-
class="iowd-standart-cell <?php echo $standart_setting == "balanced" ? "iowd-standart-cell-active" : ""; ?>"
|
| 89 |
data-value="balanced"><?php _e("BALANCED", IOWD_PREFIX); ?></div>
|
| 90 |
-
<div
|
| 91 |
-
|
| 92 |
-
data-value="extreme"
|
| 93 |
-
title="<?php _e("This option is disabled in free version.", IOWD_PREFIX); ?>">
|
| 94 |
<?php _e("EXTREME", IOWD_PREFIX); ?>
|
| 95 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
</div>
|
| 97 |
<input
|
| 98 |
type="hidden"
|
| 79 |
<?php _e("Please don't leave the page while uploading.", IOWD_PREFIX); ?>
|
| 80 |
</div>
|
| 81 |
<?php if ($mode == "standart") { ?>
|
| 82 |
+
<div class="iowd-standart-mode-view iowd-standart-mode-view1">
|
| 83 |
+
|
| 84 |
+
<div class="iowd-standart-cell <?php echo $standart_setting == "conservative" ? "iowd-standart-cell-active" : ""; ?>"
|
|
|
|
| 85 |
data-value="conservative"><?php _e("CONSERVATIVE", IOWD_PREFIX); ?></div>
|
| 86 |
+
<div class="iowd-standart-cell <?php echo $standart_setting == "balanced" ? "iowd-standart-cell-active" : ""; ?>"
|
|
|
|
| 87 |
data-value="balanced"><?php _e("BALANCED", IOWD_PREFIX); ?></div>
|
| 88 |
+
<div class="iowd-standart-cell iowd-btn-disabled iowd-extreme"
|
| 89 |
+
data-value="extreme">
|
|
|
|
|
|
|
| 90 |
<?php _e("EXTREME", IOWD_PREFIX); ?>
|
| 91 |
</div>
|
| 92 |
+
<div class="tenweb_sign_up_tooltip">
|
| 93 |
+
<div>
|
| 94 |
+
<div>
|
| 95 |
+
<div><?php _e('Sign up for 10Web to activate Extreme mode for free.', IOWD_PREFIX); ?></div>
|
| 96 |
+
<div>
|
| 97 |
+
<a href="https://10web.io/services/image-optimizer/" target="_blank"
|
| 98 |
+
class="button"><?php _e("Sign up", IOWD_PREFIX); ?></a>
|
| 99 |
+
</div>
|
| 100 |
+
</div>
|
| 101 |
+
</div>
|
| 102 |
+
</div>
|
| 103 |
</div>
|
| 104 |
<input
|
| 105 |
type="hidden"
|
views/iowd_settings_form_display.php
CHANGED
|
@@ -120,7 +120,20 @@ if (!defined('ABSPATH')) {
|
|
| 120 |
<?php } ?>
|
| 121 |
<?php if (isset($field["pro_text"]) && $field["pro_text"] != "") { ?>
|
| 122 |
<br>
|
| 123 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 124 |
<?php } ?>
|
| 125 |
</div>
|
| 126 |
</div>
|
| 120 |
<?php } ?>
|
| 121 |
<?php if (isset($field["pro_text"]) && $field["pro_text"] != "") { ?>
|
| 122 |
<br>
|
| 123 |
+
<div class="iowd-pro-container iowd-pro-container-settings">
|
| 124 |
+
<div class="iowd-pro"><?php echo $field["pro_text"]; ?></div>
|
| 125 |
+
<div class="tenweb_sign_up_tooltip">
|
| 126 |
+
<div>
|
| 127 |
+
<div>
|
| 128 |
+
<div><?php _e('Sign up for 10Web and get full access to Image Optimizer Premium for free..', IOWD_PREFIX); ?></div>
|
| 129 |
+
<div>
|
| 130 |
+
<a href="https://10web.io/services/image-optimizer/" target="_blank"
|
| 131 |
+
class="button"><?php _e("Sign up", IOWD_PREFIX); ?></a>
|
| 132 |
+
</div>
|
| 133 |
+
</div>
|
| 134 |
+
</div>
|
| 135 |
+
</div>
|
| 136 |
+
</div>
|
| 137 |
<?php } ?>
|
| 138 |
</div>
|
| 139 |
</div>
|
