WordPress

Briefly unavailable for scheduled maintenance.
Check back in a some hours.
403WebShell
403Webshell
Server IP : 38.242.244.58  /  Your IP : 216.73.217.174
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux vmi1486879.contaboserver.net 5.4.0-166-generic #183-Ubuntu SMP Mon Oct 2 11:28:33 UTC 2023 x86_64
User : root ( 0)
PHP Version : 7.4.3-4ubuntu2.19
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/html/tribe_david/wp-content/plugins/click-to-copy/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/tribe_david/wp-content/plugins/click-to-copy/inc/AdminMenu.php
<?php

if ( !defined( 'ABSPATH' ) ) { exit; }

class CTCadminMenu {
	public function __construct() {
		add_action( 'admin_menu', [ $this, 'adminMenu' ] );
		add_action( 'admin_enqueue_scripts', [ $this, 'adminEnqueueScripts' ] );
	}

	public function adminMenu() {
		add_submenu_page(
			'tools.php',
			__( 'Click To Copy - bPlugins', 'click-to-copy' ), 
			__( 'Click To Copy', 'click-to-copy' ),           
			'manage_options',
			'click-to-copy-dashboard',
			[ $this, 'renderDashboardPage' ]
		);

	}

	// Dashboard Page
	public function renderDashboardPage() { ?>
		<div
			id="CTCBClickToCopy"
			data-info='<?php echo esc_attr( wp_json_encode( [
				'version'   => CTC_PLUGIN_VERSION,
				'isPremium' => bpctcPremiumChecker(),
				'hasPro'    => CTC_HAS_PRO
			] ) ); ?>'
		></div>
	<?php }

	// Help & Demo Page
	public function renderHelpPage() { ?>
		<div class="wrap">
			<h1><?php _e( 'Click To Copy - Help & Demo', 'click-to-copy' ); ?></h1>
			<p><?php _e( 'Here you can find documentation, demos, and support links for Click To Copy plugin.', 'click-to-copy' ); ?></p>
		</div>
	<?php }

	// Load scripts only for these pages
	public function adminEnqueueScripts( $hook ) {
		if ( strpos( $hook, 'click-to-copy-dashboard' ) !== false || strpos( $hook, 'click-to-copy-help' ) !== false ) {
			wp_enqueue_style( 'ctc-admin-dashboard', CTC_DIR_URL . 'build/admin-dashboard.css', [], CTC_PLUGIN_VERSION );
			wp_enqueue_script( 'ctc-admin-dashboard', CTC_DIR_URL . 'build/admin-dashboard.js', [ 'react', 'react-dom' ], CTC_PLUGIN_VERSION, true );
			wp_set_script_translations( 'ctc-admin-dashboard', 'click-to-copy', CTC_DIR_PATH . 'languages' );
		}
	}
}

new CTCadminMenu();

Youez - 2016 - github.com/yon3zu
LinuXploit