From 07a31110f77b151925620a6a7abd04fd7d4f5ea8 Mon Sep 17 00:00:00 2001 From: m47ch Date: Thu, 28 Aug 2014 20:09:02 +0200 Subject: [PATCH 1/2] Fixing issues #209, #182 and #204 There was a misspelling in \fonts\glyphicons-halfings-regular.xxx called in variables.less (missing -) --- ...regular.eot => glyphicons-halflings-regular.eot} | Bin ...regular.otf => glyphicons-halflings-regular.otf} | Bin ...regular.svg => glyphicons-halflings-regular.svg} | 0 ...regular.ttf => glyphicons-halflings-regular.ttf} | Bin ...gular.woff => glyphicons-halflings-regular.woff} | Bin 5 files changed, 0 insertions(+), 0 deletions(-) rename library/fonts/{glyphiconshalflings-regular.eot => glyphicons-halflings-regular.eot} (100%) mode change 100755 => 100644 rename library/fonts/{glyphiconshalflings-regular.otf => glyphicons-halflings-regular.otf} (100%) mode change 100755 => 100644 rename library/fonts/{glyphiconshalflings-regular.svg => glyphicons-halflings-regular.svg} (100%) mode change 100755 => 100644 rename library/fonts/{glyphiconshalflings-regular.ttf => glyphicons-halflings-regular.ttf} (100%) mode change 100755 => 100644 rename library/fonts/{glyphiconshalflings-regular.woff => glyphicons-halflings-regular.woff} (100%) mode change 100755 => 100644 diff --git a/library/fonts/glyphiconshalflings-regular.eot b/library/fonts/glyphicons-halflings-regular.eot old mode 100755 new mode 100644 similarity index 100% rename from library/fonts/glyphiconshalflings-regular.eot rename to library/fonts/glyphicons-halflings-regular.eot diff --git a/library/fonts/glyphiconshalflings-regular.otf b/library/fonts/glyphicons-halflings-regular.otf old mode 100755 new mode 100644 similarity index 100% rename from library/fonts/glyphiconshalflings-regular.otf rename to library/fonts/glyphicons-halflings-regular.otf diff --git a/library/fonts/glyphiconshalflings-regular.svg b/library/fonts/glyphicons-halflings-regular.svg old mode 100755 new mode 100644 similarity index 100% rename from library/fonts/glyphiconshalflings-regular.svg rename to library/fonts/glyphicons-halflings-regular.svg diff --git a/library/fonts/glyphiconshalflings-regular.ttf b/library/fonts/glyphicons-halflings-regular.ttf old mode 100755 new mode 100644 similarity index 100% rename from library/fonts/glyphiconshalflings-regular.ttf rename to library/fonts/glyphicons-halflings-regular.ttf diff --git a/library/fonts/glyphiconshalflings-regular.woff b/library/fonts/glyphicons-halflings-regular.woff old mode 100755 new mode 100644 similarity index 100% rename from library/fonts/glyphiconshalflings-regular.woff rename to library/fonts/glyphicons-halflings-regular.woff From 2db72c4cf33825911699d89e8392340fcf2752e6 Mon Sep 17 00:00:00 2001 From: m47ch Date: Wed, 10 Sep 2014 16:59:55 +0200 Subject: [PATCH 2/2] Fixing gallery shortcode span2 #184 Fixing issue #184 by using grid system instead of span2 (temporary fix) --- library/shortcodes.php | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/library/shortcodes.php b/library/shortcodes.php index 3c3ee287..8c034e93 100644 --- a/library/shortcodes.php +++ b/library/shortcodes.php @@ -9,24 +9,25 @@ add_shortcode('gallery', 'gallery_shortcode_tbs'); function gallery_shortcode_tbs($attr) { - global $post, $wp_locale; - - $output = ""; - - $args = array( 'post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'post_parent' => $post->ID ); - $attachments = get_posts($args); - if ($attachments) { - $output = '
    '; - foreach ( $attachments as $attachment ) { - $output .= '
  • '; - $att_title = apply_filters( 'the_title' , $attachment->post_title ); - $output .= wp_get_attachment_link( $attachment->ID , 'thumbnail', true ); - $output .= '
  • '; - } - $output .= '
'; - } + global $post, $wp_locale; - return $output; + $output = ""; + + $args = array( 'post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'post_parent' => $post->ID ); + $attachments = get_posts($args); + if ($attachments) { + $output = '
'; + foreach ( $attachments as $attachment ) { + + $output .= '
'; + $att_title = apply_filters( 'the_title' , $attachment->post_title ); + $output .= wp_get_attachment_link( $attachment->ID , 'medium', false ); + $output .= '
'; + } + $output .= '
'; + } + + return $output; }