| @@ -1,40 +1,130 @@ | ||
| 1 | -{ | |
| 2 | - "$schema": "https://schemas.wp.org/trunk/block.json", | |
| 3 | - "apiVersion": 3, | |
| 4 | - "name": "bbp-core/forum-posts", | |
| 5 | - "version": "0.1.0", | |
| 6 | - "title": "Forumax Forum Topics", | |
| 7 | - "category": "bbp-core", | |
| 8 | - "icon": "welcome-write-blog", | |
| 9 | - "description": "Displays a list of bbPress topics.", | |
| 10 | - "attributes": { | |
| 11 | - "ppp": { | |
| 12 | - "type": "number", | |
| 13 | - "default": 5 | |
| 14 | - }, | |
| 15 | - "order": { | |
| 16 | - "type": "string", | |
| 17 | - "default": "ASC" | |
| 18 | - }, | |
| 19 | - "show_meta": { | |
| 20 | - "type": "boolean", | |
| 21 | - "default": true | |
| 22 | - }, | |
| 23 | - "title_color": { | |
| 24 | - "type": "string" | |
| 25 | - }, | |
| 26 | - "meta_color": { | |
| 27 | - "type": "string" | |
| 28 | - }, | |
| 29 | - "bg_color": { | |
| 30 | - "type": "string" | |
| 31 | - } | |
| 32 | - }, | |
| 33 | - "supports": { | |
| 34 | - "html": false | |
| 35 | - }, | |
| 36 | - "textdomain": "bbp-core", | |
| 37 | - "editorScript": "file:./index.js", | |
| 38 | - "editorStyle": "file:./index.css", | |
| 39 | - "style": "file:./style-index.css" | |
| 40 | -} | |
| 1 | +{ | |
| 2 | + "$schema": "https://schemas.wp.org/trunk/block.json", | |
| 3 | + "apiVersion": 3, | |
| 4 | + "name": "bbp-core/forum-posts", | |
| 5 | + "version": "0.1.0", | |
| 6 | + "title": "Forumax Topics", | |
| 7 | + "category": "forumax", | |
| 8 | + "icon": "welcome-write-blog", | |
| 9 | + "description": "Displays a list of Forumax topics.", | |
| 10 | + "attributes": { | |
| 11 | + "ppp": { | |
| 12 | + "type": "number", | |
| 13 | + "default": 5 | |
| 14 | + }, | |
| 15 | + "order": { | |
| 16 | + "type": "string", | |
| 17 | + "default": "ASC" | |
| 18 | + }, | |
| 19 | + "layout": { | |
| 20 | + "type": "string", | |
| 21 | + "default": "list" | |
| 22 | + }, | |
| 23 | + "columns": { | |
| 24 | + "type": "number", | |
| 25 | + "default": 3 | |
| 26 | + }, | |
| 27 | + "pagination_type": { | |
| 28 | + "type": "string", | |
| 29 | + "default": "none" | |
| 30 | + }, | |
| 31 | + "orderBy": { | |
| 32 | + "type": "string", | |
| 33 | + "default": "date" | |
| 34 | + }, | |
| 35 | + "selectedForums": { | |
| 36 | + "type": "array", | |
| 37 | + "default": [] | |
| 38 | + }, | |
| 39 | + "show_meta": { | |
| 40 | + "type": "boolean", | |
| 41 | + "default": true | |
| 42 | + }, | |
| 43 | + "showAvatar": { | |
| 44 | + "type": "boolean", | |
| 45 | + "default": true | |
| 46 | + }, | |
| 47 | + "showExcerpt": { | |
| 48 | + "type": "boolean", | |
| 49 | + "default": false | |
| 50 | + }, | |
| 51 | + "showForumLink": { | |
| 52 | + "type": "boolean", | |
| 53 | + "default": false | |
| 54 | + }, | |
| 55 | + "title_color": { | |
| 56 | + "type": "string" | |
| 57 | + }, | |
| 58 | + "meta_color": { | |
| 59 | + "type": "string" | |
| 60 | + }, | |
| 61 | + "bg_color": { | |
| 62 | + "type": "string" | |
| 63 | + }, | |
| 64 | + "title_font_size": { | |
| 65 | + "type": "number" | |
| 66 | + }, | |
| 67 | + "title_font_weight": { | |
| 68 | + "type": "string", | |
| 69 | + "default": "600" | |
| 70 | + }, | |
| 71 | + "title_line_height": { | |
| 72 | + "type": "number" | |
| 73 | + }, | |
| 74 | + "meta_font_size": { | |
| 75 | + "type": "number" | |
| 76 | + }, | |
| 77 | + "meta_line_height": { | |
| 78 | + "type": "number" | |
| 79 | + }, | |
| 80 | + "card_border": { | |
| 81 | + "type": "object", | |
| 82 | + "default": { | |
| 83 | + "width": "1px", | |
| 84 | + "style": "solid", | |
| 85 | + "color": "#eee", | |
| 86 | + "radius": "8px" | |
| 87 | + } | |
| 88 | + }, | |
| 89 | + "card_shadow": { | |
| 90 | + "type": "string" | |
| 91 | + }, | |
| 92 | + "card_padding": { | |
| 93 | + "type": "object", | |
| 94 | + "default": { | |
| 95 | + "top": "20px", | |
| 96 | + "right": "20px", | |
| 97 | + "bottom": "20px", | |
| 98 | + "left": "20px" | |
| 99 | + } | |
| 100 | + }, | |
| 101 | + "card_gap": { | |
| 102 | + "type": "number", | |
| 103 | + "default": 20 | |
| 104 | + }, | |
| 105 | + "card_hover_bg": { | |
| 106 | + "type": "string" | |
| 107 | + }, | |
| 108 | + "card_hover_border": { | |
| 109 | + "type": "string" | |
| 110 | + }, | |
| 111 | + "pagination_text_color": { | |
| 112 | + "type": "string" | |
| 113 | + }, | |
| 114 | + "pagination_active_bg": { | |
| 115 | + "type": "string", | |
| 116 | + "default": "#2271b1" | |
| 117 | + }, | |
| 118 | + "pagination_active_text": { | |
| 119 | + "type": "string", | |
| 120 | + "default": "#ffffff" | |
| 121 | + } | |
| 122 | + }, | |
| 123 | + "supports": { | |
| 124 | + "html": false | |
| 125 | + }, | |
| 126 | + "textdomain": "bbp-core", | |
| 127 | + "editorScript": "file:./index.js", | |
| 128 | + "editorStyle": "file:./index.css", | |
| 129 | + "style": "file:./style-index.css" | |
| 130 | +} | |