Planet4 - GPEA Blocks
Shortcake blocks for the GPEA office Planet4 implementations
by Greenpeace Netherlands · github.com/greenpeace/planet4-gpea-plugin-blocks · website
★ 2stars
4.3kcomposer installs
2forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/greenpeace/planet4-gpea-plugin-blocks/archive/refs/heads/master.zipAlso on Packagist as greenpeace/planet4-gpea-plugin-blocks:
composer require greenpeace/planet4-gpea-plugin-blocksFrom the readme
GreenpeaceEA Planet 4 - Shortcodes
This WordPress plugin provides blocks to be used with Shortcake UI plugin.
This plugin is developed by Greenpeace Netherlands to be used in the Planet4 engagement platform.
Currently this plugin adds the following new shortcodes:
1. Donation form
2. Petition form
3. No-index (to discourage search engines from indexing)
4. Liveblog
Coming in the near-future (available on dev-branch)
1. Quote block with image
2. Statistics block in 3 columns
3. New hero image header
In the backlog are among others:
Information request form
interactive maps
How to develop a new block you ask?
1. Create a new controller class that extends Controller inside directory classes/controller/blocks. The class name should follow naming convention: GPEABlocknameController and its file name should be class-blockname-controller.php.
2. Implement its parent's class two abstract methods:
In method preparefields() you need to define the blocks fields
In method preparetemplate() you need to prepare them for rendering.
3. Create the template file that will be used to render your block inside directory includes/blocks. If the name of the file is gpeablockname.twig then
y
Read the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| v0.3.8.3 | Jun 4, 2020 | — | — |
| v0.3.8.2 | Apr 13, 2020 | — | — |
| v0.3.8.1 | Jan 15, 2020 | — | — |
| v0.3.8 | Jan 14, 2020 | — | — |
| v0.3.7.24 | Dec 5, 2019 | — | — |
| v0.3.7.23 | Nov 26, 2019 | — | — |
| v0.3.7.2 | Nov 15, 2019 | — | — |
| v0.3.7.1 | Nov 4, 2019 | — | — |
| v0.3.7 | Oct 23, 2019 | — | — |
| v0.3.6.5 | Oct 2, 2019 | — | — |
| v0.3.6.4 | Sep 30, 2019 | — | — |
| v0.3.6.3 | Sep 24, 2019 | — | — |
| v0.3.6.2 | Sep 23, 2019 | — | — |
| v0.3.6.1 | Sep 9, 2019 | — | — |
| v0.3.6 | Aug 9, 2019 | — | — |
| v0.3.5.9 | Aug 8, 2019 | — | — |
| v0.3.5.8 | Aug 6, 2019 | — | — |
| v0.3.5.7 | Jul 31, 2019 | — | — |
| v0.3.5.6 | Jul 29, 2019 | — | — |
| v0.3.5.5 | Jul 26, 2019 | — | — |
| v0.3.5.4 | Jul 25, 2019 | — | — |
| v0.3.5.3 | Jul 25, 2019 | — | — |
| v0.3.5.2 | Jul 25, 2019 | — | — |
| v0.3.5.1 | Jul 25, 2019 | — | — |
| v0.3.5 | Jul 24, 2019 | — | — |