From 9aff5b68f44c879ac867d1ba9a1d7a6cac10de58 Mon Sep 17 00:00:00 2001 From: Felix Date: Sat, 21 Nov 2015 17:23:43 -0500 Subject: [PATCH] ready for version 1.3.0 --- Gruntfile.js | 1 + assets/scripts.min.js | 6 ++++++ bootstrap-for-contact-form-7.php | 7 ++++--- classes/CF7BS_Alert.php | 2 +- classes/CF7BS_Button.php | 2 +- classes/CF7BS_Button_Group.php | 2 +- classes/CF7BS_Component.php | 2 +- classes/CF7BS_Form_Field.php | 2 +- composer.json | 15 +++++++++++++-- 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 | 15 +++++++++++++-- readme.txt | 20 +++++++++++++++----- 25 files changed, 71 insertions(+), 31 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 3c0b4d5..2b53147 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -18,6 +18,7 @@ module.exports = function(grunt) { 'License: <%= pkg.license.name %>\n' + 'License URI: <%= pkg.license.url %>\n' + 'Text Domain: bootstrap-for-contact-form-7\n' + + 'Tags: <%= pkg.keywords.join(", ") %>\n' + '*/', fileheader: '/**\n' + ' * @package CF7BS\n' + diff --git a/assets/scripts.min.js b/assets/scripts.min.js index 4d56668..5e6caf2 100644 --- a/assets/scripts.min.js +++ b/assets/scripts.min.js @@ -1 +1,7 @@ +/*! + * Bootstrap for Contact Form 7 Scripts - Version 1.3.0 + * + * 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.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(){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); \ No newline at end of file diff --git a/bootstrap-for-contact-form-7.php b/bootstrap-for-contact-form-7.php index a8810b3..8340fd6 100644 --- a/bootstrap-for-contact-form-7.php +++ b/bootstrap-for-contact-form-7.php @@ -3,16 +3,17 @@ Plugin Name: Bootstrap for Contact Form 7 Plugin URI: http://wordpress.org/plugins/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.2.4 +Version: 1.3.0 Author: Felix Arntz Author URI: http://leaves-and-love.net License: GNU General Public License v3 License URI: http://www.gnu.org/licenses/gpl-3.0.html Text Domain: bootstrap-for-contact-form-7 +Tags: wordpress, plugin, contact form 7, wpcf7, bootstrap, bootstrap 3, bootstrap framework, addon, contact form 7 addon, contact form, cf7bs, css */ /** * @package CF7BS - * @version 1.2.4 + * @version 1.3.0 * @author Felix Arntz */ @@ -21,7 +22,7 @@ } function cf7bs_maybe_init() { - define( 'CF7BS_VERSION', '1.2.4' ); + define( 'CF7BS_VERSION', '1.3.0' ); 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 08aeb45..da6b7eb 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 c5abb6b..dc121ac 100644 --- 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 de7e1b7..15f0f69 100644 --- 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 148c9de..f7b74b1 100644 --- a/classes/CF7BS_Component.php +++ b/classes/CF7BS_Component.php @@ -1,7 +1,7 @@ */ diff --git a/classes/CF7BS_Form_Field.php b/classes/CF7BS_Form_Field.php index 4b200fb..b3a64e7 100644 --- a/classes/CF7BS_Form_Field.php +++ b/classes/CF7BS_Form_Field.php @@ -1,7 +1,7 @@ */ diff --git a/composer.json b/composer.json index c18a4a1..4bafd81 100644 --- a/composer.json +++ b/composer.json @@ -1,11 +1,22 @@ { "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.2.4", + "version": "1.3.0", "license": "GPL-3.0", "type": "wordpress-plugin", "keywords": [ - "wordpress", "plugin", "contact form 7", "wpcf7", "bootstrap", "bootstrap 3", "bootstrap framework", "addon", "contact form 7 addon", "contact form", "cf7bs", "css" + "wordpress", + "plugin", + "contact form 7", + "wpcf7", + "bootstrap", + "bootstrap 3", + "bootstrap framework", + "addon", + "contact form 7 addon", + "contact form", + "cf7bs", + "css" ], "homepage": "http://wordpress.org/plugins/bootstrap-for-contact-form-7/", "authors": [ diff --git a/modifications.php b/modifications.php index 023cbd6..babeda8 100644 --- a/modifications.php +++ b/modifications.php @@ -1,7 +1,7 @@ */ diff --git a/modules/acceptance.php b/modules/acceptance.php index 67e0ded..91a3520 100644 --- a/modules/acceptance.php +++ b/modules/acceptance.php @@ -1,7 +1,7 @@ */ diff --git a/modules/checkbox.php b/modules/checkbox.php index 3794e5f..6db7a88 100644 --- a/modules/checkbox.php +++ b/modules/checkbox.php @@ -1,7 +1,7 @@ */ diff --git a/modules/count.php b/modules/count.php index 33e7292..ca4335d 100644 --- a/modules/count.php +++ b/modules/count.php @@ -1,7 +1,7 @@ */ diff --git a/modules/date.php b/modules/date.php index 4abe965..3aff73f 100644 --- a/modules/date.php +++ b/modules/date.php @@ -1,7 +1,7 @@ */ diff --git a/modules/file.php b/modules/file.php index f6c8dbd..53be2af 100644 --- a/modules/file.php +++ b/modules/file.php @@ -1,7 +1,7 @@ */ diff --git a/modules/number.php b/modules/number.php index 2e1450e..3e1d431 100644 --- a/modules/number.php +++ b/modules/number.php @@ -1,7 +1,7 @@ */ diff --git a/modules/quiz.php b/modules/quiz.php index 7dfd698..41ac719 100644 --- 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 4dbe201..14d83c5 100644 --- 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 c729130..e9e87d0 100644 --- a/modules/recaptcha.php +++ b/modules/recaptcha.php @@ -1,7 +1,7 @@ */ diff --git a/modules/select.php b/modules/select.php index 38ba90a..1ad4386 100644 --- a/modules/select.php +++ b/modules/select.php @@ -1,7 +1,7 @@ */ diff --git a/modules/submit.php b/modules/submit.php index 2c3e6e4..94e8aec 100644 --- a/modules/submit.php +++ b/modules/submit.php @@ -1,7 +1,7 @@ */ diff --git a/modules/text.php b/modules/text.php index e12c85d..2deeb9c 100644 --- a/modules/text.php +++ b/modules/text.php @@ -1,7 +1,7 @@ */ diff --git a/modules/textarea.php b/modules/textarea.php index 455c224..6e32495 100644 --- a/modules/textarea.php +++ b/modules/textarea.php @@ -1,7 +1,7 @@ */ diff --git a/package.json b/package.json index d23cf1f..619ff25 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,21 @@ { "name": "bootstrap-for-contact-form-7", "pluginName": "Bootstrap for Contact Form 7", - "version": "1.2.4", + "version": "1.3.0", "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", "plugin", "contact form 7", "wpcf7", "bootstrap", "bootstrap 3", "bootstrap framework", "addon", "contact form 7 addon", "contact form", "cf7bs", "css" + "wordpress", + "plugin", + "contact form 7", + "wpcf7", + "bootstrap", + "bootstrap 3", + "bootstrap framework", + "addon", + "contact form 7 addon", + "contact form", + "cf7bs", + "css" ], "author": { "name": "Felix Arntz", diff --git a/readme.txt b/readme.txt index 5c5383a..b2e7514 100644 --- a/readme.txt +++ b/readme.txt @@ -1,18 +1,18 @@ === Bootstrap for Contact Form 7 === Plugin Name: Bootstrap for Contact Form 7 -Plugin URI: http://wordpress.org/plugins/bootstrap-for-contact-form-7/ +Plugin URI: https://wordpress.org/plugins/bootstrap-for-contact-form-7/ Author URI: http://leaves-and-love.net Author: Felix Arntz Donate link: http://leaves-and-love.net/wordpress-plugins/ Contributors: flixos90 Requires at least: 3.6 -Tested up to: 4.3 -Stable tag: 1.2.4 -Version: 1.2.4 +Tested up to: 4.4-beta4 +Stable tag: 1.3.0 +Version: 1.3.0 License: GPL v3 License URI: http://www.gnu.org/licenses/gpl-3.0.html -Tags: contact form 7, wpcf7, bootstrap, bootstrap 3, bootstrap framework, addon, css framework, contact form 7 addon, contact form, cf7bs, css +Tags: wordpress, plugin, contact form 7, wpcf7, bootstrap, bootstrap 3, bootstrap framework, addon, contact form 7 addon, contact form, cf7bs, css This plugin modifies the output of the popular Contact Form 7 plugin to be styled in compliance with themes using the Bootstrap CSS framework. @@ -109,6 +109,16 @@ If you're a developer and you have some ideas to improve the plugin or to solve == Changelog == += 1.3.0 = +* 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 + = 1.2.4 = * Tweaked: added textdomain for translate.wordpress.org * Fixed: defaults are now working correctly on all field types