Skip to content

Commit

Permalink
v7.0-b21: Hide QC button if is under partner
Browse files Browse the repository at this point in the history
  • Loading branch information
Hai Zheng committed Dec 4, 2024
1 parent 755f7b3 commit 18dc1c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions litespeed-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin Name: LiteSpeed Cache
* Plugin URI: https://www.litespeedtech.com/products/cache-plugins/wordpress-acceleration
* Description: High-performance page caching and site optimization from LiteSpeed
* Version: 7.0-b20
* Version: 7.0-b21
* Author: LiteSpeed Technologies
* Author URI: https://www.litespeedtech.com
* License: GPLv3
Expand Down Expand Up @@ -34,7 +34,7 @@
return;
}

!defined('LSCWP_V') && define('LSCWP_V', '7.0-b20');
!defined('LSCWP_V') && define('LSCWP_V', '7.0-b21');

!defined('LSCWP_CONTENT_DIR') && define('LSCWP_CONTENT_DIR', WP_CONTENT_DIR);
!defined('LSCWP_DIR') && define('LSCWP_DIR', __DIR__ . '/'); // Full absolute path '/var/www/html/***/wp-content/plugins/litespeed-cache/' or MU
Expand Down
6 changes: 5 additions & 1 deletion tpl/general/online.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@

<?php elseif (!empty($cloud_summary['qc_activated']) && ($cloud_summary['qc_activated'] == 'linked' || $cloud_summary['qc_activated'] == 'cdn')) : ?>
<h4 class="litespeed-text-md litespeed-top30"><span class="dashicons dashicons-saved litespeed-success"></span>&nbsp;<?php echo __('QUIC.cloud Integration Enabled', 'litespeed-cache'); ?></h4>
<p><?php echo __('Your site is connected and ready to use QUIC.cloud Online Services.', 'litespeed-cache'); ?> <a href="<?php echo $__cloud->qc_link(); ?>" class="litespeed-link-with-icon" target="_blank"><?php echo __('Go to QUIC.cloud dashboard', 'litespeed-cache'); ?> <span class="dashicons dashicons-external"></span></a></p>
<p><?php echo __('Your site is connected and ready to use QUIC.cloud Online Services.', 'litespeed-cache'); ?>
<?php if (empty($cloud_summary['partner'])) : ?>
<a href="<?php echo $__cloud->qc_link(); ?>" class="litespeed-link-with-icon" target="_blank"><?php echo __('Go to QUIC.cloud dashboard', 'litespeed-cache'); ?> <span class="dashicons dashicons-external"></span></a>
<?php endif; ?>
</p>

<ul>
<li><span class="dashicons dashicons-yes litespeed-success"></span> <?php echo __('Page Optimization', 'litespeed-cache'); ?></li>
Expand Down

0 comments on commit 18dc1c9

Please sign in to comment.