https://github.com/dimix/wordpress-sitebuilder
Create fast and simple WordPress themes by setting up a JSON.
https://github.com/dimix/wordpress-sitebuilder
php theme wordpress wordpress-theme
Last synced: about 2 months ago
JSON representation
Create fast and simple WordPress themes by setting up a JSON.
- Host: GitHub
- URL: https://github.com/dimix/wordpress-sitebuilder
- Owner: dimix
- License: mit
- Created: 2017-02-23T13:54:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-23T14:13:36.000Z (over 9 years ago)
- Last Synced: 2025-02-15T05:27:51.775Z (over 1 year ago)
- Topics: php, theme, wordpress, wordpress-theme
- Language: CSS
- Homepage:
- Size: 268 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Wordpress SiteBuilder
Create fast and simple Wordpress themes by setting up a JSON.
Wordpress SiteBuilder is a simple theme that allow you to configure in a fast way your custom posts, taxonomies and menus.
## Features
- A JSON to auto-configure Wordpress custom posts, taxonomies and menus.
- JSON contents are the same of Wordpress action arguments.
- Automatically generate Custom post meta boxes.
- Support for input types: Text, Number, Color Picker, Checkbox, Select, Date, DateTime, TextEditor, Upload Image, Multiple Upload Image.
## How to Use
1. Add sitebuilder folder in your wordpress theme.
2. Configure site.json file with custom posts, taxonomies and menus.
3. Add your HTML/CSS Theme.
4. Launch your website.
The JSON has this structure:
```json
{
"id" : "sitebuilder_theme",
"custom_posts" : [],
"custom_taxonomies": [],
"menus": []
}
```
Custom Post has this structure:
```json
{
"id" : ,
"labels" : {
"name" : "",
"singular_name" : "",
"description" : ""
},
"public" : true,
"hierarchical" : false,
"rewrite" : {
"slug" : ""
},
"supports" : ["title", "editor", "thumbnail", "page-attributes", "revisions"],
"meta_boxes" : [
{
"id" : "",
"title" : "",
"context" : "normal",
"priority" : "high",
"descriptors" : []
}
],
"custom_columns" : {
"": ""
}
}
```
"Post Type Metabox Descriptor" descibe the fields in a Meta box and has this structure:
```json
{"slug" : "", "label" : "", "type" : "", "default" : "", "values": [<'SELECT TYPE' VALEUS>]}
```
The possible types are:
* text
* number
* checkbox
* colorpicker
* select
* datetime
* time
* date
* texteditor
* imageupload
* multiple-imageupload
* productbox (not fully supported)
Custom Taxonomies has the same structure of the register_taxonomy() arguments:
```json
{
"id" : "",
"custom_posts" : [""],
"hierarchical" : true,
"labels" : {},
"show_ui" : true,
"show_admin_column" : true,
"query_var" : true,
"rewrite" : { "slug" : "" }
}
```
Menus are very simple:
```json
{
"": ""
}
```