bartnovak/timber-acf-wp-blocks
最新稳定版本:0.2
Composer 安装命令:
composer require bartnovak/timber-acf-wp-blocks
包简介
Create Gutenberg blocks from Twig templates and ACF fields.
README 文档
README
Timber ACF WP Blocks
Generate ACF Gutenberg blocks just by adding templates to your Timber theme. This package is based heavily on this article by nicoprat and the plugin by MWDelaney.
Complete documentation
Read the complete documentation
Contributors
This plugin is build with help of contributors:
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:
{# Title: Testimonial Description: Customer testimonial Category: formatting Icon: admin-comments Keywords: testimonial quote "customer testimonial" Mode: edit Align: left PostTypes: page post SupportsAlign: left right SupportsMode: false SupportsMultiple: false #} <blockquote data-{{ block.id }}> <p>{{ fields.testimonial }}</p> <cite> <span>{{ fields.author }}</span> </cite> </blockquote> <style type="text/css"> [data-{{ block.id }}] { background: {{ fields.background_color }}; color: {{ fields.text_color }}; } </style>
Timber 2.0
Timber ACF WP Blocks is fully compatible with both Timber 1.x and Timber 2.x versions.
How can I report security bugs?
You can report security bugs through the Patchstack Vulnerability Disclosure Program. The Patchstack team helps validate, triage, and handle any security vulnerabilities. Report a security vulnerability.
统计信息
- 总下载量: 2.41k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-04-03
