| Server IP : 208.122.213.31 / Your IP : 216.73.216.45 Web Server : Apache System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64 User : WHMCS_MIA_382 ( 1001) PHP Version : 7.4.33 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/httpd/html/baberankings.com/wp-content/plugins/w3-total-cache/ |
Upload File : |
<?php
/**
* File: Generic_WidgetAccount_View.php
*
* @since 2.7.0
* @package W3TC
*/
namespace W3TC;
defined( 'ABSPATH' ) || exit;
if ( ! defined( 'W3TC' ) ) {
die();
}
$w3tc_licensing = new Licensing_Plugin_Admin();
$w3tc_license_key = $w3tc_licensing->get_license_key();
$w3tc_license = Licensing_Core::check_license( $w3tc_license_key, W3TC_VERSION );
?>
<table>
<tr>
<td><b><?php esc_html_e( 'License:', 'w3-total-cache' ); ?></b></td>
<td>
<?php
echo ! empty( $w3tc_license ) && 'active.by_rooturi' === $w3tc_license->license_status
? esc_html__( 'Pro', 'w3-total-cache' )
: esc_html__( 'Free', 'w3-total-cache' );
?>
</td>
</tr>
<tr>
<td><b><?php esc_html_e( 'Status:', 'w3-total-cache' ); ?></b></td>
<td>
<?php
if ( ! empty( $w3tc_license ) ) {
switch ( $w3tc_license ) {
case 'active.by_rooturi' === $w3tc_license->license_status:
esc_html_e( 'Active', 'w3-total-cache' );
break;
case 'inactive.expired' === $w3tc_license->license_status:
esc_html_e( 'Expired', 'w3-total-cache' );
break;
case 'invalid.not_present' === $w3tc_license->license_status:
esc_html_e( 'Free license, no expiration', 'w3-total-cache' );
break;
default:
esc_html_e( 'Unknown', 'w3-total-cache' );
}
} else {
esc_html_e( 'Free license, no expiration', 'w3-total-cache' );
}
?>
</td>
</tr>
<!--
<tr>
<td><b><?php esc_html_e( 'Renewal Date:', 'w3-total-cache' ); ?></b></td>
<td>TBD</td>
</tr>
-->
</table>
<?php
if ( empty( $w3tc_license ) || ( ! empty( $w3tc_license ) && 'invalid.not_present' === $w3tc_license->license_status ) ) {
?>
<p>
<?php
echo wp_kses(
sprintf(
// Translators: 1 opening HTML strong tag, 2 closing HTML strong tag.
__( 'Upgrade to %1$sW3 Total Cache Pro%2$s now to unlock additional settings and features that can further improve your site\'s performance and Google PageSpeed ratings.', 'w3-total-cache' ),
'<strong>',
'</strong>'
),
array( 'strong' => array() )
);
?>
</p>
<p>
<input type="button" class="button-primary button-buy-plugin" data-src="account_widget" value="<?php esc_attr_e( 'Learn more about Pro', 'w3-total-cache' ); ?>" />
</p>
<?php
}
?>