| Server IP : 104.21.21.239 / Your IP : 216.73.217.54 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/tgnew/wp-content/plugins/w3-total-cache/ |
Upload File : |
<?php
/**
* File: Generic_WidgetServices.php
*
* @package W3TC
*/
namespace W3TC;
/**
* Class Generic_WidgetServices
*/
class Generic_WidgetServices {
/**
* Constructor
*/
public function __construct() {
}
/**
* Dashboard setup action
*
* @return void
*/
public static function admin_init_w3tc_dashboard() {
$o = new Generic_WidgetServices();
add_action( 'w3tc_widget_setup', array( $o, 'wp_dashboard_setup' ), 600 );
add_action( 'w3tc_network_dashboard_setup', array( $o, 'wp_dashboard_setup' ), 600 );
}
/**
* W3TC dashboard Premium Services widget.
*/
public function wp_dashboard_setup() {
Util_Widget::add(
'w3tc_services',
'<div class="w3tc-widget-w3tc-logo"></div><div class="w3tc-widget-text">' . __( 'Premium Services', 'w3-total-cache' ) . '</div>',
array( $this, 'widget_form' ),
null,
'normal'
);
}
/**
* Premium Services widget content.
*/
public function widget_form() {
include W3TC_DIR . '/Generic_WidgetServices_View.php';
}
/**
* Premium Services widget services list.
*/
public static function get_services() {
return array(
__( 'Billing Support', 'w3-total-cache' ),
__( 'Sales Questions', 'w3-total-cache' ),
__( 'Submit a Bug Report', 'w3-total-cache' ),
__( 'Suggest a New Feature', 'w3-total-cache' ),
__( 'Performance Audit & Consultation', 'w3-total-cache' ),
__( 'Plugin Configuration', 'w3-total-cache' ),
__( 'CDN Configuration: Full-Site Delivery', 'w3-total-cache' ),
__( 'Hosting Environment Troubleshooting', 'w3-total-cache' ),
__( 'Eliminate render-blocking JavaScript', 'w3-total-cache' ),
__( 'Investigate Compatibility Issue', 'w3-total-cache' ),
);
}
}