first commit

This commit is contained in:
2026-05-07 13:42:43 +02:00
commit 84820c45a3
151 changed files with 14696 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
<?php
namespace HelloTheme\Modules\AdminHome\Components;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
class Finder {
public function add_hello_theme_finder_entry( $categories_data ) {
if ( isset( $categories_data['site'] ) && isset( $categories_data['site']['items'] ) ) {
$categories_data['site']['items']['hello-elementor-home'] = [
'title' => esc_html__( 'Hello Theme Home', 'hello-elementor' ),
'icon' => 'paint-brush',
'url' => admin_url( 'admin.php?page=hello-elementor' ),
'keywords' => [ 'theme', 'hello', 'home', 'plus', '+' ],
];
}
return $categories_data;
}
public function __construct() {
add_filter( 'elementor/finder/categories', [ $this, 'add_hello_theme_finder_entry' ] );
}
}