Version Description
- Fix issues with checkboxes not saving data
- Redo the layout of the plugin's admin area
Download this release
Release Info
Developer | codeinwp |
Plugin | Contact Form & SMTP Plugin for WordPress by PirateForms |
Version | 1.0.14 |
Comparing to | |
See all releases |
Code changes from version 1.0.13 to 1.0.14
- CHANGELOG.md +5 -70
- css/wp-admin.css +85 -6
- img/preview.png +0 -0
- inc/settings.php +101 -17
- pirate-forms.php +1 -1
- readme.txt +8 -0
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- screenshot-3.png +0 -0
- screenshot-4.png +0 -0
CHANGELOG.md
CHANGED
@@ -1,69 +1,6 @@
|
|
1 |
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
Changes:
|
6 |
-
|
7 |
-
|
8 |
-
* Update readme.txt
|
9 |
-
|
10 |
-
|
11 |
-
### 1.0.13 - 05/05/2016
|
12 |
-
|
13 |
-
Changes:
|
14 |
-
|
15 |
-
|
16 |
-
* Update readme.txt
|
17 |
-
* Merge pull request #63 from mariusghitulescu/patch-1
|
18 |
-
|
19 |
-
Update readme.txt
|
20 |
-
* Update readme.txt
|
21 |
-
* Update readme.txt
|
22 |
-
|
23 |
-
|
24 |
-
### 1.0.13 - 01/04/2016
|
25 |
-
|
26 |
-
Changes:
|
27 |
-
|
28 |
-
|
29 |
-
* fix issue with multiple forms on same page
|
30 |
-
|
31 |
-
fix for https://github.com/Codeinwp/pirate-forms/issues/59
|
32 |
-
* Merge pull request #60 from selu91/development
|
33 |
-
|
34 |
-
fix issue with multiple forms on same page
|
35 |
-
|
36 |
-
|
37 |
-
### 1.0.12 - 21/03/2016
|
38 |
-
|
39 |
-
Changes:
|
40 |
-
|
41 |
-
|
42 |
-
* Option to change recaptcha language
|
43 |
-
|
44 |
-
|
45 |
-
### 1.0.11 - 14/03/2016
|
46 |
-
|
47 |
-
Changes:
|
48 |
-
|
49 |
-
|
50 |
-
* Fixed #55 Recaptcha too down
|
51 |
-
|
52 |
-
|
53 |
-
### 1.0.9 - 10/03/2016
|
54 |
-
|
55 |
-
Changes:
|
56 |
-
|
57 |
-
|
58 |
-
* Fixed layout issues #52
|
59 |
-
* Update readme.txt with == Changelog == section #51
|
60 |
-
|
61 |
-
|
62 |
-
### 1.0.8 - 09/03/2016
|
63 |
-
|
64 |
-
Changes:
|
65 |
-
|
66 |
-
|
67 |
-
* Update readme.txt
|
68 |
-
* Update translations files
|
69 |
-
* #42, translation issues fixed
|
70 |
-
|
71 |
-
|
72 |
### 1.0.13 - 12/05/2016 Changes: pirate-forms Update readme.txt ### 1.0.13 - 05/05/2016 Changes: pirate-forms Update readme.txt pirate-forms Merge pull request #63 from mariusghitulescu/patch-1 Update readme.txt pirate-forms Update readme.txt pirate-forms Update readme.txt ### 1.0.13 - 01/04/2016 Changes: pirate-forms fix issue with multiple forms on same page fix for https://github.com/Codeinwp/pirate-forms/issues/59 pirate-forms Merge pull request #60 from selu91/development fix issue with multiple forms on same page ### 1.0.12 - 21/03/2016 Changes: pirate-forms Option to change recaptcha language ### 1.0.11 - 14/03/2016 Changes: pirate-forms Fixed #55 Recaptcha too down ### 1.0.9 - 10/03/2016 Changes: pirate-forms Fixed layout issues #52 pirate-forms Update readme.txt with == Changelog == section #51 ### 1.0.8 - 09/03/2016 Changes: pirate-forms Update readme.txt pirate-forms Update translations files pirate-forms #42, translation issues fixed
|
1 |
|
2 |
+
|
3 |
+
|
4 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
+
|
6 |
+
|
7 |
### 1.0.13 - 12/05/2016 Changes: pirate-forms Update readme.txt ### 1.0.13 - 05/05/2016 Changes: pirate-forms Update readme.txt pirate-forms Merge pull request #63 from mariusghitulescu/patch-1 Update readme.txt pirate-forms Update readme.txt pirate-forms Update readme.txt ### 1.0.13 - 01/04/2016 Changes: pirate-forms fix issue with multiple forms on same page fix for https://github.com/Codeinwp/pirate-forms/issues/59 pirate-forms Merge pull request #60 from selu91/development fix issue with multiple forms on same page ### 1.0.12 - 21/03/2016 Changes: pirate-forms Option to change recaptcha language ### 1.0.11 - 14/03/2016 Changes: pirate-forms Fixed #55 Recaptcha too down ### 1.0.9 - 10/03/2016 Changes: pirate-forms Fixed layout issues #52 pirate-forms Update readme.txt with == Changelog == section #51 ### 1.0.8 - 09/03/2016 Changes: pirate-forms Update readme.txt pirate-forms Update translations files pirate-forms #42, translation issues fixed
|
css/wp-admin.css
CHANGED
@@ -55,25 +55,26 @@
|
|
55 |
|
56 |
.pirate-forms-tab-pane {
|
57 |
padding: 30px;
|
58 |
-
}
|
59 |
-
.pirate-forms-tab-pane {
|
60 |
display: none;
|
61 |
}
|
|
|
62 |
.pirate-forms-tab-pane.active {
|
63 |
display: block;
|
64 |
}
|
65 |
.pirate-forms-grouped {
|
66 |
-
|
|
|
|
|
67 |
}
|
68 |
.pirate-forms-grouped label {
|
69 |
-
text-align: right;
|
70 |
display: inline-block;
|
71 |
width: 260px;
|
72 |
margin: 0 1em 0 0;
|
73 |
font-size: 15px;
|
|
|
74 |
font-weight: bold;
|
75 |
}
|
76 |
-
.pirate-forms-grouped label
|
77 |
font-size: 11px;
|
78 |
font-weight: normal;
|
79 |
}
|
@@ -102,10 +103,88 @@
|
|
102 |
margin-right: 0;
|
103 |
}
|
104 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
@media( max-width: 1360px){
|
106 |
.pirate-subscribe.postbox{
|
107 |
margin-left: 0;
|
108 |
-
margin-top:
|
109 |
display: block;
|
110 |
}
|
111 |
}
|
55 |
|
56 |
.pirate-forms-tab-pane {
|
57 |
padding: 30px;
|
|
|
|
|
58 |
display: none;
|
59 |
}
|
60 |
+
|
61 |
.pirate-forms-tab-pane.active {
|
62 |
display: block;
|
63 |
}
|
64 |
.pirate-forms-grouped {
|
65 |
+
display: flex;
|
66 |
+
align-items: center;
|
67 |
+
margin-bottom: 20px;
|
68 |
}
|
69 |
.pirate-forms-grouped label {
|
|
|
70 |
display: inline-block;
|
71 |
width: 260px;
|
72 |
margin: 0 1em 0 0;
|
73 |
font-size: 15px;
|
74 |
+
color: #333;
|
75 |
font-weight: bold;
|
76 |
}
|
77 |
+
.pirate-forms-grouped label .pirate_forms_option_description {
|
78 |
font-size: 11px;
|
79 |
font-weight: normal;
|
80 |
}
|
103 |
margin-right: 0;
|
104 |
}
|
105 |
|
106 |
+
#\31 > form > div > label > span.dashicons {
|
107 |
+
color: #888;
|
108 |
+
margin-left: 10px;
|
109 |
+
}
|
110 |
+
|
111 |
+
#\31 > form > div > label > span.dashicons:after {
|
112 |
+
display: none;
|
113 |
+
content: "";
|
114 |
+
position: absolute;
|
115 |
+
margin-left: 5px;
|
116 |
+
border-left: 5px solid transparent;
|
117 |
+
border-right: 5px solid transparent;
|
118 |
+
border-bottom: 5px solid black;
|
119 |
+
}
|
120 |
+
|
121 |
+
#\31 > form > div > label > .pirate_forms_option_description {
|
122 |
+
display: none;
|
123 |
+
background: rgba(0,0,0,.8);
|
124 |
+
border-radius: 5px;
|
125 |
+
color: #fff;
|
126 |
+
padding: 15px;
|
127 |
+
position: absolute;
|
128 |
+
font-size: 11px;
|
129 |
+
line-height: 16px;
|
130 |
+
margin-left: 190px;
|
131 |
+
margin-top: 4px;
|
132 |
+
z-index: 999;
|
133 |
+
width: 200px;
|
134 |
+
text-align: left;
|
135 |
+
}
|
136 |
+
|
137 |
+
#\31 > form > div > label > span.dashicons:hover + .pirate_forms_option_description, #\31 > form > div > label > span.dashicons:hover::after {
|
138 |
+
display:block;
|
139 |
+
|
140 |
+
}
|
141 |
+
|
142 |
+
#\31 > form > div > label {
|
143 |
+
width: 400px;
|
144 |
+
font-weight: normal;
|
145 |
+
}
|
146 |
+
|
147 |
+
.pirate_forms_contact_settings h3.title, .pirate_forms_welcome_text {
|
148 |
+
text-align: center;
|
149 |
+
font-size: 23px;
|
150 |
+
color: #555;
|
151 |
+
margin: 10px 0 30px;
|
152 |
+
}
|
153 |
+
|
154 |
+
.pirate-forms-tab-pane hr {
|
155 |
+
margin-bottom: 30px;
|
156 |
+
}
|
157 |
+
|
158 |
+
.pirate-forms-tab-pane ol {
|
159 |
+
margin: 20px 0 20px 50px;
|
160 |
+
list-style: inherit;
|
161 |
+
}
|
162 |
+
|
163 |
+
.pirate_forms_subheading {
|
164 |
+
text-align: center;
|
165 |
+
color: #333;
|
166 |
+
font-size: 14px;
|
167 |
+
}
|
168 |
+
|
169 |
+
.rate_plugin_invite {
|
170 |
+
text-align: center;
|
171 |
+
}
|
172 |
+
|
173 |
+
.rate_plugin_invite .dashicons {
|
174 |
+
color: #0073aa;
|
175 |
+
font-size: 12px;
|
176 |
+
width: auto;
|
177 |
+
}
|
178 |
+
|
179 |
+
.pirate_forms_preview {
|
180 |
+
margin: 0 auto 10px;
|
181 |
+
display: inherit;
|
182 |
+
}
|
183 |
+
|
184 |
@media( max-width: 1360px){
|
185 |
.pirate-subscribe.postbox{
|
186 |
margin-left: 0;
|
187 |
+
margin-top: 40px;
|
188 |
display: block;
|
189 |
}
|
190 |
}
|
img/preview.png
ADDED
Binary file
|
inc/settings.php
CHANGED
@@ -113,13 +113,13 @@ function pirate_forms_plugin_options() {
|
|
113 |
'pirateformsopt_confirm_email' => array(
|
114 |
__( 'Send email confirmation to form submitter','pirate-forms' ),
|
115 |
__( 'Adding text here will send an email to the form submitter. The email uses the "Text to show when form is submitted..." field below as the subject line. Plain text only here, no HTML.','pirate-forms' ),
|
116 |
-
'
|
117 |
'',
|
118 |
)
|
119 |
),
|
120 |
'first_tab' => array(
|
121 |
'header_fields' => array(
|
122 |
-
__( 'Fields','pirate-forms' ),
|
123 |
'',
|
124 |
'title',
|
125 |
'',
|
@@ -197,7 +197,7 @@ function pirate_forms_plugin_options() {
|
|
197 |
),
|
198 |
'second_tab' => array(
|
199 |
'header_labels' => array(
|
200 |
-
__( 'Labels','pirate-forms' ),
|
201 |
'',
|
202 |
'title',
|
203 |
'',
|
@@ -235,7 +235,7 @@ function pirate_forms_plugin_options() {
|
|
235 |
),
|
236 |
'third_tab' => array(
|
237 |
'header_messages' => array(
|
238 |
-
__( 'Messages','pirate-forms' ),
|
239 |
'',
|
240 |
'title',
|
241 |
'',
|
@@ -272,6 +272,12 @@ function pirate_forms_plugin_options() {
|
|
272 |
)
|
273 |
),
|
274 |
'fifth_tab' => array(
|
|
|
|
|
|
|
|
|
|
|
|
|
275 |
'pirateformsopt_use_smtp' => array(
|
276 |
__( 'Use SMTP to send emails?','pirate-forms' ),
|
277 |
__( 'Instead of PHP mail function','pirate-forms' ),
|
@@ -421,9 +427,9 @@ function pirate_forms_admin() {
|
|
421 |
<ul class="pirate-forms-nav-tabs" role="tablist">
|
422 |
<li role="presentation" class="active"><a href="#0" aria-controls="how_to_use" role="tab" data-toggle="tab"><?php esc_html_e( 'How to use','pirate-forms'); ?></a></li>
|
423 |
<li role="presentation"><a href="#1" aria-controls="options" role="tab" data-toggle="tab"><?php esc_html_e( 'Options','pirate-forms'); ?></a></li>
|
424 |
-
<li role="presentation"><a href="#2" aria-controls="fields" role="tab" data-toggle="tab"><?php esc_html_e( 'Fields','pirate-forms'); ?></a></li>
|
425 |
-
<li role="presentation"><a href="#3" aria-controls="labels" role="tab" data-toggle="tab"><?php esc_html_e( 'Labels','pirate-forms'); ?></a></li>
|
426 |
-
<li role="presentation"><a href="#4" aria-controls="messages" role="tab" data-toggle="tab"><?php esc_html_e( 'Messages','pirate-forms'); ?></a></li>
|
427 |
<li role="presentation"><a href="#5" aria-controls="smtp" role="tab" data-toggle="tab"><?php esc_html_e( 'SMTP','pirate-forms'); ?></a></li>
|
428 |
</ul>
|
429 |
|
@@ -431,15 +437,33 @@ function pirate_forms_admin() {
|
|
431 |
|
432 |
<div id="0" class="pirate-forms-tab-pane active">
|
433 |
|
434 |
-
<
|
435 |
-
<p><?php esc_html_e( 'To get started, just ','pirate-forms'); ?><b><?php esc_html_e( 'configure all the options ','pirate-forms'); ?></b><?php esc_html_e( 'you need, hit save and start using the created form.','pirate-forms' );
|
436 |
|
437 |
<hr>
|
438 |
|
439 |
-
<
|
440 |
-
|
441 |
-
<p><?php esc_html_e( '
|
442 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
443 |
|
444 |
</div>
|
445 |
|
@@ -506,17 +530,63 @@ function pirate_forms_admin() {
|
|
506 |
?>
|
507 |
|
508 |
<div class="pirate-forms-grouped">
|
509 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
510 |
<input name="<?php echo $opt_id; ?>" id="<?php echo $opt_id ?>" type="<?php echo $opt_type; ?>" value="<?php echo stripslashes( $opt_val ); ?>" class="widefat">
|
511 |
</div>
|
512 |
|
513 |
<?php
|
514 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
515 |
case "select":
|
516 |
?>
|
517 |
<div class="pirate-forms-grouped">
|
518 |
|
519 |
-
<label for="<?php echo $opt_id ?>"><?php echo $opt_name
|
|
|
|
|
|
|
|
|
|
|
|
|
520 |
|
521 |
<select name="<?php echo $opt_id ?>" id="<?php echo $opt_id; ?>">
|
522 |
<?php
|
@@ -538,13 +608,27 @@ function pirate_forms_admin() {
|
|
538 |
case "checkbox":
|
539 |
?>
|
540 |
<div class="pirate-forms-grouped">
|
541 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
542 |
|
543 |
<?php
|
544 |
|
545 |
$checked = '';
|
546 |
-
if ( $
|
547 |
$checked = 'checked';
|
|
|
548 |
?>
|
549 |
|
550 |
<input type="checkbox" value="yes" name="<?php echo $opt_id; ?>" id="<?php echo $opt_id; ?>" <?php echo $checked; ?>>Yes
|
113 |
'pirateformsopt_confirm_email' => array(
|
114 |
__( 'Send email confirmation to form submitter','pirate-forms' ),
|
115 |
__( 'Adding text here will send an email to the form submitter. The email uses the "Text to show when form is submitted..." field below as the subject line. Plain text only here, no HTML.','pirate-forms' ),
|
116 |
+
'textarea',
|
117 |
'',
|
118 |
)
|
119 |
),
|
120 |
'first_tab' => array(
|
121 |
'header_fields' => array(
|
122 |
+
__( 'Fields Settings','pirate-forms' ),
|
123 |
'',
|
124 |
'title',
|
125 |
'',
|
197 |
),
|
198 |
'second_tab' => array(
|
199 |
'header_labels' => array(
|
200 |
+
__( 'Fields Labels','pirate-forms' ),
|
201 |
'',
|
202 |
'title',
|
203 |
'',
|
235 |
),
|
236 |
'third_tab' => array(
|
237 |
'header_messages' => array(
|
238 |
+
__( 'Alert Messages','pirate-forms' ),
|
239 |
'',
|
240 |
'title',
|
241 |
'',
|
272 |
)
|
273 |
),
|
274 |
'fifth_tab' => array(
|
275 |
+
'header_smtp' => array(
|
276 |
+
__( 'SMTP Options','pirate-forms' ),
|
277 |
+
'',
|
278 |
+
'title',
|
279 |
+
'',
|
280 |
+
),
|
281 |
'pirateformsopt_use_smtp' => array(
|
282 |
__( 'Use SMTP to send emails?','pirate-forms' ),
|
283 |
__( 'Instead of PHP mail function','pirate-forms' ),
|
427 |
<ul class="pirate-forms-nav-tabs" role="tablist">
|
428 |
<li role="presentation" class="active"><a href="#0" aria-controls="how_to_use" role="tab" data-toggle="tab"><?php esc_html_e( 'How to use','pirate-forms'); ?></a></li>
|
429 |
<li role="presentation"><a href="#1" aria-controls="options" role="tab" data-toggle="tab"><?php esc_html_e( 'Options','pirate-forms'); ?></a></li>
|
430 |
+
<li role="presentation"><a href="#2" aria-controls="fields" role="tab" data-toggle="tab"><?php esc_html_e( 'Fields Settings','pirate-forms'); ?></a></li>
|
431 |
+
<li role="presentation"><a href="#3" aria-controls="labels" role="tab" data-toggle="tab"><?php esc_html_e( 'Fields Labels','pirate-forms'); ?></a></li>
|
432 |
+
<li role="presentation"><a href="#4" aria-controls="messages" role="tab" data-toggle="tab"><?php esc_html_e( 'Alert Messages','pirate-forms'); ?></a></li>
|
433 |
<li role="presentation"><a href="#5" aria-controls="smtp" role="tab" data-toggle="tab"><?php esc_html_e( 'SMTP','pirate-forms'); ?></a></li>
|
434 |
</ul>
|
435 |
|
437 |
|
438 |
<div id="0" class="pirate-forms-tab-pane active">
|
439 |
|
440 |
+
<h2 class="pirate_forms_welcome_text"><?php esc_html_e( 'Welcome to Pirate Forms!','pirate-forms' ); ?></h2>
|
441 |
+
<p class= "pirate_forms_subheading"><?php esc_html_e( 'To get started, just ','pirate-forms'); ?><b><?php esc_html_e( 'configure all the options ','pirate-forms'); ?></b><?php esc_html_e( 'you need, hit save and start using the created form.','pirate-forms' ); ?></p>
|
442 |
|
443 |
<hr>
|
444 |
|
445 |
+
<img class="pirate_forms_preview" src="<?php echo plugins_url( '../img/preview.png', __FILE__ ) ?>">
|
446 |
+
|
447 |
+
<p><?php esc_html_e( 'There are 3 ways of using the newly created form:','pirate-forms' ); ?></p>
|
448 |
+
<ol>
|
449 |
+
<li><?php esc_html_e( 'Add a ','pirate-forms' ); ?><strong><a href="<?php echo admin_url( 'widgets.php' ); ?>"><?php esc_html_e( 'widget','pirate-forms' ); ?></a></strong></li>
|
450 |
+
<li><?php esc_html_e( 'Use the shortcode ','pirate-forms' ); ?><strong><code>[pirate_forms]</code></strong><?php esc_html_e( ' in any page or post.','pirate-forms' ); ?></li>
|
451 |
+
<li><?php esc_html_e( 'Use the shortcode ','pirate-forms' ); ?><strong><code><?php echo do_shortcode( '[pirate_forms]' ) ?></code></strong><?php esc_html_e( ' in the theme\'s files.','pirate-forms' ); ?></li>
|
452 |
+
</ol>
|
453 |
+
|
454 |
+
<hr>
|
455 |
+
|
456 |
+
<div class="rate_plugin_invite">
|
457 |
+
|
458 |
+
<h4><?php esc_html_e( 'Are you enjoying Pirate Forms?', 'pirate-forms' ); ?></h4>
|
459 |
+
|
460 |
+
<p class="review-link"><?php echo sprintf( esc_html__( 'Rate our plugin on %sWordPress.org%s. We\'d really appreciate it!', 'pirate-forms' ), '<a href="https://wordpress.org/support/view/plugin-reviews/pirate-forms" target="_blank" rel="nofollow"> ', '</a>' ); ?></p>
|
461 |
+
|
462 |
+
<p><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span></p>
|
463 |
+
|
464 |
+
<p><small><?php echo sprintf( esc_html__( 'If you want a more complex Contact Form Plugin please check %sthis link%s.', 'pirate-forms' ), '<a href="http://www.codeinwp.com/blog/best-contact-form-plugins-wordpress/" target="_blank" >', '</a>'); ?></small></p>
|
465 |
+
</div>
|
466 |
+
|
467 |
|
468 |
</div>
|
469 |
|
530 |
?>
|
531 |
|
532 |
<div class="pirate-forms-grouped">
|
533 |
+
|
534 |
+
<label for="<?php echo $opt_id ?>"><?php echo $opt_name;
|
535 |
+
|
536 |
+
if(!empty($opt_desc)) {
|
537 |
+
|
538 |
+
if( ($opt_id == "pirateformsopt_email") || ($opt_id == "pirateformsopt_email_recipients") || ($opt_id == "pirateformsopt_confirm_email") ) {
|
539 |
+
|
540 |
+
echo '<span class="dashicons dashicons-editor-help"></span>';
|
541 |
+
|
542 |
+
}
|
543 |
+
|
544 |
+
echo '<div class="pirate_forms_option_description">'.$opt_desc.'</div>'; } ?>
|
545 |
+
|
546 |
+
</label>
|
547 |
+
|
548 |
<input name="<?php echo $opt_id; ?>" id="<?php echo $opt_id ?>" type="<?php echo $opt_type; ?>" value="<?php echo stripslashes( $opt_val ); ?>" class="widefat">
|
549 |
</div>
|
550 |
|
551 |
<?php
|
552 |
break;
|
553 |
+
|
554 |
+
case "textarea":
|
555 |
+
?>
|
556 |
+
|
557 |
+
<div class="pirate-forms-grouped">
|
558 |
+
|
559 |
+
<label for="<?php echo $opt_id ?>"><?php echo $opt_name;
|
560 |
+
|
561 |
+
if(!empty($opt_desc)) {
|
562 |
+
|
563 |
+
if( ($opt_id == "pirateformsopt_confirm_email") ) {
|
564 |
+
|
565 |
+
echo '<span class="dashicons dashicons-editor-help"></span>';
|
566 |
+
|
567 |
+
}
|
568 |
+
|
569 |
+
echo '<div class="pirate_forms_option_description">'.$opt_desc.'</div>'; } ?>
|
570 |
+
|
571 |
+
</label>
|
572 |
+
|
573 |
+
<textarea name="<?php echo $opt_id; ?>" id="<?php echo $opt_id ?>" type="<?php echo $opt_type; ?>" value="<?php echo stripslashes( $opt_val ); ?>" rows="5" cols="30"></textarea>
|
574 |
+
</div>
|
575 |
+
|
576 |
+
<?php
|
577 |
+
break;
|
578 |
+
|
579 |
case "select":
|
580 |
?>
|
581 |
<div class="pirate-forms-grouped">
|
582 |
|
583 |
+
<label for="<?php echo $opt_id ?>"><?php echo $opt_name;
|
584 |
+
|
585 |
+
if(!empty($opt_desc)) {
|
586 |
+
|
587 |
+
echo '<div class="pirate_forms_option_description">'.$opt_desc.'</div>'; } ?>
|
588 |
+
|
589 |
+
</label>
|
590 |
|
591 |
<select name="<?php echo $opt_id ?>" id="<?php echo $opt_id; ?>">
|
592 |
<?php
|
608 |
case "checkbox":
|
609 |
?>
|
610 |
<div class="pirate-forms-grouped">
|
611 |
+
|
612 |
+
<label for="<?php echo $opt_id ?>"><?php echo $opt_name;
|
613 |
+
|
614 |
+
if(!empty($opt_desc)) {
|
615 |
+
|
616 |
+
if( ($opt_id == "pirateformsopt_store") || ($opt_id == "pirateformsopt_blacklist") ) {
|
617 |
+
|
618 |
+
echo '<span class="dashicons dashicons-editor-help"></span>';
|
619 |
+
|
620 |
+
}
|
621 |
+
|
622 |
+
echo '<div class="pirate_forms_option_description">'.$opt_desc.'</div>'; } ?>
|
623 |
+
|
624 |
+
</label>
|
625 |
|
626 |
<?php
|
627 |
|
628 |
$checked = '';
|
629 |
+
if ( array_key_exists( $opt_id,$pirate_forms_options ) ) {
|
630 |
$checked = 'checked';
|
631 |
+
}
|
632 |
?>
|
633 |
|
634 |
<input type="checkbox" value="yes" name="<?php echo $opt_id; ?>" id="<?php echo $opt_id; ?>" <?php echo $checked; ?>>Yes
|
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
|
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.14
|
7 |
Author: Themeisle
|
8 |
Author URI: http://themeisle.com
|
9 |
Text Domain: pirate-forms
|
readme.txt
CHANGED
@@ -77,6 +77,14 @@ Activating the Pirate Contact Form plugin is just like any other plugin. If you'
|
|
77 |
|
78 |
== Changelog ==
|
79 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
= 1.0.12 =
|
81 |
* Update contributors names
|
82 |
* Option to change recaptcha language
|
77 |
|
78 |
== Changelog ==
|
79 |
|
80 |
+
= 1.0.14 =
|
81 |
+
* Fix issues with checkboxes not saving data
|
82 |
+
* Redo the layout of the plugin's admin area
|
83 |
+
|
84 |
+
= 1.0.13 =
|
85 |
+
* Fix issues with multiple forms on same page
|
86 |
+
* Update readme.txt
|
87 |
+
|
88 |
= 1.0.12 =
|
89 |
* Update contributors names
|
90 |
* Option to change recaptcha language
|
screenshot-1.png
CHANGED
Binary file
|
screenshot-2.png
CHANGED
Binary file
|
screenshot-3.png
CHANGED
Binary file
|
screenshot-4.png
CHANGED
Binary file
|