HEX
Server: LiteSpeed
System: Linux cde2.duelhost.dk 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64
User: dtptviut (1121)
PHP: 8.0.30
Disabled: exec,system,passthru,shell_exec,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/dtptviut/public_html/wp-content/plugins/w3-total-cache/Generic_WidgetServices.php
<?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() {
		$w3tc_o = new Generic_WidgetServices();
		add_action( 'w3tc_widget_setup', array( $w3tc_o, 'wp_dashboard_setup' ), 600 );
		add_action( 'w3tc_network_dashboard_setup', array( $w3tc_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' ),
		);
	}
}