An open API service indexing awesome lists of open source software.

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.

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
{
"": ""
}
```