Skip to content

Commit

Permalink
TMZ-61 helloPlusLogo available in the window
Browse files Browse the repository at this point in the history
  • Loading branch information
mserino committed Oct 21, 2024
1 parent 25f2d8f commit d192d16
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ export default class helloPlusLogo {
}
}

new helloPlusLogo();
const HelloPlusLogoClass = new helloPlusLogo();
window.helloPlusLogo = HelloPlusLogoClass;
4 changes: 2 additions & 2 deletions modules/template-parts/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ public function enqueue(): void {

public function editor_enqueue(): void {
wp_enqueue_script(
'hello-plus-header-editor',
HELLO_PLUS_SCRIPTS_URL . 'hello-plus-header-editor.js',
'hello-plus-template-parts-editor',
HELLO_PLUS_SCRIPTS_URL . 'hello-plus-template-parts-editor.js',
[ 'elementor-editor' ],
HELLO_PLUS_ELEMENTOR_VERSION,
true
Expand Down
2 changes: 1 addition & 1 deletion modules/template-parts/widgets/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public function add_content_brand_section(): void {
[
'type' => Controls_Manager::ALERT,
'alert_type' => 'info',
'content' => esc_html__( 'Go to', 'hello-plus' ) . ' <a href="#" onclick="elementorPro.modules.themeBuilder.openSiteIdentity( event )" >' . esc_html__( 'Site Identity > Site Description', 'hello-plus' ) . '</a>' . esc_html__( ' to edit the Site Title', 'hello-plus' ),
'content' => esc_html__( 'Go to', 'hello-plus' ) . ' <a href="#" onclick="helloPlusLogo.openSiteIdentity( event )" >' . esc_html__( 'Site Identity > Site Description', 'hello-plus' ) . '</a>' . esc_html__( ' to edit the Site Title', 'hello-plus' ),
'condition' => [
'site_logo_brand_select' => 'title',
],
Expand Down
2 changes: 1 addition & 1 deletion modules/template-parts/widgets/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ protected function add_content_site_logo_section() {
[
'type' => Controls_Manager::ALERT,
'alert_type' => 'info',
'content' => esc_html__( 'Go to', 'hello-plus' ) . ' <a href="#" onclick="elementorPro.modules.themeBuilder.openSiteIdentity( event )" >' . esc_html__( 'Site Identity > Site Description', 'hello-plus' ) . '</a>' . esc_html__( ' to edit the Site Title', 'hello-plus' ),
'content' => esc_html__( 'Go to', 'hello-plus' ) . ' <a href="#" onclick="helloPlusLogo.openSiteIdentity( event )" >' . esc_html__( 'Site Identity > Site Description', 'hello-plus' ) . '</a>' . esc_html__( ' to edit the Site Title', 'hello-plus' ),
'condition' => [
'site_logo_brand_select' => 'title',
],
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const entryPoints = {
'css/hello-plus-header': path.resolve( modulesDir, 'template-parts/assets/scss', 'hello-plus-header.scss' ),
'css/hello-plus-footer': path.resolve( modulesDir, 'template-parts/assets/scss', 'hello-plus-footer.scss' ),
'js/hello-plus-header': path.resolve( modulesDir, 'template-parts/assets/js', 'hello-plus-header.js' ),
'js/hello-plus-header-editor': path.resolve( modulesDir, 'template-parts/assets/js', 'hello-plus-header-editor.js' ),
'js/hello-plus-template-parts-editor': path.resolve( modulesDir, 'template-parts/assets/js', 'hello-plus-template-parts-editor.js' ),

// Theme module
'css/theme': path.resolve( modulesDir, 'theme/assets/scss', 'theme.scss' ),
Expand Down

0 comments on commit d192d16

Please sign in to comment.