170 lines
16 KiB
PHP
170 lines
16 KiB
PHP
|
<?php
|
|||
|
/*
|
|||
|
* No direct access to this file
|
|||
|
*/
|
|||
|
if (! isset($data)) {
|
|||
|
exit;
|
|||
|
}
|
|||
|
|
|||
|
$svgTick = <<<HTML
|
|||
|
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 36 36"><path fill="#008000" d="M34.459 1.375c-1.391-.902-3.248-.506-4.149.884L13.5 28.17l-8.198-7.58c-1.217-1.125-3.114-1.051-4.239.166-1.125 1.216-1.051 3.115.166 4.239l10.764 9.952s.309.266.452.359c.504.328 1.07.484 1.63.484.982 0 1.945-.482 2.52-1.368L35.343 5.524c.902-1.39.506-3.248-.884-4.149z"/></svg>
|
|||
|
HTML;
|
|||
|
|
|||
|
$svgNa = '<img draggable="false" class="wpacu-emoji" alt="" src="'.WPACU_PLUGIN_URL.'/assets/icons/icon-n-a.svg">';
|
|||
|
?>
|
|||
|
<div class="wpacu-lite-vs-pro-wrap">
|
|||
|
<table>
|
|||
|
<thead>
|
|||
|
<tr class="first">
|
|||
|
<th class="hide"></th>
|
|||
|
<th class="bg-lite">LITE</th>
|
|||
|
<th class="bg-pro">PRO</th>
|
|||
|
</tr>
|
|||
|
</thead>
|
|||
|
<tbody>
|
|||
|
<tr>
|
|||
|
<td><strong><?php _e('License Price', 'wp-asset-clean-up'); ?></strong> <small>* <?php echo sprintf(
|
|||
|
__('after the first year, you will save %s off the initial purchase price, and be charged only %s', 'wp-asset-clean-up'),
|
|||
|
'30%',
|
|||
|
'$32<sup>.90</sup>'
|
|||
|
);
|
|||
|
?></small></td>
|
|||
|
<td><span class="txt-top">$</span><span class="txt-l">0</span></td>
|
|||
|
<td><span class="txt-top">$</span><span class="txt-l">49</span></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td><?php _e('Manage CSS & JavaScript files on Homepage, Posts, Pages & Custom Post Types (e.g. WooCommerce product pages, Easy Digital Downloads download items)', 'wp-asset-clean-up'); ?></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td><?php _e('Bulk Unloads: Everywhere (Site-Wide), On Specific Pages & Post Types, Add load exceptions', 'wp-asset-clean-up'); ?></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td><?php _e('Manage the CSS & JavaScript files within the Dashboard (default) and Front-end view (bottom of the page) if chosen', 'wp-asset-clean-up'); ?></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td><?php _e('Enable "Test Mode" to only apply the plugin\'s changes for the logged-in administrator for debugging purposes', 'wp-asset-clean-up'); ?> * <a href="https://www.assetcleanup.com/docs/?p=84"><small>Read more</small></a></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td><?php _e('Minify remaining loaded CSS & JavaScript files (with option to add exceptions)', 'wp-asset-clean-up'); ?></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td><?php _e('Combine remaining loaded CSS & JavaScript files into fewer files from each <code><HEAD></code> and <code><BODY></code> location (with option to add exceptions)', 'wp-asset-clean-up'); ?></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td><?php echo sprintf(__('Remove unused elements from the <code><HEAD></code> and <code><BODY></code> including the following link tags: %s.', 'wp-asset-clean-up'), 'Really Simple Discovery (RSD), Windows Live Writer, REST API, Posts/Pages Shortlink, Post\'s Relational, WordPress Generators (also good for security), RSS Feed Links'); ?> <?php _e('Valid HTML comments are also stripped (exceptions can be added) while conditional Internet Explorer comments are preserved.', 'wp-asset-clean-up'); ?></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td><?php _e('Site-Wide Unload For Common Elements that are often unused such as: WordPress Emojis, jQuery Migrate, Comment Reply (if not using WP as a blog)', 'wp-asset-clean-up'); ?></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td><?php _e('Disable RSS Feeds', 'wp-asset-clean-up'); ?></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td><?php _e('Disable XML-RPC Protocol Support partially or completely', 'wp-asset-clean-up'); ?></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td><?php _e('Inline Chosen CSS Files', 'wp-asset-clean-up'); ?> * <a target="_blank" href="https://gtmetrix.com/inline-small-css.html"><small>Read more</small></a></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td><?php _e('Inline Chosen JavaScript Files', 'wp-asset-clean-up'); ?> * <a target="_blank" href="https://gtmetrix.com/inline-small-javascript.html"><small>Read more</small></a></td>
|
|||
|
<td><span class="na"><?php echo wp_kses($svgNa, array('img' => array('draggable' => array(), 'class' => array(), 'alt' => array(), 'src' => array()))); ?></span></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td><?php _e('Instruct the browser to download a CSS/JS file based on the visitor\'s screen size (e.g. download it on a desktop device, but not on mobile one)', 'wp-asset-clean-up'); ?> * <a href="https://www.assetcleanup.com/docs/?p=1023"><small>Read more</small></a></td>
|
|||
|
<td><span class="na"><?php echo wp_kses($svgNa, array('img' => array('draggable' => array(), 'class' => array(), 'alt' => array(), 'src' => array()))); ?></span></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td><?php _e('Unload CSS/JS on all pages of a specific post type based on their taxonomy', 'wp-asset-clean-up'); ?> * <small>e.g. you can choose to unload assets on all articles that belong to a specific category or have a certain tag, or unload assets on all product (WooCommerce) pages</small> * <a href="https://www.assetcleanup.com/docs/?p=1415"><small>Read more</small></a></td>
|
|||
|
<td><span class="na"><?php echo wp_kses($svgNa, array('img' => array('draggable' => array(), 'class' => array(), 'alt' => array(), 'src' => array()))); ?></span></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td><?php _e('Unload CSS/JS for URLs with request URI matching certain RegEx(es) & add load exceptions based on Regex(es) <small>e.g. you can unload a CSS file site-wide, but keep it loaded if the page URL matches the <code>#/product/#</code> RegEx</small>', 'wp-asset-clean-up'); ?></td>
|
|||
|
<td><span class="na"><?php echo wp_kses($svgNa, array('img' => array('draggable' => array(), 'class' => array(), 'alt' => array(), 'src' => array()))); ?></span></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td><?php _e('Unload plugins in the frontend view (for guest visitors)', 'wp-asset-clean-up'); ?> * <small>This will not just unload the CSS/JS files loaded from the plugins, but everything else related to them (e.g. slow database queries)</small> * <a href="https://www.assetcleanup.com/docs/?p=372"><small>Read more</small></a></td>
|
|||
|
<td><span class="na"><?php echo wp_kses($svgNa, array('img' => array('draggable' => array(), 'class' => array(), 'alt' => array(), 'src' => array()))); ?></span></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td><?php _e('Unload plugins within the Dashboard /wp-admin/', 'wp-asset-clean-up'); ?> * <small>Do you have any slow pages that are loading within the Dashboard? You can reduce seconds in page load for some bulky ones or fix plugin conflicts</small> * <a href="https://www.assetcleanup.com/docs/?p=1128"><small>Read more</small></a></td>
|
|||
|
<td><span class="na"><?php echo wp_kses($svgNa, array('img' => array('draggable' => array(), 'class' => array(), 'alt' => array(), 'src' => array()))); ?></span></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td><?php _e('Defer CSS loaded in the <code><BODY></code>', 'wp-asset-clean-up'); ?> to reduce render-blocking resources</td>
|
|||
|
<td><span class="na"><?php echo wp_kses($svgNa, array('img' => array('draggable' => array(), 'class' => array(), 'alt' => array(), 'src' => array()))); ?></span></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
</tr>
|
|||
|
|
|||
|
<tr>
|
|||
|
<td><?php _e('Manage CSS & JavaScript files on Categories, Tags, Custom Taxonomy pages, Date & Author Archive Pages, Search Results & 404 Not Found pages', 'wp-asset-clean-up'); ?></td>
|
|||
|
<td><span class="na"><?php echo wp_kses($svgNa, array('img' => array('draggable' => array(), 'class' => array(), 'alt' => array(), 'src' => array()))); ?></span></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td><?php _e('Manage hardcoded (non-enqueued) CSS & JavaScript files', 'wp-asset-clean-up'); ?></td>
|
|||
|
<td><span class="na"><?php echo wp_kses($svgNa, array('img' => array('draggable' => array(), 'class' => array(), 'alt' => array(), 'src' => array()))); ?></span></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td><?php _e('Move CSS & JavaScript files from <code><HEAD></code> to <code><BODY></code> (to reduce render-blocking) or vice-versa (for very early triggering)', 'wp-asset-clean-up'); ?></td>
|
|||
|
<td><span class="na"><?php echo wp_kses($svgNa, array('img' => array('draggable' => array(), 'class' => array(), 'alt' => array(), 'src' => array()))); ?></span></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td><?php _e('Apply "async" and "defer" attributes to loaded JavaScript files', 'wp-asset-clean-up'); ?></td>
|
|||
|
<td><span class="na"><?php echo wp_kses($svgNa, array('img' => array('draggable' => array(), 'class' => array(), 'alt' => array(), 'src' => array()))); ?></span></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td><?php _e('Priority in releasing new features & other improvements (updates that are meant for both Lite and Pro plugins are first released to the Pro users)', 'wp-asset-clean-up'); ?></td>
|
|||
|
<td><span class="na"><?php echo wp_kses($svgNa, array('img' => array('draggable' => array(), 'class' => array(), 'alt' => array(), 'src' => array()))); ?></span></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td><?php _e('Priority Customer Support', 'wp-asset-clean-up'); ?></td>
|
|||
|
<td><span class="na"><?php echo wp_kses($svgNa, array('img' => array('draggable' => array(), 'class' => array(), 'alt' => array(), 'src' => array()))); ?></span></td>
|
|||
|
<td><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td colspan="3" style="text-align: center; padding: 10px;">
|
|||
|
<h3 style="margin: 0;"><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?> <em>30 Day Money Back Guarantee</em></h3>
|
|||
|
<p style="margin-top: 8px;">If you’re not satisfied with your purchase for any reason, you can request a refund within 30 days, and you will get the payment refunded.</p>
|
|||
|
<hr />
|
|||
|
<a class="button button-primary button-hero" href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL . '?utm_source=plugin_getting_started&utm_medium=lite_vs_pro'); ?>">
|
|||
|
<span class="dashicons dashicons-star-filled" style="line-height: 50px;"></span> <?php _e('Upgrade to Pro to unlock all benefits', 'wp-asset-clean-up'); ?></a>
|
|||
|
|
|||
|
<a class="button button-default button-hero" href="https://www.gabelivan.com/contact/">
|
|||
|
<span class="dashicons dashicons-admin-comments" style="line-height: 50px;"></span> <?php _e('I have some questions', 'wp-asset-clean-up'); ?></a>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
</div>
|