Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
Update BS3 classes
Browse files Browse the repository at this point in the history
  • Loading branch information
mindctrl committed Aug 20, 2013
1 parent f6a978b commit 1a9c4dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions alienship-shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ function add_shortcodes() {
*/
function alienship_alert( $atts, $content = null ) {
extract( shortcode_atts( array(
'type' => 'alert',
'type' => 'alert alert-warning',
'heading' => ''
), $atts ) );

if ($type != "alert") {
if ($type != "alert alert-warning") {
return '<div class="alert alert-'.$type.' fade in"><a href="#" class="close" data-dismiss="alert">&times;</a><strong>'. do_shortcode( $heading ) .'</strong><p> ' . do_shortcode( $content ) . '</p></div>';
} else {
return '<div class="'.$type.' fade in"><a href="#" class="close" data-dismiss="alert">&times;</a><strong>'. do_shortcode( $heading ) .'</strong><p>' . do_shortcode( $content ) . '</p></div>';
Expand Down Expand Up @@ -294,10 +294,10 @@ function alienship_panel( $atts, $content = null ) {
if ( $columns != "12" ) {
$span .= ''.$columns.'"';
$spanfollow = $gridsize - $columns;
return '<div class="row"><div class='.$span.'><div class="panel"><p>' . do_shortcode( $content ) . '</p></div></div><div class="span'.$spanfollow.'">&nbsp;</div></div><div class="clear"></div>'; }
return '<div class="row"><div class='.$span.'><div class="panel panel-default"><p>' . do_shortcode( $content ) . '</p></div></div><div class="span'.$spanfollow.'">&nbsp;</div></div>'; }
else {
$span .= ''.$columns.'"';
return '<div class="row"><div class='.$span.'><div class="panel"><p>' . do_shortcode( $content ) . '</p></div></div></div><div class="clear"></div>';
return '<div class="row"><div class='.$span.'><div class="panel panel-default"><p>' . do_shortcode( $content ) . '</p></div></div></div>';
}
}

Expand Down

0 comments on commit 1a9c4dd

Please sign in to comment.