Version Description
- Fixed: Authenticated stored XSS.
- Fixed: Google fonts with 'Developer mode' set to 'No'.
- Fixed: Add images to gallery with exclamation mark in tag name.
- Fixed: Galleries list page with big data.
- Fixed: Filter in comments page.
- Fixed: Random ordering for lightbox.
- Fixed: Carousel view.
- Fixed: Scroll bar for image info.
- Fixed: Do not allow to save tag in image alt.
- Fixed: Do not allow backslash in image alt and description.
- Fixed: HTML in alt/description.
- Changed: Polish translation.
- Added: Integration with Google photos.
- Added: Lazy load(optional).
- Removed: Google+.
Download this release
Release Info
Developer | webdorado |
Plugin | Photo Gallery by WD – Responsive Photo Gallery |
Version | 1.5.23 |
Comparing to | |
See all releases |
Code changes from version 1.5.21 to 1.5.23
- admin/controllers/Galleries.php +16 -9
- admin/controllers/Options.php +3 -2
- admin/controllers/Shortcode.php +4 -0
- admin/models/Galleries.php +34 -15
- admin/views/AdminView.php +8 -8
- admin/views/Albumsgalleries.php +1 -1
- admin/views/Editimage.php +2 -0
- admin/views/Galleries.php +25 -23
- admin/views/Options.php +48 -38
- admin/views/Shortcode.php +0 -7
- banner_class.php +512 -0
- css/bwg_frontend.css +15 -20
- css/bwg_tables.css +91 -2
- css/styles.min.css +1 -1
- filemanager/UploadHandler.php +9 -1
- filemanager/js/default.js +2 -0
- filemanager/model.php +1 -0
- filemanager/view.php +1 -0
- framework/BWGOptions.php +5 -1
- framework/WDWLibrary.php +157 -194
- framework/WDWLibraryEmbed.php +186 -174
- frontend/controllers/controller.php +5 -4
- frontend/models/BWGModelGalleryBox.php +5 -4
- frontend/models/model.php +5 -2
- frontend/views/BWGViewAlbum_compact_preview.php +19 -2
- frontend/views/BWGViewAlbum_extended_preview.php +18 -3
- frontend/views/BWGViewGalleryBox.php +44 -36
- frontend/views/BWGViewImage_browser.php +5 -1
- frontend/views/BWGViewSlideshow.php +23 -5
- frontend/views/BWGViewThumbnails.php +18 -3
- frontend/views/view.php +7 -6
- images/lazy_placeholder.gif +0 -0
- insert.php +2 -0
- js/bwg.js +372 -13
- js/bwg_embed.js +30 -2
- js/bwg_frontend.js +118 -61
- js/bwg_gallery_box.js +46 -23
- js/bwg_shortcode.js +0 -2
- js/jquery.lazy.min.js +2 -0
- js/scripts.min.js +1 -1
- js/tw-gb/block.js +1 -1
- languages/bwg-af.po +1 -1
- languages/bwg-ar.po +1 -1
- languages/bwg-be_BY.po +1 -1
- languages/bwg-bg_BG.po +1 -1
- languages/bwg-ca.po +1 -1
- languages/bwg-cs_CZ.po +1 -1
- languages/bwg-da_DK.po +1 -1
- languages/bwg-de_DE.mo +0 -0
- languages/bwg-de_DE.po +55 -79
- languages/bwg-el.po +1 -1
- languages/bwg-en_US.po +1 -1
- languages/bwg-eo_EO.po +1 -1
- languages/bwg-es_ES.po +1 -1
- languages/bwg-et.po +1 -1
- languages/bwg-fa_IR.po +1 -1
- languages/bwg-fi.po +1 -1
- languages/bwg-fr_FR.po +1 -1
- languages/bwg-gl_ES.po +1 -1
- languages/bwg-he_IL.po +1 -1
- languages/bwg-hi_IN.po +1 -1
- languages/bwg-hr.po +1 -1
- languages/bwg-hu_HU.po +1 -1
- languages/bwg-hy_AM.po +1 -1
- languages/bwg-id_ID.po +1 -1
- languages/bwg-is_IS.po +1 -1
- languages/bwg-it_IT.po +1 -1
- languages/bwg-ja.po +1 -1
- languages/bwg-ka_GE.po +1 -1
- languages/bwg-ko_KR.po +1 -1
- languages/bwg-lt_LT.po +1 -1
- languages/bwg-lv.po +1 -1
- languages/bwg-mk_MK.po +1 -1
- languages/bwg-ms_MY.po +1 -1
- languages/bwg-mt_MT.po +1 -1
- languages/bwg-nb_NO.po +1 -1
- languages/bwg-nl_NL.po +1 -1
- languages/bwg-pl_PL.mo +0 -0
- languages/bwg-pl_PL.po +101 -215
- languages/bwg-pt_BR.po +1 -1
- languages/bwg-pt_PT.po +1 -1
- languages/bwg-ro_RO.po +1 -1
- languages/bwg-ru_RU.po +1 -1
- languages/bwg-sk_SK.po +1 -1
- languages/bwg-sl.po +1 -1
- languages/bwg-sq.po +1 -1
- languages/bwg-sr_RS.po +1 -1
- languages/bwg-sv_SE.po +1 -1
- languages/bwg-ta.po +1 -1
- languages/bwg-th.po +1 -1
- languages/bwg-tr_TR.po +1 -1
- languages/bwg-uk_UA.po +1 -1
- languages/bwg-vi.po +1 -1
- languages/bwg-zh_CN.po +1 -1
- photo-gallery.php +63 -361
- readme.txt +21 -1
- update.php +4 -10
admin/controllers/Galleries.php
CHANGED
@@ -46,13 +46,14 @@ class GalleriesController_bwg {
|
|
46 |
|
47 |
$user = get_current_user_id();
|
48 |
$screen = get_current_screen();
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
|
|
56 |
}
|
57 |
|
58 |
/**
|
@@ -313,10 +314,10 @@ class GalleriesController_bwg {
|
|
313 |
$params['shortcode_id'] = WDWLibrary::get_shortcode_id( array('slug' => $params['row']->slug, 'post_type' => 'gallery' ));
|
314 |
$params['instagram_post_gallery'] = $params['row']->gallery_type == 'instagram_post' ? TRUE : FALSE;
|
315 |
$params['facebook_post_gallery'] = (!$params['instagram_post_gallery']) ? ($params['row']->gallery_type == 'facebook_post' ? TRUE : FALSE) : FALSE;
|
316 |
-
$params['gallery_type'] = ($params['row']->gallery_type == 'instagram' || $params['row']->gallery_type == 'instagram_post') ? 'instagram' : (($params['row']->gallery_type == 'facebook_post' || $params['row']->gallery_type == 'facebook') ? 'facebook' : '');
|
317 |
|
318 |
// Image display params.
|
319 |
-
$params['actions'] = WDWLibrary::image_actions();
|
320 |
$params['page_url'] = $params['form_action'];
|
321 |
$order_by = WDWLibrary::get('order_by', 'order_asc');
|
322 |
if ( !array_key_exists($order_by, WDWLibrary::admin_images_ordering_choices())) {
|
@@ -339,6 +340,12 @@ class GalleriesController_bwg {
|
|
339 |
$params['pager'] = 0;
|
340 |
$params['facebook_embed'] = $this->get_facebook_embed();
|
341 |
|
|
|
|
|
|
|
|
|
|
|
|
|
342 |
$this->view->edit( $params );
|
343 |
}
|
344 |
|
46 |
|
47 |
$user = get_current_user_id();
|
48 |
$screen = get_current_screen();
|
49 |
+
if ( !empty($screen) ) {
|
50 |
+
$option = $screen->get_option('per_page', 'option');
|
51 |
+
$this->items_per_page = get_user_meta($user, $option, TRUE);
|
52 |
+
if ( empty ($this->items_per_page) || $this->items_per_page < 1 ) {
|
53 |
+
$this->items_per_page = $screen->get_option('per_page', 'default');
|
54 |
+
}
|
55 |
+
}
|
56 |
+
do_action('bwg_before_init_gallery');
|
57 |
}
|
58 |
|
59 |
/**
|
314 |
$params['shortcode_id'] = WDWLibrary::get_shortcode_id( array('slug' => $params['row']->slug, 'post_type' => 'gallery' ));
|
315 |
$params['instagram_post_gallery'] = $params['row']->gallery_type == 'instagram_post' ? TRUE : FALSE;
|
316 |
$params['facebook_post_gallery'] = (!$params['instagram_post_gallery']) ? ($params['row']->gallery_type == 'facebook_post' ? TRUE : FALSE) : FALSE;
|
317 |
+
$params['gallery_type'] = ($params['row']->gallery_type == 'instagram' || $params['row']->gallery_type == 'instagram_post') ? 'instagram' : (($params['row']->gallery_type == 'facebook_post' || $params['row']->gallery_type == 'facebook') ? 'facebook' : $params['row']->gallery_type);
|
318 |
|
319 |
// Image display params.
|
320 |
+
$params['actions'] = WDWLibrary::image_actions( $params['gallery_type'] );
|
321 |
$params['page_url'] = $params['form_action'];
|
322 |
$order_by = WDWLibrary::get('order_by', 'order_asc');
|
323 |
if ( !array_key_exists($order_by, WDWLibrary::admin_images_ordering_choices())) {
|
340 |
$params['pager'] = 0;
|
341 |
$params['facebook_embed'] = $this->get_facebook_embed();
|
342 |
|
343 |
+
$gallery_types = array('' => __('Mixed', BWG()->prefix), 'instagram' => __('Instagram only', BWG()->prefix));
|
344 |
+
if ( has_action('init_display_facebook_gallery_options_bwg') && $id != 0 ) {
|
345 |
+
$gallery_types['facebook'] = __('Facebook', BWG()->prefix);
|
346 |
+
}
|
347 |
+
$params['gallery_types'] = apply_filters('bwg_get_gallery_types', $gallery_types);
|
348 |
+
|
349 |
$this->view->edit( $params );
|
350 |
}
|
351 |
|
admin/controllers/Options.php
CHANGED
@@ -63,6 +63,7 @@ class OptionsController_bwg {
|
|
63 |
$this->$task($params);
|
64 |
}
|
65 |
else {
|
|
|
66 |
$this->display($params);
|
67 |
}
|
68 |
}
|
@@ -93,7 +94,7 @@ class OptionsController_bwg {
|
|
93 |
BWG()->nonce => wp_create_nonce(BWG()->nonce),
|
94 |
), admin_url('admin-ajax.php') );
|
95 |
|
96 |
-
|
97 |
$params['instagram_reset_href'] = add_query_arg( array(
|
98 |
'page' => $this->page,
|
99 |
'task' => 'reset_instagram_access_token',
|
@@ -111,7 +112,7 @@ class OptionsController_bwg {
|
|
111 |
public function reset( $params = array() ) {
|
112 |
$params['row'] = new WD_BWG_Options(true);
|
113 |
$params['page'] = $this->page;
|
114 |
-
|
115 |
$params['options_url_ajax'] = add_query_arg( array(
|
116 |
'action' => 'options_' . BWG()->prefix,
|
117 |
BWG()->nonce => wp_create_nonce(BWG()->nonce),
|
63 |
$this->$task($params);
|
64 |
}
|
65 |
else {
|
66 |
+
do_action('bwg_options_execute_task', $task);
|
67 |
$this->display($params);
|
68 |
}
|
69 |
}
|
94 |
BWG()->nonce => wp_create_nonce(BWG()->nonce),
|
95 |
), admin_url('admin-ajax.php') );
|
96 |
|
97 |
+
$params['instagram_return_url'] = 'https://api.instagram.com/oauth/authorize/?client_id=54da896cf80343ecb0e356ac5479d9ec&scope=basic+public_content&redirect_uri=http://api.web-dorado.com/instagram/?return_url=' . urlencode( admin_url('admin.php?page=options_bwg')) . '&response_type=token';
|
98 |
$params['instagram_reset_href'] = add_query_arg( array(
|
99 |
'page' => $this->page,
|
100 |
'task' => 'reset_instagram_access_token',
|
112 |
public function reset( $params = array() ) {
|
113 |
$params['row'] = new WD_BWG_Options(true);
|
114 |
$params['page'] = $this->page;
|
115 |
+
$params['imgcount'] = $this->model->get_image_count();
|
116 |
$params['options_url_ajax'] = add_query_arg( array(
|
117 |
'action' => 'options_' . BWG()->prefix,
|
118 |
BWG()->nonce => wp_create_nonce(BWG()->nonce),
|
admin/controllers/Shortcode.php
CHANGED
@@ -56,7 +56,11 @@ class ShortcodeController_bwg {
|
|
56 |
public function save() {
|
57 |
global $wpdb;
|
58 |
$tagtext = ((isset($_POST['tagtext'])) ? stripslashes($_POST['tagtext']) : '');
|
|
|
59 |
if ($tagtext) {
|
|
|
|
|
|
|
60 |
$id = ((isset($_POST['currrent_id'])) ? (int) esc_html(stripslashes($_POST['currrent_id'])) : 0);
|
61 |
$insert = ((isset($_POST['bwg_insert'])) ? (int) esc_html(stripslashes($_POST['bwg_insert'])) : 0);
|
62 |
if (!$insert) {
|
56 |
public function save() {
|
57 |
global $wpdb;
|
58 |
$tagtext = ((isset($_POST['tagtext'])) ? stripslashes($_POST['tagtext']) : '');
|
59 |
+
|
60 |
if ($tagtext) {
|
61 |
+
/* clear tags */
|
62 |
+
$tagtext = " ".sanitize_text_field($tagtext);
|
63 |
+
|
64 |
$id = ((isset($_POST['currrent_id'])) ? (int) esc_html(stripslashes($_POST['currrent_id'])) : 0);
|
65 |
$insert = ((isset($_POST['bwg_insert'])) ? (int) esc_html(stripslashes($_POST['bwg_insert'])) : 0);
|
66 |
if (!$insert) {
|
admin/models/Galleries.php
CHANGED
@@ -26,24 +26,27 @@ class GalleriesModel_bwg {
|
|
26 |
else {
|
27 |
$query = 'SELECT COUNT(*)';
|
28 |
}
|
29 |
-
$query .= ' FROM `' . $wpdb->prefix . 'bwg_gallery`
|
30 |
-
if ( !$total ) {
|
31 |
-
$query .= ' LEFT JOIN `' . $wpdb->prefix . 'bwg_image` as t2 on t1.id=t2.gallery_id';
|
32 |
-
}
|
33 |
if ( !current_user_can('manage_options') && BWG()->options->gallery_role ) {
|
34 |
-
$query .= " WHERE
|
35 |
}
|
36 |
else {
|
37 |
-
$query .= " WHERE
|
38 |
}
|
39 |
if ( $search ) {
|
40 |
-
$query .= ' AND
|
41 |
}
|
42 |
if ( !$total ) {
|
43 |
-
$query .= " GROUP BY t1.id";
|
44 |
$query .= ' ORDER BY `' . $orderby . '` ' . $order;
|
45 |
$query .= ' LIMIT ' . $page_num . ',' . $page_per;
|
46 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
if ( !$total ) {
|
48 |
$rows = $wpdb->get_results($query);
|
49 |
if ( !empty($rows) ) {
|
@@ -212,6 +215,7 @@ class GalleriesModel_bwg {
|
|
212 |
$rows['template']->filename = "tempfilename";
|
213 |
$rows['template']->date = "tempdate";
|
214 |
$rows['template']->resolution = "tempresolution";
|
|
|
215 |
$rows['template']->size = "tempsize";
|
216 |
$rows['template']->filetype = "tempfiletype";
|
217 |
$rows['template']->description = "tempdescription";
|
@@ -441,12 +445,16 @@ class GalleriesModel_bwg {
|
|
441 |
continue;
|
442 |
}
|
443 |
$thumb_url = WDWLibrary::get('thumb_url_' . $image_id, '');
|
444 |
-
$description = WDWLibrary::get('image_description_' . $image_id, '');
|
445 |
-
$alt = WDWLibrary::get('image_alt_text_' . $image_id, '');
|
446 |
$date = WDWLibrary::get('input_date_modified_' . $image_id, '');
|
447 |
$size = WDWLibrary::get('input_size_' . $image_id, '');
|
448 |
$filetype = WDWLibrary::get('input_filetype_' . $image_id, '');
|
449 |
$resolution = WDWLibrary::get('input_resolution_' . $image_id, '');
|
|
|
|
|
|
|
|
|
450 |
$order = (int) WDWLibrary::get('order_input_' . $image_id, 0);
|
451 |
$redirect_url = WDWLibrary::get('redirect_url_' . $image_id, '');
|
452 |
$tags_ids = WDWLibrary::get('tags_' . $image_id, '');
|
@@ -456,10 +464,11 @@ class GalleriesModel_bwg {
|
|
456 |
'description' => WDWLibrary::spider_replace4byte($description),
|
457 |
'redirect_url' => $redirect_url,
|
458 |
'alt' => WDWLibrary::spider_replace4byte($alt),
|
459 |
-
'date' => $date,
|
460 |
'size' => $size,
|
461 |
'filetype' => $filetype,
|
462 |
'resolution' => $resolution,
|
|
|
463 |
'order' => $order,
|
464 |
);
|
465 |
$temp_image_id = $image_id;
|
@@ -542,7 +551,6 @@ class GalleriesModel_bwg {
|
|
542 |
}
|
543 |
}
|
544 |
}
|
545 |
-
|
546 |
if ( !in_array($image_message, WDWLibrary::error_message_ids()) && $image_action && $checked_items_count ) {
|
547 |
$actions = WDWLibrary::image_actions();
|
548 |
$image_message = sprintf(_n('%s item successfully %s.', '%s items successfully %s.', $checked_items_count, BWG()->prefix), $checked_items_count, $actions[$image_action]['bulk_action']);
|
@@ -846,7 +854,7 @@ class GalleriesModel_bwg {
|
|
846 |
if ( $search ) {
|
847 |
$where .= ' AND `filename` LIKE "%' . $search . '%"';
|
848 |
}
|
849 |
-
$images_data = $wpdb->get_results( 'SELECT id, image_url, thumb_url FROM `' . $wpdb->prefix . 'bwg_image` WHERE ' . $where );
|
850 |
@ini_set('memory_limit', '-1');
|
851 |
foreach ( $images_data as $image_data ) {
|
852 |
$image_data->image_url = stripcslashes($image_data->image_url);
|
@@ -907,8 +915,15 @@ class GalleriesModel_bwg {
|
|
907 |
imagedestroy($thumb_rotate);
|
908 |
}
|
909 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
910 |
}
|
911 |
-
|
|
|
912 |
|
913 |
return 22;
|
914 |
}
|
@@ -939,9 +954,13 @@ class GalleriesModel_bwg {
|
|
939 |
$new_file_path = htmlspecialchars_decode(BWG()->upload_dir . $img_id->thumb_url, ENT_COMPAT | ENT_QUOTES);
|
940 |
if ( WDWLibrary::repair_image_original($file_path) ) {
|
941 |
WDWLibrary::resize_image( $file_path, $new_file_path, BWG()->options->upload_thumb_width, BWG()->options->upload_thumb_height );
|
|
|
|
|
|
|
|
|
942 |
}
|
943 |
}
|
944 |
-
|
945 |
|
946 |
return 23;
|
947 |
}
|
26 |
else {
|
27 |
$query = 'SELECT COUNT(*)';
|
28 |
}
|
29 |
+
$query .= ' FROM (SELECT * FROM `' . $wpdb->prefix . 'bwg_gallery`';
|
|
|
|
|
|
|
30 |
if ( !current_user_can('manage_options') && BWG()->options->gallery_role ) {
|
31 |
+
$query .= " WHERE author=" . get_current_user_id();
|
32 |
}
|
33 |
else {
|
34 |
+
$query .= " WHERE author>=0";
|
35 |
}
|
36 |
if ( $search ) {
|
37 |
+
$query .= ' AND `name` LIKE "%' . $search . '%"';
|
38 |
}
|
39 |
if ( !$total ) {
|
|
|
40 |
$query .= ' ORDER BY `' . $orderby . '` ' . $order;
|
41 |
$query .= ' LIMIT ' . $page_num . ',' . $page_per;
|
42 |
}
|
43 |
+
$query .= ') as t1';
|
44 |
+
if ( !$total ) {
|
45 |
+
$query .= ' LEFT JOIN `' . $wpdb->prefix . 'bwg_image` as t2 on t1.id=t2.gallery_id';
|
46 |
+
}
|
47 |
+
if ( !$total ) {
|
48 |
+
$query .= " GROUP BY t1.id ORDER BY t1.`" . $orderby . "` " . $order;
|
49 |
+
}
|
50 |
if ( !$total ) {
|
51 |
$rows = $wpdb->get_results($query);
|
52 |
if ( !empty($rows) ) {
|
215 |
$rows['template']->filename = "tempfilename";
|
216 |
$rows['template']->date = "tempdate";
|
217 |
$rows['template']->resolution = "tempresolution";
|
218 |
+
$rows['template']->resolution_thumb = "tempthumbresolution";
|
219 |
$rows['template']->size = "tempsize";
|
220 |
$rows['template']->filetype = "tempfiletype";
|
221 |
$rows['template']->description = "tempdescription";
|
445 |
continue;
|
446 |
}
|
447 |
$thumb_url = WDWLibrary::get('thumb_url_' . $image_id, '');
|
448 |
+
$description = str_replace(array('\\', '\t'), '', WDWLibrary::get('image_description_' . $image_id, ''));
|
449 |
+
$alt = esc_html(str_replace(array('<a>', '</a>', '\\', '\t'), '', WDWLibrary::get('image_alt_text_' . $image_id, '', FALSE)));
|
450 |
$date = WDWLibrary::get('input_date_modified_' . $image_id, '');
|
451 |
$size = WDWLibrary::get('input_size_' . $image_id, '');
|
452 |
$filetype = WDWLibrary::get('input_filetype_' . $image_id, '');
|
453 |
$resolution = WDWLibrary::get('input_resolution_' . $image_id, '');
|
454 |
+
$resolution_thumb = WDWLibrary::get('input_resolution_thumb_' . $image_id, '');
|
455 |
+
if( $resolution_thumb == '' && $thumb_url != '' ) {
|
456 |
+
$resolution_thumb = WDWLibrary::get_thumb_size( $thumb_url );
|
457 |
+
}
|
458 |
$order = (int) WDWLibrary::get('order_input_' . $image_id, 0);
|
459 |
$redirect_url = WDWLibrary::get('redirect_url_' . $image_id, '');
|
460 |
$tags_ids = WDWLibrary::get('tags_' . $image_id, '');
|
464 |
'description' => WDWLibrary::spider_replace4byte($description),
|
465 |
'redirect_url' => $redirect_url,
|
466 |
'alt' => WDWLibrary::spider_replace4byte($alt),
|
467 |
+
'date' => date('Y-m-d H:i:s', strtotime($date)),
|
468 |
'size' => $size,
|
469 |
'filetype' => $filetype,
|
470 |
'resolution' => $resolution,
|
471 |
+
'resolution_thumb' => $resolution_thumb,
|
472 |
'order' => $order,
|
473 |
);
|
474 |
$temp_image_id = $image_id;
|
551 |
}
|
552 |
}
|
553 |
}
|
|
|
554 |
if ( !in_array($image_message, WDWLibrary::error_message_ids()) && $image_action && $checked_items_count ) {
|
555 |
$actions = WDWLibrary::image_actions();
|
556 |
$image_message = sprintf(_n('%s item successfully %s.', '%s items successfully %s.', $checked_items_count, BWG()->prefix), $checked_items_count, $actions[$image_action]['bulk_action']);
|
854 |
if ( $search ) {
|
855 |
$where .= ' AND `filename` LIKE "%' . $search . '%"';
|
856 |
}
|
857 |
+
$images_data = $wpdb->get_results( 'SELECT id, image_url, thumb_url, resolution_thumb FROM `' . $wpdb->prefix . 'bwg_image` WHERE ' . $where );
|
858 |
@ini_set('memory_limit', '-1');
|
859 |
foreach ( $images_data as $image_data ) {
|
860 |
$image_data->image_url = stripcslashes($image_data->image_url);
|
915 |
imagedestroy($thumb_rotate);
|
916 |
}
|
917 |
}
|
918 |
+
$resolution_thumb = isset($image_data->resolution_thumb) ? $image_data->resolution_thumb : '';
|
919 |
+
if($resolution_thumb != '') {
|
920 |
+
$res = explode('x', $resolution_thumb);
|
921 |
+
$resolution_thumb = $res[1] . "x" . $res[0];
|
922 |
+
WDWLibrary::update_thumb_dimansions($resolution_thumb,"id = $image_data->id");
|
923 |
+
}
|
924 |
}
|
925 |
+
|
926 |
+
WDWLibrary::update_image_modified_date($where);
|
927 |
|
928 |
return 22;
|
929 |
}
|
954 |
$new_file_path = htmlspecialchars_decode(BWG()->upload_dir . $img_id->thumb_url, ENT_COMPAT | ENT_QUOTES);
|
955 |
if ( WDWLibrary::repair_image_original($file_path) ) {
|
956 |
WDWLibrary::resize_image( $file_path, $new_file_path, BWG()->options->upload_thumb_width, BWG()->options->upload_thumb_height );
|
957 |
+
$resolution_thumb = WDWLibrary::$thumb_dimansions;
|
958 |
+
if($resolution_thumb != '') {
|
959 |
+
WDWLibrary::update_thumb_dimansions($resolution_thumb,"id = $img_id->id");
|
960 |
+
}
|
961 |
}
|
962 |
}
|
963 |
+
WDWLibrary::update_image_modified_date( $where );
|
964 |
|
965 |
return 23;
|
966 |
}
|
admin/views/AdminView.php
CHANGED
@@ -251,14 +251,14 @@ class AdminView_bwg {
|
|
251 |
<?php
|
252 |
if ( $page_number == 1 ) {
|
253 |
?>
|
254 |
-
<span class="tablenav-pages-navspan" aria-hidden="true">«</span>
|
255 |
-
<span class="tablenav-pages-navspan" aria-hidden="true">‹</span>
|
256 |
<?php
|
257 |
}
|
258 |
else {
|
259 |
?>
|
260 |
-
<a data-paged="<?php echo 1; ?>" href="<?php echo add_query_arg(array('paged' => 1), $page_url); ?>" class="wd-page first-page"><span class="screen-reader-text"><?php _e('First page', BWG()->prefix); ?></span><span aria-hidden="true">«</span></a>
|
261 |
-
<a data-paged="<?php echo ($page_number == 1 ? 1 : ($page_number - 1)); ?>" href="<?php echo add_query_arg(array('paged' => ($page_number == 1 ? 1 : ($page_number - 1))), $page_url); ?>" class="wd-page previous-page"><span class="screen-reader-text"><?php _e('Previous page', BWG()->prefix); ?></span><span aria-hidden="true">‹</span></a>
|
262 |
<?php
|
263 |
}
|
264 |
?>
|
@@ -273,14 +273,14 @@ class AdminView_bwg {
|
|
273 |
<?php
|
274 |
if ( $page_number >= $pages_count ) {
|
275 |
?>
|
276 |
-
<span class="tablenav-pages-navspan" aria-hidden="true">›</span>
|
277 |
-
<span class="tablenav-pages-navspan" aria-hidden="true">»</span>
|
278 |
<?php
|
279 |
}
|
280 |
else {
|
281 |
?>
|
282 |
-
<a data-paged="<?php echo ($page_number >= $pages_count ? $pages_count : ($page_number + 1)); ?>" href="<?php echo add_query_arg(array('paged' => ($page_number >= $pages_count ? $pages_count : ($page_number + 1))), $page_url); ?>" class="wd-page next-page"><span class="screen-reader-text"><?php _e('Next page', BWG()->prefix); ?></span><span aria-hidden="true">›</span></a>
|
283 |
-
<a data-paged="<?php echo $pages_count; ?>" href="<?php echo add_query_arg(array('paged' => $pages_count), $page_url); ?>" class="wd-page last-page"><span class="screen-reader-text"><?php _e('Last page', BWG()->prefix); ?></span><span aria-hidden="true">»</span></a>
|
284 |
<?php
|
285 |
}
|
286 |
?>
|
251 |
<?php
|
252 |
if ( $page_number == 1 ) {
|
253 |
?>
|
254 |
+
<span class="tablenav-pages-navspan button disabled" aria-hidden="true">«</span>
|
255 |
+
<span class="tablenav-pages-navspan button disabled" aria-hidden="true">‹</span>
|
256 |
<?php
|
257 |
}
|
258 |
else {
|
259 |
?>
|
260 |
+
<a data-paged="<?php echo 1; ?>" href="<?php echo add_query_arg(array('paged' => 1), $page_url); ?>" class="wd-page first-page button"><span class="screen-reader-text"><?php _e('First page', BWG()->prefix); ?></span><span aria-hidden="true">«</span></a>
|
261 |
+
<a data-paged="<?php echo ($page_number == 1 ? 1 : ($page_number - 1)); ?>" href="<?php echo add_query_arg(array('paged' => ($page_number == 1 ? 1 : ($page_number - 1))), $page_url); ?>" class="wd-page previous-page button"><span class="screen-reader-text"><?php _e('Previous page', BWG()->prefix); ?></span><span aria-hidden="true">‹</span></a>
|
262 |
<?php
|
263 |
}
|
264 |
?>
|
273 |
<?php
|
274 |
if ( $page_number >= $pages_count ) {
|
275 |
?>
|
276 |
+
<span class="tablenav-pages-navspan button disabled" aria-hidden="true">›</span>
|
277 |
+
<span class="tablenav-pages-navspan button disabled" aria-hidden="true">»</span>
|
278 |
<?php
|
279 |
}
|
280 |
else {
|
281 |
?>
|
282 |
+
<a data-paged="<?php echo ($page_number >= $pages_count ? $pages_count : ($page_number + 1)); ?>" href="<?php echo add_query_arg(array('paged' => ($page_number >= $pages_count ? $pages_count : ($page_number + 1))), $page_url); ?>" class="wd-page next-page button"><span class="screen-reader-text"><?php _e('Next page', BWG()->prefix); ?></span><span aria-hidden="true">›</span></a>
|
283 |
+
<a data-paged="<?php echo $pages_count; ?>" href="<?php echo add_query_arg(array('paged' => $pages_count), $page_url); ?>" class="wd-page last-page button"><span class="screen-reader-text"><?php _e('Last page', BWG()->prefix); ?></span><span aria-hidden="true">»</span></a>
|
284 |
<?php
|
285 |
}
|
286 |
?>
|
admin/views/Albumsgalleries.php
CHANGED
@@ -84,7 +84,7 @@ class AlbumsgalleriesView_bwg extends AdminView_bwg {
|
|
84 |
$iterator = 0;
|
85 |
foreach ($params['rows'] as $row) {
|
86 |
$alternate = (!isset($alternate) || $alternate == '') ? 'class="alternate"' : '';
|
87 |
-
|
88 |
if ( !empty($row->preview_image) ) {
|
89 |
$preview_image = BWG()->upload_url . $row->preview_image;
|
90 |
}
|
84 |
$iterator = 0;
|
85 |
foreach ($params['rows'] as $row) {
|
86 |
$alternate = (!isset($alternate) || $alternate == '') ? 'class="alternate"' : '';
|
87 |
+
$preview_image = BWG()->plugin_url . '/images/no-image.png';
|
88 |
if ( !empty($row->preview_image) ) {
|
89 |
$preview_image = BWG()->upload_url . $row->preview_image;
|
90 |
}
|
admin/views/Editimage.php
CHANGED
@@ -216,6 +216,8 @@ class EditimageView_bwg {
|
|
216 |
<?php
|
217 |
}
|
218 |
$where = ' `id` = ' . $image_id;
|
|
|
|
|
219 |
$updated_image = WDWLibrary::update_image_modified_date( $where );
|
220 |
$image_data->image_url = WDWLibrary::image_url_version($image_data->image_url, $updated_image['modified_date']);
|
221 |
}
|
216 |
<?php
|
217 |
}
|
218 |
$where = ' `id` = ' . $image_id;
|
219 |
+
$resolution_thumb = intval($thumb_width)."x".intval($thumb_height);
|
220 |
+
WDWLibrary::update_thumb_dimansions($resolution_thumb, $where);
|
221 |
$updated_image = WDWLibrary::update_image_modified_date( $where );
|
222 |
$image_data->image_url = WDWLibrary::image_url_version($image_data->image_url, $updated_image['modified_date']);
|
223 |
}
|
admin/views/Galleries.php
CHANGED
@@ -55,7 +55,7 @@ class GalleriesView_bwg extends AdminView_bwg {
|
|
55 |
</div>
|
56 |
<table class="images_table adminlist table table-striped wp-list-table widefat fixed pages media bwg-gallery-lists">
|
57 |
<thead>
|
58 |
-
|
59 |
<td id="cb" class="column-cb check-column">
|
60 |
<label class="screen-reader-text" for="cb-select-all-1"><?php _e('Title', BWG()->prefix); ?></label>
|
61 |
<input id="check_all" type="checkbox">
|
@@ -93,11 +93,11 @@ class GalleriesView_bwg extends AdminView_bwg {
|
|
93 |
}
|
94 |
?>
|
95 |
<tr id="tr_<?php echo $row->id; ?>" <?php echo $alternate; ?>>
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
<th class="check-column">
|
102 |
<input type="checkbox" id="check_<?php echo $row->id; ?>" name="check[<?php echo $row->id; ?>]" onclick="spider_check_all(this)" />
|
103 |
</th>
|
@@ -315,28 +315,25 @@ class GalleriesView_bwg extends AdminView_bwg {
|
|
315 |
<div class="wd-group">
|
316 |
<label class="wd-label" for="gallery_type"><?php _e('Gallery content type', BWG()->prefix); ?></label>
|
317 |
<select <?php echo ( !empty($params['rows'][0]) ) ? 'disabled' : ''; ?> name="gallery_type" id="gallery_type" onchange="bwg_gallery_type('<?php echo BWG()->options->instagram_access_token ?>');">
|
318 |
-
<option value="" <?php echo(($params['gallery_type'] == '') ? 'selected="selected"' : ''); ?>>
|
319 |
-
<?php _e('Mixed', BWG()->prefix); ?>
|
320 |
-
</option>
|
321 |
-
<option value="instagram" <?php echo(($params['gallery_type'] == 'instagram') ? 'selected="selected"' : ''); ?>>
|
322 |
-
<?php _e('Instagram only', BWG()->prefix); ?>
|
323 |
-
</option>
|
324 |
<?php
|
325 |
-
|
326 |
-
|
327 |
-
<?php
|
328 |
-
|
329 |
-
|
|
|
|
|
|
|
330 |
</select>
|
331 |
<input type="text" id="gallery_type_old" name="gallery_type_old" value="<?php echo $row->gallery_type; ?>" style='display:none;' />
|
332 |
<?php if ( empty($params['rows'][0]) ) { ?>
|
333 |
-
<p class="description"><?php _e('Select the type of
|
334 |
<?php } else { ?>
|
335 |
-
<p class="description"><?php _e('Gallery type cannot be changed,
|
336 |
<?php } ?>
|
337 |
</div>
|
338 |
<!-- instagram gallery -->
|
339 |
-
<div id="add_instagram_gallery" <?php echo($params['gallery_type'] == 'instagram' ? '' : 'style="display:none"'); ?>>
|
340 |
<div class="wd-group" id='tr_autogallery_image_number'>
|
341 |
<label class="wd-label" for="autogallery_image_number"><?php _e('Number of Instagram recent posts to add to gallery', BWG()->prefix); ?> </label>
|
342 |
<input type="number" id="autogallery_image_number" name="autogallery_image_number" value="<?php echo $row->autogallery_image_number; ?>" />
|
@@ -361,7 +358,7 @@ class GalleriesView_bwg extends AdminView_bwg {
|
|
361 |
<input id="instagram_gallery_add_button" class="button-primary" type="button" onclick="bwg_add_instagram_gallery('<?php echo BWG()->options->instagram_access_token ?>');" value="<?php _e('Add Instagram Gallery', BWG()->prefix); ?>" />
|
362 |
</div>
|
363 |
</div>
|
364 |
-
<div id="add_facebook_gallery" <?php echo($params['gallery_type'] == 'facebook' ? '' : 'style="display:none"'); ?>>
|
365 |
<?php
|
366 |
if ( has_action('init_display_facebook_gallery_options_bwg') ) {
|
367 |
do_action('init_display_facebook_gallery_options_bwg', $params);
|
@@ -372,6 +369,9 @@ class GalleriesView_bwg extends AdminView_bwg {
|
|
372 |
}
|
373 |
?>
|
374 |
</div>
|
|
|
|
|
|
|
375 |
</div>
|
376 |
</div>
|
377 |
</div>
|
@@ -392,7 +392,7 @@ class GalleriesView_bwg extends AdminView_bwg {
|
|
392 |
<a href="<?php echo $params['add_images_action']; ?>" id="add_image_bwg" onclick="jQuery('#loading_div').show();" class="button button-primary button-large thickbox thickbox-preview" title="<?php _e("Add Images", BWG()->prefix); ?>" onclick="return false;" style="margin-bottom:5px; <?php if ( $params['gallery_type'] != '' ) { echo 'display:none';} ?>">
|
393 |
<?php _e('Add Images', BWG()->prefix); ?>
|
394 |
</a>
|
395 |
-
<input type="button" class="button button-secondary button-large" onclick="<?php echo (BWG()->is_demo ? 'alert(\'' . addslashes(__('This option is disabled in demo.', BWG()->prefix)) . '\');' : 'spider_media_uploader(event, true);'); ?>return false;" value="<?php _e("Import from Media Library", BWG()->prefix); ?>" style="<?php if ( $params['gallery_type'] != '' ) { echo 'display:none';} ?>" />
|
396 |
<?php
|
397 |
/*(re?)define ajax_url to add nonce only in admin*/
|
398 |
?>
|
@@ -423,7 +423,7 @@ class GalleriesView_bwg extends AdminView_bwg {
|
|
423 |
|
424 |
<!-- Media Embed -->
|
425 |
<div id="add_embed" class="opacity_add_embed bwg_add_embed">
|
426 |
-
<input type="text" id="embed_url" name="embed_url" value="" placeholder="<?php _e('Enter YouTube, Vimeo, Instagram,
|
427 |
<input class="button button-primary button-large" type="button" onclick="if (bwg_get_embed_info('embed_url')) {jQuery('.opacity_add_embed').hide();} return false;" value="<?php _e('Add to gallery', BWG()->prefix); ?>" />
|
428 |
<input class="button button-secondary button-large" type="button" onclick="jQuery('.opacity_add_embed').hide(); return false;" value="<?php _e('Cancel', BWG()->prefix); ?>" />
|
429 |
<p class="description"></p>
|
@@ -679,6 +679,7 @@ class GalleriesView_bwg extends AdminView_bwg {
|
|
679 |
$crop_link = add_query_arg(array('bwg_height' => '600', 'type' => 'crop', 'TB_iframe' => '1'), $link);
|
680 |
$image_url = (!$is_embed ? BWG()->upload_url : "") . $row->thumb_url;
|
681 |
$add_tag_url = add_query_arg(array('image_id' => $row->id, 'TB_iframe' => '1'), $params['add_tags_action']);
|
|
|
682 |
?>
|
683 |
<tr id="tr_<?php echo $row->id; ?>" class="<?php echo $alternate; ?><?php echo $temp ? ' wd-template wd-hide' : ''; ?>">
|
684 |
<th class="<?php if ($params['orderby'] == 'order') echo 'connectedSortable'; ?> col_drag handles ui-sortable-handle">
|
@@ -794,6 +795,7 @@ class GalleriesView_bwg extends AdminView_bwg {
|
|
794 |
<input type="hidden" id="input_filename_<?php echo $row->id; ?>" name="input_filename_<?php echo $row->id; ?>" value="<?php echo $row->filename; ?>" />
|
795 |
<input type="hidden" id="input_date_modified_<?php echo $row->id; ?>" name="input_date_modified_<?php echo $row->id; ?>" value="<?php echo $row->date; ?>" />
|
796 |
<input type="hidden" id="input_resolution_<?php echo $row->id; ?>" name="input_resolution_<?php echo $row->id; ?>" value="<?php echo $row->resolution; ?>" />
|
|
|
797 |
<input type="hidden" id="input_size_<?php echo $row->id; ?>" name="input_size_<?php echo $row->id; ?>" value="<?php echo $row->size; ?>" />
|
798 |
<input type="hidden" id="input_filetype_<?php echo $row->id; ?>" name="input_filetype_<?php echo $row->id; ?>" value="<?php echo $row->filetype; ?>" />
|
799 |
</div>
|
55 |
</div>
|
56 |
<table class="images_table adminlist table table-striped wp-list-table widefat fixed pages media bwg-gallery-lists">
|
57 |
<thead>
|
58 |
+
<td class="col_drag" data-page-number="<?php echo $params['page_num']; ?>" data-ordering-url="<?php echo $params['galleries_ordering_ajax_url']; ?>"><?php _e('Drag&Drop', BWG()->prefix); ?></td>
|
59 |
<td id="cb" class="column-cb check-column">
|
60 |
<label class="screen-reader-text" for="cb-select-all-1"><?php _e('Title', BWG()->prefix); ?></label>
|
61 |
<input id="check_all" type="checkbox">
|
93 |
}
|
94 |
?>
|
95 |
<tr id="tr_<?php echo $row->id; ?>" <?php echo $alternate; ?>>
|
96 |
+
<th class="connectedSortable col_drag handles ui-sortable-handle">
|
97 |
+
<div title="<?php _e('Drag to re-order', BWG()->prefix); ?>" class="wd-drag handle dashicons dashicons-move"></div>
|
98 |
+
<input class="wd-id" id="id_input_<?php echo $row->id; ?>" name="id_input_<?php echo $row->id; ?>" type="hidden" size="1" value="<?php echo $row->id; ?>" />
|
99 |
+
<input class="wd-order" id="order_input_<?php echo $row->id; ?>" name="order_input_<?php echo $row->id; ?>" type="hidden" size="1" value="<?php echo $row->order; ?>" />
|
100 |
+
</th>
|
101 |
<th class="check-column">
|
102 |
<input type="checkbox" id="check_<?php echo $row->id; ?>" name="check[<?php echo $row->id; ?>]" onclick="spider_check_all(this)" />
|
103 |
</th>
|
315 |
<div class="wd-group">
|
316 |
<label class="wd-label" for="gallery_type"><?php _e('Gallery content type', BWG()->prefix); ?></label>
|
317 |
<select <?php echo ( !empty($params['rows'][0]) ) ? 'disabled' : ''; ?> name="gallery_type" id="gallery_type" onchange="bwg_gallery_type('<?php echo BWG()->options->instagram_access_token ?>');">
|
|
|
|
|
|
|
|
|
|
|
|
|
318 |
<?php
|
319 |
+
foreach ($params['gallery_types'] as $id => $type) {
|
320 |
+
?>
|
321 |
+
<option value="<?php echo $id; ?>" <?php echo(($params['gallery_type'] == $id) ? 'selected="selected"' : ''); ?>>
|
322 |
+
<?php echo $type; ?>
|
323 |
+
</option>
|
324 |
+
<?php
|
325 |
+
}
|
326 |
+
?>
|
327 |
</select>
|
328 |
<input type="text" id="gallery_type_old" name="gallery_type_old" value="<?php echo $row->gallery_type; ?>" style='display:none;' />
|
329 |
<?php if ( empty($params['rows'][0]) ) { ?>
|
330 |
+
<p class="description"><?php _e('Select the type of gallery content. Mixed galleries can include all supported items. Alternatively, you can showcase images from one specific source only.', BWG()->prefix); ?></p>
|
331 |
<?php } else { ?>
|
332 |
+
<p class="description"><?php _e('Gallery type cannot be changed, as it is not empty. If you would like to show images from another source, please create a new gallery.', BWG()->prefix); ?></p>
|
333 |
<?php } ?>
|
334 |
</div>
|
335 |
<!-- instagram gallery -->
|
336 |
+
<div id="add_instagram_gallery" class="bwg-gallery-type-options" <?php echo($params['gallery_type'] == 'instagram' ? '' : 'style="display:none"'); ?>>
|
337 |
<div class="wd-group" id='tr_autogallery_image_number'>
|
338 |
<label class="wd-label" for="autogallery_image_number"><?php _e('Number of Instagram recent posts to add to gallery', BWG()->prefix); ?> </label>
|
339 |
<input type="number" id="autogallery_image_number" name="autogallery_image_number" value="<?php echo $row->autogallery_image_number; ?>" />
|
358 |
<input id="instagram_gallery_add_button" class="button-primary" type="button" onclick="bwg_add_instagram_gallery('<?php echo BWG()->options->instagram_access_token ?>');" value="<?php _e('Add Instagram Gallery', BWG()->prefix); ?>" />
|
359 |
</div>
|
360 |
</div>
|
361 |
+
<div id="add_facebook_gallery" class="bwg-gallery-type-options" <?php echo($params['gallery_type'] == 'facebook' ? '' : 'style="display:none"'); ?>>
|
362 |
<?php
|
363 |
if ( has_action('init_display_facebook_gallery_options_bwg') ) {
|
364 |
do_action('init_display_facebook_gallery_options_bwg', $params);
|
369 |
}
|
370 |
?>
|
371 |
</div>
|
372 |
+
<?php
|
373 |
+
do_action('bwg_gallery_type_options', $params);
|
374 |
+
?>
|
375 |
</div>
|
376 |
</div>
|
377 |
</div>
|
392 |
<a href="<?php echo $params['add_images_action']; ?>" id="add_image_bwg" onclick="jQuery('#loading_div').show();" class="button button-primary button-large thickbox thickbox-preview" title="<?php _e("Add Images", BWG()->prefix); ?>" onclick="return false;" style="margin-bottom:5px; <?php if ( $params['gallery_type'] != '' ) { echo 'display:none';} ?>">
|
393 |
<?php _e('Add Images', BWG()->prefix); ?>
|
394 |
</a>
|
395 |
+
<input type="button" id="import_image_bwg" class="button button-secondary button-large" onclick="<?php echo (BWG()->is_demo ? 'alert(\'' . addslashes(__('This option is disabled in demo.', BWG()->prefix)) . '\');' : 'spider_media_uploader(event, true);'); ?>return false;" value="<?php _e("Import from Media Library", BWG()->prefix); ?>" style="<?php if ( $params['gallery_type'] != '' ) { echo 'display:none';} ?>" />
|
396 |
<?php
|
397 |
/*(re?)define ajax_url to add nonce only in admin*/
|
398 |
?>
|
423 |
|
424 |
<!-- Media Embed -->
|
425 |
<div id="add_embed" class="opacity_add_embed bwg_add_embed">
|
426 |
+
<input type="text" id="embed_url" name="embed_url" value="" placeholder="<?php _e('Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here.', BWG()->prefix); ?>"/>
|
427 |
<input class="button button-primary button-large" type="button" onclick="if (bwg_get_embed_info('embed_url')) {jQuery('.opacity_add_embed').hide();} return false;" value="<?php _e('Add to gallery', BWG()->prefix); ?>" />
|
428 |
<input class="button button-secondary button-large" type="button" onclick="jQuery('.opacity_add_embed').hide(); return false;" value="<?php _e('Cancel', BWG()->prefix); ?>" />
|
429 |
<p class="description"></p>
|
679 |
$crop_link = add_query_arg(array('bwg_height' => '600', 'type' => 'crop', 'TB_iframe' => '1'), $link);
|
680 |
$image_url = (!$is_embed ? BWG()->upload_url : "") . $row->thumb_url;
|
681 |
$add_tag_url = add_query_arg(array('image_id' => $row->id, 'TB_iframe' => '1'), $params['add_tags_action']);
|
682 |
+
|
683 |
?>
|
684 |
<tr id="tr_<?php echo $row->id; ?>" class="<?php echo $alternate; ?><?php echo $temp ? ' wd-template wd-hide' : ''; ?>">
|
685 |
<th class="<?php if ($params['orderby'] == 'order') echo 'connectedSortable'; ?> col_drag handles ui-sortable-handle">
|
795 |
<input type="hidden" id="input_filename_<?php echo $row->id; ?>" name="input_filename_<?php echo $row->id; ?>" value="<?php echo $row->filename; ?>" />
|
796 |
<input type="hidden" id="input_date_modified_<?php echo $row->id; ?>" name="input_date_modified_<?php echo $row->id; ?>" value="<?php echo $row->date; ?>" />
|
797 |
<input type="hidden" id="input_resolution_<?php echo $row->id; ?>" name="input_resolution_<?php echo $row->id; ?>" value="<?php echo $row->resolution; ?>" />
|
798 |
+
<input type="hidden" id="input_resolution_thumb_<?php echo $row->id; ?>" name="input_resolution_thumb_<?php echo $row->id; ?>" value="<?php echo $row->resolution_thumb; ?>" />
|
799 |
<input type="hidden" id="input_size_<?php echo $row->id; ?>" name="input_size_<?php echo $row->id; ?>" value="<?php echo $row->size; ?>" />
|
800 |
<input type="hidden" id="input_filetype_<?php echo $row->id; ?>" name="input_filetype_<?php echo $row->id; ?>" value="<?php echo $row->filetype; ?>" />
|
801 |
</div>
|
admin/views/Options.php
CHANGED
@@ -27,7 +27,7 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
27 |
|
28 |
public function body($params = array()) {
|
29 |
$row = $params['row'];
|
30 |
-
|
31 |
$instagram_reset_href = $params['instagram_reset_href'];
|
32 |
$options_url_ajax = $params['options_url_ajax'];
|
33 |
$imgcount = $params['imgcount'];
|
@@ -68,27 +68,36 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
68 |
|
69 |
?>
|
70 |
<div class="bwg_tabs">
|
71 |
-
<
|
72 |
-
<
|
73 |
-
<
|
74 |
-
|
75 |
-
|
76 |
-
<
|
77 |
-
|
78 |
-
|
79 |
-
<
|
80 |
-
|
81 |
-
|
82 |
-
<
|
83 |
-
|
84 |
-
|
85 |
-
<
|
86 |
-
|
87 |
-
|
88 |
-
<
|
89 |
-
|
90 |
-
|
91 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
<div class="bwg-section bwg-flex-wrap">
|
93 |
<div class="wd-box-content wd-width-100 bwg-flex-wrap">
|
94 |
<div class="wd-box-content wd-width-50">
|
@@ -169,6 +178,16 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
169 |
<p class="description"><?php _e('Enable this option to allow resizing gallery thumbnails on smaller screens.', BWG()->prefix); ?></p>
|
170 |
</div>
|
171 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
<div class="wd-box-content wd-width-100">
|
173 |
<div class="wd-group">
|
174 |
<label class="wd-label"><?php _e('Preload images', BWG()->prefix); ?></label>
|
@@ -329,7 +348,7 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
329 |
</div>
|
330 |
</div>
|
331 |
</div>
|
332 |
-
<div id="bwg_tab_gallery_content" class="bwg-section wd-box-content">
|
333 |
<div class="bwg-section bwg-flex-wrap">
|
334 |
<div class="wd-box-content wd-width-100 bwg-flex-wrap">
|
335 |
<div id="bwg_tab_galleries_content" class="wd-width-100">
|
@@ -421,7 +440,7 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
421 |
</div>
|
422 |
</div>
|
423 |
</div>
|
424 |
-
<div id="bwg_tab_gallery_group_content" class="bwg-section wd-box-content">
|
425 |
<div class="bwg-section bwg-flex-wrap">
|
426 |
<div class="wd-box-content wd-width-100 bwg-flex-wrap">
|
427 |
<div id="bwg_tab_albums_content" class="wd-width-100">
|
@@ -478,14 +497,14 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
478 |
</div>
|
479 |
</div>
|
480 |
</div>
|
481 |
-
<div id="bwg_tab_lightbox_content" class="bwg-section wd-box-content">
|
482 |
<div class="bwg-section bwg-flex-wrap">
|
483 |
<?php
|
484 |
self::lightbox_options($row);
|
485 |
?>
|
486 |
</div>
|
487 |
</div>
|
488 |
-
<div id="bwg_tab_advanced_content" class="bwg-section wd-box-content">
|
489 |
<div class="bwg-section bwg-flex-wrap">
|
490 |
<div class="wd-box-content wd-width-100 meta-box-sortables">
|
491 |
<div class="postbox">
|
@@ -550,6 +569,7 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
550 |
?>
|
551 |
</div>
|
552 |
<?php } ?>
|
|
|
553 |
</div>
|
554 |
</div>
|
555 |
</div>
|
@@ -782,7 +802,7 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
782 |
</div>
|
783 |
</div>
|
784 |
</div>
|
785 |
-
<div id="bwg_tab_watermark_content" class="bwg-section wd-box-content">
|
786 |
<div class="bwg-section bwg-flex-wrap">
|
787 |
<div class="wd-box-content wd-width-100 bwg-flex-wrap">
|
788 |
<div class="wd-box-content wd-width-50">
|
@@ -970,6 +990,7 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
970 |
bwg_enable_disable(<?php echo $row->album_masonry_show_search_box ? "'', 'tr_album_masonry_search_box_placeholder', 'album_masonry_show_search_box_1'" : "'none', 'tr_album_masonry_search_box_placeholder', 'album_masonry_show_search_box_0'" ?>);
|
971 |
bwg_enable_disable(<?php echo $row->album_extended_show_search_box ? "'', 'tr_album_extended_search_box_width', 'album_extended_show_search_box_1'" : "'none', 'tr_album_extended_search_box_width', 'album_extended_show_search_box_0'" ?>);
|
972 |
bwg_enable_disable(<?php echo $row->album_extended_show_search_box ? "'', 'tr_album_extended_search_box_placeholder', 'album_extended_show_search_box_1'" : "'none', 'tr_album_extended_search_box_placeholder', 'album_extended_show_search_box_0'" ?>);
|
|
|
973 |
bwg_enable_disable(<?php echo $row->preload_images ? "'', 'tr_preload_images_count', 'preload_images_1'" : "'none', 'tr_preload_images_count', 'preload_images_0'" ?>);
|
974 |
bwg_enable_disable(<?php echo $row->popup_enable_ctrl_btn ? "'', 'tr_popup_fullscreen', 'popup_enable_ctrl_btn_1'" : "'none', 'tr_popup_fullscreen', 'popup_enable_ctrl_btn_0'" ?>);
|
975 |
bwg_enable_disable(<?php echo $row->popup_enable_ctrl_btn ? "'', 'tr_popup_info', 'popup_enable_ctrl_btn_1'" : "'none', 'tr_popup_info', 'popup_enable_ctrl_btn_0'" ?>);
|
@@ -3644,17 +3665,6 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
3644 |
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
3645 |
</div>
|
3646 |
</div>
|
3647 |
-
<div class="wd-box-content wd-width-100 bwg-lightbox bwg-lightbox-lightbox" id="tr_popup_google">
|
3648 |
-
<div class="wd-group">
|
3649 |
-
<label class="wd-label"><?php _e('Show Google+ button', BWG()->prefix); ?></label>
|
3650 |
-
<div class="bwg-flex">
|
3651 |
-
<input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="popup_enable_google" id="popup_enable_google_1" value="1" <?php if ($row->popup_enable_google) echo 'checked="checked"'; ?> /><label for="popup_enable_google_1" class="wd-radio-label"><?php _e('Yes', BWG()->prefix); ?></label>
|
3652 |
-
<input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="popup_enable_google" id="popup_enable_google_0" value="0" <?php if (!$row->popup_enable_google) echo 'checked="checked"'; ?> /><label for="popup_enable_google_0" class="wd-radio-label"><?php _e('No', BWG()->prefix); ?></label>
|
3653 |
-
</div>
|
3654 |
-
<p class="description"><?php _e('Add Google+ sharing button to Photo Gallery lightbox by activating this option.', BWG()->prefix) ?></p>
|
3655 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
3656 |
-
</div>
|
3657 |
-
</div>
|
3658 |
<div class="wd-box-content wd-width-100 bwg-lightbox bwg-lightbox-lightbox" id="tr_popup_pinterest">
|
3659 |
<div class="wd-group">
|
3660 |
<label class="wd-label"><?php _e('Show Pinterest button', BWG()->prefix); ?></label>
|
27 |
|
28 |
public function body($params = array()) {
|
29 |
$row = $params['row'];
|
30 |
+
$instagram_return_url = $params['instagram_return_url'];
|
31 |
$instagram_reset_href = $params['instagram_reset_href'];
|
32 |
$options_url_ajax = $params['options_url_ajax'];
|
33 |
$imgcount = $params['imgcount'];
|
68 |
|
69 |
?>
|
70 |
<div class="bwg_tabs">
|
71 |
+
<div id='search_in_options_container' class="tablenav top">
|
72 |
+
<ul class="bwg-tabs">
|
73 |
+
<li class="tabs">
|
74 |
+
<a href="#bwg_tab_general_content" class="bwg-tablink"><?php _e('General', BWG()->prefix); ?></a>
|
75 |
+
</li>
|
76 |
+
<li class="tabs">
|
77 |
+
<a href="#bwg_tab_gallery_content" class="bwg-tablink"><?php _e('Gallery defaults', BWG()->prefix); ?></a>
|
78 |
+
</li>
|
79 |
+
<li class="tabs">
|
80 |
+
<a href="#bwg_tab_gallery_group_content" class="bwg-tablink"><?php _e('Gallery Group defaults', BWG()->prefix); ?></a>
|
81 |
+
</li>
|
82 |
+
<li class="tabs">
|
83 |
+
<a href="#bwg_tab_lightbox_content" class="bwg-tablink"><?php _e('Lightbox defaults', BWG()->prefix); ?></a>
|
84 |
+
</li>
|
85 |
+
<li class="tabs">
|
86 |
+
<a href="#bwg_tab_advanced_content" class="bwg-tablink"><?php _e('Advanced', BWG()->prefix); ?></a>
|
87 |
+
</li>
|
88 |
+
<li class="tabs">
|
89 |
+
<a href="#bwg_tab_watermark_content" class="bwg-tablink"><?php _e('Watermark', BWG()->prefix); ?></a>
|
90 |
+
</li>
|
91 |
+
</ul>
|
92 |
+
<!--<div id="div_search_in_options">
|
93 |
+
<input type="text" id="search_in_options" placeholder="Search">
|
94 |
+
<span id="current_match"></span>
|
95 |
+
<span id="total_matches"></span>
|
96 |
+
<span class="tablenav-pages-navspan tablenav-pages-navspan-search" id="search_prev" aria-hidden="true">�</span>
|
97 |
+
<span class="tablenav-pages-navspan tablenav-pages-navspan-search" id="search_next" aria-hidden="true">�</span>
|
98 |
+
</div>-->
|
99 |
+
</div>
|
100 |
+
<div id="bwg_tab_general_content" class="search-div bwg-section wd-box-content">
|
101 |
<div class="bwg-section bwg-flex-wrap">
|
102 |
<div class="wd-box-content wd-width-100 bwg-flex-wrap">
|
103 |
<div class="wd-box-content wd-width-50">
|
178 |
<p class="description"><?php _e('Enable this option to allow resizing gallery thumbnails on smaller screens.', BWG()->prefix); ?></p>
|
179 |
</div>
|
180 |
</div>
|
181 |
+
<div class="wd-box-content wd-width-100">
|
182 |
+
<div class="wd-group">
|
183 |
+
<label class="wd-label"><?php _e('Lazy load', BWG()->prefix); ?></label>
|
184 |
+
<div class="bwg-flex">
|
185 |
+
<input type="radio" name="lazyload_images" id="lazyload_images_1" value="1" <?php if ($row->lazyload_images) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_lazyload_images_count', 'lazyload_images_1')" /><label for="lazyload_images_1" class="wd-radio-label"><?php _e('Yes', BWG()->prefix); ?></label>
|
186 |
+
<input type="radio" name="lazyload_images" id="lazyload_images_0" value="0" <?php if (!$row->lazyload_images) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_lazyload_images_count', 'lazyload_images_0')" /><label for="lazyload_images_0" class="wd-radio-label"><?php _e('No', BWG()->prefix); ?></label>
|
187 |
+
</div>
|
188 |
+
<p class="description"><?php _e('Enable this option to activate lazy loading for images and improve the loading speed on your galleries.', BWG()->prefix); ?></p>
|
189 |
+
</div>
|
190 |
+
</div>
|
191 |
<div class="wd-box-content wd-width-100">
|
192 |
<div class="wd-group">
|
193 |
<label class="wd-label"><?php _e('Preload images', BWG()->prefix); ?></label>
|
348 |
</div>
|
349 |
</div>
|
350 |
</div>
|
351 |
+
<div id="bwg_tab_gallery_content" class="search-div bwg-section wd-box-content">
|
352 |
<div class="bwg-section bwg-flex-wrap">
|
353 |
<div class="wd-box-content wd-width-100 bwg-flex-wrap">
|
354 |
<div id="bwg_tab_galleries_content" class="wd-width-100">
|
440 |
</div>
|
441 |
</div>
|
442 |
</div>
|
443 |
+
<div id="bwg_tab_gallery_group_content" class="search-div bwg-section wd-box-content">
|
444 |
<div class="bwg-section bwg-flex-wrap">
|
445 |
<div class="wd-box-content wd-width-100 bwg-flex-wrap">
|
446 |
<div id="bwg_tab_albums_content" class="wd-width-100">
|
497 |
</div>
|
498 |
</div>
|
499 |
</div>
|
500 |
+
<div id="bwg_tab_lightbox_content" class="search-div bwg-section wd-box-content">
|
501 |
<div class="bwg-section bwg-flex-wrap">
|
502 |
<?php
|
503 |
self::lightbox_options($row);
|
504 |
?>
|
505 |
</div>
|
506 |
</div>
|
507 |
+
<div id="bwg_tab_advanced_content" class="search-div bwg-section wd-box-content">
|
508 |
<div class="bwg-section bwg-flex-wrap">
|
509 |
<div class="wd-box-content wd-width-100 meta-box-sortables">
|
510 |
<div class="postbox">
|
569 |
?>
|
570 |
</div>
|
571 |
<?php } ?>
|
572 |
+
<?php do_action('bwg_advanced_sections_social', $row ); ?>
|
573 |
</div>
|
574 |
</div>
|
575 |
</div>
|
802 |
</div>
|
803 |
</div>
|
804 |
</div>
|
805 |
+
<div id="bwg_tab_watermark_content" class="search-div bwg-section wd-box-content">
|
806 |
<div class="bwg-section bwg-flex-wrap">
|
807 |
<div class="wd-box-content wd-width-100 bwg-flex-wrap">
|
808 |
<div class="wd-box-content wd-width-50">
|
990 |
bwg_enable_disable(<?php echo $row->album_masonry_show_search_box ? "'', 'tr_album_masonry_search_box_placeholder', 'album_masonry_show_search_box_1'" : "'none', 'tr_album_masonry_search_box_placeholder', 'album_masonry_show_search_box_0'" ?>);
|
991 |
bwg_enable_disable(<?php echo $row->album_extended_show_search_box ? "'', 'tr_album_extended_search_box_width', 'album_extended_show_search_box_1'" : "'none', 'tr_album_extended_search_box_width', 'album_extended_show_search_box_0'" ?>);
|
992 |
bwg_enable_disable(<?php echo $row->album_extended_show_search_box ? "'', 'tr_album_extended_search_box_placeholder', 'album_extended_show_search_box_1'" : "'none', 'tr_album_extended_search_box_placeholder', 'album_extended_show_search_box_0'" ?>);
|
993 |
+
bwg_enable_disable(<?php echo $row->lazyload_images ? "'', 'tr_lazyload_images_count', 'lazyload_images_1'" : "'none', 'tr_lazyload_images_count', 'lazyload_images_0'" ?>);
|
994 |
bwg_enable_disable(<?php echo $row->preload_images ? "'', 'tr_preload_images_count', 'preload_images_1'" : "'none', 'tr_preload_images_count', 'preload_images_0'" ?>);
|
995 |
bwg_enable_disable(<?php echo $row->popup_enable_ctrl_btn ? "'', 'tr_popup_fullscreen', 'popup_enable_ctrl_btn_1'" : "'none', 'tr_popup_fullscreen', 'popup_enable_ctrl_btn_0'" ?>);
|
996 |
bwg_enable_disable(<?php echo $row->popup_enable_ctrl_btn ? "'', 'tr_popup_info', 'popup_enable_ctrl_btn_1'" : "'none', 'tr_popup_info', 'popup_enable_ctrl_btn_0'" ?>);
|
3665 |
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
3666 |
</div>
|
3667 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3668 |
<div class="wd-box-content wd-width-100 bwg-lightbox bwg-lightbox-lightbox" id="tr_popup_pinterest">
|
3669 |
<div class="wd-group">
|
3670 |
<label class="wd-label"><?php _e('Show Pinterest button', BWG()->prefix); ?></label>
|
admin/views/Shortcode.php
CHANGED
@@ -1559,12 +1559,6 @@ class ShortcodeView_bwg extends AdminView_bwg {
|
|
1559 |
else {
|
1560 |
jQuery("#popup_enable_twitter_0").attr('checked', 'checked');
|
1561 |
}
|
1562 |
-
if (short_code['popup_enable_google'] == 1) {
|
1563 |
-
jQuery("#popup_enable_google_1").attr('checked', 'checked');
|
1564 |
-
}
|
1565 |
-
else {
|
1566 |
-
jQuery("#popup_enable_google_0").attr('checked', 'checked');
|
1567 |
-
}
|
1568 |
if (short_code['popup_enable_pinterest'] == 1) {
|
1569 |
jQuery("#popup_enable_pinterest_1").attr('checked', 'checked');
|
1570 |
}
|
@@ -2012,7 +2006,6 @@ class ShortcodeView_bwg extends AdminView_bwg {
|
|
2012 |
tagtext += ' addthis_profile_id="' + jQuery("#addthis_profile_id").val() + '"';
|
2013 |
tagtext += ' popup_enable_facebook="' + jQuery("input[name=popup_enable_facebook]:checked").val() + '"';
|
2014 |
tagtext += ' popup_enable_twitter="' + jQuery("input[name=popup_enable_twitter]:checked").val() + '"';
|
2015 |
-
tagtext += ' popup_enable_google="' + jQuery("input[name=popup_enable_google]:checked").val() + '"';
|
2016 |
tagtext += ' popup_enable_pinterest="' + jQuery("input[name=popup_enable_pinterest]:checked").val() + '"';
|
2017 |
tagtext += ' popup_enable_tumblr="' + jQuery("input[name=popup_enable_tumblr]:checked").val() + '"';
|
2018 |
tagtext += ' popup_enable_ecommerce="' + jQuery("input[name=popup_enable_ecommerce]:checked").val() + '"';
|
1559 |
else {
|
1560 |
jQuery("#popup_enable_twitter_0").attr('checked', 'checked');
|
1561 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
1562 |
if (short_code['popup_enable_pinterest'] == 1) {
|
1563 |
jQuery("#popup_enable_pinterest_1").attr('checked', 'checked');
|
1564 |
}
|
2006 |
tagtext += ' addthis_profile_id="' + jQuery("#addthis_profile_id").val() + '"';
|
2007 |
tagtext += ' popup_enable_facebook="' + jQuery("input[name=popup_enable_facebook]:checked").val() + '"';
|
2008 |
tagtext += ' popup_enable_twitter="' + jQuery("input[name=popup_enable_twitter]:checked").val() + '"';
|
|
|
2009 |
tagtext += ' popup_enable_pinterest="' + jQuery("input[name=popup_enable_pinterest]:checked").val() + '"';
|
2010 |
tagtext += ' popup_enable_tumblr="' + jQuery("input[name=popup_enable_tumblr]:checked").val() + '"';
|
2011 |
tagtext += ' popup_enable_ecommerce="' + jQuery("input[name=popup_enable_ecommerce]:checked").val() + '"';
|
banner_class.php
ADDED
@@ -0,0 +1,512 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class TWBanner {
|
4 |
+
public $menu_postfix = ''; // To display on only current plugin pages.
|
5 |
+
public $prefix = ''; // Current plugin prefix.
|
6 |
+
public $logo = ''; // Current plugin logo relative URL.
|
7 |
+
public $plugin_slug = ''; // Current plugin slug.
|
8 |
+
public $plugin_url = ''; // Current plugin URL.
|
9 |
+
public $plugin_id = ''; // Current plugin id.
|
10 |
+
public $text = ''; // Banner text.
|
11 |
+
public $slug = ''; // Plugin slug to be installed.
|
12 |
+
public $mu_plugin_slug = ''; // Must use plugin slug.
|
13 |
+
public $base_php = ''; // Plugin base php filename to be installed.
|
14 |
+
public $page_url = ''; // Redirect to URL after activating the plugin.
|
15 |
+
public $status_install = 0; // Is plugin installed.
|
16 |
+
public $status_active = 0; // Is plugin active.
|
17 |
+
|
18 |
+
/**
|
19 |
+
* TW_Banner_Class constructor.
|
20 |
+
*
|
21 |
+
* @param $opt_banner_param
|
22 |
+
*/
|
23 |
+
public function __construct( $opt_banner_param ) {
|
24 |
+
$this->menu_postfix = $opt_banner_param["menu_postfix"];
|
25 |
+
$this->prefix = $opt_banner_param["prefix"];
|
26 |
+
$this->logo = $opt_banner_param["logo"];
|
27 |
+
$this->plugin_slug = $opt_banner_param['plugin_slug'];
|
28 |
+
$this->plugin_url = $opt_banner_param["plugin_url"];
|
29 |
+
$this->plugin_id = $opt_banner_param['plugin_id'];
|
30 |
+
$this->text = $opt_banner_param['text'];
|
31 |
+
$this->slug = $opt_banner_param['slug'];
|
32 |
+
$this->mu_plugin_slug = $opt_banner_param['mu_plugin_slug'];
|
33 |
+
$this->base_php = $opt_banner_param['base_php'];
|
34 |
+
$this->page_url = $opt_banner_param['page_url'];
|
35 |
+
$this->init();
|
36 |
+
}
|
37 |
+
|
38 |
+
/**
|
39 |
+
* Add actions.
|
40 |
+
*/
|
41 |
+
public function init() {
|
42 |
+
add_action('wp_ajax_wd_tenweb_dismiss', array( $this, 'dismiss' ));
|
43 |
+
add_action('wp_ajax_tenweb_status', array( $this, 'change_status' ));
|
44 |
+
|
45 |
+
// Check the page to show banner.
|
46 |
+
if ( ( !isset($_GET['page']) || ( preg_match("/^$this->menu_postfix/", esc_html( $_GET['page'] )) === 0 && preg_match("/$this->menu_postfix$/", esc_html( $_GET['page'] )) === 0 )) || ( isset($_GET['task']) && !strpos(esc_html($_GET['task']), 'edit') === TRUE && !(strpos(esc_html($_GET['task']), 'display') > -1)) ) {
|
47 |
+
|
48 |
+
return;
|
49 |
+
}
|
50 |
+
|
51 |
+
if ( $this->is_plugin_mu($this->mu_plugin_slug) ) {
|
52 |
+
$this->status_install = 1;
|
53 |
+
$this->status_active = 1;
|
54 |
+
}
|
55 |
+
else {
|
56 |
+
$this->upgrade_install_status();
|
57 |
+
}
|
58 |
+
if ( !$this->status_active ) {
|
59 |
+
add_action('admin_notices', array( $this, 'tenweb_install_notice' ));
|
60 |
+
}
|
61 |
+
}
|
62 |
+
|
63 |
+
/**
|
64 |
+
* Check plugin install status.
|
65 |
+
*/
|
66 |
+
public function upgrade_install_status() {
|
67 |
+
if ( !function_exists('is_plugin_active') ) {
|
68 |
+
include_once(ABSPATH . 'wp-admin/includes/plugin.php');
|
69 |
+
}
|
70 |
+
if ( $this->is_plugin_installed($this->slug) ) {
|
71 |
+
$this->status_install = 1;
|
72 |
+
if ( is_plugin_active($this->slug . '/' . $this->base_php) ) {
|
73 |
+
$this->status_active = 1;
|
74 |
+
}
|
75 |
+
}
|
76 |
+
}
|
77 |
+
|
78 |
+
/**
|
79 |
+
* Save status.
|
80 |
+
*/
|
81 |
+
public function dismiss() {
|
82 |
+
update_option('tenweb_notice_status', '1', 'no');
|
83 |
+
}
|
84 |
+
|
85 |
+
/**
|
86 |
+
* Plugin install/activate status.
|
87 |
+
*
|
88 |
+
* @return string
|
89 |
+
*/
|
90 |
+
public function tenweb_install_notice() {
|
91 |
+
// Remove old notice.
|
92 |
+
if ( get_option('tenweb_notice_status') !== FALSE ) {
|
93 |
+
update_option('tenweb_notice_status', '1', 'no');
|
94 |
+
}
|
95 |
+
$meta_value = get_option('tenweb_notice_status');
|
96 |
+
if ( $meta_value === '' || $meta_value === FALSE ) {
|
97 |
+
ob_start();
|
98 |
+
$dismiss_url = add_query_arg(array( 'action' => 'wd_tenweb_dismiss' ), admin_url('admin-ajax.php'));
|
99 |
+
$verify_url = add_query_arg(array( 'action' => 'tenweb_status' ), admin_url('admin-ajax.php'));
|
100 |
+
?>
|
101 |
+
<style>
|
102 |
+
.hide {
|
103 |
+
display: none !important;
|
104 |
+
}
|
105 |
+
#verifyUrl {
|
106 |
+
display: none;
|
107 |
+
}
|
108 |
+
#loading {
|
109 |
+
position: absolute;
|
110 |
+
right: 20px;
|
111 |
+
top: 50%;
|
112 |
+
transform: translateY(-50%);
|
113 |
+
margin: 0px;
|
114 |
+
background: url("<?php echo $this->plugin_url . '/images/spinner.gif'; ?>") no-repeat;
|
115 |
+
background-size: 20px 20px;
|
116 |
+
filter: alpha(opacity=70);
|
117 |
+
}
|
118 |
+
#wd_tenweb_logo_notice {
|
119 |
+
height: 32px;
|
120 |
+
float: left;
|
121 |
+
}
|
122 |
+
.error_install,
|
123 |
+
.error_activate {
|
124 |
+
color: red;
|
125 |
+
font-size: 10px;
|
126 |
+
}
|
127 |
+
#wpbody-content #v2_tenweb_notice_cont {
|
128 |
+
display: none;
|
129 |
+
flex-wrap: wrap;
|
130 |
+
background: #fff;
|
131 |
+
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .1);
|
132 |
+
position: relative;
|
133 |
+
margin-left: 0px;
|
134 |
+
padding: 5px 0;
|
135 |
+
overflow: hidden;
|
136 |
+
border-left: 4px solid #0073AA;
|
137 |
+
font-family: Open Sans, sans-serif;
|
138 |
+
height: 40px;
|
139 |
+
min-height: 40px;
|
140 |
+
box-sizing: initial;
|
141 |
+
}
|
142 |
+
.v2_logo {
|
143 |
+
display: flex;
|
144 |
+
flex-direction: column;
|
145 |
+
justify-content: center;
|
146 |
+
height: inherit;
|
147 |
+
}
|
148 |
+
#v2_tenweb_notice_cont {
|
149 |
+
height: 50px;
|
150 |
+
padding: 0px;
|
151 |
+
}
|
152 |
+
.v2_content {
|
153 |
+
flex-grow: 1;
|
154 |
+
height: inherit;
|
155 |
+
margin-left: 25px;
|
156 |
+
}
|
157 |
+
.v2_content p {
|
158 |
+
margin: 0px;
|
159 |
+
padding: 0px;
|
160 |
+
}
|
161 |
+
.v2_content p > span {
|
162 |
+
font-size: 16px;
|
163 |
+
color: #333B46;
|
164 |
+
font-weight: 600;
|
165 |
+
line-height: 40px;
|
166 |
+
margin: 0;
|
167 |
+
}
|
168 |
+
#wd_tenweb_logo_notice {
|
169 |
+
margin-left: 25px;
|
170 |
+
height: 30px;
|
171 |
+
line-height: 100%;
|
172 |
+
}
|
173 |
+
.v2_button {
|
174 |
+
display: flex;
|
175 |
+
margin-right: 30px;
|
176 |
+
flex-direction: column;
|
177 |
+
justify-content: center;
|
178 |
+
}
|
179 |
+
.v2_button #install_now, #activate_now {
|
180 |
+
width: 112px;
|
181 |
+
height: 32px;
|
182 |
+
line-height: 30px;
|
183 |
+
font-size: 14px;
|
184 |
+
text-align: center;
|
185 |
+
padding: 0;
|
186 |
+
}
|
187 |
+
#v2_tenweb_notice_cont .wd_tenweb_notice_dissmiss.notice-dismiss {
|
188 |
+
top: 3px;
|
189 |
+
right: 3px;
|
190 |
+
padding: 0px;
|
191 |
+
}
|
192 |
+
.v2_button .button {
|
193 |
+
position: relative;
|
194 |
+
}
|
195 |
+
.v2_button .button #loading {
|
196 |
+
position: absolute;
|
197 |
+
right: 10px;
|
198 |
+
top: 50%;
|
199 |
+
transform: translateY(-50%);
|
200 |
+
margin: 0px;
|
201 |
+
background-size: 12px 12px;
|
202 |
+
filter: alpha(opacity=70);
|
203 |
+
width: 12px;
|
204 |
+
height: 12px;
|
205 |
+
}
|
206 |
+
@media only screen and (max-width: 1200px) and (min-width: 821px) {
|
207 |
+
#wpbody-content #v2_tenweb_notice_cont {
|
208 |
+
height: 50px;
|
209 |
+
min-height: 50px;
|
210 |
+
}
|
211 |
+
#v2_tenweb_notice_cont {
|
212 |
+
height: 60px;
|
213 |
+
}
|
214 |
+
.v2_content {
|
215 |
+
margin-left: 25px;
|
216 |
+
}
|
217 |
+
.v2_content p {
|
218 |
+
font-size: 14px;
|
219 |
+
color: #333B46;
|
220 |
+
font-weight: 600;
|
221 |
+
line-height: 20px;
|
222 |
+
margin-top: 5px;
|
223 |
+
}
|
224 |
+
.v2_content p span {
|
225 |
+
display: block;
|
226 |
+
}
|
227 |
+
#wd_tenweb_logo_notice {
|
228 |
+
margin-left: 25px;
|
229 |
+
height: 30px;
|
230 |
+
line-height: 100%;
|
231 |
+
}
|
232 |
+
.v2_button {
|
233 |
+
display: flex;
|
234 |
+
margin-right: 30px;
|
235 |
+
flex-direction: column;
|
236 |
+
justify-content: center;
|
237 |
+
}
|
238 |
+
.v2_button #install_now {
|
239 |
+
width: 112px;
|
240 |
+
height: 32px;
|
241 |
+
line-height: 30px;
|
242 |
+
font-size: 14px;
|
243 |
+
text-align: center;
|
244 |
+
padding: 0;
|
245 |
+
}
|
246 |
+
#v2_tenweb_notice_cont .wd_tenweb_notice_dissmiss.notice-dismiss {
|
247 |
+
top: 3px;
|
248 |
+
right: 3px;
|
249 |
+
}
|
250 |
+
}
|
251 |
+
@media only screen and (max-width: 820px) and (min-width: 781px) {
|
252 |
+
#wpbody-content #v2_tenweb_notice_cont {
|
253 |
+
height: 50px;
|
254 |
+
min-height: 50px;
|
255 |
+
}
|
256 |
+
#v2_tenweb_notice_cont {
|
257 |
+
height: 60px;
|
258 |
+
}
|
259 |
+
.v2_content {
|
260 |
+
margin-left: 25px;
|
261 |
+
}
|
262 |
+
.v2_content p {
|
263 |
+
font-size: 13px;
|
264 |
+
color: #333B46;
|
265 |
+
font-weight: 600;
|
266 |
+
line-height: 20px;
|
267 |
+
margin-top: 5px;
|
268 |
+
}
|
269 |
+
.v2_content p span {
|
270 |
+
display: block;
|
271 |
+
}
|
272 |
+
}
|
273 |
+
@media only screen and (max-width: 780px) {
|
274 |
+
#wpbody-content #v2_tenweb_notice_cont {
|
275 |
+
height: auto;
|
276 |
+
min-height: auto;
|
277 |
+
}
|
278 |
+
#v2_tenweb_notice_cont {
|
279 |
+
height: auto;
|
280 |
+
padding: 5px;
|
281 |
+
}
|
282 |
+
.v2_logo {
|
283 |
+
display: block;
|
284 |
+
height: auto;
|
285 |
+
width: 100%;
|
286 |
+
margin-top: 5px;
|
287 |
+
}
|
288 |
+
.v2_content {
|
289 |
+
display: block;
|
290 |
+
margin-left: 9px;
|
291 |
+
margin-top: 10px;
|
292 |
+
width: calc(100% - 10px);
|
293 |
+
}
|
294 |
+
.v2_content p {
|
295 |
+
line-height: unset;
|
296 |
+
font-size: 15px;
|
297 |
+
line-height: 25px;
|
298 |
+
}
|
299 |
+
.v2_content p span {
|
300 |
+
display: block;
|
301 |
+
}
|
302 |
+
#wd_tenweb_logo_notice {
|
303 |
+
margin-left: 9px;
|
304 |
+
}
|
305 |
+
.v2_button {
|
306 |
+
margin-left: 9px;
|
307 |
+
margin-top: 10px;
|
308 |
+
margin-bottom: 5px;
|
309 |
+
}
|
310 |
+
}
|
311 |
+
</style>
|
312 |
+
<script type="text/javascript">
|
313 |
+
jQuery(document).ready(function () {
|
314 |
+
jQuery('#v2_tenweb_notice_cont').css('display', 'flex');
|
315 |
+
});
|
316 |
+
</script>
|
317 |
+
<div id="v2_tenweb_notice_cont" class="notice wd-notice">
|
318 |
+
<div class="v2_logo">
|
319 |
+
<img id="wd_tenweb_logo_notice" src="<?php echo $this->plugin_url . $this->logo; ?>" />
|
320 |
+
</div>
|
321 |
+
<div class="v2_content">
|
322 |
+
<p>
|
323 |
+
<?php echo $this->text ?>
|
324 |
+
</p>
|
325 |
+
</div>
|
326 |
+
<div class="v2_button">
|
327 |
+
<?php $this->tw_install_button(2); ?>
|
328 |
+
</div>
|
329 |
+
<button type="button" class="wd_tenweb_notice_dissmiss notice-dismiss" onclick="jQuery('#v2_tenweb_notice_cont').attr('style', 'display: none !important;'); jQuery.post('<?php echo $dismiss_url; ?>');">
|
330 |
+
<span class="screen-reader-text"></span></button>
|
331 |
+
<div id="verifyUrl" data-url="<?php echo $verify_url; ?>"></div>
|
332 |
+
</div>
|
333 |
+
<?php
|
334 |
+
echo ob_get_clean();
|
335 |
+
}
|
336 |
+
}
|
337 |
+
|
338 |
+
/**
|
339 |
+
* Change status.
|
340 |
+
*/
|
341 |
+
public function change_status() {
|
342 |
+
$this->upgrade_install_status();
|
343 |
+
if ( $this->status_install ) {
|
344 |
+
$old_opt_array = array();
|
345 |
+
$new_opt_array = array( $this->plugin_slug => $this->plugin_id );
|
346 |
+
$key = 'tenweb_manager_installed';
|
347 |
+
$option = get_option($key);
|
348 |
+
if ( !empty($option) ) {
|
349 |
+
$old_opt_array = (array) json_decode($option);
|
350 |
+
}
|
351 |
+
$array_installed = array_merge($new_opt_array, $old_opt_array);
|
352 |
+
update_option($key, json_encode($array_installed));
|
353 |
+
}
|
354 |
+
$jsondata = array( 'status_install' => $this->status_install, 'status_active' => $this->status_active );
|
355 |
+
echo json_encode($jsondata);
|
356 |
+
exit;
|
357 |
+
}
|
358 |
+
|
359 |
+
/**
|
360 |
+
* Install/activate button.
|
361 |
+
*
|
362 |
+
* @param $v
|
363 |
+
*/
|
364 |
+
public function tw_install_button( $v ) {
|
365 |
+
$prefix = $this->prefix;
|
366 |
+
$install_url = esc_url(wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=' . $this->slug), 'install-plugin_' . $this->slug));
|
367 |
+
$activation_url = $this->na_action_link($this->slug . '/' . $this->base_php, 'activate');
|
368 |
+
$tenweb_url = $this->page_url;
|
369 |
+
$dismiss_url = add_query_arg(array( 'action' => 'wd_tenweb_dismiss' ), admin_url('admin-ajax.php'));
|
370 |
+
$activate = $this->status_install && !$this->status_active ? TRUE : FALSE;
|
371 |
+
?>
|
372 |
+
<a class="button<?php echo($v == 2 ? ' button-primary' : ''); ?> tenweb_activaion"
|
373 |
+
id="<?php echo $activate ? 'activate_now' : 'install_now'; ?>"
|
374 |
+
data-activation="<?php _e("Activation", $prefix); ?>"
|
375 |
+
data-tenweb-url="<?php echo $tenweb_url; ?>"
|
376 |
+
data-install-url="<?php echo $install_url; ?>"
|
377 |
+
data-activate-url="<?php echo $activation_url; ?>">
|
378 |
+
<span class="tenweb_activaion_text"><?php echo $activate ? __("Activate", $prefix) : __("Install", $prefix); ?></span>
|
379 |
+
<span class="spinner" id="loading"></span>
|
380 |
+
</a>
|
381 |
+
<span class="hide <?php echo $activate ? 'error_activate' : 'error_install tenweb_active'; ?> ">
|
382 |
+
<?php echo $activate ? __("Activation failed, please try again.", $prefix) : __("Installation failed, please try again.", $prefix); ?>
|
383 |
+
</span>
|
384 |
+
<script>
|
385 |
+
var url = jQuery(".tenweb_activaion").attr("data-install-url");
|
386 |
+
var activate_url = jQuery(".tenweb_activaion").attr("data-activate-url");
|
387 |
+
|
388 |
+
function install_tenweb_plugin() {
|
389 |
+
jQuery("#loading").addClass('is-active');
|
390 |
+
jQuery(this).prop('disable', true);
|
391 |
+
jQuery.ajax({
|
392 |
+
method: "POST",
|
393 |
+
url: url,
|
394 |
+
}).done(function () {
|
395 |
+
/* Check if plugin installed.*/
|
396 |
+
jQuery.ajax({
|
397 |
+
type: 'POST',
|
398 |
+
dataType: 'json',
|
399 |
+
url: jQuery("#verifyUrl").attr('data-url'),
|
400 |
+
error: function () {
|
401 |
+
jQuery("#loading").removeClass('is-active');
|
402 |
+
jQuery(".error_install").show();
|
403 |
+
},
|
404 |
+
success: function (response) {
|
405 |
+
if (response.status_install == 1) {
|
406 |
+
jQuery('#install_now .tenweb_activaion_text').text(jQuery("#install_now").data("activation"));
|
407 |
+
activate_tenweb_plugin();
|
408 |
+
}
|
409 |
+
else {
|
410 |
+
jQuery("#loading").removeClass('is-active');
|
411 |
+
jQuery(".error_install").removeClass('hide');
|
412 |
+
}
|
413 |
+
}
|
414 |
+
});
|
415 |
+
}).fail(function () {
|
416 |
+
jQuery("#loading").removeClass('is-active');
|
417 |
+
jQuery(".error_install").removeClass('hide');
|
418 |
+
});
|
419 |
+
}
|
420 |
+
|
421 |
+
function activate_tenweb_plugin() {
|
422 |
+
jQuery("#activate_now #loading").addClass('is-active');
|
423 |
+
jQuery.ajax({
|
424 |
+
method: "POST",
|
425 |
+
url: activate_url,
|
426 |
+
}).done(function () {
|
427 |
+
jQuery("#loading").removeClass('is-active');
|
428 |
+
var data_tenweb_url = '';
|
429 |
+
/* Check if plugin installed.*/
|
430 |
+
jQuery.ajax({
|
431 |
+
type: 'POST',
|
432 |
+
dataType: 'json',
|
433 |
+
url: jQuery("#verifyUrl").attr('data-url'),
|
434 |
+
error: function () {
|
435 |
+
jQuery("#loading").removeClass('is-active');
|
436 |
+
jQuery(".error_activate").removeClass('hide');
|
437 |
+
},
|
438 |
+
success: function (response) {
|
439 |
+
if (response.status_active == 1) {
|
440 |
+
//jQuery('#install_now').addClass('hide');
|
441 |
+
data_tenweb_url = jQuery('.tenweb_activaion').attr('data-tenweb-url');
|
442 |
+
jQuery.post('<?php echo $dismiss_url; ?>');
|
443 |
+
}
|
444 |
+
else {
|
445 |
+
jQuery("#loading").removeClass('is-active');
|
446 |
+
jQuery(".error_activate").removeClass('hide');
|
447 |
+
}
|
448 |
+
},
|
449 |
+
complete: function () {
|
450 |
+
if (data_tenweb_url != '') {
|
451 |
+
window.location.href = data_tenweb_url;
|
452 |
+
}
|
453 |
+
}
|
454 |
+
});
|
455 |
+
}).fail(function () {
|
456 |
+
jQuery("#loading").removeClass('is-active');
|
457 |
+
});
|
458 |
+
}
|
459 |
+
|
460 |
+
jQuery("#install_now").on("click", function () {
|
461 |
+
install_tenweb_plugin();
|
462 |
+
});
|
463 |
+
jQuery("#activate_now").on("click", function () {
|
464 |
+
activate_tenweb_plugin();
|
465 |
+
});
|
466 |
+
</script>
|
467 |
+
<?php
|
468 |
+
}
|
469 |
+
|
470 |
+
/**
|
471 |
+
* Check if plugin is installed.
|
472 |
+
*
|
473 |
+
* @param $plugin_slug
|
474 |
+
*
|
475 |
+
* @return bool
|
476 |
+
*/
|
477 |
+
public function is_plugin_installed( $plugin_slug ) {
|
478 |
+
if ( is_dir(WP_PLUGIN_DIR . '/' . $plugin_slug) ) {
|
479 |
+
return TRUE;
|
480 |
+
}
|
481 |
+
|
482 |
+
return FALSE;
|
483 |
+
}
|
484 |
+
|
485 |
+
/**
|
486 |
+
* Check if plugin is must used.
|
487 |
+
*
|
488 |
+
* @param $plugin_slug
|
489 |
+
*
|
490 |
+
* @return bool
|
491 |
+
*/
|
492 |
+
public function is_plugin_mu( $plugin_slug ) {
|
493 |
+
if ( $plugin_slug != '' ) {
|
494 |
+
if ( is_dir(WPMU_PLUGIN_DIR . '/' . $plugin_slug) ) {
|
495 |
+
return TRUE;
|
496 |
+
}
|
497 |
+
}
|
498 |
+
|
499 |
+
return FALSE;
|
500 |
+
}
|
501 |
+
|
502 |
+
public function na_action_link( $plugin, $action = 'activate' ) {
|
503 |
+
if ( strpos($plugin, '/') ) {
|
504 |
+
$plugin = str_replace('\/', '%2F', $plugin);
|
505 |
+
}
|
506 |
+
$url = sprintf(admin_url('plugins.php?action=' . $action . '&plugin=%s&plugin_status=all&paged=1&s'), $plugin);
|
507 |
+
$_REQUEST['plugin'] = $plugin;
|
508 |
+
$url = wp_nonce_url($url, $action . '-plugin_' . $plugin);
|
509 |
+
|
510 |
+
return $url;
|
511 |
+
}
|
512 |
+
}
|
css/bwg_frontend.css
CHANGED
@@ -182,6 +182,10 @@ div[id^="bwg_container"] div[id^="bwg_container"] .bwg_img_clear {
|
|
182 |
width: 35%;
|
183 |
z-index: 10130;
|
184 |
}
|
|
|
|
|
|
|
|
|
185 |
|
186 |
#spider_popup_left-ico,
|
187 |
#spider_popup_right-ico {
|
@@ -1685,9 +1689,6 @@ body .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .SumoS
|
|
1685 |
.bwg_twitter:hover {
|
1686 |
color: #4099FB;
|
1687 |
}
|
1688 |
-
.bwg_google:hover {
|
1689 |
-
color: #DD4B39;
|
1690 |
-
}
|
1691 |
.bwg_pinterest:hover {
|
1692 |
color: #cb2027;
|
1693 |
}
|
@@ -1948,7 +1949,11 @@ body .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .SumoS
|
|
1948 |
#ajax_loading {
|
1949 |
position:absolute;
|
1950 |
}
|
1951 |
-
|
|
|
|
|
|
|
|
|
1952 |
|
1953 |
@media (max-width: 480px) {
|
1954 |
.bwg_image_count_container {
|
@@ -2340,19 +2345,9 @@ div[id^='bwg_container1_'] div[id^='bwg_container2_'] span[class^='bwg_mosaic_pl
|
|
2340 |
left: 0;
|
2341 |
}
|
2342 |
|
2343 |
-
|
2344 |
-
|
2345 |
-
|
2346 |
-
|
2347 |
-
|
2348 |
-
|
2349 |
-
|
2350 |
-
|
2351 |
-
|
2352 |
-
|
2353 |
-
|
2354 |
-
|
2355 |
-
|
2356 |
-
|
2357 |
-
|
2358 |
-
|
182 |
width: 35%;
|
183 |
z-index: 10130;
|
184 |
}
|
185 |
+
#bwg_image_container #spider_popup_left,
|
186 |
+
#bwg_image_container #spider_popup_right {
|
187 |
+
width: 25%;
|
188 |
+
}
|
189 |
|
190 |
#spider_popup_left-ico,
|
191 |
#spider_popup_right-ico {
|
1689 |
.bwg_twitter:hover {
|
1690 |
color: #4099FB;
|
1691 |
}
|
|
|
|
|
|
|
1692 |
.bwg_pinterest:hover {
|
1693 |
color: #cb2027;
|
1694 |
}
|
1949 |
#ajax_loading {
|
1950 |
position:absolute;
|
1951 |
}
|
1952 |
+
.bwg_image_info:after {
|
1953 |
+
content: "";
|
1954 |
+
height: 60px;
|
1955 |
+
display: block;
|
1956 |
+
}
|
1957 |
|
1958 |
@media (max-width: 480px) {
|
1959 |
.bwg_image_count_container {
|
2345 |
left: 0;
|
2346 |
}
|
2347 |
|
2348 |
+
.lazy_loader {
|
2349 |
+
background-image: url('../images/ajax_loader.png');
|
2350 |
+
background-size: 30px 30px;
|
2351 |
+
background-repeat: no-repeat;
|
2352 |
+
background-position: 50% 50%;
|
2353 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
css/bwg_tables.css
CHANGED
@@ -1584,7 +1584,7 @@ textarea.bwg_popup_input {
|
|
1584 |
}
|
1585 |
|
1586 |
.wd-hide {
|
1587 |
-
display: none;
|
1588 |
}
|
1589 |
|
1590 |
.col_num {
|
@@ -1872,6 +1872,7 @@ li.tabs {
|
|
1872 |
.bwg_tabs ul.bwg-tabs li.ui-tabs-active,
|
1873 |
.wd-load-tabs ul.bwg-tabs li.ui-tabs-active {
|
1874 |
background-color: #fdfdfd;
|
|
|
1875 |
}
|
1876 |
|
1877 |
.bwg-tabs .bwg-tablink {
|
@@ -1879,6 +1880,7 @@ li.tabs {
|
|
1879 |
padding: 8px 30px;
|
1880 |
vertical-align: top;
|
1881 |
text-decoration: none;
|
|
|
1882 |
}
|
1883 |
|
1884 |
.bwg-tabs .bwg-tablink:focus {
|
@@ -2226,6 +2228,90 @@ li.tabs {
|
|
2226 |
}
|
2227 |
}
|
2228 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2229 |
.wrap.wd-wrap-ajax .bwg_tw-container .media-frame-toolbar .media-toolbar {
|
2230 |
bottom: -55px;
|
2231 |
}
|
@@ -2233,7 +2319,10 @@ li.tabs {
|
|
2233 |
.wd-info {
|
2234 |
cursor: pointer;
|
2235 |
}
|
2236 |
-
|
2237 |
#wpbody-content>div:not(.wrap):not(#screen-meta-links), .wrap .notice:not(.wd-notice) {
|
2238 |
display: none;
|
|
|
|
|
|
|
|
|
2239 |
}
|
1584 |
}
|
1585 |
|
1586 |
.wd-hide {
|
1587 |
+
display: none !important;
|
1588 |
}
|
1589 |
|
1590 |
.col_num {
|
1872 |
.bwg_tabs ul.bwg-tabs li.ui-tabs-active,
|
1873 |
.wd-load-tabs ul.bwg-tabs li.ui-tabs-active {
|
1874 |
background-color: #fdfdfd;
|
1875 |
+
padding-bottom: 1px !important;
|
1876 |
}
|
1877 |
|
1878 |
.bwg-tabs .bwg-tablink {
|
1880 |
padding: 8px 30px;
|
1881 |
vertical-align: top;
|
1882 |
text-decoration: none;
|
1883 |
+
padding-bottom: 3px !important;
|
1884 |
}
|
1885 |
|
1886 |
.bwg-tabs .bwg-tablink:focus {
|
2228 |
}
|
2229 |
}
|
2230 |
|
2231 |
+
.wrap.wd-wrap-ajax .bwg_tw-container .media-frame-toolbar .media-toolbar {
|
2232 |
+
bottom: -55px;
|
2233 |
+
}
|
2234 |
+
.search_highlight{
|
2235 |
+
background-color: yellow;
|
2236 |
+
}
|
2237 |
+
#search_current_match{
|
2238 |
+
background-color: orange;
|
2239 |
+
}
|
2240 |
+
@media screen and (min-width: 425px){
|
2241 |
+
#search_in_options_container.fixed{
|
2242 |
+
position: fixed;
|
2243 |
+
background: #f1f1f1;
|
2244 |
+
width: 100%;
|
2245 |
+
top: 27px;
|
2246 |
+
z-index: 1;
|
2247 |
+
}
|
2248 |
+
}
|
2249 |
+
@media screen and (max-width: 425px){
|
2250 |
+
#search_in_options_container.fixed{
|
2251 |
+
position: fixed;
|
2252 |
+
background: #f1f1f1;
|
2253 |
+
width: 100%;
|
2254 |
+
top: -20px;
|
2255 |
+
z-index: 1;
|
2256 |
+
}
|
2257 |
+
}
|
2258 |
+
#search_in_options{
|
2259 |
+
width: 100px;
|
2260 |
+
}
|
2261 |
+
#search_in_options_container{
|
2262 |
+
margin-bottom: 0;
|
2263 |
+
display: flex;
|
2264 |
+
flex-direction: row;
|
2265 |
+
}
|
2266 |
+
#div_search_in_options{
|
2267 |
+
text-align: right;
|
2268 |
+
}
|
2269 |
+
.tablenav-pages-navspan-search{
|
2270 |
+
padding: 0px;
|
2271 |
+
width: 20px;
|
2272 |
+
height: 22px;
|
2273 |
+
cursor: pointer;
|
2274 |
+
}
|
2275 |
+
|
2276 |
+
.bwg-td-container {
|
2277 |
+
display: flex;
|
2278 |
+
flex-wrap: wrap;
|
2279 |
+
}
|
2280 |
+
.bwg-td-item {
|
2281 |
+
flex: 1;
|
2282 |
+
padding: 0 8px;
|
2283 |
+
min-width: 200px;
|
2284 |
+
}
|
2285 |
+
.images_table thead tr td {
|
2286 |
+
vertical-align: middle;
|
2287 |
+
}
|
2288 |
+
.wd-table-label {
|
2289 |
+
font-size: 14px;
|
2290 |
+
font-weight: 500;
|
2291 |
+
line-height: 20px;
|
2292 |
+
margin: 10px;
|
2293 |
+
padding: 0;
|
2294 |
+
}
|
2295 |
+
.tags_div.tags_div_empty a {
|
2296 |
+
text-align: center;
|
2297 |
+
}
|
2298 |
+
.tags_div a {
|
2299 |
+
text-align: left;
|
2300 |
+
font-weight: 500;
|
2301 |
+
}
|
2302 |
+
.tags_div a .dashicons-plus {
|
2303 |
+
font-size: 12px;
|
2304 |
+
line-height: 22px;
|
2305 |
+
}
|
2306 |
+
.column-data {
|
2307 |
+
padding: 3px 8px 3px 3px !important;
|
2308 |
+
}
|
2309 |
+
@media screen and (min-width: 1280px) {
|
2310 |
+
.column-title {
|
2311 |
+
width: 500px;
|
2312 |
+
}
|
2313 |
+
}
|
2314 |
+
|
2315 |
.wrap.wd-wrap-ajax .bwg_tw-container .media-frame-toolbar .media-toolbar {
|
2316 |
bottom: -55px;
|
2317 |
}
|
2319 |
.wd-info {
|
2320 |
cursor: pointer;
|
2321 |
}
|
|
|
2322 |
#wpbody-content>div:not(.wrap):not(#screen-meta-links), .wrap .notice:not(.wd-notice) {
|
2323 |
display: none;
|
2324 |
+
}
|
2325 |
+
|
2326 |
+
#screen-meta-links {
|
2327 |
+
margin-bottom: 30px;
|
2328 |
}
|
css/styles.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.SumoSelect p{margin:0}.SumoSelect{width:200px}.SelectBox{padding:5px 8px}.sumoStopScroll{overflow:hidden}.SumoSelect .hidden{display:none}.SumoSelect .search-txt{display:none;outline:0}.SumoSelect .no-match{display:none;padding:6px}.SumoSelect.open .search-txt{display:inline-block;position:absolute;top:0;left:0;width:100%;margin:0;padding:4px 8px;border:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border-radius:5px}.SelectClass,.SumoUnder,.bwg_thumbnail .SelectClass,.bwg_thumbnail .SumoUnder{position:absolute;height:100%;border:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-khtml-opacity:0;top:0;left:0;right:0}.SumoSelect.open>.search>label,.SumoSelect.open>.search>span{visibility:hidden}.bwg_thumbnail .SelectClass,.bwg_thumbnail .SumoUnder{width:100%;box-sizing:border-box;-moz-opacity:0;opacity:0}.SelectClass,.SumoUnder{display:inline-block;width:102%;box-sizing:border-box;-moz-opacity:0;opacity:0}.SelectClass{z-index:1}.SumoSelect .select-all>label,.SumoSelect>.CaptionCont,.SumoSelect>.optWrapper>.options li.opt label{user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none}.SumoSelect{display:inline-block;position:relative;outline:0}.SumoSelect.open>.CaptionCont,.SumoSelect:focus>.CaptionCont,.SumoSelect:hover>.CaptionCont{box-shadow:0 0 2px #7799d0;border-color:#7799d0}.SumoSelect>.CaptionCont{position:relative;border:1px solid #a4a4a4;min-height:14px;background-color:#fff;border-radius:2px;margin:0}.SumoSelect>.CaptionCont>span{display:block;padding-right:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;cursor:default}.SumoSelect>.CaptionCont>span.placeholder{color:#000}.SumoSelect>.CaptionCont>label{position:absolute;top:0;right:0;bottom:0;width:30px}.bwg_thumbnail .SumoSelect>.CaptionCont>label>i{background-image:none;bottom:0;background-position:center center;width:16px;height:16px;display:block;position:absolute;top:0;left:0;right:0;margin:auto;background-repeat:no-repeat;opacity:.8}.SumoSelect>.optWrapper{display:none;z-index:1000;top:30px;width:100%;position:absolute;left:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;background:#fff;border:1px solid #ddd;box-shadow:2px 3px 3px rgba(0,0,0,.11);border-radius:15px;overflow:hidden}.SumoSelect.open>.optWrapper{top:35px;display:block}.SumoSelect.open>.optWrapper.up{top:auto;bottom:100%;margin-bottom:5px}.SumoSelect>.optWrapper ul{list-style:none;display:block;padding:0;margin:0;overflow:auto}.SumoSelect>.optWrapper>.options{border-radius:2px;position:relative;max-height:250px}.SumoSelect>.optWrapper>.options li.group.disabled>label{opacity:.5}.SumoSelect>.optWrapper>.options li ul li.opt{padding-left:22px}.SumoSelect>.optWrapper.multiple>.options li ul li.opt{padding-left:50px}.SumoSelect>.optWrapper.isFloating>.options{max-height:100%;box-shadow:0 0 100px #595959}.SumoSelect>.optWrapper>.options li.opt{padding:6px;position:relative}.SumoSelect>.optWrapper>.options>li.opt:first-child{border-radius:2px 2px 0 0}.SumoSelect>.optWrapper>.options>li.opt:last-child{border-radius:0 0 2px 2px;border-bottom:none}.bwg_thumbnail .SumoSelect>.optWrapper>.options li.opt>label:hover{color:#323a45;opacity:.7}.SumoSelect>.optWrapper>.options li.opt:hover{background-color:#e4e4e4}.SumoSelect>.optWrapper>.options li.opt.sel{background-color:#a1c0e4;border-bottom:1px solid #a1c0e4}.SumoSelect>.optWrapper>.options li label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;cursor:pointer}.SumoSelect>.optWrapper>.options li span{display:none}.SumoSelect>.optWrapper>.options li.group>label{cursor:default;padding:8px 6px;font-weight:700}.SumoSelect>.optWrapper.isFloating{position:fixed;top:0;left:0;right:0;width:90%;bottom:0;margin:auto;max-height:90%}.SumoSelect>.optWrapper>.options li.opt.disabled{background-color:inherit;pointer-events:none}.SumoSelect>.optWrapper>.options li.opt.disabled *{-moz-opacity:.5;-khtml-opacity:.5;opacity:.5}.SumoSelect>.optWrapper.multiple>.options li.opt{padding-left:35px;cursor:pointer}.SumoSelect .select-all>span,.SumoSelect>.optWrapper.multiple>.options li.opt span{position:absolute;display:block;width:30px;top:0;bottom:0;margin-left:-35px}.SumoSelect .select-all>span i,.SumoSelect>.optWrapper.multiple>.options li.opt span i{position:absolute;margin:auto;left:0;right:0;top:0;bottom:0;width:14px;height:14px;border:1px solid #aeaeae;border-radius:2px;box-shadow:inset 0 1px 3px rgba(0,0,0,.15);background-color:#fff}.SumoSelect>.optWrapper>.MultiControls{display:none;border-top:1px solid #ddd;background-color:#fff;box-shadow:0 0 2px rgba(0,0,0,.13);border-radius:0 0 3px 3px}.SumoSelect>.optWrapper.multiple.isFloating>.MultiControls{display:block;margin-top:5px;position:absolute;bottom:0;width:100%}.SumoSelect>.optWrapper.multiple.okCancelInMulti>.MultiControls{display:block}.SumoSelect>.optWrapper.multiple.okCancelInMulti>.MultiControls>p{padding:6px}.SumoSelect>.optWrapper.multiple>.MultiControls>p{display:inline-block;cursor:pointer;padding:12px;width:50%;box-sizing:border-box;text-align:center}.SumoSelect>.optWrapper.multiple>.MultiControls>p:hover{background-color:#f1f1f1}.SumoSelect>.optWrapper.multiple>.MultiControls>p.btnOk{border-right:1px solid #dbdbdb;border-radius:0 0 0 3px}.SumoSelect>.optWrapper.multiple>.MultiControls>p.btnCancel{border-radius:0 0 3px}.bwg_thumbnail .SumoSelect>.optWrapper.isFloating>.options li.opt{padding:0}.SumoSelect>.optWrapper.isFloating>.options li.opt{padding:12px 6px}.SumoSelect>.optWrapper.multiple.isFloating>.options li.opt{padding-left:35px}.SumoSelect>.optWrapper.multiple.isFloating{padding-bottom:43px}.SumoSelect .select-all.partial>span i,.SumoSelect .select-all.selected>span i,.SumoSelect>.optWrapper.multiple>.options li.opt.selected span i{background-color:#11a911;box-shadow:none;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAACzSURBVChTY/wPBAwkACYS1IKVEqWhfflFBsvczWANjISc1L/mEkP5wjsMv3/+ZVhTZcDAANKAC/StvvSf1WctGIPYYMNBhEXOpv9tyy6g6OtbfRFJ8UW4HMOa/bf+M7iugpoCkcClGCQH9kP/mstAd95mYGdlYvAyEmDYdu4Dw8/f/xg641UZCkN0UQMSZhfMVKnozSi2ofsPxdMgTQx2y8BOwgUwQunYpSf4Ag7iB1JiGwAouCBFqHEGogAAAABJRU5ErkJggg==);background-repeat:no-repeat;background-position:center center}.SumoSelect.disabled{opacity:.7;cursor:not-allowed}.SumoSelect.disabled>.CaptionCont{border-color:#ccc;box-shadow:none}.SumoSelect .select-all{border-radius:3px 3px 0 0;position:relative;border-bottom:1px solid #ddd;background-color:#fff;padding:8px 0 3px 35px;height:20px;cursor:pointer}.SumoSelect .select-all>label,.SumoSelect .select-all>span i{cursor:pointer}.SumoSelect .select-all.partial>span i{background-color:#ccc}.SumoSelect>.optWrapper>.options li.optGroup{padding-left:5px;text-decoration:underline}.mCSB_container{width:auto;margin-right:15px;overflow:hidden}.mCSB_container.mCS_no_scrollbar{margin-right:0}.mCS_destroyed>.mCustomScrollBox>.mCSB_container.mCS_no_scrollbar,.mCS_disabled>.mCustomScrollBox>.mCSB_container.mCS_no_scrollbar{margin-right:15px}.mCustomScrollBox>.mCSB_scrollTools{width:16px;height:100%;top:0;right:0;opacity:.75;filter:"alpha(opacity=75)";-ms-filter:"alpha(opacity=75)"}.mCSB_scrollTools .mCSB_draggerContainer{position:absolute;top:0;left:0;bottom:0;right:0;height:auto}.mCSB_scrollTools a+.mCSB_draggerContainer{margin:20px 0}.mCSB_scrollTools .mCSB_draggerRail{width:2px;height:100%;margin:0 auto;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.mCSB_scrollTools .mCSB_dragger{cursor:pointer;width:100%;height:30px}.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:4px;height:100%;margin:0 auto;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;text-align:center}.mCSB_scrollTools .mCSB_buttonDown,.mCSB_scrollTools .mCSB_buttonUp{display:block;position:relative;height:20px;overflow:hidden;margin:0 auto;cursor:pointer}.mCSB_scrollTools .mCSB_buttonDown{top:100%;margin-top:-40px}.mCSB_horizontal>.mCSB_container{height:auto;margin-right:0;margin-bottom:30px;overflow:hidden}.mCSB_horizontal>.mCSB_container.mCS_no_scrollbar{margin-bottom:0}.mCS_destroyed>.mCSB_horizontal>.mCSB_container.mCS_no_scrollbar,.mCS_disabled>.mCSB_horizontal>.mCSB_container.mCS_no_scrollbar{margin-right:0;margin-bottom:30px}.mCSB_horizontal.mCustomScrollBox>.mCSB_scrollTools{width:100%;height:16px;top:auto;right:auto;bottom:0;left:0;overflow:hidden}.mCSB_horizontal>.mCSB_scrollTools a+.mCSB_draggerContainer{margin:0 20px}.mCSB_horizontal>.mCSB_scrollTools .mCSB_draggerRail{width:100%;height:2px;margin:7px 0;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger{width:30px;height:100%}.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:100%;height:4px;margin:6px auto;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.mCSB_horizontal>.mCSB_scrollTools .mCSB_buttonLeft,.mCSB_horizontal>.mCSB_scrollTools .mCSB_buttonRight{display:block;position:relative;width:20px;height:100%;overflow:hidden;margin:0 auto;cursor:pointer;float:left}.mCSB_horizontal>.mCSB_scrollTools .mCSB_buttonRight{margin-left:-40px;float:right}.mCustomScrollBox{-ms-touch-action:none}.mCustomScrollBox:hover>.mCSB_scrollTools{opacity:1;filter:"alpha(opacity=100)";-ms-filter:"alpha(opacity=100)"}.mCSB_scrollTools .mCSB_draggerRail{background:#000;background:rgba(0,0,0,.4);filter:"alpha(opacity=40)";-ms-filter:"alpha(opacity=40)"}.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{background:#fff;background:rgba(255,255,255,.75);filter:"alpha(opacity=75)";-ms-filter:"alpha(opacity=75)"}.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background:rgba(255,255,255,.85);filter:"alpha(opacity=85)";-ms-filter:"alpha(opacity=85)"}.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background:rgba(255,255,255,.9);filter:"alpha(opacity=90)";-ms-filter:"alpha(opacity=90)"}.mCSB_scrollTools .mCSB_buttonDown,.mCSB_scrollTools .mCSB_buttonLeft,.mCSB_scrollTools .mCSB_buttonRight,.mCSB_scrollTools .mCSB_buttonUp{background-repeat:no-repeat;opacity:.4;filter:"alpha(opacity=40)";-ms-filter:"alpha(opacity=40)"}.mCSB_scrollTools .mCSB_buttonUp{background-position:0 0}.mCSB_scrollTools .mCSB_buttonDown{background-position:0 -20px}.mCSB_scrollTools .mCSB_buttonLeft{background-position:0 -40px}.mCSB_scrollTools .mCSB_buttonRight{background-position:0 -56px}.mCSB_scrollTools .mCSB_buttonDown:hover,.mCSB_scrollTools .mCSB_buttonLeft:hover,.mCSB_scrollTools .mCSB_buttonRight:hover,.mCSB_scrollTools .mCSB_buttonUp:hover{opacity:.75;filter:"alpha(opacity=75)";-ms-filter:"alpha(opacity=75)"}.mCSB_scrollTools .mCSB_buttonDown:active,.mCSB_scrollTools .mCSB_buttonLeft:active,.mCSB_scrollTools .mCSB_buttonRight:active,.mCSB_scrollTools .mCSB_buttonUp:active{opacity:.9;filter:"alpha(opacity=90)";-ms-filter:"alpha(opacity=90)"}.mCS-dark>.mCSB_scrollTools .mCSB_draggerRail{background:#000;background:rgba(0,0,0,.15)}.mCS-dark>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{background:#000;background:rgba(0,0,0,.75)}.mCS-dark>.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background:rgba(0,0,0,.85)}.mCS-dark>.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-dark>.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background:rgba(0,0,0,.9)}.mCS-dark>.mCSB_scrollTools .mCSB_buttonUp{background-position:-80px 0}.mCS-dark>.mCSB_scrollTools .mCSB_buttonDown{background-position:-80px -20px}.mCS-dark>.mCSB_scrollTools .mCSB_buttonLeft{background-position:-80px -40px}.mCS-dark>.mCSB_scrollTools .mCSB_buttonRight{background-position:-80px -56px}.mCS-light-2>.mCSB_scrollTools .mCSB_draggerRail{width:4px;background:#fff;background:rgba(255,255,255,.1);-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px}.mCS-light-2>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:4px;background:#fff;background:rgba(255,255,255,.75);-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px}.mCS-light-2.mCSB_horizontal>.mCSB_scrollTools .mCSB_draggerRail{width:100%;height:4px;margin:6px 0}.mCS-light-2.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:100%;height:4px;margin:6px auto}.mCS-light-2>.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background:rgba(255,255,255,.85)}.mCS-light-2>.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-light-2>.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background:rgba(255,255,255,.9)}.mCS-light-2>.mCSB_scrollTools .mCSB_buttonUp{background-position:-32px 0}.mCS-light-2>.mCSB_scrollTools .mCSB_buttonDown{background-position:-32px -20px}.mCS-light-2>.mCSB_scrollTools .mCSB_buttonLeft{background-position:-40px -40px}.mCS-light-2>.mCSB_scrollTools .mCSB_buttonRight{background-position:-40px -56px}.mCS-dark-2>.mCSB_scrollTools .mCSB_draggerRail{width:4px;background:#000;background:rgba(0,0,0,.1);-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px}.mCS-dark-2>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:4px;background:#000;background:rgba(0,0,0,.75);-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px}.mCS-dark-2.mCSB_horizontal>.mCSB_scrollTools .mCSB_draggerRail{width:100%;height:4px;margin:6px 0}.mCS-dark-2.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:100%;height:4px;margin:6px auto}.mCS-dark-2>.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background:rgba(0,0,0,.85)}.mCS-dark-2>.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-dark-2>.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background:rgba(0,0,0,.9)}.mCS-dark-2>.mCSB_scrollTools .mCSB_buttonUp{background-position:-112px 0}.mCS-dark-2>.mCSB_scrollTools .mCSB_buttonDown{background-position:-112px -20px}.mCS-dark-2>.mCSB_scrollTools .mCSB_buttonLeft{background-position:-120px -40px}.mCS-dark-2>.mCSB_scrollTools .mCSB_buttonRight{background-position:-120px -56px}.mCS-light-thick>.mCSB_scrollTools .mCSB_draggerRail{width:4px;background:#fff;background:rgba(255,255,255,.1);-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}.mCS-light-thick>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:6px;background:#fff;background:rgba(255,255,255,.75);-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}.mCS-light-thick.mCSB_horizontal>.mCSB_scrollTools .mCSB_draggerRail{width:100%;height:4px;margin:6px 0}.mCS-light-thick.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:100%;height:6px;margin:5px auto}.mCS-light-thick>.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background:rgba(255,255,255,.85)}.mCS-light-thick>.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-light-thick>.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background:rgba(255,255,255,.9)}.mCS-light-thick>.mCSB_scrollTools .mCSB_buttonUp{background-position:-16px 0}.mCS-light-thick>.mCSB_scrollTools .mCSB_buttonDown{background-position:-16px -20px}.mCS-light-thick>.mCSB_scrollTools .mCSB_buttonLeft{background-position:-20px -40px}.mCS-light-thick>.mCSB_scrollTools .mCSB_buttonRight{background-position:-20px -56px}.mCS-dark-thick>.mCSB_scrollTools .mCSB_draggerRail{width:4px;background:#000;background:rgba(0,0,0,.1);-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}.mCS-dark-thick>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:6px;background:#000;background:rgba(0,0,0,.75);-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}.mCS-dark-thick.mCSB_horizontal>.mCSB_scrollTools .mCSB_draggerRail{width:100%;height:4px;margin:6px 0}.mCS-dark-thick.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:100%;height:6px;margin:5px auto}.mCS-dark-thick>.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background:rgba(0,0,0,.85)}.mCS-dark-thick>.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-dark-thick>.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background:rgba(0,0,0,.9)}.mCS-dark-thick>.mCSB_scrollTools .mCSB_buttonUp{background-position:-96px 0}.mCS-dark-thick>.mCSB_scrollTools .mCSB_buttonDown{background-position:-96px -20px}.mCS-dark-thick>.mCSB_scrollTools .mCSB_buttonLeft{background-position:-100px -40px}.mCS-dark-thick>.mCSB_scrollTools .mCSB_buttonRight{background-position:-100px -56px}.mCS-light-thin>.mCSB_scrollTools .mCSB_draggerRail{background:#fff;background:rgba(255,255,255,.1)}.mCS-light-thin>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:2px}.mCS-light-thin.mCSB_horizontal>.mCSB_scrollTools .mCSB_draggerRail{width:100%}.mCS-light-thin.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:100%;height:2px;margin:7px auto}.mCS-dark-thin>.mCSB_scrollTools .mCSB_draggerRail{background:#000;background:rgba(0,0,0,.15)}.mCS-dark-thin>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:2px;background:#000;background:rgba(0,0,0,.75)}.mCS-dark-thin.mCSB_horizontal>.mCSB_scrollTools .mCSB_draggerRail{width:100%}.mCS-dark-thin.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:100%;height:2px;margin:7px auto}.mCS-dark-thin>.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background:rgba(0,0,0,.85)}.mCS-dark-thin>.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-dark-thin>.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background:rgba(0,0,0,.9)}.mCS-dark-thin>.mCSB_scrollTools .mCSB_buttonUp{background-position:-80px 0}.mCS-dark-thin>.mCSB_scrollTools .mCSB_buttonDown{background-position:-80px -20px}.mCS-dark-thin>.mCSB_scrollTools .mCSB_buttonLeft{background-position:-80px -40px}.mCS-dark-thin>.mCSB_scrollTools .mCSB_buttonRight{background-position:-80px -56px}div[id^=bwg_container] p{padding:0!important;margin:0!important}div[id^=bwg_container] img{box-shadow:none!important}div[id^=bwg_container] *{margin:0}div[id^=bwg_container] .SumoSelect.open>.CaptionCont,div[id^=bwg_container] .SumoSelect:focus>.CaptionCont,div[id^=bwg_container] .SumoSelect:hover>.CaptionCont,div[id^=bwg_container] .SumoSelect>.CaptionCont{border:none;box-shadow:none}#bwg_tag_wrap{background-color:#fff;width:100%;font-family:inherit;margin:0 -5px 20px 0;z-index:200;position:relative}.bwg_search_loupe_container,.bwg_search_reset_container{font-size:18px;color:#ccc;cursor:pointer;position:relative}#bwg_tag_container p{text-align:center}#bwg_tag_container{border:1px solid #ccc;box-shadow:0 0 3px 1px #ccc;border-radius:4px;width:256px;float:right}#spider_popup_wrap a{border:none;box-shadow:none}div[id^=bwg_container].bwg_container a{border:none;box-shadow:none!important;outline:0;font-size:0;cursor:pointer;text-decoration:none}div[id^=bwg_container] div[id^=bwg_container] .bwg_img_clear{max-height:none!important;max-width:none!important;padding:0!important}.tag_cloud_link{font-size:inherit!important}@media print{#spider_popup_left,#spider_popup_right,.bwg_image_info,[class^=bwg_slideshow_title_text_],[id^=bwg_slideshow_play_pause_],[id^=spider_slideshow_left_],[id^=spider_slideshow_right_]{background:0 0}}.bwg_spider_popup_loading,.footer-list-block .bwp_gallery .bwg_spider_popup_loading,.footer-list-block .bwp_gallery_tags .bwg_spider_popup_loading{background-image:url(../images/ajax_loader.png);background-color:rgba(0,0,0,0);background-repeat:no-repeat;background-position:0 0;background-size:30px 30px;border:none!important;display:none;height:30px;left:50%;margin-left:-20px;margin-top:-20px;overflow:hidden;position:fixed;top:50%;width:30px;z-index:10102}.bwg_filmstrip_thumbnail_img{max-width:none!important}.dashicons-arrow-down-alt2:before{content:"\f347";height:100%;display:inline-block}.footer-list-block .bwp_gallery .spider_popup_overlay,.footer-list-block .bwp_gallery_tags .spider_popup_overlay,.spider_popup_overlay{cursor:pointer;display:none;height:100%;left:0;position:fixed;top:0;width:100%;z-index:10100}.bwp_gallery_tags div[id^=bwg_container] li{border:none}.spider_popup_close,.spider_popup_close_fullscreen{-moz-box-sizing:content-box!important;box-sizing:content-box!important;cursor:pointer;display:table;line-height:0;position:absolute;z-index:11100}#spider_popup_left{left:0}#spider_popup_right{right:0}#spider_popup_left:hover,#spider_popup_right:hover{visibility:visible}#spider_popup_left:hover span{left:20px}#spider_popup_right:hover span{left:auto;right:20px}#spider_popup_left,#spider_popup_right{background:transparent url(../images/blank.gif) repeat scroll 0 0;bottom:35%;cursor:pointer;display:inline;height:30%;outline:medium none;position:absolute;width:35%;z-index:10130}#spider_popup_left-ico,#spider_popup_right-ico{-moz-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:table;line-height:0;margin-top:-15px;position:absolute;top:50%;z-index:10135}.bwg_captcha_refresh{background-image:url(../images/captcha_refresh.png);background-position:center center;background-repeat:no-repeat;background-size:100% 100%;border-width:0;cursor:pointer;display:inline-block;height:20px;width:20px;margin:0;padding:0;vertical-align:middle}.bwg_captcha_input{vertical-align:middle;width:75px!important}.bwg_captcha_img{cursor:pointer;margin:0 5px 0 5px;vertical-align:middle}.bwg_comment_error{color:red;display:block}.bwg_comment_waiting_message{display:none}.bwg_image_hit_container1,.bwg_image_info_container1,.bwg_image_rate_container1{height:100%;margin:0 auto;position:absolute;width:100%}.bwg_image_rate_container1{display:none}.bwg_image_hit_container2,.bwg_image_info_container2,.bwg_image_rate_container2{display:table;height:100%;margin:0 auto;position:absolute;width:100%}.bwg_image_hit_spun,.bwg_image_info_spun,.bwg_image_rate_spun{display:table-cell;height:100%;left:0;top:0;width:100%;overflow:hidden;position:relative}.bwg_image_hit,.bwg_image_info,.bwg_image_rate{display:inline-block;position:relative;text-decoration:none;word-wrap:break-word;z-index:11}.bwg_image_rate{z-index:999!important}@media screen and (max-width:465px){.bwg_ctrl_btn_container{height:auto!important}}.bwg_search_container_1{display:inline-block;width:100%;text-align:right;margin:0 5px 20px 0;background-color:rgba(0,0,0,0)}.bwg_search_container_2{display:inline-block;position:relative;border-radius:4px;box-shadow:0 0 3px 1px #ccc;background-color:#fff;border:1px solid #ccc;max-width:100%}div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input_container{display:block;margin-right:45px}div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_loupe_container{display:inline-block;margin-right:1px;vertical-align:middle;float:right}div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_reset_container{margin-right:5px;vertical-align:middle;float:right}.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_reset,.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search{display:block;font-size:10px;color:#323a45;cursor:pointer;line-height:inherit!important}.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search{font-size:12px}div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input,div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input:focus{color:#070707;outline:0;border:none;box-shadow:none;background:0 0;padding:3px 5px;font-family:inherit;width:100%}.bwg_order_cont .SumoSelect{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 3px 1px #ccc;border-radius:4px;height:initial;max-width:100%;padding:0 10px}.SumoSelect>.optWrapper>.options li.opt{border:none;text-align:left}.bwg_order_cont .SumoSelect .CaptionCont{text-align:left}.bwg_order_cont{background-color:rgba(0,0,0,0);display:block;text-align:right;width:100%;margin:0 5px 20px 0}#bwg_tag_container .SumoSelect,.bwg_order_cont .SumoSelect{display:inline-table}#bwg_tag_container .SumoSelect ul.options,.bwg_order_cont .SumoSelect ul.options{margin:0;padding:0!important}#bwg_tag_container .SumoSelect li,.bwg_order_cont .SumoSelect li{list-style:none}#bwg_tag_container .SumoSelect.open .search-txt{padding:0 8px;height:100%}#bwg_tag_container .SumoSelect>.optWrapper>.options li label{margin:0}.bwg_order_label{border:none;box-shadow:none;color:#bbb;font-family:inherit;font-weight:700;outline:0}.bwg_order{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 3px 1px #ccc;border-radius:4px;height:initial;max-width:100%;text-align:left}.wd_error{color:#ccc;font-size:initial}div[id^=bwg_container] .bwg_download_gallery{text-align:right;margin-top:10px}div[id^=bwg_container] .bwg_download_gallery a{color:#4a4a4a;font-size:25px;text-decoration:none}div[id^=bwg_container] .bwg_download_gallery a:hover{color:#7d7d7d}div[id^=bwg_container] .bwg-border-box *{-moz-box-sizing:border-box;box-sizing:border-box}.bwg-flex{display:flex}.bwg-width-100{width:100%;max-width:100%}.bwg-flex-column{flex-direction:column}.bwg-flex-row{flex-direction:row;flex-wrap:wrap}.bwg-container{font-size:0;width:100%;max-width:100%;display:flex;flex-direction:row;flex-wrap:wrap}.bwg-item{display:flex;flex-direction:column;cursor:pointer}.bwg-item0{overflow:hidden;z-index:100}.bwg-item0:hover{background:0 0!important;backface-visibility:hidden;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;opacity:1;filter:Alpha(opacity=100);z-index:102;position:relative}.bwg-item1{overflow:hidden;width:100%;position:relative}.bwg-item2{top:0;left:0;bottom:0;right:0;width:100%;height:100%}.bwg-item2{position:absolute}.bwg-ecommerce1,.bwg-title1{opacity:1;filter:Alpha(opacity=100);text-align:center;width:100%}.bwg-ecommerce1{text-align:right}.bwg-title2{width:100%;word-wrap:break-word}.bwg-item0:hover .bwg-ecommerce1,.bwg-item0:hover .bwg-title1{left:0!important;opacity:1!important;filter:Alpha(opacity=100)!important}.bwg-play-icon1{display:flex;height:100%;opacity:1;filter:Alpha(opacity=100);position:absolute;top:0;width:100%;z-index:100;justify-content:center;align-content:center;flex-direction:column;text-align:center}.bwg_loading_div_1{position:absolute;width:100%;height:100%;z-index:115;text-align:center;vertical-align:middle}.bwg_loading_div_2{display:table;vertical-align:middle;width:100%;height:100%;background-color:#fff;opacity:.95;filter:Alpha(opacity=95)}.bwg_loading_div_3{display:table-cell;text-align:center;position:relative;vertical-align:middle}.bwg_spider_ajax_loading{border:none!important;display:inline-block;text-align:center;position:relative;vertical-align:middle;background-image:url(../images/ajax_loader.png);float:none;width:30px;height:30px;background-size:30px 30px}.bwg-hidden{visibility:hidden}.bwg_container{position:relative;margin:20px 0}.bwg_inst_play_btn_cont,.bwg_inst_play_btn_cont .bwg_inst_play{display:block}.hidden{display:none}.bwg-loading{width:100%;height:100%;opacity:.95;position:absolute;background-color:#fff;background-image:url(../images/ajax_loader.png);background-position:center;background-repeat:no-repeat;background-size:50px;z-index:100100;top:0;left:0}#bwg_download{display:inline-block}#bwg_download.hidden{display:none}.bwg_thumbnail.bwg_container .search_line{min-height:50px;-webkit-box-shadow:0 5px 7px -5px rgba(0,0,0,.16);-moz-box-shadow:0 5px 7px -5px rgba(0,0,0,.16);box-shadow:0 5px 7px -5px rgba(0,0,0,.16);margin-bottom:10px;display:inline-block;width:100%}.bwg_thumbnail.bwg_container .search_line #bwg_tag_wrap,.bwg_thumbnail.bwg_container .search_line .bwg_order_cont,.bwg_thumbnail.bwg_container .search_line .bwg_search_container_1{float:left;display:table-cell;text-align:left;vertical-align:middle}.bwg_thumbnail.bwg_container .search_line #bwg_tag_wrap #bwg_tag_container,.bwg_thumbnail.bwg_container .search_line .bwg_order_cont select{border:.5px solid rgba(0,0,0,.15);box-shadow:none;border-radius:15px}.bwg_thumbnail.bwg_container .search_line .bwg_order_cont,.bwg_thumbnail.bwg_container .search_line .search_tags_container{width:25%;min-width:120px;max-width:180px;margin-right:20px;margin-bottom:10px;border:.5px solid rgba(0,0,0,.15);box-shadow:none;border-radius:15px;float:left;height:30px;padding:0;cursor:pointer;background:#fff}.bwg_thumbnail.bwg_container .search_line .bwg_order_cont select,.bwg_thumbnail.bwg_container .search_line .placeholder,.bwg_thumbnail.bwg_container .search_line .search-txt,.bwg_thumbnail.bwg_container .search_line .select-all,.bwg_thumbnail.bwg_container .search_line.SumoSelect .opt label{color:#323a45;font-size:12px;text-transform:uppercase;font-weight:400;font-family:Ubuntu;margin:0;border:none}.bwg_thumbnail.bwg_container .search_line .select-all label{margin-bottom:0;line-height:13px}.bwg_thumbnail.bwg_container .search_line .SumoSelect ul.options:not(:empty){padding:15px 0 0 10px!important}.bwg_thumbnail.bwg_container .search_line .SumoSelect{padding:0 10px;width:initial;height:inherit;cursor:pointer;display:block;border:none;box-shadow:none;border-radius:0;max-width:100%;background-color:transparent;line-height:inherit;vertical-align:bottom}.bwg_thumbnail.bwg_container .search_line .bwg_search_input_container{height:30px;text-align:center;font-size:12px;font-family:Ubuntu;border-radius:15px;text-align:left;width:calc(100%);margin:0;overflow:hidden}.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input,.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input:focus{height:30px;padding:0 10px;text-align:center;font-size:12px;font-family:Ubuntu;border-radius:15px;text-align:left;width:calc(100% - 64px);display:inline-table}.bwg_thumbnail.bwg_container .search_line .CaptionCont span{display:block!important;vertical-align:middle;color:#323a45!important;font-size:12px;text-transform:uppercase;font-family:Ubuntu;cursor:pointer;line-height:29px;max-width:calc(100% - 20px)}.bwg_thumbnail .search_tags{cursor:pointer}.bwg_thumbnail.bwg_container .search_line .SumoSelect .select-all>span,.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper.multiple>.options li.opt span{margin-left:-35px}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper.multiple>.options li.opt{padding-left:25px}.bwg_thumbnail .bwg_search_input::-webkit-input-placeholder{color:#ccc;font-size:12px;text-transform:uppercase;font-family:Ubuntu}.bwg_thumbnail .bwg_search_input::-moz-placeholder{color:#ccc;font-size:12px;text-transform:uppercase;text-align:left;font-family:Ubuntu;line-height:30px}.bwg_thumbnail .bwg_search_input:-ms-input-placeholder{color:#ccc;font-size:12px;text-transform:uppercase;text-align:left;font-family:Ubuntu}.bwg_thumbnail .bwg_search_input:-moz-placeholder{color:#ccc;font-size:12px;text-transform:uppercase;text-align:left;font-family:Ubuntu}.bwg_thumbnail .search-txt::-webkit-input-placeholder{text-align:left;color:#323a45;opacity:.5;font-size:12px!important}.bwg_thumbnail .search-txt::-moz-placeholder{text-align:left;color:#323a45;opacity:.5;font-size:12px!important}.bwg_thumbnail .search-txt::-ms-input-placeholder{text-align:left;color:#323a45;opacity:.5;font-size:12px}.bwg_thumbnail .search-txt:-ms-input-placeholder{text-align:left;color:#323a45;opacity:.5;font-size:12px}.bwg_thumbnail .search-txt:-moz-placeholder{text-align:left;color:#323a45;opacity:.5;font-size:12px}.bwg_thumbnail .bwg_search_input_container .search_placeholder_title{width:calc(100% - 20px);height:29px;text-align:center;display:inline-block;background:#fff;position:absolute;top:.5px;left:10px;white-space:nowrap;border-radius:15px;color:#4e4e4e;text-transform:uppercase;overflow:hidden}.bwg_thumbnail .bwg_search_input_container .search_placeholder_title span{line-height:28px}.bwg_thumbnail.bwg_container .search_line .bwg_search_loupe_container{line-height:29px;display:inline-block;top:0;margin-right:10px;vertical-align:middle;float:none;padding-top:0;font-size:12px;font-family:Ubuntug}.bwg_thumbnail.bwg_container .search_line .bwg_search_loupe_container1{margin-left:0;float:left;top:0;line-height:30px;width:auto;height:30px;margin-left:10px}.bwg_thumbnail.bwg_container .search_line .bwg_search_reset_container{right:0;top:0;line-height:30px;width:11px;height:30px;margin-right:10px}.bwg_thumbnail.bwg_container .search_line .bwg_search_container_1{float:right;width:30%;min-width:120px}.bwg_thumbnail.bwg_container .search_line .bwg_search_container_1 .bwg_search_container_2{width:100%!important;float:right}.bwg_thumbnail.bwg_container .search_line .SumoSelect .select-all{padding:0 0 3px 35px!important;height:13px;line-height:13px;margin-bottom:15px!important}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper>.options li.opt{margin-bottom:15px;padding:0;list-style:none;color:#323a45;font-size:12px;text-transform:uppercase;font-family:Ubuntu;line-height:12px}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper.multiple>.MultiControls>p.btnCancel,.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper.multiple>.MultiControls>p.btnOk{font-family:Ubuntu;font-size:12px;line-height:12px}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper.multiple>.MultiControls>p:hover{background:0 0}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper>.options li.opt label{color:#323a45;font-size:12px;text-transform:uppercase;font-family:Ubuntu;font-weight:400;margin-bottom:0}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont{height:inherit;border:transparent;background:inherit;width:100%;cursor:pointer;max-height:calc(100% - 2px)}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont>label{margin:0;line-height:100%;cursor:pointer;width:20px}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont>label>i{line-height:100%;height:100%}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont>label>i.closed:before,.bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont>label>i.opened:before{color:#323a45;font-size:10px;line-height:30px}.bwg_thumbnail.bwg_container .search_line .bwg_reset{position:absolute}.bwg_thumbnail.bwg_container .search_line .no-match{font-family:Ubuntu;font-size:12px;color:#323a45;padding:5px 25px!important;text-align:center}.bwg_thumbnail.bwg_container .search_line .search-txt{border:transparent;background:0 0;padding:4px 0!important;height:100%}.bwg_thumbnail.bwg_container .search_line .search-txt:focus{box-shadow:none}.bwg_thumbnail.bwg_container .search_line .bwg_order.SumoUnder{display:none}.bwg_slideshow_image_container{position:absolute}.bwg_slideshow_image_container>div>div{display:table;margin:0 auto}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slide_container_] img[id^=bwg_slideshow_image_]{display:inline-block}.bwg_thumbnail #bwg_tag_container p{text-align:left}.bwg_thumbnail .bwg_search_container_2{display:inline-block;position:relative;border-radius:4px;background-color:#fff;max-width:100%;box-shadow:none;border:.5px solid rgba(0,0,0,.15);border-radius:15px}.bwg_thumbnail .bwg_order_cont{background-color:rgba(0,0,0,0);display:block;text-align:right;width:100%;margin:0 5px 20px 5px}.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input_container{display:block;text-align:center}.bwg_thumbnail .SumoSelect>.optWrapper>.options li.opt:hover{background-color:transparent}.bwg-zoom-effect .bwg-zoom-effect-overlay{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;filter:Alpha(opacity=0);opacity:0;-webkit-transition:all .45s ease-in-out;transition:all .45s ease-in-out}.bwg-zoom-effect:hover .bwg-zoom-effect-overlay{filter:Alpha(opacity=1);opacity:1}.bwg-zoom-effect img{-webkit-transition:all .3s;transition:all .3s}.bwg-zoom-effect .bwg-title1{-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.bwg_container div[id^=bwg_container2_] img{height:initial}.bwg-masonry-vertical{flex-direction:column}.bwg-masonry-horizontal{flex-direction:row}.bwg-masonry-horizontal-parent{overflow-x:scroll;overflow-y:hidden}.bwg-masonry-horizontal-container{width:fit-content}.bwg-item.bwg-empty-item{border:0!important;padding:0!important}.bwg-background{background-color:rgba(0,0,0,0);position:relative;width:100%}.bwg-background .wd_error{color:#323a45;font-weight:700}div[id^=bwg_container] .bwg-carousel{margin:0 auto}.bwg_carousel_preload{background-image:url(../images/ajax_loader.png);background-size:50px!important;background-repeat:no-repeat;background-color:#fff;background-position:center}.bwg_container.bwg_carousel *{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.bwg_container.bwg_carousel [id^=bwg_container2_] *{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_]{position:relative;z-index:15}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_image_container_]{display:inline-block;position:absolute;text-align:center;vertical-align:middle}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_container_]{display:table-cell;margin:0 auto;position:relative;vertical-align:middle}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_container_] div{display:table;margin:0 auto}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_spun_]{display:table-cell;overflow:hidden;position:relative}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_image_]{padding:0!important;display:inline-block;float:none!important;margin:4px!important;position:relative;z-index:15}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_text_],.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_text_]:hover{text-decoration:none;margin:4px;display:block;position:relative;z-index:17}.bwg_container.bwg_carousel [id^=bwg_container2_] .bwg_carousel-cont-child{max-width:100%;position:relative;overflow:hidden;height:100%;width:100%}.bwg_container.bwg_carousel [id^=bwg_container2_] .bwg-carousel-image{border:0;position:absolute;display:block;max-width:none;padding:0!important;margin:0!important;float:none!important;vertical-align:middle;height:100%;width:100%;background-position:center center;background-repeat:no-repeat;background-size:cover;vertical-align:middle}.bwg_container.bwg_carousel [id^=bwg_container2_] .bwg-carousel{position:relative;max-width:100%;width:100%}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel-feature]{position:absolute;display:block;overflow:hidden;cursor:pointer}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel-feature] [class^=bwg_carousel-caption] [class^=bwg_carousel_title_text_]{text-decoration:none;position:absolute;z-index:15;display:inline-block;width:75%;top:0;text-align:center;word-wrap:break-word;word-break:break-word}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel-left],.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel-right]{bottom:38%;cursor:pointer;display:inline;height:30%;outline:medium none;position:absolute;width:0%;z-index:13;visibility:visible}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel-right]{right:0;left:auto;z-index:999}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel-left]{left:20px;z-index:999}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_video_hide]{width:100%;height:100%;position:absolute;z-index:22}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_left-ico_] span,.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_right-ico_] span{display:table-cell;text-align:center;vertical-align:middle;z-index:13}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_left-ico_],.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_right-ico_]{z-index:13;-moz-box-sizing:content-box;box-sizing:content-box;cursor:pointer;display:inline-table;line-height:0;margin-top:-15px;position:absolute;top:55%}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_left-ico_]:hover,.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_right-ico_]:hover{cursor:pointer}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel_play_pause_]{bottom:0;cursor:pointer;display:inline-table;outline:medium none;position:absolute;height:inherit;width:30%;left:35%;z-index:13}.bwg_container.bwg_carousel .bwg_carousel_play_pause:hover .bwg_carousel_play_pause-ico{display:inline-block!important}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel_play_pause_]:hover span{position:relative;z-index:13}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel_play_pause_] span{display:table-cell;text-align:center;vertical-align:middle}.bwg_container.bwg_carousel [id^=bwg_container2_] .bwg_carousel_play_pause-ico{display:none!important;cursor:pointer;position:relative;z-index:13}.bwg_container.bwg_carousel [id^=bwg_container2_] .bwg_carousel_play_pause-ico:hover{display:inline-block;position:relative;z-index:13}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_embed_]{padding:0!important;float:none!important;width:100%;height:100%;vertical-align:middle;position:relative;display:table;background-color:#000;text-align:center}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_embed_video_]{padding:0!important;margin:0!important;float:none!important;vertical-align:middle;position:relative;display:table-cell;background-color:#000;text-align:center}.bwg_thumbnail.bwg_container{padding:0 1px}.bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive{display:inline-block}body .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .bwg_order_cont,body .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .bwg_search_container_1,body .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .search_tags_container{width:100%;margin:0 0 10px 0;text-align:center;max-width:100%}.search_line .SumoSelect>.optWrapper.multiple.isFloating{padding-bottom:26px}.bwg_container.bwg_blog_style .fluid-width-video-wrapper,.bwg_container.bwg_carousel .fluid-width-video-wrapper,.bwg_container.bwg_image_browser .fluid-width-video-wrapper{width:100%;position:unset!important;padding:0!important}.bwg_inst_play_btn_cont{width:100%;height:100%;position:absolute;z-index:1;cursor:pointer;top:0}.bwg_inst_play{position:absolute;width:50px;height:50px;background-position:center center;background-repeat:no-repeat;background-size:cover;transition:background-image .2s ease-out;-ms-transition:background-image .2s ease-out;-moz-transition:background-image .2s ease-out;-webkit-transition:background-image .2s ease-out;top:0;left:0;right:0;bottom:0;margin:auto}.bwg_inst_play:hover{background-position:center center;background-repeat:no-repeat;background-size:cover}.spider_popup_wrap *{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.spider_popup_wrap{display:inline-block;left:50%;outline:medium none;position:fixed;text-align:center;top:50%;z-index:100000}.bwg_popup_image{vertical-align:middle;display:inline-block}.bwg_popup_embed{width:100%;height:100%;vertical-align:middle;text-align:center;display:table}.bwg_btn_container{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}.bwg_toggle_btn{margin:0;padding:0}.bwg_ctrl_btn_container{position:absolute;width:100%;z-index:10150}.bwg_toggle_container{cursor:pointer;left:50%;line-height:0;position:absolute;text-align:center;z-index:10150}#spider_popup_left-ico span,#spider_popup_right-ico span,.spider_popup_close span{display:table-cell;text-align:center;vertical-align:middle}.bwg_image_wrap{height:inherit;display:table;position:absolute;text-align:center;width:inherit}.bwg_image_wrap *{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.bwg_comment_wrap,.bwg_ecommerce_wrap{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0;z-index:-1}.bwg_comment_container,.bwg_ecommerce_container{-moz-box-sizing:border-box;height:100%;overflow:hidden;position:absolute;top:0;z-index:10103}#bwg_ecommerce{padding:10px}.bwg_ecommerce_body{background:0 0!important;border:none!important}.pge_tabs{list-style-type:none;margin:0;padding:0;background:0 0!important}.pge_tabs li a,.pge_tabs li a:hover,.pge_tabs li.pge_active a{text-decoration:none;display:block;width:100%;outline:0!important;padding:8px 5px!important;font-weight:700;font-size:13px}.pge_add_to_cart a{padding:5px 10px;text-decoration:none!important;display:block}.pge_add_to_cart{margin:5px 0 15px}.pge_add_to_cart_title{font-size:17px;padding:5px}.pge_add_to_cart div:first-child{float:left}.pge_add_to_cart div:last-child{float:right;margin-top:4px}.pge_add_to_cart:after,.pge_tabs:after{clear:both;content:"";display:table}#downloads table tr td,#downloads table tr th{padding:6px 10px!important;text-transform:none!important}.bwg_comments input[type=submit],.bwg_ecommerce_panel input[type=button]{cursor:pointer;font-size:15px;width:100%;margin-bottom:5px}.bwg_comments,.bwg_ecommerce_panel{bottom:0;height:100%;left:0;overflow-x:hidden;overflow-y:auto;position:absolute;top:0;width:100%;z-index:10101}.bwg_comments{height:100%}.bwg_comment_body_p,.bwg_comments p{margin:5px!important;text-align:left;word-wrap:break-word;word-break:break-all}.bwg_ecommerce_panel p{padding:5px!important;text-align:left;word-wrap:break-word;word-break:break-all;margin:0!important}.bwg_comments .bwg-submit-disabled{opacity:.5}.bwg_comments textarea{height:120px;resize:vertical}.bwg_comment_delete_btn{color:#7a7a7a;cursor:pointer;float:right;font-size:14px;margin:2px}.bwg_comments_close,.bwg_ecommerce_close{cursor:pointer;line-height:0;position:relative;font-size:13px;margin:5px;z-index:10150}.bwg_ecommerce_panel a:hover{text-decoration:underline}.bwg_comment_textarea::-webkit-scrollbar{width:4px}.bwg_comment_textarea::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,.55);border-radius:2px}.bwg_comment_textarea::-webkit-scrollbar-thumb:hover{background-color:#d9d9d9}.bwg_ctrl_btn_container a,.bwg_ctrl_btn_container a:hover{text-decoration:none}.bwg_facebook:hover{color:#3b5998}.bwg_twitter:hover{color:#4099fb}.bwg_google:hover{color:#dd4b39}.bwg_pinterest:hover{color:#cb2027}.bwg_tumblr:hover{color:#2f5070}.bwg_image_container{display:table;position:absolute;text-align:center;vertical-align:middle;width:100%}.bwg_filmstrip_container{position:absolute;z-index:10150}.bwg_filmstrip{overflow:hidden;position:absolute;z-index:10106}.bwg_filmstrip_thumbnails{margin:0 auto;overflow:hidden;position:relative}.bwg_filmstrip_thumbnail{position:relative;background:0 0;float:left;cursor:pointer;overflow:hidden}.bwg_filmstrip_thumbnail .bwg_filmstrip_thumbnail_img_wrap{overflow:hidden}.bwg_thumb_active{opacity:1;filter:Alpha(opacity=100)}.bwg_filmstrip_thumbnail_img{display:block;opacity:1;filter:Alpha(opacity=100)}.bwg_filmstrip_left{cursor:pointer;vertical-align:middle;z-index:10106}.bwg_filmstrip_right{cursor:pointer;vertical-align:middle;z-index:10106}.bwg_none_selectable{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bwg_watermark_container{display:table-cell;margin:0 auto;position:relative;vertical-align:middle}.bwg_watermark_container>div{display:table;margin:0 auto}.bwg_watermark_spun{display:table-cell;overflow:hidden;position:relative}.bwg_watermark_image{margin:4px;position:relative;z-index:10141}.bwg_watermark_text,.bwg_watermark_text:hover{text-decoration:none;margin:4px;position:relative;z-index:10141}.bwg_slide_container{display:table-cell;position:absolute;vertical-align:middle;width:100%;height:100%}.bwg_slide_bg{margin:0 auto;width:inherit;height:inherit}.bwg_slider{height:inherit;width:inherit}.bwg_popup_image_spun{height:inherit;display:table-cell;filter:Alpha(opacity=100);opacity:1;position:absolute;vertical-align:middle;width:inherit;z-index:2}.bwg_popup_image_second_spun{width:inherit;height:inherit;display:table-cell;filter:Alpha(opacity=0);opacity:0;position:absolute;vertical-align:middle;z-index:1}.bwg_grid{display:none;height:100%;overflow:hidden;position:absolute;width:100%}.bwg_gridlet{opacity:1;filter:Alpha(opacity=100);position:absolute}.bwg_image_info::-webkit-scrollbar{width:4px}.bwg_image_info::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,.55);border-radius:2px}.bwg_image_info::-webkit-scrollbar-thumb:hover{background-color:#d9d9d9}#bwg_rate_form .bwg_hint{margin:0 5px;display:none}.bwg_star{display:inline-block;width:unset!important}.bwg_image_count_container{left:0;line-height:1;position:absolute;vertical-align:middle}#bwg_comment_form label{display:block;font-weight:700;margin-top:17px;text-transform:uppercase}#bwg_comment_form .bwg-privacy-policy-box label{text-transform:unset;word-break:break-word}.bwg_popup_image_spun .bwg_popup_image_spun1{width:inherit;height:inherit}.bwg_popup_image_spun1 .bwg_popup_image_spun2{vertical-align:middle;text-align:center;height:100%}#embed_conteiner{table-layout:fixed;height:100%}#opacity_div{background-color:rgba(255,255,255,.2);position:absolute;z-index:10150}#loading_div{text-align:center;position:relative;vertical-align:middle;z-index:10170;float:none;width:30px;height:30px;background-size:30px 30px;background-repeat:no-repeat;background-position:50% 50%}#ecommerce_ajax_loading{position:absolute}#ecommerce_opacity_div{display:none;background-color:rgba(255,255,255,.2);position:absolute;z-index:10150}#ecommerce_loading_div{display:none;text-align:center;position:relative;vertical-align:middle;z-index:10170;float:none;width:30px;height:30px;background-size:30px 30px;background-repeat:no-repeat;background-position:50% 50%}.bwg_ecommerce_panel.bwg_popup_sidebar_panel.bwg_popup_sidebar{text-align:left}#ajax_loading{position:absolute}@media (max-width:480px){.bwg_image_count_container{display:none}.bwg_image_title,.bwg_image_title *{font-size:12px}.bwg_image_description,.bwg_image_description *{font-size:10px}}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_image_wrap_] *{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_image_wrap_]{border-collapse:collapse;display:table;position:relative;text-align:center;margin:auto}div[id^=bwg_container1_] div[id^=bwg_container2_] img[class^=bwg_slideshow_image_]{display:inline-block;padding:0!important;margin:0!important;float:none!important;vertical-align:middle}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_embed_]{padding:0!important;margin:0!important;float:none!important;vertical-align:middle;display:inline-block;text-align:center}div[id^=bwg_container1_] div[id^=bwg_container2_] img[class^=bwg_slideshow_watermark_]{position:relative;z-index:15}div[id^=bwg_container1_] div[id^=bwg_container2_] span.bwg_slideshow_play_pause{bottom:0;cursor:pointer;display:table;height:inherit;outline:medium none;position:absolute;width:30%;left:35%;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] span.bwg_slideshow_play_pause:hover span[id^=bwg_slideshow_play_pause-ico_]{display:inline-block!important}div[id^=bwg_container1_] div[id^=bwg_container2_] span.bwg_slideshow_play_pause:hover span{position:relative;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] span.bwg_slideshow_play_pause span{display:table-cell;text-align:center;vertical-align:middle;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=bwg_slideshow_play_pause-ico_]{display:none!important;cursor:pointer;position:relative;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=bwg_slideshow_play_pause-ico_]:hover{display:inline-block;position:relative;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_left_],div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_right_]{bottom:35%;cursor:pointer;display:inline;height:30%;outline:medium none;position:absolute;width:35%;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_left_]{left:0}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_right_]{right:0}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_left_]:hover,div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_right_]:hover{visibility:visible}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_left_]:hover,div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_right_]:hover{visibility:visible}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_right_]:hover span{left:auto!important;right:20px!important}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_left_]:hover span{left:20px!important}div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_left-ico_] span,div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_right-ico_] span{display:table-cell;text-align:center;vertical-align:middle;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_left-ico_],div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_right-ico_]{z-index:13;-moz-box-sizing:content-box;box-sizing:content-box;cursor:pointer;display:table;line-height:0;margin-top:-15px;position:absolute;top:50%}div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_left-ico_]:hover,div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_right-ico_]:hover{cursor:pointer}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_image_container_]{display:table;position:absolute;text-align:center;vertical-align:middle}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_filmstrip_container_]{position:absolute}div[id^=bwg_container1_] div[id^=bwg_container2_] .bwg_slideshow_filmstrip{overflow:hidden;position:absolute}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_filmstrip_thumbnails_]{margin:0 auto;overflow:hidden;position:relative}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_filmstrip_thumbnail_]{position:relative;background:0 0;cursor:pointer;float:left;overflow:hidden}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_thumb_active_]{opacity:1;filter:Alpha(opacity=100)}div[id^=bwg_container1_] div[id^=bwg_container2_] img[class^=bwg_slideshow_filmstrip_thumbnail_img_]{display:block;opacity:1;filter:Alpha(opacity=100);padding:0!important}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_filmstrip_left_]{cursor:pointer;vertical-align:middle}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_filmstrip_right_]{cursor:pointer;vertical-align:middle}div[id^=bwg_container1_] div[id^=bwg_container2_] a[class^=bwg_none_selectable_]{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_watermark_container_]{display:table-cell;margin:0 auto;position:relative;vertical-align:middle}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_watermark_spun_]{display:table-cell;overflow:hidden;position:relative}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_title_spun_]{display:table-cell;overflow:hidden;position:relative}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_description_spun_]{display:table-cell;overflow:hidden;position:relative}div[id^=bwg_container1_] div[id^=bwg_container2_] img[class^=bwg_slideshow_watermark_image_]{padding:0!important;float:none!important;margin:4px!important;position:relative;z-index:15}div[id^=bwg_container1_] div[id^=bwg_container2_] a[class^=bwg_slideshow_watermark_text_],div[id^=bwg_container1_] div[id^=bwg_container2_] a[class^=bwg_slideshow_watermark_text_]:hover{text-decoration:none;margin:4px;position:relative;z-index:15}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_title_text_]{text-decoration:none;position:relative;z-index:11;display:inline-block;word-wrap:break-word;word-break:break-word}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_description_text_]{text-decoration:none;position:relative;z-index:15;margin:5px;display:inline-block;word-wrap:break-word;word-break:break-word}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slide_container_]{display:table-cell;margin:0 auto;position:absolute;vertical-align:middle;width:100%;height:100%}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slide_bg_]{margin:0 auto;width:inherit;height:inherit}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slider_]{height:inherit;width:inherit}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_image_spun_]{width:inherit;height:inherit;display:table-cell;filter:Alpha(opacity=100);opacity:1;position:absolute;vertical-align:middle;z-index:2}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_image_second_spun_]{width:inherit;height:inherit;display:table-cell;filter:Alpha(opacity=0);opacity:0;position:absolute;vertical-align:middle;z-index:1}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_grid_]{display:none;height:100%;overflow:hidden;position:absolute;width:100%}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_gridlet_]{opacity:1;filter:Alpha(opacity=100);position:absolute}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_dots_]{display:inline-block;position:relative;cursor:pointer;overflow:hidden;z-index:17}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_dots_container_]{display:block;overflow:hidden;position:absolute;z-index:17}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_dots_thumbnails_]{left:0;font-size:0;margin:0 auto;overflow:hidden;position:relative}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_dots_active_]{opacity:1;filter:Alpha(opacity=100)}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_image_spun1_]{display:table;width:inherit;height:inherit}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_image_spun2_]{display:table-cell;vertical-align:middle;text-align:center}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_mosaic_play_icon_spun_]{display:flex;height:100%;opacity:1;filter:Alpha(opacity=100);position:absolute;top:0;width:100%;z-index:100;justify-content:center;align-content:center;flex-direction:column;text-align:center;left:0}
|
1 |
+
div[id^=bwg_container] p{padding:0!important;margin:0!important}div[id^=bwg_container] img{box-shadow:none!important}div[id^=bwg_container] *{margin:0}div[id^=bwg_container] .SumoSelect.open>.CaptionCont,div[id^=bwg_container] .SumoSelect:focus>.CaptionCont,div[id^=bwg_container] .SumoSelect:hover>.CaptionCont,div[id^=bwg_container] .SumoSelect>.CaptionCont{border:none;box-shadow:none}#bwg_tag_wrap{background-color:#fff;width:100%;font-family:inherit;margin:0 -5px 20px 0;z-index:200;position:relative}.bwg_search_loupe_container,.bwg_search_reset_container{font-size:18px;color:#ccc;cursor:pointer;position:relative}#bwg_tag_container p{text-align:center}#bwg_tag_container{border:1px solid #ccc;box-shadow:0 0 3px 1px #ccc;border-radius:4px;width:256px;float:right}#spider_popup_wrap a{border:none;box-shadow:none}div[id^=bwg_container].bwg_container a{border:none;box-shadow:none!important;outline:0;font-size:0;cursor:pointer;text-decoration:none}div[id^=bwg_container] div[id^=bwg_container] .bwg_img_clear{max-height:none!important;max-width:none!important;padding:0!important}.tag_cloud_link{font-size:inherit!important}@media print{#spider_popup_left,#spider_popup_right,.bwg_image_info,[class^=bwg_slideshow_title_text_],[id^=bwg_slideshow_play_pause_],[id^=spider_slideshow_left_],[id^=spider_slideshow_right_]{background:0 0}}.bwg_spider_popup_loading,.footer-list-block .bwp_gallery .bwg_spider_popup_loading,.footer-list-block .bwp_gallery_tags .bwg_spider_popup_loading{background-image:url(../images/ajax_loader.png);background-color:rgba(0,0,0,0);background-repeat:no-repeat;background-position:0 0;background-size:30px 30px;border:none!important;display:none;height:30px;left:50%;margin-left:-20px;margin-top:-20px;overflow:hidden;position:fixed;top:50%;width:30px;z-index:10102}.bwg_filmstrip_thumbnail_img{max-width:none!important}.dashicons-arrow-down-alt2:before{content:"\f347";height:100%;display:inline-block}.footer-list-block .bwp_gallery .spider_popup_overlay,.footer-list-block .bwp_gallery_tags .spider_popup_overlay,.spider_popup_overlay{cursor:pointer;display:none;height:100%;left:0;position:fixed;top:0;width:100%;z-index:10100}.bwp_gallery_tags div[id^=bwg_container] li{border:none}.spider_popup_close,.spider_popup_close_fullscreen{-moz-box-sizing:content-box!important;box-sizing:content-box!important;cursor:pointer;display:table;line-height:0;position:absolute;z-index:11100}#spider_popup_left{left:0}#spider_popup_right{right:0}#spider_popup_left:hover,#spider_popup_right:hover{visibility:visible}#spider_popup_left:hover span{left:20px}#spider_popup_right:hover span{left:auto;right:20px}#spider_popup_left,#spider_popup_right{background:transparent url(../images/blank.gif) repeat scroll 0 0;bottom:35%;cursor:pointer;display:inline;height:30%;outline:medium none;position:absolute;width:35%;z-index:10130}#bwg_image_container #spider_popup_left,#bwg_image_container #spider_popup_right{width:25%}#spider_popup_left-ico,#spider_popup_right-ico{-moz-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:table;line-height:0;margin-top:-15px;position:absolute;top:50%;z-index:10135}.bwg_captcha_refresh{background-image:url(../images/captcha_refresh.png);background-position:center center;background-repeat:no-repeat;background-size:100% 100%;border-width:0;cursor:pointer;display:inline-block;height:20px;width:20px;margin:0;padding:0;vertical-align:middle}.bwg_captcha_input{vertical-align:middle;width:75px!important}.bwg_captcha_img{cursor:pointer;margin:0 5px 0 5px;vertical-align:middle}.bwg_comment_error{color:red;display:block}.bwg_comment_waiting_message{display:none}.bwg_image_hit_container1,.bwg_image_info_container1,.bwg_image_rate_container1{height:100%;margin:0 auto;position:absolute;width:100%}.bwg_image_rate_container1{display:none}.bwg_image_hit_container2,.bwg_image_info_container2,.bwg_image_rate_container2{display:table;height:100%;margin:0 auto;position:absolute;width:100%}.bwg_image_hit_spun,.bwg_image_info_spun,.bwg_image_rate_spun{display:table-cell;height:100%;left:0;top:0;width:100%;overflow:hidden;position:relative}.bwg_image_hit,.bwg_image_info,.bwg_image_rate{display:inline-block;position:relative;text-decoration:none;word-wrap:break-word;z-index:11}.bwg_image_rate{z-index:999!important}@media screen and (max-width:465px){.bwg_ctrl_btn_container{height:auto!important}}.bwg_search_container_1{display:inline-block;width:100%;text-align:right;margin:0 5px 20px 0;background-color:rgba(0,0,0,0)}.bwg_search_container_2{display:inline-block;position:relative;border-radius:4px;box-shadow:0 0 3px 1px #ccc;background-color:#fff;border:1px solid #ccc;max-width:100%}div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input_container{display:block;margin-right:45px}div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_loupe_container{display:inline-block;margin-right:1px;vertical-align:middle;float:right}div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_reset_container{margin-right:5px;vertical-align:middle;float:right}.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_reset,.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search{display:block;font-size:10px;color:#323a45;cursor:pointer;line-height:inherit!important}.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search{font-size:12px}div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input,div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input:focus{color:#070707;outline:0;border:none;box-shadow:none;background:0 0;padding:3px 5px;font-family:inherit;width:100%}.bwg_order_cont .SumoSelect{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 3px 1px #ccc;border-radius:4px;height:initial;max-width:100%;padding:0 10px}.SumoSelect>.optWrapper>.options li.opt{border:none;text-align:left}.bwg_order_cont .SumoSelect .CaptionCont{text-align:left}.bwg_order_cont{background-color:rgba(0,0,0,0);display:block;text-align:right;width:100%;margin:0 5px 20px 0}#bwg_tag_container .SumoSelect,.bwg_order_cont .SumoSelect{display:inline-table}#bwg_tag_container .SumoSelect ul.options,.bwg_order_cont .SumoSelect ul.options{margin:0;padding:0!important}#bwg_tag_container .SumoSelect li,.bwg_order_cont .SumoSelect li{list-style:none}#bwg_tag_container .SumoSelect.open .search-txt{padding:0 8px;height:100%}#bwg_tag_container .SumoSelect>.optWrapper>.options li label{margin:0}.bwg_order_label{border:none;box-shadow:none;color:#bbb;font-family:inherit;font-weight:700;outline:0}.bwg_order{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 3px 1px #ccc;border-radius:4px;height:initial;max-width:100%;text-align:left}.wd_error{color:#ccc;font-size:initial}div[id^=bwg_container] .bwg_download_gallery{text-align:right;margin-top:10px}div[id^=bwg_container] .bwg_download_gallery a{color:#4a4a4a;font-size:25px;text-decoration:none}div[id^=bwg_container] .bwg_download_gallery a:hover{color:#7d7d7d}div[id^=bwg_container] .bwg-border-box *{-moz-box-sizing:border-box;box-sizing:border-box}.bwg-flex{display:flex}.bwg-width-100{width:100%;max-width:100%}.bwg-flex-column{flex-direction:column}.bwg-flex-row{flex-direction:row;flex-wrap:wrap}.bwg-container{font-size:0;width:100%;max-width:100%;display:flex;flex-direction:row;flex-wrap:wrap}.bwg-item{display:flex;flex-direction:column;cursor:pointer}.bwg-item0{overflow:hidden;z-index:100}.bwg-item0:hover{background:0 0!important;backface-visibility:hidden;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;opacity:1;filter:Alpha(opacity=100);z-index:102;position:relative}.bwg-item1{overflow:hidden;width:100%;position:relative}.bwg-item2{top:0;left:0;bottom:0;right:0;width:100%;height:100%}.bwg-item2{position:absolute}.bwg-ecommerce1,.bwg-title1{opacity:1;filter:Alpha(opacity=100);text-align:center;width:100%}.bwg-ecommerce1{text-align:right}.bwg-title2{width:100%;word-wrap:break-word}.bwg-item0:hover .bwg-ecommerce1,.bwg-item0:hover .bwg-title1{left:0!important;opacity:1!important;filter:Alpha(opacity=100)!important}.bwg-play-icon1{display:flex;height:100%;opacity:1;filter:Alpha(opacity=100);position:absolute;top:0;width:100%;z-index:100;justify-content:center;align-content:center;flex-direction:column;text-align:center}.bwg_loading_div_1{position:absolute;width:100%;height:100%;z-index:115;text-align:center;vertical-align:middle}.bwg_loading_div_2{display:table;vertical-align:middle;width:100%;height:100%;background-color:#fff;opacity:.95;filter:Alpha(opacity=95)}.bwg_loading_div_3{display:table-cell;text-align:center;position:relative;vertical-align:middle}.bwg_spider_ajax_loading{border:none!important;display:inline-block;text-align:center;position:relative;vertical-align:middle;background-image:url(../images/ajax_loader.png);float:none;width:30px;height:30px;background-size:30px 30px}.bwg-hidden{visibility:hidden}.bwg_container{position:relative;margin:20px 0}.bwg_inst_play_btn_cont,.bwg_inst_play_btn_cont .bwg_inst_play{display:block}.hidden{display:none}.bwg-loading{width:100%;height:100%;opacity:.95;position:absolute;background-color:#fff;background-image:url(../images/ajax_loader.png);background-position:center;background-repeat:no-repeat;background-size:50px;z-index:100100;top:0;left:0}#bwg_download{display:inline-block}#bwg_download.hidden{display:none}.bwg_thumbnail.bwg_container .search_line{min-height:50px;-webkit-box-shadow:0 5px 7px -5px rgba(0,0,0,.16);-moz-box-shadow:0 5px 7px -5px rgba(0,0,0,.16);box-shadow:0 5px 7px -5px rgba(0,0,0,.16);margin-bottom:10px;display:inline-block;width:100%}.bwg_thumbnail.bwg_container .search_line #bwg_tag_wrap,.bwg_thumbnail.bwg_container .search_line .bwg_order_cont,.bwg_thumbnail.bwg_container .search_line .bwg_search_container_1{float:left;display:table-cell;text-align:left;vertical-align:middle}.bwg_thumbnail.bwg_container .search_line #bwg_tag_wrap #bwg_tag_container,.bwg_thumbnail.bwg_container .search_line .bwg_order_cont select{border:.5px solid rgba(0,0,0,.15);box-shadow:none;border-radius:15px}.bwg_thumbnail.bwg_container .search_line .bwg_order_cont,.bwg_thumbnail.bwg_container .search_line .search_tags_container{width:25%;min-width:120px;max-width:180px;margin-right:20px;margin-bottom:10px;border:.5px solid rgba(0,0,0,.15);box-shadow:none;border-radius:15px;float:left;height:30px;padding:0;cursor:pointer;background:#fff}.bwg_thumbnail.bwg_container .search_line .bwg_order_cont select,.bwg_thumbnail.bwg_container .search_line .placeholder,.bwg_thumbnail.bwg_container .search_line .search-txt,.bwg_thumbnail.bwg_container .search_line .select-all,.bwg_thumbnail.bwg_container .search_line.SumoSelect .opt label{color:#323a45;font-size:12px;text-transform:uppercase;font-weight:400;font-family:Ubuntu;margin:0;border:none}.bwg_thumbnail.bwg_container .search_line .select-all label{margin-bottom:0;line-height:13px}.bwg_thumbnail.bwg_container .search_line .SumoSelect ul.options:not(:empty){padding:15px 0 0 10px!important}.bwg_thumbnail.bwg_container .search_line .SumoSelect{padding:0 10px;width:initial;height:inherit;cursor:pointer;display:block;border:none;box-shadow:none;border-radius:0;max-width:100%;background-color:transparent;line-height:inherit;vertical-align:bottom}.bwg_thumbnail.bwg_container .search_line .bwg_search_input_container{height:30px;text-align:center;font-size:12px;font-family:Ubuntu;border-radius:15px;text-align:left;width:calc(100%);margin:0;overflow:hidden}.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input,.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input:focus{height:30px;padding:0 10px;text-align:center;font-size:12px;font-family:Ubuntu;border-radius:15px;text-align:left;width:calc(100% - 64px);display:inline-table}.bwg_thumbnail.bwg_container .search_line .CaptionCont span{display:block!important;vertical-align:middle;color:#323a45!important;font-size:12px;text-transform:uppercase;font-family:Ubuntu;cursor:pointer;line-height:29px;max-width:calc(100% - 20px)}.bwg_thumbnail .search_tags{cursor:pointer}.bwg_thumbnail.bwg_container .search_line .SumoSelect .select-all>span,.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper.multiple>.options li.opt span{margin-left:-35px}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper.multiple>.options li.opt{padding-left:25px}.bwg_thumbnail .bwg_search_input::-webkit-input-placeholder{color:#ccc;font-size:12px;text-transform:uppercase;font-family:Ubuntu}.bwg_thumbnail .bwg_search_input::-moz-placeholder{color:#ccc;font-size:12px;text-transform:uppercase;text-align:left;font-family:Ubuntu;line-height:30px}.bwg_thumbnail .bwg_search_input:-ms-input-placeholder{color:#ccc;font-size:12px;text-transform:uppercase;text-align:left;font-family:Ubuntu}.bwg_thumbnail .bwg_search_input:-moz-placeholder{color:#ccc;font-size:12px;text-transform:uppercase;text-align:left;font-family:Ubuntu}.bwg_thumbnail .search-txt::-webkit-input-placeholder{text-align:left;color:#323a45;opacity:.5;font-size:12px!important}.bwg_thumbnail .search-txt::-moz-placeholder{text-align:left;color:#323a45;opacity:.5;font-size:12px!important}.bwg_thumbnail .search-txt::-ms-input-placeholder{text-align:left;color:#323a45;opacity:.5;font-size:12px}.bwg_thumbnail .search-txt:-ms-input-placeholder{text-align:left;color:#323a45;opacity:.5;font-size:12px}.bwg_thumbnail .search-txt:-moz-placeholder{text-align:left;color:#323a45;opacity:.5;font-size:12px}.bwg_thumbnail .bwg_search_input_container .search_placeholder_title{width:calc(100% - 20px);height:29px;text-align:center;display:inline-block;background:#fff;position:absolute;top:.5px;left:10px;white-space:nowrap;border-radius:15px;color:#4e4e4e;text-transform:uppercase;overflow:hidden}.bwg_thumbnail .bwg_search_input_container .search_placeholder_title span{line-height:28px}.bwg_thumbnail.bwg_container .search_line .bwg_search_loupe_container{line-height:29px;display:inline-block;top:0;margin-right:10px;vertical-align:middle;float:none;padding-top:0;font-size:12px;font-family:Ubuntug}.bwg_thumbnail.bwg_container .search_line .bwg_search_loupe_container1{margin-left:0;float:left;top:0;line-height:30px;width:auto;height:30px;margin-left:10px}.bwg_thumbnail.bwg_container .search_line .bwg_search_reset_container{right:0;top:0;line-height:30px;width:11px;height:30px;margin-right:10px}.bwg_thumbnail.bwg_container .search_line .bwg_search_container_1{float:right;width:30%;min-width:120px}.bwg_thumbnail.bwg_container .search_line .bwg_search_container_1 .bwg_search_container_2{width:100%!important;float:right}.bwg_thumbnail.bwg_container .search_line .SumoSelect .select-all{padding:0 0 3px 35px!important;height:13px;line-height:13px;margin-bottom:15px!important}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper>.options li.opt{margin-bottom:15px;padding:0;list-style:none;color:#323a45;font-size:12px;text-transform:uppercase;font-family:Ubuntu;line-height:12px}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper.multiple>.MultiControls>p.btnCancel,.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper.multiple>.MultiControls>p.btnOk{font-family:Ubuntu;font-size:12px;line-height:12px}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper.multiple>.MultiControls>p:hover{background:0 0}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper>.options li.opt label{color:#323a45;font-size:12px;text-transform:uppercase;font-family:Ubuntu;font-weight:400;margin-bottom:0}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont{height:inherit;border:transparent;background:inherit;width:100%;cursor:pointer;max-height:calc(100% - 2px)}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont>label{margin:0;line-height:100%;cursor:pointer;width:20px}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont>label>i{line-height:100%;height:100%}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont>label>i.closed:before,.bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont>label>i.opened:before{color:#323a45;font-size:10px;line-height:30px}.bwg_thumbnail.bwg_container .search_line .bwg_reset{position:absolute}.bwg_thumbnail.bwg_container .search_line .no-match{font-family:Ubuntu;font-size:12px;color:#323a45;padding:5px 25px!important;text-align:center}.bwg_thumbnail.bwg_container .search_line .search-txt{border:transparent;background:0 0;padding:4px 0!important;height:100%}.bwg_thumbnail.bwg_container .search_line .search-txt:focus{box-shadow:none}.bwg_thumbnail.bwg_container .search_line .bwg_order.SumoUnder{display:none}.bwg_slideshow_image_container{position:absolute}.bwg_slideshow_image_container>div>div{display:table;margin:0 auto}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slide_container_] img[id^=bwg_slideshow_image_]{display:inline-block}.bwg_thumbnail #bwg_tag_container p{text-align:left}.bwg_thumbnail .bwg_search_container_2{display:inline-block;position:relative;border-radius:4px;background-color:#fff;max-width:100%;box-shadow:none;border:.5px solid rgba(0,0,0,.15);border-radius:15px}.bwg_thumbnail .bwg_order_cont{background-color:rgba(0,0,0,0);display:block;text-align:right;width:100%;margin:0 5px 20px 5px}.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input_container{display:block;text-align:center}.bwg_thumbnail .SumoSelect>.optWrapper>.options li.opt:hover{background-color:transparent}.bwg-zoom-effect .bwg-zoom-effect-overlay{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;filter:Alpha(opacity=0);opacity:0;-webkit-transition:all .45s ease-in-out;transition:all .45s ease-in-out}.bwg-zoom-effect:hover .bwg-zoom-effect-overlay{filter:Alpha(opacity=1);opacity:1}.bwg-zoom-effect img{-webkit-transition:all .3s;transition:all .3s}.bwg-zoom-effect .bwg-title1{-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.bwg_container div[id^=bwg_container2_] img{height:initial}.bwg-masonry-vertical{flex-direction:column}.bwg-masonry-horizontal{flex-direction:row}.bwg-masonry-horizontal-parent{overflow-x:scroll;overflow-y:hidden}.bwg-masonry-horizontal-container{width:fit-content}.bwg-item.bwg-empty-item{border:0!important;padding:0!important}.bwg-background{background-color:rgba(0,0,0,0);position:relative;width:100%}.bwg-background .wd_error{color:#323a45;font-weight:700}div[id^=bwg_container] .bwg-carousel{margin:0 auto}.bwg_carousel_preload{background-image:url(../images/ajax_loader.png);background-size:50px!important;background-repeat:no-repeat;background-color:#fff;background-position:center}.bwg_container.bwg_carousel *{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.bwg_container.bwg_carousel [id^=bwg_container2_] *{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_]{position:relative;z-index:15}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_image_container_]{display:inline-block;position:absolute;text-align:center;vertical-align:middle}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_container_]{display:table-cell;margin:0 auto;position:relative;vertical-align:middle}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_container_] div{display:table;margin:0 auto}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_spun_]{display:table-cell;overflow:hidden;position:relative}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_image_]{padding:0!important;display:inline-block;float:none!important;margin:4px!important;position:relative;z-index:15}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_text_],.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_text_]:hover{text-decoration:none;margin:4px;display:block;position:relative;z-index:17}.bwg_container.bwg_carousel [id^=bwg_container2_] .bwg_carousel-cont-child{max-width:100%;position:relative;overflow:hidden;height:100%;width:100%}.bwg_container.bwg_carousel [id^=bwg_container2_] .bwg-carousel-image{border:0;position:absolute;display:block;max-width:none;padding:0!important;margin:0!important;float:none!important;vertical-align:middle;height:100%;width:100%;background-position:center center;background-repeat:no-repeat;background-size:cover;vertical-align:middle}.bwg_container.bwg_carousel [id^=bwg_container2_] .bwg-carousel{position:relative;max-width:100%;width:100%}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel-feature]{position:absolute;display:block;overflow:hidden;cursor:pointer}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel-feature] [class^=bwg_carousel-caption] [class^=bwg_carousel_title_text_]{text-decoration:none;position:absolute;z-index:15;display:inline-block;width:75%;top:0;text-align:center;word-wrap:break-word;word-break:break-word}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel-left],.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel-right]{bottom:38%;cursor:pointer;display:inline;height:30%;outline:medium none;position:absolute;width:0%;z-index:13;visibility:visible}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel-right]{right:0;left:auto;z-index:999}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel-left]{left:20px;z-index:999}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_video_hide]{width:100%;height:100%;position:absolute;z-index:22}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_left-ico_] span,.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_right-ico_] span{display:table-cell;text-align:center;vertical-align:middle;z-index:13}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_left-ico_],.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_right-ico_]{z-index:13;-moz-box-sizing:content-box;box-sizing:content-box;cursor:pointer;display:inline-table;line-height:0;margin-top:-15px;position:absolute;top:55%}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_left-ico_]:hover,.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_right-ico_]:hover{cursor:pointer}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel_play_pause_]{bottom:0;cursor:pointer;display:inline-table;outline:medium none;position:absolute;height:inherit;width:30%;left:35%;z-index:13}.bwg_container.bwg_carousel .bwg_carousel_play_pause:hover .bwg_carousel_play_pause-ico{display:inline-block!important}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel_play_pause_]:hover span{position:relative;z-index:13}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel_play_pause_] span{display:table-cell;text-align:center;vertical-align:middle}.bwg_container.bwg_carousel [id^=bwg_container2_] .bwg_carousel_play_pause-ico{display:none!important;cursor:pointer;position:relative;z-index:13}.bwg_container.bwg_carousel [id^=bwg_container2_] .bwg_carousel_play_pause-ico:hover{display:inline-block;position:relative;z-index:13}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_embed_]{padding:0!important;float:none!important;width:100%;height:100%;vertical-align:middle;position:relative;display:table;background-color:#000;text-align:center}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_embed_video_]{padding:0!important;margin:0!important;float:none!important;vertical-align:middle;position:relative;display:table-cell;background-color:#000;text-align:center}.bwg_thumbnail.bwg_container{padding:0 1px}.bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive{display:inline-block}body .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .bwg_order_cont,body .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .bwg_search_container_1,body .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .search_tags_container{width:100%;margin:0 0 10px 0;text-align:center;max-width:100%}.search_line .SumoSelect>.optWrapper.multiple.isFloating{padding-bottom:26px}.bwg_container.bwg_blog_style .fluid-width-video-wrapper,.bwg_container.bwg_carousel .fluid-width-video-wrapper,.bwg_container.bwg_image_browser .fluid-width-video-wrapper{width:100%;position:unset!important;padding:0!important}.bwg_inst_play_btn_cont{width:100%;height:100%;position:absolute;z-index:1;cursor:pointer;top:0}.bwg_inst_play{position:absolute;width:50px;height:50px;background-position:center center;background-repeat:no-repeat;background-size:cover;transition:background-image .2s ease-out;-ms-transition:background-image .2s ease-out;-moz-transition:background-image .2s ease-out;-webkit-transition:background-image .2s ease-out;top:0;left:0;right:0;bottom:0;margin:auto}.bwg_inst_play:hover{background-position:center center;background-repeat:no-repeat;background-size:cover}.spider_popup_wrap *{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.spider_popup_wrap{display:inline-block;left:50%;outline:medium none;position:fixed;text-align:center;top:50%;z-index:100000}.bwg_popup_image{vertical-align:middle;display:inline-block}.bwg_popup_embed{width:100%;height:100%;vertical-align:middle;text-align:center;display:table}.bwg_btn_container{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}.bwg_toggle_btn{margin:0;padding:0}.bwg_ctrl_btn_container{position:absolute;width:100%;z-index:10150}.bwg_toggle_container{cursor:pointer;left:50%;line-height:0;position:absolute;text-align:center;z-index:10150}#spider_popup_left-ico span,#spider_popup_right-ico span,.spider_popup_close span{display:table-cell;text-align:center;vertical-align:middle}.bwg_image_wrap{height:inherit;display:table;position:absolute;text-align:center;width:inherit}.bwg_image_wrap *{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.bwg_comment_wrap,.bwg_ecommerce_wrap{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0;z-index:-1}.bwg_comment_container,.bwg_ecommerce_container{-moz-box-sizing:border-box;height:100%;overflow:hidden;position:absolute;top:0;z-index:10103}#bwg_ecommerce{padding:10px}.bwg_ecommerce_body{background:0 0!important;border:none!important}.pge_tabs{list-style-type:none;margin:0;padding:0;background:0 0!important}.pge_tabs li a,.pge_tabs li a:hover,.pge_tabs li.pge_active a{text-decoration:none;display:block;width:100%;outline:0!important;padding:8px 5px!important;font-weight:700;font-size:13px}.pge_add_to_cart a{padding:5px 10px;text-decoration:none!important;display:block}.pge_add_to_cart{margin:5px 0 15px}.pge_add_to_cart_title{font-size:17px;padding:5px}.pge_add_to_cart div:first-child{float:left}.pge_add_to_cart div:last-child{float:right;margin-top:4px}.pge_add_to_cart:after,.pge_tabs:after{clear:both;content:"";display:table}#downloads table tr td,#downloads table tr th{padding:6px 10px!important;text-transform:none!important}.bwg_comments input[type=submit],.bwg_ecommerce_panel input[type=button]{cursor:pointer;font-size:15px;width:100%;margin-bottom:5px}.bwg_comments,.bwg_ecommerce_panel{bottom:0;height:100%;left:0;overflow-x:hidden;overflow-y:auto;position:absolute;top:0;width:100%;z-index:10101}.bwg_comments{height:100%}.bwg_comment_body_p,.bwg_comments p{margin:5px!important;text-align:left;word-wrap:break-word;word-break:break-all}.bwg_ecommerce_panel p{padding:5px!important;text-align:left;word-wrap:break-word;word-break:break-all;margin:0!important}.bwg_comments .bwg-submit-disabled{opacity:.5}.bwg_comments textarea{height:120px;resize:vertical}.bwg_comment_delete_btn{color:#7a7a7a;cursor:pointer;float:right;font-size:14px;margin:2px}.bwg_comments_close,.bwg_ecommerce_close{cursor:pointer;line-height:0;position:relative;font-size:13px;margin:5px;z-index:10150}.bwg_ecommerce_panel a:hover{text-decoration:underline}.bwg_comment_textarea::-webkit-scrollbar{width:4px}.bwg_comment_textarea::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,.55);border-radius:2px}.bwg_comment_textarea::-webkit-scrollbar-thumb:hover{background-color:#d9d9d9}.bwg_ctrl_btn_container a,.bwg_ctrl_btn_container a:hover{text-decoration:none}.bwg_facebook:hover{color:#3b5998}.bwg_twitter:hover{color:#4099fb}.bwg_pinterest:hover{color:#cb2027}.bwg_tumblr:hover{color:#2f5070}.bwg_image_container{display:table;position:absolute;text-align:center;vertical-align:middle;width:100%}.bwg_filmstrip_container{position:absolute;z-index:10150}.bwg_filmstrip{overflow:hidden;position:absolute;z-index:10106}.bwg_filmstrip_thumbnails{margin:0 auto;overflow:hidden;position:relative}.bwg_filmstrip_thumbnail{position:relative;background:0 0;float:left;cursor:pointer;overflow:hidden}.bwg_filmstrip_thumbnail .bwg_filmstrip_thumbnail_img_wrap{overflow:hidden}.bwg_thumb_active{opacity:1;filter:Alpha(opacity=100)}.bwg_filmstrip_thumbnail_img{display:block;opacity:1;filter:Alpha(opacity=100)}.bwg_filmstrip_left{cursor:pointer;vertical-align:middle;z-index:10106}.bwg_filmstrip_right{cursor:pointer;vertical-align:middle;z-index:10106}.bwg_none_selectable{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bwg_watermark_container{display:table-cell;margin:0 auto;position:relative;vertical-align:middle}.bwg_watermark_container>div{display:table;margin:0 auto}.bwg_watermark_spun{display:table-cell;overflow:hidden;position:relative}.bwg_watermark_image{margin:4px;position:relative;z-index:10141}.bwg_watermark_text,.bwg_watermark_text:hover{text-decoration:none;margin:4px;position:relative;z-index:10141}.bwg_slide_container{display:table-cell;position:absolute;vertical-align:middle;width:100%;height:100%}.bwg_slide_bg{margin:0 auto;width:inherit;height:inherit}.bwg_slider{height:inherit;width:inherit}.bwg_popup_image_spun{height:inherit;display:table-cell;filter:Alpha(opacity=100);opacity:1;position:absolute;vertical-align:middle;width:inherit;z-index:2}.bwg_popup_image_second_spun{width:inherit;height:inherit;display:table-cell;filter:Alpha(opacity=0);opacity:0;position:absolute;vertical-align:middle;z-index:1}.bwg_grid{display:none;height:100%;overflow:hidden;position:absolute;width:100%}.bwg_gridlet{opacity:1;filter:Alpha(opacity=100);position:absolute}.bwg_image_info::-webkit-scrollbar{width:4px}.bwg_image_info::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,.55);border-radius:2px}.bwg_image_info::-webkit-scrollbar-thumb:hover{background-color:#d9d9d9}#bwg_rate_form .bwg_hint{margin:0 5px;display:none}.bwg_star{display:inline-block;width:unset!important}.bwg_image_count_container{left:0;line-height:1;position:absolute;vertical-align:middle}#bwg_comment_form label{display:block;font-weight:700;margin-top:17px;text-transform:uppercase}#bwg_comment_form .bwg-privacy-policy-box label{text-transform:unset;word-break:break-word}.bwg_popup_image_spun .bwg_popup_image_spun1{width:inherit;height:inherit}.bwg_popup_image_spun1 .bwg_popup_image_spun2{vertical-align:middle;text-align:center;height:100%}#embed_conteiner{table-layout:fixed;height:100%}#opacity_div{background-color:rgba(255,255,255,.2);position:absolute;z-index:10150}#loading_div{text-align:center;position:relative;vertical-align:middle;z-index:10170;float:none;width:30px;height:30px;background-size:30px 30px;background-repeat:no-repeat;background-position:50% 50%}#ecommerce_ajax_loading{position:absolute}#ecommerce_opacity_div{display:none;background-color:rgba(255,255,255,.2);position:absolute;z-index:10150}#ecommerce_loading_div{display:none;text-align:center;position:relative;vertical-align:middle;z-index:10170;float:none;width:30px;height:30px;background-size:30px 30px;background-repeat:no-repeat;background-position:50% 50%}.bwg_ecommerce_panel.bwg_popup_sidebar_panel.bwg_popup_sidebar{text-align:left}#ajax_loading{position:absolute}.bwg_image_info:after{content:"";height:60px;display:block}@media (max-width:480px){.bwg_image_count_container{display:none}.bwg_image_title,.bwg_image_title *{font-size:12px}.bwg_image_description,.bwg_image_description *{font-size:10px}}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_image_wrap_] *{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_image_wrap_]{border-collapse:collapse;display:table;position:relative;text-align:center;margin:auto}div[id^=bwg_container1_] div[id^=bwg_container2_] img[class^=bwg_slideshow_image_]{display:inline-block;padding:0!important;margin:0!important;float:none!important;vertical-align:middle}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_embed_]{padding:0!important;margin:0!important;float:none!important;vertical-align:middle;display:inline-block;text-align:center}div[id^=bwg_container1_] div[id^=bwg_container2_] img[class^=bwg_slideshow_watermark_]{position:relative;z-index:15}div[id^=bwg_container1_] div[id^=bwg_container2_] span.bwg_slideshow_play_pause{bottom:0;cursor:pointer;display:table;height:inherit;outline:medium none;position:absolute;width:30%;left:35%;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] span.bwg_slideshow_play_pause:hover span[id^=bwg_slideshow_play_pause-ico_]{display:inline-block!important}div[id^=bwg_container1_] div[id^=bwg_container2_] span.bwg_slideshow_play_pause:hover span{position:relative;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] span.bwg_slideshow_play_pause span{display:table-cell;text-align:center;vertical-align:middle;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=bwg_slideshow_play_pause-ico_]{display:none!important;cursor:pointer;position:relative;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=bwg_slideshow_play_pause-ico_]:hover{display:inline-block;position:relative;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_left_],div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_right_]{bottom:35%;cursor:pointer;display:inline;height:30%;outline:medium none;position:absolute;width:35%;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_left_]{left:0}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_right_]{right:0}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_left_]:hover,div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_right_]:hover{visibility:visible}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_left_]:hover,div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_right_]:hover{visibility:visible}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_right_]:hover span{left:auto!important;right:20px!important}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_left_]:hover span{left:20px!important}div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_left-ico_] span,div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_right-ico_] span{display:table-cell;text-align:center;vertical-align:middle;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_left-ico_],div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_right-ico_]{z-index:13;-moz-box-sizing:content-box;box-sizing:content-box;cursor:pointer;display:table;line-height:0;margin-top:-15px;position:absolute;top:50%}div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_left-ico_]:hover,div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_right-ico_]:hover{cursor:pointer}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_image_container_]{display:table;position:absolute;text-align:center;vertical-align:middle}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_filmstrip_container_]{position:absolute}div[id^=bwg_container1_] div[id^=bwg_container2_] .bwg_slideshow_filmstrip{overflow:hidden;position:absolute}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_filmstrip_thumbnails_]{margin:0 auto;overflow:hidden;position:relative}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_filmstrip_thumbnail_]{position:relative;background:0 0;cursor:pointer;float:left;overflow:hidden}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_thumb_active_]{opacity:1;filter:Alpha(opacity=100)}div[id^=bwg_container1_] div[id^=bwg_container2_] img[class^=bwg_slideshow_filmstrip_thumbnail_img_]{display:block;opacity:1;filter:Alpha(opacity=100);padding:0!important}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_filmstrip_left_]{cursor:pointer;vertical-align:middle}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_filmstrip_right_]{cursor:pointer;vertical-align:middle}div[id^=bwg_container1_] div[id^=bwg_container2_] a[class^=bwg_none_selectable_]{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_watermark_container_]{display:table-cell;margin:0 auto;position:relative;vertical-align:middle}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_watermark_spun_]{display:table-cell;overflow:hidden;position:relative}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_title_spun_]{display:table-cell;overflow:hidden;position:relative}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_description_spun_]{display:table-cell;overflow:hidden;position:relative}div[id^=bwg_container1_] div[id^=bwg_container2_] img[class^=bwg_slideshow_watermark_image_]{padding:0!important;float:none!important;margin:4px!important;position:relative;z-index:15}div[id^=bwg_container1_] div[id^=bwg_container2_] a[class^=bwg_slideshow_watermark_text_],div[id^=bwg_container1_] div[id^=bwg_container2_] a[class^=bwg_slideshow_watermark_text_]:hover{text-decoration:none;margin:4px;position:relative;z-index:15}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_title_text_]{text-decoration:none;position:relative;z-index:11;display:inline-block;word-wrap:break-word;word-break:break-word}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_description_text_]{text-decoration:none;position:relative;z-index:15;margin:5px;display:inline-block;word-wrap:break-word;word-break:break-word}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slide_container_]{display:table-cell;margin:0 auto;position:absolute;vertical-align:middle;width:100%;height:100%}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slide_bg_]{margin:0 auto;width:inherit;height:inherit}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slider_]{height:inherit;width:inherit}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_image_spun_]{width:inherit;height:inherit;display:table-cell;filter:Alpha(opacity=100);opacity:1;position:absolute;vertical-align:middle;z-index:2}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_image_second_spun_]{width:inherit;height:inherit;display:table-cell;filter:Alpha(opacity=0);opacity:0;position:absolute;vertical-align:middle;z-index:1}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_grid_]{display:none;height:100%;overflow:hidden;position:absolute;width:100%}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_gridlet_]{opacity:1;filter:Alpha(opacity=100);position:absolute}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_dots_]{display:inline-block;position:relative;cursor:pointer;overflow:hidden;z-index:17}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_dots_container_]{display:block;overflow:hidden;position:absolute;z-index:17}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_dots_thumbnails_]{left:0;font-size:0;margin:0 auto;overflow:hidden;position:relative}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_dots_active_]{opacity:1;filter:Alpha(opacity=100)}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_image_spun1_]{display:table;width:inherit;height:inherit}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_image_spun2_]{display:table-cell;vertical-align:middle;text-align:center}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_mosaic_play_icon_spun_]{display:flex;height:100%;opacity:1;filter:Alpha(opacity=100);position:absolute;top:0;width:100%;z-index:100;justify-content:center;align-content:center;flex-direction:column;text-align:center;left:0}.lazy_loader{background-image:url(../images/ajax_loader.png);background-size:30px 30px;background-repeat:no-repeat;background-position:50% 50%}
|
filemanager/UploadHandler.php
CHANGED
@@ -382,7 +382,7 @@ class bwg_UploadHandler {
|
|
382 |
$index = isset($matches[1]) ? intval($matches[1]) + 1 : 1;
|
383 |
$ext = isset($matches[2]) ? $matches[2] : '';
|
384 |
|
385 |
-
return '
|
386 |
}
|
387 |
|
388 |
protected function upcount_name( $name ) {
|
@@ -619,6 +619,7 @@ class bwg_UploadHandler {
|
|
619 |
$file->date_modified = date('Y-m-d H:i:s', filemtime($file_path));
|
620 |
$image_info = @getimagesize(htmlspecialchars_decode($file_path, ENT_COMPAT | ENT_QUOTES));
|
621 |
$file->resolution = $image_info[0] . ' x ' . $image_info[1] . ' px';
|
|
|
622 |
if ( BWG()->options->read_metadata ) {
|
623 |
$meta = WDWLibrary::read_image_metadata($upload_dir . '.original/' . $file->name);
|
624 |
$file->credit = $meta['credit'];
|
@@ -979,6 +980,7 @@ class bwg_UploadHandler {
|
|
979 |
if ( function_exists('iconv_mime_decode') ) {
|
980 |
$iconv_mime_decode_function = 'iconv_mime_decode';
|
981 |
}
|
|
|
982 |
$data = array();
|
983 |
$data['is_dir'] = 0;
|
984 |
$data['date_modified'] = date('Y-m-d H:i:s');
|
@@ -990,6 +992,12 @@ class bwg_UploadHandler {
|
|
990 |
$data['thumb'] = isset($info->name) ? 'thumb/' . $info->name : '';
|
991 |
$data['size'] = isset($info->size) ? $info->size : '';
|
992 |
$data['resolution'] = isset($info->resolution) ? $info->resolution : '';
|
|
|
|
|
|
|
|
|
|
|
|
|
993 |
$data['credit'] = isset($info->credit) ? $iconv_mime_decode_function($info->credit) : '';
|
994 |
$data['aperture'] = isset($info->aperture) ? $iconv_mime_decode_function($info->aperture) : '';
|
995 |
$data['camera'] = isset($info->camera) ? $iconv_mime_decode_function($info->camera) : '';
|
382 |
$index = isset($matches[1]) ? intval($matches[1]) + 1 : 1;
|
383 |
$ext = isset($matches[2]) ? $matches[2] : '';
|
384 |
|
385 |
+
return '_(' . $index . ')' . $ext;
|
386 |
}
|
387 |
|
388 |
protected function upcount_name( $name ) {
|
619 |
$file->date_modified = date('Y-m-d H:i:s', filemtime($file_path));
|
620 |
$image_info = @getimagesize(htmlspecialchars_decode($file_path, ENT_COMPAT | ENT_QUOTES));
|
621 |
$file->resolution = $image_info[0] . ' x ' . $image_info[1] . ' px';
|
622 |
+
$file->resolution_thumb = WDWLibrary::get_thumb_size($file->thumb_url);
|
623 |
if ( BWG()->options->read_metadata ) {
|
624 |
$meta = WDWLibrary::read_image_metadata($upload_dir . '.original/' . $file->name);
|
625 |
$file->credit = $meta['credit'];
|
980 |
if ( function_exists('iconv_mime_decode') ) {
|
981 |
$iconv_mime_decode_function = 'iconv_mime_decode';
|
982 |
}
|
983 |
+
|
984 |
$data = array();
|
985 |
$data['is_dir'] = 0;
|
986 |
$data['date_modified'] = date('Y-m-d H:i:s');
|
992 |
$data['thumb'] = isset($info->name) ? 'thumb/' . $info->name : '';
|
993 |
$data['size'] = isset($info->size) ? $info->size : '';
|
994 |
$data['resolution'] = isset($info->resolution) ? $info->resolution : '';
|
995 |
+
$resolution_thumb = WDWLibrary::get_thumb_size("/".$data['thumb']);
|
996 |
+
if($resolution_thumb == '') {
|
997 |
+
$temp = explode(" ",$data['resolution']);
|
998 |
+
$resolution_thumb = $temp[0]."x".$temp[2];
|
999 |
+
}
|
1000 |
+
$data['resolution_thumb'] = $resolution_thumb;
|
1001 |
$data['credit'] = isset($info->credit) ? $iconv_mime_decode_function($info->credit) : '';
|
1002 |
$data['aperture'] = isset($info->aperture) ? $iconv_mime_decode_function($info->aperture) : '';
|
1003 |
$data['camera'] = isset($info->camera) ? $iconv_mime_decode_function($info->camera) : '';
|
filemanager/js/default.js
CHANGED
@@ -198,6 +198,7 @@ function submitFiles() {
|
|
198 |
fileData['filetype'] = wdb_all_files_filtered[i]["type"];
|
199 |
fileData['date_modified'] = wdb_all_files_filtered[i]["date_modified"];
|
200 |
fileData['resolution'] = wdb_all_files_filtered[i]["resolution"];
|
|
|
201 |
fileData['aperture'] = wdb_all_files_filtered[i]["aperture"];
|
202 |
fileData['credit'] = wdb_all_files_filtered[i]["credit"];
|
203 |
fileData['camera'] =wdb_all_files_filtered[i]["camera"];
|
@@ -227,6 +228,7 @@ function submitFiles() {
|
|
227 |
fileData['filetype'] = jQuery(file_object).attr("filetype");
|
228 |
fileData['date_modified'] = jQuery(file_object).attr("date_modified");
|
229 |
fileData['resolution'] = jQuery(file_object).attr("fileresolution");
|
|
|
230 |
fileData['aperture'] = jQuery(file_object).attr("fileAperture");
|
231 |
fileData['credit'] = jQuery(file_object).attr("fileCredit");
|
232 |
fileData['camera'] = jQuery(file_object).attr("fileCamera");
|
198 |
fileData['filetype'] = wdb_all_files_filtered[i]["type"];
|
199 |
fileData['date_modified'] = wdb_all_files_filtered[i]["date_modified"];
|
200 |
fileData['resolution'] = wdb_all_files_filtered[i]["resolution"];
|
201 |
+
fileData['resolution_thumb'] = wdb_all_files_filtered[i]["resolution_thumb"];
|
202 |
fileData['aperture'] = wdb_all_files_filtered[i]["aperture"];
|
203 |
fileData['credit'] = wdb_all_files_filtered[i]["credit"];
|
204 |
fileData['camera'] =wdb_all_files_filtered[i]["camera"];
|
228 |
fileData['filetype'] = jQuery(file_object).attr("filetype");
|
229 |
fileData['date_modified'] = jQuery(file_object).attr("date_modified");
|
230 |
fileData['resolution'] = jQuery(file_object).attr("fileresolution");
|
231 |
+
fileData['resolution_thumb'] = jQuery(file_object).attr("fileresolution_thumb");
|
232 |
fileData['aperture'] = jQuery(file_object).attr("fileAperture");
|
233 |
fileData['credit'] = jQuery(file_object).attr("fileCredit");
|
234 |
fileData['camera'] = jQuery(file_object).attr("fileCamera");
|
filemanager/model.php
CHANGED
@@ -225,6 +225,7 @@ class FilemanagerModel {
|
|
225 |
$file['size'] = $file_size_kb . ' KB';
|
226 |
$image_info = getimagesize(htmlspecialchars_decode($item, ENT_COMPAT | ENT_QUOTES));
|
227 |
$file['resolution'] = $this->is_img($file['type']) ? $image_info[0] . ' x ' . $image_info[1] . ' px' : '';
|
|
|
228 |
$exif = WDWLibrary::read_image_metadata( $dir . '/.original/' . $name );
|
229 |
$file['alt'] = BWG()->options->read_metadata && $exif['title'] ? $exif['title'] : str_replace("_", " ", $filename);
|
230 |
$file['credit'] = !empty($exif['credit']) ? $exif['credit'] : '';
|
225 |
$file['size'] = $file_size_kb . ' KB';
|
226 |
$image_info = getimagesize(htmlspecialchars_decode($item, ENT_COMPAT | ENT_QUOTES));
|
227 |
$file['resolution'] = $this->is_img($file['type']) ? $image_info[0] . ' x ' . $image_info[1] . ' px' : '';
|
228 |
+
$file['resolution_thumb'] = WDWLibrary::get_thumb_size($file['thumb'] );
|
229 |
$exif = WDWLibrary::read_image_metadata( $dir . '/.original/' . $name );
|
230 |
$file['alt'] = BWG()->options->read_metadata && $exif['title'] ? $exif['title'] : str_replace("_", " ", $filename);
|
231 |
$file['credit'] = !empty($exif['credit']) ? $exif['credit'] : '';
|
filemanager/view.php
CHANGED
@@ -414,6 +414,7 @@ class FilemanagerView {
|
|
414 |
filetype="<?php echo strtoupper( $file['type'] ); ?>"
|
415 |
date_modified="<?php echo $file['date_modified']; ?>"
|
416 |
fileresolution="<?php echo $file['resolution']; ?>"
|
|
|
417 |
fileCredit="<?php echo isset( $file['credit'] ) ? $file['credit'] : ''; ?>"
|
418 |
fileAperture="<?php echo isset( $file['aperture'] ) ? $file['aperture'] : ''; ?>"
|
419 |
fileCamera="<?php echo isset( $file['camera'] ) ? $file['camera'] : ''; ?>"
|
414 |
filetype="<?php echo strtoupper( $file['type'] ); ?>"
|
415 |
date_modified="<?php echo $file['date_modified']; ?>"
|
416 |
fileresolution="<?php echo $file['resolution']; ?>"
|
417 |
+
fileresolution_thumb="<?php echo $file['resolution_thumb']; ?>"
|
418 |
fileCredit="<?php echo isset( $file['credit'] ) ? $file['credit'] : ''; ?>"
|
419 |
fileAperture="<?php echo isset( $file['aperture'] ) ? $file['aperture'] : ''; ?>"
|
420 |
fileCamera="<?php echo isset( $file['camera'] ) ? $file['camera'] : ''; ?>"
|
framework/BWGOptions.php
CHANGED
@@ -11,6 +11,7 @@ class WD_BWG_Options {
|
|
11 |
public $upload_thumb_width = 500;
|
12 |
public $upload_thumb_height = 500;
|
13 |
public $image_quality = 75;
|
|
|
14 |
public $preload_images = 1;
|
15 |
public $preload_images_count = 10;
|
16 |
public $show_hide_custom_post = 0;
|
@@ -280,7 +281,6 @@ class WD_BWG_Options {
|
|
280 |
public $addthis_profile_id = '';
|
281 |
public $popup_enable_facebook = 1;
|
282 |
public $popup_enable_twitter = 1;
|
283 |
-
public $popup_enable_google = 1;
|
284 |
public $popup_enable_pinterest = 0;
|
285 |
public $popup_enable_tumblr = 0;
|
286 |
public $popup_enable_ecommerce = 1;
|
@@ -365,4 +365,8 @@ class WD_BWG_Options {
|
|
365 |
$this->jpeg_quality = $this->image_quality;
|
366 |
$this->png_quality = 9 - round(9 * $this->image_quality / 100);
|
367 |
}
|
|
|
|
|
|
|
|
|
368 |
}
|
11 |
public $upload_thumb_width = 500;
|
12 |
public $upload_thumb_height = 500;
|
13 |
public $image_quality = 75;
|
14 |
+
public $lazyload_images = 0;
|
15 |
public $preload_images = 1;
|
16 |
public $preload_images_count = 10;
|
17 |
public $show_hide_custom_post = 0;
|
281 |
public $addthis_profile_id = '';
|
282 |
public $popup_enable_facebook = 1;
|
283 |
public $popup_enable_twitter = 1;
|
|
|
284 |
public $popup_enable_pinterest = 0;
|
285 |
public $popup_enable_tumblr = 0;
|
286 |
public $popup_enable_ecommerce = 1;
|
365 |
$this->jpeg_quality = $this->image_quality;
|
366 |
$this->png_quality = 9 - round(9 * $this->image_quality / 100);
|
367 |
}
|
368 |
+
|
369 |
+
public function __get($name) {
|
370 |
+
return isset($this->$name) ? $this->$name : '';
|
371 |
+
}
|
372 |
}
|
framework/WDWLibrary.php
CHANGED
@@ -3,6 +3,8 @@
|
|
3 |
class WDWLibrary {
|
4 |
public static $shortcode_ids = array();
|
5 |
|
|
|
|
|
6 |
/**
|
7 |
* Get request value.
|
8 |
*
|
@@ -1517,13 +1519,18 @@ class WDWLibrary {
|
|
1517 |
$height_orig = $get_size[ 'height' ];
|
1518 |
$original_image->set_quality( BWG()->options->image_quality );
|
1519 |
self::recover_image_size( $width_orig, $height_orig, $width, $original_image, $filename );
|
1520 |
-
self::recover_image_size( $width_orig, $height_orig, $thumb_width, $original_image, $thumb_filename
|
|
|
|
|
|
|
|
|
1521 |
}
|
1522 |
else {
|
1523 |
copy( $original_filename, $filename );
|
1524 |
copy( $original_filename, $thumb_filename );
|
1525 |
}
|
1526 |
}
|
|
|
1527 |
}
|
1528 |
if ($page == 'gallery_page') {
|
1529 |
?>
|
@@ -1538,20 +1545,36 @@ class WDWLibrary {
|
|
1538 |
public static function recover_image_size($width_orig, $height_orig, $width, $original_image, $filename) {
|
1539 |
$percent = $width_orig / $width;
|
1540 |
$height = $height_orig / $percent;
|
1541 |
-
|
1542 |
$original_image->resize($width, $height, false);
|
1543 |
$original_image->save($filename);
|
1544 |
}
|
1545 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1546 |
public static function resize_image($source, $destination, $max_width, $max_height) {
|
|
|
1547 |
$image = wp_get_image_editor( $source );
|
1548 |
if ( ! is_wp_error( $image ) ) {
|
|
|
1549 |
$image_size = $image->get_size();
|
1550 |
$img_width = $image_size[ 'width' ];
|
1551 |
$img_height = $image_size[ 'height' ];
|
1552 |
$scale = min( $max_width / $img_width, $max_height / $img_height );
|
1553 |
if ( ($scale >= 1) || (($max_width == NULL) && ($max_height == NULL)) ) {
|
1554 |
if ( $source !== $destination ) {
|
|
|
|
|
|
|
1555 |
return copy( $source, $destination );
|
1556 |
}
|
1557 |
return true;
|
@@ -1559,6 +1582,9 @@ class WDWLibrary {
|
|
1559 |
else {
|
1560 |
$new_width = $img_width * $scale;
|
1561 |
$new_height = $img_height * $scale;
|
|
|
|
|
|
|
1562 |
$image->set_quality( BWG()->options->image_quality );
|
1563 |
$image->resize( $new_width, $new_height, false );
|
1564 |
$saved = $image->save( $destination );
|
@@ -1811,7 +1837,6 @@ class WDWLibrary {
|
|
1811 |
$defaults['addthis_profile_id'] = self::get_option_value('addthis_profile_id', 'addthis_profile_id', 'addthis_profile_id', $from || $use_option_defaults, $params);
|
1812 |
$defaults['popup_enable_facebook'] = self::get_option_value('popup_enable_facebook', 'popup_enable_facebook', 'popup_enable_facebook', $from || $use_option_defaults, $params);
|
1813 |
$defaults['popup_enable_twitter'] = self::get_option_value('popup_enable_twitter', 'popup_enable_twitter', 'popup_enable_twitter', $from || $use_option_defaults, $params);
|
1814 |
-
$defaults['popup_enable_google'] = self::get_option_value('popup_enable_google', 'popup_enable_google', 'popup_enable_google', $from || $use_option_defaults, $params);
|
1815 |
$defaults['popup_enable_pinterest'] = self::get_option_value('popup_enable_pinterest', 'popup_enable_pinterest', 'popup_enable_pinterest', $from || $use_option_defaults, $params);
|
1816 |
$defaults['popup_enable_tumblr'] = self::get_option_value('popup_enable_tumblr', 'popup_enable_tumblr', 'popup_enable_tumblr', $from || $use_option_defaults, $params);
|
1817 |
$defaults['popup_enable_ecommerce'] = self::get_option_value('popup_enable_ecommerce', 'popup_enable_ecommerce', 'popup_enable_ecommerce', $from || $use_option_defaults, $params);
|
@@ -2295,7 +2320,7 @@ class WDWLibrary {
|
|
2295 |
}
|
2296 |
global $wpdb;
|
2297 |
$time = time();
|
2298 |
-
$update = $wpdb->query(
|
2299 |
$items = $wpdb->get_results( 'SELECT `gallery_id`, `thumb_url` FROM `' . $wpdb->prefix . 'bwg_image` WHERE ' . $where );
|
2300 |
if ( !empty($items) ) {
|
2301 |
$thumbs_str = '';
|
@@ -2349,6 +2374,25 @@ class WDWLibrary {
|
|
2349 |
return $url;
|
2350 |
}
|
2351 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2352 |
public static function bwg_session_start() {
|
2353 |
if (session_id() == '' || (function_exists('session_status') && (session_status() == PHP_SESSION_NONE))) {
|
2354 |
@session_start();
|
@@ -2360,74 +2404,114 @@ class WDWLibrary {
|
|
2360 |
*
|
2361 |
* @return array
|
2362 |
*/
|
2363 |
-
public static function image_actions() {
|
2364 |
-
$
|
2365 |
-
|
2366 |
-
'
|
2367 |
-
|
2368 |
-
|
2369 |
-
|
2370 |
-
|
2371 |
-
'
|
2372 |
-
|
2373 |
-
|
2374 |
-
|
2375 |
-
|
2376 |
-
'
|
2377 |
-
|
2378 |
-
|
2379 |
-
|
2380 |
-
|
2381 |
-
'
|
2382 |
-
|
2383 |
-
|
2384 |
-
|
2385 |
-
|
2386 |
-
'
|
2387 |
-
|
2388 |
-
|
2389 |
-
|
2390 |
-
|
2391 |
-
'
|
2392 |
-
|
2393 |
-
|
2394 |
-
|
2395 |
-
|
2396 |
-
'
|
2397 |
-
|
2398 |
-
|
2399 |
-
|
2400 |
-
|
2401 |
-
|
2402 |
-
|
2403 |
-
|
2404 |
-
|
2405 |
-
|
2406 |
-
|
2407 |
-
|
2408 |
-
|
2409 |
-
|
2410 |
-
|
2411 |
-
|
2412 |
-
|
2413 |
-
|
2414 |
-
|
2415 |
-
|
2416 |
-
|
2417 |
-
|
2418 |
-
|
2419 |
-
|
2420 |
-
|
2421 |
-
|
2422 |
-
|
2423 |
-
|
2424 |
-
|
2425 |
-
|
2426 |
-
|
2427 |
-
|
2428 |
-
|
2429 |
-
|
2430 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2431 |
if ( function_exists('BWGEC') ) {
|
2432 |
$image_actions['set_image_pricelist'] = array(
|
2433 |
'title' => __('Add pricelist', BWG()->prefix),
|
@@ -2770,125 +2854,4 @@ class WDWLibrary {
|
|
2770 |
exit;
|
2771 |
}
|
2772 |
}
|
2773 |
-
|
2774 |
-
/**
|
2775 |
-
* Is plugin active.
|
2776 |
-
*
|
2777 |
-
* @param $plugin_name
|
2778 |
-
*
|
2779 |
-
* @return bool
|
2780 |
-
*/
|
2781 |
-
public static function is_plugin_installed($plugin_name) {
|
2782 |
-
if ( is_dir(WP_PLUGIN_DIR . '/' . $plugin_name . '/') ) {
|
2783 |
-
return TRUE;
|
2784 |
-
}
|
2785 |
-
|
2786 |
-
return FALSE;
|
2787 |
-
}
|
2788 |
-
|
2789 |
-
public static function twbb_install_button($v) {
|
2790 |
-
$prefix = BWG()->prefix;
|
2791 |
-
$slug = '10web-manager';
|
2792 |
-
$install_url = esc_url(wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=' . $slug), 'install-plugin_' . $slug));
|
2793 |
-
$activation_url = na_action_link($slug . '/10web-manager.php', 'activate');
|
2794 |
-
$tenweb_url = admin_url('admin.php?page=tenweb_menu');
|
2795 |
-
$dismiss_url = add_query_arg(array( 'action' => 'wd_tenweb_dismiss' ), admin_url('admin-ajax.php'));
|
2796 |
-
$activate = WDWLibrary::is_plugin_installed($slug) && !is_plugin_active('10web-manager/manager.php') ? TRUE : FALSE;
|
2797 |
-
?>
|
2798 |
-
<a class="button<?php echo($v == 2 ? ' button-primary' : ''); ?> tenweb_activaion"
|
2799 |
-
id="<?php echo $activate ? 'activate_now' : 'install_now'; ?>"
|
2800 |
-
data-activation="<?php _e("Activation", $prefix); ?>"
|
2801 |
-
data-tenweb-url="<?php echo $tenweb_url; ?>"
|
2802 |
-
data-install-url="<?php echo $install_url; ?>"
|
2803 |
-
data-activate-url="<?php echo $activation_url; ?>">
|
2804 |
-
<span class="tenweb_activaion_text"><?php echo $activate ? __("Activate", $prefix) : __("Install", $prefix); ?></span>
|
2805 |
-
<span class="spinner" id="loading"></span>
|
2806 |
-
</a>
|
2807 |
-
<span class="hide <?php echo $activate ? 'error_activate' : 'error_install tenweb_active'; ?> ">
|
2808 |
-
<?php echo $activate ? __("Activation failed, please try again.", $prefix) : __("Installation failed, please try again.", $prefix); ?>
|
2809 |
-
</span>
|
2810 |
-
<script>
|
2811 |
-
var url = jQuery(".tenweb_activaion").attr("data-install-url");
|
2812 |
-
var activate_url = jQuery(".tenweb_activaion").attr("data-activate-url");
|
2813 |
-
|
2814 |
-
function install_tenweb_plugin() {
|
2815 |
-
jQuery("#loading").addClass('is-active');
|
2816 |
-
jQuery(this).prop('disable', true);
|
2817 |
-
jQuery.ajax({
|
2818 |
-
method: "POST",
|
2819 |
-
url: url,
|
2820 |
-
}).done(function () {
|
2821 |
-
/* Check if plugin installed.*/
|
2822 |
-
jQuery.ajax({
|
2823 |
-
type: 'POST',
|
2824 |
-
dataType: 'json',
|
2825 |
-
url: jQuery("#verifyUrl").attr('data-url'),
|
2826 |
-
error: function () {
|
2827 |
-
jQuery("#loading").removeClass('is-active');
|
2828 |
-
jQuery(".error_install").show();
|
2829 |
-
},
|
2830 |
-
success: function (response) {
|
2831 |
-
if (response.status_install == 1) {
|
2832 |
-
jQuery('#install_now .tenweb_activaion_text').text(jQuery("#install_now").data("activation"));
|
2833 |
-
activate_tenweb_plugin();
|
2834 |
-
}
|
2835 |
-
else {
|
2836 |
-
jQuery("#loading").removeClass('is-active');
|
2837 |
-
jQuery(".error_install").removeClass('hide');
|
2838 |
-
}
|
2839 |
-
}
|
2840 |
-
});
|
2841 |
-
}).fail(function () {
|
2842 |
-
jQuery("#loading").removeClass('is-active');
|
2843 |
-
jQuery(".error_install").removeClass('hide');
|
2844 |
-
});
|
2845 |
-
}
|
2846 |
-
function activate_tenweb_plugin() {
|
2847 |
-
jQuery("#activate_now #loading").addClass('is-active');
|
2848 |
-
jQuery.ajax({
|
2849 |
-
method: "POST",
|
2850 |
-
url: activate_url,
|
2851 |
-
}).done(function () {
|
2852 |
-
jQuery("#loading").removeClass('is-active');
|
2853 |
-
var data_tenweb_url = '';
|
2854 |
-
/* Check if plugin installed.*/
|
2855 |
-
jQuery.ajax({
|
2856 |
-
type: 'POST',
|
2857 |
-
dataType: 'json',
|
2858 |
-
url: jQuery("#verifyUrl").attr('data-url'),
|
2859 |
-
error: function () {
|
2860 |
-
jQuery("#loading").removeClass('is-active');
|
2861 |
-
jQuery(".error_activate").removeClass('hide');
|
2862 |
-
},
|
2863 |
-
success: function (response) {
|
2864 |
-
if (response.status_active == 0) {
|
2865 |
-
//jQuery('#install_now').addClass('hide');
|
2866 |
-
data_tenweb_url = jQuery('.tenweb_activaion').attr('data-tenweb-url');
|
2867 |
-
jQuery.post('<?php echo $dismiss_url; ?>');
|
2868 |
-
}
|
2869 |
-
else {
|
2870 |
-
jQuery("#loading").removeClass('is-active');
|
2871 |
-
jQuery(".error_activate").removeClass('hide');
|
2872 |
-
}
|
2873 |
-
},
|
2874 |
-
complete: function () {
|
2875 |
-
if (data_tenweb_url != '') {
|
2876 |
-
window.location.href = data_tenweb_url;
|
2877 |
-
}
|
2878 |
-
}
|
2879 |
-
});
|
2880 |
-
}).fail(function () {
|
2881 |
-
jQuery("#loading").removeClass('is-active');
|
2882 |
-
});
|
2883 |
-
}
|
2884 |
-
jQuery("#install_now").on("click", function () {
|
2885 |
-
install_tenweb_plugin();
|
2886 |
-
});
|
2887 |
-
jQuery("#activate_now").on("click", function () {
|
2888 |
-
activate_tenweb_plugin();
|
2889 |
-
});
|
2890 |
-
</script>
|
2891 |
-
|
2892 |
-
<?php
|
2893 |
-
}
|
2894 |
-
}
|
3 |
class WDWLibrary {
|
4 |
public static $shortcode_ids = array();
|
5 |
|
6 |
+
public static $thumb_dimansions;
|
7 |
+
|
8 |
/**
|
9 |
* Get request value.
|
10 |
*
|
1519 |
$height_orig = $get_size[ 'height' ];
|
1520 |
$original_image->set_quality( BWG()->options->image_quality );
|
1521 |
self::recover_image_size( $width_orig, $height_orig, $width, $original_image, $filename );
|
1522 |
+
self::recover_image_size( $width_orig, $height_orig, $thumb_width, $original_image, $thumb_filename);
|
1523 |
+
|
1524 |
+
$resolution_thumb = self::get_thumb_size( $thumb_filename );
|
1525 |
+
$where = "id = " . $image->id;
|
1526 |
+
self::update_thumb_dimansions( $resolution_thumb, $where );
|
1527 |
}
|
1528 |
else {
|
1529 |
copy( $original_filename, $filename );
|
1530 |
copy( $original_filename, $thumb_filename );
|
1531 |
}
|
1532 |
}
|
1533 |
+
|
1534 |
}
|
1535 |
if ($page == 'gallery_page') {
|
1536 |
?>
|
1545 |
public static function recover_image_size($width_orig, $height_orig, $width, $original_image, $filename) {
|
1546 |
$percent = $width_orig / $width;
|
1547 |
$height = $height_orig / $percent;
|
|
|
1548 |
$original_image->resize($width, $height, false);
|
1549 |
$original_image->save($filename);
|
1550 |
}
|
1551 |
|
1552 |
+
public static function detect_thumb( $detination ) {
|
1553 |
+
if (strpos($detination, '/thumb/') !== false) {
|
1554 |
+
return true;
|
1555 |
+
}
|
1556 |
+
return false;
|
1557 |
+
}
|
1558 |
+
|
1559 |
+
public static function update_thumb_dimansions( $resolution_thumb, $where ) {
|
1560 |
+
global $wpdb;
|
1561 |
+
$update = $wpdb->query($wpdb->prepare('UPDATE `' . $wpdb->prefix . 'bwg_image` SET `resolution_thumb` = "%s" WHERE ' . $where, $resolution_thumb));
|
1562 |
+
}
|
1563 |
+
|
1564 |
public static function resize_image($source, $destination, $max_width, $max_height) {
|
1565 |
+
|
1566 |
$image = wp_get_image_editor( $source );
|
1567 |
if ( ! is_wp_error( $image ) ) {
|
1568 |
+
|
1569 |
$image_size = $image->get_size();
|
1570 |
$img_width = $image_size[ 'width' ];
|
1571 |
$img_height = $image_size[ 'height' ];
|
1572 |
$scale = min( $max_width / $img_width, $max_height / $img_height );
|
1573 |
if ( ($scale >= 1) || (($max_width == NULL) && ($max_height == NULL)) ) {
|
1574 |
if ( $source !== $destination ) {
|
1575 |
+
if(self::detect_thumb($destination)) {
|
1576 |
+
self::$thumb_dimansions = intval($img_width)."x".intval($img_height);
|
1577 |
+
}
|
1578 |
return copy( $source, $destination );
|
1579 |
}
|
1580 |
return true;
|
1582 |
else {
|
1583 |
$new_width = $img_width * $scale;
|
1584 |
$new_height = $img_height * $scale;
|
1585 |
+
if(self::detect_thumb($destination)) {
|
1586 |
+
self::$thumb_dimansions = intval($new_width)."x".intval($new_height);
|
1587 |
+
}
|
1588 |
$image->set_quality( BWG()->options->image_quality );
|
1589 |
$image->resize( $new_width, $new_height, false );
|
1590 |
$saved = $image->save( $destination );
|
1837 |
$defaults['addthis_profile_id'] = self::get_option_value('addthis_profile_id', 'addthis_profile_id', 'addthis_profile_id', $from || $use_option_defaults, $params);
|
1838 |
$defaults['popup_enable_facebook'] = self::get_option_value('popup_enable_facebook', 'popup_enable_facebook', 'popup_enable_facebook', $from || $use_option_defaults, $params);
|
1839 |
$defaults['popup_enable_twitter'] = self::get_option_value('popup_enable_twitter', 'popup_enable_twitter', 'popup_enable_twitter', $from || $use_option_defaults, $params);
|
|
|
1840 |
$defaults['popup_enable_pinterest'] = self::get_option_value('popup_enable_pinterest', 'popup_enable_pinterest', 'popup_enable_pinterest', $from || $use_option_defaults, $params);
|
1841 |
$defaults['popup_enable_tumblr'] = self::get_option_value('popup_enable_tumblr', 'popup_enable_tumblr', 'popup_enable_tumblr', $from || $use_option_defaults, $params);
|
1842 |
$defaults['popup_enable_ecommerce'] = self::get_option_value('popup_enable_ecommerce', 'popup_enable_ecommerce', 'popup_enable_ecommerce', $from || $use_option_defaults, $params);
|
2320 |
}
|
2321 |
global $wpdb;
|
2322 |
$time = time();
|
2323 |
+
$update = $wpdb->query($wpdb->prepare('UPDATE `' . $wpdb->prefix . 'bwg_image` SET `modified_date` = "%d" WHERE ' . $where, $time));
|
2324 |
$items = $wpdb->get_results( 'SELECT `gallery_id`, `thumb_url` FROM `' . $wpdb->prefix . 'bwg_image` WHERE ' . $where );
|
2325 |
if ( !empty($items) ) {
|
2326 |
$thumbs_str = '';
|
2374 |
return $url;
|
2375 |
}
|
2376 |
|
2377 |
+
/**
|
2378 |
+
* Get thumb dimensions.
|
2379 |
+
*
|
2380 |
+
* @param string $thumb_url
|
2381 |
+
*
|
2382 |
+
* @return string
|
2383 |
+
*/
|
2384 |
+
public static function get_thumb_size( $thumb_url ) {
|
2385 |
+
$resolution_thumb = '';
|
2386 |
+
if ( !file_exists( BWG()->upload_url.$thumb_url ) ) {
|
2387 |
+
$thumb_image = wp_get_image_editor( BWG()->upload_url.$thumb_url );
|
2388 |
+
if ( !is_wp_error( $thumb_image ) ) {
|
2389 |
+
$get_thumb_size = $thumb_image->get_size();
|
2390 |
+
$resolution_thumb = $get_thumb_size["width"] . "x" . $get_thumb_size["height"];
|
2391 |
+
}
|
2392 |
+
}
|
2393 |
+
return $resolution_thumb;
|
2394 |
+
}
|
2395 |
+
|
2396 |
public static function bwg_session_start() {
|
2397 |
if (session_id() == '' || (function_exists('session_status') && (session_status() == PHP_SESSION_NONE))) {
|
2398 |
@session_start();
|
2404 |
*
|
2405 |
* @return array
|
2406 |
*/
|
2407 |
+
public static function image_actions( $gallery_type = '' ) {
|
2408 |
+
if( $gallery_type == 'google_photos' || $gallery_type == 'instagram' ) {
|
2409 |
+
$image_actions = array(
|
2410 |
+
'image_edit_alt' => array(
|
2411 |
+
'title' => __('Edit Alt/Title', BWG()->prefix),
|
2412 |
+
'bulk_action' => __('edited', BWG()->prefix),
|
2413 |
+
'disabled' => '',
|
2414 |
+
),
|
2415 |
+
'image_edit_description' => array(
|
2416 |
+
'title' => __('Edit description', BWG()->prefix),
|
2417 |
+
'bulk_action' => __('edited', BWG()->prefix),
|
2418 |
+
'disabled' => '',
|
2419 |
+
),
|
2420 |
+
'image_edit_redirect' => array(
|
2421 |
+
'title' => __('Edit redirect URL', BWG()->prefix),
|
2422 |
+
'bulk_action' => __('edited', BWG()->prefix),
|
2423 |
+
'disabled' => '',
|
2424 |
+
),
|
2425 |
+
'image_add_tag' => array(
|
2426 |
+
'title' => __('Add tag', BWG()->prefix),
|
2427 |
+
'bulk_action' => __('edited', BWG()->prefix),
|
2428 |
+
'disabled' => '',
|
2429 |
+
),
|
2430 |
+
'image_publish' => array(
|
2431 |
+
'title' => __('Publish', BWG()->prefix),
|
2432 |
+
'bulk_action' => __('published', BWG()->prefix),
|
2433 |
+
'disabled' => '',
|
2434 |
+
),
|
2435 |
+
'image_unpublish' => array(
|
2436 |
+
'title' => __('Unpublish', BWG()->prefix),
|
2437 |
+
'bulk_action' => __('unpublished', BWG()->prefix),
|
2438 |
+
'disabled' => '',
|
2439 |
+
),
|
2440 |
+
'image_delete' => array(
|
2441 |
+
'title' => __('Delete', BWG()->prefix),
|
2442 |
+
'bulk_action' => __('deleted', BWG()->prefix),
|
2443 |
+
'disabled' => '',
|
2444 |
+
),
|
2445 |
+
);
|
2446 |
+
} else {
|
2447 |
+
$image_actions = array(
|
2448 |
+
'image_resize' => array(
|
2449 |
+
'title' => __('Resize', BWG()->prefix),
|
2450 |
+
'bulk_action' => __('resized', BWG()->prefix),
|
2451 |
+
'disabled' => (BWG()->wp_editor_exists ? '' : 'disabled="disabled"'),
|
2452 |
+
),
|
2453 |
+
'image_recreate_thumbnail' => array(
|
2454 |
+
'title' => __('Recreate thumbnail', BWG()->prefix),
|
2455 |
+
'bulk_action' => __('recreated', BWG()->prefix),
|
2456 |
+
'disabled' => (BWG()->wp_editor_exists ? '' : 'disabled="disabled"'),
|
2457 |
+
),
|
2458 |
+
'image_rotate_left' => array(
|
2459 |
+
'title' => __('Rotate left', BWG()->prefix),
|
2460 |
+
'bulk_action' => __('rotated left', BWG()->prefix),
|
2461 |
+
'disabled' => (BWG()->wp_editor_exists ? '' : 'disabled="disabled"'),
|
2462 |
+
),
|
2463 |
+
'image_rotate_right' => array(
|
2464 |
+
'title' => __('Rotate right', BWG()->prefix),
|
2465 |
+
'bulk_action' => __('rotated right', BWG()->prefix),
|
2466 |
+
'disabled' => (BWG()->wp_editor_exists ? '' : 'disabled="disabled"'),
|
2467 |
+
),
|
2468 |
+
'image_set_watermark' => array(
|
2469 |
+
'title' => __('Set watermark', BWG()->prefix),
|
2470 |
+
'bulk_action' => __('edited', BWG()->prefix),
|
2471 |
+
'disabled' => (BWG()->wp_editor_exists ? '' : 'disabled="disabled"'),
|
2472 |
+
),
|
2473 |
+
'image_reset' => array(
|
2474 |
+
'title' => __('Reset', BWG()->prefix),
|
2475 |
+
'bulk_action' => __('reset', BWG()->prefix),
|
2476 |
+
'disabled' => '',
|
2477 |
+
),
|
2478 |
+
'image_edit_alt' => array(
|
2479 |
+
'title' => __('Edit Alt/Title', BWG()->prefix),
|
2480 |
+
'bulk_action' => __('edited', BWG()->prefix),
|
2481 |
+
'disabled' => '',
|
2482 |
+
),
|
2483 |
+
'image_edit_description' => array(
|
2484 |
+
'title' => __('Edit description', BWG()->prefix),
|
2485 |
+
'bulk_action' => __('edited', BWG()->prefix),
|
2486 |
+
'disabled' => '',
|
2487 |
+
),
|
2488 |
+
'image_edit_redirect' => array(
|
2489 |
+
'title' => __('Edit redirect URL', BWG()->prefix),
|
2490 |
+
'bulk_action' => __('edited', BWG()->prefix),
|
2491 |
+
'disabled' => '',
|
2492 |
+
),
|
2493 |
+
'image_add_tag' => array(
|
2494 |
+
'title' => __('Add tag', BWG()->prefix),
|
2495 |
+
'bulk_action' => __('edited', BWG()->prefix),
|
2496 |
+
'disabled' => '',
|
2497 |
+
),
|
2498 |
+
'image_publish' => array(
|
2499 |
+
'title' => __('Publish', BWG()->prefix),
|
2500 |
+
'bulk_action' => __('published', BWG()->prefix),
|
2501 |
+
'disabled' => '',
|
2502 |
+
),
|
2503 |
+
'image_unpublish' => array(
|
2504 |
+
'title' => __('Unpublish', BWG()->prefix),
|
2505 |
+
'bulk_action' => __('unpublished', BWG()->prefix),
|
2506 |
+
'disabled' => '',
|
2507 |
+
),
|
2508 |
+
'image_delete' => array(
|
2509 |
+
'title' => __('Delete', BWG()->prefix),
|
2510 |
+
'bulk_action' => __('deleted', BWG()->prefix),
|
2511 |
+
'disabled' => '',
|
2512 |
+
),
|
2513 |
+
);
|
2514 |
+
}
|
2515 |
if ( function_exists('BWGEC') ) {
|
2516 |
$image_actions['set_image_pricelist'] = array(
|
2517 |
'title' => __('Add pricelist', BWG()->prefix),
|
2854 |
exit;
|
2855 |
}
|
2856 |
}
|
2857 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
framework/WDWLibraryEmbed.php
CHANGED
@@ -217,6 +217,7 @@ class WDWLibraryEmbed {
|
|
217 |
'filetype' => $embed_type,
|
218 |
'date_modified' => date("Y-m-d H:i:s"),
|
219 |
'resolution' => $instagram_data->images->standard_resolution->width . " x " . $instagram_data->images->standard_resolution->height . " px",
|
|
|
220 |
'redirect_url' => '');
|
221 |
if ($instagram_data->type == 'video') {
|
222 |
$embedData['filename'] = $instagram_data->videos->standard_resolution->url;
|
@@ -269,6 +270,7 @@ class WDWLibraryEmbed {
|
|
269 |
'filetype' => $embed_type,
|
270 |
'date_modified' => date("Y-m-d H:i:s"),
|
271 |
'resolution' => $instagram_data->images->standard_resolution->width . " x " . $instagram_data->images->standard_resolution->height . " px",
|
|
|
272 |
'redirect_url' => '');
|
273 |
|
274 |
return json_encode($embedData);
|
@@ -300,6 +302,7 @@ class WDWLibraryEmbed {
|
|
300 |
'filetype' => $embed_type."_VIDEO",
|
301 |
'date_modified' => date("Y-m-d H:i:s"),
|
302 |
'resolution' => $result->width." x ".$result->height." px",
|
|
|
303 |
'redirect_url' => '');
|
304 |
return json_encode($embedData);
|
305 |
}
|
@@ -317,6 +320,7 @@ class WDWLibraryEmbed {
|
|
317 |
'filetype' => $embed_type."_VIDEO",
|
318 |
'date_modified' => date("Y-m-d H:i:s"),
|
319 |
'resolution' => $result->width." x ".$result->height." px",
|
|
|
320 |
'redirect_url' => '');
|
321 |
|
322 |
return json_encode($embedData);
|
@@ -344,6 +348,7 @@ class WDWLibraryEmbed {
|
|
344 |
'filetype' => $embed_type,
|
345 |
'date_modified' => date("Y-m-d H:i:s"),
|
346 |
'resolution' => $result->width." x ".$result->height." px",
|
|
|
347 |
'redirect_url' => '');
|
348 |
return json_encode($embedData);
|
349 |
}
|
@@ -362,6 +367,7 @@ class WDWLibraryEmbed {
|
|
362 |
'filetype' => $embed_type."_VIDEO",
|
363 |
'date_modified' => date("Y-m-d H:i:s"),
|
364 |
'resolution' => $result->width." x ".$result->height." px",
|
|
|
365 |
'redirect_url' => '');
|
366 |
|
367 |
return json_encode($embedData);
|
@@ -382,7 +388,7 @@ class WDWLibraryEmbed {
|
|
382 |
'size' => '',
|
383 |
'filetype' => $embed_type,
|
384 |
'date_modified' => date("Y-m-d H:i:s"),
|
385 |
-
'resolution' => $result->width." x "
|
386 |
'redirect_url' => '');
|
387 |
|
388 |
return json_encode($embedData);
|
@@ -413,256 +419,260 @@ class WDWLibraryEmbed {
|
|
413 |
public static function display_embed($embed_type, $file_url, $embed_id = '', $attrs = array()) {
|
414 |
$html_to_insert = '';
|
415 |
$is_visible = true;
|
416 |
-
if(
|
417 |
$is_visible = $attrs['is_visible'];
|
418 |
$bwg = $attrs['bwg'];
|
419 |
$image_key = $attrs['image_key'];
|
420 |
/* The attrs using in div as attribute */
|
421 |
-
unset(
|
422 |
-
if (
|
423 |
-
|
424 |
}
|
425 |
}
|
426 |
switch ($embed_type) {
|
427 |
-
case 'EMBED_OEMBED_YOUTUBE_VIDEO':
|
428 |
-
|
429 |
-
|
430 |
-
$
|
431 |
-
|
432 |
-
$
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
$hours = substr($start_info, 0,strpos($start_info, "h"));
|
437 |
-
$seconds += $hours * 3600;
|
438 |
-
}
|
439 |
-
if (strpos($start_info, "m") !== FALSE) {
|
440 |
if (strpos($start_info, "h") !== FALSE) {
|
441 |
-
|
442 |
-
|
443 |
-
$minutes = substr($start_info, 0, strpos($start_info, "m"));
|
444 |
}
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
449 |
$sec = substr($start_info, strpos($start_info, "m") + 1, -1);
|
450 |
-
|
451 |
$sec = substr($start_info, 0, -1);
|
452 |
-
|
453 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
454 |
}
|
455 |
-
$oembed_youtube_query_args = array('start' => $seconds);
|
456 |
}
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
|
|
462 |
}
|
|
|
|
|
|
|
463 |
}
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
|
|
|
|
|
|
|
|
468 |
}
|
469 |
}
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
$oembed_vimeo_html ='<iframe ';
|
477 |
-
if($embed_id!=''){
|
478 |
-
if( $is_visible ) {
|
479 |
-
$oembed_vimeo_html .= ' src="' . '//player.vimeo.com/video/' . $embed_id . '?enablejsapi=1"';
|
480 |
-
} else {
|
481 |
-
$oembed_vimeo_html .= 'id="bwg_carousel_preload_'.$bwg.'_'.$image_key.'" data-src="' . '//player.vimeo.com/video/' . $embed_id . '?enablejsapi=1"';
|
482 |
}
|
|
|
|
|
|
|
483 |
}
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
|
|
|
|
|
|
|
|
488 |
}
|
489 |
}
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
$oembed_flickr_html ='<div ';
|
497 |
-
foreach ($attrs as $attr => $value) {
|
498 |
-
if(preg_match('/src/i', $attr)===0){
|
499 |
-
if($attr != '' && $value != ''){
|
500 |
-
$oembed_flickr_html .= ' '. $attr . '="'. $value . '"';
|
501 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
502 |
}
|
|
|
|
|
|
|
|
|
503 |
}
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
} else {
|
509 |
-
$oembed_flickr_html .= '<img id="bwg_carousel_preload_'.$bwg.'_'.$image_key.'" data-src="' . $embed_id . '"';
|
510 |
-
}
|
511 |
-
$oembed_flickr_html .= ' style="'.
|
512 |
-
'max-width:'.'100%'." !important".
|
513 |
-
'; max-height:'.'100%'." !important".
|
514 |
-
'; width:'.'auto !important'.
|
515 |
-
'; height:'. 'auto !important' .
|
516 |
-
';">';
|
517 |
}
|
518 |
-
$oembed_flickr_html .="</div>";
|
519 |
-
|
520 |
-
$html_to_insert .= $oembed_flickr_html;
|
521 |
-
break;
|
522 |
-
}
|
523 |
-
case 'EMBED_OEMBED_FLICKR_VIDEO': {
|
524 |
-
# code...not implemented yet
|
525 |
-
break;
|
526 |
-
}
|
527 |
case 'EMBED_OEMBED_INSTAGRAM_VIDEO':
|
528 |
-
$oembed_instagram_html ='<div ';
|
529 |
foreach ($attrs as $attr => $value) {
|
530 |
-
if(preg_match('/src/i', $attr)===0){
|
531 |
-
if($attr != '' && $value != ''){
|
532 |
-
$oembed_instagram_html .= ' '. $attr . '="'. $value . '"';
|
533 |
}
|
534 |
}
|
535 |
}
|
536 |
$oembed_instagram_html .= " >";
|
537 |
-
if($embed_id!=''){
|
538 |
$oembed_instagram_html .= '<video class="bwg_carousel_video" style="width:auto !important; height:auto !important; max-width:100% !important; max-height:100% !important; margin:0 !important;" controls>';
|
539 |
-
if (
|
540 |
$oembed_instagram_html .= '<source src="' . $embed_id;
|
541 |
} else {
|
542 |
-
$oembed_instagram_html .= '<source id="bwg_carousel_preload_'
|
543 |
}
|
544 |
$oembed_instagram_html .= '" type="video/mp4"> Your browser does not support the video tag. </video>';
|
545 |
}
|
546 |
-
$oembed_instagram_html .="</div>";
|
547 |
$html_to_insert .= $oembed_instagram_html;
|
548 |
break;
|
549 |
case 'EMBED_OEMBED_INSTAGRAM_IMAGE':
|
550 |
-
$oembed_instagram_html ='<div ';
|
551 |
foreach ($attrs as $attr => $value) {
|
552 |
-
if(preg_match('/src/i', $attr)===0){
|
553 |
-
if($attr != '' && $value != ''){
|
554 |
-
$oembed_instagram_html .= ' '. $attr . '="'. $value . '"';
|
555 |
}
|
556 |
}
|
557 |
}
|
558 |
$oembed_instagram_html .= " >";
|
559 |
-
if($embed_id!=''){
|
560 |
-
if (
|
561 |
$oembed_instagram_html .= '<img src="//instagram.com/p/' . $embed_id . '/media/?size=l"';
|
562 |
} else {
|
563 |
-
$oembed_instagram_html .= '<img id="bwg_carousel_preload_'
|
564 |
}
|
565 |
-
$oembed_instagram_html .= ' style="'.
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
}
|
572 |
-
$oembed_instagram_html .="</div>";
|
573 |
$html_to_insert .= $oembed_instagram_html;
|
574 |
break;
|
575 |
case 'EMBED_OEMBED_FACEBOOK_IMAGE':
|
576 |
-
$oembed_facebook_html ='<div ';
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
}
|
582 |
}
|
583 |
}
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
$oembed_facebook_html .= ' style="'.
|
592 |
-
'max-width:'.'100%'." !important".
|
593 |
-
'; max-height:'.'100%'." !important".
|
594 |
-
'; width:'.'auto !important'.
|
595 |
-
'; height:'. 'auto !important' .
|
596 |
-
';">';
|
597 |
}
|
598 |
-
$oembed_facebook_html .="
|
599 |
-
|
600 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
601 |
case 'EMBED_OEMBED_FACEBOOK_VIDEO':
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
}
|
609 |
}
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
}
|
616 |
}
|
617 |
-
|
618 |
-
|
619 |
-
|
|
|
620 |
case 'EMBED_OEMBED_INSTAGRAM_POST':
|
621 |
-
$oembed_instagram_html ='<div ';
|
622 |
$id = '';
|
623 |
foreach ($attrs as $attr => $value) {
|
624 |
-
if(preg_match('/src/i', $attr)===0){
|
625 |
-
if($attr != '' && $value != ''){
|
626 |
-
$oembed_instagram_html .= ' '. $attr . '="'. $value . '"';
|
627 |
-
if(strtolower($attr) == 'class') {
|
628 |
$class = $value;
|
629 |
}
|
630 |
}
|
631 |
}
|
632 |
}
|
633 |
-
$oembed_instagram_html .= " >";
|
634 |
-
if($embed_id!=''){
|
635 |
-
if (
|
636 |
$oembed_instagram_html .= '<iframe class="inner_instagram_iframe_' . $class . '" src="//instagr.am/p/' . $embed_id . '/embed/?enablejsapi=1"';
|
637 |
} else {
|
638 |
-
$oembed_instagram_html .= '<iframe id="bwg_carousel_preload_'
|
639 |
}
|
640 |
-
$oembed_instagram_html .= ' style="'.
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
}
|
650 |
-
$oembed_instagram_html .="</div>";
|
651 |
$html_to_insert .= $oembed_instagram_html;
|
652 |
break;
|
653 |
case 'EMBED_OEMBED_DAILYMOTION_VIDEO':
|
654 |
-
$oembed_dailymotion_html ='<iframe ';
|
655 |
-
if($embed_id!=''){
|
656 |
-
if (
|
657 |
$oembed_dailymotion_html .= ' src="' . '//www.dailymotion.com/embed/video/' . $embed_id . '?api=postMessage"';
|
658 |
} else {
|
659 |
-
$oembed_dailymotion_html .= ' id="bwg_carousel_preload_'
|
660 |
}
|
661 |
}
|
662 |
foreach ($attrs as $attr => $value) {
|
663 |
-
if(preg_match('/src/i', $attr)===0){
|
664 |
-
if($attr != '' && $value != ''){
|
665 |
-
$oembed_dailymotion_html .= ' '. $attr . '="'. $value . '"';
|
666 |
}
|
667 |
}
|
668 |
}
|
@@ -670,12 +680,12 @@ class WDWLibraryEmbed {
|
|
670 |
$html_to_insert .= $oembed_dailymotion_html;
|
671 |
break;
|
672 |
default:
|
673 |
-
|
|
|
674 |
break;
|
675 |
}
|
676 |
|
677 |
echo $html_to_insert;
|
678 |
-
|
679 |
}
|
680 |
|
681 |
/**
|
@@ -827,6 +837,7 @@ class WDWLibraryEmbed {
|
|
827 |
'size' => $image_new->size,
|
828 |
'filetype' => $image_new->filetype,
|
829 |
'resolution' => $image_new->resolution,
|
|
|
830 |
'author' => $author,
|
831 |
'order' => $new_order,
|
832 |
'published' => 1,
|
@@ -916,6 +927,7 @@ class WDWLibraryEmbed {
|
|
916 |
'size' => $image['size'],
|
917 |
'filetype' => $image['filetype'],
|
918 |
'resolution' => $image['resolution'],
|
|
|
919 |
'author' => $image['author'],
|
920 |
'order' => $image['order'],
|
921 |
'published' => $image['published'],
|
217 |
'filetype' => $embed_type,
|
218 |
'date_modified' => date("Y-m-d H:i:s"),
|
219 |
'resolution' => $instagram_data->images->standard_resolution->width . " x " . $instagram_data->images->standard_resolution->height . " px",
|
220 |
+
'resolution_thumb' => $instagram_data->images->standard_resolution->width . "x" . $instagram_data->images->standard_resolution->height,
|
221 |
'redirect_url' => '');
|
222 |
if ($instagram_data->type == 'video') {
|
223 |
$embedData['filename'] = $instagram_data->videos->standard_resolution->url;
|
270 |
'filetype' => $embed_type,
|
271 |
'date_modified' => date("Y-m-d H:i:s"),
|
272 |
'resolution' => $instagram_data->images->standard_resolution->width . " x " . $instagram_data->images->standard_resolution->height . " px",
|
273 |
+
'resolution_thumb' => $instagram_data->images->standard_resolution->width . "x" . $instagram_data->images->standard_resolution->height,
|
274 |
'redirect_url' => '');
|
275 |
|
276 |
return json_encode($embedData);
|
302 |
'filetype' => $embed_type."_VIDEO",
|
303 |
'date_modified' => date("Y-m-d H:i:s"),
|
304 |
'resolution' => $result->width." x ".$result->height." px",
|
305 |
+
'resolution_thumb' => $result->width."x".$result->height,
|
306 |
'redirect_url' => '');
|
307 |
return json_encode($embedData);
|
308 |
}
|
320 |
'filetype' => $embed_type."_VIDEO",
|
321 |
'date_modified' => date("Y-m-d H:i:s"),
|
322 |
'resolution' => $result->width." x ".$result->height." px",
|
323 |
+
'resolution_thumb' => $result->width."x".$result->height,
|
324 |
'redirect_url' => '');
|
325 |
|
326 |
return json_encode($embedData);
|
348 |
'filetype' => $embed_type,
|
349 |
'date_modified' => date("Y-m-d H:i:s"),
|
350 |
'resolution' => $result->width." x ".$result->height." px",
|
351 |
+
'resolution_thumb' => $result->width."x".$result->height,
|
352 |
'redirect_url' => '');
|
353 |
return json_encode($embedData);
|
354 |
}
|
367 |
'filetype' => $embed_type."_VIDEO",
|
368 |
'date_modified' => date("Y-m-d H:i:s"),
|
369 |
'resolution' => $result->width." x ".$result->height." px",
|
370 |
+
'resolution_thumb' => $result->width."x".$result->height,
|
371 |
'redirect_url' => '');
|
372 |
|
373 |
return json_encode($embedData);
|
388 |
'size' => '',
|
389 |
'filetype' => $embed_type,
|
390 |
'date_modified' => date("Y-m-d H:i:s"),
|
391 |
+
'resolution' => $result->width . " x " . $result->height . " px",
|
392 |
'redirect_url' => '');
|
393 |
|
394 |
return json_encode($embedData);
|
419 |
public static function display_embed($embed_type, $file_url, $embed_id = '', $attrs = array()) {
|
420 |
$html_to_insert = '';
|
421 |
$is_visible = true;
|
422 |
+
if (isset($attrs['is_visible'])) {
|
423 |
$is_visible = $attrs['is_visible'];
|
424 |
$bwg = $attrs['bwg'];
|
425 |
$image_key = $attrs['image_key'];
|
426 |
/* The attrs using in div as attribute */
|
427 |
+
unset($attrs['bwg'], $attrs['is_visible'], $attrs['image_key']);
|
428 |
+
if (!$is_visible) {
|
429 |
+
$attrs['class'] .= ' bwg_carousel_preload';
|
430 |
}
|
431 |
}
|
432 |
switch ($embed_type) {
|
433 |
+
case 'EMBED_OEMBED_YOUTUBE_VIDEO':
|
434 |
+
{
|
435 |
+
$oembed_youtube_html = '<iframe ';
|
436 |
+
if ($embed_id != '') {
|
437 |
+
$oembed_youtube_query_args = array();
|
438 |
+
if (strpos($embed_id, "?t=") !== FALSE) {
|
439 |
+
$seconds = 0;
|
440 |
+
$start_info = substr($embed_id, (strpos($embed_id, "?t=") + 3), strlen($embed_id));
|
441 |
+
$embed_id = substr($embed_id, 0, strpos($embed_id, "?t="));
|
|
|
|
|
|
|
|
|
442 |
if (strpos($start_info, "h") !== FALSE) {
|
443 |
+
$hours = substr($start_info, 0, strpos($start_info, "h"));
|
444 |
+
$seconds += $hours * 3600;
|
|
|
445 |
}
|
446 |
+
if (strpos($start_info, "m") !== FALSE) {
|
447 |
+
if (strpos($start_info, "h") !== FALSE) {
|
448 |
+
$minutes = substr($start_info, strpos($start_info, "h") + 1, -strpos($start_info, "m"));
|
449 |
+
} else {
|
450 |
+
$minutes = substr($start_info, 0, strpos($start_info, "m"));
|
451 |
+
}
|
452 |
+
$seconds += $minutes * 60;
|
453 |
+
}
|
454 |
+
if (strpos($start_info, "s") !== FALSE) {
|
455 |
+
if (strpos($start_info, "m") !== FALSE) {
|
456 |
$sec = substr($start_info, strpos($start_info, "m") + 1, -1);
|
457 |
+
} else {
|
458 |
$sec = substr($start_info, 0, -1);
|
459 |
+
}
|
460 |
+
$seconds += $sec;
|
461 |
+
}
|
462 |
+
$oembed_youtube_query_args = array('start' => $seconds);
|
463 |
+
}
|
464 |
+
$oembed_youtube_query_args += array('enablejsapi' => 1, 'wmode' => 'transparent');
|
465 |
+
if ($is_visible) {
|
466 |
+
$oembed_youtube_html .= ' src="' . add_query_arg($oembed_youtube_query_args, '//www.youtube.com/embed/' . $embed_id) . '"';
|
467 |
+
} else {
|
468 |
+
$oembed_youtube_html .= 'id="bwg_carousel_preload_' . $bwg . '_' . $image_key . '" data-src="' . add_query_arg($oembed_youtube_query_args, '//www.youtube.com/embed/' . $embed_id) . '"';
|
469 |
}
|
|
|
470 |
}
|
471 |
+
foreach ($attrs as $attr => $value) {
|
472 |
+
if (preg_match('/src/i', $attr) === 0) {
|
473 |
+
if ($attr != '' && $value != '') {
|
474 |
+
$oembed_youtube_html .= ' ' . $attr . '="' . $value . '"';
|
475 |
+
}
|
476 |
+
}
|
477 |
}
|
478 |
+
$oembed_youtube_html .= " ></iframe>";
|
479 |
+
$html_to_insert .= $oembed_youtube_html;
|
480 |
+
break;
|
481 |
}
|
482 |
+
case 'EMBED_OEMBED_VIMEO_VIDEO':
|
483 |
+
{
|
484 |
+
$oembed_vimeo_html = '<iframe ';
|
485 |
+
if ($embed_id != '') {
|
486 |
+
if ($is_visible) {
|
487 |
+
$oembed_vimeo_html .= ' src="' . '//player.vimeo.com/video/' . $embed_id . '?enablejsapi=1"';
|
488 |
+
} else {
|
489 |
+
$oembed_vimeo_html .= 'id="bwg_carousel_preload_' . $bwg . '_' . $image_key . '" data-src="' . '//player.vimeo.com/video/' . $embed_id . '?enablejsapi=1"';
|
490 |
}
|
491 |
}
|
492 |
+
foreach ($attrs as $attr => $value) {
|
493 |
+
if (preg_match('/src/i', $attr) === 0) {
|
494 |
+
if ($attr != '' && $value != '') {
|
495 |
+
$oembed_vimeo_html .= ' ' . $attr . '="' . $value . '"';
|
496 |
+
}
|
497 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
498 |
}
|
499 |
+
$oembed_vimeo_html .= " ></iframe>";
|
500 |
+
$html_to_insert .= $oembed_vimeo_html;
|
501 |
+
break;
|
502 |
}
|
503 |
+
case 'EMBED_OEMBED_FLICKR_IMAGE':
|
504 |
+
{
|
505 |
+
$oembed_flickr_html = '<div ';
|
506 |
+
foreach ($attrs as $attr => $value) {
|
507 |
+
if (preg_match('/src/i', $attr) === 0) {
|
508 |
+
if ($attr != '' && $value != '') {
|
509 |
+
$oembed_flickr_html .= ' ' . $attr . '="' . $value . '"';
|
510 |
+
}
|
511 |
}
|
512 |
}
|
513 |
+
$oembed_flickr_html .= " >";
|
514 |
+
if ($embed_id != '') {
|
515 |
+
if ($is_visible) {
|
516 |
+
$oembed_flickr_html .= '<img src="' . $embed_id . '"';
|
517 |
+
} else {
|
518 |
+
$oembed_flickr_html .= '<img id="bwg_carousel_preload_' . $bwg . '_' . $image_key . '" data-src="' . $embed_id . '"';
|
|
|
|
|
|
|
|
|
|
|
519 |
}
|
520 |
+
$oembed_flickr_html .= ' style="' .
|
521 |
+
'max-width:' . '100%' . " !important" .
|
522 |
+
'; max-height:' . '100%' . " !important" .
|
523 |
+
'; width:' . 'auto !important' .
|
524 |
+
'; height:' . 'auto !important' .
|
525 |
+
';">';
|
526 |
}
|
527 |
+
$oembed_flickr_html .= "</div>";
|
528 |
+
|
529 |
+
$html_to_insert .= $oembed_flickr_html;
|
530 |
+
break;
|
531 |
}
|
532 |
+
case 'EMBED_OEMBED_FLICKR_VIDEO':
|
533 |
+
{
|
534 |
+
# code...not implemented yet
|
535 |
+
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
536 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
537 |
case 'EMBED_OEMBED_INSTAGRAM_VIDEO':
|
538 |
+
$oembed_instagram_html = '<div ';
|
539 |
foreach ($attrs as $attr => $value) {
|
540 |
+
if (preg_match('/src/i', $attr) === 0) {
|
541 |
+
if ($attr != '' && $value != '') {
|
542 |
+
$oembed_instagram_html .= ' ' . $attr . '="' . $value . '"';
|
543 |
}
|
544 |
}
|
545 |
}
|
546 |
$oembed_instagram_html .= " >";
|
547 |
+
if ($embed_id != '') {
|
548 |
$oembed_instagram_html .= '<video class="bwg_carousel_video" style="width:auto !important; height:auto !important; max-width:100% !important; max-height:100% !important; margin:0 !important;" controls>';
|
549 |
+
if ($is_visible) {
|
550 |
$oembed_instagram_html .= '<source src="' . $embed_id;
|
551 |
} else {
|
552 |
+
$oembed_instagram_html .= '<source id="bwg_carousel_preload_' . $bwg . '_' . $image_key . '" data-src="' . $embed_id;
|
553 |
}
|
554 |
$oembed_instagram_html .= '" type="video/mp4"> Your browser does not support the video tag. </video>';
|
555 |
}
|
556 |
+
$oembed_instagram_html .= "</div>";
|
557 |
$html_to_insert .= $oembed_instagram_html;
|
558 |
break;
|
559 |
case 'EMBED_OEMBED_INSTAGRAM_IMAGE':
|
560 |
+
$oembed_instagram_html = '<div ';
|
561 |
foreach ($attrs as $attr => $value) {
|
562 |
+
if (preg_match('/src/i', $attr) === 0) {
|
563 |
+
if ($attr != '' && $value != '') {
|
564 |
+
$oembed_instagram_html .= ' ' . $attr . '="' . $value . '"';
|
565 |
}
|
566 |
}
|
567 |
}
|
568 |
$oembed_instagram_html .= " >";
|
569 |
+
if ($embed_id != '') {
|
570 |
+
if ($is_visible) {
|
571 |
$oembed_instagram_html .= '<img src="//instagram.com/p/' . $embed_id . '/media/?size=l"';
|
572 |
} else {
|
573 |
+
$oembed_instagram_html .= '<img id="bwg_carousel_preload_' . $bwg . '_' . $image_key . '" data-src="//instagram.com/p/' . $embed_id . '/media/?size=l"';
|
574 |
}
|
575 |
+
$oembed_instagram_html .= ' style="' .
|
576 |
+
'max-width:' . '100%' . " !important" .
|
577 |
+
'; max-height:' . '100%' . " !important" .
|
578 |
+
'; width:' . 'auto !important' .
|
579 |
+
'; height:' . 'auto !important' .
|
580 |
+
';">';
|
581 |
}
|
582 |
+
$oembed_instagram_html .= "</div>";
|
583 |
$html_to_insert .= $oembed_instagram_html;
|
584 |
break;
|
585 |
case 'EMBED_OEMBED_FACEBOOK_IMAGE':
|
586 |
+
$oembed_facebook_html = '<div ';
|
587 |
+
foreach ($attrs as $attr => $value) {
|
588 |
+
if (preg_match('/src/i', $attr) === 0) {
|
589 |
+
if ($attr != '' && $value != '') {
|
590 |
+
$oembed_facebook_html .= ' ' . $attr . '="' . $value . '"';
|
|
|
591 |
}
|
592 |
}
|
593 |
+
}
|
594 |
+
$oembed_facebook_html .= " >";
|
595 |
+
if ($embed_id != '') {
|
596 |
+
if ($is_visible) {
|
597 |
+
$oembed_facebook_html .= '<img src="' . $file_url . '"';
|
598 |
+
} else {
|
599 |
+
$oembed_facebook_html .= '<img id="bwg_carousel_preload_' . $bwg . '_' . $image_key . '" data-src="' . $file_url . '"';
|
|
|
|
|
|
|
|
|
|
|
|
|
600 |
}
|
601 |
+
$oembed_facebook_html .= ' style="' .
|
602 |
+
'max-width:' . '100%' . " !important" .
|
603 |
+
'; max-height:' . '100%' . " !important" .
|
604 |
+
'; width:' . 'auto !important' .
|
605 |
+
'; height:' . 'auto !important' .
|
606 |
+
';">';
|
607 |
+
}
|
608 |
+
$oembed_facebook_html .= "</div>";
|
609 |
+
$html_to_insert .= $oembed_facebook_html;
|
610 |
+
break;
|
611 |
case 'EMBED_OEMBED_FACEBOOK_VIDEO':
|
612 |
+
$oembed_facebook_html = '<iframe class="bwg_fb_video"';
|
613 |
+
if ($embed_id != '') {
|
614 |
+
if ($is_visible) {
|
615 |
+
$oembed_facebook_html .= ' src="//www.facebook.com/video/embed?video_id=' . $file_url . '&enablejsapi=1&wmode=transparent"';
|
616 |
+
} else {
|
617 |
+
$oembed_facebook_html .= ' id="bwg_carousel_preload_' . $bwg . '_' . $image_key . '" data-src="//www.facebook.com/video/embed?video_id=' . $file_url . '&enablejsapi=1&wmode=transparent"';
|
|
|
618 |
}
|
619 |
+
}
|
620 |
+
foreach ($attrs as $attr => $value) {
|
621 |
+
if (preg_match('/src/i', $attr) === 0) {
|
622 |
+
if ($attr != '' && $value != '') {
|
623 |
+
$oembed_facebook_html .= ' ' . $attr . '="' . $value . '"';
|
624 |
}
|
625 |
}
|
626 |
+
}
|
627 |
+
$oembed_facebook_html .= " ></iframe>";
|
628 |
+
$html_to_insert .= $oembed_facebook_html;
|
629 |
+
break;
|
630 |
case 'EMBED_OEMBED_INSTAGRAM_POST':
|
631 |
+
$oembed_instagram_html = '<div ';
|
632 |
$id = '';
|
633 |
foreach ($attrs as $attr => $value) {
|
634 |
+
if (preg_match('/src/i', $attr) === 0) {
|
635 |
+
if ($attr != '' && $value != '') {
|
636 |
+
$oembed_instagram_html .= ' ' . $attr . '="' . $value . '"';
|
637 |
+
if (strtolower($attr) == 'class') {
|
638 |
$class = $value;
|
639 |
}
|
640 |
}
|
641 |
}
|
642 |
}
|
643 |
+
$oembed_instagram_html .= " >";
|
644 |
+
if ($embed_id != '') {
|
645 |
+
if ($is_visible) {
|
646 |
$oembed_instagram_html .= '<iframe class="inner_instagram_iframe_' . $class . '" src="//instagr.am/p/' . $embed_id . '/embed/?enablejsapi=1"';
|
647 |
} else {
|
648 |
+
$oembed_instagram_html .= '<iframe id="bwg_carousel_preload_' . $bwg . '_' . $image_key . '" class="inner_instagram_iframe_' . $class . '" data-src="//instagr.am/p/' . $embed_id . '/embed/?enablejsapi=1"';
|
649 |
}
|
650 |
+
$oembed_instagram_html .= ' style="' .
|
651 |
+
'max-width:' . '100%' . " !important" .
|
652 |
+
'; max-height:' . '100%' . " !important" .
|
653 |
+
'; width:' . '100%' .
|
654 |
+
'; height:' . '100%' .
|
655 |
+
'; margin:0' .
|
656 |
+
'; display:table-cell; vertical-align:middle;"' .
|
657 |
+
'frameborder="0" scrolling="no" allowtransparency="false" allowfullscreen' .
|
658 |
+
'></iframe>';
|
659 |
}
|
660 |
+
$oembed_instagram_html .= "</div>";
|
661 |
$html_to_insert .= $oembed_instagram_html;
|
662 |
break;
|
663 |
case 'EMBED_OEMBED_DAILYMOTION_VIDEO':
|
664 |
+
$oembed_dailymotion_html = '<iframe ';
|
665 |
+
if ($embed_id != '') {
|
666 |
+
if ($is_visible) {
|
667 |
$oembed_dailymotion_html .= ' src="' . '//www.dailymotion.com/embed/video/' . $embed_id . '?api=postMessage"';
|
668 |
} else {
|
669 |
+
$oembed_dailymotion_html .= ' id="bwg_carousel_preload_' . $bwg . '_' . $image_key . '" data-src="' . '//www.dailymotion.com/embed/video/' . $embed_id . '?api=postMessage"';
|
670 |
}
|
671 |
}
|
672 |
foreach ($attrs as $attr => $value) {
|
673 |
+
if (preg_match('/src/i', $attr) === 0) {
|
674 |
+
if ($attr != '' && $value != '') {
|
675 |
+
$oembed_dailymotion_html .= ' ' . $attr . '="' . $value . '"';
|
676 |
}
|
677 |
}
|
678 |
}
|
680 |
$html_to_insert .= $oembed_dailymotion_html;
|
681 |
break;
|
682 |
default:
|
683 |
+
// Display embed media from add-ons.
|
684 |
+
do_action('bwg_display_embed', $embed_type, $file_url, $embed_id, $attrs);
|
685 |
break;
|
686 |
}
|
687 |
|
688 |
echo $html_to_insert;
|
|
|
689 |
}
|
690 |
|
691 |
/**
|
837 |
'size' => $image_new->size,
|
838 |
'filetype' => $image_new->filetype,
|
839 |
'resolution' => $image_new->resolution,
|
840 |
+
'resolution_thumb' => $image_new->resolution_thumb,
|
841 |
'author' => $author,
|
842 |
'order' => $new_order,
|
843 |
'published' => 1,
|
927 |
'size' => $image['size'],
|
928 |
'filetype' => $image['filetype'],
|
929 |
'resolution' => $image['resolution'],
|
930 |
+
'resolution_thumb' => $image['resolution_thumb'],
|
931 |
'author' => $image['author'],
|
932 |
'order' => $image['order'],
|
933 |
'published' => $image['published'],
|
frontend/controllers/controller.php
CHANGED
@@ -13,12 +13,14 @@ class BWGControllerSite {
|
|
13 |
require_once BWG()->plugin_dir . '/frontend/views/BWGView' . $view . '.php';
|
14 |
$view_class = 'BWGView' . $view;
|
15 |
$this->view = new $view_class();
|
|
|
|
|
16 |
}
|
17 |
|
18 |
public function execute( $params = array(), $from_shortcode = 0, $bwg = 0 ) {
|
19 |
$theme_id = $params['theme_id'];
|
20 |
$theme_row = $this->model->get_theme_row_data($theme_id);
|
21 |
-
|
22 |
|
23 |
if ( !isset($params['type']) ) {
|
24 |
$params['type'] = '';
|
@@ -106,7 +108,7 @@ class BWGControllerSite {
|
|
106 |
}
|
107 |
elseif ( $params['gallery_view_type'] == 'image_browser' ) {
|
108 |
$params['gallery_type'] = 'image_browser';
|
109 |
-
|
110 |
}
|
111 |
elseif ( $params['gallery_view_type'] == 'blog_style' ) {
|
112 |
$params['gallery_type'] = 'blog_style';
|
@@ -142,7 +144,7 @@ class BWGControllerSite {
|
|
142 |
$params['load_more_image_count'] = $params['images_per_page'];
|
143 |
$params['items_per_page'] = array('images_per_page' => $params['images_per_page'], 'load_more_image_count' => $params['load_more_image_count']);
|
144 |
$album_gallery_rows = $this->model->get_alb_gals_row($bwg, $params['album_gallery_id'], $params['images_per_page'], $params['album_sort_by'], $params['album_order_by'], $params['image_enable_page'], $from);
|
145 |
-
|
146 |
}
|
147 |
else { // Gallery views (thumbnail/masonry/mosaic).
|
148 |
/* Set parameters for gallery view from album shortcode.*/
|
@@ -374,7 +376,6 @@ class BWGControllerSite {
|
|
374 |
'enable_comment_social' => $params['popup_enable_comment'],
|
375 |
'enable_image_facebook' => $params['popup_enable_facebook'],
|
376 |
'enable_image_twitter' => $params['popup_enable_twitter'],
|
377 |
-
'enable_image_google' => $params['popup_enable_google'],
|
378 |
'enable_image_ecommerce' => $params['popup_enable_ecommerce'],
|
379 |
'enable_image_pinterest' => $params['popup_enable_pinterest'],
|
380 |
'enable_image_tumblr' => $params['popup_enable_tumblr'],
|
13 |
require_once BWG()->plugin_dir . '/frontend/views/BWGView' . $view . '.php';
|
14 |
$view_class = 'BWGView' . $view;
|
15 |
$this->view = new $view_class();
|
16 |
+
|
17 |
+
do_action('bwg_before_init_gallery');
|
18 |
}
|
19 |
|
20 |
public function execute( $params = array(), $from_shortcode = 0, $bwg = 0 ) {
|
21 |
$theme_id = $params['theme_id'];
|
22 |
$theme_row = $this->model->get_theme_row_data($theme_id);
|
23 |
+
$params['pagination_default_style'] = 0;
|
24 |
|
25 |
if ( !isset($params['type']) ) {
|
26 |
$params['type'] = '';
|
108 |
}
|
109 |
elseif ( $params['gallery_view_type'] == 'image_browser' ) {
|
110 |
$params['gallery_type'] = 'image_browser';
|
111 |
+
$params['pagination_default_style'] = 1;
|
112 |
}
|
113 |
elseif ( $params['gallery_view_type'] == 'blog_style' ) {
|
114 |
$params['gallery_type'] = 'blog_style';
|
144 |
$params['load_more_image_count'] = $params['images_per_page'];
|
145 |
$params['items_per_page'] = array('images_per_page' => $params['images_per_page'], 'load_more_image_count' => $params['load_more_image_count']);
|
146 |
$album_gallery_rows = $this->model->get_alb_gals_row($bwg, $params['album_gallery_id'], $params['images_per_page'], $params['album_sort_by'], $params['album_order_by'], $params['image_enable_page'], $from);
|
147 |
+
$params['album_gallery_rows'] = $album_gallery_rows;
|
148 |
}
|
149 |
else { // Gallery views (thumbnail/masonry/mosaic).
|
150 |
/* Set parameters for gallery view from album shortcode.*/
|
376 |
'enable_comment_social' => $params['popup_enable_comment'],
|
377 |
'enable_image_facebook' => $params['popup_enable_facebook'],
|
378 |
'enable_image_twitter' => $params['popup_enable_twitter'],
|
|
|
379 |
'enable_image_ecommerce' => $params['popup_enable_ecommerce'],
|
380 |
'enable_image_pinterest' => $params['popup_enable_pinterest'],
|
381 |
'enable_image_tumblr' => $params['popup_enable_tumblr'],
|
frontend/models/BWGModelGalleryBox.php
CHANGED
@@ -36,9 +36,8 @@ class BWGModelGalleryBox {
|
|
36 |
if (strtolower($order_by) != 'asc') {
|
37 |
$order_by = 'desc';
|
38 |
}
|
39 |
-
WDWLibrary::bwg_session_start();
|
40 |
-
$bwg_random_seed = isset($_SESSION['bwg_random_seed_'. $bwg]) ? $_SESSION['bwg_random_seed_'. $bwg] : '';
|
41 |
|
|
|
42 |
$bwg_filter_tag_temp = WDWLibrary::get('filter_tag', 0);
|
43 |
if ( $bwg_filter_tag_temp == 0 ) {
|
44 |
$filter_tags = array();
|
@@ -81,7 +80,7 @@ class BWGModelGalleryBox {
|
|
81 |
$where .= ($gallery_id ? ' AND image.gallery_id = "' . $gallery_id . '" ' : '') . ($tag ? ' AND tag.tag_id = "' . $tag . '" ' : '');
|
82 |
$join = $tag ? 'LEFT JOIN ' . $wpdb->prefix . 'bwg_image_tag as tag ON image.id=tag.image_id' : '';
|
83 |
|
84 |
-
$join .= ' LEFT JOIN '. $wpdb->prefix .'bwg_gallery as gallery ON
|
85 |
$where .= ' AND gallery.published = 1 ';
|
86 |
|
87 |
if ($filter_tags){
|
@@ -89,7 +88,9 @@ class BWGModelGalleryBox {
|
|
89 |
$where .= ' AND CONCAT(",", tags.tags_combined, ",") REGEXP ",(' . implode("|", $filter_tags) . ')," ';
|
90 |
}
|
91 |
|
92 |
-
$
|
|
|
|
|
93 |
|
94 |
$images = array();
|
95 |
if ( !empty($rows) ) {
|
36 |
if (strtolower($order_by) != 'asc') {
|
37 |
$order_by = 'desc';
|
38 |
}
|
|
|
|
|
39 |
|
40 |
+
$bwg_random_seed = WDWLibrary::get('bwg_random_seed','');
|
41 |
$bwg_filter_tag_temp = WDWLibrary::get('filter_tag', 0);
|
42 |
if ( $bwg_filter_tag_temp == 0 ) {
|
43 |
$filter_tags = array();
|
80 |
$where .= ($gallery_id ? ' AND image.gallery_id = "' . $gallery_id . '" ' : '') . ($tag ? ' AND tag.tag_id = "' . $tag . '" ' : '');
|
81 |
$join = $tag ? 'LEFT JOIN ' . $wpdb->prefix . 'bwg_image_tag as tag ON image.id=tag.image_id' : '';
|
82 |
|
83 |
+
$join .= ' LEFT JOIN '. $wpdb->prefix .'bwg_gallery as gallery ON image.gallery_id = gallery.id ';
|
84 |
$where .= ' AND gallery.published = 1 ';
|
85 |
|
86 |
if ($filter_tags){
|
88 |
$where .= ' AND CONCAT(",", tags.tags_combined, ",") REGEXP ",(' . implode("|", $filter_tags) . ')," ';
|
89 |
}
|
90 |
|
91 |
+
$query = 'SELECT image.*, rates.rate FROM ' . $wpdb->prefix . 'bwg_image as image LEFT JOIN (SELECT rate, image_id FROM ' . $wpdb->prefix . 'bwg_image_rate WHERE ip="' . $_SERVER['REMOTE_ADDR'] . '") as rates ON image.id=rates.image_id ' . $join . ' WHERE image.published=1 ' . $where;
|
92 |
+
$query .= ' ORDER BY ' . str_replace('RAND()', 'RAND(' . $bwg_random_seed . ')', $sort_by) . ' ' . $order_by;
|
93 |
+
$rows = $wpdb->get_results($query);
|
94 |
|
95 |
$images = array();
|
96 |
if ( !empty($rows) ) {
|
frontend/models/model.php
CHANGED
@@ -222,8 +222,8 @@ class BWGModelSite {
|
|
222 |
$query .= ' AND t2.published=1' . str_replace('{{table}}', 't2', $search_where);
|
223 |
$query .= ')';
|
224 |
$limitation = ' ' . $order_by . ' ' . $limit_str;
|
225 |
-
|
226 |
-
|
227 |
$total = count($wpdb->get_results($query));
|
228 |
}
|
229 |
if ( $rows ) {
|
@@ -235,10 +235,13 @@ class BWGModelSite {
|
|
235 |
else {
|
236 |
$row->permalink = '';
|
237 |
}
|
|
|
238 |
if ( !empty($row->preview_image) ) {
|
|
|
239 |
$row->preview_image = WDWLibrary::image_url_version($row->preview_image, $row->modified_date);
|
240 |
}
|
241 |
if ( !empty($row->random_preview_image) ) {
|
|
|
242 |
$row->random_preview_image = WDWLibrary::image_url_version($row->random_preview_image, $row->modified_date);
|
243 |
}
|
244 |
if ( !$row->preview_image ) {
|
222 |
$query .= ' AND t2.published=1' . str_replace('{{table}}', 't2', $search_where);
|
223 |
$query .= ')';
|
224 |
$limitation = ' ' . $order_by . ' ' . $limit_str;
|
225 |
+
$sql = $query . $limitation;
|
226 |
+
$rows = $wpdb->get_results($sql);
|
227 |
$total = count($wpdb->get_results($query));
|
228 |
}
|
229 |
if ( $rows ) {
|
235 |
else {
|
236 |
$row->permalink = '';
|
237 |
}
|
238 |
+
|
239 |
if ( !empty($row->preview_image) ) {
|
240 |
+
$row->resolution_thumb = WDWLibrary::get_thumb_size($row->preview_image);
|
241 |
$row->preview_image = WDWLibrary::image_url_version($row->preview_image, $row->modified_date);
|
242 |
}
|
243 |
if ( !empty($row->random_preview_image) ) {
|
244 |
+
$row->resolution_thumb = WDWLibrary::get_thumb_size($row->random_preview_image);
|
245 |
$row->random_preview_image = WDWLibrary::image_url_version($row->random_preview_image, $row->modified_date);
|
246 |
}
|
247 |
if ( !$row->preview_image ) {
|
frontend/views/BWGViewAlbum_compact_preview.php
CHANGED
@@ -45,6 +45,7 @@ class BWGViewAlbum_compact_preview extends BWGViewSite {
|
|
45 |
$theme_row->thumb_gal_title_margin = $theme_row->album_compact_gal_title_margin;
|
46 |
$theme_row->thumb_gal_title_align = $theme_row->album_compact_gal_title_align;
|
47 |
$inline_style = $this->inline_styles($bwg, $theme_row, $params);
|
|
|
48 |
if ( !WDWLibrary::elementor_is_active() ) {
|
49 |
if ( !$params['ajax'] ) {
|
50 |
if ( BWG()->options->use_inline_stiles_and_scripts ) {
|
@@ -83,6 +84,17 @@ class BWGViewAlbum_compact_preview extends BWGViewSite {
|
|
83 |
"bwg_search_" . $bwg => $search_value = !empty($_REQUEST['bwg_search_' . $bwg]) ? trim( esc_html($_REQUEST['bwg_search_' . $bwg]) ) : '',
|
84 |
), $_SERVER['REQUEST_URI']);
|
85 |
$title = '<div class="bwg-title1"><div class="bwg-title2">' . ($row->name ? htmlspecialchars_decode($row->name, ENT_COMPAT | ENT_QUOTES) : ' ') . '</div></div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
?>
|
87 |
<div class="bwg-item">
|
88 |
<a class="<?php echo $from !== "widget" ? 'bwg-album ' : ''; ?>bwg_album_<?php echo $bwg; ?>"
|
@@ -95,10 +107,15 @@ class BWGViewAlbum_compact_preview extends BWGViewSite {
|
|
95 |
data-title="<?php echo htmlspecialchars(addslashes($row->name)); ?>"
|
96 |
data-bwg="<?php echo $bwg; ?>">
|
97 |
<?php if ( $params['compuct_album_title'] == 'show' && $theme_row->album_compact_thumb_title_pos == 'top' ) { echo $title; } ?>
|
98 |
-
<div class="bwg-item0">
|
99 |
<div class="bwg-item1 <?php echo $theme_row->album_compact_thumb_hover_effect == 'zoom' && $params['compuct_album_title'] == 'hover' ? 'bwg-zoom-effect' : ''; ?>">
|
100 |
<div class="bwg-item2">
|
101 |
-
<img class="skip-lazy
|
|
|
|
|
|
|
|
|
|
|
102 |
</div>
|
103 |
<div class="<?php echo $theme_row->album_compact_thumb_hover_effect == 'zoom' && $params['compuct_album_title'] == 'hover' ? 'bwg-zoom-effect-overlay' : ''; ?>">
|
104 |
<?php if ( $params['compuct_album_title'] == 'hover' ) { echo $title; } ?>
|
45 |
$theme_row->thumb_gal_title_margin = $theme_row->album_compact_gal_title_margin;
|
46 |
$theme_row->thumb_gal_title_align = $theme_row->album_compact_gal_title_align;
|
47 |
$inline_style = $this->inline_styles($bwg, $theme_row, $params);
|
48 |
+
$lazyload = BWG()->options->lazyload_images;
|
49 |
if ( !WDWLibrary::elementor_is_active() ) {
|
50 |
if ( !$params['ajax'] ) {
|
51 |
if ( BWG()->options->use_inline_stiles_and_scripts ) {
|
84 |
"bwg_search_" . $bwg => $search_value = !empty($_REQUEST['bwg_search_' . $bwg]) ? trim( esc_html($_REQUEST['bwg_search_' . $bwg]) ) : '',
|
85 |
), $_SERVER['REQUEST_URI']);
|
86 |
$title = '<div class="bwg-title1"><div class="bwg-title2">' . ($row->name ? htmlspecialchars_decode($row->name, ENT_COMPAT | ENT_QUOTES) : ' ') . '</div></div>';
|
87 |
+
|
88 |
+
$resolution_thumb = $row->resolution_thumb;
|
89 |
+
$image_thumb_width = '';
|
90 |
+
$image_thumb_height = '';
|
91 |
+
|
92 |
+
if($resolution_thumb != "" && strpos($resolution_thumb,'x') !== false) {
|
93 |
+
$resolution_th = explode("x", $resolution_thumb);
|
94 |
+
$image_thumb_width = $resolution_th[0];
|
95 |
+
$image_thumb_height = $resolution_th[1];
|
96 |
+
}
|
97 |
+
|
98 |
?>
|
99 |
<div class="bwg-item">
|
100 |
<a class="<?php echo $from !== "widget" ? 'bwg-album ' : ''; ?>bwg_album_<?php echo $bwg; ?>"
|
107 |
data-title="<?php echo htmlspecialchars(addslashes($row->name)); ?>"
|
108 |
data-bwg="<?php echo $bwg; ?>">
|
109 |
<?php if ( $params['compuct_album_title'] == 'show' && $theme_row->album_compact_thumb_title_pos == 'top' ) { echo $title; } ?>
|
110 |
+
<div class="bwg-item0 lazy_loader">
|
111 |
<div class="bwg-item1 <?php echo $theme_row->album_compact_thumb_hover_effect == 'zoom' && $params['compuct_album_title'] == 'hover' ? 'bwg-zoom-effect' : ''; ?>">
|
112 |
<div class="bwg-item2">
|
113 |
+
<img class="skip-lazy <?php if( $lazyload ) { ?> bwg_lazyload <?php } ?>"
|
114 |
+
data-width="<?php echo $image_thumb_width; ?>"
|
115 |
+
data-height="<?php echo $image_thumb_height; ?>"
|
116 |
+
data-original="<?php echo $row->preview_image; ?>"
|
117 |
+
src="<?php if( !$lazyload ) { echo $row->preview_image; } else { echo BWG()->plugin_url."/images/lazy_placeholder.gif"; } ?>"
|
118 |
+
alt="<?php echo $row->name; ?>" />
|
119 |
</div>
|
120 |
<div class="<?php echo $theme_row->album_compact_thumb_hover_effect == 'zoom' && $params['compuct_album_title'] == 'hover' ? 'bwg-zoom-effect-overlay' : ''; ?>">
|
121 |
<?php if ( $params['compuct_album_title'] == 'hover' ) { echo $title; } ?>
|
frontend/views/BWGViewAlbum_extended_preview.php
CHANGED
@@ -52,6 +52,8 @@ class BWGViewAlbum_extended_preview extends BWGViewSite {
|
|
52 |
$theme_row->thumb_gal_title_align = $theme_row->album_extended_gal_title_align;
|
53 |
|
54 |
$inline_style = $this->inline_styles($bwg, $theme_row, $params);
|
|
|
|
|
55 |
if ( !WDWLibrary::elementor_is_active() ) {
|
56 |
if ( !$params['ajax'] ) {
|
57 |
if ( BWG()->options->use_inline_stiles_and_scripts ) {
|
@@ -91,6 +93,16 @@ class BWGViewAlbum_extended_preview extends BWGViewSite {
|
|
91 |
"type_" . $bwg => $row->def_type,
|
92 |
"album_gallery_id_" . $bwg => (($params['album_gallery_id'] != 0) ? $row->alb_gal_id : $row->id),
|
93 |
), $_SERVER['REQUEST_URI']);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
?>
|
95 |
<div class="bwg-extended-item">
|
96 |
<div class="bwg-extended-item0">
|
@@ -102,11 +114,14 @@ class BWGViewAlbum_extended_preview extends BWGViewSite {
|
|
102 |
data-alb_gal_id="<?php echo (($params['album_gallery_id'] != 0) ? $row->alb_gal_id : $row->id); ?>"
|
103 |
data-def_type="<?php echo $row->def_type; ?>"
|
104 |
data-title="<?php echo htmlspecialchars(addslashes($row->name)); ?>">
|
105 |
-
<div class="bwg-item0 bwg_album_thumb_<?php echo $bwg; ?>">
|
106 |
<div class="bwg-item1 bwg_album_thumb_spun1_<?php echo $bwg; ?>">
|
107 |
<div class="bwg-item2">
|
108 |
-
<img class="skip-lazy"
|
109 |
-
|
|
|
|
|
|
|
110 |
alt="<?php echo $row->name; ?>" />
|
111 |
</div>
|
112 |
</div>
|
52 |
$theme_row->thumb_gal_title_align = $theme_row->album_extended_gal_title_align;
|
53 |
|
54 |
$inline_style = $this->inline_styles($bwg, $theme_row, $params);
|
55 |
+
$lazyload = BWG()->options->lazyload_images;
|
56 |
+
|
57 |
if ( !WDWLibrary::elementor_is_active() ) {
|
58 |
if ( !$params['ajax'] ) {
|
59 |
if ( BWG()->options->use_inline_stiles_and_scripts ) {
|
93 |
"type_" . $bwg => $row->def_type,
|
94 |
"album_gallery_id_" . $bwg => (($params['album_gallery_id'] != 0) ? $row->alb_gal_id : $row->id),
|
95 |
), $_SERVER['REQUEST_URI']);
|
96 |
+
|
97 |
+
$resolution_thumb = $row->resolution_thumb;
|
98 |
+
$image_thumb_width = '';
|
99 |
+
$image_thumb_height = '';
|
100 |
+
|
101 |
+
if($resolution_thumb != "" && strpos($resolution_thumb,'x') !== false) {
|
102 |
+
$resolution_th = explode("x", $resolution_thumb);
|
103 |
+
$image_thumb_width = $resolution_th[0];
|
104 |
+
$image_thumb_height = $resolution_th[1];
|
105 |
+
}
|
106 |
?>
|
107 |
<div class="bwg-extended-item">
|
108 |
<div class="bwg-extended-item0">
|
114 |
data-alb_gal_id="<?php echo (($params['album_gallery_id'] != 0) ? $row->alb_gal_id : $row->id); ?>"
|
115 |
data-def_type="<?php echo $row->def_type; ?>"
|
116 |
data-title="<?php echo htmlspecialchars(addslashes($row->name)); ?>">
|
117 |
+
<div class="bwg-item0 bwg_album_thumb_<?php echo $bwg; ?> lazy_loader">
|
118 |
<div class="bwg-item1 bwg_album_thumb_spun1_<?php echo $bwg; ?>">
|
119 |
<div class="bwg-item2">
|
120 |
+
<img class="skip-lazy <?php if( $lazyload ) { ?> bwg_lazyload <?php } ?>"
|
121 |
+
data-width="<?php echo $image_thumb_width; ?>"
|
122 |
+
data-height="<?php echo $image_thumb_height; ?>"
|
123 |
+
data-original="<?php echo $row->preview_image; ?>"
|
124 |
+
src="<?php if( !$lazyload ) { echo $row->preview_image; } else { echo BWG()->plugin_url."/images/lazy_placeholder.gif"; } ?>"
|
125 |
alt="<?php echo $row->name; ?>" />
|
126 |
</div>
|
127 |
</div>
|
frontend/views/BWGViewGalleryBox.php
CHANGED
@@ -41,7 +41,6 @@ class BWGViewGalleryBox {
|
|
41 |
$enable_comment_social = (BWG()->is_pro && isset($_GET['enable_comment_social']) ? esc_html($_GET['enable_comment_social']) : 0);
|
42 |
$enable_image_facebook = (BWG()->is_pro && isset($_GET['enable_image_facebook']) ? esc_html($_GET['enable_image_facebook']) : 0);
|
43 |
$enable_image_twitter = (BWG()->is_pro && isset($_GET['enable_image_twitter']) ? esc_html($_GET['enable_image_twitter']) : 0);
|
44 |
-
$enable_image_google = (BWG()->is_pro && isset($_GET['enable_image_google']) ? esc_html($_GET['enable_image_google']) : 0);
|
45 |
$enable_image_ecommerce = BWG()->is_pro ? WDWLibrary::esc_script('get', 'enable_image_ecommerce', 0, 'int') : 0;
|
46 |
$enable_image_pinterest = (BWG()->is_pro && isset($_GET['enable_image_pinterest']) ? esc_html($_GET['enable_image_pinterest']) : 0);
|
47 |
$enable_image_tumblr = (BWG()->is_pro && isset($_GET['enable_image_tumblr']) ? esc_html($_GET['enable_image_tumblr']) : 0);
|
@@ -131,7 +130,6 @@ class BWGViewGalleryBox {
|
|
131 |
'enable_comment_social' => $enable_comment_social,
|
132 |
'enable_image_facebook' => $enable_image_facebook,
|
133 |
'enable_image_twitter' => $enable_image_twitter,
|
134 |
-
'enable_image_google' => $enable_image_google,
|
135 |
'enable_image_ecommerce' => $enable_image_ecommerce,
|
136 |
'enable_image_pinterest' => $enable_image_pinterest,
|
137 |
'enable_image_tumblr' => $enable_image_tumblr,
|
@@ -471,7 +469,6 @@ class BWGViewGalleryBox {
|
|
471 |
}
|
472 |
.bwg_facebook,
|
473 |
.bwg_twitter,
|
474 |
-
.bwg_google,
|
475 |
.bwg_pinterest,
|
476 |
.bwg_tumblr {
|
477 |
color: #<?php echo $theme_row->lightbox_comment_share_button_color; ?>;
|
@@ -674,8 +671,8 @@ class BWGViewGalleryBox {
|
|
674 |
$data[$key] = array();
|
675 |
$data[$key]["number"] = $key + 1;
|
676 |
$data[$key]["id"] = $image_row->id;
|
677 |
-
$data[$key]["alt"] =
|
678 |
-
$data[$key]["description"] =
|
679 |
|
680 |
$image_resolution = explode(' x ', $image_row->resolution);
|
681 |
if (is_array($image_resolution)) {
|
@@ -688,8 +685,8 @@ class BWGViewGalleryBox {
|
|
688 |
$data[$key]["image_height"] = $instagram_post_height;
|
689 |
$data[$key]["pure_image_url"] = $image_row->pure_image_url;
|
690 |
$data[$key]["pure_thumb_url"] = $image_row->pure_thumb_url;
|
691 |
-
$data[$key]["image_url"] =
|
692 |
-
$data[$key]["thumb_url"] =
|
693 |
$data[$key]["date"] = $image_row->date;
|
694 |
$data[$key]["comment_count"] = $image_row->comment_count;
|
695 |
$data[$key]["filetype"] = $image_row->filetype;
|
@@ -725,10 +722,24 @@ class BWGViewGalleryBox {
|
|
725 |
$current_pos = $key * (($filmstrip_direction == 'horizontal' ? $image_filmstrip_width : $image_filmstrip_height) + $filmstrip_thumb_right_left_space);
|
726 |
$current_key = $key;
|
727 |
}
|
728 |
-
|
|
|
729 |
$is_embed = preg_match('/EMBED/',$image_row->filetype)==1 ? true : false;
|
730 |
$is_embed_instagram = preg_match('/EMBED_OEMBED_INSTAGRAM/', $image_row->filetype ) == 1 ? true : false;
|
731 |
-
if (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
732 |
if ($image_row->resolution != '') {
|
733 |
if (!$is_embed_instagram) {
|
734 |
$resolution_arr = explode(" ", $image_row->resolution);
|
@@ -754,23 +765,27 @@ class BWGViewGalleryBox {
|
|
754 |
$image_thumb_width = $image_filmstrip_width;
|
755 |
$image_thumb_height = $image_filmstrip_height;
|
756 |
}
|
757 |
-
|
758 |
-
$_image_filmstrip_width = $image_filmstrip_width - $filmstrip_thumb_right_left_space;
|
759 |
-
$_image_filmstrip_height = $image_filmstrip_height - $filmstrip_thumb_top_bottom_space;
|
760 |
-
$scale = max($image_filmstrip_width / $image_thumb_width, $image_filmstrip_height / $image_thumb_height);
|
761 |
-
$image_thumb_width *= $scale;
|
762 |
-
$image_thumb_height *= $scale;
|
763 |
-
$thumb_left = ($_image_filmstrip_width - $image_thumb_width) / 2;
|
764 |
-
$thumb_top = ($_image_filmstrip_height - $image_thumb_height) / 2;
|
765 |
-
|
766 |
}
|
767 |
-
|
768 |
-
|
769 |
-
|
770 |
-
|
771 |
-
|
772 |
-
|
773 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
774 |
<?php
|
775 |
}
|
776 |
?>
|
@@ -858,13 +873,6 @@ class BWGViewGalleryBox {
|
|
858 |
</a>
|
859 |
<?php
|
860 |
}
|
861 |
-
if ($enable_image_google) {
|
862 |
-
?>
|
863 |
-
<a id="bwg_google_a" href="https://plus.google.com/share?url=<?php echo urlencode($share_url); ?>" target="_blank" title="<?php echo __('Share on Google+', BWG()->prefix); ?>">
|
864 |
-
<i title="<?php echo __('Share on Google+', BWG()->prefix); ?>" class="bwg-icon-google-plus-square bwg_ctrl_btn bwg_google"></i>
|
865 |
-
</a>
|
866 |
-
<?php
|
867 |
-
}
|
868 |
if ($enable_image_pinterest) {
|
869 |
?>
|
870 |
<a id="bwg_pinterest_a" href="http://pinterest.com/pin/create/button/?s=100&url=<?php echo urlencode($share_url); ?>&media=<?php echo $share_image_url; ?>&description=<?php echo $current_image_alt . '%0A' . $current_image_description; ?>" target="_blank" title="<?php echo __('Share on Pinterest', BWG()->prefix); ?>">
|
@@ -1381,7 +1389,7 @@ class BWGViewGalleryBox {
|
|
1381 |
'bwg_share_image_url' => urlencode(BWG()->upload_url),
|
1382 |
'slideshow_interval' => $slideshow_interval,
|
1383 |
'open_with_fullscreen' => $open_with_fullscreen,
|
1384 |
-
'open_with_autoplay'
|
1385 |
'event_stack' => array(),
|
1386 |
'bwg_playInterval' => 0,
|
1387 |
'data' => $data,
|
@@ -1399,9 +1407,9 @@ class BWGViewGalleryBox {
|
|
1399 |
'bwg_ctrl_btn_container_height' => $theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top,
|
1400 |
'filmstrip_thumb_right_left_space' => $filmstrip_thumb_right_left_space,
|
1401 |
'all_images_right_left_space' => $all_images_right_left_space,
|
1402 |
-
'image_right_click'
|
1403 |
-
'open_comment'
|
1404 |
-
'open_ecommerce'
|
1405 |
);
|
1406 |
$gallery_box_data = json_encode( $bwg_gallery_box_params );
|
1407 |
?>
|
41 |
$enable_comment_social = (BWG()->is_pro && isset($_GET['enable_comment_social']) ? esc_html($_GET['enable_comment_social']) : 0);
|
42 |
$enable_image_facebook = (BWG()->is_pro && isset($_GET['enable_image_facebook']) ? esc_html($_GET['enable_image_facebook']) : 0);
|
43 |
$enable_image_twitter = (BWG()->is_pro && isset($_GET['enable_image_twitter']) ? esc_html($_GET['enable_image_twitter']) : 0);
|
|
|
44 |
$enable_image_ecommerce = BWG()->is_pro ? WDWLibrary::esc_script('get', 'enable_image_ecommerce', 0, 'int') : 0;
|
45 |
$enable_image_pinterest = (BWG()->is_pro && isset($_GET['enable_image_pinterest']) ? esc_html($_GET['enable_image_pinterest']) : 0);
|
46 |
$enable_image_tumblr = (BWG()->is_pro && isset($_GET['enable_image_tumblr']) ? esc_html($_GET['enable_image_tumblr']) : 0);
|
130 |
'enable_comment_social' => $enable_comment_social,
|
131 |
'enable_image_facebook' => $enable_image_facebook,
|
132 |
'enable_image_twitter' => $enable_image_twitter,
|
|
|
133 |
'enable_image_ecommerce' => $enable_image_ecommerce,
|
134 |
'enable_image_pinterest' => $enable_image_pinterest,
|
135 |
'enable_image_tumblr' => $enable_image_tumblr,
|
469 |
}
|
470 |
.bwg_facebook,
|
471 |
.bwg_twitter,
|
|
|
472 |
.bwg_pinterest,
|
473 |
.bwg_tumblr {
|
474 |
color: #<?php echo $theme_row->lightbox_comment_share_button_color; ?>;
|
671 |
$data[$key] = array();
|
672 |
$data[$key]["number"] = $key + 1;
|
673 |
$data[$key]["id"] = $image_row->id;
|
674 |
+
$data[$key]["alt"] = str_replace(array("\r\n", "\n", "\r"), esc_html('<br />'), $image_row->alt);
|
675 |
+
$data[$key]["description"] = str_replace(array("\r\n", "\n", "\r"), esc_html('<br />'), $image_row->description);
|
676 |
|
677 |
$image_resolution = explode(' x ', $image_row->resolution);
|
678 |
if (is_array($image_resolution)) {
|
685 |
$data[$key]["image_height"] = $instagram_post_height;
|
686 |
$data[$key]["pure_image_url"] = $image_row->pure_image_url;
|
687 |
$data[$key]["pure_thumb_url"] = $image_row->pure_thumb_url;
|
688 |
+
$data[$key]["image_url"] = $image_row->image_url;
|
689 |
+
$data[$key]["thumb_url"] = $image_row->thumb_url;
|
690 |
$data[$key]["date"] = $image_row->date;
|
691 |
$data[$key]["comment_count"] = $image_row->comment_count;
|
692 |
$data[$key]["filetype"] = $image_row->filetype;
|
722 |
$current_pos = $key * (($filmstrip_direction == 'horizontal' ? $image_filmstrip_width : $image_filmstrip_height) + $filmstrip_thumb_right_left_space);
|
723 |
$current_key = $key;
|
724 |
}
|
725 |
+
$thumb_dimansions = $image_row->resolution_thumb;
|
726 |
+
$resolution_thumb = true;
|
727 |
$is_embed = preg_match('/EMBED/',$image_row->filetype)==1 ? true : false;
|
728 |
$is_embed_instagram = preg_match('/EMBED_OEMBED_INSTAGRAM/', $image_row->filetype ) == 1 ? true : false;
|
729 |
+
if ( !$is_embed ) {
|
730 |
+
if($thumb_dimansions == "" || strpos($thumb_dimansions,'x') === false) {
|
731 |
+
$resolution_thumb = false;
|
732 |
+
}
|
733 |
+
if( $resolution_thumb ) {
|
734 |
+
$resolution_th = explode("x", $thumb_dimansions);
|
735 |
+
$image_thumb_width = $resolution_th[0];
|
736 |
+
$image_thumb_height = $resolution_th[1];
|
737 |
+
} else {
|
738 |
+
$image_thumb_width = 1;
|
739 |
+
$image_thumb_height = 1;
|
740 |
+
}
|
741 |
+
}
|
742 |
+
else {
|
743 |
if ($image_row->resolution != '') {
|
744 |
if (!$is_embed_instagram) {
|
745 |
$resolution_arr = explode(" ", $image_row->resolution);
|
765 |
$image_thumb_width = $image_filmstrip_width;
|
766 |
$image_thumb_height = $image_filmstrip_height;
|
767 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
768 |
}
|
769 |
+
$_image_filmstrip_width = $image_filmstrip_width - $filmstrip_thumb_right_left_space;
|
770 |
+
$_image_filmstrip_height = $image_filmstrip_height - $filmstrip_thumb_top_bottom_space;
|
771 |
+
$scale = max($image_filmstrip_width / $image_thumb_width, $image_filmstrip_height / $image_thumb_height);
|
772 |
+
$image_thumb_width *= $scale;
|
773 |
+
$image_thumb_height *= $scale;
|
774 |
+
$thumb_left = ($_image_filmstrip_width - $image_thumb_width) / 2;
|
775 |
+
$thumb_top = ($_image_filmstrip_height - $image_thumb_height) / 2;
|
776 |
+
?>
|
777 |
+
<div id="bwg_filmstrip_thumbnail_<?php echo $key; ?>" class="bwg_filmstrip_thumbnail <?php echo (($image_row->id == $current_image_id) ? 'bwg_thumb_active' : 'bwg_thumb_deactive'); ?>">
|
778 |
+
<div class="bwg_filmstrip_thumbnail_img_wrap">
|
779 |
+
<img <?php if( $is_embed || $resolution_thumb ) { ?>
|
780 |
+
style="width:<?php echo $image_thumb_width; ?>px; height:<?php echo $image_thumb_height; ?>px; margin-left: <?php echo $thumb_left; ?>px; margin-top: <?php echo $thumb_top; ?>px;" <?php } ?>
|
781 |
+
class="bwg_filmstrip_thumbnail_img hidden"
|
782 |
+
data-url="<?php echo ($is_embed ? "" : BWG()->upload_url) . $image_row->thumb_url; ?>"
|
783 |
+
src=""
|
784 |
+
onclick='bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()), "<?php echo $key; ?>")' ontouchend='bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()), "<?php echo $key; ?>")'
|
785 |
+
image_id="<?php echo $image_row->id; ?>"
|
786 |
+
image_key="<?php echo $key; ?>" alt="<?php echo $image_row->alt; ?>" />
|
787 |
+
</div>
|
788 |
+
</div>
|
789 |
<?php
|
790 |
}
|
791 |
?>
|
873 |
</a>
|
874 |
<?php
|
875 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
876 |
if ($enable_image_pinterest) {
|
877 |
?>
|
878 |
<a id="bwg_pinterest_a" href="http://pinterest.com/pin/create/button/?s=100&url=<?php echo urlencode($share_url); ?>&media=<?php echo $share_image_url; ?>&description=<?php echo $current_image_alt . '%0A' . $current_image_description; ?>" target="_blank" title="<?php echo __('Share on Pinterest', BWG()->prefix); ?>">
|
1389 |
'bwg_share_image_url' => urlencode(BWG()->upload_url),
|
1390 |
'slideshow_interval' => $slideshow_interval,
|
1391 |
'open_with_fullscreen' => $open_with_fullscreen,
|
1392 |
+
'open_with_autoplay' => $open_with_autoplay,
|
1393 |
'event_stack' => array(),
|
1394 |
'bwg_playInterval' => 0,
|
1395 |
'data' => $data,
|
1407 |
'bwg_ctrl_btn_container_height' => $theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top,
|
1408 |
'filmstrip_thumb_right_left_space' => $filmstrip_thumb_right_left_space,
|
1409 |
'all_images_right_left_space' => $all_images_right_left_space,
|
1410 |
+
'image_right_click' => $image_right_click,
|
1411 |
+
'open_comment' => $open_comment,
|
1412 |
+
'open_ecommerce' => $open_ecommerce,
|
1413 |
);
|
1414 |
$gallery_box_data = json_encode( $bwg_gallery_box_params );
|
1415 |
?>
|
frontend/views/BWGViewImage_browser.php
CHANGED
@@ -19,6 +19,7 @@ class BWGViewImage_browser extends BWGViewSite {
|
|
19 |
$page_nav = $image_rows['page_nav'];
|
20 |
$images = $image_rows['images'];
|
21 |
$items_per_page = array('images_per_page' => 1, 'load_more_image_count' => 1);
|
|
|
22 |
if ( $params['watermark_type'] == 'none' ) {
|
23 |
$text_align = '';
|
24 |
$vertical_align = '';
|
@@ -118,7 +119,10 @@ class BWGViewImage_browser extends BWGViewSite {
|
|
118 |
if ( !$is_embed ) {
|
119 |
?>
|
120 |
<a style="position:relative;" <?php echo($params['thumb_click_action'] == 'open_lightbox' ? (' class="bwg_lightbox" data-image-id="' . $image_row->id . '"') : ($params['thumb_click_action'] == 'redirect_to_url' && $image_row->redirect_url ? 'href="' . $image_row->redirect_url . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : '')) ?>>
|
121 |
-
<img class="skip-lazy bwg-item0 bwg_image_browser_img bwg_image_browser_img_<?php echo $bwg; ?>
|
|
|
|
|
|
|
122 |
</a>
|
123 |
<?php
|
124 |
}
|
19 |
$page_nav = $image_rows['page_nav'];
|
20 |
$images = $image_rows['images'];
|
21 |
$items_per_page = array('images_per_page' => 1, 'load_more_image_count' => 1);
|
22 |
+
$lazyload = BWG()->options->lazyload_images;
|
23 |
if ( $params['watermark_type'] == 'none' ) {
|
24 |
$text_align = '';
|
25 |
$vertical_align = '';
|
119 |
if ( !$is_embed ) {
|
120 |
?>
|
121 |
<a style="position:relative;" <?php echo($params['thumb_click_action'] == 'open_lightbox' ? (' class="bwg_lightbox" data-image-id="' . $image_row->id . '"') : ($params['thumb_click_action'] == 'redirect_to_url' && $image_row->redirect_url ? 'href="' . $image_row->redirect_url . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : '')) ?>>
|
122 |
+
<img class="skip-lazy bwg-item0 bwg_image_browser_img bwg_image_browser_img_<?php echo $bwg; ?> <?php if( $lazyload ) { ?> bwg_lazyload lazy_loader<?php } ?>"
|
123 |
+
src="<?php if( !$lazyload ) { echo BWG()->upload_url . $image_row->image_url; } else { echo BWG()->plugin_url."/images/lazy_placeholder.gif"; } ?>"
|
124 |
+
data-original="<?php echo BWG()->upload_url . $image_row->image_url; ?>"
|
125 |
+
alt="<?php echo $image_row->alt; ?>" />
|
126 |
</a>
|
127 |
<?php
|
128 |
}
|
frontend/views/BWGViewSlideshow.php
CHANGED
@@ -8,6 +8,7 @@ public function display($params = array(), $bwg = 0) {
|
|
8 |
$image_rows = $image_rows['images'];
|
9 |
$images_count = count($image_rows);
|
10 |
$content = '';
|
|
|
11 |
|
12 |
if ( $images_count ) {
|
13 |
$filmstrip_direction = 'horizontal';
|
@@ -99,8 +100,8 @@ public function display($params = array(), $bwg = 0) {
|
|
99 |
if ( !wp_script_is('bwg_embed', 'done') ) {
|
100 |
wp_print_scripts('bwg_embed');
|
101 |
}
|
102 |
-
if ( !wp_script_is('
|
103 |
-
wp_print_scripts('
|
104 |
}
|
105 |
}
|
106 |
else {
|
@@ -246,7 +247,14 @@ public function display($params = array(), $bwg = 0) {
|
|
246 |
$thumb_top = ($slideshow_filmstrip_height - $image_thumb_height) / 2;
|
247 |
?>
|
248 |
<div id="bwg_filmstrip_thumbnail_<?php echo $key; ?>_<?php echo $bwg; ?>" class="bwg_slideshow_filmstrip_thumbnail_<?php echo $bwg; ?> <?php echo(($image_row->id == $current_image_id) ? 'bwg_slideshow_thumb_active_' . $bwg : 'bwg_slideshow_thumb_deactive_' . $bwg); ?>">
|
249 |
-
<img style="width:<?php echo $image_thumb_width; ?>px; height:<?php echo $image_thumb_height; ?>px; margin-left: <?php echo $thumb_left; ?>px; margin-top: <?php echo $thumb_top; ?>px;"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
250 |
</div>
|
251 |
<?php
|
252 |
}
|
@@ -300,7 +308,12 @@ public function display($params = array(), $bwg = 0) {
|
|
300 |
if ( !$is_embed ) {
|
301 |
?>
|
302 |
<a <?php echo($params['thumb_click_action'] == 'open_lightbox' ? (' class="bwg_lightbox"' . (BWG()->options->enable_seo ? ' href="' . ($is_embed ? $image_row->thumb_url : BWG()->upload_url . $image_row->image_url) . '"' : '') . ' data-image-id="' . $image_row->id . '"') : ($params['thumb_click_action'] == 'redirect_to_url' && $image_row->redirect_url ? 'href="' . $image_row->redirect_url . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : '')) ?>>
|
303 |
-
<img id="bwg_slideshow_image_<?php echo $bwg; ?>"
|
|
|
|
|
|
|
|
|
|
|
304 |
</a>
|
305 |
<?php
|
306 |
}
|
@@ -364,7 +377,12 @@ public function display($params = array(), $bwg = 0) {
|
|
364 |
if ( !$is_embed ) {
|
365 |
?>
|
366 |
<a <?php echo($params['thumb_click_action'] == 'open_lightbox' ? (' class="bwg_lightbox_' . $bwg . '"' . (BWG()->options->enable_seo ? ' href="' . ($is_embed ? $image_row->thumb_url : BWG()->upload_url . $image_row->image_url) . '"' : '') . ' data-image-id="' . $image_row->id . '"') : ($params['thumb_click_action'] == 'redirect_to_url' && $image_row->redirect_url ? 'href="' . $image_row->redirect_url . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : '')) ?>>
|
367 |
-
<img id="bwg_slideshow_image_<?php echo $bwg; ?>"
|
|
|
|
|
|
|
|
|
|
|
368 |
</a>
|
369 |
<?php
|
370 |
}
|
8 |
$image_rows = $image_rows['images'];
|
9 |
$images_count = count($image_rows);
|
10 |
$content = '';
|
11 |
+
$lazyload = BWG()->options->lazyload_images;
|
12 |
|
13 |
if ( $images_count ) {
|
14 |
$filmstrip_direction = 'horizontal';
|
100 |
if ( !wp_script_is('bwg_embed', 'done') ) {
|
101 |
wp_print_scripts('bwg_embed');
|
102 |
}
|
103 |
+
if ( !wp_script_is('jquery-mobile', 'done') ) {
|
104 |
+
wp_print_scripts('jquery-mobile');
|
105 |
}
|
106 |
}
|
107 |
else {
|
247 |
$thumb_top = ($slideshow_filmstrip_height - $image_thumb_height) / 2;
|
248 |
?>
|
249 |
<div id="bwg_filmstrip_thumbnail_<?php echo $key; ?>_<?php echo $bwg; ?>" class="bwg_slideshow_filmstrip_thumbnail_<?php echo $bwg; ?> <?php echo(($image_row->id == $current_image_id) ? 'bwg_slideshow_thumb_active_' . $bwg : 'bwg_slideshow_thumb_deactive_' . $bwg); ?>">
|
250 |
+
<img style="width:<?php echo $image_thumb_width; ?>px; height:<?php echo $image_thumb_height; ?>px; margin-left: <?php echo $thumb_left; ?>px; margin-top: <?php echo $thumb_top; ?>px;"
|
251 |
+
class="skip-lazy bwg_filmstrip_thumbnail_img bwg_slideshow_filmstrip_thumbnail_img_<?php echo $bwg; ?> <?php if( $lazyload ) { ?> bwg_lazyload <?php } ?>"
|
252 |
+
src="<?php if( !$lazyload ) { echo ($is_embed ? "" : BWG()->upload_url) . $image_row->thumb_url; } else { echo BWG()->plugin_url."/images/lazy_placeholder.gif"; } ?>"
|
253 |
+
data-original="<?php echo ($is_embed ? "" : BWG()->upload_url) . $image_row->thumb_url; ?>"
|
254 |
+
onclick="bwg_change_image(parseInt(jQuery('#bwg_current_image_key_<?php echo $bwg; ?>').val()), '<?php echo $key; ?>', '', '', '<?php echo $bwg; ?>')"
|
255 |
+
image_id="<?php echo $image_row->id; ?>"
|
256 |
+
image_key="<?php echo $key; ?>"
|
257 |
+
alt="<?php echo $image_row->alt; ?>" />
|
258 |
</div>
|
259 |
<?php
|
260 |
}
|
308 |
if ( !$is_embed ) {
|
309 |
?>
|
310 |
<a <?php echo($params['thumb_click_action'] == 'open_lightbox' ? (' class="bwg_lightbox"' . (BWG()->options->enable_seo ? ' href="' . ($is_embed ? $image_row->thumb_url : BWG()->upload_url . $image_row->image_url) . '"' : '') . ' data-image-id="' . $image_row->id . '"') : ($params['thumb_click_action'] == 'redirect_to_url' && $image_row->redirect_url ? 'href="' . $image_row->redirect_url . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : '')) ?>>
|
311 |
+
<img id="bwg_slideshow_image_<?php echo $bwg; ?>"
|
312 |
+
class="skip-lazy bwg_slide bwg_slideshow_image_<?php echo $bwg; ?> <?php if( $lazyload ) { ?> bwg_lazyload <?php } ?>"
|
313 |
+
src="<?php if( !$lazyload ) { echo BWG()->upload_url . $image_row->image_url; } else { echo BWG()->plugin_url."/images/lazy_placeholder.gif"; } ?>"
|
314 |
+
data-original="<?php echo BWG()->upload_url . $image_row->image_url; ?>"
|
315 |
+
image_id="<?php echo $image_row->id; ?>"
|
316 |
+
alt="<?php echo $image_row->alt; ?>" />
|
317 |
</a>
|
318 |
<?php
|
319 |
}
|
377 |
if ( !$is_embed ) {
|
378 |
?>
|
379 |
<a <?php echo($params['thumb_click_action'] == 'open_lightbox' ? (' class="bwg_lightbox_' . $bwg . '"' . (BWG()->options->enable_seo ? ' href="' . ($is_embed ? $image_row->thumb_url : BWG()->upload_url . $image_row->image_url) . '"' : '') . ' data-image-id="' . $image_row->id . '"') : ($params['thumb_click_action'] == 'redirect_to_url' && $image_row->redirect_url ? 'href="' . $image_row->redirect_url . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : '')) ?>>
|
380 |
+
<img id="bwg_slideshow_image_<?php echo $bwg; ?>"
|
381 |
+
class="skip-lazy bwg_slide bwg_slideshow_image_<?php echo $bwg; ?> <?php if( $lazyload ) { ?> bwg_lazyload lazy_loader <?php } ?>"
|
382 |
+
src="<?php if( !$lazyload ) { echo BWG()->upload_url . $image_row->image_url; } else { echo BWG()->plugin_url."/images/lazy_placeholder.gif"; } ?>"
|
383 |
+
data-original="<?php echo BWG()->upload_url . $image_row->image_url; ?>"
|
384 |
+
image_id="<?php echo $image_row->id; ?>"
|
385 |
+
alt="<?php echo $image_row->alt; ?>" />
|
386 |
</a>
|
387 |
<?php
|
388 |
}
|
frontend/views/BWGViewThumbnails.php
CHANGED
@@ -5,6 +5,7 @@ class BWGViewThumbnails extends BWGViewSite {
|
|
5 |
$image_rows = $params['image_rows'];
|
6 |
$image_rows = $image_rows['images'];
|
7 |
$inline_style = $this->inline_styles($bwg, $theme_row, $params);
|
|
|
8 |
if ( !WDWLibrary::elementor_is_active() ) {
|
9 |
if ( !$ajax ) {
|
10 |
if ( BWG()->options->use_inline_stiles_and_scripts ) {
|
@@ -60,16 +61,30 @@ class BWGViewThumbnails extends BWGViewSite {
|
|
60 |
elseif ( $params['thumb_click_action'] == 'redirect_to_url' && $image_row->redirect_url ) {
|
61 |
$href = ' href="' . $image_row->redirect_url . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"';
|
62 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
?>
|
64 |
<div class="bwg-item">
|
65 |
<a <?php echo $class; ?><?php echo $data_image_id; ?><?php echo $href; ?>>
|
66 |
<?php if ( $params['image_title'] == 'show' && $theme_row->thumb_title_pos == 'top' ) { echo $title; } ?>
|
67 |
-
<div class="bwg-item0">
|
68 |
<div class="bwg-item1 <?php echo $theme_row->thumb_hover_effect == 'zoom' && $params['image_title'] == 'hover' ? 'bwg-zoom-effect' : ''; ?>">
|
69 |
<div class="bwg-item2">
|
70 |
-
<img class="skip-lazy bwg_standart_thumb_img_<?php echo $bwg; ?>"
|
71 |
data-id="<?php echo $image_row->id; ?>"
|
72 |
-
|
|
|
|
|
|
|
73 |
alt="<?php echo $image_row->alt; ?>" />
|
74 |
</div>
|
75 |
<div class="<?php echo $theme_row->thumb_hover_effect == 'zoom' && $params['image_title'] == 'hover' ? 'bwg-zoom-effect-overlay' : ''; ?>">
|
5 |
$image_rows = $params['image_rows'];
|
6 |
$image_rows = $image_rows['images'];
|
7 |
$inline_style = $this->inline_styles($bwg, $theme_row, $params);
|
8 |
+
$lazyload = BWG()->options->lazyload_images;
|
9 |
if ( !WDWLibrary::elementor_is_active() ) {
|
10 |
if ( !$ajax ) {
|
11 |
if ( BWG()->options->use_inline_stiles_and_scripts ) {
|
61 |
elseif ( $params['thumb_click_action'] == 'redirect_to_url' && $image_row->redirect_url ) {
|
62 |
$href = ' href="' . $image_row->redirect_url . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"';
|
63 |
}
|
64 |
+
|
65 |
+
$resolution_thumb = $image_row->resolution_thumb;
|
66 |
+
$image_thumb_width = '';
|
67 |
+
$image_thumb_height = '';
|
68 |
+
|
69 |
+
if($resolution_thumb != "" && strpos($resolution_thumb,'x') !== false) {
|
70 |
+
$resolution_th = explode("x", $resolution_thumb);
|
71 |
+
$image_thumb_width = $resolution_th[0];
|
72 |
+
$image_thumb_height = $resolution_th[1];
|
73 |
+
}
|
74 |
+
|
75 |
?>
|
76 |
<div class="bwg-item">
|
77 |
<a <?php echo $class; ?><?php echo $data_image_id; ?><?php echo $href; ?>>
|
78 |
<?php if ( $params['image_title'] == 'show' && $theme_row->thumb_title_pos == 'top' ) { echo $title; } ?>
|
79 |
+
<div class="bwg-item0 <?php if( $lazyload ) { ?> lazy_loader <?php } ?>">
|
80 |
<div class="bwg-item1 <?php echo $theme_row->thumb_hover_effect == 'zoom' && $params['image_title'] == 'hover' ? 'bwg-zoom-effect' : ''; ?>">
|
81 |
<div class="bwg-item2">
|
82 |
+
<img class="skip-lazy bwg_standart_thumb_img_<?php echo $bwg; ?> <?php if( $lazyload ) { ?> bwg_lazyload <?php } ?>"
|
83 |
data-id="<?php echo $image_row->id; ?>"
|
84 |
+
data-width="<?php echo $image_thumb_width; ?>"
|
85 |
+
data-height="<?php echo $image_thumb_height; ?>"
|
86 |
+
data-original="<?php echo ($is_embed ? "" : BWG()->upload_url) . $image_row->thumb_url; ?>"
|
87 |
+
src="<?php if( !$lazyload ) { echo ($is_embed ? "" : BWG()->upload_url) . $image_row->thumb_url; } else { echo BWG()->plugin_url."/images/lazy_placeholder.gif"; } ?>"
|
88 |
alt="<?php echo $image_row->alt; ?>" />
|
89 |
</div>
|
90 |
<div class="<?php echo $theme_row->thumb_hover_effect == 'zoom' && $params['image_title'] == 'hover' ? 'bwg-zoom-effect-overlay' : ''; ?>">
|
frontend/views/view.php
CHANGED
@@ -7,14 +7,14 @@ class BWGViewSite {
|
|
7 |
if ( (isset($params['show_tag_box']) && $params['show_tag_box'])
|
8 |
|| (isset($params['show_sort_images']) && $params['show_sort_images'])
|
9 |
|| $params['album_view_type'] == 'album' ) {
|
10 |
-
if ( !wp_script_is('
|
11 |
-
wp_print_scripts('
|
12 |
}
|
13 |
}
|
14 |
if ( $params['thumb_click_action'] == 'open_lightbox' ) {
|
15 |
if ( $params['popup_enable_comment'] ) {
|
16 |
-
if ( !wp_script_is('
|
17 |
-
wp_print_scripts('
|
18 |
}
|
19 |
}
|
20 |
if ( $params['popup_enable_fullscreen'] ) {
|
@@ -31,8 +31,8 @@ class BWGViewSite {
|
|
31 |
}
|
32 |
}
|
33 |
}
|
34 |
-
if ( !wp_script_is('
|
35 |
-
wp_print_scripts('
|
36 |
}
|
37 |
if ( !wp_script_is('bwg_frontend', 'done') ) {
|
38 |
wp_print_scripts('bwg_frontend');
|
@@ -126,6 +126,7 @@ class BWGViewSite {
|
|
126 |
?>
|
127 |
<div id="bwg_spider_popup_loading_<?php echo $bwg; ?>" class="bwg_spider_popup_loading"></div>
|
128 |
<div id="spider_popup_overlay_<?php echo $bwg; ?>" class="spider_popup_overlay" onclick="spider_destroypopup(1000)"></div>
|
|
|
129 |
<?php
|
130 |
}
|
131 |
?>
|
7 |
if ( (isset($params['show_tag_box']) && $params['show_tag_box'])
|
8 |
|| (isset($params['show_sort_images']) && $params['show_sort_images'])
|
9 |
|| $params['album_view_type'] == 'album' ) {
|
10 |
+
if ( !wp_script_is('sumoselect', 'done') ) {
|
11 |
+
wp_print_scripts('sumoselect');
|
12 |
}
|
13 |
}
|
14 |
if ( $params['thumb_click_action'] == 'open_lightbox' ) {
|
15 |
if ( $params['popup_enable_comment'] ) {
|
16 |
+
if ( !wp_script_is('mCustomScrollbar', 'done') ) {
|
17 |
+
wp_print_scripts('mCustomScrollbar');
|
18 |
}
|
19 |
}
|
20 |
if ( $params['popup_enable_fullscreen'] ) {
|
31 |
}
|
32 |
}
|
33 |
}
|
34 |
+
if ( !wp_script_is('jquery-mobile', 'done') ) {
|
35 |
+
wp_print_scripts('jquery-mobile');
|
36 |
}
|
37 |
if ( !wp_script_is('bwg_frontend', 'done') ) {
|
38 |
wp_print_scripts('bwg_frontend');
|
126 |
?>
|
127 |
<div id="bwg_spider_popup_loading_<?php echo $bwg; ?>" class="bwg_spider_popup_loading"></div>
|
128 |
<div id="spider_popup_overlay_<?php echo $bwg; ?>" class="spider_popup_overlay" onclick="spider_destroypopup(1000)"></div>
|
129 |
+
<input type="hidden" id="bwg_random_seed_<?php echo $bwg; ?>" value="<?php echo isset($_SESSION['bwg_random_seed_' . $bwg]) ? $_SESSION['bwg_random_seed_' . $bwg] : '' ?>">
|
130 |
<?php
|
131 |
}
|
132 |
?>
|
images/lazy_placeholder.gif
ADDED
Binary file
|
insert.php
CHANGED
@@ -72,6 +72,7 @@ class BWGInsert {
|
|
72 |
`size` varchar(128) NOT NULL,
|
73 |
`filetype` varchar(128) NOT NULL,
|
74 |
`resolution` varchar(128) NOT NULL,
|
|
|
75 |
`author` bigint(20) NOT NULL,
|
76 |
`order` bigint(20) NOT NULL,
|
77 |
`published` tinyint(1) NOT NULL,
|
@@ -157,6 +158,7 @@ class BWGInsert {
|
|
157 |
`thumb` varchar(250),
|
158 |
`size` varchar(10),
|
159 |
`resolution` varchar(15),
|
|
|
160 |
`credit` varchar(250),
|
161 |
`aperture` int(10),
|
162 |
`camera` varchar(250),
|
72 |
`size` varchar(128) NOT NULL,
|
73 |
`filetype` varchar(128) NOT NULL,
|
74 |
`resolution` varchar(128) NOT NULL,
|
75 |
+
`resolution_thumb` varchar(128) NOT NULL,
|
76 |
`author` bigint(20) NOT NULL,
|
77 |
`order` bigint(20) NOT NULL,
|
78 |
`published` tinyint(1) NOT NULL,
|
158 |
`thumb` varchar(250),
|
159 |
`size` varchar(10),
|
160 |
`resolution` varchar(15),
|
161 |
+
`resolution_thumb` varchar(15),
|
162 |
`credit` varchar(250),
|
163 |
`aperture` int(10),
|
164 |
`camera` varchar(250),
|
js/bwg.js
CHANGED
@@ -153,6 +153,51 @@ jQuery(document).ready(function () {
|
|
153 |
var value = jQuery(this).val();
|
154 |
show_hide_extended_album_view( value );
|
155 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
156 |
});
|
157 |
|
158 |
/* Load gallery images */
|
@@ -307,7 +352,6 @@ function spider_ajax_save(form_id, tr_group) {
|
|
307 |
post_data["redirecturl"] = jQuery("#redirecturl").val();
|
308 |
/* Images bulk add tags ids. */
|
309 |
post_data["added_tags_id"] = jQuery("#added_tags_id").val();
|
310 |
-
|
311 |
/* Images data. */
|
312 |
for (var i in ids_array) {
|
313 |
if (ids_array.hasOwnProperty(i) && ids_array[i]) {
|
@@ -324,11 +368,14 @@ function spider_ajax_save(form_id, tr_group) {
|
|
324 |
post_data["input_size_" + ids_array[i]] = jQuery("#input_size_" + ids_array[i]).val();
|
325 |
post_data["input_filetype_" + ids_array[i]] = jQuery("#input_filetype_" + ids_array[i]).val();
|
326 |
post_data["input_resolution_" + ids_array[i]] = jQuery("#input_resolution_" + ids_array[i]).val();
|
|
|
327 |
post_data["input_crop_" + ids_array[i]] = jQuery("#input_crop_" + ids_array[i]).val();
|
328 |
post_data["order_input_" + ids_array[i]] = jQuery("#order_input_" + ids_array[i]).val();
|
329 |
post_data["tags_" + ids_array[i]] = jQuery("#tags_" + ids_array[i]).val();
|
330 |
}
|
331 |
}
|
|
|
|
|
332 |
|
333 |
/* Loading. */
|
334 |
jQuery("#loading_div").show();
|
@@ -789,7 +836,7 @@ function bwg_add_tag(image_id, tagIds, titles) {
|
|
789 |
tag_ids = tag_ids + tagIds[i] + ',';
|
790 |
var html = jQuery("#" + image_id + "_tag_temptagid").clone().html();
|
791 |
/* Remove white spaces from keywords to set as id and remove prefix.*/
|
792 |
-
var id = tagIds[i].replace(/\s+/g, '_').replace('bwg_', '').replace(/&/g, "").replace(/&/g, "").replace(/'/g, "39").replace(/"/g, "34");
|
793 |
html = html.replace(/temptagid/g, id)
|
794 |
.replace(/temptagname/g, titles[i]);
|
795 |
jQuery("#tags_div_" + image_id).append("<div class='tag_div' id='" + image_id + "_tag_" + id + "'>");
|
@@ -1053,7 +1100,7 @@ bwg_gallery_change_update_flag = jQuery(function () {
|
|
1053 |
*/
|
1054 |
function bwg_change_gallery_type(type_to_set, warning_type, instagram_client_id) {
|
1055 |
warning_type = (typeof warning_type === "undefined") ? "default" : warning_type;
|
1056 |
-
|
1057 |
if (type_to_set == 'instagram') {
|
1058 |
if (instagram_client_id == '') {
|
1059 |
alert(bwg_objectL10B.bwg_access_token);
|
@@ -1064,7 +1111,6 @@ function bwg_change_gallery_type(type_to_set, warning_type, instagram_client_id)
|
|
1064 |
return false;
|
1065 |
}
|
1066 |
|
1067 |
-
jQuery("#add_facebook_gallery").hide();
|
1068 |
jQuery("#add_instagram_gallery").show();
|
1069 |
|
1070 |
jQuery('#gallery_type').val('instagram');
|
@@ -1074,15 +1120,24 @@ function bwg_change_gallery_type(type_to_set, warning_type, instagram_client_id)
|
|
1074 |
jQuery('.spider_delete_button').hide();
|
1075 |
jQuery('#spider_resize_button').hide();
|
1076 |
jQuery('#content-add_media').hide();
|
|
|
|
|
1077 |
jQuery('#show_add_embed').hide();
|
1078 |
jQuery('#show_bulk_embed').hide();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1079 |
}
|
1080 |
else if(type_to_set == 'facebook') {
|
1081 |
if (!bwg_check_gallery_empty(true, true)) {
|
1082 |
return false;
|
1083 |
}
|
1084 |
jQuery('#add_facebook_gallery').show();
|
1085 |
-
jQuery("#add_instagram_gallery").hide();
|
1086 |
|
1087 |
jQuery('#gallery_type').val('facebook');
|
1088 |
jQuery('#tr_instagram_post_gallery').hide();
|
@@ -1091,6 +1146,8 @@ function bwg_change_gallery_type(type_to_set, warning_type, instagram_client_id)
|
|
1091 |
jQuery('.spider_delete_button').hide();
|
1092 |
jQuery('#spider_resize_button').hide();
|
1093 |
jQuery('#content-add_media').hide();
|
|
|
|
|
1094 |
jQuery('#show_add_embed').hide();
|
1095 |
jQuery('#show_bulk_embed').hide();
|
1096 |
|
@@ -1103,6 +1160,32 @@ function bwg_change_gallery_type(type_to_set, warning_type, instagram_client_id)
|
|
1103 |
/* default limit 20 */
|
1104 |
jQuery("#facebook_gallery_image_limit").val(20);
|
1105 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1106 |
else {
|
1107 |
var ids_string = jQuery("#ids_string").val();
|
1108 |
ids_array = ids_string.split(",");
|
@@ -1136,11 +1219,18 @@ function bwg_change_gallery_type(type_to_set, warning_type, instagram_client_id)
|
|
1136 |
jQuery('.spider_delete_button').show();
|
1137 |
jQuery('#spider_resize_button').show();
|
1138 |
jQuery('#content-add_media').show();
|
|
|
|
|
1139 |
jQuery('#show_add_embed').show();
|
1140 |
jQuery('#show_bulk_embed').show();
|
1141 |
|
1142 |
-
|
1143 |
-
jQuery("#
|
|
|
|
|
|
|
|
|
|
|
1144 |
}
|
1145 |
return true;
|
1146 |
}
|
@@ -1646,18 +1736,20 @@ function bwg_add_image(files) {
|
|
1646 |
var is_direct_url = files[i]['filetype'].indexOf("DIRECT_URL_") > -1 ? true : false;
|
1647 |
var is_facebook_post = files[i]['filetype'].indexOf("_FACEBOOK_POST") > -1 ? 1 : 0;
|
1648 |
var fb_post_url = (is_facebook_post) ? files[i]['filename'] : '';
|
1649 |
-
var instagram_post_width = files[i]['resolution'].split('
|
1650 |
-
var instagram_post_height = files[i]['resolution'].split('
|
1651 |
-
|
1652 |
var html = jQuery(".wd-template").clone().html();
|
|
|
|
|
1653 |
html = html.replace(/tempid/g, bwg_j)
|
1654 |
.replace(/tempnum/g, 1)
|
1655 |
.replace(/tempimage_url/g, encodeURIComponent(files[i]['url']))
|
1656 |
.replace(/tempthumb_url/g, encodeURIComponent(files[i]['thumb_url']))
|
1657 |
.replace(/tempthumb_src=""/g, 'src="' + files[i]['thumb'] + '"')
|
1658 |
-
.replace(/tempfilename/g,
|
1659 |
.replace(/tempdate/g, files[i]['date_modified'])
|
1660 |
.replace(/tempresolution/g, files[i]['resolution'])
|
|
|
1661 |
.replace(/temp_instagram_post_width/g, instagram_post_width)
|
1662 |
.replace(/temp_instagram_post_height/g, instagram_post_height)
|
1663 |
.replace(/tempsize/g, files[i]['size'])
|
@@ -1665,7 +1757,7 @@ function bwg_add_image(files) {
|
|
1665 |
.replace(/tempis_facebook_post/g, (is_facebook_post ? files[i]['is_facebook_post'] : 0))
|
1666 |
.replace(/tempfb_post_url/g, (is_facebook_post ? files[i]['fb_post_url'] : 0));
|
1667 |
if ( is_embed ) {
|
1668 |
-
html = html.replace(/tempalt/g,
|
1669 |
html = html.replace(/wd-image-actions/g, 'wd-image-actions wd-hide');
|
1670 |
}
|
1671 |
else {
|
@@ -1824,6 +1916,7 @@ function bwg_gallery_type_options(gallery_type) {
|
|
1824 |
}
|
1825 |
jQuery('#bwg_tab_galleries_content .gallery_type').removeClass('gallery_type_active');
|
1826 |
jQuery('input[name=gallery_type][id=' + gallery_type + ']').attr('checked', 'checked').closest('.gallery_type').addClass('gallery_type_active');
|
|
|
1827 |
}
|
1828 |
|
1829 |
function bwg_album_type_options(album_type) {
|
@@ -1842,6 +1935,7 @@ function bwg_album_type_options(album_type) {
|
|
1842 |
}
|
1843 |
jQuery('#bwg_tab_albums_content .gallery_type').removeClass('gallery_type_active');
|
1844 |
jQuery('input[name=album_type][id=' + album_type + ']').attr('checked', 'checked').closest('.gallery_type').addClass('gallery_type_active');
|
|
|
1845 |
}
|
1846 |
|
1847 |
function bwg_pagination_description(that) {
|
@@ -2180,4 +2274,269 @@ function show_hide_extended_album_view ( val ) {
|
|
2180 |
|
2181 |
function bwg_show_hide(id, display) {
|
2182 |
jQuery("#" + id).css('display', display);
|
2183 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
153 |
var value = jQuery(this).val();
|
154 |
show_hide_extended_album_view( value );
|
155 |
});
|
156 |
+
/*jQuery( window ). scroll(function(){
|
157 |
+
if( jQuery( window ).scrollTop() >= jQuery( 'div.wd-page-title' ).offset().top ) {
|
158 |
+
jQuery( '#search_in_options_container' ).addClass('fixed');
|
159 |
+
} else{
|
160 |
+
jQuery( '#search_in_options_container' ).removeClass('fixed');
|
161 |
+
}
|
162 |
+
});
|
163 |
+
jQuery( '.tabs' ).click(function(){
|
164 |
+
search_options();
|
165 |
+
});
|
166 |
+
jQuery( '#search_in_options' ).keydown(function(e){
|
167 |
+
var shifted = false;
|
168 |
+
if( e.keyCode == 37 ){
|
169 |
+
jQuery( '#search_prev' ).click();
|
170 |
+
} else if( e.keyCode == 39 ){
|
171 |
+
jQuery( '#search_next' ).click();
|
172 |
+
} else if( e.keyCode == 13 ){
|
173 |
+
e.preventDefault();
|
174 |
+
return;
|
175 |
+
}
|
176 |
+
});
|
177 |
+
jQuery( '#search_in_options' ).keyup(function(e){
|
178 |
+
if( e.keyCode > 64 && e.keyCode < 96 || !e.keyCode || e.keyCode == 8 ) {
|
179 |
+
search_options();
|
180 |
+
} else if( e.keyCode == 13 ){
|
181 |
+
if(e.shiftKey){
|
182 |
+
jQuery( '#search_prev' ).click();
|
183 |
+
} else {
|
184 |
+
jQuery( '#search_next' ).click();
|
185 |
+
}
|
186 |
+
} else {
|
187 |
+
return;
|
188 |
+
}
|
189 |
+
});
|
190 |
+
jQuery( '#search_next' ).click( function() {
|
191 |
+
search_get_current('search_next');
|
192 |
+
})
|
193 |
+
jQuery( '#search_prev' ).click( function() {
|
194 |
+
search_get_current('search_prev');
|
195 |
+
})
|
196 |
+
jQuery( '#search_prev' ).hide();
|
197 |
+
jQuery( '#search_next' ).hide();
|
198 |
+
jQuery( '#search_in_options' ).val('');
|
199 |
+
jQuery( '#total_matches' ).empty();
|
200 |
+
jQuery( '#current_match' ).empty();*/
|
201 |
});
|
202 |
|
203 |
/* Load gallery images */
|
352 |
post_data["redirecturl"] = jQuery("#redirecturl").val();
|
353 |
/* Images bulk add tags ids. */
|
354 |
post_data["added_tags_id"] = jQuery("#added_tags_id").val();
|
|
|
355 |
/* Images data. */
|
356 |
for (var i in ids_array) {
|
357 |
if (ids_array.hasOwnProperty(i) && ids_array[i]) {
|
368 |
post_data["input_size_" + ids_array[i]] = jQuery("#input_size_" + ids_array[i]).val();
|
369 |
post_data["input_filetype_" + ids_array[i]] = jQuery("#input_filetype_" + ids_array[i]).val();
|
370 |
post_data["input_resolution_" + ids_array[i]] = jQuery("#input_resolution_" + ids_array[i]).val();
|
371 |
+
post_data["input_resolution_thumb_" + ids_array[i]] = jQuery("#input_resolution_thumb_" + ids_array[i]).val();
|
372 |
post_data["input_crop_" + ids_array[i]] = jQuery("#input_crop_" + ids_array[i]).val();
|
373 |
post_data["order_input_" + ids_array[i]] = jQuery("#order_input_" + ids_array[i]).val();
|
374 |
post_data["tags_" + ids_array[i]] = jQuery("#tags_" + ids_array[i]).val();
|
375 |
}
|
376 |
}
|
377 |
+
/* Filter data before passing to ajax from add-ons. */
|
378 |
+
jQuery(document).trigger('bwg_before_gallery_save_ajax', post_data);
|
379 |
|
380 |
/* Loading. */
|
381 |
jQuery("#loading_div").show();
|
836 |
tag_ids = tag_ids + tagIds[i] + ',';
|
837 |
var html = jQuery("#" + image_id + "_tag_temptagid").clone().html();
|
838 |
/* Remove white spaces from keywords to set as id and remove prefix.*/
|
839 |
+
var id = tagIds[i].replace(/\s+/g, '_').replace('bwg_', '').replace(/&/g, "").replace(/&/g, "").replace(/'/g, "39").replace(/"/g, "34").replace(/!/g, "");
|
840 |
html = html.replace(/temptagid/g, id)
|
841 |
.replace(/temptagname/g, titles[i]);
|
842 |
jQuery("#tags_div_" + image_id).append("<div class='tag_div' id='" + image_id + "_tag_" + id + "'>");
|
1100 |
*/
|
1101 |
function bwg_change_gallery_type(type_to_set, warning_type, instagram_client_id) {
|
1102 |
warning_type = (typeof warning_type === "undefined") ? "default" : warning_type;
|
1103 |
+
jQuery('.bwg-gallery-type-options').hide();
|
1104 |
if (type_to_set == 'instagram') {
|
1105 |
if (instagram_client_id == '') {
|
1106 |
alert(bwg_objectL10B.bwg_access_token);
|
1111 |
return false;
|
1112 |
}
|
1113 |
|
|
|
1114 |
jQuery("#add_instagram_gallery").show();
|
1115 |
|
1116 |
jQuery('#gallery_type').val('instagram');
|
1120 |
jQuery('.spider_delete_button').hide();
|
1121 |
jQuery('#spider_resize_button').hide();
|
1122 |
jQuery('#content-add_media').hide();
|
1123 |
+
jQuery('#add_image_bwg').hide();
|
1124 |
+
jQuery('#import_image_bwg').hide();
|
1125 |
jQuery('#show_add_embed').hide();
|
1126 |
jQuery('#show_bulk_embed').hide();
|
1127 |
+
|
1128 |
+
/*hide unused bulk action options */
|
1129 |
+
jQuery("#bulk-action-selector-top option[value='image_resize']").hide();
|
1130 |
+
jQuery("#bulk-action-selector-top option[value='image_recreate_thumbnail']").hide();
|
1131 |
+
jQuery("#bulk-action-selector-top option[value='image_rotate_left']").hide();
|
1132 |
+
jQuery("#bulk-action-selector-top option[value='image_rotate_right']").hide();
|
1133 |
+
jQuery("#bulk-action-selector-top option[value='image_set_watermark']").hide();
|
1134 |
+
jQuery("#bulk-action-selector-top option[value='image_reset']").hide();
|
1135 |
}
|
1136 |
else if(type_to_set == 'facebook') {
|
1137 |
if (!bwg_check_gallery_empty(true, true)) {
|
1138 |
return false;
|
1139 |
}
|
1140 |
jQuery('#add_facebook_gallery').show();
|
|
|
1141 |
|
1142 |
jQuery('#gallery_type').val('facebook');
|
1143 |
jQuery('#tr_instagram_post_gallery').hide();
|
1146 |
jQuery('.spider_delete_button').hide();
|
1147 |
jQuery('#spider_resize_button').hide();
|
1148 |
jQuery('#content-add_media').hide();
|
1149 |
+
jQuery('#add_image_bwg').hide();
|
1150 |
+
jQuery('#import_image_bwg').hide();
|
1151 |
jQuery('#show_add_embed').hide();
|
1152 |
jQuery('#show_bulk_embed').hide();
|
1153 |
|
1160 |
/* default limit 20 */
|
1161 |
jQuery("#facebook_gallery_image_limit").val(20);
|
1162 |
}
|
1163 |
+
else if (type_to_set == 'google_photos') {
|
1164 |
+
var auth_google_status = jQuery("#auth_google_status").val();
|
1165 |
+
if(auth_google_status == '0') {
|
1166 |
+
jQuery("#auth_google_photos_gallery").show();
|
1167 |
+
} else {
|
1168 |
+
/*hide features of only mixed gallery*/
|
1169 |
+
jQuery('.spider_delete_button').hide();
|
1170 |
+
jQuery('#spider_resize_button').hide();
|
1171 |
+
jQuery('#content-add_media').hide();
|
1172 |
+
jQuery('#add_image_bwg').hide();
|
1173 |
+
jQuery('#import_image_bwg').hide();
|
1174 |
+
jQuery('#show_add_embed').hide();
|
1175 |
+
jQuery('#show_bulk_embed').hide();
|
1176 |
+
/*hide unused bulk action options */
|
1177 |
+
jQuery("#bulk-action-selector-top option[value='image_resize']").hide();
|
1178 |
+
jQuery("#bulk-action-selector-top option[value='image_recreate_thumbnail']").hide();
|
1179 |
+
jQuery("#bulk-action-selector-top option[value='image_rotate_left']").hide();
|
1180 |
+
jQuery("#bulk-action-selector-top option[value='image_rotate_right']").hide();
|
1181 |
+
jQuery("#bulk-action-selector-top option[value='image_set_watermark']").hide();
|
1182 |
+
jQuery("#bulk-action-selector-top option[value='image_reset']").hide();
|
1183 |
+
jQuery(document).trigger('bwg_gallery_type_changed', type_to_set);
|
1184 |
+
}
|
1185 |
+
}
|
1186 |
+
else if(type_to_set != '') {
|
1187 |
+
jQuery(document).trigger('bwg_gallery_type_changed', type_to_set);
|
1188 |
+
}
|
1189 |
else {
|
1190 |
var ids_string = jQuery("#ids_string").val();
|
1191 |
ids_array = ids_string.split(",");
|
1219 |
jQuery('.spider_delete_button').show();
|
1220 |
jQuery('#spider_resize_button').show();
|
1221 |
jQuery('#content-add_media').show();
|
1222 |
+
jQuery('#add_image_bwg').show();
|
1223 |
+
jQuery('#import_image_bwg').show();
|
1224 |
jQuery('#show_add_embed').show();
|
1225 |
jQuery('#show_bulk_embed').show();
|
1226 |
|
1227 |
+
/* Show all bulk action options*/
|
1228 |
+
jQuery("#bulk-action-selector-top option[value='image_resize']").hide();
|
1229 |
+
jQuery("#bulk-action-selector-top option[value='image_recreate_thumbnail']").hide();
|
1230 |
+
jQuery("#bulk-action-selector-top option[value='image_rotate_left']").hide();
|
1231 |
+
jQuery("#bulk-action-selector-top option[value='image_rotate_right']").hide();
|
1232 |
+
jQuery("#bulk-action-selector-top option[value='image_set_watermark']").hide();
|
1233 |
+
jQuery("#bulk-action-selector-top option[value='image_reset']").hide();
|
1234 |
}
|
1235 |
return true;
|
1236 |
}
|
1736 |
var is_direct_url = files[i]['filetype'].indexOf("DIRECT_URL_") > -1 ? true : false;
|
1737 |
var is_facebook_post = files[i]['filetype'].indexOf("_FACEBOOK_POST") > -1 ? 1 : 0;
|
1738 |
var fb_post_url = (is_facebook_post) ? files[i]['filename'] : '';
|
1739 |
+
var instagram_post_width = files[i]['resolution'].split('x')[0].trim();
|
1740 |
+
var instagram_post_height = files[i]['resolution'].split('x')[1].trim();
|
|
|
1741 |
var html = jQuery(".wd-template").clone().html();
|
1742 |
+
var name = files[i]['name'].substr(0, files[i]['name'].lastIndexOf('.')) || files[i]['name'];
|
1743 |
+
|
1744 |
html = html.replace(/tempid/g, bwg_j)
|
1745 |
.replace(/tempnum/g, 1)
|
1746 |
.replace(/tempimage_url/g, encodeURIComponent(files[i]['url']))
|
1747 |
.replace(/tempthumb_url/g, encodeURIComponent(files[i]['thumb_url']))
|
1748 |
.replace(/tempthumb_src=""/g, 'src="' + files[i]['thumb'] + '"')
|
1749 |
+
.replace(/tempfilename/g, name)
|
1750 |
.replace(/tempdate/g, files[i]['date_modified'])
|
1751 |
.replace(/tempresolution/g, files[i]['resolution'])
|
1752 |
+
.replace(/tempthumbresolution/g, files[i]['resolution_thumb'])
|
1753 |
.replace(/temp_instagram_post_width/g, instagram_post_width)
|
1754 |
.replace(/temp_instagram_post_height/g, instagram_post_height)
|
1755 |
.replace(/tempsize/g, files[i]['size'])
|
1757 |
.replace(/tempis_facebook_post/g, (is_facebook_post ? files[i]['is_facebook_post'] : 0))
|
1758 |
.replace(/tempfb_post_url/g, (is_facebook_post ? files[i]['fb_post_url'] : 0));
|
1759 |
if ( is_embed ) {
|
1760 |
+
html = html.replace(/tempalt/g, name);
|
1761 |
html = html.replace(/wd-image-actions/g, 'wd-image-actions wd-hide');
|
1762 |
}
|
1763 |
else {
|
1916 |
}
|
1917 |
jQuery('#bwg_tab_galleries_content .gallery_type').removeClass('gallery_type_active');
|
1918 |
jQuery('input[name=gallery_type][id=' + gallery_type + ']').attr('checked', 'checked').closest('.gallery_type').addClass('gallery_type_active');
|
1919 |
+
/*search_options();*/
|
1920 |
}
|
1921 |
|
1922 |
function bwg_album_type_options(album_type) {
|
1935 |
}
|
1936 |
jQuery('#bwg_tab_albums_content .gallery_type').removeClass('gallery_type_active');
|
1937 |
jQuery('input[name=album_type][id=' + album_type + ']').attr('checked', 'checked').closest('.gallery_type').addClass('gallery_type_active');
|
1938 |
+
/*search_options();*/
|
1939 |
}
|
1940 |
|
1941 |
function bwg_pagination_description(that) {
|
2274 |
|
2275 |
function bwg_show_hide(id, display) {
|
2276 |
jQuery("#" + id).css('display', display);
|
2277 |
+
}
|
2278 |
+
|
2279 |
+
/*
|
2280 |
+
function search_options(){
|
2281 |
+
var val, tab_id, div;
|
2282 |
+
val = jQuery( '#search_in_options' ).val();
|
2283 |
+
div = jQuery( '.search-div:visible' );
|
2284 |
+
tab_id = div.attr( 'id' );
|
2285 |
+
val = val.toLowerCase().trim();
|
2286 |
+
jQuery( '#total_matches' ).empty();
|
2287 |
+
jQuery( '#current_match' ).empty();
|
2288 |
+
jQuery( '#search_prev' ).hide();
|
2289 |
+
jQuery( '#search_next' ).hide();
|
2290 |
+
jQuery('.search_highlight').each(function(){
|
2291 |
+
return jQuery(this).contents().unwrap();
|
2292 |
+
})
|
2293 |
+
jQuery('#search_current_match').contents().unwrap();
|
2294 |
+
if( val != '' ) {
|
2295 |
+
if( div.has( '.postbox' ) ){
|
2296 |
+
jQuery( '.postbox' ).removeClass( 'closed' );
|
2297 |
+
}
|
2298 |
+
jQuery( '#search_prev' ).show();
|
2299 |
+
jQuery( '#search_next' ).show();
|
2300 |
+
val = val.replace(/\s{2,}/g, ' ');
|
2301 |
+
var matchcount = 0;
|
2302 |
+
jQuery( '#' + tab_id ).find( '.wd-group' ).each( function () {
|
2303 |
+
if( jQuery( this ).is ( ':visible' ) ) {
|
2304 |
+
var label, description;
|
2305 |
+
label = jQuery( this ).find( '.wd-label' ).text().toLowerCase();
|
2306 |
+
jQuery( this ).find( '.wd-label' ).each(function(){
|
2307 |
+
if( jQuery( this ).is(':visible')){
|
2308 |
+
label = jQuery( this ).text().toLowerCase();
|
2309 |
+
if( label.match( val, 'gi' ) ) {
|
2310 |
+
matchcount ++;
|
2311 |
+
var start, end, changed;
|
2312 |
+
changed = '';
|
2313 |
+
start = label.indexOf( val );
|
2314 |
+
end = val.length;
|
2315 |
+
label = jQuery( this ).text();
|
2316 |
+
changed += label.substring( 0, start );
|
2317 |
+
if( matchcount == 1) {
|
2318 |
+
changed += '<span class="' + matchcount + ' search_highlight" id="search_current_match">' +
|
2319 |
+
label.substr( start, end ) + '</span>';
|
2320 |
+
} else {
|
2321 |
+
changed += '<span class="' + matchcount + ' search_highlight">' + label.substr(start,end) + '</span>';
|
2322 |
+
}
|
2323 |
+
label = label.substr( start + end );
|
2324 |
+
changed += label;
|
2325 |
+
jQuery(this).empty();
|
2326 |
+
jQuery(this).append( changed );
|
2327 |
+
}
|
2328 |
+
}
|
2329 |
+
})
|
2330 |
+
jQuery( this ).find( 'p.description' ).each(function(){
|
2331 |
+
if( jQuery( this ).is(':visible')){
|
2332 |
+
description = jQuery( this ).text().toLowerCase();
|
2333 |
+
if( description.match( val, 'gi' ) ) {
|
2334 |
+
matchcount ++;
|
2335 |
+
changed = '';
|
2336 |
+
start = description.indexOf(val);
|
2337 |
+
end = val.length;
|
2338 |
+
description = jQuery( this ).text();
|
2339 |
+
changed += description.substring( 0, start );
|
2340 |
+
if( matchcount == 1) {
|
2341 |
+
changed += '<span class="' + matchcount + ' search_highlight" id="search_current_match">' +
|
2342 |
+
description.substr( start, end ) + '</span>';
|
2343 |
+
} else {
|
2344 |
+
changed += '<span class="' + matchcount + ' search_highlight">' + description.substr(start,end) + '</span>';
|
2345 |
+
}
|
2346 |
+
description = description.substr( start + end );
|
2347 |
+
changed += description;
|
2348 |
+
jQuery( this ).empty();
|
2349 |
+
jQuery( this ).append( changed );
|
2350 |
+
}
|
2351 |
+
}
|
2352 |
+
})
|
2353 |
+
}
|
2354 |
+
})
|
2355 |
+
if( jQuery( '#search_current_match' ).length ){
|
2356 |
+
if( jQuery( '#search_current_match' ).offset().top > jQuery( window ).height()-50 ) {
|
2357 |
+
jQuery('html, body').animate({
|
2358 |
+
scrollTop: jQuery("#search_current_match").offset().top-100}, 5);
|
2359 |
+
} else{
|
2360 |
+
jQuery(window).scrollTop(0);
|
2361 |
+
}
|
2362 |
+
}
|
2363 |
+
jQuery('#total_matches').append(matchcount);
|
2364 |
+
if( matchcount != 0 ){
|
2365 |
+
jQuery( '#current_match' ).append( 1 +' of ' );
|
2366 |
+
if( jQuery( '#search_current_match' ).offset().top > jQuery( window ).height()-50 ) {
|
2367 |
+
jQuery('html, body').animate({
|
2368 |
+
scrollTop: jQuery("#search_current_match").offset().top-100}, 5);
|
2369 |
+
} else{
|
2370 |
+
jQuery(window).scrollTop(0);
|
2371 |
+
}
|
2372 |
+
} else if( matchcount == 0 ){
|
2373 |
+
jQuery( '#current_match' ).append( 0 + ' of ' );
|
2374 |
+
}
|
2375 |
+
} else {
|
2376 |
+
jQuery('#total_matches').empty();
|
2377 |
+
jQuery( '#current_match' ).empty();
|
2378 |
+
jQuery( '.postbox' ).removeClass( 'closed' );
|
2379 |
+
jQuery( '.postbox' ).addClass( 'closed' );
|
2380 |
+
}
|
2381 |
+
}
|
2382 |
+
|
2383 |
+
function search_get_current(sort){
|
2384 |
+
var current, div, div_id;
|
2385 |
+
current = jQuery( '#search_current_match' ).attr( 'class' );
|
2386 |
+
div = jQuery( '.search-div:visible' );
|
2387 |
+
div_id = div.attr( 'id' );
|
2388 |
+
if( sort == 'search_next' ){
|
2389 |
+
if( !current ) {
|
2390 |
+
if( jQuery( '.search-div' ).last().attr('id') == div_id ){
|
2391 |
+
jQuery( 'a[href$=' + jQuery( '.search-div' ).first().attr('id') + ']' ).click();
|
2392 |
+
} else if( div.is( ':has(div.bwg_change_gallery_type)' ) && !div.find( '.bwg_change_gallery_type span:last-child' ).hasClass( 'gallery_type_active' ) ){
|
2393 |
+
var i=0, j;
|
2394 |
+
div.find( '.gallery_type' ).each(function(){
|
2395 |
+
if( jQuery( this ).hasClass( 'gallery_type_active' ) ){
|
2396 |
+
jQuery( this ).removeClass( 'gallery_type_active' );
|
2397 |
+
j=i;
|
2398 |
+
}
|
2399 |
+
i++;
|
2400 |
+
})
|
2401 |
+
div.find( '.bwg_change_gallery_type' ).children().eq( j+1 ).addClass( 'gallery_type_active' );
|
2402 |
+
div.find( '#gallery_types_name > option:selected' ).removeAttr( 'selected' ).next( 'option' ).attr( 'selected', 'selected' );
|
2403 |
+
jQuery( '.gallery_type_active:visible' ).trigger('click');
|
2404 |
+
} else if( div.next().is( ':has(div.bwg_change_gallery_type)' ) ){
|
2405 |
+
jQuery( 'a[href$=' + div.next().attr('id') + ']' ).click();
|
2406 |
+
div.next().find( '.bwg_change_gallery_type' ).children().removeClass( 'gallery_type_active' );
|
2407 |
+
div.next().find( '.bwg_change_gallery_type' ).children().eq( 0 ).addClass( 'gallery_type_active' );
|
2408 |
+
div.next().find( '#gallery_types_name > option:selected' ).removeAttr( 'selected' );
|
2409 |
+
div.next().find( '#gallery_types_name > option:first' ).attr( 'selected', 'selected' );
|
2410 |
+
jQuery( '.gallery_type_active:visible' ).click();
|
2411 |
+
} else{
|
2412 |
+
jQuery( 'a[href$=' + div.next().attr('id') + ']' ).click();
|
2413 |
+
}
|
2414 |
+
} else {
|
2415 |
+
var next = +current.substr( 0, current.indexOf( ' ' ) ) + 1;
|
2416 |
+
var total = +jQuery( '#total_matches' ).text();
|
2417 |
+
if( next <= total ) {
|
2418 |
+
jQuery( '#search_current_match' ).removeAttr( 'id' );
|
2419 |
+
jQuery( '.' + next.toString() ).attr( 'id', 'search_current_match' );
|
2420 |
+
jQuery( '#current_match' ).empty();
|
2421 |
+
jQuery( '#current_match' ).append( next + ' of ' );
|
2422 |
+
} else {
|
2423 |
+
if( div.is( ':has(div.bwg_change_gallery_type)' ) && !div.find( '.bwg_change_gallery_type span:last-child' ).hasClass( 'gallery_type_active' ) ){
|
2424 |
+
var i=0, j;
|
2425 |
+
div.find( '.gallery_type' ).each(function(){
|
2426 |
+
if( jQuery( this ).hasClass( 'gallery_type_active' ) ){
|
2427 |
+
jQuery( this ).removeClass( 'gallery_type_active' );
|
2428 |
+
j=i;
|
2429 |
+
}
|
2430 |
+
i++;
|
2431 |
+
})
|
2432 |
+
div.find( '.bwg_change_gallery_type' ).children().eq( j+1 ).addClass( 'gallery_type_active' );
|
2433 |
+
div.find( '#gallery_types_name > option:selected' ).removeAttr( 'selected' ).next( 'option' ).attr( 'selected', 'selected' );
|
2434 |
+
jQuery( '.gallery_type_active:visible' ).click();
|
2435 |
+
} else if( div.next().is( ':has(div.bwg_change_gallery_type)' ) ){
|
2436 |
+
jQuery( 'a[href$=' + div.next().attr('id') + ']' ).click();
|
2437 |
+
div.next().find( '.bwg_change_gallery_type' ).children().removeClass( 'gallery_type_active' );
|
2438 |
+
div.next().find( '.bwg_change_gallery_type span:first-child' ).addClass( 'gallery_type_active' );
|
2439 |
+
div.next().find( '#gallery_types_name > option:selected' ).removeAttr( 'selected' );
|
2440 |
+
div.next().find( '#gallery_types_name > option:first' ).attr( 'selected', 'selected' );
|
2441 |
+
div.next().find( '.gallery_type_active:visible' ).click();
|
2442 |
+
} else if( jQuery( '.search-div' ).last().attr('id') == div_id ){
|
2443 |
+
jQuery( 'a[href$=' + jQuery( '.search-div' ).first().attr('id') + ']' ).click();
|
2444 |
+
} else {
|
2445 |
+
jQuery( 'a[href$=' + div.next().attr('id') + ']' ).click();
|
2446 |
+
}
|
2447 |
+
}
|
2448 |
+
}
|
2449 |
+
} else if( sort == 'search_prev' ){
|
2450 |
+
if( !current ) {
|
2451 |
+
if( jQuery( '.search-div' ).first().attr('id') == div_id ){
|
2452 |
+
jQuery( 'a[href$=' + jQuery( '.search-div' ).last().attr('id') + ']' ).click();
|
2453 |
+
jQuery( '.1' ).attr( 'id', '' );
|
2454 |
+
jQuery( '.' + jQuery( '#total_matches' ).text()).attr( 'id', 'search_current_match' );
|
2455 |
+
} else if( div.is( ':has(div.bwg_change_gallery_type)' ) && !div.find( '.bwg_change_gallery_type span:first-child' ).hasClass( 'gallery_type_active' ) ){
|
2456 |
+
var i=0, j=0;
|
2457 |
+
div.find( '.gallery_type:visible' ).each(function(){
|
2458 |
+
if( jQuery( this ).hasClass( 'gallery_type_active' ) ){
|
2459 |
+
jQuery( this ).removeClass( 'gallery_type_active' );
|
2460 |
+
j=i;
|
2461 |
+
}
|
2462 |
+
i++;
|
2463 |
+
})
|
2464 |
+
div.find( '.bwg_change_gallery_type' ).children().eq( j-1 ).addClass( 'gallery_type_active' );
|
2465 |
+
div.find( '#gallery_types_name > option:selected' ).removeAttr( 'selected' ).prev( 'option' ).attr( 'selected', 'selected' );
|
2466 |
+
jQuery( '.gallery_type_active:visible' ).click();
|
2467 |
+
jQuery( '.1' ).removeAttr( 'id' );
|
2468 |
+
var total_matches = jQuery( '#total_matches' ).text();
|
2469 |
+
jQuery( '.' + total_matches ).attr( 'id', 'search_current_match' );
|
2470 |
+
} else if( div.prev().is( ':has(div.bwg_change_gallery_type)' ) ){
|
2471 |
+
jQuery( 'a[href$=' + div.prev().attr('id') + ']' ).click();
|
2472 |
+
div.prev().find( '.bwg_change_gallery_type' ).children().removeClass( 'gallery_type_active' );
|
2473 |
+
div.prev().find( '.bwg_change_gallery_type span:last-child' ).addClass( 'gallery_type_active' );
|
2474 |
+
div.prev().find( '#gallery_types_name > option:selected' ).removeAttr( 'selected' );
|
2475 |
+
div.prev().find( '#gallery_types_name > option:last' ).attr( 'selected', 'selected' );
|
2476 |
+
jQuery( '.gallery_type_active:visible' ).click();
|
2477 |
+
jQuery( '.1' ).removeAttr( 'id' );
|
2478 |
+
var total_matches = jQuery( '#total_matches' ).text();
|
2479 |
+
jQuery( '.' + total_matches ).attr( 'id', 'search_current_match' );
|
2480 |
+
} else{
|
2481 |
+
jQuery( 'a[href$=' + div.prev().attr('id') + ']' ).click();
|
2482 |
+
jQuery( '.1' ).removeAttr( 'id' );
|
2483 |
+
var total_matches = jQuery( '#total_matches' ).text();
|
2484 |
+
jQuery( '.' + total_matches ).attr( 'id', 'search_current_match' );
|
2485 |
+
}
|
2486 |
+
} else {
|
2487 |
+
var total = +jQuery( '#total_matches' ).text();
|
2488 |
+
var back = +current.substr( 0, current.indexOf( ' ' ) ) - 1;
|
2489 |
+
if( back > 0 ) {
|
2490 |
+
jQuery( '#search_current_match' ).removeAttr( 'id' );
|
2491 |
+
jQuery( '.' + back.toString() ).attr( 'id', 'search_current_match' );
|
2492 |
+
jQuery( '#current_match' ).empty();
|
2493 |
+
jQuery( '#current_match' ).append( back + ' of ' );
|
2494 |
+
} else if ( back == 0 ) {
|
2495 |
+
if( div.is( ':has(div.bwg_change_gallery_type)' ) && !div.find( '.bwg_change_gallery_type span:first-child' ).hasClass( 'gallery_type_active' ) ){
|
2496 |
+
var i=0, j=0;
|
2497 |
+
div.find( '.gallery_type' ).each(function(){
|
2498 |
+
if( jQuery( this ).hasClass( 'gallery_type_active' ) ){
|
2499 |
+
jQuery( this ).removeClass( 'gallery_type_active' );
|
2500 |
+
j=i;
|
2501 |
+
}
|
2502 |
+
i++;
|
2503 |
+
})
|
2504 |
+
div.find( '.bwg_change_gallery_type' ).children().eq( j-1 ).addClass( 'gallery_type_active' );
|
2505 |
+
div.find( '#gallery_types_name > option:selected' ).removeAttr( 'selected' ).prev( 'option' ).attr( 'selected', 'selected' );
|
2506 |
+
jQuery( '.gallery_type_active:visible' ).click();
|
2507 |
+
jQuery( '.1' ).removeAttr( 'id' );
|
2508 |
+
var total_matches = jQuery( '#total_matches' ).text();
|
2509 |
+
jQuery( '.' + total_matches ).attr( 'id', 'search_current_match' );
|
2510 |
+
} else if( div.prev().is( ':has(div.bwg_change_gallery_type)' ) ){
|
2511 |
+
jQuery( 'a[href$=' + div.prev().attr('id') + ']' ).click();
|
2512 |
+
div.prev().find( '.bwg_change_gallery_type' ).children().removeClass( 'gallery_type_active' );
|
2513 |
+
div.prev().find( '.bwg_change_gallery_type span:last-child' ).addClass( 'gallery_type_active' );
|
2514 |
+
div.prev().find( '#gallery_types_name > option:selected' ).removeAttr( 'selected' );
|
2515 |
+
div.prev().find( '#gallery_types_name > option:last' ).attr( 'selected', 'selected' );
|
2516 |
+
jQuery( '.gallery_type_active:visible' ).click();
|
2517 |
+
jQuery( '.1' ).removeAttr( 'id' );
|
2518 |
+
var total_matches = jQuery( '#total_matches' ).text();
|
2519 |
+
jQuery( '.' + total_matches ).attr( 'id', 'search_current_match' );;
|
2520 |
+
} else if( jQuery( '.search-div' ).first().attr('id') == div_id ){
|
2521 |
+
jQuery( 'a[href$=' + jQuery( '.search-div' ).last().attr('id') + ']' ).click();
|
2522 |
+
jQuery( '.1' ).removeAttr( 'id' );
|
2523 |
+
var total_matches = jQuery( '#total_matches' ).text();
|
2524 |
+
jQuery( '.' + total_matches ).attr( 'id', 'search_current_match' );
|
2525 |
+
} else {
|
2526 |
+
jQuery( 'a[href$=' + div.prev().attr('id') + ']' ).click();
|
2527 |
+
jQuery( '.1' ).removeAttr( 'id' );
|
2528 |
+
var total_matches = jQuery( '#total_matches' ).text();
|
2529 |
+
jQuery( '.' + total_matches ).attr( 'id', 'search_current_match' );
|
2530 |
+
}
|
2531 |
+
}
|
2532 |
+
}
|
2533 |
+
}
|
2534 |
+
if( jQuery( '#search_current_match' ).length ){
|
2535 |
+
if( jQuery( '#search_current_match' ).offset().top > jQuery( window ).height()-50 ) {
|
2536 |
+
jQuery('html, body').animate({
|
2537 |
+
scrollTop: jQuery("#search_current_match").offset().top-100}, 5);
|
2538 |
+
} else{
|
2539 |
+
jQuery(window).scrollTop(0);
|
2540 |
+
}
|
2541 |
+
}
|
2542 |
+
}*/
|
js/bwg_embed.js
CHANGED
@@ -246,9 +246,37 @@ function spider_display_embed(embed_type, file_url, embed_id, attrs) {
|
|
246 |
|
247 |
html_to_insert += oembed_imgur_html;
|
248 |
|
249 |
-
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
250 |
default:
|
251 |
-
;
|
|
|
|
|
252 |
}
|
253 |
|
254 |
return html_to_insert;
|
246 |
|
247 |
html_to_insert += oembed_imgur_html;
|
248 |
|
249 |
+
break;
|
250 |
+
case 'EMBED_OEMBED_GOOGLE_PHOTO_IMAGE':
|
251 |
+
var oembed_google_photos_html ='<div ';
|
252 |
+
for (attr in attrs) {
|
253 |
+
if(!(/src/i).test(attr)){
|
254 |
+
if(attr != '' && attrs[attr] != ''){
|
255 |
+
oembed_google_photos_html += ' '+ attr + '="'+ attrs[attr] + '"';
|
256 |
+
}
|
257 |
+
}
|
258 |
+
}
|
259 |
+
oembed_google_photos_html += " >";
|
260 |
+
if(embed_id!=''){
|
261 |
+
|
262 |
+
oembed_google_photos_html += '<img src="'+file_url+'"'+
|
263 |
+
' style=" '+
|
264 |
+
'max-width:'+'100%'+" !important"+
|
265 |
+
'; max-height:'+'100%'+" !important"+
|
266 |
+
'; width:'+'auto'+
|
267 |
+
'; height:'+ 'auto' +
|
268 |
+
';">';
|
269 |
+
}
|
270 |
+
oembed_google_photos_html +="</div>";
|
271 |
+
|
272 |
+
html_to_insert += oembed_google_photos_html;
|
273 |
+
|
274 |
+
break;
|
275 |
+
|
276 |
default:
|
277 |
+
var html = {content: ''};
|
278 |
+
jQuery(document).trigger('bwg_display_embed', [html, embed_type, file_url, embed_id, attrs]);
|
279 |
+
html_to_insert = html.content;
|
280 |
}
|
281 |
|
282 |
return html_to_insert;
|
js/bwg_frontend.js
CHANGED
@@ -9,39 +9,6 @@ var bwg_params_ib = [];
|
|
9 |
/* Carousel params */
|
10 |
var bwg_params_carousel = [];
|
11 |
|
12 |
-
jQuery.fn.extend({
|
13 |
-
hideShow: function (callback) {
|
14 |
-
this.checkForVisiblilityChange(callback);
|
15 |
-
return this;
|
16 |
-
},
|
17 |
-
checkForVisiblilityChange: function (callback) {
|
18 |
-
if (!(this.length >>> 0)) {
|
19 |
-
return undefined;
|
20 |
-
}
|
21 |
-
var elem, i = 0;
|
22 |
-
while ((elem = this[i++])) {
|
23 |
-
var curValue = jQuery(elem).is(":visible");
|
24 |
-
(elem.lastVisibility === undefined) && (elem.lastVisibility = curValue);
|
25 |
-
(curValue !== elem.lastVisibility) && (
|
26 |
-
elem.lastVisibility = curValue,
|
27 |
-
(typeof callback === "function") && (
|
28 |
-
callback.apply(this, [new jQuery.Event('visibilityChanged'), curValue ? "shown" : "hidden"])
|
29 |
-
),
|
30 |
-
(function (elem, curValue) {
|
31 |
-
setTimeout(function () {
|
32 |
-
jQuery(elem).trigger('visibilityChanged', [curValue ? "shown" : "hidden"])
|
33 |
-
}, 10)
|
34 |
-
})(elem, curValue)
|
35 |
-
)
|
36 |
-
}
|
37 |
-
(function (that, a) {
|
38 |
-
setTimeout(function () {
|
39 |
-
that.checkForVisiblilityChange.apply(that, a);
|
40 |
-
}, 10)
|
41 |
-
})(this, arguments)
|
42 |
-
}
|
43 |
-
});
|
44 |
-
|
45 |
/* Execute on ajax complete.*/
|
46 |
jQuery(document).ajaxComplete(function () {
|
47 |
setTimeout(function () {
|
@@ -50,6 +17,7 @@ jQuery(document).ajaxComplete(function () {
|
|
50 |
});
|
51 |
|
52 |
jQuery(document).ready(function () {
|
|
|
53 |
document.addEventListener("visibilitychange", function() {
|
54 |
var bwg_error = false;
|
55 |
/* If there is error (empty gallery).*/
|
@@ -67,18 +35,60 @@ jQuery(document).ready(function () {
|
|
67 |
}
|
68 |
}
|
69 |
});
|
|
|
70 |
|
71 |
|
72 |
-
|
73 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
jQuery(this).hideShow(function(event, visibility) {
|
75 |
if ( visibility == 'shown' ) {
|
76 |
bwg_main_ready();
|
77 |
}
|
78 |
});
|
|
|
79 |
});
|
80 |
|
81 |
function bwg_main_ready() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
/* If there is error (empty gallery).*/
|
83 |
jQuery(".bwg_container").each(function () {
|
84 |
if ( jQuery(this).find(".wd_error").length > 0 ) {
|
@@ -294,12 +304,14 @@ function bwg_carousel_ready() {
|
|
294 |
/*play*/
|
295 |
jQuery(".bwg_carousel_play_pause_" + bwg).attr("title", bwg_objectsL10n.pause);
|
296 |
jQuery(".bwg_carousel_play_pause_" + bwg).attr("class", "bwg-icon-pause bwg_ctrl_btn_" + bwg + " bwg_carousel_play_pause_" + bwg + "");
|
|
|
297 |
bwg_params_carousel[bwg]['carousel'].start();
|
298 |
}
|
299 |
else {
|
300 |
/* Pause.*/
|
301 |
jQuery(".bwg_carousel_play_pause_" + bwg).attr("title", bwg_objectsL10n.play);
|
302 |
jQuery(".bwg_carousel_play_pause_" + bwg).attr("class", "bwg-icon-play bwg_ctrl_btn_" + bwg + " bwg_carousel_play_pause_" + bwg + "");
|
|
|
303 |
bwg_params_carousel[bwg]['carousel'].pause();
|
304 |
}
|
305 |
event.stopPropagation();
|
@@ -766,7 +778,7 @@ function bwg_all_thumnails_loaded(that) {
|
|
766 |
}
|
767 |
|
768 |
function bwg_all_thumbnails_loaded_callback(that) {
|
769 |
-
if (jQuery(that).hasClass('bwg-thumbnails')) {
|
770 |
bwg_thumbnail( that );
|
771 |
}
|
772 |
if (jQuery(that).hasClass('bwg-masonry-thumbnails')) {
|
@@ -785,7 +797,6 @@ function bwg_container_loaded(bwg) {
|
|
785 |
function bwg_album_thumbnail(that) {
|
786 |
bwg_container_loaded(jQuery(that).data('bwg'));
|
787 |
}
|
788 |
-
|
789 |
function bwg_album_extended(that) {
|
790 |
var container_width = jQuery(that).width();
|
791 |
var thumb_width = jQuery(that).data("thumbnail-width");
|
@@ -828,25 +839,37 @@ function bwg_album_extended(that) {
|
|
828 |
var image = jQuery(this).find("img");
|
829 |
var item0 = jQuery(this).find(".bwg-item0");
|
830 |
var item2 = jQuery(this).find(".bwg-item2");
|
831 |
-
|
832 |
-
|
833 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
834 |
}
|
835 |
else {
|
836 |
-
image.css({maxWidth: "100%"});
|
837 |
}
|
|
|
|
|
838 |
}
|
839 |
else {
|
840 |
-
if ( item2.height() >
|
841 |
-
image.css({height: "100%"});
|
842 |
}
|
843 |
else {
|
844 |
-
image.css({maxHeight: "100%"});
|
845 |
}
|
|
|
|
|
846 |
}
|
847 |
jQuery(this).find(".bwg-item2").css({
|
848 |
-
marginLeft: (item0.width() -
|
849 |
-
marginTop: (item0.height() -
|
850 |
});
|
851 |
});
|
852 |
bwg_container_loaded(jQuery(that).data('bwg'));
|
@@ -870,25 +893,40 @@ function bwg_thumbnail(that) {
|
|
870 |
jQuery(that).children(".bwg-item").each(function () {
|
871 |
var image = jQuery(this).find("img");
|
872 |
var item2 = jQuery(this).find(".bwg-item2");
|
873 |
-
|
874 |
-
|
875 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
876 |
}
|
877 |
else {
|
878 |
-
image.css({maxWidth: "100%"});
|
879 |
}
|
|
|
|
|
880 |
}
|
881 |
else {
|
882 |
-
if (
|
883 |
-
image.css({height: "100%"});
|
884 |
}
|
885 |
else {
|
886 |
-
image.css({maxHeight: "100%"});
|
887 |
}
|
|
|
|
|
888 |
}
|
|
|
889 |
jQuery(this).find(".bwg-item2").css({
|
890 |
-
marginLeft: (
|
891 |
-
marginTop: (
|
892 |
});
|
893 |
});
|
894 |
bwg_container_loaded(jQuery(that).data('bwg'));
|
@@ -940,17 +978,24 @@ function bwg_thumbnail_masonry(that) {
|
|
940 |
}
|
941 |
var min_width = 100 / column_count;
|
942 |
var column_heights = [];
|
|
|
|
|
943 |
for ( i = 0; i < column_count; i++ ) {
|
944 |
column_heights.push( 0 );
|
945 |
}
|
946 |
container.find( ".bwg-item" ).each( function () {
|
947 |
var order = column_heights.indexOf( Math.min.apply( Math, column_heights ) );
|
948 |
jQuery( this ).css( { width: min_width + "%", order: order + 1 } );
|
|
|
|
|
|
|
|
|
|
|
949 |
/* Use getBoundingClientRect instead of jQuery.height() to avoid rounding. */
|
950 |
column_heights[order] += jQuery( this )[0].getBoundingClientRect().height;
|
951 |
} );
|
952 |
-
|
953 |
var container_height = Math.max.apply( Math, column_heights );
|
|
|
954 |
/* Equalize all columns. */
|
955 |
for ( i = 0; i < column_count; i++ ) {
|
956 |
if ( column_heights[i] < container_height ) {
|
@@ -961,7 +1006,6 @@ function bwg_thumbnail_masonry(that) {
|
|
961 |
} ) );
|
962 |
}
|
963 |
}
|
964 |
-
|
965 |
container.outerWidth( column_count * thumb_width );
|
966 |
container.height( container_height );
|
967 |
}
|
@@ -995,8 +1039,13 @@ function bwg_thumbnail_mosaic(that) {
|
|
995 |
/* initialize */
|
996 |
var mosaic_pics = jQuery(".bwg_mosaic_thumb_" + bwg);
|
997 |
mosaic_pics.each(function (index) {
|
998 |
-
var thumb_w =
|
999 |
-
var thumb_h =
|
|
|
|
|
|
|
|
|
|
|
1000 |
thumb_w = thumb_w * thumbnail_height / thumb_h;
|
1001 |
mosaic_pics.eq(index).height(thumbnail_height);
|
1002 |
mosaic_pics.eq(index).width(thumb_w);
|
@@ -1114,6 +1163,10 @@ function bwg_thumbnail_mosaic(that) {
|
|
1114 |
else {
|
1115 |
var thumbnail_width = thumb_width;
|
1116 |
}
|
|
|
|
|
|
|
|
|
1117 |
}
|
1118 |
else {
|
1119 |
var thumbnail_width = thumb_width;
|
@@ -1121,8 +1174,12 @@ function bwg_thumbnail_mosaic(that) {
|
|
1121 |
/* Initialize.*/
|
1122 |
var mosaic_pics = jQuery(".bwg_mosaic_thumb_" + bwg);
|
1123 |
mosaic_pics.each(function (index) {
|
1124 |
-
var thumb_w =
|
1125 |
-
var thumb_h =
|
|
|
|
|
|
|
|
|
1126 |
mosaic_pics.eq(index).height(thumb_h * thumbnail_width / thumb_w);
|
1127 |
mosaic_pics.eq(index).width(thumbnail_width);
|
1128 |
});
|
9 |
/* Carousel params */
|
10 |
var bwg_params_carousel = [];
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
/* Execute on ajax complete.*/
|
13 |
jQuery(document).ajaxComplete(function () {
|
14 |
setTimeout(function () {
|
17 |
});
|
18 |
|
19 |
jQuery(document).ready(function () {
|
20 |
+
|
21 |
document.addEventListener("visibilitychange", function() {
|
22 |
var bwg_error = false;
|
23 |
/* If there is error (empty gallery).*/
|
35 |
}
|
36 |
}
|
37 |
});
|
38 |
+
bwg_main_ready();
|
39 |
|
40 |
|
41 |
+
jQuery.fn.extend({
|
42 |
+
hideShow: function (callback) {
|
43 |
+
this.checkForVisiblilityChange(callback);
|
44 |
+
return this;
|
45 |
+
},
|
46 |
+
checkForVisiblilityChange: function (callback) {
|
47 |
+
if (!(this.length >>> 0)) {
|
48 |
+
return undefined;
|
49 |
+
}
|
50 |
+
var elem, i = 0;
|
51 |
+
while ((elem = this[i++])) {
|
52 |
+
var curValue = jQuery(elem).is(":visible");
|
53 |
+
(elem.lastVisibility === undefined) && (elem.lastVisibility = curValue);
|
54 |
+
(curValue !== elem.lastVisibility) && (
|
55 |
+
elem.lastVisibility = curValue,
|
56 |
+
(typeof callback === "function") && (
|
57 |
+
callback.apply(this, [new jQuery.Event('visibilityChanged'), curValue ? "shown" : "hidden"])
|
58 |
+
),
|
59 |
+
(function (elem, curValue) {
|
60 |
+
setTimeout(function () {
|
61 |
+
jQuery(elem).trigger('visibilityChanged', [curValue ? "shown" : "hidden"])
|
62 |
+
}, 10)
|
63 |
+
})(elem, curValue)
|
64 |
+
)
|
65 |
+
}
|
66 |
+
(function (that, a) {
|
67 |
+
setTimeout(function () {
|
68 |
+
that.checkForVisiblilityChange.apply(that, a);
|
69 |
+
}, 10)
|
70 |
+
})(this, arguments)
|
71 |
+
}
|
72 |
+
});
|
73 |
jQuery(this).hideShow(function(event, visibility) {
|
74 |
if ( visibility == 'shown' ) {
|
75 |
bwg_main_ready();
|
76 |
}
|
77 |
});
|
78 |
+
|
79 |
});
|
80 |
|
81 |
function bwg_main_ready() {
|
82 |
+
if ( bwg_objectsL10n.lazy_load == 1 ) {
|
83 |
+
jQuery(function() {
|
84 |
+
jQuery('img.bwg_lazyload').lazy({
|
85 |
+
onFinishedAll: function() {
|
86 |
+
jQuery(".lazy_loader").removeClass("lazy_loader");
|
87 |
+
}
|
88 |
+
});
|
89 |
+
});
|
90 |
+
}
|
91 |
+
|
92 |
/* If there is error (empty gallery).*/
|
93 |
jQuery(".bwg_container").each(function () {
|
94 |
if ( jQuery(this).find(".wd_error").length > 0 ) {
|
304 |
/*play*/
|
305 |
jQuery(".bwg_carousel_play_pause_" + bwg).attr("title", bwg_objectsL10n.pause);
|
306 |
jQuery(".bwg_carousel_play_pause_" + bwg).attr("class", "bwg-icon-pause bwg_ctrl_btn_" + bwg + " bwg_carousel_play_pause_" + bwg + "");
|
307 |
+
bwg_params_carousel[bwg]['bwg_currentlyMoving'] = false;
|
308 |
bwg_params_carousel[bwg]['carousel'].start();
|
309 |
}
|
310 |
else {
|
311 |
/* Pause.*/
|
312 |
jQuery(".bwg_carousel_play_pause_" + bwg).attr("title", bwg_objectsL10n.play);
|
313 |
jQuery(".bwg_carousel_play_pause_" + bwg).attr("class", "bwg-icon-play bwg_ctrl_btn_" + bwg + " bwg_carousel_play_pause_" + bwg + "");
|
314 |
+
bwg_params_carousel[bwg]['bwg_currentlyMoving'] = true;
|
315 |
bwg_params_carousel[bwg]['carousel'].pause();
|
316 |
}
|
317 |
event.stopPropagation();
|
778 |
}
|
779 |
|
780 |
function bwg_all_thumbnails_loaded_callback(that) {
|
781 |
+
if (jQuery(that).hasClass('bwg-thumbnails') && !jQuery(that).hasClass('bwg-masonry-thumbnails')) {
|
782 |
bwg_thumbnail( that );
|
783 |
}
|
784 |
if (jQuery(that).hasClass('bwg-masonry-thumbnails')) {
|
797 |
function bwg_album_thumbnail(that) {
|
798 |
bwg_container_loaded(jQuery(that).data('bwg'));
|
799 |
}
|
|
|
800 |
function bwg_album_extended(that) {
|
801 |
var container_width = jQuery(that).width();
|
802 |
var thumb_width = jQuery(that).data("thumbnail-width");
|
839 |
var image = jQuery(this).find("img");
|
840 |
var item0 = jQuery(this).find(".bwg-item0");
|
841 |
var item2 = jQuery(this).find(".bwg-item2");
|
842 |
+
var image_width = image.data('width');
|
843 |
+
var image_height = image.data('height');
|
844 |
+
if(image_width == '' || image_height == '') {
|
845 |
+
image_width = image.width();
|
846 |
+
image_height = image.height();
|
847 |
+
}
|
848 |
+
var scale = image_width/image_height;
|
849 |
+
|
850 |
+
if ( (item2.width() / item2.height()) > (image_width / image_height) ) {
|
851 |
+
if ( item2.width() > image_width ) {
|
852 |
+
image.css({width: "100%", height: item2.width()/scale});
|
853 |
}
|
854 |
else {
|
855 |
+
image.css({maxWidth: "100%", height: item2.width()/scale});
|
856 |
}
|
857 |
+
image_width = item2.width();
|
858 |
+
image_height = item2.width()/scale;
|
859 |
}
|
860 |
else {
|
861 |
+
if ( item2.height() > image_height ) {
|
862 |
+
image.css({height : "100%", width : item2.height()*scale, maxWidth : 'initial'});
|
863 |
}
|
864 |
else {
|
865 |
+
image.css({maxHeight: "100%", width: item2.height()*scale, maxWidth:'initial'});
|
866 |
}
|
867 |
+
image_height = item2.height();
|
868 |
+
image_width = item2.height()*scale;
|
869 |
}
|
870 |
jQuery(this).find(".bwg-item2").css({
|
871 |
+
marginLeft: (item0.width() - image_width) / 2,
|
872 |
+
marginTop: (item0.height() - image_height) / 2
|
873 |
});
|
874 |
});
|
875 |
bwg_container_loaded(jQuery(that).data('bwg'));
|
893 |
jQuery(that).children(".bwg-item").each(function () {
|
894 |
var image = jQuery(this).find("img");
|
895 |
var item2 = jQuery(this).find(".bwg-item2");
|
896 |
+
var item1 = jQuery(this).find(".bwg-item1");
|
897 |
+
var container_width = item2.width() > 0 ? item2.width() : item1.width();
|
898 |
+
var container_height = item2.height() > 0 ? item2.height() : item1.height();
|
899 |
+
var image_width = image.data('width');
|
900 |
+
var image_height = image.data('height');
|
901 |
+
if(image_width == '' || image_height == '' || typeof image_width === 'undefined' || typeof image_height === 'undefined') {
|
902 |
+
image_width = image.width();
|
903 |
+
image_height = image.height();
|
904 |
+
}
|
905 |
+
var scale = image_width/image_height;
|
906 |
+
if ( (container_width / container_height) > scale ) {
|
907 |
+
if ( container_width > image_width ) {
|
908 |
+
image.css({width: "100%", height: container_width/scale});
|
909 |
}
|
910 |
else {
|
911 |
+
image.css({maxWidth: "100%", height: container_width/scale});
|
912 |
}
|
913 |
+
image_width = container_width;
|
914 |
+
image_height = container_width/scale;
|
915 |
}
|
916 |
else {
|
917 |
+
if ( container_height > image.height() ) {
|
918 |
+
image.css({height : "100%", width : container_height*scale, maxWidth : 'initial'});
|
919 |
}
|
920 |
else {
|
921 |
+
image.css({maxHeight: "100%", width: container_height*scale, maxWidth:'initial'});
|
922 |
}
|
923 |
+
image_height = container_height;
|
924 |
+
image_width = container_height*scale;
|
925 |
}
|
926 |
+
|
927 |
jQuery(this).find(".bwg-item2").css({
|
928 |
+
marginLeft: (container_width - image_width) / 2,
|
929 |
+
marginTop: (container_height - image_height) / 2
|
930 |
});
|
931 |
});
|
932 |
bwg_container_loaded(jQuery(that).data('bwg'));
|
978 |
}
|
979 |
var min_width = 100 / column_count;
|
980 |
var column_heights = [];
|
981 |
+
var scaleHeight;
|
982 |
+
var scale;
|
983 |
for ( i = 0; i < column_count; i++ ) {
|
984 |
column_heights.push( 0 );
|
985 |
}
|
986 |
container.find( ".bwg-item" ).each( function () {
|
987 |
var order = column_heights.indexOf( Math.min.apply( Math, column_heights ) );
|
988 |
jQuery( this ).css( { width: min_width + "%", order: order + 1 } );
|
989 |
+
if ( jQuery( this ).find("img").attr("data-width").length > 0 && jQuery( this ).find("img").attr("data-height").length > 0 ) {
|
990 |
+
scale = jQuery( this ).find("img").data("width")/jQuery( this ).find("img").data("height");
|
991 |
+
scaleHeight = jQuery( this ).width()/scale;
|
992 |
+
jQuery(this).height(scaleHeight);
|
993 |
+
}
|
994 |
/* Use getBoundingClientRect instead of jQuery.height() to avoid rounding. */
|
995 |
column_heights[order] += jQuery( this )[0].getBoundingClientRect().height;
|
996 |
} );
|
|
|
997 |
var container_height = Math.max.apply( Math, column_heights );
|
998 |
+
|
999 |
/* Equalize all columns. */
|
1000 |
for ( i = 0; i < column_count; i++ ) {
|
1001 |
if ( column_heights[i] < container_height ) {
|
1006 |
} ) );
|
1007 |
}
|
1008 |
}
|
|
|
1009 |
container.outerWidth( column_count * thumb_width );
|
1010 |
container.height( container_height );
|
1011 |
}
|
1039 |
/* initialize */
|
1040 |
var mosaic_pics = jQuery(".bwg_mosaic_thumb_" + bwg);
|
1041 |
mosaic_pics.each(function (index) {
|
1042 |
+
var thumb_w = jQuery(this).data('width');
|
1043 |
+
var thumb_h = jQuery(this).data('height');
|
1044 |
+
if(thumb_w == '' || thumb_h == '' || typeof thumb_w === 'undefined' || typeof thumb_h === 'undefined') {
|
1045 |
+
thumb_w = mosaic_pics.get(index).naturalWidth;
|
1046 |
+
thumb_h = mosaic_pics.get(index).naturalHeight;
|
1047 |
+
}
|
1048 |
+
|
1049 |
thumb_w = thumb_w * thumbnail_height / thumb_h;
|
1050 |
mosaic_pics.eq(index).height(thumbnail_height);
|
1051 |
mosaic_pics.eq(index).width(thumb_w);
|
1163 |
else {
|
1164 |
var thumbnail_width = thumb_width;
|
1165 |
}
|
1166 |
+
/* Custom solution for 10web.io web site gallery plugin page mosaic view for 4 columns view */
|
1167 |
+
if( jQuery(".header-content-with_tab").length > 0 ) {
|
1168 |
+
var thumbnail_width = (jQuery(".header-content-with_tab").width()) / 4 - 8;
|
1169 |
+
}
|
1170 |
}
|
1171 |
else {
|
1172 |
var thumbnail_width = thumb_width;
|
1174 |
/* Initialize.*/
|
1175 |
var mosaic_pics = jQuery(".bwg_mosaic_thumb_" + bwg);
|
1176 |
mosaic_pics.each(function (index) {
|
1177 |
+
var thumb_w = jQuery(this).data('width');
|
1178 |
+
var thumb_h = jQuery(this).data('height');
|
1179 |
+
if(thumb_w == '' || thumb_h == '' || typeof thumb_w === 'undefined' || typeof thumb_h === 'undefined') {
|
1180 |
+
thumb_w = mosaic_pics.get(index).naturalWidth;
|
1181 |
+
thumb_h = mosaic_pics.get(index).naturalHeight;
|
1182 |
+
}
|
1183 |
mosaic_pics.eq(index).height(thumb_h * thumbnail_width / thumb_w);
|
1184 |
mosaic_pics.eq(index).width(thumbnail_width);
|
1185 |
});
|
js/bwg_gallery_box.js
CHANGED
@@ -64,14 +64,17 @@ function gallery_box_ready() {
|
|
64 |
}
|
65 |
lightbox_comment_pos = gallery_box_data['lightbox_comment_pos'];
|
66 |
bwg_image_info_pos = (jQuery(".bwg_ctrl_btn_container").length) ? jQuery(".bwg_ctrl_btn_container").height() : 0;
|
|
|
|
|
67 |
setTimeout(function(){
|
68 |
if ( jQuery(".bwg_image_info_container1").height() < jQuery(".bwg_image_info").height() + jQuery(".bwg_toggle_container").height() + bwg_image_info_pos + 2*( parseInt(gallery_box_data['lightbox_info_margin']))){
|
69 |
if ( gallery_box_data['lightbox_ctrl_btn_pos'] == 'top' ) {
|
70 |
jQuery(".bwg_image_info").css("top",bwg_image_info_pos + "px");
|
71 |
}
|
72 |
-
jQuery(".bwg_image_info").height
|
73 |
}
|
74 |
-
|
|
|
75 |
bwg_transition_duration = ((gallery_box_data['slideshow_interval'] < 4 * gallery_box_data['slideshow_effect_duration']) && (gallery_box_data['slideshow_interval'] != 0)) ? (gallery_box_data['slideshow_interval'] * 1000) / 4 : (gallery_box_data['slideshow_effect_duration'] * 1000);
|
76 |
gallery_box_data['bwg_transition_duration'] = bwg_transition_duration;
|
77 |
gallery_box_data['bwg_trans_in_progress'] = false;
|
@@ -202,8 +205,7 @@ function gallery_box_ready() {
|
|
202 |
}
|
203 |
/* Change default scrollbar in comments, ecommerce.*/
|
204 |
if (typeof jQuery().mCustomScrollbar !== 'undefined' && jQuery.isFunction(jQuery().mCustomScrollbar)) {
|
205 |
-
jQuery(".bwg_comments").mCustomScrollbar({
|
206 |
-
jQuery(".bwg_ecommerce_panel").mCustomScrollbar({
|
207 |
scrollInertia: 150,
|
208 |
advanced:{
|
209 |
updateOnContentResize: true
|
@@ -366,12 +368,15 @@ function gallery_box_ready() {
|
|
366 |
jQuery(".bwg_image_info_container1").css("display", "table-cell");
|
367 |
jQuery(".bwg_info").attr("title", bwg_objectsL10n.bwg_hide_info);
|
368 |
var bwg_image_info_pos = (jQuery(".bwg_ctrl_btn_container").length) ? jQuery(".bwg_ctrl_btn_container").height() : 0;
|
|
|
|
|
|
|
|
|
369 |
setTimeout(function(){
|
370 |
if(jQuery(".bwg_image_info_container1").height() < (jQuery(".bwg_image_info").height() + bwg_image_info_pos + 2*(parseInt(gallery_box_data['lightbox_info_margin'])))) {
|
371 |
if( gallery_box_data['lightbox_ctrl_btn_pos'] == 'top' ) {
|
372 |
jQuery(".bwg_image_info").css("top",bwg_image_info_pos + "px");
|
373 |
}
|
374 |
-
jQuery(".bwg_image_info").height(jQuery(".bwg_image_info_container1").height()- bwg_image_info_pos - 2*(parseInt(gallery_box_data['lightbox_info_margin'])));
|
375 |
}
|
376 |
}, 100);
|
377 |
}
|
@@ -400,7 +405,7 @@ function gallery_box_ready() {
|
|
400 |
var bwg_open_toggle_btn_class = (gallery_box_data['lightbox_ctrl_btn_pos'] == 'top') ? 'bwg-icon-caret-up' : 'bwg-icon-caret-down';
|
401 |
var bwg_close_toggle_btn_class = (gallery_box_data['lightbox_ctrl_btn_pos'] == 'top') ? 'bwg-icon-caret-down' : 'bwg-icon-caret-up';
|
402 |
|
403 |
-
var bwg_image_info_height = jQuery(".bwg_image_info_container1").height()-jQuery(".bwg_ctrl_btn_container").height()-2*(parseInt(gallery_box_data['lightbox_info_margin']));
|
404 |
|
405 |
var image_info= jQuery(".bwg_image_description").outerHeight() + jQuery(".bwg_image_title").outerHeight() + 2*(parseInt(gallery_box_data['lightbox_info_margin']));
|
406 |
|
@@ -465,7 +470,7 @@ function gallery_box_ready() {
|
|
465 |
}
|
466 |
}
|
467 |
else {
|
468 |
-
var bwg_image_info_height = jQuery(".bwg_image_info_container1").height()-2*(parseInt(gallery_box_data['lightbox_info_margin'])) - jQuery(".bwg_toggle_container").height();
|
469 |
|
470 |
var image_info= jQuery(".bwg_image_description").outerHeight() + jQuery(".bwg_image_title").outerHeight() + 2*(parseInt(gallery_box_data['lightbox_info_margin'])) + jQuery(".bwg_toggle_container").height();
|
471 |
|
@@ -567,6 +572,10 @@ function gallery_box_ready() {
|
|
567 |
'height': (bwg_popup_current_height - (gallery_box_data['filmstrip_direction'] == 'horizontal' ? gallery_box_data['image_filmstrip_height'] : 0)),
|
568 |
'width': (bwg_popup_current_width - comment_container_width - (gallery_box_data['filmstrip_direction'] == 'vertical' ? gallery_box_data['image_filmstrip_width'] : 0))
|
569 |
});
|
|
|
|
|
|
|
|
|
570 |
jQuery(".bwg_popup_image").css({
|
571 |
'maxWidth': (bwg_popup_current_width - comment_container_width - (gallery_box_data['filmstrip_direction'] == 'vertical' ? gallery_box_data['image_filmstrip_width'] : 0)),
|
572 |
'maxHeight': (bwg_popup_current_height - (gallery_box_data['filmstrip_direction'] == 'horizontal' ? gallery_box_data['image_filmstrip_height'] : 0))
|
@@ -625,6 +634,10 @@ function gallery_box_ready() {
|
|
625 |
});
|
626 |
jQuery(".bwg_image_wrap").css({width: screen_width - comment_container_width});
|
627 |
jQuery(".bwg_image_container").css({height: (screen_height - (gallery_box_data['filmstrip_direction'] == 'horizontal' ? gallery_box_data['image_filmstrip_height'] : 0)), width: screen_width - comment_container_width - (gallery_box_data['filmstrip_direction'] == 'vertical' ? gallery_box_data['image_filmstrip_width'] : 0)});
|
|
|
|
|
|
|
|
|
628 |
jQuery(".bwg_popup_image").css({
|
629 |
maxWidth: (screen_width - comment_container_width - (gallery_box_data['filmstrip_direction'] == 'vertical' ? gallery_box_data['image_filmstrip_width'] : 0)),
|
630 |
maxHeight: (screen_height - (gallery_box_data['filmstrip_direction'] == 'horizontal' ? gallery_box_data['image_filmstrip_height'] : 0))
|
@@ -1176,7 +1189,8 @@ function bwg_gallery_box( image_id, bwg_container, openEcommerce, gallery_id ) {
|
|
1176 |
if (typeof open_comment_attr !== typeof undefined && open_comment_attr !== false) {
|
1177 |
open_comment = '&open_comment=1';
|
1178 |
}
|
1179 |
-
|
|
|
1180 |
}
|
1181 |
|
1182 |
function bwg_change_image_lightbox(current_key, key, data, from_effect) {
|
@@ -1188,9 +1202,9 @@ function bwg_change_image_lightbox(current_key, key, data, from_effect) {
|
|
1188 |
if(gallery_box_data['lightbox_ctrl_btn_pos'] == 'top') {
|
1189 |
jQuery(".bwg_image_info").css("top",bwg_image_info_pos + "px");
|
1190 |
}
|
1191 |
-
jQuery(".bwg_image_info").height
|
1192 |
-
|
1193 |
-
},
|
1194 |
jQuery("#spider_popup_left").show();
|
1195 |
jQuery("#spider_popup_right").show();
|
1196 |
jQuery(".bwg_image_info").hide();
|
@@ -1305,9 +1319,8 @@ function bwg_change_image_lightbox(current_key, key, data, from_effect) {
|
|
1305 |
/* Change image id.*/
|
1306 |
jQuery("#bwg_popup_image").attr('image_id', data[key]["id"]);
|
1307 |
/* Change image title, description.*/
|
1308 |
-
jQuery(".bwg_image_title").html(jQuery('<span
|
1309 |
-
jQuery(".bwg_image_description").html(jQuery('<span
|
1310 |
-
/*jQuery(".bwg_image_info").removeAttr("style");*/
|
1311 |
/* Set active thumbnail.*/
|
1312 |
|
1313 |
jQuery(".bwg_filmstrip_thumbnail").removeClass("bwg_thumb_active").addClass("bwg_thumb_deactive");
|
@@ -1344,7 +1357,7 @@ function bwg_change_image_lightbox(current_key, key, data, from_effect) {
|
|
1344 |
if ( !is_embed ) {
|
1345 |
jQuery(".bwg-loading").removeClass("hidden");
|
1346 |
jQuery("#bwg_download").removeClass("hidden");
|
1347 |
-
innhtml += '<img style="max-height: ' + cur_height + 'px; max-width: ' + cur_width + 'px;" class="bwg_popup_image bwg_popup_watermark" src="' + gallery_box_data['site_url'] + jQuery('<span
|
1348 |
}
|
1349 |
else { /*is_embed*/
|
1350 |
/* hide download button if image source is embed */
|
@@ -1411,7 +1424,6 @@ function bwg_change_image_lightbox(current_key, key, data, from_effect) {
|
|
1411 |
}
|
1412 |
jQuery("#bwg_facebook_a").attr("href", "https://www.facebook.com/sharer/sharer.php?u=" + bwg_share_url);
|
1413 |
jQuery("#bwg_twitter_a").attr("href", "https://twitter.com/share?url=" + bwg_share_url);
|
1414 |
-
jQuery("#bwg_google_a").attr("href", "https://plus.google.com/share?url=" + bwg_share_url);
|
1415 |
jQuery("#bwg_pinterest_a").attr("href", "http://pinterest.com/pin/create/button/?s=100&url=" + bwg_share_url + "&media=" + bwg_share_image_url + "&description=" + data[key]['alt'] + '%0A' + data[key]['description']);
|
1416 |
jQuery("#bwg_tumblr_a").attr("href", "https://www.tumblr.com/share/photo?source=" + bwg_share_image_url + "&caption=" + data[key]['alt'] + "&clickthru=" + bwg_share_url);
|
1417 |
/* Load comments.*/
|
@@ -1484,7 +1496,7 @@ function bwg_preload_images_lightbox( key ) {
|
|
1484 |
if ( typeof data[index] != "undefined" ) {
|
1485 |
var is_embed = data[index]['filetype'].indexOf( "EMBED_" ) > -1 ? true : false;
|
1486 |
if ( !is_embed ) {
|
1487 |
-
jQuery( "<img/>" ).attr( "src", gallery_box_data['site_url'] + jQuery( '<span
|
1488 |
}
|
1489 |
}
|
1490 |
sign *= -1;
|
@@ -1567,7 +1579,7 @@ function bwg_comment() {
|
|
1567 |
spider_ajax_save('bwg_comment_form');
|
1568 |
}
|
1569 |
}
|
1570 |
-
jQuery(".bwg_comments").mCustomScrollbar({scrollInertia: 150,
|
1571 |
advanced:{
|
1572 |
updateOnContentResize: true
|
1573 |
}
|
@@ -1923,6 +1935,10 @@ function bwg_popup_resize_lightbox() {
|
|
1923 |
zIndex: 100002
|
1924 |
});
|
1925 |
jQuery(".bwg_image_container").css({height: (gallery_box_data['image_height'] - (gallery_box_data['filmstrip_direction'] == 'horizontal' ? gallery_box_data['image_filmstrip_height'] : 0))});
|
|
|
|
|
|
|
|
|
1926 |
jQuery(".bwg_popup_image").css({
|
1927 |
maxHeight: gallery_box_data['image_height'] - (gallery_box_data['filmstrip_direction'] == 'horizontal' ? gallery_box_data['image_filmstrip_height'] : 0)
|
1928 |
});
|
@@ -1943,6 +1959,10 @@ function bwg_popup_resize_lightbox() {
|
|
1943 |
zIndex: 100002
|
1944 |
});
|
1945 |
jQuery(".bwg_image_container").css({height: (window.innerHeight - (gallery_box_data['filmstrip_direction'] == 'horizontal' ? gallery_box_data['image_filmstrip_height'] : 0))});
|
|
|
|
|
|
|
|
|
1946 |
jQuery(".bwg_popup_image").css({
|
1947 |
maxHeight: window.innerHeight - (gallery_box_data['filmstrip_direction'] == 'horizontal' ? gallery_box_data['image_filmstrip_height'] : 0)
|
1948 |
});
|
@@ -1964,6 +1984,10 @@ function bwg_popup_resize_lightbox() {
|
|
1964 |
});
|
1965 |
jQuery(".bwg_image_wrap").css({width: gallery_box_data['image_width'] - comment_container_width});
|
1966 |
jQuery(".bwg_image_container").css({width: (gallery_box_data['image_width'] - (gallery_box_data['filmstrip_direction'] == 'vertical' ? gallery_box_data['image_filmstrip_width'] : 0) - comment_container_width)});
|
|
|
|
|
|
|
|
|
1967 |
jQuery(".bwg_popup_image").css({
|
1968 |
maxWidth: gallery_box_data['image_width'] - (gallery_box_data['filmstrip_direction'] == 'vertical' ? gallery_box_data['image_filmstrip_width'] : 0) - comment_container_width
|
1969 |
});
|
@@ -2106,8 +2130,7 @@ function changeMenualTotal(obj) {
|
|
2106 |
|
2107 |
function onSelectableParametersChange(obj) {
|
2108 |
var parametersPrise = 0;
|
2109 |
-
|
2110 |
-
var productPrice = gallery_box_data[jQuery('#bwg_current_image_key').val()]["pricelist_manual_price"] ? gallery_box_data[jQuery('#bwg_current_image_key').val()]["pricelist_manual_price"] : '0';
|
2111 |
productPrice = parseFloat(productPrice.replace(",",""));
|
2112 |
|
2113 |
var type = jQuery(obj).closest('.image_selected_parameter').attr("data-parameter-type");
|
@@ -2300,18 +2323,18 @@ function bwg_load_filmstrip() {
|
|
2300 |
if (image.width() == 0) {
|
2301 |
image.on("load", function () {
|
2302 |
bwg_filmstrip_thumbnail = jQuery(this).find(".bwg_filmstrip_thumbnail_img_wrap");
|
2303 |
-
bwg_filmstrip_thumb_view(image
|
2304 |
});
|
2305 |
}
|
2306 |
else {
|
2307 |
bwg_filmstrip_thumbnail = jQuery(this).find(".bwg_filmstrip_thumbnail_img_wrap");
|
2308 |
-
bwg_filmstrip_thumb_view(image
|
2309 |
}
|
2310 |
});
|
2311 |
}
|
2312 |
|
2313 |
/* thumb size and position correction for filmstrip*/
|
2314 |
-
function bwg_filmstrip_thumb_view(image
|
2315 |
var image_filmstrip_height_space = gallery_box_data['image_filmstrip_height'];
|
2316 |
var image_filmstrip_width_space = gallery_box_data['image_filmstrip_width'];
|
2317 |
|
64 |
}
|
65 |
lightbox_comment_pos = gallery_box_data['lightbox_comment_pos'];
|
66 |
bwg_image_info_pos = (jQuery(".bwg_ctrl_btn_container").length) ? jQuery(".bwg_ctrl_btn_container").height() : 0;
|
67 |
+
jQuery(".bwg_image_info").css("height","auto");
|
68 |
+
jQuery(".bwg_image_info").hide();
|
69 |
setTimeout(function(){
|
70 |
if ( jQuery(".bwg_image_info_container1").height() < jQuery(".bwg_image_info").height() + jQuery(".bwg_toggle_container").height() + bwg_image_info_pos + 2*( parseInt(gallery_box_data['lightbox_info_margin']))){
|
71 |
if ( gallery_box_data['lightbox_ctrl_btn_pos'] == 'top' ) {
|
72 |
jQuery(".bwg_image_info").css("top",bwg_image_info_pos + "px");
|
73 |
}
|
74 |
+
jQuery(".bwg_image_info").css({height:jQuery(".bwg_image_info_container1").height()- jQuery(".bwg_toggle_container").height()- bwg_image_info_pos - 2*(parseInt(gallery_box_data['lightbox_info_margin']))});
|
75 |
}
|
76 |
+
jQuery(".bwg_image_info").show();
|
77 |
+
}, 300);
|
78 |
bwg_transition_duration = ((gallery_box_data['slideshow_interval'] < 4 * gallery_box_data['slideshow_effect_duration']) && (gallery_box_data['slideshow_interval'] != 0)) ? (gallery_box_data['slideshow_interval'] * 1000) / 4 : (gallery_box_data['slideshow_effect_duration'] * 1000);
|
79 |
gallery_box_data['bwg_transition_duration'] = bwg_transition_duration;
|
80 |
gallery_box_data['bwg_trans_in_progress'] = false;
|
205 |
}
|
206 |
/* Change default scrollbar in comments, ecommerce.*/
|
207 |
if (typeof jQuery().mCustomScrollbar !== 'undefined' && jQuery.isFunction(jQuery().mCustomScrollbar)) {
|
208 |
+
jQuery(".bwg_comments,.bwg_ecommerce_panel, .bwg_image_info").mCustomScrollbar({
|
|
|
209 |
scrollInertia: 150,
|
210 |
advanced:{
|
211 |
updateOnContentResize: true
|
368 |
jQuery(".bwg_image_info_container1").css("display", "table-cell");
|
369 |
jQuery(".bwg_info").attr("title", bwg_objectsL10n.bwg_hide_info);
|
370 |
var bwg_image_info_pos = (jQuery(".bwg_ctrl_btn_container").length) ? jQuery(".bwg_ctrl_btn_container").height() : 0;
|
371 |
+
jQuery(".bwg_image_info").css("height","auto");
|
372 |
+
if(jQuery(".bwg_image_info_container1").height() < (jQuery(".bwg_image_info").height() + jQuery(".bwg_toggle_container").height() + bwg_image_info_pos + 2*(parseInt(gallery_box_data['lightbox_info_margin'])))) {
|
373 |
+
jQuery(".bwg_image_info").css({height:jQuery(".bwg_image_info_container1").height()- jQuery(".bwg_toggle_container").height() - bwg_image_info_pos - 2*(parseInt(gallery_box_data['lightbox_info_margin']))});
|
374 |
+
}
|
375 |
setTimeout(function(){
|
376 |
if(jQuery(".bwg_image_info_container1").height() < (jQuery(".bwg_image_info").height() + bwg_image_info_pos + 2*(parseInt(gallery_box_data['lightbox_info_margin'])))) {
|
377 |
if( gallery_box_data['lightbox_ctrl_btn_pos'] == 'top' ) {
|
378 |
jQuery(".bwg_image_info").css("top",bwg_image_info_pos + "px");
|
379 |
}
|
|
|
380 |
}
|
381 |
}, 100);
|
382 |
}
|
405 |
var bwg_open_toggle_btn_class = (gallery_box_data['lightbox_ctrl_btn_pos'] == 'top') ? 'bwg-icon-caret-up' : 'bwg-icon-caret-down';
|
406 |
var bwg_close_toggle_btn_class = (gallery_box_data['lightbox_ctrl_btn_pos'] == 'top') ? 'bwg-icon-caret-down' : 'bwg-icon-caret-up';
|
407 |
|
408 |
+
var bwg_image_info_height = jQuery(".bwg_image_info_container1").height()-bwg_image_info_pos-jQuery(".bwg_ctrl_btn_container").height()-2*(parseInt(gallery_box_data['lightbox_info_margin']));
|
409 |
|
410 |
var image_info= jQuery(".bwg_image_description").outerHeight() + jQuery(".bwg_image_title").outerHeight() + 2*(parseInt(gallery_box_data['lightbox_info_margin']));
|
411 |
|
470 |
}
|
471 |
}
|
472 |
else {
|
473 |
+
var bwg_image_info_height = jQuery(".bwg_image_info_container1").height()-bwg_image_info_pos-2*(parseInt(gallery_box_data['lightbox_info_margin'])) - jQuery(".bwg_toggle_container").height();
|
474 |
|
475 |
var image_info= jQuery(".bwg_image_description").outerHeight() + jQuery(".bwg_image_title").outerHeight() + 2*(parseInt(gallery_box_data['lightbox_info_margin'])) + jQuery(".bwg_toggle_container").height();
|
476 |
|
572 |
'height': (bwg_popup_current_height - (gallery_box_data['filmstrip_direction'] == 'horizontal' ? gallery_box_data['image_filmstrip_height'] : 0)),
|
573 |
'width': (bwg_popup_current_width - comment_container_width - (gallery_box_data['filmstrip_direction'] == 'vertical' ? gallery_box_data['image_filmstrip_width'] : 0))
|
574 |
});
|
575 |
+
jQuery(".bwg_image_info").css("height","auto");
|
576 |
+
if(jQuery(".bwg_image_info_container1").height() < (jQuery(".bwg_image_info").height() + jQuery(".bwg_toggle_container").height() + bwg_image_info_pos + 2*(parseInt(gallery_box_data['lightbox_info_margin'])))) {
|
577 |
+
jQuery(".bwg_image_info").css({height:jQuery(".bwg_image_info_container1").height()- jQuery(".bwg_toggle_container").height() - bwg_image_info_pos - 2*(parseInt(gallery_box_data['lightbox_info_margin']))});
|
578 |
+
}
|
579 |
jQuery(".bwg_popup_image").css({
|
580 |
'maxWidth': (bwg_popup_current_width - comment_container_width - (gallery_box_data['filmstrip_direction'] == 'vertical' ? gallery_box_data['image_filmstrip_width'] : 0)),
|
581 |
'maxHeight': (bwg_popup_current_height - (gallery_box_data['filmstrip_direction'] == 'horizontal' ? gallery_box_data['image_filmstrip_height'] : 0))
|
634 |
});
|
635 |
jQuery(".bwg_image_wrap").css({width: screen_width - comment_container_width});
|
636 |
jQuery(".bwg_image_container").css({height: (screen_height - (gallery_box_data['filmstrip_direction'] == 'horizontal' ? gallery_box_data['image_filmstrip_height'] : 0)), width: screen_width - comment_container_width - (gallery_box_data['filmstrip_direction'] == 'vertical' ? gallery_box_data['image_filmstrip_width'] : 0)});
|
637 |
+
jQuery(".bwg_image_info").css("height","auto");
|
638 |
+
if(jQuery(".bwg_image_info_container1").height() < (jQuery(".bwg_image_info").height() + jQuery(".bwg_toggle_container").height() + bwg_image_info_pos + 2*(parseInt(gallery_box_data['lightbox_info_margin'])))) {
|
639 |
+
jQuery(".bwg_image_info").css({height:jQuery(".bwg_image_info_container1").height()- jQuery(".bwg_toggle_container").height() - bwg_image_info_pos - 2*(parseInt(gallery_box_data['lightbox_info_margin']))});
|
640 |
+
}
|
641 |
jQuery(".bwg_popup_image").css({
|
642 |
maxWidth: (screen_width - comment_container_width - (gallery_box_data['filmstrip_direction'] == 'vertical' ? gallery_box_data['image_filmstrip_width'] : 0)),
|
643 |
maxHeight: (screen_height - (gallery_box_data['filmstrip_direction'] == 'horizontal' ? gallery_box_data['image_filmstrip_height'] : 0))
|
1189 |
if (typeof open_comment_attr !== typeof undefined && open_comment_attr !== false) {
|
1190 |
open_comment = '&open_comment=1';
|
1191 |
}
|
1192 |
+
var bwg_random_seed = jQuery("#bwg_random_seed_"+bwg).val();
|
1193 |
+
spider_createpopup(bwg_lightbox_url + '&bwg_random_seed='+bwg_random_seed+'&image_id=' + image_id + "&filter_tag=" + filterTags + ecommerce + open_comment + '&filter_search_name=' + filtersearchname + filtersortby, bwg, bwg_container.data('popup-width'), bwg_container.data('popup-height'), 1, 'testpopup', 5, bwg_container.data('buttons-position'));
|
1194 |
}
|
1195 |
|
1196 |
function bwg_change_image_lightbox(current_key, key, data, from_effect) {
|
1202 |
if(gallery_box_data['lightbox_ctrl_btn_pos'] == 'top') {
|
1203 |
jQuery(".bwg_image_info").css("top",bwg_image_info_pos + "px");
|
1204 |
}
|
1205 |
+
jQuery(".bwg_image_info").css({height:jQuery(".bwg_image_info_container1").height()- jQuery(".bwg_toggle_container").height() - bwg_image_info_pos - 2*(parseInt(gallery_box_data['lightbox_info_margin']))});
|
1206 |
+
}
|
1207 |
+
}, 100);
|
1208 |
jQuery("#spider_popup_left").show();
|
1209 |
jQuery("#spider_popup_right").show();
|
1210 |
jQuery(".bwg_image_info").hide();
|
1319 |
/* Change image id.*/
|
1320 |
jQuery("#bwg_popup_image").attr('image_id', data[key]["id"]);
|
1321 |
/* Change image title, description.*/
|
1322 |
+
jQuery(".bwg_image_title").html(jQuery('<span />').html(data[key]["alt"]).text());
|
1323 |
+
jQuery(".bwg_image_description").html(jQuery('<span />').html(data[key]["description"]).text());
|
|
|
1324 |
/* Set active thumbnail.*/
|
1325 |
|
1326 |
jQuery(".bwg_filmstrip_thumbnail").removeClass("bwg_thumb_active").addClass("bwg_thumb_deactive");
|
1357 |
if ( !is_embed ) {
|
1358 |
jQuery(".bwg-loading").removeClass("hidden");
|
1359 |
jQuery("#bwg_download").removeClass("hidden");
|
1360 |
+
innhtml += '<img style="max-height: ' + cur_height + 'px; max-width: ' + cur_width + 'px;" class="bwg_popup_image bwg_popup_watermark" src="' + gallery_box_data['site_url'] + jQuery('<span />').html(data[key]["image_url"]).text() + '" alt="' + data[key]["alt"] + '" />';
|
1361 |
}
|
1362 |
else { /*is_embed*/
|
1363 |
/* hide download button if image source is embed */
|
1424 |
}
|
1425 |
jQuery("#bwg_facebook_a").attr("href", "https://www.facebook.com/sharer/sharer.php?u=" + bwg_share_url);
|
1426 |
jQuery("#bwg_twitter_a").attr("href", "https://twitter.com/share?url=" + bwg_share_url);
|
|
|
1427 |
jQuery("#bwg_pinterest_a").attr("href", "http://pinterest.com/pin/create/button/?s=100&url=" + bwg_share_url + "&media=" + bwg_share_image_url + "&description=" + data[key]['alt'] + '%0A' + data[key]['description']);
|
1428 |
jQuery("#bwg_tumblr_a").attr("href", "https://www.tumblr.com/share/photo?source=" + bwg_share_image_url + "&caption=" + data[key]['alt'] + "&clickthru=" + bwg_share_url);
|
1429 |
/* Load comments.*/
|
1496 |
if ( typeof data[index] != "undefined" ) {
|
1497 |
var is_embed = data[index]['filetype'].indexOf( "EMBED_" ) > -1 ? true : false;
|
1498 |
if ( !is_embed ) {
|
1499 |
+
jQuery( "<img/>" ).attr( "src", gallery_box_data['site_url'] + jQuery( '<span />' ).html( data[index]["image_url"] ).text() );
|
1500 |
}
|
1501 |
}
|
1502 |
sign *= -1;
|
1579 |
spider_ajax_save('bwg_comment_form');
|
1580 |
}
|
1581 |
}
|
1582 |
+
jQuery(".bwg_comments").mCustomScrollbar("update", {scrollInertia: 150,
|
1583 |
advanced:{
|
1584 |
updateOnContentResize: true
|
1585 |
}
|
1935 |
zIndex: 100002
|
1936 |
});
|
1937 |
jQuery(".bwg_image_container").css({height: (gallery_box_data['image_height'] - (gallery_box_data['filmstrip_direction'] == 'horizontal' ? gallery_box_data['image_filmstrip_height'] : 0))});
|
1938 |
+
jQuery(".bwg_image_info").css("height","auto");
|
1939 |
+
if(jQuery(".bwg_image_info_container1").height() < (jQuery(".bwg_image_info").height() + jQuery(".bwg_toggle_container").height() + bwg_image_info_pos + 2*(parseInt(gallery_box_data['lightbox_info_margin'])))) {
|
1940 |
+
jQuery(".bwg_image_info").css({height:jQuery(".bwg_image_info_container1").height()- jQuery(".bwg_toggle_container").height() - bwg_image_info_pos - 2*(parseInt(gallery_box_data['lightbox_info_margin']))});
|
1941 |
+
}
|
1942 |
jQuery(".bwg_popup_image").css({
|
1943 |
maxHeight: gallery_box_data['image_height'] - (gallery_box_data['filmstrip_direction'] == 'horizontal' ? gallery_box_data['image_filmstrip_height'] : 0)
|
1944 |
});
|
1959 |
zIndex: 100002
|
1960 |
});
|
1961 |
jQuery(".bwg_image_container").css({height: (window.innerHeight - (gallery_box_data['filmstrip_direction'] == 'horizontal' ? gallery_box_data['image_filmstrip_height'] : 0))});
|
1962 |
+
jQuery(".bwg_image_info").css("height","auto");
|
1963 |
+
if(jQuery(".bwg_image_info_container1").height() < (jQuery(".bwg_image_info").height() + jQuery(".bwg_toggle_container").height() + bwg_image_info_pos + 2*(parseInt(gallery_box_data['lightbox_info_margin'])))) {
|
1964 |
+
jQuery(".bwg_image_info").css({'height':jQuery(".bwg_image_info_container1").height()- jQuery(".bwg_toggle_container").height() - bwg_image_info_pos - 2*(parseInt(gallery_box_data['lightbox_info_margin']))});
|
1965 |
+
}
|
1966 |
jQuery(".bwg_popup_image").css({
|
1967 |
maxHeight: window.innerHeight - (gallery_box_data['filmstrip_direction'] == 'horizontal' ? gallery_box_data['image_filmstrip_height'] : 0)
|
1968 |
});
|
1984 |
});
|
1985 |
jQuery(".bwg_image_wrap").css({width: gallery_box_data['image_width'] - comment_container_width});
|
1986 |
jQuery(".bwg_image_container").css({width: (gallery_box_data['image_width'] - (gallery_box_data['filmstrip_direction'] == 'vertical' ? gallery_box_data['image_filmstrip_width'] : 0) - comment_container_width)});
|
1987 |
+
jQuery(".bwg_image_info").css("height","auto");
|
1988 |
+
if(jQuery(".bwg_image_info_container1").height() < (jQuery(".bwg_image_info").height() + jQuery(".bwg_toggle_container").height() + bwg_image_info_pos + 2*(parseInt(gallery_box_data['lightbox_info_margin'])))) {
|
1989 |
+
jQuery(".bwg_image_info").css({height:jQuery(".bwg_image_info_container1").height()- jQuery(".bwg_toggle_container").height() - bwg_image_info_pos - 2*(parseInt(gallery_box_data['lightbox_info_margin']))});
|
1990 |
+
}
|
1991 |
jQuery(".bwg_popup_image").css({
|
1992 |
maxWidth: gallery_box_data['image_width'] - (gallery_box_data['filmstrip_direction'] == 'vertical' ? gallery_box_data['image_filmstrip_width'] : 0) - comment_container_width
|
1993 |
});
|
2130 |
|
2131 |
function onSelectableParametersChange(obj) {
|
2132 |
var parametersPrise = 0;
|
2133 |
+
var productPrice = gallery_box_data["data"][jQuery('#bwg_current_image_key').val()]["pricelist_manual_price"] ? gallery_box_data["data"][jQuery('#bwg_current_image_key').val()]["pricelist_manual_price"] : '0';
|
|
|
2134 |
productPrice = parseFloat(productPrice.replace(",",""));
|
2135 |
|
2136 |
var type = jQuery(obj).closest('.image_selected_parameter').attr("data-parameter-type");
|
2323 |
if (image.width() == 0) {
|
2324 |
image.on("load", function () {
|
2325 |
bwg_filmstrip_thumbnail = jQuery(this).find(".bwg_filmstrip_thumbnail_img_wrap");
|
2326 |
+
bwg_filmstrip_thumb_view( image );
|
2327 |
});
|
2328 |
}
|
2329 |
else {
|
2330 |
bwg_filmstrip_thumbnail = jQuery(this).find(".bwg_filmstrip_thumbnail_img_wrap");
|
2331 |
+
bwg_filmstrip_thumb_view( image );
|
2332 |
}
|
2333 |
});
|
2334 |
}
|
2335 |
|
2336 |
/* thumb size and position correction for filmstrip*/
|
2337 |
+
function bwg_filmstrip_thumb_view( image ) {
|
2338 |
var image_filmstrip_height_space = gallery_box_data['image_filmstrip_height'];
|
2339 |
var image_filmstrip_width_space = gallery_box_data['image_filmstrip_width'];
|
2340 |
|
js/bwg_shortcode.js
CHANGED
@@ -100,7 +100,6 @@ function bwg_lightbox_hide_show_params() {
|
|
100 |
jQuery("#tr_popup_captcha").css('display', '');
|
101 |
jQuery("#tr_popup_facebook").css('display', '');
|
102 |
jQuery("#tr_popup_twitter").css('display', '');
|
103 |
-
jQuery("#tr_popup_google").css('display', '');
|
104 |
jQuery("#tr_popup_pinterest").css('display', '');
|
105 |
jQuery("#tr_popup_thumblr").css('display', '');
|
106 |
}
|
@@ -115,7 +114,6 @@ function bwg_lightbox_hide_show_params() {
|
|
115 |
jQuery("#tr_popup_captcha").css('display', 'none');
|
116 |
jQuery("#tr_popup_facebook").css('display', 'none');
|
117 |
jQuery("#tr_popup_twitter").css('display', 'none');
|
118 |
-
jQuery("#tr_popup_google").css('display', 'none');
|
119 |
jQuery("#tr_popup_pinterest").css('display', 'none');
|
120 |
jQuery("#tr_popup_thumblr").css('display', 'none');
|
121 |
}
|
100 |
jQuery("#tr_popup_captcha").css('display', '');
|
101 |
jQuery("#tr_popup_facebook").css('display', '');
|
102 |
jQuery("#tr_popup_twitter").css('display', '');
|
|
|
103 |
jQuery("#tr_popup_pinterest").css('display', '');
|
104 |
jQuery("#tr_popup_thumblr").css('display', '');
|
105 |
}
|
114 |
jQuery("#tr_popup_captcha").css('display', 'none');
|
115 |
jQuery("#tr_popup_facebook").css('display', 'none');
|
116 |
jQuery("#tr_popup_twitter").css('display', 'none');
|
|
|
117 |
jQuery("#tr_popup_pinterest").css('display', 'none');
|
118 |
jQuery("#tr_popup_thumblr").css('display', 'none');
|
119 |
}
|
js/jquery.lazy.min.js
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
1 |
+
/*! jQuery & Zepto Lazy v1.7.10 - http://jquery.eisbehr.de/lazy - MIT&GPL-2.0 license - Copyright 2012-2018 Daniel 'Eisbehr' Kern */
|
2 |
+
!function(t,e){"use strict";function r(r,a,i,u,l){function f(){L=t.devicePixelRatio>1,i=c(i),a.delay>=0&&setTimeout(function(){s(!0)},a.delay),(a.delay<0||a.combined)&&(u.e=v(a.throttle,function(t){"resize"===t.type&&(w=B=-1),s(t.all)}),u.a=function(t){t=c(t),i.push.apply(i,t)},u.g=function(){return i=n(i).filter(function(){return!n(this).data(a.loadedName)})},u.f=function(t){for(var e=0;e<t.length;e++){var r=i.filter(function(){return this===t[e]});r.length&&s(!1,r)}},s(),n(a.appendScroll).on("scroll."+l+" resize."+l,u.e))}function c(t){var i=a.defaultImage,o=a.placeholder,u=a.imageBase,l=a.srcsetAttribute,f=a.loaderAttribute,c=a._f||{};t=n(t).filter(function(){var t=n(this),r=m(this);return!t.data(a.handledName)&&(t.attr(a.attribute)||t.attr(l)||t.attr(f)||c[r]!==e)}).data("plugin_"+a.name,r);for(var s=0,d=t.length;s<d;s++){var A=n(t[s]),g=m(t[s]),h=A.attr(a.imageBaseAttribute)||u;g===N&&h&&A.attr(l)&&A.attr(l,b(A.attr(l),h)),c[g]===e||A.attr(f)||A.attr(f,c[g]),g===N&&i&&!A.attr(E)?A.attr(E,i):g===N||!o||A.css(O)&&"none"!==A.css(O)||A.css(O,"url('"+o+"')")}return t}function s(t,e){if(!i.length)return void(a.autoDestroy&&r.destroy());for(var o=e||i,u=!1,l=a.imageBase||"",f=a.srcsetAttribute,c=a.handledName,s=0;s<o.length;s++)if(t||e||A(o[s])){var g=n(o[s]),h=m(o[s]),b=g.attr(a.attribute),v=g.attr(a.imageBaseAttribute)||l,p=g.attr(a.loaderAttribute);g.data(c)||a.visibleOnly&&!g.is(":visible")||!((b||g.attr(f))&&(h===N&&(v+b!==g.attr(E)||g.attr(f)!==g.attr(F))||h!==N&&v+b!==g.css(O))||p)||(u=!0,g.data(c,!0),d(g,h,v,p))}u&&(i=n(i).filter(function(){return!n(this).data(c)}))}function d(t,e,r,i){++z;var o=function(){y("onError",t),p(),o=n.noop};y("beforeLoad",t);var u=a.attribute,l=a.srcsetAttribute,f=a.sizesAttribute,c=a.retinaAttribute,s=a.removeAttribute,d=a.loadedName,A=t.attr(c);if(i){var g=function(){s&&t.removeAttr(a.loaderAttribute),t.data(d,!0),y(T,t),setTimeout(p,1),g=n.noop};t.off(I).one(I,o).one(D,g),y(i,t,function(e){e?(t.off(D),g()):(t.off(I),o())})||t.trigger(I)}else{var h=n(new Image);h.one(I,o).one(D,function(){t.hide(),e===N?t.attr(C,h.attr(C)).attr(F,h.attr(F)).attr(E,h.attr(E)):t.css(O,"url('"+h.attr(E)+"')"),t[a.effect](a.effectTime),s&&(t.removeAttr(u+" "+l+" "+c+" "+a.imageBaseAttribute),f!==C&&t.removeAttr(f)),t.data(d,!0),y(T,t),h.remove(),p()});var m=(L&&A?A:t.attr(u))||"";h.attr(C,t.attr(f)).attr(F,t.attr(l)).attr(E,m?r+m:null),h.complete&&h.trigger(D)}}function A(t){var e=t.getBoundingClientRect(),r=a.scrollDirection,n=a.threshold,i=h()+n>e.top&&-n<e.bottom,o=g()+n>e.left&&-n<e.right;return"vertical"===r?i:"horizontal"===r?o:i&&o}function g(){return w>=0?w:w=n(t).width()}function h(){return B>=0?B:B=n(t).height()}function m(t){return t.tagName.toLowerCase()}function b(t,e){if(e){var r=t.split(",");t="";for(var a=0,n=r.length;a<n;a++)t+=e+r[a].trim()+(a!==n-1?",":"")}return t}function v(t,e){var n,i=0;return function(o,u){function l(){i=+new Date,e.call(r,o)}var f=+new Date-i;n&&clearTimeout(n),f>t||!a.enableThrottle||u?l():n=setTimeout(l,t-f)}}function p(){--z,i.length||z||y("onFinishedAll")}function y(t,e,n){return!!(t=a[t])&&(t.apply(r,[].slice.call(arguments,1)),!0)}var z=0,w=-1,B=-1,L=!1,T="afterLoad",D="load",I="error",N="img",E="src",F="srcset",C="sizes",O="background-image";"event"===a.bind||o?f():n(t).on(D+"."+l,f)}function a(a,o){var u=this,l=n.extend({},u.config,o),f={},c=l.name+"-"+ ++i;return u.config=function(t,r){return r===e?l[t]:(l[t]=r,u)},u.addItems=function(t){return f.a&&f.a("string"===n.type(t)?n(t):t),u},u.getItems=function(){return f.g?f.g():{}},u.update=function(t){return f.e&&f.e({},!t),u},u.force=function(t){return f.f&&f.f("string"===n.type(t)?n(t):t),u},u.loadAll=function(){return f.e&&f.e({all:!0},!0),u},u.destroy=function(){return n(l.appendScroll).off("."+c,f.e),n(t).off("."+c),f={},e},r(u,l,a,f,c),l.chainable?a:u}var n=t.jQuery||t.Zepto,i=0,o=!1;n.fn.Lazy=n.fn.lazy=function(t){return new a(this,t)},n.Lazy=n.lazy=function(t,r,i){if(n.isFunction(r)&&(i=r,r=[]),n.isFunction(i)){t=n.isArray(t)?t:[t],r=n.isArray(r)?r:[r];for(var o=a.prototype.config,u=o._f||(o._f={}),l=0,f=t.length;l<f;l++)(o[t[l]]===e||n.isFunction(o[t[l]]))&&(o[t[l]]=i);for(var c=0,s=r.length;c<s;c++)u[r[c]]=t[0]}},a.prototype.config={name:"lazy",chainable:!0,autoDestroy:!0,bind:"load",threshold:500,visibleOnly:!1,appendScroll:t,scrollDirection:"both",imageBase:null,defaultImage:"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",placeholder:null,delay:-1,combined:!1,attribute:"data-original",srcsetAttribute:"data-srcset",sizesAttribute:"data-sizes",retinaAttribute:"data-retina",loaderAttribute:"data-loader",imageBaseAttribute:"data-imagebase",removeAttribute:!0,handledName:"handled",loadedName:"loaded",effect:"show",effectTime:0,enableThrottle:!0,throttle:250,beforeLoad:e,afterLoad:e,onError:e,onFinishedAll:e},n(t).on("load",function(){o=!0})}(window);
|
js/scripts.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(o){o.fn.SumoSelect=function(e){var _=o.extend({placeholder:"Select Here",csvDispCount:3,captionFormat:"{0} Selected",captionFormatAllSelected:"{0} all selected!",floatWidth:400,forceCustomRendering:!1,nativeOnDevice:["Android","BlackBerry","iPhone","iPad","iPod","Opera Mini","IEMobile","Silk"],outputAsCSV:!1,csvSepChar:",",okCancelInMulti:!1,isClickAwayOk:!1,triggerChangeCombined:!0,selectAll:!1,search:!1,searchText:"Search...",noMatch:'No matches for "{0}"',prefix:"",locale:["OK","Cancel","Select All"],up:!1,showTitle:!0},e),t=this.each(function(){var r=this;!this.sumo&&o(this).is("select")&&(this.sumo={E:o(r),is_multi:o(r).attr("multiple"),select:"",caption:"",placeholder:"",optDiv:"",CaptionCont:"",ul:"",is_floating:!1,is_opened:!1,mob:!1,Pstate:[],createElems:function(){var e=this;e.E.wrap('<div class="SumoSelect" tabindex="0" role="button" aria-expanded="false">'),e.select=e.E.parent(),e.caption=o("<span>"),e.CaptionCont=o('<p class="CaptionCont SelectBox" ><label><i></i></label></p>').attr("style",e.E.attr("style")).prepend(e.caption),e.select.append(e.CaptionCont),e.is_multi||(_.okCancelInMulti=!1),e.E.attr("disabled")&&e.select.addClass("disabled").removeAttr("tabindex"),_.outputAsCSV&&e.is_multi&&e.E.attr("name")&&(e.select.append(o('<input class="HEMANT123" type="hidden" />').attr("name",e.E.attr("name")).val(e.getSelStr())),e.E.removeAttr("name")),!e.isMobile()||_.forceCustomRendering?(e.E.attr("name")&&e.select.addClass("sumo_"+e.E.attr("name").replace(/\[\]/,"")),e.E.addClass("SumoUnder").attr("tabindex","-1"),e.optDiv=o('<div class="optWrapper '+(_.up?"up":"")+'">'),e.floatingList(),e.ul=o('<ul class="options">'),e.optDiv.append(e.ul),_.selectAll&&e.is_multi&&e.SelAll(),_.search&&e.Search(),e.ul.append(e.prepItems(e.E.children())),e.is_multi&&e.multiSelelect(),e.select.append(e.optDiv),e.basicEvents(),e.selAllState()):e.setNativeMobile()},prepItems:function(e,i){var a=[],r=this;return o(e).each(function(e,t){t=o(t),a.push(t.is("optgroup")?o('<li class="group '+(t[0].disabled?"disabled":"")+'"><label>'+t.attr("label")+"</label><ul></ul></li>").find("ul").append(r.prepItems(t.children(),t[0].disabled)).end():r.createLi(t,i))}),a},createLi:function(e,t){e.attr("value")||e.attr("value",e.val());var i=o('<li class="opt"><label>'+e.text()+"</label></li>");return i.data("opt",e),e.data("li",i),this.is_multi&&i.prepend("<span><i></i></span>"),(e[0].disabled||t)&&(i=i.addClass("disabled")),this.onOptClick(i),e[0].selected&&i.addClass("selected"),e.attr("class")&&i.addClass(e.attr("class")),e.attr("title")&&i.attr("title",e.attr("title")),i},getSelStr:function(){return sopt=[],this.E.find("option:selected").each(function(){sopt.push(o(this).val())}),sopt.join(_.csvSepChar)},multiSelelect:function(){var i=this;i.optDiv.addClass("multiple"),i.okbtn=o('<p tabindex="0" class="btnOk">'+_.locale[0]+"</p>").click(function(){i._okbtn(),i.hideOpts()}),i.cancelBtn=o('<p tabindex="0" class="btnCancel">'+_.locale[1]+"</p>").click(function(){i._cnbtn(),i.hideOpts()});var e=i.okbtn.add(i.cancelBtn);i.optDiv.append(o('<div class="MultiControls">').append(e)),e.on("keydown.sumo",function(e){var t=o(this);switch(e.which){case 32:case 13:t.trigger("click");break;case 9:if(t.hasClass("btnOk"))return;case 27:return i._cnbtn(),void i.hideOpts()}e.stopPropagation(),e.preventDefault()})},_okbtn:function(){var i=this,a=0;_.triggerChangeCombined&&(i.E.find("option:selected").length!=i.Pstate.length?a=1:i.E.find("option").each(function(e,t){t.selected&&i.Pstate.indexOf(e)<0&&(a=1)}),a&&(i.callChange(),i.setText()))},_cnbtn:function(){var e=this;e.E.find("option:selected").each(function(){this.selected=!1}),e.optDiv.find("li.selected").removeClass("selected");for(var t=0;t<e.Pstate.length;t++)e.E.find("option")[e.Pstate[t]].selected=!0,e.ul.find("li.opt").eq(e.Pstate[t]).addClass("selected");e.selAllState()},SelAll:function(){var e=this;e.is_multi&&(e.selAll=o('<p class="select-all"><span><i></i></span><label>'+_.locale[2]+"</label></p>"),e.optDiv.addClass("selall"),e.selAll.on("click",function(){e.selAll.toggleClass("selected"),e.toggSelAll(e.selAll.hasClass("selected"),1)}),e.optDiv.prepend(e.selAll))},Search:function(){var a=this,e=a.CaptionCont.addClass("search"),t=o('<p class="no-match">');a.ftxt=o('<input type="text" class="search-txt" value="" placeholder="'+_.searchText+'">').on("click",function(e){e.stopPropagation()}),e.append(a.ftxt),a.optDiv.children("ul").after(t),a.ftxt.on("keyup.sumo",function(){var e=a.optDiv.find("ul.options li.opt").each(function(e,t){var i=(t=o(t)).data("opt")[0];i.hidden=t.text().toLowerCase().indexOf(a.ftxt.val().toLowerCase())<0,t.toggleClass("hidden",i.hidden)}).not(".hidden");t.html(_.noMatch.replace(/\{0\}/g,"<em></em>")).toggle(!e.length),t.find("em").text(a.ftxt.val()),a.selAllState()})},selAllState:function(){var e=this;if(_.selectAll&&e.is_multi){var i=0,a=0;e.optDiv.find("li.opt").not(".hidden").each(function(e,t){o(t).hasClass("selected")&&i++,o(t).hasClass("disabled")||a++}),i==a?e.selAll.removeClass("partial").addClass("selected"):0==i?e.selAll.removeClass("selected partial"):e.selAll.addClass("partial")}},showOpts:function(){var t=this;t.E.attr("disabled")||(t.E.trigger("sumo:opening",t),t.is_opened=!0,t.select.addClass("open").attr("aria-expanded","true"),t.E.trigger("sumo:opened",t),t.ftxt?t.ftxt.focus():t.select.focus(),o(document).on("click.sumo",function(e){if(!t.select.is(e.target)&&0===t.select.has(e.target).length){if(!t.is_opened)return;t.hideOpts(),_.okCancelInMulti&&(_.isClickAwayOk?t._okbtn():t._cnbtn())}}),t.is_floating&&(H=t.optDiv.children("ul").outerHeight()+2,t.is_multi&&(H+=parseInt(t.optDiv.css("padding-bottom"))),t.optDiv.css("height",H),o("body").addClass("sumoStopScroll")),t.setPstate())},setPstate:function(){var i=this;i.is_multi&&(i.is_floating||_.okCancelInMulti)&&(i.Pstate=[],i.E.find("option").each(function(e,t){t.selected&&i.Pstate.push(e)}))},callChange:function(){this.E.trigger("change").trigger("click")},hideOpts:function(){var e=this;e.is_opened&&(e.E.trigger("sumo:closing",e),e.is_opened=!1,e.select.removeClass("open").attr("aria-expanded","true").find("ul li.sel").removeClass("sel"),e.E.trigger("sumo:closed",e),o(document).off("click.sumo"),e.select.focus(),o("body").removeClass("sumoStopScroll"),_.search&&(e.ftxt.val(""),e.ftxt.trigger("keyup.sumo")))},setOnOpen:function(){var e=this,t=e.optDiv.find("li.opt:not(.hidden)").eq(_.search?0:e.E[0].selectedIndex);t.hasClass("disabled")&&!(t=t.next(":not(disabled)")).length||(e.optDiv.find("li.sel").removeClass("sel"),t.addClass("sel"),e.showOpts())},nav:function(e){var t,i=this,a=i.ul.find("li.opt:not(.disabled, .hidden)"),r=i.ul.find("li.opt.sel:not(.hidden)"),_=a.index(r);if(i.is_opened&&r.length){if(e&&0<_)t=a.eq(_-1);else{if(!(!e&&_<a.length-1&&-1<_))return;t=a.eq(_+1)}r.removeClass("sel"),r=t.addClass("sel");var o=i.ul,s=o.scrollTop(),l=r.position().top+s;l>=s+o.height()-r.outerHeight()&&o.scrollTop(l-o.height()+r.outerHeight()),l<s&&o.scrollTop(l)}else i.setOnOpen()},basicEvents:function(){var t=this;t.CaptionCont.click(function(e){t.E.trigger("click"),t.is_opened?t.hideOpts():t.showOpts(),e.stopPropagation()}),t.select.on("keydown.sumo",function(e){switch(e.which){case 38:t.nav(!0);break;case 40:t.nav(!1);break;case 65:if(t.is_multi&&e.ctrlKey){t.toggSelAll(!e.shiftKey,1);break}return;case 32:if(_.search&&t.ftxt.is(e.target))return;case 13:t.is_opened?t.optDiv.find("ul li.sel").trigger("click"):t.setOnOpen();break;case 9:return void(_.okCancelInMulti||t.hideOpts());case 27:return _.okCancelInMulti&&t._cnbtn(),void t.hideOpts();default:return}e.preventDefault()}),o(window).on("resize.sumo",function(){t.floatingList()})},onOptClick:function(e){var t=this;e.click(function(){var e=o(this);if(!e.hasClass("disabled")){t.is_multi?(e.toggleClass("selected"),e.data("opt")[0].selected=e.hasClass("selected"),t.selAllState()):(e.parent().find("li.selected").removeClass("selected"),e.toggleClass("selected"),e.data("opt")[0].selected=!0),t.is_multi&&_.triggerChangeCombined&&(t.is_floating||_.okCancelInMulti)||(t.setText(),t.callChange()),t.is_multi||t.hideOpts()}})},setText:function(){var e=this;if(e.placeholder="",e.is_multi){for(sels=e.E.find(":selected").not(":disabled"),i=0;i<sels.length;i++){if(i+1>=_.csvDispCount&&_.csvDispCount){sels.length==e.E.find("option").length&&_.captionFormatAllSelected?e.placeholder=_.captionFormatAllSelected.replace(/\{0\}/g,sels.length)+",":e.placeholder=_.captionFormat.replace(/\{0\}/g,sels.length)+",";break}e.placeholder+=o(sels[i]).text()+", "}e.placeholder=e.placeholder.replace(/,([^,]*)$/,"$1")}else e.placeholder=e.E.find(":selected").not(":disabled").text();var t=!1;e.placeholder||(t=!0,e.placeholder=e.E.attr("placeholder"),e.placeholder||(e.placeholder=e.E.find("option:disabled:selected").text())),e.placeholder=e.placeholder?_.prefix+" "+e.placeholder:_.placeholder,e.caption.html(e.placeholder),_.showTitle&&e.CaptionCont.attr("title",e.placeholder);var a=e.select.find("input.HEMANT123");return a.length&&a.val(e.getSelStr()),t?e.caption.addClass("placeholder"):e.caption.removeClass("placeholder"),e.placeholder},isMobile:function(){for(var e=navigator.userAgent||navigator.vendor||window.opera,t=0;t<_.nativeOnDevice.length;t++)if(0<e.toString().toLowerCase().indexOf(_.nativeOnDevice[t].toLowerCase()))return _.nativeOnDevice[t];return!1},setNativeMobile:function(){var e=this;e.E.addClass("SelectClass"),e.mob=!0,e.E.change(function(){e.setText()})},floatingList:function(){var e=this;e.is_floating=o(window).width()<=_.floatWidth,e.optDiv.toggleClass("isFloating",e.is_floating),e.is_floating||e.optDiv.css("height",""),e.optDiv.toggleClass("okCancelInMulti",_.okCancelInMulti&&!e.is_floating)},vRange:function(e){if(this.E.find("option").length<=e||e<0)throw"index out of bounds";return this},toggSel:function(e,t){var i,a=this;(i="number"==typeof t?(a.vRange(t),a.E.find("option")[t]):a.E.find('option[value="'+t+'"]')[0]||0)&&!i.disabled&&i.selected!=e&&(i.selected=e,a.mob||o(i).data("li").toggleClass("selected",e),a.callChange(),a.setPstate(),a.setText(),a.selAllState())},toggDis:function(e,t){var i=this.vRange(t);(i.E.find("option")[t].disabled=e)&&(i.E.find("option")[t].selected=!1),i.mob||i.optDiv.find("ul.options li").eq(t).toggleClass("disabled",e).removeClass("selected"),i.setText()},toggSumo:function(e){var t=this;return t.enabled=e,t.select.toggleClass("disabled",e),e?(t.E.attr("disabled","disabled"),t.select.removeAttr("tabindex")):(t.E.removeAttr("disabled"),t.select.attr("tabindex","0")),t},toggSelAll:function(a,e){var t=this;t.E.find("option:not(:disabled,:hidden)").each(function(e,t){var i=t.selected;(t=o(t).data("li")).hasClass("hidden")||(a?i||t.trigger("click"):i&&t.trigger("click"))}),e||(!t.mob&&t.selAll&&t.selAll.removeClass("partial").toggleClass("selected",!!a),t.callChange(),t.setText(),t.setPstate())},reload:function(){var e=this.unload();return o(e).SumoSelect(_)},unload:function(){var e=this;return e.select.before(e.E),e.E.show(),_.outputAsCSV&&e.is_multi&&e.select.find("input.HEMANT123").length&&e.E.attr("name",e.select.find("input.HEMANT123").attr("name")),e.select.remove(),delete r.sumo,r},add:function(e,t,i){if(void 0===e)throw"No value to add";var a=this;if(opts=a.E.find("option"),"number"==typeof t&&(i=t,t=e),void 0===t&&(t=e),opt=o("<option></option>").val(e).html(t),opts.length<i)throw"index out of bounds";return void 0===i||opts.length==i?(a.E.append(opt),a.mob||a.ul.append(a.createLi(opt))):(opts.eq(i).before(opt),a.mob||a.ul.find("li.opt").eq(i).before(a.createLi(opt))),r},remove:function(e){var t=this.vRange(e);t.E.find("option").eq(e).remove(),t.mob||t.optDiv.find("ul.options li").eq(e).remove(),t.setText()},selectItem:function(e){this.toggSel(!0,e)},unSelectItem:function(e){this.toggSel(!1,e)},selectAll:function(){this.toggSelAll(!0)},unSelectAll:function(){this.toggSelAll(!1)},disableItem:function(e){this.toggDis(!0,e)},enableItem:function(e){this.toggDis(!1,e)},enabled:!0,enable:function(){return this.toggSumo(!1)},disable:function(){return this.toggSumo(!0)},init:function(){return this.createElems(),this.setText(),this}},r.sumo.init())});return 1==t.length?t[0]:t}}),function(t,i,a){"function"==typeof define&&define.amd?define(["jquery"],function(e){return a(e,t,i),e.mobile}):a(t.jQuery,t,i)}(this,document,function(e,t,r,i){var a,_;(function(d,e,t,c){function h(e){for(;e&&void 0!==e.originalEvent;)e=e.originalEvent;return e}function _(e){for(var t,i,a={};e;){for(i in t=d.data(e,j))t[i]&&(a[i]=a.hasVirtualBinding=!0);e=e.parentNode}return a}function r(){M=!0}function o(){M=!1}function s(){l(),k=setTimeout(function(){H=k=0,T.length=0,O=!1,r()},d.vmouse.resetTimerDuration)}function l(){k&&(clearTimeout(k),k=0)}function n(e,t,i){var a;return(i&&i[e]||!i&&function(e,t){for(var i;e;){if((i=d.data(e,j))&&(!t||i[t]))return e;e=e.parentNode}return null}(t.target,e))&&(a=function(e,t){var i,a,r,_,o,s,l,n,g,u=e.type;if((e=d.Event(e)).type=t,i=e.originalEvent,a=d.event.props,-1<u.search(/^(mouse|click)/)&&(a=S),i)for(l=a.length;l;)e[_=a[--l]]=i[_];if(-1<u.search(/mouse(down|up)|click/)&&!e.which&&(e.which=1),-1!==u.search(/^touch/)&&(u=(r=h(i)).touches,o=r.changedTouches,s=u&&u.length?u[0]:o&&o.length?o[0]:c))for(n=0,g=v.length;n<g;n++)e[_=v[n]]=s[_];return e}(t,e),d(t.target).trigger(a)),a}function g(e){var t=d.data(e.target,Q);if(!(O||H&&H===t)){var i=n("v"+e.type,e);i&&(i.isDefaultPrevented()&&e.preventDefault(),i.isPropagationStopped()&&e.stopPropagation(),i.isImmediatePropagationStopped()&&e.stopImmediatePropagation())}}function u(e){var t,i,a=h(e).touches;if(a&&1===a.length&&(i=_(t=e.target)).hasVirtualBinding){H=B++,d.data(t,Q,H),l(),o(),z=!1;var r=h(e).touches[0];E=r.pageX,I=r.pageY,n("vmouseover",e,i),n("vmousedown",e,i)}}function b(e){M||(z||n("vmousecancel",e,_(e.target)),z=!0,s())}function p(e){if(!M){var t=h(e).touches[0],i=z,a=d.vmouse.moveDistanceThreshold,r=_(e.target);(z=z||Math.abs(t.pageX-E)>a||Math.abs(t.pageY-I)>a)&&!i&&n("vmousecancel",e,r),n("vmousemove",e,r),s()}}function m(e){if(!M){r();var t,i=_(e.target);if(n("vmouseup",e,i),!z){var a=n("vclick",e,i);a&&a.isDefaultPrevented()&&(t=h(e).changedTouches[0],T.push({touchID:H,x:t.clientX,y:t.clientY}),O=!0)}n("vmouseout",e,i),z=!1,s()}}function w(e){var t,i=d.data(e,j);if(i)for(t in i)if(i[t])return!0;return!1}function y(){}function i(r){var _=r.substr(1);return{setup:function(e,t){w(this)||d.data(this,j,{}),d.data(this,j)[r]=!0,C[r]=(C[r]||0)+1,1===C[r]&&A.bind(_,g),d(this).bind(_,y),D&&(C.touchstart=(C.touchstart||0)+1,1===C.touchstart&&A.bind("touchstart",u).bind("touchend",m).bind("touchmove",p).bind("scroll",b))},teardown:function(e,t){--C[r],C[r]||A.unbind(_,g),D&&(--C.touchstart,C.touchstart||A.unbind("touchstart",u).unbind("touchmove",p).unbind("touchend",m).unbind("scroll",b));var i=d(this),a=d.data(this,j);a&&(a[r]=!1),i.unbind(_,y),w(this)||i.removeData(j)}}}var f,j="virtualMouseBindings",Q="virtualTouchID",a="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),v="clientX clientY pageX pageY screenX screenY".split(" "),x=d.event.mouseHooks?d.event.mouseHooks.props:[],S=d.event.props.concat(x),C={},k=0,E=0,I=0,z=!1,T=[],O=!1,M=!1,D="addEventListener"in t,A=d(t),B=1,H=0;d.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500};for(var P=0;P<a.length;P++)d.event.special[a[P]]=i(a[P]);D&&t.addEventListener("click",function(e){var t,i,a,r,_,o=T.length,s=e.target;if(o)for(t=e.clientX,i=e.clientY,f=d.vmouse.clickDistanceThreshold,a=s;a;){for(r=0;r<o;r++)if(_=T[r],0,a===s&&Math.abs(_.x-t)<f&&Math.abs(_.y-i)<f||d.data(a,Q)===_.touchID)return e.preventDefault(),void e.stopPropagation();a=a.parentNode}},!0)})(e,0,r),e.mobile={},_={touch:"ontouchend"in r},(a=e).mobile.support=a.mobile.support||{},a.extend(a.support,_),a.extend(a.mobile.support,_),function(l,e,t){function n(e,t,i){var a=i.type;i.type=t,l.event.dispatch.call(e,i),i.type=a}var g=l(r);l.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(e,t){l.fn[t]=function(e){return e?this.bind(t,e):this.trigger(t)},l.attrFn&&(l.attrFn[t]=!0)});var i=l.mobile.support.touch,a=i?"touchstart":"mousedown",_=i?"touchend":"mouseup",o=i?"touchmove":"mousemove";l.event.special.scrollstart={enabled:!0,setup:function(){function t(e,t){n(r,(i=t)?"scrollstart":"scrollstop",e)}var i,a,r=this;l(r).bind("touchmove scroll",function(e){l.event.special.scrollstart.enabled&&(i||t(e,!0),clearTimeout(a),a=setTimeout(function(){t(e,!1)},50))})}},l.event.special.tap={tapholdThreshold:750,setup:function(){var o=this,s=l(o);s.bind("vmousedown",function(e){function t(){clearTimeout(r)}function i(){t(),s.unbind("vclick",a).unbind("vmouseup",t),g.unbind("vmousecancel",i)}function a(e){i(),_===e.target&&n(o,"tap",e)}if(e.which&&1!==e.which)return!1;var r,_=e.target;e.originalEvent;s.bind("vmouseup",t).bind("vclick",a),g.bind("vmousecancel",i),r=setTimeout(function(){n(o,"taphold",l.Event("taphold",{target:_}))},l.event.special.tap.tapholdThreshold)})}},l.event.special.swipe={scrollSupressionThreshold:10,durationThreshold:1e3,horizontalDistanceThreshold:10,verticalDistanceThreshold:475,start:function(e){var t=e.originalEvent.touches?e.originalEvent.touches[0]:e;return{time:(new Date).getTime(),coords:[t.pageX,t.pageY],origin:l(e.target)}},stop:function(e){var t=e.originalEvent.touches?e.originalEvent.touches[0]:e;return{time:(new Date).getTime(),coords:[t.pageX,t.pageY]}},handleSwipe:function(e,t){t.time-e.time<l.event.special.swipe.durationThreshold&&Math.abs(e.coords[0]-t.coords[0])>l.event.special.swipe.horizontalDistanceThreshold&&Math.abs(e.coords[1]-t.coords[1])<l.event.special.swipe.verticalDistanceThreshold&&e.origin.trigger("swipe").trigger(e.coords[0]>t.coords[0]?"swipeleft":"swiperight")},setup:function(){var r=l(this);r.bind(a,function(e){function t(e){a&&(i=l.event.special.swipe.stop(e),Math.abs(a.coords[0]-i.coords[0])>l.event.special.swipe.scrollSupressionThreshold&&e.preventDefault())}var i,a=l.event.special.swipe.start(e);r.bind(o,t).one(_,function(){r.unbind(o,t),a&&i&&l.event.special.swipe.handleSwipe(a,i),a=i=void 0})})}},l.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe",swiperight:"swipe"},function(e,t){l.event.special[e]={setup:function(){l(this).bind(t,l.noop)}}})}(e)}),function(o){function t(e){var t=e||window.event,i=[].slice.call(arguments,1),a=0,r=0,_=0;return(e=o.event.fix(t)).type="mousewheel",t.wheelDelta&&(a=t.wheelDelta/120),t.detail&&(a=-t.detail/3),_=a,void 0!==t.axis&&t.axis===t.HORIZONTAL_AXIS&&(_=0,r=-1*a),void 0!==t.wheelDeltaY&&(_=t.wheelDeltaY/120),void 0!==t.wheelDeltaX&&(r=-1*t.wheelDeltaX/120),i.unshift(e,a,r,_),(o.event.dispatch||o.event.handle).apply(this,i)}var i=["DOMMouseScroll","mousewheel"];if(o.event.fixHooks)for(var e=i.length;e;)o.event.fixHooks[i[--e]]=o.event.mouseHooks;o.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var e=i.length;e;)this.addEventListener(i[--e],t,!1);else this.onmousewheel=t},teardown:function(){if(this.removeEventListener)for(var e=i.length;e;)this.removeEventListener(i[--e],t,!1);else this.onmousewheel=null}},o.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}(jQuery),function(x){var t={init:function(c){c=x.extend(!0,{set_width:!1,set_height:!1,horizontalScroll:!1,scrollInertia:950,mouseWheel:!0,mouseWheelPixels:"auto",autoDraggerLength:!0,autoHideScrollbar:!1,snapAmount:null,snapOffset:0,scrollButtons:{enable:!1,scrollType:"continuous",scrollSpeed:"auto",scrollAmount:40},advanced:{updateOnBrowserResize:!0,updateOnContentResize:!1,autoExpandHorizontalScroll:!1,autoScrollOnFocus:!0,normalizeMouseWheelDelta:!1},contentTouchScroll:!0,callbacks:{onScrollStart:function(){},onScroll:function(){},onTotalScroll:function(){},onTotalScrollBack:function(){},onTotalScrollOffset:0,onTotalScrollBackOffset:0,whileScrolling:function(){}},theme:"light"},c);return this.each(function(){var i=x(this);if(c.set_width&&i.css("width",c.set_width),c.set_height&&i.css("height",c.set_height),x(document).data("mCustomScrollbar-index")){var e=parseInt(x(document).data("mCustomScrollbar-index"));x(document).data("mCustomScrollbar-index",e+1)}else x(document).data("mCustomScrollbar-index","1");i.wrapInner("<div class='mCustomScrollBox mCS-"+c.theme+"' id='mCSB_"+x(document).data("mCustomScrollbar-index")+"' style='position:relative; height:100%; overflow:hidden; max-width:100%;' />").addClass("mCustomScrollbar _mCS_"+x(document).data("mCustomScrollbar-index"));var a=i.children(".mCustomScrollBox");if(c.horizontalScroll){a.addClass("mCSB_horizontal").wrapInner("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />");var t=a.children(".mCSB_h_wrapper");t.wrapInner("<div class='mCSB_container' style='position:absolute; left:0;' />").children(".mCSB_container").css({width:t.children().outerWidth(),position:"relative"}).unwrap()}else a.wrapInner("<div class='mCSB_container' style='position:relative; top:0;' />");var r=a.children(".mCSB_container");x.support.touch&&r.addClass("mCS_touch"),r.after("<div class='mCSB_scrollTools' style='position:absolute;'><div class='mCSB_draggerContainer'><div class='mCSB_dragger' style='position:absolute;' oncontextmenu='return false;'><div class='mCSB_dragger_bar' style='position:relative;'></div></div><div class='mCSB_draggerRail'></div></div></div>");var _=a.children(".mCSB_scrollTools"),o=_.children(".mCSB_draggerContainer").children(".mCSB_dragger");if(c.horizontalScroll?o.data("minDraggerWidth",o.width()):o.data("minDraggerHeight",o.height()),c.scrollButtons.enable&&(c.horizontalScroll?_.prepend("<a class='mCSB_buttonLeft' oncontextmenu='return false;'></a>").append("<a class='mCSB_buttonRight' oncontextmenu='return false;'></a>"):_.prepend("<a class='mCSB_buttonUp' oncontextmenu='return false;'></a>").append("<a class='mCSB_buttonDown' oncontextmenu='return false;'></a>")),a.bind("scroll",function(){i.is(".mCS_disabled")||a.scrollTop(0).scrollLeft(0)}),i.data({mCS_Init:!0,mCustomScrollbarIndex:x(document).data("mCustomScrollbar-index"),horizontalScroll:c.horizontalScroll,scrollInertia:c.scrollInertia,scrollEasing:"mcsEaseOut",mouseWheel:c.mouseWheel,mouseWheelPixels:c.mouseWheelPixels,autoDraggerLength:c.autoDraggerLength,autoHideScrollbar:c.autoHideScrollbar,snapAmount:c.snapAmount,snapOffset:c.snapOffset,scrollButtons_enable:c.scrollButtons.enable,scrollButtons_scrollType:c.scrollButtons.scrollType,scrollButtons_scrollSpeed:c.scrollButtons.scrollSpeed,scrollButtons_scrollAmount:c.scrollButtons.scrollAmount,autoExpandHorizontalScroll:c.advanced.autoExpandHorizontalScroll,autoScrollOnFocus:c.advanced.autoScrollOnFocus,normalizeMouseWheelDelta:c.advanced.normalizeMouseWheelDelta,contentTouchScroll:c.contentTouchScroll,onScrollStart_Callback:c.callbacks.onScrollStart,onScroll_Callback:c.callbacks.onScroll,onTotalScroll_Callback:c.callbacks.onTotalScroll,onTotalScrollBack_Callback:c.callbacks.onTotalScrollBack,onTotalScroll_Offset:c.callbacks.onTotalScrollOffset,onTotalScrollBack_Offset:c.callbacks.onTotalScrollBackOffset,whileScrolling_Callback:c.callbacks.whileScrolling,bindEvent_scrollbar_drag:!1,bindEvent_content_touch:!1,bindEvent_scrollbar_click:!1,bindEvent_mousewheel:!1,bindEvent_buttonsContinuous_y:!1,bindEvent_buttonsContinuous_x:!1,bindEvent_buttonsPixels_y:!1,bindEvent_buttonsPixels_x:!1,bindEvent_focusin:!1,bindEvent_autoHideScrollbar:!1,mCSB_buttonScrollRight:!1,mCSB_buttonScrollLeft:!1,mCSB_buttonScrollDown:!1,mCSB_buttonScrollUp:!1}),c.horizontalScroll)"none"!==i.css("max-width")&&(c.advanced.updateOnContentResize||(c.advanced.updateOnContentResize=!0));else if("none"!==i.css("max-height")){var s=!1,l=parseInt(i.css("max-height"));0<=i.css("max-height").indexOf("%")&&(s=l,l=i.parent().height()*s/100),i.css("overflow","hidden"),a.css("max-height",l)}if(i.mCustomScrollbar("update"),c.advanced.updateOnBrowserResize){var n,g=x(window).width(),u=x(window).height();x(window).bind("resize."+i.data("mCustomScrollbarIndex"),function(){n&&clearTimeout(n),n=setTimeout(function(){if(!i.is(".mCS_disabled")&&!i.is(".mCS_destroyed")){var e=x(window).width(),t=x(window).height();g===e&&u===t||("none"!==i.css("max-height")&&s&&a.css("max-height",i.parent().height()*s/100),i.mCustomScrollbar("update"),g=e,u=t)}},150)})}if(c.advanced.updateOnContentResize){if(c.horizontalScroll)var d=r.outerWidth();else d=r.outerHeight();setInterval(function(){if(c.horizontalScroll){c.advanced.autoExpandHorizontalScroll&&r.css({position:"absolute",width:"auto"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:r.outerWidth(),position:"relative"}).unwrap();var e=r.outerWidth()}else e=r.outerHeight();e!=d&&(i.mCustomScrollbar("update"),d=e)},300)}})},update:function(){var e=x(this),t=e.children(".mCustomScrollBox"),i=t.children(".mCSB_container");i.removeClass("mCS_no_scrollbar"),e.removeClass("mCS_disabled mCS_destroyed"),t.scrollTop(0).scrollLeft(0);var a=t.children(".mCSB_scrollTools"),r=a.children(".mCSB_draggerContainer"),_=r.children(".mCSB_dragger");if(e.data("horizontalScroll")){var o=a.children(".mCSB_buttonLeft"),s=a.children(".mCSB_buttonRight"),l=t.width();e.data("autoExpandHorizontalScroll")&&i.css({position:"absolute",width:"auto"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:i.outerWidth(),position:"relative"}).unwrap();var n=i.outerWidth()}else var g=a.children(".mCSB_buttonUp"),u=a.children(".mCSB_buttonDown"),d=t.height(),c=i.outerHeight();if(d<c&&!e.data("horizontalScroll")){a.css("display","block");var h=r.height();if(e.data("autoDraggerLength")){var b=Math.round(d/c*h),p=_.data("minDraggerHeight");if(b<=p)_.css({height:p});else if(h-10<=b){var m=h-10;_.css({height:m})}else _.css({height:b});_.children(".mCSB_dragger_bar").css({"line-height":_.height()+"px"})}var w=(c-d)/(h-_.height());e.data("scrollAmount",w).mCustomScrollbar("scrolling",t,i,r,_,g,u,o,s);var y=Math.abs(i.position().top);e.mCustomScrollbar("scrollTo",y,{scrollInertia:0,trigger:"internal"})}else if(l<n&&e.data("horizontalScroll")){a.css("display","block");var f=r.width();if(e.data("autoDraggerLength")){var j=Math.round(l/n*f),Q=_.data("minDraggerWidth");if(j<=Q)_.css({width:Q});else if(f-10<=j){var v=f-10;_.css({width:v})}else _.css({width:j})}w=(n-l)/(f-_.width());e.data("scrollAmount",w).mCustomScrollbar("scrolling",t,i,r,_,g,u,o,s);y=Math.abs(i.position().left);e.mCustomScrollbar("scrollTo",y,{scrollInertia:0,trigger:"internal"})}else t.unbind("mousewheel focusin"),e.data("horizontalScroll")?_.add(i).css("left",0):_.add(i).css("top",0),a.css("display","none"),i.addClass("mCS_no_scrollbar"),e.data({bindEvent_mousewheel:!1,bindEvent_focusin:!1})},scrolling:function(r,s,l,n,e,t,i,a){var o,g,_,u,d,c,h,b,p,m=x(this);m.data("bindEvent_scrollbar_drag")||(x.support.msPointer?(n.bind("MSPointerDown",function(e){e.preventDefault(),m.data({on_drag:!0}),n.addClass("mCSB_dragger_onDrag");var t=x(this),i=t.offset(),a=e.originalEvent.pageX-i.left,r=e.originalEvent.pageY-i.top;a<t.width()&&0<a&&r<t.height()&&0<r&&(o=r,g=a)}),x(document).bind("MSPointerMove."+m.data("mCustomScrollbarIndex"),function(e){if(e.preventDefault(),m.data("on_drag")){var t=n.offset(),i=e.originalEvent.pageX-t.left,a=e.originalEvent.pageY-t.top;w(o,g,a,i)}}).bind("MSPointerUp."+m.data("mCustomScrollbarIndex"),function(e){m.data({on_drag:!1}),n.removeClass("mCSB_dragger_onDrag")})):(n.bind("mousedown touchstart",function(e){e.preventDefault(),e.stopImmediatePropagation();var t,i,a=x(this),r=a.offset();if("touchstart"===e.type){var _=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0];t=_.pageX-r.left,i=_.pageY-r.top}else m.data({on_drag:!0}),n.addClass("mCSB_dragger_onDrag"),t=e.pageX-r.left,i=e.pageY-r.top;t<a.width()&&0<t&&i<a.height()&&0<i&&(o=i,g=t)}).bind("touchmove",function(e){e.preventDefault(),e.stopImmediatePropagation();var t=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],i=x(this).offset(),a=t.pageX-i.left,r=t.pageY-i.top;w(o,g,r,a)}),x(document).bind("mousemove."+m.data("mCustomScrollbarIndex"),function(e){if(m.data("on_drag")){var t=n.offset(),i=e.pageX-t.left,a=e.pageY-t.top;w(o,g,a,i)}}).bind("mouseup."+m.data("mCustomScrollbarIndex"),function(e){m.data({on_drag:!1}),n.removeClass("mCSB_dragger_onDrag")})),m.data({bindEvent_scrollbar_drag:!0}));function w(e,t,i,a){m.data("horizontalScroll")?m.mCustomScrollbar("scrollTo",n.position().left-t+a,{moveDragger:!0,trigger:"internal"}):m.mCustomScrollbar("scrollTo",n.position().top-e+i,{moveDragger:!0,trigger:"internal"})}x.support.touch&&m.data("contentTouchScroll")&&(m.data("bindEvent_content_touch")||(s.bind("touchstart",function(e){e.stopImmediatePropagation(),_=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],u=x(this),d=u.offset(),h=_.pageX-d.left,c=_.pageY-d.top,b=c,p=h}),s.bind("touchmove",function(e){e.preventDefault(),e.stopImmediatePropagation(),_=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],u=x(this).parent(),d=u.offset(),h=_.pageX-d.left,c=_.pageY-d.top,m.data("horizontalScroll")?m.mCustomScrollbar("scrollTo",p-h,{trigger:"internal"}):m.mCustomScrollbar("scrollTo",b-c,{trigger:"internal"})})));if(m.data("bindEvent_scrollbar_click")||(l.bind("click",function(e){var t=(e.pageY-l.offset().top)*m.data("scrollAmount"),i=x(e.target);m.data("horizontalScroll")&&(t=(e.pageX-l.offset().left)*m.data("scrollAmount")),(i.hasClass("mCSB_draggerContainer")||i.hasClass("mCSB_draggerRail"))&&m.mCustomScrollbar("scrollTo",t,{trigger:"internal",scrollEasing:"draggerRailEase"})}),m.data({bindEvent_scrollbar_click:!0})),m.data("mouseWheel")&&(m.data("bindEvent_mousewheel")||(r.bind("mousewheel",function(e,t){var i,a=m.data("mouseWheelPixels"),r=Math.abs(s.position().top),_=n.position().top,o=l.height()-n.height();m.data("normalizeMouseWheelDelta")&&(t=t<0?-1:1),"auto"===a&&(a=100+Math.round(m.data("scrollAmount")/2)),m.data("horizontalScroll")&&(_=n.position().left,o=l.width()-n.width(),r=Math.abs(s.position().left)),(0<t&&0!==_||t<0&&_!==o)&&(e.preventDefault(),e.stopImmediatePropagation()),i=r-t*a,m.mCustomScrollbar("scrollTo",i,{trigger:"internal"})}),m.data({bindEvent_mousewheel:!0}))),m.data("scrollButtons_enable"))if("pixels"===m.data("scrollButtons_scrollType")){function y(e){n.data("preventAction")||(n.data("preventAction",!0),m.mCustomScrollbar("scrollTo",e,{trigger:"internal"}))}m.data("horizontalScroll")?(a.add(i).unbind("mousedown touchstart MSPointerDown mouseup MSPointerUp mouseout MSPointerOut touchend",f,j),m.data({bindEvent_buttonsContinuous_x:!1}),m.data("bindEvent_buttonsPixels_x")||(a.bind("click",function(e){e.preventDefault(),y(Math.abs(s.position().left)+m.data("scrollButtons_scrollAmount"))}),i.bind("click",function(e){e.preventDefault(),y(Math.abs(s.position().left)-m.data("scrollButtons_scrollAmount"))}),m.data({bindEvent_buttonsPixels_x:!0}))):(t.add(e).unbind("mousedown touchstart MSPointerDown mouseup MSPointerUp mouseout MSPointerOut touchend",f,j),m.data({bindEvent_buttonsContinuous_y:!1}),m.data("bindEvent_buttonsPixels_y")||(t.bind("click",function(e){e.preventDefault(),y(Math.abs(s.position().top)+m.data("scrollButtons_scrollAmount"))}),e.bind("click",function(e){e.preventDefault(),y(Math.abs(s.position().top)-m.data("scrollButtons_scrollAmount"))}),m.data({bindEvent_buttonsPixels_y:!0})))}else{if(m.data("horizontalScroll")){if(a.add(i).unbind("click"),m.data({bindEvent_buttonsPixels_x:!1}),!m.data("bindEvent_buttonsContinuous_x")){a.bind("mousedown touchstart MSPointerDown",function(e){e.preventDefault();var t=Q();m.data({mCSB_buttonScrollRight:setInterval(function(){m.mCustomScrollbar("scrollTo",Math.abs(s.position().left)+t,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});var f=function(e){e.preventDefault(),clearInterval(m.data("mCSB_buttonScrollRight"))};a.bind("mouseup touchend MSPointerUp mouseout MSPointerOut",f),i.bind("mousedown touchstart MSPointerDown",function(e){e.preventDefault();var t=Q();m.data({mCSB_buttonScrollLeft:setInterval(function(){m.mCustomScrollbar("scrollTo",Math.abs(s.position().left)-t,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});var j=function(e){e.preventDefault(),clearInterval(m.data("mCSB_buttonScrollLeft"))};i.bind("mouseup touchend MSPointerUp mouseout MSPointerOut",j),m.data({bindEvent_buttonsContinuous_x:!0})}}else if(t.add(e).unbind("click"),m.data({bindEvent_buttonsPixels_y:!1}),!m.data("bindEvent_buttonsContinuous_y")){t.bind("mousedown touchstart MSPointerDown",function(e){e.preventDefault();var t=Q();m.data({mCSB_buttonScrollDown:setInterval(function(){m.mCustomScrollbar("scrollTo",Math.abs(s.position().top)+t,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});t.bind("mouseup touchend MSPointerUp mouseout MSPointerOut",function(e){e.preventDefault(),clearInterval(m.data("mCSB_buttonScrollDown"))}),e.bind("mousedown touchstart MSPointerDown",function(e){e.preventDefault();var t=Q();m.data({mCSB_buttonScrollUp:setInterval(function(){m.mCustomScrollbar("scrollTo",Math.abs(s.position().top)-t,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});e.bind("mouseup touchend MSPointerUp mouseout MSPointerOut",function(e){e.preventDefault(),clearInterval(m.data("mCSB_buttonScrollUp"))}),m.data({bindEvent_buttonsContinuous_y:!0})}function Q(){var e=m.data("scrollButtons_scrollSpeed");return"auto"===m.data("scrollButtons_scrollSpeed")&&(e=Math.round((m.data("scrollInertia")+100)/40)),e}}m.data("autoScrollOnFocus")&&(m.data("bindEvent_focusin")||(r.bind("focusin",function(){r.scrollTop(0).scrollLeft(0);var e=x(document.activeElement);if(e.is("input,textarea,select,button,a[tabindex],area,object")){var t=s.position().top,i=e.position().top,a=r.height()-e.outerHeight();m.data("horizontalScroll")&&(t=s.position().left,i=e.position().left,a=r.width()-e.outerWidth()),(t+i<0||a<t+i)&&m.mCustomScrollbar("scrollTo",i,{trigger:"internal"})}}),m.data({bindEvent_focusin:!0}))),m.data("autoHideScrollbar")&&(m.data("bindEvent_autoHideScrollbar")||(r.bind("mouseenter",function(e){r.addClass("mCS-mouse-over"),v.showScrollbar.call(r.children(".mCSB_scrollTools"))}).bind("mouseleave touchend",function(e){r.removeClass("mCS-mouse-over"),"mouseleave"===e.type&&v.hideScrollbar.call(r.children(".mCSB_scrollTools"))}),m.data({bindEvent_autoHideScrollbar:!0})))},scrollTo:function(e,t){var i,a,r,_,o,s=x(this),l={moveDragger:!1,trigger:"external",callbacks:!0,scrollInertia:s.data("scrollInertia"),scrollEasing:s.data("scrollEasing")},n=(t=x.extend(l,t),s.children(".mCustomScrollBox")),g=n.children(".mCSB_container"),u=n.children(".mCSB_scrollTools"),d=u.children(".mCSB_draggerContainer"),c=d.children(".mCSB_dragger"),h=draggerSpeed=t.scrollInertia;if(!g.hasClass("mCS_no_scrollbar")&&(s.data({mCS_trigger:t.trigger}),s.data("mCS_Init")&&(t.callbacks=!1),e||0===e)){var b,p;if("number"==typeof e)t.moveDragger?(i=e,e=s.data("horizontalScroll")?c.position().left*s.data("scrollAmount"):c.position().top*s.data("scrollAmount"),draggerSpeed=0):i=e/s.data("scrollAmount");else if("string"==typeof e)i=1===(b="top"===e?0:"bottom"!==e||s.data("horizontalScroll")?"left"===e?0:"right"===e&&s.data("horizontalScroll")?g.outerWidth()-n.width():"first"===e?s.find(".mCSB_container").find(":first"):"last"===e?s.find(".mCSB_container").find(":last"):s.find(e):g.outerHeight()-n.height()).length?(e=s.data("horizontalScroll")?b.position().left:b.position().top)/s.data("scrollAmount"):e=b;if(s.data("horizontalScroll"))s.data("onTotalScrollBack_Offset")&&(r=-s.data("onTotalScrollBack_Offset")),s.data("onTotalScroll_Offset")&&(o=n.width()-g.outerWidth()+s.data("onTotalScroll_Offset")),i<0?(i=e=0,clearInterval(s.data("mCSB_buttonScrollLeft")),r||(a=!0)):i>=d.width()-c.width()?(i=d.width()-c.width(),e=n.width()-g.outerWidth(),clearInterval(s.data("mCSB_buttonScrollRight")),o||(_=!0)):e=-e,(p=s.data("snapAmount"))&&(e=Math.round(e/p)*p-s.data("snapOffset")),v.mTweenAxis.call(this,c[0],"left",Math.round(i),draggerSpeed,t.scrollEasing),v.mTweenAxis.call(this,g[0],"left",Math.round(e),h,t.scrollEasing,{onStart:function(){t.callbacks&&!s.data("mCS_tweenRunning")&&m("onScrollStart"),s.data("autoHideScrollbar")&&v.showScrollbar.call(u)},onUpdate:function(){t.callbacks&&m("whileScrolling")},onComplete:function(){t.callbacks&&(m("onScroll"),(a||r&&g.position().left>=r)&&m("onTotalScrollBack"),(_||o&&g.position().left<=o)&&m("onTotalScroll")),c.data("preventAction",!1),s.data("mCS_tweenRunning",!1),s.data("autoHideScrollbar")&&(n.hasClass("mCS-mouse-over")||v.hideScrollbar.call(u))}});else s.data("onTotalScrollBack_Offset")&&(r=-s.data("onTotalScrollBack_Offset")),s.data("onTotalScroll_Offset")&&(o=n.height()-g.outerHeight()+s.data("onTotalScroll_Offset")),i<0?(i=e=0,clearInterval(s.data("mCSB_buttonScrollUp")),r||(a=!0)):i>=d.height()-c.height()?(i=d.height()-c.height(),e=n.height()-g.outerHeight(),clearInterval(s.data("mCSB_buttonScrollDown")),o||(_=!0)):e=-e,(p=s.data("snapAmount"))&&(e=Math.round(e/p)*p-s.data("snapOffset")),v.mTweenAxis.call(this,c[0],"top",Math.round(i),draggerSpeed,t.scrollEasing),v.mTweenAxis.call(this,g[0],"top",Math.round(e),h,t.scrollEasing,{onStart:function(){t.callbacks&&!s.data("mCS_tweenRunning")&&m("onScrollStart"),s.data("autoHideScrollbar")&&v.showScrollbar.call(u)},onUpdate:function(){t.callbacks&&m("whileScrolling")},onComplete:function(){t.callbacks&&(m("onScroll"),(a||r&&g.position().top>=r)&&m("onTotalScrollBack"),(_||o&&g.position().top<=o)&&m("onTotalScroll")),c.data("preventAction",!1),s.data("mCS_tweenRunning",!1),s.data("autoHideScrollbar")&&(n.hasClass("mCS-mouse-over")||v.hideScrollbar.call(u))}});s.data("mCS_Init")&&s.data({mCS_Init:!1})}function m(e){switch(this.mcs={top:g.position().top,left:g.position().left,draggerTop:c.position().top,draggerLeft:c.position().left,topPct:Math.round(100*Math.abs(g.position().top)/Math.abs(g.outerHeight()-n.height())),leftPct:Math.round(100*Math.abs(g.position().left)/Math.abs(g.outerWidth()-n.width()))},e){case"onScrollStart":s.data("mCS_tweenRunning",!0).data("onScrollStart_Callback").call(s,this.mcs);break;case"whileScrolling":s.data("whileScrolling_Callback").call(s,this.mcs);break;case"onScroll":s.data("onScroll_Callback").call(s,this.mcs);break;case"onTotalScrollBack":s.data("onTotalScrollBack_Callback").call(s,this.mcs);break;case"onTotalScroll":s.data("onTotalScroll_Callback").call(s,this.mcs)}}},stop:function(){var e=x(this),t=e.children().children(".mCSB_container"),i=e.children().children().children().children(".mCSB_dragger");v.mTweenAxisStop.call(this,t[0]),v.mTweenAxisStop.call(this,i[0])},disable:function(e){var t=x(this),i=t.children(".mCustomScrollBox"),a=i.children(".mCSB_container"),r=i.children(".mCSB_scrollTools"),_=r.children().children(".mCSB_dragger");i.unbind("mousewheel focusin mouseenter mouseleave touchend"),a.unbind("touchstart touchmove"),e&&(t.data("horizontalScroll")?_.add(a).css("left",0):_.add(a).css("top",0)),r.css("display","none"),a.addClass("mCS_no_scrollbar"),t.data({bindEvent_mousewheel:!1,bindEvent_focusin:!1,bindEvent_content_touch:!1,bindEvent_autoHideScrollbar:!1}).addClass("mCS_disabled")},destroy:function(){var e=x(this);e.removeClass("mCustomScrollbar _mCS_"+e.data("mCustomScrollbarIndex")).addClass("mCS_destroyed").children().children(".mCSB_container").unwrap().children().unwrap().siblings(".mCSB_scrollTools").remove(),x(document).unbind("mousemove."+e.data("mCustomScrollbarIndex")+" mouseup."+e.data("mCustomScrollbarIndex")+" MSPointerMove."+e.data("mCustomScrollbarIndex")+" MSPointerUp."+e.data("mCustomScrollbarIndex")),x(window).unbind("resize."+e.data("mCustomScrollbarIndex"))}},v={showScrollbar:function(){this.stop().animate({opacity:1},"fast")},hideScrollbar:function(){this.stop().animate({opacity:0},"fast")},mTweenAxis:function(e,t,i,a,r,_){var o,s=(_=_||{}).onStart||function(){},l=_.onUpdate||function(){},n=_.onComplete||function(){},g=b(),u=0,d=e.offsetTop,c=e.style;"left"===t&&(d=e.offsetLeft);var h=i-d;function b(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()}function p(){u||s.call(),u=b()-g,m(),u>=e._time&&(e._time=u>e._time?u+o-(u-e._time):u+o-1,e._time<u+1&&(e._time=u+1)),e._time<a?e._id=_request(p):n.call()}function m(){c[t]=0<a?(e.currVal=function(e,t,i,a,r){switch(r){case"linear":return i*e/a+t;case"easeOutQuad":return-i*(e/=a)*(e-2)+t;case"easeInOutQuad":return(e/=a/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t;case"easeOutCubic":return e/=a,i*(--e*e*e+1)+t;case"easeOutQuart":return e/=a,-i*(--e*e*e*e-1)+t;case"easeOutQuint":return e/=a,i*(--e*e*e*e*e+1)+t;case"easeOutCirc":return e/=a,e--,i*Math.sqrt(1-e*e)+t;case"easeOutSine":return i*Math.sin(e/a*(Math.PI/2))+t;case"easeOutExpo":return i*(1-Math.pow(2,-10*e/a))+t;case"mcsEaseOut":var _=(e/=a)*e,o=_*e;return t+i*(.499999999999997*o*_+-2.5*_*_+5.5*o+-6.5*_+4*e);case"draggerRailEase":return(e/=a/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}}(e._time,d,h,a,r),Math.round(e.currVal)+"px"):i+"px",l.call()}!function(){if(null==e._id)return;window.requestAnimationFrame?window.cancelAnimationFrame(e._id):clearTimeout(e._id);e._id=null}(),o=1e3/60,e._time=u+o,_request=window.requestAnimationFrame?window.requestAnimationFrame:function(e){return m(),setTimeout(e,.01)},e._id=_request(p)},mTweenAxisStop:function(e){null!=e._id&&(window.requestAnimationFrame?window.cancelAnimationFrame(e._id):clearTimeout(e._id),e._id=null)},rafPolyfill:function(){for(var e=["ms","moz","webkit","o"],t=e.length;-1<--t&&!window.requestAnimationFrame;)window.requestAnimationFrame=window[e[t]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[t]+"CancelAnimationFrame"]||window[e[t]+"CancelRequestAnimationFrame"]}};v.rafPolyfill.call(),x.support.touch=!!("ontouchstart"in window),x.support.msPointer=window.navigator.msPointerEnabled;var e="https:"==document.location.protocol?"https:":"http:";x.event.special.mousewheel||document.write('<script src="'+e+'//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.0.6/jquery.mousewheel.min.js"><\/script>'),x.fn.mCustomScrollbar=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void x.error("Method "+e+" does not exist"):t.init.apply(this,arguments)}}(jQuery),function(r){function _(e){return void 0!==e}function e(e,t,i){var a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e,t.prototype.constructor=t,e._super=t.prototype,i&&r.extend(e.prototype,i)}var o=[["",""],["exit","cancel"],["screen","Screen"]],s=["","o","ms","moz","webkit","webkitCurrent"];function i(e,t){var i;"string"==typeof e&&(t=e,e=document);for(var a=0;a<o.length;++a){t=t.replace(o[a][0],o[a][1]);for(var r=0;r<s.length;++r)if(i=s[r],_(e[i+=0===r?t:t.charAt(0).toUpperCase()+t.substr(1)]))return e[i]}}var t=navigator.userAgent,a=i("fullscreenEnabled"),l=!(-1!==t.indexOf("Android")&&-1!==t.indexOf("Chrome"))&&_(i("fullscreenElement"))&&(!_(a)||!0===a),n=r.fn.jquery.split("."),g=parseInt(n[0])<2&&parseInt(n[1])<7,u=function(){this.__options=null,this._fullScreenElement=null,this.__savedStyles={}};u.prototype={_DEFAULT_OPTIONS:{styles:{boxSizing:"border-box",MozBoxSizing:"border-box",WebkitBoxSizing:"border-box"},toggleClass:null},__documentOverflow:"",__htmlOverflow:"",_preventDocumentScroll:function(){this.__documentOverflow=r("body")[0].style.overflow,this.__htmlOverflow=r("html")[0].style.overflow},_allowDocumentScroll:function(){},_fullScreenChange:function(){this.isFullScreen()?(this._preventDocumentScroll(),this._triggerEvents()):(this._allowDocumentScroll(),this._revertStyles(),this._triggerEvents(),this._fullScreenElement=null)},_fullScreenError:function(e){this._revertStyles(),this._fullScreenElement=null,e&&r(document).trigger("fscreenerror",[e])},_triggerEvents:function(){r(this._fullScreenElement).trigger(this.isFullScreen()?"fscreenopen":"fscreenclose"),r(document).trigger("fscreenchange",[this.isFullScreen(),this._fullScreenElement])},_saveAndApplyStyles:function(){var e=r(this._fullScreenElement);for(var t in this.__savedStyles={},this.__options.styles)this.__savedStyles[t]=this._fullScreenElement.style[t],this._fullScreenElement.style[t]=this.__options.styles[t];this.__options.toggleClass&&e.addClass(this.__options.toggleClass)},_revertStyles:function(){var e=r(this._fullScreenElement);for(var t in this.__options.styles)this._fullScreenElement.style[t]=this.__savedStyles[t];this.__options.toggleClass&&e.removeClass(this.__options.toggleClass)},open:function(e,t){e!==this._fullScreenElement&&(this.isFullScreen()&&this.exit(),this._fullScreenElement=e,this.__options=r.extend(!0,{},this._DEFAULT_OPTIONS,t),this._saveAndApplyStyles())},exit:null,isFullScreen:null,isNativelySupported:function(){return l}};var d=function(){d._super.constructor.apply(this,arguments),this.exit=r.proxy(i("exitFullscreen"),document),this._DEFAULT_OPTIONS=r.extend(!0,{},this._DEFAULT_OPTIONS,{styles:{width:"100%",height:"100%"}}),r(document).bind(this._prefixedString("fullscreenchange")+" MSFullscreenChange",r.proxy(this._fullScreenChange,this)).bind(this._prefixedString("fullscreenerror")+" MSFullscreenError",r.proxy(this._fullScreenError,this))};e(d,u,{VENDOR_PREFIXES:["","o","moz","webkit"],_prefixedString:function(t){return r.map(this.VENDOR_PREFIXES,function(e){return e+t}).join(" ")},open:function(e,t){d._super.open.apply(this,arguments),i(e,"requestFullscreen").call(e)},exit:r.noop,isFullScreen:function(){return null!==i("fullscreenElement")},element:function(){return i("fullscreenElement")}});var c=function(){c._super.constructor.apply(this,arguments),this._DEFAULT_OPTIONS=r.extend({},this._DEFAULT_OPTIONS,{styles:{position:"fixed",zIndex:"2147483647",left:0,top:0,bottom:0,right:0}}),this.__delegateKeydownHandler()};e(c,u,{__isFullScreen:!1,__delegateKeydownHandler:function(){var e=r(document);e.delegate("*","keydown.fullscreen",r.proxy(this.__keydownHandler,this));var t=g?e.data("events"):r._data(document).events,i=t.keydown;g?t.live.unshift(t.live.pop()):i.splice(0,0,i.splice(i.delegateCount-1,1)[0])},__keydownHandler:function(e){return!this.isFullScreen()||27!==e.which||(this.exit(),!1)},_revertStyles:function(){c._super._revertStyles.apply(this,arguments),this._fullScreenElement.offsetHeight},open:function(e){c._super.open.apply(this,arguments),this.__isFullScreen=!0,this._fullScreenChange()},exit:function(){this.__isFullScreen=!1,this._fullScreenChange()},isFullScreen:function(){return this.__isFullScreen},element:function(){return this.__isFullScreen?this._fullScreenElement:null}}),r.fullscreen=l?new d:new c,r.fn.fullscreen=function(e){var t=this[0];return(e=r.extend({toggleClass:null},e)).styles={},t&&r.fullscreen.open(t,e),this}}(jQuery);var bwg_current_filmstrip_pos,total_thumbnail_count,key,startPoint,endPoint,bwg_image_info_pos,filmstrip_width,preloadCount,filmstrip_thumbnail_width,filmstrip_thumbnail_height,addthis_share,lightbox_comment_pos,bwg_transition_duration,bwg_playInterval,isPopUpOpened=!1,bwg_overflow_initial_value=!1,bwg_overflow_x_initial_value=!1,bwg_overflow_y_initial_value=!1;function gallery_box_ready(){filmstrip_thumbnail_width=jQuery(".bwg_filmstrip_thumbnail").width(),filmstrip_thumbnail_height=jQuery(".bwg_filmstrip_thumbnail").height(),1==gallery_box_data.open_with_fullscreen?(filmstrip_width=jQuery(window).width(),filmstrip_height=jQuery(window).height()):(filmstrip_width=jQuery(".bwg_filmstrip_container").width(),filmstrip_height=jQuery(".bwg_filmstrip_container").height()),preloadCount="horizontal"==gallery_box_data.filmstrip_direction?parseInt(filmstrip_width/filmstrip_thumbnail_width)+gallery_box_data.preload_images_count:parseInt(filmstrip_height/filmstrip_thumbnail_height)+gallery_box_data.preload_images_count,total_thumbnail_count=jQuery(".bwg_filmstrip_thumbnail").length,key=parseInt(jQuery("#bwg_current_image_key").val()),startPoint=0,endPoint=key+preloadCount,jQuery(document).ready(function(){bwg_load_visible_images(key,preloadCount,total_thumbnail_count),jQuery(".pge_tabs li a").on("click",function(){return jQuery(".pge_tabs_container > div").hide(),jQuery(".pge_tabs li").removeClass("pge_active"),jQuery(jQuery(this).attr("href")).show(),jQuery(this).closest("li").addClass("pge_active"),jQuery("[name=type]").val(jQuery(this).attr("href").substr(1)),!1});var e=jQuery("#bwg_rated").attr("data-params");bwg_rating((e=JSON.parse(e)).current_rate,e.current_rate_count,e.current_avg_rating,e.current_image_key)}),1==gallery_box_data.is_pro&&1==gallery_box_data.enable_addthis&&gallery_box_data.addthis_profile_id&&(addthis_share={url:gallery_box_data.share_url}),lightbox_comment_pos=gallery_box_data.lightbox_comment_pos,bwg_image_info_pos=jQuery(".bwg_ctrl_btn_container").length?jQuery(".bwg_ctrl_btn_container").height():0,setTimeout(function(){jQuery(".bwg_image_info_container1").height()<jQuery(".bwg_image_info").height()+jQuery(".bwg_toggle_container").height()+bwg_image_info_pos+2*parseInt(gallery_box_data.lightbox_info_margin)&&("top"==gallery_box_data.lightbox_ctrl_btn_pos&&jQuery(".bwg_image_info").css("top",bwg_image_info_pos+"px"),jQuery(".bwg_image_info").height(jQuery(".bwg_image_info_container1").height()-jQuery(".bwg_toggle_container").height()-bwg_image_info_pos-2*parseInt(gallery_box_data.lightbox_info_margin)))},100),bwg_transition_duration=gallery_box_data.slideshow_interval<4*gallery_box_data.slideshow_effect_duration&&0!=gallery_box_data.slideshow_interval?1e3*gallery_box_data.slideshow_interval/4:1e3*gallery_box_data.slideshow_effect_duration,gallery_box_data.bwg_transition_duration=bwg_transition_duration,gallery_box_data.bwg_trans_in_progress=!1,(jQuery("#spider_popup_wrap").width()>=jQuery(window).width()||jQuery("#spider_popup_wrap").height()>=jQuery(window).height())&&jQuery(".spider_popup_close").attr("class","bwg_ctrl_btn spider_popup_close_fullscreen"),window.clearInterval(bwg_playInterval),bwg_current_filmstrip_pos=gallery_box_data.current_pos,jQuery(document).on("keydown",function(e){jQuery("#bwg_name").is(":focus")||jQuery("#bwg_email").is(":focus")||jQuery("#bwg_comment").is(":focus")||jQuery("#bwg_captcha_input").is(":focus")||(39===e.keyCode?bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),parseInt(jQuery("#bwg_current_image_key").val())+1):37===e.keyCode?bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),parseInt(jQuery("#bwg_current_image_key").val())-1):27===e.keyCode?spider_destroypopup(1e3):32===e.keyCode&&jQuery(".bwg_play_pause").trigger("click"))}),jQuery(window).resize(function(){void 0!==jQuery().fullscreen&&jQuery.isFunction(jQuery().fullscreen)&&(jQuery.fullscreen.isFullScreen()||bwg_popup_resize())});var r=gallery_box_data.image_width,_=gallery_box_data.image_height;if(1==gallery_box_data.is_pro){1==gallery_box_data.enable_addthis&&gallery_box_data.addthis_profile_id&&jQuery(".at4-share-outer").show(),spider_set_input_value("rate_ajax_task","save_hit_count"),spider_rate_ajax_save("bwg_rate_form");var e=gallery_box_data.data,t=gallery_box_data.current_image_key;jQuery(".bwg_image_hits span").html(++e[t].hit_count);var i=window.location.hash;i&&"-1"!=i.indexOf("bwg")||(location.replace("#bwg"+gallery_box_data.gallery_id+"/"+gallery_box_data.current_image_id),history.replaceState(void 0,void 0,"#bwg"+gallery_box_data.gallery_id+"/"+gallery_box_data.current_image_id))}1==gallery_box_data.image_right_click&&(jQuery(".bwg_image_wrap").bind("contextmenu",function(e){return!1}),jQuery(".bwg_image_wrap").css("webkitTouchCallout","none")),jQuery("#spider_popup_wrap").bind("touchmove",function(e){e.preventDefault()}),void 0!==jQuery().swiperight&&jQuery.isFunction(jQuery().swiperight)&&jQuery("#spider_popup_wrap .bwg_image_wrap").swiperight(function(){return bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),(parseInt(jQuery("#bwg_current_image_key").val())+gallery_box_data.data.length-1)%gallery_box_data.data.length),!1}),void 0!==jQuery().swipeleft&&jQuery.isFunction(jQuery().swipeleft)&&jQuery("#spider_popup_wrap .bwg_image_wrap").swipeleft(function(){return bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),(parseInt(jQuery("#bwg_current_image_key").val())+1)%gallery_box_data.data.length),!1}),bwg_reset_zoom();var a=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase())?"touchend":"click";jQuery("#spider_popup_left").on(a,function(){return bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),(parseInt(jQuery("#bwg_current_image_key").val())+gallery_box_data.data.length-1)%gallery_box_data.data.length),!1}),jQuery("#spider_popup_right").on(a,function(){return bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),(parseInt(jQuery("#bwg_current_image_key").val())+1)%gallery_box_data.data.length),!1}),-1!=navigator.appVersion.indexOf("MSIE 10")||-1!=navigator.appVersion.indexOf("MSIE 9")?setTimeout(function(){bwg_popup_resize()},1):bwg_popup_resize(),jQuery(".bwg_watermark").css({display:"none"}),setTimeout(function(){bwg_change_watermark_container()},500),void 0!==jQuery().fullscreen&&jQuery.isFunction(jQuery().fullscreen)&&(jQuery.fullscreen.isNativelySupported()||jQuery(".bwg_fullscreen").hide()),"horizontal"==gallery_box_data.filmstrip_direction?(jQuery(".bwg_image_container").height(jQuery(".bwg_image_wrap").height()-gallery_box_data.image_filmstrip_height),jQuery(".bwg_image_container").width(jQuery(".bwg_image_wrap").width())):(jQuery(".bwg_image_container").height(jQuery(".bwg_image_wrap").height()),jQuery(".bwg_image_container").width(jQuery(".bwg_image_wrap").width()-gallery_box_data.image_filmstrip_width)),void 0!==jQuery().mCustomScrollbar&&jQuery.isFunction(jQuery().mCustomScrollbar)&&(jQuery(".bwg_comments").mCustomScrollbar({scrollInertia:150}),jQuery(".bwg_ecommerce_panel").mCustomScrollbar({scrollInertia:150,advanced:{updateOnContentResize:!0}}));var o=/Firefox/i.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel";jQuery(".bwg_filmstrip").on(o,function(e){var t=window.event||e,i=(t=t.originalEvent?t.originalEvent:t).detail?-40*t.detail:t.wheelDelta,a=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase());0<i?jQuery(".bwg_filmstrip_left").trigger(a?"touchend":"click"):jQuery(".bwg_filmstrip_right").trigger(a?"touchend":"click")}),jQuery(".bwg_filmstrip_right").on(a,function(){jQuery(".bwg_filmstrip_thumbnails").stop(!0,!1),"left"==gallery_box_data.left_or_top?"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_thumbnails").position().left>=-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width())&&(jQuery(".bwg_filmstrip_left").css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_filmstrip_thumbnails").position().left<-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width()-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width+gallery_box_data.all_images_right_left_space))?jQuery(".bwg_filmstrip_thumbnails").animate({left:-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width()-gallery_box_data.all_images_right_left_space)},500,"linear"):jQuery(".bwg_filmstrip_thumbnails").animate({left:jQuery(".bwg_filmstrip_thumbnails").position().left-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width)},500,"linear")),window.setTimeout(function(){jQuery(".bwg_filmstrip_thumbnails").position().left==-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width())&&jQuery(".bwg_filmstrip_right").css({opacity:.3,filter:"Alpha(opacity=30)"})},500)):(jQuery(".bwg_filmstrip_thumbnails").position().left>=-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height())&&(jQuery(".bwg_filmstrip_left").css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_filmstrip_thumbnails").position().left<-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height()-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width+gallery_box_data.all_images_right_left_space))?jQuery(".bwg_filmstrip_thumbnails").animate({left:-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height()-gallery_box_data.all_images_right_left_space)},500,"linear"):jQuery(".bwg_filmstrip_thumbnails").animate({left:jQuery(".bwg_filmstrip_thumbnails").position().left-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width)},500,"linear")),window.setTimeout(function(){jQuery(".bwg_filmstrip_thumbnails").position().left==-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height())&&jQuery(".bwg_filmstrip_right").css({opacity:.3,filter:"Alpha(opacity=30)"})},500)):"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_thumbnails").position().top>=-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width())&&(jQuery(".bwg_filmstrip_left").css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_filmstrip_thumbnails").position().top<-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width()-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width+gallery_box_data.all_images_right_left_space))?jQuery(".bwg_filmstrip_thumbnails").animate({left:-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width()-gallery_box_data.all_images_right_left_space)},500,"linear"):jQuery(".bwg_filmstrip_thumbnails").animate({left:jQuery(".bwg_filmstrip_thumbnails").position().top-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width)},500,"linear")),window.setTimeout(function(){jQuery(".bwg_filmstrip_thumbnails").position().left==-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width())&&jQuery(".bwg_filmstrip_right").css({opacity:.3,filter:"Alpha(opacity=30)"})},500)):(jQuery(".bwg_filmstrip_thumbnails").position().top>=-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height())&&(jQuery(".bwg_filmstrip_left").css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_filmstrip_thumbnails").position().top<-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height()-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width+gallery_box_data.all_images_right_left_space))?jQuery(".bwg_filmstrip_thumbnails").animate({top:-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height()-gallery_box_data.all_images_right_left_space)},500,"linear"):jQuery(".bwg_filmstrip_thumbnails").animate({top:jQuery(".bwg_filmstrip_thumbnails").position().top-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width)},500,"linear")),window.setTimeout(function(){jQuery(".bwg_filmstrip_thumbnails").position().left==-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height())&&jQuery(".bwg_filmstrip_right").css({opacity:.3,filter:"Alpha(opacity=30)"})},500))}),"left"==gallery_box_data.left_or_top?jQuery(".bwg_filmstrip_left").on(a,function(){jQuery(".bwg_filmstrip_thumbnails").stop(!0,!1),jQuery(".bwg_filmstrip_thumbnails").position().left<0&&(jQuery(".bwg_filmstrip_right").css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_filmstrip_thumbnails").position().left>-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width)?jQuery(".bwg_filmstrip_thumbnails").animate({left:0},500,"linear"):jQuery(".bwg_filmstrip_thumbnails").animate({left:jQuery(".bwg_filmstrip_thumbnails").position().left+gallery_box_data.image_filmstrip_width+gallery_box_data.filmstrip_thumb_right_left_space},500,"linear")),window.setTimeout(function(){0==jQuery(".bwg_filmstrip_thumbnails").position().left&&jQuery(".bwg_filmstrip_left").css({opacity:.3,filter:"Alpha(opacity=30)"})},500)}):jQuery(".bwg_filmstrip_left").on(a,function(){jQuery(".bwg_filmstrip_thumbnails").stop(!0,!1),jQuery(".bwg_filmstrip_thumbnails").position().top<0&&(jQuery(".bwg_filmstrip_right").css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_filmstrip_thumbnails").position().top>-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width)?jQuery(".bwg_filmstrip_thumbnails").animate({top:0},500,"linear"):jQuery(".bwg_filmstrip_thumbnails").animate({top:jQuery(".bwg_filmstrip_thumbnails").position().top+gallery_box_data.image_filmstrip_width+gallery_box_data.filmstrip_thumb_right_left_space},500,"linear")),window.setTimeout(function(){0==jQuery(".bwg_filmstrip_thumbnails").position().top&&jQuery(".bwg_filmstrip_left").css({opacity:.3,filter:"Alpha(opacity=30)"})},500)}),"width"==gallery_box_data.width_or_height?bwg_set_filmstrip_pos(jQuery(".bwg_filmstrip").width(),"",gallery_box_data):bwg_set_filmstrip_pos(jQuery(".bwg_filmstrip").height(),"",gallery_box_data),jQuery(".bwg_info").on(a,function(){if("none"==jQuery(".bwg_image_info_container1").css("display")){jQuery(".bwg_image_info_container1").css("display","table-cell"),jQuery(".bwg_info").attr("title",bwg_objectsL10n.bwg_hide_info);var e=jQuery(".bwg_ctrl_btn_container").length?jQuery(".bwg_ctrl_btn_container").height():0;setTimeout(function(){jQuery(".bwg_image_info_container1").height()<jQuery(".bwg_image_info").height()+e+2*parseInt(gallery_box_data.lightbox_info_margin)&&("top"==gallery_box_data.lightbox_ctrl_btn_pos&&jQuery(".bwg_image_info").css("top",e+"px"),jQuery(".bwg_image_info").height(jQuery(".bwg_image_info_container1").height()-e-2*parseInt(gallery_box_data.lightbox_info_margin)))},100)}else jQuery(".bwg_image_info_container1").css("display","none"),jQuery(".bwg_info").attr("title",bwg_objectsL10n.bwg_show_info)}),jQuery(".bwg_rate").on(a,function(){"none"==jQuery(".bwg_image_rate_container1").css("display")?(jQuery(".bwg_image_rate_container1").css("display","table-cell"),jQuery(".bwg_rate").attr("title",bwg_objectsL10n.bwg_hide_rating)):(jQuery(".bwg_image_rate_container1").css("display","none"),jQuery(".bwg_rate").attr("title",bwg_objectsL10n.bwg_show_rating))}),jQuery(".bwg_comment, .bwg_comments_close_btn").on(a,function(){bwg_comment()}),jQuery(".bwg_ecommerce, .bwg_ecommerce_close_btn").on(a,function(){bwg_ecommerce()}),jQuery(".bwg_toggle_container").on(a,function(){var e="top"==gallery_box_data.lightbox_ctrl_btn_pos?"bwg-icon-caret-up":"bwg-icon-caret-down",t="top"==gallery_box_data.lightbox_ctrl_btn_pos?"bwg-icon-caret-down":"bwg-icon-caret-up",i=jQuery(".bwg_image_info_container1").height()-jQuery(".bwg_ctrl_btn_container").height()-2*parseInt(gallery_box_data.lightbox_info_margin),a=jQuery(".bwg_image_description").outerHeight()+jQuery(".bwg_image_title").outerHeight()+2*parseInt(gallery_box_data.lightbox_info_margin);if(jQuery(".bwg_toggle_container i").hasClass(e)){var r=i+jQuery(".bwg_ctrl_btn_container").height(),_=parseInt(jQuery(".bwg_image_info").css("top"))-jQuery(".bwg_ctrl_btn_container").height();jQuery(".bwg_ctrl_btn_container").height();"top"==gallery_box_data.lightbox_ctrl_btn_pos&&"top"==gallery_box_data.lightbox_info_pos?jQuery(".bwg_image_info_container1").height()<a?jQuery(".bwg_image_info").animate({top:_+"px",height:r},500):jQuery(".bwg_image_info").animate({top:_+"px"},500):"bottom"==gallery_box_data.lightbox_ctrl_btn_pos&&(jQuery(".bwg_image_info_container1").height()<a?jQuery(".bwg_image_info").animate({bottom:0,height:r},500):"bottom"==gallery_box_data.lightbox_info_pos?jQuery(".bwg_image_info").animate({top:-_+"px"},500):jQuery(".bwg_image_info").animate({top:0},500)),gallery_box_data.enable_image_filmstrip&&"bottom"==gallery_box_data.lightbox_filmstrip_pos||"bottom"!=gallery_box_data.lightbox_ctrl_btn_pos||"bottom"!=gallery_box_data.lightbox_info_pos?gallery_box_data.enable_image_filmstrip&&"top"==gallery_box_data.lightbox_filmstrip_pos||"top"!=gallery_box_data.lightbox_ctrl_btn_pos||"top"!=gallery_box_data.lightbox_info_pos||jQuery(".bwg_image_info").animate({top:0},500):jQuery(".bwg_image_info").animate({bottom:0},500),gallery_box_data.enable_image_filmstrip&&"bottom"==gallery_box_data.lightbox_filmstrip_pos||"bottom"!=gallery_box_data.lightbox_ctrl_btn_pos||"bottom"!=gallery_box_data.lightbox_rate_pos?gallery_box_data.enable_image_filmstrip&&"top"==gallery_box_data.lightbox_filmstrip_pos||"top"!=gallery_box_data.lightbox_ctrl_btn_pos||"top"!=gallery_box_data.lightbox_rate_pos||jQuery(".bwg_image_rate").animate({top:0},500):jQuery(".bwg_image_rate").animate({bottom:0},500),gallery_box_data.enable_image_filmstrip&&"bottom"==gallery_box_data.lightbox_filmstrip_pos||"bottom"!=gallery_box_data.lightbox_ctrl_btn_pos||"bottom"!=gallery_box_data.lightbox_hit_pos?gallery_box_data.enable_image_filmstrip&&"top"==gallery_box_data.lightbox_filmstrip_pos||"top"!=gallery_box_data.lightbox_ctrl_btn_pos||"top"!=gallery_box_data.lightbox_hit_pos||jQuery(".bwg_image_hit").animate({top:0},500):jQuery(".bwg_image_hit").animate({bottom:0},500),"bottom"==gallery_box_data.lightbox_ctrl_btn_pos?(jQuery(".bwg_ctrl_btn_container").animate({bottom:"-"+jQuery(".bwg_ctrl_btn_container").height()},500),jQuery(".bwg_toggle_container").animate({bottom:0},{duration:500,complete:function(){jQuery(".bwg_toggle_container i").attr("class","bwg_toggle_btn "+t)}})):(jQuery(".bwg_ctrl_btn_container").animate({top:"-"+jQuery(".bwg_ctrl_btn_container").height()},500),jQuery(".bwg_toggle_container").animate({top:0},{duration:500,complete:function(){jQuery(".bwg_toggle_container i").attr("class","bwg_toggle_btn "+t)}}))}else{i=jQuery(".bwg_image_info_container1").height()-2*parseInt(gallery_box_data.lightbox_info_margin)-jQuery(".bwg_toggle_container").height(),a=jQuery(".bwg_image_description").outerHeight()+jQuery(".bwg_image_title").outerHeight()+2*parseInt(gallery_box_data.lightbox_info_margin)+jQuery(".bwg_toggle_container").height(),r=i,_=parseInt(jQuery(".bwg_image_info").css("top"))+jQuery(".bwg_ctrl_btn_container").height();"top"==gallery_box_data.lightbox_ctrl_btn_pos&&"top"==gallery_box_data.lightbox_info_pos?jQuery(".bwg_image_info_container1").height()<a?jQuery(".bwg_image_info").animate({top:_+"px",height:r},500):jQuery(".bwg_image_info").animate({top:_+"px"},500):"bottom"==gallery_box_data.lightbox_ctrl_btn_pos&&(jQuery(".bwg_image_info_container1").height()<a?jQuery(".bwg_image_info").animate({bottom:0,height:r},500):jQuery(".bwg_image_info").animate({top:0},500)),gallery_box_data.enable_image_filmstrip&&"bottom"==gallery_box_data.lightbox_filmstrip_pos||"bottom"!=gallery_box_data.lightbox_ctrl_btn_pos||"bottom"!=gallery_box_data.lightbox_info_pos?gallery_box_data.enable_image_filmstrip&&"top"==gallery_box_data.lightbox_filmstrip_pos||"top"!=gallery_box_data.lightbox_ctrl_btn_pos||"top"!=gallery_box_data.lightbox_info_pos||jQuery(".bwg_image_info").animate({top:jQuery(".bwg_ctrl_btn_container").height()},500):jQuery(".bwg_image_info").animate({bottom:jQuery(".bwg_ctrl_btn_container").height()},500),gallery_box_data.enable_image_filmstrip&&"bottom"==gallery_box_data.lightbox_filmstrip_pos||"bottom"!=gallery_box_data.lightbox_ctrl_btn_pos||"bottom"!=gallery_box_data.lightbox_rate_pos?gallery_box_data.enable_image_filmstrip&&"top"==gallery_box_data.lightbox_filmstrip_pos||"top"!=gallery_box_data.lightbox_ctrl_btn_pos||"top"!=gallery_box_data.lightbox_rate_pos||jQuery(".bwg_image_rate").animate({top:jQuery(".bwg_ctrl_btn_container").height()},500):jQuery(".bwg_image_rate").animate({bottom:jQuery(".bwg_ctrl_btn_container").height()},500),gallery_box_data.enable_image_filmstrip&&"bottom"==gallery_box_data.lightbox_filmstrip_pos||"bottom"!=gallery_box_data.lightbox_ctrl_btn_pos||"bottom"!=gallery_box_data.lightbox_hit_pos?gallery_box_data.enable_image_filmstrip&&"top"==gallery_box_data.lightbox_filmstrip_pos||"top"!=gallery_box_data.lightbox_ctrl_btn_pos||"top"!=gallery_box_data.lightbox_hit_pos||jQuery(".bwg_image_hit").animate({top:jQuery(".bwg_ctrl_btn_container").height()},500):jQuery(".bwg_image_hit").animate({bottom:jQuery(".bwg_ctrl_btn_container").height()},500),"bottom"==gallery_box_data.lightbox_ctrl_btn_pos?(jQuery(".bwg_ctrl_btn_container").animate({bottom:0},500),jQuery(".bwg_toggle_container").animate({bottom:jQuery(".bwg_ctrl_btn_container").height()},{duration:500,complete:function(){jQuery(".bwg_toggle_container i").attr("class","bwg_toggle_btn "+e)}})):(jQuery(".bwg_ctrl_btn_container").animate({top:0},500),jQuery(".bwg_toggle_container").animate({top:jQuery(".bwg_ctrl_btn_container").height()},{duration:500,complete:function(){jQuery(".bwg_toggle_container i").attr("class","bwg_toggle_btn "+e)}}))}});var s=window.innerHeight;jQuery(".bwg_resize-full").on(a,function(){bwg_resize_full()}),jQuery(".bwg_fullscreen").on(a,function(){jQuery(".bwg_watermark").css({display:"none"});var e,t=0;if((jQuery(".bwg_comment_container").hasClass("bwg_open")||jQuery(".bwg_ecommerce_container").hasClass("bwg_open"))&&(t=jQuery(".bwg_comment_container").width()||jQuery(".bwg_ecommerce_container").width()),void 0!==jQuery().fullscreen&&jQuery.isFunction(jQuery().fullscreen))if(jQuery.fullscreen.isFullScreen())jQuery.fullscreen.exit(),e=s,jQuery(window).width()>gallery_box_data.image_width&&(r=gallery_box_data.image_width),window.innerHeight>gallery_box_data.image_height&&(_=gallery_box_data.image_height),gallery_box_data.open_with_fullscreen&&(r=jQuery(window).width(),_=e),jQuery("#spider_popup_wrap").on("fscreenclose",function(){jQuery("#spider_popup_wrap").css({width:r,height:_,left:"50%",top:"50%",marginLeft:-r/2,marginTop:-_/2,zIndex:1e5}),jQuery(".bwg_image_wrap").css({width:r-t}),jQuery(".bwg_image_container").css({height:_-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0),width:r-t-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)}),jQuery(".bwg_popup_image").css({maxWidth:r-t-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:_-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxWidth:r-t-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:_-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),bwg_resize_instagram_post(),bwg_change_watermark_container(),"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_container").css({width:r-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)}),jQuery(".bwg_filmstrip").css({width:r-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40}),bwg_set_filmstrip_pos(r-40,"",gallery_box_data)):(jQuery(".bwg_filmstrip_container").css({height:_-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)}),jQuery(".bwg_filmstrip").css({height:_-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40}),bwg_set_filmstrip_pos(_-40,"",gallery_box_data)),jQuery(".bwg_resize-full").show(),jQuery(".bwg_resize-full").attr("class","bwg-icon-expand bwg_ctrl_btn bwg_resize-full"),jQuery(".bwg_resize-full").attr("title",bwg_objectsL10n.bwg_maximize),jQuery(".bwg_fullscreen").attr("class","bwg-icon-arrows-out bwg_ctrl_btn bwg_fullscreen"),jQuery(".bwg_fullscreen").attr("title",bwg_objectsL10n.bwg_fullscreen),jQuery("#spider_popup_wrap").width()<jQuery(window).width()&&jQuery("#spider_popup_wrap").height()<window.innerHeight&&jQuery(".spider_popup_close_fullscreen").attr("class","spider_popup_close")});else{jQuery("#spider_popup_wrap").fullscreen();var i=screen.width,a=screen.height;jQuery("#spider_popup_wrap").css({width:i,height:a,left:0,top:0,margin:0,zIndex:1e5}),jQuery(".bwg_image_wrap").css({width:i-t}),jQuery(".bwg_image_container").css({height:a-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0),width:i-t-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)}),jQuery(".bwg_popup_image").css({maxWidth:i-t-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:a-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxWidth:i-t-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:a-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),bwg_resize_instagram_post(),bwg_change_watermark_container(),"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_container").css({width:i-("horizontal"==gallery_box_data.filmstrip_direction)?"comment_container_width":0}),jQuery(".bwg_filmstrip").css({width:i-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40}),bwg_set_filmstrip_pos(i-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40,"",gallery_box_data)):(jQuery(".bwg_filmstrip_container").css({height:a-("horizontal"==gallery_box_data.filmstrip_direction)?"comment_container_width":0}),jQuery(".bwg_filmstrip").css({height:i-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40}),bwg_set_filmstrip_pos(a-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40,"",gallery_box_data)),jQuery(".bwg_resize-full").hide(),jQuery(".bwg_fullscreen").attr("class","bwg-icon-compress bwg_ctrl_btn bwg_fullscreen"),jQuery(".bwg_fullscreen").attr("title",bwg_objectsL10n.bwg_exit_fullscreen),jQuery(".spider_popup_close").attr("class","bwg_ctrl_btn spider_popup_close_fullscreen")}return!1}),jQuery(".bwg_play_pause, .bwg_popup_image").on(a,function(){jQuery(".bwg_play_pause").length&&jQuery(".bwg_play_pause").hasClass("bwg-icon-play")&&!jQuery(".bwg_comment_container").hasClass("bwg_open")?(bwg_play(gallery_box_data.data),jQuery(".bwg_play_pause").attr("title",bwg_objectsL10n.bwg_pause),jQuery(".bwg_play_pause").attr("class","bwg-icon-pause bwg_ctrl_btn bwg_play_pause")):(window.clearInterval(bwg_playInterval),jQuery(".bwg_play_pause").attr("title",bwg_objectsL10n.bwg_play),jQuery(".bwg_play_pause").attr("class","bwg-icon-play bwg_ctrl_btn bwg_play_pause"))}),gallery_box_data.open_with_autoplay&&(bwg_play(gallery_box_data.data),jQuery(".bwg_play_pause").attr("title",bwg_objectsL10n.bwg_pause),jQuery(".bwg_play_pause").attr("class","bwg-icon-pause bwg_ctrl_btn bwg_play_pause")),gallery_box_data.open_with_fullscreen&&bwg_open_with_fullscreen(),jQuery(".bwg_popup_image").removeAttr("width"),jQuery(".bwg_popup_image").removeAttr("height"),jQuery(window).focus(function(){jQuery(".bwg_play_pause").length&&!jQuery(".bwg_play_pause").hasClass("bwg-icon-play")&&bwg_play(gallery_box_data.data)}),jQuery(window).blur(function(){event_stack=[],window.clearInterval(bwg_playInterval)});gallery_box_data.lightbox_ctrl_btn_pos;1==gallery_box_data.open_ecommerce&&setTimeout(function(){bwg_ecommerce()},400),1==gallery_box_data.open_comment&&bwg_comment()}function spider_createpopup(e,t,i,a,r,_,o,s){e=e.replace(/&/g,"&"),isPopUpOpened||(isPopUpOpened=!0,spider_hasalreadyreceivedpopup(_)||spider_isunsupporteduseragent()||(bwg_overflow_initial_value=jQuery("html").css("overflow"),bwg_overflow_x_initial_value=jQuery("html").css("overflow-x"),bwg_overflow_y_initial_value=jQuery("html").css("overflow-y"),jQuery("html").attr("style","overflow:hidden !important;"),jQuery("#bwg_spider_popup_loading_"+t).show(),jQuery("#spider_popup_overlay_"+t).css({display:"block"}),jQuery.ajax({type:"GET",url:e,success:function(e){var t=jQuery('<div id="spider_popup_wrap" class="spider_popup_wrap" style=" width:'+i+"px; height:"+a+"px; margin-top:-"+a/2+"px; margin-left: -"+i/2+'px; ">'+e+"</div>").hide().appendTo("body");gallery_box_ready(),spider_showpopup(_,o,t,r,s)},beforeSend:function(){},complete:function(){}})))}function spider_showpopup(e,t,i,a,r){var _=gallery_box_data.data,o=parseInt(jQuery("#bwg_current_image_key").val());void 0!==_[o]&&(isPopUpOpened=!0,-1<_[o].filetype.indexOf("EMBED_")?bwg_first_image_load(i):jQuery("#spider_popup_wrap .bwg_popup_image_spun img").prop("complete")?bwg_first_image_load(i):jQuery("#spider_popup_wrap .bwg_popup_image_spun img").on("load error",function(){bwg_first_image_load(i)}),spider_receivedpopup(e,t,r))}function bwg_first_image_load(e){e.show(),jQuery(".bwg_spider_popup_loading").hide(),1==gallery_box_data.preload_images&&bwg_preload_images(parseInt(jQuery("#bwg_current_image_key").val())),bwg_load_filmstrip()}function spider_hasalreadyreceivedpopup(e){return-1<document.cookie.indexOf(e)&&delete document.cookie[document.cookie.indexOf(e)],!1}function spider_receivedpopup(e,t,i){var a=new Date;a.setDate(a.getDate()+t),document.cookie=e+"=true;expires="+a.toUTCString()+";path=/";var r=gallery_box_data.bwg_ctrl_btn_container_height;"bottom"==i?jQuery(".bwg_toggle_container").css("bottom",r+"px"):"top"==i&&jQuery(".bwg_toggle_container").css("top",r+"px")}function spider_isunsupporteduseragent(){return!window.XMLHttpRequest}function spider_destroypopup(e){null!=document.getElementById("spider_popup_wrap")&&(void 0!==jQuery().fullscreen&&jQuery.isFunction(jQuery().fullscreen)&&jQuery.fullscreen.isFullScreen()&&jQuery.fullscreen.exit(),"undefined"!=typeof enable_addthis&&enable_addthis&&jQuery(".at4-share-outer").hide(),setTimeout(function(){jQuery(".spider_popup_wrap").remove(),jQuery(".bwg_spider_popup_loading").css({display:"none"}),jQuery(".spider_popup_overlay").css({display:"none"}),jQuery(document).off("keydown"),!1!==bwg_overflow_initial_value&&jQuery("html").css("overflow",bwg_overflow_initial_value),!1!==bwg_overflow_x_initial_value&&jQuery("html").css("overflow-x",bwg_overflow_x_initial_value),!1!==bwg_overflow_y_initial_value&&jQuery("html").css("overflow-y",bwg_overflow_y_initial_value)},20)),isPopUpOpened=!1;var t=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()),i=document.querySelector('meta[name="viewport"]');t&&i&&(i.content="width=device-width, initial-scale=1");var a=jQuery(document).scrollTop();bwg_objectsL10n.is_pro&&location.replace("#"),jQuery(document).scrollTop(a),void 0!==gallery_box_data.bwg_playInterval&&clearInterval(gallery_box_data.bwg_playInterval)}function get_ajax_pricelist(){var e={};return jQuery(".add_to_cart_msg").html(""),e.ajax_task="display",e.image_id=jQuery("#bwg_popup_image").attr("image_id"),jQuery("#ecommerce_ajax_loading").css("height",jQuery(".bwg_ecommerce_panel").css("height")),jQuery("#ecommerce_opacity_div").css("width",jQuery(".bwg_ecommerce_panel").css("width")),jQuery("#ecommerce_opacity_div").css("height",jQuery(".bwg_ecommerce_panel").css("height")),jQuery("#ecommerce_loading_div").css("width",jQuery(".bwg_ecommerce_panel").css("width")),jQuery("#ecommerce_loading_div").css("height",jQuery(".bwg_ecommerce_panel").css("height")),document.getElementById("ecommerce_opacity_div").style.display="",document.getElementById("ecommerce_loading_div").style.display="table-cell",jQuery.ajax({type:"POST",url:jQuery("#bwg_ecommerce_form").attr("action"),data:e,success:function(e){jQuery(".pge_tabs li a").on("click",function(){return jQuery(".pge_tabs_container > div").hide(),jQuery(".pge_tabs li").removeClass("pge_active"),jQuery(jQuery(this).attr("href")).show(),jQuery(this).closest("li").addClass("pge_active"),jQuery("[name=type]").val(jQuery(this).attr("href").substr(1)),!1});var t=jQuery(e).find(".manual").html();jQuery(".manual").html(t);var i=jQuery(e).find(".downloads").html();jQuery(".downloads").html(i);var a=jQuery(e).find(".pge_options").html();jQuery(".pge_options").html(a);var r=jQuery(e).find(".pge_add_to_cart").html();jQuery(".pge_add_to_cart").html(r)},beforeSend:function(){},complete:function(){document.getElementById("ecommerce_opacity_div").style.display="none",document.getElementById("ecommerce_loading_div").style.display="none"}}),!1}function spider_ajax_save(e){var t={};return t.bwg_name=jQuery("#bwg_name").val(),t.bwg_comment=jQuery("#bwg_comment").val(),t.bwg_email=jQuery("#bwg_email").val(),t.bwg_captcha_input=jQuery("#bwg_captcha_input").val(),t.ajax_task=jQuery("#ajax_task").val(),t.image_id=jQuery("#image_id").val(),t.comment_id=jQuery("#comment_id").val(),jQuery("#ajax_loading").css("height",jQuery(".bwg_comments").css("height")),jQuery("#opacity_div").css("width",jQuery(".bwg_comments").css("width")),jQuery("#opacity_div").css("height",jQuery(".bwg_comments").css("height")),jQuery("#loading_div").css("width",jQuery(".bwg_comments").css("width")),jQuery("#loading_div").css("height",jQuery(".bwg_comments").css("height")),document.getElementById("opacity_div").style.display="",document.getElementById("loading_div").style.display="table-cell",jQuery.ajax({type:"POST",url:jQuery("#"+e).attr("action"),data:t,success:function(e){var t=jQuery(e).find(".bwg_comments").html();jQuery(".bwg_comments").html(t)},beforeSend:function(){},complete:function(){document.getElementById("opacity_div").style.display="none",document.getElementById("loading_div").style.display="none",jQuery(".bwg_comments").mCustomScrollbar({scrollInertia:150,advanced:{updateOnContentResize:!0}}),jQuery(".bwg_comments_close_btn").click(bwg_comment),bwg_captcha_refresh("bwg_captcha")}}),!1}function spider_rate_ajax_save(i){var e={};return e.image_id=jQuery("#"+i+" input[name='image_id']").val(),e.rate=jQuery("#"+i+" input[name='score']").val(),e.ajax_task=jQuery("#rate_ajax_task").val(),jQuery.ajax({type:"POST",url:jQuery("#"+i).attr("action"),data:e,success:function(e){var t=jQuery(e).find("#"+i).html();jQuery("#"+i).html(t)},beforeSend:function(){},complete:function(){}})}function spider_set_input_value(e,t){document.getElementById(e)&&(document.getElementById(e).value=t)}function spider_form_submit(e,t){document.getElementById(t)&&document.getElementById(t).submit(),e.preventDefault?e.preventDefault():e.returnValue=!1}function spider_check_required(e,t){return""==jQuery("#"+e).val()&&(alert(t+" "+bwg_objectsL10n.bwg_field_required),jQuery("#"+e).attr("style","border-color: #FF0000;"),jQuery("#"+e).focus(),!0)}function comment_check_privacy_policy(){var e=jQuery("#bwg_submit");e.removeClass("bwg-submit-disabled"),e.removeAttr("disabled"),jQuery("#bwg_comment_privacy_policy").is(":checked")||(e.addClass("bwg-submit-disabled"),e.attr("disabled","disabled"))}function spider_check_email(e){if(""!=jQuery("#"+e).val())return-1==jQuery("#"+e).val().replace(/^\s+|\s+$/g,"").search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/)&&(alert(bwg_objectsL10n.bwg_mail_validation),!0)}function bwg_captcha_refresh(e){document.getElementById(e+"_img")&&document.getElementById(e+"_input")&&(srcArr=document.getElementById(e+"_img").src.split("&r="),document.getElementById(e+"_img").src=srcArr[0]+"&r="+Math.floor(100*Math.random()),document.getElementById(e+"_img").style.display="inline-block",document.getElementById(e+"_input").value="")}function bwg_play_instagram_video(e,t){jQuery(e).parent().find("video").each(function(){jQuery(this).get(0).paused?(jQuery(this).get(0).play(),jQuery(e).children().hide()):(jQuery(this).get(0).pause(),jQuery(e).children().show())})}function bwg_add_comment(){var t=jQuery("#bwg_comment_form"),e=t.attr("action"),i={ajax_task:"add_comment"};return i.comment_name=t.find("#bwg_name").val(),i.comment_email=t.find("#bwg_email").val(),i.comment_text=t.find("#bwg_comment").val(),i.comment_captcha=t.find("#bwg_captcha_input").val(),i.privacy_policy=t.find("#bwg_comment_privacy_policy").is(":checked")?1:0,i.comment_image_id=jQuery("#bwg_popup_image").attr("image_id"),i.comment_moderation=t.find("#bwg_comment_moderation").val(),jQuery(".bwg_spider_ajax_loading").hide(),jQuery.ajax({url:e,type:"POST",dataType:"json",data:i,success:function(e){jQuery(".bwg_comment_error").text(""),1==e.error?jQuery.each(e.error_messages,function(e,t){t&&jQuery(".bwg_comment_"+e+"_error").text(t)}):(t.find("#bwg_comment").val(""),jQuery(".bwg_comment_waiting_message").hide(),0==e.published&&jQuery(".bwg_comment_waiting_message").show(),""!=e.html_comments_block&&jQuery("#bwg_added_comments").html(e.html_comments_block).show())},beforeSend:function(){jQuery(".bwg_spider_ajax_loading").show()},complete:function(){0<t.find("#bwg_comment_privacy_policy").length&&(t.find("#bwg_comment_privacy_policy").prop("checked",!1),comment_check_privacy_policy()),bwg_captcha_refresh("bwg_captcha"),jQuery(".bwg_spider_ajax_loading").hide()},error:function(){}}),!1}function bwg_remove_comment(t){var e=jQuery("#bwg_comment_form").attr("action"),i={ajax_task:"delete_comment"};return i.id_image=jQuery("#bwg_popup_image").attr("image_id"),i.id_comment=t,jQuery.ajax({url:e,type:"POST",dataType:"json",data:i,success:function(e){0==e.error&&jQuery("#bwg_comment_block_"+t).fadeOut("slow").remove()},beforeSend:function(){},complete:function(){},error:function(){}}),!1}function bwg_gallery_box(e,t,i,a){jQuery(".bwg-validate").each(function(){jQuery(this).on("keypress change",function(){jQuery(this).parent().next().find(".bwg_comment_error").html("")})}),void 0===i&&(i=!1);var r,_=t.data("bwg");r=t.find(".bwg-container").data("lightbox-url")?t.find(".bwg-container").data("lightbox-url"):t.data("lightbox-url");var o=jQuery("#bwg_tag_id_"+_).val();o=o||0;var s=1==i?"&open_ecommerce=1":"",l=jQuery("#bwg_search_input_"+_).val(),n=jQuery("#bwg_order_"+_).val()?"&filtersortby="+jQuery("#bwg_order_"+_).val():"";l=l||"",void 0!==a&&(r+="&gallery_id="+a);var g="",u=jQuery("#bwg_blog_style_share_buttons_"+e).attr("data-open-comment");void 0!==u&&!1!==u&&(g="&open_comment=1"),spider_createpopup(r+"&image_id="+e+"&filter_tag="+o+s+g+"&filter_search_name="+l+n,_,t.data("popup-width"),t.data("popup-height"),1,"testpopup",5,t.data("buttons-position"))}function bwg_change_image_lightbox(e,a,r,t){if(bwg_current_key=gallery_box_data.bwg_current_key,jQuery(".bwg_image_info").css("height","auto"),setTimeout(function(){jQuery(".bwg_image_info_container1").height()<jQuery(".bwg_image_info").height()+jQuery(".bwg_toggle_container").height()+bwg_image_info_pos+2*parseInt(gallery_box_data.lightbox_info_margin)&&("top"==gallery_box_data.lightbox_ctrl_btn_pos&&jQuery(".bwg_image_info").css("top",bwg_image_info_pos+"px"),jQuery(".bwg_image_info").height(jQuery(".bwg_image_info_container1").height()-jQuery(".bwg_toggle_container").height()-bwg_image_info_pos-2*parseInt(gallery_box_data.lightbox_info_margin)))},200),jQuery("#spider_popup_left").show(),jQuery("#spider_popup_right").show(),jQuery(".bwg_image_info").hide(),0==gallery_box_data.enable_loop&&(a==parseInt(r.length)-1&&jQuery("#spider_popup_right").hide(),0==a&&jQuery("#spider_popup_left").hide()),1==gallery_box_data.ecommerceACtive&&1==gallery_box_data.enable_image_ecommerce)if(0==gallery_box_data.data[a].pricelist)jQuery(".bwg_ecommerce").hide();else{jQuery(".bwg_ecommerce").show(),jQuery(".pge_tabs li").hide(),jQuery("#downloads").hide(),jQuery("#manual").hide();var i=gallery_box_data.data[a].pricelist_sections.split(",");if(i)if(jQuery("#"+i[0]).show(),jQuery("[name=type]").val(i[0]),1<i.length)for(jQuery(".pge_tabs").show(),k=0;k<i.length;k++)jQuery("#"+i[k]+"_li").show();else jQuery(".pge_tabs").hide();else jQuery("[name=type]").val("")}if(jQuery("#bwg_image_container").find("iframe").each(function(){jQuery(this)[0].contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*"),jQuery(this)[0].contentWindow.postMessage('{ "method": "pause" }',"*"),jQuery(this)[0].contentWindow.postMessage("pause","*")}),jQuery("#bwg_image_container").find("video").each(function(){jQuery(this).trigger("pause")}),void 0===r&&(r=gallery_box_data.data),void 0!==r[a]&&void 0!==r[e]){if(jQuery(".bwg_play_pause").length&&!jQuery(".bwg_play_pause").hasClass("bwg-icon-play")&&bwg_play(r),t||jQuery("#bwg_current_image_key").val(a),gallery_box_data.bwg_trans_in_progress)return void gallery_box_data.event_stack.push(e+"-"+a);var _="right";if(bwg_current_key>a)_="left";else if(bwg_current_key==a)return;jQuery(".bwg_image_count").html(r[a].number),jQuery(".bwg_watermark").css({display:"none"}),"width"==gallery_box_data.width_or_height?bwg_current_filmstrip_pos=a*(jQuery(".bwg_filmstrip_thumbnail").width()+2+2*gallery_box_data.lightbox_filmstrip_thumb_border_width):"height"==gallery_box_data.width_or_height&&(bwg_current_filmstrip_pos=a*(jQuery(".bwg_filmstrip_thumbnail").height()+2+2*gallery_box_data.lightbox_filmstrip_thumb_border_width)),gallery_box_data.bwg_current_key=a,bwg_objectsL10n.is_pro&&(location.replace("#bwg"+gallery_box_data.gallery_id+"/"+r[a].id),history.replaceState(void 0,void 0,"#bwg"+gallery_box_data.gallery_id+"/"+r[a].id)),gallery_box_data.popup_enable_rate&&(jQuery("#bwg_rate_form input[name='image_id']").val(r[a].id),jQuery("#bwg_star").attr("data-score",r[a].avg_rating),jQuery("#bwg_star").removeAttr("title"),r[a].cur_key=a,bwg_rating(r[a].rate,r[a].rate_count,r[a].avg_rating,a)),spider_set_input_value("rate_ajax_task","save_hit_count"),spider_rate_ajax_save("bwg_rate_form"),jQuery(".bwg_image_hits span").html(++r[a].hit_count),jQuery("#bwg_popup_image").attr("image_id",r[a].id),jQuery(".bwg_image_title").html(jQuery('<span style="display: block;" />').html(r[a].alt).text()),jQuery(".bwg_image_description").html(jQuery('<span style="display: block;" />').html(r[a].description).text()),jQuery(".bwg_filmstrip_thumbnail").removeClass("bwg_thumb_active").addClass("bwg_thumb_deactive"),jQuery("#bwg_filmstrip_thumbnail_"+a).removeClass("bwg_thumb_deactive").addClass("bwg_thumb_active"),jQuery(".bwg_image_info").css("opacity",1),""==r[a].alt.trim()&&""==r[a].description.trim()&&jQuery(".bwg_image_info").css("opacity",0),"none"!=jQuery(".bwg_image_info_container1").css("display")?jQuery(".bwg_image_info_container1").css("display","table-cell"):jQuery(".bwg_image_info_container1").css("display","none"),"none"!=jQuery(".bwg_image_rate_container1").css("display")?jQuery(".bwg_image_rate_container1").css("display","table-cell"):jQuery(".bwg_image_rate_container1").css("display","none");var o=2==jQuery(".bwg_popup_image_spun").css("zIndex")?".bwg_popup_image_spun":".bwg_popup_image_second_spun",s=".bwg_popup_image_second_spun"==o?".bwg_popup_image_spun":".bwg_popup_image_second_spun",l=-1<r[a].filetype.indexOf("EMBED_"),n=-1<r[a].filetype.indexOf("INSTAGRAM_POST"),g=-1<r[a].filetype.indexOf("INSTAGRAM_VIDEO"),u=-1!==jQuery.inArray(r[a].filetype,["EMBED_OEMBED_YOUTUBE_VIDEO","EMBED_OEMBED_VIMEO_VIDEO","EMBED_OEMBED_FACEBOOK_VIDEO","EMBED_OEMBED_DAILYMOTION_VIDEO"]),d=jQuery(o).height(),c=jQuery(o).width(),h='<span class="bwg_popup_image_spun1" style="display: '+(l?"block":"table")+'; width: inherit; height: inherit;"><span class="bwg_popup_image_spun2" style="display:'+(l?"block":"table-cell")+'; vertical-align: middle;text-align: center;height: 100%;">';if(l){if(jQuery("#bwg_download").addClass("hidden"),h+='<span class="bwg_popup_embed bwg_popup_watermark" style="display: '+(u?"block":"table")+'; table-layout: fixed; height: 100%;">'+(g?'<div class="bwg_inst_play_btn_cont" onclick="bwg_play_instagram_video(this)" ><div class="bwg_inst_play"></div></div>':" "),n){var b=0,p=0;d<c+88?b=(p=d)-88:p=(b=c)+88,h+=spider_display_embed(r[a].filetype,r[a].image_url,r[a].filename,{class:"bwg_embed_frame","data-width":r[a].image_width,"data-height":r[a].image_height,frameborder:"0",allowfullscreen:"allowfullscreen",style:"width:"+b+"px; height:"+p+"px; vertical-align:middle; display:inline-block; position:relative;"})}else h+=spider_display_embed(r[a].filetype,r[a].image_url,r[a].filename,{class:"bwg_embed_frame",frameborder:"0",allowfullscreen:"allowfullscreen",style:"display:"+(u?"block":"table-cell")+"; width:inherit; height:inherit; vertical-align:middle;"});h+="</span>"}else jQuery(".bwg-loading").removeClass("hidden"),jQuery("#bwg_download").removeClass("hidden"),h+='<img style="max-height: '+d+"px; max-width: "+c+'px;" class="bwg_popup_image bwg_popup_watermark" src="'+gallery_box_data.site_url+jQuery('<span style="display: block;" />').html(r[a].image_url).text()+'" alt="'+r[a].alt+'" />';function m(){gallery_box_data.preload_images&&bwg_preload_images(a),window["bwg_"+gallery_box_data.bwg_image_effect](o,s,_),jQuery(o).find(".bwg_fb_video").each(function(){jQuery(this).attr("src","")}),l?jQuery("#bwg_fullsize_image").attr("href",r[a].image_url):(jQuery("#bwg_fullsize_image").attr("href",gallery_box_data.site_url+r[a].image_url),jQuery("#bwg_download").attr("href",gallery_box_data.site_url+r[a].thumb_url.replace("/thumb/","/.original/")));var e=r[a].image_url.split("/");jQuery("#bwg_download").attr("download",e[e.length-1].replace(/\?bwg=(\d+)$/,""));var t=encodeURIComponent(gallery_box_data.bwg_share_url)+"="+r[a].id+encodeURIComponent("#bwg"+gallery_box_data.gallery_id+"/")+r[a].id;if(l)var i=encodeURIComponent(r[a].thumb_url);else i=gallery_box_data.bwg_share_image_url+encodeURIComponent(encodeURIComponent(r[a].image_url));i=i.replace(/%252F/g,"%2F"),void 0!==addthis_share&&(addthis_share.url=t),jQuery("#bwg_facebook_a").attr("href","https://www.facebook.com/sharer/sharer.php?u="+t),jQuery("#bwg_twitter_a").attr("href","https://twitter.com/share?url="+t),jQuery("#bwg_google_a").attr("href","https://plus.google.com/share?url="+t),jQuery("#bwg_pinterest_a").attr("href","http://pinterest.com/pin/create/button/?s=100&url="+t+"&media="+i+"&description="+r[a].alt+"%0A"+r[a].description),jQuery("#bwg_tumblr_a").attr("href","https://www.tumblr.com/share/photo?source="+i+"&caption="+r[a].alt+"&clickthru="+t),jQuery(".bwg_comment_container").hasClass("bwg_open")&&(0==r[a].comment_count?jQuery("#bwg_added_comments").hide():(jQuery("#bwg_added_comments").show(),spider_set_input_value("ajax_task","display"),spider_set_input_value("image_id",jQuery("#bwg_popup_image").attr("image_id")),spider_ajax_save("bwg_comment_form"))),jQuery(".bwg_ecommerce_container").hasClass("bwg_open")&&(0==r[a].pricelist?(bwg_popup_sidebar_close(jQuery(".bwg_ecommerce_container")),bwg_animate_image_box_for_hide_sidebar(),jQuery(".bwg_ecommerce_container").attr("class","bwg_ecommerce_container bwg_close"),jQuery(".bwg_ecommerce").attr("title",bwg_objectsL10n.bwg_show_ecommerce),jQuery(".spider_popup_close_fullscreen").show()):get_ajax_pricelist()),void 0!==jQuery().mCustomScrollbar&&jQuery.isFunction(jQuery().mCustomScrollbar)&&jQuery(".bwg_comments").mCustomScrollbar({advanced:{updateOnContentResize:!0}}),jQuery(".bwg_comments .mCSB_scrollTools").hide(),gallery_box_data.enable_image_filmstrip&&bwg_move_filmstrip(),bwg_resize_instagram_post()}if(h+="</span></span>",jQuery(s).html(h),jQuery(s).find("img").on("load error",function(){jQuery(".bwg-loading").addClass("hidden")}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxWidth:c,maxHeight:d,height:"auto"}),l)m();else jQuery(s).find("img").one("load",function(){m()}).each(function(){this.complete&&jQuery(this).load()})}}function bwg_preload_images_lightbox(e){for(var t=gallery_box_data.data,i=t.length,a=0==gallery_box_data.preload_images_count||gallery_box_data.preload_images_count>=i?i:gallery_box_data.preload_images_count,r=0,_=1;r<a;_++){var o=1;do{var s=(e+_*o+i)%i;if(void 0!==t[s])-1<t[s].filetype.indexOf("EMBED_")||jQuery("<img/>").attr("src",gallery_box_data.site_url+jQuery('<span style="display: block;" />').html(t[s].image_url).text());o*=-1,r++}while(1!=o)}}function bwg_popup_sidebar_open(e){var t=gallery_box_data.lightbox_comment_width,i=gallery_box_data.lightbox_comment_pos;if(t>jQuery(window).width()){if(t=jQuery(window).width(),e.css({width:t}),jQuery(".spider_popup_close_fullscreen").hide(),jQuery(".spider_popup_close").hide(),jQuery(".bwg_ctrl_btn").hasClass("bwg-icon-pause")){var a=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase());jQuery(".bwg_play_pause").trigger(a?"touchend":"click")}}else jQuery(".spider_popup_close_fullscreen").show();"left"==i?e.animate({left:0},100):e.animate({right:0},100)}function bwg_comment(){if(jQuery(".bwg_watermark").css({display:"none"}),jQuery(".bwg_ecommerce_wrap").css("z-index","-1"),jQuery(".bwg_comment_wrap").css("z-index","25"),jQuery(".bwg_ecommerce_container").hasClass("bwg_open")&&(bwg_popup_sidebar_close(jQuery(".bwg_ecommerce_container")),jQuery(".bwg_ecommerce_container").attr("class","bwg_ecommerce_container bwg_close"),jQuery(".bwg_ecommerce").attr("title",bwg_objectsL10n.bwg_show_ecommerce)),jQuery(".bwg_comment_container").hasClass("bwg_open"))"1"==jQuery(".bwg_comment_container").attr("data-play-status")&&jQuery(".bwg_ctrl_btn.bwg_play_pause").removeClass("bwg-icon-play").addClass("bwg-icon-pause").attr("title",bwg_objectsL10n.bwg_pause),bwg_popup_sidebar_close(jQuery(".bwg_comment_container")),bwg_animate_image_box_for_hide_sidebar(),jQuery(".bwg_comment_wrap").css("z-index","-1"),jQuery(".bwg_comment_container").attr("class","bwg_comment_container bwg_close"),jQuery(".bwg_comment").attr("title",bwg_objectsL10n.bwg_show_comments),jQuery(".spider_popup_close_fullscreen").show();else{jQuery(".bwg_play_pause").hasClass("bwg-icon-pause")?jQuery(".bwg_comment_container").attr("data-play-status","1"):jQuery(".bwg_comment_container").attr("data-play-status","0"),jQuery(".bwg_ctrl_btn.bwg_play_pause").removeClass("bwg-icon-pause").addClass("bwg-icon-play").attr("title",bwg_objectsL10n.bwg_play),bwg_popup_sidebar_open(jQuery(".bwg_comment_container")),bwg_animate_image_box_for_show_sidebar(),jQuery(".bwg_comment_container").attr("class","bwg_comment_container bwg_open"),jQuery(".bwg_comment").attr("title",bwg_objectsL10n.bwg_hide_comments);var e=parseInt(jQuery("#bwg_current_image_key").val());void 0!==gallery_box_data[e]&&0!=gallery_box_data[e].comment_count&&(jQuery("#bwg_added_comments").show(),spider_set_input_value("ajax_task","display"),spider_set_input_value("image_id",jQuery("#bwg_popup_image").attr("image_id")),spider_ajax_save("bwg_comment_form"))}jQuery(".bwg_comments").mCustomScrollbar({scrollInertia:150,advanced:{updateOnContentResize:!0}})}function bwg_ecommerce(){jQuery(".bwg_watermark").css({display:"none"}),jQuery(".bwg_ecommerce_wrap").css("z-index","25"),jQuery(".bwg_comment_wrap").css("z-index","-1"),jQuery(".bwg_comment_container").hasClass("bwg_open")&&(bwg_popup_sidebar_close(jQuery(".bwg_comment_container")),jQuery(".bwg_comment_container").attr("class","bwg_comment_container bwg_close"),jQuery(".bwg_comment").attr("title",bwg_objectsL10n.bwg_show_comments)),jQuery(".bwg_ecommerce_container").hasClass("bwg_open")?(bwg_popup_sidebar_close(jQuery(".bwg_ecommerce_container")),bwg_animate_image_box_for_hide_sidebar(),jQuery(".bwg_ecommerce_container").attr("class","bwg_ecommerce_container bwg_close"),jQuery(".bwg_ecommerce").attr("title",bwg_objectsL10n.bwg_show_ecommerce)):(bwg_popup_sidebar_open(jQuery(".bwg_ecommerce_container")),bwg_animate_image_box_for_show_sidebar(),jQuery(".bwg_ecommerce_container").attr("class","bwg_ecommerce_container bwg_open"),jQuery(".bwg_ecommerce").attr("title",bwg_objectsL10n.bwg_hide_ecommerce),get_ajax_pricelist())}function bwg_popup_sidebar_close(e){var t=parseInt(e.css("borderRightWidth"));t||(t=0),"left"==lightbox_comment_pos?e.animate({left:-e.width()-t},100):"right"==lightbox_comment_pos&&e.animate({right:-e.width()-t},100)}function bwg_animate_image_box_for_hide_sidebar(){"left"==lightbox_comment_pos?jQuery(".bwg_image_wrap").animate({left:0,width:jQuery("#spider_popup_wrap").width()},100):"right"==lightbox_comment_pos&&jQuery(".bwg_image_wrap").animate({right:0,width:jQuery("#spider_popup_wrap").width()},100),jQuery(".bwg_image_container").animate({width:jQuery("#spider_popup_wrap").width()-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)},100),jQuery(".bwg_popup_image").animate({maxWidth:jQuery("#spider_popup_wrap").width()-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)},{duration:100,complete:function(){bwg_change_watermark_container()}}),jQuery(".bwg_popup_embed").animate({width:jQuery("#spider_popup_wrap").width()-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)},{duration:100,complete:function(){bwg_resize_instagram_post(),bwg_change_watermark_container()}}),"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_container").animate({width:jQuery(".spider_popup_wrap").width()},100),jQuery(".bwg_filmstrip").animate({width:jQuery(".spider_popup_wrap").width()-40},100)):"height"==gallery_box_data.width_or_height&&(jQuery(".bwg_filmstrip_container").animate({height:jQuery(".spider_popup_wrap").width()},100),jQuery(".bwg_filmstrip").animate({height:jQuery(".spider_popup_wrap").width()-40},100)),bwg_set_filmstrip_pos(jQuery(".spider_popup_wrap").width()-40,"",gallery_box_data),jQuery(".spider_popup_close_fullscreen").show(100)}function bwg_animate_image_box_for_show_sidebar(){var e=jQuery(".bwg_comment_container").width()||jQuery(".bwg_ecommerce_container").width();"left"==lightbox_comment_pos?jQuery(".bwg_image_wrap").animate({left:e,width:jQuery("#spider_popup_wrap").width()-e},100):"right"==lightbox_comment_pos&&jQuery(".bwg_image_wrap").animate({right:e,width:jQuery("#spider_popup_wrap").width()-e},100),jQuery(".bwg_image_container").animate({width:jQuery("#spider_popup_wrap").width()-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)-e},100),jQuery(".bwg_popup_image").animate({maxWidth:jQuery("#spider_popup_wrap").width()-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)},{duration:100,complete:function(){bwg_change_watermark_container()}}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").animate({maxWidth:jQuery("#spider_popup_wrap").width()-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)},{duration:100,complete:function(){bwg_resize_instagram_post(),bwg_change_watermark_container()}}),"width"==gallery_box_data.width_or_height&&(jQuery(".bwg_filmstrip_container").css({width:jQuery("#spider_popup_wrap").width()-("vertical"==gallery_box_data.filmstrip_direction?0:e)}),jQuery(".bwg_filmstrip").animate({width:jQuery(".bwg_filmstrip_container").width()-40},100),bwg_set_filmstrip_pos(jQuery(".bwg_filmstrip_container").width()-40,"",gallery_box_data))}function bwg_reset_zoom(){var e=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()),t=document.querySelector('meta[name="viewport"]');e&&t&&(t.content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=0")}function bwg_open_with_fullscreen(){jQuery(".bwg_watermark").css({display:"none"});var e=0;(jQuery(".bwg_comment_container").hasClass("bwg_open")||jQuery(".bwg_ecommerce_container").hasClass("bwg_open"))&&(e=jQuery(".bwg_comment_container").width()||jQuery(".bwg_ecommerce_container").width()),bwg_popup_current_width=jQuery(window).width(),bwg_popup_current_height=window.innerHeight,jQuery("#spider_popup_wrap").css({width:jQuery(window).width(),height:window.innerHeight,left:0,top:0,margin:0,zIndex:100002}),jQuery(".bwg_image_wrap").css({width:jQuery(window).width()-e}),jQuery(".bwg_image_container").css({height:bwg_popup_current_height-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0),width:bwg_popup_current_width-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)}),jQuery(".bwg_popup_image").css({maxWidth:jQuery(window).width()-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)},{complete:function(){bwg_change_watermark_container()}}),jQuery(".bwg_popup_video").css({width:jQuery(window).width()-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),height:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)},{complete:function(){bwg_change_watermark_container()}}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxWidth:jQuery(window).width()-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)},{complete:function(){bwg_resize_instagram_post(),bwg_change_watermark_container()}}),"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_container").css({width:jQuery(window).width()-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)}),jQuery(".bwg_filmstrip").css({width:jQuery(window).width()-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40}),bwg_set_filmstrip_pos(jQuery(window).width()-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40,"",gallery_box_data)):(jQuery(".bwg_filmstrip_container").css({height:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)}),jQuery(".bwg_filmstrip").css({height:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40}),bwg_set_filmstrip_pos(window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40,"",gallery_box_data)),jQuery(".bwg_resize-full").attr("class","bwg-icon-compress bwg_ctrl_btn bwg_resize-full"),jQuery(".bwg_resize-full").attr("title",bwg_objectsL10n.bwg_restore),jQuery(".spider_popup_close").attr("class","bwg_ctrl_btn spider_popup_close_fullscreen")}function bwg_resize_full(){jQuery(".bwg_watermark").css({display:"none"});var e=0;(jQuery(".bwg_comment_container").hasClass("bwg_open")||jQuery(".bwg_ecommerce_container").hasClass("bwg_open"))&&(e=jQuery(".bwg_comment_container").width()||jQuery(".bwg_ecommerce_container").width()),jQuery(".bwg_resize-full").hasClass("bwg-icon-compress")?(jQuery(window).width()>gallery_box_data.image_width&&(bwg_popup_current_width=gallery_box_data.image_width),window.innerHeight>gallery_box_data.image_height&&(bwg_popup_current_height=gallery_box_data.image_height),jQuery("#spider_popup_wrap").animate({width:bwg_popup_current_width,height:bwg_popup_current_height,left:"50%",top:"50%",marginLeft:-bwg_popup_current_width/2,marginTop:-bwg_popup_current_height/2,zIndex:100002},500),jQuery(".bwg_image_wrap").animate({width:bwg_popup_current_width-e},500),jQuery(".bwg_image_container").animate({height:bwg_popup_current_height-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0),width:bwg_popup_current_width-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)},500),jQuery(".bwg_popup_image").animate({maxWidth:bwg_popup_current_width-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:bwg_popup_current_height-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)},{duration:500,complete:function(){bwg_change_watermark_container(),jQuery("#spider_popup_wrap").width()<jQuery(window).width()&&jQuery("#spider_popup_wrap").height()<window.innerHeight&&jQuery(".spider_popup_close_fullscreen").attr("class","spider_popup_close")}}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").animate({maxWidth:bwg_popup_current_width-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:bwg_popup_current_height-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)},{duration:500,complete:function(){bwg_resize_instagram_post(),bwg_change_watermark_container(),jQuery("#spider_popup_wrap").width()<jQuery(window).width()&&jQuery("#spider_popup_wrap").height()<window.innerHeight&&jQuery(".spider_popup_close_fullscreen").attr("class","spider_popup_close")}}),"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_container").animate({width:bwg_popup_current_width-("horizontal"==gallery_box_data.filmstrip_direction?e:0)},500),jQuery(".bwg_filmstrip").animate({width:bwg_popup_current_width-("horizontal"==gallery_box_data.filmstrip_direction?e:0)-40},500),bwg_set_filmstrip_pos(bwg_popup_current_width-40,"",gallery_box_data)):(jQuery(".bwg_filmstrip_container").animate({height:bwg_popup_current_height-("horizontal"==gallery_box_data.filmstrip_direction?e:0)},500),jQuery(".bwg_filmstrip").animate({height:bwg_popup_current_height-("horizontal"==gallery_box_data.filmstrip_direction?e:0)-40},500),bwg_set_filmstrip_pos(bwg_popup_current_height-40,"",gallery_box_data)),jQuery(".bwg_resize-full").attr("class","bwg-icon-expand bwg_ctrl_btn bwg_resize-full"),jQuery(".bwg_resize-full").attr("title",bwg_objectsL10n.bwg_maximize)):(bwg_popup_current_width=jQuery(window).width(),bwg_popup_current_height=window.innerHeight,jQuery("#spider_popup_wrap").animate({width:jQuery(window).width(),height:window.innerHeight,left:0,top:0,margin:0,zIndex:100002},500),jQuery(".bwg_image_wrap").animate({width:jQuery(window).width()-e},500),jQuery(".bwg_image_container").animate({height:bwg_popup_current_height-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0),width:bwg_popup_current_width-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)},500),jQuery(".bwg_popup_image").animate({maxWidth:jQuery(window).width()-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)},{duration:500,complete:function(){bwg_change_watermark_container()}}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").animate({maxWidth:jQuery(window).width()-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)},{duration:500,complete:function(){bwg_resize_instagram_post(),bwg_change_watermark_container()}}),"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_container").animate({width:jQuery(window).width()-("horizontal"==gallery_box_data.filmstrip_direction?e:0)},500),jQuery(".bwg_filmstrip").animate({width:jQuery(window).width()-("horizontal"==gallery_box_data.filmstrip_direction?e:0)-40},500),bwg_set_filmstrip_pos(jQuery(window).width()-("horizontal"==gallery_box_data.filmstrip_direction?e:0)-40,"",gallery_box_data)):(jQuery(".bwg_filmstrip_container").animate({height:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?e:0)},500),jQuery(".bwg_filmstrip").animate({height:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?e:0)-40},500),bwg_set_filmstrip_pos(window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?e:0)-40,"",gallery_box_data)),jQuery(".bwg_resize-full").attr("class","bwg-icon-compress bwg_ctrl_btn bwg_resize-full"),jQuery(".bwg_resize-full").attr("title",bwg_objectsL10n.bwg_restore),jQuery(".spider_popup_close").attr("class","bwg_ctrl_btn spider_popup_close_fullscreen"))}function bwg_popup_resize_lightbox(){void 0!==jQuery().fullscreen&&jQuery.isFunction(jQuery().fullscreen)&&(jQuery.fullscreen.isFullScreen()||(jQuery(".bwg_resize-full").show(),jQuery(".bwg_resize-full").hasClass("bwg-icon-compress")||jQuery(".bwg_resize-full").attr("class","bwg-icon-expand bwg_ctrl_btn bwg_resize-full"),jQuery(".bwg_resize-full").attr("title",bwg_objectsL10n.bwg_maximize),jQuery(".bwg_fullscreen").attr("class","bwg-icon-arrows-out bwg_ctrl_btn bwg_fullscreen"),jQuery(".bwg_fullscreen").attr("title",bwg_objectsL10n.fullscreen)));var e=0;(jQuery(".bwg_comment_container").hasClass("bwg_open")||jQuery(".bwg_ecommerce_container").hasClass("bwg_open"))&&(e=gallery_box_data.lightbox_comment_width),e>jQuery(window).width()?(e=jQuery(window).width(),jQuery(".bwg_comment_container").css({width:e}),jQuery(".bwg_ecommerce_container").css({width:e}),jQuery(".spider_popup_close_fullscreen").hide()):jQuery(".spider_popup_close_fullscreen").show(),window.innerHeight>gallery_box_data.image_height&&1!=gallery_box_data.open_with_fullscreen&&!jQuery(".bwg_resize-full").hasClass("bwg-icon-compress")?(jQuery("#spider_popup_wrap").css({height:gallery_box_data.image_height,top:"50%",marginTop:-gallery_box_data.image_height/2,zIndex:100002}),jQuery(".bwg_image_container").css({height:gallery_box_data.image_height-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),jQuery(".bwg_popup_image").css({maxHeight:gallery_box_data.image_height-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxHeight:gallery_box_data.image_height-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),"vertical"==gallery_box_data.filmstrip_direction&&(jQuery(".bwg_filmstrip_container").css({height:gallery_box_data.image_height}),jQuery(".bwg_filmstrip").css({height:gallery_box_data.image_height-40})),bwg_popup_current_height=gallery_box_data.image_height):(jQuery("#spider_popup_wrap").css({height:window.innerHeight,top:0,marginTop:0,zIndex:100002}),jQuery(".bwg_image_container").css({height:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),jQuery(".bwg_popup_image").css({maxHeight:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxHeight:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),"vertical"==gallery_box_data.filmstrip_direction&&(jQuery(".bwg_filmstrip_container").css({height:window.innerHeight}),jQuery(".bwg_filmstrip").css({height:window.innerHeight-40})),bwg_popup_current_height=window.innerHeight),jQuery(window).width()>=gallery_box_data.image_width&&1!=gallery_box_data.open_with_fullscreen?(jQuery("#spider_popup_wrap").css({width:gallery_box_data.image_width,left:"50%",marginLeft:-gallery_box_data.image_width/2,zIndex:100002}),jQuery(".bwg_image_wrap").css({width:gallery_box_data.image_width-e}),jQuery(".bwg_image_container").css({width:gallery_box_data.image_width-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)-e}),jQuery(".bwg_popup_image").css({maxWidth:gallery_box_data.image_width-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)-e}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxWidth:gallery_box_data.image_width-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)-e}),"horizontal"==gallery_box_data.filmstrip_direction&&(jQuery(".bwg_filmstrip_container").css({width:gallery_box_data.image_width-e}),jQuery(".bwg_filmstrip").css({width:gallery_box_data.image_width-e-40})),bwg_popup_current_width=gallery_box_data.image_width):(jQuery("#spider_popup_wrap").css({width:jQuery(window).width(),left:0,marginLeft:0,zIndex:100002}),jQuery(".bwg_image_wrap").css({width:jQuery(window).width()-e}),jQuery(".bwg_image_container").css({width:jQuery(window).width()-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)-e}),jQuery(".bwg_popup_image").css({maxWidth:jQuery(window).width()-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)-e}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxWidth:jQuery(window).width()-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)-e}),"horizontal"==gallery_box_data.filmstrip_direction&&(jQuery(".bwg_filmstrip_container").css({width:jQuery(window).width()-e}),jQuery(".bwg_filmstrip").css({width:jQuery(window).width()-e-40})),bwg_popup_current_width=jQuery(window).width()),bwg_resize_instagram_post(),bwg_change_watermark_container(),window.innerHeight>gallery_box_data.image_height-2*gallery_box_data.lightbox_close_btn_top&&jQuery(window).width()>=gallery_box_data.image_width-2*gallery_box_data.lightbox_close_btn_right&&1!=gallery_box_data.open_with_fullscreen?jQuery(".spider_popup_close_fullscreen").attr("class","spider_popup_close"):jQuery("#spider_popup_wrap").width()<jQuery(window).width()&&jQuery("#spider_popup_wrap").height()<jQuery(window).height()&&jQuery(".spider_popup_close").attr("class","bwg_ctrl_btn spider_popup_close_fullscreen");var t=gallery_box_data.bwg_ctrl_btn_container_height;"bottom"==gallery_box_data.lightbox_ctrl_btn_pos&&jQuery(".bwg_toggle_container i").hasClass("bwg-icon-caret-down")&&jQuery(".bwg_toggle_container").css("bottom",t+"px"),"top"==gallery_box_data.lightbox_ctrl_btn_pos&&jQuery(".bwg_toggle_container i").hasClass("bwg-icon-caret-up")&&jQuery(".bwg_toggle_container").css("top",t+"px")}function bwg_rating(e,t,i,a){lightbox_rate_stars_count=gallery_box_data.lightbox_rate_stars_count,lightbox_rate_size=gallery_box_data.lightbox_rate_size,lightbox_rate_icon=gallery_box_data.lightbox_rate_icon;var r="Not rated yet.";0!=i&&""!=i&&(r=parseFloat(i).toFixed(1)+"\n Votes: "+t),void 0!==jQuery().raty&&jQuery.isFunction(jQuery().raty)&&jQuery("#bwg_star").raty({score:function(){return jQuery(this).attr("data-score")},starType:"i",number:lightbox_rate_stars_count,size:lightbox_rate_size,readOnly:function(){return!!e},noRatedMsg:"Not rated yet.",click:function(t,e){jQuery("#bwg_star").hide(),jQuery("#bwg_rated").show(),spider_set_input_value("rate_ajax_task","save_rate"),jQuery.when(spider_rate_ajax_save("bwg_rate_form")).then(function(){gallery_box_data.data[a].rate=t,++gallery_box_data.data[a].rate_count;var e=parseFloat(jQuery("#bwg_star").attr("data-score"));gallery_box_data.data[a].avg_rating=e?((e+t)/2).toFixed(1):t.toFixed(1),bwg_rating(gallery_box_data.data[a].rate,gallery_box_data.data[a].rate_count,gallery_box_data.data[a].avg_rating,gallery_box_data.current_image_key)})},starHalf:"bwg-icon-"+lightbox_rate_icon+("star"==lightbox_rate_icon?"-half":"")+"-o",starOff:"bwg-icon-"+lightbox_rate_icon+"-o",starOn:"bwg-icon-"+lightbox_rate_icon,cancelOff:"bwg-icon-minus-square-o",cancelOn:"bwg-icon-minus-square-o",cancel:!1,cancelHint:"Cancel your rating.",hints:[r,r,r,r,r],alreadyRatedMsg:parseFloat(i).toFixed(1)+"\nYou have already rated.\nVotes: "+t})}function changeDownloadsTotal(e){var t=0;0==jQuery("[name=option_show_digital_items_count]").val()?jQuery("[name=selected_download_item]:checked").each(function(){t+=Number(jQuery(this).closest("tr").attr("data-price"))}):jQuery(".digital_image_count").each(function(){0!=Number(jQuery(this).val())&&(t+=Number(jQuery(this).closest("tr").attr("data-price"))*Number(jQuery(this).val()))}),t=t.toFixed(2).toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),jQuery(".product_downloads_price").html(t)}function changeMenualTotal(e){Number(jQuery(e).val())<=0&&jQuery(e).val("1");var t=Number(jQuery(e).val()),i=Number(jQuery(".product_manual_price").attr("data-actual-price"));i=(i*=t).toFixed(2).toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),jQuery(".product_manual_price").html(i)}function onSelectableParametersChange(e){var t=0,i=gallery_box_data[jQuery("#bwg_current_image_key").val()].pricelist_manual_price?gallery_box_data[jQuery("#bwg_current_image_key").val()].pricelist_manual_price:"0";i=parseFloat(i.replace(",",""));var a=jQuery(e).closest(".image_selected_parameter").attr("data-parameter-type"),r=jQuery(e).val();r=r.split("*");var _=parseFloat(r[1]),o=r[0],s=Number(jQuery(e).closest(".image_selected_parameter").find(".already_selected_values").val());if("4"==a||"5"==a){var l=parseFloat(o+_);jQuery(e).closest(".image_selected_parameter").find(".already_selected_values").val(l)}else if("6"==a){if(0==jQuery(e).is(":checked"))var n=s-parseFloat(o+_);else n=s+parseFloat(o+_);jQuery(e).closest(".image_selected_parameter").find(".already_selected_values").val(n)}jQuery(".already_selected_values").each(function(){t+=Number(jQuery(this).val())}),i+=t,jQuery(".product_manual_price").attr("data-actual-price",i),i=(i*=Number(jQuery(".image_count").val())<=0?1:Number(jQuery(".image_count").val())).toFixed(2).toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),jQuery(".product_manual_price").html(i)}function onBtnClickAddToCart(){var e=jQuery("[name=type]").val();if(""!=e){var t={};if("manual"==e){var i=jQuery(".image_count").val(),a={};jQuery(".manual").find(".image_selected_parameter").each(function(){var e=jQuery(this).attr("data-parameter-id"),t="";switch(jQuery(this).attr("data-parameter-type")){case"2":t=jQuery(this).find("input").val();break;case"3":t=jQuery(this).find("textarea").val();break;case"4":t=jQuery(this).find("select :selected").val();break;case"5":t=jQuery(this).find("[type=radio]:checked").val();break;case"6":var i=[];jQuery(this).find("[type=checkbox]:checked").each(function(){i.push(jQuery(this).val())}),t=i}a[e]=t}),t.count=i,t.parameters=a,t.price=jQuery(".product_manual_price").attr("data-price").replace(",","")}else{var r=[];if(0==jQuery("[name=option_show_digital_items_count]").val()){if(0==jQuery("[name=selected_download_item]:checked").length)return void jQuery(".add_to_cart_msg").html("You must select at least one item.");jQuery("[name=selected_download_item]:checked").each(function(){var e={};e.id=jQuery(this).val(),e.count=1,e.price=jQuery(this).closest("tr").attr("data-price"),r.push(e)})}else jQuery(".digital_image_count").each(function(){var e={};0<jQuery(this).val()&&(e.id=jQuery(this).closest("tr").attr("data-id"),e.price=jQuery(this).closest("tr").attr("data-price"),e.count=jQuery(this).val(),r.push(e))});if(0==(t.downloadItems=r).length)return void jQuery(".add_to_cart_msg").html("Please select at least one item")}var _=jQuery("#ajax_url").val(),o={action:"add_cart",task:"add_cart",controller:"checkout",image_id:jQuery("#bwg_popup_image").attr("image_id"),type:e,data:JSON.stringify(t)};jQuery.ajax({type:"POST",url:_,data:o,success:function(e){responseData=JSON.parse(e),jQuery(".add_to_cart_msg").html(responseData.msg),jQuery(".products_in_cart").html(responseData.products_in_cart),1==responseData.redirect&&(window.location.href="<?php echo get_permalink($options->checkout_page);?>")},beforeSend:function(){},complete:function(){}})}else jQuery(".add_to_cart_msg").html("Please select Prints and products or Downloads")}function onBtnViewCart(){var e=jQuery("[name=option_checkout_page]").val();jQuery("#bwg_ecommerce_form").attr("action",e),jQuery("#bwg_ecommerce_form").submit()}function bwg_load_visible_images(e,t,i){0<=e-t&&(startPoint=e-t),i<e+t&&(endPoint=i);for(var a=startPoint;a<=endPoint;a++){var r=jQuery("#bwg_filmstrip_thumbnail_"+a+" img");r.removeClass("hidden"),r.attr("src",r.data("url"))}}function bwg_load_filmstrip(){for(var e=1;e<=total_thumbnail_count;e++){var t;if(leftIndex=startPoint-e,rightIndex=endPoint+e,rightIndex<total_thumbnail_count)(t=jQuery("#bwg_filmstrip_thumbnail_"+rightIndex+" img")).removeClass("hidden"),t.attr("src",t.data("url"));if(0<=leftIndex)(t=jQuery("#bwg_filmstrip_thumbnail_"+leftIndex+" img")).removeClass("hidden"),t.attr("src",t.data("url"))}jQuery(".bwg_filmstrip_thumbnail").each(function(){var e,t=jQuery(this).find("img");void 0===t.attr("style")&&(0==t.width()?t.on("load",function(){e=jQuery(this).find(".bwg_filmstrip_thumbnail_img_wrap"),bwg_filmstrip_thumb_view(t,e)}):(e=jQuery(this).find(".bwg_filmstrip_thumbnail_img_wrap"),bwg_filmstrip_thumb_view(t,e)))})}function bwg_filmstrip_thumb_view(e,t){var i=gallery_box_data.image_filmstrip_height,a=gallery_box_data.image_filmstrip_width,r=a-gallery_box_data.filmstrip_thumb_right_left_space,_=i,o=Math.max(a/e.width(),i/e.height()),s=e.width()*o,l=e.height()*o;e.css({width:s,height:l,marginLeft:(r-s)/2,marginTop:(_-l)/2})}function spider_display_embed(e,t,i,a){var r="";switch(e){case"EMBED_OEMBED_YOUTUBE_VIDEO":var _="<iframe ";for(attr in""!=i&&(_+=' src="//www.youtube.com/embed/'+i+'?enablejsapi=1&wmode=transparent"'),a)/src/i.test(attr)||""!=attr&&""!=a[attr]&&(_+=" "+attr+'="'+a[attr]+'"');r+=_+=" ></iframe>";break;case"EMBED_OEMBED_VIMEO_VIDEO":var o="<iframe ";for(attr in""!=i&&(o+=' src="//player.vimeo.com/video/'+i+'?enablejsapi=1"'),a)/src/i.test(attr)||""!=attr&&""!=a[attr]&&(o+=" "+attr+'="'+a[attr]+'"');r+=o+=" ></iframe>";break;case"EMBED_OEMBED_FLICKR_IMAGE":var s="<div ";for(attr in a)/src/i.test(attr)||""!=attr&&""!=a[attr]&&(s+=" "+attr+'="'+a[attr]+'"');s+=" >",""!=i&&(s+='<img src="'+i+'" style="max-width:100% !important; max-height:100% !important; width:auto !important; height:auto !important;">'),r+=s+="</div>";break;case"EMBED_OEMBED_FLICKR_VIDEO":break;case"EMBED_OEMBED_INSTAGRAM_VIDEO":var l="<div ";for(attr in a)/src/i.test(attr)||""!=attr&&""!=a[attr]&&(l+=" "+attr+'="'+a[attr]+'"');l+=" >",""!=i&&(l+='<video style="width:auto !important; height:auto !important; max-width:100% !important; max-height:100% !important; margin:0 !important;" controls><source src="'+i+'" type="video/mp4"> Your browser does not support the video tag. </video>'),r+=l+="</div>";break;case"EMBED_OEMBED_INSTAGRAM_IMAGE":l="<div ";for(attr in a)/src/i.test(attr)||""!=attr&&""!=a[attr]&&(l+=" "+attr+'="'+a[attr]+'"');l+=" >",""!=i&&(l+='<img src="//instagram.com/p/'+i+'/media/?size=l" style=" max-width:100% !important; max-height:100% !important; width:auto; height:auto;">'),r+=l+="</div>";break;case"EMBED_OEMBED_INSTAGRAM_POST":l="<div ";for(attr in a)/src/i.test(attr)||""!=attr&&""!=a[attr]&&(l+=" "+attr+'="'+a[attr]+'"',"CLASS"!=attr&&"class"!=attr&&"Class"!=attr||(obj_class=a[attr]));l+=" >",""!=i&&(l+='<iframe class="inner_instagram_iframe_'+obj_class+'" src="//instagr.am/p/'+i+'/embed/?enablejsapi=1" style="max-width:100% !important; max-height:100% !important; width:100%; height:100%; margin:0; display:table-cell; vertical-align:middle;"frameborder="0" scrolling="no" allowtransparency="false" allowfullscreen></iframe>'),r+=l+="</div>";break;case"EMBED_OEMBED_FACEBOOK_IMAGE":var n="<span ";for(attr in a)/src/i.test(attr)||""!=attr&&""!=a[attr]&&(n+=" "+attr+'="'+a[attr]+'"');n+=" >",""!=i&&(n+='<img src="'+t+'" style=" max-width:100% !important; max-height:100% !important; width:auto; height:100%;">'),r+=n+="</span>";break;case"EMBED_OEMBED_FACEBOOK_VIDEO":var g="<div ";for(attr in a)/src/i.test(attr)||""!=attr&&""!=a[attr]&&(g+=" "+attr+'="'+a[attr]+'"');g+=" >",""!=i&&(g+='<iframe src="//www.facebook.com/video/embed?video_id='+t+'&enablejsapi=1&wmode=transparent" style="max-width:100% !important; max-height:100% !important; width:100%; height:100%; margin:0; display:table-cell; vertical-align:middle;"frameborder="0" class="bwg_fb_video" scrolling="no" allowtransparency="false" allowfullscreen></iframe>'),r+=g+="</div>";break;case"EMBED_OEMBED_DAILYMOTION_VIDEO":var u="<iframe ";for(attr in""!=i&&(u+=' src="//www.dailymotion.com/embed/video/'+i+'?api=postMessage"'),a)/src/i.test(attr)||""!=attr&&""!=a[attr]&&(u+=" "+attr+'="'+a[attr]+'"');r+=u+=" ></iframe>";break;case"EMBED_OEMBED_IMGUR":var d="<div ";for(attr in a)/src/i.test(attr)||""!=attr&&""!=a[attr]&&(l+=" "+attr+'="'+a[attr]+'"');d+=" >",""!=i&&(d+='<img src="'+i+'" style="max-width:100% !important; max-height:100% !important; width:auto; height:auto !important;">'),r+=d+="</div>"}return r}function bwg_add_instagram_gallery(e,o){if(!0===(o=void 0!==o&&o)){if(bwg_check_instagram_gallery_input(e,o))return!1;var t="0";1==jQuery("input[name=popup_instagram_post_gallery]:checked").val()&&(t="1");var i=encodeURI(jQuery("#popup_instagram_gallery_source").val()),a=encodeURI(jQuery("#popup_instagram_image_number").val())}else{if(bwg_check_instagram_gallery_input(e,o))return!1;if(!bwg_check_gallery_empty(!1,!0))return!1;t="0";1==jQuery("input[name=instagram_post_gallery]:checked").val()&&(t="1");i=encodeURI(jQuery("#gallery_source").val());var r=jQuery("input[name=update_flag]:checked").val();a=encodeURI(jQuery("#autogallery_image_number").val())}jQuery("#bulk_embed").hide(),jQuery("#loading_div").show();var s=[],_={action:"addInstagramGallery",instagram_user:i,instagram_access_token:e,whole_post:t,autogallery_image_number:a,update_flag:r,async:!0};jQuery.post(ajax_url,_,function(e){if(0==e)return alert("Error: cannot get response from the server."),jQuery("#loading_div").hide(),o&&jQuery("#bulk_embed").show(),!1;var t=e.indexOf("WD_delimiter_start"),i=e.indexOf("WD_delimiter_end");if(-1==t||-1==i)return jQuery("#loading_div").hide(),o&&jQuery("#bulk_embed").show(),!1;if(e=e.substring(t+18,i),response_JSON=jQuery.parseJSON(e),response_JSON){if("error"==response_JSON[0])return alert("Error: "+jQuery.parseJSON(e)[1]),jQuery("#loading_div").hide(),o&&jQuery("#bulk_embed").show(),!1;for(var a=response_JSON.length,r=1;r<=a;r++)if(0!=response_JSON[a-r]){var _=response_JSON[a-r];s.push(_)}return bwg_add_image(s),o||(bwg_gallery_update_flag(),jQuery("#tr_instagram_gallery_add_button").hide()),jQuery("#loading_div").hide(),o&&jQuery(".opacity_bulk_embed").hide(),"ok"}return alert("There is some error. Cannot add Instagram gallery."),jQuery("#loading_div").hide(),o&&jQuery("#bulk_embed").show(),!1})}var bwg=0,isMobile=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()),bwg_click=isMobile?"touchend":"click",bwg_params=[],bwg_params_ib=[],bwg_params_carousel=[];function bwg_main_ready(){jQuery(".bwg_container").each(function(){0<jQuery(this).find(".wd_error").length&&bwg_container_loaded(jQuery(this).data("bwg"))}),bwg_document_ready(),jQuery(".bwg-thumbnails, .bwg-masonry-thumbnails, .bwg-album-thumbnails").each(function(){bwg_all_thumnails_loaded(this)}),jQuery(".bwg-mosaic-thumbnails").each(function(){bwg_thumbnail_mosaic(this)}),bwg_slideshow_ready(),bwg_carousel_ready(),bwg_carousel_onload(),bwg_image_browser_ready()}function bwg_resize_search_line(){jQuery(".search_line").each(function(){var e=jQuery(this);e.width()<410?e.addClass("bwg-search-line-responsive"):e.removeClass("bwg-search-line-responsive")})}function bwg_slideshow_resize(){jQuery(".bwg_slideshow").each(function(){bwg=jQuery(this).attr("data-bwg"),jQuery("#bwg_slideshow_image_container_"+bwg).length&&(bwg_params[bwg]=JSON.parse(jQuery("#bwg_slideshow_image_container_"+bwg).attr("data-params")),bwg_params[bwg].event_stack=[],bwg_popup_resize(bwg))})}function bwg_blog_style_resize(){jQuery(".bwg_blog_style").each(function(){bwg=jQuery(this).attr("data-bwg"),jQuery(".bwg_embed_frame_16x9_"+bwg).each(function(e){jQuery(this).width(jQuery(this).parent().width()),jQuery(this).height(.5625*jQuery(this).width())}),jQuery(".bwg_embed_frame_instapost_"+bwg).each(function(e){jQuery(this).width(jQuery(this).parent().width()),jQuery(this).height((jQuery(this).width()-16)*jQuery(this).attr("data-height")/jQuery(this).attr("data-width")+96)})})}function bwg_blog_style_onload(){jQuery(".bwg_blog_style").each(function(){bwg=jQuery(this).attr("data-bwg");jQuery("#bwg_blog_style_"+bwg);jQuery(".bwg_embed_frame_16x9_"+bwg).each(function(e){if(jQuery(".bwg_blog_style_image_"+bwg).find(".fluid-width-video-wrapper").length){jQuery(".fluid-width-video-wrapper").removeAttr("style");var t=jQuery(this).parents(".bwg_blog_style_image_"+bwg).find(".fluid-width-video-wrapper").contents();jQuery(this).parents(".fluid-width-video-wrapper").replaceWith(t)}jQuery(this).width(jQuery(this).parents(".bwg_blog_style_image_"+bwg).width()),jQuery(this).height(.5625*jQuery(this).width())}),jQuery(".bwg_embed_frame_instapost_"+bwg).each(function(e){jQuery(this).width(jQuery(this).parents(".bwg_blog_style_image_"+bwg).width()),jQuery(this).height((jQuery(this).width()-16)*jQuery(this).attr("data-height")/jQuery(this).attr("data-width")+96)}),bwg_container_loaded(bwg)})}function bwg_blog_style_ready(){jQuery(".bwg_blog_style").each(function(){var e=jQuery(this).attr("data-bwg");bwg_container_loaded(e);var t=!1;jQuery(this).find(".bwg_lightbox_"+e).on("click",function(){var e=jQuery(this).attr("data-image-id");if(jQuery("#bwg_blog_style_share_buttons_"+e).removeAttr("data-open-comment"),!t)return t=!0,setTimeout(function(){t=!1},100),bwg_gallery_box(e,jQuery(this).closest(".bwg_container")),!1}),jQuery(".bwg_lightbox_"+e+" .bwg_ecommerce").on("click",function(e){if(e.stopPropagation(),!t)return t=!0,setTimeout(function(){t=!1},100),bwg_gallery_box(jQuery(this).attr("data-image-id"),jQuery(this).closest(".bwg_container"),!0),!1});var i=window.location.hash.substring(1);i&&"-1"!=i.indexOf("bwg")&&(bwg_hash_array=i.replace("bwg","").split("/"),"<?php echo $params_array['gallery_id']; ?>"==bwg_hash_array[0]&&bwg_gallery_box(bwg_hash_array[1]))})}function bwg_slideshow_focus(){jQuery(".bwg_slideshow").each(function(){bwg=jQuery(this).attr("data-bwg"),jQuery("#bwg_slideshow_image_container_"+bwg).length&&(bwg_params[bwg]=JSON.parse(jQuery("#bwg_slideshow_image_container_"+bwg).attr("data-params")),bwg_params[bwg].event_stack=[],window.clearInterval(window["bwg_playInterval"+bwg]),jQuery(".bwg_ctrl_btn_"+bwg).hasClass("bwg-icon-play")||bwg_play(bwg_params[bwg].data,bwg))})}function bwg_slideshow_blur(){jQuery(".bwg_slideshow").each(function(){bwg=jQuery(this).attr("data-bwg"),jQuery("#bwg_slideshow_image_container_"+bwg).length&&(bwg_params[bwg]=JSON.parse(jQuery("#bwg_slideshow_image_container_"+bwg).attr("data-params")),bwg_params[bwg].event_stack=[],window.clearInterval(window["bwg_playInterval"+bwg]))})}function bwg_carousel_ready(){jQuery(".bwg-carousel").each(function(){var t=jQuery(this).data("bwg");bwg_params_carousel[t]=[],bwg_params_carousel[t].bwg_currentCenterNum=1,bwg_params_carousel[t].bwg_currentlyMoving=!1,bwg_params_carousel[t].data=[],jQuery("#spider_carousel_left-ico_"+t).on("click",function(){bwg_params_carousel[t].carousel.prev()}),jQuery("#spider_carousel_right-ico_"+t).on("click",function(){bwg_params_carousel[t].carousel.next()}),parseInt(bwg_params_carousel[t].carousel_enable_autoplay)&&(jQuery(".bwg_carousel_play_pause_"+t).attr("title",bwg_objectsL10n.pause),jQuery(".bwg_carousel_play_pause_"+t).attr("class","bwg-icon-pause bwg_ctrl_btn_"+t+" bwg_carousel_play_pause_"+t)),jQuery(".bwg_carousel_play_pause_"+t).on(bwg_click,function(e){jQuery(".bwg_ctrl_btn_"+t).hasClass("bwg-icon-play")?(jQuery(".bwg_carousel_play_pause_"+t).attr("title",bwg_objectsL10n.pause),jQuery(".bwg_carousel_play_pause_"+t).attr("class","bwg-icon-pause bwg_ctrl_btn_"+t+" bwg_carousel_play_pause_"+t),bwg_params_carousel[t].carousel.start()):(jQuery(".bwg_carousel_play_pause_"+t).attr("title",bwg_objectsL10n.play),jQuery(".bwg_carousel_play_pause_"+t).attr("class","bwg-icon-play bwg_ctrl_btn_"+t+" bwg_carousel_play_pause_"+t),bwg_params_carousel[t].carousel.pause()),e.stopPropagation(),e.stopImmediatePropagation()}),void 0!==jQuery().swiperight&&jQuery.isFunction(jQuery().swiperight)&&jQuery("#bwg_container1_"+t).swiperight(function(){bwg_params_carousel[t].carousel.prev()}),void 0!==jQuery().swipeleft&&jQuery.isFunction(jQuery().swipeleft)&&jQuery("#bwg_container1_"+t).swipeleft(function(){bwg_params_carousel[t].carousel.next()})})}function bwg_carousel_resize(){jQuery(".bwg-carousel").each(function(){var e=jQuery(this).data("bwg");bwg_carousel_params(e),bwg_params_carousel[e].carousel.pause(),bwg_carousel_watermark(e),jQuery(".bwg_ctrl_btn_"+e).hasClass("bwg-icon-play")||bwg_params_carousel[e].carousel.start()})}function bwg_carousel_onload(){jQuery(".bwg-carousel").each(function(){var e=jQuery(this).data("bwg");bwg_params_carousel[e]=jQuery(this).data("params"),bwg_carousel_watermark(e),bwg_carousel_params(e),bwg_container_loaded(e)})}function bwg_carousel_params(t){var e=jQuery("#bwg_container1_"+t).parent().width(),i=1;e<bwg_params_carousel[t].carousel_r_width?i=e/bwg_params_carousel[t].carousel_r_width:e=bwg_params_carousel[t].carousel_r_width,bwg_params_carousel[t].carousel_image_column_number>bwg_params_carousel[t].count&&(bwg_params_carousel[t].carousel_image_column_number=bwg_params_carousel[t].count),jQuery(".bwg_carousel_play_pause_"+t).css({display:parseInt(bwg_params_carousel[t].carousel_play_pause_butt)?"":"none"}),parseInt(bwg_params_carousel[t].carousel_prev_next_butt)?(jQuery("#bwg_carousel-right"+t).css({display:""}),jQuery("#bwg_carousel-left"+t).css({display:""})):(jQuery("#bwg_carousel-left"+t).css({display:"none"}),jQuery("#bwg_carousel-right"+t).css({display:"none"})),jQuery(".inner_instagram_iframe_bwg_embed_frame_"+t).each(function(){var e=jQuery(this).parent();bwg_params_carousel[t].image_height/(parseInt(e.attr("data-height"))+96)<bwg_params_carousel[t].image_width/parseInt(e.attr("data-width"))?(e.height(bwg_params_carousel[t].image_height*i),e.width((e.height()-96)*e.attr("data-width")/e.attr("data-height")+16)):(e.width(bwg_params_carousel[t].image_width*i),e.height((e.width()-16)*e.attr("data-height")/e.attr("data-width")+96))}),jQuery(".bwg_carousel_image_container_"+t).css({width:bwg_params_carousel[t].image_width*i,height:bwg_params_carousel[t].image_height*i}),jQuery(".bwg_carousel_watermark_text_"+t+", .bwg_carousel_watermark_text_"+t+":hover").css({fontSize:e*(bwg_params_carousel[t].watermark_font_size/bwg_params_carousel[t].image_width)*i}),jQuery(".bwg_carousel-image "+t).css({width:bwg_params_carousel[t].image_width*i,height:bwg_params_carousel[t].image_height*i}),jQuery(".bwg_carousel_watermark_container_"+t).css({width:bwg_params_carousel[t].image_width*i,height:bwg_params_carousel[t].image_height*i}),jQuery(".bwg_carousel_embed_video_"+t).css({width:bwg_params_carousel[t].image_width*i,height:bwg_params_carousel[t].image_height*i}),jQuery(".bwg_carousel_watermark_spun_"+t).css({width:bwg_params_carousel[t].image_width*i,height:bwg_params_carousel[t].image_height*i}),jQuery(".bwg_carousel-container"+t).css({width:e,height:bwg_params_carousel[t].image_height*i}),jQuery(".bwg_video_hide"+t).css({width:bwg_params_carousel[t].image_width*i,height:bwg_params_carousel[t].image_height*i}),bwg_params_carousel[t].carousel=jQuery("#bwg_carousel"+t).featureCarousel({containerWidth:e*i,containerHeight:bwg_params_carousel[t].image_height*i,fit_containerWidth:bwg_params_carousel[t].carousel_fit_containerWidth,largeFeatureWidth:bwg_params_carousel[t].image_width*i,largeFeatureHeight:bwg_params_carousel[t].image_height*i,smallFeaturePar:bwg_params_carousel[t].carousel_image_par,currentlyMoving:!1,startingFeature:bwg_params_carousel[t].bwg_currentCenterNum,featuresArray:[],timeoutVar:null,rotationsRemaining:0,autoPlay:1e3*bwg_params_carousel[t].car_inter,interval:1e3*bwg_params_carousel[t].carousel_interval,imagecount:bwg_params_carousel[t].carousel_image_column_number,bwg_number:t,enable_image_title:bwg_params_carousel[t].enable_image_title,borderWidth:0})}function bwg_carousel_watermark(e){var t=1,i=jQuery("#bwg_container1_"+e).parent().width();if(i<bwg_params_carousel[e].carousel_r_width&&(t=i/bwg_params_carousel[e].carousel_r_width),i>=bwg_params_carousel[e].image_width)bwg_carousel_change_watermark_container(e),jQuery("#bwg_carousel_play_pause-ico_"+e).css({fontSize:bwg_params_carousel[e].carousel_play_pause_btn_size}),jQuery(".bwg_carousel_watermark_image_"+e).css({maxWidth:bwg_params_carousel[e].watermark_width*t,maxHeight:bwg_params_carousel[e].watermark_height*t}),jQuery(".bwg_carousel_watermark_text_"+e+", .bwg_carousel_watermark_text_"+e+":hover").css({fontSize:t*bwg_params_carousel[e].watermark_font_size});else{var a=bwg_params_carousel[e].image_width/t;bwg_carousel_change_watermark_container(e),jQuery("#bwg_carousel_play_pause-ico_"+e).css({fontSize:i*bwg_params_carousel[e].carousel_play_pause_btn_size/a}),jQuery(".bwg_carousel_watermark_image_"+e).css({maxWidth:i*bwg_params_carousel[e].watermark_width/a,maxHeight:i*bwg_params_carousel[e].watermark_height/a}),jQuery(".bwg_carousel_watermark_text_"+e+", .bwg_carousel_watermark_text_"+e+":hover").css({fontSize:i*bwg_params_carousel[e].watermark_font_size/a})}}function bwg_carousel_change_watermark_container(a){jQuery(".bwg_carousel"+a).children().each(function(){if(2==jQuery(this).css("zIndex")){var e=jQuery(this).find("img");e.length||(e=jQuery(this).find("iframe"));var t=e.width(),i=e.height();jQuery(".bwg_carousel_watermark_spun_"+a).width(t),jQuery(".bwg_carousel_watermark_spun_"+a).height(i),jQuery(".bwg_carousel_title_spun_"+a).width(t),jQuery(".bwg_carouel_title_spun_"+a).height(i),jQuery(".bwg_carousel_watermark_"+a).css({display:"none"})}})}function bwg_carousel_preload(e,t){var i=jQuery(".bwg_carousel_preload").get();t||i.reverse();var a=0;jQuery(i).each(function(){if(1<++a)return!1;jQuery(this).parent().hasClass("bwg_carousel_embed_video_"+e)||jQuery(this).parent().hasClass("bwg_embed_frame_"+e)||jQuery(this).parent().hasClass("bwg_carousel_video")?(jQuery(this).attr("src",jQuery(this).attr("data-src")),jQuery(this).on("load",function(){jQuery(this).removeClass("bwg_carousel_preload")}),jQuery(this).parent().hasClass("bwg_carousel_video")&&(jQuery(".bwg_carousel_video")[0].load(),jQuery(this).parent().parent().removeClass("bwg_carousel_preload")),jQuery(this).removeAttr("data-src")):(jQuery(this).css({"background-image":"url('"+jQuery(this).attr("data-background")+"')",height:"100%"}),jQuery(this).removeClass("bwg_carousel_preload"),jQuery(this).removeAttr("data-background"))})}function bwg_slideshow_ready(){jQuery(".bwg_slideshow").each(function(){var i=jQuery(this).data("bwg");if(jQuery("#bwg_slideshow_image_container_"+i).length){bwg_params[i]=JSON.parse(jQuery("#bwg_slideshow_image_container_"+i).attr("data-params")),bwg_params[i].event_stack=[],bwg_container_loaded(i);var e=bwg_params[i].data;void 0!==jQuery().swiperight&&jQuery.isFunction(jQuery().swiperight)&&jQuery("#bwg_container1_"+i).swiperight(function(){return bwg_change_image(parseInt(jQuery("#bwg_current_image_key_"+i).val()),0<=parseInt(jQuery("#bwg_current_image_key_"+i).val())-bwg_iterator(i)?(parseInt(jQuery("#bwg_current_image_key_"+i).val())-bwg_iterator(i))%e.length:e.length-1,e,"",i),!1}),void 0!==jQuery().swipeleft&&jQuery.isFunction(jQuery().swipeleft)&&jQuery("#bwg_container1_"+i).swipeleft(function(){return bwg_change_image(parseInt(jQuery("#bwg_current_image_key_"+i).val()),parseInt(jQuery("#bwg_current_image_key_"+i).val())+bwg_iterator(i)%e.length,e,"",i),!1});var t=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase())?"touchend":"click";bwg_popup_resize(i),jQuery(".bwg_slideshow_watermark_"+i).css({display:"none"}),jQuery(".bwg_slideshow_title_text_"+i).css({display:"none"}),jQuery(".bwg_slideshow_description_text_"+i).css({display:"none"}),setTimeout(function(){bwg_change_watermark_container(i)},500),"horizontal"==bwg_params[i].filmstrip_direction?jQuery(".bwg_slideshow_image_container_"+i).height(jQuery(".bwg_slideshow_image_wrap_"+i).height()-bwg_params[i].slideshow_filmstrip_height):jQuery(".bwg_slideshow_image_container_"+i).width(jQuery(".bwg_slideshow_image_wrap_"+i).width()-bwg_params[i].slideshow_filmstrip_width);var a=/Firefox/i.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel";jQuery(".bwg_slideshow_filmstrip_"+i).bind(a,function(e){var t=window.event||e;return 0<((t=t.originalEvent?t.originalEvent:t).detail?-40*t.detail:t.wheelDelta)?jQuery(".bwg_slideshow_filmstrip_left_"+i).trigger("click"):jQuery(".bwg_slideshow_filmstrip_right_"+i).trigger("click"),!1}),jQuery(".bwg_slideshow_filmstrip_right_"+i).on(t,function(){jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).stop(!0,!1),"left"==bwg_params[i].left_or_top?"width"==bwg_params[i].width_or_height?(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().left>=-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).width()-jQuery(".bwg_slideshow_filmstrip_"+i).width())&&(jQuery(".bwg_slideshow_filmstrip_left_"+i).css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().left<-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).width()-jQuery(".bwg_slideshow_filmstrip_"+i).width()-(parseInt(bwg_params[i].filmstrip_thumb_margin_hor)+parseInt(bwg_params[i].slideshow_filmstrip_width)))?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).animate({left:-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).width()-jQuery(".bwg_slideshow_filmstrip_"+i).width())},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).animate({left:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().left-(parseInt(bwg_params[i].filmstrip_thumb_margin_hor)+parseInt(bwg_params[i].slideshow_filmstrip_width))},500,"linear")),window.setTimeout(function(){jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().left==-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).width()-jQuery(".bwg_slideshow_filmstrip_"+i).width())&&jQuery(".bwg_slideshow_filmstrip_right_"+i).css({opacity:.3,filter:"Alpha(opacity=30)"})},500)):(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().left>=-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).height()-jQuery(".bwg_slideshow_filmstrip_"+i).height())&&(jQuery(".bwg_slideshow_filmstrip_left_"+i).css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().left<-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).height()-jQuery(".bwg_slideshow_filmstrip_"+i).height()-(parseInt(bwg_params[i].filmstrip_thumb_margin_hor)+parseInt(bwg_params[i].slideshow_filmstrip_width)))?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).animate({left:-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).height()-jQuery(".bwg_slideshow_filmstrip_"+i).height())},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).animate({left:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().left-(parseInt(bwg_params[i].filmstrip_thumb_margin_hor)+parseInt(bwg_params[i].slideshow_filmstrip_width))},500,"linear")),window.setTimeout(function(){jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().left==-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).height()-jQuery(".bwg_slideshow_filmstrip_"+i).height())&&jQuery(".bwg_slideshow_filmstrip_right_"+i).css({opacity:.3,filter:"Alpha(opacity=30)"})},500)):"width"==bwg_params[i].width_or_height?(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().top>=-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).width()-jQuery(".bwg_slideshow_filmstrip_"+i).width())&&(jQuery(".bwg_slideshow_filmstrip_left_"+i).css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().top<-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).width()-jQuery(".bwg_slideshow_filmstrip_"+i).width()-parseInt(bwg_params[i].filmstrip_thumb_margin_hor)+parseInt(bwg_params[i].slideshow_filmstrip_width))?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).animate({top:-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).width()-jQuery(".bwg_slideshow_filmstrip_"+i).width())},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).animate({top:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().top-parseInt(bwg_params[i].filmstrip_thumb_margin_hor)+parseInt(bwg_params[i].slideshow_filmstrip_width)},500,"linear")),window.setTimeout(function(){jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().top==-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).width()-jQuery(".bwg_slideshow_filmstrip_"+i).width())&&jQuery(".bwg_slideshow_filmstrip_right_"+i).css({opacity:.3,filter:"Alpha(opacity=30)"})},500)):(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().top>=-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).height()-jQuery(".bwg_slideshow_filmstrip_"+i).height())&&(jQuery(".bwg_slideshow_filmstrip_left_"+i).css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().top<-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).height()-jQuery(".bwg_slideshow_filmstrip_"+i).height()-(parseInt(bwg_params[i].filmstrip_thumb_margin_hor)+parseInt(bwg_params[i].slideshow_filmstrip_width)))?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).animate({top:-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).height()-jQuery(".bwg_slideshow_filmstrip_"+i).height())},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).animate({top:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().top-(parseInt(bwg_params[i].filmstrip_thumb_margin_hor)+parseInt(bwg_params[i].slideshow_filmstrip_width))},500,"linear")),window.setTimeout(function(){jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().top==-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).height()-jQuery(".bwg_slideshow_filmstrip_"+i).height())&&jQuery(".bwg_slideshow_filmstrip_right_"+i).css({opacity:.3,filter:"Alpha(opacity=30)"})},500))}),jQuery(".bwg_slideshow_filmstrip_left_"+i).on(t,function(){jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).stop(!0,!1),"left"==bwg_params[i].left_or_top?(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().left<0&&(jQuery(".bwg_slideshow_filmstrip_right_"+i).css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().left>-(bwg_params[i].filmstrip_thumb_margin_hor+bwg_params[i].slideshow_filmstrip_width)?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).animate({left:0},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).animate({left:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().left+parseInt(bwg_params[i].filmstrip_thumb_margin_hor)+parseInt(bwg_params[i].slideshow_filmstrip_width)},500,"linear")),window.setTimeout(function(){0==jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().left&&jQuery(".bwg_slideshow_filmstrip_left_"+i).css({opacity:.3,filter:"Alpha(opacity=30)"})},500)):(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().top<0&&(jQuery(".bwg_slideshow_filmstrip_right_"+i).css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().top>-(bwg_params[i].filmstrip_thumb_margin_hor+bwg_params[i].slideshow_filmstrip_width)?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).animate({top:0},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).animate({top:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().top+parseInt(bwg_params[i].filmstrip_thumb_margin_hor)+parseInt(bwg_params[i].slideshow_filmstrip_width)},500,"linear")),window.setTimeout(function(){0==jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().top&&jQuery(".bwg_slideshow_filmstrip_left_"+i).css({opacity:.3,filter:"Alpha(opacity=30)"})},500))}),"width"==bwg_params[i].width_or_height?bwg_set_filmstrip_pos(jQuery(".bwg_slideshow_filmstrip_"+i).width(),i):bwg_set_filmstrip_pos(jQuery(".bwg_slideshow_filmstrip_"+i).height(),i),jQuery("#bwg_slideshow_play_pause_"+i).off(t).on(t,function(){jQuery(".bwg_ctrl_btn_"+i).hasClass("bwg-icon-play")?(bwg_play(bwg_params[i].data,i),jQuery(".bwg_slideshow_play_pause_"+i).attr("title",bwg_objectsL10n.pause),jQuery(".bwg_slideshow_play_pause_"+i).attr("class","bwg-icon-pause bwg_ctrl_btn_"+i+" bwg_slideshow_play_pause_"+i),1==bwg_params[i].enable_slideshow_music&&document.getElementById("bwg_audio_"+i).play()):(window.clearInterval(window["bwg_playInterval"+i]),jQuery(".bwg_slideshow_play_pause_"+i).attr("title","Play"),jQuery(".bwg_slideshow_play_pause_"+i).attr("class","bwg-icon-play bwg_ctrl_btn_"+i+" bwg_slideshow_play_pause_"+i),1==bwg_params[i].enable_slideshow_music&&document.getElementById("bwg_audio_"+i).pause())}),0!=bwg_params[i].enable_slideshow_autoplay&&(bwg_play(bwg_params[i].data,i),jQuery(".bwg_slideshow_play_pause_"+i).attr("title",bwg_objectsL10n.pause),jQuery(".bwg_slideshow_play_pause_"+i).attr("class","bwg-icon-pause bwg_ctrl_btn_"+i+" bwg_slideshow_play_pause_"+i),1==bwg_params[i].enable_slideshow_music&&jQuery("#bwg_audio_"+i).length&&document.getElementById("bwg_audio_"+i).play()),bwg_params[i].preload_images&&bwg_preload_images(parseInt(jQuery("#bwg_current_image_key_".$bwg).val()),i),jQuery(".bwg_slideshow_image_"+i).removeAttr("width"),jQuery(".bwg_slideshow_image_"+i).removeAttr("height")}})}function bwg_image_browser_resize(){jQuery(".bwg_image_browser").each(function(){var e=jQuery(this).attr("data-bwg");jQuery(".image_browser_images_conteiner_"+e).length&&(bwg_params_ib[e]=JSON.parse(jQuery("#bwg_container1_"+e+" .image_browser_images_conteiner_"+e).attr("data-params")),bwg_image_browser(e))})}function bwg_image_browser_ready(){jQuery(".bwg_image_browser").each(function(){var e=jQuery(this).attr("data-bwg");bwg_container_loaded(e),jQuery(".image_browser_images_conteiner_"+e).length&&(bwg_params_ib[e]=JSON.parse(jQuery(".image_browser_images_conteiner_"+e).attr("data-params")),setTimeout(function(){bwg_image_browser(e)},3))})}function bwg_search_focus(e){jQuery(e).parent().find(".bwg_search_input").focus(),jQuery(e).hide()}function bwg_key_press(e){jQuery(e).parent().find(".bwg_search_reset_container").removeClass("hidden"),jQuery(e).parent().find(".bwg_search_loupe_container1").removeClass("hidden")}function bwg_all_thumnails_loaded(t){var i=0,a=jQuery(t).find("img").length;return 0==a?bwg_all_thumbnails_loaded_callback(t):jQuery(t).find("img").each(function(){var e=jQuery(this).attr("src");jQuery("<img/>").attr("src",e).on("load error",function(){++i>=a&&bwg_all_thumbnails_loaded_callback(t)})}),0==a}function bwg_all_thumbnails_loaded_callback(e){jQuery(e).hasClass("bwg-thumbnails")&&bwg_thumbnail(e),jQuery(e).hasClass("bwg-masonry-thumbnails")&&bwg_thumbnail_masonry(e),jQuery(e).hasClass("bwg-album-extended")&&bwg_album_extended(e)}function bwg_container_loaded(e){jQuery("#gal_front_form_"+e).removeClass("bwg-hidden"),jQuery("#ajax_loading_"+e).addClass("bwg-hidden")}function bwg_album_thumbnail(e){bwg_container_loaded(jQuery(e).data("bwg"))}function bwg_album_extended(e){var t=jQuery(e).width(),i=jQuery(e).data("thumbnail-width"),a=jQuery(e).data("spacing"),r=jQuery(e).data("max-count"),_=parseInt(t/(2*i));_<1&&(_=1),r<_&&(_=r);var o=100/_,s=jQuery(e).find(".bwg-extended-item"),l=parseInt(s.css("margin-left")),n=parseInt(s.css("margin-right"));s.css({width:"calc("+o+"% - "+(l+n)+"px)"}),s.width()<i?s.find(".bwg-extended-item0, .bwg-extended-item1").css({width:"calc(100% - "+a+"px)"}):s.width()>2*i?(s.find(".bwg-extended-item0").css({width:"calc(50% - "+a+"px)"}),s.find(".bwg-extended-item1").css({width:"calc(100% - "+(i+2*a)+"px)"})):s.find(".bwg-extended-item0, .bwg-extended-item1").css({width:"calc(50% - "+a+"px)"}),jQuery(e).children(".bwg-extended-item").each(function(){var e=jQuery(this).find("img"),t=jQuery(this).find(".bwg-item0"),i=jQuery(this).find(".bwg-item2");i.width()/i.height()>e.width()/e.height()?i.width()>e.width()?e.css({width:"100%"}):e.css({maxWidth:"100%"}):i.height()>e.height()?e.css({height:"100%"}):e.css({maxHeight:"100%"}),jQuery(this).find(".bwg-item2").css({marginLeft:(t.width()-e.width())/2,marginTop:(t.height()-e.height())/2})}),bwg_container_loaded(jQuery(e).data("bwg"))}function bwg_thumbnail(e){var t=jQuery(e).width(),i=jQuery(e).data("thumbnail-width"),a=jQuery(e).data("max-count"),r=parseInt(t/i)+1;a<r&&(r=a);var _=100/r;jQuery(e).find(".bwg-item").css({width:_+"%"}),jQuery(e).children(".bwg-item").each(function(){var e=jQuery(this).find("img"),t=jQuery(this).find(".bwg-item2");t.width()/t.height()>e.width()/e.height()?t.width()>e.width()?e.css({width:"100%"}):e.css({maxWidth:"100%"}):t.height()>e.height()?e.css({height:"100%"}):e.css({maxHeight:"100%"}),jQuery(this).find(".bwg-item2").css({marginLeft:(t.width()-e.width())/2,marginTop:(t.height()-e.height())/2})}),bwg_container_loaded(jQuery(e).data("bwg"))}function bwg_thumbnail_masonry(e){var t=jQuery(e);if(t.find(".bwg-empty-item").remove(),"horizontal"==t.data("masonry-type")){var a=t.data("thumbnail-height"),r=t.data("max-count"),_=[];for(i=0;i<r;i++)_.push(0);t.find(".bwg-item").each(function(){var e=_.indexOf(Math.min.apply(Math,_));jQuery(this).css({height:a,order:e+1}),_[e]+=jQuery(this)[0].getBoundingClientRect().width});var o=Math.max.apply(Math,_);for(t.width(o),i=0;i<r;i++)_[i]<o&&t.append(jQuery('<div class="bwg-item bwg-empty-item"></div>').css({height:a,order:i+1,width:o-_[i]}))}else{t.removeAttr("style");o=t.width();var s=t.data("thumbnail-width"),l=(r=t.data("max-count"),parseInt(o/s)+("0"==t.data("resizable-thumbnails")?0:1));r<l&&(l=r);var n=t.find(".bwg-item").length;n<l&&(l=n);var g=100/l,u=[];for(i=0;i<l;i++)u.push(0);t.find(".bwg-item").each(function(){var e=u.indexOf(Math.min.apply(Math,u));jQuery(this).css({width:g+"%",order:e+1}),u[e]+=jQuery(this)[0].getBoundingClientRect().height});var d=Math.max.apply(Math,u);for(i=0;i<l;i++)u[i]<d&&t.append(jQuery('<div class="bwg-item bwg-empty-item"></div>').css({width:g+"%",order:i+1,height:d-u[i]}));t.outerWidth(l*s),t.height(d)}bwg_container_loaded(t.data("bwg"))}function bwg_thumbnail_mosaic(e){var t=jQuery(e),r=t.attr("data-bwg"),i=t.attr("data-block-id"),a=parseInt(t.attr("data-thumb-padding"))/2,_=parseInt(t.attr("data-thumb-border"))+a;if("horizontal"==t.attr("data-mosaic-direction")){var o=parseInt(t.attr("data-height"));if("1"==t.attr("data-resizable"))if(1920<=jQuery(window).width())var s=(1+jQuery(window).width()/1920)*o;else if(jQuery(window).width()<=640)s=jQuery(window).width()/640*o;else s=o;else s=o;(y=jQuery(".bwg_mosaic_thumb_"+r)).each(function(e){var t=y.get(e).naturalWidth,i=y.get(e).naturalHeight;t=t*s/i,y.eq(e).height(s),y.eq(e).width(t)});var l=jQuery("#bwg_mosaic_thumbnails_div_"+r).width()/100*parseInt(t.attr("data-total-width"));jQuery("#"+i).width(l);var n=s+2*_,g=0,u=[];u[0]=0;var d=[],c=d[0]=0;y.each(function(e){row_cum_width2=c+y.eq(e).width()+2*_,row_cum_width2-l<0?(c=row_cum_width2,u[e]=g,d[g]++):e!==y.length-1?Math.abs(c-l)>Math.abs(row_cum_width2-l)||Math.abs(c-l)<=Math.abs(row_cum_width2-l)&&0==d[g]?e!==y.length-2?(c=row_cum_width2,u[e]=g,d[g]++,d[++g]=0,c=0):(c=row_cum_width2,u[e]=g,d[g]++):(d[++g]=1,u[e]=g,c=row_cum_width2-c):(c=row_cum_width2,u[e]=g,d[g]++)});for(var h=[],b=[],p=0;p<=g;p++)h[p]=1,b[p]=n;for(p=0;p<=g;p++)c=0,y.each(function(e){u[e]==p&&(c+=y.eq(e).width())}),h[p]=k=(l-2*d[p]*_)/c,b[p]=(n-2*_)*h[p]+2*_;(M=[])[0]=0;var m=[],w=[];m[0]=0,w[0]=0;for(p=1;p<=g;p++)m[p]=m[0],w[p]=w[p-1]+b[p-1];y.each(function(e){var t=y.eq(e).width(),i=y.eq(e).height();y.eq(e).width(t*h[u[e]]),y.eq(e).height(i*h[u[e]]),y.eq(e).parent().css({top:w[u[e]],left:m[u[e]]}),m[u[e]]+=t*h[u[e]]+2*_,M[u[e]]=e}),jQuery("#"+i).height(w[g]+b[g]-w[0])}else{var y,f=parseInt(t.attr("data-width"));if("1"==t.attr("data-resizable"))if(1920<=jQuery(window).width())var j=(1+jQuery(window).width()/1920)*f;else if(jQuery(window).width()<=640)j=jQuery(window).width()/640*f;else j=f;else j=f;(y=jQuery(".bwg_mosaic_thumb_"+r)).each(function(e){var t=y.get(e).naturalWidth,i=y.get(e).naturalHeight;y.eq(e).height(i*j/t),y.eq(e).width(j)});l=jQuery("#bwg_mosaic_thumbnails_div_"+r).width()/100*parseInt(t.attr("data-total-width"));jQuery("#"+i).width(l);var Q=j+2*_<l?j:l-2*_,v=Math.floor(l/(Q+2*_)),x=[];x[0]=0;for(var S=[],C=[],k=0;k<v;k++)C[k]=0,S[k]=0;y.each(function(e){for(var t=0,i=C[0],a=0;a<v;a++)i>C[a]&&(i=C[a],t=a);x[e]=t,S[t]++,A=i,D=0+t*(Q+2*_),y.eq(e).parent().css({top:A,left:D}),C[t]+=y.eq(e).height()+2*_}),(h=[])[0]=1;var E=0,I=[],z=0,T=0;for(k=0;k<v;k++)E+=Q,I[k]=0,y.each(function(e){x[e]==k&&(I[k]+=y.eq(e).height())}),0!=I[k]&&(z+=Q/I[k],T+=Q*S[k]*2*_/I[k]);var O=0;0!=z&&(O=(E+T)/z);for(k=0;k<v;k++)0!=I[k]&&(h[k]=(O-2*S[k]*_)/I[k]);var M,D=[];D[0]=0;for(k=1;k<=v;k++)D[k]=D[k-1]+Q*h[k-1]+2*_;var A=[];for(k=0;k<v;k++)A[k]=0;(M=[])[0]=0,y.each(function(e){var t=y.eq(e).width(),i=y.eq(e).height();y.eq(e).width(t*h[x[e]]),y.eq(e).height(i*h[x[e]]),y.eq(e).parent().css({top:A[x[e]],left:D[x[e]]}),A[x[e]]+=i*h[x[e]]+2*_,M[x[e]]=e}),jQuery("#"+i).width(D[v]).height(A[0])}jQuery(".bwg_mosaic_thumbnails_"+r).css({visibility:"visible"}),jQuery(".tablenav-pages_"+r).css({visibility:"visible"}),bwg_container_loaded(r),jQuery(".bwg_mosaic_thumb_"+r).removeClass("bwg-hidden"),jQuery("#bwg_mosaic_thumbnails_div_"+r).removeClass("bwg-hidden"),"hover"==t.attr("data-image-title")&&bwg_mosaic_title_on_hover(r,t,_),"hover"==t.attr("data-ecommerce-icon")&&(jQuery(".bwg_mosaic_thumb_spun_"+r).on("mouseenter",function(){var e=jQuery(this).parents(".bwg-mosaic-thumb-span").children(".bwg_mosaic_thumb_"+r).width(),t=jQuery(this).parents(".bwg-mosaic-thumb-span").children(".bwg_mosaic_thumb_"+r).height();jQuery(this).children(".bwg_ecommerce_spun1_"+r).width(e);var i=jQuery(this).children(".bwg_ecommerce_spun1_"+r).width(),a=jQuery(this).children(".bwg_ecommerce_spun1_"+r).height();jQuery(this).children(".bwg_ecommerce_spun1_"+r).css({top:_+.5*t-.5*a,left:_+.5*e-.5*i,opacity:1,filter:"Alpha(opacity=100)"})}),jQuery(".bwg_mosaic_thumb_spun_"+r).on("mouseleave",function(){jQuery(this).children(".bwg_ecommerce_spun1_"+r).css({top:0,left:-1e4,opacity:0,filter:"Alpha(opacity=0)",padding:t.attr("data-title-margin")})}))}function bwg_mosaic_title_on_hover(r,e,_){jQuery(".bwg-mosaic-thumb-span").on("mouseenter",function(){var e=jQuery(this).children(".bwg_mosaic_thumb_"+r).width(),t=jQuery(this).children(".bwg_mosaic_thumb_"+r).height();jQuery(this).find(".bwg_mosaic_title_spun1_"+r).width(e);var i=jQuery(this).find(".bwg_mosaic_title_spun1_"+r).width(),a=jQuery(this).find(".bwg_mosaic_title_spun1_"+r).height();jQuery(this).find(".bwg_mosaic_title_spun1_"+r).css({top:_+.5*t-.5*a<0?_:_+.5*t-.5*a,left:_+.5*e-.5*i,opacity:1,filter:"Alpha(opacity=100)","max-height":"calc(100% - "+2*_+"px)",overflow:"hidden"})}),jQuery(".bwg-mosaic-thumb-span").on("mouseleave",function(){jQuery(this).find(".bwg_mosaic_title_spun1_"+r).css({top:0,left:-1e4,opacity:0,filter:"Alpha(opacity=0)",padding:e.attr("data-title-margin"),"max-height":"calc(100% - "+2*_+"px)",overflow:"hidden"})})}function bwg_mosaic_ajax(e,t){var i=0;jQuery(".bwg_mosaic_thumb_spun_"+e+" img").on("load",function(){++i>=t&&bwg_thumbnail_mosaic(jQuery(".bwg-mosaic-thumbnails[data-bwg="+e+"]"))}),jQuery(".bwg_mosaic_thumb_spun_"+e+" img").on("error",function(){jQuery(this).height(100),jQuery(this).width(100),++i>=t&&bwg_thumbnail_mosaic(jQuery(".bwg-mosaic-thumbnails[data-bwg="+e+"]"))})}function bwg_add_album(){var t=!1;jQuery(".bwg-album").off("click").on("click",function(){if(!t){var e=jQuery(this).attr("data-bwg");return t=!0,setTimeout(function(){t=!1},100),bwg_ajax("gal_front_form_"+e,e,jQuery(this).attr("data-container_id"),jQuery(this).attr("data-alb_gal_id"),jQuery(this).attr("data-album_gallery_id"),jQuery(this).attr("data-def_type"),"",jQuery(this).attr("data-title")),!1}}),jQuery(".bwg_description_more").on("click",function(){jQuery(this).hasClass("bwg_more")?(jQuery(this).parent().find(".bwg_description_full").show(),jQuery(this).addClass("bwg_hide").removeClass("bwg_more"),jQuery(this).html(jQuery(this).data("hide-msg"))):(jQuery(this).parent().find(".bwg_description_full").hide(),jQuery(this).addClass("bwg_more").removeClass("bwg_hide"),jQuery(this).html(jQuery(this).data("more-msg")))})}function bwg_add_lightbox(){var i=!1;jQuery(".bwg_lightbox .bwg-item0, .bwg_lightbox .bwg_slide, .bwg_lightbox .bwg-carousel-image").on("click",function(e){e.stopPropagation(),e.preventDefault();var t=jQuery(this).parent();if(!i)return i=!0,setTimeout(function(){i=!1},100),bwg_gallery_box(jQuery(t).attr("data-image-id"),jQuery(t).closest(".bwg_container")),!1}),jQuery(".bwg_lightbox .bwg_ecommerce").on("click",function(e){if(e.stopPropagation(),!i)return i=!0,setTimeout(function(){i=!1},100),bwg_gallery_box(jQuery(this).closest(".bwg_lightbox").attr("data-image-id"),jQuery(this).closest(".bwg_container"),!0),!1})}function bwg_filter_by_tag(e){var t="",i=jQuery(e).parent().parent(),a=i.find(".current_view").val(),r=i.find(".form_id").val(),_=i.find(".cur_gal_id").val(),o=i.find(".album_gallery_id").val(),s=i.find(".type").val();jQuery(e).parent().find(".opt.selected").each(function(){t=t+jQuery(e).text()+","}),""==(t=t.slice(0,-1))&&(t=bwg_objectsL10n.bwg_select_tag),jQuery(e).parent().find(".CaptionCont").attr("title",t),jQuery(e).parent().find(".CaptionCont .placeholder").html(t),jQuery("#bwg_tag_id_"+a).val(jQuery("#bwg_tag_id_"+_).val()),bwg_select_tag(a,r,_,o,s,!1)}function bwg_document_ready(){bwg_add_lightbox(),jQuery('div[id^="bwg_container1_"]').each(function(){var e=jQuery(this);e.data("right-click-protection")&&bwg_disable_right_click(e),jQuery(".SumoSelect > .CaptionCont > label > i").addClass("bwg-icon-angle-down closed");var t=e.find(".search_tags");t.length&&(t.SumoSelect({triggerChangeCombined:!0,placeholder:bwg_objectsL10n.bwg_select_tag,search:!0,searchText:bwg_objectsL10n.bwg_search,forceCustomRendering:!0,noMatch:bwg_objectsL10n.bwg_tag_no_match,captionFormatAllSelected:bwg_objectsL10n.bwg_all_tags_selected,captionFormat:"{0} "+bwg_objectsL10n.bwg_tags_selected,okCancelInMulti:!0,locale:[bwg_objectsL10n.ok,bwg_objectsL10n.cancel,bwg_objectsL10n.select_all]}),t.off("change").on("change",function(){bwg_filter_by_tag(this)}));var i=e.find(".bwg_order");i.length&&i.SumoSelect({triggerChangeCombined:!0,forceCustomRendering:!0}),jQuery(this).find("search_placeholder_title").hide(),""==jQuery(this).find(".bwg_search_input").val()&&jQuery(this).find("search_placeholder_title").show(),jQuery(".bwg_thumbnail .bwg_search_container_2").focusout(function(e){""==jQuery(this).find(".bwg_search_input").val()&&(jQuery(this).find(".search_placeholder_title").show(),jQuery(this).find(".bwg_search_loupe_container1").addClass("hidden"),jQuery(this).find(".bwg_search_reset_container").addClass("hidden"))})}),jQuery(".search_tags").on("sumo:opened",function(){0==jQuery(this).parent().find("ul li").length&&(jQuery(".no-match").html(bwg_objectsL10n.bwg_tag_no_match),jQuery(".no-match").show())}),jQuery(".bwg_thumbnail .SumoSelect").on("sumo:closed",function(){jQuery(this).find("label i").removeClass("bwg-icon-angle-up opened"),jQuery(this).find("label i").addClass("bwg-icon-angle-down closed")}),jQuery(".bwg_thumbnail .SumoSelect").on("sumo:opened",function(){jQuery(this).find("label i").removeClass("bwg-icon-angle-down closed"),jQuery(this).find("label i").addClass("bwg-icon-angle-up opened")}),bwg_add_album();var e=window.location.hash.substring(1);if(e&&"-1"!=e.indexOf("bwg")){bwg_hash_array=e.replace("bwg","").split("/");var t=jQuery(".bwg_container");t&&bwg_gallery_box(bwg_hash_array[1],t,!1,bwg_hash_array[0])}bwg_blog_style_ready(),bwg_image_browser_ready(),bwg_resize_search_line()}function bwg_clear_search_input(e){jQuery("#bwg_search_input_"+e).val(""),jQuery("#bwg_search_container_1_"+e+" .bwg_search_loupe_container1").addClass("hidden"),jQuery("#bwg_search_container_1_"+e+" .bwg_search_reset_container").addClass("hidden")}function bwg_check_search_input_enter(e,t){return 13!=(t.which||t.keyCode)||(jQuery(e).closest(".bwg_search_container_1").find(".bwg_search").trigger("click"),!1)}function bwg_ajax(t,i,a,r,e,_,o,s,l,n,g){jQuery("#ajax_loading_"+i).removeClass("bwg-hidden"),"function"==typeof bwg_scroll_load_action&&jQuery(window).off("scroll",bwg_scroll_load_action),jQuery(".bwg_thumbnail .search_tags").off("sumo:closed");var u=jQuery("#"+t).data("ajax-url"),d=0;if(void 0===n)n=!1;var c=jQuery("#page_number_"+i).val(),h=jQuery("#bwg_search_input_"+i).val(),b={},p=jQuery("#bwg_album_breadcrumb_"+i).val();if(p&&!0!==n){var m=JSON.parse(p);if("back"==r){m.splice(-1,1);var w=m.slice(-1)[0];r=w.id,c=w.page,b["action_"+i]="back"}else"numeric"===n||o?(m.splice(-1,1),m.push({id:r,page:c,search:h})):(m.push({id:r,page:1}),c=1);b["bwg_album_breadcrumb_"+i]=JSON.stringify(m)}if(b.gallery_type=jQuery("#"+t).data("gallery-type"),b.gallery_id=jQuery("#"+t).data("gallery-id"),b.tag=jQuery("#"+t).data("tag"),b.album_id=jQuery("#"+t).data("album-id"),b.theme_id=jQuery("#"+t).data("theme-id"),b.shortcode_id=jQuery("#"+t).data("shortcode-id"),b.bwg=i,o&&(c=1),void 0===s||""==s)s="";if(void 0===g||""==g)g="";if(void 0===l||""==l)l=jQuery(".bwg_order_"+i).val();b["page_number_"+i]=c,b["bwg_load_more_"+i]=jQuery("#bwg_load_more_"+i).val(),b["album_gallery_id_"+i]=r,b["type_"+i]=_,b["title_"+i]=s,b["description_"+i]=g,b["sortImagesByValue_"+i]=l,0<jQuery("#bwg_search_input_"+i).length&&(b["bwg_search_"+i]=jQuery("#bwg_search_input_"+i).val());var y=jQuery.parseJSON(b["bwg_album_breadcrumb_"+i]);return jQuery.each(y,function(e,t){b["bwg_search_"+i]="",r==t.id&&(b["bwg_search_"+i]=t.search)}),b["bwg_tag_id_"+a]=jQuery("#bwg_tag_id_"+a).val(),jQuery("#gal_front_form_"+i).addClass("bwg-hidden"),jQuery("#ajax_loading_"+i).removeClass("bwg-hidden"),jQuery.ajax({type:"POST",url:u,data:b,success:function(e){jQuery(e).find(".bwg_masonry_thumb_spun_"+i+" img").length,d=jQuery(e).find(".bwg_mosaic_thumb_spun_"+i+" img").length,!0===n?(a=="bwg_thumbnails_mosaic_"+i?jQuery("#"+a).append(jQuery(e).closest(".bwg-container-"+i).find("#"+a).html()):a=="bwg_album_compact_"+i?jQuery("#"+a).append(jQuery(e).closest(".bwg-album-thumbnails").html()):jQuery("#"+a).append(jQuery(e).closest(".bwg-container-"+i).html()),jQuery(".bwg_nav_cont_"+i).html(jQuery(e).closest(".bwg_nav_cont_"+i).html())):jQuery("#bwg_container3_"+i).html(e)},complete:function(){jQuery("div[id^='bwg_container1_'] img").each(function(){null!=jQuery(this).attr("data-lazy-src")&&""!=jQuery(this).attr("data-lazy-src")?jQuery(this).attr("src",jQuery(this).attr("data-lazy-src")):null!=jQuery(this).attr("data-src")&&""!=jQuery(this).attr("data-src")&&jQuery(this).attr("src",jQuery(this).attr("data-src"))}),jQuery(".blog_style_image_buttons_conteiner_"+i).find(jQuery(".bwg_blog_style_img_"+i)).on("load",function(){jQuery(".bwg_blog_style_img_"+i).closest(jQuery(".blog_style_image_buttons_conteiner_"+i)).show()}),jQuery("#bwg_tags_id_"+a).val(jQuery("#bwg_tag_id_"+a).val()),jQuery(".pagination-links_"+i).length&&jQuery("html, body").animate({scrollTop:jQuery("#"+t).offset().top-150},500),bwg_document_ready(),bwg_mosaic_ajax(i,d),bwg_all_thumnails_loaded(".bwg-container-"+i)&&bwg_container_loaded(i),jQuery(".blog_style_images_conteiner_"+i+" .bwg_embed_frame_16x9_"+i).each(function(e){jQuery(this).width(jQuery(this).parent().width()),jQuery(this).height(.5625*jQuery(this).width())}),jQuery(".blog_style_images_conteiner_"+i+" .bwg_embed_frame_instapost_"+i).each(function(e){jQuery(this).width(jQuery(this).parent().width()),jQuery(this).height((jQuery(this).width()-16)*jQuery(this).attr("data-height")/jQuery(this).attr("data-width")+96)}),jQuery("#bwg_embed_frame_16x9_"+i).width(jQuery("#bwg_embed_frame_16x9_"+i).parent().width()),jQuery("#bwg_embed_frame_16x9_"+i).height(.5625*jQuery("#bwg_embed_frame_16x9_"+i).width()),jQuery("#bwg_embed_frame_instapost_"+i).width(jQuery("#bwg_embed_frame_16x9_"+i).parent().width()),jQuery(".bwg_embed_frame_instapost_"+i).height((jQuery(".bwg_embed_frame_instapost_"+i).width()-16)*jQuery(".bwg_embed_frame_instapost_"+i).attr("data-height")/jQuery(".bwg_embed_frame_instapost_"+i).attr("data-width")+96),jQuery("#bwg_search_input_"+i).val(b["bwg_search_"+i]),""!=jQuery("#bwg_search_input_"+i).val()?(jQuery("#bwg_search_input_"+i).parent().find(".search_placeholder_title").hide(),jQuery("#bwg_search_input_"+i).parent().parent().find(".bwg_search_reset_container").show(),jQuery("#bwg_search_input_"+i).parent().parent().find(".bwg_search_loupe_container1").show()):jQuery("#bwg_search_input_"+i).parent().find(".search_placeholder_title").show();var e=jQuery("#bwg_container2_"+i+" .cur_gal_id").val();jQuery("#bwg_tag_id_"+i).val(jQuery("#bwg_tag_id_"+e).val())}}),!1}function bwg_select_tag(e,t,i,a,r,_){_&&jQuery("#bwg_tag_id_"+i).val(""),bwg_ajax(t,e,i,a,"",r,1,"")}function bwg_cube(e,t,i,a,r,_,o,s,l,n,g){var u,d=!1,c="";if(void 0!==g&&""!==g){d=!0,bwg_params[g].bwg_trans_in_progress=!0,c="_"+g,u=bwg_params[g].bwg_transition_duration;bwg_params[g].event_stack}else u=bwg_transition_duration;if(!bwg_testBrowser_cssTransitions(g))return bwg_fallback(s,l,n,g);if(!bwg_testBrowser_cssTransforms3d(g))return bwg_fallback3d(s,l,n,g);function h(){if(jQuery(s).removeAttr("style"),jQuery(l).removeAttr("style"),jQuery(".bwg_slider"+c).removeAttr("style"),jQuery(s).css({opacity:0,filter:"Alpha(opacity=0)","z-index":1}),jQuery(l).css({opacity:1,filter:"Alpha(opacity=100)","z-index":2}),jQuery(".bwg_image_info").show(),jQuery(s).html(""),d){bwg_change_watermark_container(g),bwg_params[g].bwg_trans_in_progress=!1;var e=bwg_params[g].data,t=bwg_params[g].event_stack}else{gallery_box_data.bwg_trans_in_progress=!1;t=gallery_box_data.event_stack}void 0!==t&&0<t.length&&(key=t[0].split("-"),t.shift(),bwg_change_image(key[0],key[1],e,!0,g)),bwg_change_watermark_container()}d?(jQuery(".bwg_slideshow_filmstrip_thumbnail_"+g).removeClass("bwg_slideshow_thumb_active_"+g).addClass("bwg_slideshow_thumb_deactive_"+g),jQuery("#bwg_filmstrip_thumbnail_"+bwg_params[g].bwg_current_key+"_"+g).removeClass("bwg_slideshow_thumb_deactive_"+g).addClass("bwg_slideshow_thumb_active_"+g),jQuery(".bwg_slideshow_dots_"+g).removeClass("bwg_slideshow_dots_active_"+g).addClass("bwg_slideshow_dots_deactive_"+g),jQuery("#bwg_dots_"+bwg_params[g].bwg_current_key+"_"+g).removeClass("bwg_slideshow_dots_deactive_"+g).addClass("bwg_slideshow_dots_active_"+g),jQuery(".bwg_slide_bg_"+g).css("perspective",1e3)):(gallery_box_data.bwg_trans_in_progress=!0,jQuery(".bwg_filmstrip_thumbnail").removeClass("bwg_thumb_active").addClass("bwg_thumb_deactive"),jQuery("#bwg_filmstrip_thumbnail_"+gallery_box_data.bwg_current_key).removeClass("bwg_thumb_deactive").addClass("bwg_thumb_active"),jQuery(".bwg_slide_bg").css("perspective",1e3)),jQuery(s).css({transform:"translateZ("+e+"px)",backfaceVisibility:"hidden"}),jQuery(l).css({opacity:1,filter:"Alpha(opacity=100)",backfaceVisibility:"hidden",transform:"translateY("+i+"px) translateX("+t+"px) rotateY("+r+"deg) rotateX("+a+"deg)"}),jQuery(".bwg_slider"+c).css({transform:"translateZ(-"+e+"px)",transformStyle:"preserve-3d"}),setTimeout(function(){jQuery(".bwg_slider"+c).css({transition:"all "+u+"ms ease-in-out",transform:"translateZ(-"+e+"px) rotateX("+_+"deg) rotateY("+o+"deg)"})},20),jQuery(".bwg_slider"+c).one("webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend",jQuery.proxy(h)),0==u&&h()}function bwg_fade(e,t,i,a){var r,_=!1;function o(){jQuery(".bwg_image_info").show(),bwg_change_watermark_container(a),_?bwg_params[a].bwg_trans_in_progress=!1:gallery_box_data.bwg_trans_in_progress=!1}r=void 0!==a&&""!==a?(_=!0,bwg_params[a].bwg_trans_in_progress=!0,bwg_params[a].bwg_transition_duration):(gallery_box_data.bwg_trans_in_progress=!0,gallery_box_data.bwg_transition_duration),_?(jQuery(".bwg_slideshow_filmstrip_thumbnail_"+a).removeClass("bwg_slideshow_thumb_active_"+a).addClass("bwg_slideshow_thumb_deactive_"+a),jQuery("#bwg_filmstrip_thumbnail_"+bwg_params[a].bwg_current_key+"_"+a).removeClass("bwg_slideshow_thumb_deactive_"+a).addClass("bwg_slideshow_thumb_active_"+a),jQuery(".bwg_slideshow_dots_"+a).removeClass("bwg_slideshow_dots_active_"+a).addClass("bwg_slideshow_dots_deactive_"+a),jQuery("#bwg_dots_"+bwg_params[a].bwg_current_key+"_"+a).removeClass("bwg_slideshow_dots_deactive_"+a).addClass("bwg_slideshow_dots_active_"+a)):(jQuery(".bwg_filmstrip_thumbnail").removeClass("bwg_thumb_active").addClass("bwg_thumb_deactive"),jQuery("#bwg_filmstrip_thumbnail_"+gallery_box_data.bwg_current_key).removeClass("bwg_thumb_deactive").addClass("bwg_thumb_active")),bwg_testBrowser_cssTransitions()?(jQuery(t).css("transition","opacity "+r+"ms linear"),jQuery(e).css({opacity:0,"z-index":1}),jQuery(t).css({opacity:1,"z-index":2}),jQuery(t).one("webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend",jQuery.proxy(o))):(jQuery(e).animate({opacity:0,"z-index":1},r),jQuery(t).animate({opacity:1,"z-index":2},{duration:r,complete:function(){_?bwg_params[a].bwg_trans_in_progress=!1:gallery_box_data.bwg_trans_in_progress=!1,jQuery(e).html(""),o()}}),jQuery(e).fadeTo(r,0),jQuery(t).fadeTo(r,1)),0==r&&o()}function bwg_change_watermark_container(t){jQuery(".bwg_slider"+(void 0!==t&&""!==t?"_"+t:"")).children().each(function(){if(2==jQuery(this).css("zIndex")){var e=jQuery(this).find("img");if(e.length)if(e.prop("complete"))bwg_change_each_watermark_container(e.width(),e.height(),t);else e.on("load",function(){bwg_change_each_watermark_container(e.width(),e.height(),t)});else(e=jQuery(this).find("iframe")).length||(e=jQuery(this).find("video")),bwg_change_each_watermark_container(e.width(),e.height(),t)}})}function bwg_change_each_watermark_container(e,t,i){var a=void 0!==i&&""!==i?"_"+i:"",r=void 0!==i&&""!==i?"_slideshow":"";if(jQuery(".bwg"+r+"_watermark_spun"+a).width(e),jQuery(".bwg"+r+"_watermark_spun"+a).height(t),jQuery(".bwg"+r+"_watermark"+a).css({display:""}),void 0===i||""===i){var _=0;(jQuery(".bwg_comment_container").hasClass("bwg_open")||jQuery(".bwg_ecommerce_container").hasClass("bwg_open"))&&(_=gallery_box_data.lightbox_comment_width),e<=jQuery(window).width()-_&&(jQuery(".bwg_watermark_image").css({width:(jQuery(".spider_popup_wrap").width()-_)*gallery_box_data.watermark_font_size/gallery_box_data.image_width}),jQuery(".bwg_watermark_text, .bwg_watermark_text:hover").css({fontSize:(jQuery(".spider_popup_wrap").width()-_)*gallery_box_data.watermark_font_size/gallery_box_data.image_width}))}else jQuery(".bwg"+r+"_title_spun"+a).width(e),jQuery(".bwg"+r+"_title_spun"+a).height(t),jQuery(".bwg"+r+"_description_spun"+a).width(e),jQuery(".bwg"+r+"_description_spun"+a).height(t);jQuery.trim(jQuery(".bwg"+r+"_title_text"+a).text())&&jQuery(".bwg_slideshow_title_text"+a).css({display:""}),jQuery.trim(jQuery(".bwg"+r+"_description_text"+a).text())&&jQuery(".bwg"+r+"_description_text"+a).css({display:""})}function bwg_set_filmstrip_pos(e,t,i){var a,r=void 0!==t&&""!==t?"_"+t:"",_=void 0!==t&&""!==t?"_slideshow":"";a=void 0!==t&&""!==t?bwg_params[t].left_or_top:gallery_box_data.left_or_top;var o=parseInt(jQuery(".bwg_filmstrip_thumbnails").attr("data-all-images-top-bottom-space")),s=parseInt(jQuery(".bwg_filmstrip_thumbnails").attr("data-all-images-right-left-space"));if(void 0===t||""===t){if("outerWidth"==gallery_box_data.outerWidth_or_outerHeight)var l=-bwg_current_filmstrip_pos-jQuery(".bwg_filmstrip_thumbnail").outerWidth(!0)/2;else if("outerHeight"==gallery_box_data.outerWidth_or_outerHeight)l=-bwg_current_filmstrip_pos-jQuery(".bwg_filmstrip_thumbnail").outerHeight(!0)/2;if("width"==gallery_box_data.width_or_height)var n=Math.min(0,Math.max(e-jQuery(".bwg_filmstrip_thumbnails").width(),l+e/2));else if("height"==gallery_box_data.width_or_height)n=Math.min(0,Math.max(e-jQuery(".bwg_filmstrip_thumbnails").height(),l+e/2))}else if("width"==bwg_params[t].width_or_height)l=-bwg_params[t].bwg_current_filmstrip_pos-(jQuery(".bwg_slideshow_filmstrip_thumbnail"+r).width()+bwg_params[t].filmstrip_thumb_margin_hor)/2,n=Math.min(0,Math.max(e-jQuery(".bwg_slideshow_filmstrip_thumbnails"+r).width(),l+e/2));else l=-bwg_params[t].bwg_current_filmstrip_pos-(jQuery(".bwg_slideshow_filmstrip_thumbnail"+r).height()+bwg_params[t].filmstrip_thumb_margin_hor)/2,n=Math.min(0,Math.max(e-jQuery(".bwg_slideshow_filmstrip_thumbnails"+r).height(),l+e/2));0<n+s&&(s=0),0<n+o&&(o=0),"left"==a?jQuery(".bwg"+_+"_filmstrip_thumbnails"+r).animate({left:n+s},{duration:500,complete:function(){bwg_filmstrip_arrows(t)}}):jQuery(".bwg"+_+"_filmstrip_thumbnails"+r).animate({top:n+o},{duration:500,complete:function(){bwg_filmstrip_arrows(t)}})}function bwg_filmstrip_arrows(e){var t=void 0!==e&&""!==e?"_"+e:"",i=void 0!==e&&""!==e?"_slideshow":"";if("width"==(void 0!==e&&""!==e?bwg_params[e].width_or_heigh:gallery_box_data.width_or_height))var a=jQuery(".bwg"+i+"_filmstrip_thumbnails"+t).width(),r=jQuery(".bwg"+i+"_filmstrip"+t).width();else a=jQuery(".bwg"+i+"_filmstrip_thumbnails"+t).height(),r=jQuery(".bwg"+i+"_filmstrip"+t).height();a<r?(jQuery(".bwg"+i+"_filmstrip_left"+t).hide(),jQuery(".bwg"+i+"_filmstrip_right"+t).hide()):(jQuery(".bwg"+i+"_filmstrip_left"+t).show(),jQuery(".bwg"+i+"_filmstrip_right"+t).show())}function bwg_move_filmstrip(e){var t,i,a,r,_,o,s=void 0!==e&&""!==e?"_"+e:"",l=void 0!==e&&""!==e?"_slideshow":"",n=void 0!==e&&""!==e?bwg_params[e].outerWidth_or_outerHeight:gallery_box_data.outerWidth_or_outerHeight,g=void 0!==e&&""!==e?bwg_params[e].left_or_top:gallery_box_data.left_or_top;i="outerWidth"==n?(t=jQuery(".bwg"+l+"_filmstrip"+s).outerWidth(!0),jQuery(".bwg"+l+"_filmstrip_thumbnails"+s).outerWidth(!0)):(t=jQuery(".bwg"+l+"_filmstrip"+s).outerHeight(!0),jQuery(".bwg"+l+"_filmstrip_thumbnails"+s).outerHeight(!0)),o="left"==g?(a=jQuery(".bwg"+l+"_thumb_active"+s).position().left,r="outerWidth"==n?jQuery(".bwg"+l+"_thumb_active"+s).position().left+jQuery(".bwg"+l+"_thumb_active"+s).outerWidth(!0):jQuery(".bwg"+l+"_thumb_active"+s).position().left+jQuery(".bwg"+l+"_thumb_active"+s).outerHeight(!0),_=jQuery(".bwg"+l+"_filmstrip_thumbnails"+s).position().left,Math.abs(jQuery(".bwg"+l+"_filmstrip_thumbnails"+s).position().left)+t):(a=jQuery(".bwg"+l+"_thumb_active"+s).position().top,r="outerWidth"==n?jQuery(".bwg"+l+"_thumb_active"+s).position().top+jQuery(".bwg"+l+"_thumb_active"+s).outerWidth(!0):jQuery(".bwg"+l+"_thumb_active"+s).position().top+jQuery(".bwg"+l+"_thumb_active"+s).outerHeight(!0),_=jQuery(".bwg"+l+"_filmstrip_thumbnails"+s).position().top,Math.abs(jQuery(".bwg"+l+"_filmstrip_thumbnails"+s).position().top)+t),i<t||(a<Math.abs(_)?"left"==g?jQuery(".bwg"+l+"_filmstrip_thumbnails"+s).animate({left:-a},{duration:500,complete:function(){bwg_filmstrip_arrows(e)}}):jQuery(".bwg"+l+"_filmstrip_thumbnails"+s).animate({top:-a},{duration:500,complete:function(){bwg_filmstrip_arrows(e)}}):o<r&&("left"==g?jQuery(".bwg"+l+"_filmstrip_thumbnails"+s).animate({left:-(r-t)},{duration:500,complete:function(){bwg_filmstrip_arrows(e)}}):jQuery(".bwg"+l+"_filmstrip_thumbnails"+s).animate({top:-(r-t)},{duration:500,complete:function(){bwg_filmstrip_arrows(e)}})))}function bwg_move_dots(e){var t=jQuery(".bwg_slideshow_dots_active_"+e).position().left,i=jQuery(".bwg_slideshow_dots_active_"+e).position().left+jQuery(".bwg_slideshow_dots_active_"+e).outerWidth(!0),a=jQuery(".bwg_slideshow_dots_container_"+e).outerWidth(!0),r=jQuery(".bwg_slideshow_dots_thumbnails_"+e).outerWidth(!1),_=jQuery(".bwg_slideshow_dots_thumbnails_"+e).position().left,o=Math.abs(jQuery(".bwg_slideshow_dots_thumbnails_"+e).position().left)+a;r<a||(t<Math.abs(_)?jQuery(".bwg_slideshow_dots_thumbnails_"+e).animate({left:-t},{duration:500,complete:function(){}}):o<i&&jQuery(".bwg_slideshow_dots_thumbnails_"+e).animate({left:-(i-a)},{duration:500,complete:function(){}}))}function bwg_testBrowser_cssTransitions(e){return bwg_testDom("Transition",e)}function bwg_testBrowser_cssTransforms3d(e){return bwg_testDom("Perspective",e)}function bwg_testDom(e,t){for(var i=["","Webkit","Moz","ms","O","Khtml"],a=i.length;a--;)if(void 0!==document.body.style[i[a]+e])return!0;return!1}function bwg_fallback(e,t,i,a){bwg_fade(e,t,i,a)}function bwg_fallback3d(e,t,i,a){bwg_sliceV(e,t,i,a)}function bwg_none(e,t,i,a){var r=void 0!==a&&""!==a?"_"+a:"";if(jQuery(e).css({opacity:0,"z-index":1}),jQuery(t).css({opacity:1,"z-index":2}),void 0!==a&&""!==a){var _=bwg_params[a].bwg_current_key;bwg_change_watermark_container(a),jQuery(".bwg_slideshow_filmstrip_thumbnail"+r).removeClass("bwg_slideshow_thumb_active"+r).addClass("bwg_slideshow_thumb_deactive"+r),jQuery("#bwg_filmstrip_thumbnail_"+_+r).removeClass("bwg_slideshow_thumb_deactive"+r).addClass("bwg_slideshow_thumb_active"+r),jQuery(".bwg_slideshow_dots"+r).removeClass("bwg_slideshow_dots_active"+r).addClass("bwg_slideshow_dots_deactive"+r),jQuery("#bwg_dots_"+_+r).removeClass("bwg_slideshow_dots_deactive"+r).addClass("bwg_slideshow_dots_active"+r)}else jQuery(".bwg_image_info").show(),gallery_box_data.bwg_trans_in_progress=!1,jQuery(e).html(""),bwg_change_watermark_container()}function bwg_iterator(e){var t=1;return void 0!==e&&""!==e&&void 0!==bwg_params[e]&&1==bwg_params[e].enable_slideshow_shuffle&&(t=Math.floor((bwg_params[e].data.length-1)*Math.random()+1)),t}function bwg_change_image_slideshow(e,t,i,a,r){i=bwg_params[r].data;if(jQuery("#bwg_slideshow_image_container_"+r).find("iframe").each(function(){jQuery(this)[0].contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*"),jQuery(this)[0].contentWindow.postMessage('{ "method": "pause" }',"*"),jQuery(this)[0].contentWindow.postMessage("pause","*")}),jQuery("#image_id_"+r+"_"+i[e].id).find(".bwg_fb_video").each(function(){jQuery(this).attr("src",jQuery(this).attr("src"))}),i[t]){if(jQuery(".bwg_ctrl_btn_"+r).hasClass("bwg-icon-pause")&&bwg_play(bwg_params[r].data,r),a||(jQuery("#bwg_current_image_key_"+r).val(t),"-1"==e?e=jQuery(".bwg_slideshow_thumb_active_"+r).children("img").attr("image_key"):"-2"==e&&(e=jQuery(".bwg_slideshow_dots_active_"+r).attr("image_key"))),bwg_params[r].bwg_trans_in_progress)return void bwg_params[r].event_stack.push(e+"-"+t);var _="right";if(t<e)_="left";else if(e==t)return;jQuery(".bwg_slideshow_watermark_"+r).css({display:"none"}),jQuery(".bwg_slideshow_title_text_"+r).css({display:"none"}),jQuery(".bwg_slideshow_description_text_"+r).css({display:"none"}),"width"==bwg_params[r].width_or_height?bwg_params[r].bwg_current_filmstrip_pos=t*(jQuery(".bwg_slideshow_filmstrip_thumbnail_"+r).width()+2+2*bwg_params[r].lightbox_filmstrip_thumb_border_width):bwg_params[r].bwg_current_filmstrip_pos=t*(jQuery(".bwg_slideshow_filmstrip_thumbnail_"+r).height()+2+2*bwg_params[r].lightbox_filmstrip_thumb_border_width),e=t,bwg_params[r].bwg_current_key=e,jQuery("#bwg_slideshow_image_"+r).attr("image_id",i[t].id),jQuery(".bwg_slideshow_title_text_"+r).html(jQuery('<span style="display: block;" />').html(i[t].alt).text()),jQuery(".bwg_slideshow_description_text_"+r).html(jQuery('<span style="display: block;" />').html(i[t].description).text());var o=2==jQuery(".bwg_slideshow_image_spun_"+r).css("zIndex")?".bwg_slideshow_image_spun_"+r:".bwg_slideshow_image_second_spun_"+r,s=o==".bwg_slideshow_image_second_spun_"+r?".bwg_slideshow_image_spun_"+r:".bwg_slideshow_image_second_spun_"+r,l=-1<i[t].filetype.indexOf("EMBED_"),n=-1<i[t].filetype.indexOf("INSTAGRAM_POST"),g=-1<i[t].filetype.indexOf("INSTAGRAM_VIDEO"),u=jQuery(o).height(),d=jQuery(o).width(),c='<span class="bwg_slideshow_image_spun1_'+r+'" style="display: '+(l?"block":"table")+' ;width: inherit; height: inherit;"><span class="bwg_slideshow_image_spun2_'+r+'" style="display: '+(l?"block":"table-cell")+'; vertical-align: middle; text-align: center; ">';if(l){if(c+='<span style="height: '+u+"px; width: "+d+'px;" class="bwg_popup_embed bwg_popup_watermark">',g&&(c+='<span class="bwg_inst_play_btn_cont" onclick="bwg_play_instagram_video(this)"><span class="bwg_inst_play"></span></span>'),n){var h=0,b=0;u<d+88?h=(b=u)-88:b=(h=d)+88,c+=spider_display_embed(i[t].filetype,i[t].image_url,i[t].filename,{class:"bwg_embed_frame","data-width":i[t].image_width,"data-height":i[t].image_height,frameborder:"0",allowfullscreen:"allowfullscreen",style:"width:"+h+"px; height:"+b+"px; vertical-align:middle; display:inline-block; position:relative;"})}else c+=spider_display_embed(i[t].filetype,i[t].image_url,i[t].filename,{class:"bwg_embed_frame",frameborder:"0",allowfullscreen:"allowfullscreen",style:"width:inherit; height:inherit; vertical-align:middle; display:table-cell;"});c+="</span>"}else{if("do_nothing"!=bwg_params[r].thumb_click_action){var p="";"open_lightbox"==bwg_params[r].thumb_click_action?p+=' class="bwg_lightbox" data-image-id="'+i[t].id+'"':"redirect_to_url"==bwg_params[r].thumb_click_action&&i[t].redirect_url&&(p+='href="'+i[t].redirect_url+'"'+(bwg_params[r].thumb_link_target&&1==bwg_params[r].thumb_link_target?' target="_blank"':"")),c+="<a "+p+">"}c+='<img style="max-height: '+u+"px !important; max-width: "+d+'px !important; display:inline-block;" ',c+=' class="bwg_slide bwg_slideshow_image_'+r+'" ',c+=' id="bwg_slideshow_image_'+r+'" ',c+=' src="'+bwg_params[r].upload_url+jQuery("<span style='display: block;' />").html(i[t].image_url).text()+'" alt="'+i[t].alt+'" image_id="'+i[t].id+'" /></a>'}c+="</span></span>",jQuery(s).html(c),bwg_params[r].preload_images&&bwg_preload_images(t,r),window["bwg_"+bwg_params[r].slideshow_effect](o,s,_,r),0<bwg_params[r].enable_slideshow_filmstrip?bwg_move_filmstrip(r):bwg_move_dots(r),i[t].is_embed_video?jQuery("#bwg_slideshow_play_pause_"+r).css({display:"none"}):jQuery("#bwg_slideshow_play_pause_"+r).css({display:""})}bwg_add_lightbox()}function bwg_preload_images_slideshow(e,t){var i=bwg_params[t].data;count=bwg_params[t].preload_images_count/2;var a=i.length;if(a<bwg_params[t].preload_images_count&&(count=0),0!=count)for(var r=e-count;r<e+count;r++){var _=parseInt((r+a)%a),o=-1<i[_].filetype.indexOf("EMBED_");void 0!==i[_]&&(o||jQuery("<img/>").attr("src",bwg_params[t].upload_url+jQuery('<span style="display: block;" />').html(i[_].image_url).text()))}else for(r=0;r<i.length;r++){o=-1<i[r].filetype.indexOf("EMBED_");void 0!==i[r]&&(o||jQuery("<img/>").attr("src",bwg_params[t].upload_url+jQuery('<span style="display: block;" />').html(i[r].image_url).text()))}}function bwg_preload_images(e,t){void 0!==t&&""!==t?bwg_preload_images_slideshow(e,t):bwg_preload_images_lightbox(e)}function bwg_popup_resize_slidshow(e){var t=jQuery(".bwg_slideshow_image_wrap_"+e).parent().width(),i=bwg_params[e].data;if(t>=bwg_params[e].image_width){jQuery(".bwg_slideshow_image_wrap_"+e).css({width:bwg_params[e].image_width}),jQuery(".bwg_slideshow_image_wrap_"+e).css({height:bwg_params[e].image_height}),jQuery(".bwg_slideshow_image_container_"+e).css({width:"horizontal"==bwg_params[e].filmstrip_direction?bwg_params[e].image_width:bwg_params[e].image_width-bwg_params[e].slideshow_filmstrip_width}),jQuery(".bwg_slideshow_image_container_"+e).css({height:"horizontal"==bwg_params[e].filmstrip_direction?bwg_params[e].image_height-bwg_params[e].slideshow_filmstrip_height:bwg_params[e].image_height}),jQuery(".bwg_slideshow_image_"+e).css({cssText:(bwg_params[e].filmstrip_direction,bwg_params[e].image_width)}),jQuery(".bwg_slideshow_embed_"+e).css({cssText:(bwg_params[e].filmstrip_direction,bwg_params[e].image_width)}),bwg_resize_instagram_post(e),bwg_change_watermark_container(e);var a="horizontal"==bwg_params[e].filmstrip_direction?"width: "+bwg_params[e].image_width:"height: "+bwg_params[e].image_height,r="horizontal"==bwg_params[e].filmstrip_direction?"width: "+(bwg_params[e].image_width-40):"height: "+(bwg_params[e].image_height-40);jQuery(".bwg_slideshow_filmstrip_container_"+e).css({cssText:a}),jQuery(".bwg_slideshow_filmstrip_"+e).css({cssText:r}),jQuery(".bwg_slideshow_dots_container_"+e).css({width:bwg_params[e].image_width}),jQuery("#bwg_slideshow_play_pause-ico_"+e).css({fontSize:bwg_params[e].slideshow_play_pause_btn_size}),"image"==bwg_params[e].watermark_type&&jQuery(".bwg_slideshow_watermark_image_"+e).css({maxWidth:bwg_params[e].watermark_width,maxHeight:bwg_params[e].watermark_height}),"text"==bwg_params[e].watermark_type&&jQuery(".bwg_slideshow_watermark_text_"+e+", .bwg_slideshow_watermark_text_"+e+" : hover").css({fontSize:bwg_params[e].watermark_font_size}),jQuery(".bwg_slideshow_title_text_"+e).css({fontSize:2*bwg_params[e].slideshow_title_font_size}),jQuery(".bwg_slideshow_description_text_"+e).css({fontSize:2*bwg_params[e].slideshow_description_font_size})}else jQuery(".bwg_slideshow_image_wrap_"+e).css({width:t}),jQuery(".bwg_slideshow_image_wrap_"+e).css({height:t*bwg_params[e].image_height/bwg_params[e].image_width}),jQuery(".bwg_slideshow_image_container_"+e).css({width:t-("horizontal"==bwg_params[e].filmstrip_direction?0:bwg_params[e].slideshow_filmstrip_width)}),jQuery(".bwg_slideshow_image_container_"+e).css({height:t*bwg_params[e].image_height/bwg_params[e].image_width-("horizontal"==bwg_params[e].filmstrip_direction?bwg_params[e].slideshow_filmstrip_height:0)}),jQuery(".bwg_slideshow_image_"+e).css({cssText:"max-width: "+(t-("horizontal"==bwg_params[e].filmstrip_direction?0:bwg_params[e].slideshow_filmstrip_width))+"px !important; max-height: "+(t*(bwg_params[e].image_height/bwg_params[e].image_width)-("horizontal"==bwg_params[e].filmstrip_direction?bwg_params[e].slideshow_filmstrip_height:0)-1)+"px !important;"}),jQuery(".bwg_slideshow_embed_"+e).css({cssText:"width: "+(t-("horizontal"==bwg_params[e].filmstrip_direction?0:bwg_params[e].slideshow_filmstrip_width))+"px !important; height: "+(t*(bwg_params[e].image_height/bwg_params[e].image_width)-("horizontal"==bwg_params[e].filmstrip_direction?bwg_params[e].slideshow_filmstrip_height:0)-1)+"px !important;"}),bwg_resize_instagram_post(e),bwg_change_watermark_container(e),"horizontal"==bwg_params[e].filmstrip_direction?(jQuery(".bwg_slideshow_filmstrip_container_"+e).css({width:t}),jQuery(".bwg_slideshow_filmstrip_"+e).css({width:t-40})):(jQuery(".bwg_slideshow_filmstrip_container_"+e).css({height:t*bwg_params[e].image_height/bwg_params[e].image_width}),jQuery(".bwg_slideshow_filmstrip_"+e).css({height:t*bwg_params[e].image_height/bwg_params[e].image_width-40})),jQuery(".bwg_slideshow_dots_container_"+e).css({width:t}),jQuery("#bwg_slideshow_play_pause-ico_"+e).css({fontSize:t*bwg_params[e].slideshow_play_pause_btn_size/bwg_params[e].image_width}),jQuery(".bwg_slideshow_watermark_image_"+e).css({maxWidth:t*bwg_params[e].watermark_width/bwg_params[e].image_width,maxHeight:t*bwg_params[e].watermark_height/bwg_params[e].image_width}),jQuery(".bwg_slideshow_watermark_text_"+e+", .bwg_slideshow_watermark_text_"+e+":hover").css({fontSize:t*bwg_params[e].watermark_font_size/bwg_params[e].image_width}),jQuery(".bwg_slideshow_title_text_"+e).css({fontSize:2*t*bwg_params[e].slideshow_title_font_size/bwg_params[e].image_width}),jQuery(".bwg_slideshow_description_text_"+e).css({fontSize:2*t*bwg_params[e].slideshow_description_font_size/bwg_params[e].image_width}),jQuery(".bwg_slideshow_image_"+e).css({display:"inline-block"});i[parseInt(jQuery("#bwg_current_image_key_"+e).val())].is_embed_video?jQuery("#bwg_slideshow_play_pause_"+e).css({display:"none"}):jQuery("#bwg_slideshow_play_pause_"+e).css({display:""})}function bwg_popup_resize(e){void 0!==e&&""!==e?bwg_popup_resize_slidshow(e):bwg_popup_resize_lightbox()}function bwg_change_image(e,t,i,a,r){void 0!==r&&""!==r?bwg_change_image_slideshow(e,t,i,a,r):bwg_change_image_lightbox(e,t,i=gallery_box_data.data,a)}function bwg_resize_instagram_post(e){if(void 0!==e&&""!==e){if(jQuery(".inner_instagram_iframe_bwg_embed_frame_"+e).length){var t=jQuery(".bwg_slideshow_embed_"+e).width(),i=jQuery(".bwg_slideshow_embed_").height();jQuery(".inner_instagram_iframe_bwg_embed_frame_"+e).each(function(){var e=jQuery(this).parent();i/(parseInt(e.attr("data-height"))+96)<t/parseInt(e.attr("data-width"))?(e.height(i),e.width((e.height()-96)*e.attr("data-width")/e.attr("data-height")+16)):(e.width(t),e.height((e.width()-16)*e.attr("data-height")/e.attr("data-width")+96))}),bwg_change_watermark_container(e)}}else if(jQuery(".inner_instagram_iframe_bwg_embed_frame").length){t=jQuery(".bwg_image_container").width(),i=jQuery(".bwg_image_container").height();jQuery(".inner_instagram_iframe_bwg_embed_frame").each(function(){var e=jQuery(this).parent();i/(parseInt(e.attr("data-height"))+176)<t/parseInt(e.attr("data-width"))?(e.height(i),e.width((e.height()-176)*e.attr("data-width")/e.attr("data-height")+16)):(e.width(t),e.height((e.width()-16)*e.attr("data-height")/e.attr("data-width")+96)),e.css({top:.5*(i-e.height())})}),bwg_change_watermark_container()}}function bwg_play(t,i){if(void 0!==i&&""!==i)t=bwg_params[i].data;void 0!==i&&""!==i?(window.clearInterval(window["bwg_playInterval"+i]),window["bwg_playInterval"+i]=setInterval(function(){var e=1;1==bwg_params[i].enable_slideshow_shuffle&&(e=Math.floor((t.length-1)*Math.random()+1)),bwg_change_image(parseInt(jQuery("#bwg_current_image_key_"+i).val()),(parseInt(jQuery("#bwg_current_image_key_"+i).val())+e)%t.length,t,"",i)},1e3*bwg_params[i].slideshow_interval)):(window.clearInterval(gallery_box_data.bwg_playInterval),gallery_box_data.bwg_playInterval=setInterval(function(){jQuery(".bwg_comment_container").hasClass("bwg_open")||jQuery(".bwg_play_pause").length&&jQuery(".bwg_play_pause").hasClass("bwg-icon-play")||(void 0===t||void 0!==t[parseInt(jQuery("#bwg_current_image_key").val())+1]?bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),parseInt(jQuery("#bwg_current_image_key").val())+1):1==gallery_box_data.enable_loop&&bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),0))},1e3*gallery_box_data.slideshow_interval))}function bwg_image_browser(e){if(jQuery("#bwg_embed_frame_16x9_"+e).width(jQuery("#bwg_embed_frame_16x9_"+e).parents(".image_browser_image_buttons_"+e).width()),jQuery("#bwg_embed_frame_16x9_"+e).height(.5625*jQuery("#bwg_embed_frame_16x9_"+e).width()),jQuery("#bwg_embed_frame_instapost_"+e).width(jQuery("#bwg_embed_frame_16x9_"+e).parents(".image_browser_image_buttons_"+e).width()),jQuery(".image_browser_images_conteiner_"+e).find(".fluid-width-video-wrapper").length){var t=jQuery(".image_browser_images_conteiner_"+e).find(".fluid-width-video-wrapper").contents();jQuery(".image_browser_images_conteiner_"+e).find(".fluid-width-video-wrapper").replaceWith(t)}jQuery(".bwg_embed_frame_instapost_"+e).height((jQuery(".bwg_embed_frame_instapost_"+e).width()-16)*jQuery(".bwg_embed_frame_instapost_"+e).attr("data-height")/jQuery(".bwg_embed_frame_instapost_"+e).attr("data-width")+96);var i=jQuery(".image_browser_images_"+e).width();i<=108?jQuery(".paging-input_"+e).css("display","none"):(i<=200?(jQuery(".paging-input_"+e).css("margin","0% 0% 0% 0%"),jQuery(".paging-input_"+e).css("display","inline")):i<=580?(jQuery(".paging-input_"+e).css("display","inline"),jQuery(".tablenav-pages_"+e+" a").css("font-size","13px"),jQuery(".paging-input_"+e).css("margin","0% 7% 0% 7%")):(jQuery(".tablenav-pages_"+e+" a").css("font-size","15px"),jQuery(".paging-input_"+e).css("margin","0% 14% 0% 14%"),jQuery(".paging-input_"+e).css("display","inline")),jQuery(".tablenav-pages_"+e+" .next-page").css("margin","0% 0% 0% 0%"),jQuery(".tablenav-pages_"+e+" .prev-page").css("margin","0% 0% 0% 0%"))}function bwg_disable_right_click(e){e.bind("contextmenu",function(){return!1}),e.css("webkitTouchCallout","none")}jQuery.fn.extend({hideShow:function(e){return this.checkForVisiblilityChange(e),this},checkForVisiblilityChange:function(e){if(this.length>>>0){for(var t,i,a,r=0;t=this[r++];){var _=jQuery(t).is(":visible");void 0===t.lastVisibility&&(t.lastVisibility=_),_!==t.lastVisibility&&(t.lastVisibility=_,"function"==typeof e&&e.apply(this,[new jQuery.Event("visibilityChanged"),_?"shown":"hidden"]),function(e,t){setTimeout(function(){jQuery(e).trigger("visibilityChanged",[t?"shown":"hidden"])},10)}(t,_))}i=this,a=arguments,setTimeout(function(){i.checkForVisiblilityChange.apply(i,a)},10)}}}),jQuery(document).ajaxComplete(function(){setTimeout(function(){bwg_main_ready()})}),jQuery(document).ready(function(){document.addEventListener("visibilitychange",function(){var e=!1;jQuery(".bwg_container").each(function(){0<jQuery(this).find(".wd_error").length&&(e=!0)}),e||("visible"==document.visibilityState&&bwg_slideshow_focus(),"hidden"==document.visibilityState&&bwg_slideshow_blur())}),bwg_main_ready(),jQuery(this).hideShow(function(e,t){"shown"==t&&bwg_main_ready()})}),jQuery(window).on("resize",function(){var e=!1;jQuery(".bwg_container").each(function(){0<jQuery(this).find(".wd_error").length&&(e=!0)}),e||(jQuery(".bwg-thumbnails, .bwg-masonry-thumbnails, .bwg-album-thumbnails").each(function(){bwg_all_thumnails_loaded(this)}),bwg_slideshow_resize(),bwg_image_browser_resize(),bwg_carousel_resize(),bwg_blog_style_resize(),jQuery(".bwg-mosaic-thumbnails").each(function(){bwg_thumbnail_mosaic(this)})),bwg_resize_search_line()}),jQuery(window).on("load",function(){var e=!1;jQuery(".bwg_container").each(function(){0<jQuery(this).find(".wd_error").length&&(e=!0)}),e||(bwg_blog_style_onload(),jQuery(".bwg-mosaic-thumbnails").each(function(){bwg_thumbnail_mosaic(this)}))}),jQuery(".bwg-masonry-thumb-span img, .bwg-mosaic-thumb-span img").on("error",function(){jQuery(this).height(100),jQuery(this).width(100)});
|
1 |
+
var bwg_current_filmstrip_pos,total_thumbnail_count,key,startPoint,endPoint,bwg_image_info_pos,filmstrip_width,preloadCount,filmstrip_thumbnail_width,filmstrip_thumbnail_height,addthis_share,lightbox_comment_pos,bwg_transition_duration,bwg_playInterval,isPopUpOpened=!1,bwg_overflow_initial_value=!1,bwg_overflow_x_initial_value=!1,bwg_overflow_y_initial_value=!1;function gallery_box_ready(){filmstrip_thumbnail_width=jQuery(".bwg_filmstrip_thumbnail").width(),filmstrip_thumbnail_height=jQuery(".bwg_filmstrip_thumbnail").height(),1==gallery_box_data.open_with_fullscreen?(filmstrip_width=jQuery(window).width(),filmstrip_height=jQuery(window).height()):(filmstrip_width=jQuery(".bwg_filmstrip_container").width(),filmstrip_height=jQuery(".bwg_filmstrip_container").height()),preloadCount="horizontal"==gallery_box_data.filmstrip_direction?parseInt(filmstrip_width/filmstrip_thumbnail_width)+gallery_box_data.preload_images_count:parseInt(filmstrip_height/filmstrip_thumbnail_height)+gallery_box_data.preload_images_count,total_thumbnail_count=jQuery(".bwg_filmstrip_thumbnail").length,key=parseInt(jQuery("#bwg_current_image_key").val()),startPoint=0,endPoint=key+preloadCount,jQuery(document).ready(function(){bwg_load_visible_images(key,preloadCount,total_thumbnail_count),jQuery(".pge_tabs li a").on("click",function(){return jQuery(".pge_tabs_container > div").hide(),jQuery(".pge_tabs li").removeClass("pge_active"),jQuery(jQuery(this).attr("href")).show(),jQuery(this).closest("li").addClass("pge_active"),jQuery("[name=type]").val(jQuery(this).attr("href").substr(1)),!1});var e=jQuery("#bwg_rated").attr("data-params");bwg_rating((e=JSON.parse(e)).current_rate,e.current_rate_count,e.current_avg_rating,e.current_image_key)}),1==gallery_box_data.is_pro&&1==gallery_box_data.enable_addthis&&gallery_box_data.addthis_profile_id&&(addthis_share={url:gallery_box_data.share_url}),lightbox_comment_pos=gallery_box_data.lightbox_comment_pos,bwg_image_info_pos=jQuery(".bwg_ctrl_btn_container").length?jQuery(".bwg_ctrl_btn_container").height():0,jQuery(".bwg_image_info").css("height","auto"),jQuery(".bwg_image_info").hide(),setTimeout(function(){jQuery(".bwg_image_info_container1").height()<jQuery(".bwg_image_info").height()+jQuery(".bwg_toggle_container").height()+bwg_image_info_pos+2*parseInt(gallery_box_data.lightbox_info_margin)&&("top"==gallery_box_data.lightbox_ctrl_btn_pos&&jQuery(".bwg_image_info").css("top",bwg_image_info_pos+"px"),jQuery(".bwg_image_info").css({height:jQuery(".bwg_image_info_container1").height()-jQuery(".bwg_toggle_container").height()-bwg_image_info_pos-2*parseInt(gallery_box_data.lightbox_info_margin)})),jQuery(".bwg_image_info").show()},300),bwg_transition_duration=gallery_box_data.slideshow_interval<4*gallery_box_data.slideshow_effect_duration&&0!=gallery_box_data.slideshow_interval?1e3*gallery_box_data.slideshow_interval/4:1e3*gallery_box_data.slideshow_effect_duration,gallery_box_data.bwg_transition_duration=bwg_transition_duration,gallery_box_data.bwg_trans_in_progress=!1,(jQuery("#spider_popup_wrap").width()>=jQuery(window).width()||jQuery("#spider_popup_wrap").height()>=jQuery(window).height())&&jQuery(".spider_popup_close").attr("class","bwg_ctrl_btn spider_popup_close_fullscreen"),window.clearInterval(bwg_playInterval),bwg_current_filmstrip_pos=gallery_box_data.current_pos,jQuery(document).on("keydown",function(e){jQuery("#bwg_name").is(":focus")||jQuery("#bwg_email").is(":focus")||jQuery("#bwg_comment").is(":focus")||jQuery("#bwg_captcha_input").is(":focus")||(39===e.keyCode?bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),parseInt(jQuery("#bwg_current_image_key").val())+1):37===e.keyCode?bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),parseInt(jQuery("#bwg_current_image_key").val())-1):27===e.keyCode?spider_destroypopup(1e3):32===e.keyCode&&jQuery(".bwg_play_pause").trigger("click"))}),jQuery(window).resize(function(){void 0!==jQuery().fullscreen&&jQuery.isFunction(jQuery().fullscreen)&&(jQuery.fullscreen.isFullScreen()||bwg_popup_resize())});var _=gallery_box_data.image_width,r=gallery_box_data.image_height;if(1==gallery_box_data.is_pro){1==gallery_box_data.enable_addthis&&gallery_box_data.addthis_profile_id&&jQuery(".at4-share-outer").show(),spider_set_input_value("rate_ajax_task","save_hit_count"),spider_rate_ajax_save("bwg_rate_form");var e=gallery_box_data.data,t=gallery_box_data.current_image_key;jQuery(".bwg_image_hits span").html(++e[t].hit_count);var i=window.location.hash;i&&"-1"!=i.indexOf("bwg")||(location.replace("#bwg"+gallery_box_data.gallery_id+"/"+gallery_box_data.current_image_id),history.replaceState(void 0,void 0,"#bwg"+gallery_box_data.gallery_id+"/"+gallery_box_data.current_image_id))}1==gallery_box_data.image_right_click&&(jQuery(".bwg_image_wrap").bind("contextmenu",function(e){return!1}),jQuery(".bwg_image_wrap").css("webkitTouchCallout","none")),jQuery("#spider_popup_wrap").bind("touchmove",function(e){e.preventDefault()}),void 0!==jQuery().swiperight&&jQuery.isFunction(jQuery().swiperight)&&jQuery("#spider_popup_wrap .bwg_image_wrap").swiperight(function(){return bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),(parseInt(jQuery("#bwg_current_image_key").val())+gallery_box_data.data.length-1)%gallery_box_data.data.length),!1}),void 0!==jQuery().swipeleft&&jQuery.isFunction(jQuery().swipeleft)&&jQuery("#spider_popup_wrap .bwg_image_wrap").swipeleft(function(){return bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),(parseInt(jQuery("#bwg_current_image_key").val())+1)%gallery_box_data.data.length),!1}),bwg_reset_zoom();var a=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase())?"touchend":"click";jQuery("#spider_popup_left").on(a,function(){return bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),(parseInt(jQuery("#bwg_current_image_key").val())+gallery_box_data.data.length-1)%gallery_box_data.data.length),!1}),jQuery("#spider_popup_right").on(a,function(){return bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),(parseInt(jQuery("#bwg_current_image_key").val())+1)%gallery_box_data.data.length),!1}),-1!=navigator.appVersion.indexOf("MSIE 10")||-1!=navigator.appVersion.indexOf("MSIE 9")?setTimeout(function(){bwg_popup_resize()},1):bwg_popup_resize(),jQuery(".bwg_watermark").css({display:"none"}),setTimeout(function(){bwg_change_watermark_container()},500),void 0!==jQuery().fullscreen&&jQuery.isFunction(jQuery().fullscreen)&&(jQuery.fullscreen.isNativelySupported()||jQuery(".bwg_fullscreen").hide()),"horizontal"==gallery_box_data.filmstrip_direction?(jQuery(".bwg_image_container").height(jQuery(".bwg_image_wrap").height()-gallery_box_data.image_filmstrip_height),jQuery(".bwg_image_container").width(jQuery(".bwg_image_wrap").width())):(jQuery(".bwg_image_container").height(jQuery(".bwg_image_wrap").height()),jQuery(".bwg_image_container").width(jQuery(".bwg_image_wrap").width()-gallery_box_data.image_filmstrip_width)),void 0!==jQuery().mCustomScrollbar&&jQuery.isFunction(jQuery().mCustomScrollbar)&&jQuery(".bwg_comments,.bwg_ecommerce_panel, .bwg_image_info").mCustomScrollbar({scrollInertia:150,advanced:{updateOnContentResize:!0}});var s=/Firefox/i.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel";jQuery(".bwg_filmstrip").on(s,function(e){var t=window.event||e,i=(t=t.originalEvent?t.originalEvent:t).detail?-40*t.detail:t.wheelDelta,a=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase());0<i?jQuery(".bwg_filmstrip_left").trigger(a?"touchend":"click"):jQuery(".bwg_filmstrip_right").trigger(a?"touchend":"click")}),jQuery(".bwg_filmstrip_right").on(a,function(){jQuery(".bwg_filmstrip_thumbnails").stop(!0,!1),"left"==gallery_box_data.left_or_top?"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_thumbnails").position().left>=-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width())&&(jQuery(".bwg_filmstrip_left").css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_filmstrip_thumbnails").position().left<-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width()-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width+gallery_box_data.all_images_right_left_space))?jQuery(".bwg_filmstrip_thumbnails").animate({left:-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width()-gallery_box_data.all_images_right_left_space)},500,"linear"):jQuery(".bwg_filmstrip_thumbnails").animate({left:jQuery(".bwg_filmstrip_thumbnails").position().left-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width)},500,"linear")),window.setTimeout(function(){jQuery(".bwg_filmstrip_thumbnails").position().left==-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width())&&jQuery(".bwg_filmstrip_right").css({opacity:.3,filter:"Alpha(opacity=30)"})},500)):(jQuery(".bwg_filmstrip_thumbnails").position().left>=-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height())&&(jQuery(".bwg_filmstrip_left").css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_filmstrip_thumbnails").position().left<-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height()-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width+gallery_box_data.all_images_right_left_space))?jQuery(".bwg_filmstrip_thumbnails").animate({left:-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height()-gallery_box_data.all_images_right_left_space)},500,"linear"):jQuery(".bwg_filmstrip_thumbnails").animate({left:jQuery(".bwg_filmstrip_thumbnails").position().left-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width)},500,"linear")),window.setTimeout(function(){jQuery(".bwg_filmstrip_thumbnails").position().left==-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height())&&jQuery(".bwg_filmstrip_right").css({opacity:.3,filter:"Alpha(opacity=30)"})},500)):"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_thumbnails").position().top>=-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width())&&(jQuery(".bwg_filmstrip_left").css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_filmstrip_thumbnails").position().top<-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width()-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width+gallery_box_data.all_images_right_left_space))?jQuery(".bwg_filmstrip_thumbnails").animate({left:-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width()-gallery_box_data.all_images_right_left_space)},500,"linear"):jQuery(".bwg_filmstrip_thumbnails").animate({left:jQuery(".bwg_filmstrip_thumbnails").position().top-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width)},500,"linear")),window.setTimeout(function(){jQuery(".bwg_filmstrip_thumbnails").position().left==-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width())&&jQuery(".bwg_filmstrip_right").css({opacity:.3,filter:"Alpha(opacity=30)"})},500)):(jQuery(".bwg_filmstrip_thumbnails").position().top>=-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height())&&(jQuery(".bwg_filmstrip_left").css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_filmstrip_thumbnails").position().top<-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height()-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width+gallery_box_data.all_images_right_left_space))?jQuery(".bwg_filmstrip_thumbnails").animate({top:-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height()-gallery_box_data.all_images_right_left_space)},500,"linear"):jQuery(".bwg_filmstrip_thumbnails").animate({top:jQuery(".bwg_filmstrip_thumbnails").position().top-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width)},500,"linear")),window.setTimeout(function(){jQuery(".bwg_filmstrip_thumbnails").position().left==-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height())&&jQuery(".bwg_filmstrip_right").css({opacity:.3,filter:"Alpha(opacity=30)"})},500))}),"left"==gallery_box_data.left_or_top?jQuery(".bwg_filmstrip_left").on(a,function(){jQuery(".bwg_filmstrip_thumbnails").stop(!0,!1),jQuery(".bwg_filmstrip_thumbnails").position().left<0&&(jQuery(".bwg_filmstrip_right").css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_filmstrip_thumbnails").position().left>-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width)?jQuery(".bwg_filmstrip_thumbnails").animate({left:0},500,"linear"):jQuery(".bwg_filmstrip_thumbnails").animate({left:jQuery(".bwg_filmstrip_thumbnails").position().left+gallery_box_data.image_filmstrip_width+gallery_box_data.filmstrip_thumb_right_left_space},500,"linear")),window.setTimeout(function(){0==jQuery(".bwg_filmstrip_thumbnails").position().left&&jQuery(".bwg_filmstrip_left").css({opacity:.3,filter:"Alpha(opacity=30)"})},500)}):jQuery(".bwg_filmstrip_left").on(a,function(){jQuery(".bwg_filmstrip_thumbnails").stop(!0,!1),jQuery(".bwg_filmstrip_thumbnails").position().top<0&&(jQuery(".bwg_filmstrip_right").css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_filmstrip_thumbnails").position().top>-(gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.image_filmstrip_width)?jQuery(".bwg_filmstrip_thumbnails").animate({top:0},500,"linear"):jQuery(".bwg_filmstrip_thumbnails").animate({top:jQuery(".bwg_filmstrip_thumbnails").position().top+gallery_box_data.image_filmstrip_width+gallery_box_data.filmstrip_thumb_right_left_space},500,"linear")),window.setTimeout(function(){0==jQuery(".bwg_filmstrip_thumbnails").position().top&&jQuery(".bwg_filmstrip_left").css({opacity:.3,filter:"Alpha(opacity=30)"})},500)}),"width"==gallery_box_data.width_or_height?bwg_set_filmstrip_pos(jQuery(".bwg_filmstrip").width(),"",gallery_box_data):bwg_set_filmstrip_pos(jQuery(".bwg_filmstrip").height(),"",gallery_box_data),jQuery(".bwg_info").on(a,function(){if("none"==jQuery(".bwg_image_info_container1").css("display")){jQuery(".bwg_image_info_container1").css("display","table-cell"),jQuery(".bwg_info").attr("title",bwg_objectsL10n.bwg_hide_info);var e=jQuery(".bwg_ctrl_btn_container").length?jQuery(".bwg_ctrl_btn_container").height():0;jQuery(".bwg_image_info").css("height","auto"),jQuery(".bwg_image_info_container1").height()<jQuery(".bwg_image_info").height()+jQuery(".bwg_toggle_container").height()+e+2*parseInt(gallery_box_data.lightbox_info_margin)&&jQuery(".bwg_image_info").css({height:jQuery(".bwg_image_info_container1").height()-jQuery(".bwg_toggle_container").height()-e-2*parseInt(gallery_box_data.lightbox_info_margin)}),setTimeout(function(){jQuery(".bwg_image_info_container1").height()<jQuery(".bwg_image_info").height()+e+2*parseInt(gallery_box_data.lightbox_info_margin)&&"top"==gallery_box_data.lightbox_ctrl_btn_pos&&jQuery(".bwg_image_info").css("top",e+"px")},100)}else jQuery(".bwg_image_info_container1").css("display","none"),jQuery(".bwg_info").attr("title",bwg_objectsL10n.bwg_show_info)}),jQuery(".bwg_rate").on(a,function(){"none"==jQuery(".bwg_image_rate_container1").css("display")?(jQuery(".bwg_image_rate_container1").css("display","table-cell"),jQuery(".bwg_rate").attr("title",bwg_objectsL10n.bwg_hide_rating)):(jQuery(".bwg_image_rate_container1").css("display","none"),jQuery(".bwg_rate").attr("title",bwg_objectsL10n.bwg_show_rating))}),jQuery(".bwg_comment, .bwg_comments_close_btn").on(a,function(){bwg_comment()}),jQuery(".bwg_ecommerce, .bwg_ecommerce_close_btn").on(a,function(){bwg_ecommerce()}),jQuery(".bwg_toggle_container").on(a,function(){var e="top"==gallery_box_data.lightbox_ctrl_btn_pos?"bwg-icon-caret-up":"bwg-icon-caret-down",t="top"==gallery_box_data.lightbox_ctrl_btn_pos?"bwg-icon-caret-down":"bwg-icon-caret-up",i=jQuery(".bwg_image_info_container1").height()-bwg_image_info_pos-jQuery(".bwg_ctrl_btn_container").height()-2*parseInt(gallery_box_data.lightbox_info_margin),a=jQuery(".bwg_image_description").outerHeight()+jQuery(".bwg_image_title").outerHeight()+2*parseInt(gallery_box_data.lightbox_info_margin);if(jQuery(".bwg_toggle_container i").hasClass(e)){var _=i+jQuery(".bwg_ctrl_btn_container").height(),r=parseInt(jQuery(".bwg_image_info").css("top"))-jQuery(".bwg_ctrl_btn_container").height();jQuery(".bwg_ctrl_btn_container").height();"top"==gallery_box_data.lightbox_ctrl_btn_pos&&"top"==gallery_box_data.lightbox_info_pos?jQuery(".bwg_image_info_container1").height()<a?jQuery(".bwg_image_info").animate({top:r+"px",height:_},500):jQuery(".bwg_image_info").animate({top:r+"px"},500):"bottom"==gallery_box_data.lightbox_ctrl_btn_pos&&(jQuery(".bwg_image_info_container1").height()<a?jQuery(".bwg_image_info").animate({bottom:0,height:_},500):"bottom"==gallery_box_data.lightbox_info_pos?jQuery(".bwg_image_info").animate({top:-r+"px"},500):jQuery(".bwg_image_info").animate({top:0},500)),gallery_box_data.enable_image_filmstrip&&"bottom"==gallery_box_data.lightbox_filmstrip_pos||"bottom"!=gallery_box_data.lightbox_ctrl_btn_pos||"bottom"!=gallery_box_data.lightbox_info_pos?gallery_box_data.enable_image_filmstrip&&"top"==gallery_box_data.lightbox_filmstrip_pos||"top"!=gallery_box_data.lightbox_ctrl_btn_pos||"top"!=gallery_box_data.lightbox_info_pos||jQuery(".bwg_image_info").animate({top:0},500):jQuery(".bwg_image_info").animate({bottom:0},500),gallery_box_data.enable_image_filmstrip&&"bottom"==gallery_box_data.lightbox_filmstrip_pos||"bottom"!=gallery_box_data.lightbox_ctrl_btn_pos||"bottom"!=gallery_box_data.lightbox_rate_pos?gallery_box_data.enable_image_filmstrip&&"top"==gallery_box_data.lightbox_filmstrip_pos||"top"!=gallery_box_data.lightbox_ctrl_btn_pos||"top"!=gallery_box_data.lightbox_rate_pos||jQuery(".bwg_image_rate").animate({top:0},500):jQuery(".bwg_image_rate").animate({bottom:0},500),gallery_box_data.enable_image_filmstrip&&"bottom"==gallery_box_data.lightbox_filmstrip_pos||"bottom"!=gallery_box_data.lightbox_ctrl_btn_pos||"bottom"!=gallery_box_data.lightbox_hit_pos?gallery_box_data.enable_image_filmstrip&&"top"==gallery_box_data.lightbox_filmstrip_pos||"top"!=gallery_box_data.lightbox_ctrl_btn_pos||"top"!=gallery_box_data.lightbox_hit_pos||jQuery(".bwg_image_hit").animate({top:0},500):jQuery(".bwg_image_hit").animate({bottom:0},500),"bottom"==gallery_box_data.lightbox_ctrl_btn_pos?(jQuery(".bwg_ctrl_btn_container").animate({bottom:"-"+jQuery(".bwg_ctrl_btn_container").height()},500),jQuery(".bwg_toggle_container").animate({bottom:0},{duration:500,complete:function(){jQuery(".bwg_toggle_container i").attr("class","bwg_toggle_btn "+t)}})):(jQuery(".bwg_ctrl_btn_container").animate({top:"-"+jQuery(".bwg_ctrl_btn_container").height()},500),jQuery(".bwg_toggle_container").animate({top:0},{duration:500,complete:function(){jQuery(".bwg_toggle_container i").attr("class","bwg_toggle_btn "+t)}}))}else{i=jQuery(".bwg_image_info_container1").height()-bwg_image_info_pos-2*parseInt(gallery_box_data.lightbox_info_margin)-jQuery(".bwg_toggle_container").height(),a=jQuery(".bwg_image_description").outerHeight()+jQuery(".bwg_image_title").outerHeight()+2*parseInt(gallery_box_data.lightbox_info_margin)+jQuery(".bwg_toggle_container").height(),_=i,r=parseInt(jQuery(".bwg_image_info").css("top"))+jQuery(".bwg_ctrl_btn_container").height();"top"==gallery_box_data.lightbox_ctrl_btn_pos&&"top"==gallery_box_data.lightbox_info_pos?jQuery(".bwg_image_info_container1").height()<a?jQuery(".bwg_image_info").animate({top:r+"px",height:_},500):jQuery(".bwg_image_info").animate({top:r+"px"},500):"bottom"==gallery_box_data.lightbox_ctrl_btn_pos&&(jQuery(".bwg_image_info_container1").height()<a?jQuery(".bwg_image_info").animate({bottom:0,height:_},500):jQuery(".bwg_image_info").animate({top:0},500)),gallery_box_data.enable_image_filmstrip&&"bottom"==gallery_box_data.lightbox_filmstrip_pos||"bottom"!=gallery_box_data.lightbox_ctrl_btn_pos||"bottom"!=gallery_box_data.lightbox_info_pos?gallery_box_data.enable_image_filmstrip&&"top"==gallery_box_data.lightbox_filmstrip_pos||"top"!=gallery_box_data.lightbox_ctrl_btn_pos||"top"!=gallery_box_data.lightbox_info_pos||jQuery(".bwg_image_info").animate({top:jQuery(".bwg_ctrl_btn_container").height()},500):jQuery(".bwg_image_info").animate({bottom:jQuery(".bwg_ctrl_btn_container").height()},500),gallery_box_data.enable_image_filmstrip&&"bottom"==gallery_box_data.lightbox_filmstrip_pos||"bottom"!=gallery_box_data.lightbox_ctrl_btn_pos||"bottom"!=gallery_box_data.lightbox_rate_pos?gallery_box_data.enable_image_filmstrip&&"top"==gallery_box_data.lightbox_filmstrip_pos||"top"!=gallery_box_data.lightbox_ctrl_btn_pos||"top"!=gallery_box_data.lightbox_rate_pos||jQuery(".bwg_image_rate").animate({top:jQuery(".bwg_ctrl_btn_container").height()},500):jQuery(".bwg_image_rate").animate({bottom:jQuery(".bwg_ctrl_btn_container").height()},500),gallery_box_data.enable_image_filmstrip&&"bottom"==gallery_box_data.lightbox_filmstrip_pos||"bottom"!=gallery_box_data.lightbox_ctrl_btn_pos||"bottom"!=gallery_box_data.lightbox_hit_pos?gallery_box_data.enable_image_filmstrip&&"top"==gallery_box_data.lightbox_filmstrip_pos||"top"!=gallery_box_data.lightbox_ctrl_btn_pos||"top"!=gallery_box_data.lightbox_hit_pos||jQuery(".bwg_image_hit").animate({top:jQuery(".bwg_ctrl_btn_container").height()},500):jQuery(".bwg_image_hit").animate({bottom:jQuery(".bwg_ctrl_btn_container").height()},500),"bottom"==gallery_box_data.lightbox_ctrl_btn_pos?(jQuery(".bwg_ctrl_btn_container").animate({bottom:0},500),jQuery(".bwg_toggle_container").animate({bottom:jQuery(".bwg_ctrl_btn_container").height()},{duration:500,complete:function(){jQuery(".bwg_toggle_container i").attr("class","bwg_toggle_btn "+e)}})):(jQuery(".bwg_ctrl_btn_container").animate({top:0},500),jQuery(".bwg_toggle_container").animate({top:jQuery(".bwg_ctrl_btn_container").height()},{duration:500,complete:function(){jQuery(".bwg_toggle_container i").attr("class","bwg_toggle_btn "+e)}}))}});var o=window.innerHeight;jQuery(".bwg_resize-full").on(a,function(){bwg_resize_full()}),jQuery(".bwg_fullscreen").on(a,function(){jQuery(".bwg_watermark").css({display:"none"});var e,t=0;if((jQuery(".bwg_comment_container").hasClass("bwg_open")||jQuery(".bwg_ecommerce_container").hasClass("bwg_open"))&&(t=jQuery(".bwg_comment_container").width()||jQuery(".bwg_ecommerce_container").width()),void 0!==jQuery().fullscreen&&jQuery.isFunction(jQuery().fullscreen))if(jQuery.fullscreen.isFullScreen())jQuery.fullscreen.exit(),e=o,jQuery(window).width()>gallery_box_data.image_width&&(_=gallery_box_data.image_width),window.innerHeight>gallery_box_data.image_height&&(r=gallery_box_data.image_height),gallery_box_data.open_with_fullscreen&&(_=jQuery(window).width(),r=e),jQuery("#spider_popup_wrap").on("fscreenclose",function(){jQuery("#spider_popup_wrap").css({width:_,height:r,left:"50%",top:"50%",marginLeft:-_/2,marginTop:-r/2,zIndex:1e5}),jQuery(".bwg_image_wrap").css({width:_-t}),jQuery(".bwg_image_container").css({height:r-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0),width:_-t-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)}),jQuery(".bwg_image_info").css("height","auto"),jQuery(".bwg_image_info_container1").height()<jQuery(".bwg_image_info").height()+jQuery(".bwg_toggle_container").height()+bwg_image_info_pos+2*parseInt(gallery_box_data.lightbox_info_margin)&&jQuery(".bwg_image_info").css({height:jQuery(".bwg_image_info_container1").height()-jQuery(".bwg_toggle_container").height()-bwg_image_info_pos-2*parseInt(gallery_box_data.lightbox_info_margin)}),jQuery(".bwg_popup_image").css({maxWidth:_-t-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:r-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxWidth:_-t-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:r-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),bwg_resize_instagram_post(),bwg_change_watermark_container(),"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_container").css({width:_-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)}),jQuery(".bwg_filmstrip").css({width:_-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40}),bwg_set_filmstrip_pos(_-40,"",gallery_box_data)):(jQuery(".bwg_filmstrip_container").css({height:r-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)}),jQuery(".bwg_filmstrip").css({height:r-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40}),bwg_set_filmstrip_pos(r-40,"",gallery_box_data)),jQuery(".bwg_resize-full").show(),jQuery(".bwg_resize-full").attr("class","bwg-icon-expand bwg_ctrl_btn bwg_resize-full"),jQuery(".bwg_resize-full").attr("title",bwg_objectsL10n.bwg_maximize),jQuery(".bwg_fullscreen").attr("class","bwg-icon-arrows-out bwg_ctrl_btn bwg_fullscreen"),jQuery(".bwg_fullscreen").attr("title",bwg_objectsL10n.bwg_fullscreen),jQuery("#spider_popup_wrap").width()<jQuery(window).width()&&jQuery("#spider_popup_wrap").height()<window.innerHeight&&jQuery(".spider_popup_close_fullscreen").attr("class","spider_popup_close")});else{jQuery("#spider_popup_wrap").fullscreen();var i=screen.width,a=screen.height;jQuery("#spider_popup_wrap").css({width:i,height:a,left:0,top:0,margin:0,zIndex:1e5}),jQuery(".bwg_image_wrap").css({width:i-t}),jQuery(".bwg_image_container").css({height:a-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0),width:i-t-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)}),jQuery(".bwg_image_info").css("height","auto"),jQuery(".bwg_image_info_container1").height()<jQuery(".bwg_image_info").height()+jQuery(".bwg_toggle_container").height()+bwg_image_info_pos+2*parseInt(gallery_box_data.lightbox_info_margin)&&jQuery(".bwg_image_info").css({height:jQuery(".bwg_image_info_container1").height()-jQuery(".bwg_toggle_container").height()-bwg_image_info_pos-2*parseInt(gallery_box_data.lightbox_info_margin)}),jQuery(".bwg_popup_image").css({maxWidth:i-t-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:a-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxWidth:i-t-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:a-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),bwg_resize_instagram_post(),bwg_change_watermark_container(),"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_container").css({width:i-("horizontal"==gallery_box_data.filmstrip_direction)?"comment_container_width":0}),jQuery(".bwg_filmstrip").css({width:i-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40}),bwg_set_filmstrip_pos(i-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40,"",gallery_box_data)):(jQuery(".bwg_filmstrip_container").css({height:a-("horizontal"==gallery_box_data.filmstrip_direction)?"comment_container_width":0}),jQuery(".bwg_filmstrip").css({height:i-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40}),bwg_set_filmstrip_pos(a-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40,"",gallery_box_data)),jQuery(".bwg_resize-full").hide(),jQuery(".bwg_fullscreen").attr("class","bwg-icon-compress bwg_ctrl_btn bwg_fullscreen"),jQuery(".bwg_fullscreen").attr("title",bwg_objectsL10n.bwg_exit_fullscreen),jQuery(".spider_popup_close").attr("class","bwg_ctrl_btn spider_popup_close_fullscreen")}return!1}),jQuery(".bwg_play_pause, .bwg_popup_image").on(a,function(){jQuery(".bwg_play_pause").length&&jQuery(".bwg_play_pause").hasClass("bwg-icon-play")&&!jQuery(".bwg_comment_container").hasClass("bwg_open")?(bwg_play(gallery_box_data.data),jQuery(".bwg_play_pause").attr("title",bwg_objectsL10n.bwg_pause),jQuery(".bwg_play_pause").attr("class","bwg-icon-pause bwg_ctrl_btn bwg_play_pause")):(window.clearInterval(bwg_playInterval),jQuery(".bwg_play_pause").attr("title",bwg_objectsL10n.bwg_play),jQuery(".bwg_play_pause").attr("class","bwg-icon-play bwg_ctrl_btn bwg_play_pause"))}),gallery_box_data.open_with_autoplay&&(bwg_play(gallery_box_data.data),jQuery(".bwg_play_pause").attr("title",bwg_objectsL10n.bwg_pause),jQuery(".bwg_play_pause").attr("class","bwg-icon-pause bwg_ctrl_btn bwg_play_pause")),gallery_box_data.open_with_fullscreen&&bwg_open_with_fullscreen(),jQuery(".bwg_popup_image").removeAttr("width"),jQuery(".bwg_popup_image").removeAttr("height"),jQuery(window).focus(function(){jQuery(".bwg_play_pause").length&&!jQuery(".bwg_play_pause").hasClass("bwg-icon-play")&&bwg_play(gallery_box_data.data)}),jQuery(window).blur(function(){event_stack=[],window.clearInterval(bwg_playInterval)});gallery_box_data.lightbox_ctrl_btn_pos;1==gallery_box_data.open_ecommerce&&setTimeout(function(){bwg_ecommerce()},400),1==gallery_box_data.open_comment&&bwg_comment()}function spider_createpopup(e,t,i,a,_,r,s,o){e=e.replace(/&/g,"&"),isPopUpOpened||(isPopUpOpened=!0,spider_hasalreadyreceivedpopup(r)||spider_isunsupporteduseragent()||(bwg_overflow_initial_value=jQuery("html").css("overflow"),bwg_overflow_x_initial_value=jQuery("html").css("overflow-x"),bwg_overflow_y_initial_value=jQuery("html").css("overflow-y"),jQuery("html").attr("style","overflow:hidden !important;"),jQuery("#bwg_spider_popup_loading_"+t).show(),jQuery("#spider_popup_overlay_"+t).css({display:"block"}),jQuery.ajax({type:"GET",url:e,success:function(e){var t=jQuery('<div id="spider_popup_wrap" class="spider_popup_wrap" style=" width:'+i+"px; height:"+a+"px; margin-top:-"+a/2+"px; margin-left: -"+i/2+'px; ">'+e+"</div>").hide().appendTo("body");gallery_box_ready(),spider_showpopup(r,s,t,_,o)},beforeSend:function(){},complete:function(){}})))}function spider_showpopup(e,t,i,a,_){var r=gallery_box_data.data,s=parseInt(jQuery("#bwg_current_image_key").val());void 0!==r[s]&&(isPopUpOpened=!0,-1<r[s].filetype.indexOf("EMBED_")?bwg_first_image_load(i):jQuery("#spider_popup_wrap .bwg_popup_image_spun img").prop("complete")?bwg_first_image_load(i):jQuery("#spider_popup_wrap .bwg_popup_image_spun img").on("load error",function(){bwg_first_image_load(i)}),spider_receivedpopup(e,t,_))}function bwg_first_image_load(e){e.show(),jQuery(".bwg_spider_popup_loading").hide(),1==gallery_box_data.preload_images&&bwg_preload_images(parseInt(jQuery("#bwg_current_image_key").val())),bwg_load_filmstrip()}function spider_hasalreadyreceivedpopup(e){return-1<document.cookie.indexOf(e)&&delete document.cookie[document.cookie.indexOf(e)],!1}function spider_receivedpopup(e,t,i){var a=new Date;a.setDate(a.getDate()+t),document.cookie=e+"=true;expires="+a.toUTCString()+";path=/";var _=gallery_box_data.bwg_ctrl_btn_container_height;"bottom"==i?jQuery(".bwg_toggle_container").css("bottom",_+"px"):"top"==i&&jQuery(".bwg_toggle_container").css("top",_+"px")}function spider_isunsupporteduseragent(){return!window.XMLHttpRequest}function spider_destroypopup(e){null!=document.getElementById("spider_popup_wrap")&&(void 0!==jQuery().fullscreen&&jQuery.isFunction(jQuery().fullscreen)&&jQuery.fullscreen.isFullScreen()&&jQuery.fullscreen.exit(),"undefined"!=typeof enable_addthis&&enable_addthis&&jQuery(".at4-share-outer").hide(),setTimeout(function(){jQuery(".spider_popup_wrap").remove(),jQuery(".bwg_spider_popup_loading").css({display:"none"}),jQuery(".spider_popup_overlay").css({display:"none"}),jQuery(document).off("keydown"),!1!==bwg_overflow_initial_value&&jQuery("html").css("overflow",bwg_overflow_initial_value),!1!==bwg_overflow_x_initial_value&&jQuery("html").css("overflow-x",bwg_overflow_x_initial_value),!1!==bwg_overflow_y_initial_value&&jQuery("html").css("overflow-y",bwg_overflow_y_initial_value)},20)),isPopUpOpened=!1;var t=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()),i=document.querySelector('meta[name="viewport"]');t&&i&&(i.content="width=device-width, initial-scale=1");var a=jQuery(document).scrollTop();bwg_objectsL10n.is_pro&&location.replace("#"),jQuery(document).scrollTop(a),void 0!==gallery_box_data.bwg_playInterval&&clearInterval(gallery_box_data.bwg_playInterval)}function get_ajax_pricelist(){var e={};return jQuery(".add_to_cart_msg").html(""),e.ajax_task="display",e.image_id=jQuery("#bwg_popup_image").attr("image_id"),jQuery("#ecommerce_ajax_loading").css("height",jQuery(".bwg_ecommerce_panel").css("height")),jQuery("#ecommerce_opacity_div").css("width",jQuery(".bwg_ecommerce_panel").css("width")),jQuery("#ecommerce_opacity_div").css("height",jQuery(".bwg_ecommerce_panel").css("height")),jQuery("#ecommerce_loading_div").css("width",jQuery(".bwg_ecommerce_panel").css("width")),jQuery("#ecommerce_loading_div").css("height",jQuery(".bwg_ecommerce_panel").css("height")),document.getElementById("ecommerce_opacity_div").style.display="",document.getElementById("ecommerce_loading_div").style.display="table-cell",jQuery.ajax({type:"POST",url:jQuery("#bwg_ecommerce_form").attr("action"),data:e,success:function(e){jQuery(".pge_tabs li a").on("click",function(){return jQuery(".pge_tabs_container > div").hide(),jQuery(".pge_tabs li").removeClass("pge_active"),jQuery(jQuery(this).attr("href")).show(),jQuery(this).closest("li").addClass("pge_active"),jQuery("[name=type]").val(jQuery(this).attr("href").substr(1)),!1});var t=jQuery(e).find(".manual").html();jQuery(".manual").html(t);var i=jQuery(e).find(".downloads").html();jQuery(".downloads").html(i);var a=jQuery(e).find(".pge_options").html();jQuery(".pge_options").html(a);var _=jQuery(e).find(".pge_add_to_cart").html();jQuery(".pge_add_to_cart").html(_)},beforeSend:function(){},complete:function(){document.getElementById("ecommerce_opacity_div").style.display="none",document.getElementById("ecommerce_loading_div").style.display="none"}}),!1}function spider_ajax_save(e){var t={};return t.bwg_name=jQuery("#bwg_name").val(),t.bwg_comment=jQuery("#bwg_comment").val(),t.bwg_email=jQuery("#bwg_email").val(),t.bwg_captcha_input=jQuery("#bwg_captcha_input").val(),t.ajax_task=jQuery("#ajax_task").val(),t.image_id=jQuery("#image_id").val(),t.comment_id=jQuery("#comment_id").val(),jQuery("#ajax_loading").css("height",jQuery(".bwg_comments").css("height")),jQuery("#opacity_div").css("width",jQuery(".bwg_comments").css("width")),jQuery("#opacity_div").css("height",jQuery(".bwg_comments").css("height")),jQuery("#loading_div").css("width",jQuery(".bwg_comments").css("width")),jQuery("#loading_div").css("height",jQuery(".bwg_comments").css("height")),document.getElementById("opacity_div").style.display="",document.getElementById("loading_div").style.display="table-cell",jQuery.ajax({type:"POST",url:jQuery("#"+e).attr("action"),data:t,success:function(e){var t=jQuery(e).find(".bwg_comments").html();jQuery(".bwg_comments").html(t)},beforeSend:function(){},complete:function(){document.getElementById("opacity_div").style.display="none",document.getElementById("loading_div").style.display="none",jQuery(".bwg_comments").mCustomScrollbar({scrollInertia:150,advanced:{updateOnContentResize:!0}}),jQuery(".bwg_comments_close_btn").click(bwg_comment),bwg_captcha_refresh("bwg_captcha")}}),!1}function spider_rate_ajax_save(i){var e={};return e.image_id=jQuery("#"+i+" input[name='image_id']").val(),e.rate=jQuery("#"+i+" input[name='score']").val(),e.ajax_task=jQuery("#rate_ajax_task").val(),jQuery.ajax({type:"POST",url:jQuery("#"+i).attr("action"),data:e,success:function(e){var t=jQuery(e).find("#"+i).html();jQuery("#"+i).html(t)},beforeSend:function(){},complete:function(){}})}function spider_set_input_value(e,t){document.getElementById(e)&&(document.getElementById(e).value=t)}function spider_form_submit(e,t){document.getElementById(t)&&document.getElementById(t).submit(),e.preventDefault?e.preventDefault():e.returnValue=!1}function spider_check_required(e,t){return""==jQuery("#"+e).val()&&(alert(t+" "+bwg_objectsL10n.bwg_field_required),jQuery("#"+e).attr("style","border-color: #FF0000;"),jQuery("#"+e).focus(),!0)}function comment_check_privacy_policy(){var e=jQuery("#bwg_submit");e.removeClass("bwg-submit-disabled"),e.removeAttr("disabled"),jQuery("#bwg_comment_privacy_policy").is(":checked")||(e.addClass("bwg-submit-disabled"),e.attr("disabled","disabled"))}function spider_check_email(e){if(""!=jQuery("#"+e).val())return-1==jQuery("#"+e).val().replace(/^\s+|\s+$/g,"").search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/)&&(alert(bwg_objectsL10n.bwg_mail_validation),!0)}function bwg_captcha_refresh(e){document.getElementById(e+"_img")&&document.getElementById(e+"_input")&&(srcArr=document.getElementById(e+"_img").src.split("&r="),document.getElementById(e+"_img").src=srcArr[0]+"&r="+Math.floor(100*Math.random()),document.getElementById(e+"_img").style.display="inline-block",document.getElementById(e+"_input").value="")}function bwg_play_instagram_video(e,t){jQuery(e).parent().find("video").each(function(){jQuery(this).get(0).paused?(jQuery(this).get(0).play(),jQuery(e).children().hide()):(jQuery(this).get(0).pause(),jQuery(e).children().show())})}function bwg_add_comment(){var t=jQuery("#bwg_comment_form"),e=t.attr("action"),i={ajax_task:"add_comment"};return i.comment_name=t.find("#bwg_name").val(),i.comment_email=t.find("#bwg_email").val(),i.comment_text=t.find("#bwg_comment").val(),i.comment_captcha=t.find("#bwg_captcha_input").val(),i.privacy_policy=t.find("#bwg_comment_privacy_policy").is(":checked")?1:0,i.comment_image_id=jQuery("#bwg_popup_image").attr("image_id"),i.comment_moderation=t.find("#bwg_comment_moderation").val(),jQuery(".bwg_spider_ajax_loading").hide(),jQuery.ajax({url:e,type:"POST",dataType:"json",data:i,success:function(e){jQuery(".bwg_comment_error").text(""),1==e.error?jQuery.each(e.error_messages,function(e,t){t&&jQuery(".bwg_comment_"+e+"_error").text(t)}):(t.find("#bwg_comment").val(""),jQuery(".bwg_comment_waiting_message").hide(),0==e.published&&jQuery(".bwg_comment_waiting_message").show(),""!=e.html_comments_block&&jQuery("#bwg_added_comments").html(e.html_comments_block).show())},beforeSend:function(){jQuery(".bwg_spider_ajax_loading").show()},complete:function(){0<t.find("#bwg_comment_privacy_policy").length&&(t.find("#bwg_comment_privacy_policy").prop("checked",!1),comment_check_privacy_policy()),bwg_captcha_refresh("bwg_captcha"),jQuery(".bwg_spider_ajax_loading").hide()},error:function(){}}),!1}function bwg_remove_comment(t){var e=jQuery("#bwg_comment_form").attr("action"),i={ajax_task:"delete_comment"};return i.id_image=jQuery("#bwg_popup_image").attr("image_id"),i.id_comment=t,jQuery.ajax({url:e,type:"POST",dataType:"json",data:i,success:function(e){0==e.error&&jQuery("#bwg_comment_block_"+t).fadeOut("slow").remove()},beforeSend:function(){},complete:function(){},error:function(){}}),!1}function bwg_gallery_box(e,t,i,a){jQuery(".bwg-validate").each(function(){jQuery(this).on("keypress change",function(){jQuery(this).parent().next().find(".bwg_comment_error").html("")})}),void 0===i&&(i=!1);var _,r=t.data("bwg");_=t.find(".bwg-container").data("lightbox-url")?t.find(".bwg-container").data("lightbox-url"):t.data("lightbox-url");var s=jQuery("#bwg_tag_id_"+r).val();s=s||0;var o=1==i?"&open_ecommerce=1":"",l=jQuery("#bwg_search_input_"+r).val(),n=jQuery("#bwg_order_"+r).val()?"&filtersortby="+jQuery("#bwg_order_"+r).val():"";l=l||"",void 0!==a&&(_+="&gallery_id="+a);var g="",w=jQuery("#bwg_blog_style_share_buttons_"+e).attr("data-open-comment");void 0!==w&&!1!==w&&(g="&open_comment=1"),spider_createpopup(_+"&bwg_random_seed="+jQuery("#bwg_random_seed_"+r).val()+"&image_id="+e+"&filter_tag="+s+o+g+"&filter_search_name="+l+n,r,t.data("popup-width"),t.data("popup-height"),1,"testpopup",5,t.data("buttons-position"))}function bwg_change_image_lightbox(e,a,_,t){if(bwg_current_key=gallery_box_data.bwg_current_key,jQuery(".bwg_image_info").css("height","auto"),setTimeout(function(){jQuery(".bwg_image_info_container1").height()<jQuery(".bwg_image_info").height()+jQuery(".bwg_toggle_container").height()+bwg_image_info_pos+2*parseInt(gallery_box_data.lightbox_info_margin)&&("top"==gallery_box_data.lightbox_ctrl_btn_pos&&jQuery(".bwg_image_info").css("top",bwg_image_info_pos+"px"),jQuery(".bwg_image_info").css({height:jQuery(".bwg_image_info_container1").height()-jQuery(".bwg_toggle_container").height()-bwg_image_info_pos-2*parseInt(gallery_box_data.lightbox_info_margin)}))},100),jQuery("#spider_popup_left").show(),jQuery("#spider_popup_right").show(),jQuery(".bwg_image_info").hide(),0==gallery_box_data.enable_loop&&(a==parseInt(_.length)-1&&jQuery("#spider_popup_right").hide(),0==a&&jQuery("#spider_popup_left").hide()),1==gallery_box_data.ecommerceACtive&&1==gallery_box_data.enable_image_ecommerce)if(0==gallery_box_data.data[a].pricelist)jQuery(".bwg_ecommerce").hide();else{jQuery(".bwg_ecommerce").show(),jQuery(".pge_tabs li").hide(),jQuery("#downloads").hide(),jQuery("#manual").hide();var i=gallery_box_data.data[a].pricelist_sections.split(",");if(i)if(jQuery("#"+i[0]).show(),jQuery("[name=type]").val(i[0]),1<i.length)for(jQuery(".pge_tabs").show(),k=0;k<i.length;k++)jQuery("#"+i[k]+"_li").show();else jQuery(".pge_tabs").hide();else jQuery("[name=type]").val("")}if(jQuery("#bwg_image_container").find("iframe").each(function(){jQuery(this)[0].contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*"),jQuery(this)[0].contentWindow.postMessage('{ "method": "pause" }',"*"),jQuery(this)[0].contentWindow.postMessage("pause","*")}),jQuery("#bwg_image_container").find("video").each(function(){jQuery(this).trigger("pause")}),void 0===_&&(_=gallery_box_data.data),void 0!==_[a]&&void 0!==_[e]){if(jQuery(".bwg_play_pause").length&&!jQuery(".bwg_play_pause").hasClass("bwg-icon-play")&&bwg_play(_),t||jQuery("#bwg_current_image_key").val(a),gallery_box_data.bwg_trans_in_progress)return void gallery_box_data.event_stack.push(e+"-"+a);var r="right";if(bwg_current_key>a)r="left";else if(bwg_current_key==a)return;jQuery(".bwg_image_count").html(_[a].number),jQuery(".bwg_watermark").css({display:"none"}),"width"==gallery_box_data.width_or_height?bwg_current_filmstrip_pos=a*(jQuery(".bwg_filmstrip_thumbnail").width()+2+2*gallery_box_data.lightbox_filmstrip_thumb_border_width):"height"==gallery_box_data.width_or_height&&(bwg_current_filmstrip_pos=a*(jQuery(".bwg_filmstrip_thumbnail").height()+2+2*gallery_box_data.lightbox_filmstrip_thumb_border_width)),gallery_box_data.bwg_current_key=a,bwg_objectsL10n.is_pro&&(location.replace("#bwg"+gallery_box_data.gallery_id+"/"+_[a].id),history.replaceState(void 0,void 0,"#bwg"+gallery_box_data.gallery_id+"/"+_[a].id)),gallery_box_data.popup_enable_rate&&(jQuery("#bwg_rate_form input[name='image_id']").val(_[a].id),jQuery("#bwg_star").attr("data-score",_[a].avg_rating),jQuery("#bwg_star").removeAttr("title"),_[a].cur_key=a,bwg_rating(_[a].rate,_[a].rate_count,_[a].avg_rating,a)),spider_set_input_value("rate_ajax_task","save_hit_count"),spider_rate_ajax_save("bwg_rate_form"),jQuery(".bwg_image_hits span").html(++_[a].hit_count),jQuery("#bwg_popup_image").attr("image_id",_[a].id),jQuery(".bwg_image_title").html(jQuery("<span />").html(_[a].alt).text()),jQuery(".bwg_image_description").html(jQuery("<span />").html(_[a].description).text()),jQuery(".bwg_filmstrip_thumbnail").removeClass("bwg_thumb_active").addClass("bwg_thumb_deactive"),jQuery("#bwg_filmstrip_thumbnail_"+a).removeClass("bwg_thumb_deactive").addClass("bwg_thumb_active"),jQuery(".bwg_image_info").css("opacity",1),""==_[a].alt.trim()&&""==_[a].description.trim()&&jQuery(".bwg_image_info").css("opacity",0),"none"!=jQuery(".bwg_image_info_container1").css("display")?jQuery(".bwg_image_info_container1").css("display","table-cell"):jQuery(".bwg_image_info_container1").css("display","none"),"none"!=jQuery(".bwg_image_rate_container1").css("display")?jQuery(".bwg_image_rate_container1").css("display","table-cell"):jQuery(".bwg_image_rate_container1").css("display","none");var s=2==jQuery(".bwg_popup_image_spun").css("zIndex")?".bwg_popup_image_spun":".bwg_popup_image_second_spun",o=".bwg_popup_image_second_spun"==s?".bwg_popup_image_spun":".bwg_popup_image_second_spun",l=-1<_[a].filetype.indexOf("EMBED_"),n=-1<_[a].filetype.indexOf("INSTAGRAM_POST"),g=-1<_[a].filetype.indexOf("INSTAGRAM_VIDEO"),w=-1!==jQuery.inArray(_[a].filetype,["EMBED_OEMBED_YOUTUBE_VIDEO","EMBED_OEMBED_VIMEO_VIDEO","EMBED_OEMBED_FACEBOOK_VIDEO","EMBED_OEMBED_DAILYMOTION_VIDEO"]),b=jQuery(s).height(),u=jQuery(s).width(),d='<span class="bwg_popup_image_spun1" style="display: '+(l?"block":"table")+'; width: inherit; height: inherit;"><span class="bwg_popup_image_spun2" style="display:'+(l?"block":"table-cell")+'; vertical-align: middle;text-align: center;height: 100%;">';if(l){if(jQuery("#bwg_download").addClass("hidden"),d+='<span class="bwg_popup_embed bwg_popup_watermark" style="display: '+(w?"block":"table")+'; table-layout: fixed; height: 100%;">'+(g?'<div class="bwg_inst_play_btn_cont" onclick="bwg_play_instagram_video(this)" ><div class="bwg_inst_play"></div></div>':" "),n){var h=0,m=0;b<u+88?h=(m=b)-88:m=(h=u)+88,d+=spider_display_embed(_[a].filetype,_[a].image_url,_[a].filename,{class:"bwg_embed_frame","data-width":_[a].image_width,"data-height":_[a].image_height,frameborder:"0",allowfullscreen:"allowfullscreen",style:"width:"+h+"px; height:"+m+"px; vertical-align:middle; display:inline-block; position:relative;"})}else d+=spider_display_embed(_[a].filetype,_[a].image_url,_[a].filename,{class:"bwg_embed_frame",frameborder:"0",allowfullscreen:"allowfullscreen",style:"display:"+(w?"block":"table-cell")+"; width:inherit; height:inherit; vertical-align:middle;"});d+="</span>"}else jQuery(".bwg-loading").removeClass("hidden"),jQuery("#bwg_download").removeClass("hidden"),d+='<img style="max-height: '+b+"px; max-width: "+u+'px;" class="bwg_popup_image bwg_popup_watermark" src="'+gallery_box_data.site_url+jQuery("<span />").html(_[a].image_url).text()+'" alt="'+_[a].alt+'" />';function p(){gallery_box_data.preload_images&&bwg_preload_images(a),window["bwg_"+gallery_box_data.bwg_image_effect](s,o,r),jQuery(s).find(".bwg_fb_video").each(function(){jQuery(this).attr("src","")}),l?jQuery("#bwg_fullsize_image").attr("href",_[a].image_url):(jQuery("#bwg_fullsize_image").attr("href",gallery_box_data.site_url+_[a].image_url),jQuery("#bwg_download").attr("href",gallery_box_data.site_url+_[a].thumb_url.replace("/thumb/","/.original/")));var e=_[a].image_url.split("/");jQuery("#bwg_download").attr("download",e[e.length-1].replace(/\?bwg=(\d+)$/,""));var t=encodeURIComponent(gallery_box_data.bwg_share_url)+"="+_[a].id+encodeURIComponent("#bwg"+gallery_box_data.gallery_id+"/")+_[a].id;if(l)var i=encodeURIComponent(_[a].thumb_url);else i=gallery_box_data.bwg_share_image_url+encodeURIComponent(encodeURIComponent(_[a].image_url));i=i.replace(/%252F/g,"%2F"),void 0!==addthis_share&&(addthis_share.url=t),jQuery("#bwg_facebook_a").attr("href","https://www.facebook.com/sharer/sharer.php?u="+t),jQuery("#bwg_twitter_a").attr("href","https://twitter.com/share?url="+t),jQuery("#bwg_pinterest_a").attr("href","http://pinterest.com/pin/create/button/?s=100&url="+t+"&media="+i+"&description="+_[a].alt+"%0A"+_[a].description),jQuery("#bwg_tumblr_a").attr("href","https://www.tumblr.com/share/photo?source="+i+"&caption="+_[a].alt+"&clickthru="+t),jQuery(".bwg_comment_container").hasClass("bwg_open")&&(0==_[a].comment_count?jQuery("#bwg_added_comments").hide():(jQuery("#bwg_added_comments").show(),spider_set_input_value("ajax_task","display"),spider_set_input_value("image_id",jQuery("#bwg_popup_image").attr("image_id")),spider_ajax_save("bwg_comment_form"))),jQuery(".bwg_ecommerce_container").hasClass("bwg_open")&&(0==_[a].pricelist?(bwg_popup_sidebar_close(jQuery(".bwg_ecommerce_container")),bwg_animate_image_box_for_hide_sidebar(),jQuery(".bwg_ecommerce_container").attr("class","bwg_ecommerce_container bwg_close"),jQuery(".bwg_ecommerce").attr("title",bwg_objectsL10n.bwg_show_ecommerce),jQuery(".spider_popup_close_fullscreen").show()):get_ajax_pricelist()),void 0!==jQuery().mCustomScrollbar&&jQuery.isFunction(jQuery().mCustomScrollbar)&&jQuery(".bwg_comments").mCustomScrollbar({advanced:{updateOnContentResize:!0}}),jQuery(".bwg_comments .mCSB_scrollTools").hide(),gallery_box_data.enable_image_filmstrip&&bwg_move_filmstrip(),bwg_resize_instagram_post()}if(d+="</span></span>",jQuery(o).html(d),jQuery(o).find("img").on("load error",function(){jQuery(".bwg-loading").addClass("hidden")}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxWidth:u,maxHeight:b,height:"auto"}),l)p();else jQuery(o).find("img").one("load",function(){p()}).each(function(){this.complete&&jQuery(this).load()})}}function bwg_preload_images_lightbox(e){for(var t=gallery_box_data.data,i=t.length,a=0==gallery_box_data.preload_images_count||gallery_box_data.preload_images_count>=i?i:gallery_box_data.preload_images_count,_=0,r=1;_<a;r++){var s=1;do{var o=(e+r*s+i)%i;if(void 0!==t[o])-1<t[o].filetype.indexOf("EMBED_")||jQuery("<img/>").attr("src",gallery_box_data.site_url+jQuery("<span />").html(t[o].image_url).text());s*=-1,_++}while(1!=s)}}function bwg_popup_sidebar_open(e){var t=gallery_box_data.lightbox_comment_width,i=gallery_box_data.lightbox_comment_pos;if(t>jQuery(window).width()){if(t=jQuery(window).width(),e.css({width:t}),jQuery(".spider_popup_close_fullscreen").hide(),jQuery(".spider_popup_close").hide(),jQuery(".bwg_ctrl_btn").hasClass("bwg-icon-pause")){var a=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase());jQuery(".bwg_play_pause").trigger(a?"touchend":"click")}}else jQuery(".spider_popup_close_fullscreen").show();"left"==i?e.animate({left:0},100):e.animate({right:0},100)}function bwg_comment(){if(jQuery(".bwg_watermark").css({display:"none"}),jQuery(".bwg_ecommerce_wrap").css("z-index","-1"),jQuery(".bwg_comment_wrap").css("z-index","25"),jQuery(".bwg_ecommerce_container").hasClass("bwg_open")&&(bwg_popup_sidebar_close(jQuery(".bwg_ecommerce_container")),jQuery(".bwg_ecommerce_container").attr("class","bwg_ecommerce_container bwg_close"),jQuery(".bwg_ecommerce").attr("title",bwg_objectsL10n.bwg_show_ecommerce)),jQuery(".bwg_comment_container").hasClass("bwg_open"))"1"==jQuery(".bwg_comment_container").attr("data-play-status")&&jQuery(".bwg_ctrl_btn.bwg_play_pause").removeClass("bwg-icon-play").addClass("bwg-icon-pause").attr("title",bwg_objectsL10n.bwg_pause),bwg_popup_sidebar_close(jQuery(".bwg_comment_container")),bwg_animate_image_box_for_hide_sidebar(),jQuery(".bwg_comment_wrap").css("z-index","-1"),jQuery(".bwg_comment_container").attr("class","bwg_comment_container bwg_close"),jQuery(".bwg_comment").attr("title",bwg_objectsL10n.bwg_show_comments),jQuery(".spider_popup_close_fullscreen").show();else{jQuery(".bwg_play_pause").hasClass("bwg-icon-pause")?jQuery(".bwg_comment_container").attr("data-play-status","1"):jQuery(".bwg_comment_container").attr("data-play-status","0"),jQuery(".bwg_ctrl_btn.bwg_play_pause").removeClass("bwg-icon-pause").addClass("bwg-icon-play").attr("title",bwg_objectsL10n.bwg_play),bwg_popup_sidebar_open(jQuery(".bwg_comment_container")),bwg_animate_image_box_for_show_sidebar(),jQuery(".bwg_comment_container").attr("class","bwg_comment_container bwg_open"),jQuery(".bwg_comment").attr("title",bwg_objectsL10n.bwg_hide_comments);var e=parseInt(jQuery("#bwg_current_image_key").val());void 0!==gallery_box_data[e]&&0!=gallery_box_data[e].comment_count&&(jQuery("#bwg_added_comments").show(),spider_set_input_value("ajax_task","display"),spider_set_input_value("image_id",jQuery("#bwg_popup_image").attr("image_id")),spider_ajax_save("bwg_comment_form"))}jQuery(".bwg_comments").mCustomScrollbar("update",{scrollInertia:150,advanced:{updateOnContentResize:!0}})}function bwg_ecommerce(){jQuery(".bwg_watermark").css({display:"none"}),jQuery(".bwg_ecommerce_wrap").css("z-index","25"),jQuery(".bwg_comment_wrap").css("z-index","-1"),jQuery(".bwg_comment_container").hasClass("bwg_open")&&(bwg_popup_sidebar_close(jQuery(".bwg_comment_container")),jQuery(".bwg_comment_container").attr("class","bwg_comment_container bwg_close"),jQuery(".bwg_comment").attr("title",bwg_objectsL10n.bwg_show_comments)),jQuery(".bwg_ecommerce_container").hasClass("bwg_open")?(bwg_popup_sidebar_close(jQuery(".bwg_ecommerce_container")),bwg_animate_image_box_for_hide_sidebar(),jQuery(".bwg_ecommerce_container").attr("class","bwg_ecommerce_container bwg_close"),jQuery(".bwg_ecommerce").attr("title",bwg_objectsL10n.bwg_show_ecommerce)):(bwg_popup_sidebar_open(jQuery(".bwg_ecommerce_container")),bwg_animate_image_box_for_show_sidebar(),jQuery(".bwg_ecommerce_container").attr("class","bwg_ecommerce_container bwg_open"),jQuery(".bwg_ecommerce").attr("title",bwg_objectsL10n.bwg_hide_ecommerce),get_ajax_pricelist())}function bwg_popup_sidebar_close(e){var t=parseInt(e.css("borderRightWidth"));t||(t=0),"left"==lightbox_comment_pos?e.animate({left:-e.width()-t},100):"right"==lightbox_comment_pos&&e.animate({right:-e.width()-t},100)}function bwg_animate_image_box_for_hide_sidebar(){"left"==lightbox_comment_pos?jQuery(".bwg_image_wrap").animate({left:0,width:jQuery("#spider_popup_wrap").width()},100):"right"==lightbox_comment_pos&&jQuery(".bwg_image_wrap").animate({right:0,width:jQuery("#spider_popup_wrap").width()},100),jQuery(".bwg_image_container").animate({width:jQuery("#spider_popup_wrap").width()-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)},100),jQuery(".bwg_popup_image").animate({maxWidth:jQuery("#spider_popup_wrap").width()-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)},{duration:100,complete:function(){bwg_change_watermark_container()}}),jQuery(".bwg_popup_embed").animate({width:jQuery("#spider_popup_wrap").width()-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)},{duration:100,complete:function(){bwg_resize_instagram_post(),bwg_change_watermark_container()}}),"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_container").animate({width:jQuery(".spider_popup_wrap").width()},100),jQuery(".bwg_filmstrip").animate({width:jQuery(".spider_popup_wrap").width()-40},100)):"height"==gallery_box_data.width_or_height&&(jQuery(".bwg_filmstrip_container").animate({height:jQuery(".spider_popup_wrap").width()},100),jQuery(".bwg_filmstrip").animate({height:jQuery(".spider_popup_wrap").width()-40},100)),bwg_set_filmstrip_pos(jQuery(".spider_popup_wrap").width()-40,"",gallery_box_data),jQuery(".spider_popup_close_fullscreen").show(100)}function bwg_animate_image_box_for_show_sidebar(){var e=jQuery(".bwg_comment_container").width()||jQuery(".bwg_ecommerce_container").width();"left"==lightbox_comment_pos?jQuery(".bwg_image_wrap").animate({left:e,width:jQuery("#spider_popup_wrap").width()-e},100):"right"==lightbox_comment_pos&&jQuery(".bwg_image_wrap").animate({right:e,width:jQuery("#spider_popup_wrap").width()-e},100),jQuery(".bwg_image_container").animate({width:jQuery("#spider_popup_wrap").width()-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)-e},100),jQuery(".bwg_popup_image").animate({maxWidth:jQuery("#spider_popup_wrap").width()-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)},{duration:100,complete:function(){bwg_change_watermark_container()}}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").animate({maxWidth:jQuery("#spider_popup_wrap").width()-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)},{duration:100,complete:function(){bwg_resize_instagram_post(),bwg_change_watermark_container()}}),"width"==gallery_box_data.width_or_height&&(jQuery(".bwg_filmstrip_container").css({width:jQuery("#spider_popup_wrap").width()-("vertical"==gallery_box_data.filmstrip_direction?0:e)}),jQuery(".bwg_filmstrip").animate({width:jQuery(".bwg_filmstrip_container").width()-40},100),bwg_set_filmstrip_pos(jQuery(".bwg_filmstrip_container").width()-40,"",gallery_box_data))}function bwg_reset_zoom(){var e=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()),t=document.querySelector('meta[name="viewport"]');e&&t&&(t.content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=0")}function bwg_open_with_fullscreen(){jQuery(".bwg_watermark").css({display:"none"});var e=0;(jQuery(".bwg_comment_container").hasClass("bwg_open")||jQuery(".bwg_ecommerce_container").hasClass("bwg_open"))&&(e=jQuery(".bwg_comment_container").width()||jQuery(".bwg_ecommerce_container").width()),bwg_popup_current_width=jQuery(window).width(),bwg_popup_current_height=window.innerHeight,jQuery("#spider_popup_wrap").css({width:jQuery(window).width(),height:window.innerHeight,left:0,top:0,margin:0,zIndex:100002}),jQuery(".bwg_image_wrap").css({width:jQuery(window).width()-e}),jQuery(".bwg_image_container").css({height:bwg_popup_current_height-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0),width:bwg_popup_current_width-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)}),jQuery(".bwg_popup_image").css({maxWidth:jQuery(window).width()-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)},{complete:function(){bwg_change_watermark_container()}}),jQuery(".bwg_popup_video").css({width:jQuery(window).width()-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),height:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)},{complete:function(){bwg_change_watermark_container()}}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxWidth:jQuery(window).width()-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)},{complete:function(){bwg_resize_instagram_post(),bwg_change_watermark_container()}}),"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_container").css({width:jQuery(window).width()-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)}),jQuery(".bwg_filmstrip").css({width:jQuery(window).width()-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40}),bwg_set_filmstrip_pos(jQuery(window).width()-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40,"",gallery_box_data)):(jQuery(".bwg_filmstrip_container").css({height:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)}),jQuery(".bwg_filmstrip").css({height:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40}),bwg_set_filmstrip_pos(window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-40,"",gallery_box_data)),jQuery(".bwg_resize-full").attr("class","bwg-icon-compress bwg_ctrl_btn bwg_resize-full"),jQuery(".bwg_resize-full").attr("title",bwg_objectsL10n.bwg_restore),jQuery(".spider_popup_close").attr("class","bwg_ctrl_btn spider_popup_close_fullscreen")}function bwg_resize_full(){jQuery(".bwg_watermark").css({display:"none"});var e=0;(jQuery(".bwg_comment_container").hasClass("bwg_open")||jQuery(".bwg_ecommerce_container").hasClass("bwg_open"))&&(e=jQuery(".bwg_comment_container").width()||jQuery(".bwg_ecommerce_container").width()),jQuery(".bwg_resize-full").hasClass("bwg-icon-compress")?(jQuery(window).width()>gallery_box_data.image_width&&(bwg_popup_current_width=gallery_box_data.image_width),window.innerHeight>gallery_box_data.image_height&&(bwg_popup_current_height=gallery_box_data.image_height),jQuery("#spider_popup_wrap").animate({width:bwg_popup_current_width,height:bwg_popup_current_height,left:"50%",top:"50%",marginLeft:-bwg_popup_current_width/2,marginTop:-bwg_popup_current_height/2,zIndex:100002},500),jQuery(".bwg_image_wrap").animate({width:bwg_popup_current_width-e},500),jQuery(".bwg_image_container").animate({height:bwg_popup_current_height-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0),width:bwg_popup_current_width-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)},500),jQuery(".bwg_popup_image").animate({maxWidth:bwg_popup_current_width-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:bwg_popup_current_height-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)},{duration:500,complete:function(){bwg_change_watermark_container(),jQuery("#spider_popup_wrap").width()<jQuery(window).width()&&jQuery("#spider_popup_wrap").height()<window.innerHeight&&jQuery(".spider_popup_close_fullscreen").attr("class","spider_popup_close")}}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").animate({maxWidth:bwg_popup_current_width-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:bwg_popup_current_height-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)},{duration:500,complete:function(){bwg_resize_instagram_post(),bwg_change_watermark_container(),jQuery("#spider_popup_wrap").width()<jQuery(window).width()&&jQuery("#spider_popup_wrap").height()<window.innerHeight&&jQuery(".spider_popup_close_fullscreen").attr("class","spider_popup_close")}}),"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_container").animate({width:bwg_popup_current_width-("horizontal"==gallery_box_data.filmstrip_direction?e:0)},500),jQuery(".bwg_filmstrip").animate({width:bwg_popup_current_width-("horizontal"==gallery_box_data.filmstrip_direction?e:0)-40},500),bwg_set_filmstrip_pos(bwg_popup_current_width-40,"",gallery_box_data)):(jQuery(".bwg_filmstrip_container").animate({height:bwg_popup_current_height-("horizontal"==gallery_box_data.filmstrip_direction?e:0)},500),jQuery(".bwg_filmstrip").animate({height:bwg_popup_current_height-("horizontal"==gallery_box_data.filmstrip_direction?e:0)-40},500),bwg_set_filmstrip_pos(bwg_popup_current_height-40,"",gallery_box_data)),jQuery(".bwg_resize-full").attr("class","bwg-icon-expand bwg_ctrl_btn bwg_resize-full"),jQuery(".bwg_resize-full").attr("title",bwg_objectsL10n.bwg_maximize)):(bwg_popup_current_width=jQuery(window).width(),bwg_popup_current_height=window.innerHeight,jQuery("#spider_popup_wrap").animate({width:jQuery(window).width(),height:window.innerHeight,left:0,top:0,margin:0,zIndex:100002},500),jQuery(".bwg_image_wrap").animate({width:jQuery(window).width()-e},500),jQuery(".bwg_image_container").animate({height:bwg_popup_current_height-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0),width:bwg_popup_current_width-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)},500),jQuery(".bwg_popup_image").animate({maxWidth:jQuery(window).width()-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)},{duration:500,complete:function(){bwg_change_watermark_container()}}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").animate({maxWidth:jQuery(window).width()-e-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),maxHeight:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)},{duration:500,complete:function(){bwg_resize_instagram_post(),bwg_change_watermark_container()}}),"width"==gallery_box_data.width_or_height?(jQuery(".bwg_filmstrip_container").animate({width:jQuery(window).width()-("horizontal"==gallery_box_data.filmstrip_direction?e:0)},500),jQuery(".bwg_filmstrip").animate({width:jQuery(window).width()-("horizontal"==gallery_box_data.filmstrip_direction?e:0)-40},500),bwg_set_filmstrip_pos(jQuery(window).width()-("horizontal"==gallery_box_data.filmstrip_direction?e:0)-40,"",gallery_box_data)):(jQuery(".bwg_filmstrip_container").animate({height:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?e:0)},500),jQuery(".bwg_filmstrip").animate({height:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?e:0)-40},500),bwg_set_filmstrip_pos(window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?e:0)-40,"",gallery_box_data)),jQuery(".bwg_resize-full").attr("class","bwg-icon-compress bwg_ctrl_btn bwg_resize-full"),jQuery(".bwg_resize-full").attr("title",bwg_objectsL10n.bwg_restore),jQuery(".spider_popup_close").attr("class","bwg_ctrl_btn spider_popup_close_fullscreen"))}function bwg_popup_resize_lightbox(){void 0!==jQuery().fullscreen&&jQuery.isFunction(jQuery().fullscreen)&&(jQuery.fullscreen.isFullScreen()||(jQuery(".bwg_resize-full").show(),jQuery(".bwg_resize-full").hasClass("bwg-icon-compress")||jQuery(".bwg_resize-full").attr("class","bwg-icon-expand bwg_ctrl_btn bwg_resize-full"),jQuery(".bwg_resize-full").attr("title",bwg_objectsL10n.bwg_maximize),jQuery(".bwg_fullscreen").attr("class","bwg-icon-arrows-out bwg_ctrl_btn bwg_fullscreen"),jQuery(".bwg_fullscreen").attr("title",bwg_objectsL10n.fullscreen)));var e=0;(jQuery(".bwg_comment_container").hasClass("bwg_open")||jQuery(".bwg_ecommerce_container").hasClass("bwg_open"))&&(e=gallery_box_data.lightbox_comment_width),e>jQuery(window).width()?(e=jQuery(window).width(),jQuery(".bwg_comment_container").css({width:e}),jQuery(".bwg_ecommerce_container").css({width:e}),jQuery(".spider_popup_close_fullscreen").hide()):jQuery(".spider_popup_close_fullscreen").show(),window.innerHeight>gallery_box_data.image_height&&1!=gallery_box_data.open_with_fullscreen&&!jQuery(".bwg_resize-full").hasClass("bwg-icon-compress")?(jQuery("#spider_popup_wrap").css({height:gallery_box_data.image_height,top:"50%",marginTop:-gallery_box_data.image_height/2,zIndex:100002}),jQuery(".bwg_image_container").css({height:gallery_box_data.image_height-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),jQuery(".bwg_image_info").css("height","auto"),jQuery(".bwg_image_info_container1").height()<jQuery(".bwg_image_info").height()+jQuery(".bwg_toggle_container").height()+bwg_image_info_pos+2*parseInt(gallery_box_data.lightbox_info_margin)&&jQuery(".bwg_image_info").css({height:jQuery(".bwg_image_info_container1").height()-jQuery(".bwg_toggle_container").height()-bwg_image_info_pos-2*parseInt(gallery_box_data.lightbox_info_margin)}),jQuery(".bwg_popup_image").css({maxHeight:gallery_box_data.image_height-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxHeight:gallery_box_data.image_height-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),"vertical"==gallery_box_data.filmstrip_direction&&(jQuery(".bwg_filmstrip_container").css({height:gallery_box_data.image_height}),jQuery(".bwg_filmstrip").css({height:gallery_box_data.image_height-40})),bwg_popup_current_height=gallery_box_data.image_height):(jQuery("#spider_popup_wrap").css({height:window.innerHeight,top:0,marginTop:0,zIndex:100002}),jQuery(".bwg_image_container").css({height:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),jQuery(".bwg_image_info").css("height","auto"),jQuery(".bwg_image_info_container1").height()<jQuery(".bwg_image_info").height()+jQuery(".bwg_toggle_container").height()+bwg_image_info_pos+2*parseInt(gallery_box_data.lightbox_info_margin)&&jQuery(".bwg_image_info").css({height:jQuery(".bwg_image_info_container1").height()-jQuery(".bwg_toggle_container").height()-bwg_image_info_pos-2*parseInt(gallery_box_data.lightbox_info_margin)}),jQuery(".bwg_popup_image").css({maxHeight:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxHeight:window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0)}),"vertical"==gallery_box_data.filmstrip_direction&&(jQuery(".bwg_filmstrip_container").css({height:window.innerHeight}),jQuery(".bwg_filmstrip").css({height:window.innerHeight-40})),bwg_popup_current_height=window.innerHeight),jQuery(window).width()>=gallery_box_data.image_width&&1!=gallery_box_data.open_with_fullscreen?(jQuery("#spider_popup_wrap").css({width:gallery_box_data.image_width,left:"50%",marginLeft:-gallery_box_data.image_width/2,zIndex:100002}),jQuery(".bwg_image_wrap").css({width:gallery_box_data.image_width-e}),jQuery(".bwg_image_container").css({width:gallery_box_data.image_width-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)-e}),jQuery(".bwg_image_info").css("height","auto"),jQuery(".bwg_image_info_container1").height()<jQuery(".bwg_image_info").height()+jQuery(".bwg_toggle_container").height()+bwg_image_info_pos+2*parseInt(gallery_box_data.lightbox_info_margin)&&jQuery(".bwg_image_info").css({height:jQuery(".bwg_image_info_container1").height()-jQuery(".bwg_toggle_container").height()-bwg_image_info_pos-2*parseInt(gallery_box_data.lightbox_info_margin)}),jQuery(".bwg_popup_image").css({maxWidth:gallery_box_data.image_width-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)-e}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxWidth:gallery_box_data.image_width-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)-e}),"horizontal"==gallery_box_data.filmstrip_direction&&(jQuery(".bwg_filmstrip_container").css({width:gallery_box_data.image_width-e}),jQuery(".bwg_filmstrip").css({width:gallery_box_data.image_width-e-40})),bwg_popup_current_width=gallery_box_data.image_width):(jQuery("#spider_popup_wrap").css({width:jQuery(window).width(),left:0,marginLeft:0,zIndex:100002}),jQuery(".bwg_image_wrap").css({width:jQuery(window).width()-e}),jQuery(".bwg_image_container").css({width:jQuery(window).width()-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)-e}),jQuery(".bwg_popup_image").css({maxWidth:jQuery(window).width()-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)-e}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxWidth:jQuery(window).width()-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0)-e}),"horizontal"==gallery_box_data.filmstrip_direction&&(jQuery(".bwg_filmstrip_container").css({width:jQuery(window).width()-e}),jQuery(".bwg_filmstrip").css({width:jQuery(window).width()-e-40})),bwg_popup_current_width=jQuery(window).width()),bwg_resize_instagram_post(),bwg_change_watermark_container(),window.innerHeight>gallery_box_data.image_height-2*gallery_box_data.lightbox_close_btn_top&&jQuery(window).width()>=gallery_box_data.image_width-2*gallery_box_data.lightbox_close_btn_right&&1!=gallery_box_data.open_with_fullscreen?jQuery(".spider_popup_close_fullscreen").attr("class","spider_popup_close"):jQuery("#spider_popup_wrap").width()<jQuery(window).width()&&jQuery("#spider_popup_wrap").height()<jQuery(window).height()&&jQuery(".spider_popup_close").attr("class","bwg_ctrl_btn spider_popup_close_fullscreen");var t=gallery_box_data.bwg_ctrl_btn_container_height;"bottom"==gallery_box_data.lightbox_ctrl_btn_pos&&jQuery(".bwg_toggle_container i").hasClass("bwg-icon-caret-down")&&jQuery(".bwg_toggle_container").css("bottom",t+"px"),"top"==gallery_box_data.lightbox_ctrl_btn_pos&&jQuery(".bwg_toggle_container i").hasClass("bwg-icon-caret-up")&&jQuery(".bwg_toggle_container").css("top",t+"px")}function bwg_rating(e,t,i,a){lightbox_rate_stars_count=gallery_box_data.lightbox_rate_stars_count,lightbox_rate_size=gallery_box_data.lightbox_rate_size,lightbox_rate_icon=gallery_box_data.lightbox_rate_icon;var _="Not rated yet.";0!=i&&""!=i&&(_=parseFloat(i).toFixed(1)+"\n Votes: "+t),void 0!==jQuery().raty&&jQuery.isFunction(jQuery().raty)&&jQuery("#bwg_star").raty({score:function(){return jQuery(this).attr("data-score")},starType:"i",number:lightbox_rate_stars_count,size:lightbox_rate_size,readOnly:function(){return!!e},noRatedMsg:"Not rated yet.",click:function(t,e){jQuery("#bwg_star").hide(),jQuery("#bwg_rated").show(),spider_set_input_value("rate_ajax_task","save_rate"),jQuery.when(spider_rate_ajax_save("bwg_rate_form")).then(function(){gallery_box_data.data[a].rate=t,++gallery_box_data.data[a].rate_count;var e=parseFloat(jQuery("#bwg_star").attr("data-score"));gallery_box_data.data[a].avg_rating=e?((e+t)/2).toFixed(1):t.toFixed(1),bwg_rating(gallery_box_data.data[a].rate,gallery_box_data.data[a].rate_count,gallery_box_data.data[a].avg_rating,gallery_box_data.current_image_key)})},starHalf:"bwg-icon-"+lightbox_rate_icon+("star"==lightbox_rate_icon?"-half":"")+"-o",starOff:"bwg-icon-"+lightbox_rate_icon+"-o",starOn:"bwg-icon-"+lightbox_rate_icon,cancelOff:"bwg-icon-minus-square-o",cancelOn:"bwg-icon-minus-square-o",cancel:!1,cancelHint:"Cancel your rating.",hints:[_,_,_,_,_],alreadyRatedMsg:parseFloat(i).toFixed(1)+"\nYou have already rated.\nVotes: "+t})}function changeDownloadsTotal(e){var t=0;0==jQuery("[name=option_show_digital_items_count]").val()?jQuery("[name=selected_download_item]:checked").each(function(){t+=Number(jQuery(this).closest("tr").attr("data-price"))}):jQuery(".digital_image_count").each(function(){0!=Number(jQuery(this).val())&&(t+=Number(jQuery(this).closest("tr").attr("data-price"))*Number(jQuery(this).val()))}),t=t.toFixed(2).toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),jQuery(".product_downloads_price").html(t)}function changeMenualTotal(e){Number(jQuery(e).val())<=0&&jQuery(e).val("1");var t=Number(jQuery(e).val()),i=Number(jQuery(".product_manual_price").attr("data-actual-price"));i=(i*=t).toFixed(2).toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),jQuery(".product_manual_price").html(i)}function onSelectableParametersChange(e){var t=0,i=gallery_box_data.data[jQuery("#bwg_current_image_key").val()].pricelist_manual_price?gallery_box_data.data[jQuery("#bwg_current_image_key").val()].pricelist_manual_price:"0";i=parseFloat(i.replace(",",""));var a=jQuery(e).closest(".image_selected_parameter").attr("data-parameter-type"),_=jQuery(e).val();_=_.split("*");var r=parseFloat(_[1]),s=_[0],o=Number(jQuery(e).closest(".image_selected_parameter").find(".already_selected_values").val());if("4"==a||"5"==a){var l=parseFloat(s+r);jQuery(e).closest(".image_selected_parameter").find(".already_selected_values").val(l)}else if("6"==a){if(0==jQuery(e).is(":checked"))var n=o-parseFloat(s+r);else n=o+parseFloat(s+r);jQuery(e).closest(".image_selected_parameter").find(".already_selected_values").val(n)}jQuery(".already_selected_values").each(function(){t+=Number(jQuery(this).val())}),i+=t,jQuery(".product_manual_price").attr("data-actual-price",i),i=(i*=Number(jQuery(".image_count").val())<=0?1:Number(jQuery(".image_count").val())).toFixed(2).toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),jQuery(".product_manual_price").html(i)}function onBtnClickAddToCart(){var e=jQuery("[name=type]").val();if(""!=e){var t={};if("manual"==e){var i=jQuery(".image_count").val(),a={};jQuery(".manual").find(".image_selected_parameter").each(function(){var e=jQuery(this).attr("data-parameter-id"),t="";switch(jQuery(this).attr("data-parameter-type")){case"2":t=jQuery(this).find("input").val();break;case"3":t=jQuery(this).find("textarea").val();break;case"4":t=jQuery(this).find("select :selected").val();break;case"5":t=jQuery(this).find("[type=radio]:checked").val();break;case"6":var i=[];jQuery(this).find("[type=checkbox]:checked").each(function(){i.push(jQuery(this).val())}),t=i}a[e]=t}),t.count=i,t.parameters=a,t.price=jQuery(".product_manual_price").attr("data-price").replace(",","")}else{var _=[];if(0==jQuery("[name=option_show_digital_items_count]").val()){if(0==jQuery("[name=selected_download_item]:checked").length)return void jQuery(".add_to_cart_msg").html("You must select at least one item.");jQuery("[name=selected_download_item]:checked").each(function(){var e={};e.id=jQuery(this).val(),e.count=1,e.price=jQuery(this).closest("tr").attr("data-price"),_.push(e)})}else jQuery(".digital_image_count").each(function(){var e={};0<jQuery(this).val()&&(e.id=jQuery(this).closest("tr").attr("data-id"),e.price=jQuery(this).closest("tr").attr("data-price"),e.count=jQuery(this).val(),_.push(e))});if(0==(t.downloadItems=_).length)return void jQuery(".add_to_cart_msg").html("Please select at least one item")}var r=jQuery("#ajax_url").val(),s={action:"add_cart",task:"add_cart",controller:"checkout",image_id:jQuery("#bwg_popup_image").attr("image_id"),type:e,data:JSON.stringify(t)};jQuery.ajax({type:"POST",url:r,data:s,success:function(e){responseData=JSON.parse(e),jQuery(".add_to_cart_msg").html(responseData.msg),jQuery(".products_in_cart").html(responseData.products_in_cart),1==responseData.redirect&&(window.location.href="<?php echo get_permalink($options->checkout_page);?>")},beforeSend:function(){},complete:function(){}})}else jQuery(".add_to_cart_msg").html("Please select Prints and products or Downloads")}function onBtnViewCart(){var e=jQuery("[name=option_checkout_page]").val();jQuery("#bwg_ecommerce_form").attr("action",e),jQuery("#bwg_ecommerce_form").submit()}function bwg_load_visible_images(e,t,i){0<=e-t&&(startPoint=e-t),i<e+t&&(endPoint=i);for(var a=startPoint;a<=endPoint;a++){var _=jQuery("#bwg_filmstrip_thumbnail_"+a+" img");_.removeClass("hidden"),_.attr("src",_.data("url"))}}function bwg_load_filmstrip(){for(var e=1;e<=total_thumbnail_count;e++){var t;if(leftIndex=startPoint-e,rightIndex=endPoint+e,rightIndex<total_thumbnail_count)(t=jQuery("#bwg_filmstrip_thumbnail_"+rightIndex+" img")).removeClass("hidden"),t.attr("src",t.data("url"));if(0<=leftIndex)(t=jQuery("#bwg_filmstrip_thumbnail_"+leftIndex+" img")).removeClass("hidden"),t.attr("src",t.data("url"))}jQuery(".bwg_filmstrip_thumbnail").each(function(){var e=jQuery(this).find("img");void 0===e.attr("style")&&(0==e.width()?e.on("load",function(){jQuery(this).find(".bwg_filmstrip_thumbnail_img_wrap"),bwg_filmstrip_thumb_view(e)}):(jQuery(this).find(".bwg_filmstrip_thumbnail_img_wrap"),bwg_filmstrip_thumb_view(e)))})}function bwg_filmstrip_thumb_view(e){var t=gallery_box_data.image_filmstrip_height,i=gallery_box_data.image_filmstrip_width,a=i-gallery_box_data.filmstrip_thumb_right_left_space,_=t,r=Math.max(i/e.width(),t/e.height()),s=e.width()*r,o=e.height()*r;e.css({width:s,height:o,marginLeft:(a-s)/2,marginTop:(_-o)/2})}function spider_display_embed(e,t,i,a){var _="";switch(e){case"EMBED_OEMBED_YOUTUBE_VIDEO":var r="<iframe ";for(attr in""!=i&&(r+=' src="//www.youtube.com/embed/'+i+'?enablejsapi=1&wmode=transparent"'),a)/src/i.test(attr)||""!=attr&&""!=a[attr]&&(r+=" "+attr+'="'+a[attr]+'"');_+=r+=" ></iframe>";break;case"EMBED_OEMBED_VIMEO_VIDEO":var s="<iframe ";for(attr in""!=i&&(s+=' src="//player.vimeo.com/video/'+i+'?enablejsapi=1"'),a)/src/i.test(attr)||""!=attr&&""!=a[attr]&&(s+=" "+attr+'="'+a[attr]+'"');_+=s+=" ></iframe>";break;case"EMBED_OEMBED_FLICKR_IMAGE":var o="<div ";for(attr in a)/src/i.test(attr)||""!=attr&&""!=a[attr]&&(o+=" "+attr+'="'+a[attr]+'"');o+=" >",""!=i&&(o+='<img src="'+i+'" style="max-width:100% !important; max-height:100% !important; width:auto !important; height:auto !important;">'),_+=o+="</div>";break;case"EMBED_OEMBED_FLICKR_VIDEO":break;case"EMBED_OEMBED_INSTAGRAM_VIDEO":var l="<div ";for(attr in a)/src/i.test(attr)||""!=attr&&""!=a[attr]&&(l+=" "+attr+'="'+a[attr]+'"');l+=" >",""!=i&&(l+='<video style="width:auto !important; height:auto !important; max-width:100% !important; max-height:100% !important; margin:0 !important;" controls><source src="'+i+'" type="video/mp4"> Your browser does not support the video tag. </video>'),_+=l+="</div>";break;case"EMBED_OEMBED_INSTAGRAM_IMAGE":l="<div ";for(attr in a)/src/i.test(attr)||""!=attr&&""!=a[attr]&&(l+=" "+attr+'="'+a[attr]+'"');l+=" >",""!=i&&(l+='<img src="//instagram.com/p/'+i+'/media/?size=l" style=" max-width:100% !important; max-height:100% !important; width:auto; height:auto;">'),_+=l+="</div>";break;case"EMBED_OEMBED_INSTAGRAM_POST":l="<div ";for(attr in a)/src/i.test(attr)||""!=attr&&""!=a[attr]&&(l+=" "+attr+'="'+a[attr]+'"',"CLASS"!=attr&&"class"!=attr&&"Class"!=attr||(obj_class=a[attr]));l+=" >",""!=i&&(l+='<iframe class="inner_instagram_iframe_'+obj_class+'" src="//instagr.am/p/'+i+'/embed/?enablejsapi=1" style="max-width:100% !important; max-height:100% !important; width:100%; height:100%; margin:0; display:table-cell; vertical-align:middle;"frameborder="0" scrolling="no" allowtransparency="false" allowfullscreen></iframe>'),_+=l+="</div>";break;case"EMBED_OEMBED_FACEBOOK_IMAGE":var n="<span ";for(attr in a)/src/i.test(attr)||""!=attr&&""!=a[attr]&&(n+=" "+attr+'="'+a[attr]+'"');n+=" >",""!=i&&(n+='<img src="'+t+'" style=" max-width:100% !important; max-height:100% !important; width:auto; height:100%;">'),_+=n+="</span>";break;case"EMBED_OEMBED_FACEBOOK_VIDEO":var g="<div ";for(attr in a)/src/i.test(attr)||""!=attr&&""!=a[attr]&&(g+=" "+attr+'="'+a[attr]+'"');g+=" >",""!=i&&(g+='<iframe src="//www.facebook.com/video/embed?video_id='+t+'&enablejsapi=1&wmode=transparent" style="max-width:100% !important; max-height:100% !important; width:100%; height:100%; margin:0; display:table-cell; vertical-align:middle;"frameborder="0" class="bwg_fb_video" scrolling="no" allowtransparency="false" allowfullscreen></iframe>'),_+=g+="</div>";break;case"EMBED_OEMBED_DAILYMOTION_VIDEO":var w="<iframe ";for(attr in""!=i&&(w+=' src="//www.dailymotion.com/embed/video/'+i+'?api=postMessage"'),a)/src/i.test(attr)||""!=attr&&""!=a[attr]&&(w+=" "+attr+'="'+a[attr]+'"');_+=w+=" ></iframe>";break;case"EMBED_OEMBED_IMGUR":var b="<div ";for(attr in a)/src/i.test(attr)||""!=attr&&""!=a[attr]&&(l+=" "+attr+'="'+a[attr]+'"');b+=" >",""!=i&&(b+='<img src="'+i+'" style="max-width:100% !important; max-height:100% !important; width:auto; height:auto !important;">'),_+=b+="</div>";break;case"EMBED_OEMBED_GOOGLE_PHOTO_IMAGE":var u="<div ";for(attr in a)/src/i.test(attr)||""!=attr&&""!=a[attr]&&(u+=" "+attr+'="'+a[attr]+'"');u+=" >",""!=i&&(u+='<img src="'+t+'" style=" max-width:100% !important; max-height:100% !important; width:auto; height:auto;">'),_+=u+="</div>";break;default:var d={content:""};jQuery(document).trigger("bwg_display_embed",[d,e,t,i,a]),_=d.content}return _}function bwg_add_instagram_gallery(e,s){if(!0===(s=void 0!==s&&s)){if(bwg_check_instagram_gallery_input(e,s))return!1;var t="0";1==jQuery("input[name=popup_instagram_post_gallery]:checked").val()&&(t="1");var i=encodeURI(jQuery("#popup_instagram_gallery_source").val()),a=encodeURI(jQuery("#popup_instagram_image_number").val())}else{if(bwg_check_instagram_gallery_input(e,s))return!1;if(!bwg_check_gallery_empty(!1,!0))return!1;t="0";1==jQuery("input[name=instagram_post_gallery]:checked").val()&&(t="1");i=encodeURI(jQuery("#gallery_source").val());var _=jQuery("input[name=update_flag]:checked").val();a=encodeURI(jQuery("#autogallery_image_number").val())}jQuery("#bulk_embed").hide(),jQuery("#loading_div").show();var o=[],r={action:"addInstagramGallery",instagram_user:i,instagram_access_token:e,whole_post:t,autogallery_image_number:a,update_flag:_,async:!0};jQuery.post(ajax_url,r,function(e){if(0==e)return alert("Error: cannot get response from the server."),jQuery("#loading_div").hide(),s&&jQuery("#bulk_embed").show(),!1;var t=e.indexOf("WD_delimiter_start"),i=e.indexOf("WD_delimiter_end");if(-1==t||-1==i)return jQuery("#loading_div").hide(),s&&jQuery("#bulk_embed").show(),!1;if(e=e.substring(t+18,i),response_JSON=jQuery.parseJSON(e),response_JSON){if("error"==response_JSON[0])return alert("Error: "+jQuery.parseJSON(e)[1]),jQuery("#loading_div").hide(),s&&jQuery("#bulk_embed").show(),!1;for(var a=response_JSON.length,_=1;_<=a;_++)if(0!=response_JSON[a-_]){var r=response_JSON[a-_];o.push(r)}return bwg_add_image(o),s||(bwg_gallery_update_flag(),jQuery("#tr_instagram_gallery_add_button").hide()),jQuery("#loading_div").hide(),s&&jQuery(".opacity_bulk_embed").hide(),"ok"}return alert("There is some error. Cannot add Instagram gallery."),jQuery("#loading_div").hide(),s&&jQuery("#bulk_embed").show(),!1})}var bwg=0,isMobile=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()),bwg_click=isMobile?"touchend":"click",bwg_params=[],bwg_params_ib=[],bwg_params_carousel=[];function bwg_main_ready(){1==bwg_objectsL10n.lazy_load&&jQuery(function(){jQuery("img.bwg_lazyload").lazy({onFinishedAll:function(){jQuery(".lazy_loader").removeClass("lazy_loader")}})}),jQuery(".bwg_container").each(function(){0<jQuery(this).find(".wd_error").length&&bwg_container_loaded(jQuery(this).data("bwg"))}),bwg_document_ready(),jQuery(".bwg-thumbnails, .bwg-masonry-thumbnails, .bwg-album-thumbnails").each(function(){bwg_all_thumnails_loaded(this)}),jQuery(".bwg-mosaic-thumbnails").each(function(){bwg_thumbnail_mosaic(this)}),bwg_slideshow_ready(),bwg_carousel_ready(),bwg_carousel_onload(),bwg_image_browser_ready()}function bwg_resize_search_line(){jQuery(".search_line").each(function(){var e=jQuery(this);e.width()<410?e.addClass("bwg-search-line-responsive"):e.removeClass("bwg-search-line-responsive")})}function bwg_slideshow_resize(){jQuery(".bwg_slideshow").each(function(){bwg=jQuery(this).attr("data-bwg"),jQuery("#bwg_slideshow_image_container_"+bwg).length&&(bwg_params[bwg]=JSON.parse(jQuery("#bwg_slideshow_image_container_"+bwg).attr("data-params")),bwg_params[bwg].event_stack=[],bwg_popup_resize(bwg))})}function bwg_blog_style_resize(){jQuery(".bwg_blog_style").each(function(){bwg=jQuery(this).attr("data-bwg"),jQuery(".bwg_embed_frame_16x9_"+bwg).each(function(e){jQuery(this).width(jQuery(this).parent().width()),jQuery(this).height(.5625*jQuery(this).width())}),jQuery(".bwg_embed_frame_instapost_"+bwg).each(function(e){jQuery(this).width(jQuery(this).parent().width()),jQuery(this).height((jQuery(this).width()-16)*jQuery(this).attr("data-height")/jQuery(this).attr("data-width")+96)})})}function bwg_blog_style_onload(){jQuery(".bwg_blog_style").each(function(){bwg=jQuery(this).attr("data-bwg");jQuery("#bwg_blog_style_"+bwg);jQuery(".bwg_embed_frame_16x9_"+bwg).each(function(e){if(jQuery(".bwg_blog_style_image_"+bwg).find(".fluid-width-video-wrapper").length){jQuery(".fluid-width-video-wrapper").removeAttr("style");var t=jQuery(this).parents(".bwg_blog_style_image_"+bwg).find(".fluid-width-video-wrapper").contents();jQuery(this).parents(".fluid-width-video-wrapper").replaceWith(t)}jQuery(this).width(jQuery(this).parents(".bwg_blog_style_image_"+bwg).width()),jQuery(this).height(.5625*jQuery(this).width())}),jQuery(".bwg_embed_frame_instapost_"+bwg).each(function(e){jQuery(this).width(jQuery(this).parents(".bwg_blog_style_image_"+bwg).width()),jQuery(this).height((jQuery(this).width()-16)*jQuery(this).attr("data-height")/jQuery(this).attr("data-width")+96)}),bwg_container_loaded(bwg)})}function bwg_blog_style_ready(){jQuery(".bwg_blog_style").each(function(){var e=jQuery(this).attr("data-bwg");bwg_container_loaded(e);var t=!1;jQuery(this).find(".bwg_lightbox_"+e).on("click",function(){var e=jQuery(this).attr("data-image-id");if(jQuery("#bwg_blog_style_share_buttons_"+e).removeAttr("data-open-comment"),!t)return t=!0,setTimeout(function(){t=!1},100),bwg_gallery_box(e,jQuery(this).closest(".bwg_container")),!1}),jQuery(".bwg_lightbox_"+e+" .bwg_ecommerce").on("click",function(e){if(e.stopPropagation(),!t)return t=!0,setTimeout(function(){t=!1},100),bwg_gallery_box(jQuery(this).attr("data-image-id"),jQuery(this).closest(".bwg_container"),!0),!1});var i=window.location.hash.substring(1);i&&"-1"!=i.indexOf("bwg")&&(bwg_hash_array=i.replace("bwg","").split("/"),"<?php echo $params_array['gallery_id']; ?>"==bwg_hash_array[0]&&bwg_gallery_box(bwg_hash_array[1]))})}function bwg_slideshow_focus(){jQuery(".bwg_slideshow").each(function(){bwg=jQuery(this).attr("data-bwg"),jQuery("#bwg_slideshow_image_container_"+bwg).length&&(bwg_params[bwg]=JSON.parse(jQuery("#bwg_slideshow_image_container_"+bwg).attr("data-params")),bwg_params[bwg].event_stack=[],window.clearInterval(window["bwg_playInterval"+bwg]),jQuery(".bwg_ctrl_btn_"+bwg).hasClass("bwg-icon-play")||bwg_play(bwg_params[bwg].data,bwg))})}function bwg_slideshow_blur(){jQuery(".bwg_slideshow").each(function(){bwg=jQuery(this).attr("data-bwg"),jQuery("#bwg_slideshow_image_container_"+bwg).length&&(bwg_params[bwg]=JSON.parse(jQuery("#bwg_slideshow_image_container_"+bwg).attr("data-params")),bwg_params[bwg].event_stack=[],window.clearInterval(window["bwg_playInterval"+bwg]))})}function bwg_carousel_ready(){jQuery(".bwg-carousel").each(function(){var t=jQuery(this).data("bwg");bwg_params_carousel[t]=[],bwg_params_carousel[t].bwg_currentCenterNum=1,bwg_params_carousel[t].bwg_currentlyMoving=!1,bwg_params_carousel[t].data=[],jQuery("#spider_carousel_left-ico_"+t).on("click",function(){bwg_params_carousel[t].carousel.prev()}),jQuery("#spider_carousel_right-ico_"+t).on("click",function(){bwg_params_carousel[t].carousel.next()}),parseInt(bwg_params_carousel[t].carousel_enable_autoplay)&&(jQuery(".bwg_carousel_play_pause_"+t).attr("title",bwg_objectsL10n.pause),jQuery(".bwg_carousel_play_pause_"+t).attr("class","bwg-icon-pause bwg_ctrl_btn_"+t+" bwg_carousel_play_pause_"+t)),jQuery(".bwg_carousel_play_pause_"+t).on(bwg_click,function(e){jQuery(".bwg_ctrl_btn_"+t).hasClass("bwg-icon-play")?(jQuery(".bwg_carousel_play_pause_"+t).attr("title",bwg_objectsL10n.pause),jQuery(".bwg_carousel_play_pause_"+t).attr("class","bwg-icon-pause bwg_ctrl_btn_"+t+" bwg_carousel_play_pause_"+t),bwg_params_carousel[t].bwg_currentlyMoving=!1,bwg_params_carousel[t].carousel.start()):(jQuery(".bwg_carousel_play_pause_"+t).attr("title",bwg_objectsL10n.play),jQuery(".bwg_carousel_play_pause_"+t).attr("class","bwg-icon-play bwg_ctrl_btn_"+t+" bwg_carousel_play_pause_"+t),bwg_params_carousel[t].bwg_currentlyMoving=!0,bwg_params_carousel[t].carousel.pause()),e.stopPropagation(),e.stopImmediatePropagation()}),void 0!==jQuery().swiperight&&jQuery.isFunction(jQuery().swiperight)&&jQuery("#bwg_container1_"+t).swiperight(function(){bwg_params_carousel[t].carousel.prev()}),void 0!==jQuery().swipeleft&&jQuery.isFunction(jQuery().swipeleft)&&jQuery("#bwg_container1_"+t).swipeleft(function(){bwg_params_carousel[t].carousel.next()})})}function bwg_carousel_resize(){jQuery(".bwg-carousel").each(function(){var e=jQuery(this).data("bwg");bwg_carousel_params(e),bwg_params_carousel[e].carousel.pause(),bwg_carousel_watermark(e),jQuery(".bwg_ctrl_btn_"+e).hasClass("bwg-icon-play")||bwg_params_carousel[e].carousel.start()})}function bwg_carousel_onload(){jQuery(".bwg-carousel").each(function(){var e=jQuery(this).data("bwg");bwg_params_carousel[e]=jQuery(this).data("params"),bwg_carousel_watermark(e),bwg_carousel_params(e),bwg_container_loaded(e)})}function bwg_carousel_params(t){var e=jQuery("#bwg_container1_"+t).parent().width(),i=1;e<bwg_params_carousel[t].carousel_r_width?i=e/bwg_params_carousel[t].carousel_r_width:e=bwg_params_carousel[t].carousel_r_width,bwg_params_carousel[t].carousel_image_column_number>bwg_params_carousel[t].count&&(bwg_params_carousel[t].carousel_image_column_number=bwg_params_carousel[t].count),jQuery(".bwg_carousel_play_pause_"+t).css({display:parseInt(bwg_params_carousel[t].carousel_play_pause_butt)?"":"none"}),parseInt(bwg_params_carousel[t].carousel_prev_next_butt)?(jQuery("#bwg_carousel-right"+t).css({display:""}),jQuery("#bwg_carousel-left"+t).css({display:""})):(jQuery("#bwg_carousel-left"+t).css({display:"none"}),jQuery("#bwg_carousel-right"+t).css({display:"none"})),jQuery(".inner_instagram_iframe_bwg_embed_frame_"+t).each(function(){var e=jQuery(this).parent();bwg_params_carousel[t].image_height/(parseInt(e.attr("data-height"))+96)<bwg_params_carousel[t].image_width/parseInt(e.attr("data-width"))?(e.height(bwg_params_carousel[t].image_height*i),e.width((e.height()-96)*e.attr("data-width")/e.attr("data-height")+16)):(e.width(bwg_params_carousel[t].image_width*i),e.height((e.width()-16)*e.attr("data-height")/e.attr("data-width")+96))}),jQuery(".bwg_carousel_image_container_"+t).css({width:bwg_params_carousel[t].image_width*i,height:bwg_params_carousel[t].image_height*i}),jQuery(".bwg_carousel_watermark_text_"+t+", .bwg_carousel_watermark_text_"+t+":hover").css({fontSize:e*(bwg_params_carousel[t].watermark_font_size/bwg_params_carousel[t].image_width)*i}),jQuery(".bwg_carousel-image "+t).css({width:bwg_params_carousel[t].image_width*i,height:bwg_params_carousel[t].image_height*i}),jQuery(".bwg_carousel_watermark_container_"+t).css({width:bwg_params_carousel[t].image_width*i,height:bwg_params_carousel[t].image_height*i}),jQuery(".bwg_carousel_embed_video_"+t).css({width:bwg_params_carousel[t].image_width*i,height:bwg_params_carousel[t].image_height*i}),jQuery(".bwg_carousel_watermark_spun_"+t).css({width:bwg_params_carousel[t].image_width*i,height:bwg_params_carousel[t].image_height*i}),jQuery(".bwg_carousel-container"+t).css({width:e,height:bwg_params_carousel[t].image_height*i}),jQuery(".bwg_video_hide"+t).css({width:bwg_params_carousel[t].image_width*i,height:bwg_params_carousel[t].image_height*i}),bwg_params_carousel[t].carousel=jQuery("#bwg_carousel"+t).featureCarousel({containerWidth:e*i,containerHeight:bwg_params_carousel[t].image_height*i,fit_containerWidth:bwg_params_carousel[t].carousel_fit_containerWidth,largeFeatureWidth:bwg_params_carousel[t].image_width*i,largeFeatureHeight:bwg_params_carousel[t].image_height*i,smallFeaturePar:bwg_params_carousel[t].carousel_image_par,currentlyMoving:!1,startingFeature:bwg_params_carousel[t].bwg_currentCenterNum,featuresArray:[],timeoutVar:null,rotationsRemaining:0,autoPlay:1e3*bwg_params_carousel[t].car_inter,interval:1e3*bwg_params_carousel[t].carousel_interval,imagecount:bwg_params_carousel[t].carousel_image_column_number,bwg_number:t,enable_image_title:bwg_params_carousel[t].enable_image_title,borderWidth:0})}function bwg_carousel_watermark(e){var t=1,i=jQuery("#bwg_container1_"+e).parent().width();if(i<bwg_params_carousel[e].carousel_r_width&&(t=i/bwg_params_carousel[e].carousel_r_width),i>=bwg_params_carousel[e].image_width)bwg_carousel_change_watermark_container(e),jQuery("#bwg_carousel_play_pause-ico_"+e).css({fontSize:bwg_params_carousel[e].carousel_play_pause_btn_size}),jQuery(".bwg_carousel_watermark_image_"+e).css({maxWidth:bwg_params_carousel[e].watermark_width*t,maxHeight:bwg_params_carousel[e].watermark_height*t}),jQuery(".bwg_carousel_watermark_text_"+e+", .bwg_carousel_watermark_text_"+e+":hover").css({fontSize:t*bwg_params_carousel[e].watermark_font_size});else{var a=bwg_params_carousel[e].image_width/t;bwg_carousel_change_watermark_container(e),jQuery("#bwg_carousel_play_pause-ico_"+e).css({fontSize:i*bwg_params_carousel[e].carousel_play_pause_btn_size/a}),jQuery(".bwg_carousel_watermark_image_"+e).css({maxWidth:i*bwg_params_carousel[e].watermark_width/a,maxHeight:i*bwg_params_carousel[e].watermark_height/a}),jQuery(".bwg_carousel_watermark_text_"+e+", .bwg_carousel_watermark_text_"+e+":hover").css({fontSize:i*bwg_params_carousel[e].watermark_font_size/a})}}function bwg_carousel_change_watermark_container(a){jQuery(".bwg_carousel"+a).children().each(function(){if(2==jQuery(this).css("zIndex")){var e=jQuery(this).find("img");e.length||(e=jQuery(this).find("iframe"));var t=e.width(),i=e.height();jQuery(".bwg_carousel_watermark_spun_"+a).width(t),jQuery(".bwg_carousel_watermark_spun_"+a).height(i),jQuery(".bwg_carousel_title_spun_"+a).width(t),jQuery(".bwg_carouel_title_spun_"+a).height(i),jQuery(".bwg_carousel_watermark_"+a).css({display:"none"})}})}function bwg_carousel_preload(e,t){var i=jQuery(".bwg_carousel_preload").get();t||i.reverse();var a=0;jQuery(i).each(function(){if(1<++a)return!1;jQuery(this).parent().hasClass("bwg_carousel_embed_video_"+e)||jQuery(this).parent().hasClass("bwg_embed_frame_"+e)||jQuery(this).parent().hasClass("bwg_carousel_video")?(jQuery(this).attr("src",jQuery(this).attr("data-src")),jQuery(this).on("load",function(){jQuery(this).removeClass("bwg_carousel_preload")}),jQuery(this).parent().hasClass("bwg_carousel_video")&&(jQuery(".bwg_carousel_video")[0].load(),jQuery(this).parent().parent().removeClass("bwg_carousel_preload")),jQuery(this).removeAttr("data-src")):(jQuery(this).css({"background-image":"url('"+jQuery(this).attr("data-background")+"')",height:"100%"}),jQuery(this).removeClass("bwg_carousel_preload"),jQuery(this).removeAttr("data-background"))})}function bwg_slideshow_ready(){jQuery(".bwg_slideshow").each(function(){var i=jQuery(this).data("bwg");if(jQuery("#bwg_slideshow_image_container_"+i).length){bwg_params[i]=JSON.parse(jQuery("#bwg_slideshow_image_container_"+i).attr("data-params")),bwg_params[i].event_stack=[],bwg_container_loaded(i);var e=bwg_params[i].data;void 0!==jQuery().swiperight&&jQuery.isFunction(jQuery().swiperight)&&jQuery("#bwg_container1_"+i).swiperight(function(){return bwg_change_image(parseInt(jQuery("#bwg_current_image_key_"+i).val()),0<=parseInt(jQuery("#bwg_current_image_key_"+i).val())-bwg_iterator(i)?(parseInt(jQuery("#bwg_current_image_key_"+i).val())-bwg_iterator(i))%e.length:e.length-1,e,"",i),!1}),void 0!==jQuery().swipeleft&&jQuery.isFunction(jQuery().swipeleft)&&jQuery("#bwg_container1_"+i).swipeleft(function(){return bwg_change_image(parseInt(jQuery("#bwg_current_image_key_"+i).val()),parseInt(jQuery("#bwg_current_image_key_"+i).val())+bwg_iterator(i)%e.length,e,"",i),!1});var t=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase())?"touchend":"click";bwg_popup_resize(i),jQuery(".bwg_slideshow_watermark_"+i).css({display:"none"}),jQuery(".bwg_slideshow_title_text_"+i).css({display:"none"}),jQuery(".bwg_slideshow_description_text_"+i).css({display:"none"}),setTimeout(function(){bwg_change_watermark_container(i)},500),"horizontal"==bwg_params[i].filmstrip_direction?jQuery(".bwg_slideshow_image_container_"+i).height(jQuery(".bwg_slideshow_image_wrap_"+i).height()-bwg_params[i].slideshow_filmstrip_height):jQuery(".bwg_slideshow_image_container_"+i).width(jQuery(".bwg_slideshow_image_wrap_"+i).width()-bwg_params[i].slideshow_filmstrip_width);var a=/Firefox/i.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel";jQuery(".bwg_slideshow_filmstrip_"+i).bind(a,function(e){var t=window.event||e;return 0<((t=t.originalEvent?t.originalEvent:t).detail?-40*t.detail:t.wheelDelta)?jQuery(".bwg_slideshow_filmstrip_left_"+i).trigger("click"):jQuery(".bwg_slideshow_filmstrip_right_"+i).trigger("click"),!1}),jQuery(".bwg_slideshow_filmstrip_right_"+i).on(t,function(){jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).stop(!0,!1),"left"==bwg_params[i].left_or_top?"width"==bwg_params[i].width_or_height?(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().left>=-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).width()-jQuery(".bwg_slideshow_filmstrip_"+i).width())&&(jQuery(".bwg_slideshow_filmstrip_left_"+i).css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().left<-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).width()-jQuery(".bwg_slideshow_filmstrip_"+i).width()-(parseInt(bwg_params[i].filmstrip_thumb_margin_hor)+parseInt(bwg_params[i].slideshow_filmstrip_width)))?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).animate({left:-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).width()-jQuery(".bwg_slideshow_filmstrip_"+i).width())},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).animate({left:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().left-(parseInt(bwg_params[i].filmstrip_thumb_margin_hor)+parseInt(bwg_params[i].slideshow_filmstrip_width))},500,"linear")),window.setTimeout(function(){jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().left==-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).width()-jQuery(".bwg_slideshow_filmstrip_"+i).width())&&jQuery(".bwg_slideshow_filmstrip_right_"+i).css({opacity:.3,filter:"Alpha(opacity=30)"})},500)):(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().left>=-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).height()-jQuery(".bwg_slideshow_filmstrip_"+i).height())&&(jQuery(".bwg_slideshow_filmstrip_left_"+i).css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().left<-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).height()-jQuery(".bwg_slideshow_filmstrip_"+i).height()-(parseInt(bwg_params[i].filmstrip_thumb_margin_hor)+parseInt(bwg_params[i].slideshow_filmstrip_width)))?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).animate({left:-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).height()-jQuery(".bwg_slideshow_filmstrip_"+i).height())},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).animate({left:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().left-(parseInt(bwg_params[i].filmstrip_thumb_margin_hor)+parseInt(bwg_params[i].slideshow_filmstrip_width))},500,"linear")),window.setTimeout(function(){jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().left==-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).height()-jQuery(".bwg_slideshow_filmstrip_"+i).height())&&jQuery(".bwg_slideshow_filmstrip_right_"+i).css({opacity:.3,filter:"Alpha(opacity=30)"})},500)):"width"==bwg_params[i].width_or_height?(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().top>=-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).width()-jQuery(".bwg_slideshow_filmstrip_"+i).width())&&(jQuery(".bwg_slideshow_filmstrip_left_"+i).css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().top<-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).width()-jQuery(".bwg_slideshow_filmstrip_"+i).width()-parseInt(bwg_params[i].filmstrip_thumb_margin_hor)+parseInt(bwg_params[i].slideshow_filmstrip_width))?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).animate({top:-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).width()-jQuery(".bwg_slideshow_filmstrip_"+i).width())},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).animate({top:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().top-parseInt(bwg_params[i].filmstrip_thumb_margin_hor)+parseInt(bwg_params[i].slideshow_filmstrip_width)},500,"linear")),window.setTimeout(function(){jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().top==-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).width()-jQuery(".bwg_slideshow_filmstrip_"+i).width())&&jQuery(".bwg_slideshow_filmstrip_right_"+i).css({opacity:.3,filter:"Alpha(opacity=30)"})},500)):(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().top>=-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).height()-jQuery(".bwg_slideshow_filmstrip_"+i).height())&&(jQuery(".bwg_slideshow_filmstrip_left_"+i).css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().top<-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).height()-jQuery(".bwg_slideshow_filmstrip_"+i).height()-(parseInt(bwg_params[i].filmstrip_thumb_margin_hor)+parseInt(bwg_params[i].slideshow_filmstrip_width)))?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).animate({top:-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).height()-jQuery(".bwg_slideshow_filmstrip_"+i).height())},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).animate({top:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().top-(parseInt(bwg_params[i].filmstrip_thumb_margin_hor)+parseInt(bwg_params[i].slideshow_filmstrip_width))},500,"linear")),window.setTimeout(function(){jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().top==-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).height()-jQuery(".bwg_slideshow_filmstrip_"+i).height())&&jQuery(".bwg_slideshow_filmstrip_right_"+i).css({opacity:.3,filter:"Alpha(opacity=30)"})},500))}),jQuery(".bwg_slideshow_filmstrip_left_"+i).on(t,function(){jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).stop(!0,!1),"left"==bwg_params[i].left_or_top?(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().left<0&&(jQuery(".bwg_slideshow_filmstrip_right_"+i).css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().left>-(bwg_params[i].filmstrip_thumb_margin_hor+bwg_params[i].slideshow_filmstrip_width)?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).animate({left:0},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).animate({left:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().left+parseInt(bwg_params[i].filmstrip_thumb_margin_hor)+parseInt(bwg_params[i].slideshow_filmstrip_width)},500,"linear")),window.setTimeout(function(){0==jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().left&&jQuery(".bwg_slideshow_filmstrip_left_"+i).css({opacity:.3,filter:"Alpha(opacity=30)"})},500)):(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().top<0&&(jQuery(".bwg_slideshow_filmstrip_right_"+i).css({opacity:1,filter:"Alpha(opacity=100)"}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().top>-(bwg_params[i].filmstrip_thumb_margin_hor+bwg_params[i].slideshow_filmstrip_width)?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).animate({top:0},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).animate({top:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().top+parseInt(bwg_params[i].filmstrip_thumb_margin_hor)+parseInt(bwg_params[i].slideshow_filmstrip_width)},500,"linear")),window.setTimeout(function(){0==jQuery(".bwg_slideshow_filmstrip_thumbnails_"+i).position().top&&jQuery(".bwg_slideshow_filmstrip_left_"+i).css({opacity:.3,filter:"Alpha(opacity=30)"})},500))}),"width"==bwg_params[i].width_or_height?bwg_set_filmstrip_pos(jQuery(".bwg_slideshow_filmstrip_"+i).width(),i):bwg_set_filmstrip_pos(jQuery(".bwg_slideshow_filmstrip_"+i).height(),i),jQuery("#bwg_slideshow_play_pause_"+i).off(t).on(t,function(){jQuery(".bwg_ctrl_btn_"+i).hasClass("bwg-icon-play")?(bwg_play(bwg_params[i].data,i),jQuery(".bwg_slideshow_play_pause_"+i).attr("title",bwg_objectsL10n.pause),jQuery(".bwg_slideshow_play_pause_"+i).attr("class","bwg-icon-pause bwg_ctrl_btn_"+i+" bwg_slideshow_play_pause_"+i),1==bwg_params[i].enable_slideshow_music&&document.getElementById("bwg_audio_"+i).play()):(window.clearInterval(window["bwg_playInterval"+i]),jQuery(".bwg_slideshow_play_pause_"+i).attr("title","Play"),jQuery(".bwg_slideshow_play_pause_"+i).attr("class","bwg-icon-play bwg_ctrl_btn_"+i+" bwg_slideshow_play_pause_"+i),1==bwg_params[i].enable_slideshow_music&&document.getElementById("bwg_audio_"+i).pause())}),0!=bwg_params[i].enable_slideshow_autoplay&&(bwg_play(bwg_params[i].data,i),jQuery(".bwg_slideshow_play_pause_"+i).attr("title",bwg_objectsL10n.pause),jQuery(".bwg_slideshow_play_pause_"+i).attr("class","bwg-icon-pause bwg_ctrl_btn_"+i+" bwg_slideshow_play_pause_"+i),1==bwg_params[i].enable_slideshow_music&&jQuery("#bwg_audio_"+i).length&&document.getElementById("bwg_audio_"+i).play()),bwg_params[i].preload_images&&bwg_preload_images(parseInt(jQuery("#bwg_current_image_key_".$bwg).val()),i),jQuery(".bwg_slideshow_image_"+i).removeAttr("width"),jQuery(".bwg_slideshow_image_"+i).removeAttr("height")}})}function bwg_image_browser_resize(){jQuery(".bwg_image_browser").each(function(){var e=jQuery(this).attr("data-bwg");jQuery(".image_browser_images_conteiner_"+e).length&&(bwg_params_ib[e]=JSON.parse(jQuery("#bwg_container1_"+e+" .image_browser_images_conteiner_"+e).attr("data-params")),bwg_image_browser(e))})}function bwg_image_browser_ready(){jQuery(".bwg_image_browser").each(function(){var e=jQuery(this).attr("data-bwg");bwg_container_loaded(e),jQuery(".image_browser_images_conteiner_"+e).length&&(bwg_params_ib[e]=JSON.parse(jQuery(".image_browser_images_conteiner_"+e).attr("data-params")),setTimeout(function(){bwg_image_browser(e)},3))})}function bwg_search_focus(e){jQuery(e).parent().find(".bwg_search_input").focus(),jQuery(e).hide()}function bwg_key_press(e){jQuery(e).parent().find(".bwg_search_reset_container").removeClass("hidden"),jQuery(e).parent().find(".bwg_search_loupe_container1").removeClass("hidden")}function bwg_all_thumnails_loaded(t){var i=0,a=jQuery(t).find("img").length;return 0==a?bwg_all_thumbnails_loaded_callback(t):jQuery(t).find("img").each(function(){var e=jQuery(this).attr("src");jQuery("<img/>").attr("src",e).on("load error",function(){++i>=a&&bwg_all_thumbnails_loaded_callback(t)})}),0==a}function bwg_all_thumbnails_loaded_callback(e){jQuery(e).hasClass("bwg-thumbnails")&&!jQuery(e).hasClass("bwg-masonry-thumbnails")&&bwg_thumbnail(e),jQuery(e).hasClass("bwg-masonry-thumbnails")&&bwg_thumbnail_masonry(e),jQuery(e).hasClass("bwg-album-extended")&&bwg_album_extended(e)}function bwg_container_loaded(e){jQuery("#gal_front_form_"+e).removeClass("bwg-hidden"),jQuery("#ajax_loading_"+e).addClass("bwg-hidden")}function bwg_album_thumbnail(e){bwg_container_loaded(jQuery(e).data("bwg"))}function bwg_album_extended(e){var t=jQuery(e).width(),i=jQuery(e).data("thumbnail-width"),a=jQuery(e).data("spacing"),_=jQuery(e).data("max-count"),r=parseInt(t/(2*i));r<1&&(r=1),_<r&&(r=_);var s=100/r,o=jQuery(e).find(".bwg-extended-item"),l=parseInt(o.css("margin-left")),n=parseInt(o.css("margin-right"));o.css({width:"calc("+s+"% - "+(l+n)+"px)"}),o.width()<i?o.find(".bwg-extended-item0, .bwg-extended-item1").css({width:"calc(100% - "+a+"px)"}):o.width()>2*i?(o.find(".bwg-extended-item0").css({width:"calc(50% - "+a+"px)"}),o.find(".bwg-extended-item1").css({width:"calc(100% - "+(i+2*a)+"px)"})):o.find(".bwg-extended-item0, .bwg-extended-item1").css({width:"calc(50% - "+a+"px)"}),jQuery(e).children(".bwg-extended-item").each(function(){var e=jQuery(this).find("img"),t=jQuery(this).find(".bwg-item0"),i=jQuery(this).find(".bwg-item2"),a=e.data("width"),_=e.data("height");""!=a&&""!=_||(a=e.width(),_=e.height());var r=a/_;i.width()/i.height()>a/_?(i.width()>a?e.css({width:"100%",height:i.width()/r}):e.css({maxWidth:"100%",height:i.width()/r}),a=i.width(),_=i.width()/r):(i.height()>_?e.css({height:"100%",width:i.height()*r,maxWidth:"initial"}):e.css({maxHeight:"100%",width:i.height()*r,maxWidth:"initial"}),_=i.height(),a=i.height()*r),jQuery(this).find(".bwg-item2").css({marginLeft:(t.width()-a)/2,marginTop:(t.height()-_)/2})}),bwg_container_loaded(jQuery(e).data("bwg"))}function bwg_thumbnail(e){var t=jQuery(e).width(),i=jQuery(e).data("thumbnail-width"),a=jQuery(e).data("max-count"),_=parseInt(t/i)+1;a<_&&(_=a);var r=100/_;jQuery(e).find(".bwg-item").css({width:r+"%"}),jQuery(e).children(".bwg-item").each(function(){var e=jQuery(this).find("img"),t=jQuery(this).find(".bwg-item2"),i=jQuery(this).find(".bwg-item1"),a=0<t.width()?t.width():i.width(),_=0<t.height()?t.height():i.height(),r=e.data("width"),s=e.data("height");""!=r&&""!=s&&void 0!==r&&void 0!==s||(r=e.width(),s=e.height());var o=r/s;o<a/_?(r<a?e.css({width:"100%",height:a/o}):e.css({maxWidth:"100%",height:a/o}),s=(r=a)/o):(_>e.height()?e.css({height:"100%",width:_*o,maxWidth:"initial"}):e.css({maxHeight:"100%",width:_*o,maxWidth:"initial"}),r=(s=_)*o),jQuery(this).find(".bwg-item2").css({marginLeft:(a-r)/2,marginTop:(_-s)/2})}),bwg_container_loaded(jQuery(e).data("bwg"))}function bwg_thumbnail_masonry(e){var t=jQuery(e);if(t.find(".bwg-empty-item").remove(),"horizontal"==t.data("masonry-type")){var a=t.data("thumbnail-height"),_=t.data("max-count"),r=[];for(i=0;i<_;i++)r.push(0);t.find(".bwg-item").each(function(){var e=r.indexOf(Math.min.apply(Math,r));jQuery(this).css({height:a,order:e+1}),r[e]+=jQuery(this)[0].getBoundingClientRect().width});var s=Math.max.apply(Math,r);for(t.width(s),i=0;i<_;i++)r[i]<s&&t.append(jQuery('<div class="bwg-item bwg-empty-item"></div>').css({height:a,order:i+1,width:s-r[i]}))}else{t.removeAttr("style");s=t.width();var o=t.data("thumbnail-width"),l=(_=t.data("max-count"),parseInt(s/o)+("0"==t.data("resizable-thumbnails")?0:1));_<l&&(l=_);var n=t.find(".bwg-item").length;n<l&&(l=n);var g,w,b=100/l,u=[];for(i=0;i<l;i++)u.push(0);t.find(".bwg-item").each(function(){var e=u.indexOf(Math.min.apply(Math,u));jQuery(this).css({width:b+"%",order:e+1}),0<jQuery(this).find("img").attr("data-width").length&&0<jQuery(this).find("img").attr("data-height").length&&(w=jQuery(this).find("img").data("width")/jQuery(this).find("img").data("height"),g=jQuery(this).width()/w,jQuery(this).height(g)),u[e]+=jQuery(this)[0].getBoundingClientRect().height});var d=Math.max.apply(Math,u);for(i=0;i<l;i++)u[i]<d&&t.append(jQuery('<div class="bwg-item bwg-empty-item"></div>').css({width:b+"%",order:i+1,height:d-u[i]}));t.outerWidth(l*o),t.height(d)}bwg_container_loaded(t.data("bwg"))}function bwg_thumbnail_mosaic(e){var t=jQuery(e),_=t.attr("data-bwg"),i=t.attr("data-block-id"),a=parseInt(t.attr("data-thumb-padding"))/2,r=parseInt(t.attr("data-thumb-border"))+a;if("horizontal"==t.attr("data-mosaic-direction")){var s=parseInt(t.attr("data-height"));if("1"==t.attr("data-resizable"))if(1920<=jQuery(window).width())var o=(1+jQuery(window).width()/1920)*s;else if(jQuery(window).width()<=640)o=jQuery(window).width()/640*s;else o=s;else o=s;(y=jQuery(".bwg_mosaic_thumb_"+_)).each(function(e){var t=jQuery(this).data("width"),i=jQuery(this).data("height");""!=t&&""!=i&&void 0!==t&&void 0!==i||(t=y.get(e).naturalWidth,i=y.get(e).naturalHeight),t=t*o/i,y.eq(e).height(o),y.eq(e).width(t)});var l=jQuery("#bwg_mosaic_thumbnails_div_"+_).width()/100*parseInt(t.attr("data-total-width"));jQuery("#"+i).width(l);var n=o+2*r,g=0,w=[];w[0]=0;var b=[],u=b[0]=0;y.each(function(e){row_cum_width2=u+y.eq(e).width()+2*r,row_cum_width2-l<0?(u=row_cum_width2,w[e]=g,b[g]++):e!==y.length-1?Math.abs(u-l)>Math.abs(row_cum_width2-l)||Math.abs(u-l)<=Math.abs(row_cum_width2-l)&&0==b[g]?e!==y.length-2?(u=row_cum_width2,w[e]=g,b[g]++,b[++g]=0,u=0):(u=row_cum_width2,w[e]=g,b[g]++):(b[++g]=1,w[e]=g,u=row_cum_width2-u):(u=row_cum_width2,w[e]=g,b[g]++)});for(var d=[],h=[],m=0;m<=g;m++)d[m]=1,h[m]=n;for(m=0;m<=g;m++)u=0,y.each(function(e){w[e]==m&&(u+=y.eq(e).width())}),d[m]=z=(l-2*b[m]*r)/u,h[m]=(n-2*r)*d[m]+2*r;(T=[])[0]=0;var p=[],c=[];p[0]=0,c[0]=0;for(m=1;m<=g;m++)p[m]=p[0],c[m]=c[m-1]+h[m-1];y.each(function(e){var t=y.eq(e).width(),i=y.eq(e).height();y.eq(e).width(t*d[w[e]]),y.eq(e).height(i*d[w[e]]),y.eq(e).parent().css({top:c[w[e]],left:p[w[e]]}),p[w[e]]+=t*d[w[e]]+2*r,T[w[e]]=e}),jQuery("#"+i).height(c[g]+h[g]-c[0])}else{var y,f=parseInt(t.attr("data-width"));if("1"==t.attr("data-resizable")){if(1920<=jQuery(window).width())var j=(1+jQuery(window).width()/1920)*f;else if(jQuery(window).width()<=640)j=jQuery(window).width()/640*f;else j=f;if(0<jQuery(".header-content-with_tab").length)j=jQuery(".header-content-with_tab").width()/4-8}else j=f;(y=jQuery(".bwg_mosaic_thumb_"+_)).each(function(e){var t=jQuery(this).data("width"),i=jQuery(this).data("height");""!=t&&""!=i&&void 0!==t&&void 0!==i||(t=y.get(e).naturalWidth,i=y.get(e).naturalHeight),y.eq(e).height(i*j/t),y.eq(e).width(j)});l=jQuery("#bwg_mosaic_thumbnails_div_"+_).width()/100*parseInt(t.attr("data-total-width"));jQuery("#"+i).width(l);var Q=j+2*r<l?j:l-2*r,x=Math.floor(l/(Q+2*r)),v=[];v[0]=0;for(var k=[],I=[],z=0;z<x;z++)I[z]=0,k[z]=0;y.each(function(e){for(var t=0,i=I[0],a=0;a<x;a++)i>I[a]&&(i=I[a],t=a);v[e]=t,k[t]++,B=i,A=0+t*(Q+2*r),y.eq(e).parent().css({top:B,left:A}),I[t]+=y.eq(e).height()+2*r}),(d=[])[0]=1;var C=0,E=[],O=0,M=0;for(z=0;z<x;z++)C+=Q,E[z]=0,y.each(function(e){v[e]==z&&(E[z]+=y.eq(e).height())}),0!=E[z]&&(O+=Q/E[z],M+=Q*k[z]*2*r/E[z]);var S=0;0!=O&&(S=(C+M)/O);for(z=0;z<x;z++)0!=E[z]&&(d[z]=(S-2*k[z]*r)/E[z]);var T,A=[];A[0]=0;for(z=1;z<=x;z++)A[z]=A[z-1]+Q*d[z-1]+2*r;var B=[];for(z=0;z<x;z++)B[z]=0;(T=[])[0]=0,y.each(function(e){var t=y.eq(e).width(),i=y.eq(e).height();y.eq(e).width(t*d[v[e]]),y.eq(e).height(i*d[v[e]]),y.eq(e).parent().css({top:B[v[e]],left:A[v[e]]}),B[v[e]]+=i*d[v[e]]+2*r,T[v[e]]=e}),jQuery("#"+i).width(A[x]).height(B[0])}jQuery(".bwg_mosaic_thumbnails_"+_).css({visibility:"visible"}),jQuery(".tablenav-pages_"+_).css({visibility:"visible"}),bwg_container_loaded(_),jQuery(".bwg_mosaic_thumb_"+_).removeClass("bwg-hidden"),jQuery("#bwg_mosaic_thumbnails_div_"+_).removeClass("bwg-hidden"),"hover"==t.attr("data-image-title")&&bwg_mosaic_title_on_hover(_,t,r),"hover"==t.attr("data-ecommerce-icon")&&(jQuery(".bwg_mosaic_thumb_spun_"+_).on("mouseenter",function(){var e=jQuery(this).parents(".bwg-mosaic-thumb-span").children(".bwg_mosaic_thumb_"+_).width(),t=jQuery(this).parents(".bwg-mosaic-thumb-span").children(".bwg_mosaic_thumb_"+_).height();jQuery(this).children(".bwg_ecommerce_spun1_"+_).width(e);var i=jQuery(this).children(".bwg_ecommerce_spun1_"+_).width(),a=jQuery(this).children(".bwg_ecommerce_spun1_"+_).height();jQuery(this).children(".bwg_ecommerce_spun1_"+_).css({top:r+.5*t-.5*a,left:r+.5*e-.5*i,opacity:1,filter:"Alpha(opacity=100)"})}),jQuery(".bwg_mosaic_thumb_spun_"+_).on("mouseleave",function(){jQuery(this).children(".bwg_ecommerce_spun1_"+_).css({top:0,left:-1e4,opacity:0,filter:"Alpha(opacity=0)",padding:t.attr("data-title-margin")})}))}function bwg_mosaic_title_on_hover(_,e,r){jQuery(".bwg-mosaic-thumb-span").on("mouseenter",function(){var e=jQuery(this).children(".bwg_mosaic_thumb_"+_).width(),t=jQuery(this).children(".bwg_mosaic_thumb_"+_).height();jQuery(this).find(".bwg_mosaic_title_spun1_"+_).width(e);var i=jQuery(this).find(".bwg_mosaic_title_spun1_"+_).width(),a=jQuery(this).find(".bwg_mosaic_title_spun1_"+_).height();jQuery(this).find(".bwg_mosaic_title_spun1_"+_).css({top:r+.5*t-.5*a<0?r:r+.5*t-.5*a,left:r+.5*e-.5*i,opacity:1,filter:"Alpha(opacity=100)","max-height":"calc(100% - "+2*r+"px)",overflow:"hidden"})}),jQuery(".bwg-mosaic-thumb-span").on("mouseleave",function(){jQuery(this).find(".bwg_mosaic_title_spun1_"+_).css({top:0,left:-1e4,opacity:0,filter:"Alpha(opacity=0)",padding:e.attr("data-title-margin"),"max-height":"calc(100% - "+2*r+"px)",overflow:"hidden"})})}function bwg_mosaic_ajax(e,t){var i=0;jQuery(".bwg_mosaic_thumb_spun_"+e+" img").on("load",function(){++i>=t&&bwg_thumbnail_mosaic(jQuery(".bwg-mosaic-thumbnails[data-bwg="+e+"]"))}),jQuery(".bwg_mosaic_thumb_spun_"+e+" img").on("error",function(){jQuery(this).height(100),jQuery(this).width(100),++i>=t&&bwg_thumbnail_mosaic(jQuery(".bwg-mosaic-thumbnails[data-bwg="+e+"]"))})}function bwg_add_album(){var t=!1;jQuery(".bwg-album").off("click").on("click",function(){if(!t){var e=jQuery(this).attr("data-bwg");return t=!0,setTimeout(function(){t=!1},100),bwg_ajax("gal_front_form_"+e,e,jQuery(this).attr("data-container_id"),jQuery(this).attr("data-alb_gal_id"),jQuery(this).attr("data-album_gallery_id"),jQuery(this).attr("data-def_type"),"",jQuery(this).attr("data-title")),!1}}),jQuery(".bwg_description_more").on("click",function(){jQuery(this).hasClass("bwg_more")?(jQuery(this).parent().find(".bwg_description_full").show(),jQuery(this).addClass("bwg_hide").removeClass("bwg_more"),jQuery(this).html(jQuery(this).data("hide-msg"))):(jQuery(this).parent().find(".bwg_description_full").hide(),jQuery(this).addClass("bwg_more").removeClass("bwg_hide"),jQuery(this).html(jQuery(this).data("more-msg")))})}function bwg_add_lightbox(){var i=!1;jQuery(".bwg_lightbox .bwg-item0, .bwg_lightbox .bwg_slide, .bwg_lightbox .bwg-carousel-image").on("click",function(e){e.stopPropagation(),e.preventDefault();var t=jQuery(this).parent();if(!i)return i=!0,setTimeout(function(){i=!1},100),bwg_gallery_box(jQuery(t).attr("data-image-id"),jQuery(t).closest(".bwg_container")),!1}),jQuery(".bwg_lightbox .bwg_ecommerce").on("click",function(e){if(e.stopPropagation(),!i)return i=!0,setTimeout(function(){i=!1},100),bwg_gallery_box(jQuery(this).closest(".bwg_lightbox").attr("data-image-id"),jQuery(this).closest(".bwg_container"),!0),!1})}function bwg_filter_by_tag(e){var t="",i=jQuery(e).parent().parent(),a=i.find(".current_view").val(),_=i.find(".form_id").val(),r=i.find(".cur_gal_id").val(),s=i.find(".album_gallery_id").val(),o=i.find(".type").val();jQuery(e).parent().find(".opt.selected").each(function(){t=t+jQuery(e).text()+","}),""==(t=t.slice(0,-1))&&(t=bwg_objectsL10n.bwg_select_tag),jQuery(e).parent().find(".CaptionCont").attr("title",t),jQuery(e).parent().find(".CaptionCont .placeholder").html(t),jQuery("#bwg_tag_id_"+a).val(jQuery("#bwg_tag_id_"+r).val()),bwg_select_tag(a,_,r,s,o,!1)}function bwg_document_ready(){bwg_add_lightbox(),jQuery('div[id^="bwg_container1_"]').each(function(){var e=jQuery(this);e.data("right-click-protection")&&bwg_disable_right_click(e),jQuery(".SumoSelect > .CaptionCont > label > i").addClass("bwg-icon-angle-down closed");var t=e.find(".search_tags");t.length&&(t.SumoSelect({triggerChangeCombined:!0,placeholder:bwg_objectsL10n.bwg_select_tag,search:!0,searchText:bwg_objectsL10n.bwg_search,forceCustomRendering:!0,noMatch:bwg_objectsL10n.bwg_tag_no_match,captionFormatAllSelected:bwg_objectsL10n.bwg_all_tags_selected,captionFormat:"{0} "+bwg_objectsL10n.bwg_tags_selected,okCancelInMulti:!0,locale:[bwg_objectsL10n.ok,bwg_objectsL10n.cancel,bwg_objectsL10n.select_all]}),t.off("change").on("change",function(){bwg_filter_by_tag(this)}));var i=e.find(".bwg_order");i.length&&i.SumoSelect({triggerChangeCombined:!0,forceCustomRendering:!0}),jQuery(this).find("search_placeholder_title").hide(),""==jQuery(this).find(".bwg_search_input").val()&&jQuery(this).find("search_placeholder_title").show(),jQuery(".bwg_thumbnail .bwg_search_container_2").focusout(function(e){""==jQuery(this).find(".bwg_search_input").val()&&(jQuery(this).find(".search_placeholder_title").show(),jQuery(this).find(".bwg_search_loupe_container1").addClass("hidden"),jQuery(this).find(".bwg_search_reset_container").addClass("hidden"))})}),jQuery(".search_tags").on("sumo:opened",function(){0==jQuery(this).parent().find("ul li").length&&(jQuery(".no-match").html(bwg_objectsL10n.bwg_tag_no_match),jQuery(".no-match").show())}),jQuery(".bwg_thumbnail .SumoSelect").on("sumo:closed",function(){jQuery(this).find("label i").removeClass("bwg-icon-angle-up opened"),jQuery(this).find("label i").addClass("bwg-icon-angle-down closed")}),jQuery(".bwg_thumbnail .SumoSelect").on("sumo:opened",function(){jQuery(this).find("label i").removeClass("bwg-icon-angle-down closed"),jQuery(this).find("label i").addClass("bwg-icon-angle-up opened")}),bwg_add_album();var e=window.location.hash.substring(1);if(e&&"-1"!=e.indexOf("bwg")){bwg_hash_array=e.replace("bwg","").split("/");var t=jQuery(".bwg_container");t&&bwg_gallery_box(bwg_hash_array[1],t,!1,bwg_hash_array[0])}bwg_blog_style_ready(),bwg_image_browser_ready(),bwg_resize_search_line()}function bwg_clear_search_input(e){jQuery("#bwg_search_input_"+e).val(""),jQuery("#bwg_search_container_1_"+e+" .bwg_search_loupe_container1").addClass("hidden"),jQuery("#bwg_search_container_1_"+e+" .bwg_search_reset_container").addClass("hidden")}function bwg_check_search_input_enter(e,t){return 13!=(t.which||t.keyCode)||(jQuery(e).closest(".bwg_search_container_1").find(".bwg_search").trigger("click"),!1)}function bwg_ajax(t,i,a,_,e,r,s,o,l,n,g){jQuery("#ajax_loading_"+i).removeClass("bwg-hidden"),"function"==typeof bwg_scroll_load_action&&jQuery(window).off("scroll",bwg_scroll_load_action),jQuery(".bwg_thumbnail .search_tags").off("sumo:closed");var w=jQuery("#"+t).data("ajax-url"),b=0;if(void 0===n)n=!1;var u=jQuery("#page_number_"+i).val(),d=jQuery("#bwg_search_input_"+i).val(),h={},m=jQuery("#bwg_album_breadcrumb_"+i).val();if(m&&!0!==n){var p=JSON.parse(m);if("back"==_){p.splice(-1,1);var c=p.slice(-1)[0];_=c.id,u=c.page,h["action_"+i]="back"}else"numeric"===n||s?(p.splice(-1,1),p.push({id:_,page:u,search:d})):(p.push({id:_,page:1}),u=1);h["bwg_album_breadcrumb_"+i]=JSON.stringify(p)}if(h.gallery_type=jQuery("#"+t).data("gallery-type"),h.gallery_id=jQuery("#"+t).data("gallery-id"),h.tag=jQuery("#"+t).data("tag"),h.album_id=jQuery("#"+t).data("album-id"),h.theme_id=jQuery("#"+t).data("theme-id"),h.shortcode_id=jQuery("#"+t).data("shortcode-id"),h.bwg=i,s&&(u=1),void 0===o||""==o)o="";if(void 0===g||""==g)g="";if(void 0===l||""==l)l=jQuery(".bwg_order_"+i).val();h["page_number_"+i]=u,h["bwg_load_more_"+i]=jQuery("#bwg_load_more_"+i).val(),h["album_gallery_id_"+i]=_,h["type_"+i]=r,h["title_"+i]=o,h["description_"+i]=g,h["sortImagesByValue_"+i]=l,0<jQuery("#bwg_search_input_"+i).length&&(h["bwg_search_"+i]=jQuery("#bwg_search_input_"+i).val());var y=jQuery.parseJSON(h["bwg_album_breadcrumb_"+i]);return jQuery.each(y,function(e,t){h["bwg_search_"+i]="",_==t.id&&(h["bwg_search_"+i]=t.search)}),h["bwg_tag_id_"+a]=jQuery("#bwg_tag_id_"+a).val(),jQuery("#gal_front_form_"+i).addClass("bwg-hidden"),jQuery("#ajax_loading_"+i).removeClass("bwg-hidden"),jQuery.ajax({type:"POST",url:w,data:h,success:function(e){jQuery(e).find(".bwg_masonry_thumb_spun_"+i+" img").length,b=jQuery(e).find(".bwg_mosaic_thumb_spun_"+i+" img").length,!0===n?(a=="bwg_thumbnails_mosaic_"+i?jQuery("#"+a).append(jQuery(e).closest(".bwg-container-"+i).find("#"+a).html()):a=="bwg_album_compact_"+i?jQuery("#"+a).append(jQuery(e).closest(".bwg-album-thumbnails").html()):jQuery("#"+a).append(jQuery(e).closest(".bwg-container-"+i).html()),jQuery(".bwg_nav_cont_"+i).html(jQuery(e).closest(".bwg_nav_cont_"+i).html())):jQuery("#bwg_container3_"+i).html(e)},complete:function(){jQuery("div[id^='bwg_container1_'] img").each(function(){null!=jQuery(this).attr("data-lazy-src")&&""!=jQuery(this).attr("data-lazy-src")?jQuery(this).attr("src",jQuery(this).attr("data-lazy-src")):null!=jQuery(this).attr("data-src")&&""!=jQuery(this).attr("data-src")&&jQuery(this).attr("src",jQuery(this).attr("data-src"))}),jQuery(".blog_style_image_buttons_conteiner_"+i).find(jQuery(".bwg_blog_style_img_"+i)).on("load",function(){jQuery(".bwg_blog_style_img_"+i).closest(jQuery(".blog_style_image_buttons_conteiner_"+i)).show()}),jQuery("#bwg_tags_id_"+a).val(jQuery("#bwg_tag_id_"+a).val()),jQuery(".pagination-links_"+i).length&&jQuery("html, body").animate({scrollTop:jQuery("#"+t).offset().top-150},500),bwg_document_ready(),bwg_mosaic_ajax(i,b),bwg_all_thumnails_loaded(".bwg-container-"+i)&&bwg_container_loaded(i),jQuery(".blog_style_images_conteiner_"+i+" .bwg_embed_frame_16x9_"+i).each(function(e){jQuery(this).width(jQuery(this).parent().width()),jQuery(this).height(.5625*jQuery(this).width())}),jQuery(".blog_style_images_conteiner_"+i+" .bwg_embed_frame_instapost_"+i).each(function(e){jQuery(this).width(jQuery(this).parent().width()),jQuery(this).height((jQuery(this).width()-16)*jQuery(this).attr("data-height")/jQuery(this).attr("data-width")+96)}),jQuery("#bwg_embed_frame_16x9_"+i).width(jQuery("#bwg_embed_frame_16x9_"+i).parent().width()),jQuery("#bwg_embed_frame_16x9_"+i).height(.5625*jQuery("#bwg_embed_frame_16x9_"+i).width()),jQuery("#bwg_embed_frame_instapost_"+i).width(jQuery("#bwg_embed_frame_16x9_"+i).parent().width()),jQuery(".bwg_embed_frame_instapost_"+i).height((jQuery(".bwg_embed_frame_instapost_"+i).width()-16)*jQuery(".bwg_embed_frame_instapost_"+i).attr("data-height")/jQuery(".bwg_embed_frame_instapost_"+i).attr("data-width")+96),jQuery("#bwg_search_input_"+i).val(h["bwg_search_"+i]),""!=jQuery("#bwg_search_input_"+i).val()?(jQuery("#bwg_search_input_"+i).parent().find(".search_placeholder_title").hide(),jQuery("#bwg_search_input_"+i).parent().parent().find(".bwg_search_reset_container").show(),jQuery("#bwg_search_input_"+i).parent().parent().find(".bwg_search_loupe_container1").show()):jQuery("#bwg_search_input_"+i).parent().find(".search_placeholder_title").show();var e=jQuery("#bwg_container2_"+i+" .cur_gal_id").val();jQuery("#bwg_tag_id_"+i).val(jQuery("#bwg_tag_id_"+e).val())}}),!1}function bwg_select_tag(e,t,i,a,_,r){r&&jQuery("#bwg_tag_id_"+i).val(""),bwg_ajax(t,e,i,a,"",_,1,"")}function bwg_cube(e,t,i,a,_,r,s,o,l,n,g){var w,b=!1,u="";if(void 0!==g&&""!==g){b=!0,bwg_params[g].bwg_trans_in_progress=!0,u="_"+g,w=bwg_params[g].bwg_transition_duration;bwg_params[g].event_stack}else w=bwg_transition_duration;if(!bwg_testBrowser_cssTransitions(g))return bwg_fallback(o,l,n,g);if(!bwg_testBrowser_cssTransforms3d(g))return bwg_fallback3d(o,l,n,g);function d(){if(jQuery(o).removeAttr("style"),jQuery(l).removeAttr("style"),jQuery(".bwg_slider"+u).removeAttr("style"),jQuery(o).css({opacity:0,filter:"Alpha(opacity=0)","z-index":1}),jQuery(l).css({opacity:1,filter:"Alpha(opacity=100)","z-index":2}),jQuery(".bwg_image_info").show(),jQuery(o).html(""),b){bwg_change_watermark_container(g),bwg_params[g].bwg_trans_in_progress=!1;var e=bwg_params[g].data,t=bwg_params[g].event_stack}else{gallery_box_data.bwg_trans_in_progress=!1;t=gallery_box_data.event_stack}void 0!==t&&0<t.length&&(key=t[0].split("-"),t.shift(),bwg_change_image(key[0],key[1],e,!0,g)),bwg_change_watermark_container()}b?(jQuery(".bwg_slideshow_filmstrip_thumbnail_"+g).removeClass("bwg_slideshow_thumb_active_"+g).addClass("bwg_slideshow_thumb_deactive_"+g),jQuery("#bwg_filmstrip_thumbnail_"+bwg_params[g].bwg_current_key+"_"+g).removeClass("bwg_slideshow_thumb_deactive_"+g).addClass("bwg_slideshow_thumb_active_"+g),jQuery(".bwg_slideshow_dots_"+g).removeClass("bwg_slideshow_dots_active_"+g).addClass("bwg_slideshow_dots_deactive_"+g),jQuery("#bwg_dots_"+bwg_params[g].bwg_current_key+"_"+g).removeClass("bwg_slideshow_dots_deactive_"+g).addClass("bwg_slideshow_dots_active_"+g),jQuery(".bwg_slide_bg_"+g).css("perspective",1e3)):(gallery_box_data.bwg_trans_in_progress=!0,jQuery(".bwg_filmstrip_thumbnail").removeClass("bwg_thumb_active").addClass("bwg_thumb_deactive"),jQuery("#bwg_filmstrip_thumbnail_"+gallery_box_data.bwg_current_key).removeClass("bwg_thumb_deactive").addClass("bwg_thumb_active"),jQuery(".bwg_slide_bg").css("perspective",1e3)),jQuery(o).css({transform:"translateZ("+e+"px)",backfaceVisibility:"hidden"}),jQuery(l).css({opacity:1,filter:"Alpha(opacity=100)",backfaceVisibility:"hidden",transform:"translateY("+i+"px) translateX("+t+"px) rotateY("+_+"deg) rotateX("+a+"deg)"}),jQuery(".bwg_slider"+u).css({transform:"translateZ(-"+e+"px)",transformStyle:"preserve-3d"}),setTimeout(function(){jQuery(".bwg_slider"+u).css({transition:"all "+w+"ms ease-in-out",transform:"translateZ(-"+e+"px) rotateX("+r+"deg) rotateY("+s+"deg)"})},20),jQuery(".bwg_slider"+u).one("webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend",jQuery.proxy(d)),0==w&&d()}function bwg_fade(e,t,i,a){var _,r=!1;function s(){jQuery(".bwg_image_info").show(),bwg_change_watermark_container(a),r?bwg_params[a].bwg_trans_in_progress=!1:gallery_box_data.bwg_trans_in_progress=!1}_=void 0!==a&&""!==a?(r=!0,bwg_params[a].bwg_trans_in_progress=!0,bwg_params[a].bwg_transition_duration):(gallery_box_data.bwg_trans_in_progress=!0,gallery_box_data.bwg_transition_duration),r?(jQuery(".bwg_slideshow_filmstrip_thumbnail_"+a).removeClass("bwg_slideshow_thumb_active_"+a).addClass("bwg_slideshow_thumb_deactive_"+a),jQuery("#bwg_filmstrip_thumbnail_"+bwg_params[a].bwg_current_key+"_"+a).removeClass("bwg_slideshow_thumb_deactive_"+a).addClass("bwg_slideshow_thumb_active_"+a),jQuery(".bwg_slideshow_dots_"+a).removeClass("bwg_slideshow_dots_active_"+a).addClass("bwg_slideshow_dots_deactive_"+a),jQuery("#bwg_dots_"+bwg_params[a].bwg_current_key+"_"+a).removeClass("bwg_slideshow_dots_deactive_"+a).addClass("bwg_slideshow_dots_active_"+a)):(jQuery(".bwg_filmstrip_thumbnail").removeClass("bwg_thumb_active").addClass("bwg_thumb_deactive"),jQuery("#bwg_filmstrip_thumbnail_"+gallery_box_data.bwg_current_key).removeClass("bwg_thumb_deactive").addClass("bwg_thumb_active")),bwg_testBrowser_cssTransitions()?(jQuery(t).css("transition","opacity "+_+"ms linear"),jQuery(e).css({opacity:0,"z-index":1}),jQuery(t).css({opacity:1,"z-index":2}),jQuery(t).one("webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend",jQuery.proxy(s))):(jQuery(e).animate({opacity:0,"z-index":1},_),jQuery(t).animate({opacity:1,"z-index":2},{duration:_,complete:function(){r?bwg_params[a].bwg_trans_in_progress=!1:gallery_box_data.bwg_trans_in_progress=!1,jQuery(e).html(""),s()}}),jQuery(e).fadeTo(_,0),jQuery(t).fadeTo(_,1)),0==_&&s()}function bwg_change_watermark_container(t){jQuery(".bwg_slider"+(void 0!==t&&""!==t?"_"+t:"")).children().each(function(){if(2==jQuery(this).css("zIndex")){var e=jQuery(this).find("img");if(e.length)if(e.prop("complete"))bwg_change_each_watermark_container(e.width(),e.height(),t);else e.on("load",function(){bwg_change_each_watermark_container(e.width(),e.height(),t)});else(e=jQuery(this).find("iframe")).length||(e=jQuery(this).find("video")),bwg_change_each_watermark_container(e.width(),e.height(),t)}})}function bwg_change_each_watermark_container(e,t,i){var a=void 0!==i&&""!==i?"_"+i:"",_=void 0!==i&&""!==i?"_slideshow":"";if(jQuery(".bwg"+_+"_watermark_spun"+a).width(e),jQuery(".bwg"+_+"_watermark_spun"+a).height(t),jQuery(".bwg"+_+"_watermark"+a).css({display:""}),void 0===i||""===i){var r=0;(jQuery(".bwg_comment_container").hasClass("bwg_open")||jQuery(".bwg_ecommerce_container").hasClass("bwg_open"))&&(r=gallery_box_data.lightbox_comment_width),e<=jQuery(window).width()-r&&(jQuery(".bwg_watermark_image").css({width:(jQuery(".spider_popup_wrap").width()-r)*gallery_box_data.watermark_font_size/gallery_box_data.image_width}),jQuery(".bwg_watermark_text, .bwg_watermark_text:hover").css({fontSize:(jQuery(".spider_popup_wrap").width()-r)*gallery_box_data.watermark_font_size/gallery_box_data.image_width}))}else jQuery(".bwg"+_+"_title_spun"+a).width(e),jQuery(".bwg"+_+"_title_spun"+a).height(t),jQuery(".bwg"+_+"_description_spun"+a).width(e),jQuery(".bwg"+_+"_description_spun"+a).height(t);jQuery.trim(jQuery(".bwg"+_+"_title_text"+a).text())&&jQuery(".bwg_slideshow_title_text"+a).css({display:""}),jQuery.trim(jQuery(".bwg"+_+"_description_text"+a).text())&&jQuery(".bwg"+_+"_description_text"+a).css({display:""})}function bwg_set_filmstrip_pos(e,t,i){var a,_=void 0!==t&&""!==t?"_"+t:"",r=void 0!==t&&""!==t?"_slideshow":"";a=void 0!==t&&""!==t?bwg_params[t].left_or_top:gallery_box_data.left_or_top;var s=parseInt(jQuery(".bwg_filmstrip_thumbnails").attr("data-all-images-top-bottom-space")),o=parseInt(jQuery(".bwg_filmstrip_thumbnails").attr("data-all-images-right-left-space"));if(void 0===t||""===t){if("outerWidth"==gallery_box_data.outerWidth_or_outerHeight)var l=-bwg_current_filmstrip_pos-jQuery(".bwg_filmstrip_thumbnail").outerWidth(!0)/2;else if("outerHeight"==gallery_box_data.outerWidth_or_outerHeight)l=-bwg_current_filmstrip_pos-jQuery(".bwg_filmstrip_thumbnail").outerHeight(!0)/2;if("width"==gallery_box_data.width_or_height)var n=Math.min(0,Math.max(e-jQuery(".bwg_filmstrip_thumbnails").width(),l+e/2));else if("height"==gallery_box_data.width_or_height)n=Math.min(0,Math.max(e-jQuery(".bwg_filmstrip_thumbnails").height(),l+e/2))}else if("width"==bwg_params[t].width_or_height)l=-bwg_params[t].bwg_current_filmstrip_pos-(jQuery(".bwg_slideshow_filmstrip_thumbnail"+_).width()+bwg_params[t].filmstrip_thumb_margin_hor)/2,n=Math.min(0,Math.max(e-jQuery(".bwg_slideshow_filmstrip_thumbnails"+_).width(),l+e/2));else l=-bwg_params[t].bwg_current_filmstrip_pos-(jQuery(".bwg_slideshow_filmstrip_thumbnail"+_).height()+bwg_params[t].filmstrip_thumb_margin_hor)/2,n=Math.min(0,Math.max(e-jQuery(".bwg_slideshow_filmstrip_thumbnails"+_).height(),l+e/2));0<n+o&&(o=0),0<n+s&&(s=0),"left"==a?jQuery(".bwg"+r+"_filmstrip_thumbnails"+_).animate({left:n+o},{duration:500,complete:function(){bwg_filmstrip_arrows(t)}}):jQuery(".bwg"+r+"_filmstrip_thumbnails"+_).animate({top:n+s},{duration:500,complete:function(){bwg_filmstrip_arrows(t)}})}function bwg_filmstrip_arrows(e){var t=void 0!==e&&""!==e?"_"+e:"",i=void 0!==e&&""!==e?"_slideshow":"";if("width"==(void 0!==e&&""!==e?bwg_params[e].width_or_heigh:gallery_box_data.width_or_height))var a=jQuery(".bwg"+i+"_filmstrip_thumbnails"+t).width(),_=jQuery(".bwg"+i+"_filmstrip"+t).width();else a=jQuery(".bwg"+i+"_filmstrip_thumbnails"+t).height(),_=jQuery(".bwg"+i+"_filmstrip"+t).height();a<_?(jQuery(".bwg"+i+"_filmstrip_left"+t).hide(),jQuery(".bwg"+i+"_filmstrip_right"+t).hide()):(jQuery(".bwg"+i+"_filmstrip_left"+t).show(),jQuery(".bwg"+i+"_filmstrip_right"+t).show())}function bwg_move_filmstrip(e){var t,i,a,_,r,s,o=void 0!==e&&""!==e?"_"+e:"",l=void 0!==e&&""!==e?"_slideshow":"",n=void 0!==e&&""!==e?bwg_params[e].outerWidth_or_outerHeight:gallery_box_data.outerWidth_or_outerHeight,g=void 0!==e&&""!==e?bwg_params[e].left_or_top:gallery_box_data.left_or_top;i="outerWidth"==n?(t=jQuery(".bwg"+l+"_filmstrip"+o).outerWidth(!0),jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).outerWidth(!0)):(t=jQuery(".bwg"+l+"_filmstrip"+o).outerHeight(!0),jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).outerHeight(!0)),s="left"==g?(a=jQuery(".bwg"+l+"_thumb_active"+o).position().left,_="outerWidth"==n?jQuery(".bwg"+l+"_thumb_active"+o).position().left+jQuery(".bwg"+l+"_thumb_active"+o).outerWidth(!0):jQuery(".bwg"+l+"_thumb_active"+o).position().left+jQuery(".bwg"+l+"_thumb_active"+o).outerHeight(!0),r=jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).position().left,Math.abs(jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).position().left)+t):(a=jQuery(".bwg"+l+"_thumb_active"+o).position().top,_="outerWidth"==n?jQuery(".bwg"+l+"_thumb_active"+o).position().top+jQuery(".bwg"+l+"_thumb_active"+o).outerWidth(!0):jQuery(".bwg"+l+"_thumb_active"+o).position().top+jQuery(".bwg"+l+"_thumb_active"+o).outerHeight(!0),r=jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).position().top,Math.abs(jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).position().top)+t),i<t||(a<Math.abs(r)?"left"==g?jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).animate({left:-a},{duration:500,complete:function(){bwg_filmstrip_arrows(e)}}):jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).animate({top:-a},{duration:500,complete:function(){bwg_filmstrip_arrows(e)}}):s<_&&("left"==g?jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).animate({left:-(_-t)},{duration:500,complete:function(){bwg_filmstrip_arrows(e)}}):jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).animate({top:-(_-t)},{duration:500,complete:function(){bwg_filmstrip_arrows(e)}})))}function bwg_move_dots(e){var t=jQuery(".bwg_slideshow_dots_active_"+e).position().left,i=jQuery(".bwg_slideshow_dots_active_"+e).position().left+jQuery(".bwg_slideshow_dots_active_"+e).outerWidth(!0),a=jQuery(".bwg_slideshow_dots_container_"+e).outerWidth(!0),_=jQuery(".bwg_slideshow_dots_thumbnails_"+e).outerWidth(!1),r=jQuery(".bwg_slideshow_dots_thumbnails_"+e).position().left,s=Math.abs(jQuery(".bwg_slideshow_dots_thumbnails_"+e).position().left)+a;_<a||(t<Math.abs(r)?jQuery(".bwg_slideshow_dots_thumbnails_"+e).animate({left:-t},{duration:500,complete:function(){}}):s<i&&jQuery(".bwg_slideshow_dots_thumbnails_"+e).animate({left:-(i-a)},{duration:500,complete:function(){}}))}function bwg_testBrowser_cssTransitions(e){return bwg_testDom("Transition",e)}function bwg_testBrowser_cssTransforms3d(e){return bwg_testDom("Perspective",e)}function bwg_testDom(e,t){for(var i=["","Webkit","Moz","ms","O","Khtml"],a=i.length;a--;)if(void 0!==document.body.style[i[a]+e])return!0;return!1}function bwg_fallback(e,t,i,a){bwg_fade(e,t,i,a)}function bwg_fallback3d(e,t,i,a){bwg_sliceV(e,t,i,a)}function bwg_none(e,t,i,a){var _=void 0!==a&&""!==a?"_"+a:"";if(jQuery(e).css({opacity:0,"z-index":1}),jQuery(t).css({opacity:1,"z-index":2}),void 0!==a&&""!==a){var r=bwg_params[a].bwg_current_key;bwg_change_watermark_container(a),jQuery(".bwg_slideshow_filmstrip_thumbnail"+_).removeClass("bwg_slideshow_thumb_active"+_).addClass("bwg_slideshow_thumb_deactive"+_),jQuery("#bwg_filmstrip_thumbnail_"+r+_).removeClass("bwg_slideshow_thumb_deactive"+_).addClass("bwg_slideshow_thumb_active"+_),jQuery(".bwg_slideshow_dots"+_).removeClass("bwg_slideshow_dots_active"+_).addClass("bwg_slideshow_dots_deactive"+_),jQuery("#bwg_dots_"+r+_).removeClass("bwg_slideshow_dots_deactive"+_).addClass("bwg_slideshow_dots_active"+_)}else jQuery(".bwg_image_info").show(),gallery_box_data.bwg_trans_in_progress=!1,jQuery(e).html(""),bwg_change_watermark_container()}function bwg_iterator(e){var t=1;return void 0!==e&&""!==e&&void 0!==bwg_params[e]&&1==bwg_params[e].enable_slideshow_shuffle&&(t=Math.floor((bwg_params[e].data.length-1)*Math.random()+1)),t}function bwg_change_image_slideshow(e,t,i,a,_){i=bwg_params[_].data;if(jQuery("#bwg_slideshow_image_container_"+_).find("iframe").each(function(){jQuery(this)[0].contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*"),jQuery(this)[0].contentWindow.postMessage('{ "method": "pause" }',"*"),jQuery(this)[0].contentWindow.postMessage("pause","*")}),jQuery("#image_id_"+_+"_"+i[e].id).find(".bwg_fb_video").each(function(){jQuery(this).attr("src",jQuery(this).attr("src"))}),i[t]){if(jQuery(".bwg_ctrl_btn_"+_).hasClass("bwg-icon-pause")&&bwg_play(bwg_params[_].data,_),a||(jQuery("#bwg_current_image_key_"+_).val(t),"-1"==e?e=jQuery(".bwg_slideshow_thumb_active_"+_).children("img").attr("image_key"):"-2"==e&&(e=jQuery(".bwg_slideshow_dots_active_"+_).attr("image_key"))),bwg_params[_].bwg_trans_in_progress)return void bwg_params[_].event_stack.push(e+"-"+t);var r="right";if(t<e)r="left";else if(e==t)return;jQuery(".bwg_slideshow_watermark_"+_).css({display:"none"}),jQuery(".bwg_slideshow_title_text_"+_).css({display:"none"}),jQuery(".bwg_slideshow_description_text_"+_).css({display:"none"}),"width"==bwg_params[_].width_or_height?bwg_params[_].bwg_current_filmstrip_pos=t*(jQuery(".bwg_slideshow_filmstrip_thumbnail_"+_).width()+2+2*bwg_params[_].lightbox_filmstrip_thumb_border_width):bwg_params[_].bwg_current_filmstrip_pos=t*(jQuery(".bwg_slideshow_filmstrip_thumbnail_"+_).height()+2+2*bwg_params[_].lightbox_filmstrip_thumb_border_width),e=t,bwg_params[_].bwg_current_key=e,jQuery("#bwg_slideshow_image_"+_).attr("image_id",i[t].id),jQuery(".bwg_slideshow_title_text_"+_).html(jQuery('<span style="display: block;" />').html(i[t].alt).text()),jQuery(".bwg_slideshow_description_text_"+_).html(jQuery('<span style="display: block;" />').html(i[t].description).text());var s=2==jQuery(".bwg_slideshow_image_spun_"+_).css("zIndex")?".bwg_slideshow_image_spun_"+_:".bwg_slideshow_image_second_spun_"+_,o=s==".bwg_slideshow_image_second_spun_"+_?".bwg_slideshow_image_spun_"+_:".bwg_slideshow_image_second_spun_"+_,l=-1<i[t].filetype.indexOf("EMBED_"),n=-1<i[t].filetype.indexOf("INSTAGRAM_POST"),g=-1<i[t].filetype.indexOf("INSTAGRAM_VIDEO"),w=jQuery(s).height(),b=jQuery(s).width(),u='<span class="bwg_slideshow_image_spun1_'+_+'" style="display: '+(l?"block":"table")+' ;width: inherit; height: inherit;"><span class="bwg_slideshow_image_spun2_'+_+'" style="display: '+(l?"block":"table-cell")+'; vertical-align: middle; text-align: center; ">';if(l){if(u+='<span style="height: '+w+"px; width: "+b+'px;" class="bwg_popup_embed bwg_popup_watermark">',g&&(u+='<span class="bwg_inst_play_btn_cont" onclick="bwg_play_instagram_video(this)"><span class="bwg_inst_play"></span></span>'),n){var d=0,h=0;w<b+88?d=(h=w)-88:h=(d=b)+88,u+=spider_display_embed(i[t].filetype,i[t].image_url,i[t].filename,{class:"bwg_embed_frame","data-width":i[t].image_width,"data-height":i[t].image_height,frameborder:"0",allowfullscreen:"allowfullscreen",style:"width:"+d+"px; height:"+h+"px; vertical-align:middle; display:inline-block; position:relative;"})}else u+=spider_display_embed(i[t].filetype,i[t].image_url,i[t].filename,{class:"bwg_embed_frame",frameborder:"0",allowfullscreen:"allowfullscreen",style:"width:inherit; height:inherit; vertical-align:middle; display:table-cell;"});u+="</span>"}else{if("do_nothing"!=bwg_params[_].thumb_click_action){var m="";"open_lightbox"==bwg_params[_].thumb_click_action?m+=' class="bwg_lightbox" data-image-id="'+i[t].id+'"':"redirect_to_url"==bwg_params[_].thumb_click_action&&i[t].redirect_url&&(m+='href="'+i[t].redirect_url+'"'+(bwg_params[_].thumb_link_target&&1==bwg_params[_].thumb_link_target?' target="_blank"':"")),u+="<a "+m+">"}u+='<img style="max-height: '+w+"px !important; max-width: "+b+'px !important; display:inline-block;" ',u+=' class="bwg_slide bwg_slideshow_image_'+_+'" ',u+=' id="bwg_slideshow_image_'+_+'" ',u+=' src="'+bwg_params[_].upload_url+jQuery("<span style='display: block;' />").html(i[t].image_url).text()+'" alt="'+i[t].alt+'" image_id="'+i[t].id+'" /></a>'}u+="</span></span>",jQuery(o).html(u),bwg_params[_].preload_images&&bwg_preload_images(t,_),window["bwg_"+bwg_params[_].slideshow_effect](s,o,r,_),0<bwg_params[_].enable_slideshow_filmstrip?bwg_move_filmstrip(_):bwg_move_dots(_),i[t].is_embed_video?jQuery("#bwg_slideshow_play_pause_"+_).css({display:"none"}):jQuery("#bwg_slideshow_play_pause_"+_).css({display:""})}bwg_add_lightbox()}function bwg_preload_images_slideshow(e,t){var i=bwg_params[t].data;count=bwg_params[t].preload_images_count/2;var a=i.length;if(a<bwg_params[t].preload_images_count&&(count=0),0!=count)for(var _=e-count;_<e+count;_++){var r=parseInt((_+a)%a),s=-1<i[r].filetype.indexOf("EMBED_");void 0!==i[r]&&(s||jQuery("<img/>").attr("src",bwg_params[t].upload_url+jQuery('<span style="display: block;" />').html(i[r].image_url).text()))}else for(_=0;_<i.length;_++){s=-1<i[_].filetype.indexOf("EMBED_");void 0!==i[_]&&(s||jQuery("<img/>").attr("src",bwg_params[t].upload_url+jQuery('<span style="display: block;" />').html(i[_].image_url).text()))}}function bwg_preload_images(e,t){void 0!==t&&""!==t?bwg_preload_images_slideshow(e,t):bwg_preload_images_lightbox(e)}function bwg_popup_resize_slidshow(e){var t=jQuery(".bwg_slideshow_image_wrap_"+e).parent().width(),i=bwg_params[e].data;if(t>=bwg_params[e].image_width){jQuery(".bwg_slideshow_image_wrap_"+e).css({width:bwg_params[e].image_width}),jQuery(".bwg_slideshow_image_wrap_"+e).css({height:bwg_params[e].image_height}),jQuery(".bwg_slideshow_image_container_"+e).css({width:"horizontal"==bwg_params[e].filmstrip_direction?bwg_params[e].image_width:bwg_params[e].image_width-bwg_params[e].slideshow_filmstrip_width}),jQuery(".bwg_slideshow_image_container_"+e).css({height:"horizontal"==bwg_params[e].filmstrip_direction?bwg_params[e].image_height-bwg_params[e].slideshow_filmstrip_height:bwg_params[e].image_height}),jQuery(".bwg_slideshow_image_"+e).css({cssText:(bwg_params[e].filmstrip_direction,bwg_params[e].image_width)}),jQuery(".bwg_slideshow_embed_"+e).css({cssText:(bwg_params[e].filmstrip_direction,bwg_params[e].image_width)}),bwg_resize_instagram_post(e),bwg_change_watermark_container(e);var a="horizontal"==bwg_params[e].filmstrip_direction?"width: "+bwg_params[e].image_width:"height: "+bwg_params[e].image_height,_="horizontal"==bwg_params[e].filmstrip_direction?"width: "+(bwg_params[e].image_width-40):"height: "+(bwg_params[e].image_height-40);jQuery(".bwg_slideshow_filmstrip_container_"+e).css({cssText:a}),jQuery(".bwg_slideshow_filmstrip_"+e).css({cssText:_}),jQuery(".bwg_slideshow_dots_container_"+e).css({width:bwg_params[e].image_width}),jQuery("#bwg_slideshow_play_pause-ico_"+e).css({fontSize:bwg_params[e].slideshow_play_pause_btn_size}),"image"==bwg_params[e].watermark_type&&jQuery(".bwg_slideshow_watermark_image_"+e).css({maxWidth:bwg_params[e].watermark_width,maxHeight:bwg_params[e].watermark_height}),"text"==bwg_params[e].watermark_type&&jQuery(".bwg_slideshow_watermark_text_"+e+", .bwg_slideshow_watermark_text_"+e+" : hover").css({fontSize:bwg_params[e].watermark_font_size}),jQuery(".bwg_slideshow_title_text_"+e).css({fontSize:2*bwg_params[e].slideshow_title_font_size}),jQuery(".bwg_slideshow_description_text_"+e).css({fontSize:2*bwg_params[e].slideshow_description_font_size})}else jQuery(".bwg_slideshow_image_wrap_"+e).css({width:t}),jQuery(".bwg_slideshow_image_wrap_"+e).css({height:t*bwg_params[e].image_height/bwg_params[e].image_width}),jQuery(".bwg_slideshow_image_container_"+e).css({width:t-("horizontal"==bwg_params[e].filmstrip_direction?0:bwg_params[e].slideshow_filmstrip_width)}),jQuery(".bwg_slideshow_image_container_"+e).css({height:t*bwg_params[e].image_height/bwg_params[e].image_width-("horizontal"==bwg_params[e].filmstrip_direction?bwg_params[e].slideshow_filmstrip_height:0)}),jQuery(".bwg_slideshow_image_"+e).css({cssText:"max-width: "+(t-("horizontal"==bwg_params[e].filmstrip_direction?0:bwg_params[e].slideshow_filmstrip_width))+"px !important; max-height: "+(t*(bwg_params[e].image_height/bwg_params[e].image_width)-("horizontal"==bwg_params[e].filmstrip_direction?bwg_params[e].slideshow_filmstrip_height:0)-1)+"px !important;"}),jQuery(".bwg_slideshow_embed_"+e).css({cssText:"width: "+(t-("horizontal"==bwg_params[e].filmstrip_direction?0:bwg_params[e].slideshow_filmstrip_width))+"px !important; height: "+(t*(bwg_params[e].image_height/bwg_params[e].image_width)-("horizontal"==bwg_params[e].filmstrip_direction?bwg_params[e].slideshow_filmstrip_height:0)-1)+"px !important;"}),bwg_resize_instagram_post(e),bwg_change_watermark_container(e),"horizontal"==bwg_params[e].filmstrip_direction?(jQuery(".bwg_slideshow_filmstrip_container_"+e).css({width:t}),jQuery(".bwg_slideshow_filmstrip_"+e).css({width:t-40})):(jQuery(".bwg_slideshow_filmstrip_container_"+e).css({height:t*bwg_params[e].image_height/bwg_params[e].image_width}),jQuery(".bwg_slideshow_filmstrip_"+e).css({height:t*bwg_params[e].image_height/bwg_params[e].image_width-40})),jQuery(".bwg_slideshow_dots_container_"+e).css({width:t}),jQuery("#bwg_slideshow_play_pause-ico_"+e).css({fontSize:t*bwg_params[e].slideshow_play_pause_btn_size/bwg_params[e].image_width}),jQuery(".bwg_slideshow_watermark_image_"+e).css({maxWidth:t*bwg_params[e].watermark_width/bwg_params[e].image_width,maxHeight:t*bwg_params[e].watermark_height/bwg_params[e].image_width}),jQuery(".bwg_slideshow_watermark_text_"+e+", .bwg_slideshow_watermark_text_"+e+":hover").css({fontSize:t*bwg_params[e].watermark_font_size/bwg_params[e].image_width}),jQuery(".bwg_slideshow_title_text_"+e).css({fontSize:2*t*bwg_params[e].slideshow_title_font_size/bwg_params[e].image_width}),jQuery(".bwg_slideshow_description_text_"+e).css({fontSize:2*t*bwg_params[e].slideshow_description_font_size/bwg_params[e].image_width}),jQuery(".bwg_slideshow_image_"+e).css({display:"inline-block"});i[parseInt(jQuery("#bwg_current_image_key_"+e).val())].is_embed_video?jQuery("#bwg_slideshow_play_pause_"+e).css({display:"none"}):jQuery("#bwg_slideshow_play_pause_"+e).css({display:""})}function bwg_popup_resize(e){void 0!==e&&""!==e?bwg_popup_resize_slidshow(e):bwg_popup_resize_lightbox()}function bwg_change_image(e,t,i,a,_){void 0!==_&&""!==_?bwg_change_image_slideshow(e,t,i,a,_):bwg_change_image_lightbox(e,t,i=gallery_box_data.data,a)}function bwg_resize_instagram_post(e){if(void 0!==e&&""!==e){if(jQuery(".inner_instagram_iframe_bwg_embed_frame_"+e).length){var t=jQuery(".bwg_slideshow_embed_"+e).width(),i=jQuery(".bwg_slideshow_embed_").height();jQuery(".inner_instagram_iframe_bwg_embed_frame_"+e).each(function(){var e=jQuery(this).parent();i/(parseInt(e.attr("data-height"))+96)<t/parseInt(e.attr("data-width"))?(e.height(i),e.width((e.height()-96)*e.attr("data-width")/e.attr("data-height")+16)):(e.width(t),e.height((e.width()-16)*e.attr("data-height")/e.attr("data-width")+96))}),bwg_change_watermark_container(e)}}else if(jQuery(".inner_instagram_iframe_bwg_embed_frame").length){t=jQuery(".bwg_image_container").width(),i=jQuery(".bwg_image_container").height();jQuery(".inner_instagram_iframe_bwg_embed_frame").each(function(){var e=jQuery(this).parent();i/(parseInt(e.attr("data-height"))+176)<t/parseInt(e.attr("data-width"))?(e.height(i),e.width((e.height()-176)*e.attr("data-width")/e.attr("data-height")+16)):(e.width(t),e.height((e.width()-16)*e.attr("data-height")/e.attr("data-width")+96)),e.css({top:.5*(i-e.height())})}),bwg_change_watermark_container()}}function bwg_play(t,i){if(void 0!==i&&""!==i)t=bwg_params[i].data;void 0!==i&&""!==i?(window.clearInterval(window["bwg_playInterval"+i]),window["bwg_playInterval"+i]=setInterval(function(){var e=1;1==bwg_params[i].enable_slideshow_shuffle&&(e=Math.floor((t.length-1)*Math.random()+1)),bwg_change_image(parseInt(jQuery("#bwg_current_image_key_"+i).val()),(parseInt(jQuery("#bwg_current_image_key_"+i).val())+e)%t.length,t,"",i)},1e3*bwg_params[i].slideshow_interval)):(window.clearInterval(gallery_box_data.bwg_playInterval),gallery_box_data.bwg_playInterval=setInterval(function(){jQuery(".bwg_comment_container").hasClass("bwg_open")||jQuery(".bwg_play_pause").length&&jQuery(".bwg_play_pause").hasClass("bwg-icon-play")||(void 0===t||void 0!==t[parseInt(jQuery("#bwg_current_image_key").val())+1]?bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),parseInt(jQuery("#bwg_current_image_key").val())+1):1==gallery_box_data.enable_loop&&bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),0))},1e3*gallery_box_data.slideshow_interval))}function bwg_image_browser(e){if(jQuery("#bwg_embed_frame_16x9_"+e).width(jQuery("#bwg_embed_frame_16x9_"+e).parents(".image_browser_image_buttons_"+e).width()),jQuery("#bwg_embed_frame_16x9_"+e).height(.5625*jQuery("#bwg_embed_frame_16x9_"+e).width()),jQuery("#bwg_embed_frame_instapost_"+e).width(jQuery("#bwg_embed_frame_16x9_"+e).parents(".image_browser_image_buttons_"+e).width()),jQuery(".image_browser_images_conteiner_"+e).find(".fluid-width-video-wrapper").length){var t=jQuery(".image_browser_images_conteiner_"+e).find(".fluid-width-video-wrapper").contents();jQuery(".image_browser_images_conteiner_"+e).find(".fluid-width-video-wrapper").replaceWith(t)}jQuery(".bwg_embed_frame_instapost_"+e).height((jQuery(".bwg_embed_frame_instapost_"+e).width()-16)*jQuery(".bwg_embed_frame_instapost_"+e).attr("data-height")/jQuery(".bwg_embed_frame_instapost_"+e).attr("data-width")+96);var i=jQuery(".image_browser_images_"+e).width();i<=108?jQuery(".paging-input_"+e).css("display","none"):(i<=200?(jQuery(".paging-input_"+e).css("margin","0% 0% 0% 0%"),jQuery(".paging-input_"+e).css("display","inline")):i<=580?(jQuery(".paging-input_"+e).css("display","inline"),jQuery(".tablenav-pages_"+e+" a").css("font-size","13px"),jQuery(".paging-input_"+e).css("margin","0% 7% 0% 7%")):(jQuery(".tablenav-pages_"+e+" a").css("font-size","15px"),jQuery(".paging-input_"+e).css("margin","0% 14% 0% 14%"),jQuery(".paging-input_"+e).css("display","inline")),jQuery(".tablenav-pages_"+e+" .next-page").css("margin","0% 0% 0% 0%"),jQuery(".tablenav-pages_"+e+" .prev-page").css("margin","0% 0% 0% 0%"))}function bwg_disable_right_click(e){e.bind("contextmenu",function(){return!1}),e.css("webkitTouchCallout","none")}jQuery(document).ajaxComplete(function(){setTimeout(function(){bwg_main_ready()})}),jQuery(document).ready(function(){document.addEventListener("visibilitychange",function(){var e=!1;jQuery(".bwg_container").each(function(){0<jQuery(this).find(".wd_error").length&&(e=!0)}),e||("visible"==document.visibilityState&&bwg_slideshow_focus(),"hidden"==document.visibilityState&&bwg_slideshow_blur())}),bwg_main_ready(),jQuery.fn.extend({hideShow:function(e){return this.checkForVisiblilityChange(e),this},checkForVisiblilityChange:function(e){if(this.length>>>0){for(var t,i,a,_=0;t=this[_++];){var r=jQuery(t).is(":visible");void 0===t.lastVisibility&&(t.lastVisibility=r),r!==t.lastVisibility&&(t.lastVisibility=r,"function"==typeof e&&e.apply(this,[new jQuery.Event("visibilityChanged"),r?"shown":"hidden"]),function(e,t){setTimeout(function(){jQuery(e).trigger("visibilityChanged",[t?"shown":"hidden"])},10)}(t,r))}i=this,a=arguments,setTimeout(function(){i.checkForVisiblilityChange.apply(i,a)},10)}}}),jQuery(this).hideShow(function(e,t){"shown"==t&&bwg_main_ready()})}),jQuery(window).on("resize",function(){var e=!1;jQuery(".bwg_container").each(function(){0<jQuery(this).find(".wd_error").length&&(e=!0)}),e||(jQuery(".bwg-thumbnails, .bwg-masonry-thumbnails, .bwg-album-thumbnails").each(function(){bwg_all_thumnails_loaded(this)}),bwg_slideshow_resize(),bwg_image_browser_resize(),bwg_carousel_resize(),bwg_blog_style_resize(),jQuery(".bwg-mosaic-thumbnails").each(function(){bwg_thumbnail_mosaic(this)})),bwg_resize_search_line()}),jQuery(window).on("load",function(){var e=!1;jQuery(".bwg_container").each(function(){0<jQuery(this).find(".wd_error").length&&(e=!0)}),e||(bwg_blog_style_onload(),jQuery(".bwg-mosaic-thumbnails").each(function(){bwg_thumbnail_mosaic(this)}))}),jQuery(".bwg-masonry-thumb-span img, .bwg-mosaic-thumb-span img").on("error",function(){jQuery(this).height(100),jQuery(this).width(100)});
|
js/tw-gb/block.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/**
|
2 |
* 10Web plugins Gutenberg integration
|
3 |
-
* version 2.0.
|
4 |
*/
|
5 |
( function ( blocks, element ) {
|
6 |
registerAllPluginBlocks();
|
1 |
/**
|
2 |
* 10Web plugins Gutenberg integration
|
3 |
+
* version 2.0.4
|
4 |
*/
|
5 |
( function ( blocks, element ) {
|
6 |
registerAllPluginBlocks();
|
languages/bwg-af.po
CHANGED
@@ -1141,7 +1141,7 @@ msgstr ""
|
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
-
"Enter YouTube, Vimeo, Instagram,
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-ar.po
CHANGED
@@ -1142,7 +1142,7 @@ msgstr ""
|
|
1142 |
|
1143 |
#: admin/views/Galleries.php:471
|
1144 |
msgid ""
|
1145 |
-
"Enter YouTube, Vimeo, Instagram,
|
1146 |
msgstr ""
|
1147 |
|
1148 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1142 |
|
1143 |
#: admin/views/Galleries.php:471
|
1144 |
msgid ""
|
1145 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1146 |
msgstr ""
|
1147 |
|
1148 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-be_BY.po
CHANGED
@@ -1142,7 +1142,7 @@ msgstr ""
|
|
1142 |
|
1143 |
#: admin/views/Galleries.php:471
|
1144 |
msgid ""
|
1145 |
-
"Enter YouTube, Vimeo, Instagram,
|
1146 |
msgstr ""
|
1147 |
|
1148 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1142 |
|
1143 |
#: admin/views/Galleries.php:471
|
1144 |
msgid ""
|
1145 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1146 |
msgstr ""
|
1147 |
|
1148 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-bg_BG.po
CHANGED
@@ -1141,7 +1141,7 @@ msgstr ""
|
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
-
"Enter YouTube, Vimeo, Instagram,
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-ca.po
CHANGED
@@ -1170,7 +1170,7 @@ msgstr ""
|
|
1170 |
|
1171 |
#: admin/views/Galleries.php:471
|
1172 |
msgid ""
|
1173 |
-
"Enter YouTube, Vimeo, Instagram,
|
1174 |
msgstr ""
|
1175 |
|
1176 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1170 |
|
1171 |
#: admin/views/Galleries.php:471
|
1172 |
msgid ""
|
1173 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1174 |
msgstr ""
|
1175 |
|
1176 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-cs_CZ.po
CHANGED
@@ -1141,7 +1141,7 @@ msgstr ""
|
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
-
"Enter YouTube, Vimeo, Instagram,
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-da_DK.po
CHANGED
@@ -1141,7 +1141,7 @@ msgstr ""
|
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
-
"Enter YouTube, Vimeo, Instagram,
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-de_DE.mo
CHANGED
Binary file
|
languages/bwg-de_DE.po
CHANGED
@@ -2,14 +2,14 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: bwg\n"
|
4 |
"POT-Creation-Date: 2018-01-24 10:48+0400\n"
|
5 |
-
"PO-Revision-Date:
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: \n"
|
8 |
"Language: de\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Generator: Poedit 2.
|
13 |
"X-Poedit-Basepath: ..\n"
|
14 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
15 |
"X-Poedit-KeywordsList: __;_e\n"
|
@@ -79,7 +79,7 @@ msgstr ""
|
|
79 |
#: admin/views/Comments.php:106 admin/views/Galleries.php:108
|
80 |
#: admin/views/Galleries.php:203 admin/views/Galleries.php:726
|
81 |
msgid "Publish"
|
82 |
-
msgstr ""
|
83 |
|
84 |
#: admin/controllers/Albums.php:39 admin/controllers/Comments.php:41
|
85 |
#: admin/controllers/Galleries.php:34 admin/controllers/Galleries.php:81
|
@@ -126,11 +126,11 @@ msgstr ""
|
|
126 |
|
127 |
#: admin/controllers/Albums.php:93 photo-gallery.php:257
|
128 |
msgid "Gallery Groups"
|
129 |
-
msgstr ""
|
130 |
|
131 |
#: admin/controllers/Albumsgalleries.php:50
|
132 |
msgid "Galleries / Gallery groups"
|
133 |
-
msgstr ""
|
134 |
|
135 |
#: admin/controllers/Comments.php:93 photo-gallery.php:268
|
136 |
#, fuzzy
|
@@ -156,7 +156,7 @@ msgstr ""
|
|
156 |
|
157 |
#: admin/controllers/Galleries.php:52
|
158 |
msgid "Recreate thumbnail"
|
159 |
-
msgstr ""
|
160 |
|
161 |
#: admin/controllers/Galleries.php:53
|
162 |
msgid "recreated"
|
@@ -213,10 +213,8 @@ msgid "Add tag"
|
|
213 |
msgstr ""
|
214 |
|
215 |
#: admin/controllers/Galleries.php:137 photo-gallery.php:1478
|
216 |
-
#, fuzzy
|
217 |
-
#| msgid "Gallery is empty."
|
218 |
msgid "Galleries"
|
219 |
-
msgstr "
|
220 |
|
221 |
#: admin/controllers/Galleries.php:437 admin/controllers/Options.php:191
|
222 |
msgid "Item Succesfully Saved."
|
@@ -572,7 +570,7 @@ msgstr ""
|
|
572 |
#: admin/views/AddTags.php:65 admin/views/Albums.php:50
|
573 |
#: admin/views/Comments.php:61 admin/views/Themes.php:72
|
574 |
msgid "Select all"
|
575 |
-
msgstr ""
|
576 |
|
577 |
#: admin/views/AddTags.php:68 admin/views/AddTags.php:86
|
578 |
#: admin/views/Albums.php:89 admin/views/Comments.php:64
|
@@ -592,7 +590,7 @@ msgstr ""
|
|
592 |
|
593 |
#: admin/views/AdminView.php:94
|
594 |
msgid "Add New"
|
595 |
-
msgstr ""
|
596 |
|
597 |
#: admin/views/AdminView.php:164 framework/WDWLibrary.php:316
|
598 |
#: framework/WDWLibrary.php:494 framework/WDWLibrary.php:817
|
@@ -635,7 +633,7 @@ msgstr "Letzte"
|
|
635 |
|
636 |
#: admin/views/AdminView.php:281 filemanager/view.php:248
|
637 |
msgid "Select All"
|
638 |
-
msgstr ""
|
639 |
|
640 |
#: admin/views/AdminView.php:286
|
641 |
msgid "Select bulk action"
|
@@ -643,11 +641,11 @@ msgstr ""
|
|
643 |
|
644 |
#: admin/views/AdminView.php:288
|
645 |
msgid "Bulk Actions"
|
646 |
-
msgstr ""
|
647 |
|
648 |
#: admin/views/AdminView.php:297
|
649 |
msgid "Apply"
|
650 |
-
msgstr ""
|
651 |
|
652 |
#: admin/views/Albums.php:53 admin/views/Albumsgalleries.php:77
|
653 |
#: admin/views/Albumsgalleries.php:101 admin/views/Shortcode.php:609
|
@@ -677,10 +675,8 @@ msgstr "Sie können das Standard Theme nicht löschen"
|
|
677 |
|
678 |
#: admin/views/Albums.php:106 admin/views/Albums.php:182
|
679 |
#: admin/views/Galleries.php:110 admin/views/Galleries.php:207
|
680 |
-
#, fuzzy
|
681 |
-
#| msgid "Previous"
|
682 |
msgid "Preview"
|
683 |
-
msgstr "
|
684 |
|
685 |
#: admin/views/Albums.php:109 admin/views/Albumsgalleries.php:114
|
686 |
#: admin/views/Comments.php:112 admin/views/Galleries.php:113
|
@@ -693,36 +689,36 @@ msgstr "Kommentare anzeigen"
|
|
693 |
|
694 |
#: admin/views/Albums.php:166
|
695 |
msgid "Gallery Group Title"
|
696 |
-
msgstr ""
|
697 |
|
698 |
#: admin/views/Albums.php:173 admin/views/Albums.php:295
|
699 |
#: admin/views/Galleries.php:195 admin/views/Galleries.php:265
|
700 |
msgid "How to use"
|
701 |
-
msgstr ""
|
702 |
|
703 |
#: admin/views/Albums.php:179 admin/views/Galleries.php:203
|
704 |
#: admin/views/Galleries.php:575 admin/views/Shortcode.php:1631
|
705 |
#: admin/views/Shortcode.php:2888 admin/views/Themes.php:175
|
706 |
msgid "Update"
|
707 |
-
msgstr ""
|
708 |
|
709 |
#: admin/views/Albums.php:193 admin/views/Galleries.php:228
|
710 |
msgid "Preview image"
|
711 |
-
msgstr ""
|
712 |
|
713 |
#: admin/views/Albums.php:195 admin/views/Galleries.php:232
|
714 |
msgid "Add Preview Image"
|
715 |
-
msgstr ""
|
716 |
|
717 |
#: admin/views/Albums.php:196 admin/views/Albums.php:238
|
718 |
#: admin/views/Galleries.php:235 admin/views/Galleries.php:490
|
719 |
#: filemanager/view.php:256
|
720 |
msgid "Add"
|
721 |
-
msgstr ""
|
722 |
|
723 |
#: admin/views/Albums.php:204 admin/views/Galleries.php:245
|
724 |
msgid "Published"
|
725 |
-
msgstr ""
|
726 |
|
727 |
#: admin/views/Albums.php:206 admin/views/Galleries.php:247
|
728 |
#: admin/views/Options.php:132 admin/views/Options.php:157
|
@@ -794,7 +790,7 @@ msgstr ""
|
|
794 |
#: wd/includes/overview.php:227 wd/includes/overview.php:234
|
795 |
#: wd/includes/overview.php:241 wd/includes/overview.php:251
|
796 |
msgid "Yes"
|
797 |
-
msgstr ""
|
798 |
|
799 |
#: admin/views/Albums.php:208 admin/views/Galleries.php:249
|
800 |
#: admin/views/Options.php:133 admin/views/Options.php:158
|
@@ -866,11 +862,11 @@ msgstr ""
|
|
866 |
#: wd/includes/overview.php:236 wd/includes/overview.php:243
|
867 |
#: wd/includes/overview.php:246 wd/includes/overview.php:251
|
868 |
msgid "No"
|
869 |
-
msgstr ""
|
870 |
|
871 |
#: admin/views/Albums.php:219
|
872 |
msgid "Galleries and Gallery Groups"
|
873 |
-
msgstr ""
|
874 |
|
875 |
#: admin/views/Albums.php:247 admin/views/Albums.php:291
|
876 |
#: admin/views/Galleries.php:219 admin/views/Galleries.php:261
|
@@ -885,7 +881,7 @@ msgstr ""
|
|
885 |
#: admin/views/Albums.php:251 admin/views/Galleries.php:298
|
886 |
#: admin/views/Options.php:81 admin/views/Shortcode.php:1344
|
887 |
msgid "Advanced"
|
888 |
-
msgstr ""
|
889 |
|
890 |
#: admin/views/Albums.php:259 admin/views/Galleries.php:309
|
891 |
msgid "Slug"
|
@@ -895,7 +891,7 @@ msgstr ""
|
|
895 |
#: admin/views/Galleries.php:635 admin/views/Galleries.php:742
|
896 |
#: frontend/views/BWGViewGalleryBox.php:1584
|
897 |
msgid "Description"
|
898 |
-
msgstr ""
|
899 |
|
900 |
#: admin/views/Albums.php:300 admin/views/Galleries.php:270
|
901 |
msgid "Page or Post editor"
|
@@ -1039,14 +1035,12 @@ msgid "Images count"
|
|
1039 |
msgstr ""
|
1040 |
|
1041 |
#: admin/views/Galleries.php:188
|
1042 |
-
#, fuzzy
|
1043 |
-
#| msgid "Gallery is empty."
|
1044 |
msgid "Gallery title"
|
1045 |
-
msgstr "Galerie
|
1046 |
|
1047 |
#: admin/views/Galleries.php:223
|
1048 |
msgid "Basic"
|
1049 |
-
msgstr ""
|
1050 |
|
1051 |
#: admin/views/Galleries.php:340
|
1052 |
msgid "Gallery content type"
|
@@ -1119,15 +1113,15 @@ msgstr ""
|
|
1119 |
|
1120 |
#: admin/views/Galleries.php:415 admin/views/Galleries.php:418
|
1121 |
msgid "Add Images"
|
1122 |
-
msgstr ""
|
1123 |
|
1124 |
#: admin/views/Galleries.php:420
|
1125 |
msgid "Import from Media Library"
|
1126 |
-
msgstr ""
|
1127 |
|
1128 |
#: admin/views/Galleries.php:427 admin/views/Galleries.php:429
|
1129 |
msgid "Embed Media"
|
1130 |
-
msgstr ""
|
1131 |
|
1132 |
#: admin/views/Galleries.php:430 admin/views/Galleries.php:432
|
1133 |
msgid "Social Bulk Embed"
|
@@ -1163,7 +1157,7 @@ msgstr ""
|
|
1163 |
#: filemanager/view.php:262 filemanager/view.php:263
|
1164 |
#: wd/templates/display_deactivation_popup.php:23
|
1165 |
msgid "Cancel"
|
1166 |
-
msgstr ""
|
1167 |
|
1168 |
#: admin/views/Galleries.php:480
|
1169 |
msgid "<b>Youtube</b> URL example:"
|
@@ -1228,10 +1222,8 @@ msgid "Description: "
|
|
1228 |
msgstr ""
|
1229 |
|
1230 |
#: admin/views/Galleries.php:613
|
1231 |
-
#, fuzzy
|
1232 |
-
#| msgid "You have already rated."
|
1233 |
msgid "You have unsaved changes."
|
1234 |
-
msgstr "Sie haben
|
1235 |
|
1236 |
#: admin/views/Galleries.php:626 photo-gallery.php:395
|
1237 |
#, fuzzy
|
@@ -1261,7 +1253,7 @@ msgstr ""
|
|
1261 |
|
1262 |
#: admin/views/Galleries.php:705
|
1263 |
msgid "Date modified"
|
1264 |
-
msgstr ""
|
1265 |
|
1266 |
#: admin/views/Galleries.php:706 admin/views/Shortcode.php:614
|
1267 |
msgid "Resolution"
|
@@ -1977,7 +1969,7 @@ msgstr ""
|
|
1977 |
|
1978 |
#: admin/views/Options.php:1518 admin/views/Options.php:1664
|
1979 |
msgid "Add Image"
|
1980 |
-
msgstr ""
|
1981 |
|
1982 |
#: admin/views/Options.php:1521
|
1983 |
msgid "Only .png format is supported."
|
@@ -2171,7 +2163,7 @@ msgstr ""
|
|
2171 |
|
2172 |
#: admin/views/Shortcode.php:195
|
2173 |
msgid "All Galleries"
|
2174 |
-
msgstr ""
|
2175 |
|
2176 |
#: admin/views/Shortcode.php:207
|
2177 |
msgid "Album"
|
@@ -2278,10 +2270,8 @@ msgstr ""
|
|
2278 |
|
2279 |
#: admin/views/Shortcode.php:421 admin/views/Shortcode.php:729
|
2280 |
#: admin/views/Shortcode.php:773 admin/views/Shortcode.php:817
|
2281 |
-
#, fuzzy
|
2282 |
-
#| msgid "Load More..."
|
2283 |
msgid "Load More"
|
2284 |
-
msgstr "
|
2285 |
|
2286 |
#: admin/views/Shortcode.php:422 admin/views/Shortcode.php:679
|
2287 |
#: admin/views/Shortcode.php:730 admin/views/Shortcode.php:774
|
@@ -2382,10 +2372,8 @@ msgid "Slideshow Filmstrip size"
|
|
2382 |
msgstr ""
|
2383 |
|
2384 |
#: admin/views/Shortcode.php:678
|
2385 |
-
#, fuzzy
|
2386 |
-
#| msgid "Load More..."
|
2387 |
msgid "Load more"
|
2388 |
-
msgstr "
|
2389 |
|
2390 |
#: admin/views/Shortcode.php:708 admin/views/Shortcode.php:752
|
2391 |
#: admin/views/Shortcode.php:796
|
@@ -3926,7 +3914,7 @@ msgstr ""
|
|
3926 |
|
3927 |
#: admin/views/Widget.php:121 admin/views/WidgetSlideshow.php:87
|
3928 |
msgid "Galleries:"
|
3929 |
-
msgstr ""
|
3930 |
|
3931 |
#: admin/views/Widget.php:123 admin/views/Widget.php:144
|
3932 |
#: admin/views/WidgetSlideshow.php:89
|
@@ -4080,37 +4068,35 @@ msgstr ""
|
|
4080 |
|
4081 |
#: filemanager/view.php:60
|
4082 |
msgid "Processing uploaded files..."
|
4083 |
-
msgstr ""
|
4084 |
|
4085 |
#: filemanager/view.php:98
|
4086 |
msgid "Up"
|
4087 |
-
msgstr ""
|
4088 |
|
4089 |
#: filemanager/view.php:99
|
4090 |
msgid "Make a directory"
|
4091 |
-
msgstr ""
|
4092 |
|
4093 |
#: filemanager/view.php:100
|
4094 |
msgid "Rename item"
|
4095 |
-
msgstr ""
|
4096 |
|
4097 |
#: filemanager/view.php:102
|
4098 |
msgid "Copy"
|
4099 |
-
msgstr ""
|
4100 |
|
4101 |
#: filemanager/view.php:103
|
4102 |
msgid "Cut"
|
4103 |
-
msgstr ""
|
4104 |
|
4105 |
#: filemanager/view.php:104
|
4106 |
msgid "Paste"
|
4107 |
-
msgstr ""
|
4108 |
|
4109 |
#: filemanager/view.php:105
|
4110 |
-
#, fuzzy
|
4111 |
-
#| msgid " item(s)"
|
4112 |
msgid "Remove items"
|
4113 |
-
msgstr "
|
4114 |
|
4115 |
#: filemanager/view.php:109
|
4116 |
msgid "View thumbs"
|
@@ -4122,15 +4108,13 @@ msgstr ""
|
|
4122 |
|
4123 |
#: filemanager/view.php:114
|
4124 |
msgid "Upload files"
|
4125 |
-
msgstr ""
|
4126 |
|
4127 |
#: filemanager/view.php:128
|
4128 |
msgid "To change upload directory go to Options page."
|
4129 |
msgstr ""
|
4130 |
|
4131 |
#: filemanager/view.php:140
|
4132 |
-
#, fuzzy
|
4133 |
-
#| msgid "Order by: "
|
4134 |
msgid "Order by:"
|
4135 |
msgstr "Sortieren nach:"
|
4136 |
|
@@ -4147,10 +4131,8 @@ msgid "Click to sort by date modified"
|
|
4147 |
msgstr ""
|
4148 |
|
4149 |
#: filemanager/view.php:256
|
4150 |
-
#, fuzzy
|
4151 |
-
#| msgid "There are no images in this gallery."
|
4152 |
msgid "Add selected images to gallery"
|
4153 |
-
msgstr "
|
4154 |
|
4155 |
#: filemanager/view.php:272
|
4156 |
msgid "Thumbnail Maximum Dimensions:"
|
@@ -4177,21 +4159,19 @@ msgstr ""
|
|
4177 |
|
4178 |
#: filemanager/view.php:290
|
4179 |
msgid "Drag files here or click the button below"
|
4180 |
-
msgstr ""
|
4181 |
|
4182 |
#: filemanager/view.php:290
|
4183 |
msgid "to upload files"
|
4184 |
-
msgstr ""
|
4185 |
|
4186 |
#: filemanager/view.php:354
|
4187 |
msgid "No files to upload"
|
4188 |
-
msgstr ""
|
4189 |
|
4190 |
#: framework/WDWLibrary.php:61
|
4191 |
-
#, fuzzy
|
4192 |
-
#| msgid "Item Succesfully Saved."
|
4193 |
msgid "Item successfully saved."
|
4194 |
-
msgstr "Objekt erfolgreich
|
4195 |
|
4196 |
#: framework/WDWLibrary.php:67 framework/WDWLibrary.php:172
|
4197 |
msgid "Failed."
|
@@ -4360,10 +4340,8 @@ msgid "No %s found."
|
|
4360 |
msgstr ""
|
4361 |
|
4362 |
#: framework/WDWLibrary.php:2012
|
4363 |
-
#, fuzzy
|
4364 |
-
#| msgid "Gallery is empty."
|
4365 |
msgid "Gallery Tags"
|
4366 |
-
msgstr "Galerie
|
4367 |
|
4368 |
#: frontend/views/BWGViewAlbum_compact_preview.php:23
|
4369 |
#: frontend/views/BWGViewAlbum_extended_preview.php:19
|
@@ -4759,11 +4737,11 @@ msgstr ""
|
|
4759 |
|
4760 |
#: photo-gallery.php:254
|
4761 |
msgid "Add Galleries/Images"
|
4762 |
-
msgstr ""
|
4763 |
|
4764 |
#: photo-gallery.php:262
|
4765 |
msgid "Options"
|
4766 |
-
msgstr ""
|
4767 |
|
4768 |
#: photo-gallery.php:275
|
4769 |
msgid "Pro Version"
|
@@ -4861,8 +4839,6 @@ msgid "Selected"
|
|
4861 |
msgstr ""
|
4862 |
|
4863 |
#: photo-gallery.php:399
|
4864 |
-
#, fuzzy
|
4865 |
-
#| msgid "Item Succesfully Saved."
|
4866 |
msgid "Items Succesfully Saved."
|
4867 |
msgstr "Objekt erfolgreich gesichert."
|
4868 |
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: bwg\n"
|
4 |
"POT-Creation-Date: 2018-01-24 10:48+0400\n"
|
5 |
+
"PO-Revision-Date: 2019-03-11 00:23-0600\n"
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: \n"
|
8 |
"Language: de\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 2.2.1\n"
|
13 |
"X-Poedit-Basepath: ..\n"
|
14 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
15 |
"X-Poedit-KeywordsList: __;_e\n"
|
79 |
#: admin/views/Comments.php:106 admin/views/Galleries.php:108
|
80 |
#: admin/views/Galleries.php:203 admin/views/Galleries.php:726
|
81 |
msgid "Publish"
|
82 |
+
msgstr "Veröffentlichen"
|
83 |
|
84 |
#: admin/controllers/Albums.php:39 admin/controllers/Comments.php:41
|
85 |
#: admin/controllers/Galleries.php:34 admin/controllers/Galleries.php:81
|
126 |
|
127 |
#: admin/controllers/Albums.php:93 photo-gallery.php:257
|
128 |
msgid "Gallery Groups"
|
129 |
+
msgstr "Galerie Gruppen"
|
130 |
|
131 |
#: admin/controllers/Albumsgalleries.php:50
|
132 |
msgid "Galleries / Gallery groups"
|
133 |
+
msgstr "Galerien / Galerie-gruppen"
|
134 |
|
135 |
#: admin/controllers/Comments.php:93 photo-gallery.php:268
|
136 |
#, fuzzy
|
156 |
|
157 |
#: admin/controllers/Galleries.php:52
|
158 |
msgid "Recreate thumbnail"
|
159 |
+
msgstr "Thumbnails neu erzeugen"
|
160 |
|
161 |
#: admin/controllers/Galleries.php:53
|
162 |
msgid "recreated"
|
213 |
msgstr ""
|
214 |
|
215 |
#: admin/controllers/Galleries.php:137 photo-gallery.php:1478
|
|
|
|
|
216 |
msgid "Galleries"
|
217 |
+
msgstr "Galerien"
|
218 |
|
219 |
#: admin/controllers/Galleries.php:437 admin/controllers/Options.php:191
|
220 |
msgid "Item Succesfully Saved."
|
570 |
#: admin/views/AddTags.php:65 admin/views/Albums.php:50
|
571 |
#: admin/views/Comments.php:61 admin/views/Themes.php:72
|
572 |
msgid "Select all"
|
573 |
+
msgstr "Alle auswählen"
|
574 |
|
575 |
#: admin/views/AddTags.php:68 admin/views/AddTags.php:86
|
576 |
#: admin/views/Albums.php:89 admin/views/Comments.php:64
|
590 |
|
591 |
#: admin/views/AdminView.php:94
|
592 |
msgid "Add New"
|
593 |
+
msgstr "Neue hinzufügen"
|
594 |
|
595 |
#: admin/views/AdminView.php:164 framework/WDWLibrary.php:316
|
596 |
#: framework/WDWLibrary.php:494 framework/WDWLibrary.php:817
|
633 |
|
634 |
#: admin/views/AdminView.php:281 filemanager/view.php:248
|
635 |
msgid "Select All"
|
636 |
+
msgstr "Alle auswählen"
|
637 |
|
638 |
#: admin/views/AdminView.php:286
|
639 |
msgid "Select bulk action"
|
641 |
|
642 |
#: admin/views/AdminView.php:288
|
643 |
msgid "Bulk Actions"
|
644 |
+
msgstr "Sammelaktion"
|
645 |
|
646 |
#: admin/views/AdminView.php:297
|
647 |
msgid "Apply"
|
648 |
+
msgstr "Anwenden"
|
649 |
|
650 |
#: admin/views/Albums.php:53 admin/views/Albumsgalleries.php:77
|
651 |
#: admin/views/Albumsgalleries.php:101 admin/views/Shortcode.php:609
|
675 |
|
676 |
#: admin/views/Albums.php:106 admin/views/Albums.php:182
|
677 |
#: admin/views/Galleries.php:110 admin/views/Galleries.php:207
|
|
|
|
|
678 |
msgid "Preview"
|
679 |
+
msgstr "Vorschau"
|
680 |
|
681 |
#: admin/views/Albums.php:109 admin/views/Albumsgalleries.php:114
|
682 |
#: admin/views/Comments.php:112 admin/views/Galleries.php:113
|
689 |
|
690 |
#: admin/views/Albums.php:166
|
691 |
msgid "Gallery Group Title"
|
692 |
+
msgstr "Galerie Gruppentitel"
|
693 |
|
694 |
#: admin/views/Albums.php:173 admin/views/Albums.php:295
|
695 |
#: admin/views/Galleries.php:195 admin/views/Galleries.php:265
|
696 |
msgid "How to use"
|
697 |
+
msgstr "Anleitung"
|
698 |
|
699 |
#: admin/views/Albums.php:179 admin/views/Galleries.php:203
|
700 |
#: admin/views/Galleries.php:575 admin/views/Shortcode.php:1631
|
701 |
#: admin/views/Shortcode.php:2888 admin/views/Themes.php:175
|
702 |
msgid "Update"
|
703 |
+
msgstr "Aktualisieren"
|
704 |
|
705 |
#: admin/views/Albums.php:193 admin/views/Galleries.php:228
|
706 |
msgid "Preview image"
|
707 |
+
msgstr "Vorschaubild der Galerie"
|
708 |
|
709 |
#: admin/views/Albums.php:195 admin/views/Galleries.php:232
|
710 |
msgid "Add Preview Image"
|
711 |
+
msgstr "Vorschaubild hinzufügen"
|
712 |
|
713 |
#: admin/views/Albums.php:196 admin/views/Albums.php:238
|
714 |
#: admin/views/Galleries.php:235 admin/views/Galleries.php:490
|
715 |
#: filemanager/view.php:256
|
716 |
msgid "Add"
|
717 |
+
msgstr "Hinzufügen"
|
718 |
|
719 |
#: admin/views/Albums.php:204 admin/views/Galleries.php:245
|
720 |
msgid "Published"
|
721 |
+
msgstr "Veröffentlicht"
|
722 |
|
723 |
#: admin/views/Albums.php:206 admin/views/Galleries.php:247
|
724 |
#: admin/views/Options.php:132 admin/views/Options.php:157
|
790 |
#: wd/includes/overview.php:227 wd/includes/overview.php:234
|
791 |
#: wd/includes/overview.php:241 wd/includes/overview.php:251
|
792 |
msgid "Yes"
|
793 |
+
msgstr "Ja"
|
794 |
|
795 |
#: admin/views/Albums.php:208 admin/views/Galleries.php:249
|
796 |
#: admin/views/Options.php:133 admin/views/Options.php:158
|
862 |
#: wd/includes/overview.php:236 wd/includes/overview.php:243
|
863 |
#: wd/includes/overview.php:246 wd/includes/overview.php:251
|
864 |
msgid "No"
|
865 |
+
msgstr "Nein"
|
866 |
|
867 |
#: admin/views/Albums.php:219
|
868 |
msgid "Galleries and Gallery Groups"
|
869 |
+
msgstr "Galerien und Galerie-gruppen"
|
870 |
|
871 |
#: admin/views/Albums.php:247 admin/views/Albums.php:291
|
872 |
#: admin/views/Galleries.php:219 admin/views/Galleries.php:261
|
881 |
#: admin/views/Albums.php:251 admin/views/Galleries.php:298
|
882 |
#: admin/views/Options.php:81 admin/views/Shortcode.php:1344
|
883 |
msgid "Advanced"
|
884 |
+
msgstr "Erweiterte Einstellungen"
|
885 |
|
886 |
#: admin/views/Albums.php:259 admin/views/Galleries.php:309
|
887 |
msgid "Slug"
|
891 |
#: admin/views/Galleries.php:635 admin/views/Galleries.php:742
|
892 |
#: frontend/views/BWGViewGalleryBox.php:1584
|
893 |
msgid "Description"
|
894 |
+
msgstr "Beschreibung"
|
895 |
|
896 |
#: admin/views/Albums.php:300 admin/views/Galleries.php:270
|
897 |
msgid "Page or Post editor"
|
1035 |
msgstr ""
|
1036 |
|
1037 |
#: admin/views/Galleries.php:188
|
|
|
|
|
1038 |
msgid "Gallery title"
|
1039 |
+
msgstr "Galerie Titel"
|
1040 |
|
1041 |
#: admin/views/Galleries.php:223
|
1042 |
msgid "Basic"
|
1043 |
+
msgstr "Grundlegende Einstellungen"
|
1044 |
|
1045 |
#: admin/views/Galleries.php:340
|
1046 |
msgid "Gallery content type"
|
1113 |
|
1114 |
#: admin/views/Galleries.php:415 admin/views/Galleries.php:418
|
1115 |
msgid "Add Images"
|
1116 |
+
msgstr "Fotos hinzufügen"
|
1117 |
|
1118 |
#: admin/views/Galleries.php:420
|
1119 |
msgid "Import from Media Library"
|
1120 |
+
msgstr "Fotos von der Medienbibliothek hinzufügen"
|
1121 |
|
1122 |
#: admin/views/Galleries.php:427 admin/views/Galleries.php:429
|
1123 |
msgid "Embed Media"
|
1124 |
+
msgstr "Medien einbetten"
|
1125 |
|
1126 |
#: admin/views/Galleries.php:430 admin/views/Galleries.php:432
|
1127 |
msgid "Social Bulk Embed"
|
1157 |
#: filemanager/view.php:262 filemanager/view.php:263
|
1158 |
#: wd/templates/display_deactivation_popup.php:23
|
1159 |
msgid "Cancel"
|
1160 |
+
msgstr "Abbrechen"
|
1161 |
|
1162 |
#: admin/views/Galleries.php:480
|
1163 |
msgid "<b>Youtube</b> URL example:"
|
1222 |
msgstr ""
|
1223 |
|
1224 |
#: admin/views/Galleries.php:613
|
|
|
|
|
1225 |
msgid "You have unsaved changes."
|
1226 |
+
msgstr "Sie haben nicht gespeicherte Änderungen."
|
1227 |
|
1228 |
#: admin/views/Galleries.php:626 photo-gallery.php:395
|
1229 |
#, fuzzy
|
1253 |
|
1254 |
#: admin/views/Galleries.php:705
|
1255 |
msgid "Date modified"
|
1256 |
+
msgstr "Änderungsdatum"
|
1257 |
|
1258 |
#: admin/views/Galleries.php:706 admin/views/Shortcode.php:614
|
1259 |
msgid "Resolution"
|
1969 |
|
1970 |
#: admin/views/Options.php:1518 admin/views/Options.php:1664
|
1971 |
msgid "Add Image"
|
1972 |
+
msgstr "Foto hinzufügen"
|
1973 |
|
1974 |
#: admin/views/Options.php:1521
|
1975 |
msgid "Only .png format is supported."
|
2163 |
|
2164 |
#: admin/views/Shortcode.php:195
|
2165 |
msgid "All Galleries"
|
2166 |
+
msgstr "Alle Galerien"
|
2167 |
|
2168 |
#: admin/views/Shortcode.php:207
|
2169 |
msgid "Album"
|
2270 |
|
2271 |
#: admin/views/Shortcode.php:421 admin/views/Shortcode.php:729
|
2272 |
#: admin/views/Shortcode.php:773 admin/views/Shortcode.php:817
|
|
|
|
|
2273 |
msgid "Load More"
|
2274 |
+
msgstr "Mehr laden"
|
2275 |
|
2276 |
#: admin/views/Shortcode.php:422 admin/views/Shortcode.php:679
|
2277 |
#: admin/views/Shortcode.php:730 admin/views/Shortcode.php:774
|
2372 |
msgstr ""
|
2373 |
|
2374 |
#: admin/views/Shortcode.php:678
|
|
|
|
|
2375 |
msgid "Load more"
|
2376 |
+
msgstr "Mehr laden"
|
2377 |
|
2378 |
#: admin/views/Shortcode.php:708 admin/views/Shortcode.php:752
|
2379 |
#: admin/views/Shortcode.php:796
|
3914 |
|
3915 |
#: admin/views/Widget.php:121 admin/views/WidgetSlideshow.php:87
|
3916 |
msgid "Galleries:"
|
3917 |
+
msgstr "Galerien:"
|
3918 |
|
3919 |
#: admin/views/Widget.php:123 admin/views/Widget.php:144
|
3920 |
#: admin/views/WidgetSlideshow.php:89
|
4068 |
|
4069 |
#: filemanager/view.php:60
|
4070 |
msgid "Processing uploaded files..."
|
4071 |
+
msgstr "Hochgeladene Fotos werden verarbeitet"
|
4072 |
|
4073 |
#: filemanager/view.php:98
|
4074 |
msgid "Up"
|
4075 |
+
msgstr "Zum übergeordneten Ordner gehen"
|
4076 |
|
4077 |
#: filemanager/view.php:99
|
4078 |
msgid "Make a directory"
|
4079 |
+
msgstr "Ordner erstellen"
|
4080 |
|
4081 |
#: filemanager/view.php:100
|
4082 |
msgid "Rename item"
|
4083 |
+
msgstr "Namen ändern"
|
4084 |
|
4085 |
#: filemanager/view.php:102
|
4086 |
msgid "Copy"
|
4087 |
+
msgstr "Kopieren"
|
4088 |
|
4089 |
#: filemanager/view.php:103
|
4090 |
msgid "Cut"
|
4091 |
+
msgstr "Ausschneiden"
|
4092 |
|
4093 |
#: filemanager/view.php:104
|
4094 |
msgid "Paste"
|
4095 |
+
msgstr "Einfügen"
|
4096 |
|
4097 |
#: filemanager/view.php:105
|
|
|
|
|
4098 |
msgid "Remove items"
|
4099 |
+
msgstr "Foto(s) löschen"
|
4100 |
|
4101 |
#: filemanager/view.php:109
|
4102 |
msgid "View thumbs"
|
4108 |
|
4109 |
#: filemanager/view.php:114
|
4110 |
msgid "Upload files"
|
4111 |
+
msgstr "Fotos hochladen"
|
4112 |
|
4113 |
#: filemanager/view.php:128
|
4114 |
msgid "To change upload directory go to Options page."
|
4115 |
msgstr ""
|
4116 |
|
4117 |
#: filemanager/view.php:140
|
|
|
|
|
4118 |
msgid "Order by:"
|
4119 |
msgstr "Sortieren nach:"
|
4120 |
|
4131 |
msgstr ""
|
4132 |
|
4133 |
#: filemanager/view.php:256
|
|
|
|
|
4134 |
msgid "Add selected images to gallery"
|
4135 |
+
msgstr "Ausgewählte Fotos zur Galerie hinzufügen"
|
4136 |
|
4137 |
#: filemanager/view.php:272
|
4138 |
msgid "Thumbnail Maximum Dimensions:"
|
4159 |
|
4160 |
#: filemanager/view.php:290
|
4161 |
msgid "Drag files here or click the button below"
|
4162 |
+
msgstr "Ziehe Fotos in dieses Fenster oder klick auf den Button unten"
|
4163 |
|
4164 |
#: filemanager/view.php:290
|
4165 |
msgid "to upload files"
|
4166 |
+
msgstr "um Fotos hochzuladen"
|
4167 |
|
4168 |
#: filemanager/view.php:354
|
4169 |
msgid "No files to upload"
|
4170 |
+
msgstr "Keine Fotos zum Hochladen ausgewählt"
|
4171 |
|
4172 |
#: framework/WDWLibrary.php:61
|
|
|
|
|
4173 |
msgid "Item successfully saved."
|
4174 |
+
msgstr "Objekt erfolgreich gespeichert."
|
4175 |
|
4176 |
#: framework/WDWLibrary.php:67 framework/WDWLibrary.php:172
|
4177 |
msgid "Failed."
|
4340 |
msgstr ""
|
4341 |
|
4342 |
#: framework/WDWLibrary.php:2012
|
|
|
|
|
4343 |
msgid "Gallery Tags"
|
4344 |
+
msgstr "Galerie Tags"
|
4345 |
|
4346 |
#: frontend/views/BWGViewAlbum_compact_preview.php:23
|
4347 |
#: frontend/views/BWGViewAlbum_extended_preview.php:19
|
4737 |
|
4738 |
#: photo-gallery.php:254
|
4739 |
msgid "Add Galleries/Images"
|
4740 |
+
msgstr "Galerien/Fotos hinzufügen"
|
4741 |
|
4742 |
#: photo-gallery.php:262
|
4743 |
msgid "Options"
|
4744 |
+
msgstr "Optionen"
|
4745 |
|
4746 |
#: photo-gallery.php:275
|
4747 |
msgid "Pro Version"
|
4839 |
msgstr ""
|
4840 |
|
4841 |
#: photo-gallery.php:399
|
|
|
|
|
4842 |
msgid "Items Succesfully Saved."
|
4843 |
msgstr "Objekt erfolgreich gesichert."
|
4844 |
|
languages/bwg-el.po
CHANGED
@@ -1046,7 +1046,7 @@ msgid "Remove pricelist"
|
|
1046 |
msgstr "Αφαίρεση τιμοκαταλόγου"
|
1047 |
|
1048 |
#: admin/views/Galleries.php:471
|
1049 |
-
msgid "Enter YouTube, Vimeo, Instagram,
|
1050 |
msgstr ""
|
1051 |
|
1052 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1046 |
msgstr "Αφαίρεση τιμοκαταλόγου"
|
1047 |
|
1048 |
#: admin/views/Galleries.php:471
|
1049 |
+
msgid "Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1050 |
msgstr ""
|
1051 |
|
1052 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-en_US.po
CHANGED
@@ -1141,7 +1141,7 @@ msgstr ""
|
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
-
"Enter YouTube, Vimeo, Instagram,
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-eo_EO.po
CHANGED
@@ -1141,7 +1141,7 @@ msgstr ""
|
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
-
"Enter YouTube, Vimeo, Instagram,
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-es_ES.po
CHANGED
@@ -1089,7 +1089,7 @@ msgid "Remove pricelist"
|
|
1089 |
msgstr "Eliminar la lista de precios"
|
1090 |
|
1091 |
#: admin/views/Galleries.php:471
|
1092 |
-
msgid "Enter YouTube, Vimeo, Instagram,
|
1093 |
msgstr "Ingrese a YouTube, Vimeo, Instagram, Facebook, Flickr o Dailymotion URL aquí."
|
1094 |
|
1095 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1089 |
msgstr "Eliminar la lista de precios"
|
1090 |
|
1091 |
#: admin/views/Galleries.php:471
|
1092 |
+
msgid "Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1093 |
msgstr "Ingrese a YouTube, Vimeo, Instagram, Facebook, Flickr o Dailymotion URL aquí."
|
1094 |
|
1095 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-et.po
CHANGED
@@ -1141,7 +1141,7 @@ msgstr ""
|
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
-
"Enter YouTube, Vimeo, Instagram,
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-fa_IR.po
CHANGED
@@ -1141,7 +1141,7 @@ msgstr ""
|
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
-
"Enter YouTube, Vimeo, Instagram,
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-fi.po
CHANGED
@@ -1141,7 +1141,7 @@ msgstr ""
|
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
-
"Enter YouTube, Vimeo, Instagram,
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-fr_FR.po
CHANGED
@@ -1141,7 +1141,7 @@ msgstr ""
|
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
-
"Enter YouTube, Vimeo, Instagram,
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-gl_ES.po
CHANGED
@@ -1141,7 +1141,7 @@ msgstr ""
|
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
-
"Enter YouTube, Vimeo, Instagram,
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-he_IL.po
CHANGED
@@ -1141,7 +1141,7 @@ msgstr ""
|
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
-
"Enter YouTube, Vimeo, Instagram,
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-hi_IN.po
CHANGED
@@ -1141,7 +1141,7 @@ msgstr ""
|
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
-
"Enter YouTube, Vimeo, Instagram,
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-hr.po
CHANGED
@@ -1142,7 +1142,7 @@ msgstr ""
|
|
1142 |
|
1143 |
#: admin/views/Galleries.php:471
|
1144 |
msgid ""
|
1145 |
-
"Enter YouTube, Vimeo, Instagram,
|
1146 |
msgstr ""
|
1147 |
|
1148 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1142 |
|
1143 |
#: admin/views/Galleries.php:471
|
1144 |
msgid ""
|
1145 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1146 |
msgstr ""
|
1147 |
|
1148 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-hu_HU.po
CHANGED
@@ -1141,7 +1141,7 @@ msgstr ""
|
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
-
"Enter YouTube, Vimeo, Instagram,
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-hy_AM.po
CHANGED
@@ -1141,7 +1141,7 @@ msgstr ""
|
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
-
"Enter YouTube, Vimeo, Instagram,
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-id_ID.po
CHANGED
@@ -1141,7 +1141,7 @@ msgstr ""
|
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
-
"Enter YouTube, Vimeo, Instagram,
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-is_IS.po
CHANGED
@@ -1141,7 +1141,7 @@ msgstr ""
|
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
-
"Enter YouTube, Vimeo, Instagram,
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-it_IT.po
CHANGED
@@ -1154,7 +1154,7 @@ msgstr ""
|
|
1154 |
|
1155 |
#: admin/views/Galleries.php:417
|
1156 |
msgid ""
|
1157 |
-
"Enter YouTube, Vimeo, Instagram,
|
1158 |
msgstr ""
|
1159 |
|
1160 |
#: admin/views/Galleries.php:418 admin/views/Galleries.php:454
|
1154 |
|
1155 |
#: admin/views/Galleries.php:417
|
1156 |
msgid ""
|
1157 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1158 |
msgstr ""
|
1159 |
|
1160 |
#: admin/views/Galleries.php:418 admin/views/Galleries.php:454
|
languages/bwg-ja.po
CHANGED
@@ -1141,7 +1141,7 @@ msgstr ""
|
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
-
"Enter YouTube, Vimeo, Instagram,
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-ka_GE.po
CHANGED
@@ -1141,7 +1141,7 @@ msgstr ""
|
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
-
"Enter YouTube, Vimeo, Instagram,
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-ko_KR.po
CHANGED
@@ -1141,7 +1141,7 @@ msgstr ""
|
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
-
"Enter YouTube, Vimeo, Instagram,
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-lt_LT.po
CHANGED
@@ -1142,7 +1142,7 @@ msgstr ""
|
|
1142 |
|
1143 |
#: admin/views/Galleries.php:471
|
1144 |
msgid ""
|
1145 |
-
"Enter YouTube, Vimeo, Instagram,
|
1146 |
msgstr ""
|
1147 |
|
1148 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1142 |
|
1143 |
#: admin/views/Galleries.php:471
|
1144 |
msgid ""
|
1145 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1146 |
msgstr ""
|
1147 |
|
1148 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-lv.po
CHANGED
@@ -1142,7 +1142,7 @@ msgstr ""
|
|
1142 |
|
1143 |
#: admin/views/Galleries.php:471
|
1144 |
msgid ""
|
1145 |
-
"Enter YouTube, Vimeo, Instagram,
|
1146 |
msgstr ""
|
1147 |
|
1148 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1142 |
|
1143 |
#: admin/views/Galleries.php:471
|
1144 |
msgid ""
|
1145 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1146 |
msgstr ""
|
1147 |
|
1148 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-mk_MK.po
CHANGED
@@ -1141,7 +1141,7 @@ msgstr ""
|
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
-
"Enter YouTube, Vimeo, Instagram,
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-ms_MY.po
CHANGED
@@ -1141,7 +1141,7 @@ msgstr ""
|
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
-
"Enter YouTube, Vimeo, Instagram,
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-mt_MT.po
CHANGED
@@ -1142,7 +1142,7 @@ msgstr ""
|
|
1142 |
|
1143 |
#: admin/views/Galleries.php:471
|
1144 |
msgid ""
|
1145 |
-
"Enter YouTube, Vimeo, Instagram,
|
1146 |
msgstr ""
|
1147 |
|
1148 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1142 |
|
1143 |
#: admin/views/Galleries.php:471
|
1144 |
msgid ""
|
1145 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1146 |
msgstr ""
|
1147 |
|
1148 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-nb_NO.po
CHANGED
@@ -1141,7 +1141,7 @@ msgstr ""
|
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
-
"Enter YouTube, Vimeo, Instagram,
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-nl_NL.po
CHANGED
@@ -1151,7 +1151,7 @@ msgstr ""
|
|
1151 |
|
1152 |
#: admin/views/Galleries.php:471
|
1153 |
msgid ""
|
1154 |
-
"Enter YouTube, Vimeo, Instagram,
|
1155 |
msgstr ""
|
1156 |
|
1157 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1151 |
|
1152 |
#: admin/views/Galleries.php:471
|
1153 |
msgid ""
|
1154 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1155 |
msgstr ""
|
1156 |
|
1157 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-pl_PL.mo
CHANGED
Binary file
|
languages/bwg-pl_PL.po
CHANGED
@@ -2,14 +2,14 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: bwg\n"
|
4 |
"POT-Creation-Date: 2018-01-24 11:18+0400\n"
|
5 |
-
"PO-Revision-Date: 2018-01
|
6 |
-
"Last-Translator:
|
7 |
"Language-Team: \n"
|
8 |
"Language: pl_PL\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Generator: Poedit 2.
|
13 |
"X-Poedit-Basepath: ..\n"
|
14 |
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
|
15 |
"|| n%100>=20) ? 1 : 2);\n"
|
@@ -27,8 +27,6 @@ msgid ""
|
|
27 |
msgstr ""
|
28 |
|
29 |
#: addons/addons.php:13
|
30 |
-
#, fuzzy
|
31 |
-
#| msgid "Share on Facebook"
|
32 |
msgid "Photo Gallery Facebook"
|
33 |
msgstr "Podziel się na Facebooku."
|
34 |
|
@@ -114,8 +112,6 @@ msgstr ""
|
|
114 |
#: admin/views/Albums.php:105 admin/views/Comments.php:109
|
115 |
#: admin/views/Galleries.php:109 admin/views/Galleries.php:733
|
116 |
#: admin/views/Ratings.php:84 admin/views/Themes.php:101
|
117 |
-
#, fuzzy
|
118 |
-
#| msgid "Delete Comment"
|
119 |
msgid "Delete"
|
120 |
msgstr "Usuń komentarz"
|
121 |
|
@@ -134,8 +130,6 @@ msgid "Galleries / Gallery groups"
|
|
134 |
msgstr ""
|
135 |
|
136 |
#: admin/controllers/Comments.php:93 photo-gallery.php:268
|
137 |
-
#, fuzzy
|
138 |
-
#| msgid "Comment"
|
139 |
msgid "Comments"
|
140 |
msgstr "Komentarz"
|
141 |
|
@@ -168,8 +162,6 @@ msgid "Rotate left"
|
|
168 |
msgstr ""
|
169 |
|
170 |
#: admin/controllers/Galleries.php:57
|
171 |
-
#, fuzzy
|
172 |
-
#| msgid "Not rated yet."
|
173 |
msgid "rotated left"
|
174 |
msgstr "Jeszcze nie ocenione. "
|
175 |
|
@@ -198,8 +190,6 @@ msgid "Reset"
|
|
198 |
msgstr "Zresetować"
|
199 |
|
200 |
#: admin/controllers/Galleries.php:69
|
201 |
-
#, fuzzy
|
202 |
-
#| msgid "Reset"
|
203 |
msgid "reset"
|
204 |
msgstr "Zresetować"
|
205 |
|
@@ -214,10 +204,8 @@ msgid "Add tag"
|
|
214 |
msgstr ""
|
215 |
|
216 |
#: admin/controllers/Galleries.php:137 photo-gallery.php:1478
|
217 |
-
#, fuzzy
|
218 |
-
#| msgid "Gallery is empty."
|
219 |
msgid "Galleries"
|
220 |
-
msgstr "
|
221 |
|
222 |
#: admin/controllers/Galleries.php:437 admin/controllers/Options.php:191
|
223 |
msgid "Item Succesfully Saved."
|
@@ -558,16 +546,16 @@ msgstr ""
|
|
558 |
|
559 |
#: admin/models/Comments.php:61 admin/models/Ratings.php:81
|
560 |
msgid "All galleries"
|
561 |
-
msgstr ""
|
562 |
|
563 |
#: admin/models/Comments.php:75 admin/models/Ratings.php:100
|
564 |
msgid "All images"
|
565 |
-
msgstr ""
|
566 |
|
567 |
#: admin/views/AddTags.php:65 admin/views/Albums.php:50
|
568 |
#: admin/views/Comments.php:61 admin/views/Themes.php:72
|
569 |
msgid "Select all"
|
570 |
-
msgstr ""
|
571 |
|
572 |
#: admin/views/AddTags.php:68 admin/views/AddTags.php:86
|
573 |
#: admin/views/Albums.php:89 admin/views/Comments.php:64
|
@@ -579,15 +567,15 @@ msgstr ""
|
|
579 |
#: frontend/views/BWGViewGalleryBox.php:1569
|
580 |
#: frontend/views/BWGViewGalleryBox.php:1684
|
581 |
msgid "Name"
|
582 |
-
msgstr "
|
583 |
|
584 |
#: admin/views/AddTags.php:107
|
585 |
msgid "Add to image"
|
586 |
-
msgstr ""
|
587 |
|
588 |
#: admin/views/AdminView.php:94
|
589 |
msgid "Add New"
|
590 |
-
msgstr ""
|
591 |
|
592 |
#: admin/views/AdminView.php:164 framework/WDWLibrary.php:316
|
593 |
#: framework/WDWLibrary.php:494 framework/WDWLibrary.php:817
|
@@ -596,20 +584,16 @@ msgid "Search"
|
|
596 |
msgstr "Szukaj"
|
597 |
|
598 |
#: admin/views/AdminView.php:226
|
599 |
-
#, fuzzy
|
600 |
-
#| msgid "First"
|
601 |
msgid "First page"
|
602 |
-
msgstr "
|
603 |
|
604 |
#: admin/views/AdminView.php:227
|
605 |
-
#, fuzzy
|
606 |
-
#| msgid "Previous"
|
607 |
msgid "Previous page"
|
608 |
-
msgstr "
|
609 |
|
610 |
#: admin/views/AdminView.php:232
|
611 |
msgid "Current Page"
|
612 |
-
msgstr ""
|
613 |
|
614 |
#: admin/views/AdminView.php:235 framework/WDWLibrary.php:447
|
615 |
#: framework/WDWLibrary.php:596 framework/WDWLibrary.php:679
|
@@ -617,20 +601,16 @@ msgid "of"
|
|
617 |
msgstr "z"
|
618 |
|
619 |
#: admin/views/AdminView.php:248
|
620 |
-
#, fuzzy
|
621 |
-
#| msgid "Next"
|
622 |
msgid "Next page"
|
623 |
-
msgstr "
|
624 |
|
625 |
#: admin/views/AdminView.php:249
|
626 |
-
#, fuzzy
|
627 |
-
#| msgid "Last"
|
628 |
msgid "Last page"
|
629 |
-
msgstr "
|
630 |
|
631 |
#: admin/views/AdminView.php:281 filemanager/view.php:248
|
632 |
msgid "Select All"
|
633 |
-
msgstr ""
|
634 |
|
635 |
#: admin/views/AdminView.php:286
|
636 |
msgid "Select bulk action"
|
@@ -642,19 +622,19 @@ msgstr ""
|
|
642 |
|
643 |
#: admin/views/AdminView.php:297
|
644 |
msgid "Apply"
|
645 |
-
msgstr ""
|
646 |
|
647 |
#: admin/views/Albums.php:53 admin/views/Albumsgalleries.php:77
|
648 |
#: admin/views/Albumsgalleries.php:101 admin/views/Shortcode.php:609
|
649 |
#: admin/views/Themes.php:75 admin/views/Themes.php:94
|
650 |
msgid "Title"
|
651 |
-
msgstr ""
|
652 |
|
653 |
#: admin/views/Albums.php:54 admin/views/Albums.php:112
|
654 |
#: admin/views/Albums.php:255 admin/views/Galleries.php:56
|
655 |
#: admin/views/Galleries.php:117 admin/views/Galleries.php:305
|
656 |
msgid "Author"
|
657 |
-
msgstr ""
|
658 |
|
659 |
#: admin/views/Albums.php:98 admin/views/Albums.php:345
|
660 |
#: admin/views/Albumsgalleries.php:110 admin/views/Comments.php:99
|
@@ -670,8 +650,6 @@ msgstr ""
|
|
670 |
|
671 |
#: admin/views/Albums.php:106 admin/views/Albums.php:182
|
672 |
#: admin/views/Galleries.php:110 admin/views/Galleries.php:207
|
673 |
-
#, fuzzy
|
674 |
-
#| msgid "Previous"
|
675 |
msgid "Preview"
|
676 |
msgstr "Poprzedni"
|
677 |
|
@@ -679,8 +657,6 @@ msgstr "Poprzedni"
|
|
679 |
#: admin/views/Comments.php:112 admin/views/Galleries.php:113
|
680 |
#: admin/views/Galleries.php:736 admin/views/Ratings.php:87
|
681 |
#: admin/views/Themes.php:104
|
682 |
-
#, fuzzy
|
683 |
-
#| msgid "Show comments"
|
684 |
msgid "Show more details"
|
685 |
msgstr "Pokaż komentarze"
|
686 |
|
@@ -715,7 +691,7 @@ msgstr ""
|
|
715 |
|
716 |
#: admin/views/Albums.php:204 admin/views/Galleries.php:245
|
717 |
msgid "Published"
|
718 |
-
msgstr ""
|
719 |
|
720 |
#: admin/views/Albums.php:206 admin/views/Galleries.php:247
|
721 |
#: admin/views/Options.php:132 admin/views/Options.php:157
|
@@ -787,7 +763,7 @@ msgstr ""
|
|
787 |
#: wd/includes/overview.php:227 wd/includes/overview.php:234
|
788 |
#: wd/includes/overview.php:241 wd/includes/overview.php:251
|
789 |
msgid "Yes"
|
790 |
-
msgstr ""
|
791 |
|
792 |
#: admin/views/Albums.php:208 admin/views/Galleries.php:249
|
793 |
#: admin/views/Options.php:133 admin/views/Options.php:158
|
@@ -859,7 +835,7 @@ msgstr ""
|
|
859 |
#: wd/includes/overview.php:236 wd/includes/overview.php:243
|
860 |
#: wd/includes/overview.php:246 wd/includes/overview.php:251
|
861 |
msgid "No"
|
862 |
-
msgstr ""
|
863 |
|
864 |
#: admin/views/Albums.php:219
|
865 |
msgid "Galleries and Gallery Groups"
|
@@ -888,7 +864,7 @@ msgstr ""
|
|
888 |
#: admin/views/Galleries.php:635 admin/views/Galleries.php:742
|
889 |
#: frontend/views/BWGViewGalleryBox.php:1584
|
890 |
msgid "Description"
|
891 |
-
msgstr ""
|
892 |
|
893 |
#: admin/views/Albums.php:300 admin/views/Galleries.php:270
|
894 |
msgid "Page or Post editor"
|
@@ -934,16 +910,14 @@ msgstr ""
|
|
934 |
|
935 |
#: admin/views/Albumsgalleries.php:118 admin/views/Options.php:75
|
936 |
#: admin/views/Shortcode.php:66 admin/views/Shortcode.php:270
|
937 |
-
#, fuzzy
|
938 |
-
#| msgid "Gallery is empty."
|
939 |
msgid "Gallery group"
|
940 |
-
msgstr "
|
941 |
|
942 |
#: admin/views/Albumsgalleries.php:118 admin/views/Options.php:72
|
943 |
#: admin/views/Shortcode.php:63 admin/views/Shortcode.php:192
|
944 |
#: admin/views/Shortcode.php:270 admin/views/Widget.php:117
|
945 |
msgid "Gallery"
|
946 |
-
msgstr ""
|
947 |
|
948 |
#: admin/views/Albumsgalleries.php:136
|
949 |
msgid "Add to Gallery Group"
|
@@ -954,7 +928,7 @@ msgstr ""
|
|
954 |
#: frontend/views/BWGViewGalleryBox.php:1453
|
955 |
#: frontend/views/BWGViewGalleryBox.php:1460
|
956 |
msgid "Email"
|
957 |
-
msgstr "
|
958 |
|
959 |
#: admin/views/Comments.php:70 admin/views/Comments.php:124
|
960 |
#: frontend/views/BWGViewGalleryBox.php:1438
|
@@ -981,11 +955,11 @@ msgstr ""
|
|
981 |
|
982 |
#: admin/views/Editimage.php:785
|
983 |
msgid "Grayscale"
|
984 |
-
msgstr ""
|
985 |
|
986 |
#: admin/views/Editimage.php:789
|
987 |
msgid "Negative"
|
988 |
-
msgstr ""
|
989 |
|
990 |
#: admin/views/Editimage.php:793
|
991 |
msgid "Removal"
|
@@ -993,7 +967,7 @@ msgstr ""
|
|
993 |
|
994 |
#: admin/views/Editimage.php:797
|
995 |
msgid "Sepia"
|
996 |
-
msgstr ""
|
997 |
|
998 |
#: admin/views/Editimage.php:801
|
999 |
msgid "Slate"
|
@@ -1001,15 +975,13 @@ msgstr ""
|
|
1001 |
|
1002 |
#: admin/views/Editimage.php:805
|
1003 |
msgid "Saturate"
|
1004 |
-
msgstr ""
|
1005 |
|
1006 |
#: admin/views/Editimage.php:809 admin/views/Galleries.php:718
|
1007 |
msgid "Do you want to reset the image?"
|
1008 |
msgstr ""
|
1009 |
|
1010 |
#: admin/views/Editimage.php:811
|
1011 |
-
#, fuzzy
|
1012 |
-
#| msgid "Reset"
|
1013 |
msgid "Reset image"
|
1014 |
msgstr "Zresetować"
|
1015 |
|
@@ -1023,21 +995,19 @@ msgstr ""
|
|
1023 |
|
1024 |
#: admin/views/Editimage.php:864
|
1025 |
msgid "Contrast"
|
1026 |
-
msgstr ""
|
1027 |
|
1028 |
#: admin/views/Galleries.php:55 admin/views/Galleries.php:116
|
1029 |
msgid "Images count"
|
1030 |
msgstr ""
|
1031 |
|
1032 |
#: admin/views/Galleries.php:188
|
1033 |
-
#, fuzzy
|
1034 |
-
#| msgid "Gallery is empty."
|
1035 |
msgid "Gallery title"
|
1036 |
-
msgstr "
|
1037 |
|
1038 |
#: admin/views/Galleries.php:223
|
1039 |
msgid "Basic"
|
1040 |
-
msgstr ""
|
1041 |
|
1042 |
#: admin/views/Galleries.php:340
|
1043 |
msgid "Gallery content type"
|
@@ -1049,11 +1019,9 @@ msgstr ""
|
|
1049 |
|
1050 |
#: admin/views/Galleries.php:346
|
1051 |
msgid "Instagram only"
|
1052 |
-
msgstr ""
|
1053 |
|
1054 |
#: admin/views/Galleries.php:349 admin/views/Options.php:1474
|
1055 |
-
#, fuzzy
|
1056 |
-
#| msgid "Share on Facebook"
|
1057 |
msgid "Facebook"
|
1058 |
msgstr "Podziel się na Facebooku."
|
1059 |
|
@@ -1078,14 +1046,12 @@ msgid "Whole post"
|
|
1078 |
msgstr ""
|
1079 |
|
1080 |
#: admin/views/Galleries.php:372
|
1081 |
-
#, fuzzy
|
1082 |
-
#| msgid "Photo gallery plugin autoupdate interval."
|
1083 |
msgid "Gallery autoupdate option"
|
1084 |
msgstr "Galeria zdjęć plugin interwał automatycznej aktualizacji."
|
1085 |
|
1086 |
#: admin/views/Galleries.php:374
|
1087 |
msgid "No update"
|
1088 |
-
msgstr ""
|
1089 |
|
1090 |
#: admin/views/Galleries.php:376
|
1091 |
msgid "Add new media, keep old ones published."
|
@@ -1130,15 +1096,15 @@ msgstr ""
|
|
1130 |
|
1131 |
#: admin/views/Galleries.php:452
|
1132 |
msgid "Pricelist"
|
1133 |
-
msgstr ""
|
1134 |
|
1135 |
#: admin/views/Galleries.php:453
|
1136 |
msgid "Add pricelist"
|
1137 |
-
msgstr ""
|
1138 |
|
1139 |
#: admin/views/Galleries.php:454
|
1140 |
msgid "Remove pricelist"
|
1141 |
-
msgstr ""
|
1142 |
|
1143 |
#: admin/views/Galleries.php:471
|
1144 |
msgid ""
|
@@ -1154,7 +1120,7 @@ msgstr ""
|
|
1154 |
#: filemanager/view.php:262 filemanager/view.php:263
|
1155 |
#: wd/templates/display_deactivation_popup.php:23
|
1156 |
msgid "Cancel"
|
1157 |
-
msgstr ""
|
1158 |
|
1159 |
#: admin/views/Galleries.php:480
|
1160 |
msgid "<b>Youtube</b> URL example:"
|
@@ -1216,17 +1182,13 @@ msgstr ""
|
|
1216 |
|
1217 |
#: admin/views/Galleries.php:594
|
1218 |
msgid "Description: "
|
1219 |
-
msgstr ""
|
1220 |
|
1221 |
#: admin/views/Galleries.php:613
|
1222 |
-
#, fuzzy
|
1223 |
-
#| msgid "You have already rated."
|
1224 |
msgid "You have unsaved changes."
|
1225 |
-
msgstr "
|
1226 |
|
1227 |
#: admin/views/Galleries.php:626 photo-gallery.php:395
|
1228 |
-
#, fuzzy
|
1229 |
-
#| msgid "Show comments"
|
1230 |
msgid "Show order column"
|
1231 |
msgstr "Pokaż komentarze"
|
1232 |
|
@@ -1256,16 +1218,16 @@ msgstr ""
|
|
1256 |
|
1257 |
#: admin/views/Galleries.php:706 admin/views/Shortcode.php:614
|
1258 |
msgid "Resolution"
|
1259 |
-
msgstr ""
|
1260 |
|
1261 |
#: admin/views/Galleries.php:707 admin/views/Shortcode.php:612
|
1262 |
#: framework/WDWLibrary.php:890
|
1263 |
msgid "Size"
|
1264 |
-
msgstr "
|
1265 |
|
1266 |
#: admin/views/Galleries.php:717
|
1267 |
msgid "Crop"
|
1268 |
-
msgstr ""
|
1269 |
|
1270 |
#: admin/views/Galleries.php:772
|
1271 |
msgid "Remove tag"
|
@@ -1344,10 +1306,8 @@ msgid "Show \"Order by\" dropdown list"
|
|
1344 |
msgstr ""
|
1345 |
|
1346 |
#: admin/views/Options.php:164 admin/views/Shortcode.php:1368
|
1347 |
-
#, fuzzy
|
1348 |
-
#| msgid "Show rating"
|
1349 |
msgid "Show tag box"
|
1350 |
-
msgstr "Pokaż
|
1351 |
|
1352 |
#: admin/views/Options.php:173
|
1353 |
msgid "Preload images"
|
@@ -1424,10 +1384,8 @@ msgid ""
|
|
1424 |
msgstr ""
|
1425 |
|
1426 |
#: admin/views/Options.php:288
|
1427 |
-
#, fuzzy
|
1428 |
-
#| msgid "Gallery is empty."
|
1429 |
msgid "Gallery role"
|
1430 |
-
msgstr "
|
1431 |
|
1432 |
#: admin/views/Options.php:293
|
1433 |
msgid "Only author can change a gallery."
|
@@ -1494,8 +1452,6 @@ msgstr ""
|
|
1494 |
#: admin/views/Options.php:1030 admin/views/Shortcode.php:431
|
1495 |
#: admin/views/Shortcode.php:872 admin/views/Shortcode.php:1003
|
1496 |
#: admin/views/Shortcode.php:1052 admin/views/Shortcode.php:1101
|
1497 |
-
#, fuzzy
|
1498 |
-
#| msgid "Show info"
|
1499 |
msgid "Show on hover"
|
1500 |
msgstr "Pokaż informacje"
|
1501 |
|
@@ -1514,10 +1470,8 @@ msgid "Don't show"
|
|
1514 |
msgstr ""
|
1515 |
|
1516 |
#: admin/views/Options.php:400
|
1517 |
-
#, fuzzy
|
1518 |
-
#| msgid "Show comments"
|
1519 |
msgid "Show ecommerce icon"
|
1520 |
-
msgstr "Pokaż
|
1521 |
|
1522 |
#: admin/views/Options.php:413
|
1523 |
msgid "Enable image pagination"
|
@@ -1720,28 +1674,20 @@ msgid "Number of gallery group columns"
|
|
1720 |
msgstr ""
|
1721 |
|
1722 |
#: admin/views/Options.php:997
|
1723 |
-
#, fuzzy
|
1724 |
-
#| msgid "Gallery is empty."
|
1725 |
msgid "Gallery groups per page"
|
1726 |
-
msgstr "
|
1727 |
|
1728 |
#: admin/views/Options.php:1014
|
1729 |
-
#, fuzzy
|
1730 |
-
#| msgid "Gallery is empty."
|
1731 |
msgid "Gallery group view type"
|
1732 |
-
msgstr "
|
1733 |
|
1734 |
#: admin/views/Options.php:1020
|
1735 |
-
#, fuzzy
|
1736 |
-
#| msgid "There are no images in this gallery."
|
1737 |
msgid "The gallery images view type in the gallery group."
|
1738 |
-
msgstr "
|
1739 |
|
1740 |
#: admin/views/Options.php:1028
|
1741 |
-
#, fuzzy
|
1742 |
-
#| msgid "Show rating"
|
1743 |
msgid "Show title"
|
1744 |
-
msgstr "Pokaż
|
1745 |
|
1746 |
#: admin/views/Options.php:1038
|
1747 |
msgid "Enable extended gallery group description"
|
@@ -1804,16 +1750,12 @@ msgid "Display hit counter"
|
|
1804 |
msgstr ""
|
1805 |
|
1806 |
#: admin/views/Options.php:1208 admin/views/Shortcode.php:1230
|
1807 |
-
#, fuzzy
|
1808 |
-
#| msgid "Exit Fullscreen"
|
1809 |
msgid "Enable fullscreen"
|
1810 |
-
msgstr "
|
1811 |
|
1812 |
#: admin/views/Options.php:1217 admin/views/Shortcode.php:1238
|
1813 |
-
#, fuzzy
|
1814 |
-
#| msgid "Hide info"
|
1815 |
msgid "Enable info"
|
1816 |
-
msgstr "
|
1817 |
|
1818 |
#: admin/views/Options.php:1226 admin/views/Shortcode.php:1246
|
1819 |
msgid "Display info by default"
|
@@ -1844,18 +1786,16 @@ msgid "Enable download button"
|
|
1844 |
msgstr ""
|
1845 |
|
1846 |
#: admin/views/Options.php:1294
|
1847 |
-
#, fuzzy
|
1848 |
-
#| msgid "Show comments"
|
1849 |
msgid "Show images count"
|
1850 |
-
msgstr "Pokaż
|
1851 |
|
1852 |
#: admin/views/Options.php:1303
|
1853 |
msgid "Enable loop"
|
1854 |
-
msgstr ""
|
1855 |
|
1856 |
#: admin/views/Options.php:1312
|
1857 |
msgid "Enable"
|
1858 |
-
msgstr ""
|
1859 |
|
1860 |
#: admin/views/Options.php:1322
|
1861 |
msgid "profile id"
|
@@ -1871,26 +1811,20 @@ msgid "here"
|
|
1871 |
msgstr ""
|
1872 |
|
1873 |
#: admin/views/Options.php:1332 admin/views/Shortcode.php:1261
|
1874 |
-
#, fuzzy
|
1875 |
-
#| msgid "Hide rating"
|
1876 |
msgid "Enable rating"
|
1877 |
-
msgstr "
|
1878 |
|
1879 |
#: admin/views/Options.php:1342 admin/views/Shortcode.php:1269
|
1880 |
-
#, fuzzy
|
1881 |
-
#| msgid "Show comments"
|
1882 |
msgid "Enable comments"
|
1883 |
msgstr "Pokaż komentarze"
|
1884 |
|
1885 |
#: admin/views/Options.php:1356
|
1886 |
-
#, fuzzy
|
1887 |
-
#| msgid "Your comment is awaiting moderation"
|
1888 |
msgid "Enable comments moderation"
|
1889 |
-
msgstr "
|
1890 |
|
1891 |
#: admin/views/Options.php:1366 admin/views/Shortcode.php:1281
|
1892 |
msgid "Enable Facebook button"
|
1893 |
-
msgstr ""
|
1894 |
|
1895 |
#: admin/views/Options.php:1376 admin/views/Shortcode.php:1289
|
1896 |
msgid "Enable Twitter button"
|
@@ -1910,21 +1844,19 @@ msgstr ""
|
|
1910 |
|
1911 |
#: admin/views/Options.php:1419 admin/views/Shortcode.php:1324
|
1912 |
msgid "Enable Ecommerce button"
|
1913 |
-
msgstr ""
|
1914 |
|
1915 |
#: admin/views/Options.php:1438
|
1916 |
-
#, fuzzy
|
1917 |
-
#| msgid "Photo gallery plugin autoupdate interval."
|
1918 |
msgid "Gallery autoupdate interval"
|
1919 |
-
msgstr "
|
1920 |
|
1921 |
#: admin/views/Options.php:1441
|
1922 |
msgid "hour"
|
1923 |
-
msgstr ""
|
1924 |
|
1925 |
#: admin/views/Options.php:1443
|
1926 |
msgid "min"
|
1927 |
-
msgstr ""
|
1928 |
|
1929 |
#: admin/views/Options.php:1445
|
1930 |
msgid "Minimum 1 min."
|
@@ -1950,7 +1882,7 @@ msgstr ""
|
|
1950 |
|
1951 |
#: admin/views/Options.php:1489 photo-gallery.php:1284
|
1952 |
msgid "Watermark"
|
1953 |
-
msgstr ""
|
1954 |
|
1955 |
#: admin/views/Options.php:1494
|
1956 |
msgid "Watermark type"
|
@@ -1960,11 +1892,11 @@ msgstr ""
|
|
1960 |
#: admin/views/Shortcode.php:1388 admin/views/Themes.php:4578
|
1961 |
#: admin/views/WidgetTags.php:85
|
1962 |
msgid "Text"
|
1963 |
-
msgstr ""
|
1964 |
|
1965 |
#: admin/views/Options.php:1507
|
1966 |
msgid "Watermark url"
|
1967 |
-
msgstr ""
|
1968 |
|
1969 |
#: admin/views/Options.php:1518 admin/views/Options.php:1664
|
1970 |
msgid "Add Image"
|
@@ -2268,8 +2200,6 @@ msgstr ""
|
|
2268 |
|
2269 |
#: admin/views/Shortcode.php:421 admin/views/Shortcode.php:729
|
2270 |
#: admin/views/Shortcode.php:773 admin/views/Shortcode.php:817
|
2271 |
-
#, fuzzy
|
2272 |
-
#| msgid "More"
|
2273 |
msgid "Load More"
|
2274 |
msgstr "Więcej"
|
2275 |
|
@@ -2281,7 +2211,7 @@ msgstr ""
|
|
2281 |
|
2282 |
#: admin/views/Shortcode.php:430
|
2283 |
msgid "Ecommerce icon"
|
2284 |
-
msgstr ""
|
2285 |
|
2286 |
#: admin/views/Shortcode.php:443 admin/views/Shortcode.php:479
|
2287 |
msgid "Max. number of album columns"
|
@@ -2336,8 +2266,6 @@ msgid "Sort images by"
|
|
2336 |
msgstr ""
|
2337 |
|
2338 |
#: admin/views/Shortcode.php:608
|
2339 |
-
#, fuzzy
|
2340 |
-
#| msgid "Order by: "
|
2341 |
msgid "Order"
|
2342 |
msgstr "Sortuj według"
|
2343 |
|
@@ -2377,10 +2305,8 @@ msgstr ""
|
|
2377 |
|
2378 |
#: admin/views/Shortcode.php:708 admin/views/Shortcode.php:752
|
2379 |
#: admin/views/Shortcode.php:796
|
2380 |
-
#, fuzzy
|
2381 |
-
#| msgid "Album is empty."
|
2382 |
msgid "Albums per page"
|
2383 |
-
msgstr "
|
2384 |
|
2385 |
#: admin/views/Shortcode.php:712 admin/views/Shortcode.php:739
|
2386 |
#: admin/views/Shortcode.php:756 admin/views/Shortcode.php:783
|
@@ -2453,16 +2379,12 @@ msgid "Enter absolute audio file url or add file from Options page."
|
|
2453 |
msgstr ""
|
2454 |
|
2455 |
#: admin/views/Shortcode.php:1002
|
2456 |
-
#, fuzzy
|
2457 |
-
#| msgid "Album is empty."
|
2458 |
msgid "Album title"
|
2459 |
-
msgstr "
|
2460 |
|
2461 |
#: admin/views/Shortcode.php:1010 admin/views/Shortcode.php:1059
|
2462 |
-
#, fuzzy
|
2463 |
-
#| msgid "Album is empty."
|
2464 |
msgid "Album view type"
|
2465 |
-
msgstr "
|
2466 |
|
2467 |
#: admin/views/Shortcode.php:1014 admin/views/Shortcode.php:1063
|
2468 |
msgid "The gallery images view type in the album."
|
@@ -2542,7 +2464,7 @@ msgstr ""
|
|
2542 |
|
2543 |
#: admin/views/Shortcode.php:1327
|
2544 |
msgid "Enable Ecommerce for images."
|
2545 |
-
msgstr ""
|
2546 |
|
2547 |
#: admin/views/Shortcode.php:1340
|
2548 |
msgid "Toggle panel"
|
@@ -2632,10 +2554,8 @@ msgstr ""
|
|
2632 |
#: admin/views/Themes.php:773 admin/views/Themes.php:1536
|
2633 |
#: admin/views/Themes.php:1814 admin/views/Themes.php:2780
|
2634 |
#: admin/views/Themes.php:3189 admin/views/Themes.php:4453
|
2635 |
-
#, fuzzy
|
2636 |
-
#| msgid "Order by: "
|
2637 |
msgid "Border style:"
|
2638 |
-
msgstr "
|
2639 |
|
2640 |
#: admin/views/Themes.php:238 admin/views/Themes.php:538
|
2641 |
#: admin/views/Themes.php:787 admin/views/Themes.php:1550
|
@@ -3469,8 +3389,6 @@ msgid "Fullscreen close button color:"
|
|
3469 |
msgstr ""
|
3470 |
|
3471 |
#: admin/views/Themes.php:3603
|
3472 |
-
#, fuzzy
|
3473 |
-
#| msgid "Share on Facebook"
|
3474 |
msgid "Share buttons color:"
|
3475 |
msgstr "Podziel się na Facebooku."
|
3476 |
|
@@ -3655,8 +3573,6 @@ msgid "Info margin:"
|
|
3655 |
msgstr ""
|
3656 |
|
3657 |
#: admin/views/Themes.php:4194
|
3658 |
-
#, fuzzy
|
3659 |
-
#| msgid "Comment"
|
3660 |
msgid "Comments Width:"
|
3661 |
msgstr "Komentarz"
|
3662 |
|
@@ -3920,10 +3836,8 @@ msgid "Select"
|
|
3920 |
msgstr ""
|
3921 |
|
3922 |
#: admin/views/Widget.php:134
|
3923 |
-
#, fuzzy
|
3924 |
-
#| msgid "Gallery is empty."
|
3925 |
msgid "Gallery Type:"
|
3926 |
-
msgstr "
|
3927 |
|
3928 |
#: admin/views/Widget.php:142
|
3929 |
msgid "Gallery Groups:"
|
@@ -4093,8 +4007,6 @@ msgid "Paste"
|
|
4093 |
msgstr ""
|
4094 |
|
4095 |
#: filemanager/view.php:105
|
4096 |
-
#, fuzzy
|
4097 |
-
#| msgid " item(s)"
|
4098 |
msgid "Remove items"
|
4099 |
msgstr "pozycja"
|
4100 |
|
@@ -4115,8 +4027,6 @@ msgid "To change upload directory go to Options page."
|
|
4115 |
msgstr ""
|
4116 |
|
4117 |
#: filemanager/view.php:140
|
4118 |
-
#, fuzzy
|
4119 |
-
#| msgid "Order by: "
|
4120 |
msgid "Order by:"
|
4121 |
msgstr "Sortuj według"
|
4122 |
|
@@ -4133,10 +4043,8 @@ msgid "Click to sort by date modified"
|
|
4133 |
msgstr ""
|
4134 |
|
4135 |
#: filemanager/view.php:256
|
4136 |
-
#, fuzzy
|
4137 |
-
#| msgid "There are no images in this gallery."
|
4138 |
msgid "Add selected images to gallery"
|
4139 |
-
msgstr "
|
4140 |
|
4141 |
#: filemanager/view.php:272
|
4142 |
msgid "Thumbnail Maximum Dimensions:"
|
@@ -4242,7 +4150,7 @@ msgid "Theme successfully copied."
|
|
4242 |
msgstr ""
|
4243 |
|
4244 |
#: framework/WDWLibrary.php:177
|
4245 |
-
msgid "Items
|
4246 |
msgstr ""
|
4247 |
|
4248 |
#: framework/WDWLibrary.php:182
|
@@ -4272,11 +4180,11 @@ msgstr ""
|
|
4272 |
#: framework/WDWLibrary.php:418 framework/WDWLibrary.php:567
|
4273 |
#: photo-gallery.php:398
|
4274 |
msgid "item"
|
4275 |
-
msgstr ""
|
4276 |
|
4277 |
#: framework/WDWLibrary.php:650
|
4278 |
msgid " item(s)"
|
4279 |
-
msgstr "pozycja"
|
4280 |
|
4281 |
#: framework/WDWLibrary.php:656
|
4282 |
msgid "Previous"
|
@@ -4296,7 +4204,7 @@ msgstr "Przejdź do poprzedniej strony"
|
|
4296 |
|
4297 |
#: framework/WDWLibrary.php:683
|
4298 |
msgid "Go to the next page"
|
4299 |
-
msgstr "
|
4300 |
|
4301 |
#: framework/WDWLibrary.php:684
|
4302 |
msgid "Go to the last page"
|
@@ -4316,10 +4224,8 @@ msgid "No %s found."
|
|
4316 |
msgstr ""
|
4317 |
|
4318 |
#: framework/WDWLibrary.php:2012
|
4319 |
-
#, fuzzy
|
4320 |
-
#| msgid "Gallery is empty."
|
4321 |
msgid "Gallery Tags"
|
4322 |
-
msgstr "
|
4323 |
|
4324 |
#: frontend/views/BWGViewAlbum_compact_preview.php:23
|
4325 |
#: frontend/views/BWGViewAlbum_extended_preview.php:19
|
@@ -4385,7 +4291,7 @@ msgstr "Galeria jest pusta."
|
|
4385 |
#: frontend/views/BWGViewThumbnails.php:218
|
4386 |
#: frontend/views/BWGViewThumbnails_mosaic.php:174
|
4387 |
msgid "Play"
|
4388 |
-
msgstr "
|
4389 |
|
4390 |
#: frontend/views/BWGViewAlbum_compact_preview.php:471
|
4391 |
#: frontend/views/BWGViewAlbum_compact_preview.php:497
|
@@ -4397,7 +4303,7 @@ msgstr "Grać"
|
|
4397 |
#: frontend/views/BWGViewThumbnails_masonry.php:168
|
4398 |
#: frontend/views/BWGViewThumbnails_mosaic.php:191
|
4399 |
msgid "Open"
|
4400 |
-
msgstr ""
|
4401 |
|
4402 |
#: frontend/views/BWGViewAlbum_compact_preview.php:472
|
4403 |
#: frontend/views/BWGViewAlbum_compact_preview.php:498
|
@@ -4410,7 +4316,7 @@ msgstr ""
|
|
4410 |
#: frontend/views/BWGViewThumbnails_masonry.php:169
|
4411 |
#: frontend/views/BWGViewThumbnails_mosaic.php:192
|
4412 |
msgid "Ecommerce"
|
4413 |
-
msgstr ""
|
4414 |
|
4415 |
#: frontend/views/BWGViewAlbum_compact_preview.php:1013
|
4416 |
#: frontend/views/BWGViewAlbum_extended_preview.php:1037
|
@@ -4422,8 +4328,6 @@ msgstr ""
|
|
4422 |
#: frontend/views/BWGViewThumbnails.php:280
|
4423 |
#: frontend/views/BWGViewThumbnails_masonry.php:314
|
4424 |
#: frontend/views/BWGViewThumbnails_mosaic.php:602
|
4425 |
-
#, fuzzy
|
4426 |
-
#| msgid "Download original image"
|
4427 |
msgid "Download gallery"
|
4428 |
msgstr "Pobierz oryginalny obraz"
|
4429 |
|
@@ -4453,8 +4357,6 @@ msgstr "Nie wybrano galeria lub galeria została usunięta"
|
|
4453 |
#: frontend/views/BWGViewThumbnails.php:73
|
4454 |
#: frontend/views/BWGViewThumbnails_masonry.php:71
|
4455 |
#: frontend/views/BWGViewThumbnails_mosaic.php:75
|
4456 |
-
#, fuzzy
|
4457 |
-
#| msgid "There are no images in this gallery."
|
4458 |
msgid "There are no images."
|
4459 |
msgstr "Nie ma zdjęć w tej galerii."
|
4460 |
|
@@ -4499,10 +4401,8 @@ msgid "Share on Tumblr"
|
|
4499 |
msgstr "Podziel się na Tumblr"
|
4500 |
|
4501 |
#: frontend/views/BWGViewBlog_style.php:353
|
4502 |
-
#, fuzzy
|
4503 |
-
#| msgid "Show comments"
|
4504 |
msgid "Show ecommerce"
|
4505 |
-
msgstr "Pokaż
|
4506 |
|
4507 |
#: frontend/views/BWGViewCarousel.php:224
|
4508 |
#: frontend/views/BWGViewCarousel.php:230
|
@@ -4514,8 +4414,6 @@ msgid "Pause"
|
|
4514 |
msgstr "Pauza"
|
4515 |
|
4516 |
#: frontend/views/BWGViewDownload_gallery.php:37
|
4517 |
-
#, fuzzy
|
4518 |
-
#| msgid "There are no images in this gallery."
|
4519 |
msgid "There are no images to download."
|
4520 |
msgstr "Nie ma zdjęć w tej galerii."
|
4521 |
|
@@ -4578,7 +4476,7 @@ msgstr "Anuluj ocenę. "
|
|
4578 |
|
4579 |
#: frontend/views/BWGViewGalleryBox.php:1297
|
4580 |
msgid "You have already rated."
|
4581 |
-
msgstr "Już oceniłeś.
|
4582 |
|
4583 |
#: frontend/views/BWGViewGalleryBox.php:1406
|
4584 |
msgid "Error. Incorrect Verification Code."
|
@@ -4611,19 +4509,15 @@ msgstr "Usuń komentarz"
|
|
4611 |
|
4612 |
#: frontend/views/BWGViewGalleryBox.php:1531
|
4613 |
#: frontend/views/BWGViewGalleryBox.php:3043
|
4614 |
-
#, fuzzy
|
4615 |
-
#| msgid "Hide Comments"
|
4616 |
msgid "Hide Ecommerce"
|
4617 |
-
msgstr "Ukryj
|
4618 |
|
4619 |
#: frontend/views/BWGViewGalleryBox.php:1538
|
4620 |
#: frontend/views/BWGViewGalleryBox.php:1726
|
4621 |
msgid "Add to cart"
|
4622 |
-
msgstr ""
|
4623 |
|
4624 |
#: frontend/views/BWGViewGalleryBox.php:1541
|
4625 |
-
#, fuzzy
|
4626 |
-
#| msgid " item(s)"
|
4627 |
msgid "items"
|
4628 |
msgstr "pozycja"
|
4629 |
|
@@ -4638,16 +4532,16 @@ msgstr ""
|
|
4638 |
#: frontend/views/BWGViewGalleryBox.php:1573
|
4639 |
#: frontend/views/BWGViewGalleryBox.php:1686
|
4640 |
msgid "Price"
|
4641 |
-
msgstr ""
|
4642 |
|
4643 |
#: frontend/views/BWGViewGalleryBox.php:1593
|
4644 |
msgid "Count"
|
4645 |
-
msgstr ""
|
4646 |
|
4647 |
#: frontend/views/BWGViewGalleryBox.php:1673
|
4648 |
#: frontend/views/BWGViewGalleryBox.php:1717
|
4649 |
msgid "Total"
|
4650 |
-
msgstr ""
|
4651 |
|
4652 |
#: frontend/views/BWGViewGalleryBox.php:1683
|
4653 |
msgid "Choose"
|
@@ -4659,7 +4553,7 @@ msgstr ""
|
|
4659 |
|
4660 |
#: frontend/views/BWGViewGalleryBox.php:1727
|
4661 |
msgid "View cart"
|
4662 |
-
msgstr ""
|
4663 |
|
4664 |
#: frontend/views/BWGViewGalleryBox.php:1909
|
4665 |
msgid "Please select at least one item"
|
@@ -4672,10 +4566,8 @@ msgstr ""
|
|
4672 |
#: frontend/views/BWGViewGalleryBox.php:2668
|
4673 |
#: frontend/views/BWGViewGalleryBox.php:2991
|
4674 |
#: frontend/views/BWGViewGalleryBox.php:3035
|
4675 |
-
#, fuzzy
|
4676 |
-
#| msgid "Show comments"
|
4677 |
msgid "Show Ecommerce"
|
4678 |
-
msgstr "Pokaż
|
4679 |
|
4680 |
#: frontend/views/BWGViewGalleryBox.php:3000
|
4681 |
#: frontend/views/BWGViewGalleryBox.php:3028
|
@@ -4701,11 +4593,11 @@ msgstr "Zamknij tryb pełnoekranowy"
|
|
4701 |
|
4702 |
#: insert.php:1152
|
4703 |
msgid "Theme 1"
|
4704 |
-
msgstr ""
|
4705 |
|
4706 |
#: insert.php:1158
|
4707 |
msgid "Theme 2"
|
4708 |
-
msgstr ""
|
4709 |
|
4710 |
#: photo-gallery.php:97
|
4711 |
msgid "This option is disabled in free version."
|
@@ -4717,11 +4609,11 @@ msgstr ""
|
|
4717 |
|
4718 |
#: photo-gallery.php:262
|
4719 |
msgid "Options"
|
4720 |
-
msgstr ""
|
4721 |
|
4722 |
#: photo-gallery.php:275
|
4723 |
msgid "Pro Version"
|
4724 |
-
msgstr ""
|
4725 |
|
4726 |
#: photo-gallery.php:280
|
4727 |
msgid "Add-ons"
|
@@ -5032,8 +4924,6 @@ msgid "Generating Shortcode"
|
|
5032 |
msgstr ""
|
5033 |
|
5034 |
#: photo-gallery.php:1381
|
5035 |
-
#, fuzzy
|
5036 |
-
#| msgid "Hide Comments"
|
5037 |
msgid "Editing Comments"
|
5038 |
msgstr "Ukryj komentarze"
|
5039 |
|
@@ -5070,10 +4960,8 @@ msgid "Albums"
|
|
5070 |
msgstr ""
|
5071 |
|
5072 |
#: photo-gallery.php:1506
|
5073 |
-
#, fuzzy
|
5074 |
-
#| msgid "Gallery is empty."
|
5075 |
msgid "Gallery tags"
|
5076 |
-
msgstr "
|
5077 |
|
5078 |
#: photo-gallery.php:1555
|
5079 |
msgid "Photo gallery plugin autoupdate interval."
|
@@ -5090,8 +4978,6 @@ msgid "Please update the %s add-ons to start using."
|
|
5090 |
msgstr ""
|
5091 |
|
5092 |
#: photo-gallery.php:1641
|
5093 |
-
#, fuzzy
|
5094 |
-
#| msgid "Rated."
|
5095 |
msgid "Rate"
|
5096 |
msgstr "Ocenione."
|
5097 |
|
@@ -5420,7 +5306,7 @@ msgstr ""
|
|
5420 |
|
5421 |
#: wd/templates/display_overview_user_guide.php:26
|
5422 |
msgid "Demo"
|
5423 |
-
msgstr ""
|
5424 |
|
5425 |
#: wd/templates/display_overview_user_guide.php:36
|
5426 |
msgid "FAQ"
|
@@ -5436,7 +5322,7 @@ msgstr ""
|
|
5436 |
|
5437 |
#: wd/templates/display_overview_welcome.php:26
|
5438 |
msgid "More features"
|
5439 |
-
msgstr ""
|
5440 |
|
5441 |
#: wd/templates/display_subscribe.php:9
|
5442 |
msgid "Hi there"
|
@@ -5457,12 +5343,12 @@ msgstr ""
|
|
5457 |
|
5458 |
#: wd/templates/display_subscribe.php:36
|
5459 |
msgid "Privacy Policy"
|
5460 |
-
msgstr ""
|
5461 |
|
5462 |
#: wd/templates/display_subscribe.php:42
|
5463 |
msgid "Terms of Use"
|
5464 |
-
msgstr ""
|
5465 |
|
5466 |
#: wd/wd.php:72
|
5467 |
msgid "Overview"
|
5468 |
-
msgstr ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: bwg\n"
|
4 |
"POT-Creation-Date: 2018-01-24 11:18+0400\n"
|
5 |
+
"PO-Revision-Date: 2018-08-01 21:22+0200\n"
|
6 |
+
"Last-Translator: Tomasz Mróz <info@viewpro.pl>\n"
|
7 |
"Language-Team: \n"
|
8 |
"Language: pl_PL\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 2.1.1\n"
|
13 |
"X-Poedit-Basepath: ..\n"
|
14 |
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
|
15 |
"|| n%100>=20) ? 1 : 2);\n"
|
27 |
msgstr ""
|
28 |
|
29 |
#: addons/addons.php:13
|
|
|
|
|
30 |
msgid "Photo Gallery Facebook"
|
31 |
msgstr "Podziel się na Facebooku."
|
32 |
|
112 |
#: admin/views/Albums.php:105 admin/views/Comments.php:109
|
113 |
#: admin/views/Galleries.php:109 admin/views/Galleries.php:733
|
114 |
#: admin/views/Ratings.php:84 admin/views/Themes.php:101
|
|
|
|
|
115 |
msgid "Delete"
|
116 |
msgstr "Usuń komentarz"
|
117 |
|
130 |
msgstr ""
|
131 |
|
132 |
#: admin/controllers/Comments.php:93 photo-gallery.php:268
|
|
|
|
|
133 |
msgid "Comments"
|
134 |
msgstr "Komentarz"
|
135 |
|
162 |
msgstr ""
|
163 |
|
164 |
#: admin/controllers/Galleries.php:57
|
|
|
|
|
165 |
msgid "rotated left"
|
166 |
msgstr "Jeszcze nie ocenione. "
|
167 |
|
190 |
msgstr "Zresetować"
|
191 |
|
192 |
#: admin/controllers/Galleries.php:69
|
|
|
|
|
193 |
msgid "reset"
|
194 |
msgstr "Zresetować"
|
195 |
|
204 |
msgstr ""
|
205 |
|
206 |
#: admin/controllers/Galleries.php:137 photo-gallery.php:1478
|
|
|
|
|
207 |
msgid "Galleries"
|
208 |
+
msgstr "Galerie"
|
209 |
|
210 |
#: admin/controllers/Galleries.php:437 admin/controllers/Options.php:191
|
211 |
msgid "Item Succesfully Saved."
|
546 |
|
547 |
#: admin/models/Comments.php:61 admin/models/Ratings.php:81
|
548 |
msgid "All galleries"
|
549 |
+
msgstr "Wszyst. galerie"
|
550 |
|
551 |
#: admin/models/Comments.php:75 admin/models/Ratings.php:100
|
552 |
msgid "All images"
|
553 |
+
msgstr "Wszyst. zdjęcia"
|
554 |
|
555 |
#: admin/views/AddTags.php:65 admin/views/Albums.php:50
|
556 |
#: admin/views/Comments.php:61 admin/views/Themes.php:72
|
557 |
msgid "Select all"
|
558 |
+
msgstr "Wybierz wszystkie"
|
559 |
|
560 |
#: admin/views/AddTags.php:68 admin/views/AddTags.php:86
|
561 |
#: admin/views/Albums.php:89 admin/views/Comments.php:64
|
567 |
#: frontend/views/BWGViewGalleryBox.php:1569
|
568 |
#: frontend/views/BWGViewGalleryBox.php:1684
|
569 |
msgid "Name"
|
570 |
+
msgstr "Nazwa"
|
571 |
|
572 |
#: admin/views/AddTags.php:107
|
573 |
msgid "Add to image"
|
574 |
+
msgstr "Dodaj do zdjęcia"
|
575 |
|
576 |
#: admin/views/AdminView.php:94
|
577 |
msgid "Add New"
|
578 |
+
msgstr "Dodaj nowe"
|
579 |
|
580 |
#: admin/views/AdminView.php:164 framework/WDWLibrary.php:316
|
581 |
#: framework/WDWLibrary.php:494 framework/WDWLibrary.php:817
|
584 |
msgstr "Szukaj"
|
585 |
|
586 |
#: admin/views/AdminView.php:226
|
|
|
|
|
587 |
msgid "First page"
|
588 |
+
msgstr "Pierwsza"
|
589 |
|
590 |
#: admin/views/AdminView.php:227
|
|
|
|
|
591 |
msgid "Previous page"
|
592 |
+
msgstr "Poprzednia"
|
593 |
|
594 |
#: admin/views/AdminView.php:232
|
595 |
msgid "Current Page"
|
596 |
+
msgstr "Bieżąca"
|
597 |
|
598 |
#: admin/views/AdminView.php:235 framework/WDWLibrary.php:447
|
599 |
#: framework/WDWLibrary.php:596 framework/WDWLibrary.php:679
|
601 |
msgstr "z"
|
602 |
|
603 |
#: admin/views/AdminView.php:248
|
|
|
|
|
604 |
msgid "Next page"
|
605 |
+
msgstr "Następna"
|
606 |
|
607 |
#: admin/views/AdminView.php:249
|
|
|
|
|
608 |
msgid "Last page"
|
609 |
+
msgstr "Ostatnia"
|
610 |
|
611 |
#: admin/views/AdminView.php:281 filemanager/view.php:248
|
612 |
msgid "Select All"
|
613 |
+
msgstr "Wybierz wszyst."
|
614 |
|
615 |
#: admin/views/AdminView.php:286
|
616 |
msgid "Select bulk action"
|
622 |
|
623 |
#: admin/views/AdminView.php:297
|
624 |
msgid "Apply"
|
625 |
+
msgstr "Zastosuj"
|
626 |
|
627 |
#: admin/views/Albums.php:53 admin/views/Albumsgalleries.php:77
|
628 |
#: admin/views/Albumsgalleries.php:101 admin/views/Shortcode.php:609
|
629 |
#: admin/views/Themes.php:75 admin/views/Themes.php:94
|
630 |
msgid "Title"
|
631 |
+
msgstr "Tytuł"
|
632 |
|
633 |
#: admin/views/Albums.php:54 admin/views/Albums.php:112
|
634 |
#: admin/views/Albums.php:255 admin/views/Galleries.php:56
|
635 |
#: admin/views/Galleries.php:117 admin/views/Galleries.php:305
|
636 |
msgid "Author"
|
637 |
+
msgstr "Autor"
|
638 |
|
639 |
#: admin/views/Albums.php:98 admin/views/Albums.php:345
|
640 |
#: admin/views/Albumsgalleries.php:110 admin/views/Comments.php:99
|
650 |
|
651 |
#: admin/views/Albums.php:106 admin/views/Albums.php:182
|
652 |
#: admin/views/Galleries.php:110 admin/views/Galleries.php:207
|
|
|
|
|
653 |
msgid "Preview"
|
654 |
msgstr "Poprzedni"
|
655 |
|
657 |
#: admin/views/Comments.php:112 admin/views/Galleries.php:113
|
658 |
#: admin/views/Galleries.php:736 admin/views/Ratings.php:87
|
659 |
#: admin/views/Themes.php:104
|
|
|
|
|
660 |
msgid "Show more details"
|
661 |
msgstr "Pokaż komentarze"
|
662 |
|
691 |
|
692 |
#: admin/views/Albums.php:204 admin/views/Galleries.php:245
|
693 |
msgid "Published"
|
694 |
+
msgstr "Opublikuj"
|
695 |
|
696 |
#: admin/views/Albums.php:206 admin/views/Galleries.php:247
|
697 |
#: admin/views/Options.php:132 admin/views/Options.php:157
|
763 |
#: wd/includes/overview.php:227 wd/includes/overview.php:234
|
764 |
#: wd/includes/overview.php:241 wd/includes/overview.php:251
|
765 |
msgid "Yes"
|
766 |
+
msgstr "Tak"
|
767 |
|
768 |
#: admin/views/Albums.php:208 admin/views/Galleries.php:249
|
769 |
#: admin/views/Options.php:133 admin/views/Options.php:158
|
835 |
#: wd/includes/overview.php:236 wd/includes/overview.php:243
|
836 |
#: wd/includes/overview.php:246 wd/includes/overview.php:251
|
837 |
msgid "No"
|
838 |
+
msgstr "Nie"
|
839 |
|
840 |
#: admin/views/Albums.php:219
|
841 |
msgid "Galleries and Gallery Groups"
|
864 |
#: admin/views/Galleries.php:635 admin/views/Galleries.php:742
|
865 |
#: frontend/views/BWGViewGalleryBox.php:1584
|
866 |
msgid "Description"
|
867 |
+
msgstr "Opis"
|
868 |
|
869 |
#: admin/views/Albums.php:300 admin/views/Galleries.php:270
|
870 |
msgid "Page or Post editor"
|
910 |
|
911 |
#: admin/views/Albumsgalleries.php:118 admin/views/Options.php:75
|
912 |
#: admin/views/Shortcode.php:66 admin/views/Shortcode.php:270
|
|
|
|
|
913 |
msgid "Gallery group"
|
914 |
+
msgstr "Grupa gelerii"
|
915 |
|
916 |
#: admin/views/Albumsgalleries.php:118 admin/views/Options.php:72
|
917 |
#: admin/views/Shortcode.php:63 admin/views/Shortcode.php:192
|
918 |
#: admin/views/Shortcode.php:270 admin/views/Widget.php:117
|
919 |
msgid "Gallery"
|
920 |
+
msgstr "Galeria"
|
921 |
|
922 |
#: admin/views/Albumsgalleries.php:136
|
923 |
msgid "Add to Gallery Group"
|
928 |
#: frontend/views/BWGViewGalleryBox.php:1453
|
929 |
#: frontend/views/BWGViewGalleryBox.php:1460
|
930 |
msgid "Email"
|
931 |
+
msgstr "E-mail "
|
932 |
|
933 |
#: admin/views/Comments.php:70 admin/views/Comments.php:124
|
934 |
#: frontend/views/BWGViewGalleryBox.php:1438
|
955 |
|
956 |
#: admin/views/Editimage.php:785
|
957 |
msgid "Grayscale"
|
958 |
+
msgstr "Skla szarości"
|
959 |
|
960 |
#: admin/views/Editimage.php:789
|
961 |
msgid "Negative"
|
962 |
+
msgstr "Negatyw"
|
963 |
|
964 |
#: admin/views/Editimage.php:793
|
965 |
msgid "Removal"
|
967 |
|
968 |
#: admin/views/Editimage.php:797
|
969 |
msgid "Sepia"
|
970 |
+
msgstr "Sepia"
|
971 |
|
972 |
#: admin/views/Editimage.php:801
|
973 |
msgid "Slate"
|
975 |
|
976 |
#: admin/views/Editimage.php:805
|
977 |
msgid "Saturate"
|
978 |
+
msgstr "Saturacja"
|
979 |
|
980 |
#: admin/views/Editimage.php:809 admin/views/Galleries.php:718
|
981 |
msgid "Do you want to reset the image?"
|
982 |
msgstr ""
|
983 |
|
984 |
#: admin/views/Editimage.php:811
|
|
|
|
|
985 |
msgid "Reset image"
|
986 |
msgstr "Zresetować"
|
987 |
|
995 |
|
996 |
#: admin/views/Editimage.php:864
|
997 |
msgid "Contrast"
|
998 |
+
msgstr "Kontrast"
|
999 |
|
1000 |
#: admin/views/Galleries.php:55 admin/views/Galleries.php:116
|
1001 |
msgid "Images count"
|
1002 |
msgstr ""
|
1003 |
|
1004 |
#: admin/views/Galleries.php:188
|
|
|
|
|
1005 |
msgid "Gallery title"
|
1006 |
+
msgstr "Tytuł galerii"
|
1007 |
|
1008 |
#: admin/views/Galleries.php:223
|
1009 |
msgid "Basic"
|
1010 |
+
msgstr "Podstawowe"
|
1011 |
|
1012 |
#: admin/views/Galleries.php:340
|
1013 |
msgid "Gallery content type"
|
1019 |
|
1020 |
#: admin/views/Galleries.php:346
|
1021 |
msgid "Instagram only"
|
1022 |
+
msgstr "Tylko Instagram"
|
1023 |
|
1024 |
#: admin/views/Galleries.php:349 admin/views/Options.php:1474
|
|
|
|
|
1025 |
msgid "Facebook"
|
1026 |
msgstr "Podziel się na Facebooku."
|
1027 |
|
1046 |
msgstr ""
|
1047 |
|
1048 |
#: admin/views/Galleries.php:372
|
|
|
|
|
1049 |
msgid "Gallery autoupdate option"
|
1050 |
msgstr "Galeria zdjęć plugin interwał automatycznej aktualizacji."
|
1051 |
|
1052 |
#: admin/views/Galleries.php:374
|
1053 |
msgid "No update"
|
1054 |
+
msgstr "Brak aktualizacji"
|
1055 |
|
1056 |
#: admin/views/Galleries.php:376
|
1057 |
msgid "Add new media, keep old ones published."
|
1096 |
|
1097 |
#: admin/views/Galleries.php:452
|
1098 |
msgid "Pricelist"
|
1099 |
+
msgstr "Cennik"
|
1100 |
|
1101 |
#: admin/views/Galleries.php:453
|
1102 |
msgid "Add pricelist"
|
1103 |
+
msgstr "Dodaj cennik"
|
1104 |
|
1105 |
#: admin/views/Galleries.php:454
|
1106 |
msgid "Remove pricelist"
|
1107 |
+
msgstr "Skasuj cennik"
|
1108 |
|
1109 |
#: admin/views/Galleries.php:471
|
1110 |
msgid ""
|
1120 |
#: filemanager/view.php:262 filemanager/view.php:263
|
1121 |
#: wd/templates/display_deactivation_popup.php:23
|
1122 |
msgid "Cancel"
|
1123 |
+
msgstr "Anuluj"
|
1124 |
|
1125 |
#: admin/views/Galleries.php:480
|
1126 |
msgid "<b>Youtube</b> URL example:"
|
1182 |
|
1183 |
#: admin/views/Galleries.php:594
|
1184 |
msgid "Description: "
|
1185 |
+
msgstr "Opis:"
|
1186 |
|
1187 |
#: admin/views/Galleries.php:613
|
|
|
|
|
1188 |
msgid "You have unsaved changes."
|
1189 |
+
msgstr "Masz niezapisane zmiany."
|
1190 |
|
1191 |
#: admin/views/Galleries.php:626 photo-gallery.php:395
|
|
|
|
|
1192 |
msgid "Show order column"
|
1193 |
msgstr "Pokaż komentarze"
|
1194 |
|
1218 |
|
1219 |
#: admin/views/Galleries.php:706 admin/views/Shortcode.php:614
|
1220 |
msgid "Resolution"
|
1221 |
+
msgstr "Rozdzielczość"
|
1222 |
|
1223 |
#: admin/views/Galleries.php:707 admin/views/Shortcode.php:612
|
1224 |
#: framework/WDWLibrary.php:890
|
1225 |
msgid "Size"
|
1226 |
+
msgstr "Rozmiar"
|
1227 |
|
1228 |
#: admin/views/Galleries.php:717
|
1229 |
msgid "Crop"
|
1230 |
+
msgstr "Przytnij"
|
1231 |
|
1232 |
#: admin/views/Galleries.php:772
|
1233 |
msgid "Remove tag"
|
1306 |
msgstr ""
|
1307 |
|
1308 |
#: admin/views/Options.php:164 admin/views/Shortcode.php:1368
|
|
|
|
|
1309 |
msgid "Show tag box"
|
1310 |
+
msgstr "Pokaż tag"
|
1311 |
|
1312 |
#: admin/views/Options.php:173
|
1313 |
msgid "Preload images"
|
1384 |
msgstr ""
|
1385 |
|
1386 |
#: admin/views/Options.php:288
|
|
|
|
|
1387 |
msgid "Gallery role"
|
1388 |
+
msgstr "Ustawienia galerii"
|
1389 |
|
1390 |
#: admin/views/Options.php:293
|
1391 |
msgid "Only author can change a gallery."
|
1452 |
#: admin/views/Options.php:1030 admin/views/Shortcode.php:431
|
1453 |
#: admin/views/Shortcode.php:872 admin/views/Shortcode.php:1003
|
1454 |
#: admin/views/Shortcode.php:1052 admin/views/Shortcode.php:1101
|
|
|
|
|
1455 |
msgid "Show on hover"
|
1456 |
msgstr "Pokaż informacje"
|
1457 |
|
1470 |
msgstr ""
|
1471 |
|
1472 |
#: admin/views/Options.php:400
|
|
|
|
|
1473 |
msgid "Show ecommerce icon"
|
1474 |
+
msgstr "Pokaż ikonę sklepu"
|
1475 |
|
1476 |
#: admin/views/Options.php:413
|
1477 |
msgid "Enable image pagination"
|
1674 |
msgstr ""
|
1675 |
|
1676 |
#: admin/views/Options.php:997
|
|
|
|
|
1677 |
msgid "Gallery groups per page"
|
1678 |
+
msgstr "Ilość galerii na stronie"
|
1679 |
|
1680 |
#: admin/views/Options.php:1014
|
|
|
|
|
1681 |
msgid "Gallery group view type"
|
1682 |
+
msgstr ""
|
1683 |
|
1684 |
#: admin/views/Options.php:1020
|
|
|
|
|
1685 |
msgid "The gallery images view type in the gallery group."
|
1686 |
+
msgstr ""
|
1687 |
|
1688 |
#: admin/views/Options.php:1028
|
|
|
|
|
1689 |
msgid "Show title"
|
1690 |
+
msgstr "Pokaż tytuł"
|
1691 |
|
1692 |
#: admin/views/Options.php:1038
|
1693 |
msgid "Enable extended gallery group description"
|
1750 |
msgstr ""
|
1751 |
|
1752 |
#: admin/views/Options.php:1208 admin/views/Shortcode.php:1230
|
|
|
|
|
1753 |
msgid "Enable fullscreen"
|
1754 |
+
msgstr "Włącz pełny ekran"
|
1755 |
|
1756 |
#: admin/views/Options.php:1217 admin/views/Shortcode.php:1238
|
|
|
|
|
1757 |
msgid "Enable info"
|
1758 |
+
msgstr "Włącz informacje"
|
1759 |
|
1760 |
#: admin/views/Options.php:1226 admin/views/Shortcode.php:1246
|
1761 |
msgid "Display info by default"
|
1786 |
msgstr ""
|
1787 |
|
1788 |
#: admin/views/Options.php:1294
|
|
|
|
|
1789 |
msgid "Show images count"
|
1790 |
+
msgstr "Pokaż licznik zdjęć"
|
1791 |
|
1792 |
#: admin/views/Options.php:1303
|
1793 |
msgid "Enable loop"
|
1794 |
+
msgstr "Włącz pętlę"
|
1795 |
|
1796 |
#: admin/views/Options.php:1312
|
1797 |
msgid "Enable"
|
1798 |
+
msgstr "Włącz"
|
1799 |
|
1800 |
#: admin/views/Options.php:1322
|
1801 |
msgid "profile id"
|
1811 |
msgstr ""
|
1812 |
|
1813 |
#: admin/views/Options.php:1332 admin/views/Shortcode.php:1261
|
|
|
|
|
1814 |
msgid "Enable rating"
|
1815 |
+
msgstr "Włącz oceny"
|
1816 |
|
1817 |
#: admin/views/Options.php:1342 admin/views/Shortcode.php:1269
|
|
|
|
|
1818 |
msgid "Enable comments"
|
1819 |
msgstr "Pokaż komentarze"
|
1820 |
|
1821 |
#: admin/views/Options.php:1356
|
|
|
|
|
1822 |
msgid "Enable comments moderation"
|
1823 |
+
msgstr "Włącz moderację komentarzy"
|
1824 |
|
1825 |
#: admin/views/Options.php:1366 admin/views/Shortcode.php:1281
|
1826 |
msgid "Enable Facebook button"
|
1827 |
+
msgstr "Włącz przycisk Facebook"
|
1828 |
|
1829 |
#: admin/views/Options.php:1376 admin/views/Shortcode.php:1289
|
1830 |
msgid "Enable Twitter button"
|
1844 |
|
1845 |
#: admin/views/Options.php:1419 admin/views/Shortcode.php:1324
|
1846 |
msgid "Enable Ecommerce button"
|
1847 |
+
msgstr "Włącz przycisk sklepu"
|
1848 |
|
1849 |
#: admin/views/Options.php:1438
|
|
|
|
|
1850 |
msgid "Gallery autoupdate interval"
|
1851 |
+
msgstr "Aktualizacja galerii co"
|
1852 |
|
1853 |
#: admin/views/Options.php:1441
|
1854 |
msgid "hour"
|
1855 |
+
msgstr "godz."
|
1856 |
|
1857 |
#: admin/views/Options.php:1443
|
1858 |
msgid "min"
|
1859 |
+
msgstr "min."
|
1860 |
|
1861 |
#: admin/views/Options.php:1445
|
1862 |
msgid "Minimum 1 min."
|
1882 |
|
1883 |
#: admin/views/Options.php:1489 photo-gallery.php:1284
|
1884 |
msgid "Watermark"
|
1885 |
+
msgstr "Znak wodny"
|
1886 |
|
1887 |
#: admin/views/Options.php:1494
|
1888 |
msgid "Watermark type"
|
1892 |
#: admin/views/Shortcode.php:1388 admin/views/Themes.php:4578
|
1893 |
#: admin/views/WidgetTags.php:85
|
1894 |
msgid "Text"
|
1895 |
+
msgstr "Treść"
|
1896 |
|
1897 |
#: admin/views/Options.php:1507
|
1898 |
msgid "Watermark url"
|
1899 |
+
msgstr "Link znaku wodnego"
|
1900 |
|
1901 |
#: admin/views/Options.php:1518 admin/views/Options.php:1664
|
1902 |
msgid "Add Image"
|
2200 |
|
2201 |
#: admin/views/Shortcode.php:421 admin/views/Shortcode.php:729
|
2202 |
#: admin/views/Shortcode.php:773 admin/views/Shortcode.php:817
|
|
|
|
|
2203 |
msgid "Load More"
|
2204 |
msgstr "Więcej"
|
2205 |
|
2211 |
|
2212 |
#: admin/views/Shortcode.php:430
|
2213 |
msgid "Ecommerce icon"
|
2214 |
+
msgstr "Ikona sklepu"
|
2215 |
|
2216 |
#: admin/views/Shortcode.php:443 admin/views/Shortcode.php:479
|
2217 |
msgid "Max. number of album columns"
|
2266 |
msgstr ""
|
2267 |
|
2268 |
#: admin/views/Shortcode.php:608
|
|
|
|
|
2269 |
msgid "Order"
|
2270 |
msgstr "Sortuj według"
|
2271 |
|
2305 |
|
2306 |
#: admin/views/Shortcode.php:708 admin/views/Shortcode.php:752
|
2307 |
#: admin/views/Shortcode.php:796
|
|
|
|
|
2308 |
msgid "Albums per page"
|
2309 |
+
msgstr "Ilość albumów na stronie"
|
2310 |
|
2311 |
#: admin/views/Shortcode.php:712 admin/views/Shortcode.php:739
|
2312 |
#: admin/views/Shortcode.php:756 admin/views/Shortcode.php:783
|
2379 |
msgstr ""
|
2380 |
|
2381 |
#: admin/views/Shortcode.php:1002
|
|
|
|
|
2382 |
msgid "Album title"
|
2383 |
+
msgstr "Tytuł albumu"
|
2384 |
|
2385 |
#: admin/views/Shortcode.php:1010 admin/views/Shortcode.php:1059
|
|
|
|
|
2386 |
msgid "Album view type"
|
2387 |
+
msgstr "Pokaż typ albumu"
|
2388 |
|
2389 |
#: admin/views/Shortcode.php:1014 admin/views/Shortcode.php:1063
|
2390 |
msgid "The gallery images view type in the album."
|
2464 |
|
2465 |
#: admin/views/Shortcode.php:1327
|
2466 |
msgid "Enable Ecommerce for images."
|
2467 |
+
msgstr "Włącz sklep dla zdjęć."
|
2468 |
|
2469 |
#: admin/views/Shortcode.php:1340
|
2470 |
msgid "Toggle panel"
|
2554 |
#: admin/views/Themes.php:773 admin/views/Themes.php:1536
|
2555 |
#: admin/views/Themes.php:1814 admin/views/Themes.php:2780
|
2556 |
#: admin/views/Themes.php:3189 admin/views/Themes.php:4453
|
|
|
|
|
2557 |
msgid "Border style:"
|
2558 |
+
msgstr "Styl ramki"
|
2559 |
|
2560 |
#: admin/views/Themes.php:238 admin/views/Themes.php:538
|
2561 |
#: admin/views/Themes.php:787 admin/views/Themes.php:1550
|
3389 |
msgstr ""
|
3390 |
|
3391 |
#: admin/views/Themes.php:3603
|
|
|
|
|
3392 |
msgid "Share buttons color:"
|
3393 |
msgstr "Podziel się na Facebooku."
|
3394 |
|
3573 |
msgstr ""
|
3574 |
|
3575 |
#: admin/views/Themes.php:4194
|
|
|
|
|
3576 |
msgid "Comments Width:"
|
3577 |
msgstr "Komentarz"
|
3578 |
|
3836 |
msgstr ""
|
3837 |
|
3838 |
#: admin/views/Widget.php:134
|
|
|
|
|
3839 |
msgid "Gallery Type:"
|
3840 |
+
msgstr "Typ galerii"
|
3841 |
|
3842 |
#: admin/views/Widget.php:142
|
3843 |
msgid "Gallery Groups:"
|
4007 |
msgstr ""
|
4008 |
|
4009 |
#: filemanager/view.php:105
|
|
|
|
|
4010 |
msgid "Remove items"
|
4011 |
msgstr "pozycja"
|
4012 |
|
4027 |
msgstr ""
|
4028 |
|
4029 |
#: filemanager/view.php:140
|
|
|
|
|
4030 |
msgid "Order by:"
|
4031 |
msgstr "Sortuj według"
|
4032 |
|
4043 |
msgstr ""
|
4044 |
|
4045 |
#: filemanager/view.php:256
|
|
|
|
|
4046 |
msgid "Add selected images to gallery"
|
4047 |
+
msgstr "Dodaj wybrane zdjęcia do galerii"
|
4048 |
|
4049 |
#: filemanager/view.php:272
|
4050 |
msgid "Thumbnail Maximum Dimensions:"
|
4150 |
msgstr ""
|
4151 |
|
4152 |
#: framework/WDWLibrary.php:177
|
4153 |
+
msgid "Items successfully reset."
|
4154 |
msgstr ""
|
4155 |
|
4156 |
#: framework/WDWLibrary.php:182
|
4180 |
#: framework/WDWLibrary.php:418 framework/WDWLibrary.php:567
|
4181 |
#: photo-gallery.php:398
|
4182 |
msgid "item"
|
4183 |
+
msgstr "pozycja"
|
4184 |
|
4185 |
#: framework/WDWLibrary.php:650
|
4186 |
msgid " item(s)"
|
4187 |
+
msgstr "pozycja/e"
|
4188 |
|
4189 |
#: framework/WDWLibrary.php:656
|
4190 |
msgid "Previous"
|
4204 |
|
4205 |
#: framework/WDWLibrary.php:683
|
4206 |
msgid "Go to the next page"
|
4207 |
+
msgstr "Przejdź do następnej strony"
|
4208 |
|
4209 |
#: framework/WDWLibrary.php:684
|
4210 |
msgid "Go to the last page"
|
4224 |
msgstr ""
|
4225 |
|
4226 |
#: framework/WDWLibrary.php:2012
|
|
|
|
|
4227 |
msgid "Gallery Tags"
|
4228 |
+
msgstr "Tagi galerii"
|
4229 |
|
4230 |
#: frontend/views/BWGViewAlbum_compact_preview.php:23
|
4231 |
#: frontend/views/BWGViewAlbum_extended_preview.php:19
|
4291 |
#: frontend/views/BWGViewThumbnails.php:218
|
4292 |
#: frontend/views/BWGViewThumbnails_mosaic.php:174
|
4293 |
msgid "Play"
|
4294 |
+
msgstr "Odtwórz"
|
4295 |
|
4296 |
#: frontend/views/BWGViewAlbum_compact_preview.php:471
|
4297 |
#: frontend/views/BWGViewAlbum_compact_preview.php:497
|
4303 |
#: frontend/views/BWGViewThumbnails_masonry.php:168
|
4304 |
#: frontend/views/BWGViewThumbnails_mosaic.php:191
|
4305 |
msgid "Open"
|
4306 |
+
msgstr "Otwórz"
|
4307 |
|
4308 |
#: frontend/views/BWGViewAlbum_compact_preview.php:472
|
4309 |
#: frontend/views/BWGViewAlbum_compact_preview.php:498
|
4316 |
#: frontend/views/BWGViewThumbnails_masonry.php:169
|
4317 |
#: frontend/views/BWGViewThumbnails_mosaic.php:192
|
4318 |
msgid "Ecommerce"
|
4319 |
+
msgstr "Sklep"
|
4320 |
|
4321 |
#: frontend/views/BWGViewAlbum_compact_preview.php:1013
|
4322 |
#: frontend/views/BWGViewAlbum_extended_preview.php:1037
|
4328 |
#: frontend/views/BWGViewThumbnails.php:280
|
4329 |
#: frontend/views/BWGViewThumbnails_masonry.php:314
|
4330 |
#: frontend/views/BWGViewThumbnails_mosaic.php:602
|
|
|
|
|
4331 |
msgid "Download gallery"
|
4332 |
msgstr "Pobierz oryginalny obraz"
|
4333 |
|
4357 |
#: frontend/views/BWGViewThumbnails.php:73
|
4358 |
#: frontend/views/BWGViewThumbnails_masonry.php:71
|
4359 |
#: frontend/views/BWGViewThumbnails_mosaic.php:75
|
|
|
|
|
4360 |
msgid "There are no images."
|
4361 |
msgstr "Nie ma zdjęć w tej galerii."
|
4362 |
|
4401 |
msgstr "Podziel się na Tumblr"
|
4402 |
|
4403 |
#: frontend/views/BWGViewBlog_style.php:353
|
|
|
|
|
4404 |
msgid "Show ecommerce"
|
4405 |
+
msgstr "Pokaż sklep"
|
4406 |
|
4407 |
#: frontend/views/BWGViewCarousel.php:224
|
4408 |
#: frontend/views/BWGViewCarousel.php:230
|
4414 |
msgstr "Pauza"
|
4415 |
|
4416 |
#: frontend/views/BWGViewDownload_gallery.php:37
|
|
|
|
|
4417 |
msgid "There are no images to download."
|
4418 |
msgstr "Nie ma zdjęć w tej galerii."
|
4419 |
|
4476 |
|
4477 |
#: frontend/views/BWGViewGalleryBox.php:1297
|
4478 |
msgid "You have already rated."
|
4479 |
+
msgstr "Już oceniłeś."
|
4480 |
|
4481 |
#: frontend/views/BWGViewGalleryBox.php:1406
|
4482 |
msgid "Error. Incorrect Verification Code."
|
4509 |
|
4510 |
#: frontend/views/BWGViewGalleryBox.php:1531
|
4511 |
#: frontend/views/BWGViewGalleryBox.php:3043
|
|
|
|
|
4512 |
msgid "Hide Ecommerce"
|
4513 |
+
msgstr "Ukryj sklep"
|
4514 |
|
4515 |
#: frontend/views/BWGViewGalleryBox.php:1538
|
4516 |
#: frontend/views/BWGViewGalleryBox.php:1726
|
4517 |
msgid "Add to cart"
|
4518 |
+
msgstr "Dodaj do koszyka"
|
4519 |
|
4520 |
#: frontend/views/BWGViewGalleryBox.php:1541
|
|
|
|
|
4521 |
msgid "items"
|
4522 |
msgstr "pozycja"
|
4523 |
|
4532 |
#: frontend/views/BWGViewGalleryBox.php:1573
|
4533 |
#: frontend/views/BWGViewGalleryBox.php:1686
|
4534 |
msgid "Price"
|
4535 |
+
msgstr "Cena"
|
4536 |
|
4537 |
#: frontend/views/BWGViewGalleryBox.php:1593
|
4538 |
msgid "Count"
|
4539 |
+
msgstr "Ilość"
|
4540 |
|
4541 |
#: frontend/views/BWGViewGalleryBox.php:1673
|
4542 |
#: frontend/views/BWGViewGalleryBox.php:1717
|
4543 |
msgid "Total"
|
4544 |
+
msgstr "Suma"
|
4545 |
|
4546 |
#: frontend/views/BWGViewGalleryBox.php:1683
|
4547 |
msgid "Choose"
|
4553 |
|
4554 |
#: frontend/views/BWGViewGalleryBox.php:1727
|
4555 |
msgid "View cart"
|
4556 |
+
msgstr "Pokaż koszyk"
|
4557 |
|
4558 |
#: frontend/views/BWGViewGalleryBox.php:1909
|
4559 |
msgid "Please select at least one item"
|
4566 |
#: frontend/views/BWGViewGalleryBox.php:2668
|
4567 |
#: frontend/views/BWGViewGalleryBox.php:2991
|
4568 |
#: frontend/views/BWGViewGalleryBox.php:3035
|
|
|
|
|
4569 |
msgid "Show Ecommerce"
|
4570 |
+
msgstr "Pokaż sklep"
|
4571 |
|
4572 |
#: frontend/views/BWGViewGalleryBox.php:3000
|
4573 |
#: frontend/views/BWGViewGalleryBox.php:3028
|
4593 |
|
4594 |
#: insert.php:1152
|
4595 |
msgid "Theme 1"
|
4596 |
+
msgstr "Wygląd 1"
|
4597 |
|
4598 |
#: insert.php:1158
|
4599 |
msgid "Theme 2"
|
4600 |
+
msgstr "Wygląd 2"
|
4601 |
|
4602 |
#: photo-gallery.php:97
|
4603 |
msgid "This option is disabled in free version."
|
4609 |
|
4610 |
#: photo-gallery.php:262
|
4611 |
msgid "Options"
|
4612 |
+
msgstr "Opcje"
|
4613 |
|
4614 |
#: photo-gallery.php:275
|
4615 |
msgid "Pro Version"
|
4616 |
+
msgstr "Wersja Pro"
|
4617 |
|
4618 |
#: photo-gallery.php:280
|
4619 |
msgid "Add-ons"
|
4924 |
msgstr ""
|
4925 |
|
4926 |
#: photo-gallery.php:1381
|
|
|
|
|
4927 |
msgid "Editing Comments"
|
4928 |
msgstr "Ukryj komentarze"
|
4929 |
|
4960 |
msgstr ""
|
4961 |
|
4962 |
#: photo-gallery.php:1506
|
|
|
|
|
4963 |
msgid "Gallery tags"
|
4964 |
+
msgstr "Tagi galerii"
|
4965 |
|
4966 |
#: photo-gallery.php:1555
|
4967 |
msgid "Photo gallery plugin autoupdate interval."
|
4978 |
msgstr ""
|
4979 |
|
4980 |
#: photo-gallery.php:1641
|
|
|
|
|
4981 |
msgid "Rate"
|
4982 |
msgstr "Ocenione."
|
4983 |
|
5306 |
|
5307 |
#: wd/templates/display_overview_user_guide.php:26
|
5308 |
msgid "Demo"
|
5309 |
+
msgstr "Demo"
|
5310 |
|
5311 |
#: wd/templates/display_overview_user_guide.php:36
|
5312 |
msgid "FAQ"
|
5322 |
|
5323 |
#: wd/templates/display_overview_welcome.php:26
|
5324 |
msgid "More features"
|
5325 |
+
msgstr "Więcej funkcji"
|
5326 |
|
5327 |
#: wd/templates/display_subscribe.php:9
|
5328 |
msgid "Hi there"
|
5343 |
|
5344 |
#: wd/templates/display_subscribe.php:36
|
5345 |
msgid "Privacy Policy"
|
5346 |
+
msgstr "Polityka Prywatności"
|
5347 |
|
5348 |
#: wd/templates/display_subscribe.php:42
|
5349 |
msgid "Terms of Use"
|
5350 |
+
msgstr "Regulamin"
|
5351 |
|
5352 |
#: wd/wd.php:72
|
5353 |
msgid "Overview"
|
5354 |
+
msgstr "Przegląd"
|
languages/bwg-pt_BR.po
CHANGED
@@ -1141,7 +1141,7 @@ msgstr ""
|
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
-
"Enter YouTube, Vimeo, Instagram,
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-pt_PT.po
CHANGED
@@ -1141,7 +1141,7 @@ msgstr ""
|
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
-
"Enter YouTube, Vimeo, Instagram,
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-ro_RO.po
CHANGED
@@ -1142,7 +1142,7 @@ msgstr ""
|
|
1142 |
|
1143 |
#: admin/views/Galleries.php:471
|
1144 |
msgid ""
|
1145 |
-
"Enter YouTube, Vimeo, Instagram,
|
1146 |
msgstr ""
|
1147 |
|
1148 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1142 |
|
1143 |
#: admin/views/Galleries.php:471
|
1144 |
msgid ""
|
1145 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1146 |
msgstr ""
|
1147 |
|
1148 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-ru_RU.po
CHANGED
@@ -1152,7 +1152,7 @@ msgstr ""
|
|
1152 |
|
1153 |
#: admin/views/Galleries.php:417
|
1154 |
msgid ""
|
1155 |
-
"Enter YouTube, Vimeo, Instagram,
|
1156 |
msgstr ""
|
1157 |
|
1158 |
#: admin/views/Galleries.php:418 admin/views/Galleries.php:454
|
1152 |
|
1153 |
#: admin/views/Galleries.php:417
|
1154 |
msgid ""
|
1155 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1156 |
msgstr ""
|
1157 |
|
1158 |
#: admin/views/Galleries.php:418 admin/views/Galleries.php:454
|
languages/bwg-sk_SK.po
CHANGED
@@ -1141,7 +1141,7 @@ msgstr ""
|
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
-
"Enter YouTube, Vimeo, Instagram,
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-sl.po
CHANGED
@@ -1150,7 +1150,7 @@ msgstr ""
|
|
1150 |
|
1151 |
#: admin/views/Galleries.php:471
|
1152 |
msgid ""
|
1153 |
-
"Enter YouTube, Vimeo, Instagram,
|
1154 |
msgstr ""
|
1155 |
|
1156 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1150 |
|
1151 |
#: admin/views/Galleries.php:471
|
1152 |
msgid ""
|
1153 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1154 |
msgstr ""
|
1155 |
|
1156 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-sq.po
CHANGED
@@ -1141,7 +1141,7 @@ msgstr ""
|
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
-
"Enter YouTube, Vimeo, Instagram,
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-sr_RS.po
CHANGED
@@ -1142,7 +1142,7 @@ msgstr ""
|
|
1142 |
|
1143 |
#: admin/views/Galleries.php:471
|
1144 |
msgid ""
|
1145 |
-
"Enter YouTube, Vimeo, Instagram,
|
1146 |
msgstr ""
|
1147 |
|
1148 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1142 |
|
1143 |
#: admin/views/Galleries.php:471
|
1144 |
msgid ""
|
1145 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1146 |
msgstr ""
|
1147 |
|
1148 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-sv_SE.po
CHANGED
@@ -1141,7 +1141,7 @@ msgstr ""
|
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
-
"Enter YouTube, Vimeo, Instagram,
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-ta.po
CHANGED
@@ -1141,7 +1141,7 @@ msgstr ""
|
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
-
"Enter YouTube, Vimeo, Instagram,
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-th.po
CHANGED
@@ -1141,7 +1141,7 @@ msgstr ""
|
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
-
"Enter YouTube, Vimeo, Instagram,
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-tr_TR.po
CHANGED
@@ -1141,7 +1141,7 @@ msgstr ""
|
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
-
"Enter YouTube, Vimeo, Instagram,
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-uk_UA.po
CHANGED
@@ -1142,7 +1142,7 @@ msgstr ""
|
|
1142 |
|
1143 |
#: admin/views/Galleries.php:471
|
1144 |
msgid ""
|
1145 |
-
"Enter YouTube, Vimeo, Instagram,
|
1146 |
msgstr ""
|
1147 |
|
1148 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1142 |
|
1143 |
#: admin/views/Galleries.php:471
|
1144 |
msgid ""
|
1145 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1146 |
msgstr ""
|
1147 |
|
1148 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-vi.po
CHANGED
@@ -1141,7 +1141,7 @@ msgstr ""
|
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
-
"Enter YouTube, Vimeo, Instagram,
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
languages/bwg-zh_CN.po
CHANGED
@@ -1141,7 +1141,7 @@ msgstr ""
|
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
-
"Enter YouTube, Vimeo, Instagram,
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
1141 |
|
1142 |
#: admin/views/Galleries.php:471
|
1143 |
msgid ""
|
1144 |
+
"Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here."
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: admin/views/Galleries.php:472 admin/views/Galleries.php:510
|
photo-gallery.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Photo Gallery
|
4 |
* Plugin URI: https://10web.io/plugins/wordpress-photo-gallery/
|
5 |
* Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
|
6 |
-
* Version: 1.5.
|
7 |
* Author: Photo Gallery Team
|
8 |
* Author URI: https://10web.io/plugins/
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -81,8 +81,8 @@ final class BWG {
|
|
81 |
$this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
|
82 |
$this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
|
83 |
$this->main_file = plugin_basename(__FILE__);
|
84 |
-
$this->plugin_version = '1.5.
|
85 |
-
$this->db_version = '1.5.
|
86 |
$this->prefix = 'bwg';
|
87 |
$this->nicename = __('Photo Gallery', $this->prefix);
|
88 |
|
@@ -382,7 +382,7 @@ final class BWG {
|
|
382 |
}
|
383 |
if ( $wp_editor_message ) {
|
384 |
?>
|
385 |
-
<div id="bwg_image_editor_notice" class="notice notice-warning is-dismissible" data-action="<?php echo $wp_editor_message_action; ?>">
|
386 |
<?php echo $wp_editor_message; ?>
|
387 |
</div>
|
388 |
<?php
|
@@ -632,7 +632,7 @@ final class BWG {
|
|
632 |
wp_register_script($this->prefix . '_jquery.ui.touch-punch.min', $this->plugin_url . '/js/jquery.ui.touch-punch.min.js', array(), '0.2.3');
|
633 |
|
634 |
$current_screen = get_current_screen();
|
635 |
-
if ( !$this->is_pro && $current_screen->id == "toplevel_page_bwg_subscribe" ) {
|
636 |
wp_enqueue_style($this->prefix . '_subscribe', $this->plugin_url . '/css/bwg_subscribe.css', array(), $this->plugin_version);
|
637 |
}
|
638 |
}
|
@@ -1265,8 +1265,8 @@ final class BWG {
|
|
1265 |
$version = BWG()->plugin_version;
|
1266 |
$required_styles = array(
|
1267 |
$this->prefix . '_fonts',
|
1268 |
-
|
1269 |
-
|
1270 |
);
|
1271 |
$required_scripts = array('jquery');
|
1272 |
$in_footer = BWG()->options->use_inline_stiles_and_scripts || WDWLibrary::elementor_is_active() ? true : false;
|
@@ -1280,24 +1280,25 @@ final class BWG {
|
|
1280 |
}
|
1281 |
}
|
1282 |
|
1283 |
-
wp_register_script(
|
1284 |
-
wp_register_style(
|
1285 |
|
1286 |
// Styles/Scripts for popup.
|
1287 |
wp_register_style($this->prefix . '_fonts', BWG()->front_url . '/css/bwg-fonts/fonts.css', array(), '0.0.1');
|
1288 |
-
wp_register_script(
|
1289 |
-
wp_register_script(
|
1290 |
-
wp_register_style(
|
1291 |
|
1292 |
-
wp_register_script(
|
1293 |
wp_register_script($this->prefix . '_gallery_box', BWG()->front_url . '/js/bwg_gallery_box.js', $required_scripts, $version, $in_footer);
|
1294 |
wp_register_script($this->prefix . '_embed', BWG()->front_url . '/js/bwg_embed.js', $required_scripts, $version, $in_footer);
|
|
|
1295 |
|
1296 |
array_push($required_scripts,
|
1297 |
-
|
1298 |
-
|
1299 |
-
|
1300 |
-
|
1301 |
$this->prefix . '_gallery_box',
|
1302 |
$this->prefix . '_embed'
|
1303 |
);
|
@@ -1318,20 +1319,35 @@ final class BWG {
|
|
1318 |
$style_file = BWG()->front_url . '/css/bwg_frontend.css';
|
1319 |
$script_file = BWG()->front_url . '/js/bwg_frontend.js';
|
1320 |
if ( ! BWG()->options->developer_mode ) {
|
1321 |
-
$required_styles = array(
|
1322 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1323 |
$style_file = BWG()->front_url . '/css/styles.min.css';
|
1324 |
$script_file = BWG()->front_url . '/js/scripts.min.js';
|
1325 |
}
|
1326 |
-
|
1327 |
wp_register_style($this->prefix . '_frontend', $style_file, $required_styles, $version);
|
1328 |
wp_register_script($this->prefix . '_frontend', $script_file, $required_scripts, $version, $in_footer);
|
1329 |
-
|
|
|
|
|
|
|
|
|
|
|
1330 |
if ( !BWG()->options->use_inline_stiles_and_scripts || WDWLibrary::elementor_is_active() ) {
|
1331 |
wp_enqueue_style($this->prefix . '_frontend');
|
1332 |
wp_enqueue_script($this->prefix . '_frontend');
|
1333 |
}
|
1334 |
-
|
1335 |
wp_localize_script($this->prefix . '_frontend', 'bwg_objectsL10n', array(
|
1336 |
'bwg_field_required' => __('field is required.', $this->prefix),
|
1337 |
'bwg_mail_validation' => __('This is not a valid email address.', $this->prefix),
|
@@ -1363,6 +1379,8 @@ final class BWG {
|
|
1363 |
'ok' => __('Ok', $this->prefix),
|
1364 |
'cancel' => __('Cancel', $this->prefix),
|
1365 |
'select_all' => __('Select all', $this->prefix),
|
|
|
|
|
1366 |
));
|
1367 |
}
|
1368 |
|
@@ -1396,6 +1414,7 @@ final class BWG {
|
|
1396 |
$plugin_dir = apply_filters('tenweb_free_users_lib_path', array('version' => '1.1.1', 'path' => $this->plugin_dir));
|
1397 |
require_once($plugin_dir['path'] . '/wd/start.php');
|
1398 |
}
|
|
|
1399 |
global $bwg_options;
|
1400 |
$bwg_options = array(
|
1401 |
"prefix" => "bwg",
|
@@ -1653,6 +1672,7 @@ final class BWG {
|
|
1653 |
$show_hide_custom_post = true;
|
1654 |
}
|
1655 |
$args = array(
|
|
|
1656 |
'public' => TRUE,
|
1657 |
'exclude_from_search' => TRUE,
|
1658 |
'publicly_queryable' => TRUE,
|
@@ -1667,6 +1687,7 @@ final class BWG {
|
|
1667 |
register_post_type( 'bwg_gallery', $args );
|
1668 |
|
1669 |
$args = array(
|
|
|
1670 |
'public' => TRUE,
|
1671 |
'exclude_from_search' => TRUE,
|
1672 |
'publicly_queryable' => TRUE,
|
@@ -1681,6 +1702,7 @@ final class BWG {
|
|
1681 |
register_post_type( 'bwg_album', $args );
|
1682 |
|
1683 |
$args = array(
|
|
|
1684 |
'public' => TRUE,
|
1685 |
'exclude_from_search' => TRUE,
|
1686 |
'publicly_queryable' => TRUE,
|
@@ -1696,6 +1718,7 @@ final class BWG {
|
|
1696 |
|
1697 |
if ( $this->is_pro ) {
|
1698 |
$args = array(
|
|
|
1699 |
'public' => FALSE,
|
1700 |
'publicly_queryable' => TRUE,
|
1701 |
'exclude_from_search' => TRUE,
|
@@ -1898,345 +1921,24 @@ function photo_gallery( $id ) {
|
|
1898 |
}
|
1899 |
|
1900 |
/**
|
1901 |
-
* Show 10Web
|
1902 |
-
*
|
1903 |
-
* @return string
|
1904 |
*/
|
1905 |
-
|
1906 |
-
|
1907 |
-
if ( ( !isset($_GET['page']) || strpos(esc_html($_GET['page']), '_bwg') === FALSE ) ||
|
1908 |
-
( isset($_GET['task']) && !strpos(esc_html($_GET['task']), 'edit') === TRUE && !(strpos(esc_html($_GET['task']), 'display') > -1))) {
|
1909 |
-
return '';
|
1910 |
-
}
|
1911 |
-
|
1912 |
-
// Remove old notice.
|
1913 |
-
if ( get_option('tenweb_notice_status') !== FALSE ) {
|
1914 |
-
update_option('tenweb_notice_status', '1', 'no');
|
1915 |
-
}
|
1916 |
-
|
1917 |
-
$meta_value = get_option('tenweb_notice_status');
|
1918 |
-
if ( $meta_value === '' || $meta_value === FALSE ) {
|
1919 |
-
ob_start();
|
1920 |
-
$prefix = BWG()->prefix;
|
1921 |
-
$url = BWG()->plugin_url;
|
1922 |
-
$dismiss_url = add_query_arg(array( 'action' => 'wd_tenweb_dismiss' ), admin_url('admin-ajax.php'));
|
1923 |
-
$verify_url = add_query_arg( array ('action' => 'tenweb_status'), admin_url('admin-ajax.php'));
|
1924 |
-
?>
|
1925 |
-
<style>
|
1926 |
-
.hide {
|
1927 |
-
display: none !important;
|
1928 |
-
}
|
1929 |
-
#verifyUrl {
|
1930 |
-
display: none
|
1931 |
-
}
|
1932 |
-
#loading {
|
1933 |
-
position: absolute;
|
1934 |
-
right: 20px;
|
1935 |
-
top: 50%;
|
1936 |
-
transform: translateY(-50%);
|
1937 |
-
margin: 0px;
|
1938 |
-
background: url("<?php echo $url . '/images/spinner.gif'; ?>") no-repeat;
|
1939 |
-
background-size: 20px 20px;
|
1940 |
-
filter: alpha(opacity=70);
|
1941 |
-
}
|
1942 |
-
#wd_tenweb_logo_notice {
|
1943 |
-
height: 32px;
|
1944 |
-
float: left;
|
1945 |
-
}
|
1946 |
-
.error_install, .error_activate {
|
1947 |
-
color: red;
|
1948 |
-
font-size: 10px;
|
1949 |
-
}
|
1950 |
-
/* -------------------Version 2 styles------------------ */
|
1951 |
-
#wpbody-content #v2_tenweb_notice_cont {
|
1952 |
-
display: flex;
|
1953 |
-
flex-wrap: wrap;
|
1954 |
-
background: #fff;
|
1955 |
-
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .1);
|
1956 |
-
position: relative;
|
1957 |
-
margin-top: 50px;
|
1958 |
-
padding: 5px 0;
|
1959 |
-
overflow: hidden;
|
1960 |
-
border-left: 4px solid #0073AA;
|
1961 |
-
font-family: Open Sans, sans-serif;
|
1962 |
-
height: 40px;
|
1963 |
-
min-height: 40px;
|
1964 |
-
}
|
1965 |
-
.v2_logo {
|
1966 |
-
display: flex;
|
1967 |
-
flex-direction: column;
|
1968 |
-
justify-content: center;
|
1969 |
-
height: inherit;
|
1970 |
-
}
|
1971 |
-
|
1972 |
-
#v2_tenweb_notice_cont {
|
1973 |
-
height: 50px;
|
1974 |
-
padding: 0px;
|
1975 |
-
}
|
1976 |
-
|
1977 |
-
.v2_content {
|
1978 |
-
flex-grow: 1;
|
1979 |
-
height: inherit;
|
1980 |
-
margin-left: 34px;
|
1981 |
-
}
|
1982 |
-
|
1983 |
-
.v2_content p {
|
1984 |
-
font-size: 16px;
|
1985 |
-
color: #333B46;
|
1986 |
-
font-weight: 600;
|
1987 |
-
line-height: 40px;
|
1988 |
-
margin: 0;
|
1989 |
-
}
|
1990 |
-
#wd_tenweb_logo_notice {
|
1991 |
-
margin-left: 35px;
|
1992 |
-
height: 30px;
|
1993 |
-
line-height: 100%;
|
1994 |
-
}
|
1995 |
-
|
1996 |
-
.v2_button {
|
1997 |
-
display: flex;
|
1998 |
-
margin-right: 30px;
|
1999 |
-
flex-direction: column;
|
2000 |
-
justify-content: center;
|
2001 |
-
}
|
2002 |
-
|
2003 |
-
.v2_button #install_now, #activate_now {
|
2004 |
-
width: 112px;
|
2005 |
-
height: 32px;
|
2006 |
-
line-height: 30px;
|
2007 |
-
font-size: 14px;
|
2008 |
-
text-align: center;
|
2009 |
-
padding: 0;
|
2010 |
-
}
|
2011 |
-
|
2012 |
-
#v2_tenweb_notice_cont .wd_tenweb_notice_dissmiss.notice-dismiss {
|
2013 |
-
top: 3px;
|
2014 |
-
right: 3px;
|
2015 |
-
padding: 0px;
|
2016 |
-
}
|
2017 |
-
|
2018 |
-
.v2_button .button {
|
2019 |
-
position: relative;
|
2020 |
-
}
|
2021 |
-
|
2022 |
-
.v2_button .button #loading {
|
2023 |
-
position: absolute;
|
2024 |
-
right: 10px;
|
2025 |
-
top: 50%;
|
2026 |
-
transform: translateY(-50%);
|
2027 |
-
margin: 0px;
|
2028 |
-
background-size: 12px 12px;
|
2029 |
-
filter: alpha(opacity=70);
|
2030 |
-
width: 12px;
|
2031 |
-
height: 12px;
|
2032 |
-
}
|
2033 |
-
|
2034 |
-
@media only screen and (max-width: 1200px) and (min-width: 821px) {
|
2035 |
-
#wpbody-content #v2_tenweb_notice_cont {
|
2036 |
-
height: 50px;
|
2037 |
-
min-height: 50px;
|
2038 |
-
}
|
2039 |
-
|
2040 |
-
#v2_tenweb_notice_cont {
|
2041 |
-
height: 60px;
|
2042 |
-
}
|
2043 |
-
|
2044 |
-
.v2_content {
|
2045 |
-
margin-left: 25px;
|
2046 |
-
}
|
2047 |
-
.v2_content p {
|
2048 |
-
font-size: 14px;
|
2049 |
-
color: #333B46;
|
2050 |
-
font-weight: 600;
|
2051 |
-
line-height: 20px;
|
2052 |
-
margin-top: 5px;
|
2053 |
-
}
|
2054 |
-
.v2_content p span {
|
2055 |
-
display: block;
|
2056 |
-
}
|
2057 |
-
|
2058 |
-
#wd_tenweb_logo_notice {
|
2059 |
-
margin-left: 25px;
|
2060 |
-
height: 30px;
|
2061 |
-
line-height: 100%;
|
2062 |
-
}
|
2063 |
-
|
2064 |
-
.v2_button {
|
2065 |
-
display: flex;
|
2066 |
-
margin-right: 30px;
|
2067 |
-
flex-direction: column;
|
2068 |
-
justify-content: center;
|
2069 |
-
}
|
2070 |
-
|
2071 |
-
.v2_button #install_now {
|
2072 |
-
width: 112px;
|
2073 |
-
height: 32px;
|
2074 |
-
line-height: 30px;
|
2075 |
-
font-size: 14px;
|
2076 |
-
text-align: center;
|
2077 |
-
padding: 0;
|
2078 |
-
}
|
2079 |
-
|
2080 |
-
#v2_tenweb_notice_cont .wd_tenweb_notice_dissmiss.notice-dismiss {
|
2081 |
-
top: 3px;
|
2082 |
-
right: 3px;
|
2083 |
-
}
|
2084 |
-
}
|
2085 |
-
|
2086 |
-
@media only screen and (max-width: 820px) and (min-width: 781px) {
|
2087 |
-
|
2088 |
-
#wpbody-content #v2_tenweb_notice_cont {
|
2089 |
-
height: 50px;
|
2090 |
-
min-height: 50px;
|
2091 |
-
}
|
2092 |
-
|
2093 |
-
#v2_tenweb_notice_cont {
|
2094 |
-
height: 60px;
|
2095 |
-
}
|
2096 |
-
|
2097 |
-
.v2_content {
|
2098 |
-
margin-left: 25px;
|
2099 |
-
}
|
2100 |
-
|
2101 |
-
.v2_content p {
|
2102 |
-
font-size: 13px;
|
2103 |
-
color: #333B46;
|
2104 |
-
font-weight: 600;
|
2105 |
-
line-height: 20px;
|
2106 |
-
margin-top: 5px;
|
2107 |
-
}
|
2108 |
-
|
2109 |
-
.v2_content p span {
|
2110 |
-
display: block;
|
2111 |
-
}
|
2112 |
-
|
2113 |
-
}
|
2114 |
-
|
2115 |
-
@media only screen and (max-width: 780px) {
|
2116 |
-
|
2117 |
-
#wpbody-content #v2_tenweb_notice_cont {
|
2118 |
-
height: auto;
|
2119 |
-
min-height: auto;
|
2120 |
-
}
|
2121 |
-
|
2122 |
-
#v2_tenweb_notice_cont {
|
2123 |
-
height: auto;
|
2124 |
-
padding: 5px;
|
2125 |
-
}
|
2126 |
-
|
2127 |
-
.v2_logo {
|
2128 |
-
display: block;
|
2129 |
-
height: auto;
|
2130 |
-
width: 100%;
|
2131 |
-
margin-top: 5px;
|
2132 |
-
}
|
2133 |
-
|
2134 |
-
.v2_content {
|
2135 |
-
display: block;
|
2136 |
-
margin-left: 9px;
|
2137 |
-
margin-top: 10px;
|
2138 |
-
width: calc(100% - 10px);
|
2139 |
-
}
|
2140 |
-
|
2141 |
-
.v2_content p {
|
2142 |
-
line-height: unset;
|
2143 |
-
font-size: 15px;
|
2144 |
-
line-height: 25px;
|
2145 |
-
}
|
2146 |
-
.v2_content p span{
|
2147 |
-
display: block
|
2148 |
-
}
|
2149 |
-
#wd_tenweb_logo_notice {
|
2150 |
-
margin-left: 9px;
|
2151 |
-
}
|
2152 |
-
|
2153 |
-
.v2_button {
|
2154 |
-
margin-left: 9px;
|
2155 |
-
margin-top: 10px;
|
2156 |
-
margin-bottom: 5px;
|
2157 |
-
}
|
2158 |
-
}
|
2159 |
-
</style>
|
2160 |
-
<div id="v2_tenweb_notice_cont" class="notice wd-notice">
|
2161 |
-
<div class="v2_logo">
|
2162 |
-
<img id="wd_tenweb_logo_notice" src="<?php echo $url . '/images/tenweb/Photo-Gallery-logo.svg'; ?>" />
|
2163 |
-
</div>
|
2164 |
-
<div class="v2_content">
|
2165 |
-
<p>
|
2166 |
-
<?php echo sprintf(__('%sPhoto Gallery advises:%s %sUse Image Optimizer service to optimize your images quickly and easily.%s', $prefix), '<span>','</span>', '<span>','</span>'); ?>
|
2167 |
-
</p>
|
2168 |
-
</div>
|
2169 |
-
<div class="v2_button">
|
2170 |
-
<?php WDWLibrary::twbb_install_button(2); ?>
|
2171 |
-
</div>
|
2172 |
-
<button type="button" class="wd_tenweb_notice_dissmiss notice-dismiss" onclick="jQuery('#v2_tenweb_notice_cont').attr('style', 'display: none !important;'); jQuery.post('<?php echo $dismiss_url; ?>');"><span class="screen-reader-text"></span></button>
|
2173 |
-
<div id="verifyUrl" data-url="<?php echo $verify_url; ?>"></div>
|
2174 |
-
</div>
|
2175 |
-
<?php
|
2176 |
-
|
2177 |
-
echo ob_get_clean();
|
2178 |
-
}
|
2179 |
-
}
|
2180 |
-
|
2181 |
-
if ( !function_exists('is_plugin_active') ) {
|
2182 |
-
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
2183 |
}
|
2184 |
-
|
2185 |
-
|
2186 |
-
|
2187 |
-
|
2188 |
-
|
2189 |
-
|
2190 |
-
|
2191 |
-
|
2192 |
-
|
2193 |
-
|
2194 |
-
|
2195 |
-
|
2196 |
-
|
2197 |
-
|
2198 |
-
|
2199 |
-
$status_install = 0;
|
2200 |
-
$status_active = 0;
|
2201 |
-
if ( WDWLibrary::is_plugin_installed('10web-manager') ) {
|
2202 |
-
$status_install = 1;
|
2203 |
-
}
|
2204 |
-
else {
|
2205 |
-
if ( is_plugin_active('10web-manager/10web-manager.php') ) {
|
2206 |
-
$status_active = 1;
|
2207 |
-
}
|
2208 |
-
}
|
2209 |
-
if ( WDWLibrary::is_plugin_installed('10web-manager') ) {
|
2210 |
-
$old_opt_array = array();
|
2211 |
-
$new_opt_array = array( 'photo-gallery' => 101 ); // core_id
|
2212 |
-
$key = 'tenweb_manager_installed';
|
2213 |
-
$option = get_option($key);
|
2214 |
-
if ( !empty($option) ) {
|
2215 |
-
$old_opt_array = (array) json_decode($option);
|
2216 |
-
}
|
2217 |
-
$array_installed = array_merge($new_opt_array, $old_opt_array);
|
2218 |
-
update_option($key, json_encode($array_installed));
|
2219 |
-
}
|
2220 |
-
$jsondata = array( 'status_install' => $status_install, 'status_active' => $status_active );
|
2221 |
-
echo json_encode($jsondata);
|
2222 |
-
exit;
|
2223 |
-
}
|
2224 |
-
add_action('wp_ajax_tenweb_status', 'check_tenweb_status');
|
2225 |
-
|
2226 |
-
/**
|
2227 |
-
* Get activation or deactivation link of a plugin
|
2228 |
-
*
|
2229 |
-
* @author Nazmul Ahsan <mail@nazmulahsan.me>
|
2230 |
-
* @param string $plugin plugin file name
|
2231 |
-
* @param string $action action to perform. activate or deactivate
|
2232 |
-
* @return string $url action url
|
2233 |
-
*/
|
2234 |
-
function na_action_link( $plugin, $action = 'activate' ) {
|
2235 |
-
if ( strpos( $plugin, '/' ) ) {
|
2236 |
-
$plugin = str_replace( '\/', '%2F', $plugin );
|
2237 |
-
}
|
2238 |
-
$url = sprintf( admin_url( 'plugins.php?action=' . $action . '&plugin=%s&plugin_status=all&paged=1&s' ), $plugin );
|
2239 |
-
$_REQUEST['plugin'] = $plugin;
|
2240 |
-
$url = wp_nonce_url( $url, $action . '-plugin_' . $plugin );
|
2241 |
-
return $url;
|
2242 |
}
|
3 |
* Plugin Name: Photo Gallery
|
4 |
* Plugin URI: https://10web.io/plugins/wordpress-photo-gallery/
|
5 |
* Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
|
6 |
+
* Version: 1.5.23
|
7 |
* Author: Photo Gallery Team
|
8 |
* Author URI: https://10web.io/plugins/
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
81 |
$this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
|
82 |
$this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
|
83 |
$this->main_file = plugin_basename(__FILE__);
|
84 |
+
$this->plugin_version = '1.5.23';
|
85 |
+
$this->db_version = '1.5.23';
|
86 |
$this->prefix = 'bwg';
|
87 |
$this->nicename = __('Photo Gallery', $this->prefix);
|
88 |
|
382 |
}
|
383 |
if ( $wp_editor_message ) {
|
384 |
?>
|
385 |
+
<div id="bwg_image_editor_notice" class="wd-notice bwg-notice notice notice-warning is-dismissible" data-action="<?php echo $wp_editor_message_action; ?>">
|
386 |
<?php echo $wp_editor_message; ?>
|
387 |
</div>
|
388 |
<?php
|
632 |
wp_register_script($this->prefix . '_jquery.ui.touch-punch.min', $this->plugin_url . '/js/jquery.ui.touch-punch.min.js', array(), '0.2.3');
|
633 |
|
634 |
$current_screen = get_current_screen();
|
635 |
+
if ( !$this->is_pro && !empty($current_screen->id) && $current_screen->id == "toplevel_page_bwg_subscribe" ) {
|
636 |
wp_enqueue_style($this->prefix . '_subscribe', $this->plugin_url . '/css/bwg_subscribe.css', array(), $this->plugin_version);
|
637 |
}
|
638 |
}
|
1265 |
$version = BWG()->plugin_version;
|
1266 |
$required_styles = array(
|
1267 |
$this->prefix . '_fonts',
|
1268 |
+
'sumoselect',
|
1269 |
+
'mCustomScrollbar'
|
1270 |
);
|
1271 |
$required_scripts = array('jquery');
|
1272 |
$in_footer = BWG()->options->use_inline_stiles_and_scripts || WDWLibrary::elementor_is_active() ? true : false;
|
1280 |
}
|
1281 |
}
|
1282 |
|
1283 |
+
wp_register_script('sumoselect', BWG()->front_url . '/js/jquery.sumoselect.min.js', $required_scripts, '3.0.3', $in_footer);
|
1284 |
+
wp_register_style('sumoselect', BWG()->front_url . '/css/sumoselect.min.css', array(), '3.0.3');
|
1285 |
|
1286 |
// Styles/Scripts for popup.
|
1287 |
wp_register_style($this->prefix . '_fonts', BWG()->front_url . '/css/bwg-fonts/fonts.css', array(), '0.0.1');
|
1288 |
+
wp_register_script('jquery-mobile', BWG()->front_url . '/js/jquery.mobile.min.js', $required_scripts, '1.3.2', $in_footer);
|
1289 |
+
wp_register_script('mCustomScrollbar', BWG()->front_url . '/js/jquery.mCustomScrollbar.concat.min.js', $required_scripts, $version, $in_footer);
|
1290 |
+
wp_register_style('mCustomScrollbar', BWG()->front_url . '/css/jquery.mCustomScrollbar.min.css', array(), $version);
|
1291 |
|
1292 |
+
wp_register_script('jquery-fullscreen', BWG()->front_url . '/js/jquery.fullscreen-0.4.1.min.js', $required_scripts, '0.4.1', $in_footer);
|
1293 |
wp_register_script($this->prefix . '_gallery_box', BWG()->front_url . '/js/bwg_gallery_box.js', $required_scripts, $version, $in_footer);
|
1294 |
wp_register_script($this->prefix . '_embed', BWG()->front_url . '/js/bwg_embed.js', $required_scripts, $version, $in_footer);
|
1295 |
+
wp_register_script($this->prefix . '_lazyload', BWG()->front_url . '/js/jquery.lazy.min.js', $required_scripts, $version, $in_footer);
|
1296 |
|
1297 |
array_push($required_scripts,
|
1298 |
+
'sumoselect',
|
1299 |
+
'jquery-mobile',
|
1300 |
+
'mCustomScrollbar',
|
1301 |
+
'jquery-fullscreen',
|
1302 |
$this->prefix . '_gallery_box',
|
1303 |
$this->prefix . '_embed'
|
1304 |
);
|
1319 |
$style_file = BWG()->front_url . '/css/bwg_frontend.css';
|
1320 |
$script_file = BWG()->front_url . '/js/bwg_frontend.js';
|
1321 |
if ( ! BWG()->options->developer_mode ) {
|
1322 |
+
$required_styles = array(
|
1323 |
+
$this->prefix . '_fonts',
|
1324 |
+
$this->prefix . '_googlefonts',
|
1325 |
+
'sumoselect',
|
1326 |
+
'mCustomScrollbar',
|
1327 |
+
);
|
1328 |
+
$required_scripts = array(
|
1329 |
+
'jquery',
|
1330 |
+
'sumoselect',
|
1331 |
+
'jquery-mobile',
|
1332 |
+
'mCustomScrollbar',
|
1333 |
+
'jquery-fullscreen',
|
1334 |
+
);
|
1335 |
$style_file = BWG()->front_url . '/css/styles.min.css';
|
1336 |
$script_file = BWG()->front_url . '/js/scripts.min.js';
|
1337 |
}
|
1338 |
+
|
1339 |
wp_register_style($this->prefix . '_frontend', $style_file, $required_styles, $version);
|
1340 |
wp_register_script($this->prefix . '_frontend', $script_file, $required_scripts, $version, $in_footer);
|
1341 |
+
|
1342 |
+
if( BWG()->options->lazyload_images ) {
|
1343 |
+
wp_enqueue_script($this->prefix . '_lazyload');
|
1344 |
+
}
|
1345 |
+
|
1346 |
+
|
1347 |
if ( !BWG()->options->use_inline_stiles_and_scripts || WDWLibrary::elementor_is_active() ) {
|
1348 |
wp_enqueue_style($this->prefix . '_frontend');
|
1349 |
wp_enqueue_script($this->prefix . '_frontend');
|
1350 |
}
|
|
|
1351 |
wp_localize_script($this->prefix . '_frontend', 'bwg_objectsL10n', array(
|
1352 |
'bwg_field_required' => __('field is required.', $this->prefix),
|
1353 |
'bwg_mail_validation' => __('This is not a valid email address.', $this->prefix),
|
1379 |
'ok' => __('Ok', $this->prefix),
|
1380 |
'cancel' => __('Cancel', $this->prefix),
|
1381 |
'select_all' => __('Select all', $this->prefix),
|
1382 |
+
'lazy_load'=> BWG()->options->lazyload_images,
|
1383 |
+
'lazy_loader'=> BWG()->plugin_url."/images/ajax_loader.png",
|
1384 |
));
|
1385 |
}
|
1386 |
|
1414 |
$plugin_dir = apply_filters('tenweb_free_users_lib_path', array('version' => '1.1.1', 'path' => $this->plugin_dir));
|
1415 |
require_once($plugin_dir['path'] . '/wd/start.php');
|
1416 |
}
|
1417 |
+
|
1418 |
global $bwg_options;
|
1419 |
$bwg_options = array(
|
1420 |
"prefix" => "bwg",
|
1672 |
$show_hide_custom_post = true;
|
1673 |
}
|
1674 |
$args = array(
|
1675 |
+
'label' => 'Gallery',
|
1676 |
'public' => TRUE,
|
1677 |
'exclude_from_search' => TRUE,
|
1678 |
'publicly_queryable' => TRUE,
|
1687 |
register_post_type( 'bwg_gallery', $args );
|
1688 |
|
1689 |
$args = array(
|
1690 |
+
'label'=> 'Gallery group',
|
1691 |
'public' => TRUE,
|
1692 |
'exclude_from_search' => TRUE,
|
1693 |
'publicly_queryable' => TRUE,
|
1702 |
register_post_type( 'bwg_album', $args );
|
1703 |
|
1704 |
$args = array(
|
1705 |
+
'label' => 'Gallery Tags',
|
1706 |
'public' => TRUE,
|
1707 |
'exclude_from_search' => TRUE,
|
1708 |
'publicly_queryable' => TRUE,
|
1718 |
|
1719 |
if ( $this->is_pro ) {
|
1720 |
$args = array(
|
1721 |
+
'label' => 'Gallery Share',
|
1722 |
'public' => FALSE,
|
1723 |
'publicly_queryable' => TRUE,
|
1724 |
'exclude_from_search' => TRUE,
|
1921 |
}
|
1922 |
|
1923 |
/**
|
1924 |
+
* Show 10Web plugin's install/activate banner.
|
|
|
|
|
1925 |
*/
|
1926 |
+
if ( !class_exists ( 'TWBanner' ) ) {
|
1927 |
+
require_once( BWG()->plugin_dir . '/banner_class.php' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1928 |
}
|
1929 |
+
if ( !BWG()->is_pro ) {
|
1930 |
+
$tw_banner_params = array(
|
1931 |
+
'menu_postfix' => '_' . BWG()->prefix, // To display on only current plugin pages.
|
1932 |
+
'prefix' => BWG()->prefix, // Current plugin prefix.
|
1933 |
+
'logo' => '/images/tw-gb/photo-gallery.svg', // Current plugin logo relative URL.
|
1934 |
+
'plugin_slug' => 'photo-gallery', // Current plugin slug.
|
1935 |
+
'plugin_url' => BWG()->plugin_url, // Current plugin URL.
|
1936 |
+
'plugin_id' => 101, // Current plugin id.
|
1937 |
+
'text' => sprintf(__("%s Photo Gallery advises:%s %sUse Image Optimizer service to optimize your images quickly and easily.%s", BWG()->prefix), '<span>', '</span>', '<span>', '</span>'), // Banner text.
|
1938 |
+
'slug' => '10web-manager', // Plugin slug to be installed.
|
1939 |
+
'mu_plugin_slug' => '10web-manager', // Must use plugin slug.
|
1940 |
+
'base_php' => '10web-manager.php', // Plugin base php filename to be installed.
|
1941 |
+
'page_url' => admin_url('admin.php?page=tenweb_menu'), // Redirect to URL after activating the plugin.
|
1942 |
+
);
|
1943 |
+
new TWBanner($tw_banner_params);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1944 |
}
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: webdorado,wdsupport,photogallerysupport,10web
|
|
3 |
Tags: gallery, photo gallery, image gallery, responsive gallery, wordpress gallery plugin, photo albums, gallery slider, gallery lightbox, wordpress photo gallery plugin, fullscreen gallery, watermarking, video gallery
|
4 |
Requires at least: 3.4
|
5 |
Tested up to: 5.2
|
6 |
-
Stable tag: 1.5.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -282,6 +282,26 @@ Choose whether to display random or the first/last specific number of images.
|
|
282 |
|
283 |
== Changelog ==
|
284 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
285 |
= 1.5.22 =
|
286 |
* Changed: Banner to install image optimizer plugin.
|
287 |
|
3 |
Tags: gallery, photo gallery, image gallery, responsive gallery, wordpress gallery plugin, photo albums, gallery slider, gallery lightbox, wordpress photo gallery plugin, fullscreen gallery, watermarking, video gallery
|
4 |
Requires at least: 3.4
|
5 |
Tested up to: 5.2
|
6 |
+
Stable tag: 1.5.23
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
282 |
|
283 |
== Changelog ==
|
284 |
|
285 |
+
|
286 |
+
|
287 |
+
|
288 |
+
= 1.5.23 =
|
289 |
+
* Fixed: Authenticated stored XSS.
|
290 |
+
* Fixed: Google fonts with 'Developer mode' set to 'No'.
|
291 |
+
* Fixed: Add images to gallery with exclamation mark in tag name.
|
292 |
+
* Fixed: Galleries list page with big data.
|
293 |
+
* Fixed: Filter in comments page.
|
294 |
+
* Fixed: Random ordering for lightbox.
|
295 |
+
* Fixed: Carousel view.
|
296 |
+
* Fixed: Scroll bar for image info.
|
297 |
+
* Fixed: Do not allow to save <a> tag in image alt.
|
298 |
+
* Fixed: Do not allow backslash in image alt and description.
|
299 |
+
* Fixed: HTML in alt/description.
|
300 |
+
* Changed: Polish translation.
|
301 |
+
* Added: Integration with Google photos.
|
302 |
+
* Added: Lazy load(optional).
|
303 |
+
* Removed: Google+.
|
304 |
+
|
305 |
= 1.5.22 =
|
306 |
* Changed: Banner to install image optimizer plugin.
|
307 |
|
update.php
CHANGED
@@ -421,17 +421,11 @@ class BWGUpdate {
|
|
421 |
$wpdb->query($file_paths_tbl);
|
422 |
}
|
423 |
|
424 |
-
if ( version_compare($version, '1.5.
|
425 |
-
$
|
426 |
-
|
427 |
-
foreach ( $rows as $row ) {
|
428 |
-
$wpdb->update($wpdb->prefix . 'bwg_image',
|
429 |
-
array( 'date' => date('Y-m-d H:i:s', strtotime($row->date) )),
|
430 |
-
array( 'id' => $row->id )
|
431 |
-
);
|
432 |
-
}
|
433 |
-
}
|
434 |
}
|
|
|
435 |
return;
|
436 |
}
|
437 |
}
|
421 |
$wpdb->query($file_paths_tbl);
|
422 |
}
|
423 |
|
424 |
+
if ( version_compare($version, '1.5.23' ) == -1 ) {
|
425 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_file_paths ADD `resolution_thumb` varchar(15)");
|
426 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_image ADD `resolution_thumb` varchar(128)");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
427 |
}
|
428 |
+
|
429 |
return;
|
430 |
}
|
431 |
}
|