Version Description
- Fixed: Add facebook single video.
- Fixed: Styles on Wordpress 4.5.
- Added: Right click protection for thumbnails.
Download this release
Release Info
Developer | webdorado |
Plugin | Photo Gallery by WD – Responsive Photo Gallery |
Version | 1.2.100 |
Comparing to | |
See all releases |
Code changes from version 1.2.99 to 1.2.100
- admin/views/BWGViewAddAlbumsGalleries.php +7 -3
- admin/views/BWGViewAddTags.php +6 -3
- admin/views/BWGViewBWGShortcode.php +3 -2
- filemanager/UploadHandler.php +4 -1
- filemanager/view.php +7 -1
- frontend/views/BWGViewAlbum_compact_preview.php +12 -1
- frontend/views/BWGViewAlbum_extended_preview.php +12 -0
- frontend/views/BWGViewThumbnails.php +12 -0
- photo-gallery.php +3 -3
- readme.txt +6 -1
admin/views/BWGViewAddAlbumsGalleries.php
CHANGED
@@ -34,9 +34,13 @@ class BWGViewAddAlbumsGalleries {
|
|
34 |
$pager = 0;
|
35 |
wp_print_scripts('jquery');
|
36 |
wp_print_scripts('wp-pointer');
|
37 |
-
|
38 |
-
|
39 |
-
|
|
|
|
|
|
|
|
|
40 |
<link media="all" type="text/css" href="<?php echo get_admin_url(); ?>css/colors<?php echo ((get_bloginfo('version') < '3.8') ? '-fresh' : ''); ?>.min.css" id="colors-css" rel="stylesheet">
|
41 |
<?php } ?>
|
42 |
<link media="all" type="text/css" href="<?php echo WD_BWG_URL . '/css/bwg_tables.css?ver='.wd_bwg_version(); ?>" id="spider_audio_player_tables-css" rel="stylesheet">
|
34 |
$pager = 0;
|
35 |
wp_print_scripts('jquery');
|
36 |
wp_print_scripts('wp-pointer');
|
37 |
+
wp_print_styles('admin-bar');
|
38 |
+
wp_print_styles('dashicons');
|
39 |
+
wp_print_styles('wp-admin');
|
40 |
+
wp_print_styles('buttons');
|
41 |
+
wp_print_styles('wp-auth-check');
|
42 |
+
wp_print_styles('wp-pointer');
|
43 |
+
if (get_bloginfo('version') < '3.9') { ?>
|
44 |
<link media="all" type="text/css" href="<?php echo get_admin_url(); ?>css/colors<?php echo ((get_bloginfo('version') < '3.8') ? '-fresh' : ''); ?>.min.css" id="colors-css" rel="stylesheet">
|
45 |
<?php } ?>
|
46 |
<link media="all" type="text/css" href="<?php echo WD_BWG_URL . '/css/bwg_tables.css?ver='.wd_bwg_version(); ?>" id="spider_audio_player_tables-css" rel="stylesheet">
|
admin/views/BWGViewAddTags.php
CHANGED
@@ -33,9 +33,12 @@ class BWGViewAddTags {
|
|
33 |
$per_page = $this->model->per_page();
|
34 |
$pager = 0;
|
35 |
wp_print_scripts('jquery');
|
36 |
-
|
37 |
-
|
38 |
-
|
|
|
|
|
|
|
39 |
<link media="all" type="text/css" href="<?php echo get_admin_url(); ?>css/colors<?php echo ((get_bloginfo('version') < '3.8') ? '-fresh' : ''); ?>.min.css" id="colors-css" rel="stylesheet">
|
40 |
<?php } ?>
|
41 |
<link media="all" type="text/css" href="<?php echo WD_BWG_URL . '/css/bwg_tables.css?ver='.wd_bwg_version(); ?>" id="bwg_tables-css" rel="stylesheet">
|
33 |
$per_page = $this->model->per_page();
|
34 |
$pager = 0;
|
35 |
wp_print_scripts('jquery');
|
36 |
+
wp_print_styles('admin-bar');
|
37 |
+
wp_print_styles('wp-admin');
|
38 |
+
wp_print_styles('dashicons');
|
39 |
+
wp_print_styles('buttons');
|
40 |
+
wp_print_styles('wp-auth-check');
|
41 |
+
if (get_bloginfo('version') < '3.9') { ?>
|
42 |
<link media="all" type="text/css" href="<?php echo get_admin_url(); ?>css/colors<?php echo ((get_bloginfo('version') < '3.8') ? '-fresh' : ''); ?>.min.css" id="colors-css" rel="stylesheet">
|
43 |
<?php } ?>
|
44 |
<link media="all" type="text/css" href="<?php echo WD_BWG_URL . '/css/bwg_tables.css?ver='.wd_bwg_version(); ?>" id="bwg_tables-css" rel="stylesheet">
|
admin/views/BWGViewBWGShortcode.php
CHANGED
@@ -77,8 +77,9 @@ class BWGViewBWGShortcode {
|
|
77 |
wp_print_scripts('jquery-ui-position');
|
78 |
wp_print_scripts('jquery-ui-tooltip');
|
79 |
wp_print_scripts('wp-pointer');
|
80 |
-
|
81 |
-
|
|
|
82 |
<link rel="stylesheet" href="<?php echo WD_BWG_URL . '/css/bwg_shortcode.css?ver='.wd_bwg_version(); ?>">
|
83 |
<link rel="stylesheet" href="<?php echo WD_BWG_URL . '/css/jquery-ui-1.10.3.custom.css'; ?>">
|
84 |
<script language="javascript" type="text/javascript" src="<?php echo WD_BWG_URL . '/js/bwg_shortcode.js?ver='.wd_bwg_version(); ?>"></script>
|
77 |
wp_print_scripts('jquery-ui-position');
|
78 |
wp_print_scripts('jquery-ui-tooltip');
|
79 |
wp_print_scripts('wp-pointer');
|
80 |
+
wp_print_styles('wp-pointer');
|
81 |
+
wp_print_styles('dashicons');
|
82 |
+
?>
|
83 |
<link rel="stylesheet" href="<?php echo WD_BWG_URL . '/css/bwg_shortcode.css?ver='.wd_bwg_version(); ?>">
|
84 |
<link rel="stylesheet" href="<?php echo WD_BWG_URL . '/css/jquery-ui-1.10.3.custom.css'; ?>">
|
85 |
<script language="javascript" type="text/javascript" src="<?php echo WD_BWG_URL . '/js/bwg_shortcode.js?ver='.wd_bwg_version(); ?>"></script>
|
filemanager/UploadHandler.php
CHANGED
@@ -19,8 +19,11 @@ else {
|
|
19 |
die('Access Denied');
|
20 |
}
|
21 |
|
|
|
|
|
|
|
22 |
$upload_handler = new UploadHandler(array(
|
23 |
-
'upload_dir' => (isset($_GET['dir']) ? esc_html($_GET['dir']) : ''),
|
24 |
'accept_file_types' => '/\.(gif|jpe?g|png|bmp|mp4|flv|webm|ogg|mp3|wav|pdf|zip)$/i'
|
25 |
));
|
26 |
|
19 |
die('Access Denied');
|
20 |
}
|
21 |
|
22 |
+
require_once(WD_BWG_DIR . '/filemanager/controller.php');
|
23 |
+
$controller = new FilemanagerController();
|
24 |
+
|
25 |
$upload_handler = new UploadHandler(array(
|
26 |
+
'upload_dir' => $controller->uploads_dir . (isset($_GET['dir']) ? esc_html($_GET['dir']) : ''),
|
27 |
'accept_file_types' => '/\.(gif|jpe?g|png|bmp|mp4|flv|webm|ogg|mp3|wav|pdf|zip)$/i'
|
28 |
));
|
29 |
|
filemanager/view.php
CHANGED
@@ -55,6 +55,12 @@ class FilemanagerView {
|
|
55 |
wp_print_scripts('jquery');
|
56 |
wp_print_scripts('jquery-ui-widget');
|
57 |
wp_print_scripts('wp-pointer');
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
?>
|
59 |
<script src="<?php echo WD_BWG_URL; ?>/filemanager/js/jq_uploader/jquery.iframe-transport.js"></script>
|
60 |
<script src="<?php echo WD_BWG_URL; ?>/filemanager/js/jq_uploader/jquery.fileupload.js"></script>
|
@@ -388,7 +394,7 @@ class FilemanagerView {
|
|
388 |
<div id="btnBrowseContainer">
|
389 |
<?php
|
390 |
$query_url = wp_nonce_url( admin_url('admin-ajax.php'), 'bwg_UploadHandler', 'bwg_nonce' );
|
391 |
-
$query_url = add_query_arg(array('action' => 'bwg_UploadHandler', 'dir' =>
|
392 |
|
393 |
|
394 |
?>
|
55 |
wp_print_scripts('jquery');
|
56 |
wp_print_scripts('jquery-ui-widget');
|
57 |
wp_print_scripts('wp-pointer');
|
58 |
+
wp_print_styles('admin-bar');
|
59 |
+
wp_print_styles('dashicons');
|
60 |
+
wp_print_styles('wp-admin');
|
61 |
+
wp_print_styles('buttons');
|
62 |
+
wp_print_styles('wp-auth-check');
|
63 |
+
wp_print_styles('wp-pointer');
|
64 |
?>
|
65 |
<script src="<?php echo WD_BWG_URL; ?>/filemanager/js/jq_uploader/jquery.iframe-transport.js"></script>
|
66 |
<script src="<?php echo WD_BWG_URL; ?>/filemanager/js/jq_uploader/jquery.fileupload.js"></script>
|
394 |
<div id="btnBrowseContainer">
|
395 |
<?php
|
396 |
$query_url = wp_nonce_url( admin_url('admin-ajax.php'), 'bwg_UploadHandler', 'bwg_nonce' );
|
397 |
+
$query_url = add_query_arg(array('action' => 'bwg_UploadHandler', 'dir' => (isset($_REQUEST['dir']) ? esc_html($_REQUEST['dir']) : '') . '/'), $query_url);
|
398 |
|
399 |
|
400 |
?>
|
frontend/views/BWGViewAlbum_compact_preview.php
CHANGED
@@ -269,6 +269,7 @@ class BWGViewAlbum_compact_preview {
|
|
269 |
}
|
270 |
$params_array_hash = $params_array;
|
271 |
$tags_rows = $this->model->get_tags_rows_data($album_gallery_id);
|
|
|
272 |
?>
|
273 |
<style>
|
274 |
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_album_thumb_<?php echo $bwg; ?> {
|
@@ -870,7 +871,17 @@ class BWGViewAlbum_compact_preview {
|
|
870 |
return false;
|
871 |
}
|
872 |
});
|
873 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
874 |
}
|
875 |
jQuery(document).ready(function () {
|
876 |
bwg_document_ready_<?php echo $bwg; ?>();
|
269 |
}
|
270 |
$params_array_hash = $params_array;
|
271 |
$tags_rows = $this->model->get_tags_rows_data($album_gallery_id);
|
272 |
+
$image_right_click = $options_row->image_right_click;
|
273 |
?>
|
274 |
<style>
|
275 |
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_album_thumb_<?php echo $bwg; ?> {
|
871 |
return false;
|
872 |
}
|
873 |
});
|
874 |
+
<?php }
|
875 |
+
if ($image_right_click) {
|
876 |
+
?>
|
877 |
+
/* Disable right click.*/
|
878 |
+
jQuery('div[id^="bwg_container"]').bind("contextmenu", function () {
|
879 |
+
return false;
|
880 |
+
});
|
881 |
+
jQuery('div[id^="bwg_container"]').css('webkitTouchCallout','none');
|
882 |
+
<?php
|
883 |
+
}
|
884 |
+
?>
|
885 |
}
|
886 |
jQuery(document).ready(function () {
|
887 |
bwg_document_ready_<?php echo $bwg; ?>();
|
frontend/views/BWGViewAlbum_extended_preview.php
CHANGED
@@ -213,6 +213,7 @@ class BWGViewAlbum_extended_preview {
|
|
213 |
$params_array['watermark_height'] = $params['watermark_height'];
|
214 |
}
|
215 |
$tags_rows = $this->model->get_tags_rows_data($album_gallery_id);
|
|
|
216 |
?>
|
217 |
<style>
|
218 |
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_album_extended_thumbnails_<?php echo $bwg; ?> * {
|
@@ -853,6 +854,17 @@ class BWGViewAlbum_extended_preview {
|
|
853 |
return false;
|
854 |
}
|
855 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
856 |
}
|
857 |
jQuery(document).ready(function () {
|
858 |
bwg_document_ready_<?php echo $bwg; ?>();
|
213 |
$params_array['watermark_height'] = $params['watermark_height'];
|
214 |
}
|
215 |
$tags_rows = $this->model->get_tags_rows_data($album_gallery_id);
|
216 |
+
$image_right_click = $options_row->image_right_click;
|
217 |
?>
|
218 |
<style>
|
219 |
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_album_extended_thumbnails_<?php echo $bwg; ?> * {
|
854 |
return false;
|
855 |
}
|
856 |
});
|
857 |
+
<?php
|
858 |
+
if ($image_right_click) {
|
859 |
+
?>
|
860 |
+
/* Disable right click.*/
|
861 |
+
jQuery('div[id^="bwg_container"]').bind("contextmenu", function () {
|
862 |
+
return false;
|
863 |
+
});
|
864 |
+
jQuery('div[id^="bwg_container"]').css('webkitTouchCallout','none');
|
865 |
+
<?php
|
866 |
+
}
|
867 |
+
?>
|
868 |
}
|
869 |
jQuery(document).ready(function () {
|
870 |
bwg_document_ready_<?php echo $bwg; ?>();
|
frontend/views/BWGViewThumbnails.php
CHANGED
@@ -176,6 +176,7 @@ class BWGViewThumbnails {
|
|
176 |
$rgb_page_nav_font_color = WDWLibrary::spider_hex2rgb($theme_row->page_nav_font_color);
|
177 |
$rgb_thumbs_bg_color = WDWLibrary::spider_hex2rgb($theme_row->thumbs_bg_color);
|
178 |
$tags_rows = $this->model->get_tags_rows_data($params['gallery_id']);
|
|
|
179 |
?>
|
180 |
<style>
|
181 |
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_standart_thumbnails_<?php echo $bwg; ?> * {
|
@@ -562,6 +563,17 @@ class BWGViewThumbnails {
|
|
562 |
return false;
|
563 |
}
|
564 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
565 |
}
|
566 |
jQuery(document).ready(function () {
|
567 |
bwg_document_ready_<?php echo $bwg; ?>();
|
176 |
$rgb_page_nav_font_color = WDWLibrary::spider_hex2rgb($theme_row->page_nav_font_color);
|
177 |
$rgb_thumbs_bg_color = WDWLibrary::spider_hex2rgb($theme_row->thumbs_bg_color);
|
178 |
$tags_rows = $this->model->get_tags_rows_data($params['gallery_id']);
|
179 |
+
$image_right_click = $options_row->image_right_click;
|
180 |
?>
|
181 |
<style>
|
182 |
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_standart_thumbnails_<?php echo $bwg; ?> * {
|
563 |
return false;
|
564 |
}
|
565 |
});
|
566 |
+
<?php
|
567 |
+
if ($image_right_click) {
|
568 |
+
?>
|
569 |
+
/* Disable right click.*/
|
570 |
+
jQuery('div[id^="bwg_container"]').bind("contextmenu", function () {
|
571 |
+
return false;
|
572 |
+
});
|
573 |
+
jQuery('div[id^="bwg_container"]').css('webkitTouchCallout','none');
|
574 |
+
<?php
|
575 |
+
}
|
576 |
+
?>
|
577 |
}
|
578 |
jQuery(document).ready(function () {
|
579 |
bwg_document_ready_<?php echo $bwg; ?>();
|
photo-gallery.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Photo Gallery
|
5 |
* Plugin URI: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
|
6 |
* 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.
|
7 |
-
* Version: 1.2.
|
8 |
* Author: WebDorado
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -1911,7 +1911,7 @@ function bwg_activate() {
|
|
1911 |
));
|
1912 |
}
|
1913 |
$version = get_option("wd_bwg_version");
|
1914 |
-
$new_version = '1.2.
|
1915 |
if ($version && version_compare($version, $new_version, '<')) {
|
1916 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1917 |
bwg_update($version);
|
@@ -1965,7 +1965,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
|
|
1965 |
|
1966 |
function bwg_update_hook() {
|
1967 |
$version = get_option("wd_bwg_version");
|
1968 |
-
$new_version = '1.2.
|
1969 |
if ($version && version_compare($version, $new_version, '<')) {
|
1970 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1971 |
bwg_update($version);
|
4 |
* Plugin Name: Photo Gallery
|
5 |
* Plugin URI: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
|
6 |
* 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.
|
7 |
+
* Version: 1.2.100
|
8 |
* Author: WebDorado
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
1911 |
));
|
1912 |
}
|
1913 |
$version = get_option("wd_bwg_version");
|
1914 |
+
$new_version = '1.2.100';
|
1915 |
if ($version && version_compare($version, $new_version, '<')) {
|
1916 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1917 |
bwg_update($version);
|
1965 |
|
1966 |
function bwg_update_hook() {
|
1967 |
$version = get_option("wd_bwg_version");
|
1968 |
+
$new_version = '1.2.100';
|
1969 |
if ($version && version_compare($version, $new_version, '<')) {
|
1970 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1971 |
bwg_update($version);
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
|
|
4 |
Tags: photo, photo gallery, image gallery, video gallery, gallery, galleries, wordpress gallery plugin, images gallery, album, photo albums, simple gallery, best gallery plugin, free photo gallery, wp gallery, wordpress gallery, website gallery, gallery shortcode, best gallery, picture, pictures, gallery slider, photo album, photogallery, widget gallery, image, images, photos, gallery lightbox, photoset, wordpress photo gallery plugin, wp gallery plugins, responsive wordpress photo gallery, media, image album, filterable gallery, banner rotator, fullscreen gallery, responsive gallery, add album, add gallery, add pictures, fotoalbum, foto, gallery decription, multiple pictures, photoalbum, upload images, upload photos, view images, view pictures, admin, AJAX, comments, gallery image, image lightbox, image rotate, image slideshow, image slider, jquery, jquery gallery, slide show, slideshow, thumbnail, thumbnail view, thumbnails, thumbs, responsive, watermarking, watermarks,fullscreen slider, lightbox, photography, sidebar, slide, youtube, vimeo, videos, instagram, facebook, mosaic, facebook integration, instagram feed, Flickr, Dailymotion, widget, youtube gallery, ecommerce
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.5
|
7 |
-
Stable tag: 1.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -225,6 +225,11 @@ To enable the feature of adding Media Library images, go to Photo Gallery > Opti
|
|
225 |
|
226 |
== Changelog ==
|
227 |
|
|
|
|
|
|
|
|
|
|
|
228 |
= 1.2.99 =
|
229 |
* Fixed: Open lightbox from blog style, image browser and albums views.
|
230 |
* Fixed: Vertical filmstrip with control buttons.
|
4 |
Tags: photo, photo gallery, image gallery, video gallery, gallery, galleries, wordpress gallery plugin, images gallery, album, photo albums, simple gallery, best gallery plugin, free photo gallery, wp gallery, wordpress gallery, website gallery, gallery shortcode, best gallery, picture, pictures, gallery slider, photo album, photogallery, widget gallery, image, images, photos, gallery lightbox, photoset, wordpress photo gallery plugin, wp gallery plugins, responsive wordpress photo gallery, media, image album, filterable gallery, banner rotator, fullscreen gallery, responsive gallery, add album, add gallery, add pictures, fotoalbum, foto, gallery decription, multiple pictures, photoalbum, upload images, upload photos, view images, view pictures, admin, AJAX, comments, gallery image, image lightbox, image rotate, image slideshow, image slider, jquery, jquery gallery, slide show, slideshow, thumbnail, thumbnail view, thumbnails, thumbs, responsive, watermarking, watermarks,fullscreen slider, lightbox, photography, sidebar, slide, youtube, vimeo, videos, instagram, facebook, mosaic, facebook integration, instagram feed, Flickr, Dailymotion, widget, youtube gallery, ecommerce
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.5
|
7 |
+
Stable tag: 1.2.100
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
225 |
|
226 |
== Changelog ==
|
227 |
|
228 |
+
= 1.2.100 =
|
229 |
+
* Fixed: Add facebook single video.
|
230 |
+
* Fixed: Styles on Wordpress 4.5.
|
231 |
+
* Added: Right click protection for thumbnails.
|
232 |
+
|
233 |
= 1.2.99 =
|
234 |
* Fixed: Open lightbox from blog style, image browser and albums views.
|
235 |
* Fixed: Vertical filmstrip with control buttons.
|