PluginProbe ʕ •ᴥ•ʔ
GenerateBlocks / 1.8.2
GenerateBlocks v1.8.2
trunk 1.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.7.0 1.7.1 1.7.2 1.7.3 1.8.0 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 2.0.0 2.0.1 2.0.2 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.3.0
generateblocks / src / extend / dynamic-content / inspector-controls / CommentsControl.js
generateblocks / src / extend / dynamic-content / inspector-controls Last commit date
AuthorMetaControl.js 3 years ago CommentsControl.js 4 years ago ContentTypeControl.js 4 years ago DynamicSourceControl.js 3 years ago ExcerptControl.js 4 years ago LinkTypeControl.js 3 years ago PostDateControl.js 4 years ago PostMetaControl.js 3 years ago TermsControl.js 4 years ago
CommentsControl.js
39 lines
1 import { TextControl } from '@wordpress/components';
2 import { __ } from '@wordpress/i18n';
3
4 export default function CommentsControl( props ) {
5 const {
6 isActive,
7 noCommentsText,
8 singleCommentText,
9 multipleCommentsText,
10 setAttributes,
11 } = props;
12
13 return (
14 <>
15 { isActive &&
16 <>
17 <TextControl
18 label={ __( 'No comments text', 'generateblocks' ) }
19 value={ noCommentsText }
20 onChange={ ( value ) => setAttributes( { noCommentsText: value } ) }
21 />
22
23 <TextControl
24 label={ __( 'Single comment text', 'generateblocks' ) }
25 value={ singleCommentText }
26 onChange={ ( value ) => setAttributes( { singleCommentText: value } ) }
27 />
28
29 <TextControl
30 label={ __( 'Multiple comments text', 'generateblocks' ) }
31 value={ multipleCommentsText }
32 onChange={ ( value ) => setAttributes( { multipleCommentsText: value } ) }
33 />
34 </>
35 }
36 </>
37 );
38 }
39