Version Description
- Fixed: Case sensitive search by name in Filemanager bug.
- Changed: Show last uploaded files as first in Filemanager.
Download this release
Release Info
Developer | webdorado |
Plugin | Photo Gallery by WD – Responsive Photo Gallery |
Version | 1.3.5 |
Comparing to | |
See all releases |
Code changes from version 1.3.4 to 1.3.5
- filemanager/css/default.css +7 -6
- filemanager/css/default_view_thumbs.css +39 -3
- filemanager/js/default.js +18 -2
- filemanager/model.php +4 -3
- filemanager/view.php +7 -18
- photo-gallery.php +3 -3
- readme.txt +5 -1
filemanager/css/default.css
CHANGED
@@ -2,7 +2,8 @@
|
|
2 |
border: none !important;
|
3 |
margin-top: 200px;
|
4 |
width: 30px;
|
5 |
-
|
|
|
6 |
-moz-animation: spin 2.5s infinite linear;
|
7 |
-o-animation: spin 2.5s infinite linear;
|
8 |
animation: spin 2.5s infinite linear;*/
|
@@ -610,6 +611,11 @@ a.wd-btn-primary:hover, a.wd-btn-primary:active, a.wd-btn-primary:link{
|
|
610 |
background-repeat: no-repeat;
|
611 |
background-position: 10% 50%;
|
612 |
}
|
|
|
|
|
|
|
|
|
|
|
613 |
.wd-btn-uplaod{
|
614 |
background-image:url(../images/btn_icons/upload.png);
|
615 |
}
|
@@ -622,11 +628,6 @@ a.wd-btn-primary:hover, a.wd-btn-primary:active, a.wd-btn-primary:link{
|
|
622 |
.wd-btn-cancel{
|
623 |
background-image:url(../images/icons/cancel.png);
|
624 |
}
|
625 |
-
.wd-btn-icon-add {
|
626 |
-
padding: 0px 10px 1px 42px !important;
|
627 |
-
background-repeat: no-repeat;
|
628 |
-
background-position: 10% 50%;
|
629 |
-
}
|
630 |
.wd-not-image{
|
631 |
padding: 0px 10px 1px 10px !important;
|
632 |
background-repeat: no-repeat;
|
2 |
border: none !important;
|
3 |
margin-top: 200px;
|
4 |
width: 30px;
|
5 |
+
/*border: none !important;
|
6 |
+
-webkit-animation: spin 2.5s infinite linear;
|
7 |
-moz-animation: spin 2.5s infinite linear;
|
8 |
-o-animation: spin 2.5s infinite linear;
|
9 |
animation: spin 2.5s infinite linear;*/
|
611 |
background-repeat: no-repeat;
|
612 |
background-position: 10% 50%;
|
613 |
}
|
614 |
+
.wd-btn-icon-add {
|
615 |
+
padding: 0px 10px 1px 42px !important;
|
616 |
+
background-repeat: no-repeat;
|
617 |
+
background-position: 10% 50%;
|
618 |
+
}
|
619 |
.wd-btn-uplaod{
|
620 |
background-image:url(../images/btn_icons/upload.png);
|
621 |
}
|
628 |
.wd-btn-cancel{
|
629 |
background-image:url(../images/icons/cancel.png);
|
630 |
}
|
|
|
|
|
|
|
|
|
|
|
631 |
.wd-not-image{
|
632 |
padding: 0px 10px 1px 10px !important;
|
633 |
background-repeat: no-repeat;
|
filemanager/css/default_view_thumbs.css
CHANGED
@@ -18,22 +18,58 @@
|
|
18 |
width: 100%;
|
19 |
}
|
20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
#explorer_header_container {
|
22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
}
|
24 |
|
25 |
#explorer_body_container,
|
26 |
#importer_body_container {
|
27 |
position: absolute;
|
28 |
-
top:
|
29 |
bottom: 0;
|
30 |
left: 0;
|
31 |
right: 0;
|
32 |
padding: 5px;
|
33 |
overflow-y: scroll;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
}
|
35 |
|
36 |
-
|
37 |
.explorer_item,
|
38 |
.importer_item {
|
39 |
display: table-row;
|
18 |
width: 100%;
|
19 |
}
|
20 |
|
21 |
+
#explorer_header_container .item_name::after,
|
22 |
+
#explorer_header_container .item_size::after {
|
23 |
+
content: url("../images/btn_icons/divider.png");
|
24 |
+
display: table-cell;
|
25 |
+
}
|
26 |
+
|
27 |
+
#explorer_header_container .item_name,
|
28 |
+
#explorer_header_container .item_size,
|
29 |
+
#explorer_header_container .item_date_modified {
|
30 |
+
display: inline-block;
|
31 |
+
}
|
32 |
+
|
33 |
#explorer_header_container {
|
34 |
+
position: absolute;
|
35 |
+
z-index: 1;
|
36 |
+
top: 0;
|
37 |
+
display: table;
|
38 |
+
outline: solid 1px #e8e9ea;
|
39 |
+
background-color: #ffffff;
|
40 |
+
width: 100%;
|
41 |
+
color: #585858;
|
42 |
+
padding: 0 0 0 5px;
|
43 |
+
}
|
44 |
+
|
45 |
+
#explorer_header {
|
46 |
+
display: table-row;
|
47 |
+
}
|
48 |
+
|
49 |
+
#explorer_header span {
|
50 |
+
display: table-cell;
|
51 |
+
height: 30px;
|
52 |
+
vertical-align: middle;
|
53 |
}
|
54 |
|
55 |
#explorer_body_container,
|
56 |
#importer_body_container {
|
57 |
position: absolute;
|
58 |
+
top: 30px;
|
59 |
bottom: 0;
|
60 |
left: 0;
|
61 |
right: 0;
|
62 |
padding: 5px;
|
63 |
overflow-y: scroll;
|
64 |
+
cursor: default;
|
65 |
+
-webkit-touch-callout: none;
|
66 |
+
-webkit-user-select: none;
|
67 |
+
-khtml-user-select: none;
|
68 |
+
-moz-user-select: none;
|
69 |
+
-ms-user-select: none;
|
70 |
+
user-select: none;
|
71 |
}
|
72 |
|
|
|
73 |
.explorer_item,
|
74 |
.importer_item {
|
75 |
display: table-row;
|
filemanager/js/default.js
CHANGED
@@ -65,6 +65,21 @@ jQuery(document).ready(function () {
|
|
65 |
jQuery(document).keydown(function(e) {
|
66 |
onKeyDown(e);
|
67 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
});
|
69 |
|
70 |
////////////////////////////////////////////////////////////////////////////////////////
|
@@ -559,9 +574,10 @@ function onBtnCancelClick(event, obj) {
|
|
559 |
}
|
560 |
|
561 |
function onBtnSelectAllClick() {
|
562 |
-
jQuery(".explorer_item").
|
|
|
563 |
filesSelected = [];
|
564 |
-
jQuery(".explorer_item").each(function() {
|
565 |
var objName = jQuery(this).attr("name");
|
566 |
if (filesSelected.indexOf(objName) == -1) {
|
567 |
filesSelected.push(objName);
|
65 |
jQuery(document).keydown(function(e) {
|
66 |
onKeyDown(e);
|
67 |
});
|
68 |
+
jQuery("#search_by_name .search_by_name").on("input keyup", function() {
|
69 |
+
var search_by_name = jQuery(this).val().toLowerCase();
|
70 |
+
if (search_by_name) {
|
71 |
+
jQuery("#explorer_body .explorer_item").hide();
|
72 |
+
jQuery("#explorer_body .explorer_item").each(function () {
|
73 |
+
var filename = jQuery(this).attr("filename").toLowerCase();
|
74 |
+
if (filename.indexOf(search_by_name) != -1) {
|
75 |
+
jQuery(this).show();
|
76 |
+
}
|
77 |
+
});
|
78 |
+
}
|
79 |
+
else {
|
80 |
+
jQuery("#explorer_body .explorer_item").show();
|
81 |
+
}
|
82 |
+
});
|
83 |
});
|
84 |
|
85 |
////////////////////////////////////////////////////////////////////////////////////////
|
574 |
}
|
575 |
|
576 |
function onBtnSelectAllClick() {
|
577 |
+
jQuery(".explorer_item").removeClass("explorer_item_select");
|
578 |
+
jQuery(".explorer_item:visible").addClass("explorer_item_select");
|
579 |
filesSelected = [];
|
580 |
+
jQuery(".explorer_item:visible").each(function() {
|
581 |
var objName = jQuery(this).attr("name");
|
582 |
if (filesSelected.indexOf(objName) == -1) {
|
583 |
filesSelected.push(objName);
|
filemanager/model.php
CHANGED
@@ -32,8 +32,8 @@ class FilemanagerModel {
|
|
32 |
////////////////////////////////////////////////////////////////////////////////////////
|
33 |
public function get_file_manager_data() {
|
34 |
$session_data = array();
|
35 |
-
$session_data['sort_by'] = $this->get_from_session('sort_by', '
|
36 |
-
$session_data['sort_order'] = $this->get_from_session('sort_order', '
|
37 |
$session_data['items_view'] = $this->get_from_session('items_view', 'thumbs');
|
38 |
$session_data['clipboard_task'] = $this->get_from_session('clipboard_task', '');
|
39 |
$session_data['clipboard_files'] = $this->get_from_session('clipboard_files', '');
|
@@ -164,7 +164,8 @@ class FilemanagerModel {
|
|
164 |
}
|
165 |
}
|
166 |
|
167 |
-
$result = $sort_order == 'asc' ? array_merge($dirs, $files) : array_merge($files, $dirs);
|
|
|
168 |
return $result;
|
169 |
}
|
170 |
|
32 |
////////////////////////////////////////////////////////////////////////////////////////
|
33 |
public function get_file_manager_data() {
|
34 |
$session_data = array();
|
35 |
+
$session_data['sort_by'] = $this->get_from_session('sort_by', 'date_modified');
|
36 |
+
$session_data['sort_order'] = $this->get_from_session('sort_order', 'desc');
|
37 |
$session_data['items_view'] = $this->get_from_session('items_view', 'thumbs');
|
38 |
$session_data['clipboard_task'] = $this->get_from_session('clipboard_task', '');
|
39 |
$session_data['clipboard_files'] = $this->get_from_session('clipboard_files', '');
|
164 |
}
|
165 |
}
|
166 |
|
167 |
+
// $result = $sort_order == 'asc' ? array_merge($dirs, $files) : array_merge($files, $dirs);
|
168 |
+
$result = array_merge($dirs, $files);
|
169 |
return $result;
|
170 |
}
|
171 |
|
filemanager/view.php
CHANGED
@@ -83,17 +83,6 @@ class FilemanagerView {
|
|
83 |
var callback = "<?php echo (isset($_REQUEST['callback']) ? esc_html($_REQUEST['callback']) : ''); ?>";
|
84 |
var sortBy = "<?php echo $sort_by; ?>";
|
85 |
var sortOrder = "<?php echo $sort_order; ?>";
|
86 |
-
jQuery(document).ready(function () {
|
87 |
-
jQuery("#search_by_name .search_by_name").on("input keyup", function() {
|
88 |
-
var search_by_name = jQuery(this).val();
|
89 |
-
jQuery("#explorer_body .explorer_item").each(function() {
|
90 |
-
jQuery(this).hide();
|
91 |
-
if (jQuery(this).find(".item_name").html().trim().toLowerCase().indexOf(search_by_name) !== -1) {
|
92 |
-
jQuery(this).show();
|
93 |
-
}
|
94 |
-
});
|
95 |
-
});
|
96 |
-
});
|
97 |
</script>
|
98 |
<script src="<?php echo WD_BWG_URL; ?>/filemanager/js/default.js?ver=<?php echo wd_bwg_version(); ?>"></script>
|
99 |
<link href="<?php echo WD_BWG_URL; ?>/filemanager/css/default.css?ver=<?php echo wd_bwg_version(); ?>" type="text/css" rel="stylesheet">
|
@@ -133,7 +122,7 @@ class FilemanagerView {
|
|
133 |
<a class="ctrl_bar_btn btn_remove_items" onclick="onBtnRemoveItemsClick(event, this);" title="<?php echo __('Remove items', 'bwg_back'); ?>"></a>
|
134 |
<span class="ctrl_bar_divider"></span>
|
135 |
<span class="ctrl_bar_btn">
|
136 |
-
<a class="ctrl_bar_btn wd-btn wd-btn-primary wd-btn-icon wd-btn-uplaod"
|
137 |
</span>
|
138 |
<?php if ($bwg_options->enable_ML_import) { ?>
|
139 |
<span class="ctrl_bar_divider"></span>
|
@@ -167,9 +156,9 @@ class FilemanagerView {
|
|
167 |
<div id="explorer_header_wrapper">
|
168 |
<div id="explorer_header_container">
|
169 |
<div id="explorer_header">
|
170 |
-
<span class="item_numbering"
|
171 |
<span class="item_icon"></span>
|
172 |
-
<span class="item_name">
|
173 |
<span class="clickable" onclick="onNameHeaderClick(event, this);">
|
174 |
<?php
|
175 |
echo 'Name';
|
@@ -181,7 +170,7 @@ class FilemanagerView {
|
|
181 |
?>
|
182 |
</span>
|
183 |
</span>
|
184 |
-
<span class="item_size">
|
185 |
<span class="clickable" onclick="onSizeHeaderClick(event, this);">
|
186 |
<?php
|
187 |
echo 'Size';
|
@@ -193,7 +182,7 @@ class FilemanagerView {
|
|
193 |
?>
|
194 |
</span>
|
195 |
</span>
|
196 |
-
<span class="item_date_modified">
|
197 |
<span class="clickable" onclick="onDateModifiedHeaderClick(event, this);">
|
198 |
<?php
|
199 |
echo 'Date modified';
|
@@ -273,14 +262,14 @@ class FilemanagerView {
|
|
273 |
</div>
|
274 |
<div class="ctrls_bar ctrls_bar_footer">
|
275 |
<div class="ctrls_left">
|
276 |
-
<a class="ctrl_bar_btn wd-btn wd-btn-primary wd-not-image none_select"
|
277 |
</div>
|
278 |
<div class="ctrls_right">
|
279 |
<span id="file_names_span">
|
280 |
<span>
|
281 |
</span>
|
282 |
</span>
|
283 |
-
<a class="ctrl_bar_btn btn_open wd-btn wd-btn-primary wd-btn-icon-add wd-btn-add none_select"
|
284 |
<span class="ctrl_bar_empty_devider"></span>
|
285 |
<a class="ctrl_bar_btn btn_cancel wd-btn wd-btn-primary wd-btn-icon wd-btn-cancel none_select" onclick="onBtnCancelClick(event, this);"><?php echo 'Cancel'; ?></a>
|
286 |
</div>
|
83 |
var callback = "<?php echo (isset($_REQUEST['callback']) ? esc_html($_REQUEST['callback']) : ''); ?>";
|
84 |
var sortBy = "<?php echo $sort_by; ?>";
|
85 |
var sortOrder = "<?php echo $sort_order; ?>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
</script>
|
87 |
<script src="<?php echo WD_BWG_URL; ?>/filemanager/js/default.js?ver=<?php echo wd_bwg_version(); ?>"></script>
|
88 |
<link href="<?php echo WD_BWG_URL; ?>/filemanager/css/default.css?ver=<?php echo wd_bwg_version(); ?>" type="text/css" rel="stylesheet">
|
122 |
<a class="ctrl_bar_btn btn_remove_items" onclick="onBtnRemoveItemsClick(event, this);" title="<?php echo __('Remove items', 'bwg_back'); ?>"></a>
|
123 |
<span class="ctrl_bar_divider"></span>
|
124 |
<span class="ctrl_bar_btn">
|
125 |
+
<a id="upload_images" class="ctrl_bar_btn wd-btn wd-btn-primary wd-btn-icon wd-btn-uplaod" onclick="onBtnShowUploaderClick(event, this);"><?php echo __('Upload files', 'bwg_back'); ?></a>
|
126 |
</span>
|
127 |
<?php if ($bwg_options->enable_ML_import) { ?>
|
128 |
<span class="ctrl_bar_divider"></span>
|
156 |
<div id="explorer_header_wrapper">
|
157 |
<div id="explorer_header_container">
|
158 |
<div id="explorer_header">
|
159 |
+
<span class="item_numbering"><?php echo $items_view == 'thumbs' ? __('Order by:', 'bwg') : '#'; ?></span>
|
160 |
<span class="item_icon"></span>
|
161 |
+
<span class="item_name" title="<?php _e('Click to sort by name', 'bwg'); ?>">
|
162 |
<span class="clickable" onclick="onNameHeaderClick(event, this);">
|
163 |
<?php
|
164 |
echo 'Name';
|
170 |
?>
|
171 |
</span>
|
172 |
</span>
|
173 |
+
<span class="item_size" title="<?php _e('Click to sort by size', 'bwg'); ?>">
|
174 |
<span class="clickable" onclick="onSizeHeaderClick(event, this);">
|
175 |
<?php
|
176 |
echo 'Size';
|
182 |
?>
|
183 |
</span>
|
184 |
</span>
|
185 |
+
<span class="item_date_modified" title="<?php _e('Click to sort by date modified', 'bwg'); ?>">
|
186 |
<span class="clickable" onclick="onDateModifiedHeaderClick(event, this);">
|
187 |
<?php
|
188 |
echo 'Date modified';
|
262 |
</div>
|
263 |
<div class="ctrls_bar ctrls_bar_footer">
|
264 |
<div class="ctrls_left">
|
265 |
+
<a id="select_all_images" class="ctrl_bar_btn wd-btn wd-btn-primary wd-not-image none_select" onclick="onBtnSelectAllClick();"><?php echo __('Select All', 'bwg_back'); ?></a>
|
266 |
</div>
|
267 |
<div class="ctrls_right">
|
268 |
<span id="file_names_span">
|
269 |
<span>
|
270 |
</span>
|
271 |
</span>
|
272 |
+
<a id="add_selectid_img" class="ctrl_bar_btn btn_open wd-btn wd-btn-primary wd-btn-icon-add wd-btn-add none_select" onclick="onBtnOpenClick(event, this);"><?php echo ((isset($_REQUEST['callback']) && esc_html($_REQUEST['callback']) == 'bwg_add_image') ? __('Add selected images to gallery', 'bwg_back') : __('Add', 'bwg_back')); ?></a>
|
273 |
<span class="ctrl_bar_empty_devider"></span>
|
274 |
<a class="ctrl_bar_btn btn_cancel wd-btn wd-btn-primary wd-btn-icon wd-btn-cancel none_select" onclick="onBtnCancelClick(event, this);"><?php echo 'Cancel'; ?></a>
|
275 |
</div>
|
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.3.
|
8 |
* Author: WebDorado
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -1923,7 +1923,7 @@ function bwg_activate() {
|
|
1923 |
));
|
1924 |
}
|
1925 |
$version = WD_BWG_VERSION;
|
1926 |
-
$new_version = '1.3.
|
1927 |
if ($version && version_compare($version, $new_version, '<')) {
|
1928 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1929 |
bwg_update($version);
|
@@ -1975,7 +1975,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
|
|
1975 |
|
1976 |
function bwg_update_hook() {
|
1977 |
$version = WD_BWG_VERSION;
|
1978 |
-
$new_version = '1.3.
|
1979 |
if ($version && version_compare($version, $new_version, '<')) {
|
1980 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1981 |
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.3.5
|
8 |
* Author: WebDorado
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
1923 |
));
|
1924 |
}
|
1925 |
$version = WD_BWG_VERSION;
|
1926 |
+
$new_version = '1.3.5';
|
1927 |
if ($version && version_compare($version, $new_version, '<')) {
|
1928 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1929 |
bwg_update($version);
|
1975 |
|
1976 |
function bwg_update_hook() {
|
1977 |
$version = WD_BWG_VERSION;
|
1978 |
+
$new_version = '1.3.5';
|
1979 |
if ($version && version_compare($version, $new_version, '<')) {
|
1980 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1981 |
bwg_update($version);
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
|
|
4 |
Tags: album, image gallery, gallery, image, images, lightbox, photo, photo gallery, photos, responsive, thumbnail, widget
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.5
|
7 |
-
Stable tag: 1.3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -225,6 +225,10 @@ To enable the feature of adding Media Library images, go to Photo Gallery > Opti
|
|
225 |
|
226 |
== Changelog ==
|
227 |
|
|
|
|
|
|
|
|
|
228 |
= 1.3.4 =
|
229 |
* Changed: Comments and rates pages design.
|
230 |
* Fixed: Translated alert messages.
|
4 |
Tags: album, image gallery, gallery, image, images, lightbox, photo, photo gallery, photos, responsive, thumbnail, widget
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.5
|
7 |
+
Stable tag: 1.3.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
225 |
|
226 |
== Changelog ==
|
227 |
|
228 |
+
= 1.3.5 =
|
229 |
+
* Fixed: Case sensitive search by name in Filemanager bug.
|
230 |
+
* Changed: Show last uploaded files as first in Filemanager.
|
231 |
+
|
232 |
= 1.3.4 =
|
233 |
* Changed: Comments and rates pages design.
|
234 |
* Fixed: Translated alert messages.
|