components
3 years ago
hoc
4 years ago
hooks
3 years ago
inspector-controls
3 years ago
utils
3 years ago
DynamicRenderer.js
3 years ago
InspectorControls.js
3 years ago
attributes.js
3 years ago
attributes.js
114 lines
| 1 | import { applyFilters } from '@wordpress/hooks'; |
| 2 | |
| 3 | export default applyFilters( 'generateblocks.editor.dynamicContent.attributes', { |
| 4 | useDynamicData: { |
| 5 | type: 'boolean', |
| 6 | default: false, |
| 7 | }, |
| 8 | |
| 9 | isPagination: { |
| 10 | type: 'boolean', |
| 11 | default: false, |
| 12 | }, |
| 13 | |
| 14 | isCaption: { |
| 15 | type: 'boolean', |
| 16 | default: false, |
| 17 | }, |
| 18 | |
| 19 | dynamicContentType: { |
| 20 | type: 'string', |
| 21 | default: '', |
| 22 | }, |
| 23 | |
| 24 | dynamicLinkType: { |
| 25 | type: 'string', |
| 26 | default: '', |
| 27 | }, |
| 28 | |
| 29 | dynamicLinkRemoveIfEmpty: { |
| 30 | type: 'boolean', |
| 31 | default: false, |
| 32 | }, |
| 33 | |
| 34 | dynamicSource: { |
| 35 | type: 'string', |
| 36 | default: 'current-post', |
| 37 | }, |
| 38 | |
| 39 | postId: { |
| 40 | type: 'number', |
| 41 | default: '', |
| 42 | }, |
| 43 | |
| 44 | postType: { |
| 45 | type: 'string', |
| 46 | default: 'post', |
| 47 | }, |
| 48 | |
| 49 | dateType: { |
| 50 | type: 'string', |
| 51 | default: 'published', |
| 52 | }, |
| 53 | |
| 54 | dateReplacePublished: { |
| 55 | type: 'boolean', |
| 56 | default: false, |
| 57 | }, |
| 58 | |
| 59 | metaFieldName: { |
| 60 | type: 'string', |
| 61 | default: '', |
| 62 | }, |
| 63 | |
| 64 | linkMetaFieldName: { |
| 65 | type: 'string', |
| 66 | default: '', |
| 67 | }, |
| 68 | |
| 69 | linkMetaFieldType: { |
| 70 | type: 'string', |
| 71 | default: '', |
| 72 | }, |
| 73 | |
| 74 | termTaxonomy: { |
| 75 | type: 'string', |
| 76 | default: '', |
| 77 | }, |
| 78 | |
| 79 | termSeparator: { |
| 80 | type: 'string', |
| 81 | default: ', ', |
| 82 | }, |
| 83 | |
| 84 | noCommentsText: { |
| 85 | type: 'string', |
| 86 | default: '', |
| 87 | }, |
| 88 | |
| 89 | singleCommentText: { |
| 90 | type: 'string', |
| 91 | default: '', |
| 92 | }, |
| 93 | |
| 94 | multipleCommentsText: { |
| 95 | type: 'string', |
| 96 | default: '', |
| 97 | }, |
| 98 | |
| 99 | useDefaultMoreLink: { |
| 100 | type: 'boolean', |
| 101 | default: true, |
| 102 | }, |
| 103 | |
| 104 | customMoreLinkText: { |
| 105 | type: 'string', |
| 106 | default: '', |
| 107 | }, |
| 108 | |
| 109 | excerptLength: { |
| 110 | type: 'number', |
| 111 | default: generateBlocksInfo.excerptLength, |
| 112 | }, |
| 113 | } ); |
| 114 |