Skip to content

Commit

Permalink
Merge pull request MWDelaney#17 from FoolsRun/bootstrap3
Browse files Browse the repository at this point in the history
Fix button target
  • Loading branch information
MWDelaney committed Oct 2, 2013
2 parents a8f6f32 + 660e071 commit c1d3f9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bootstrap-shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ function bs_button($atts, $content = null) {
endforeach;
}
$return = '<a href="' . $link . '" class="btn';
$return .= ($target) ? ' target=' . $target : '';
$return .= ($type) ? ' btn-' . $type : ' btn-default';
$return .= ($size) ? ' btn-' . $size : '';
$return .= ($xclass) ? ' ' . $xclass : '';
$return .= '"';
$return .= ($target) ? ' target=' . $target : '';
$return .= ($title) ? ' title="' . $title . '"' : '';
$return .= ($data_props) ? ' ' . $data_props : '';
$return .= '>' . do_shortcode( $content ) . '</a>';
Expand Down

0 comments on commit c1d3f9a

Please sign in to comment.