| 1 |
<?php |
| 2 |
/** |
| 3 |
* |
| 4 |
* Plugin Name: Civist - Petitions and Fundraising |
| 5 |
* Description: With Civist you create petitions directly in WordPress, raise funds and build strong supporter networks. |
| 6 |
* Version: 8.0.3 |
| 7 |
* Author: Civist |
| 8 |
* Author URI: https://civist.com |
| 9 |
* License: MIT |
| 10 |
* Text Domain: civist |
| 11 |
* |
| 12 |
* @package civist |
| 13 |
*/ |
| 14 |
|
| 15 |
if ( ! defined( 'WPINC' ) ) { |
| 16 |
die; |
| 17 |
} |
| 18 |
|
| 19 |
|
| 20 |
/** |
| 21 |
* The plugin's uninstall handler. |
| 22 |
*/ |
| 23 |
function civist_uninstall() { |
| 24 |
delete_option( 'civist' ); |
| 25 |
} |
| 26 |
|
| 27 |
register_uninstall_hook( __FILE__, 'civist_uninstall' ); |
| 28 |
|
| 29 |
/** |
| 30 |
* Instantiate the plugin class |
| 31 |
*/ |
| 32 |
function civist_run() { |
| 33 |
$version = '8.0.3'; |
| 34 |
$plugin_name = 'Civist'; |
| 35 |
$plugin_slug = 'civist'; |
| 36 |
$plugin_text_domain = 'civist'; |
| 37 |
$plugin_file = __FILE__; |
| 38 |
$registration_url = 'https://registration.civist.cloud/'; |
| 39 |
$geoip_url = 'https://geoip.civist.cloud/'; |
| 40 |
$widget_supported_languages = json_decode( '["ca","cs","de","en","en-GB","en-US","es","eu","fr","hr","it","lt","nl","nl-NL-x-formal","nb","pl","pt","ro","sk","sv","tr","ko"]' ); |
| 41 |
$enforce_https = true; |
| 42 |
if ( defined( 'CIVIST_ENFORCE_HTTPS' ) ) { |
| 43 |
$enforce_https = CIVIST_ENFORCE_HTTPS; |
| 44 |
} |
| 45 |
|
| 46 |
require_once( 'class-civist.php' ); |
| 47 |
$plugin = new Civist( $version, $plugin_name, $plugin_slug, $plugin_text_domain, $plugin_file, $registration_url, $geoip_url, $widget_supported_languages, $enforce_https ); |
| 48 |
$plugin->run(); |
| 49 |
} |
| 50 |
civist_run(); |
| 51 |
|