File manager - Edit - /home/palg2351/public_html/wp-content/themes/blocksy/static/js/notification/main.js
Back
import { createElement, createRoot } from '@wordpress/element' import Notification from './Notification' import $ from 'jquery' export const mount = (el) => { if (el.querySelector('.notice-blocksy-plugin-root')) { const root = createRoot(el.querySelector('.notice-blocksy-plugin-root')) root.render( <Notification initialStatus={ el.querySelector('.notice-blocksy-plugin-root').dataset .pluginStatus } url={ el.querySelector('.notice-blocksy-plugin-root').dataset.url } pluginUrl={ el.querySelector('.notice-blocksy-plugin-root').dataset .pluginUrl } pluginLink={ el.querySelector('.notice-blocksy-plugin-root').dataset.link } /> ) } ;[...document.querySelectorAll('[data-dismiss]')].map((el) => { el.addEventListener('click', (e) => { e.preventDefault() el.closest('.notice-blocksy-woo-deprecation').remove() $.ajax(ajaxurl, { type: 'POST', data: { action: 'blocksy_dismissed_notice_woo_deprecation', }, }) }) }) }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0.16 |
proxy
|
phpinfo
|
Settings