Version Description
- Fixed: Shortcode save in some cases.
- Fixed: Shortcode popup with some page builders.
Download this release
Release Info
Developer | webdorado |
Plugin | Photo Gallery by WD – Responsive Photo Gallery |
Version | 1.4.5 |
Comparing to | |
See all releases |
Code changes from version 1.4.4 to 1.4.5
- admin/views/Shortcode.php +31 -16
- photo-gallery.php +4 -4
- readme.txt +5 -1
admin/views/Shortcode.php
CHANGED
@@ -4298,22 +4298,37 @@ class ShortcodeView_bwg extends AdminView_bwg {
|
|
4298 |
return "<img src='<?php echo BWG()->plugin_url; ?>/images/icons/gallery-icon.png' class='bwg_shortcode mceItem' title='Best_Wordpress_Gallery" + short_id + "' />";
|
4299 |
});
|
4300 |
}
|
4301 |
-
jQuery("#task").val("save");
|
4302 |
-
jQuery("#tagtext").val(tagtext);
|
4303 |
-
jQuery("#currrent_id").val(shortcode_id);
|
4304 |
-
jQuery("#title").val(title);
|
4305 |
-
jQuery("#bwg_insert").val((content && !bwg_insert) ? 0 : 1);
|
4306 |
-
jQuery("#bwg_shortcode_form").submit();
|
4307 |
-
|
4308 |
-
|
4309 |
-
|
4310 |
-
|
4311 |
-
|
4312 |
-
|
4313 |
-
|
4314 |
-
|
4315 |
-
|
4316 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4317 |
<?php } else { ?>
|
4318 |
var post_data = {};
|
4319 |
var url = '<?php echo add_query_arg(array( 'action' => 'shortcode_bwg' ), admin_url('admin-ajax.php')); ?>';
|
4298 |
return "<img src='<?php echo BWG()->plugin_url; ?>/images/icons/gallery-icon.png' class='bwg_shortcode mceItem' title='Best_Wordpress_Gallery" + short_id + "' />";
|
4299 |
});
|
4300 |
}
|
4301 |
+
//jQuery("#task").val("save");
|
4302 |
+
//jQuery("#tagtext").val(tagtext);
|
4303 |
+
//jQuery("#currrent_id").val(shortcode_id);
|
4304 |
+
//jQuery("#title").val(title);
|
4305 |
+
//jQuery("#bwg_insert").val((content && !bwg_insert) ? 0 : 1);
|
4306 |
+
//jQuery("#bwg_shortcode_form").submit();
|
4307 |
+
var post_data = {};
|
4308 |
+
var url = '<?php echo add_query_arg(array( 'action' => 'shortcode_bwg' ), admin_url('admin-ajax.php')); ?>';
|
4309 |
+
post_data['bwg_nonce'] = jQuery("#bwg_nonce").val();
|
4310 |
+
post_data['task'] = "save";
|
4311 |
+
post_data['tagtext'] = tagtext;
|
4312 |
+
post_data['currrent_id'] = shortcode_id;
|
4313 |
+
post_data['title'] = title;
|
4314 |
+
post_data['bwg_insert'] = (content && !bwg_insert) ? 0 : 1;
|
4315 |
+
var use_options_defaults = jQuery("#use_option_defaults").prop('checked') ? 1 : 0;
|
4316 |
+
post_data['use_option_defaults'] = use_options_defaults;
|
4317 |
+
jQuery.post(
|
4318 |
+
url,
|
4319 |
+
post_data
|
4320 |
+
).success(function (data, textStatus, errorThrown) {
|
4321 |
+
if (top.tinymce.isIE && content) {
|
4322 |
+
// IE and Update.
|
4323 |
+
var all_content = top.tinyMCE.activeEditor.getContent();
|
4324 |
+
all_content = all_content.replace('<p></p><p>[Best_Wordpress_Gallery', '<p>[Best_Wordpress_Gallery');
|
4325 |
+
top.tinyMCE.activeEditor.setContent(all_content.replace(content, '[Best_Wordpress_Gallery id="' + shortcode_id + '"' + title + ']'));
|
4326 |
+
}
|
4327 |
+
else {
|
4328 |
+
top.send_to_editor(short_code);
|
4329 |
+
}
|
4330 |
+
top.tinyMCE.execCommand('mceRepaint');
|
4331 |
+
});
|
4332 |
<?php } else { ?>
|
4333 |
var post_data = {};
|
4334 |
var url = '<?php echo add_query_arg(array( 'action' => 'shortcode_bwg' ), admin_url('admin-ajax.php')); ?>';
|
photo-gallery.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Photo Gallery
|
4 |
* Plugin URI: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
|
5 |
* Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
|
6 |
-
* Version: 1.4.
|
7 |
* Author: Photo Gallery Team
|
8 |
* Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -83,8 +83,8 @@ final class BWG {
|
|
83 |
$this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
|
84 |
$this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
|
85 |
$this->main_file = plugin_basename(__FILE__);
|
86 |
-
$this->plugin_version = '1.4.
|
87 |
-
$this->db_version = '1.4.
|
88 |
$this->prefix = 'bwg';
|
89 |
$this->nicename = __('Photo Gallery', $this->prefix);
|
90 |
|
@@ -767,7 +767,7 @@ final class BWG {
|
|
767 |
// To prevent wp centering window with old sizes.
|
768 |
setTimeout(function(){
|
769 |
tbWindow.width(W).height(H);
|
770 |
-
tbWindow.css({'top': 0, 'left': 0, 'margin-left': '0'});
|
771 |
tbWindow.find('.mce-window-body').width(W).height(H);
|
772 |
}, 10);
|
773 |
}
|
3 |
* Plugin Name: Photo Gallery
|
4 |
* Plugin URI: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
|
5 |
* Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
|
6 |
+
* Version: 1.4.5
|
7 |
* Author: Photo Gallery Team
|
8 |
* Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
83 |
$this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
|
84 |
$this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
|
85 |
$this->main_file = plugin_basename(__FILE__);
|
86 |
+
$this->plugin_version = '1.4.5';
|
87 |
+
$this->db_version = '1.4.5';
|
88 |
$this->prefix = 'bwg';
|
89 |
$this->nicename = __('Photo Gallery', $this->prefix);
|
90 |
|
767 |
// To prevent wp centering window with old sizes.
|
768 |
setTimeout(function(){
|
769 |
tbWindow.width(W).height(H);
|
770 |
+
tbWindow.css({'top': 0, 'left': 0, 'margin-left': '0', 'z-index': '1000000'});
|
771 |
tbWindow.find('.mce-window-body').width(W).height(H);
|
772 |
}, 10);
|
773 |
}
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: webdorado,wdsupport,photogallerysupport
|
|
3 |
Tags: gallery, photo gallery, image gallery, responsive gallery, wordpress gallery plugin, photo albums, gallery slider, gallery lightbox, wordpress photo gallery plugin, fullscreen gallery, watermarking, video gallery
|
4 |
Requires at least: 3.4
|
5 |
Tested up to: 4.9
|
6 |
-
Stable tag: 1.4.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -279,6 +279,10 @@ Choose whether to display random or the first/last specific number of images.
|
|
279 |
|
280 |
== Changelog ==
|
281 |
|
|
|
|
|
|
|
|
|
282 |
= 1.4.4 =
|
283 |
* Fixed: Compatibility with Instagram updated API.
|
284 |
|
3 |
Tags: gallery, photo gallery, image gallery, responsive gallery, wordpress gallery plugin, photo albums, gallery slider, gallery lightbox, wordpress photo gallery plugin, fullscreen gallery, watermarking, video gallery
|
4 |
Requires at least: 3.4
|
5 |
Tested up to: 4.9
|
6 |
+
Stable tag: 1.4.5
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
279 |
|
280 |
== Changelog ==
|
281 |
|
282 |
+
= 1.4.5 =
|
283 |
+
* Fixed: Shortcode save in some cases.
|
284 |
+
* Fixed: Shortcode popup with some page builders.
|
285 |
+
|
286 |
= 1.4.4 =
|
287 |
* Fixed: Compatibility with Instagram updated API.
|
288 |
|