Cleaning repo & changes on readME

This commit is contained in:
2025-11-21 14:14:09 +00:00
parent df1f90c6cd
commit 97b818da54
1395 changed files with 85615 additions and 130792 deletions
@@ -0,0 +1,31 @@
<?php
namespace HelloTheme\Modules\AdminHome\Components;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
use HelloTheme\Includes\Script;
class Scripts_Controller {
public function __construct() {
add_action( 'admin_enqueue_scripts', [ $this, 'admin_enqueue_scripts' ] );
}
public function admin_enqueue_scripts() {
$screen = get_current_screen();
if ( 'toplevel_page_' . EHP_THEME_SLUG !== $screen->id ) {
return;
}
$script = new Script(
'hello-home-app',
[ 'wp-util' ]
);
$script->enqueue();
}
}