Bootstrap for Contact Form 7 - Version 1.2.2

Version Description

  • Fixed: CSS is now specific to the contact form to prevent conflicts
Download this release

Release Info

Developer flixos90
Plugin Icon 128x128 Bootstrap for Contact Form 7
Version 1.2.2
Comparing to
See all releases

Code changes from version 1.2.1 to 1.2.2

.editorconfig ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # WordPress Coding Standards
2
+ # http://make.wordpress.org/core/handbook/coding-standards/
3
+
4
+ root = true
5
+
6
+ [*]
7
+ charset = utf-8
8
+ end_of_line = lf
9
+ indent_size = 4
10
+ tab_width = 4
11
+ indent_style = tab
12
+ insert_final_newline = true
13
+ trim_trailing_whitespace = true
14
+
15
+ [*.md]
16
+ trim_trailing_whitespace = false
17
+ indent_style = space
18
+ indent_size = 2
19
+
20
+ [*.txt]
21
+ trim_trailing_whitespace = false
22
+
23
+ [*.json]
24
+ insert_final_newline = false
25
+ indent_style = space
26
+ indent_size = 2
27
+
28
+ [.*rc]
29
+ insert_final_newline = false
30
+ indent_style = space
31
+ indent_size = 2
32
+
33
+ [*.yml]
34
+ insert_final_newline = false
35
+ indent_style = space
36
+ indent_size = 2
assets/scripts.min.js CHANGED
@@ -1,5 +1,5 @@
1
  /*!
2
- * Bootstrap for Contact Form 7 Scripts - Version 1.2.1
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.2
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,7 +3,7 @@
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.1
7
  Author: Felix Arntz
8
  Author URI: http://leaves-and-love.net
9
  License: GNU General Public License v2
@@ -11,11 +11,11 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
  */
12
  /**
13
  * @package CF7BS
14
- * @version 1.2.1
15
  * @author Felix Arntz <felix-arntz@leaves-and-love.net>
16
  */
17
 
18
- define( 'CF7BS_VERSION', '1.2.1' );
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.2
7
  Author: Felix Arntz
8
  Author URI: http://leaves-and-love.net
9
  License: GNU General Public License v2
11
  */
12
  /**
13
  * @package CF7BS
14
+ * @version 1.2.2
15
  * @author Felix Arntz <felix-arntz@leaves-and-love.net>
16
  */
17
 
18
+ define( 'CF7BS_VERSION', '1.2.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 ) ) );
changelog.txt CHANGED
@@ -1,5 +1,8 @@
1
  == Changelog ==
2
 
 
 
 
3
  = 1.2.1 =
4
  * Added: the captchar shortcode now supports an 'include_captchac' option to display the captcha image inline with the input field
5
  * Added: the textarea shortcode and all other text inputs now support an 'include_count' option to display their character count inline with them
1
  == Changelog ==
2
 
3
+ = 1.2.2 =
4
+ * Fixed: CSS is now specific to the contact form to prevent conflicts
5
+
6
  = 1.2.1 =
7
  * Added: the captchar shortcode now supports an 'include_captchac' option to display the captcha image inline with the input field
8
  * Added: the textarea shortcode and all other text inputs now support an 'include_count' option to display their character count inline with them
classes/CF7BS_Alert.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * @package CF7BS
4
- * @version 1.2.1
5
  * @author Felix Arntz <felix-arntz@leaves-and-love.net>
6
  */
7
 
1
  <?php
2
  /**
3
  * @package CF7BS
4
+ * @version 1.2.2
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.1
5
  * @author Felix Arntz <felix-arntz@leaves-and-love.net>
6
  */
7
 
1
  <?php
2
  /**
3
  * @package CF7BS
4
+ * @version 1.2.2
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.1
5
  * @author Felix Arntz <felix-arntz@leaves-and-love.net>
6
  */
7
 
1
  <?php
2
  /**
3
  * @package CF7BS
4
+ * @version 1.2.2
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.1
5
  * @author Felix Arntz <felix-arntz@leaves-and-love.net>
6
  */
7
 
1
  <?php
2
  /**
3
  * @package CF7BS
4
+ * @version 1.2.2
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.1
5
  * @author Felix Arntz <felix-arntz@leaves-and-love.net>
6
  */
7
 
1
  <?php
2
  /**
3
  * @package CF7BS
4
+ * @version 1.2.2
5
  * @author Felix Arntz <felix-arntz@leaves-and-love.net>
6
  */
7
 
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.1",
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.2",
5
  "license": "GPL-2.0",
6
  "type": "wordpress-plugin",
7
  "keywords": [
modifications.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * @package CF7BS
4
- * @version 1.2.1
5
  * @author Felix Arntz <felix-arntz@leaves-and-love.net>
6
  */
7
 
@@ -94,7 +94,7 @@ add_action( 'wpcf7_enqueue_styles', 'cf7bs_enqueue_styles' );
94
  function cf7bs_inline_styles() {
95
  ?>
96
  <style type="text/css">
97
- .screen-reader-response {
98
  display: none;
99
  }
100
  div.wpcf7 img.ajax-loader {
@@ -108,19 +108,19 @@ function cf7bs_inline_styles() {
108
  div.wpcf7 div.ajax-error {
109
  display: none;
110
  }
111
- .wpcf7-display-none {
112
  display: none;
113
  }
114
- .form-inline .form-group {
115
  max-width: 250px;
116
  }
117
- .input-group-addon img {
118
  height: 100%;
119
  width: auto;
120
  max-width: none !important;
121
  border-radius: 5px;
122
  }
123
- .input-group-addon.input-group-has-image {
124
  padding: 0;
125
  }
126
  </style>
1
  <?php
2
  /**
3
  * @package CF7BS
4
+ * @version 1.2.2
5
  * @author Felix Arntz <felix-arntz@leaves-and-love.net>
6
  */
7
 
94
  function cf7bs_inline_styles() {
95
  ?>
96
  <style type="text/css">
97
+ div.wpcf7 .screen-reader-response {
98
  display: none;
99
  }
100
  div.wpcf7 img.ajax-loader {
108
  div.wpcf7 div.ajax-error {
109
  display: none;
110
  }
111
+ div.wpcf7 .wpcf7-display-none {
112
  display: none;
113
  }
114
+ div.wpcf7 .form-inline .form-group {
115
  max-width: 250px;
116
  }
117
+ div.wpcf7 .input-group-addon img {
118
  height: 100%;
119
  width: auto;
120
  max-width: none !important;
121
  border-radius: 5px;
122
  }
123
+ div.wpcf7 .input-group-addon.input-group-has-image {
124
  padding: 0;
125
  }
126
  </style>
modules/acceptance.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * @package CF7BS
4
- * @version 1.2.1
5
  * @author Felix Arntz <felix-arntz@leaves-and-love.net>
6
  */
7
 
1
  <?php
2
  /**
3
  * @package CF7BS
4
+ * @version 1.2.2
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.1
5
  * @author Felix Arntz <felix-arntz@leaves-and-love.net>
6
  */
7
 
1
  <?php
2
  /**
3
  * @package CF7BS
4
+ * @version 1.2.2
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.2.1
5
  * @author Felix Arntz <felix-arntz@leaves-and-love.net>
6
  */
7
 
1
  <?php
2
  /**
3
  * @package CF7BS
4
+ * @version 1.2.2
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.2.1
5
  * @author Felix Arntz <felix-arntz@leaves-and-love.net>
6
  */
7
 
1
  <?php
2
  /**
3
  * @package CF7BS
4
+ * @version 1.2.2
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.1
5
  * @author Felix Arntz <felix-arntz@leaves-and-love.net>
6
  */
7
 
1
  <?php
2
  /**
3
  * @package CF7BS
4
+ * @version 1.2.2
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.2.1
5
  * @author Felix Arntz <felix-arntz@leaves-and-love.net>
6
  */
7
 
1
  <?php
2
  /**
3
  * @package CF7BS
4
+ * @version 1.2.2
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.1
5
  * @author Felix Arntz <felix-arntz@leaves-and-love.net>
6
  */
7
 
1
  <?php
2
  /**
3
  * @package CF7BS
4
+ * @version 1.2.2
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.2.1
5
  * @author Felix Arntz <felix-arntz@leaves-and-love.net>
6
  */
7
 
1
  <?php
2
  /**
3
  * @package CF7BS
4
+ * @version 1.2.2
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.1
5
  * @author Felix Arntz <felix-arntz@leaves-and-love.net>
6
  */
7
 
1
  <?php
2
  /**
3
  * @package CF7BS
4
+ * @version 1.2.2
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.2.1
5
  * @author Felix Arntz <felix-arntz@leaves-and-love.net>
6
  */
7
 
1
  <?php
2
  /**
3
  * @package CF7BS
4
+ * @version 1.2.2
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.1
5
  * @author Felix Arntz <felix-arntz@leaves-and-love.net>
6
  */
7
 
1
  <?php
2
  /**
3
  * @package CF7BS
4
+ * @version 1.2.2
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.2.1
5
  * @author Felix Arntz <felix-arntz@leaves-and-love.net>
6
  */
7
 
1
  <?php
2
  /**
3
  * @package CF7BS
4
+ * @version 1.2.2
5
  * @author Felix Arntz <felix-arntz@leaves-and-love.net>
6
  */
7
 
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.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", "plugin", "contact form 7", "wpcf7", "bootstrap", "bootstrap 3", "bootstrap framework", "addon", "contact form 7 addon", "contact form", "cf7bs", "css"
1
  {
2
  "name": "bootstrap-for-contact-form-7",
3
  "pluginName": "Bootstrap for Contact Form 7",
4
+ "version": "1.2.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"
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.2
11
- Stable tag: 1.2.1
12
- Version: 1.2.1
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,9 @@ If you're a developer and you have some ideas to improve the plugin or to solve
109
 
110
  == Changelog ==
111
 
 
 
 
112
  = 1.2.1 =
113
  * Added: the captchar shortcode now supports an 'include_captchac' option to display the captcha image inline with the input field
114
  * Added: the textarea shortcode and all other text inputs now support an 'include_count' option to display their character count inline with them
@@ -203,7 +206,7 @@ The submit button can be aligned left, center or right to fit your form's desire
203
 
204
  = Inline Character Count =
205
 
206
- Contact Form 7 provides a `[count]` shortcode that renders a number showing how many characters have been entered or how many characters are remaining in a specific input field. Using it on its own looks kind of ugly though. But guess what, you can adjust that too by adding an option `include_count` to any text / email / url / tel / textarea input. You can optionally specify a value for that option as well which can consist of the positioning ('before' or 'after') and the count direction ('up' or 'down') of the counter. Just as a reminder, when choosing 'down', make sure you give the input element a maximum length, otherwise there is no point in having that counter. Example:
207
 
208
  [text your-text maxlength:80 include_count:after:down]Your Text[/text]
209
 
@@ -213,7 +216,7 @@ By the way, have you read the information about input groups above? You can comb
213
 
214
  = Inline Captcha Image =
215
 
216
- If you've been using Contact Form 7 together with the [Really Simple CAPTCHA](https://wordpress.org/plugins/really-simple-captcha/) plugin, you are probably aware of the `[captchar]` (captcha input field) and `[captchac]` (captcha image) shortcodes it provides. You can still use them independently, but it probably looks nicer to show the captcha image ride beside its input field. To accomplish this, remove the `[captchac]` shortcode completely and instead add a new option `include_captchac` to the `[captchar]` shortcode. You can optionally give this option a value (either 'before' or 'after') to mark the location where the image should show up. Example:
217
 
218
  [captchar your-captcha include_captchac:before]Captcha[/captchar]
219
 
8
  Contributors: flixos90
9
  Requires at least: 3.6
10
  Tested up to: 4.2
11
+ Stable tag: 1.2.2
12
+ Version: 1.2.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
 
110
  == Changelog ==
111
 
112
+ = 1.2.2 =
113
+ * Fixed: CSS is now specific to the contact form to prevent conflicts
114
+
115
  = 1.2.1 =
116
  * Added: the captchar shortcode now supports an 'include_captchac' option to display the captcha image inline with the input field
117
  * Added: the textarea shortcode and all other text inputs now support an 'include_count' option to display their character count inline with them
206
 
207
  = Inline Character Count =
208
 
209
+ Contact Form 7 provides a `[count]` shortcode that renders a number indicating how many characters have been entered or how many characters are remaining in a specific input field. Using it on its own looks kind of ugly though. But guess what, you can adjust that too by adding an option `include_count` to any text / email / url / tel / textarea input. You can optionally specify a value for that option as well which can consist of the positioning ('before' or 'after') and the count direction ('up' or 'down') of the counter. Just as a reminder, when choosing 'down', make sure you give the input element a maximum length, otherwise there is no point in having that counter. Example:
210
 
211
  [text your-text maxlength:80 include_count:after:down]Your Text[/text]
212
 
216
 
217
  = Inline Captcha Image =
218
 
219
+ If you've been using Contact Form 7 together with the [Really Simple CAPTCHA](https://wordpress.org/plugins/really-simple-captcha/) plugin, you are probably aware of the `[captchar]` (captcha input field) and `[captchac]` (captcha image) shortcodes it provides. You can still use them independently, but it probably looks nicer to have the captcha image show up inline, right beside its input field. To accomplish this, remove the `[captchac]` shortcode completely and instead add a new option `include_captchac` to the `[captchar]` shortcode. You can optionally give this option a value (either 'before' or 'after') to mark the location where the image should show up. Example:
220
 
221
  [captchar your-captcha include_captchac:before]Captcha[/captchar]
222