PluginProbe
Link Library / trunk
Link Library vtrunk
7.9.7 7.9.6 7.9.5 7.9.4 7.9.3 7.9.2 7.9.1 6.0-Beta11 6.0-Beta12 6.0-Beta2 6.0-Beta3 6.0-Beta4 6.0-Beta5 6.0-Beta6 6.0-Beta7 6.0-Beta8 6.0-Beta9 6.6.8 7.1.4 7.1.5 7.1.6 7.1.7 7.1.8 7.1.9 7.2.0 All 135 releases
link-library / src / link-block / index.js

index.js in Link Library trunk, at src/link-block/index.js

71 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import edit from './edit';
2
3 import { registerBlockType } from '@wordpress/blocks';
4 import { __ } from '@wordpress/i18n';
5 import { dateI18n, format, __experimentalGetSettings } from '@wordpress/date';
6 import { setState } from '@wordpress/compose';
7
8 registerBlockType( 'link-library/link-block', {
9 title: 'Link Library Links',
10 icon: 'admin-links',
11 category: 'link-library',
12 attributes: {
13 settings: {
14 type: 'string',
15 default: '1',
16 },
17 linkorderoverride: {
18 type: 'string',
19 default: '',
20 },
21 linkdirectionoverride: {
22 type: 'string',
23 default: '',
24 },
25 categorylistoverride:{
26 type: 'array',
27 default: [],
28 },
29 excludecategoryoverride:{
30 type: 'array',
31 default: [],
32 },
33 taglistoverride:{
34 type: 'array',
35 default: [],
36 },
37 maxlinksoverride:{
38 type: 'string',
39 default: '',
40 },
41 notesoverride:{
42 type: 'boolean',
43 default: false,
44 },
45 descoverride:{
46 type: 'boolean',
47 default: false,
48 },
49 rssoverride:{
50 type: 'boolean',
51 default: false,
52 },
53 categorylistoverrideCSV:{
54 type: 'string',
55 default: '',
56 },
57 excludecategoryoverrideCSV:{
58 type: 'string',
59 default: '',
60 },
61 taglistoverrideCSV:{
62 type: 'string',
63 default: '',
64 },
65 },
66 edit: edit,
67 save() {
68 // Rendering in PHP
69 return null;
70 },
71 } );