����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* Copyright (с) Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2025 All Rights Reserved
*
* Licensed under CLOUD LINUX LICENSE AGREEMENT
* https://www.cloudlinux.com/legal/
*/
namespace CloudLinux\Imunify\App;
use CloudLinux\Imunify\App\Views\Widget;
/**
* Handles loading of JavaScript and CSS assets for the widget.
*/
class AssetLoader {
/**
* Asset handle for the widget styles and scripts.
*/
const WIDGET_HANDLE = 'imunify-security-widget';
/**
* The widget instance.
*
* @var Widget
*/
private $widget;
/**
* Constructor.
*
* @param Widget $widget The widget instance.
*/
public function __construct( Widget $widget ) {
$this->widget = $widget;
add_action( 'admin_enqueue_scripts', array( $this, 'enqueueAssets' ) );
}
/**
* Enqueues assets if the widget will be rendered.
*
* @param string $hook The current admin page hook.
* @return void
*/
public function enqueueAssets( $hook ) {
// Widget assets.
if ( 'index.php' === $hook && $this->widget->willBeRendered() ) {
$plugin_url = plugin_dir_url( IMUNIFY_SECURITY_FILE_PATH );
wp_enqueue_style(
self::WIDGET_HANDLE,
"{$plugin_url}assets/css/admin.min.css",
array(),
IMUNIFY_SECURITY_VERSION
);
wp_enqueue_script(
self::WIDGET_HANDLE,
"{$plugin_url}assets/js/admin.min.js",
array( 'jquery' ),
IMUNIFY_SECURITY_VERSION,
true
);
wp_localize_script(
self::WIDGET_HANDLE,
'imunifyWidget',
array(
'ajaxUrl' => admin_url( 'admin-ajax.php' ),
'snoozeNonce' => wp_create_nonce( Widget::WIDGET_SNOOZE_NONCE_NAME ),
'wafMonitoringTooltip' => $this->widget->getWafMonitoringTooltipData(),
)
);
}
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Api | Folder | 0755 |
|
|
| Defender | Folder | 0755 |
|
|
| Exception | Folder | 0755 |
|
|
| Helpers | Folder | 0755 |
|
|
| Model | Folder | 0755 |
|
|
| Views | Folder | 0755 |
|
|
| AccessManager.php | File | 1.99 KB | 0644 |
|
| AssetLoader.php | File | 1.7 KB | 0644 |
|
| DataStore.php | File | 12.55 KB | 0644 |
|
| Debug.php | File | 13.63 KB | 0644 |
|
| Environment.php | File | 1.67 KB | 0644 |
|
| Plugin.php | File | 4.7 KB | 0644 |
|
| PluginUpdateManager.php | File | 1.67 KB | 0644 |
|
| View.php | File | 999 B | 0644 |
|