generator-chisel 2.0.0-alpha.0 → 2.0.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +56 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/.gitignore.chisel-tpl +3 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/.nvmrc +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/acf-json/group_666eb7f38d2ed.json +42 -42
- package/lib/commands/create/creators/app/chisel-starter-theme/acf-json/group_66d5a4ebb41cd.json +146 -146
- package/lib/commands/create/creators/app/chisel-starter-theme/archive.php +3 -13
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/icons/loader.svg +17 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/assets/images/chisel.png +0 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/author.php +2 -6
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/Acf.php +19 -18
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/AcfBlocks.php +4 -4
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/Ajax.php +40 -25
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/AjaxEnpoints.php +3 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/Assets.php +322 -76
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/Blocks.php +65 -18
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/ChiselCache.php +5 -3
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/Comments.php +325 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/Components.php +69 -15
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/CustomPostTypes.php +33 -335
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/ExtendedPost.php +1 -29
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/ExtendedProduct.php +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/GravityForms.php +185 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/Helpers.php +110 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/RegisterBlocks.php +8 -6
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/RegisterCustomObject.php +395 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/Sidebars.php +31 -28
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/Site.php +1 -18
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/Theme.php +61 -28
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/Twig.php +64 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/Woocommerce.php +87 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/classes/Yoast.php +78 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/functions.php +3 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/index.php +0 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/package.chisel-tpl.json +7 -24
- package/lib/commands/create/creators/app/chisel-starter-theme/patterns/comments.php +51 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/patterns/cta.php +25 -6
- package/lib/commands/create/creators/app/chisel-starter-theme/phpcs.xml +4 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/search.php +0 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/src/blocks-acf/slider/acf-json/group_66462c70b851f.json +127 -129
- package/lib/commands/create/creators/app/chisel-starter-theme/src/blocks-acf/slider/block.json +2 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/src/blocks-acf/slider/slider.twig +6 -4
- package/lib/commands/create/creators/app/chisel-starter-theme/src/design/settings/_index.scss +1 -4
- package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_buttons.scss +152 -6
- package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_icon.scss +8 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_index.scss +1 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_link.scss +15 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_media.scss +15 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_px-to-rem.scss +2 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/src/design/tools/_width.scss +2 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/acf-sync.js +2 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/admin/acf.js +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/app.js +2 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/editor/blocks-mods.js +3 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/editor/blocks-styles.js +42 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/editor/blocks.js +4 -32
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/editor/mods/blocks-alignment.js +26 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/editor/mods/core-button.js +162 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/editor/mods/core-spacer.js +28 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/editor/utils.js +24 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/editor.js +1 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/login.js +38 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/modules/load-more.js +9 -9
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/modules/main-nav.js +6 -4
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/modules/scrollbar-width.js +8 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/modules/slider.js +13 -4
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/.gitignore.chisel-tpl +1 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/acf-sync.scss +13 -9
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/admin.scss +2 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-button.scss +115 -5
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-comments.scss +16 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-details.scss +18 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-gallery.scss +9 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-latest-comments.scss +3 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-latest-posts.scss +82 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-media-text.scss +34 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-post-date.scss +5 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-post-title.scss +7 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-query.scss +65 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-search.scss +13 -8
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core-spacer.scss +6 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_core.scss +70 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/blocks/_index.scss +16 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_badge.scss +2 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_buttons.scss +113 -5
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_content.scss +19 -15
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_header.scss +5 -3
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_index.scss +19 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_main-nav.scss +3 -3
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_pagination.scss +7 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_post-card.scss +2 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_post.scss +16 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_posts-items.scss +16 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_select2.scss +45 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_sidebar.scss +6 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/components/_slider.scss +18 -13
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/editor.scss +1 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/elements/_form.scss +25 -12
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/elements/_html.scss +4 -3
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/elements/_index.scss +10 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/elements/_link.scss +2 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/elements/_shared.scss +21 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/generic/_index.scss +4 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/generic/_reset.scss +19 -19
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/gravity-forms.scss +144 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/login.scss +162 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/main.scss +2 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/objects/_grid.scss +2 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/objects/_index.scss +6 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/objects/_wrapper.scss +2 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/utilities/_index.scss +4 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/utilities/_sr.scss +2 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/vendor/_breadcrumbs.scss +16 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/vendor/_index.scss +3 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/widgets/_index.scss +5 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woo/_account.scss +25 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woo/_archive.scss +27 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woo/_btn.scss +23 -3
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woo/_cart.scss +9 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woo/_checkout.scss +53 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woo/_general.scss +36 -6
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woo/_index.scss +12 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woo/_notices.scss +17 -4
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woo/_product-item.scss +24 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/woo/_product.scss +24 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/wp-admin/_acf.scss +21 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/wp-admin/_index.scss +4 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/wp-editor/_block-sidebar.scss +16 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/wp-editor/_core-button.scss +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/wp-editor/_core-pagination.scss +12 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/wp-editor/_core-spacer.scss +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/wp-editor/_editor.scss +5 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/wp-editor/_index.scss +11 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/wp-editor/_swiper-sliders.scss +11 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/theme.json +11 -20
- package/lib/commands/create/creators/app/chisel-starter-theme/twig_cs.php +6 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/views/404.twig +1 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/views/base.twig +8 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/components/icon.twig +1 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/components/post-item.twig +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/views/components/slider.twig +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/views/index.twig +4 -6
- package/lib/commands/create/creators/app/chisel-starter-theme/views/page-plugin.twig +3 -5
- package/lib/commands/create/creators/app/chisel-starter-theme/views/partials/block-edit-button.twig +3 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/partials/the-title.twig +3 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/sidebar-woocommerce.twig +5 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/single.twig +29 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/views/woocommerce/archive-product.twig +5 -3
- package/lib/commands/create/creators/app/chisel-starter-theme/views/woocommerce/linked-products.twig +1 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/views/woocommerce/single-product.twig +2 -1
- package/lib/commands/create/creators/app/chisel-starter-theme/woocommerce.php +57 -0
- package/lib/commands/create/creators/app/index.js +2 -2
- package/lib/commands/create/creators/wp/index.js +7 -1
- package/lib/commands/create/creators/wp-plugins/index.js +2 -0
- package/lib/commands/create/creators/wp-plugins/plugins.json +3 -4
- package/lib/commands/create/packages-versions.js +2 -2
- package/package.json +2 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/.editorconfig +0 -17
- package/lib/commands/create/creators/app/chisel-starter-theme/.eslintrc.cjs +0 -36
- package/lib/commands/create/creators/app/chisel-starter-theme/.stylelintignore +0 -2
- package/lib/commands/create/creators/app/chisel-starter-theme/acf-json/group_6665890751dc3.json +0 -63
- package/lib/commands/create/creators/app/chisel-starter-theme/composer.lock +0 -2180
- package/lib/commands/create/creators/app/chisel-starter-theme/lint-staged.config.mjs +0 -8
- package/lib/commands/create/creators/app/chisel-starter-theme/prettier.config.mjs +0 -8
- package/lib/commands/create/creators/app/chisel-starter-theme/src/scripts/editor/blocks-attributes.js +0 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/src/styles/objects/_block.scss +0 -10
- package/lib/commands/create/creators/app/chisel-starter-theme/stylelint.config.mjs +0 -27
- package/lib/commands/create/creators/app/chisel-starter-theme/views/components/page-title.twig +0 -5
- package/lib/commands/create/creators/app/chisel-starter-theme/views/components/pagination.twig +0 -0
- package/lib/commands/create/creators/app/chisel-starter-theme/views/page-copy.twig +0 -390
- package/lib/commands/create/creators/app/chisel-starter-theme/views/page-with-icons.twig +0 -470
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,62 @@
|
|
|
2
2
|
|
|
3
3
|
<!-- INSERT-NEW-ENTRIES-HERE -->
|
|
4
4
|
|
|
5
|
+
## 2.0.0-alpha.10 (2024-10-31)
|
|
6
|
+
|
|
7
|
+
- add assets index ([fed4fd3](https://github.com/xfiveco/generator-chisel/commit/fed4fd3))
|
|
8
|
+
- CPTs, assets, blocks changes and fixes ([0014d9b](https://github.com/xfiveco/generator-chisel/commit/0014d9b))
|
|
9
|
+
- ignore assets index ([b951521](https://github.com/xfiveco/generator-chisel/commit/b951521))
|
|
10
|
+
|
|
11
|
+
## 2.0.0-alpha.9 (2024-10-18)
|
|
12
|
+
|
|
13
|
+
- fixes, adjustments, optimize ([f73f855](https://github.com/xfiveco/generator-chisel/commit/f73f855))
|
|
14
|
+
|
|
15
|
+
## 2.0.0-alpha.8 (2024-10-07)
|
|
16
|
+
|
|
17
|
+
- fixes ([4cdc3e1](https://github.com/xfiveco/generator-chisel/commit/4cdc3e1))
|
|
18
|
+
- Publish ([ad109c1](https://github.com/xfiveco/generator-chisel/commit/ad109c1))
|
|
19
|
+
|
|
20
|
+
## 2.0.0-alpha.7 (2024-10-07)
|
|
21
|
+
|
|
22
|
+
- update gitignore ([164b521](https://github.com/xfiveco/generator-chisel/commit/164b521))
|
|
23
|
+
- update gitignore, plugins list and buttons css ([e136434](https://github.com/xfiveco/generator-chisel/commit/e136434))
|
|
24
|
+
|
|
25
|
+
## 2.0.0-alpha.6 (2024-10-07)
|
|
26
|
+
|
|
27
|
+
- blocks, assets, css adjustments, breadcrumbs, bem fn ([b3460ce](https://github.com/xfiveco/generator-chisel/commit/b3460ce))
|
|
28
|
+
- page title, gravity forms, responsive image, slider fixes ([619789e](https://github.com/xfiveco/generator-chisel/commit/619789e))
|
|
29
|
+
|
|
30
|
+
## 2.0.0-alpha.5 (2024-09-27)
|
|
31
|
+
|
|
32
|
+
- bugs fixes, blocks mods, adjustments ([5a2b460](https://github.com/xfiveco/generator-chisel/commit/5a2b460))
|
|
33
|
+
|
|
34
|
+
## 2.0.0-alpha.4 (2024-09-16)
|
|
35
|
+
|
|
36
|
+
- adjust plugins ([bc2343a](https://github.com/xfiveco/generator-chisel/commit/bc2343a))
|
|
37
|
+
- bug fixes, phpcs and twigcs fixes ([118297b](https://github.com/xfiveco/generator-chisel/commit/118297b))
|
|
38
|
+
- remove lint staged (it is in coding standards) ([e51b4b6](https://github.com/xfiveco/generator-chisel/commit/e51b4b6))
|
|
39
|
+
- remove unnecessary gitignore ([f48e528](https://github.com/xfiveco/generator-chisel/commit/f48e528))
|
|
40
|
+
- scripts enqueueing fixes ([5a8badf](https://github.com/xfiveco/generator-chisel/commit/5a8badf))
|
|
41
|
+
- theme gitignore update ([9ef8d60](https://github.com/xfiveco/generator-chisel/commit/9ef8d60))
|
|
42
|
+
- twig cs adjustments ([84493cd](https://github.com/xfiveco/generator-chisel/commit/84493cd))
|
|
43
|
+
|
|
44
|
+
## 2.0.0-alpha.3 (2024-09-13)
|
|
45
|
+
|
|
46
|
+
- refactor, adjustments, css spliting, comments, 3rd party integration classes ([e1fe3cd](https://github.com/xfiveco/generator-chisel/commit/e1fe3cd))
|
|
47
|
+
- update blocks path, add action hooks ([e20d184](https://github.com/xfiveco/generator-chisel/commit/e20d184))
|
|
48
|
+
|
|
49
|
+
## 2.0.0-alpha.2 (2024-09-10)
|
|
50
|
+
|
|
51
|
+
- correct gitignore ([22542dc](https://github.com/xfiveco/generator-chisel/commit/22542dc))
|
|
52
|
+
|
|
53
|
+
## 2.0.0-alpha.1 (2024-09-10)
|
|
54
|
+
|
|
55
|
+
- adjust commands ([b289bd8](https://github.com/xfiveco/generator-chisel/commit/b289bd8))
|
|
56
|
+
- Cleanup coding standards, minor adjustments, install ACF automatically ([816eada](https://github.com/xfiveco/generator-chisel/commit/816eada))
|
|
57
|
+
- fix whitespace ([9d58dba](https://github.com/xfiveco/generator-chisel/commit/9d58dba))
|
|
58
|
+
- theme acf adjustments ([27016f7](https://github.com/xfiveco/generator-chisel/commit/27016f7))
|
|
59
|
+
- theme adjustments and bug fixes ([1253e18](https://github.com/xfiveco/generator-chisel/commit/1253e18))
|
|
60
|
+
|
|
5
61
|
## 2.0.0-alpha.0 (2024-09-08)
|
|
6
62
|
|
|
7
63
|
- acf block json custom arg to load css only ([0659521](https://github.com/xfiveco/generator-chisel/commit/0659521))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
20
|
|
1
|
+
20
|
package/lib/commands/create/creators/app/chisel-starter-theme/acf-json/group_666eb7f38d2ed.json
CHANGED
|
@@ -2,49 +2,49 @@
|
|
|
2
2
|
"key": "group_666eb7f38d2ed",
|
|
3
3
|
"title": "Page Title",
|
|
4
4
|
"fields": [
|
|
5
|
-
{
|
|
6
|
-
"key": "field_666eb7f40c492",
|
|
7
|
-
"label": "Page Title",
|
|
8
|
-
"name": "page_title_display",
|
|
9
|
-
"aria-label": "",
|
|
10
|
-
"type": "select",
|
|
11
|
-
"instructions": "",
|
|
12
|
-
"required": 0,
|
|
13
|
-
"conditional_logic": 0,
|
|
14
|
-
"wrapper": {
|
|
15
|
-
"width": "",
|
|
16
|
-
"class": "",
|
|
17
|
-
"id": ""
|
|
18
|
-
},
|
|
19
|
-
"choices": {
|
|
20
|
-
"show": "Show",
|
|
21
|
-
"hide-visually": "Hide visually",
|
|
22
|
-
"hide": "Hide"
|
|
23
|
-
},
|
|
24
|
-
"default_value": "show",
|
|
25
|
-
"return_format": "value",
|
|
26
|
-
"multiple": 0,
|
|
27
|
-
"allow_null": 0,
|
|
28
|
-
"ui": 0,
|
|
29
|
-
"ajax": 0,
|
|
30
|
-
"placeholder": ""
|
|
31
|
-
}
|
|
32
|
-
],
|
|
33
|
-
"location": [
|
|
34
|
-
[
|
|
35
|
-
{
|
|
36
|
-
"param": "post_type",
|
|
37
|
-
"operator": "==",
|
|
38
|
-
"value": "post"
|
|
39
|
-
}
|
|
40
|
-
],
|
|
41
|
-
[
|
|
42
5
|
{
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
6
|
+
"key": "field_666eb7f40c492",
|
|
7
|
+
"label": "Page Title",
|
|
8
|
+
"name": "page_title_display",
|
|
9
|
+
"aria-label": "",
|
|
10
|
+
"type": "select",
|
|
11
|
+
"instructions": "",
|
|
12
|
+
"required": 0,
|
|
13
|
+
"conditional_logic": 0,
|
|
14
|
+
"wrapper": {
|
|
15
|
+
"width": "",
|
|
16
|
+
"class": "",
|
|
17
|
+
"id": ""
|
|
18
|
+
},
|
|
19
|
+
"choices": {
|
|
20
|
+
"show": "Show",
|
|
21
|
+
"hide-visually": "Hide visually",
|
|
22
|
+
"hide": "Hide"
|
|
23
|
+
},
|
|
24
|
+
"default_value": "show",
|
|
25
|
+
"return_format": "value",
|
|
26
|
+
"multiple": 0,
|
|
27
|
+
"allow_null": 0,
|
|
28
|
+
"ui": 0,
|
|
29
|
+
"ajax": 0,
|
|
30
|
+
"placeholder": ""
|
|
46
31
|
}
|
|
47
|
-
|
|
32
|
+
],
|
|
33
|
+
"location": [
|
|
34
|
+
[
|
|
35
|
+
{
|
|
36
|
+
"param": "post_type",
|
|
37
|
+
"operator": "==",
|
|
38
|
+
"value": "post"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
[
|
|
42
|
+
{
|
|
43
|
+
"param": "post_type",
|
|
44
|
+
"operator": "==",
|
|
45
|
+
"value": "page"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
48
|
],
|
|
49
49
|
"menu_order": -10,
|
|
50
50
|
"position": "side",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"active": true,
|
|
56
56
|
"description": "",
|
|
57
57
|
"show_in_rest": 0,
|
|
58
|
-
"modified":
|
|
58
|
+
"modified": 1725978564
|
|
59
59
|
}
|
package/lib/commands/create/creators/app/chisel-starter-theme/acf-json/group_66d5a4ebb41cd.json
CHANGED
|
@@ -1,148 +1,148 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
2
|
+
"key": "group_66d5a4ebb41cd",
|
|
3
|
+
"title": "Slider Settings",
|
|
4
|
+
"fields": [
|
|
5
|
+
{
|
|
6
|
+
"key": "field_66d5a4f9ee449",
|
|
7
|
+
"label": "Settings",
|
|
8
|
+
"name": "slider_settings",
|
|
9
|
+
"aria-label": "",
|
|
10
|
+
"type": "checkbox",
|
|
11
|
+
"instructions": "",
|
|
12
|
+
"required": 0,
|
|
13
|
+
"conditional_logic": 0,
|
|
14
|
+
"wrapper": {
|
|
15
|
+
"width": "",
|
|
16
|
+
"class": "",
|
|
17
|
+
"id": ""
|
|
18
|
+
},
|
|
19
|
+
"choices": {
|
|
20
|
+
"arrows": "Arrows",
|
|
21
|
+
"dots": "Dots",
|
|
22
|
+
"loop": "Loop",
|
|
23
|
+
"autoplay": "Autoplay",
|
|
24
|
+
"thumbnails": "Thumbnails"
|
|
25
|
+
},
|
|
26
|
+
"default_value": [
|
|
27
|
+
"arrows",
|
|
28
|
+
"dots"
|
|
29
|
+
],
|
|
30
|
+
"return_format": "value",
|
|
31
|
+
"allow_custom": 0,
|
|
32
|
+
"layout": "vertical",
|
|
33
|
+
"toggle": 0,
|
|
34
|
+
"save_custom": 0,
|
|
35
|
+
"custom_choice_button_text": "Add new choice"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"key": "field_66d5a74076f5f",
|
|
39
|
+
"label": "Dynamic dots",
|
|
40
|
+
"name": "slider_settings_dynamic_dots",
|
|
41
|
+
"aria-label": "",
|
|
42
|
+
"type": "button_group",
|
|
43
|
+
"instructions": "",
|
|
44
|
+
"required": 0,
|
|
45
|
+
"conditional_logic": [
|
|
46
|
+
[
|
|
47
|
+
{
|
|
48
|
+
"field": "field_66d5a4f9ee449",
|
|
49
|
+
"operator": "==",
|
|
50
|
+
"value": "dots"
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
],
|
|
54
|
+
"wrapper": {
|
|
55
|
+
"width": "",
|
|
56
|
+
"class": "",
|
|
57
|
+
"id": ""
|
|
58
|
+
},
|
|
59
|
+
"choices": {
|
|
60
|
+
"yes": "Yes",
|
|
61
|
+
"no": "No"
|
|
62
|
+
},
|
|
63
|
+
"default_value": "no",
|
|
64
|
+
"return_format": "value",
|
|
65
|
+
"allow_null": 0,
|
|
66
|
+
"layout": "horizontal"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"key": "field_66d5a77e76f60",
|
|
70
|
+
"label": "No of thumbnails",
|
|
71
|
+
"name": "slider_settings_thumbnails_no",
|
|
72
|
+
"aria-label": "",
|
|
73
|
+
"type": "number",
|
|
74
|
+
"instructions": "",
|
|
75
|
+
"required": 0,
|
|
76
|
+
"conditional_logic": [
|
|
77
|
+
[
|
|
78
|
+
{
|
|
79
|
+
"field": "field_66d5a4f9ee449",
|
|
80
|
+
"operator": "==",
|
|
81
|
+
"value": "thumbnails"
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
],
|
|
85
|
+
"wrapper": {
|
|
86
|
+
"width": "",
|
|
87
|
+
"class": "",
|
|
88
|
+
"id": ""
|
|
89
|
+
},
|
|
90
|
+
"default_value": 8,
|
|
91
|
+
"min": 1,
|
|
92
|
+
"max": "",
|
|
93
|
+
"placeholder": "",
|
|
94
|
+
"step": 1,
|
|
95
|
+
"prepend": "",
|
|
96
|
+
"append": ""
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"key": "field_66d5a9feca5b9",
|
|
100
|
+
"label": "Autoplay timeout",
|
|
101
|
+
"name": "slider_settings_autoplay_timeout",
|
|
102
|
+
"aria-label": "",
|
|
103
|
+
"type": "number",
|
|
104
|
+
"instructions": "",
|
|
105
|
+
"required": 0,
|
|
106
|
+
"conditional_logic": [
|
|
107
|
+
[
|
|
108
|
+
{
|
|
109
|
+
"field": "field_66d5a4f9ee449",
|
|
110
|
+
"operator": "==",
|
|
111
|
+
"value": "autoplay"
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
],
|
|
115
|
+
"wrapper": {
|
|
116
|
+
"width": "",
|
|
117
|
+
"class": "",
|
|
118
|
+
"id": ""
|
|
119
|
+
},
|
|
120
|
+
"default_value": 5000,
|
|
121
|
+
"min": 1000,
|
|
122
|
+
"max": "",
|
|
123
|
+
"placeholder": "",
|
|
124
|
+
"step": 100,
|
|
125
|
+
"prepend": "",
|
|
126
|
+
"append": ""
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"location": [
|
|
130
|
+
[
|
|
131
|
+
{
|
|
132
|
+
"param": "post_type",
|
|
133
|
+
"operator": "==",
|
|
134
|
+
"value": "page"
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
],
|
|
138
|
+
"menu_order": 0,
|
|
139
|
+
"position": "normal",
|
|
140
|
+
"style": "default",
|
|
141
|
+
"label_placement": "top",
|
|
142
|
+
"instruction_placement": "label",
|
|
143
|
+
"hide_on_screen": "",
|
|
144
|
+
"active": false,
|
|
145
|
+
"description": "For cloning only",
|
|
146
|
+
"show_in_rest": 0,
|
|
147
|
+
"modified": 1726064786
|
|
148
148
|
}
|
|
@@ -12,23 +12,13 @@ $templates = array( 'archive.twig', 'index.twig' );
|
|
|
12
12
|
|
|
13
13
|
$context = Timber::context();
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
$context['title'] = 'Archive: ' . get_the_date( 'D M Y' );
|
|
18
|
-
} elseif ( is_month() ) {
|
|
19
|
-
$context['title'] = 'Archive: ' . get_the_date( 'M Y' );
|
|
20
|
-
} elseif ( is_year() ) {
|
|
21
|
-
$context['title'] = 'Archive: ' . get_the_date( 'Y' );
|
|
22
|
-
} elseif ( is_tag() ) {
|
|
23
|
-
$context['title'] = single_tag_title( '', false );
|
|
15
|
+
if ( is_tag() ) {
|
|
16
|
+
array_unshift( $templates, 'archive-' . get_queried_object()->slug . '.twig' );
|
|
24
17
|
} elseif ( is_category() ) {
|
|
25
|
-
$
|
|
26
|
-
array_unshift( $templates, 'archive-' . get_query_var( 'cat' ) . '.twig' );
|
|
18
|
+
array_unshift( $templates, 'archive-' . get_queried_object()->slug . '.twig' );
|
|
27
19
|
} elseif ( is_post_type_archive() ) {
|
|
28
|
-
$context['title'] = post_type_archive_title( '', false );
|
|
29
20
|
array_unshift( $templates, 'archive-' . get_post_type() . '.twig' );
|
|
30
21
|
} elseif ( is_tax() ) {
|
|
31
|
-
$context['title'] = single_term_title( '', false );
|
|
32
22
|
array_unshift( $templates, 'archive-' . get_queried_object()->taxonomy . '.twig' );
|
|
33
23
|
}
|
|
34
24
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL -->
|
|
2
|
+
<svg viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg" stroke="#000000">
|
|
3
|
+
<g fill="none" fill-rule="evenodd">
|
|
4
|
+
<g transform="translate(1 1)" stroke-width="2">
|
|
5
|
+
<circle stroke-opacity=".5" cx="18" cy="18" r="18"/>
|
|
6
|
+
<path d="M36 18c0-9.94-8.06-18-18-18">
|
|
7
|
+
<animateTransform
|
|
8
|
+
attributeName="transform"
|
|
9
|
+
type="rotate"
|
|
10
|
+
from="0 18 18"
|
|
11
|
+
to="360 18 18"
|
|
12
|
+
dur="1s"
|
|
13
|
+
repeatCount="indefinite"/>
|
|
14
|
+
</path>
|
|
15
|
+
</g>
|
|
16
|
+
</g>
|
|
17
|
+
</svg>
|
|
Binary file
|
|
@@ -8,11 +8,7 @@
|
|
|
8
8
|
use Chisel\ChiselCache;
|
|
9
9
|
use Timber\Timber;
|
|
10
10
|
|
|
11
|
-
$
|
|
12
|
-
|
|
13
|
-
$context = Timber::context();
|
|
14
|
-
$context['posts'] = Timber::get_posts();
|
|
15
|
-
$context['author'] = $author;
|
|
16
|
-
$context['title'] = __( 'Author: ', 'chisel' ) . $author->name;
|
|
11
|
+
$context = Timber::context();
|
|
12
|
+
$context['posts'] = Timber::get_posts();
|
|
17
13
|
|
|
18
14
|
Timber::render( array( 'author.twig', 'archive.twig' ), $context, ChiselCache::expiry() );
|
|
@@ -61,14 +61,13 @@ class Acf implements Instance {
|
|
|
61
61
|
* Set ACF options pages.
|
|
62
62
|
*/
|
|
63
63
|
public function set_options_pages() {
|
|
64
|
-
$this->acf_options_pages =
|
|
65
|
-
|
|
66
|
-
array(
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
)
|
|
64
|
+
$this->acf_options_pages = array(
|
|
65
|
+
// phpcs:disable
|
|
66
|
+
// array(
|
|
67
|
+
// 'menu_slug' => 'theme-settings',
|
|
68
|
+
// 'page_title' => __( 'Theme Settings', 'chisel' ),
|
|
69
|
+
// ),
|
|
70
|
+
// phpcs:enable
|
|
72
71
|
);
|
|
73
72
|
}
|
|
74
73
|
|
|
@@ -76,16 +75,15 @@ class Acf implements Instance {
|
|
|
76
75
|
* Set ACF options sub pages.
|
|
77
76
|
*/
|
|
78
77
|
public function set_options_sub_pages() {
|
|
79
|
-
$this->acf_options_sub_pages =
|
|
80
|
-
|
|
81
|
-
array(
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
)
|
|
78
|
+
$this->acf_options_sub_pages = array(
|
|
79
|
+
// phpcs:disable
|
|
80
|
+
// array(
|
|
81
|
+
// 'menu_slug' => 'theme-sub-settings',
|
|
82
|
+
// 'page_title' => __( 'Theme Sub settings', 'chisel' ),
|
|
83
|
+
// 'menu_title' => __( 'Theme Sub settings', 'chisel' ),
|
|
84
|
+
// 'parent_slug' => 'theme-settings',
|
|
85
|
+
// ),
|
|
86
|
+
// phpcs:enable
|
|
89
87
|
);
|
|
90
88
|
}
|
|
91
89
|
|
|
@@ -93,6 +91,9 @@ class Acf implements Instance {
|
|
|
93
91
|
* Register ACF options pages.
|
|
94
92
|
*/
|
|
95
93
|
public function options_pages() {
|
|
94
|
+
$this->acf_options_pages = apply_filters( 'chisel_acf_options_pages', $this->acf_options_pages );
|
|
95
|
+
$this->acf_options_sub_pages = apply_filters( 'chisel_acf_options_sub_pages', $this->acf_options_sub_pages );
|
|
96
|
+
|
|
96
97
|
if ( $this->acf_options_pages && function_exists( 'acf_add_options_page' ) ) {
|
|
97
98
|
foreach ( $this->acf_options_pages as $data ) {
|
|
98
99
|
$this->register_options_page( $data, 'page' );
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
namespace Chisel;
|
|
4
4
|
|
|
5
5
|
use Timber\Timber;
|
|
6
|
+
use Chisel\ChiselCache;
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* ACF blocks related functionalities.
|
|
@@ -34,7 +35,7 @@ class AcfBlocks extends RegisterBlocks implements Instance {
|
|
|
34
35
|
* Set properties.
|
|
35
36
|
*/
|
|
36
37
|
public function set_properties() {
|
|
37
|
-
$this->blocks_twig_base_path =
|
|
38
|
+
$this->blocks_twig_base_path = 'build/blocks-acf/';
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
/**
|
|
@@ -154,7 +155,6 @@ class AcfBlocks extends RegisterBlocks implements Instance {
|
|
|
154
155
|
isset( $block['className'] ) ? array( $block['className'] ) : array(),
|
|
155
156
|
$is_preview ? array( 'is-preview' ) : array(),
|
|
156
157
|
$block['supports']['align'] ? array( 'align' . $context['block']['align'] ) : array(),
|
|
157
|
-
array( Blocks::get_block_object_classnames( $block['name'] ) )
|
|
158
158
|
);
|
|
159
159
|
|
|
160
160
|
$context['block']['class_names'] = $classes;
|
|
@@ -162,7 +162,7 @@ class AcfBlocks extends RegisterBlocks implements Instance {
|
|
|
162
162
|
|
|
163
163
|
// allow to use filters to manipulate the output.
|
|
164
164
|
$context = apply_filters( 'chisel_timber_acf_blocks_data', $context );
|
|
165
|
-
$context = apply_filters( 'chisel_timber_acf_blocks_data_' . $
|
|
165
|
+
$context = apply_filters( 'chisel_timber_acf_blocks_data_' . $block_slug, $context );
|
|
166
166
|
$context = apply_filters( 'chisel_timber_acf_blocks_data_' . $block['id'], $context );
|
|
167
167
|
|
|
168
168
|
$context['wrapper_attributes'] = get_block_wrapper_attributes(
|
|
@@ -172,7 +172,7 @@ class AcfBlocks extends RegisterBlocks implements Instance {
|
|
|
172
172
|
)
|
|
173
173
|
);
|
|
174
174
|
|
|
175
|
-
Timber::render( self::get_instance()->blocks_twig_base_path . $block_slug . '/' . $block_slug . '.twig', $context );
|
|
175
|
+
Timber::render( self::get_instance()->blocks_twig_base_path . $block_slug . '/' . $block_slug . '.twig', $context, ChiselCache::expiry() );
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
/**
|