REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.42 KB
Close
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/extendify_old/src/HelpCenter/buttons.js
Text
Base64
import { AdminBar } from '@help-center/components/buttons/AdminBar'; import { PostEditor } from '@help-center/components/buttons/PostEditor'; import { render } from '@shared/lib/dom'; import { isOnLaunch } from '@shared/lib/utils'; import { useEffect } from '@wordpress/element'; import { registerPlugin } from '@wordpress/plugins'; // 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, }); setTimeout(() => { 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); }, 500); }, []); return null; };
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 6 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
components
DIR
-
drwxr-xr-x
2026-04-28 02:40:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
hooks
DIR
-
drwxr-xr-x
2026-04-28 02:40:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
lib
DIR
-
drwxr-xr-x
2026-04-28 02:40:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
pages
DIR
-
drwxr-xr-x
2026-04-28 02:40:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
state
DIR
-
drwxr-xr-x
2026-04-28 02:40:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
tours
DIR
-
drwxr-xr-x
2026-04-28 02:40:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
buttons.js
1.42 KB
lrw-r--r--
2026-02-19 03:27:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
help-center.css
637 B
lrw-r--r--
2026-02-19 03:27:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
help-center.js
671 B
lrw-r--r--
2026-02-19 03:27:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
HelpCenter.jsx
1.20 KB
lrw-r--r--
2026-02-19 03:27:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).