| 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 |
|