Version Description
Download this release
Release Info
Developer | webdorado |
Plugin | Photo Gallery by WD – Responsive Photo Gallery |
Version | 1.0.7 |
Comparing to | |
See all releases |
Code changes from version 1.0.6 to 1.0.7
- admin/controllers/BWGControllerAlbums_bwg.php +23 -11
- admin/controllers/BWGControllerGalleries_bwg.php +60 -31
- admin/views/BWGViewAlbums_bwg.php +6 -2
- admin/views/BWGViewBWGShortcode.php +2 -6
- admin/views/BWGViewEditThumb.php +4 -0
- admin/views/BWGViewGalleries_bwg.php +25 -6
- admin/views/BWGViewOptions_bwg.php +0 -4
- css/bwg_frontend.css +2 -0
- css/bwg_tables.css +1 -0
- css/font-awesome-4.0.1/css/font-awesome.min.css +0 -395
- css/font-awesome-4.0.1/{css/font-awesome.css → font-awesome.css} +2 -2
- filemanager/UploadHandler.php +23 -17
- filemanager/controller.php +22 -25
- filemanager/css/default.css +216 -149
- filemanager/css/default_view_list.css +76 -68
- filemanager/css/default_view_thumbs.css +46 -42
- filemanager/js/default.js +274 -257
- filemanager/model.php +3 -3
- filemanager/view.php +31 -18
- framework/WDWLibrary.php +16 -4
- frontend/models/BWGModelThumbnails.php +1 -1
- frontend/views/BWGViewGalleryBox.php +1 -1
- js/bwg.js +92 -63
- js/bwg_frontend.js +1 -1
- photo-gallery.php +11 -11
- readme.txt +1 -1
admin/controllers/BWGControllerAlbums_bwg.php
CHANGED
@@ -228,7 +228,7 @@ class BWGControllerAlbums_bwg {
|
|
228 |
$flag = FALSE;
|
229 |
$album_ids_col = $wpdb->get_col('SELECT id FROM ' . $wpdb->prefix . 'bwg_album');
|
230 |
foreach ($album_ids_col as $album_id) {
|
231 |
-
if (isset($_POST['check_' . $album_id])) {
|
232 |
$flag = TRUE;
|
233 |
$query = $wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'bwg_album WHERE id="%d"', $album_id);
|
234 |
$query_gal = $wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'bwg_album_gallery WHERE id="%d" OR (is_album AND alb_gal_id="%d")', $album_id, $album_id);
|
@@ -260,11 +260,17 @@ class BWGControllerAlbums_bwg {
|
|
260 |
public function publish_all() {
|
261 |
global $wpdb;
|
262 |
$flag = FALSE;
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
268 |
}
|
269 |
}
|
270 |
if ($flag) {
|
@@ -291,11 +297,17 @@ class BWGControllerAlbums_bwg {
|
|
291 |
public function unpublish_all() {
|
292 |
global $wpdb;
|
293 |
$flag = FALSE;
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
299 |
}
|
300 |
}
|
301 |
if ($flag) {
|
228 |
$flag = FALSE;
|
229 |
$album_ids_col = $wpdb->get_col('SELECT id FROM ' . $wpdb->prefix . 'bwg_album');
|
230 |
foreach ($album_ids_col as $album_id) {
|
231 |
+
if (isset($_POST['check_' . $album_id]) || isset($_POST['check_all_items'])) {
|
232 |
$flag = TRUE;
|
233 |
$query = $wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'bwg_album WHERE id="%d"', $album_id);
|
234 |
$query_gal = $wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'bwg_album_gallery WHERE id="%d" OR (is_album AND alb_gal_id="%d")', $album_id, $album_id);
|
260 |
public function publish_all() {
|
261 |
global $wpdb;
|
262 |
$flag = FALSE;
|
263 |
+
if (isset($_POST['check_all_items'])) {
|
264 |
+
$wpdb->query('UPDATE ' . $wpdb->prefix . 'bwg_album SET published=1');
|
265 |
+
$flag = TRUE;
|
266 |
+
}
|
267 |
+
else {
|
268 |
+
$alum_ids_col = $wpdb->get_col('SELECT id FROM ' . $wpdb->prefix . 'bwg_album');
|
269 |
+
foreach ($alum_ids_col as $album_id) {
|
270 |
+
if (isset($_POST['check_' . $album_id])) {
|
271 |
+
$flag = TRUE;
|
272 |
+
$wpdb->update($wpdb->prefix . 'bwg_album', array('published' => 1), array('id' => $album_id));
|
273 |
+
}
|
274 |
}
|
275 |
}
|
276 |
if ($flag) {
|
297 |
public function unpublish_all() {
|
298 |
global $wpdb;
|
299 |
$flag = FALSE;
|
300 |
+
if (isset($_POST['check_all_items'])) {
|
301 |
+
$wpdb->query('UPDATE ' . $wpdb->prefix . 'bwg_album SET published=0');
|
302 |
+
$flag = TRUE;
|
303 |
+
}
|
304 |
+
else {
|
305 |
+
$album_ids_col = $wpdb->get_col('SELECT id FROM ' . $wpdb->prefix . 'bwg_album');
|
306 |
+
foreach ($album_ids_col as $album_id) {
|
307 |
+
if (isset($_POST['check_' . $album_id])) {
|
308 |
+
$flag = TRUE;
|
309 |
+
$wpdb->update($wpdb->prefix . 'bwg_album', array('published' => 0), array('id' => $album_id));
|
310 |
+
}
|
311 |
}
|
312 |
}
|
313 |
if ($flag) {
|
admin/controllers/BWGControllerGalleries_bwg.php
CHANGED
@@ -110,13 +110,14 @@ class BWGControllerGalleries_bwg {
|
|
110 |
|
111 |
public function image_recover_all() {
|
112 |
global $wpdb;
|
|
|
113 |
$options = $wpdb->get_row('SELECT * FROM ' . $wpdb->prefix . 'bwg_option WHERE id=1');
|
114 |
$thumb_width = $options->thumb_width;
|
115 |
$thumb_height = $options->thumb_height;
|
116 |
-
$
|
117 |
-
foreach ($
|
118 |
-
if (isset($_POST['check_' . $
|
119 |
-
$this->recover_image($
|
120 |
}
|
121 |
}
|
122 |
}
|
@@ -131,7 +132,7 @@ class BWGControllerGalleries_bwg {
|
|
131 |
list($width_orig, $height_orig, $type_orig) = getimagesize($filename);
|
132 |
$percent = $width_orig / $thumb_width;
|
133 |
$thumb_height = $height_orig / $percent;
|
134 |
-
|
135 |
if ($type_orig == 2) {
|
136 |
$img_r = imagecreatefromjpeg($filename);
|
137 |
$dst_r = ImageCreateTrueColor($thumb_width, $thumb_height);
|
@@ -166,6 +167,7 @@ class BWGControllerGalleries_bwg {
|
|
166 |
imagedestroy($img_r);
|
167 |
imagedestroy($dst_r);
|
168 |
}
|
|
|
169 |
?>
|
170 |
<script language="javascript">
|
171 |
var image_src = window.parent.document.getElementById("image_thumb_<?php echo $id; ?>").src;
|
@@ -182,10 +184,16 @@ class BWGControllerGalleries_bwg {
|
|
182 |
|
183 |
public function image_publish_all() {
|
184 |
global $wpdb;
|
185 |
-
$
|
186 |
-
|
187 |
-
|
188 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
189 |
}
|
190 |
}
|
191 |
}
|
@@ -198,10 +206,16 @@ class BWGControllerGalleries_bwg {
|
|
198 |
|
199 |
public function image_unpublish_all() {
|
200 |
global $wpdb;
|
201 |
-
$
|
202 |
-
|
203 |
-
|
204 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
205 |
}
|
206 |
}
|
207 |
}
|
@@ -223,9 +237,10 @@ class BWGControllerGalleries_bwg {
|
|
223 |
|
224 |
public function image_delete_all() {
|
225 |
global $wpdb;
|
226 |
-
$
|
|
|
227 |
foreach ($image_ids_col as $image_id) {
|
228 |
-
if (isset($_POST['check_' . $image_id])) {
|
229 |
$wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'bwg_image WHERE id="%d"', $image_id));
|
230 |
$wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'bwg_image_comment WHERE image_id="%d"', $image_id));
|
231 |
$tag_ids = $wpdb->get_col($wpdb->prepare('SELECT tag_id FROM ' . $wpdb->prefix . 'bwg_image_tag WHERE image_id="%d"', $image_id));
|
@@ -244,17 +259,17 @@ class BWGControllerGalleries_bwg {
|
|
244 |
global $wpdb;
|
245 |
global $WD_BWG_UPLOAD_DIR;
|
246 |
$options = $wpdb->get_row('SELECT * FROM ' . $wpdb->prefix . 'bwg_option WHERE id=1');
|
|
|
|
|
247 |
switch ($options->built_in_watermark_type) {
|
248 |
case 'text':
|
249 |
-
$images = $wpdb->get_results('SELECT * FROM ' . $wpdb->prefix . 'bwg_image');
|
250 |
foreach ($images as $image) {
|
251 |
-
if (isset($_POST['check_' . $image->id])) {
|
252 |
$this->set_text_watermark(ABSPATH . $WD_BWG_UPLOAD_DIR . $image->image_url, ABSPATH . $WD_BWG_UPLOAD_DIR . $image->image_url, $options->built_in_watermark_text, $options->built_in_watermark_font, $options->built_in_watermark_font_size, '#' . $options->built_in_watermark_color, $options->built_in_watermark_opacity, $options->built_in_watermark_position);
|
253 |
}
|
254 |
}
|
255 |
break;
|
256 |
case 'image':
|
257 |
-
$images = $wpdb->get_results('SELECT * FROM ' . $wpdb->prefix . 'bwg_image');
|
258 |
foreach ($images as $image) {
|
259 |
if (isset($_POST['check_' . $image->id])) {
|
260 |
$this->set_image_watermark (ABSPATH . $WD_BWG_UPLOAD_DIR . $image->image_url, ABSPATH . $WD_BWG_UPLOAD_DIR . $image->image_url, $options->built_in_watermark_url, $options->built_in_watermark_size, $options->built_in_watermark_size, $options->built_in_watermark_position);
|
@@ -321,7 +336,7 @@ class BWGControllerGalleries_bwg {
|
|
321 |
$left = ($width - $watermark_sizes['width']) / 2;
|
322 |
break;
|
323 |
}
|
324 |
-
|
325 |
if ($type == 2) {
|
326 |
$image = imagecreatefromjpeg($original_filename);
|
327 |
imagettftext($image, $watermark_font_size, 0, $left, $top, $watermark_color, $watermark_font, $watermark_text);
|
@@ -348,6 +363,7 @@ class BWGControllerGalleries_bwg {
|
|
348 |
imagedestroy($image);
|
349 |
}
|
350 |
imagedestroy($watermark_image);
|
|
|
351 |
}
|
352 |
|
353 |
function set_image_watermark ($original_filename, $dest_filename, $watermark_url, $watermark_height, $watermark_width, $watermark_position) {
|
@@ -376,7 +392,7 @@ class BWGControllerGalleries_bwg {
|
|
376 |
$left = ($width - $watermark_width) / 2;
|
377 |
break;
|
378 |
}
|
379 |
-
|
380 |
if ($type_watermark == 2) {
|
381 |
$watermark_image = imagecreatefromjpeg($watermark_url);
|
382 |
}
|
@@ -425,6 +441,7 @@ class BWGControllerGalleries_bwg {
|
|
425 |
imagedestroy($tempimage);
|
426 |
}
|
427 |
imagedestroy($watermark_image);
|
|
|
428 |
}
|
429 |
|
430 |
public function save_image_db() {
|
@@ -701,7 +718,7 @@ class BWGControllerGalleries_bwg {
|
|
701 |
$flag = FALSE;
|
702 |
$gal_ids_col = $wpdb->get_col('SELECT id FROM ' . $wpdb->prefix . 'bwg_gallery');
|
703 |
foreach ($gal_ids_col as $gal_id) {
|
704 |
-
if (isset($_POST['check_' . $gal_id])) {
|
705 |
$flag = TRUE;
|
706 |
$query = $wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'bwg_gallery WHERE id="%d"', $gal_id);
|
707 |
$wpdb->query($query);
|
@@ -735,11 +752,17 @@ class BWGControllerGalleries_bwg {
|
|
735 |
public function publish_all() {
|
736 |
global $wpdb;
|
737 |
$flag = FALSE;
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
743 |
}
|
744 |
}
|
745 |
if ($flag) {
|
@@ -766,11 +789,17 @@ class BWGControllerGalleries_bwg {
|
|
766 |
public function unpublish_all() {
|
767 |
global $wpdb;
|
768 |
$flag = FALSE;
|
769 |
-
|
770 |
-
|
771 |
-
|
772 |
-
|
773 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
774 |
}
|
775 |
}
|
776 |
if ($flag) {
|
110 |
|
111 |
public function image_recover_all() {
|
112 |
global $wpdb;
|
113 |
+
$gallery_id = ((isset($_POST['current_id'])) ? esc_html(stripslashes($_POST['current_id'])) : 0);
|
114 |
$options = $wpdb->get_row('SELECT * FROM ' . $wpdb->prefix . 'bwg_option WHERE id=1');
|
115 |
$thumb_width = $options->thumb_width;
|
116 |
$thumb_height = $options->thumb_height;
|
117 |
+
$image_ids_col = $wpdb->get_col($wpdb->prepare('SELECT id FROM ' . $wpdb->prefix . 'bwg_image WHERE gallery_id="%d"', $gallery_id));
|
118 |
+
foreach ($image_ids_col as $image_id) {
|
119 |
+
if (isset($_POST['check_' . $image_id]) || isset($_POST['check_all_items'])) {
|
120 |
+
$this->recover_image($image_id, $thumb_width, $thumb_height);
|
121 |
}
|
122 |
}
|
123 |
}
|
132 |
list($width_orig, $height_orig, $type_orig) = getimagesize($filename);
|
133 |
$percent = $width_orig / $thumb_width;
|
134 |
$thumb_height = $height_orig / $percent;
|
135 |
+
ini_set('memory_limit', '-1');
|
136 |
if ($type_orig == 2) {
|
137 |
$img_r = imagecreatefromjpeg($filename);
|
138 |
$dst_r = ImageCreateTrueColor($thumb_width, $thumb_height);
|
167 |
imagedestroy($img_r);
|
168 |
imagedestroy($dst_r);
|
169 |
}
|
170 |
+
ini_restore('memory_limit');
|
171 |
?>
|
172 |
<script language="javascript">
|
173 |
var image_src = window.parent.document.getElementById("image_thumb_<?php echo $id; ?>").src;
|
184 |
|
185 |
public function image_publish_all() {
|
186 |
global $wpdb;
|
187 |
+
$gallery_id = ((isset($_POST['current_id'])) ? esc_html(stripslashes($_POST['current_id'])) : 0);
|
188 |
+
if (isset($_POST['check_all_items'])) {
|
189 |
+
$wpdb->query($wpdb->prepare('UPDATE ' . $wpdb->prefix . 'bwg_image SET published=1 WHERE gallery_id="%d"', $gallery_id));
|
190 |
+
}
|
191 |
+
else {
|
192 |
+
$image_ids_col = $wpdb->get_col($wpdb->prepare('SELECT id FROM ' . $wpdb->prefix . 'bwg_image WHERE gallery_id="%d"', $gallery_id));
|
193 |
+
foreach ($image_ids_col as $image_id) {
|
194 |
+
if (isset($_POST['check_' . $image_id])) {
|
195 |
+
$wpdb->update($wpdb->prefix . 'bwg_image', array('published' => 1), array('id' => $image_id));
|
196 |
+
}
|
197 |
}
|
198 |
}
|
199 |
}
|
206 |
|
207 |
public function image_unpublish_all() {
|
208 |
global $wpdb;
|
209 |
+
$gallery_id = ((isset($_POST['current_id'])) ? esc_html(stripslashes($_POST['current_id'])) : 0);
|
210 |
+
if (isset($_POST['check_all_items'])) {
|
211 |
+
$wpdb->query($wpdb->prepare('UPDATE ' . $wpdb->prefix . 'bwg_image SET published=0 WHERE gallery_id="%d"', $gallery_id));
|
212 |
+
}
|
213 |
+
else {
|
214 |
+
$image_ids_col = $wpdb->get_col($wpdb->prepare('SELECT id FROM ' . $wpdb->prefix . 'bwg_image WHERE gallery_id="%d"', $gallery_id));
|
215 |
+
foreach ($image_ids_col as $image_id) {
|
216 |
+
if (isset($_POST['check_' . $image_id])) {
|
217 |
+
$wpdb->update($wpdb->prefix . 'bwg_image', array('published' => 0), array('id' => $image_id));
|
218 |
+
}
|
219 |
}
|
220 |
}
|
221 |
}
|
237 |
|
238 |
public function image_delete_all() {
|
239 |
global $wpdb;
|
240 |
+
$gallery_id = ((isset($_POST['current_id'])) ? esc_html(stripslashes($_POST['current_id'])) : 0);
|
241 |
+
$image_ids_col = $wpdb->get_col($wpdb->prepare('SELECT id FROM ' . $wpdb->prefix . 'bwg_image WHERE gallery_id="%d"', $gallery_id));
|
242 |
foreach ($image_ids_col as $image_id) {
|
243 |
+
if (isset($_POST['check_' . $image_id]) || isset($_POST['check_all_items'])) {
|
244 |
$wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'bwg_image WHERE id="%d"', $image_id));
|
245 |
$wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'bwg_image_comment WHERE image_id="%d"', $image_id));
|
246 |
$tag_ids = $wpdb->get_col($wpdb->prepare('SELECT tag_id FROM ' . $wpdb->prefix . 'bwg_image_tag WHERE image_id="%d"', $image_id));
|
259 |
global $wpdb;
|
260 |
global $WD_BWG_UPLOAD_DIR;
|
261 |
$options = $wpdb->get_row('SELECT * FROM ' . $wpdb->prefix . 'bwg_option WHERE id=1');
|
262 |
+
$gallery_id = ((isset($_POST['current_id'])) ? esc_html(stripslashes($_POST['current_id'])) : 0);
|
263 |
+
$images = $wpdb->get_results($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_image WHERE gallery_id="%d"', $gallery_id));
|
264 |
switch ($options->built_in_watermark_type) {
|
265 |
case 'text':
|
|
|
266 |
foreach ($images as $image) {
|
267 |
+
if (isset($_POST['check_' . $image->id]) || isset($_POST['check_all_items'])) {
|
268 |
$this->set_text_watermark(ABSPATH . $WD_BWG_UPLOAD_DIR . $image->image_url, ABSPATH . $WD_BWG_UPLOAD_DIR . $image->image_url, $options->built_in_watermark_text, $options->built_in_watermark_font, $options->built_in_watermark_font_size, '#' . $options->built_in_watermark_color, $options->built_in_watermark_opacity, $options->built_in_watermark_position);
|
269 |
}
|
270 |
}
|
271 |
break;
|
272 |
case 'image':
|
|
|
273 |
foreach ($images as $image) {
|
274 |
if (isset($_POST['check_' . $image->id])) {
|
275 |
$this->set_image_watermark (ABSPATH . $WD_BWG_UPLOAD_DIR . $image->image_url, ABSPATH . $WD_BWG_UPLOAD_DIR . $image->image_url, $options->built_in_watermark_url, $options->built_in_watermark_size, $options->built_in_watermark_size, $options->built_in_watermark_position);
|
336 |
$left = ($width - $watermark_sizes['width']) / 2;
|
337 |
break;
|
338 |
}
|
339 |
+
ini_set('memory_limit', '-1');
|
340 |
if ($type == 2) {
|
341 |
$image = imagecreatefromjpeg($original_filename);
|
342 |
imagettftext($image, $watermark_font_size, 0, $left, $top, $watermark_color, $watermark_font, $watermark_text);
|
363 |
imagedestroy($image);
|
364 |
}
|
365 |
imagedestroy($watermark_image);
|
366 |
+
ini_restore('memory_limit');
|
367 |
}
|
368 |
|
369 |
function set_image_watermark ($original_filename, $dest_filename, $watermark_url, $watermark_height, $watermark_width, $watermark_position) {
|
392 |
$left = ($width - $watermark_width) / 2;
|
393 |
break;
|
394 |
}
|
395 |
+
ini_set('memory_limit', '-1');
|
396 |
if ($type_watermark == 2) {
|
397 |
$watermark_image = imagecreatefromjpeg($watermark_url);
|
398 |
}
|
441 |
imagedestroy($tempimage);
|
442 |
}
|
443 |
imagedestroy($watermark_image);
|
444 |
+
ini_restore('memory_limit');
|
445 |
}
|
446 |
|
447 |
public function save_image_db() {
|
718 |
$flag = FALSE;
|
719 |
$gal_ids_col = $wpdb->get_col('SELECT id FROM ' . $wpdb->prefix . 'bwg_gallery');
|
720 |
foreach ($gal_ids_col as $gal_id) {
|
721 |
+
if (isset($_POST['check_' . $gal_id]) || isset($_POST['check_all_items'])) {
|
722 |
$flag = TRUE;
|
723 |
$query = $wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'bwg_gallery WHERE id="%d"', $gal_id);
|
724 |
$wpdb->query($query);
|
752 |
public function publish_all() {
|
753 |
global $wpdb;
|
754 |
$flag = FALSE;
|
755 |
+
if (isset($_POST['check_all_items'])) {
|
756 |
+
$wpdb->query('UPDATE ' . $wpdb->prefix . 'bwg_gallery SET published=1');
|
757 |
+
$flag = TRUE;
|
758 |
+
}
|
759 |
+
else {
|
760 |
+
$gal_ids_col = $wpdb->get_col('SELECT id FROM ' . $wpdb->prefix . 'bwg_gallery');
|
761 |
+
foreach ($gal_ids_col as $gal_id) {
|
762 |
+
if (isset($_POST['check_' . $gal_id])) {
|
763 |
+
$flag = TRUE;
|
764 |
+
$wpdb->update($wpdb->prefix . 'bwg_gallery', array('published' => 1), array('id' => $gal_id));
|
765 |
+
}
|
766 |
}
|
767 |
}
|
768 |
if ($flag) {
|
789 |
public function unpublish_all() {
|
790 |
global $wpdb;
|
791 |
$flag = FALSE;
|
792 |
+
if (isset($_POST['check_all_items'])) {
|
793 |
+
$wpdb->query('UPDATE ' . $wpdb->prefix . 'bwg_gallery SET published=0');
|
794 |
+
$flag = TRUE;
|
795 |
+
}
|
796 |
+
else {
|
797 |
+
$gal_ids_col = $wpdb->get_col('SELECT id FROM ' . $wpdb->prefix . 'bwg_gallery');
|
798 |
+
foreach ($gal_ids_col as $gal_id) {
|
799 |
+
if (isset($_POST['check_' . $gal_id])) {
|
800 |
+
$flag = TRUE;
|
801 |
+
$wpdb->update($wpdb->prefix . 'bwg_gallery', array('published' => 0), array('id' => $gal_id));
|
802 |
+
}
|
803 |
}
|
804 |
}
|
805 |
if ($flag) {
|
admin/views/BWGViewAlbums_bwg.php
CHANGED
@@ -54,6 +54,10 @@ class BWGViewAlbums_bwg {
|
|
54 |
</h2>
|
55 |
<div id="draganddrop" class="updated" style="display:none;"><strong><p>Changes made in this table shoud be saved.</p></strong></div>
|
56 |
<div class="buttons_div">
|
|
|
|
|
|
|
|
|
57 |
<input id="show_hide_weights" class="button" type="button" onclick="spider_show_hide_weights();return false;" value="Hide order column" />
|
58 |
<input class="button" type="submit" onclick="spider_set_input_value('task', 'save_order')" value="Save Order" />
|
59 |
<input class="button" type="submit" onclick="spider_set_input_value('task', 'publish_all')" value="Publish" />
|
@@ -73,7 +77,7 @@ class BWGViewAlbums_bwg {
|
|
73 |
<table class="wp-list-table widefat fixed pages">
|
74 |
<thead>
|
75 |
<th class="table_small_col"></th>
|
76 |
-
<th class="manage-column column-cb check-column table_small_col"><input id="check_all" type="checkbox" style="margin:0;" /></th>
|
77 |
<th class="table_small_col <?php if ($order_by == 'id') {echo $order_class;} ?>">
|
78 |
<a onclick="spider_set_input_value('task', '');
|
79 |
spider_set_input_value('order_by', 'id');
|
@@ -142,7 +146,7 @@ class BWGViewAlbums_bwg {
|
|
142 |
?>
|
143 |
<tr id="tr_<?php echo $row_data->id; ?>" <?php echo $alternate; ?>>
|
144 |
<td class="connectedSortable table_small_col"><div class="handle" style="margin:5px auto 0 auto;" title="Drag to re-order"></div></td>
|
145 |
-
<td class="table_small_col check-column"><input id="check_<?php echo $row_data->id; ?>" name="check_<?php echo $row_data->id; ?>" type="checkbox" /></td>
|
146 |
<td class="table_small_col"><?php echo $row_data->id; ?></td>
|
147 |
<td><a onclick="spider_set_input_value('task', 'edit');
|
148 |
spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
|
54 |
</h2>
|
55 |
<div id="draganddrop" class="updated" style="display:none;"><strong><p>Changes made in this table shoud be saved.</p></strong></div>
|
56 |
<div class="buttons_div">
|
57 |
+
<span class="button non_selectable" onclick="spider_check_all_items()">
|
58 |
+
<input type="checkbox" id="check_all_items" name="check_all_items" onclick="spider_check_all_items_checkbox()" style="margin: 0; vertical-align: middle;" />
|
59 |
+
<span style="vertical-align: middle;">Select All</span>
|
60 |
+
</span>
|
61 |
<input id="show_hide_weights" class="button" type="button" onclick="spider_show_hide_weights();return false;" value="Hide order column" />
|
62 |
<input class="button" type="submit" onclick="spider_set_input_value('task', 'save_order')" value="Save Order" />
|
63 |
<input class="button" type="submit" onclick="spider_set_input_value('task', 'publish_all')" value="Publish" />
|
77 |
<table class="wp-list-table widefat fixed pages">
|
78 |
<thead>
|
79 |
<th class="table_small_col"></th>
|
80 |
+
<th class="manage-column column-cb check-column table_small_col"><input id="check_all" onclick="spider_check_all(this)" type="checkbox" style="margin:0;" /></th>
|
81 |
<th class="table_small_col <?php if ($order_by == 'id') {echo $order_class;} ?>">
|
82 |
<a onclick="spider_set_input_value('task', '');
|
83 |
spider_set_input_value('order_by', 'id');
|
146 |
?>
|
147 |
<tr id="tr_<?php echo $row_data->id; ?>" <?php echo $alternate; ?>>
|
148 |
<td class="connectedSortable table_small_col"><div class="handle" style="margin:5px auto 0 auto;" title="Drag to re-order"></div></td>
|
149 |
+
<td class="table_small_col check-column"><input id="check_<?php echo $row_data->id; ?>" name="check_<?php echo $row_data->id; ?>" onclick="spider_check_all(this)" type="checkbox" /></td>
|
150 |
<td class="table_small_col"><?php echo $row_data->id; ?></td>
|
151 |
<td><a onclick="spider_set_input_value('task', 'edit');
|
152 |
spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
|
admin/views/BWGViewBWGShortcode.php
CHANGED
@@ -30,11 +30,7 @@ class BWGViewBWGShortcode {
|
|
30 |
$from_menu = ((isset($_GET['page']) && (esc_html($_GET['page']) == 'BWGShortcode')) ? TRUE : FALSE);
|
31 |
$effects = array(
|
32 |
'none' => 'None',
|
33 |
-
'cubeH' => 'Cube Horizontal',
|
34 |
'fade' => 'Fade',
|
35 |
-
'sliceV' => 'Slice Vertical',
|
36 |
-
'scaleOut' => 'Scale Out',
|
37 |
-
'blindH' => 'Blind Horizontal',
|
38 |
);
|
39 |
$watermark_fonts = array(
|
40 |
'arial' => 'Arial',
|
@@ -61,7 +57,7 @@ class BWGViewBWGShortcode {
|
|
61 |
<?php
|
62 |
}
|
63 |
?>
|
64 |
-
<link rel="stylesheet" href="<?php echo WD_BWG_URL . '/css/bwg_shortcode.css'; ?>">
|
65 |
<link rel="stylesheet" href="<?php echo WD_BWG_URL . '/css/jquery-ui-1.10.3.custom.css'; ?>">
|
66 |
<script language="javascript" type="text/javascript" src="<?php echo get_option("siteurl"); ?>/wp-includes/js/jquery/jquery.js"></script>
|
67 |
<script language="javascript" type="text/javascript" src="<?php echo get_option("siteurl"); ?>/wp-includes/js/jquery/ui/jquery.ui.core.min.js"></script>
|
@@ -69,7 +65,7 @@ class BWGViewBWGShortcode {
|
|
69 |
<script language="javascript" type="text/javascript" src="<?php echo get_option("siteurl"); ?>/wp-includes/js/jquery/ui/jquery.ui.position.min.js"></script>
|
70 |
<script language="javascript" type="text/javascript" src="<?php echo get_option("siteurl"); ?>/wp-includes/js/jquery/ui/jquery.ui.tooltip.min.js"></script>
|
71 |
|
72 |
-
<script language="javascript" type="text/javascript" src="<?php echo WD_BWG_URL . '/js/bwg_shortcode.js?ver=
|
73 |
<script language="javascript" type="text/javascript" src="<?php echo WD_BWG_URL . '/js/jscolor/jscolor.js'; ?>"></script>
|
74 |
<?php
|
75 |
if (!$from_menu) {
|
30 |
$from_menu = ((isset($_GET['page']) && (esc_html($_GET['page']) == 'BWGShortcode')) ? TRUE : FALSE);
|
31 |
$effects = array(
|
32 |
'none' => 'None',
|
|
|
33 |
'fade' => 'Fade',
|
|
|
|
|
|
|
34 |
);
|
35 |
$watermark_fonts = array(
|
36 |
'arial' => 'Arial',
|
57 |
<?php
|
58 |
}
|
59 |
?>
|
60 |
+
<link rel="stylesheet" href="<?php echo WD_BWG_URL . '/css/bwg_shortcode.css?ver='; ?><?php echo get_option("wd_bwg_version"); ?>">
|
61 |
<link rel="stylesheet" href="<?php echo WD_BWG_URL . '/css/jquery-ui-1.10.3.custom.css'; ?>">
|
62 |
<script language="javascript" type="text/javascript" src="<?php echo get_option("siteurl"); ?>/wp-includes/js/jquery/jquery.js"></script>
|
63 |
<script language="javascript" type="text/javascript" src="<?php echo get_option("siteurl"); ?>/wp-includes/js/jquery/ui/jquery.ui.core.min.js"></script>
|
65 |
<script language="javascript" type="text/javascript" src="<?php echo get_option("siteurl"); ?>/wp-includes/js/jquery/ui/jquery.ui.position.min.js"></script>
|
66 |
<script language="javascript" type="text/javascript" src="<?php echo get_option("siteurl"); ?>/wp-includes/js/jquery/ui/jquery.ui.tooltip.min.js"></script>
|
67 |
|
68 |
+
<script language="javascript" type="text/javascript" src="<?php echo WD_BWG_URL . '/js/bwg_shortcode.js?ver='; ?><?php echo get_option("wd_bwg_version"); ?>"></script>
|
69 |
<script language="javascript" type="text/javascript" src="<?php echo WD_BWG_URL . '/js/jscolor/jscolor.js'; ?>"></script>
|
70 |
<?php
|
71 |
if (!$from_menu) {
|
admin/views/BWGViewEditThumb.php
CHANGED
@@ -93,6 +93,7 @@ class BWGViewEditThumb {
|
|
93 |
$thumb_filename = ABSPATH . $WD_BWG_UPLOAD_DIR . $image_data->thumb_url;
|
94 |
$form_action = add_query_arg(array('action' => 'editThumb', 'type' => 'crop', 'image_id' => $image_id, 'width' => '800', 'height' => '500', 'TB_iframe' => '1'), admin_url('admin-ajax.php'));
|
95 |
}
|
|
|
96 |
list($width_orig, $height_orig, $type_orig) = getimagesize($filename);
|
97 |
if ($edit_type == 'crop') {
|
98 |
if ($type_orig == 2) {
|
@@ -135,6 +136,7 @@ class BWGViewEditThumb {
|
|
135 |
<?php
|
136 |
}
|
137 |
}
|
|
|
138 |
?>
|
139 |
<script language="javascript" type="text/javascript" src="<?php echo get_option("siteurl"); ?>/wp-includes/js/jquery/jquery.js"></script>
|
140 |
<script src="<?php echo WD_BWG_URL . '/js/Jcrop-1902/js/jquery.Jcrop.min.js'; ?>" type="text/javascript"></script>
|
@@ -308,6 +310,7 @@ class BWGViewEditThumb {
|
|
308 |
$thumb_filename = ABSPATH . $WD_BWG_UPLOAD_DIR . $image_data->thumb_url;
|
309 |
$form_action = add_query_arg(array('action' => 'editThumb', 'type' => 'rotate', 'image_id' => $image_id, 'width' => '650', 'height' => '500', 'TB_iframe' => '1'), admin_url('admin-ajax.php'));
|
310 |
}
|
|
|
311 |
list($width_rotate, $height_rotate, $type_rotate) = getimagesize($filename);
|
312 |
if ($edit_type == '270' || $edit_type == '90') {
|
313 |
if ($type_rotate == 2) {
|
@@ -464,6 +467,7 @@ class BWGViewEditThumb {
|
|
464 |
<?php
|
465 |
}
|
466 |
}
|
|
|
467 |
?>
|
468 |
<style>
|
469 |
.spider_rotate {
|
93 |
$thumb_filename = ABSPATH . $WD_BWG_UPLOAD_DIR . $image_data->thumb_url;
|
94 |
$form_action = add_query_arg(array('action' => 'editThumb', 'type' => 'crop', 'image_id' => $image_id, 'width' => '800', 'height' => '500', 'TB_iframe' => '1'), admin_url('admin-ajax.php'));
|
95 |
}
|
96 |
+
ini_set('memory_limit', '-1');
|
97 |
list($width_orig, $height_orig, $type_orig) = getimagesize($filename);
|
98 |
if ($edit_type == 'crop') {
|
99 |
if ($type_orig == 2) {
|
136 |
<?php
|
137 |
}
|
138 |
}
|
139 |
+
ini_restore('memory_limit');
|
140 |
?>
|
141 |
<script language="javascript" type="text/javascript" src="<?php echo get_option("siteurl"); ?>/wp-includes/js/jquery/jquery.js"></script>
|
142 |
<script src="<?php echo WD_BWG_URL . '/js/Jcrop-1902/js/jquery.Jcrop.min.js'; ?>" type="text/javascript"></script>
|
310 |
$thumb_filename = ABSPATH . $WD_BWG_UPLOAD_DIR . $image_data->thumb_url;
|
311 |
$form_action = add_query_arg(array('action' => 'editThumb', 'type' => 'rotate', 'image_id' => $image_id, 'width' => '650', 'height' => '500', 'TB_iframe' => '1'), admin_url('admin-ajax.php'));
|
312 |
}
|
313 |
+
ini_set('memory_limit', '-1');
|
314 |
list($width_rotate, $height_rotate, $type_rotate) = getimagesize($filename);
|
315 |
if ($edit_type == '270' || $edit_type == '90') {
|
316 |
if ($type_rotate == 2) {
|
467 |
<?php
|
468 |
}
|
469 |
}
|
470 |
+
ini_restore('memory_limit');
|
471 |
?>
|
472 |
<style>
|
473 |
.spider_rotate {
|
admin/views/BWGViewGalleries_bwg.php
CHANGED
@@ -54,6 +54,10 @@ class BWGViewGalleries_bwg {
|
|
54 |
</h2>
|
55 |
<div id="draganddrop" class="updated" style="display:none;"><strong><p>Changes made in this table shoud be saved.</p></strong></div>
|
56 |
<div class="buttons_div">
|
|
|
|
|
|
|
|
|
57 |
<input id="show_hide_weights" class="button" type="button" onclick="spider_show_hide_weights();return false;" value="Hide order column" />
|
58 |
<input class="button" type="submit" onclick="spider_set_input_value('task', 'save_order')" value="Save Order" />
|
59 |
<input class="button" type="submit" onclick="spider_set_input_value('task', 'publish_all')" value="Publish" />
|
@@ -73,7 +77,7 @@ class BWGViewGalleries_bwg {
|
|
73 |
<table class="wp-list-table widefat fixed pages">
|
74 |
<thead>
|
75 |
<th class="table_small_col"></th>
|
76 |
-
<th class="manage-column column-cb check-column table_small_col"><input id="check_all" type="checkbox" style="margin:0;" /></th>
|
77 |
<th class="table_small_col <?php if ($order_by == 'id') {echo $order_class;} ?>">
|
78 |
<a onclick="spider_set_input_value('task', '');
|
79 |
spider_set_input_value('order_by', 'id');
|
@@ -142,7 +146,7 @@ class BWGViewGalleries_bwg {
|
|
142 |
?>
|
143 |
<tr id="tr_<?php echo $row_data->id; ?>" <?php echo $alternate; ?>>
|
144 |
<td class="connectedSortable table_small_col"><div title="Drag to re-order"class="handle" style="margin:5px auto 0 auto;"></div></td>
|
145 |
-
<td class="table_small_col check-column"><input id="check_<?php echo $row_data->id; ?>" name="check_<?php echo $row_data->id; ?>" type="checkbox" /></td>
|
146 |
<td class="table_small_col"><?php echo $row_data->id; ?></td>
|
147 |
<td class="table_extra_large_col">
|
148 |
<img title="<?php echo $row_data->name; ?>" style="border: 1px solid #CCCCCC; max-width:60px; max-height:60px;" src="<?php echo $preview_image . '?date=' . date('Y-m-y H:i:s'); ?>">
|
@@ -238,12 +242,18 @@ class BWGViewGalleries_bwg {
|
|
238 |
// Checkbox TD.
|
239 |
var td_checkbox = document.createElement('td');
|
240 |
td_checkbox.setAttribute('class', "table_small_col check-column");
|
|
|
241 |
tr.appendChild(td_checkbox);
|
242 |
var input_checkbox = document.createElement('input');
|
243 |
input_checkbox.setAttribute('id', "check_" + j);
|
244 |
input_checkbox.setAttribute('name', "check_" + j);
|
245 |
input_checkbox.setAttribute('type', "checkbox");
|
246 |
td_checkbox.appendChild(input_checkbox);
|
|
|
|
|
|
|
|
|
|
|
247 |
// Thumb TD.
|
248 |
var td_thumb = document.createElement('td');
|
249 |
td_thumb.setAttribute('class', "table_extra_large_col");
|
@@ -451,10 +461,12 @@ class BWGViewGalleries_bwg {
|
|
451 |
<h2><?php echo $page_title; ?></h2>
|
452 |
<div style="float:right;">
|
453 |
<input class="button" type="submit" onclick="if (spider_check_required('name', 'Name')) {return false;};
|
|
|
454 |
spider_set_input_value('task', 'save')" value="Save" />
|
455 |
<input class="button" type="submit" onclick="if (spider_check_required('name', 'Name')) {return false;};
|
456 |
spider_set_input_value('task', 'apply')" value="Apply" />
|
457 |
-
<input class="button" type="submit" onclick="spider_set_input_value('
|
|
|
458 |
</div>
|
459 |
<table style="clear:both;">
|
460 |
<tbody>
|
@@ -557,6 +569,7 @@ class BWGViewGalleries_bwg {
|
|
557 |
$asc_or_desc = ((isset($_POST['asc_or_desc'])) ? esc_html(stripslashes($_POST['asc_or_desc'])) : 'asc');
|
558 |
$image_order_by = (isset($_POST['image_order_by']) ? esc_html(stripslashes($_POST['image_order_by'])) : 'order');
|
559 |
$order_class = 'manage-column column-title sorted ' . $asc_or_desc;
|
|
|
560 |
$ids_string = '';
|
561 |
?>
|
562 |
<div id="draganddrop" class="updated" style="display:none;"><strong><p>Changes made in this table should be saved.</p></strong></div>
|
@@ -564,7 +577,10 @@ class BWGViewGalleries_bwg {
|
|
564 |
Add Images
|
565 |
</a>
|
566 |
<div class="buttons_div">
|
567 |
-
|
|
|
|
|
|
|
568 |
<input id="show_hide_weights" class="button" type="button" onclick="spider_show_hide_weights();return false;" value="Hide order column" />
|
569 |
<input class="button-primary" type="submit" onclick="spider_set_input_value('ajax_task', 'image_set_watermark');
|
570 |
spider_ajax_save('galleries_form');
|
@@ -602,7 +618,8 @@ class BWGViewGalleries_bwg {
|
|
602 |
<table id="images_table" class="wp-list-table widefat fixed pages">
|
603 |
<thead>
|
604 |
<th class="check-column table_small_col"></th>
|
605 |
-
<th class="manage-column column-cb check-column table_small_col"><input id="check_all" type="checkbox" style="margin:0;" /></th>
|
|
|
606 |
<th class="table_extra_large_col">Thumbnail</th>
|
607 |
<th class="table_extra_large_col <?php if ($image_order_by == 'filename') {echo $order_class;} ?>">
|
608 |
<a onclick="spider_set_input_value('task', '');
|
@@ -649,6 +666,7 @@ class BWGViewGalleries_bwg {
|
|
649 |
</thead>
|
650 |
<tbody id="tbody_arr">
|
651 |
<?php
|
|
|
652 |
if ($rows_data) {
|
653 |
foreach ($rows_data as $row_data) {
|
654 |
$alternate = (!isset($alternate) || $alternate == 'class="alternate"') ? '' : 'class="alternate"';
|
@@ -658,7 +676,8 @@ class BWGViewGalleries_bwg {
|
|
658 |
?>
|
659 |
<tr id="tr_<?php echo $row_data->id; ?>" <?php echo $alternate; ?>>
|
660 |
<td class="connectedSortable table_small_col"><div title="Drag to re-order" class="handle" style="margin:5px auto 0 auto;"></div></td>
|
661 |
-
<td class="table_small_col check-column"><input id="check_<?php echo $row_data->id; ?>" name="check_<?php echo $row_data->id; ?>" type="checkbox" /></td>
|
|
|
662 |
<td class="table_extra_large_col">
|
663 |
<a class="thickbox thickbox-preview" title="<?php echo $row_data->filename; ?>" href="<?php echo add_query_arg(array('action' => 'editThumb', 'type' => 'display'/*thumb_display*/, 'image_id' => $row_data->id, 'width' => '800', 'height' => '500', 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>">
|
664 |
<img id="image_thumb_<?php echo $row_data->id; ?>" class="thumb" src="<?php echo site_url() . '/' . $WD_BWG_UPLOAD_DIR . $row_data->thumb_url . '?date=' . date('Y-m-y H:i:s'); ?>">
|
54 |
</h2>
|
55 |
<div id="draganddrop" class="updated" style="display:none;"><strong><p>Changes made in this table shoud be saved.</p></strong></div>
|
56 |
<div class="buttons_div">
|
57 |
+
<span class="button non_selectable" onclick="spider_check_all_items()">
|
58 |
+
<input type="checkbox" id="check_all_items" name="check_all_items" onclick="spider_check_all_items_checkbox()" style="margin: 0; vertical-align: middle;" />
|
59 |
+
<span style="vertical-align: middle;">Select All</span>
|
60 |
+
</span>
|
61 |
<input id="show_hide_weights" class="button" type="button" onclick="spider_show_hide_weights();return false;" value="Hide order column" />
|
62 |
<input class="button" type="submit" onclick="spider_set_input_value('task', 'save_order')" value="Save Order" />
|
63 |
<input class="button" type="submit" onclick="spider_set_input_value('task', 'publish_all')" value="Publish" />
|
77 |
<table class="wp-list-table widefat fixed pages">
|
78 |
<thead>
|
79 |
<th class="table_small_col"></th>
|
80 |
+
<th class="manage-column column-cb check-column table_small_col"><input id="check_all" type="checkbox" onclick="spider_check_all(this)" style="margin:0;" /></th>
|
81 |
<th class="table_small_col <?php if ($order_by == 'id') {echo $order_class;} ?>">
|
82 |
<a onclick="spider_set_input_value('task', '');
|
83 |
spider_set_input_value('order_by', 'id');
|
146 |
?>
|
147 |
<tr id="tr_<?php echo $row_data->id; ?>" <?php echo $alternate; ?>>
|
148 |
<td class="connectedSortable table_small_col"><div title="Drag to re-order"class="handle" style="margin:5px auto 0 auto;"></div></td>
|
149 |
+
<td class="table_small_col check-column"><input id="check_<?php echo $row_data->id; ?>" name="check_<?php echo $row_data->id; ?>" onclick="spider_check_all(this)" type="checkbox" /></td>
|
150 |
<td class="table_small_col"><?php echo $row_data->id; ?></td>
|
151 |
<td class="table_extra_large_col">
|
152 |
<img title="<?php echo $row_data->name; ?>" style="border: 1px solid #CCCCCC; max-width:60px; max-height:60px;" src="<?php echo $preview_image . '?date=' . date('Y-m-y H:i:s'); ?>">
|
242 |
// Checkbox TD.
|
243 |
var td_checkbox = document.createElement('td');
|
244 |
td_checkbox.setAttribute('class', "table_small_col check-column");
|
245 |
+
td_checkbox.setAttribute('onclick', "spider_check_all(this)");
|
246 |
tr.appendChild(td_checkbox);
|
247 |
var input_checkbox = document.createElement('input');
|
248 |
input_checkbox.setAttribute('id', "check_" + j);
|
249 |
input_checkbox.setAttribute('name', "check_" + j);
|
250 |
input_checkbox.setAttribute('type', "checkbox");
|
251 |
td_checkbox.appendChild(input_checkbox);
|
252 |
+
// Numbering TD.
|
253 |
+
var td_numbering = document.createElement('td');
|
254 |
+
td_numbering.setAttribute('class', "table_small_col");
|
255 |
+
td_numbering.innerHTML = "";
|
256 |
+
tr.appendChild(td_numbering);
|
257 |
// Thumb TD.
|
258 |
var td_thumb = document.createElement('td');
|
259 |
td_thumb.setAttribute('class', "table_extra_large_col");
|
461 |
<h2><?php echo $page_title; ?></h2>
|
462 |
<div style="float:right;">
|
463 |
<input class="button" type="submit" onclick="if (spider_check_required('name', 'Name')) {return false;};
|
464 |
+
spider_set_input_value('page_number', '1');
|
465 |
spider_set_input_value('task', 'save')" value="Save" />
|
466 |
<input class="button" type="submit" onclick="if (spider_check_required('name', 'Name')) {return false;};
|
467 |
spider_set_input_value('task', 'apply')" value="Apply" />
|
468 |
+
<input class="button" type="submit" onclick="spider_set_input_value('page_number', '1');
|
469 |
+
spider_set_input_value('task', 'cancel')" value="Cancel" />
|
470 |
</div>
|
471 |
<table style="clear:both;">
|
472 |
<tbody>
|
569 |
$asc_or_desc = ((isset($_POST['asc_or_desc'])) ? esc_html(stripslashes($_POST['asc_or_desc'])) : 'asc');
|
570 |
$image_order_by = (isset($_POST['image_order_by']) ? esc_html(stripslashes($_POST['image_order_by'])) : 'order');
|
571 |
$order_class = 'manage-column column-title sorted ' . $asc_or_desc;
|
572 |
+
$page_number = (isset($_POST['page_number']) ? esc_html(stripslashes($_POST['page_number'])) : 1);
|
573 |
$ids_string = '';
|
574 |
?>
|
575 |
<div id="draganddrop" class="updated" style="display:none;"><strong><p>Changes made in this table should be saved.</p></strong></div>
|
577 |
Add Images
|
578 |
</a>
|
579 |
<div class="buttons_div">
|
580 |
+
<span class="button non_selectable" onclick="spider_check_all_items()">
|
581 |
+
<input type="checkbox" id="check_all_items" name="check_all_items" onclick="spider_check_all_items_checkbox()" style="margin: 0; vertical-align: middle;" />
|
582 |
+
<span style="vertical-align: middle;">Select All</span>
|
583 |
+
</span>
|
584 |
<input id="show_hide_weights" class="button" type="button" onclick="spider_show_hide_weights();return false;" value="Hide order column" />
|
585 |
<input class="button-primary" type="submit" onclick="spider_set_input_value('ajax_task', 'image_set_watermark');
|
586 |
spider_ajax_save('galleries_form');
|
618 |
<table id="images_table" class="wp-list-table widefat fixed pages">
|
619 |
<thead>
|
620 |
<th class="check-column table_small_col"></th>
|
621 |
+
<th class="manage-column column-cb check-column table_small_col"><input id="check_all" type="checkbox" onclick="spider_check_all(this)" style="margin:0;" /></th>
|
622 |
+
<th class="table_small_col">#</th>
|
623 |
<th class="table_extra_large_col">Thumbnail</th>
|
624 |
<th class="table_extra_large_col <?php if ($image_order_by == 'filename') {echo $order_class;} ?>">
|
625 |
<a onclick="spider_set_input_value('task', '');
|
666 |
</thead>
|
667 |
<tbody id="tbody_arr">
|
668 |
<?php
|
669 |
+
$i = ($page_number - 1) * 20;
|
670 |
if ($rows_data) {
|
671 |
foreach ($rows_data as $row_data) {
|
672 |
$alternate = (!isset($alternate) || $alternate == 'class="alternate"') ? '' : 'class="alternate"';
|
676 |
?>
|
677 |
<tr id="tr_<?php echo $row_data->id; ?>" <?php echo $alternate; ?>>
|
678 |
<td class="connectedSortable table_small_col"><div title="Drag to re-order" class="handle" style="margin:5px auto 0 auto;"></div></td>
|
679 |
+
<td class="table_small_col check-column"><input id="check_<?php echo $row_data->id; ?>" name="check_<?php echo $row_data->id; ?>" onclick="spider_check_all(this)" type="checkbox" /></td>
|
680 |
+
<td class="table_small_col"><?php echo ++$i; ?></td>
|
681 |
<td class="table_extra_large_col">
|
682 |
<a class="thickbox thickbox-preview" title="<?php echo $row_data->filename; ?>" href="<?php echo add_query_arg(array('action' => 'editThumb', 'type' => 'display'/*thumb_display*/, 'image_id' => $row_data->id, 'width' => '800', 'height' => '500', 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>">
|
683 |
<img id="image_thumb_<?php echo $row_data->id; ?>" class="thumb" src="<?php echo site_url() . '/' . $WD_BWG_UPLOAD_DIR . $row_data->thumb_url . '?date=' . date('Y-m-y H:i:s'); ?>">
|
admin/views/BWGViewOptions_bwg.php
CHANGED
@@ -69,11 +69,7 @@ class BWGViewOptions_bwg {
|
|
69 |
);
|
70 |
$effects = array(
|
71 |
'none' => 'None',
|
72 |
-
'cubeH' => 'Cube Horizontal',
|
73 |
'fade' => 'Fade',
|
74 |
-
'sliceV' => 'Slice Vertical',
|
75 |
-
'scaleOut' => 'Scale Out',
|
76 |
-
'blindH' => 'Blind Horizontal',
|
77 |
);
|
78 |
?>
|
79 |
<form method="post" class="wrap" action="admin.php?page=options_bwg" style="float: left; width: 95%;">
|
69 |
);
|
70 |
$effects = array(
|
71 |
'none' => 'None',
|
|
|
72 |
'fade' => 'Fade',
|
|
|
|
|
|
|
73 |
);
|
74 |
?>
|
75 |
<form method="post" class="wrap" action="admin.php?page=options_bwg" style="float: left; width: 95%;">
|
css/bwg_frontend.css
CHANGED
@@ -7,6 +7,7 @@
|
|
7 |
background-repeat: no-repeat;
|
8 |
background-position: 0 0;
|
9 |
background-size: 50px 50px;
|
|
|
10 |
display: none;
|
11 |
height: 50px;
|
12 |
left: 50%;
|
@@ -24,6 +25,7 @@
|
|
24 |
}
|
25 |
|
26 |
.spider_ajax_loading {
|
|
|
27 |
animation: spin 2.5s infinite linear;
|
28 |
-moz-animation: spin 2.5s infinite linear;
|
29 |
-o-animation: spin 2.5s infinite linear;
|
7 |
background-repeat: no-repeat;
|
8 |
background-position: 0 0;
|
9 |
background-size: 50px 50px;
|
10 |
+
border: none !important;
|
11 |
display: none;
|
12 |
height: 50px;
|
13 |
left: 50%;
|
25 |
}
|
26 |
|
27 |
.spider_ajax_loading {
|
28 |
+
border: none !important;
|
29 |
animation: spin 2.5s infinite linear;
|
30 |
-moz-animation: spin 2.5s infinite linear;
|
31 |
-o-animation: spin 2.5s infinite linear;
|
css/bwg_tables.css
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
.spider_ajax_loading {
|
|
|
2 |
-webkit-animation: spin 2.5s infinite linear;
|
3 |
-moz-animation: spin 2.5s infinite linear;
|
4 |
-o-animation: spin 2.5s infinite linear;
|
1 |
.spider_ajax_loading {
|
2 |
+
border: none !important;
|
3 |
-webkit-animation: spin 2.5s infinite linear;
|
4 |
-moz-animation: spin 2.5s infinite linear;
|
5 |
-o-animation: spin 2.5s infinite linear;
|
css/font-awesome-4.0.1/css/font-awesome.min.css
DELETED
@@ -1,395 +0,0 @@
|
|
1 |
-
@font-face{font-family:'FontAwesome';src:url('../fonts/fontawesome-webfont.eot?v=4.0.1');src:url('../fonts/fontawesome-webfont.eot?#iefix&v=4.0.1') format('embedded-opentype'),url('../fonts/fontawesome-webfont.woff?v=4.0.1') format('woff'),url('../fonts/fontawesome-webfont.ttf?v=4.0.1') format('truetype'),url('../fonts/fontawesome-webfont.svg?v=4.0.1#fontawesomeregular') format('svg');font-weight:normal;font-style:normal}.fa{display:inline-block;font-family:FontAwesome;font-style:normal;font-weight:normal;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
|
2 |
-
.fa-lg{font-size:1.3333333333333333em;line-height:.75em;vertical-align:-15%}
|
3 |
-
.fa-2x{font-size:2em}
|
4 |
-
.fa-3x{font-size:3em}
|
5 |
-
.fa-4x{font-size:4em}
|
6 |
-
.fa-5x{font-size:5em}
|
7 |
-
.fa-fw{width:1.2857142857142858em;text-align:center}
|
8 |
-
.fa-ul{padding-left:0;margin-left:2.142857142857143em;list-style-type:none}.fa-ul>li{position:relative}
|
9 |
-
.fa-li{position:absolute;left:-2.142857142857143em;width:2.142857142857143em;top:.14285714285714285em;text-align:center}.fa-li.fa-lg{left:-1.8571428571428572em}
|
10 |
-
.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}
|
11 |
-
.pull-right{float:right}
|
12 |
-
.pull-left{float:left}
|
13 |
-
.fa.pull-left{margin-right:.3em}
|
14 |
-
.fa.pull-right{margin-left:.3em}
|
15 |
-
.fa-spin{-webkit-animation:spin 2s infinite linear;-moz-animation:spin 2s infinite linear;-o-animation:spin 2s infinite linear;animation:spin 2s infinite linear}
|
16 |
-
@-moz-keyframes spin{0%{-moz-transform:rotate(0deg)} 100%{-moz-transform:rotate(359deg)}}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)} 100%{-webkit-transform:rotate(359deg)}}@-o-keyframes spin{0%{-o-transform:rotate(0deg)} 100%{-o-transform:rotate(359deg)}}@-ms-keyframes spin{0%{-ms-transform:rotate(0deg)} 100%{-ms-transform:rotate(359deg)}}@keyframes spin{0%{transform:rotate(0deg)} 100%{transform:rotate(359deg)}}.fa-rotate-90{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg)}
|
17 |
-
.fa-rotate-180{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-ms-transform:rotate(180deg);-o-transform:rotate(180deg);transform:rotate(180deg)}
|
18 |
-
.fa-rotate-270{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);-webkit-transform:rotate(270deg);-moz-transform:rotate(270deg);-ms-transform:rotate(270deg);-o-transform:rotate(270deg);transform:rotate(270deg)}
|
19 |
-
.fa-flip-horizontal{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1);-webkit-transform:scale(-1, 1);-moz-transform:scale(-1, 1);-ms-transform:scale(-1, 1);-o-transform:scale(-1, 1);transform:scale(-1, 1)}
|
20 |
-
.fa-flip-vertical{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);-webkit-transform:scale(1, -1);-moz-transform:scale(1, -1);-ms-transform:scale(1, -1);-o-transform:scale(1, -1);transform:scale(1, -1)}
|
21 |
-
.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}
|
22 |
-
.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}
|
23 |
-
.fa-stack-1x{line-height:inherit}
|
24 |
-
.fa-stack-2x{font-size:2em}
|
25 |
-
.fa-inverse{color:#fff}
|
26 |
-
.fa-glass:before{content:"\f000"}
|
27 |
-
.fa-music:before{content:"\f001"}
|
28 |
-
.fa-search:before{content:"\f002"}
|
29 |
-
.fa-envelope-o:before{content:"\f003"}
|
30 |
-
.fa-heart:before{content:"\f004"}
|
31 |
-
.fa-star:before{content:"\f005"}
|
32 |
-
.fa-star-o:before{content:"\f006"}
|
33 |
-
.fa-user:before{content:"\f007"}
|
34 |
-
.fa-film:before{content:"\f008"}
|
35 |
-
.fa-th-large:before{content:"\f009"}
|
36 |
-
.fa-th:before{content:"\f00a"}
|
37 |
-
.fa-th-list:before{content:"\f00b"}
|
38 |
-
.fa-check:before{content:"\f00c"}
|
39 |
-
.fa-times:before{content:"\f00d"}
|
40 |
-
.fa-search-plus:before{content:"\f00e"}
|
41 |
-
.fa-search-minus:before{content:"\f010"}
|
42 |
-
.fa-power-off:before{content:"\f011"}
|
43 |
-
.fa-signal:before{content:"\f012"}
|
44 |
-
.fa-gear:before,.fa-cog:before{content:"\f013"}
|
45 |
-
.fa-trash-o:before{content:"\f014"}
|
46 |
-
.fa-home:before{content:"\f015"}
|
47 |
-
.fa-file-o:before{content:"\f016"}
|
48 |
-
.fa-clock-o:before{content:"\f017"}
|
49 |
-
.fa-road:before{content:"\f018"}
|
50 |
-
.fa-download:before{content:"\f019"}
|
51 |
-
.fa-arrow-circle-o-down:before{content:"\f01a"}
|
52 |
-
.fa-arrow-circle-o-up:before{content:"\f01b"}
|
53 |
-
.fa-inbox:before{content:"\f01c"}
|
54 |
-
.fa-play-circle-o:before{content:"\f01d"}
|
55 |
-
.fa-rotate-right:before,.fa-repeat:before{content:"\f01e"}
|
56 |
-
.fa-refresh:before{content:"\f021"}
|
57 |
-
.fa-list-alt:before{content:"\f022"}
|
58 |
-
.fa-lock:before{content:"\f023"}
|
59 |
-
.fa-flag:before{content:"\f024"}
|
60 |
-
.fa-headphones:before{content:"\f025"}
|
61 |
-
.fa-volume-off:before{content:"\f026"}
|
62 |
-
.fa-volume-down:before{content:"\f027"}
|
63 |
-
.fa-volume-up:before{content:"\f028"}
|
64 |
-
.fa-qrcode:before{content:"\f029"}
|
65 |
-
.fa-barcode:before{content:"\f02a"}
|
66 |
-
.fa-tag:before{content:"\f02b"}
|
67 |
-
.fa-tags:before{content:"\f02c"}
|
68 |
-
.fa-book:before{content:"\f02d"}
|
69 |
-
.fa-bookmark:before{content:"\f02e"}
|
70 |
-
.fa-print:before{content:"\f02f"}
|
71 |
-
.fa-camera:before{content:"\f030"}
|
72 |
-
.fa-font:before{content:"\f031"}
|
73 |
-
.fa-bold:before{content:"\f032"}
|
74 |
-
.fa-italic:before{content:"\f033"}
|
75 |
-
.fa-text-height:before{content:"\f034"}
|
76 |
-
.fa-text-width:before{content:"\f035"}
|
77 |
-
.fa-align-left:before{content:"\f036"}
|
78 |
-
.fa-align-center:before{content:"\f037"}
|
79 |
-
.fa-align-right:before{content:"\f038"}
|
80 |
-
.fa-align-justify:before{content:"\f039"}
|
81 |
-
.fa-list:before{content:"\f03a"}
|
82 |
-
.fa-dedent:before,.fa-outdent:before{content:"\f03b"}
|
83 |
-
.fa-indent:before{content:"\f03c"}
|
84 |
-
.fa-video-camera:before{content:"\f03d"}
|
85 |
-
.fa-picture-o:before{content:"\f03e"}
|
86 |
-
.fa-pencil:before{content:"\f040"}
|
87 |
-
.fa-map-marker:before{content:"\f041"}
|
88 |
-
.fa-adjust:before{content:"\f042"}
|
89 |
-
.fa-tint:before{content:"\f043"}
|
90 |
-
.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}
|
91 |
-
.fa-share-square-o:before{content:"\f045"}
|
92 |
-
.fa-check-square-o:before{content:"\f046"}
|
93 |
-
.fa-move:before{content:"\f047"}
|
94 |
-
.fa-step-backward:before{content:"\f048"}
|
95 |
-
.fa-fast-backward:before{content:"\f049"}
|
96 |
-
.fa-backward:before{content:"\f04a"}
|
97 |
-
.fa-play:before{content:"\f04b"}
|
98 |
-
.fa-pause:before{content:"\f04c"}
|
99 |
-
.fa-stop:before{content:"\f04d"}
|
100 |
-
.fa-forward:before{content:"\f04e"}
|
101 |
-
.fa-fast-forward:before{content:"\f050"}
|
102 |
-
.fa-step-forward:before{content:"\f051"}
|
103 |
-
.fa-eject:before{content:"\f052"}
|
104 |
-
.fa-chevron-left:before{content:"\f053"}
|
105 |
-
.fa-chevron-right:before{content:"\f054"}
|
106 |
-
.fa-plus-circle:before{content:"\f055"}
|
107 |
-
.fa-minus-circle:before{content:"\f056"}
|
108 |
-
.fa-times-circle:before{content:"\f057"}
|
109 |
-
.fa-check-circle:before{content:"\f058"}
|
110 |
-
.fa-question-circle:before{content:"\f059"}
|
111 |
-
.fa-info-circle:before{content:"\f05a"}
|
112 |
-
.fa-crosshairs:before{content:"\f05b"}
|
113 |
-
.fa-times-circle-o:before{content:"\f05c"}
|
114 |
-
.fa-check-circle-o:before{content:"\f05d"}
|
115 |
-
.fa-ban:before{content:"\f05e"}
|
116 |
-
.fa-arrow-left:before{content:"\f060"}
|
117 |
-
.fa-arrow-right:before{content:"\f061"}
|
118 |
-
.fa-arrow-up:before{content:"\f062"}
|
119 |
-
.fa-arrow-down:before{content:"\f063"}
|
120 |
-
.fa-mail-forward:before,.fa-share:before{content:"\f064"}
|
121 |
-
.fa-resize-full:before{content:"\f065"}
|
122 |
-
.fa-resize-small:before{content:"\f066"}
|
123 |
-
.fa-plus:before{content:"\f067"}
|
124 |
-
.fa-minus:before{content:"\f068"}
|
125 |
-
.fa-asterisk:before{content:"\f069"}
|
126 |
-
.fa-exclamation-circle:before{content:"\f06a"}
|
127 |
-
.fa-gift:before{content:"\f06b"}
|
128 |
-
.fa-leaf:before{content:"\f06c"}
|
129 |
-
.fa-fire:before{content:"\f06d"}
|
130 |
-
.fa-eye:before{content:"\f06e"}
|
131 |
-
.fa-eye-slash:before{content:"\f070"}
|
132 |
-
.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071"}
|
133 |
-
.fa-plane:before{content:"\f072"}
|
134 |
-
.fa-calendar:before{content:"\f073"}
|
135 |
-
.fa-random:before{content:"\f074"}
|
136 |
-
.fa-comment:before{content:"\f075"}
|
137 |
-
.fa-magnet:before{content:"\f076"}
|
138 |
-
.fa-chevron-up:before{content:"\f077"}
|
139 |
-
.fa-chevron-down:before{content:"\f078"}
|
140 |
-
.fa-retweet:before{content:"\f079"}
|
141 |
-
.fa-shopping-cart:before{content:"\f07a"}
|
142 |
-
.fa-folder:before{content:"\f07b"}
|
143 |
-
.fa-folder-open:before{content:"\f07c"}
|
144 |
-
.fa-resize-vertical:before{content:"\f07d"}
|
145 |
-
.fa-resize-horizontal:before{content:"\f07e"}
|
146 |
-
.fa-bar-chart-o:before{content:"\f080"}
|
147 |
-
.fa-twitter-square:before{content:"\f081"}
|
148 |
-
.fa-facebook-square:before{content:"\f082"}
|
149 |
-
.fa-camera-retro:before{content:"\f083"}
|
150 |
-
.fa-key:before{content:"\f084"}
|
151 |
-
.fa-gears:before,.fa-cogs:before{content:"\f085"}
|
152 |
-
.fa-comments:before{content:"\f086"}
|
153 |
-
.fa-thumbs-o-up:before{content:"\f087"}
|
154 |
-
.fa-thumbs-o-down:before{content:"\f088"}
|
155 |
-
.fa-star-half:before{content:"\f089"}
|
156 |
-
.fa-heart-o:before{content:"\f08a"}
|
157 |
-
.fa-sign-out:before{content:"\f08b"}
|
158 |
-
.fa-linkedin-square:before{content:"\f08c"}
|
159 |
-
.fa-thumb-tack:before{content:"\f08d"}
|
160 |
-
.fa-external-link:before{content:"\f08e"}
|
161 |
-
.fa-sign-in:before{content:"\f090"}
|
162 |
-
.fa-trophy:before{content:"\f091"}
|
163 |
-
.fa-github-square:before{content:"\f092"}
|
164 |
-
.fa-upload:before{content:"\f093"}
|
165 |
-
.fa-lemon-o:before{content:"\f094"}
|
166 |
-
.fa-phone:before{content:"\f095"}
|
167 |
-
.fa-square-o:before{content:"\f096"}
|
168 |
-
.fa-bookmark-o:before{content:"\f097"}
|
169 |
-
.fa-phone-square:before{content:"\f098"}
|
170 |
-
.fa-twitter:before{content:"\f099"}
|
171 |
-
.fa-facebook:before{content:"\f09a"}
|
172 |
-
.fa-github:before{content:"\f09b"}
|
173 |
-
.fa-unlock:before{content:"\f09c"}
|
174 |
-
.fa-credit-card:before{content:"\f09d"}
|
175 |
-
.fa-rss:before{content:"\f09e"}
|
176 |
-
.fa-hdd-o:before{content:"\f0a0"}
|
177 |
-
.fa-bullhorn:before{content:"\f0a1"}
|
178 |
-
.fa-bell:before{content:"\f0f3"}
|
179 |
-
.fa-certificate:before{content:"\f0a3"}
|
180 |
-
.fa-hand-o-right:before{content:"\f0a4"}
|
181 |
-
.fa-hand-o-left:before{content:"\f0a5"}
|
182 |
-
.fa-hand-o-up:before{content:"\f0a6"}
|
183 |
-
.fa-hand-o-down:before{content:"\f0a7"}
|
184 |
-
.fa-arrow-circle-left:before{content:"\f0a8"}
|
185 |
-
.fa-arrow-circle-right:before{content:"\f0a9"}
|
186 |
-
.fa-arrow-circle-up:before{content:"\f0aa"}
|
187 |
-
.fa-arrow-circle-down:before{content:"\f0ab"}
|
188 |
-
.fa-globe:before{content:"\f0ac"}
|
189 |
-
.fa-wrench:before{content:"\f0ad"}
|
190 |
-
.fa-tasks:before{content:"\f0ae"}
|
191 |
-
.fa-filter:before{content:"\f0b0"}
|
192 |
-
.fa-briefcase:before{content:"\f0b1"}
|
193 |
-
.fa-fullscreen:before{content:"\f0b2"}
|
194 |
-
.fa-group:before{content:"\f0c0"}
|
195 |
-
.fa-chain:before,.fa-link:before{content:"\f0c1"}
|
196 |
-
.fa-cloud:before{content:"\f0c2"}
|
197 |
-
.fa-flask:before{content:"\f0c3"}
|
198 |
-
.fa-cut:before,.fa-scissors:before{content:"\f0c4"}
|
199 |
-
.fa-copy:before,.fa-files-o:before{content:"\f0c5"}
|
200 |
-
.fa-paperclip:before{content:"\f0c6"}
|
201 |
-
.fa-save:before,.fa-floppy-o:before{content:"\f0c7"}
|
202 |
-
.fa-square:before{content:"\f0c8"}
|
203 |
-
.fa-reorder:before{content:"\f0c9"}
|
204 |
-
.fa-list-ul:before{content:"\f0ca"}
|
205 |
-
.fa-list-ol:before{content:"\f0cb"}
|
206 |
-
.fa-strikethrough:before{content:"\f0cc"}
|
207 |
-
.fa-underline:before{content:"\f0cd"}
|
208 |
-
.fa-table:before{content:"\f0ce"}
|
209 |
-
.fa-magic:before{content:"\f0d0"}
|
210 |
-
.fa-truck:before{content:"\f0d1"}
|
211 |
-
.fa-pinterest:before{content:"\f0d2"}
|
212 |
-
.fa-pinterest-square:before{content:"\f0d3"}
|
213 |
-
.fa-google-plus-square:before{content:"\f0d4"}
|
214 |
-
.fa-google-plus:before{content:"\f0d5"}
|
215 |
-
.fa-money:before{content:"\f0d6"}
|
216 |
-
.fa-caret-down:before{content:"\f0d7"}
|
217 |
-
.fa-caret-up:before{content:"\f0d8"}
|
218 |
-
.fa-caret-left:before{content:"\f0d9"}
|
219 |
-
.fa-caret-right:before{content:"\f0da"}
|
220 |
-
.fa-columns:before{content:"\f0db"}
|
221 |
-
.fa-unsorted:before,.fa-sort:before{content:"\f0dc"}
|
222 |
-
.fa-sort-down:before,.fa-sort-asc:before{content:"\f0dd"}
|
223 |
-
.fa-sort-up:before,.fa-sort-desc:before{content:"\f0de"}
|
224 |
-
.fa-envelope:before{content:"\f0e0"}
|
225 |
-
.fa-linkedin:before{content:"\f0e1"}
|
226 |
-
.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}
|
227 |
-
.fa-legal:before,.fa-gavel:before{content:"\f0e3"}
|
228 |
-
.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}
|
229 |
-
.fa-comment-o:before{content:"\f0e5"}
|
230 |
-
.fa-comments-o:before{content:"\f0e6"}
|
231 |
-
.fa-flash:before,.fa-bolt:before{content:"\f0e7"}
|
232 |
-
.fa-sitemap:before{content:"\f0e8"}
|
233 |
-
.fa-umbrella:before{content:"\f0e9"}
|
234 |
-
.fa-paste:before,.fa-clipboard:before{content:"\f0ea"}
|
235 |
-
.fa-lightbulb-o:before{content:"\f0eb"}
|
236 |
-
.fa-exchange:before{content:"\f0ec"}
|
237 |
-
.fa-cloud-download:before{content:"\f0ed"}
|
238 |
-
.fa-cloud-upload:before{content:"\f0ee"}
|
239 |
-
.fa-user-md:before{content:"\f0f0"}
|
240 |
-
.fa-stethoscope:before{content:"\f0f1"}
|
241 |
-
.fa-suitcase:before{content:"\f0f2"}
|
242 |
-
.fa-bell-o:before{content:"\f0a2"}
|
243 |
-
.fa-coffee:before{content:"\f0f4"}
|
244 |
-
.fa-cutlery:before{content:"\f0f5"}
|
245 |
-
.fa-file-text-o:before{content:"\f0f6"}
|
246 |
-
.fa-building:before{content:"\f0f7"}
|
247 |
-
.fa-hospital:before{content:"\f0f8"}
|
248 |
-
.fa-ambulance:before{content:"\f0f9"}
|
249 |
-
.fa-medkit:before{content:"\f0fa"}
|
250 |
-
.fa-fighter-jet:before{content:"\f0fb"}
|
251 |
-
.fa-beer:before{content:"\f0fc"}
|
252 |
-
.fa-h-square:before{content:"\f0fd"}
|
253 |
-
.fa-plus-square:before{content:"\f0fe"}
|
254 |
-
.fa-angle-double-left:before{content:"\f100"}
|
255 |
-
.fa-angle-double-right:before{content:"\f101"}
|
256 |
-
.fa-angle-double-up:before{content:"\f102"}
|
257 |
-
.fa-angle-double-down:before{content:"\f103"}
|
258 |
-
.fa-angle-left:before{content:"\f104"}
|
259 |
-
.fa-angle-right:before{content:"\f105"}
|
260 |
-
.fa-angle-up:before{content:"\f106"}
|
261 |
-
.fa-angle-down:before{content:"\f107"}
|
262 |
-
.fa-desktop:before{content:"\f108"}
|
263 |
-
.fa-laptop:before{content:"\f109"}
|
264 |
-
.fa-tablet:before{content:"\f10a"}
|
265 |
-
.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}
|
266 |
-
.fa-circle-o:before{content:"\f10c"}
|
267 |
-
.fa-quote-left:before{content:"\f10d"}
|
268 |
-
.fa-quote-right:before{content:"\f10e"}
|
269 |
-
.fa-spinner:before{content:"\f110"}
|
270 |
-
.fa-circle:before{content:"\f111"}
|
271 |
-
.fa-mail-reply:before,.fa-reply:before{content:"\f112"}
|
272 |
-
.fa-github-alt:before{content:"\f113"}
|
273 |
-
.fa-folder-o:before{content:"\f114"}
|
274 |
-
.fa-folder-open-o:before{content:"\f115"}
|
275 |
-
.fa-expand-o:before{content:"\f116"}
|
276 |
-
.fa-collapse-o:before{content:"\f117"}
|
277 |
-
.fa-smile-o:before{content:"\f118"}
|
278 |
-
.fa-frown-o:before{content:"\f119"}
|
279 |
-
.fa-meh-o:before{content:"\f11a"}
|
280 |
-
.fa-gamepad:before{content:"\f11b"}
|
281 |
-
.fa-keyboard-o:before{content:"\f11c"}
|
282 |
-
.fa-flag-o:before{content:"\f11d"}
|
283 |
-
.fa-flag-checkered:before{content:"\f11e"}
|
284 |
-
.fa-terminal:before{content:"\f120"}
|
285 |
-
.fa-code:before{content:"\f121"}
|
286 |
-
.fa-reply-all:before{content:"\f122"}
|
287 |
-
.fa-mail-reply-all:before{content:"\f122"}
|
288 |
-
.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}
|
289 |
-
.fa-location-arrow:before{content:"\f124"}
|
290 |
-
.fa-crop:before{content:"\f125"}
|
291 |
-
.fa-code-fork:before{content:"\f126"}
|
292 |
-
.fa-unlink:before,.fa-chain-broken:before{content:"\f127"}
|
293 |
-
.fa-question:before{content:"\f128"}
|
294 |
-
.fa-info:before{content:"\f129"}
|
295 |
-
.fa-exclamation:before{content:"\f12a"}
|
296 |
-
.fa-superscript:before{content:"\f12b"}
|
297 |
-
.fa-subscript:before{content:"\f12c"}
|
298 |
-
.fa-eraser:before{content:"\f12d"}
|
299 |
-
.fa-puzzle-piece:before{content:"\f12e"}
|
300 |
-
.fa-microphone:before{content:"\f130"}
|
301 |
-
.fa-microphone-slash:before{content:"\f131"}
|
302 |
-
.fa-shield:before{content:"\f132"}
|
303 |
-
.fa-calendar-o:before{content:"\f133"}
|
304 |
-
.fa-fire-extinguisher:before{content:"\f134"}
|
305 |
-
.fa-rocket:before{content:"\f135"}
|
306 |
-
.fa-maxcdn:before{content:"\f136"}
|
307 |
-
.fa-chevron-circle-left:before{content:"\f137"}
|
308 |
-
.fa-chevron-circle-right:before{content:"\f138"}
|
309 |
-
.fa-chevron-circle-up:before{content:"\f139"}
|
310 |
-
.fa-chevron-circle-down:before{content:"\f13a"}
|
311 |
-
.fa-html5:before{content:"\f13b"}
|
312 |
-
.fa-css3:before{content:"\f13c"}
|
313 |
-
.fa-anchor:before{content:"\f13d"}
|
314 |
-
.fa-unlock-o:before{content:"\f13e"}
|
315 |
-
.fa-bullseye:before{content:"\f140"}
|
316 |
-
.fa-ellipsis-horizontal:before{content:"\f141"}
|
317 |
-
.fa-ellipsis-vertical:before{content:"\f142"}
|
318 |
-
.fa-rss-square:before{content:"\f143"}
|
319 |
-
.fa-play-circle:before{content:"\f144"}
|
320 |
-
.fa-ticket:before{content:"\f145"}
|
321 |
-
.fa-minus-square:before{content:"\f146"}
|
322 |
-
.fa-minus-square-o:before{content:"\f147"}
|
323 |
-
.fa-level-up:before{content:"\f148"}
|
324 |
-
.fa-level-down:before{content:"\f149"}
|
325 |
-
.fa-check-square:before{content:"\f14a"}
|
326 |
-
.fa-pencil-square:before{content:"\f14b"}
|
327 |
-
.fa-external-link-square:before{content:"\f14c"}
|
328 |
-
.fa-share-square:before{content:"\f14d"}
|
329 |
-
.fa-compass:before{content:"\f14e"}
|
330 |
-
.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150"}
|
331 |
-
.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151"}
|
332 |
-
.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152"}
|
333 |
-
.fa-euro:before,.fa-eur:before{content:"\f153"}
|
334 |
-
.fa-gbp:before{content:"\f154"}
|
335 |
-
.fa-dollar:before,.fa-usd:before{content:"\f155"}
|
336 |
-
.fa-rupee:before,.fa-inr:before{content:"\f156"}
|
337 |
-
.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157"}
|
338 |
-
.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158"}
|
339 |
-
.fa-won:before,.fa-krw:before{content:"\f159"}
|
340 |
-
.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}
|
341 |
-
.fa-file:before{content:"\f15b"}
|
342 |
-
.fa-file-text:before{content:"\f15c"}
|
343 |
-
.fa-sort-alpha-asc:before{content:"\f15d"}
|
344 |
-
.fa-sort-alpha-desc:before{content:"\f15e"}
|
345 |
-
.fa-sort-amount-asc:before{content:"\f160"}
|
346 |
-
.fa-sort-amount-desc:before{content:"\f161"}
|
347 |
-
.fa-sort-numeric-asc:before{content:"\f162"}
|
348 |
-
.fa-sort-numeric-desc:before{content:"\f163"}
|
349 |
-
.fa-thumbs-up:before{content:"\f164"}
|
350 |
-
.fa-thumbs-down:before{content:"\f165"}
|
351 |
-
.fa-youtube-square:before{content:"\f166"}
|
352 |
-
.fa-youtube:before{content:"\f167"}
|
353 |
-
.fa-xing:before{content:"\f168"}
|
354 |
-
.fa-xing-square:before{content:"\f169"}
|
355 |
-
.fa-youtube-play:before{content:"\f16a"}
|
356 |
-
.fa-dropbox:before{content:"\f16b"}
|
357 |
-
.fa-stack-overflow:before{content:"\f16c"}
|
358 |
-
.fa-instagram:before{content:"\f16d"}
|
359 |
-
.fa-flickr:before{content:"\f16e"}
|
360 |
-
.fa-adn:before{content:"\f170"}
|
361 |
-
.fa-bitbucket:before{content:"\f171"}
|
362 |
-
.fa-bitbucket-square:before{content:"\f172"}
|
363 |
-
.fa-tumblr:before{content:"\f173"}
|
364 |
-
.fa-tumblr-square:before{content:"\f174"}
|
365 |
-
.fa-long-arrow-down:before{content:"\f175"}
|
366 |
-
.fa-long-arrow-up:before{content:"\f176"}
|
367 |
-
.fa-long-arrow-left:before{content:"\f177"}
|
368 |
-
.fa-long-arrow-right:before{content:"\f178"}
|
369 |
-
.fa-apple:before{content:"\f179"}
|
370 |
-
.fa-windows:before{content:"\f17a"}
|
371 |
-
.fa-android:before{content:"\f17b"}
|
372 |
-
.fa-linux:before{content:"\f17c"}
|
373 |
-
.fa-dribbble:before{content:"\f17d"}
|
374 |
-
.fa-skype:before{content:"\f17e"}
|
375 |
-
.fa-foursquare:before{content:"\f180"}
|
376 |
-
.fa-trello:before{content:"\f181"}
|
377 |
-
.fa-female:before{content:"\f182"}
|
378 |
-
.fa-male:before{content:"\f183"}
|
379 |
-
.fa-gittip:before{content:"\f184"}
|
380 |
-
.fa-sun-o:before{content:"\f185"}
|
381 |
-
.fa-moon-o:before{content:"\f186"}
|
382 |
-
.fa-archive:before{content:"\f187"}
|
383 |
-
.fa-bug:before{content:"\f188"}
|
384 |
-
.fa-vk:before{content:"\f189"}
|
385 |
-
.fa-weibo:before{content:"\f18a"}
|
386 |
-
.fa-renren:before{content:"\f18b"}
|
387 |
-
.fa-pagelines:before{content:"\f18c"}
|
388 |
-
.fa-stack-exchange:before{content:"\f18d"}
|
389 |
-
.fa-arrow-circle-o-right:before{content:"\f18e"}
|
390 |
-
.fa-arrow-circle-o-left:before{content:"\f190"}
|
391 |
-
.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191"}
|
392 |
-
.fa-dot-circle-o:before{content:"\f192"}
|
393 |
-
.fa-wheelchair:before{content:"\f193"}
|
394 |
-
.fa-vimeo-square:before{content:"\f194"}
|
395 |
-
.fa-turkish-lira:before,.fa-try:before{content:"\f195"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
css/font-awesome-4.0.1/{css/font-awesome.css → font-awesome.css}
RENAMED
@@ -27,8 +27,8 @@
|
|
27 |
* -------------------------- */
|
28 |
@font-face {
|
29 |
font-family: 'FontAwesome';
|
30 |
-
src: url('
|
31 |
-
src: url('
|
32 |
font-weight: normal;
|
33 |
font-style: normal;
|
34 |
}
|
27 |
* -------------------------- */
|
28 |
@font-face {
|
29 |
font-family: 'FontAwesome';
|
30 |
+
src: url('fonts/fontawesome-webfont.eot?v=4.0.1');
|
31 |
+
src: url('fonts/fontawesome-webfont.eot?#iefix&v=4.0.1') format('embedded-opentype'), url('fonts/fontawesome-webfont.woff?v=4.0.1') format('woff'), url('fonts/fontawesome-webfont.ttf?v=4.0.1') format('truetype'), url('fonts/fontawesome-webfont.svg?v=4.0.1#fontawesomeregular') format('svg');
|
32 |
font-weight: normal;
|
33 |
font-style: normal;
|
34 |
}
|
filemanager/UploadHandler.php
CHANGED
@@ -300,6 +300,7 @@ class UploadHandler {
|
|
300 |
$max_width / $img_width,
|
301 |
$max_height / $img_height
|
302 |
);
|
|
|
303 |
if (($scale >= 1) || (($max_width === NULL) && ($max_height === NULL))) {
|
304 |
if ($file_path !== $new_file_path) {
|
305 |
return copy($file_path, $new_file_path);
|
@@ -310,6 +311,7 @@ class UploadHandler {
|
|
310 |
error_log('Function not found: imagecreatetruecolor');
|
311 |
return false;
|
312 |
}
|
|
|
313 |
if (empty($options['crop'])) {
|
314 |
$new_width = $img_width * $scale;
|
315 |
$new_height = $img_height * $scale;
|
@@ -368,6 +370,7 @@ class UploadHandler {
|
|
368 |
// Free up memory (imagedestroy does not delete files):
|
369 |
@imagedestroy($src_img);
|
370 |
@imagedestroy($new_img);
|
|
|
371 |
return $success;
|
372 |
}
|
373 |
|
@@ -485,7 +488,7 @@ class UploadHandler {
|
|
485 |
// Remove path information and dots around the filename, to prevent uploading
|
486 |
// into different directories or replacing hidden system files.
|
487 |
// Also remove control characters and spaces (\x00..\x20) around the filename:
|
488 |
-
$name = trim(
|
489 |
// Use a timestamp for empty filenames:
|
490 |
if (!$name) {
|
491 |
$name = str_replace('.', '-', microtime(true));
|
@@ -513,16 +516,17 @@ class UploadHandler {
|
|
513 |
|
514 |
protected function orient_image($file_path) {
|
515 |
if (!function_exists('exif_read_data')) {
|
516 |
-
|
517 |
}
|
518 |
$exif = @exif_read_data($file_path);
|
519 |
if ($exif === false) {
|
520 |
-
|
521 |
}
|
522 |
$orientation = intval(@$exif['Orientation']);
|
523 |
if (!in_array($orientation, array(3, 6, 8))) {
|
524 |
-
|
525 |
}
|
|
|
526 |
$image = @imagecreatefromjpeg($file_path);
|
527 |
switch ($orientation) {
|
528 |
case 3:
|
@@ -540,6 +544,7 @@ class UploadHandler {
|
|
540 |
$success = imagejpeg($image, $file_path);
|
541 |
// Free up memory (imagedestroy does not delete files):
|
542 |
@imagedestroy($image);
|
|
|
543 |
return $success;
|
544 |
}
|
545 |
|
@@ -594,21 +599,22 @@ class UploadHandler {
|
|
594 |
if ($uploaded_file && is_uploaded_file($uploaded_file)) {
|
595 |
// multipart/formdata uploads (POST method uploads)
|
596 |
if ($append_file) {
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
}
|
603 |
-
|
|
|
604 |
}
|
605 |
}
|
606 |
else {
|
607 |
// Non-multipart uploads (PUT method support)
|
608 |
file_put_contents(
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
);
|
613 |
}
|
614 |
$file_size = $this->get_file_size($file_path, $append_file);
|
@@ -616,14 +622,14 @@ class UploadHandler {
|
|
616 |
$file->url = $this->get_download_url($file->name);
|
617 |
list($img_width, $img_height) = @getimagesize($file_path);
|
618 |
if (is_int($img_width)) {
|
619 |
-
|
620 |
}
|
621 |
}
|
622 |
else {
|
623 |
$file->size = $file_size;
|
624 |
if (!$content_range && $this->options['discard_aborted_uploads']) {
|
625 |
-
|
626 |
-
|
627 |
}
|
628 |
}
|
629 |
$this->set_file_delete_properties($file);
|
300 |
$max_width / $img_width,
|
301 |
$max_height / $img_height
|
302 |
);
|
303 |
+
ini_set('memory_limit', '-1');
|
304 |
if (($scale >= 1) || (($max_width === NULL) && ($max_height === NULL))) {
|
305 |
if ($file_path !== $new_file_path) {
|
306 |
return copy($file_path, $new_file_path);
|
311 |
error_log('Function not found: imagecreatetruecolor');
|
312 |
return false;
|
313 |
}
|
314 |
+
|
315 |
if (empty($options['crop'])) {
|
316 |
$new_width = $img_width * $scale;
|
317 |
$new_height = $img_height * $scale;
|
370 |
// Free up memory (imagedestroy does not delete files):
|
371 |
@imagedestroy($src_img);
|
372 |
@imagedestroy($new_img);
|
373 |
+
ini_restore('memory_limit');
|
374 |
return $success;
|
375 |
}
|
376 |
|
488 |
// Remove path information and dots around the filename, to prevent uploading
|
489 |
// into different directories or replacing hidden system files.
|
490 |
// Also remove control characters and spaces (\x00..\x20) around the filename:
|
491 |
+
$name = trim(stripslashes($name), ".\x00..\x20");
|
492 |
// Use a timestamp for empty filenames:
|
493 |
if (!$name) {
|
494 |
$name = str_replace('.', '-', microtime(true));
|
516 |
|
517 |
protected function orient_image($file_path) {
|
518 |
if (!function_exists('exif_read_data')) {
|
519 |
+
return false;
|
520 |
}
|
521 |
$exif = @exif_read_data($file_path);
|
522 |
if ($exif === false) {
|
523 |
+
return false;
|
524 |
}
|
525 |
$orientation = intval(@$exif['Orientation']);
|
526 |
if (!in_array($orientation, array(3, 6, 8))) {
|
527 |
+
return false;
|
528 |
}
|
529 |
+
ini_set('memory_limit', '-1');
|
530 |
$image = @imagecreatefromjpeg($file_path);
|
531 |
switch ($orientation) {
|
532 |
case 3:
|
544 |
$success = imagejpeg($image, $file_path);
|
545 |
// Free up memory (imagedestroy does not delete files):
|
546 |
@imagedestroy($image);
|
547 |
+
ini_restore('memory_limit');
|
548 |
return $success;
|
549 |
}
|
550 |
|
599 |
if ($uploaded_file && is_uploaded_file($uploaded_file)) {
|
600 |
// multipart/formdata uploads (POST method uploads)
|
601 |
if ($append_file) {
|
602 |
+
file_put_contents(
|
603 |
+
$file_path,
|
604 |
+
fopen($uploaded_file, 'r'),
|
605 |
+
FILE_APPEND
|
606 |
+
);
|
607 |
+
}
|
608 |
+
else {
|
609 |
+
move_uploaded_file($uploaded_file, $file_path);
|
610 |
}
|
611 |
}
|
612 |
else {
|
613 |
// Non-multipart uploads (PUT method support)
|
614 |
file_put_contents(
|
615 |
+
$file_path,
|
616 |
+
fopen('php://input', 'r'),
|
617 |
+
$append_file ? FILE_APPEND : 0
|
618 |
);
|
619 |
}
|
620 |
$file_size = $this->get_file_size($file_path, $append_file);
|
622 |
$file->url = $this->get_download_url($file->name);
|
623 |
list($img_width, $img_height) = @getimagesize($file_path);
|
624 |
if (is_int($img_width)) {
|
625 |
+
$this->handle_image_file($file_path, $file);
|
626 |
}
|
627 |
}
|
628 |
else {
|
629 |
$file->size = $file_size;
|
630 |
if (!$content_range && $this->options['discard_aborted_uploads']) {
|
631 |
+
unlink($file_path);
|
632 |
+
$file->error = 'abort';
|
633 |
}
|
634 |
}
|
635 |
$this->set_file_delete_properties($file);
|
filemanager/controller.php
CHANGED
@@ -43,7 +43,7 @@ class FilemanagerController {
|
|
43 |
}
|
44 |
|
45 |
public function execute() {
|
46 |
-
$task = isset($_REQUEST['task']) ? $_REQUEST['task'] : 'display';
|
47 |
if (method_exists($this, $task)) {
|
48 |
$this->$task();
|
49 |
}
|
@@ -70,31 +70,30 @@ class FilemanagerController {
|
|
70 |
}
|
71 |
|
72 |
public function make_dir() {
|
73 |
-
$input_dir = (isset($_REQUEST['dir']) ? $_REQUEST['dir'] : '');
|
74 |
$cur_dir_path = $input_dir == '' ? $this->uploads_dir : $this->uploads_dir . '/' . $input_dir;
|
75 |
|
76 |
-
$new_dir_path = $cur_dir_path . '/' . (isset($_REQUEST['new_dir_name']) ? $_REQUEST['new_dir_name'] : '');
|
77 |
|
78 |
$msg = '';
|
79 |
if (file_exists($new_dir_path) == true) {
|
80 |
-
$msg =
|
81 |
}
|
82 |
else {
|
83 |
mkdir($new_dir_path);
|
84 |
}
|
85 |
-
// $_SESSION['filemanager_msg'] = $msg;
|
86 |
header('Location: ' . add_query_arg(array('action' => 'addImages', 'filemanager_msg' => $msg, 'width' => '650', 'height' => '500', 'task' => 'display', 'extensions' => $_REQUEST['extensions'], 'callback' => $_REQUEST['callback'], 'dir' => $_REQUEST['dir'], 'TB_iframe' => '1'), admin_url('admin-ajax.php')));
|
87 |
exit;
|
88 |
}
|
89 |
|
90 |
public function rename_item() {
|
91 |
-
$input_dir = (isset($_REQUEST['dir']) ? $_REQUEST['dir'] : '');
|
92 |
$cur_dir_path = $input_dir == '' ? $this->uploads_dir : $this->uploads_dir . '/' . $input_dir;
|
93 |
|
94 |
-
$file_names = explode('
|
95 |
$file_name = $file_names[0];
|
96 |
|
97 |
-
$file_new_name = (isset($_REQUEST['file_new_name']) ? $_REQUEST['file_new_name'] : '');
|
98 |
|
99 |
$file_path = $cur_dir_path . '/' . $file_name;
|
100 |
$thumb_file_path = $cur_dir_path . '/thumb/' . $file_name;
|
@@ -102,35 +101,34 @@ class FilemanagerController {
|
|
102 |
|
103 |
$msg = '';
|
104 |
if (file_exists($file_path) == false) {
|
105 |
-
$msg =
|
106 |
}
|
107 |
elseif (is_dir($file_path) == true) {
|
108 |
if (rename($file_path, $cur_dir_path . '/' . $file_new_name) == false) {
|
109 |
-
$msg =
|
110 |
}
|
111 |
}
|
112 |
elseif ((strrpos($file_name, '.') !== false)) {
|
113 |
$file_extension = substr($file_name, strrpos($file_name, '.') + 1);
|
114 |
if (rename($file_path, $cur_dir_path . '/' . $file_new_name . '.' . $file_extension) == false) {
|
115 |
-
$msg =
|
116 |
}
|
117 |
rename($thumb_file_path, $cur_dir_path . '/thumb/' . $file_new_name . '.' . $file_extension);
|
118 |
rename($original_file_path, $cur_dir_path . '/.original/' . $file_new_name . '.' . $file_extension);
|
119 |
}
|
120 |
else {
|
121 |
-
$msg =
|
122 |
}
|
123 |
$_REQUEST['file_names'] = '';
|
124 |
-
// $_SESSION['filemanager_msg'] = $msg;
|
125 |
header('Location: ' . add_query_arg(array('action' => 'addImages', 'filemanager_msg' => $msg, 'width' => '650', 'height' => '500', 'task' => 'display', 'extensions' => $_REQUEST['extensions'], 'callback' => $_REQUEST['callback'], 'dir' => $_REQUEST['dir'], 'TB_iframe' => '1'), admin_url('admin-ajax.php')));
|
126 |
exit;
|
127 |
}
|
128 |
|
129 |
public function remove_items() {
|
130 |
-
$input_dir = (isset($_REQUEST['dir']) ? $_REQUEST['dir'] : '');
|
131 |
$cur_dir_path = $input_dir == '' ? $this->uploads_dir : $this->uploads_dir . '/' . $input_dir;
|
132 |
|
133 |
-
$file_names = explode('
|
134 |
|
135 |
$msg = '';
|
136 |
foreach ($file_names as $file_name) {
|
@@ -138,7 +136,7 @@ class FilemanagerController {
|
|
138 |
$thumb_file_path = $cur_dir_path . '/thumb/' . $file_name;
|
139 |
$original_file_path = $cur_dir_path . '/.original/' . $file_name;
|
140 |
if (file_exists($file_path) == false) {
|
141 |
-
$msg =
|
142 |
}
|
143 |
else {
|
144 |
if (!is_dir(file_path)) {
|
@@ -149,7 +147,6 @@ class FilemanagerController {
|
|
149 |
}
|
150 |
}
|
151 |
$_REQUEST['file_names'] = '';
|
152 |
-
// $_SESSION['filemanager_msg'] = $msg;
|
153 |
header('Location: ' . add_query_arg(array('action' => 'addImages', 'filemanager_msg' => $msg, 'width' => '650', 'height' => '500', 'task' => 'show_file_manager', 'extensions' => $_REQUEST['extensions'], 'callback' => $_REQUEST['callback'], 'dir' => $_REQUEST['dir'], 'TB_iframe' => '1'), admin_url('admin-ajax.php')));
|
154 |
exit;
|
155 |
}
|
@@ -157,20 +154,21 @@ class FilemanagerController {
|
|
157 |
public function paste_items() {
|
158 |
$msg = '';
|
159 |
|
160 |
-
$file_names = explode('
|
161 |
// $src_dir = $_SESSION['clipboard_src'];
|
162 |
-
$src_dir = (isset($_REQUEST['clipboard_src']) ? $_REQUEST['clipboard_src'] : '');
|
163 |
$src_dir = $src_dir == '' ? $this->uploads_dir : $this->uploads_dir . '/' . $src_dir;
|
164 |
// $dest_dir = $_SESSION['clipboard_dest'];
|
165 |
-
$dest_dir = (isset($_REQUEST['clipboard_dest']) ? $_REQUEST['clipboard_dest'] : '');
|
166 |
$dest_dir = $dest_dir == '' ? $this->uploads_dir : $this->uploads_dir . '/' . $dest_dir;
|
167 |
|
168 |
-
switch ((isset($_REQUEST['clipboard_task']) ? $_REQUEST['clipboard_task'] : '')) {
|
169 |
case 'copy':
|
170 |
foreach ($file_names as $file_name) {
|
171 |
$src = $src_dir . '/' . $file_name;
|
172 |
if (file_exists($src) == false) {
|
173 |
-
$msg =
|
|
|
174 |
continue;
|
175 |
}
|
176 |
$dest = $dest_dir . '/' . $file_name;
|
@@ -199,7 +197,7 @@ class FilemanagerController {
|
|
199 |
}
|
200 |
|
201 |
if (!$this->copy_file_dir($src, $dest)) {
|
202 |
-
$msg =
|
203 |
}
|
204 |
if (!is_dir($src_dir . '/' . $file_name)) {
|
205 |
$this->copy_file_dir($thumb_src, $thumb_dest);
|
@@ -225,7 +223,7 @@ class FilemanagerController {
|
|
225 |
}
|
226 |
}
|
227 |
if ((file_exists($src) == false) || (file_exists($dest) == true) || (!rename($src, $dest))) {
|
228 |
-
$msg =
|
229 |
}
|
230 |
if (!is_dir($src_dir . '/' . $file_name)) {
|
231 |
rename($thumb_src, $thumb_dest);
|
@@ -235,7 +233,6 @@ class FilemanagerController {
|
|
235 |
}
|
236 |
break;
|
237 |
}
|
238 |
-
// $_SESSION['filemanager_msg'] = $msg;
|
239 |
header('Location: ' . add_query_arg(array('action' => 'addImages', 'filemanager_msg' => $msg, 'width' => '650', 'height' => '500', 'task' => 'show_file_manager', 'extensions' => $_REQUEST['extensions'], 'callback' => $_REQUEST['callback'], 'dir' => $_REQUEST['dir'], 'TB_iframe' => '1'), admin_url('admin-ajax.php')));
|
240 |
exit;
|
241 |
}
|
43 |
}
|
44 |
|
45 |
public function execute() {
|
46 |
+
$task = isset($_REQUEST['task']) ? stripslashes($_REQUEST['task']) : 'display';
|
47 |
if (method_exists($this, $task)) {
|
48 |
$this->$task();
|
49 |
}
|
70 |
}
|
71 |
|
72 |
public function make_dir() {
|
73 |
+
$input_dir = (isset($_REQUEST['dir']) ? stripslashes($_REQUEST['dir']) : '');
|
74 |
$cur_dir_path = $input_dir == '' ? $this->uploads_dir : $this->uploads_dir . '/' . $input_dir;
|
75 |
|
76 |
+
$new_dir_path = $cur_dir_path . '/' . (isset($_REQUEST['new_dir_name']) ? stripslashes($_REQUEST['new_dir_name']) : '');
|
77 |
|
78 |
$msg = '';
|
79 |
if (file_exists($new_dir_path) == true) {
|
80 |
+
$msg = "Directory already exists.";
|
81 |
}
|
82 |
else {
|
83 |
mkdir($new_dir_path);
|
84 |
}
|
|
|
85 |
header('Location: ' . add_query_arg(array('action' => 'addImages', 'filemanager_msg' => $msg, 'width' => '650', 'height' => '500', 'task' => 'display', 'extensions' => $_REQUEST['extensions'], 'callback' => $_REQUEST['callback'], 'dir' => $_REQUEST['dir'], 'TB_iframe' => '1'), admin_url('admin-ajax.php')));
|
86 |
exit;
|
87 |
}
|
88 |
|
89 |
public function rename_item() {
|
90 |
+
$input_dir = (isset($_REQUEST['dir']) ? stripslashes($_REQUEST['dir']) : '');
|
91 |
$cur_dir_path = $input_dir == '' ? $this->uploads_dir : $this->uploads_dir . '/' . $input_dir;
|
92 |
|
93 |
+
$file_names = explode('**#**', (isset($_REQUEST['file_names']) ? stripslashes($_REQUEST['file_names']) : ''));
|
94 |
$file_name = $file_names[0];
|
95 |
|
96 |
+
$file_new_name = (isset($_REQUEST['file_new_name']) ? stripslashes($_REQUEST['file_new_name']) : '');
|
97 |
|
98 |
$file_path = $cur_dir_path . '/' . $file_name;
|
99 |
$thumb_file_path = $cur_dir_path . '/thumb/' . $file_name;
|
101 |
|
102 |
$msg = '';
|
103 |
if (file_exists($file_path) == false) {
|
104 |
+
$msg = "File doesn't exist.";
|
105 |
}
|
106 |
elseif (is_dir($file_path) == true) {
|
107 |
if (rename($file_path, $cur_dir_path . '/' . $file_new_name) == false) {
|
108 |
+
$msg = "Can't rename the file.";
|
109 |
}
|
110 |
}
|
111 |
elseif ((strrpos($file_name, '.') !== false)) {
|
112 |
$file_extension = substr($file_name, strrpos($file_name, '.') + 1);
|
113 |
if (rename($file_path, $cur_dir_path . '/' . $file_new_name . '.' . $file_extension) == false) {
|
114 |
+
$msg = "Can't rename the file.";
|
115 |
}
|
116 |
rename($thumb_file_path, $cur_dir_path . '/thumb/' . $file_new_name . '.' . $file_extension);
|
117 |
rename($original_file_path, $cur_dir_path . '/.original/' . $file_new_name . '.' . $file_extension);
|
118 |
}
|
119 |
else {
|
120 |
+
$msg = "Can't rename the file.";
|
121 |
}
|
122 |
$_REQUEST['file_names'] = '';
|
|
|
123 |
header('Location: ' . add_query_arg(array('action' => 'addImages', 'filemanager_msg' => $msg, 'width' => '650', 'height' => '500', 'task' => 'display', 'extensions' => $_REQUEST['extensions'], 'callback' => $_REQUEST['callback'], 'dir' => $_REQUEST['dir'], 'TB_iframe' => '1'), admin_url('admin-ajax.php')));
|
124 |
exit;
|
125 |
}
|
126 |
|
127 |
public function remove_items() {
|
128 |
+
$input_dir = (isset($_REQUEST['dir']) ? stripslashes($_REQUEST['dir']) : '');
|
129 |
$cur_dir_path = $input_dir == '' ? $this->uploads_dir : $this->uploads_dir . '/' . $input_dir;
|
130 |
|
131 |
+
$file_names = explode('**#**', (isset($_REQUEST['file_names']) ? stripslashes($_REQUEST['file_names']) : ''));
|
132 |
|
133 |
$msg = '';
|
134 |
foreach ($file_names as $file_name) {
|
136 |
$thumb_file_path = $cur_dir_path . '/thumb/' . $file_name;
|
137 |
$original_file_path = $cur_dir_path . '/.original/' . $file_name;
|
138 |
if (file_exists($file_path) == false) {
|
139 |
+
$msg = "Some of the files couldn't be removed.";
|
140 |
}
|
141 |
else {
|
142 |
if (!is_dir(file_path)) {
|
147 |
}
|
148 |
}
|
149 |
$_REQUEST['file_names'] = '';
|
|
|
150 |
header('Location: ' . add_query_arg(array('action' => 'addImages', 'filemanager_msg' => $msg, 'width' => '650', 'height' => '500', 'task' => 'show_file_manager', 'extensions' => $_REQUEST['extensions'], 'callback' => $_REQUEST['callback'], 'dir' => $_REQUEST['dir'], 'TB_iframe' => '1'), admin_url('admin-ajax.php')));
|
151 |
exit;
|
152 |
}
|
154 |
public function paste_items() {
|
155 |
$msg = '';
|
156 |
|
157 |
+
$file_names = explode('**#**', (isset($_REQUEST['clipboard_files']) ? stripslashes($_REQUEST['clipboard_files']) : ''));
|
158 |
// $src_dir = $_SESSION['clipboard_src'];
|
159 |
+
$src_dir = (isset($_REQUEST['clipboard_src']) ? stripslashes($_REQUEST['clipboard_src']) : '');
|
160 |
$src_dir = $src_dir == '' ? $this->uploads_dir : $this->uploads_dir . '/' . $src_dir;
|
161 |
// $dest_dir = $_SESSION['clipboard_dest'];
|
162 |
+
$dest_dir = (isset($_REQUEST['clipboard_dest']) ? stripslashes($_REQUEST['clipboard_dest']) : '');
|
163 |
$dest_dir = $dest_dir == '' ? $this->uploads_dir : $this->uploads_dir . '/' . $dest_dir;
|
164 |
|
165 |
+
switch ((isset($_REQUEST['clipboard_task']) ? stripslashes($_REQUEST['clipboard_task']) : '')) {
|
166 |
case 'copy':
|
167 |
foreach ($file_names as $file_name) {
|
168 |
$src = $src_dir . '/' . $file_name;
|
169 |
if (file_exists($src) == false) {
|
170 |
+
$msg = "Failed to copy some of the files.";
|
171 |
+
$msg = $file_name;
|
172 |
continue;
|
173 |
}
|
174 |
$dest = $dest_dir . '/' . $file_name;
|
197 |
}
|
198 |
|
199 |
if (!$this->copy_file_dir($src, $dest)) {
|
200 |
+
$msg = "Failed to copy some of the files.";
|
201 |
}
|
202 |
if (!is_dir($src_dir . '/' . $file_name)) {
|
203 |
$this->copy_file_dir($thumb_src, $thumb_dest);
|
223 |
}
|
224 |
}
|
225 |
if ((file_exists($src) == false) || (file_exists($dest) == true) || (!rename($src, $dest))) {
|
226 |
+
$msg = "Failed to move some of the files.";
|
227 |
}
|
228 |
if (!is_dir($src_dir . '/' . $file_name)) {
|
229 |
rename($thumb_src, $thumb_dest);
|
233 |
}
|
234 |
break;
|
235 |
}
|
|
|
236 |
header('Location: ' . add_query_arg(array('action' => 'addImages', 'filemanager_msg' => $msg, 'width' => '650', 'height' => '500', 'task' => 'show_file_manager', 'extensions' => $_REQUEST['extensions'], 'callback' => $_REQUEST['callback'], 'dir' => $_REQUEST['dir'], 'TB_iframe' => '1'), admin_url('admin-ajax.php')));
|
237 |
exit;
|
238 |
}
|
filemanager/css/default.css
CHANGED
@@ -139,244 +139,311 @@ html, body, div, span, th, td, a {
|
|
139 |
}
|
140 |
|
141 |
.ctrl_bar_btn.btn_copy {
|
142 |
-
|
143 |
}
|
144 |
|
145 |
.ctrl_bar_btn.btn_cut {
|
146 |
-
|
147 |
}
|
148 |
|
149 |
.ctrl_bar_btn.btn_paste {
|
150 |
-
|
151 |
}
|
152 |
|
153 |
.ctrl_bar_btn.btn_remove_items {
|
154 |
-
|
155 |
}
|
156 |
|
157 |
.ctrl_bar_btn.btn_upload_files {
|
158 |
-
|
159 |
-
|
160 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
161 |
}
|
162 |
|
163 |
.ctrl_bar_btn.btn_view_thumbs {
|
164 |
-
|
165 |
}
|
166 |
|
167 |
.ctrl_bar_btn.btn_view_list {
|
168 |
-
|
169 |
-
}
|
170 |
-
|
171 |
-
.ctrl_bar_btn.btn_open {
|
172 |
-
padding: 0 2px;
|
173 |
-
}
|
174 |
-
|
175 |
-
.ctrl_bar_btn.btn_cancel {
|
176 |
-
padding: 0 2px;
|
177 |
}
|
178 |
|
179 |
.ctrl_bar_btn.btn_back {
|
180 |
-
|
181 |
}
|
182 |
|
183 |
|
184 |
/* sort icons */
|
185 |
.sort_order_asc {
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
}
|
199 |
|
200 |
.sort_order_desc {
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
}
|
214 |
|
215 |
|
216 |
/* path */
|
217 |
#path {
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
}
|
230 |
|
231 |
.path_component {
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
}
|
241 |
|
242 |
.path_dir:hover {
|
243 |
-
|
244 |
-
|
245 |
}
|
246 |
|
247 |
.path_separator:hover {
|
248 |
-
|
249 |
}
|
250 |
|
251 |
|
252 |
#file_names_span {
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
}
|
259 |
|
260 |
#file_names_span span {
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
}
|
271 |
|
272 |
|
273 |
/* uploader */
|
274 |
#uploader {
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
}
|
279 |
|
280 |
#uploader_bg {
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
}
|
289 |
|
290 |
#uploader_hitter {
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
}
|
297 |
|
298 |
#drag_message {
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
}
|
307 |
|
308 |
#drag_message span {
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
}
|
316 |
|
317 |
#btnBrowseContainer {
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
}
|
326 |
|
327 |
#uploaded_files {
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
}
|
338 |
|
339 |
#uploaded_files ul {
|
340 |
-
|
341 |
-
|
342 |
}
|
343 |
|
344 |
.uploaded_item {
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
}
|
349 |
|
350 |
.uploaded_item_failed {
|
351 |
-
|
352 |
-
|
353 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
354 |
}
|
355 |
|
356 |
#uploader_progress {
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
}
|
369 |
|
370 |
#uploader_progress div {
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
}
|
376 |
|
377 |
#uploader_progress div div {
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
382 |
}
|
139 |
}
|
140 |
|
141 |
.ctrl_bar_btn.btn_copy {
|
142 |
+
background-image: url("../images/btn_icons/copy.png");
|
143 |
}
|
144 |
|
145 |
.ctrl_bar_btn.btn_cut {
|
146 |
+
background-image: url("../images/btn_icons/cut.png");
|
147 |
}
|
148 |
|
149 |
.ctrl_bar_btn.btn_paste {
|
150 |
+
background-image: url("../images/btn_icons/paste.png");
|
151 |
}
|
152 |
|
153 |
.ctrl_bar_btn.btn_remove_items {
|
154 |
+
background-image: url("../images/btn_icons/delete.png");
|
155 |
}
|
156 |
|
157 |
.ctrl_bar_btn.btn_upload_files {
|
158 |
+
padding-left: 32px;
|
159 |
+
padding-right: 4px;
|
160 |
+
background-image: url("../images/btn_icons/upload.png");
|
161 |
+
color: #F5F6F7;
|
162 |
+
cursor: pointer;
|
163 |
+
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
|
164 |
+
height: 30px !important;
|
165 |
+
font-size: 14px !important;
|
166 |
+
}
|
167 |
+
|
168 |
+
.ctrl_bar_btn.btn_upload_files:hover {
|
169 |
+
outline: none;
|
170 |
+
text-decoration: none;
|
171 |
+
}
|
172 |
+
|
173 |
+
.ctrl_bar_btn.btn_primary {
|
174 |
+
background-color: #21759B;
|
175 |
+
background-image: linear-gradient(to bottom, #2A95C5, #21759B);
|
176 |
+
border: 1px solid #21759b;
|
177 |
+
border-bottom-color: #1e6a8d;
|
178 |
+
box-shadow: 0 1px 0 rgba(120, 200, 230, 0.5) inset;
|
179 |
+
text-decoration: none;
|
180 |
+
color: #F5F6F7 !important;
|
181 |
+
-webkit-border-radius: 3px;
|
182 |
+
-webkit-appearance: none;
|
183 |
+
border-radius: 3px;
|
184 |
+
-moz-box-sizing: border-box;
|
185 |
+
box-sizing: border-box;
|
186 |
+
cursor: pointer;
|
187 |
+
white-space: nowrap;
|
188 |
+
padding: 0 10px;
|
189 |
+
font-size: 14px !important;
|
190 |
+
}
|
191 |
+
|
192 |
+
.ctrl_bar_btn.btn_secondary {
|
193 |
+
background: linear-gradient(to bottom, #FEFEFE, #F4F4F4) repeat scroll 0 0 #F3F3F3;
|
194 |
+
border-color: #BBBBBB;
|
195 |
+
color: #333333 !important;
|
196 |
+
text-shadow: 0 1px 0 #FFFFFF;
|
197 |
+
border: 1px solid #BBBBBB;
|
198 |
+
box-shadow: 0 1px 0 rgba(120, 200, 230, 0.5) inset;
|
199 |
+
text-decoration: none;
|
200 |
+
-webkit-border-radius: 3px;
|
201 |
+
-webkit-appearance: none;
|
202 |
+
border-radius: 3px;
|
203 |
+
-moz-box-sizing: border-box;
|
204 |
+
box-sizing: border-box;
|
205 |
+
cursor: pointer;
|
206 |
+
white-space: nowrap;
|
207 |
+
padding: 0 10px;
|
208 |
+
font-size: 14px !important;
|
209 |
+
}
|
210 |
+
.ctrl_bar_empty_devider {
|
211 |
+
display: table-cell;
|
212 |
+
width: 10px;
|
213 |
}
|
214 |
|
215 |
.ctrl_bar_btn.btn_view_thumbs {
|
216 |
+
background-image: url("../images/btn_icons/view_thumbs.png");
|
217 |
}
|
218 |
|
219 |
.ctrl_bar_btn.btn_view_list {
|
220 |
+
background-image: url("../images/btn_icons/view_list.png");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
221 |
}
|
222 |
|
223 |
.ctrl_bar_btn.btn_back {
|
224 |
+
background-image: url("../images/btn_icons/back.png");
|
225 |
}
|
226 |
|
227 |
|
228 |
/* sort icons */
|
229 |
.sort_order_asc {
|
230 |
+
display: inline-block !important;
|
231 |
+
margin: 0;
|
232 |
+
background-image: url("../images/btn_icons/sort_asc.png");
|
233 |
+
background-repeat: no-repeat;
|
234 |
+
padding: 0;
|
235 |
+
width: 12px !important;
|
236 |
+
height: 12px !important;
|
237 |
+
vertical-align: middle;
|
238 |
+
color: #808080;
|
239 |
+
cursor: default;
|
240 |
+
text-decoration: none;
|
241 |
+
cursor: pointer;
|
242 |
}
|
243 |
|
244 |
.sort_order_desc {
|
245 |
+
display: inline-block !important;
|
246 |
+
margin: 0;
|
247 |
+
background-image: url("../images/btn_icons/sort_desc.png");
|
248 |
+
background-repeat: no-repeat;
|
249 |
+
padding: 0;
|
250 |
+
width: 12px !important;
|
251 |
+
height: 12px !important;
|
252 |
+
vertical-align: middle;
|
253 |
+
color: #808080;
|
254 |
+
cursor: default;
|
255 |
+
text-decoration: none;
|
256 |
+
cursor: pointer;
|
257 |
}
|
258 |
|
259 |
|
260 |
/* path */
|
261 |
#path {
|
262 |
+
display: table-row;
|
263 |
+
position: absolute;
|
264 |
+
z-index: 1;
|
265 |
+
top: 40px;
|
266 |
+
left: 0;
|
267 |
+
right: 0;
|
268 |
+
border: solid 1px #e8e9ea;
|
269 |
+
background-color: #f5f6f7;
|
270 |
+
padding: 3px 3px;
|
271 |
+
height: 24px;
|
272 |
+
vertical-align: middle;
|
273 |
}
|
274 |
|
275 |
.path_component {
|
276 |
+
display: table-cell;
|
277 |
+
margin: 0;
|
278 |
+
background-repeat: no-repeat;
|
279 |
+
padding: 0 2px;
|
280 |
+
height: 24px !important;
|
281 |
+
vertical-align: middle;
|
282 |
+
color: #808080;
|
283 |
+
cursor: default;
|
284 |
}
|
285 |
|
286 |
.path_dir:hover {
|
287 |
+
outline: solid 1px #C6C6C6;
|
288 |
+
text-decoration: none;
|
289 |
}
|
290 |
|
291 |
.path_separator:hover {
|
292 |
+
text-decoration: none;
|
293 |
}
|
294 |
|
295 |
|
296 |
#file_names_span {
|
297 |
+
display: none;
|
298 |
+
padding: 0 4px;
|
299 |
+
width: 100%;
|
300 |
+
height: 32px !important;
|
301 |
+
vertical-align: middle;
|
302 |
}
|
303 |
|
304 |
#file_names_span span {
|
305 |
+
display: block;
|
306 |
+
height: 18px !important;
|
307 |
+
background-color: #ffffff;
|
308 |
+
vertical-align: middle;
|
309 |
+
cursor: default;
|
310 |
+
outline-style: solid;
|
311 |
+
outline-width: 1px;
|
312 |
+
outline-color: #C6C6C6;
|
313 |
+
overflow: hidden;
|
314 |
}
|
315 |
|
316 |
|
317 |
/* uploader */
|
318 |
#uploader {
|
319 |
+
z-index: 10;
|
320 |
+
width: 100%;
|
321 |
+
height: 100%;
|
322 |
}
|
323 |
|
324 |
#uploader_bg {
|
325 |
+
position: absolute;
|
326 |
+
top: 0;
|
327 |
+
bottom: 0;
|
328 |
+
left: 0;
|
329 |
+
right: 0;
|
330 |
+
background-color: #ffffff;
|
331 |
+
opacity: 0.9;
|
332 |
}
|
333 |
|
334 |
#uploader_hitter {
|
335 |
+
position: absolute;
|
336 |
+
top: 40px;
|
337 |
+
bottom: 160px;
|
338 |
+
left: 0;
|
339 |
+
right: 0;
|
340 |
}
|
341 |
|
342 |
#drag_message {
|
343 |
+
position: absolute;
|
344 |
+
top: 40px;
|
345 |
+
bottom: 60px;
|
346 |
+
left: 40px;
|
347 |
+
right: 40px;
|
348 |
+
outline: #c0c0c0 dashed 5px;
|
349 |
+
text-align: center;
|
350 |
}
|
351 |
|
352 |
#drag_message span {
|
353 |
+
position: absolute;
|
354 |
+
top: 20%;
|
355 |
+
left: 0;
|
356 |
+
right: 0;
|
357 |
+
font-size: 24pt !important;
|
358 |
+
color: #c0c0c0;
|
359 |
}
|
360 |
|
361 |
#btnBrowseContainer {
|
362 |
+
position: absolute;
|
363 |
+
bottom: 0;
|
364 |
+
left: 0;
|
365 |
+
right: 0;
|
366 |
+
height: 40px;
|
367 |
+
vertical-align: middle;
|
368 |
+
text-align: center;
|
369 |
}
|
370 |
|
371 |
#uploaded_files {
|
372 |
+
position: absolute;
|
373 |
+
bottom: 60px;
|
374 |
+
left: 0;
|
375 |
+
right: 0;
|
376 |
+
border: solid 1px #e8e9ea;
|
377 |
+
height: 100px;
|
378 |
+
background-color: #ffffff;
|
379 |
+
overflow-x: auto;
|
380 |
+
overflow-y: scroll;
|
381 |
}
|
382 |
|
383 |
#uploaded_files ul {
|
384 |
+
margin: 0;
|
385 |
+
padding: 5px !important;
|
386 |
}
|
387 |
|
388 |
.uploaded_item {
|
389 |
+
list-style: none;
|
390 |
+
padding: 2px;
|
391 |
+
color: #c0c0c0;
|
392 |
}
|
393 |
|
394 |
.uploaded_item_failed {
|
395 |
+
list-style: none;
|
396 |
+
padding: 2px;
|
397 |
+
color: #ff0000;
|
398 |
+
}
|
399 |
+
|
400 |
+
.uploader_text {
|
401 |
+
background-color: #ffffe0;
|
402 |
+
border-color: #e6db55;
|
403 |
+
padding: 5px 10px;
|
404 |
+
-webkit-border-radius: 3px;
|
405 |
+
border-radius: 3px;
|
406 |
+
border-width: 1px;
|
407 |
+
border-style: solid;
|
408 |
+
font-size: 12px !important;
|
409 |
+
font-family: sans-serif;
|
410 |
+
font-weight: bold;
|
411 |
+
color: #000000;
|
412 |
+
display: inherit;
|
413 |
}
|
414 |
|
415 |
#uploader_progress {
|
416 |
+
position: absolute;
|
417 |
+
z-index: 11;
|
418 |
+
bottom: 0;
|
419 |
+
left: 0;
|
420 |
+
right: 0;
|
421 |
+
border: solid 1px #e8e9ea;
|
422 |
+
background-color: #f5f6f7;
|
423 |
+
padding: 10px 20px;
|
424 |
+
height: 40px;
|
425 |
+
text-align: center;
|
426 |
+
color: #c0c0c0;
|
427 |
}
|
428 |
|
429 |
#uploader_progress div {
|
430 |
+
height: 20px;
|
431 |
+
border: solid 1px #e8e9ea;
|
432 |
+
border-radius: 5px;
|
433 |
+
background-color: #ffffff;
|
434 |
}
|
435 |
|
436 |
#uploader_progress div div {
|
437 |
+
border-width: 0;
|
438 |
+
background-image: url("../images/progressbar.gif");
|
439 |
+
background-repeat: repeat-x;
|
440 |
+
height: 20px;
|
441 |
+
}
|
442 |
+
|
443 |
+
.none_select {
|
444 |
+
-webkit-user-select: none;
|
445 |
+
-khtml-user-select: none;
|
446 |
+
-moz-user-select: none;
|
447 |
+
-ms-user-select: none;
|
448 |
+
user-select: none;
|
449 |
}
|
filemanager/css/default_view_list.css
CHANGED
@@ -1,113 +1,121 @@
|
|
1 |
#explorer {
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
}
|
9 |
|
10 |
#explorer_header_container {
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
|
|
19 |
}
|
20 |
|
21 |
#explorer_header {
|
22 |
-
|
23 |
}
|
24 |
|
25 |
#explorer_header span {
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
}
|
30 |
|
31 |
#explorer_body_container {
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
}
|
49 |
|
50 |
#explorer_body {
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
}
|
56 |
|
57 |
|
58 |
.explorer_item {
|
59 |
-
|
60 |
-
|
61 |
}
|
62 |
|
63 |
.explorer_item_hover {
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
}
|
69 |
|
70 |
.explorer_item_select {
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
}
|
76 |
|
77 |
-
|
78 |
.item_thumb {
|
79 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
}
|
81 |
|
82 |
.item_icon {
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
}
|
88 |
|
89 |
.item_icon img {
|
90 |
-
|
91 |
-
|
92 |
}
|
93 |
|
94 |
.item_name {
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
}
|
100 |
|
101 |
.item_size {
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
}
|
107 |
|
108 |
.item_date_modified {
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
}
|
1 |
#explorer {
|
2 |
+
position: absolute;
|
3 |
+
top: 70px;
|
4 |
+
bottom: 40px;
|
5 |
+
left: 0;
|
6 |
+
right: 0;
|
7 |
+
background-color: #ffffff;
|
8 |
}
|
9 |
|
10 |
#explorer_header_container {
|
11 |
+
position: absolute;
|
12 |
+
z-index: 1;
|
13 |
+
top: 0;
|
14 |
+
display: table;
|
15 |
+
outline: solid 1px #e8e9ea;
|
16 |
+
background-color: #ffffff;
|
17 |
+
width: 100%;
|
18 |
+
color: #585858;
|
19 |
+
padding: 0 0 0 5px;
|
20 |
}
|
21 |
|
22 |
#explorer_header {
|
23 |
+
display: table-row;
|
24 |
}
|
25 |
|
26 |
#explorer_header span {
|
27 |
+
display: table-cell;
|
28 |
+
height: 30px;
|
29 |
+
vertical-align: middle;
|
30 |
}
|
31 |
|
32 |
#explorer_body_container {
|
33 |
+
position: absolute;
|
34 |
+
top: 30px;
|
35 |
+
bottom: 0;
|
36 |
+
left: 0;
|
37 |
+
right: 0;
|
38 |
+
padding: 5px;
|
39 |
+
overflow-y: scroll;
|
40 |
+
|
41 |
+
/*deny selecting text*/
|
42 |
+
cursor: default;
|
43 |
+
-webkit-touch-callout: none;
|
44 |
+
-webkit-user-select: none;
|
45 |
+
-khtml-user-select: none;
|
46 |
+
-moz-user-select: none;
|
47 |
+
-ms-user-select: none;
|
48 |
+
user-select: none;
|
49 |
}
|
50 |
|
51 |
#explorer_body {
|
52 |
+
display: table;
|
53 |
+
margin: 0;
|
54 |
+
padding: 0;
|
55 |
+
width: 100%;
|
56 |
}
|
57 |
|
58 |
|
59 |
.explorer_item {
|
60 |
+
display: table-row;
|
61 |
+
height: 40px;
|
62 |
}
|
63 |
|
64 |
.explorer_item_hover {
|
65 |
+
outline-style: solid;
|
66 |
+
outline-width: 1px;
|
67 |
+
outline-color: #70c0e7;
|
68 |
+
background-color: #e5f3fb;
|
69 |
}
|
70 |
|
71 |
.explorer_item_select {
|
72 |
+
outline-style: solid;
|
73 |
+
outline-width: 1px;
|
74 |
+
outline-color: #66a7e8;
|
75 |
+
background-color: #d1e8ff;
|
76 |
}
|
77 |
|
|
|
78 |
.item_thumb {
|
79 |
+
display: none;
|
80 |
+
}
|
81 |
+
|
82 |
+
.item_numbering {
|
83 |
+
display: table-cell;
|
84 |
+
padding: 0 2px;
|
85 |
+
vertical-align: middle;
|
86 |
+
width: 20px;
|
87 |
+
text-align: right;
|
88 |
}
|
89 |
|
90 |
.item_icon {
|
91 |
+
display: table-cell;
|
92 |
+
width: 40px;
|
93 |
+
padding: 0 2px;
|
94 |
+
vertical-align: middle;
|
95 |
}
|
96 |
|
97 |
.item_icon img {
|
98 |
+
max-width: 32px;
|
99 |
+
max-height: 32px;
|
100 |
}
|
101 |
|
102 |
.item_name {
|
103 |
+
display: table-cell;
|
104 |
+
word-wrap: break-word;
|
105 |
+
word-break: break-all;
|
106 |
+
vertical-align: middle;
|
107 |
}
|
108 |
|
109 |
.item_size {
|
110 |
+
display: table-cell;
|
111 |
+
width: 60px;
|
112 |
+
color: #808080;
|
113 |
+
vertical-align: middle;
|
114 |
}
|
115 |
|
116 |
.item_date_modified {
|
117 |
+
display: table-cell;
|
118 |
+
width: 140px;
|
119 |
+
color: #808080;
|
120 |
+
vertical-align: middle;
|
121 |
}
|
filemanager/css/default_view_thumbs.css
CHANGED
@@ -1,79 +1,83 @@
|
|
1 |
#explorer {
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
}
|
10 |
|
11 |
#explorer_header_container {
|
12 |
-
|
13 |
}
|
14 |
|
15 |
#explorer_body_container {
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
}
|
24 |
|
25 |
|
26 |
.explorer_item {
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
}
|
33 |
|
34 |
.explorer_item_hover {
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
}
|
40 |
|
41 |
.explorer_item_select {
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
}
|
47 |
|
48 |
|
49 |
.item_thumb {
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
|
|
|
|
|
|
|
|
55 |
}
|
56 |
|
57 |
.item_thumb img {
|
58 |
-
|
59 |
-
|
60 |
}
|
61 |
|
62 |
.item_icon {
|
63 |
-
|
64 |
}
|
65 |
|
66 |
.item_name {
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
}
|
72 |
|
73 |
.item_size {
|
74 |
-
|
75 |
}
|
76 |
|
77 |
.item_date_modified {
|
78 |
-
|
79 |
}
|
1 |
#explorer {
|
2 |
+
position: absolute;
|
3 |
+
top: 70px;
|
4 |
+
bottom: 40px;
|
5 |
+
left: 0;
|
6 |
+
right: 0;
|
7 |
+
background-color: #ffffff;
|
8 |
+
width: 100%;
|
9 |
}
|
10 |
|
11 |
#explorer_header_container {
|
12 |
+
display: none;
|
13 |
}
|
14 |
|
15 |
#explorer_body_container {
|
16 |
+
position: absolute;
|
17 |
+
top: 0;
|
18 |
+
bottom: 0;
|
19 |
+
left: 0;
|
20 |
+
right: 0;
|
21 |
+
padding: 5px;
|
22 |
+
overflow-y: scroll;
|
23 |
}
|
24 |
|
25 |
|
26 |
.explorer_item {
|
27 |
+
display: table-row;
|
28 |
+
float: left;
|
29 |
+
width: 120px;
|
30 |
+
height: 100px;
|
31 |
+
text-align: center;
|
32 |
}
|
33 |
|
34 |
.explorer_item_hover {
|
35 |
+
outline-style: solid;
|
36 |
+
outline-width: 1px;
|
37 |
+
outline-color: #70c0e7;
|
38 |
+
background-color: #e5f3fb;
|
39 |
}
|
40 |
|
41 |
.explorer_item_select {
|
42 |
+
outline-style: solid;
|
43 |
+
outline-width: 1px;
|
44 |
+
outline-color: #66a7e8;
|
45 |
+
background-color: #d1e8ff;
|
46 |
}
|
47 |
|
48 |
|
49 |
.item_thumb {
|
50 |
+
display: table-cell;
|
51 |
+
padding: 2px;
|
52 |
+
width: 116px;
|
53 |
+
height: 76px;
|
54 |
+
vertical-align: middle;
|
55 |
+
}
|
56 |
+
|
57 |
+
.item_numbering {
|
58 |
+
display: none;
|
59 |
}
|
60 |
|
61 |
.item_thumb img {
|
62 |
+
max-width: 116px;
|
63 |
+
max-height: 76px;
|
64 |
}
|
65 |
|
66 |
.item_icon {
|
67 |
+
display: none;
|
68 |
}
|
69 |
|
70 |
.item_name {
|
71 |
+
display: block;
|
72 |
+
margin: 0 4px;
|
73 |
+
height: 20px;
|
74 |
+
overflow: hidden;
|
75 |
}
|
76 |
|
77 |
.item_size {
|
78 |
+
display: none;
|
79 |
}
|
80 |
|
81 |
.item_date_modified {
|
82 |
+
display: none;
|
83 |
}
|
filemanager/js/default.js
CHANGED
@@ -27,24 +27,24 @@ var isUploading;
|
|
27 |
// Public Methods //
|
28 |
////////////////////////////////////////////////////////////////////////////////////////
|
29 |
jQuery(document).ready(function () {
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
});
|
49 |
|
50 |
|
@@ -55,155 +55,156 @@ jQuery(document).ready(function () {
|
|
55 |
// Private Methods //
|
56 |
////////////////////////////////////////////////////////////////////////////////////////
|
57 |
function getClipboardFiles() {
|
58 |
-
|
59 |
}
|
60 |
|
61 |
function submit(task, sortBy, sortOrder, itemsView, destDir, fileNewName, newDirName, clipboardTask, clipboardFiles, clipboardSrc, clipboardDest) {
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
|
92 |
-
|
93 |
|
94 |
-
|
95 |
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
}
|
133 |
|
134 |
function updateFileNames() {
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
}
|
141 |
-
result = fileNames.join(" ");
|
142 |
}
|
143 |
-
|
|
|
|
|
144 |
}
|
145 |
|
146 |
|
147 |
// submit file
|
148 |
function submitFiles() {
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
}
|
169 |
}
|
170 |
-
|
171 |
-
|
|
|
172 |
}
|
173 |
|
174 |
function getScrollBarWidth() {
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
|
|
196 |
|
197 |
-
|
198 |
}
|
199 |
|
200 |
function getFileName(file) {
|
201 |
-
|
202 |
-
|
203 |
}
|
204 |
|
205 |
function getFileExtension(file) {
|
206 |
-
|
207 |
}
|
208 |
|
209 |
|
@@ -212,89 +213,88 @@ function getFileExtension(file) {
|
|
212 |
////////////////////////////////////////////////////////////////////////////////////////
|
213 |
//ctrls bar handlers
|
214 |
function onBtnUpClick(event, obj) {
|
215 |
-
|
216 |
-
|
217 |
}
|
218 |
|
219 |
function onBtnMakeDirClick(event, obj) {
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
}
|
225 |
|
226 |
function onBtnRenameItemClick(event, obj) {
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
}
|
232 |
}
|
|
|
233 |
}
|
234 |
|
235 |
function onBtnCopyClick(event, obj) {
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
}
|
240 |
|
241 |
function onBtnCutClick(event, obj) {
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
}
|
246 |
|
247 |
function onBtnPasteClick(event, obj) {
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
}
|
252 |
|
253 |
function onBtnRemoveItemsClick(event, obj) {
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
}
|
258 |
|
259 |
function onBtnShowUploaderClick(event, obj) {
|
260 |
-
|
261 |
}
|
262 |
|
263 |
function onBtnViewThumbsClick(event, obj) {
|
264 |
-
|
265 |
}
|
266 |
|
267 |
function onBtnViewListClick(event, obj) {
|
268 |
-
|
269 |
}
|
270 |
|
271 |
function onBtnBackClick(event, obj) {
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
}
|
278 |
|
279 |
|
280 |
function onPathComponentClick(event, obj, path) {
|
281 |
-
|
282 |
}
|
283 |
|
284 |
-
|
285 |
function onNameHeaderClick(event, obj) {
|
286 |
-
|
287 |
-
|
288 |
}
|
289 |
|
290 |
function onSizeHeaderClick(event, obj) {
|
291 |
-
|
292 |
-
|
293 |
}
|
294 |
|
295 |
function onDateModifiedHeaderClick(event, obj) {
|
296 |
-
|
297 |
-
|
298 |
}
|
299 |
|
300 |
|
@@ -308,8 +308,8 @@ function onKeyDown(e) {
|
|
308 |
jQuery(".explorer_item").each(function() {
|
309 |
var objName = jQuery(this).attr("name");
|
310 |
if (filesSelected.indexOf(objName) == -1) {
|
311 |
-
|
312 |
-
|
313 |
}
|
314 |
});
|
315 |
e.preventDefault();
|
@@ -321,106 +321,123 @@ function onFileMOver(event, obj) {
|
|
321 |
}
|
322 |
|
323 |
function onFileMOut(event, obj) {
|
324 |
-
|
325 |
}
|
326 |
|
327 |
function onFileClick(event, obj) {
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
}
|
335 |
-
} else if (event.shiftKey == true) {
|
336 |
-
filesSelected = [];
|
337 |
-
var explorerItems = jQuery(".explorer_item");
|
338 |
-
var curFileIndex = explorerItems.index(jQuery(obj));
|
339 |
-
var keyFileIndex = explorerItems.index(keyFileSelected);
|
340 |
-
var startIndex = Math.min(keyFileIndex, curFileIndex);
|
341 |
-
var endIndex = startIndex + Math.abs(curFileIndex - keyFileIndex);
|
342 |
-
for (var i = startIndex; i < endIndex + 1; i++) {
|
343 |
-
filesSelected.push(jQuery(explorerItems[i]).attr("name"));
|
344 |
-
}
|
345 |
-
} else {
|
346 |
-
filesSelected = [jQuery(obj).attr("name")];
|
347 |
-
keyFileSelected = obj;
|
348 |
}
|
349 |
-
|
350 |
-
|
351 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
352 |
}
|
|
|
|
|
|
|
|
|
|
|
353 |
|
354 |
-
|
|
|
|
|
|
|
355 |
}
|
356 |
|
357 |
function onFileDblClick(event, obj) {
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
|
|
365 |
}
|
366 |
|
367 |
function onFileDragStart(event, obj) {
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
updateFileNames();
|
396 |
}
|
397 |
-
|
|
|
|
|
|
|
398 |
}
|
399 |
|
400 |
function onFileDragOver(event, obj) {
|
401 |
-
|
402 |
}
|
403 |
|
404 |
function onFileDrop(event, obj) {
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
}
|
414 |
|
415 |
function onBtnOpenClick(event, obj) {
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
|
|
422 |
}
|
423 |
|
424 |
function onBtnCancelClick(event, obj) {
|
425 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
426 |
}
|
27 |
// Public Methods //
|
28 |
////////////////////////////////////////////////////////////////////////////////////////
|
29 |
jQuery(document).ready(function () {
|
30 |
+
filesSelected = [];
|
31 |
+
dragFiles = [];
|
32 |
+
|
33 |
+
//file manager under system messages
|
34 |
+
jQuery("#wrapper").css("top", jQuery("#file_manager_message").css("height"));
|
35 |
+
jQuery(window).resize(function () {
|
36 |
+
jQuery("#container").css("top", jQuery("#file_manager_message").css("height"));
|
37 |
+
});
|
38 |
+
|
39 |
+
isUploading = false;
|
40 |
+
jQuery("#uploader").css("display", "none");
|
41 |
+
jQuery("#uploader_progress_bar").css("display", "none");
|
42 |
+
|
43 |
+
//decrease explorer header width by scroller width
|
44 |
+
jQuery(".scrollbar_filler").css("width", getScrollBarWidth() + "px");
|
45 |
+
jQuery(document).keydown(function(e) {
|
46 |
+
onKeyDown(e);
|
47 |
+
});
|
48 |
});
|
49 |
|
50 |
|
55 |
// Private Methods //
|
56 |
////////////////////////////////////////////////////////////////////////////////////////
|
57 |
function getClipboardFiles() {
|
58 |
+
return jQuery("form[name=adminForm]").find("input[name=clipboard_file]").val();
|
59 |
}
|
60 |
|
61 |
function submit(task, sortBy, sortOrder, itemsView, destDir, fileNewName, newDirName, clipboardTask, clipboardFiles, clipboardSrc, clipboardDest) {
|
62 |
+
fileNames = filesSelected.join("**#**");
|
63 |
+
switch (task) {
|
64 |
+
case "rename_item":
|
65 |
+
destDir = dir;
|
66 |
+
newDirName = "";
|
67 |
+
clipboardTask = ""
|
68 |
+
clipboardDest = "";
|
69 |
+
break;
|
70 |
+
case "remove_items":
|
71 |
+
destDir = dir;
|
72 |
+
fileNewName = "";
|
73 |
+
newDirName = "";
|
74 |
+
clipboardTask = ""
|
75 |
+
clipboardDest = "";
|
76 |
+
break;
|
77 |
+
case "make_dir":
|
78 |
+
destDir = dir;
|
79 |
+
fileNewName = "";
|
80 |
+
clipboardTask = ""
|
81 |
+
clipboardDest = "";
|
82 |
+
break;
|
83 |
+
case "paste_items":
|
84 |
+
destDir = dir;
|
85 |
+
fileNewName = "";
|
86 |
+
newDirName = "";
|
87 |
+
break;
|
88 |
+
default:
|
89 |
+
task = "";
|
90 |
+
break;
|
91 |
|
92 |
+
}
|
93 |
|
94 |
+
jQuery("form[name=adminForm]").find("input[name=task]").val(task);
|
95 |
|
96 |
+
if (sortBy != null) {
|
97 |
+
jQuery("form[name=adminForm]").find("input[name=sort_by]").val(sortBy);
|
98 |
+
}
|
99 |
+
if (sortOrder != null) {
|
100 |
+
jQuery("form[name=adminForm]").find("input[name=sort_order]").val(sortOrder);
|
101 |
+
}
|
102 |
+
if (itemsView != null) {
|
103 |
+
jQuery("form[name=adminForm]").find("input[name=items_view]").val(itemsView);
|
104 |
+
}
|
105 |
|
106 |
+
if (destDir != null) {
|
107 |
+
jQuery("form[name=adminForm]").find("input[name=dir]").val(destDir);
|
108 |
+
}
|
109 |
+
if (fileNames != null) {
|
110 |
+
jQuery("form[name=adminForm]").find("input[name=file_names]").val(fileNames);
|
111 |
+
}
|
112 |
+
if (fileNewName != null) {
|
113 |
+
jQuery("form[name=adminForm]").find("input[name=file_new_name]").val(fileNewName);
|
114 |
+
}
|
115 |
+
if (newDirName != null) {
|
116 |
+
jQuery("form[name=adminForm]").find("input[name=new_dir_name]").val(newDirName);
|
117 |
+
}
|
118 |
|
119 |
+
if (clipboardTask != null) {
|
120 |
+
jQuery("form[name=adminForm]").find("input[name=clipboard_task]").val(clipboardTask);
|
121 |
+
}
|
122 |
+
if (clipboardFiles != null) {
|
123 |
+
jQuery("form[name=adminForm]").find("input[name=clipboard_files]").val(clipboardFiles);
|
124 |
+
}
|
125 |
+
if (clipboardSrc != null) {
|
126 |
+
jQuery("form[name=adminForm]").find("input[name=clipboard_src]").val(clipboardSrc);
|
127 |
+
}
|
128 |
+
if (clipboardDest != null) {
|
129 |
+
jQuery("form[name=adminForm]").find("input[name=clipboard_dest]").val(clipboardDest);
|
130 |
+
}
|
131 |
+
jQuery("form[name=adminForm]").submit();
|
132 |
}
|
133 |
|
134 |
function updateFileNames() {
|
135 |
+
var result = "";
|
136 |
+
if (filesSelected.length > 0) {
|
137 |
+
var fileNames = [];
|
138 |
+
for (var i = 0; i < filesSelected.length; i++) {
|
139 |
+
fileNames[i] = "'" + filesSelected[i] + "'";
|
|
|
|
|
140 |
}
|
141 |
+
result = fileNames.join(" ");
|
142 |
+
}
|
143 |
+
jQuery("#file_names_span span").html(result);
|
144 |
}
|
145 |
|
146 |
|
147 |
// submit file
|
148 |
function submitFiles() {
|
149 |
+
if (filesSelected.length == 0) {
|
150 |
+
return;
|
151 |
+
}
|
152 |
+
var filesValid = [];
|
153 |
+
for (var i = 0; i < filesSelected.length; i++) {
|
154 |
+
var file_object = jQuery(".explorer_item[name='" + filesSelected[i] + "']");
|
155 |
+
if (jQuery(file_object).attr("isDir") == "false") {
|
156 |
+
var fileData = [];
|
157 |
+
fileData['name'] = filesSelected[i];
|
158 |
+
fileData['filename'] = jQuery(file_object).attr("filename");
|
159 |
+
fileData['url'] = dir + "/" + filesSelected[i];
|
160 |
+
fileData['reliative_url'] = dirUrl + "/" + filesSelected[i];
|
161 |
+
fileData['thumb_url'] = dir + "/thumb/" + filesSelected[i];
|
162 |
+
fileData['thumb'] = jQuery(file_object).attr("filethumb");
|
163 |
+
fileData['size'] = jQuery(file_object).attr("filesize");
|
164 |
+
fileData['filetype'] = jQuery(file_object).attr("filetype");
|
165 |
+
fileData['date_modified'] = jQuery(file_object).attr("date_modified");
|
166 |
+
fileData['resolution'] = jQuery(file_object).attr("fileresolution");
|
167 |
+
filesValid.push(fileData);
|
|
|
168 |
}
|
169 |
+
}
|
170 |
+
window.parent[callback](filesValid);
|
171 |
+
window.parent.tb_remove();
|
172 |
}
|
173 |
|
174 |
function getScrollBarWidth() {
|
175 |
+
var inner = document.createElement("p");
|
176 |
+
inner.style.width = "100%";
|
177 |
+
inner.style.height = "200px";
|
178 |
+
|
179 |
+
var outer = document.createElement("div");
|
180 |
+
outer.style.position = "absolute";
|
181 |
+
outer.style.top = "0px";
|
182 |
+
outer.style.left = "0px";
|
183 |
+
outer.style.visibility = "hidden";
|
184 |
+
outer.style.width = "200px";
|
185 |
+
outer.style.height = "150px";
|
186 |
+
outer.style.overflow = "hidden";
|
187 |
+
outer.appendChild(inner);
|
188 |
+
|
189 |
+
document.body.appendChild(outer);
|
190 |
+
var w1 = inner.offsetWidth;
|
191 |
+
outer.style.overflow = "scroll";
|
192 |
+
var w2 = inner.offsetWidth;
|
193 |
+
if (w1 == w2) {
|
194 |
+
w2 = outer.clientWidth;
|
195 |
+
}
|
196 |
+
document.body.removeChild(outer);
|
197 |
|
198 |
+
return (w1 - w2);
|
199 |
}
|
200 |
|
201 |
function getFileName(file) {
|
202 |
+
var dotIndex = file.lastIndexOf('.');
|
203 |
+
return file.substring(0, dotIndex < 0 ? file.length : dotIndex);
|
204 |
}
|
205 |
|
206 |
function getFileExtension(file) {
|
207 |
+
return file.substring(file.lastIndexOf('.') + 1);
|
208 |
}
|
209 |
|
210 |
|
213 |
////////////////////////////////////////////////////////////////////////////////////////
|
214 |
//ctrls bar handlers
|
215 |
function onBtnUpClick(event, obj) {
|
216 |
+
var destDir = dir.substring(0, dir.lastIndexOf(DS));
|
217 |
+
submit("", null, null, null, destDir, null, null, null, null, null, null);
|
218 |
}
|
219 |
|
220 |
function onBtnMakeDirClick(event, obj) {
|
221 |
+
var newDirName = prompt(messageEnterDirName);
|
222 |
+
if ((newDirName) && (newDirName != "")) {
|
223 |
+
submit("make_dir", null, null, null, null, null, newDirName, null, null, null, null);
|
224 |
+
}
|
225 |
}
|
226 |
|
227 |
function onBtnRenameItemClick(event, obj) {
|
228 |
+
if (filesSelected.length != 0) {
|
229 |
+
var newName = prompt(messageEnterNewName, getFileName(filesSelected[0]));
|
230 |
+
if ((newName != null) && (newName != "")) {
|
231 |
+
submit("rename_item", null, null, null, null, newName, null, null, null, null, null);
|
|
|
232 |
}
|
233 |
+
}
|
234 |
}
|
235 |
|
236 |
function onBtnCopyClick(event, obj) {
|
237 |
+
if (filesSelected.length != 0) {
|
238 |
+
submit("", null, null, null, null, null, null, "copy", filesSelected.join(","), dir, null);
|
239 |
+
}
|
240 |
}
|
241 |
|
242 |
function onBtnCutClick(event, obj) {
|
243 |
+
if (filesSelected.length != 0) {
|
244 |
+
submit("", null, null, null, null, null, null, "cut", filesSelected.join(","), dir, null);
|
245 |
+
}
|
246 |
}
|
247 |
|
248 |
function onBtnPasteClick(event, obj) {
|
249 |
+
if (getClipboardFiles() != "") {
|
250 |
+
submit("paste_items", null, null, null, null, null, null, null, null, null, dir);
|
251 |
+
}
|
252 |
}
|
253 |
|
254 |
function onBtnRemoveItemsClick(event, obj) {
|
255 |
+
if ((filesSelected.length != 0) && (confirm(warningRemoveItems) == true)) {
|
256 |
+
submit("remove_items", null, null, null, null, null, null, null, null, null, null);
|
257 |
+
}
|
258 |
}
|
259 |
|
260 |
function onBtnShowUploaderClick(event, obj) {
|
261 |
+
jQuery("#uploader").fadeIn();
|
262 |
}
|
263 |
|
264 |
function onBtnViewThumbsClick(event, obj) {
|
265 |
+
submit("", null, null, "thumbs", null, null, null, null, null, null, null);
|
266 |
}
|
267 |
|
268 |
function onBtnViewListClick(event, obj) {
|
269 |
+
submit("", null, null, "list", null, null, null, null, null, null, null);
|
270 |
}
|
271 |
|
272 |
function onBtnBackClick(event, obj) {
|
273 |
+
if ((isUploading == false) || (confirm(warningCancelUploads) == true)) {
|
274 |
+
jQuery("#uploader").fadeOut(function () {
|
275 |
+
submit("", null, null, null, null, null, null, null, null, null, null);
|
276 |
+
});
|
277 |
+
}
|
278 |
}
|
279 |
|
280 |
|
281 |
function onPathComponentClick(event, obj, path) {
|
282 |
+
submit("", null, null, null, path, null, null, null, null, null, null);
|
283 |
}
|
284 |
|
|
|
285 |
function onNameHeaderClick(event, obj) {
|
286 |
+
var newSortOrder = ((sortBy == "name") && (sortOrder == "asc")) ? "desc" : "asc";
|
287 |
+
submit("", "name", newSortOrder, null, null, null, null, null, null, null, null);
|
288 |
}
|
289 |
|
290 |
function onSizeHeaderClick(event, obj) {
|
291 |
+
var newSortOrder = ((sortBy == "size") && (sortOrder == "asc")) ? "desc" : "asc";
|
292 |
+
submit("", "size", newSortOrder, null, null, null, null, null, null, null, null);
|
293 |
}
|
294 |
|
295 |
function onDateModifiedHeaderClick(event, obj) {
|
296 |
+
var newSortOrder = ((sortBy == "date_modified") && (sortOrder == "asc")) ? "desc" : "asc";
|
297 |
+
submit("", "date_modified", newSortOrder, null, null, null, null, null, null, null, null);
|
298 |
}
|
299 |
|
300 |
|
308 |
jQuery(".explorer_item").each(function() {
|
309 |
var objName = jQuery(this).attr("name");
|
310 |
if (filesSelected.indexOf(objName) == -1) {
|
311 |
+
filesSelected.push(objName);
|
312 |
+
keyFileSelected = this;
|
313 |
}
|
314 |
});
|
315 |
e.preventDefault();
|
321 |
}
|
322 |
|
323 |
function onFileMOut(event, obj) {
|
324 |
+
jQuery(obj).removeClass("explorer_item_hover");
|
325 |
}
|
326 |
|
327 |
function onFileClick(event, obj) {
|
328 |
+
jQuery(".explorer_item").removeClass("explorer_item_select");
|
329 |
+
var objName = jQuery(obj).attr("name");
|
330 |
+
if (event.ctrlKey == true) {
|
331 |
+
if (filesSelected.indexOf(objName) == -1) {
|
332 |
+
filesSelected.push(objName);
|
333 |
+
keyFileSelected = obj;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
334 |
}
|
335 |
+
}
|
336 |
+
else if (event.shiftKey == true) {
|
337 |
+
filesSelected = [];
|
338 |
+
var explorerItems = jQuery(".explorer_item");
|
339 |
+
var curFileIndex = explorerItems.index(jQuery(obj));
|
340 |
+
var keyFileIndex = explorerItems.index(keyFileSelected);
|
341 |
+
var startIndex = Math.min(keyFileIndex, curFileIndex);
|
342 |
+
var endIndex = startIndex + Math.abs(curFileIndex - keyFileIndex);
|
343 |
+
for (var i = startIndex; i < endIndex + 1; i++) {
|
344 |
+
filesSelected.push(jQuery(explorerItems[i]).attr("name"));
|
345 |
}
|
346 |
+
}
|
347 |
+
else {
|
348 |
+
filesSelected = [jQuery(obj).attr("name")];
|
349 |
+
keyFileSelected = obj;
|
350 |
+
}
|
351 |
|
352 |
+
for (var i = 0; i < filesSelected.length; i++) {
|
353 |
+
jQuery(".explorer_item[name='" + filesSelected[i] + "']").addClass("explorer_item_select");
|
354 |
+
}
|
355 |
+
updateFileNames();
|
356 |
}
|
357 |
|
358 |
function onFileDblClick(event, obj) {
|
359 |
+
if (jQuery(obj).attr("isDir") == "true") {
|
360 |
+
submit("", null, null, null, dir + DS + jQuery(obj).attr("name"), null, null, null, null, null, null);
|
361 |
+
}
|
362 |
+
else {
|
363 |
+
filesSelected = [];
|
364 |
+
filesSelected.push(jQuery(obj).attr("name"));
|
365 |
+
submitFiles();
|
366 |
+
}
|
367 |
}
|
368 |
|
369 |
function onFileDragStart(event, obj) {
|
370 |
+
var objName = jQuery(obj).attr("name");
|
371 |
+
if (filesSelected.indexOf(objName) < 0) {
|
372 |
+
jQuery(".explorer_item").removeClass("explorer_item_select");
|
373 |
+
if (event.ctrlKey == true) {
|
374 |
+
if (filesSelected.indexOf(objName) == -1) {
|
375 |
+
filesSelected.push(objName);
|
376 |
+
keyFileSelected = obj;
|
377 |
+
}
|
378 |
+
}
|
379 |
+
else if (event.shiftKey == true) {
|
380 |
+
filesSelected = [];
|
381 |
+
var explorerItems = jQuery(".explorer_item");
|
382 |
+
var curFileIndex = explorerItems.index(jQuery(obj));
|
383 |
+
var keyFileIndex = explorerItems.index(keyFileSelected);
|
384 |
+
var startIndex = Math.min(keyFileIndex, curFileIndex);
|
385 |
+
var endIndex = startIndex + Math.abs(curFileIndex - keyFileIndex);
|
386 |
+
for (var i = startIndex; i < endIndex + 1; i++) {
|
387 |
+
filesSelected.push(jQuery(explorerItems[i]).attr("name"));
|
388 |
+
}
|
389 |
+
}
|
390 |
+
else {
|
391 |
+
filesSelected = [jQuery(obj).attr("name")];
|
392 |
+
keyFileSelected = obj;
|
393 |
+
}
|
394 |
+
|
395 |
+
for (var i = 0; i < filesSelected.length; i++) {
|
396 |
+
jQuery(".explorer_item[name='" + filesSelected[i] + "']").addClass("explorer_item_select");
|
|
|
397 |
}
|
398 |
+
|
399 |
+
updateFileNames();
|
400 |
+
}
|
401 |
+
dragFiles = filesSelected;
|
402 |
}
|
403 |
|
404 |
function onFileDragOver(event, obj) {
|
405 |
+
event.preventDefault();
|
406 |
}
|
407 |
|
408 |
function onFileDrop(event, obj) {
|
409 |
+
var destDirName = jQuery(obj).attr("name");
|
410 |
+
if ((dragFiles.length == 0) || (dragFiles.indexOf(destDirName) >= 0)) {
|
411 |
+
return false;
|
412 |
+
}
|
413 |
+
var clipboardTask = event.ctrlKey == true ? "copy" : "cut";
|
414 |
+
var clipboardDest = dir + DS + destDirName;
|
415 |
+
submit("paste_items", null, null, null, null, null, null, clipboardTask, dragFiles.join(","), dir, clipboardDest);
|
416 |
+
event.preventDefault();
|
417 |
}
|
418 |
|
419 |
function onBtnOpenClick(event, obj) {
|
420 |
+
if (jQuery(".explorer_item[name='" + filesSelected[0] + "']").attr("isDir") == true) {
|
421 |
+
filesSelected.length = 1;
|
422 |
+
submit("", null, null, null, dir + DS + filesSelected[0], null, null, null, null, null, null);
|
423 |
+
}
|
424 |
+
else {
|
425 |
+
submitFiles();
|
426 |
+
}
|
427 |
}
|
428 |
|
429 |
function onBtnCancelClick(event, obj) {
|
430 |
+
window.parent.tb_remove();
|
431 |
+
}
|
432 |
+
|
433 |
+
function onBtnSelectAllClick() {
|
434 |
+
jQuery(".explorer_item").addClass("explorer_item_select");
|
435 |
+
filesSelected = [];
|
436 |
+
jQuery(".explorer_item").each(function() {
|
437 |
+
var objName = jQuery(this).attr("name");
|
438 |
+
if (filesSelected.indexOf(objName) == -1) {
|
439 |
+
filesSelected.push(objName);
|
440 |
+
keyFileSelected = this;
|
441 |
+
}
|
442 |
+
});
|
443 |
}
|
filemanager/model.php
CHANGED
@@ -65,14 +65,14 @@ class FilemanagerModel {
|
|
65 |
// if (isset($_REQUEST[$key])) {
|
66 |
if (isset($_REQUEST[$key])) {
|
67 |
// $_SESSION[$key] = $_REQUEST[$key];
|
68 |
-
$_REQUEST[$key] = $_REQUEST[$key];
|
69 |
}
|
70 |
else {
|
71 |
// $_SESSION[$key] = $default;
|
72 |
-
$_REQUEST[$key] = $default;
|
73 |
}
|
74 |
// return $_SESSION[$key];
|
75 |
-
return $_REQUEST[$key];
|
76 |
// }
|
77 |
// return '';
|
78 |
}
|
65 |
// if (isset($_REQUEST[$key])) {
|
66 |
if (isset($_REQUEST[$key])) {
|
67 |
// $_SESSION[$key] = $_REQUEST[$key];
|
68 |
+
$_REQUEST[$key] = stripslashes($_REQUEST[$key]);
|
69 |
}
|
70 |
else {
|
71 |
// $_SESSION[$key] = $default;
|
72 |
+
$_REQUEST[$key] = stripslashes($default);
|
73 |
}
|
74 |
// return $_SESSION[$key];
|
75 |
+
return stripslashes($_REQUEST[$key]);
|
76 |
// }
|
77 |
// return '';
|
78 |
}
|
filemanager/view.php
CHANGED
@@ -34,7 +34,7 @@ class FilemanagerView {
|
|
34 |
?>
|
35 |
<div id="file_manager_message" style="height:40px;">
|
36 |
<div style="background-color: #FFEBE8; border: 1px solid #CC0000; margin: 5px 15px 2px; padding: 5px 10px;">
|
37 |
-
<strong style="font-size:14px"><?php echo esc_html($_GET['filemanager_msg']); ?></strong>
|
38 |
</div>
|
39 |
</div>
|
40 |
<?php
|
@@ -76,21 +76,22 @@ class FilemanagerView {
|
|
76 |
var sortBy = "<?php echo $sort_by; ?>";
|
77 |
var sortOrder = "<?php echo $sort_order; ?>";
|
78 |
</script>
|
79 |
-
<script src="<?php echo WD_BWG_URL; ?>/filemanager/js/default.js"></script>
|
80 |
-
<link href="<?php echo WD_BWG_URL; ?>/filemanager/css/default.css" type="text/css" rel="stylesheet">
|
81 |
<?php
|
82 |
switch ($items_view) {
|
83 |
case 'list':
|
84 |
?>
|
85 |
-
<link href="<?php echo WD_BWG_URL; ?>/filemanager/css/default_view_list.css" type="text/css" rel="stylesheet">
|
86 |
<?php
|
87 |
break;
|
88 |
case 'thumbs':
|
89 |
?>
|
90 |
-
<link href="<?php echo WD_BWG_URL; ?>/filemanager/css/default_view_thumbs.css" type="text/css" rel="stylesheet">
|
91 |
<?php
|
92 |
break;
|
93 |
}
|
|
|
94 |
?>
|
95 |
|
96 |
<form id="adminForm" name="adminForm" action="" method="post">
|
@@ -107,7 +108,9 @@ class FilemanagerView {
|
|
107 |
<a class="ctrl_bar_btn btn_paste" onclick="onBtnPasteClick(event, this);" title="<?php echo 'Paste'; ?>"> </a>
|
108 |
<a class="ctrl_bar_btn btn_remove_items" onclick="onBtnRemoveItemsClick(event, this);" title="<?php echo 'Remove items'; ?>"></a>
|
109 |
<span class="ctrl_bar_divider"></span>
|
110 |
-
<
|
|
|
|
|
111 |
</div>
|
112 |
<div class="ctrls_right">
|
113 |
<a class="ctrl_bar_btn btn_view_thumbs" onclick="onBtnViewThumbsClick(event, this);" title="<?php echo 'View thumbs'; ?>"></a>
|
@@ -130,6 +133,7 @@ class FilemanagerView {
|
|
130 |
<div id="explorer_header_wrapper">
|
131 |
<div id="explorer_header_container">
|
132 |
<div id="explorer_header">
|
|
|
133 |
<span class="item_icon"></span>
|
134 |
<span class="item_name">
|
135 |
<span class="clickable" onclick="onNameHeaderClick(event, this);">
|
@@ -199,17 +203,18 @@ class FilemanagerView {
|
|
199 |
}
|
200 |
?>
|
201 |
isDir="<?php echo $file['is_dir'] == true ? 'true' : 'false'; ?>">
|
|
|
202 |
<span class="item_thumb">
|
203 |
-
|
204 |
</span>
|
205 |
<span class="item_icon">
|
206 |
-
|
207 |
</span>
|
208 |
<span class="item_name">
|
209 |
-
|
210 |
</span>
|
211 |
<span class="item_size">
|
212 |
-
|
213 |
</span>
|
214 |
<span class="item_date_modified">
|
215 |
<?php echo $file['date_modified']; ?>
|
@@ -223,13 +228,17 @@ class FilemanagerView {
|
|
223 |
</div>
|
224 |
</div>
|
225 |
<div class="ctrls_bar ctrls_bar_footer">
|
|
|
|
|
|
|
226 |
<div class="ctrls_right">
|
227 |
<span id="file_names_span">
|
228 |
<span>
|
229 |
</span>
|
230 |
</span>
|
231 |
-
<a class="ctrl_bar_btn btn_open"onclick="onBtnOpenClick(event, this);"><?php echo 'Add'; ?></a>
|
232 |
-
<
|
|
|
233 |
</div>
|
234 |
</div>
|
235 |
</div>
|
@@ -260,6 +269,7 @@ class FilemanagerView {
|
|
260 |
dataType: "json",
|
261 |
dropZone: jQuery("#uploader_hitter"),
|
262 |
submit: function (e, data) {
|
|
|
263 |
isUploading = true;
|
264 |
jQuery("#uploader_progress_bar").fadeIn();
|
265 |
},
|
@@ -270,19 +280,22 @@ class FilemanagerView {
|
|
270 |
if (data.loaded == data.total) {
|
271 |
isUploading = false;
|
272 |
jQuery("#uploader_progress_bar").fadeOut(function () {
|
273 |
-
|
|
|
274 |
});
|
|
|
275 |
}
|
276 |
},
|
277 |
done: function (e, data) {
|
278 |
jQuery.each(data.result.files, function (index, file) {
|
279 |
if (file.error) {
|
280 |
-
|
281 |
}
|
282 |
if (file.error) {
|
283 |
-
|
284 |
-
}
|
285 |
-
|
|
|
286 |
}
|
287 |
});
|
288 |
}
|
@@ -297,7 +310,7 @@ class FilemanagerView {
|
|
297 |
<div id="uploader_progress_bar">
|
298 |
<div></div>
|
299 |
</div>
|
300 |
-
<span id="uploader_progress_text">
|
301 |
<?php echo 'No files to upload'; ?>
|
302 |
</span>
|
303 |
</div>
|
34 |
?>
|
35 |
<div id="file_manager_message" style="height:40px;">
|
36 |
<div style="background-color: #FFEBE8; border: 1px solid #CC0000; margin: 5px 15px 2px; padding: 5px 10px;">
|
37 |
+
<strong style="font-size:14px"><?php echo esc_html(stripslashes($_GET['filemanager_msg'])); ?></strong>
|
38 |
</div>
|
39 |
</div>
|
40 |
<?php
|
76 |
var sortBy = "<?php echo $sort_by; ?>";
|
77 |
var sortOrder = "<?php echo $sort_order; ?>";
|
78 |
</script>
|
79 |
+
<script src="<?php echo WD_BWG_URL; ?>/filemanager/js/default.js?ver=<?php echo get_option("wd_bwg_version"); ?>"></script>
|
80 |
+
<link href="<?php echo WD_BWG_URL; ?>/filemanager/css/default.css?ver=<?php echo get_option("wd_bwg_version"); ?>" type="text/css" rel="stylesheet">
|
81 |
<?php
|
82 |
switch ($items_view) {
|
83 |
case 'list':
|
84 |
?>
|
85 |
+
<link href="<?php echo WD_BWG_URL; ?>/filemanager/css/default_view_list.css?ver=<?php echo get_option("wd_bwg_version"); ?>" type="text/css" rel="stylesheet">
|
86 |
<?php
|
87 |
break;
|
88 |
case 'thumbs':
|
89 |
?>
|
90 |
+
<link href="<?php echo WD_BWG_URL; ?>/filemanager/css/default_view_thumbs.css?ver=<?php echo get_option("wd_bwg_version"); ?>" type="text/css" rel="stylesheet">
|
91 |
<?php
|
92 |
break;
|
93 |
}
|
94 |
+
$i = 0;
|
95 |
?>
|
96 |
|
97 |
<form id="adminForm" name="adminForm" action="" method="post">
|
108 |
<a class="ctrl_bar_btn btn_paste" onclick="onBtnPasteClick(event, this);" title="<?php echo 'Paste'; ?>"> </a>
|
109 |
<a class="ctrl_bar_btn btn_remove_items" onclick="onBtnRemoveItemsClick(event, this);" title="<?php echo 'Remove items'; ?>"></a>
|
110 |
<span class="ctrl_bar_divider"></span>
|
111 |
+
<span class="ctrl_bar_btn btn_primary">
|
112 |
+
<a class="ctrl_bar_btn btn_upload_files" onclick="onBtnShowUploaderClick(event, this);"><?php echo 'Upload files'; ?></a>
|
113 |
+
</span>
|
114 |
</div>
|
115 |
<div class="ctrls_right">
|
116 |
<a class="ctrl_bar_btn btn_view_thumbs" onclick="onBtnViewThumbsClick(event, this);" title="<?php echo 'View thumbs'; ?>"></a>
|
133 |
<div id="explorer_header_wrapper">
|
134 |
<div id="explorer_header_container">
|
135 |
<div id="explorer_header">
|
136 |
+
<span class="item_numbering">#</span>
|
137 |
<span class="item_icon"></span>
|
138 |
<span class="item_name">
|
139 |
<span class="clickable" onclick="onNameHeaderClick(event, this);">
|
203 |
}
|
204 |
?>
|
205 |
isDir="<?php echo $file['is_dir'] == true ? 'true' : 'false'; ?>">
|
206 |
+
<span class="item_numbering"><?php echo ++$i; ?></span>
|
207 |
<span class="item_thumb">
|
208 |
+
<img src="<?php echo $file['thumb']; ?>"/>
|
209 |
</span>
|
210 |
<span class="item_icon">
|
211 |
+
<img src="<?php echo $file['icon']; ?>"/>
|
212 |
</span>
|
213 |
<span class="item_name">
|
214 |
+
<?php echo $file['name']; ?>
|
215 |
</span>
|
216 |
<span class="item_size">
|
217 |
+
<?php echo $file['size']; ?>
|
218 |
</span>
|
219 |
<span class="item_date_modified">
|
220 |
<?php echo $file['date_modified']; ?>
|
228 |
</div>
|
229 |
</div>
|
230 |
<div class="ctrls_bar ctrls_bar_footer">
|
231 |
+
<div class="ctrls_left">
|
232 |
+
<a class="ctrl_bar_btn btn_open btn_primary none_select" onclick="onBtnSelectAllClick();"><?php echo 'Select All'; ?></a>
|
233 |
+
</div>
|
234 |
<div class="ctrls_right">
|
235 |
<span id="file_names_span">
|
236 |
<span>
|
237 |
</span>
|
238 |
</span>
|
239 |
+
<a class="ctrl_bar_btn btn_open btn_primary none_select" onclick="onBtnOpenClick(event, this);"><?php echo 'Add selected images to gallery'; ?></a>
|
240 |
+
<span class="ctrl_bar_empty_devider"></span>
|
241 |
+
<a class="ctrl_bar_btn btn_cancel btn_secondary none_select" onclick="onBtnCancelClick(event, this);"><?php echo 'Cancel'; ?></a>
|
242 |
</div>
|
243 |
</div>
|
244 |
</div>
|
269 |
dataType: "json",
|
270 |
dropZone: jQuery("#uploader_hitter"),
|
271 |
submit: function (e, data) {
|
272 |
+
jQuery("#uploader_progress_text").removeClass("uploader_text");
|
273 |
isUploading = true;
|
274 |
jQuery("#uploader_progress_bar").fadeIn();
|
275 |
},
|
280 |
if (data.loaded == data.total) {
|
281 |
isUploading = false;
|
282 |
jQuery("#uploader_progress_bar").fadeOut(function () {
|
283 |
+
jQuery("#uploader_progress_text").text(messageFilesUploadComplete);
|
284 |
+
jQuery("#uploader_progress_text").addClass("uploader_text");
|
285 |
});
|
286 |
+
jQuery(".btn_back").trigger("click");
|
287 |
}
|
288 |
},
|
289 |
done: function (e, data) {
|
290 |
jQuery.each(data.result.files, function (index, file) {
|
291 |
if (file.error) {
|
292 |
+
alert(errorLoadingFile + ' :: ' + file.error);
|
293 |
}
|
294 |
if (file.error) {
|
295 |
+
jQuery("#uploaded_files ul").append(jQuery("<li class=uploaded_item_failed>" + "<?php echo 'Upload failed' ?> :: " + file.error + "</li>"));
|
296 |
+
}
|
297 |
+
else {
|
298 |
+
jQuery("#uploaded_files ul").append(jQuery("<li class=uploaded_item>" + file.name + " (<?php echo 'Uploaded' ?>)" + "</li>"));
|
299 |
}
|
300 |
});
|
301 |
}
|
310 |
<div id="uploader_progress_bar">
|
311 |
<div></div>
|
312 |
</div>
|
313 |
+
<span id="uploader_progress_text" class="uploader_text">
|
314 |
<?php echo 'No files to upload'; ?>
|
315 |
</span>
|
316 |
</div>
|
framework/WDWLibrary.php
CHANGED
@@ -144,7 +144,13 @@ class WDWLibrary {
|
|
144 |
}
|
145 |
</script>
|
146 |
<div class="tablenav-pages">
|
147 |
-
<span class="displaying-num"
|
|
|
|
|
|
|
|
|
|
|
|
|
148 |
<?php
|
149 |
if ($count_items > $items_per_page) {
|
150 |
$first_page = "first-page";
|
@@ -259,7 +265,13 @@ class WDWLibrary {
|
|
259 |
}
|
260 |
</script>
|
261 |
<div id="tablenav-pages" class="tablenav-pages">
|
262 |
-
<span class="displaying-num"
|
|
|
|
|
|
|
|
|
|
|
|
|
263 |
<?php
|
264 |
if ($count_items > $limit) {
|
265 |
$first_page = "first-page";
|
@@ -396,10 +408,10 @@ class WDWLibrary {
|
|
396 |
</span>
|
397 |
<a class="<?php echo $next_page ?>" title="<?php echo __('Go to the next page', 'bwg'); ?>" onclick="spider_page_<?php echo $current_view; ?>(this, <?php echo $page_number; ?>, 1)"><?php echo $next_button; ?></a>
|
398 |
<a class="<?php echo $last_page ?>" title="<?php echo __('Go to the last page', 'bwg'); ?>" onclick="spider_page_<?php echo $current_view; ?>(this, <?php echo $page_number; ?>, 2)"><?php echo $last_button; ?></a>
|
399 |
-
|
|
|
400 |
}
|
401 |
?>
|
402 |
-
</span>
|
403 |
<input type="hidden" id="page_number_<?php echo $current_view; ?>" name="page_number_<?php echo $current_view; ?>" value="<?php echo ((isset($_POST['page_number_' . $current_view])) ? (int) $_POST['page_number_' . $current_view] : 1); ?>" />
|
404 |
</div>
|
405 |
<?php
|
144 |
}
|
145 |
</script>
|
146 |
<div class="tablenav-pages">
|
147 |
+
<span class="displaying-num">
|
148 |
+
<?php
|
149 |
+
if ($count_items != 0) {
|
150 |
+
echo $count_items; ?> item<?php echo (($count_items == 1) ? '' : 's');
|
151 |
+
}
|
152 |
+
?>
|
153 |
+
</span>
|
154 |
<?php
|
155 |
if ($count_items > $items_per_page) {
|
156 |
$first_page = "first-page";
|
265 |
}
|
266 |
</script>
|
267 |
<div id="tablenav-pages" class="tablenav-pages">
|
268 |
+
<span class="displaying-num">
|
269 |
+
<?php
|
270 |
+
if ($count_items != 0) {
|
271 |
+
echo $count_items; ?> item<?php echo (($count_items == 1) ? '' : 's');
|
272 |
+
}
|
273 |
+
?>
|
274 |
+
</span>
|
275 |
<?php
|
276 |
if ($count_items > $limit) {
|
277 |
$first_page = "first-page";
|
408 |
</span>
|
409 |
<a class="<?php echo $next_page ?>" title="<?php echo __('Go to the next page', 'bwg'); ?>" onclick="spider_page_<?php echo $current_view; ?>(this, <?php echo $page_number; ?>, 1)"><?php echo $next_button; ?></a>
|
410 |
<a class="<?php echo $last_page ?>" title="<?php echo __('Go to the last page', 'bwg'); ?>" onclick="spider_page_<?php echo $current_view; ?>(this, <?php echo $page_number; ?>, 2)"><?php echo $last_button; ?></a>
|
411 |
+
</span>
|
412 |
+
<?php
|
413 |
}
|
414 |
?>
|
|
|
415 |
<input type="hidden" id="page_number_<?php echo $current_view; ?>" name="page_number_<?php echo $current_view; ?>" value="<?php echo ((isset($_POST['page_number_' . $current_view])) ? (int) $_POST['page_number_' . $current_view] : 1); ?>" />
|
416 |
</div>
|
417 |
<?php
|
frontend/models/BWGModelThumbnails.php
CHANGED
@@ -40,7 +40,7 @@ class BWGModelThumbnails {
|
|
40 |
if ($sort_by == 'size' || $sort_by == 'resolution') {
|
41 |
$sort_by = ' CAST(' . $sort_by . ' AS SIGNED) ';
|
42 |
}
|
43 |
-
elseif (($sort_by != 'alt') && ($sort_by != 'date') && ($sort_by != 'filetype')) {
|
44 |
$sort_by = '`order`';
|
45 |
}
|
46 |
if (isset($_POST['page_number_' . $bwg]) && $_POST['page_number_' . $bwg]) {
|
40 |
if ($sort_by == 'size' || $sort_by == 'resolution') {
|
41 |
$sort_by = ' CAST(' . $sort_by . ' AS SIGNED) ';
|
42 |
}
|
43 |
+
elseif (($sort_by != 'alt') && ($sort_by != 'date') && ($sort_by != 'filetype') && ($sort_by != 'RAND()')) {
|
44 |
$sort_by = '`order`';
|
45 |
}
|
46 |
if (isset($_POST['page_number_' . $bwg]) && $_POST['page_number_' . $bwg]) {
|
frontend/views/BWGViewGalleryBox.php
CHANGED
@@ -35,7 +35,7 @@ class BWGViewGalleryBox {
|
|
35 |
$thumb_height = (isset($_GET['thumb_height']) ? esc_html($_GET['thumb_height']) : 90);
|
36 |
$image_width = (isset($_GET['image_width']) ? esc_html($_GET['image_width']) : 800);
|
37 |
$image_height = (isset($_GET['image_height']) ? esc_html($_GET['image_height']) : 500);
|
38 |
-
$image_effect = (isset($_GET['image_effect']) ? esc_html($_GET['image_effect']) : 'fade');
|
39 |
$sort_by = (isset($_GET['sort_by']) ? esc_html($_GET['sort_by']) : 'order');
|
40 |
$enable_image_filmstrip = FALSE;
|
41 |
$enable_image_fullscreen = (isset($_GET['enable_image_fullscreen']) ? esc_html($_GET['enable_image_fullscreen']) : 0);
|
35 |
$thumb_height = (isset($_GET['thumb_height']) ? esc_html($_GET['thumb_height']) : 90);
|
36 |
$image_width = (isset($_GET['image_width']) ? esc_html($_GET['image_width']) : 800);
|
37 |
$image_height = (isset($_GET['image_height']) ? esc_html($_GET['image_height']) : 500);
|
38 |
+
$image_effect = ((isset($_GET['image_effect']) && esc_html($_GET['image_effect'])) ? esc_html($_GET['image_effect']) : 'fade');
|
39 |
$sort_by = (isset($_GET['sort_by']) ? esc_html($_GET['sort_by']) : 'order');
|
40 |
$enable_image_filmstrip = FALSE;
|
41 |
$enable_image_fullscreen = (isset($_GET['enable_image_fullscreen']) ? esc_html($_GET['enable_image_fullscreen']) : 0);
|
js/bwg.js
CHANGED
@@ -13,61 +13,57 @@ function save_tag(tag_id) {
|
|
13 |
var datas = "tagname="+tagname+"&"+"slug="+slug+"&"+"tag_id="+tag_id;
|
14 |
var td_check,td_name,td_slug,td_count,td_edit,td_delete,massege;
|
15 |
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
}
|
65 |
-
else {
|
66 |
-
jQuery( "#wordpress_message_1" ).css("display","block")
|
67 |
-
}
|
68 |
-
}
|
69 |
-
});
|
70 |
}
|
|
|
71 |
function spider_ajax_save(form_id) {
|
72 |
var search_value = jQuery("#search_value").val();
|
73 |
var current_id = jQuery("#current_id").val();
|
@@ -90,9 +86,16 @@ function spider_ajax_save(form_id) {
|
|
90 |
post_data["task"] = "ajax_search";
|
91 |
post_data["ajax_task"] = ajax_task;
|
92 |
post_data["image_current_id"] = image_current_id;
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
for (var i in ids_array) {
|
94 |
if (jQuery("#check_" + ids_array[i]).attr('checked') == 'checked') {
|
95 |
post_data["check_" + ids_array[i]] = jQuery("#check_" + ids_array[i]).val();
|
|
|
96 |
}
|
97 |
post_data["input_filename_" + ids_array[i]] = jQuery("#input_filename_" + ids_array[i]).val();
|
98 |
post_data["image_url_" + ids_array[i]] = jQuery("#image_url_" + ids_array[i]).val();
|
@@ -137,21 +140,21 @@ function spider_ajax_save(form_id) {
|
|
137 |
else if (ajax_task == 'image_publish') {
|
138 |
jQuery('#draganddrop').html("<strong><p>Item Succesfully Published.</p></strong>");
|
139 |
}
|
140 |
-
else if (ajax_task == 'image_publish_all') {
|
141 |
-
jQuery('#draganddrop').html("<strong><p>Items Succesfully Published.</p></strong>");
|
142 |
-
}
|
143 |
-
else if (ajax_task == 'image_unpublish') {
|
144 |
-
jQuery('#draganddrop').html("<strong><p>Item Succesfully Unpublished.</p></strong>");
|
145 |
-
}
|
146 |
-
else if (ajax_task == 'image_unpublish_all') {
|
147 |
-
jQuery('#draganddrop').html("<strong><p>Items Succesfully Unpublished.</p></strong>");
|
148 |
-
}
|
149 |
else if (ajax_task == 'image_unpublish') {
|
150 |
jQuery('#draganddrop').html("<strong><p>Item Succesfully Unpublished.</p></strong>");
|
151 |
}
|
152 |
else if (ajax_task == 'image_delete') {
|
153 |
jQuery('#draganddrop').html("<strong><p>Item Succesfully Deleted.</p></strong>");
|
154 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
else if (ajax_task == 'image_delete_all') {
|
156 |
jQuery('#draganddrop').html("<strong><p>Items Succesfully Deleted.</p></strong>");
|
157 |
}
|
@@ -314,6 +317,32 @@ function spider_show_hide_weights() {
|
|
314 |
}
|
315 |
}
|
316 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
317 |
// Set uploader to button class.
|
318 |
function spider_uploader(button_id, input_id, delete_id, img_id) {
|
319 |
if (typeof img_id == 'undefined') {
|
13 |
var datas = "tagname="+tagname+"&"+"slug="+slug+"&"+"tag_id="+tag_id;
|
14 |
var td_check,td_name,td_slug,td_count,td_edit,td_delete,massege;
|
15 |
|
16 |
+
jQuery.ajax({
|
17 |
+
type: "POST",
|
18 |
+
url: ajax_url + "=bwg_edit_tag",
|
19 |
+
data: datas,
|
20 |
+
success: function(html) {
|
21 |
+
var tagname_slug=html;
|
22 |
+
var array = tagname_slug.split(".");
|
23 |
+
if (array[0] == "The slug must be unique.") {
|
24 |
+
massege = array[0];
|
25 |
+
}
|
26 |
+
else {
|
27 |
+
massege = "Item Succesfully Saved.";
|
28 |
+
jQuery("#td_check_" + tag_id).attr('class', 'table_small_col check-column');
|
29 |
+
td_check='<input id="check_'+tag_id+'" name="check_'+tag_id+'" type="checkbox" />';
|
30 |
+
jQuery("#td_check_" + tag_id).html(td_check);
|
31 |
+
jQuery("#td_id_" + tag_id).attr('class', 'table_small_col');
|
32 |
+
jQuery("#td_id_" + tag_id).html(tag_id);
|
33 |
+
jQuery("#td_name_" + tag_id).removeClass();
|
34 |
+
td_name='<a class="pointer" id="name'+tag_id+'" onclick="edit_tag('+tag_id+')" title="Edit">'+array[0]+'</a>';
|
35 |
+
jQuery("#td_name_" + tag_id).html(td_name);
|
36 |
+
jQuery("#td_slug_" + tag_id).removeClass();
|
37 |
+
td_slug='<a class="pointer" id="slug'+tag_id+'" onclick="edit_tag('+tag_id+')" title="Edit">'+array[1]+'</a>';
|
38 |
+
jQuery("#td_slug_" + tag_id).html(td_slug);
|
39 |
+
jQuery("#td_count_" + tag_id).attr('class', 'table_big_col');
|
40 |
+
td_count='<a class="pointer" id="count'+tag_id+'" onclick="edit_tag('+tag_id+')" title="Edit">'+array[2]+'</a>';
|
41 |
+
jQuery("#td_count_" + tag_id).html(td_count);
|
42 |
+
td_edit='<a class="pointer" onclick="edit_tag('+tag_id+')" >Edit</a>';
|
43 |
+
jQuery("#td_edit_" + tag_id).html(td_edit);
|
44 |
+
|
45 |
+
var func1="spider_set_input_value('task', 'delete');";
|
46 |
+
var func2="spider_set_input_value('current_id', "+tag_id+");";
|
47 |
+
var func3="spider_form_submit('event', 'tags_form')";
|
48 |
+
td_delete='<a class="pointer" onclick="'+func1+func2+func3+'" >Delete</a>';
|
49 |
+
jQuery("#td_delete_" + tag_id).html(td_delete);
|
50 |
+
}
|
51 |
+
if ((jQuery( ".updated" ) && jQuery( ".updated" ).attr("id")!='wordpress_message_2' ) || (jQuery( ".error" ) && jQuery( ".error" ).css("display")=="block")) {
|
52 |
+
if (jQuery( ".updated" ) && jQuery( ".updated" ).attr("id")!='wordpress_message_2' ){
|
53 |
+
jQuery(".updated").html("<strong><p>"+massege+"</p></strong>");
|
54 |
+
}
|
55 |
+
else {
|
56 |
+
jQuery(".error").html("<strong><p>"+massege+"</p></strong>");
|
57 |
+
jQuery(".error").attr('class', 'updated');
|
58 |
+
}
|
59 |
+
}
|
60 |
+
else {
|
61 |
+
jQuery("#wordpress_message_1").css("display", "block");
|
62 |
+
}
|
63 |
+
}
|
64 |
+
});
|
|
|
|
|
|
|
|
|
|
|
65 |
}
|
66 |
+
|
67 |
function spider_ajax_save(form_id) {
|
68 |
var search_value = jQuery("#search_value").val();
|
69 |
var current_id = jQuery("#current_id").val();
|
86 |
post_data["task"] = "ajax_search";
|
87 |
post_data["ajax_task"] = ajax_task;
|
88 |
post_data["image_current_id"] = image_current_id;
|
89 |
+
var flag = false;
|
90 |
+
if (jQuery("#check_all_items").attr('checked') == 'checked') {
|
91 |
+
post_data["check_all_items"] = jQuery("#check_all_items").val();
|
92 |
+
flag = true;
|
93 |
+
jQuery('#check_all_items').attr('checked', false);
|
94 |
+
}
|
95 |
for (var i in ids_array) {
|
96 |
if (jQuery("#check_" + ids_array[i]).attr('checked') == 'checked') {
|
97 |
post_data["check_" + ids_array[i]] = jQuery("#check_" + ids_array[i]).val();
|
98 |
+
flag = true;
|
99 |
}
|
100 |
post_data["input_filename_" + ids_array[i]] = jQuery("#input_filename_" + ids_array[i]).val();
|
101 |
post_data["image_url_" + ids_array[i]] = jQuery("#image_url_" + ids_array[i]).val();
|
140 |
else if (ajax_task == 'image_publish') {
|
141 |
jQuery('#draganddrop').html("<strong><p>Item Succesfully Published.</p></strong>");
|
142 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
else if (ajax_task == 'image_unpublish') {
|
144 |
jQuery('#draganddrop').html("<strong><p>Item Succesfully Unpublished.</p></strong>");
|
145 |
}
|
146 |
else if (ajax_task == 'image_delete') {
|
147 |
jQuery('#draganddrop').html("<strong><p>Item Succesfully Deleted.</p></strong>");
|
148 |
}
|
149 |
+
else if (!flag && ((ajax_task == 'image_publish_all') || (ajax_task == 'image_unpublish_all') || (ajax_task == 'image_delete_all') || (ajax_task == 'image_set_watermark') || (ajax_task == 'image_recover_all'))) {
|
150 |
+
jQuery('#draganddrop').html("<strong><p>You must select at least one item.</p></strong>");
|
151 |
+
}
|
152 |
+
else if (ajax_task == 'image_publish_all') {
|
153 |
+
jQuery('#draganddrop').html("<strong><p>Items Succesfully Published.</p></strong>");
|
154 |
+
}
|
155 |
+
else if (ajax_task == 'image_unpublish_all') {
|
156 |
+
jQuery('#draganddrop').html("<strong><p>Items Succesfully Unpublished.</p></strong>");
|
157 |
+
}
|
158 |
else if (ajax_task == 'image_delete_all') {
|
159 |
jQuery('#draganddrop').html("<strong><p>Items Succesfully Deleted.</p></strong>");
|
160 |
}
|
317 |
}
|
318 |
}
|
319 |
|
320 |
+
// Check all items.
|
321 |
+
function spider_check_all_items() {
|
322 |
+
spider_check_all_items_checkbox();
|
323 |
+
// if (!jQuery('#check_all').attr('checked')) {
|
324 |
+
jQuery('#check_all').trigger('click');
|
325 |
+
// }
|
326 |
+
}
|
327 |
+
function spider_check_all_items_checkbox() {
|
328 |
+
if (jQuery('#check_all_items').attr('checked')) {
|
329 |
+
jQuery('#check_all_items').attr('checked', false);
|
330 |
+
jQuery('#draganddrop').hide();
|
331 |
+
}
|
332 |
+
else {
|
333 |
+
jQuery('#check_all_items').attr('checked', true);
|
334 |
+
jQuery('#draganddrop').html("<strong><p>Selected all " + jQuery(".displaying-num").html() + ".</p></strong>");
|
335 |
+
jQuery('#draganddrop').show();
|
336 |
+
}
|
337 |
+
}
|
338 |
+
|
339 |
+
function spider_check_all(current) {
|
340 |
+
if (!jQuery(current).attr('checked')) {
|
341 |
+
jQuery('#check_all_items').attr('checked', false);
|
342 |
+
jQuery('#draganddrop').hide();
|
343 |
+
}
|
344 |
+
}
|
345 |
+
|
346 |
// Set uploader to button class.
|
347 |
function spider_uploader(button_id, input_id, delete_id, img_id) {
|
348 |
if (typeof img_id == 'undefined') {
|
js/bwg_frontend.js
CHANGED
@@ -37,7 +37,7 @@ function spider_frontend_ajax(form_id, current_view, id, album_gallery_id, cur_a
|
|
37 |
display: 'table-cell'
|
38 |
});
|
39 |
jQuery.post(
|
40 |
-
|
41 |
post_data,
|
42 |
function (data) {
|
43 |
var str = jQuery(data).find('#' + id).parent().html();
|
37 |
display: 'table-cell'
|
38 |
});
|
39 |
jQuery.post(
|
40 |
+
window.location,
|
41 |
post_data,
|
42 |
function (data) {
|
43 |
var str = jQuery(data).find('#' + id).parent().html();
|
photo-gallery.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Photo Gallery
|
5 |
* Plugin URI: http://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.0.
|
8 |
* Author: http://web-dorado.com/
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
*/
|
@@ -23,7 +23,7 @@ else {
|
|
23 |
function bwg_options_panel() {
|
24 |
$galleries_page = add_menu_page('Photo Gallery', 'Photo Gallery', 'publish_posts', 'galleries_bwg', 'bw_gallery', WD_BWG_URL . '/images/best-wordpress-gallery.png');
|
25 |
|
26 |
-
$galleries_page = add_submenu_page('galleries_bwg', 'Galleries', 'Galleries', 'publish_posts', 'galleries_bwg', 'bw_gallery');
|
27 |
add_action('admin_print_styles-' . $galleries_page, 'bwg_styles');
|
28 |
add_action('admin_print_scripts-' . $galleries_page, 'bwg_scripts');
|
29 |
|
@@ -2387,7 +2387,7 @@ function bwg_activate() {
|
|
2387 |
));
|
2388 |
}
|
2389 |
$version = str_replace('.', '', get_option("wd_bwg_version"));
|
2390 |
-
$new_version =
|
2391 |
if ($version && $version < $new_version) {
|
2392 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
2393 |
for ($i = $version; $i < $new_version; $i++) {
|
@@ -2396,10 +2396,10 @@ function bwg_activate() {
|
|
2396 |
$func_name();
|
2397 |
}
|
2398 |
}
|
2399 |
-
update_option("wd_bwg_version", '1.0.
|
2400 |
}
|
2401 |
else {
|
2402 |
-
add_option("wd_bwg_version", '1.0.
|
2403 |
}
|
2404 |
}
|
2405 |
register_activation_hook(__FILE__, 'bwg_activate');
|
@@ -2413,7 +2413,7 @@ function bwg_styles() {
|
|
2413 |
// Plugin scripts.
|
2414 |
function bwg_scripts() {
|
2415 |
wp_enqueue_script('thickbox');
|
2416 |
-
wp_enqueue_script('bwg_admin', WD_BWG_URL . '/js/bwg.js', array(),
|
2417 |
wp_enqueue_script('jquery');
|
2418 |
wp_enqueue_script('jquery-ui-sortable');
|
2419 |
}
|
@@ -2428,7 +2428,7 @@ function bwg_licensing_styles() {
|
|
2428 |
|
2429 |
function bwg_options_scripts() {
|
2430 |
wp_enqueue_script('thickbox');
|
2431 |
-
wp_enqueue_script('bwg_admin', WD_BWG_URL . '/js/bwg.js', array(),
|
2432 |
wp_enqueue_script('jquery');
|
2433 |
wp_enqueue_script('jscolor', WD_BWG_URL . '/js/jscolor/jscolor.js', array(), '1.3.9');
|
2434 |
}
|
@@ -2438,15 +2438,15 @@ function bwg_front_end_scripts() {
|
|
2438 |
wp_enqueue_script('jquery-ui-tooltip');
|
2439 |
wp_enqueue_style('jquery-ui', WD_BWG_URL . '/css/jquery-ui-1.10.3.custom.css');
|
2440 |
|
2441 |
-
wp_enqueue_script('bwg_frontend', WD_BWG_URL . '/js/bwg_frontend.js', array(),
|
2442 |
wp_enqueue_style('bwg_frontend', WD_BWG_URL . '/css/bwg_frontend.css');
|
2443 |
|
2444 |
// Styles/Scripts for popup.
|
2445 |
-
wp_enqueue_style('font-awesome', WD_BWG_URL . '/css/font-awesome-4.0.1/
|
2446 |
-
wp_enqueue_script('bwg_mCustomScrollbar', WD_BWG_URL . '/js/jquery.mCustomScrollbar.concat.min.js', array(),
|
2447 |
wp_enqueue_style('bwg_mCustomScrollbar', WD_BWG_URL . '/css/jquery.mCustomScrollbar.css');
|
2448 |
wp_enqueue_script('jquery-fullscreen', WD_BWG_URL . '/js/jquery.fullscreen-0.4.1.js', array(), '0.4.1');
|
2449 |
-
wp_enqueue_script('bwg_gallery_box', WD_BWG_URL . '/js/bwg_gallery_box.js', array(),
|
2450 |
wp_localize_script('bwg_gallery_box', 'bwg_objectL10n', array(
|
2451 |
'bwg_field_required' => __('field is required.', 'bwg'),
|
2452 |
'bwg_mail_validation' => __('This is not a valid email address.', 'bwg'),
|
4 |
* Plugin Name: Photo Gallery
|
5 |
* Plugin URI: http://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.0.7
|
8 |
* Author: http://web-dorado.com/
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
*/
|
23 |
function bwg_options_panel() {
|
24 |
$galleries_page = add_menu_page('Photo Gallery', 'Photo Gallery', 'publish_posts', 'galleries_bwg', 'bw_gallery', WD_BWG_URL . '/images/best-wordpress-gallery.png');
|
25 |
|
26 |
+
$galleries_page = add_submenu_page('galleries_bwg', 'Add Galleries/Images', 'Add Galleries/Images', 'publish_posts', 'galleries_bwg', 'bw_gallery');
|
27 |
add_action('admin_print_styles-' . $galleries_page, 'bwg_styles');
|
28 |
add_action('admin_print_scripts-' . $galleries_page, 'bwg_scripts');
|
29 |
|
2387 |
));
|
2388 |
}
|
2389 |
$version = str_replace('.', '', get_option("wd_bwg_version"));
|
2390 |
+
$new_version = 107;
|
2391 |
if ($version && $version < $new_version) {
|
2392 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
2393 |
for ($i = $version; $i < $new_version; $i++) {
|
2396 |
$func_name();
|
2397 |
}
|
2398 |
}
|
2399 |
+
update_option("wd_bwg_version", '1.0.7');
|
2400 |
}
|
2401 |
else {
|
2402 |
+
add_option("wd_bwg_version", '1.0.7', '', 'no');
|
2403 |
}
|
2404 |
}
|
2405 |
register_activation_hook(__FILE__, 'bwg_activate');
|
2413 |
// Plugin scripts.
|
2414 |
function bwg_scripts() {
|
2415 |
wp_enqueue_script('thickbox');
|
2416 |
+
wp_enqueue_script('bwg_admin', WD_BWG_URL . '/js/bwg.js', array(), get_option("wd_bwg_version"));
|
2417 |
wp_enqueue_script('jquery');
|
2418 |
wp_enqueue_script('jquery-ui-sortable');
|
2419 |
}
|
2428 |
|
2429 |
function bwg_options_scripts() {
|
2430 |
wp_enqueue_script('thickbox');
|
2431 |
+
wp_enqueue_script('bwg_admin', WD_BWG_URL . '/js/bwg.js', array(), get_option("wd_bwg_version"));
|
2432 |
wp_enqueue_script('jquery');
|
2433 |
wp_enqueue_script('jscolor', WD_BWG_URL . '/js/jscolor/jscolor.js', array(), '1.3.9');
|
2434 |
}
|
2438 |
wp_enqueue_script('jquery-ui-tooltip');
|
2439 |
wp_enqueue_style('jquery-ui', WD_BWG_URL . '/css/jquery-ui-1.10.3.custom.css');
|
2440 |
|
2441 |
+
wp_enqueue_script('bwg_frontend', WD_BWG_URL . '/js/bwg_frontend.js', array(), get_option("wd_bwg_version"));
|
2442 |
wp_enqueue_style('bwg_frontend', WD_BWG_URL . '/css/bwg_frontend.css');
|
2443 |
|
2444 |
// Styles/Scripts for popup.
|
2445 |
+
wp_enqueue_style('font-awesome', WD_BWG_URL . '/css/font-awesome-4.0.1/font-awesome.css');
|
2446 |
+
wp_enqueue_script('bwg_mCustomScrollbar', WD_BWG_URL . '/js/jquery.mCustomScrollbar.concat.min.js', array(), get_option("wd_bwg_version"));
|
2447 |
wp_enqueue_style('bwg_mCustomScrollbar', WD_BWG_URL . '/css/jquery.mCustomScrollbar.css');
|
2448 |
wp_enqueue_script('jquery-fullscreen', WD_BWG_URL . '/js/jquery.fullscreen-0.4.1.js', array(), '0.4.1');
|
2449 |
+
wp_enqueue_script('bwg_gallery_box', WD_BWG_URL . '/js/bwg_gallery_box.js', array(), get_option("wd_bwg_version"));
|
2450 |
wp_localize_script('bwg_gallery_box', 'bwg_objectL10n', array(
|
2451 |
'bwg_field_required' => __('field is required.', 'bwg'),
|
2452 |
'bwg_mail_validation' => __('This is not a valid email address.', 'bwg'),
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://web-dorado.com/products/wordpress-photo-gallery-plugin.html
|
|
4 |
Tags: gallery, galleries, photo , photo gallery , image gallery, video gallery, 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, image, photogallery, widget gallery, 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, Fotogalerie, Galleria, galerie, galeri
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.8
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
4 |
Tags: gallery, galleries, photo , photo gallery , image gallery, video gallery, 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, image, photogallery, widget gallery, 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, Fotogalerie, Galleria, galerie, galeri
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.8
|
7 |
+
Stable tag: 1.0.7
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|