From f6a978b8f2e293a0c59d5e8123493fc52045857b Mon Sep 17 00:00:00 2001 From: mindctrl Date: Sun, 18 Aug 2013 21:38:43 -0400 Subject: [PATCH] Update for BS3 --- alienship-shortcodes.php | 42 ++++++++++++++++++---------------------- 1 file changed, 19 insertions(+), 23 deletions(-) diff --git a/alienship-shortcodes.php b/alienship-shortcodes.php index e693eb4..2ed9fa7 100755 --- a/alienship-shortcodes.php +++ b/alienship-shortcodes.php @@ -3,7 +3,7 @@ Plugin Name: Alien Ship Shortcodes Plugin URI: http://www.johnparris.com/wordpress-plugins/alienship-shortcodes/ Description: Shortcodes for displaying Bootstrap elements in the Alien Ship theme -Version: 1.0.3 +Version: 1.0.4 Author: John Parris Author URI: http://www.johnparris.com License: GPL2 @@ -79,11 +79,7 @@ function alienship_alert( $atts, $content = null ) { */ function alienship_badge( $atts, $content = null ) { extract( shortcode_atts( array( 'type' => 'badge' ), $atts) ); - if ( $type != "badge" ) { - return '' . do_shortcode( $content ) . ''; - } else { - return '' . do_shortcode( $content ) . ''; - } + return '' . do_shortcode( $content ) . ''; } @@ -105,7 +101,7 @@ function alienship_button( $atts, $content = null ) { ), $atts) ); if ( empty( $type ) ) { - $type = "btn"; + $type = "btn btn-default"; } else { $type = "btn btn-" . $type; } @@ -126,7 +122,7 @@ function alienship_button( $atts, $content = null ) { * Featured Posts Carousel * * @since 1.0 - * [featured-posts] shortcode. Options are tag, max, width, and height. Defaults: tag="featured" max="3" width="745" height="350". + * [featured-posts] shortcode. Options are tag, max, width, and height. Defaults: tag="featured" max="3" width="850" height="350". * Example: [featured-posts tag="featured" max="3"] This will feature up to 3 posts tagged "featured". */ function alienship_featured_posts_shortcode( $atts, $content = null ) { @@ -153,7 +149,7 @@ function alienship_featured_posts_shortcode( $atts, $content = null ) { } if ( empty( $width ) ) { - $width = "745"; + $width = "850"; } else { $width = ''.$width.''; } @@ -171,8 +167,8 @@ function alienship_featured_posts_shortcode( $atts, $content = null ) { if ( $featured_query_shortcode->have_posts() ) { ?>
-
-
+
+
-
-
+
+