greenpeace/planet4-gpnordic-plugin-leads
最新稳定版本:v1.1.16
Composer 安装命令:
composer require greenpeace/planet4-gpnordic-plugin-leads
包简介
This repository contains the Greenpeace Nordic Leads Plugin with ACF blocks.
README 文档
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.
统计信息
- 总下载量: 3.52k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2021-01-27