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

@ -1 +1,108 @@
<?php
namespace W3TC;
if ( ! defined( 'W3TC' ) ) {
die();
}
$config = Dispatcher::config();
do_action( 'w3tc-dashboard-footer' );
?>
</div>
<div id="w3tc-footer">
<div id="w3tc-footer-container">
<div class="w3tc-footer-column-1">
<a class="logo-link" href="<?php echo esc_url( Util_UI::admin_url( 'admin.php?page=w3tc_dashboard' ) ); ?>" alt="W3 Total Cache">
<h2 class="logo">
<?php
echo wp_kses(
sprintf(
// translators: 1 opening HTML span tag, 2 opening HTML sup tag, 3 closing HTML sup tag, 4 closing HTML span tag.
__(
'W3 Total Cache %1$sby W3 EDGE %2$s&reg;%3$s%4$s',
'w3-total-cache'
),
'<span>',
'<sup>',
'</sup>',
'</span>'
),
array(
'span' => array(),
'sup' => array(),
)
);
?>
</h2>
</a>
</div>
<div class="w3tc-footer-column-1">
<h2><?php esc_html_e( 'Documentation', 'w3-total-cache' ); ?></h2>
<a class="w3tc-footer-link" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/' ); ?>" alt="<?php esc_attr_e( 'Support Center', 'w3-total-cache' ); ?>">
<?php esc_html_e( 'Support Center', 'w3-total-cache' ); ?>
</a>
<a class="w3tc-footer-link" target="_blank" href="<?php echo esc_url( 'https://github.com/BoldGrid/w3-total-cache' ); ?>" alt="<?php esc_attr_e( 'GitHub', 'w3-total-cache' ); ?>">
<?php esc_html_e( 'GitHub', 'w3-total-cache' ); ?>
</a>
</div>
<div class="w3tc-footer-column-1">
<h2><?php esc_html_e( 'Support', 'w3-total-cache' ); ?></h2>
<a class="w3tc-footer-link" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/forum/w3-total-cache/' ); ?>" alt="<?php esc_attr_e( 'Forums', 'w3-total-cache' ); ?>">
<?php esc_html_e( 'Forums', 'w3-total-cache' ); ?>
</a>
<a class="w3tc-footer-link" href="<?php echo esc_url( Util_UI::admin_url( 'admin.php?page=w3tc_support' ) ); ?>" alt="<?php esc_attr_e( 'Premium Support Services', 'w3-total-cache' ); ?>">
<?php esc_html_e( 'Premium Support Services', 'w3-total-cache' ); ?>
</a>
</div>
<div class="w3tc-footer-column-2">
<h2><?php esc_html_e( 'Pro Features', 'w3-total-cache' ); ?></h2>
<div class="w3tc-footer-inner-column-50">
<a class="w3tc-footer-link" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/cdn/full-site-delivery/' ); ?>" alt="<?php esc_attr_e( 'Full Site Delivery', 'w3-total-cache' ); ?>">
<?php esc_html_e( 'Full Site Delivery', 'w3-total-cache' ); ?>
</a>
<a class="w3tc-footer-link" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/what-is-fragment-caching-and-why-do-i-need-it/' ); ?>" alt="<?php esc_attr_e( 'Fragment Cache', 'w3-total-cache' ); ?>">
<?php esc_html_e( 'Fragment Cache', 'w3-total-cache' ); ?>
</a>
<a class="w3tc-footer-link" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/page-cache/rest-api/' ); ?>" alt="<?php esc_attr_e( 'Rest API Caching', 'w3-total-cache' ); ?>">
<?php esc_html_e( 'Rest API Caching', 'w3-total-cache' ); ?>
</a>
<a class="w3tc-footer-link" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/minify/render-blocking-css/' ); ?>" alt="<?php esc_attr_e( 'Eliminate Render Blocking CSS', 'w3-total-cache' ); ?>">
<?php esc_html_e( 'Eliminate Render Blocking CSS', 'w3-total-cache' ); ?>
</a>
</div>
<div class="w3tc-footer-inner-column-50">
<a class="w3tc-footer-link" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-lazy-loading-for-your-wordpress-website-with-w3-total-cache/' ); ?>" alt="<?php esc_attr_e( 'Lazy Load Google Maps', 'w3-total-cache' ); ?>">
<?php esc_html_e( 'Lazy Load Google Maps', 'w3-total-cache' ); ?>
</a>
<a class="w3tc-footer-link" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/wpml/' ); ?>" alt="<?php esc_attr_e( 'WPML Extension', 'w3-total-cache' ); ?>">
<?php esc_html_e( 'WPML Extension', 'w3-total-cache' ); ?>
</a>
<a class="w3tc-footer-link" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/configuring-w3-total-cache-statistics-to-give-detailed-information-about-your-cache/' ); ?>" alt="<?php esc_attr_e( 'Caching Statistics', 'w3-total-cache' ); ?>">
<?php esc_html_e( 'Caching Statistics', 'w3-total-cache' ); ?>
</a>
<a class="w3tc-footer-link" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/purge-cache-log/' ); ?>" alt="<?php esc_attr_e( 'Purge Logs', 'w3-total-cache' ); ?>">
<?php esc_html_e( 'Purge Logs', 'w3-total-cache' ); ?>
</a>
</div>
<?php
if ( ! Util_Environment::is_w3tc_pro( $config ) ) {
echo '<input type="button" class="button button-buy-plugin {nonce: \'' . esc_attr( wp_create_nonce( 'w3tc' ) ) . '\'}"
data-src="footer" value="' . esc_html__( 'Learn more about Pro!', 'w3-total-cache' ) . '" />';
}
?>
</div>
<div class="w3tc-footer-column-1">
<h2><?php esc_html_e( 'Follow Us', 'w3-total-cache' ); ?></h2>
<a class="w3tc-footer-link" target="_blank" href="<?php echo esc_url( 'https://twitter.com/w3edge' ); ?>" alt="<?php esc_attr_e( 'W3 Edge', 'w3-total-cache' ); ?>">
<span class="dashicons dashicons-twitter"></span><?php esc_html_e( 'W3 Edge', 'w3-total-cache' ); ?>
</a>
<a class="w3tc-footer-link" target="_blank" href="<?php echo esc_url( 'https://twitter.com/boldgrid' ); ?>" alt="<?php esc_attr_e( 'BoldGrid', 'w3-total-cache' ); ?>">
<span class="dashicons dashicons-twitter"></span><?php esc_html_e( 'BoldGrid', 'w3-total-cache' ); ?>
</a>
<a class="w3tc-footer-link" target="_blank" href="<?php echo esc_url( 'https://www.facebook.com/boldgrid/' ); ?>" alt="<?php esc_attr_e( 'BoldGrid', 'w3-total-cache' ); ?>">
<span class="dashicons dashicons-facebook"></span><?php esc_html_e( 'BoldGrid', 'w3-total-cache' ); ?>
</a>
</div>
</div>
</div>

View File

@ -4,397 +4,7 @@ namespace W3TC;
if ( ! defined( 'W3TC' ) ) {
die();
}
$config = Dispatcher::config();
$state = Dispatcher::config_state();
$page = Util_Admin::get_current_page();
$licensing_visible = (
( ! Util_Environment::is_wpmu() || is_network_admin() ) &&
! ini_get( 'w3tc.license_key' ) &&
'host_valid' !== $state->get_string( 'license.status' )
);
do_action( 'w3tc-dashboard-head' );
?>
<div class="wrap" id="w3tc">
<h2 class="logo">
<?php
echo wp_kses(
sprintf(
// translators: 1 opening HTML span tag, 2 opening HTML sup tag, 3 closing HTML sup tag, 4 closing HTML span tag.
__(
'W3 Total Cache %1$sby W3 EDGE %2$s&reg;%3$s%4$s',
'w3-total-cache'
),
'<span>',
'<sup>',
'</sup>',
'</span>'
),
array(
'span' => array(),
'sup' => array(),
)
);
?>
</h2>
<?php if ( ! Util_Environment::is_w3tc_pro( $config ) ) : ?>
<?php require W3TC_INC_OPTIONS_DIR . '/edd/buy.php'; ?>
<?php endif ?>
<?php
switch ( $page ) {
case 'w3tc_general':
if ( ! empty( $_REQUEST['view'] ) ) {
break;
}
$anchors = array(
array(
'id' => 'general',
'text' => esc_html__( 'General', 'w3-total-cache' ),
),
array(
'id' => 'page_cache',
'text' => esc_html__( 'Page Cache', 'w3-total-cache' ),
),
array(
'id' => 'minify',
'text' => esc_html__( 'Minify', 'w3-total-cache' ),
),
array(
'id' => 'system_opcache',
'text' => esc_html__( 'Opcode Cache', 'w3-total-cache' ),
),
array(
'id' => 'database_cache',
'text' => esc_html__( 'Database Cache', 'w3-total-cache' ),
),
array(
'id' => 'object_cache',
'text' => esc_html__( 'Object Cache', 'w3-total-cache' ),
),
);
if ( Util_Environment::is_w3tc_pro( $config ) ) {
$anchors[] = array(
'id' => 'fragmentcache',
'text' => esc_html__( 'Fragment Cache', 'w3-total-cache' ),
);
}
$anchors = array_merge(
$anchors,
array(
array(
'id' => 'browser_cache',
'text' => esc_html__( 'Browser Cache', 'w3-total-cache' ),
),
array(
'id' => 'cdn',
'text' => wp_kses(
sprintf(
// translators: 1 opening HTML abbr tag, 2 closing HTML abbr tag.
__(
'%1$sCDN%2$s',
'w3-total-cache'
),
'<abbr title="' . esc_attr__( 'Content Delivery Network', 'w3-total-cache' ) . '">',
'</abbr>'
),
array(
'abbr' => array(
'title' => array(),
),
)
),
),
array(
'id' => 'reverse_proxy',
'text' => esc_html__( 'Reverse Proxy', 'w3-total-cache' ),
),
)
);
if ( Util_Environment::is_w3tc_pro() ) {
$anchors[] = array(
'id' => 'amazon_sns',
'text' => esc_html__( 'Message Bus', 'w3-total-cache' ),
);
}
$anchors[] = array(
'id' => 'monitoring',
'text' => esc_html__( 'Monitoring', 'w3-total-cache' ),
);
if ( $licensing_visible ) {
array(
'id' => 'licensing',
'text' => esc_html__( 'Licensing', 'w3-total-cache' ),
);
}
$link_attrs = array_merge(
$anchors,
$custom_areas,
array(
array(
'id' => 'google_page_speed',
'text' => __( 'Google PageSpeed', 'w3-total-cache' )
),
array(
'id' => 'miscellaneous',
'text' => esc_html__( 'Miscellaneous', 'w3-total-cache' ),
),
array(
'id' => 'debug',
'text' => esc_html__( 'Debug', 'w3-total-cache' ),
),
array(
'id' => 'settings',
'text' => esc_html__( 'Import / Export Settings', 'w3-total-cache' ),
),
)
);
$links = array();
foreach ( $link_attrs as $link ) {
$links[] = "<a href=\"#{$link['id']}\">{$link['text']}</a>";
}
$links[] = '<a href="#" class="button-self-test">Compatibility Test</a>';
?>
<p id="w3tc-options-menu">
<?php
echo wp_kses(
implode( ' | ', $links ),
array(
'a' => array(
'href' => array(),
'class' => array(),
),
)
);
?>
</p>
<?php
break;
case 'w3tc_pgcache':
?>
<p id="w3tc-options-menu">
<?php esc_html_e( 'Jump to:', 'w3-total-cache' ); ?>
<a href="#toplevel_page_w3tc_general"><?php esc_html_e( 'Main Menu', 'w3-total-cache' ); ?></a> |
<a href="#general"><?php esc_html_e( 'General', 'w3-total-cache' ); ?></a> |
<a href="#mirrors"><?php esc_html_e( 'Mirrors', 'w3-total-cache' ); ?></a> |
<a href="#advanced"><?php esc_html_e( 'Advanced', 'w3-total-cache' ); ?></a> |
<a href="#cache_preload"><?php esc_html_e( 'Cache Preload', 'w3-total-cache' ); ?></a> |
<a href="#purge_policy"><?php esc_html_e( 'Purge Policy', 'w3-total-cache' ); ?></a> |
<a href="#notes"><?php esc_html_e( 'Note(s)', 'w3-total-cache' ); ?></a>
</p>
<?php
break;
case 'w3tc_minify':
?>
<p id="w3tc-options-menu">
<?php esc_html_e( 'Jump to: ', 'w3-total-cache' ); ?>
<a href="#toplevel_page_w3tc_general"><?php esc_html_e( 'Main Menu', 'w3-total-cache' ); ?></a> |
<a href="#general"><?php esc_html_e( 'General', 'w3-total-cache' ); ?></a> |
<a href="#html_xml">
<?php
echo wp_kses(
sprintf(
// translators: 1 opening HTML acronym tag, 2 closing HTML acronym tag,
// translators: 3 opening HTML acronym tag, 4 closing HTML acronym tag.
__(
'%1$sHTML%2$s &amp; %3$sXML%4$s',
'w3-total-cache'
),
'<acronym title="' . esc_attr__( 'Hypertext Markup Language', 'w3-total-cache' ) . '">',
'</acronym>',
'<acronym title="' . esc_attr__( 'eXtensible Markup Language', 'w3-total-cache' ) . '">',
'</acronym>'
),
array(
'acronym' => array(
'title' => array(),
),
)
);
?>
</a> |
<a href="#js">
<?php
echo wp_kses(
sprintf(
// translators: 1 opening HTML acronym tag, 2 closing HTML acronym tag.
__(
'%1$sJS%2$s',
'w3-total-cache'
),
'<acronym title="' . esc_attr__( 'JavaScript', 'w3-total-cache' ) . '">',
'</acronym>'
),
array(
'acronym' => array(
'title' => array(),
),
)
);
?>
</a> |
<a href="#css">
<?php
echo wp_kses(
sprintf(
// translators: 1 opening HTML acronym tag, 2 closing HTML acronym tag.
__(
'%1$sCSS%2$s',
'w3-total-cache'
),
'<acronym title="' . esc_attr__( 'Cascading Style Sheet', 'w3-total-cache' ) . '">',
'</acronym>'
),
array(
'acronym' => array(
'title' => array(),
),
)
);
?>
</a> |
<a href="#advanced"><?php esc_html_e( 'Advanced', 'w3-total-cache' ); ?></a> |
<a href="#notes"><?php esc_html_e( 'Note(s)', 'w3-total-cache' ); ?></a>
</p>
<?php
break;
case 'w3tc_dbcache':
?>
<p id="w3tc-options-menu">
<?php esc_html_e( 'Jump to: ', 'w3-total-cache' ); ?>
<a href="#toplevel_page_w3tc_general"><?php esc_html_e( 'Main Menu', 'w3-total-cache' ); ?></a> |
<a href="#general"><?php esc_html_e( 'General', 'w3-total-cache' ); ?></a> |
<a href="#advanced"><?php esc_html_e( 'Advanced', 'w3-total-cache' ); ?></a>
</p>
<?php
break;
case 'w3tc_objectcache':
?>
<p id="w3tc-options-menu">
<?php esc_html_e( 'Jump to: ', 'w3-total-cache' ); ?>
<a href="#toplevel_page_w3tc_general"><?php esc_html_e( 'Main Menu', 'w3-total-cache' ); ?></a> |
<a href="#advanced"><?php esc_html_e( 'Advanced', 'w3-total-cache' ); ?></a>
</p>
<?php
break;
case 'w3tc_browsercache':
?>
<p id="w3tc-options-menu">
<?php esc_html_e( 'Jump to: ', 'w3-total-cache' ); ?>
<a href="#toplevel_page_w3tc_general"><?php esc_html_e( 'Main Menu', 'w3-total-cache' ); ?></a> |
<a href="#general"><?php esc_html_e( 'General', 'w3-total-cache' ); ?></a> |
<a href="#css_js">
<?php
echo wp_kses(
sprintf(
// translators: 1 opening HTML acronym tag, 2 closing HTML acronym tag,
// translators: 3 opening HTML acronym tag, 4 closing HTML acronym tag.
__(
'%1$sCSS%2$s &amp; %3$sJS%4$s',
'w3-total-cache'
),
'<acronym title="' . esc_attr__( 'Cascading Style Sheet', 'w3-total-cache' ) . '">',
'</acronym>',
'<acronym title="' . esc_attr__( 'JavaScript', 'w3-total-cache' ) . '">',
'</acronym>'
),
array(
'acronym' => array(
'title' => array(),
),
)
);
?>
</a> |
<a href="#html_xml">
<?php
echo wp_kses(
sprintf(
// translators: 1 opening HTML acronym tag, 2 closing HTML acronym tag,
// translators: 3 opening HTML acronym tag, 4 closing HTML acronym tag.
__(
'%1$sHTML%2$s &amp; %3$sXML%4$s',
'w3-total-cache'
),
'<acronym title="' . esc_attr__( 'Hypertext Markup Language', 'w3-total-cache' ) . '">',
'</acronym>',
'<acronym title="' . esc_attr__( 'eXtensible Markup Language', 'w3-total-cache' ) . '">',
'</acronym>'
),
array(
'acronym' => array(
'title' => array(),
),
)
);
?>
</a> |
<a href="#media"><?php esc_html_e( 'Media', 'w3-total-cache' ); ?></a> |
<a href="#security"><?php esc_html_e( 'Security Headers', 'w3-total-cache' ); ?></a>
</p>
<?php
break;
case 'w3tc_cachegroups':
?>
<p id="w3tc-options-menu">
<?php esc_html_e( 'Jump to: ', 'w3-total-cache' ); ?>
<a href="#toplevel_page_w3tc_general"><?php esc_html_e( 'Main Menu', 'w3-total-cache' ); ?></a> |
<a href="#manage-uag"><?php esc_html_e( 'Manage User Agent Groups', 'w3-total-cache' ); ?></a> |
<a href="#manage-rg"><?php esc_html_e( 'Manage Referrer Groups', 'w3-total-cache' ); ?></a> |
<a href="#manage-cg"><?php esc_html_e( 'Manage Cookie Groups', 'w3-total-cache' ); ?></a>
</p>
<?php
break;
case 'w3tc_install':
?>
<p id="w3tc-options-menu">
<?php esc_html_e( 'Jump to:', 'w3-total-cache' ); ?>
<a href="#initial"><?php esc_html_e( 'Initial Installation', 'w3-total-cache' ); ?></a> |
<?php if ( count( $rewrite_rules_descriptors ) ) : ?>
<a href="#rules"><?php esc_html_e( 'Rewrite Rules', 'w3-total-cache' ); ?></a> |
<?php endif ?>
<?php if ( count( $other_areas ) ) : ?>
<a href="#other"><?php esc_html_e( 'Other', 'w3-total-cache' ); ?></a> |
<?php endif ?>
<a href="#additional"><?php esc_html_e( 'Services', 'w3-total-cache' ); ?></a> |
<a href="#modules">
<?php
echo wp_kses(
sprintf(
// translators: 1 opening HTML acronym tag, 2 closing HTML acronym tag.
__(
'%1$sPHP%2$s Modules',
'w3-total-cache'
),
'<acronym title="' . esc_attr__( 'Hypertext Preprocessor', 'w3-total-cache' ) . '">',
'</acronym>'
),
array(
'acronym' => array(
'title' => array(),
),
)
);
?>
</a>
</p>
<?php
break;
}
?>
<?php Util_Ui::print_breadcrumb(); ?>

View File

@ -0,0 +1,218 @@
<?php
/**
* File: top_nav_bar.php
*
* @package W3TC
*/
namespace W3TC;
if ( ! defined( 'W3TC' ) ) {
die();
}
$config = Dispatcher::config();
$menu_array = array(
'settings' => array(
array(
'url' => Util_Ui::admin_url( 'admin.php?page=w3tc_general' ),
'text' => __( 'General Settings', 'w3-total-cache' ),
),
array(
'url' => Util_Ui::admin_url( 'admin.php?page=w3tc_pgcache' ),
'text' => __( 'Page Cache', 'w3-total-cache' ),
),
array(
'url' => Util_Ui::admin_url( 'admin.php?page=w3tc_minify' ),
'text' => __( 'Minify', 'w3-total-cache' ),
),
array(
'url' => Util_Ui::admin_url( 'admin.php?page=w3tc_dbcache' ),
'text' => __( 'Database Cache', 'w3-total-cache' ),
),
array(
'url' => Util_Ui::admin_url( 'admin.php?page=w3tc_objectcache' ),
'text' => __( 'Object Cache', 'w3-total-cache' ),
),
array(
'url' => Util_Ui::admin_url( 'admin.php?page=w3tc_browsercache' ),
'text' => __( 'Browser Cache', 'w3-total-cache' ),
),
array(
'url' => Util_Ui::admin_url( 'admin.php?page=w3tc_cachegroups' ),
'text' => __( 'Cache Groups', 'w3-total-cache' ),
),
array(
'url' => Util_Ui::admin_url( 'admin.php?page=w3tc_cdn' ),
'text' => 'CDN',
),
array(
'url' => Util_Ui::admin_url( 'admin.php?page=w3tc_fragmentcache' ),
'text' => __( 'Fragment Cache', 'w3-total-cache' ),
),
array(
'url' => Util_Ui::admin_url( 'admin.php?page=w3tc_userexperience' ),
'text' => __( 'User Experience', 'w3-total-cache' ),
),
),
'tools' => array(
array(
'url' => Util_Ui::admin_url( 'admin.php?page=w3tc_extensions' ),
'text' => __( 'Extensions', 'w3-total-cache' ),
),
array(
'url' => Util_Ui::admin_url( 'admin.php?page=w3tc_stats' ),
'text' => __( 'Statistics', 'w3-total-cache' ),
),
array(
'url' => $config->is_extension_active( 'imageservice' )
? Util_Ui::admin_url( 'upload.php?page=w3tc_extension_page_imageservice' )
: Util_Ui::admin_url( 'admin.php?page=w3tc_general#image_service' ),
'text' => __( 'WebP Converter', 'w3-total-cache' ),
),
array(
'url' => Util_Ui::admin_url( 'admin.php?page=w3tc_pagespeed' ),
'text' => __( 'Google PageSpeed', 'w3-total-cache' ),
),
array(
'url' => Util_Ui::admin_url( 'admin.php?page=w3tc_setup_guide' ),
'text' => __( 'Setup Guide', 'w3-total-cache' ),
),
),
'info' => array(
array(
'url' => Util_UI::admin_url( 'admin.php?page=w3tc_about' ),
'text' => __( 'About', 'w3-total-cache' ),
),
array(
'url' => Util_Ui::admin_url( 'admin.php?page=w3tc_feature_showcase' ),
'text' => __( 'Feature Showcase', 'w3-total-cache' ),
),
array(
'url' => Util_Ui::admin_url( 'admin.php?page=w3tc_install' ),
'text' => __( 'Install', 'w3-total-cache' ),
),
array(
'url' => '#',
'text' => __( 'Compatibility Test', 'w3-total-cache' ),
'class' => 'compatiblity-test button-self-test',
),
array(
'url' => 'https://api.w3-edge.com/v1/redirects/faq',
'text' => 'FAQ',
'target' => '_blank',
'dashicon' => '<span class="dashicons dashicons-external"></span>',
),
),
);
do_action( 'w3tc_dashboard_top_nav_bar' );
?>
<div id="w3tc-top-nav-bar">
<div id="w3tc-top-nav-bar-content">
<a class="logo-link" href="<?php echo esc_url( Util_UI::admin_url( 'admin.php?page=w3tc_dashboard' ) ); ?>" alt="W3 Total Cache">
<h2 class="logo">
<?php
echo wp_kses(
sprintf(
// translators: 1 opening HTML span tag, 2 opening HTML sup tag, 3 closing HTML sup tag, 4 closing HTML span tag.
__(
'W3 Total Cache %1$sby W3 EDGE %2$s&reg;%3$s%4$s',
'w3-total-cache'
),
'<span>',
'<sup>',
'</sup>',
'</span>'
),
array(
'span' => array(),
'sup' => array(),
)
);
?>
</h2>
</a>
<div id="w3tc-top-nav-bar-content-links">
<a class="w3tc-top-nav-support" href="<?php echo esc_url( Util_UI::admin_url( 'admin.php?page=w3tc_dashboard' ) ); ?>" alt="<?php esc_attr_e( 'Dashboard', 'w3-total-cache' ); ?>">
<?php esc_html_e( 'Dashboard', 'w3-total-cache' ); ?>
</a>
<div class="w3tc-top-nav-dropdown">
<a class="w3tc-top-nav-settings no-link" href="#" alt="<?php esc_attr_e( 'Settings', 'w3-total-cache' ); ?>">
<?php esc_html_e( 'Settings', 'w3-total-cache' ); ?><span class="dashicons dashicons-arrow-down-alt2"></span>
</a>
<div id="w3tc-top-nav-settings-menu" class="w3tc-top-nav-dropdown-content">
<?php
foreach ( $menu_array['settings'] as $entry ) {
$output = sprintf(
// translators: 1 link class, 2 link href URL , 3 link alt text, 4 link target, 5 link text, 6 link text dashicon.
'<a %1$s href="%2$s" alt="%3$s"%4$s>%5$s%6$s</a>',
! empty( $entry['class'] ) ? ' class="' . esc_attr( $entry['class'] ) . '" ': '',
esc_url( $entry['url'] ),
esc_attr( $entry['text'] ),
( ! empty( $entry['target'] ) ? ' target="' . esc_attr( $entry['target'] ) . '"' : '' ),
esc_html( $entry['text'] ),
( ! empty( $entry['dashicon'] ) ? $entry['dashicon'] : '' )
);
echo wp_kses( $output, Util_Ui::get_allowed_html_for_wp_kses_from_content( $output ) );
}
?>
</div>
</div>
<div class="w3tc-top-nav-dropdown">
<a class="w3tc-top-nav-tools no-link" href="#" alt="<?php esc_attr_e( 'Tools', 'w3-total-cache' ); ?>">
<?php esc_html_e( 'Tools', 'w3-total-cache' ); ?><span class="dashicons dashicons-arrow-down-alt2"></span>
</a>
<div id="w3tc-top-nav-tools-menu" class="w3tc-top-nav-dropdown-content">
<?php
foreach ( $menu_array['tools'] as $entry ) {
$output = sprintf(
// translators: 1 link class, 2 link href URL , 3 link alt text, 4 link target, 5 link text, 6 link text dashicon.
'<a %1$s href="%2$s" alt="%3$s"%4$s>%5$s%6$s</a>',
! empty( $entry['class'] ) ? ' class="' . esc_attr( $entry['class'] ) . '" ': '',
esc_url( $entry['url'] ),
esc_attr( $entry['text'] ),
( ! empty( $entry['target'] ) ? ' target="' . esc_attr( $entry['target'] ) . '"' : '' ),
esc_html( $entry['text'] ),
( ! empty( $entry['dashicon'] ) ? $entry['dashicon'] : '' )
);
echo wp_kses( $output, Util_Ui::get_allowed_html_for_wp_kses_from_content( $output ) );
}
?>
</div>
</div>
<div class="w3tc-top-nav-dropdown">
<a class="w3tc-top-nav-info no-link" href="#" alt="<?php esc_attr_e( 'Info', 'w3-total-cache' ); ?>">
<?php esc_html_e( 'Info', 'w3-total-cache' ); ?><span class="dashicons dashicons-arrow-down-alt2"></span>
</a>
<div id="w3tc-top-nav-info-menu" class="w3tc-top-nav-dropdown-content">
<?php
foreach ( $menu_array['info'] as $entry ) {
$output = sprintf(
// translators: 1 link class, 2 link href URL , 3 link alt text, 4 link target, 5 link text, 6 link text dashicon.
'<a %1$s href="%2$s" alt="%3$s"%4$s>%5$s%6$s</a>',
! empty( $entry['class'] ) ? ' class="' . esc_attr( $entry['class'] ) . '" ': '',
esc_url( $entry['url'] ),
esc_attr( $entry['text'] ),
( ! empty( $entry['target'] ) ? ' target="' . esc_attr( $entry['target'] ) . '"' : '' ),
esc_html( $entry['text'] ),
( ! empty( $entry['dashicon'] ) ? $entry['dashicon'] : '' )
);
echo wp_kses( $output, Util_Ui::get_allowed_html_for_wp_kses_from_content( $output ) );
}
?>
</div>
</div>
<a class="w3tc-top-nav-support" href="<?php echo esc_url( Util_UI::admin_url( 'admin.php?page=w3tc_support' ) ); ?>" alt="<?php esc_attr_e( 'Support', 'w3-total-cache' ); ?>">
<?php esc_html_e( 'Support', 'w3-total-cache' ); ?>
</a>
<?php
if ( ! Util_Environment::is_w3tc_pro( $config ) ) {
echo '<input type="button" class="button-primary button-buy-plugin {nonce: \'' . esc_attr( wp_create_nonce( 'w3tc' ) ) . '\'}"
data-src="top_nav_bar" value="' . esc_html__( 'Upgrade', 'w3-total-cache' ) . '" />';
}
?>
</div>
</div>
</div>