first commit

This commit is contained in:
Ryan Ariana
2024-05-06 11:04:37 +07:00
commit aee061ddba
7322 changed files with 2918816 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
export default class Module extends elementorModules.Module {
#actionLinks = [
{
href: 'elementor_pro_renew_license_menu_link',
external_url: 'https://go.elementor.com/wp-menu-renew/',
},
{
href: 'elementor_pro_upgrade_license_menu_link',
external_url: 'https://go.elementor.com/go-pro-advanced-elementor-menu/',
},
];
onInit() {
this.assignMenuItemActions();
}
assignMenuItemActions() {
window.addEventListener( 'DOMContentLoaded', () => {
this.#actionLinks.forEach( ( item ) => {
const link = document.querySelector( `a[href="${ item.href }"]` );
if ( ! link ) {
return;
}
link.addEventListener( 'click', ( e ) => {
e.preventDefault();
window.open( item.external_url, '_blank' );
} );
} );
} );
}
}