greenpeace / planet4-gpnordic-plugin-leads
This repository contains the Greenpeace Nordic Leads Plugin with ACF blocks.
Installs: 2 265
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 9
Forks: 0
Open Issues: 0
Type:wordpress-plugin
Requires
- stoutlogic/acf-builder: ^1.12
Requires (Dev)
- dealerdirect/phpcodesniffer-composer-installer: ^0.7.1
- phpunit/phpunit: ^7.5||^9.5
- squizlabs/php_codesniffer: ^3.5.8
- wp-coding-standards/wpcs: ^2.2.0
- yoast/phpunit-polyfills: ^1.0
- dev-develop
- v1.1.10
- v1.1.9
- v1.1.8
- v1.1.7
- v1.1.6
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.15
- v1.0.14
- v1.0.13
- v1.0.12
- v1.0.11.1
- v1.0.11
- v1.0.10
- v1.0.9
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- dev-master
- dev-fix/custom-error-message
- dev-release/v.1.1.10
- dev-loading-counter-fix
- dev-multistep
- dev-feature/update-petition-locations-overhaul
- dev-add-reffrer
- dev-test-multistep
- dev-fix-loading-speed
- dev-snyk-fix-f42f87310d78fc44421fe3f663ea4041
- dev-SB-116-utm-values-on-petition-sign-up
- dev-SB-11-link-to-petition-settings
- dev-snyk-fix-0d8d90fdb73df8123fc1a0bfe53dedd7
- dev-SB-105-non-existing-joined-counter-api-e
- dev-SB-104-trim-new-paragraphs-for-hero-head
- dev-SB-97-implement-the-success-version-of-t
- dev-whatsapp-utm
This package is auto-updated.
Last update: 2024-10-24 11:29:06 UTC
README
This plugin adds a Gutenberg block with a form available in various formats, it also adds a settings page for all forms created with the plugin and a post type (leads-form
) with unique settings for every form.
JS and CSS
Front-end stuff like compiled javascript and css etc are stored in the /public folder, don't edit those since they're compiled from scss and js files in /assets/js/ and /assets/scss/.
The plugin uses Vue, jQuery, Lottie and GSAP - all except jQuery are loaded from the modules javascript file found in /assets/js/modules/leads-form.js
To compile new js and scss simply install dependecies using npm i
and then run gulp using gulp
(this will watch for changes in the js/scss stored in /assets/ and compile new files on change.)
Markup
The markup for the form itself is found in /templates/blocks/leads-form/leads-form.php (it's not a twig file I know, sorry), there you will also find the data being passed from Wordpress to Vue.
Posting form
The data that are posted from the form are sent via javascript (/assets/js/modules/leads-form.js) to the form-controller found in lib/controllers/leads-form-controller.php.