Gallery – Photo Gallery – Image Gallery - Version 2.3.4

Version Description

Download this release

Release Info

Developer giucu91
Plugin Icon wp plugin Gallery – Photo Gallery – Image Gallery
Version 2.3.4
Comparing to
See all releases

Code changes from version 2.3.3 to 2.3.4

Modula.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: https://wp-modula.com/
5
  * Description: Modula is the most powerful, user-friendly WordPress gallery plugin. Add galleries, masonry grids and more in a few clicks.
6
  * Author: MachoThemes
7
- * Version: 2.3.3
8
  * Author URI: https://www.machothemes.com/
9
  * License: GPLv3 or later
10
  * License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -44,7 +44,7 @@
44
  * @since 2.0.2
45
  */
46
 
47
- define( 'MODULA_LITE_VERSION' , '2.3.3' );
48
  define( 'MODULA_PATH' , plugin_dir_path( __FILE__ ) );
49
  define( 'MODULA_URL' , plugin_dir_url( __FILE__ ) );
50
  defined( 'MODULA_PRO_STORE_URL' ) || define( 'MODULA_PRO_STORE_URL' , 'https://wp-modula.com' );
4
  * Plugin URI: https://wp-modula.com/
5
  * Description: Modula is the most powerful, user-friendly WordPress gallery plugin. Add galleries, masonry grids and more in a few clicks.
6
  * Author: MachoThemes
7
+ * Version: 2.3.4
8
  * Author URI: https://www.machothemes.com/
9
  * License: GPLv3 or later
10
  * License URI: http://www.gnu.org/licenses/gpl-3.0.html
44
  * @since 2.0.2
45
  */
46
 
47
+ define( 'MODULA_LITE_VERSION' , '2.3.4' );
48
  define( 'MODULA_PATH' , plugin_dir_path( __FILE__ ) );
49
  define( 'MODULA_URL' , plugin_dir_url( __FILE__ ) );
50
  defined( 'MODULA_PRO_STORE_URL' ) || define( 'MODULA_PRO_STORE_URL' , 'https://wp-modula.com' );
README.txt CHANGED
@@ -4,7 +4,7 @@ Tags: best gallery plugin, image gallery, photo gallery, responsive gallery, wor
4
  Requires at least: 4.6
5
  Tested up to: 5.4
6
  Requires PHP: 5.6
7
- Stable tag: 2.3.3
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -21,7 +21,6 @@ Modula **fixes all of the above** and more. Read on to see what we're all about.
21
  = Unlock even more features with Modula Pro =
22
 
23
  * [Learn more about Modula Pro.](https://wp-modula.com/pricing?utm_source=wordpress.org&utm_medium=web&utm_campaign=Modula%20Lite)**
24
- * Unlimited images: unlock the ability to add more than 20 images per gallery.
25
  * [Video Extension](https://wp-modula.com/demo/video-gallery/?utm_source=wordpress.org&utm_medium=web&utm_campaign=Modula%20Lite): combine videos with images in your galleries. Works with YouTube, Vimeo and self-hosted videos.
26
  * [Slideshow](https://wp-modula.com/demo/modula-slideshow?utm_source=wordpress.org&utm_medium=web&utm_campaign=Modula%20Lite): convert your gallery's lightbox view into a stunning slideshow.
27
  * [Password Protect]((https://wp-modula.com/demo/password-protection?utm_source=wordpress.org&utm_medium=web&utm_campaign=Modula%20Lite)): block access to your galleries by using a password. Great for giving access to your clients to specific gallery pages.
4
  Requires at least: 4.6
5
  Tested up to: 5.4
6
  Requires PHP: 5.6
7
+ Stable tag: 2.3.4
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
21
  = Unlock even more features with Modula Pro =
22
 
23
  * [Learn more about Modula Pro.](https://wp-modula.com/pricing?utm_source=wordpress.org&utm_medium=web&utm_campaign=Modula%20Lite)**
 
24
  * [Video Extension](https://wp-modula.com/demo/video-gallery/?utm_source=wordpress.org&utm_medium=web&utm_campaign=Modula%20Lite): combine videos with images in your galleries. Works with YouTube, Vimeo and self-hosted videos.
25
  * [Slideshow](https://wp-modula.com/demo/modula-slideshow?utm_source=wordpress.org&utm_medium=web&utm_campaign=Modula%20Lite): convert your gallery's lightbox view into a stunning slideshow.
26
  * [Password Protect]((https://wp-modula.com/demo/password-protection?utm_source=wordpress.org&utm_medium=web&utm_campaign=Modula%20Lite)): block access to your galleries by using a password. Great for giving access to your clients to specific gallery pages.
assets/js/admin/wp-modula-items.js CHANGED
@@ -3,7 +3,6 @@ wp.Modula = 'undefined' === typeof( wp.Modula ) ? {} : wp.Modula;
3
  (function( $, modula ){
4
 
5
  var modulaItemsCollection = Backbone.Collection.extend({
6
- maxFiles: 20,
7
  updateInterval: false,
8
 
9
  initialize: function() {
@@ -28,13 +27,7 @@ wp.Modula = 'undefined' === typeof( wp.Modula ) ? {} : wp.Modula;
28
  },
29
 
30
  addItem: function( model ) {
31
-
32
- if ( this.length > 19 ) {
33
- var removedItem = this.at( 0 );
34
- removedItem.delete();
35
- }
36
  this.add( model );
37
-
38
  },
39
 
40
  });
3
  (function( $, modula ){
4
 
5
  var modulaItemsCollection = Backbone.Collection.extend({
 
6
  updateInterval: false,
7
 
8
  initialize: function() {
27
  },
28
 
29
  addItem: function( model ) {
 
 
 
 
 
30
  this.add( model );
 
31
  },
32
 
33
  });
assets/js/admin/wp-modula-upload.js CHANGED
@@ -142,7 +142,7 @@ wp.Modula = 'undefined' === typeof( wp.Modula ) ? {} : wp.Modula;
142
  this.set( 'library', wp.media.query() );
143
  }
144
 
145
- if ( ! ( selection instanceof modula.upload['selection'] ) ) {
146
  props = selection;
147
 
148
  if ( ! props ) {
@@ -150,7 +150,7 @@ wp.Modula = 'undefined' === typeof( wp.Modula ) ? {} : wp.Modula;
150
  props = _.omit( props, 'orderby', 'query' );
151
  }
152
 
153
- this.set( 'selection', new modula.upload['selection']( null, {
154
  multiple: this.get('multiple'),
155
  props: props
156
  }) );
@@ -204,7 +204,6 @@ wp.Modula = 'undefined' === typeof( wp.Modula ) ? {} : wp.Modula;
204
  container: $( '#modula-uploader-container' ),
205
  browser: $( '#modula-uploader-browser' ),
206
  dropzone: $( '#modula-uploader-container' ),
207
- max_files: 20,
208
  },
209
  dropzone: $( '#modula-dropzone-container' ),
210
  progressBar: $( '.modula-progress-bar' ),
@@ -370,11 +369,7 @@ wp.Modula = 'undefined' === typeof( wp.Modula ) ? {} : wp.Modula;
370
  var modulaGalleryObject = this;
371
 
372
  var response = JSON.parse( info.response );
373
- if ( wp.Modula.Items.length < 20 ) {
374
- modulaGalleryObject.generateSingleImage( response['data'] );
375
- }else{
376
- modulaGalleryObject.limitExceeded = true;
377
- }
378
 
379
  },
380
 
@@ -387,12 +382,6 @@ wp.Modula = 'undefined' === typeof( wp.Modula ) ? {} : wp.Modula;
387
  modulaGalleryObject.containerUploader.removeClass( 'show-progress' );
388
  }, 1000 );
389
 
390
- if ( modulaGalleryObject.limitExceeded ) {
391
- modulaGalleryObject.limitExceeded = false;
392
- wp.media.frames.modula.open();
393
- wp.media.frames.modula.trigger( 'modula:show-error', {'message' : modulaHelper.strings.limitExceeded } );
394
- }
395
-
396
  },
397
 
398
  show: function() {
142
  this.set( 'library', wp.media.query() );
143
  }
144
 
145
+ if ( ! selection ) {
146
  props = selection;
147
 
148
  if ( ! props ) {
150
  props = _.omit( props, 'orderby', 'query' );
151
  }
152
 
153
+ this.set( 'selection', new wp.media.model.Selection( null, {
154
  multiple: this.get('multiple'),
155
  props: props
156
  }) );
204
  container: $( '#modula-uploader-container' ),
205
  browser: $( '#modula-uploader-browser' ),
206
  dropzone: $( '#modula-uploader-container' ),
 
207
  },
208
  dropzone: $( '#modula-dropzone-container' ),
209
  progressBar: $( '.modula-progress-bar' ),
369
  var modulaGalleryObject = this;
370
 
371
  var response = JSON.parse( info.response );
372
+ modulaGalleryObject.generateSingleImage( response['data'] );
 
 
 
 
373
 
374
  },
375
 
382
  modulaGalleryObject.containerUploader.removeClass( 'show-progress' );
383
  }, 1000 );
384
 
 
 
 
 
 
 
385
  },
386
 
387
  show: function() {
changelog.txt CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  = 2.3.3 - 17/06/2020 =
2
  Fixed Importing Envira Galleries image size, custom dimensions and gutter.
3
  Social icons are now disabled by default when creating a new gallery.
1
+ = 2.3.4 - 11/08/2020 =
2
+ Small fixes
3
+
4
  = 2.3.3 - 17/06/2020 =
5
  Fixed Importing Envira Galleries image size, custom dimensions and gutter.
6
  Social icons are now disabled by default when creating a new gallery.
includes/admin/tabs/about.php CHANGED
@@ -18,6 +18,7 @@ $issues = array(
18
  esc_html__( 'Preparing Modula for Modula Download, Modula Exif and Modula Zoom add-ons.', 'modula-best-grid-gallery' ),
19
  )
20
  );
 
21
  ?>
22
  <div id="modula-about-page" class="row modula-about-row">
23
  <div class="modula-about__container">
@@ -30,18 +31,18 @@ $issues = array(
30
  </div>
31
  </div>
32
  <div class="modula-about-content">
33
- <?php if (!empty($issues)) { ?>
34
 
35
- <h2><?php printf(esc_html__('Version %s addressed %s bugs and implemented %s features.', 'modula-best-grid-gallery'), MODULA_LITE_VERSION, count( $issues['fix']) ,count($issues['feature'])); ?></h2>
36
- <ul class="modula-about-list">
37
- <?php
38
- foreach ($issues as $key => $iss) {
39
- foreach ($iss as $is) {
40
- echo "<li class='$key'>$is</li>";
41
- }
42
  }
43
- ?>
44
- </ul>
 
45
 
46
  <?php } ?>
47
  </div>
18
  esc_html__( 'Preparing Modula for Modula Download, Modula Exif and Modula Zoom add-ons.', 'modula-best-grid-gallery' ),
19
  )
20
  );
21
+ $issues = array();
22
  ?>
23
  <div id="modula-about-page" class="row modula-about-row">
24
  <div class="modula-about__container">
31
  </div>
32
  </div>
33
  <div class="modula-about-content">
 
34
 
35
+ <h2><?php printf(esc_html__('Version %s addressed small fixes.', 'modula-best-grid-gallery'), MODULA_LITE_VERSION ); ?></h2>
36
+ <?php if (!empty($issues)) { ?>
37
+ <ul class="modula-about-list">
38
+ <?php
39
+ foreach ($issues as $key => $iss) {
40
+ foreach ($iss as $is) {
41
+ echo "<li class='$key'>$is</li>";
42
  }
43
+ }
44
+ ?>
45
+ </ul>
46
 
47
  <?php } ?>
48
  </div>
includes/class-modula.php CHANGED
@@ -137,7 +137,7 @@ class Modula {
137
  'items' => array(),
138
  'settings' => array(),
139
  'strings' => array(
140
- 'limitExceeded' => sprintf( __( 'You excedeed the limit of 20 photos. You can remove an image or %supgrade to pro%s', 'modula-best-grid-gallery' ), '<a href="#" target="_blank">', '</a>' ),
141
  ),
142
  'id' => $post_id,
143
  '_wpnonce' => wp_create_nonce( 'modula-ajax-save' ),
137
  'items' => array(),
138
  'settings' => array(),
139
  'strings' => array(
140
+ 'limitExceeded' => '',
141
  ),
142
  'id' => $post_id,
143
  '_wpnonce' => wp_create_nonce( 'modula-ajax-save' ),
includes/migrate/tabs/modula-importer-tab.php CHANGED
@@ -116,7 +116,6 @@ if ($sources) {
116
  <div>
117
  <?php
118
  $upsell = '<div class="modula-importer-upsell-wrapper">';
119
- $upsell .= esc_html__('By upgrading to the PRO version of Modula, you can remove the 20 images/gallery limit. Every PRO purchase includes several extensions.', 'modula-best-grid-gallery');
120
  $upsell .= '<div class="modula-importer-upsell-buttons">';
121
  $upsell .= '<a href="https://wp-modula.com/pricing/?utm_source=lite-vs-pro&utm_campaign=importer#lite-vs-pro" class="button button-secondary" target="_blank">' . esc_html__('LITE vs PRO', 'modula-best-grid-gallery') . '</a>';
122
  $upsell .= '<a href="https://wp-modula.com/pricing/?utm_source=upsell&utm_campaign=importer" class="button button-primary" target="_blank">' . esc_html__('Upgrade to PRO', 'modula-best-grid-gallery') . '</a>';
116
  <div>
117
  <?php
118
  $upsell = '<div class="modula-importer-upsell-wrapper">';
 
119
  $upsell .= '<div class="modula-importer-upsell-buttons">';
120
  $upsell .= '<a href="https://wp-modula.com/pricing/?utm_source=lite-vs-pro&utm_campaign=importer#lite-vs-pro" class="button button-secondary" target="_blank">' . esc_html__('LITE vs PRO', 'modula-best-grid-gallery') . '</a>';
121
  $upsell .= '<a href="https://wp-modula.com/pricing/?utm_source=upsell&utm_campaign=importer" class="button button-primary" target="_blank">' . esc_html__('Upgrade to PRO', 'modula-best-grid-gallery') . '</a>';