An open API service indexing awesome lists of open source software.

https://github.com/lichtmetzger/mega-forms-local-captcha

Integrates a local captcha by MobiCMS into Mega Forms.
https://github.com/lichtmetzger/mega-forms-local-captcha

mega-forms wordpress wordpress-plugin

Last synced: 2 months ago
JSON representation

Integrates a local captcha by MobiCMS into Mega Forms.

Awesome Lists containing this project

README

          

# Mega Forms - Local Captcha Addon

## Dependencies

First install composer:
https://getcomposer.org/download/

Then initialize it in the project folder:

```
composer install
composer dump-autoload
```

This project is based on the Node version specified in the .nvmrc file. **If you use a different version and commit a reformatted package.json, you will be punished.**

Look up Node Version Manager (nvm) to see how to use it.

## Translations

Translation files are generated by the wp-cli bundle, specifically the "wp-cli i18n" command. The translation domain for all strings is "mega-forms-local-captcha". Install wp-cli via composer:

```
composer install
```

Then, run

```
make pot
```

to generate a master file with all of the language definitions. You can use PoEdit to create .po and .mo files with your translations and put them into the languages directory.

## Building the main CSS file

The CSS of this plugin is generated by sass.
scss/main.scss is compiled into css/main.css.

The intended way to build this is to use sass included by npm:

```
npm run build-css
```

## Build release ZIP file

Make sure zip is installed:

```
sudo apt install zip
```

Then run:

```
make release
```

and you will get an unbloated mega-forms-local-captcha.zip that you can install in WordPress.