modified file w3-total-cache
This commit is contained in:
@ -0,0 +1,111 @@
|
||||
<?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®%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>
|
||||
<a class="w3tc-footer-link" target="_blank" href="<?php echo esc_url( 'https://www.boldgrid.com/support/w3-total-cache/delay-scripts-tool/' ); ?>" alt="<?php esc_attr_e( 'Delay Scripts', 'w3-total-cache' ); ?>">
|
||||
<?php esc_html_e( 'Delay Scripts', '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>
|
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
namespace W3TC;
|
||||
|
||||
if ( ! defined( 'W3TC' ) ) {
|
||||
die();
|
||||
}
|
||||
do_action( 'w3tc-dashboard-head' );
|
||||
?>
|
||||
<div class="wrap" id="w3tc">
|
||||
<?php Util_Ui::print_breadcrumb(); ?>
|
@ -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®%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>
|
Reference in New Issue
Block a user