Version Description
- Tweaked: added textdomain for translate.wordpress.org
- Fixed: defaults are now working correctly on all field types
- Fixed: the label for attribute is no longer printed if no ID has been provided
Download this release
Release Info
Developer | flixos90 |
Plugin | Bootstrap for Contact Form 7 |
Version | 1.2.4 |
Comparing to | |
See all releases |
Code changes from version 1.2.3 to 1.2.4
- Gruntfile.js +146 -106
- assets/scripts.min.js +1 -1
- bootstrap-for-contact-form-7.php +5 -3
- changelog.txt +5 -0
- classes/CF7BS_Alert.php +1 -1
- classes/CF7BS_Button.php +1 -1
- classes/CF7BS_Button_Group.php +1 -1
- classes/CF7BS_Component.php +1 -1
- classes/CF7BS_Form_Field.php +4 -4
- composer.json +1 -1
- languages/bootstrap-for-contact-form-7-de_DE.mo +0 -0
- languages/bootstrap-for-contact-form-7-de_DE.po +78 -0
- languages/bootstrap-for-contact-form-7.pot +73 -0
- modifications.php +6 -6
- modules/acceptance.php +1 -1
- modules/captcha.php +2 -2
- modules/checkbox.php +2 -3
- modules/count.php +1 -1
- modules/date.php +3 -1
- modules/file.php +1 -1
- modules/number.php +3 -1
- modules/quiz.php +1 -1
- modules/select.php +16 -2
- modules/submit.php +1 -1
- modules/text.php +4 -3
- modules/textarea.php +3 -1
- package.json +4 -3
- readme.txt +7 -2
Gruntfile.js
CHANGED
@@ -1,119 +1,159 @@
|
|
1 |
'use strict';
|
2 |
module.exports = function(grunt) {
|
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 |
-
|
62 |
-
|
63 |
-
|
64 |
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
|
99 |
-
|
100 |
-
'clean:scripts',
|
101 |
-
'jshint',
|
102 |
-
'uglify'
|
103 |
-
]);
|
104 |
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
|
|
110 |
|
111 |
-
|
112 |
-
|
113 |
-
|
|
|
|
|
114 |
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
};
|
1 |
'use strict';
|
2 |
module.exports = function(grunt) {
|
3 |
+
grunt.initConfig({
|
4 |
+
pkg: grunt.file.readJSON('package.json'),
|
5 |
+
jsbanner: '/*!\n' +
|
6 |
+
' * <%= pkg.pluginName %> Scripts - Version <%= pkg.version %>\n' +
|
7 |
+
' * \n' +
|
8 |
+
' * Modifications and Additions to WPCF7 Scripts to work with CF7BS\n' +
|
9 |
+
' * <%= pkg.author.name %> <<%= pkg.author.email %>>\n' +
|
10 |
+
' */',
|
11 |
+
pluginheader: '/*\n' +
|
12 |
+
'Plugin Name: <%= pkg.pluginName %>\n' +
|
13 |
+
'Plugin URI: <%= pkg.homepage %>\n' +
|
14 |
+
'Description: <%= pkg.description %>\n' +
|
15 |
+
'Version: <%= pkg.version %>\n' +
|
16 |
+
'Author: <%= pkg.author.name %>\n' +
|
17 |
+
'Author URI: <%= pkg.author.url %>\n' +
|
18 |
+
'License: <%= pkg.license.name %>\n' +
|
19 |
+
'License URI: <%= pkg.license.url %>\n' +
|
20 |
+
'Text Domain: bootstrap-for-contact-form-7\n' +
|
21 |
+
'Domain Path: /languages/\n' +
|
22 |
+
'*/',
|
23 |
+
fileheader: '/**\n' +
|
24 |
+
' * @package CF7BS\n' +
|
25 |
+
' * @version <%= pkg.version %>\n' +
|
26 |
+
' * @author <%= pkg.author.name %> <<%= pkg.author.email %>>\n' +
|
27 |
+
' */',
|
28 |
|
29 |
+
clean: {
|
30 |
+
scripts: [
|
31 |
+
'assets/scripts.min.js'
|
32 |
+
],
|
33 |
+
translation: [
|
34 |
+
'languages/bootstrap-for-contact-form-7.pot'
|
35 |
+
]
|
36 |
+
},
|
37 |
|
38 |
+
jshint: {
|
39 |
+
options: {
|
40 |
+
jshintrc: 'assets/.jshintrc'
|
41 |
+
},
|
42 |
+
src: [
|
43 |
+
'assets/scripts.js'
|
44 |
+
]
|
45 |
+
},
|
46 |
|
47 |
+
uglify: {
|
48 |
+
options: {
|
49 |
+
preserveComments: 'some',
|
50 |
+
report: 'min'
|
51 |
+
},
|
52 |
+
dist: {
|
53 |
+
src: 'assets/scripts.js',
|
54 |
+
dest: 'assets/scripts.min.js'
|
55 |
+
}
|
56 |
+
},
|
57 |
|
58 |
+
usebanner: {
|
59 |
+
options: {
|
60 |
+
position: 'top',
|
61 |
+
banner: '<%= jsbanner %>'
|
62 |
+
},
|
63 |
+
files: {
|
64 |
+
src: [
|
65 |
+
'assets/scripts.min.js'
|
66 |
+
]
|
67 |
+
}
|
68 |
+
},
|
69 |
|
70 |
+
replace: {
|
71 |
+
header: {
|
72 |
+
src: [
|
73 |
+
'bootstrap-for-contact-form-7.php'
|
74 |
+
],
|
75 |
+
overwrite: true,
|
76 |
+
replacements: [{
|
77 |
+
from: /((?:\/\*(?:[^*]|(?:\*+[^*\/]))*\*+\/)|(?:\/\/.*))/,
|
78 |
+
to: '<%= pluginheader %>'
|
79 |
+
}]
|
80 |
+
},
|
81 |
+
version: {
|
82 |
+
src: [
|
83 |
+
'bootstrap-for-contact-form-7.php',
|
84 |
+
'modifications.php',
|
85 |
+
'classes/*.php',
|
86 |
+
'modules/*.php'
|
87 |
+
],
|
88 |
+
overwrite: true,
|
89 |
+
replacements: [{
|
90 |
+
from: /\/\*\*\s+\*\s@package\s[^*]+\s+\*\s@version\s[^*]+\s+\*\s@author\s[^*]+\s\*\//,
|
91 |
+
to: '<%= fileheader %>'
|
92 |
+
}]
|
93 |
+
}
|
94 |
+
},
|
95 |
|
96 |
+
makepot: {
|
97 |
+
translation: {
|
98 |
+
options: {
|
99 |
+
mainFile: 'bootstrap-for-contact-form-7.php',
|
100 |
+
domainPath: '/languages',
|
101 |
+
exclude: [ 'vendor/.*' ],
|
102 |
+
potComments: 'Copyright (c) 2014-<%= grunt.template.today("yyyy") %> <%= pkg.author.name %>',
|
103 |
+
potFilename: 'bootstrap-for-contact-form-7.pot',
|
104 |
+
potHeaders: {
|
105 |
+
'language-team': '<%= pkg.author.name %> <<%= pkg.author.email %>>',
|
106 |
+
'last-translator': '<%= pkg.author.name %> <<%= pkg.author.email %>>',
|
107 |
+
'project-id-version': '<%= pkg.name %> <%= pkg.version %>',
|
108 |
+
'report-msgid-bugs-to': '<%= pkg.homepage %>',
|
109 |
+
'x-generator': 'grunt-wp-i18n 0.5.3',
|
110 |
+
'x-poedit-basepath': '.',
|
111 |
+
'x-poedit-language': 'English',
|
112 |
+
'x-poedit-country': 'UNITED STATES',
|
113 |
+
'x-poedit-sourcecharset': 'uft-8',
|
114 |
+
'x-poedit-keywordslist': '__;_e;_x:1,2c;_ex:1,2c;_n:1,2; _nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_attr__; esc_html__;esc_attr_e; esc_html_e;esc_attr_x:1,2c; esc_html_x:1,2c;',
|
115 |
+
'x-poedit-bookmars': '',
|
116 |
+
'x-poedit-searchpath-0': '.',
|
117 |
+
'x-textdomain-support': 'yes'
|
118 |
+
},
|
119 |
+
type: 'wp-plugin'
|
120 |
+
}
|
121 |
+
}
|
122 |
+
}
|
123 |
|
124 |
+
});
|
|
|
|
|
|
|
|
|
125 |
|
126 |
+
grunt.loadNpmTasks('grunt-contrib-clean');
|
127 |
+
grunt.loadNpmTasks('grunt-contrib-jshint');
|
128 |
+
grunt.loadNpmTasks('grunt-contrib-uglify');
|
129 |
+
grunt.loadNpmTasks('grunt-banner');
|
130 |
+
grunt.loadNpmTasks('grunt-text-replace');
|
131 |
+
grunt.loadNpmTasks('grunt-wp-i18n');
|
132 |
|
133 |
+
grunt.registerTask('scripts', [
|
134 |
+
'clean:scripts',
|
135 |
+
'jshint',
|
136 |
+
'uglify'
|
137 |
+
]);
|
138 |
|
139 |
+
grunt.registerTask('translation', [
|
140 |
+
'clean:translation',
|
141 |
+
'makepot:translation'
|
142 |
+
]);
|
143 |
+
|
144 |
+
grunt.registerTask('plugin', [
|
145 |
+
'usebanner',
|
146 |
+
'replace:version',
|
147 |
+
'replace:header'
|
148 |
+
]);
|
149 |
+
|
150 |
+
grunt.registerTask('default', [
|
151 |
+
'scripts'
|
152 |
+
]);
|
153 |
+
|
154 |
+
grunt.registerTask('build', [
|
155 |
+
'scripts',
|
156 |
+
'translation',
|
157 |
+
'plugin'
|
158 |
+
]);
|
159 |
};
|
assets/scripts.min.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*!
|
2 |
-
* Bootstrap for Contact Form 7 Scripts - Version 1.2.
|
3 |
*
|
4 |
* Modifications and Additions to WPCF7 Scripts to work with CF7BS
|
5 |
* Felix Arntz <felix-arntz@leaves-and-love.net>
|
1 |
/*!
|
2 |
+
* Bootstrap for Contact Form 7 Scripts - Version 1.2.4
|
3 |
*
|
4 |
* Modifications and Additions to WPCF7 Scripts to work with CF7BS
|
5 |
* Felix Arntz <felix-arntz@leaves-and-love.net>
|
bootstrap-for-contact-form-7.php
CHANGED
@@ -3,19 +3,21 @@
|
|
3 |
Plugin Name: Bootstrap for Contact Form 7
|
4 |
Plugin URI: http://wordpress.org/plugins/bootstrap-for-contact-form-7/
|
5 |
Description: This plugin modifies the output of the popular Contact Form 7 plugin to be styled in compliance with themes using the Bootstrap CSS framework.
|
6 |
-
Version: 1.2.
|
7 |
Author: Felix Arntz
|
8 |
Author URI: http://leaves-and-love.net
|
9 |
License: GNU General Public License v2
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
|
|
|
|
11 |
*/
|
12 |
/**
|
13 |
* @package CF7BS
|
14 |
-
* @version 1.2.
|
15 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
16 |
*/
|
17 |
|
18 |
-
define( 'CF7BS_VERSION', '1.2.
|
19 |
define( 'CF7BS_MAINFILE', __FILE__ );
|
20 |
define( 'CF7BS_PATH', untrailingslashit( plugin_dir_path( CF7BS_MAINFILE ) ) );
|
21 |
define( 'CF7BS_URL', untrailingslashit( plugin_dir_url( CF7BS_MAINFILE ) ) );
|
3 |
Plugin Name: Bootstrap for Contact Form 7
|
4 |
Plugin URI: http://wordpress.org/plugins/bootstrap-for-contact-form-7/
|
5 |
Description: This plugin modifies the output of the popular Contact Form 7 plugin to be styled in compliance with themes using the Bootstrap CSS framework.
|
6 |
+
Version: 1.2.4
|
7 |
Author: Felix Arntz
|
8 |
Author URI: http://leaves-and-love.net
|
9 |
License: GNU General Public License v2
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
+
Text Domain: bootstrap-for-contact-form-7
|
12 |
+
Domain Path: /languages/
|
13 |
*/
|
14 |
/**
|
15 |
* @package CF7BS
|
16 |
+
* @version 1.2.4
|
17 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
18 |
*/
|
19 |
|
20 |
+
define( 'CF7BS_VERSION', '1.2.4' );
|
21 |
define( 'CF7BS_MAINFILE', __FILE__ );
|
22 |
define( 'CF7BS_PATH', untrailingslashit( plugin_dir_path( CF7BS_MAINFILE ) ) );
|
23 |
define( 'CF7BS_URL', untrailingslashit( plugin_dir_url( CF7BS_MAINFILE ) ) );
|
changelog.txt
CHANGED
@@ -1,5 +1,10 @@
|
|
1 |
== Changelog ==
|
2 |
|
|
|
|
|
|
|
|
|
|
|
3 |
= 1.2.3 =
|
4 |
* Enhanced: Arguments for every field are now filtered to allow detailed adjustments
|
5 |
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 1.2.4 =
|
4 |
+
* Tweaked: added textdomain for translate.wordpress.org
|
5 |
+
* Fixed: defaults are now working correctly on all field types
|
6 |
+
* Fixed: the label for attribute is no longer printed if no ID has been provided
|
7 |
+
|
8 |
= 1.2.3 =
|
9 |
* Enhanced: Arguments for every field are now filtered to allow detailed adjustments
|
10 |
|
classes/CF7BS_Alert.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
-
* @version 1.2.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.2.4
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
classes/CF7BS_Button.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
-
* @version 1.2.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.2.4
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
classes/CF7BS_Button_Group.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
-
* @version 1.2.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.2.4
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
classes/CF7BS_Component.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
-
* @version 1.2.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.2.4
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
classes/CF7BS_Form_Field.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
-
* @version 1.2.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
@@ -112,13 +112,13 @@ class CF7BS_Form_Field extends CF7BS_Component {
|
|
112 |
if ( 'horizontal' == $form_layout ) {
|
113 |
$output .= '<div class="form-group' . $wrapper_class . $status . '">';
|
114 |
if ( ! empty( $label ) ) {
|
115 |
-
$output .= '<label class="' . esc_attr( $label_class ) . '" for="' . esc_attr( $id ) . '">' . esc_html( $label ) . $label_required . '</label>';
|
116 |
}
|
117 |
$output .= '<div class="' . esc_attr( $input_div_class ) . '">';
|
118 |
} elseif( 'inline' == $form_layout ) {
|
119 |
$output .= '<div class="form-group' . $wrapper_class . $status . '">';
|
120 |
if ( ! empty( $label ) ) {
|
121 |
-
$output .= '<label class="sr-only" for="' . esc_attr( $id ) . '">' . esc_html( $label ) . $label_required . '</label>';
|
122 |
}
|
123 |
} else {
|
124 |
$output .= '<div class="form-group' . $wrapper_class . $status . '">';
|
@@ -127,7 +127,7 @@ class CF7BS_Form_Field extends CF7BS_Component {
|
|
127 |
if ( in_array( $type, array( 'radio', 'checkbox' ) ) ) {
|
128 |
$rc_group_style = ' style="display:block;"';
|
129 |
}
|
130 |
-
$output .= '<label for="' . esc_attr( $id ) . '"' . $rc_group_style . '>' . esc_html( $label ) . $label_required . '</label>';
|
131 |
}
|
132 |
}
|
133 |
}
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.2.4
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
112 |
if ( 'horizontal' == $form_layout ) {
|
113 |
$output .= '<div class="form-group' . $wrapper_class . $status . '">';
|
114 |
if ( ! empty( $label ) ) {
|
115 |
+
$output .= '<label class="' . esc_attr( $label_class ) . '"' . ( ! empty( $id ) ? ' for="' . esc_attr( $id ) . '"' : '' ) . '>' . esc_html( $label ) . $label_required . '</label>';
|
116 |
}
|
117 |
$output .= '<div class="' . esc_attr( $input_div_class ) . '">';
|
118 |
} elseif( 'inline' == $form_layout ) {
|
119 |
$output .= '<div class="form-group' . $wrapper_class . $status . '">';
|
120 |
if ( ! empty( $label ) ) {
|
121 |
+
$output .= '<label class="sr-only"' . ( ! empty( $id ) ? ' for="' . esc_attr( $id ) . '"' : '' ) . '>' . esc_html( $label ) . $label_required . '</label>';
|
122 |
}
|
123 |
} else {
|
124 |
$output .= '<div class="form-group' . $wrapper_class . $status . '">';
|
127 |
if ( in_array( $type, array( 'radio', 'checkbox' ) ) ) {
|
128 |
$rc_group_style = ' style="display:block;"';
|
129 |
}
|
130 |
+
$output .= '<label' . ( ! empty( $id ) ? ' for="' . esc_attr( $id ) . '"' : '' ) . $rc_group_style . '>' . esc_html( $label ) . $label_required . '</label>';
|
131 |
}
|
132 |
}
|
133 |
}
|
composer.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
{
|
2 |
"name": "felixarntz/bootstrap-for-contact-form-7",
|
3 |
"description": "This plugin modifies the output of the popular Contact Form 7 plugin to be styled in compliance with themes using the Bootstrap CSS framework.",
|
4 |
-
"version": "1.2.
|
5 |
"license": "GPL-2.0",
|
6 |
"type": "wordpress-plugin",
|
7 |
"keywords": [
|
1 |
{
|
2 |
"name": "felixarntz/bootstrap-for-contact-form-7",
|
3 |
"description": "This plugin modifies the output of the popular Contact Form 7 plugin to be styled in compliance with themes using the Bootstrap CSS framework.",
|
4 |
+
"version": "1.2.4",
|
5 |
"license": "GPL-2.0",
|
6 |
"type": "wordpress-plugin",
|
7 |
"keywords": [
|
languages/bootstrap-for-contact-form-7-de_DE.mo
ADDED
Binary file
|
languages/bootstrap-for-contact-form-7-de_DE.po
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright (c) 2014-2015 Felix Arntz
|
2 |
+
msgid ""
|
3 |
+
msgstr ""
|
4 |
+
"Project-Id-Version: bootstrap-for-contact-form-7 1.2.4\n"
|
5 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/plugins/bootstrap-for-contact-"
|
6 |
+
"form-7/\n"
|
7 |
+
"POT-Creation-Date: 2015-10-03 09:44:02+00:00\n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"PO-Revision-Date: 2015-10-03 11:49+0100\n"
|
12 |
+
"Last-Translator: Felix Arntz <felix-arntz@leaves-and-love.net>\n"
|
13 |
+
"Language-Team: Felix Arntz <felix-arntz@leaves-and-love.net>\n"
|
14 |
+
"X-Generator: Poedit 1.6.7\n"
|
15 |
+
"X-Poedit-Basepath: .\n"
|
16 |
+
"X-Poedit-SourceCharset: uft-8\n"
|
17 |
+
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2; _nx:1,2,4c;_n_noop:1,2;"
|
18 |
+
"_nx_noop:1,2,3c;esc_attr__; esc_html__;esc_attr_e; esc_html_e;"
|
19 |
+
"esc_attr_x:1,2c; esc_html_x:1,2c\n"
|
20 |
+
"X-Poedit-Bookmars: \n"
|
21 |
+
"X-Textdomain-Support: yes\n"
|
22 |
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
23 |
+
"Language: de_DE\n"
|
24 |
+
"X-Poedit-SearchPath-0: .\n"
|
25 |
+
|
26 |
+
#: modifications.php:205
|
27 |
+
msgid "Your Name"
|
28 |
+
msgstr "Ihr Name"
|
29 |
+
|
30 |
+
#: modifications.php:206
|
31 |
+
msgid "Your Email"
|
32 |
+
msgstr "Ihre Email-Adresse"
|
33 |
+
|
34 |
+
#: modifications.php:207
|
35 |
+
msgid "Subject"
|
36 |
+
msgstr "Betreff"
|
37 |
+
|
38 |
+
#: modifications.php:208
|
39 |
+
msgid "Your Message"
|
40 |
+
msgstr "Ihre Nachricht"
|
41 |
+
|
42 |
+
#: modifications.php:209 modules/submit.php:22
|
43 |
+
msgid "Send"
|
44 |
+
msgstr "Senden"
|
45 |
+
|
46 |
+
#: modules/captcha.php:22
|
47 |
+
msgid ""
|
48 |
+
"To use CAPTCHA, you need <a href=\"http://wordpress.org/extend/plugins/"
|
49 |
+
"really-simple-captcha/\">Really Simple CAPTCHA</a> plugin installed."
|
50 |
+
msgstr ""
|
51 |
+
"Um CAPTCHA zu verwenden, müssen Sie das Plugin <a href=\"http://wordpress."
|
52 |
+
"org/extend/plugins/really-simple-captcha/\">Really Simple CAPTCHA</a> "
|
53 |
+
"installieren."
|
54 |
+
|
55 |
+
#. Plugin Name of the plugin/theme
|
56 |
+
msgid "Bootstrap for Contact Form 7"
|
57 |
+
msgstr "Bootstrap for Contact Form 7"
|
58 |
+
|
59 |
+
#. Plugin URI of the plugin/theme
|
60 |
+
msgid "http://wordpress.org/plugins/bootstrap-for-contact-form-7/"
|
61 |
+
msgstr "http://wordpress.org/plugins/bootstrap-for-contact-form-7/"
|
62 |
+
|
63 |
+
#. Description of the plugin/theme
|
64 |
+
msgid ""
|
65 |
+
"This plugin modifies the output of the popular Contact Form 7 plugin to be "
|
66 |
+
"styled in compliance with themes using the Bootstrap CSS framework."
|
67 |
+
msgstr ""
|
68 |
+
"Dieses Plugin verändert die Ausgabe des beliebten Plugins Contact Form 7, "
|
69 |
+
"sodass diese bei Verwendung eines Bootstrap-Themes automatisch passend "
|
70 |
+
"gestylt ist."
|
71 |
+
|
72 |
+
#. Author of the plugin/theme
|
73 |
+
msgid "Felix Arntz"
|
74 |
+
msgstr "Felix Arntz"
|
75 |
+
|
76 |
+
#. Author URI of the plugin/theme
|
77 |
+
msgid "http://leaves-and-love.net"
|
78 |
+
msgstr "http://leaves-and-love.net"
|
languages/bootstrap-for-contact-form-7.pot
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright (c) 2014-2015 Felix Arntz
|
2 |
+
msgid ""
|
3 |
+
msgstr ""
|
4 |
+
"Project-Id-Version: bootstrap-for-contact-form-7 1.2.4\n"
|
5 |
+
"Report-Msgid-Bugs-To: "
|
6 |
+
"http://wordpress.org/plugins/bootstrap-for-contact-form-7/\n"
|
7 |
+
"POT-Creation-Date: 2015-10-03 09:44:02+00:00\n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"PO-Revision-Date: 2015-MO-DA HO:MI+ZONE\n"
|
12 |
+
"Last-Translator: Felix Arntz <felix-arntz@leaves-and-love.net>\n"
|
13 |
+
"Language-Team: Felix Arntz <felix-arntz@leaves-and-love.net>\n"
|
14 |
+
"X-Generator: grunt-wp-i18n 0.5.3\n"
|
15 |
+
"X-Poedit-Basepath: .\n"
|
16 |
+
"X-Poedit-Language: English\n"
|
17 |
+
"X-Poedit-Country: UNITED STATES\n"
|
18 |
+
"X-Poedit-SourceCharset: uft-8\n"
|
19 |
+
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2; "
|
20 |
+
"_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_attr__; esc_html__;esc_attr_e; "
|
21 |
+
"esc_html_e;esc_attr_x:1,2c; esc_html_x:1,2c;\n"
|
22 |
+
"X-Poedit-Bookmars: \n"
|
23 |
+
"X-Poedit-SearchPath-0: .\n"
|
24 |
+
"X-Textdomain-Support: yes\n"
|
25 |
+
|
26 |
+
#: modifications.php:205
|
27 |
+
msgid "Your Name"
|
28 |
+
msgstr ""
|
29 |
+
|
30 |
+
#: modifications.php:206
|
31 |
+
msgid "Your Email"
|
32 |
+
msgstr ""
|
33 |
+
|
34 |
+
#: modifications.php:207
|
35 |
+
msgid "Subject"
|
36 |
+
msgstr ""
|
37 |
+
|
38 |
+
#: modifications.php:208
|
39 |
+
msgid "Your Message"
|
40 |
+
msgstr ""
|
41 |
+
|
42 |
+
#: modifications.php:209 modules/submit.php:22
|
43 |
+
msgid "Send"
|
44 |
+
msgstr ""
|
45 |
+
|
46 |
+
#: modules/captcha.php:22
|
47 |
+
msgid ""
|
48 |
+
"To use CAPTCHA, you need <a "
|
49 |
+
"href=\"http://wordpress.org/extend/plugins/really-simple-captcha/\">Really "
|
50 |
+
"Simple CAPTCHA</a> plugin installed."
|
51 |
+
msgstr ""
|
52 |
+
|
53 |
+
#. Plugin Name of the plugin/theme
|
54 |
+
msgid "Bootstrap for Contact Form 7"
|
55 |
+
msgstr ""
|
56 |
+
|
57 |
+
#. Plugin URI of the plugin/theme
|
58 |
+
msgid "http://wordpress.org/plugins/bootstrap-for-contact-form-7/"
|
59 |
+
msgstr ""
|
60 |
+
|
61 |
+
#. Description of the plugin/theme
|
62 |
+
msgid ""
|
63 |
+
"This plugin modifies the output of the popular Contact Form 7 plugin to be "
|
64 |
+
"styled in compliance with themes using the Bootstrap CSS framework."
|
65 |
+
msgstr ""
|
66 |
+
|
67 |
+
#. Author of the plugin/theme
|
68 |
+
msgid "Felix Arntz"
|
69 |
+
msgstr ""
|
70 |
+
|
71 |
+
#. Author URI of the plugin/theme
|
72 |
+
msgid "http://leaves-and-love.net"
|
73 |
+
msgstr ""
|
modifications.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
-
* @version 1.2.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
@@ -202,11 +202,11 @@ function cf7bs_default_template( $template, $prop = 'form' ) {
|
|
202 |
add_filter( 'wpcf7_default_template', 'cf7bs_default_template', 10, 2 );
|
203 |
|
204 |
function cf7bs_default_form_template() {
|
205 |
-
$template = '[text* your-name]' . __( 'Your Name', 'contact-form-7' ) . '[/text*]' . "\n"
|
206 |
-
. '[email* your-email]' . __( 'Your Email', 'contact-form-7' ) . '[/email*]' . "\n"
|
207 |
-
. '[text your-subject]' . __( 'Subject', 'contact-form-7' ) . '[/text]' . "\n"
|
208 |
-
. '[textarea your-message]' . __( 'Your Message', 'contact-form-7' ) . '[/textarea]' . "\n"
|
209 |
-
. '[submit "' . __( 'Send', 'contact-form-7' ) . '"]';
|
210 |
|
211 |
return $template;
|
212 |
}
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.2.4
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
202 |
add_filter( 'wpcf7_default_template', 'cf7bs_default_template', 10, 2 );
|
203 |
|
204 |
function cf7bs_default_form_template() {
|
205 |
+
$template = '[text* your-name]' . __( 'Your Name', 'bootstrap-for-contact-form-7' ) . '[/text*]' . "\n"
|
206 |
+
. '[email* your-email]' . __( 'Your Email', 'bootstrap-for-contact-form-7' ) . '[/email*]' . "\n"
|
207 |
+
. '[text your-subject]' . __( 'Subject', 'bootstrap-for-contact-form-7' ) . '[/text]' . "\n"
|
208 |
+
. '[textarea your-message]' . __( 'Your Message', 'bootstrap-for-contact-form-7' ) . '[/textarea]' . "\n"
|
209 |
+
. '[submit "' . __( 'Send', 'bootstrap-for-contact-form-7' ) . '"]';
|
210 |
|
211 |
return $template;
|
212 |
}
|
modules/acceptance.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
-
* @version 1.2.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.2.4
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
modules/captcha.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
-
* @version 1.2.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
@@ -19,7 +19,7 @@ function cf7bs_captcha_shortcode_handler( $tag ) {
|
|
19 |
$tag_obj = new WPCF7_Shortcode( $tag );
|
20 |
|
21 |
if ( 'captchac' == $tag_obj->type && ! class_exists( 'ReallySimpleCaptcha' ) ) {
|
22 |
-
return '<em>' . __( 'To use CAPTCHA, you need <a href="http://wordpress.org/extend/plugins/really-simple-captcha/">Really Simple CAPTCHA</a> plugin installed.', 'contact-form-7' ) . '</em>';
|
23 |
}
|
24 |
|
25 |
if ( empty( $tag_obj->name ) ) {
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.2.4
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
19 |
$tag_obj = new WPCF7_Shortcode( $tag );
|
20 |
|
21 |
if ( 'captchac' == $tag_obj->type && ! class_exists( 'ReallySimpleCaptcha' ) ) {
|
22 |
+
return '<em>' . __( 'To use CAPTCHA, you need <a href="http://wordpress.org/extend/plugins/really-simple-captcha/">Really Simple CAPTCHA</a> plugin installed.', 'bootstrap-for-contact-form-7' ) . '</em>';
|
23 |
}
|
24 |
|
25 |
if ( empty( $tag_obj->name ) ) {
|
modules/checkbox.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
-
* @version 1.2.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
@@ -77,8 +77,7 @@ function cf7bs_checkbox_shortcode_handler( $tag ) {
|
|
77 |
}
|
78 |
}
|
79 |
|
80 |
-
if ( $matches = $tag->get_first_match_option( '/^default:([0-9_]+)$/' ) )
|
81 |
-
{
|
82 |
$defaults = array_merge( $defaults, explode( '_', $matches[1] ) );
|
83 |
}
|
84 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.2.4
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
77 |
}
|
78 |
}
|
79 |
|
80 |
+
if ( $matches = $tag->get_first_match_option( '/^default:([0-9_]+)$/' ) ) {
|
|
|
81 |
$defaults = array_merge( $defaults, explode( '_', $matches[1] ) );
|
82 |
}
|
83 |
|
modules/count.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
-
* @version 1.2.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.2.4
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
modules/date.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
-
* @version 1.2.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
@@ -44,6 +44,8 @@ function cf7bs_date_shortcode_handler( $tag ) {
|
|
44 |
$value = '';
|
45 |
}
|
46 |
|
|
|
|
|
47 |
if ( wpcf7_is_posted() && isset( $_POST[ $tag->name ] ) ) {
|
48 |
$value = stripslashes_deep( $_POST[ $tag->name ] );
|
49 |
} elseif( isset( $_GET ) && array_key_exists( $tag->name, $_GET ) ) {
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.2.4
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
44 |
$value = '';
|
45 |
}
|
46 |
|
47 |
+
$value = $tag->get_default_option( $value );
|
48 |
+
|
49 |
if ( wpcf7_is_posted() && isset( $_POST[ $tag->name ] ) ) {
|
50 |
$value = stripslashes_deep( $_POST[ $tag->name ] );
|
51 |
} elseif( isset( $_GET ) && array_key_exists( $tag->name, $_GET ) ) {
|
modules/file.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
-
* @version 1.2.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.2.4
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
modules/number.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
-
* @version 1.2.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
@@ -46,6 +46,8 @@ function cf7bs_number_shortcode_handler( $tag ) {
|
|
46 |
$value = '';
|
47 |
}
|
48 |
|
|
|
|
|
49 |
if ( wpcf7_is_posted() && isset( $_POST[ $tag->name ] ) ) {
|
50 |
$value = stripslashes_deep( $_POST[ $tag->name ] );
|
51 |
} elseif ( isset( $_GET ) && array_key_exists( $tag->name, $_GET ) ) {
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.2.4
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
46 |
$value = '';
|
47 |
}
|
48 |
|
49 |
+
$value = $tag->get_default_option( $value );
|
50 |
+
|
51 |
if ( wpcf7_is_posted() && isset( $_POST[ $tag->name ] ) ) {
|
52 |
$value = stripslashes_deep( $_POST[ $tag->name ] );
|
53 |
} elseif ( isset( $_GET ) && array_key_exists( $tag->name, $_GET ) ) {
|
modules/quiz.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
-
* @version 1.2.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.2.4
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
modules/select.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
-
* @version 1.2.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
@@ -37,9 +37,21 @@ function cf7bs_select_shortcode_handler( $tag ) {
|
|
37 |
}
|
38 |
|
39 |
$defaults = array();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
if ( $matches = $tag->get_first_match_option( '/^default:([0-9_]+)$/' ) ) {
|
41 |
$defaults = explode( '_', $matches[1] );
|
42 |
}
|
|
|
|
|
|
|
43 |
$multiple = $tag->has_option( 'multiple' );
|
44 |
$include_blank = $tag->has_option( 'include_blank' );
|
45 |
$first_as_label = $tag->has_option( 'first_as_label' );
|
@@ -54,9 +66,11 @@ function cf7bs_select_shortcode_handler( $tag ) {
|
|
54 |
|
55 |
$empty_select = empty( $values );
|
56 |
|
|
|
57 |
if ( $empty_select || $include_blank ) {
|
58 |
array_unshift( $labels, '---' );
|
59 |
array_unshift( $values, '' );
|
|
|
60 |
} elseif ( $first_as_label ) {
|
61 |
$values[0] = '';
|
62 |
}
|
@@ -98,7 +112,7 @@ function cf7bs_select_shortcode_handler( $tag ) {
|
|
98 |
if ( ! $multiple && $get == esc_sql( $value ) ) {
|
99 |
$selected = $value;
|
100 |
}
|
101 |
-
} elseif( ! $
|
102 |
if ( $multiple ) {
|
103 |
$selected[] = $value;
|
104 |
} else {
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.2.4
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
37 |
}
|
38 |
|
39 |
$defaults = array();
|
40 |
+
|
41 |
+
$default_choice = $tag->get_default_option( null, 'multiple=1' );
|
42 |
+
foreach ( $default_choice as $value ) {
|
43 |
+
$key = array_search( $value, $values, true );
|
44 |
+
if ( false !== $key ) {
|
45 |
+
$defaults[] = (int) $key + 1;
|
46 |
+
}
|
47 |
+
}
|
48 |
+
|
49 |
if ( $matches = $tag->get_first_match_option( '/^default:([0-9_]+)$/' ) ) {
|
50 |
$defaults = explode( '_', $matches[1] );
|
51 |
}
|
52 |
+
|
53 |
+
$defaults = array_unique( $defaults );
|
54 |
+
|
55 |
$multiple = $tag->has_option( 'multiple' );
|
56 |
$include_blank = $tag->has_option( 'include_blank' );
|
57 |
$first_as_label = $tag->has_option( 'first_as_label' );
|
66 |
|
67 |
$empty_select = empty( $values );
|
68 |
|
69 |
+
$shifted = false;
|
70 |
if ( $empty_select || $include_blank ) {
|
71 |
array_unshift( $labels, '---' );
|
72 |
array_unshift( $values, '' );
|
73 |
+
$shifted = true;
|
74 |
} elseif ( $first_as_label ) {
|
75 |
$values[0] = '';
|
76 |
}
|
112 |
if ( ! $multiple && $get == esc_sql( $value ) ) {
|
113 |
$selected = $value;
|
114 |
}
|
115 |
+
} elseif ( ! $shifted && in_array( (int) $key + 1, (array) $defaults ) || $shifted && in_array( (int) $key, (array) $defaults ) ) {
|
116 |
if ( $multiple ) {
|
117 |
$selected[] = $value;
|
118 |
} else {
|
modules/submit.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
-
* @version 1.2.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.2.4
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
modules/text.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
-
* @version 1.2.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
@@ -53,9 +53,10 @@ function cf7bs_text_shortcode_handler( $tag ) {
|
|
53 |
if ( $tag_obj->has_option( 'placeholder' ) || $tag_obj->has_option( 'watermark' ) ) {
|
54 |
$placeholder = $value;
|
55 |
$value = '';
|
56 |
-
} elseif ( empty( $value ) ) {
|
57 |
-
$value = $tag_obj->get_default_option();
|
58 |
}
|
|
|
|
|
|
|
59 |
if ( wpcf7_is_posted() && isset( $_POST[ $tag_obj->name ] ) ) {
|
60 |
$value = stripslashes_deep( $_POST[ $tag_obj->name ] );
|
61 |
} elseif ( isset( $_GET ) && array_key_exists( $tag_obj->name, $_GET ) ) {
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.2.4
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
53 |
if ( $tag_obj->has_option( 'placeholder' ) || $tag_obj->has_option( 'watermark' ) ) {
|
54 |
$placeholder = $value;
|
55 |
$value = '';
|
|
|
|
|
56 |
}
|
57 |
+
|
58 |
+
$value = $tag_obj->get_default_option( $value );
|
59 |
+
|
60 |
if ( wpcf7_is_posted() && isset( $_POST[ $tag_obj->name ] ) ) {
|
61 |
$value = stripslashes_deep( $_POST[ $tag_obj->name ] );
|
62 |
} elseif ( isset( $_GET ) && array_key_exists( $tag_obj->name, $_GET ) ) {
|
modules/textarea.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
-
* @version 1.2.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
@@ -46,6 +46,8 @@ function cf7bs_textarea_shortcode_handler( $tag ) {
|
|
46 |
$value = '';
|
47 |
}
|
48 |
|
|
|
|
|
49 |
if ( wpcf7_is_posted() && isset( $_POST[ $tag_obj->name ] ) ) {
|
50 |
$value = stripslashes_deep( $_POST[ $tag_obj->name ] );
|
51 |
} elseif ( isset( $_GET ) && array_key_exists( $tag_obj->name, $_GET ) ) {
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.2.4
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
46 |
$value = '';
|
47 |
}
|
48 |
|
49 |
+
$value = $tag_obj->get_default_option( $value );
|
50 |
+
|
51 |
if ( wpcf7_is_posted() && isset( $_POST[ $tag_obj->name ] ) ) {
|
52 |
$value = stripslashes_deep( $_POST[ $tag_obj->name ] );
|
53 |
} elseif ( isset( $_GET ) && array_key_exists( $tag_obj->name, $_GET ) ) {
|
package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
{
|
2 |
"name": "bootstrap-for-contact-form-7",
|
3 |
"pluginName": "Bootstrap for Contact Form 7",
|
4 |
-
"version": "1.2.
|
5 |
"description": "This plugin modifies the output of the popular Contact Form 7 plugin to be styled in compliance with themes using the Bootstrap CSS framework.",
|
6 |
"keywords": [
|
7 |
"wordpress", "plugin", "contact form 7", "wpcf7", "bootstrap", "bootstrap 3", "bootstrap framework", "addon", "contact form 7 addon", "contact form", "cf7bs", "css"
|
@@ -29,10 +29,11 @@
|
|
29 |
},
|
30 |
"devDependencies": {
|
31 |
"grunt": "~0.4.5",
|
32 |
-
"grunt-contrib-clean": "~0.
|
33 |
"grunt-contrib-jshint": "~0.10.0",
|
34 |
"grunt-contrib-uglify": "~0.5.0",
|
35 |
"grunt-banner": "~0.2.3",
|
36 |
-
"grunt-text-replace": "~0.
|
|
|
37 |
}
|
38 |
}
|
1 |
{
|
2 |
"name": "bootstrap-for-contact-form-7",
|
3 |
"pluginName": "Bootstrap for Contact Form 7",
|
4 |
+
"version": "1.2.4",
|
5 |
"description": "This plugin modifies the output of the popular Contact Form 7 plugin to be styled in compliance with themes using the Bootstrap CSS framework.",
|
6 |
"keywords": [
|
7 |
"wordpress", "plugin", "contact form 7", "wpcf7", "bootstrap", "bootstrap 3", "bootstrap framework", "addon", "contact form 7 addon", "contact form", "cf7bs", "css"
|
29 |
},
|
30 |
"devDependencies": {
|
31 |
"grunt": "~0.4.5",
|
32 |
+
"grunt-contrib-clean": "~0.6.0",
|
33 |
"grunt-contrib-jshint": "~0.10.0",
|
34 |
"grunt-contrib-uglify": "~0.5.0",
|
35 |
"grunt-banner": "~0.2.3",
|
36 |
+
"grunt-text-replace": "~0.4.0",
|
37 |
+
"grunt-wp-i18n": "~0.5.3"
|
38 |
}
|
39 |
}
|
readme.txt
CHANGED
@@ -8,8 +8,8 @@ Donate link: http://leaves-and-love.net/wordpress-plugins/
|
|
8 |
Contributors: flixos90
|
9 |
Requires at least: 3.6
|
10 |
Tested up to: 4.3
|
11 |
-
Stable tag: 1.2.
|
12 |
-
Version: 1.2.
|
13 |
License: GPL v2
|
14 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
15 |
Tags: contact form 7, wpcf7, bootstrap, bootstrap 3, bootstrap framework, addon, css framework, contact form 7 addon, contact form, cf7bs, css
|
@@ -109,6 +109,11 @@ If you're a developer and you have some ideas to improve the plugin or to solve
|
|
109 |
|
110 |
== Changelog ==
|
111 |
|
|
|
|
|
|
|
|
|
|
|
112 |
= 1.2.3 =
|
113 |
* Enhanced: Arguments for every field are now filtered to allow detailed adjustments
|
114 |
|
8 |
Contributors: flixos90
|
9 |
Requires at least: 3.6
|
10 |
Tested up to: 4.3
|
11 |
+
Stable tag: 1.2.4
|
12 |
+
Version: 1.2.4
|
13 |
License: GPL v2
|
14 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
15 |
Tags: contact form 7, wpcf7, bootstrap, bootstrap 3, bootstrap framework, addon, css framework, contact form 7 addon, contact form, cf7bs, css
|
109 |
|
110 |
== Changelog ==
|
111 |
|
112 |
+
= 1.2.4 =
|
113 |
+
* Tweaked: added textdomain for translate.wordpress.org
|
114 |
+
* Fixed: defaults are now working correctly on all field types
|
115 |
+
* Fixed: the label for attribute is no longer printed if no ID has been provided
|
116 |
+
|
117 |
= 1.2.3 =
|
118 |
* Enhanced: Arguments for every field are now filtered to allow detailed adjustments
|
119 |
|