Skip to content

Commit

Permalink
Merge pull request #12 from sarahcssiqueira/develop
Browse files Browse the repository at this point in the history
Fix #11
  • Loading branch information
sarahcssiqueira authored Jun 3, 2024
2 parents 2b6eaf7 + 3258cc1 commit 2a13367
Show file tree
Hide file tree
Showing 13 changed files with 2,758 additions and 3,096 deletions.
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
[![License: GPL v2](https://img.shields.io/badge/License-GPL_v2-blue.svg)](https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html)
[![Release Version](https://img.shields.io/github/release/sarahcssiqueira/xywz-blocks.svg)](https://github.com/sarahcssiqueira/xywz-blocks/releases/latest)
[![Release Version](https://img.shields.io/github/release/sarahcssiqueira/xywz-blocks.svg)](https://github.com/sarahcssiqueira/wxyz-blocks/releases/latest)

Structure to work with multiple Gutenberg blocks in a single plugin. Contains four main blocks.
Structure to work with multiple Gutenberg blocks in plugin. Contains four main blocks.

## Table of Contents

Expand All @@ -30,11 +30,11 @@ Structure to work with multiple Gutenberg blocks in a single plugin. Contains fo

### Block W

Show latest custom posts.
Receives an attribute and displays it in frontend.

### Block X

Receives an attribute and displays it in frontend.
Show latest posts.

### Block Y

Expand All @@ -53,8 +53,6 @@ To achieve that, you can create your custom block category using the WordPress b
Example: **register_new_category** function:

```
//index.php
function register_new_category ($categories) {
$categories[] = array(
'slug' => 'custom-category',
Expand All @@ -65,15 +63,16 @@ Example: **register_new_category** function:
}
add_filter( 'block_categories_all' , 'register_new_category');
```

## Usage

Clone this repository `git clone https://github.com/sarahcssiqueira/xywz-blocks` or download the [latest release](https://github.com/sarahcssiqueira/xywz-blocks/releases).
Clone this repository `git clone https://github.com/sarahcssiqueira/wxyz-blocks` or download the [latest release](https://github.com/sarahcssiqueira/wxyz-blocks/releases).

Run `npm install` && `npm run build`

Run `composer install`

## License

This project is licensed under the license [GPLv2 or later](https://choosealicense.com/licenses/gpl-2.0/#).
2 changes: 1 addition & 1 deletion blocks/block-w/build/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-element', 'wp-i18n'), 'version' => '0b7ff61aac7e64581ba9');
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-i18n'), 'version' => '054f3ed30f8c2f66139c');
2 changes: 1 addition & 1 deletion blocks/block-w/build/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion blocks/block-x/build/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-element', 'wp-i18n'), 'version' => 'd2415db9b2759816d067');
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-i18n'), 'version' => '931b13b4944fbee0982c');
2 changes: 1 addition & 1 deletion blocks/block-x/build/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion blocks/block-y/build/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-element', 'wp-i18n'), 'version' => '00b087886b1e7ea641f9');
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-i18n'), 'version' => 'fa3899032a9c1c748e9b');
227 changes: 1 addition & 226 deletions blocks/block-y/build/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2a13367

Please sign in to comment.