Version Description
- Update: Lazysize from 5.1.1 to 5.2.2.
- Update: PHP Simple Dom updated to 1.9.1.
- Info: This is (probably) the last release before a major release in which the whole UI will be re-coded (and everything will be much better and faster). In order to make sure you will be happy with this new release, I made a survey using Google Forms. Please visit it here. Thanks a lot :)
Download this release
Release Info
Developer | TigrouMeow |
Plugin | WP Retina 2x |
Version | 5.6.1 |
Comparing to | |
See all releases |
Code changes from version 5.6.0 to 5.6.1
- common/admin.php +142 -91
- common/img/default.png +0 -0
- common/img/kinsta.png +0 -0
- common/img/media-cleaner.jpg +0 -0
- common/img/media-file-renamer.jpg +0 -0
- common/img/meow-gallery.jpg +0 -0
- common/img/meow-lightbox.jpg +0 -0
- common/img/meowapps.png +0 -0
- common/img/stackpath.png +0 -0
- common/img/wp-retina-2x.jpg +0 -0
- common/img/wplr-sync.jpg +0 -0
- js/lazysizes.min.js +3 -2
- readme.txt +6 -2
- wp-retina-2x.php +22 -2
common/admin.php
CHANGED
@@ -7,7 +7,7 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
7 |
public static $logo = 'data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxIiB2aWV3Qm94PSIwIDAgMTY1IDE2NSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8c3R5bGU+CiAgICAuc3Qye2ZpbGw6IzgwNDYyNX0uc3Qze2ZpbGw6I2ZkYTk2MH0KICA8L3N0eWxlPgogIDxwYXRoIGQ9Ik03MiA3YTc2IDc2IDAgMCAxIDg0IDkxQTc1IDc1IDAgMSAxIDcyIDd6IiBmaWxsPSIjNGE2YjhjIi8+CiAgPHBhdGggZD0iTTQ4IDQ4YzIgNSAyIDEwIDUgMTQgNSA4IDEzIDE3IDIyIDIwbDEtMTBjMS0yIDMtMyA1LTNoMTNjMiAwIDQgMSA1IDNsMyA5IDQtMTBjMi0zIDYtMiA5LTJoMTFjMyAyIDMgNSAzIDhsMiAzN2MwIDMtMSA3LTQgOGgtMTJjLTIgMC0zLTItNS00LTEgMS0yIDMtNCAzLTUgMS05IDEtMTMtMS0zIDItNSAyLTkgMnMtOSAxLTEwLTNjLTItNC0xLTggMC0xMi04LTMtMTUtNy0yMi0xMi03LTctMTUtMTQtMjAtMjMtMy00LTUtOC01LTEzIDEtNCAzLTEwIDYtMTMgNC0zIDEyLTIgMTUgMnoiIGZpbGw9IiMxMDEwMTAiLz4KICA8cGF0aCBjbGFzcz0ic3QyIiBkPSJNNDMgNTFsNCAxMS02IDVoLTZjLTMtNS0zLTExIDAtMTYgMi0yIDYtMyA4IDB6Ii8+CiAgPHBhdGggY2xhc3M9InN0MyIgZD0iTTQ3IDYybDMgNmMwIDMgMCA0LTIgNnMtNCAyLTcgMmwtNi05aDZsNi01eiIvPgogIDxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik01MCA2OGw4IDljLTMgMy01IDYtOSA4bC04LTljMyAwIDUgMCA3LTJzMy0zIDItNnoiLz4KICA8cGF0aCBkPSJNODIgNzRoMTJsNSAxOCAzIDExIDgtMjloMTNsMiA0MmgtOGwtMS0yLTEtMzEtMTAgMzItNyAxLTktMzMtMSAyOS0xIDRoLThsMy00MnoiIGZpbGw9IiNmZmYiLz4KICA8cGF0aCBjbGFzcz0ic3QzIiBkPSJNNTggNzdsNSA1Yy0xIDQtMiA4LTcgOGwtNy01YzQtMiA2LTUgOS04eiIvPgogIDxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik02MyA4Mmw5IDUtNiA5LTEwLTZjNSAwIDYtNCA3LTh6Ii8+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)
|
@@ -52,18 +52,19 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
52 |
}
|
53 |
}
|
54 |
}
|
55 |
-
|
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 |
-
|
|
|
67 |
}
|
68 |
|
69 |
function request_verify_ssl() {
|
@@ -106,19 +107,28 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
106 |
}
|
107 |
$rating_date = get_option( $this->prefix . '_rating_date' );
|
108 |
echo '<div class="notice notice-success" data-rating-date="' . date( 'Y-m-d', $rating_date ) . '">';
|
109 |
-
echo '<p style="font-size: 100%;">
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
echo '<p>
|
111 |
<form method="post" action="" style="float: right;">
|
112 |
<input type="hidden" name="' . $this->prefix . '_never_remind_me" value="true">
|
113 |
-
<input type="submit" name="submit" id="submit" class="button button-red" value="
|
|
|
114 |
</form>
|
115 |
<form method="post" action="" style="float: right; margin-right: 10px;">
|
116 |
<input type="hidden" name="' . $this->prefix . '_remind_me" value="true">
|
117 |
-
<input type="submit" name="submit" id="submit" class="button button-primary" value="
|
|
|
118 |
</form>
|
119 |
<form method="post" action="" style="float: right; margin-right: 10px;">
|
120 |
<input type="hidden" name="' . $this->prefix . '_did_it" value="true">
|
121 |
-
<input type="submit" name="submit" id="submit" class="button button-primary" value="
|
|
|
122 |
</form>
|
123 |
<div style="clear: both;"></div>
|
124 |
</p>
|
@@ -154,11 +164,15 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
154 |
return;
|
155 |
}
|
156 |
echo '<div class="error">';
|
157 |
-
|
|
|
|
|
|
|
158 |
echo '<p>
|
159 |
<form method="post" action="">
|
160 |
<input type="hidden" name="' . $this->prefix . '_reset_sub" value="true">
|
161 |
-
<input type="submit" name="submit" id="submit" class="button" value="
|
|
|
162 |
</form>
|
163 |
</p>
|
164 |
';
|
@@ -200,21 +214,21 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
200 |
// Creates standard menu if it does NOT exist
|
201 |
global $submenu;
|
202 |
if ( !isset( $submenu[ 'meowapps-main-menu' ] ) ) {
|
203 |
-
add_menu_page( 'Meow Apps', '<img style="width: 24px; margin-left: -30px; position: absolute; margin-top: -3px;" src="' . MeowApps_Admin::$logo . '" />Meow Apps', 'manage_options', 'meowapps-main-menu',
|
204 |
array( $this, 'admin_meow_apps' ), '', 82 );
|
205 |
-
add_submenu_page( 'meowapps-main-menu', __( 'Dashboard',
|
206 |
-
__( 'Dashboard',
|
207 |
'meowapps-main-menu', array( $this, 'admin_meow_apps' ) );
|
208 |
}
|
209 |
|
210 |
add_settings_section( 'meowapps_common_settings', null, null, 'meowapps_common_settings-menu' );
|
211 |
-
add_settings_field( 'meowapps_hide_meowapps',
|
212 |
array( $this, 'meowapps_hide_dashboard_callback' ),
|
213 |
'meowapps_common_settings-menu', 'meowapps_common_settings' );
|
214 |
-
add_settings_field( 'meowapps_force_sslverify',
|
215 |
array( $this, 'meowapps_force_sslverify_callback' ),
|
216 |
'meowapps_common_settings-menu', 'meowapps_common_settings' );
|
217 |
-
// add_settings_field( 'meowapps_hide_ads',
|
218 |
// array( $this, 'meowapps_hide_ads_callback' ),
|
219 |
// 'meowapps_common_settings-menu', 'meowapps_common_settings' );
|
220 |
register_setting( 'meowapps_common_settings', 'force_sslverify' );
|
@@ -226,36 +240,42 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
226 |
$value = get_option( 'meowapps_hide_ads', null );
|
227 |
$html = '<input type="checkbox" id="meowapps_hide_ads" name="meowapps_hide_ads" value="1" ' .
|
228 |
checked( 1, get_option( 'meowapps_hide_ads' ), false ) . '/>';
|
229 |
-
|
230 |
-
|
231 |
}
|
232 |
|
233 |
function meowapps_hide_dashboard_callback() {
|
234 |
$value = get_option( 'meowapps_hide_meowapps', null );
|
235 |
$html = '<input type="checkbox" id="meowapps_hide_meowapps" name="meowapps_hide_meowapps" value="1" ' .
|
236 |
checked( 1, get_option( 'meowapps_hide_meowapps' ), false ) . '/>';
|
237 |
-
|
238 |
-
|
239 |
}
|
240 |
|
241 |
function meowapps_force_sslverify_callback() {
|
242 |
$value = get_option( 'force_sslverify', null );
|
243 |
$html = '<input type="checkbox" id="force_sslverify" name="force_sslverify" value="1" ' .
|
244 |
checked( 1, get_option( 'force_sslverify' ), false ) . '/>';
|
245 |
-
|
246 |
-
|
247 |
}
|
248 |
|
249 |
function display_serialkey_box( $url = "https://meowapps.com/" ) {
|
250 |
$html = '<div class="meow-box">';
|
251 |
-
|
252 |
-
|
253 |
-
|
|
|
|
|
254 |
echo $html;
|
255 |
-
$html = apply_filters(
|
256 |
-
|
257 |
-
|
258 |
-
|
|
|
|
|
|
|
|
|
259 |
echo $html;
|
260 |
}
|
261 |
|
@@ -271,7 +291,7 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
271 |
$pluginpath = trailingslashit( plugin_dir_path( __FILE__ ) ) . '../../' . $plugin;
|
272 |
if ( !file_exists( $pluginpath ) ) {
|
273 |
$url = wp_nonce_url( "update.php?action=install-plugin&plugin=$plugin", "install-plugin_$plugin" );
|
274 |
-
return "<a href='$url'><small><span class='' style='float: right;'>install</span></small></a>";
|
275 |
}
|
276 |
}
|
277 |
else {
|
@@ -293,12 +313,12 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
293 |
'activate-plugin_' . $plugin_file );
|
294 |
return '<small><span style="color: black; float: right;">off
|
295 |
(<a style="color: rgba(30,140,190,1); text-decoration: none;" href="' .
|
296 |
-
$url . '">enable</a>)</span></small>';
|
297 |
}
|
298 |
}
|
299 |
|
300 |
function common_url( $file ) {
|
301 |
-
die( "Meow Apps: The function common_url( \$file ) needs to be overriden." );
|
302 |
// Normally, this should be used:
|
303 |
// return plugin_dir_url( __FILE__ ) . ( '\/common\/' . $file );
|
304 |
}
|
@@ -309,8 +329,8 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
309 |
|
310 |
function plugins_loaded() {
|
311 |
if ( isset( $_GET[ 'tool' ] ) && $_GET[ 'tool' ] == 'error_log' ) {
|
312 |
-
|
313 |
-
|
314 |
}
|
315 |
}
|
316 |
|
@@ -318,7 +338,7 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
318 |
|
319 |
echo '<div class="wrap meow-dashboard">';
|
320 |
if ( isset( $_GET['tool'] ) && $_GET['tool'] == 'phpinfo' ) {
|
321 |
-
echo "<a href=\"javascript:history.go(-1)\">< Go back</a><br /><br />";
|
322 |
echo '<div id="phpinfo">';
|
323 |
ob_start();
|
324 |
phpinfo();
|
@@ -329,20 +349,25 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
329 |
echo "</div>";
|
330 |
}
|
331 |
else if ( isset( $_GET['tool'] ) && $_GET['tool'] == 'error_log' ) {
|
332 |
-
$log_msg = '=== MEOW APPS DEBUG (This is not an error) ===';
|
333 |
if ( isset( $_POST['write_logs'] ) ) {
|
334 |
error_log( $log_msg );
|
335 |
}
|
336 |
$errorpath = ini_get( 'error_log' );
|
337 |
-
echo "<a href=\"javascript:history.go(-1)\">< Go back</a><br /><br />";
|
338 |
echo '
|
339 |
<form method="post">
|
340 |
<input type="hidden" name="write_logs" value="true">
|
341 |
-
<input class="button button-primary" type="submit" value="Write in the Error Logs">
|
342 |
</form><br />';
|
343 |
echo '<div id="error_log">';
|
344 |
if ( file_exists( $errorpath ) ) {
|
345 |
-
|
|
|
|
|
|
|
|
|
|
|
346 |
$errors = file_get_contents( $errorpath );
|
347 |
$errors = explode( "\n", $errors );
|
348 |
$errors = array_reverse( $errors );
|
@@ -350,7 +375,7 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
350 |
echo $errors;
|
351 |
}
|
352 |
else {
|
353 |
-
|
354 |
}
|
355 |
echo "</div>";
|
356 |
|
@@ -360,31 +385,30 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
360 |
?>
|
361 |
<?php $this->display_title( 'Meow Apps' ); ?>
|
362 |
<p>
|
363 |
-
<?php _e( 'Meow Apps is run by Jordy Meow, a photographer and software developer living in Japan (and taking <a target="_blank" href="http://offbeatjapan.org">a lot of photos</a>). Meow Apps is a suite of plugins focusing on photography, imaging, optimization and it teams up with the best players in the community (other themes and plugins developers). For more information, please check <a href="http://meowapps.com" target="_blank">Meow Apps</a>.',
|
364 |
?>
|
365 |
</p>
|
366 |
-
|
367 |
-
<h2 style="margin-bottom: 0px; margin-top: 25px;"
|
368 |
<div class="meow-row meow-featured-plugins">
|
369 |
<div class="meow-box meow-col meow-span_1_of_2">
|
370 |
<ul class="">
|
371 |
<li><img src='<?= $this->common_url( 'img/media-cleaner.jpg' ) ?>' />
|
372 |
<a href='https://meowapps.com/plugin/media-cleaner/'><b>Media Cleaner</b></a>
|
373 |
<?php echo $this->check_install( 'media-cleaner' ) ?><br />
|
374 |
-
|
375 |
<li><img src='<?= $this->common_url( 'img/media-file-renamer.jpg' ) ?>' />
|
376 |
<a href='https://meowapps.com/plugin/media-file-renamer/'><b>Media File Renamer</b></a>
|
377 |
-
|
378 |
-
|
379 |
<li><img src='<?= $this->common_url( 'img/default.png' ) ?>' />
|
380 |
<a href='https://meowapps.com/plugin/contact-form-block/'><b>Contact Form Block</b></a>
|
381 |
<?php echo $this->check_install( 'contact-form-block' ) ?><br />
|
382 |
-
A simpler, nicer, prettier contact form
|
383 |
-
|
384 |
-
|
385 |
-
<?php echo $this->check_install( '
|
386 |
-
|
387 |
-
|
388 |
</ul>
|
389 |
</div>
|
390 |
<div class="meow-box meow-col meow-span_1_of_2 ">
|
@@ -392,41 +416,63 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
392 |
<li><img src='<?= $this->common_url( 'img/meow-gallery.jpg' ) ?>' />
|
393 |
<a href='https://meowapps.com/plugin/meow-gallery/'><b>Meow Gallery</b></a>
|
394 |
<?php echo $this->check_install( 'meow-gallery' ) ?><br />
|
395 |
-
Beautiful but lightweight gallery with many layouts. The only one that allows you to uninstall it without losing anything
|
396 |
<li><img src='<?= $this->common_url( 'img/meow-lightbox.jpg' ) ?>' />
|
397 |
<a href='https://meowapps.com/plugin/meow-lightbox/'><b>Meow Lightbox</b></a>
|
398 |
<?php echo $this->check_install( 'meow-lightbox' ) ?><br />
|
399 |
-
|
400 |
<li><img src='<?= $this->common_url( 'img/wplr-sync.jpg' ) ?>' />
|
401 |
<a href='https://meowapps.com/plugin/wplr-sync/'><b>WP/LR Sync</b></a>
|
402 |
<?php echo $this->check_install( 'wplr-sync' ) ?><br />
|
403 |
-
Synchronize your Lightroom to your WordPress. This plugin is loved by
|
|
|
|
|
|
|
|
|
404 |
</ul>
|
405 |
</div>
|
406 |
</div>
|
407 |
|
408 |
-
<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>.',
|
411 |
</div>
|
412 |
|
413 |
-
<div
|
414 |
-
|
415 |
-
<div style=
|
416 |
-
|
417 |
-
<
|
|
|
|
|
|
|
|
|
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
430 |
|
431 |
<script>
|
432 |
(function ($) {
|
@@ -436,7 +482,7 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
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 |
|
@@ -455,7 +501,7 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
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 |
});
|
@@ -472,8 +518,8 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
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 |
|
@@ -483,30 +529,31 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
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: ',
|
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'>
|
496 |
-
SEO Checklist & Optimization</a>,
|
497 |
<a href='https://meowapps.com/clean-optimize-wordpress/' target='_blank'>
|
498 |
-
Clean Up and Optimize</a>,
|
499 |
<a href='https://meowapps.com/optimize-images-cdn/' target='_blank'>
|
500 |
-
Optimize Images</a>,
|
501 |
<a href='https://meowapps.com/best-hosting-services-wordpress/' target='_blank'>
|
502 |
Best Hosting Services</a>.
|
503 |
</p>
|
504 |
</div>
|
505 |
|
506 |
-
<h2 style="margin-bottom: 0px; margin-top: 25px;"
|
507 |
<div class="meow-row">
|
508 |
<div class="meow-box meow-col meow-span_2_of_3">
|
509 |
-
<h3><span class="dashicons dashicons-admin-tools"></span> Common
|
510 |
<div class="inside">
|
511 |
<form method="post" action="options.php">
|
512 |
<?php settings_fields( 'meowapps_common_settings' ); ?>
|
@@ -517,17 +564,17 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
517 |
</div>
|
518 |
|
519 |
<div class="meow-box meow-col meow-span_1_of_3">
|
520 |
-
<h3><span class="dashicons dashicons-admin-tools"></span> Debug
|
521 |
<div class="inside">
|
522 |
<ul>
|
523 |
-
<li><a href="?page=meowapps-main-menu&tool=error_log"
|
524 |
-
<li><a href="?page=meowapps-main-menu&tool=phpinfo"
|
525 |
</ul>
|
526 |
</div>
|
527 |
</div>
|
528 |
|
529 |
<div class="meow-box meow-col meow-span_1_of_3">
|
530 |
-
<h3><span class="dashicons dashicons-admin-tools"></span> Post Types (used by this install)
|
531 |
<div class="inside">
|
532 |
<?php
|
533 |
global $wpdb;
|
@@ -537,7 +584,7 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
537 |
$result = array();
|
538 |
foreach( $types as $type )
|
539 |
array_push( $result, "{$type->type} ({$type->count})" );
|
540 |
-
echo implode(
|
541 |
?>
|
542 |
</div>
|
543 |
</div>
|
@@ -548,8 +595,12 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
548 |
}
|
549 |
|
550 |
function admin_footer_text( $current ) {
|
551 |
-
return
|
552 |
-
|
|
|
|
|
|
|
|
|
553 |
}
|
554 |
|
555 |
// HELPERS
|
7 |
public static $logo = 'data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxIiB2aWV3Qm94PSIwIDAgMTY1IDE2NSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8c3R5bGU+CiAgICAuc3Qye2ZpbGw6IzgwNDYyNX0uc3Qze2ZpbGw6I2ZkYTk2MH0KICA8L3N0eWxlPgogIDxwYXRoIGQ9Ik03MiA3YTc2IDc2IDAgMCAxIDg0IDkxQTc1IDc1IDAgMSAxIDcyIDd6IiBmaWxsPSIjNGE2YjhjIi8+CiAgPHBhdGggZD0iTTQ4IDQ4YzIgNSAyIDEwIDUgMTQgNSA4IDEzIDE3IDIyIDIwbDEtMTBjMS0yIDMtMyA1LTNoMTNjMiAwIDQgMSA1IDNsMyA5IDQtMTBjMi0zIDYtMiA5LTJoMTFjMyAyIDMgNSAzIDhsMiAzN2MwIDMtMSA3LTQgOGgtMTJjLTIgMC0zLTItNS00LTEgMS0yIDMtNCAzLTUgMS05IDEtMTMtMS0zIDItNSAyLTkgMnMtOSAxLTEwLTNjLTItNC0xLTggMC0xMi04LTMtMTUtNy0yMi0xMi03LTctMTUtMTQtMjAtMjMtMy00LTUtOC01LTEzIDEtNCAzLTEwIDYtMTMgNC0zIDEyLTIgMTUgMnoiIGZpbGw9IiMxMDEwMTAiLz4KICA8cGF0aCBjbGFzcz0ic3QyIiBkPSJNNDMgNTFsNCAxMS02IDVoLTZjLTMtNS0zLTExIDAtMTYgMi0yIDYtMyA4IDB6Ii8+CiAgPHBhdGggY2xhc3M9InN0MyIgZD0iTTQ3IDYybDMgNmMwIDMgMCA0LTIgNnMtNCAyLTcgMmwtNi05aDZsNi01eiIvPgogIDxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik01MCA2OGw4IDljLTMgMy01IDYtOSA4bC04LTljMyAwIDUgMCA3LTJzMy0zIDItNnoiLz4KICA8cGF0aCBkPSJNODIgNzRoMTJsNSAxOCAzIDExIDgtMjloMTNsMiA0MmgtOGwtMS0yLTEtMzEtMTAgMzItNyAxLTktMzMtMSAyOS0xIDRoLThsMy00MnoiIGZpbGw9IiNmZmYiLz4KICA8cGF0aCBjbGFzcz0ic3QzIiBkPSJNNTggNzdsNSA1Yy0xIDQtMiA4LTcgOGwtNy01YzQtMiA2LTUgOS04eiIvPgogIDxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik02MyA4Mmw5IDUtNiA5LTEwLTZjNSAwIDYtNCA3LTh6Ii8+CiAgPHBhdGggY2xhc3M9InN0MyIgZD0iTTcyIDg3bDMgMS0xIDExLTgtMyA2LTEweiIvPgo8L3N2Zz4K';
|
8 |
|
9 |
public static $loaded = false;
|
10 |
+
public static $admin_version = "2.6";
|
11 |
|
12 |
public $prefix; // prefix used for actions, filters (mfrh)
|
13 |
public $mainfile; // plugin main file (media-file-renamer.php)
|
52 |
}
|
53 |
}
|
54 |
}
|
55 |
+
|
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.', $this->domain );
|
61 |
}
|
62 |
|
63 |
function wp_ajax_meow_file_check() {
|
64 |
$tmpfile = wp_tempnam();
|
65 |
unlink( $tmpfile );
|
66 |
+
// translators: %s is a filename of an empty temporary file
|
67 |
+
return sprintf( __( 'Created and deleted %s', $this->domain ), $tmpfile );
|
68 |
}
|
69 |
|
70 |
function request_verify_ssl() {
|
107 |
}
|
108 |
$rating_date = get_option( $this->prefix . '_rating_date' );
|
109 |
echo '<div class="notice notice-success" data-rating-date="' . date( 'Y-m-d', $rating_date ) . '">';
|
110 |
+
echo '<p style="font-size: 100%;">';
|
111 |
+
printf(
|
112 |
+
// translators: %1$s is a plugin nicename, %2$s is a short url (slug)
|
113 |
+
__( 'You have been using <b>%1$s</b> for some time now. Thank you! Could you kindly share your opinion with me, along with, maybe, features you would like to see implemented? Then, please <a style="font-weight: bold; color: #b926ff;" target="_blank" href="https://wordpress.org/support/plugin/%2$s/reviews/?rate=5#new-post">write a little review</a>. That will also bring me joy and motivation, and I will get back to you :) <u>In the case you already have written a review</u>, please check again. Many reviews got removed from WordPress recently.', $this->domain ),
|
114 |
+
$this->nice_name_from_file( $this->mainfile ),
|
115 |
+
$this->nice_short_url_from_file( $this->mainfile )
|
116 |
+
);
|
117 |
echo '<p>
|
118 |
<form method="post" action="" style="float: right;">
|
119 |
<input type="hidden" name="' . $this->prefix . '_never_remind_me" value="true">
|
120 |
+
<input type="submit" name="submit" id="submit" class="button button-red" value="'
|
121 |
+
. __( 'Never remind me!', $this->domain ) . '">
|
122 |
</form>
|
123 |
<form method="post" action="" style="float: right; margin-right: 10px;">
|
124 |
<input type="hidden" name="' . $this->prefix . '_remind_me" value="true">
|
125 |
+
<input type="submit" name="submit" id="submit" class="button button-primary" value="'
|
126 |
+
. __( 'Remind me in a few weeks...', $this->domain ) . '">
|
127 |
</form>
|
128 |
<form method="post" action="" style="float: right; margin-right: 10px;">
|
129 |
<input type="hidden" name="' . $this->prefix . '_did_it" value="true">
|
130 |
+
<input type="submit" name="submit" id="submit" class="button button-primary" value="'
|
131 |
+
. __( 'Yes, I did it!', $this->domain ) . '">
|
132 |
</form>
|
133 |
<div style="clear: both;"></div>
|
134 |
</p>
|
164 |
return;
|
165 |
}
|
166 |
echo '<div class="error">';
|
167 |
+
printf(
|
168 |
+
// translators: %s is a plugin nicename
|
169 |
+
__( '<p>It looks like you are using the free version of the plugin (<b>%s</b>) but a license for the Pro version was also found. The Pro version might have been replaced by the Free version during an update (might be caused by a temporarily issue). If it is the case, <b>please download it again</b> from the <a target="_blank" href="https://store.meowapps.com">Meow Store</a>. If you wish to continue using the free version and clear this message, click on this button.', $this->domain ),
|
170 |
+
$this->nice_name_from_file( $this->mainfile ) );
|
171 |
echo '<p>
|
172 |
<form method="post" action="">
|
173 |
<input type="hidden" name="' . $this->prefix . '_reset_sub" value="true">
|
174 |
+
<input type="submit" name="submit" id="submit" class="button" value="'
|
175 |
+
. __( 'Remove the license', $this->domain ) . '">
|
176 |
</form>
|
177 |
</p>
|
178 |
';
|
214 |
// Creates standard menu if it does NOT exist
|
215 |
global $submenu;
|
216 |
if ( !isset( $submenu[ 'meowapps-main-menu' ] ) ) {
|
217 |
+
add_menu_page( 'Meow Apps', '<img alt="Meow Apps" style="width: 24px; margin-left: -30px; position: absolute; margin-top: -3px;" src="' . MeowApps_Admin::$logo . '" />Meow Apps', 'manage_options', 'meowapps-main-menu',
|
218 |
array( $this, 'admin_meow_apps' ), '', 82 );
|
219 |
+
add_submenu_page( 'meowapps-main-menu', __( 'Dashboard', $this->domain ),
|
220 |
+
__( 'Dashboard', $this->domain ), 'manage_options',
|
221 |
'meowapps-main-menu', array( $this, 'admin_meow_apps' ) );
|
222 |
}
|
223 |
|
224 |
add_settings_section( 'meowapps_common_settings', null, null, 'meowapps_common_settings-menu' );
|
225 |
+
add_settings_field( 'meowapps_hide_meowapps', __( 'Main Menu', $this->domain ),
|
226 |
array( $this, 'meowapps_hide_dashboard_callback' ),
|
227 |
'meowapps_common_settings-menu', 'meowapps_common_settings' );
|
228 |
+
add_settings_field( 'meowapps_force_sslverify', __( 'SSL Verify', $this->domain ),
|
229 |
array( $this, 'meowapps_force_sslverify_callback' ),
|
230 |
'meowapps_common_settings-menu', 'meowapps_common_settings' );
|
231 |
+
// add_settings_field( 'meowapps_hide_ads', __( 'Ads', $this->domain ),
|
232 |
// array( $this, 'meowapps_hide_ads_callback' ),
|
233 |
// 'meowapps_common_settings-menu', 'meowapps_common_settings' );
|
234 |
register_setting( 'meowapps_common_settings', 'force_sslverify' );
|
240 |
$value = get_option( 'meowapps_hide_ads', null );
|
241 |
$html = '<input type="checkbox" id="meowapps_hide_ads" name="meowapps_hide_ads" value="1" ' .
|
242 |
checked( 1, get_option( 'meowapps_hide_ads' ), false ) . '/>';
|
243 |
+
$html .= __( '<label>Hide</label><br /><small>Doesn\'t display the ads.</small>', $this->domain );
|
244 |
+
echo $html;
|
245 |
}
|
246 |
|
247 |
function meowapps_hide_dashboard_callback() {
|
248 |
$value = get_option( 'meowapps_hide_meowapps', null );
|
249 |
$html = '<input type="checkbox" id="meowapps_hide_meowapps" name="meowapps_hide_meowapps" value="1" ' .
|
250 |
checked( 1, get_option( 'meowapps_hide_meowapps' ), false ) . '/>';
|
251 |
+
$html .= __( '<label>Hide <b>Meow Apps</b> Menu</label><br /><small>Hide Meow Apps menu and all its components, for a cleaner admin. This option will be reset if a new Meow Apps plugin is installed. <b>Once activated, an option will be added in your General settings to display it again.</b></small>', $this->domain );
|
252 |
+
echo $html;
|
253 |
}
|
254 |
|
255 |
function meowapps_force_sslverify_callback() {
|
256 |
$value = get_option( 'force_sslverify', null );
|
257 |
$html = '<input type="checkbox" id="force_sslverify" name="force_sslverify" value="1" ' .
|
258 |
checked( 1, get_option( 'force_sslverify' ), false ) . '/>';
|
259 |
+
$html .= __( '<label>Force</label><br /><small>Updates and licenses checks are usually made without checking SSL certificates and it is actually fine this way. But if you are intransigent when it comes to SSL matters, this option will force it.</small>', $this->domain );
|
260 |
+
echo $html;
|
261 |
}
|
262 |
|
263 |
function display_serialkey_box( $url = "https://meowapps.com/" ) {
|
264 |
$html = '<div class="meow-box">';
|
265 |
+
$html .= '<h3 class="' . ( $this->is_registered( $this->prefix ) ? 'meow-bk-blue' : 'meow-bk-red' ) . '">'
|
266 |
+
. __( 'Pro Version', $this->domain ) . ' '
|
267 |
+
. ( $this->is_registered( $this->prefix ) ? __( '(enabled)', $this->domain ) : __( '(disabled)', $this->domain ) )
|
268 |
+
. '</h3>';
|
269 |
+
$html .= '<div class="inside">';
|
270 |
echo $html;
|
271 |
+
$html = apply_filters(
|
272 |
+
$this->prefix . '_meowapps_license_input',
|
273 |
+
sprintf(
|
274 |
+
// translators: %1$s is a url attribute, %2$s is a url visible for user
|
275 |
+
__( 'More information about the Pro version here: <a target="_blank" href="%1$s">%2$s</a>. If you actually bought the Pro version already, please remove the current plugin and download the Pro version from your account at the <a target="_blank" href="https://store.meowapps.com/account/downloads/">Meow Apps Store</a>.', $this->domain ), $url, $url ),
|
276 |
+
$url );
|
277 |
+
$html .= '</div>';
|
278 |
+
$html .= '</div>';
|
279 |
echo $html;
|
280 |
}
|
281 |
|
291 |
$pluginpath = trailingslashit( plugin_dir_path( __FILE__ ) ) . '../../' . $plugin;
|
292 |
if ( !file_exists( $pluginpath ) ) {
|
293 |
$url = wp_nonce_url( "update.php?action=install-plugin&plugin=$plugin", "install-plugin_$plugin" );
|
294 |
+
return "<a href='$url'><small><span class='' style='float: right;'>" . __( 'install', $this->domain ) . "</span></small></a>";
|
295 |
}
|
296 |
}
|
297 |
else {
|
313 |
'activate-plugin_' . $plugin_file );
|
314 |
return '<small><span style="color: black; float: right;">off
|
315 |
(<a style="color: rgba(30,140,190,1); text-decoration: none;" href="' .
|
316 |
+
$url . '">' . __( 'enable', $this->domain ) . '</a>)</span></small>';
|
317 |
}
|
318 |
}
|
319 |
|
320 |
function common_url( $file ) {
|
321 |
+
die( __( "Meow Apps: The function common_url( \$file ) needs to be overriden.", $this->domain ) );
|
322 |
// Normally, this should be used:
|
323 |
// return plugin_dir_url( __FILE__ ) . ( '\/common\/' . $file );
|
324 |
}
|
329 |
|
330 |
function plugins_loaded() {
|
331 |
if ( isset( $_GET[ 'tool' ] ) && $_GET[ 'tool' ] == 'error_log' ) {
|
332 |
+
$sec = "5";
|
333 |
+
header( "Refresh: $sec;" );
|
334 |
}
|
335 |
}
|
336 |
|
338 |
|
339 |
echo '<div class="wrap meow-dashboard">';
|
340 |
if ( isset( $_GET['tool'] ) && $_GET['tool'] == 'phpinfo' ) {
|
341 |
+
echo "<a href=\"javascript:history.go(-1)\">< ". __( 'Go back', $this->domain ) . "</a><br /><br />";
|
342 |
echo '<div id="phpinfo">';
|
343 |
ob_start();
|
344 |
phpinfo();
|
349 |
echo "</div>";
|
350 |
}
|
351 |
else if ( isset( $_GET['tool'] ) && $_GET['tool'] == 'error_log' ) {
|
352 |
+
$log_msg = __( '=== MEOW APPS DEBUG (This is not an error) ===', $this->domain );
|
353 |
if ( isset( $_POST['write_logs'] ) ) {
|
354 |
error_log( $log_msg );
|
355 |
}
|
356 |
$errorpath = ini_get( 'error_log' );
|
357 |
+
echo "<a href=\"javascript:history.go(-1)\">< ". __( 'Go back', $this->domain ) . "</a><br /><br />";
|
358 |
echo '
|
359 |
<form method="post">
|
360 |
<input type="hidden" name="write_logs" value="true">
|
361 |
+
<input class="button button-primary" type="submit" value=" ' . __( 'Write in the Error Logs', $this->domain ) . '">
|
362 |
</form><br />';
|
363 |
echo '<div id="error_log">';
|
364 |
if ( file_exists( $errorpath ) ) {
|
365 |
+
printf(
|
366 |
+
// translators: %s is a preformatted timestamp
|
367 |
+
__( "Now (auto-reload every 5 seconds): [%s UTC]", $this->domain ),
|
368 |
+
date( "d-M-Y H:i:s", time() )
|
369 |
+
);
|
370 |
+
echo "<br /><br /><h2 style='margin: 0px;'>" . __( 'Errors (order by latest)', $this->domain ) . "</h2>";
|
371 |
$errors = file_get_contents( $errorpath );
|
372 |
$errors = explode( "\n", $errors );
|
373 |
$errors = array_reverse( $errors );
|
375 |
echo $errors;
|
376 |
}
|
377 |
else {
|
378 |
+
_e( "The PHP Error Logs cannot be found. Please ask your hosting service for it.", $this->domain );
|
379 |
}
|
380 |
echo "</div>";
|
381 |
|
385 |
?>
|
386 |
<?php $this->display_title( 'Meow Apps' ); ?>
|
387 |
<p>
|
388 |
+
<?php _e( 'Meow Apps is run by Jordy Meow, a photographer and software developer living in Japan (and taking <a target="_blank" href="http://offbeatjapan.org">a lot of photos</a>). Meow Apps is a suite of plugins focusing on photography, imaging, optimization and it teams up with the best players in the community (other themes and plugins developers). For more information, please check <a href="http://meowapps.com" target="_blank">Meow Apps</a>.', $this->domain )
|
389 |
?>
|
390 |
</p>
|
391 |
+
|
392 |
+
<h2 style="margin-bottom: 0px; margin-top: 25px;"><?php _e( 'Recommended Meow Apps Plugins', $this->domain ); ?></h2>
|
393 |
<div class="meow-row meow-featured-plugins">
|
394 |
<div class="meow-box meow-col meow-span_1_of_2">
|
395 |
<ul class="">
|
396 |
<li><img src='<?= $this->common_url( 'img/media-cleaner.jpg' ) ?>' />
|
397 |
<a href='https://meowapps.com/plugin/media-cleaner/'><b>Media Cleaner</b></a>
|
398 |
<?php echo $this->check_install( 'media-cleaner' ) ?><br />
|
399 |
+
<?php _e( 'Very complex plugin which analyzes your WordPress deeply to find out which files are in use, or not. Then you can trash them, before deleting them permanently.', $this->domain ); ?></li>
|
400 |
<li><img src='<?= $this->common_url( 'img/media-file-renamer.jpg' ) ?>' />
|
401 |
<a href='https://meowapps.com/plugin/media-file-renamer/'><b>Media File Renamer</b></a>
|
402 |
+
<?php echo $this->check_install( 'media-file-renamer' ) ?><br />
|
403 |
+
<?php _e( 'The Renamer will help you in getting nicer filenames, a better SEO and well-organized files. Extremely popular.', $this->domain ); ?></li>
|
404 |
<li><img src='<?= $this->common_url( 'img/default.png' ) ?>' />
|
405 |
<a href='https://meowapps.com/plugin/contact-form-block/'><b>Contact Form Block</b></a>
|
406 |
<?php echo $this->check_install( 'contact-form-block' ) ?><br />
|
407 |
+
<?php _e( 'A simpler, nicer, prettier contact form. If you simply want your visitors to get in touch with you, this very light plugin will make your life easier.', $this->domain ); ?></li>
|
408 |
+
<li><img src='<?= $this->common_url( 'img/default.png' ) ?>' />
|
409 |
+
<a href='https://meowapps.com/plugin/meow-analytics/'><b>Meow Analytics</b></a>
|
410 |
+
<?php echo $this->check_install( 'meow-analytics' ) ?><br />
|
411 |
+
<?php _e( 'Tired of those fat plugins which are messing-up with your install? Switch to Meow Analytics, it\'s extremely light and features a cute dashboard.', $this->domain ); ?></li>
|
|
|
412 |
</ul>
|
413 |
</div>
|
414 |
<div class="meow-box meow-col meow-span_1_of_2 ">
|
416 |
<li><img src='<?= $this->common_url( 'img/meow-gallery.jpg' ) ?>' />
|
417 |
<a href='https://meowapps.com/plugin/meow-gallery/'><b>Meow Gallery</b></a>
|
418 |
<?php echo $this->check_install( 'meow-gallery' ) ?><br />
|
419 |
+
<?php _e( 'Beautiful but lightweight gallery with many layouts. The only one that allows you to uninstall it without losing anything.', $this->domain ); ?></li>
|
420 |
<li><img src='<?= $this->common_url( 'img/meow-lightbox.jpg' ) ?>' />
|
421 |
<a href='https://meowapps.com/plugin/meow-lightbox/'><b>Meow Lightbox</b></a>
|
422 |
<?php echo $this->check_install( 'meow-lightbox' ) ?><br />
|
423 |
+
<?php _e( 'A very smooth and fast Lightbox which will also display your EXIF data (camera, lens, etc). Try it, you will love it.', $this->domain ); ?></li>
|
424 |
<li><img src='<?= $this->common_url( 'img/wplr-sync.jpg' ) ?>' />
|
425 |
<a href='https://meowapps.com/plugin/wplr-sync/'><b>WP/LR Sync</b></a>
|
426 |
<?php echo $this->check_install( 'wplr-sync' ) ?><br />
|
427 |
+
<?php _e( 'Synchronize your Lightroom to your WordPress. This plugin is loved by a huge community of photographers.', $this->domain ); ?></li>
|
428 |
+
<li><img src='<?= $this->common_url( 'img/wp-retina-2x.jpg' ) ?>' />
|
429 |
+
<a href='https://meowapps.com/plugin/wp-retina-2x/'><b>WP Retina 2x</b></a>
|
430 |
+
<?php echo $this->check_install( 'wp-retina-2x' ) ?><br />
|
431 |
+
<?php _e( 'Here is the very famous plugin that adds Retina support to any website.', $this->domain ); ?></li>
|
432 |
</ul>
|
433 |
</div>
|
434 |
</div>
|
435 |
|
436 |
+
<h2><?php _e( 'WordPress Performance', $this->domain ); ?></h2>
|
437 |
<div style="background: white; padding: 5px 15px 5px 15px; box-shadow: 2px 2px 1px rgba(0,0,0,.02); margin-bottom: 15px;">
|
438 |
+
<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>.', $this->domain ); ?></p>
|
439 |
</div>
|
440 |
|
441 |
+
<div>
|
442 |
+
|
443 |
+
<div style="float: left; margin-right: 10px; text-align: center; padding: 10px; background: white; width: 200px; border: 1px solid #e2e2e2;">
|
444 |
+
<div style='font-size: 14px; line-height: 14px; margin-bottom: 20px;'><?php _e( 'Empty Request Time', $this->domain ); ?></div>
|
445 |
+
<div style='font-size: 32px; line-height: 32px; margin-bottom: 10px;' id='meow-perf-load-average'><?php _e( 'N/A', $this->domain ); ?></div>
|
446 |
+
<div style='font-size: 12px; line-height: 12px; margin-bottom: 20px;'><?php _e( 'Based on', $this->domain ); ?>
|
447 |
+
<span id='meow-perf-load-count'>0</span> <?php _e( 'request(s)', $this->domain ); ?>
|
448 |
+
</div>
|
449 |
+
<input type='submit' style='text-align: center; width: 100%;' id="meow-perf-reset" value="Reset" class="button button-primary">
|
450 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
451 |
|
452 |
+
<div style="float: left; margin-right: 10px; text-align: center; padding: 10px; background: white; width: 200px; border: 1px solid #e2e2e2;">
|
453 |
+
<div style='font-size: 14px; line-height: 14px; margin-bottom: 20px;'><?php _e( 'File Operation Time', $this->domain ); ?></div>
|
454 |
+
<div style='font-size: 32px; line-height: 32px; margin-bottom: 10px;' id='meow-file-check-time'><?php _e( 'N/A', $this->domain ); ?></div>
|
455 |
+
<div style='font-size: 12px; line-height: 12px; margin-bottom: 20px;'><?php _e( 'Create temporary file and delete it.', $this->domain ); ?></div>
|
456 |
+
<input type='submit' style='text-align: center; width: 100%;' id="meow-file-check-start" value="<?php _e( 'Check', $this->domain ); ?>" class="button button-primary">
|
457 |
+
</div>
|
458 |
+
|
459 |
+
<div style="float: left; margin-right: 10px; text-align: center; padding: 10px; background: white; width: 200px; border: 1px solid #e2e2e2;">
|
460 |
+
<a target='_blank' href='https://kinsta.com/?kaid=MFROFDOOINML'>
|
461 |
+
<img style='height: 116px;' src='<?= $this->common_url( 'img/kinsta.png' ) ?>'>
|
462 |
+
<div>Meow's 2020 Favorite Hosting</div>
|
463 |
+
</a>
|
464 |
+
</div>
|
465 |
+
|
466 |
+
<div style="float: left; margin-right: 10px; text-align: center; padding: 10px; background: white; width: 200px; border: 1px solid #e2e2e2;">
|
467 |
+
<a target='_blank' href='https://tracking.maxcdn.com/rPK13'>
|
468 |
+
<img style='height: 116px;' src='<?= $this->common_url( 'img/stackpath.png' ) ?>'>
|
469 |
+
<div>Meow's 2020 Favorite CDN</div>
|
470 |
+
</a>
|
471 |
+
</div>
|
472 |
+
|
473 |
+
<div style="clear: both;"></div>
|
474 |
+
|
475 |
+
</div>
|
476 |
|
477 |
<script>
|
478 |
(function ($) {
|
482 |
$('#meow-perf-reset').on('click', function () {
|
483 |
calls = 0;
|
484 |
times = [];
|
485 |
+
$('#meow-perf-load-average').text('<?php _e( "N/A", $this->domain ); ?>');
|
486 |
$('#meow-perf-load-count').text('0');
|
487 |
});
|
488 |
|
501 |
times.push(time);
|
502 |
var sum = times.reduce(function(a, b) { return a + b; });
|
503 |
var avg = Math.ceil(sum / times.length);
|
504 |
+
$('#meow-perf-load-average').text(avg + ' <?php _e( "ms", $this->domain ); ?>');
|
505 |
$('#meow-perf-load-count').text(calls);
|
506 |
setTimeout(perfLoad, 5000);
|
507 |
});
|
518 |
}).done(function (response) {
|
519 |
var end = new Date().getTime();
|
520 |
var time = end - start;
|
521 |
+
$('#meow-file-check-time').text(time + ' <?php _e( "ms", $this->domain ); ?>');
|
522 |
+
$('#meow-file-check-start').text('<?php _e( "Check", $this->domain ); ?>');
|
523 |
});
|
524 |
};
|
525 |
|
529 |
});
|
530 |
|
531 |
setTimeout(perfLoad, 1500);
|
532 |
+
|
533 |
})(jQuery);
|
534 |
</script>
|
535 |
|
536 |
+
<h2><?php _e( 'WordPress Recommendations', $this->domain ); ?></h2>
|
537 |
<div style="background: white; padding: 5px 15px 5px 15px; box-shadow: 2px 2px 1px rgba(0,0,0,.02); margin-top: 15px;">
|
538 |
<p>
|
539 |
+
<?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: ', $this->domain )?>
|
540 |
<a href='https://meowapps.com/debugging-wordpress/' target='_blank'>
|
541 |
+
How To Debug</a>,
|
542 |
<a href='https://meowapps.com/seo-optimization/' target='_blank'>
|
543 |
+
SEO Checklist & Optimization</a>,
|
544 |
<a href='https://meowapps.com/clean-optimize-wordpress/' target='_blank'>
|
545 |
+
Clean Up and Optimize</a>,
|
546 |
<a href='https://meowapps.com/optimize-images-cdn/' target='_blank'>
|
547 |
+
Optimize Images</a>,
|
548 |
<a href='https://meowapps.com/best-hosting-services-wordpress/' target='_blank'>
|
549 |
Best Hosting Services</a>.
|
550 |
</p>
|
551 |
</div>
|
552 |
|
553 |
+
<h2 style="margin-bottom: 0px; margin-top: 25px;"><?php _e( 'Common Options & Tools', $this->domain ); ?></h2>
|
554 |
<div class="meow-row">
|
555 |
<div class="meow-box meow-col meow-span_2_of_3">
|
556 |
+
<h3><span class="dashicons dashicons-admin-tools"></span> <?php _e( 'Common', $this->domain ); ?></h3>
|
557 |
<div class="inside">
|
558 |
<form method="post" action="options.php">
|
559 |
<?php settings_fields( 'meowapps_common_settings' ); ?>
|
564 |
</div>
|
565 |
|
566 |
<div class="meow-box meow-col meow-span_1_of_3">
|
567 |
+
<h3><span class="dashicons dashicons-admin-tools"></span> <?php _e( 'Debug', $this->domain ); ?></h3>
|
568 |
<div class="inside">
|
569 |
<ul>
|
570 |
+
<li><a href="?page=meowapps-main-menu&tool=error_log"><?php _e( 'Display Error Log', $this->domain ); ?></a></li>
|
571 |
+
<li><a href="?page=meowapps-main-menu&tool=phpinfo"><?php _e( 'Display PHP Info', $this->domain ); ?></a></li>
|
572 |
</ul>
|
573 |
</div>
|
574 |
</div>
|
575 |
|
576 |
<div class="meow-box meow-col meow-span_1_of_3">
|
577 |
+
<h3><span class="dashicons dashicons-admin-tools"></span> <?php _e( 'Post Types (used by this install)', $this->domain ); ?></h3>
|
578 |
<div class="inside">
|
579 |
<?php
|
580 |
global $wpdb;
|
584 |
$result = array();
|
585 |
foreach( $types as $type )
|
586 |
array_push( $result, "{$type->type} ({$type->count})" );
|
587 |
+
echo implode( ', ', $result );
|
588 |
?>
|
589 |
</div>
|
590 |
</div>
|
595 |
}
|
596 |
|
597 |
function admin_footer_text( $current ) {
|
598 |
+
return sprintf(
|
599 |
+
// translators: %1$s is the version of the interface; %2$s is a file path.
|
600 |
+
__( 'Thanks for using <a href="https://meowapps.com">Meow Apps</a>! This is the Meow Admin %1$s <br /><i>Loaded from %2$s </i>', $this->domain ),
|
601 |
+
MeowApps_Admin::$admin_version,
|
602 |
+
__FILE__
|
603 |
+
);
|
604 |
}
|
605 |
|
606 |
// HELPERS
|
common/img/default.png
CHANGED
Binary file
|
common/img/kinsta.png
ADDED
Binary file
|
common/img/media-cleaner.jpg
CHANGED
Binary file
|
common/img/media-file-renamer.jpg
CHANGED
Binary file
|
common/img/meow-gallery.jpg
CHANGED
Binary file
|
common/img/meow-lightbox.jpg
CHANGED
Binary file
|
common/img/meowapps.png
CHANGED
Binary file
|
common/img/stackpath.png
ADDED
Binary file
|
common/img/wp-retina-2x.jpg
CHANGED
Binary file
|
common/img/wplr-sync.jpg
CHANGED
Binary file
|
js/lazysizes.min.js
CHANGED
@@ -1,2 +1,3 @@
|
|
1 |
-
/*! lazysizes - v5.
|
2 |
-
|
|
1 |
+
/*! lazysizes - v5.2.2 */
|
2 |
+
|
3 |
+
!function(e){var t=function(u,D,f){"use strict";var k,H;if(function(){var e;var t={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:true,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:true,ricTimeout:0,throttleDelay:125};H=u.lazySizesConfig||u.lazysizesConfig||{};for(e in t){if(!(e in H)){H[e]=t[e]}}}(),!D||!D.getElementsByClassName){return{init:function(){},cfg:H,noSupport:true}}var O=D.documentElement,a=u.HTMLPictureElement,P="addEventListener",$="getAttribute",q=u[P].bind(u),I=u.setTimeout,U=u.requestAnimationFrame||I,l=u.requestIdleCallback,j=/^picture$/i,r=["load","error","lazyincluded","_lazyloaded"],i={},G=Array.prototype.forEach,J=function(e,t){if(!i[t]){i[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")}return i[t].test(e[$]("class")||"")&&i[t]},K=function(e,t){if(!J(e,t)){e.setAttribute("class",(e[$]("class")||"").trim()+" "+t)}},Q=function(e,t){var i;if(i=J(e,t)){e.setAttribute("class",(e[$]("class")||"").replace(i," "))}},V=function(t,i,e){var a=e?P:"removeEventListener";if(e){V(t,i)}r.forEach(function(e){t[a](e,i)})},X=function(e,t,i,a,r){var n=D.createEvent("Event");if(!i){i={}}i.instance=k;n.initEvent(t,!a,!r);n.detail=i;e.dispatchEvent(n);return n},Y=function(e,t){var i;if(!a&&(i=u.picturefill||H.pf)){if(t&&t.src&&!e[$]("srcset")){e.setAttribute("srcset",t.src)}i({reevaluate:true,elements:[e]})}else if(t&&t.src){e.src=t.src}},Z=function(e,t){return(getComputedStyle(e,null)||{})[t]},s=function(e,t,i){i=i||e.offsetWidth;while(i<H.minSize&&t&&!e._lazysizesWidth){i=t.offsetWidth;t=t.parentNode}return i},ee=function(){var i,a;var t=[];var r=[];var n=t;var s=function(){var e=n;n=t.length?r:t;i=true;a=false;while(e.length){e.shift()()}i=false};var e=function(e,t){if(i&&!t){e.apply(this,arguments)}else{n.push(e);if(!a){a=true;(D.hidden?I:U)(s)}}};e._lsFlush=s;return e}(),te=function(i,e){return e?function(){ee(i)}:function(){var e=this;var t=arguments;ee(function(){i.apply(e,t)})}},ie=function(e){var i;var a=0;var r=H.throttleDelay;var n=H.ricTimeout;var t=function(){i=false;a=f.now();e()};var s=l&&n>49?function(){l(t,{timeout:n});if(n!==H.ricTimeout){n=H.ricTimeout}}:te(function(){I(t)},true);return function(e){var t;if(e=e===true){n=33}if(i){return}i=true;t=r-(f.now()-a);if(t<0){t=0}if(e||t<9){s()}else{I(s,t)}}},ae=function(e){var t,i;var a=99;var r=function(){t=null;e()};var n=function(){var e=f.now()-i;if(e<a){I(n,a-e)}else{(l||r)(r)}};return function(){i=f.now();if(!t){t=I(n,a)}}},e=function(){var v,m,c,h,e;var y,z,g,p,C,b,A;var n=/^img$/i;var d=/^iframe$/i;var E="onscroll"in u&&!/(gle|ing)bot/.test(navigator.userAgent);var _=0;var w=0;var N=0;var M=-1;var x=function(e){N--;if(!e||N<0||!e.target){N=0}};var W=function(e){if(A==null){A=Z(D.body,"visibility")=="hidden"}return A||!(Z(e.parentNode,"visibility")=="hidden"&&Z(e,"visibility")=="hidden")};var S=function(e,t){var i;var a=e;var r=W(e);g-=t;b+=t;p-=t;C+=t;while(r&&(a=a.offsetParent)&&a!=D.body&&a!=O){r=(Z(a,"opacity")||1)>0;if(r&&Z(a,"overflow")!="visible"){i=a.getBoundingClientRect();r=C>i.left&&p<i.right&&b>i.top-1&&g<i.bottom+1}}return r};var t=function(){var e,t,i,a,r,n,s,l,o,u,f,c;var d=k.elements;if((h=H.loadMode)&&N<8&&(e=d.length)){t=0;M++;for(;t<e;t++){if(!d[t]||d[t]._lazyRace){continue}if(!E||k.prematureUnveil&&k.prematureUnveil(d[t])){R(d[t]);continue}if(!(l=d[t][$]("data-expand"))||!(n=l*1)){n=w}if(!u){u=!H.expand||H.expand<1?O.clientHeight>500&&O.clientWidth>500?500:370:H.expand;k._defEx=u;f=u*H.expFactor;c=H.hFac;A=null;if(w<f&&N<1&&M>2&&h>2&&!D.hidden){w=f;M=0}else if(h>1&&M>1&&N<6){w=u}else{w=_}}if(o!==n){y=innerWidth+n*c;z=innerHeight+n;s=n*-1;o=n}i=d[t].getBoundingClientRect();if((b=i.bottom)>=s&&(g=i.top)<=z&&(C=i.right)>=s*c&&(p=i.left)<=y&&(b||C||p||g)&&(H.loadHidden||W(d[t]))&&(m&&N<3&&!l&&(h<3||M<4)||S(d[t],n))){R(d[t]);r=true;if(N>9){break}}else if(!r&&m&&!a&&N<4&&M<4&&h>2&&(v[0]||H.preloadAfterLoad)&&(v[0]||!l&&(b||C||p||g||d[t][$](H.sizesAttr)!="auto"))){a=v[0]||d[t]}}if(a&&!r){R(a)}}};var i=ie(t);var B=function(e){var t=e.target;if(t._lazyCache){delete t._lazyCache;return}x(e);K(t,H.loadedClass);Q(t,H.loadingClass);V(t,L);X(t,"lazyloaded")};var a=te(B);var L=function(e){a({target:e.target})};var T=function(t,i){try{t.contentWindow.location.replace(i)}catch(e){t.src=i}};var F=function(e){var t;var i=e[$](H.srcsetAttr);if(t=H.customMedia[e[$]("data-media")||e[$]("media")]){e.setAttribute("media",t)}if(i){e.setAttribute("srcset",i)}};var s=te(function(t,e,i,a,r){var n,s,l,o,u,f;if(!(u=X(t,"lazybeforeunveil",e)).defaultPrevented){if(a){if(i){K(t,H.autosizesClass)}else{t.setAttribute("sizes",a)}}s=t[$](H.srcsetAttr);n=t[$](H.srcAttr);if(r){l=t.parentNode;o=l&&j.test(l.nodeName||"")}f=e.firesLoad||"src"in t&&(s||n||o);u={target:t};K(t,H.loadingClass);if(f){clearTimeout(c);c=I(x,2500);V(t,L,true)}if(o){G.call(l.getElementsByTagName("source"),F)}if(s){t.setAttribute("srcset",s)}else if(n&&!o){if(d.test(t.nodeName)){T(t,n)}else{t.src=n}}if(r&&(s||o)){Y(t,{src:n})}}if(t._lazyRace){delete t._lazyRace}Q(t,H.lazyClass);ee(function(){var e=t.complete&&t.naturalWidth>1;if(!f||e){if(e){K(t,"ls-is-cached")}B(u);t._lazyCache=true;I(function(){if("_lazyCache"in t){delete t._lazyCache}},9)}if(t.loading=="lazy"){N--}},true)});var R=function(e){if(e._lazyRace){return}var t;var i=n.test(e.nodeName);var a=i&&(e[$](H.sizesAttr)||e[$]("sizes"));var r=a=="auto";if((r||!m)&&i&&(e[$]("src")||e.srcset)&&!e.complete&&!J(e,H.errorClass)&&J(e,H.lazyClass)){return}t=X(e,"lazyunveilread").detail;if(r){re.updateElem(e,true,e.offsetWidth)}e._lazyRace=true;N++;s(e,t,r,a,i)};var r=ae(function(){H.loadMode=3;i()});var l=function(){if(H.loadMode==3){H.loadMode=2}r()};var o=function(){if(m){return}if(f.now()-e<999){I(o,999);return}m=true;H.loadMode=3;i();q("scroll",l,true)};return{_:function(){e=f.now();k.elements=D.getElementsByClassName(H.lazyClass);v=D.getElementsByClassName(H.lazyClass+" "+H.preloadClass);q("scroll",i,true);q("resize",i,true);q("pageshow",function(e){if(e.persisted){var t=D.querySelectorAll("."+H.loadingClass);if(t.length&&t.forEach){U(function(){t.forEach(function(e){if(e.complete){R(e)}})})}}});if(u.MutationObserver){new MutationObserver(i).observe(O,{childList:true,subtree:true,attributes:true})}else{O[P]("DOMNodeInserted",i,true);O[P]("DOMAttrModified",i,true);setInterval(i,999)}q("hashchange",i,true);["focus","mouseover","click","load","transitionend","animationend"].forEach(function(e){D[P](e,i,true)});if(/d$|^c/.test(D.readyState)){o()}else{q("load",o);D[P]("DOMContentLoaded",i);I(o,2e4)}if(k.elements.length){t();ee._lsFlush()}else{i()}},checkElems:i,unveil:R,_aLSL:l}}(),re=function(){var i;var n=te(function(e,t,i,a){var r,n,s;e._lazysizesWidth=a;a+="px";e.setAttribute("sizes",a);if(j.test(t.nodeName||"")){r=t.getElementsByTagName("source");for(n=0,s=r.length;n<s;n++){r[n].setAttribute("sizes",a)}}if(!i.detail.dataAttr){Y(e,i.detail)}});var a=function(e,t,i){var a;var r=e.parentNode;if(r){i=s(e,r,i);a=X(e,"lazybeforesizes",{width:i,dataAttr:!!t});if(!a.defaultPrevented){i=a.detail.width;if(i&&i!==e._lazysizesWidth){n(e,r,a,i)}}}};var e=function(){var e;var t=i.length;if(t){e=0;for(;e<t;e++){a(i[e])}}};var t=ae(e);return{_:function(){i=D.getElementsByClassName(H.autosizesClass);q("resize",t)},checkElems:t,updateElem:a}}(),t=function(){if(!t.i&&D.getElementsByClassName){t.i=true;re._();e._()}};return I(function(){H.init&&t()}),k={cfg:H,autoSizer:re,loader:e,init:t,uP:Y,aC:K,rC:Q,hC:J,fire:X,gW:s,rAF:ee}}(e,e.document,Date);e.lazySizes=t,"object"==typeof module&&module.exports&&(module.exports=t)}("undefined"!=typeof window?window:{});
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: https://commerce.coinbase.com/checkout/d047546a-77a8-41c8-9ea9-4a95
|
|
5 |
Requires at least: 4.4
|
6 |
Tested up to: 5.3
|
7 |
Requires PHP: 7.0
|
8 |
-
Stable tag: 5.6.
|
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,9 +39,13 @@ The plugin cannot inject CSS to handles the images added through CSS, that's bot
|
|
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.
|
5 |
Requires at least: 4.4
|
6 |
Tested up to: 5.3
|
7 |
Requires PHP: 7.0
|
8 |
+
Stable tag: 5.6.1
|
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.1 =
|
43 |
+
* Update: Lazysize from 5.1.1 to 5.2.2.
|
44 |
+
* Update: PHP Simple Dom updated to 1.9.1.
|
45 |
+
* Info: This is (probably) the last release before a major release in which the whole UI will be re-coded (and everything will be much better and faster). In order to make sure you will be happy with this new release, I made a survey using Google Forms. Please visit it [here](https://forms.gle/wv2tgaEYTKTcDZBA6). Thanks a lot :)
|
46 |
+
|
47 |
= 5.6.0 =
|
48 |
* Add: Option to remove the image size threshold (which is set to 2560 since WordPress 5.3).
|
|
|
49 |
|
50 |
= 5.5.7 =
|
51 |
* Fix: Background CSS wasn't working properly in a few cases.
|
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.6.
|
7 |
Author: Jordy Meow
|
8 |
Author URI: https://meowapps.com
|
9 |
Text Domain: wp-retina-2x
|
@@ -26,10 +26,30 @@ if ( class_exists( 'Meow_WR2X_Core' ) ) {
|
|
26 |
return;
|
27 |
}
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
global $wr2x_picturefill, $wr2x_retinajs, $wr2x_lazysizes,
|
30 |
$wr2x_retina_image, $wr2x_core;
|
31 |
|
32 |
-
$wr2x_version = '5.6.
|
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.1
|
7 |
Author: Jordy Meow
|
8 |
Author URI: https://meowapps.com
|
9 |
Text Domain: wp-retina-2x
|
26 |
return;
|
27 |
}
|
28 |
|
29 |
+
if ( !get_option( 'wr2x_form_2020' ) ) {
|
30 |
+
function wr2x_form_2020_admin_notices() {
|
31 |
+
echo '<div class="notice notice-error"><h2>The new WP Retina 2x is coming soon!</h2>';
|
32 |
+
echo '<p>The web, the browsers, and WordPress all evolved a lot. Today, the technical situation about images has stabilized, so I would like to try my best and simplify this plugin, make it faster and better. <b>Could you reply to a few questions I have for you?</b> I made a survey with Google Forms: <a target="_blank" href="https://forms.gle/wv2tgaEYTKTcDZBA6">click here</a>. It is quite important to reply to it, as your answer will strongly impact the next version. Thanks a lot :)</p>';
|
33 |
+
echo '<p>
|
34 |
+
<form method="post" action="">
|
35 |
+
<input type="hidden" name="wr2x_form_2020" value="true">
|
36 |
+
<input type="submit" name="submit" id="submit" class="button" value="Got it. Hide this forever!">
|
37 |
+
</form>
|
38 |
+
</p>
|
39 |
+
';
|
40 |
+
echo '</div>';
|
41 |
+
}
|
42 |
+
if ( isset( $_POST['wr2x_form_2020'] ) ) {
|
43 |
+
update_option( 'wr2x_form_2020', true, false );
|
44 |
+
}
|
45 |
+
else
|
46 |
+
add_action( 'admin_notices', 'wr2x_form_2020_admin_notices' );
|
47 |
+
}
|
48 |
+
|
49 |
global $wr2x_picturefill, $wr2x_retinajs, $wr2x_lazysizes,
|
50 |
$wr2x_retina_image, $wr2x_core;
|
51 |
|
52 |
+
$wr2x_version = '5.6.1';
|
53 |
$wr2x_retinajs = '2.0.0';
|
54 |
$wr2x_picturefill = '3.0.2';
|
55 |
$wr2x_lazysizes = '5.1.1';
|