File "atec-wpwp-instructions.php"
Full Path: /home/rubycabfbt/www/wp-content/plugins/wtec-webp/includes/atec-wpwp-instructions.php
File size: 1.52 KB
MIME-type: text/x-php
Charset: utf-8
<?php
defined('ABSPATH') || exit;
use ATEC\TOOLS;
return [
'Dashboard' => static function () {
TOOLS::div('box',
'<strong>atec WebP</strong> converts images on demand when browsers request them — no batch conversion required.'
);
TOOLS::ul('PRO', ['PNG, GIF, and BMP conversion requires a PRO license.']);
TOOLS::ul('How it works', [
'Enable <strong>WebP active</strong> to add <code>.htaccess</code> rewrite rules.',
'Requests for JPG/PNG/GIF/BMP redirect to existing <code>.webp</code> files or the on-demand converter.',
'Converted files are saved as <code>*.Xwebp.webp</code> beside the originals.',
]);
TOOLS::ul('Dashboard', [
'<strong>WebP active</strong> — toggle rewrite rules and conversion.',
'<strong>All "atec .Xwebp" files</strong> — delete generated WebP files (originals untouched).',
'<strong>Show all images</strong> — detailed file list; savings column shows size difference vs originals.',
]);
TOOLS::ul('Requirements', [
'Apache or LiteSpeed with writable <code>.htaccess</code>.',
'NGINX: add a <code>location</code> block manually — download <a href="' . esc_url(plugins_url('install/atec-webp-nginx.conf', dirname(__DIR__))) . '" target="_blank" rel="noopener noreferrer">atec-webp-nginx.conf</a>.',
'GD or ImageMagick with WebP support.',
'Not supported on Windows hosts.',
]);
TOOLS::ul('CDN note', [
'If a CDN caches images, rewrite rules may not apply unless images are excluded from CDN cache.',
]);
TOOLS::div(-1);
},
];