| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/laragon/www/quilla/wp-content/plugins/wp-smushit/_src/react/views/webp/ |
Upload File : |
/**
* External dependencies
*/
import React from 'react';
/**
* WordPress dependencies
*/
const { __ } = wp.i18n;
export default ({ smushData }) => {
return (
<div className="sui-box-body">
<div className="sui-message">
<img
className="sui-image"
src={smushData.urls.freeImg}
srcset={smushData.urls.freeImg2x + ' 2x'}
alt={__('Smush WebP', 'wp-smushit')}
/>
<div className="sui-message-content">
<p>
{__(
'Fix the "Serve images in next-gen format" Google PageSpeed recommendation by setting up this feature. Serve WebP versions of your images to supported browsers, and gracefully fall back on JPEGs and PNGs for browsers that don\'t support WebP.',
'wp-smushit'
)}
</p>
<ol className="sui-upsell-list">
<li>
<span
className="sui-icon-check sui-sm"
aria-hidden="true"
/>
{__(
'Add or automatically apply the rules to enable Local WebP feature.',
'wp-smushit'
)}
</li>
<li>
<span
className="sui-icon-check sui-sm"
aria-hidden="true"
/>
{__(
'Fix “Serve images in next-gen format" Google PageSpeed recommendation.',
'wp-smushit'
)}
</li>
<li>
<span
className="sui-icon-check sui-sm"
aria-hidden="true"
/>
{__(
'Serve WebP version of images in the browsers that support it and fall back to JPEGs and PNGs for non supported browsers.',
'wp-smushit'
)}
</li>
</ol>
<p className="sui-margin-top">
<a
href={smushData.urls.upsell}
className="sui-button sui-button-purple"
style={{ marginRight: '30px' }}
target="_blank"
rel="noreferrer"
>
{__('UNLOCK WEBP WITH PRO', 'wp-smushit')}
</a>
<a
href={smushData.urls.webpDoc}
style={{ color: '#8D00B1' }}
target="_blank"
rel="noreferrer"
>
{__('Learn more', 'wp-smushit')}
</a>
</p>
</div>
</div>
</div>
);
};