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
@@ -56,6 +56,7 @@ class HFE_Admin {
public static function load_admin() {
add_action( 'elementor/editor/after_enqueue_styles', __CLASS__ . '::hfe_admin_enqueue_scripts' );
add_action( 'admin_head', __CLASS__ . '::hfe_admin_enqueue_scripts' );
add_action( 'elementor/editor/before_enqueue_scripts', __CLASS__ . '::hfe_enqueue_editor_bar_script' );
}
/**
@@ -80,6 +81,35 @@ class HFE_Admin {
}
/**
* Enqueue editor bar script for Elementor editor only
*
* @since 2.6.1
* @access public
* @return void
*/
public static function hfe_enqueue_editor_bar_script() {
wp_register_script(
'hfe-elementor',
HFE_URL . 'assets/js/hfe-elementor-editor-bar-simple.js',
[ 'jquery', 'wp-data', 'wp-i18n' ],
HFE_VER,
false
);
// Pass UAE Pro status and icon URL to JavaScript
$plugin_file = 'ultimate-elementor/ultimate-elementor.php';
$is_uae_pro_active = ! file_exists( WP_PLUGIN_DIR . '/' . $plugin_file ) && ! HFE_Helper::is_pro_active() ;
wp_localize_script( 'hfe-elementor', 'hfeEditorConfig', array(
'isUAEPro' => ! $is_uae_pro_active,
'iconUrl' => HFE_URL . 'assets/images/settings/logo-white.svg',
'strings' => array(
'headerFooterBuilder' => __( 'Header Footer Builder', 'header-footer-elementor' )
)
));
wp_enqueue_script( 'hfe-elementor' );
}
/**
* Constructor