Gallery – Photo Gallery – Image Gallery - Version 1.1.6

Version Description

  • Bug fix (impossible to select effect "None")
Download this release

Release Info

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

Code changes from version 1.1.5 to 1.1.6

Files changed (5) hide show
  1. Modula.php +40 -39
  2. README.txt +30 -2
  3. admin/edit-gallery.php +9 -10
  4. lib/gallery-class.php +3 -3
  5. scripts/effects.css +3 -3
Modula.php CHANGED
@@ -4,7 +4,7 @@ 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.5
8
  Author URI: http://modula.greentreelabs.net
9
  */
10
 
@@ -20,6 +20,8 @@ if (!class_exists("ModulaLite"))
20
  {
21
  private $loadedData;
22
 
 
 
23
  private $defaultValues = array(
24
  'width' => 100,
25
  'height' => 800,
@@ -108,7 +110,6 @@ if (!class_exists("ModulaLite"))
108
 
109
  function define_hover_effects()
110
  {
111
- $this->hoverEffects = array();
112
  $this->hoverEffects[] = new ModulaLiteHoverEffect('None', 'none', false, false, 0);
113
  $this->hoverEffects[] = new ModulaLiteHoverEffect('Pufrobo', 'pufrobo', true, true, 4);
114
  $this->hoverEffects[] = new ModulaLiteHoverEffect('Fluid Up', '', true, true, 0);
@@ -438,14 +439,14 @@ if (!class_exists("ModulaLite"))
438
  wp_enqueue_script('modula');
439
 
440
 
441
- wp_register_style('modula_stylesheet', WP_PLUGIN_URL.'/modula-best-grid-gallery/scripts/modula.css');
442
  wp_enqueue_style('modula_stylesheet');
443
 
444
- wp_register_style('effects_stylesheet', WP_PLUGIN_URL.'/modula-best-grid-gallery/scripts/effects.css');
445
  wp_enqueue_style('effects_stylesheet');
446
 
447
- wp_register_script('lightbox2_script', WP_PLUGIN_URL.'/modula-best-grid-gallery/lightbox/lightbox2/js/script.js', array('jquery'));
448
- wp_register_style('lightbox2_stylesheet', WP_PLUGIN_URL.'/modula-best-grid-gallery/lightbox/lightbox2/css/style.css');
449
  }
450
 
451
  //Admin Section - register scripts and styles
@@ -718,39 +719,39 @@ if (!class_exists("ModulaLite"))
718
  $id = isset($_POST['ftg_gallery_edit']) ? intval($_POST['ftg_gallery_edit']) : 0;
719
 
720
  $data = array(
721
- 'name' => $galleryName,
722
- 'slug' => $slug,
723
- 'description' => $galleryDescription,
724
- 'lightbox' => $lightbox,
725
- 'img_size' => intval($_POST['tg_img_size']),
726
- 'hasResizedImages' => true,
727
- 'wp_field_caption' => $wp_field_caption,
728
- 'wp_field_title' => $wp_field_title,
729
- 'margin' => $margin,
730
- 'randomFactor' => $_POST['tg_randomFactor'],
731
- 'shuffle' => $shuffle,
732
- 'enableTwitter' => $enableTwitter,
733
- 'enableFacebook' => $enableFacebook,
734
- 'enableGplus' => $enableGplus,
735
- 'enablePinterest' => $enablePinterest,
736
- 'captionColor' => $captionColor,
737
- 'hoverEffect' => $hoverEffect,
738
- 'borderSize' => $borderSize,
739
- 'loadedScale' => $loadedScale,
740
- 'loadedHSlide' => $loadedHSlide,
741
- 'loadedVSlide' => $loadedVSlide,
742
- 'loadedRotate' => $loadedRotate,
743
- 'socialIconColor' => $socialIconColor,
744
- 'captionFontSize' => $captionFontSize,
745
- 'titleFontSize' => $titleFontSize,
746
- 'borderColor' => $borderColor,
747
- 'borderRadius' => $borderRadius,
748
- 'shadowSize' => $shadowSize,
749
- 'shadowColor' => $shadowColor,
750
- 'width' => $width,
751
- 'height' => $height,
752
- 'style' => $style,
753
- 'script' => $script
754
  );
755
 
756
  header("Content-type: application/json");
4
  Plugin URI: http://modula.greentreelabs.net
5
  Description: The Most Creative Grid Wordpress Gallery.
6
  Author: GreenTreeLabs
7
+ Version: 1.1.6
8
  Author URI: http://modula.greentreelabs.net
9
  */
10
 
20
  {
21
  private $loadedData;
22
 
23
+ private $version = "1.1.6";
24
+
25
  private $defaultValues = array(
26
  'width' => 100,
27
  'height' => 800,
110
 
111
  function define_hover_effects()
112
  {
 
113
  $this->hoverEffects[] = new ModulaLiteHoverEffect('None', 'none', false, false, 0);
114
  $this->hoverEffects[] = new ModulaLiteHoverEffect('Pufrobo', 'pufrobo', true, true, 4);
115
  $this->hoverEffects[] = new ModulaLiteHoverEffect('Fluid Up', '', true, true, 0);
439
  wp_enqueue_script('modula');
440
 
441
 
442
+ wp_register_style('modula_stylesheet', WP_PLUGIN_URL . '/modula-best-grid-gallery/scripts/modula.css');
443
  wp_enqueue_style('modula_stylesheet');
444
 
445
+ wp_register_style('effects_stylesheet', WP_PLUGIN_URL . '/modula-best-grid-gallery/scripts/effects.css', null, $this->version);
446
  wp_enqueue_style('effects_stylesheet');
447
 
448
+ wp_register_script('lightbox2_script', WP_PLUGIN_URL . '/modula-best-grid-gallery/lightbox/lightbox2/js/script.js', array('jquery'));
449
+ wp_register_style('lightbox2_stylesheet', WP_PLUGIN_URL . '/modula-best-grid-gallery/lightbox/lightbox2/css/style.css');
450
  }
451
 
452
  //Admin Section - register scripts and styles
719
  $id = isset($_POST['ftg_gallery_edit']) ? intval($_POST['ftg_gallery_edit']) : 0;
720
 
721
  $data = array(
722
+ 'name' => $galleryName,
723
+ 'slug' => $slug,
724
+ 'description' => $galleryDescription,
725
+ 'lightbox' => $lightbox,
726
+ 'img_size' => intval($_POST['tg_img_size']),
727
+ 'hasResizedImages' => true,
728
+ 'wp_field_caption' => $wp_field_caption,
729
+ 'wp_field_title' => $wp_field_title,
730
+ 'margin' => $margin,
731
+ 'randomFactor' => $_POST['tg_randomFactor'],
732
+ 'shuffle' => $shuffle,
733
+ 'enableTwitter' => $enableTwitter,
734
+ 'enableFacebook' => $enableFacebook,
735
+ 'enableGplus' => $enableGplus,
736
+ 'enablePinterest' => $enablePinterest,
737
+ 'captionColor' => $captionColor,
738
+ 'hoverEffect' => $hoverEffect,
739
+ 'borderSize' => $borderSize,
740
+ 'loadedScale' => $loadedScale,
741
+ 'loadedHSlide' => $loadedHSlide,
742
+ 'loadedVSlide' => $loadedVSlide,
743
+ 'loadedRotate' => $loadedRotate,
744
+ 'socialIconColor' => $socialIconColor,
745
+ 'captionFontSize' => $captionFontSize,
746
+ 'titleFontSize' => $titleFontSize,
747
+ 'borderColor' => $borderColor,
748
+ 'borderRadius' => $borderRadius,
749
+ 'shadowSize' => $shadowSize,
750
+ 'shadowColor' => $shadowColor,
751
+ 'width' => $width,
752
+ 'height' => $height,
753
+ 'style' => $style,
754
+ 'script' => $script
755
  );
756
 
757
  header("Content-type: application/json");
README.txt CHANGED
@@ -1,6 +1,6 @@
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.6.1
6
  Stable tag: trunk
@@ -49,7 +49,7 @@ 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
- Now you can also import your existing galleries using our 2 steps import wizard.
53
 
54
  == Installation ==
55
  = For automatic installation: =
@@ -73,6 +73,31 @@ The simplest way to install is to click on \'Plugins\' then \'Add\' and type \'M
73
  4. Login to your website and go to the Plugins section of your admin panel.
74
  5. Look for \"Modula\" and click Activate.
75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  == Screenshots ==
77
 
78
  1. Gallery with Appear effect
@@ -85,6 +110,9 @@ The simplest way to install is to click on \'Plugins\' then \'Add\' and type \'M
85
 
86
  == Changelog ==
87
 
 
 
 
88
  = 1.1.5 =
89
  * Fixed issue on admin panel when images are too tall
90
 
1
  === Gallery - A WordPress Modula Gallery ===
2
  Contributors: GreenTreeLabs
3
+ Tags: gallery, grid gallery, lightbox, share images, masonry, masonry gallery, envira, envira gallery, nextgen, nextgen gallery
4
  Requires at least: 4.0
5
  Tested up to: 4.6.1
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
+ If you're frustated because your current galleries looks boring and too standard then you can use the importer which is included with Modula. The importer is currently able to import Envira and NextGen galleries.
53
 
54
  == Installation ==
55
  = For automatic installation: =
73
  4. Login to your website and go to the Plugins section of your admin panel.
74
  5. Look for \"Modula\" and click Activate.
75
 
76
+ == Frequently Asked Questions ==
77
+
78
+ = The layout doesnt' look correct =
79
+
80
+ Check the console of the browser and look if you see any error like: "Uncaught TypeError: undefined is not a function"
81
+ This errors means that the browser doesn't know the Modula JavaScript plugin, most of the time the problem is caused by a wrong jQuery inclusion by the theme or another plugin.
82
+
83
+ = Why does some image look blurry ? =
84
+
85
+ If you get blurry and pixellated images then you need to raise the "Minimum image width" parameter inside the "General" section.
86
+
87
+ = I want to use another lightbox instead of the provided one =
88
+
89
+ The PRO license bundles 6 different lightboxes. However you can use any other lightbox you want also with the Lite license. If you have installed a lightbox plugin then you just need to select "Direct link to image" in the "Lightbox" settings.
90
+
91
+ = How can I get support? =
92
+
93
+ Free support is included only with a PRO license: http://modula.greentreelabs.net/#buy
94
+
95
+ = How can I say thanks? =
96
+
97
+ * Just recommend our plugin to your friends! or
98
+ * Like and share our [Facebook page](https://www.facebook.com/greentreelabs "Facebook fan page")
99
+
100
+
101
  == Screenshots ==
102
 
103
  1. Gallery with Appear effect
110
 
111
  == Changelog ==
112
 
113
+ = 1.1.6 =
114
+ * Bug fix (impossible to select effect "None")
115
+
116
  = 1.1.5 =
117
  * Fixed issue on admin panel when images are too tall
118
 
admin/edit-gallery.php CHANGED
@@ -176,17 +176,16 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die(_e('Y
176
  <div class="text">
177
  <label class="effect-description"> <?php print $data['description']; ?> </label>
178
  <select name="tg_hoverEffect" class="select-effect">
179
- <?php $hoverEffectIdx = 0 ?>
180
- <?php foreach($this->hoverEffects as $effect) : ?>
181
- <?php if ($hoverEffectIdx++ == 1) : ?>
182
- <optgroup label="Buy a PRO license to unlock all hover effects">
183
- <option disabled></option>
184
- <?php endif ?>
185
- <option <?php print $effect->code != "pufrobo" ? "disabled" : null ?> <?php print ($gallery->hoverEffect == strtolower($effect->code) ? "selected" : null) ?> value="<?php print $effect->code ?>"><?php print $effect->name ?></option>
186
- <?php endforeach ?>
187
  </optgroup>
188
  </select>
189
- <a class="all-effects" href="http://modula.greentreelabs.net/all-effects.html" target="_blank"><i class="mdi mdi-comment-alert-outline"></i> Click to see all available effects</a>
190
 
191
  <!-- all effects preview -->
192
  <div class="preview modula">
@@ -224,7 +223,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die(_e('Y
224
  <input type="hidden" name="ftg_hoverColor" value="#000">
225
  <input type="hidden" name="ftg_hoverOpacity" value="#.8">
226
  <div class="pro-cell">
227
- <a href="http://modula.greentreelabs.net/#buy" target="_blank">Buy a PRO license to unlock <strong>Hover background color</strong> and <strong>Hover opacity</strong> <i class="mdi-content-send
228
  "></i></a>
229
  </div>
230
  </div>
176
  <div class="text">
177
  <label class="effect-description"> <?php print $data['description']; ?> </label>
178
  <select name="tg_hoverEffect" class="select-effect">
179
+ <?php $hoverEffectIdx = 0 ?>
180
+ <option value="none">None</option>
181
+ <optgroup label="Buy a PRO license to unlock all hover effects">
182
+ <option disabled></option>
183
+ <?php foreach($this->hoverEffects as $effect) : ?>
184
+ <option <?php print $effect->code != "pufrobo" ? "disabled" : null ?> <?php print ($gallery->hoverEffect == strtolower($effect->code) ? "selected" : null) ?> value="<?php print $effect->code ?>"><?php print $effect->name ?></option>
185
+ <?php endforeach ?>
 
186
  </optgroup>
187
  </select>
188
+ <a class="all-effects" href="http://modula.greentreelabs.net/demo/effects/appear/?utm_source=modulalite_inst&utm_campaign=Modula%20Lite&utm_medium=banner&utm_term=all%20effects" target="_blank"><i class="mdi mdi-comment-alert-outline"></i> Click to see all available effects</a>
189
 
190
  <!-- all effects preview -->
191
  <div class="preview modula">
223
  <input type="hidden" name="ftg_hoverColor" value="#000">
224
  <input type="hidden" name="ftg_hoverOpacity" value="#.8">
225
  <div class="pro-cell">
226
+ <a href="http://modula.greentreelabs.net/?utm_source=modulalite_inst&utm_medium=banner&utm_campaign=Modula%20Lite#buy" target="_blank">Buy a PRO license to unlock <strong>Hover background color</strong> and <strong>Hover opacity</strong> <i class="mdi-content-send
227
  "></i></a>
228
  </div>
229
  </div>
lib/gallery-class.php CHANGED
@@ -288,14 +288,14 @@ if (!class_exists( "ModulaLiteFE" )) {
288
  $title = in_array($this->gallery->lightbox, array('prettyphoto', 'fancybox', 'swipebox', 'lightbox2')) ? "title" : "data-title";
289
  $rel = $this->gallery->lightbox == "prettyphoto" ? "prettyPhoto[jtg-$this->id$rid]" : "jtg-$this->id$rid";
290
 
291
- $hoverEffect = $this->getHoverEffect("pufrobo");
292
 
293
- if($image->title == "" && $image->description == "" &&
294
  !$this->gallery->enableTwitter && !$this->gallery->enableFacebook &&
295
  !$this->gallery->enablePinterest & !$this->gallery->enableGplus)
296
  {
297
  $hoverEffect = $this->getHoverEffect('none');
298
- }
299
 
300
  $hasTitle = empty($image->title) ? 'notitle' : '';
301
 
288
  $title = in_array($this->gallery->lightbox, array('prettyphoto', 'fancybox', 'swipebox', 'lightbox2')) ? "title" : "data-title";
289
  $rel = $this->gallery->lightbox == "prettyphoto" ? "prettyPhoto[jtg-$this->id$rid]" : "jtg-$this->id$rid";
290
 
291
+ $hoverEffect = $this->getHoverEffect($this->gallery->hoverEffect);
292
 
293
+ /*if(empty($image->title) && empty($image->description) &&
294
  !$this->gallery->enableTwitter && !$this->gallery->enableFacebook &&
295
  !$this->gallery->enablePinterest & !$this->gallery->enableGplus)
296
  {
297
  $hoverEffect = $this->getHoverEffect('none');
298
+ }*/
299
 
300
  $hasTitle = empty($image->title) ? 'notitle' : '';
301
 
scripts/effects.css CHANGED
@@ -35,7 +35,7 @@
35
  /***** pufrobo *****/
36
  /*---------------*/
37
 
38
- .modula .items .effect-pufrobo .jtg-social {
39
  opacity: 0;
40
  transition: opacity 0.1s;
41
  right:30px;
@@ -45,11 +45,11 @@
45
  transition:all .3s;
46
  }
47
 
48
- .modula .items .effect-pufrobo:hover .jtg-social {
49
  opacity: 1;
50
  }
51
 
52
- .modula .items .effect-pufrobo .jtg-social a:last-of-type {
53
  margin-right: 0;
54
  }
55
 
35
  /***** pufrobo *****/
36
  /*---------------*/
37
 
38
+ .modula .items .jtg-social {
39
  opacity: 0;
40
  transition: opacity 0.1s;
41
  right:30px;
45
  transition:all .3s;
46
  }
47
 
48
+ .modula .items .jtg-social {
49
  opacity: 1;
50
  }
51
 
52
+ .modula .items .jtg-social a:last-of-type {
53
  margin-right: 0;
54
  }
55