← Back
Editing: block.json
{ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "category": "directorist-blocks-collection", "version": "1.0.0", "name": "directorist/all-listing", "title": "Listings", "description": "Create directory listing grid view, list view or map view.", "attributes": { "view": { "type": "string", "default": "grid" }, "_featured": { "type": "boolean", "default": false }, "filterby": { "type": "string", "default": "" }, "orderby": { "type": "string", "default": "date" }, "order": { "type": "string", "default": "desc" }, "listings_per_page": { "type": "number", "default": 6 }, "show_pagination": { "type": "boolean", "default": false }, "header": { "type": "boolean", "default": true }, "header_title": { "type": "string", "default": "Listings Found" }, "category": { "type": "string", "default": "" }, "location": { "type": "string", "default": "" }, "tag": { "type": "string", "default": "" }, "ids": { "type": "string", "default": "" }, "columns": { "type": "number", "default": 3, "enum": [ 2, 3, 4 ] }, "featured_only": { "type": "boolean", "default": false }, "popular_only": { "type": "boolean", "default": false }, "advanced_filter": { "type": "boolean", "default": false }, "display_preview_image": { "type": "boolean", "default": true }, "logged_in_user_only": { "type": "boolean", "default": false }, "redirect_page_url": { "type": "string", "default": "" }, "map_height": { "type": "number", "default": 500 }, "map_zoom_level": { "type": "number", "default": 0 }, "directory_type": { "type": "string", "default": "" }, "default_directory_type": { "type": "string", "default": "" }, "sidebar": { "type": "string", "default": "" } }, "supports": { "html": false }, "editorScript": [ "file:./index.js", "jquery-masonry", "directorist-swiper", "directorist-select2-script", "directorist-all-listings", "directorist-listing-slider", "directorist-search-form", "directorist-openstreet-map", "directorist-google-map" ] }
Save File
Cancel