Version Description
- Add: Option to remove the image size threshold (which is set to 2560 since WordPress 5.3).
- Updade: PHP Simple Dom updated to 1.9.1.
Download this release
Release Info
Developer | TigrouMeow |
Plugin | WP Retina 2x |
Version | 5.6.0 |
Comparing to | |
See all releases |
Code changes from version 5.5.7 to 5.6.0
- common/admin.css +3 -4
- common/admin.php +105 -8
- core.php +8 -0
- readme.txt +6 -2
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +2 -2
- vendor/composer/installed.json +6 -6
- vendor/kub-at/php-simple-html-dom-parser/README.md +2 -2
- vendor/kub-at/php-simple-html-dom-parser/src/KubAT/PhpSimple/lib/simple_html_dom.php +8 -1
- wp-retina-2x.php +2 -2
- wr2x_admin.php +16 -5
common/admin.css
CHANGED
@@ -63,7 +63,7 @@
|
|
63 |
.meow-box {
|
64 |
box-sizing: border-box;
|
65 |
border: 1px solid #e5e5e5;
|
66 |
-
box-shadow:
|
67 |
background: #fff;
|
68 |
color: #444;
|
69 |
margin-bottom: 15px;
|
@@ -80,13 +80,12 @@
|
|
80 |
}
|
81 |
|
82 |
.meow-box h3 {
|
83 |
-
font-size:
|
84 |
-
padding:
|
85 |
margin: 0;
|
86 |
background: #3c3c3c;
|
87 |
color: #ffffff;
|
88 |
text-transform: uppercase;
|
89 |
-
border-top-right-radius: 8px;
|
90 |
/*border-bottom: 1px solid #eee;*/
|
91 |
}
|
92 |
|
63 |
.meow-box {
|
64 |
box-sizing: border-box;
|
65 |
border: 1px solid #e5e5e5;
|
66 |
+
box-shadow: 0px 3px 5px rgba(0, 0, 0, .1);
|
67 |
background: #fff;
|
68 |
color: #444;
|
69 |
margin-bottom: 15px;
|
80 |
}
|
81 |
|
82 |
.meow-box h3 {
|
83 |
+
font-size: 14px;
|
84 |
+
padding: 10px 12px;
|
85 |
margin: 0;
|
86 |
background: #3c3c3c;
|
87 |
color: #ffffff;
|
88 |
text-transform: uppercase;
|
|
|
89 |
/*border-bottom: 1px solid #eee;*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MyAwIDUgMCA3LTJzMy0zIDItNnoiLz4KICA8cGF0aCBkPSJNODIgNzRoMTJsNSAxOCAzIDExIDgtMjloMTNsMiA0MmgtOGwtMS0yLTEtMzEtMTAgMzItNyAxLTktMzMtMSAyOS0xIDRoLThsMy00MnoiIGZpbGw9IiNmZmYiLz4KICA8cGF0aCBjbGFzcz0ic3QzIiBkPSJNNTggNzdsNSA1Yy0xIDQtMiA4LTcgOGwtNy01YzQtMiA2LTUgOS04eiIvPgogIDxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik02MyA4Mmw5IDUtNiA5LTEwLTZjNSAwIDYtNCA3LTh6Ii8+CiAgPHBhdGggY2xhc3M9InN0MyIgZD0iTTcyIDg3bDMgMS0xIDExLTgtMyA2LTEweiIvPgo8L3N2Zz4K';
|
8 |
|
9 |
public static $loaded = false;
|
10 |
-
public static $admin_version = "2.
|
11 |
|
12 |
public $prefix; // prefix used for actions, filters (mfrh)
|
13 |
public $mainfile; // plugin main file (media-file-renamer.php)
|
@@ -21,6 +21,11 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
21 |
add_action( 'admin_menu', array( $this, 'admin_menu_start' ) );
|
22 |
add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
|
23 |
add_action( 'plugins_loaded', array( $this, 'plugins_loaded' ) );
|
|
|
|
|
|
|
|
|
|
|
24 |
}
|
25 |
MeowApps_Admin::$loaded = true;
|
26 |
}
|
@@ -51,6 +56,16 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
51 |
add_filter( 'edd_sl_api_request_verify_ssl', array( $this, 'request_verify_ssl' ), 10, 0 );
|
52 |
}
|
53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
function request_verify_ssl() {
|
55 |
return get_option( 'force_sslverify', false );
|
56 |
}
|
@@ -390,13 +405,91 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
390 |
</div>
|
391 |
</div>
|
392 |
|
393 |
-
<h2>Recommendations</h2>
|
394 |
-
<div style="background: white; padding: 5px 15px 5px 15px; box-shadow: 2px 2px 1px rgba(0,0,0,.02);">
|
395 |
-
<p>
|
396 |
-
|
397 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
398 |
<p>
|
399 |
-
<?php _e( '
|
400 |
<a href='https://meowapps.com/debugging-wordpress/' target='_blank'>
|
401 |
How To Debug</a>,
|
402 |
<a href='https://meowapps.com/seo-optimization/' target='_blank'>
|
@@ -452,7 +545,11 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
452 |
|
453 |
<?php
|
454 |
}
|
455 |
-
|
|
|
|
|
|
|
|
|
456 |
}
|
457 |
|
458 |
// HELPERS
|
7 |
public static $logo = 'data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxIiB2aWV3Qm94PSIwIDAgMTY1IDE2NSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8c3R5bGU+CiAgICAuc3Qye2ZpbGw6IzgwNDYyNX0uc3Qze2ZpbGw6I2ZkYTk2MH0KICA8L3N0eWxlPgogIDxwYXRoIGQ9Ik03MiA3YTc2IDc2IDAgMCAxIDg0IDkxQTc1IDc1IDAgMSAxIDcyIDd6IiBmaWxsPSIjNGE2YjhjIi8+CiAgPHBhdGggZD0iTTQ4IDQ4YzIgNSAyIDEwIDUgMTQgNSA4IDEzIDE3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+
public static $admin_version = "2.4";
|
11 |
|
12 |
public $prefix; // prefix used for actions, filters (mfrh)
|
13 |
public $mainfile; // plugin main file (media-file-renamer.php)
|
21 |
add_action( 'admin_menu', array( $this, 'admin_menu_start' ) );
|
22 |
add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
|
23 |
add_action( 'plugins_loaded', array( $this, 'plugins_loaded' ) );
|
24 |
+
add_action( 'wp_ajax_meow_perf_load', array( $this, 'wp_ajax_meow_perf_load' ) );
|
25 |
+
add_action( 'wp_ajax_meow_file_check', array( $this, 'wp_ajax_meow_file_check' ) );
|
26 |
+
if ( isset( $_GET['page'] ) && $_GET['page'] === 'meowapps-main-menu' ) {
|
27 |
+
add_filter( 'admin_footer_text', array( $this, 'admin_footer_text' ), 100000, 1 );
|
28 |
+
}
|
29 |
}
|
30 |
MeowApps_Admin::$loaded = true;
|
31 |
}
|
56 |
add_filter( 'edd_sl_api_request_verify_ssl', array( $this, 'request_verify_ssl' ), 10, 0 );
|
57 |
}
|
58 |
|
59 |
+
function wp_ajax_meow_perf_load() {
|
60 |
+
return 'Did nothing but a blank request.';
|
61 |
+
}
|
62 |
+
|
63 |
+
function wp_ajax_meow_file_check() {
|
64 |
+
$tmpfile = wp_tempnam();
|
65 |
+
unlink( $tmpfile );
|
66 |
+
return "Created and deleted $tmpfile.";
|
67 |
+
}
|
68 |
+
|
69 |
function request_verify_ssl() {
|
70 |
return get_option( 'force_sslverify', false );
|
71 |
}
|
405 |
</div>
|
406 |
</div>
|
407 |
|
408 |
+
<h2>WordPress Performance & Recommendations</h2>
|
409 |
+
<div style="background: white; padding: 5px 15px 5px 15px; box-shadow: 2px 2px 1px rgba(0,0,0,.02); margin-bottom: 15px;">
|
410 |
+
<p><?php _e( 'The <b>Empty Request Time</b> helps you analyzing the raw performance of your install by giving you the average time it takes to run an empty request to your server. You can try to disable some plugins (or change their options) then and click on Reset to see how it influences the results. With <b>File Operation Time</b>, you will find out if your server is slow with files. An excellent install would have an Empty Request Time of less than 500 ms. Keep it absolutely under 2,000 ms. File Operation Time should take only a few milliseconds more than the Empty Request Time. For more information about this, <a href="https://meowapps.com/clean-optimize-wordpress/#Optimize_your_Empty_Request_Time" target="_blank">click here</a>.', 'meowapps' ); ?></p>
|
411 |
+
</div>
|
412 |
+
|
413 |
+
<div style="float: left; margin-right: 10px; text-align: center; padding: 10px; background: white; width: 200px; border: 1px solid #e2e2e2;">
|
414 |
+
<div style='font-size: 14px; line-height: 14px; margin-bottom: 20px;'>Empty Request Time</div>
|
415 |
+
<div style='font-size: 32px; line-height: 32px; margin-bottom: 10px;' id='meow-perf-load-average'>N/A</div>
|
416 |
+
<div style='font-size: 12px; line-height: 12px; margin-bottom: 20px;'>Based on
|
417 |
+
<span id='meow-perf-load-count'>0</span> request(s)
|
418 |
+
</div>
|
419 |
+
<input type='submit' style='text-align: center; width: 100%;' id="meow-perf-reset" value="Reset" class="button button-primary">
|
420 |
+
</div>
|
421 |
+
|
422 |
+
<div style="float: left; margin-right: 10px; text-align: center; padding: 10px; background: white; width: 200px; border: 1px solid #e2e2e2;">
|
423 |
+
<div style='font-size: 14px; line-height: 14px; margin-bottom: 20px;'>File Operation Time</div>
|
424 |
+
<div style='font-size: 32px; line-height: 32px; margin-bottom: 10px;' id='meow-file-check-time'>N/A</div>
|
425 |
+
<div style='font-size: 12px; line-height: 12px; margin-bottom: 20px;'>Create temporary file and delete it.</div>
|
426 |
+
<input type='submit' style='text-align: center; width: 100%;' id="meow-file-check-start" value="Check" class="button button-primary">
|
427 |
+
</div>
|
428 |
+
|
429 |
+
<div style="clear: both;"></div>
|
430 |
+
|
431 |
+
<script>
|
432 |
+
(function ($) {
|
433 |
+
var calls = 0;
|
434 |
+
var times = [];
|
435 |
+
|
436 |
+
$('#meow-perf-reset').on('click', function () {
|
437 |
+
calls = 0;
|
438 |
+
times = [];
|
439 |
+
$('#meow-perf-load-average').text('N/A');
|
440 |
+
$('#meow-perf-load-count').text('0');
|
441 |
+
});
|
442 |
+
|
443 |
+
function perfLoad() {
|
444 |
+
var start = new Date().getTime();
|
445 |
+
$.ajax(ajaxurl, {
|
446 |
+
method: 'post',
|
447 |
+
dataType: 'json',
|
448 |
+
data: {
|
449 |
+
action: 'meow_perf_load',
|
450 |
+
}
|
451 |
+
}).done(function (response) {
|
452 |
+
var end = new Date().getTime();
|
453 |
+
var time = end - start;
|
454 |
+
calls++;
|
455 |
+
times.push(time);
|
456 |
+
var sum = times.reduce(function(a, b) { return a + b; });
|
457 |
+
var avg = Math.ceil(sum / times.length);
|
458 |
+
$('#meow-perf-load-average').text(avg + ' ms');
|
459 |
+
$('#meow-perf-load-count').text(calls);
|
460 |
+
setTimeout(perfLoad, 5000);
|
461 |
+
});
|
462 |
+
};
|
463 |
+
|
464 |
+
function perfFile() {
|
465 |
+
var start = new Date().getTime();
|
466 |
+
$.ajax(ajaxurl, {
|
467 |
+
method: 'post',
|
468 |
+
dataType: 'json',
|
469 |
+
data: {
|
470 |
+
action: 'meow_file_check',
|
471 |
+
}
|
472 |
+
}).done(function (response) {
|
473 |
+
var end = new Date().getTime();
|
474 |
+
var time = end - start;
|
475 |
+
$('#meow-file-check-time').text(time + ' ms');
|
476 |
+
$('#meow-file-check-start').text('Check');
|
477 |
+
});
|
478 |
+
};
|
479 |
+
|
480 |
+
$('#meow-file-check-start').on('click', function () {
|
481 |
+
$('#meow-file-check-start').text('...');
|
482 |
+
perfFile();
|
483 |
+
});
|
484 |
+
|
485 |
+
setTimeout(perfLoad, 1500);
|
486 |
+
|
487 |
+
})(jQuery);
|
488 |
+
</script>
|
489 |
+
|
490 |
+
<div style="background: white; padding: 5px 15px 5px 15px; box-shadow: 2px 2px 1px rgba(0,0,0,.02); margin-top: 15px;">
|
491 |
<p>
|
492 |
+
<?php _e( 'Too many WordPress installs are blown-up with useless and/or huge plugins, and bad practices. But that is because most users are overwhelmed by the diversity and immensity of the WordPress jungle. One rule of thumb is to keep your install the simplest as possible, with the least number of plugins (avoiding heavy ones too) and a good hosting service (avoid VPS except if you know exactly what you are doing). Articles are kept being updated on the Meow Apps website, with all the latest recommendations: ', 'meowapps' )?>
|
493 |
<a href='https://meowapps.com/debugging-wordpress/' target='_blank'>
|
494 |
How To Debug</a>,
|
495 |
<a href='https://meowapps.com/seo-optimization/' target='_blank'>
|
545 |
|
546 |
<?php
|
547 |
}
|
548 |
+
}
|
549 |
+
|
550 |
+
function admin_footer_text( $current ) {
|
551 |
+
return "Thanks for using <a href='https://meowapps.com'>Meow Apps</a>! This is the Meow Admin " .
|
552 |
+
MeowApps_Admin::$admin_version . ". <br /><i>Loaded from " . __FILE__ . "</i>";
|
553 |
}
|
554 |
|
555 |
// HELPERS
|
core.php
CHANGED
@@ -18,6 +18,10 @@ class Meow_WR2X_Core {
|
|
18 |
add_action( 'init', array( $this, 'init' ) );
|
19 |
include( __DIR__ . '/api.php' );
|
20 |
|
|
|
|
|
|
|
|
|
21 |
// In Admin
|
22 |
if ( is_admin() ) {
|
23 |
include( __DIR__ . '/ajax.php' );
|
@@ -33,6 +37,10 @@ class Meow_WR2X_Core {
|
|
33 |
}
|
34 |
}
|
35 |
|
|
|
|
|
|
|
|
|
36 |
function is_rest() {
|
37 |
if ( empty( $_SERVER[ 'REQUEST_URI' ] ) )
|
38 |
return false;
|
18 |
add_action( 'init', array( $this, 'init' ) );
|
19 |
include( __DIR__ . '/api.php' );
|
20 |
|
21 |
+
if ( get_option( 'wr2x_big_image_size_threshold', false ) ) {
|
22 |
+
add_filter( 'big_image_size_threshold', array( $this, 'big_image_size_threshold' ) );
|
23 |
+
}
|
24 |
+
|
25 |
// In Admin
|
26 |
if ( is_admin() ) {
|
27 |
include( __DIR__ . '/ajax.php' );
|
37 |
}
|
38 |
}
|
39 |
|
40 |
+
function big_image_size_threshold() {
|
41 |
+
return false;
|
42 |
+
}
|
43 |
+
|
44 |
function is_rest() {
|
45 |
if ( empty( $_SERVER[ 'REQUEST_URI' ] ) )
|
46 |
return false;
|
readme.txt
CHANGED
@@ -3,9 +3,9 @@ Contributors: TigrouMeow
|
|
3 |
Tags: retina, images, image, responsive, lazysizes, lazy, attachment, media, files, iphone, ipad, high-dpi
|
4 |
Donate link: https://commerce.coinbase.com/checkout/d047546a-77a8-41c8-9ea9-4a950f61832f
|
5 |
Requires at least: 4.4
|
6 |
-
Tested up to: 5.
|
7 |
Requires PHP: 7.0
|
8 |
-
Stable tag: 5.
|
9 |
|
10 |
Make your website look beautiful and crisp on modern displays by creating and displaying retina images. WP 4.4+ is also supported and enhanced.
|
11 |
|
@@ -39,6 +39,10 @@ The plugin cannot inject CSS to handles the images added through CSS, that's bot
|
|
39 |
|
40 |
== Changelog ==
|
41 |
|
|
|
|
|
|
|
|
|
42 |
= 5.5.7 =
|
43 |
* Fix: Background CSS wasn't working properly in a few cases.
|
44 |
* Update: Lazysizes updated to 5.1.1 (from 5.0.0).
|
3 |
Tags: retina, images, image, responsive, lazysizes, lazy, attachment, media, files, iphone, ipad, high-dpi
|
4 |
Donate link: https://commerce.coinbase.com/checkout/d047546a-77a8-41c8-9ea9-4a950f61832f
|
5 |
Requires at least: 4.4
|
6 |
+
Tested up to: 5.3
|
7 |
Requires PHP: 7.0
|
8 |
+
Stable tag: 5.6.0
|
9 |
|
10 |
Make your website look beautiful and crisp on modern displays by creating and displaying retina images. WP 4.4+ is also supported and enhanced.
|
11 |
|
39 |
|
40 |
== Changelog ==
|
41 |
|
42 |
+
= 5.6.0 =
|
43 |
+
* Add: Option to remove the image size threshold (which is set to 2560 since WordPress 5.3).
|
44 |
+
* Updade: PHP Simple Dom updated to 1.9.1.
|
45 |
+
|
46 |
= 5.5.7 =
|
47 |
* Fix: Background CSS wasn't working properly in a few cases.
|
48 |
* Update: Lazysizes updated to 5.1.1 (from 5.0.0).
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInitb9bf34057faa00506d10ad6aac0e9f05::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit91955450420fccf0146f52ef39d67985
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
-
call_user_func(\Composer\Autoload\
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInitb9bf34057faa00506d10ad6aac0e9f05
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInitb9bf34057faa00506d10ad6aac0e9f05', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitb9bf34057faa00506d10ad6aac0e9f05', 'loadClassLoader'));
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
+
call_user_func(\Composer\Autoload\ComposerStaticInitb9bf34057faa00506d10ad6aac0e9f05::getInitializer($loader));
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $prefixesPsr0 = array (
|
10 |
'K' =>
|
@@ -19,7 +19,7 @@ class ComposerStaticInit91955450420fccf0146f52ef39d67985
|
|
19 |
public static function getInitializer(ClassLoader $loader)
|
20 |
{
|
21 |
return \Closure::bind(function () use ($loader) {
|
22 |
-
$loader->prefixesPsr0 =
|
23 |
|
24 |
}, null, ClassLoader::class);
|
25 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInitb9bf34057faa00506d10ad6aac0e9f05
|
8 |
{
|
9 |
public static $prefixesPsr0 = array (
|
10 |
'K' =>
|
19 |
public static function getInitializer(ClassLoader $loader)
|
20 |
{
|
21 |
return \Closure::bind(function () use ($loader) {
|
22 |
+
$loader->prefixesPsr0 = ComposerStaticInitb9bf34057faa00506d10ad6aac0e9f05::$prefixesPsr0;
|
23 |
|
24 |
}, null, ClassLoader::class);
|
25 |
}
|
vendor/composer/installed.json
CHANGED
@@ -1,23 +1,23 @@
|
|
1 |
[
|
2 |
{
|
3 |
"name": "kub-at/php-simple-html-dom-parser",
|
4 |
-
"version": "1.9",
|
5 |
-
"version_normalized": "1.9.
|
6 |
"source": {
|
7 |
"type": "git",
|
8 |
"url": "https://github.com/Kub-AT/php-simple-html-dom-parser.git",
|
9 |
-
"reference": "
|
10 |
},
|
11 |
"dist": {
|
12 |
"type": "zip",
|
13 |
-
"url": "https://api.github.com/repos/Kub-AT/php-simple-html-dom-parser/zipball/
|
14 |
-
"reference": "
|
15 |
"shasum": ""
|
16 |
},
|
17 |
"require": {
|
18 |
"php": ">=5.3.2"
|
19 |
},
|
20 |
-
"time": "2019-
|
21 |
"type": "library",
|
22 |
"installation-source": "dist",
|
23 |
"autoload": {
|
1 |
[
|
2 |
{
|
3 |
"name": "kub-at/php-simple-html-dom-parser",
|
4 |
+
"version": "1.9.1",
|
5 |
+
"version_normalized": "1.9.1.0",
|
6 |
"source": {
|
7 |
"type": "git",
|
8 |
"url": "https://github.com/Kub-AT/php-simple-html-dom-parser.git",
|
9 |
+
"reference": "ff22f98bfd9235115c128059076f3eb740d66913"
|
10 |
},
|
11 |
"dist": {
|
12 |
"type": "zip",
|
13 |
+
"url": "https://api.github.com/repos/Kub-AT/php-simple-html-dom-parser/zipball/ff22f98bfd9235115c128059076f3eb740d66913",
|
14 |
+
"reference": "ff22f98bfd9235115c128059076f3eb740d66913",
|
15 |
"shasum": ""
|
16 |
},
|
17 |
"require": {
|
18 |
"php": ">=5.3.2"
|
19 |
},
|
20 |
+
"time": "2019-10-25T12:34:43+00:00",
|
21 |
"type": "library",
|
22 |
"installation-source": "dist",
|
23 |
"autoload": {
|
vendor/kub-at/php-simple-html-dom-parser/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
php-simple-html-dom-parser
|
2 |
==========================
|
3 |
|
4 |
-
Version 1.9 - PHP 7.3 compatible
|
5 |
-
PHP Simple HTML DOM Parser changelog: https://sourceforge.net/projects/simplehtmldom/files/simplehtmldom/1.9/
|
6 |
|
7 |
|
8 |
Install
|
1 |
php-simple-html-dom-parser
|
2 |
==========================
|
3 |
|
4 |
+
Version 1.9.1 - PHP 7.3 compatible
|
5 |
+
PHP Simple HTML DOM Parser changelog: https://sourceforge.net/projects/simplehtmldom/files/simplehtmldom/1.9.1/
|
6 |
|
7 |
|
8 |
Install
|
vendor/kub-at/php-simple-html-dom-parser/src/KubAT/PhpSimple/lib/simple_html_dom.php
CHANGED
@@ -20,7 +20,7 @@ namespace simple_html_dom;
|
|
20 |
* Vadim Voituk
|
21 |
* Antcs
|
22 |
*
|
23 |
-
* Version Rev. 1.9 (
|
24 |
*/
|
25 |
|
26 |
define('HDOM_TYPE_ELEMENT', 1);
|
@@ -611,6 +611,13 @@ class simple_html_dom_node
|
|
611 |
$pass = false;
|
612 |
}
|
613 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
614 |
// Skip if node isn't a child node (i.e. text nodes)
|
615 |
if($pass && !in_array($node, $node->parent->children, true)) {
|
616 |
$pass = false;
|
20 |
* Vadim Voituk
|
21 |
* Antcs
|
22 |
*
|
23 |
+
* Version Rev. 1.9.1 (291)
|
24 |
*/
|
25 |
|
26 |
define('HDOM_TYPE_ELEMENT', 1);
|
611 |
$pass = false;
|
612 |
}
|
613 |
|
614 |
+
// Handle 'text' selector
|
615 |
+
if($pass && $tag === 'text' && $node->tag === 'text') {
|
616 |
+
$ret[array_search($node, $this->dom->nodes, true)] = 1;
|
617 |
+
unset($node);
|
618 |
+
continue;
|
619 |
+
}
|
620 |
+
|
621 |
// Skip if node isn't a child node (i.e. text nodes)
|
622 |
if($pass && !in_array($node, $node->parent->children, true)) {
|
623 |
$pass = false;
|
wp-retina-2x.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WP Retina 2x
|
4 |
Plugin URI: https://meowapps.com
|
5 |
Description: Make your website look beautiful and crisp on modern displays by creating + displaying retina images.
|
6 |
-
Version: 5.
|
7 |
Author: Jordy Meow
|
8 |
Author URI: https://meowapps.com
|
9 |
Text Domain: wp-retina-2x
|
@@ -29,7 +29,7 @@ if ( class_exists( 'Meow_WR2X_Core' ) ) {
|
|
29 |
global $wr2x_picturefill, $wr2x_retinajs, $wr2x_lazysizes,
|
30 |
$wr2x_retina_image, $wr2x_core;
|
31 |
|
32 |
-
$wr2x_version = '5.
|
33 |
$wr2x_retinajs = '2.0.0';
|
34 |
$wr2x_picturefill = '3.0.2';
|
35 |
$wr2x_lazysizes = '5.1.1';
|
3 |
Plugin Name: WP Retina 2x
|
4 |
Plugin URI: https://meowapps.com
|
5 |
Description: Make your website look beautiful and crisp on modern displays by creating + displaying retina images.
|
6 |
+
Version: 5.6.0
|
7 |
Author: Jordy Meow
|
8 |
Author URI: https://meowapps.com
|
9 |
Text Domain: wp-retina-2x
|
29 |
global $wr2x_picturefill, $wr2x_retinajs, $wr2x_lazysizes,
|
30 |
$wr2x_retina_image, $wr2x_core;
|
31 |
|
32 |
+
$wr2x_version = '5.6.0';
|
33 |
$wr2x_retinajs = '2.0.0';
|
34 |
$wr2x_picturefill = '3.0.2';
|
35 |
$wr2x_lazysizes = '5.1.1';
|
wr2x_admin.php
CHANGED
@@ -128,19 +128,22 @@ class Meow_WR2X_Admin extends MeowApps_Admin {
|
|
128 |
add_settings_field( 'wr2x_debug', __( "Debug", 'wp-retina-2x' ),
|
129 |
array( $this, 'admin_debug_callback' ),
|
130 |
'wr2x_advanced_settings-menu', 'wr2x_advanced_settings' );
|
131 |
-
|
132 |
-
add_settings_field( 'wr2x_disable_responsive', __( "<br /><br />Disable Responsive", 'wp-retina-2x' ),
|
133 |
array( $this, 'admin_disable_responsive_callback' ),
|
134 |
'wr2x_advanced_settings-menu', 'wr2x_advanced_settings' );
|
135 |
add_settings_field( 'wr2x_cdn_domain', __( "Custom CDN Domain", 'wp-retina-2x' ) . "<br />(Pro)",
|
136 |
array( $this, 'admin_cdn_domain_callback' ),
|
137 |
'wr2x_advanced_settings-menu', 'wr2x_advanced_settings' );
|
|
|
|
|
|
|
138 |
|
139 |
register_setting( 'wr2x_advanced_settings', 'wr2x_auto_generate' );
|
140 |
register_setting( 'wr2x_advanced_settings', 'wr2x_regenerate_thumbnails' );
|
141 |
register_setting( 'wr2x_advanced_settings', 'wr2x_disable_responsive' );
|
142 |
register_setting( 'wr2x_advanced_settings', 'wr2x_disable_medium_large' );
|
143 |
register_setting( 'wr2x_advanced_settings', 'wr2x_cdn_domain' );
|
|
|
144 |
register_setting( 'wr2x_advanced_settings', 'wr2x_over_http_check' );
|
145 |
register_setting( 'wr2x_advanced_settings', 'wr2x_debug' );
|
146 |
|
@@ -264,7 +267,7 @@ class Meow_WR2X_Admin extends MeowApps_Admin {
|
|
264 |
|
265 |
<div class="meow-col meow-span_1_of_2">
|
266 |
|
267 |
-
<?php $this->display_serialkey_box( "https://meowapps.com/wp-retina-2x/" ); ?>
|
268 |
|
269 |
<?php if ( get_option( 'wr2x_method', 'none' ) == 'Picturefill' ): ?>
|
270 |
<div class="meow-box">
|
@@ -336,12 +339,20 @@ class Meow_WR2X_Admin extends MeowApps_Admin {
|
|
336 |
|
337 |
function admin_disable_responsive_callback( $args ) {
|
338 |
$value = get_option( 'wr2x_disable_responsive', null );
|
339 |
-
$html = '<
|
340 |
checked( 1, get_option( 'wr2x_disable_responsive' ), false ) . '/>';
|
341 |
$html .= '<label>Disable the Responsive Images feature.</label><br /><small>Get back control over your HTML if you need.</small>';
|
342 |
echo $html;
|
343 |
}
|
344 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
345 |
function admin_disable_medium_large_callback( $args ) {
|
346 |
$value = get_option( 'wr2x_disable_medium_large', null );
|
347 |
$html = '<input type="checkbox" id="wr2x_disable_medium_large" name="wr2x_disable_medium_large" value="1" ' .
|
@@ -359,7 +370,7 @@ class Meow_WR2X_Admin extends MeowApps_Admin {
|
|
359 |
<option ' . selected( 'HTML Rewrite', $value, false ) . 'value="HTML Rewrite">HTML Rewrite</option>
|
360 |
<option ' . selected( 'Retina-Images', $value, false ) . 'value="Retina-Images">Retina-Images</option>
|
361 |
<option ' . selected( 'none', $value, false ) . 'value="none">None</option>
|
362 |
-
</select><small><br />' . __( 'In all cases (including "None"), Retina support will be added to the Responsive Images. Check the <a target="_blank" href="https://meowapps.com/wp-retina-2x-methods" />Retina Methods</a> page if you want to know more about those methods.', 'wp-retina-2x' ) . '</small>';
|
363 |
echo $html;
|
364 |
}
|
365 |
|
128 |
add_settings_field( 'wr2x_debug', __( "Debug", 'wp-retina-2x' ),
|
129 |
array( $this, 'admin_debug_callback' ),
|
130 |
'wr2x_advanced_settings-menu', 'wr2x_advanced_settings' );
|
131 |
+
add_settings_field( 'wr2x_disable_responsive', __( "Disable Responsive", 'wp-retina-2x' ),
|
|
|
132 |
array( $this, 'admin_disable_responsive_callback' ),
|
133 |
'wr2x_advanced_settings-menu', 'wr2x_advanced_settings' );
|
134 |
add_settings_field( 'wr2x_cdn_domain', __( "Custom CDN Domain", 'wp-retina-2x' ) . "<br />(Pro)",
|
135 |
array( $this, 'admin_cdn_domain_callback' ),
|
136 |
'wr2x_advanced_settings-menu', 'wr2x_advanced_settings' );
|
137 |
+
add_settings_field( 'wr2x_big_image_size_threshold', __( "Big Image Size Threshold", 'wp-retina-2x' ),
|
138 |
+
array( $this, 'admin_big_image_size_threshold' ),
|
139 |
+
'wr2x_advanced_settings-menu', 'wr2x_advanced_settings' );
|
140 |
|
141 |
register_setting( 'wr2x_advanced_settings', 'wr2x_auto_generate' );
|
142 |
register_setting( 'wr2x_advanced_settings', 'wr2x_regenerate_thumbnails' );
|
143 |
register_setting( 'wr2x_advanced_settings', 'wr2x_disable_responsive' );
|
144 |
register_setting( 'wr2x_advanced_settings', 'wr2x_disable_medium_large' );
|
145 |
register_setting( 'wr2x_advanced_settings', 'wr2x_cdn_domain' );
|
146 |
+
register_setting( 'wr2x_advanced_settings', 'wr2x_big_image_size_threshold' );
|
147 |
register_setting( 'wr2x_advanced_settings', 'wr2x_over_http_check' );
|
148 |
register_setting( 'wr2x_advanced_settings', 'wr2x_debug' );
|
149 |
|
267 |
|
268 |
<div class="meow-col meow-span_1_of_2">
|
269 |
|
270 |
+
<?php $this->display_serialkey_box( "https://meowapps.com/plugin/wp-retina-2x/" ); ?>
|
271 |
|
272 |
<?php if ( get_option( 'wr2x_method', 'none' ) == 'Picturefill' ): ?>
|
273 |
<div class="meow-box">
|
339 |
|
340 |
function admin_disable_responsive_callback( $args ) {
|
341 |
$value = get_option( 'wr2x_disable_responsive', null );
|
342 |
+
$html = '<input type="checkbox" id="wr2x_disable_responsive" name="wr2x_disable_responsive" value="1" ' .
|
343 |
checked( 1, get_option( 'wr2x_disable_responsive' ), false ) . '/>';
|
344 |
$html .= '<label>Disable the Responsive Images feature.</label><br /><small>Get back control over your HTML if you need.</small>';
|
345 |
echo $html;
|
346 |
}
|
347 |
|
348 |
+
function admin_big_image_size_threshold( $args ) {
|
349 |
+
$value = get_option( 'wr2x_big_image_size_threshold', null );
|
350 |
+
$html = '<input type="checkbox" id="wr2x_big_image_size_threshold" name="wr2x_big_image_size_threshold"
|
351 |
+
value="1" ' . checked( 1, get_option( 'wr2x_big_image_size_threshold' ), false ) . '/>';
|
352 |
+
$html .= '<label>Disable</label><br /><small>By default, WordPress limits the size of the image to 2560px (with or height) maximum.</small>';
|
353 |
+
echo $html;
|
354 |
+
}
|
355 |
+
|
356 |
function admin_disable_medium_large_callback( $args ) {
|
357 |
$value = get_option( 'wr2x_disable_medium_large', null );
|
358 |
$html = '<input type="checkbox" id="wr2x_disable_medium_large" name="wr2x_disable_medium_large" value="1" ' .
|
370 |
<option ' . selected( 'HTML Rewrite', $value, false ) . 'value="HTML Rewrite">HTML Rewrite</option>
|
371 |
<option ' . selected( 'Retina-Images', $value, false ) . 'value="Retina-Images">Retina-Images</option>
|
372 |
<option ' . selected( 'none', $value, false ) . 'value="none">None</option>
|
373 |
+
</select><small><br />' . __( 'In all cases (including "None"), Retina support will be added to the Responsive Images. Check the <a target="_blank" href="https://meowapps.com/wp-retina-2x-methods/" />Retina Methods</a> page if you want to know more about those methods.', 'wp-retina-2x' ) . '</small>';
|
374 |
echo $html;
|
375 |
}
|
376 |
|