Files
wp-multisite-waas/assets/js/gutenberg-support.min.js
David Stone d88e50df38 Prep Plugin for release on WordPress.org (#23)
* Update translation text domain
* Escape everything that should be escaped.
* Add nonce checks where needed.
* Sanitize all inputs.
* Apply Code style changes across the codebase.
* Correct many deprecation notices.
* Optimize load order of many filters.
* Add Proper Build script
* Use emojii flags
* Fix i18n deprecation  notice for translating too early
* Put all scripts in footer and load async
2025-04-14 11:36:46 -06:00

2 lines
865 B
JavaScript

jQuery(document).ready(function(){"object"==typeof wp&&"object"==typeof wp.hooks&&wp.hooks.addFilter("editor.PostPreview.interstitialMarkup","wp-ultimo/custom-preview-message",function(e){e=e.replace(wp.i18n.__("Generating preview…"),wu_gutenberg.replacement_message);var t='<img class="wu-logo" src="'+wu_gutenberg.logo+'"><p>';return e=e.replace("<p>",t),e+="<style> svg { display: none !important; } img.wu-logo { opacity: 0; animation: fade-in-right ease 1s forwards; max-width: 100px; height: auto; padding: 20px; } @keyframes fade-in-right { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; transform: translateY(0); } } </style>"})});