idflood / demovox

demovox is a tool to collect signatures for Swiss popular initiatives by offering the visitor a personalized signature sheet.

Home Page:https://demovox.ch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SP Schweiz

Demovox

Demovox

We use Github to maintain our Code. If you want to use our WordPress Plugin as a prebuilt Zip-File, visit our Website and download it from there.

Get the latest Stable Version: https://demovox.ch

Description

demovox is a tool to collect signatures for Swiss popular initiatives by offering the visitor a personalized signature sheet.

It was initially built for the popular initiative Prämien-Entlastungs-Initiative.

Donations

This Plugin was developed by the Socialist Party of Switzerland.

If you want to use this Plugin for a Swiss Referendum or a Initiative consider a donation at https://demovox.ch

Requirements

  • PHP 7
  • WordPress
  • SSL certificate for HTTPS (unsecure connection is only allowed for development)
  • Optional feature requires the PHP modules "GMP" or "BC Math"

Installation

  1. Pull demovox to the Wordpress Plugin directory (/wp-content/plugins/)
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Configure the plugin in WordPress admin
  4. Place shortcodes [demovox_form] on a page
  5. Optionally use and [demovox_count] to get the number of collected signatures and [demovox_optin] for the opt-in form.

Dev

Required packages

Please install the following build dependencies:

Download required packages:

npm install
npm install grunt-cli sass -g
composer install

Generate assets

Generate minified JS and CSS files and compile .mo translation files:

grunt buildAssets

Build zip

Create a ZIP which can be uploaded to a remote WordPress installation:

grunt buildZip

Unencrypted access

As developer you might want to work on a web server without SSL configured. Enable WP_DEBUG in wp-config.php. Then open the Advanced settings of the plugin in the WordPress backend and disable "Redirect clients to secure HTTPS".

Running the tests

There are no automated tests available yet, feel free to implement them and send a pull-request.

Changelog

Version Description
1.0 First release

Authors

Thanks goes to these wonderful people:

See also the list of contributors who participated in this project.

License

This project is licensed under the GPLv3 License - see the LICENSE.txt file for details.

About

demovox is a tool to collect signatures for Swiss popular initiatives by offering the visitor a personalized signature sheet.

https://demovox.ch

License:GNU General Public License v3.0


Languages

Language:PHP 84.1%Language:JavaScript 14.1%Language:CSS 1.7%Language:Shell 0.0%