Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .coderabbit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ reviews:
request_changes_workflow: false

# Adds a high-level summary at the top of the PR
high_level_summary: true
high_level_summary: false

# A short informative poem about the changes
poem: true
poem: false

# Updates the review status dynamically
review_status: true
Expand Down
File renamed without changes.
27 changes: 27 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"plugins": {
"@release-it/conventional-changelog": {
"preset": "angular",
"infile": "CHANGELOG.md"
}
},
"git": {
"requireUpstream": false,
"commitMessage": "chore: release v${version}",
"tagName": "${version}"
},
"github": {
"release": false
},
"npm": {
"publish": false
},
"hooks": {
"after:bump": [
"sed -i.bak -e \"s/Stable tag: .*/Stable tag: ${version}/\" readme.txt",
"sed -i.bak -e \"s/Version: .*/Version: ${version}/\" bootstrap-shortcodes.php",
"rm -f readme.txt.bak bootstrap-shortcodes.php.bak",
"git add readme.txt bootstrap-shortcodes.php"
]
}
}
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Changelog

## [3.4.3](https://github.com/TheWebShop/bootstrap-shortcodes/compare/3.4.2...3.4.3) (2026-03-09)


### Bug Fixes

* **ci:** install composer dependencies before test execution ([8cd9fd4](https://github.com/TheWebShop/bootstrap-shortcodes/commit/8cd9fd4c016ddb62129e156a6d849b37d8a5697a))
* **e2e:** remove quotes around wp-env cli command in package.json ([389e558](https://github.com/TheWebShop/bootstrap-shortcodes/commit/389e558a61c2d081942dbddb77aac51e773e03e4))
* less lock spam ([8aff079](https://github.com/TheWebShop/bootstrap-shortcodes/commit/8aff079f79c278de06a90a607368c848c7d56f0a))
2 changes: 1 addition & 1 deletion bootstrap-shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Bootstrap Shortcodes
Plugin URI: https://github.com/TheWebShop/bootstrap-shortcodes
Description: A simple shortcode generator. Add buttons, columns, toggles and alerts to your theme.
Version: 3.4.2
Version: 3.4.3
Author: Kevin Attfield
Author URI: https://github.com/Sinetheta

Expand Down
5 changes: 3 additions & 2 deletions inc/bs_buttons.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<?php
function bs_buttons( $params, $content=null ) {
extract(shortcode_atts(array(
'size' => 'default',
'size' => '',
'type' => 'default',
'value' => 'button',
'href' => "#"
), $params ) );

$content = preg_replace( '/<br class="nc".\/>/', '', $content );
$result = '<a class="btn btn-' . esc_attr($size) . ' btn-' . esc_attr($type) . '" href="' . esc_url($href) . '">' . esc_attr($value) . '</a>';
$size_class = ($size && $size !== $type) ? ' btn-' . esc_attr($size) : '';
$result = '<a class="btn btn-' . esc_attr($type) . $size_class . '" href="' . esc_url($href) . '">' . esc_attr($value) . '</a>';
return force_balance_tags( $result );
}
add_shortcode( 'bs_button', 'bs_buttons' );
3 changes: 2 additions & 1 deletion inc/bs_tabs.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ function bs_dropdown( $params, $content=null ) {
), $params ) );
$content = preg_replace( '/<br class="nc".\/>/', '', $content );
$result = '<li class="dropdown">';
$result .= '<a class="' . esc_attr($class) . '" id="' . esc_attr($id) . '" class="dropdown-toggle" data-toggle="dropdown">' . esc_attr($title) . '<b class="caret"></b></a>';
$class_attr = trim( esc_attr( $class ) . ' dropdown-toggle' );
$result .= '<a class="' . $class_attr . '" id="' . esc_attr($id) . '" data-toggle="dropdown">' . esc_attr($title) . '<b class="caret"></b></a>';
$result .= '<ul class="dropdown-menu">';
$result .= do_shortcode( $content );
$result .= '</ul></li>';
Expand Down
5 changes: 3 additions & 2 deletions inc/bs_well.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php
function bs_well( $params, $content=null ) {
extract( shortcode_atts( array(
'size' => 'unknown'
'size' => ''
), $params));

$content = preg_replace( '/<br class="nc".\/>/', '', $content );
$result = '<div class="well well-' . esc_attr($size) . '">';
$size_class = $size ? ' well-' . esc_attr($size) : '';
$result = '<div class="well' . $size_class . '">';
$result .= do_shortcode( $content );
$result .= '</div>';
return force_balance_tags( $result );
Expand Down
Loading
Loading