Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab
indent_size = 4

[*.json]
indent_style = space
Expand Down
File renamed without changes
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
vendor
/vendor/
10 changes: 8 additions & 2 deletions readme.md → README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
<p align="center">
<img src="timber-wp-acf-blocks.png">
<img src=".github/assets/timber-wp-acf-blocks.png" alt="Timber ACF WP Blocks logo">
</p>

# Timber ACF WP Blocks

Generate ACF Gutenberg blocks just by adding templates to your Timber theme. This package is based heavily on [this article](https://medium.com/nicooprat/acf-blocks-avec-gutenberg-et-sage-d8c20dab6270) by [nicoprat](https://github.com/nicooprat) and the [plugin](https://github.com/MWDelaney/sage-acf-wp-blocks) by [MWDelaney](https://github.com/MWDelaney).

## Complete documentation

[Read the complete documentation](https://palmiak.github.io/timber-acf-wp-blocks/#/)

## Contributors

This plugin is build with help of contributors:

- [roylodder](https://github.com/roylodder)
- [BrentWMiller](https://github.com/BrentWMiller)
- [Marcin Krzemiński](https://github.com/marcinkrzeminski)
- [Kuba Mikita](https://github.com/Kubitomakita)
- [LandWire](https://github.com/landwire)
- [Viktor Szépe](https://github.com/szepeviktor)


## Creating blocks

Add twig templates to `views/blocks` which get and use ACF data. Each template requires a comment block with some data in it:

```twig
{#
Title: Testimonial
Expand Down Expand Up @@ -51,4 +56,5 @@ Add twig templates to `views/blocks` which get and use ACF data. Each template r
```

## Timber 2.0

**Timber ACF WP Blocks** is fully compatible with both **Timber 1.x** and **Timber 2.x** versions.
9 changes: 7 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@
"files": ["timber-acf-wp-blocks.php"]
},
"require-dev": {
"wp-coding-standards/wpcs": "2.0",
"dealerdirect/phpcodesniffer-composer-installer": "0.5.0"
"wp-coding-standards/wpcs": "^2.0",
"dealerdirect/phpcodesniffer-composer-installer": "^1.0"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
220 changes: 53 additions & 167 deletions composer.lock

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

Loading