updated plugin W3 Total Cache version 2.7.1

This commit is contained in:
2024-04-19 10:59:45 +00:00
committed by Gitium
parent 9420356fcf
commit 1a790bdd29
66 changed files with 3082 additions and 2126 deletions

View File

@ -18,6 +18,50 @@ $can_purge = Cdn_Util::can_purge( $cdn_engine );
require W3TC_INC_DIR . '/options/common/header.php';
?>
<div id="w3tc-bunnycdn-ad-cdn">
<?php
echo wp_kses(
sprintf(
// translators: 1 HTML img tag for Bunny CDN Icon Bunny Rocket, 2 opening HTML strong tag, 3 closing HTML strong tag,
// translators: 4 HTML input for Bunny CDN sign up, 5 HTML div tag for Bunny CDN logo svg.
__(
'%1$s%2$sLooking for a top rated CDN Provider? Try Bunny CDN.%3$s%4$s%5$s',
'w3-total-cache'
),
'<img class="w3tc-bunnycdn-icon-bunny-rocket" src="' . esc_url( plugins_url( '/pub/img/w3tc_bunnycdn_bunny_rocket.png', W3TC_FILE ) ) . '" alt="Bunny CDN Icon Bunny Rocket" width="90">',
'<strong>',
'</strong>',
Util_Ui::button_link(
__( 'Sign up now to enjoy a special offer!', 'w3-total-cache' ),
esc_url( W3TC_BUNNYCDN_SIGNUP_URL ),
true,
'w3tc-bunnycdn-promotion-button',
'w3tc-bunnycdn-promotion-button'
),
'<div class="w3tc-bunnycdn-logo"></div>'
),
array(
'strong' => array(),
'img' => array(
'class' => array(),
'src' => array(),
'alt' => array(),
'width' => array(),
),
'div' => array(
'class' => array(),
),
'input' => array(
'type' => array(),
'name' => array(),
'class' => array(),
'value' => array(),
'onclick' => array(),
),
)
);
?>
</div>
<p>
<?php
echo wp_kses(

View File

@ -36,6 +36,12 @@ do_action( 'w3tc-dashboard-footer' );
?>
</h2>
</a>
<?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( 'Documentation', 'w3-total-cache' ); ?></h2>
@ -45,8 +51,6 @@ do_action( 'w3tc-dashboard-footer' );
<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' ); ?>
@ -94,12 +98,6 @@ do_action( 'w3tc-dashboard-footer' );
<?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>
@ -113,5 +111,11 @@ do_action( 'w3tc-dashboard-footer' );
<span class="dashicons dashicons-facebook"></span><?php esc_html_e( 'BoldGrid', 'w3-total-cache' ); ?>
</a>
</div>
<div class="w3tc-footer-column-1">
<h2><?php esc_html_e( 'Partners', 'w3-total-cache' ); ?></h2>
<a class="w3tc-footer-link" target="_blank" href="<?php echo esc_url( W3TC_BUNNYCDN_SIGNUP_URL ); ?>" alt="Bunny CDN">
<div class="w3tc-bunnycdn-logo"></div>
</a>
</div>
</div>
</div>