Gallery – Photo Gallery – Image Gallery - Version 1.1.3

Version Description

  • Fixed bug (linked images opening in lightbox)
Download this release

Release Info

Developer GreenTreeLabs
Plugin Icon wp plugin Gallery – Photo Gallery – Image Gallery
Version 1.1.3
Comparing to
See all releases

Code changes from version 1.1.2 to 1.1.3

Files changed (3) hide show
  1. Modula.php +3 -3
  2. README.txt +7 -2
  3. lib/gallery-class.php +4 -4
Modula.php CHANGED
@@ -1,10 +1,10 @@
1
  <?php
2
  /**
3
- Plugin Name: Gallery A WordPress Modula Grid
4
  Plugin URI: http://modula.greentreelabs.net
5
- Description: The Best Wordpress Gallery.
6
  Author: GreenTreeLabs
7
- Version: 1.1.2
8
  Author URI: http://modula.greentreelabs.net
9
  */
10
 
1
  <?php
2
  /**
3
+ Plugin Name: Gallery - A WordPress Modula Gallery
4
  Plugin URI: http://modula.greentreelabs.net
5
+ Description: The Most Creative Grid Wordpress Gallery.
6
  Author: GreenTreeLabs
7
+ Version: 1.1.3
8
  Author URI: http://modula.greentreelabs.net
9
  */
10
 
README.txt CHANGED
@@ -1,6 +1,6 @@
1
- === Gallery A WordPress Modula Grid ===
2
  Contributors: GreenTreeLabs
3
- Tags: best gallery, best gallery plugin, best responsive gallery, best responsive wordpress gallery, best wordpress gallery, best wordpress gallery plugin, best wp gallery, design portfolio, fullscreen, gallery, Gallery Plugin, image gallery, image gallery plugin, Image Rotator, javascript gallery, javascript rotator, jquery gallery, jquery rotator, media uploader, photo gallery, photo rotator, Picture Gallery, portfolio, responsive, responsive galleries, responsive gallery, responsive gallery plugin, responsive image gallery, responsive image gallery plugin, responsive rotator, responsive slideshow, responsive slideshow plugin, rotator, shortcode, slideshow, slideshow plugin, template tag, wordpress galleries, wordpress gallery, wordpress gallery plugin
4
  Requires at least: 4.0
5
  Tested up to: 4.5.3
6
  Stable tag: trunk
@@ -49,6 +49,8 @@ By using the Modula Admin Panel you’re able to fine tune every aspect of the g
49
  What is Modula good for? Modula is also the best WordPress portfolio plugin, as it allows you to build gorgeous, creative portfolios.
50
  Applications are: architecture, art, photography, food blogs, pets and animals, tattoos, travel and also wedding albums.
51
 
 
 
52
  == Installation ==
53
  = For automatic installation: =
54
 
@@ -83,6 +85,9 @@ The simplest way to install is to click on \'Plugins\' then \'Add\' and type \'M
83
 
84
  == Changelog ==
85
 
 
 
 
86
  = 1.1.2 =
87
  * Fixed social icons bug
88
 
1
+ === Gallery - A WordPress Modula Gallery ===
2
  Contributors: GreenTreeLabs
3
+ Tags: best gallery, best gallery plugin, best responsive gallery, best responsive wordpress gallery, best wordpress gallery, best wordpress gallery plugin, best wp gallery, design portfolio, fullscreen, gallery, Gallery Plugin, image gallery, image gallery plugin, Image Rotator, javascript gallery, javascript rotator, jquery gallery, jquery rotator, media uploader, photo gallery, photo rotator, Picture Gallery, portfolio, responsive, responsive galleries, responsive gallery, responsive gallery plugin, responsive image gallery, responsive image gallery plugin, responsive rotator, responsive slideshow, responsive slideshow plugin, rotator, shortcode, slideshow, slideshow plugin, template tag, wordpress galleries, wordpress gallery, wordpress gallery plugin, envira, envira gallery, nextgen, nextgen gallery
4
  Requires at least: 4.0
5
  Tested up to: 4.5.3
6
  Stable tag: trunk
49
  What is Modula good for? Modula is also the best WordPress portfolio plugin, as it allows you to build gorgeous, creative portfolios.
50
  Applications are: architecture, art, photography, food blogs, pets and animals, tattoos, travel and also wedding albums.
51
 
52
+ Now you can also import your existing galleries using our 2 steps import wizard.
53
+
54
  == Installation ==
55
  = For automatic installation: =
56
 
85
 
86
  == Changelog ==
87
 
88
+ = 1.1.3 =
89
+ * Fixed bug (linked images opening in lightbox)
90
+
91
  = 1.1.2 =
92
  * Fixed social icons bug
93
 
lib/gallery-class.php CHANGED
@@ -150,13 +150,13 @@ if (!class_exists( "ModulaLiteFE" )) {
150
  {
151
  if(! empty($image->link))
152
  return "href='" . $image->link . "'";
153
-
154
  if(empty($this->gallery->lightbox))
155
  return '';
156
-
157
  if($this->gallery->lightbox == 'attachment-page')
158
  return "href='" . $image->url . "'";
159
-
160
  return "href='" . wp_get_attachment_url( $image->imageId ) . "'";
161
  }
162
 
@@ -302,7 +302,7 @@ if (!class_exists( "ModulaLiteFE" )) {
302
  $imgUrl = $image->imagePath;
303
 
304
  $html .= "\t<div class=\"item " . $hasTitle . " effect-". $hoverEffect->code ."\">\n";
305
- $html .= "<a $title='$image->description' ". ($this->gallery->lightbox == "lightbox2" ? "data-lightbox='gallery'" : "") ." rel='$rel' " . $this->getTarget($image) . " class='tile-inner " . ($this->getLightboxClass($image)) . "' " . $this->getLink($image) . ">\n";
306
  $html .= "\t\t<img data-valign='$image->valign' alt='$image->alt' data-halign='$image->halign' class='pic' src='$imgUrl' data-src='$imgUrl' />\n";
307
  $html .= "\t\t<div class=\"figc\">\n";
308
  $html .= "\t\t\t<div class=\"figc-inner\">\n";
150
  {
151
  if(! empty($image->link))
152
  return "href='" . $image->link . "'";
153
+
154
  if(empty($this->gallery->lightbox))
155
  return '';
156
+
157
  if($this->gallery->lightbox == 'attachment-page')
158
  return "href='" . $image->url . "'";
159
+
160
  return "href='" . wp_get_attachment_url( $image->imageId ) . "'";
161
  }
162
 
302
  $imgUrl = $image->imagePath;
303
 
304
  $html .= "\t<div class=\"item " . $hasTitle . " effect-". $hoverEffect->code ."\">\n";
305
+ $html .= "<a $title='$image->description' ". ($this->gallery->lightbox == "lightbox2" && empty($image->link) ? "data-lightbox='gallery'" : "") ." rel='$rel' " . $this->getTarget($image) . " class='tile-inner " . ($this->getLightboxClass($image)) . "' " . $this->getLink($image) . ">\n";
306
  $html .= "\t\t<img data-valign='$image->valign' alt='$image->alt' data-halign='$image->halign' class='pic' src='$imgUrl' data-src='$imgUrl' />\n";
307
  $html .= "\t\t<div class=\"figc\">\n";
308
  $html .= "\t\t\t<div class=\"figc-inner\">\n";