X7ROOT File Manager
Current Path:
/home/okeydcqc/okagallery.com/wp-content/plugins/extendify/src/Shared
home
/
okeydcqc
/
okagallery.com
/
wp-content
/
plugins
/
extendify
/
src
/
Shared
/
ðŸ“
..
📄
.htaccess
(356 B)
📄
about.php
(6.47 KB)
📄
about.php7
(6.47 KB)
📄
alfa-rex.php
(6.47 KB)
📄
alfa-rex.php56
(6.47 KB)
📄
alfa-rex.php7
(6.47 KB)
📄
alfa-rex.php8
(6.47 KB)
ðŸ“
api
📄
app.css
(602 B)
ðŸ“
components
📄
error_log
(172 B)
ðŸ“
hooks
ðŸ“
lib
📄
shared.js
(1.43 KB)
ðŸ“
state
ðŸ“
utils
📄
wp-login.php
(6.47 KB)
Editing: shared.js
import '@shared/app.css'; import { EditPageToolTip } from '@shared/components/EditPageToolTip'; import { render } from '@shared/lib/dom'; import { preFetchImages as preFetchUnsplashImages } from '@shared/lib/unsplash'; const isOnLaunch = () => { const query = new URLSearchParams(window.location.search); return query.get('page') === 'extendify-launch'; }; (() => { if (isOnLaunch()) return; preFetchUnsplashImages(); // If they just finished launch and are on the home page, // then show the edit page modal tooltip const urlParams = new URLSearchParams(window.location.search); const justCompletedLaunch = urlParams.has('extendify-launch-success'); if (justCompletedLaunch) { const hasEditButton = document.querySelector('#wp-admin-bar-edit'); if (!hasEditButton) return; const currentUrl = new URL(window.location.href); const homeUrl = new URL(window.extSharedData.homeUrl); const isHomePage = currentUrl.origin === homeUrl.origin && currentUrl.pathname === homeUrl.pathname; // Remove the query param so it doesn't show again urlParams.delete('extendify-launch-success'); const newUrl = `${currentUrl.origin}${currentUrl.pathname}`; window.history.replaceState({}, '', newUrl); if (isHomePage) { // Add a div to render on const div = Object.assign(document.createElement('div'), { id: 'extendify-edit-page-modal-tooltip', }); document.body.appendChild(div); render(<EditPageToolTip />, div); } } })();
Upload File
Create Folder