| 1 |
import { __ } from '@wordpress/i18n'; |
| 2 |
|
| 3 |
const { themeSlug } = window.extSharedData; |
| 4 |
const { launchCompleted } = window.extAssistData; |
| 5 |
|
| 6 |
export default { |
| 7 |
slug: 'add-pages', |
| 8 |
title: __('Add a page', 'extendify-local'), |
| 9 |
description: __('Add a new page for your website.', 'extendify-local'), |
| 10 |
buttonLabels: { |
| 11 |
completed: __('Add new', 'extendify-local'), |
| 12 |
notCompleted: __('Add new', 'extendify-local'), |
| 13 |
}, |
| 14 |
link: 'post-new.php?post_type=page', |
| 15 |
type: 'internalLink', |
| 16 |
dependencies: { plugins: [] }, |
| 17 |
show: () => { |
| 18 |
if (themeSlug === 'extendable') return true; |
| 19 |
if (launchCompleted) return true; |
| 20 |
return false; |
| 21 |
}, |
| 22 |
backgroundImage: |
| 23 |
'https://images.extendify-cdn.com/assist-tasks/add-page.webp', |
| 24 |
}; |
| 25 |
|