Version Description
- Fixed: Security vulnerability.
Download this release
Release Info
Developer | 10web |
Plugin | Photo Gallery by WD – Responsive Photo Gallery |
Version | 1.6.8 |
Comparing to | |
See all releases |
Code changes from version 1.6.7 to 1.6.8
- framework/WDWLibrary.php +51 -27
- frontend/controllers/BWGControllerGalleryBox.php +1 -1
- frontend/controllers/controller.php +1 -1
- frontend/views/BWGViewAlbum_compact_preview.php +50 -50
- frontend/views/BWGViewAlbum_extended_preview.php +86 -86
- frontend/views/BWGViewGalleryBox.php +172 -172
- frontend/views/BWGViewImage_browser.php +100 -100
- frontend/views/BWGViewSlideshow.php +203 -203
- frontend/views/BWGViewThumbnails.php +59 -59
- frontend/views/view.php +164 -164
- js/bwg_gallery_box.js +3 -3
- js/scripts.min.js +1 -1
- photo-gallery.php +4 -4
- readme.txt +6 -1
framework/WDWLibrary.php
CHANGED
@@ -9,66 +9,90 @@ class WDWLibrary {
|
|
9 |
/**
|
10 |
* Get request value.
|
11 |
*
|
12 |
-
* @param
|
13 |
-
* @param
|
14 |
-
* @param
|
|
|
15 |
*
|
16 |
-
* @return string|
|
17 |
*/
|
18 |
public static function get($key, $default_value = '', $callback = 'sanitize_text_field', $type = 'DEFAULT') {
|
19 |
switch ($type) {
|
20 |
case 'REQUEST' :
|
21 |
if (isset($_REQUEST[$key])) {
|
22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
}
|
24 |
break;
|
25 |
case 'DEFAULT' :
|
26 |
case 'POST' :
|
27 |
-
if (isset($_POST[$key])) {
|
28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
}
|
30 |
if ( 'POST' === $type ) break;
|
31 |
case 'GET' :
|
32 |
if (isset($_GET[$key])) {
|
33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
}
|
35 |
break;
|
36 |
}
|
|
|
37 |
if ( !isset($value) ) {
|
38 |
-
if( $default_value === NULL ) {
|
39 |
return NULL;
|
40 |
} else {
|
41 |
$value = $default_value;
|
42 |
}
|
43 |
}
|
44 |
|
45 |
-
if ( is_bool($value) ) {
|
46 |
-
return $value;
|
47 |
-
}
|
48 |
-
|
49 |
-
if (is_array($value)) {
|
50 |
-
// $callback should be third parameter of the validate_data function, so there is need to add unused second parameter to validate_data function.
|
51 |
-
array_walk_recursive($value, array('self', 'validate_data'), $callback);
|
52 |
-
}
|
53 |
-
else {
|
54 |
-
self::validate_data($value, 0, $callback);
|
55 |
-
}
|
56 |
-
|
57 |
return $value;
|
58 |
}
|
59 |
|
60 |
/**
|
61 |
-
* Validate data.
|
62 |
-
*
|
63 |
* @param $value
|
64 |
-
* @param $key
|
65 |
* @param $callback
|
|
|
|
|
66 |
*/
|
67 |
-
private static function validate_data(
|
68 |
$value = stripslashes($value);
|
69 |
if ( $callback && function_exists($callback) ) {
|
70 |
$value = $callback($value);
|
71 |
}
|
|
|
|
|
72 |
}
|
73 |
|
74 |
/**
|
@@ -1803,7 +1827,7 @@ class WDWLibrary {
|
|
1803 |
$img_width = $image_size[ 'width' ];
|
1804 |
$img_height = $image_size[ 'height' ];
|
1805 |
$scale = min( $max_width / $img_width, $max_height / $img_height );
|
1806 |
-
if ( ($scale >= 1) || (($max_width == NULL) && ($max_height == NULL)) ) {
|
1807 |
if ( $source !== $destination ) {
|
1808 |
if(self::detect_thumb($destination)) {
|
1809 |
self::$thumb_dimansions = intval($img_width)."x".intval($img_height);
|
@@ -2025,6 +2049,7 @@ class WDWLibrary {
|
|
2025 |
'images_per_page' => 0,
|
2026 |
'thumb_width' => BWG()->options->thumb_width,
|
2027 |
'thumb_height' => BWG()->options->thumb_height,
|
|
|
2028 |
'watermark_type' => (($from) ? BWG()->options->watermark_type : ($use_option_defaults ? BWG()->options->watermark_type : (isset($params['watermark_type']) ? $params['watermark_type'] : 'none'))),
|
2029 |
'watermark_text' => (($from) ? urlencode(BWG()->options->watermark_text) : ($use_option_defaults ? urlencode(BWG()->options->watermark_text) : (isset($params['watermark_text']) ? urlencode($params['watermark_text']) : ''))),
|
2030 |
'watermark_font_size' => (($from) ? BWG()->options->watermark_font_size : ($use_option_defaults ? BWG()->options->watermark_font_size : (isset($params['watermark_font_size']) ? $params['watermark_font_size'] : 12))),
|
@@ -2054,7 +2079,6 @@ class WDWLibrary {
|
|
2054 |
$defaults['popup_enable_comment'] = (bool) self::get_option_value('popup_enable_comment', 'popup_enable_comment', 'popup_enable_comment', $from || $use_option_defaults, $params);
|
2055 |
$defaults['popup_enable_email'] = (bool) self::get_option_value('popup_enable_email', 'popup_enable_email', 'popup_enable_email', $from || $use_option_defaults, $params);
|
2056 |
$defaults['popup_enable_captcha'] = (bool) self::get_option_value('popup_enable_captcha', 'popup_enable_captcha', 'popup_enable_captcha', $from || $use_option_defaults, $params);
|
2057 |
-
$defaults['gdpr_compliance'] = (bool) self::get_option_value('gdpr_compliance', 'gdpr_compliance', 'gdpr_compliance', $from || $use_option_defaults, $params);
|
2058 |
$defaults['comment_moderation'] = (bool) self::get_option_value('comment_moderation', 'comment_moderation', 'comment_moderation', $from || $use_option_defaults, $params);
|
2059 |
$defaults['popup_enable_info'] = (bool) self::get_option_value('popup_enable_info', 'popup_enable_info', 'popup_enable_info', $from || $use_option_defaults, $params);
|
2060 |
$defaults['popup_info_always_show'] = (bool) self::get_option_value('popup_info_always_show', 'popup_info_always_show', 'popup_info_always_show', $from || $use_option_defaults, $params);
|
9 |
/**
|
10 |
* Get request value.
|
11 |
*
|
12 |
+
* @param $key
|
13 |
+
* @param $default_value
|
14 |
+
* @param $callback
|
15 |
+
* @param $type
|
16 |
*
|
17 |
+
* @return array|bool|mixed|string|null
|
18 |
*/
|
19 |
public static function get($key, $default_value = '', $callback = 'sanitize_text_field', $type = 'DEFAULT') {
|
20 |
switch ($type) {
|
21 |
case 'REQUEST' :
|
22 |
if (isset($_REQUEST[$key])) {
|
23 |
+
if ( is_bool($_REQUEST[$key]) ) {
|
24 |
+
return $_REQUEST[$key];
|
25 |
+
}
|
26 |
+
elseif (is_array($_REQUEST[$key])) {
|
27 |
+
$value = array();
|
28 |
+
foreach ($_REQUEST[$key] as $valKey => $val) {
|
29 |
+
$value[$valKey] = self::validate_data($val, $callback);
|
30 |
+
}
|
31 |
+
}
|
32 |
+
else {
|
33 |
+
$value = self::validate_data($_REQUEST[$key], $callback);
|
34 |
+
}
|
35 |
}
|
36 |
break;
|
37 |
case 'DEFAULT' :
|
38 |
case 'POST' :
|
39 |
+
if ( isset($_POST[$key]) ) {
|
40 |
+
if ( is_bool($_POST[$key]) ) {
|
41 |
+
return $_POST[$key];
|
42 |
+
}
|
43 |
+
elseif ( is_array($_POST[$key]) ) {
|
44 |
+
$value = array();
|
45 |
+
foreach ( $_POST[$key] as $valKey => $val ) {
|
46 |
+
$value[$valKey] = self::validate_data($val, $callback);
|
47 |
+
}
|
48 |
+
}
|
49 |
+
else {
|
50 |
+
$value = self::validate_data($_POST[$key], $callback);
|
51 |
+
}
|
52 |
}
|
53 |
if ( 'POST' === $type ) break;
|
54 |
case 'GET' :
|
55 |
if (isset($_GET[$key])) {
|
56 |
+
if ( is_bool($_GET[$key]) ) {
|
57 |
+
return $_GET[$key];
|
58 |
+
}
|
59 |
+
elseif ( is_array($_GET[$key]) ) {
|
60 |
+
$value = array();
|
61 |
+
foreach ( $_GET[$key] as $valKey => $val ) {
|
62 |
+
$value[$valKey] = self::validate_data($val, $callback);
|
63 |
+
}
|
64 |
+
}
|
65 |
+
else {
|
66 |
+
$value = self::validate_data($_GET[$key], $callback);
|
67 |
+
}
|
68 |
}
|
69 |
break;
|
70 |
}
|
71 |
+
|
72 |
if ( !isset($value) ) {
|
73 |
+
if ( $default_value === NULL ) {
|
74 |
return NULL;
|
75 |
} else {
|
76 |
$value = $default_value;
|
77 |
}
|
78 |
}
|
79 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
return $value;
|
81 |
}
|
82 |
|
83 |
/**
|
|
|
|
|
84 |
* @param $value
|
|
|
85 |
* @param $callback
|
86 |
+
*
|
87 |
+
* @return mixed|string
|
88 |
*/
|
89 |
+
private static function validate_data($value, $callback) {
|
90 |
$value = stripslashes($value);
|
91 |
if ( $callback && function_exists($callback) ) {
|
92 |
$value = $callback($value);
|
93 |
}
|
94 |
+
|
95 |
+
return $value;
|
96 |
}
|
97 |
|
98 |
/**
|
1827 |
$img_width = $image_size[ 'width' ];
|
1828 |
$img_height = $image_size[ 'height' ];
|
1829 |
$scale = min( $max_width / $img_width, $max_height / $img_height );
|
1830 |
+
if ( 0 || ($scale >= 1) || (($max_width == NULL) && ($max_height == NULL)) ) {
|
1831 |
if ( $source !== $destination ) {
|
1832 |
if(self::detect_thumb($destination)) {
|
1833 |
self::$thumb_dimansions = intval($img_width)."x".intval($img_height);
|
2049 |
'images_per_page' => 0,
|
2050 |
'thumb_width' => BWG()->options->thumb_width,
|
2051 |
'thumb_height' => BWG()->options->thumb_height,
|
2052 |
+
'gdpr_compliance' => (bool) BWG()->options->gdpr_compliance,
|
2053 |
'watermark_type' => (($from) ? BWG()->options->watermark_type : ($use_option_defaults ? BWG()->options->watermark_type : (isset($params['watermark_type']) ? $params['watermark_type'] : 'none'))),
|
2054 |
'watermark_text' => (($from) ? urlencode(BWG()->options->watermark_text) : ($use_option_defaults ? urlencode(BWG()->options->watermark_text) : (isset($params['watermark_text']) ? urlencode($params['watermark_text']) : ''))),
|
2055 |
'watermark_font_size' => (($from) ? BWG()->options->watermark_font_size : ($use_option_defaults ? BWG()->options->watermark_font_size : (isset($params['watermark_font_size']) ? $params['watermark_font_size'] : 12))),
|
2079 |
$defaults['popup_enable_comment'] = (bool) self::get_option_value('popup_enable_comment', 'popup_enable_comment', 'popup_enable_comment', $from || $use_option_defaults, $params);
|
2080 |
$defaults['popup_enable_email'] = (bool) self::get_option_value('popup_enable_email', 'popup_enable_email', 'popup_enable_email', $from || $use_option_defaults, $params);
|
2081 |
$defaults['popup_enable_captcha'] = (bool) self::get_option_value('popup_enable_captcha', 'popup_enable_captcha', 'popup_enable_captcha', $from || $use_option_defaults, $params);
|
|
|
2082 |
$defaults['comment_moderation'] = (bool) self::get_option_value('comment_moderation', 'comment_moderation', 'comment_moderation', $from || $use_option_defaults, $params);
|
2083 |
$defaults['popup_enable_info'] = (bool) self::get_option_value('popup_enable_info', 'popup_enable_info', 'popup_enable_info', $from || $use_option_defaults, $params);
|
2084 |
$defaults['popup_info_always_show'] = (bool) self::get_option_value('popup_info_always_show', 'popup_info_always_show', 'popup_info_always_show', $from || $use_option_defaults, $params);
|
frontend/controllers/BWGControllerGalleryBox.php
CHANGED
@@ -96,7 +96,7 @@ class BWGControllerGalleryBox {
|
|
96 |
if ( WDWLibrary::get('popup_enable_captcha') ) {
|
97 |
WDWLibrary::bwg_session_start();
|
98 |
$captcha = WDWLibrary::get('comment_captcha');
|
99 |
-
$session_captcha = (isset($_SESSION['bwg_captcha_code']) ?
|
100 |
if ( empty($captcha) ) {
|
101 |
$error = true;
|
102 |
$error_messages['captcha'] = sprintf( __('The %s field is required.', 'photo-gallery'), 'captcha' );
|
96 |
if ( WDWLibrary::get('popup_enable_captcha') ) {
|
97 |
WDWLibrary::bwg_session_start();
|
98 |
$captcha = WDWLibrary::get('comment_captcha');
|
99 |
+
$session_captcha = (isset($_SESSION['bwg_captcha_code']) ? sanitize_text_field(stripslashes($_SESSION['bwg_captcha_code'])) : '');
|
100 |
if ( empty($captcha) ) {
|
101 |
$error = true;
|
102 |
$error_messages['captcha'] = sprintf( __('The %s field is required.', 'photo-gallery'), 'captcha' );
|
frontend/controllers/controller.php
CHANGED
@@ -357,7 +357,7 @@ class BWGControllerSite {
|
|
357 |
}
|
358 |
|
359 |
if ( !isset( $params['current_url'] ) ) {
|
360 |
-
$params['current_url'] =
|
361 |
}
|
362 |
$need_scroll = 0;
|
363 |
if( BWG()->options->front_ajax == "1" && (WDWLibrary::get('bwg_search_' . $bwg) != '' || WDWLibrary::get('filter_tag_' . $bwg) != "" || WDWLibrary::get("album_gallery_id_".$bwg) != "" || WDWLibrary::get("page_number_".$bwg)) != "" ) {
|
357 |
}
|
358 |
|
359 |
if ( !isset( $params['current_url'] ) ) {
|
360 |
+
$params['current_url'] = sanitize_url( trim((is_ssl() ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']) );
|
361 |
}
|
362 |
$need_scroll = 0;
|
363 |
if( BWG()->options->front_ajax == "1" && (WDWLibrary::get('bwg_search_' . $bwg) != '' || WDWLibrary::get('filter_tag_' . $bwg) != "" || WDWLibrary::get("album_gallery_id_".$bwg) != "" || WDWLibrary::get("page_number_".$bwg)) != "" ) {
|
frontend/views/BWGViewAlbum_compact_preview.php
CHANGED
@@ -56,12 +56,12 @@ class BWGViewAlbum_compact_preview extends BWGViewSite {
|
|
56 |
wp_add_inline_style('bwg_frontend', $inline_style);
|
57 |
}
|
58 |
else {
|
59 |
-
echo '<style id="bwg-style-' .
|
60 |
}
|
61 |
}
|
62 |
}
|
63 |
else {
|
64 |
-
echo '<style id="bwg-style-' .
|
65 |
}
|
66 |
ob_start();
|
67 |
|
@@ -71,7 +71,7 @@ class BWGViewAlbum_compact_preview extends BWGViewSite {
|
|
71 |
data-thumbnail-width="<?php echo esc_attr($params['compuct_album_thumb_width']); ?>"
|
72 |
data-bwg="<?php echo esc_attr($bwg); ?>"
|
73 |
id="<?php echo esc_attr($params['container_id']); ?>"
|
74 |
-
class="bwg-thumbnails bwg-container bwg-container-<?php echo
|
75 |
<?php
|
76 |
if ( !$params['album_gallery_rows']['page_nav']['total'] ) {
|
77 |
echo WDWLibrary::message(__('No results found.', 'photo-gallery'), 'wd_error');
|
@@ -96,7 +96,7 @@ class BWGViewAlbum_compact_preview extends BWGViewSite {
|
|
96 |
$enable_dynamic_url = (int) BWG()->options->front_ajax;
|
97 |
?>
|
98 |
<div class="bwg-item">
|
99 |
-
<a class="bwg-a <?php echo $from !== "widget" ? 'bwg-album ' : ''; ?>bwg_album_<?php echo
|
100 |
<?php echo ( ($enable_seo || $enable_dynamic_url) && $from !== "widget" ? "href='" . esc_url($href) . "'" : ""); ?>
|
101 |
<?php echo $from === "widget" ? 'href="' . $row->permalink . '"' : ''; ?>
|
102 |
data-container_id="<?php echo esc_attr($params['container_id']); ?>"
|
@@ -138,7 +138,7 @@ class BWGViewAlbum_compact_preview extends BWGViewSite {
|
|
138 |
}
|
139 |
}
|
140 |
?>
|
141 |
-
<input type="hidden" id="bwg_album_breadcrumb_<?php echo
|
142 |
<?php
|
143 |
$content = ob_get_clean();
|
144 |
if ( $ajax ) {/* Ajax response after ajax call for filters and pagination.*/
|
@@ -158,9 +158,9 @@ class BWGViewAlbum_compact_preview extends BWGViewSite {
|
|
158 |
ob_start();
|
159 |
$rgb_album_compact_thumbs_bg_color = WDWLibrary::spider_hex2rgb($theme_row->album_compact_thumbs_bg_color);
|
160 |
?>
|
161 |
-
#bwg_container1_<?php echo $bwg
|
162 |
-
width: <?php echo ($params['items_col_num'] * $params['compuct_album_thumb_width']) + ($theme_row->compact_container_margin ? $theme_row->album_compact_thumb_margin : 0); ?>px;
|
163 |
-
justify-content: <?php echo $theme_row->album_compact_thumb_align; ?>;
|
164 |
<?php
|
165 |
if ( $theme_row->album_compact_thumb_align == 'center' ) {
|
166 |
?>
|
@@ -181,19 +181,19 @@ class BWGViewAlbum_compact_preview extends BWGViewSite {
|
|
181 |
<?php
|
182 |
}
|
183 |
?>
|
184 |
-
background-color: rgba(<?php echo $rgb_album_compact_thumbs_bg_color['red']; ?>, <?php echo $rgb_album_compact_thumbs_bg_color['green']; ?>, <?php echo $rgb_album_compact_thumbs_bg_color['blue']; ?>, <?php echo number_format($theme_row->album_compact_thumb_bg_transparent / 100, 2, ".", ""); ?>);
|
185 |
<?php
|
186 |
if ( $theme_row->compact_container_margin ) {
|
187 |
?>
|
188 |
-
padding-left: <?php echo $theme_row->album_compact_thumb_margin; ?>px;
|
189 |
-
padding-top: <?php echo $theme_row->album_compact_thumb_margin; ?>px;
|
190 |
max-width: 100%;
|
191 |
<?php
|
192 |
}
|
193 |
else {
|
194 |
?>
|
195 |
-
margin-right: -<?php echo $theme_row->album_compact_thumb_margin; ?>px;
|
196 |
-
max-width: calc(100% + <?php echo $theme_row->album_compact_thumb_margin; ?>px);
|
197 |
<?php
|
198 |
}
|
199 |
?>
|
@@ -201,56 +201,56 @@ class BWGViewAlbum_compact_preview extends BWGViewSite {
|
|
201 |
<?php
|
202 |
if (!$theme_row->compact_container_margin && $theme_row->album_compact_thumb_margin) {
|
203 |
?>
|
204 |
-
#bwg_container1_<?php echo $bwg
|
205 |
overflow: hidden;
|
206 |
}
|
207 |
<?php
|
208 |
}
|
209 |
?>
|
210 |
-
#bwg_container1_<?php echo $bwg
|
211 |
justify-content: <?php echo $theme_row->album_compact_thumb_title_pos == 'top'? 'flex-end' : 'flex-start'; ?>;
|
212 |
max-width: <?php echo $params['compuct_album_thumb_width']; ?>px;
|
213 |
<?php if ( !BWG()->options->resizable_thumbnails ) { ?>
|
214 |
-
width: <?php echo $params['compuct_album_thumb_width']; ?>px !important;
|
215 |
<?php } ?>
|
216 |
}
|
217 |
-
#bwg_container1_<?php echo $bwg
|
218 |
-
margin-right: <?php echo $theme_row->album_compact_thumb_margin; ?>px;
|
219 |
-
margin-bottom: <?php echo $theme_row->album_compact_thumb_margin; ?>px;
|
220 |
}
|
221 |
-
#bwg_container1_<?php echo $bwg
|
222 |
-
padding: <?php echo $theme_row->album_compact_thumb_padding; ?>px;
|
223 |
<?php $thumb_bg_color = WDWLibrary::spider_hex2rgb( $theme_row->album_compact_thumb_bg_color ); ?>
|
224 |
-
background-color:rgba(<?php echo $thumb_bg_color['red'] .','. $thumb_bg_color['green'] . ',' . $thumb_bg_color['blue'] . ', '.number_format($theme_row->album_compact_thumb_bg_transparency / 100, 2, ".", ""); ?>);
|
225 |
-
border: <?php echo $theme_row->album_compact_thumb_border_width; ?>px <?php echo $theme_row->album_compact_thumb_border_style; ?> #<?php echo $theme_row->album_compact_thumb_border_color; ?>;
|
226 |
opacity: <?php echo number_format($theme_row->album_compact_thumb_transparent / 100, 2, ".", ""); ?>;
|
227 |
-
border-radius: <?php echo $theme_row->album_compact_thumb_border_radius; ?>;
|
228 |
-
box-shadow: <?php echo $theme_row->album_compact_thumb_box_shadow; ?>;
|
229 |
}
|
230 |
-
#bwg_container1_<?php echo $bwg
|
231 |
max-height: none;
|
232 |
max-width: none;
|
233 |
padding: 0 !important;
|
234 |
}
|
235 |
<?php if ( $theme_row->album_compact_thumb_hover_effect == 'zoom' ) { ?>
|
236 |
@media only screen and (min-width: 480px) {
|
237 |
-
#bwg_container1_<?php echo $bwg
|
238 |
<?php echo ($theme_row->album_compact_thumb_transition) ? '-webkit-transition: all .3s; transition: all .3s;' : ''; ?>
|
239 |
}
|
240 |
-
#bwg_container1_<?php echo $bwg
|
241 |
-
-ms-transform: scale(<?php echo $theme_row->album_compact_thumb_hover_effect_value; ?>);
|
242 |
-
-webkit-transform: scale(<?php echo $theme_row->album_compact_thumb_hover_effect_value; ?>);
|
243 |
-
transform: scale(<?php echo $theme_row->album_compact_thumb_hover_effect_value; ?>);
|
244 |
}
|
245 |
<?php if ( $params['compuct_album_title'] == 'hover' ) { ?>
|
246 |
.bwg-album-thumbnails .bwg-zoom-effect .bwg-zoom-effect-overlay {
|
247 |
<?php $thumb_bg_color = WDWLibrary::spider_hex2rgb( $theme_row->album_compact_thumb_bg_color ); ?>
|
248 |
-
background-color:rgba(<?php echo $thumb_bg_color['red'] .','. $thumb_bg_color['green'] . ',' . $thumb_bg_color['blue'] . ', 0.3'; ?>);
|
249 |
}
|
250 |
.bwg-album-thumbnails .bwg-zoom-effect:hover img {
|
251 |
-
-ms-transform: scale(<?php echo $theme_row->album_compact_thumb_hover_effect_value; ?>);
|
252 |
-
-webkit-transform: scale(<?php echo $theme_row->album_compact_thumb_hover_effect_value; ?>);
|
253 |
-
transform: scale(<?php echo $theme_row->album_compact_thumb_hover_effect_value; ?>);
|
254 |
}
|
255 |
<?php } ?>
|
256 |
}
|
@@ -259,25 +259,25 @@ class BWGViewAlbum_compact_preview extends BWGViewSite {
|
|
259 |
else {
|
260 |
?>
|
261 |
@media only screen and (min-width: 480px) {
|
262 |
-
#bwg_container1_<?php echo $bwg
|
263 |
<?php echo ($theme_row->album_compact_thumb_transition) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
|
264 |
}
|
265 |
-
#bwg_container1_<?php echo $bwg
|
266 |
-
-ms-transform: <?php echo $theme_row->album_compact_thumb_hover_effect; ?>(<?php echo $theme_row->album_compact_thumb_hover_effect_value; ?>);
|
267 |
-
-webkit-transform: <?php echo $theme_row->album_compact_thumb_hover_effect; ?>(<?php echo $theme_row->album_compact_thumb_hover_effect_value; ?>);
|
268 |
-
transform: <?php echo $theme_row->album_compact_thumb_hover_effect; ?>(<?php echo $theme_row->album_compact_thumb_hover_effect_value; ?>);
|
269 |
}
|
270 |
}
|
271 |
<?php
|
272 |
}
|
273 |
?>
|
274 |
-
#bwg_container1_<?php echo $bwg
|
275 |
-
padding-top: <?php echo $params['compuct_album_thumb_height'] / $params['compuct_album_thumb_width'] * 100; ?>%;
|
276 |
}
|
277 |
<?php
|
278 |
/* Show image title on hover.*/
|
279 |
if ( $params['compuct_album_title'] == 'hover' ) { ?>
|
280 |
-
#bwg_container1_<?php echo $bwg
|
281 |
position: absolute;
|
282 |
top: 0;
|
283 |
z-index: 100;
|
@@ -292,13 +292,13 @@ class BWGViewAlbum_compact_preview extends BWGViewSite {
|
|
292 |
<?php
|
293 |
}
|
294 |
?>
|
295 |
-
#bwg_container1_<?php echo $bwg
|
296 |
-
color: #<?php echo ( $params['compuct_album_title'] == 'hover') ? (isset($theme_row->album_compact_title_font_color_hover) ? $theme_row->album_compact_title_font_color_hover : $theme_row->album_compact_title_font_color) : $theme_row->album_compact_title_font_color; ?>;
|
297 |
-
font-family: <?php echo $theme_row->album_compact_title_font_style; ?>;
|
298 |
-
font-size: <?php echo $theme_row->album_compact_title_font_size; ?>px;
|
299 |
-
font-weight: <?php echo $theme_row->album_compact_title_font_weight; ?>;
|
300 |
-
padding: <?php echo $theme_row->album_compact_title_margin; ?>;
|
301 |
-
text-shadow: <?php echo $theme_row->album_compact_title_shadow; ?>;
|
302 |
max-height: 100%;
|
303 |
}
|
304 |
<?php
|
56 |
wp_add_inline_style('bwg_frontend', $inline_style);
|
57 |
}
|
58 |
else {
|
59 |
+
echo '<style id="bwg-style-' . esc_attr($bwg) . '">' . strip_tags($inline_style) . '</style>';
|
60 |
}
|
61 |
}
|
62 |
}
|
63 |
else {
|
64 |
+
echo '<style id="bwg-style-' . esc_attr($bwg) . '">' . strip_tags($inline_style) . '</style>';
|
65 |
}
|
66 |
ob_start();
|
67 |
|
71 |
data-thumbnail-width="<?php echo esc_attr($params['compuct_album_thumb_width']); ?>"
|
72 |
data-bwg="<?php echo esc_attr($bwg); ?>"
|
73 |
id="<?php echo esc_attr($params['container_id']); ?>"
|
74 |
+
class="bwg-thumbnails bwg-container bwg-container-<?php echo esc_attr($bwg); ?> bwg-album-thumbnails <?php echo esc_attr($params['album_gallery_div_class']); ?>">
|
75 |
<?php
|
76 |
if ( !$params['album_gallery_rows']['page_nav']['total'] ) {
|
77 |
echo WDWLibrary::message(__('No results found.', 'photo-gallery'), 'wd_error');
|
96 |
$enable_dynamic_url = (int) BWG()->options->front_ajax;
|
97 |
?>
|
98 |
<div class="bwg-item">
|
99 |
+
<a class="bwg-a <?php echo $from !== "widget" ? 'bwg-album ' : ''; ?>bwg_album_<?php echo esc_attr($bwg); ?>"
|
100 |
<?php echo ( ($enable_seo || $enable_dynamic_url) && $from !== "widget" ? "href='" . esc_url($href) . "'" : ""); ?>
|
101 |
<?php echo $from === "widget" ? 'href="' . $row->permalink . '"' : ''; ?>
|
102 |
data-container_id="<?php echo esc_attr($params['container_id']); ?>"
|
138 |
}
|
139 |
}
|
140 |
?>
|
141 |
+
<input type="hidden" id="bwg_album_breadcrumb_<?php echo esc_attr($bwg); ?>" name="bwg_album_breadcrumb_<?php echo esc_attr($bwg); ?>" value='<?php echo esc_attr($breadcrumb); ?>' />
|
142 |
<?php
|
143 |
$content = ob_get_clean();
|
144 |
if ( $ajax ) {/* Ajax response after ajax call for filters and pagination.*/
|
158 |
ob_start();
|
159 |
$rgb_album_compact_thumbs_bg_color = WDWLibrary::spider_hex2rgb($theme_row->album_compact_thumbs_bg_color);
|
160 |
?>
|
161 |
+
#bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-thumbnails {
|
162 |
+
width: <?php echo esc_html(($params['items_col_num'] * $params['compuct_album_thumb_width']) + ($theme_row->compact_container_margin ? $theme_row->album_compact_thumb_margin : 0)); ?>px;
|
163 |
+
justify-content: <?php echo esc_html($theme_row->album_compact_thumb_align); ?>;
|
164 |
<?php
|
165 |
if ( $theme_row->album_compact_thumb_align == 'center' ) {
|
166 |
?>
|
181 |
<?php
|
182 |
}
|
183 |
?>
|
184 |
+
background-color: rgba(<?php echo esc_html($rgb_album_compact_thumbs_bg_color['red']); ?>, <?php echo esc_html($rgb_album_compact_thumbs_bg_color['green']); ?>, <?php echo esc_html($rgb_album_compact_thumbs_bg_color['blue']); ?>, <?php echo number_format($theme_row->album_compact_thumb_bg_transparent / 100, 2, ".", ""); ?>);
|
185 |
<?php
|
186 |
if ( $theme_row->compact_container_margin ) {
|
187 |
?>
|
188 |
+
padding-left: <?php echo esc_html($theme_row->album_compact_thumb_margin); ?>px;
|
189 |
+
padding-top: <?php echo esc_html($theme_row->album_compact_thumb_margin); ?>px;
|
190 |
max-width: 100%;
|
191 |
<?php
|
192 |
}
|
193 |
else {
|
194 |
?>
|
195 |
+
margin-right: -<?php echo esc_html($theme_row->album_compact_thumb_margin); ?>px;
|
196 |
+
max-width: calc(100% + <?php echo esc_html($theme_row->album_compact_thumb_margin); ?>px);
|
197 |
<?php
|
198 |
}
|
199 |
?>
|
201 |
<?php
|
202 |
if (!$theme_row->compact_container_margin && $theme_row->album_compact_thumb_margin) {
|
203 |
?>
|
204 |
+
#bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-background-<?php echo esc_attr($bwg) ?>.bwg-album-thumbnails {
|
205 |
overflow: hidden;
|
206 |
}
|
207 |
<?php
|
208 |
}
|
209 |
?>
|
210 |
+
#bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-thumbnails .bwg-item {
|
211 |
justify-content: <?php echo $theme_row->album_compact_thumb_title_pos == 'top'? 'flex-end' : 'flex-start'; ?>;
|
212 |
max-width: <?php echo $params['compuct_album_thumb_width']; ?>px;
|
213 |
<?php if ( !BWG()->options->resizable_thumbnails ) { ?>
|
214 |
+
width: <?php echo esc_html($params['compuct_album_thumb_width']); ?>px !important;
|
215 |
<?php } ?>
|
216 |
}
|
217 |
+
#bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-thumbnails .bwg-item > a {
|
218 |
+
margin-right: <?php echo esc_html($theme_row->album_compact_thumb_margin); ?>px;
|
219 |
+
margin-bottom: <?php echo esc_html($theme_row->album_compact_thumb_margin); ?>px;
|
220 |
}
|
221 |
+
#bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-thumbnails .bwg-item0 {
|
222 |
+
padding: <?php echo esc_html($theme_row->album_compact_thumb_padding); ?>px;
|
223 |
<?php $thumb_bg_color = WDWLibrary::spider_hex2rgb( $theme_row->album_compact_thumb_bg_color ); ?>
|
224 |
+
background-color:rgba(<?php echo esc_html($thumb_bg_color['red']) .','. esc_html($thumb_bg_color['green']) . ',' . esc_html($thumb_bg_color['blue']) . ', '.number_format($theme_row->album_compact_thumb_bg_transparency / 100, 2, ".", ""); ?>);
|
225 |
+
border: <?php echo esc_html($theme_row->album_compact_thumb_border_width); ?>px <?php echo esc_html($theme_row->album_compact_thumb_border_style); ?> #<?php echo esc_html($theme_row->album_compact_thumb_border_color); ?>;
|
226 |
opacity: <?php echo number_format($theme_row->album_compact_thumb_transparent / 100, 2, ".", ""); ?>;
|
227 |
+
border-radius: <?php echo esc_html($theme_row->album_compact_thumb_border_radius); ?>;
|
228 |
+
box-shadow: <?php echo esc_html($theme_row->album_compact_thumb_box_shadow); ?>;
|
229 |
}
|
230 |
+
#bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-thumbnails .bwg-item1 img {
|
231 |
max-height: none;
|
232 |
max-width: none;
|
233 |
padding: 0 !important;
|
234 |
}
|
235 |
<?php if ( $theme_row->album_compact_thumb_hover_effect == 'zoom' ) { ?>
|
236 |
@media only screen and (min-width: 480px) {
|
237 |
+
#bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-thumbnails .bwg-item1 img {
|
238 |
<?php echo ($theme_row->album_compact_thumb_transition) ? '-webkit-transition: all .3s; transition: all .3s;' : ''; ?>
|
239 |
}
|
240 |
+
#bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-thumbnails .bwg-item1 img:hover {
|
241 |
+
-ms-transform: scale(<?php echo esc_html($theme_row->album_compact_thumb_hover_effect_value); ?>);
|
242 |
+
-webkit-transform: scale(<?php echo esc_html($theme_row->album_compact_thumb_hover_effect_value); ?>);
|
243 |
+
transform: scale(<?php echo esc_html($theme_row->album_compact_thumb_hover_effect_value); ?>);
|
244 |
}
|
245 |
<?php if ( $params['compuct_album_title'] == 'hover' ) { ?>
|
246 |
.bwg-album-thumbnails .bwg-zoom-effect .bwg-zoom-effect-overlay {
|
247 |
<?php $thumb_bg_color = WDWLibrary::spider_hex2rgb( $theme_row->album_compact_thumb_bg_color ); ?>
|
248 |
+
background-color:rgba(<?php echo esc_html($thumb_bg_color['red']) .','. esc_html($thumb_bg_color['green']) . ',' . esc_html($thumb_bg_color['blue']) . ', 0.3'; ?>);
|
249 |
}
|
250 |
.bwg-album-thumbnails .bwg-zoom-effect:hover img {
|
251 |
+
-ms-transform: scale(<?php echo esc_html($theme_row->album_compact_thumb_hover_effect_value); ?>);
|
252 |
+
-webkit-transform: scale(<?php echo esc_html($theme_row->album_compact_thumb_hover_effect_value); ?>);
|
253 |
+
transform: scale(<?php echo esc_html($theme_row->album_compact_thumb_hover_effect_value); ?>);
|
254 |
}
|
255 |
<?php } ?>
|
256 |
}
|
259 |
else {
|
260 |
?>
|
261 |
@media only screen and (min-width: 480px) {
|
262 |
+
#bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-thumbnails .bwg-item0 {
|
263 |
<?php echo ($theme_row->album_compact_thumb_transition) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
|
264 |
}
|
265 |
+
#bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-thumbnails .bwg-item0:hover {
|
266 |
+
-ms-transform: <?php echo esc_html($theme_row->album_compact_thumb_hover_effect); ?>(<?php echo esc_html($theme_row->album_compact_thumb_hover_effect_value); ?>);
|
267 |
+
-webkit-transform: <?php echo esc_html($theme_row->album_compact_thumb_hover_effect); ?>(<?php echo esc_html($theme_row->album_compact_thumb_hover_effect_value); ?>);
|
268 |
+
transform: <?php echo esc_html($theme_row->album_compact_thumb_hover_effect); ?>(<?php echo esc_html($theme_row->album_compact_thumb_hover_effect_value); ?>);
|
269 |
}
|
270 |
}
|
271 |
<?php
|
272 |
}
|
273 |
?>
|
274 |
+
#bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-thumbnails .bwg-item1 {
|
275 |
+
padding-top: <?php echo esc_html($params['compuct_album_thumb_height'] / $params['compuct_album_thumb_width'] * 100); ?>%;
|
276 |
}
|
277 |
<?php
|
278 |
/* Show image title on hover.*/
|
279 |
if ( $params['compuct_album_title'] == 'hover' ) { ?>
|
280 |
+
#bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-thumbnails .bwg-title1 {
|
281 |
position: absolute;
|
282 |
top: 0;
|
283 |
z-index: 100;
|
292 |
<?php
|
293 |
}
|
294 |
?>
|
295 |
+
#bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-thumbnails .bwg-title2 {
|
296 |
+
color: #<?php echo esc_html(( $params['compuct_album_title'] == 'hover') ? (isset($theme_row->album_compact_title_font_color_hover) ? $theme_row->album_compact_title_font_color_hover : $theme_row->album_compact_title_font_color) : $theme_row->album_compact_title_font_color); ?>;
|
297 |
+
font-family: <?php echo esc_html($theme_row->album_compact_title_font_style); ?>;
|
298 |
+
font-size: <?php echo esc_html($theme_row->album_compact_title_font_size); ?>px;
|
299 |
+
font-weight: <?php echo esc_html($theme_row->album_compact_title_font_weight); ?>;
|
300 |
+
padding: <?php echo esc_html($theme_row->album_compact_title_margin); ?>;
|
301 |
+
text-shadow: <?php echo esc_html($theme_row->album_compact_title_shadow); ?>;
|
302 |
max-height: 100%;
|
303 |
}
|
304 |
<?php
|
frontend/views/BWGViewAlbum_extended_preview.php
CHANGED
@@ -62,12 +62,12 @@ class BWGViewAlbum_extended_preview extends BWGViewSite {
|
|
62 |
wp_add_inline_style('bwg_frontend', $inline_style);
|
63 |
}
|
64 |
else {
|
65 |
-
echo '<style id="bwg-style-' .
|
66 |
}
|
67 |
}
|
68 |
}
|
69 |
else {
|
70 |
-
echo '<style id="bwg-style-' .
|
71 |
}
|
72 |
|
73 |
ob_start();
|
@@ -79,8 +79,8 @@ class BWGViewAlbum_extended_preview extends BWGViewSite {
|
|
79 |
data-global-spacing="<?php echo esc_attr($theme_row->album_extended_div_margin); ?>"
|
80 |
data-spacing="<?php echo esc_attr($theme_row->album_extended_div_padding); ?>"
|
81 |
data-bwg="<?php echo esc_attr($bwg); ?>"
|
82 |
-
id="<?php echo
|
83 |
-
class="bwg-album-extended bwg-border-box bwg-thumbnails bwg-container bwg-container-<?php echo
|
84 |
<?php
|
85 |
if ( !$params['album_gallery_rows']['page_nav']['total'] ) {
|
86 |
echo WDWLibrary::message(__('No results found.', 'photo-gallery'), 'wd_error');
|
@@ -105,7 +105,7 @@ class BWGViewAlbum_extended_preview extends BWGViewSite {
|
|
105 |
?>
|
106 |
<div class="bwg-extended-item">
|
107 |
<div class="bwg-extended-item0">
|
108 |
-
<a class="bwg-a bwg-album bwg_album_<?php echo
|
109 |
<?php echo ( ($enable_seo || $enable_dynamic_url ) ? "href='" . esc_url($href) . "'" : ""); ?>
|
110 |
style="font-size: 0;"
|
111 |
data-bwg="<?php echo esc_attr($bwg); ?>"
|
@@ -113,8 +113,8 @@ class BWGViewAlbum_extended_preview extends BWGViewSite {
|
|
113 |
data-alb_gal_id="<?php echo (($params['album_gallery_id'] != 0) ? esc_attr($row->alb_gal_id) : esc_attr($row->id)); ?>"
|
114 |
data-def_type="<?php echo esc_attr($row->def_type); ?>"
|
115 |
data-title="<?php echo htmlspecialchars(addslashes($row->name)); ?>">
|
116 |
-
<div class="bwg-item0 bwg_album_thumb_<?php echo
|
117 |
-
<div class="bwg-item1 bwg_album_thumb_spun1_<?php echo
|
118 |
<div class="bwg-item2">
|
119 |
<img class="skip-lazy <?php if( $lazyload ) { ?> bwg_lazyload <?php } ?>"
|
120 |
data-width="<?php echo esc_attr($image_thumb_width); ?>"
|
@@ -132,14 +132,14 @@ class BWGViewAlbum_extended_preview extends BWGViewSite {
|
|
132 |
<?php
|
133 |
if ( $row->name ) {
|
134 |
?>
|
135 |
-
<a class="bwg-album bwg_album_<?php echo
|
136 |
<?php echo ( ($enable_seo || $enable_dynamic_url) ? "href='" . esc_url($href) . "'" : "" ); ?>
|
137 |
data-bwg="<?php echo esc_attr($bwg); ?>"
|
138 |
data-container_id="<?php echo esc_attr($params['container_id']); ?>"
|
139 |
data-alb_gal_id="<?php echo(($params['album_gallery_id'] != 0) ? esc_attr($row->alb_gal_id) : esc_attr($row->id)); ?>"
|
140 |
data-def_type="<?php echo esc_attr($row->def_type); ?>"
|
141 |
data-title="<?php echo htmlspecialchars(addslashes($row->name)); ?>">
|
142 |
-
<span class="bwg_title_spun_<?php echo
|
143 |
</a>
|
144 |
<?php
|
145 |
}
|
@@ -149,9 +149,9 @@ class BWGViewAlbum_extended_preview extends BWGViewSite {
|
|
149 |
$description_short = $description_array[0];
|
150 |
$description_full = $description_array[1];
|
151 |
?>
|
152 |
-
<span class="bwg_description_spun1_<?php echo
|
153 |
-
<span class="bwg_description_spun2_<?php echo
|
154 |
-
<span class="bwg_description_short_<?php echo
|
155 |
<?php echo WDWLibrary::strip_tags(stripslashes($description_short)); ?>
|
156 |
</span>
|
157 |
<span class="bwg_description_full">
|
@@ -160,7 +160,7 @@ class BWGViewAlbum_extended_preview extends BWGViewSite {
|
|
160 |
</span>
|
161 |
<span data-more-msg="<?php _e('More', 'photo-gallery'); ?>"
|
162 |
data-hide-msg="<?php _e('Hide', 'photo-gallery'); ?>"
|
163 |
-
class="bwg_description_more bwg_description_more_<?php echo
|
164 |
<?php _e('More', 'photo-gallery'); ?>
|
165 |
</span>
|
166 |
</span>
|
@@ -168,8 +168,8 @@ class BWGViewAlbum_extended_preview extends BWGViewSite {
|
|
168 |
}
|
169 |
else {
|
170 |
?>
|
171 |
-
<span class="bwg_description_spun1_<?php echo
|
172 |
-
<span class="bwg_description_short_<?php echo
|
173 |
<?php echo WDWLibrary::strip_tags(stripslashes($row->description)); ?>
|
174 |
</span>
|
175 |
</span>
|
@@ -192,7 +192,7 @@ class BWGViewAlbum_extended_preview extends BWGViewSite {
|
|
192 |
}
|
193 |
}
|
194 |
?>
|
195 |
-
<input type="hidden" id="bwg_album_breadcrumb_<?php echo
|
196 |
<?php
|
197 |
|
198 |
$content = ob_get_clean();
|
@@ -215,122 +215,122 @@ class BWGViewAlbum_extended_preview extends BWGViewSite {
|
|
215 |
$rgb_album_extended_thumbs_bg_color = WDWLibrary::spider_hex2rgb($theme_row->album_extended_thumbs_bg_color);
|
216 |
$rgb_album_extended_div_bg_color = WDWLibrary::spider_hex2rgb($theme_row->album_extended_div_bg_color);
|
217 |
?>
|
218 |
-
#bwg_container1_<?php echo $bwg
|
219 |
-moz-box-sizing: border-box;
|
220 |
box-sizing: border-box;
|
221 |
-
background-color: rgba(<?php echo $rgb_album_extended_thumbs_bg_color['red']; ?>, <?php echo $rgb_album_extended_thumbs_bg_color['green']; ?>, <?php echo $rgb_album_extended_thumbs_bg_color['blue']; ?>, <?php echo number_format($theme_row->album_extended_thumb_bg_transparent / 100, 2, ".", ""); ?>);
|
222 |
-
text-align: <?php echo $theme_row->album_extended_thumb_align; ?>;
|
223 |
}
|
224 |
-
#bwg_container1_<?php echo $bwg
|
225 |
display: flex;
|
226 |
flex-direction: row;
|
227 |
flex-wrap: wrap;
|
228 |
-
min-height: <?php echo $params['extended_album_height']; ?>px;
|
229 |
-
border-bottom: <?php echo $theme_row->album_extended_div_separator_width; ?>px <?php echo $theme_row->album_extended_div_separator_style; ?> #<?php echo $theme_row->album_extended_div_separator_color; ?>;
|
230 |
-
background-color: rgba(<?php echo $rgb_album_extended_div_bg_color['red']; ?>, <?php echo $rgb_album_extended_div_bg_color['green']; ?>, <?php echo $rgb_album_extended_div_bg_color['blue']; ?>, <?php echo number_format($theme_row->album_extended_div_bg_transparent / 100, 2, ".", ""); ?>);
|
231 |
-
border-radius: <?php echo $theme_row->album_extended_div_border_radius; ?>;
|
232 |
-
margin: <?php echo $theme_row->album_extended_div_margin; ?>;
|
233 |
overflow: hidden;
|
234 |
}
|
235 |
-
#bwg_container1_<?php echo $bwg
|
236 |
-
margin: <?php echo $theme_row->album_extended_div_padding; ?>px <?php echo $theme_row->album_extended_div_padding / 2; ?>px;
|
237 |
-
background-color: #<?php echo $theme_row->album_extended_thumb_div_bg_color; ?>;
|
238 |
-
border-radius: <?php echo $theme_row->album_extended_thumb_div_border_radius; ?>;
|
239 |
-
border: <?php echo $theme_row->album_extended_thumb_div_border_width; ?>px <?php echo $theme_row->album_extended_thumb_div_border_style; ?> #<?php echo $theme_row->album_extended_thumb_div_border_color; ?>;
|
240 |
display: flex;
|
241 |
flex-direction: column;
|
242 |
-
padding: <?php echo $theme_row->album_extended_thumb_div_padding; ?>;
|
243 |
justify-content: center;
|
244 |
-
max-width: <?php echo $params['extended_album_thumb_width']; ?>px;
|
245 |
}
|
246 |
-
#bwg_container1_<?php echo $bwg
|
247 |
-
margin: <?php echo $theme_row->album_extended_div_padding; ?>px <?php echo $theme_row->album_extended_div_padding / 2; ?>px;
|
248 |
-
background-color: #<?php echo $theme_row->album_extended_text_div_bg_color; ?>;
|
249 |
-
border-radius: <?php echo $theme_row->album_extended_text_div_border_radius; ?>;
|
250 |
-
border: <?php echo $theme_row->album_extended_text_div_border_width; ?>px <?php echo $theme_row->album_extended_text_div_border_style; ?> #<?php echo $theme_row->album_extended_text_div_border_color; ?>;
|
251 |
display: flex;
|
252 |
flex-direction: column;
|
253 |
border-collapse: collapse;
|
254 |
-
padding: <?php echo $theme_row->album_extended_text_div_padding; ?>;
|
255 |
justify-content: <?php if ( $theme_row->album_extended_title_desc_alignment == 'top' ) { echo 'start'; } elseif ( $theme_row->album_extended_title_desc_alignment == 'bottom' ) { echo 'flex-end'; } else { echo 'center'; } ; ?>;
|
256 |
}
|
257 |
-
#bwg_container1_<?php echo $bwg
|
258 |
-
border: <?php echo $theme_row->album_extended_title_span_border_width; ?>px <?php echo $theme_row->album_extended_title_span_border_style; ?> #<?php echo $theme_row->album_extended_title_span_border_color; ?>;
|
259 |
-
color: #<?php echo $theme_row->album_extended_title_font_color; ?>;
|
260 |
display: block;
|
261 |
-
font-family: <?php echo $theme_row->album_extended_title_font_style; ?>;
|
262 |
-
font-size: <?php echo $theme_row->album_extended_title_font_size; ?>px;
|
263 |
-
font-weight: <?php echo $theme_row->album_extended_title_font_weight; ?>;
|
264 |
height: inherit;
|
265 |
-
margin-bottom: <?php echo $theme_row->album_extended_title_margin_bottom; ?>px;
|
266 |
-
padding: <?php echo $theme_row->album_extended_title_padding; ?>;
|
267 |
text-align: left;
|
268 |
vertical-align: middle;
|
269 |
width: 100%;
|
270 |
}
|
271 |
-
#bwg_container1_<?php echo $bwg
|
272 |
-
color: #<?php echo $theme_row->album_extended_desc_font_color; ?>;
|
273 |
-
font-size: <?php echo $theme_row->album_extended_desc_font_size; ?>px;
|
274 |
-
font-weight: <?php echo $theme_row->album_extended_desc_font_weight; ?>;
|
275 |
-
font-family: <?php echo $theme_row->album_extended_desc_font_style; ?>;
|
276 |
}
|
277 |
-
#bwg_container1_<?php echo $bwg
|
278 |
-
border: <?php echo $theme_row->album_extended_desc_span_border_width; ?>px <?php echo $theme_row->album_extended_desc_span_border_style; ?> #<?php echo $theme_row->album_extended_desc_span_border_color; ?>;
|
279 |
display: inline-block;
|
280 |
-
color: #<?php echo $theme_row->album_extended_desc_font_color; ?>;
|
281 |
-
font-size: <?php echo $theme_row->album_extended_desc_font_size; ?>px;
|
282 |
-
font-weight: <?php echo $theme_row->album_extended_desc_font_weight; ?>;
|
283 |
-
font-family: <?php echo $theme_row->album_extended_desc_font_style; ?>;
|
284 |
height: inherit;
|
285 |
-
padding: <?php echo $theme_row->album_extended_desc_padding; ?>;
|
286 |
vertical-align: middle;
|
287 |
width: 100%;
|
288 |
word-wrap: break-word;
|
289 |
word-break: break-word;
|
290 |
}
|
291 |
-
#bwg_container1_<?php echo $bwg
|
292 |
margin: 0;
|
293 |
}
|
294 |
-
#bwg_container1_<?php echo $bwg
|
295 |
float: left;
|
296 |
}
|
297 |
-
#bwg_container1_<?php echo $bwg
|
298 |
display: inline;
|
299 |
}
|
300 |
-
#bwg_container1_<?php echo $bwg
|
301 |
display: none;
|
302 |
}
|
303 |
-
#bwg_container1_<?php echo $bwg
|
304 |
clear: both;
|
305 |
-
color: #<?php echo $theme_row->album_extended_desc_more_color; ?>;
|
306 |
cursor: pointer;
|
307 |
float: right;
|
308 |
-
font-size: <?php echo $theme_row->album_extended_desc_more_size; ?>px;
|
309 |
font-weight: normal;
|
310 |
}
|
311 |
-
#bwg_container1_<?php echo $bwg
|
312 |
-
padding: <?php echo $theme_row->album_extended_thumb_padding; ?>px;
|
313 |
-
background-color: #<?php echo $theme_row->album_extended_thumb_bg_color; ?>;
|
314 |
-
border-radius: <?php echo $theme_row->album_extended_thumb_border_radius; ?>;
|
315 |
-
border: <?php echo $theme_row->album_extended_thumb_border_width; ?>px <?php echo $theme_row->album_extended_thumb_border_style; ?> #<?php echo $theme_row->album_extended_thumb_border_color; ?>;
|
316 |
-
box-shadow: <?php echo $theme_row->album_extended_thumb_box_shadow; ?>;
|
317 |
-
margin: <?php echo $theme_row->album_extended_thumb_margin; ?>px;
|
318 |
opacity: <?php echo number_format($theme_row->album_extended_thumb_transparent / 100, 2, ".", ""); ?>;
|
319 |
}
|
320 |
-
#bwg_container1_<?php echo $bwg
|
321 |
-
padding-top: <?php echo $params['extended_album_thumb_height'] / $params['extended_album_thumb_width'] * 100; ?>%;
|
322 |
}
|
323 |
<?php if ( $theme_row->album_extended_thumb_hover_effect == 'zoom' ) { ?>
|
324 |
@media only screen and (min-width: 480px) {
|
325 |
-
#bwg_container1_<?php echo $bwg
|
326 |
<?php echo ($theme_row->album_extended_thumb_transition) ? '-webkit-transition: all .3s; transition: all .3s;' : ''; ?>
|
327 |
}
|
328 |
-
#bwg_container1_<?php echo $bwg
|
329 |
-
-ms-transform: scale(<?php echo $theme_row->album_extended_thumb_hover_effect_value; ?>);
|
330 |
-
-webkit-transform: scale(<?php echo $theme_row->album_extended_thumb_hover_effect_value; ?>);
|
331 |
-
transform: scale(<?php echo $theme_row->album_extended_thumb_hover_effect_value; ?>);
|
332 |
}
|
333 |
-
#bwg_container1_<?php echo $bwg
|
334 |
-ms-transform: none;
|
335 |
-webkit-transform: none;
|
336 |
transform: none;
|
@@ -341,15 +341,15 @@ class BWGViewAlbum_extended_preview extends BWGViewSite {
|
|
341 |
else {
|
342 |
?>
|
343 |
@media only screen and (min-width: 480px) {
|
344 |
-
#bwg_container1_<?php echo $bwg
|
345 |
<?php echo ($theme_row->album_extended_thumb_transition) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
|
346 |
}
|
347 |
-
#bwg_container1_<?php echo $bwg
|
348 |
-
-ms-transform: <?php echo $theme_row->album_extended_thumb_hover_effect; ?>(<?php echo $theme_row->album_extended_thumb_hover_effect_value; ?>);
|
349 |
-
-webkit-transform: <?php echo $theme_row->album_extended_thumb_hover_effect; ?>(<?php echo $theme_row->album_extended_thumb_hover_effect_value; ?>);
|
350 |
-
transform: <?php echo $theme_row->album_extended_thumb_hover_effect; ?>(<?php echo $theme_row->album_extended_thumb_hover_effect_value; ?>);
|
351 |
}
|
352 |
-
#bwg_container1_<?php echo $bwg
|
353 |
-ms-transform: none;
|
354 |
-webkit-transform: none;
|
355 |
transform: none;
|
62 |
wp_add_inline_style('bwg_frontend', $inline_style);
|
63 |
}
|
64 |
else {
|
65 |
+
echo '<style id="bwg-style-' . esc_attr($bwg) . '">' . strip_tags($inline_style) . '</style>';
|
66 |
}
|
67 |
}
|
68 |
}
|
69 |
else {
|
70 |
+
echo '<style id="bwg-style-' . esc_attr($bwg) . '">' . strip_tags($inline_style) . '</style>';
|
71 |
}
|
72 |
|
73 |
ob_start();
|
79 |
data-global-spacing="<?php echo esc_attr($theme_row->album_extended_div_margin); ?>"
|
80 |
data-spacing="<?php echo esc_attr($theme_row->album_extended_div_padding); ?>"
|
81 |
data-bwg="<?php echo esc_attr($bwg); ?>"
|
82 |
+
id="<?php echo esc_attr($params['container_id']); ?>"
|
83 |
+
class="bwg-album-extended bwg-border-box bwg-thumbnails bwg-container bwg-container-<?php echo esc_attr($bwg); ?> bwg-album-thumbnails bwg_album_extended_thumbnails_<?php echo esc_attr($bwg); ?>">
|
84 |
<?php
|
85 |
if ( !$params['album_gallery_rows']['page_nav']['total'] ) {
|
86 |
echo WDWLibrary::message(__('No results found.', 'photo-gallery'), 'wd_error');
|
105 |
?>
|
106 |
<div class="bwg-extended-item">
|
107 |
<div class="bwg-extended-item0">
|
108 |
+
<a class="bwg-a bwg-album bwg_album_<?php echo esc_attr($bwg); ?>"
|
109 |
<?php echo ( ($enable_seo || $enable_dynamic_url ) ? "href='" . esc_url($href) . "'" : ""); ?>
|
110 |
style="font-size: 0;"
|
111 |
data-bwg="<?php echo esc_attr($bwg); ?>"
|
113 |
data-alb_gal_id="<?php echo (($params['album_gallery_id'] != 0) ? esc_attr($row->alb_gal_id) : esc_attr($row->id)); ?>"
|
114 |
data-def_type="<?php echo esc_attr($row->def_type); ?>"
|
115 |
data-title="<?php echo htmlspecialchars(addslashes($row->name)); ?>">
|
116 |
+
<div class="bwg-item0 bwg_album_thumb_<?php echo esc_attr($bwg); ?> <?php echo ($lazyload) ? 'lazy_loader' : ''; ?>">
|
117 |
+
<div class="bwg-item1 bwg_album_thumb_spun1_<?php echo esc_attr($bwg); ?>">
|
118 |
<div class="bwg-item2">
|
119 |
<img class="skip-lazy <?php if( $lazyload ) { ?> bwg_lazyload <?php } ?>"
|
120 |
data-width="<?php echo esc_attr($image_thumb_width); ?>"
|
132 |
<?php
|
133 |
if ( $row->name ) {
|
134 |
?>
|
135 |
+
<a class="bwg-album bwg_album_<?php echo esc_attr($bwg); ?>"
|
136 |
<?php echo ( ($enable_seo || $enable_dynamic_url) ? "href='" . esc_url($href) . "'" : "" ); ?>
|
137 |
data-bwg="<?php echo esc_attr($bwg); ?>"
|
138 |
data-container_id="<?php echo esc_attr($params['container_id']); ?>"
|
139 |
data-alb_gal_id="<?php echo(($params['album_gallery_id'] != 0) ? esc_attr($row->alb_gal_id) : esc_attr($row->id)); ?>"
|
140 |
data-def_type="<?php echo esc_attr($row->def_type); ?>"
|
141 |
data-title="<?php echo htmlspecialchars(addslashes($row->name)); ?>">
|
142 |
+
<span class="bwg_title_spun_<?php echo esc_attr($bwg); ?>"><?php echo esc_html($row->name); ?></span>
|
143 |
</a>
|
144 |
<?php
|
145 |
}
|
149 |
$description_short = $description_array[0];
|
150 |
$description_full = $description_array[1];
|
151 |
?>
|
152 |
+
<span class="bwg_description_spun1_<?php echo esc_attr($bwg); ?>">
|
153 |
+
<span class="bwg_description_spun2_<?php echo esc_attr($bwg); ?>">
|
154 |
+
<span class="bwg_description_short_<?php echo esc_attr($bwg); ?>">
|
155 |
<?php echo WDWLibrary::strip_tags(stripslashes($description_short)); ?>
|
156 |
</span>
|
157 |
<span class="bwg_description_full">
|
160 |
</span>
|
161 |
<span data-more-msg="<?php _e('More', 'photo-gallery'); ?>"
|
162 |
data-hide-msg="<?php _e('Hide', 'photo-gallery'); ?>"
|
163 |
+
class="bwg_description_more bwg_description_more_<?php echo esc_attr($bwg); ?> bwg_more">
|
164 |
<?php _e('More', 'photo-gallery'); ?>
|
165 |
</span>
|
166 |
</span>
|
168 |
}
|
169 |
else {
|
170 |
?>
|
171 |
+
<span class="bwg_description_spun1_<?php echo esc_attr($bwg); ?>">
|
172 |
+
<span class="bwg_description_short_<?php echo esc_attr($bwg); ?>">
|
173 |
<?php echo WDWLibrary::strip_tags(stripslashes($row->description)); ?>
|
174 |
</span>
|
175 |
</span>
|
192 |
}
|
193 |
}
|
194 |
?>
|
195 |
+
<input type="hidden" id="bwg_album_breadcrumb_<?php echo esc_attr($bwg); ?>" name="bwg_album_breadcrumb_<?php echo esc_attr($bwg); ?>" value='<?php echo esc_attr($breadcrumb); ?>' />
|
196 |
<?php
|
197 |
|
198 |
$content = ob_get_clean();
|
215 |
$rgb_album_extended_thumbs_bg_color = WDWLibrary::spider_hex2rgb($theme_row->album_extended_thumbs_bg_color);
|
216 |
$rgb_album_extended_div_bg_color = WDWLibrary::spider_hex2rgb($theme_row->album_extended_div_bg_color);
|
217 |
?>
|
218 |
+
#bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg_album_extended_thumbnails_<?php echo esc_attr($bwg) ?> {
|
219 |
-moz-box-sizing: border-box;
|
220 |
box-sizing: border-box;
|
221 |
+
background-color: rgba(<?php echo esc_html($rgb_album_extended_thumbs_bg_color['red']); ?>, <?php echo esc_html($rgb_album_extended_thumbs_bg_color['green']); ?>, <?php echo esc_html($rgb_album_extended_thumbs_bg_color['blue']); ?>, <?php echo number_format($theme_row->album_extended_thumb_bg_transparent / 100, 2, ".", ""); ?>);
|
222 |
+
text-align: <?php echo esc_html($theme_row->album_extended_thumb_align); ?>;
|
223 |
}
|
224 |
+
#bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-extended .bwg-extended-item {
|
225 |
display: flex;
|
226 |
flex-direction: row;
|
227 |
flex-wrap: wrap;
|
228 |
+
min-height: <?php echo esc_html($params['extended_album_height']); ?>px;
|
229 |
+
border-bottom: <?php echo esc_html($theme_row->album_extended_div_separator_width); ?>px <?php echo esc_html($theme_row->album_extended_div_separator_style); ?> #<?php echo esc_html($theme_row->album_extended_div_separator_color); ?>;
|
230 |
+
background-color: rgba(<?php echo esc_html($rgb_album_extended_div_bg_color['red']); ?>, <?php echo esc_html($rgb_album_extended_div_bg_color['green']); ?>, <?php echo esc_html($rgb_album_extended_div_bg_color['blue']); ?>, <?php echo number_format($theme_row->album_extended_div_bg_transparent / 100, 2, ".", ""); ?>);
|
231 |
+
border-radius: <?php echo esc_html($theme_row->album_extended_div_border_radius); ?>;
|
232 |
+
margin: <?php echo esc_html($theme_row->album_extended_div_margin); ?>;
|
233 |
overflow: hidden;
|
234 |
}
|
235 |
+
#bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-extended .bwg-extended-item0 {
|
236 |
+
margin: <?php echo esc_html($theme_row->album_extended_div_padding); ?>px <?php echo esc_html($theme_row->album_extended_div_padding / 2); ?>px;
|
237 |
+
background-color: #<?php echo esc_html($theme_row->album_extended_thumb_div_bg_color); ?>;
|
238 |
+
border-radius: <?php echo esc_html($theme_row->album_extended_thumb_div_border_radius); ?>;
|
239 |
+
border: <?php echo esc_html($theme_row->album_extended_thumb_div_border_width); ?>px <?php echo esc_html($theme_row->album_extended_thumb_div_border_style); ?> #<?php echo esc_html($theme_row->album_extended_thumb_div_border_color); ?>;
|
240 |
display: flex;
|
241 |
flex-direction: column;
|
242 |
+
padding: <?php echo esc_html($theme_row->album_extended_thumb_div_padding); ?>;
|
243 |
justify-content: center;
|
244 |
+
max-width: <?php echo esc_html($params['extended_album_thumb_width']); ?>px;
|
245 |
}
|
246 |
+
#bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-extended .bwg-extended-item1 {
|
247 |
+
margin: <?php echo esc_html($theme_row->album_extended_div_padding); ?>px <?php echo esc_html($theme_row->album_extended_div_padding / 2); ?>px;
|
248 |
+
background-color: #<?php echo esc_html($theme_row->album_extended_text_div_bg_color); ?>;
|
249 |
+
border-radius: <?php echo esc_html($theme_row->album_extended_text_div_border_radius); ?>;
|
250 |
+
border: <?php echo esc_html($theme_row->album_extended_text_div_border_width); ?>px <?php echo esc_html($theme_row->album_extended_text_div_border_style); ?> #<?php echo esc_html($theme_row->album_extended_text_div_border_color); ?>;
|
251 |
display: flex;
|
252 |
flex-direction: column;
|
253 |
border-collapse: collapse;
|
254 |
+
padding: <?php echo esc_html($theme_row->album_extended_text_div_padding); ?>;
|
255 |
justify-content: <?php if ( $theme_row->album_extended_title_desc_alignment == 'top' ) { echo 'start'; } elseif ( $theme_row->album_extended_title_desc_alignment == 'bottom' ) { echo 'flex-end'; } else { echo 'center'; } ; ?>;
|
256 |
}
|
257 |
+
#bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-extended .bwg_title_spun_<?php echo esc_attr($bwg) ?> {
|
258 |
+
border: <?php echo esc_html($theme_row->album_extended_title_span_border_width); ?>px <?php echo esc_html($theme_row->album_extended_title_span_border_style); ?> #<?php echo esc_html($theme_row->album_extended_title_span_border_color); ?>;
|
259 |
+
color: #<?php echo esc_html($theme_row->album_extended_title_font_color); ?>;
|
260 |
display: block;
|
261 |
+
font-family: <?php echo esc_html($theme_row->album_extended_title_font_style); ?>;
|
262 |
+
font-size: <?php echo esc_html($theme_row->album_extended_title_font_size); ?>px;
|
263 |
+
font-weight: <?php echo esc_html($theme_row->album_extended_title_font_weight); ?>;
|
264 |
height: inherit;
|
265 |
+
margin-bottom: <?php echo esc_html($theme_row->album_extended_title_margin_bottom); ?>px;
|
266 |
+
padding: <?php echo esc_html($theme_row->album_extended_title_padding); ?>;
|
267 |
text-align: left;
|
268 |
vertical-align: middle;
|
269 |
width: 100%;
|
270 |
}
|
271 |
+
#bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-extended .bwg_description_spun1_<?php echo esc_attr($bwg) ?> a {
|
272 |
+
color: #<?php echo esc_html($theme_row->album_extended_desc_font_color); ?>;
|
273 |
+
font-size: <?php echo esc_html($theme_row->album_extended_desc_font_size); ?>px;
|
274 |
+
font-weight: <?php echo esc_html($theme_row->album_extended_desc_font_weight); ?>;
|
275 |
+
font-family: <?php echo esc_html($theme_row->album_extended_desc_font_style); ?>;
|
276 |
}
|
277 |
+
#bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-extended .bwg_description_spun1_<?php echo esc_attr($bwg) ?> .bwg_description_short_<?php echo esc_attr($bwg) ?> p {
|
278 |
+
border: <?php echo esc_html($theme_row->album_extended_desc_span_border_width); ?>px <?php echo esc_html($theme_row->album_extended_desc_span_border_style); ?> #<?php echo esc_html($theme_row->album_extended_desc_span_border_color); ?>;
|
279 |
display: inline-block;
|
280 |
+
color: #<?php echo esc_html($theme_row->album_extended_desc_font_color); ?>;
|
281 |
+
font-size: <?php echo esc_html($theme_row->album_extended_desc_font_size); ?>px;
|
282 |
+
font-weight: <?php echo esc_html($theme_row->album_extended_desc_font_weight); ?>;
|
283 |
+
font-family: <?php echo esc_html($theme_row->album_extended_desc_font_style); ?>;
|
284 |
height: inherit;
|
285 |
+
padding: <?php echo esc_html($theme_row->album_extended_desc_padding); ?>;
|
286 |
vertical-align: middle;
|
287 |
width: 100%;
|
288 |
word-wrap: break-word;
|
289 |
word-break: break-word;
|
290 |
}
|
291 |
+
#bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-extended .bwg_description_spun1_<?php echo esc_attr($bwg) ?> * {
|
292 |
margin: 0;
|
293 |
}
|
294 |
+
#bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-extended .bwg_description_spun2_<?php echo esc_attr($bwg) ?> {
|
295 |
float: left;
|
296 |
}
|
297 |
+
#bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-extended .bwg_description_short_<?php echo esc_attr($bwg) ?> {
|
298 |
display: inline;
|
299 |
}
|
300 |
+
#bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-extended .bwg_description_full {
|
301 |
display: none;
|
302 |
}
|
303 |
+
#bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-extended .bwg_description_more_<?php echo esc_attr($bwg) ?> {
|
304 |
clear: both;
|
305 |
+
color: #<?php echo esc_html($theme_row->album_extended_desc_more_color); ?>;
|
306 |
cursor: pointer;
|
307 |
float: right;
|
308 |
+
font-size: <?php echo esc_html($theme_row->album_extended_desc_more_size); ?>px;
|
309 |
font-weight: normal;
|
310 |
}
|
311 |
+
#bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-extended .bwg-item0 {
|
312 |
+
padding: <?php echo esc_html($theme_row->album_extended_thumb_padding); ?>px;
|
313 |
+
background-color: #<?php echo esc_html($theme_row->album_extended_thumb_bg_color); ?>;
|
314 |
+
border-radius: <?php echo esc_html($theme_row->album_extended_thumb_border_radius); ?>;
|
315 |
+
border: <?php echo esc_html($theme_row->album_extended_thumb_border_width); ?>px <?php echo esc_html($theme_row->album_extended_thumb_border_style); ?> #<?php echo esc_html($theme_row->album_extended_thumb_border_color); ?>;
|
316 |
+
box-shadow: <?php echo esc_html($theme_row->album_extended_thumb_box_shadow); ?>;
|
317 |
+
margin: <?php echo esc_html($theme_row->album_extended_thumb_margin); ?>px;
|
318 |
opacity: <?php echo number_format($theme_row->album_extended_thumb_transparent / 100, 2, ".", ""); ?>;
|
319 |
}
|
320 |
+
#bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-extended .bwg-item1 {
|
321 |
+
padding-top: <?php echo number_format($params['extended_album_thumb_height'] / $params['extended_album_thumb_width'] * 100); ?>%;
|
322 |
}
|
323 |
<?php if ( $theme_row->album_extended_thumb_hover_effect == 'zoom' ) { ?>
|
324 |
@media only screen and (min-width: 480px) {
|
325 |
+
#bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-extended .bwg-item1 img {
|
326 |
<?php echo ($theme_row->album_extended_thumb_transition) ? '-webkit-transition: all .3s; transition: all .3s;' : ''; ?>
|
327 |
}
|
328 |
+
#bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-extended .bwg-item1 img:hover {
|
329 |
+
-ms-transform: scale(<?php echo esc_html($theme_row->album_extended_thumb_hover_effect_value); ?>);
|
330 |
+
-webkit-transform: scale(<?php echo esc_html($theme_row->album_extended_thumb_hover_effect_value); ?>);
|
331 |
+
transform: scale(<?php echo esc_html($theme_row->album_extended_thumb_hover_effect_value); ?>);
|
332 |
}
|
333 |
+
#bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-extended .bwg-item0:hover {
|
334 |
-ms-transform: none;
|
335 |
-webkit-transform: none;
|
336 |
transform: none;
|
341 |
else {
|
342 |
?>
|
343 |
@media only screen and (min-width: 480px) {
|
344 |
+
#bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-extended .bwg-item0 {
|
345 |
<?php echo ($theme_row->album_extended_thumb_transition) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
|
346 |
}
|
347 |
+
#bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-extended .bwg-item0:hover {
|
348 |
+
-ms-transform: <?php echo esc_html($theme_row->album_extended_thumb_hover_effect); ?>(<?php echo esc_html($theme_row->album_extended_thumb_hover_effect_value); ?>);
|
349 |
+
-webkit-transform: <?php echo esc_html($theme_row->album_extended_thumb_hover_effect); ?>(<?php echo esc_html($theme_row->album_extended_thumb_hover_effect_value); ?>);
|
350 |
+
transform: <?php echo esc_html($theme_row->album_extended_thumb_hover_effect); ?>(<?php echo esc_html($theme_row->album_extended_thumb_hover_effect_value); ?>);
|
351 |
}
|
352 |
+
#bwg_container1_<?php echo esc_attr($bwg) ?> #bwg_container2_<?php echo esc_attr($bwg) ?> .bwg-container-<?php echo esc_attr($bwg) ?>.bwg-album-extended .bwg-item1 img:hover {
|
353 |
-ms-transform: none;
|
354 |
-webkit-transform: none;
|
355 |
transform: none;
|
frontend/views/BWGViewGalleryBox.php
CHANGED
@@ -12,7 +12,7 @@ class BWGViewGalleryBox {
|
|
12 |
require_once(BWG()->plugin_dir . '/framework/WDWLibraryEmbed.php');
|
13 |
|
14 |
$bwg = WDWLibrary::get('current_view', 0, 'intval');
|
15 |
-
$current_url = WDWLibrary::get('current_url', '', '
|
16 |
$theme_id = WDWLibrary::get('theme_id', 0, 'intval');
|
17 |
$current_image_id = WDWLibrary::esc_script('get', 'image_id', 0, 'int');
|
18 |
$gallery_id = WDWLibrary::esc_script('get', 'gallery_id', 0, 'int');
|
@@ -40,7 +40,6 @@ class BWGViewGalleryBox {
|
|
40 |
$params['popup_enable_tumblr'] = FALSE;
|
41 |
$params['popup_enable_email'] = FALSE;
|
42 |
$params['popup_enable_captcha'] = FALSE;
|
43 |
-
$params['gdpr_compliance'] = FALSE;
|
44 |
$params['comment_moderation'] = FALSE;
|
45 |
$params['enable_addthis'] = FALSE;
|
46 |
$params['addthis_profile_id'] = FALSE;
|
@@ -83,6 +82,7 @@ class BWGViewGalleryBox {
|
|
83 |
'gallery_id' => $gallery_id,
|
84 |
'tag' => $tag,
|
85 |
'theme_id' => $theme_id,
|
|
|
86 |
);
|
87 |
if ($params['watermark_type'] != 'none') {
|
88 |
$params_array['watermark_link'] = $params['watermark_link'];
|
@@ -167,106 +167,106 @@ class BWGViewGalleryBox {
|
|
167 |
?>
|
168 |
<style>
|
169 |
.bwg_inst_play {
|
170 |
-
background-image: url('<?php echo BWG()->plugin_url . '/images/play.png'; ?>');
|
171 |
}
|
172 |
.bwg_inst_play:hover {
|
173 |
-
background: url(<?php echo BWG()->plugin_url . '/images/play_hover.png'; ?>) no-repeat;
|
174 |
}
|
175 |
.spider_popup_wrap {
|
176 |
-
background-color: rgba(<?php echo $lightbox_bg_color['red']; ?>, <?php echo $lightbox_bg_color['green']; ?>, <?php echo $lightbox_bg_color['blue']; ?>, <?php echo number_format($lightbox_bg_transparent/ 100, 2, ".", ""); ?>);
|
177 |
}
|
178 |
.bwg_popup_image {
|
179 |
-
max-width: <?php echo $params['popup_width'] - ($filmstrip_direction == 'vertical' ? $image_filmstrip_width : 0); ?>px;
|
180 |
-
max-height: <?php echo $params['popup_height'] - ($filmstrip_direction == 'horizontal' ? $image_filmstrip_height : 0); ?>px;
|
181 |
}
|
182 |
.bwg_ctrl_btn {
|
183 |
-
color: #<?php echo $theme_row->lightbox_ctrl_btn_color; ?>;
|
184 |
-
font-size: <?php echo $theme_row->lightbox_ctrl_btn_height; ?>px;
|
185 |
-
margin: <?php echo $theme_row->lightbox_ctrl_btn_margin_top; ?>px <?php echo $theme_row->lightbox_ctrl_btn_margin_left; ?>px;
|
186 |
opacity: <?php echo number_format($theme_row->lightbox_ctrl_btn_transparent / 100, 2, ".", ""); ?>;
|
187 |
}
|
188 |
.bwg_toggle_btn {
|
189 |
-
color: #<?php echo $theme_row->lightbox_ctrl_btn_color; ?>;
|
190 |
-
font-size: <?php echo $theme_row->lightbox_toggle_btn_height; ?>px;
|
191 |
opacity: <?php echo number_format($theme_row->lightbox_ctrl_btn_transparent / 100, 2, ".", ""); ?>;
|
192 |
}
|
193 |
.bwg_ctrl_btn_container {
|
194 |
<?php if( $params['popup_enable_ctrl_btn'] ) { ?>
|
195 |
min-height: 40px;
|
196 |
<?php } ?>
|
197 |
-
background-color: rgba(<?php echo $rgb_lightbox_ctrl_cont_bg_color['red']; ?>, <?php echo $rgb_lightbox_ctrl_cont_bg_color['green']; ?>, <?php echo $rgb_lightbox_ctrl_cont_bg_color['blue']; ?>, <?php echo number_format($theme_row->lightbox_ctrl_cont_transparent / 100, 2, ".", ""); ?>);
|
198 |
-
/*background: none repeat scroll 0 0 #<?php echo $theme_row->lightbox_ctrl_cont_bg_color; ?>;*/
|
199 |
<?php if ($theme_row->lightbox_ctrl_btn_pos == 'top') { ?>
|
200 |
-
border-bottom-left-radius: <?php echo $theme_row->lightbox_ctrl_cont_border_radius; ?>px;
|
201 |
-
border-bottom-right-radius: <?php echo $theme_row->lightbox_ctrl_cont_border_radius; ?>px;
|
202 |
<?php
|
203 |
} else {
|
204 |
?>
|
205 |
bottom: 0;
|
206 |
-
border-top-left-radius: <?php echo $theme_row->lightbox_ctrl_cont_border_radius; ?>px;
|
207 |
-
border-top-right-radius: <?php echo $theme_row->lightbox_ctrl_cont_border_radius; ?>px;
|
208 |
<?php
|
209 |
}?>
|
210 |
/*height: <?php /*echo $theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top;*/ ?>px;*/
|
211 |
-
text-align: <?php echo $theme_row->lightbox_ctrl_btn_align; ?>;
|
212 |
}
|
213 |
.bwg_toggle_container {
|
214 |
-
background: none repeat scroll 0 0 #<?php echo $theme_row->lightbox_ctrl_cont_bg_color; ?>;
|
215 |
<?php
|
216 |
if ($theme_row->lightbox_ctrl_btn_pos == 'top') {
|
217 |
?>
|
218 |
-
border-bottom-left-radius: <?php echo $theme_row->lightbox_ctrl_cont_border_radius; ?>px;
|
219 |
-
border-bottom-right-radius: <?php echo $theme_row->lightbox_ctrl_cont_border_radius; ?>px;
|
220 |
-
/*top: <?php echo $theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top; ?>px;*/
|
221 |
<?php
|
222 |
}
|
223 |
else {
|
224 |
?>
|
225 |
-
border-top-left-radius: <?php echo $theme_row->lightbox_ctrl_cont_border_radius; ?>px;
|
226 |
-
border-top-right-radius: <?php echo $theme_row->lightbox_ctrl_cont_border_radius; ?>px;
|
227 |
-
/*bottom: <?php echo $theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top; ?>px;*/
|
228 |
<?php
|
229 |
}?>
|
230 |
-
margin-left: -<?php echo $theme_row->lightbox_toggle_btn_width / 2; ?>px;
|
231 |
opacity: <?php echo number_format($theme_row->lightbox_ctrl_cont_transparent / 100, 2, ".", ""); ?>;
|
232 |
-
width: <?php echo $theme_row->lightbox_toggle_btn_width; ?>px;
|
233 |
}
|
234 |
.bwg_close_btn {
|
235 |
opacity: <?php echo number_format($theme_row->lightbox_close_btn_transparent / 100, 2, ".", ""); ?>;
|
236 |
}
|
237 |
.spider_popup_close {
|
238 |
-
background-color: #<?php echo $theme_row->lightbox_close_btn_bg_color; ?>;
|
239 |
-
border-radius: <?php echo $theme_row->lightbox_close_btn_border_radius; ?>;
|
240 |
-
border: <?php echo $theme_row->lightbox_close_btn_border_width; ?>px <?php echo $theme_row->lightbox_close_btn_border_style; ?> #<?php echo $theme_row->lightbox_close_btn_border_color; ?>;
|
241 |
-
box-shadow: <?php echo $theme_row->lightbox_close_btn_box_shadow; ?>;
|
242 |
-
color: #<?php echo $theme_row->lightbox_close_btn_color; ?>;
|
243 |
-
height: <?php echo $theme_row->lightbox_close_btn_height; ?>px;
|
244 |
-
font-size: <?php echo $theme_row->lightbox_close_btn_size; ?>px;
|
245 |
-
right: <?php echo $theme_row->lightbox_close_btn_right; ?>px;
|
246 |
-
top: <?php echo $theme_row->lightbox_close_btn_top; ?>px;
|
247 |
-
width: <?php echo $theme_row->lightbox_close_btn_width; ?>px;
|
248 |
}
|
249 |
.spider_popup_close_fullscreen {
|
250 |
-
color: #<?php echo $theme_row->lightbox_close_btn_full_color; ?>;
|
251 |
-
font-size: <?php echo $theme_row->lightbox_close_btn_size; ?>px;
|
252 |
}
|
253 |
#spider_popup_left-ico,
|
254 |
#spider_popup_right-ico {
|
255 |
-
background-color: #<?php echo $theme_row->lightbox_rl_btn_bg_color; ?>;
|
256 |
-
border-radius: <?php echo $theme_row->lightbox_rl_btn_border_radius; ?>;
|
257 |
-
border: <?php echo $theme_row->lightbox_rl_btn_border_width; ?>px <?php echo $theme_row->lightbox_rl_btn_border_style; ?> #<?php echo $theme_row->lightbox_rl_btn_border_color; ?>;
|
258 |
-
box-shadow: <?php echo $theme_row->lightbox_rl_btn_box_shadow; ?>;
|
259 |
-
color: #<?php echo $theme_row->lightbox_rl_btn_color; ?>;
|
260 |
-
height: <?php echo $theme_row->lightbox_rl_btn_height; ?>px;
|
261 |
-
font-size: <?php echo $theme_row->lightbox_rl_btn_size; ?>px;
|
262 |
-
width: <?php echo $theme_row->lightbox_rl_btn_width; ?>px;
|
263 |
opacity: <?php echo number_format($theme_row->lightbox_rl_btn_transparent / 100, 2, ".", ""); ?>;
|
264 |
}
|
265 |
#spider_popup_left-ico {
|
266 |
-
padding-right: <?php echo ($theme_row->lightbox_rl_btn_width - $theme_row->lightbox_rl_btn_size) / 3; ?>px;
|
267 |
}
|
268 |
#spider_popup_right-ico {
|
269 |
-
padding-left: <?php echo ($theme_row->lightbox_rl_btn_width - $theme_row->lightbox_rl_btn_size) / 3; ?>px;
|
270 |
}
|
271 |
<?php
|
272 |
if($params['autohide_lightbox_navigation']){?>
|
@@ -292,71 +292,71 @@ class BWGViewGalleryBox {
|
|
292 |
.spider_popup_close_fullscreen:hover,
|
293 |
#spider_popup_left:hover #spider_popup_left-ico,
|
294 |
#spider_popup_right:hover #spider_popup_right-ico {
|
295 |
-
color: #<?php echo $theme_row->lightbox_close_rl_btn_hover_color; ?>;
|
296 |
cursor: pointer;
|
297 |
}
|
298 |
.bwg_comment_container, .bwg_ecommerce_container {
|
299 |
-
background-color: #<?php echo $theme_row->lightbox_comment_bg_color; ?>;
|
300 |
-
color: #<?php echo $theme_row->lightbox_comment_font_color; ?>;
|
301 |
-
font-size: <?php echo $theme_row->lightbox_comment_font_size; ?>px;
|
302 |
-
font-family: <?php echo $theme_row->lightbox_comment_font_style; ?>;
|
303 |
-
<?php echo $theme_row->lightbox_comment_pos; ?>: -<?php echo $theme_row->lightbox_comment_width; ?>px;
|
304 |
-
width: <?php echo $theme_row->lightbox_comment_width; ?>px;
|
305 |
}
|
306 |
.bwg_ecommerce_body p, .bwg_ecommerce_body span, .bwg_ecommerce_body div {
|
307 |
-
color:#<?php echo $theme_row->lightbox_comment_font_color; ?>!important;
|
308 |
}
|
309 |
.pge_tabs li{
|
310 |
float:left;
|
311 |
-
border-top: 1px solid #<?php echo $theme_row->lightbox_bg_color; ?>!important;
|
312 |
-
border-left: 1px solid #<?php echo $theme_row->lightbox_bg_color; ?>!important;
|
313 |
-
border-right: 1px solid #<?php echo $theme_row->lightbox_bg_color; ?>!important;
|
314 |
margin-right: 1px !important;
|
315 |
-
border-radius: <?php echo $theme_row->lightbox_comment_button_border_radius; ?> <?php echo $theme_row->lightbox_comment_button_border_radius; ?> 0 0;
|
316 |
position:relative;
|
317 |
}
|
318 |
.pge_tabs li a{
|
319 |
-
color:#<?php echo $theme_row->lightbox_comment_bg_color; ?>!important;
|
320 |
}
|
321 |
|
322 |
.pge_tabs li.pge_active a, .pge_tabs li a:hover {
|
323 |
-
border-radius: <?php echo $theme_row->lightbox_comment_button_border_radius; ?>;
|
324 |
|
325 |
}
|
326 |
.pge_tabs li.pge_active a>span, .pge_tabs li a>span:hover {
|
327 |
-
color:#<?php echo $theme_row->lightbox_comment_button_bg_color; ?> !important;
|
328 |
-
border-bottom: 1px solid #<?php echo $theme_row->lightbox_comment_button_bg_color; ?>;
|
329 |
padding-bottom: 2px;
|
330 |
}
|
331 |
.pge_tabs_container{
|
332 |
-
border:1px solid #<?php echo $theme_row->lightbox_comment_font_color; ?>;
|
333 |
-
border-radius: 0 0 <?php echo $theme_row->lightbox_comment_button_border_radius; ?> <?php echo $theme_row->lightbox_comment_button_border_radius; ?>;
|
334 |
}
|
335 |
|
336 |
.pge_pricelist {
|
337 |
padding:0 !important;
|
338 |
-
color:#<?php echo $theme_row->lightbox_comment_font_color; ?>!important;
|
339 |
}
|
340 |
|
341 |
.pge_add_to_cart a{
|
342 |
-
border: 1px solid #<?php echo $theme_row->lightbox_comment_font_color; ?>!important;
|
343 |
-
color:#<?php echo $theme_row->lightbox_comment_font_color; ?>!important;
|
344 |
-
border-radius: <?php echo $theme_row->lightbox_comment_button_border_radius; ?>;
|
345 |
}
|
346 |
.bwg_comments , .bwg_ecommerce_panel{
|
347 |
-
font-size: <?php echo $theme_row->lightbox_comment_font_size; ?>px;
|
348 |
-
font-family: <?php echo $theme_row->lightbox_comment_font_style; ?>;
|
349 |
}
|
350 |
.bwg_comments input[type="submit"], .bwg_ecommerce_panel input[type="button"] {
|
351 |
-
background: none repeat scroll 0 0 #<?php echo $theme_row->lightbox_comment_button_bg_color; ?>;
|
352 |
-
border: <?php echo $theme_row->lightbox_comment_button_border_width; ?>px <?php echo $theme_row->lightbox_comment_button_border_style; ?> #<?php echo $theme_row->lightbox_comment_button_border_color; ?>;
|
353 |
-
border-radius: <?php echo $theme_row->lightbox_comment_button_border_radius; ?>;
|
354 |
-
color: #<?php echo $theme_row->lightbox_comment_bg_color; ?>;
|
355 |
-
padding: <?php echo $theme_row->lightbox_comment_button_padding; ?>;
|
356 |
}
|
357 |
.bwg_comments .bwg-submit-disabled:hover {
|
358 |
-
padding: <?php echo $theme_row->lightbox_comment_button_padding; ?> !important;
|
359 |
-
border-radius: <?php echo $theme_row->lightbox_comment_button_border_radius; ?> !important;
|
360 |
}
|
361 |
.bwg_comments input[type="text"],
|
362 |
.bwg_comments textarea,
|
@@ -364,114 +364,114 @@ class BWGViewGalleryBox {
|
|
364 |
.bwg_ecommerce_panel input[type="number"],
|
365 |
.bwg_ecommerce_panel textarea , .bwg_ecommerce_panel select {
|
366 |
background: none repeat scroll 0 0 #<?php echo $theme_row->lightbox_comment_input_bg_color; ?>;
|
367 |
-
border: <?php echo $theme_row->lightbox_comment_input_border_width; ?>px <?php echo $theme_row->lightbox_comment_input_border_style; ?> #<?php echo $theme_row->lightbox_comment_input_border_color; ?>;
|
368 |
-
border-radius: <?php echo $theme_row->lightbox_comment_input_border_radius; ?>;
|
369 |
-
color: #<?php echo $theme_row->lightbox_comment_font_color; ?>;
|
370 |
font-size: 12px;
|
371 |
-
padding: <?php echo $theme_row->lightbox_comment_input_padding; ?>;
|
372 |
width: 100%;
|
373 |
}
|
374 |
.bwg_comment_header_p {
|
375 |
-
border-top: <?php echo $theme_row->lightbox_comment_separator_width; ?>px <?php echo $theme_row->lightbox_comment_separator_style; ?> #<?php echo $theme_row->lightbox_comment_separator_color; ?>;
|
376 |
}
|
377 |
.bwg_comment_header {
|
378 |
-
color: #<?php echo $theme_row->lightbox_comment_font_color; ?>;
|
379 |
-
font-size: <?php echo $theme_row->lightbox_comment_author_font_size; ?>px;
|
380 |
}
|
381 |
.bwg_comment_date {
|
382 |
-
color: #<?php echo $theme_row->lightbox_comment_font_color; ?>;
|
383 |
float: right;
|
384 |
-
font-size: <?php echo $theme_row->lightbox_comment_date_font_size; ?>px;
|
385 |
}
|
386 |
.bwg_comment_body {
|
387 |
-
color: #<?php echo $theme_row->lightbox_comment_font_color; ?>;
|
388 |
-
font-size: <?php echo $theme_row->lightbox_comment_body_font_size; ?>px;
|
389 |
}
|
390 |
.bwg_comments_close , .bwg_ecommerce_close{
|
391 |
text-align: <?php echo (($theme_row->lightbox_comment_pos == 'left') ? 'right' : 'left'); ?>!important;
|
392 |
}
|
393 |
#bwg_rate_form .bwg_rate:hover {
|
394 |
-
color: #<?php echo $theme_row->lightbox_rate_color; ?>;
|
395 |
}
|
396 |
.bwg_facebook,
|
397 |
.bwg_twitter,
|
398 |
.bwg_pinterest,
|
399 |
.bwg_tumblr {
|
400 |
-
color: #<?php echo $theme_row->lightbox_comment_share_button_color; ?>;
|
401 |
}
|
402 |
.bwg_image_container {
|
403 |
-
<?php echo $theme_row->lightbox_filmstrip_pos; ?>: <?php echo ($filmstrip_direction == 'horizontal' ? $image_filmstrip_height : $image_filmstrip_width); ?>px;
|
404 |
}
|
405 |
.bwg_filmstrip_container {
|
406 |
display: <?php echo ($filmstrip_direction == 'horizontal'? 'table' : 'block'); ?>;
|
407 |
-
height: <?php echo ($filmstrip_direction == 'horizontal'? $image_filmstrip_height : $params['popup_height']); ?>px;
|
408 |
-
width: <?php echo ($filmstrip_direction == 'horizontal' ? $params['popup_width'] : $image_filmstrip_width); ?>px;
|
409 |
-
<?php echo $theme_row->lightbox_filmstrip_pos; ?>: 0;
|
410 |
}
|
411 |
.bwg_filmstrip {
|
412 |
-
<?php echo $left_or_top; ?>: <?php echo $theme_row->lightbox_filmstrip_rl_btn_size; ?>px;
|
413 |
-
<?php echo $width_or_height; ?>: <?php echo ($filmstrip_direction == 'horizontal' ? $params['popup_width'] - 40 : $params['popup_height'] - 40); ?>px;
|
414 |
}
|
415 |
.bwg_filmstrip_thumbnails {
|
416 |
-
height: <?php echo ($filmstrip_direction == 'horizontal' ? $image_filmstrip_height : ($image_filmstrip_height + $filmstrip_thumb_right_left_space) * count($image_rows)); ?>px;
|
417 |
-
<?php echo $left_or_top; ?>: 0px;
|
418 |
-
width: <?php echo ($filmstrip_direction == 'horizontal' ? ($image_filmstrip_width + $filmstrip_thumb_right_left_space) * count($image_rows) : $image_filmstrip_width); ?>px;
|
419 |
}
|
420 |
.bwg_filmstrip_thumbnail {
|
421 |
-
height: <?php echo $image_filmstrip_height; ?>px;
|
422 |
-
width: <?php echo $image_filmstrip_width; ?>px;
|
423 |
-
padding: <?php echo $theme_row->lightbox_filmstrip_thumb_margin; ?>;
|
424 |
}
|
425 |
.bwg_filmstrip_thumbnail .bwg_filmstrip_thumbnail_img_wrap {
|
426 |
-
width:<?php echo $image_filmstrip_width - $filmstrip_thumb_right_left_space ?>px;
|
427 |
-
height:<?php echo $image_filmstrip_height - $filmstrip_thumb_top_bottom_space;?>px;
|
428 |
-
border: <?php echo $theme_row->lightbox_filmstrip_thumb_border_width; ?>px <?php echo $theme_row->lightbox_filmstrip_thumb_border_style; ?> #<?php echo $theme_row->lightbox_filmstrip_thumb_border_color; ?>;
|
429 |
-
border-radius: <?php echo $theme_row->lightbox_filmstrip_thumb_border_radius; ?>;
|
430 |
}
|
431 |
.bwg_thumb_active .bwg_filmstrip_thumbnail_img_wrap {
|
432 |
-
border: <?php echo $theme_row->lightbox_filmstrip_thumb_active_border_width; ?>px solid #<?php echo $theme_row->lightbox_filmstrip_thumb_active_border_color; ?>;
|
433 |
}
|
434 |
.bwg_thumb_deactive {
|
435 |
opacity: <?php echo number_format($theme_row->lightbox_filmstrip_thumb_deactive_transparent / 100, 2, ".", ""); ?>;
|
436 |
}
|
437 |
.bwg_filmstrip_left {
|
438 |
-
background-color: #<?php echo $theme_row->lightbox_filmstrip_rl_bg_color; ?>;
|
439 |
display: <?php echo ($filmstrip_direction == 'horizontal' ? 'table-cell' : 'block') ?>;
|
440 |
z-index: 99999;
|
441 |
-
<?php echo $width_or_height; ?>: <?php echo $theme_row->lightbox_filmstrip_rl_btn_size; ?>px;
|
442 |
-
<?php echo $left_or_top; ?>: 0;
|
443 |
<?php echo ($filmstrip_direction == 'horizontal' ? 'position: relative;' : 'position: absolute;') ?>
|
444 |
<?php echo ($filmstrip_direction == 'horizontal' ? '' : 'width: 100%;') ?>
|
445 |
}
|
446 |
.bwg_filmstrip_right {
|
447 |
-
background-color: #<?php echo $theme_row->lightbox_filmstrip_rl_bg_color; ?>;
|
448 |
<?php echo($filmstrip_direction == 'horizontal' ? 'right' : 'bottom') ?>: 0;
|
449 |
z-index: 99999;
|
450 |
-
<?php echo $width_or_height; ?>: <?php echo $theme_row->lightbox_filmstrip_rl_btn_size; ?>px;
|
451 |
display: <?php echo ($filmstrip_direction == 'horizontal' ? 'table-cell' : 'block') ?>;
|
452 |
<?php echo ($filmstrip_direction == 'horizontal' ? 'position: relative;' : 'position: absolute;') ?>
|
453 |
<?php echo ($filmstrip_direction == 'horizontal' ? '' : 'width: 100%;') ?>
|
454 |
}
|
455 |
.bwg_filmstrip_left i,
|
456 |
.bwg_filmstrip_right i {
|
457 |
-
color: #<?php echo $theme_row->lightbox_filmstrip_rl_btn_color; ?>;
|
458 |
-
font-size: <?php echo $theme_row->lightbox_filmstrip_rl_btn_size; ?>px;
|
459 |
}
|
460 |
.bwg_watermark_spun {
|
461 |
-
text-align: <?php echo $params['watermark_position'][1]; ?>;
|
462 |
-
vertical-align: <?php echo $params['watermark_position'][0]; ?>;
|
463 |
/*z-index: 10140;*/
|
464 |
}
|
465 |
.bwg_watermark_image {
|
466 |
-
max-height: <?php echo $params['watermark_height']; ?>px;
|
467 |
-
max-width: <?php echo $params['watermark_width']; ?>px;
|
468 |
opacity: <?php echo number_format($params['watermark_opacity'] / 100, 2, ".", ""); ?>;
|
469 |
}
|
470 |
.bwg_watermark_text,
|
471 |
.bwg_watermark_text:hover {
|
472 |
-
font-size: <?php echo $params['watermark_font_size']; ?>px;
|
473 |
-
font-family: <?php echo $params['watermark_font']; ?>;
|
474 |
-
color: #<?php echo $params['watermark_color']; ?> !important;
|
475 |
opacity: <?php echo number_format($params['watermark_opacity'] / 100, 2, ".", ""); ?>;
|
476 |
}
|
477 |
.bwg_image_info_container1 {
|
@@ -481,87 +481,87 @@ class BWGViewGalleryBox {
|
|
481 |
display: <?php echo $params['popup_hit_counter'] ? 'table-cell' : 'none'; ?>;;
|
482 |
}
|
483 |
.bwg_image_info_spun {
|
484 |
-
text-align: <?php echo $theme_row->lightbox_info_align; ?>;
|
485 |
-
vertical-align: <?php echo $theme_row->lightbox_info_pos; ?>;
|
486 |
}
|
487 |
.bwg_image_hit_spun {
|
488 |
-
text-align: <?php echo $theme_row->lightbox_hit_align; ?>;
|
489 |
-
vertical-align: <?php echo $theme_row->lightbox_hit_pos; ?>;
|
490 |
}
|
491 |
.bwg_image_hit {
|
492 |
-
background: rgba(<?php echo $rgb_bwg_image_hit_bg_color['red']; ?>, <?php echo $rgb_bwg_image_hit_bg_color['green']; ?>, <?php echo $rgb_bwg_image_hit_bg_color['blue']; ?>, <?php echo number_format($theme_row->lightbox_hit_bg_transparent / 100, 2, ".", ""); ?>);
|
493 |
-
border: <?php echo $theme_row->lightbox_hit_border_width; ?>px <?php echo $theme_row->lightbox_hit_border_style; ?> #<?php echo $theme_row->lightbox_hit_border_color; ?>;
|
494 |
-
border-radius: <?php echo $theme_row->lightbox_info_border_radius; ?>;
|
495 |
-
<?php echo ($theme_row->lightbox_ctrl_btn_pos == 'bottom' && $theme_row->lightbox_hit_pos == 'bottom') ? 'bottom: ' . ($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top) . 'px;' : '' ?>
|
496 |
-
margin: <?php echo $theme_row->lightbox_hit_margin; ?>;
|
497 |
-
padding: <?php echo $theme_row->lightbox_hit_padding; ?>;
|
498 |
-
<?php echo ($theme_row->lightbox_ctrl_btn_pos == 'top' && $theme_row->lightbox_hit_pos == 'top') ? 'top: ' . ($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top) . 'px;' : '' ?>
|
499 |
}
|
500 |
.bwg_image_hits,
|
501 |
.bwg_image_hits * {
|
502 |
-
color: #<?php echo $theme_row->lightbox_hit_color; ?> !important;
|
503 |
-
font-family: <?php echo $theme_row->lightbox_hit_font_style; ?>;
|
504 |
-
font-size: <?php echo $theme_row->lightbox_hit_font_size; ?>px;
|
505 |
-
font-weight: <?php echo $theme_row->lightbox_hit_font_weight; ?>;
|
506 |
}
|
507 |
.bwg_image_info {
|
508 |
-
background: rgba(<?php echo $rgb_bwg_image_info_bg_color['red']; ?>, <?php echo $rgb_bwg_image_info_bg_color['green']; ?>, <?php echo $rgb_bwg_image_info_bg_color['blue']; ?>, <?php echo number_format($theme_row->lightbox_info_bg_transparent / 100, 2, ".", ""); ?>);
|
509 |
-
border: <?php echo $theme_row->lightbox_info_border_width; ?>px <?php echo $theme_row->lightbox_info_border_style; ?> #<?php echo $theme_row->lightbox_info_border_color; ?>;
|
510 |
-
border-radius: <?php echo $theme_row->lightbox_info_border_radius; ?>;
|
511 |
-
<?php echo ((!$params['popup_enable_filmstrip'] || $theme_row->lightbox_filmstrip_pos != 'bottom') && $theme_row->lightbox_ctrl_btn_pos == 'bottom' && $theme_row->lightbox_info_pos == 'bottom') ? 'bottom: ' . ($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top) . 'px;' : '' ?>
|
512 |
<?php if ($params['popup_info_full_width']) { ?>
|
513 |
width: 100%;
|
514 |
<?php } else { ?>
|
515 |
width: 33%;
|
516 |
-
margin: <?php echo $theme_row->lightbox_info_margin; ?>;
|
517 |
<?php } ?>
|
518 |
-
padding: <?php echo $theme_row->lightbox_info_padding; ?>;
|
519 |
-
<?php echo ((!$params['popup_enable_filmstrip'] || $theme_row->lightbox_filmstrip_pos != 'top') && $theme_row->lightbox_ctrl_btn_pos == 'top' && $theme_row->lightbox_info_pos == 'top') ? 'top: ' . ($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top) . 'px;' : '' ?>
|
520 |
word-break : break-word;
|
521 |
}
|
522 |
.bwg_image_title,
|
523 |
.bwg_image_title * {
|
524 |
-
color: #<?php echo $theme_row->lightbox_title_color; ?> !important;
|
525 |
-
font-family: <?php echo $theme_row->lightbox_title_font_style; ?>;
|
526 |
-
font-size: <?php echo $theme_row->lightbox_title_font_size; ?>px;
|
527 |
-
font-weight: <?php echo $theme_row->lightbox_title_font_weight; ?>;
|
528 |
word-wrap: break-word;
|
529 |
}
|
530 |
.bwg_image_description,
|
531 |
.bwg_image_description * {
|
532 |
-
color: #<?php echo $theme_row->lightbox_description_color; ?> !important;
|
533 |
-
font-family: <?php echo $theme_row->lightbox_description_font_style; ?>;
|
534 |
-
font-size: <?php echo $theme_row->lightbox_description_font_size; ?>px;
|
535 |
-
font-weight: <?php echo $theme_row->lightbox_description_font_weight; ?>;
|
536 |
word-break: break-word;
|
537 |
}
|
538 |
.bwg_image_rate_spun {
|
539 |
-
text-align: <?php echo $theme_row->lightbox_rate_align; ?>;
|
540 |
-
vertical-align: <?php echo $theme_row->lightbox_rate_pos; ?>;
|
541 |
}
|
542 |
.bwg_image_rate {
|
543 |
-
<?php echo ($theme_row->lightbox_ctrl_btn_pos == 'bottom' && $theme_row->lightbox_rate_pos == 'bottom') ? 'bottom: ' . ($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top) . 'px;' : '' ?>
|
544 |
-
padding: <?php echo $theme_row->lightbox_rate_padding; ?>;
|
545 |
-
<?php echo ($theme_row->lightbox_ctrl_btn_pos == 'top' && $theme_row->lightbox_rate_pos == 'top') ? 'top: ' . ($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top) . 'px;' : '' ?>
|
546 |
}
|
547 |
#bwg_rate_form .bwg_hint,
|
548 |
-
#bwg_rate_form .bwg-icon-<?php echo $theme_row->lightbox_rate_icon; ?>,
|
549 |
#bwg_rate_form .bwg-icon-<?php echo $theme_row->lightbox_rate_icon; ?>-half-o,
|
550 |
#bwg_rate_form .bwg-icon-<?php echo $theme_row->lightbox_rate_icon; ?>-o,
|
551 |
#bwg_rate_form .bwg-icon-minus-square-o {
|
552 |
-
color: #<?php echo $theme_row->lightbox_rate_color; ?>;
|
553 |
-
font-size: <?php echo $theme_row->lightbox_rate_size; ?>px;
|
554 |
}
|
555 |
.bwg_rate_hover {
|
556 |
-
color: #<?php echo $theme_row->lightbox_rate_hover_color; ?> !important;
|
557 |
}
|
558 |
.bwg_rated {
|
559 |
-
color: #<?php echo $theme_row->lightbox_rate_color; ?>;
|
560 |
display: none;
|
561 |
-
font-size: <?php echo $theme_row->lightbox_rate_size - 2; ?>px;
|
562 |
}
|
563 |
#bwg_comment_form label {
|
564 |
-
color: #<?php echo $theme_row->lightbox_comment_font_color; ?>;
|
565 |
}
|
566 |
@media (max-width: 768px) {
|
567 |
.bwg_image_info {
|
@@ -708,7 +708,7 @@ class BWGViewGalleryBox {
|
|
708 |
$thumb_left = ($_image_filmstrip_width - $image_thumb_width) / 2;
|
709 |
$thumb_top = ($_image_filmstrip_height - $image_thumb_height) / 2;
|
710 |
?>
|
711 |
-
<div id="bwg_filmstrip_thumbnail_<?php echo
|
712 |
<div class="bwg_filmstrip_thumbnail_img_wrap">
|
713 |
<img <?php if( $is_embed || $resolution_thumb ) { ?>
|
714 |
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 } ?>
|
@@ -1007,8 +1007,8 @@ class BWGViewGalleryBox {
|
|
1007 |
</div>
|
1008 |
</div>
|
1009 |
</div>
|
1010 |
-
<a id="spider_popup_left" <?php echo ($params['enable_loop'] == 0 && $current_key == 0) ? 'style="display: none;"' : ''; ?>><span id="spider_popup_left-ico"><span><i class="bwg_prev_btn <?php echo
|
1011 |
-
<a id="spider_popup_right" <?php echo ($params['enable_loop'] == 0 && $current_key == count($image_rows) - 1) ? 'style="display: none;"' : ''; ?>><span id="spider_popup_right-ico"><span><i class="bwg_next_btn <?php echo
|
1012 |
</div>
|
1013 |
</div>
|
1014 |
<?php if ( $params['popup_enable_comment'] ) {
|
@@ -1024,7 +1024,7 @@ class BWGViewGalleryBox {
|
|
1024 |
</div>
|
1025 |
<div class="bwg_comments bwg_popup_sidebar">
|
1026 |
<div title="<?php echo __('Hide Comments', 'photo-gallery'); ?>" class="bwg_comments_close bwg_popup_sidebar_close">
|
1027 |
-
<i class="bwg-icon-arrow-<?php echo
|
1028 |
</div>
|
1029 |
<form id="bwg_comment_form" method="post" action="<?php echo esc_url($popup_url); ?>">
|
1030 |
<p><label for="bwg_name"><?php echo __('Name', 'photo-gallery'); ?> </label></p>
|
@@ -1405,7 +1405,7 @@ class BWGViewGalleryBox {
|
|
1405 |
public function html_comments_block( $row = array() ) {
|
1406 |
ob_start();
|
1407 |
?>
|
1408 |
-
<div id="bwg_comment_block_<?php echo
|
1409 |
<p class="bwg_comment_header_p">
|
1410 |
<span class="bwg_comment_header"><?php echo esc_html($row->name); ?></span>
|
1411 |
<?php if ( current_user_can('manage_options') ) { ?>
|
12 |
require_once(BWG()->plugin_dir . '/framework/WDWLibraryEmbed.php');
|
13 |
|
14 |
$bwg = WDWLibrary::get('current_view', 0, 'intval');
|
15 |
+
$current_url = WDWLibrary::get('current_url', '', 'sanitize_url');
|
16 |
$theme_id = WDWLibrary::get('theme_id', 0, 'intval');
|
17 |
$current_image_id = WDWLibrary::esc_script('get', 'image_id', 0, 'int');
|
18 |
$gallery_id = WDWLibrary::esc_script('get', 'gallery_id', 0, 'int');
|
40 |
$params['popup_enable_tumblr'] = FALSE;
|
41 |
$params['popup_enable_email'] = FALSE;
|
42 |
$params['popup_enable_captcha'] = FALSE;
|
|
|
43 |
$params['comment_moderation'] = FALSE;
|
44 |
$params['enable_addthis'] = FALSE;
|
45 |
$params['addthis_profile_id'] = FALSE;
|
82 |
'gallery_id' => $gallery_id,
|
83 |
'tag' => $tag,
|
84 |
'theme_id' => $theme_id,
|
85 |
+
'shortcode_id' => $shortcode_id,
|
86 |
);
|
87 |
if ($params['watermark_type'] != 'none') {
|
88 |
$params_array['watermark_link'] = $params['watermark_link'];
|
167 |
?>
|
168 |
<style>
|
169 |
.bwg_inst_play {
|
170 |
+
background-image: url('<?php echo esc_url(BWG()->plugin_url) . '/images/play.png'; ?>');
|
171 |
}
|
172 |
.bwg_inst_play:hover {
|
173 |
+
background: url(<?php echo esc_url(BWG()->plugin_url) . '/images/play_hover.png'; ?>) no-repeat;
|
174 |
}
|
175 |
.spider_popup_wrap {
|
176 |
+
background-color: rgba(<?php echo esc_html($lightbox_bg_color['red']); ?>, <?php echo esc_html($lightbox_bg_color['green']); ?>, <?php echo esc_html($lightbox_bg_color['blue']); ?>, <?php echo number_format($lightbox_bg_transparent/ 100, 2, ".", ""); ?>);
|
177 |
}
|
178 |
.bwg_popup_image {
|
179 |
+
max-width: <?php echo esc_html($params['popup_width'] - ($filmstrip_direction == 'vertical' ? $image_filmstrip_width : 0)); ?>px;
|
180 |
+
max-height: <?php echo esc_html($params['popup_height'] - ($filmstrip_direction == 'horizontal' ? $image_filmstrip_height : 0)); ?>px;
|
181 |
}
|
182 |
.bwg_ctrl_btn {
|
183 |
+
color: #<?php echo esc_html($theme_row->lightbox_ctrl_btn_color); ?>;
|
184 |
+
font-size: <?php echo esc_html($theme_row->lightbox_ctrl_btn_height); ?>px;
|
185 |
+
margin: <?php echo esc_html($theme_row->lightbox_ctrl_btn_margin_top); ?>px <?php echo esc_html($theme_row->lightbox_ctrl_btn_margin_left); ?>px;
|
186 |
opacity: <?php echo number_format($theme_row->lightbox_ctrl_btn_transparent / 100, 2, ".", ""); ?>;
|
187 |
}
|
188 |
.bwg_toggle_btn {
|
189 |
+
color: #<?php echo esc_html($theme_row->lightbox_ctrl_btn_color); ?>;
|
190 |
+
font-size: <?php echo esc_html($theme_row->lightbox_toggle_btn_height); ?>px;
|
191 |
opacity: <?php echo number_format($theme_row->lightbox_ctrl_btn_transparent / 100, 2, ".", ""); ?>;
|
192 |
}
|
193 |
.bwg_ctrl_btn_container {
|
194 |
<?php if( $params['popup_enable_ctrl_btn'] ) { ?>
|
195 |
min-height: 40px;
|
196 |
<?php } ?>
|
197 |
+
background-color: rgba(<?php echo esc_html($rgb_lightbox_ctrl_cont_bg_color['red']); ?>, <?php echo esc_html($rgb_lightbox_ctrl_cont_bg_color['green']); ?>, <?php echo esc_html($rgb_lightbox_ctrl_cont_bg_color['blue']); ?>, <?php echo number_format($theme_row->lightbox_ctrl_cont_transparent / 100, 2, ".", ""); ?>);
|
198 |
+
/*background: none repeat scroll 0 0 #<?php echo esc_html($theme_row->lightbox_ctrl_cont_bg_color); ?>;*/
|
199 |
<?php if ($theme_row->lightbox_ctrl_btn_pos == 'top') { ?>
|
200 |
+
border-bottom-left-radius: <?php echo esc_html($theme_row->lightbox_ctrl_cont_border_radius); ?>px;
|
201 |
+
border-bottom-right-radius: <?php echo esc_html($theme_row->lightbox_ctrl_cont_border_radius); ?>px;
|
202 |
<?php
|
203 |
} else {
|
204 |
?>
|
205 |
bottom: 0;
|
206 |
+
border-top-left-radius: <?php echo esc_html($theme_row->lightbox_ctrl_cont_border_radius); ?>px;
|
207 |
+
border-top-right-radius: <?php echo esc_html($theme_row->lightbox_ctrl_cont_border_radius); ?>px;
|
208 |
<?php
|
209 |
}?>
|
210 |
/*height: <?php /*echo $theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top;*/ ?>px;*/
|
211 |
+
text-align: <?php echo esc_html($theme_row->lightbox_ctrl_btn_align); ?>;
|
212 |
}
|
213 |
.bwg_toggle_container {
|
214 |
+
background: none repeat scroll 0 0 #<?php echo esc_html($theme_row->lightbox_ctrl_cont_bg_color); ?>;
|
215 |
<?php
|
216 |
if ($theme_row->lightbox_ctrl_btn_pos == 'top') {
|
217 |
?>
|
218 |
+
border-bottom-left-radius: <?php echo esc_html($theme_row->lightbox_ctrl_cont_border_radius); ?>px;
|
219 |
+
border-bottom-right-radius: <?php echo esc_html($theme_row->lightbox_ctrl_cont_border_radius); ?>px;
|
220 |
+
/*top: <?php echo esc_html($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top); ?>px;*/
|
221 |
<?php
|
222 |
}
|
223 |
else {
|
224 |
?>
|
225 |
+
border-top-left-radius: <?php echo esc_html($theme_row->lightbox_ctrl_cont_border_radius); ?>px;
|
226 |
+
border-top-right-radius: <?php echo esc_html($theme_row->lightbox_ctrl_cont_border_radius); ?>px;
|
227 |
+
/*bottom: <?php echo esc_html($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top); ?>px;*/
|
228 |
<?php
|
229 |
}?>
|
230 |
+
margin-left: -<?php echo esc_html($theme_row->lightbox_toggle_btn_width) / 2; ?>px;
|
231 |
opacity: <?php echo number_format($theme_row->lightbox_ctrl_cont_transparent / 100, 2, ".", ""); ?>;
|
232 |
+
width: <?php echo esc_html($theme_row->lightbox_toggle_btn_width); ?>px;
|
233 |
}
|
234 |
.bwg_close_btn {
|
235 |
opacity: <?php echo number_format($theme_row->lightbox_close_btn_transparent / 100, 2, ".", ""); ?>;
|
236 |
}
|
237 |
.spider_popup_close {
|
238 |
+
background-color: #<?php echo esc_html($theme_row->lightbox_close_btn_bg_color); ?>;
|
239 |
+
border-radius: <?php echo esc_html($theme_row->lightbox_close_btn_border_radius); ?>;
|
240 |
+
border: <?php echo esc_html($theme_row->lightbox_close_btn_border_width); ?>px <?php echo esc_html($theme_row->lightbox_close_btn_border_style); ?> #<?php echo esc_html($theme_row->lightbox_close_btn_border_color); ?>;
|
241 |
+
box-shadow: <?php echo esc_html($theme_row->lightbox_close_btn_box_shadow); ?>;
|
242 |
+
color: #<?php echo esc_html($theme_row->lightbox_close_btn_color); ?>;
|
243 |
+
height: <?php echo esc_html($theme_row->lightbox_close_btn_height); ?>px;
|
244 |
+
font-size: <?php echo esc_html($theme_row->lightbox_close_btn_size); ?>px;
|
245 |
+
right: <?php echo esc_html($theme_row->lightbox_close_btn_right); ?>px;
|
246 |
+
top: <?php echo esc_html($theme_row->lightbox_close_btn_top); ?>px;
|
247 |
+
width: <?php echo esc_html($theme_row->lightbox_close_btn_width); ?>px;
|
248 |
}
|
249 |
.spider_popup_close_fullscreen {
|
250 |
+
color: #<?php echo esc_html($theme_row->lightbox_close_btn_full_color); ?>;
|
251 |
+
font-size: <?php echo esc_html($theme_row->lightbox_close_btn_size); ?>px;
|
252 |
}
|
253 |
#spider_popup_left-ico,
|
254 |
#spider_popup_right-ico {
|
255 |
+
background-color: #<?php echo esc_html($theme_row->lightbox_rl_btn_bg_color); ?>;
|
256 |
+
border-radius: <?php echo esc_html($theme_row->lightbox_rl_btn_border_radius); ?>;
|
257 |
+
border: <?php echo esc_html($theme_row->lightbox_rl_btn_border_width); ?>px <?php echo esc_html($theme_row->lightbox_rl_btn_border_style); ?> #<?php echo esc_html($theme_row->lightbox_rl_btn_border_color); ?>;
|
258 |
+
box-shadow: <?php echo esc_html($theme_row->lightbox_rl_btn_box_shadow); ?>;
|
259 |
+
color: #<?php echo esc_html($theme_row->lightbox_rl_btn_color); ?>;
|
260 |
+
height: <?php echo esc_html($theme_row->lightbox_rl_btn_height); ?>px;
|
261 |
+
font-size: <?php echo esc_html($theme_row->lightbox_rl_btn_size); ?>px;
|
262 |
+
width: <?php echo esc_html($theme_row->lightbox_rl_btn_width); ?>px;
|
263 |
opacity: <?php echo number_format($theme_row->lightbox_rl_btn_transparent / 100, 2, ".", ""); ?>;
|
264 |
}
|
265 |
#spider_popup_left-ico {
|
266 |
+
padding-right: <?php echo esc_html(($theme_row->lightbox_rl_btn_width - $theme_row->lightbox_rl_btn_size)) / 3; ?>px;
|
267 |
}
|
268 |
#spider_popup_right-ico {
|
269 |
+
padding-left: <?php echo esc_html(($theme_row->lightbox_rl_btn_width - $theme_row->lightbox_rl_btn_size)) / 3; ?>px;
|
270 |
}
|
271 |
<?php
|
272 |
if($params['autohide_lightbox_navigation']){?>
|
292 |
.spider_popup_close_fullscreen:hover,
|
293 |
#spider_popup_left:hover #spider_popup_left-ico,
|
294 |
#spider_popup_right:hover #spider_popup_right-ico {
|
295 |
+
color: #<?php echo esc_html($theme_row->lightbox_close_rl_btn_hover_color); ?>;
|
296 |
cursor: pointer;
|
297 |
}
|
298 |
.bwg_comment_container, .bwg_ecommerce_container {
|
299 |
+
background-color: #<?php echo esc_html($theme_row->lightbox_comment_bg_color); ?>;
|
300 |
+
color: #<?php echo esc_html($theme_row->lightbox_comment_font_color); ?>;
|
301 |
+
font-size: <?php echo esc_html($theme_row->lightbox_comment_font_size); ?>px;
|
302 |
+
font-family: <?php echo esc_html($theme_row->lightbox_comment_font_style); ?>;
|
303 |
+
<?php echo esc_html($theme_row->lightbox_comment_pos); ?>: -<?php echo esc_html($theme_row->lightbox_comment_width); ?>px;
|
304 |
+
width: <?php echo esc_html($theme_row->lightbox_comment_width); ?>px;
|
305 |
}
|
306 |
.bwg_ecommerce_body p, .bwg_ecommerce_body span, .bwg_ecommerce_body div {
|
307 |
+
color:#<?php echo esc_html($theme_row->lightbox_comment_font_color); ?>!important;
|
308 |
}
|
309 |
.pge_tabs li{
|
310 |
float:left;
|
311 |
+
border-top: 1px solid #<?php echo esc_html($theme_row->lightbox_bg_color); ?>!important;
|
312 |
+
border-left: 1px solid #<?php echo esc_html($theme_row->lightbox_bg_color); ?>!important;
|
313 |
+
border-right: 1px solid #<?php echo esc_html($theme_row->lightbox_bg_color); ?>!important;
|
314 |
margin-right: 1px !important;
|
315 |
+
border-radius: <?php echo esc_html($theme_row->lightbox_comment_button_border_radius); ?> <?php echo esc_html($theme_row->lightbox_comment_button_border_radius); ?> 0 0;
|
316 |
position:relative;
|
317 |
}
|
318 |
.pge_tabs li a{
|
319 |
+
color:#<?php echo esc_html($theme_row->lightbox_comment_bg_color); ?>!important;
|
320 |
}
|
321 |
|
322 |
.pge_tabs li.pge_active a, .pge_tabs li a:hover {
|
323 |
+
border-radius: <?php echo esc_html($theme_row->lightbox_comment_button_border_radius); ?>;
|
324 |
|
325 |
}
|
326 |
.pge_tabs li.pge_active a>span, .pge_tabs li a>span:hover {
|
327 |
+
color:#<?php echo esc_html($theme_row->lightbox_comment_button_bg_color); ?> !important;
|
328 |
+
border-bottom: 1px solid #<?php echo esc_html($theme_row->lightbox_comment_button_bg_color); ?>;
|
329 |
padding-bottom: 2px;
|
330 |
}
|
331 |
.pge_tabs_container{
|
332 |
+
border:1px solid #<?php echo esc_html($theme_row->lightbox_comment_font_color); ?>;
|
333 |
+
border-radius: 0 0 <?php echo esc_html($theme_row->lightbox_comment_button_border_radius); ?> <?php echo esc_html($theme_row->lightbox_comment_button_border_radius); ?>;
|
334 |
}
|
335 |
|
336 |
.pge_pricelist {
|
337 |
padding:0 !important;
|
338 |
+
color:#<?php echo esc_html($theme_row->lightbox_comment_font_color); ?>!important;
|
339 |
}
|
340 |
|
341 |
.pge_add_to_cart a{
|
342 |
+
border: 1px solid #<?php echo esc_html($theme_row->lightbox_comment_font_color); ?>!important;
|
343 |
+
color:#<?php echo esc_html($theme_row->lightbox_comment_font_color); ?>!important;
|
344 |
+
border-radius: <?php echo esc_html($theme_row->lightbox_comment_button_border_radius); ?>;
|
345 |
}
|
346 |
.bwg_comments , .bwg_ecommerce_panel{
|
347 |
+
font-size: <?php echo esc_html($theme_row->lightbox_comment_font_size); ?>px;
|
348 |
+
font-family: <?php echo esc_html($theme_row->lightbox_comment_font_style); ?>;
|
349 |
}
|
350 |
.bwg_comments input[type="submit"], .bwg_ecommerce_panel input[type="button"] {
|
351 |
+
background: none repeat scroll 0 0 #<?php echo esc_html($theme_row->lightbox_comment_button_bg_color); ?>;
|
352 |
+
border: <?php echo esc_html($theme_row->lightbox_comment_button_border_width); ?>px <?php echo esc_html($theme_row->lightbox_comment_button_border_style); ?> #<?php echo esc_html($theme_row->lightbox_comment_button_border_color); ?>;
|
353 |
+
border-radius: <?php echo esc_html($theme_row->lightbox_comment_button_border_radius); ?>;
|
354 |
+
color: #<?php echo esc_html($theme_row->lightbox_comment_bg_color); ?>;
|
355 |
+
padding: <?php echo esc_html($theme_row->lightbox_comment_button_padding); ?>;
|
356 |
}
|
357 |
.bwg_comments .bwg-submit-disabled:hover {
|
358 |
+
padding: <?php echo esc_html($theme_row->lightbox_comment_button_padding); ?> !important;
|
359 |
+
border-radius: <?php echo esc_html($theme_row->lightbox_comment_button_border_radius); ?> !important;
|
360 |
}
|
361 |
.bwg_comments input[type="text"],
|
362 |
.bwg_comments textarea,
|
364 |
.bwg_ecommerce_panel input[type="number"],
|
365 |
.bwg_ecommerce_panel textarea , .bwg_ecommerce_panel select {
|
366 |
background: none repeat scroll 0 0 #<?php echo $theme_row->lightbox_comment_input_bg_color; ?>;
|
367 |
+
border: <?php echo esc_html($theme_row->lightbox_comment_input_border_width); ?>px <?php echo esc_html($theme_row->lightbox_comment_input_border_style); ?> #<?php echo esc_html($theme_row->lightbox_comment_input_border_color); ?>;
|
368 |
+
border-radius: <?php echo esc_html($theme_row->lightbox_comment_input_border_radius); ?>;
|
369 |
+
color: #<?php echo esc_html($theme_row->lightbox_comment_font_color); ?>;
|
370 |
font-size: 12px;
|
371 |
+
padding: <?php echo esc_html($theme_row->lightbox_comment_input_padding); ?>;
|
372 |
width: 100%;
|
373 |
}
|
374 |
.bwg_comment_header_p {
|
375 |
+
border-top: <?php echo esc_html($theme_row->lightbox_comment_separator_width); ?>px <?php echo esc_html($theme_row->lightbox_comment_separator_style); ?> #<?php echo esc_html($theme_row->lightbox_comment_separator_color); ?>;
|
376 |
}
|
377 |
.bwg_comment_header {
|
378 |
+
color: #<?php echo esc_html($theme_row->lightbox_comment_font_color); ?>;
|
379 |
+
font-size: <?php echo esc_html($theme_row->lightbox_comment_author_font_size); ?>px;
|
380 |
}
|
381 |
.bwg_comment_date {
|
382 |
+
color: #<?php echo esc_html($theme_row->lightbox_comment_font_color); ?>;
|
383 |
float: right;
|
384 |
+
font-size: <?php echo esc_html($theme_row->lightbox_comment_date_font_size); ?>px;
|
385 |
}
|
386 |
.bwg_comment_body {
|
387 |
+
color: #<?php echo esc_html($theme_row->lightbox_comment_font_color); ?>;
|
388 |
+
font-size: <?php echo esc_html($theme_row->lightbox_comment_body_font_size); ?>px;
|
389 |
}
|
390 |
.bwg_comments_close , .bwg_ecommerce_close{
|
391 |
text-align: <?php echo (($theme_row->lightbox_comment_pos == 'left') ? 'right' : 'left'); ?>!important;
|
392 |
}
|
393 |
#bwg_rate_form .bwg_rate:hover {
|
394 |
+
color: #<?php echo esc_html($theme_row->lightbox_rate_color); ?>;
|
395 |
}
|
396 |
.bwg_facebook,
|
397 |
.bwg_twitter,
|
398 |
.bwg_pinterest,
|
399 |
.bwg_tumblr {
|
400 |
+
color: #<?php echo esc_html($theme_row->lightbox_comment_share_button_color); ?>;
|
401 |
}
|
402 |
.bwg_image_container {
|
403 |
+
<?php echo esc_html($theme_row->lightbox_filmstrip_pos); ?>: <?php echo esc_html(($filmstrip_direction == 'horizontal' ? $image_filmstrip_height : $image_filmstrip_width)); ?>px;
|
404 |
}
|
405 |
.bwg_filmstrip_container {
|
406 |
display: <?php echo ($filmstrip_direction == 'horizontal'? 'table' : 'block'); ?>;
|
407 |
+
height: <?php echo esc_html(($filmstrip_direction == 'horizontal'? $image_filmstrip_height : $params['popup_height'])); ?>px;
|
408 |
+
width: <?php echo esc_html(($filmstrip_direction == 'horizontal' ? $params['popup_width'] : $image_filmstrip_width)); ?>px;
|
409 |
+
<?php echo esc_html($theme_row->lightbox_filmstrip_pos); ?>: 0;
|
410 |
}
|
411 |
.bwg_filmstrip {
|
412 |
+
<?php echo esc_html($left_or_top); ?>: <?php echo esc_html($theme_row->lightbox_filmstrip_rl_btn_size); ?>px;
|
413 |
+
<?php echo esc_html($width_or_height); ?>: <?php echo esc_html(($filmstrip_direction == 'horizontal' ? $params['popup_width'] - 40 : $params['popup_height'] - 40)); ?>px;
|
414 |
}
|
415 |
.bwg_filmstrip_thumbnails {
|
416 |
+
height: <?php echo esc_html(($filmstrip_direction == 'horizontal' ? $image_filmstrip_height : ($image_filmstrip_height + $filmstrip_thumb_right_left_space) * count($image_rows))); ?>px;
|
417 |
+
<?php echo esc_html($left_or_top); ?>: 0px;
|
418 |
+
width: <?php echo esc_html(($filmstrip_direction == 'horizontal' ? ($image_filmstrip_width + $filmstrip_thumb_right_left_space) * count($image_rows) : $image_filmstrip_width)); ?>px;
|
419 |
}
|
420 |
.bwg_filmstrip_thumbnail {
|
421 |
+
height: <?php echo esc_html($image_filmstrip_height); ?>px;
|
422 |
+
width: <?php echo esc_html($image_filmstrip_width); ?>px;
|
423 |
+
padding: <?php echo esc_html($theme_row->lightbox_filmstrip_thumb_margin); ?>;
|
424 |
}
|
425 |
.bwg_filmstrip_thumbnail .bwg_filmstrip_thumbnail_img_wrap {
|
426 |
+
width:<?php echo esc_html($image_filmstrip_width - $filmstrip_thumb_right_left_space) ?>px;
|
427 |
+
height:<?php echo esc_html($image_filmstrip_height - $filmstrip_thumb_top_bottom_space);?>px;
|
428 |
+
border: <?php echo esc_html($theme_row->lightbox_filmstrip_thumb_border_width); ?>px <?php echo esc_html($theme_row->lightbox_filmstrip_thumb_border_style); ?> #<?php echo esc_html($theme_row->lightbox_filmstrip_thumb_border_color); ?>;
|
429 |
+
border-radius: <?php echo esc_html($theme_row->lightbox_filmstrip_thumb_border_radius); ?>;
|
430 |
}
|
431 |
.bwg_thumb_active .bwg_filmstrip_thumbnail_img_wrap {
|
432 |
+
border: <?php echo esc_html($theme_row->lightbox_filmstrip_thumb_active_border_width); ?>px solid #<?php echo esc_html($theme_row->lightbox_filmstrip_thumb_active_border_color); ?>;
|
433 |
}
|
434 |
.bwg_thumb_deactive {
|
435 |
opacity: <?php echo number_format($theme_row->lightbox_filmstrip_thumb_deactive_transparent / 100, 2, ".", ""); ?>;
|
436 |
}
|
437 |
.bwg_filmstrip_left {
|
438 |
+
background-color: #<?php echo esc_html($theme_row->lightbox_filmstrip_rl_bg_color); ?>;
|
439 |
display: <?php echo ($filmstrip_direction == 'horizontal' ? 'table-cell' : 'block') ?>;
|
440 |
z-index: 99999;
|
441 |
+
<?php echo esc_html($width_or_height); ?>: <?php echo esc_html($theme_row->lightbox_filmstrip_rl_btn_size); ?>px;
|
442 |
+
<?php echo esc_html($left_or_top); ?>: 0;
|
443 |
<?php echo ($filmstrip_direction == 'horizontal' ? 'position: relative;' : 'position: absolute;') ?>
|
444 |
<?php echo ($filmstrip_direction == 'horizontal' ? '' : 'width: 100%;') ?>
|
445 |
}
|
446 |
.bwg_filmstrip_right {
|
447 |
+
background-color: #<?php echo esc_html($theme_row->lightbox_filmstrip_rl_bg_color); ?>;
|
448 |
<?php echo($filmstrip_direction == 'horizontal' ? 'right' : 'bottom') ?>: 0;
|
449 |
z-index: 99999;
|
450 |
+
<?php echo esc_html($width_or_height); ?>: <?php echo esc_html($theme_row->lightbox_filmstrip_rl_btn_size); ?>px;
|
451 |
display: <?php echo ($filmstrip_direction == 'horizontal' ? 'table-cell' : 'block') ?>;
|
452 |
<?php echo ($filmstrip_direction == 'horizontal' ? 'position: relative;' : 'position: absolute;') ?>
|
453 |
<?php echo ($filmstrip_direction == 'horizontal' ? '' : 'width: 100%;') ?>
|
454 |
}
|
455 |
.bwg_filmstrip_left i,
|
456 |
.bwg_filmstrip_right i {
|
457 |
+
color: #<?php echo esc_html($theme_row->lightbox_filmstrip_rl_btn_color); ?>;
|
458 |
+
font-size: <?php echo esc_html($theme_row->lightbox_filmstrip_rl_btn_size); ?>px;
|
459 |
}
|
460 |
.bwg_watermark_spun {
|
461 |
+
text-align: <?php echo esc_html($params['watermark_position'][1]); ?>;
|
462 |
+
vertical-align: <?php echo esc_html($params['watermark_position'][0]); ?>;
|
463 |
/*z-index: 10140;*/
|
464 |
}
|
465 |
.bwg_watermark_image {
|
466 |
+
max-height: <?php echo esc_html($params['watermark_height']); ?>px;
|
467 |
+
max-width: <?php echo esc_html($params['watermark_width']); ?>px;
|
468 |
opacity: <?php echo number_format($params['watermark_opacity'] / 100, 2, ".", ""); ?>;
|
469 |
}
|
470 |
.bwg_watermark_text,
|
471 |
.bwg_watermark_text:hover {
|
472 |
+
font-size: <?php echo esc_html($params['watermark_font_size']); ?>px;
|
473 |
+
font-family: <?php echo esc_html($params['watermark_font']); ?>;
|
474 |
+
color: #<?php echo esc_html($params['watermark_color']); ?> !important;
|
475 |
opacity: <?php echo number_format($params['watermark_opacity'] / 100, 2, ".", ""); ?>;
|
476 |
}
|
477 |
.bwg_image_info_container1 {
|
481 |
display: <?php echo $params['popup_hit_counter'] ? 'table-cell' : 'none'; ?>;;
|
482 |
}
|
483 |
.bwg_image_info_spun {
|
484 |
+
text-align: <?php echo esc_html($theme_row->lightbox_info_align); ?>;
|
485 |
+
vertical-align: <?php echo esc_html($theme_row->lightbox_info_pos); ?>;
|
486 |
}
|
487 |
.bwg_image_hit_spun {
|
488 |
+
text-align: <?php echo esc_html($theme_row->lightbox_hit_align); ?>;
|
489 |
+
vertical-align: <?php echo esc_html($theme_row->lightbox_hit_pos); ?>;
|
490 |
}
|
491 |
.bwg_image_hit {
|
492 |
+
background: rgba(<?php echo esc_html($rgb_bwg_image_hit_bg_color['red']); ?>, <?php echo esc_html($rgb_bwg_image_hit_bg_color['green']); ?>, <?php echo esc_html($rgb_bwg_image_hit_bg_color['blue']); ?>, <?php echo number_format($theme_row->lightbox_hit_bg_transparent / 100, 2, ".", ""); ?>);
|
493 |
+
border: <?php echo esc_html($theme_row->lightbox_hit_border_width); ?>px <?php echo esc_html($theme_row->lightbox_hit_border_style); ?> #<?php echo esc_html($theme_row->lightbox_hit_border_color); ?>;
|
494 |
+
border-radius: <?php echo esc_html($theme_row->lightbox_info_border_radius); ?>;
|
495 |
+
<?php echo ($theme_row->lightbox_ctrl_btn_pos == 'bottom' && $theme_row->lightbox_hit_pos == 'bottom') ? 'bottom: ' . esc_html(($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top)) . 'px;' : '' ?>
|
496 |
+
margin: <?php echo esc_html($theme_row->lightbox_hit_margin); ?>;
|
497 |
+
padding: <?php echo esc_html($theme_row->lightbox_hit_padding); ?>;
|
498 |
+
<?php echo ($theme_row->lightbox_ctrl_btn_pos == 'top' && $theme_row->lightbox_hit_pos == 'top') ? 'top: ' . esc_html(($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top)) . 'px;' : '' ?>
|
499 |
}
|
500 |
.bwg_image_hits,
|
501 |
.bwg_image_hits * {
|
502 |
+
color: #<?php echo esc_html($theme_row->lightbox_hit_color); ?> !important;
|
503 |
+
font-family: <?php echo esc_html($theme_row->lightbox_hit_font_style); ?>;
|
504 |
+
font-size: <?php echo esc_html($theme_row->lightbox_hit_font_size); ?>px;
|
505 |
+
font-weight: <?php echo esc_html($theme_row->lightbox_hit_font_weight); ?>;
|
506 |
}
|
507 |
.bwg_image_info {
|
508 |
+
background: rgba(<?php echo esc_html($rgb_bwg_image_info_bg_color['red']); ?>, <?php echo esc_html($rgb_bwg_image_info_bg_color['green']); ?>, <?php echo esc_html($rgb_bwg_image_info_bg_color['blue']); ?>, <?php echo number_format($theme_row->lightbox_info_bg_transparent / 100, 2, ".", ""); ?>);
|
509 |
+
border: <?php echo esc_html($theme_row->lightbox_info_border_width); ?>px <?php echo esc_html($theme_row->lightbox_info_border_style); ?> #<?php echo esc_html($theme_row->lightbox_info_border_color); ?>;
|
510 |
+
border-radius: <?php echo esc_html($theme_row->lightbox_info_border_radius); ?>;
|
511 |
+
<?php echo ((!$params['popup_enable_filmstrip'] || $theme_row->lightbox_filmstrip_pos != 'bottom') && $theme_row->lightbox_ctrl_btn_pos == 'bottom' && $theme_row->lightbox_info_pos == 'bottom') ? 'bottom: ' . esc_html(($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top) . 'px;') : '' ?>
|
512 |
<?php if ($params['popup_info_full_width']) { ?>
|
513 |
width: 100%;
|
514 |
<?php } else { ?>
|
515 |
width: 33%;
|
516 |
+
margin: <?php echo esc_html($theme_row->lightbox_info_margin); ?>;
|
517 |
<?php } ?>
|
518 |
+
padding: <?php echo esc_html($theme_row->lightbox_info_padding); ?>;
|
519 |
+
<?php echo esc_html(((!$params['popup_enable_filmstrip'] || $theme_row->lightbox_filmstrip_pos != 'top') && $theme_row->lightbox_ctrl_btn_pos == 'top' && $theme_row->lightbox_info_pos == 'top') ? 'top: ' . ($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top) . 'px;' : ''); ?>
|
520 |
word-break : break-word;
|
521 |
}
|
522 |
.bwg_image_title,
|
523 |
.bwg_image_title * {
|
524 |
+
color: #<?php echo esc_html($theme_row->lightbox_title_color); ?> !important;
|
525 |
+
font-family: <?php echo esc_html($theme_row->lightbox_title_font_style); ?>;
|
526 |
+
font-size: <?php echo esc_html($theme_row->lightbox_title_font_size); ?>px;
|
527 |
+
font-weight: <?php echo esc_html($theme_row->lightbox_title_font_weight); ?>;
|
528 |
word-wrap: break-word;
|
529 |
}
|
530 |
.bwg_image_description,
|
531 |
.bwg_image_description * {
|
532 |
+
color: #<?php echo esc_html($theme_row->lightbox_description_color); ?> !important;
|
533 |
+
font-family: <?php echo esc_html($theme_row->lightbox_description_font_style); ?>;
|
534 |
+
font-size: <?php echo esc_html($theme_row->lightbox_description_font_size); ?>px;
|
535 |
+
font-weight: <?php echo esc_html($theme_row->lightbox_description_font_weight); ?>;
|
536 |
word-break: break-word;
|
537 |
}
|
538 |
.bwg_image_rate_spun {
|
539 |
+
text-align: <?php echo esc_html($theme_row->lightbox_rate_align); ?>;
|
540 |
+
vertical-align: <?php echo esc_html($theme_row->lightbox_rate_pos); ?>;
|
541 |
}
|
542 |
.bwg_image_rate {
|
543 |
+
<?php echo esc_html(($theme_row->lightbox_ctrl_btn_pos == 'bottom' && $theme_row->lightbox_rate_pos == 'bottom') ? 'bottom: ' . ($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top) . 'px;' : ''); ?>
|
544 |
+
padding: <?php echo esc_html($theme_row->lightbox_rate_padding); ?>;
|
545 |
+
<?php echo esc_html(($theme_row->lightbox_ctrl_btn_pos == 'top' && $theme_row->lightbox_rate_pos == 'top') ? 'top: ' . ($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top) . 'px;' : ''); ?>
|
546 |
}
|
547 |
#bwg_rate_form .bwg_hint,
|
548 |
+
#bwg_rate_form .bwg-icon-<?php echo esc_attr($theme_row->lightbox_rate_icon); ?>,
|
549 |
#bwg_rate_form .bwg-icon-<?php echo $theme_row->lightbox_rate_icon; ?>-half-o,
|
550 |
#bwg_rate_form .bwg-icon-<?php echo $theme_row->lightbox_rate_icon; ?>-o,
|
551 |
#bwg_rate_form .bwg-icon-minus-square-o {
|
552 |
+
color: #<?php echo esc_html($theme_row->lightbox_rate_color); ?>;
|
553 |
+
font-size: <?php echo esc_html($theme_row->lightbox_rate_size); ?>px;
|
554 |
}
|
555 |
.bwg_rate_hover {
|
556 |
+
color: #<?php echo esc_html($theme_row->lightbox_rate_hover_color); ?> !important;
|
557 |
}
|
558 |
.bwg_rated {
|
559 |
+
color: #<?php echo esc_html($theme_row->lightbox_rate_color); ?>;
|
560 |
display: none;
|
561 |
+
font-size: <?php echo esc_html($theme_row->lightbox_rate_size - 2); ?>px;
|
562 |
}
|
563 |
#bwg_comment_form label {
|
564 |
+
color: #<?php echo esc_html($theme_row->lightbox_comment_font_color); ?>;
|
565 |
}
|
566 |
@media (max-width: 768px) {
|
567 |
.bwg_image_info {
|
708 |
$thumb_left = ($_image_filmstrip_width - $image_thumb_width) / 2;
|
709 |
$thumb_top = ($_image_filmstrip_height - $image_thumb_height) / 2;
|
710 |
?>
|
711 |
+
<div id="bwg_filmstrip_thumbnail_<?php echo esc_attr($key); ?>" class="bwg_filmstrip_thumbnail <?php echo (($image_row->id == $current_image_id) ? 'bwg_thumb_active' : 'bwg_thumb_deactive'); ?>">
|
712 |
<div class="bwg_filmstrip_thumbnail_img_wrap">
|
713 |
<img <?php if( $is_embed || $resolution_thumb ) { ?>
|
714 |
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 } ?>
|
1007 |
</div>
|
1008 |
</div>
|
1009 |
</div>
|
1010 |
+
<a id="spider_popup_left" <?php echo ($params['enable_loop'] == 0 && $current_key == 0) ? 'style="display: none;"' : ''; ?>><span id="spider_popup_left-ico"><span><i class="bwg_prev_btn <?php echo esc_attr($theme_row->lightbox_rl_btn_style); ?>-left"></i></span></span></a>
|
1011 |
+
<a id="spider_popup_right" <?php echo ($params['enable_loop'] == 0 && $current_key == count($image_rows) - 1) ? 'style="display: none;"' : ''; ?>><span id="spider_popup_right-ico"><span><i class="bwg_next_btn <?php echo esc_attr($theme_row->lightbox_rl_btn_style); ?>-right"></i></span></span></a>
|
1012 |
</div>
|
1013 |
</div>
|
1014 |
<?php if ( $params['popup_enable_comment'] ) {
|
1024 |
</div>
|
1025 |
<div class="bwg_comments bwg_popup_sidebar">
|
1026 |
<div title="<?php echo __('Hide Comments', 'photo-gallery'); ?>" class="bwg_comments_close bwg_popup_sidebar_close">
|
1027 |
+
<i class="bwg-icon-arrow-<?php echo esc_attr($theme_row->lightbox_comment_pos); ?> bwg_comments_close_btn bwg_popup_sidebar_close_btn"></i>
|
1028 |
</div>
|
1029 |
<form id="bwg_comment_form" method="post" action="<?php echo esc_url($popup_url); ?>">
|
1030 |
<p><label for="bwg_name"><?php echo __('Name', 'photo-gallery'); ?> </label></p>
|
1405 |
public function html_comments_block( $row = array() ) {
|
1406 |
ob_start();
|
1407 |
?>
|
1408 |
+
<div id="bwg_comment_block_<?php echo esc_attr($row->id); ?>" class="bwg_single_comment">
|
1409 |
<p class="bwg_comment_header_p">
|
1410 |
<span class="bwg_comment_header"><?php echo esc_html($row->name); ?></span>
|
1411 |
<?php if ( current_user_can('manage_options') ) { ?>
|
frontend/views/BWGViewImage_browser.php
CHANGED
@@ -34,14 +34,14 @@ class BWGViewImage_browser extends BWGViewSite {
|
|
34 |
$show_watermark = TRUE;
|
35 |
$params['watermark_width'] = 0;
|
36 |
$watermark_a = 'bwg_watermark_text_' . $bwg;
|
37 |
-
$watermark_div = 'class="bwg_image_browser_watermark_text_' .
|
38 |
$watermark_image_or_text = esc_html($params["watermark_text"]);
|
39 |
}
|
40 |
elseif ( $params['watermark_type'] == 'image' ) {
|
41 |
$show_watermark = TRUE;
|
42 |
-
$watermark_image_or_text = '<img class="bwg_image_browser_watermark_img_' .
|
43 |
$watermark_a = '';
|
44 |
-
$watermark_div = 'class="bwg_image_browser_watermark_' .
|
45 |
$params['watermark_font'] = '';
|
46 |
$params['watermark_color'] = '';
|
47 |
$params['watermark_font_size'] = '';
|
@@ -54,15 +54,15 @@ class BWGViewImage_browser extends BWGViewSite {
|
|
54 |
wp_add_inline_style('bwg_frontend', $inline_style);
|
55 |
}
|
56 |
else {
|
57 |
-
echo '<style id="bwg-style-' .
|
58 |
}
|
59 |
}
|
60 |
else {
|
61 |
-
echo '<style id="bwg-style-' .
|
62 |
}
|
63 |
}
|
64 |
else {
|
65 |
-
echo '<style id="bwg-style-' .
|
66 |
}
|
67 |
$bwg_param = array(
|
68 |
'is_pro' => BWG()->is_pro,
|
@@ -72,11 +72,11 @@ class BWGViewImage_browser extends BWGViewSite {
|
|
72 |
$bwg_params = json_encode($bwg_param);
|
73 |
ob_start();
|
74 |
?>
|
75 |
-
<div id="bwg_<?php echo
|
76 |
data-params='<?php echo esc_attr($bwg_params) ?>'
|
77 |
data-bwg="<?php echo esc_attr($bwg); ?>"
|
78 |
data-lightbox-url="<?php echo esc_url(addslashes(add_query_arg($params['params_array'], admin_url('admin-ajax.php')))); ?>">
|
79 |
-
<div class="image_browser_images_<?php echo
|
80 |
<?php
|
81 |
foreach ( $images as $image_row ) {
|
82 |
$params['image_id'] = WDWLibrary::get('image_id', $image_row->id, 'intval');
|
@@ -84,28 +84,28 @@ class BWGViewImage_browser extends BWGViewSite {
|
|
84 |
$is_embed_16x9 = ((preg_match('/EMBED/', $image_row->filetype) == 1 ? TRUE : FALSE) && (preg_match('/VIDEO/', $image_row->filetype) == 1 ? TRUE : FALSE) && !(preg_match('/INSTAGRAM/', $image_row->filetype) == 1 ? TRUE : FALSE));
|
85 |
$is_embed_instagram_post = preg_match('/INSTAGRAM_POST/', $image_row->filetype) == 1 ? TRUE : FALSE;
|
86 |
?>
|
87 |
-
<div class="image_browser_image_buttons_conteiner_<?php echo
|
88 |
-
<div class="image_browser_image_buttons_<?php echo
|
89 |
<?php
|
90 |
if ( $image_title && ($image_browser_image_title_align == 'top') ) {
|
91 |
?>
|
92 |
-
<div class="bwg_image_browser_image_alt_<?php echo
|
93 |
-
<div class="bwg_image_alt_<?php echo
|
94 |
<?php echo html_entity_decode($image_row->alt); ?>
|
95 |
</div>
|
96 |
</div>
|
97 |
<?php
|
98 |
}
|
99 |
?>
|
100 |
-
<div class="bwg_image_browser_image_<?php echo
|
101 |
<?php
|
102 |
if ( $show_watermark ) {
|
103 |
?>
|
104 |
-
<div class="bwg_image_browser_image_contain_<?php echo
|
105 |
-
<div class="bwg_image_browser_watermark_contain_<?php echo
|
106 |
-
<div class="bwg_image_browser_watermark_cont_<?php echo
|
107 |
<div <?php echo $watermark_div; ?> >
|
108 |
-
<a class="bwg_none_selectable <?php echo
|
109 |
<?php echo $watermark_image_or_text; ?>
|
110 |
</a>
|
111 |
</div>
|
@@ -117,7 +117,7 @@ class BWGViewImage_browser extends BWGViewSite {
|
|
117 |
if ( !$is_embed ) {
|
118 |
?>
|
119 |
<a style="position:relative;" <?php echo($params['thumb_click_action'] == 'open_lightbox' ? (' class="bwg-a bwg_lightbox" data-image-id="' . esc_attr($image_row->id) . '" data-elementor-open-lightbox="no"') : ('class="bwg-a" ' . ($params['thumb_click_action'] == 'redirect_to_url' && $image_row->redirect_url ? 'href="' . esc_url($image_row->redirect_url) . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : ''))) ?>>
|
120 |
-
<img class="skip-lazy bwg-item0 bwg_image_browser_img bwg_image_browser_img_<?php echo
|
121 |
src="<?php if( !$lazyload ) { echo esc_url(BWG()->upload_url . $image_row->image_url); } else { echo esc_url(BWG()->plugin_url."/images/lazy_placeholder.gif"); } ?>"
|
122 |
data-src="<?php echo esc_url(BWG()->upload_url . $image_row->image_url); ?>"
|
123 |
alt="<?php echo esc_attr($image_row->alt); ?>"
|
@@ -157,7 +157,7 @@ class BWGViewImage_browser extends BWGViewSite {
|
|
157 |
}
|
158 |
else {/*for instagram image, video and flickr enable lightbox onclick*/
|
159 |
?>
|
160 |
-
<a style="position:relative;" <?php echo($params['thumb_click_action'] == 'open_lightbox' ? (' class="bwg_lightbox bwg_lightbox_' .
|
161 |
<?php
|
162 |
WDWLibraryEmbed::display_embed($image_row->filetype, $image_row->image_url, $image_row->filename, array(
|
163 |
'id' => 'bwg_embed_frame_' . $bwg,
|
@@ -179,8 +179,8 @@ class BWGViewImage_browser extends BWGViewSite {
|
|
179 |
<?php
|
180 |
if ( $image_title && ($image_browser_image_title_align == 'bottom') ) {
|
181 |
?>
|
182 |
-
<div class="bwg_image_browser_image_alt_<?php echo
|
183 |
-
<div class="bwg_image_alt_<?php echo
|
184 |
<?php echo html_entity_decode($image_row->alt); ?>
|
185 |
</div>
|
186 |
</div>
|
@@ -188,8 +188,8 @@ class BWGViewImage_browser extends BWGViewSite {
|
|
188 |
}
|
189 |
if ( $enable_image_description && ($image_row->description != "") ) {
|
190 |
?>
|
191 |
-
<div class="bwg_image_browser_image_desp_<?php echo
|
192 |
-
<div class="bwg_image_browser_image_description_<?php echo
|
193 |
<?php echo html_entity_decode($image_row->description); ?>
|
194 |
</div>
|
195 |
</div>
|
@@ -237,22 +237,22 @@ class BWGViewImage_browser extends BWGViewSite {
|
|
237 |
$image_browser_images_conteiner = WDWLibrary::spider_hex2rgb($theme_row->image_browser_full_bg_color);
|
238 |
$bwg_image_browser_image = WDWLibrary::spider_hex2rgb($theme_row->image_browser_bg_color);
|
239 |
?>
|
240 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .image_browser_images_conteiner_<?php echo $bwg; ?> * {
|
241 |
-moz-box-sizing: border-box;
|
242 |
box-sizing: border-box;
|
243 |
}
|
244 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .image_browser_images_conteiner_<?php echo $bwg; ?>{
|
245 |
-
background-color: rgba(<?php echo $image_browser_images_conteiner['red']; ?>, <?php echo $image_browser_images_conteiner['green']; ?>, <?php echo $image_browser_images_conteiner['blue']; ?>, <?php echo number_format($theme_row->image_browser_full_transparent / 100, 2, ".", ""); ?>);
|
246 |
text-align: center;
|
247 |
width: 100%;
|
248 |
-
border-style: <?php echo $theme_row->image_browser_full_border_style;?>;
|
249 |
-
border-width: <?php echo $theme_row->image_browser_full_border_width;?>px;
|
250 |
-
border-color: #<?php echo $theme_row->image_browser_full_border_color;?>;
|
251 |
-
padding: <?php echo $theme_row->image_browser_full_padding; ?>;
|
252 |
-
border-radius: <?php echo $theme_row->image_browser_full_border_radius; ?>;
|
253 |
position:relative;
|
254 |
}
|
255 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .image_browser_images_<?php echo $bwg; ?> {
|
256 |
display: inline-block;
|
257 |
-moz-box-sizing: border-box;
|
258 |
box-sizing: border-box;
|
@@ -261,103 +261,103 @@ class BWGViewImage_browser extends BWGViewSite {
|
|
261 |
max-width: 100%;
|
262 |
width: 100%;
|
263 |
}
|
264 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .image_browser_image_buttons_conteiner_<?php echo $bwg; ?> {
|
265 |
-
text-align: <?php echo $theme_row->image_browser_align; ?>;
|
266 |
}
|
267 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .image_browser_image_buttons_<?php echo $bwg; ?> {
|
268 |
display: inline-block;
|
269 |
width:100%;
|
270 |
}
|
271 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_image_<?php echo $bwg; ?> {
|
272 |
-
background-color: rgba(<?php echo $bwg_image_browser_image['red']; ?>, <?php echo $bwg_image_browser_image['green']; ?>, <?php echo $bwg_image_browser_image['blue']; ?>, <?php echo number_format($theme_row->image_browser_transparent / 100, 2, ".", ""); ?>);
|
273 |
text-align: center;
|
274 |
display: inline-block;
|
275 |
vertical-align: middle;
|
276 |
-
margin: <?php echo $theme_row->image_browser_margin; ?>;
|
277 |
-
padding: <?php echo $theme_row->image_browser_padding; ?>;
|
278 |
-
border-radius: <?php echo $theme_row->image_browser_border_radius; ?>;
|
279 |
-
border: <?php echo $theme_row->image_browser_border_width; ?>px <?php echo $theme_row->image_browser_border_style; ?> #<?php echo $theme_row->image_browser_border_color; ?>;
|
280 |
-
box-shadow: <?php echo $theme_row->image_browser_box_shadow; ?>;
|
281 |
-
max-width: <?php echo $params['image_browser_width']; ?>px;
|
282 |
width: 100%;
|
283 |
/*z-index: 100;*/
|
284 |
position: relative;
|
285 |
}
|
286 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_alt_<?php echo $bwg; ?>{
|
287 |
display: table;
|
288 |
width: 100%;
|
289 |
-
font-size: <?php echo $theme_row->image_browser_img_font_size; ?>px;
|
290 |
-
font-family: <?php echo $theme_row->image_browser_img_font_family; ?>;
|
291 |
-
color: #<?php echo $theme_row->image_browser_img_font_color; ?>;
|
292 |
-
text-align:<?php echo $theme_row->image_browser_image_description_align; ?>;
|
293 |
padding-left: 8px;
|
294 |
word-break: break-word;
|
295 |
}
|
296 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_img_<?php echo $bwg; ?> {
|
297 |
padding: 0 !important;
|
298 |
max-width: 100% !important;
|
299 |
height: inherit !important;
|
300 |
width: 100%;
|
301 |
}
|
302 |
@media only screen and (max-width : 320px) {
|
303 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .displaying-num_<?php echo $bwg; ?> {
|
304 |
display: none;
|
305 |
}
|
306 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_alt_<?php echo $bwg; ?> {
|
307 |
font-size: 10px !important;
|
308 |
}
|
309 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_watermark_text_<?php echo $bwg; ?>,
|
310 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_watermark_text_<?php echo $bwg; ?>:hover {
|
311 |
font-size: 10px !important;
|
312 |
text-decoration: none;
|
313 |
margin: 4px;
|
314 |
-
font-family: <?php echo $params['watermark_font']; ?>;
|
315 |
-
color: #<?php echo $params['watermark_color']; ?> !important;
|
316 |
opacity: <?php echo number_format($params['watermark_opacity'] / 100, 2, ".", ""); ?>;
|
317 |
text-decoration: none;
|
318 |
position: relative;
|
319 |
z-index: 10141;
|
320 |
}
|
321 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_image_description_<?php echo $bwg; ?> {
|
322 |
-
color: #<?php echo $theme_row->image_browser_img_font_color; ?>;
|
323 |
display: table;
|
324 |
width: 100%;
|
325 |
text-align: left;
|
326 |
font-size: 8px !important;
|
327 |
-
font-family: <?php echo $theme_row->image_browser_img_font_family; ?>;
|
328 |
-
padding: <?php echo $theme_row->image_browser_image_description_padding; ?>;
|
329 |
/*word-break: break-all;*/
|
330 |
-
border-style: <?php echo $theme_row->image_browser_image_description_border_style; ?>;
|
331 |
-
background-color: #<?php echo $theme_row->image_browser_image_description_bg_color; ?>;
|
332 |
-
border-radius: <?php echo $theme_row->image_browser_image_description_border_radius; ?>;
|
333 |
-
border-width: <?php echo $theme_row->image_browser_image_description_border_width; ?>px;
|
334 |
}
|
335 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> a {
|
336 |
font-size: 10px !important;
|
337 |
}
|
338 |
}
|
339 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_image_desp_<?php echo $bwg; ?> {
|
340 |
display: table;
|
341 |
clear: both;
|
342 |
text-align: center;
|
343 |
-
padding: <?php echo $theme_row->image_browser_image_description_margin; ?>;
|
344 |
width: 100%;
|
345 |
}
|
346 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_image_description_<?php echo $bwg; ?> {
|
347 |
-
color: #<?php echo $theme_row->image_browser_img_font_color; ?>;
|
348 |
display: table;
|
349 |
width: 100%;
|
350 |
text-align: left;
|
351 |
-
font-size: <?php echo $theme_row->image_browser_img_font_size; ?>px;
|
352 |
-
font-family: <?php echo$theme_row->image_browser_img_font_family; ?>;
|
353 |
-
padding: <?php echo $theme_row->image_browser_image_description_padding; ?>;
|
354 |
word-break: break-word;
|
355 |
-
border-style: <?php echo $theme_row->image_browser_image_description_border_style; ?>;
|
356 |
-
background-color: #<?php echo $theme_row->image_browser_image_description_bg_color; ?>;
|
357 |
-
border-radius: <?php echo $theme_row->image_browser_image_description_border_radius; ?>;
|
358 |
-
border-width: <?php echo $theme_row->image_browser_image_description_border_width; ?>px;
|
359 |
}
|
360 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_image_alt_<?php echo $bwg; ?> {
|
361 |
display:table;
|
362 |
clear: both;
|
363 |
text-align: center;
|
@@ -365,18 +365,18 @@ class BWGViewImage_browser extends BWGViewSite {
|
|
365 |
width: 100%;
|
366 |
}
|
367 |
/*watermark*/
|
368 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_watermark_text_<?php echo $bwg; ?>,
|
369 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_watermark_text_<?php echo $bwg; ?>:hover {
|
370 |
text-decoration: none;
|
371 |
margin: 4px;
|
372 |
-
font-size: <?php echo $params['watermark_font_size']; ?>px;
|
373 |
-
font-family: <?php echo $params['watermark_font']; ?>;
|
374 |
-
color: #<?php echo $params['watermark_color']; ?> !important;
|
375 |
opacity: <?php echo number_format($params['watermark_opacity'] / 100, 2, ".", ""); ?>;
|
376 |
position: relative;
|
377 |
z-index: 10141;
|
378 |
}
|
379 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_image_contain_<?php echo $bwg; ?>{
|
380 |
position: absolute;
|
381 |
text-align: center;
|
382 |
vertical-align: middle;
|
@@ -384,29 +384,29 @@ class BWGViewImage_browser extends BWGViewSite {
|
|
384 |
height: 100%;
|
385 |
cursor: pointer;
|
386 |
}
|
387 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_watermark_contain_<?php echo $bwg; ?>{
|
388 |
display: table;
|
389 |
vertical-align: middle;
|
390 |
width: 100%;
|
391 |
height: 100%;
|
392 |
}
|
393 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_watermark_cont_<?php echo $bwg; ?>{
|
394 |
display: table-cell;
|
395 |
-
text-align: <?php echo $text_align; ?>;
|
396 |
position: relative;
|
397 |
-
vertical-align: <?php echo $vertical_align; ?>;
|
398 |
}
|
399 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_watermark_<?php echo $bwg; ?>{
|
400 |
display: inline-block;
|
401 |
overflow: hidden;
|
402 |
position: relative;
|
403 |
vertical-align: middle;
|
404 |
z-index: 10140;
|
405 |
-
width: <?php echo $params['watermark_width'];?>px;
|
406 |
-
max-width: <?php echo (($params['watermark_width']) / ($params['image_browser_width'])) * 100
|
407 |
margin: 10px 10px 10px 10px ;
|
408 |
}
|
409 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_watermark_text_<?php echo $bwg; ?>{
|
410 |
display: inline-block;
|
411 |
overflow: hidden;
|
412 |
position: relative;
|
@@ -414,13 +414,13 @@ class BWGViewImage_browser extends BWGViewSite {
|
|
414 |
z-index: 10140;
|
415 |
margin: 10px 10px 10px 10px;
|
416 |
}
|
417 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_watermark_img_<?php echo $bwg; ?>{
|
418 |
max-width: 100%;
|
419 |
opacity: <?php echo number_format($params['watermark_opacity'] / 100, 2, ".", ""); ?>;
|
420 |
position: relative;
|
421 |
z-index: 10141;
|
422 |
}
|
423 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_none_selectable {
|
424 |
-webkit-touch-callout: none;
|
425 |
-webkit-user-select: none;
|
426 |
-khtml-user-select: none;
|
@@ -429,16 +429,16 @@ class BWGViewImage_browser extends BWGViewSite {
|
|
429 |
user-select: none;
|
430 |
ecoration: none;
|
431 |
}
|
432 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_gal_title_<?php echo $bwg; ?> {
|
433 |
background-color: rgba(0, 0, 0, 0);
|
434 |
-
color: #<?php echo $theme_row->image_browser_gal_title_font_color; ?>;
|
435 |
display: block;
|
436 |
-
font-family: <?php echo $theme_row->image_browser_gal_title_font_style; ?>;
|
437 |
-
font-size: <?php echo $theme_row->image_browser_gal_title_font_size; ?>px;
|
438 |
-
font-weight: <?php echo $theme_row->image_browser_gal_title_font_weight; ?>;
|
439 |
-
padding: <?php echo $theme_row->image_browser_gal_title_margin; ?>;
|
440 |
-
text-shadow: <?php echo $theme_row->image_browser_gal_title_shadow; ?>;
|
441 |
-
text-align: <?php echo $theme_row->image_browser_gal_title_align; ?>;
|
442 |
}
|
443 |
<?php
|
444 |
return ob_get_clean();
|
34 |
$show_watermark = TRUE;
|
35 |
$params['watermark_width'] = 0;
|
36 |
$watermark_a = 'bwg_watermark_text_' . $bwg;
|
37 |
+
$watermark_div = 'class="bwg_image_browser_watermark_text_' . esc_attr($bwg) . '"';
|
38 |
$watermark_image_or_text = esc_html($params["watermark_text"]);
|
39 |
}
|
40 |
elseif ( $params['watermark_type'] == 'image' ) {
|
41 |
$show_watermark = TRUE;
|
42 |
+
$watermark_image_or_text = '<img class="bwg_image_browser_watermark_img_' . esc_attr($bwg) . '" src="' . urldecode($params['watermark_url']) . '" />';
|
43 |
$watermark_a = '';
|
44 |
+
$watermark_div = 'class="bwg_image_browser_watermark_' . esc_attr($bwg) . '"';
|
45 |
$params['watermark_font'] = '';
|
46 |
$params['watermark_color'] = '';
|
47 |
$params['watermark_font_size'] = '';
|
54 |
wp_add_inline_style('bwg_frontend', $inline_style);
|
55 |
}
|
56 |
else {
|
57 |
+
echo '<style id="bwg-style-' . esc_attr($bwg) . '">' . strip_tags($inline_style) . '</style>';
|
58 |
}
|
59 |
}
|
60 |
else {
|
61 |
+
echo '<style id="bwg-style-' . esc_attr($bwg) . '">' . strip_tags($inline_style) . '</style>';
|
62 |
}
|
63 |
}
|
64 |
else {
|
65 |
+
echo '<style id="bwg-style-' . esc_attr($bwg) . '">' . strip_tags($inline_style) . '</style>';
|
66 |
}
|
67 |
$bwg_param = array(
|
68 |
'is_pro' => BWG()->is_pro,
|
72 |
$bwg_params = json_encode($bwg_param);
|
73 |
ob_start();
|
74 |
?>
|
75 |
+
<div id="bwg_<?php echo esc_attr($params['gallery_type'] . '_' . $bwg) ?>" class="image_browser_images_conteiner_<?php echo esc_attr($bwg); ?> bwg-image_browser-images-wrapper bwg-container"
|
76 |
data-params='<?php echo esc_attr($bwg_params) ?>'
|
77 |
data-bwg="<?php echo esc_attr($bwg); ?>"
|
78 |
data-lightbox-url="<?php echo esc_url(addslashes(add_query_arg($params['params_array'], admin_url('admin-ajax.php')))); ?>">
|
79 |
+
<div class="image_browser_images_<?php echo esc_attr($bwg); ?>">
|
80 |
<?php
|
81 |
foreach ( $images as $image_row ) {
|
82 |
$params['image_id'] = WDWLibrary::get('image_id', $image_row->id, 'intval');
|
84 |
$is_embed_16x9 = ((preg_match('/EMBED/', $image_row->filetype) == 1 ? TRUE : FALSE) && (preg_match('/VIDEO/', $image_row->filetype) == 1 ? TRUE : FALSE) && !(preg_match('/INSTAGRAM/', $image_row->filetype) == 1 ? TRUE : FALSE));
|
85 |
$is_embed_instagram_post = preg_match('/INSTAGRAM_POST/', $image_row->filetype) == 1 ? TRUE : FALSE;
|
86 |
?>
|
87 |
+
<div class="image_browser_image_buttons_conteiner_<?php echo esc_attr($bwg); ?>">
|
88 |
+
<div class="image_browser_image_buttons_<?php echo esc_attr($bwg); ?>">
|
89 |
<?php
|
90 |
if ( $image_title && ($image_browser_image_title_align == 'top') ) {
|
91 |
?>
|
92 |
+
<div class="bwg_image_browser_image_alt_<?php echo esc_attr($bwg); ?>">
|
93 |
+
<div class="bwg_image_alt_<?php echo esc_attr($bwg); ?>" id="alt<?php echo esc_attr($image_row->id); ?>">
|
94 |
<?php echo html_entity_decode($image_row->alt); ?>
|
95 |
</div>
|
96 |
</div>
|
97 |
<?php
|
98 |
}
|
99 |
?>
|
100 |
+
<div class="bwg_image_browser_image_<?php echo esc_attr($bwg); ?>">
|
101 |
<?php
|
102 |
if ( $show_watermark ) {
|
103 |
?>
|
104 |
+
<div class="bwg_image_browser_image_contain_<?php echo esc_attr($bwg); ?>" id="bwg_image_browser_image_contain_<?php echo esc_attr($image_row->id) ?>">
|
105 |
+
<div class="bwg_image_browser_watermark_contain_<?php echo esc_attr($bwg); ?>">
|
106 |
+
<div class="bwg_image_browser_watermark_cont_<?php echo esc_attr($bwg); ?>">
|
107 |
<div <?php echo $watermark_div; ?> >
|
108 |
+
<a class="bwg_none_selectable <?php echo esc_attr($watermark_a); ?>" id="watermark_a<?php echo esc_attr($image_row->id); ?>" href="<?php echo urldecode($params['watermark_link']); ?>" target="_blank">
|
109 |
<?php echo $watermark_image_or_text; ?>
|
110 |
</a>
|
111 |
</div>
|
117 |
if ( !$is_embed ) {
|
118 |
?>
|
119 |
<a style="position:relative;" <?php echo($params['thumb_click_action'] == 'open_lightbox' ? (' class="bwg-a bwg_lightbox" data-image-id="' . esc_attr($image_row->id) . '" data-elementor-open-lightbox="no"') : ('class="bwg-a" ' . ($params['thumb_click_action'] == 'redirect_to_url' && $image_row->redirect_url ? 'href="' . esc_url($image_row->redirect_url) . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : ''))) ?>>
|
120 |
+
<img class="skip-lazy bwg-item0 bwg_image_browser_img bwg_image_browser_img_<?php echo esc_attr($bwg); ?> <?php if( $lazyload ) { ?> bwg_lazyload lazy_loader<?php } ?>"
|
121 |
src="<?php if( !$lazyload ) { echo esc_url(BWG()->upload_url . $image_row->image_url); } else { echo esc_url(BWG()->plugin_url."/images/lazy_placeholder.gif"); } ?>"
|
122 |
data-src="<?php echo esc_url(BWG()->upload_url . $image_row->image_url); ?>"
|
123 |
alt="<?php echo esc_attr($image_row->alt); ?>"
|
157 |
}
|
158 |
else {/*for instagram image, video and flickr enable lightbox onclick*/
|
159 |
?>
|
160 |
+
<a style="position:relative;" <?php echo($params['thumb_click_action'] == 'open_lightbox' ? (' class="bwg_lightbox bwg_lightbox_' . esc_attr($bwg) . '" data-image-id="' . esc_attr($image_row->id) . '"') : ($image_row->redirect_url ? 'href="' . esc_url($image_row->redirect_url) . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : '')) ?>>
|
161 |
<?php
|
162 |
WDWLibraryEmbed::display_embed($image_row->filetype, $image_row->image_url, $image_row->filename, array(
|
163 |
'id' => 'bwg_embed_frame_' . $bwg,
|
179 |
<?php
|
180 |
if ( $image_title && ($image_browser_image_title_align == 'bottom') ) {
|
181 |
?>
|
182 |
+
<div class="bwg_image_browser_image_alt_<?php echo esc_attr($bwg); ?>">
|
183 |
+
<div class="bwg_image_alt_<?php echo esc_attr($bwg); ?>" id="alt<?php echo esc_attr($image_row->id); ?>">
|
184 |
<?php echo html_entity_decode($image_row->alt); ?>
|
185 |
</div>
|
186 |
</div>
|
188 |
}
|
189 |
if ( $enable_image_description && ($image_row->description != "") ) {
|
190 |
?>
|
191 |
+
<div class="bwg_image_browser_image_desp_<?php echo esc_attr($bwg); ?>">
|
192 |
+
<div class="bwg_image_browser_image_description_<?php echo esc_attr($bwg); ?>" id="alt<?php echo esc_attr($image_row->id); ?>">
|
193 |
<?php echo html_entity_decode($image_row->description); ?>
|
194 |
</div>
|
195 |
</div>
|
237 |
$image_browser_images_conteiner = WDWLibrary::spider_hex2rgb($theme_row->image_browser_full_bg_color);
|
238 |
$bwg_image_browser_image = WDWLibrary::spider_hex2rgb($theme_row->image_browser_bg_color);
|
239 |
?>
|
240 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .image_browser_images_conteiner_<?php echo esc_attr($bwg); ?> * {
|
241 |
-moz-box-sizing: border-box;
|
242 |
box-sizing: border-box;
|
243 |
}
|
244 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .image_browser_images_conteiner_<?php echo esc_attr($bwg); ?>{
|
245 |
+
background-color: rgba(<?php echo esc_html($image_browser_images_conteiner['red']); ?>, <?php echo esc_html($image_browser_images_conteiner['green']); ?>, <?php echo esc_html($image_browser_images_conteiner['blue']); ?>, <?php echo number_format($theme_row->image_browser_full_transparent / 100, 2, ".", ""); ?>);
|
246 |
text-align: center;
|
247 |
width: 100%;
|
248 |
+
border-style: <?php echo esc_html($theme_row->image_browser_full_border_style);?>;
|
249 |
+
border-width: <?php echo esc_html($theme_row->image_browser_full_border_width);?>px;
|
250 |
+
border-color: #<?php echo esc_html($theme_row->image_browser_full_border_color);?>;
|
251 |
+
padding: <?php echo esc_html($theme_row->image_browser_full_padding); ?>;
|
252 |
+
border-radius: <?php echo esc_html($theme_row->image_browser_full_border_radius); ?>;
|
253 |
position:relative;
|
254 |
}
|
255 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .image_browser_images_<?php echo esc_attr($bwg); ?> {
|
256 |
display: inline-block;
|
257 |
-moz-box-sizing: border-box;
|
258 |
box-sizing: border-box;
|
261 |
max-width: 100%;
|
262 |
width: 100%;
|
263 |
}
|
264 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .image_browser_image_buttons_conteiner_<?php echo esc_attr($bwg); ?> {
|
265 |
+
text-align: <?php echo esc_html($theme_row->image_browser_align); ?>;
|
266 |
}
|
267 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .image_browser_image_buttons_<?php echo esc_attr($bwg); ?> {
|
268 |
display: inline-block;
|
269 |
width:100%;
|
270 |
}
|
271 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_image_browser_image_<?php echo esc_attr($bwg); ?> {
|
272 |
+
background-color: rgba(<?php echo esc_html($bwg_image_browser_image['red']); ?>, <?php echo esc_html($bwg_image_browser_image['green']); ?>, <?php echo esc_html($bwg_image_browser_image['blue']); ?>, <?php echo number_format($theme_row->image_browser_transparent / 100, 2, ".", ""); ?>);
|
273 |
text-align: center;
|
274 |
display: inline-block;
|
275 |
vertical-align: middle;
|
276 |
+
margin: <?php echo esc_html($theme_row->image_browser_margin); ?>;
|
277 |
+
padding: <?php echo esc_html($theme_row->image_browser_padding); ?>;
|
278 |
+
border-radius: <?php echo esc_html($theme_row->image_browser_border_radius); ?>;
|
279 |
+
border: <?php echo esc_html($theme_row->image_browser_border_width); ?>px <?php echo esc_html($theme_row->image_browser_border_style); ?> #<?php echo esc_html($theme_row->image_browser_border_color); ?>;
|
280 |
+
box-shadow: <?php echo esc_html($theme_row->image_browser_box_shadow); ?>;
|
281 |
+
max-width: <?php echo esc_html($params['image_browser_width']); ?>px;
|
282 |
width: 100%;
|
283 |
/*z-index: 100;*/
|
284 |
position: relative;
|
285 |
}
|
286 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_image_alt_<?php echo esc_attr($bwg); ?>{
|
287 |
display: table;
|
288 |
width: 100%;
|
289 |
+
font-size: <?php echo esc_html($theme_row->image_browser_img_font_size); ?>px;
|
290 |
+
font-family: <?php echo esc_html($theme_row->image_browser_img_font_family); ?>;
|
291 |
+
color: #<?php echo esc_html($theme_row->image_browser_img_font_color); ?>;
|
292 |
+
text-align:<?php echo esc_html($theme_row->image_browser_image_description_align); ?>;
|
293 |
padding-left: 8px;
|
294 |
word-break: break-word;
|
295 |
}
|
296 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_image_browser_img_<?php echo esc_attr($bwg); ?> {
|
297 |
padding: 0 !important;
|
298 |
max-width: 100% !important;
|
299 |
height: inherit !important;
|
300 |
width: 100%;
|
301 |
}
|
302 |
@media only screen and (max-width : 320px) {
|
303 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .displaying-num_<?php echo esc_attr($bwg); ?> {
|
304 |
display: none;
|
305 |
}
|
306 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_image_alt_<?php echo esc_attr($bwg); ?> {
|
307 |
font-size: 10px !important;
|
308 |
}
|
309 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_watermark_text_<?php echo esc_attr($bwg); ?>,
|
310 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_watermark_text_<?php echo esc_attr($bwg); ?>:hover {
|
311 |
font-size: 10px !important;
|
312 |
text-decoration: none;
|
313 |
margin: 4px;
|
314 |
+
font-family: <?php echo esc_html($params['watermark_font']); ?>;
|
315 |
+
color: #<?php echo esc_html($params['watermark_color']); ?> !important;
|
316 |
opacity: <?php echo number_format($params['watermark_opacity'] / 100, 2, ".", ""); ?>;
|
317 |
text-decoration: none;
|
318 |
position: relative;
|
319 |
z-index: 10141;
|
320 |
}
|
321 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_image_browser_image_description_<?php echo esc_attr($bwg); ?> {
|
322 |
+
color: #<?php echo esc_html($theme_row->image_browser_img_font_color); ?>;
|
323 |
display: table;
|
324 |
width: 100%;
|
325 |
text-align: left;
|
326 |
font-size: 8px !important;
|
327 |
+
font-family: <?php echo esc_html($theme_row->image_browser_img_font_family); ?>;
|
328 |
+
padding: <?php echo esc_html($theme_row->image_browser_image_description_padding); ?>;
|
329 |
/*word-break: break-all;*/
|
330 |
+
border-style: <?php echo esc_html($theme_row->image_browser_image_description_border_style); ?>;
|
331 |
+
background-color: #<?php echo esc_html($theme_row->image_browser_image_description_bg_color); ?>;
|
332 |
+
border-radius: <?php echo esc_html($theme_row->image_browser_image_description_border_radius); ?>;
|
333 |
+
border-width: <?php echo esc_html($theme_row->image_browser_image_description_border_width); ?>px;
|
334 |
}
|
335 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .tablenav-pages_<?php echo esc_attr($bwg); ?> a {
|
336 |
font-size: 10px !important;
|
337 |
}
|
338 |
}
|
339 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_image_browser_image_desp_<?php echo esc_attr($bwg); ?> {
|
340 |
display: table;
|
341 |
clear: both;
|
342 |
text-align: center;
|
343 |
+
padding: <?php echo esc_html($theme_row->image_browser_image_description_margin); ?>;
|
344 |
width: 100%;
|
345 |
}
|
346 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_image_browser_image_description_<?php echo esc_attr($bwg); ?> {
|
347 |
+
color: #<?php echo esc_html($theme_row->image_browser_img_font_color); ?>;
|
348 |
display: table;
|
349 |
width: 100%;
|
350 |
text-align: left;
|
351 |
+
font-size: <?php echo esc_html($theme_row->image_browser_img_font_size); ?>px;
|
352 |
+
font-family: <?php echo esc_html($theme_row->image_browser_img_font_family); ?>;
|
353 |
+
padding: <?php echo esc_html($theme_row->image_browser_image_description_padding); ?>;
|
354 |
word-break: break-word;
|
355 |
+
border-style: <?php echo esc_html($theme_row->image_browser_image_description_border_style); ?>;
|
356 |
+
background-color: #<?php echo esc_html($theme_row->image_browser_image_description_bg_color); ?>;
|
357 |
+
border-radius: <?php echo esc_html($theme_row->image_browser_image_description_border_radius); ?>;
|
358 |
+
border-width: <?php echo esc_html($theme_row->image_browser_image_description_border_width); ?>px;
|
359 |
}
|
360 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_image_browser_image_alt_<?php echo esc_attr($bwg); ?> {
|
361 |
display:table;
|
362 |
clear: both;
|
363 |
text-align: center;
|
365 |
width: 100%;
|
366 |
}
|
367 |
/*watermark*/
|
368 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_watermark_text_<?php echo esc_attr($bwg); ?>,
|
369 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_watermark_text_<?php echo esc_attr($bwg); ?>:hover {
|
370 |
text-decoration: none;
|
371 |
margin: 4px;
|
372 |
+
font-size: <?php echo esc_html($params['watermark_font_size']); ?>px;
|
373 |
+
font-family: <?php echo esc_html($params['watermark_font']); ?>;
|
374 |
+
color: #<?php echo esc_html($params['watermark_color']); ?> !important;
|
375 |
opacity: <?php echo number_format($params['watermark_opacity'] / 100, 2, ".", ""); ?>;
|
376 |
position: relative;
|
377 |
z-index: 10141;
|
378 |
}
|
379 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_image_browser_image_contain_<?php echo esc_attr($bwg); ?>{
|
380 |
position: absolute;
|
381 |
text-align: center;
|
382 |
vertical-align: middle;
|
384 |
height: 100%;
|
385 |
cursor: pointer;
|
386 |
}
|
387 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_image_browser_watermark_contain_<?php echo esc_attr($bwg); ?>{
|
388 |
display: table;
|
389 |
vertical-align: middle;
|
390 |
width: 100%;
|
391 |
height: 100%;
|
392 |
}
|
393 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_image_browser_watermark_cont_<?php echo esc_attr($bwg); ?>{
|
394 |
display: table-cell;
|
395 |
+
text-align: <?php echo esc_html($text_align); ?>;
|
396 |
position: relative;
|
397 |
+
vertical-align: <?php echo esc_html($vertical_align); ?>;
|
398 |
}
|
399 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_image_browser_watermark_<?php echo esc_attr($bwg); ?>{
|
400 |
display: inline-block;
|
401 |
overflow: hidden;
|
402 |
position: relative;
|
403 |
vertical-align: middle;
|
404 |
z-index: 10140;
|
405 |
+
width: <?php echo esc_html($params['watermark_width']);?>px;
|
406 |
+
max-width: <?php echo esc_html((($params['watermark_width']) / ($params['image_browser_width'])) * 100); ?>%;
|
407 |
margin: 10px 10px 10px 10px ;
|
408 |
}
|
409 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_image_browser_watermark_text_<?php echo esc_attr($bwg); ?>{
|
410 |
display: inline-block;
|
411 |
overflow: hidden;
|
412 |
position: relative;
|
414 |
z-index: 10140;
|
415 |
margin: 10px 10px 10px 10px;
|
416 |
}
|
417 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_image_browser_watermark_img_<?php echo esc_attr($bwg); ?>{
|
418 |
max-width: 100%;
|
419 |
opacity: <?php echo number_format($params['watermark_opacity'] / 100, 2, ".", ""); ?>;
|
420 |
position: relative;
|
421 |
z-index: 10141;
|
422 |
}
|
423 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_none_selectable {
|
424 |
-webkit-touch-callout: none;
|
425 |
-webkit-user-select: none;
|
426 |
-khtml-user-select: none;
|
429 |
user-select: none;
|
430 |
ecoration: none;
|
431 |
}
|
432 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_gal_title_<?php echo esc_attr($bwg); ?> {
|
433 |
background-color: rgba(0, 0, 0, 0);
|
434 |
+
color: #<?php echo esc_html($theme_row->image_browser_gal_title_font_color); ?>;
|
435 |
display: block;
|
436 |
+
font-family: <?php echo esc_html($theme_row->image_browser_gal_title_font_style); ?>;
|
437 |
+
font-size: <?php echo esc_html($theme_row->image_browser_gal_title_font_size); ?>px;
|
438 |
+
font-weight: <?php echo esc_html($theme_row->image_browser_gal_title_font_weight); ?>;
|
439 |
+
padding: <?php echo esc_html($theme_row->image_browser_gal_title_margin); ?>;
|
440 |
+
text-shadow: <?php echo esc_html($theme_row->image_browser_gal_title_shadow); ?>;
|
441 |
+
text-align: <?php echo esc_html($theme_row->image_browser_gal_title_align); ?>;
|
442 |
}
|
443 |
<?php
|
444 |
return ob_get_clean();
|
frontend/views/BWGViewSlideshow.php
CHANGED
@@ -135,11 +135,11 @@ public function display($params = array(), $bwg = 0, $ajax = FALSE) {
|
|
135 |
}
|
136 |
}
|
137 |
else {
|
138 |
-
echo '<style id="bwg-style-' .
|
139 |
}
|
140 |
}
|
141 |
else {
|
142 |
-
echo '<style id="bwg-style-' .
|
143 |
}
|
144 |
|
145 |
$data = array();
|
@@ -223,7 +223,7 @@ public function display($params = array(), $bwg = 0, $ajax = FALSE) {
|
|
223 |
'enable_slideshow_music' => $enable_slideshow_music,
|
224 |
);
|
225 |
?>
|
226 |
-
<div class="bwg_slideshow_image_wrap_<?php echo
|
227 |
data-bwg="<?php echo esc_attr($bwg); ?>"
|
228 |
data-lightbox-url="<?php echo esc_url(addslashes(add_query_arg($params['params_array'], admin_url('admin-ajax.php')))); ?>">
|
229 |
<?php
|
@@ -231,20 +231,20 @@ public function display($params = array(), $bwg = 0, $ajax = FALSE) {
|
|
231 |
// Slideshow filmstrip type is Fix dimension or Fix count.
|
232 |
if ( $slideshow_filmstrip_type == 1 || $slideshow_filmstrip_type == 2 ) {
|
233 |
|
234 |
-
$filmstrip_class_name = 'bwg_slideshow_filmstrip_' .
|
235 |
if ( $slideshow_filmstrip_type == 2 ) {
|
236 |
-
$filmstrip_class_name = 'bwg_slideshow_filmstrip_fix_count_' .
|
237 |
}
|
238 |
?>
|
239 |
-
<div class="bwg_slideshow_filmstrip_container_<?php echo
|
240 |
-
<div class="bwg_slideshow_filmstrip_left_<?php echo
|
241 |
<i class="<?php echo($filmstrip_direction == 'horizontal' ? 'bwg-icon-angle-left' : 'bwg-icon-angle-up'); ?>"></i>
|
242 |
</div>
|
243 |
-
<div class="bwg_slideshow_filmstrip_left_disabled_<?php echo
|
244 |
<i class="<?php echo($filmstrip_direction == 'horizontal' ? 'bwg-icon-angle-left' : 'bwg-icon-angle-up'); ?>"></i>
|
245 |
</div>
|
246 |
<div class="<?php echo $filmstrip_class_name; ?>">
|
247 |
-
<div class="bwg_slideshow_filmstrip_thumbnails_<?php echo
|
248 |
<?php
|
249 |
foreach ( $image_rows as $key => $image_row ) {
|
250 |
if ( $image_row->id == $current_image_id ) {
|
@@ -308,16 +308,16 @@ public function display($params = array(), $bwg = 0, $ajax = FALSE) {
|
|
308 |
$thumb_left = ($slideshow_filmstrip_width - $image_thumb_width) / 2;
|
309 |
$thumb_top = ($slideshow_filmstrip_height - $image_thumb_height) / 2;
|
310 |
?>
|
311 |
-
<div id="bwg_filmstrip_thumbnail_<?php echo
|
312 |
-
class="bwg_slideshow_filmstrip_thumbnail_<?php echo
|
313 |
-
data-style="width:<?php echo $slideshow_filmstrip_width; ?>px; height:<?php echo $slideshow_filmstrip_height; ?>px;"
|
314 |
>
|
315 |
-
<img class="bwg_filmstrip_thumbnail_img bwg_slideshow_filmstrip_thumbnail_img_<?php echo
|
316 |
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;"
|
317 |
-
data-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;"
|
318 |
src="<?php echo esc_url($bwg_thumb_url); ?>"
|
319 |
data-src="<?php echo esc_url($bwg_thumb_url); ?>"
|
320 |
-
onclick="bwg_change_image(parseInt(jQuery('#bwg_current_image_key_<?php echo $bwg; ?>').val()), '<?php echo $key; ?>', '', '', '<?php echo $bwg; ?>')"
|
321 |
image_id="<?php echo esc_attr($image_row->id); ?>"
|
322 |
image_key="<?php echo esc_attr($key); ?>"
|
323 |
alt="<?php echo esc_attr($image_row->alt); ?>"
|
@@ -328,10 +328,10 @@ public function display($params = array(), $bwg = 0, $ajax = FALSE) {
|
|
328 |
?>
|
329 |
</div>
|
330 |
</div>
|
331 |
-
<div class="bwg_slideshow_filmstrip_right_<?php echo
|
332 |
<i class="<?php echo($filmstrip_direction == 'horizontal' ? 'bwg-icon-angle-right' : 'bwg-icon-angle-down'); ?>"></i>
|
333 |
</div>
|
334 |
-
<div class="bwg_slideshow_filmstrip_right_disabled_<?php echo
|
335 |
<i class="<?php echo($filmstrip_direction == 'horizontal' ? 'bwg-icon-angle-right' : 'bwg-icon-angle-down'); ?>"></i>
|
336 |
</div>
|
337 |
</div>
|
@@ -339,8 +339,8 @@ public function display($params = array(), $bwg = 0, $ajax = FALSE) {
|
|
339 |
}
|
340 |
else {
|
341 |
?>
|
342 |
-
<div class="bwg_slideshow_dots_container_<?php echo
|
343 |
-
<div class="bwg_slideshow_dots_thumbnails_<?php echo
|
344 |
<?php
|
345 |
foreach ( $image_rows as $key => $image_row ) {
|
346 |
if ( $image_row->id == $current_image_id ) {
|
@@ -348,7 +348,7 @@ public function display($params = array(), $bwg = 0, $ajax = FALSE) {
|
|
348 |
$current_key = $key;
|
349 |
}
|
350 |
?>
|
351 |
-
<span id="bwg_dots_<?php echo
|
352 |
<?php
|
353 |
}
|
354 |
?>
|
@@ -359,14 +359,14 @@ public function display($params = array(), $bwg = 0, $ajax = FALSE) {
|
|
359 |
$bwg_param['bwg_current_filmstrip_pos'] = $current_pos;
|
360 |
$bwg_params = json_encode($bwg_param);
|
361 |
?>
|
362 |
-
<div id="bwg_slideshow_image_container_<?php echo
|
363 |
-
class="bwg_slideshow_image_container_<?php echo
|
364 |
data-params='<?php echo esc_attr($bwg_params); ?>'
|
365 |
-
data-filmstrip-position="<?php echo $theme_row->slideshow_filmstrip_pos; ?>"
|
366 |
-
data-filmstrip-size="<?php echo ($filmstrip_direction == 'horizontal' ? $slideshow_filmstrip_height : $slideshow_filmstrip_width); ?>">
|
367 |
-
<div class="bwg_slide_container_<?php echo
|
368 |
-
<div class="bwg_slide_bg_<?php echo
|
369 |
-
<div class="bwg_slider_<?php echo
|
370 |
<?php
|
371 |
foreach ( $image_rows as $key => $image_row ) {
|
372 |
$is_embed = preg_match('/EMBED/', $image_row->filetype) == 1 ? TRUE : FALSE;
|
@@ -375,15 +375,15 @@ public function display($params = array(), $bwg = 0, $ajax = FALSE) {
|
|
375 |
if ( $image_row->id == $current_image_id ) {
|
376 |
$current_key = $key;
|
377 |
?>
|
378 |
-
<span class="bwg_slideshow_image_spun_<?php echo
|
379 |
-
<span class="bwg_slideshow_image_spun1_<?php echo
|
380 |
-
<span class="bwg_slideshow_image_spun2_<?php echo
|
381 |
<?php
|
382 |
if ( !$is_embed ) {
|
383 |
?>
|
384 |
<a <?php echo($params['thumb_click_action'] == 'open_lightbox' ? (' class="bwg-a bwg_lightbox"' . (BWG()->options->enable_seo ? ' href="' . esc_url($is_embed ? $image_row->thumb_url : BWG()->upload_url . $image_row->image_url) . '"' : '') . ' data-image-id="' . esc_attr($image_row->id) . '" data-elementor-open-lightbox="no"') : ('class="bwg-a" ' . ($params['thumb_click_action'] == 'redirect_to_url' && $image_row->redirect_url ? 'href="' . esc_url($image_row->redirect_url) . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : ''))); ?>>
|
385 |
-
<img id="bwg_slideshow_image_<?php echo
|
386 |
-
class="skip-lazy bwg_slide bwg_slideshow_image_<?php echo
|
387 |
src="<?php if( !$lazyload ) { echo esc_url(BWG()->upload_url . $image_row->image_url); } else { echo esc_url(BWG()->plugin_url."/images/lazy_placeholder.gif"); } ?>"
|
388 |
data-src="<?php echo esc_url(BWG()->upload_url . $image_row->image_url); ?>"
|
389 |
image_id="<?php echo esc_attr($image_row->id); ?>"
|
@@ -393,7 +393,7 @@ public function display($params = array(), $bwg = 0, $ajax = FALSE) {
|
|
393 |
}
|
394 |
else { /*$is_embed*/
|
395 |
?>
|
396 |
-
<span id="bwg_slideshow_image_<?php echo
|
397 |
<?php echo $is_embed_instagram_video ? '<span class="bwg_inst_play_btn_cont" onclick="bwg_play_instagram_video(this)" ><span class="bwg_inst_play"></span></span>' : '';
|
398 |
if ( $is_embed_instagram_post ) {
|
399 |
$srcWidth = 640;
|
@@ -445,23 +445,23 @@ public function display($params = array(), $bwg = 0, $ajax = FALSE) {
|
|
445 |
</span>
|
446 |
</span>
|
447 |
</span>
|
448 |
-
<span class="bwg_slideshow_image_second_spun_<?php echo
|
449 |
</span>
|
450 |
-
<input type="hidden" id="bwg_current_image_key_<?php echo
|
451 |
<?php
|
452 |
break;
|
453 |
}
|
454 |
else {
|
455 |
?>
|
456 |
-
<span class="bwg_slideshow_image_second_spun_<?php echo
|
457 |
-
<span class="bwg_slideshow_image_spun1_<?php echo
|
458 |
-
<span class="bwg_slideshow_image_spun2_<?php echo
|
459 |
<?php
|
460 |
if ( !$is_embed ) {
|
461 |
?>
|
462 |
-
<a <?php echo($params['thumb_click_action'] == 'open_lightbox' ? (' class="bwg-a bwg_lightbox_' .
|
463 |
-
<img id="bwg_slideshow_image_<?php echo
|
464 |
-
class="skip-lazy bwg_slide bwg_slideshow_image_<?php echo
|
465 |
src="<?php if( !$lazyload ) { echo esc_url(BWG()->upload_url . $image_row->image_url); } else { echo esc_url(BWG()->plugin_url."/images/lazy_placeholder.gif"); } ?>"
|
466 |
data-src="<?php echo esc_url(BWG()->upload_url . $image_row->image_url); ?>"
|
467 |
image_id="<?php echo esc_attr($image_row->id); ?>"
|
@@ -470,7 +470,7 @@ public function display($params = array(), $bwg = 0, $ajax = FALSE) {
|
|
470 |
<?php
|
471 |
}
|
472 |
else { /*$is_embed*/ ?>
|
473 |
-
<span class="bwg_slideshow_embed_<?php echo
|
474 |
<?php
|
475 |
if ( $is_embed_instagram_post ) {
|
476 |
$srcWidth = 640;
|
@@ -532,9 +532,9 @@ public function display($params = array(), $bwg = 0, $ajax = FALSE) {
|
|
532 |
<?php
|
533 |
if ( $enable_slideshow_ctrl ) {
|
534 |
?>
|
535 |
-
<a class="bwg-a" id="spider_slideshow_left_<?php echo
|
536 |
-
<span id="bwg_slideshow_play_pause_<?php echo
|
537 |
-
<a class="bwg-a" id="spider_slideshow_right_<?php echo
|
538 |
<?php
|
539 |
}
|
540 |
?>
|
@@ -542,21 +542,21 @@ public function display($params = array(), $bwg = 0, $ajax = FALSE) {
|
|
542 |
<?php
|
543 |
if ( $params['watermark_type'] != 'none' ) {
|
544 |
?>
|
545 |
-
<div class="bwg_slideshow_image_container_<?php echo
|
546 |
-
<div class="bwg_slideshow_watermark_container_<?php echo
|
547 |
<div>
|
548 |
-
<span class="bwg_slideshow_watermark_spun_<?php echo
|
549 |
<?php
|
550 |
if ( $params['watermark_type'] == 'image' ) {
|
551 |
?>
|
552 |
<a class="bwg-a" href="<?php echo urldecode($watermark_link); ?>" target="_blank">
|
553 |
-
<img class="bwg_slideshow_watermark_image_<?php echo
|
554 |
</a>
|
555 |
<?php
|
556 |
}
|
557 |
elseif ( $params['watermark_type'] == 'text' ) {
|
558 |
?>
|
559 |
-
<a class="bwg_none_selectable_<?php echo
|
560 |
<?php
|
561 |
}
|
562 |
?>
|
@@ -568,11 +568,11 @@ public function display($params = array(), $bwg = 0, $ajax = FALSE) {
|
|
568 |
}
|
569 |
if ( $enable_image_title ) {
|
570 |
?>
|
571 |
-
<div class="bwg_slideshow_image_container_<?php echo
|
572 |
-
<div class="bwg_slideshow_watermark_container_<?php echo
|
573 |
<div>
|
574 |
-
<span class="bwg_slideshow_title_spun_<?php echo
|
575 |
-
<div class="bwg_slideshow_title_text_<?php echo
|
576 |
echo 'bwg-hidden';
|
577 |
} ?>">
|
578 |
<?php echo html_entity_decode($current_image_alt); ?>
|
@@ -585,11 +585,11 @@ public function display($params = array(), $bwg = 0, $ajax = FALSE) {
|
|
585 |
}
|
586 |
if ( $enable_image_description && isset($current_image_description) ) {
|
587 |
?>
|
588 |
-
<div class="bwg_slideshow_image_container_<?php echo
|
589 |
-
<div class="bwg_slideshow_watermark_container_<?php echo
|
590 |
<div>
|
591 |
-
<span class="bwg_slideshow_description_spun_<?php echo
|
592 |
-
<div class="bwg_slideshow_description_text_<?php echo
|
593 |
echo 'bwg-hidden';
|
594 |
} ?>">
|
595 |
<?php echo html_entity_decode(str_replace("\r\n", esc_html('<br />'), $current_image_description)); ?>
|
@@ -602,7 +602,7 @@ public function display($params = array(), $bwg = 0, $ajax = FALSE) {
|
|
602 |
}
|
603 |
if ( $enable_slideshow_music ) {
|
604 |
?>
|
605 |
-
<audio id="bwg_audio_<?php echo
|
606 |
<?php
|
607 |
}
|
608 |
?>
|
@@ -622,202 +622,202 @@ public function display($params = array(), $bwg = 0, $ajax = FALSE) {
|
|
622 |
public function inline_styles($bwg, $theme_row, $params, $image_width, $image_height, $filmstrip_direction, $slideshow_filmstrip_height, $options, $left_or_top, $width_or_height, $filmstrip_thumb_margin_hor, $slideshow_filmstrip_width, $image_rows, $watermark_position, $slideshow_title_position, $slideshow_description_position, $watermark_height, $watermark_width, $watermark_opacity, $watermark_font_size, $watermark_font, $watermark_color, $slideshow_filmstrip_type) {
|
623 |
ob_start();
|
624 |
?>
|
625 |
-
#bwg_container1_<?php echo $bwg; ?> {
|
626 |
display: table;
|
627 |
/*visibility: hidden;*/
|
628 |
}
|
629 |
-
#bwg_container1_<?php echo $bwg; ?> * {
|
630 |
-moz-user-select: none;
|
631 |
-khtml-user-select: none;
|
632 |
-webkit-user-select: none;
|
633 |
-ms-user-select: none;
|
634 |
user-select: none;
|
635 |
}
|
636 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_image_wrap_<?php echo $bwg; ?> {
|
637 |
background-color: #<?php echo $theme_row->slideshow_cont_bg_color; ?>;
|
638 |
-
width: <?php echo $image_width; ?>px;
|
639 |
-
height: <?php echo $image_height; ?>px;
|
640 |
-
}
|
641 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_image_<?php echo $bwg; ?> {
|
642 |
-
max-width: <?php echo $image_width - ($filmstrip_direction == 'vertical' ? $slideshow_filmstrip_width : 0); ?>px;
|
643 |
-
max-height: <?php echo $image_height - ($filmstrip_direction == 'horizontal' ? $slideshow_filmstrip_height : 0); ?>px;
|
644 |
-
}
|
645 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_embed_<?php echo $bwg; ?> {
|
646 |
-
width: <?php echo $image_width - ($filmstrip_direction == 'vertical' ? $slideshow_filmstrip_width : 0); ?>px;
|
647 |
-
height: <?php echo $image_height - ($filmstrip_direction == 'horizontal' ? $slideshow_filmstrip_height : 0); ?>px;
|
648 |
-
}
|
649 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #bwg_slideshow_play_pause_<?php echo $bwg; ?> {
|
650 |
-
background: transparent url("<?php echo BWG()->plugin_url . '/images/blank.gif'; ?>") repeat scroll 0 0;
|
651 |
-
}
|
652 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #bwg_slideshow_play_pause-ico_<?php echo $bwg; ?> {
|
653 |
-
color: #<?php echo $theme_row->slideshow_rl_btn_color; ?>;
|
654 |
-
font-size: <?php echo $theme_row->slideshow_play_pause_btn_size; ?>px;
|
655 |
-
}
|
656 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #bwg_slideshow_play_pause-ico_<?php echo $bwg; ?>:hover {
|
657 |
-
color: #<?php echo $theme_row->slideshow_close_rl_btn_hover_color; ?>;
|
658 |
-
}
|
659 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_slideshow_left_<?php echo $bwg; ?>,
|
660 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_slideshow_right_<?php echo $bwg; ?> {
|
661 |
-
background: transparent url("<?php echo BWG()->plugin_url . '/images/blank.gif'; ?>") repeat scroll 0 0;
|
662 |
-
}
|
663 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_slideshow_left-ico_<?php echo $bwg; ?>,
|
664 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_slideshow_right-ico_<?php echo $bwg; ?> {
|
665 |
-
background-color: #<?php echo $theme_row->slideshow_rl_btn_bg_color; ?>;
|
666 |
-
border-radius: <?php echo $theme_row->slideshow_rl_btn_border_radius; ?>;
|
667 |
-
border: <?php echo $theme_row->slideshow_rl_btn_border_width; ?>px <?php echo $theme_row->slideshow_rl_btn_border_style; ?> #<?php echo $theme_row->slideshow_rl_btn_border_color; ?>;
|
668 |
-
box-shadow: <?php echo $theme_row->slideshow_rl_btn_box_shadow; ?>;
|
669 |
-
color: #<?php echo $theme_row->slideshow_rl_btn_color; ?>;
|
670 |
-
height: <?php echo $theme_row->slideshow_rl_btn_height; ?>px;
|
671 |
-
font-size: <?php echo $theme_row->slideshow_rl_btn_size; ?>px;
|
672 |
-
width: <?php echo $theme_row->slideshow_rl_btn_width; ?>px;
|
673 |
opacity: <?php echo number_format($theme_row->slideshow_close_btn_transparent / 100, 2, ".", ""); ?>;
|
674 |
}
|
675 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_slideshow_left-ico_<?php echo $bwg; ?>:hover,
|
676 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_slideshow_right-ico_<?php echo $bwg; ?>:hover {
|
677 |
-
color: #<?php echo $theme_row->slideshow_close_rl_btn_hover_color; ?>;
|
678 |
}
|
679 |
<?php
|
680 |
if ( $params['autohide_slideshow_navigation'] ) {
|
681 |
?>
|
682 |
-
#spider_slideshow_left-ico_<?php echo $bwg; ?>{
|
683 |
left: -9999px;
|
684 |
}
|
685 |
-
#spider_slideshow_right-ico_<?php echo $bwg; ?>{
|
686 |
left: -9999px;
|
687 |
}
|
688 |
<?php
|
689 |
}
|
690 |
else {
|
691 |
?>
|
692 |
-
#spider_slideshow_left-ico_<?php echo $bwg; ?>{
|
693 |
left: 20px;
|
694 |
}
|
695 |
-
#spider_slideshow_right-ico_<?php echo $bwg; ?>{
|
696 |
left: auto;
|
697 |
right: 20px;
|
698 |
}
|
699 |
<?php
|
700 |
}
|
701 |
?>
|
702 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_image_container_<?php echo $bwg; ?> {
|
703 |
-
<?php echo $theme_row->slideshow_filmstrip_pos; ?>: <?php echo ($filmstrip_direction == 'horizontal' ? $slideshow_filmstrip_height : $slideshow_filmstrip_width); ?>px;
|
704 |
-
width: <?php echo $image_width; ?>px;
|
705 |
-
height: <?php echo $image_height; ?>px;
|
706 |
}
|
707 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_filmstrip_container_<?php echo $bwg; ?> {
|
708 |
-
display: <?php echo ($filmstrip_direction == 'horizontal'? 'table' : 'block'); ?>;
|
709 |
-
height: <?php echo ($filmstrip_direction == 'horizontal'? $slideshow_filmstrip_height : $image_height); ?>px;
|
710 |
-
width: <?php echo ($filmstrip_direction == 'horizontal' ? $image_width : $slideshow_filmstrip_width); ?>px;
|
711 |
-
<?php echo $theme_row->slideshow_filmstrip_pos; ?>: 0;
|
712 |
}
|
713 |
/* Filmstrip dimension */
|
714 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_filmstrip_<?php echo $bwg; ?> {
|
715 |
-
<?php echo $left_or_top; ?>: 20px;
|
716 |
-
<?php echo $width_or_height; ?>: <?php echo ($filmstrip_direction == 'horizontal' ? $image_width - 40 : $image_height - 40); ?>px;
|
717 |
/*z-index: 10106;*/
|
718 |
}
|
719 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_filmstrip_thumbnails_<?php echo $bwg; ?> {
|
720 |
-
<?php echo $left_or_top; ?>: 0px;
|
721 |
-
width: <?php echo ($filmstrip_direction == 'horizontal' ? ($slideshow_filmstrip_width + $filmstrip_thumb_margin_hor) * count($image_rows) : $slideshow_filmstrip_width); ?>px;
|
722 |
-
height: <?php echo ($filmstrip_direction == 'horizontal' ? $slideshow_filmstrip_height : ($slideshow_filmstrip_height + $filmstrip_thumb_margin_hor) * count($image_rows)); ?>px;
|
723 |
}
|
724 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_filmstrip_thumbnail_<?php echo $bwg; ?> {
|
725 |
-
width: <?php echo $slideshow_filmstrip_width; ?>px;
|
726 |
-
height: <?php echo $slideshow_filmstrip_height; ?>px;
|
727 |
-
margin: <?php echo $theme_row->slideshow_filmstrip_thumb_margin; ?>;
|
728 |
-
border: <?php echo $theme_row->slideshow_filmstrip_thumb_border_width; ?>px <?php echo $theme_row->slideshow_filmstrip_thumb_border_style; ?> #<?php echo $theme_row->slideshow_filmstrip_thumb_border_color; ?>;
|
729 |
-
border-radius: <?php echo $theme_row->slideshow_filmstrip_thumb_border_radius; ?>;
|
730 |
}
|
731 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_thumb_active_<?php echo $bwg; ?> {
|
732 |
-
border: <?php echo $theme_row->slideshow_filmstrip_thumb_active_border_width; ?>px solid #<?php echo $theme_row->slideshow_filmstrip_thumb_active_border_color; ?>;
|
733 |
}
|
734 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_thumb_deactive_<?php echo $bwg; ?> {
|
735 |
opacity: <?php echo number_format($theme_row->slideshow_filmstrip_thumb_deactive_transparent / 100, 2, ".", ""); ?>;
|
736 |
}
|
737 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_filmstrip_left_<?php echo $bwg; ?>,
|
738 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_filmstrip_left_disabled_<?php echo $bwg; ?> {
|
739 |
background-color: #<?php echo $theme_row->slideshow_filmstrip_rl_bg_color; ?>;
|
740 |
display: <?php echo ($filmstrip_direction == 'horizontal' ? 'table-cell' : 'block') ?>;
|
741 |
-
<?php echo $width_or_height; ?>: 20px;
|
742 |
-
<?php echo $left_or_top; ?>: 0;
|
743 |
<?php echo ($filmstrip_direction == 'horizontal' ? '' : 'position: absolute;') ?>
|
744 |
<?php echo ($filmstrip_direction == 'horizontal' ? '' : 'width: 100%;') ?>
|
745 |
}
|
746 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_filmstrip_right_<?php echo $bwg; ?>,
|
747 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_filmstrip_right_disabled_<?php echo $bwg; ?> {
|
748 |
background-color: #<?php echo $theme_row->slideshow_filmstrip_rl_bg_color; ?>;
|
749 |
display: <?php echo ($filmstrip_direction == 'horizontal' ? 'table-cell' : 'block') ?>;
|
750 |
<?php echo($filmstrip_direction == 'horizontal' ? 'right' : 'bottom') ?>: 0;
|
751 |
-
<?php echo $width_or_height; ?>: 20px;
|
752 |
<?php echo ($filmstrip_direction == 'horizontal' ? '' : 'position: absolute;') ?>
|
753 |
<?php echo ($filmstrip_direction == 'horizontal' ? '' : 'width: 100%;') ?>
|
754 |
}
|
755 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_filmstrip_left_<?php echo $bwg; ?> i,
|
756 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_filmstrip_right_<?php echo $bwg; ?> i,
|
757 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_filmstrip_left_disabled_<?php echo $bwg; ?> i,
|
758 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_filmstrip_right_disabled_<?php echo $bwg; ?> i {
|
759 |
-
color: #<?php echo $theme_row->slideshow_filmstrip_rl_btn_color; ?>;
|
760 |
-
font-size: <?php echo $theme_row->slideshow_filmstrip_rl_btn_size; ?>px;
|
761 |
}
|
762 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_filmstrip_left_<?php echo $bwg; ?> {
|
763 |
display: none;
|
764 |
}
|
765 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_filmstrip_left_disabled_<?php echo $bwg; ?>,
|
766 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_filmstrip_right_disabled_<?php echo $bwg; ?> {
|
767 |
display: none;
|
768 |
opacity: 0.3;
|
769 |
}
|
770 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_filmstrip_left_disabled_<?php echo $bwg; ?> {
|
771 |
display: <?php echo ($filmstrip_direction == 'horizontal' ? 'table-cell' : 'block') ?>;
|
772 |
}
|
773 |
<?php
|
774 |
/* Filmstrip fix count */
|
775 |
if ( !empty($slideshow_filmstrip_type) && $slideshow_filmstrip_type == 2 ) {
|
776 |
?>
|
777 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_filmstrip_fix_count_<?php echo $bwg; ?> {
|
778 |
-
<?php echo $left_or_top; ?>: 20px;
|
779 |
-
<?php echo $width_or_height; ?>: <?php echo ($filmstrip_direction == 'horizontal' ? $image_width - 40 : $image_height - 40); ?>px;
|
780 |
}
|
781 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_filmstrip_fix_count_<?php echo $bwg; ?> .bwg_slideshow_filmstrip_thumbnails_<?php echo $bwg; ?> .bwg_slideshow_filmstrip_thumbnail_<?php echo $bwg; ?> {
|
782 |
-
width: <?php echo $slideshow_filmstrip_width; ?>px;
|
783 |
-
height: <?php echo $slideshow_filmstrip_height; ?>px;
|
784 |
}
|
785 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_filmstrip_fix_count_<?php echo $bwg; ?> .bwg_slideshow_filmstrip_thumbnails_<?php echo $bwg; ?> .bwg_slideshow_filmstrip_thumbnail_<?php echo $bwg; ?> img {
|
786 |
object-fit: cover;
|
787 |
}
|
788 |
<?php } ?>
|
789 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_watermark_spun_<?php echo $bwg; ?> {
|
790 |
-
text-align: <?php echo $watermark_position[1]; ?>;
|
791 |
-
vertical-align: <?php echo $watermark_position[0]; ?>;
|
792 |
}
|
793 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_title_spun_<?php echo $bwg; ?> {
|
794 |
-
text-align: <?php echo $slideshow_title_position[1]; ?>;
|
795 |
-
vertical-align: <?php echo $slideshow_title_position[0]; ?>;
|
796 |
}
|
797 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_description_spun_<?php echo $bwg; ?> {
|
798 |
-
text-align: <?php echo $slideshow_description_position[1]; ?>;
|
799 |
-
vertical-align: <?php echo $slideshow_description_position[0]; ?>;
|
800 |
}
|
801 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_watermark_image_<?php echo $bwg; ?> {
|
802 |
-
max-height: <?php echo $watermark_height; ?>px;
|
803 |
-
max-width: <?php echo $watermark_width; ?>px;
|
804 |
opacity: <?php echo number_format($watermark_opacity / 100, 2, ".", ""); ?>;
|
805 |
}
|
806 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_watermark_text_<?php echo $bwg; ?>,
|
807 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_watermark_text_<?php echo $bwg; ?>:hover {
|
808 |
text-decoration: none;
|
809 |
margin: 4px;
|
810 |
position: relative;
|
811 |
z-index: 15;
|
812 |
}
|
813 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_title_text_<?php echo $bwg; ?> {
|
814 |
-
font-size: <?php echo $theme_row->slideshow_title_font_size; ?>px;
|
815 |
-
font-family: <?php echo $theme_row->slideshow_title_font; ?>;
|
816 |
-
color: #<?php echo $theme_row->slideshow_title_color; ?> !important;
|
817 |
opacity: <?php echo number_format($theme_row->slideshow_title_opacity / 100, 2, ".", ""); ?>;
|
818 |
-
border-radius: <?php echo $theme_row->slideshow_title_border_radius; ?>;
|
819 |
-
background-color: #<?php echo $theme_row->slideshow_title_background_color; ?>;
|
820 |
-
padding: <?php echo $theme_row->slideshow_title_padding; ?>;
|
821 |
<?php if($params['slideshow_title_full_width']) { ?>
|
822 |
width: 100%;
|
823 |
<?php } else { ?>
|
@@ -825,38 +825,38 @@ public function inline_styles($bwg, $theme_row, $params, $image_width, $image_he
|
|
825 |
<?php } ?>
|
826 |
<?php if (!$slideshow_filmstrip_type && $slideshow_title_position[0] == $theme_row->slideshow_filmstrip_pos) echo $theme_row->slideshow_filmstrip_pos . ':' . ($theme_row->slideshow_dots_height + 4) . 'px;'; ?>
|
827 |
}
|
828 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_description_text_<?php echo $bwg; ?> {
|
829 |
-
font-size: <?php echo $theme_row->slideshow_description_font_size; ?>px;
|
830 |
-
font-family: <?php echo $theme_row->slideshow_description_font; ?>;
|
831 |
-
color: #<?php echo $theme_row->slideshow_description_color; ?> !important;
|
832 |
opacity: <?php echo number_format($theme_row->slideshow_description_opacity / 100, 2, ".", ""); ?>;
|
833 |
-
border-radius: <?php echo $theme_row->slideshow_description_border_radius; ?>;
|
834 |
-
background-color: #<?php echo $theme_row->slideshow_description_background_color; ?>;
|
835 |
-
padding: <?php echo $theme_row->slideshow_description_padding; ?>;
|
836 |
-
<?php if (!$slideshow_filmstrip_type && $slideshow_description_position[0] == $theme_row->slideshow_filmstrip_pos) echo $theme_row->slideshow_filmstrip_pos . ':' . ($theme_row->slideshow_dots_height + 4) . 'px;'; ?>
|
837 |
}
|
838 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_description_text_<?php echo $bwg; ?> * {
|
839 |
text-decoration: none;
|
840 |
-
color: #<?php echo $theme_row->slideshow_description_color; ?> !important;
|
841 |
-
}
|
842 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_dots_<?php echo $bwg; ?> {
|
843 |
-
width: <?php echo $theme_row->slideshow_dots_width; ?>px;
|
844 |
-
height: <?php echo $theme_row->slideshow_dots_height; ?>px;
|
845 |
-
border-radius: <?php echo $theme_row->slideshow_dots_border_radius; ?>;
|
846 |
-
background: #<?php echo $theme_row->slideshow_dots_background_color; ?>;
|
847 |
-
margin: <?php echo $theme_row->slideshow_dots_margin; ?>px;
|
848 |
-
}
|
849 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_dots_container_<?php echo $bwg; ?> {
|
850 |
-
width: <?php echo $image_width; ?>px;
|
851 |
-
<?php echo $theme_row->slideshow_filmstrip_pos; ?>: 0;
|
852 |
-
}
|
853 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_dots_thumbnails_<?php echo $bwg; ?> {
|
854 |
-
height: <?php echo ($theme_row->slideshow_dots_height + $theme_row->slideshow_dots_margin * 2); ?>px;
|
855 |
-
width: <?php echo ($theme_row->slideshow_dots_width + $theme_row->slideshow_dots_margin * 2) * count($image_rows); ?>px;
|
856 |
-
}
|
857 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_dots_active_<?php echo $bwg; ?> {
|
858 |
-
background: #<?php echo $theme_row->slideshow_dots_active_background_color; ?>;
|
859 |
-
border: <?php echo $theme_row->slideshow_dots_active_border_width; ?>px solid #<?php echo $theme_row->slideshow_dots_active_border_color; ?>;
|
860 |
}
|
861 |
<?php
|
862 |
return ob_get_clean();
|
135 |
}
|
136 |
}
|
137 |
else {
|
138 |
+
echo '<style id="bwg-style-' . esc_attr($bwg) . '">' . strip_tags($inline_style) . '</style>';
|
139 |
}
|
140 |
}
|
141 |
else {
|
142 |
+
echo '<style id="bwg-style-' . esc_attr($bwg) . '">' . strip_tags($inline_style) . '</style>';
|
143 |
}
|
144 |
|
145 |
$data = array();
|
223 |
'enable_slideshow_music' => $enable_slideshow_music,
|
224 |
);
|
225 |
?>
|
226 |
+
<div class="bwg_slideshow_image_wrap_<?php echo esc_attr($bwg); ?> bwg-slideshow-images-wrapper bwg-container"
|
227 |
data-bwg="<?php echo esc_attr($bwg); ?>"
|
228 |
data-lightbox-url="<?php echo esc_url(addslashes(add_query_arg($params['params_array'], admin_url('admin-ajax.php')))); ?>">
|
229 |
<?php
|
231 |
// Slideshow filmstrip type is Fix dimension or Fix count.
|
232 |
if ( $slideshow_filmstrip_type == 1 || $slideshow_filmstrip_type == 2 ) {
|
233 |
|
234 |
+
$filmstrip_class_name = 'bwg_slideshow_filmstrip_' . esc_attr($bwg) . ' bwg_slideshow_filmstrip';
|
235 |
if ( $slideshow_filmstrip_type == 2 ) {
|
236 |
+
$filmstrip_class_name = 'bwg_slideshow_filmstrip_fix_count_' . esc_attr($bwg) . ' bwg_slideshow_filmstrip_fix_count';
|
237 |
}
|
238 |
?>
|
239 |
+
<div class="bwg_slideshow_filmstrip_container_<?php echo esc_attr($bwg); ?>">
|
240 |
+
<div class="bwg_slideshow_filmstrip_left_<?php echo esc_attr($bwg); ?>">
|
241 |
<i class="<?php echo($filmstrip_direction == 'horizontal' ? 'bwg-icon-angle-left' : 'bwg-icon-angle-up'); ?>"></i>
|
242 |
</div>
|
243 |
+
<div class="bwg_slideshow_filmstrip_left_disabled_<?php echo esc_attr($bwg); ?>">
|
244 |
<i class="<?php echo($filmstrip_direction == 'horizontal' ? 'bwg-icon-angle-left' : 'bwg-icon-angle-up'); ?>"></i>
|
245 |
</div>
|
246 |
<div class="<?php echo $filmstrip_class_name; ?>">
|
247 |
+
<div class="bwg_slideshow_filmstrip_thumbnails_<?php echo esc_attr($bwg); ?>">
|
248 |
<?php
|
249 |
foreach ( $image_rows as $key => $image_row ) {
|
250 |
if ( $image_row->id == $current_image_id ) {
|
308 |
$thumb_left = ($slideshow_filmstrip_width - $image_thumb_width) / 2;
|
309 |
$thumb_top = ($slideshow_filmstrip_height - $image_thumb_height) / 2;
|
310 |
?>
|
311 |
+
<div id="bwg_filmstrip_thumbnail_<?php echo esc_attr($key.'_'.$bwg); ?>"
|
312 |
+
class="bwg_slideshow_filmstrip_thumbnail_<?php echo esc_attr($bwg); ?> <?php echo(($image_row->id == $current_image_id) ? 'bwg_slideshow_thumb_active_' . esc_attr($bwg) : 'bwg_slideshow_thumb_deactive_' . esc_attr($bwg)); ?>"
|
313 |
+
data-style="width:<?php echo esc_html($slideshow_filmstrip_width); ?>px; height:<?php echo esc_html($slideshow_filmstrip_height); ?>px;"
|
314 |
>
|
315 |
+
<img class="bwg_filmstrip_thumbnail_img bwg_slideshow_filmstrip_thumbnail_img_<?php echo esc_attr($bwg); ?>"
|
316 |
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;"
|
317 |
+
data-style="width:<?php echo esc_html($image_thumb_width); ?>px; height:<?php echo esc_html($image_thumb_height); ?>px; margin-left: <?php echo esc_html($thumb_left); ?>px; margin-top: <?php echo esc_html($thumb_top); ?>px;"
|
318 |
src="<?php echo esc_url($bwg_thumb_url); ?>"
|
319 |
data-src="<?php echo esc_url($bwg_thumb_url); ?>"
|
320 |
+
onclick="bwg_change_image(parseInt(jQuery('#bwg_current_image_key_<?php echo esc_attr($bwg); ?>').val()), '<?php echo $key; ?>', '', '', '<?php echo esc_attr($bwg); ?>')"
|
321 |
image_id="<?php echo esc_attr($image_row->id); ?>"
|
322 |
image_key="<?php echo esc_attr($key); ?>"
|
323 |
alt="<?php echo esc_attr($image_row->alt); ?>"
|
328 |
?>
|
329 |
</div>
|
330 |
</div>
|
331 |
+
<div class="bwg_slideshow_filmstrip_right_<?php echo esc_attr($bwg); ?>">
|
332 |
<i class="<?php echo($filmstrip_direction == 'horizontal' ? 'bwg-icon-angle-right' : 'bwg-icon-angle-down'); ?>"></i>
|
333 |
</div>
|
334 |
+
<div class="bwg_slideshow_filmstrip_right_disabled_<?php echo esc_attr($bwg); ?>">
|
335 |
<i class="<?php echo($filmstrip_direction == 'horizontal' ? 'bwg-icon-angle-right' : 'bwg-icon-angle-down'); ?>"></i>
|
336 |
</div>
|
337 |
</div>
|
339 |
}
|
340 |
else {
|
341 |
?>
|
342 |
+
<div class="bwg_slideshow_dots_container_<?php echo esc_attr($bwg); ?>">
|
343 |
+
<div class="bwg_slideshow_dots_thumbnails_<?php echo esc_attr($bwg); ?>">
|
344 |
<?php
|
345 |
foreach ( $image_rows as $key => $image_row ) {
|
346 |
if ( $image_row->id == $current_image_id ) {
|
348 |
$current_key = $key;
|
349 |
}
|
350 |
?>
|
351 |
+
<span id="bwg_dots_<?php echo esc_attr($key.'_'.$bwg); ?>" class="bwg_slideshow_dots_<?php echo esc_attr($bwg); ?> <?php echo(($image_row->id == $current_image_id) ? 'bwg_slideshow_dots_active_' . esc_attr($bwg) : 'bwg_slideshow_dots_deactive_' . esc_attr($bwg)); ?>" onclick="bwg_change_image(parseInt(jQuery('#bwg_current_image_key_<?php echo esc_attr($bwg); ?>').val()), '<?php echo esc_attr($key); ?>', '', '', <?php echo esc_attr($bwg); ?>)" image_id="<?php echo esc_attr($image_row->id); ?>" image_key="<?php echo esc_attr($key); ?>"></span>
|
352 |
<?php
|
353 |
}
|
354 |
?>
|
359 |
$bwg_param['bwg_current_filmstrip_pos'] = $current_pos;
|
360 |
$bwg_params = json_encode($bwg_param);
|
361 |
?>
|
362 |
+
<div id="bwg_slideshow_image_container_<?php echo esc_attr($bwg); ?>"
|
363 |
+
class="bwg_slideshow_image_container_<?php echo esc_attr($bwg); ?>"
|
364 |
data-params='<?php echo esc_attr($bwg_params); ?>'
|
365 |
+
data-filmstrip-position="<?php echo esc_attr($theme_row->slideshow_filmstrip_pos); ?>"
|
366 |
+
data-filmstrip-size="<?php echo esc_attr($filmstrip_direction == 'horizontal' ? $slideshow_filmstrip_height : $slideshow_filmstrip_width); ?>">
|
367 |
+
<div class="bwg_slide_container_<?php echo esc_attr($bwg); ?>">
|
368 |
+
<div class="bwg_slide_bg_<?php echo esc_attr($bwg); ?>">
|
369 |
+
<div class="bwg_slider_<?php echo esc_attr($bwg); ?>">
|
370 |
<?php
|
371 |
foreach ( $image_rows as $key => $image_row ) {
|
372 |
$is_embed = preg_match('/EMBED/', $image_row->filetype) == 1 ? TRUE : FALSE;
|
375 |
if ( $image_row->id == $current_image_id ) {
|
376 |
$current_key = $key;
|
377 |
?>
|
378 |
+
<span class="bwg_slideshow_image_spun_<?php echo esc_attr($bwg); ?>" id="image_id_<?php echo esc_attr($bwg.'_'.$image_row->id); ?>">
|
379 |
+
<span class="bwg_slideshow_image_spun1_<?php echo esc_attr($bwg); ?>">
|
380 |
+
<span class="bwg_slideshow_image_spun2_<?php echo esc_attr($bwg); ?>">
|
381 |
<?php
|
382 |
if ( !$is_embed ) {
|
383 |
?>
|
384 |
<a <?php echo($params['thumb_click_action'] == 'open_lightbox' ? (' class="bwg-a bwg_lightbox"' . (BWG()->options->enable_seo ? ' href="' . esc_url($is_embed ? $image_row->thumb_url : BWG()->upload_url . $image_row->image_url) . '"' : '') . ' data-image-id="' . esc_attr($image_row->id) . '" data-elementor-open-lightbox="no"') : ('class="bwg-a" ' . ($params['thumb_click_action'] == 'redirect_to_url' && $image_row->redirect_url ? 'href="' . esc_url($image_row->redirect_url) . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : ''))); ?>>
|
385 |
+
<img id="bwg_slideshow_image_<?php echo esc_attr($bwg); ?>"
|
386 |
+
class="skip-lazy bwg_slide bwg_slideshow_image_<?php echo esc_attr($bwg); ?> <?php if( $lazyload ) { ?> bwg_lazyload <?php } ?>"
|
387 |
src="<?php if( !$lazyload ) { echo esc_url(BWG()->upload_url . $image_row->image_url); } else { echo esc_url(BWG()->plugin_url."/images/lazy_placeholder.gif"); } ?>"
|
388 |
data-src="<?php echo esc_url(BWG()->upload_url . $image_row->image_url); ?>"
|
389 |
image_id="<?php echo esc_attr($image_row->id); ?>"
|
393 |
}
|
394 |
else { /*$is_embed*/
|
395 |
?>
|
396 |
+
<span id="bwg_slideshow_image_<?php echo esc_attr($bwg); ?>" class="bwg_slideshow_embed_<?php echo esc_attr($bwg); ?>" image_id="<?php echo esc_attr($image_row->id); ?>">
|
397 |
<?php echo $is_embed_instagram_video ? '<span class="bwg_inst_play_btn_cont" onclick="bwg_play_instagram_video(this)" ><span class="bwg_inst_play"></span></span>' : '';
|
398 |
if ( $is_embed_instagram_post ) {
|
399 |
$srcWidth = 640;
|
445 |
</span>
|
446 |
</span>
|
447 |
</span>
|
448 |
+
<span class="bwg_slideshow_image_second_spun_<?php echo esc_attr($bwg); ?>">
|
449 |
</span>
|
450 |
+
<input type="hidden" id="bwg_current_image_key_<?php echo esc_attr($bwg); ?>" value="<?php echo esc_attr($key); ?>" />
|
451 |
<?php
|
452 |
break;
|
453 |
}
|
454 |
else {
|
455 |
?>
|
456 |
+
<span class="bwg_slideshow_image_second_spun_<?php echo esc_attr($bwg); ?>" id="image_id_<?php echo esc_attr($bwg.'_'.$image_row->id); ?>">
|
457 |
+
<span class="bwg_slideshow_image_spun1_<?php echo esc_attr($bwg); ?>">
|
458 |
+
<span class="bwg_slideshow_image_spun2_<?php echo esc_attr($bwg); ?>">
|
459 |
<?php
|
460 |
if ( !$is_embed ) {
|
461 |
?>
|
462 |
+
<a <?php echo($params['thumb_click_action'] == 'open_lightbox' ? (' class="bwg-a bwg_lightbox_' . esc_attr($bwg) . '"' . (BWG()->options->enable_seo ? ' href="' . esc_url($is_embed ? $image_row->thumb_url : BWG()->upload_url . $image_row->image_url) . '"' : '') . ' data-image-id="' . esc_attr($image_row->id) . '"') : ('class="bwg-a" ' . ($params['thumb_click_action'] == 'redirect_to_url' && $image_row->redirect_url ? 'href="' . esc_url($image_row->redirect_url) . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : ''))) ?>>
|
463 |
+
<img id="bwg_slideshow_image_<?php echo esc_attr($bwg); ?>"
|
464 |
+
class="skip-lazy bwg_slide bwg_slideshow_image_<?php echo esc_attr($bwg); ?> <?php if( $lazyload ) { ?> bwg_lazyload lazy_loader <?php } ?>"
|
465 |
src="<?php if( !$lazyload ) { echo esc_url(BWG()->upload_url . $image_row->image_url); } else { echo esc_url(BWG()->plugin_url."/images/lazy_placeholder.gif"); } ?>"
|
466 |
data-src="<?php echo esc_url(BWG()->upload_url . $image_row->image_url); ?>"
|
467 |
image_id="<?php echo esc_attr($image_row->id); ?>"
|
470 |
<?php
|
471 |
}
|
472 |
else { /*$is_embed*/ ?>
|
473 |
+
<span class="bwg_slideshow_embed_<?php echo esc_attr($bwg); ?>">
|
474 |
<?php
|
475 |
if ( $is_embed_instagram_post ) {
|
476 |
$srcWidth = 640;
|
532 |
<?php
|
533 |
if ( $enable_slideshow_ctrl ) {
|
534 |
?>
|
535 |
+
<a class="bwg-a" id="spider_slideshow_left_<?php echo esc_attr($bwg); ?>" onclick="bwg_change_image(parseInt(jQuery('#bwg_current_image_key_<?php echo esc_attr($bwg); ?>').val()), (parseInt(jQuery('#bwg_current_image_key_<?php echo esc_attr($bwg); ?>').val()) + <?php echo count($data[$bwg]); ?> - bwg_iterator(<?php echo esc_attr($bwg); ?>)) % <?php echo count($data[$bwg]); ?>, '', '', <?php echo esc_attr($bwg); ?>); return false;"><span id="spider_slideshow_left-ico_<?php echo esc_attr($bwg); ?>"><span><i class="<?php echo esc_attr($theme_row->slideshow_rl_btn_style); ?>-left bwg_slideshow_prev_btn_<?php echo esc_attr($bwg); ?>"></i></span></span></a>
|
536 |
+
<span id="bwg_slideshow_play_pause_<?php echo esc_attr($bwg); ?>" class="bwg_slideshow_play_pause" style="display: <?php echo $play_pause_button_display; ?>;"><span><span id="bwg_slideshow_play_pause-ico_<?php echo esc_attr($bwg); ?>"><i class="bwg-icon-play bwg_ctrl_btn_<?php echo esc_attr($bwg); ?> bwg_slideshow_play_pause_<?php echo esc_attr($bwg); ?>"></i></span></span></span>
|
537 |
+
<a class="bwg-a" id="spider_slideshow_right_<?php echo esc_attr($bwg); ?>" onclick="bwg_change_image(parseInt(jQuery('#bwg_current_image_key_<?php echo esc_attr($bwg); ?>').val()), (parseInt(jQuery('#bwg_current_image_key_<?php echo esc_attr($bwg); ?>').val()) + bwg_iterator(<?php echo esc_attr($bwg); ?>)) % <?php echo count($data[$bwg]); ?>, '', '', <?php echo esc_attr($bwg); ?>); return false;"><span id="spider_slideshow_right-ico_<?php echo esc_attr($bwg); ?>"><span><i class="<?php echo esc_attr($theme_row->slideshow_rl_btn_style); ?>-right bwg_slideshow_next_btn_<?php echo esc_attr($bwg); ?>"></i></span></span></a>
|
538 |
<?php
|
539 |
}
|
540 |
?>
|
542 |
<?php
|
543 |
if ( $params['watermark_type'] != 'none' ) {
|
544 |
?>
|
545 |
+
<div class="bwg_slideshow_image_container_<?php echo esc_attr($bwg); ?> bwg_slideshow_image_container" data-params="<?php echo esc_attr($bwg_params); ?>">
|
546 |
+
<div class="bwg_slideshow_watermark_container_<?php echo esc_attr($bwg); ?>">
|
547 |
<div>
|
548 |
+
<span class="bwg_slideshow_watermark_spun_<?php echo esc_attr($bwg); ?>" id="bwg_slideshow_watermark_container_<?php echo esc_attr($bwg); ?>">
|
549 |
<?php
|
550 |
if ( $params['watermark_type'] == 'image' ) {
|
551 |
?>
|
552 |
<a class="bwg-a" href="<?php echo urldecode($watermark_link); ?>" target="_blank">
|
553 |
+
<img class="bwg_slideshow_watermark_image_<?php echo esc_attr($bwg); ?> bwg_slideshow_watermark_<?php echo esc_attr($bwg); ?>" src="<?php echo urldecode($watermark_url); ?>" />
|
554 |
</a>
|
555 |
<?php
|
556 |
}
|
557 |
elseif ( $params['watermark_type'] == 'text' ) {
|
558 |
?>
|
559 |
+
<a class="bwg_none_selectable_<?php echo esc_attr($bwg); ?> bwg_slideshow_watermark_text_<?php echo esc_attr($bwg); ?> bwg_slideshow_watermark_<?php echo esc_attr($bwg); ?>" target="_blank" href="<?php echo urldecode($watermark_link); ?>"><?php echo esc_html($params['watermark_text']); ?></a>
|
560 |
<?php
|
561 |
}
|
562 |
?>
|
568 |
}
|
569 |
if ( $enable_image_title ) {
|
570 |
?>
|
571 |
+
<div class="bwg_slideshow_image_container_<?php echo esc_attr($bwg); ?> bwg_slideshow_image_container" data-params="<?php echo esc_attr($bwg_params); ?>">
|
572 |
+
<div class="bwg_slideshow_watermark_container_<?php echo esc_attr($bwg); ?>">
|
573 |
<div>
|
574 |
+
<span class="bwg_slideshow_title_spun_<?php echo esc_attr($bwg); ?>">
|
575 |
+
<div class="bwg_slideshow_title_text_<?php echo esc_attr($bwg); ?> <?php if ( !$current_image_alt ) {
|
576 |
echo 'bwg-hidden';
|
577 |
} ?>">
|
578 |
<?php echo html_entity_decode($current_image_alt); ?>
|
585 |
}
|
586 |
if ( $enable_image_description && isset($current_image_description) ) {
|
587 |
?>
|
588 |
+
<div class="bwg_slideshow_image_container_<?php echo esc_attr($bwg); ?> bwg_slideshow_image_container" data-params="<?php echo esc_attr($bwg_params); ?>">
|
589 |
+
<div class="bwg_slideshow_watermark_container_<?php echo esc_attr($bwg); ?>">
|
590 |
<div>
|
591 |
+
<span class="bwg_slideshow_description_spun_<?php echo esc_attr($bwg); ?>">
|
592 |
+
<div class="bwg_slideshow_description_text_<?php echo esc_attr($bwg); ?> <?php if ( !$current_image_description ) {
|
593 |
echo 'bwg-hidden';
|
594 |
} ?>">
|
595 |
<?php echo html_entity_decode(str_replace("\r\n", esc_html('<br />'), $current_image_description)); ?>
|
602 |
}
|
603 |
if ( $enable_slideshow_music ) {
|
604 |
?>
|
605 |
+
<audio id="bwg_audio_<?php echo esc_attr($bwg); ?>" src="<?php echo esc_url($slideshow_music_url) ?>" loop volume="1.0"></audio>
|
606 |
<?php
|
607 |
}
|
608 |
?>
|
622 |
public function inline_styles($bwg, $theme_row, $params, $image_width, $image_height, $filmstrip_direction, $slideshow_filmstrip_height, $options, $left_or_top, $width_or_height, $filmstrip_thumb_margin_hor, $slideshow_filmstrip_width, $image_rows, $watermark_position, $slideshow_title_position, $slideshow_description_position, $watermark_height, $watermark_width, $watermark_opacity, $watermark_font_size, $watermark_font, $watermark_color, $slideshow_filmstrip_type) {
|
623 |
ob_start();
|
624 |
?>
|
625 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> {
|
626 |
display: table;
|
627 |
/*visibility: hidden;*/
|
628 |
}
|
629 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> * {
|
630 |
-moz-user-select: none;
|
631 |
-khtml-user-select: none;
|
632 |
-webkit-user-select: none;
|
633 |
-ms-user-select: none;
|
634 |
user-select: none;
|
635 |
}
|
636 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_image_wrap_<?php echo esc_attr($bwg); ?> {
|
637 |
background-color: #<?php echo $theme_row->slideshow_cont_bg_color; ?>;
|
638 |
+
width: <?php echo esc_html($image_width); ?>px;
|
639 |
+
height: <?php echo esc_html($image_height); ?>px;
|
640 |
+
}
|
641 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_image_<?php echo esc_attr($bwg); ?> {
|
642 |
+
max-width: <?php echo esc_html($image_width - ($filmstrip_direction == 'vertical' ? $slideshow_filmstrip_width : 0)); ?>px;
|
643 |
+
max-height: <?php echo esc_html($image_height - ($filmstrip_direction == 'horizontal' ? $slideshow_filmstrip_height : 0)); ?>px;
|
644 |
+
}
|
645 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_embed_<?php echo esc_attr($bwg); ?> {
|
646 |
+
width: <?php echo esc_html($image_width - ($filmstrip_direction == 'vertical' ? $slideshow_filmstrip_width : 0)); ?>px;
|
647 |
+
height: <?php echo esc_html($image_height - ($filmstrip_direction == 'horizontal' ? $slideshow_filmstrip_height : 0)); ?>px;
|
648 |
+
}
|
649 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> #bwg_slideshow_play_pause_<?php echo esc_attr($bwg); ?> {
|
650 |
+
background: transparent url("<?php echo esc_url(BWG()->plugin_url . '/images/blank.gif'); ?>") repeat scroll 0 0;
|
651 |
+
}
|
652 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> #bwg_slideshow_play_pause-ico_<?php echo esc_attr($bwg); ?> {
|
653 |
+
color: #<?php echo esc_html($theme_row->slideshow_rl_btn_color); ?>;
|
654 |
+
font-size: <?php echo esc_html($theme_row->slideshow_play_pause_btn_size); ?>px;
|
655 |
+
}
|
656 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> #bwg_slideshow_play_pause-ico_<?php echo esc_attr($bwg); ?>:hover {
|
657 |
+
color: #<?php echo esc_html($theme_row->slideshow_close_rl_btn_hover_color); ?>;
|
658 |
+
}
|
659 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> #spider_slideshow_left_<?php echo esc_attr($bwg); ?>,
|
660 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> #spider_slideshow_right_<?php echo esc_attr($bwg); ?> {
|
661 |
+
background: transparent url("<?php echo esc_url(BWG()->plugin_url . '/images/blank.gif'); ?>") repeat scroll 0 0;
|
662 |
+
}
|
663 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> #spider_slideshow_left-ico_<?php echo esc_attr($bwg); ?>,
|
664 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> #spider_slideshow_right-ico_<?php echo esc_attr($bwg); ?> {
|
665 |
+
background-color: #<?php echo esc_html($theme_row->slideshow_rl_btn_bg_color); ?>;
|
666 |
+
border-radius: <?php echo esc_html($theme_row->slideshow_rl_btn_border_radius); ?>;
|
667 |
+
border: <?php echo esc_html($theme_row->slideshow_rl_btn_border_width); ?>px <?php echo esc_html($theme_row->slideshow_rl_btn_border_style); ?> #<?php echo esc_html($theme_row->slideshow_rl_btn_border_color); ?>;
|
668 |
+
box-shadow: <?php echo esc_html($theme_row->slideshow_rl_btn_box_shadow); ?>;
|
669 |
+
color: #<?php echo esc_html($theme_row->slideshow_rl_btn_color); ?>;
|
670 |
+
height: <?php echo esc_html($theme_row->slideshow_rl_btn_height); ?>px;
|
671 |
+
font-size: <?php echo esc_html($theme_row->slideshow_rl_btn_size); ?>px;
|
672 |
+
width: <?php echo esc_html($theme_row->slideshow_rl_btn_width); ?>px;
|
673 |
opacity: <?php echo number_format($theme_row->slideshow_close_btn_transparent / 100, 2, ".", ""); ?>;
|
674 |
}
|
675 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> #spider_slideshow_left-ico_<?php echo esc_attr($bwg); ?>:hover,
|
676 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> #spider_slideshow_right-ico_<?php echo esc_attr($bwg); ?>:hover {
|
677 |
+
color: #<?php echo esc_html($theme_row->slideshow_close_rl_btn_hover_color); ?>;
|
678 |
}
|
679 |
<?php
|
680 |
if ( $params['autohide_slideshow_navigation'] ) {
|
681 |
?>
|
682 |
+
#spider_slideshow_left-ico_<?php echo esc_attr($bwg); ?>{
|
683 |
left: -9999px;
|
684 |
}
|
685 |
+
#spider_slideshow_right-ico_<?php echo esc_attr($bwg); ?>{
|
686 |
left: -9999px;
|
687 |
}
|
688 |
<?php
|
689 |
}
|
690 |
else {
|
691 |
?>
|
692 |
+
#spider_slideshow_left-ico_<?php echo esc_attr($bwg); ?>{
|
693 |
left: 20px;
|
694 |
}
|
695 |
+
#spider_slideshow_right-ico_<?php echo esc_attr($bwg); ?>{
|
696 |
left: auto;
|
697 |
right: 20px;
|
698 |
}
|
699 |
<?php
|
700 |
}
|
701 |
?>
|
702 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_image_container_<?php echo esc_attr($bwg); ?> {
|
703 |
+
<?php echo esc_html($theme_row->slideshow_filmstrip_pos); ?>: <?php echo esc_html(($filmstrip_direction == 'horizontal' ? $slideshow_filmstrip_height : $slideshow_filmstrip_width)); ?>px;
|
704 |
+
width: <?php echo esc_html($image_width); ?>px;
|
705 |
+
height: <?php echo esc_html($image_height); ?>px;
|
706 |
}
|
707 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_filmstrip_container_<?php echo esc_attr($bwg); ?> {
|
708 |
+
display: <?php echo esc_html(($filmstrip_direction == 'horizontal'? 'table' : 'block')); ?>;
|
709 |
+
height: <?php echo esc_html(($filmstrip_direction == 'horizontal'? $slideshow_filmstrip_height : $image_height)); ?>px;
|
710 |
+
width: <?php echo esc_html(($filmstrip_direction == 'horizontal' ? $image_width : $slideshow_filmstrip_width)); ?>px;
|
711 |
+
<?php echo esc_html($theme_row->slideshow_filmstrip_pos); ?>: 0;
|
712 |
}
|
713 |
/* Filmstrip dimension */
|
714 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_filmstrip_<?php echo esc_attr($bwg); ?> {
|
715 |
+
<?php echo esc_html($left_or_top); ?>: 20px;
|
716 |
+
<?php echo esc_html($width_or_height); ?>: <?php echo esc_html(($filmstrip_direction == 'horizontal' ? $image_width - 40 : $image_height - 40)); ?>px;
|
717 |
/*z-index: 10106;*/
|
718 |
}
|
719 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_filmstrip_thumbnails_<?php echo esc_attr($bwg); ?> {
|
720 |
+
<?php echo esc_html($left_or_top); ?>: 0px;
|
721 |
+
width: <?php echo esc_html(($filmstrip_direction == 'horizontal' ? ($slideshow_filmstrip_width + $filmstrip_thumb_margin_hor) * count($image_rows) : $slideshow_filmstrip_width)); ?>px;
|
722 |
+
height: <?php echo esc_html(($filmstrip_direction == 'horizontal' ? $slideshow_filmstrip_height : ($slideshow_filmstrip_height + $filmstrip_thumb_margin_hor) * count($image_rows))); ?>px;
|
723 |
}
|
724 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_filmstrip_thumbnail_<?php echo esc_attr($bwg); ?> {
|
725 |
+
width: <?php echo esc_html($slideshow_filmstrip_width); ?>px;
|
726 |
+
height: <?php echo esc_html($slideshow_filmstrip_height); ?>px;
|
727 |
+
margin: <?php echo esc_html($theme_row->slideshow_filmstrip_thumb_margin); ?>;
|
728 |
+
border: <?php echo esc_html($theme_row->slideshow_filmstrip_thumb_border_width); ?>px <?php echo esc_html($theme_row->slideshow_filmstrip_thumb_border_style); ?> #<?php echo esc_html($theme_row->slideshow_filmstrip_thumb_border_color); ?>;
|
729 |
+
border-radius: <?php echo esc_html($theme_row->slideshow_filmstrip_thumb_border_radius); ?>;
|
730 |
}
|
731 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_thumb_active_<?php echo esc_attr($bwg); ?> {
|
732 |
+
border: <?php echo esc_html($theme_row->slideshow_filmstrip_thumb_active_border_width); ?>px solid #<?php echo esc_html($theme_row->slideshow_filmstrip_thumb_active_border_color); ?>;
|
733 |
}
|
734 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_thumb_deactive_<?php echo esc_attr($bwg); ?> {
|
735 |
opacity: <?php echo number_format($theme_row->slideshow_filmstrip_thumb_deactive_transparent / 100, 2, ".", ""); ?>;
|
736 |
}
|
737 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_filmstrip_left_<?php echo esc_attr($bwg); ?>,
|
738 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_filmstrip_left_disabled_<?php echo esc_attr($bwg); ?> {
|
739 |
background-color: #<?php echo $theme_row->slideshow_filmstrip_rl_bg_color; ?>;
|
740 |
display: <?php echo ($filmstrip_direction == 'horizontal' ? 'table-cell' : 'block') ?>;
|
741 |
+
<?php echo esc_html($width_or_height); ?>: 20px;
|
742 |
+
<?php echo esc_html($left_or_top); ?>: 0;
|
743 |
<?php echo ($filmstrip_direction == 'horizontal' ? '' : 'position: absolute;') ?>
|
744 |
<?php echo ($filmstrip_direction == 'horizontal' ? '' : 'width: 100%;') ?>
|
745 |
}
|
746 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_filmstrip_right_<?php echo esc_attr($bwg); ?>,
|
747 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_filmstrip_right_disabled_<?php echo esc_attr($bwg); ?> {
|
748 |
background-color: #<?php echo $theme_row->slideshow_filmstrip_rl_bg_color; ?>;
|
749 |
display: <?php echo ($filmstrip_direction == 'horizontal' ? 'table-cell' : 'block') ?>;
|
750 |
<?php echo($filmstrip_direction == 'horizontal' ? 'right' : 'bottom') ?>: 0;
|
751 |
+
<?php echo esc_html($width_or_height); ?>: 20px;
|
752 |
<?php echo ($filmstrip_direction == 'horizontal' ? '' : 'position: absolute;') ?>
|
753 |
<?php echo ($filmstrip_direction == 'horizontal' ? '' : 'width: 100%;') ?>
|
754 |
}
|
755 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_filmstrip_left_<?php echo esc_attr($bwg); ?> i,
|
756 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_filmstrip_right_<?php echo esc_attr($bwg); ?> i,
|
757 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_filmstrip_left_disabled_<?php echo esc_attr($bwg); ?> i,
|
758 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_filmstrip_right_disabled_<?php echo esc_attr($bwg); ?> i {
|
759 |
+
color: #<?php echo esc_html($theme_row->slideshow_filmstrip_rl_btn_color); ?>;
|
760 |
+
font-size: <?php echo esc_html($theme_row->slideshow_filmstrip_rl_btn_size); ?>px;
|
761 |
}
|
762 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_filmstrip_left_<?php echo esc_attr($bwg); ?> {
|
763 |
display: none;
|
764 |
}
|
765 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_filmstrip_left_disabled_<?php echo esc_attr($bwg); ?>,
|
766 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_filmstrip_right_disabled_<?php echo esc_attr($bwg); ?> {
|
767 |
display: none;
|
768 |
opacity: 0.3;
|
769 |
}
|
770 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_filmstrip_left_disabled_<?php echo esc_attr($bwg); ?> {
|
771 |
display: <?php echo ($filmstrip_direction == 'horizontal' ? 'table-cell' : 'block') ?>;
|
772 |
}
|
773 |
<?php
|
774 |
/* Filmstrip fix count */
|
775 |
if ( !empty($slideshow_filmstrip_type) && $slideshow_filmstrip_type == 2 ) {
|
776 |
?>
|
777 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_filmstrip_fix_count_<?php echo esc_attr($bwg); ?> {
|
778 |
+
<?php echo esc_html($left_or_top); ?>: 20px;
|
779 |
+
<?php echo esc_html($width_or_height); ?>: <?php echo esc_html(($filmstrip_direction == 'horizontal' ? $image_width - 40 : $image_height - 40)); ?>px;
|
780 |
}
|
781 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_filmstrip_fix_count_<?php echo esc_attr($bwg); ?> .bwg_slideshow_filmstrip_thumbnails_<?php echo esc_attr($bwg); ?> .bwg_slideshow_filmstrip_thumbnail_<?php echo esc_attr($bwg); ?> {
|
782 |
+
width: <?php echo esc_html($slideshow_filmstrip_width); ?>px;
|
783 |
+
height: <?php echo esc_html($slideshow_filmstrip_height); ?>px;
|
784 |
}
|
785 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_filmstrip_fix_count_<?php echo esc_attr($bwg); ?> .bwg_slideshow_filmstrip_thumbnails_<?php echo esc_attr($bwg); ?> .bwg_slideshow_filmstrip_thumbnail_<?php echo esc_attr($bwg); ?> img {
|
786 |
object-fit: cover;
|
787 |
}
|
788 |
<?php } ?>
|
789 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_watermark_spun_<?php echo esc_attr($bwg); ?> {
|
790 |
+
text-align: <?php echo esc_html($watermark_position[1]); ?>;
|
791 |
+
vertical-align: <?php echo esc_html($watermark_position[0]); ?>;
|
792 |
}
|
793 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_title_spun_<?php echo esc_attr($bwg); ?> {
|
794 |
+
text-align: <?php echo esc_html($slideshow_title_position[1]); ?>;
|
795 |
+
vertical-align: <?php echo esc_html($slideshow_title_position[0]); ?>;
|
796 |
}
|
797 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_description_spun_<?php echo esc_attr($bwg); ?> {
|
798 |
+
text-align: <?php echo esc_html($slideshow_description_position[1]); ?>;
|
799 |
+
vertical-align: <?php echo esc_html($slideshow_description_position[0]); ?>;
|
800 |
}
|
801 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_watermark_image_<?php echo esc_attr($bwg); ?> {
|
802 |
+
max-height: <?php echo esc_html($watermark_height); ?>px;
|
803 |
+
max-width: <?php echo esc_html($watermark_width); ?>px;
|
804 |
opacity: <?php echo number_format($watermark_opacity / 100, 2, ".", ""); ?>;
|
805 |
}
|
806 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_watermark_text_<?php echo esc_attr($bwg); ?>,
|
807 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_watermark_text_<?php echo esc_attr($bwg); ?>:hover {
|
808 |
text-decoration: none;
|
809 |
margin: 4px;
|
810 |
position: relative;
|
811 |
z-index: 15;
|
812 |
}
|
813 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_title_text_<?php echo esc_attr($bwg); ?> {
|
814 |
+
font-size: <?php echo esc_html($theme_row->slideshow_title_font_size); ?>px;
|
815 |
+
font-family: <?php echo esc_html($theme_row->slideshow_title_font); ?>;
|
816 |
+
color: #<?php echo esc_html($theme_row->slideshow_title_color); ?> !important;
|
817 |
opacity: <?php echo number_format($theme_row->slideshow_title_opacity / 100, 2, ".", ""); ?>;
|
818 |
+
border-radius: <?php echo esc_html($theme_row->slideshow_title_border_radius); ?>;
|
819 |
+
background-color: #<?php echo esc_html($theme_row->slideshow_title_background_color); ?>;
|
820 |
+
padding: <?php echo esc_html($theme_row->slideshow_title_padding); ?>;
|
821 |
<?php if($params['slideshow_title_full_width']) { ?>
|
822 |
width: 100%;
|
823 |
<?php } else { ?>
|
825 |
<?php } ?>
|
826 |
<?php if (!$slideshow_filmstrip_type && $slideshow_title_position[0] == $theme_row->slideshow_filmstrip_pos) echo $theme_row->slideshow_filmstrip_pos . ':' . ($theme_row->slideshow_dots_height + 4) . 'px;'; ?>
|
827 |
}
|
828 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_description_text_<?php echo esc_attr($bwg); ?> {
|
829 |
+
font-size: <?php echo esc_html($theme_row->slideshow_description_font_size); ?>px;
|
830 |
+
font-family: <?php echo esc_html($theme_row->slideshow_description_font); ?>;
|
831 |
+
color: #<?php echo esc_html($theme_row->slideshow_description_color); ?> !important;
|
832 |
opacity: <?php echo number_format($theme_row->slideshow_description_opacity / 100, 2, ".", ""); ?>;
|
833 |
+
border-radius: <?php echo esc_html($theme_row->slideshow_description_border_radius); ?>;
|
834 |
+
background-color: #<?php echo esc_html($theme_row->slideshow_description_background_color); ?>;
|
835 |
+
padding: <?php echo esc_html($theme_row->slideshow_description_padding); ?>;
|
836 |
+
<?php if (!$slideshow_filmstrip_type && $slideshow_description_position[0] == $theme_row->slideshow_filmstrip_pos) echo esc_html($theme_row->slideshow_filmstrip_pos) . ':' . esc_html(($theme_row->slideshow_dots_height + 4)) . 'px;'; ?>
|
837 |
}
|
838 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_description_text_<?php echo esc_attr($bwg); ?> * {
|
839 |
text-decoration: none;
|
840 |
+
color: #<?php echo esc_html($theme_row->slideshow_description_color); ?> !important;
|
841 |
+
}
|
842 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_dots_<?php echo esc_attr($bwg); ?> {
|
843 |
+
width: <?php echo esc_html($theme_row->slideshow_dots_width); ?>px;
|
844 |
+
height: <?php echo esc_html($theme_row->slideshow_dots_height); ?>px;
|
845 |
+
border-radius: <?php echo esc_html($theme_row->slideshow_dots_border_radius); ?>;
|
846 |
+
background: #<?php echo esc_html($theme_row->slideshow_dots_background_color); ?>;
|
847 |
+
margin: <?php echo esc_html($theme_row->slideshow_dots_margin); ?>px;
|
848 |
+
}
|
849 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_dots_container_<?php echo esc_attr($bwg); ?> {
|
850 |
+
width: <?php echo esc_html($image_width); ?>px;
|
851 |
+
<?php echo esc_html($theme_row->slideshow_filmstrip_pos); ?>: 0;
|
852 |
+
}
|
853 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_dots_thumbnails_<?php echo esc_attr($bwg); ?> {
|
854 |
+
height: <?php echo esc_html(($theme_row->slideshow_dots_height + $theme_row->slideshow_dots_margin * 2)); ?>px;
|
855 |
+
width: <?php echo esc_html(($theme_row->slideshow_dots_width + $theme_row->slideshow_dots_margin * 2) * count($image_rows)); ?>px;
|
856 |
+
}
|
857 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_slideshow_dots_active_<?php echo esc_attr($bwg); ?> {
|
858 |
+
background: #<?php echo esc_html($theme_row->slideshow_dots_active_background_color); ?>;
|
859 |
+
border: <?php echo esc_html($theme_row->slideshow_dots_active_border_width); ?>px solid #<?php echo esc_html($theme_row->slideshow_dots_active_border_color); ?>;
|
860 |
}
|
861 |
<?php
|
862 |
return ob_get_clean();
|
frontend/views/BWGViewThumbnails.php
CHANGED
@@ -13,12 +13,12 @@ class BWGViewThumbnails extends BWGViewSite {
|
|
13 |
wp_add_inline_style('bwg_frontend', $inline_style);
|
14 |
}
|
15 |
else {
|
16 |
-
echo '<style id="bwg-style-' .
|
17 |
}
|
18 |
}
|
19 |
}
|
20 |
else {
|
21 |
-
echo '<style id="bwg-style-' .
|
22 |
}
|
23 |
ob_start();
|
24 |
?>
|
@@ -28,7 +28,7 @@ class BWGViewThumbnails extends BWGViewSite {
|
|
28 |
data-gallery-id="<?php echo esc_attr($params['gallery_id']); ?>"
|
29 |
data-lightbox-url="<?php echo esc_attr(addslashes(add_query_arg($params['params_array'], admin_url('admin-ajax.php')))); ?>"
|
30 |
id="bwg_<?php echo esc_attr($params['gallery_type'].'_'.$bwg) ?>"
|
31 |
-
class="bwg-container-<?php echo
|
32 |
<?php
|
33 |
foreach ($image_rows as $image_row) {
|
34 |
$is_embed = preg_match('/EMBED/',$image_row->filetype) == 1 ? true : false;
|
@@ -71,12 +71,12 @@ class BWGViewThumbnails extends BWGViewSite {
|
|
71 |
}
|
72 |
?>
|
73 |
<div class="bwg-item">
|
74 |
-
<a class="bwg-a <?php echo
|
75 |
<?php if ( $params['image_title'] == 'show' && $theme_row->thumb_title_pos == 'top' ) { echo $title; } ?>
|
76 |
<div class="bwg-item0 <?php if( $lazyload ) { ?> lazy_loader <?php } ?>">
|
77 |
<div class="bwg-item1 <?php echo $theme_row->thumb_hover_effect == 'zoom' && $params['image_title'] == 'hover' ? 'bwg-zoom-effect' : ''; ?>">
|
78 |
<div class="bwg-item2">
|
79 |
-
<img class="skip-lazy bwg_standart_thumb_img_<?php echo
|
80 |
data-id="<?php echo esc_attr($image_row->id); ?>"
|
81 |
data-width="<?php echo esc_attr($image_thumb_width); ?>"
|
82 |
data-height="<?php echo esc_attr($image_thumb_height); ?>"
|
@@ -116,7 +116,7 @@ class BWGViewThumbnails extends BWGViewSite {
|
|
116 |
ob_start();
|
117 |
$rgb_thumbs_bg_color = WDWLibrary::spider_hex2rgb($theme_row->thumbs_bg_color);
|
118 |
?>
|
119 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg-container-<?php echo $bwg; ?>.bwg-standard-thumbnails {
|
120 |
width: <?php echo ($params['image_column_number'] * $params['thumb_width']) + ($theme_row->container_margin ? $theme_row->thumb_margin : 0); ?>px;
|
121 |
<?php
|
122 |
if ( $theme_row->thumb_align == 'center' ) {
|
@@ -142,15 +142,15 @@ class BWGViewThumbnails extends BWGViewSite {
|
|
142 |
<?php
|
143 |
if ( $theme_row->container_margin ) {
|
144 |
?>
|
145 |
-
padding-left: <?php echo $theme_row->thumb_margin; ?>px;
|
146 |
-
padding-top: <?php echo $theme_row->thumb_margin; ?>px;
|
147 |
max-width: 100%;
|
148 |
<?php
|
149 |
}
|
150 |
else {
|
151 |
?>
|
152 |
-
margin-right: -<?php echo $theme_row->thumb_margin; ?>px;
|
153 |
-
max-width: calc(100% + <?php echo $theme_row->thumb_margin; ?>px);
|
154 |
<?php
|
155 |
}
|
156 |
?>
|
@@ -158,56 +158,56 @@ class BWGViewThumbnails extends BWGViewSite {
|
|
158 |
<?php
|
159 |
if (!$theme_row->container_margin && $theme_row->thumb_margin) {
|
160 |
?>
|
161 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg-background-<?php echo $bwg; ?> {
|
162 |
overflow: hidden;
|
163 |
}
|
164 |
<?php
|
165 |
}
|
166 |
?>
|
167 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg-container-<?php echo $bwg; ?>.bwg-standard-thumbnails .bwg-item {
|
168 |
justify-content: <?php echo ($theme_row->thumb_title_pos == 'bottom' || (isset($params['show_thumb_description']) && $params['show_thumb_description'])) ? 'flex-start' : 'flex-end'; ?>;
|
169 |
-
max-width: <?php echo $params['thumb_width']; ?>px;
|
170 |
<?php if ( !BWG()->options->resizable_thumbnails ) { ?>
|
171 |
-
width: <?php echo $params['thumb_width']; ?>px !important;
|
172 |
<?php } ?>
|
173 |
}
|
174 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg-container-<?php echo $bwg; ?>.bwg-standard-thumbnails .bwg-item > a {
|
175 |
-
margin-right: <?php echo $theme_row->thumb_margin; ?>px;
|
176 |
-
margin-bottom: <?php echo $theme_row->thumb_margin; ?>px;
|
177 |
}
|
178 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg-container-<?php echo $bwg; ?>.bwg-standard-thumbnails .bwg-item0 {
|
179 |
-
padding: <?php echo $theme_row->thumb_padding; ?>px;
|
180 |
<?php $thumb_bg_color = WDWLibrary::spider_hex2rgb( $theme_row->thumb_bg_color ); ?>
|
181 |
-
background-color:rgba(<?php echo $thumb_bg_color['red'] .','. $thumb_bg_color['green'] . ',' . $thumb_bg_color['blue'] . ', '.number_format($theme_row->thumb_bg_transparency / 100, 2, ".", ""); ?>);
|
182 |
-
border: <?php echo $theme_row->thumb_border_width; ?>px <?php echo $theme_row->thumb_border_style; ?> #<?php echo $theme_row->thumb_border_color; ?>;
|
183 |
opacity: <?php echo number_format($theme_row->thumb_transparent / 100, 2, ".", ""); ?>;
|
184 |
-
border-radius: <?php echo $theme_row->thumb_border_radius; ?>;
|
185 |
-
box-shadow: <?php echo $theme_row->thumb_box_shadow; ?>;
|
186 |
}
|
187 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg-container-<?php echo $bwg; ?>.bwg-standard-thumbnails .bwg-item1 img {
|
188 |
max-height: none;
|
189 |
max-width: none;
|
190 |
padding: 0 !important;
|
191 |
}
|
192 |
<?php if ( $theme_row->thumb_hover_effect == 'zoom' ) { ?>
|
193 |
@media only screen and (min-width: 480px) {
|
194 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg-container-<?php echo $bwg; ?>.bwg-standard-thumbnails .bwg-item1 img {
|
195 |
<?php echo ($theme_row->thumb_transition) ? '-webkit-transition: all .3s; transition: all .3s;' : ''; ?>
|
196 |
}
|
197 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg-container-<?php echo $bwg; ?>.bwg-standard-thumbnails .bwg-item1 img:hover {
|
198 |
-
-ms-transform: scale(<?php echo $theme_row->thumb_hover_effect_value; ?>);
|
199 |
-
-webkit-transform: scale(<?php echo $theme_row->thumb_hover_effect_value; ?>);
|
200 |
-
transform: scale(<?php echo $theme_row->thumb_hover_effect_value; ?>);
|
201 |
}
|
202 |
<?php if ( $params['image_title'] == 'hover' ) { ?>
|
203 |
.bwg-standard-thumbnails .bwg-zoom-effect .bwg-zoom-effect-overlay {
|
204 |
<?php $thumb_bg_color = WDWLibrary::spider_hex2rgb( $theme_row->thumb_bg_color ); ?>
|
205 |
-
background-color:rgba(<?php echo $thumb_bg_color['red'] .','. $thumb_bg_color['green'] . ',' . $thumb_bg_color['blue'] . ', 0.3'; ?>);
|
206 |
}
|
207 |
.bwg-standard-thumbnails .bwg-zoom-effect:hover img {
|
208 |
-
-ms-transform: scale(<?php echo $theme_row->thumb_hover_effect_value; ?>);
|
209 |
-
-webkit-transform: scale(<?php echo $theme_row->thumb_hover_effect_value; ?>);
|
210 |
-
transform: scale(<?php echo $theme_row->thumb_hover_effect_value; ?>);
|
211 |
}
|
212 |
<?php } ?>
|
213 |
}
|
@@ -216,25 +216,25 @@ class BWGViewThumbnails extends BWGViewSite {
|
|
216 |
else {
|
217 |
?>
|
218 |
@media only screen and (min-width: 480px) {
|
219 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg-container-<?php echo $bwg; ?>.bwg-standard-thumbnails .bwg-item0 {
|
220 |
<?php echo ($theme_row->thumb_transition) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
|
221 |
}
|
222 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg-container-<?php echo $bwg; ?>.bwg-standard-thumbnails .bwg-item0:hover {
|
223 |
-
-ms-transform: <?php echo $theme_row->thumb_hover_effect; ?>(<?php echo $theme_row->thumb_hover_effect_value; ?>);
|
224 |
-
-webkit-transform: <?php echo $theme_row->thumb_hover_effect; ?>(<?php echo $theme_row->thumb_hover_effect_value; ?>);
|
225 |
-
transform: <?php echo $theme_row->thumb_hover_effect; ?>(<?php echo $theme_row->thumb_hover_effect_value; ?>);
|
226 |
}
|
227 |
}
|
228 |
<?php
|
229 |
}
|
230 |
?>
|
231 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg-container-<?php echo $bwg; ?>.bwg-standard-thumbnails .bwg-item1 {
|
232 |
-
padding-top: <?php echo $params['thumb_height'] / $params['thumb_width'] * 100; ?>%;
|
233 |
}
|
234 |
<?php
|
235 |
/* Show image title on hover.*/
|
236 |
if ( $params['image_title'] == 'hover' ) { ?>
|
237 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg-container-<?php echo $bwg; ?>.bwg-standard-thumbnails .bwg-title1 {
|
238 |
position: absolute;
|
239 |
top: 0;
|
240 |
z-index: 100;
|
@@ -249,34 +249,34 @@ class BWGViewThumbnails extends BWGViewSite {
|
|
249 |
<?php
|
250 |
}
|
251 |
?>
|
252 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg-container-<?php echo $bwg; ?>.bwg-standard-thumbnails .bwg-title2,
|
253 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg-container-<?php echo $bwg; ?>.bwg-standard-thumbnails .bwg-ecommerce2 {
|
254 |
-
color: #<?php echo ( $params['image_title'] == 'hover') ? (isset($theme_row->thumb_title_font_color_hover) ? $theme_row->thumb_title_font_color_hover : $theme_row->thumb_title_font_color) : $theme_row->thumb_title_font_color; ?>;
|
255 |
-
font-family: <?php echo $theme_row->thumb_title_font_style; ?>;
|
256 |
-
font-size: <?php echo $theme_row->thumb_title_font_size; ?>px;
|
257 |
-
font-weight: <?php echo $theme_row->thumb_title_font_weight; ?>;
|
258 |
-
padding: <?php echo $theme_row->thumb_title_margin; ?>;
|
259 |
-
text-shadow: <?php echo $theme_row->thumb_title_shadow; ?>;
|
260 |
max-height: 100%;
|
261 |
}
|
262 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg-container-<?php echo $bwg; ?>.bwg-standard-thumbnails .bwg-thumb-description span {
|
263 |
-
color: #<?php echo $theme_row->thumb_description_font_color; ?>;
|
264 |
-
font-family: <?php echo $theme_row->thumb_description_font_style; ?>;
|
265 |
-
font-size: <?php echo $theme_row->thumb_description_font_size; ?>px;
|
266 |
max-height: 100%;
|
267 |
word-wrap: break-word;
|
268 |
}
|
269 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg-container-<?php echo $bwg; ?>.bwg-standard-thumbnails .bwg-play-icon2 {
|
270 |
-
font-size: <?php echo 2 * $theme_row->thumb_title_font_size; ?>px;
|
271 |
}
|
272 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg-container-<?php echo $bwg; ?>.bwg-standard-thumbnails .bwg-ecommerce2 {
|
273 |
-
font-size: <?php echo 1.2 * $theme_row->thumb_title_font_size; ?>px;
|
274 |
-
color: #<?php echo ( $params['ecommerce_icon'] == 'hover') ? (isset($theme_row->thumb_title_font_color_hover) ? $theme_row->thumb_title_font_color_hover : $theme_row->thumb_title_font_color) : $theme_row->thumb_title_font_color; ?>;
|
275 |
}
|
276 |
<?php
|
277 |
if ( function_exists('BWGEC') && $params['ecommerce_icon'] == 'hover' ) { /* Show eCommerce icon on hover.*/
|
278 |
?>
|
279 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg-container-<?php echo $bwg; ?>.bwg-standard-thumbnails .bwg-ecommerce1 {
|
280 |
display: flex;
|
281 |
height: 100%;
|
282 |
left: -3000px;
|
13 |
wp_add_inline_style('bwg_frontend', $inline_style);
|
14 |
}
|
15 |
else {
|
16 |
+
echo '<style id="bwg-style-' . esc_attr($bwg) . '">' . strip_tags($inline_style) . '</style>';
|
17 |
}
|
18 |
}
|
19 |
}
|
20 |
else {
|
21 |
+
echo '<style id="bwg-style-' . esc_attr($bwg) . '">' . strip_tags($inline_style) . '</style>';
|
22 |
}
|
23 |
ob_start();
|
24 |
?>
|
28 |
data-gallery-id="<?php echo esc_attr($params['gallery_id']); ?>"
|
29 |
data-lightbox-url="<?php echo esc_attr(addslashes(add_query_arg($params['params_array'], admin_url('admin-ajax.php')))); ?>"
|
30 |
id="bwg_<?php echo esc_attr($params['gallery_type'].'_'.$bwg) ?>"
|
31 |
+
class="bwg-container-<?php echo esc_attr($bwg); ?> bwg-thumbnails bwg-standard-thumbnails bwg-container bwg-border-box">
|
32 |
<?php
|
33 |
foreach ($image_rows as $image_row) {
|
34 |
$is_embed = preg_match('/EMBED/',$image_row->filetype) == 1 ? true : false;
|
71 |
}
|
72 |
?>
|
73 |
<div class="bwg-item">
|
74 |
+
<a class="bwg-a <?php echo esc_attr($class); ?>" <?php echo $data_image_id; ?><?php echo $href; ?> data-elementor-open-lightbox="no">
|
75 |
<?php if ( $params['image_title'] == 'show' && $theme_row->thumb_title_pos == 'top' ) { echo $title; } ?>
|
76 |
<div class="bwg-item0 <?php if( $lazyload ) { ?> lazy_loader <?php } ?>">
|
77 |
<div class="bwg-item1 <?php echo $theme_row->thumb_hover_effect == 'zoom' && $params['image_title'] == 'hover' ? 'bwg-zoom-effect' : ''; ?>">
|
78 |
<div class="bwg-item2">
|
79 |
+
<img class="skip-lazy bwg_standart_thumb_img_<?php echo esc_attr($bwg); ?> <?php if( $lazyload ) { ?> bwg_lazyload <?php } ?>"
|
80 |
data-id="<?php echo esc_attr($image_row->id); ?>"
|
81 |
data-width="<?php echo esc_attr($image_thumb_width); ?>"
|
82 |
data-height="<?php echo esc_attr($image_thumb_height); ?>"
|
116 |
ob_start();
|
117 |
$rgb_thumbs_bg_color = WDWLibrary::spider_hex2rgb($theme_row->thumbs_bg_color);
|
118 |
?>
|
119 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-standard-thumbnails {
|
120 |
width: <?php echo ($params['image_column_number'] * $params['thumb_width']) + ($theme_row->container_margin ? $theme_row->thumb_margin : 0); ?>px;
|
121 |
<?php
|
122 |
if ( $theme_row->thumb_align == 'center' ) {
|
142 |
<?php
|
143 |
if ( $theme_row->container_margin ) {
|
144 |
?>
|
145 |
+
padding-left: <?php echo esc_html($theme_row->thumb_margin); ?>px;
|
146 |
+
padding-top: <?php echo esc_html($theme_row->thumb_margin); ?>px;
|
147 |
max-width: 100%;
|
148 |
<?php
|
149 |
}
|
150 |
else {
|
151 |
?>
|
152 |
+
margin-right: -<?php echo esc_html($theme_row->thumb_margin); ?>px;
|
153 |
+
max-width: calc(100% + <?php echo esc_html($theme_row->thumb_margin); ?>px);
|
154 |
<?php
|
155 |
}
|
156 |
?>
|
158 |
<?php
|
159 |
if (!$theme_row->container_margin && $theme_row->thumb_margin) {
|
160 |
?>
|
161 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-background-<?php echo esc_attr($bwg); ?> {
|
162 |
overflow: hidden;
|
163 |
}
|
164 |
<?php
|
165 |
}
|
166 |
?>
|
167 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-standard-thumbnails .bwg-item {
|
168 |
justify-content: <?php echo ($theme_row->thumb_title_pos == 'bottom' || (isset($params['show_thumb_description']) && $params['show_thumb_description'])) ? 'flex-start' : 'flex-end'; ?>;
|
169 |
+
max-width: <?php echo esc_html($params['thumb_width']); ?>px;
|
170 |
<?php if ( !BWG()->options->resizable_thumbnails ) { ?>
|
171 |
+
width: <?php echo esc_html($params['thumb_width']); ?>px !important;
|
172 |
<?php } ?>
|
173 |
}
|
174 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-standard-thumbnails .bwg-item > a {
|
175 |
+
margin-right: <?php echo esc_html($theme_row->thumb_margin); ?>px;
|
176 |
+
margin-bottom: <?php echo esc_html($theme_row->thumb_margin); ?>px;
|
177 |
}
|
178 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-standard-thumbnails .bwg-item0 {
|
179 |
+
padding: <?php echo esc_html($theme_row->thumb_padding); ?>px;
|
180 |
<?php $thumb_bg_color = WDWLibrary::spider_hex2rgb( $theme_row->thumb_bg_color ); ?>
|
181 |
+
background-color:rgba(<?php echo esc_html($thumb_bg_color['red'] .','. $thumb_bg_color['green'] . ',' . $thumb_bg_color['blue'] . ', '.number_format($theme_row->thumb_bg_transparency / 100, 2, ".", "")); ?>);
|
182 |
+
border: <?php echo esc_html($theme_row->thumb_border_width); ?>px <?php echo esc_html($theme_row->thumb_border_style); ?> #<?php echo esc_html($theme_row->thumb_border_color); ?>;
|
183 |
opacity: <?php echo number_format($theme_row->thumb_transparent / 100, 2, ".", ""); ?>;
|
184 |
+
border-radius: <?php echo esc_html($theme_row->thumb_border_radius); ?>;
|
185 |
+
box-shadow: <?php echo esc_html($theme_row->thumb_box_shadow); ?>;
|
186 |
}
|
187 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-standard-thumbnails .bwg-item1 img {
|
188 |
max-height: none;
|
189 |
max-width: none;
|
190 |
padding: 0 !important;
|
191 |
}
|
192 |
<?php if ( $theme_row->thumb_hover_effect == 'zoom' ) { ?>
|
193 |
@media only screen and (min-width: 480px) {
|
194 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-standard-thumbnails .bwg-item1 img {
|
195 |
<?php echo ($theme_row->thumb_transition) ? '-webkit-transition: all .3s; transition: all .3s;' : ''; ?>
|
196 |
}
|
197 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-standard-thumbnails .bwg-item1 img:hover {
|
198 |
+
-ms-transform: scale(<?php echo esc_html($theme_row->thumb_hover_effect_value); ?>);
|
199 |
+
-webkit-transform: scale(<?php echo esc_html($theme_row->thumb_hover_effect_value); ?>);
|
200 |
+
transform: scale(<?php echo esc_html($theme_row->thumb_hover_effect_value); ?>);
|
201 |
}
|
202 |
<?php if ( $params['image_title'] == 'hover' ) { ?>
|
203 |
.bwg-standard-thumbnails .bwg-zoom-effect .bwg-zoom-effect-overlay {
|
204 |
<?php $thumb_bg_color = WDWLibrary::spider_hex2rgb( $theme_row->thumb_bg_color ); ?>
|
205 |
+
background-color:rgba(<?php echo esc_html($thumb_bg_color['red'] .','. $thumb_bg_color['green'] . ',' . $thumb_bg_color['blue'] . ', 0.3'); ?>);
|
206 |
}
|
207 |
.bwg-standard-thumbnails .bwg-zoom-effect:hover img {
|
208 |
+
-ms-transform: scale(<?php echo esc_html($theme_row->thumb_hover_effect_value); ?>);
|
209 |
+
-webkit-transform: scale(<?php echo esc_html($theme_row->thumb_hover_effect_value); ?>);
|
210 |
+
transform: scale(<?php echo esc_html($theme_row->thumb_hover_effect_value); ?>);
|
211 |
}
|
212 |
<?php } ?>
|
213 |
}
|
216 |
else {
|
217 |
?>
|
218 |
@media only screen and (min-width: 480px) {
|
219 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-standard-thumbnails .bwg-item0 {
|
220 |
<?php echo ($theme_row->thumb_transition) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
|
221 |
}
|
222 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-standard-thumbnails .bwg-item0:hover {
|
223 |
+
-ms-transform: <?php echo esc_html($theme_row->thumb_hover_effect); ?>(<?php echo esc_html($theme_row->thumb_hover_effect_value); ?>);
|
224 |
+
-webkit-transform: <?php echo esc_html($theme_row->thumb_hover_effect); ?>(<?php echo esc_html($theme_row->thumb_hover_effect_value); ?>);
|
225 |
+
transform: <?php echo esc_html($theme_row->thumb_hover_effect); ?>(<?php echo esc_html($theme_row->thumb_hover_effect_value); ?>);
|
226 |
}
|
227 |
}
|
228 |
<?php
|
229 |
}
|
230 |
?>
|
231 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-standard-thumbnails .bwg-item1 {
|
232 |
+
padding-top: <?php echo esc_html($params['thumb_height'] / $params['thumb_width'] * 100); ?>%;
|
233 |
}
|
234 |
<?php
|
235 |
/* Show image title on hover.*/
|
236 |
if ( $params['image_title'] == 'hover' ) { ?>
|
237 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-standard-thumbnails .bwg-title1 {
|
238 |
position: absolute;
|
239 |
top: 0;
|
240 |
z-index: 100;
|
249 |
<?php
|
250 |
}
|
251 |
?>
|
252 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-standard-thumbnails .bwg-title2,
|
253 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-standard-thumbnails .bwg-ecommerce2 {
|
254 |
+
color: #<?php echo esc_html(( $params['image_title'] == 'hover') ? (isset($theme_row->thumb_title_font_color_hover) ? $theme_row->thumb_title_font_color_hover : $theme_row->thumb_title_font_color) : $theme_row->thumb_title_font_color); ?>;
|
255 |
+
font-family: <?php echo esc_html($theme_row->thumb_title_font_style); ?>;
|
256 |
+
font-size: <?php echo esc_html($theme_row->thumb_title_font_size); ?>px;
|
257 |
+
font-weight: <?php echo esc_html($theme_row->thumb_title_font_weight); ?>;
|
258 |
+
padding: <?php echo esc_html($theme_row->thumb_title_margin); ?>;
|
259 |
+
text-shadow: <?php echo esc_html($theme_row->thumb_title_shadow); ?>;
|
260 |
max-height: 100%;
|
261 |
}
|
262 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-standard-thumbnails .bwg-thumb-description span {
|
263 |
+
color: #<?php echo esc_html($theme_row->thumb_description_font_color); ?>;
|
264 |
+
font-family: <?php echo esc_html($theme_row->thumb_description_font_style); ?>;
|
265 |
+
font-size: <?php echo esc_html($theme_row->thumb_description_font_size); ?>px;
|
266 |
max-height: 100%;
|
267 |
word-wrap: break-word;
|
268 |
}
|
269 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-standard-thumbnails .bwg-play-icon2 {
|
270 |
+
font-size: <?php echo esc_html(2 * $theme_row->thumb_title_font_size); ?>px;
|
271 |
}
|
272 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-standard-thumbnails .bwg-ecommerce2 {
|
273 |
+
font-size: <?php echo esc_html(1.2 * $theme_row->thumb_title_font_size); ?>px;
|
274 |
+
color: #<?php echo esc_html(( $params['ecommerce_icon'] == 'hover') ? (isset($theme_row->thumb_title_font_color_hover) ? $theme_row->thumb_title_font_color_hover : $theme_row->thumb_title_font_color) : $theme_row->thumb_title_font_color); ?>;
|
275 |
}
|
276 |
<?php
|
277 |
if ( function_exists('BWGEC') && $params['ecommerce_icon'] == 'hover' ) { /* Show eCommerce icon on hover.*/
|
278 |
?>
|
279 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-standard-thumbnails .bwg-ecommerce1 {
|
280 |
display: flex;
|
281 |
height: 100%;
|
282 |
left: -3000px;
|
frontend/views/view.php
CHANGED
@@ -63,10 +63,10 @@ class BWGViewSite {
|
|
63 |
amp-img {
|
64 |
height: 100%!important;
|
65 |
}
|
66 |
-
#bwg_container1_' .
|
67 |
padding-top: 66%;
|
68 |
}
|
69 |
-
.bwg-container-' .
|
70 |
width: 100%!important;
|
71 |
}
|
72 |
@media screen and (max-width: 485px) {
|
@@ -88,8 +88,8 @@ class BWGViewSite {
|
|
88 |
}
|
89 |
?>
|
90 |
|
91 |
-
<div id="bwg_container1_<?php echo
|
92 |
-
class="bwg_container bwg_thumbnail bwg_<?php echo
|
93 |
data-right-click-protection="<?php echo esc_attr(BWG()->options->image_right_click); ?>"
|
94 |
data-bwg="<?php echo esc_attr($bwg); ?>"
|
95 |
data-scroll="<?php echo esc_attr($params['need_scroll']); ?>"
|
@@ -101,9 +101,9 @@ class BWGViewSite {
|
|
101 |
data-popup-height="<?php echo esc_attr($params["popup_height"]); ?>"
|
102 |
data-is-album="<?php echo esc_attr($params["view_type"]); ?>"
|
103 |
data-buttons-position="<?php echo esc_attr($theme_row->lightbox_ctrl_btn_pos); ?>">
|
104 |
-
<div id="bwg_container2_<?php echo
|
105 |
<?php (function_exists('amp_is_request') && amp_is_request()) ? :$this->loading($bwg, $params["image_enable_page"], $params['gallery_type'] ); ?>
|
106 |
-
<form id="gal_front_form_<?php echo
|
107 |
<?php echo (function_exists('amp_is_request') && amp_is_request()) ? : 'class="bwg-hidden"' ?>
|
108 |
method="post"
|
109 |
action="#"
|
@@ -115,7 +115,7 @@ class BWGViewSite {
|
|
115 |
data-album-id="<?php echo esc_attr($params['album_id']); ?>"
|
116 |
data-theme-id="<?php echo esc_attr($params['theme_id']); ?>"
|
117 |
data-ajax-url="<?php echo esc_url(add_query_arg(array('action' => 'bwg_frontend_data'), admin_url('admin-ajax.php'))); ?>">
|
118 |
-
<div id="bwg_container3_<?php echo
|
119 |
<?php
|
120 |
$get_album_gallery_id = WDWLibrary::get("album_gallery_id_" . $bwg, 0, 'intval');
|
121 |
if ( BWG()->options->front_ajax == "1" && isset($get_album_gallery_id) && intval($get_album_gallery_id) > 0 ) {
|
@@ -176,7 +176,7 @@ class BWGViewSite {
|
|
176 |
if ( $params['thumb_click_action'] == 'open_lightbox' ) {
|
177 |
ob_start();
|
178 |
?>
|
179 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_popup_overlay_<?php echo $bwg; ?> {
|
180 |
background-color: #<?php echo $theme_row->lightbox_overlay_bg_color; ?>;
|
181 |
opacity: <?php echo number_format($theme_row->lightbox_overlay_bg_transparent / 100, 2, ".", ""); ?>;
|
182 |
}
|
@@ -187,12 +187,12 @@ class BWGViewSite {
|
|
187 |
wp_add_inline_style( 'bwg_frontend', $inline_style );
|
188 |
}
|
189 |
else {
|
190 |
-
echo '<style>' . $inline_style . '</style>';
|
191 |
}
|
192 |
?>
|
193 |
-
<div id="bwg_spider_popup_loading_<?php echo
|
194 |
-
<div id="spider_popup_overlay_<?php echo
|
195 |
-
<input type="hidden" id="bwg_random_seed_<?php echo
|
196 |
<?php
|
197 |
}
|
198 |
?>
|
@@ -201,15 +201,15 @@ class BWGViewSite {
|
|
201 |
<script>
|
202 |
if (document.readyState === 'complete') {
|
203 |
if( typeof bwg_main_ready == 'function' ) {
|
204 |
-
if ( jQuery("#bwg_container1_<?php echo $bwg; ?>").height() ) {
|
205 |
-
bwg_main_ready(jQuery("#bwg_container1_<?php echo $bwg; ?>"));
|
206 |
}
|
207 |
}
|
208 |
} else {
|
209 |
document.addEventListener('DOMContentLoaded', function() {
|
210 |
if( typeof bwg_main_ready == 'function' ) {
|
211 |
-
if ( jQuery("#bwg_container1_<?php echo $bwg; ?>").height() ) {
|
212 |
-
bwg_main_ready(jQuery("#bwg_container1_<?php echo $bwg; ?>"));
|
213 |
}
|
214 |
}
|
215 |
});
|
@@ -294,10 +294,10 @@ class BWGViewSite {
|
|
294 |
$load_type_class = "bwg_load_more_ajax_loading";
|
295 |
}
|
296 |
?>
|
297 |
-
<div id="ajax_loading_<?php echo
|
298 |
<div class="bwg_loading_div_2">
|
299 |
<div class="bwg_loading_div_3">
|
300 |
-
<div id="loading_div_<?php echo
|
301 |
</div>
|
302 |
</div>
|
303 |
</div>
|
@@ -309,7 +309,7 @@ class BWGViewSite {
|
|
309 |
$theme_row = $params['theme_row'];
|
310 |
ob_start();
|
311 |
?>
|
312 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_back_<?php echo $bwg; ?> {
|
313 |
display: inline-block;
|
314 |
background-color: rgba(0, 0, 0, 0);
|
315 |
margin-bottom: 20px;
|
@@ -328,10 +328,10 @@ class BWGViewSite {
|
|
328 |
wp_add_inline_style('bwg_frontend', $inline_style);
|
329 |
}
|
330 |
else {
|
331 |
-
echo '<style>' . $inline_style . '</style>';
|
332 |
}
|
333 |
?>
|
334 |
-
<div class="bwg_back bwg_back_<?php echo
|
335 |
<?php
|
336 |
}
|
337 |
|
@@ -343,7 +343,7 @@ class BWGViewSite {
|
|
343 |
$theme_row = $params['theme_row'];
|
344 |
ob_start();
|
345 |
?>
|
346 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_gal_title_<?php echo $bwg; ?> {
|
347 |
display: block;
|
348 |
padding: <?php echo $theme_row->thumb_gal_title_margin; ?>;
|
349 |
background-color: rgba(0, 0, 0, 0);
|
@@ -355,7 +355,7 @@ class BWGViewSite {
|
|
355 |
text-shadow: <?php echo $theme_row->thumb_gal_title_shadow; ?>;
|
356 |
text-align: <?php echo $theme_row->thumb_gal_title_align; ?>;
|
357 |
}
|
358 |
-
#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_gal_description_<?php echo $bwg; ?> {
|
359 |
margin: 20px 0;
|
360 |
word-break: break-word;
|
361 |
text-align: justify;
|
@@ -368,17 +368,17 @@ class BWGViewSite {
|
|
368 |
wp_add_inline_style('bwg_frontend', $inline_style);
|
369 |
}
|
370 |
else {
|
371 |
-
echo '<style>' . $inline_style . '</style>';
|
372 |
}
|
373 |
}
|
374 |
if ( $params['showthumbs_name'] && isset($row->name) && $row->name != '' ) {
|
375 |
?>
|
376 |
-
<div class="bwg_gal_title_<?php echo
|
377 |
<?php
|
378 |
}
|
379 |
if ( $params['show_gallery_description'] && isset($row->description) && $row->description != '' ) {
|
380 |
?>
|
381 |
-
<div class="bwg_gal_title_<?php echo
|
382 |
<?php
|
383 |
}
|
384 |
}
|
@@ -437,8 +437,8 @@ class BWGViewSite {
|
|
437 |
$album_gallery_id = WDWLibrary::get('album_gallery_id_' . $current_view, $params['album_gallery_id'], 'intval');
|
438 |
ob_start();
|
439 |
?>
|
440 |
-
#bwg_search_container_1_<?php echo $current_view; ?> {
|
441 |
-
max-width: <?php echo $search_box_width; ?>px;
|
442 |
}
|
443 |
<?php
|
444 |
$inline_style = ob_get_clean();
|
@@ -446,7 +446,7 @@ class BWGViewSite {
|
|
446 |
wp_add_inline_style('bwg_frontend', $inline_style);
|
447 |
}
|
448 |
else {
|
449 |
-
echo '<style>' . $inline_style . '</style>';
|
450 |
}
|
451 |
?>
|
452 |
<?php
|
@@ -459,17 +459,17 @@ class BWGViewSite {
|
|
459 |
$bwg_ajax_reset = "";
|
460 |
}
|
461 |
?>
|
462 |
-
<div class="bwg_search_container_1" id="bwg_search_container_1_<?php echo
|
463 |
-
<div class="bwg_search_container_2" id="bwg_search_container_2_<?php echo
|
464 |
<span class="bwg_search_input_container">
|
465 |
<span class="bwg_search_loupe_container1 bwg-hidden">
|
466 |
-
<i title="<?php echo __('SEARCH...', 'photo-gallery'); ?>" class="bwg-icon-search bwg_search" onclick="bwg_ajax('<?php echo $form_id; ?>', '<?php echo $current_view; ?>', '<?php echo $cur_gal_id; ?>', <?php echo $album_gallery_id; ?>, '', '<?php echo $type; ?>', 1)"></i>
|
467 |
</span>
|
468 |
-
<input id="bwg_search_input_<?php echo
|
469 |
-
<span class="bwg_search_reset_container <?echo
|
470 |
-
<i title="<?php echo __('Reset', 'photo-gallery'); ?>" class="bwg-icon-times bwg_reset" onclick="bwg_clear_search_input('<?php echo $current_view; ?>'); <?php echo $bwg_ajax_reset;?> "></i>
|
471 |
</span>
|
472 |
-
<input id="bwg_images_count_<?php echo
|
473 |
<span class="search_placeholder_title" onclick="bwg_search_focus(this)" <?php echo $bwg_search_focus; ?>>
|
474 |
<span class="bwg_search_loupe_container">
|
475 |
<i title="<?php echo __('SEARCH...', 'photo-gallery'); ?>" class="bwg-icon-search bwg_search"></i>
|
@@ -498,7 +498,7 @@ class BWGViewSite {
|
|
498 |
}
|
499 |
ob_start();
|
500 |
?>
|
501 |
-
#bwg_order_<?php echo $current_view; ?> {
|
502 |
width: <?php echo $search_box_width; ?>px;
|
503 |
}
|
504 |
<?php
|
@@ -508,7 +508,7 @@ class BWGViewSite {
|
|
508 |
}
|
509 |
?>
|
510 |
<div class="bwg_order_cont">
|
511 |
-
<select id="bwg_order_<?php echo
|
512 |
<option <?php if ( $sort_by == 'default' ) {
|
513 |
echo 'selected';
|
514 |
} ?> value="default"><?php echo __('Order by Default', 'photo-gallery'); ?></option>
|
@@ -553,48 +553,48 @@ class BWGViewSite {
|
|
553 |
?>
|
554 |
/* Tags styles */
|
555 |
<?php if ( ( $params['show_sort_images'] || $params['show_search_box'] ) && ( $params['show_tag_box'] && $theme_row->tags_view == 0 ) ) { ?>
|
556 |
-
#bwg_container1_<?php echo $current_view; ?> #bwg_container2_<?php echo $current_view; ?> .bwg_search_container_1,
|
557 |
-
#bwg_container1_<?php echo $current_view; ?> #bwg_container2_<?php echo $current_view; ?> .bwg_order_cont {
|
558 |
margin-bottom: 20px;
|
559 |
}
|
560 |
<?php } ?>
|
561 |
-
#bwg_container1_<?php echo $current_view; ?> #bwg_container2_<?php echo $current_view; ?> .bwg_tag_button_view_container .verLine {
|
562 |
-
border-left: 1px solid #<?php echo $theme_row->tags_but_border_color; ?>;
|
563 |
}
|
564 |
-
#bwg_container1_<?php echo $current_view; ?> #bwg_container2_<?php echo $current_view; ?> .bwg_tag_button_view_container button {
|
565 |
-
padding: <?php echo $theme_row->tags_but_padding; ?>;
|
566 |
-
margin: <?php echo $theme_row->tags_but_margin; ?>;
|
567 |
-
font-size: <?php echo $theme_row->tags_but_font_size; ?>px;
|
568 |
-
color: #<?php echo $theme_row->tags_but_font_color; ?>;
|
569 |
-
font-family: <?php echo $theme_row->tags_but_font_style; ?>;
|
570 |
-
font-weight: <?php echo $theme_row->tags_but_font_weight; ?>;
|
571 |
-
background-color: #<?php echo $theme_row->tags_but_bg_color; ?>;
|
572 |
-
border-radius: <?php echo $theme_row->tags_but_border_radius; ?>;
|
573 |
-
border: <?php echo $theme_row->tags_but_border_width; ?>px <?php echo $theme_row->tags_but_border_style; ?> #<?php echo $theme_row->tags_but_border_color; ?>;
|
574 |
}
|
575 |
-
#bwg_container1_<?php echo $current_view; ?> #bwg_container2_<?php echo $current_view; ?> .bwg_tag_button_view_container button.active {
|
576 |
-
background-color: #<?php echo $theme_row->tags_but_active_bg_color; ?>;
|
577 |
-
color: #<?php echo $theme_row->tags_but_active_color; ?>;
|
578 |
}
|
579 |
-
#bwg_container1_<?php echo $current_view; ?> #bwg_container2_<?php echo $current_view; ?> .bwg_tag_button_see_all {
|
580 |
-
border-top: 1px solid #<?php echo $theme_row->tags_but_border_color; ?>;
|
581 |
}
|
582 |
-
#bwg_container1_<?php echo $current_view; ?> #bwg_container2_<?php echo $current_view; ?> .bwg_tag_button_see_all .see_all_tags {
|
583 |
-
border: <?php echo $theme_row->tags_but_see_all_border_w; ?>px <?php echo $theme_row->tags_but_see_all_border_s; ?> #<?php echo $theme_row->tags_but_see_all_border_c; ?>;
|
584 |
-
border-radius: <?php echo $theme_row->tags_but_see_all_border_r; ?>;
|
585 |
-
background-color: #<?php echo $theme_row->tags_but_see_all_back_color; ?>;
|
586 |
-
font-size: <?php echo $theme_row->tags_but_see_all_size; ?>px;
|
587 |
-
color: #<?php echo $theme_row->tags_but_see_all_color; ?>;
|
588 |
}
|
589 |
-
#bwg_container1_<?php echo $current_view; ?> #bwg_container2_<?php echo $current_view; ?> .bwg_tag_button_see_all .see_all_tags span {
|
590 |
-
font-size: <?php echo $theme_row->tags_but_see_all_size; ?>px;
|
591 |
-
font-weight: <?php echo $theme_row->tags_but_font_weight; ?>;
|
592 |
-
font-family: <?php echo $theme_row->tags_but_font_style; ?>;
|
593 |
-
background-color: #<?php echo $theme_row->tags_but_see_all_color; ?>;
|
594 |
}
|
595 |
@media only screen and (max-width : 480px) {
|
596 |
-
#bwg_container1_<?php echo $current_view; ?> #bwg_container2_<?php echo $current_view; ?> .bwg_tag_button_see_all .see_all_tags {
|
597 |
-
font-size: calc(<?php echo $theme_row->tags_but_see_all_size; ?>px - 3px);
|
598 |
padding: 10px 15px;
|
599 |
left: 42%;
|
600 |
}
|
@@ -605,12 +605,12 @@ class BWGViewSite {
|
|
605 |
wp_add_inline_style('bwg_frontend', $inline_style);
|
606 |
}
|
607 |
else {
|
608 |
-
echo '<style>' . $inline_style . '</style>';
|
609 |
}
|
610 |
if ( $theme_row->tags_view == 1 ) { ?>
|
611 |
-
<div class="bwg_tags_container_<?php echo
|
612 |
<div class="search_tags_container">
|
613 |
-
<select class="search_tags" id="bwg_tag_id_<?php echo
|
614 |
<?php
|
615 |
foreach ( $tags_rows as $tags_row ) {
|
616 |
$selected = ( !empty($bwg_search_tags) && in_array($tags_row->term_id ? $tags_row->term_id : '', $bwg_search_tags)) ? 'selected="selected"' : ''; ?>
|
@@ -623,14 +623,14 @@ class BWGViewSite {
|
|
623 |
<?php
|
624 |
}
|
625 |
else { ?>
|
626 |
-
<div class="bwg_tags_container_<?php echo
|
627 |
<div class="bwg_tag_button_view_container" >
|
628 |
<button type="button" class="bwg_all_tags active" data-filter="All Tags"><?php echo __('All Tags', 'photo-gallery');?></button><div class="verLine"></div>
|
629 |
<?php
|
630 |
foreach ( $tags_rows as $tags_row ) {
|
631 |
$active = ( !empty($bwg_search_tags) && in_array($tags_row->term_id ? $tags_row->term_id : '', $bwg_search_tags)) ? 'active' : '';
|
632 |
?>
|
633 |
-
<button type="button" class="bwg_tags_filter_buttons <?php echo
|
634 |
<?php
|
635 |
}
|
636 |
?>
|
@@ -638,7 +638,7 @@ class BWGViewSite {
|
|
638 |
<div class="bwg_tag_button_see_all"><div class="see_all_tags bwg_show"><span>+</span><?php echo __('see all tags', 'photo-gallery');?></div></div>
|
639 |
<?php
|
640 |
} ?>
|
641 |
-
<input type="hidden" id="bwg_tag_id_<?php echo
|
642 |
<input type="hidden" class="current_view" value="<?php echo esc_attr($current_view); ?>" />
|
643 |
<input type="hidden" class="form_id" value="<?php echo esc_attr($form_id); ?>" />
|
644 |
<input type="hidden" class="cur_gal_id" value="<?php echo esc_attr($cur_gal_id); ?>" />
|
@@ -677,102 +677,102 @@ class BWGViewSite {
|
|
677 |
$rgb_page_nav_font_color = WDWLibrary::spider_hex2rgb($theme_row->page_nav_font_color);
|
678 |
?>
|
679 |
/*pagination styles*/
|
680 |
-
#bwg_container1_<?php echo $current_view; ?> #bwg_container2_<?php echo $current_view; ?> .tablenav-pages_<?php echo $current_view; ?> {
|
681 |
-
text-align: <?php echo $theme_row->page_nav_align; ?>;
|
682 |
-
font-size: <?php echo $theme_row->page_nav_font_size; ?>px;
|
683 |
-
font-family: <?php echo $theme_row->page_nav_font_style; ?>;
|
684 |
-
font-weight: <?php echo $theme_row->page_nav_font_weight; ?>;
|
685 |
-
color: #<?php echo $theme_row->page_nav_font_color; ?>;
|
686 |
margin: 6px 0 4px;
|
687 |
display: block;
|
688 |
}
|
689 |
@media only screen and (max-width : 320px) {
|
690 |
-
#bwg_container1_<?php echo $current_view; ?> #bwg_container2_<?php echo $current_view; ?> .displaying-num_<?php echo $current_view; ?> {
|
691 |
display: none;
|
692 |
}
|
693 |
}
|
694 |
-
#bwg_container1_<?php echo $current_view; ?> #bwg_container2_<?php echo $current_view; ?> .displaying-num_<?php echo $current_view; ?> {
|
695 |
-
font-size: <?php echo $theme_row->page_nav_font_size; ?>px;
|
696 |
-
font-family: <?php echo $theme_row->page_nav_font_style; ?>;
|
697 |
-
font-weight: <?php echo $theme_row->page_nav_font_weight; ?>;
|
698 |
-
color: #<?php echo $theme_row->page_nav_font_color; ?>;
|
699 |
margin-right: 10px;
|
700 |
vertical-align: middle;
|
701 |
}
|
702 |
-
#bwg_container1_<?php echo $current_view; ?> #bwg_container2_<?php echo $current_view; ?> .paging-input_<?php echo $current_view; ?> {
|
703 |
-
font-size: <?php echo $theme_row->page_nav_font_size; ?>px;
|
704 |
-
font-family: <?php echo $theme_row->page_nav_font_style; ?>;
|
705 |
-
font-weight: <?php echo $theme_row->page_nav_font_weight; ?>;
|
706 |
-
color: #<?php echo $theme_row->page_nav_font_color; ?>;
|
707 |
vertical-align: middle;
|
708 |
}
|
709 |
-
#bwg_container1_<?php echo $current_view; ?> #bwg_container2_<?php echo $current_view; ?> .tablenav-pages_<?php echo $current_view; ?> a.disabled,
|
710 |
-
#bwg_container1_<?php echo $current_view; ?> #bwg_container2_<?php echo $current_view; ?> .tablenav-pages_<?php echo $current_view; ?> a.disabled:hover,
|
711 |
-
#bwg_container1_<?php echo $current_view; ?> #bwg_container2_<?php echo $current_view; ?> .tablenav-pages_<?php echo $current_view; ?> a.disabled:focus,
|
712 |
-
#bwg_container1_<?php echo $current_view; ?> #bwg_container2_<?php echo $current_view; ?> .tablenav-pages_<?php echo $current_view; ?> input.bwg_current_page {
|
713 |
cursor: default;
|
714 |
-
color: rgba(<?php echo $rgb_page_nav_font_color['red']; ?>, <?php echo $rgb_page_nav_font_color['green']; ?>, <?php echo $rgb_page_nav_font_color['blue']; ?>, 0.5);
|
715 |
}
|
716 |
-
#bwg_container1_<?php echo $current_view; ?> #bwg_container2_<?php echo $current_view; ?> .tablenav-pages_<?php echo $current_view; ?> a,
|
717 |
-
#bwg_container1_<?php echo $current_view; ?> #bwg_container2_<?php echo $current_view; ?> .tablenav-pages_<?php echo $current_view; ?> input.bwg_current_page {
|
718 |
cursor: pointer;
|
719 |
text-align: center;
|
720 |
-
font-size: <?php echo $theme_row->page_nav_font_size; ?>px;
|
721 |
-
font-family: <?php echo $theme_row->page_nav_font_style; ?>;
|
722 |
-
font-weight: <?php echo $theme_row->page_nav_font_weight; ?>;
|
723 |
-
color: #<?php echo $theme_row->page_nav_font_color; ?>;
|
724 |
text-decoration: none;
|
725 |
-
padding: <?php echo $theme_row->page_nav_padding; ?>;
|
726 |
-
margin: <?php echo $theme_row->page_nav_margin; ?>;
|
727 |
-
border-radius: <?php echo $theme_row->page_nav_border_radius; ?>;
|
728 |
-
border-style: <?php echo $theme_row->page_nav_border_style; ?>;
|
729 |
-
border-width: <?php echo $theme_row->page_nav_border_width; ?>px;
|
730 |
-
border-color: #<?php echo $theme_row->page_nav_border_color; ?>;
|
731 |
-
background-color: #<?php echo $theme_row->page_nav_button_bg_color; ?>;
|
732 |
opacity: <?php echo number_format($theme_row->page_nav_button_bg_transparent / 100, 2, ".", ""); ?>;
|
733 |
-
box-shadow: <?php echo $theme_row->page_nav_box_shadow; ?>;
|
734 |
<?php echo ($theme_row->page_nav_button_transition) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
|
735 |
}
|
736 |
<?php
|
737 |
if ( !$params['pagination_default_style'] && $pagination_style == 'image_browser' ) {
|
738 |
$image_browser_images_conteiner = WDWLibrary::spider_hex2rgb($theme_row->image_browser_full_bg_color);
|
739 |
?>
|
740 |
-
#bwg_container1_<?php echo $current_view; ?> #bwg_container2_<?php echo $current_view; ?> .tablenav-pages_<?php echo $current_view; ?> a.next-page:hover,
|
741 |
-
#bwg_container1_<?php echo $current_view; ?> #bwg_container2_<?php echo $current_view; ?> .tablenav-pages_<?php echo $current_view; ?> a.prev-page:hover {
|
742 |
color: #000000;
|
743 |
}
|
744 |
-
#bwg_container1_<?php echo $current_view; ?> #bwg_container2_<?php echo $current_view; ?> .tablenav-pages_<?php echo $current_view; ?> .first-page,
|
745 |
-
#bwg_container1_<?php echo $current_view; ?> #bwg_container2_<?php echo $current_view; ?> .tablenav-pages_<?php echo $current_view; ?> .last-page {
|
746 |
padding: 0% 7%;
|
747 |
}
|
748 |
-
#bwg_container1_<?php echo $current_view; ?> #bwg_container2_<?php echo $current_view; ?> .tablenav-pages_<?php echo $current_view; ?> .next-page {
|
749 |
margin: 0% 4% 0% 0%;
|
750 |
}
|
751 |
-
#bwg_container1_<?php echo $current_view; ?> #bwg_container2_<?php echo $current_view; ?> .tablenav-pages_<?php echo $current_view; ?> .prev-page {
|
752 |
margin: 0% 0% 0% 4%;
|
753 |
}
|
754 |
-
#bwg_container1_<?php echo $current_view; ?> #bwg_container2_<?php echo $current_view; ?> .tablenav-pages_<?php echo $current_view; ?> a {
|
755 |
font-size: 15px !important;
|
756 |
padding: 0% 7% !important;
|
757 |
border-style: none !important;
|
758 |
-
border-width: <?php echo $theme_row->page_nav_border_width; ?>px;
|
759 |
-
border-color: #<?php echo $theme_row->page_nav_border_color; ?>;
|
760 |
-
background-color: #<?php echo $theme_row->page_nav_button_bg_color; ?>;
|
761 |
opacity: <?php echo number_format($theme_row->page_nav_button_bg_transparent / 100, 2, ".", ""); ?>;
|
762 |
<?php echo ($theme_row->page_nav_button_transition ) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
|
763 |
}
|
764 |
-
.bwg_image_browser#bwg_container1_<?php echo $current_view; ?> #bwg_container2_<?php echo $current_view; ?> .tablenav-pages_<?php echo $current_view; ?> a {
|
765 |
padding: 0% 11% !important;
|
766 |
}
|
767 |
-
#bwg_container1_<?php echo $current_view; ?> #bwg_container2_<?php echo $current_view; ?> .tablenav-pages_<?php echo $current_view; ?> {
|
768 |
background-color: rgba(<?php echo $image_browser_images_conteiner['red']; ?>, <?php echo $image_browser_images_conteiner['green']; ?>, <?php echo $image_browser_images_conteiner['blue']; ?>, <?php echo number_format($theme_row->image_browser_full_transparent / 100, 2, ".", ""); ?>);
|
769 |
margin-top: 0;
|
770 |
}
|
771 |
-
.bwg_image_browser .pagination-links_<?php echo $current_view; ?> {
|
772 |
white-space: nowrap;
|
773 |
}
|
774 |
@media screen and (max-width: 465px) {
|
775 |
-
.bwg_image_browser#bwg_container1_<?php echo $current_view; ?> #bwg_container2_<?php echo $current_view; ?> .tablenav-pages_<?php echo $current_view; ?> a {
|
776 |
padding: 0% 5% !important;
|
777 |
font-size: 13px;
|
778 |
}
|
@@ -784,7 +784,7 @@ class BWGViewSite {
|
|
784 |
wp_add_inline_style('bwg_frontend', $inline_style);
|
785 |
}
|
786 |
else {
|
787 |
-
echo '<style>' . $inline_style . '</style>';
|
788 |
}
|
789 |
$limit = $page_number > 1 ? $items_per_page['load_more_image_count'] : $items_per_page['images_per_page'];
|
790 |
$limit = $limit ? $limit : 1;
|
@@ -810,15 +810,15 @@ class BWGViewSite {
|
|
810 |
$next_page = "next-page-" . $current_view;
|
811 |
$last_page = "last-page-" . $current_view;
|
812 |
?>
|
813 |
-
<span class="bwg_nav_cont_<?php echo
|
814 |
<?php
|
815 |
if ( $pagination == 1 ) {
|
816 |
?>
|
817 |
-
<div class="tablenav-pages_<?php echo
|
818 |
<?php
|
819 |
if ( $theme_row->page_nav_number ) {
|
820 |
?>
|
821 |
-
<span class="displaying-num_<?php echo
|
822 |
<?php
|
823 |
}
|
824 |
if ( $count_items > $limit ) {
|
@@ -843,15 +843,15 @@ class BWGViewSite {
|
|
843 |
$last_page = "last-page disabled";
|
844 |
}
|
845 |
?>
|
846 |
-
<span class="pagination-links_<?php echo
|
847 |
<span class="pagination-links_col1">
|
848 |
<a class="bwg-a <?php echo esc_html($first_page); ?>" title="<?php echo __('Go to the first page', 'photo-gallery'); ?>" <?php echo (($enable_dynamic_url || $enable_seo) && $page_number > 1) ? 'href="' . esc_url(add_query_arg(array( "page_number_" . $current_view => 1 ), $_SERVER['REQUEST_URI'])) . '"' : ""; ?>><?php echo esc_html($first_button); ?></a>
|
849 |
<a class="bwg-a <?php echo esc_html($prev_page); ?>" title="<?php echo __('Go to the previous page', 'photo-gallery'); ?>" <?php echo (($enable_dynamic_url || $enable_seo) && $page_number > 1) ? 'href="' . esc_url(add_query_arg(array( "page_number_" . $current_view => $page_number - 1 ), $_SERVER['REQUEST_URI'])) . '"' : ""; ?>><?php echo esc_html($previous_button); ?></a>
|
850 |
</span>
|
851 |
<span class="pagination-links_col2">
|
852 |
-
<input type="number" class="bwg_current_page" name="bwg_current_page" value="<?php echo esc_attr($page_number); ?>" data-url-info="page_number_<?php echo esc_attr($current_view); ?>" onkeypress="return bwg_change_page_<?php echo $current_view; ?>(event, this)" min="1" oninput="validity.valid||(value='')" />
|
853 |
<?php echo __('of', 'photo-gallery'); ?>
|
854 |
-
<span class="total-pages_<?php echo
|
855 |
<?php echo esc_html($items_county); ?>
|
856 |
</span>
|
857 |
</span>
|
@@ -869,14 +869,14 @@ class BWGViewSite {
|
|
869 |
elseif ($pagination == 2) {
|
870 |
if ($count_items > ($limit * ($page_number - 1)) + $items_per_page['images_per_page']) {
|
871 |
?>
|
872 |
-
<div id="bwg_load_<?php echo
|
873 |
-
<a class="bwg-a bwg_load_btn_<?php echo
|
874 |
-
<input type="hidden" id="bwg_load_more_<?php echo
|
875 |
</div>
|
876 |
<?php
|
877 |
} else {
|
878 |
?>
|
879 |
-
<script>jQuery('.bwg_nav_cont_<?php echo $current_view; ?>').remove()</script>
|
880 |
<?php
|
881 |
}
|
882 |
}
|
@@ -886,7 +886,7 @@ class BWGViewSite {
|
|
886 |
<script type="text/javascript">
|
887 |
function bwg_scroll_load_action() {
|
888 |
if (jQuery(document).scrollTop() + jQuery(window).height() > (jQuery('#<?php echo $form_id; ?>').offset().top + jQuery('#<?php echo $form_id; ?>').height())) {
|
889 |
-
spider_page_<?php echo $current_view; ?>('', <?php echo $page_number; ?>, 1, true);
|
890 |
return false;
|
891 |
}
|
892 |
}
|
@@ -897,7 +897,7 @@ class BWGViewSite {
|
|
897 |
<?php
|
898 |
} else {
|
899 |
?>
|
900 |
-
<script>jQuery('.bwg_nav_cont_<?php echo $current_view; ?>').remove()</script>
|
901 |
<?php
|
902 |
}
|
903 |
}
|
@@ -905,72 +905,72 @@ class BWGViewSite {
|
|
905 |
$page_number = WDWLibrary::get('page_number_' . $current_view, 1, 'intval');
|
906 |
$scroll_to_top = $pagination == 1 ? 1 : 0;
|
907 |
?>
|
908 |
-
<input type="hidden" id="page_number_<?php echo
|
909 |
<script type="text/javascript">
|
910 |
-
if( jQuery('.bwg_nav_cont_<?php echo $current_view; ?>').length > 1 ) {
|
911 |
-
jQuery('.bwg_nav_cont_<?php echo $current_view; ?>').first().remove()
|
912 |
}
|
913 |
-
function spider_page_<?php echo $current_view; ?>(cur, x, y, load_more) {
|
914 |
if (typeof load_more == "undefined") {
|
915 |
var load_more = false;
|
916 |
}
|
917 |
if (jQuery(cur).hasClass('disabled')) {
|
918 |
return false;
|
919 |
}
|
920 |
-
var items_county_<?php echo $current_view; ?> = <?php echo $items_county; ?>;
|
921 |
switch (y) {
|
922 |
case 1:
|
923 |
-
if (x >= items_county_<?php echo $current_view; ?>) {
|
924 |
-
document.getElementById('page_number_<?php echo $current_view; ?>').value = items_county_<?php echo $current_view; ?>;
|
925 |
}
|
926 |
else {
|
927 |
-
document.getElementById('page_number_<?php echo $current_view; ?>').value = x + 1;
|
928 |
}
|
929 |
break;
|
930 |
case 2:
|
931 |
-
document.getElementById('page_number_<?php echo $current_view; ?>').value = items_county_<?php echo $current_view; ?>;
|
932 |
break;
|
933 |
case -1:
|
934 |
if (x == 1) {
|
935 |
-
document.getElementById('page_number_<?php echo $current_view; ?>').value = 1;
|
936 |
}
|
937 |
else {
|
938 |
-
document.getElementById('page_number_<?php echo $current_view; ?>').value = x - 1;
|
939 |
}
|
940 |
break;
|
941 |
case -2:
|
942 |
-
document.getElementById('page_number_<?php echo $current_view; ?>').value = 1;
|
943 |
break;
|
944 |
case 0:
|
945 |
-
document.getElementById('page_number_<?php echo $current_view; ?>').value = x;
|
946 |
break;
|
947 |
default:
|
948 |
-
document.getElementById('page_number_<?php echo $current_view; ?>').value = 1;
|
949 |
}
|
950 |
-
bwg_ajax('<?php echo $form_id; ?>', '<?php echo $current_view; ?>', '<?php echo $id; ?>', '<?php echo $album_gallery_id; ?>', '', '<?php echo $type; ?>', 0, '', '', load_more, '', <?php echo $scroll_to_top; ?>);
|
951 |
}
|
952 |
|
953 |
<?php if ( BWG()->options->front_ajax != "1" ) { ?>
|
954 |
jQuery('.<?php echo $first_page; ?>').on('click', function () {
|
955 |
-
spider_page_<?php echo $current_view; ?>(this, <?php echo $page_number; ?>, -2, 'numeric');
|
956 |
return false;
|
957 |
});
|
958 |
jQuery('.<?php echo $prev_page; ?>').on('click', function () {
|
959 |
-
spider_page_<?php echo $current_view; ?>(this, <?php echo $page_number; ?>, -1, 'numeric');
|
960 |
return false;
|
961 |
});
|
962 |
jQuery('.<?php echo $next_page; ?>').on('click', function () {
|
963 |
-
spider_page_<?php echo $current_view; ?>(this, <?php echo $page_number; ?>, 1, 'numeric');
|
964 |
return false;
|
965 |
});
|
966 |
jQuery('.<?php echo $last_page; ?>').on('click', function () {
|
967 |
-
spider_page_<?php echo $current_view; ?>(this, <?php echo $page_number; ?>, 2, 'numeric');
|
968 |
return false;
|
969 |
});
|
970 |
<?php } ?>
|
971 |
|
972 |
/* Change page on input enter. */
|
973 |
-
function bwg_change_page_<?php echo $current_view; ?>( e, that ) {
|
974 |
if ( e.key == 'Enter' ) {
|
975 |
var to_page = parseInt(jQuery(that).val());
|
976 |
var pages_count = jQuery(that).parents(".pagination-links").data("pages-count");
|
@@ -979,7 +979,7 @@ class BWGViewSite {
|
|
979 |
to_page = 1;
|
980 |
}
|
981 |
<?php if ( BWG()->options->front_ajax != "1" ) { ?>
|
982 |
-
spider_page_<?php echo $current_view; ?>(this, to_page, 0, 'numeric');
|
983 |
return false;
|
984 |
<?php
|
985 |
} else { ?>
|
@@ -1000,8 +1000,8 @@ class BWGViewSite {
|
|
1000 |
return true;
|
1001 |
}
|
1002 |
|
1003 |
-
jQuery('.bwg_load_btn_<?php echo $current_view; ?>').on('click', function () {
|
1004 |
-
spider_page_<?php echo $current_view; ?>(this, <?php echo $page_number; ?>, 1, true);
|
1005 |
return false;
|
1006 |
});
|
1007 |
</script>
|
@@ -1021,9 +1021,9 @@ class BWGViewSite {
|
|
1021 |
return $url;
|
1022 |
}
|
1023 |
unset($query[$param]);
|
1024 |
-
$s_url = $_SERVER["PHP_SELF"];
|
1025 |
if ( isset($_SERVER["REQUEST_URI"]) ) {
|
1026 |
-
$r_url = explode("?", $_SERVER["REQUEST_URI"]);
|
1027 |
if ( isset($r_url[0]) ) {
|
1028 |
$s_url = $r_url[0];
|
1029 |
}
|
63 |
amp-img {
|
64 |
height: 100%!important;
|
65 |
}
|
66 |
+
#bwg_container1_' . esc_attr($bwg) . ' #bwg_container2_' . esc_attr($bwg) . ' .bwg-container-' . esc_attr($bwg) . '.bwg-standard-thumbnails .bwg-item1 {
|
67 |
padding-top: 66%;
|
68 |
}
|
69 |
+
.bwg-container-' . esc_attr($bwg) . ' {
|
70 |
width: 100%!important;
|
71 |
}
|
72 |
@media screen and (max-width: 485px) {
|
88 |
}
|
89 |
?>
|
90 |
|
91 |
+
<div id="bwg_container1_<?php echo esc_attr($bwg); ?>"
|
92 |
+
class="bwg_container bwg_thumbnail bwg_<?php echo esc_attr($params['gallery_type']); ?>"
|
93 |
data-right-click-protection="<?php echo esc_attr(BWG()->options->image_right_click); ?>"
|
94 |
data-bwg="<?php echo esc_attr($bwg); ?>"
|
95 |
data-scroll="<?php echo esc_attr($params['need_scroll']); ?>"
|
101 |
data-popup-height="<?php echo esc_attr($params["popup_height"]); ?>"
|
102 |
data-is-album="<?php echo esc_attr($params["view_type"]); ?>"
|
103 |
data-buttons-position="<?php echo esc_attr($theme_row->lightbox_ctrl_btn_pos); ?>">
|
104 |
+
<div id="bwg_container2_<?php echo esc_attr($bwg); ?>">
|
105 |
<?php (function_exists('amp_is_request') && amp_is_request()) ? :$this->loading($bwg, $params["image_enable_page"], $params['gallery_type'] ); ?>
|
106 |
+
<form id="gal_front_form_<?php echo esc_attr($bwg); ?>"
|
107 |
<?php echo (function_exists('amp_is_request') && amp_is_request()) ? : 'class="bwg-hidden"' ?>
|
108 |
method="post"
|
109 |
action="#"
|
115 |
data-album-id="<?php echo esc_attr($params['album_id']); ?>"
|
116 |
data-theme-id="<?php echo esc_attr($params['theme_id']); ?>"
|
117 |
data-ajax-url="<?php echo esc_url(add_query_arg(array('action' => 'bwg_frontend_data'), admin_url('admin-ajax.php'))); ?>">
|
118 |
+
<div id="bwg_container3_<?php echo esc_attr($bwg); ?>" class="bwg-background bwg-background-<?php echo esc_attr($bwg); ?>">
|
119 |
<?php
|
120 |
$get_album_gallery_id = WDWLibrary::get("album_gallery_id_" . $bwg, 0, 'intval');
|
121 |
if ( BWG()->options->front_ajax == "1" && isset($get_album_gallery_id) && intval($get_album_gallery_id) > 0 ) {
|
176 |
if ( $params['thumb_click_action'] == 'open_lightbox' ) {
|
177 |
ob_start();
|
178 |
?>
|
179 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> #spider_popup_overlay_<?php echo esc_attr($bwg); ?> {
|
180 |
background-color: #<?php echo $theme_row->lightbox_overlay_bg_color; ?>;
|
181 |
opacity: <?php echo number_format($theme_row->lightbox_overlay_bg_transparent / 100, 2, ".", ""); ?>;
|
182 |
}
|
187 |
wp_add_inline_style( 'bwg_frontend', $inline_style );
|
188 |
}
|
189 |
else {
|
190 |
+
echo '<style>' . strip_tags($inline_style) . '</style>';
|
191 |
}
|
192 |
?>
|
193 |
+
<div id="bwg_spider_popup_loading_<?php echo esc_attr($bwg); ?>" class="bwg_spider_popup_loading"></div>
|
194 |
+
<div id="spider_popup_overlay_<?php echo esc_attr($bwg); ?>" class="spider_popup_overlay" onclick="spider_destroypopup(1000)"></div>
|
195 |
+
<input type="hidden" id="bwg_random_seed_<?php echo esc_attr($bwg); ?>" value="<?php echo isset($GLOBALS['bwg_random_seed_' . $bwg]) ? esc_attr($GLOBALS['bwg_random_seed_' . $bwg]) : '' ?>">
|
196 |
<?php
|
197 |
}
|
198 |
?>
|
201 |
<script>
|
202 |
if (document.readyState === 'complete') {
|
203 |
if( typeof bwg_main_ready == 'function' ) {
|
204 |
+
if ( jQuery("#bwg_container1_<?php echo esc_attr($bwg); ?>").height() ) {
|
205 |
+
bwg_main_ready(jQuery("#bwg_container1_<?php echo esc_attr($bwg); ?>"));
|
206 |
}
|
207 |
}
|
208 |
} else {
|
209 |
document.addEventListener('DOMContentLoaded', function() {
|
210 |
if( typeof bwg_main_ready == 'function' ) {
|
211 |
+
if ( jQuery("#bwg_container1_<?php echo esc_attr($bwg); ?>").height() ) {
|
212 |
+
bwg_main_ready(jQuery("#bwg_container1_<?php echo esc_attr($bwg); ?>"));
|
213 |
}
|
214 |
}
|
215 |
});
|
294 |
$load_type_class = "bwg_load_more_ajax_loading";
|
295 |
}
|
296 |
?>
|
297 |
+
<div id="ajax_loading_<?php echo esc_attr($bwg); ?>" class="<?php echo esc_attr($load_type_class); ?>">
|
298 |
<div class="bwg_loading_div_2">
|
299 |
<div class="bwg_loading_div_3">
|
300 |
+
<div id="loading_div_<?php echo esc_attr($bwg); ?>" class="bwg_spider_ajax_loading">
|
301 |
</div>
|
302 |
</div>
|
303 |
</div>
|
309 |
$theme_row = $params['theme_row'];
|
310 |
ob_start();
|
311 |
?>
|
312 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_back_<?php echo esc_attr($bwg); ?> {
|
313 |
display: inline-block;
|
314 |
background-color: rgba(0, 0, 0, 0);
|
315 |
margin-bottom: 20px;
|
328 |
wp_add_inline_style('bwg_frontend', $inline_style);
|
329 |
}
|
330 |
else {
|
331 |
+
echo '<style>' . strip_tags($inline_style) . '</style>';
|
332 |
}
|
333 |
?>
|
334 |
+
<div class="bwg_back bwg_back_<?php echo esc_attr($bwg); ?>" onclick="bwg_ajax('gal_front_form_<?php echo esc_attr($bwg); ?>', '<?php echo esc_attr($bwg); ?>', '<?php echo $params['container_id']; ?>', 'back', '', 'album')"><i class="bwg-icon-arrow-left"></i> <?php _e('Back', 'photo-gallery'); ?></div>
|
335 |
<?php
|
336 |
}
|
337 |
|
343 |
$theme_row = $params['theme_row'];
|
344 |
ob_start();
|
345 |
?>
|
346 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_gal_title_<?php echo esc_attr($bwg); ?> {
|
347 |
display: block;
|
348 |
padding: <?php echo $theme_row->thumb_gal_title_margin; ?>;
|
349 |
background-color: rgba(0, 0, 0, 0);
|
355 |
text-shadow: <?php echo $theme_row->thumb_gal_title_shadow; ?>;
|
356 |
text-align: <?php echo $theme_row->thumb_gal_title_align; ?>;
|
357 |
}
|
358 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_gal_description_<?php echo esc_attr($bwg); ?> {
|
359 |
margin: 20px 0;
|
360 |
word-break: break-word;
|
361 |
text-align: justify;
|
368 |
wp_add_inline_style('bwg_frontend', $inline_style);
|
369 |
}
|
370 |
else {
|
371 |
+
echo '<style>' . strip_tags($inline_style) . '</style>';
|
372 |
}
|
373 |
}
|
374 |
if ( $params['showthumbs_name'] && isset($row->name) && $row->name != '' ) {
|
375 |
?>
|
376 |
+
<div class="bwg_gal_title_<?php echo esc_attr($bwg); ?>"><?php echo WDWLibrary::strip_tags(stripslashes($row->name)); ?></div>
|
377 |
<?php
|
378 |
}
|
379 |
if ( $params['show_gallery_description'] && isset($row->description) && $row->description != '' ) {
|
380 |
?>
|
381 |
+
<div class="bwg_gal_title_<?php echo esc_attr($bwg); ?> bwg_gal_description_<?php echo esc_attr($bwg); ?>"><?php echo WDWLibrary::strip_tags(stripslashes($row->description)); ?></div>
|
382 |
<?php
|
383 |
}
|
384 |
}
|
437 |
$album_gallery_id = WDWLibrary::get('album_gallery_id_' . $current_view, $params['album_gallery_id'], 'intval');
|
438 |
ob_start();
|
439 |
?>
|
440 |
+
#bwg_search_container_1_<?php echo esc_attr($current_view); ?> {
|
441 |
+
max-width: <?php echo esc_html($search_box_width); ?>px;
|
442 |
}
|
443 |
<?php
|
444 |
$inline_style = ob_get_clean();
|
446 |
wp_add_inline_style('bwg_frontend', $inline_style);
|
447 |
}
|
448 |
else {
|
449 |
+
echo '<style>' . strip_tags($inline_style) . '</style>';
|
450 |
}
|
451 |
?>
|
452 |
<?php
|
459 |
$bwg_ajax_reset = "";
|
460 |
}
|
461 |
?>
|
462 |
+
<div class="bwg_search_container_1" id="bwg_search_container_1_<?php echo esc_attr($current_view); ?>">
|
463 |
+
<div class="bwg_search_container_2" id="bwg_search_container_2_<?php echo esc_attr($current_view); ?>">
|
464 |
<span class="bwg_search_input_container">
|
465 |
<span class="bwg_search_loupe_container1 bwg-hidden">
|
466 |
+
<i title="<?php echo __('SEARCH...', 'photo-gallery'); ?>" class="bwg-icon-search bwg_search" onclick="bwg_ajax('<?php echo $form_id; ?>', '<?php echo esc_attr($current_view); ?>', '<?php echo $cur_gal_id; ?>', <?php echo $album_gallery_id; ?>, '', '<?php echo $type; ?>', 1)"></i>
|
467 |
</span>
|
468 |
+
<input id="bwg_search_input_<?php echo esc_attr($current_view); ?>" class="bwg_search_input" type="text" onkeypress="bwg_key_press(this); return bwg_check_search_input_enter(this, event);" name="bwg_search_<?php echo esc_attr($current_view); ?>" value="<?php echo esc_attr($bwg_search); ?>" placeholder="<?php echo esc_attr($placeholder); ?>" />
|
469 |
+
<span class="bwg_search_reset_container <?echo esc_attr($bwg_search_reset); ?>">
|
470 |
+
<i title="<?php echo __('Reset', 'photo-gallery'); ?>" class="bwg-icon-times bwg_reset" onclick="bwg_clear_search_input('<?php echo esc_attr($current_view); ?>'); <?php echo $bwg_ajax_reset;?> "></i>
|
471 |
</span>
|
472 |
+
<input id="bwg_images_count_<?php echo esc_attr($current_view); ?>" class="bwg_search_input" type="hidden" name="bwg_images_count_<?php echo esc_attr($current_view); ?>" value="<?php echo esc_attr($images_count); ?>">
|
473 |
<span class="search_placeholder_title" onclick="bwg_search_focus(this)" <?php echo $bwg_search_focus; ?>>
|
474 |
<span class="bwg_search_loupe_container">
|
475 |
<i title="<?php echo __('SEARCH...', 'photo-gallery'); ?>" class="bwg-icon-search bwg_search"></i>
|
498 |
}
|
499 |
ob_start();
|
500 |
?>
|
501 |
+
#bwg_order_<?php echo esc_attr($current_view); ?> {
|
502 |
width: <?php echo $search_box_width; ?>px;
|
503 |
}
|
504 |
<?php
|
508 |
}
|
509 |
?>
|
510 |
<div class="bwg_order_cont">
|
511 |
+
<select id="bwg_order_<?php echo esc_attr($current_view); ?>" class="bwg_order bwg_order_<?php echo esc_attr($current_view); ?>" onchange="bwg_ajax('<?php echo $form_id; ?>', '<?php echo esc_attr($current_view); ?>', '<?php echo $cur_gal_id; ?>', <?php echo $album_gallery_id; ?>, '', '<?php echo $type; ?>', 1, '', this.value)">
|
512 |
<option <?php if ( $sort_by == 'default' ) {
|
513 |
echo 'selected';
|
514 |
} ?> value="default"><?php echo __('Order by Default', 'photo-gallery'); ?></option>
|
553 |
?>
|
554 |
/* Tags styles */
|
555 |
<?php if ( ( $params['show_sort_images'] || $params['show_search_box'] ) && ( $params['show_tag_box'] && $theme_row->tags_view == 0 ) ) { ?>
|
556 |
+
#bwg_container1_<?php echo esc_attr($current_view); ?> #bwg_container2_<?php echo esc_attr($current_view); ?> .bwg_search_container_1,
|
557 |
+
#bwg_container1_<?php echo esc_attr($current_view); ?> #bwg_container2_<?php echo esc_attr($current_view); ?> .bwg_order_cont {
|
558 |
margin-bottom: 20px;
|
559 |
}
|
560 |
<?php } ?>
|
561 |
+
#bwg_container1_<?php echo esc_attr($current_view); ?> #bwg_container2_<?php echo esc_attr($current_view); ?> .bwg_tag_button_view_container .verLine {
|
562 |
+
border-left: 1px solid #<?php echo esc_html($theme_row->tags_but_border_color); ?>;
|
563 |
}
|
564 |
+
#bwg_container1_<?php echo esc_attr($current_view); ?> #bwg_container2_<?php echo esc_attr($current_view); ?> .bwg_tag_button_view_container button {
|
565 |
+
padding: <?php echo esc_html($theme_row->tags_but_padding); ?>;
|
566 |
+
margin: <?php echo esc_html($theme_row->tags_but_margin); ?>;
|
567 |
+
font-size: <?php echo esc_html($theme_row->tags_but_font_size); ?>px;
|
568 |
+
color: #<?php echo esc_html($theme_row->tags_but_font_color); ?>;
|
569 |
+
font-family: <?php echo esc_html($theme_row->tags_but_font_style); ?>;
|
570 |
+
font-weight: <?php echo esc_html($theme_row->tags_but_font_weight); ?>;
|
571 |
+
background-color: #<?php echo esc_html($theme_row->tags_but_bg_color); ?>;
|
572 |
+
border-radius: <?php echo esc_html($theme_row->tags_but_border_radius); ?>;
|
573 |
+
border: <?php echo esc_html($theme_row->tags_but_border_width); ?>px <?php echo esc_html($theme_row->tags_but_border_style); ?> #<?php echo esc_html($theme_row->tags_but_border_color); ?>;
|
574 |
}
|
575 |
+
#bwg_container1_<?php echo esc_attr($current_view); ?> #bwg_container2_<?php echo esc_attr($current_view); ?> .bwg_tag_button_view_container button.active {
|
576 |
+
background-color: #<?php echo esc_html($theme_row->tags_but_active_bg_color); ?>;
|
577 |
+
color: #<?php echo esc_html($theme_row->tags_but_active_color); ?>;
|
578 |
}
|
579 |
+
#bwg_container1_<?php echo esc_attr($current_view); ?> #bwg_container2_<?php echo esc_attr($current_view); ?> .bwg_tag_button_see_all {
|
580 |
+
border-top: 1px solid #<?php echo esc_html($theme_row->tags_but_border_color); ?>;
|
581 |
}
|
582 |
+
#bwg_container1_<?php echo esc_attr($current_view); ?> #bwg_container2_<?php echo esc_attr($current_view); ?> .bwg_tag_button_see_all .see_all_tags {
|
583 |
+
border: <?php echo esc_html($theme_row->tags_but_see_all_border_w); ?>px <?php echo esc_html($theme_row->tags_but_see_all_border_s); ?> #<?php echo esc_html($theme_row->tags_but_see_all_border_c); ?>;
|
584 |
+
border-radius: <?php echo esc_html($theme_row->tags_but_see_all_border_r); ?>;
|
585 |
+
background-color: #<?php echo esc_html($theme_row->tags_but_see_all_back_color); ?>;
|
586 |
+
font-size: <?php echo esc_html($theme_row->tags_but_see_all_size); ?>px;
|
587 |
+
color: #<?php echo esc_html($theme_row->tags_but_see_all_color); ?>;
|
588 |
}
|
589 |
+
#bwg_container1_<?php echo esc_attr($current_view); ?> #bwg_container2_<?php echo esc_attr($current_view); ?> .bwg_tag_button_see_all .see_all_tags span {
|
590 |
+
font-size: <?php echo esc_html($theme_row->tags_but_see_all_size); ?>px;
|
591 |
+
font-weight: <?php echo esc_html($theme_row->tags_but_font_weight); ?>;
|
592 |
+
font-family: <?php echo esc_html($theme_row->tags_but_font_style); ?>;
|
593 |
+
background-color: #<?php echo esc_html($theme_row->tags_but_see_all_color); ?>;
|
594 |
}
|
595 |
@media only screen and (max-width : 480px) {
|
596 |
+
#bwg_container1_<?php echo esc_attr($current_view); ?> #bwg_container2_<?php echo esc_attr($current_view); ?> .bwg_tag_button_see_all .see_all_tags {
|
597 |
+
font-size: calc(<?php echo esc_html($theme_row->tags_but_see_all_size); ?>px - 3px);
|
598 |
padding: 10px 15px;
|
599 |
left: 42%;
|
600 |
}
|
605 |
wp_add_inline_style('bwg_frontend', $inline_style);
|
606 |
}
|
607 |
else {
|
608 |
+
echo '<style>' . strip_tags($inline_style) . '</style>';
|
609 |
}
|
610 |
if ( $theme_row->tags_view == 1 ) { ?>
|
611 |
+
<div class="bwg_tags_container_<?php echo esc_attr($current_view); ?>" >
|
612 |
<div class="search_tags_container">
|
613 |
+
<select class="search_tags" id="bwg_tag_id_<?php echo esc_attr($cur_gal_id); ?>" multiple="multiple">
|
614 |
<?php
|
615 |
foreach ( $tags_rows as $tags_row ) {
|
616 |
$selected = ( !empty($bwg_search_tags) && in_array($tags_row->term_id ? $tags_row->term_id : '', $bwg_search_tags)) ? 'selected="selected"' : ''; ?>
|
623 |
<?php
|
624 |
}
|
625 |
else { ?>
|
626 |
+
<div class="bwg_tags_container_<?php echo esc_attr($current_view); ?>">
|
627 |
<div class="bwg_tag_button_view_container" >
|
628 |
<button type="button" class="bwg_all_tags active" data-filter="All Tags"><?php echo __('All Tags', 'photo-gallery');?></button><div class="verLine"></div>
|
629 |
<?php
|
630 |
foreach ( $tags_rows as $tags_row ) {
|
631 |
$active = ( !empty($bwg_search_tags) && in_array($tags_row->term_id ? $tags_row->term_id : '', $bwg_search_tags)) ? 'active' : '';
|
632 |
?>
|
633 |
+
<button type="button" class="bwg_tags_filter_buttons <?php echo esc_attr($active) ?>" data-filter="<?php echo esc_attr($tags_row->name) ?>" value="<?php echo esc_attr($tags_row->term_id); ?>" ><?php echo esc_html($tags_row->name) ?></button>
|
634 |
<?php
|
635 |
}
|
636 |
?>
|
638 |
<div class="bwg_tag_button_see_all"><div class="see_all_tags bwg_show"><span>+</span><?php echo __('see all tags', 'photo-gallery');?></div></div>
|
639 |
<?php
|
640 |
} ?>
|
641 |
+
<input type="hidden" id="bwg_tag_id_<?php echo esc_attr($cur_gal_id); ?>" value="<?php echo esc_attr($get_filter_teg) ?>" />
|
642 |
<input type="hidden" class="current_view" value="<?php echo esc_attr($current_view); ?>" />
|
643 |
<input type="hidden" class="form_id" value="<?php echo esc_attr($form_id); ?>" />
|
644 |
<input type="hidden" class="cur_gal_id" value="<?php echo esc_attr($cur_gal_id); ?>" />
|
677 |
$rgb_page_nav_font_color = WDWLibrary::spider_hex2rgb($theme_row->page_nav_font_color);
|
678 |
?>
|
679 |
/*pagination styles*/
|
680 |
+
#bwg_container1_<?php echo esc_attr($current_view); ?> #bwg_container2_<?php echo esc_attr($current_view); ?> .tablenav-pages_<?php echo esc_attr($current_view); ?> {
|
681 |
+
text-align: <?php echo esc_html($theme_row->page_nav_align); ?>;
|
682 |
+
font-size: <?php echo esc_html($theme_row->page_nav_font_size); ?>px;
|
683 |
+
font-family: <?php echo esc_html($theme_row->page_nav_font_style); ?>;
|
684 |
+
font-weight: <?php echo esc_html($theme_row->page_nav_font_weight); ?>;
|
685 |
+
color: #<?php echo esc_html($theme_row->page_nav_font_color); ?>;
|
686 |
margin: 6px 0 4px;
|
687 |
display: block;
|
688 |
}
|
689 |
@media only screen and (max-width : 320px) {
|
690 |
+
#bwg_container1_<?php echo esc_attr($current_view); ?> #bwg_container2_<?php echo esc_attr($current_view); ?> .displaying-num_<?php echo esc_attr($current_view); ?> {
|
691 |
display: none;
|
692 |
}
|
693 |
}
|
694 |
+
#bwg_container1_<?php echo esc_attr($current_view); ?> #bwg_container2_<?php echo esc_attr($current_view); ?> .displaying-num_<?php echo esc_attr($current_view); ?> {
|
695 |
+
font-size: <?php echo esc_html($theme_row->page_nav_font_size); ?>px;
|
696 |
+
font-family: <?php echo esc_html($theme_row->page_nav_font_style); ?>;
|
697 |
+
font-weight: <?php echo esc_html($theme_row->page_nav_font_weight); ?>;
|
698 |
+
color: #<?php echo esc_html($theme_row->page_nav_font_color); ?>;
|
699 |
margin-right: 10px;
|
700 |
vertical-align: middle;
|
701 |
}
|
702 |
+
#bwg_container1_<?php echo esc_attr($current_view); ?> #bwg_container2_<?php echo esc_attr($current_view); ?> .paging-input_<?php echo esc_attr($current_view); ?> {
|
703 |
+
font-size: <?php echo esc_html($theme_row->page_nav_font_size); ?>px;
|
704 |
+
font-family: <?php echo esc_html($theme_row->page_nav_font_style); ?>;
|
705 |
+
font-weight: <?php echo esc_html($theme_row->page_nav_font_weight); ?>;
|
706 |
+
color: #<?php echo esc_html($theme_row->page_nav_font_color); ?>;
|
707 |
vertical-align: middle;
|
708 |
}
|
709 |
+
#bwg_container1_<?php echo esc_attr($current_view); ?> #bwg_container2_<?php echo esc_attr($current_view); ?> .tablenav-pages_<?php echo esc_attr($current_view); ?> a.disabled,
|
710 |
+
#bwg_container1_<?php echo esc_attr($current_view); ?> #bwg_container2_<?php echo esc_attr($current_view); ?> .tablenav-pages_<?php echo esc_attr($current_view); ?> a.disabled:hover,
|
711 |
+
#bwg_container1_<?php echo esc_attr($current_view); ?> #bwg_container2_<?php echo esc_attr($current_view); ?> .tablenav-pages_<?php echo esc_attr($current_view); ?> a.disabled:focus,
|
712 |
+
#bwg_container1_<?php echo esc_attr($current_view); ?> #bwg_container2_<?php echo esc_attr($current_view); ?> .tablenav-pages_<?php echo esc_attr($current_view); ?> input.bwg_current_page {
|
713 |
cursor: default;
|
714 |
+
color: rgba(<?php echo esc_html($rgb_page_nav_font_color['red']); ?>, <?php echo esc_html($rgb_page_nav_font_color['green']); ?>, <?php echo esc_html($rgb_page_nav_font_color['blue']); ?>, 0.5);
|
715 |
}
|
716 |
+
#bwg_container1_<?php echo esc_attr($current_view); ?> #bwg_container2_<?php echo esc_attr($current_view); ?> .tablenav-pages_<?php echo esc_attr($current_view); ?> a,
|
717 |
+
#bwg_container1_<?php echo esc_attr($current_view); ?> #bwg_container2_<?php echo esc_attr($current_view); ?> .tablenav-pages_<?php echo esc_attr($current_view); ?> input.bwg_current_page {
|
718 |
cursor: pointer;
|
719 |
text-align: center;
|
720 |
+
font-size: <?php echo esc_html($theme_row->page_nav_font_size); ?>px;
|
721 |
+
font-family: <?php echo esc_html($theme_row->page_nav_font_style); ?>;
|
722 |
+
font-weight: <?php echo esc_html($theme_row->page_nav_font_weight); ?>;
|
723 |
+
color: #<?php echo esc_html($theme_row->page_nav_font_color); ?>;
|
724 |
text-decoration: none;
|
725 |
+
padding: <?php echo esc_html($theme_row->page_nav_padding); ?>;
|
726 |
+
margin: <?php echo esc_html($theme_row->page_nav_margin); ?>;
|
727 |
+
border-radius: <?php echo esc_html($theme_row->page_nav_border_radius); ?>;
|
728 |
+
border-style: <?php echo esc_html($theme_row->page_nav_border_style); ?>;
|
729 |
+
border-width: <?php echo esc_html($theme_row->page_nav_border_width); ?>px;
|
730 |
+
border-color: #<?php echo esc_html($theme_row->page_nav_border_color); ?>;
|
731 |
+
background-color: #<?php echo esc_html($theme_row->page_nav_button_bg_color); ?>;
|
732 |
opacity: <?php echo number_format($theme_row->page_nav_button_bg_transparent / 100, 2, ".", ""); ?>;
|
733 |
+
box-shadow: <?php echo esc_html($theme_row->page_nav_box_shadow); ?>;
|
734 |
<?php echo ($theme_row->page_nav_button_transition) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
|
735 |
}
|
736 |
<?php
|
737 |
if ( !$params['pagination_default_style'] && $pagination_style == 'image_browser' ) {
|
738 |
$image_browser_images_conteiner = WDWLibrary::spider_hex2rgb($theme_row->image_browser_full_bg_color);
|
739 |
?>
|
740 |
+
#bwg_container1_<?php echo esc_attr($current_view); ?> #bwg_container2_<?php echo esc_attr($current_view); ?> .tablenav-pages_<?php echo esc_attr($current_view); ?> a.next-page:hover,
|
741 |
+
#bwg_container1_<?php echo esc_attr($current_view); ?> #bwg_container2_<?php echo esc_attr($current_view); ?> .tablenav-pages_<?php echo esc_attr($current_view); ?> a.prev-page:hover {
|
742 |
color: #000000;
|
743 |
}
|
744 |
+
#bwg_container1_<?php echo esc_attr($current_view); ?> #bwg_container2_<?php echo esc_attr($current_view); ?> .tablenav-pages_<?php echo esc_attr($current_view); ?> .first-page,
|
745 |
+
#bwg_container1_<?php echo esc_attr($current_view); ?> #bwg_container2_<?php echo esc_attr($current_view); ?> .tablenav-pages_<?php echo esc_attr($current_view); ?> .last-page {
|
746 |
padding: 0% 7%;
|
747 |
}
|
748 |
+
#bwg_container1_<?php echo esc_attr($current_view); ?> #bwg_container2_<?php echo esc_attr($current_view); ?> .tablenav-pages_<?php echo esc_attr($current_view); ?> .next-page {
|
749 |
margin: 0% 4% 0% 0%;
|
750 |
}
|
751 |
+
#bwg_container1_<?php echo esc_attr($current_view); ?> #bwg_container2_<?php echo esc_attr($current_view); ?> .tablenav-pages_<?php echo esc_attr($current_view); ?> .prev-page {
|
752 |
margin: 0% 0% 0% 4%;
|
753 |
}
|
754 |
+
#bwg_container1_<?php echo esc_attr($current_view); ?> #bwg_container2_<?php echo esc_attr($current_view); ?> .tablenav-pages_<?php echo esc_attr($current_view); ?> a {
|
755 |
font-size: 15px !important;
|
756 |
padding: 0% 7% !important;
|
757 |
border-style: none !important;
|
758 |
+
border-width: <?php echo esc_html($theme_row->page_nav_border_width); ?>px;
|
759 |
+
border-color: #<?php echo esc_html($theme_row->page_nav_border_color); ?>;
|
760 |
+
background-color: #<?php echo esc_html($theme_row->page_nav_button_bg_color); ?>;
|
761 |
opacity: <?php echo number_format($theme_row->page_nav_button_bg_transparent / 100, 2, ".", ""); ?>;
|
762 |
<?php echo ($theme_row->page_nav_button_transition ) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
|
763 |
}
|
764 |
+
.bwg_image_browser#bwg_container1_<?php echo esc_attr($current_view); ?> #bwg_container2_<?php echo esc_attr($current_view); ?> .tablenav-pages_<?php echo esc_attr($current_view); ?> a {
|
765 |
padding: 0% 11% !important;
|
766 |
}
|
767 |
+
#bwg_container1_<?php echo esc_attr($current_view); ?> #bwg_container2_<?php echo esc_attr($current_view); ?> .tablenav-pages_<?php echo esc_attr($current_view); ?> {
|
768 |
background-color: rgba(<?php echo $image_browser_images_conteiner['red']; ?>, <?php echo $image_browser_images_conteiner['green']; ?>, <?php echo $image_browser_images_conteiner['blue']; ?>, <?php echo number_format($theme_row->image_browser_full_transparent / 100, 2, ".", ""); ?>);
|
769 |
margin-top: 0;
|
770 |
}
|
771 |
+
.bwg_image_browser .pagination-links_<?php echo esc_attr($current_view); ?> {
|
772 |
white-space: nowrap;
|
773 |
}
|
774 |
@media screen and (max-width: 465px) {
|
775 |
+
.bwg_image_browser#bwg_container1_<?php echo esc_attr($current_view); ?> #bwg_container2_<?php echo esc_attr($current_view); ?> .tablenav-pages_<?php echo esc_attr($current_view); ?> a {
|
776 |
padding: 0% 5% !important;
|
777 |
font-size: 13px;
|
778 |
}
|
784 |
wp_add_inline_style('bwg_frontend', $inline_style);
|
785 |
}
|
786 |
else {
|
787 |
+
echo '<style>' . strip_tags($inline_style) . '</style>';
|
788 |
}
|
789 |
$limit = $page_number > 1 ? $items_per_page['load_more_image_count'] : $items_per_page['images_per_page'];
|
790 |
$limit = $limit ? $limit : 1;
|
810 |
$next_page = "next-page-" . $current_view;
|
811 |
$last_page = "last-page-" . $current_view;
|
812 |
?>
|
813 |
+
<span class="bwg_nav_cont_<?php echo esc_attr($current_view); ?>">
|
814 |
<?php
|
815 |
if ( $pagination == 1 ) {
|
816 |
?>
|
817 |
+
<div class="tablenav-pages_<?php echo esc_attr($current_view); ?>">
|
818 |
<?php
|
819 |
if ( $theme_row->page_nav_number ) {
|
820 |
?>
|
821 |
+
<span class="displaying-num_<?php echo esc_attr($current_view); ?>"><?php echo esc_html($count_items) . ' ' . __(' item(s)', 'photo-gallery'); ?></span>
|
822 |
<?php
|
823 |
}
|
824 |
if ( $count_items > $limit ) {
|
843 |
$last_page = "last-page disabled";
|
844 |
}
|
845 |
?>
|
846 |
+
<span class="pagination-links_<?php echo esc_attr($current_view); ?> pagination-links" data-pages-count="<?php echo esc_attr($items_county); ?>">
|
847 |
<span class="pagination-links_col1">
|
848 |
<a class="bwg-a <?php echo esc_html($first_page); ?>" title="<?php echo __('Go to the first page', 'photo-gallery'); ?>" <?php echo (($enable_dynamic_url || $enable_seo) && $page_number > 1) ? 'href="' . esc_url(add_query_arg(array( "page_number_" . $current_view => 1 ), $_SERVER['REQUEST_URI'])) . '"' : ""; ?>><?php echo esc_html($first_button); ?></a>
|
849 |
<a class="bwg-a <?php echo esc_html($prev_page); ?>" title="<?php echo __('Go to the previous page', 'photo-gallery'); ?>" <?php echo (($enable_dynamic_url || $enable_seo) && $page_number > 1) ? 'href="' . esc_url(add_query_arg(array( "page_number_" . $current_view => $page_number - 1 ), $_SERVER['REQUEST_URI'])) . '"' : ""; ?>><?php echo esc_html($previous_button); ?></a>
|
850 |
</span>
|
851 |
<span class="pagination-links_col2">
|
852 |
+
<input type="number" class="bwg_current_page" name="bwg_current_page" value="<?php echo esc_attr($page_number); ?>" data-url-info="page_number_<?php echo esc_attr($current_view); ?>" onkeypress="return bwg_change_page_<?php echo esc_attr($current_view); ?>(event, this)" min="1" oninput="validity.valid||(value='')" />
|
853 |
<?php echo __('of', 'photo-gallery'); ?>
|
854 |
+
<span class="total-pages_<?php echo esc_attr($current_view); ?>">
|
855 |
<?php echo esc_html($items_county); ?>
|
856 |
</span>
|
857 |
</span>
|
869 |
elseif ($pagination == 2) {
|
870 |
if ($count_items > ($limit * ($page_number - 1)) + $items_per_page['images_per_page']) {
|
871 |
?>
|
872 |
+
<div id="bwg_load_<?php echo esc_attr($current_view); ?>" class="tablenav-pages_<?php echo esc_attr($current_view); ?>">
|
873 |
+
<a class="bwg-a bwg_load_btn_<?php echo esc_attr($current_view); ?> bwg_load_btn" href="javascript:void(0);"><?php echo __('Load More...', 'photo-gallery'); ?></a>
|
874 |
+
<input type="hidden" id="bwg_load_more_<?php echo esc_attr($current_view); ?>" name="bwg_load_more_<?php echo esc_attr($current_view); ?>" value="on" />
|
875 |
</div>
|
876 |
<?php
|
877 |
} else {
|
878 |
?>
|
879 |
+
<script>jQuery('.bwg_nav_cont_<?php echo esc_attr($current_view); ?>').remove()</script>
|
880 |
<?php
|
881 |
}
|
882 |
}
|
886 |
<script type="text/javascript">
|
887 |
function bwg_scroll_load_action() {
|
888 |
if (jQuery(document).scrollTop() + jQuery(window).height() > (jQuery('#<?php echo $form_id; ?>').offset().top + jQuery('#<?php echo $form_id; ?>').height())) {
|
889 |
+
spider_page_<?php echo esc_attr($current_view); ?>('', <?php echo $page_number; ?>, 1, true);
|
890 |
return false;
|
891 |
}
|
892 |
}
|
897 |
<?php
|
898 |
} else {
|
899 |
?>
|
900 |
+
<script>jQuery('.bwg_nav_cont_<?php echo esc_attr($current_view); ?>').remove()</script>
|
901 |
<?php
|
902 |
}
|
903 |
}
|
905 |
$page_number = WDWLibrary::get('page_number_' . $current_view, 1, 'intval');
|
906 |
$scroll_to_top = $pagination == 1 ? 1 : 0;
|
907 |
?>
|
908 |
+
<input type="hidden" id="page_number_<?php echo esc_attr($current_view); ?>" name="page_number_<?php echo esc_attr($current_view); ?>" value="<?php echo esc_attr($page_number); ?>" />
|
909 |
<script type="text/javascript">
|
910 |
+
if( jQuery('.bwg_nav_cont_<?php echo esc_attr($current_view); ?>').length > 1 ) {
|
911 |
+
jQuery('.bwg_nav_cont_<?php echo esc_attr($current_view); ?>').first().remove()
|
912 |
}
|
913 |
+
function spider_page_<?php echo esc_attr($current_view); ?>(cur, x, y, load_more) {
|
914 |
if (typeof load_more == "undefined") {
|
915 |
var load_more = false;
|
916 |
}
|
917 |
if (jQuery(cur).hasClass('disabled')) {
|
918 |
return false;
|
919 |
}
|
920 |
+
var items_county_<?php echo esc_attr($current_view); ?> = <?php echo $items_county; ?>;
|
921 |
switch (y) {
|
922 |
case 1:
|
923 |
+
if (x >= items_county_<?php echo esc_attr($current_view); ?>) {
|
924 |
+
document.getElementById('page_number_<?php echo esc_attr($current_view); ?>').value = items_county_<?php echo esc_attr($current_view); ?>;
|
925 |
}
|
926 |
else {
|
927 |
+
document.getElementById('page_number_<?php echo esc_attr($current_view); ?>').value = x + 1;
|
928 |
}
|
929 |
break;
|
930 |
case 2:
|
931 |
+
document.getElementById('page_number_<?php echo esc_attr($current_view); ?>').value = items_county_<?php echo esc_attr($current_view); ?>;
|
932 |
break;
|
933 |
case -1:
|
934 |
if (x == 1) {
|
935 |
+
document.getElementById('page_number_<?php echo esc_attr($current_view); ?>').value = 1;
|
936 |
}
|
937 |
else {
|
938 |
+
document.getElementById('page_number_<?php echo esc_attr($current_view); ?>').value = x - 1;
|
939 |
}
|
940 |
break;
|
941 |
case -2:
|
942 |
+
document.getElementById('page_number_<?php echo esc_attr($current_view); ?>').value = 1;
|
943 |
break;
|
944 |
case 0:
|
945 |
+
document.getElementById('page_number_<?php echo esc_attr($current_view); ?>').value = x;
|
946 |
break;
|
947 |
default:
|
948 |
+
document.getElementById('page_number_<?php echo esc_attr($current_view); ?>').value = 1;
|
949 |
}
|
950 |
+
bwg_ajax('<?php echo $form_id; ?>', '<?php echo esc_attr($current_view); ?>', '<?php echo $id; ?>', '<?php echo $album_gallery_id; ?>', '', '<?php echo $type; ?>', 0, '', '', load_more, '', <?php echo $scroll_to_top; ?>);
|
951 |
}
|
952 |
|
953 |
<?php if ( BWG()->options->front_ajax != "1" ) { ?>
|
954 |
jQuery('.<?php echo $first_page; ?>').on('click', function () {
|
955 |
+
spider_page_<?php echo esc_attr($current_view); ?>(this, <?php echo $page_number; ?>, -2, 'numeric');
|
956 |
return false;
|
957 |
});
|
958 |
jQuery('.<?php echo $prev_page; ?>').on('click', function () {
|
959 |
+
spider_page_<?php echo esc_attr($current_view); ?>(this, <?php echo $page_number; ?>, -1, 'numeric');
|
960 |
return false;
|
961 |
});
|
962 |
jQuery('.<?php echo $next_page; ?>').on('click', function () {
|
963 |
+
spider_page_<?php echo esc_attr($current_view); ?>(this, <?php echo $page_number; ?>, 1, 'numeric');
|
964 |
return false;
|
965 |
});
|
966 |
jQuery('.<?php echo $last_page; ?>').on('click', function () {
|
967 |
+
spider_page_<?php echo esc_attr($current_view); ?>(this, <?php echo $page_number; ?>, 2, 'numeric');
|
968 |
return false;
|
969 |
});
|
970 |
<?php } ?>
|
971 |
|
972 |
/* Change page on input enter. */
|
973 |
+
function bwg_change_page_<?php echo esc_attr($current_view); ?>( e, that ) {
|
974 |
if ( e.key == 'Enter' ) {
|
975 |
var to_page = parseInt(jQuery(that).val());
|
976 |
var pages_count = jQuery(that).parents(".pagination-links").data("pages-count");
|
979 |
to_page = 1;
|
980 |
}
|
981 |
<?php if ( BWG()->options->front_ajax != "1" ) { ?>
|
982 |
+
spider_page_<?php echo esc_attr($current_view); ?>(this, to_page, 0, 'numeric');
|
983 |
return false;
|
984 |
<?php
|
985 |
} else { ?>
|
1000 |
return true;
|
1001 |
}
|
1002 |
|
1003 |
+
jQuery('.bwg_load_btn_<?php echo esc_attr($current_view); ?>').on('click', function () {
|
1004 |
+
spider_page_<?php echo esc_attr($current_view); ?>(this, <?php echo $page_number; ?>, 1, true);
|
1005 |
return false;
|
1006 |
});
|
1007 |
</script>
|
1021 |
return $url;
|
1022 |
}
|
1023 |
unset($query[$param]);
|
1024 |
+
$s_url = sanitize_url($_SERVER["PHP_SELF"]);
|
1025 |
if ( isset($_SERVER["REQUEST_URI"]) ) {
|
1026 |
+
$r_url = explode("?", sanitize_url($_SERVER["REQUEST_URI"]));
|
1027 |
if ( isset($r_url[0]) ) {
|
1028 |
$s_url = $r_url[0];
|
1029 |
}
|
js/bwg_gallery_box.js
CHANGED
@@ -1511,11 +1511,11 @@ function bwg_change_image_lightbox(current_key, key, data, from_effect) {
|
|
1511 |
// Slideshow filmstrip type is Fix dimension.
|
1512 |
if ( gallery_box_data['enable_image_filmstrip'] ) {
|
1513 |
bwg_slideshow_filmstrip_fix_dimension();
|
|
|
|
|
|
|
1514 |
}
|
1515 |
bwg_resize_instagram_post();
|
1516 |
-
setTimeout( function () {
|
1517 |
-
bwg_disable_lightbox_filmstrip_left_right_arrow( gallery_box_data );
|
1518 |
-
}, 100 );
|
1519 |
}
|
1520 |
if ( !is_embed ) {
|
1521 |
var cur_img = jQuery(next_image_class).find('img');
|
1511 |
// Slideshow filmstrip type is Fix dimension.
|
1512 |
if ( gallery_box_data['enable_image_filmstrip'] ) {
|
1513 |
bwg_slideshow_filmstrip_fix_dimension();
|
1514 |
+
setTimeout(function () {
|
1515 |
+
bwg_disable_lightbox_filmstrip_left_right_arrow(gallery_box_data);
|
1516 |
+
}, 100);
|
1517 |
}
|
1518 |
bwg_resize_instagram_post();
|
|
|
|
|
|
|
1519 |
}
|
1520 |
if ( !is_embed ) {
|
1521 |
var cur_img = jQuery(next_image_class).find('img');
|
js/scripts.min.js
CHANGED
@@ -1 +1 @@
|
|
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(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");void 0!==e&&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,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())&&parseInt(jQuery(".spider_popup_close").css("right"))<0&&jQuery(".spider_popup_close").attr("class","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")||("ArrowRight"==e.key?parseInt(jQuery("#bwg_current_image_key").val())==gallery_box_data.data.length-1?bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),0):bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),parseInt(jQuery("#bwg_current_image_key").val())+1):"ArrowLeft"==e.key?0==parseInt(jQuery("#bwg_current_image_key").val())?bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),gallery_box_data.data.length-1):bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),parseInt(jQuery("#bwg_current_image_key").val())-1):"Escape"==e.key?spider_destroypopup(1e3):"Space"==e.key&&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,.bwg_ecommerce_panel, .bwg_image_info").mCustomScrollbar({scrollInertia:150,theme:"dark-thick",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}),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",function(){bwg_disable_lightbox_filmstrip_right_arrow(gallery_box_data)}):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",function(){bwg_disable_lightbox_filmstrip_right_arrow(gallery_box_data)})):jQuery(".bwg_filmstrip_thumbnails").position().left>=-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height())&&(jQuery(".bwg_filmstrip_left").css({opacity:1}),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",function(){bwg_disable_lightbox_filmstrip_right_arrow(gallery_box_data)}):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",function(){bwg_disable_lightbox_filmstrip_right_arrow(gallery_box_data)})):"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}),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",function(){bwg_disable_lightbox_filmstrip_right_arrow(gallery_box_data)}):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",function(){bwg_disable_lightbox_filmstrip_right_arrow(gallery_box_data)})):jQuery(".bwg_filmstrip_thumbnails").position().top>=-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height())&&(jQuery(".bwg_filmstrip_left").css({opacity:1}),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",function(){bwg_disable_lightbox_filmstrip_right_arrow(gallery_box_data)}):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",function(){bwg_disable_lightbox_filmstrip_right_arrow(gallery_box_data)}))}),"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}),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",function(){bwg_disable_lightbox_filmstrip_left_arrow(gallery_box_data)}):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",function(){bwg_disable_lightbox_filmstrip_left_arrow(gallery_box_data)}))}):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}),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",function(){bwg_disable_lightbox_filmstrip_left_arrow(gallery_box_data)}):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",function(){bwg_disable_lightbox_filmstrip_left_arrow(gallery_box_data)}))}),"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);jQuery(".bwg_ctrl_btn_container").length&&jQuery(".bwg_ctrl_btn_container").height();jQuery(".bwg_image_info").css("height","auto"),bwg_info_height_set()}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_zoom").on(a,function(){var e=["mousemove","touchmove"];jQuery("figure.bwg_popup_image").each(function(){var i=jQuery(this);i.hasClass("zoom")?jQuery.each(e,function(e,t){i.removeClass("zoom"),i.off(t)}):jQuery.each(e,function(e,t){i.addClass("zoom"),i.on(t,function(e){var t,i,a,r;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");var _=e.target,s=_.getBoundingClientRect();e.targetTouches&&(a=e.targetTouches[0].clientX-s.left,r=e.targetTouches[0].clientY-s.top),t=e.offsetX?e.offsetX:e.targetTouches?a:_.offsetHeight,i=e.offsetY?e.offsetY:e.targetTouches?r:_.offsetWidth,x=t/_.offsetWidth*100,y=i/_.offsetHeight*100,_.parentNode.style.backgroundPosition=x+"% "+y+"%"})})})}),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";jQuery(".bwg_toggle_container i").hasClass(e)?(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).addClass("closed"),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).addClass("closed"),jQuery(".bwg_toggle_container").animate({top:0},{duration:500,complete:function(){jQuery(".bwg_toggle_container i").attr("class","bwg_toggle_btn "+t)}}))):(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).removeClass("closed"),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).removeClass("closed"),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)}}))),bwg_info_position(!0)});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&&(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_image_info").css("height","auto"),bwg_info_height_set(),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)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())}),bwg_set_filmstrip_pos(r-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",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)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())}),bwg_set_filmstrip_pos(_-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",gallery_box_data),"horizontal"!=gallery_box_data.filmstrip_direction&&jQuery(".bwg_filmstrip_right").css({top:_-jQuery(".bwg_filmstrip_right").height()})),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"),bwg_info_height_set(),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?t:0)},500),jQuery(".bwg_filmstrip").css({width:i-("horizontal"==gallery_box_data.filmstrip_direction?t:0)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())},500),bwg_set_filmstrip_pos(i-("horizontal"==gallery_box_data.filmstrip_direction?t:0)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",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:a-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())}),bwg_set_filmstrip_pos(a-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",gallery_box_data),"horizontal"!=gallery_box_data.filmstrip_direction&&jQuery(".bwg_filmstrip_right").css({top:a-jQuery(".bwg_filmstrip_right").height()})),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","spider_popup_close_fullscreen")}return!1}),jQuery(".bwg_play_pause").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,a,r,_,s,o,l){e=e.replace(/&/g,"&"),isPopUpOpened||(isPopUpOpened=!0,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:'+a+"px; height:"+r+"px; margin-top:-"+r/2+"px; margin-left: -"+a/2+'px; ">'+e+"</div>").hide().appendTo("body");if(gallery_box_ready(),spider_showpopup(s,o,t,_,l),"undefined"!=typeof addthis){jQuery(".addthis-smartlayers").show();var i=setInterval(function(){void 0!==addthis.layers.refresh&&(clearInterval(i),addthis.layers.refresh())},100)}},beforeSend:function(){},complete:function(){}})))}function spider_showpopup(e,t,i,a,r){var _=gallery_box_data.data,s=parseInt(jQuery("#bwg_current_image_key").val());if(void 0!==_[s]&&(isPopUpOpened=!0,-1<_[s].filetype.indexOf("EMBED_")?bwg_first_image_load(i,r):jQuery("#spider_popup_wrap .bwg_popup_image_spun img").prop("complete")?bwg_first_image_load(i,r):jQuery("#spider_popup_wrap .bwg_popup_image_spun img").on("load error",function(){bwg_first_image_load(i,r)}),"EMBED_OEMBED_INSTAGRAM_POST"==_[s].filetype&&"undefined"!=typeof instgrm&&void 0!==instgrm.Embeds)){instgrm.Embeds.process();var o=parseInt(jQuery("#bwg_image_container").height());jQuery(".bwg_embed_frame .instagram-media").css({"max-height":o+"px"})}}function bwg_first_image_load(e,t){e.show(),""==gallery_box_data.data[key].alt&&""==gallery_box_data.data[key].description?jQuery(".bwg_info").hide():jQuery(".bwg_info").show();var i=jQuery(".bwg_ctrl_btn_container").height();"bottom"==t?jQuery(".bwg_toggle_container").css("bottom",i+"px"):"top"==t&&jQuery(".bwg_toggle_container").css("top",i+"px"),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(),bwg_info_height_set()}function spider_isunsupporteduseragent(){return!window.XMLHttpRequest}function spider_destroypopup(e){jQuery(".addthis-smartlayers").hide(),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&&history.pushState(history.state,null,window.location.origin+window.location.pathname+window.location.search),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")),jQuery("#ecommerce_opacity_div").css("display","block"),jQuery("#ecommerce_loading_div").css("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(){jQuery("#ecommerce_opacity_div").css("display","none"),jQuery("#ecommerce_loading_div").css("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){jQuery(".bwg_comments").mCustomScrollbar("destroy");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,theme:"dark-thick",advanced:{updateOnContentResize:!0}}),jQuery(".bwg_comments_close_btn").click(bwg_comment),bwg_captcha_refresh("bwg_captcha")}}),!1}function spider_rate_ajax_save(i,e){var t={};return t.image_id=jQuery("#"+i+" input[name='image_id']").val(),t.rate=void 0!==e?e:jQuery("#"+i+" input[name='score']").val(),t.ajax_task=jQuery("#rate_ajax_task").val(),jQuery.ajax({type:"POST",url:jQuery("#"+i).attr("action"),data:t,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.popup_enable_captcha=t.find("#bwg_popup_enable_captcha").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 s=t.find(".cur_gal_id").val(),o=jQuery("#bwg_tag_id_"+s).val();o=o||0;var l=1==i?"&open_ecommerce=1":"",n=jQuery("#bwg_search_input_"+_).val(),g=jQuery("#bwg_order_"+_).val()?"&filtersortby="+jQuery("#bwg_order_"+_).val():"";n=n||"",void 0!==a&&(r+="&gallery_id="+a);var b="",w=jQuery("#bwg_blog_style_share_buttons_"+e).attr("data-open-comment");void 0!==w&&!1!==w&&(b="&open_comment=1"),spider_createpopup(r+"&bwg_random_seed="+jQuery("#bwg_random_seed_"+_).val()+"&image_id="+e+"&filter_tag="+o+l+b+"&filter_search_name="+n+g,_,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(jQuery("#bwg_rate_form input[name='image_id']").val(r[a].id),bwg_current_key=gallery_box_data.bwg_current_key,""==gallery_box_data.data[a].alt&&""==gallery_box_data.data[a].description?jQuery(".bwg_info").hide():jQuery(".bwg_info").show(),jQuery(".bwg_image_info").css("height","auto"),setTimeout(function(){bwg_info_height_set(),jQuery(".bwg_image_description").height()>jQuery(".bwg_image_info").height()&&jQuery(".mCSB_container").hasClass("mCS_no_scrollbar")&&jQuery(".bwg_image_info").mCustomScrollbar("destroy"),jQuery(".bwg_image_info").hasClass("mCustomScrollbar")||void 0!==jQuery().mCustomScrollbar&&jQuery.isFunction(jQuery().mCustomScrollbar)&&jQuery(".bwg_image_info").mCustomScrollbar({scrollInertia:150,theme:"dark-thick",advanced:{updateOnContentResize:!0}})},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)),jQuery("#bwg_rate_form input[name='image_id']").val(r[a].id),spider_set_input_value("rate_ajax_task","save_hit_count"),spider_rate_ajax_save("bwg_rate_form"),gallery_box_data.popup_enable_rate&&(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)),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 />").html(r[a].alt).text()),jQuery(".bwg_image_description").html(jQuery("<span />").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 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<r[a].filetype.indexOf("EMBED_"),n=-1<r[a].filetype.indexOf("INSTAGRAM_POST"),g=-1<r[a].filetype.indexOf("INSTAGRAM_VIDEO"),b=-1!==jQuery.inArray(r[a].filetype,["EMBED_OEMBED_YOUTUBE_VIDEO","EMBED_OEMBED_VIMEO_VIDEO","EMBED_OEMBED_FACEBOOK_VIDEO","EMBED_OEMBED_DAILYMOTION_VIDEO"]),w=jQuery(s).height(),d=jQuery(s).width(),u='<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("bwg-hidden"),u+='<span class="bwg_popup_embed bwg_popup_watermark" style="display: '+(b?"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=jQuery(".instagram-media"),m=jQuery(".bwg_embed_frame"),c=jQuery(".bwg_image_container").width()-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),p=jQuery(".bwg_image_container").height()-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0),y=r[a].image_width,f=r[a].image_height,j=bwg_resizing_ratio(y,f,c,p);m.attr("data-width",c),m.attr("data-height",p);var Q=j.width,v=j.height;Q<v?Q-=109:Q+=109,u+=spider_display_embed(r[a].filetype,r[a].image_url,r[a].filename,{class:"bwg_embed_frame","data-width":c,"data-height":p,"data-instagram-width":y,"data-instagram-height":f,style:"width:"+Q+"px; height:"+v+"px; vertical-align:middle; display:inline-block; position:relative;"}),h.css({"max-height":v+"px","min-width":Q+"px !important"})}else u+=spider_display_embed(r[a].filetype,r[a].image_url,r[a].filename,{class:"bwg_embed_frame",frameborder:"0",allowfullscreen:"allowfullscreen",style:"display:"+(b?"block":"table-cell")+"; width:inherit; height:inherit; vertical-align:middle;"});u+="</span>"}else{jQuery(".bwg-loading").removeClass("bwg-hidden"),jQuery("#bwg_download").removeClass("bwg-hidden");var x="'"+(gallery_box_data.site_url+jQuery("<span />").html(decodeURIComponent(r[a].image_url)).text()).split("?bwg")[0]+"'";gallery_box_data.popup_enable_zoom&&(u+='<figure style="max-height: '+w+"px; max-width: "+d+"px; background-image: url("+x+'); background-repeat: no-repeat" class="bwg_popup_image bwg_popup_watermark" alt="'+r[a].alt+'" />'),u+='<img style="max-height: '+w+"px; max-width: "+d+'px;" class="bwg_popup_image bwg_popup_watermark" src="'+gallery_box_data.site_url+jQuery("<span />").html(decodeURIComponent(r[a].image_url)).text()+'" alt="'+r[a].alt+'" />'}function z(){gallery_box_data.preload_images&&bwg_preload_images(a),window["bwg_"+gallery_box_data.bwg_image_effect](s,o,_),jQuery(s).find(".bwg_fb_video").each(function(){jQuery(this).attr("src","")}),l?jQuery("#bwg_fullsize_image").attr("href",decodeURIComponent(r[a].image_url)):(jQuery("#bwg_fullsize_image").attr("href",gallery_box_data.site_url+decodeURIComponent(r[a].image_url)),jQuery("#bwg_download").attr("href",gallery_box_data.site_url+decodeURIComponent(r[a].thumb_url).replace("/thumb/","/.original/")));var e=decodeURIComponent(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].pure_image_url));i=i.replace(/%252F|%25252F/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/intent/tweet?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")&&(jQuery(".bwg_comments .mCSB_container").css("top","0"),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_slideshow_filmstrip_fix_dimension(),bwg_resize_instagram_post(),setTimeout(function(){bwg_disable_lightbox_filmstrip_left_right_arrow(gallery_box_data)},100)}if(gallery_box_data.popup_enable_zoom?u+="</figure></span></span>":u+="</span></span>",jQuery(o).html(u),jQuery(o).find("img").on("load error",function(){jQuery(".bwg-loading").addClass("bwg-hidden")}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxWidth:d,maxHeight:w,height:"auto"}),l)z();else jQuery(o).find("img").one("load",function(){z()}).each(function(){this.complete&&jQuery(this).load()});"undefined"!=typeof instgrm&&void 0!==instgrm.Embeds&&(jQuery(".instagram-media").hide(),instgrm.Embeds.process(),jQuery(".instagram-media").show())}}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 s=1;do{var o=(e+_*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(decodeURIComponent(t[o].image_url)).text());s*=-1,r++}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.current_image_key&&0!=gallery_box_data.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,theme:"dark-thick",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()-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())},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()-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())},100)),bwg_set_filmstrip_pos(jQuery(".spider_popup_wrap").width()-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",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()-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())},100),bwg_set_filmstrip_pos(jQuery(".bwg_filmstrip_container").width()-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",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)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())}),bwg_set_filmstrip_pos(jQuery(window).width()-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",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)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())}),bwg_set_filmstrip_pos(window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",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","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)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())},500),bwg_set_filmstrip_pos(bwg_popup_current_width-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",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)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())},500),bwg_set_filmstrip_pos(bwg_popup_current_height-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",gallery_box_data),"horizontal"!=gallery_box_data.filmstrip_direction&&jQuery(".bwg_filmstrip_right").css({top:bwg_popup_current_height-jQuery(".bwg_filmstrip_right").height()})),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),setTimeout(function(){bwg_info_height_set()},500)):(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)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())},500),bwg_set_filmstrip_pos(jQuery(window).width()-("horizontal"==gallery_box_data.filmstrip_direction?e:0)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",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)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())},500),bwg_set_filmstrip_pos(window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?e:0)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",gallery_box_data),"horizontal"!=gallery_box_data.filmstrip_direction&&jQuery(".bwg_filmstrip_right").css({top:window.innerHeight-jQuery(".bwg_filmstrip_right").height()})),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","spider_popup_close_fullscreen")),setTimeout(function(){bwg_info_height_set()},500)}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"),bwg_info_height_set(),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-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())})),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"),bwg_info_height_set(),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-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())})),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"),bwg_info_height_set(),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-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())})),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-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())})),bwg_popup_current_width=jQuery(window).width()),bwg_resize_instagram_post(),bwg_change_watermark_container(),1!=gallery_box_data.open_with_fullscreen&&(gallery_box_data.lightbox_close_btn_right<0&&jQuery("#spider_popup_wrap").width()-2*gallery_box_data.lightbox_close_btn_right>=jQuery(window).width()||gallery_box_data.lightbox_close_btn_top<0&&jQuery("#spider_popup_wrap").height()-2*gallery_box_data.lightbox_close_btn_top>=jQuery(window).height()?jQuery(".spider_popup_close").attr("class","spider_popup_close_fullscreen"):jQuery(".spider_popup_close_fullscreen").attr("class","spider_popup_close"));var t=jQuery(".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.";if(0!=i&&""!=i&&(r=parseFloat(i).toFixed(1)+"\n Votes: "+t),void 0!==jQuery().raty&&jQuery.isFunction(jQuery().raty)){var _=parseFloat(jQuery("#bwg_star").attr("data-score"));jQuery("#bwg_star").removeAttr("data-score").html("");var s={starType:"i",number:lightbox_rate_stars_count,size:lightbox_rate_size,noRatedMsg:"Not rated yet.",readOnly:!1,score:_,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};e||(s.click=function(e,t){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",e)).then(function(){gallery_box_data.data[a].rate=e,++gallery_box_data.data[a].rate_count,gallery_box_data.data[a].avg_rating=_?((_+e)/2).toFixed(1):e.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)})}),jQuery("#bwg_star").raty(s),jQuery(".bwg_image_rate_disabled").hide(),e&&jQuery(".bwg_image_rate_disabled").show()}}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"),r=jQuery(e).val();r=r.split("*");var _=parseFloat(r[1]),s=r[0],o=Number(jQuery(e).closest(".image_selected_parameter").find(".already_selected_values").val());if("4"==a||"5"==a){var l=parseFloat(s+_);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+_);else n=o+parseFloat(s+_);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(),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:_,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 r=jQuery("#bwg_filmstrip_thumbnail_"+a+" img");r.removeClass("bwg-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("bwg-hidden"),t.attr("src",t.data("url"));if(0<=leftIndex)(t=jQuery("#bwg_filmstrip_thumbnail_"+leftIndex+" img")).removeClass("bwg-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,r=t,_=Math.max(i/e.width(),t/e.height()),s=e.width()*_,o=e.height()*_;e.css({width:s,height:o,marginLeft:(a-s)/2,marginTop:(r-o)/2})}function bwg_info_height_set(){bwg_info_position(!1),jQuery(".mCustomScrollBox").length&&jQuery(".bwg_image_info_container1").height()<jQuery(".mCustomScrollBox").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)})}function bwg_info_position(e){var t=0,i="none";"top"==gallery_box_data.lightbox_ctrl_btn_pos?"top"==gallery_box_data.lightbox_info_pos&&(i="top"):"bottom"==gallery_box_data.lightbox_info_pos&&(i="bottom"),jQuery(".bwg_ctrl_btn_container").hasClass("closed")||("top"==gallery_box_data.lightbox_ctrl_btn_pos?"top"==gallery_box_data.lightbox_info_pos&&(t=jQuery(".bwg_ctrl_btn_container").height()):"bottom"==gallery_box_data.lightbox_info_pos&&(t=jQuery(".bwg_ctrl_btn_container").height())),"top"==i?0==e?jQuery(".bwg_image_info").css("top",t):jQuery(".bwg_image_info").animate({top:t+"px"},500):"bottom"==i&&(0==e?jQuery(".bwg_image_info").css("bottom",t):jQuery(".bwg_image_info").animate({bottom:t+"px"},500))}function bwg_disable_lightbox_filmstrip_left_arrow(e){"left"==e.left_or_top?0==parseInt(jQuery(".bwg_filmstrip_thumbnails").position().left)&&jQuery(".bwg_filmstrip_left").css({opacity:.3}):0==jQuery(".bwg_filmstrip_thumbnails").position().top&&jQuery(".bwg_filmstrip_left").css({opacity:.3})}function bwg_disable_lightbox_filmstrip_right_arrow(e){"left"==e.left_or_top?"width"==e.width_or_height?parseInt(jQuery(".bwg_filmstrip_thumbnails").position().left)<=jQuery(".bwg_filmstrip").width()-jQuery(".bwg_filmstrip_thumbnails").width()+e.filmstrip_thumb_right_left_space+e.all_images_right_left_space&&jQuery(".bwg_filmstrip_right").css({opacity:.3}):jQuery(".bwg_filmstrip_thumbnails").position().left==-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height())&&jQuery(".bwg_filmstrip_right").css({opacity:.3}):"width"==e.width_or_height?jQuery(".bwg_filmstrip_thumbnails").position().left==-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width())&&jQuery(".bwg_filmstrip_right").css({opacity:.3}):parseInt(jQuery(".bwg_filmstrip_thumbnails").position().top)<=jQuery(".bwg_filmstrip").height()-jQuery(".bwg_filmstrip_thumbnails").height()+gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.all_images_right_left_space&&jQuery(".bwg_filmstrip_right").css({opacity:.3})}function bwg_disable_lightbox_filmstrip_left_right_arrow(e){var t=jQuery(".bwg_filmstrip_thumbnails").position().left,i=jQuery(".bwg_filmstrip").width()>jQuery(".bwg_filmstrip_thumbnails").width();"top"==e.left_or_top&&(t=jQuery(".bwg_filmstrip_thumbnails").position().top,i=jQuery(".bwg_filmstrip").height()>jQuery(".bwg_filmstrip_thumbnails").height()),jQuery(".bwg_filmstrip_container .bwg_filmstrip_left").css({opacity:"1"}),jQuery(".bwg_filmstrip_container .bwg_filmstrip_right").css({opacity:"1"}),jQuery(".bwg_filmstrip_thumbnails .bwg_filmstrip_thumbnail:first-child").index()!=jQuery(".bwg_filmstrip_thumbnails .bwg_filmstrip_thumbnail.bwg_thumb_active").index()&&0!=t||jQuery(".bwg_filmstrip_container .bwg_filmstrip_left").css({opacity:"0.3"}),jQuery(".bwg_filmstrip_thumbnails .bwg_filmstrip_thumbnail:last-child").index()==jQuery(".bwg_filmstrip_thumbnails .bwg_filmstrip_thumbnail.bwg_thumb_active").index()&&jQuery(".bwg_filmstrip_container .bwg_filmstrip_right").css({opacity:"0.3"}),jQuery(".bwg_filmstrip").width()>jQuery(".bwg_filmstrip_thumbnails").width()&&jQuery(".bwg_filmstrip_container .bwg_filmstrip_left, .bwg_filmstrip_container .bwg_filmstrip_right").css({opacity:"0.3"}),i&&jQuery(".bwg_filmstrip_container .bwg_filmstrip_left, .bwg_filmstrip_container .bwg_filmstrip_right").css({opacity:"0.3"})}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 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]+'"');r+=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;">'),r+=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+=" >",""!=t&&(l+='<video style="width:auto !important; height:auto !important; max-width:100% !important; max-height:100% !important; margin:0 !important;" controls><source src="'+decodeURIComponent(t)+'" type="video/mp4"> Your browser does not support the video tag. </video>'),r+=l+="</div>";break;case"EMBED_OEMBED_INSTAGRAM_IMAGE":var n=a["data-max-width"],g=a["data-max-height"];l="<div ";for(attr in a)/src/i.test(attr)||""!=attr&&""!=a[attr]&&(l+=" "+attr+'="'+a[attr]+'"');l+=" >",""!=t&&(l+='<img src="'+decodeURIComponent(t)+'" style="max-width:'+n+"px; max-height:"+g+'px; 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+=">",""!=t&&(l+='<div class="inner_instagram_iframe_'+obj_class+'" style="max-width: 100% !important; max-height: 100% !important; width: 100%; height: 100%; margin:0; vertical-align:middle;">'+atob(t)+"</div>"),r+=l+="</div>";break;case"EMBED_OEMBED_FACEBOOK_IMAGE":var b="<span ";for(attr in a)/src/i.test(attr)||""!=attr&&""!=a[attr]&&(b+=" "+attr+'="'+a[attr]+'"');b+=" >",""!=i&&(b+='<img src="'+t+'" style=" max-width:100% !important; max-height:100% !important; width:auto; height:100%;">'),r+=b+="</span>";break;case"EMBED_OEMBED_FACEBOOK_VIDEO":var w="<div ";for(attr in a)/src/i.test(attr)||""!=attr&&""!=a[attr]&&(w+=" "+attr+'="'+a[attr]+'"');w+=" >",""!=i&&(w+='<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+=w+="</div>";break;case"EMBED_OEMBED_DAILYMOTION_VIDEO":var d="<iframe ";for(attr in""!=i&&(d+=' src="//www.dailymotion.com/embed/video/'+i+'?api=postMessage"'),a)/src/i.test(attr)||""!=attr&&""!=a[attr]&&(d+=" "+attr+'="'+a[attr]+'"');r+=d+=" ></iframe>";break;case"EMBED_OEMBED_IMGUR":var u="<div ";for(attr in a)/src/i.test(attr)||""!=attr&&""!=a[attr]&&(l+=" "+attr+'="'+a[attr]+'"');u+=" >",""!=i&&(u+='<img src="'+i+'" style="max-width:100% !important; max-height:100% !important; width:auto; height:auto !important;">'),r+=u+="</div>";break;case"EMBED_OEMBED_GOOGLE_PHOTO_IMAGE":var h="<div ";for(attr in a)/src/i.test(attr)||""!=attr&&""!=a[attr]&&(h+=" "+attr+'="'+a[attr]+'"');h+=" >",""!=i&&(h+='<img src="'+t+'" style=" max-width:100% !important; max-height:100% !important; width:auto; height:auto;">'),r+=h+="</div>";break;default:var m={content:""};jQuery(document).trigger("bwg_display_embed",[m,e,t,i,a]),r=m.content}return r}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 r=jQuery("input[name=update_flag]:checked").val();a=encodeURI(jQuery("#autogallery_image_number").val())}jQuery("#bulk_embed").hide(),jQuery("#loading_div").show();var o=[],_={action:"addInstagramGallery",instagram_user:i,instagram_access_token:e,whole_post:t,autogallery_image_number:a,update_flag:r,async:!0};jQuery.post(bwg_ajax_url_nonce,_,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=JSON.parse(e),response_JSON){if("error"==response_JSON[0])return alert("Error: "+JSON.parse(e)[1]),jQuery("#loading_div").hide(),s&&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];o.push(_)}return bwg_add_image(o,"instagram"),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_slideshow_filmstrip_thumbnail_timer=!1;window.bwg_slideshow_filmstrip_thumb={};var bwg_params=[],bwg_params_ib=[],bwg_params_carousel=[];function bwg_remove_lazy_loader_icon(){1==bwg_objectsL10n.lazy_load&&jQuery("img.bwg_lazyload").Lazy({afterLoad:function(){jQuery(".lazy_loader").removeClass("lazy_loader")},onFinishedAll:function(){jQuery(".lazy_loader").removeClass("lazy_loader")}})}function bwg_main_ready(e){var t=e.data("bwg");1===e.data("scroll")&&(form_id="gal_front_form_"+t,jQuery("html, body").animate({scrollTop:jQuery("#"+form_id).offset().top-150},500)),bwg_remove_lazy_loader_icon(),0<e.find(".wd_error").length&&bwg_container_loaded(t);var i=e.find(".bwg-container");if("album"===e.data("is-album")&&i.hasClass("bwg-thumbnails"))var a="thumbnails";else a=e.data("gallery-type");switch(bwg_document_ready(e),a){case"thumbnails":case"thumbnails_masonry":case"album_compact_preview":case"album_masonry_preview":case"album_extended_preview":bwg_all_thumnails_loaded(i);break;case"thumbnails_mosaic":bwg_thumbnail_mosaic(i);break;case"slideshow":bwg_slideshow_ready(t);break;case"carousel":bwg_carousel_ready(t),bwg_carousel_onload(e);break;case"image_browser":bwg_image_browser_ready(e);break;case"blog_style":bwg_blog_style_ready(e)}}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_tags_button_section_visibility(){jQuery('div[id^="bwg_container1_"]').each(function(){var e=jQuery(this),t=e.find(".current_view").val(),i=e.find(".show_bottom_tag").val(),a=e.find(".bwg_tags_container_"+t+" .bwg_tag_button_view_container");if(a.length)var r=a[0].scrollHeight;var _=a.find(".bwg_tags_filter_buttons").outerHeight(!0),s=parseInt(2*a.find(".bwg_tags_filter_buttons").outerHeight(!0)+3);s<r?(0===jQuery(this).find(".see_all_tags.bwg_hide").length&&a.css({"min-height":_,"max-height":s,overflow:"hidden"}),a.next(".bwg_tag_button_see_all").show()):(a.css({"min-height":"auto","max-height":"100%",height:"auto",overflow:"visible"}),a.next(".bwg_tag_button_see_all").hide());var o=a.next().find(".see_all_tags").width()/2;a.next().find(".see_all_tags").attr("style","margin-left: -"+o+"px"),a.next().find(".see_all_tags").off("click").on("click",function(){jQuery(this).hasClass("bwg_show")?(jQuery(this).removeClass("bwg_show").addClass("bwg_hide").html("<span>−</span>"+bwg_objectsL10n.bwg_tag_see_less),a.css({"min-height":"auto","max-height":"100%",height:"auto",overflow:"visible"})):jQuery(this).hasClass("bwg_hide")&&(jQuery(this).removeClass("bwg_hide").addClass("bwg_show").html("<span>+</span>"+bwg_objectsL10n.bwg_tag_see_all),a.css({"min-height":_,"max-height":s,overflow:"hidden"}))}),1==i&&(jQuery(this).find(".see_all_tags").removeClass("bwg_show").addClass("bwg_hide").html("<span>−</span>"+bwg_objectsL10n.bwg_tag_see_less),a.css({"min-height":"auto","max-height":"100%",height:"auto",overflow:"visible"}))})}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(t){var e=t.data("bwg");bwg_container_loaded(e);var i=!1;t.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"),!i)return i=!0,setTimeout(function(){i=!1},100),bwg_gallery_box(e,t.closest(".bwg_container")),!1}),jQuery(".bwg_lightbox_"+e+" .bwg_ecommerce").on("click",function(e){if(e.stopPropagation(),!i)return i=!0,setTimeout(function(){i=!1},100),bwg_gallery_box(t.attr("data-image-id"),t.closest(".bwg_container"),!0),!1});var a=window.location.hash.substring(1);a&&"-1"!=a.indexOf("bwg")&&(bwg_hash_array=a.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).data("bwg"),jQuery(".bwg_slideshow[data-bwg="+bwg+"]")[0].offsetHeight&&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_carousel_focus(){jQuery(".bwg_carousel").each(function(){bwg=jQuery(this).data("bwg"),jQuery(".bwg_carousel[data-bwg="+bwg+"]")[0].offsetHeight&&jQuery(".bwg_carousel_image_container_"+bwg).length&&jQuery(".bwg_ctrl_btn_"+bwg).hasClass("bwg-icon-pause")&&bwg_params_carousel[bwg].carousel.start()})}function bwg_slideshow_blur(e){jQuery(".bwg_slideshow").each(function(){bwg=jQuery(this).data("bwg"),!e&&jQuery(".bwg_slideshow[data-bwg="+bwg+"]")[0].offsetHeight||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_blur(e){jQuery(".bwg_carousel").each(function(){bwg=jQuery(this).data("bwg"),!e&&jQuery(".bwg_carousel[data-bwg="+bwg+"]")[0].offsetHeight||jQuery(".bwg_carousel_image_container_"+bwg).length&&void 0!==bwg_params_carousel[bwg]&&bwg_params_carousel[bwg].carousel.pause()})}function bwg_carousel_ready(t){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(e){bwg_params_carousel[t].carousel.prev(),e.stopPropagation(),e.stopImmediatePropagation()}),jQuery("#spider_carousel_right-ico_"+t).on("click",function(e){bwg_params_carousel[t].carousel.next(),e.stopPropagation(),e.stopImmediatePropagation()}),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");jQuery("#bwg_carousel-container"+e).length&&(bwg_carousel_params(e,!0),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(e){var t=e.data("bwg"),i=e.find(".bwg_carousel-container"+t);i.length&&(bwg_params_carousel[t]=i.data("params"),bwg_params_carousel[t].parent_width=0,bwg_carousel_watermark(t),bwg_carousel_params(t,!1),bwg_container_loaded(t))}function bwg_carousel_params(t,e){var i=jQuery("#bwg_container1_"+t).parent();i.hasClass("elementor-tab-content")&&i.width(i.closest(".elementor-widget-wrap").width());var a=i.width(),r=1;a<bwg_params_carousel[t].carousel_r_width?r=a/bwg_params_carousel[t].carousel_r_width:a=bwg_params_carousel[t].carousel_r_width,bwg_params_carousel[t].parent_width!=a&&(bwg_params_carousel[t].parent_width=a,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*r),e.width((e.height()-96)*e.attr("data-width")/e.attr("data-height")+16)):(e.width(bwg_params_carousel[t].image_width*r),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*r,height:bwg_params_carousel[t].image_height*r}),jQuery(".bwg_carousel_watermark_text_"+t+", .bwg_carousel_watermark_text_"+t+":hover").css({fontSize:a*(bwg_params_carousel[t].watermark_font_size/bwg_params_carousel[t].image_width)*r}),jQuery(".bwg_carousel-image "+t).css({width:bwg_params_carousel[t].image_width*r,height:bwg_params_carousel[t].image_height*r}),jQuery(".bwg_carousel_watermark_container_"+t).css({width:bwg_params_carousel[t].image_width*r,height:bwg_params_carousel[t].image_height*r}),jQuery(".bwg_carousel_embed_video_"+t).css({width:bwg_params_carousel[t].image_width*r,height:bwg_params_carousel[t].image_height*r}),jQuery(".bwg_carousel_watermark_spun_"+t).css({width:bwg_params_carousel[t].image_width*r,height:bwg_params_carousel[t].image_height*r}),jQuery(".bwg_carousel-container"+t).css({width:a,height:bwg_params_carousel[t].image_height*r}),jQuery(".bwg_video_hide"+t).css({width:bwg_params_carousel[t].image_width*r,height:bwg_params_carousel[t].image_height*r}),bwg_params_carousel[t].carousel&&!e||(e&&bwg_params_carousel[t].carousel&&bwg_params_carousel[t].carousel.pause(),bwg_params_carousel[t].carousel=jQuery("#bwg_carousel"+t).featureCarousel({containerWidth:a*r,containerHeight:bwg_params_carousel[t].image_height*r,fit_containerWidth:bwg_params_carousel[t].carousel_fit_containerWidth,largeFeatureWidth:bwg_params_carousel[t].image_width*r,largeFeatureHeight:bwg_params_carousel[t].image_height*r,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_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(i){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=[];var e=".bwg_slideshow_filmstrip_"+i,t="bwg_slideshow_filmstrip_thumbnail_"+i;bwg_slideshow_filmstrip_thumb[t]={},bwg_slideshow_filmstrip_thumb[t].next_prev_index=0;var a=!1;2==bwg_params[i].slideshow_filmstrip_type&&(a=!0,e=".bwg_slideshow_filmstrip_fix_count_"+i),bwg_container_loaded(i);var r=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))%r.length:r.length-1,r,"",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)%r.length,r,"",i),!1});var _=/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),1==bwg_params[i].slideshow_filmstrip_type&&("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 s=/Firefox/i.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel";jQuery(e).bind(s,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});var o={bwg:i,params:bwg_params[i],slideshow_filmstrip_class_name:e};if(jQuery(".bwg_slideshow_filmstrip_right_"+i).on(_,function(){1==a?!1===bwg_slideshow_filmstrip_thumbnail_timer&&(bwg_slideshow_filmstrip_thumbnail_timer=!0,bwg_slideshow_filmstrip_next(o),setTimeout(function(){bwg_slideshow_filmstrip_thumbnail_timer=!1},505)):bwg_slideshow_filmstrip_next(o)}),jQuery(".bwg_slideshow_filmstrip_left_"+i).on(_,function(){1==a?!1===bwg_slideshow_filmstrip_thumbnail_timer&&(bwg_slideshow_filmstrip_thumbnail_timer=!0,bwg_slideshow_filmstrip_prev(o),setTimeout(function(){bwg_slideshow_filmstrip_thumbnail_timer=!1},505)):bwg_slideshow_filmstrip_prev(o)}),"width"==bwg_params[i].width_or_height?bwg_set_filmstrip_pos(jQuery(e).width(),i):bwg_set_filmstrip_pos(jQuery(e).height(),i),jQuery("#bwg_slideshow_play_pause_"+i).off(_).on(_,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"),jQuery("#instagram-embed-"+i).hide(),"undefined"!=typeof instgrm&&void 0!==instgrm.Embeds){var l=jQuery(".bwg_embed_frame_"+i),n=l.data("height");l.css({display:"none"}),instgrm.Embeds.process(),jQuery(".bwg_embed_frame_"+i+" #instagram-embed-"+i).css({"max-height":n+"px"}),l.css({display:"inline-block"})}}}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(e){var t=e.data("bwg");bwg_container_loaded(t),jQuery(".image_browser_images_conteiner_"+t).length&&(bwg_params_ib[t]=JSON.parse(jQuery(".image_browser_images_conteiner_"+t).attr("data-params")),setTimeout(function(){bwg_image_browser(t)},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("bwg-hidden"),jQuery(e).parent().find(".bwg_search_loupe_container1").removeClass("bwg-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)})}),jQuery(".bwg_container").each(function(){var e=jQuery(this).data("bwg");0<jQuery(this).find(".wd_error").length&&bwg_container_loaded(e)}),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_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 s=100/_,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"),r=e.data("height");""!=a&&""!=r||(a=e.width(),r=e.height());var _=a/r;i.width()/i.height()>a/r?(i.width()>a?e.css({width:"100%",height:i.width()/_}):e.css({maxWidth:"100%",height:i.width()/_}),a=i.width(),r=i.width()/_):(i.height()>r?e.css({height:"100%",width:i.height()*_,maxWidth:"initial"}):e.css({maxHeight:"100%",width:i.height()*_,maxWidth:"initial"}),r=i.height(),a=i.height()*_),jQuery(this).find(".bwg-item2").css({marginLeft:(t.width()-a)/2,marginTop:(t.height()-r)/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"),i=jQuery(this).find(".bwg-item1"),a=0<t.width()?t.width():i.width(),r=0<t.height()?t.height():i.height(),_=e.data("width"),s=e.data("height");""!=_&&""!=s&&void 0!==_&&void 0!==s||(_=e.width(),s=e.height());var o=_/s;e.removeAttr("style"),o<a/r?(_<a?e.css({width:"100%",height:a/o}):e.css({maxWidth:"100%",height:Math.ceil(a/o)}),s=(_=a)/o):(r>e.height()?e.css({height:"100%",width:r*o,maxWidth:"initial"}):e.css({maxHeight:"100%",width:r*o,maxWidth:"initial"}),_=(s=r)*o),jQuery(this).find(".bwg-item2").css({marginLeft:(a-_)/2,marginTop:(r-s)/2})}),bwg_container_loaded(jQuery(e).data("bwg"))}function bwg_thumbnail_masonry(e){var t="#bwg_thumbnails_masonry_"+(bwg=jQuery(e).attr("data-bwg"));jQuery("#bwg_album_masonry_"+bwg).length&&(t="#bwg_album_masonry_"+bwg),0===jQuery(".bwg-container-temp"+bwg).length&&(jQuery(t).clone().appendTo("#bwg_container3_"+bwg).removeAttr("id").removeClass("bwg-container-"+bwg).addClass("bwg-container-temp"+bwg),jQuery(".bwg-container-temp"+bwg).empty());var a=jQuery(".bwg-container-temp"+bwg),r=jQuery(t),_=a;if(a.prepend(r.html()),_.find(".bwg-empty-item").remove(),"horizontal"==_.data("masonry-type")){var s=_.data("thumbnail-height"),o=_.data("max-count"),l=[];for(i=0;i<o;i++)l.push(0);_.find(".bwg-item").each(function(){var e=l.indexOf(Math.min.apply(Math,l));jQuery(this).css({height:s,order:e+1}),l[e]+=jQuery(this)[0].getBoundingClientRect().width});var n=Math.max.apply(Math,l);for(_.width(n),i=0;i<o;i++)l[i]<n&&_.append(jQuery('<div class="bwg-item bwg-empty-item"></div>').css({height:s,order:i+1,width:n-l[i]}))}else{_.removeAttr("style");n=_.width();var g=_.data("thumbnail-width"),b=_.data("thumbnail-border"),w=(_.data("thumbnail-padding"),o=_.data("max-count"),parseInt(n/g)+("0"==_.data("resizable-thumbnails")?0:1));o<w&&(w=o);var d=_.find(".bwg-item").length;d<w&&(w=d);var u,h,m=100/w,c=[];for(i=0;i<w;i++)c.push(0);_.find(".bwg-item").each(function(){var e=c.indexOf(Math.min.apply(Math,c)),t=jQuery(this).find("img");if(jQuery(this).css({width:m+"%",order:e+1}),void 0!==t.data("src")&&-1===t.data("src").indexOf("svg")&&0<t.attr("data-width").length&&0<t.attr("data-height").length){h=parseInt(t.data("width"))/parseInt(t.data("height")),u=t.width()/h;var i=(this.querySelector("a .bwg-zoom-effect-overlay .bwg-title2")||!this.querySelector("a .bwg-title1 .bwg-title2")?0:this.querySelector("a .bwg-title1 .bwg-title2").getClientRects()[0].height)+(0<jQuery(this).find(".bwg-masonry-thumb-description").length?jQuery(this).find(".bwg-masonry-thumb-description").height():0);jQuery(this).height(Math.floor(u+i+2*b))}c[e]+=jQuery(this)[0].getBoundingClientRect().height});var p=Math.max.apply(Math,c);for(i=0;i<w;i++)c[i]<p&&_.append(jQuery('<div class="bwg-item bwg-empty-item"></div>').css({width:m+"%",order:i+1,height:p-c[i]}));_.outerWidth(w*(g+2*b)),_.height(p)}if(""!=a.html()){r.outerWidth(w*(g+2*b)),"0"!=p?(r.css("opacity","1"),r.height(p)):r.css("opacity","0"),r.empty();var y=a.html();r.append(y),r.find(".bwg_lazyload").each(function(){null!=jQuery(this).data("src")&&""!=jQuery(this).data("src")&&(jQuery(this).attr("src",jQuery(this).data("src")),jQuery(this).on("load",function(){jQuery(this).removeClass("lazy_loader")}))}),a.empty().hide()}bwg_container_loaded(_.data("bwg"))}function bwg_container_loaded(e){jQuery("#gal_front_form_"+e).removeClass("bwg-hidden"),jQuery("#ajax_loading_"+e).addClass("bwg-hidden"),jQuery(".bwg_container img").removeAttr("width").removeAttr("height")}function bwg_thumbnail_mosaic_logic(e){var t=e.attr("data-bwg"),i=e.attr("data-block-id"),a=parseInt(e.attr("data-thumb-padding"))/2,_=parseInt(e.attr("data-thumb-border"))+a;if("horizontal"==e.attr("data-mosaic-direction")){var r=parseInt(e.attr("data-height"));if("1"==e.attr("data-resizable"))if(1920<=jQuery(window).width())var s=(1+jQuery(window).width()/1920)*r;else if(jQuery(window).width()<=640)s=jQuery(window).width()/640*r;else s=r;else s=r;(p=jQuery(".bwg_mosaic_thumb_"+t)).each(function(e){var t=jQuery(this).data("width"),i=jQuery(this).data("height");""!=t&&""!=i&&void 0!==t&&void 0!==i||(t=p.get(e).naturalWidth,i=p.get(e).naturalHeight),t=t*s/i,p.eq(e).css({cssText:"width:"+t+"px !important; height:"+s+"px !important;"})});var o=jQuery("#bwg_mosaic_thumbnails_div_"+t).width()/100*parseInt(e.attr("data-total-width"));jQuery("#"+i).width(o);var l=s+2*_,n=0,g=[];g[0]=0;var b=[],w=b[0]=0;p.each(function(e){row_cum_width2=w+p.eq(e).width()+2*_,row_cum_width2-o<0?(w=row_cum_width2,g[e]=n,b[n]++):e!==p.length-1?Math.abs(w-o)>Math.abs(row_cum_width2-o)||Math.abs(w-o)<=Math.abs(row_cum_width2-o)&&0==b[n]?e!==p.length-2?(w=row_cum_width2,g[e]=n,b[n]++,b[++n]=0,w=0):(w=row_cum_width2,g[e]=n,b[n]++):(b[++n]=1,g[e]=n,w=row_cum_width2-w):(w=row_cum_width2,g[e]=n,b[n]++)});for(var d=[],u=[],h=0;h<=n;h++)w=0,p.each(function(e){g[e]==h&&(w+=p.eq(e).width())}),d[h]=z=(o-2*b[h]*_)/w,u[h]=(l-2*_)*d[h]+2*_;if(0==n)for(h=0;h<=n;h++)u[h]>s&&(d[h]=1,u[h]=l);(O=[])[0]=0;var m=[],c=[];m[0]=0,c[0]=0;for(h=1;h<=n;h++)m[h]=m[0],c[h]=c[h-1]+u[h-1];p.each(function(e){var t=p.eq(e).width(),i=p.eq(e).height(),a=t*d[g[e]],r=i*d[g[e]];p.eq(e).css({cssText:"width:"+a+"px !important; height:"+r+"px !important;"}),p.eq(e).parent().css({top:c[g[e]],left:m[g[e]]}),m[g[e]]+=t*d[g[e]]+2*_,O[g[e]]=e}),jQuery("#"+i).height(c[n]+u[n]-c[0])}else{var p,y=parseInt(e.attr("data-width"));if("1"==e.attr("data-resizable")){if(1920<=jQuery(window).width())var f=(1+jQuery(window).width()/1920)*y;else if(jQuery(window).width()<=640)f=jQuery(window).width()/640*y;else f=y;if(0<jQuery(".header-content-with_tab").length)f=jQuery(".header-content-with_tab").width()/4-10}else f=y;(p=jQuery(".bwg_mosaic_thumb_"+t)).each(function(e){jQuery(this).removeAttr("style"),jQuery(this).parent().removeAttr("style");var t=jQuery(this).data("width"),i=jQuery(this).data("height");""!=t&&""!=i&&void 0!==t&&void 0!==i||(t=p.get(e).naturalWidth,i=p.get(e).naturalHeight),p.eq(e).css({cssText:"width:"+f+"px !important; height:"+i*f/t+"px !important;"})});o=jQuery("#bwg_mosaic_thumbnails_div_"+t).width()/100*parseInt(e.attr("data-total-width"));jQuery("#"+i).width(o);var j=f+2*_<o?f:o-2*_,Q=Math.min(Math.floor(o/(j+2*_)),p.length),v=[];v[0]=0;for(var x=[],k=[],z=0;z<Q;z++)k[z]=0,x[z]=0;p.each(function(e){for(var t=0,i=k[0],a=0;a<Q;a++)i>k[a]&&(i=k[a],t=a);v[e]=t,x[t]++,H=i,T=0+t*(j+2*_),p.eq(e).parent().css({top:H,left:T}),k[t]+=p.eq(e).height()+2*_}),(d=[])[0]=1;var C=0,I=[],E=0,M=0;for(z=0;z<Q;z++)C+=j,I[z]=0,p.each(function(e){v[e]==z&&(I[z]+=p.eq(e).height())}),0!=I[z]&&(E+=j/I[z],M+=j*x[z]*2*_/I[z]);var S=0;0!=E&&(S=(C+M)/E);for(z=0;z<Q;z++)0!=I[z]&&(d[z]=(S-2*x[z]*_)/I[z]);var O,T=[];T[0]=0;for(z=1;z<=Q;z++)T[z]=T[z-1]+j*d[z-1]+2*_;var H=[];for(z=0;z<Q;z++)H[z]=0;(O=[])[0]=0,p.each(function(e){var t=p.eq(e).width(),i=p.eq(e).height(),a=t*d[v[e]],r=i*d[v[e]];p.eq(e).css({cssText:"width:"+a+"px !important; height:"+r+"px !important;"}),p.eq(e).parent().css({top:H[v[e]],left:T[v[e]]}),H[v[e]]+=i*d[v[e]]+2*_,O[v[e]]=e}),jQuery("#"+i).width(T[Q]).height(H[0])}}function bwg_thumbnail_mosaic(e){var t=jQuery(e),i=jQuery.Deferred();if(i.done([bwg_thumbnail_mosaic_logic]).done(function(e){"1"!=e.data("mosaic-thumb-transition")&&jQuery(".bwg_mosaic_thumb_spun_"+t).css({transition:"all 0.3s ease 0s","-webkit-transition":"all 0.3s ease 0s"});var t=e.data("bwg");jQuery(".bwg_mosaic_thumbnails_"+t).css({visibility:"visible"}),jQuery(".tablenav-pages_"+t).css({visibility:"visible"}),bwg_container_loaded(t),jQuery(".bwg_mosaic_thumb_"+t).removeClass("bwg-hidden"),jQuery("#bwg_mosaic_thumbnails_div_"+t).removeClass("bwg-hidden")}),i.resolve(t),"hover"==t.attr("data-image-title")){var a=parseInt(t.attr("data-thumb-padding"))/2,r=parseInt(t.attr("data-thumb-border"))+a;bwg_mosaic_title_on_hover(t.data("bwg"),t,r)}"hover"==t.attr("data-ecommerce-icon")&&(jQuery(".bwg_mosaic_thumb_spun_"+bwg).on("mouseenter",function(){var e=jQuery(this).parents(".bwg-mosaic-thumb-span").children(".bwg_mosaic_thumb_"+bwg).width(),t=jQuery(this).parents(".bwg-mosaic-thumb-span").children(".bwg_mosaic_thumb_"+bwg).height();jQuery(this).children(".bwg_ecommerce_spun1_"+bwg).width(e);var i=jQuery(this).children(".bwg_ecommerce_spun1_"+bwg).width(),a=jQuery(this).children(".bwg_ecommerce_spun1_"+bwg).height();jQuery(this).children(".bwg_ecommerce_spun1_"+bwg).css({top:r+.5*t-.5*a,left:r+.5*e-.5*i,opacity:1})}),jQuery(".bwg_mosaic_thumb_spun_"+bwg).on("mouseleave",function(){jQuery(this).children(".bwg_ecommerce_spun1_"+bwg).css({top:0,left:-1e4,opacity:0,padding:t.attr("data-title-margin")})}))}function bwg_mosaic_title_on_hover(t,e,i){jQuery(".bwg-mosaic-thumb-span").on("mouseenter",function(){var e=jQuery(this).children(".bwg_mosaic_thumb_"+t).width();jQuery(this).find(".bwg_mosaic_title_spun1_"+t).width(e),jQuery(this).find(".bwg_mosaic_title_spun1_"+t).css({opacity:1,"max-height":"calc(100% - "+2*i+"px)",overflow:"hidden"})}),jQuery(".bwg-mosaic-thumb-span").on("mouseleave",function(){jQuery(this).find(".bwg_mosaic_title_spun1_"+t).css({opacity:0,padding:e.attr("data-title-margin"),"max-height":"calc(100% - "+2*i+"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+"]"))}),jQuery(".bwg_container").each(function(){var e=jQuery(this).data("bwg");0<jQuery(this).find(".wd_error").length&&bwg_container_loaded(e)})}function bwg_add_album(){var t=!1;"1"!=bwg_objectsL10n.front_ajax&&jQuery(document).off("click",".bwg-album").on("click",".bwg-album",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(document).on("click",".bwg_lightbox .bwg-item0, .bwg_lightbox .bwg_slide, .bwg_lightbox .bwg-carousel-image, .bwg_lightbox .bwg-title1",function(e){e.stopPropagation(),e.preventDefault();var t=jQuery(this).closest("a");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="",a="",r=(a=jQuery(e).parent().parent().hasClass("bwg_tag_buttons_view")?jQuery(e).parent().parent():jQuery(e).parent().parent().parent()).find(".current_view").val(),_=a.find(".form_id").val(),s=a.find(".cur_gal_id").val(),o=a.find(".album_gallery_id").val(),l=a.find(".type").val();jQuery(e).parent().find(".opt.selected").each(function(){i=i+jQuery(e).text()+","}),""==(i=i.slice(0,-1))&&(i=bwg_objectsL10n.bwg_select_tag),jQuery(e).parent().find(".CaptionCont").attr("title",i),jQuery(e).parent().find(".CaptionCont .placeholder").html(i);var n=jQuery(".bwg_tags_container_"+r+" #bwg_tag_id_"+s).val();t="string"==typeof n&&""!==n?n.split(","):[],"object"==typeof n&&(t=n),jQuery(".bwg_tags_container_"+r+" #bwg_tag_id_"+r).val(t),bwg_select_tag(r,_,s,o,l,!1)}function bwg_document_ready(i){bwg_add_lightbox(),i.data("right-click-protection")&&bwg_disable_right_click(i);var e=i.find(".search_tags");if("1"==bwg_objectsL10n.front_ajax&&e.length)for(var t=0;t<e[0].length;t++)void 0===e[0][t].attributes.selected&&(e[0][t].selected=!1);e.length&&(e.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]}),e.off("change").on("change",function(){bwg_filter_by_tag(this)})),bwg_search_tag_init(i);var a=i.find(".cur_gal_id").val(),r=i.find(".current_view").val(),_=i.find(".bwg_tags_container_"+r+" .bwg_tag_button_view_container"),s=i.find("#bwg_tag_id_"+a),o=parseInt(2*_.find(".bwg_tags_filter_buttons").outerHeight(!0));_.length&&(_.find(".bwg_tags_filter_buttons").off("click").on("click",function(){if(!jQuery(this).hasClass("active")){var e=jQuery(this).position().top;o<e&&i.find(".show_bottom_tag").val("1"),""==s.val()?s.val(jQuery(this).val()):s.val(s.val()+","+jQuery(this).val()),bwg_filter_by_tag(this)}return!1}),_.find(".bwg_all_tags").off("click").on("click",function(){return jQuery(this).hasClass("active")||(s.val(""),bwg_filter_by_tag(this)),!1}),""!=s.val()&&_.find(".bwg_all_tags").removeClass("active"),s.val().split(",").forEach(function(t){_.find(".bwg_tags_filter_buttons").each(function(){if(jQuery(this).val()==t){var e=jQuery(this).position().top;o<e&&i.find(".show_bottom_tag").val("1")}})}),bwg_tags_button_section_visibility());var l=i.find(".bwg_order");l.length&&l.SumoSelect({triggerChangeCombined:!0,forceCustomRendering:!0}),jQuery(".SumoSelect > .CaptionCont > label > i").addClass("bwg-icon-angle-down closed"),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("bwg-hidden"),jQuery(this).find(".bwg_search_reset_container").addClass("bwg-hidden"))}),jQuery(".search_tags").on("sumo:opened",function(){var e=jQuery(this).parents(".bwg_container").height(),t=jQuery(this).parents(".bwg_container").find(".wd_error").length,i=jQuery(this).parents(".bwg_container").find(".SumoSelect>.optWrapper>.options");void 0!==i&&(e-50<i.height()&&!t&&i.css("max-height",e-50));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 n=window.location.hash.substring(1);if(n&&"-1"!=n.indexOf("bwg")){bwg_hash_array=n.replace("bwg","").split("/");var g=jQuery(".bwg_container");g&&bwg_gallery_box(bwg_hash_array[1],g,!1,bwg_hash_array[0])}bwg_resize_search_line()}function bwg_search_tag_init(e){var t=e.find(".search_tags");if("1"==bwg_objectsL10n.front_ajax&&t.length)for(var i=0;i<t[0].length;i++)void 0===t[0][i].attributes.selected&&(t[0][i].selected=!1);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)}))}function bwg_clear_search_input(e){if("1"!=bwg_objectsL10n.front_ajax)jQuery("#bwg_search_input_"+e).val(""),jQuery("#bwg_search_container_1_"+e+" .bwg_search_loupe_container1").addClass("bwg-hidden"),jQuery("#bwg_search_container_1_"+e+" .bwg_search_reset_container").addClass("bwg-hidden");else{var t=window.location.href,i=bwg_remove_url_parameter("bwg_search_"+e,t,t);window.location.replace(i)}}function bwg_check_search_input_enter(e,t){return"Enter"!=t.key||(jQuery(e).closest(".bwg_search_container_1").find(".bwg_search").trigger("click"),!1)}function bwg_ajax(t,i,a,r,e,_,s,o,l,n,g,b){if("1"!=bwg_objectsL10n.front_ajax||!0===n){jQuery("#ajax_loading_"+i).removeClass("bwg-hidden"),jQuery(".bwg_load_more_ajax_loading").css({top:jQuery("#bwg_container1_"+bwg).height()-jQuery(".bwg_load_more_ajax_loading").height()}),"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"),d=0;if(void 0===n)n=!1;var u,h=jQuery("#page_number_"+i).val(),m=jQuery("#bwg_search_input_"+i).val(),c={},p=jQuery("#bwg_album_breadcrumb_"+i).val();if(p&&!0!==n){var y=JSON.parse(p);if("back"==r){y.splice(-1,1);var f=y.slice(-1)[0];r=f.id,h=f.page,c["action_"+i]="back"}else"numeric"===n||s?(y.splice(-1,1),y.push({id:r,page:h,search:m})):(y.push({id:r,page:1}),h=1);c["bwg_album_breadcrumb_"+i]=JSON.stringify(y)}if(c["bwg-preview-type"]=jQuery("#"+t).data("gallery-type"),c.gallery_type=jQuery("#"+t).data("gallery-type"),c.gallery_id=jQuery("#"+t).data("gallery-id"),c.tag=jQuery("#"+t).data("tag"),c.album_id=jQuery("#"+t).data("album-id"),c.theme_id=jQuery("#"+t).data("theme-id"),c.shortcode_id=jQuery("#"+t).data("shortcode-id"),c.bwg=i,c.current_url=encodeURI(jQuery("#bwg_container1_"+i).data("current-url")),s&&(h=1),void 0===o||""==o)o="";if(void 0===g||""==g)g="";if(void 0===l||""==l)l=jQuery(".bwg_order_"+i).val();if(void 0===b)b=!0;if(1==b&&jQuery("html, body").animate({scrollTop:jQuery("#"+t).offset().top-150},500),c["page_number_"+i]=h,c["bwg_load_more_"+i]=jQuery("#bwg_load_more_"+i).val(),c["album_gallery_id_"+i]=r,c["type_"+i]=_,c["title_"+i]=o,c["description_"+i]=g,c["sortImagesByValue_"+i]=l,c["bwg_random_seed_"+i]=jQuery("#bwg_random_seed_"+i).val(),0<jQuery("#bwg_search_input_"+i).length&&(c["bwg_search_"+i]=jQuery("#bwg_search_input_"+i).val()),void 0!==c["bwg_album_breadcrumb_"+i]){var j=JSON.parse(c["bwg_album_breadcrumb_"+i]);jQuery.each(j,function(e,t){c["bwg_search_"+i]="",r==t.id&&(c["bwg_search_"+i]=t.search)})}var Q=jQuery(".bwg_tags_container_"+i+" #bwg_tag_id_"+a).val();return u="string"==typeof Q&&""!==Q?Q.split(","):[],"object"==typeof Q&&(u=Q),c["bwg_tag_id_"+a]=u,jQuery("#ajax_loading_"+i).removeClass("bwg-hidden"),jQuery(".bwg_load_more_ajax_loading").css({top:jQuery("#bwg_container1_"+bwg).height()-jQuery(".bwg_load_more_ajax_loading").height()}),jQuery.ajax({type:"POST",url:w,data:c,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()):a=="bwg_thumbnails_masonry_"+i?jQuery(".bwg-container-temp"+i).append(jQuery(e).closest(".bwg-container-"+i).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),bwg_remove_lazy_loader_icon()},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()}),""==u&&(u=[]),jQuery(".bwg_tags_container_"+i+" #bwg_tag_id_"+a).val(u),u.forEach(function(t){jQuery(".bwg_tags_container_"+i+" .bwg_tags_filter_buttons").each(function(){var e=parseInt(2*jQuery(this).outerHeight(!0));jQuery(this).val()==t&&(jQuery(this).addClass("active"),e<jQuery(this).position().top&&jQuery(".bwg_tags_container_"+i+" .show_bottom_tag").val("1"),jQuery(".bwg_tags_container_"+i+" .bwg_all_tags").removeClass("active"))})}),jQuery(".pagination-links_"+i).length&&jQuery("html, body").animate({scrollTop:jQuery("#"+t).offset().top-150},500),bwg_document_ready(jQuery("#bwg_container1_"+i));var e=jQuery("#bwg_container1_"+i).data("gallery-type");if(jQuery("#bwg_container1_"+i+" .bwg-album-thumbnails").length){bwg_all_thumnails_loaded(".bwg-container-"+i)&&bwg_container_loaded(i)}else{switch(e){case"thumbnails":case"thumbnails_masonry":case"album_compact_preview":case"album_masonry_preview":case"album_extended_preview":bwg_all_thumnails_loaded(".bwg-container-"+i);break;case"slideshow":bwg_slideshow_ready(i);break;case"carousel":bwg_carousel_ready(i),bwg_carousel_onload(jQuery("#bwg_container1_"+i));break;case"image_browser":bwg_image_browser_ready(jQuery("#bwg_container1_"+i));break;case"blog_style":bwg_blog_style_ready(jQuery("#bwg_container1_"+i))}bwg_mosaic_ajax(i,d)}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(c["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();jQuery("#bwg_container2_"+i+" .cur_gal_id").val();""==u&&(u=[]),jQuery(".bwg_tags_container_"+i+" #bwg_tag_id_"+i).val(u)}}),!1}if("back"===r)return-1==document.referrer.indexOf(window.location.host)?(str=jQuery(location).attr("href"),void window.location.replace(str.substring(0,str.indexOf("type_0")))):void window.history.back();var v=jQuery("#bwg_search_input_"+i).val(),x=jQuery(".bwg_tags_container_"+i+" .cur_gal_id").val(),k=window.location.href,z="",C=jQuery(".bwg_tags_container_"+i+" #bwg_tag_id_"+x).val();if(jQuery(".bwg_tags_container_"+i).parent().hasClass("bwg_tag_select_view")&&(C=C.toString()),"#"==k.substr(-1)&&(k=k.slice(0,-1)),""!==v&&void 0!==v?!1!==(z=bwg_add_url_parameter(z=bwg_remove_url_parameter("page_number_"+i,k),"bwg_search_"+i,v))&&(k=z):!1!==(z=bwg_remove_url_parameter("bwg_search_"+i,k))&&(k=z),void 0!==l&&""!==l&&!1!==(z=bwg_add_url_parameter(k,"sort_by_"+i,l))&&(k=z),null!=C&&0<C.length){var I="",E=C.split(",");jQuery.each(E,function(e){var t=",";e===E.length-1&&(t=""),I+=E[e]+t}),""!==I&&!1!==(z=bwg_add_url_parameter(k,"filter_tag_"+i,I))&&(k=z)}else!1!==(z=bwg_remove_url_parameter("filter_tag_"+i,z))&&(k=z);window.location.href=k}function bwg_add_url_parameter(e,t,i){var a=new RegExp("([?&])"+t+"=.*?(&|$)","i"),r=-1!==e.indexOf("?")?"&":"?";return e.match(a)?e.replace(a,"$1"+t+"="+i+"$2"):e+r+t+"="+i}function bwg_remove_url_parameter(e,t){var i=t.split("?"),a=i[0]+"?",r="";if(void 0!==i[1]&&(r=i[1]),""===r)return t;var _,s,o=decodeURIComponent(r).split("&");for(s=0;s<o.length;s++)(_=o[s].split("="))[0]!=e&&(a=a+_[0]+"="+_[1]+"&");return a.substring(0,a.length-1)}function bwg_select_tag(e,t,i,a,r,_){_&&jQuery(".bwg_tags_container_"+e+" #bwg_tag_id_"+i).val(""),bwg_ajax(t,e,i,a,"",r,1,"")}function bwg_cube(e,t,i,a,r,_,s,o,l,n,g){var b,w=!1,d="";if(void 0!==g&&""!==g){w=!0,bwg_params[g].bwg_trans_in_progress=!0,d="_"+g,b=bwg_params[g].bwg_transition_duration;bwg_params[g].event_stack}else b=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 u(){if(jQuery(o).removeAttr("style"),jQuery(l).removeAttr("style"),jQuery(".bwg_slider"+d).removeAttr("style"),jQuery(o).css({opacity:0,"z-index":1}),jQuery(l).css({opacity:1,"z-index":2}),jQuery(".bwg_image_info").show(),jQuery(o).html(""),w){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{e="";gallery_box_data.bwg_trans_in_progress=!1;t=gallery_box_data.event_stack}if(void 0!==t&&0<t.length){var i=t[0].split("-");t.shift(),bwg_change_image(i[0],i[1],e,!0,g)}bwg_change_watermark_container()}w?(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,backfaceVisibility:"hidden",transform:"translateY("+i+"px) translateX("+t+"px) rotateY("+r+"deg) rotateX("+a+"deg)"}),jQuery(".bwg_slider"+d).css({transform:"translateZ(-"+e+"px)",transformStyle:"preserve-3d"}),setTimeout(function(){jQuery(".bwg_slider"+d).css({transition:"all "+b+"ms ease-in-out",transform:"translateZ(-"+e+"px) rotateX("+_+"deg) rotateY("+s+"deg)"})},20),jQuery(".bwg_slider"+d).one("webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend",jQuery.proxy(u)),0==b&&u()}function bwg_cubeH(e,t,i,a){var r=jQuery(e).width()/2;"right"==i?bwg_cube(r,r,0,0,90,0,-90,e,t,i,a):"left"==i&&bwg_cube(r,-r,0,0,-90,0,90,e,t,i,a)}function bwg_cubeV(e,t,i,a){var r=jQuery(e).height()/2;"right"==i?bwg_cube(r,0,-r,90,0,-90,0,e,t,i,a):"left"==i&&bwg_cube(r,0,r,-90,0,90,0,e,t,i,a)}function bwg_fade(e,t,i,a){var r,_=!1;function s(){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("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(s))):(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(""),s()}}),jQuery(e).fadeTo(r,0),jQuery(t).fadeTo(r,1)),0==r&&s()}function bwg_grid(e,t,i,a,r,_,s,o,l,n,g){var b,w=!1,d="";if(event_stack=void 0!==g&&""!==g?(w=!0,bwg_params[g].bwg_trans_in_progress=!0,d="_"+g,b=bwg_params[g].bwg_transition_duration,bwg_params[g].event_stack):(b=bwg_transition_duration,gallery_box_data.bwg_trans_in_progress=!0,gallery_box_data.event_stack),!bwg_testBrowser_cssTransitions())return bwg_fallback(o,l,n);w?(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+d).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+d).removeClass("bwg_slideshow_dots_deactive_"+g).addClass("bwg_slideshow_dots_active_"+g)):(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"));var u=b/(e+t);var h=jQuery(o).find("img"),m=jQuery(o).find("figure"),c=(jQuery(o).find("iframe").css("opacity",0),jQuery('<span style="display: block;" />').addClass("bwg_grid"+d));jQuery(o).prepend(c);var p,y,f,j,Q,v,x,k,z,C,I,E=jQuery(".bwg_slide_bg"+d),M=h.width(),S=h.height(),O=E.width(),T=E.height(),H=Math.floor(O/e),L=Math.floor(T/t),A=O-e*H,B=Math.ceil(A/e),W=T-t*L,D=Math.ceil(W/t),R=0,F=Math.ceil((jQuery(".bwg_slide_bg"+d).width()-h.width())/2),N=void 0===h.attr("src")?"":h.attr("src");a="min-auto"===(a="auto"===a?O:a)?-O:a,r="min-auto"===(r="auto"===r?T:r)?-T:r;for(var P=0;P<e;P++){var U=0,V=Math.floor((jQuery(".bwg_slide_bg"+d).height()-h.height())/2),q=H;if(0<A){var J=B<=A?B:A;q+=J,A-=J}for(var G=0;G<t;G++){var Y=L,$=W;0<$&&(Y+=J=D<=$?D:W,$-=J),c.append((p=q,y=Y,f=U,j=V,Q=R,v=F,x=N,k=M,z=S,C=g,void 0,I=(P+G)*u,jQuery('<span class="bwg_gridlet'+d+'" />').css({display:"block",width:p,height:y,top:f,left:Q,backgroundImage:'url("'+x+'")',backgroundColor:w?jQuery(".bwg_slideshow_image_wrap_"+C).css("background-color"):jQuery(".spider_popup_wrap").css("background-color"),backgroundRepeat:"no-repeat",backgroundPosition:v+"px "+j+"px",backgroundSize:k+"px "+z+"px",transition:"all "+b+"ms ease-in-out "+I+"ms",transform:"none"}))),U+=Y,V-=Y}F-=q,R+=q}var X=c.children().last();function K(){if(jQuery(o).css({opacity:0,"z-index":1}),jQuery(l).css({opacity:1,"z-index":2}),h.css("opacity",1),m.css("opacity",1),c.remove(),w){bwg_params[g].bwg_trans_in_progress=!1;var e=bwg_params[g].event_stack,t=bwg_params[g].data}else{gallery_box_data.bwg_trans_in_progress=!1;e=gallery_box_data.event_stack,t=""}if(jQuery(".bwg_image_info").show(),jQuery(o).html(""),void 0!==e&&0<e.length){var i=e[0].split("-");e.shift(),bwg_change_image(i[0],i[1],t,!0,g)}w?bwg_change_watermark_container(g):bwg_change_watermark_container()}c.show(),h.css("opacity",0),m.css("opacity",0),c.children().first().addClass("rs-top-left"),c.children().last().addClass("rs-bottom-right"),c.children().eq(t-1).addClass("rs-bottom-left"),c.children().eq(-t).addClass("rs-top-right"),setTimeout(function(){c.children().css({opacity:s,transform:"rotate("+i+"deg) translateX("+a+"px) translateY("+r+"px) scale("+_+")"})},1),jQuery(l).css("opacity",1),jQuery(X).one("webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend",jQuery.proxy(K)),0==b&&K()}function bwg_sliceH(e,t,i,a){if("right"==i)var r="min-auto";else if("left"==i)r="auto";bwg_grid(1,8,0,r,0,1,0,e,t,i,a)}function bwg_sliceV(e,t,i,a){if("right"==i)var r="min-auto";else if("left"==i)r="auto";bwg_grid(10,1,0,0,r,1,0,e,t,i,a)}function bwg_slideV(e,t,i,a){if("right"==i)var r="auto";else if("left"==i)r="min-auto";bwg_grid(1,1,0,0,r,1,1,e,t,i,a)}function bwg_slideH(e,t,i,a){if("right"==i)var r="min-auto";else if("left"==i)r="auto";bwg_grid(1,1,0,r,0,1,1,e,t,i,a)}function bwg_scaleOut(e,t,i,a){bwg_grid(1,1,0,0,0,1.5,0,e,t,i,a)}function bwg_scaleIn(e,t,i,a){bwg_grid(1,1,0,0,0,.5,0,e,t,i,a)}function bwg_blockScale(e,t,i,a){bwg_grid(8,6,0,0,0,.6,0,e,t,i,a)}function bwg_kaleidoscope(e,t,i,a){bwg_grid(10,8,0,0,0,1,0,e,t,i,a)}function bwg_fan(e,t,i,a){if("right"==i)var r=45,_=100;else if("left"==i)r=-45,_=-100;bwg_grid(1,10,r,_,0,1,0,e,t,i,a)}function bwg_blindV(e,t,i,a){bwg_grid(1,8,0,0,0,.7,0,e,t,"",a)}function bwg_blindH(e,t,i,a){bwg_grid(10,1,0,0,0,.7,0,e,t,"",a)}function bwg_random(e,t,i,a){var r=["sliceH","sliceV","slideH","slideV","scaleOut","scaleIn","blockScale","kaleidoscope","fan","blindH","blindV"];this["bwg_"+r[Math.floor(Math.random()*r.length)]](e,t,i,a)}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 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"+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+o&&(o=0),0<n+s&&(s=0),"left"==a?jQuery(".bwg"+_+"_filmstrip_thumbnails"+r).animate({left:n+o},{duration:500,complete:function(){void 0!==i&&bwg_disable_lightbox_filmstrip_left_right_arrow(i)}}):jQuery(".bwg"+_+"_filmstrip_thumbnails"+r).animate({top:n+s},{duration:500,complete:function(){void 0!==i&&bwg_disable_lightbox_filmstrip_left_right_arrow(i)}})}function bwg_slideshow_filmstrip_fix_dimension(e){var t,i,a,r,_,s,o=void 0!==e&&""!==e?"_"+e:"",l=void 0!==e&&""!==e?"_slideshow":"",n=void 0!==e&&""!==e&&void 0!==bwg_params[e].outerWidth_or_outerHeight?bwg_params[e].outerWidth_or_outerHeight:gallery_box_data.outerWidth_or_outerHeight,g=void 0!==e&&""!==e&&void 0!==bwg_params[e].left_or_top?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,r="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),_=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,r="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),_=jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).position().top,Math.abs(jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).position().top)+t),i<t||(a<Math.abs(_)?"left"==g?jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).animate({left:-a},{duration:500}):jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).animate({top:-a},{duration:500}):s<r&&("left"==g?jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).animate({left:-(r-t)},{duration:500}):jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).animate({top:-(r-t)},{duration:500})))}function bwg_slideshow_filmstrip_fix_count(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_fix_count"+o).outerWidth(!0),jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).outerWidth(!0)):(t=jQuery(".bwg"+l+"_filmstrip_fix_count"+o).outerHeight(!0),jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).outerHeight(!0)),s="left"==g?(a=jQuery(".bwg"+l+"_thumb_active"+o).position().left,r="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),_=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,r="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),_=jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).position().top,Math.abs(jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).position().top)+t),i<t||(a<Math.abs(_)?"left"==g?jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).animate({left:-a},{duration:500}):jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).animate({top:-a},{duration:500}):s<r&&("left"==g?jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).animate({left:-(r-t)},{duration:500}):jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).animate({top:-(r-t)},{duration:500})))}function bwg_resize_slideshow_filmstrip_fix_count(e){var _=e.bwg,t=e.parent_width,i=e.params,a=i.filmstrip_direction,r=i.data,s=i.filmstrip_thumb_margin_hor,o=jQuery(window).width()<=767&&5<i.slideshow_thumbnails_count,l=o?5:i.slideshow_thumbnails_count,n="#bwg_container1_"+_+" #bwg_container2_"+_+" .bwg_slideshow_filmstrip_container_"+_,g="#bwg_container1_"+_+" #bwg_container2_"+_+" .bwg_slideshow_filmstrip_fix_count_"+_,b="#bwg_container1_"+_+" #bwg_container2_"+_+" .bwg_slideshow_filmstrip_fix_count_"+_+" .bwg_slideshow_filmstrip_thumbnails_"+_,w="#bwg_container1_"+_+" #bwg_container2_"+_+" .bwg_slideshow_filmstrip_fix_count_"+_+" .bwg_slideshow_filmstrip_thumbnails_"+_+" .bwg_slideshow_filmstrip_thumbnail_"+_,d="#bwg_container1_"+_+" #bwg_container2_"+_+" .bwg_slideshow_image_container_"+_,u=jQuery(d).data("filmstrip-position"),h=(jQuery(d).data("filmstrip-size"),i.slideshow_filmstrip_rl_btn_size);if(jQuery("#bwg_container1_"+_).css({width:"100%"}),jQuery("#bwg_container1_"+_+" #bwg_container2_"+_).css({width:t}),"undefined"==typeof resize_in_progress||!1===resize_in_progress){window.resize_in_progress=!0,void 0!==m&&clearTimeout(m);var m=setTimeout(function(){resize_in_progress=!1;var e={};"bottom"==u||"top"==u?e.left=0:e.top=0,jQuery(b).css(e);var t="horizontal"==a?"table-cell":"block";jQuery(n).find(".bwg_slideshow_filmstrip_left_"+_).css({display:"none"}),jQuery(n).find(".bwg_slideshow_filmstrip_left_disabled_"+_).css({display:t}),jQuery(n).find(".bwg_slideshow_filmstrip_right_"+_).css({display:t}),jQuery(n).find(".bwg_slideshow_filmstrip_right_disabled_"+_).css({display:"none"})},500)}if(bwg_resize_instagram_post(_),bwg_change_watermark_container(_),"horizontal"==a){var c=i.image_height/i.image_width,p=t-40,y=Math.round(c*p),f=(p-s*l)/l,j=Math.round(c*f);jQuery(n).css({width:t,height:j}),jQuery(g).css({width:p,height:j}),jQuery(w).css({width:f,height:j}),jQuery.each(r,function(e,t){var i=f,a=j;if(""!=t.image_width&&""!=t.image_height){var r=Math.max(f/t.image_width,j/t.image_height);i=t.image_width*r,a=t.thumb_height*r}""!=t.thumb_width&&""!=t.thumb_height&&(i=t.thumb_width,a=t.thumb_height);i*=r=Math.max(f/i,j/a),a*=r;jQuery(".bwg_slideshow_filmstrip_fix_count_"+_+" .bwg_slideshow_filmstrip_thumbnail_"+_+" .bwg_slideshow_filmstrip_thumbnail_img_"+_).css({width:f,height:j,"margin-left":0,"margin-top":0})}),jQuery(b).css({width:f*r.length+s*r.length,height:j}),jQuery(".bwg_slideshow_image_wrap_"+_).css({width:t,height:t*i.image_height/i.image_width}),(Q={width:t,height:t*(i.image_height/i.image_width)-j})[u]=j,jQuery(".bwg_slideshow_image_container_"+_).css(Q),jQuery(".bwg_slideshow_image_"+_).css({cssText:"max-width:"+t+"px !important; max-height:"+(t*(i.image_height/i.image_width)-j)+"px !important;"}),jQuery(".bwg_slideshow_embed_"+_).css({cssText:"width:"+t+"px !important; height:"+(t*(i.image_height/i.image_width)-j)+"px !important;"}),jQuery(".bwg_embed_frame_"+_).css({"max-width":t+"px","max-height":t*(i.image_height/i.image_width)-j+"px"}),jQuery(".bwg_embed_frame_"+_).attr("data-width",t),jQuery(".bwg_embed_frame_"+_).attr("data-height",t*(i.image_height/i.image_width)-j),j<h&&(h=j),jQuery(n).find(".bwg-icon-angle-left").css({"font-size":h}),jQuery(n).find(".bwg-icon-angle-right").css({"font-size":h})}else{var Q,v=t*i.image_height/i.image_width;c=i.image_width/i.image_height,y=v-40,p=Math.round(c*y),j=(y-s*l)/l,f=Math.round(c*j);jQuery.each(r,function(e,t){var i=f,a=j;if(""!=t.image_width&&""!=t.image_height){var r=Math.max(f/t.image_width,j/t.image_height);i=t.image_width*r,a=t.thumb_height*r}""!=t.thumb_width&&""!=t.thumb_height&&(i=t.thumb_width,a=t.thumb_height);r=Math.max(f/i,j/a),i*=r,a*=r;jQuery(".bwg_slideshow_filmstrip_fix_count_"+_+" .bwg_slideshow_filmstrip_thumbnail_"+_+" .bwg_slideshow_filmstrip_thumbnail_img_"+_).css({width:f,height:j,"margin-left":0,"margin-top":0})}),jQuery(n).css({width:f,height:v}),jQuery(g).css({width:f,height:y}),jQuery(b).css({width:f,height:j*r.length+s*r.length}),jQuery(w).css({width:f,height:j}),jQuery(".bwg_slideshow_image_wrap_"+_).css({width:t,height:v}),(Q={width:t-f,height:v})[u]=f,jQuery(d).css(Q),jQuery(".bwg_slideshow_image_"+_).css({cssText:"max-width:"+(t-f)+"px !important; max-height:"+v+"px !important;"}),jQuery(".bwg_slideshow_embed_"+_).css({cssText:"width:"+(t-f)+"px !important; height:"+v+"px !important;"}),jQuery(".bwg_embed_frame_"+_).css({"max-width":t-f+"px","max-height":v+"px"}),jQuery(".bwg_embed_frame_"+_).attr("data-width",t-f),jQuery(".bwg_embed_frame_"+_).attr("data-height",v),f<h&&(h=f),jQuery(n).find(".bwg-icon-angle-up").css({"font-size":h}),jQuery(n).find(".bwg-icon-angle-down").css({"font-size":h})}o&&(jQuery(n).find(".bwg-icon-angle-left").removeAttr("style"),jQuery(n).find(".bwg-icon-angle-right").removeAttr("style"),jQuery(n).find(".bwg-icon-angle-up").removeAttr("style"),jQuery(n).find(".bwg-icon-angle-down").removeAttr("style"))}function bwg_resize_slideshow_filmstrip_fix_dimension(e){var t=e.bwg,i=e.parent_width,a=e.params,r=a.filmstrip_direction,_=a.slideshow_filmstrip_width,s=a.slideshow_filmstrip_height,o="#bwg_container1_"+t+" #bwg_container2_"+t,l=o+" .bwg_slideshow_image_wrap_"+t,n=o+" .bwg_slideshow_image_container_"+t,g=o+" .bwg_slideshow_image_"+t,b=o+" .bwg_slideshow_embed_"+t,w=l+" .bwg_slideshow_filmstrip_container_"+t,d=w+" .bwg_slideshow_filmstrip_"+t,u=i,h=u*(a.image_height/a.image_width);jQuery(l).css({width:u,height:h}),jQuery(n).css({width:u-("horizontal"==r?0:_),height:h-("horizontal"==r?s:0)}),jQuery(g).css({display:"inline-block","max-width":u-("horizontal"==r?0:_),"max-height":h-("horizontal"==r?s:0)}),jQuery(b).css({cssText:"width: "+(u-("horizontal"==r?0:_))+"px !important; height: "+(h-("horizontal"==r?s:0)-1)+"px !important;"}),bwg_resize_instagram_post(t),bwg_change_watermark_container(t),"horizontal"==r?(jQuery(w).css({width:u}),jQuery(d).css({width:u-40})):(jQuery(w).css({height:h}),jQuery(d).css({height:h-40}))}function bwg_calculate_slideshow_filmstrip_thumbnail_size(e){var t=e.bwg,i=e.params,a=i.slideshow_filmstrip_width;if(2==i.slideshow_filmstrip_type){var r="#bwg_container1_"+t+" #bwg_container2_"+t+" .bwg_slideshow_filmstrip_fix_count_"+t+" .bwg_slideshow_filmstrip_thumbnail_"+t;a=(i.left_or_top,"width"==i.width_or_height?jQuery(r).width():jQuery(r).height())}return parseFloat(a)}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,s=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}):s<i&&jQuery(".bwg_slideshow_dots_thumbnails_"+e).animate({left:-(i-a)},{duration:500}))}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 s=2==jQuery(".bwg_slideshow_image_spun_"+r).css("zIndex")?".bwg_slideshow_image_spun_"+r:".bwg_slideshow_image_second_spun_"+r,o=s==".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"),b=jQuery(s).height(),w=jQuery(s).width(),d='<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(d+='<span style="height: '+b+"px; width: "+w+'px;" class="bwg_popup_embed bwg_popup_watermark">',g&&(d+='<span class="bwg_inst_play_btn_cont" onclick="bwg_play_instagram_video(this)"><span class="bwg_inst_play"></span></span>'),n){var u=jQuery(".bwg_embed_frame"),h=jQuery(".bwg_slideshow_image_container_"+r).width(),m=jQuery(".bwg_slideshow_image_container_"+r).height(),c=i[t].image_width,p=i[t].image_height,y=bwg_resizing_ratio(c,p,h,m);u.attr("data-width",h),u.attr("data-height",m);var f=y.width,j=y.height;f<j?f-=109:f+=109,d+=spider_display_embed(i[t].filetype,decodeURIComponent(i[t].image_url),i[t].filename,{class:"bwg_embed_frame","data-width":h,"data-height":m,"data-instagram-width":c,"data-instagram-height":p,style:"width: 100%; height: 100%; max-width: 100%; max-height: 100%; vertical-align:middle; display:inline-block; position:relative;"})}else d+=spider_display_embed(i[t].filetype,decodeURIComponent(i[t].image_url),i[t].filename,{class:"bwg_embed_frame",frameborder:"0",allowfullscreen:"allowfullscreen","data-max-width":w,"data-max-height":b,style:"width:inherit; height:inherit; vertical-align:middle; display:table-cell;"});d+="</span>"}else{if("do_nothing"!=bwg_params[r].thumb_click_action){var Q="";"open_lightbox"==bwg_params[r].thumb_click_action?Q+=' class="bwg_lightbox" data-image-id="'+i[t].id+'" data-elementor-open-lightbox="no"':"redirect_to_url"==bwg_params[r].thumb_click_action&&i[t].redirect_url&&(Q+='href="'+i[t].redirect_url+'"'+(bwg_params[r].thumb_link_target&&1==bwg_params[r].thumb_link_target?' target="_blank"':"")),d+="<a "+Q+">"}d+='<img style="max-height: '+b+"px !important; max-width: "+w+'px !important; display:inline-block;" ',d+=' class="bwg_slide bwg_slideshow_image_'+r+'" ',d+=' id="bwg_slideshow_image_'+r+'" ',d+=' src="'+bwg_params[r].upload_url+jQuery("<span style='display: block;' />").html(decodeURIComponent(i[t].image_url)).text()+'" alt="'+i[t].alt+'" image_id="'+i[t].id+'" /></a>'}d+="</span></span>",jQuery(o).html(d),bwg_params[r].preload_images&&bwg_preload_images(t,r),window["bwg_"+bwg_params[r].slideshow_effect](s,o,_,r),1==bwg_params[r].slideshow_filmstrip_type?bwg_slideshow_filmstrip_fix_dimension(r):2==bwg_params[r].slideshow_filmstrip_type?bwg_slideshow_filmstrip_fix_count(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();var v="horizontal"==bwg_params[r].filmstrip_direction?"table-cell":"block",x=jQuery(".bwg_slideshow_filmstrip_thumbnails_"+r+" .bwg_slideshow_thumb_active_"+r).prev(),k=jQuery(".bwg_slideshow_filmstrip_thumbnails_"+r+" .bwg_slideshow_thumb_active_"+r).next(),z=jQuery(".bwg_slideshow_filmstrip_container_"+r+" .bwg_slideshow_filmstrip_left_"+r),C=jQuery(".bwg_slideshow_filmstrip_container_"+r+" .bwg_slideshow_filmstrip_left_disabled_"+r),I=jQuery(".bwg_slideshow_filmstrip_container_"+r+" .bwg_slideshow_filmstrip_right_"+r),E=jQuery(".bwg_slideshow_filmstrip_container_"+r+" .bwg_slideshow_filmstrip_right_disabled_"+r);x.length?(z.css({display:v}),C.css({display:"none"})):(z.css({display:"none"}),C.css({display:v}),I.css({display:v}),E.css({display:"none"})),k.length?(I.css({display:v}),E.css({display:"none"})):(I.css({display:"none"}),E.css({display:v}),z.css({display:v}),C.css({display:"none"})),void 0!==i[t]&&"EMBED_OEMBED_INSTAGRAM_POST"==i[t].filetype&&"undefined"!=typeof instgrm&&void 0!==instgrm.Embeds&&(jQuery(".instagram-media").hide(),instgrm.Embeds.process(),jQuery(".instagram-media").css({"max-height":j+"px","min-width":f+"px !important"}),jQuery(".instagram-media").show())}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),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(decodeURIComponent(i[_].image_url)).text()))}else for(r=0;r<i.length;r++){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(decodeURIComponent(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=".bwg_slideshow_filmstrip_"+e;2==bwg_params[e].slideshow_filmstrip_type&&(t=".bwg_slideshow_filmstrip_fix_count_"+e);var i=jQuery("#bwg_container1_"+e).parent();i.hasClass("content-area")&&i.width(i.closest(".content-area").width()),i.hasClass("elementor-tab-content")&&i.width(i.closest(".elementor-widget-wrap").width());var a=i.width(),r=bwg_params[e].data;if(a>=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 _="horizontal"==bwg_params[e].filmstrip_direction?"width: "+bwg_params[e].image_width:"height: "+bwg_params[e].image_height,s="horizontal"==bwg_params[e].filmstrip_direction?"width: "+(bwg_params[e].image_width-40):"height: "+(bwg_params[e].image_height-40);if(jQuery(".bwg_slideshow_filmstrip_container_"+e).css({cssText:_}),jQuery(t).css({cssText:s}),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}),2==bwg_params[e].slideshow_filmstrip_type){var o=bwg_params[e].filmstrip_direction,l="#bwg_container1_"+e+" #bwg_container2_"+e;jQuery(l).removeAttr("style");var n=l+" .bwg_slideshow_filmstrip_container_"+e,g=bwg_params[e].slideshow_filmstrip_rl_btn_size,b=jQuery(".bwg_slideshow_filmstrip_fix_count_"+e).width();"horizontal"==o&&(b=jQuery(".bwg_slideshow_filmstrip_fix_count_"+e).height());var w="horizontal"==o?"table-cell":"block";jQuery(n).find(".bwg_slideshow_filmstrip_left_"+e).css({display:"none"}),jQuery(n).find(".bwg_slideshow_filmstrip_left_disabled_"+e).css({display:w}),jQuery(n).find(".bwg_slideshow_filmstrip_right_"+e).css({display:w}),jQuery(n).find(".bwg_slideshow_filmstrip_right_disabled_"+e).css({display:"none"}),b<g?(g=b,jQuery(n).find(".bwg-icon-angle-left").css({"font-size":g}),jQuery(n).find(".bwg-icon-angle-right").css({"font-size":g}),jQuery(n).find(".bwg-icon-angle-up").css({"font-size":g}),jQuery(n).find(".bwg-icon-angle-down").css({"font-size":g})):(jQuery(n).find(".bwg-icon-angle-left").removeAttr("style"),jQuery(n).find(".bwg-icon-angle-right").removeAttr("style"),jQuery(n).find(".bwg-icon-angle-up").removeAttr("style"),jQuery(n).find(".bwg-icon-angle-down").removeAttr("style"));var d=l+" .bwg_slideshow_filmstrip_thumbnails_"+e;jQuery(d).removeAttr("style"),jQuery(d+" .bwg_slideshow_filmstrip_thumbnail_"+e).each(function(e,t){jQuery(t).attr("style",jQuery(t).attr("data-style")),jQuery(t).find("img").attr("style",jQuery(t).attr("data-style"))});var u="#bwg_container1_"+e+" #bwg_container2_"+e+" .bwg_slideshow_image_container_"+e,h=(jQuery(u).data("filmstrip-position"),jQuery(u).data("filmstrip-size"));jQuery(u).css({filmstrip_position:h});var m="bwg_slideshow_filmstrip_thumbnail_"+e;window.bwg_slideshow_filmstrip_thumb[m].next_prev_index&&(window.bwg_slideshow_filmstrip_thumb[m].next_prev_index=0)}}else 1==bwg_params[e].slideshow_filmstrip_type&&bwg_resize_slideshow_filmstrip_fix_dimension({bwg:e,params:bwg_params[e],parent_width:a}),2==bwg_params[e].slideshow_filmstrip_type&&bwg_resize_slideshow_filmstrip_fix_count({bwg:e,params:bwg_params[e],parent_width:a}),jQuery(".bwg_slideshow_dots_container_"+e).css({width:a}),jQuery("#bwg_slideshow_play_pause-ico_"+e).css({fontSize:a*(bwg_params[e].slideshow_play_pause_btn_size/bwg_params[e].image_width)}),jQuery(".bwg_slideshow_watermark_image_"+e).css({maxWidth:a*(bwg_params[e].watermark_width/bwg_params[e].image_width),maxHeight:a*(bwg_params[e].watermark_height/bwg_params[e].image_width)}),jQuery(".bwg_slideshow_watermark_text_"+e+", .bwg_slideshow_watermark_text_"+e+":hover").css({fontSize:a*(bwg_params[e].watermark_font_size/bwg_params[e].image_width)}),jQuery(".bwg_slideshow_title_text_"+e).css({fontSize:2*a*bwg_params[e].slideshow_title_font_size/bwg_params[e].image_width}),jQuery(".bwg_slideshow_description_text_"+e).css({fontSize:2*a*bwg_params[e].slideshow_description_font_size/bwg_params[e].image_width});r[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){var t=!1;if(void 0!==e&&""!==e){if(jQuery(".inner_instagram_iframe_bwg_embed_frame_"+e).length){t=!0;var i=jQuery("#instagram-embed-"+e),a=jQuery(".bwg_slideshow_embed_"+e),r=jQuery(".bwg_embed_frame_"+e),_=void 0!==a.width()?a.width():jQuery(".bwg_slideshow_embed_"+e).width(),s=void 0!==a.height()?a.height():jQuery(".bwg_slideshow_embed_"+e).height(),o=r.data("instagram-width"),l=r.data("instagram-height");bwg_change_watermark_container(e)}}else if(jQuery(".inner_instagram_iframe_bwg_embed_frame").length){t=!0;i=jQuery(".instagram-media"),r=jQuery(".bwg_embed_frame"),_=jQuery(".bwg_image_container").width(),s=jQuery(".bwg_image_container").height(),o=r.data("instagram-width"),l=r.data("instagram-height");bwg_change_watermark_container()}if(!0===t){var n=bwg_resizing_ratio(o,l,_,s);r.attr("data-width",_),r.attr("data-height",s);var g=n.width;g<n.height?g-=109:g+=109,r.css({width:"100%",height:"100%","max-width":_,"max-height":s}),i.css({"min-width":g+"px !important","max-height":s+"px"})}}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")}function bwg_resizing_ratio(e,t,i,a){var r=[i/e,a/t];return{width:e*(r=Math.min(r[0],r[1])),height:t*r}}function bwg_slideshow_filmstrip_next(e){var t=e.bwg,i=e.params,a=e.slideshow_filmstrip_class_name,r=bwg_calculate_slideshow_filmstrip_thumbnail_size({bwg:t,params:i}),_="bwg_slideshow_filmstrip_thumbnail_"+t,s="#bwg_container1_"+t+" #bwg_container2_"+t+" .bwg_slideshow_filmstrip_left_"+t,o="#bwg_container1_"+t+" #bwg_container2_"+t+" .bwg_slideshow_filmstrip_left_disabled_"+t,l="#bwg_container1_"+t+" #bwg_container2_"+t+" .bwg_slideshow_filmstrip_right_"+t,n="#bwg_container1_"+t+" #bwg_container2_"+t+" .bwg_slideshow_filmstrip_right_disabled_"+t,g="horizontal"==i.filmstrip_direction?"table-cell":"block";"left"==i.left_or_top?"width"==i.width_or_height?(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().left>=-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).width()-jQuery(a).width())&&(jQuery(s).css({display:g}),jQuery(o).css({display:"none"}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().left<-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).width()-jQuery(a).width()-(parseInt(i.filmstrip_thumb_margin_hor)+r))?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).animate({left:-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).width()-jQuery(a).width())},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).animate({left:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().left-(parseInt(i.filmstrip_thumb_margin_hor)+r)},500,"linear")),window.setTimeout(function(){parseInt(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().left)==-parseInt(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).width()-jQuery(a).width())?(jQuery(l).css({display:"none"}),jQuery(n).css({display:g})):(jQuery(l).css({display:g}),jQuery(n).css({display:"none"}))},510)):(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().left>=-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).height()-jQuery(a).height())&&(jQuery(s).css({display:g}),jQuery(o).css({display:"none"}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().left<-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).height()-jQuery(a).height()-(parseInt(i.filmstrip_thumb_margin_hor)+r))?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).animate({left:-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).height()-jQuery(a).height())},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).animate({left:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().left-(parseInt(i.filmstrip_thumb_margin_hor)+r)},500,"linear")),window.setTimeout(function(){parseInt(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().left)==-parseInt(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).height()-jQuery(a).height())?(jQuery(l).css({display:"none"}),jQuery(n).css({display:g})):(jQuery(l).css({display:g}),jQuery(n).css({display:"none"}))},510)):"width"==i.width_or_height?(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().top>=-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).width()-jQuery(a).width())&&(jQuery(s).css({display:g}),jQuery(o).css({display:"none"}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().top<-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).width()-jQuery(a).width()-parseInt(i.filmstrip_thumb_margin_hor)+r)?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).animate({top:-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).width()-jQuery(a).width())},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).animate({top:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().top-parseInt(i.filmstrip_thumb_margin_hor)+r},500,"linear")),window.setTimeout(function(){parseInt(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().top)==-parseInt(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).width()-jQuery(a).width())?(jQuery(l).css({display:"none"}),jQuery(n).css({display:g})):(jQuery(l).css({display:g}),jQuery(n).css({display:"none"}))},510)):(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().top>=-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).height()-jQuery(a).height())&&(jQuery(s).css({display:g}),jQuery(o).css({display:"none"}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().top<-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).height()-jQuery(a).height()-(parseInt(i.filmstrip_thumb_margin_hor)+r))?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).animate({top:-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).height()-jQuery(a).height())},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).animate({top:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().top-(parseInt(i.filmstrip_thumb_margin_hor)+r)},500,"linear")),window.setTimeout(function(){parseInt(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().top)==-parseInt(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).height()-jQuery(a).height())?(jQuery(l).css({display:"none"}),jQuery(n).css({display:g})):(jQuery(l).css({display:g}),jQuery(n).css({display:"none"}))},510)),bwg_slideshow_filmstrip_thumb[_].next_prev_index=bwg_slideshow_filmstrip_thumb[_].next_prev_index+1}function bwg_slideshow_filmstrip_prev(e){var t=e.bwg,i=e.params,a=bwg_calculate_slideshow_filmstrip_thumbnail_size({bwg:t,params:i}),r="bwg_slideshow_filmstrip_thumbnail_"+t,_="#bwg_container1_"+t+" #bwg_container2_"+t+" .bwg_slideshow_filmstrip_left_"+t,s="#bwg_container1_"+t+" #bwg_container2_"+t+" .bwg_slideshow_filmstrip_left_disabled_"+t,o="#bwg_container1_"+t+" #bwg_container2_"+t+" .bwg_slideshow_filmstrip_right_"+t,l="#bwg_container1_"+t+" #bwg_container2_"+t+" .bwg_slideshow_filmstrip_right_disabled_"+t,n="horizontal"==i.filmstrip_direction?"table-cell":"block";"left"==i.left_or_top?(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().left<0&&(jQuery(o).css({display:n}),jQuery(l).css({display:"none"}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().left>-(i.filmstrip_thumb_margin_hor+a)?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).animate({left:0},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).animate({left:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().left+parseInt(i.filmstrip_thumb_margin_hor)+a},500,"linear")),window.setTimeout(function(){0==parseInt(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().left)?(jQuery(_).css({display:"none"}),jQuery(s).css({display:n})):(jQuery(_).css({display:n}),jQuery(s).css({display:"none"}))},510)):(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().top<0&&(jQuery(o).css({display:n}),jQuery(l).css({display:"none"}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().top>-(i.filmstrip_thumb_margin_hor+a)?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).animate({top:0},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).animate({top:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().top+parseInt(i.filmstrip_thumb_margin_hor)+a},500,"linear")),window.setTimeout(function(){0==parseInt(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().top)?(jQuery(_).css({display:"none"}),jQuery(s).css({display:n})):(jQuery(_).css({display:n}),jQuery(s).css({display:"none"}))},510)),bwg_slideshow_filmstrip_thumb[r].next_prev_index=bwg_slideshow_filmstrip_thumb[r].next_prev_index-1}jQuery(function(){function i(e){bwg_slideshow_blur(e),bwg_carousel_blur(e),0<jQuery(".bwg_play_pause").length&&window.clearInterval(gallery_box_data.bwg_playInterval)}function a(e){e&&bwg_main_ready(e),bwg_slideshow_focus(),bwg_carousel_focus(),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)}var r=!1;jQuery(".bwg_container").each(function(){if(0<jQuery(this).find(".wd_error").length&&(r=!0),!r){var e=jQuery(this);if(e[0].offsetHeight)var t=0;else t=1;setInterval(function(){e[0].offsetHeight?1==t&&(t=0,a(e)):0==t&&i(!(t=1))},200)}}),r||jQuery(window).focus(function(){a()}).blur(function(){i(!0)})}),jQuery(window).on("resize",function(){setTimeout(function(){var e=!1;jQuery(".bwg_container").each(function(){0<jQuery(this).find(".wd_error").length&&(e=!0)}),bwg_tags_button_section_visibility(),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()},0)}),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(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");void 0!==e&&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,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())&&parseInt(jQuery(".spider_popup_close").css("right"))<0&&jQuery(".spider_popup_close").attr("class","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")||("ArrowRight"==e.key?parseInt(jQuery("#bwg_current_image_key").val())==gallery_box_data.data.length-1?bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),0):bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),parseInt(jQuery("#bwg_current_image_key").val())+1):"ArrowLeft"==e.key?0==parseInt(jQuery("#bwg_current_image_key").val())?bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),gallery_box_data.data.length-1):bwg_change_image(parseInt(jQuery("#bwg_current_image_key").val()),parseInt(jQuery("#bwg_current_image_key").val())-1):"Escape"==e.key?spider_destroypopup(1e3):"Space"==e.key&&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,.bwg_ecommerce_panel, .bwg_image_info").mCustomScrollbar({scrollInertia:150,theme:"dark-thick",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}),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",function(){bwg_disable_lightbox_filmstrip_right_arrow(gallery_box_data)}):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",function(){bwg_disable_lightbox_filmstrip_right_arrow(gallery_box_data)})):jQuery(".bwg_filmstrip_thumbnails").position().left>=-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height())&&(jQuery(".bwg_filmstrip_left").css({opacity:1}),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",function(){bwg_disable_lightbox_filmstrip_right_arrow(gallery_box_data)}):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",function(){bwg_disable_lightbox_filmstrip_right_arrow(gallery_box_data)})):"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}),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",function(){bwg_disable_lightbox_filmstrip_right_arrow(gallery_box_data)}):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",function(){bwg_disable_lightbox_filmstrip_right_arrow(gallery_box_data)})):jQuery(".bwg_filmstrip_thumbnails").position().top>=-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height())&&(jQuery(".bwg_filmstrip_left").css({opacity:1}),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",function(){bwg_disable_lightbox_filmstrip_right_arrow(gallery_box_data)}):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",function(){bwg_disable_lightbox_filmstrip_right_arrow(gallery_box_data)}))}),"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}),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",function(){bwg_disable_lightbox_filmstrip_left_arrow(gallery_box_data)}):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",function(){bwg_disable_lightbox_filmstrip_left_arrow(gallery_box_data)}))}):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}),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",function(){bwg_disable_lightbox_filmstrip_left_arrow(gallery_box_data)}):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",function(){bwg_disable_lightbox_filmstrip_left_arrow(gallery_box_data)}))}),"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);jQuery(".bwg_ctrl_btn_container").length&&jQuery(".bwg_ctrl_btn_container").height();jQuery(".bwg_image_info").css("height","auto"),bwg_info_height_set()}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_zoom").on(a,function(){var e=["mousemove","touchmove"];jQuery("figure.bwg_popup_image").each(function(){var i=jQuery(this);i.hasClass("zoom")?jQuery.each(e,function(e,t){i.removeClass("zoom"),i.off(t)}):jQuery.each(e,function(e,t){i.addClass("zoom"),i.on(t,function(e){var t,i,a,r;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");var _=e.target,s=_.getBoundingClientRect();e.targetTouches&&(a=e.targetTouches[0].clientX-s.left,r=e.targetTouches[0].clientY-s.top),t=e.offsetX?e.offsetX:e.targetTouches?a:_.offsetHeight,i=e.offsetY?e.offsetY:e.targetTouches?r:_.offsetWidth,x=t/_.offsetWidth*100,y=i/_.offsetHeight*100,_.parentNode.style.backgroundPosition=x+"% "+y+"%"})})})}),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";jQuery(".bwg_toggle_container i").hasClass(e)?(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).addClass("closed"),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).addClass("closed"),jQuery(".bwg_toggle_container").animate({top:0},{duration:500,complete:function(){jQuery(".bwg_toggle_container i").attr("class","bwg_toggle_btn "+t)}}))):(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).removeClass("closed"),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).removeClass("closed"),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)}}))),bwg_info_position(!0)});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&&(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_image_info").css("height","auto"),bwg_info_height_set(),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)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())}),bwg_set_filmstrip_pos(r-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",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)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())}),bwg_set_filmstrip_pos(_-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",gallery_box_data),"horizontal"!=gallery_box_data.filmstrip_direction&&jQuery(".bwg_filmstrip_right").css({top:_-jQuery(".bwg_filmstrip_right").height()})),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"),bwg_info_height_set(),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?t:0)},500),jQuery(".bwg_filmstrip").css({width:i-("horizontal"==gallery_box_data.filmstrip_direction?t:0)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())},500),bwg_set_filmstrip_pos(i-("horizontal"==gallery_box_data.filmstrip_direction?t:0)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",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:a-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())}),bwg_set_filmstrip_pos(a-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",gallery_box_data),"horizontal"!=gallery_box_data.filmstrip_direction&&jQuery(".bwg_filmstrip_right").css({top:a-jQuery(".bwg_filmstrip_right").height()})),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","spider_popup_close_fullscreen")}return!1}),jQuery(".bwg_play_pause").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,a,r,_,s,o,l){e=e.replace(/&/g,"&"),isPopUpOpened||(isPopUpOpened=!0,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:'+a+"px; height:"+r+"px; margin-top:-"+r/2+"px; margin-left: -"+a/2+'px; ">'+e+"</div>").hide().appendTo("body");if(gallery_box_ready(),spider_showpopup(s,o,t,_,l),"undefined"!=typeof addthis){jQuery(".addthis-smartlayers").show();var i=setInterval(function(){void 0!==addthis.layers.refresh&&(clearInterval(i),addthis.layers.refresh())},100)}},beforeSend:function(){},complete:function(){}})))}function spider_showpopup(e,t,i,a,r){var _=gallery_box_data.data,s=parseInt(jQuery("#bwg_current_image_key").val());if(void 0!==_[s]&&(isPopUpOpened=!0,-1<_[s].filetype.indexOf("EMBED_")?bwg_first_image_load(i,r):jQuery("#spider_popup_wrap .bwg_popup_image_spun img").prop("complete")?bwg_first_image_load(i,r):jQuery("#spider_popup_wrap .bwg_popup_image_spun img").on("load error",function(){bwg_first_image_load(i,r)}),"EMBED_OEMBED_INSTAGRAM_POST"==_[s].filetype&&"undefined"!=typeof instgrm&&void 0!==instgrm.Embeds)){instgrm.Embeds.process();var o=parseInt(jQuery("#bwg_image_container").height());jQuery(".bwg_embed_frame .instagram-media").css({"max-height":o+"px"})}}function bwg_first_image_load(e,t){e.show(),""==gallery_box_data.data[key].alt&&""==gallery_box_data.data[key].description?jQuery(".bwg_info").hide():jQuery(".bwg_info").show();var i=jQuery(".bwg_ctrl_btn_container").height();"bottom"==t?jQuery(".bwg_toggle_container").css("bottom",i+"px"):"top"==t&&jQuery(".bwg_toggle_container").css("top",i+"px"),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(),bwg_info_height_set()}function spider_isunsupporteduseragent(){return!window.XMLHttpRequest}function spider_destroypopup(e){jQuery(".addthis-smartlayers").hide(),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&&history.pushState(history.state,null,window.location.origin+window.location.pathname+window.location.search),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")),jQuery("#ecommerce_opacity_div").css("display","block"),jQuery("#ecommerce_loading_div").css("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(){jQuery("#ecommerce_opacity_div").css("display","none"),jQuery("#ecommerce_loading_div").css("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){jQuery(".bwg_comments").mCustomScrollbar("destroy");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,theme:"dark-thick",advanced:{updateOnContentResize:!0}}),jQuery(".bwg_comments_close_btn").click(bwg_comment),bwg_captcha_refresh("bwg_captcha")}}),!1}function spider_rate_ajax_save(i,e){var t={};return t.image_id=jQuery("#"+i+" input[name='image_id']").val(),t.rate=void 0!==e?e:jQuery("#"+i+" input[name='score']").val(),t.ajax_task=jQuery("#rate_ajax_task").val(),jQuery.ajax({type:"POST",url:jQuery("#"+i).attr("action"),data:t,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.popup_enable_captcha=t.find("#bwg_popup_enable_captcha").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 s=t.find(".cur_gal_id").val(),o=jQuery("#bwg_tag_id_"+s).val();o=o||0;var l=1==i?"&open_ecommerce=1":"",n=jQuery("#bwg_search_input_"+_).val(),g=jQuery("#bwg_order_"+_).val()?"&filtersortby="+jQuery("#bwg_order_"+_).val():"";n=n||"",void 0!==a&&(r+="&gallery_id="+a);var b="",w=jQuery("#bwg_blog_style_share_buttons_"+e).attr("data-open-comment");void 0!==w&&!1!==w&&(b="&open_comment=1"),spider_createpopup(r+"&bwg_random_seed="+jQuery("#bwg_random_seed_"+_).val()+"&image_id="+e+"&filter_tag="+o+l+b+"&filter_search_name="+n+g,_,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(jQuery("#bwg_rate_form input[name='image_id']").val(r[a].id),bwg_current_key=gallery_box_data.bwg_current_key,""==gallery_box_data.data[a].alt&&""==gallery_box_data.data[a].description?jQuery(".bwg_info").hide():jQuery(".bwg_info").show(),jQuery(".bwg_image_info").css("height","auto"),setTimeout(function(){bwg_info_height_set(),jQuery(".bwg_image_description").height()>jQuery(".bwg_image_info").height()&&jQuery(".mCSB_container").hasClass("mCS_no_scrollbar")&&jQuery(".bwg_image_info").mCustomScrollbar("destroy"),jQuery(".bwg_image_info").hasClass("mCustomScrollbar")||void 0!==jQuery().mCustomScrollbar&&jQuery.isFunction(jQuery().mCustomScrollbar)&&jQuery(".bwg_image_info").mCustomScrollbar({scrollInertia:150,theme:"dark-thick",advanced:{updateOnContentResize:!0}})},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)),jQuery("#bwg_rate_form input[name='image_id']").val(r[a].id),spider_set_input_value("rate_ajax_task","save_hit_count"),spider_rate_ajax_save("bwg_rate_form"),gallery_box_data.popup_enable_rate&&(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)),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 />").html(r[a].alt).text()),jQuery(".bwg_image_description").html(jQuery("<span />").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 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<r[a].filetype.indexOf("EMBED_"),n=-1<r[a].filetype.indexOf("INSTAGRAM_POST"),g=-1<r[a].filetype.indexOf("INSTAGRAM_VIDEO"),b=-1!==jQuery.inArray(r[a].filetype,["EMBED_OEMBED_YOUTUBE_VIDEO","EMBED_OEMBED_VIMEO_VIDEO","EMBED_OEMBED_FACEBOOK_VIDEO","EMBED_OEMBED_DAILYMOTION_VIDEO"]),w=jQuery(s).height(),d=jQuery(s).width(),u='<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("bwg-hidden"),u+='<span class="bwg_popup_embed bwg_popup_watermark" style="display: '+(b?"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=jQuery(".instagram-media"),m=jQuery(".bwg_embed_frame"),c=jQuery(".bwg_image_container").width()-("vertical"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_width:0),p=jQuery(".bwg_image_container").height()-("horizontal"==gallery_box_data.filmstrip_direction?gallery_box_data.image_filmstrip_height:0),y=r[a].image_width,f=r[a].image_height,j=bwg_resizing_ratio(y,f,c,p);m.attr("data-width",c),m.attr("data-height",p);var Q=j.width,v=j.height;Q<v?Q-=109:Q+=109,u+=spider_display_embed(r[a].filetype,r[a].image_url,r[a].filename,{class:"bwg_embed_frame","data-width":c,"data-height":p,"data-instagram-width":y,"data-instagram-height":f,style:"width:"+Q+"px; height:"+v+"px; vertical-align:middle; display:inline-block; position:relative;"}),h.css({"max-height":v+"px","min-width":Q+"px !important"})}else u+=spider_display_embed(r[a].filetype,r[a].image_url,r[a].filename,{class:"bwg_embed_frame",frameborder:"0",allowfullscreen:"allowfullscreen",style:"display:"+(b?"block":"table-cell")+"; width:inherit; height:inherit; vertical-align:middle;"});u+="</span>"}else{jQuery(".bwg-loading").removeClass("bwg-hidden"),jQuery("#bwg_download").removeClass("bwg-hidden");var x="'"+(gallery_box_data.site_url+jQuery("<span />").html(decodeURIComponent(r[a].image_url)).text()).split("?bwg")[0]+"'";gallery_box_data.popup_enable_zoom&&(u+='<figure style="max-height: '+w+"px; max-width: "+d+"px; background-image: url("+x+'); background-repeat: no-repeat" class="bwg_popup_image bwg_popup_watermark" alt="'+r[a].alt+'" />'),u+='<img style="max-height: '+w+"px; max-width: "+d+'px;" class="bwg_popup_image bwg_popup_watermark" src="'+gallery_box_data.site_url+jQuery("<span />").html(decodeURIComponent(r[a].image_url)).text()+'" alt="'+r[a].alt+'" />'}function z(){gallery_box_data.preload_images&&bwg_preload_images(a),window["bwg_"+gallery_box_data.bwg_image_effect](s,o,_),jQuery(s).find(".bwg_fb_video").each(function(){jQuery(this).attr("src","")}),l?jQuery("#bwg_fullsize_image").attr("href",decodeURIComponent(r[a].image_url)):(jQuery("#bwg_fullsize_image").attr("href",gallery_box_data.site_url+decodeURIComponent(r[a].image_url)),jQuery("#bwg_download").attr("href",gallery_box_data.site_url+decodeURIComponent(r[a].thumb_url).replace("/thumb/","/.original/")));var e=decodeURIComponent(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].pure_image_url));i=i.replace(/%252F|%25252F/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/intent/tweet?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")&&(jQuery(".bwg_comments .mCSB_container").css("top","0"),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_slideshow_filmstrip_fix_dimension(),setTimeout(function(){bwg_disable_lightbox_filmstrip_left_right_arrow(gallery_box_data)},100)),bwg_resize_instagram_post()}if(gallery_box_data.popup_enable_zoom?u+="</figure></span></span>":u+="</span></span>",jQuery(o).html(u),jQuery(o).find("img").on("load error",function(){jQuery(".bwg-loading").addClass("bwg-hidden")}),jQuery(".bwg_popup_embed > .bwg_embed_frame > img, .bwg_popup_embed > .bwg_embed_frame > video").css({maxWidth:d,maxHeight:w,height:"auto"}),l)z();else jQuery(o).find("img").one("load",function(){z()}).each(function(){this.complete&&jQuery(this).load()});"undefined"!=typeof instgrm&&void 0!==instgrm.Embeds&&(jQuery(".instagram-media").hide(),instgrm.Embeds.process(),jQuery(".instagram-media").show())}}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 s=1;do{var o=(e+_*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(decodeURIComponent(t[o].image_url)).text());s*=-1,r++}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.current_image_key&&0!=gallery_box_data.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,theme:"dark-thick",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()-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())},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()-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())},100)),bwg_set_filmstrip_pos(jQuery(".spider_popup_wrap").width()-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",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()-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())},100),bwg_set_filmstrip_pos(jQuery(".bwg_filmstrip_container").width()-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",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)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())}),bwg_set_filmstrip_pos(jQuery(window).width()-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",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)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())}),bwg_set_filmstrip_pos(window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?"comment_container_width":0)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",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","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)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())},500),bwg_set_filmstrip_pos(bwg_popup_current_width-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",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)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())},500),bwg_set_filmstrip_pos(bwg_popup_current_height-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",gallery_box_data),"horizontal"!=gallery_box_data.filmstrip_direction&&jQuery(".bwg_filmstrip_right").css({top:bwg_popup_current_height-jQuery(".bwg_filmstrip_right").height()})),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),setTimeout(function(){bwg_info_height_set()},500)):(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)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())},500),bwg_set_filmstrip_pos(jQuery(window).width()-("horizontal"==gallery_box_data.filmstrip_direction?e:0)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",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)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())},500),bwg_set_filmstrip_pos(window.innerHeight-("horizontal"==gallery_box_data.filmstrip_direction?e:0)-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height()),"",gallery_box_data),"horizontal"!=gallery_box_data.filmstrip_direction&&jQuery(".bwg_filmstrip_right").css({top:window.innerHeight-jQuery(".bwg_filmstrip_right").height()})),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","spider_popup_close_fullscreen")),setTimeout(function(){bwg_info_height_set()},500)}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"),bwg_info_height_set(),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-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())})),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"),bwg_info_height_set(),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-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())})),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"),bwg_info_height_set(),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-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())})),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-2*("horizontal"==gallery_box_data.filmstrip_direction?jQuery(".bwg_filmstrip_right").width():jQuery(".bwg_filmstrip_right").height())})),bwg_popup_current_width=jQuery(window).width()),bwg_resize_instagram_post(),bwg_change_watermark_container(),1!=gallery_box_data.open_with_fullscreen&&(gallery_box_data.lightbox_close_btn_right<0&&jQuery("#spider_popup_wrap").width()-2*gallery_box_data.lightbox_close_btn_right>=jQuery(window).width()||gallery_box_data.lightbox_close_btn_top<0&&jQuery("#spider_popup_wrap").height()-2*gallery_box_data.lightbox_close_btn_top>=jQuery(window).height()?jQuery(".spider_popup_close").attr("class","spider_popup_close_fullscreen"):jQuery(".spider_popup_close_fullscreen").attr("class","spider_popup_close"));var t=jQuery(".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.";if(0!=i&&""!=i&&(r=parseFloat(i).toFixed(1)+"\n Votes: "+t),void 0!==jQuery().raty&&jQuery.isFunction(jQuery().raty)){var _=parseFloat(jQuery("#bwg_star").attr("data-score"));jQuery("#bwg_star").removeAttr("data-score").html("");var s={starType:"i",number:lightbox_rate_stars_count,size:lightbox_rate_size,noRatedMsg:"Not rated yet.",readOnly:!1,score:_,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};e||(s.click=function(e,t){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",e)).then(function(){gallery_box_data.data[a].rate=e,++gallery_box_data.data[a].rate_count,gallery_box_data.data[a].avg_rating=_?((_+e)/2).toFixed(1):e.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)})}),jQuery("#bwg_star").raty(s),jQuery(".bwg_image_rate_disabled").hide(),e&&jQuery(".bwg_image_rate_disabled").show()}}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"),r=jQuery(e).val();r=r.split("*");var _=parseFloat(r[1]),s=r[0],o=Number(jQuery(e).closest(".image_selected_parameter").find(".already_selected_values").val());if("4"==a||"5"==a){var l=parseFloat(s+_);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+_);else n=o+parseFloat(s+_);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(),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:_,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 r=jQuery("#bwg_filmstrip_thumbnail_"+a+" img");r.removeClass("bwg-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("bwg-hidden"),t.attr("src",t.data("url"));if(0<=leftIndex)(t=jQuery("#bwg_filmstrip_thumbnail_"+leftIndex+" img")).removeClass("bwg-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,r=t,_=Math.max(i/e.width(),t/e.height()),s=e.width()*_,o=e.height()*_;e.css({width:s,height:o,marginLeft:(a-s)/2,marginTop:(r-o)/2})}function bwg_info_height_set(){bwg_info_position(!1),jQuery(".mCustomScrollBox").length&&jQuery(".bwg_image_info_container1").height()<jQuery(".mCustomScrollBox").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)})}function bwg_info_position(e){var t=0,i="none";"top"==gallery_box_data.lightbox_ctrl_btn_pos?"top"==gallery_box_data.lightbox_info_pos&&(i="top"):"bottom"==gallery_box_data.lightbox_info_pos&&(i="bottom"),jQuery(".bwg_ctrl_btn_container").hasClass("closed")||("top"==gallery_box_data.lightbox_ctrl_btn_pos?"top"==gallery_box_data.lightbox_info_pos&&(t=jQuery(".bwg_ctrl_btn_container").height()):"bottom"==gallery_box_data.lightbox_info_pos&&(t=jQuery(".bwg_ctrl_btn_container").height())),"top"==i?0==e?jQuery(".bwg_image_info").css("top",t):jQuery(".bwg_image_info").animate({top:t+"px"},500):"bottom"==i&&(0==e?jQuery(".bwg_image_info").css("bottom",t):jQuery(".bwg_image_info").animate({bottom:t+"px"},500))}function bwg_disable_lightbox_filmstrip_left_arrow(e){"left"==e.left_or_top?0==parseInt(jQuery(".bwg_filmstrip_thumbnails").position().left)&&jQuery(".bwg_filmstrip_left").css({opacity:.3}):0==jQuery(".bwg_filmstrip_thumbnails").position().top&&jQuery(".bwg_filmstrip_left").css({opacity:.3})}function bwg_disable_lightbox_filmstrip_right_arrow(e){"left"==e.left_or_top?"width"==e.width_or_height?parseInt(jQuery(".bwg_filmstrip_thumbnails").position().left)<=jQuery(".bwg_filmstrip").width()-jQuery(".bwg_filmstrip_thumbnails").width()+e.filmstrip_thumb_right_left_space+e.all_images_right_left_space&&jQuery(".bwg_filmstrip_right").css({opacity:.3}):jQuery(".bwg_filmstrip_thumbnails").position().left==-(jQuery(".bwg_filmstrip_thumbnails").height()-jQuery(".bwg_filmstrip").height())&&jQuery(".bwg_filmstrip_right").css({opacity:.3}):"width"==e.width_or_height?jQuery(".bwg_filmstrip_thumbnails").position().left==-(jQuery(".bwg_filmstrip_thumbnails").width()-jQuery(".bwg_filmstrip").width())&&jQuery(".bwg_filmstrip_right").css({opacity:.3}):parseInt(jQuery(".bwg_filmstrip_thumbnails").position().top)<=jQuery(".bwg_filmstrip").height()-jQuery(".bwg_filmstrip_thumbnails").height()+gallery_box_data.filmstrip_thumb_right_left_space+gallery_box_data.all_images_right_left_space&&jQuery(".bwg_filmstrip_right").css({opacity:.3})}function bwg_disable_lightbox_filmstrip_left_right_arrow(e){var t=jQuery(".bwg_filmstrip_thumbnails").position().left,i=jQuery(".bwg_filmstrip").width()>jQuery(".bwg_filmstrip_thumbnails").width();"top"==e.left_or_top&&(t=jQuery(".bwg_filmstrip_thumbnails").position().top,i=jQuery(".bwg_filmstrip").height()>jQuery(".bwg_filmstrip_thumbnails").height()),jQuery(".bwg_filmstrip_container .bwg_filmstrip_left").css({opacity:"1"}),jQuery(".bwg_filmstrip_container .bwg_filmstrip_right").css({opacity:"1"}),jQuery(".bwg_filmstrip_thumbnails .bwg_filmstrip_thumbnail:first-child").index()!=jQuery(".bwg_filmstrip_thumbnails .bwg_filmstrip_thumbnail.bwg_thumb_active").index()&&0!=t||jQuery(".bwg_filmstrip_container .bwg_filmstrip_left").css({opacity:"0.3"}),jQuery(".bwg_filmstrip_thumbnails .bwg_filmstrip_thumbnail:last-child").index()==jQuery(".bwg_filmstrip_thumbnails .bwg_filmstrip_thumbnail.bwg_thumb_active").index()&&jQuery(".bwg_filmstrip_container .bwg_filmstrip_right").css({opacity:"0.3"}),jQuery(".bwg_filmstrip").width()>jQuery(".bwg_filmstrip_thumbnails").width()&&jQuery(".bwg_filmstrip_container .bwg_filmstrip_left, .bwg_filmstrip_container .bwg_filmstrip_right").css({opacity:"0.3"}),i&&jQuery(".bwg_filmstrip_container .bwg_filmstrip_left, .bwg_filmstrip_container .bwg_filmstrip_right").css({opacity:"0.3"})}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 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]+'"');r+=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;">'),r+=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+=" >",""!=t&&(l+='<video style="width:auto !important; height:auto !important; max-width:100% !important; max-height:100% !important; margin:0 !important;" controls><source src="'+decodeURIComponent(t)+'" type="video/mp4"> Your browser does not support the video tag. </video>'),r+=l+="</div>";break;case"EMBED_OEMBED_INSTAGRAM_IMAGE":var n=a["data-max-width"],g=a["data-max-height"];l="<div ";for(attr in a)/src/i.test(attr)||""!=attr&&""!=a[attr]&&(l+=" "+attr+'="'+a[attr]+'"');l+=" >",""!=t&&(l+='<img src="'+decodeURIComponent(t)+'" style="max-width:'+n+"px; max-height:"+g+'px; 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+=">",""!=t&&(l+='<div class="inner_instagram_iframe_'+obj_class+'" style="max-width: 100% !important; max-height: 100% !important; width: 100%; height: 100%; margin:0; vertical-align:middle;">'+atob(t)+"</div>"),r+=l+="</div>";break;case"EMBED_OEMBED_FACEBOOK_IMAGE":var b="<span ";for(attr in a)/src/i.test(attr)||""!=attr&&""!=a[attr]&&(b+=" "+attr+'="'+a[attr]+'"');b+=" >",""!=i&&(b+='<img src="'+t+'" style=" max-width:100% !important; max-height:100% !important; width:auto; height:100%;">'),r+=b+="</span>";break;case"EMBED_OEMBED_FACEBOOK_VIDEO":var w="<div ";for(attr in a)/src/i.test(attr)||""!=attr&&""!=a[attr]&&(w+=" "+attr+'="'+a[attr]+'"');w+=" >",""!=i&&(w+='<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+=w+="</div>";break;case"EMBED_OEMBED_DAILYMOTION_VIDEO":var d="<iframe ";for(attr in""!=i&&(d+=' src="//www.dailymotion.com/embed/video/'+i+'?api=postMessage"'),a)/src/i.test(attr)||""!=attr&&""!=a[attr]&&(d+=" "+attr+'="'+a[attr]+'"');r+=d+=" ></iframe>";break;case"EMBED_OEMBED_IMGUR":var u="<div ";for(attr in a)/src/i.test(attr)||""!=attr&&""!=a[attr]&&(l+=" "+attr+'="'+a[attr]+'"');u+=" >",""!=i&&(u+='<img src="'+i+'" style="max-width:100% !important; max-height:100% !important; width:auto; height:auto !important;">'),r+=u+="</div>";break;case"EMBED_OEMBED_GOOGLE_PHOTO_IMAGE":var h="<div ";for(attr in a)/src/i.test(attr)||""!=attr&&""!=a[attr]&&(h+=" "+attr+'="'+a[attr]+'"');h+=" >",""!=i&&(h+='<img src="'+t+'" style=" max-width:100% !important; max-height:100% !important; width:auto; height:auto;">'),r+=h+="</div>";break;default:var m={content:""};jQuery(document).trigger("bwg_display_embed",[m,e,t,i,a]),r=m.content}return r}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 r=jQuery("input[name=update_flag]:checked").val();a=encodeURI(jQuery("#autogallery_image_number").val())}jQuery("#bulk_embed").hide(),jQuery("#loading_div").show();var o=[],_={action:"addInstagramGallery",instagram_user:i,instagram_access_token:e,whole_post:t,autogallery_image_number:a,update_flag:r,async:!0};jQuery.post(bwg_ajax_url_nonce,_,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=JSON.parse(e),response_JSON){if("error"==response_JSON[0])return alert("Error: "+JSON.parse(e)[1]),jQuery("#loading_div").hide(),s&&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];o.push(_)}return bwg_add_image(o,"instagram"),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_slideshow_filmstrip_thumbnail_timer=!1;window.bwg_slideshow_filmstrip_thumb={};var bwg_params=[],bwg_params_ib=[],bwg_params_carousel=[];function bwg_remove_lazy_loader_icon(){1==bwg_objectsL10n.lazy_load&&jQuery("img.bwg_lazyload").Lazy({afterLoad:function(){jQuery(".lazy_loader").removeClass("lazy_loader")},onFinishedAll:function(){jQuery(".lazy_loader").removeClass("lazy_loader")}})}function bwg_main_ready(e){var t=e.data("bwg");1===e.data("scroll")&&(form_id="gal_front_form_"+t,jQuery("html, body").animate({scrollTop:jQuery("#"+form_id).offset().top-150},500)),bwg_remove_lazy_loader_icon(),0<e.find(".wd_error").length&&bwg_container_loaded(t);var i=e.find(".bwg-container");if("album"===e.data("is-album")&&i.hasClass("bwg-thumbnails"))var a="thumbnails";else a=e.data("gallery-type");switch(bwg_document_ready(e),a){case"thumbnails":case"thumbnails_masonry":case"album_compact_preview":case"album_masonry_preview":case"album_extended_preview":bwg_all_thumnails_loaded(i);break;case"thumbnails_mosaic":bwg_thumbnail_mosaic(i);break;case"slideshow":bwg_slideshow_ready(t);break;case"carousel":bwg_carousel_ready(t),bwg_carousel_onload(e);break;case"image_browser":bwg_image_browser_ready(e);break;case"blog_style":bwg_blog_style_ready(e)}}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_tags_button_section_visibility(){jQuery('div[id^="bwg_container1_"]').each(function(){var e=jQuery(this),t=e.find(".current_view").val(),i=e.find(".show_bottom_tag").val(),a=e.find(".bwg_tags_container_"+t+" .bwg_tag_button_view_container");if(a.length)var r=a[0].scrollHeight;var _=a.find(".bwg_tags_filter_buttons").outerHeight(!0),s=parseInt(2*a.find(".bwg_tags_filter_buttons").outerHeight(!0)+3);s<r?(0===jQuery(this).find(".see_all_tags.bwg_hide").length&&a.css({"min-height":_,"max-height":s,overflow:"hidden"}),a.next(".bwg_tag_button_see_all").show()):(a.css({"min-height":"auto","max-height":"100%",height:"auto",overflow:"visible"}),a.next(".bwg_tag_button_see_all").hide());var o=a.next().find(".see_all_tags").width()/2;a.next().find(".see_all_tags").attr("style","margin-left: -"+o+"px"),a.next().find(".see_all_tags").off("click").on("click",function(){jQuery(this).hasClass("bwg_show")?(jQuery(this).removeClass("bwg_show").addClass("bwg_hide").html("<span>−</span>"+bwg_objectsL10n.bwg_tag_see_less),a.css({"min-height":"auto","max-height":"100%",height:"auto",overflow:"visible"})):jQuery(this).hasClass("bwg_hide")&&(jQuery(this).removeClass("bwg_hide").addClass("bwg_show").html("<span>+</span>"+bwg_objectsL10n.bwg_tag_see_all),a.css({"min-height":_,"max-height":s,overflow:"hidden"}))}),1==i&&(jQuery(this).find(".see_all_tags").removeClass("bwg_show").addClass("bwg_hide").html("<span>−</span>"+bwg_objectsL10n.bwg_tag_see_less),a.css({"min-height":"auto","max-height":"100%",height:"auto",overflow:"visible"}))})}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(t){var e=t.data("bwg");bwg_container_loaded(e);var i=!1;t.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"),!i)return i=!0,setTimeout(function(){i=!1},100),bwg_gallery_box(e,t.closest(".bwg_container")),!1}),jQuery(".bwg_lightbox_"+e+" .bwg_ecommerce").on("click",function(e){if(e.stopPropagation(),!i)return i=!0,setTimeout(function(){i=!1},100),bwg_gallery_box(t.attr("data-image-id"),t.closest(".bwg_container"),!0),!1});var a=window.location.hash.substring(1);a&&"-1"!=a.indexOf("bwg")&&(bwg_hash_array=a.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).data("bwg"),jQuery(".bwg_slideshow[data-bwg="+bwg+"]")[0].offsetHeight&&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_carousel_focus(){jQuery(".bwg_carousel").each(function(){bwg=jQuery(this).data("bwg"),jQuery(".bwg_carousel[data-bwg="+bwg+"]")[0].offsetHeight&&jQuery(".bwg_carousel_image_container_"+bwg).length&&jQuery(".bwg_ctrl_btn_"+bwg).hasClass("bwg-icon-pause")&&bwg_params_carousel[bwg].carousel.start()})}function bwg_slideshow_blur(e){jQuery(".bwg_slideshow").each(function(){bwg=jQuery(this).data("bwg"),!e&&jQuery(".bwg_slideshow[data-bwg="+bwg+"]")[0].offsetHeight||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_blur(e){jQuery(".bwg_carousel").each(function(){bwg=jQuery(this).data("bwg"),!e&&jQuery(".bwg_carousel[data-bwg="+bwg+"]")[0].offsetHeight||jQuery(".bwg_carousel_image_container_"+bwg).length&&void 0!==bwg_params_carousel[bwg]&&bwg_params_carousel[bwg].carousel.pause()})}function bwg_carousel_ready(t){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(e){bwg_params_carousel[t].carousel.prev(),e.stopPropagation(),e.stopImmediatePropagation()}),jQuery("#spider_carousel_right-ico_"+t).on("click",function(e){bwg_params_carousel[t].carousel.next(),e.stopPropagation(),e.stopImmediatePropagation()}),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");jQuery("#bwg_carousel-container"+e).length&&(bwg_carousel_params(e,!0),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(e){var t=e.data("bwg"),i=e.find(".bwg_carousel-container"+t);i.length&&(bwg_params_carousel[t]=i.data("params"),bwg_params_carousel[t].parent_width=0,bwg_carousel_watermark(t),bwg_carousel_params(t,!1),bwg_container_loaded(t))}function bwg_carousel_params(t,e){var i=jQuery("#bwg_container1_"+t).parent();i.hasClass("elementor-tab-content")&&i.width(i.closest(".elementor-widget-wrap").width());var a=i.width(),r=1;a<bwg_params_carousel[t].carousel_r_width?r=a/bwg_params_carousel[t].carousel_r_width:a=bwg_params_carousel[t].carousel_r_width,bwg_params_carousel[t].parent_width!=a&&(bwg_params_carousel[t].parent_width=a,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*r),e.width((e.height()-96)*e.attr("data-width")/e.attr("data-height")+16)):(e.width(bwg_params_carousel[t].image_width*r),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*r,height:bwg_params_carousel[t].image_height*r}),jQuery(".bwg_carousel_watermark_text_"+t+", .bwg_carousel_watermark_text_"+t+":hover").css({fontSize:a*(bwg_params_carousel[t].watermark_font_size/bwg_params_carousel[t].image_width)*r}),jQuery(".bwg_carousel-image "+t).css({width:bwg_params_carousel[t].image_width*r,height:bwg_params_carousel[t].image_height*r}),jQuery(".bwg_carousel_watermark_container_"+t).css({width:bwg_params_carousel[t].image_width*r,height:bwg_params_carousel[t].image_height*r}),jQuery(".bwg_carousel_embed_video_"+t).css({width:bwg_params_carousel[t].image_width*r,height:bwg_params_carousel[t].image_height*r}),jQuery(".bwg_carousel_watermark_spun_"+t).css({width:bwg_params_carousel[t].image_width*r,height:bwg_params_carousel[t].image_height*r}),jQuery(".bwg_carousel-container"+t).css({width:a,height:bwg_params_carousel[t].image_height*r}),jQuery(".bwg_video_hide"+t).css({width:bwg_params_carousel[t].image_width*r,height:bwg_params_carousel[t].image_height*r}),bwg_params_carousel[t].carousel&&!e||(e&&bwg_params_carousel[t].carousel&&bwg_params_carousel[t].carousel.pause(),bwg_params_carousel[t].carousel=jQuery("#bwg_carousel"+t).featureCarousel({containerWidth:a*r,containerHeight:bwg_params_carousel[t].image_height*r,fit_containerWidth:bwg_params_carousel[t].carousel_fit_containerWidth,largeFeatureWidth:bwg_params_carousel[t].image_width*r,largeFeatureHeight:bwg_params_carousel[t].image_height*r,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_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(i){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=[];var e=".bwg_slideshow_filmstrip_"+i,t="bwg_slideshow_filmstrip_thumbnail_"+i;bwg_slideshow_filmstrip_thumb[t]={},bwg_slideshow_filmstrip_thumb[t].next_prev_index=0;var a=!1;2==bwg_params[i].slideshow_filmstrip_type&&(a=!0,e=".bwg_slideshow_filmstrip_fix_count_"+i),bwg_container_loaded(i);var r=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))%r.length:r.length-1,r,"",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)%r.length,r,"",i),!1});var _=/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),1==bwg_params[i].slideshow_filmstrip_type&&("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 s=/Firefox/i.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel";jQuery(e).bind(s,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});var o={bwg:i,params:bwg_params[i],slideshow_filmstrip_class_name:e};if(jQuery(".bwg_slideshow_filmstrip_right_"+i).on(_,function(){1==a?!1===bwg_slideshow_filmstrip_thumbnail_timer&&(bwg_slideshow_filmstrip_thumbnail_timer=!0,bwg_slideshow_filmstrip_next(o),setTimeout(function(){bwg_slideshow_filmstrip_thumbnail_timer=!1},505)):bwg_slideshow_filmstrip_next(o)}),jQuery(".bwg_slideshow_filmstrip_left_"+i).on(_,function(){1==a?!1===bwg_slideshow_filmstrip_thumbnail_timer&&(bwg_slideshow_filmstrip_thumbnail_timer=!0,bwg_slideshow_filmstrip_prev(o),setTimeout(function(){bwg_slideshow_filmstrip_thumbnail_timer=!1},505)):bwg_slideshow_filmstrip_prev(o)}),"width"==bwg_params[i].width_or_height?bwg_set_filmstrip_pos(jQuery(e).width(),i):bwg_set_filmstrip_pos(jQuery(e).height(),i),jQuery("#bwg_slideshow_play_pause_"+i).off(_).on(_,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"),jQuery("#instagram-embed-"+i).hide(),"undefined"!=typeof instgrm&&void 0!==instgrm.Embeds){var l=jQuery(".bwg_embed_frame_"+i),n=l.data("height");l.css({display:"none"}),instgrm.Embeds.process(),jQuery(".bwg_embed_frame_"+i+" #instagram-embed-"+i).css({"max-height":n+"px"}),l.css({display:"inline-block"})}}}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(e){var t=e.data("bwg");bwg_container_loaded(t),jQuery(".image_browser_images_conteiner_"+t).length&&(bwg_params_ib[t]=JSON.parse(jQuery(".image_browser_images_conteiner_"+t).attr("data-params")),setTimeout(function(){bwg_image_browser(t)},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("bwg-hidden"),jQuery(e).parent().find(".bwg_search_loupe_container1").removeClass("bwg-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)})}),jQuery(".bwg_container").each(function(){var e=jQuery(this).data("bwg");0<jQuery(this).find(".wd_error").length&&bwg_container_loaded(e)}),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_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 s=100/_,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"),r=e.data("height");""!=a&&""!=r||(a=e.width(),r=e.height());var _=a/r;i.width()/i.height()>a/r?(i.width()>a?e.css({width:"100%",height:i.width()/_}):e.css({maxWidth:"100%",height:i.width()/_}),a=i.width(),r=i.width()/_):(i.height()>r?e.css({height:"100%",width:i.height()*_,maxWidth:"initial"}):e.css({maxHeight:"100%",width:i.height()*_,maxWidth:"initial"}),r=i.height(),a=i.height()*_),jQuery(this).find(".bwg-item2").css({marginLeft:(t.width()-a)/2,marginTop:(t.height()-r)/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"),i=jQuery(this).find(".bwg-item1"),a=0<t.width()?t.width():i.width(),r=0<t.height()?t.height():i.height(),_=e.data("width"),s=e.data("height");""!=_&&""!=s&&void 0!==_&&void 0!==s||(_=e.width(),s=e.height());var o=_/s;e.removeAttr("style"),o<a/r?(_<a?e.css({width:"100%",height:a/o}):e.css({maxWidth:"100%",height:Math.ceil(a/o)}),s=(_=a)/o):(r>e.height()?e.css({height:"100%",width:r*o,maxWidth:"initial"}):e.css({maxHeight:"100%",width:r*o,maxWidth:"initial"}),_=(s=r)*o),jQuery(this).find(".bwg-item2").css({marginLeft:(a-_)/2,marginTop:(r-s)/2})}),bwg_container_loaded(jQuery(e).data("bwg"))}function bwg_thumbnail_masonry(e){var t="#bwg_thumbnails_masonry_"+(bwg=jQuery(e).attr("data-bwg"));jQuery("#bwg_album_masonry_"+bwg).length&&(t="#bwg_album_masonry_"+bwg),0===jQuery(".bwg-container-temp"+bwg).length&&(jQuery(t).clone().appendTo("#bwg_container3_"+bwg).removeAttr("id").removeClass("bwg-container-"+bwg).addClass("bwg-container-temp"+bwg),jQuery(".bwg-container-temp"+bwg).empty());var a=jQuery(".bwg-container-temp"+bwg),r=jQuery(t),_=a;if(a.prepend(r.html()),_.find(".bwg-empty-item").remove(),"horizontal"==_.data("masonry-type")){var s=_.data("thumbnail-height"),o=_.data("max-count"),l=[];for(i=0;i<o;i++)l.push(0);_.find(".bwg-item").each(function(){var e=l.indexOf(Math.min.apply(Math,l));jQuery(this).css({height:s,order:e+1}),l[e]+=jQuery(this)[0].getBoundingClientRect().width});var n=Math.max.apply(Math,l);for(_.width(n),i=0;i<o;i++)l[i]<n&&_.append(jQuery('<div class="bwg-item bwg-empty-item"></div>').css({height:s,order:i+1,width:n-l[i]}))}else{_.removeAttr("style");n=_.width();var g=_.data("thumbnail-width"),b=_.data("thumbnail-border"),w=(_.data("thumbnail-padding"),o=_.data("max-count"),parseInt(n/g)+("0"==_.data("resizable-thumbnails")?0:1));o<w&&(w=o);var d=_.find(".bwg-item").length;d<w&&(w=d);var u,h,m=100/w,c=[];for(i=0;i<w;i++)c.push(0);_.find(".bwg-item").each(function(){var e=c.indexOf(Math.min.apply(Math,c)),t=jQuery(this).find("img");if(jQuery(this).css({width:m+"%",order:e+1}),void 0!==t.data("src")&&-1===t.data("src").indexOf("svg")&&0<t.attr("data-width").length&&0<t.attr("data-height").length){h=parseInt(t.data("width"))/parseInt(t.data("height")),u=t.width()/h;var i=(this.querySelector("a .bwg-zoom-effect-overlay .bwg-title2")||!this.querySelector("a .bwg-title1 .bwg-title2")?0:this.querySelector("a .bwg-title1 .bwg-title2").getClientRects()[0].height)+(0<jQuery(this).find(".bwg-masonry-thumb-description").length?jQuery(this).find(".bwg-masonry-thumb-description").height():0);jQuery(this).height(Math.floor(u+i+2*b))}c[e]+=jQuery(this)[0].getBoundingClientRect().height});var p=Math.max.apply(Math,c);for(i=0;i<w;i++)c[i]<p&&_.append(jQuery('<div class="bwg-item bwg-empty-item"></div>').css({width:m+"%",order:i+1,height:p-c[i]}));_.outerWidth(w*(g+2*b)),_.height(p)}if(""!=a.html()){r.outerWidth(w*(g+2*b)),"0"!=p?(r.css("opacity","1"),r.height(p)):r.css("opacity","0"),r.empty();var y=a.html();r.append(y),r.find(".bwg_lazyload").each(function(){null!=jQuery(this).data("src")&&""!=jQuery(this).data("src")&&(jQuery(this).attr("src",jQuery(this).data("src")),jQuery(this).on("load",function(){jQuery(this).removeClass("lazy_loader")}))}),a.empty().hide()}bwg_container_loaded(_.data("bwg"))}function bwg_container_loaded(e){jQuery("#gal_front_form_"+e).removeClass("bwg-hidden"),jQuery("#ajax_loading_"+e).addClass("bwg-hidden"),jQuery(".bwg_container img").removeAttr("width").removeAttr("height")}function bwg_thumbnail_mosaic_logic(e){var t=e.attr("data-bwg"),i=e.attr("data-block-id"),a=parseInt(e.attr("data-thumb-padding"))/2,_=parseInt(e.attr("data-thumb-border"))+a;if("horizontal"==e.attr("data-mosaic-direction")){var r=parseInt(e.attr("data-height"));if("1"==e.attr("data-resizable"))if(1920<=jQuery(window).width())var s=(1+jQuery(window).width()/1920)*r;else if(jQuery(window).width()<=640)s=jQuery(window).width()/640*r;else s=r;else s=r;(p=jQuery(".bwg_mosaic_thumb_"+t)).each(function(e){var t=jQuery(this).data("width"),i=jQuery(this).data("height");""!=t&&""!=i&&void 0!==t&&void 0!==i||(t=p.get(e).naturalWidth,i=p.get(e).naturalHeight),t=t*s/i,p.eq(e).css({cssText:"width:"+t+"px !important; height:"+s+"px !important;"})});var o=jQuery("#bwg_mosaic_thumbnails_div_"+t).width()/100*parseInt(e.attr("data-total-width"));jQuery("#"+i).width(o);var l=s+2*_,n=0,g=[];g[0]=0;var b=[],w=b[0]=0;p.each(function(e){row_cum_width2=w+p.eq(e).width()+2*_,row_cum_width2-o<0?(w=row_cum_width2,g[e]=n,b[n]++):e!==p.length-1?Math.abs(w-o)>Math.abs(row_cum_width2-o)||Math.abs(w-o)<=Math.abs(row_cum_width2-o)&&0==b[n]?e!==p.length-2?(w=row_cum_width2,g[e]=n,b[n]++,b[++n]=0,w=0):(w=row_cum_width2,g[e]=n,b[n]++):(b[++n]=1,g[e]=n,w=row_cum_width2-w):(w=row_cum_width2,g[e]=n,b[n]++)});for(var d=[],u=[],h=0;h<=n;h++)w=0,p.each(function(e){g[e]==h&&(w+=p.eq(e).width())}),d[h]=z=(o-2*b[h]*_)/w,u[h]=(l-2*_)*d[h]+2*_;if(0==n)for(h=0;h<=n;h++)u[h]>s&&(d[h]=1,u[h]=l);(O=[])[0]=0;var m=[],c=[];m[0]=0,c[0]=0;for(h=1;h<=n;h++)m[h]=m[0],c[h]=c[h-1]+u[h-1];p.each(function(e){var t=p.eq(e).width(),i=p.eq(e).height(),a=t*d[g[e]],r=i*d[g[e]];p.eq(e).css({cssText:"width:"+a+"px !important; height:"+r+"px !important;"}),p.eq(e).parent().css({top:c[g[e]],left:m[g[e]]}),m[g[e]]+=t*d[g[e]]+2*_,O[g[e]]=e}),jQuery("#"+i).height(c[n]+u[n]-c[0])}else{var p,y=parseInt(e.attr("data-width"));if("1"==e.attr("data-resizable")){if(1920<=jQuery(window).width())var f=(1+jQuery(window).width()/1920)*y;else if(jQuery(window).width()<=640)f=jQuery(window).width()/640*y;else f=y;if(0<jQuery(".header-content-with_tab").length)f=jQuery(".header-content-with_tab").width()/4-10}else f=y;(p=jQuery(".bwg_mosaic_thumb_"+t)).each(function(e){jQuery(this).removeAttr("style"),jQuery(this).parent().removeAttr("style");var t=jQuery(this).data("width"),i=jQuery(this).data("height");""!=t&&""!=i&&void 0!==t&&void 0!==i||(t=p.get(e).naturalWidth,i=p.get(e).naturalHeight),p.eq(e).css({cssText:"width:"+f+"px !important; height:"+i*f/t+"px !important;"})});o=jQuery("#bwg_mosaic_thumbnails_div_"+t).width()/100*parseInt(e.attr("data-total-width"));jQuery("#"+i).width(o);var j=f+2*_<o?f:o-2*_,Q=Math.min(Math.floor(o/(j+2*_)),p.length),v=[];v[0]=0;for(var x=[],k=[],z=0;z<Q;z++)k[z]=0,x[z]=0;p.each(function(e){for(var t=0,i=k[0],a=0;a<Q;a++)i>k[a]&&(i=k[a],t=a);v[e]=t,x[t]++,H=i,T=0+t*(j+2*_),p.eq(e).parent().css({top:H,left:T}),k[t]+=p.eq(e).height()+2*_}),(d=[])[0]=1;var C=0,I=[],E=0,M=0;for(z=0;z<Q;z++)C+=j,I[z]=0,p.each(function(e){v[e]==z&&(I[z]+=p.eq(e).height())}),0!=I[z]&&(E+=j/I[z],M+=j*x[z]*2*_/I[z]);var S=0;0!=E&&(S=(C+M)/E);for(z=0;z<Q;z++)0!=I[z]&&(d[z]=(S-2*x[z]*_)/I[z]);var O,T=[];T[0]=0;for(z=1;z<=Q;z++)T[z]=T[z-1]+j*d[z-1]+2*_;var H=[];for(z=0;z<Q;z++)H[z]=0;(O=[])[0]=0,p.each(function(e){var t=p.eq(e).width(),i=p.eq(e).height(),a=t*d[v[e]],r=i*d[v[e]];p.eq(e).css({cssText:"width:"+a+"px !important; height:"+r+"px !important;"}),p.eq(e).parent().css({top:H[v[e]],left:T[v[e]]}),H[v[e]]+=i*d[v[e]]+2*_,O[v[e]]=e}),jQuery("#"+i).width(T[Q]).height(H[0])}}function bwg_thumbnail_mosaic(e){var t=jQuery(e),i=jQuery.Deferred();if(i.done([bwg_thumbnail_mosaic_logic]).done(function(e){"1"!=e.data("mosaic-thumb-transition")&&jQuery(".bwg_mosaic_thumb_spun_"+t).css({transition:"all 0.3s ease 0s","-webkit-transition":"all 0.3s ease 0s"});var t=e.data("bwg");jQuery(".bwg_mosaic_thumbnails_"+t).css({visibility:"visible"}),jQuery(".tablenav-pages_"+t).css({visibility:"visible"}),bwg_container_loaded(t),jQuery(".bwg_mosaic_thumb_"+t).removeClass("bwg-hidden"),jQuery("#bwg_mosaic_thumbnails_div_"+t).removeClass("bwg-hidden")}),i.resolve(t),"hover"==t.attr("data-image-title")){var a=parseInt(t.attr("data-thumb-padding"))/2,r=parseInt(t.attr("data-thumb-border"))+a;bwg_mosaic_title_on_hover(t.data("bwg"),t,r)}"hover"==t.attr("data-ecommerce-icon")&&(jQuery(".bwg_mosaic_thumb_spun_"+bwg).on("mouseenter",function(){var e=jQuery(this).parents(".bwg-mosaic-thumb-span").children(".bwg_mosaic_thumb_"+bwg).width(),t=jQuery(this).parents(".bwg-mosaic-thumb-span").children(".bwg_mosaic_thumb_"+bwg).height();jQuery(this).children(".bwg_ecommerce_spun1_"+bwg).width(e);var i=jQuery(this).children(".bwg_ecommerce_spun1_"+bwg).width(),a=jQuery(this).children(".bwg_ecommerce_spun1_"+bwg).height();jQuery(this).children(".bwg_ecommerce_spun1_"+bwg).css({top:r+.5*t-.5*a,left:r+.5*e-.5*i,opacity:1})}),jQuery(".bwg_mosaic_thumb_spun_"+bwg).on("mouseleave",function(){jQuery(this).children(".bwg_ecommerce_spun1_"+bwg).css({top:0,left:-1e4,opacity:0,padding:t.attr("data-title-margin")})}))}function bwg_mosaic_title_on_hover(t,e,i){jQuery(".bwg-mosaic-thumb-span").on("mouseenter",function(){var e=jQuery(this).children(".bwg_mosaic_thumb_"+t).width();jQuery(this).find(".bwg_mosaic_title_spun1_"+t).width(e),jQuery(this).find(".bwg_mosaic_title_spun1_"+t).css({opacity:1,"max-height":"calc(100% - "+2*i+"px)",overflow:"hidden"})}),jQuery(".bwg-mosaic-thumb-span").on("mouseleave",function(){jQuery(this).find(".bwg_mosaic_title_spun1_"+t).css({opacity:0,padding:e.attr("data-title-margin"),"max-height":"calc(100% - "+2*i+"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+"]"))}),jQuery(".bwg_container").each(function(){var e=jQuery(this).data("bwg");0<jQuery(this).find(".wd_error").length&&bwg_container_loaded(e)})}function bwg_add_album(){var t=!1;"1"!=bwg_objectsL10n.front_ajax&&jQuery(document).off("click",".bwg-album").on("click",".bwg-album",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(document).on("click",".bwg_lightbox .bwg-item0, .bwg_lightbox .bwg_slide, .bwg_lightbox .bwg-carousel-image, .bwg_lightbox .bwg-title1",function(e){e.stopPropagation(),e.preventDefault();var t=jQuery(this).closest("a");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="",a="",r=(a=jQuery(e).parent().parent().hasClass("bwg_tag_buttons_view")?jQuery(e).parent().parent():jQuery(e).parent().parent().parent()).find(".current_view").val(),_=a.find(".form_id").val(),s=a.find(".cur_gal_id").val(),o=a.find(".album_gallery_id").val(),l=a.find(".type").val();jQuery(e).parent().find(".opt.selected").each(function(){i=i+jQuery(e).text()+","}),""==(i=i.slice(0,-1))&&(i=bwg_objectsL10n.bwg_select_tag),jQuery(e).parent().find(".CaptionCont").attr("title",i),jQuery(e).parent().find(".CaptionCont .placeholder").html(i);var n=jQuery(".bwg_tags_container_"+r+" #bwg_tag_id_"+s).val();t="string"==typeof n&&""!==n?n.split(","):[],"object"==typeof n&&(t=n),jQuery(".bwg_tags_container_"+r+" #bwg_tag_id_"+r).val(t),bwg_select_tag(r,_,s,o,l,!1)}function bwg_document_ready(i){bwg_add_lightbox(),i.data("right-click-protection")&&bwg_disable_right_click(i);var e=i.find(".search_tags");if("1"==bwg_objectsL10n.front_ajax&&e.length)for(var t=0;t<e[0].length;t++)void 0===e[0][t].attributes.selected&&(e[0][t].selected=!1);e.length&&(e.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]}),e.off("change").on("change",function(){bwg_filter_by_tag(this)})),bwg_search_tag_init(i);var a=i.find(".cur_gal_id").val(),r=i.find(".current_view").val(),_=i.find(".bwg_tags_container_"+r+" .bwg_tag_button_view_container"),s=i.find("#bwg_tag_id_"+a),o=parseInt(2*_.find(".bwg_tags_filter_buttons").outerHeight(!0));_.length&&(_.find(".bwg_tags_filter_buttons").off("click").on("click",function(){if(!jQuery(this).hasClass("active")){var e=jQuery(this).position().top;o<e&&i.find(".show_bottom_tag").val("1"),""==s.val()?s.val(jQuery(this).val()):s.val(s.val()+","+jQuery(this).val()),bwg_filter_by_tag(this)}return!1}),_.find(".bwg_all_tags").off("click").on("click",function(){return jQuery(this).hasClass("active")||(s.val(""),bwg_filter_by_tag(this)),!1}),""!=s.val()&&_.find(".bwg_all_tags").removeClass("active"),s.val().split(",").forEach(function(t){_.find(".bwg_tags_filter_buttons").each(function(){if(jQuery(this).val()==t){var e=jQuery(this).position().top;o<e&&i.find(".show_bottom_tag").val("1")}})}),bwg_tags_button_section_visibility());var l=i.find(".bwg_order");l.length&&l.SumoSelect({triggerChangeCombined:!0,forceCustomRendering:!0}),jQuery(".SumoSelect > .CaptionCont > label > i").addClass("bwg-icon-angle-down closed"),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("bwg-hidden"),jQuery(this).find(".bwg_search_reset_container").addClass("bwg-hidden"))}),jQuery(".search_tags").on("sumo:opened",function(){var e=jQuery(this).parents(".bwg_container").height(),t=jQuery(this).parents(".bwg_container").find(".wd_error").length,i=jQuery(this).parents(".bwg_container").find(".SumoSelect>.optWrapper>.options");void 0!==i&&(e-50<i.height()&&!t&&i.css("max-height",e-50));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 n=window.location.hash.substring(1);if(n&&"-1"!=n.indexOf("bwg")){bwg_hash_array=n.replace("bwg","").split("/");var g=jQuery(".bwg_container");g&&bwg_gallery_box(bwg_hash_array[1],g,!1,bwg_hash_array[0])}bwg_resize_search_line()}function bwg_search_tag_init(e){var t=e.find(".search_tags");if("1"==bwg_objectsL10n.front_ajax&&t.length)for(var i=0;i<t[0].length;i++)void 0===t[0][i].attributes.selected&&(t[0][i].selected=!1);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)}))}function bwg_clear_search_input(e){if("1"!=bwg_objectsL10n.front_ajax)jQuery("#bwg_search_input_"+e).val(""),jQuery("#bwg_search_container_1_"+e+" .bwg_search_loupe_container1").addClass("bwg-hidden"),jQuery("#bwg_search_container_1_"+e+" .bwg_search_reset_container").addClass("bwg-hidden");else{var t=window.location.href,i=bwg_remove_url_parameter("bwg_search_"+e,t,t);window.location.replace(i)}}function bwg_check_search_input_enter(e,t){return"Enter"!=t.key||(jQuery(e).closest(".bwg_search_container_1").find(".bwg_search").trigger("click"),!1)}function bwg_ajax(t,i,a,r,e,_,s,o,l,n,g,b){if("1"!=bwg_objectsL10n.front_ajax||!0===n){jQuery("#ajax_loading_"+i).removeClass("bwg-hidden"),jQuery(".bwg_load_more_ajax_loading").css({top:jQuery("#bwg_container1_"+bwg).height()-jQuery(".bwg_load_more_ajax_loading").height()}),"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"),d=0;if(void 0===n)n=!1;var u,h=jQuery("#page_number_"+i).val(),m=jQuery("#bwg_search_input_"+i).val(),c={},p=jQuery("#bwg_album_breadcrumb_"+i).val();if(p&&!0!==n){var y=JSON.parse(p);if("back"==r){y.splice(-1,1);var f=y.slice(-1)[0];r=f.id,h=f.page,c["action_"+i]="back"}else"numeric"===n||s?(y.splice(-1,1),y.push({id:r,page:h,search:m})):(y.push({id:r,page:1}),h=1);c["bwg_album_breadcrumb_"+i]=JSON.stringify(y)}if(c["bwg-preview-type"]=jQuery("#"+t).data("gallery-type"),c.gallery_type=jQuery("#"+t).data("gallery-type"),c.gallery_id=jQuery("#"+t).data("gallery-id"),c.tag=jQuery("#"+t).data("tag"),c.album_id=jQuery("#"+t).data("album-id"),c.theme_id=jQuery("#"+t).data("theme-id"),c.shortcode_id=jQuery("#"+t).data("shortcode-id"),c.bwg=i,c.current_url=encodeURI(jQuery("#bwg_container1_"+i).data("current-url")),s&&(h=1),void 0===o||""==o)o="";if(void 0===g||""==g)g="";if(void 0===l||""==l)l=jQuery(".bwg_order_"+i).val();if(void 0===b)b=!0;if(1==b&&jQuery("html, body").animate({scrollTop:jQuery("#"+t).offset().top-150},500),c["page_number_"+i]=h,c["bwg_load_more_"+i]=jQuery("#bwg_load_more_"+i).val(),c["album_gallery_id_"+i]=r,c["type_"+i]=_,c["title_"+i]=o,c["description_"+i]=g,c["sortImagesByValue_"+i]=l,c["bwg_random_seed_"+i]=jQuery("#bwg_random_seed_"+i).val(),0<jQuery("#bwg_search_input_"+i).length&&(c["bwg_search_"+i]=jQuery("#bwg_search_input_"+i).val()),void 0!==c["bwg_album_breadcrumb_"+i]){var j=JSON.parse(c["bwg_album_breadcrumb_"+i]);jQuery.each(j,function(e,t){c["bwg_search_"+i]="",r==t.id&&(c["bwg_search_"+i]=t.search)})}var Q=jQuery(".bwg_tags_container_"+i+" #bwg_tag_id_"+a).val();return u="string"==typeof Q&&""!==Q?Q.split(","):[],"object"==typeof Q&&(u=Q),c["bwg_tag_id_"+a]=u,jQuery("#ajax_loading_"+i).removeClass("bwg-hidden"),jQuery(".bwg_load_more_ajax_loading").css({top:jQuery("#bwg_container1_"+bwg).height()-jQuery(".bwg_load_more_ajax_loading").height()}),jQuery.ajax({type:"POST",url:w,data:c,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()):a=="bwg_thumbnails_masonry_"+i?jQuery(".bwg-container-temp"+i).append(jQuery(e).closest(".bwg-container-"+i).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),bwg_remove_lazy_loader_icon()},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()}),""==u&&(u=[]),jQuery(".bwg_tags_container_"+i+" #bwg_tag_id_"+a).val(u),u.forEach(function(t){jQuery(".bwg_tags_container_"+i+" .bwg_tags_filter_buttons").each(function(){var e=parseInt(2*jQuery(this).outerHeight(!0));jQuery(this).val()==t&&(jQuery(this).addClass("active"),e<jQuery(this).position().top&&jQuery(".bwg_tags_container_"+i+" .show_bottom_tag").val("1"),jQuery(".bwg_tags_container_"+i+" .bwg_all_tags").removeClass("active"))})}),jQuery(".pagination-links_"+i).length&&jQuery("html, body").animate({scrollTop:jQuery("#"+t).offset().top-150},500),bwg_document_ready(jQuery("#bwg_container1_"+i));var e=jQuery("#bwg_container1_"+i).data("gallery-type");if(jQuery("#bwg_container1_"+i+" .bwg-album-thumbnails").length){bwg_all_thumnails_loaded(".bwg-container-"+i)&&bwg_container_loaded(i)}else{switch(e){case"thumbnails":case"thumbnails_masonry":case"album_compact_preview":case"album_masonry_preview":case"album_extended_preview":bwg_all_thumnails_loaded(".bwg-container-"+i);break;case"slideshow":bwg_slideshow_ready(i);break;case"carousel":bwg_carousel_ready(i),bwg_carousel_onload(jQuery("#bwg_container1_"+i));break;case"image_browser":bwg_image_browser_ready(jQuery("#bwg_container1_"+i));break;case"blog_style":bwg_blog_style_ready(jQuery("#bwg_container1_"+i))}bwg_mosaic_ajax(i,d)}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(c["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();jQuery("#bwg_container2_"+i+" .cur_gal_id").val();""==u&&(u=[]),jQuery(".bwg_tags_container_"+i+" #bwg_tag_id_"+i).val(u)}}),!1}if("back"===r)return-1==document.referrer.indexOf(window.location.host)?(str=jQuery(location).attr("href"),void window.location.replace(str.substring(0,str.indexOf("type_0")))):void window.history.back();var v=jQuery("#bwg_search_input_"+i).val(),x=jQuery(".bwg_tags_container_"+i+" .cur_gal_id").val(),k=window.location.href,z="",C=jQuery(".bwg_tags_container_"+i+" #bwg_tag_id_"+x).val();if(jQuery(".bwg_tags_container_"+i).parent().hasClass("bwg_tag_select_view")&&(C=C.toString()),"#"==k.substr(-1)&&(k=k.slice(0,-1)),""!==v&&void 0!==v?!1!==(z=bwg_add_url_parameter(z=bwg_remove_url_parameter("page_number_"+i,k),"bwg_search_"+i,v))&&(k=z):!1!==(z=bwg_remove_url_parameter("bwg_search_"+i,k))&&(k=z),void 0!==l&&""!==l&&!1!==(z=bwg_add_url_parameter(k,"sort_by_"+i,l))&&(k=z),null!=C&&0<C.length){var I="",E=C.split(",");jQuery.each(E,function(e){var t=",";e===E.length-1&&(t=""),I+=E[e]+t}),""!==I&&!1!==(z=bwg_add_url_parameter(k,"filter_tag_"+i,I))&&(k=z)}else!1!==(z=bwg_remove_url_parameter("filter_tag_"+i,z))&&(k=z);window.location.href=k}function bwg_add_url_parameter(e,t,i){var a=new RegExp("([?&])"+t+"=.*?(&|$)","i"),r=-1!==e.indexOf("?")?"&":"?";return e.match(a)?e.replace(a,"$1"+t+"="+i+"$2"):e+r+t+"="+i}function bwg_remove_url_parameter(e,t){var i=t.split("?"),a=i[0]+"?",r="";if(void 0!==i[1]&&(r=i[1]),""===r)return t;var _,s,o=decodeURIComponent(r).split("&");for(s=0;s<o.length;s++)(_=o[s].split("="))[0]!=e&&(a=a+_[0]+"="+_[1]+"&");return a.substring(0,a.length-1)}function bwg_select_tag(e,t,i,a,r,_){_&&jQuery(".bwg_tags_container_"+e+" #bwg_tag_id_"+i).val(""),bwg_ajax(t,e,i,a,"",r,1,"")}function bwg_cube(e,t,i,a,r,_,s,o,l,n,g){var b,w=!1,d="";if(void 0!==g&&""!==g){w=!0,bwg_params[g].bwg_trans_in_progress=!0,d="_"+g,b=bwg_params[g].bwg_transition_duration;bwg_params[g].event_stack}else b=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 u(){if(jQuery(o).removeAttr("style"),jQuery(l).removeAttr("style"),jQuery(".bwg_slider"+d).removeAttr("style"),jQuery(o).css({opacity:0,"z-index":1}),jQuery(l).css({opacity:1,"z-index":2}),jQuery(".bwg_image_info").show(),jQuery(o).html(""),w){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{e="";gallery_box_data.bwg_trans_in_progress=!1;t=gallery_box_data.event_stack}if(void 0!==t&&0<t.length){var i=t[0].split("-");t.shift(),bwg_change_image(i[0],i[1],e,!0,g)}bwg_change_watermark_container()}w?(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,backfaceVisibility:"hidden",transform:"translateY("+i+"px) translateX("+t+"px) rotateY("+r+"deg) rotateX("+a+"deg)"}),jQuery(".bwg_slider"+d).css({transform:"translateZ(-"+e+"px)",transformStyle:"preserve-3d"}),setTimeout(function(){jQuery(".bwg_slider"+d).css({transition:"all "+b+"ms ease-in-out",transform:"translateZ(-"+e+"px) rotateX("+_+"deg) rotateY("+s+"deg)"})},20),jQuery(".bwg_slider"+d).one("webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend",jQuery.proxy(u)),0==b&&u()}function bwg_cubeH(e,t,i,a){var r=jQuery(e).width()/2;"right"==i?bwg_cube(r,r,0,0,90,0,-90,e,t,i,a):"left"==i&&bwg_cube(r,-r,0,0,-90,0,90,e,t,i,a)}function bwg_cubeV(e,t,i,a){var r=jQuery(e).height()/2;"right"==i?bwg_cube(r,0,-r,90,0,-90,0,e,t,i,a):"left"==i&&bwg_cube(r,0,r,-90,0,90,0,e,t,i,a)}function bwg_fade(e,t,i,a){var r,_=!1;function s(){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("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(s))):(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(""),s()}}),jQuery(e).fadeTo(r,0),jQuery(t).fadeTo(r,1)),0==r&&s()}function bwg_grid(e,t,i,a,r,_,s,o,l,n,g){var b,w=!1,d="";if(event_stack=void 0!==g&&""!==g?(w=!0,bwg_params[g].bwg_trans_in_progress=!0,d="_"+g,b=bwg_params[g].bwg_transition_duration,bwg_params[g].event_stack):(b=bwg_transition_duration,gallery_box_data.bwg_trans_in_progress=!0,gallery_box_data.event_stack),!bwg_testBrowser_cssTransitions())return bwg_fallback(o,l,n);w?(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+d).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+d).removeClass("bwg_slideshow_dots_deactive_"+g).addClass("bwg_slideshow_dots_active_"+g)):(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"));var u=b/(e+t);var h=jQuery(o).find("img"),m=jQuery(o).find("figure"),c=(jQuery(o).find("iframe").css("opacity",0),jQuery('<span style="display: block;" />').addClass("bwg_grid"+d));jQuery(o).prepend(c);var p,y,f,j,Q,v,x,k,z,C,I,E=jQuery(".bwg_slide_bg"+d),M=h.width(),S=h.height(),O=E.width(),T=E.height(),H=Math.floor(O/e),L=Math.floor(T/t),A=O-e*H,B=Math.ceil(A/e),W=T-t*L,D=Math.ceil(W/t),R=0,F=Math.ceil((jQuery(".bwg_slide_bg"+d).width()-h.width())/2),N=void 0===h.attr("src")?"":h.attr("src");a="min-auto"===(a="auto"===a?O:a)?-O:a,r="min-auto"===(r="auto"===r?T:r)?-T:r;for(var P=0;P<e;P++){var U=0,V=Math.floor((jQuery(".bwg_slide_bg"+d).height()-h.height())/2),q=H;if(0<A){var J=B<=A?B:A;q+=J,A-=J}for(var G=0;G<t;G++){var Y=L,$=W;0<$&&(Y+=J=D<=$?D:W,$-=J),c.append((p=q,y=Y,f=U,j=V,Q=R,v=F,x=N,k=M,z=S,C=g,void 0,I=(P+G)*u,jQuery('<span class="bwg_gridlet'+d+'" />').css({display:"block",width:p,height:y,top:f,left:Q,backgroundImage:'url("'+x+'")',backgroundColor:w?jQuery(".bwg_slideshow_image_wrap_"+C).css("background-color"):jQuery(".spider_popup_wrap").css("background-color"),backgroundRepeat:"no-repeat",backgroundPosition:v+"px "+j+"px",backgroundSize:k+"px "+z+"px",transition:"all "+b+"ms ease-in-out "+I+"ms",transform:"none"}))),U+=Y,V-=Y}F-=q,R+=q}var X=c.children().last();function K(){if(jQuery(o).css({opacity:0,"z-index":1}),jQuery(l).css({opacity:1,"z-index":2}),h.css("opacity",1),m.css("opacity",1),c.remove(),w){bwg_params[g].bwg_trans_in_progress=!1;var e=bwg_params[g].event_stack,t=bwg_params[g].data}else{gallery_box_data.bwg_trans_in_progress=!1;e=gallery_box_data.event_stack,t=""}if(jQuery(".bwg_image_info").show(),jQuery(o).html(""),void 0!==e&&0<e.length){var i=e[0].split("-");e.shift(),bwg_change_image(i[0],i[1],t,!0,g)}w?bwg_change_watermark_container(g):bwg_change_watermark_container()}c.show(),h.css("opacity",0),m.css("opacity",0),c.children().first().addClass("rs-top-left"),c.children().last().addClass("rs-bottom-right"),c.children().eq(t-1).addClass("rs-bottom-left"),c.children().eq(-t).addClass("rs-top-right"),setTimeout(function(){c.children().css({opacity:s,transform:"rotate("+i+"deg) translateX("+a+"px) translateY("+r+"px) scale("+_+")"})},1),jQuery(l).css("opacity",1),jQuery(X).one("webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend",jQuery.proxy(K)),0==b&&K()}function bwg_sliceH(e,t,i,a){if("right"==i)var r="min-auto";else if("left"==i)r="auto";bwg_grid(1,8,0,r,0,1,0,e,t,i,a)}function bwg_sliceV(e,t,i,a){if("right"==i)var r="min-auto";else if("left"==i)r="auto";bwg_grid(10,1,0,0,r,1,0,e,t,i,a)}function bwg_slideV(e,t,i,a){if("right"==i)var r="auto";else if("left"==i)r="min-auto";bwg_grid(1,1,0,0,r,1,1,e,t,i,a)}function bwg_slideH(e,t,i,a){if("right"==i)var r="min-auto";else if("left"==i)r="auto";bwg_grid(1,1,0,r,0,1,1,e,t,i,a)}function bwg_scaleOut(e,t,i,a){bwg_grid(1,1,0,0,0,1.5,0,e,t,i,a)}function bwg_scaleIn(e,t,i,a){bwg_grid(1,1,0,0,0,.5,0,e,t,i,a)}function bwg_blockScale(e,t,i,a){bwg_grid(8,6,0,0,0,.6,0,e,t,i,a)}function bwg_kaleidoscope(e,t,i,a){bwg_grid(10,8,0,0,0,1,0,e,t,i,a)}function bwg_fan(e,t,i,a){if("right"==i)var r=45,_=100;else if("left"==i)r=-45,_=-100;bwg_grid(1,10,r,_,0,1,0,e,t,i,a)}function bwg_blindV(e,t,i,a){bwg_grid(1,8,0,0,0,.7,0,e,t,"",a)}function bwg_blindH(e,t,i,a){bwg_grid(10,1,0,0,0,.7,0,e,t,"",a)}function bwg_random(e,t,i,a){var r=["sliceH","sliceV","slideH","slideV","scaleOut","scaleIn","blockScale","kaleidoscope","fan","blindH","blindV"];this["bwg_"+r[Math.floor(Math.random()*r.length)]](e,t,i,a)}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 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"+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+o&&(o=0),0<n+s&&(s=0),"left"==a?jQuery(".bwg"+_+"_filmstrip_thumbnails"+r).animate({left:n+o},{duration:500,complete:function(){void 0!==i&&bwg_disable_lightbox_filmstrip_left_right_arrow(i)}}):jQuery(".bwg"+_+"_filmstrip_thumbnails"+r).animate({top:n+s},{duration:500,complete:function(){void 0!==i&&bwg_disable_lightbox_filmstrip_left_right_arrow(i)}})}function bwg_slideshow_filmstrip_fix_dimension(e){var t,i,a,r,_,s,o=void 0!==e&&""!==e?"_"+e:"",l=void 0!==e&&""!==e?"_slideshow":"",n=void 0!==e&&""!==e&&void 0!==bwg_params[e].outerWidth_or_outerHeight?bwg_params[e].outerWidth_or_outerHeight:gallery_box_data.outerWidth_or_outerHeight,g=void 0!==e&&""!==e&&void 0!==bwg_params[e].left_or_top?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,r="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),_=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,r="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),_=jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).position().top,Math.abs(jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).position().top)+t),i<t||(a<Math.abs(_)?"left"==g?jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).animate({left:-a},{duration:500}):jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).animate({top:-a},{duration:500}):s<r&&("left"==g?jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).animate({left:-(r-t)},{duration:500}):jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).animate({top:-(r-t)},{duration:500})))}function bwg_slideshow_filmstrip_fix_count(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_fix_count"+o).outerWidth(!0),jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).outerWidth(!0)):(t=jQuery(".bwg"+l+"_filmstrip_fix_count"+o).outerHeight(!0),jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).outerHeight(!0)),s="left"==g?(a=jQuery(".bwg"+l+"_thumb_active"+o).position().left,r="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),_=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,r="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),_=jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).position().top,Math.abs(jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).position().top)+t),i<t||(a<Math.abs(_)?"left"==g?jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).animate({left:-a},{duration:500}):jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).animate({top:-a},{duration:500}):s<r&&("left"==g?jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).animate({left:-(r-t)},{duration:500}):jQuery(".bwg"+l+"_filmstrip_thumbnails"+o).animate({top:-(r-t)},{duration:500})))}function bwg_resize_slideshow_filmstrip_fix_count(e){var _=e.bwg,t=e.parent_width,i=e.params,a=i.filmstrip_direction,r=i.data,s=i.filmstrip_thumb_margin_hor,o=jQuery(window).width()<=767&&5<i.slideshow_thumbnails_count,l=o?5:i.slideshow_thumbnails_count,n="#bwg_container1_"+_+" #bwg_container2_"+_+" .bwg_slideshow_filmstrip_container_"+_,g="#bwg_container1_"+_+" #bwg_container2_"+_+" .bwg_slideshow_filmstrip_fix_count_"+_,b="#bwg_container1_"+_+" #bwg_container2_"+_+" .bwg_slideshow_filmstrip_fix_count_"+_+" .bwg_slideshow_filmstrip_thumbnails_"+_,w="#bwg_container1_"+_+" #bwg_container2_"+_+" .bwg_slideshow_filmstrip_fix_count_"+_+" .bwg_slideshow_filmstrip_thumbnails_"+_+" .bwg_slideshow_filmstrip_thumbnail_"+_,d="#bwg_container1_"+_+" #bwg_container2_"+_+" .bwg_slideshow_image_container_"+_,u=jQuery(d).data("filmstrip-position"),h=(jQuery(d).data("filmstrip-size"),i.slideshow_filmstrip_rl_btn_size);if(jQuery("#bwg_container1_"+_).css({width:"100%"}),jQuery("#bwg_container1_"+_+" #bwg_container2_"+_).css({width:t}),"undefined"==typeof resize_in_progress||!1===resize_in_progress){window.resize_in_progress=!0,void 0!==m&&clearTimeout(m);var m=setTimeout(function(){resize_in_progress=!1;var e={};"bottom"==u||"top"==u?e.left=0:e.top=0,jQuery(b).css(e);var t="horizontal"==a?"table-cell":"block";jQuery(n).find(".bwg_slideshow_filmstrip_left_"+_).css({display:"none"}),jQuery(n).find(".bwg_slideshow_filmstrip_left_disabled_"+_).css({display:t}),jQuery(n).find(".bwg_slideshow_filmstrip_right_"+_).css({display:t}),jQuery(n).find(".bwg_slideshow_filmstrip_right_disabled_"+_).css({display:"none"})},500)}if(bwg_resize_instagram_post(_),bwg_change_watermark_container(_),"horizontal"==a){var c=i.image_height/i.image_width,p=t-40,y=Math.round(c*p),f=(p-s*l)/l,j=Math.round(c*f);jQuery(n).css({width:t,height:j}),jQuery(g).css({width:p,height:j}),jQuery(w).css({width:f,height:j}),jQuery.each(r,function(e,t){var i=f,a=j;if(""!=t.image_width&&""!=t.image_height){var r=Math.max(f/t.image_width,j/t.image_height);i=t.image_width*r,a=t.thumb_height*r}""!=t.thumb_width&&""!=t.thumb_height&&(i=t.thumb_width,a=t.thumb_height);i*=r=Math.max(f/i,j/a),a*=r;jQuery(".bwg_slideshow_filmstrip_fix_count_"+_+" .bwg_slideshow_filmstrip_thumbnail_"+_+" .bwg_slideshow_filmstrip_thumbnail_img_"+_).css({width:f,height:j,"margin-left":0,"margin-top":0})}),jQuery(b).css({width:f*r.length+s*r.length,height:j}),jQuery(".bwg_slideshow_image_wrap_"+_).css({width:t,height:t*i.image_height/i.image_width}),(Q={width:t,height:t*(i.image_height/i.image_width)-j})[u]=j,jQuery(".bwg_slideshow_image_container_"+_).css(Q),jQuery(".bwg_slideshow_image_"+_).css({cssText:"max-width:"+t+"px !important; max-height:"+(t*(i.image_height/i.image_width)-j)+"px !important;"}),jQuery(".bwg_slideshow_embed_"+_).css({cssText:"width:"+t+"px !important; height:"+(t*(i.image_height/i.image_width)-j)+"px !important;"}),jQuery(".bwg_embed_frame_"+_).css({"max-width":t+"px","max-height":t*(i.image_height/i.image_width)-j+"px"}),jQuery(".bwg_embed_frame_"+_).attr("data-width",t),jQuery(".bwg_embed_frame_"+_).attr("data-height",t*(i.image_height/i.image_width)-j),j<h&&(h=j),jQuery(n).find(".bwg-icon-angle-left").css({"font-size":h}),jQuery(n).find(".bwg-icon-angle-right").css({"font-size":h})}else{var Q,v=t*i.image_height/i.image_width;c=i.image_width/i.image_height,y=v-40,p=Math.round(c*y),j=(y-s*l)/l,f=Math.round(c*j);jQuery.each(r,function(e,t){var i=f,a=j;if(""!=t.image_width&&""!=t.image_height){var r=Math.max(f/t.image_width,j/t.image_height);i=t.image_width*r,a=t.thumb_height*r}""!=t.thumb_width&&""!=t.thumb_height&&(i=t.thumb_width,a=t.thumb_height);r=Math.max(f/i,j/a),i*=r,a*=r;jQuery(".bwg_slideshow_filmstrip_fix_count_"+_+" .bwg_slideshow_filmstrip_thumbnail_"+_+" .bwg_slideshow_filmstrip_thumbnail_img_"+_).css({width:f,height:j,"margin-left":0,"margin-top":0})}),jQuery(n).css({width:f,height:v}),jQuery(g).css({width:f,height:y}),jQuery(b).css({width:f,height:j*r.length+s*r.length}),jQuery(w).css({width:f,height:j}),jQuery(".bwg_slideshow_image_wrap_"+_).css({width:t,height:v}),(Q={width:t-f,height:v})[u]=f,jQuery(d).css(Q),jQuery(".bwg_slideshow_image_"+_).css({cssText:"max-width:"+(t-f)+"px !important; max-height:"+v+"px !important;"}),jQuery(".bwg_slideshow_embed_"+_).css({cssText:"width:"+(t-f)+"px !important; height:"+v+"px !important;"}),jQuery(".bwg_embed_frame_"+_).css({"max-width":t-f+"px","max-height":v+"px"}),jQuery(".bwg_embed_frame_"+_).attr("data-width",t-f),jQuery(".bwg_embed_frame_"+_).attr("data-height",v),f<h&&(h=f),jQuery(n).find(".bwg-icon-angle-up").css({"font-size":h}),jQuery(n).find(".bwg-icon-angle-down").css({"font-size":h})}o&&(jQuery(n).find(".bwg-icon-angle-left").removeAttr("style"),jQuery(n).find(".bwg-icon-angle-right").removeAttr("style"),jQuery(n).find(".bwg-icon-angle-up").removeAttr("style"),jQuery(n).find(".bwg-icon-angle-down").removeAttr("style"))}function bwg_resize_slideshow_filmstrip_fix_dimension(e){var t=e.bwg,i=e.parent_width,a=e.params,r=a.filmstrip_direction,_=a.slideshow_filmstrip_width,s=a.slideshow_filmstrip_height,o="#bwg_container1_"+t+" #bwg_container2_"+t,l=o+" .bwg_slideshow_image_wrap_"+t,n=o+" .bwg_slideshow_image_container_"+t,g=o+" .bwg_slideshow_image_"+t,b=o+" .bwg_slideshow_embed_"+t,w=l+" .bwg_slideshow_filmstrip_container_"+t,d=w+" .bwg_slideshow_filmstrip_"+t,u=i,h=u*(a.image_height/a.image_width);jQuery(l).css({width:u,height:h}),jQuery(n).css({width:u-("horizontal"==r?0:_),height:h-("horizontal"==r?s:0)}),jQuery(g).css({display:"inline-block","max-width":u-("horizontal"==r?0:_),"max-height":h-("horizontal"==r?s:0)}),jQuery(b).css({cssText:"width: "+(u-("horizontal"==r?0:_))+"px !important; height: "+(h-("horizontal"==r?s:0)-1)+"px !important;"}),bwg_resize_instagram_post(t),bwg_change_watermark_container(t),"horizontal"==r?(jQuery(w).css({width:u}),jQuery(d).css({width:u-40})):(jQuery(w).css({height:h}),jQuery(d).css({height:h-40}))}function bwg_calculate_slideshow_filmstrip_thumbnail_size(e){var t=e.bwg,i=e.params,a=i.slideshow_filmstrip_width;if(2==i.slideshow_filmstrip_type){var r="#bwg_container1_"+t+" #bwg_container2_"+t+" .bwg_slideshow_filmstrip_fix_count_"+t+" .bwg_slideshow_filmstrip_thumbnail_"+t;a=(i.left_or_top,"width"==i.width_or_height?jQuery(r).width():jQuery(r).height())}return parseFloat(a)}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,s=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}):s<i&&jQuery(".bwg_slideshow_dots_thumbnails_"+e).animate({left:-(i-a)},{duration:500}))}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 s=2==jQuery(".bwg_slideshow_image_spun_"+r).css("zIndex")?".bwg_slideshow_image_spun_"+r:".bwg_slideshow_image_second_spun_"+r,o=s==".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"),b=jQuery(s).height(),w=jQuery(s).width(),d='<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(d+='<span style="height: '+b+"px; width: "+w+'px;" class="bwg_popup_embed bwg_popup_watermark">',g&&(d+='<span class="bwg_inst_play_btn_cont" onclick="bwg_play_instagram_video(this)"><span class="bwg_inst_play"></span></span>'),n){var u=jQuery(".bwg_embed_frame"),h=jQuery(".bwg_slideshow_image_container_"+r).width(),m=jQuery(".bwg_slideshow_image_container_"+r).height(),c=i[t].image_width,p=i[t].image_height,y=bwg_resizing_ratio(c,p,h,m);u.attr("data-width",h),u.attr("data-height",m);var f=y.width,j=y.height;f<j?f-=109:f+=109,d+=spider_display_embed(i[t].filetype,decodeURIComponent(i[t].image_url),i[t].filename,{class:"bwg_embed_frame","data-width":h,"data-height":m,"data-instagram-width":c,"data-instagram-height":p,style:"width: 100%; height: 100%; max-width: 100%; max-height: 100%; vertical-align:middle; display:inline-block; position:relative;"})}else d+=spider_display_embed(i[t].filetype,decodeURIComponent(i[t].image_url),i[t].filename,{class:"bwg_embed_frame",frameborder:"0",allowfullscreen:"allowfullscreen","data-max-width":w,"data-max-height":b,style:"width:inherit; height:inherit; vertical-align:middle; display:table-cell;"});d+="</span>"}else{if("do_nothing"!=bwg_params[r].thumb_click_action){var Q="";"open_lightbox"==bwg_params[r].thumb_click_action?Q+=' class="bwg_lightbox" data-image-id="'+i[t].id+'" data-elementor-open-lightbox="no"':"redirect_to_url"==bwg_params[r].thumb_click_action&&i[t].redirect_url&&(Q+='href="'+i[t].redirect_url+'"'+(bwg_params[r].thumb_link_target&&1==bwg_params[r].thumb_link_target?' target="_blank"':"")),d+="<a "+Q+">"}d+='<img style="max-height: '+b+"px !important; max-width: "+w+'px !important; display:inline-block;" ',d+=' class="bwg_slide bwg_slideshow_image_'+r+'" ',d+=' id="bwg_slideshow_image_'+r+'" ',d+=' src="'+bwg_params[r].upload_url+jQuery("<span style='display: block;' />").html(decodeURIComponent(i[t].image_url)).text()+'" alt="'+i[t].alt+'" image_id="'+i[t].id+'" /></a>'}d+="</span></span>",jQuery(o).html(d),bwg_params[r].preload_images&&bwg_preload_images(t,r),window["bwg_"+bwg_params[r].slideshow_effect](s,o,_,r),1==bwg_params[r].slideshow_filmstrip_type?bwg_slideshow_filmstrip_fix_dimension(r):2==bwg_params[r].slideshow_filmstrip_type?bwg_slideshow_filmstrip_fix_count(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();var v="horizontal"==bwg_params[r].filmstrip_direction?"table-cell":"block",x=jQuery(".bwg_slideshow_filmstrip_thumbnails_"+r+" .bwg_slideshow_thumb_active_"+r).prev(),k=jQuery(".bwg_slideshow_filmstrip_thumbnails_"+r+" .bwg_slideshow_thumb_active_"+r).next(),z=jQuery(".bwg_slideshow_filmstrip_container_"+r+" .bwg_slideshow_filmstrip_left_"+r),C=jQuery(".bwg_slideshow_filmstrip_container_"+r+" .bwg_slideshow_filmstrip_left_disabled_"+r),I=jQuery(".bwg_slideshow_filmstrip_container_"+r+" .bwg_slideshow_filmstrip_right_"+r),E=jQuery(".bwg_slideshow_filmstrip_container_"+r+" .bwg_slideshow_filmstrip_right_disabled_"+r);x.length?(z.css({display:v}),C.css({display:"none"})):(z.css({display:"none"}),C.css({display:v}),I.css({display:v}),E.css({display:"none"})),k.length?(I.css({display:v}),E.css({display:"none"})):(I.css({display:"none"}),E.css({display:v}),z.css({display:v}),C.css({display:"none"})),void 0!==i[t]&&"EMBED_OEMBED_INSTAGRAM_POST"==i[t].filetype&&"undefined"!=typeof instgrm&&void 0!==instgrm.Embeds&&(jQuery(".instagram-media").hide(),instgrm.Embeds.process(),jQuery(".instagram-media").css({"max-height":j+"px","min-width":f+"px !important"}),jQuery(".instagram-media").show())}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),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(decodeURIComponent(i[_].image_url)).text()))}else for(r=0;r<i.length;r++){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(decodeURIComponent(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=".bwg_slideshow_filmstrip_"+e;2==bwg_params[e].slideshow_filmstrip_type&&(t=".bwg_slideshow_filmstrip_fix_count_"+e);var i=jQuery("#bwg_container1_"+e).parent();i.hasClass("content-area")&&i.width(i.closest(".content-area").width()),i.hasClass("elementor-tab-content")&&i.width(i.closest(".elementor-widget-wrap").width());var a=i.width(),r=bwg_params[e].data;if(a>=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 _="horizontal"==bwg_params[e].filmstrip_direction?"width: "+bwg_params[e].image_width:"height: "+bwg_params[e].image_height,s="horizontal"==bwg_params[e].filmstrip_direction?"width: "+(bwg_params[e].image_width-40):"height: "+(bwg_params[e].image_height-40);if(jQuery(".bwg_slideshow_filmstrip_container_"+e).css({cssText:_}),jQuery(t).css({cssText:s}),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}),2==bwg_params[e].slideshow_filmstrip_type){var o=bwg_params[e].filmstrip_direction,l="#bwg_container1_"+e+" #bwg_container2_"+e;jQuery(l).removeAttr("style");var n=l+" .bwg_slideshow_filmstrip_container_"+e,g=bwg_params[e].slideshow_filmstrip_rl_btn_size,b=jQuery(".bwg_slideshow_filmstrip_fix_count_"+e).width();"horizontal"==o&&(b=jQuery(".bwg_slideshow_filmstrip_fix_count_"+e).height());var w="horizontal"==o?"table-cell":"block";jQuery(n).find(".bwg_slideshow_filmstrip_left_"+e).css({display:"none"}),jQuery(n).find(".bwg_slideshow_filmstrip_left_disabled_"+e).css({display:w}),jQuery(n).find(".bwg_slideshow_filmstrip_right_"+e).css({display:w}),jQuery(n).find(".bwg_slideshow_filmstrip_right_disabled_"+e).css({display:"none"}),b<g?(g=b,jQuery(n).find(".bwg-icon-angle-left").css({"font-size":g}),jQuery(n).find(".bwg-icon-angle-right").css({"font-size":g}),jQuery(n).find(".bwg-icon-angle-up").css({"font-size":g}),jQuery(n).find(".bwg-icon-angle-down").css({"font-size":g})):(jQuery(n).find(".bwg-icon-angle-left").removeAttr("style"),jQuery(n).find(".bwg-icon-angle-right").removeAttr("style"),jQuery(n).find(".bwg-icon-angle-up").removeAttr("style"),jQuery(n).find(".bwg-icon-angle-down").removeAttr("style"));var d=l+" .bwg_slideshow_filmstrip_thumbnails_"+e;jQuery(d).removeAttr("style"),jQuery(d+" .bwg_slideshow_filmstrip_thumbnail_"+e).each(function(e,t){jQuery(t).attr("style",jQuery(t).attr("data-style")),jQuery(t).find("img").attr("style",jQuery(t).attr("data-style"))});var u="#bwg_container1_"+e+" #bwg_container2_"+e+" .bwg_slideshow_image_container_"+e,h=(jQuery(u).data("filmstrip-position"),jQuery(u).data("filmstrip-size"));jQuery(u).css({filmstrip_position:h});var m="bwg_slideshow_filmstrip_thumbnail_"+e;window.bwg_slideshow_filmstrip_thumb[m].next_prev_index&&(window.bwg_slideshow_filmstrip_thumb[m].next_prev_index=0)}}else 1==bwg_params[e].slideshow_filmstrip_type&&bwg_resize_slideshow_filmstrip_fix_dimension({bwg:e,params:bwg_params[e],parent_width:a}),2==bwg_params[e].slideshow_filmstrip_type&&bwg_resize_slideshow_filmstrip_fix_count({bwg:e,params:bwg_params[e],parent_width:a}),jQuery(".bwg_slideshow_dots_container_"+e).css({width:a}),jQuery("#bwg_slideshow_play_pause-ico_"+e).css({fontSize:a*(bwg_params[e].slideshow_play_pause_btn_size/bwg_params[e].image_width)}),jQuery(".bwg_slideshow_watermark_image_"+e).css({maxWidth:a*(bwg_params[e].watermark_width/bwg_params[e].image_width),maxHeight:a*(bwg_params[e].watermark_height/bwg_params[e].image_width)}),jQuery(".bwg_slideshow_watermark_text_"+e+", .bwg_slideshow_watermark_text_"+e+":hover").css({fontSize:a*(bwg_params[e].watermark_font_size/bwg_params[e].image_width)}),jQuery(".bwg_slideshow_title_text_"+e).css({fontSize:2*a*bwg_params[e].slideshow_title_font_size/bwg_params[e].image_width}),jQuery(".bwg_slideshow_description_text_"+e).css({fontSize:2*a*bwg_params[e].slideshow_description_font_size/bwg_params[e].image_width});r[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){var t=!1;if(void 0!==e&&""!==e){if(jQuery(".inner_instagram_iframe_bwg_embed_frame_"+e).length){t=!0;var i=jQuery("#instagram-embed-"+e),a=jQuery(".bwg_slideshow_embed_"+e),r=jQuery(".bwg_embed_frame_"+e),_=void 0!==a.width()?a.width():jQuery(".bwg_slideshow_embed_"+e).width(),s=void 0!==a.height()?a.height():jQuery(".bwg_slideshow_embed_"+e).height(),o=r.data("instagram-width"),l=r.data("instagram-height");bwg_change_watermark_container(e)}}else if(jQuery(".inner_instagram_iframe_bwg_embed_frame").length){t=!0;i=jQuery(".instagram-media"),r=jQuery(".bwg_embed_frame"),_=jQuery(".bwg_image_container").width(),s=jQuery(".bwg_image_container").height(),o=r.data("instagram-width"),l=r.data("instagram-height");bwg_change_watermark_container()}if(!0===t){var n=bwg_resizing_ratio(o,l,_,s);r.attr("data-width",_),r.attr("data-height",s);var g=n.width;g<n.height?g-=109:g+=109,r.css({width:"100%",height:"100%","max-width":_,"max-height":s}),i.css({"min-width":g+"px !important","max-height":s+"px"})}}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")}function bwg_resizing_ratio(e,t,i,a){var r=[i/e,a/t];return{width:e*(r=Math.min(r[0],r[1])),height:t*r}}function bwg_slideshow_filmstrip_next(e){var t=e.bwg,i=e.params,a=e.slideshow_filmstrip_class_name,r=bwg_calculate_slideshow_filmstrip_thumbnail_size({bwg:t,params:i}),_="bwg_slideshow_filmstrip_thumbnail_"+t,s="#bwg_container1_"+t+" #bwg_container2_"+t+" .bwg_slideshow_filmstrip_left_"+t,o="#bwg_container1_"+t+" #bwg_container2_"+t+" .bwg_slideshow_filmstrip_left_disabled_"+t,l="#bwg_container1_"+t+" #bwg_container2_"+t+" .bwg_slideshow_filmstrip_right_"+t,n="#bwg_container1_"+t+" #bwg_container2_"+t+" .bwg_slideshow_filmstrip_right_disabled_"+t,g="horizontal"==i.filmstrip_direction?"table-cell":"block";"left"==i.left_or_top?"width"==i.width_or_height?(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().left>=-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).width()-jQuery(a).width())&&(jQuery(s).css({display:g}),jQuery(o).css({display:"none"}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().left<-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).width()-jQuery(a).width()-(parseInt(i.filmstrip_thumb_margin_hor)+r))?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).animate({left:-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).width()-jQuery(a).width())},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).animate({left:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().left-(parseInt(i.filmstrip_thumb_margin_hor)+r)},500,"linear")),window.setTimeout(function(){parseInt(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().left)==-parseInt(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).width()-jQuery(a).width())?(jQuery(l).css({display:"none"}),jQuery(n).css({display:g})):(jQuery(l).css({display:g}),jQuery(n).css({display:"none"}))},510)):(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().left>=-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).height()-jQuery(a).height())&&(jQuery(s).css({display:g}),jQuery(o).css({display:"none"}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().left<-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).height()-jQuery(a).height()-(parseInt(i.filmstrip_thumb_margin_hor)+r))?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).animate({left:-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).height()-jQuery(a).height())},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).animate({left:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().left-(parseInt(i.filmstrip_thumb_margin_hor)+r)},500,"linear")),window.setTimeout(function(){parseInt(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().left)==-parseInt(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).height()-jQuery(a).height())?(jQuery(l).css({display:"none"}),jQuery(n).css({display:g})):(jQuery(l).css({display:g}),jQuery(n).css({display:"none"}))},510)):"width"==i.width_or_height?(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().top>=-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).width()-jQuery(a).width())&&(jQuery(s).css({display:g}),jQuery(o).css({display:"none"}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().top<-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).width()-jQuery(a).width()-parseInt(i.filmstrip_thumb_margin_hor)+r)?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).animate({top:-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).width()-jQuery(a).width())},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).animate({top:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().top-parseInt(i.filmstrip_thumb_margin_hor)+r},500,"linear")),window.setTimeout(function(){parseInt(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().top)==-parseInt(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).width()-jQuery(a).width())?(jQuery(l).css({display:"none"}),jQuery(n).css({display:g})):(jQuery(l).css({display:g}),jQuery(n).css({display:"none"}))},510)):(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().top>=-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).height()-jQuery(a).height())&&(jQuery(s).css({display:g}),jQuery(o).css({display:"none"}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().top<-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).height()-jQuery(a).height()-(parseInt(i.filmstrip_thumb_margin_hor)+r))?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).animate({top:-(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).height()-jQuery(a).height())},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).animate({top:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().top-(parseInt(i.filmstrip_thumb_margin_hor)+r)},500,"linear")),window.setTimeout(function(){parseInt(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().top)==-parseInt(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).height()-jQuery(a).height())?(jQuery(l).css({display:"none"}),jQuery(n).css({display:g})):(jQuery(l).css({display:g}),jQuery(n).css({display:"none"}))},510)),bwg_slideshow_filmstrip_thumb[_].next_prev_index=bwg_slideshow_filmstrip_thumb[_].next_prev_index+1}function bwg_slideshow_filmstrip_prev(e){var t=e.bwg,i=e.params,a=bwg_calculate_slideshow_filmstrip_thumbnail_size({bwg:t,params:i}),r="bwg_slideshow_filmstrip_thumbnail_"+t,_="#bwg_container1_"+t+" #bwg_container2_"+t+" .bwg_slideshow_filmstrip_left_"+t,s="#bwg_container1_"+t+" #bwg_container2_"+t+" .bwg_slideshow_filmstrip_left_disabled_"+t,o="#bwg_container1_"+t+" #bwg_container2_"+t+" .bwg_slideshow_filmstrip_right_"+t,l="#bwg_container1_"+t+" #bwg_container2_"+t+" .bwg_slideshow_filmstrip_right_disabled_"+t,n="horizontal"==i.filmstrip_direction?"table-cell":"block";"left"==i.left_or_top?(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().left<0&&(jQuery(o).css({display:n}),jQuery(l).css({display:"none"}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().left>-(i.filmstrip_thumb_margin_hor+a)?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).animate({left:0},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).animate({left:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().left+parseInt(i.filmstrip_thumb_margin_hor)+a},500,"linear")),window.setTimeout(function(){0==parseInt(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().left)?(jQuery(_).css({display:"none"}),jQuery(s).css({display:n})):(jQuery(_).css({display:n}),jQuery(s).css({display:"none"}))},510)):(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().top<0&&(jQuery(o).css({display:n}),jQuery(l).css({display:"none"}),jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().top>-(i.filmstrip_thumb_margin_hor+a)?jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).animate({top:0},500,"linear"):jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).animate({top:jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().top+parseInt(i.filmstrip_thumb_margin_hor)+a},500,"linear")),window.setTimeout(function(){0==parseInt(jQuery(".bwg_slideshow_filmstrip_thumbnails_"+t).position().top)?(jQuery(_).css({display:"none"}),jQuery(s).css({display:n})):(jQuery(_).css({display:n}),jQuery(s).css({display:"none"}))},510)),bwg_slideshow_filmstrip_thumb[r].next_prev_index=bwg_slideshow_filmstrip_thumb[r].next_prev_index-1}jQuery(function(){function i(e){bwg_slideshow_blur(e),bwg_carousel_blur(e),0<jQuery(".bwg_play_pause").length&&window.clearInterval(gallery_box_data.bwg_playInterval)}function a(e){e&&bwg_main_ready(e),bwg_slideshow_focus(),bwg_carousel_focus(),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)}var r=!1;jQuery(".bwg_container").each(function(){if(0<jQuery(this).find(".wd_error").length&&(r=!0),!r){var e=jQuery(this);if(e[0].offsetHeight)var t=0;else t=1;setInterval(function(){e[0].offsetHeight?1==t&&(t=0,a(e)):0==t&&i(!(t=1))},200)}}),r||jQuery(window).focus(function(){a()}).blur(function(){i(!0)})}),jQuery(window).on("resize",function(){setTimeout(function(){var e=!1;jQuery(".bwg_container").each(function(){0<jQuery(this).find(".wd_error").length&&(e=!0)}),bwg_tags_button_section_visibility(),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()},0)}),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)});
|
photo-gallery.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Photo Gallery
|
4 |
* Plugin URI: https://10web.io/plugins/wordpress-photo-gallery/?utm_source=photo_gallery&utm_medium=free_plugin
|
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.6.
|
7 |
* Author: Photo Gallery Team
|
8 |
* Author URI: https://10web.io/plugins/?utm_source=photo_gallery&utm_medium=free_plugin
|
9 |
* Text Domain: photo-gallery
|
@@ -106,8 +106,8 @@ final class BWG {
|
|
106 |
$this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
|
107 |
$this->front_url = $this->plugin_url;
|
108 |
$this->main_file = plugin_basename(__FILE__);
|
109 |
-
$this->plugin_version = '1.6.
|
110 |
-
$this->db_version = '1.6.
|
111 |
$this->prefix = 'bwg';
|
112 |
$this->nicename = __('Photo Gallery', 'photo-gallery');
|
113 |
require_once($this->plugin_dir . '/framework/WDWLibrary.php');
|
@@ -853,7 +853,7 @@ final class BWG {
|
|
853 |
for ( $c = 0; $c < 150; $c++ ) {
|
854 |
$x = rand( 0, $cap_width - 1 );
|
855 |
$y = rand( 0, 29 );
|
856 |
-
$col =
|
857 |
imagesetpixel( $canvas, $x, $y, $col );
|
858 |
}
|
859 |
header( 'Expires: Mon, 26 Jul 1997 05:00:00 GMT' );
|
3 |
* Plugin Name: Photo Gallery
|
4 |
* Plugin URI: https://10web.io/plugins/wordpress-photo-gallery/?utm_source=photo_gallery&utm_medium=free_plugin
|
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.6.8
|
7 |
* Author: Photo Gallery Team
|
8 |
* Author URI: https://10web.io/plugins/?utm_source=photo_gallery&utm_medium=free_plugin
|
9 |
* Text Domain: photo-gallery
|
106 |
$this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
|
107 |
$this->front_url = $this->plugin_url;
|
108 |
$this->main_file = plugin_basename(__FILE__);
|
109 |
+
$this->plugin_version = '1.6.8';
|
110 |
+
$this->db_version = '1.6.8';
|
111 |
$this->prefix = 'bwg';
|
112 |
$this->nicename = __('Photo Gallery', 'photo-gallery');
|
113 |
require_once($this->plugin_dir . '/framework/WDWLibrary.php');
|
853 |
for ( $c = 0; $c < 150; $c++ ) {
|
854 |
$x = rand( 0, $cap_width - 1 );
|
855 |
$y = rand( 0, 29 );
|
856 |
+
$col = imagecolorallocate($canvas, rand( 0, 255 ), rand( 0, 255 ), rand( 0, 255 ));
|
857 |
imagesetpixel( $canvas, $x, $y, $col );
|
858 |
}
|
859 |
header( 'Expires: Mon, 26 Jul 1997 05:00:00 GMT' );
|
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: 4.6
|
5 |
Tested up to: 6.0
|
6 |
-
Stable tag: 1.6.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -282,6 +282,9 @@ Choose whether to display random or the first/last specific number of images.
|
|
282 |
|
283 |
== Changelog ==
|
284 |
|
|
|
|
|
|
|
285 |
= 1.6.7 =
|
286 |
* Improved: Updated external libraries.
|
287 |
* Fixed: Security vulnerability.
|
@@ -298,6 +301,8 @@ Choose whether to display random or the first/last specific number of images.
|
|
298 |
|
299 |
= 1.6.4 =
|
300 |
* Fixed: Image upload error.
|
|
|
|
|
301 |
* Improved: Allow WEBP file format.
|
302 |
* Improved: Bulk actions for all images except one.
|
303 |
* Fixed: Images duplication in Add Images popup.
|
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: 4.6
|
5 |
Tested up to: 6.0
|
6 |
+
Stable tag: 1.6.8
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
282 |
|
283 |
== Changelog ==
|
284 |
|
285 |
+
= 1.6.8 =
|
286 |
+
* Fixed: Security vulnerability.
|
287 |
+
|
288 |
= 1.6.7 =
|
289 |
* Improved: Updated external libraries.
|
290 |
* Fixed: Security vulnerability.
|
301 |
|
302 |
= 1.6.4 =
|
303 |
* Fixed: Image upload error.
|
304 |
+
|
305 |
+
= 1.6.4 =
|
306 |
* Improved: Allow WEBP file format.
|
307 |
* Improved: Bulk actions for all images except one.
|
308 |
* Fixed: Images duplication in Add Images popup.
|