| @@ -1,51 +1,140 @@ | ||
| 1 | -{ | |
| 2 | - "$schema": "https://schemas.wp.org/trunk/block.json", | |
| 3 | - "apiVersion": 3, | |
| 4 | - "name": "bbp-core/forums", | |
| 5 | - "version": "0.1.0", | |
| 6 | - "title": "Forumax Forums Grid", | |
| 7 | - "category": "bbp-core", | |
| 8 | - "icon": "networking", | |
| 9 | - "description": "Displays a list of bbPress forums with a 'load more' option.", | |
| 10 | - "attributes": { | |
| 11 | - "ppp": { | |
| 12 | - "type": "number", | |
| 13 | - "default": 5 | |
| 14 | - }, | |
| 15 | - "ppp2": { | |
| 16 | - "type": "number", | |
| 17 | - "default": 10 | |
| 18 | - }, | |
| 19 | - "order": { | |
| 20 | - "type": "string", | |
| 21 | - "default": "ASC" | |
| 22 | - }, | |
| 23 | - "more_txt": { | |
| 24 | - "type": "string", | |
| 25 | - "default": "More Communities" | |
| 26 | - }, | |
| 27 | - "more_text_color": { | |
| 28 | - "type": "string" | |
| 29 | - }, | |
| 30 | - "title_color": { | |
| 31 | - "type": "string" | |
| 32 | - }, | |
| 33 | - "content_color": { | |
| 34 | - "type": "string" | |
| 35 | - } | |
| 36 | - }, | |
| 37 | - "supports": { | |
| 38 | - "html": false, | |
| 39 | - "typography": { | |
| 40 | - "fontSize": true | |
| 41 | - } | |
| 42 | - }, | |
| 43 | - "textdomain": "bbp-core", | |
| 44 | - "editorScript": "file:./index.js", | |
| 45 | - "editorStyle": [ | |
| 46 | - "file:./index.css" | |
| 47 | - ], | |
| 48 | - "style": [ | |
| 49 | - "file:./style-index.css" | |
| 50 | - ] | |
| 51 | -} | |
| 1 | +{ | |
| 2 | + "$schema": "https://schemas.wp.org/trunk/block.json", | |
| 3 | + "apiVersion": 3, | |
| 4 | + "name": "bbp-core/forums", | |
| 5 | + "version": "0.1.0", | |
| 6 | + "title": "Forumax Forums Grid", | |
| 7 | + "category": "forumax", | |
| 8 | + "icon": "networking", | |
| 9 | + "description": "Displays a list of Forumax forums with a 'load more' option.", | |
| 10 | + "attributes": { | |
| 11 | + "ppp": { | |
| 12 | + "type": "number", | |
| 13 | + "default": 5 | |
| 14 | + }, | |
| 15 | + "ppp2": { | |
| 16 | + "type": "number", | |
| 17 | + "default": 10 | |
| 18 | + }, | |
| 19 | + "order": { | |
| 20 | + "type": "string", | |
| 21 | + "default": "ASC" | |
| 22 | + }, | |
| 23 | + "orderby": { | |
| 24 | + "type": "string", | |
| 25 | + "default": "date" | |
| 26 | + }, | |
| 27 | + "forum_filter_ids": { | |
| 28 | + "type": "string", | |
| 29 | + "default": "" | |
| 30 | + }, | |
| 31 | + "columns": { | |
| 32 | + "type": "number", | |
| 33 | + "default": 3 | |
| 34 | + }, | |
| 35 | + "forum_image_size": { | |
| 36 | + "type": "string", | |
| 37 | + "default": "full" | |
| 38 | + }, | |
| 39 | + "show_forum_image": { | |
| 40 | + "type": "boolean", | |
| 41 | + "default": true | |
| 42 | + }, | |
| 43 | + "show_post_count": { | |
| 44 | + "type": "boolean", | |
| 45 | + "default": true | |
| 46 | + }, | |
| 47 | + "show_reply_count": { | |
| 48 | + "type": "boolean", | |
| 49 | + "default": false | |
| 50 | + }, | |
| 51 | + "show_excerpt": { | |
| 52 | + "type": "boolean", | |
| 53 | + "default": false | |
| 54 | + }, | |
| 55 | + "is_more_btn": { | |
| 56 | + "type": "boolean", | |
| 57 | + "default": true | |
| 58 | + }, | |
| 59 | + "more_txt": { | |
| 60 | + "type": "string", | |
| 61 | + "default": "More Communities" | |
| 62 | + }, | |
| 63 | + "less_txt": { | |
| 64 | + "type": "string", | |
| 65 | + "default": "Less Communities" | |
| 66 | + }, | |
| 67 | + "no_posts_message": { | |
| 68 | + "type": "string", | |
| 69 | + "default": "No forums found." | |
| 70 | + }, | |
| 71 | + "enable_card_hover": { | |
| 72 | + "type": "boolean", | |
| 73 | + "default": true | |
| 74 | + }, | |
| 75 | + "title_color": { | |
| 76 | + "type": "string" | |
| 77 | + }, | |
| 78 | + "title_hover_color": { | |
| 79 | + "type": "string" | |
| 80 | + }, | |
| 81 | + "content_color": { | |
| 82 | + "type": "string" | |
| 83 | + }, | |
| 84 | + "more_text_color": { | |
| 85 | + "type": "string" | |
| 86 | + }, | |
| 87 | + "card_bg_color": { | |
| 88 | + "type": "string" | |
| 89 | + }, | |
| 90 | + "btn_color": { | |
| 91 | + "type": "string" | |
| 92 | + }, | |
| 93 | + "btn_bg_color": { | |
| 94 | + "type": "string" | |
| 95 | + }, | |
| 96 | + "title_font_size": { | |
| 97 | + "type": "number", | |
| 98 | + "default": 0 | |
| 99 | + }, | |
| 100 | + "meta_font_size": { | |
| 101 | + "type": "number", | |
| 102 | + "default": 0 | |
| 103 | + }, | |
| 104 | + "card_gap": { | |
| 105 | + "type": "number", | |
| 106 | + "default": 0 | |
| 107 | + }, | |
| 108 | + "card_border_radius": { | |
| 109 | + "type": "number", | |
| 110 | + "default": 0 | |
| 111 | + }, | |
| 112 | + "btn_border_radius": { | |
| 113 | + "type": "number", | |
| 114 | + "default": 0 | |
| 115 | + }, | |
| 116 | + "hide_image_mobile": { | |
| 117 | + "type": "boolean", | |
| 118 | + "default": false | |
| 119 | + }, | |
| 120 | + "mobile_columns": { | |
| 121 | + "type": "number", | |
| 122 | + "default": 1 | |
| 123 | + }, | |
| 124 | + "layout": { | |
| 125 | + "type": "string", | |
| 126 | + "default": "default" | |
| 127 | + } | |
| 128 | + }, | |
| 129 | + "supports": { | |
| 130 | + "html": false | |
| 131 | + }, | |
| 132 | + "textdomain": "bbp-core", | |
| 133 | + "editorScript": "file:./index.js", | |
| 134 | + "editorStyle": [ | |
| 135 | + "file:./index.css" | |
| 136 | + ], | |
| 137 | + "style": [ | |
| 138 | + "file:./style-index.css" | |
| 139 | + ] | |
| 140 | +} | |