updated plugin W3 Total Cache version 2.5.0

This commit is contained in:
2023-10-22 22:21:26 +00:00
committed by Gitium
parent 2f6b5b6047
commit 9e3fa792d7
255 changed files with 10113 additions and 23010 deletions

View File

@ -19,7 +19,7 @@ if ( ! defined( 'W3TC' ) ) {
'%1$sInstalled/Ok/Yes/True/On%2$s: Functionality will work properly.%3$s',
'w3-total-cache'
),
'<span style="background-color: #33cc33">',
'<span style="padding: 0 2px;padding: 0 5px;background-color: #33cc33">',
'</span>',
'<br />'
),
@ -37,7 +37,7 @@ if ( ! defined( 'W3TC' ) ) {
'%1$sNot detected/Not available/Off%2$s: May be installed, but cannot be automatically confirmed. Functionality may be limited.%3$s',
'w3-total-cache'
),
'<span style="background-color: #FFFF00">',
'<span style="padding: 0 2px;padding: 0 5px;background-color: #FFFF00">',
'</span>',
'<br />'
),
@ -55,7 +55,7 @@ if ( ! defined( 'W3TC' ) ) {
'%1$sNot installed/Error/No/False%2$s: Plugin or some functions may not work.%3$s',
'w3-total-cache'
),
'<span style="background-color: #FF0000">',
'<span style="padding: 0 2px;padding: 0 5px;background-color: #FF0000; color: #FFFFFF;">',
'</span>',
'<br />'
),
@ -96,16 +96,16 @@ if ( ! defined( 'W3TC' ) ) {
<?php elseif ( stristr( $_SERVER['SERVER_SOFTWARE'], 'iis' ) !== false ) : ?>
<code>Microsoft IIS</code>
<?php else : ?>
<span style="background-color: #FFFF00">Not detected</span>
<span style="padding: 0 2px;background-color: #FFFF00">Not detected</span>
<?php endif; ?>
</li>
<li>
FTP functions:
<?php if ( function_exists( 'ftp_connect' ) ) : ?>
<span style="background-color: #33cc33">Installed</span>
<span style="padding: 0 2px;background-color: #33cc33">Installed</span>
<?php else : ?>
<span style="background-color: #FFFF00">Not detected</span>
<span style="padding: 0 2px;background-color: #FFFF00">Not detected</span>
<?php endif; ?>
<span class="w3tc-self-test-hint">
<?php
@ -135,9 +135,9 @@ if ( ! defined( 'W3TC' ) ) {
<li>
<?php esc_html_e( 'Multibyte String support:', 'w3-total-cache' ); ?>
<?php if ( function_exists( 'mb_substr' ) ) : ?>
<span style="background-color: #33cc33"><?php esc_html_e( 'Installed', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #33cc33"><?php esc_html_e( 'Installed', 'w3-total-cache' ); ?></span>
<?php else : ?>
<span style="background-color: #FF0000"><?php esc_html_e( 'Not installed', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #FF0000; color: #FFFFFF;"><?php esc_html_e( 'Not installed', 'w3-total-cache' ); ?></span>
<?php endif; ?>
<span class="w3tc-self-test-hint"><?php esc_html_e( '(required for Rackspace Cloud Files support)', 'w3-total-cache' ); ?></span>
</li>
@ -145,9 +145,9 @@ if ( ! defined( 'W3TC' ) ) {
<li>
<?php esc_html_e( 'cURL extension:', 'w3-total-cache' ); ?>
<?php if ( function_exists( 'curl_init' ) ) : ?>
<span style="background-color: #33cc33"><?php esc_html_e( 'Installed', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #33cc33"><?php esc_html_e( 'Installed', 'w3-total-cache' ); ?></span>
<?php else : ?>
<span style="background-color: #FF0000"><?php esc_html_e( 'Not installed', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #FF0000; color: #FFFFFF;"><?php esc_html_e( 'Not installed', 'w3-total-cache' ); ?></span>
<?php endif; ?>
<span class="w3tc-self-test-hint"><?php esc_html_e( '(required for Amazon S3, Amazon CloudFront, Rackspace CloudFiles support)', 'w3-total-cache' ); ?></span>
</li>
@ -155,9 +155,9 @@ if ( ! defined( 'W3TC' ) ) {
<li>
zlib extension:
<?php if ( function_exists( 'gzencode' ) ) : ?>
<span style="background-color: #33cc33"><?php esc_html_e( 'Installed', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #33cc33"><?php esc_html_e( 'Installed', 'w3-total-cache' ); ?></span>
<?php else : ?>
<span style="background-color: #FF0000"><?php esc_html_e( 'Not installed', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #FF0000; color: #FFFFFF;"><?php esc_html_e( 'Not installed', 'w3-total-cache' ); ?></span>
<?php endif; ?>
<span class="w3tc-self-test-hint"><?php esc_html_e( '(required for gzip compression support)', 'w3-total-cache' ); ?></span>
</li>
@ -165,9 +165,9 @@ if ( ! defined( 'W3TC' ) ) {
<li>
brotli extension:
<?php if ( function_exists( 'brotli_compress' ) ) : ?>
<span style="background-color: #33cc33"><?php esc_html_e( 'Installed', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #33cc33"><?php esc_html_e( 'Installed', 'w3-total-cache' ); ?></span>
<?php else : ?>
<span style="background-color: #FFFF00"><?php esc_html_e( 'Not detected', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #FFFF00"><?php esc_html_e( 'Not detected', 'w3-total-cache' ); ?></span>
<?php endif; ?>
<span class="w3tc-self-test-hint"><?php esc_html_e( '(required for brotli compression support)', 'w3-total-cache' ); ?></span>
</li>
@ -175,53 +175,53 @@ if ( ! defined( 'W3TC' ) ) {
<li>
Opcode cache:
<?php if ( Util_Installed::opcache() ) : ?>
<span style="background-color: #33cc33"><?php esc_html_e( 'Installed (OPCache)', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #33cc33"><?php esc_html_e( 'Installed (OPCache)', 'w3-total-cache' ); ?></span>
<?php elseif ( Util_Installed::apc() ) : ?>
<span style="background-color: #33cc33"><?php esc_html_e( 'Installed (APC)', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #33cc33"><?php esc_html_e( 'Installed (APC)', 'w3-total-cache' ); ?></span>
<?php elseif ( Util_Installed::eaccelerator() ) : ?>
<span style="background-color: #33cc33"><?php esc_html_e( 'Installed (eAccelerator)', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #33cc33"><?php esc_html_e( 'Installed (eAccelerator)', 'w3-total-cache' ); ?></span>
<?php elseif ( Util_Installed::xcache() ) : ?>
<span style="background-color: #33cc33"><?php esc_html_e( 'Installed (XCache)', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #33cc33"><?php esc_html_e( 'Installed (XCache)', 'w3-total-cache' ); ?></span>
<?php elseif ( PHP_VERSION >= 6 ) : ?>
<span style="background-color: #33cc33"><?php esc_html_e( 'PHP6', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #33cc33"><?php esc_html_e( 'PHP6', 'w3-total-cache' ); ?></span>
<?php else : ?>
<span style="background-color: #FF0000"><?php esc_html_e( 'Not installed', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #FF0000; color: #FFFFFF;"><?php esc_html_e( 'Not installed', 'w3-total-cache' ); ?></span>
<?php endif; ?>
</li>
<li>
<?php esc_html_e( 'Memcached extension:', 'w3-total-cache' ); ?>
<?php if ( class_exists( '\Memcached' ) ) : ?>
<span style="background-color: #33cc33"><?php esc_html_e( 'Installed', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #33cc33"><?php esc_html_e( 'Installed', 'w3-total-cache' ); ?></span>
<?php else : ?>
<span style="background-color: #FFFF00"><?php esc_html_e( 'Not available', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #FFFF00"><?php esc_html_e( 'Not available', 'w3-total-cache' ); ?></span>
<?php endif; ?>
</li>
<li>
<?php esc_html_e( 'Memcache extension:', 'w3-total-cache' ); ?>
<?php if ( class_exists( '\Memcache' ) ) : ?>
<span style="background-color: #33cc33"><?php esc_html_e( 'Installed', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #33cc33"><?php esc_html_e( 'Installed', 'w3-total-cache' ); ?></span>
<?php else : ?>
<span style="background-color: #FFFF00"><?php esc_html_e( 'Not available', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #FFFF00"><?php esc_html_e( 'Not available', 'w3-total-cache' ); ?></span>
<?php endif; ?>
</li>
<li>
<?php esc_html_e( 'Redis extension:', 'w3-total-cache' ); ?>
<?php if ( Util_Installed::redis() ) : ?>
<span style="background-color: #33cc33"><?php esc_html_e( 'Installed', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #33cc33"><?php esc_html_e( 'Installed', 'w3-total-cache' ); ?></span>
<?php else : ?>
<span style="background-color: #FFFF00"><?php esc_html_e( 'Not available', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #FFFF00"><?php esc_html_e( 'Not available', 'w3-total-cache' ); ?></span>
<?php endif; ?>
</li>
<li>
<?php esc_html_e( 'HTML Tidy extension:', 'w3-total-cache' ); ?>
<?php if ( Util_Installed::tidy() ) : ?>
<span style="background-color: #33cc33"><?php esc_html_e( 'Installed', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #33cc33"><?php esc_html_e( 'Installed', 'w3-total-cache' ); ?></span>
<?php else : ?>
<span style="background-color: #FF0000"><?php esc_html_e( 'Not installed', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #FF0000; color: #FFFFFF;"><?php esc_html_e( 'Not installed', 'w3-total-cache' ); ?></span>
<?php endif; ?>
<span class="w3tc-self-test-hint"><?php esc_html_e( '(required for HTML Tidy minifier support)', 'w3-total-cache' ); ?></span>
</li>
@ -229,11 +229,11 @@ if ( ! defined( 'W3TC' ) ) {
<li>
<?php esc_html_e( 'Mime type detection:', 'w3-total-cache' ); ?>
<?php if ( function_exists( 'finfo_open' ) ) : ?>
<span style="background-color: #33cc33"><?php esc_html_e( 'Installed (Fileinfo)', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #33cc33"><?php esc_html_e( 'Installed (Fileinfo)', 'w3-total-cache' ); ?></span>
<?php elseif ( function_exists( 'mime_content_type' ) ) : ?>
<span style="background-color: #33cc33"><?php esc_html_e( 'Installed (mime_content_type)', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #33cc33"><?php esc_html_e( 'Installed (mime_content_type)', 'w3-total-cache' ); ?></span>
<?php else : ?>
<span style="background-color: #FF0000"><?php esc_html_e( 'Not installed', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #FF0000; color: #FFFFFF;"><?php esc_html_e( 'Not installed', 'w3-total-cache' ); ?></span>
<?php endif; ?>
<span class="w3tc-self-test-hint">
<?php
@ -260,47 +260,47 @@ if ( ! defined( 'W3TC' ) ) {
<li>
<?php esc_html_e( 'Hash function:', 'w3-total-cache' ); ?>
<?php if ( function_exists( 'hash' ) ) : ?>
<span style="background-color: #33cc33"><?php esc_html_e( 'Installed (hash)', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #33cc33"><?php esc_html_e( 'Installed (hash)', 'w3-total-cache' ); ?></span>
<?php elseif ( function_exists( 'mhash' ) ) : ?>
<span style="background-color: #33cc33"><?php esc_html_e( 'Installed (mhash)', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #33cc33"><?php esc_html_e( 'Installed (mhash)', 'w3-total-cache' ); ?></span>
<?php else : ?>
<span style="background-color: #FF0000"><?php esc_html_e( 'Not installed', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #FF0000; color: #FFFFFF;"><?php esc_html_e( 'Not installed', 'w3-total-cache' ); ?></span>
<?php endif; ?>
</li>
<li>
<?php esc_html_e( 'Open basedir:', 'w3-total-cache' ); ?>
<?php $open_basedir = ini_get( 'open_basedir' ); if ( $open_basedir ) : ?>
<span style="background-color: #33cc33"><?php esc_html_e( 'On:', 'w3-total-cache' ); ?> <?php echo esc_html( $open_basedir ); ?></span>
<span style="padding: 0 2px;background-color: #33cc33"><?php esc_html_e( 'On:', 'w3-total-cache' ); ?> <?php echo esc_html( $open_basedir ); ?></span>
<?php else : ?>
<span style="background-color: #FFFF00"><?php esc_html_e( 'Off', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #FFFF00"><?php esc_html_e( 'Off', 'w3-total-cache' ); ?></span>
<?php endif; ?>
</li>
<li>
<?php esc_html_e( 'zlib output compression:', 'w3-total-cache' ); ?>
<?php if ( Util_Environment::to_boolean( ini_get( 'zlib.output_compression' ) ) ) : ?>
<span style="background-color: #33cc33"><?php esc_html_e( 'On', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #33cc33"><?php esc_html_e( 'On', 'w3-total-cache' ); ?></span>
<?php else : ?>
<span style="background-color: #FFFF00"><?php esc_html_e( 'Off', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #FFFF00"><?php esc_html_e( 'Off', 'w3-total-cache' ); ?></span>
<?php endif; ?>
</li>
<li>
<?php esc_html_e( 'set_time_limit:', 'w3-total-cache' ); ?>
<?php if ( function_exists( 'set_time_limit' ) ) : ?>
<span style="background-color: #33cc33"><?php esc_html_e( 'Available', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #33cc33"><?php esc_html_e( 'Available', 'w3-total-cache' ); ?></span>
<?php else : ?>
<span style="background-color: #FFFF00"><?php esc_html_e( 'Not available', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #FFFF00"><?php esc_html_e( 'Not available', 'w3-total-cache' ); ?></span>
<?php endif; ?>
</li>
<li>
SSH2 extension:
<?php if ( function_exists( 'ssh2_connect' ) ) : ?>
<span style="background-color: #33cc33"><?php esc_html_e( 'Installed', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #33cc33"><?php esc_html_e( 'Installed', 'w3-total-cache' ); ?></span>
<?php else : ?>
<span style="background-color: #FFFF00"><?php esc_html_e( 'Not detected', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #FFFF00"><?php esc_html_e( 'Not detected', 'w3-total-cache' ); ?></span>
<?php endif; ?>
<span class="w3tc-self-test-hint">
<?php
@ -390,12 +390,12 @@ if ( ! defined( 'W3TC' ) ) {
<?php echo esc_html( $module ); ?>:
<?php if ( ! empty( $apache_modules ) ) : ?>
<?php if ( in_array( $module, $apache_modules, true ) ) : ?>
<span style="background-color: #33cc33"><?php esc_html_e( 'Installed', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #33cc33"><?php esc_html_e( 'Installed', 'w3-total-cache' ); ?></span>
<?php else : ?>
<span style="background-color: #FF0000"><?php esc_html_e( 'Not installed', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #FF0000; color: #FFFFFF;"><?php esc_html_e( 'Not installed', 'w3-total-cache' ); ?></span>
<?php endif; ?>
<?php else : ?>
<span style="background-color: #FFFF00"><?php esc_html_e( 'Not detected', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #FFFF00"><?php esc_html_e( 'Not detected', 'w3-total-cache' ); ?></span>
<?php endif; ?>
<span class="w3tc-self-test-hint"><?php esc_html_e( '(required for disk enhanced Page Cache and Browser Cache)', 'w3-total-cache' ); ?></span>
</li>
@ -437,15 +437,15 @@ if ( ! defined( 'W3TC' ) ) {
<?php echo esc_html( $path ); ?>:
<?php if ( file_exists( $path ) ) : ?>
<?php if ( Util_File::is_writable( $path ) ) : ?>
<span style="background-color: #33cc33"><?php esc_html_e( 'OK', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #33cc33"><?php esc_html_e( 'OK', 'w3-total-cache' ); ?></span>
<?php else : ?>
<span style="background-color: #FF0000"><?php esc_html_e( 'Not write-able', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #FF0000; color: #FFFFFF;"><?php esc_html_e( 'Not write-able', 'w3-total-cache' ); ?></span>
<?php endif; ?>
<?php else : ?>
<?php if ( Util_File::is_writable_dir( dirname( $path ) ) ) : ?>
<span style="background-color: #33cc33"><?php esc_html_e( 'Write-able', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #33cc33"><?php esc_html_e( 'Write-able', 'w3-total-cache' ); ?></span>
<?php else : ?>
<span style="background-color: #FF0000"><?php esc_html_e( 'Not write-able', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #FF0000; color: #FFFFFF;"><?php esc_html_e( 'Not write-able', 'w3-total-cache' ); ?></span>
<?php endif; ?>
<?php endif; ?>
</li>
@ -457,9 +457,9 @@ if ( ! defined( 'W3TC' ) ) {
<li>
<?php echo esc_html( Util_Environment::normalize_path( WP_CONTENT_DIR ) ); ?>:
<?php if ( Util_File::is_writable_dir( WP_CONTENT_DIR ) ) : ?>
<span style="background-color: #33cc33"><?php esc_html_e( 'OK', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #33cc33"><?php esc_html_e( 'OK', 'w3-total-cache' ); ?></span>
<?php else : ?>
<span style="background-color: #FF0000"><?php esc_html_e( 'Not write-able', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #FF0000; color: #FFFFFF;"><?php esc_html_e( 'Not write-able', 'w3-total-cache' ); ?></span>
<?php endif; ?>
</li>
@ -467,49 +467,49 @@ if ( ! defined( 'W3TC' ) ) {
<?php $uploads_dir = @wp_upload_dir(); ?>
<?php echo esc_html( $uploads_dir['path'] ); ?>:
<?php if ( ! empty( $uploads_dir['error'] ) ) : ?>
<span style="background-color: #FF0000"><?php esc_html_e( 'Error:', 'w3-total-cache' ); ?> <?php echo esc_html( $uploads_dir['error'] ); ?></span>
<span style="padding: 0 2px;background-color: #FF0000; color: #FFFFFF;"><?php esc_html_e( 'Error:', 'w3-total-cache' ); ?> <?php echo esc_html( $uploads_dir['error'] ); ?></span>
<?php elseif ( ! Util_File::is_writable_dir( $uploads_dir['path'] ) ) : ?>
<span style="background-color: #FF0000"><?php esc_html_e( 'Not write-able', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #FF0000; color: #FFFFFF;"><?php esc_html_e( 'Not write-able', 'w3-total-cache' ); ?></span>
<?php else : ?>
<span style="background-color: #33cc33"><?php esc_html_e( 'OK', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #33cc33"><?php esc_html_e( 'OK', 'w3-total-cache' ); ?></span>
<?php endif; ?>
</li>
<li>
<?php esc_html_e( 'Fancy permalinks:', 'w3-total-cache' ); ?>
<?php $permalink_structure = get_option( 'permalink_structure' ); if ( $permalink_structure ) : ?>
<span style="background-color: #33cc33"><?php echo esc_html( $permalink_structure ); ?></span>
<span style="padding: 0 2px;background-color: #33cc33"><?php echo esc_html( $permalink_structure ); ?></span>
<?php else : ?>
<span style="background-color: #FFFF00"><?php esc_html_e( 'Off', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #FFFF00"><?php esc_html_e( 'Off', 'w3-total-cache' ); ?></span>
<?php endif; ?>
</li>
<li>
<?php esc_html_e( 'WP_CACHE define:', 'w3-total-cache' ); ?>
<?php if ( defined( 'WP_CACHE' ) && WP_CACHE ) : ?>
<span style="background-color: #33cc33"><?php esc_html_e( 'Defined (true)', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #33cc33"><?php esc_html_e( 'Defined (true)', 'w3-total-cache' ); ?></span>
<?php elseif ( defined( 'WP_CACHE' ) && ! WP_CACHE ) : ?>
<span style="background-color: #FF0000"><?php esc_html_e( 'Defined (false)', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #FF0000; color: #FFFFFF;"><?php esc_html_e( 'Defined (false)', 'w3-total-cache' ); ?></span>
<?php else : ?>
<span style="background-color: #FF0000"><?php esc_html_e( 'Not defined', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #FF0000; color: #FFFFFF;"><?php esc_html_e( 'Not defined', 'w3-total-cache' ); ?></span>
<?php endif; ?>
</li>
<li>
<?php esc_html_e( 'URL rewrite:', 'w3-total-cache' ); ?>
<?php if ( Util_Rule::can_check_rules() ) : ?>
<span style="background-color: #33cc33"><?php esc_html_e( 'Enabled', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #33cc33"><?php esc_html_e( 'Enabled', 'w3-total-cache' ); ?></span>
<?php else : ?>
<span style="background-color: #FF0000"><?php esc_html_e( 'Disabled', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #FF0000; color: #FFFFFF;"><?php esc_html_e( 'Disabled', 'w3-total-cache' ); ?></span>
<?php endif; ?>
</li>
<li>
<?php esc_html_e( 'Network mode:', 'w3-total-cache' ); ?>
<?php if ( Util_Environment::is_wpmu() ) : ?>
<span style="background-color: #33cc33"><?php esc_html_e( 'On', 'w3-total-cache' ); ?> (<?php echo Util_Environment::is_wpmu_subdomain() ? 'subdomain' : 'subdir'; ?>)</span>
<span style="padding: 0 2px;background-color: #33cc33"><?php esc_html_e( 'On', 'w3-total-cache' ); ?> (<?php echo Util_Environment::is_wpmu_subdomain() ? 'subdomain' : 'subdir'; ?>)</span>
<?php else : ?>
<span style="background-color: #FFFF00"><?php esc_html_e( 'Off', 'w3-total-cache' ); ?></span>
<span style="padding: 0 2px;background-color: #FFFF00"><?php esc_html_e( 'Off', 'w3-total-cache' ); ?></span>
<?php endif; ?>
</li>
</ul>