Version Description
- Added: the new Google reCAPTCHA shortcode is now supported
- Enhanced: added an additional filter to adjust form field arguments
- Enhanced: a notice in the admin is now shown if the plugin cannot be initialized
- Enhanced: language files no longer bundled in the plugin; now completely relies on language packs
- Fixed: form element errors are now displayed correctly on horizontal forms and hidden on inline forms
- Fixed: plugin constant definitions now happen on 'plugins_loaded' hook
- Fixed: typo 'dismissable' in alert setting / class is now 'dismissible'
- Fixed: readme link to 'Additional Settings' now translateable
Download this release
Release Info
Developer | flixos90 |
Plugin | Bootstrap for Contact Form 7 |
Version | 1.3.0 |
Comparing to | |
See all releases |
Code changes from version 1.2.4 to 1.3.0
- Gruntfile.js +1 -39
- assets/.jshintrc +1 -1
- assets/scripts.js +17 -10
- assets/scripts.min.js +2 -2
- bootstrap-for-contact-form-7.php +37 -14
- changelog.txt +10 -0
- classes/CF7BS_Alert.php +13 -5
- classes/CF7BS_Button.php +1 -1
- classes/CF7BS_Button_Group.php +1 -1
- classes/CF7BS_Component.php +1 -1
- classes/CF7BS_Form_Field.php +1 -1
- composer.json +14 -3
- languages/bootstrap-for-contact-form-7-de_DE.mo +0 -0
- languages/bootstrap-for-contact-form-7-de_DE.po +0 -78
- languages/bootstrap-for-contact-form-7.pot +0 -73
- modifications.php +2 -2
- modules/acceptance.php +1 -1
- modules/checkbox.php +1 -1
- modules/count.php +1 -1
- modules/date.php +1 -1
- modules/file.php +1 -1
- modules/number.php +1 -1
- modules/quiz.php +1 -1
- modules/{captcha.php → really-simple-captcha.php} +1 -1
- modules/recaptcha.php +39 -0
- modules/select.php +1 -1
- modules/submit.php +1 -1
- modules/text.php +1 -1
- modules/textarea.php +1 -1
- package.json +17 -7
- readme.txt +17 -7
Gruntfile.js
CHANGED
@@ -18,7 +18,7 @@ module.exports = function(grunt) {
|
|
18 |
'License: <%= pkg.license.name %>\n' +
|
19 |
'License URI: <%= pkg.license.url %>\n' +
|
20 |
'Text Domain: bootstrap-for-contact-form-7\n' +
|
21 |
-
'
|
22 |
'*/',
|
23 |
fileheader: '/**\n' +
|
24 |
' * @package CF7BS\n' +
|
@@ -29,9 +29,6 @@ module.exports = function(grunt) {
|
|
29 |
clean: {
|
30 |
scripts: [
|
31 |
'assets/scripts.min.js'
|
32 |
-
],
|
33 |
-
translation: [
|
34 |
-
'languages/bootstrap-for-contact-form-7.pot'
|
35 |
]
|
36 |
},
|
37 |
|
@@ -91,34 +88,6 @@ module.exports = function(grunt) {
|
|
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 |
});
|
@@ -128,7 +97,6 @@ module.exports = function(grunt) {
|
|
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',
|
@@ -136,11 +104,6 @@ module.exports = function(grunt) {
|
|
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',
|
@@ -153,7 +116,6 @@ module.exports = function(grunt) {
|
|
153 |
|
154 |
grunt.registerTask('build', [
|
155 |
'scripts',
|
156 |
-
'translation',
|
157 |
'plugin'
|
158 |
]);
|
159 |
};
|
18 |
'License: <%= pkg.license.name %>\n' +
|
19 |
'License URI: <%= pkg.license.url %>\n' +
|
20 |
'Text Domain: bootstrap-for-contact-form-7\n' +
|
21 |
+
'Tags: <%= pkg.keywords.join(", ") %>\n' +
|
22 |
'*/',
|
23 |
fileheader: '/**\n' +
|
24 |
' * @package CF7BS\n' +
|
29 |
clean: {
|
30 |
scripts: [
|
31 |
'assets/scripts.min.js'
|
|
|
|
|
|
|
32 |
]
|
33 |
},
|
34 |
|
88 |
to: '<%= fileheader %>'
|
89 |
}]
|
90 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
}
|
92 |
|
93 |
});
|
97 |
grunt.loadNpmTasks('grunt-contrib-uglify');
|
98 |
grunt.loadNpmTasks('grunt-banner');
|
99 |
grunt.loadNpmTasks('grunt-text-replace');
|
|
|
100 |
|
101 |
grunt.registerTask('scripts', [
|
102 |
'clean:scripts',
|
104 |
'uglify'
|
105 |
]);
|
106 |
|
|
|
|
|
|
|
|
|
|
|
107 |
grunt.registerTask('plugin', [
|
108 |
'usebanner',
|
109 |
'replace:version',
|
116 |
|
117 |
grunt.registerTask('build', [
|
118 |
'scripts',
|
|
|
119 |
'plugin'
|
120 |
]);
|
121 |
};
|
assets/.jshintrc
CHANGED
@@ -12,4 +12,4 @@
|
|
12 |
"strict" : true,
|
13 |
"undef" : true,
|
14 |
"unused" : true
|
15 |
-
}
|
12 |
"strict" : true,
|
13 |
"undef" : true,
|
14 |
"unused" : true
|
15 |
+
}
|
assets/scripts.js
CHANGED
@@ -22,18 +22,25 @@
|
|
22 |
return this.each( function() {
|
23 |
var $into = $( this );
|
24 |
$into.addClass( 'has-error' );
|
25 |
-
$into.find( 'span.wpcf7-not-valid-tip' ).remove();
|
26 |
-
$into.append( '<span class="help-block wpcf7-not-valid-tip">' + message + '</span>' );
|
27 |
-
$into.slideDown( 'fast' );
|
28 |
|
29 |
-
if ( $into.
|
30 |
-
$( '.wpcf7-not-valid-tip'
|
31 |
-
|
32 |
-
|
|
|
|
|
|
|
|
|
33 |
|
34 |
-
$( '
|
35 |
-
$( '.wpcf7-not-valid-tip', $into ).
|
36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
}
|
38 |
});
|
39 |
};
|
22 |
return this.each( function() {
|
23 |
var $into = $( this );
|
24 |
$into.addClass( 'has-error' );
|
|
|
|
|
|
|
25 |
|
26 |
+
if ( ! $into.parents( '.wpcf7-form' ).hasClass( 'form-inline' ) ) {
|
27 |
+
$into.find( 'span.wpcf7-not-valid-tip' ).remove();
|
28 |
+
if ( $into.parents( '.wpcf7-form' ).hasClass( 'form-horizontal' ) ) {
|
29 |
+
$into.children( 'div' ).append( '<span class="help-block wpcf7-not-valid-tip">' + message + '</span>' );
|
30 |
+
} else {
|
31 |
+
$into.append( '<span class="help-block wpcf7-not-valid-tip">' + message + '</span>' );
|
32 |
+
}
|
33 |
+
$into.slideDown( 'fast' );
|
34 |
|
35 |
+
if ( $into.is( '.use-floating-validation-tip *' ) ) {
|
36 |
+
$( '.wpcf7-not-valid-tip', $into ).mouseover( function() {
|
37 |
+
$( this ).wpcf7FadeOut();
|
38 |
+
});
|
39 |
+
|
40 |
+
$( ':input', $into ).focus( function() {
|
41 |
+
$( '.wpcf7-not-valid-tip', $into ).not( ':hidden' ).wpcf7FadeOut();
|
42 |
+
});
|
43 |
+
}
|
44 |
}
|
45 |
});
|
46 |
};
|
assets/scripts.min.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/*!
|
2 |
-
* Bootstrap for Contact Form 7 Scripts - Version 1.
|
3 |
*
|
4 |
* Modifications and Additions to WPCF7 Scripts to work with CF7BS
|
5 |
* Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
-
+function(a){"use strict";a(function(){a("div.wpcf7").on("invalid.wpcf7",function(){a(this).find("div.wpcf7-response-output").addClass("alert-warning")}),a("div.wpcf7").on("spam.wpcf7",function(){a(this).find("div.wpcf7-response-output").addClass("alert-warning")}),a("div.wpcf7").on("mailsent.wpcf7",function(){a(this).find("div.wpcf7-response-output").addClass("alert-success")}),a("div.wpcf7").on("mailfailed.wpcf7",function(){a(this).find("div.wpcf7-response-output").addClass("alert-danger")})}),a.fn.wpcf7NotValidTip=function(b){return this.each(function(){var c=a(this);c.addClass("has-error"),c.find("span.wpcf7-not-valid-tip").remove(),c.append('<span class="help-block wpcf7-not-valid-tip">'+b+"</span>"),c.slideDown("fast"),c.is(".use-floating-validation-tip *")&&(a(".wpcf7-not-valid-tip",c).mouseover(function(){a(this).wpcf7FadeOut()}),a(":input",c).focus(function(){a(".wpcf7-not-valid-tip",c).not(":hidden").wpcf7FadeOut()}))})},a.fn.wpcf7RefillQuiz=function(b){return this.each(function(){var c=a(this);a.each(b,function(a,b){c.find(':input[name="'+a+'"]').clearFields(),c.find(':input[name="'+a+'"]').siblings("p.wpcf7-quiz-label").text(b[0]),c.find('input:hidden[name="_wpcf7_quiz_answer_'+a+'"]').attr("value",b[1])})})},a.fn.wpcf7ClearResponseOutput=function(){return this.each(function(){a(this).find("div.wpcf7-response-output").hide().empty().removeClass("wpcf7-mail-sent-ok wpcf7-mail-sent-ng wpcf7-validation-errors wpcf7-spam-blocked alert-warning alert-success alert-danger").removeAttr("role"),a(this).find("div.form-group").removeClass("has-error"),a(this).find("span.wpcf7-not-valid-tip").remove(),a(this).find("img.ajax-loader").css({visibility:"hidden"})})}}(jQuery);
|
1 |
/*!
|
2 |
+
* Bootstrap for Contact Form 7 Scripts - Version 1.3.0
|
3 |
*
|
4 |
* Modifications and Additions to WPCF7 Scripts to work with CF7BS
|
5 |
* Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
+
+function(a){"use strict";a(function(){a("div.wpcf7").on("invalid.wpcf7",function(){a(this).find("div.wpcf7-response-output").addClass("alert-warning")}),a("div.wpcf7").on("spam.wpcf7",function(){a(this).find("div.wpcf7-response-output").addClass("alert-warning")}),a("div.wpcf7").on("mailsent.wpcf7",function(){a(this).find("div.wpcf7-response-output").addClass("alert-success")}),a("div.wpcf7").on("mailfailed.wpcf7",function(){a(this).find("div.wpcf7-response-output").addClass("alert-danger")})}),a.fn.wpcf7NotValidTip=function(b){return this.each(function(){var c=a(this);c.addClass("has-error"),c.parents(".wpcf7-form").hasClass("form-inline")||(c.find("span.wpcf7-not-valid-tip").remove(),c.parents(".wpcf7-form").hasClass("form-horizontal")?c.children("div").append('<span class="help-block wpcf7-not-valid-tip">'+b+"</span>"):c.append('<span class="help-block wpcf7-not-valid-tip">'+b+"</span>"),c.slideDown("fast"),c.is(".use-floating-validation-tip *")&&(a(".wpcf7-not-valid-tip",c).mouseover(function(){a(this).wpcf7FadeOut()}),a(":input",c).focus(function(){a(".wpcf7-not-valid-tip",c).not(":hidden").wpcf7FadeOut()})))})},a.fn.wpcf7RefillQuiz=function(b){return this.each(function(){var c=a(this);a.each(b,function(a,b){c.find(':input[name="'+a+'"]').clearFields(),c.find(':input[name="'+a+'"]').siblings("p.wpcf7-quiz-label").text(b[0]),c.find('input:hidden[name="_wpcf7_quiz_answer_'+a+'"]').attr("value",b[1])})})},a.fn.wpcf7ClearResponseOutput=function(){return this.each(function(){a(this).find("div.wpcf7-response-output").hide().empty().removeClass("wpcf7-mail-sent-ok wpcf7-mail-sent-ng wpcf7-validation-errors wpcf7-spam-blocked alert-warning alert-success alert-danger").removeAttr("role"),a(this).find("div.form-group").removeClass("has-error"),a(this).find("span.wpcf7-not-valid-tip").remove(),a(this).find("img.ajax-loader").css({visibility:"hidden"})})}}(jQuery);
|
bootstrap-for-contact-form-7.php
CHANGED
@@ -3,31 +3,33 @@
|
|
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.
|
7 |
Author: Felix Arntz
|
8 |
Author URI: http://leaves-and-love.net
|
9 |
-
License: GNU General Public License
|
10 |
-
License URI: http://www.gnu.org/licenses/gpl-
|
11 |
Text Domain: bootstrap-for-contact-form-7
|
12 |
-
|
13 |
*/
|
14 |
/**
|
15 |
* @package CF7BS
|
16 |
-
* @version 1.
|
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 ) ) );
|
24 |
-
define( 'CF7BS_BASENAME', plugin_basename( CF7BS_MAINFILE ) );
|
25 |
-
|
26 |
if ( ! defined( 'WPCF7_AUTOP' ) ) {
|
27 |
define( 'WPCF7_AUTOP', false );
|
28 |
}
|
29 |
|
30 |
function cf7bs_maybe_init() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
if ( defined( 'WPCF7_VERSION' ) && apply_filters( 'cf7bs_using_bootstrap', true ) ) {
|
32 |
include_once CF7BS_PATH . '/modifications.php';
|
33 |
include_once CF7BS_PATH . '/classes/CF7BS_Component.php';
|
@@ -39,7 +41,6 @@ function cf7bs_maybe_init() {
|
|
39 |
$modules = array(
|
40 |
'acceptance',
|
41 |
'submit',
|
42 |
-
'captcha',
|
43 |
'count',
|
44 |
'number',
|
45 |
'text',
|
@@ -49,6 +50,8 @@ function cf7bs_maybe_init() {
|
|
49 |
'date',
|
50 |
'file',
|
51 |
'select',
|
|
|
|
|
52 |
);
|
53 |
foreach ( $modules as $module ) {
|
54 |
$file = CF7BS_PATH . '/modules/' . $module . '.php';
|
@@ -56,6 +59,8 @@ function cf7bs_maybe_init() {
|
|
56 |
include_once $file;
|
57 |
}
|
58 |
}
|
|
|
|
|
59 |
}
|
60 |
}
|
61 |
add_action( 'plugins_loaded', 'cf7bs_maybe_init', 50 );
|
@@ -129,12 +134,16 @@ function cf7bs_get_default_form_properties() {
|
|
129 |
return apply_filters( 'cf7bs_default_form_properties', $properties );
|
130 |
}
|
131 |
|
132 |
-
function cf7bs_apply_field_args_filter( $field_args, $tag_type, $tag_name, $form_id = 0 ) {
|
133 |
if ( ! $form_id ) {
|
134 |
$form_id = cf7bs_get_current_form_id();
|
135 |
}
|
136 |
|
137 |
-
|
|
|
|
|
|
|
|
|
138 |
}
|
139 |
|
140 |
function cf7bs_add_get_parameter() {
|
@@ -173,3 +182,17 @@ function cf7bs_get_current_form_id() {
|
|
173 |
|
174 |
return false;
|
175 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.3.0
|
7 |
Author: Felix Arntz
|
8 |
Author URI: http://leaves-and-love.net
|
9 |
+
License: GNU General Public License v3
|
10 |
+
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
Text Domain: bootstrap-for-contact-form-7
|
12 |
+
Tags: wordpress, plugin, contact form 7, wpcf7, bootstrap, bootstrap 3, bootstrap framework, addon, contact form 7 addon, contact form, cf7bs, css
|
13 |
*/
|
14 |
/**
|
15 |
* @package CF7BS
|
16 |
+
* @version 1.3.0
|
17 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
18 |
*/
|
19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
if ( ! defined( 'WPCF7_AUTOP' ) ) {
|
21 |
define( 'WPCF7_AUTOP', false );
|
22 |
}
|
23 |
|
24 |
function cf7bs_maybe_init() {
|
25 |
+
define( 'CF7BS_VERSION', '1.3.0' );
|
26 |
+
define( 'CF7BS_MAINFILE', __FILE__ );
|
27 |
+
define( 'CF7BS_PATH', untrailingslashit( plugin_dir_path( CF7BS_MAINFILE ) ) );
|
28 |
+
define( 'CF7BS_URL', untrailingslashit( plugin_dir_url( CF7BS_MAINFILE ) ) );
|
29 |
+
define( 'CF7BS_BASENAME', plugin_basename( CF7BS_MAINFILE ) );
|
30 |
+
|
31 |
+
load_plugin_textdomain( 'bootstrap-for-contact-form-7' );
|
32 |
+
|
33 |
if ( defined( 'WPCF7_VERSION' ) && apply_filters( 'cf7bs_using_bootstrap', true ) ) {
|
34 |
include_once CF7BS_PATH . '/modifications.php';
|
35 |
include_once CF7BS_PATH . '/classes/CF7BS_Component.php';
|
41 |
$modules = array(
|
42 |
'acceptance',
|
43 |
'submit',
|
|
|
44 |
'count',
|
45 |
'number',
|
46 |
'text',
|
50 |
'date',
|
51 |
'file',
|
52 |
'select',
|
53 |
+
'really-simple-captcha',
|
54 |
+
'recaptcha',
|
55 |
);
|
56 |
foreach ( $modules as $module ) {
|
57 |
$file = CF7BS_PATH . '/modules/' . $module . '.php';
|
59 |
include_once $file;
|
60 |
}
|
61 |
}
|
62 |
+
} else {
|
63 |
+
add_action( 'admin_notices', 'cf7bs_disabled_notice' );
|
64 |
}
|
65 |
}
|
66 |
add_action( 'plugins_loaded', 'cf7bs_maybe_init', 50 );
|
134 |
return apply_filters( 'cf7bs_default_form_properties', $properties );
|
135 |
}
|
136 |
|
137 |
+
function cf7bs_apply_field_args_filter( $field_args, $tag_type, $tag_name = '', $form_id = 0 ) {
|
138 |
if ( ! $form_id ) {
|
139 |
$form_id = cf7bs_get_current_form_id();
|
140 |
}
|
141 |
|
142 |
+
if ( ! empty( $tag_name ) ) {
|
143 |
+
$field_args = apply_filters( 'cf7bs_form_' . $form_id . '_field_' . $tag_type . '_' . $tag_name . '_properties', $field_args );
|
144 |
+
}
|
145 |
+
|
146 |
+
return apply_filters( 'cf7bs_form_' . $form_id . '_field_' . $tag_type . '_properties', $field_args );
|
147 |
}
|
148 |
|
149 |
function cf7bs_add_get_parameter() {
|
182 |
|
183 |
return false;
|
184 |
}
|
185 |
+
|
186 |
+
function cf7bs_disabled_notice() {
|
187 |
+
if ( ! current_user_can( 'activate_plugins' ) ) {
|
188 |
+
return;
|
189 |
+
}
|
190 |
+
|
191 |
+
echo '<div class="error">';
|
192 |
+
echo '<p>';
|
193 |
+
_e( 'The plugin <em>Bootstrap for Contact Form 7</em> has not been initialized since either <em>Contact Form 7</em> is not active or you are not using a Bootstrap theme.', 'bootstrap-for-contact-form-7' );
|
194 |
+
echo '<br/>';
|
195 |
+
_e( 'Please make sure the conditions for the plugin are met or deactivate it otherwise.', 'bootstrap-for-contact-form-7' );
|
196 |
+
echo '</p>';
|
197 |
+
echo '</div>';
|
198 |
+
}
|
changelog.txt
CHANGED
@@ -1,5 +1,15 @@
|
|
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
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 1.3.0 =
|
4 |
+
* Added: the new Google reCAPTCHA shortcode is now supported
|
5 |
+
* Enhanced: added an additional filter to adjust form field arguments
|
6 |
+
* Enhanced: a notice in the admin is now shown if the plugin cannot be initialized
|
7 |
+
* Enhanced: language files no longer bundled in the plugin; now completely relies on language packs
|
8 |
+
* Fixed: form element errors are now displayed correctly on horizontal forms and hidden on inline forms
|
9 |
+
* Fixed: plugin constant definitions now happen on 'plugins_loaded' hook
|
10 |
+
* Fixed: typo 'dismissable' in alert setting / class is now 'dismissible'
|
11 |
+
* Fixed: readme link to 'Additional Settings' now translateable
|
12 |
+
|
13 |
= 1.2.4 =
|
14 |
* Tweaked: added textdomain for translate.wordpress.org
|
15 |
* Fixed: defaults are now working correctly on all field types
|
classes/CF7BS_Alert.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
-
* @version 1.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
@@ -23,12 +23,12 @@ class CF7BS_Alert extends CF7BS_Component {
|
|
23 |
if ( ! empty( $type ) ) {
|
24 |
$class .= ' alert-' . $type;
|
25 |
}
|
26 |
-
if ( $
|
27 |
-
$class .= ' alert-
|
28 |
}
|
29 |
|
30 |
$output .= '<div class="' . esc_attr( $class ) . '"' . ( $hide ? ' style="display:none;"' : '' ) . '>';
|
31 |
-
if ( $
|
32 |
$output .= '<button class="close" data-dismiss="alert" type="button">×</button>';
|
33 |
}
|
34 |
}
|
@@ -53,6 +53,14 @@ class CF7BS_Alert extends CF7BS_Component {
|
|
53 |
}
|
54 |
|
55 |
protected function validate_args( $args, $exclude = array() ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
$args = parent::validate_args( $args, $exclude );
|
57 |
|
58 |
return $args;
|
@@ -62,7 +70,7 @@ class CF7BS_Alert extends CF7BS_Component {
|
|
62 |
$defaults = array(
|
63 |
'type' => 'default',
|
64 |
'class' => '',
|
65 |
-
'
|
66 |
'hide' => false,
|
67 |
);
|
68 |
return apply_filters( 'cf7bs_bootstrap_alert_defaults', $defaults );
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.3.0
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
23 |
if ( ! empty( $type ) ) {
|
24 |
$class .= ' alert-' . $type;
|
25 |
}
|
26 |
+
if ( $dismissible ) {
|
27 |
+
$class .= ' alert-dismissible';
|
28 |
}
|
29 |
|
30 |
$output .= '<div class="' . esc_attr( $class ) . '"' . ( $hide ? ' style="display:none;"' : '' ) . '>';
|
31 |
+
if ( $dismissible ) {
|
32 |
$output .= '<button class="close" data-dismiss="alert" type="button">×</button>';
|
33 |
}
|
34 |
}
|
53 |
}
|
54 |
|
55 |
protected function validate_args( $args, $exclude = array() ) {
|
56 |
+
// back compat
|
57 |
+
if ( isset( $args['dismissable'] ) ) {
|
58 |
+
if ( ! isset( $args['dismissible'] ) ) {
|
59 |
+
$args['dismissible'] = $args['dismissable'];
|
60 |
+
}
|
61 |
+
unset( $args['dismissable'] );
|
62 |
+
}
|
63 |
+
|
64 |
$args = parent::validate_args( $args, $exclude );
|
65 |
|
66 |
return $args;
|
70 |
$defaults = array(
|
71 |
'type' => 'default',
|
72 |
'class' => '',
|
73 |
+
'dismissible' => false,
|
74 |
'hide' => false,
|
75 |
);
|
76 |
return apply_filters( 'cf7bs_bootstrap_alert_defaults', $defaults );
|
classes/CF7BS_Button.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
-
* @version 1.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.3.0
|
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.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.3.0
|
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.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.3.0
|
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.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.3.0
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
composer.json
CHANGED
@@ -1,11 +1,22 @@
|
|
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.
|
5 |
-
"license": "GPL-
|
6 |
"type": "wordpress-plugin",
|
7 |
"keywords": [
|
8 |
-
"wordpress",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
],
|
10 |
"homepage": "http://wordpress.org/plugins/bootstrap-for-contact-form-7/",
|
11 |
"authors": [
|
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.3.0",
|
5 |
+
"license": "GPL-3.0",
|
6 |
"type": "wordpress-plugin",
|
7 |
"keywords": [
|
8 |
+
"wordpress",
|
9 |
+
"plugin",
|
10 |
+
"contact form 7",
|
11 |
+
"wpcf7",
|
12 |
+
"bootstrap",
|
13 |
+
"bootstrap 3",
|
14 |
+
"bootstrap framework",
|
15 |
+
"addon",
|
16 |
+
"contact form 7 addon",
|
17 |
+
"contact form",
|
18 |
+
"cf7bs",
|
19 |
+
"css"
|
20 |
],
|
21 |
"homepage": "http://wordpress.org/plugins/bootstrap-for-contact-form-7/",
|
22 |
"authors": [
|
languages/bootstrap-for-contact-form-7-de_DE.mo
DELETED
Binary file
|
languages/bootstrap-for-contact-form-7-de_DE.po
DELETED
@@ -1,78 +0,0 @@
|
|
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
DELETED
@@ -1,73 +0,0 @@
|
|
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.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
@@ -254,7 +254,7 @@ function cf7bs_editor_panel_additional_settings( $post ) {
|
|
254 |
wpcf7_editor_panel_additional_settings( $post );
|
255 |
$output = ob_get_clean();
|
256 |
|
257 |
-
$output = str_replace( 'http://contactform7.com/additional-settings/', 'https://wordpress.org/plugins/bootstrap-for-contact-form-7/other_notes/', $output );
|
258 |
|
259 |
echo $output;
|
260 |
}
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.3.0
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
254 |
wpcf7_editor_panel_additional_settings( $post );
|
255 |
$output = ob_get_clean();
|
256 |
|
257 |
+
$output = str_replace( 'http://contactform7.com/additional-settings/', __( 'https://wordpress.org/plugins/bootstrap-for-contact-form-7/other_notes/', 'bootstrap-for-contact-form-7' ), $output );
|
258 |
|
259 |
echo $output;
|
260 |
}
|
modules/acceptance.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
-
* @version 1.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.3.0
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
modules/checkbox.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
-
* @version 1.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.3.0
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
modules/count.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
-
* @version 1.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.3.0
|
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.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.3.0
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
modules/file.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
-
* @version 1.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.3.0
|
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.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.3.0
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
modules/quiz.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
-
* @version 1.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.3.0
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
modules/{captcha.php → really-simple-captcha.php}
RENAMED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
-
* @version 1.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.3.0
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
modules/recaptcha.php
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @package CF7BS
|
4 |
+
* @version 1.3.0
|
5 |
+
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( function_exists( 'wpcf7_recaptcha_add_shortcode_recaptcha' ) ) {
|
9 |
+
remove_action( 'wpcf7_init', 'wpcf7_recaptcha_add_shortcode_recaptcha' );
|
10 |
+
add_action( 'wpcf7_init', 'cf7bs_recaptcha_add_shortcode_recaptcha' );
|
11 |
+
|
12 |
+
function cf7bs_recaptcha_add_shortcode_recaptcha() {
|
13 |
+
$recaptcha = WPCF7_RECAPTCHA::get_instance();
|
14 |
+
|
15 |
+
if ( $recaptcha->is_active() ) {
|
16 |
+
wpcf7_add_shortcode( 'recaptcha', 'cf7bs_recaptcha_shortcode_handler' );
|
17 |
+
}
|
18 |
+
}
|
19 |
+
|
20 |
+
function cf7bs_recaptcha_shortcode_handler( $tag ) {
|
21 |
+
$tag_obj = new WPCF7_Shortcode( $tag );
|
22 |
+
|
23 |
+
$field = new CF7BS_Form_Field( cf7bs_apply_field_args_filter( array(
|
24 |
+
'name' => wpcf7_recaptcha_shortcode_handler( $tag ),
|
25 |
+
'type' => 'custom',
|
26 |
+
'label' => $tag_obj->content,
|
27 |
+
'grid_columns' => cf7bs_get_form_property( 'grid_columns' ),
|
28 |
+
'form_layout' => cf7bs_get_form_property( 'layout' ),
|
29 |
+
'form_label_width' => cf7bs_get_form_property( 'label_width' ),
|
30 |
+
'form_breakpoint' => cf7bs_get_form_property( 'breakpoint' ),
|
31 |
+
'tabindex' => false,
|
32 |
+
'wrapper_class' => '',
|
33 |
+
), $tag_obj->basetype ) );
|
34 |
+
|
35 |
+
$html = $field->display( false );
|
36 |
+
|
37 |
+
return $html;
|
38 |
+
}
|
39 |
+
}
|
modules/select.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
-
* @version 1.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.3.0
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
modules/submit.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
-
* @version 1.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.3.0
|
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.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.3.0
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
modules/textarea.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
-
* @version 1.
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package CF7BS
|
4 |
+
* @version 1.3.0
|
5 |
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
|
6 |
*/
|
7 |
|
package.json
CHANGED
@@ -1,10 +1,21 @@
|
|
1 |
{
|
2 |
"name": "bootstrap-for-contact-form-7",
|
3 |
"pluginName": "Bootstrap for Contact Form 7",
|
4 |
-
"version": "1.
|
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",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
],
|
9 |
"author": {
|
10 |
"name": "Felix Arntz",
|
@@ -20,9 +31,9 @@
|
|
20 |
"url" : "https://github.com/felixarntz/bootstrap-for-contact-form-7/issues"
|
21 |
},
|
22 |
"license": {
|
23 |
-
"type": "GPL-
|
24 |
-
"name": "GNU General Public License
|
25 |
-
"url": "http://www.gnu.org/licenses/gpl-
|
26 |
},
|
27 |
"engines": {
|
28 |
"node": ">= 0.10.0"
|
@@ -33,7 +44,6 @@
|
|
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 |
}
|
1 |
{
|
2 |
"name": "bootstrap-for-contact-form-7",
|
3 |
"pluginName": "Bootstrap for Contact Form 7",
|
4 |
+
"version": "1.3.0",
|
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",
|
8 |
+
"plugin",
|
9 |
+
"contact form 7",
|
10 |
+
"wpcf7",
|
11 |
+
"bootstrap",
|
12 |
+
"bootstrap 3",
|
13 |
+
"bootstrap framework",
|
14 |
+
"addon",
|
15 |
+
"contact form 7 addon",
|
16 |
+
"contact form",
|
17 |
+
"cf7bs",
|
18 |
+
"css"
|
19 |
],
|
20 |
"author": {
|
21 |
"name": "Felix Arntz",
|
31 |
"url" : "https://github.com/felixarntz/bootstrap-for-contact-form-7/issues"
|
32 |
},
|
33 |
"license": {
|
34 |
+
"type": "GPL-3.0",
|
35 |
+
"name": "GNU General Public License v3",
|
36 |
+
"url": "http://www.gnu.org/licenses/gpl-3.0.html"
|
37 |
},
|
38 |
"engines": {
|
39 |
"node": ">= 0.10.0"
|
44 |
"grunt-contrib-jshint": "~0.10.0",
|
45 |
"grunt-contrib-uglify": "~0.5.0",
|
46 |
"grunt-banner": "~0.2.3",
|
47 |
+
"grunt-text-replace": "~0.4.0"
|
|
|
48 |
}
|
49 |
}
|
readme.txt
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
=== Bootstrap for Contact Form 7 ===
|
2 |
|
3 |
Plugin Name: Bootstrap for Contact Form 7
|
4 |
-
Plugin URI:
|
5 |
Author URI: http://leaves-and-love.net
|
6 |
Author: Felix Arntz
|
7 |
Donate link: http://leaves-and-love.net/wordpress-plugins/
|
8 |
Contributors: flixos90
|
9 |
Requires at least: 3.6
|
10 |
-
Tested up to: 4.
|
11 |
-
Stable tag: 1.
|
12 |
-
Version: 1.
|
13 |
-
License: GPL
|
14 |
-
License URI: http://www.gnu.org/licenses/gpl-
|
15 |
-
Tags: contact form 7, wpcf7, bootstrap, bootstrap 3, bootstrap framework, addon,
|
16 |
|
17 |
This plugin modifies the output of the popular Contact Form 7 plugin to be styled in compliance with themes using the Bootstrap CSS framework.
|
18 |
|
@@ -109,6 +109,16 @@ If you're a developer and you have some ideas to improve the plugin or to solve
|
|
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
|
1 |
=== Bootstrap for Contact Form 7 ===
|
2 |
|
3 |
Plugin Name: Bootstrap for Contact Form 7
|
4 |
+
Plugin URI: https://wordpress.org/plugins/bootstrap-for-contact-form-7/
|
5 |
Author URI: http://leaves-and-love.net
|
6 |
Author: Felix Arntz
|
7 |
Donate link: http://leaves-and-love.net/wordpress-plugins/
|
8 |
Contributors: flixos90
|
9 |
Requires at least: 3.6
|
10 |
+
Tested up to: 4.4.1
|
11 |
+
Stable tag: 1.3.0
|
12 |
+
Version: 1.3.0
|
13 |
+
License: GPL v3
|
14 |
+
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
15 |
+
Tags: wordpress, plugin, contact form 7, wpcf7, bootstrap, bootstrap 3, bootstrap framework, addon, contact form 7 addon, contact form, cf7bs, css
|
16 |
|
17 |
This plugin modifies the output of the popular Contact Form 7 plugin to be styled in compliance with themes using the Bootstrap CSS framework.
|
18 |
|
109 |
|
110 |
== Changelog ==
|
111 |
|
112 |
+
= 1.3.0 =
|
113 |
+
* Added: the new Google reCAPTCHA shortcode is now supported
|
114 |
+
* Enhanced: added an additional filter to adjust form field arguments
|
115 |
+
* Enhanced: a notice in the admin is now shown if the plugin cannot be initialized
|
116 |
+
* Enhanced: language files no longer bundled in the plugin; now completely relies on language packs
|
117 |
+
* Fixed: form element errors are now displayed correctly on horizontal forms and hidden on inline forms
|
118 |
+
* Fixed: plugin constant definitions now happen on 'plugins_loaded' hook
|
119 |
+
* Fixed: typo 'dismissable' in alert setting / class is now 'dismissible'
|
120 |
+
* Fixed: readme link to 'Additional Settings' now translateable
|
121 |
+
|
122 |
= 1.2.4 =
|
123 |
* Tweaked: added textdomain for translate.wordpress.org
|
124 |
* Fixed: defaults are now working correctly on all field types
|