Skip to content

Commit

Permalink
Update versions
Browse files Browse the repository at this point in the history
  • Loading branch information
crftwrk committed Jul 6, 2023
1 parent 52981b2 commit 425ddad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions main.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Adds Bootstrap 5 alerts and checkboxes to Contact Form 7. It´s an additional plugin and needs <a href="https://wordpress.org/plugins/contact-form-7/">CF7</a> to work.
* Author: bootScore
* Author URI: https://bootscore.me
* Version: 5.1.0
* Version: 5.1.1
*/


Expand All @@ -28,7 +28,7 @@ function contact_scripts() {

add_action('wp_enqueue_scripts','contact_scripts');

//Adjust contact form 7 radios and checkboxes to match bootstrap 4 custom radio structure.
//Adjust contact form 7 radios and checkboxes to match bootstrap custom radio structure.
add_filter('wpcf7_form_elements', function ($content) {
$content = preg_replace('/<label><input type="(checkbox|radio)" name="(.*?)" value="(.*?)" \/><span class="wpcf7-list-item-label">/i', '<label class="form-check form-check-inline form-check-\1"><input type="\1" name="\2" value="\3" class="form-check-input"><span class="wpcf7-list-item-label form-check-label">', $content);
$content = preg_replace('/wpcf7-checkbox\sform-check-input/i', '', $content); //removes wrong classes on type=checkbox
Expand Down
8 changes: 6 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
=== bS Contact Form 7 ===

Contributors: The bootScore Contributors
Contributors: The bootScore Contributors, Bastian Kreiter, Johannes Reiter

Requires at least: 4.5
Tested up to: 6.2.2
Requires PHP: 5.6
Stable tag: 5.1.0
Stable tag: 5.1.1
License: MIT License
License URI: https://github.com/bootscore/bs-contact-form-7/blob/main/LICENSE

Expand All @@ -23,6 +23,10 @@ Use HTML Markup like here https://bootscore.me/plugins/bs-contact-form-7/

== Changelog ==

= 5.1.1 - July 06 2023 =

* [BUGFIX] Wrong class bug on type checkox

= 5.1.0 - June 09 2023 =

* [FEATURE] Add composer.json
Expand Down

0 comments on commit 425ddad

Please sign in to comment.