Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > extendify > > src > HelpCenter
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
components | Directory | - | - | |
hooks | Directory | - | - | |
lib | Directory | - | - | |
pages | Directory | - | - | |
state | Directory | - | - | |
tours | Directory | - | - | |
HelpCenter.jsx | File | 1229 bytes | September 12 2024 19:49:54. | |
app.css | File | 1144 bytes | July 16 2024 23:59:12. | |
buttons.js | File | 1513 bytes | March 26 2025 18:03:22. | |
help-center.js | File | 650 bytes | March 26 2025 18:03:22. |
import { useEffect } from '@wordpress/element'; import { registerPlugin } from '@wordpress/plugins'; import { render } from '@shared/lib/dom'; import { AdminBar } from '@help-center/components/buttons/AdminBar'; import { PostEditor } from '@help-center/components/buttons/PostEditor'; import { isOnLaunch } from '@help-center/lib/utils'; // Global toolbar (() => { if (isOnLaunch()) return; const id = 'wp-admin-bar-help-center-btn'; if (document.getElementById(id)) return; const helpCenter = Object.assign(document.createElement('li'), { className: 'extendify-help-center', id, }); document.querySelector('#wp-admin-bar-my-account')?.after(helpCenter); render(<AdminBar />, helpCenter); })(); // In editor registerPlugin('extendify-help-center-buttons', { render: () => <HelpCenterButton />, }); const HelpCenterButton = () => { useEffect(() => { if (isOnLaunch()) return; const id = 'extendify-gtnbrg-help-center-btn'; if (document.getElementById(id)) return; const helpCenter = Object.assign(document.createElement('span'), { className: 'extendify-help-center', id, }); requestAnimationFrame(() => { requestAnimationFrame(() => { if (document.getElementById(id)) return; const page = '[aria-controls="edit-post:document"]'; const fse = '[aria-controls="edit-site:template"]'; document.querySelector(page)?.after(helpCenter); document.querySelector(fse)?.after(helpCenter); render(<PostEditor />, helpCenter); }); }); }, []); return null; };
SILENT KILLER Tool