FooGallery – Image Gallery WordPress Plugin - Version 1.8.12

Version Description

  • Fix : Previews not working on new galleries
Download this release

Release Info

Developer bradvin
Plugin Icon 128x128 FooGallery – Image Gallery WordPress Plugin
Version 1.8.12
Comparing to
See all releases

Code changes from version 1.8.11 to 1.8.12

README.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: bradvin, steveush, fooplugins, freemius
3
Donate link: http://fooplugins.com
4
Tags: gallery, image gallery, photo gallery, responsive, album, media gallery, masonry gallery, portfolio, justified gallery, video gallery, photography, youtube gallery
5
Requires at least: 3.9
6
- Tested up to: 5.2.2
7
Stable tag: trunk
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -145,6 +145,9 @@ Update now to get all the latest features, bug fixes and improvements!
145
146
== Changelog ==
147
148
= 1.8.11 =
149
* New : Added advanced gallery settings for custom settings and custom attributes
150
* Fix : Rewrite of Simple Portfolio to incorrect thumb heights
3
Donate link: http://fooplugins.com
4
Tags: gallery, image gallery, photo gallery, responsive, album, media gallery, masonry gallery, portfolio, justified gallery, video gallery, photography, youtube gallery
5
Requires at least: 3.9
6
+ Tested up to: 5.2.3
7
Stable tag: trunk
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
145
146
== Changelog ==
147
148
+ = 1.8.12 =
149
+ * Fix : Previews not working on new galleries
150
+
151
= 1.8.11 =
152
* New : Added advanced gallery settings for custom settings and custom attributes
153
* Fix : Rewrite of Simple Portfolio to incorrect thumb heights
css/admin-foogallery.css CHANGED
@@ -429,6 +429,10 @@ button[data-balloon]{overflow:visible}[data-balloon]{position:relative}[data-bal
429
margin-left: -1px;
430
}
431
432
.foogallery_preview_container {
433
position: relative;
434
padding: 10px;
429
margin-left: -1px;
430
}
431
432
+ .foogallery-gallery-items-metabox-title {
433
+ float:none;
434
+ }
435
+
436
.foogallery_preview_container {
437
position: relative;
438
padding: 10px;
foogallery.php CHANGED
@@ -3,7 +3,7 @@
3
/*
4
Plugin Name: FooGallery
5
Description: FooGallery is the most intuitive and extensible gallery management tool ever created for WordPress
6
- Version: 1.8.11
7
Author: FooPlugins
8
Plugin URI: https://foo.gallery
9
Author URI: http://fooplugins.com
@@ -25,7 +25,7 @@ if ( function_exists( 'foogallery_fs' ) ) {
25
define( 'FOOGALLERY_PATH', plugin_dir_path( __FILE__ ) );
26
define( 'FOOGALLERY_URL', plugin_dir_url( __FILE__ ) );
27
define( 'FOOGALLERY_FILE', __FILE__ );
28
- define( 'FOOGALLERY_VERSION', '1.8.11' );
29
define( 'FOOGALLERY_SETTINGS_VERSION', '2' );
30
require_once FOOGALLERY_PATH . 'includes/constants.php';
31
// Create a helper function for easy SDK access.
3
/*
4
Plugin Name: FooGallery
5
Description: FooGallery is the most intuitive and extensible gallery management tool ever created for WordPress
6
+ Version: 1.8.12
7
Author: FooPlugins
8
Plugin URI: https://foo.gallery
9
Author URI: http://fooplugins.com
25
define( 'FOOGALLERY_PATH', plugin_dir_path( __FILE__ ) );
26
define( 'FOOGALLERY_URL', plugin_dir_url( __FILE__ ) );
27
define( 'FOOGALLERY_FILE', __FILE__ );
28
+ define( 'FOOGALLERY_VERSION', '1.8.12' );
29
define( 'FOOGALLERY_SETTINGS_VERSION', '2' );
30
require_once FOOGALLERY_PATH . 'includes/constants.php';
31
// Create a helper function for easy SDK access.
includes/admin/class-gallery-datasources.php CHANGED
@@ -197,6 +197,7 @@ if ( ! class_exists( 'FooGallery_Admin_Gallery_Datasources' ) ) {
197
<div class="foogallery-datasource-modal-container">
198
<div class="foogallery-datasource-modal-container-inner">
199
<?php _e('Select a source on the left to get started.', 'foogallery'); ?>
200
</div>
201
<?php foreach ( $datasources as $key=>$datasource ) {
202
if ( $datasource['public'] ) { ?>
197
<div class="foogallery-datasource-modal-container">
198
<div class="foogallery-datasource-modal-container-inner">
199
<?php _e('Select a source on the left to get started.', 'foogallery'); ?>
200
+ <div style="height: 200px;background-repeat: no-repeat;background-size: 50%;width: 200px;background-image: url(&quot;data:image/svg+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jIuMiw4Ny45LDIzLjF6Ij48L3BhdGg+PC9zdmc+&quot;);"></div>
201
</div>
202
<?php foreach ( $datasources as $key=>$datasource ) {
203
if ( $datasource['public'] ) { ?>
includes/admin/class-gallery-metabox-items.php CHANGED
@@ -27,7 +27,7 @@ if ( ! class_exists( 'FooGallery_Admin_Gallery_MetaBox_Items' ) ) {
27
public function add_items_metabox( $post ) {
28
add_meta_box(
29
'foogallery_items',
30
- __( 'Gallery Items', 'foogallery' ),
31
array( $this, 'render_gallery_items_metabox' ),
32
FOOGALLERY_CPT_GALLERY,
33
'normal',
27
public function add_items_metabox( $post ) {
28
add_meta_box(
29
'foogallery_items',
30
+ __( 'Gallery Items', 'foogallery' ) . '<span class="foogallery-gallery-items-metabox-title spinner is-active"></span>',
31
array( $this, 'render_gallery_items_metabox' ),
32
FOOGALLERY_CPT_GALLERY,
33
'normal',
includes/public/class-foogallery-template-loader.php CHANGED
@@ -65,6 +65,10 @@ class FooGallery_Template_Loader {
65
//allow for any other gallery argument overrides
66
$current_foogallery = apply_filters( 'foogallery_render_template_argument_overrides', $current_foogallery, $args );
67
68
69
//check if we have any items
70
if ( ! $current_foogallery->has_items() ) {
65
//allow for any other gallery argument overrides
66
$current_foogallery = apply_filters( 'foogallery_render_template_argument_overrides', $current_foogallery, $args );
67
68
+ //check that we have a datasource. If not then set it to the default
69
+ if ( empty( $current_foogallery->datasource_name ) ) {
70
+ $current_foogallery->datasource_name = foogallery_default_datasource();
71
+ }
72
73
//check if we have any items
74
if ( ! $current_foogallery->has_items() ) {
js/admin-foogallery.js CHANGED
@@ -149,7 +149,7 @@
149
var previewData = $('[data-foogallery-preview="include"]').serializeArray();
150
data = data.concat(previewData);
151
152
- data.push({name: 'foogallery_attachments', value: $('#foogallery_attachments').val()});
153
data.push({name: 'foogallery_datasource', value: $('#foogallery_datasource').val()});
154
data.push({name: 'foogallery_datasource_value', value: $('#_foogallery_datasource_value').val()});
155
@@ -230,6 +230,9 @@
230
//move the template selector into the metabox heading
231
$('.foogallery-template-selector').appendTo( '#foogallery_settings .hndle span' ).removeClass('hidden');
232
233
//move the items switch selector into the metabox heading
234
$('.foogallery-items-view-switch-container').appendTo( '#foogallery_items .hndle span' ).removeClass('hidden');
235
@@ -362,6 +365,8 @@
362
FOOGALLERY.calculateAttachmentIds();
363
364
FOOGALLERY.calculateHiddenAreas();
365
};
366
367
FOOGALLERY.removeAttachmentFromGalleryList = function(id) {
149
var previewData = $('[data-foogallery-preview="include"]').serializeArray();
150
data = data.concat(previewData);
151
152
+ //data.push({name: 'foogallery_attachments', value: $('#foogallery_attachments').val()});
153
data.push({name: 'foogallery_datasource', value: $('#foogallery_datasource').val()});
154
data.push({name: 'foogallery_datasource_value', value: $('#_foogallery_datasource_value').val()});
155
230
//move the template selector into the metabox heading
231
$('.foogallery-template-selector').appendTo( '#foogallery_settings .hndle span' ).removeClass('hidden');
232
233
+ //remove the loading spinner
234
+ $('.foogallery-gallery-items-metabox-title').remove();
235
+
236
//move the items switch selector into the metabox heading
237
$('.foogallery-items-view-switch-container').appendTo( '#foogallery_items .hndle span' ).removeClass('hidden');
238
365
FOOGALLERY.calculateAttachmentIds();
366
367
FOOGALLERY.calculateHiddenAreas();
368
+
369
+ $('.foogallery_preview_container').addClass('foogallery-preview-force-refresh');
370
};
371
372
FOOGALLERY.removeAttachmentFromGalleryList = function(id) {