Version Description
- Update contributors names
- Option to change recaptcha language
Download this release
Release Info
Developer | codeinwp |
Plugin | Contact Form & SMTP Plugin for WordPress by PirateForms |
Version | 1.0.12 |
Comparing to | |
See all releases |
Code changes from version 1.0.10 to 1.0.12
- CHANGELOG.md +16 -0
- css/front.css +4 -1
- inc/PhpFormBuilder.php +1 -1
- js/scripts-general.js +4 -0
- pirate-forms.php +32 -24
- readme.txt +9 -2
CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1 |
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
### 1.0.9 - 10/03/2016
|
4 |
|
5 |
Changes:
|
1 |
|
2 |
|
3 |
+
### 1.0.12 - 21/03/2016
|
4 |
+
|
5 |
+
Changes:
|
6 |
+
|
7 |
+
|
8 |
+
* Option to change recaptcha language
|
9 |
+
|
10 |
+
|
11 |
+
### 1.0.11 - 14/03/2016
|
12 |
+
|
13 |
+
Changes:
|
14 |
+
|
15 |
+
|
16 |
+
* Fixed #55 Recaptcha too down
|
17 |
+
|
18 |
+
|
19 |
### 1.0.9 - 10/03/2016
|
20 |
|
21 |
Changes:
|
css/front.css
CHANGED
@@ -24,4 +24,7 @@
|
|
24 |
}
|
25 |
.pirate_forms_clearfix {
|
26 |
clear: both;
|
27 |
-
}
|
|
|
|
|
|
24 |
}
|
25 |
.pirate_forms_clearfix {
|
26 |
clear: both;
|
27 |
+
}
|
28 |
+
.contact_submit_wrap {
|
29 |
+
text-align: right;
|
30 |
+
}
|
inc/PhpFormBuilder.php
CHANGED
@@ -359,7 +359,7 @@ class PhpFormBuilder {
|
|
359 |
break;
|
360 |
endif;
|
361 |
case 'submit':
|
362 |
-
$element = 'div class="col-
|
363 |
$end .= ' class="" type="' . $val['type'] . '">' . $val['value'] . '</button></div>';
|
364 |
break;
|
365 |
default :
|
359 |
break;
|
360 |
endif;
|
361 |
case 'submit':
|
362 |
+
$element = 'div class="col-xs-12 col-sm-6 col-lg-6 form_field_wrap contact_submit_wrap"><button';
|
363 |
$end .= ' class="" type="' . $val['type'] . '">' . $val['value'] . '</button></div>';
|
364 |
break;
|
365 |
default :
|
js/scripts-general.js
CHANGED
@@ -8,4 +8,8 @@ jQuery(document).ready(function() {
|
|
8 |
scrollTop: jQuery('#contact').offset().top
|
9 |
}, 'slow');
|
10 |
}
|
|
|
|
|
|
|
|
|
11 |
});
|
8 |
scrollTop: jQuery('#contact').offset().top
|
9 |
}, 'slow');
|
10 |
}
|
11 |
+
|
12 |
+
if( typeof jQuery('.pirate_forms_three_inputs').val() != 'undefined' ) {
|
13 |
+
jQuery('.pirate_forms_three_inputs').wrapAll('<div class="pirate_forms_three_inputs_wrap">');
|
14 |
+
}
|
15 |
});
|
pirate-forms.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Free & Simple Contact Form Plugin - PirateForms
|
4 |
Plugin URI: http://themeisle.com/plugins/pirate-forms/
|
5 |
Description: Easily creates a nice looking, simple contact form on your WP site.
|
6 |
-
Version: 1.0.
|
7 |
Author: Themeisle
|
8 |
Author URI: http://themeisle.com
|
9 |
Text Domain: pirate-forms
|
@@ -135,7 +135,7 @@ function pirate_forms_display_form( $atts, $content = NULL ) {
|
|
135 |
if ( !empty($pirateformsopt_name_field) && !empty($pirateformsopt_name_label) ):
|
136 |
|
137 |
$required = $pirateformsopt_name_field === 'req' ? TRUE : FALSE;
|
138 |
-
$wrap_classes = array( $pirate_forms_layout_input.' form_field_wrap', 'contact_name_wrap ' );
|
139 |
|
140 |
// If this field was submitted with invalid data
|
141 |
if ( isset( $_SESSION['pirate_forms_contact_errors']['contact-name'] ) ) {
|
@@ -161,7 +161,7 @@ function pirate_forms_display_form( $atts, $content = NULL ) {
|
|
161 |
if ( !empty($pirateformsopt_email_field) && !empty($pirateformsopt_email_label) ):
|
162 |
|
163 |
$required = $pirateformsopt_email_field === 'req' ? TRUE : FALSE;
|
164 |
-
$wrap_classes = array( $pirate_forms_layout_input.' form_field_wrap', 'contact_email_wrap ' );
|
165 |
|
166 |
// If this field was submitted with invalid data
|
167 |
if ( isset( $_SESSION['pirate_forms_contact_errors']['contact-email'] ) ) {
|
@@ -188,7 +188,7 @@ function pirate_forms_display_form( $atts, $content = NULL ) {
|
|
188 |
if ( !empty($pirateformsopt_subject_field) && !empty($pirateformsopt_subject_label) ):
|
189 |
|
190 |
$required = $pirateformsopt_subject_field === 'req' ? TRUE : FALSE;
|
191 |
-
$wrap_classes = array( $pirate_forms_layout_input.' form_field_wrap', 'contact_subject_wrap ' );
|
192 |
|
193 |
// If this field was submitted with invalid data
|
194 |
if ( isset( $_SESSION['pirate_forms_contact_errors']['contact-subject'] ) ) {
|
@@ -241,6 +241,27 @@ function pirate_forms_display_form( $atts, $content = NULL ) {
|
|
241 |
endif;
|
242 |
endif;
|
243 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
244 |
/********************************/
|
245 |
/******** Submit button ********/
|
246 |
/********************************/
|
@@ -268,25 +289,6 @@ function pirate_forms_display_form( $atts, $content = NULL ) {
|
|
268 |
endif;
|
269 |
endif;
|
270 |
|
271 |
-
/******************************/
|
272 |
-
/********* ReCaptcha **********/
|
273 |
-
/******************************/
|
274 |
-
|
275 |
-
if( !empty($pirate_forms_options['pirateformsopt_recaptcha_secretkey']) && !empty($pirate_forms_options['pirateformsopt_recaptcha_sitekey']) && !empty($pirate_forms_options['pirateformsopt_recaptcha_field']) && ($pirate_forms_options['pirateformsopt_recaptcha_field'] == 'yes') ):
|
276 |
-
|
277 |
-
$pirateformsopt_recaptcha_sitekey = $pirate_forms_options['pirateformsopt_recaptcha_sitekey'];
|
278 |
-
$pirateformsopt_recaptcha_secretkey = $pirate_forms_options['pirateformsopt_recaptcha_secretkey'];
|
279 |
-
|
280 |
-
$pirate_form->add_input(
|
281 |
-
'',
|
282 |
-
array(
|
283 |
-
'value' => $pirateformsopt_recaptcha_sitekey,
|
284 |
-
'type' => 'captcha'
|
285 |
-
),
|
286 |
-
'pirate-forms-captcha'
|
287 |
-
);
|
288 |
-
|
289 |
-
endif;
|
290 |
endif;
|
291 |
|
292 |
/* Referring site or page, if any */
|
@@ -649,7 +651,13 @@ function pirate_forms_add_styles_and_scripts() {
|
|
649 |
|
650 |
if( !empty($pirate_forms_options['pirateformsopt_recaptcha_secretkey']) && !empty($pirate_forms_options['pirateformsopt_recaptcha_sitekey']) && !empty($pirate_forms_options['pirateformsopt_recaptcha_field']) && ($pirate_forms_options['pirateformsopt_recaptcha_field'] == 'yes') ):
|
651 |
|
652 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
653 |
|
654 |
wp_enqueue_script( 'pirate_forms_scripts', plugins_url( 'js/scripts.js', __FILE__ ), array('jquery','recaptcha') );
|
655 |
|
3 |
Plugin Name: Free & Simple Contact Form Plugin - PirateForms
|
4 |
Plugin URI: http://themeisle.com/plugins/pirate-forms/
|
5 |
Description: Easily creates a nice looking, simple contact form on your WP site.
|
6 |
+
Version: 1.0.12
|
7 |
Author: Themeisle
|
8 |
Author URI: http://themeisle.com
|
9 |
Text Domain: pirate-forms
|
135 |
if ( !empty($pirateformsopt_name_field) && !empty($pirateformsopt_name_label) ):
|
136 |
|
137 |
$required = $pirateformsopt_name_field === 'req' ? TRUE : FALSE;
|
138 |
+
$wrap_classes = array( $pirate_forms_layout_input.' form_field_wrap', 'contact_name_wrap pirate_forms_three_inputs ' );
|
139 |
|
140 |
// If this field was submitted with invalid data
|
141 |
if ( isset( $_SESSION['pirate_forms_contact_errors']['contact-name'] ) ) {
|
161 |
if ( !empty($pirateformsopt_email_field) && !empty($pirateformsopt_email_label) ):
|
162 |
|
163 |
$required = $pirateformsopt_email_field === 'req' ? TRUE : FALSE;
|
164 |
+
$wrap_classes = array( $pirate_forms_layout_input.' form_field_wrap', 'contact_email_wrap pirate_forms_three_inputs ' );
|
165 |
|
166 |
// If this field was submitted with invalid data
|
167 |
if ( isset( $_SESSION['pirate_forms_contact_errors']['contact-email'] ) ) {
|
188 |
if ( !empty($pirateformsopt_subject_field) && !empty($pirateformsopt_subject_label) ):
|
189 |
|
190 |
$required = $pirateformsopt_subject_field === 'req' ? TRUE : FALSE;
|
191 |
+
$wrap_classes = array( $pirate_forms_layout_input.' form_field_wrap', 'contact_subject_wrap pirate_forms_three_inputs ' );
|
192 |
|
193 |
// If this field was submitted with invalid data
|
194 |
if ( isset( $_SESSION['pirate_forms_contact_errors']['contact-subject'] ) ) {
|
241 |
endif;
|
242 |
endif;
|
243 |
|
244 |
+
/******************************/
|
245 |
+
/********* ReCaptcha **********/
|
246 |
+
/******************************/
|
247 |
+
|
248 |
+
if( !empty($pirate_forms_options['pirateformsopt_recaptcha_secretkey']) && !empty($pirate_forms_options['pirateformsopt_recaptcha_sitekey']) && !empty($pirate_forms_options['pirateformsopt_recaptcha_field']) && ($pirate_forms_options['pirateformsopt_recaptcha_field'] == 'yes') ):
|
249 |
+
|
250 |
+
$pirateformsopt_recaptcha_sitekey = $pirate_forms_options['pirateformsopt_recaptcha_sitekey'];
|
251 |
+
$pirateformsopt_recaptcha_secretkey = $pirate_forms_options['pirateformsopt_recaptcha_secretkey'];
|
252 |
+
|
253 |
+
$pirate_form->add_input(
|
254 |
+
'',
|
255 |
+
array(
|
256 |
+
'value' => $pirateformsopt_recaptcha_sitekey,
|
257 |
+
'wrap_class' => 'col-xs-12 col-sm-6 col-lg-6 form_field_wrap form_captcha_wrap',
|
258 |
+
'type' => 'captcha',
|
259 |
+
),
|
260 |
+
'pirate-forms-captcha'
|
261 |
+
);
|
262 |
+
|
263 |
+
endif;
|
264 |
+
|
265 |
/********************************/
|
266 |
/******** Submit button ********/
|
267 |
/********************************/
|
289 |
endif;
|
290 |
endif;
|
291 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
292 |
endif;
|
293 |
|
294 |
/* Referring site or page, if any */
|
651 |
|
652 |
if( !empty($pirate_forms_options['pirateformsopt_recaptcha_secretkey']) && !empty($pirate_forms_options['pirateformsopt_recaptcha_sitekey']) && !empty($pirate_forms_options['pirateformsopt_recaptcha_field']) && ($pirate_forms_options['pirateformsopt_recaptcha_field'] == 'yes') ):
|
653 |
|
654 |
+
if ( defined( 'POLYLANG_VERSION' ) && function_exists('pll_current_language') ) {
|
655 |
+
$pirate_forms_contactus_language = pll_current_language();
|
656 |
+
} else {
|
657 |
+
$pirate_forms_contactus_language = get_locale();
|
658 |
+
}
|
659 |
+
|
660 |
+
wp_enqueue_script( 'recaptcha', 'https://www.google.com/recaptcha/api.js?hl='.$pirate_forms_contactus_language.'' );
|
661 |
|
662 |
wp_enqueue_script( 'pirate_forms_scripts', plugins_url( 'js/scripts.js', __FILE__ ), array('jquery','recaptcha') );
|
663 |
|
readme.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
=== Free & Simple Contact Form Plugin - PirateForms ===
|
2 |
-
Contributors: themeisle, codeinwp, rodicaelena
|
3 |
Tags: Attachment, cnotact, conact, contact, contact button, contact form, contact form plugin, contact me, contacts, contacts form plugin, contatc, copy, email submit form, email subscription, feedback, feedback form, form, insert the shortcode, message form, post feedback, request, send, send copy, send messages, shortcode, text, web-page feedback,smtp,recaptcha
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 4.4
|
@@ -72,6 +72,13 @@ Activating the Pirate Contact Form plugin is just like any other plugin. If you'
|
|
72 |
|
73 |
== Changelog ==
|
74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
= 1.0.9 =
|
76 |
* Fixed layout issues #52
|
77 |
* Update readme.txt with == Changelog == section #51
|
@@ -79,4 +86,4 @@ Activating the Pirate Contact Form plugin is just like any other plugin. If you'
|
|
79 |
= 1.0.8 =
|
80 |
* Update readme.txt
|
81 |
* Update translations files
|
82 |
-
* #42, translation issues fixed
|
1 |
=== Free & Simple Contact Form Plugin - PirateForms ===
|
2 |
+
Contributors: themeisle, codeinwp, rodicaelena, alexandrastan001, gouravwptech, hardeepasrani
|
3 |
Tags: Attachment, cnotact, conact, contact, contact button, contact form, contact form plugin, contact me, contacts, contacts form plugin, contatc, copy, email submit form, email subscription, feedback, feedback form, form, insert the shortcode, message form, post feedback, request, send, send copy, send messages, shortcode, text, web-page feedback,smtp,recaptcha
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 4.4
|
72 |
|
73 |
== Changelog ==
|
74 |
|
75 |
+
= 1.0.12 =
|
76 |
+
* Update contributors names
|
77 |
+
* Option to change recaptcha language
|
78 |
+
|
79 |
+
= 1.0.11 =
|
80 |
+
* Fixed #55 Recaptcha too down
|
81 |
+
|
82 |
= 1.0.9 =
|
83 |
* Fixed layout issues #52
|
84 |
* Update readme.txt with == Changelog == section #51
|
86 |
= 1.0.8 =
|
87 |
* Update readme.txt
|
88 |
* Update translations files
|
89 |
+
* #42, translation issues fixed
|