Imagify Image Optimizer - Version 1.4.1

Version Description

  • Interface

    • Medias: better comparison for big portrait images
    • Medias: Don't display the "Compare Original VS Optimized" button for images without backup
  • Bug Fix

    • WPML: Fix AJAX error caused by WPML to avoid issue during the API key validation process
    • Yoast: Remove JS error caused by Yoast SEO on the attachment edit screen to avoid issue with our "Compare Original VS Optimized"
Download this release

Release Info

Developer wp_media
Plugin Icon 128x128 Imagify Image Optimizer
Version 1.4.1
Comparing to
See all releases

Code changes from version 1.3.6.1 to 1.4.1

assets/css/admin.css CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  .imagify-plugins-error {
2
  overflow:hidden;
3
  padding-left:20px;
@@ -27,6 +30,10 @@
27
  background: rgba(0, 0, 0, 0) url("../images/spinner.gif") no-repeat scroll 0 0 / 20px 20px;
28
  opacity: 0.7;
29
  }
 
 
 
 
30
 
31
  .misc-pub-section.misc-pub-imagify h4 {
32
  font-size: 14px;
@@ -267,7 +274,8 @@ td .imagify-chart {
267
  }
268
  .imagify-settings .button,
269
  .imagify-welcome .button,
270
- .imagify-notice .button {
 
271
  height: auto;
272
  padding: 8px 20px;
273
  border: 0 none;
@@ -275,6 +283,7 @@ td .imagify-chart {
275
  font-weight: 600;
276
  box-shadow: 0 3px 0 rgba(0, 0, 0, .15);
277
  }
 
278
  .imagify-notice .button-mini {
279
  padding: 2px 10px;
280
  font-size: 13px;
@@ -312,19 +321,33 @@ td .imagify-chart {
312
  vertical-align: middle;
313
  }
314
  .imagify-settings .button-primary.button-primary,
315
- .imagify-welcome .button-primary.button-primary {
 
316
  background: #40B1D0;
317
  color: #FFF;
318
  box-shadow: 0 3px 0 rgba(51, 142, 166, 1);
319
- text-shadow: 0 -1px 1px #006799, 1px 0 1px #006799, 0 1px 1px #006799, -1px 0 1px #006799
320
  }
321
  .imagify-settings .button-primary:hover,
322
  .imagify-settings .button-primary:focus,
323
  .imagify-welcome .button-primary:hover,
324
- .imagify-welcome .button-primary:focus {
 
 
325
  background: rgb(51, 142, 166);
326
  box-shadow: 0 3px 0 rgb(31, 122, 146);
327
  }
 
 
 
 
 
 
 
 
 
 
 
328
  .imagify-settings input[type="text"] {
329
  color: #4A4A4A;
330
  font-weight: 600;
@@ -1132,7 +1155,8 @@ ul.imagify-datas-details.imagify-datas-details {
1132
  float: left;
1133
  width: 50%;
1134
  }
1135
- .media-sidebar .compat-field-imagify .imagify-datas-actions-links a {
 
1136
  display: block;
1137
  width: auto;
1138
  float: none;
@@ -1613,17 +1637,25 @@ ul.imagify-datas-details.imagify-datas-details {
1613
  }
1614
 
1615
  .imagify-number-you-optimized .number {
1616
- float: left;
1617
- margin-right: 15px;
1618
  font-size: 36px;
1619
  font-weight: bold;
1620
  line-height: 1.1;
 
1621
  }
1622
  .imagify-number-you-optimized .text {
1623
- display: block;
 
1624
  overflow: hidden;
1625
  font-size: 12px;
1626
  }
 
 
 
 
 
 
1627
  .imagify-number-you-optimized {
1628
  padding-bottom: 0.85em;
1629
  margin-bottom: 1.35em;
@@ -2008,6 +2040,15 @@ td.imagify-cell-filename {
2008
  border-radius: 50%;
2009
  }
2010
 
 
 
 
 
 
 
 
 
 
2011
  .imagify-modal .imagify-comparison-title {
2012
  font-size: 28px;
2013
  margin-bottom: 1em;
1
+ body.imagify-modal-is-open {
2
+ overflow: hidden;
3
+ }
4
  .imagify-plugins-error {
5
  overflow:hidden;
6
  padding-left:20px;
30
  background: rgba(0, 0, 0, 0) url("../images/spinner.gif") no-repeat scroll 0 0 / 20px 20px;
31
  opacity: 0.7;
32
  }
33
+ .spinner.imagify-hidden {
34
+ width: 0;
35
+ margin: 4px 0 0 0;
36
+ }
37
 
38
  .misc-pub-section.misc-pub-imagify h4 {
39
  font-size: 14px;
274
  }
275
  .imagify-settings .button,
276
  .imagify-welcome .button,
277
+ .imagify-notice .button,
278
+ .imagify-button-primary.imagify-button-primary {
279
  height: auto;
280
  padding: 8px 20px;
281
  border: 0 none;
283
  font-weight: 600;
284
  box-shadow: 0 3px 0 rgba(0, 0, 0, .15);
285
  }
286
+
287
  .imagify-notice .button-mini {
288
  padding: 2px 10px;
289
  font-size: 13px;
321
  vertical-align: middle;
322
  }
323
  .imagify-settings .button-primary.button-primary,
324
+ .imagify-welcome .button-primary.button-primary,
325
+ .imagify-button-primary.imagify-button-primary {
326
  background: #40B1D0;
327
  color: #FFF;
328
  box-shadow: 0 3px 0 rgba(51, 142, 166, 1);
329
+ text-shadow: 0 -1px 1px #006799, 1px 0 1px #006799, 0 1px 1px #006799!important;
330
  }
331
  .imagify-settings .button-primary:hover,
332
  .imagify-settings .button-primary:focus,
333
  .imagify-welcome .button-primary:hover,
334
+ .imagify-welcome .button-primary:focus,
335
+ .imagify-button-primary.imagify-button-primary:hover,
336
+ .imagify-button-primary.imagify-button-primary:focus {
337
  background: rgb(51, 142, 166);
338
  box-shadow: 0 3px 0 rgb(31, 122, 146);
339
  }
340
+
341
+ /* exception */
342
+ .wp_attachment_image .imagify-button-primary {
343
+ float: left;
344
+ padding: 0 10px 1px;
345
+ margin: 0 5px 2px 0;
346
+ font-size: 13px;
347
+ line-height: 26px;
348
+ box-shadow: 0 3px 0 rgba(51, 142, 166, 1);
349
+ }
350
+
351
  .imagify-settings input[type="text"] {
352
  color: #4A4A4A;
353
  font-weight: 600;
1155
  float: left;
1156
  width: 50%;
1157
  }
1158
+ .media-sidebar .compat-field-imagify .imagify-datas-actions-links a,
1159
+ .submitbox .misc-pub-imagify .imagify-datas-actions-links a {
1160
  display: block;
1161
  width: auto;
1162
  float: none;
1637
  }
1638
 
1639
  .imagify-number-you-optimized .number {
1640
+ display: table-cell;
1641
+ padding-right: 15px;
1642
  font-size: 36px;
1643
  font-weight: bold;
1644
  line-height: 1.1;
1645
+ vertical-align: middle;
1646
  }
1647
  .imagify-number-you-optimized .text {
1648
+ display: table-cell;
1649
+ vertical-align: middle;
1650
  overflow: hidden;
1651
  font-size: 12px;
1652
  }
1653
+ .imagify-number-you-optimized .text br {
1654
+ display: none;
1655
+ }
1656
+ .imagify-number-you-optimized > p {
1657
+ display: table;
1658
+ }
1659
  .imagify-number-you-optimized {
1660
  padding-bottom: 0.85em;
1661
  margin-bottom: 1.35em;
2040
  border-radius: 50%;
2041
  }
2042
 
2043
+ /* Attachment page exception */
2044
+ .wp_attachment_image #imagify-visual-comparison .close-btn {
2045
+ top: 0;
2046
+ }
2047
+ /* Attachment page exception */
2048
+ .wp_attachment_image #imagify-visual-comparison .imagify-modal-content {
2049
+ padding-top: 40px;
2050
+ }
2051
+
2052
  .imagify-modal .imagify-comparison-title {
2053
  font-size: 28px;
2054
  margin-bottom: 1em;
assets/css/admin.min.css CHANGED
@@ -1 +1 @@
1
- .imagify-plugins-error{overflow:hidden;padding-left:20px;list-style-type:disc}.imagify-plugins-error li{width:300px;line-height:30px}@media (max-width:570px){.imagify-plugins-error li{width:auto}}.imagify-notice-dismiss.notice-dismiss{text-decoration:none}.imagify-spinner{display:inline-block;width:20px;height:20px;margin-right:5px;vertical-align:middle;background:rgba(0,0,0,0) url("../images/spinner.gif") no-repeat scroll 0 0 / 20px 20px;opacity:0.7}.misc-pub-section.misc-pub-imagify h4{font-size:14px;margin-top:5px;margin-bottom:0}.imagify-sweet-alert button{margin-top:17px !important;height:45px !important;letter-spacing:3px;text-transform:uppercase !important;border-radius:3px !important;background-color:#40b1d0 !important;box-shadow:0 3px 0 #338ea6 !important}.imagify-sweet-alert button.cancel{background:#777 !important;box-shadow:0 3px 0 #444 !important}.imagify-sweet-alert-signup .sa-confirm-button-container{width:40%}.imagify-sweet-alert-signup button{width:100%;padding:0 !important}.imagify-sweet-alert .sa-input-error:before,.imagify-sweet-alert .sa-input-error:after,.imagify-sweet-alert .la-ball-fall{top:25% !important}#wpwrap{transition:all .4s}.stop-scrolling #wpwrap{filter:blur(2px)}.stop-scrolling #wpwrap #wpadminbar{top:-32px}.imagify-primary{color:#40b1d0}.imagify-secondary{color:#8cc152}#imagify-check-api-container{font-weight:bold}#imagify-check-api-container .dashicons{font-size:25px}#imagify-check-api-container .dashicons-no:before{color:#f06e57;vertical-align:-1px}#imagify-check-api-container .dashicons-yes:before{color:#8BC34A;vertical-align:-1px}.imagify-valid{color:#8BC34A}.imagify-chart{width:33.33%;position:relative}#imagify-overview-chart-legend{overflow:hidden}.imagify-doughnut-legend{margin-top:38px;list-style:none}.imagify-doughnut-legend li{display:block;padding-left:30px;position:relative;margin-bottom:15px;border-radius:5px;padding:3px 8px 2px 31px;font-size:14px;font-weight:600;cursor:default;-webkit-transition:background-color 200ms ease-in-out;-moz-transition:background-color 200ms ease-in-out;-o-transition:background-color 200ms ease-in-out;transition:background-color 200ms ease-in-out}.imagify-doughnut-legend li span{display:block;position:absolute;left:0;top:0;width:25px;height:25px;border-radius:50%}.imagify-chart{float:left;margin-bottom:20px}td .imagify-chart{float:none;margin-bottom:0}.imagify-chart-container{position:relative;width:180px;float:left;margin-right:40px}td .imagify-chart-container{width:18px;height:18px;float:none;margin-right:10px}td .imagify-chart{top:4px}.imagify-chart-percent{position:absolute;left:0;right:0;top:50%;margin-top:-14px;text-align:center;font-size:55px;font-weight:bold;color:#46B1CE}.imagify-chart-percent span{font-size:20px;vertical-align:super}.media_page_imagify-bulk-optimization .media-item{margin:0}.media_page_imagify-bulk-optimization .media-item .progress{float:none;width:100%;margin:0;background:#1F2331;box-shadow:0;border-radius:0}.media_page_imagify-bulk-optimization .media-item .percent{width:auto;padding:0 5px;line-height:1.85;font-size:12px}.media_page_imagify-bulk-optimization .media-item .progress,.media_page_imagify-bulk-optimization .media-item .percent{text-align:right}.media_page_imagify-bulk-optimization .media-item .progress .bar{width:1px;height:22px;margin-top:0;background:#46B1CE;border-radius:0;overflow:visible;-webkit-transition:width .5s;transition:width .5s}.imagify-settings a,.imagify-settings .button,.imagify-settings input,.imagify-welcome a,.imagify-welcome .button,.imagify-weolcome input{-webkit-transition:all .275s;transition:all .275s}.imagify-settings a{color:#40b1d0}.imagify-options-title{padding-bottom:.5em;border-bottom:3px solid #F2F2F2;font-size:13px;font-weight:500;text-transform:uppercase;letter-spacing:0.025em;color:#40b1d0}.imagify-settings,.imagify-settings p,.imagify-settings th{color:#5F758E}@media (max-width:782px){.imagify-settings .form-table th{padding-top:2em;padding-bottom:.5em}}.imagify-settings .form-table td{vertical-align:top}.imagify-settings .form-table th span{cursor:pointer}.imagify-middle th{padding-top:35px}.imagify-settings .button,.imagify-welcome .button,.imagify-notice .button{height:auto;padding:8px 20px;border:0 none;font-size:14px;font-weight:600;box-shadow:0 3px 0 rgba(0,0,0,.15)}.imagify-notice .button-mini{padding:2px 10px;font-size:13px}.button-primary.button-mini{padding:2px 10px}.imagify-settings .button.button-mini-flat{padding:3px 6px 5px;font-size:12px;box-shadow:none!important;line-height:1.2}.imagify-settings .button.button-mini-flat:hover,.imagify-settings .button.button-mini-flat:focus{box-shadow:none!important}.imagify-title .button-ghost.button-ghost{padding:2px 9px;border:1px solid #40B1D0;font-size:12px;font-weight:normal;color:#40B1D0;background:transparent}.imagify-title .button-ghost.button-ghost:hover,.imagify-title .button-ghost.button-ghost:focus{border-color:transparent;color:#000;background:#40B1D0}.button .dashicons{margin-right:5px;vertical-align:middle}.imagify-settings .button-primary.button-primary,.imagify-welcome .button-primary.button-primary{background:#40B1D0;color:#FFF;box-shadow:0 3px 0 rgba(51,142,166,1);text-shadow:0 -1px 1px #006799,1px 0 1px #006799,0 1px 1px #006799,-1px 0 1px #006799}.imagify-settings .button-primary:hover,.imagify-settings .button-primary:focus,.imagify-welcome .button-primary:hover,.imagify-welcome .button-primary:focus{background:rgb(51,142,166);box-shadow:0 3px 0 rgb(31,122,146)}.imagify-settings input[type="text"]{color:#4A4A4A;font-weight:600;box-shadow:none}.imagify-settings p.submit .button-primary{margin-left:240px}@media (max-width:850px){.imagify-settings p.submit .button-primary{margin-left:0px}.imagify-settings p.submit{text-align:center}}.imagify-title.imagify-title{position:relative;padding:30px 50px;font-size:23px;background:#2E3243;color:#FFF}.imagify-settings .imagify-title+.imagify-notice{margin:0;border-right:1px solid #D9D9D9;padding-top:15px;padding-bottom:15px}.imagify-logo{vertical-align:top}.imagify-sub-header,.imagify-sub-title.imagify-sub-title,.imagify-settings div.submit{margin:0;padding:20px;background:#F2F5F7}.imagify-bulk-info{margin:1em 1em 1em 240px;transition:margin .3s}@media (max-width:850px){.imagify-bulk-info{margin:1em}}.imagify-bulk-info p{display:inline-block;text-align:left;width:400px;max-width:100%;font-weight:bold}@media (min-width:1500px){.imagify-settings div.submit{display:table;width:100%}.imagify-settings div.submit >*{display:table-cell;vertical-align:middle}.imagify-bulk-info{padding:0 25px;text-align:right}}.imagify-settings div.submit{margin-top:2em;padding:20px 0}.imagify-sub-header th{text-align:right}.imagify-sub-header .form-table{margin:0}.imagify-sub-header th,.imagify-sub-header td{padding-top:0;padding-bottom:0}[for="api_key"]{padding-top:5px}.imagify-notice .imagify-rate-us.imagify-rate-us{position:relative;bottom:0;right:0;text-align:left}.imagify-notice .imagify-rate-us .stars{margin:0}.imagify-rate-us.imagify-rate-us{position:absolute;bottom:50%;right:20px;text-align:right;margin-bottom:-2.4em;color:#FFF}.imagify-rate-us a{color:#40B1D0}.imagify-rate-us .stars{display:inline-block;margin:2px 0 0 10px;text-decoration:none;letter-spacing:.2em;vertical-align:-1px}.imagify-rate-us .stars .dashicons:before{font-size:18px}.imagify-rate-us a:hover,.imagify-rate-us a:focus{color:#FEE102}@media (max-width:1220px){.imagify-rate-us.imagify-rate-us{position:static;margin-bottom:0;text-align:left}.imagify-rate-us.imagify-rate-us br{display:none}.imagify-rate-us .stars{display:block;margin-left:0}}.imagify-settings-section{padding:10px 20px}[id="imagify-settings"],.imagify-welcome .imagify-settings-section{border:1px solid #D9D9D9;border-top:0 none;background:#FFF}.imagify-br{line-height:2}.imagify-important{color:#F5A623}.imagify-info,.imagify-info a{color:#40B1D0;font-size:12px}.imagify-info{position:relative;display:inline-block;padding-left:25px;vertical-align:top}.imagify-info .dashicons{position:absolute;left:0;top:-1px}label+.imagify-info,label+.imagify-options-line,.imagify-visual-label{display:inline-block;max-width:70%;margin-left:15px;margin-top:2px!important;-webkit-transition:opacity .3s;transition:opacity .3s}.imagify-visual-label{vertical-align:-5px}label[for="imagify_sizes_full"]+.imagify-info{vertical-align:middle}.imagify-settings.imagify-settings [type="checkbox"]:not(:checked)+label+.imagify-options-line,.imagify-settings.imagify-settings [type="checkbox"]:not(:checked)+label .imagify-visual-label{opacity:.5}.imagify-settings.imagify-settings [type="checkbox"]:checked+label+.imagify-options-line,.imagify-settings.imagify-settings [type="checkbox"]:checked+label .imagify-visual-label{opacity:1}.imagify-checkbox-marged{max-width:500px;margin-left:45px}.imagify-settings.imagify-settings [type="checkbox"]:not(:checked),.imagify-settings.imagify-settings [type="checkbox"]:checked{opacity:0.01}.imagify-settings.imagify-settings [type="checkbox"]:not(:checked):focus,.imagify-settings.imagify-settings [type="checkbox"]:checked:focus{box-shadow:none!important;outline:none!important;border:0 none!important}.imagify-settings [type="checkbox"]:not(:checked)+label,.imagify-settings [type="checkbox"]:checked+label{position:relative;padding-left:6px;cursor:pointer;vertical-align:top}.imagify-settings [type="checkbox"]:not(:checked)+label:before,.imagify-settings [type="checkbox"]:checked+label:before{content:'';position:absolute;left:0;top:0;width:28px;height:28px;margin:0 0 0 -24px;border:2px solid #8BA6B4;background:#FFF;border-radius:4px}.imagify-settings [type="checkbox"]:not(:checked)+label:after,.imagify-settings [type="checkbox"]:checked+label:after{content:"✓";position:absolute;font-size:1.4em;top:3px;left:-16px;-webkit-transition:all .2s;-moz-transition:all .2s;-ms-transition:all .2s;transition:all .2s}.imagify-settings [type="checkbox"][disabled]:not(:checked)+label:before,.imagify-settings [type="checkbox"][disabled]:checked+label:before{border-color:#ccc;background:#ddd}.imagify-settings [type="checkbox"]:not(:checked)+label:after{opacity:0;-webkit-transform:scale(0);-moz-transform:scale(0);-ms-transform:scale(0);transform:scale(0)}.imagify-settings [type="checkbox"]:checked+label:after{opacity:1;-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}input[id^="imagify_sizes_"]:checked+label{font-weight:bold}.imagify-settings .mini[type="checkbox"]:not(:checked)+label:before,.imagify-settings .mini[type="checkbox"]:checked+label:before{width:15px;height:15px;border-width:1px;border-radius:2px;margin-top:0}.imagify-settings .mini[type="checkbox"]:not(:checked)+label:after,.imagify-settings .mini[type="checkbox"]:checked+label:after{content:"✓";font-size:.9em;left:-21px;top:1px}.imagify-settings [type="checkbox"]:not(:checked):focus+label:before,.imagify-settings [type="checkbox"]:checked:focus+label:before{border-style:dotted;border-color:#40b1d0}.imagify-inline-options{position:relative;display:table;width:100%;max-width:600px;border-collapse:collapse}.imagify-inline-options:after{content:"";display:table;clear:both}.imagify-inline-options input[type="radio"]:not(:checked),.imagify-inline-options input[type="radio"]:checked{position:absolute;left:5px;top:5px;display:none}.imagify-inline-options input[type="radio"]:not(:checked)+label,.imagify-inline-options input[type="radio"]:checked+label{position:relative;display:table-cell;padding:13px 10px;text-align:center;font-weight:600;font-size:16px;text-transform:uppercase;letter-spacing:0.1em;color:#FFF;background:#2E3243;border-left:1px solid rgba(255,255,255,0.2);box-shadow:0 -3px 0 rgba(0,0,0,0.1) inset,inset -1px 0 0 rgba(255,255,255,0.2);z-index:2;-webkit-transition:all .275s;transition:all .275s}.imagify-bulk-submit .imagify-inline-options input[type="radio"]:not(:checked)+label,.imagify-bulk-submit .imagify-inline-options input[type="radio"]:checked+label{margin-bottom:1.75em}.imagify-inline-options input[type="radio"]:not(:checked)+label:first-of-type,.imagify-inline-options input[type="radio"]:checked+label:first-of-type{border-radius:3px 0 0 3px}.imagify-inline-options input[type="radio"]:not(:checked)+label:last-of-type,.imagify-inline-options input[type="radio"]:checked+label:last-of-type{border-radius:0 3px 3px 0}.imagify-inline-options input[type="radio"]:checked+label{background:#8BC34A}.imagify-inline-options .imagify-info{margin-top:15px}.imagify-btn-info{display:block;font-size:0.7em;letter-spacing:0;line-height:1;text-transform:none}#describe-resize-larger input{width:5em}.imagify-col{overflow:hidden}.imagify-sidebar{float:right;width:280px;margin-left:25px}.imagify-sidebar-section{border:1px solid #BBB;background:#FFF}.imagify-sidebar-section+.imagify-sidebar-section{margin-top:2em}@media (max-width:760px){.imagify-settings{display:flex;flex-direction:column}.imagify-sidebar{order:2;float:none;width:auto;margin-left:0;margin-top:25px}.wp-media-products{text-align:center}.wp-media-products li{display:inline-block;width:100%;max-width:276px}}.imagify-sidebar-title{display:block;padding:20px 15px;border-bottom:1px solid #BBB;font-size:14px;font-weight:bold;color:#23282d;background:#F2F5F7}.imagify-sidebar-title img{vertical-align:top;margin-right:5px}.imagify-sidebar .wp-media-products{margin-top:0;margin-bottom:-.5em}.imagify-sidebar .wp-media-products .links{display:block;padding:85px 25px 24px;text-align:center;background-color:#2E3243;background-size:contain;background-repeat:no-repeat;background-position:50% 0;text-decoration:none}.imagify-sidebar .wp-media-products .links p{margin:1.5em auto;color:#FFF}.imagify-sidebar .wp-media-products .wprocket-link{background-image:linear-gradient(to bottom,rgba(59,30,78,0),rgba(59,30,78,0) 130px,rgba(59,30,78,1) 210px),url("../images/sidebar-wp-rocket.jpg");background-color:#3B1E4E;background-repeat:repeat-x,no-repeat}.imagify-sidebar-content{padding:10px 20px}.imagify-mark-styled{display:inline-block;padding:1px 2px 1px 4px;line-height:1.3;font-weight:bold;background:#F7A933;transform-origine:50% 50%;transform:rotateZ(-2deg) rotateX(-10deg) skewX(-2deg) skewY(-3deg);text-shadow:1px 1px 0 rgba(0,0,0,0.2)}.imagify-mark-styled span{display:inline-block;transform:rotateZ(2deg) rotateX(10deg) skewX(2deg) skewY(3deg)}.imagify-discount-code{margin:0.35em 0 .5em;display:block;font-size:2em;letter-spacing:.05em;font-weight:bold;text-align:center;text-shadow:1px 1px 0 rgba(0,0,0,0.2)}.imagify-big-text{font-size:15px;font-weight:bold}.imagify-big-text strong{font-size:20px}a.btn-rocket{display:block;font-size:1.15em;padding:12px;background:#F7A933;box-shadow:0 3px 0 #D69626;border-radius:3px;color:#FFF;text-transform:uppercase;font-weight:bold;text-shadow:1px 1px 0 rgba(0,0,0,0.2);text-decoration:none}a.btn-rocket:hover,a.btn-rocket:focus{background:darkorange;box-shadow:0 3px 0 darkorange}.imagify-welcome{margin:30px 20px 0 0}.imagify-welcome .baseline{display:inline-block;margin:.2em 0 0 2em;font-size:17px}.imagify-welcome .imagify-logo{vertical-align:middle}.imagify-welcome-remove{position:absolute;top:50%;right:15px;margin-top:-8px;color:#FFF;text-decoration:none}.imagify-columns{overflow:hidden;padding:15px 0;counter-reset:cols}.imagify-columns [class^="col-"]{float:left;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.imagify-columns .col-1-3{width:33.333%;padding-left:28px}.imagify-columns .col-1-2{width:50%;padding:0 20px}.imagify-columns .col-informations{width:41.6%;padding-right:30px}.imagify-columns .col-statistics{width:25%}@media (max-width:830px){.imagify-columns [class^="col-"]{float:none;margin-bottom:1.5em}.imagify-columns .col-1-3,.imagify-columns .col-1-2{width:auto;padding:0 28px;clear:both;padding-top:1em}}.imagify-columns [class^="col-"] img{float:left;margin-right:18px}.imagify-col-content{overflow:hidden}.imagify-col-title{margin:0 0 15px 0;font-size:23px}.counter .imagify-col-title:before{counter-increment:cols;content:counter(cols) ". ";color:#40B1D0}.imagify-col-desc{color:#5F758E;margin-bottom:2em}.imagify-notice.imagify-notice{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:0;margin:10px 20px 10px 2px;border:0 none;background:#2E3243;box-shadow:none;color:#FFF}@media (max-width:782px){.imagify-notice.imagify-notice,.imagify-welcome{margin-right:12px}}@media (max-width:450px){.imagify-notice.imagify-notice{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column; -ms-flex-direction:column; flex-direction:column}}.wrap .imagify-notice{margin:5px 15px 2px;position:relative}.imagify-notice-logo{padding:18px 23px;background:#40B1D0}.updated .imagify-notice-logo{background:#8BC34A}.error .imagify-notice-logo{background:#D0021B}.imagify-notice-title{font-size:15px}.imagify-notice-content{padding:5px 23px}.imagify-notice-content.imagify-notice-content p{margin:0.65em 0}.imagify-notice a{color:#40B1D0}.imagify-notice a:hover,.imagify-notice a:focus{color:#FEE102}.imagify-notice code{background:rgba(0,0,0,0.4) none repeat scroll 0 0}.column-imagify_optimized_file.column-imagify_optimized_file{width:300px;text-align:center;vertical-align:middle}.column-imagify_optimized_file >*{max-width:235px;margin:0 auto}ul.imagify-datas-list.imagify-datas-list{margin:0 auto;color:#555;font-size:10px}.compat-field-imagify .label{vertical-align:top}.compat-field-imagify ul.imagify-datas-list{margin-top:7px;font-size:11px}ul.imagify-datas-list .big{font-size:12px;color:#40B1D0}.imagify-data-item{overflow:hidden}.imagify-data-item .imagify-chart{display:inline-block;top:1px;width:20px;vertical-align:middle;margin-bottom:0}li.imagify-data-item{clear:both;margin-bottom:2px}ul.imagify-datas-list .imagify-data-item span.data,ul.imagify-datas-list .imagify-data-item strong{float:left;width:50%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}ul.imagify-datas-list .imagify-data-item span.data{text-align:left;padding-right:5px}.compat-field-imagify .imagify-datas-list .imagify-data-item .data{width:130px;text-align:left;font-weight:bold}.media-sidebar .imagify-datas-list .imagify-data-item .data{width:auto;float:none}ul.imagify-datas-list .imagify-data-item strong{text-align:left;padding-left:5px}.media-sidebar .imagify-datas-list .imagify-data-item strong{width:auto;float:none}.imagify-datas-more-action.imagify-datas-more-action{margin:.4em auto;background:linear-gradient(to bottom,transparent,transparent 49%,rgba(0,0,0,.075) 50%,rgba(0,0,0,.075) 58%,transparent 58%,transparent)}.imagify-datas-more-action a{display:inline-block;padding:0 5px;background:#40B1D0;color:#FFF;text-transform:uppercase;font-size:9px;font-weight:bold;line-height:1.9;text-decoration:none}.imagify-datas-more-action a.is-open{background:#555}.imagify-datas-more-action a.is-open .dashicons{transform:rotate(180deg)}.imagify-datas-more-action a .dashicons{font-size:14px;vertical-align:middle;line-height:.8}.imagify-datas-more-action a .dashicons:before{vertical-align:middle;line-height:20px}.imagify-datas-more-action .the-text{display:inline-block;vertical-align:middle;height:20px;line-height:20px}ul.imagify-datas-details.imagify-datas-details{margin:.7em auto}.imagify-datas-details strong{color:#40B1D0}.imagify-datas-details .original{color:#555}.imagify-datas-actions-links{overflow:hidden;border-top:2px solid transparent;padding-top:5px;font-size:8px}.imagify-datas-actions-links a{position:relative;display:inline-block;padding-left:17px;text-decoration:none;font-weight:600}.compat-field-imagify .imagify-datas-actions-links{max-width:300px}.misc-pub-imagify .imagify-datas-actions-links{border-top:2px solid #f2f2f2;padding-bottom:5px}.compat-field-imagify .imagify-datas-actions-links a,.misc-pub-imagify .imagify-datas-actions-links a{font-size:10px;float:left;width:50%}.media-sidebar .compat-field-imagify .imagify-datas-actions-links a{display:block;width:auto;float:none}.column-imagify_optimized_file .imagify-datas-actions-links a{margin:0 .7em;padding-left:15px}.imagify-datas-actions-links a:only-child{float:none;width:auto}.imagify-datas-details.is-open+.imagify-datas-actions-links{border-top-color:rgba(0,0,0,.075)}.imagify-datas-actions-links .dashicons{position:absolute;left:0;top:4px;width:12px;margin-right:2px;font-size:11px}.imagify-title >h1{padding:0}.imagify-title-right{display:table;float:right;margin-top:-10px}.imagify-title-right p{margin:0}.imagify-title-right a{font-weight:bold;text-decoration:none}.imagify-title-right >div{display:table-cell;vertical-align:middle}.imagify-title-right .dashicons-arrow-down-alt2{vertical-align:-4px;margin-left:2px}@media (max-width:1200px){.imagify-bulk .imagify-title{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.imagify-title-right{-webkit-box-ordinal-group:3;-webkit-order:2;-ms-flex-order:2;order:2;margin-top:20px}}.imagify-account,.imagify-account-link{padding-right:15px}.imagify-sep-v{width:1px;background:rgba(255,255,255,.2)}.imagify-credit-left{position:relative;min-width:280px;padding-left:15px}.imagify-meteo-icon{display:inline-block;height:38px;vertical-align:middle;margin-right:10px}.imagify-user-plan{color:#40b1d0}@media (max-width:630px){.imagify-title-right{display:block;width:auto}.imagify-title-right >div{display:block;width:auto;margin-top:10px;max-width:100%}.imagify-credit-left{padding-left:0}}.imagify-meteo-title.imagify-meteo-title{color:#FFF;font-size:17px}.imagify-space-left{display:inline-block;min-height:38px;min-width:245px;vertical-align:middle}.imagify-space-left >p{color:#FFF}[class^="imagify-bar-"],#wp-admin-bar-imagify-profile [class^="imagify-bar-"]{position:relative;height:15px;width:100%;background:#60758D;color:#FFF;font-size:10px}.base-transparent{background:transparent}[class^="imagify-bar-"].right-outside-number{-webkit-box-sizing:border-box;box-sizing:border-box;padding-right:45px}.right-outside-number .imagify-barnb{display:block;margin-right:-45px;text-align:right;font-weight:bold;line-height:15px}.imagify-progress-value,#wp-admin-bar-imagify-profile .imagify-progress-value{position:absolute;top:0;right:0;left:0;bottom:0;text-align:center;line-height:13px;font-weight:bold}.imagify-progress,#wp-admin-bar-imagify-profile .imagify-progress{height:15px}.imagify-bar-positive .imagify-progress{background:#8CC152}.imagify-bar-positive .imagify-barnb{color:#8CC152}.imagify-bar-negative .imagify-progress{background:#73818C}.imagify-bar-negative .imagify-barnb{color:#73818C}.imagify-bar-neutral .imagify-progress{background:#F5A623}.imagify-space-left .imagify-bar-negative .imagify-progress{background:#D0021B}#wpadminbar #wp-admin-bar-imagify-profile *{line-height:1.5;white-space:initial}#wpadminbar #wp-admin-bar-imagify .ab-submenu{padding-bottom:0}#wpadminbar #wp-admin-bar-imagify-profile .ab-item{height:auto;padding:0 13px}#wpadminbar #wp-admin-bar-imagify-profile{min-width:200px;padding:15px 0 10px;margin-top:0.7em;background:#222}#wp-admin-bar-imagify .dashicons{font-family:"dashicons";font-size:18px;vertical-align:middle;margin:0 5px 0 0}#wp-admin-bar-imagify .button-text{display:inline-block;vertical-align:middle}#wp-admin-bar-imagify .imagify-abq-row{display:table;width:100%}#wp-admin-bar-imagify .imagify-abq-row+.imagify-abq-row{margin-top:.75em}#wp-admin-bar-imagify .imagify-abq-row >*{display:table-cell}#wp-admin-bar-imagify-profile .imagify-meteo-icon{padding-right:7px}#wp-admin-bar-imagify-profile .imagify-meteo-icon img{width:37px}#wp-admin-bar-imagify-profile .imagify-meteo-title{font-size:17px}#wp-admin-bar-imagify-profile .imagify-meteo-subs{color:#72889F}#wpadminbar #wp-admin-bar-imagify-profile strong{font-weight:bold}#wpadminbar #wp-admin-bar-imagify-profile .imagify-user-plan,#wpadminbar #wp-admin-bar-imagify-profile a{padding:0;color:#40B1D0}#wpadminbar #wp-admin-bar-imagify-profile .imagify-account-link{display:table}#wpadminbar #wp-admin-bar-imagify-profile .imagify-account-link >* {display:table-cell}#wpadminbar #wp-admin-bar-imagify-profile .imagify-space-left{max-width:210px;min-width:210px;width:210px}#wpadminbar #wp-admin-bar-imagify-profile .imagify-space-left p{font-size:12px}#wp-admin-bar-imagify-profile .imagify-error,#wp-admin-bar-imagify-profile .imagify-warning{padding:10px;margin:0 -13px -13px}#wp-admin-bar-imagify-profile .imagify-error p+p,#wp-admin-bar-imagify-profile .imagify-warning p+p{margin-top:.5em}#wp-admin-bar-imagify-profile .imagify-error p+p+p,#wp-admin-bar-imagify-profile .imagify-warning p+p+p{margin-top:1em}.btn-ghost,#wpadminbar #wp-admin-bar-imagify-profile .btn-ghost{display:inline-block;height:auto;padding:7px 10px;border:1px solid #FFF;text-align:center;background:transparent;color:#FFF;border-radius:3px;transition:all .275s}.btn-ghost:hover,.btn-ghost:focus,#wpadminbar #wp-admin-bar-imagify-profile .btn-ghost:hover,#wpadminbar #wp-admin-bar-imagify-profile .btn-ghost:focus{background:#FFF;color:#888}.txt-center{text-align:center}.imagify-list-dash li{position:relative;padding-left:24px}.imagify-list-dash li:before{content:"";position:absolute;left:0;top:9px;height:1px;width:12px;background:#5f758e}.imagify-sub-title.imagify-sub-title{font-size:23px;background:#FFF;color:#2E3243;border-left:1px solid #D9D9D9;border-right:1px solid #D9D9D9;font-weight:lighter}.imagify-sub-title .icon-bulk{margin-right:10px;vertical-align:middle}.imagify-sub-title .title-text{display:inline-block;line-height:1;vertical-align:middle}.imagify-bulk .imagify-settings-section{border:1px solid #D9D9D9;border-top:0;background:#F2F5F7;color:#4A4A4A}.imagify-bulk .imagify-settings-section p,.imagify-bulk .imagify-settings-section li,.imagify-bulk .imagify-settings-section h3{color:#4A4A4A}.imagify-bulk .imagify-settings-section h3{margin-bottom:2em}.imagify-bulk-submit{margin-top:4em}#imagify-bulk-action{float:left}#imagify-bulk-action+.imagify-tooltips{overflow:hidden;display:block}.imagify-title .imagify-tooltips{position:absolute;top:100%;left:0}.imagify-tooltips .icon-round{float:left;display:inline-block;width:28px;height:28px;border:1px solid #FFF;margin-right:8px;margin-bottom:8px;font-size:17px;font-style:italic;line-height:29px;font-weight:bold;text-align:center;border-radius:50%}.imagify-tooltips .tooltip-content{display:block;position:relative;max-width:250px;padding:7px 15px 8px;background:#2e3242;color:#FFF;font-size:10px;border-radius:3px}.imagify-tooltips.right .tooltip-content{margin-left:12px}.imagify-tooltips.bottom .tooltip-content{margin-top:4px}.imagify-inline-options label .tooltip-content{position:absolute;left:0;right:0;top:100%;text-transform:none;font-size:10px;letter-spacing:0;text-align:center}.imagify-tooltips .tooltip-content:after{content:"";position:absolute}.imagify-tooltips.right .tooltip-content:after{top:16px;left:-6px;border-right:8px solid #2e3242;border-top:6px solid transparent;border-bottom:6px solid transparent}.imagify-tooltips.bottom .tooltip-content:after{top:-5px;left:50%;margin-left:-3px;border-bottom:6px solid #2e3242;border-left:6px solid transparent;border-right:6px solid transparent}.imagify-space-tooltips .tooltip-content{max-width:280px;margin-top:20px;margin-left:0;padding:5px 15px 5px;font-size:13px;background:#40B1D0;box-shadow:0 3px 0 #338EA6}.imagify-space-tooltips .tooltip-content:after{top:-14px;left:50%;margin-left:-7px;border:0 none;border-bottom:15px solid #40B1D0;border-left:15px solid transparent;border-right:15px solid transparent}.tooltip-content.tooltip-table{display:table;width:100%}.tooltip-content.tooltip-table >*{display:table-cell;vertical-align:middle}.tooltip-content .cell-icon{width:28px}.tooltip-content .cell-icon .icon{margin-bottom:0}.tooltip-content .cell-text{padding:5px 10px 5px 0;line-height:1.3}.tooltip-content .cell-sep{width:1px;background:rgba(255,255,255,.4)}.tooltip-content .cell-cta{padding-left:10px}.tooltip-content .cell-cta a{display:block;color:#FFF;width:100%;height:100%;white-space:nowrap}.imagify-number-you-optimized .number{float:left;margin-right:15px;font-size:36px;font-weight:bold;line-height:1.1}.imagify-number-you-optimized .text{display:block;overflow:hidden;font-size:12px}.imagify-number-you-optimized{padding-bottom:0.85em;margin-bottom:1.35em;overflow:hidden;border-bottom:1px solid rgba(0,0,0,0.05)}.imagify-bars p{font-weight:bold;font-size:12px;margin-bottom:0}.imagify-bars+.imagify-number-you-optimized{border-bottom:0;padding-top:0.85em}.imagify-bars+.imagify-number-you-optimized p{color:#46b1ce}.imagify-bulk-table{margin-top:2em;max-height:600px;max-height:60vh;overflow:auto}.imagify-bulk-table table{width:100%;border-spacing:0;border-collapse:collapse;border:1px solid #D3D3D3}.imagify-bulk-table td{padding:8px 15px}.imagify-bulk-table thead tr,.imagify-bulk-table thead th{background:#2E3242}.imagify-bulk-table tfoot tr,.imagify-bulk-table tfoot th{background:#73818C}.imagify-bulk-table thead th{padding:14px 15px;text-align:left;color:#F2F5F7;font-weight:bold;font-size:14px}.imagify-bulk-table tfoot td{padding:14px 15px;color:#F9FAFA}.imagify-bulk-table tbody tr,.imagify-bulk-table tbody td{background:#FFF}.imagify-bulk-table tbody tr:nth-child(odd),.imagify-bulk-table tbody tr:nth-child(odd) td{background:#F2F5F7}.imagify-bulk-table .imagify-row-progress{display:none}.imagify-bulk-table .imagify-row-progress,.imagify-bulk-table .imagify-row-progress td{height:15px;padding:0}.imagify-bulk-table .imagify-no-uploaded-yet td{height:200px;font-size:17px;letter-spacing:.1em;word-spacing:.12em;vertical-align:middle;text-transform:uppercase;font-weight:bold;text-align:center;color:#999;background-color:#FFF}.imagify-row-complete{padding:35px 20px;margin-top:2em;background:#8BC34A;color:#FFF;text-shadow:0 0 2px rgba(0,0,0,.1)}.imagify-row-complete .imagify-ac-chart{margin-top:3px}.imagify-row-complete p{color:#FFF;margin:0}@-webkit-keyframes congrate{ 0%{opacity:0;-webkit-transform:scale(1)} 50%{-webkit-transform:scale(1.05);opacity:1} 100%{-webkit-transform:scale(1);opacity:1}}​@keyframes congrate{ 0%{opacity:0;transform:scale(1)} 50%{transform:scale(1.05);opacity:1} 100%{transform:scale(1);opacity:1}}.imagify-row-complete.done{-webkit-animation:congrate 500ms ease-in-out;animation:congrate 500ms ease-in-out}.imagify-all-complete{margin:1.5em 0}.imagify-all-complete >div{display:inline-block;vertical-align:middle}.imagify-ac-report{min-width:310px}.imagify-ac-chart{width:46px;height:46px;float:left;margin:0 20px 0 10px}.imagify-ac-report-text{overflow:hidden}.imagify-ac-report-text p{line-height:1.3}.imagify-ac-rt-big{font-weight:bold;font-size:24px;letter-spacing:0.15em;word-spacing:0.15em;text-transform:uppercase}.imagify-ac-share{text-align:right}.imagify-ac-share-content{display:inline-block;padding:10px 15px;background:rgba(255,255,255,.2)}.imagify-ac-share-content >*{display:inline-block;vertical-align:middle}.imagify-bulk-table .imagify-ac-share-content p{margin-right:5px}.imagify-share-networks,.imagify-share-networks li{margin:0}.imagify-share-networks li{display:inline-block}.imagify-share-networks a{display:inline-block;vertical-align:-7px;margin:0 5px;text-decoration:none;color:#FFF}.imagify-cell-filename{max-width:200px}.imagify-cell-status{max-width:145px}.imagify-cell-status .dashicons-warning{margin-right:2px}.imagify-cell-thumbnails{max-width:120px}td.imagify-cell-filename{text-overflow:clip;white-space:nowrap;overflow:hidden}.imagify-bulk-table td.imagify-cell-totaloriginal{padding-right:78px}.imagiuploaded,.imagifilename{display:inline-block;vertical-align:middle}.imagifilename{font-size:12px}.imagiuploaded{width:33px;height:33px;margin-right:5px;margin-left:-8px;overflow:hidden;background:url(../images/upload-image.png) 0 0 no-repeat;background-size:cover}.imagiuploaded img{max-widht:100%;height:auto}.imagistatus{color:#8CA6B3;text-transform:uppercase;font-weight:bold}.status-compressing{color:#46B1CE}.status-error{color:#CE0B24}.status-warning{color:#f5a623}.status-complete{color:#8CC152}.imagify-error{background:#D0021B;color:#FFF}.imagify-warning,#wpadminbar .imagify-warning *{background:#f5a623;color:#FFF;text-shadow:0 0 2px rgba(0,0,0,0.2)}.imagify-bulk-table .imagify-cell-thumbnails{text-align:center}.imagify-cell-percentage,.imagify-cell-savings{color:#46B1CE;font-weight:bold}.imagify-cell-optimized{font-weight:bold}.imagify-cell-totaloriginal{text-align:right}.dashicons.rotate{-webkit-animation:icon-rotate 2.6s infinite linear;animation:icon-rotate 2.6s infinite linear}.dashicons-admin-generic{transform-origin:48.75% 51.75%}.imagify-modal{display:flex;flex-direction:column;align-items:center;justify-content:center}.js .imagify-modal{display:none;position:fixed;top:0;right:0;bottom:0;left:0;background-color:#1F2332;background-color:rgba(31,35,50,.95);z-index:99999}.imagify-modal-content{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;width:800px;max-width:95%;max-height:90vw;overflow:auto;padding:20px 25px;margin:1em auto;background:#FFF;box-shadow:1px 1px 4px rgba(0,0,0,.7);border-radius:3px}#imagify-visual-comparison .imagify-modal-content{max-width:1400px;background:transparent;padding:5px;box-shadow:none;border-radius:0}.imagify-modal .h2{margin:.5em 0;color:#8ba6b4;font-weight:normal;font-size:24px;letter-spacing:0.075em;text-align:center}.imagify-modal .h3{color:#40b1d0;font-weight:normal;font-size:18px;letter-spacing:0.075em;text-align:center}.text-justify{text-align:justify}.imagify-modal .close-btn{display:none;visibility:hidden;position:absolute;right:20px;top:20px;font-size:1.2em;border:0;background:transparent none;border-radius:0;cursor:pointer}.imagify-modal .close-btn:hover,.imagify-modal .close-btn:focus{color:#40b1d0}.js .imagify-modal .close-btn{display:block;visibility:visible}#imagify-visual-comparison .close-btn{top:50px;right:5px;width:33px;height:33px;padding:1px 0 0 2px;border:1px solid #F2F2F2;color:#F2F2F2;line-height:19px;text-align:center;border-radius:50%}.imagify-modal .imagify-comparison-title{font-size:28px;margin-bottom:1em;color:#F2F2F2;text-align:left}.imagify-modal .imagify-comparison-title .twentytwenty-duo-buttons{position:static;margin:0 10px 0 15px}.imagify-comparison-title .twentytwenty-duo-buttons button{float:none;padding:6px 12px;font-size:16px;text-transform:none;border:1px solid #40B1D0;color:#889;letter-spacing:0}.imagify-comparison-title .twentytwenty-duo-buttons button:focus{outline:none;box-shadow:none}.imagify-comparison-title .twentytwenty-duo-buttons .selected{border:1px solid #40B1D0;color:#FFF;background:#40B1D0}.imagify-comparison-levels{margin:15px 0;overflow:hidden}.imagify-comparison-levels div{display:none;min-width:175px;font-size:11px}.imagify-comparison-levels .imagify-chart,.imagify-comparison-levels .imagify-chart-container{width:25px;float:none;margin:0}.imagify-c-level.go-left{float:left}.imagify-c-level.go-right{float:right}.imagify-c-level.go-right,.imagify-c-level.go-left{display:table}.imagify-c-level .imagify-c-level-row{display:table-row;margin:0;color:#FFF}.imagify-c-level-row >span{display:table-cell;padding:2px 0}.imagify-c-level-row .value{text-align:right;padding-left:5px}.imagify-c-level-row .value.level{color:#40b1d0}.imagify-c-level-row .value.size{color:#8bc34a;font-weight:bold}.imagify-c-level-row .value .imagify-chart{top:1px}@-webkit-keyframes icon-rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes icon-rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.imagify-menu-bar-img{margin-top:1em}.imagify-modal .loader{position:absolute;top:50%;left:50%;margin:-32px 0 0 -32px;opacity:0;visibility:hidden;transition:opacity .4s}.imagify-modal .loading .loader{visibility:visible;opacity:1}.imagify-settings .imagify-visual-comparison-text{margin-top:1em;color:#40b1d0;font-weight:bold}
1
+ body.imagify-modal-is-open{overflow:hidden}.imagify-plugins-error{overflow:hidden;padding-left:20px;list-style-type:disc}.imagify-plugins-error li{width:300px;line-height:30px}@media (max-width:570px){.imagify-plugins-error li{width:auto}}.imagify-notice-dismiss.notice-dismiss{text-decoration:none}.imagify-spinner{display:inline-block;width:20px;height:20px;margin-right:5px;vertical-align:middle;background:rgba(0,0,0,0) url("../images/spinner.gif") no-repeat scroll 0 0 / 20px 20px;opacity:0.7}.spinner.imagify-hidden{width:0;margin:4px 0 0 0}.misc-pub-section.misc-pub-imagify h4{font-size:14px;margin-top:5px;margin-bottom:0}.imagify-sweet-alert button{margin-top:17px !important;height:45px !important;letter-spacing:3px;text-transform:uppercase !important;border-radius:3px !important;background-color:#40b1d0 !important;box-shadow:0 3px 0 #338ea6 !important}.imagify-sweet-alert button.cancel{background:#777 !important;box-shadow:0 3px 0 #444 !important}.imagify-sweet-alert-signup .sa-confirm-button-container{width:40%}.imagify-sweet-alert-signup button{width:100%;padding:0 !important}.imagify-sweet-alert .sa-input-error:before,.imagify-sweet-alert .sa-input-error:after,.imagify-sweet-alert .la-ball-fall{top:25% !important}#wpwrap{transition:all .4s}.stop-scrolling #wpwrap{filter:blur(2px)}.stop-scrolling #wpwrap #wpadminbar{top:-32px}.imagify-primary{color:#40b1d0}.imagify-secondary{color:#8cc152}#imagify-check-api-container{font-weight:bold}#imagify-check-api-container .dashicons{font-size:25px}#imagify-check-api-container .dashicons-no:before{color:#f06e57;vertical-align:-1px}#imagify-check-api-container .dashicons-yes:before{color:#8BC34A;vertical-align:-1px}.imagify-valid{color:#8BC34A}.imagify-chart{width:33.33%;position:relative}#imagify-overview-chart-legend{overflow:hidden}.imagify-doughnut-legend{margin-top:38px;list-style:none}.imagify-doughnut-legend li{display:block;padding-left:30px;position:relative;margin-bottom:15px;border-radius:5px;padding:3px 8px 2px 31px;font-size:14px;font-weight:600;cursor:default;-webkit-transition:background-color 200ms ease-in-out;-moz-transition:background-color 200ms ease-in-out;-o-transition:background-color 200ms ease-in-out;transition:background-color 200ms ease-in-out}.imagify-doughnut-legend li span{display:block;position:absolute;left:0;top:0;width:25px;height:25px;border-radius:50%}.imagify-chart{float:left;margin-bottom:20px}td .imagify-chart{float:none;margin-bottom:0}.imagify-chart-container{position:relative;width:180px;float:left;margin-right:40px}td .imagify-chart-container{width:18px;height:18px;float:none;margin-right:10px}td .imagify-chart{top:4px}.imagify-chart-percent{position:absolute;left:0;right:0;top:50%;margin-top:-14px;text-align:center;font-size:55px;font-weight:bold;color:#46B1CE}.imagify-chart-percent span{font-size:20px;vertical-align:super}.media_page_imagify-bulk-optimization .media-item{margin:0}.media_page_imagify-bulk-optimization .media-item .progress{float:none;width:100%;margin:0;background:#1F2331;box-shadow:0;border-radius:0}.media_page_imagify-bulk-optimization .media-item .percent{width:auto;padding:0 5px;line-height:1.85;font-size:12px}.media_page_imagify-bulk-optimization .media-item .progress,.media_page_imagify-bulk-optimization .media-item .percent{text-align:right}.media_page_imagify-bulk-optimization .media-item .progress .bar{width:1px;height:22px;margin-top:0;background:#46B1CE;border-radius:0;overflow:visible;-webkit-transition:width .5s;transition:width .5s}.imagify-settings a,.imagify-settings .button,.imagify-settings input,.imagify-welcome a,.imagify-welcome .button,.imagify-weolcome input{-webkit-transition:all .275s;transition:all .275s}.imagify-settings a{color:#40b1d0}.imagify-options-title{padding-bottom:.5em;border-bottom:3px solid #F2F2F2;font-size:13px;font-weight:500;text-transform:uppercase;letter-spacing:0.025em;color:#40b1d0}.imagify-settings,.imagify-settings p,.imagify-settings th{color:#5F758E}@media (max-width:782px){.imagify-settings .form-table th{padding-top:2em;padding-bottom:.5em}}.imagify-settings .form-table td{vertical-align:top}.imagify-settings .form-table th span{cursor:pointer}.imagify-middle th{padding-top:35px}.imagify-settings .button,.imagify-welcome .button,.imagify-notice .button,.imagify-button-primary.imagify-button-primary{height:auto;padding:8px 20px;border:0 none;font-size:14px;font-weight:600;box-shadow:0 3px 0 rgba(0,0,0,.15)}.imagify-notice .button-mini{padding:2px 10px;font-size:13px}.button-primary.button-mini{padding:2px 10px}.imagify-settings .button.button-mini-flat{padding:3px 6px 5px;font-size:12px;box-shadow:none!important;line-height:1.2}.imagify-settings .button.button-mini-flat:hover,.imagify-settings .button.button-mini-flat:focus{box-shadow:none!important}.imagify-title .button-ghost.button-ghost{padding:2px 9px;border:1px solid #40B1D0;font-size:12px;font-weight:normal;color:#40B1D0;background:transparent}.imagify-title .button-ghost.button-ghost:hover,.imagify-title .button-ghost.button-ghost:focus{border-color:transparent;color:#000;background:#40B1D0}.button .dashicons{margin-right:5px;vertical-align:middle}.imagify-settings .button-primary.button-primary,.imagify-welcome .button-primary.button-primary,.imagify-button-primary.imagify-button-primary{background:#40B1D0;color:#FFF;box-shadow:0 3px 0 rgba(51,142,166,1);text-shadow:0 -1px 1px #006799,1px 0 1px #006799,0 1px 1px #006799!important}.imagify-settings .button-primary:hover,.imagify-settings .button-primary:focus,.imagify-welcome .button-primary:hover,.imagify-welcome .button-primary:focus,.imagify-button-primary.imagify-button-primary:hover,.imagify-button-primary.imagify-button-primary:focus{background:rgb(51,142,166);box-shadow:0 3px 0 rgb(31,122,146)}.wp_attachment_image .imagify-button-primary{float:left;padding:0 10px 1px;margin:0 5px 2px 0;font-size:13px;line-height:26px;box-shadow:0 3px 0 rgba(51,142,166,1)}.imagify-settings input[type="text"]{color:#4A4A4A;font-weight:600;box-shadow:none}.imagify-settings p.submit .button-primary{margin-left:240px}@media (max-width:850px){.imagify-settings p.submit .button-primary{margin-left:0px}.imagify-settings p.submit{text-align:center}}.imagify-title.imagify-title{position:relative;padding:30px 50px;font-size:23px;background:#2E3243;color:#FFF}.imagify-settings .imagify-title+.imagify-notice{margin:0;border-right:1px solid #D9D9D9;padding-top:15px;padding-bottom:15px}.imagify-logo{vertical-align:top}.imagify-sub-header,.imagify-sub-title.imagify-sub-title,.imagify-settings div.submit{margin:0;padding:20px;background:#F2F5F7}.imagify-bulk-info{margin:1em 1em 1em 240px;transition:margin .3s}@media (max-width:850px){.imagify-bulk-info{margin:1em}}.imagify-bulk-info p{display:inline-block;text-align:left;width:400px;max-width:100%;font-weight:bold}@media (min-width:1500px){.imagify-settings div.submit{display:table;width:100%}.imagify-settings div.submit >*{display:table-cell;vertical-align:middle}.imagify-bulk-info{padding:0 25px;text-align:right}}.imagify-settings div.submit{margin-top:2em;padding:20px 0}.imagify-sub-header th{text-align:right}.imagify-sub-header .form-table{margin:0}.imagify-sub-header th,.imagify-sub-header td{padding-top:0;padding-bottom:0}[for="api_key"]{padding-top:5px}.imagify-notice .imagify-rate-us.imagify-rate-us{position:relative;bottom:0;right:0;text-align:left}.imagify-notice .imagify-rate-us .stars{margin:0}.imagify-rate-us.imagify-rate-us{position:absolute;bottom:50%;right:20px;text-align:right;margin-bottom:-2.4em;color:#FFF}.imagify-rate-us a{color:#40B1D0}.imagify-rate-us .stars{display:inline-block;margin:2px 0 0 10px;text-decoration:none;letter-spacing:.2em;vertical-align:-1px}.imagify-rate-us .stars .dashicons:before{font-size:18px}.imagify-rate-us a:hover,.imagify-rate-us a:focus{color:#FEE102}@media (max-width:1220px){.imagify-rate-us.imagify-rate-us{position:static;margin-bottom:0;text-align:left}.imagify-rate-us.imagify-rate-us br{display:none}.imagify-rate-us .stars{display:block;margin-left:0}}.imagify-settings-section{padding:10px 20px}[id="imagify-settings"],.imagify-welcome .imagify-settings-section{border:1px solid #D9D9D9;border-top:0 none;background:#FFF}.imagify-br{line-height:2}.imagify-important{color:#F5A623}.imagify-info,.imagify-info a{color:#40B1D0;font-size:12px}.imagify-info{position:relative;display:inline-block;padding-left:25px;vertical-align:top}.imagify-info .dashicons{position:absolute;left:0;top:-1px}label+.imagify-info,label+.imagify-options-line,.imagify-visual-label{display:inline-block;max-width:70%;margin-left:15px;margin-top:2px!important;-webkit-transition:opacity .3s;transition:opacity .3s}.imagify-visual-label{vertical-align:-5px}label[for="imagify_sizes_full"]+.imagify-info{vertical-align:middle}.imagify-settings.imagify-settings [type="checkbox"]:not(:checked)+label+.imagify-options-line,.imagify-settings.imagify-settings [type="checkbox"]:not(:checked)+label .imagify-visual-label{opacity:.5}.imagify-settings.imagify-settings [type="checkbox"]:checked+label+.imagify-options-line,.imagify-settings.imagify-settings [type="checkbox"]:checked+label .imagify-visual-label{opacity:1}.imagify-checkbox-marged{max-width:500px;margin-left:45px}.imagify-settings.imagify-settings [type="checkbox"]:not(:checked),.imagify-settings.imagify-settings [type="checkbox"]:checked{opacity:0.01}.imagify-settings.imagify-settings [type="checkbox"]:not(:checked):focus,.imagify-settings.imagify-settings [type="checkbox"]:checked:focus{box-shadow:none!important;outline:none!important;border:0 none!important}.imagify-settings [type="checkbox"]:not(:checked)+label,.imagify-settings [type="checkbox"]:checked+label{position:relative;padding-left:6px;cursor:pointer;vertical-align:top}.imagify-settings [type="checkbox"]:not(:checked)+label:before,.imagify-settings [type="checkbox"]:checked+label:before{content:'';position:absolute;left:0;top:0;width:28px;height:28px;margin:0 0 0 -24px;border:2px solid #8BA6B4;background:#FFF;border-radius:4px}.imagify-settings [type="checkbox"]:not(:checked)+label:after,.imagify-settings [type="checkbox"]:checked+label:after{content:"✓";position:absolute;font-size:1.4em;top:3px;left:-16px;-webkit-transition:all .2s;-moz-transition:all .2s;-ms-transition:all .2s;transition:all .2s}.imagify-settings [type="checkbox"][disabled]:not(:checked)+label:before,.imagify-settings [type="checkbox"][disabled]:checked+label:before{border-color:#ccc;background:#ddd}.imagify-settings [type="checkbox"]:not(:checked)+label:after{opacity:0;-webkit-transform:scale(0);-moz-transform:scale(0);-ms-transform:scale(0);transform:scale(0)}.imagify-settings [type="checkbox"]:checked+label:after{opacity:1;-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}input[id^="imagify_sizes_"]:checked+label{font-weight:bold}.imagify-settings .mini[type="checkbox"]:not(:checked)+label:before,.imagify-settings .mini[type="checkbox"]:checked+label:before{width:15px;height:15px;border-width:1px;border-radius:2px;margin-top:0}.imagify-settings .mini[type="checkbox"]:not(:checked)+label:after,.imagify-settings .mini[type="checkbox"]:checked+label:after{content:"✓";font-size:.9em;left:-21px;top:1px}.imagify-settings [type="checkbox"]:not(:checked):focus+label:before,.imagify-settings [type="checkbox"]:checked:focus+label:before{border-style:dotted;border-color:#40b1d0}.imagify-inline-options{position:relative;display:table;width:100%;max-width:600px;border-collapse:collapse}.imagify-inline-options:after{content:"";display:table;clear:both}.imagify-inline-options input[type="radio"]:not(:checked),.imagify-inline-options input[type="radio"]:checked{position:absolute;left:5px;top:5px;display:none}.imagify-inline-options input[type="radio"]:not(:checked)+label,.imagify-inline-options input[type="radio"]:checked+label{position:relative;display:table-cell;padding:13px 10px;text-align:center;font-weight:600;font-size:16px;text-transform:uppercase;letter-spacing:0.1em;color:#FFF;background:#2E3243;border-left:1px solid rgba(255,255,255,0.2);box-shadow:0 -3px 0 rgba(0,0,0,0.1) inset,inset -1px 0 0 rgba(255,255,255,0.2);z-index:2;-webkit-transition:all .275s;transition:all .275s}.imagify-bulk-submit .imagify-inline-options input[type="radio"]:not(:checked)+label,.imagify-bulk-submit .imagify-inline-options input[type="radio"]:checked+label{margin-bottom:1.75em}.imagify-inline-options input[type="radio"]:not(:checked)+label:first-of-type,.imagify-inline-options input[type="radio"]:checked+label:first-of-type{border-radius:3px 0 0 3px}.imagify-inline-options input[type="radio"]:not(:checked)+label:last-of-type,.imagify-inline-options input[type="radio"]:checked+label:last-of-type{border-radius:0 3px 3px 0}.imagify-inline-options input[type="radio"]:checked+label{background:#8BC34A}.imagify-inline-options .imagify-info{margin-top:15px}.imagify-btn-info{display:block;font-size:0.7em;letter-spacing:0;line-height:1;text-transform:none}#describe-resize-larger input{width:5em}.imagify-col{overflow:hidden}.imagify-sidebar{float:right;width:280px;margin-left:25px}.imagify-sidebar-section{border:1px solid #BBB;background:#FFF}.imagify-sidebar-section+.imagify-sidebar-section{margin-top:2em}@media (max-width:760px){.imagify-settings{display:flex;flex-direction:column}.imagify-sidebar{order:2;float:none;width:auto;margin-left:0;margin-top:25px}.wp-media-products{text-align:center}.wp-media-products li{display:inline-block;width:100%;max-width:276px}}.imagify-sidebar-title{display:block;padding:20px 15px;border-bottom:1px solid #BBB;font-size:14px;font-weight:bold;color:#23282d;background:#F2F5F7}.imagify-sidebar-title img{vertical-align:top;margin-right:5px}.imagify-sidebar .wp-media-products{margin-top:0;margin-bottom:-.5em}.imagify-sidebar .wp-media-products .links{display:block;padding:85px 25px 24px;text-align:center;background-color:#2E3243;background-size:contain;background-repeat:no-repeat;background-position:50% 0;text-decoration:none}.imagify-sidebar .wp-media-products .links p{margin:1.5em auto;color:#FFF}.imagify-sidebar .wp-media-products .wprocket-link{background-image:linear-gradient(to bottom,rgba(59,30,78,0),rgba(59,30,78,0) 130px,rgba(59,30,78,1) 210px),url("../images/sidebar-wp-rocket.jpg");background-color:#3B1E4E;background-repeat:repeat-x,no-repeat}.imagify-sidebar-content{padding:10px 20px}.imagify-mark-styled{display:inline-block;padding:1px 2px 1px 4px;line-height:1.3;font-weight:bold;background:#F7A933;transform-origine:50% 50%;transform:rotateZ(-2deg) rotateX(-10deg) skewX(-2deg) skewY(-3deg);text-shadow:1px 1px 0 rgba(0,0,0,0.2)}.imagify-mark-styled span{display:inline-block;transform:rotateZ(2deg) rotateX(10deg) skewX(2deg) skewY(3deg)}.imagify-discount-code{margin:0.35em 0 .5em;display:block;font-size:2em;letter-spacing:.05em;font-weight:bold;text-align:center;text-shadow:1px 1px 0 rgba(0,0,0,0.2)}.imagify-big-text{font-size:15px;font-weight:bold}.imagify-big-text strong{font-size:20px}a.btn-rocket{display:block;font-size:1.15em;padding:12px;background:#F7A933;box-shadow:0 3px 0 #D69626;border-radius:3px;color:#FFF;text-transform:uppercase;font-weight:bold;text-shadow:1px 1px 0 rgba(0,0,0,0.2);text-decoration:none}a.btn-rocket:hover,a.btn-rocket:focus{background:darkorange;box-shadow:0 3px 0 darkorange}.imagify-welcome{margin:30px 20px 0 0}.imagify-welcome .baseline{display:inline-block;margin:.2em 0 0 2em;font-size:17px}.imagify-welcome .imagify-logo{vertical-align:middle}.imagify-welcome-remove{position:absolute;top:50%;right:15px;margin-top:-8px;color:#FFF;text-decoration:none}.imagify-columns{overflow:hidden;padding:15px 0;counter-reset:cols}.imagify-columns [class^="col-"]{float:left;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.imagify-columns .col-1-3{width:33.333%;padding-left:28px}.imagify-columns .col-1-2{width:50%;padding:0 20px}.imagify-columns .col-informations{width:41.6%;padding-right:30px}.imagify-columns .col-statistics{width:25%}@media (max-width:830px){.imagify-columns [class^="col-"]{float:none;margin-bottom:1.5em}.imagify-columns .col-1-3,.imagify-columns .col-1-2{width:auto;padding:0 28px;clear:both;padding-top:1em}}.imagify-columns [class^="col-"] img{float:left;margin-right:18px}.imagify-col-content{overflow:hidden}.imagify-col-title{margin:0 0 15px 0;font-size:23px}.counter .imagify-col-title:before{counter-increment:cols;content:counter(cols) ". ";color:#40B1D0}.imagify-col-desc{color:#5F758E;margin-bottom:2em}.imagify-notice.imagify-notice{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:0;margin:10px 20px 10px 2px;border:0 none;background:#2E3243;box-shadow:none;color:#FFF}@media (max-width:782px){.imagify-notice.imagify-notice,.imagify-welcome{margin-right:12px}}@media (max-width:450px){.imagify-notice.imagify-notice{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column; -ms-flex-direction:column; flex-direction:column}}.wrap .imagify-notice{margin:5px 15px 2px;position:relative}.imagify-notice-logo{padding:18px 23px;background:#40B1D0}.updated .imagify-notice-logo{background:#8BC34A}.error .imagify-notice-logo{background:#D0021B}.imagify-notice-title{font-size:15px}.imagify-notice-content{padding:5px 23px}.imagify-notice-content.imagify-notice-content p{margin:0.65em 0}.imagify-notice a{color:#40B1D0}.imagify-notice a:hover,.imagify-notice a:focus{color:#FEE102}.imagify-notice code{background:rgba(0,0,0,0.4) none repeat scroll 0 0}.column-imagify_optimized_file.column-imagify_optimized_file{width:300px;text-align:center;vertical-align:middle}.column-imagify_optimized_file >*{max-width:235px;margin:0 auto}ul.imagify-datas-list.imagify-datas-list{margin:0 auto;color:#555;font-size:10px}.compat-field-imagify .label{vertical-align:top}.compat-field-imagify ul.imagify-datas-list{margin-top:7px;font-size:11px}ul.imagify-datas-list .big{font-size:12px;color:#40B1D0}.imagify-data-item{overflow:hidden}.imagify-data-item .imagify-chart{display:inline-block;top:1px;width:20px;vertical-align:middle;margin-bottom:0}li.imagify-data-item{clear:both;margin-bottom:2px}ul.imagify-datas-list .imagify-data-item span.data,ul.imagify-datas-list .imagify-data-item strong{float:left;width:50%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}ul.imagify-datas-list .imagify-data-item span.data{text-align:left;padding-right:5px}.compat-field-imagify .imagify-datas-list .imagify-data-item .data{width:130px;text-align:left;font-weight:bold}.media-sidebar .imagify-datas-list .imagify-data-item .data{width:auto;float:none}ul.imagify-datas-list .imagify-data-item strong{text-align:left;padding-left:5px}.media-sidebar .imagify-datas-list .imagify-data-item strong{width:auto;float:none}.imagify-datas-more-action.imagify-datas-more-action{margin:.4em auto;background:linear-gradient(to bottom,transparent,transparent 49%,rgba(0,0,0,.075) 50%,rgba(0,0,0,.075) 58%,transparent 58%,transparent)}.imagify-datas-more-action a{display:inline-block;padding:0 5px;background:#40B1D0;color:#FFF;text-transform:uppercase;font-size:9px;font-weight:bold;line-height:1.9;text-decoration:none}.imagify-datas-more-action a.is-open{background:#555}.imagify-datas-more-action a.is-open .dashicons{transform:rotate(180deg)}.imagify-datas-more-action a .dashicons{font-size:14px;vertical-align:middle;line-height:.8}.imagify-datas-more-action a .dashicons:before{vertical-align:middle;line-height:20px}.imagify-datas-more-action .the-text{display:inline-block;vertical-align:middle;height:20px;line-height:20px}ul.imagify-datas-details.imagify-datas-details{margin:.7em auto}.imagify-datas-details strong{color:#40B1D0}.imagify-datas-details .original{color:#555}.imagify-datas-actions-links{overflow:hidden;border-top:2px solid transparent;padding-top:5px;font-size:8px}.imagify-datas-actions-links a{position:relative;display:inline-block;padding-left:17px;text-decoration:none;font-weight:600}.compat-field-imagify .imagify-datas-actions-links{max-width:300px}.misc-pub-imagify .imagify-datas-actions-links{border-top:2px solid #f2f2f2;padding-bottom:5px}.compat-field-imagify .imagify-datas-actions-links a,.misc-pub-imagify .imagify-datas-actions-links a{font-size:10px;float:left;width:50%}.media-sidebar .compat-field-imagify .imagify-datas-actions-links a,.submitbox .misc-pub-imagify .imagify-datas-actions-links a{display:block;width:auto;float:none}.column-imagify_optimized_file .imagify-datas-actions-links a{margin:0 .7em;padding-left:15px}.imagify-datas-actions-links a:only-child{float:none;width:auto}.imagify-datas-details.is-open+.imagify-datas-actions-links{border-top-color:rgba(0,0,0,.075)}.imagify-datas-actions-links .dashicons{position:absolute;left:0;top:4px;width:12px;margin-right:2px;font-size:11px}.imagify-title >h1{padding:0}.imagify-title-right{display:table;float:right;margin-top:-10px}.imagify-title-right p{margin:0}.imagify-title-right a{font-weight:bold;text-decoration:none}.imagify-title-right >div{display:table-cell;vertical-align:middle}.imagify-title-right .dashicons-arrow-down-alt2{vertical-align:-4px;margin-left:2px}@media (max-width:1200px){.imagify-bulk .imagify-title{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.imagify-title-right{-webkit-box-ordinal-group:3;-webkit-order:2;-ms-flex-order:2;order:2;margin-top:20px}}.imagify-account,.imagify-account-link{padding-right:15px}.imagify-sep-v{width:1px;background:rgba(255,255,255,.2)}.imagify-credit-left{position:relative;min-width:280px;padding-left:15px}.imagify-meteo-icon{display:inline-block;height:38px;vertical-align:middle;margin-right:10px}.imagify-user-plan{color:#40b1d0}@media (max-width:630px){.imagify-title-right{display:block;width:auto}.imagify-title-right >div{display:block;width:auto;margin-top:10px;max-width:100%}.imagify-credit-left{padding-left:0}}.imagify-meteo-title.imagify-meteo-title{color:#FFF;font-size:17px}.imagify-space-left{display:inline-block;min-height:38px;min-width:245px;vertical-align:middle}.imagify-space-left >p{color:#FFF}[class^="imagify-bar-"],#wp-admin-bar-imagify-profile [class^="imagify-bar-"]{position:relative;height:15px;width:100%;background:#60758D;color:#FFF;font-size:10px}.base-transparent{background:transparent}[class^="imagify-bar-"].right-outside-number{-webkit-box-sizing:border-box;box-sizing:border-box;padding-right:45px}.right-outside-number .imagify-barnb{display:block;margin-right:-45px;text-align:right;font-weight:bold;line-height:15px}.imagify-progress-value,#wp-admin-bar-imagify-profile .imagify-progress-value{position:absolute;top:0;right:0;left:0;bottom:0;text-align:center;line-height:13px;font-weight:bold}.imagify-progress,#wp-admin-bar-imagify-profile .imagify-progress{height:15px}.imagify-bar-positive .imagify-progress{background:#8CC152}.imagify-bar-positive .imagify-barnb{color:#8CC152}.imagify-bar-negative .imagify-progress{background:#73818C}.imagify-bar-negative .imagify-barnb{color:#73818C}.imagify-bar-neutral .imagify-progress{background:#F5A623}.imagify-space-left .imagify-bar-negative .imagify-progress{background:#D0021B}#wpadminbar #wp-admin-bar-imagify-profile *{line-height:1.5;white-space:initial}#wpadminbar #wp-admin-bar-imagify .ab-submenu{padding-bottom:0}#wpadminbar #wp-admin-bar-imagify-profile .ab-item{height:auto;padding:0 13px}#wpadminbar #wp-admin-bar-imagify-profile{min-width:200px;padding:15px 0 10px;margin-top:0.7em;background:#222}#wp-admin-bar-imagify .dashicons{font-family:"dashicons";font-size:18px;vertical-align:middle;margin:0 5px 0 0}#wp-admin-bar-imagify .button-text{display:inline-block;vertical-align:middle}#wp-admin-bar-imagify .imagify-abq-row{display:table;width:100%}#wp-admin-bar-imagify .imagify-abq-row+.imagify-abq-row{margin-top:.75em}#wp-admin-bar-imagify .imagify-abq-row >*{display:table-cell}#wp-admin-bar-imagify-profile .imagify-meteo-icon{padding-right:7px}#wp-admin-bar-imagify-profile .imagify-meteo-icon img{width:37px}#wp-admin-bar-imagify-profile .imagify-meteo-title{font-size:17px}#wp-admin-bar-imagify-profile .imagify-meteo-subs{color:#72889F}#wpadminbar #wp-admin-bar-imagify-profile strong{font-weight:bold}#wpadminbar #wp-admin-bar-imagify-profile .imagify-user-plan,#wpadminbar #wp-admin-bar-imagify-profile a{padding:0;color:#40B1D0}#wpadminbar #wp-admin-bar-imagify-profile .imagify-account-link{display:table}#wpadminbar #wp-admin-bar-imagify-profile .imagify-account-link >* {display:table-cell}#wpadminbar #wp-admin-bar-imagify-profile .imagify-space-left{max-width:210px;min-width:210px;width:210px}#wpadminbar #wp-admin-bar-imagify-profile .imagify-space-left p{font-size:12px}#wp-admin-bar-imagify-profile .imagify-error,#wp-admin-bar-imagify-profile .imagify-warning{padding:10px;margin:0 -13px -13px}#wp-admin-bar-imagify-profile .imagify-error p+p,#wp-admin-bar-imagify-profile .imagify-warning p+p{margin-top:.5em}#wp-admin-bar-imagify-profile .imagify-error p+p+p,#wp-admin-bar-imagify-profile .imagify-warning p+p+p{margin-top:1em}.btn-ghost,#wpadminbar #wp-admin-bar-imagify-profile .btn-ghost{display:inline-block;height:auto;padding:7px 10px;border:1px solid #FFF;text-align:center;background:transparent;color:#FFF;border-radius:3px;transition:all .275s}.btn-ghost:hover,.btn-ghost:focus,#wpadminbar #wp-admin-bar-imagify-profile .btn-ghost:hover,#wpadminbar #wp-admin-bar-imagify-profile .btn-ghost:focus{background:#FFF;color:#888}.txt-center{text-align:center}.imagify-list-dash li{position:relative;padding-left:24px}.imagify-list-dash li:before{content:"";position:absolute;left:0;top:9px;height:1px;width:12px;background:#5f758e}.imagify-sub-title.imagify-sub-title{font-size:23px;background:#FFF;color:#2E3243;border-left:1px solid #D9D9D9;border-right:1px solid #D9D9D9;font-weight:lighter}.imagify-sub-title .icon-bulk{margin-right:10px;vertical-align:middle}.imagify-sub-title .title-text{display:inline-block;line-height:1;vertical-align:middle}.imagify-bulk .imagify-settings-section{border:1px solid #D9D9D9;border-top:0;background:#F2F5F7;color:#4A4A4A}.imagify-bulk .imagify-settings-section p,.imagify-bulk .imagify-settings-section li,.imagify-bulk .imagify-settings-section h3{color:#4A4A4A}.imagify-bulk .imagify-settings-section h3{margin-bottom:2em}.imagify-bulk-submit{margin-top:4em}#imagify-bulk-action{float:left}#imagify-bulk-action+.imagify-tooltips{overflow:hidden;display:block}.imagify-title .imagify-tooltips{position:absolute;top:100%;left:0}.imagify-tooltips .icon-round{float:left;display:inline-block;width:28px;height:28px;border:1px solid #FFF;margin-right:8px;margin-bottom:8px;font-size:17px;font-style:italic;line-height:29px;font-weight:bold;text-align:center;border-radius:50%}.imagify-tooltips .tooltip-content{display:block;position:relative;max-width:250px;padding:7px 15px 8px;background:#2e3242;color:#FFF;font-size:10px;border-radius:3px}.imagify-tooltips.right .tooltip-content{margin-left:12px}.imagify-tooltips.bottom .tooltip-content{margin-top:4px}.imagify-inline-options label .tooltip-content{position:absolute;left:0;right:0;top:100%;text-transform:none;font-size:10px;letter-spacing:0;text-align:center}.imagify-tooltips .tooltip-content:after{content:"";position:absolute}.imagify-tooltips.right .tooltip-content:after{top:16px;left:-6px;border-right:8px solid #2e3242;border-top:6px solid transparent;border-bottom:6px solid transparent}.imagify-tooltips.bottom .tooltip-content:after{top:-5px;left:50%;margin-left:-3px;border-bottom:6px solid #2e3242;border-left:6px solid transparent;border-right:6px solid transparent}.imagify-space-tooltips .tooltip-content{max-width:280px;margin-top:20px;margin-left:0;padding:5px 15px 5px;font-size:13px;background:#40B1D0;box-shadow:0 3px 0 #338EA6}.imagify-space-tooltips .tooltip-content:after{top:-14px;left:50%;margin-left:-7px;border:0 none;border-bottom:15px solid #40B1D0;border-left:15px solid transparent;border-right:15px solid transparent}.tooltip-content.tooltip-table{display:table;width:100%}.tooltip-content.tooltip-table >*{display:table-cell;vertical-align:middle}.tooltip-content .cell-icon{width:28px}.tooltip-content .cell-icon .icon{margin-bottom:0}.tooltip-content .cell-text{padding:5px 10px 5px 0;line-height:1.3}.tooltip-content .cell-sep{width:1px;background:rgba(255,255,255,.4)}.tooltip-content .cell-cta{padding-left:10px}.tooltip-content .cell-cta a{display:block;color:#FFF;width:100%;height:100%;white-space:nowrap}.imagify-number-you-optimized .number{display:table-cell;padding-right:15px;font-size:36px;font-weight:bold;line-height:1.1;vertical-align:middle}.imagify-number-you-optimized .text{display:table-cell;vertical-align:middle;overflow:hidden;font-size:12px}.imagify-number-you-optimized .text br{display:none}.imagify-number-you-optimized >p{display:table}.imagify-number-you-optimized{padding-bottom:0.85em;margin-bottom:1.35em;overflow:hidden;border-bottom:1px solid rgba(0,0,0,0.05)}.imagify-bars p{font-weight:bold;font-size:12px;margin-bottom:0}.imagify-bars+.imagify-number-you-optimized{border-bottom:0;padding-top:0.85em}.imagify-bars+.imagify-number-you-optimized p{color:#46b1ce}.imagify-bulk-table{margin-top:2em;max-height:600px;max-height:60vh;overflow:auto}.imagify-bulk-table table{width:100%;border-spacing:0;border-collapse:collapse;border:1px solid #D3D3D3}.imagify-bulk-table td{padding:8px 15px}.imagify-bulk-table thead tr,.imagify-bulk-table thead th{background:#2E3242}.imagify-bulk-table tfoot tr,.imagify-bulk-table tfoot th{background:#73818C}.imagify-bulk-table thead th{padding:14px 15px;text-align:left;color:#F2F5F7;font-weight:bold;font-size:14px}.imagify-bulk-table tfoot td{padding:14px 15px;color:#F9FAFA}.imagify-bulk-table tbody tr,.imagify-bulk-table tbody td{background:#FFF}.imagify-bulk-table tbody tr:nth-child(odd),.imagify-bulk-table tbody tr:nth-child(odd) td{background:#F2F5F7}.imagify-bulk-table .imagify-row-progress{display:none}.imagify-bulk-table .imagify-row-progress,.imagify-bulk-table .imagify-row-progress td{height:15px;padding:0}.imagify-bulk-table .imagify-no-uploaded-yet td{height:200px;font-size:17px;letter-spacing:.1em;word-spacing:.12em;vertical-align:middle;text-transform:uppercase;font-weight:bold;text-align:center;color:#999;background-color:#FFF}.imagify-row-complete{padding:35px 20px;margin-top:2em;background:#8BC34A;color:#FFF;text-shadow:0 0 2px rgba(0,0,0,.1)}.imagify-row-complete .imagify-ac-chart{margin-top:3px}.imagify-row-complete p{color:#FFF;margin:0}@-webkit-keyframes congrate{ 0%{opacity:0;-webkit-transform:scale(1)} 50%{-webkit-transform:scale(1.05);opacity:1} 100%{-webkit-transform:scale(1);opacity:1}}​@keyframes congrate{ 0%{opacity:0;transform:scale(1)} 50%{transform:scale(1.05);opacity:1} 100%{transform:scale(1);opacity:1}}.imagify-row-complete.done{-webkit-animation:congrate 500ms ease-in-out;animation:congrate 500ms ease-in-out}.imagify-all-complete{margin:1.5em 0}.imagify-all-complete >div{display:inline-block;vertical-align:middle}.imagify-ac-report{min-width:310px}.imagify-ac-chart{width:46px;height:46px;float:left;margin:0 20px 0 10px}.imagify-ac-report-text{overflow:hidden}.imagify-ac-report-text p{line-height:1.3}.imagify-ac-rt-big{font-weight:bold;font-size:24px;letter-spacing:0.15em;word-spacing:0.15em;text-transform:uppercase}.imagify-ac-share{text-align:right}.imagify-ac-share-content{display:inline-block;padding:10px 15px;background:rgba(255,255,255,.2)}.imagify-ac-share-content >*{display:inline-block;vertical-align:middle}.imagify-bulk-table .imagify-ac-share-content p{margin-right:5px}.imagify-share-networks,.imagify-share-networks li{margin:0}.imagify-share-networks li{display:inline-block}.imagify-share-networks a{display:inline-block;vertical-align:-7px;margin:0 5px;text-decoration:none;color:#FFF}.imagify-cell-filename{max-width:200px}.imagify-cell-status{max-width:145px}.imagify-cell-status .dashicons-warning{margin-right:2px}.imagify-cell-thumbnails{max-width:120px}td.imagify-cell-filename{text-overflow:clip;white-space:nowrap;overflow:hidden}.imagify-bulk-table td.imagify-cell-totaloriginal{padding-right:78px}.imagiuploaded,.imagifilename{display:inline-block;vertical-align:middle}.imagifilename{font-size:12px}.imagiuploaded{width:33px;height:33px;margin-right:5px;margin-left:-8px;overflow:hidden;background:url(../images/upload-image.png) 0 0 no-repeat;background-size:cover}.imagiuploaded img{max-widht:100%;height:auto}.imagistatus{color:#8CA6B3;text-transform:uppercase;font-weight:bold}.status-compressing{color:#46B1CE}.status-error{color:#CE0B24}.status-warning{color:#f5a623}.status-complete{color:#8CC152}.imagify-error{background:#D0021B;color:#FFF}.imagify-warning,#wpadminbar .imagify-warning *{background:#f5a623;color:#FFF;text-shadow:0 0 2px rgba(0,0,0,0.2)}.imagify-bulk-table .imagify-cell-thumbnails{text-align:center}.imagify-cell-percentage,.imagify-cell-savings{color:#46B1CE;font-weight:bold}.imagify-cell-optimized{font-weight:bold}.imagify-cell-totaloriginal{text-align:right}.dashicons.rotate{-webkit-animation:icon-rotate 2.6s infinite linear;animation:icon-rotate 2.6s infinite linear}.dashicons-admin-generic{transform-origin:48.75% 51.75%}.imagify-modal{display:flex;flex-direction:column;align-items:center;justify-content:center}.js .imagify-modal{display:none;position:fixed;top:0;right:0;bottom:0;left:0;background-color:#1F2332;background-color:rgba(31,35,50,.95);z-index:99999}.imagify-modal-content{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;width:800px;max-width:95%;max-height:90vw;overflow:auto;padding:20px 25px;margin:1em auto;background:#FFF;box-shadow:1px 1px 4px rgba(0,0,0,.7);border-radius:3px}#imagify-visual-comparison .imagify-modal-content{max-width:1400px;background:transparent;padding:5px;box-shadow:none;border-radius:0}.imagify-modal .h2{margin:.5em 0;color:#8ba6b4;font-weight:normal;font-size:24px;letter-spacing:0.075em;text-align:center}.imagify-modal .h3{color:#40b1d0;font-weight:normal;font-size:18px;letter-spacing:0.075em;text-align:center}.text-justify{text-align:justify}.imagify-modal .close-btn{display:none;visibility:hidden;position:absolute;right:20px;top:20px;font-size:1.2em;border:0;background:transparent none;border-radius:0;cursor:pointer}.imagify-modal .close-btn:hover,.imagify-modal .close-btn:focus{color:#40b1d0}.js .imagify-modal .close-btn{display:block;visibility:visible}#imagify-visual-comparison .close-btn{top:50px;right:5px;width:33px;height:33px;padding:1px 0 0 2px;border:1px solid #F2F2F2;color:#F2F2F2;line-height:19px;text-align:center;border-radius:50%}.wp_attachment_image #imagify-visual-comparison .close-btn{top:0}.wp_attachment_image #imagify-visual-comparison .imagify-modal-content{padding-top:40px}.imagify-modal .imagify-comparison-title{font-size:28px;margin-bottom:1em;color:#F2F2F2;text-align:left}.imagify-modal .imagify-comparison-title .twentytwenty-duo-buttons{position:static;margin:0 10px 0 15px}.imagify-comparison-title .twentytwenty-duo-buttons button{float:none;padding:6px 12px;font-size:16px;text-transform:none;border:1px solid #40B1D0;color:#889;letter-spacing:0}.imagify-comparison-title .twentytwenty-duo-buttons button:focus{outline:none;box-shadow:none}.imagify-comparison-title .twentytwenty-duo-buttons .selected{border:1px solid #40B1D0;color:#FFF;background:#40B1D0}.imagify-comparison-levels{margin:15px 0;overflow:hidden}.imagify-comparison-levels div{display:none;min-width:175px;font-size:11px}.imagify-comparison-levels .imagify-chart,.imagify-comparison-levels .imagify-chart-container{width:25px;float:none;margin:0}.imagify-c-level.go-left{float:left}.imagify-c-level.go-right{float:right}.imagify-c-level.go-right,.imagify-c-level.go-left{display:table}.imagify-c-level .imagify-c-level-row{display:table-row;margin:0;color:#FFF}.imagify-c-level-row >span{display:table-cell;padding:2px 0}.imagify-c-level-row .value{text-align:right;padding-left:5px}.imagify-c-level-row .value.level{color:#40b1d0}.imagify-c-level-row .value.size{color:#8bc34a;font-weight:bold}.imagify-c-level-row .value .imagify-chart{top:1px}@-webkit-keyframes icon-rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes icon-rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.imagify-menu-bar-img{margin-top:1em}.imagify-modal .loader{position:absolute;top:50%;left:50%;margin:-32px 0 0 -32px;opacity:0;visibility:hidden;transition:opacity .4s}.imagify-modal .loading .loader{visibility:visible;opacity:1}.imagify-settings .imagify-visual-comparison-text{margin-top:1em;color:#40b1d0;font-weight:bold}
assets/css/twentytwenty.css CHANGED
@@ -197,4 +197,13 @@
197
  right: 50%;
198
  margin-right: -22px;
199
  border-left: 8px solid white;
 
 
 
 
 
 
 
 
 
200
  }
197
  right: 50%;
198
  margin-right: -22px;
199
  border-left: 8px solid white;
200
+ }
201
+
202
+ /* Specifics for too high modals */
203
+ .modal-is-too-high .imagify-comparison-levels {
204
+ position: absolute;
205
+ padding: 15px 20px;
206
+ background: rgba(31, 35, 50, 0.95);
207
+ bottom: 0; left: 0; right: 0;
208
+ margin-bottom: 0;
209
  }
assets/css/twentytwenty.min.css CHANGED
@@ -1 +1 @@
1
- .twentytwenty-handle{z-index:40;position:absolute;left:50%;top:50%;height:64px;width:64px;margin-left:-32px;margin-top:-32px;border-radius:50%;box-shadow:0 3px 0 #338EA6;background:#40B1D0;cursor:pointer}.twentytwenty-horizontal .twentytwenty-handle:before,.twentytwenty-horizontal .twentytwenty-handle:after{left:50%;width:2px;height:9999px;margin-left:-1px}.twentytwenty-horizontal .twentytwenty-handle:before{bottom:50%;margin-bottom:32px;box-shadow:0 3px 0 white,0px 0px 12px rgba(51,51,51,0.5)}.twentytwenty-horizontal .twentytwenty-handle:after{top:50%;margin-top:34px;box-shadow:0 -3px 0 white,0px 0px 12px rgba(51,51,51,0.5)}.twentytwenty-horizontal .twentytwenty-handle:before,.twentytwenty-horizontal .twentytwenty-handle:after{content:"";position:absolute;z-index:30;display:block;background:#F2F5F7;box-shadow:0px 0px 12px rgba(51,51,51,0.5)}.twentytwenty-labels,.twentytwenty-overlay{position:absolute;top:0;width:100%;height:100%;-webkit-transition-duration:0.5s;transition-duration:0.5s}.twentytwenty-labels{opacity:1;-webkit-transition-property:opacity;transition-property:opacity}.twentytwenty-labels .twentytwenty-label-content{position:absolute;padding:0 12px;font-size:13px;letter-spacing:0.1em;line-height:38px;color:white;background:#1F2332;border-radius:2px}.twentytwenty-horizontal .twentytwenty-labels .twentytwenty-label-content{bottom:15px}.twentytwenty-after-label .twentytwenty-label-content{background:#40B1D0}.twentytwenty-left-arrow,.twentytwenty-right-arrow{position:absolute;width:0;height:0;border:8px inset transparent}.twentytwenty-left-arrow,.twentytwenty-right-arrow{top:50%;margin-top:-8px}.twentytwenty-container{box-sizing:content-box;position:relative;z-index:0;overflow:hidden;box-shadow:0 5px 10px rgba(0,0,0,0.15);opacity:0;-webkit-transition:opacity 0.4s;transition:opacity 0.4s;-webkit-user-select:none;-moz-user-select:none}.twentytwenty-container *{box-sizing:content-box}.twentytwenty-container img{position:absolute;top:0;display:block;width:100%;height:auto}.loaded .twentytwenty-container{opacity:1}.twentytwenty-container.active .twentytwenty-overlay .twentytwenty-labels,.twentytwenty-container.active .twentytwenty-overlay:hover .twentytwenty-labels{opacity:0}.twentytwenty-horizontal .twentytwenty-before-label .twentytwenty-label-content{left:15px}.twentytwenty-horizontal .twentytwenty-after-label .twentytwenty-label-content{right:15px}.twentytwenty-overlay{z-index:25}.twentytwenty-before{z-index:20}.twentytwenty-after{z-index:10}.twentytwenty-duo-buttons{position:absolute;top:10px;z-index:30;overflow:hidden}.twentytwenty-duo-buttons button{float:left;padding:2px 6px;font-size:11px;text-transform:uppercase;letter-spacing:0.125em;font-weight:bold;border:0;background:#1f2332;color:#FFF;transition:all .3s;cursor:pointer}.twentytwenty-duo-buttons button:hover,.twentytwenty-duo-buttons button:focus{background:#444}.twentytwenty-duo-buttons button:first-child{border-radius:3px 0 0 3px}.twentytwenty-duo-buttons button:last-child{border-radius:0 3px 3px 0}.twentytwenty-duo-buttons button.selected{background:#8bc34a;text-shadow:0 0 1px rgba(0,0,0,.2);cursor:default}.twentytwenty-duo-left{left:10px}.twentytwenty-duo-right{right:10px}.twentytwenty-left-arrow{left:50%;margin-left:-22px;border-right:8px solid white}.twentytwenty-right-arrow{right:50%;margin-right:-22px;border-left:8px solid white}
1
+ .twentytwenty-handle{z-index:40;position:absolute;left:50%;top:50%;height:64px;width:64px;margin-left:-32px;margin-top:-32px;border-radius:50%;box-shadow:0 3px 0 #338EA6;background:#40B1D0;cursor:pointer}.twentytwenty-horizontal .twentytwenty-handle:before,.twentytwenty-horizontal .twentytwenty-handle:after{left:50%;width:2px;height:9999px;margin-left:-1px}.twentytwenty-horizontal .twentytwenty-handle:before{bottom:50%;margin-bottom:32px;box-shadow:0 3px 0 white,0px 0px 12px rgba(51,51,51,0.5)}.twentytwenty-horizontal .twentytwenty-handle:after{top:50%;margin-top:34px;box-shadow:0 -3px 0 white,0px 0px 12px rgba(51,51,51,0.5)}.twentytwenty-horizontal .twentytwenty-handle:before,.twentytwenty-horizontal .twentytwenty-handle:after{content:"";position:absolute;z-index:30;display:block;background:#F2F5F7;box-shadow:0px 0px 12px rgba(51,51,51,0.5)}.twentytwenty-labels,.twentytwenty-overlay{position:absolute;top:0;width:100%;height:100%;-webkit-transition-duration:0.5s;transition-duration:0.5s}.twentytwenty-labels{opacity:1;-webkit-transition-property:opacity;transition-property:opacity}.twentytwenty-labels .twentytwenty-label-content{position:absolute;padding:0 12px;font-size:13px;letter-spacing:0.1em;line-height:38px;color:white;background:#1F2332;border-radius:2px}.twentytwenty-horizontal .twentytwenty-labels .twentytwenty-label-content{bottom:15px}.twentytwenty-after-label .twentytwenty-label-content{background:#40B1D0}.twentytwenty-left-arrow,.twentytwenty-right-arrow{position:absolute;width:0;height:0;border:8px inset transparent}.twentytwenty-left-arrow,.twentytwenty-right-arrow{top:50%;margin-top:-8px}.twentytwenty-container{box-sizing:content-box;position:relative;z-index:0;overflow:hidden;box-shadow:0 5px 10px rgba(0,0,0,0.15);opacity:0;-webkit-transition:opacity 0.4s;transition:opacity 0.4s;-webkit-user-select:none;-moz-user-select:none}.twentytwenty-container *{box-sizing:content-box}.twentytwenty-container img{position:absolute;top:0;display:block;width:100%;height:auto}.loaded .twentytwenty-container{opacity:1}.twentytwenty-container.active .twentytwenty-overlay .twentytwenty-labels,.twentytwenty-container.active .twentytwenty-overlay:hover .twentytwenty-labels{opacity:0}.twentytwenty-horizontal .twentytwenty-before-label .twentytwenty-label-content{left:15px}.twentytwenty-horizontal .twentytwenty-after-label .twentytwenty-label-content{right:15px}.twentytwenty-overlay{z-index:25}.twentytwenty-before{z-index:20}.twentytwenty-after{z-index:10}.twentytwenty-duo-buttons{position:absolute;top:10px;z-index:30;overflow:hidden}.twentytwenty-duo-buttons button{float:left;padding:2px 6px;font-size:11px;text-transform:uppercase;letter-spacing:0.125em;font-weight:bold;border:0;background:#1f2332;color:#FFF;transition:all .3s;cursor:pointer}.twentytwenty-duo-buttons button:hover,.twentytwenty-duo-buttons button:focus{background:#444}.twentytwenty-duo-buttons button:first-child{border-radius:3px 0 0 3px}.twentytwenty-duo-buttons button:last-child{border-radius:0 3px 3px 0}.twentytwenty-duo-buttons button.selected{background:#8bc34a;text-shadow:0 0 1px rgba(0,0,0,.2);cursor:default}.twentytwenty-duo-left{left:10px}.twentytwenty-duo-right{right:10px}.twentytwenty-left-arrow{left:50%;margin-left:-22px;border-right:8px solid white}.twentytwenty-right-arrow{right:50%;margin-right:-22px;border-left:8px solid white}.modal-is-too-high .imagify-comparison-levels{position:absolute;padding:15px 20px;background:rgba(31,35,50,0.95);bottom:0;left:0;right:0;margin-bottom:0}
assets/js/admin.js CHANGED
@@ -1,4 +1,7 @@
1
  jQuery(function($){
 
 
 
2
  /*
3
  * Create a new Imagify account
4
  */
@@ -22,7 +25,7 @@ jQuery(function($){
22
  return false;
23
  }
24
 
25
- $.get(ajaxurl + "?action=imagify_signup&email=" +inputValue + "&imagifysignupnonce="+ $('#imagifysignupnonce').val())
26
  .done(function(response){
27
  if( !response.success ) {
28
  swal.showInputError(response.data);
@@ -61,7 +64,7 @@ jQuery(function($){
61
  return false;
62
  }
63
 
64
- $.get(ajaxurl + "?action=imagify_check_api_key_validity&api_key=" +inputValue + "&imagifycheckapikeynonce="+ $('#imagifycheckapikeynonce').val())
65
  .done(function(response){
66
  if( !response.success ) {
67
  swal.showInputError(response.data);
@@ -113,6 +116,7 @@ jQuery(function($){
113
  var the_target = $(this).attr('href') || $(this).data('target');
114
 
115
  $( the_target ).css('display', 'flex').hide().fadeIn(400).attr('aria-hidden', 'false').attr('tabindex', '0').focus().removeAttr('tabindex').addClass('modal-is-open');
 
116
 
117
  return false;
118
  });
@@ -120,6 +124,7 @@ jQuery(function($){
120
  // on click on close button
121
  $('.imagify-modal').find('.close-btn').on('click', function(){
122
  $(this).closest('.imagify-modal').fadeOut(400).attr('aria-hidden', 'true').removeClass('modal-is-open');
 
123
  })
124
  .on('blur', function(){
125
  var $modal = $(this).closest('.imagify-modal');
@@ -155,7 +160,7 @@ jQuery(function($){
155
  var $adminBarProfile = $('#wp-admin-bar-imagify-profile-content');
156
 
157
  if( $adminBarProfile.is(':empty') ) {
158
- xhr = $.get(ajaxurl + "?action=imagify_get_admin_bar_profile&imagifygetadminbarprofilenonce="+ $('#imagifygetadminbarprofilenonce').val())
159
  .done(function(response){
160
  $adminBarProfile.html(response.data);
161
  $('#wp-admin-bar-imagify-profile-loading').remove();
1
  jQuery(function($){
2
+
3
+ var concat = ajaxurl.indexOf("?") > 0 ? "&" : "?";
4
+
5
  /*
6
  * Create a new Imagify account
7
  */
25
  return false;
26
  }
27
 
28
+ $.get(ajaxurl + concat + "action=imagify_signup&email=" +inputValue + "&imagifysignupnonce="+ $('#imagifysignupnonce').val())
29
  .done(function(response){
30
  if( !response.success ) {
31
  swal.showInputError(response.data);
64
  return false;
65
  }
66
 
67
+ $.get(ajaxurl + concat + "action=imagify_check_api_key_validity&api_key=" +inputValue + "&imagifycheckapikeynonce="+ $('#imagifycheckapikeynonce').val())
68
  .done(function(response){
69
  if( !response.success ) {
70
  swal.showInputError(response.data);
116
  var the_target = $(this).attr('href') || $(this).data('target');
117
 
118
  $( the_target ).css('display', 'flex').hide().fadeIn(400).attr('aria-hidden', 'false').attr('tabindex', '0').focus().removeAttr('tabindex').addClass('modal-is-open');
119
+ $('body').addClass('imagify-modal-is-open');
120
 
121
  return false;
122
  });
124
  // on click on close button
125
  $('.imagify-modal').find('.close-btn').on('click', function(){
126
  $(this).closest('.imagify-modal').fadeOut(400).attr('aria-hidden', 'true').removeClass('modal-is-open');
127
+ $('body').removeClass('imagify-modal-is-open');
128
  })
129
  .on('blur', function(){
130
  var $modal = $(this).closest('.imagify-modal');
160
  var $adminBarProfile = $('#wp-admin-bar-imagify-profile-content');
161
 
162
  if( $adminBarProfile.is(':empty') ) {
163
+ xhr = $.get(ajaxurl + concat + "action=imagify_get_admin_bar_profile&imagifygetadminbarprofilenonce="+ $('#imagifygetadminbarprofilenonce').val())
164
  .done(function(response){
165
  $adminBarProfile.html(response.data);
166
  $('#wp-admin-bar-imagify-profile-loading').remove();
assets/js/admin.min.js CHANGED
@@ -1,6 +1,6 @@
1
- jQuery(function(a){a("#imagify-signup").click(function(b){b.preventDefault();swal({title:imagify.signupTitle,text:imagify.signupText,confirmButtonText:imagify.signupConfirmButtonText,type:"input",closeOnConfirm:!1,allowOutsideClick:!0,showLoaderOnConfirm:!0,customClass:"imagify-sweet-alert imagify-sweet-alert-signup"},function(b){if(""==a.trim(b)||!b)return swal.showInputError(imagify.signupErrorEmptyEmail),!1;a.get(ajaxurl+"?action=imagify_signup&email="+b+"&imagifysignupnonce="+a("#imagifysignupnonce").val()).done(function(a){a.success?
2
- swal({title:imagify.signupSuccessTitle,text:imagify.signupSuccessText,type:"success",customClass:"imagify-sweet-alert"}):swal.showInputError(a.data)})})});a("#imagify-save-api-key").click(function(b){b.preventDefault();swal({title:imagify.saveApiKeyTitle,text:imagify.saveApiKeyText,confirmButtonText:imagify.saveApiKeyConfirmButtonText,type:"input",closeOnConfirm:!1,allowOutsideClick:!0,showLoaderOnConfirm:!0,customClass:"imagify-sweet-alert imagify-sweet-alert-signup"},function(b){if(""==a.trim(b)||
3
- !b)return swal.showInputError(imagify.signupErrorEmptyEmail),!1;a.get(ajaxurl+"?action=imagify_check_api_key_validity&api_key="+b+"&imagifycheckapikeynonce="+a("#imagifycheckapikeynonce").val()).done(function(a){a.success?swal({title:imagify.ApiKeyCheckSuccessTitle,text:imagify.ApiKeyCheckSuccessText,type:"success",customClass:"imagify-sweet-alert"}):swal.showInputError(a.data)})})});a(".imagify-notice-dismiss").click(function(b){b.preventDefault();var c=a(this);b=c.parents(".imagify-welcome, .imagify-notice");
4
- c=c.attr("href");b.fadeTo(100,0,function(){a(this).slideUp(100,function(){a(this).remove()})});a.get(c.replace("admin-post.php","admin-ajax.php"))});0<a(".imagify-modal-trigger").length&&(a(".imagify-modal").attr("aria-hidden","true"),a(".imagify-modal-trigger").on("click",function(){var b=a(this).attr("href")||a(this).data("target");a(b).css("display","flex").hide().fadeIn(400).attr("aria-hidden","false").attr("tabindex","0").focus().removeAttr("tabindex").addClass("modal-is-open");return!1}),a(".imagify-modal").find(".close-btn").on("click",
5
- function(){a(this).closest(".imagify-modal").fadeOut(400).attr("aria-hidden","true").removeClass("modal-is-open")}).on("blur",function(){var b=a(this).closest(".imagify-modal");"false"===b.attr("aria-hidden")&&b.attr("tabindex","0").focus().removeAttr("tabindex")}),a(window).on("keydown",function(b){if(27==b.keyCode&&0<a(".imagify-modal.modal-is-open").length)return b.preventDefault(),a(".imagify-modal.modal-is-open").find(".close-btn").trigger("click"),!1}));var d=!1,e=!1;a("#wp-admin-bar-imagify").hover(function(){!0===
6
- d&&e.abort();d=!0;var b=a("#wp-admin-bar-imagify-profile-content");b.is(":empty")&&(e=a.get(ajaxurl+"?action=imagify_get_admin_bar_profile&imagifygetadminbarprofilenonce="+a("#imagifygetadminbarprofilenonce").val()).done(function(c){b.html(c.data);a("#wp-admin-bar-imagify-profile-loading").remove();d=!1}))})});
1
+ jQuery(function(a){var d=0<ajaxurl.indexOf("?")?"&":"?";a("#imagify-signup").click(function(b){b.preventDefault();swal({title:imagify.signupTitle,text:imagify.signupText,confirmButtonText:imagify.signupConfirmButtonText,type:"input",closeOnConfirm:!1,allowOutsideClick:!0,showLoaderOnConfirm:!0,customClass:"imagify-sweet-alert imagify-sweet-alert-signup"},function(b){if(""==a.trim(b)||!b)return swal.showInputError(imagify.signupErrorEmptyEmail),!1;a.get(ajaxurl+d+"action=imagify_signup&email="+b+"&imagifysignupnonce="+
2
+ a("#imagifysignupnonce").val()).done(function(a){a.success?swal({title:imagify.signupSuccessTitle,text:imagify.signupSuccessText,type:"success",customClass:"imagify-sweet-alert"}):swal.showInputError(a.data)})})});a("#imagify-save-api-key").click(function(b){b.preventDefault();swal({title:imagify.saveApiKeyTitle,text:imagify.saveApiKeyText,confirmButtonText:imagify.saveApiKeyConfirmButtonText,type:"input",closeOnConfirm:!1,allowOutsideClick:!0,showLoaderOnConfirm:!0,customClass:"imagify-sweet-alert imagify-sweet-alert-signup"},
3
+ function(b){if(""==a.trim(b)||!b)return swal.showInputError(imagify.signupErrorEmptyEmail),!1;a.get(ajaxurl+d+"action=imagify_check_api_key_validity&api_key="+b+"&imagifycheckapikeynonce="+a("#imagifycheckapikeynonce").val()).done(function(a){a.success?swal({title:imagify.ApiKeyCheckSuccessTitle,text:imagify.ApiKeyCheckSuccessText,type:"success",customClass:"imagify-sweet-alert"}):swal.showInputError(a.data)})})});a(".imagify-notice-dismiss").click(function(b){b.preventDefault();var c=a(this);b=c.parents(".imagify-welcome, .imagify-notice");
4
+ c=c.attr("href");b.fadeTo(100,0,function(){a(this).slideUp(100,function(){a(this).remove()})});a.get(c.replace("admin-post.php","admin-ajax.php"))});0<a(".imagify-modal-trigger").length&&(a(".imagify-modal").attr("aria-hidden","true"),a(".imagify-modal-trigger").on("click",function(){var b=a(this).attr("href")||a(this).data("target");a(b).css("display","flex").hide().fadeIn(400).attr("aria-hidden","false").attr("tabindex","0").focus().removeAttr("tabindex").addClass("modal-is-open");a("body").addClass("imagify-modal-is-open");
5
+ return!1}),a(".imagify-modal").find(".close-btn").on("click",function(){a(this).closest(".imagify-modal").fadeOut(400).attr("aria-hidden","true").removeClass("modal-is-open");a("body").removeClass("imagify-modal-is-open")}).on("blur",function(){var b=a(this).closest(".imagify-modal");"false"===b.attr("aria-hidden")&&b.attr("tabindex","0").focus().removeAttr("tabindex")}),a(window).on("keydown",function(b){if(27==b.keyCode&&0<a(".imagify-modal.modal-is-open").length)return b.preventDefault(),a(".imagify-modal.modal-is-open").find(".close-btn").trigger("click"),
6
+ !1}));var e=!1,f=!1;a("#wp-admin-bar-imagify").hover(function(){!0===e&&f.abort();e=!0;var b=a("#wp-admin-bar-imagify-profile-content");b.is(":empty")&&(f=a.get(ajaxurl+d+"action=imagify_get_admin_bar_profile&imagifygetadminbarprofilenonce="+a("#imagifygetadminbarprofilenonce").val()).done(function(c){b.html(c.data);a("#wp-admin-bar-imagify-profile-loading").remove();e=!1}))})});
assets/js/bulk.js CHANGED
@@ -1,5 +1,7 @@
1
  jQuery(function($){
2
 
 
 
3
  // avoid error on IE
4
  var imagify = {
5
  log: function (content) {
@@ -84,7 +86,7 @@ jQuery(function($){
84
  imageUrl: imagifyBulk.waitImageUrl
85
  });
86
 
87
- $.get(ajaxurl+"?action=imagify_get_unoptimized_attachment_ids&optimization_level="+$optimization_level+"&imagifybulkuploadnonce="+$('#imagifybulkuploadnonce').val())
88
  .done(function(response) {
89
  if( !response.success ) {
90
  $obj.removeAttr('disabled');
@@ -120,7 +122,7 @@ jQuery(function($){
120
  swal.close();
121
 
122
  var config = {
123
- 'lib': ajaxurl+"?action=imagify_bulk_upload&imagifybulkuploadnonce="+$('#imagifybulkuploadnonce').val(),
124
  'images': response.data
125
  }
126
 
1
  jQuery(function($){
2
 
3
+ var concat = ajaxurl.indexOf("?") > 0 ? "&" : "?";
4
+
5
  // avoid error on IE
6
  var imagify = {
7
  log: function (content) {
86
  imageUrl: imagifyBulk.waitImageUrl
87
  });
88
 
89
+ $.get(ajaxurl+concat+"action=imagify_get_unoptimized_attachment_ids&optimization_level="+$optimization_level+"&imagifybulkuploadnonce="+$('#imagifybulkuploadnonce').val())
90
  .done(function(response) {
91
  if( !response.success ) {
92
  $obj.removeAttr('disabled');
122
  swal.close();
123
 
124
  var config = {
125
+ 'lib': ajaxurl+concat+"action=imagify_bulk_upload&imagifybulkuploadnonce="+$('#imagifybulkuploadnonce').val(),
126
  'images': response.data
127
  }
128
 
assets/js/bulk.min.js CHANGED
@@ -1,16 +1,16 @@
1
- jQuery(function(a){function n(c){c.each(function(){var c=parseInt(a(this).closest(".imagify-chart").next(".imagipercent").text()),c=[{value:c,color:"#00B3D3"},{value:100-c,color:"#D8D8D8"}];(new Chart(a(this)[0].getContext("2d"))).Doughnut(c,{segmentStrokeColor:"#FFF",segmentStrokeWidth:1,animateRotate:!0,tooltipEvents:[]})})}function p(c){c.each(function(){var c=parseInt(a(this).closest(".imagify-ac-chart").attr("data-percent")),c=[{value:c,color:"#40B1D0"},{value:100-c,color:"#FFFFFF"}];(new Chart(a(this)[0].getContext("2d"))).Doughnut(c,
2
- {segmentStrokeColor:"transparent",segmentStrokeWidth:0,animateRotate:!0,animation:!0,percentageInnerCutout:70,tooltipEvents:[]})})}var l={log:function(a){"undefined"!==console&&console.log(a)}},d=document.getElementById("imagify-overview-chart"),f=[{value:imagifyBulk.totalUnoptimizedAttachments,color:"#D9E4EB",highlight:"#D9E4EB",label:imagifyBulk.overviewChartLabels.unoptimized},{value:imagifyBulk.totalOptimizedAttachments,color:"#46B1CE",highlight:"#46B1CE",label:imagifyBulk.overviewChartLabels.optimized},
3
  {value:imagifyBulk.totalErrorsAttachments,color:"#2E3242",highlight:"#2E3242",label:imagifyBulk.overviewChartLabels.error}];if(d){var e=(new Chart(d.getContext("2d"))).Doughnut(f,{segmentStrokeColor:"transparent",segmentStrokeWidth:0,animateRotate:!0,animation:!0,percentageInnerCutout:85,legendTemplate:'<ul class="imagify-<%=name.toLowerCase()%>-legend"><% for (var i=0; i<segments.length; i++){%><li><span style="background-color:<%=segments[i].fillColor%>"></span><%if(segments[i].label){%><%=segments[i].label%><%}%></li><%}%></ul>',
4
  tooltipTemplate:"<%= value %>"}),d=e.generateLegend();document.getElementById("imagify-overview-chart-legend").innerHTML=d}a("#imagify-simulate-bulk-action").click(function(c){c.preventDefault();a("#imagify-bulk-action").trigger("click")});a("#imagify-bulk-action").click(function(){var c=a(this),d=a('[name="optimization_level"]:checked').val();"undefined"===typeof d&&(d=-1);if(c.attr("disabled"))return!1;c.attr("disabled","disabled");c.find(".dashicons").addClass("rotate");confirmMessage=function(){return imagifyBulk.processing};
5
- a(window).on("beforeunload",confirmMessage);swal({title:imagifyBulk.waitTitle,text:imagifyBulk.waitText,closeOnConfirm:!1,showConfirmButton:!1,imageUrl:imagifyBulk.waitImageUrl});a.get(ajaxurl+"?action=imagify_get_unoptimized_attachment_ids&optimization_level="+d+"&imagifybulkuploadnonce="+a("#imagifybulkuploadnonce").val()).done(function(d){if(d.success){swal.close();d={lib:ajaxurl+"?action=imagify_bulk_upload&imagifybulkuploadnonce="+a("#imagifybulkuploadnonce").val(),images:d.data};var f=a(".imagify-bulk-table table tbody"),
6
- g=0,m=0,h=0,k=0;a(".imagify-row-progress").slideDown();a(".imagify-no-uploaded-yet, .imagify-row-complete").hide(200);Optimizer=new ImagifyGulp(d);Optimizer.before(function(a){f.append('<tr id="attachment-'+a.id+'"><td class="imagify-cell-filename"><span class="imagiuploaded"><img src="'+a.thumbnail+'"/>"</span><span class="imagifilename">'+a.filename+'</span></td><td class="imagify-cell-status"><span class="imagistatus status-compressing"><span class="dashicons dashicons-admin-generic rotate"></span>Compressing<span></span></span></td><td class="imagify-cell-original"></td><td class="imagify-cell-optimized"></td><td class="imagify-cell-percentage"></td><td class="imagify-cell-thumbnails"></td><td class="imagify-cell-savings"></td></tr>')}).each(function(b){var c=
7
  a("#imagify-progress-bar");c.css({width:b.progress+"%"});c.find(".percent").html(b.progress+"%");b.success?(a("#attachment-"+b.image+" .imagify-cell-status").html('<span class="imagistatus status-complete"><span class="dashicons dashicons-yes"></span>Complete</span>'),a("#attachment-"+b.image+" .imagify-cell-original").html(b.original_size_human),a("#attachment-"+b.image+" .imagify-cell-optimized").html(b.new_size_human),a("#attachment-"+b.image+" .imagify-cell-percentage").html('<span class="imagify-chart"><span class="imagify-chart-container"><canvas height="18" width="18" id="imagify-consumption-chart" style="width: 18px; height: 18px;"></canvas></span></span><span class="imagipercent">'+
8
- b.percent+"</span>%"),n(a("#attachment-"+b.image+" .imagify-cell-percentage").find("canvas")),a("#attachment-"+b.image+" .imagify-cell-thumbnails").html(b.thumbnails),a("#attachment-"+b.image+" .imagify-cell-savings").html(Optimizer.toHumanSize(b.overall_saving,1)),a("#imagify-overview-chart-percent").html(b.global_optimized_attachments_percent+"<span>%</span>"),a("#imagify-total-optimized-attachments").html(b.global_already_optimized_attachments),a(".imagify-unconsumed-percent").html(b.global_unconsumed_quota+
9
  "%"),a(".imagify-unconsumed-bar").animate({width:b.global_unconsumed_quota+"%"}),a("#imagify-original-bar").find(".imagify-barnb").html(b.global_original_human),a("#imagify-optimized-bar").animate({width:b.global_optimized_percent+"%"}),a("#imagify-optimized-bar").find(".imagify-barnb").html(b.global_optimized_human),a("#imagify-total-optimized-attachments-pct").html(b.global_optimized_percent+"%"),g=g+b.thumbnails+1,a(".imagify-cell-nb-files").html(g+" file(s)"),h+=b.original_overall_size,a(".imagify-total-original").html(Optimizer.toHumanSize(h,
10
- 1)),k+=b.overall_saving,a(".imagify-total-gain").html(Optimizer.toHumanSize(k,1))):(error_class="error",error_dashicon="dismiss",error_message="Error",0<=b.error.indexOf("You've consumed all your data")&&swal({title:imagifyBulk.overQuotaTitle,text:imagifyBulk.overQuotaText,type:"error",customClass:"imagify-sweet-alert",html:!0},function(){location.reload()}),0<=b.error.indexOf("This image is already compressed")?(error_dashicon=error_class="warning",error_message="Notice"):(m++,a(".imagify-cell-errors").html(m+
11
  " error(s)")),a("#attachment-"+b.image).after('<tr><td colspan="7"><span class="status-'+error_class+'">'+b.error+"</span></td></tr>"),a("#attachment-"+b.image+" .imagify-cell-status").html('<span class="imagistatus status-'+error_class+'"><span class="dashicons dashicons-'+error_dashicon+'"></span>'+error_message+"</span>"));e.segments[0].value=b.global_unoptimized_attachments;e.segments[1].value=b.global_optimized_attachments;e.segments[2].value=b.global_errors_attachments;e.update()}).done(function(b){c.removeAttr("disabled");
12
  c.find(".dashicons").removeClass("rotate");a(window).off("beforeunload",confirmMessage);a(".imagify-row-progress").slideUp();"NaN"!==b.global_percent&&(a(".imagify-row-complete").removeClass("hidden").addClass("done").attr("aria-hidden","false"),a("html, body").animate({scrollTop:a(".imagify-row-complete").offset().top},200),a(".imagify-ac-rt-total-gain").html(b.global_gain_human),a(".imagify-ac-rt-total-original").html(b.global_original_size_human),text2share=imagifyBulk.textToShare,text2share=text2share.replace("%1$s",
13
- b.global_gain_human),text2share=text2share.replace("%2$s",b.global_original_size_human),text2share=encodeURIComponent(text2share),a(".imagify-sn-twitter").attr("href","https://twitter.com/intent/tweet?source=webclient&amp;original_referer="+imagifyBulk.pluginURL+"&amp;text="+text2share+"&amp;url="+imagifyBulk.pluginURL+"&amp;related=imagify&amp;hastags=performance,web,wordpress"),a(".imagify-ac-chart").attr("data-percent",b.global_percent),p(a(".imagify-ac-chart").find("canvas")))}).error(function(a){l.log("Can't optimize image with id "+
14
- a)}).run()}else c.removeAttr("disabled"),c.find(".dashicons").removeClass("rotate"),a(window).off("beforeunload",confirmMessage),l.log(d),"over-quota"==d.data.message&&swal({title:imagifyBulk.overQuotaTitle,text:imagifyBulk.overQuotaText,type:"error",customClass:"imagify-sweet-alert",html:!0}),"no-images"==d.data.message&&swal({title:imagifyBulk.noAttachmentToOptimizeTitle,text:imagifyBulk.noAttachmentToOptimizeText,type:"info",customClass:"imagify-sweet-alert"})}).fail(function(){swal({title:imagifyBulk.getUnoptimizedImagesErrorTitle,
15
  text:imagifyBulk.getUnoptimizedImagesErrorText,type:"error",customClass:"imagify-sweet-alert"},function(){location.reload()})})})});var width=700,height=290;if(window.innerWidth)var clientLeft=(window.innerWidth-width)/2,clientTop=(window.innerHeight-height)/2;else clientLeft=(document.body.clientWidth-width)/2,clientTop=(document.body.clientHeight-height)/2;
16
  [].forEach.call(document.querySelectorAll(".imagify-share-networks a"),function(a){a.addEventListener("click",function(a){window.open(this.href,"","status=no, scrollbars=no, menubar=no, top="+clientTop+", left="+clientLeft+", width="+width+", height="+height);a.preventDefault()},!1)});
1
+ jQuery(function(a){function p(c){c.each(function(){var c=parseInt(a(this).closest(".imagify-chart").next(".imagipercent").text()),c=[{value:c,color:"#00B3D3"},{value:100-c,color:"#D8D8D8"}];(new Chart(a(this)[0].getContext("2d"))).Doughnut(c,{segmentStrokeColor:"#FFF",segmentStrokeWidth:1,animateRotate:!0,tooltipEvents:[]})})}function q(c){c.each(function(){var c=parseInt(a(this).closest(".imagify-ac-chart").attr("data-percent")),c=[{value:c,color:"#40B1D0"},{value:100-c,color:"#FFFFFF"}];(new Chart(a(this)[0].getContext("2d"))).Doughnut(c,
2
+ {segmentStrokeColor:"transparent",segmentStrokeWidth:0,animateRotate:!0,animation:!0,percentageInnerCutout:70,tooltipEvents:[]})})}var l=0<ajaxurl.indexOf("?")?"&":"?",m={log:function(a){"undefined"!==console&&console.log(a)}},d=document.getElementById("imagify-overview-chart"),f=[{value:imagifyBulk.totalUnoptimizedAttachments,color:"#D9E4EB",highlight:"#D9E4EB",label:imagifyBulk.overviewChartLabels.unoptimized},{value:imagifyBulk.totalOptimizedAttachments,color:"#46B1CE",highlight:"#46B1CE",label:imagifyBulk.overviewChartLabels.optimized},
3
  {value:imagifyBulk.totalErrorsAttachments,color:"#2E3242",highlight:"#2E3242",label:imagifyBulk.overviewChartLabels.error}];if(d){var e=(new Chart(d.getContext("2d"))).Doughnut(f,{segmentStrokeColor:"transparent",segmentStrokeWidth:0,animateRotate:!0,animation:!0,percentageInnerCutout:85,legendTemplate:'<ul class="imagify-<%=name.toLowerCase()%>-legend"><% for (var i=0; i<segments.length; i++){%><li><span style="background-color:<%=segments[i].fillColor%>"></span><%if(segments[i].label){%><%=segments[i].label%><%}%></li><%}%></ul>',
4
  tooltipTemplate:"<%= value %>"}),d=e.generateLegend();document.getElementById("imagify-overview-chart-legend").innerHTML=d}a("#imagify-simulate-bulk-action").click(function(c){c.preventDefault();a("#imagify-bulk-action").trigger("click")});a("#imagify-bulk-action").click(function(){var c=a(this),d=a('[name="optimization_level"]:checked').val();"undefined"===typeof d&&(d=-1);if(c.attr("disabled"))return!1;c.attr("disabled","disabled");c.find(".dashicons").addClass("rotate");confirmMessage=function(){return imagifyBulk.processing};
5
+ a(window).on("beforeunload",confirmMessage);swal({title:imagifyBulk.waitTitle,text:imagifyBulk.waitText,closeOnConfirm:!1,showConfirmButton:!1,imageUrl:imagifyBulk.waitImageUrl});a.get(ajaxurl+l+"action=imagify_get_unoptimized_attachment_ids&optimization_level="+d+"&imagifybulkuploadnonce="+a("#imagifybulkuploadnonce").val()).done(function(d){if(d.success){swal.close();d={lib:ajaxurl+l+"action=imagify_bulk_upload&imagifybulkuploadnonce="+a("#imagifybulkuploadnonce").val(),images:d.data};var f=a(".imagify-bulk-table table tbody"),
6
+ g=0,n=0,h=0,k=0;a(".imagify-row-progress").slideDown();a(".imagify-no-uploaded-yet, .imagify-row-complete").hide(200);Optimizer=new ImagifyGulp(d);Optimizer.before(function(a){f.append('<tr id="attachment-'+a.id+'"><td class="imagify-cell-filename"><span class="imagiuploaded"><img src="'+a.thumbnail+'"/>"</span><span class="imagifilename">'+a.filename+'</span></td><td class="imagify-cell-status"><span class="imagistatus status-compressing"><span class="dashicons dashicons-admin-generic rotate"></span>Compressing<span></span></span></td><td class="imagify-cell-original"></td><td class="imagify-cell-optimized"></td><td class="imagify-cell-percentage"></td><td class="imagify-cell-thumbnails"></td><td class="imagify-cell-savings"></td></tr>')}).each(function(b){var c=
7
  a("#imagify-progress-bar");c.css({width:b.progress+"%"});c.find(".percent").html(b.progress+"%");b.success?(a("#attachment-"+b.image+" .imagify-cell-status").html('<span class="imagistatus status-complete"><span class="dashicons dashicons-yes"></span>Complete</span>'),a("#attachment-"+b.image+" .imagify-cell-original").html(b.original_size_human),a("#attachment-"+b.image+" .imagify-cell-optimized").html(b.new_size_human),a("#attachment-"+b.image+" .imagify-cell-percentage").html('<span class="imagify-chart"><span class="imagify-chart-container"><canvas height="18" width="18" id="imagify-consumption-chart" style="width: 18px; height: 18px;"></canvas></span></span><span class="imagipercent">'+
8
+ b.percent+"</span>%"),p(a("#attachment-"+b.image+" .imagify-cell-percentage").find("canvas")),a("#attachment-"+b.image+" .imagify-cell-thumbnails").html(b.thumbnails),a("#attachment-"+b.image+" .imagify-cell-savings").html(Optimizer.toHumanSize(b.overall_saving,1)),a("#imagify-overview-chart-percent").html(b.global_optimized_attachments_percent+"<span>%</span>"),a("#imagify-total-optimized-attachments").html(b.global_already_optimized_attachments),a(".imagify-unconsumed-percent").html(b.global_unconsumed_quota+
9
  "%"),a(".imagify-unconsumed-bar").animate({width:b.global_unconsumed_quota+"%"}),a("#imagify-original-bar").find(".imagify-barnb").html(b.global_original_human),a("#imagify-optimized-bar").animate({width:b.global_optimized_percent+"%"}),a("#imagify-optimized-bar").find(".imagify-barnb").html(b.global_optimized_human),a("#imagify-total-optimized-attachments-pct").html(b.global_optimized_percent+"%"),g=g+b.thumbnails+1,a(".imagify-cell-nb-files").html(g+" file(s)"),h+=b.original_overall_size,a(".imagify-total-original").html(Optimizer.toHumanSize(h,
10
+ 1)),k+=b.overall_saving,a(".imagify-total-gain").html(Optimizer.toHumanSize(k,1))):(error_class="error",error_dashicon="dismiss",error_message="Error",0<=b.error.indexOf("You've consumed all your data")&&swal({title:imagifyBulk.overQuotaTitle,text:imagifyBulk.overQuotaText,type:"error",customClass:"imagify-sweet-alert",html:!0},function(){location.reload()}),0<=b.error.indexOf("This image is already compressed")?(error_dashicon=error_class="warning",error_message="Notice"):(n++,a(".imagify-cell-errors").html(n+
11
  " error(s)")),a("#attachment-"+b.image).after('<tr><td colspan="7"><span class="status-'+error_class+'">'+b.error+"</span></td></tr>"),a("#attachment-"+b.image+" .imagify-cell-status").html('<span class="imagistatus status-'+error_class+'"><span class="dashicons dashicons-'+error_dashicon+'"></span>'+error_message+"</span>"));e.segments[0].value=b.global_unoptimized_attachments;e.segments[1].value=b.global_optimized_attachments;e.segments[2].value=b.global_errors_attachments;e.update()}).done(function(b){c.removeAttr("disabled");
12
  c.find(".dashicons").removeClass("rotate");a(window).off("beforeunload",confirmMessage);a(".imagify-row-progress").slideUp();"NaN"!==b.global_percent&&(a(".imagify-row-complete").removeClass("hidden").addClass("done").attr("aria-hidden","false"),a("html, body").animate({scrollTop:a(".imagify-row-complete").offset().top},200),a(".imagify-ac-rt-total-gain").html(b.global_gain_human),a(".imagify-ac-rt-total-original").html(b.global_original_size_human),text2share=imagifyBulk.textToShare,text2share=text2share.replace("%1$s",
13
+ b.global_gain_human),text2share=text2share.replace("%2$s",b.global_original_size_human),text2share=encodeURIComponent(text2share),a(".imagify-sn-twitter").attr("href","https://twitter.com/intent/tweet?source=webclient&amp;original_referer="+imagifyBulk.pluginURL+"&amp;text="+text2share+"&amp;url="+imagifyBulk.pluginURL+"&amp;related=imagify&amp;hastags=performance,web,wordpress"),a(".imagify-ac-chart").attr("data-percent",b.global_percent),q(a(".imagify-ac-chart").find("canvas")))}).error(function(a){m.log("Can't optimize image with id "+
14
+ a)}).run()}else c.removeAttr("disabled"),c.find(".dashicons").removeClass("rotate"),a(window).off("beforeunload",confirmMessage),m.log(d),"over-quota"==d.data.message&&swal({title:imagifyBulk.overQuotaTitle,text:imagifyBulk.overQuotaText,type:"error",customClass:"imagify-sweet-alert",html:!0}),"no-images"==d.data.message&&swal({title:imagifyBulk.noAttachmentToOptimizeTitle,text:imagifyBulk.noAttachmentToOptimizeText,type:"info",customClass:"imagify-sweet-alert"})}).fail(function(){swal({title:imagifyBulk.getUnoptimizedImagesErrorTitle,
15
  text:imagifyBulk.getUnoptimizedImagesErrorText,type:"error",customClass:"imagify-sweet-alert"},function(){location.reload()})})})});var width=700,height=290;if(window.innerWidth)var clientLeft=(window.innerWidth-width)/2,clientTop=(window.innerHeight-height)/2;else clientLeft=(document.body.clientWidth-width)/2,clientTop=(document.body.clientHeight-height)/2;
16
  [].forEach.call(document.querySelectorAll(".imagify-share-networks a"),function(a){a.addEventListener("click",function(a){window.open(this.href,"","status=no, scrollbars=no, menubar=no, top="+clientTop+", left="+clientLeft+", width="+width+", height="+height);a.preventDefault()},!1)});
assets/js/jquery.twentytwenty.js CHANGED
@@ -316,4 +316,155 @@
316
 
317
  });
318
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
319
  })(window, jQuery);
316
 
317
  });
318
 
319
+ // Imagify comparison inside Media post visualization
320
+
321
+ if ( $('.post-php').find('.wp_attachment_image').find('.thumbnail').length > 0 ) {
322
+ var $ori_parent = $('.post-php').find('.wp_attachment_image'),
323
+ $thumbnail = $ori_parent.find('.thumbnail'),
324
+ thumb = { src: $thumbnail.prop('src'), width: $thumbnail.width(), height: $thumbnail.height() },
325
+ ori_source = { src: $('#imagify-full-original').val(), size: $('#imagify-full-original-size').val() },
326
+ $optimize_btn = $('#misc-publishing-actions').find('.misc-pub-imagify').find('.button-primary');
327
+
328
+ // if shown image > 300, use twentytwenty
329
+ if ( thumb.width > 300 && $('#imagify-full-original').length > 0 && $('#imagify-full-original').val() !== '' ) {
330
+
331
+ var imgs_loaded = 0,
332
+ filesize = $('.misc-pub-filesize').find('strong').text(),
333
+ saving = $('.imagify-data-item').find('.imagify-chart-value').text();
334
+
335
+ // create button to trigger
336
+ $('[id^="imgedit-open-btn-"]').before('<button type="button" class="imagify-button-primary button-primary imagify-modal-trigger" data-target="#imagify-visual-comparison" id="imagify-start-comparison">' + imagifyTTT.labels.compare + '</button>')
337
+
338
+ // create modal box
339
+ $ori_parent.append(''
340
+ + '<div id="imagify-visual-comparison" class="imagify-modal" aria-hidden="true">'
341
+ + '<div class="imagify-modal-content loading">'
342
+ + '<div class="twentytwenty-container">'
343
+ + '<img class="imagify-img-before" alt="" width="' + thumb.width + '" height="' + thumb.height + '">'
344
+ + '<img class="imagify-img-after" alt="" width="' + thumb.width + '" height="' + thumb.height + '">'
345
+ + '</div>'
346
+ + '<div class="imagify-comparison-levels">'
347
+ + '<div class="imagify-c-level imagify-level-original go-left">'
348
+ + '<p class="imagify-c-level-row">'
349
+ + '<span class="label">' + imagifyTTT.labels.filesize + '</span>'
350
+ + '<span class="value level">' + ori_source.size + '</span>'
351
+ + '</p>'
352
+ + '</div>'
353
+ + '<div class="imagify-c-level imagify-level-optimized go-right">'
354
+ + '<p class="imagify-c-level-row">'
355
+ + '<span class="label">' + imagifyTTT.labels.filesize + '</span>'
356
+ + '<span class="value level">' + filesize + '</span>'
357
+ + '</p>'
358
+ + '<p class="imagify-c-level-row">'
359
+ + '<span class="label">' + imagifyTTT.labels.saving + '</span>'
360
+ + '<span class="value"><span class="imagify-chart"><span class="imagify-chart-container"><canvas id="imagify-consumption-chart-normal" width="15" height="15"></canvas></span></span><span class="imagify-chart-value">' + saving + '</span>%</span>'
361
+ + '</p>'
362
+ +'</div>'
363
+ + '</div>'
364
+ + '<button class="close-btn absolute" type="button"><i aria-hidden="true" class="dashicons dashicons-no-alt"></i><span class="screen-reader-text">' + imagifyTTT.labels.close + '</span></button>'
365
+ + '</div>'
366
+ + '</div>'
367
+ );
368
+
369
+ $('#imagify-start-comparison').on('click.imagify', function(){
370
+
371
+ var $modal = $( $(this).data('target') );
372
+
373
+ $modal.find('.imagify-modal-content').css({
374
+ 'width' : ($(window).outerWidth()*0.95) + 'px',
375
+ 'max-width' : thumb.width
376
+ });
377
+
378
+ // load before img
379
+ $('.imagify-img-before').on('load', function(){
380
+ imgs_loaded++;
381
+ }).attr('src', ori_source.src);
382
+
383
+ // load after img
384
+ $('.imagify-img-after').on('load', function(){
385
+ imgs_loaded++;
386
+ }).attr('src', thumb.src);
387
+
388
+ var $tt = $('.twentytwenty-container'),
389
+ check_load = setInterval( function(){
390
+
391
+ if ( imgs_loaded === 2 ) {
392
+ $tt.twentytwenty({
393
+ handlePosition: 0.3,
394
+ orientation: 'horizontal',
395
+ labelBefore: imagifyTTT.labels.original_l,
396
+ labelAfter: imagifyTTT.labels.optimized_l
397
+ }, function(){
398
+
399
+ var windowH = $(window).height(),
400
+ ttH = $('.twentytwenty-container').height(),
401
+ ttTop = $('.twentytwenty-wrapper').position().top;
402
+
403
+ if ( ! $tt.closest('.imagify-modal-content').hasClass('loaded') ) {
404
+ $tt.closest('.imagify-modal-content').removeClass('loading').addClass('loaded');
405
+ draw_me_a_chart( $('.imagify-level-optimized').find('.imagify-chart').find('canvas') );
406
+ }
407
+
408
+ // check if image height is to big
409
+ if ( windowH < ttH && ! $modal.hasClass('modal-is-too-high') ) {
410
+ $modal.addClass('modal-is-too-high');
411
+
412
+ var $handle = $modal.find('.twentytwenty-handle'),
413
+ $labels = $modal.find('.twentytwenty-label-content'),
414
+ $datas = $modal.find('.imagify-comparison-levels'),
415
+ datasH = $datas.outerHeight(),
416
+ handle_pos = ( windowH - ttTop - $handle.height() ) / 2,
417
+ labels_pos = ( windowH - ttTop * 3 - datasH );
418
+
419
+ $handle.css({
420
+ top: handle_pos
421
+ });
422
+ $labels.css({
423
+ top: labels_pos,
424
+ bottom: 'auto'
425
+ });
426
+ $modal.find('.twentytwenty-wrapper').css({
427
+ paddingBottom: datasH
428
+ });
429
+
430
+ $modal.find('.imagify-modal-content').on('scroll.imagify', function(){
431
+ $handle.css({
432
+ top: handle_pos + $(this).scrollTop()
433
+ });
434
+ $labels.css({
435
+ top: labels_pos + $(this).scrollTop()
436
+ });
437
+ $datas.css({
438
+ bottom: - ( $(this).scrollTop() )
439
+ });
440
+ });
441
+ }
442
+
443
+ });
444
+ clearInterval( check_load );
445
+ check_load = null;
446
+ }
447
+ }, 75 );
448
+
449
+ });
450
+ }
451
+ // else put images next to next
452
+ else if ( thumb.width < 300 && $('#imagify-full-original').length > 0 && $('#imagify-full-original').val() !== '' ) {
453
+
454
+ }
455
+ // if image has no backup
456
+ else if ( $('#imagify-full-original').length > 0 && $('#imagify-full-original').val() === '' ) {
457
+ // do nothing ?
458
+ }
459
+ // in case image is not optimized
460
+ else {
461
+ $('[id^="imgedit-open-btn-"]').before('<span class="spinner imagify-hidden"></span><a class="imagify-button-primary button-primary imagify-optimize-trigger" id="imagify-optimize-trigger" href="' + $optimize_btn.attr('href') + '">' + imagifyTTT.labels.optimize + '</a>');
462
+
463
+ $('#imagify-optimize-trigger').on('click', function(){
464
+ $(this).prev('.spinner').removeClass('imagify-hidden').addClass('is-active');
465
+ });
466
+ }
467
+
468
+ }
469
+
470
  })(window, jQuery);
assets/js/jquery.twentytwenty.min.js CHANGED
@@ -1,15 +1,23 @@
1
- (function(n,a,w){a.fn.twentytwenty=function(f,b){f=a.extend({handlePosition:.5,orientation:"horizontal",labelBefore:"Before",labelAfter:"After"},f);return this.each(function(){var d=f.handlePosition,c=a(this),e=f.orientation,g="vertical"===e?"down":"left",r="vertical"===e?"up":"right",k=c.find("img:first"),x=c.find("img:last");c.wrap('<div class="twentytwenty-wrapper twentytwenty-'+e+'"></div>');c.append('<div class="twentytwenty-overlay"></div>');c.append('<div class="twentytwenty-handle"></div>');
2
- var h=c.find(".twentytwenty-handle");h.append('<span class="twentytwenty-'+g+'-arrow"></span>');h.append('<span class="twentytwenty-'+r+'-arrow"></span>');c.addClass("twentytwenty-container");k.addClass("twentytwenty-before");x.addClass("twentytwenty-after");g=c.find(".twentytwenty-overlay");g.append('<div class="twentytwenty-labels twentytwenty-before-label"><span class="twentytwenty-label-content">'+f.labelBefore+"</span></div>");g.append('<div class="twentytwenty-labels twentytwenty-after-label"><span class="twentytwenty-label-content">'+
3
- f.labelAfter+"</span></div>");var t=function(a){var d,g,f;f=k.width();var m=k.height();d=f+"px";g=m+"px";f=a*f+"px";a=a*m+"px";h.css("vertical"===e?"top":"left","vertical"===e?a:f);m=c.find(".twentytwenty-before");"vertical"===e?m.css("clip","rect(0,"+d+","+a+",0)"):m.css("clip","rect(0,"+f+","+g+",0)");c.css("height",g);"function"===typeof b&&b()},p=0,u=0,v=0,q=0;a(n).on("resize.twentytwenty",function(a){t(d)});h.on("movestart",function(a){(a.distX>a.distY&&a.distX<-a.distY||a.distX<a.distY&&a.distX>
4
- -a.distY)&&"vertical"!==e?a.preventDefault():(a.distX<a.distY&&a.distX<-a.distY||a.distX>a.distY&&a.distX>-a.distY)&&"vertical"===e&&a.preventDefault();c.addClass("active");p=c.offset().left;u=c.offset().top;v=k.width();q=k.height()});h.on("moveend",function(a){c.removeClass("active")});h.on("move",function(a){c.hasClass("active")&&(d="vertical"===e?(a.pageY-u)/q:(a.pageX-p)/v,0>d&&(d=0),1<d&&(d=1),t(d))});c.find("img").on("mousedown",function(a){a.preventDefault()});a(n).trigger("resize.twentytwenty")})}})(window,
5
  jQuery);
6
- (function(n,a,w){var f=function(b){b.each(function(){var b=parseInt(a(this).closest(".imagify-chart").next(".imagify-chart-value").text()),b=[{value:b,color:"#00B3D3"},{value:100-b,color:"#D8D8D8"}];(new Chart(a(this)[0].getContext("2d"))).Doughnut(b,{segmentStrokeColor:"#2A2E3C",segmentStrokeWidth:1,animateRotate:!0,percentageInnerCutout:60,tooltipEvents:[]})})};a(".imagify-visual-comparison-btn").on("click",function(){if(1!==a(".twentytwenty-wrapper").length&&(a(a(this).data("target")).find(".imagify-modal-content").css("width",.95*
7
- a(n).outerWidth()+"px"),0<a(".twentytwenty-container").length&&800<a(n).outerWidth())){var b=a(".twentytwenty-container"),d=0,c=b.data("loader"),e=b.data("label-original"),g=b.data("label-normal"),r=b.data("label-aggressive"),k=b.data("label-ultra"),x=b.data("original-label").replace(/\*\*/,"<strong>").replace(/\*\*/,"</strong>"),h=b.data("original-alt"),t=b.data("original-img"),p=b.data("original-dim").split("x");b.data("normal-label").replace(/\*\*/,"<strong>").replace(/\*\*/,"</strong>");var u=
8
- b.data("normal-alt"),v=b.data("normal-img"),q=b.data("normal-dim").split("x");b.data("aggressive-label").replace(/\*\*/,"<strong>").replace(/\*\*/,"</strong>");var w=b.data("aggressive-alt"),B=b.data("aggressive-img"),y=b.data("aggressive-dim").split("x"),C=b.data("ultra-label").replace(/\*\*/,"<strong>").replace(/\*\*/,"</strong>"),m=b.data("ultra-alt"),D=b.data("ultra-img"),z=b.data("ultra-dim").split("x"),e='<span class="twentytwenty-duo-buttons twentytwenty-duo-left"><button type="button" class="imagify-comparison-original selected" data-img="original">'+
9
- e+'</button><button type="button" class="imagify-comparison-normal" data-img="normal">'+g+'</button><button type="button" class="imagify-comparison-aggressive" data-img="aggressive">'+r+"</button></span>",g='<span class="twentytwenty-duo-buttons twentytwenty-duo-right"><button type="button" class="imagify-comparison-normal" data-img="normal">'+g+'</button><button type="button" class="imagify-comparison-aggressive" data-img="aggressive">'+r+'</button><button type="button" class="imagify-comparison-ultra selected" data-img="ultra">'+
10
- k+"</button></span>";b.before('<img class="loader" src="'+c+'" alt="Loading\u2026" width="64" height="64">');c=a(".twentytwenty-left-buttons").lenght?e+g:"";a(".twentytwenty-left-buttons").append(e);a(".twentytwenty-right-buttons").append(g);b.closest(".imagify-modal-content").addClass("loading").find(".twentytwenty-container").append('<img class="img-original" alt="'+h+'" width="'+p[0]+'" height="'+p[1]+'"><img class="img-normal" alt="'+u+'" width="'+q[0]+'" height="'+q[1]+'"><img class="img-aggressive" alt="'+
11
- w+'" width="'+y[0]+'" height="'+y[1]+'"><img class="img-ultra" alt="'+m+'" width="'+z[0]+'" height="'+z[1]+'">'+c);a(".img-original").on("load",function(){d++}).attr("src",t);a(".img-normal").on("load",function(){d++}).attr("src",v);a(".img-aggressive").on("load",function(){d++}).attr("src",B);a(".img-ultra").on("load",function(){d++}).attr("src",D);var A=setInterval(function(){4===d&&(b.twentytwenty({handlePosition:.6,orientation:"horizontal",labelBefore:x,labelAfter:C},function(){b.closest(".imagify-modal-content").hasClass("loaded")||
12
- (b.closest(".imagify-modal-content").removeClass("loading").addClass("loaded"),f(a(".imagify-level-ultra").find(".imagify-chart").find("canvas")))}),clearInterval(A),A=null)},75);a(".imagify-comparison-title").on("click",".twentytwenty-duo-buttons button:not(.selected)",function(b){b.stopPropagation();var c=a(this);b=c.closest(".imagify-comparison-title").nextAll(".twentytwenty-wrapper").find(".twentytwenty-container");var d=c.closest(".twentytwenty-duo-buttons").hasClass("twentytwenty-duo-left")?
13
- "left":"right",e="left"===d?c.closest(".imagify-comparison-title").find(".twentytwenty-duo-right"):c.closest(".imagify-comparison-title").find(".twentytwenty-duo-left"),g=c.closest(".twentytwenty-duo-buttons").find("button"),h=b.find(".twentytwenty-before"),k=b.find(".twentytwenty-after"),l=c.data("img");g.removeClass("selected");c.addClass("selected");e.find(".selected").data("img")===l&&e.find("button:not(.selected)").eq(0).trigger("click");"left"===d&&(c=h.css("clip"),h.attr("style",""),h.removeClass("twentytwenty-before"),
14
- b.find(".img-"+l).addClass("twentytwenty-before").css("clip",c),a(".twentytwenty-before-label").find(".twentytwenty-label-content").text(b.data(l+"-label")),a(".imagify-c-level.go-left").attr("aria-hidden","true").removeClass("go-left go-right"),a(".imagify-level-"+l).attr("aria-hidden","false").addClass("go-left"));"right"===d&&(k.removeClass("twentytwenty-after"),b.find(".img-"+l).addClass("twentytwenty-after"),a(".twentytwenty-after-label").find(".twentytwenty-label-content").text(b.data(l+"-label")),
15
- a(".imagify-c-level.go-right").attr("aria-hidden","true").removeClass("go-left go-right"),a(".imagify-level-"+l).attr("aria-hidden","false").addClass("go-right"));f(a(".imagify-level-"+l).find(".imagify-chart").find("canvas"));return!1})}})})(window,jQuery);
 
 
 
 
 
 
 
 
1
+ (function(r,a,l){a.fn.twentytwenty=function(p,e){p=a.extend({handlePosition:.5,orientation:"horizontal",labelBefore:"Before",labelAfter:"After"},p);return this.each(function(){var h=p.handlePosition,c=a(this),f=p.orientation,m="vertical"===f?"down":"left",q="vertical"===f?"up":"right",d=c.find("img:first"),l=c.find("img:last");c.wrap('<div class="twentytwenty-wrapper twentytwenty-'+f+'"></div>');c.append('<div class="twentytwenty-overlay"></div>');c.append('<div class="twentytwenty-handle"></div>');
2
+ var b=c.find(".twentytwenty-handle");b.append('<span class="twentytwenty-'+m+'-arrow"></span>');b.append('<span class="twentytwenty-'+q+'-arrow"></span>');c.addClass("twentytwenty-container");d.addClass("twentytwenty-before");l.addClass("twentytwenty-after");m=c.find(".twentytwenty-overlay");m.append('<div class="twentytwenty-labels twentytwenty-before-label"><span class="twentytwenty-label-content">'+p.labelBefore+"</span></div>");m.append('<div class="twentytwenty-labels twentytwenty-after-label"><span class="twentytwenty-label-content">'+
3
+ p.labelAfter+"</span></div>");var t=function(a){var t,k,g;g=d.width();var n=d.height();t=g+"px";k=n+"px";g=a*g+"px";a=a*n+"px";b.css("vertical"===f?"top":"left","vertical"===f?a:g);n=c.find(".twentytwenty-before");"vertical"===f?n.css("clip","rect(0,"+t+","+a+",0)"):n.css("clip","rect(0,"+g+","+k+",0)");c.css("height",k);"function"===typeof e&&e()},v=0,g=0,k=0,w=0;a(r).on("resize.twentytwenty",function(a){t(h)});b.on("movestart",function(a){(a.distX>a.distY&&a.distX<-a.distY||a.distX<a.distY&&a.distX>
4
+ -a.distY)&&"vertical"!==f?a.preventDefault():(a.distX<a.distY&&a.distX<-a.distY||a.distX>a.distY&&a.distX>-a.distY)&&"vertical"===f&&a.preventDefault();c.addClass("active");v=c.offset().left;g=c.offset().top;k=d.width();w=d.height()});b.on("moveend",function(a){c.removeClass("active")});b.on("move",function(a){c.hasClass("active")&&(h="vertical"===f?(a.pageY-g)/w:(a.pageX-v)/k,0>h&&(h=0),1<h&&(h=1),t(h))});c.find("img").on("mousedown",function(a){a.preventDefault()});a(r).trigger("resize.twentytwenty")})}})(window,
5
  jQuery);
6
+ (function(r,a,l){var p=function(b){b.each(function(){var b=parseInt(a(this).closest(".imagify-chart").next(".imagify-chart-value").text()),b=[{value:b,color:"#00B3D3"},{value:100-b,color:"#D8D8D8"}];(new Chart(a(this)[0].getContext("2d"))).Doughnut(b,{segmentStrokeColor:"#2A2E3C",segmentStrokeWidth:1,animateRotate:!0,percentageInnerCutout:60,tooltipEvents:[]})})};a(".imagify-visual-comparison-btn").on("click",function(){if(1!==a(".twentytwenty-wrapper").length&&(a(a(this).data("target")).find(".imagify-modal-content").css("width",.95*
7
+ a(r).outerWidth()+"px"),0<a(".twentytwenty-container").length&&800<a(r).outerWidth())){var b=a(".twentytwenty-container"),c=0,f=b.data("loader"),g=b.data("label-original"),k=b.data("label-normal"),e=b.data("label-aggressive"),h=b.data("label-ultra"),d=b.data("original-label").replace(/\*\*/,"<strong>").replace(/\*\*/,"</strong>"),l=b.data("original-alt"),m=b.data("original-img"),n=b.data("original-dim").split("x");b.data("normal-label").replace(/\*\*/,"<strong>").replace(/\*\*/,"</strong>");var q=
8
+ b.data("normal-alt"),u=b.data("normal-img"),x=b.data("normal-dim").split("x");b.data("aggressive-label").replace(/\*\*/,"<strong>").replace(/\*\*/,"</strong>");var B=b.data("aggressive-alt"),C=b.data("aggressive-img"),y=b.data("aggressive-dim").split("x"),D=b.data("ultra-label").replace(/\*\*/,"<strong>").replace(/\*\*/,"</strong>"),E=b.data("ultra-alt"),F=b.data("ultra-img"),z=b.data("ultra-dim").split("x"),g='<span class="twentytwenty-duo-buttons twentytwenty-duo-left"><button type="button" class="imagify-comparison-original selected" data-img="original">'+
9
+ g+'</button><button type="button" class="imagify-comparison-normal" data-img="normal">'+k+'</button><button type="button" class="imagify-comparison-aggressive" data-img="aggressive">'+e+"</button></span>",k='<span class="twentytwenty-duo-buttons twentytwenty-duo-right"><button type="button" class="imagify-comparison-normal" data-img="normal">'+k+'</button><button type="button" class="imagify-comparison-aggressive" data-img="aggressive">'+e+'</button><button type="button" class="imagify-comparison-ultra selected" data-img="ultra">'+
10
+ h+"</button></span>";b.before('<img class="loader" src="'+f+'" alt="Loading\u2026" width="64" height="64">');f=a(".twentytwenty-left-buttons").lenght?g+k:"";a(".twentytwenty-left-buttons").append(g);a(".twentytwenty-right-buttons").append(k);b.closest(".imagify-modal-content").addClass("loading").find(".twentytwenty-container").append('<img class="img-original" alt="'+l+'" width="'+n[0]+'" height="'+n[1]+'"><img class="img-normal" alt="'+q+'" width="'+x[0]+'" height="'+x[1]+'"><img class="img-aggressive" alt="'+
11
+ B+'" width="'+y[0]+'" height="'+y[1]+'"><img class="img-ultra" alt="'+E+'" width="'+z[0]+'" height="'+z[1]+'">'+f);a(".img-original").on("load",function(){c++}).attr("src",m);a(".img-normal").on("load",function(){c++}).attr("src",u);a(".img-aggressive").on("load",function(){c++}).attr("src",C);a(".img-ultra").on("load",function(){c++}).attr("src",F);var A=setInterval(function(){4===c&&(b.twentytwenty({handlePosition:.6,orientation:"horizontal",labelBefore:d,labelAfter:D},function(){b.closest(".imagify-modal-content").hasClass("loaded")||
12
+ (b.closest(".imagify-modal-content").removeClass("loading").addClass("loaded"),p(a(".imagify-level-ultra").find(".imagify-chart").find("canvas")))}),clearInterval(A),A=null)},75);a(".imagify-comparison-title").on("click",".twentytwenty-duo-buttons button:not(.selected)",function(b){b.stopPropagation();var c=a(this);b=c.closest(".imagify-comparison-title").nextAll(".twentytwenty-wrapper").find(".twentytwenty-container");var g=c.closest(".twentytwenty-duo-buttons").hasClass("twentytwenty-duo-left")?
13
+ "left":"right",k="left"===g?c.closest(".imagify-comparison-title").find(".twentytwenty-duo-right"):c.closest(".imagify-comparison-title").find(".twentytwenty-duo-left"),f=c.closest(".twentytwenty-duo-buttons").find("button"),e=b.find(".twentytwenty-before"),h=b.find(".twentytwenty-after"),d=c.data("img");f.removeClass("selected");c.addClass("selected");k.find(".selected").data("img")===d&&k.find("button:not(.selected)").eq(0).trigger("click");"left"===g&&(c=e.css("clip"),e.attr("style",""),e.removeClass("twentytwenty-before"),
14
+ b.find(".img-"+d).addClass("twentytwenty-before").css("clip",c),a(".twentytwenty-before-label").find(".twentytwenty-label-content").text(b.data(d+"-label")),a(".imagify-c-level.go-left").attr("aria-hidden","true").removeClass("go-left go-right"),a(".imagify-level-"+d).attr("aria-hidden","false").addClass("go-left"));"right"===g&&(h.removeClass("twentytwenty-after"),b.find(".img-"+d).addClass("twentytwenty-after"),a(".twentytwenty-after-label").find(".twentytwenty-label-content").text(b.data(d+"-label")),
15
+ a(".imagify-c-level.go-right").attr("aria-hidden","true").removeClass("go-left go-right"),a(".imagify-level-"+d).attr("aria-hidden","false").addClass("go-right"));p(a(".imagify-level-"+d).find(".imagify-chart").find("canvas"));return!1})}});if(0<a(".post-php").find(".wp_attachment_image").find(".thumbnail").length){l=a(".post-php").find(".wp_attachment_image");var e=l.find(".thumbnail"),h=e.prop("src"),c=e.width(),e=e.height(),f=a("#imagify-full-original").val(),m=a("#imagify-full-original-size").val(),
16
+ q=a("#misc-publishing-actions").find(".misc-pub-imagify").find(".button-primary");if(300<c&&0<a("#imagify-full-original").length&&""!==a("#imagify-full-original").val()){var d=0,q=a(".misc-pub-filesize").find("strong").text(),u=a(".imagify-data-item").find(".imagify-chart-value").text();a('[id^="imgedit-open-btn-"]').before('<button type="button" class="imagify-button-primary button-primary imagify-modal-trigger" data-target="#imagify-visual-comparison" id="imagify-start-comparison">'+imagifyTTT.labels.compare+
17
+ "</button>");l.append('<div id="imagify-visual-comparison" class="imagify-modal" aria-hidden="true"><div class="imagify-modal-content loading"><div class="twentytwenty-container"><img class="imagify-img-before" alt="" width="'+c+'" height="'+e+'"><img class="imagify-img-after" alt="" width="'+c+'" height="'+e+'"></div><div class="imagify-comparison-levels"><div class="imagify-c-level imagify-level-original go-left"><p class="imagify-c-level-row"><span class="label">'+imagifyTTT.labels.filesize+'</span><span class="value level">'+
18
+ m+'</span></p></div><div class="imagify-c-level imagify-level-optimized go-right"><p class="imagify-c-level-row"><span class="label">'+imagifyTTT.labels.filesize+'</span><span class="value level">'+q+'</span></p><p class="imagify-c-level-row"><span class="label">'+imagifyTTT.labels.saving+'</span><span class="value"><span class="imagify-chart"><span class="imagify-chart-container"><canvas id="imagify-consumption-chart-normal" width="15" height="15"></canvas></span></span><span class="imagify-chart-value">'+
19
+ u+'</span>%</span></p></div></div><button class="close-btn absolute" type="button"><i aria-hidden="true" class="dashicons dashicons-no-alt"></i><span class="screen-reader-text">'+imagifyTTT.labels.close+"</span></button></div></div>");a("#imagify-start-comparison").on("click.imagify",function(){var b=a(a(this).data("target"));b.find(".imagify-modal-content").css({width:.95*a(r).outerWidth()+"px","max-width":c});a(".imagify-img-before").on("load",function(){d++}).attr("src",f);a(".imagify-img-after").on("load",
20
+ function(){d++}).attr("src",h);var e=a(".twentytwenty-container"),l=setInterval(function(){2===d&&(e.twentytwenty({handlePosition:.3,orientation:"horizontal",labelBefore:imagifyTTT.labels.original_l,labelAfter:imagifyTTT.labels.optimized_l},function(){var c=a(r).height(),d=a(".twentytwenty-container").height(),f=a(".twentytwenty-wrapper").position().top;e.closest(".imagify-modal-content").hasClass("loaded")||(e.closest(".imagify-modal-content").removeClass("loading").addClass("loaded"),p(a(".imagify-level-optimized").find(".imagify-chart").find("canvas")));
21
+ if(c<d&&!b.hasClass("modal-is-too-high")){b.addClass("modal-is-too-high");var h=b.find(".twentytwenty-handle"),l=b.find(".twentytwenty-label-content"),m=b.find(".imagify-comparison-levels"),d=m.outerHeight(),q=(c-f-h.height())/2,n=c-3*f-d;h.css({top:q});l.css({top:n,bottom:"auto"});b.find(".twentytwenty-wrapper").css({paddingBottom:d});b.find(".imagify-modal-content").on("scroll.imagify",function(){h.css({top:q+a(this).scrollTop()});l.css({top:n+a(this).scrollTop()});m.css({bottom:-a(this).scrollTop()})})}}),
22
+ clearInterval(l),l=null)},75)})}else 300>c&&0<a("#imagify-full-original").length&&""!==a("#imagify-full-original").val()||0<a("#imagify-full-original").length&&""===a("#imagify-full-original").val()||(a('[id^="imgedit-open-btn-"]').before('<span class="spinner imagify-hidden"></span><a class="imagify-button-primary button-primary imagify-optimize-trigger" id="imagify-optimize-trigger" href="'+q.attr("href")+'">'+imagifyTTT.labels.optimize+"</a>"),a("#imagify-optimize-trigger").on("click",function(){a(this).prev(".spinner").removeClass("imagify-hidden").addClass("is-active")}))}})(window,
23
+ jQuery);
assets/js/options.js CHANGED
@@ -5,6 +5,8 @@ jQuery(function($){
5
  var busy = false,
6
  xhr = false;
7
 
 
 
8
  $('#imagify-settings #api_key').blur(function(){
9
  var obj = $(this),
10
  value = obj.val();
@@ -27,7 +29,7 @@ jQuery(function($){
27
 
28
  busy = true;
29
 
30
- xhr = $.get(ajaxurl+"?action=imagify_check_api_key_validity&api_key="+obj.val()+"&imagifycheckapikeynonce="+$('#imagifycheckapikeynonce').val())
31
  .done(function(response){
32
  if( !response.success ) {
33
  $('#imagify-check-api-container').html( '<span class="dashicons dashicons-no"></span> ' + response.data);
5
  var busy = false,
6
  xhr = false;
7
 
8
+ var concat = ajaxurl.indexOf("?") > 0 ? "&" : "?";
9
+
10
  $('#imagify-settings #api_key').blur(function(){
11
  var obj = $(this),
12
  value = obj.val();
29
 
30
  busy = true;
31
 
32
+ xhr = $.get(ajaxurl+concat+"action=imagify_check_api_key_validity&api_key="+obj.val()+"&imagifycheckapikeynonce="+$('#imagifycheckapikeynonce').val())
33
  .done(function(response){
34
  if( !response.success ) {
35
  $('#imagify-check-api-container').html( '<span class="dashicons dashicons-no"></span> ' + response.data);
assets/js/options.min.js CHANGED
@@ -1,4 +1,4 @@
1
- jQuery(function(a){var c=!1,d=!1;a("#imagify-settings #api_key").blur(function(){var b=a(this),e=b.val();if(""===a.trim(e))return!1;if(a("#check_api_key").val()===e)return a("#imagify-check-api-container").html('<span class="dashicons dashicons-yes"></span> '+imagify.ValidApiKeyText),!1;!0===c?d.abort():(a("#imagify-check-api-container").remove(),b.after('<span id="imagify-check-api-container"><span class="imagify-spinner"></span>'+imagify.waitApiKeyCheckText+"</span>"));c=!0;d=a.get(ajaxurl+"?action=imagify_check_api_key_validity&api_key="+
2
- b.val()+"&imagifycheckapikeynonce="+a("#imagifycheckapikeynonce").val()).done(function(b){b.success?(a("#imagify-check-api-container").remove(),swal({title:imagify.ApiKeyCheckSuccessTitle,text:imagify.ApiKeyCheckSuccessText,type:"success",customClass:"imagify-sweet-alert"},function(){location.reload()})):a("#imagify-check-api-container").html('<span class="dashicons dashicons-no"></span> '+b.data);c=!1})});a(".imagify-options-line").css("cursor","pointer").on("click",function(b){if("INPUT"!==b.target.nodeName)return a('input[aria-describedby="'+
3
- a(this).attr("id")+'"]').trigger("click"),!1});a(".imagify-settings th span").on("click",function(b){1===a(this).parent().next("td").find("input:checkbox").length&&a(this).parent().next("td").find("input:checkbox").trigger("click")});a(".imagify-options-line").find("input").on("change focus",function(){var b=a(this).closest(".imagify-options-line").prev("label").prev("input");b[0].checked||b.prop("checked",!0)});a(".imagify-settings-section").find("#backup").on("change",function(){if(!a(this).is(":checked")){var b=
4
- a(this);swal({title:imagifyOptions.noBackupTitle,text:imagifyOptions.noBackupText,type:"info",customClass:"imagify-sweet-alert",showCancelButton:!0},function(a){a||b.prop("checked",!0)})}})});
1
+ jQuery(function(a){var c=!1,d=!1,f=0<ajaxurl.indexOf("?")?"&":"?";a("#imagify-settings #api_key").blur(function(){var b=a(this),e=b.val();if(""===a.trim(e))return!1;if(a("#check_api_key").val()===e)return a("#imagify-check-api-container").html('<span class="dashicons dashicons-yes"></span> '+imagify.ValidApiKeyText),!1;!0===c?d.abort():(a("#imagify-check-api-container").remove(),b.after('<span id="imagify-check-api-container"><span class="imagify-spinner"></span>'+imagify.waitApiKeyCheckText+"</span>"));
2
+ c=!0;d=a.get(ajaxurl+f+"action=imagify_check_api_key_validity&api_key="+b.val()+"&imagifycheckapikeynonce="+a("#imagifycheckapikeynonce").val()).done(function(b){b.success?(a("#imagify-check-api-container").remove(),swal({title:imagify.ApiKeyCheckSuccessTitle,text:imagify.ApiKeyCheckSuccessText,type:"success",customClass:"imagify-sweet-alert"},function(){location.reload()})):a("#imagify-check-api-container").html('<span class="dashicons dashicons-no"></span> '+b.data);c=!1})});a(".imagify-options-line").css("cursor",
3
+ "pointer").on("click",function(b){if("INPUT"!==b.target.nodeName)return a('input[aria-describedby="'+a(this).attr("id")+'"]').trigger("click"),!1});a(".imagify-settings th span").on("click",function(b){1===a(this).parent().next("td").find("input:checkbox").length&&a(this).parent().next("td").find("input:checkbox").trigger("click")});a(".imagify-options-line").find("input").on("change focus",function(){var b=a(this).closest(".imagify-options-line").prev("label").prev("input");b[0].checked||b.prop("checked",
4
+ !0)});a(".imagify-settings-section").find("#backup").on("change",function(){if(!a(this).is(":checked")){var b=a(this);swal({title:imagifyOptions.noBackupTitle,text:imagifyOptions.noBackupText,type:"info",customClass:"imagify-sweet-alert",showCancelButton:!0},function(a){a||b.prop("checked",!0)})}})});
imagify.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Imagify
4
  Plugin URI: https://wordpress.org/plugins/imagify/
5
  Description: Dramaticaly reduce image file sizes without loosing quality, make your website load faster, boost your SEO and save money on your bandwith using Imagify, the new most advanced image optimization tool.
6
- Version: 1.3.6.1
7
  Author: WP Media
8
  Author URI: http://wp-media.me
9
  Licence: GPLv2
@@ -17,7 +17,7 @@ Copyright 2015 WP Media
17
  defined( 'ABSPATH' ) or die( 'Cheatin\' uh?' );
18
 
19
  // Imagify defines
20
- define( 'IMAGIFY_VERSION' , '1.3.6.1' );
21
  define( 'IMAGIFY_SLUG' , 'imagify' );
22
  define( 'IMAGIFY_SETTINGS_SLUG' , IMAGIFY_SLUG . '_settings' );
23
  define( 'IMAGIFY_WEB_MAIN' , 'https://imagify.io' );
3
  Plugin Name: Imagify
4
  Plugin URI: https://wordpress.org/plugins/imagify/
5
  Description: Dramaticaly reduce image file sizes without loosing quality, make your website load faster, boost your SEO and save money on your bandwith using Imagify, the new most advanced image optimization tool.
6
+ Version: 1.4.1
7
  Author: WP Media
8
  Author URI: http://wp-media.me
9
  Licence: GPLv2
17
  defined( 'ABSPATH' ) or die( 'Cheatin\' uh?' );
18
 
19
  // Imagify defines
20
+ define( 'IMAGIFY_VERSION' , '1.4.1' );
21
  define( 'IMAGIFY_SLUG' , 'imagify' );
22
  define( 'IMAGIFY_SETTINGS_SLUG' , IMAGIFY_SLUG . '_settings' );
23
  define( 'IMAGIFY_WEB_MAIN' , 'https://imagify.io' );
inc/admin/ajax.php CHANGED
@@ -22,19 +22,23 @@ function _do_admin_post_imagify_manual_upload() {
22
  wp_nonce_ays( '' );
23
  }
24
  }
25
-
26
- $attachment = new Imagify_Attachment( $_GET['attachment_id'] );
 
 
 
 
27
 
28
  // Optimize it!!!!!
29
  $attachment->optimize();
30
-
31
  if ( ! defined( 'DOING_AJAX' ) ) {
32
  wp_safe_redirect( wp_get_referer() );
33
  die();
34
  }
35
-
36
  // Return the optimization statistics
37
- $output = get_imagify_attachment_optimization_text( $attachment->id );
38
  wp_send_json_success( $output );
39
  }
40
 
@@ -468,4 +472,48 @@ function _do_wp_ajax_imagify_get_admin_bar_profile() {
468
  ' . $message;
469
 
470
  wp_send_json_success( $quota_section );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
471
  }
22
  wp_nonce_ays( '' );
23
  }
24
  }
25
+
26
+ $attachment_id = $_GET['attachment_id'];
27
+
28
+ set_transient( 'imagify-async-in-progress-' . $attachment_id, true );
29
+
30
+ $attachment = new Imagify_Attachment( $attachment_id );
31
 
32
  // Optimize it!!!!!
33
  $attachment->optimize();
34
+
35
  if ( ! defined( 'DOING_AJAX' ) ) {
36
  wp_safe_redirect( wp_get_referer() );
37
  die();
38
  }
39
+
40
  // Return the optimization statistics
41
+ $output = get_imagify_attachment_optimization_text( $attachment_id );
42
  wp_send_json_success( $output );
43
  }
44
 
472
  ' . $message;
473
 
474
  wp_send_json_success( $quota_section );
475
+ }
476
+
477
+ /**
478
+ * Optimize image on picture editing with async request
479
+ *
480
+ * @since 1.4
481
+ **/
482
+ add_action( 'wp_ajax_imagify_async_optimize_save_image_editor_file', '_do_admin_post_async_optimize_save_image_editor_file' );
483
+ function _do_admin_post_async_optimize_save_image_editor_file() {
484
+ if ( isset( $_POST['do'], $_POST['postid'] )
485
+ && check_ajax_referer( 'image_editor-' . $_POST['postid'] )
486
+ && get_post_meta( $_POST['postid'], '_imagify_data', true )
487
+ ) {
488
+
489
+ $attachment_id = $_POST['postid'];
490
+ $optimization_level = get_post_meta( $attachment_id, '_imagify_optimization_level', true );
491
+ $attachment = new Imagify_Attachment( $attachment_id );
492
+ $metadata = wp_get_attachment_metadata( $attachment_id );
493
+
494
+ // Remove old optimization data
495
+ delete_post_meta( $attachment_id, '_imagify_data' );
496
+ delete_post_meta( $attachment_id, '_imagify_status' );
497
+ delete_post_meta( $attachment_id, '_imagify_optimization_level' );
498
+
499
+ if ( 'restore' === $_POST['do'] ) {
500
+ // Restore the backup file
501
+ $attachment->restore();
502
+
503
+ // Get old metadata to regenerate all thumbnails
504
+ $metadata = array( 'sizes' => array() );
505
+ $backup_sizes = (array) get_post_meta( $attachment_id, '_wp_attachment_backup_sizes', true );
506
+
507
+ foreach ( $backup_sizes as $size_key => $size_data ) {
508
+ $size_key = str_replace( '-origin', '' , $size_key );
509
+ $metadata['sizes'][ $size_key ] = $size_data;
510
+ }
511
+ }
512
+
513
+ // Optimize it!!!!!
514
+ $attachment->optimize( $optimization_level, $metadata );
515
+
516
+ die( 1 );
517
+ }
518
+
519
  }
inc/admin/enqueue.php CHANGED
@@ -154,9 +154,9 @@ function _imagify_admin_print_styles() {
154
  wp_localize_script( 'imagify-js-options', 'imagifyOptions', $options_data );
155
  }
156
 
157
- /*
158
  * Scripts loaded in /wp-admin/upload.php and post.php
159
- */
160
  if ( isset( $current_screen ) && ( 'upload' === $current_screen->base || 'post' === $current_screen->base ) ) {
161
  $upload_data = array(
162
  'bulkActionsLabels' => array(
@@ -169,9 +169,30 @@ function _imagify_admin_print_styles() {
169
  wp_enqueue_script( 'imagify-js-upload' );
170
  }
171
 
172
- /*
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
173
  * Scripts loaded in /wp-admin/upload.php?page=imagify-bulk-optimization
174
- */
175
  if ( isset( $current_screen ) && 'media_page_imagify-bulk-optimization' === $current_screen->base ) {
176
  $user = get_imagify_user();
177
  $bulk_data = array(
@@ -234,4 +255,20 @@ function _imagify_admin_print_intercom() {
234
  </script>
235
  <script>(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',intercomSettings);}else{var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;function l(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://widget.intercom.io/widget/cd6nxj3z';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);}if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})()</script>
236
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
237
  }
154
  wp_localize_script( 'imagify-js-options', 'imagifyOptions', $options_data );
155
  }
156
 
157
+ /**
158
  * Scripts loaded in /wp-admin/upload.php and post.php
159
+ */
160
  if ( isset( $current_screen ) && ( 'upload' === $current_screen->base || 'post' === $current_screen->base ) ) {
161
  $upload_data = array(
162
  'bulkActionsLabels' => array(
169
  wp_enqueue_script( 'imagify-js-upload' );
170
  }
171
 
172
+ /**
173
+ * Scripts loaded in /wp-admin/post.php (for attachment post type)
174
+ */
175
+ if ( isset( $current_screen ) && 'post' === $current_screen->base && 'attachment' === $current_screen->post_type ) {
176
+ wp_localize_script( 'imagify-js-twentytwenty', 'imagifyTTT', array(
177
+ 'labels' => array(
178
+ 'original_l' => esc_html__( 'Original Image', 'imagify' ),
179
+ 'optimized_l' => esc_html__( 'Optimized Image', 'imagify' ),
180
+ 'compare' => esc_html__( 'Compare Original VS Optimized', 'imagify' ),
181
+ 'close' => esc_html__( 'Close', 'imagify' ),
182
+ 'filesize' => esc_html__( 'File Size:', 'imagify' ),
183
+ 'saving' => esc_html__( 'Original Saving:', 'imagify' ),
184
+ 'optimize' => esc_html__( 'Optimize', 'imagify' )
185
+ )
186
+ ));
187
+ wp_enqueue_script( 'imagify-js-chart' );
188
+ wp_enqueue_script( 'imagify-js-event-move' );
189
+ wp_enqueue_script( 'imagify-js-twentytwenty' );
190
+ wp_enqueue_style( 'imagify-css-twentytwenty' );
191
+ }
192
+
193
+ /**
194
  * Scripts loaded in /wp-admin/upload.php?page=imagify-bulk-optimization
195
+ */
196
  if ( isset( $current_screen ) && 'media_page_imagify-bulk-optimization' === $current_screen->base ) {
197
  $user = get_imagify_user();
198
  $bulk_data = array(
255
  </script>
256
  <script>(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',intercomSettings);}else{var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;function l(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://widget.intercom.io/widget/cd6nxj3z';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);}if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})()</script>
257
  <?php
258
+ }
259
+
260
+ /**
261
+ * Remove Yoast SEO bugged script
262
+ *
263
+ * @since 1.4.1
264
+ */
265
+ add_action( 'wp_print_scripts', '_imagify_dequeue_yoastseo_script' );
266
+ function _imagify_dequeue_yoastseo_script() {
267
+ global $pagenow;
268
+ $current_screen = get_current_screen();
269
+
270
+ if ( isset( $current_screen ) && 'post' === $current_screen->base && 'attachment' === $current_screen->post_type ) {
271
+ wp_dequeue_script( 'yoast-seo' );
272
+ wp_deregister_script( 'yoast-seo' );
273
+ }
274
  }
inc/admin/meta-boxes.php CHANGED
@@ -23,9 +23,20 @@ function _imagify_attachment_submitbox_misc_actions() {
23
  } elseif ( $attachment->is_optimized() || $attachment->has_error() ) {
24
  echo '<div class="misc-pub-section misc-pub-imagify"><h4>' . __( 'Imagify', 'imagify' ) . '</h4></div>';
25
  echo get_imagify_attachment_optimization_text( $post->ID );
 
 
 
 
 
 
26
  } else {
27
  $url = get_imagify_admin_url( 'manual-upload', $post->ID );
28
  printf( '<div class="misc-pub-section misc-pub-imagify"><a class="button-primary" href="%s">%s</a></div>', $url, __( 'Optimize', 'imagify' ) );
29
  }
 
 
 
 
 
30
  }
31
  }
23
  } elseif ( $attachment->is_optimized() || $attachment->has_error() ) {
24
  echo '<div class="misc-pub-section misc-pub-imagify"><h4>' . __( 'Imagify', 'imagify' ) . '</h4></div>';
25
  echo get_imagify_attachment_optimization_text( $post->ID );
26
+ } elseif ( false !== get_transient( 'imagify-async-in-progress-' . $post->ID ) ) {
27
+ echo '<div class="misc-pub-section misc-pub-imagify">';
28
+ echo '<div class="button"><span class="imagify-spinner"></span>';
29
+ _e( 'Optimizing...', 'imagify' );
30
+ echo '</div>';
31
+ echo '</div>';
32
  } else {
33
  $url = get_imagify_admin_url( 'manual-upload', $post->ID );
34
  printf( '<div class="misc-pub-section misc-pub-imagify"><a class="button-primary" href="%s">%s</a></div>', $url, __( 'Optimize', 'imagify' ) );
35
  }
36
+
37
+ if ( $attachment->is_optimized() ) {
38
+ echo '<input id="imagify-full-original" type="hidden" value="' . $attachment->get_backup_url() . '">';
39
+ echo '<input id="imagify-full-original-size" type="hidden" value="' . $attachment->get_original_size() . '">';
40
+ }
41
  }
42
  }
inc/classes/class-attachment.php CHANGED
@@ -57,7 +57,9 @@ class Imagify_Attachment {
57
  * @return string|false
58
  */
59
  public function get_backup_url() {
60
- $backup_url = str_replace( ABSPATH, site_url( '/' ), $this->get_backup_path() );
 
 
61
  return $backup_url;
62
  }
63
 
@@ -465,6 +467,8 @@ class Imagify_Attachment {
465
 
466
  // Check if the full size is already optimized
467
  if ( $this->is_optimized() && ( $this->get_optimization_level() == $optimization_level ) ) {
 
 
468
  return;
469
  }
470
 
@@ -495,6 +499,8 @@ class Imagify_Attachment {
495
  update_post_meta( $id, '_imagify_optimization_level', $optimization_level );
496
 
497
  if( (bool) ! $data ) {
 
 
498
  return;
499
  }
500
 
@@ -557,6 +563,8 @@ class Imagify_Attachment {
557
  * @param array $optimized_data The optimization data
558
  */
559
  do_action( 'after_imagify_optimize_attachment', $id, $optimized_data );
 
 
560
 
561
  return $optimized_data;
562
  }
57
  * @return string|false
58
  */
59
  public function get_backup_url() {
60
+ $backup_path = $this->get_backup_path();
61
+ $backup_url = str_replace( ABSPATH, site_url( '/' ), $backup_path );
62
+
63
  return $backup_url;
64
  }
65
 
467
 
468
  // Check if the full size is already optimized
469
  if ( $this->is_optimized() && ( $this->get_optimization_level() == $optimization_level ) ) {
470
+ delete_transient( 'imagify-async-in-progress-' . $id );
471
+
472
  return;
473
  }
474
 
499
  update_post_meta( $id, '_imagify_optimization_level', $optimization_level );
500
 
501
  if( (bool) ! $data ) {
502
+ delete_transient( 'imagify-async-in-progress-' . $id );
503
+
504
  return;
505
  }
506
 
563
  * @param array $optimized_data The optimization data
564
  */
565
  do_action( 'after_imagify_optimize_attachment', $id, $optimized_data );
566
+
567
+ delete_transient( 'imagify-async-in-progress-' . $id );
568
 
569
  return $optimized_data;
570
  }
inc/common/attachments.php CHANGED
@@ -19,7 +19,6 @@ function _imagify_optimize_attachment( $metadata, $attachment_id ) {
19
 
20
  return $metadata;
21
  }
22
-
23
  /**
24
  * Delete the backup file when an attachement is deleted.
25
  *
@@ -35,40 +34,21 @@ function _imagify_delete_backup_file( $post_id ) {
35
  * Optimize a resized attachment
36
  *
37
  * @since 1.3.6
 
38
  */
39
  add_action( 'shutdown', '_imagify_optimize_save_image_editor_file' );
40
- function _imagify_optimize_save_image_editor_file() {
41
  if ( isset( $_POST['action'], $_POST['do'], $_POST['postid'] )
42
- && 'image-editor' === $_POST['action']
43
- && check_ajax_referer( 'image_editor-' . $_POST['postid'] )
44
- && get_post_meta( $_POST['postid'], '_imagify_data', true )
45
- && 'open' !== $_POST['do']
46
  ) {
47
- $attachment_id = $_POST['postid'];
48
- $optimization_level = get_post_meta( $attachment_id, '_imagify_optimization_level', true );
49
- $attachment = new Imagify_Attachment( $attachment_id );
50
- $metadata = wp_get_attachment_metadata( $attachment_id );
51
-
52
- // Remove old optimization data
53
- delete_post_meta( $attachment_id, '_imagify_data' );
54
- delete_post_meta( $attachment_id, '_imagify_status' );
55
- delete_post_meta( $attachment_id, '_imagify_optimization_level' );
56
 
57
- if ( 'restore' === $_POST['do'] ) {
58
- // Restore the backup file
59
- $attachment->restore();
60
-
61
- // Get old metadata to regenerate all thumbnails
62
- $metadata = array( 'sizes' => array() );
63
- $backup_sizes = (array) get_post_meta( $attachment_id, '_wp_attachment_backup_sizes', true );
64
-
65
- foreach ( $backup_sizes as $size_key => $size_data ) {
66
- $size_key = str_replace( '-origin', '' , $size_key );
67
- $metadata['sizes'][ $size_key ] = $size_data;
68
- }
69
- }
70
 
71
- // Optimize it!!!!!
72
- $attachment->optimize( $optimization_level, $metadata );
73
  }
74
  }
19
 
20
  return $metadata;
21
  }
 
22
  /**
23
  * Delete the backup file when an attachement is deleted.
24
  *
34
  * Optimize a resized attachment
35
  *
36
  * @since 1.3.6
37
+ * @since 1.4 Async job
38
  */
39
  add_action( 'shutdown', '_imagify_optimize_save_image_editor_file' );
40
+ function _imagify_optimize_save_image_editor_file() {
41
  if ( isset( $_POST['action'], $_POST['do'], $_POST['postid'] )
42
+ && 'image-editor' === $_POST['action']
43
+ && check_ajax_referer( 'image_editor-' . $_POST['postid'] )
44
+ && get_post_meta( $_POST['postid'], '_imagify_data', true )
45
+ && 'open' != $_POST['do']
46
  ) {
 
 
 
 
 
 
 
 
 
47
 
48
+ $body = $_POST;
49
+ $body['action'] = 'imagify_async_optimize_save_image_editor_file';
50
+ $body['transient_id'] = $body['postid'];
 
 
 
 
 
 
 
 
 
 
51
 
52
+ imagify_do_async_job( $body );
 
53
  }
54
  }
inc/functions/admin-ui.php CHANGED
@@ -171,6 +171,11 @@ function get_imagify_media_column_content( $attachment_id ) {
171
  return $output;
172
  }
173
 
 
 
 
 
 
174
  // Check if the image was optimized
175
  if ( ! $attachment->is_optimized() && ! $attachment->has_error() ) {
176
  $output .= '<a id="imagify-upload-' . $attachment_id . '" href="' . get_imagify_admin_url( 'manual-upload', $attachment_id ) . '" class="button-primary button-imagify-manual-upload" data-waiting-label="' . esc_attr__( 'Optimizing...', 'imagify' ) . '">' . __( 'Optimize', 'imagify' ) . '</a>';
171
  return $output;
172
  }
173
 
174
+ if ( false !== get_transient( 'imagify-async-in-progress-' . $attachment_id ) ) {
175
+ $output = '<div class="button"><span class="imagify-spinner"></span>' . __( 'Optimizing...', 'imagify' ) . '</div>';
176
+ return $output;
177
+ }
178
+
179
  // Check if the image was optimized
180
  if ( ! $attachment->is_optimized() && ! $attachment->has_error() ) {
181
  $output .= '<a id="imagify-upload-' . $attachment_id . '" href="' . get_imagify_admin_url( 'manual-upload', $attachment_id ) . '" class="button-primary button-imagify-manual-upload" data-waiting-label="' . esc_attr__( 'Optimizing...', 'imagify' ) . '">' . __( 'Optimize', 'imagify' ) . '</a>';
inc/functions/process.php CHANGED
@@ -136,4 +136,27 @@ function do_imagify( $file_path, $backup, $optimization_level, $resize = array()
136
  do_action( 'after_do_imagify', $file_path, $backup );
137
 
138
  return $response;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
139
  }
136
  do_action( 'after_do_imagify', $file_path, $backup );
137
 
138
  return $response;
139
+ }
140
+
141
+ /**
142
+ * Run an async job to optimize images in background
143
+ *
144
+ * @param $body (array) Contains the usual $_POST
145
+ *
146
+ * @since 1.4
147
+ **/
148
+ function imagify_do_async_job( $body ) {
149
+ if ( isset( $body['transient_id'] ) ) {
150
+ set_transient( 'imagify-async-in-progress-' . $body['transient_id'], true );
151
+ }
152
+
153
+ $args = array(
154
+ 'timeout' => 0.01,
155
+ 'blocking' => false,
156
+ 'body' => $body,
157
+ 'cookies' => $_COOKIE,
158
+ 'sslverify' => apply_filters( 'https_local_ssl_verify', false ),
159
+ );
160
+
161
+ wp_remote_post( admin_url( 'admin-ajax.php' ), $args );
162
  }
languages/imagify-es_ES.mo CHANGED
Binary file
languages/imagify-es_ES.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Imagify\n"
4
- "POT-Creation-Date: 2016-02-11 09:40+0100\n"
5
- "PO-Revision-Date: 2016-02-11 09:46+0100\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: es\n"
@@ -20,22 +20,23 @@ msgstr ""
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
- #: inc/admin/ajax.php:114 inc/functions/admin-ui.php:99
24
- #: inc/functions/admin-ui.php:127 inc/functions/admin-ui.php:133
25
- #: inc/functions/admin-ui.php:139 inc/functions/admin-ui.php:176
 
26
  msgid "Optimizing..."
27
  msgstr "Optimizando…"
28
 
29
- #: inc/admin/ajax.php:114 inc/admin/enqueue.php:163 inc/admin/meta-boxes.php:29
30
- #: inc/functions/admin-ui.php:176
31
  msgid "Optimize"
32
  msgstr "Optimizar"
33
 
34
- #: inc/admin/ajax.php:412
35
  msgid "Oops, It's almost over!"
36
  msgstr "¡Ya casi está!"
37
 
38
- #: inc/admin/ajax.php:413
39
  #, php-format
40
  msgid ""
41
  "You have almost used all your credit.%sDon't forget to upgrade your "
@@ -44,16 +45,16 @@ msgstr ""
44
  "Ya has utilizado casi todo tu crédito.%sNo olvides ampliar tu suscripción "
45
  "para poder seguir optimizando tus imágenes."
46
 
47
- #: inc/admin/ajax.php:414 inc/admin/ui/bulk.php:22
48
  msgid "View My Subscription"
49
  msgstr "Ver mi suscripción"
50
 
51
- #: inc/admin/ajax.php:422 inc/admin/enqueue.php:188
52
  #: inc/admin/ui/notices.php:251
53
  msgid "Oops, It's Over!"
54
  msgstr "¡Ya está!"
55
 
56
- #: inc/admin/ajax.php:423 inc/admin/enqueue.php:204
57
  #: inc/admin/ui/notices.php:253
58
  #, php-format
59
  msgid ""
@@ -63,24 +64,24 @@ msgstr ""
63
  "Has consumido todo tu crédito para este mes. Volverás a tener <strong>%s el "
64
  "%s</strong>."
65
 
66
- #: inc/admin/ajax.php:424
67
  msgid "Upgrade My Subscription"
68
  msgstr "Actualizar mi suscripción"
69
 
70
- #: inc/admin/ajax.php:443 inc/admin/ui/bulk.php:16
71
  msgid "Account status"
72
  msgstr "Estado de mi cuenta"
73
 
74
- #: inc/admin/ajax.php:444 inc/admin/ui/bulk.php:17
75
  msgid "Your subscription:"
76
  msgstr "Tu suscripción:"
77
 
78
- #: inc/admin/ajax.php:452 inc/admin/ui/bulk.php:47
79
  #, php-format
80
  msgid "You have %s space credit left"
81
  msgstr "Te queda un saldo de %s"
82
 
83
- #: inc/admin/ajax.php:464
84
  msgid "View my subscription"
85
  msgstr "Ver mi suscripción"
86
 
@@ -159,10 +160,39 @@ msgid "Restore Original"
159
  msgstr "Recuperar tamaño original"
160
 
161
  #: inc/admin/enqueue.php:178
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
162
  msgid "Please wait..."
163
  msgstr "Espera, por favor…"
164
 
165
- #: inc/admin/enqueue.php:179
166
  msgid ""
167
  "We are trying to get your unoptimized images, it may take time depending on "
168
  "the number of images."
@@ -170,11 +200,11 @@ msgstr ""
170
  "Estamos tratando de obtener tus imágenes no optimizadas: esto puede tomar "
171
  "tiempo, dependiendo del número de imágenes."
172
 
173
- #: inc/admin/enqueue.php:181
174
  msgid "Oops, There is something wrong!"
175
  msgstr "Ups, algo no ha ido bien!"
176
 
177
- #: inc/admin/enqueue.php:182
178
  msgid ""
179
  "An unknow error occurred when we tried to get all your unoptimized images. "
180
  "Try again and if the issue still persist, please contact us!"
@@ -183,27 +213,27 @@ msgstr ""
183
  "imágenes no optimizadas. Inténtalo otra vez y, si el problema persiste, "
184
  "contáctanos por favor!"
185
 
186
- #: inc/admin/enqueue.php:184 inc/admin/ui/bulk.php:257 inc/admin/upload.php:38
187
  msgid "Optimized"
188
  msgstr "Optimizado"
189
 
190
- #: inc/admin/enqueue.php:185 inc/admin/upload.php:39
191
  msgid "Unoptimized"
192
  msgstr "No optimizado"
193
 
194
- #: inc/admin/enqueue.php:186
195
  msgid "Error"
196
  msgstr "Error"
197
 
198
- #: inc/admin/enqueue.php:189
199
  msgid "Hold on!"
200
  msgstr "¡Espera!"
201
 
202
- #: inc/admin/enqueue.php:190
203
  msgid "All your images have been optimized by Imagify. Congratulations!"
204
  msgstr "Todas tus imágenes han sido optimizadas por Imagify. ¡Enhorabuena!"
205
 
206
- #: inc/admin/enqueue.php:192
207
  #, php-format
208
  msgid ""
209
  "Discover @imagify, the new compression tool to optimize your images for "
@@ -212,11 +242,11 @@ msgstr ""
212
  "Descubre @imagify, la nueva herramienta de compresión para optimizar tus "
213
  "imágenes gratuitamente. Me ha ahorrado %1$s de %2$s!"
214
 
215
- #: inc/admin/enqueue.php:196
216
  msgid "Imagify is still processing. Are you sure you want to leave this page?"
217
- msgstr ""
218
 
219
- #: inc/admin/enqueue.php:201 inc/admin/enqueue.php:204
220
  #: inc/admin/ui/notices.php:253
221
  #, php-format
222
  msgid ""
@@ -226,7 +256,7 @@ msgstr ""
226
  "Para seguir optimizando tus imágenes, inicia sesión en tu cuenta Imagify "
227
  "para %scomprar un paquete o subscribir un plan %s."
228
 
229
- #: inc/admin/enqueue.php:204
230
  msgid "F j, Y"
231
  msgstr "F j, Y"
232
 
@@ -236,16 +266,16 @@ msgid "Bulk Optimization"
236
  msgstr "Optimización masiva"
237
 
238
  #. Plugin Name of the plugin/theme
239
- #: inc/admin/meta-boxes.php:18 inc/admin/meta-boxes.php:25
240
  #: inc/admin/upload.php:11
241
  msgid "Imagify"
242
  msgstr "Imagify"
243
 
244
- #: inc/admin/meta-boxes.php:20 inc/functions/admin-ui.php:168
245
  msgid "Invalid API key"
246
  msgstr "Clave API no válida"
247
 
248
- #: inc/admin/meta-boxes.php:22 inc/functions/admin-ui.php:170
249
  msgid "Check your Settings"
250
  msgstr "Comprueba tu configuración"
251
 
@@ -297,7 +327,7 @@ msgstr "Selecciona tu nivel de compresión"
297
  #: inc/admin/ui/bulk.php:102 inc/admin/ui/bulk.php:130
298
  #: inc/admin/ui/options.php:129 inc/admin/ui/options.php:319
299
  #: inc/admin/ui/options.php:382 inc/admin/ui/options.php:399
300
- #: inc/admin/ui/options.php:459 inc/classes/class-attachment.php:120
301
  #: inc/functions/admin-ui.php:127
302
  msgid "Ultra"
303
  msgstr "Ultra"
@@ -305,7 +335,7 @@ msgstr "Ultra"
305
  #: inc/admin/ui/bulk.php:105 inc/admin/ui/bulk.php:125
306
  #: inc/admin/ui/options.php:124 inc/admin/ui/options.php:331
307
  #: inc/admin/ui/options.php:381 inc/admin/ui/options.php:394
308
- #: inc/admin/ui/options.php:438 inc/classes/class-attachment.php:123
309
  #: inc/functions/admin-ui.php:133
310
  msgid "Aggressive"
311
  msgstr "Agresivo"
@@ -313,7 +343,7 @@ msgstr "Agresivo"
313
  #: inc/admin/ui/bulk.php:108 inc/admin/ui/bulk.php:120
314
  #: inc/admin/ui/options.php:119 inc/admin/ui/options.php:343
315
  #: inc/admin/ui/options.php:380 inc/admin/ui/options.php:389
316
- #: inc/admin/ui/options.php:418 inc/classes/class-attachment.php:126
317
  #: inc/functions/admin-ui.php:139
318
  msgid "Normal"
319
  msgstr "Normal"
@@ -776,10 +806,6 @@ msgstr ""
776
  "Nota: la reducción de tamaño del archivo será inferior, si comparado con el "
777
  "modo agresivo."
778
 
779
- #: inc/admin/ui/options.php:358 inc/admin/ui/options.php:480
780
- msgid "Close"
781
- msgstr "Cierra"
782
-
783
  #: inc/admin/ui/options.php:370
784
  #, php-format
785
  msgid "I want to compare%s and%s"
@@ -802,16 +828,6 @@ msgstr "Fotografía optimizada de %s"
802
  msgid "Level:"
803
  msgstr "Nivel:"
804
 
805
- #: inc/admin/ui/options.php:411 inc/admin/ui/options.php:421
806
- #: inc/admin/ui/options.php:441 inc/admin/ui/options.php:462
807
- msgid "File Size:"
808
- msgstr "Tamaño del archivo:"
809
-
810
- #: inc/admin/ui/options.php:425 inc/admin/ui/options.php:445
811
- #: inc/admin/ui/options.php:466 inc/functions/admin-ui.php:44
812
- msgid "Original Saving:"
813
- msgstr "Ahorro inicial:"
814
-
815
  #: inc/admin/upload.php:40
816
  msgid "Errors"
817
  msgstr "Errores"
@@ -824,7 +840,7 @@ msgstr "Filtrar por estado"
824
  msgid "All images"
825
  msgstr "Todas las imágenes"
826
 
827
- #: inc/classes/class-attachment.php:501
828
  msgid ""
829
  "This size isn't authorized to be optimized. Update your Imagify settings if "
830
  "you want to optimize it."
@@ -915,11 +931,6 @@ msgstr "%s no tiene permisos de escritura"
915
  msgid "Skipped (%s), image not found."
916
  msgstr "Omitido (%s), imagen no encontrada."
917
 
918
- #: inc/vendors/wp-background-process.php:395
919
- #, php-format
920
- msgid "Every %d Minutes"
921
- msgstr ""
922
-
923
  #. Plugin URI of the plugin/theme
924
  msgid "https://wordpress.org/plugins/imagify/"
925
  msgstr ""
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Imagify\n"
4
+ "POT-Creation-Date: 2016-02-16 09:32+0100\n"
5
+ "PO-Revision-Date: 2016-02-16 09:36+0100\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: es\n"
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
+ #: inc/admin/ajax.php:118 inc/admin/meta-boxes.php:29
24
+ #: inc/functions/admin-ui.php:99 inc/functions/admin-ui.php:127
25
+ #: inc/functions/admin-ui.php:133 inc/functions/admin-ui.php:139
26
+ #: inc/functions/admin-ui.php:175 inc/functions/admin-ui.php:181
27
  msgid "Optimizing..."
28
  msgstr "Optimizando…"
29
 
30
+ #: inc/admin/ajax.php:118 inc/admin/enqueue.php:163 inc/admin/meta-boxes.php:34
31
+ #: inc/functions/admin-ui.php:181
32
  msgid "Optimize"
33
  msgstr "Optimizar"
34
 
35
+ #: inc/admin/ajax.php:416
36
  msgid "Oops, It's almost over!"
37
  msgstr "¡Ya casi está!"
38
 
39
+ #: inc/admin/ajax.php:417
40
  #, php-format
41
  msgid ""
42
  "You have almost used all your credit.%sDon't forget to upgrade your "
45
  "Ya has utilizado casi todo tu crédito.%sNo olvides ampliar tu suscripción "
46
  "para poder seguir optimizando tus imágenes."
47
 
48
+ #: inc/admin/ajax.php:418 inc/admin/ui/bulk.php:22
49
  msgid "View My Subscription"
50
  msgstr "Ver mi suscripción"
51
 
52
+ #: inc/admin/ajax.php:426 inc/admin/enqueue.php:208
53
  #: inc/admin/ui/notices.php:251
54
  msgid "Oops, It's Over!"
55
  msgstr "¡Ya está!"
56
 
57
+ #: inc/admin/ajax.php:427 inc/admin/enqueue.php:224
58
  #: inc/admin/ui/notices.php:253
59
  #, php-format
60
  msgid ""
64
  "Has consumido todo tu crédito para este mes. Volverás a tener <strong>%s el "
65
  "%s</strong>."
66
 
67
+ #: inc/admin/ajax.php:428
68
  msgid "Upgrade My Subscription"
69
  msgstr "Actualizar mi suscripción"
70
 
71
+ #: inc/admin/ajax.php:447 inc/admin/ui/bulk.php:16
72
  msgid "Account status"
73
  msgstr "Estado de mi cuenta"
74
 
75
+ #: inc/admin/ajax.php:448 inc/admin/ui/bulk.php:17
76
  msgid "Your subscription:"
77
  msgstr "Tu suscripción:"
78
 
79
+ #: inc/admin/ajax.php:456 inc/admin/ui/bulk.php:47
80
  #, php-format
81
  msgid "You have %s space credit left"
82
  msgstr "Te queda un saldo de %s"
83
 
84
+ #: inc/admin/ajax.php:468
85
  msgid "View my subscription"
86
  msgstr "Ver mi suscripción"
87
 
160
  msgstr "Recuperar tamaño original"
161
 
162
  #: inc/admin/enqueue.php:178
163
+ msgid "Original Image"
164
+ msgstr "Imagen original"
165
+
166
+ #: inc/admin/enqueue.php:179
167
+ msgid "Optimized Image"
168
+ msgstr "Imagen optimizada"
169
+
170
+ #: inc/admin/enqueue.php:180
171
+ msgid "Compare Original VS Optimized"
172
+ msgstr "Compara original VS optimizada"
173
+
174
+ #: inc/admin/enqueue.php:181 inc/admin/ui/options.php:358
175
+ #: inc/admin/ui/options.php:480
176
+ msgid "Close"
177
+ msgstr "Cierra"
178
+
179
+ #: inc/admin/enqueue.php:182 inc/admin/ui/options.php:411
180
+ #: inc/admin/ui/options.php:421 inc/admin/ui/options.php:441
181
+ #: inc/admin/ui/options.php:462
182
+ msgid "File Size:"
183
+ msgstr "Tamaño del archivo:"
184
+
185
+ #: inc/admin/enqueue.php:183 inc/admin/ui/options.php:425
186
+ #: inc/admin/ui/options.php:445 inc/admin/ui/options.php:466
187
+ #: inc/functions/admin-ui.php:44
188
+ msgid "Original Saving:"
189
+ msgstr "Ahorro inicial:"
190
+
191
+ #: inc/admin/enqueue.php:198
192
  msgid "Please wait..."
193
  msgstr "Espera, por favor…"
194
 
195
+ #: inc/admin/enqueue.php:199
196
  msgid ""
197
  "We are trying to get your unoptimized images, it may take time depending on "
198
  "the number of images."
200
  "Estamos tratando de obtener tus imágenes no optimizadas: esto puede tomar "
201
  "tiempo, dependiendo del número de imágenes."
202
 
203
+ #: inc/admin/enqueue.php:201
204
  msgid "Oops, There is something wrong!"
205
  msgstr "Ups, algo no ha ido bien!"
206
 
207
+ #: inc/admin/enqueue.php:202
208
  msgid ""
209
  "An unknow error occurred when we tried to get all your unoptimized images. "
210
  "Try again and if the issue still persist, please contact us!"
213
  "imágenes no optimizadas. Inténtalo otra vez y, si el problema persiste, "
214
  "contáctanos por favor!"
215
 
216
+ #: inc/admin/enqueue.php:204 inc/admin/ui/bulk.php:257 inc/admin/upload.php:38
217
  msgid "Optimized"
218
  msgstr "Optimizado"
219
 
220
+ #: inc/admin/enqueue.php:205 inc/admin/upload.php:39
221
  msgid "Unoptimized"
222
  msgstr "No optimizado"
223
 
224
+ #: inc/admin/enqueue.php:206
225
  msgid "Error"
226
  msgstr "Error"
227
 
228
+ #: inc/admin/enqueue.php:209
229
  msgid "Hold on!"
230
  msgstr "¡Espera!"
231
 
232
+ #: inc/admin/enqueue.php:210
233
  msgid "All your images have been optimized by Imagify. Congratulations!"
234
  msgstr "Todas tus imágenes han sido optimizadas por Imagify. ¡Enhorabuena!"
235
 
236
+ #: inc/admin/enqueue.php:212
237
  #, php-format
238
  msgid ""
239
  "Discover @imagify, the new compression tool to optimize your images for "
242
  "Descubre @imagify, la nueva herramienta de compresión para optimizar tus "
243
  "imágenes gratuitamente. Me ha ahorrado %1$s de %2$s!"
244
 
245
+ #: inc/admin/enqueue.php:216
246
  msgid "Imagify is still processing. Are you sure you want to leave this page?"
247
+ msgstr "Imagify sigue procesando. Estás seguro que quieres dejar la página?"
248
 
249
+ #: inc/admin/enqueue.php:221 inc/admin/enqueue.php:224
250
  #: inc/admin/ui/notices.php:253
251
  #, php-format
252
  msgid ""
256
  "Para seguir optimizando tus imágenes, inicia sesión en tu cuenta Imagify "
257
  "para %scomprar un paquete o subscribir un plan %s."
258
 
259
+ #: inc/admin/enqueue.php:224
260
  msgid "F j, Y"
261
  msgstr "F j, Y"
262
 
266
  msgstr "Optimización masiva"
267
 
268
  #. Plugin Name of the plugin/theme
269
+ #: inc/admin/meta-boxes.php:17 inc/admin/meta-boxes.php:24
270
  #: inc/admin/upload.php:11
271
  msgid "Imagify"
272
  msgstr "Imagify"
273
 
274
+ #: inc/admin/meta-boxes.php:19 inc/functions/admin-ui.php:168
275
  msgid "Invalid API key"
276
  msgstr "Clave API no válida"
277
 
278
+ #: inc/admin/meta-boxes.php:21 inc/functions/admin-ui.php:170
279
  msgid "Check your Settings"
280
  msgstr "Comprueba tu configuración"
281
 
327
  #: inc/admin/ui/bulk.php:102 inc/admin/ui/bulk.php:130
328
  #: inc/admin/ui/options.php:129 inc/admin/ui/options.php:319
329
  #: inc/admin/ui/options.php:382 inc/admin/ui/options.php:399
330
+ #: inc/admin/ui/options.php:459 inc/classes/class-attachment.php:135
331
  #: inc/functions/admin-ui.php:127
332
  msgid "Ultra"
333
  msgstr "Ultra"
335
  #: inc/admin/ui/bulk.php:105 inc/admin/ui/bulk.php:125
336
  #: inc/admin/ui/options.php:124 inc/admin/ui/options.php:331
337
  #: inc/admin/ui/options.php:381 inc/admin/ui/options.php:394
338
+ #: inc/admin/ui/options.php:438 inc/classes/class-attachment.php:138
339
  #: inc/functions/admin-ui.php:133
340
  msgid "Aggressive"
341
  msgstr "Agresivo"
343
  #: inc/admin/ui/bulk.php:108 inc/admin/ui/bulk.php:120
344
  #: inc/admin/ui/options.php:119 inc/admin/ui/options.php:343
345
  #: inc/admin/ui/options.php:380 inc/admin/ui/options.php:389
346
+ #: inc/admin/ui/options.php:418 inc/classes/class-attachment.php:141
347
  #: inc/functions/admin-ui.php:139
348
  msgid "Normal"
349
  msgstr "Normal"
806
  "Nota: la reducción de tamaño del archivo será inferior, si comparado con el "
807
  "modo agresivo."
808
 
 
 
 
 
809
  #: inc/admin/ui/options.php:370
810
  #, php-format
811
  msgid "I want to compare%s and%s"
828
  msgid "Level:"
829
  msgstr "Nivel:"
830
 
 
 
 
 
 
 
 
 
 
 
831
  #: inc/admin/upload.php:40
832
  msgid "Errors"
833
  msgstr "Errores"
840
  msgid "All images"
841
  msgstr "Todas las imágenes"
842
 
843
+ #: inc/classes/class-attachment.php:518
844
  msgid ""
845
  "This size isn't authorized to be optimized. Update your Imagify settings if "
846
  "you want to optimize it."
931
  msgid "Skipped (%s), image not found."
932
  msgstr "Omitido (%s), imagen no encontrada."
933
 
 
 
 
 
 
934
  #. Plugin URI of the plugin/theme
935
  msgid "https://wordpress.org/plugins/imagify/"
936
  msgstr ""
languages/imagify-fr_FR.mo CHANGED
Binary file
languages/imagify-fr_FR.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Imagify\n"
4
- "POT-Creation-Date: 2016-02-11 09:35+0100\n"
5
- "PO-Revision-Date: 2016-02-11 09:38+0100\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: fr_FR\n"
@@ -20,22 +20,23 @@ msgstr ""
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
- #: inc/admin/ajax.php:114 inc/functions/admin-ui.php:99
24
- #: inc/functions/admin-ui.php:127 inc/functions/admin-ui.php:133
25
- #: inc/functions/admin-ui.php:139 inc/functions/admin-ui.php:176
 
26
  msgid "Optimizing..."
27
  msgstr "En cours d’optimisation…"
28
 
29
- #: inc/admin/ajax.php:114 inc/admin/enqueue.php:163 inc/admin/meta-boxes.php:29
30
- #: inc/functions/admin-ui.php:176
31
  msgid "Optimize"
32
  msgstr "Optimiser"
33
 
34
- #: inc/admin/ajax.php:412
35
  msgid "Oops, It's almost over!"
36
  msgstr "Oups, c’est bientôt fini&nbsp;!"
37
 
38
- #: inc/admin/ajax.php:413
39
  #, php-format
40
  msgid ""
41
  "You have almost used all your credit.%sDon't forget to upgrade your "
@@ -44,15 +45,15 @@ msgstr ""
44
  "Vous avez bientôt utilisé tout votre crédit.%sN’oubliez pas de mettre à niveau "
45
  "votre abonnement pour continuer à optimiser vos images."
46
 
47
- #: inc/admin/ajax.php:414 inc/admin/ui/bulk.php:22
48
  msgid "View My Subscription"
49
  msgstr "Voir mon abonnement"
50
 
51
- #: inc/admin/ajax.php:422 inc/admin/enqueue.php:188 inc/admin/ui/notices.php:251
52
  msgid "Oops, It's Over!"
53
  msgstr "Oups, c’est fini !"
54
 
55
- #: inc/admin/ajax.php:423 inc/admin/enqueue.php:204 inc/admin/ui/notices.php:253
56
  #, php-format
57
  msgid ""
58
  "You have consumed all your credit for this month. You will have <strong>%s "
@@ -61,24 +62,24 @@ msgstr ""
61
  "Vous avez consommé tout votre crédit pour ce mois. Vous aurez à nouveau "
62
  "<strong>%s le %s</strong>."
63
 
64
- #: inc/admin/ajax.php:424
65
  msgid "Upgrade My Subscription"
66
  msgstr "Mettre à niveau mon abonnement"
67
 
68
- #: inc/admin/ajax.php:443 inc/admin/ui/bulk.php:16
69
  msgid "Account status"
70
  msgstr "Type de compte"
71
 
72
- #: inc/admin/ajax.php:444 inc/admin/ui/bulk.php:17
73
  msgid "Your subscription:"
74
  msgstr "Votre abonnement&nbsp;:"
75
 
76
- #: inc/admin/ajax.php:452 inc/admin/ui/bulk.php:47
77
  #, php-format
78
  msgid "You have %s space credit left"
79
  msgstr "Il vous reste %s de crédit"
80
 
81
- #: inc/admin/ajax.php:464
82
  msgid "View my subscription"
83
  msgstr "Voir mon abonnement"
84
 
@@ -157,10 +158,39 @@ msgid "Restore Original"
157
  msgstr "Restaurer l’original"
158
 
159
  #: inc/admin/enqueue.php:178
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
160
  msgid "Please wait..."
161
  msgstr "Un peu d’attente…"
162
 
163
- #: inc/admin/enqueue.php:179
164
  msgid ""
165
  "We are trying to get your unoptimized images, it may take time depending on "
166
  "the number of images."
@@ -168,11 +198,11 @@ msgstr ""
168
  "Nous sommes en train de récupérer vos images non-optimisées, cela peut prendre "
169
  "du temps en fonction du nombre d’images."
170
 
171
- #: inc/admin/enqueue.php:181
172
  msgid "Oops, There is something wrong!"
173
  msgstr "Oups, une erreur est survenue !"
174
 
175
- #: inc/admin/enqueue.php:182
176
  msgid ""
177
  "An unknow error occurred when we tried to get all your unoptimized images. Try "
178
  "again and if the issue still persist, please contact us!"
@@ -181,27 +211,27 @@ msgstr ""
181
  "vos images non optimisées. Essayez encore et si le problème persiste, "
182
  "contactez-nous !"
183
 
184
- #: inc/admin/enqueue.php:184 inc/admin/ui/bulk.php:257 inc/admin/upload.php:38
185
  msgid "Optimized"
186
  msgstr "Optimisées"
187
 
188
- #: inc/admin/enqueue.php:185 inc/admin/upload.php:39
189
  msgid "Unoptimized"
190
  msgstr "Non optimisées"
191
 
192
- #: inc/admin/enqueue.php:186
193
  msgid "Error"
194
  msgstr "Erreur"
195
 
196
- #: inc/admin/enqueue.php:189
197
  msgid "Hold on!"
198
  msgstr "Halte là&nbsp;!"
199
 
200
- #: inc/admin/enqueue.php:190
201
  msgid "All your images have been optimized by Imagify. Congratulations!"
202
  msgstr "Toutes vos images ont été optimisées par Imagify. Félicitations&nbsp;!"
203
 
204
- #: inc/admin/enqueue.php:192
205
  #, php-format
206
  msgid ""
207
  "Discover @imagify, the new compression tool to optimize your images for free. "
@@ -210,12 +240,12 @@ msgstr ""
210
  "Découvrez @imagify, le nouvel outil de compression pour optimiser vos images. "
211
  "J’ai optimisé %1$s sur %2$s !"
212
 
213
- #: inc/admin/enqueue.php:196
214
  msgid "Imagify is still processing. Are you sure you want to leave this page?"
215
  msgstr ""
216
  "Imagify travaille encore. Êtes-vous sûr(e) de vouloir quitter cette page ?"
217
 
218
- #: inc/admin/enqueue.php:201 inc/admin/enqueue.php:204
219
  #: inc/admin/ui/notices.php:253
220
  #, php-format
221
  msgid ""
@@ -225,7 +255,7 @@ msgstr ""
225
  "Pour continuer à optimiser vos images, connectez-vous à votre compte Imagify "
226
  "pour %sacheter un pack ou souscrire à un plan%s."
227
 
228
- #: inc/admin/enqueue.php:204
229
  msgid "F j, Y"
230
  msgstr ""
231
 
@@ -235,16 +265,16 @@ msgid "Bulk Optimization"
235
  msgstr "Optimisation en masse"
236
 
237
  #. Plugin Name of the plugin/theme
238
- #: inc/admin/meta-boxes.php:18 inc/admin/meta-boxes.php:25
239
  #: inc/admin/upload.php:11
240
  msgid "Imagify"
241
  msgstr "Imagify"
242
 
243
- #: inc/admin/meta-boxes.php:20 inc/functions/admin-ui.php:168
244
  msgid "Invalid API key"
245
  msgstr "Clé API invalide"
246
 
247
- #: inc/admin/meta-boxes.php:22 inc/functions/admin-ui.php:170
248
  msgid "Check your Settings"
249
  msgstr "Vérifiez vos réglages"
250
 
@@ -297,7 +327,7 @@ msgstr "Sélectionnez votre niveau de compression"
297
  #: inc/admin/ui/bulk.php:102 inc/admin/ui/bulk.php:130
298
  #: inc/admin/ui/options.php:129 inc/admin/ui/options.php:319
299
  #: inc/admin/ui/options.php:382 inc/admin/ui/options.php:399
300
- #: inc/admin/ui/options.php:459 inc/classes/class-attachment.php:120
301
  #: inc/functions/admin-ui.php:127
302
  msgid "Ultra"
303
  msgstr "Ultra"
@@ -305,7 +335,7 @@ msgstr "Ultra"
305
  #: inc/admin/ui/bulk.php:105 inc/admin/ui/bulk.php:125
306
  #: inc/admin/ui/options.php:124 inc/admin/ui/options.php:331
307
  #: inc/admin/ui/options.php:381 inc/admin/ui/options.php:394
308
- #: inc/admin/ui/options.php:438 inc/classes/class-attachment.php:123
309
  #: inc/functions/admin-ui.php:133
310
  msgid "Aggressive"
311
  msgstr "Agressif"
@@ -313,7 +343,7 @@ msgstr "Agressif"
313
  #: inc/admin/ui/bulk.php:108 inc/admin/ui/bulk.php:120
314
  #: inc/admin/ui/options.php:119 inc/admin/ui/options.php:343
315
  #: inc/admin/ui/options.php:380 inc/admin/ui/options.php:389
316
- #: inc/admin/ui/options.php:418 inc/classes/class-attachment.php:126
317
  #: inc/functions/admin-ui.php:139
318
  msgid "Normal"
319
  msgstr "Normal"
@@ -453,7 +483,7 @@ msgstr ""
453
 
454
  #: inc/admin/ui/notices.php:36
455
  msgid "Sign up, It's FREE!"
456
- msgstr "Incrivez-vous, c’est GRATUIT&nbsp;!"
457
 
458
  #: inc/admin/ui/notices.php:42
459
  msgid "Enter your API Key"
@@ -777,10 +807,6 @@ msgstr ""
777
  "Remarque: la réduction du poids des images sera moins importante par rapport "
778
  "au mode agressif."
779
 
780
- #: inc/admin/ui/options.php:358 inc/admin/ui/options.php:480
781
- msgid "Close"
782
- msgstr "Fermer"
783
-
784
  #: inc/admin/ui/options.php:370
785
  #, php-format
786
  msgid "I want to compare%s and%s"
@@ -803,16 +829,6 @@ msgstr "Photographie optimisée, environ %s"
803
  msgid "Level:"
804
  msgstr "Niveau&nbsp;:"
805
 
806
- #: inc/admin/ui/options.php:411 inc/admin/ui/options.php:421
807
- #: inc/admin/ui/options.php:441 inc/admin/ui/options.php:462
808
- msgid "File Size:"
809
- msgstr "Poids du fichier:"
810
-
811
- #: inc/admin/ui/options.php:425 inc/admin/ui/options.php:445
812
- #: inc/admin/ui/options.php:466 inc/functions/admin-ui.php:44
813
- msgid "Original Saving:"
814
- msgstr "Gain sur l’original&nbsp;:"
815
-
816
  #: inc/admin/upload.php:40
817
  msgid "Errors"
818
  msgstr "Erreurs"
@@ -825,7 +841,7 @@ msgstr "Filtrer par statut"
825
  msgid "All images"
826
  msgstr "Toutes les images"
827
 
828
- #: inc/classes/class-attachment.php:501
829
  msgid ""
830
  "This size isn't authorized to be optimized. Update your Imagify settings if "
831
  "you want to optimize it."
@@ -916,11 +932,6 @@ msgstr "%s n’est pas accessible en écriture"
916
  msgid "Skipped (%s), image not found."
917
  msgstr "Ignoré (%s), image introuvable."
918
 
919
- #: inc/vendors/wp-background-process.php:395
920
- #, php-format
921
- msgid "Every %d Minutes"
922
- msgstr ""
923
-
924
  #. Plugin URI of the plugin/theme
925
  msgid "https://wordpress.org/plugins/imagify/"
926
  msgstr "https://fr.wordpress.org/plugins/imagify/"
@@ -932,7 +943,7 @@ msgid ""
932
  "new most advanced image optimization tool."
933
  msgstr ""
934
  "Réduisez drastiquement le poids de vos images sans perte de qualité, accélérez "
935
- "la rapidité de votre site, boostez votre SEO and économisez de l’argent sur "
936
  "votre bande passante en utilisant Imagify, le nouvel outil le plus avancé "
937
  "d’optimisation des images."
938
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Imagify\n"
4
+ "POT-Creation-Date: 2016-02-18 17:06+0100\n"
5
+ "PO-Revision-Date: 2016-02-18 17:09+0100\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: fr_FR\n"
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
+ #: inc/admin/ajax.php:118 inc/admin/meta-boxes.php:29
24
+ #: inc/functions/admin-ui.php:99 inc/functions/admin-ui.php:127
25
+ #: inc/functions/admin-ui.php:133 inc/functions/admin-ui.php:139
26
+ #: inc/functions/admin-ui.php:175 inc/functions/admin-ui.php:181
27
  msgid "Optimizing..."
28
  msgstr "En cours d’optimisation…"
29
 
30
+ #: inc/admin/ajax.php:118 inc/admin/enqueue.php:163 inc/admin/meta-boxes.php:34
31
+ #: inc/functions/admin-ui.php:181
32
  msgid "Optimize"
33
  msgstr "Optimiser"
34
 
35
+ #: inc/admin/ajax.php:416
36
  msgid "Oops, It's almost over!"
37
  msgstr "Oups, c’est bientôt fini&nbsp;!"
38
 
39
+ #: inc/admin/ajax.php:417
40
  #, php-format
41
  msgid ""
42
  "You have almost used all your credit.%sDon't forget to upgrade your "
45
  "Vous avez bientôt utilisé tout votre crédit.%sN’oubliez pas de mettre à niveau "
46
  "votre abonnement pour continuer à optimiser vos images."
47
 
48
+ #: inc/admin/ajax.php:418 inc/admin/ui/bulk.php:22
49
  msgid "View My Subscription"
50
  msgstr "Voir mon abonnement"
51
 
52
+ #: inc/admin/ajax.php:426 inc/admin/enqueue.php:208 inc/admin/ui/notices.php:251
53
  msgid "Oops, It's Over!"
54
  msgstr "Oups, c’est fini !"
55
 
56
+ #: inc/admin/ajax.php:427 inc/admin/enqueue.php:224 inc/admin/ui/notices.php:253
57
  #, php-format
58
  msgid ""
59
  "You have consumed all your credit for this month. You will have <strong>%s "
62
  "Vous avez consommé tout votre crédit pour ce mois. Vous aurez à nouveau "
63
  "<strong>%s le %s</strong>."
64
 
65
+ #: inc/admin/ajax.php:428
66
  msgid "Upgrade My Subscription"
67
  msgstr "Mettre à niveau mon abonnement"
68
 
69
+ #: inc/admin/ajax.php:447 inc/admin/ui/bulk.php:16
70
  msgid "Account status"
71
  msgstr "Type de compte"
72
 
73
+ #: inc/admin/ajax.php:448 inc/admin/ui/bulk.php:17
74
  msgid "Your subscription:"
75
  msgstr "Votre abonnement&nbsp;:"
76
 
77
+ #: inc/admin/ajax.php:456 inc/admin/ui/bulk.php:47
78
  #, php-format
79
  msgid "You have %s space credit left"
80
  msgstr "Il vous reste %s de crédit"
81
 
82
+ #: inc/admin/ajax.php:468
83
  msgid "View my subscription"
84
  msgstr "Voir mon abonnement"
85
 
158
  msgstr "Restaurer l’original"
159
 
160
  #: inc/admin/enqueue.php:178
161
+ msgid "Original Image"
162
+ msgstr "Image d’origine"
163
+
164
+ #: inc/admin/enqueue.php:179
165
+ msgid "Optimized Image"
166
+ msgstr "Image optimisée"
167
+
168
+ #: inc/admin/enqueue.php:180
169
+ msgid "Compare Original VS Optimized"
170
+ msgstr "Comparer Originale VS Optimisée"
171
+
172
+ #: inc/admin/enqueue.php:181 inc/admin/ui/options.php:358
173
+ #: inc/admin/ui/options.php:480
174
+ msgid "Close"
175
+ msgstr "Fermer"
176
+
177
+ #: inc/admin/enqueue.php:182 inc/admin/ui/options.php:411
178
+ #: inc/admin/ui/options.php:421 inc/admin/ui/options.php:441
179
+ #: inc/admin/ui/options.php:462
180
+ msgid "File Size:"
181
+ msgstr "Poids du fichier:"
182
+
183
+ #: inc/admin/enqueue.php:183 inc/admin/ui/options.php:425
184
+ #: inc/admin/ui/options.php:445 inc/admin/ui/options.php:466
185
+ #: inc/functions/admin-ui.php:44
186
+ msgid "Original Saving:"
187
+ msgstr "Gain sur l’original&nbsp;:"
188
+
189
+ #: inc/admin/enqueue.php:198
190
  msgid "Please wait..."
191
  msgstr "Un peu d’attente…"
192
 
193
+ #: inc/admin/enqueue.php:199
194
  msgid ""
195
  "We are trying to get your unoptimized images, it may take time depending on "
196
  "the number of images."
198
  "Nous sommes en train de récupérer vos images non-optimisées, cela peut prendre "
199
  "du temps en fonction du nombre d’images."
200
 
201
+ #: inc/admin/enqueue.php:201
202
  msgid "Oops, There is something wrong!"
203
  msgstr "Oups, une erreur est survenue !"
204
 
205
+ #: inc/admin/enqueue.php:202
206
  msgid ""
207
  "An unknow error occurred when we tried to get all your unoptimized images. Try "
208
  "again and if the issue still persist, please contact us!"
211
  "vos images non optimisées. Essayez encore et si le problème persiste, "
212
  "contactez-nous !"
213
 
214
+ #: inc/admin/enqueue.php:204 inc/admin/ui/bulk.php:257 inc/admin/upload.php:38
215
  msgid "Optimized"
216
  msgstr "Optimisées"
217
 
218
+ #: inc/admin/enqueue.php:205 inc/admin/upload.php:39
219
  msgid "Unoptimized"
220
  msgstr "Non optimisées"
221
 
222
+ #: inc/admin/enqueue.php:206
223
  msgid "Error"
224
  msgstr "Erreur"
225
 
226
+ #: inc/admin/enqueue.php:209
227
  msgid "Hold on!"
228
  msgstr "Halte là&nbsp;!"
229
 
230
+ #: inc/admin/enqueue.php:210
231
  msgid "All your images have been optimized by Imagify. Congratulations!"
232
  msgstr "Toutes vos images ont été optimisées par Imagify. Félicitations&nbsp;!"
233
 
234
+ #: inc/admin/enqueue.php:212
235
  #, php-format
236
  msgid ""
237
  "Discover @imagify, the new compression tool to optimize your images for free. "
240
  "Découvrez @imagify, le nouvel outil de compression pour optimiser vos images. "
241
  "J’ai optimisé %1$s sur %2$s !"
242
 
243
+ #: inc/admin/enqueue.php:216
244
  msgid "Imagify is still processing. Are you sure you want to leave this page?"
245
  msgstr ""
246
  "Imagify travaille encore. Êtes-vous sûr(e) de vouloir quitter cette page ?"
247
 
248
+ #: inc/admin/enqueue.php:221 inc/admin/enqueue.php:224
249
  #: inc/admin/ui/notices.php:253
250
  #, php-format
251
  msgid ""
255
  "Pour continuer à optimiser vos images, connectez-vous à votre compte Imagify "
256
  "pour %sacheter un pack ou souscrire à un plan%s."
257
 
258
+ #: inc/admin/enqueue.php:224
259
  msgid "F j, Y"
260
  msgstr ""
261
 
265
  msgstr "Optimisation en masse"
266
 
267
  #. Plugin Name of the plugin/theme
268
+ #: inc/admin/meta-boxes.php:17 inc/admin/meta-boxes.php:24
269
  #: inc/admin/upload.php:11
270
  msgid "Imagify"
271
  msgstr "Imagify"
272
 
273
+ #: inc/admin/meta-boxes.php:19 inc/functions/admin-ui.php:168
274
  msgid "Invalid API key"
275
  msgstr "Clé API invalide"
276
 
277
+ #: inc/admin/meta-boxes.php:21 inc/functions/admin-ui.php:170
278
  msgid "Check your Settings"
279
  msgstr "Vérifiez vos réglages"
280
 
327
  #: inc/admin/ui/bulk.php:102 inc/admin/ui/bulk.php:130
328
  #: inc/admin/ui/options.php:129 inc/admin/ui/options.php:319
329
  #: inc/admin/ui/options.php:382 inc/admin/ui/options.php:399
330
+ #: inc/admin/ui/options.php:459 inc/classes/class-attachment.php:135
331
  #: inc/functions/admin-ui.php:127
332
  msgid "Ultra"
333
  msgstr "Ultra"
335
  #: inc/admin/ui/bulk.php:105 inc/admin/ui/bulk.php:125
336
  #: inc/admin/ui/options.php:124 inc/admin/ui/options.php:331
337
  #: inc/admin/ui/options.php:381 inc/admin/ui/options.php:394
338
+ #: inc/admin/ui/options.php:438 inc/classes/class-attachment.php:138
339
  #: inc/functions/admin-ui.php:133
340
  msgid "Aggressive"
341
  msgstr "Agressif"
343
  #: inc/admin/ui/bulk.php:108 inc/admin/ui/bulk.php:120
344
  #: inc/admin/ui/options.php:119 inc/admin/ui/options.php:343
345
  #: inc/admin/ui/options.php:380 inc/admin/ui/options.php:389
346
+ #: inc/admin/ui/options.php:418 inc/classes/class-attachment.php:141
347
  #: inc/functions/admin-ui.php:139
348
  msgid "Normal"
349
  msgstr "Normal"
483
 
484
  #: inc/admin/ui/notices.php:36
485
  msgid "Sign up, It's FREE!"
486
+ msgstr "Inscrivez-vous, c’est GRATUIT&nbsp;!"
487
 
488
  #: inc/admin/ui/notices.php:42
489
  msgid "Enter your API Key"
807
  "Remarque: la réduction du poids des images sera moins importante par rapport "
808
  "au mode agressif."
809
 
 
 
 
 
810
  #: inc/admin/ui/options.php:370
811
  #, php-format
812
  msgid "I want to compare%s and%s"
829
  msgid "Level:"
830
  msgstr "Niveau&nbsp;:"
831
 
 
 
 
 
 
 
 
 
 
 
832
  #: inc/admin/upload.php:40
833
  msgid "Errors"
834
  msgstr "Erreurs"
841
  msgid "All images"
842
  msgstr "Toutes les images"
843
 
844
+ #: inc/classes/class-attachment.php:518
845
  msgid ""
846
  "This size isn't authorized to be optimized. Update your Imagify settings if "
847
  "you want to optimize it."
932
  msgid "Skipped (%s), image not found."
933
  msgstr "Ignoré (%s), image introuvable."
934
 
 
 
 
 
 
935
  #. Plugin URI of the plugin/theme
936
  msgid "https://wordpress.org/plugins/imagify/"
937
  msgstr "https://fr.wordpress.org/plugins/imagify/"
943
  "new most advanced image optimization tool."
944
  msgstr ""
945
  "Réduisez drastiquement le poids de vos images sans perte de qualité, accélérez "
946
+ "la rapidité de votre site, boostez votre SEO et économisez de l’argent sur "
947
  "votre bande passante en utilisant Imagify, le nouvel outil le plus avancé "
948
  "d’optimisation des images."
949
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: wp_media
3
  Tags: compress image, images, performance, optimization, photos, upload, resize, gif, png, jpg, reduce image size, retina
4
  Requires at least: 3.7.0
5
  Tested up to: 4.4.2
6
- Stable tag: 1.3.6.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -134,9 +134,20 @@ When the plugin is disabled, your existing images remain optimized. Backups of t
134
 
135
  == Changelog ==
136
 
137
- = 1.3.6.1 =
138
- * Regression Fix
139
- * Fix PHP Fatal error on the metabox of the attachment edit page
 
 
 
 
 
 
 
 
 
 
 
140
 
141
  = 1.3.6 =
142
  * Improvement
3
  Tags: compress image, images, performance, optimization, photos, upload, resize, gif, png, jpg, reduce image size, retina
4
  Requires at least: 3.7.0
5
  Tested up to: 4.4.2
6
+ Stable tag: 1.4.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
134
 
135
  == Changelog ==
136
 
137
+ = 1.4.1 =
138
+ * Interface
139
+ * Medias: better comparison for big portrait images
140
+ * Medias: Don't display the "Compare Original VS Optimized" button for images without backup
141
+
142
+ * Bug Fix
143
+ * WPML: Fix AJAX error caused by WPML to avoid issue during the API key validation process
144
+ * Yoast: Remove JS error caused by Yoast SEO on the attachment edit screen to avoid issue with our "Compare Original VS Optimized"
145
+
146
+ = 1.4 =
147
+ * Interface
148
+ * Medias: Click a button to open images comparison between Original and Optimized (available for big enought images)
149
+ * Improvement
150
+ * Add async method to optimize resized images
151
 
152
  = 1.3.6 =
153
  * Improvement