PluginProbe
Extendify / 3.2.1
Extendify v3.2.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 / open-design-library.js

open-design-library.js in Extendify 3.2.1, at src/Assist/tasks/open-design-library.js

31 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { DesignLibraryMarkup } from '@assist/svg';
2 import { hasPageCreatorEnabled } from '@help-center/lib/utils';
3 import { __ } from '@wordpress/i18n';
4
5 export default {
6 slug: 'design-library',
7 title: __('Design Library', 'extendify-local'),
8 sidebarTitle: __('Explore the Design Library', 'extendify-local'),
9 description: __(
10 'Full design library customized for each site to easily drop in new sections or create full pages with sections.',
11 'extendify-local',
12 ),
13 buttonLabels: {
14 completed: __('Revisit', 'extendify-local'),
15 notCompleted: __('Explore Design Library', 'extendify-local'),
16 },
17 link: hasPageCreatorEnabled
18 ? 'post-new.php?post_type=page&ext-open=1&ext-page-creator-close=1'
19 : 'post-new.php?post_type=page&ext-open=1',
20 type: 'html-text-button',
21 dependencies: { plugins: [] },
22 show: () => true,
23 backgroundImage: null,
24 htmlBefore: () => (
25 <DesignLibraryMarkup
26 className="pointer-events-none relative hidden h-full min-h-56 w-full overflow-hidden rounded-t-lg border border-gray-300 bg-gray-100 pt-5 lg:block"
27 aria-hidden="true"
28 />
29 ),
30 };
31