PluginProbe
Extendify / trunk
Extendify vtrunk
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 / add-page.js

add-page.js in Extendify trunk, at src/Assist/tasks/add-page.js

25 lines 704 B
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 { 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