NextGEN Gallery – WordPress Gallery Plugin - Version 3.0.13

Version Description

  • 10.11.2018 =
  • Changed: Added settings for basic slideshow
Download this release

Release Info

Developer photocrati
Plugin Icon 128x128 NextGEN Gallery – WordPress Gallery Plugin
Version 3.0.13
Comparing to
See all releases

Code changes from version 3.0.11 to 3.0.13

changelog.txt CHANGED
@@ -1,7 +1,7 @@
1
  NextGEN Gallery
2
  by Imagely
3
 
4
- = V3.0.11 - 10.10.2018 =
5
  * Changed: Added settings for basic slideshow
6
 
7
  = V3.0.9 - 10.02.2018 =
1
  NextGEN Gallery
2
  by Imagely
3
 
4
+ = V3.0.13 - 10.11.2018 =
5
  * Changed: Added settings for basic slideshow
6
 
7
  = V3.0.9 - 10.02.2018 =
nggallery.php CHANGED
@@ -4,7 +4,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
4
  /**
5
  * Plugin Name: NextGEN Gallery
6
  * Description: The most popular gallery plugin for WordPress and one of the most popular plugins of all time with over 22 million downloads.
7
- * Version: 3.0.11
8
  * Author: Imagely
9
  * Plugin URI: https://www.imagely.com/wordpress-gallery-plugin/nextgen-gallery/
10
  * Author URI: https://www.imagely.com
@@ -663,7 +663,7 @@ class C_NextGEN_Bootstrap
663
  define('NGG_PRODUCT_URL', path_join(str_replace("\\", '/', NGG_PLUGIN_URL), 'products'));
664
  define('NGG_MODULE_URL', path_join(str_replace("\\", '/', NGG_PRODUCT_URL), 'photocrati_nextgen/modules'));
665
  define('NGG_PLUGIN_STARTED_AT', microtime());
666
- define('NGG_PLUGIN_VERSION', '3.0.11');
667
 
668
  if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG)
669
  define('NGG_SCRIPT_VERSION', (string)mt_rand(0, mt_getrandmax()));
4
  /**
5
  * Plugin Name: NextGEN Gallery
6
  * Description: The most popular gallery plugin for WordPress and one of the most popular plugins of all time with over 22 million downloads.
7
+ * Version: 3.0.13
8
  * Author: Imagely
9
  * Plugin URI: https://www.imagely.com/wordpress-gallery-plugin/nextgen-gallery/
10
  * Author URI: https://www.imagely.com
663
  define('NGG_PRODUCT_URL', path_join(str_replace("\\", '/', NGG_PLUGIN_URL), 'products'));
664
  define('NGG_MODULE_URL', path_join(str_replace("\\", '/', NGG_PRODUCT_URL), 'photocrati_nextgen/modules'));
665
  define('NGG_PLUGIN_STARTED_AT', microtime());
666
+ define('NGG_PLUGIN_VERSION', '3.0.13');
667
 
668
  if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG)
669
  define('NGG_SCRIPT_VERSION', (string)mt_rand(0, mt_getrandmax()));
products/photocrati_nextgen/modules/nextgen_basic_gallery/module.nextgen_basic_gallery.php CHANGED
@@ -37,7 +37,7 @@ class M_NextGen_Basic_Gallery extends C_Base_Module
37
  NGG_BASIC_GALLERY,
38
  'NextGEN Basic Gallery',
39
  "Provides NextGEN Gallery's basic thumbnail/slideshow integrated gallery",
40
- '3.0.0.11',
41
  'https://www.imagely.com/wordpress-gallery-plugin/nextgen-gallery/',
42
  'Imagely',
43
  'https://www.imagely.com'
37
  NGG_BASIC_GALLERY,
38
  'NextGEN Basic Gallery',
39
  "Provides NextGEN Gallery's basic thumbnail/slideshow integrated gallery",
40
+ '3.0.13',
41
  'https://www.imagely.com/wordpress-gallery-plugin/nextgen-gallery/',
42
  'Imagely',
43
  'https://www.imagely.com'
products/photocrati_nextgen/modules/nextgen_basic_gallery/package.module.nextgen_basic_gallery.php CHANGED
@@ -80,12 +80,12 @@ class A_NextGen_Basic_Gallery_Mapper extends Mixin
80
  $this->object->_set_default_value($entity, 'settings', 'thumbnail_link_text', $settings->galTextGallery);
81
  $this->object->_set_default_value($entity, 'settings', 'template', '');
82
  $this->object->_set_default_value($entity, 'settings', 'display_view', 'default');
83
- $this->object->_set_default_value($entity, 'settings', 'slick_autoplay', 0);
84
- $this->object->_set_default_value($entity, 'settings', 'slick_pausehover', 0);
85
- $this->object->_set_default_value($entity, 'settings', 'slick_arrows', 1);
86
- $this->object->_set_default_value($entity, 'settings', 'slick_interval', 3000);
87
- $this->object->_set_default_value($entity, 'settings', 'slick_speed', 300);
88
- $this->object->_set_default_value($entity, 'settings', 'slick_fade', 0);
89
  // Part of the pro-modules
90
  $this->object->_set_default_value($entity, 'settings', 'ngg_triggers_display', 'never');
91
  }
@@ -310,7 +310,7 @@ class A_NextGen_Basic_Slideshow_Form extends Mixin_Display_Type_Form
310
  */
311
  function _get_field_names()
312
  {
313
- return array('nextgen_basic_slideshow_gallery_dimensions', 'nextgen_basic_slideshow_slick_autoplay', 'nextgen_basic_slideshow_slick_pausehover', 'nextgen_basic_slideshow_slick_arrows', 'nextgen_basic_slideshow_slick_fade', 'nextgen_basic_slideshow_slick_interval', 'nextgen_basic_slideshow_slick_speed', 'nextgen_basic_slideshow_show_thumbnail_link', 'nextgen_basic_slideshow_thumbnail_link_text', 'display_view');
314
  }
315
  /**
316
  * Renders the autoplay field for new Slick.js slideshow
@@ -318,9 +318,9 @@ class A_NextGen_Basic_Slideshow_Form extends Mixin_Display_Type_Form
318
  * @param C_Display_Type $display_type
319
  * @return string
320
  */
321
- function _render_nextgen_basic_slideshow_slick_autoplay_field($display_type)
322
  {
323
- return $this->_render_radio_field($display_type, 'slick_autoplay', __('Autoplay?', 'nggallery'), $display_type->settings['slick_autoplay']);
324
  }
325
  /**
326
  * Renders the Pause on Hover field for new Slick.js slideshow
@@ -328,9 +328,9 @@ class A_NextGen_Basic_Slideshow_Form extends Mixin_Display_Type_Form
328
  * @param C_Display_Type $display_type
329
  * @return string
330
  */
331
- function _render_nextgen_basic_slideshow_slick_pausehover_field($display_type)
332
  {
333
- return $this->_render_radio_field($display_type, 'slick_pausehover', __('Pause on Hover?', 'nggallery'), $display_type->settings['slick_pausehover']);
334
  }
335
  /**
336
  * Renders the arrows field for new Slick.js slideshow
@@ -338,9 +338,9 @@ class A_NextGen_Basic_Slideshow_Form extends Mixin_Display_Type_Form
338
  * @param C_Display_Type $display_type
339
  * @return string
340
  */
341
- function _render_nextgen_basic_slideshow_slick_arrows_field($display_type)
342
  {
343
- return $this->_render_radio_field($display_type, 'slick_arrows', __('Show Arrows?', 'nggallery'), $display_type->settings['slick_arrows']);
344
  }
345
  /**
346
  * Renders the effect field for new Slick.js slideshow
@@ -348,9 +348,9 @@ class A_NextGen_Basic_Slideshow_Form extends Mixin_Display_Type_Form
348
  * @param C_Display_Type $display_type
349
  * @return string
350
  */
351
- function _render_nextgen_basic_slideshow_slick_fade_field($display_type)
352
  {
353
- return $this->_render_select_field($display_type, 'slick_fade', __('Transition Style', 'nggallery'), array(0 => 'Slide', 1 => 'Fade'), $display_type->settings['slick_fade'], '', FALSE);
354
  }
355
  /**
356
  * Renders the interval field for new Slick.js slideshow
@@ -358,9 +358,9 @@ class A_NextGen_Basic_Slideshow_Form extends Mixin_Display_Type_Form
358
  * @param C_Display_Type $display_type
359
  * @return string
360
  */
361
- function _render_nextgen_basic_slideshow_slick_interval_field($display_type)
362
  {
363
- return $this->_render_number_field($display_type, 'slick_interval', __('Interval', 'nggallery'), $display_type->settings['slick_interval'], '', FALSE, __('Milliseconds', 'nggallery'), 1);
364
  }
365
  /**
366
  * Renders the interval field for new Slick.js slideshow
@@ -368,9 +368,9 @@ class A_NextGen_Basic_Slideshow_Form extends Mixin_Display_Type_Form
368
  * @param C_Display_Type $display_type
369
  * @return string
370
  */
371
- function _render_nextgen_basic_slideshow_slick_speed_field($display_type)
372
  {
373
- return $this->_render_number_field($display_type, 'slick_speed', __('Transition Speed', 'nggallery'), $display_type->settings['slick_speed'], '', FALSE, __('Milliseconds', 'nggallery'), 1);
374
  }
375
  function _render_nextgen_basic_slideshow_gallery_dimensions_field($display_type)
376
  {
80
  $this->object->_set_default_value($entity, 'settings', 'thumbnail_link_text', $settings->galTextGallery);
81
  $this->object->_set_default_value($entity, 'settings', 'template', '');
82
  $this->object->_set_default_value($entity, 'settings', 'display_view', 'default');
83
+ $this->object->_set_default_value($entity, 'settings', 'autoplay', 1);
84
+ $this->object->_set_default_value($entity, 'settings', 'pauseonhover', 1);
85
+ $this->object->_set_default_value($entity, 'settings', 'arrows', 0);
86
+ $this->object->_set_default_value($entity, 'settings', 'interval', 3000);
87
+ $this->object->_set_default_value($entity, 'settings', 'transition_speed', 300);
88
+ $this->object->_set_default_value($entity, 'settings', 'transition_style', 'fade');
89
  // Part of the pro-modules
90
  $this->object->_set_default_value($entity, 'settings', 'ngg_triggers_display', 'never');
91
  }
310
  */
311
  function _get_field_names()
312
  {
313
+ return array('nextgen_basic_slideshow_gallery_dimensions', 'nextgen_basic_slideshow_autoplay', 'nextgen_basic_slideshow_pauseonhover', 'nextgen_basic_slideshow_arrows', 'nextgen_basic_slideshow_transition_style', 'nextgen_basic_slideshow_interval', 'nextgen_basic_slideshow_transition_speed', 'nextgen_basic_slideshow_show_thumbnail_link', 'nextgen_basic_slideshow_thumbnail_link_text', 'display_view');
314
  }
315
  /**
316
  * Renders the autoplay field for new Slick.js slideshow
318
  * @param C_Display_Type $display_type
319
  * @return string
320
  */
321
+ function _render_nextgen_basic_slideshow_autoplay_field($display_type)
322
  {
323
+ return $this->_render_radio_field($display_type, 'autoplay', __('Autoplay?', 'nggallery'), $display_type->settings['autoplay']);
324
  }
325
  /**
326
  * Renders the Pause on Hover field for new Slick.js slideshow
328
  * @param C_Display_Type $display_type
329
  * @return string
330
  */
331
+ function _render_nextgen_basic_slideshow_pauseonhover_field($display_type)
332
  {
333
+ return $this->_render_radio_field($display_type, 'pauseonhover', __('Pause on Hover?', 'nggallery'), $display_type->settings['pauseonhover']);
334
  }
335
  /**
336
  * Renders the arrows field for new Slick.js slideshow
338
  * @param C_Display_Type $display_type
339
  * @return string
340
  */
341
+ function _render_nextgen_basic_slideshow_arrows_field($display_type)
342
  {
343
+ return $this->_render_radio_field($display_type, 'arrows', __('Show Arrows?', 'nggallery'), $display_type->settings['arrows']);
344
  }
345
  /**
346
  * Renders the effect field for new Slick.js slideshow
348
  * @param C_Display_Type $display_type
349
  * @return string
350
  */
351
+ function _render_nextgen_basic_slideshow_transition_style_field($display_type)
352
  {
353
+ return $this->_render_select_field($display_type, 'transition_style', __('Transition Style', 'nggallery'), array('slide' => 'Slide', 'fade' => 'Fade'), $display_type->settings['transition_style'], '', FALSE);
354
  }
355
  /**
356
  * Renders the interval field for new Slick.js slideshow
358
  * @param C_Display_Type $display_type
359
  * @return string
360
  */
361
+ function _render_nextgen_basic_slideshow_interval_field($display_type)
362
  {
363
+ return $this->_render_number_field($display_type, 'interval', __('Interval', 'nggallery'), $display_type->settings['interval'], '', FALSE, __('Milliseconds', 'nggallery'), 1);
364
  }
365
  /**
366
  * Renders the interval field for new Slick.js slideshow
368
  * @param C_Display_Type $display_type
369
  * @return string
370
  */
371
+ function _render_nextgen_basic_slideshow_transition_speed_field($display_type)
372
  {
373
+ return $this->_render_number_field($display_type, 'transition_speed', __('Transition Speed', 'nggallery'), $display_type->settings['transition_speed'], '', FALSE, __('Milliseconds', 'nggallery'), 1);
374
  }
375
  function _render_nextgen_basic_slideshow_gallery_dimensions_field($display_type)
376
  {
products/photocrati_nextgen/modules/nextgen_basic_gallery/static/slideshow/ngg_basic_slideshow.js CHANGED
@@ -7,16 +7,17 @@
7
  if (gallery.display_type === 'photocrati-nextgen_basic_slideshow') {
8
 
9
  var settings = gallery.display_settings;
 
10
 
11
  $('.ngg-galleryoverview.ngg-slideshow').slick({
12
- autoplay: Number(settings.slick_autoplay) ? true : false,
13
- arrows: Number(settings.slick_arrows) ? true : false,
14
  draggable: false,
15
  dots: false,
16
- fade: Number(settings.slick_fade) ? true : false,
17
- autoplaySpeed: settings.slick_interval,
18
- speed: settings.slick_speed,
19
- pauseOnHover: Number(settings.slick_pausehover) ? true : false
20
  });
21
 
22
  }
7
  if (gallery.display_type === 'photocrati-nextgen_basic_slideshow') {
8
 
9
  var settings = gallery.display_settings;
10
+ var fadeValue = (settings.transition_style == "fade") ? true : false;
11
 
12
  $('.ngg-galleryoverview.ngg-slideshow').slick({
13
+ autoplay: Number(settings.autoplay) ? true : false,
14
+ arrows: Number(settings.arrows) ? true : false,
15
  draggable: false,
16
  dots: false,
17
+ fade: fadeValue,
18
+ autoplaySpeed: settings.interval,
19
+ speed: settings.transition_speed,
20
+ pauseOnHover: Number(settings.pauseonhover) ? true : false
21
  });
22
 
23
  }
products/photocrati_nextgen/modules/nextgen_basic_gallery/static/slideshow/ngg_basic_slideshow.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){e(document).ready(function(){e.each(window.galleries,function(a,s){if("photocrati-nextgen_basic_slideshow"===s.display_type){var i=s.display_settings;e(".ngg-galleryoverview.ngg-slideshow").slick({autoplay:!!Number(i.slick_autoplay),arrows:!!Number(i.slick_arrows),draggable:!1,dots:!1,fade:!!Number(i.slick_fade),autoplaySpeed:i.slick_interval,speed:i.slick_speed,pauseOnHover:!!Number(i.slick_pausehover)})}})})}(jQuery);
1
+ !function(e){e(document).ready(function(){e.each(window.galleries,function(a,o){if("photocrati-nextgen_basic_slideshow"===o.display_type){var s=o.display_settings,i="fade"==s.transition_style;e(".ngg-galleryoverview.ngg-slideshow").slick({autoplay:!!Number(s.autoplay),arrows:!!Number(s.arrows),draggable:!1,dots:!1,fade:i,autoplaySpeed:s.interval,speed:s.transition_speed,pauseOnHover:!!Number(s.pauseonhover)})}})})}(jQuery);
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: photocrati, imagely
3
  Tags: wordpress gallery plugin, gallery, nextgen, nextgen gallery, photo gallery, image gallery, photography, slideshow, images, photo, photo album, watermark
4
  Requires at least: 4.0.0
5
- Stable tag: 3.0.11
6
  Tested up to: 4.9.8
7
  License: GPLv2
8
 
@@ -183,7 +183,7 @@ For more information, feel free to visit the official website for the NextGEN Ga
183
 
184
  == Changelog ==
185
 
186
- = V3.0.11 - 10.10.2018 =
187
  * Changed: Added settings for basic slideshow
188
 
189
  = V3.0.9 - 10.02.2018 =
2
  Contributors: photocrati, imagely
3
  Tags: wordpress gallery plugin, gallery, nextgen, nextgen gallery, photo gallery, image gallery, photography, slideshow, images, photo, photo album, watermark
4
  Requires at least: 4.0.0
5
+ Stable tag: 3.0.13
6
  Tested up to: 4.9.8
7
  License: GPLv2
8
 
183
 
184
  == Changelog ==
185
 
186
+ = V3.0.13 - 10.11.2018 =
187
  * Changed: Added settings for basic slideshow
188
 
189
  = V3.0.9 - 10.02.2018 =