Galleries by Angie Makes - Version 1.9

Version Description

Download this release

Release Info

Developer cbaldelomar
Plugin Icon wp plugin Galleries by Angie Makes
Version 1.9
Comparing to
See all releases

Code changes from version 1.8 to 1.9

Files changed (4) hide show
  1. README.md +4 -0
  2. includes/functions.php +2 -1
  3. readme.txt +4 -0
  4. wc-gallery.php +2 -2
README.md CHANGED
@@ -46,6 +46,10 @@ Insert a gallery through your dashboard. You will see extra dropdown settings wh
46
 
47
  ## Changelog ##
48
 
 
 
 
 
49
  ### Version 1.8
50
 
51
  * Fixed bug where custom links only worked when link was set to media
46
 
47
  ## Changelog ##
48
 
49
+ ### Version 1.9
50
+
51
+ * HTML5 compliant gallery structure
52
+
53
  ### Version 1.8
54
 
55
  * Fixed bug where custom links only worked when link was set to media
includes/functions.php CHANGED
@@ -121,7 +121,8 @@ function wc_gallery_shortcode($blank, $attr) {
121
  continue;
122
 
123
  list($src, $width, $height) = $img;
124
- $image_output = "<img src='{$src}' width='{$width}' height='{$height}' />";
 
125
 
126
  if ( ! empty( $link ) ) {
127
  if ( $customlink ) {
121
  continue;
122
 
123
  list($src, $width, $height) = $img;
124
+ $alt = trim( strip_tags( get_post_meta($id, '_wp_attachment_image_alt', true) ) ); // Use Alt field first
125
+ $image_output = "<img src='{$src}' width='{$width}' height='{$height}' alt='{$alt}' />";
126
 
127
  if ( ! empty( $link ) ) {
128
  if ( $customlink ) {
readme.txt CHANGED
@@ -46,6 +46,10 @@ Insert a gallery through your dashboard. You will see extra dropdown settings wh
46
 
47
  == Changelog ==
48
 
 
 
 
 
49
  ### Version 1.8
50
 
51
  * Fixed bug where custom links only worked when link was set to media
46
 
47
  == Changelog ==
48
 
49
+ ### Version 1.9
50
+
51
+ * HTML5 compliant gallery structure
52
+
53
  ### Version 1.8
54
 
55
  * Fixed bug where custom links only worked when link was set to media
wc-gallery.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://wordpresscanvas.com/features/gallery/
5
  Description: Extend WordPress galleries to display masonry gallery, carousel gallery, and slider gallery
6
  Author: Chris Baldelomar
7
  Author URI: http://webplantmedia.com/
8
- Version: 1.8
9
  License: GPLv2 or later
10
  */
11
 
@@ -13,7 +13,7 @@ function wc_gallery_using_woocommerce() {
13
  return in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) );
14
  }
15
 
16
- define( 'WC_GALLERY_VERSION', '1.8' );
17
  define( 'WC_GALLERY_PREFIX', 'wc_gallery_' );
18
  define( '_WC_GALLERY_PREFIX', '_wc_gallery_' );
19
  define( 'WC_GALLERY_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
5
  Description: Extend WordPress galleries to display masonry gallery, carousel gallery, and slider gallery
6
  Author: Chris Baldelomar
7
  Author URI: http://webplantmedia.com/
8
+ Version: 1.9
9
  License: GPLv2 or later
10
  */
11
 
13
  return in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) );
14
  }
15
 
16
+ define( 'WC_GALLERY_VERSION', '1.9' );
17
  define( 'WC_GALLERY_PREFIX', 'wc_gallery_' );
18
  define( '_WC_GALLERY_PREFIX', '_wc_gallery_' );
19
  define( 'WC_GALLERY_PLUGIN_URL', plugin_dir_url( __FILE__ ) );