Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Commit

Permalink
Merge branch 'fix/courses-list-block-pickby' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
admturner committed Dec 5, 2023
2 parents 9630626 + 9b4754e commit 18b760c
Show file tree
Hide file tree
Showing 13 changed files with 1,105 additions and 784 deletions.
561 changes: 561 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"@wordpress/babel-preset-default": "^7.30.0",
"@wordpress/dependency-extraction-webpack-plugin": "^4.29.0",
"@wordpress/eslint-plugin": "^17.3.0",
"@wordpress/icons": "^9.37.0",
"@wordpress/npm-package-json-lint-config": "^4.1.2",
"@wordpress/stylelint-config": "^21.29.0",
"babel-loader": "^9.1.3",
Expand Down
58 changes: 58 additions & 0 deletions src/blocks/courses-list/block.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,64 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"name": "hrscourses/courses-list",
"title": "Courses List",
"category": "widgets",
"description": "Display a list of courses.",
"keywords": [ "courses", "latest courses" ],
"textdomain": "default",
"attributes": {
"courseTags": {
"type": "array",
"default": [],
"items": {
"type": "int"
}
},
"learningPrograms": {
"type": "array",
"default": [],
"items": {
"type": "int"
}
},
"postsToShow": {
"type": "number",
"default": 10
},
"displayPostContent": {
"type": "boolean",
"default": false
},
"displayPostContentRadio": {
"type": "string",
"default": "excerpt"
},
"excerptLength": {
"type": "number",
"default": 25
},
"displayPostDate": {
"type": "boolean",
"default": false
},
"postLayout": {
"type": "string",
"default": "list"
},
"columns": {
"type": "number",
"default": 3
},
"order": {
"type": "string",
"default": "desc"
},
"orderBy": {
"type": "string",
"default": "date"
}
},
"supports": {
"align": true,
"html": false
Expand Down
Loading

0 comments on commit 18b760c

Please sign in to comment.