From faee7da4437b4990ac54062f417ca98925320185 Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Sun, 7 Feb 2016 14:15:35 +0100 Subject: [PATCH] ready for 1.3.1 --- assets/scripts.min.js | 6 ++++++ bootstrap-for-contact-form-7.php | 6 +++--- classes/CF7BS_Alert.php | 2 +- classes/CF7BS_Button.php | 2 +- classes/CF7BS_Button_Group.php | 2 +- classes/CF7BS_Component.php | 2 +- composer.json | 2 +- modifications.php | 2 +- modules/acceptance.php | 2 +- modules/checkbox.php | 2 +- modules/count.php | 2 +- modules/date.php | 2 +- modules/file.php | 2 +- modules/number.php | 2 +- modules/quiz.php | 2 +- modules/really-simple-captcha.php | 2 +- modules/recaptcha.php | 2 +- modules/select.php | 2 +- modules/submit.php | 2 +- modules/text.php | 2 +- modules/textarea.php | 2 +- package.json | 2 +- readme.txt | 12 +++++++++--- 23 files changed, 38 insertions(+), 26 deletions(-) diff --git a/assets/scripts.min.js b/assets/scripts.min.js index e6efa0e..7893034 100644 --- a/assets/scripts.min.js +++ b/assets/scripts.min.js @@ -1 +1,7 @@ +/*! + * Bootstrap for Contact Form 7 Scripts - Version 1.3.1 + * + * Modifications and Additions to WPCF7 Scripts to work with CF7BS + * Felix Arntz + */ +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("div.wpcf7").on("click","div.wpcf7-response-output .close",function(b){a(this).parent().hide(),b.preventDefault()})}),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(''+b+""):c.append(''+b+""),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(){var b=a(this).find("div.wpcf7-response-output .close");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"),0 */ @@ -22,7 +22,7 @@ } function cf7bs_maybe_init() { - define( 'CF7BS_VERSION', '1.3.0' ); + define( 'CF7BS_VERSION', '1.3.1' ); define( 'CF7BS_MAINFILE', __FILE__ ); define( 'CF7BS_PATH', untrailingslashit( plugin_dir_path( CF7BS_MAINFILE ) ) ); define( 'CF7BS_URL', untrailingslashit( plugin_dir_url( CF7BS_MAINFILE ) ) ); diff --git a/classes/CF7BS_Alert.php b/classes/CF7BS_Alert.php index a0787ac..ee70c4d 100755 --- a/classes/CF7BS_Alert.php +++ b/classes/CF7BS_Alert.php @@ -1,7 +1,7 @@ */ diff --git a/classes/CF7BS_Button.php b/classes/CF7BS_Button.php index 0cf8a1a..6d99f46 100755 --- a/classes/CF7BS_Button.php +++ b/classes/CF7BS_Button.php @@ -1,7 +1,7 @@ */ diff --git a/classes/CF7BS_Button_Group.php b/classes/CF7BS_Button_Group.php index 15f0f69..8aaa40f 100755 --- a/classes/CF7BS_Button_Group.php +++ b/classes/CF7BS_Button_Group.php @@ -1,7 +1,7 @@ */ diff --git a/classes/CF7BS_Component.php b/classes/CF7BS_Component.php index f7b74b1..acb0446 100755 --- a/classes/CF7BS_Component.php +++ b/classes/CF7BS_Component.php @@ -1,7 +1,7 @@ */ diff --git a/composer.json b/composer.json index 4bafd81..4c48cba 100755 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "felixarntz/bootstrap-for-contact-form-7", "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.", - "version": "1.3.0", + "version": "1.3.1", "license": "GPL-3.0", "type": "wordpress-plugin", "keywords": [ diff --git a/modifications.php b/modifications.php index 79253f7..abda644 100755 --- a/modifications.php +++ b/modifications.php @@ -1,7 +1,7 @@ */ diff --git a/modules/acceptance.php b/modules/acceptance.php index 91a3520..29f90b6 100755 --- a/modules/acceptance.php +++ b/modules/acceptance.php @@ -1,7 +1,7 @@ */ diff --git a/modules/checkbox.php b/modules/checkbox.php index 6db7a88..0a295b1 100755 --- a/modules/checkbox.php +++ b/modules/checkbox.php @@ -1,7 +1,7 @@ */ diff --git a/modules/count.php b/modules/count.php index ca4335d..537e95c 100755 --- a/modules/count.php +++ b/modules/count.php @@ -1,7 +1,7 @@ */ diff --git a/modules/date.php b/modules/date.php index 3aff73f..7ba7366 100755 --- a/modules/date.php +++ b/modules/date.php @@ -1,7 +1,7 @@ */ diff --git a/modules/file.php b/modules/file.php index 53be2af..53b0bf5 100755 --- a/modules/file.php +++ b/modules/file.php @@ -1,7 +1,7 @@ */ diff --git a/modules/number.php b/modules/number.php index 3e1d431..3027d66 100755 --- a/modules/number.php +++ b/modules/number.php @@ -1,7 +1,7 @@ */ diff --git a/modules/quiz.php b/modules/quiz.php index 41ac719..9be1113 100755 --- a/modules/quiz.php +++ b/modules/quiz.php @@ -1,7 +1,7 @@ */ diff --git a/modules/really-simple-captcha.php b/modules/really-simple-captcha.php index 14d83c5..88c4984 100755 --- a/modules/really-simple-captcha.php +++ b/modules/really-simple-captcha.php @@ -1,7 +1,7 @@ */ diff --git a/modules/recaptcha.php b/modules/recaptcha.php index e9e87d0..2a719de 100755 --- a/modules/recaptcha.php +++ b/modules/recaptcha.php @@ -1,7 +1,7 @@ */ diff --git a/modules/select.php b/modules/select.php index 1ad4386..4a9cb2d 100755 --- a/modules/select.php +++ b/modules/select.php @@ -1,7 +1,7 @@ */ diff --git a/modules/submit.php b/modules/submit.php index 94e8aec..31abfc3 100755 --- a/modules/submit.php +++ b/modules/submit.php @@ -1,7 +1,7 @@ */ diff --git a/modules/text.php b/modules/text.php index 2deeb9c..dd4c44f 100755 --- a/modules/text.php +++ b/modules/text.php @@ -1,7 +1,7 @@ */ diff --git a/modules/textarea.php b/modules/textarea.php index 6e32495..3003994 100755 --- a/modules/textarea.php +++ b/modules/textarea.php @@ -1,7 +1,7 @@ */ diff --git a/package.json b/package.json index 619ff25..abd59e0 100755 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "bootstrap-for-contact-form-7", "pluginName": "Bootstrap for Contact Form 7", - "version": "1.3.0", + "version": "1.3.1", "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.", "keywords": [ "wordpress", diff --git a/readme.txt b/readme.txt index 958a4fc..201c837 100755 --- a/readme.txt +++ b/readme.txt @@ -7,9 +7,9 @@ Author: Felix Arntz Donate link: http://leaves-and-love.net/wordpress-plugins/ Contributors: flixos90 Requires at least: 3.6 -Tested up to: 4.4.1 -Stable tag: 1.3.0 -Version: 1.3.0 +Tested up to: 4.4.2 +Stable tag: 1.3.1 +Version: 1.3.1 License: GPL v3 License URI: http://www.gnu.org/licenses/gpl-3.0.html Tags: wordpress, plugin, contact form 7, wpcf7, bootstrap, bootstrap 3, bootstrap framework, addon, contact form 7 addon, contact form, cf7bs, css @@ -109,6 +109,12 @@ If you're a developer and you have some ideas to improve the plugin or to solve == Changelog == += 1.3.1 = +* Enhanced: alerts can now be made dismissible by defining the constant `CF7BS_ALERT_DISMISSIBLE` +* Fixed: properly add `for` attributes to labels for checkbox and radio groups for accessibility +* Fixed: wrapped checkbox and radio groups with `
` for accessibility; needs to be manually enabled by defining the constant `CF7BS_FIELDSET_WRAP` (because of possible backwards compatibility issues with styling) +* Fixed: ID is no longer created for button groups which have an empty ID specified + = 1.3.0 = * Added: the new Google reCAPTCHA shortcode is now supported * Enhanced: added an additional filter to adjust form field arguments