PluginProbe
Extendify / 3.1.1
Extendify v3.1.1
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
extendify / src / Assist / tasks / ionos-connect-domain.js

ionos-connect-domain.js in Extendify 3.1.1, at src/Assist/tasks/ionos-connect-domain.js

32 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { __ } from '@wordpress/i18n';
2
3 const hostname = new URL(window.location.href)?.hostname?.split('.');
4 const { themeSlug } = window.extSharedData;
5 const { launchCompleted } = window.extAssistData;
6
7 export default {
8 slug: 'ionos-connect-domain',
9 title: __('Connect your domain', 'extendify-local'),
10 description: __(
11 'To bring real visitors to your website and to complete the website setup, we recommend you connect your domain in your hosting control panel now.',
12 'extendify-local',
13 ),
14 buttonLabels: {
15 completed: __('Learn More', 'extendify-local'),
16 notCompleted: __('Learn More', 'extendify-local'),
17 },
18 link: undefined,
19 type: 'no-action-btn-card',
20 dependencies: { plugins: [] },
21 show: () => {
22 // They need either extendable or launch completed
23 if (themeSlug !== 'extendable' && !launchCompleted) return false;
24 return (
25 hostname?.length > 2 &&
26 hostname?.slice(1, hostname?.length)?.join('.') === 'live-website.com'
27 );
28 },
29 backgroundImage:
30 'https://images.extendify-cdn.com/assist-tasks/connect-your-domain-ions.webp',
31 };
32