laipower/wp-content/upgrade-temp-backup/plugins/w3-total-cache/Cdn_Highwinds_Widget_View.php

61 lines
1.9 KiB
PHP

<?php
namespace W3TC;
if ( ! defined( 'W3TC' ) ) {
die();
}
?>
<p>
<div class="notice notice-warning inline">
<p>
<?php
// HighWinds sunset is 12:00 am Central (UTC-6:00) on November, 22, 2023 (1700629200).
$date_time_format = get_option( 'date_format' ) . ' ' . get_option( 'time_format' );
printf(
// translators: 1 HighWinds sunset datetime.
__(
'HighWinds will cease operations at %1$s.',
'w3-total-cache'
),
wp_date( $date_time_format, '1700629200' )
);
?>
</p>
</div>
</p>
<div class="wrapper">
<div class="tools area">
<ul class="w3tchw_tools">
<li><a class="button"
href="<?php echo esc_url( $url_manage ); ?>"><?php esc_html_e( 'Manage', 'w3-total-cache' ); ?></a>
</li>
<li><a class="button"
href="<?php echo esc_url( $url_analyze ); ?>"><?php esc_html_e( 'Reports', 'w3-total-cache' ); ?></a>
</li>
<li><a class="button" href="<?php echo esc_url( $url_purge ); ?>"
onclick="w3tc_popupadmin_bar(this.href); return false"><?php esc_html_e( 'Purge', 'w3-total-cache' ); ?></a>
</li>
</ul>
</div>
<div class="w3tchw_loading w3tc_loading w3tc_hidden">Loading...</div>
<div class="w3tchw_error w3tc_none">
An error occurred
<div class="w3tchw_error_details"></div>
</div>
<div class="w3tchw_content w3tc_hidden">
<div class="summary area">
<h4><?php esc_html_e( 'Report - 30 days', 'w3-total-cache' ); ?></h4>
<ul id="w3tchw_report">
<li>Transferred: <span class="w3tchw_transferred_size"></span></li>
<li>Average rate Mb/s: <span class="w3tchw_average_mbps"></span></li>
<li>Average requests/s: <span class="w3tchw_average_rps"></span></li>
</ul>
</div>
<div class="charts area">
<h4><?php esc_html_e( 'Requests', 'w3-total-cache' ); ?></h4>
<div id="w3tchw_chart" style="width: 320px; height: 220px;margin-left: auto; margin-right: auto;"></div>
</div>
</div>
</div>