-
Notifications
You must be signed in to change notification settings - Fork 0
/
clean-and-simple-contact-form-by-meg-nicholas.php
62 lines (46 loc) · 2.09 KB
/
clean-and-simple-contact-form-by-meg-nicholas.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
/**
* @package Clean and Simple Contact Form
*/
/*
Plugin Name: Clean and Simple Contact Form
Plugin URI: http://www.megnicholas.co.uk/wordpress-plugins/clean-and-simple-contact-form
Description: A clean and simple contact form with Google reCAPTCHA and Twitter Bootstrap markup.
Version: 4.0.9
Author: Meghan Nicholas
Author URI: http://www.megnicholas.co.uk
License: GPLv2 or later
*/
/*
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
/*
* @package Main
*/
include ('shortcodes/contact-form.php');
include ('class.cff.php');
include ('class.cff_pluginsettings.php');
include ('class.cff_settings.php');
include ('class.cff_contact.php');
include ('class.view.php');
include ('class.cff_filters.php');
if (cff_PluginSettings::UseRecaptcha()) include ('recaptcha-php-1.11/recaptchalib.php');
if (!defined('CFF_THEME_DIR')) define('CFF_THEME_DIR', ABSPATH . 'wp-content/themes/' . get_template());
if (!defined('CFF_PLUGIN_NAME')) define('CFF_PLUGIN_NAME', 'clean-and-simple-contact-form-by-meg-nicholas');
if (!defined('CFF_PLUGIN_DIR')) define('CFF_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . CFF_PLUGIN_NAME);
if (!defined('CFF_PLUGIN_URL')) define('CFF_PLUGIN_URL', WP_PLUGIN_URL . '/' . CFF_PLUGIN_NAME);
if (!defined('CFF_VERSION_KEY')) define('CFF_VERSION_KEY', 'cff_version');
if (!defined('CFF_VERSION_NUM')) define('CFF_VERSION_NUM', '4.0.9');
if (!defined('CFF_OPTIONS_KEY')) define('CFF_OPTIONS_KEY', 'cff_options');
add_option(CFF_VERSION_KEY, CFF_VERSION_NUM);
$cff = new cff();