Version Description
- Added: 10Web Booster integration
- Improved: Updated Views and Widgets
Download this release
Release Info
Developer | 10web |
Plugin | Photo Gallery by WD – Responsive Photo Gallery |
Version | 1.7.0 |
Comparing to | |
See all releases |
Code changes from version 1.6.10 to 1.7.0
- admin/controllers/Galleries.php +3 -0
- admin/controllers/Options.php +7 -9
- admin/controllers/Speed.php +523 -0
- admin/controllers/Themes.php +72 -0
- admin/models/Speed.php +8 -0
- admin/views/AdminView.php +25 -7
- admin/views/Albums.php +4 -7
- admin/views/Galleries.php +23 -15
- admin/views/Options.php +222 -277
- admin/views/Shortcode.php +3 -26
- admin/views/Speed.php +300 -0
- admin/views/Themes.php +2 -137
- admin/views/Widget.php +3 -5
- admin/views/WidgetSlideshow.php +5 -12
- css/bwg_frontend.css +149 -15
- css/bwg_speed.css +993 -0
- css/images/information.svg +12 -0
- css/styles.min.css +1 -1
- framework/WDWLibrary.php +13 -26
- frontend/controllers/controller.php +3 -0
- frontend/models/BWGModelShare.php +37 -0
- frontend/views/BWGViewAlbum_masonry_preview.php +257 -0
- frontend/views/BWGViewBlog_style.php +506 -0
- frontend/views/BWGViewDownload_gallery.php +57 -0
- frontend/views/BWGViewGalleryBox.php +2 -10
- frontend/views/BWGViewShare.php +87 -0
- frontend/views/BWGViewSlideshow.php +3 -3
- frontend/views/BWGViewThumbnails_masonry.php +369 -0
- frontend/views/BWGViewThumbnails_mosaic.php +361 -0
- frontend/views/BWGViewWidget.php +207 -0
- images/check_green_bg.svg +13 -0
- images/gallery_list_img_green.png +0 -0
- images/instagram-connect.png +0 -0
- images/speed/close_dark.svg +10 -0
- images/speed/close_error.svg +12 -0
- images/speed/desktop.svg +15 -0
- images/speed/google_spinner.svg +8 -0
- images/speed/information.svg +12 -0
- images/speed/loader_small.svg +4 -0
- images/speed/loader_small_grey.svg +4 -0
- images/speed/mobile.svg +15 -0
- images/speed/success.svg +13 -0
- js/bwg.js +2 -0
- js/bwg_frontend.js +102 -0
- js/bwg_gallery_box.js +19 -25
- js/bwg_shortcode.js +13 -33
- js/bwg_speed.js +387 -0
- js/circle-progress.js +552 -0
- js/scripts.min.js +1 -1
- photo-gallery.php +140 -56
- readme.txt +9 -14
- update.php +1 -3
admin/controllers/Galleries.php
CHANGED
@@ -371,6 +371,9 @@ class GalleriesController_bwg {
|
|
371 |
$params['facebook_post_gallery'] = (!$params['instagram_post_gallery']) ? ($params['row']->gallery_type == 'facebook_post' ? TRUE : FALSE) : FALSE;
|
372 |
$params['gallery_type'] = ($params['row']->gallery_type == 'instagram' || $params['row']->gallery_type == 'instagram_post') ? 'instagram' : (($params['row']->gallery_type == 'facebook_post' || $params['row']->gallery_type == 'facebook') ? 'facebook' : $params['row']->gallery_type);
|
373 |
|
|
|
|
|
|
|
374 |
// Image display params.
|
375 |
$params['actions'] = WDWLibrary::image_actions( $params['gallery_type'] );
|
376 |
$params['page_url'] = $params['form_action'];
|
371 |
$params['facebook_post_gallery'] = (!$params['instagram_post_gallery']) ? ($params['row']->gallery_type == 'facebook_post' ? TRUE : FALSE) : FALSE;
|
372 |
$params['gallery_type'] = ($params['row']->gallery_type == 'instagram' || $params['row']->gallery_type == 'instagram_post') ? 'instagram' : (($params['row']->gallery_type == 'facebook_post' || $params['row']->gallery_type == 'facebook') ? 'facebook' : $params['row']->gallery_type);
|
373 |
|
374 |
+
$params['booster_is_active'] = ( is_plugin_active('tenweb-speed-optimizer/tenweb_speed_optimizer.php') ) ? TRUE : FALSE;
|
375 |
+
$params['booster_page_url'] = add_query_arg(array( 'page' => 'speed_' . BWG()->prefix ), admin_url('admin.php'));
|
376 |
+
|
377 |
// Image display params.
|
378 |
$params['actions'] = WDWLibrary::image_actions( $params['gallery_type'] );
|
379 |
$params['page_url'] = $params['form_action'];
|
admin/controllers/Options.php
CHANGED
@@ -215,15 +215,13 @@ class OptionsController_bwg {
|
|
215 |
echo WDWLibrary::message_id(0, __('Item Succesfully Saved.', 'photo-gallery'));
|
216 |
}
|
217 |
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
wp_schedule_event(time(), 'bwg_autoupdate_interval', 'bwg_schedule_event_hook');
|
226 |
-
}
|
227 |
}
|
228 |
}
|
229 |
|
215 |
echo WDWLibrary::message_id(0, __('Item Succesfully Saved.', 'photo-gallery'));
|
216 |
}
|
217 |
|
218 |
+
// Clear hook for scheduled events.
|
219 |
+
wp_clear_scheduled_hook('bwg_schedule_event_hook');
|
220 |
+
// Refresh filter according to new time interval.
|
221 |
+
remove_filter('cron_schedules', array( BWG(), 'autoupdate_interval' ));
|
222 |
+
add_filter('cron_schedules', array( BWG(), 'autoupdate_interval' ));
|
223 |
+
// Then add new schedule with the same hook name.
|
224 |
+
wp_schedule_event(time(), 'bwg_autoupdate_interval', 'bwg_schedule_event_hook');
|
|
|
|
|
225 |
}
|
226 |
}
|
227 |
|
admin/controllers/Speed.php
ADDED
@@ -0,0 +1,523 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Class SpeedController_bwg
|
5 |
+
*/
|
6 |
+
class SpeedController_bwg {
|
7 |
+
/**
|
8 |
+
* @var $model
|
9 |
+
*/
|
10 |
+
private $model;
|
11 |
+
/**
|
12 |
+
* @var $view
|
13 |
+
*/
|
14 |
+
private $view;
|
15 |
+
/**
|
16 |
+
* @var string $page
|
17 |
+
*/
|
18 |
+
private $page;
|
19 |
+
|
20 |
+
/**
|
21 |
+
* @var string $booster_plugin_slug
|
22 |
+
*/
|
23 |
+
private $booster_plugin_slug = 'tenweb-speed-optimizer/tenweb_speed_optimizer.php';
|
24 |
+
|
25 |
+
/**
|
26 |
+
* @var string $booster_plugin_zip_url
|
27 |
+
*/
|
28 |
+
private $booster_plugin_zip_url = 'https://downloads.wordpress.org/plugin/tenweb-speed-optimizer.latest-stable.zip';
|
29 |
+
|
30 |
+
/**
|
31 |
+
* @var integer $booster_plugin_status 0-not installed, 1-not active, 2-active
|
32 |
+
*/
|
33 |
+
private $booster_plugin_status = 0;
|
34 |
+
|
35 |
+
/**
|
36 |
+
* @var bool $booster_is_connected
|
37 |
+
*/
|
38 |
+
private $booster_is_connected = FALSE;
|
39 |
+
|
40 |
+
/**
|
41 |
+
* @var bool $tenweb_is_paid
|
42 |
+
*/
|
43 |
+
private $tenweb_is_paid = FALSE;
|
44 |
+
|
45 |
+
/**
|
46 |
+
* @var array $google_api_keys
|
47 |
+
*/
|
48 |
+
private $google_api_keys = array();
|
49 |
+
|
50 |
+
public function __construct() {
|
51 |
+
$this->check_booster_status();
|
52 |
+
$this->set_booster_data();
|
53 |
+
|
54 |
+
$this->google_api_keys = array(
|
55 |
+
'AIzaSyCQmF4ZSbZB8prjxci3GWVK4UWc-Yv7vbw',
|
56 |
+
'AIzaSyAgXPc9Yp0auiap8L6BsHWoSVzkSYgHdrs',
|
57 |
+
'AIzaSyCftPiteYkBsC2hamGbGax5D9JQ4CzexPU',
|
58 |
+
'AIzaSyC-6oKLqdvufJnysAxd0O56VgZrCgyNMHg',
|
59 |
+
'AIzaSyB1QHYGZZ6JIuUUce4VyBt5gF_-LwI5Xsk'
|
60 |
+
);
|
61 |
+
if ( class_exists('SpeedModel_bwg') && class_exists('SpeedView_bwg')) {
|
62 |
+
$this->model = new SpeedModel_bwg();
|
63 |
+
$this->view = new SpeedView_bwg();
|
64 |
+
}
|
65 |
+
|
66 |
+
$this->page = WDWLibrary::get('page');
|
67 |
+
}
|
68 |
+
|
69 |
+
/**
|
70 |
+
* Set values to $booster_plugin_status, $booster_is_connected, $tenweb_is_paid
|
71 |
+
*/
|
72 |
+
public function set_booster_data() {
|
73 |
+
$booster_plugin_status = get_option('bwg_speed');
|
74 |
+
if( !empty($booster_plugin_status) && isset($booster_plugin_status['booster_plugin_status']) ) {
|
75 |
+
$this->booster_plugin_status = $booster_plugin_status['booster_plugin_status'];
|
76 |
+
}
|
77 |
+
|
78 |
+
if( ( defined('TENWEB_CONNECTED_SPEED') &&
|
79 |
+
class_exists('\Tenweb_Authorization\Login') &&
|
80 |
+
\Tenweb_Authorization\Login::get_instance()->check_logged_in() &&
|
81 |
+
\Tenweb_Authorization\Login::get_instance()->get_connection_type() == TENWEB_CONNECTED_SPEED ) ||
|
82 |
+
( defined('TENWEB_SO_HOSTED_ON_10WEB') && TENWEB_SO_HOSTED_ON_10WEB ) ) {
|
83 |
+
// booster is connectd part.
|
84 |
+
$this->booster_is_connected = TRUE;
|
85 |
+
// tenweb is paid part.
|
86 |
+
$this->tenweb_is_paid = (method_exists('\TenWebOptimizer\OptimizerUtils', 'is_paid_user') && TenWebOptimizer\OptimizerUtils::is_paid_user()) ? TRUE : FALSE;
|
87 |
+
}
|
88 |
+
|
89 |
+
}
|
90 |
+
|
91 |
+
|
92 |
+
/**
|
93 |
+
* Function is checking every time plugin status in wp with options and update option if somethin changed
|
94 |
+
*/
|
95 |
+
public function check_booster_status() {
|
96 |
+
$booster_plugin_status = get_option('bwg_speed');
|
97 |
+
|
98 |
+
if( !empty($booster_plugin_status) && isset($booster_plugin_status['booster_plugin_status']) ) {
|
99 |
+
$booster_plugin_status = $booster_plugin_status['booster_plugin_status'];
|
100 |
+
} else {
|
101 |
+
$booster_plugin_status = 0;
|
102 |
+
}
|
103 |
+
|
104 |
+
switch ( $booster_plugin_status ) {
|
105 |
+
case 0:
|
106 |
+
if ( $this->is_plugin_installed( $this->booster_plugin_slug ) ) {
|
107 |
+
if ( is_plugin_active($this->booster_plugin_slug) ) {
|
108 |
+
update_option('bwg_speed', array( 'booster_plugin_status' => 2 ), 1);
|
109 |
+
} else {
|
110 |
+
update_option('bwg_speed', array( 'booster_plugin_status' => 1 ), 1);
|
111 |
+
}
|
112 |
+
}
|
113 |
+
break;
|
114 |
+
case 1:
|
115 |
+
if ( $this->is_plugin_installed( $this->booster_plugin_slug ) ) {
|
116 |
+
if ( is_plugin_active($this->booster_plugin_slug) ) {
|
117 |
+
update_option('bwg_speed', array( 'booster_plugin_status' => 2 ), 1);
|
118 |
+
} else {
|
119 |
+
update_option('bwg_speed', array( 'booster_plugin_status' => 1 ), 1);
|
120 |
+
}
|
121 |
+
} else {
|
122 |
+
update_option('bwg_speed', array( 'booster_plugin_status' => 0 ), 1);
|
123 |
+
}
|
124 |
+
|
125 |
+
break;
|
126 |
+
case 2:
|
127 |
+
if ( $this->is_plugin_installed( $this->booster_plugin_slug ) ) {
|
128 |
+
if ( !is_plugin_active($this->booster_plugin_slug) ) {
|
129 |
+
update_option('bwg_speed', array( 'booster_plugin_status' => 1 ), 1);
|
130 |
+
}
|
131 |
+
} else {
|
132 |
+
update_option('bwg_speed', array( 'booster_plugin_status' => 0 ), 1);
|
133 |
+
}
|
134 |
+
break;
|
135 |
+
}
|
136 |
+
}
|
137 |
+
|
138 |
+
/**
|
139 |
+
* Execute.
|
140 |
+
*/
|
141 |
+
public function execute() {
|
142 |
+
$task = WDWLibrary::get('task');
|
143 |
+
if ( $task != 'display' && method_exists($this, $task) ) {
|
144 |
+
//check_admin_referer(BWG()->nonce, BWG()->nonce);
|
145 |
+
$this->$task();
|
146 |
+
}
|
147 |
+
else {
|
148 |
+
$this->display();
|
149 |
+
}
|
150 |
+
}
|
151 |
+
|
152 |
+
/**
|
153 |
+
* Display.
|
154 |
+
*/
|
155 |
+
public function display() {
|
156 |
+
$params = array();
|
157 |
+
$params['booster_plugin_status'] = $this->booster_plugin_status;
|
158 |
+
|
159 |
+
$media_count = $this->get_optimize_media_count();
|
160 |
+
$params['media_count'] = $media_count;
|
161 |
+
|
162 |
+
$params['page_url'] = WDWLibrary::get('current_url', '', 'sanitize_url');
|
163 |
+
$params['page_is_public'] = WDWLibrary::get('status', '');
|
164 |
+
|
165 |
+
$bwg_speed_score = get_option('bwg_speed_score');
|
166 |
+
if ( !empty($bwg_speed_score) ) {
|
167 |
+
$data = array(
|
168 |
+
'url' => $bwg_speed_score['last']['url'],
|
169 |
+
'desktop_score' => $bwg_speed_score[$bwg_speed_score['last']['url']]['desktop_score'],
|
170 |
+
'desktop_loading_time' => $bwg_speed_score[$bwg_speed_score['last']['url']]['desktop_loading_time'],
|
171 |
+
'mobile_score' => $bwg_speed_score[$bwg_speed_score['last']['url']]['mobile_score'],
|
172 |
+
'mobile_loading_time' => $bwg_speed_score[$bwg_speed_score['last']['url']]['mobile_loading_time'],
|
173 |
+
'last_analyzed_time' => $bwg_speed_score[$bwg_speed_score['last']['url']]['last_analyzed_time'],
|
174 |
+
);
|
175 |
+
}
|
176 |
+
else {
|
177 |
+
$data = array(
|
178 |
+
'url' => get_home_url(),
|
179 |
+
'desktop_score' => 0,
|
180 |
+
'desktop_loading_time' => 0,
|
181 |
+
'mobile_score' => 0,
|
182 |
+
'mobile_loading_time' => 0,
|
183 |
+
'last_analyzed_time' => '',
|
184 |
+
);
|
185 |
+
}
|
186 |
+
$params['bwg_speed_score'] = $data;
|
187 |
+
$two_domain_id = get_site_option('tenweb_domain_id');
|
188 |
+
$params['dashboard_booster_url'] = '';
|
189 |
+
if ( defined("TENWEB_DASHBOARD") && !empty($two_domain_id) ) {
|
190 |
+
$params['dashboard_booster_url'] = trim(TENWEB_DASHBOARD, '/') . '/websites/' . $two_domain_id . '/booster/frontend';
|
191 |
+
}
|
192 |
+
|
193 |
+
$params['booster_is_connected'] = $this->booster_is_connected;
|
194 |
+
$params['tenweb_is_paid'] = $this->tenweb_is_paid;
|
195 |
+
$this->view->display($params);
|
196 |
+
}
|
197 |
+
|
198 |
+
/**
|
199 |
+
* Top banner.
|
200 |
+
*/
|
201 |
+
public function top_banner() {
|
202 |
+
if ( !WDWLibrary::get_gallery_images_count() ) {
|
203 |
+
return;
|
204 |
+
}
|
205 |
+
|
206 |
+
$booster_is_active = ( $this->booster_is_connected && $this->booster_plugin_status == 2 ) ? TRUE : FALSE;
|
207 |
+
|
208 |
+
if ( $this->tenweb_is_paid === FALSE ) {
|
209 |
+
// get optimize media count.
|
210 |
+
$media_count = $this->get_optimize_media_count();
|
211 |
+
$two_domain_id = get_site_option('tenweb_domain_id');
|
212 |
+
$booster_upgrade_plan_url = "https://my.10web.io/websites/". $two_domain_id ."/booster/frontend?pricing=1";
|
213 |
+
$params = array(
|
214 |
+
'booster_is_active' => $booster_is_active,
|
215 |
+
'booster_is_connectd' => $this->booster_is_connected,
|
216 |
+
'media_count' => $media_count,
|
217 |
+
'button' => array(
|
218 |
+
'name' => ($booster_is_active) ? __('Upgrade', 'photo-gallery') : __('Optimize now', 'photo-gallery'),
|
219 |
+
'url' => ($booster_is_active) ? $booster_upgrade_plan_url : add_query_arg(array( 'page' => 'speed_' . BWG()->prefix ), admin_url('admin.php')),
|
220 |
+
'target' => ($booster_is_active) ? 'target="_blank"' : ''
|
221 |
+
)
|
222 |
+
);
|
223 |
+
$this->view->top_banner($params);
|
224 |
+
}
|
225 |
+
}
|
226 |
+
|
227 |
+
/**
|
228 |
+
* Install booster plugin
|
229 |
+
*/
|
230 |
+
public function install_booster() {
|
231 |
+
$speed_ajax_nonce = WDWLibrary::get('speed_ajax_nonce');
|
232 |
+
if ( !wp_verify_nonce($speed_ajax_nonce, 'speed_ajax_nonce') ){
|
233 |
+
die('Permission Denied.');
|
234 |
+
}
|
235 |
+
|
236 |
+
$plugin_slug = $this->booster_plugin_slug;
|
237 |
+
$plugin_zip = $this->booster_plugin_zip_url;
|
238 |
+
|
239 |
+
|
240 |
+
/* Check if new plugin is already installed */
|
241 |
+
if ( $this->is_plugin_installed( $plugin_slug ) ) {
|
242 |
+
$installed = true;
|
243 |
+
} else {
|
244 |
+
$installed = $this->install_plugin( $plugin_zip );
|
245 |
+
}
|
246 |
+
/* 0-not installed, 1-installed but not active, 2-active */
|
247 |
+
$booster_plugin_status = 0;
|
248 |
+
if ( !is_wp_error( $installed ) && $installed ) {
|
249 |
+
|
250 |
+
$activate = activate_plugin( $plugin_slug );
|
251 |
+
|
252 |
+
/* Function activate_plugin return null when activate is success and false when not */
|
253 |
+
if ( is_null($activate) ) {
|
254 |
+
update_option('bwg_speed', array( 'booster_plugin_status' => 2 ), 1);
|
255 |
+
$this->set_booster_data();
|
256 |
+
$booster_plugin_status = 2;
|
257 |
+
} else {
|
258 |
+
update_option('bwg_speed', array( 'booster__plugin_status' => 1 ), 1);
|
259 |
+
$booster_plugin_status = 1;
|
260 |
+
}
|
261 |
+
}
|
262 |
+
|
263 |
+
echo json_encode( array( 'booster_plugin_status' => esc_html($booster_plugin_status), 'booster_is_connected' => esc_html($this->booster_is_connected) ) );
|
264 |
+
die;
|
265 |
+
}
|
266 |
+
|
267 |
+
/**
|
268 |
+
* Check if plugin already installed
|
269 |
+
*
|
270 |
+
* @param string $slug plugin's slug
|
271 |
+
*
|
272 |
+
* @return bool
|
273 |
+
*/
|
274 |
+
public function is_plugin_installed( $slug ) {
|
275 |
+
if ( ! function_exists( 'get_plugins' ) ) {
|
276 |
+
require_once ABSPATH . 'wp-admin/includes/plugin.php';
|
277 |
+
}
|
278 |
+
$all_plugins = get_plugins();
|
279 |
+
|
280 |
+
if ( !empty( $all_plugins[$slug] ) ) {
|
281 |
+
return true;
|
282 |
+
} else {
|
283 |
+
return false;
|
284 |
+
}
|
285 |
+
}
|
286 |
+
|
287 |
+
/**
|
288 |
+
* Install booster pluging using zip url
|
289 |
+
*
|
290 |
+
* @param $plugin_zip string which is url of the plugin zip
|
291 |
+
*
|
292 |
+
* @return bool
|
293 |
+
*/
|
294 |
+
public function install_plugin( $plugin_zip = '' ) {
|
295 |
+
include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
296 |
+
wp_cache_flush();
|
297 |
+
|
298 |
+
$upgrader = new Plugin_Upgrader();
|
299 |
+
$installed = $upgrader->install( $plugin_zip );
|
300 |
+
return $installed;
|
301 |
+
}
|
302 |
+
|
303 |
+
/**
|
304 |
+
* Get optimize media count.
|
305 |
+
*
|
306 |
+
* @param string $dir
|
307 |
+
* @param array $file_types
|
308 |
+
*
|
309 |
+
* @return array
|
310 |
+
*/
|
311 |
+
public function get_optimize_media_count() {
|
312 |
+
global $wpdb;
|
313 |
+
$allowed_types = array('image/jpeg','image/jpg','image/png','image/gif','image/webp','image/svg');
|
314 |
+
// get all wp-media attachments.
|
315 |
+
$attachments = wp_count_attachments();
|
316 |
+
$count_attachment = 0;
|
317 |
+
if ( !empty($attachments) ) {
|
318 |
+
foreach ( $attachments as $key => $attachment ) {
|
319 |
+
if ( in_array($key, $allowed_types) ) {
|
320 |
+
$count_attachment += $attachment;
|
321 |
+
}
|
322 |
+
}
|
323 |
+
}
|
324 |
+
|
325 |
+
// Get all Photo gallery media.
|
326 |
+
$row = $wpdb->get_row( 'SELECT count(id) AS qty FROM `' . $wpdb->prefix . 'bwg_file_paths` WHERE is_dir = 0' );
|
327 |
+
$count = intval($count_attachment) + intval($row->qty);
|
328 |
+
|
329 |
+
return ($count > 100 ? '100+' : $count);
|
330 |
+
}
|
331 |
+
|
332 |
+
/**
|
333 |
+
* Ajax action Sign up to dashboard action
|
334 |
+
*
|
335 |
+
* @return bool
|
336 |
+
*/
|
337 |
+
public function sign_up_dashboard() {
|
338 |
+
$speed_ajax_nonce = WDWLibrary::get('speed_ajax_nonce');
|
339 |
+
if ( !wp_verify_nonce($speed_ajax_nonce, 'speed_ajax_nonce') ){
|
340 |
+
die('Permission Denied.');
|
341 |
+
}
|
342 |
+
|
343 |
+
$bwg_email = WDWLibrary::get('bwg_email');
|
344 |
+
$args = array(
|
345 |
+
'method' => 'POST',
|
346 |
+
'headers' => array(
|
347 |
+
'Content-Type' => 'application/x-www-form-urlencoded; charset=UTF-8',
|
348 |
+
'Accept' => 'application/x.10webcore.v1+json'
|
349 |
+
),
|
350 |
+
'body' => array(
|
351 |
+
'email' => $bwg_email,
|
352 |
+
'first_name' => '10Webber',
|
353 |
+
'last_name' => rand( 1000, 9999 ),
|
354 |
+
'product_id' => '101',
|
355 |
+
'service_key' => 'gTcjslfqqBFFwJKBnFgQYhkQEJpplLaDKfj',
|
356 |
+
),
|
357 |
+
);
|
358 |
+
|
359 |
+
$url = 'https://core.10web.io/api/checkout/signup-via-magic-link';
|
360 |
+
$result = wp_remote_post( $url, $args );
|
361 |
+
ob_clean();
|
362 |
+
if ( !empty($result) && isset( $result['body']) ) {
|
363 |
+
$result = $result['body'];
|
364 |
+
} else {
|
365 |
+
echo json_encode( array('status' => 'error' ) );
|
366 |
+
die;
|
367 |
+
}
|
368 |
+
|
369 |
+
$result = json_decode($result, 1);
|
370 |
+
|
371 |
+
if ( isset($result['status']) && isset($result['data']['magic_data']) && $result['status'] == "ok" ) {
|
372 |
+
$args = array();
|
373 |
+
if( isset($result['data']['magic_data']) ) {
|
374 |
+
$magic_data = $result['data']['magic_data'];
|
375 |
+
$args = array('magic_data' => $magic_data);
|
376 |
+
}
|
377 |
+
if( class_exists('\TenWebOptimizer\OptimizerUtils') ) {
|
378 |
+
$two_connect_link = \TenWebOptimizer\OptimizerUtils::get_tenweb_connection_link('login', $args);
|
379 |
+
echo json_encode(array( 'status' => 'success', 'booster_connect_url' => $two_connect_link ));
|
380 |
+
} else {
|
381 |
+
echo json_encode( array('status' => 'error') );
|
382 |
+
}
|
383 |
+
die;
|
384 |
+
} elseif( isset($result['error']) && $result['error']['status_code'] == "422" ) {
|
385 |
+
if( class_exists('\TenWebOptimizer\OptimizerUtils') ) {
|
386 |
+
$two_connect_link = \TenWebOptimizer\OptimizerUtils::get_tenweb_connection_link('login', array('login_request_plugin' => 'photo_gallery'));
|
387 |
+
echo json_encode( array('status' => 'success', 'booster_connect_url' => $two_connect_link) );
|
388 |
+
} else {
|
389 |
+
echo json_encode( array('status' => 'error') );
|
390 |
+
}
|
391 |
+
die;
|
392 |
+
}
|
393 |
+
echo json_encode( array('status' => 'error') );
|
394 |
+
die;
|
395 |
+
}
|
396 |
+
|
397 |
+
/**
|
398 |
+
* Ajax action Get google page speed scor for desktop and mobile
|
399 |
+
*
|
400 |
+
*/
|
401 |
+
public function get_google_page_speed() {
|
402 |
+
$speed_ajax_nonce = WDWLibrary::get('speed_ajax_nonce');
|
403 |
+
$last_api_key_index = WDWLibrary::get('last_api_key_index', '');
|
404 |
+
|
405 |
+
if ( !wp_verify_nonce($speed_ajax_nonce, 'speed_ajax_nonce') ){
|
406 |
+
die('Permission Denied.');
|
407 |
+
}
|
408 |
+
|
409 |
+
$url = WDWLibrary::get('bwg_url');
|
410 |
+
|
411 |
+
/* Check if url hasn't http or https add */
|
412 |
+
if ( strpos($url, 'http') !== 0 ){
|
413 |
+
if ( isset($_SERVER['HTTPS']) ) {
|
414 |
+
$url = 'https://'.$url;
|
415 |
+
} else {
|
416 |
+
$url = 'http://'.$url;
|
417 |
+
}
|
418 |
+
}
|
419 |
+
|
420 |
+
/* Check if the url is valid */
|
421 |
+
if ( !filter_var($url, FILTER_VALIDATE_URL) ) {
|
422 |
+
echo json_encode(array('error' => 1)); die;
|
423 |
+
}
|
424 |
+
|
425 |
+
$post_id = url_to_postid($url);
|
426 |
+
$home_url = get_home_url();
|
427 |
+
if ( ($post_id === 0 || get_post_status ( $post_id ) != 'publish') && rtrim($url, "/") != rtrim($home_url, "/") ) {
|
428 |
+
echo json_encode( array('error' => 1, 'msg' => esc_html__('This page is not public. Please publish the page to check the score.', 'photo-gallery')) );
|
429 |
+
die;
|
430 |
+
}
|
431 |
+
|
432 |
+
if ( $last_api_key_index != '' ) {
|
433 |
+
/* remove array value as this key already used and no need to try again during the retry */
|
434 |
+
unset($this->google_api_keys[$last_api_key_index]);
|
435 |
+
}
|
436 |
+
$random_index = array_rand( $this->google_api_keys );
|
437 |
+
$random_api_key = $this->google_api_keys[$random_index];
|
438 |
+
$result = $this->bwg_google_speed_cron( $url, 'desktop', $random_api_key );
|
439 |
+
if ( !empty($result['error']) || empty($result)) {
|
440 |
+
/* Case when retry already done and $last_api_key_index is not empty */
|
441 |
+
if ( $last_api_key_index != '' ) {
|
442 |
+
echo json_encode(array( 'error' => 1 ));
|
443 |
+
}
|
444 |
+
else {
|
445 |
+
echo json_encode(array( 'error' => 1, 'last_api_key_index' => $random_index ));
|
446 |
+
}
|
447 |
+
die;
|
448 |
+
}
|
449 |
+
$score['desktop'] = $result['score']*100;
|
450 |
+
$score['desktop_loading_time'] = $result['loading_time'];
|
451 |
+
|
452 |
+
$result = $this->bwg_google_speed_cron( $url, 'mobile', $random_api_key );
|
453 |
+
if( !empty($result['error']) || empty($result) ) {
|
454 |
+
/* Case when retry already done and $last_api_key_index is not empty */
|
455 |
+
if ( $last_api_key_index != '' ) {
|
456 |
+
echo json_encode(array( 'error' => 1 ));
|
457 |
+
}
|
458 |
+
else {
|
459 |
+
echo json_encode(array( 'error' => 1, 'last_api_key_index' => $random_index ));
|
460 |
+
}
|
461 |
+
die;
|
462 |
+
}
|
463 |
+
$score['mobile'] = $result['score']*100;
|
464 |
+
$score['mobile_loading_time'] = $result['loading_time'];
|
465 |
+
|
466 |
+
$nowdate = current_time( 'mysql' );
|
467 |
+
$nowdate = date('d.m.Y h:i:s a', strtotime($nowdate));
|
468 |
+
|
469 |
+
$data = get_option('bwg_speed_score');
|
470 |
+
$data[$url] = array(
|
471 |
+
'desktop_score' => $score['desktop'],
|
472 |
+
'desktop_loading_time' => $score['desktop_loading_time'],
|
473 |
+
'mobile_score' => $score['mobile'],
|
474 |
+
'mobile_loading_time' => $score['mobile_loading_time'],
|
475 |
+
'last_analyzed_time' => $nowdate,
|
476 |
+
'error' => 0
|
477 |
+
);
|
478 |
+
$data['last'] = array(
|
479 |
+
'url' => $url
|
480 |
+
);
|
481 |
+
update_option('bwg_speed_score', $data, 1);
|
482 |
+
ob_clean();
|
483 |
+
echo json_encode(array(
|
484 |
+
'desktop_score' => esc_html($score['desktop']),
|
485 |
+
'desktop_loading_time' => esc_html($score['desktop_loading_time']),
|
486 |
+
'mobile_score' => esc_html($score['mobile']),
|
487 |
+
'mobile_loading_time' => esc_html($score['mobile_loading_time']),
|
488 |
+
'last_analyzed_time' => esc_html($nowdate),
|
489 |
+
));
|
490 |
+
die;
|
491 |
+
}
|
492 |
+
|
493 |
+
/**
|
494 |
+
* Remote get action to get google speed score
|
495 |
+
*
|
496 |
+
* @param $page_url string which is url of the page which speed should counted
|
497 |
+
* @param $strategy string parameter which get desktop or mobile
|
498 |
+
*
|
499 |
+
* @return array
|
500 |
+
*/
|
501 |
+
public function bwg_google_speed_cron( $page_url, $strategy, $key = 'AIzaSyCQmF4ZSbZB8prjxci3GWVK4UWc-Yv7vbw') {
|
502 |
+
$url = "https://www.googleapis.com/pagespeedonline/v5/runPagespeed?url=" . $page_url . "&key=".$key;
|
503 |
+
$url = ( $strategy == "mobile" ) ? $url . "&strategy=mobile" : $url;
|
504 |
+
|
505 |
+
$response = wp_remote_get($url, array('timeout' => 300));
|
506 |
+
$data = array();
|
507 |
+
|
508 |
+
if (is_array($response) && !is_wp_error($response)) {
|
509 |
+
|
510 |
+
$body = $response['body'];
|
511 |
+
$body = json_decode($body);
|
512 |
+
if (isset($body->error) ) {
|
513 |
+
$data['error'] = 1;
|
514 |
+
} else {
|
515 |
+
$data['score'] = $body->lighthouseResult->categories->performance->score;
|
516 |
+
$data['loading_time'] = $body->lighthouseResult->audits->interactive->displayValue;
|
517 |
+
}
|
518 |
+
} else {
|
519 |
+
$data['error'] = 1;
|
520 |
+
}
|
521 |
+
return $data;
|
522 |
+
}
|
523 |
+
}
|
admin/controllers/Themes.php
CHANGED
@@ -212,6 +212,30 @@ class ThemesController_bwg {
|
|
212 |
}
|
213 |
}
|
214 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
215 |
/**
|
216 |
* Add.
|
217 |
*
|
@@ -381,4 +405,52 @@ class ThemesController_bwg {
|
|
381 |
), $query_url);
|
382 |
WDWLibrary::spider_redirect($query_url);
|
383 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
384 |
}
|
212 |
}
|
213 |
}
|
214 |
|
215 |
+
/**
|
216 |
+
* Set default.
|
217 |
+
*
|
218 |
+
* @param $id
|
219 |
+
* @param bool $bulk
|
220 |
+
* @param bool $all
|
221 |
+
*/
|
222 |
+
public function setdefault( $id, $bulk = FALSE, $all = FALSE ) {
|
223 |
+
$this->model->update( array( 'default_theme' => 0 ), array( 'default_theme' => 1 ) );
|
224 |
+
$save = $this->model->update( array( 'default_theme' => 1 ), array( 'id' => $id ) );
|
225 |
+
if ( $save !== FALSE ) {
|
226 |
+
$message = 7;
|
227 |
+
}
|
228 |
+
else {
|
229 |
+
$message = 2;
|
230 |
+
}
|
231 |
+
$page = WDWLibrary::get('page');
|
232 |
+
WDWLibrary::redirect(add_query_arg(array(
|
233 |
+
'page' => $page,
|
234 |
+
'task' => 'display',
|
235 |
+
'message' => $message,
|
236 |
+
), admin_url('admin.php')));
|
237 |
+
}
|
238 |
+
|
239 |
/**
|
240 |
* Add.
|
241 |
*
|
405 |
), $query_url);
|
406 |
WDWLibrary::spider_redirect($query_url);
|
407 |
}
|
408 |
+
|
409 |
+
/**
|
410 |
+
* Save db by id.
|
411 |
+
*
|
412 |
+
* @param int $id
|
413 |
+
*
|
414 |
+
* @return int $message_id
|
415 |
+
*/
|
416 |
+
public function save_db( $id = 0 ) {
|
417 |
+
global $wpdb;
|
418 |
+
$row = new WD_BWG_Theme($id);
|
419 |
+
$theme_name = WDWLibrary::get('name', 'Theme');
|
420 |
+
foreach ($row as $name => $value) {
|
421 |
+
$name_var = $name;
|
422 |
+
if ( WD_BWG_Theme::font_style($name) ) {
|
423 |
+
if ( $_POST[WD_BWG_Theme::font_style($name)] != '1' ) {
|
424 |
+
$name_var = $name . '_default';
|
425 |
+
}
|
426 |
+
}
|
427 |
+
$post_name = WDWLibrary::get($name_var);
|
428 |
+
|
429 |
+
if ( !in_array($name, array('id', 'name', 'default_theme')) && ( isset($post_name) ) ) {
|
430 |
+
$row->$name = $post_name;
|
431 |
+
}
|
432 |
+
}
|
433 |
+
$themes = json_encode($row);
|
434 |
+
|
435 |
+
if ( $id == 0 ) {
|
436 |
+
$save = $wpdb->insert($wpdb->prefix . 'bwg_theme', array(
|
437 |
+
'name' => $theme_name,
|
438 |
+
'options' => $themes,
|
439 |
+
'default_theme' => 0,
|
440 |
+
), array('%s','%s','%d'));
|
441 |
+
$id = $wpdb->insert_id;
|
442 |
+
}
|
443 |
+
else {
|
444 |
+
$save = $wpdb->update($wpdb->prefix . 'bwg_theme', array(
|
445 |
+
'name' => $theme_name,
|
446 |
+
'options' => $themes,
|
447 |
+
), array( 'id' => $id ), array('%s','%s'), array('%d'));
|
448 |
+
}
|
449 |
+
$message_id = 2;
|
450 |
+
if ( $save !== FALSE ) {
|
451 |
+
$message_id = 1;
|
452 |
+
}
|
453 |
+
|
454 |
+
return array( 'id' => $id, 'msg' => $message_id );
|
455 |
+
}
|
456 |
}
|
admin/models/Speed.php
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Class SpeedModel_bwg
|
5 |
+
*/
|
6 |
+
class SpeedModel_bwg {
|
7 |
+
|
8 |
+
}
|
admin/views/AdminView.php
CHANGED
@@ -85,7 +85,7 @@ class AdminView_bwg {
|
|
85 |
}
|
86 |
ob_start();
|
87 |
?>
|
88 |
-
<div class="wd-list-view-header
|
89 |
<div class="wd-list-view-header-left">
|
90 |
<div class="wd-page-title <?php echo $title_class; ?>">
|
91 |
<h1 class="wd-heading-inline"><?php echo $title; ?>
|
@@ -112,17 +112,12 @@ class AdminView_bwg {
|
|
112 |
if ( $how_to_button ) {
|
113 |
require BWG()->plugin_dir . '/framework/howto/howto.php';
|
114 |
}
|
115 |
-
if( $buttons ){
|
116 |
echo $this->buttons($buttons, FALSE);
|
117 |
}
|
118 |
?>
|
119 |
</div>
|
120 |
</div>
|
121 |
-
<?php
|
122 |
-
if (!BWG()->is_pro && $popup_window ) {
|
123 |
-
WDWLibrary::topbar_upgrade_ask_question();
|
124 |
-
}
|
125 |
-
?>
|
126 |
</div>
|
127 |
<?php
|
128 |
return ob_get_clean();
|
@@ -391,4 +386,27 @@ class AdminView_bwg {
|
|
391 |
|
392 |
return ob_get_clean();
|
393 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
394 |
}
|
85 |
}
|
86 |
ob_start();
|
87 |
?>
|
88 |
+
<div class="wd-list-view-header">
|
89 |
<div class="wd-list-view-header-left">
|
90 |
<div class="wd-page-title <?php echo $title_class; ?>">
|
91 |
<h1 class="wd-heading-inline"><?php echo $title; ?>
|
112 |
if ( $how_to_button ) {
|
113 |
require BWG()->plugin_dir . '/framework/howto/howto.php';
|
114 |
}
|
115 |
+
if ( $buttons ) {
|
116 |
echo $this->buttons($buttons, FALSE);
|
117 |
}
|
118 |
?>
|
119 |
</div>
|
120 |
</div>
|
|
|
|
|
|
|
|
|
|
|
121 |
</div>
|
122 |
<?php
|
123 |
return ob_get_clean();
|
386 |
|
387 |
return ob_get_clean();
|
388 |
}
|
389 |
+
|
390 |
+
/**
|
391 |
+
* Booster top banner.
|
392 |
+
*
|
393 |
+
* @param array $params
|
394 |
+
*
|
395 |
+
* @return false|string
|
396 |
+
*/
|
397 |
+
protected function booster_top_banner( $params = array() ) {
|
398 |
+
$class_name = ucfirst('speed');
|
399 |
+
$class_controller = $class_name . 'Controller_' . BWG()->prefix;
|
400 |
+
// load speed file.
|
401 |
+
foreach( array('controllers', 'models', 'views') as $folder) {
|
402 |
+
$file = BWG()->plugin_dir . '/admin/' . $folder . '/' . $class_name . '.php';
|
403 |
+
require_once( $file );
|
404 |
+
}
|
405 |
+
ob_start();
|
406 |
+
|
407 |
+
$controller = new $class_controller();
|
408 |
+
$controller->top_banner();
|
409 |
+
|
410 |
+
return ob_get_clean();
|
411 |
+
}
|
412 |
}
|
admin/views/Albums.php
CHANGED
@@ -53,6 +53,7 @@ class AlbumsView_bwg extends AdminView_bwg {
|
|
53 |
echo $this->pagination($params['page_url'], $params['total'], $params['items_per_page']);
|
54 |
?>
|
55 |
</div>
|
|
|
56 |
<table class="images_table adminlist table table-striped wp-list-table widefat fixed pages media bwg-gallery-lists">
|
57 |
<thead class="alternate">
|
58 |
<td id="cb" class="column-cb check-column">
|
@@ -180,8 +181,8 @@ class AlbumsView_bwg extends AdminView_bwg {
|
|
180 |
'preview_url' => add_query_arg('bwg-preview-type', 'album_compact_preview', $params['preview_action']),
|
181 |
),
|
182 |
'album_masonry_preview' => array(
|
183 |
-
'title' => __('Masonry', 'photo-gallery')
|
184 |
-
'preview_url' =>
|
185 |
),
|
186 |
'album_extended_preview' => array(
|
187 |
'title' => __('Extended', 'photo-gallery'),
|
@@ -189,7 +190,7 @@ class AlbumsView_bwg extends AdminView_bwg {
|
|
189 |
),
|
190 |
);
|
191 |
?>
|
192 |
-
<div class="bwg-page-header wd-list-view-header
|
193 |
<div class="wd-page-title wd-header wd-list-view-header-left">
|
194 |
<div>
|
195 |
<h1 class="wp-heading-inline bwg-heading"><?php _e('Gallery Group Title', 'photo-gallery'); ?></h1>
|
@@ -223,10 +224,6 @@ class AlbumsView_bwg extends AdminView_bwg {
|
|
223 |
?>
|
224 |
</div>
|
225 |
</div>
|
226 |
-
<?php
|
227 |
-
if (!BWG()->is_pro) {
|
228 |
-
WDWLibrary::topbar_upgrade_ask_question();
|
229 |
-
}?>
|
230 |
<div class="bwg-clear"></div>
|
231 |
</div>
|
232 |
<div class="wd-table meta-box-sortables">
|
53 |
echo $this->pagination($params['page_url'], $params['total'], $params['items_per_page']);
|
54 |
?>
|
55 |
</div>
|
56 |
+
<?php echo $this->booster_top_banner(); ?>
|
57 |
<table class="images_table adminlist table table-striped wp-list-table widefat fixed pages media bwg-gallery-lists">
|
58 |
<thead class="alternate">
|
59 |
<td id="cb" class="column-cb check-column">
|
181 |
'preview_url' => add_query_arg('bwg-preview-type', 'album_compact_preview', $params['preview_action']),
|
182 |
),
|
183 |
'album_masonry_preview' => array(
|
184 |
+
'title' => __('Masonry', 'photo-gallery'),
|
185 |
+
'preview_url' => add_query_arg('bwg-preview-type', 'album_masonry_preview', $params['preview_action']),
|
186 |
),
|
187 |
'album_extended_preview' => array(
|
188 |
'title' => __('Extended', 'photo-gallery'),
|
190 |
),
|
191 |
);
|
192 |
?>
|
193 |
+
<div class="bwg-page-header wd-list-view-header">
|
194 |
<div class="wd-page-title wd-header wd-list-view-header-left">
|
195 |
<div>
|
196 |
<h1 class="wp-heading-inline bwg-heading"><?php _e('Gallery Group Title', 'photo-gallery'); ?></h1>
|
224 |
?>
|
225 |
</div>
|
226 |
</div>
|
|
|
|
|
|
|
|
|
227 |
<div class="bwg-clear"></div>
|
228 |
</div>
|
229 |
<div class="wd-table meta-box-sortables">
|
admin/views/Galleries.php
CHANGED
@@ -7,6 +7,7 @@ class GalleriesView_bwg extends AdminView_bwg {
|
|
7 |
|
8 |
public function __construct() {
|
9 |
wp_enqueue_script(BWG()->prefix . '_jquery.ui.touch-punch.min');
|
|
|
10 |
parent::__construct();
|
11 |
}
|
12 |
|
@@ -54,6 +55,7 @@ class GalleriesView_bwg extends AdminView_bwg {
|
|
54 |
echo $this->pagination($params['page_url'], $params['total'], $params['items_per_page']);
|
55 |
?>
|
56 |
</div>
|
|
|
57 |
<table class="images_table adminlist table table-striped wp-list-table widefat fixed pages media bwg-gallery-lists">
|
58 |
<thead class="alternate">
|
59 |
<td class="col_drag" data-page-number="<?php echo $params['page_num']; ?>" data-ordering-url="<?php echo $params['galleries_ordering_ajax_url']; ?>"></td>
|
@@ -195,12 +197,12 @@ class GalleriesView_bwg extends AdminView_bwg {
|
|
195 |
'preview_url' => add_query_arg('bwg-preview-type', 'thumbnails', $params['preview_action']),
|
196 |
),
|
197 |
'thumbnails_masonry' => array(
|
198 |
-
'title' => __('Masonry', 'photo-gallery')
|
199 |
-
'preview_url' =>
|
200 |
),
|
201 |
'thumbnails_mosaic' => array(
|
202 |
-
'title' => __('Mosaic', 'photo-gallery')
|
203 |
-
'preview_url' =>
|
204 |
),
|
205 |
'slideshow' => array(
|
206 |
'title' => __('Slideshow', 'photo-gallery'),
|
@@ -211,8 +213,8 @@ class GalleriesView_bwg extends AdminView_bwg {
|
|
211 |
'preview_url' => add_query_arg('bwg-preview-type', 'image_browser', $params['preview_action']),
|
212 |
),
|
213 |
'blog_style' => array(
|
214 |
-
'title' => __('Blog Style', 'photo-gallery')
|
215 |
-
'preview_url' =>
|
216 |
),
|
217 |
'carousel' => array(
|
218 |
'title' => __('Carousel', 'photo-gallery') . (!BWG()->is_pro ? '<span class="pro_btn">' . __('Premium', 'photo-gallery') . '</span>' : ''),
|
@@ -233,7 +235,7 @@ class GalleriesView_bwg extends AdminView_bwg {
|
|
233 |
?>
|
234 |
</div>
|
235 |
<div id="message_div" class="wd_updated" style="display: none;"></div>
|
236 |
-
<div class="bwg-page-header wd-list-view-header
|
237 |
<div class="wd-page-title wd-header wd-list-view-header-left">
|
238 |
<div>
|
239 |
<h1 class="wp-heading-inline bwg-heading"><?php _e('Gallery title', 'photo-gallery'); ?></h1>
|
@@ -271,11 +273,6 @@ class GalleriesView_bwg extends AdminView_bwg {
|
|
271 |
?>
|
272 |
</div>
|
273 |
</div>
|
274 |
-
<?php
|
275 |
-
if (!BWG()->is_pro) {
|
276 |
-
WDWLibrary::topbar_upgrade_ask_question();
|
277 |
-
}
|
278 |
-
?>
|
279 |
<div class="bwg-clear"></div>
|
280 |
</div>
|
281 |
<div class="wd-table meta-box-sortables">
|
@@ -463,12 +460,16 @@ class GalleriesView_bwg extends AdminView_bwg {
|
|
463 |
var bwg_ajax_url_nonce = "<?php echo wp_nonce_url(admin_url('admin-ajax.php'), '', 'bwg_nonce'); ?>";
|
464 |
</script>
|
465 |
<input id="show_add_embed" class="button button-secondary button-large" title="<?php _e('Embed Media', 'photo-gallery'); ?>" style="<?php if ( $params['gallery_type'] != '' ) { echo 'display:none'; } ?>" type="button" onclick="jQuery('.opacity_add_embed').show(); jQuery('#add_embed_help').hide(); return false;" value="<?php _e('Embed Media', 'photo-gallery'); ?>" />
|
466 |
-
<input id="show_bulk_embed" class="button button-secondary button-large" title="<?php _e('Social Bulk Embed', 'photo-gallery'); ?>" style="<?php if ( $params['gallery_type'] != '' ) { echo 'display:none'; } ?>" type="button" onclick="
|
|
|
467 |
<?php
|
468 |
-
if (
|
469 |
-
|
|
|
|
|
470 |
}
|
471 |
?>
|
|
|
472 |
</div>
|
473 |
<div class="clear"></div>
|
474 |
<div class="opacity_image_alt opacity_image_description opacity_image_redirect opacity_resize_image opacity_add_embed opacity_image_desc opacity_bulk_embed bwg_opacity_media"
|
@@ -799,6 +800,13 @@ class GalleriesView_bwg extends AdminView_bwg {
|
|
799 |
<span><a onclick="spider_set_input_value('ajax_task', 'image_<?php echo $row->published ? 'unpublish' : 'publish'; ?>');
|
800 |
spider_set_input_value('image_current_id', '<?php echo $row->id; ?>');
|
801 |
spider_ajax_save('bwg_gallery');"><?php echo($row->published ? __('Unpublish', 'photo-gallery') : __('Publish', 'photo-gallery')); ?></a> |</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
802 |
<span class="trash"><a onclick="if (confirm('<?php echo addslashes(__('Do you want to delete selected item?', 'photo-gallery')); ?>')) {
|
803 |
spider_set_input_value('ajax_task', 'image_delete');
|
804 |
spider_set_input_value('image_current_id', '<?php echo $row->id; ?>');
|
7 |
|
8 |
public function __construct() {
|
9 |
wp_enqueue_script(BWG()->prefix . '_jquery.ui.touch-punch.min');
|
10 |
+
wp_enqueue_script(BWG()->prefix . '_speed');
|
11 |
parent::__construct();
|
12 |
}
|
13 |
|
55 |
echo $this->pagination($params['page_url'], $params['total'], $params['items_per_page']);
|
56 |
?>
|
57 |
</div>
|
58 |
+
<?php echo $this->booster_top_banner(); ?>
|
59 |
<table class="images_table adminlist table table-striped wp-list-table widefat fixed pages media bwg-gallery-lists">
|
60 |
<thead class="alternate">
|
61 |
<td class="col_drag" data-page-number="<?php echo $params['page_num']; ?>" data-ordering-url="<?php echo $params['galleries_ordering_ajax_url']; ?>"></td>
|
197 |
'preview_url' => add_query_arg('bwg-preview-type', 'thumbnails', $params['preview_action']),
|
198 |
),
|
199 |
'thumbnails_masonry' => array(
|
200 |
+
'title' => __('Masonry', 'photo-gallery'),
|
201 |
+
'preview_url' => add_query_arg('bwg-preview-type', 'thumbnails_masonry', $params['preview_action']),
|
202 |
),
|
203 |
'thumbnails_mosaic' => array(
|
204 |
+
'title' => __('Mosaic', 'photo-gallery'),
|
205 |
+
'preview_url' => add_query_arg('bwg-preview-type', 'thumbnails_mosaic', $params['preview_action']),
|
206 |
),
|
207 |
'slideshow' => array(
|
208 |
'title' => __('Slideshow', 'photo-gallery'),
|
213 |
'preview_url' => add_query_arg('bwg-preview-type', 'image_browser', $params['preview_action']),
|
214 |
),
|
215 |
'blog_style' => array(
|
216 |
+
'title' => __('Blog Style', 'photo-gallery'),
|
217 |
+
'preview_url' => add_query_arg('bwg-preview-type', 'blog_style', $params['preview_action']),
|
218 |
),
|
219 |
'carousel' => array(
|
220 |
'title' => __('Carousel', 'photo-gallery') . (!BWG()->is_pro ? '<span class="pro_btn">' . __('Premium', 'photo-gallery') . '</span>' : ''),
|
235 |
?>
|
236 |
</div>
|
237 |
<div id="message_div" class="wd_updated" style="display: none;"></div>
|
238 |
+
<div class="bwg-page-header wd-list-view-header">
|
239 |
<div class="wd-page-title wd-header wd-list-view-header-left">
|
240 |
<div>
|
241 |
<h1 class="wp-heading-inline bwg-heading"><?php _e('Gallery title', 'photo-gallery'); ?></h1>
|
273 |
?>
|
274 |
</div>
|
275 |
</div>
|
|
|
|
|
|
|
|
|
|
|
276 |
<div class="bwg-clear"></div>
|
277 |
</div>
|
278 |
<div class="wd-table meta-box-sortables">
|
460 |
var bwg_ajax_url_nonce = "<?php echo wp_nonce_url(admin_url('admin-ajax.php'), '', 'bwg_nonce'); ?>";
|
461 |
</script>
|
462 |
<input id="show_add_embed" class="button button-secondary button-large" title="<?php _e('Embed Media', 'photo-gallery'); ?>" style="<?php if ( $params['gallery_type'] != '' ) { echo 'display:none'; } ?>" type="button" onclick="jQuery('.opacity_add_embed').show(); jQuery('#add_embed_help').hide(); return false;" value="<?php _e('Embed Media', 'photo-gallery'); ?>" />
|
463 |
+
<input id="show_bulk_embed" class="button button-secondary button-large" title="<?php _e('Social Bulk Embed', 'photo-gallery'); ?>" style="<?php if ( $params['gallery_type'] != '' ) { echo 'display:none'; } ?>" type="button" onclick="jQuery('.opacity_bulk_embed').show(); return false;" value="<?php _e('Social Bulk Embed', 'photo-gallery'); ?>" />
|
464 |
+
<span class="bwg-optimize-btn">
|
465 |
<?php
|
466 |
+
if ( WDWLibrary::get_gallery_images_count() ) {
|
467 |
+
?>
|
468 |
+
<a class="button button-primary button-large bwg-optimize-image-button" href="<?php echo esc_url($params['booster_page_url']); ?>"><?php _e('Optimize Images', 'photo-gallery'); ?></a>
|
469 |
+
<?php
|
470 |
}
|
471 |
?>
|
472 |
+
</span>
|
473 |
</div>
|
474 |
<div class="clear"></div>
|
475 |
<div class="opacity_image_alt opacity_image_description opacity_image_redirect opacity_resize_image opacity_add_embed opacity_image_desc opacity_bulk_embed bwg_opacity_media"
|
800 |
<span><a onclick="spider_set_input_value('ajax_task', 'image_<?php echo $row->published ? 'unpublish' : 'publish'; ?>');
|
801 |
spider_set_input_value('image_current_id', '<?php echo $row->id; ?>');
|
802 |
spider_ajax_save('bwg_gallery');"><?php echo($row->published ? __('Unpublish', 'photo-gallery') : __('Publish', 'photo-gallery')); ?></a> |</span>
|
803 |
+
<?php
|
804 |
+
if ( WDWLibrary::get_gallery_images_count() ) {
|
805 |
+
?>
|
806 |
+
<span class="bwg-optimize-image-button"><a href="<?php echo ( BWG()->is_demo ? 'javascript:alert(\'' . addslashes(__('This option is disabled in demo.', 'photo-gallery')) . '\');' : $params['booster_page_url'] ); ?>"><?php _e('Optimize', 'photo-gallery'); ?></a> |</span>
|
807 |
+
<?php
|
808 |
+
}
|
809 |
+
?>
|
810 |
<span class="trash"><a onclick="if (confirm('<?php echo addslashes(__('Do you want to delete selected item?', 'photo-gallery')); ?>')) {
|
811 |
spider_set_input_value('ajax_task', 'image_delete');
|
812 |
spider_set_input_value('image_current_id', '<?php echo $row->id; ?>');
|
admin/views/Options.php
CHANGED
@@ -76,6 +76,7 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
76 |
)
|
77 |
);
|
78 |
?>
|
|
|
79 |
<div class="bwg_tabs">
|
80 |
<div id="search_in_tablet">
|
81 |
<div id="div_search_in_options_tablets">
|
@@ -450,9 +451,6 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
450 |
</label>
|
451 |
<input type="radio" class="gallery_type_radio" id="thumbnails_masonry" name="gallery_type" value="thumbnails_masonry" />
|
452 |
<label class="gallery_type_label" for="thumbnails_masonry"><?php echo __('Masonry', 'photo-gallery'); ?></label>
|
453 |
-
<?php if ( !BWG()->is_pro ) { ?>
|
454 |
-
<span class="pro_btn">Premium</span>
|
455 |
-
<?php } ?>
|
456 |
</div>
|
457 |
</span>
|
458 |
<span class="gallery_type bwg-thumbnails_mosaic" onClick="bwg_gallery_type_options('thumbnails_mosaic')" data-img-url="<?php echo BWG()->plugin_url . '/images/upgrade_to_pro_mosaic.png'; ?>" data-title="Mosaic" data-demo-link="https://demo.10web.io/photo-gallery/mosaic/?utm_source=photo_gallery&utm_medium=free_plugin">
|
@@ -463,9 +461,6 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
463 |
</label>
|
464 |
<input type="radio" class="gallery_type_radio" id="thumbnails_mosaic" name="gallery_type" value="thumbnails_mosaic" />
|
465 |
<label class="gallery_type_label" for="thumbnails_mosaic"><?php echo __('Mosaic', 'photo-gallery'); ?></label>
|
466 |
-
<?php if ( !BWG()->is_pro ) { ?>
|
467 |
-
<span class="pro_btn">Premium</span>
|
468 |
-
<?php } ?>
|
469 |
</div>
|
470 |
</span>
|
471 |
<span class="gallery_type" onClick="bwg_gallery_type_options('slideshow')">
|
@@ -496,9 +491,6 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
496 |
</label>
|
497 |
<input type="radio" class="gallery_type_radio" id="blog_style" name="gallery_type" value="blog_style" />
|
498 |
<label class="gallery_type_label" for="blog_style"><?php echo __('Blog Style', 'photo-gallery'); ?></label>
|
499 |
-
<?php if ( !BWG()->is_pro ) { ?>
|
500 |
-
<span class="pro_btn">Premium</span>
|
501 |
-
<?php } ?>
|
502 |
</div>
|
503 |
</span>
|
504 |
<span class="gallery_type bwg-carousel" onClick="bwg_gallery_type_options('carousel')" data-img-url="<?php echo BWG()->plugin_url . '/images/upgrade_to_pro_carousel.png'; ?>" data-title="Carousel" data-demo-link="https://demo.10web.io/photo-gallery/carousel/?utm_source=photo_gallery&utm_medium=free_plugin">
|
@@ -536,7 +528,7 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
536 |
<li class="gallery-type-li" data-value="<?php echo esc_attr($key); ?>">
|
537 |
<img src="<?php echo esc_url(BWG()->plugin_url . '/images/' . $key . '.svg'); ?>">
|
538 |
<span><?php echo esc_html($gallery_type_name); ?> </span>
|
539 |
-
<?php if ( !BWG()->is_pro &&
|
540 |
<span class="pro_btn">Premium</span>
|
541 |
<?php } ?>
|
542 |
</li>
|
@@ -597,9 +589,6 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
597 |
</label>
|
598 |
<input type="radio" class="album_type_radio" id="album_masonry_preview" name="album_type" value="album_masonry_preview" />
|
599 |
<label class="album_type_label" for="album_masonry_preview"><?php echo __('Masonry', 'photo-gallery'); ?></label>
|
600 |
-
<?php if ( !BWG()->is_pro ) { ?>
|
601 |
-
<span class="pro_btn">Premium</span>
|
602 |
-
<?php } ?>
|
603 |
</div>
|
604 |
</span>
|
605 |
<span class="gallery_type" onClick="bwg_album_type_options('album_extended_preview')">
|
@@ -634,9 +623,6 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
634 |
<li class="gallery-type-li" data-value="<?php echo esc_attr($key); ?>">
|
635 |
<img src="<?php echo esc_url(BWG()->plugin_url . '/images/' . $key . '.svg'); ?>">
|
636 |
<span><?php echo $album_type_name; ?> </span>
|
637 |
-
<?php if ( !BWG()->is_pro && ( $key == 'album_masonry_preview' ) ) { ?>
|
638 |
-
<span class="pro_btn">Premium</span>
|
639 |
-
<?php } ?>
|
640 |
</li>
|
641 |
<?php
|
642 |
}
|
@@ -646,28 +632,7 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
646 |
</div>
|
647 |
</div>
|
648 |
</div>
|
649 |
-
<?php
|
650 |
-
if ( !BWG()->is_pro ) {
|
651 |
-
?>
|
652 |
-
<div class="wd-box-content wd-width-100 wd-free-msg bwg-upgrade-view">
|
653 |
-
<div class="upgrade-to-pro-text">
|
654 |
-
<p class="upgrade-to-pro-title"></p>
|
655 |
-
<p class="upgrade-to-pro-desc">
|
656 |
-
<?php _e('Visit demo page for this view');?>
|
657 |
-
</p>
|
658 |
-
<a href="https://10web.io/plugins/wordpress-photo-gallery/?utm_source=photo_gallery/?utm_medium=free_plugin" target="_blank" class="button-upgrade"><?php _e('UPGRADE to Premium');?></a>
|
659 |
-
<a class="button-demo" href="https://demo.10web.io/photo-gallery/" target="_blank" ><?php _e('view demo');?></a>
|
660 |
-
</div>
|
661 |
-
<div class="upgrade-to-img">
|
662 |
-
<img class="desktop pro-views-img" src="">
|
663 |
-
</div>
|
664 |
-
</div>
|
665 |
-
<?php
|
666 |
-
}
|
667 |
-
?>
|
668 |
-
<?php
|
669 |
-
self::gallery_group_options($row);
|
670 |
-
?>
|
671 |
</div>
|
672 |
</div>
|
673 |
</div>
|
@@ -691,28 +656,27 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
691 |
</h2>
|
692 |
<div class="inside bwg-flex-wrap">
|
693 |
<div class="wd-box-content wd-width-100 bwg-flex-wrap">
|
694 |
-
<div class="wd-box-content wd-width-100
|
695 |
<div class="wd-group wd-width-50">
|
696 |
<label class="wd-label" for="autoupdate_interval_hour"><?php _e('Gallery autoupdate interval', 'photo-gallery'); ?></label>
|
697 |
<div class="bwg-flex">
|
698 |
-
<input
|
699 |
<span><?php _e('hour', 'photo-gallery'); ?></span>
|
700 |
-
<input
|
701 |
<span><?php _e('min', 'photo-gallery'); ?></span>
|
702 |
</div>
|
703 |
<p class="description"><?php _e('Set the interval when Instagram galleries will be updated, and will display new posts of your Instagram or Facebook account.', 'photo-gallery') ?></p>
|
704 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
705 |
</div>
|
706 |
</div>
|
707 |
-
<div class="wd-box-content wd-width-50
|
708 |
<div class="wd-box-title">
|
709 |
<strong><?php _e('Instagram', 'photo-gallery'); ?></strong>
|
710 |
</div>
|
711 |
-
<div class="wd-box-content wd-width-100
|
712 |
<div class="wd-group" id="login_with_instagram">
|
713 |
<input id="instagram_access_token" name="instagram_access_token" type="hidden" size="30" value="<?php echo esc_attr($row->instagram_access_token); ?>" readonly />
|
714 |
<?php if ( empty($row->instagram_access_token) ) { ?>
|
715 |
-
<a <?php echo
|
716 |
<?php _e('Connect an Instagram Account', 'photo-gallery') ?>
|
717 |
</a>
|
718 |
<p class="bwg-clear description"><?php _e('Press this button to sign in to your Instagram account. This lets you incorporate Instagram API to your website.', 'photo-gallery') ?></p>
|
@@ -728,7 +692,7 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
728 |
</div>
|
729 |
</div>
|
730 |
<div>
|
731 |
-
<a <?php echo
|
732 |
<span class="button bwg-account-remove"><?php _e('Remove', 'photo-gallery') ?></span>
|
733 |
</a>
|
734 |
</div>
|
@@ -748,7 +712,6 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
748 |
<?php } ?>
|
749 |
</div>
|
750 |
</div>
|
751 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
752 |
</div>
|
753 |
<?php if ( has_action('init_display_facebook_options_bwg') ) { ?>
|
754 |
<div class="wd-box-content wd-width-50">
|
@@ -1486,15 +1449,14 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
1486 |
<p class="description"><?php _e('Activate this option to add a Play button on thumbnails of videos.', 'photo-gallery'); ?></p>
|
1487 |
</div>
|
1488 |
</div>
|
1489 |
-
<div class="wd-box-content wd-width-100
|
1490 |
<div class="wd-group">
|
1491 |
<label class="wd-label"><?php _e('Enable bulk download button', 'photo-gallery'); ?></label>
|
1492 |
<div class="bwg-flex">
|
1493 |
-
<input <?php echo
|
1494 |
-
<input <?php echo
|
1495 |
</div>
|
1496 |
<p class="description"><?php _e('Activate this setting to let users download all images of your gallery with a click.', 'photo-gallery'); ?></p>
|
1497 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
1498 |
<?php
|
1499 |
if ( !$zipArchiveClass) {
|
1500 |
echo WDWLibrary::message_id(0, __('Photo Gallery Export will not work correctly, as ZipArchive PHP extension is disabled on your website. Please contact your hosting provider and ask them to enable it.', 'pgi'),'error');
|
@@ -1521,23 +1483,9 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
1521 |
?>
|
1522 |
</div>
|
1523 |
</div>
|
1524 |
-
<div id="thumbnails_masonry_options" class="
|
1525 |
<div class="wd-box-content wd-width-33">
|
1526 |
-
<?php /*
|
1527 |
<div class="wd-box-content wd-width-100">
|
1528 |
-
<div class="wd-group">
|
1529 |
-
<label class="wd-label"><?php _e('Masonry type', 'photo-gallery'); ?></label>
|
1530 |
-
<div class="bwg-flex">
|
1531 |
-
<input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="masonry" id="masonry_0" value="vertical" <?php if ($row->masonry == "vertical") echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'bwg-vertical-block-masonry', 'masonry_0');" /><label for="masonry_0" class="wd-radio-label"><?php _e('Vertical', 'photo-gallery'); ?></label>
|
1532 |
-
<input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="masonry" id="masonry_1" value="horizontal" <?php if ($row->masonry == "horizontal") echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'bwg-vertical-block-masonry', 'masonry_1');" /><label for="masonry_1" class="wd-radio-label"><?php _e('Horizontal', 'photo-gallery'); ?></label>
|
1533 |
-
</div>
|
1534 |
-
<p class="description"><?php _e('Select the type of Masonry galleries, Vertical or Horizontal.', 'photo-gallery'); ?></p>
|
1535 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
1536 |
-
</div>
|
1537 |
-
</div>
|
1538 |
-
*/
|
1539 |
-
?>
|
1540 |
-
<div class="wd-box-content wd-width-100">
|
1541 |
<div class="wd-group">
|
1542 |
<label class="wd-label" for="masonry_thumb_size"><?php _e('Thumbnail size', 'photo-gallery'); ?></label>
|
1543 |
<div class="bwg-flex">
|
@@ -1692,15 +1640,14 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
1692 |
<p class="description"><?php _e('Choose to show/hide titles of images, or display them on hover.', 'photo-gallery'); ?></p>
|
1693 |
</div>
|
1694 |
</div>
|
1695 |
-
<div class="wd-box-content wd-width-100 bwg-vertical-block-masonry
|
1696 |
<div class="wd-group">
|
1697 |
<label class="wd-label"><?php _e('Show image descriptions', 'photo-gallery'); ?></label>
|
1698 |
<div class="bwg-flex">
|
1699 |
-
<input
|
1700 |
-
<input
|
1701 |
</div>
|
1702 |
<p class="description"><?php _e('Enable this setting to display descriptions under images.', 'photo-gallery'); ?></p>
|
1703 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
1704 |
</div>
|
1705 |
</div>
|
1706 |
<div class="wd-box-content wd-width-100">
|
@@ -1713,15 +1660,14 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
1713 |
<p class="description"><?php _e('Activate this option to add a Play button on thumbnails of videos.', 'photo-gallery'); ?></p>
|
1714 |
</div>
|
1715 |
</div>
|
1716 |
-
<div class="wd-box-content wd-width-100
|
1717 |
<div class="wd-group">
|
1718 |
<label class="wd-label"><?php _e('Enable bulk download button', 'photo-gallery'); ?></label>
|
1719 |
<div class="bwg-flex">
|
1720 |
-
<input <?php echo
|
1721 |
-
<input <?php echo
|
1722 |
</div>
|
1723 |
<p class="description"><?php _e('Activate this setting to let users download all images of your gallery with a click.', 'photo-gallery'); ?></p>
|
1724 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
1725 |
<?php
|
1726 |
if ( !$zipArchiveClass) {
|
1727 |
echo WDWLibrary::message_id(0, __('Photo Gallery Export will not work correctly, as ZipArchive PHP extension is disabled on your website. Please contact your hosting provider and ask them to enable it.', 'pgi'),'error');
|
@@ -1747,38 +1693,35 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
1747 |
?>
|
1748 |
</div>
|
1749 |
</div>
|
1750 |
-
<div id="thumbnails_mosaic_options" class="
|
1751 |
<div class="wd-box-content wd-width-33">
|
1752 |
-
<div class="wd-box-content wd-width-100
|
1753 |
<div class="wd-group">
|
1754 |
<label class="wd-label"><?php _e('Mosaic gallery type', 'photo-gallery'); ?></label>
|
1755 |
<div class="bwg-flex">
|
1756 |
-
<input
|
1757 |
-
<input
|
1758 |
</div>
|
1759 |
<p class="description"><?php _e('Select the type of Mosaic galleries, Vertical or Horizontal.', 'photo-gallery'); ?></p>
|
1760 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
1761 |
</div>
|
1762 |
</div>
|
1763 |
-
<div class="wd-box-content wd-width-100
|
1764 |
<div class="wd-group">
|
1765 |
<label class="wd-label"><?php _e('Resizable mosaic', 'photo-gallery'); ?></label>
|
1766 |
<div class="bwg-flex">
|
1767 |
-
<input
|
1768 |
-
<input
|
1769 |
</div>
|
1770 |
<p class="description"><?php _e('If this setting is enabled, Photo Gallery resizes all thumbnail images on Mosaic galleries, without modifying their initial display.', 'photo-gallery'); ?></p>
|
1771 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
1772 |
</div>
|
1773 |
</div>
|
1774 |
-
<div class="wd-box-content wd-width-100
|
1775 |
<div class="wd-group">
|
1776 |
<label class="wd-label" for="mosaic_total_width"><?php _e('Width of mosaic galleries', 'photo-gallery'); ?></label>
|
1777 |
<div class="bwg-flex">
|
1778 |
-
<input
|
1779 |
</div>
|
1780 |
<p class="description"><?php _e('The total width of mosaic galleries as a percentage of container\'s width.', 'photo-gallery'); ?></p>
|
1781 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
1782 |
</div>
|
1783 |
</div>
|
1784 |
<div class="wd-box-content wd-width-100">
|
@@ -1935,15 +1878,14 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
1935 |
<p class="description"><?php _e('Activate this option to add a Play button on thumbnails of videos.', 'photo-gallery'); ?></p>
|
1936 |
</div>
|
1937 |
</div>
|
1938 |
-
<div class="wd-box-content wd-width-100
|
1939 |
<div class="wd-group">
|
1940 |
<label class="wd-label"><?php _e('Enable bulk download button', 'photo-gallery'); ?></label>
|
1941 |
<div class="bwg-flex">
|
1942 |
-
<input <?php echo
|
1943 |
-
<input <?php echo
|
1944 |
</div>
|
1945 |
<p class="description"><?php _e('Activate this setting to let users download all images of your gallery with a click.', 'photo-gallery'); ?></p>
|
1946 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
1947 |
<?php
|
1948 |
if ( !$zipArchiveClass) {
|
1949 |
echo WDWLibrary::message_id(0, __('Photo Gallery Export will not work correctly, as ZipArchive PHP extension is disabled on your website. Please contact your hosting provider and ask them to enable it.', 'pgi'),'error');
|
@@ -1980,8 +1922,7 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
1980 |
foreach ($effects as $key => $effect) {
|
1981 |
?>
|
1982 |
<option value="<?php echo esc_attr($key); ?>"
|
1983 |
-
<?php
|
1984 |
-
<?php if ($row->slideshow_type == $key) echo 'selected="selected"'; ?>><?php echo __($effect, 'photo-gallery'); ?></option>
|
1985 |
<?php
|
1986 |
}
|
1987 |
?>
|
@@ -2084,36 +2025,33 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
2084 |
</div>
|
2085 |
</div>
|
2086 |
<div class="wd-box-content wd-width-33">
|
2087 |
-
<div class="wd-box-content wd-width-100
|
2088 |
<div class="wd-group">
|
2089 |
<label class="wd-label"><?php _e('Slideshow filmstrip type', 'photo-gallery'); ?></label>
|
2090 |
<div class="bwg-flex">
|
2091 |
-
<input
|
2092 |
-
<input
|
2093 |
-
<input
|
2094 |
</div>
|
2095 |
<p class="description"><?php _e('Select the type for the slideshow filmstrip.', 'photo-gallery'); ?></p>
|
2096 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
2097 |
</div>
|
2098 |
</div>
|
2099 |
-
<div class="wd-box-content wd-width-100
|
2100 |
<div class="wd-group">
|
2101 |
<label class="wd-label" for="slideshow_thumbnails_count"><?php _e('Slideshow thumbnails count', 'photo-gallery'); ?></label>
|
2102 |
<div class="bwg-flex">
|
2103 |
-
<input
|
2104 |
</div>
|
2105 |
<p class="description"><?php _e('Set the number of items that will be displayed in the filmstrip. This will also construct the width of the filmstrip.', 'photo-gallery'); ?></p>
|
2106 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
2107 |
</div>
|
2108 |
</div>
|
2109 |
-
<div class="wd-box-content wd-width-100
|
2110 |
<div class="wd-group">
|
2111 |
<label class="wd-label" for="slideshow_filmstrip_height"><?php _e('Slideshow filmstrip size', 'photo-gallery'); ?></label>
|
2112 |
<div class="bwg-flex">
|
2113 |
-
<input
|
2114 |
</div>
|
2115 |
<p class="description"><?php _e('Set the size of your filmstrip. If the filmstrip is horizontal, this indicates its height, whereas for vertical filmstrips it sets the width.', 'photo-gallery'); ?></p>
|
2116 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
2117 |
</div>
|
2118 |
</div>
|
2119 |
<div class="wd-box-content wd-width-100">
|
@@ -2219,15 +2157,14 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
2219 |
<p class="description"><?php _e('Provide the absolute URL of the audio file you would like to play with your slideshow.', 'photo-gallery'); ?></p>
|
2220 |
</div>
|
2221 |
</div>
|
2222 |
-
<div class="wd-box-content wd-width-100
|
2223 |
<div class="wd-group">
|
2224 |
<label class="wd-label"><?php _e('Enable bulk download button', 'photo-gallery'); ?></label>
|
2225 |
<div class="bwg-flex">
|
2226 |
-
<input <?php echo
|
2227 |
-
<input <?php echo
|
2228 |
</div>
|
2229 |
<p class="description"><?php _e('Activate this setting to let users download all images of your gallery with a click.', 'photo-gallery'); ?></p>
|
2230 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
2231 |
<?php
|
2232 |
if ( !$zipArchiveClass) {
|
2233 |
echo WDWLibrary::message_id(0, __('Photo Gallery Export will not work correctly, as ZipArchive PHP extension is disabled on your website. Please contact your hosting provider and ask them to enable it.', 'pgi'),'error');
|
@@ -2359,15 +2296,14 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
2359 |
<p class="description"><?php _e('Display the descriptions of your galleries by activating this option.', 'photo-gallery'); ?></p>
|
2360 |
</div>
|
2361 |
</div>
|
2362 |
-
<div class="wd-box-content wd-width-100
|
2363 |
<div class="wd-group">
|
2364 |
<label class="wd-label"><?php _e('Enable bulk download button', 'photo-gallery'); ?></label>
|
2365 |
<div class="bwg-flex">
|
2366 |
-
<input <?php echo
|
2367 |
-
<input <?php echo
|
2368 |
</div>
|
2369 |
<p class="description"><?php _e('Activate this setting to let users download all images of your gallery with a click.', 'photo-gallery'); ?></p>
|
2370 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
2371 |
<?php
|
2372 |
if ( !$zipArchiveClass) {
|
2373 |
echo WDWLibrary::message_id(0, __('Photo Gallery Export will not work correctly, as ZipArchive PHP extension is disabled on your website. Please contact your hosting provider and ask them to enable it.', 'pgi'),'error');
|
@@ -2377,42 +2313,39 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
2377 |
</div>
|
2378 |
</div>
|
2379 |
</div>
|
2380 |
-
<div id="blog_style_options" class="
|
2381 |
<div class="wd-box-content wd-width-33">
|
2382 |
-
<div class="wd-box-content wd-width-100
|
2383 |
<div class="wd-group">
|
2384 |
<label class="wd-label" for="blog_style_width"><?php _e('Image width', 'photo-gallery'); ?></label>
|
2385 |
<div class="bwg-flex">
|
2386 |
-
<input
|
2387 |
</div>
|
2388 |
<p class="description"><?php _e('Specify the default width of images in Blog Style view.', 'photo-gallery'); ?></p>
|
2389 |
</div>
|
2390 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
2391 |
</div>
|
2392 |
-
<div class="wd-box-content wd-width-100
|
2393 |
<div class="wd-group">
|
2394 |
<label class="wd-label"><?php _e('Pagination', 'photo-gallery'); ?></label>
|
2395 |
<div class="bwg-flex">
|
2396 |
-
<div><input
|
2397 |
-
<div><input
|
2398 |
-
<div><input
|
2399 |
-
<div><input
|
2400 |
</div>
|
2401 |
<p class="description" id="blog_style_enable_page_0_description"><?php _e('This option removes all types of pagination from your galleries.', 'photo-gallery'); ?></p>
|
2402 |
<p class="description" id="blog_style_enable_page_1_description"><?php _e('Activating this option will add page numbers and next/previous buttons to your galleries.', 'photo-gallery'); ?></p>
|
2403 |
<p class="description" id="blog_style_enable_page_2_description"><?php _e('Adding a Load More button, you can let users display a new set of images from your galleries.', 'photo-gallery'); ?></p>
|
2404 |
<p class="description" id="blog_style_enable_page_3_description"><?php _e('With this option, users can load new images of your galleries simply by scrolling down.', 'photo-gallery'); ?></p>
|
2405 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
2406 |
</div>
|
2407 |
</div>
|
2408 |
-
<div class="wd-box-content wd-width-100
|
2409 |
<div class="wd-group">
|
2410 |
<label class="wd-label" for="blog_style_images_per_page"><?php _e('Images per page', 'photo-gallery'); ?></label>
|
2411 |
<div class="bwg-flex">
|
2412 |
-
<input
|
2413 |
</div>
|
2414 |
<p class="description"><?php _e('Select the number of images displayed per page in Blog Style view.', 'photo-gallery'); ?></p>
|
2415 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
2416 |
</div>
|
2417 |
</div>
|
2418 |
<div class="wd-box-content wd-width-100" id="tr_blog_style_load_more_image_count">
|
@@ -2516,37 +2449,34 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
2516 |
<p class="description"><?php _e('Display the descriptions of your galleries by activating this option.', 'photo-gallery'); ?></p>
|
2517 |
</div>
|
2518 |
</div>
|
2519 |
-
<div class="wd-box-content wd-width-100
|
2520 |
<div class="wd-group">
|
2521 |
<label class="wd-label"><?php _e('Show image title', 'photo-gallery'); ?></label>
|
2522 |
<div class="bwg-flex">
|
2523 |
-
<input
|
2524 |
-
<input
|
2525 |
</div>
|
2526 |
<p class="description"><?php _e('Enable this setting to display titles of images in Blog Style view.', 'photo-gallery'); ?></p>
|
2527 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
2528 |
</div>
|
2529 |
</div>
|
2530 |
-
<div class="wd-box-content wd-width-100
|
2531 |
<div class="wd-group">
|
2532 |
<label class="wd-label"><?php _e('Show image description', 'photo-gallery'); ?></label>
|
2533 |
<div class="bwg-flex">
|
2534 |
-
<input
|
2535 |
-
<input
|
2536 |
</div>
|
2537 |
<p class="description"><?php _e('Enable this setting to show descriptions of images in Blog Style view.', 'photo-gallery'); ?></p>
|
2538 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
2539 |
</div>
|
2540 |
</div>
|
2541 |
-
<div class="wd-box-content wd-width-100
|
2542 |
<div class="wd-group">
|
2543 |
<label class="wd-label"><?php _e('Enable bulk download button', 'photo-gallery'); ?></label>
|
2544 |
<div class="bwg-flex">
|
2545 |
-
<input <?php echo
|
2546 |
-
<input <?php echo
|
2547 |
</div>
|
2548 |
<p class="description"><?php _e('Activate this setting to let users download all images of your gallery with a click.', 'photo-gallery'); ?></p>
|
2549 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
2550 |
<?php
|
2551 |
if ( !$zipArchiveClass) {
|
2552 |
echo WDWLibrary::message_id(0, __('Photo Gallery Export will not work correctly, as ZipArchive PHP extension is disabled on your website. Please contact your hosting provider and ask them to enable it.', 'pgi'),'error');
|
@@ -2556,64 +2486,101 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
2556 |
</div>
|
2557 |
</div>
|
2558 |
</div>
|
2559 |
-
|
2560 |
-
|
2561 |
-
|
2562 |
-
|
2563 |
-
|
2564 |
-
|
2565 |
-
|
2566 |
-
|
2567 |
-
|
2568 |
-
|
2569 |
-
|
2570 |
-
|
2571 |
-
|
2572 |
-
|
2573 |
-
|
2574 |
-
|
2575 |
-
|
2576 |
-
|
2577 |
-
|
2578 |
-
|
2579 |
-
|
2580 |
-
|
2581 |
-
|
2582 |
-
<
|
2583 |
-
|
2584 |
-
|
2585 |
-
|
2586 |
-
|
2587 |
-
|
2588 |
-
|
2589 |
-
|
2590 |
-
|
2591 |
-
|
2592 |
-
|
2593 |
-
|
2594 |
-
|
2595 |
-
|
2596 |
-
|
2597 |
-
|
2598 |
-
|
2599 |
-
|
2600 |
-
|
2601 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2602 |
</div>
|
2603 |
-
<div class="wd-box-content wd-width-33">
|
2604 |
-
<div class="wd-box-content wd-width-100">
|
2605 |
-
<div class="wd-group">
|
2606 |
-
<label class="wd-label" for="carousel_sort_by"><?php _e('Order by', 'photo-gallery'); ?></label>
|
2607 |
-
<div class="wd-width-43">
|
2608 |
-
<select name="carousel_sort_by" id="carousel_sort_by">
|
2609 |
-
<option value="order" <?php if ($row->carousel_sort_by == 'order') echo 'selected="selected"'; ?>><?php _e('Default', 'photo-gallery'); ?></option>
|
2610 |
-
<option value="alt" <?php if ($row->carousel_sort_by == 'alt') echo 'selected="selected"'; ?>><?php _e('Title', 'photo-gallery'); ?></option>
|
2611 |
-
<option value="date" <?php if ($row->carousel_sort_by == 'date') echo 'selected="selected"'; ?>><?php _e('Date', 'photo-gallery'); ?></option>
|
2612 |
-
<option value="filename" <?php if ($row->carousel_sort_by == 'filename') echo 'selected="selected"'; ?>><?php _e('Filename', 'photo-gallery'); ?></option>
|
2613 |
-
<option value="size" <?php if ($row->carousel_sort_by == 'size') echo 'selected="selected"'; ?>><?php _e('Size', 'photo-gallery'); ?></option>
|
2614 |
-
<option value="random" <?php if ($row->carousel_sort_by == 'random') echo 'selected="selected"'; ?>><?php _e('Random', 'photo-gallery'); ?></option>
|
2615 |
-
</select>
|
2616 |
-
</div>
|
2617 |
<div class="wd-width-55">
|
2618 |
<select name="carousel_order_by" id="carousel_order_by">
|
2619 |
<option value="asc" <?php if ($row->carousel_order_by == 'asc') echo 'selected="selected"'; ?>><?php _e('Ascending', 'photo-gallery'); ?></option>
|
@@ -2929,52 +2896,48 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
2929 |
<p class="description"><?php _e('Choose to show/hide titles of galleries/gallery groups, or display them on hover.', 'photo-gallery'); ?></p>
|
2930 |
</div>
|
2931 |
</div>
|
2932 |
-
<div class="wd-box-content wd-width-100
|
2933 |
<div class="wd-group">
|
2934 |
<label class="wd-label" for="album_view_type"><?php _e('Gallery view type', 'photo-gallery'); ?></label>
|
2935 |
-
<select name="album_view_type" id="album_view_type"
|
2936 |
<option value="thumbnail" <?php if ($row->album_view_type == 'thumbnail') echo 'selected="selected"'; ?>><?php _e('Thumbnail', 'photo-gallery'); ?></option>
|
2937 |
<option value="masonry" <?php if ($row->album_view_type == 'masonry') echo 'selected="selected"'; ?>><?php _e('Masonry', 'photo-gallery'); ?></option>
|
2938 |
<option value="mosaic" <?php if ($row->album_view_type == 'mosaic') echo 'selected="selected"'; ?>><?php _e('Mosaic', 'photo-gallery'); ?></option>
|
2939 |
<option value="slideshow" <?php if ($row->album_view_type == 'slideshow') echo 'selected="selected"'; ?>><?php _e('Slideshow', 'photo-gallery'); ?></option>
|
2940 |
<option value="image_browser" <?php if ($row->album_view_type == 'image_browser') echo 'selected="selected"'; ?>><?php _e('Image Browser', 'photo-gallery'); ?></option>
|
2941 |
<option value="blog_style" <?php if ($row->album_view_type == 'blog_style') echo 'selected="selected"'; ?>><?php _e('Blog Style', 'photo-gallery'); ?></option>
|
2942 |
-
<option value="carousel" <?php
|
2943 |
</select>
|
2944 |
<p class="description"><?php _e('Choose the display type for gallery groups, Thumbnails, Masonry, Mosaic, Slideshow, Image browser, Blog style or Carousel.', 'photo-gallery'); ?></p>
|
2945 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
2946 |
</div>
|
2947 |
</div>
|
2948 |
-
<div class="wd-box-content wd-width-100
|
2949 |
<div class="wd-group">
|
2950 |
<label class="wd-label"><?php _e('Mosaic gallery type', 'photo-gallery'); ?></label>
|
2951 |
<div class="bwg-flex">
|
2952 |
-
<input
|
2953 |
-
<input
|
2954 |
</div>
|
2955 |
<p class="description"><?php _e('Select the type of Mosaic galleries, Vertical or Horizontal.', 'photo-gallery'); ?></p>
|
2956 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
2957 |
</div>
|
2958 |
</div>
|
2959 |
-
<div class="wd-box-content wd-width-100
|
2960 |
<div class="wd-group">
|
2961 |
<label class="wd-label"><?php _e('Resizable mosaic', 'photo-gallery'); ?></label>
|
2962 |
<div class="bwg-flex">
|
2963 |
-
<input
|
2964 |
-
<input
|
2965 |
</div>
|
2966 |
<p class="description"><?php _e('If this setting is enabled, Photo Gallery resizes all thumbnail images on Mosaic galleries, without modifying their initial display.', 'photo-gallery'); ?></p>
|
2967 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
2968 |
</div>
|
2969 |
</div>
|
2970 |
-
<div class="wd-box-content wd-width-100
|
2971 |
<div class="wd-group">
|
2972 |
<label class="wd-label" for="album_mosaic_total_width"><?php _e('Width of mosaic galleries', 'photo-gallery'); ?></label>
|
2973 |
<div class="bwg-flex">
|
2974 |
-
<input
|
2975 |
</div>
|
2976 |
<p class="description"><?php _e('The total width of mosaic galleries as a percentage of container\'s width.', 'photo-gallery'); ?></p>
|
2977 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
2978 |
</div>
|
2979 |
</div>
|
2980 |
<div class="wd-box-content wd-width-100">
|
@@ -2998,15 +2961,14 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
2998 |
<p class="description"><?php _e('Activate this option to add a Play button on thumbnails of videos.', 'photo-gallery'); ?></p>
|
2999 |
</div>
|
3000 |
</div>
|
3001 |
-
<div class="wd-box-content wd-width-100
|
3002 |
<div class="wd-group">
|
3003 |
<label class="wd-label"><?php _e('Enable bulk download button', 'photo-gallery'); ?></label>
|
3004 |
<div class="bwg-flex">
|
3005 |
-
<input <?php echo
|
3006 |
-
<input <?php echo
|
3007 |
</div>
|
3008 |
<p class="description"><?php _e('Activate this setting to let users download all images of your gallery with a click.', 'photo-gallery'); ?></p>
|
3009 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
3010 |
<?php
|
3011 |
if ( !$zipArchiveClass) {
|
3012 |
echo WDWLibrary::message_id(0, __('Photo Gallery Export will not work correctly, as ZipArchive PHP extension is disabled on your website. Please contact your hosting provider and ask them to enable it.', 'pgi'),'error');
|
@@ -3033,7 +2995,7 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
3033 |
?>
|
3034 |
</div>
|
3035 |
</div>
|
3036 |
-
<div id="album_masonry_preview_options" class="
|
3037 |
<div class="wd-box-content wd-width-33">
|
3038 |
<div class="wd-box-content wd-width-100">
|
3039 |
<div class="wd-group">
|
@@ -3225,15 +3187,14 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
3225 |
<p class="description"><?php _e('Choose to show/hide titles of images, or display them on hover.', 'photo-gallery'); ?></p>
|
3226 |
</div>
|
3227 |
</div>
|
3228 |
-
<div class="wd-box-content wd-width-100
|
3229 |
<div class="wd-group">
|
3230 |
<label class="wd-label"><?php _e('Enable bulk download button', 'photo-gallery'); ?></label>
|
3231 |
<div class="bwg-flex">
|
3232 |
-
<input <?php echo
|
3233 |
-
<input <?php echo
|
3234 |
</div>
|
3235 |
<p class="description"><?php _e('Activate this setting to let users download all images of your gallery with a click.', 'photo-gallery'); ?></p>
|
3236 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
3237 |
<?php
|
3238 |
if ( !$zipArchiveClass) {
|
3239 |
echo WDWLibrary::message_id(0, __('Photo Gallery Export will not work correctly, as ZipArchive PHP extension is disabled on your website. Please contact your hosting provider and ask them to enable it.', 'pgi'),'error');
|
@@ -3463,10 +3424,10 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
3463 |
<p class="description"><?php _e('Enable this option to show descriptions of galleries/gallery groups in Extended view.', 'photo-gallery'); ?></p>
|
3464 |
</div>
|
3465 |
</div>
|
3466 |
-
<div class="wd-box-content wd-width-100
|
3467 |
<div class="wd-group">
|
3468 |
<label class="wd-label" for="album_extended_view_type"><?php _e('Gallery view type', 'photo-gallery'); ?></label>
|
3469 |
-
<select name="album_extended_view_type" id="album_extended_view_type"
|
3470 |
<option value="thumbnail" <?php if ($row->album_extended_view_type == 'thumbnail') echo 'selected="selected"'; ?>><?php _e('Thumbnail', 'photo-gallery'); ?></option>
|
3471 |
<option value="masonry" <?php if ($row->album_extended_view_type == 'masonry') echo 'selected="selected"'; ?>><?php _e('Masonry', 'photo-gallery'); ?></option>
|
3472 |
<option value="mosaic" <?php if ($row->album_extended_view_type == 'mosaic') echo 'selected="selected"'; ?>><?php _e('Mosaic', 'photo-gallery'); ?></option>
|
@@ -3476,39 +3437,35 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
3476 |
<option value="carousel" <?php if ($row->album_extended_view_type == 'carousel') echo 'selected="selected"'; ?>><?php _e('Carousel', 'photo-gallery'); ?></option>
|
3477 |
</select>
|
3478 |
<p class="description"><?php _e('Choose the display type for gallery groups, Thumbnails, Masonry, Mosaic, Slideshow, Image browser, Blog style or Carousel.', 'photo-gallery'); ?></p>
|
3479 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
3480 |
</div>
|
3481 |
</div>
|
3482 |
-
<div class="wd-box-content wd-width-100
|
3483 |
<div class="wd-group">
|
3484 |
<label class="wd-label"><?php _e('Mosaic gallery type', 'photo-gallery'); ?></label>
|
3485 |
<div class="bwg-flex">
|
3486 |
-
<input
|
3487 |
-
<input
|
3488 |
</div>
|
3489 |
<p class="description"><?php _e('Select the type of Mosaic galleries, Vertical or Horizontal.', 'photo-gallery'); ?></p>
|
3490 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
3491 |
</div>
|
3492 |
</div>
|
3493 |
-
<div class="wd-box-content wd-width-100
|
3494 |
<div class="wd-group">
|
3495 |
<label class="wd-label"><?php _e('Resizable mosaic', 'photo-gallery'); ?></label>
|
3496 |
<div class="bwg-flex">
|
3497 |
-
<input
|
3498 |
-
<input
|
3499 |
</div>
|
3500 |
<p class="description"><?php _e('If this setting is enabled, Photo Gallery resizes all thumbnail images on Mosaic galleries, without modifying their initial display.', 'photo-gallery'); ?></p>
|
3501 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
3502 |
</div>
|
3503 |
</div>
|
3504 |
-
<div class="wd-box-content wd-width-100
|
3505 |
<div class="wd-group">
|
3506 |
<label class="wd-label" for="album_extended_mosaic_total_width"><?php _e('Width of mosaic galleries', 'photo-gallery'); ?></label>
|
3507 |
<div class="bwg-flex">
|
3508 |
-
<input
|
3509 |
</div>
|
3510 |
<p class="description"><?php _e('The total width of mosaic galleries as a percentage of container\'s width.', 'photo-gallery'); ?></p>
|
3511 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
3512 |
</div>
|
3513 |
</div>
|
3514 |
<div class="wd-box-content wd-width-100">
|
@@ -3532,15 +3489,14 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
3532 |
<p class="description"><?php _e('Activate this option to add a Play button on thumbnails of videos.', 'photo-gallery'); ?></p>
|
3533 |
</div>
|
3534 |
</div>
|
3535 |
-
<div class="wd-box-content wd-width-100
|
3536 |
<div class="wd-group">
|
3537 |
<label class="wd-label"><?php _e('Enable bulk download button', 'photo-gallery'); ?></label>
|
3538 |
<div class="bwg-flex">
|
3539 |
-
<input <?php echo
|
3540 |
-
<input <?php echo
|
3541 |
</div>
|
3542 |
<p class="description"><?php _e('Activate this setting to let users download all images of your gallery with a click.', 'photo-gallery'); ?></p>
|
3543 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
3544 |
<?php
|
3545 |
if ( !$zipArchiveClass) {
|
3546 |
echo WDWLibrary::message_id(0, __('Photo Gallery Export will not work correctly, as ZipArchive PHP extension is disabled on your website. Please contact your hosting provider and ask them to enable it.', 'pgi'),'error');
|
@@ -3626,8 +3582,7 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
3626 |
foreach ($effects as $key => $effect) {
|
3627 |
?>
|
3628 |
<option value="<?php echo esc_attr($key); ?>"
|
3629 |
-
<?php
|
3630 |
-
<?php if ($row->popup_type == $key) echo 'selected="selected"'; ?>><?php echo __($effect, 'photo-gallery'); ?></option>
|
3631 |
<?php
|
3632 |
}
|
3633 |
?>
|
@@ -3665,25 +3620,23 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
3665 |
<p class="description"><?php _e('Specify the time interval of autoplay in Photo Gallery lightbox.', 'photo-gallery') ?></p>
|
3666 |
</div>
|
3667 |
</div>
|
3668 |
-
<div class="wd-box-content wd-width-100 bwg-lightbox bwg-lightbox-lightbox
|
3669 |
<div class="wd-group">
|
3670 |
<label class="wd-label"><?php _e('Enable filmstrip', 'photo-gallery'); ?></label>
|
3671 |
<div class="bwg-flex">
|
3672 |
-
<input
|
3673 |
-
<input
|
3674 |
</div>
|
3675 |
<p class="description"><?php _e('Add a filmstrip with image thumbnails to the lightbox of your galleries.', 'photo-gallery') ?></p>
|
3676 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
3677 |
</div>
|
3678 |
</div>
|
3679 |
-
<div class="wd-box-content wd-width-100 bwg-lightbox bwg-lightbox-lightbox
|
3680 |
<div class="wd-group">
|
3681 |
<label class="wd-label" for="popup_filmstrip_height"><?php _e('Filmstrip size', 'photo-gallery'); ?></label>
|
3682 |
<div class="bwg-flex">
|
3683 |
-
<input
|
3684 |
</div>
|
3685 |
<p class="description"><?php _e('Set the size of your filmstrip. If the filmstrip is horizontal, this indicates its height, whereas for vertical filmstrips it sets the width.', 'photo-gallery') ?></p>
|
3686 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
3687 |
</div>
|
3688 |
</div>
|
3689 |
</div>
|
@@ -3823,15 +3776,14 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
3823 |
<p class="description"><?php _e('Choose to display Next/Previous buttons of Photo Gallery lightbox on hover or always.', 'photo-gallery') ?></p>
|
3824 |
</div>
|
3825 |
</div>
|
3826 |
-
<div class="wd-box-content wd-width-100 bwg-lightbox bwg-lightbox-lightbox
|
3827 |
<div class="wd-group">
|
3828 |
<label class="wd-label"><?php _e('Display views counter', 'photo-gallery'); ?></label>
|
3829 |
<div class="bwg-flex">
|
3830 |
-
<input
|
3831 |
-
<input
|
3832 |
</div>
|
3833 |
<p class="description"><?php _e('Show the number of views, when a gallery image was opened in lightbox.', 'photo-gallery') ?></p>
|
3834 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
3835 |
</div>
|
3836 |
</div>
|
3837 |
<div class="wd-box-content wd-width-100 bwg-lightbox bwg-lightbox-lightbox <?php echo BWG()->is_pro ? '' : ' bwg-disabled-option'; ?>" id="tr_popup_rate">
|
@@ -3845,15 +3797,14 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
3845 |
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
3846 |
</div>
|
3847 |
</div>
|
3848 |
-
<div class="wd-box-content wd-width-100 bwg-lightbox bwg-lightbox-lightbox
|
3849 |
<div class="wd-group">
|
3850 |
<label class="wd-label"><?php _e('Enable zoom', 'photo-gallery'); ?></label>
|
3851 |
<div class="bwg-flex">
|
3852 |
-
<input
|
3853 |
-
<input
|
3854 |
</div>
|
3855 |
<p class="description"><?php _e('Allow users to zoom images in Photo Gallery lightbox.', 'photo-gallery') ?></p>
|
3856 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
3857 |
</div>
|
3858 |
</div>
|
3859 |
</div>
|
@@ -3898,69 +3849,63 @@ class OptionsView_bwg extends AdminView_bwg {
|
|
3898 |
<p class="description"><?php _e('Activate looping to start lightbox navigation from the beginning when users reach its last image.', 'photo-gallery') ?></p>
|
3899 |
</div>
|
3900 |
</div>
|
3901 |
-
<div class="wd-box-content wd-width-100 bwg-lightbox bwg-lightbox-lightbox
|
3902 |
<div class="wd-group">
|
3903 |
-
<label class="wd-label"><?php _e('Enable', 'photo-gallery');
|
3904 |
<div class="bwg-flex">
|
3905 |
-
<input
|
3906 |
-
<input
|
3907 |
</div>
|
3908 |
<p class="description"><?php _e('Display AddThis on Photo Gallery lightbox by activating this option.', 'photo-gallery') ?></p>
|
3909 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
3910 |
</div>
|
3911 |
</div>
|
3912 |
-
<div class="wd-box-content wd-width-100 bwg-lightbox bwg-lightbox-lightbox
|
3913 |
<div class="wd-group">
|
3914 |
-
<label class="wd-label" for="addthis_profile_id"
|
3915 |
<div class="bwg-flex">
|
3916 |
-
<input
|
3917 |
</div>
|
3918 |
<p class="description"><?php _e('Provide the ID of your profile to connect to AddThis.', 'photo-gallery'); ?><br><?php echo sprintf(__('Create an account %s.', 'photo-gallery'), '<a href="https://www.addthis.com/register" target="_blank">' . __('here', 'photo-gallery') . '</a>'); ?></p>
|
3919 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
3920 |
</div>
|
3921 |
</div>
|
3922 |
-
<div class="wd-box-content wd-width-100 bwg-lightbox bwg-lightbox-lightbox
|
3923 |
<div class="wd-group">
|
3924 |
<label class="wd-label"><?php _e('Show Facebook button', 'photo-gallery'); ?></label>
|
3925 |
<div class="bwg-flex">
|
3926 |
-
<input
|
3927 |
-
<input
|
3928 |
</div>
|
3929 |
<p class="description"><?php _e('Enabling this setting will add Facebook sharing button to Photo Gallery lightbox.', 'photo-gallery') ?></p>
|
3930 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
3931 |
</div>
|
3932 |
</div>
|
3933 |
-
<div class="wd-box-content wd-width-100 bwg-lightbox bwg-lightbox-lightbox
|
3934 |
<div class="wd-group">
|
3935 |
<label class="wd-label"><?php _e('Show Twitter button', 'photo-gallery'); ?></label>
|
3936 |
<div class="bwg-flex">
|
3937 |
-
<input
|
3938 |
-
<input
|
3939 |
</div>
|
3940 |
<p class="description"><?php _e('Enable this setting to add Tweet button to Photo Gallery lightbox.', 'photo-gallery') ?></p>
|
3941 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
3942 |
</div>
|
3943 |
</div>
|
3944 |
-
<div class="wd-box-content wd-width-100 bwg-lightbox bwg-lightbox-lightbox
|
3945 |
<div class="wd-group">
|
3946 |
<label class="wd-label"><?php _e('Show Pinterest button', 'photo-gallery'); ?></label>
|
3947 |
<div class="bwg-flex">
|
3948 |
-
<input
|
3949 |
-
<input
|
3950 |
</div>
|
3951 |
<p class="description"><?php _e('Activate Pin button of Photo Gallery lightbox by enabling this setting.', 'photo-gallery') ?></p>
|
3952 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
3953 |
</div>
|
3954 |
</div>
|
3955 |
-
<div class="wd-box-content wd-width-100 bwg-lightbox bwg-lightbox-lightbox
|
3956 |
<div class="wd-group">
|
3957 |
<label class="wd-label"><?php _e('Show Tumblr button', 'photo-gallery'); ?></label>
|
3958 |
<div class="bwg-flex">
|
3959 |
-
<input
|
3960 |
-
<input
|
3961 |
</div>
|
3962 |
<p class="description"><?php _e('Allow users to share images on Tumblr from Photo Gallery lightbox by activating this setting.', 'photo-gallery') ?></p>
|
3963 |
-
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
3964 |
</div>
|
3965 |
</div>
|
3966 |
<?php
|
76 |
)
|
77 |
);
|
78 |
?>
|
79 |
+
<?php echo $this->booster_top_banner(); ?>
|
80 |
<div class="bwg_tabs">
|
81 |
<div id="search_in_tablet">
|
82 |
<div id="div_search_in_options_tablets">
|
451 |
</label>
|
452 |
<input type="radio" class="gallery_type_radio" id="thumbnails_masonry" name="gallery_type" value="thumbnails_masonry" />
|
453 |
<label class="gallery_type_label" for="thumbnails_masonry"><?php echo __('Masonry', 'photo-gallery'); ?></label>
|
|
|
|
|
|
|
454 |
</div>
|
455 |
</span>
|
456 |
<span class="gallery_type bwg-thumbnails_mosaic" onClick="bwg_gallery_type_options('thumbnails_mosaic')" data-img-url="<?php echo BWG()->plugin_url . '/images/upgrade_to_pro_mosaic.png'; ?>" data-title="Mosaic" data-demo-link="https://demo.10web.io/photo-gallery/mosaic/?utm_source=photo_gallery&utm_medium=free_plugin">
|
461 |
</label>
|
462 |
<input type="radio" class="gallery_type_radio" id="thumbnails_mosaic" name="gallery_type" value="thumbnails_mosaic" />
|
463 |
<label class="gallery_type_label" for="thumbnails_mosaic"><?php echo __('Mosaic', 'photo-gallery'); ?></label>
|
|
|
|
|
|
|
464 |
</div>
|
465 |
</span>
|
466 |
<span class="gallery_type" onClick="bwg_gallery_type_options('slideshow')">
|
491 |
</label>
|
492 |
<input type="radio" class="gallery_type_radio" id="blog_style" name="gallery_type" value="blog_style" />
|
493 |
<label class="gallery_type_label" for="blog_style"><?php echo __('Blog Style', 'photo-gallery'); ?></label>
|
|
|
|
|
|
|
494 |
</div>
|
495 |
</span>
|
496 |
<span class="gallery_type bwg-carousel" onClick="bwg_gallery_type_options('carousel')" data-img-url="<?php echo BWG()->plugin_url . '/images/upgrade_to_pro_carousel.png'; ?>" data-title="Carousel" data-demo-link="https://demo.10web.io/photo-gallery/carousel/?utm_source=photo_gallery&utm_medium=free_plugin">
|
528 |
<li class="gallery-type-li" data-value="<?php echo esc_attr($key); ?>">
|
529 |
<img src="<?php echo esc_url(BWG()->plugin_url . '/images/' . $key . '.svg'); ?>">
|
530 |
<span><?php echo esc_html($gallery_type_name); ?> </span>
|
531 |
+
<?php if ( !BWG()->is_pro && $key == 'carousel' ) { ?>
|
532 |
<span class="pro_btn">Premium</span>
|
533 |
<?php } ?>
|
534 |
</li>
|
589 |
</label>
|
590 |
<input type="radio" class="album_type_radio" id="album_masonry_preview" name="album_type" value="album_masonry_preview" />
|
591 |
<label class="album_type_label" for="album_masonry_preview"><?php echo __('Masonry', 'photo-gallery'); ?></label>
|
|
|
|
|
|
|
592 |
</div>
|
593 |
</span>
|
594 |
<span class="gallery_type" onClick="bwg_album_type_options('album_extended_preview')">
|
623 |
<li class="gallery-type-li" data-value="<?php echo esc_attr($key); ?>">
|
624 |
<img src="<?php echo esc_url(BWG()->plugin_url . '/images/' . $key . '.svg'); ?>">
|
625 |
<span><?php echo $album_type_name; ?> </span>
|
|
|
|
|
|
|
626 |
</li>
|
627 |
<?php
|
628 |
}
|
632 |
</div>
|
633 |
</div>
|
634 |
</div>
|
635 |
+
<?php self::gallery_group_options($row); ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
636 |
</div>
|
637 |
</div>
|
638 |
</div>
|
656 |
</h2>
|
657 |
<div class="inside bwg-flex-wrap">
|
658 |
<div class="wd-box-content wd-width-100 bwg-flex-wrap">
|
659 |
+
<div class="wd-box-content wd-width-100">
|
660 |
<div class="wd-group wd-width-50">
|
661 |
<label class="wd-label" for="autoupdate_interval_hour"><?php _e('Gallery autoupdate interval', 'photo-gallery'); ?></label>
|
662 |
<div class="bwg-flex">
|
663 |
+
<input type="number" id="autoupdate_interval_hour" name="autoupdate_interval_hour" min="0" max="24" value="<?php echo floor($row->autoupdate_interval / 60); ?>" />
|
664 |
<span><?php _e('hour', 'photo-gallery'); ?></span>
|
665 |
+
<input type="number" id="autoupdate_interval_min" name="autoupdate_interval_min" min="0" max="59" value="<?php echo floor($row->autoupdate_interval % 60); ?>" />
|
666 |
<span><?php _e('min', 'photo-gallery'); ?></span>
|
667 |
</div>
|
668 |
<p class="description"><?php _e('Set the interval when Instagram galleries will be updated, and will display new posts of your Instagram or Facebook account.', 'photo-gallery') ?></p>
|
|
|
669 |
</div>
|
670 |
</div>
|
671 |
+
<div class="wd-box-content wd-width-50">
|
672 |
<div class="wd-box-title">
|
673 |
<strong><?php _e('Instagram', 'photo-gallery'); ?></strong>
|
674 |
</div>
|
675 |
+
<div class="wd-box-content wd-width-100">
|
676 |
<div class="wd-group" id="login_with_instagram">
|
677 |
<input id="instagram_access_token" name="instagram_access_token" type="hidden" size="30" value="<?php echo esc_attr($row->instagram_access_token); ?>" readonly />
|
678 |
<?php if ( empty($row->instagram_access_token) ) { ?>
|
679 |
+
<a href="<?php echo $instagram_return_url; ?>" class="bwg-connect-instagram">
|
680 |
<?php _e('Connect an Instagram Account', 'photo-gallery') ?>
|
681 |
</a>
|
682 |
<p class="bwg-clear description"><?php _e('Press this button to sign in to your Instagram account. This lets you incorporate Instagram API to your website.', 'photo-gallery') ?></p>
|
692 |
</div>
|
693 |
</div>
|
694 |
<div>
|
695 |
+
<a href="<?php echo $instagram_reset_href; ?>" onClick="if (confirm('<?php echo addslashes(__('Are you sure you want to reset access token, after resetting it you will need to log in with Instagram again for using plugin', 'photo-gallery')); ?>')){ return true; } else { return false; }">
|
696 |
<span class="button bwg-account-remove"><?php _e('Remove', 'photo-gallery') ?></span>
|
697 |
</a>
|
698 |
</div>
|
712 |
<?php } ?>
|
713 |
</div>
|
714 |
</div>
|
|
|
715 |
</div>
|
716 |
<?php if ( has_action('init_display_facebook_options_bwg') ) { ?>
|
717 |
<div class="wd-box-content wd-width-50">
|
1449 |
<p class="description"><?php _e('Activate this option to add a Play button on thumbnails of videos.', 'photo-gallery'); ?></p>
|
1450 |
</div>
|
1451 |
</div>
|
1452 |
+
<div class="wd-box-content wd-width-100">
|
1453 |
<div class="wd-group">
|
1454 |
<label class="wd-label"><?php _e('Enable bulk download button', 'photo-gallery'); ?></label>
|
1455 |
<div class="bwg-flex">
|
1456 |
+
<input <?php echo !$zipArchiveClass ? 'disabled="disabled"' : ''; ?> type="radio" name="gallery_download" id="gallery_download_1" value="1" <?php if ($row->gallery_download) echo 'checked="checked"'; ?> /><label for="gallery_download_1" class="wd-radio-label"><?php _e('Yes', 'photo-gallery'); ?></label>
|
1457 |
+
<input <?php echo !$zipArchiveClass ? 'disabled="disabled"' : ''; ?> type="radio" name="gallery_download" id="gallery_download_0" value="0" <?php if (!$row->gallery_download) echo 'checked="checked"'; ?> /><label for="gallery_download_0" class="wd-radio-label"><?php _e('No', 'photo-gallery'); ?></label>
|
1458 |
</div>
|
1459 |
<p class="description"><?php _e('Activate this setting to let users download all images of your gallery with a click.', 'photo-gallery'); ?></p>
|
|
|
1460 |
<?php
|
1461 |
if ( !$zipArchiveClass) {
|
1462 |
echo WDWLibrary::message_id(0, __('Photo Gallery Export will not work correctly, as ZipArchive PHP extension is disabled on your website. Please contact your hosting provider and ask them to enable it.', 'pgi'),'error');
|
1483 |
?>
|
1484 |
</div>
|
1485 |
</div>
|
1486 |
+
<div id="thumbnails_masonry_options" class="gallery_options wd-box-content wd-width-100 bwg-flex-wrap">
|
1487 |
<div class="wd-box-content wd-width-33">
|
|
|
1488 |
<div class="wd-box-content wd-width-100">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1489 |
<div class="wd-group">
|
1490 |
<label class="wd-label" for="masonry_thumb_size"><?php _e('Thumbnail size', 'photo-gallery'); ?></label>
|
1491 |
<div class="bwg-flex">
|
1640 |
<p class="description"><?php _e('Choose to show/hide titles of images, or display them on hover.', 'photo-gallery'); ?></p>
|
1641 |
</div>
|
1642 |
</div>
|
1643 |
+
<div class="wd-box-content wd-width-100 bwg-vertical-block-masonry" id="tr_show_masonry_thumb_description">
|
1644 |
<div class="wd-group">
|
1645 |
<label class="wd-label"><?php _e('Show image descriptions', 'photo-gallery'); ?></label>
|
1646 |
<div class="bwg-flex">
|
1647 |
+
<input type="radio" name="show_masonry_thumb_description" id="masonry_thumb_desc_1" value="1" <?php if ($row->show_masonry_thumb_description) echo 'checked="checked"'; ?> /><label for="masonry_thumb_desc_1" class="wd-radio-label"><?php _e('Yes', 'photo-gallery'); ?></label>
|
1648 |
+
<input type="radio" name="show_masonry_thumb_description" id="masonry_thumb_desc_0" value="0" <?php if (!$row->show_masonry_thumb_description) echo 'checked="checked"'; ?> /><label for="masonry_thumb_desc_0" class="wd-radio-label"><?php _e('No', 'photo-gallery'); ?></label>
|
1649 |
</div>
|
1650 |
<p class="description"><?php _e('Enable this setting to display descriptions under images.', 'photo-gallery'); ?></p>
|
|
|
1651 |
</div>
|
1652 |
</div>
|
1653 |
<div class="wd-box-content wd-width-100">
|
1660 |
<p class="description"><?php _e('Activate this option to add a Play button on thumbnails of videos.', 'photo-gallery'); ?></p>
|
1661 |
</div>
|
1662 |
</div>
|
1663 |
+
<div class="wd-box-content wd-width-100">
|
1664 |
<div class="wd-group">
|
1665 |
<label class="wd-label"><?php _e('Enable bulk download button', 'photo-gallery'); ?></label>
|
1666 |
<div class="bwg-flex">
|
1667 |
+
<input <?php echo !$zipArchiveClass ? 'disabled="disabled"' : ''; ?> type="radio" name="masonry_gallery_download" id="masonry_gallery_download_1" value="1" <?php if ($row->masonry_gallery_download) echo 'checked="checked"'; ?> /><label for="masonry_gallery_download_1" class="wd-radio-label"><?php _e('Yes', 'photo-gallery'); ?></label>
|
1668 |
+
<input <?php echo !$zipArchiveClass ? 'disabled="disabled"' : ''; ?> type="radio" name="masonry_gallery_download" id="masonry_gallery_download_0" value="0" <?php if (!$row->masonry_gallery_download) echo 'checked="checked"'; ?> /><label for="masonry_gallery_download_0" class="wd-radio-label"><?php _e('No', 'photo-gallery'); ?></label>
|
1669 |
</div>
|
1670 |
<p class="description"><?php _e('Activate this setting to let users download all images of your gallery with a click.', 'photo-gallery'); ?></p>
|
|
|
1671 |
<?php
|
1672 |
if ( !$zipArchiveClass) {
|
1673 |
echo WDWLibrary::message_id(0, __('Photo Gallery Export will not work correctly, as ZipArchive PHP extension is disabled on your website. Please contact your hosting provider and ask them to enable it.', 'pgi'),'error');
|
1693 |
?>
|
1694 |
</div>
|
1695 |
</div>
|
1696 |
+
<div id="thumbnails_mosaic_options" class="gallery_options wd-box-content wd-width-100 bwg-flex-wrap">
|
1697 |
<div class="wd-box-content wd-width-33">
|
1698 |
+
<div class="wd-box-content wd-width-100">
|
1699 |
<div class="wd-group">
|
1700 |
<label class="wd-label"><?php _e('Mosaic gallery type', 'photo-gallery'); ?></label>
|
1701 |
<div class="bwg-flex">
|
1702 |
+
<input type="radio" name="mosaic" id="mosaic_0" value="vertical" <?php if ($row->mosaic == "vertical") echo 'checked="checked"'; ?> /><label for="mosaic_0" class="wd-radio-label"><?php _e('Vertical', 'photo-gallery'); ?></label>
|
1703 |
+
<input type="radio" name="mosaic" id="mosaic_1" value="horizontal" <?php if ($row->mosaic == "horizontal") echo 'checked="checked"'; ?> /><label for="mosaic_1" class="wd-radio-label"><?php _e('Horizontal', 'photo-gallery'); ?></label>
|
1704 |
</div>
|
1705 |
<p class="description"><?php _e('Select the type of Mosaic galleries, Vertical or Horizontal.', 'photo-gallery'); ?></p>
|
|
|
1706 |
</div>
|
1707 |
</div>
|
1708 |
+
<div class="wd-box-content wd-width-100">
|
1709 |
<div class="wd-group">
|
1710 |
<label class="wd-label"><?php _e('Resizable mosaic', 'photo-gallery'); ?></label>
|
1711 |
<div class="bwg-flex">
|
1712 |
+
<input type="radio" name="resizable_mosaic" id="resizable_mosaic_1" value="1" <?php if ($row->resizable_mosaic == "1") echo 'checked="checked"'; ?> /><label for="resizable_mosaic_1" class="wd-radio-label"><?php _e('Yes', 'photo-gallery'); ?></label>
|
1713 |
+
<input type="radio" name="resizable_mosaic" id="resizable_mosaic_0" value="0" <?php if ($row->resizable_mosaic == "0") echo 'checked="checked"'; ?> /><label for="resizable_mosaic_0" class="wd-radio-label"><?php _e('No', 'photo-gallery'); ?></label>
|
1714 |
</div>
|
1715 |
<p class="description"><?php _e('If this setting is enabled, Photo Gallery resizes all thumbnail images on Mosaic galleries, without modifying their initial display.', 'photo-gallery'); ?></p>
|
|
|
1716 |
</div>
|
1717 |
</div>
|
1718 |
+
<div class="wd-box-content wd-width-100">
|
1719 |
<div class="wd-group">
|
1720 |
<label class="wd-label" for="mosaic_total_width"><?php _e('Width of mosaic galleries', 'photo-gallery'); ?></label>
|
1721 |
<div class="bwg-flex">
|
1722 |
+
<input type="number" name="mosaic_total_width" id="mosaic_total_width" value="<?php echo intval($row->mosaic_total_width); ?>" min="0" /><span>%</span>
|
1723 |
</div>
|
1724 |
<p class="description"><?php _e('The total width of mosaic galleries as a percentage of container\'s width.', 'photo-gallery'); ?></p>
|
|
|
1725 |
</div>
|
1726 |
</div>
|
1727 |
<div class="wd-box-content wd-width-100">
|
1878 |
<p class="description"><?php _e('Activate this option to add a Play button on thumbnails of videos.', 'photo-gallery'); ?></p>
|
1879 |
</div>
|
1880 |
</div>
|
1881 |
+
<div class="wd-box-content wd-width-100">
|
1882 |
<div class="wd-group">
|
1883 |
<label class="wd-label"><?php _e('Enable bulk download button', 'photo-gallery'); ?></label>
|
1884 |
<div class="bwg-flex">
|
1885 |
+
<input <?php echo !$zipArchiveClass ? 'disabled="disabled"' : ''; ?> type="radio" name="mosaic_gallery_download" id="mosaic_gallery_download_1" value="1" <?php if ($row->mosaic_gallery_download) echo 'checked="checked"'; ?> /><label for="mosaic_gallery_download_1" class="wd-radio-label"><?php _e('Yes', 'photo-gallery'); ?></label>
|
1886 |
+
<input <?php echo !$zipArchiveClass ? 'disabled="disabled"' : ''; ?> type="radio" name="mosaic_gallery_download" id="mosaic_gallery_download_0" value="0" <?php if (!$row->mosaic_gallery_download) echo 'checked="checked"'; ?> /><label for="mosaic_gallery_download_0" class="wd-radio-label"><?php _e('No', 'photo-gallery'); ?></label>
|
1887 |
</div>
|
1888 |
<p class="description"><?php _e('Activate this setting to let users download all images of your gallery with a click.', 'photo-gallery'); ?></p>
|
|
|
1889 |
<?php
|
1890 |
if ( !$zipArchiveClass) {
|
1891 |
echo WDWLibrary::message_id(0, __('Photo Gallery Export will not work correctly, as ZipArchive PHP extension is disabled on your website. Please contact your hosting provider and ask them to enable it.', 'pgi'),'error');
|
1922 |
foreach ($effects as $key => $effect) {
|
1923 |
?>
|
1924 |
<option value="<?php echo esc_attr($key); ?>"
|
1925 |
+
<?php if ($row->slideshow_type == $key) echo 'selected="selected"'; ?>><?php echo esc_html($effect); ?></option>
|
|
|
1926 |
<?php
|
1927 |
}
|
1928 |
?>
|
2025 |
</div>
|
2026 |
</div>
|
2027 |
<div class="wd-box-content wd-width-33">
|
2028 |
+
<div class="wd-box-content wd-width-100">
|
2029 |
<div class="wd-group">
|
2030 |
<label class="wd-label"><?php _e('Slideshow filmstrip type', 'photo-gallery'); ?></label>
|
2031 |
<div class="bwg-flex">
|
2032 |
+
<input type="radio" name="slideshow_filmstrip_type" id="slideshow_filmstrip_none" value="0" <?php if (!$row->slideshow_filmstrip_type) echo 'checked="checked"'; ?> onclick="bwg_enable_disable('none','tr_slideshow_thumbnails_count','slideshow_filmstrip_none'); bwg_enable_disable('none','tr_slideshow_filmstrip_height','slideshow_filmstrip_none');" /><label for="slideshow_filmstrip_none" class="wd-radio-label"><?php _e('None', 'photo-gallery'); ?></label>
|
2033 |
+
<input type="radio" name="slideshow_filmstrip_type" id="slideshow_filmstrip_fix_dimension" value="1" <?php if ($row->slideshow_filmstrip_type && $row->slideshow_filmstrip_type == 1) echo 'checked="checked"'; ?> onclick="bwg_enable_disable('none','tr_slideshow_thumbnails_count','slideshow_filmstrip_fix_dimension'); bwg_enable_disable('','tr_slideshow_filmstrip_height','slideshow_filmstrip_fix_dimension');" /><label for="slideshow_filmstrip_fix_dimension" class="wd-radio-label"><?php _e('Fix dimension', 'photo-gallery'); ?></label>
|
2034 |
+
<input type="radio" name="slideshow_filmstrip_type" id="slideshow_filmstrip_fix_count" value="2" <?php if ($row->slideshow_filmstrip_type && $row->slideshow_filmstrip_type == 2) echo 'checked="checked"'; ?> onclick="bwg_enable_disable('','tr_slideshow_thumbnails_count','slideshow_filmstrip_fix_count'); bwg_enable_disable('none','tr_slideshow_filmstrip_height','slideshow_filmstrip_fix_count');" /><label for="slideshow_filmstrip_fix_count" class="wd-radio-label"><?php _e('Fix count', 'photo-gallery'); ?></label>
|
2035 |
</div>
|
2036 |
<p class="description"><?php _e('Select the type for the slideshow filmstrip.', 'photo-gallery'); ?></p>
|
|
|
2037 |
</div>
|
2038 |
</div>
|
2039 |
+
<div class="wd-box-content wd-width-100" id="tr_slideshow_thumbnails_count">
|
2040 |
<div class="wd-group">
|
2041 |
<label class="wd-label" for="slideshow_thumbnails_count"><?php _e('Slideshow thumbnails count', 'photo-gallery'); ?></label>
|
2042 |
<div class="bwg-flex">
|
2043 |
+
<input type="number" name="slideshow_thumbnails_count" id="slideshow_thumbnails_count" value="<?php echo intval($row->slideshow_thumbnails_count); ?>" min="1" />
|
2044 |
</div>
|
2045 |
<p class="description"><?php _e('Set the number of items that will be displayed in the filmstrip. This will also construct the width of the filmstrip.', 'photo-gallery'); ?></p>
|
|
|
2046 |
</div>
|
2047 |
</div>
|
2048 |
+
<div class="wd-box-content wd-width-100" id="tr_slideshow_filmstrip_height">
|
2049 |
<div class="wd-group">
|
2050 |
<label class="wd-label" for="slideshow_filmstrip_height"><?php _e('Slideshow filmstrip size', 'photo-gallery'); ?></label>
|
2051 |
<div class="bwg-flex">
|
2052 |
+
<input type="number" name="slideshow_filmstrip_height" id="slideshow_filmstrip_height" value="<?php echo intval($row->slideshow_filmstrip_height); ?>" min="0" /><span>px</span>
|
2053 |
</div>
|
2054 |
<p class="description"><?php _e('Set the size of your filmstrip. If the filmstrip is horizontal, this indicates its height, whereas for vertical filmstrips it sets the width.', 'photo-gallery'); ?></p>
|
|
|
2055 |
</div>
|
2056 |
</div>
|
2057 |
<div class="wd-box-content wd-width-100">
|
2157 |
<p class="description"><?php _e('Provide the absolute URL of the audio file you would like to play with your slideshow.', 'photo-gallery'); ?></p>
|
2158 |
</div>
|
2159 |
</div>
|
2160 |
+
<div class="wd-box-content wd-width-100">
|
2161 |
<div class="wd-group">
|
2162 |
<label class="wd-label"><?php _e('Enable bulk download button', 'photo-gallery'); ?></label>
|
2163 |
<div class="bwg-flex">
|
2164 |
+
<input <?php echo !$zipArchiveClass ? 'disabled="disabled"' : ''; ?> type="radio" name="slideshow_gallery_download" id="slideshow_gallery_download_1" value="1" <?php if ($row->slideshow_gallery_download) echo 'checked="checked"'; ?> /><label for="slideshow_gallery_download_1" class="wd-radio-label"><?php _e('Yes', 'photo-gallery'); ?></label>
|
2165 |
+
<input <?php echo !$zipArchiveClass ? 'disabled="disabled"' : ''; ?> type="radio" name="slideshow_gallery_download" id="slideshow_gallery_download_0" value="0" <?php if (!$row->slideshow_gallery_download) echo 'checked="checked"'; ?> /><label for="slideshow_gallery_download_0" class="wd-radio-label"><?php _e('No', 'photo-gallery'); ?></label>
|
2166 |
</div>
|
2167 |
<p class="description"><?php _e('Activate this setting to let users download all images of your gallery with a click.', 'photo-gallery'); ?></p>
|
|
|
2168 |
<?php
|
2169 |
if ( !$zipArchiveClass) {
|
2170 |
echo WDWLibrary::message_id(0, __('Photo Gallery Export will not work correctly, as ZipArchive PHP extension is disabled on your website. Please contact your hosting provider and ask them to enable it.', 'pgi'),'error');
|
2296 |
<p class="description"><?php _e('Display the descriptions of your galleries by activating this option.', 'photo-gallery'); ?></p>
|
2297 |
</div>
|
2298 |
</div>
|
2299 |
+
<div class="wd-box-content wd-width-100">
|
2300 |
<div class="wd-group">
|
2301 |
<label class="wd-label"><?php _e('Enable bulk download button', 'photo-gallery'); ?></label>
|
2302 |
<div class="bwg-flex">
|
2303 |
+
<input <?php echo !$zipArchiveClass ? 'disabled="disabled"' : ''; ?> type="radio" name="image_browser_gallery_download" id="image_browser_gallery_download_1" value="1" <?php if ($row->image_browser_gallery_download) echo 'checked="checked"'; ?> /><label for="image_browser_gallery_download_1" class="wd-radio-label"><?php _e('Yes', 'photo-gallery'); ?></label>
|
2304 |
+
<input <?php echo !$zipArchiveClass ? 'disabled="disabled"' : ''; ?> type="radio" name="image_browser_gallery_download" id="image_browser_gallery_download_0" value="0" <?php if (!$row->image_browser_gallery_download) echo 'checked="checked"'; ?> /><label for="image_browser_gallery_download_0" class="wd-radio-label"><?php _e('No', 'photo-gallery'); ?></label>
|
2305 |
</div>
|
2306 |
<p class="description"><?php _e('Activate this setting to let users download all images of your gallery with a click.', 'photo-gallery'); ?></p>
|
|
|
2307 |
<?php
|
2308 |
if ( !$zipArchiveClass) {
|
2309 |
echo WDWLibrary::message_id(0, __('Photo Gallery Export will not work correctly, as ZipArchive PHP extension is disabled on your website. Please contact your hosting provider and ask them to enable it.', 'pgi'),'error');
|
2313 |
</div>
|
2314 |
</div>
|
2315 |
</div>
|
2316 |
+
<div id="blog_style_options" class="gallery_options wd-box-content wd-width-100 bwg-flex-wrap">
|
2317 |
<div class="wd-box-content wd-width-33">
|
2318 |
+
<div class="wd-box-content wd-width-100">
|
2319 |
<div class="wd-group">
|
2320 |
<label class="wd-label" for="blog_style_width"><?php _e('Image width', 'photo-gallery'); ?></label>
|
2321 |
<div class="bwg-flex">
|
2322 |
+
<input type="number" name="blog_style_width" id="blog_style_width" value="<?php echo intval($row->blog_style_width); ?>" min="0" /><span>px</span>
|
2323 |
</div>
|
2324 |
<p class="description"><?php _e('Specify the default width of images in Blog Style view.', 'photo-gallery'); ?></p>
|
2325 |
</div>
|
|
|
2326 |
</div>
|
2327 |
+
<div class="wd-box-content wd-width-100">
|
2328 |
<div class="wd-group">
|
2329 |
<label class="wd-label"><?php _e('Pagination', 'photo-gallery'); ?></label>
|
2330 |
<div class="bwg-flex">
|
2331 |
+
<div><input type="radio" name="blog_style_enable_page" id="blog_style_enable_page_0" value="0" <?php if ($row->blog_style_enable_page == '0') echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_blog_style_load_more_image_count', 'blog_style_enable_page_0'); bwg_pagination_description(this);" /><label for="blog_style_enable_page_0" class="wd-radio-label"><?php _e('None', 'photo-gallery'); ?></label></div>
|
2332 |
+
<div><input type="radio" name="blog_style_enable_page" id="blog_style_enable_page_1" value="1" <?php if ($row->blog_style_enable_page == '1') echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_blog_style_load_more_image_count', 'blog_style_enable_page_1'); bwg_pagination_description(this);" /><label for="blog_style_enable_page_1" class="wd-radio-label"><?php _e('Simple', 'photo-gallery'); ?></label></div>
|
2333 |
+
<div><input type="radio" name="blog_style_enable_page" id="blog_style_enable_page_2" value="2" <?php if ($row->blog_style_enable_page == '2') echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_blog_style_load_more_image_count', 'blog_style_enable_page_2'); bwg_pagination_description(this);" /><label for="blog_style_enable_page_2" class="wd-radio-label"><?php _e('Load More', 'photo-gallery'); ?></label></div>
|
2334 |
+
<div><input type="radio" name="blog_style_enable_page" id="blog_style_enable_page_3" value="3" <?php if ($row->blog_style_enable_page == '3') echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_blog_style_load_more_image_count', 'blog_style_enable_page_3'); bwg_pagination_description(this);" /><label for="blog_style_enable_page_3" class="wd-radio-label"><?php _e('Scroll Load', 'photo-gallery'); ?></label></div>
|
2335 |
</div>
|
2336 |
<p class="description" id="blog_style_enable_page_0_description"><?php _e('This option removes all types of pagination from your galleries.', 'photo-gallery'); ?></p>
|
2337 |
<p class="description" id="blog_style_enable_page_1_description"><?php _e('Activating this option will add page numbers and next/previous buttons to your galleries.', 'photo-gallery'); ?></p>
|
2338 |
<p class="description" id="blog_style_enable_page_2_description"><?php _e('Adding a Load More button, you can let users display a new set of images from your galleries.', 'photo-gallery'); ?></p>
|
2339 |
<p class="description" id="blog_style_enable_page_3_description"><?php _e('With this option, users can load new images of your galleries simply by scrolling down.', 'photo-gallery'); ?></p>
|
|
|
2340 |
</div>
|
2341 |
</div>
|
2342 |
+
<div class="wd-box-content wd-width-100" id="tr_blog_style_images_per_page">
|
2343 |
<div class="wd-group">
|
2344 |
<label class="wd-label" for="blog_style_images_per_page"><?php _e('Images per page', 'photo-gallery'); ?></label>
|
2345 |
<div class="bwg-flex">
|
2346 |
+
<input type="number" name="blog_style_images_per_page" id="blog_style_images_per_page" value="<?php echo intval($row->blog_style_images_per_page); ?>" min="0" />
|
2347 |
</div>
|
2348 |
<p class="description"><?php _e('Select the number of images displayed per page in Blog Style view.', 'photo-gallery'); ?></p>
|
|
|
2349 |
</div>
|
2350 |
</div>
|
2351 |
<div class="wd-box-content wd-width-100" id="tr_blog_style_load_more_image_count">
|
2449 |
<p class="description"><?php _e('Display the descriptions of your galleries by activating this option.', 'photo-gallery'); ?></p>
|
2450 |
</div>
|
2451 |
</div>
|
2452 |
+
<div class="wd-box-content wd-width-100">
|
2453 |
<div class="wd-group">
|
2454 |
<label class="wd-label"><?php _e('Show image title', 'photo-gallery'); ?></label>
|
2455 |
<div class="bwg-flex">
|
2456 |
+
<input type="radio" name="blog_style_title_enable" id="blog_style_title_enable_1" value="1" <?php if ($row->blog_style_title_enable) echo 'checked="checked"'; ?> /><label for="blog_style_title_enable_1" class="wd-radio-label"><?php _e('Yes', 'photo-gallery'); ?></label>
|
2457 |
+
<input type="radio" name="blog_style_title_enable" id="blog_style_title_enable_0" value="0" <?php if (!$row->blog_style_title_enable) echo 'checked="checked"'; ?> /><label for="blog_style_title_enable_0" class="wd-radio-label"><?php _e('No', 'photo-gallery'); ?></label>
|
2458 |
</div>
|
2459 |
<p class="description"><?php _e('Enable this setting to display titles of images in Blog Style view.', 'photo-gallery'); ?></p>
|
|
|
2460 |
</div>
|
2461 |
</div>
|
2462 |
+
<div class="wd-box-content wd-width-100">
|
2463 |
<div class="wd-group">
|
2464 |
<label class="wd-label"><?php _e('Show image description', 'photo-gallery'); ?></label>
|
2465 |
<div class="bwg-flex">
|
2466 |
+
<input type="radio" name="blog_style_description_enable" id="blog_style_description_enable_1" value="1" <?php if ($row->blog_style_description_enable) echo 'checked="checked"'; ?> /><label for="blog_style_description_enable_1" class="wd-radio-label"><?php echo _e('Yes', 'photo-gallery'); ?></label>
|
2467 |
+
<input type="radio" name="blog_style_description_enable" id="blog_style_description_enable_0" value="0" <?php if (!$row->blog_style_description_enable) echo 'checked="checked"'; ?> /><label for="blog_style_description_enable_0" class="wd-radio-label"><?php echo _e('No', 'photo-gallery'); ?></label>
|
2468 |
</div>
|
2469 |
<p class="description"><?php _e('Enable this setting to show descriptions of images in Blog Style view.', 'photo-gallery'); ?></p>
|
|
|
2470 |
</div>
|
2471 |
</div>
|
2472 |
+
<div class="wd-box-content wd-width-100">
|
2473 |
<div class="wd-group">
|
2474 |
<label class="wd-label"><?php _e('Enable bulk download button', 'photo-gallery'); ?></label>
|
2475 |
<div class="bwg-flex">
|
2476 |
+
<input <?php echo !$zipArchiveClass ? 'disabled="disabled"' : ''; ?> type="radio" name="blog_style_gallery_download" id="blog_style_gallery_download_1" value="1" <?php if ($row->blog_style_gallery_download) echo 'checked="checked"'; ?> /><label for="blog_style_gallery_download_1" class="wd-radio-label"><?php _e('Yes', 'photo-gallery'); ?></label>
|
2477 |
+
<input <?php echo !$zipArchiveClass ? 'disabled="disabled"' : ''; ?> type="radio" name="blog_style_gallery_download" id="blog_style_gallery_download_0" value="0" <?php if (!$row->blog_style_gallery_download) echo 'checked="checked"'; ?> /><label for="blog_style_gallery_download_0" class="wd-radio-label"><?php _e('No', 'photo-gallery'); ?></label>
|
2478 |
</div>
|
2479 |
<p class="description"><?php _e('Activate this setting to let users download all images of your gallery with a click.', 'photo-gallery'); ?></p>
|
|
|
2480 |
<?php
|
2481 |
if ( !$zipArchiveClass) {
|
2482 |
echo WDWLibrary::message_id(0, __('Photo Gallery Export will not work correctly, as ZipArchive PHP extension is disabled on your website. Please contact your hosting provider and ask them to enable it.', 'pgi'),'error');
|
2486 |
</div>
|
2487 |
</div>
|
2488 |
</div>
|
2489 |
+
<div id="carousel_options" class="bwg-pro-views gallery_options wd-box-content wd-width-100 bwg-flex-wrap">
|
2490 |
+
<div class="wd-box-content wd-width-33">
|
2491 |
+
<div class="wd-box-content wd-width-100 <?php echo BWG()->is_pro ? '' : ' bwg-disabled-option'; ?>">
|
2492 |
+
<div class="wd-group">
|
2493 |
+
<label class="wd-label"
|
2494 |
+
for="carousel_image_column_number"><?php _e('Max. number of images', 'photo-gallery'); ?></label>
|
2495 |
+
<div class="bwg-flex">
|
2496 |
+
<input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="number"
|
2497 |
+
name="carousel_image_column_number"
|
2498 |
+
id="carousel_image_column_number"
|
2499 |
+
value="<?php echo intval($row->carousel_image_column_number); ?>"
|
2500 |
+
min="0"/>
|
2501 |
+
</div>
|
2502 |
+
<p
|
2503 |
+
class="description"><?php _e('Set the maximum number of images that are shown with Carousel display.', 'photo-gallery'); ?></p>
|
2504 |
+
<?php if ( !BWG()->is_pro ) { ?><p
|
2505 |
+
class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
2506 |
+
</div>
|
2507 |
+
</div>
|
2508 |
+
<div class="wd-box-content wd-width-100 <?php echo BWG()->is_pro ? '' : ' bwg-disabled-option'; ?>">
|
2509 |
+
<div class="wd-group">
|
2510 |
+
<label class="wd-label" for="carousel_width"><?php _e('Image dimensions', 'photo-gallery'); ?></label>
|
2511 |
+
<div class="bwg-flex">
|
2512 |
+
<input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="number" name="carousel_width"
|
2513 |
+
id="carousel_width"
|
2514 |
+
value="<?php echo intval($row->carousel_width); ?>"
|
2515 |
+
min="0"/><span>x</span>
|
2516 |
+
<input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="number" name="carousel_height"
|
2517 |
+
id="carousel_height"
|
2518 |
+
value="<?php echo intval($row->carousel_height); ?>"
|
2519 |
+
min="0"/><span>px</span>
|
2520 |
+
</div>
|
2521 |
+
<p
|
2522 |
+
class="description"><?php _e('Specify the dimensions of carousel images in pixels.', 'photo-gallery'); ?></p>
|
2523 |
+
<?php if ( !BWG()->is_pro ) { ?><p
|
2524 |
+
class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
2525 |
+
</div>
|
2526 |
+
</div>
|
2527 |
+
<div class="wd-box-content wd-width-100 <?php echo BWG()->is_pro ? '' : ' bwg-disabled-option'; ?>">
|
2528 |
+
<div class="wd-group">
|
2529 |
+
<label class="wd-label" for="carousel_image_par"><?php _e('Carousel ratio', 'photo-gallery'); ?></label>
|
2530 |
+
<div class="bwg-flex">
|
2531 |
+
<input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="number" name="carousel_image_par"
|
2532 |
+
id="carousel_image_par"
|
2533 |
+
value="<?php echo floatval($row->carousel_image_par); ?>"
|
2534 |
+
min="0" max="1" step="0.01"/>
|
2535 |
+
</div>
|
2536 |
+
<p
|
2537 |
+
class="description"><?php _e('This option defines the proportion of dimensions between neighboring images in the carousel.', 'photo-gallery'); ?></p>
|
2538 |
+
<?php if ( !BWG()->is_pro ) { ?><p
|
2539 |
+
class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
2540 |
+
</div>
|
2541 |
+
</div>
|
2542 |
+
<div class="wd-box-content wd-width-100 <?php echo BWG()->is_pro ? '' : ' bwg-disabled-option'; ?>">
|
2543 |
+
<div class="wd-group">
|
2544 |
+
<label class="wd-label" for="carousel_r_width"><?php _e('Fixed width', 'photo-gallery'); ?></label>
|
2545 |
+
<div class="bwg-flex">
|
2546 |
+
<input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="number" name="carousel_r_width"
|
2547 |
+
id="carousel_r_width"
|
2548 |
+
value="<?php echo intval($row->carousel_r_width); ?>"
|
2549 |
+
min="0"/><span>px</span>
|
2550 |
+
</div>
|
2551 |
+
<p
|
2552 |
+
class="description"><?php _e('Specify the fixed width of Carousel gallery container.', 'photo-gallery'); ?></p>
|
2553 |
+
<?php if ( !BWG()->is_pro ) { ?><p
|
2554 |
+
class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
2555 |
+
</div>
|
2556 |
+
</div>
|
2557 |
+
</div>
|
2558 |
+
<div class="wd-box-content wd-width-33">
|
2559 |
+
<div class="wd-box-content wd-width-100">
|
2560 |
+
<div class="wd-group">
|
2561 |
+
<label class="wd-label" for="carousel_sort_by"><?php _e('Order by', 'photo-gallery'); ?></label>
|
2562 |
+
<div class="wd-width-43">
|
2563 |
+
<select name="carousel_sort_by" id="carousel_sort_by">
|
2564 |
+
<option value="order" <?php if ( $row->carousel_sort_by == 'order' ) {
|
2565 |
+
echo 'selected="selected"';
|
2566 |
+
} ?>><?php _e('Default', 'photo-gallery'); ?></option>
|
2567 |
+
<option value="alt" <?php if ( $row->carousel_sort_by == 'alt' ) {
|
2568 |
+
echo 'selected="selected"';
|
2569 |
+
} ?>><?php _e('Title', 'photo-gallery'); ?></option>
|
2570 |
+
<option value="date" <?php if ( $row->carousel_sort_by == 'date' ) {
|
2571 |
+
echo 'selected="selected"';
|
2572 |
+
} ?>><?php _e('Date', 'photo-gallery'); ?></option>
|
2573 |
+
<option value="filename" <?php if ( $row->carousel_sort_by == 'filename' ) {
|
2574 |
+
echo 'selected="selected"';
|
2575 |
+
} ?>><?php _e('Filename', 'photo-gallery'); ?></option>
|
2576 |
+
<option value="size" <?php if ( $row->carousel_sort_by == 'size' ) {
|
2577 |
+
echo 'selected="selected"';
|
2578 |
+
} ?>><?php _e('Size', 'photo-gallery'); ?></option>
|
2579 |
+
<option value="random" <?php if ( $row->carousel_sort_by == 'random' ) {
|
2580 |
+
echo 'selected="selected"';
|
2581 |
+
} ?>><?php _e('Random', 'photo-gallery'); ?></option>
|
2582 |
+
</select>
|
2583 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2584 |
<div class="wd-width-55">
|
2585 |
<select name="carousel_order_by" id="carousel_order_by">
|
2586 |
<option value="asc" <?php if ($row->carousel_order_by == 'asc') echo 'selected="selected"'; ?>><?php _e('Ascending', 'photo-gallery'); ?></option>
|
2896 |
<p class="description"><?php _e('Choose to show/hide titles of galleries/gallery groups, or display them on hover.', 'photo-gallery'); ?></p>
|
2897 |
</div>
|
2898 |
</div>
|
2899 |
+
<div class="wd-box-content wd-width-100">
|
2900 |
<div class="wd-group">
|
2901 |
<label class="wd-label" for="album_view_type"><?php _e('Gallery view type', 'photo-gallery'); ?></label>
|
2902 |
+
<select name="album_view_type" id="album_view_type">
|
2903 |
<option value="thumbnail" <?php if ($row->album_view_type == 'thumbnail') echo 'selected="selected"'; ?>><?php _e('Thumbnail', 'photo-gallery'); ?></option>
|
2904 |
<option value="masonry" <?php if ($row->album_view_type == 'masonry') echo 'selected="selected"'; ?>><?php _e('Masonry', 'photo-gallery'); ?></option>
|
2905 |
<option value="mosaic" <?php if ($row->album_view_type == 'mosaic') echo 'selected="selected"'; ?>><?php _e('Mosaic', 'photo-gallery'); ?></option>
|
2906 |
<option value="slideshow" <?php if ($row->album_view_type == 'slideshow') echo 'selected="selected"'; ?>><?php _e('Slideshow', 'photo-gallery'); ?></option>
|
2907 |
<option value="image_browser" <?php if ($row->album_view_type == 'image_browser') echo 'selected="selected"'; ?>><?php _e('Image Browser', 'photo-gallery'); ?></option>
|
2908 |
<option value="blog_style" <?php if ($row->album_view_type == 'blog_style') echo 'selected="selected"'; ?>><?php _e('Blog Style', 'photo-gallery'); ?></option>
|
2909 |
+
<option value="carousel" <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?>><?php _e('Carousel', 'photo-gallery'); ?></option>
|
2910 |
</select>
|
2911 |
<p class="description"><?php _e('Choose the display type for gallery groups, Thumbnails, Masonry, Mosaic, Slideshow, Image browser, Blog style or Carousel.', 'photo-gallery'); ?></p>
|
|
|
2912 |
</div>
|
2913 |
</div>
|
2914 |
+
<div class="wd-box-content wd-width-100" id="tr_album_mosaic">
|
2915 |
<div class="wd-group">
|
2916 |
<label class="wd-label"><?php _e('Mosaic gallery type', 'photo-gallery'); ?></label>
|
2917 |
<div class="bwg-flex">
|
2918 |
+
<input type="radio" name="album_mosaic" id="album_mosaic_0" value="vertical" <?php if ($row->album_mosaic == "vertical") echo 'checked="checked"'; ?> /><label for="album_mosaic_0" class="wd-radio-label"><?php _e('Vertical', 'photo-gallery'); ?></label>
|
2919 |
+
<input type="radio" name="album_mosaic" id="album_mosaic_1" value="horizontal" <?php if ($row->album_mosaic == "horizontal") echo 'checked="checked"'; ?> /><label for="album_mosaic_1" class="wd-radio-label"><?php _e('Horizontal', 'photo-gallery'); ?></label>
|
2920 |
</div>
|
2921 |
<p class="description"><?php _e('Select the type of Mosaic galleries, Vertical or Horizontal.', 'photo-gallery'); ?></p>
|
|
|
2922 |
</div>
|
2923 |
</div>
|
2924 |
+
<div class="wd-box-content wd-width-100" id="tr_album_resizable_mosaic">
|
2925 |
<div class="wd-group">
|
2926 |
<label class="wd-label"><?php _e('Resizable mosaic', 'photo-gallery'); ?></label>
|
2927 |
<div class="bwg-flex">
|
2928 |
+
<input type="radio" name="album_resizable_mosaic" id="album_resizable_mosaic_1" value="1" <?php if ($row->album_resizable_mosaic == "1") echo 'checked="checked"'; ?> /><label for="album_resizable_mosaic_1" class="wd-radio-label"><?php _e('Yes', 'photo-gallery'); ?></label>
|
2929 |
+
<input type="radio" name="album_resizable_mosaic" id="album_resizable_mosaic_0" value="0" <?php if ($row->album_resizable_mosaic == "0") echo 'checked="checked"'; ?> /><label for="album_resizable_mosaic_0" class="wd-radio-label"><?php _e('No', 'photo-gallery'); ?></label>
|
2930 |
</div>
|
2931 |
<p class="description"><?php _e('If this setting is enabled, Photo Gallery resizes all thumbnail images on Mosaic galleries, without modifying their initial display.', 'photo-gallery'); ?></p>
|
|
|
2932 |
</div>
|
2933 |
</div>
|
2934 |
+
<div class="wd-box-content wd-width-100" id="tr_album_mosaic_total_width">
|
2935 |
<div class="wd-group">
|
2936 |
<label class="wd-label" for="album_mosaic_total_width"><?php _e('Width of mosaic galleries', 'photo-gallery'); ?></label>
|
2937 |
<div class="bwg-flex">
|
2938 |
+
<input type="number" name="album_mosaic_total_width" id="album_mosaic_total_width" value="<?php echo intval($row->album_mosaic_total_width); ?>" min="0" /><span>%</span>
|
2939 |
</div>
|
2940 |
<p class="description"><?php _e('The total width of mosaic galleries as a percentage of container\'s width.', 'photo-gallery'); ?></p>
|
|
|
2941 |
</div>
|
2942 |
</div>
|
2943 |
<div class="wd-box-content wd-width-100">
|
2961 |
<p class="description"><?php _e('Activate this option to add a Play button on thumbnails of videos.', 'photo-gallery'); ?></p>
|
2962 |
</div>
|
2963 |
</div>
|
2964 |
+
<div class="wd-box-content wd-width-100">
|
2965 |
<div class="wd-group">
|
2966 |
<label class="wd-label"><?php _e('Enable bulk download button', 'photo-gallery'); ?></label>
|
2967 |
<div class="bwg-flex">
|
2968 |
+
<input <?php echo !$zipArchiveClass ? 'disabled="disabled"' : ''; ?> type="radio" name="album_gallery_download" id="album_gallery_download_1" value="1" <?php if ($row->album_gallery_download) echo 'checked="checked"'; ?> /><label for="album_gallery_download_1" class="wd-radio-label"><?php _e('Yes', 'photo-gallery'); ?></label>
|
2969 |
+
<input <?php echo !$zipArchiveClass ? 'disabled="disabled"' : ''; ?> type="radio" name="album_gallery_download" id="album_gallery_download_0" value="0" <?php if (!$row->album_gallery_download) echo 'checked="checked"'; ?> /><label for="album_gallery_download_0" class="wd-radio-label"><?php _e('No', 'photo-gallery'); ?></label>
|
2970 |
</div>
|
2971 |
<p class="description"><?php _e('Activate this setting to let users download all images of your gallery with a click.', 'photo-gallery'); ?></p>
|
|
|
2972 |
<?php
|
2973 |
if ( !$zipArchiveClass) {
|
2974 |
echo WDWLibrary::message_id(0, __('Photo Gallery Export will not work correctly, as ZipArchive PHP extension is disabled on your website. Please contact your hosting provider and ask them to enable it.', 'pgi'),'error');
|
2995 |
?>
|
2996 |
</div>
|
2997 |
</div>
|
2998 |
+
<div id="album_masonry_preview_options" class="album_options wd-box-content wd-width-100 bwg-flex-wrap">
|
2999 |
<div class="wd-box-content wd-width-33">
|
3000 |
<div class="wd-box-content wd-width-100">
|
3001 |
<div class="wd-group">
|
3187 |
<p class="description"><?php _e('Choose to show/hide titles of images, or display them on hover.', 'photo-gallery'); ?></p>
|
3188 |
</div>
|
3189 |
</div>
|
3190 |
+
<div class="wd-box-content wd-width-100">
|
3191 |
<div class="wd-group">
|
3192 |
<label class="wd-label"><?php _e('Enable bulk download button', 'photo-gallery'); ?></label>
|
3193 |
<div class="bwg-flex">
|
3194 |
+
<input <?php echo !$zipArchiveClass ? 'disabled="disabled"' : ''; ?> type="radio" name="album_masonry_gallery_download" id="album_masonry_gallery_download_1" value="1" <?php if ($row->album_masonry_gallery_download) echo 'checked="checked"'; ?> /><label for="album_masonry_gallery_download_1" class="wd-radio-label"><?php _e('Yes', 'photo-gallery'); ?></label>
|
3195 |
+
<input <?php echo !$zipArchiveClass ? 'disabled="disabled"' : ''; ?> type="radio" name="album_masonry_gallery_download" id="album_masonry_gallery_download_0" value="0" <?php if (!$row->album_masonry_gallery_download) echo 'checked="checked"'; ?> /><label for="album_masonry_gallery_download_0" class="wd-radio-label"><?php _e('No', 'photo-gallery'); ?></label>
|
3196 |
</div>
|
3197 |
<p class="description"><?php _e('Activate this setting to let users download all images of your gallery with a click.', 'photo-gallery'); ?></p>
|
|
|
3198 |
<?php
|
3199 |
if ( !$zipArchiveClass) {
|
3200 |
echo WDWLibrary::message_id(0, __('Photo Gallery Export will not work correctly, as ZipArchive PHP extension is disabled on your website. Please contact your hosting provider and ask them to enable it.', 'pgi'),'error');
|
3424 |
<p class="description"><?php _e('Enable this option to show descriptions of galleries/gallery groups in Extended view.', 'photo-gallery'); ?></p>
|
3425 |
</div>
|
3426 |
</div>
|
3427 |
+
<div class="wd-box-content wd-width-100">
|
3428 |
<div class="wd-group">
|
3429 |
<label class="wd-label" for="album_extended_view_type"><?php _e('Gallery view type', 'photo-gallery'); ?></label>
|
3430 |
+
<select name="album_extended_view_type" id="album_extended_view_type">
|
3431 |
<option value="thumbnail" <?php if ($row->album_extended_view_type == 'thumbnail') echo 'selected="selected"'; ?>><?php _e('Thumbnail', 'photo-gallery'); ?></option>
|
3432 |
<option value="masonry" <?php if ($row->album_extended_view_type == 'masonry') echo 'selected="selected"'; ?>><?php _e('Masonry', 'photo-gallery'); ?></option>
|
3433 |
<option value="mosaic" <?php if ($row->album_extended_view_type == 'mosaic') echo 'selected="selected"'; ?>><?php _e('Mosaic', 'photo-gallery'); ?></option>
|
3437 |
<option value="carousel" <?php if ($row->album_extended_view_type == 'carousel') echo 'selected="selected"'; ?>><?php _e('Carousel', 'photo-gallery'); ?></option>
|
3438 |
</select>
|
3439 |
<p class="description"><?php _e('Choose the display type for gallery groups, Thumbnails, Masonry, Mosaic, Slideshow, Image browser, Blog style or Carousel.', 'photo-gallery'); ?></p>
|
|
|
3440 |
</div>
|
3441 |
</div>
|
3442 |
+
<div class="wd-box-content wd-width-100" id="tr_album_extended_mosaic">
|
3443 |
<div class="wd-group">
|
3444 |
<label class="wd-label"><?php _e('Mosaic gallery type', 'photo-gallery'); ?></label>
|
3445 |
<div class="bwg-flex">
|
3446 |
+
<input type="radio" name="album_extended_mosaic" id="album_extended_mosaic_0" value="vertical" <?php if ($row->album_extended_mosaic == "vertical") echo 'checked="checked"'; ?> /><label for="album_extended_mosaic_0" class="wd-radio-label"><?php _e('Vertical', 'photo-gallery'); ?></label>
|
3447 |
+
<input type="radio" name="album_extended_mosaic" id="album_extended_mosaic_1" value="horizontal" <?php if ($row->album_extended_mosaic == "horizontal") echo 'checked="checked"'; ?> /><label for="album_extended_mosaic_1" class="wd-radio-label"><?php _e('Horizontal', 'photo-gallery'); ?></label>
|
3448 |
</div>
|
3449 |
<p class="description"><?php _e('Select the type of Mosaic galleries, Vertical or Horizontal.', 'photo-gallery'); ?></p>
|
|
|
3450 |
</div>
|
3451 |
</div>
|
3452 |
+
<div class="wd-box-content wd-width-100" id="tr_album_extended_resizable_mosaic">
|
3453 |
<div class="wd-group">
|
3454 |
<label class="wd-label"><?php _e('Resizable mosaic', 'photo-gallery'); ?></label>
|
3455 |
<div class="bwg-flex">
|
3456 |
+
<input type="radio" name="album_extended_resizable_mosaic" id="album_extended_resizable_mosaic_1" value="1" <?php if ($row->album_extended_resizable_mosaic == "1") echo 'checked="checked"'; ?> /><label for="album_extended_resizable_mosaic_1" class="wd-radio-label"><?php _e('Yes', 'photo-gallery'); ?></label>
|
3457 |
+
<input type="radio" name="album_extended_resizable_mosaic" id="album_extended_resizable_mosaic_0" value="0" <?php if ($row->album_extended_resizable_mosaic == "0") echo 'checked="checked"'; ?> /><label for="album_extended_resizable_mosaic_0" class="wd-radio-label"><?php _e('No', 'photo-gallery'); ?></label>
|
3458 |
</div>
|
3459 |
<p class="description"><?php _e('If this setting is enabled, Photo Gallery resizes all thumbnail images on Mosaic galleries, without modifying their initial display.', 'photo-gallery'); ?></p>
|
|
|
3460 |
</div>
|
3461 |
</div>
|
3462 |
+
<div class="wd-box-content wd-width-100" id="tr_album_extended_mosaic_total_width">
|
3463 |
<div class="wd-group">
|
3464 |
<label class="wd-label" for="album_extended_mosaic_total_width"><?php _e('Width of mosaic galleries', 'photo-gallery'); ?></label>
|
3465 |
<div class="bwg-flex">
|
3466 |
+
<input type="number" name="album_extended_mosaic_total_width" id="album_extended_mosaic_total_width" value="<?php echo intval($row->album_extended_mosaic_total_width); ?>" min="0" /><span>%</span>
|
3467 |
</div>
|
3468 |
<p class="description"><?php _e('The total width of mosaic galleries as a percentage of container\'s width.', 'photo-gallery'); ?></p>
|
|
|
3469 |
</div>
|
3470 |
</div>
|
3471 |
<div class="wd-box-content wd-width-100">
|
3489 |
<p class="description"><?php _e('Activate this option to add a Play button on thumbnails of videos.', 'photo-gallery'); ?></p>
|
3490 |
</div>
|
3491 |
</div>
|
3492 |
+
<div class="wd-box-content wd-width-100">
|
3493 |
<div class="wd-group">
|
3494 |
<label class="wd-label"><?php _e('Enable bulk download button', 'photo-gallery'); ?></label>
|
3495 |
<div class="bwg-flex">
|
3496 |
+
<input <?php echo !$zipArchiveClass ? 'disabled="disabled"' : ''; ?> type="radio" name="album_extended_gallery_download" id="album_extended_gallery_download_1" value="1" <?php if ($row->album_extended_gallery_download) echo 'checked="checked"'; ?> /><label for="album_extended_gallery_download_1" class="wd-radio-label"><?php _e('Yes', 'photo-gallery'); ?></label>
|
3497 |
+
<input <?php echo !$zipArchiveClass ? 'disabled="disabled"' : ''; ?> type="radio" name="album_extended_gallery_download" id="album_extended_gallery_download_0" value="0" <?php if (!$row->album_extended_gallery_download) echo 'checked="checked"'; ?> /><label for="album_extended_gallery_download_0" class="wd-radio-label"><?php _e('No', 'photo-gallery'); ?></label>
|
3498 |
</div>
|
3499 |
<p class="description"><?php _e('Activate this setting to let users download all images of your gallery with a click.', 'photo-gallery'); ?></p>
|
|
|
3500 |
<?php
|
3501 |
if ( !$zipArchiveClass) {
|
3502 |
echo WDWLibrary::message_id(0, __('Photo Gallery Export will not work correctly, as ZipArchive PHP extension is disabled on your website. Please contact your hosting provider and ask them to enable it.', 'pgi'),'error');
|
3582 |
foreach ($effects as $key => $effect) {
|
3583 |
?>
|
3584 |
<option value="<?php echo esc_attr($key); ?>"
|
3585 |
+
<?php if ($row->popup_type == $key) echo 'selected="selected"'; ?>><?php echo esc_html($effect); ?></option>
|
|
|
3586 |
<?php
|
3587 |
}
|
3588 |
?>
|
3620 |
<p class="description"><?php _e('Specify the time interval of autoplay in Photo Gallery lightbox.', 'photo-gallery') ?></p>
|
3621 |
</div>
|
3622 |
</div>
|
3623 |
+
<div class="wd-box-content wd-width-100 bwg-lightbox bwg-lightbox-lightbox">
|
3624 |
<div class="wd-group">
|
3625 |
<label class="wd-label"><?php _e('Enable filmstrip', 'photo-gallery'); ?></label>
|
3626 |
<div class="bwg-flex">
|
3627 |
+
<input type="radio" name="popup_enable_filmstrip" id="popup_enable_filmstrip_1" value="1" <?php if ($row->popup_enable_filmstrip ) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_popup_filmstrip_height', 'popup_enable_filmstrip_1')" /><label for="popup_enable_filmstrip_1" class="wd-radio-label"><?php _e('Yes', 'photo-gallery'); ?></label>
|
3628 |
+
<input type="radio" name="popup_enable_filmstrip" id="popup_enable_filmstrip_0" value="0" <?php if (!$row->popup_enable_filmstrip ) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_popup_filmstrip_height', 'popup_enable_filmstrip_0')" /><label for="popup_enable_filmstrip_0" class="wd-radio-label"><?php _e('No', 'photo-gallery'); ?></label>
|
3629 |
</div>
|
3630 |
<p class="description"><?php _e('Add a filmstrip with image thumbnails to the lightbox of your galleries.', 'photo-gallery') ?></p>
|
|
|
3631 |
</div>
|
3632 |
</div>
|
3633 |
+
<div class="wd-box-content wd-width-100 bwg-lightbox bwg-lightbox-lightbox" id="tr_popup_filmstrip_height ">
|
3634 |
<div class="wd-group">
|
3635 |
<label class="wd-label" for="popup_filmstrip_height"><?php _e('Filmstrip size', 'photo-gallery'); ?></label>
|
3636 |
<div class="bwg-flex">
|
3637 |
+
<input type="number" name="popup_filmstrip_height" id="popup_filmstrip_height" value="<?php echo intval($row->popup_filmstrip_height); ?>" min="0" /><span>px</span>
|
3638 |
</div>
|
3639 |
<p class="description"><?php _e('Set the size of your filmstrip. If the filmstrip is horizontal, this indicates its height, whereas for vertical filmstrips it sets the width.', 'photo-gallery') ?></p>
|
|
|
3640 |
</div>
|
3641 |
</div>
|
3642 |
</div>
|
3776 |
<p class="description"><?php _e('Choose to display Next/Previous buttons of Photo Gallery lightbox on hover or always.', 'photo-gallery') ?></p>
|
3777 |
</div>
|
3778 |
</div>
|
3779 |
+
<div class="wd-box-content wd-width-100 bwg-lightbox bwg-lightbox-lightbox" id="tr_popup_hit_counter">
|
3780 |
<div class="wd-group">
|
3781 |
<label class="wd-label"><?php _e('Display views counter', 'photo-gallery'); ?></label>
|
3782 |
<div class="bwg-flex">
|
3783 |
+
<input type="radio" name="popup_hit_counter" id="popup_hit_counter_1" value="1" <?php if ($row->popup_hit_counter) echo 'checked="checked"'; ?> /><label for="popup_hit_counter_1" class="wd-radio-label"><?php _e('Yes', 'photo-gallery'); ?></label>
|
3784 |
+
<input type="radio" name="popup_hit_counter" id="popup_hit_counter_0" value="0" <?php if (!$row->popup_hit_counter) echo 'checked="checked"'; ?> /><label for="popup_hit_counter_0" class="wd-radio-label"><?php _e('No', 'photo-gallery'); ?></label>
|
3785 |
</div>
|
3786 |
<p class="description"><?php _e('Show the number of views, when a gallery image was opened in lightbox.', 'photo-gallery') ?></p>
|
|
|
3787 |
</div>
|
3788 |
</div>
|
3789 |
<div class="wd-box-content wd-width-100 bwg-lightbox bwg-lightbox-lightbox <?php echo BWG()->is_pro ? '' : ' bwg-disabled-option'; ?>" id="tr_popup_rate">
|
3797 |
<?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
|
3798 |
</div>
|
3799 |
</div>
|
3800 |
+
<div class="wd-box-content wd-width-100 bwg-lightbox bwg-lightbox-lightbox" id="tr_popup_zoom">
|
3801 |
<div class="wd-group">
|
3802 |
<label class="wd-label"><?php _e('Enable zoom', 'photo-gallery'); ?></label>
|
3803 |
<div class="bwg-flex">
|
3804 |
+
<input type="radio" name="popup_enable_zoom" id="popup_enable_zoom_1" value="1" <?php if ($row->popup_enable_zoom) echo 'checked="checked"'; ?> /><label for="popup_enable_zoom_1" class="wd-radio-label"><?php _e('Yes', 'photo-gallery'); ?></label>
|
3805 |
+
<input type="radio" name="popup_enable_zoom" id="popup_enable_zoom_0" value="0" <?php if (!$row->popup_enable_zoom) echo 'checked="checked"'; ?> /><label for="popup_enable_zoom_0" class="wd-radio-label"><?php _e('No', 'photo-gallery'); ?></label>
|
3806 |
</div>
|
3807 |
<p class="description"><?php _e('Allow users to zoom images in Photo Gallery lightbox.', 'photo-gallery') ?></p>
|
|
|
3808 |
</div>
|
3809 |
</div>
|
3810 |
</div>
|
3849 |
<p class="description"><?php _e('Activate looping to start lightbox navigation from the beginning when users reach its last image.', 'photo-gallery') ?></p>
|
3850 |
</div>
|
3851 |
</div>
|
3852 |
+
<div class="wd-box-content wd-width-100 bwg-lightbox bwg-lightbox-lightbox">
|
3853 |
<div class="wd-group">
|
3854 |
+
<label class="wd-label"><?php _e('Enable AddThis', 'photo-gallery'); ?></label>
|
3855 |
<div class="bwg-flex">
|
3856 |
+
<input type="radio" name="enable_addthis" id="enable_addthis_1" value="1" <?php if ($row->enable_addthis ) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_addthis_profile_id', 'enable_addthis_1')" /><label for="enable_addthis_1" class="wd-radio-label"><?php _e('Yes', 'photo-gallery'); ?></label>
|
3857 |
+
<input type="radio" name="enable_addthis" id="enable_addthis_0" value="0" <?php if (!$row->enable_addthis ) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_addthis_profile_id', 'enable_addthis_0')" /><label for="enable_addthis_0" class="wd-radio-label"><?php _e('No', 'photo-gallery'); ?></label>
|
3858 |
</div>
|
3859 |
<p class="description"><?php _e('Display AddThis on Photo Gallery lightbox by activating this option.', 'photo-gallery') ?></p>
|
|
|
3860 |
</div>
|
3861 |
</div>
|
3862 |
+
<div class="wd-box-content wd-width-100 bwg-lightbox bwg-lightbox-lightbox" id="tr_addthis_profile_id">
|
3863 |
<div class="wd-group">
|
3864 |
+
<label class="wd-label" for="addthis_profile_id"><?php _e('AddThis profile ID', 'photo-gallery'); ?></label>
|
3865 |
<div class="bwg-flex">
|
3866 |
+
<input type="text" name="addthis_profile_id" id="addthis_profile_id" value="<?php echo esc_attr($row->addthis_profile_id); ?>" />
|
3867 |
</div>
|
3868 |
<p class="description"><?php _e('Provide the ID of your profile to connect to AddThis.', 'photo-gallery'); ?><br><?php echo sprintf(__('Create an account %s.', 'photo-gallery'), '<a href="https://www.addthis.com/register" target="_blank">' . __('here', 'photo-gallery') . '</a>'); ?></p>
|
|
|
3869 |
</div>
|
3870 |
</div>
|
3871 |
+
<div class="wd-box-content wd-width-100 bwg-lightbox bwg-lightbox-lightbox" id="tr_popup_facebook">
|
3872 |
<div class="wd-group">
|
3873 |
<label class="wd-label"><?php _e('Show Facebook button', 'photo-gallery'); ?></label>
|
3874 |
<div class="bwg-flex">
|
3875 |
+
<input type="radio" name="popup_enable_facebook" id="popup_enable_facebook_1" value="1" <?php if ($row->popup_enable_facebook) echo 'checked="checked"'; ?> /><label for="popup_enable_facebook_1" class="wd-radio-label"><?php _e('Yes', 'photo-gallery'); ?></label>
|
3876 |
+
<input type="radio" name="popup_enable_facebook" id="popup_enable_facebook_0" value="0" <?php if (!$row->popup_enable_facebook) echo 'checked="checked"'; ?> /><label for="popup_enable_facebook_0" class="wd-radio-label"><?php _e('No', 'photo-gallery'); ?></label>
|
3877 |
</div>
|
3878 |
<p class="description"><?php _e('Enabling this setting will add Facebook sharing button to Photo Gallery lightbox.', 'photo-gallery') ?></p>
|
|
|
3879 |
</div>
|
3880 |
</div>
|
3881 |
+
<div class="wd-box-content wd-width-100 bwg-lightbox bwg-lightbox-lightbox" id="tr_popup_twitter">
|
3882 |
<div class="wd-group">
|
3883 |
<label class="wd-label"><?php _e('Show Twitter button', 'photo-gallery'); ?></label>
|
3884 |
<div class="bwg-flex">
|
3885 |
+
<input type="radio" name="popup_enable_twitter" id="popup_enable_twitter_1" value="1" <?php if ($row->popup_enable_twitter) echo 'checked="checked"'; ?> /><label for="popup_enable_twitter_1" class="wd-radio-label"><?php _e('Yes', 'photo-gallery'); ?></label>
|
3886 |
+
<input type="radio" name="popup_enable_twitter" id="popup_enable_twitter_0" value="0" <?php if (!$row->popup_enable_twitter) echo 'checked="checked"'; ?> /><label for="popup_enable_twitter_0" class="wd-radio-label"><?php _e('No', 'photo-gallery'); ?></label>
|
3887 |
</div>
|
3888 |
<p class="description"><?php _e('Enable this setting to add Tweet button to Photo Gallery lightbox.', 'photo-gallery') ?></p>
|
|
|
3889 |
</div>
|
3890 |
</div>
|
3891 |
+
<div class="wd-box-content wd-width-100 bwg-lightbox bwg-lightbox-lightbox" id="tr_popup_pinterest">
|
3892 |
<div class="wd-group">
|
3893 |
<label class="wd-label"><?php _e('Show Pinterest button', 'photo-gallery'); ?></label>
|
3894 |
<div class="bwg-flex">
|
3895 |
+
<input type="radio" name="popup_enable_pinterest" id="popup_enable_pinterest_1" value="1" <?php if ($row->popup_enable_pinterest) echo 'checked="checked"'; ?> /><label for="popup_enable_pinterest_1" class="wd-radio-label"><?php _e('Yes', 'photo-gallery'); ?></label>
|
3896 |
+
<input type="radio" name="popup_enable_pinterest" id="popup_enable_pinterest_0" value="0" <?php if (!$row->popup_enable_pinterest) echo 'checked="checked"'; ?> /><label for="popup_enable_pinterest_0" class="wd-radio-label"><?php _e('No', 'photo-gallery'); ?></label>
|
3897 |
</div>
|
3898 |
<p class="description"><?php _e('Activate Pin button of Photo Gallery lightbox by enabling this setting.', 'photo-gallery') ?></p>
|
|
|
3899 |
</div>
|
3900 |
</div>
|
3901 |
+
<div class="wd-box-content wd-width-100 bwg-lightbox bwg-lightbox-lightbox" id="tr_popup_tumblr">
|
3902 |
<div class="wd-group">
|
3903 |
<label class="wd-label"><?php _e('Show Tumblr button', 'photo-gallery'); ?></label>
|
3904 |
<div class="bwg-flex">
|
3905 |
+
<input type="radio" name="popup_enable_tumblr" id="popup_enable_tumblr_1" value="1" <?php if ($row->popup_enable_tumblr) echo 'checked="checked"'; ?> /><label for="popup_enable_tumblr_1" class="wd-radio-label"><?php _e('Yes', 'photo-gallery'); ?></label>
|
3906 |
+
<input type="radio" name="popup_enable_tumblr" id="popup_enable_tumblr_0" value="0" <?php if (!$row->popup_enable_tumblr) echo 'checked="checked"'; ?> /><label for="popup_enable_tumblr_0" class="wd-radio-label"><?php _e('No', 'photo-gallery'); ?></label>
|
3907 |
</div>
|
3908 |
<p class="description"><?php _e('Allow users to share images on Tumblr from Photo Gallery lightbox by activating this setting.', 'photo-gallery') ?></p>
|
|
|
3909 |
</div>
|
3910 |
</div>
|
3911 |
<?php
|
admin/views/Shortcode.php
CHANGED
@@ -83,9 +83,6 @@ class ShortcodeView_bwg extends AdminView_bwg {
|
|
83 |
</label>
|
84 |
<input type="radio" class="gallery_type_radio" id="thumbnails_masonry" name="gallery_type" value="thumbnails_masonry" />
|
85 |
<label class="gallery_type_label" for="thumbnails_masonry"><?php echo __('Masonry', 'photo-gallery'); ?></label>
|
86 |
-
<?php if ( !BWG()->is_pro ) { ?>
|
87 |
-
<span class="pro_btn">Premium</span>
|
88 |
-
<?php } ?>
|
89 |
</div>
|
90 |
</span>
|
91 |
<span class="gallery_type bwg-thumbnails_mosaic" onClick="bwg_gallery_type('thumbnails_mosaic')" data-img-url="<?php echo BWG()->plugin_url . '/images/upgrade_to_pro_mosaic.png'; ?>" data-title="Mosaic" data-demo-link="https://demo.10web.io/photo-gallery/mosaic/?utm_source=photo_gallery&utm_medium=free_plugin">
|
@@ -95,9 +92,6 @@ class ShortcodeView_bwg extends AdminView_bwg {
|
|
95 |
<img class="view_type_img_active" src="<?php echo BWG()->plugin_url . '/images/thumbnails_mosaic_active.svg'; ?>" />
|
96 |
</label>
|
97 |
<input type="radio" class="gallery_type_radio" id="thumbnails_mosaic" name="gallery_type" value="thumbnails_mosaic" /><label class="gallery_type_label" for="thumbnails_mosaic"><?php echo __('Mosaic', 'photo-gallery'); ?></label>
|
98 |
-
<?php if ( !BWG()->is_pro ) { ?>
|
99 |
-
<span class="pro_btn">Premium</span>
|
100 |
-
<?php } ?>
|
101 |
</div>
|
102 |
</span>
|
103 |
<span class="gallery_type bwg-slideshow" onClick="bwg_gallery_type('slideshow')">
|
@@ -125,9 +119,6 @@ class ShortcodeView_bwg extends AdminView_bwg {
|
|
125 |
<img class="view_type_img_active" src="<?php echo BWG()->plugin_url . '/images/blog_style_active.svg'; ?>" />
|
126 |
</label>
|
127 |
<input type="radio" class="gallery_type_radio" id="blog_style" name="gallery_type" value="blog_style" /><label class="gallery_type_label" for="blog_style"><?php echo __('Blog Style', 'photo-gallery'); ?></label>
|
128 |
-
<?php if ( !BWG()->is_pro ) { ?>
|
129 |
-
<span class="pro_btn">Premium</span>
|
130 |
-
<?php } ?>
|
131 |
</div>
|
132 |
</span>
|
133 |
<span class="gallery_type bwg-carousel" onClick="bwg_gallery_type('carousel')" data-img-url="<?php echo BWG()->plugin_url . '/images/upgrade_to_pro_carousel.png'; ?>" data-title="Carousel" data-demo-link="https://demo.10web.io/photo-gallery/carousel/?utm_source=photo_gallery&utm_medium=free_plugin">
|
@@ -164,7 +155,7 @@ class ShortcodeView_bwg extends AdminView_bwg {
|
|
164 |
<li class="gallery-type-li" data-value="<?php echo $key; ?>">
|
165 |
<img src="<?php echo BWG()->plugin_url . '/images/' . $key . '.svg'; ?>">
|
166 |
<span><?php echo $gallery_type_name; ?> </span>
|
167 |
-
<?php if ( !BWG()->is_pro &&
|
168 |
<span class="pro_btn">Premium</span>
|
169 |
<?php } ?>
|
170 |
</li>
|
@@ -194,9 +185,6 @@ class ShortcodeView_bwg extends AdminView_bwg {
|
|
194 |
<img class="view_type_img_active" src="<?php echo BWG()->plugin_url . '/images/album_masonry_preview_active.svg'; ?>" />
|
195 |
</label>
|
196 |
<input type="radio" class="album_type_radio" id="album_masonry_preview" name="gallery_type" value="album_masonry_preview" /><label class="album_type_label" for="album_masonry_preview"><?php echo __('Masonry', 'photo-gallery'); ?></label>
|
197 |
-
<?php if ( !BWG()->is_pro ) { ?>
|
198 |
-
<span class="pro_btn">Premium</span>
|
199 |
-
<?php } ?>
|
200 |
</div>
|
201 |
</span>
|
202 |
<span class="gallery_type bwg-album_extended_preview" onClick="bwg_gallery_type('album_extended_preview')">
|
@@ -230,9 +218,6 @@ class ShortcodeView_bwg extends AdminView_bwg {
|
|
230 |
<li class="gallery-type-li" data-value="<?php echo $key; ?>">
|
231 |
<img src="<?php echo BWG()->plugin_url . '/images/' . $key . '.svg'; ?>">
|
232 |
<span><?php echo $album_type_name; ?> </span>
|
233 |
-
<?php if ( !BWG()->is_pro && ( $key == 'album_masonry_preview' ) ) { ?>
|
234 |
-
<span class="pro_btn">Premium</span>
|
235 |
-
<?php } ?>
|
236 |
</li>
|
237 |
<?php
|
238 |
}
|
@@ -245,7 +230,7 @@ class ShortcodeView_bwg extends AdminView_bwg {
|
|
245 |
<?php
|
246 |
if ( !BWG()->is_pro ) {
|
247 |
?>
|
248 |
-
<div class="wd-box-content wd-width-100 wd-free-msg bwg-upgrade-view">
|
249 |
<div class="upgrade-to-pro-text">
|
250 |
<p class="upgrade-to-pro-title"></p>
|
251 |
<p class="upgrade-to-pro-desc">
|
@@ -509,15 +494,7 @@ class ShortcodeView_bwg extends AdminView_bwg {
|
|
509 |
<div class="media-toolbar-primary search-form">
|
510 |
<button class="button media-button button-primary button-large media-button-insert button-hero" type="button" id="insert" name="insert" <?php if($params['elementor_callback']) { ?> data-callback="elementor" <?php } ?> onClick="bwg_insert_shortcode('');"><?php _e('Insert into post', 'photo-gallery'); ?></button>
|
511 |
</div>
|
512 |
-
|
513 |
-
<!-- --><?php //if ( !BWG()->is_pro ) { ?>
|
514 |
-
<!-- <div class="media-toolbar-primary search-form" style="float: left;">-->
|
515 |
-
<!-- <span class="media-button button-large">-->
|
516 |
-
<!-- <a id="bwg_pro_version_link" class="bwg_link_shortcode" target="_blank" href="https://demo.10web.io/photo-gallery/--><?php //echo BWG()->utm_source; ?><!--">--><?php //_e('Please see ', 'photo-gallery') ?><!--<span id="bwg_pro_version">--><?php //_e('Thumbnails', 'photo-gallery') ?><!--</span> --><?php //_e('View in Premium version', 'photo-gallery') ?><!--</a>-->
|
517 |
-
<!-- </span>-->
|
518 |
-
<!-- </div>-->
|
519 |
-
<!-- --><?php //} ?>
|
520 |
-
<!-- </div>-->
|
521 |
</div>
|
522 |
<?php
|
523 |
}
|
83 |
</label>
|
84 |
<input type="radio" class="gallery_type_radio" id="thumbnails_masonry" name="gallery_type" value="thumbnails_masonry" />
|
85 |
<label class="gallery_type_label" for="thumbnails_masonry"><?php echo __('Masonry', 'photo-gallery'); ?></label>
|
|
|
|
|
|
|
86 |
</div>
|
87 |
</span>
|
88 |
<span class="gallery_type bwg-thumbnails_mosaic" onClick="bwg_gallery_type('thumbnails_mosaic')" data-img-url="<?php echo BWG()->plugin_url . '/images/upgrade_to_pro_mosaic.png'; ?>" data-title="Mosaic" data-demo-link="https://demo.10web.io/photo-gallery/mosaic/?utm_source=photo_gallery&utm_medium=free_plugin">
|
92 |
<img class="view_type_img_active" src="<?php echo BWG()->plugin_url . '/images/thumbnails_mosaic_active.svg'; ?>" />
|
93 |
</label>
|
94 |
<input type="radio" class="gallery_type_radio" id="thumbnails_mosaic" name="gallery_type" value="thumbnails_mosaic" /><label class="gallery_type_label" for="thumbnails_mosaic"><?php echo __('Mosaic', 'photo-gallery'); ?></label>
|
|
|
|
|
|
|
95 |
</div>
|
96 |
</span>
|
97 |
<span class="gallery_type bwg-slideshow" onClick="bwg_gallery_type('slideshow')">
|
119 |
<img class="view_type_img_active" src="<?php echo BWG()->plugin_url . '/images/blog_style_active.svg'; ?>" />
|
120 |
</label>
|
121 |
<input type="radio" class="gallery_type_radio" id="blog_style" name="gallery_type" value="blog_style" /><label class="gallery_type_label" for="blog_style"><?php echo __('Blog Style', 'photo-gallery'); ?></label>
|
|
|
|
|
|
|
122 |
</div>
|
123 |
</span>
|
124 |
<span class="gallery_type bwg-carousel" onClick="bwg_gallery_type('carousel')" data-img-url="<?php echo BWG()->plugin_url . '/images/upgrade_to_pro_carousel.png'; ?>" data-title="Carousel" data-demo-link="https://demo.10web.io/photo-gallery/carousel/?utm_source=photo_gallery&utm_medium=free_plugin">
|
155 |
<li class="gallery-type-li" data-value="<?php echo $key; ?>">
|
156 |
<img src="<?php echo BWG()->plugin_url . '/images/' . $key . '.svg'; ?>">
|
157 |
<span><?php echo $gallery_type_name; ?> </span>
|
158 |
+
<?php if ( !BWG()->is_pro && $key == 'carousel') { ?>
|
159 |
<span class="pro_btn">Premium</span>
|
160 |
<?php } ?>
|
161 |
</li>
|
185 |
<img class="view_type_img_active" src="<?php echo BWG()->plugin_url . '/images/album_masonry_preview_active.svg'; ?>" />
|
186 |
</label>
|
187 |
<input type="radio" class="album_type_radio" id="album_masonry_preview" name="gallery_type" value="album_masonry_preview" /><label class="album_type_label" for="album_masonry_preview"><?php echo __('Masonry', 'photo-gallery'); ?></label>
|
|
|
|
|
|
|
188 |
</div>
|
189 |
</span>
|
190 |
<span class="gallery_type bwg-album_extended_preview" onClick="bwg_gallery_type('album_extended_preview')">
|
218 |
<li class="gallery-type-li" data-value="<?php echo $key; ?>">
|
219 |
<img src="<?php echo BWG()->plugin_url . '/images/' . $key . '.svg'; ?>">
|
220 |
<span><?php echo $album_type_name; ?> </span>
|
|
|
|
|
|
|
221 |
</li>
|
222 |
<?php
|
223 |
}
|
230 |
<?php
|
231 |
if ( !BWG()->is_pro ) {
|
232 |
?>
|
233 |
+
<div class="wd-box-content wd-width-100 wd-free-msg bwg-upgrade-view" style="display: none;">
|
234 |
<div class="upgrade-to-pro-text">
|
235 |
<p class="upgrade-to-pro-title"></p>
|
236 |
<p class="upgrade-to-pro-desc">
|
494 |
<div class="media-toolbar-primary search-form">
|
495 |
<button class="button media-button button-primary button-large media-button-insert button-hero" type="button" id="insert" name="insert" <?php if($params['elementor_callback']) { ?> data-callback="elementor" <?php } ?> onClick="bwg_insert_shortcode('');"><?php _e('Insert into post', 'photo-gallery'); ?></button>
|
496 |
</div>
|
497 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
498 |
</div>
|
499 |
<?php
|
500 |
}
|
admin/views/Speed.php
ADDED
@@ -0,0 +1,300 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Class SpeedView_bwg
|
5 |
+
*/
|
6 |
+
class SpeedView_bwg extends AdminView_bwg {
|
7 |
+
|
8 |
+
public function __construct() {
|
9 |
+
parent::__construct();
|
10 |
+
wp_enqueue_style(BWG()->prefix . '_speed');
|
11 |
+
wp_enqueue_script(BWG()->prefix . '_speed');
|
12 |
+
wp_enqueue_script(BWG()->prefix . '_speed_circle');
|
13 |
+
}
|
14 |
+
|
15 |
+
/**
|
16 |
+
* Display page.
|
17 |
+
*
|
18 |
+
* @param $params
|
19 |
+
*/
|
20 |
+
public function display( $params = array() ) {
|
21 |
+
?>
|
22 |
+
<div class="wrap">
|
23 |
+
<div class="bwg-speed-header">
|
24 |
+
<?php
|
25 |
+
if ( $params['booster_plugin_status'] !== 2 ) {
|
26 |
+
$this->install_booster_view( $params['booster_plugin_status'] );
|
27 |
+
$this->sign_up_booster_view( $params['booster_plugin_status'] );
|
28 |
+
$this->connected_booster_view( $params );
|
29 |
+
} else {
|
30 |
+
if ( !$params['booster_is_connected'] ) {
|
31 |
+
$this->sign_up_booster_view( $params['booster_plugin_status'] );
|
32 |
+
} else {
|
33 |
+
$this->connected_booster_view( $params );
|
34 |
+
}
|
35 |
+
}
|
36 |
+
?>
|
37 |
+
</div>
|
38 |
+
|
39 |
+
<div class="bwg-speed-body">
|
40 |
+
<div class="bwg-speed-body-container">
|
41 |
+
<p class="bwg-section-title"><?php esc_html_e('PageSpeed score', 'photo-gallery'); ?></p>
|
42 |
+
<p class="bwg-description"><?php esc_html_e('Start optimization by analyzing your website score.', 'photo-gallery') ?></p>
|
43 |
+
<div class="bwg-analyze-input-container">
|
44 |
+
<input type="url" class="bwg-analyze-input <?php esc_attr_e( ( $params['page_is_public'] === 0 ) ? 'bwg-analyze-input-error' : ''); ?>" placeholder="<?php esc_html_e('Page URL', 'photo-gallery') ?>" value="<?php echo esc_html($params['page_url']); ?>" data-page-public=<?php esc_attr_e( $params['page_is_public'] ); ?>>
|
45 |
+
<?php if ( $params['page_is_public'] === 0 ) { ?>
|
46 |
+
<p class="bwg-error-msg"><?php esc_html_e('This page is not public. Please publish the page to check the score.', 'photo-gallery'); ?></p>
|
47 |
+
<?php } ?>
|
48 |
+
<a class="bwg-analyze-input-button <?php esc_attr_e( ( !$params['page_is_public'] ) ? 'bwg-disable-analyze' : ''); ?>"><?php esc_html_e('Analyze', 'photo-gallery') ?></a>
|
49 |
+
</div>
|
50 |
+
|
51 |
+
<div class="bwg-analyze-info-container">
|
52 |
+
<div class="bwg-analyze-info-left">
|
53 |
+
<div class="bwg-analyze-info-left-cont">
|
54 |
+
<div class="bwg-analyze-mobile-score">
|
55 |
+
|
56 |
+
<div class="speed_circle" data-thickness="6" data-id="mobile">
|
57 |
+
<p class="circle_animated"><?php echo esc_html($params['bwg_speed_score']['mobile_score']); ?></p>
|
58 |
+
</div>
|
59 |
+
<p class="bwg-score-name"><?php esc_html_e('Mobile Score', 'photo-gallery'); ?></p>
|
60 |
+
<p class="bwg-load-time bwg-load-time-mobile"><?php esc_html_e('Load Time:', 'photo-gallery'); ?> <span><?php echo esc_html($params['bwg_speed_score']['mobile_loading_time']); ?></span></p>
|
61 |
+
</div>
|
62 |
+
<div class="bwg-analyze-desktop-score">
|
63 |
+
|
64 |
+
<div class="speed_circle" data-thickness="6" data-id="desktop">
|
65 |
+
<p class="circle_animated"><?php echo esc_html($params['bwg_speed_score']['desktop_score']); ?></p>
|
66 |
+
</div>
|
67 |
+
<p class="bwg-score-name"><?php esc_html_e('Desktop Score', 'photo-gallery'); ?></p>
|
68 |
+
<p class="bwg-load-time bwg-load-time-desktop"><?php esc_html_e('Load Time:', 'photo-gallery'); ?> <span><?php echo esc_html($params['bwg_speed_score']['desktop_loading_time']); ?></span></p>
|
69 |
+
</div>
|
70 |
+
</div>
|
71 |
+
<div class="bwg-analyze-score-info">
|
72 |
+
<span><?php esc_html_e('Scale:', 'photo-gallery') ?></span>
|
73 |
+
<span class="bwg-fast-icon bwg-score-icon"></span>90-100 <?php esc_html_e('(fast)', 'photo-gallery'); ?>
|
74 |
+
<span class="bwg-averege-icon bwg-score-icon"></span>50-89 <?php esc_html_e('(average)', 'photo-gallery'); ?>
|
75 |
+
<span class="bwg-slow-icon bwg-score-icon"></span>0-49 <?php esc_html_e('(slow)', 'photo-gallery'); ?>
|
76 |
+
</div>
|
77 |
+
</div>
|
78 |
+
|
79 |
+
<div class="bwg-analyze-info-right">
|
80 |
+
<p class="bwg-analyze-info-right-sub-title"><?php esc_html_e('Check your score with', 'photo-gallery') ?></p>
|
81 |
+
<a href="https://pagespeed.web.dev/" target="_blank"><?php esc_html_e('Google PageSpeed Insights', 'photo-gallery') ?></a>
|
82 |
+
<hr>
|
83 |
+
<h3><?php esc_html_e('Analyzed page:', 'photo-gallery'); ?></h3>
|
84 |
+
<p class="bwg-last-analyzed-page" title="<?php echo esc_html($params['bwg_speed_score']['url']); ?>"><?php echo esc_html($params['bwg_speed_score']['url']); ?></p>
|
85 |
+
<div class="bwg-last-analyzed-date-container">
|
86 |
+
<h3><?php esc_html_e('Last analyzed:', 'photo-gallery'); ?></h3>
|
87 |
+
<p class="bwg-last-analyzed-date"><?php echo esc_html($params['bwg_speed_score']['last_analyzed_time']); ?></p>
|
88 |
+
</div>
|
89 |
+
</div>
|
90 |
+
</div>
|
91 |
+
|
92 |
+
<?php
|
93 |
+
if ( $params['booster_is_connected'] && !$params['tenweb_is_paid'] ) {
|
94 |
+
$this->optimizer_on_free($params['dashboard_booster_url']);
|
95 |
+
} elseif ( $params['booster_is_connected'] && $params['tenweb_is_paid'] ) {
|
96 |
+
$this->optimizer_on_pro($params['dashboard_booster_url']);
|
97 |
+
} else {
|
98 |
+
$this->optimizer_pending( $params );
|
99 |
+
}
|
100 |
+
?>
|
101 |
+
</div>
|
102 |
+
</div>
|
103 |
+
<?php
|
104 |
+
}
|
105 |
+
|
106 |
+
/**
|
107 |
+
* Optimizer section view when booster connected and pro version
|
108 |
+
*
|
109 |
+
* @param string $url dashboard booster url
|
110 |
+
*/
|
111 |
+
public function optimizer_on_pro( $url ) {
|
112 |
+
?>
|
113 |
+
<div class="bwg-analyze-img_optimizer-container bwg-optimize_on bwg-optimize_done">
|
114 |
+
<div>
|
115 |
+
<p class="bwg-section-title"><?php esc_html_e('You’re all set!', 'photo-gallery') ?></p>
|
116 |
+
<p class="bwg-header-description"><?php esc_html_e('All images in media library are optimized.', 'photo-gallery') ?></p>
|
117 |
+
<ul>
|
118 |
+
<li><span></span><?php esc_html_e('Auto-optimize all uploaded images.', 'photo-gallery') ?></li>
|
119 |
+
<li><span></span><?php esc_html_e('Configure WebP format conversion', 'photo-gallery') ?></li>
|
120 |
+
</ul>
|
121 |
+
</div>
|
122 |
+
<div class="bwg-optimize_on-button-cont">
|
123 |
+
<a href="<?php echo esc_url($url); ?>" target="_blank" class="bwg-optimize-add-pages"><?php esc_html_e('Manage', 'photo-gallery') ?></a>
|
124 |
+
</div>
|
125 |
+
</div>
|
126 |
+
<?php
|
127 |
+
}
|
128 |
+
|
129 |
+
/**
|
130 |
+
* Optimizer section view when images not optimized and optimizer not active
|
131 |
+
*
|
132 |
+
* @param array $params
|
133 |
+
*/
|
134 |
+
public function optimizer_pending( $params = array() ) {
|
135 |
+
?>
|
136 |
+
<div class="bwg-analyze-img_optimizer-container bwg-optimize_pending">
|
137 |
+
<div>
|
138 |
+
<p class="bwg-section-title"><?php esc_html_e('Image optimizer is on', 'photo-gallery') ?></p>
|
139 |
+
<p class="bwg-header-description"><?php esc_html_e('Compress images without compromising the quality.', 'photo-gallery') ?></p>
|
140 |
+
<ul>
|
141 |
+
<li><?php esc_html_e('Optimize all uploaded images', 'photo-gallery') ?></li>
|
142 |
+
<li><?php esc_html_e('Optimize all uploaded images', 'photo-gallery') ?></li>
|
143 |
+
<li><?php esc_html_e('Speed up website and reduce load time', 'photo-gallery') ?></li>
|
144 |
+
</ul>
|
145 |
+
<div class="bwg-optimize-now-tooltip bwg-hidden"><?php esc_html_e('Installing 10Web Booster and signing up are required for image optimization.', 'photo-gallery'); ?></div>
|
146 |
+
<a class="bwg-optimize-now-button bwg-disable-link"><?php esc_html_e('Optimize Now', 'photo-gallery') ?></a>
|
147 |
+
</div>
|
148 |
+
<div class="bwg-img-count-container">
|
149 |
+
<h5><?php echo esc_html($params['media_count']); ?><span>/<?php echo _n('image', 'images', $params['media_count'], 'photo-gallery'); ?></span></h5>
|
150 |
+
<p><?php esc_html_e('Ready for Optimization', 'photo-gallery'); ?></p>
|
151 |
+
</div>
|
152 |
+
</div>
|
153 |
+
<?php
|
154 |
+
}
|
155 |
+
|
156 |
+
/**
|
157 |
+
* Optimizer section view when booster connected and free version
|
158 |
+
*
|
159 |
+
* @param string $url dashboard booster url
|
160 |
+
*/
|
161 |
+
public function optimizer_on_free( $url ) {
|
162 |
+
?>
|
163 |
+
<div class="bwg-analyze-img_optimizer-container bwg-optimize_on">
|
164 |
+
<div>
|
165 |
+
<p class="bwg-section-title"><?php esc_html_e('Image optimizer is on', 'photo-gallery') ?></p>
|
166 |
+
<p class="bwg-header-description"><?php esc_html_e('Add pages with images you’d like to optimize.', 'photo-gallery') ?></p>
|
167 |
+
<ul>
|
168 |
+
<li><span></span><?php esc_html_e('Specify the most image-heavy pages.', 'photo-gallery') ?></li>
|
169 |
+
<li><span></span><?php esc_html_e('Optimize pages with photo galleries', 'photo-gallery') ?></li>
|
170 |
+
</ul>
|
171 |
+
</div>
|
172 |
+
<div class="bwg-optimize_on-button-cont">
|
173 |
+
<a href="<?php echo esc_url($url)?>" target="_blank" class="bwg-optimize-add-pages"><?php esc_html_e('Add pages', 'photo-gallery') ?></a>
|
174 |
+
</div>
|
175 |
+
</div>
|
176 |
+
<?php
|
177 |
+
}
|
178 |
+
|
179 |
+
/**
|
180 |
+
* Top banner.
|
181 |
+
*
|
182 |
+
* @param array $params
|
183 |
+
*/
|
184 |
+
public function top_banner( $params = array() ) {
|
185 |
+
$booster_is_active = $params['booster_is_active'];
|
186 |
+
$media_count = $params['media_count'];
|
187 |
+
$button = $params['button'];
|
188 |
+
?>
|
189 |
+
<div class="bwg-booster-top-banner <?php echo esc_attr( (($booster_is_active) ? 'bwg-booster-active' : '') ); ?>">
|
190 |
+
<?php if ( ! $booster_is_active ) { ?>
|
191 |
+
<p class="bwg-booster-top-banner-wrapper-note">
|
192 |
+
<span class="bwg-booster-top-banner-wrapper-note--text"><?php esc_html_e('Heavy images negatively affect your website load time and PageSpeed score.', 'photo-gallery'); ?></span>
|
193 |
+
</p>
|
194 |
+
<?php } ?>
|
195 |
+
<div class="bwg-booster-top-banner-wrapper">
|
196 |
+
<div>
|
197 |
+
<p class="bwg-booster-top-banner-wrappe--images-count">
|
198 |
+
<?php
|
199 |
+
if ( $booster_is_active ) {
|
200 |
+
esc_html_e('Get 10Web Booster Pro', 'photo-gallery');
|
201 |
+
}
|
202 |
+
else {
|
203 |
+
$single = __('%s image can be optimized', 'photo-gallery');
|
204 |
+
$plural = __('%s images can be optimized', 'photo-gallery');
|
205 |
+
echo wp_sprintf( _n($single, $plural, $media_count, 'photo-gallery'), $media_count );
|
206 |
+
}
|
207 |
+
?>
|
208 |
+
</p>
|
209 |
+
<p>
|
210 |
+
<?php
|
211 |
+
if ( $booster_is_active ) {
|
212 |
+
esc_html_e('Automatically optimize the entire website with all images.', 'photo-gallery');
|
213 |
+
}
|
214 |
+
else {
|
215 |
+
esc_html_e('Improve PageSpeed score by optimizing your website.', 'photo-gallery');
|
216 |
+
}
|
217 |
+
?>
|
218 |
+
</p>
|
219 |
+
</div>
|
220 |
+
<div>
|
221 |
+
<a href="<?php echo esc_url($button['url']); ?>" <?php echo esc_attr($button['target']); ?> class="bwg-booster-top-banner-wrappe--button"><?php echo esc_html($button['name']); ?></a>
|
222 |
+
</div>
|
223 |
+
</div>
|
224 |
+
</div>
|
225 |
+
<?php
|
226 |
+
}
|
227 |
+
|
228 |
+
/**
|
229 |
+
* htnl content for case when booster plugin installed but user didn't sign up
|
230 |
+
*
|
231 |
+
* @param int $booster_plugin_status 2-active, 1-installed, 0-not installed
|
232 |
+
*/
|
233 |
+
public function sign_up_booster_view( $booster_plugin_status ) {
|
234 |
+
?>
|
235 |
+
<div class="bwg-sign_up-booster-container <?php echo esc_html($booster_plugin_status != 2) ? 'bwg-hidden' : ''; ?>">
|
236 |
+
<p class="bwg-section-title"><?php esc_html_e('10Web Booster plugin is installed!', 'photo-gallery') ?></p>
|
237 |
+
<p class="bwg-description"><?php esc_html_e('Sign up to activate 10Web Booster on your website and start optimization process.', 'photo-gallery') ?></p>
|
238 |
+
<p class="bwg-description"><?php esc_html_e('Optimization will start automatically after the sign up.', 'photo-gallery') ?></p>
|
239 |
+
<input type="email" class="bwg-sign-up-input" placeholder="Email address">
|
240 |
+
<div class="bwg-sign-up-dashboard-button-container">
|
241 |
+
<a class="bwg-sign-up-dashboard-button"><?php esc_html_e('Sign up', 'photo-gallery'); ?></a>
|
242 |
+
<div>
|
243 |
+
<?php esc_html_e('By signing up, you agree to 10Web’s.', 'photo-gallery'); ?>
|
244 |
+
<br>
|
245 |
+
<a href="https://10web.io/terms-of-service/" target="_blank"><?php esc_html_e('Terms of Services', 'photo-gallery'); ?></a>
|
246 |
+
<?php esc_html_e(' and ', 'photo-gallery'); ?>
|
247 |
+
<a href="https://10web.io/privacy-policy/" target="_blank"><?php esc_html_e('Privacy Policy', 'photo-gallery'); ?></a>
|
248 |
+
</div>
|
249 |
+
</div>
|
250 |
+
</div>
|
251 |
+
<?php
|
252 |
+
}
|
253 |
+
|
254 |
+
/**
|
255 |
+
* htnl content for case when booster plugin installed but user didn't sign up
|
256 |
+
*
|
257 |
+
* @param arrar $params status->2-active, 1-installed, 0-not installed, booster url
|
258 |
+
*/
|
259 |
+
public function connected_booster_view( $params = array() ) {
|
260 |
+
?>
|
261 |
+
<div class="bwg-connected-booster-container <?php echo esc_html($params['booster_plugin_status'] != 2) ? 'bwg-hidden' : ''; ?>">
|
262 |
+
<div class="bwg-connected-booster-content">
|
263 |
+
<div class="bwg-connected-booster-done-cont">
|
264 |
+
<?php esc_html_e('Site is connected', 'photo-gallery') ?>
|
265 |
+
</div>
|
266 |
+
<p class="bwg-section-title"><?php esc_html_e('10Web Booster is active', 'photo-gallery') ?></p>
|
267 |
+
<p class="bwg-header-description"><?php esc_html_e('Our plugin is now optimizing your website.', 'photo-gallery') ?></p>
|
268 |
+
<p class="bwg-header-description"><?php esc_html_e('Manage optimization settings from the 10Web dashboard.', 'photo-gallery') ?></p>
|
269 |
+
</div>
|
270 |
+
<div class="button-container">
|
271 |
+
<a href="<?php echo esc_url($params['dashboard_booster_url']); ?>" target="_blank" class="bwg-manage-booster"><?php esc_html_e('Manage', 'photo-gallery'); ?></a>
|
272 |
+
</div>
|
273 |
+
</div>
|
274 |
+
<?php
|
275 |
+
}
|
276 |
+
|
277 |
+
/**
|
278 |
+
* htnl content for case when booster plugin didn't installed
|
279 |
+
*
|
280 |
+
* @param int $booster_plugin_status 2-active, 1-installed, 0-not installed
|
281 |
+
*/
|
282 |
+
public function install_booster_view( $booster_plugin_status ) {
|
283 |
+
?>
|
284 |
+
<div class="bwg-install-booster-container">
|
285 |
+
<p class="bwg-section-title"><?php esc_html_e('10Web Booster', 'photo-gallery') ?></p>
|
286 |
+
<p class="bwg-header-description"><?php esc_html_e('Use 10Web Website Booster to optimize all website images and boost PageSpeed score.', 'photo-gallery') ?></p>
|
287 |
+
<ul>
|
288 |
+
<li><span></span><?php esc_html_e('Get a 90+ PageSpeed score', 'photo-gallery') ?></li>
|
289 |
+
<li><span></span><?php esc_html_e('Auto-optimize all uploaded images', 'photo-gallery') ?></li>
|
290 |
+
<li><span></span><?php esc_html_e('Speed up website and reduce load time', 'photo-gallery') ?></li>
|
291 |
+
<li><span></span><?php esc_html_e('Pass Core Web Vitals', 'photo-gallery') ?></li>
|
292 |
+
</ul>
|
293 |
+
<div class="button-container">
|
294 |
+
<a class="bwg-install-booster"><?php echo esc_html($booster_plugin_status === 0) ? __('Install 10Web Booster plugin', 'photo-gallery') : __('Activate 10Web Booster plugin', 'photo-gallery'); ?></a>
|
295 |
+
<p><?php esc_html_e('Installing from WordPress repository', 'photo-gallery') ?></p>
|
296 |
+
</div>
|
297 |
+
</div>
|
298 |
+
<?php
|
299 |
+
}
|
300 |
+
}
|
admin/views/Themes.php
CHANGED
@@ -15,140 +15,6 @@ class ThemesView_bwg extends AdminView_bwg {
|
|
15 |
* @param $params
|
16 |
*/
|
17 |
public function display( $params = array() ) {
|
18 |
-
?>
|
19 |
-
<div class="wrap">
|
20 |
-
<?php
|
21 |
-
if ( !BWG()->is_pro && get_option("wd_bwg_theme_version") ) {
|
22 |
-
wp_enqueue_style( BWG()->prefix . '_gallery-upgrade');
|
23 |
-
WDWLibrary::ask_question();
|
24 |
-
?>
|
25 |
-
<div class="gallery_upgrade_main">
|
26 |
-
<div class="gallery_upgrade_wrapper">
|
27 |
-
<div class="gallery_info">
|
28 |
-
<h2 class="gallery_info-text"><?php echo __('Photo Gallery Themes', BWG()->prefix) ?></h2>
|
29 |
-
<div class="gallery_info-question_mark">
|
30 |
-
<a href="https://help.10web.io/hc/en-us/articles/360016082231-Editing-Photo-Gallery-Themes?utm_source=photo_gallery&utm_medium=free_plugin">
|
31 |
-
<img src="<?php echo BWG()->plugin_url . '/images/Question_mark_upgrade.svg'?>" alt="">
|
32 |
-
</a>
|
33 |
-
</div>
|
34 |
-
</div>
|
35 |
-
<div class="gallery_upgrade-head">
|
36 |
-
<div class="gallery_upgrade-head-content">
|
37 |
-
<div class="gallery_upgrade-head-content-heading">
|
38 |
-
<h2>
|
39 |
-
<?php echo __('Build Fully Customized Gallery Views', 'photo-gallery'); ?>
|
40 |
-
</h2>
|
41 |
-
</div>
|
42 |
-
<div class="gallery_upgrade-head-content-text">
|
43 |
-
<p>
|
44 |
-
<?php echo __('Unlimited options to completely customize every detail. ', 'photo-gallery'); ?>
|
45 |
-
<br class="break_768">
|
46 |
-
<?php echo __(' Use default dark and light themes, or
|
47 |
-
create new from scratch.', 'photo-gallery'); ?>
|
48 |
-
</p>
|
49 |
-
</div>
|
50 |
-
<div class="gallery_upgrade-head-content-buttons">
|
51 |
-
<div class="button-upgrade">
|
52 |
-
<a href="https://10web.io/plugins/wordpress-photo-gallery/?utm_source=photo_gallery&utm_medium=free_plugin">
|
53 |
-
<input type="button" value="<?php echo __('UPGRADE TO PREMIUM', 'photo-gallery'); ?>">
|
54 |
-
</a>
|
55 |
-
</div>
|
56 |
-
</div>
|
57 |
-
</div>
|
58 |
-
<div class="gallery_upgrade-head-media">
|
59 |
-
<div class="gallery_upgrade-head-media-picture">
|
60 |
-
</div>
|
61 |
-
</div>
|
62 |
-
</div>
|
63 |
-
<?php
|
64 |
-
$data = array(
|
65 |
-
'thumbnails' => array(
|
66 |
-
'picture_url' => BWG()->plugin_url . '/images/Thumbnails_upgrade.svg',
|
67 |
-
'class' => 'thumb',
|
68 |
-
'heading' => 'Thumbnails',
|
69 |
-
'description' => 'Fully customizable thumbnails. Incorporate animation, transparency, borders, and more',
|
70 |
-
),
|
71 |
-
'pagination' => array(
|
72 |
-
'picture_url' => BWG()->plugin_url . '/images/Pagination_upgrade.svg',
|
73 |
-
'class' => 'pagination',
|
74 |
-
'heading' => 'Pagination',
|
75 |
-
'description' => 'Set the positioning and how your images load in a variety of gallery views and group gallery
|
76 |
-
views',
|
77 |
-
),
|
78 |
-
'font' => array(
|
79 |
-
'picture_url' => BWG()->plugin_url . '/images/Font_upgrade.svg',
|
80 |
-
'class' => 'font',
|
81 |
-
'heading' => 'Font',
|
82 |
-
'description' => 'Choose your font type from the existing library or from Google fonts',
|
83 |
-
),
|
84 |
-
'control_buttons' => array(
|
85 |
-
'picture_url' => BWG()->plugin_url . '/images/Control buttons_upgrade.svg',
|
86 |
-
'class' => 'control',
|
87 |
-
'heading' => 'Control buttons',
|
88 |
-
'description' => 'Customize the control button type, size, color and more, for Lightbox, Slideshow, and Carousel
|
89 |
-
views',
|
90 |
-
),
|
91 |
-
'color' => array(
|
92 |
-
'picture_url' => BWG()->plugin_url . '/images/Color_upgrade.svg',
|
93 |
-
'class' => 'color',
|
94 |
-
'heading' => 'Color',
|
95 |
-
'description' => 'Modify and create custom colors of any item of your gallery',
|
96 |
-
),
|
97 |
-
'filmstrip' => array(
|
98 |
-
'picture_url' => BWG()->plugin_url . '/images/Filmstrip_upgrade.svg',
|
99 |
-
'class' => 'filmstrip',
|
100 |
-
'heading' => 'Filmstrip',
|
101 |
-
'description' => 'Customize film strip style, position, color, and placement',
|
102 |
-
),
|
103 |
-
'lightbox' => array(
|
104 |
-
'picture_url' => BWG()->plugin_url . '/images/Lightbox_upgrade.svg',
|
105 |
-
'class' => 'lightbox',
|
106 |
-
'heading' => 'Lightbox',
|
107 |
-
'description' => 'Fully customizable lightbox allows for the creation of a unique viewing experience',
|
108 |
-
),
|
109 |
-
'alignment' => array(
|
110 |
-
'picture_url' => BWG()->plugin_url . '/images/Alignment_upgrade.svg',
|
111 |
-
'class' => 'alignment',
|
112 |
-
'heading' => 'Alignment',
|
113 |
-
'description' => 'Set custom alignment of images, titles, descriptions, and more',
|
114 |
-
),
|
115 |
-
'flex-empty-item' => array(
|
116 |
-
'picture_url' => '',
|
117 |
-
'class' => '',
|
118 |
-
'heading' => '',
|
119 |
-
'description' => '',
|
120 |
-
),
|
121 |
-
);
|
122 |
-
?>
|
123 |
-
<div class="gallery_upgrade-content">
|
124 |
-
<div class="gallery_upgrade-content-features">
|
125 |
-
<?php foreach ( $data as $item ) {
|
126 |
-
?>
|
127 |
-
<div class="gallery_feature">
|
128 |
-
<div class="gallery_feature-image">
|
129 |
-
<img class="<?php echo $item['class']; ?>" src="<?php echo $item['picture_url']; ?>" alt="">
|
130 |
-
</div>
|
131 |
-
<div class="gallery_feature-heading">
|
132 |
-
<h3>
|
133 |
-
<?php echo __($item['heading'], 'photo-gallery'); ?>
|
134 |
-
</h3>
|
135 |
-
</div>
|
136 |
-
<div class="gallery_feature-text">
|
137 |
-
<p>
|
138 |
-
<?php echo __($item['description'], 'photo-gallery'); ?>
|
139 |
-
</p>
|
140 |
-
</div>
|
141 |
-
</div>
|
142 |
-
<?php
|
143 |
-
} ?>
|
144 |
-
</div>
|
145 |
-
</div>
|
146 |
-
</div>
|
147 |
-
</div>
|
148 |
-
</div>
|
149 |
-
<?php
|
150 |
-
return;
|
151 |
-
}
|
152 |
ob_start();
|
153 |
echo $this->body($params);
|
154 |
// Pass the content to form.
|
@@ -194,6 +60,7 @@ class ThemesView_bwg extends AdminView_bwg {
|
|
194 |
echo $this->pagination($page_url, $total, $items_per_page);
|
195 |
?>
|
196 |
</div>
|
|
|
197 |
<table class="adminlist table table-striped wp-list-table widefat fixed pages">
|
198 |
<thead>
|
199 |
<tr>
|
@@ -345,12 +212,11 @@ class ThemesView_bwg extends AdminView_bwg {
|
|
345 |
<div class="wd-page-title wd-header">
|
346 |
<h1 class="wp-heading-inline"><?php _e('Theme title', 'photo-gallery'); ?></h1>
|
347 |
<input type="text" id="name" name="name" value="<?php echo !empty( $row->name ) ? $row->name : ''; ?>" class="spider_text_input bwg_requried">
|
348 |
-
<?php if ( BWG()->is_pro || get_option("wd_bwg_theme_version") ) { ?>
|
349 |
<div class="bwg-page-actions">
|
350 |
<button class="tw-button-primary button-large" onclick="if (spider_check_required('name', 'Title')) {return false;}; spider_set_input_value('task', 'save')">
|
351 |
<?php echo !empty($row->name) ? __('Update', 'photo-gallery') : __('Save', 'photo-gallery'); ?>
|
352 |
</button>
|
353 |
-
<?php if( $id ) { ?>
|
354 |
<input title="<?php _e('Reset to default theme', 'photo-gallery'); ?>"
|
355 |
class="tw-button-secondary preview-button button-large wd-btn-reset" type="submit"
|
356 |
onclick="if (confirm('<?php echo addslashes(__('Do you want to reset to default?', 'photo-gallery')); ?>')) {
|
@@ -361,7 +227,6 @@ class ThemesView_bwg extends AdminView_bwg {
|
|
361 |
value="<?php echo __('Reset', 'photo-gallery'); ?>"/>
|
362 |
<?php } ?>
|
363 |
</div>
|
364 |
-
<?php } ?>
|
365 |
</div>
|
366 |
<div class="bwg-clear"></div>
|
367 |
</div>
|
15 |
* @param $params
|
16 |
*/
|
17 |
public function display( $params = array() ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
ob_start();
|
19 |
echo $this->body($params);
|
20 |
// Pass the content to form.
|
60 |
echo $this->pagination($page_url, $total, $items_per_page);
|
61 |
?>
|
62 |
</div>
|
63 |
+
<?php echo $this->booster_top_banner(); ?>
|
64 |
<table class="adminlist table table-striped wp-list-table widefat fixed pages">
|
65 |
<thead>
|
66 |
<tr>
|
212 |
<div class="wd-page-title wd-header">
|
213 |
<h1 class="wp-heading-inline"><?php _e('Theme title', 'photo-gallery'); ?></h1>
|
214 |
<input type="text" id="name" name="name" value="<?php echo !empty( $row->name ) ? $row->name : ''; ?>" class="spider_text_input bwg_requried">
|
|
|
215 |
<div class="bwg-page-actions">
|
216 |
<button class="tw-button-primary button-large" onclick="if (spider_check_required('name', 'Title')) {return false;}; spider_set_input_value('task', 'save')">
|
217 |
<?php echo !empty($row->name) ? __('Update', 'photo-gallery') : __('Save', 'photo-gallery'); ?>
|
218 |
</button>
|
219 |
+
<?php if ( $id ) { ?>
|
220 |
<input title="<?php _e('Reset to default theme', 'photo-gallery'); ?>"
|
221 |
class="tw-button-secondary preview-button button-large wd-btn-reset" type="submit"
|
222 |
onclick="if (confirm('<?php echo addslashes(__('Do you want to reset to default?', 'photo-gallery')); ?>')) {
|
227 |
value="<?php echo __('Reset', 'photo-gallery'); ?>"/>
|
228 |
<?php } ?>
|
229 |
</div>
|
|
|
230 |
</div>
|
231 |
<div class="bwg-clear"></div>
|
232 |
</div>
|
admin/views/Widget.php
CHANGED
@@ -12,7 +12,7 @@ class WidgetView_bwg {
|
|
12 |
extract($args);
|
13 |
$title = (!empty($instance['title']) ? $instance['title'] : "");
|
14 |
$type = (!empty($instance['type']) ? $instance['type'] : "gallery");
|
15 |
-
$view_type = (!empty($instance['view_type'])
|
16 |
$gallery_id = (!empty($instance['gallery_id']) ? $instance['gallery_id'] : 0);
|
17 |
$album_id = (!empty($instance['album_id']) ? $instance['album_id'] : 0);
|
18 |
$theme_id = (!empty($instance['theme_id']) ? $instance['theme_id'] : 0);
|
@@ -134,11 +134,9 @@ class WidgetView_bwg {
|
|
134 |
</p>
|
135 |
<p id="view_type_container" style="display: <?php echo $instance['type'] != 'album' ? 'block' : 'none'; ?>;">
|
136 |
<label for="<?php echo $id_view_type; ?>"><?php _e('Gallery Type:', 'photo-gallery'); ?></label><br>
|
137 |
-
<input
|
138 |
-
<input
|
139 |
-
<?php if ( !BWG()->is_pro ) { ?>
|
140 |
<p class="description" style="display: <?php echo $instance['type'] != 'album' ? 'block' : 'none'; ?>; background-color: #e0e0e0; border: 1px solid #c3c3c3; border-radius: 2px; color: #666666; padding: 2px;"><?php echo BWG()->free_msg; ?></p>
|
141 |
-
<?php } ?>
|
142 |
</p>
|
143 |
<p id="p_albums" style="display:<?php echo ($instance['type'] == "album") ? "" : "none" ?>;">
|
144 |
<label for="<?php echo $id_album_id; ?>"><?php _e('Gallery Groups:', 'photo-gallery'); ?></label><br>
|
12 |
extract($args);
|
13 |
$title = (!empty($instance['title']) ? $instance['title'] : "");
|
14 |
$type = (!empty($instance['type']) ? $instance['type'] : "gallery");
|
15 |
+
$view_type = (!empty($instance['view_type']) ? $instance['view_type'] : "thumbnails");
|
16 |
$gallery_id = (!empty($instance['gallery_id']) ? $instance['gallery_id'] : 0);
|
17 |
$album_id = (!empty($instance['album_id']) ? $instance['album_id'] : 0);
|
18 |
$theme_id = (!empty($instance['theme_id']) ? $instance['theme_id'] : 0);
|
134 |
</p>
|
135 |
<p id="view_type_container" style="display: <?php echo $instance['type'] != 'album' ? 'block' : 'none'; ?>;">
|
136 |
<label for="<?php echo $id_view_type; ?>"><?php _e('Gallery Type:', 'photo-gallery'); ?></label><br>
|
137 |
+
<input type="radio" name="<?php echo $name_view_type; ?>" id="<?php echo $id_view_type . "_1"; ?>" value="thumbnails" class="sel_thumbnail_gallery" <?php if (isset($instance['view_type']) && $instance['view_type'] == "thumbnails") echo 'checked="checked"'; ?> /><label for="<?php echo $id_view_type . "_1"; ?>"><?php _e('Thumbnail', 'photo-gallery'); ?></label><br>
|
138 |
+
<input type="radio" name="<?php echo $name_view_type; ?>" id="<?php echo $id_view_type . "_2"; ?>" value="masonry" class="sel_masonry_gallery" <?php if (isset($instance['view_type']) && $instance['view_type'] == "masonry") echo 'checked="checked"'; ?> /><label for="<?php echo $id_view_type . "_2"; ?>"><?php _e('Masonry', 'photo-gallery'); ?></label>
|
|
|
139 |
<p class="description" style="display: <?php echo $instance['type'] != 'album' ? 'block' : 'none'; ?>; background-color: #e0e0e0; border: 1px solid #c3c3c3; border-radius: 2px; color: #666666; padding: 2px;"><?php echo BWG()->free_msg; ?></p>
|
|
|
140 |
</p>
|
141 |
<p id="p_albums" style="display:<?php echo ($instance['type'] == "album") ? "" : "none" ?>;">
|
142 |
<label for="<?php echo $id_album_id; ?>"><?php _e('Gallery Groups:', 'photo-gallery'); ?></label><br>
|
admin/views/WidgetSlideshow.php
CHANGED
@@ -102,8 +102,7 @@ class WidgetSlideshowView_bwg {
|
|
102 |
foreach ($slideshow_effects as $key => $slideshow_effect) {
|
103 |
?>
|
104 |
<option value="<?php echo $key; ?>"
|
105 |
-
<?php
|
106 |
-
<?php if ($instance['effect'] == $key) echo 'selected="selected"'; ?>><?php echo $slideshow_effect; ?></option>
|
107 |
<?php
|
108 |
}
|
109 |
?>
|
@@ -132,12 +131,9 @@ class WidgetSlideshowView_bwg {
|
|
132 |
<input class="widefat" style="width:25%;" id="<?php echo $id_width; ?>" name="<?php echo $name_width; ?>" type="text" value="<?php echo $instance['width']; ?>"/> x
|
133 |
<input class="widefat" style="width:25%;" id="<?php echo $id_height; ?>" name="<?php echo $name_height; ?>" type="text" value="<?php echo $instance['height']; ?>"/> px
|
134 |
</p>
|
135 |
-
<p
|
136 |
<label for="<?php echo $id_filmstrip_height; ?>"><?php _e('Filmstrip height:', 'photo-gallery'); ?></label><br>
|
137 |
-
<input
|
138 |
-
<?php if ( !BWG()->is_pro ) { ?>
|
139 |
-
<p class="description" style="background-color: #e0e0e0; border: 1px solid #c3c3c3; border-radius: 2px; color: #666666; padding: 2px;"><?php echo BWG()->free_msg; ?></p>
|
140 |
-
<?php } ?>
|
141 |
</p>
|
142 |
<p>
|
143 |
<label for="<?php echo $id_interval; ?>"><?php _e('Time interval:', 'photo-gallery'); ?></label><br>
|
@@ -145,7 +141,7 @@ class WidgetSlideshowView_bwg {
|
|
145 |
</p>
|
146 |
<p>
|
147 |
<label for="<?php echo $id_theme_id; ?>"><?php _e('Themes:', 'photo-gallery'); ?></label><br>
|
148 |
-
<select
|
149 |
<?php
|
150 |
foreach ($theme_rows as $theme_row) {
|
151 |
?>
|
@@ -154,10 +150,7 @@ class WidgetSlideshowView_bwg {
|
|
154 |
}
|
155 |
?>
|
156 |
</select>
|
157 |
-
|
158 |
-
<p class="description" style="background-color: #e0e0e0; border: 1px solid #c3c3c3; border-radius: 2px; color: #666666; padding: 2px;"><?php echo BWG()->free_msg; ?></p>
|
159 |
-
<?php } ?>
|
160 |
-
</p>
|
161 |
<?php
|
162 |
}
|
163 |
}
|
102 |
foreach ($slideshow_effects as $key => $slideshow_effect) {
|
103 |
?>
|
104 |
<option value="<?php echo $key; ?>"
|
105 |
+
<?php if ($instance['effect'] == $key) echo 'selected="selected"'; ?>><?php echo esc_html($slideshow_effect); ?></option>
|
|
|
106 |
<?php
|
107 |
}
|
108 |
?>
|
131 |
<input class="widefat" style="width:25%;" id="<?php echo $id_width; ?>" name="<?php echo $name_width; ?>" type="text" value="<?php echo $instance['width']; ?>"/> x
|
132 |
<input class="widefat" style="width:25%;" id="<?php echo $id_height; ?>" name="<?php echo $name_height; ?>" type="text" value="<?php echo $instance['height']; ?>"/> px
|
133 |
</p>
|
134 |
+
<p>
|
135 |
<label for="<?php echo $id_filmstrip_height; ?>"><?php _e('Filmstrip height:', 'photo-gallery'); ?></label><br>
|
136 |
+
<input class="widefat" style="width: 25%;" id="<?php echo $id_filmstrip_height; ?>" name="<?php echo $name_filmstrip_height; ?>" type="text" value="<?php echo $instance['filmstrip_height']; ?>"/> px
|
|
|
|
|
|
|
137 |
</p>
|
138 |
<p>
|
139 |
<label for="<?php echo $id_interval; ?>"><?php _e('Time interval:', 'photo-gallery'); ?></label><br>
|
141 |
</p>
|
142 |
<p>
|
143 |
<label for="<?php echo $id_theme_id; ?>"><?php _e('Themes:', 'photo-gallery'); ?></label><br>
|
144 |
+
<select name="<?php echo $name_theme_id; ?>" id="<?php echo $id_theme_id; ?>" class="widefat">
|
145 |
<?php
|
146 |
foreach ($theme_rows as $theme_row) {
|
147 |
?>
|
150 |
}
|
151 |
?>
|
152 |
</select>
|
153 |
+
</p>
|
|
|
|
|
|
|
154 |
<?php
|
155 |
}
|
156 |
}
|
css/bwg_frontend.css
CHANGED
@@ -647,7 +647,7 @@ div[id^="bwg_container"] .bwg-border-box * {
|
|
647 |
}
|
648 |
|
649 |
.hidden {
|
650 |
-
display: none;
|
651 |
}
|
652 |
|
653 |
.bwg-loading {
|
@@ -2033,20 +2033,6 @@ body .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .SumoS
|
|
2033 |
}
|
2034 |
}
|
2035 |
|
2036 |
-
/*Always show image title on mobile*/
|
2037 |
-
@media (pointer:none), (pointer:coarse) {
|
2038 |
-
|
2039 |
-
.bwg-container.bwg-standard-thumbnails .bwg-title1,
|
2040 |
-
.bwg-container.bwg-masonry-thumbnails .bwg-title1,
|
2041 |
-
.bwg-mosaic-thumbnails{
|
2042 |
-
opacity: 1!important;
|
2043 |
-
}
|
2044 |
-
.bwg-zoom-effect .bwg-zoom-effect-overlay, .bwg-zoom-effect-overlay > span {
|
2045 |
-
opacity: 1!important;
|
2046 |
-
background-color: unset!important;
|
2047 |
-
}
|
2048 |
-
}
|
2049 |
-
|
2050 |
/*Always show image title on mobile for elementor*/
|
2051 |
body[data-elementor-device-mode="mobile"] .bwg-container.bwg-standard-thumbnails .bwg-title1,
|
2052 |
body[data-elementor-device-mode="tablet"] .bwg-container.bwg-standard-thumbnails .bwg-title1,
|
@@ -2542,4 +2528,152 @@ div[id^='bwg_container1_'] div[id^='bwg_container2_'] span[class^='bwg_mosaic_pl
|
|
2542 |
left: 10px;
|
2543 |
top: 10px;
|
2544 |
z-index: 9999;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2545 |
}
|
647 |
}
|
648 |
|
649 |
.hidden {
|
650 |
+
display: none !important;
|
651 |
}
|
652 |
|
653 |
.bwg-loading {
|
2033 |
}
|
2034 |
}
|
2035 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2036 |
/*Always show image title on mobile for elementor*/
|
2037 |
body[data-elementor-device-mode="mobile"] .bwg-container.bwg-standard-thumbnails .bwg-title1,
|
2038 |
body[data-elementor-device-mode="tablet"] .bwg-container.bwg-standard-thumbnails .bwg-title1,
|
2528 |
left: 10px;
|
2529 |
top: 10px;
|
2530 |
z-index: 9999;
|
2531 |
+
}
|
2532 |
+
|
2533 |
+
#wp-admin-bar-booster-top-button {
|
2534 |
+
position: relative;
|
2535 |
+
}
|
2536 |
+
#wp-admin-bar-booster-top-button .ab-item {
|
2537 |
+
margin: 3px 0 0 10px !important;
|
2538 |
+
padding: 0px !important;
|
2539 |
+
width: 169px;
|
2540 |
+
height: 26px !important;
|
2541 |
+
width: 169px;
|
2542 |
+
height: 26px;
|
2543 |
+
background: #2160B5 0% 0% no-repeat padding-box;
|
2544 |
+
border-radius: 4px;
|
2545 |
+
/* font-family: 'Open Sans'; */
|
2546 |
+
/* font-weight: normal; */
|
2547 |
+
font-size: 12px;
|
2548 |
+
line-height: 24px;
|
2549 |
+
letter-spacing: 0.1px;
|
2550 |
+
text-align: center;
|
2551 |
+
color: #FFFFFF;
|
2552 |
+
cursor: pointer;
|
2553 |
+
}
|
2554 |
+
|
2555 |
+
#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-booster-top-button:hover>.ab-item,
|
2556 |
+
#wp-admin-bar-booster-top-button .ab-item:hover {
|
2557 |
+
background: #2160B5 0% 0% no-repeat padding-box !important;
|
2558 |
+
color: #FFFFFF !important;
|
2559 |
+
}
|
2560 |
+
#wp-admin-bar-booster-top-button #wp-admin-bar-booster-wrap {
|
2561 |
+
display: block;
|
2562 |
+
position: absolute;
|
2563 |
+
right: 0px;
|
2564 |
+
overflow-y: auto;
|
2565 |
+
overflow-x: hidden;
|
2566 |
+
}
|
2567 |
+
#wp-admin-bar-booster-top-button:hover #wp-admin-bar-booster-wrap {
|
2568 |
+
display: block;
|
2569 |
+
}
|
2570 |
+
#wp-admin-bar-booster-top-button .bwg-score-info * {
|
2571 |
+
margin: 0px;
|
2572 |
+
padding: 0px;
|
2573 |
+
line-height: unset;
|
2574 |
+
}
|
2575 |
+
#wp-admin-bar-booster-top-button .bwg-score-info {
|
2576 |
+
margin-top: 10px;
|
2577 |
+
background: #FFFFFF 0% 0% no-repeat padding-box;
|
2578 |
+
border: 1px solid #323A4533;
|
2579 |
+
border-radius: 6px;
|
2580 |
+
}
|
2581 |
+
#wp-admin-bar-booster-top-button .bwg-score-info .bwg-score-circle {
|
2582 |
+
width: 44px;
|
2583 |
+
height: 44px;
|
2584 |
+
position: relative;
|
2585 |
+
border-radius: 50%;
|
2586 |
+
margin-right: 12px;
|
2587 |
+
}
|
2588 |
+
#wp-admin-bar-booster-top-button .bwg-score-info .bwg-score-circle canvas {
|
2589 |
+
width: 44px;
|
2590 |
+
height: 44px;
|
2591 |
+
border-radius: 44px;
|
2592 |
+
}
|
2593 |
+
#wp-admin-bar-booster-top-button .bwg-score-info .bwg-score-circle .bwg-score-circle-animated {
|
2594 |
+
position: absolute;
|
2595 |
+
left: 50%;
|
2596 |
+
top: 50%;
|
2597 |
+
-webkit-transform: translate(-50%, -50%);
|
2598 |
+
-moz-transform: translate(-50%, -50%);
|
2599 |
+
transform: translate(-50%, -50%);
|
2600 |
+
text-align: center;
|
2601 |
+
font: normal normal bold 16px/22px Open Sans;
|
2602 |
+
letter-spacing: 0px;
|
2603 |
+
color: rgba(34, 179, 57, 1);
|
2604 |
+
}
|
2605 |
+
#wp-admin-bar-booster-top-button .bwg-score-info .bwg-score-container,
|
2606 |
+
#wp-admin-bar-booster-top-button .bwg-score-info .bwg-reanalyze-container {
|
2607 |
+
display: flex;
|
2608 |
+
}
|
2609 |
+
#wp-admin-bar-booster-top-button .bwg-score-info .bwg-score-container {
|
2610 |
+
padding: 20px;
|
2611 |
+
background: rgba(249, 249, 249, 1) 0% 0% no-repeat padding-box;
|
2612 |
+
border-top-left-radius: 6px;
|
2613 |
+
border-top-right-radius: 6px;
|
2614 |
+
}
|
2615 |
+
#wp-admin-bar-booster-top-button .bwg-score-info .bwg-reanalyze-container {
|
2616 |
+
padding: 14px 20px;
|
2617 |
+
display:flex;
|
2618 |
+
}
|
2619 |
+
|
2620 |
+
#wp-admin-bar-booster-wrap .bwg-reanalyze-button a {
|
2621 |
+
width: 152px;
|
2622 |
+
height: 34px;
|
2623 |
+
box-sizing: border-box;
|
2624 |
+
color:#ffffff;
|
2625 |
+
background-color: #2160B5;
|
2626 |
+
border-radius: 4px;
|
2627 |
+
text-align: center;
|
2628 |
+
float: right;
|
2629 |
+
}
|
2630 |
+
#wp-admin-bar-booster-top-button .bwg-score-info .bwg-reanalyze-button {
|
2631 |
+
flex-grow: 1;
|
2632 |
+
}
|
2633 |
+
|
2634 |
+
#wp-admin-bar-booster-top-button .bwg-score-info .bwg-last-analyzed p:first-child {
|
2635 |
+
margin: 0;
|
2636 |
+
padding: 0;
|
2637 |
+
color: #323A45;
|
2638 |
+
font-size: 10px;
|
2639 |
+
line-height: 16px;
|
2640 |
+
font-weight: bold;
|
2641 |
+
}
|
2642 |
+
|
2643 |
+
#wp-admin-bar-booster-top-button .bwg-score-info .bwg-last-analyzed p.bwg-last-analyzed-time {
|
2644 |
+
margin: 0;
|
2645 |
+
padding: 0;
|
2646 |
+
color: #323A45;
|
2647 |
+
font-size: 12px;
|
2648 |
+
line-height: 18px;
|
2649 |
+
font-weight: 400;
|
2650 |
+
}
|
2651 |
+
|
2652 |
+
#wp-admin-bar-booster-top-button .bwg-score-info .bwg-score-mobile,
|
2653 |
+
#wp-admin-bar-booster-top-button .bwg-score-info .bwg-score-desktop {
|
2654 |
+
display: flex;
|
2655 |
+
}
|
2656 |
+
#wp-admin-bar-booster-top-button .bwg-score-info .bwg-score-mobile {
|
2657 |
+
margin-right: 20px;
|
2658 |
+
}
|
2659 |
+
#wp-admin-bar-booster-top-button .bwg-score-info .bwg-score-text {
|
2660 |
+
width: 106px;
|
2661 |
+
text-align: left;
|
2662 |
+
font-family: Open Sans;
|
2663 |
+
font-weight: 100;
|
2664 |
+
color: rgba(50, 58, 69, 1);
|
2665 |
+
}
|
2666 |
+
|
2667 |
+
#wp-admin-bar-booster-top-button .bwg-score-info .bwg-score-text--name {
|
2668 |
+
display: block;
|
2669 |
+
line-height: 16px;
|
2670 |
+
font-size: 10px;
|
2671 |
+
font-weight: 800;
|
2672 |
+
opacity: 1;
|
2673 |
+
}
|
2674 |
+
#wp-admin-bar-booster-top-button .bwg-score-info .bwg-load-text--time {
|
2675 |
+
display: block;
|
2676 |
+
line-height: 18px;
|
2677 |
+
font-size: 12px;
|
2678 |
+
opacity: 0.7;
|
2679 |
}
|
css/bwg_speed.css
ADDED
@@ -0,0 +1,993 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.bwg-speed-header {
|
2 |
+
width: 714px;
|
3 |
+
height: auto;
|
4 |
+
background-color: #FFFFFF;
|
5 |
+
margin: auto;
|
6 |
+
padding: 20px 20px;
|
7 |
+
box-sizing: border-box;
|
8 |
+
border-radius: 4px;
|
9 |
+
font-family: 'Open Sans';
|
10 |
+
}
|
11 |
+
|
12 |
+
.bwg-hidden {
|
13 |
+
display: none!important;
|
14 |
+
}
|
15 |
+
|
16 |
+
.bwg-speed-body {
|
17 |
+
font-family: 'Open Sans';
|
18 |
+
}
|
19 |
+
|
20 |
+
.bwg-install-booster-container {
|
21 |
+
padding: 0 20px;
|
22 |
+
position: relative;
|
23 |
+
}
|
24 |
+
|
25 |
+
.bwg-install-booster-container p.bwg-section-title,
|
26 |
+
.bwg-sign_up-booster-container p.bwg-section-title,
|
27 |
+
.bwg-speed-body-container p.bwg-section-title,
|
28 |
+
.bwg-connected-booster-content p.bwg-section-title{
|
29 |
+
padding: 0;
|
30 |
+
margin: 0 0 2px 0;
|
31 |
+
color: #323A45;
|
32 |
+
font-size: 16px;
|
33 |
+
line-height: 26px;
|
34 |
+
font-weight: bold;
|
35 |
+
}
|
36 |
+
|
37 |
+
.bwg-speed-body-container p.bwg-section-title {
|
38 |
+
margin: 0 0 5px 0;
|
39 |
+
}
|
40 |
+
|
41 |
+
.bwg-description {
|
42 |
+
padding: 0;
|
43 |
+
margin: 0;
|
44 |
+
font-size: 14px;
|
45 |
+
line-height: 20px;
|
46 |
+
color: #323A45;
|
47 |
+
}
|
48 |
+
|
49 |
+
.bwg-install-booster-container ul {
|
50 |
+
display: inline-block;
|
51 |
+
list-style: none; /* Remove default bullets */
|
52 |
+
margin: 18px 0 0 0;
|
53 |
+
}
|
54 |
+
|
55 |
+
.bwg-install-booster-container ul li {
|
56 |
+
margin: 0 0 10px 0;
|
57 |
+
padding: 0;
|
58 |
+
font-size: 12px;
|
59 |
+
font-weight: 600;
|
60 |
+
line-height: 18px;
|
61 |
+
color: #323A45;
|
62 |
+
}
|
63 |
+
|
64 |
+
.bwg-install-booster-container ul li span {
|
65 |
+
width: 6px;
|
66 |
+
height: 6px;
|
67 |
+
background-color: #D6D8DA;
|
68 |
+
border-radius: 3px;
|
69 |
+
display: inline-block;
|
70 |
+
margin-right: 8px;
|
71 |
+
vertical-align: middle;
|
72 |
+
}
|
73 |
+
|
74 |
+
.bwg-install-booster-container ul li:last-child {
|
75 |
+
margin-bottom: 0px;
|
76 |
+
}
|
77 |
+
|
78 |
+
.button-container {
|
79 |
+
position: relative;
|
80 |
+
}
|
81 |
+
|
82 |
+
.bwg-install-booster-container .button-container {
|
83 |
+
position: absolute;
|
84 |
+
right: 25px;
|
85 |
+
bottom: 0;
|
86 |
+
|
87 |
+
}
|
88 |
+
|
89 |
+
.button-container p {
|
90 |
+
font-size: 10px;
|
91 |
+
line-height: 16px;
|
92 |
+
letter-spacing: 0.08px;
|
93 |
+
color: #323A45;
|
94 |
+
margin: 0;
|
95 |
+
padding: 8px 0 0 0;
|
96 |
+
text-align: center;
|
97 |
+
}
|
98 |
+
|
99 |
+
a.bwg-install-booster,
|
100 |
+
a.bwg-manage-booster,
|
101 |
+
a.bwg-sign-up-dashboard-button {
|
102 |
+
display: block;
|
103 |
+
width: 235px;
|
104 |
+
height: 40px;
|
105 |
+
box-sizing: border-box;
|
106 |
+
font-size: 14px;
|
107 |
+
font-weight: 400;
|
108 |
+
line-height: 14px;
|
109 |
+
text-align: center;
|
110 |
+
padding: 13px 16px;
|
111 |
+
background-color: #2160B5;
|
112 |
+
border-radius: 4px;
|
113 |
+
color:#ffffff;
|
114 |
+
text-decoration: none;
|
115 |
+
cursor: pointer;
|
116 |
+
}
|
117 |
+
|
118 |
+
a.bwg-manage-booster {
|
119 |
+
width: 210px;
|
120 |
+
}
|
121 |
+
|
122 |
+
a.bwg-install-booster:hover,
|
123 |
+
a.bwg-sign-up-dashboard-button:hover,
|
124 |
+
a.bwg-optimize-now-button:hover,
|
125 |
+
a.bwg-optimize-add-pages,
|
126 |
+
a.bwg-manage-booster {
|
127 |
+
color: #ffffff
|
128 |
+
}
|
129 |
+
|
130 |
+
|
131 |
+
a.bwg-disable-link {
|
132 |
+
cursor: default;
|
133 |
+
opacity: 0.5;
|
134 |
+
}
|
135 |
+
|
136 |
+
a.bwg-disable-analyze {
|
137 |
+
background-color: #ffffff;
|
138 |
+
cursor: default;
|
139 |
+
opacity: 0.5;
|
140 |
+
}
|
141 |
+
|
142 |
+
a.bwg-disable-link:hover {
|
143 |
+
background-color: #2160B5;
|
144 |
+
color: #ffffff;
|
145 |
+
cursor: default;
|
146 |
+
}
|
147 |
+
|
148 |
+
.bwg-loading-image {
|
149 |
+
width: 15px;
|
150 |
+
}
|
151 |
+
|
152 |
+
.bwg-sign_up-booster-container > div {
|
153 |
+
display: flex;
|
154 |
+
}
|
155 |
+
|
156 |
+
.bwg-sign_up-booster-container > div > div {
|
157 |
+
padding: 0 0 0 15px;
|
158 |
+
box-sizing: border-box;
|
159 |
+
max-width: 420px;
|
160 |
+
font-size: 12px;
|
161 |
+
line-height: 18px;
|
162 |
+
color: #323A45;
|
163 |
+
}
|
164 |
+
|
165 |
+
.bwg-sign_up-booster-container > div > div a {
|
166 |
+
color: #323A45;
|
167 |
+
}
|
168 |
+
|
169 |
+
.bwg-sign-up-dashboard-button-container {
|
170 |
+
margin-top: 30px;
|
171 |
+
}
|
172 |
+
|
173 |
+
input.bwg-sign-up-input {
|
174 |
+
display: block;
|
175 |
+
margin-top: 20px;
|
176 |
+
padding: 10px 16px;
|
177 |
+
width: 550px;
|
178 |
+
height: 40px;
|
179 |
+
box-sizing: border-box;
|
180 |
+
border: 1px solid #323A4533;
|
181 |
+
border-radius: 6px;
|
182 |
+
}
|
183 |
+
|
184 |
+
::-webkit-input-placeholder { /* Edge */
|
185 |
+
color: #323A4580;
|
186 |
+
}
|
187 |
+
|
188 |
+
:-ms-input-placeholder { /* Internet Explorer 10-11 */
|
189 |
+
color: #323A4580;
|
190 |
+
}
|
191 |
+
|
192 |
+
::placeholder {
|
193 |
+
color: #323A4580;
|
194 |
+
}
|
195 |
+
|
196 |
+
.bwg-speed-body {
|
197 |
+
width: 714px;
|
198 |
+
height: auto;
|
199 |
+
background-color: #FFFFFF;
|
200 |
+
margin: 20px auto;
|
201 |
+
padding: 20px;
|
202 |
+
box-sizing: border-box;
|
203 |
+
border-radius: 4px;
|
204 |
+
}
|
205 |
+
|
206 |
+
.bwg-analyze-input-container {
|
207 |
+
display: flex;
|
208 |
+
margin-top: 20px;
|
209 |
+
position: relative;
|
210 |
+
}
|
211 |
+
|
212 |
+
.bwg-analyze-input {
|
213 |
+
width: 414px;
|
214 |
+
height: 40px;
|
215 |
+
box-sizing: border-box;
|
216 |
+
border: 1px solid #323A4533;
|
217 |
+
border-radius: 6px;
|
218 |
+
margin-right: 25px;
|
219 |
+
}
|
220 |
+
|
221 |
+
.bwg-analyze-input-error,
|
222 |
+
.bwg-input-error {
|
223 |
+
border-color: #FD3C31 !important;
|
224 |
+
}
|
225 |
+
.bwg-analyze-input--error-message {
|
226 |
+
display: block;
|
227 |
+
margin-top: 3px;
|
228 |
+
text-align: left;
|
229 |
+
line-height: 18px;
|
230 |
+
letter-spacing: 0px;
|
231 |
+
font-family: 'Open Sans';
|
232 |
+
font-weight: normal;
|
233 |
+
font-style: italic;
|
234 |
+
font-size: 12px;
|
235 |
+
color: #FD3C31;
|
236 |
+
}
|
237 |
+
|
238 |
+
|
239 |
+
.bwg-analyze-input-button {
|
240 |
+
display: block;
|
241 |
+
width:210px;
|
242 |
+
height: 40px;
|
243 |
+
text-align: center;
|
244 |
+
box-sizing: border-box;
|
245 |
+
text-decoration: none;
|
246 |
+
border: 1px solid #DEDEDE;
|
247 |
+
border-radius: 4px;
|
248 |
+
line-height: 37px;
|
249 |
+
color: #323A45;
|
250 |
+
cursor: pointer;
|
251 |
+
}
|
252 |
+
|
253 |
+
.bwg-analyze-input-button:hover {
|
254 |
+
color: #323A45;
|
255 |
+
}
|
256 |
+
|
257 |
+
.bwg-analyze-info-container {
|
258 |
+
display: flex;
|
259 |
+
width: 100%;
|
260 |
+
height: 204px;
|
261 |
+
margin-top: 30px;
|
262 |
+
}
|
263 |
+
|
264 |
+
.bwg-analyze-info-left-cont {
|
265 |
+
display: flex;
|
266 |
+
}
|
267 |
+
|
268 |
+
.bwg-analyze-mobile-score,
|
269 |
+
.bwg-analyze-desktop-score {
|
270 |
+
width: 202px;
|
271 |
+
height: 158px;
|
272 |
+
background: #F9F9F9;
|
273 |
+
}
|
274 |
+
|
275 |
+
.bwg-analyze-mobile-score {
|
276 |
+
margin-right: 5px;
|
277 |
+
background: url(../images/speed/mobile.svg) no-repeat #F9F9F9;
|
278 |
+
background-size: 18px;
|
279 |
+
background-position: 10px 10px;
|
280 |
+
}
|
281 |
+
|
282 |
+
.bwg-analyze-desktop-score {
|
283 |
+
margin-left: 5px;
|
284 |
+
background: url(../images/speed/desktop.svg) no-repeat #F9F9F9;
|
285 |
+
background-size: 18px;
|
286 |
+
background-position: 10px 10px;
|
287 |
+
}
|
288 |
+
|
289 |
+
.bwg-analyze-score-info {
|
290 |
+
width: 414px;
|
291 |
+
height: 38px;
|
292 |
+
background: #F9F9F9;
|
293 |
+
margin-top: 8px;
|
294 |
+
line-height: 38px;
|
295 |
+
text-align: center;
|
296 |
+
font-size: 12px;
|
297 |
+
font-weight: 600;
|
298 |
+
}
|
299 |
+
|
300 |
+
.bwg-score-icon {
|
301 |
+
width: 8px;
|
302 |
+
height: 4px;
|
303 |
+
border-radius: 3px;
|
304 |
+
display: inline-block;
|
305 |
+
vertical-align: middle;
|
306 |
+
}
|
307 |
+
|
308 |
+
.bwg-fast-icon {
|
309 |
+
background-color: #22B339;
|
310 |
+
margin: 0 4px 0 2px;
|
311 |
+
}
|
312 |
+
|
313 |
+
.bwg-averege-icon {
|
314 |
+
background-color: #F8C332;
|
315 |
+
margin: 0 4px 0 13px;
|
316 |
+
}
|
317 |
+
|
318 |
+
.bwg-slow-icon {
|
319 |
+
background-color: #FD3C31;
|
320 |
+
margin: 0 4px 0 16px;
|
321 |
+
}
|
322 |
+
|
323 |
+
|
324 |
+
.bwg-analyze-info-right {
|
325 |
+
width: 250px;
|
326 |
+
height: 204px;
|
327 |
+
background: #F9F9F9;
|
328 |
+
margin-left: 10px;
|
329 |
+
padding: 0 20px;
|
330 |
+
box-sizing: border-box;
|
331 |
+
position: relative;
|
332 |
+
}
|
333 |
+
|
334 |
+
.bwg-last-analyzed-date-container {
|
335 |
+
position: absolute;
|
336 |
+
padding: 0;
|
337 |
+
margin: 0;
|
338 |
+
height: 38px;
|
339 |
+
bottom: 12px;
|
340 |
+
}
|
341 |
+
|
342 |
+
.bwg-analyze-info-right .bwg-last-analyzed-date-container h3,
|
343 |
+
.bwg-analyze-info-right .bwg-last-analyzed-date-container p {
|
344 |
+
margin: 0;
|
345 |
+
padding: 0;
|
346 |
+
}
|
347 |
+
|
348 |
+
.bwg-analyze-info-right p.bwg-analyze-info-right-sub-title {
|
349 |
+
padding: 0;
|
350 |
+
margin: 18px 0 0 0;
|
351 |
+
font-size: 12px;
|
352 |
+
line-height: 18px;
|
353 |
+
color: #323A45;
|
354 |
+
font-weight: 600;
|
355 |
+
}
|
356 |
+
|
357 |
+
.bwg-analyze-info-right a {
|
358 |
+
color: #2160B5;
|
359 |
+
font-size: 12px;
|
360 |
+
line-height: 18px;
|
361 |
+
padding: 0;
|
362 |
+
margin: 0;
|
363 |
+
font-weight: 600;
|
364 |
+
}
|
365 |
+
|
366 |
+
.bwg-analyze-info-right hr {
|
367 |
+
margin: 15px 0 0 0;
|
368 |
+
color: #F1F1F1;
|
369 |
+
border: 1px solid #F1F1F1;
|
370 |
+
}
|
371 |
+
|
372 |
+
.bwg-analyze-info-right h3 {
|
373 |
+
font-size: 14px;
|
374 |
+
line-height: 20px;
|
375 |
+
margin: 15px 0 0 0;
|
376 |
+
padding: 0;
|
377 |
+
letter-spacing: 0.12px;
|
378 |
+
font-weight: bold;
|
379 |
+
}
|
380 |
+
|
381 |
+
.bwg-analyze-info-right p.bwg-last-analyzed-page {
|
382 |
+
display: inline-block;
|
383 |
+
word-break: break-all;
|
384 |
+
max-height: 35px;
|
385 |
+
overflow: hidden;
|
386 |
+
}
|
387 |
+
|
388 |
+
.bwg-analyze-info-right p {
|
389 |
+
display: block;
|
390 |
+
font-size: 12px;
|
391 |
+
line-height: 18px;
|
392 |
+
margin: 0 0 17px 0;
|
393 |
+
padding: 0;
|
394 |
+
color: #323A45;
|
395 |
+
}
|
396 |
+
|
397 |
+
.bwg-error-msg {
|
398 |
+
position: absolute;
|
399 |
+
color: #FD3C31;
|
400 |
+
font-size: 12px;
|
401 |
+
line-height: 18px;
|
402 |
+
margin: 0;
|
403 |
+
padding: 0;
|
404 |
+
font-style: italic;
|
405 |
+
}
|
406 |
+
|
407 |
+
.bwg-analyze-input-container .bwg-error-msg {
|
408 |
+
bottom: -20px
|
409 |
+
}
|
410 |
+
|
411 |
+
.bwg-connected-booster-container {
|
412 |
+
display: flex;
|
413 |
+
}
|
414 |
+
|
415 |
+
.bwg-connected-booster-content p.bwg-section-title {
|
416 |
+
margin-top: 10px;
|
417 |
+
}
|
418 |
+
|
419 |
+
.bwg-connected-booster-content {
|
420 |
+
width: 60%;
|
421 |
+
}
|
422 |
+
|
423 |
+
.bwg-connected-booster-container .button-container {
|
424 |
+
width: 40%;
|
425 |
+
display: flex;
|
426 |
+
align-items: flex-end;
|
427 |
+
justify-content: right;
|
428 |
+
}
|
429 |
+
|
430 |
+
.bwg-header-description {
|
431 |
+
margin: 0;
|
432 |
+
padding: 0;
|
433 |
+
line-height: 20px;
|
434 |
+
font-size: 14px;
|
435 |
+
}
|
436 |
+
|
437 |
+
.bwg-connected-booster-done-cont {
|
438 |
+
width: 138px;
|
439 |
+
height: 30px;
|
440 |
+
box-sizing: border-box;
|
441 |
+
border: 1px solid #22B33919;
|
442 |
+
border-radius: 6px;
|
443 |
+
text-align: left;
|
444 |
+
vertical-align: middle;
|
445 |
+
line-height: 28px;
|
446 |
+
background: url(../images/check_green_bg.svg) no-repeat #22B3390D;
|
447 |
+
background-size: 18px;
|
448 |
+
background-position: 6px;
|
449 |
+
padding: 0 0 0 29px;
|
450 |
+
font-size: 12px;
|
451 |
+
color: #323A45;
|
452 |
+
letter-spacing: 0.1px;
|
453 |
+
font-weight: 600;
|
454 |
+
}
|
455 |
+
|
456 |
+
.bwg-connected-booster-content p.bwg-section-title {
|
457 |
+
margin-top: 10px;
|
458 |
+
}
|
459 |
+
|
460 |
+
.bwg-score-name {
|
461 |
+
font-size: 10px;
|
462 |
+
line-height: 16px;
|
463 |
+
color: #323A45;
|
464 |
+
text-align: center;
|
465 |
+
font-weight: bold;
|
466 |
+
margin: 0;
|
467 |
+
padding: 0;
|
468 |
+
}
|
469 |
+
|
470 |
+
.bwg-load-time {
|
471 |
+
font-size: 12px;
|
472 |
+
line-height: 18px;
|
473 |
+
color: #7E838A;
|
474 |
+
text-align: center;
|
475 |
+
font-weight: 600;
|
476 |
+
margin: 0;
|
477 |
+
padding: 0;
|
478 |
+
letter-spacing: 0.1px;
|
479 |
+
}
|
480 |
+
|
481 |
+
.speed_circle,
|
482 |
+
.speed_circle_loader {
|
483 |
+
width: 78px;
|
484 |
+
height: 78px;
|
485 |
+
position: relative;
|
486 |
+
border-radius: 50%;
|
487 |
+
margin: 18px auto 14px;
|
488 |
+
}
|
489 |
+
|
490 |
+
.speed_circle p.circle_animated {
|
491 |
+
font-size: 26px;
|
492 |
+
font-weight: bold;
|
493 |
+
line-height: 37px;
|
494 |
+
position: absolute;
|
495 |
+
color: #ffffff;
|
496 |
+
left: 50%;
|
497 |
+
top: 50%;
|
498 |
+
-webkit-transform: translate(-50%, -50%);
|
499 |
+
-moz-transform: translate(-50%, -50%);
|
500 |
+
transform: translate(-50%, -50%);
|
501 |
+
margin: 0;
|
502 |
+
padding: 0;
|
503 |
+
}
|
504 |
+
|
505 |
+
.speed_circle_loader {
|
506 |
+
animation: rotation 1s infinite linear;
|
507 |
+
background: url("../images/speed/google_spinner.svg") no-repeat;
|
508 |
+
background-size: 100%;
|
509 |
+
}
|
510 |
+
|
511 |
+
.bwg-analyze-img_optimizer-container {
|
512 |
+
padding: 20px;
|
513 |
+
box-sizing: border-box;
|
514 |
+
display: flex;
|
515 |
+
width: 100%;
|
516 |
+
background-color: #F9F9F9;
|
517 |
+
margin-top: 20px;
|
518 |
+
}
|
519 |
+
|
520 |
+
/* booster top banner. */
|
521 |
+
#bwg_options_form .wd-list-view-header {
|
522 |
+
margin-bottom: 16px;
|
523 |
+
}
|
524 |
+
.bwg-booster-top-banner {
|
525 |
+
border-top: 1px solid #e5e5e5;
|
526 |
+
background-color: #f6f7f7;
|
527 |
+
}
|
528 |
+
.bwg-booster-top-banner.bwg-booster-active {
|
529 |
+
border-top: unset;
|
530 |
+
}
|
531 |
+
.bwg-booster-top-banner * {
|
532 |
+
margin: 0px;
|
533 |
+
padding: 0px;
|
534 |
+
line-height: 18px;
|
535 |
+
font-family: 'Open Sans';
|
536 |
+
font-weight: 400;
|
537 |
+
font-size: 12px;
|
538 |
+
}
|
539 |
+
.bwg-booster-top-banner-wrapper-note {
|
540 |
+
padding: 9px 16px;
|
541 |
+
background-color: #ffffff;
|
542 |
+
}
|
543 |
+
.bwg-booster-top-banner-wrapper-note--text {
|
544 |
+
position: relative;
|
545 |
+
display: inline-block;
|
546 |
+
padding-left: 22px;
|
547 |
+
text-align: left;
|
548 |
+
letter-spacing: 0.1px;
|
549 |
+
font-weight: 600;
|
550 |
+
color: #323A45;
|
551 |
+
}
|
552 |
+
.bwg-booster-top-banner-wrapper-note--text:before {
|
553 |
+
content: '';
|
554 |
+
position: absolute;
|
555 |
+
top: 50%;
|
556 |
+
left: 0px;
|
557 |
+
transform: translateY(-50%);
|
558 |
+
width: 14px;
|
559 |
+
height: 14px;
|
560 |
+
background: transparent url('images/information.svg') 0% 0% no-repeat padding-box;
|
561 |
+
}
|
562 |
+
.bwg-booster-top-banner-wrapper {
|
563 |
+
display: -webkit-box;
|
564 |
+
display: -ms-flexbox;
|
565 |
+
display: flex;
|
566 |
+
-webkit-box-pack: justify;
|
567 |
+
-ms-flex-pack: justify;
|
568 |
+
justify-content: space-between;
|
569 |
+
-webkit-box-align: center;
|
570 |
+
-ms-flex-align: center;
|
571 |
+
align-items: center;
|
572 |
+
padding: 18px 20px;
|
573 |
+
border-top: 1px solid #E5E5E5;
|
574 |
+
}
|
575 |
+
.bwg-booster-top-banner-wrapper .bwg-booster-top-banner-wrappe--images-count {
|
576 |
+
font-weight: 800;
|
577 |
+
}
|
578 |
+
.bwg-booster-top-banner-wrapper .bwg-booster-top-banner-wrappe--button {
|
579 |
+
display: block;
|
580 |
+
width: 210px;
|
581 |
+
background: #2160B5 0% 0% no-repeat padding-box;
|
582 |
+
border-radius: 4px;
|
583 |
+
padding: 8px 0px;
|
584 |
+
font-size: 14px;
|
585 |
+
line-height: 18px;
|
586 |
+
font-family: 'Segoe UI';
|
587 |
+
font-weight: 400;
|
588 |
+
letter-spacing: 0;
|
589 |
+
color: #FFFFFF;
|
590 |
+
text-decoration: none;
|
591 |
+
cursor: pointer;
|
592 |
+
text-align: center;
|
593 |
+
}
|
594 |
+
@media screen and (max-width: 640px) {
|
595 |
+
.bwg-booster-top-banner-wrapper {
|
596 |
+
display: block;
|
597 |
+
padding: 10px 20px;
|
598 |
+
}
|
599 |
+
.bwg-booster-top-banner-wrapper .bwg-booster-top-banner-wrappe--images-count {
|
600 |
+
padding-bottom: 2px;
|
601 |
+
}
|
602 |
+
.bwg-booster-top-banner-wrapper .bwg-booster-top-banner-wrappe--button {
|
603 |
+
margin: 10px auto 0;
|
604 |
+
}
|
605 |
+
}
|
606 |
+
|
607 |
+
.bwg-analyze-img_optimizer-container.bwg-optimize_pending {
|
608 |
+
align-items: center;
|
609 |
+
position: relative;
|
610 |
+
}
|
611 |
+
|
612 |
+
.bwg-analyze-img_optimizer-container.bwg-optimize_pending > div:first-child {
|
613 |
+
width: 424px;
|
614 |
+
border-right: 1px solid #E4E4E4;
|
615 |
+
}
|
616 |
+
|
617 |
+
.bwg-analyze-img_optimizer-container.bwg-optimize_pending .bwg-img-count-container {
|
618 |
+
text-align: center;
|
619 |
+
flex-grow: 1;
|
620 |
+
padding-left: 20px;
|
621 |
+
}
|
622 |
+
|
623 |
+
.bwg-analyze-img_optimizer-container.bwg-optimize_pending .bwg-img-count-container h5 {
|
624 |
+
font-size: 50px;
|
625 |
+
line-height: 75px;
|
626 |
+
color: #323A45;
|
627 |
+
font-weight: bold;
|
628 |
+
margin: 0;
|
629 |
+
padding: 0;
|
630 |
+
}
|
631 |
+
|
632 |
+
.bwg-analyze-img_optimizer-container.bwg-optimize_pending .bwg-img-count-container h5 span {
|
633 |
+
font-size: 20px;
|
634 |
+
line-height: 53px;
|
635 |
+
vertical-align: bottom;
|
636 |
+
}
|
637 |
+
|
638 |
+
.bwg-analyze-img_optimizer-container.bwg-optimize_pending .bwg-img-count-container p {
|
639 |
+
font-size: 14px;
|
640 |
+
line-height: 20px;
|
641 |
+
color: #323A45;
|
642 |
+
opacity: 0.7;
|
643 |
+
margin: 4px 0 0 0;
|
644 |
+
padding: 0;
|
645 |
+
letter-spacing: 0.12px;
|
646 |
+
font-weight: 600;
|
647 |
+
}
|
648 |
+
|
649 |
+
.bwg-analyze-img_optimizer-container p.bwg-section-title {
|
650 |
+
margin-bottom: 2px;
|
651 |
+
}
|
652 |
+
|
653 |
+
.bwg-analyze-img_optimizer-container.bwg-optimize_pending ul {
|
654 |
+
margin: 18px 0 0 0;
|
655 |
+
padding: 0;
|
656 |
+
}
|
657 |
+
|
658 |
+
|
659 |
+
.bwg-analyze-img_optimizer-container.bwg-optimize_pending li {
|
660 |
+
text-align: left;
|
661 |
+
font: normal normal 600 12px/18px Open Sans;
|
662 |
+
letter-spacing: 0px;
|
663 |
+
color: #323A45;
|
664 |
+
font-size: 12px;
|
665 |
+
line-height: 18px;
|
666 |
+
font-weight: 600;
|
667 |
+
margin-bottom: 10px;
|
668 |
+
padding-left: 26px;
|
669 |
+
background: url(../images/speed/close_error.svg) no-repeat #F9F9F9;
|
670 |
+
background-size: 22px;
|
671 |
+
background-position: 0 -2px;
|
672 |
+
}
|
673 |
+
|
674 |
+
.bwg-optimize-now-button {
|
675 |
+
display: block;
|
676 |
+
width: 210px;
|
677 |
+
height: 40px;
|
678 |
+
box-sizing: border-box;
|
679 |
+
font-size: 14px;
|
680 |
+
line-height: 14px;
|
681 |
+
text-align: center;
|
682 |
+
padding: 13px 16px;
|
683 |
+
background-color: #2160B5;
|
684 |
+
border-radius: 4px;
|
685 |
+
color: #ffffff;
|
686 |
+
text-decoration: none;
|
687 |
+
cursor: pointer;
|
688 |
+
margin-top: 20px;
|
689 |
+
}
|
690 |
+
|
691 |
+
.bwg-optimize-now-tooltip {
|
692 |
+
position: absolute;
|
693 |
+
bottom: 70px;
|
694 |
+
width: 258px;
|
695 |
+
height: 68px;
|
696 |
+
padding: 16px;
|
697 |
+
box-sizing: border-box;
|
698 |
+
background-color: #323A45;
|
699 |
+
color: #ffffff;
|
700 |
+
font-size: 12px;
|
701 |
+
line-height: 18px;
|
702 |
+
border-radius: 6px;
|
703 |
+
letter-spacing: 0;
|
704 |
+
}
|
705 |
+
|
706 |
+
.bwg-optimize_on ul li span {
|
707 |
+
width: 6px;
|
708 |
+
height: 6px;
|
709 |
+
background-color: #D6D8DA;
|
710 |
+
border-radius: 3px;
|
711 |
+
display: inline-block;
|
712 |
+
margin-right: 8px;
|
713 |
+
vertical-align: middle;
|
714 |
+
}
|
715 |
+
|
716 |
+
.bwg-optimize_on p.bwg-section-title {
|
717 |
+
background: url(../images/speed/success.svg) no-repeat;
|
718 |
+
background-size: 20px;
|
719 |
+
background-position: 175px 3px;
|
720 |
+
}
|
721 |
+
|
722 |
+
.bwg-optimize_on p {
|
723 |
+
font-size: 14px;
|
724 |
+
line-height: 20px;
|
725 |
+
}
|
726 |
+
|
727 |
+
.bwg-optimize_on ul {
|
728 |
+
margin: 18px 0 0 0;
|
729 |
+
}
|
730 |
+
.bwg-optimize_on li {
|
731 |
+
font-size: 12px;
|
732 |
+
margin-bottom: 10px;
|
733 |
+
font-weight: 600;
|
734 |
+
line-height: 18px;
|
735 |
+
}
|
736 |
+
|
737 |
+
.bwg-optimize_on li:last-child {
|
738 |
+
margin-bottom: 0px;
|
739 |
+
}
|
740 |
+
|
741 |
+
.bwg-optimize_on-button-cont {
|
742 |
+
flex-grow: 1;
|
743 |
+
vertical-align: bottom;
|
744 |
+
align-self: flex-end;
|
745 |
+
display: flex;
|
746 |
+
justify-content: right;
|
747 |
+
}
|
748 |
+
|
749 |
+
.bwg-optimize-add-pages {
|
750 |
+
display: block;
|
751 |
+
width: 210px;
|
752 |
+
height: 40px;
|
753 |
+
box-sizing: border-box;
|
754 |
+
font-size: 14px;
|
755 |
+
line-height: 14px;
|
756 |
+
text-align: center;
|
757 |
+
padding: 13px 16px;
|
758 |
+
background-color: #2160B5;
|
759 |
+
border-radius: 4px;
|
760 |
+
color: #ffffff;
|
761 |
+
text-decoration: none;
|
762 |
+
cursor: pointer;
|
763 |
+
margin-top: 20px;
|
764 |
+
}
|
765 |
+
|
766 |
+
.bwg-optimize_on.bwg-optimize_done p.bwg-section-title {
|
767 |
+
background: url(../images/speed/success.svg) no-repeat;
|
768 |
+
background-size: 20px;
|
769 |
+
background-position: 113px 3px;
|
770 |
+
}
|
771 |
+
|
772 |
+
@media only screen and (max-width: 730px) {
|
773 |
+
|
774 |
+
.bwg-speed-header {
|
775 |
+
width: 100%;
|
776 |
+
padding: 15px;
|
777 |
+
}
|
778 |
+
|
779 |
+
.bwg-install-booster-container {
|
780 |
+
padding: 0;
|
781 |
+
}
|
782 |
+
|
783 |
+
.bwg-header-description {
|
784 |
+
font-size: 14px;
|
785 |
+
line-height: 20px;
|
786 |
+
}
|
787 |
+
.bwg-speed-body{
|
788 |
+
width: 100%;
|
789 |
+
}
|
790 |
+
|
791 |
+
.bwg-install-booster-container .button-container {
|
792 |
+
position: relative;
|
793 |
+
display: block;
|
794 |
+
width: 235px;
|
795 |
+
right: auto;
|
796 |
+
bottom: auto;
|
797 |
+
margin-top: 20px;
|
798 |
+
}
|
799 |
+
|
800 |
+
.bwg-speed-body {
|
801 |
+
padding: 15px;
|
802 |
+
}
|
803 |
+
.bwg-analyze-input-container {
|
804 |
+
display:block;
|
805 |
+
}
|
806 |
+
|
807 |
+
input.bwg-analyze-input {
|
808 |
+
width: 100%;
|
809 |
+
margin-bottom: 30px;
|
810 |
+
}
|
811 |
+
|
812 |
+
.bwg-analyze-info-container,
|
813 |
+
.bwg-analyze-info-left-cont {
|
814 |
+
display: block;
|
815 |
+
height: auto;
|
816 |
+
}
|
817 |
+
|
818 |
+
.bwg-analyze-info-right,
|
819 |
+
.bwg-analyze-score-info {
|
820 |
+
width: 100%;
|
821 |
+
}
|
822 |
+
|
823 |
+
.bwg-analyze-mobile-score, .bwg-analyze-desktop-score {
|
824 |
+
width: 100%;
|
825 |
+
height: auto;
|
826 |
+
padding: 18px 0 16px 0;
|
827 |
+
box-sizing: border-box;
|
828 |
+
margin: 0 0 10px 0;
|
829 |
+
}
|
830 |
+
|
831 |
+
.speed_circle {
|
832 |
+
margin: 0 auto 14px auto;
|
833 |
+
}
|
834 |
+
|
835 |
+
.bwg-analyze-score-info {
|
836 |
+
width: auto;
|
837 |
+
margin-top: 8px;
|
838 |
+
line-height: 36px;
|
839 |
+
font-size: 10px;
|
840 |
+
height: 36px;
|
841 |
+
}
|
842 |
+
|
843 |
+
.bwg-analyze-score-info>span:first-child {
|
844 |
+
display: none;
|
845 |
+
}
|
846 |
+
|
847 |
+
.bwg-averege-icon,
|
848 |
+
.bwg-slow-icon {
|
849 |
+
margin: 0 4px 0 11px;
|
850 |
+
}
|
851 |
+
|
852 |
+
.bwg-fast-icon {
|
853 |
+
margin: 0 4px 0 0px;
|
854 |
+
}
|
855 |
+
|
856 |
+
.bwg-score-icon {
|
857 |
+
width: 6px;
|
858 |
+
height: 4px;
|
859 |
+
margin-bottom: 2px;
|
860 |
+
}
|
861 |
+
|
862 |
+
.bwg-analyze-info-right p.bwg-last-analyzed-date {
|
863 |
+
margin-bottom: 0;
|
864 |
+
}
|
865 |
+
|
866 |
+
.bwg-analyze-img_optimizer-container {
|
867 |
+
padding: 15px;
|
868 |
+
}
|
869 |
+
|
870 |
+
.bwg-analyze-info-right {
|
871 |
+
margin: 10px 0 0 0;
|
872 |
+
padding: 18px 15px 12px 15px;
|
873 |
+
box-sizing: border-box;
|
874 |
+
height: auto;
|
875 |
+
}
|
876 |
+
|
877 |
+
.bwg-analyze-info-right p.bwg-analyze-info-right-sub-title {
|
878 |
+
margin: 0;
|
879 |
+
}
|
880 |
+
|
881 |
+
.bwg-analyze-img_optimizer-container {
|
882 |
+
display: block;
|
883 |
+
}
|
884 |
+
|
885 |
+
.bwg-analyze-img_optimizer-container.bwg-optimize_pending > div:first-child {
|
886 |
+
width: auto;
|
887 |
+
height: auto;
|
888 |
+
border-right: none;
|
889 |
+
border-bottom: 1px solid #E4E4E4;
|
890 |
+
padding-bottom: 20px;
|
891 |
+
}
|
892 |
+
|
893 |
+
.bwg-analyze-img_optimizer-container.bwg-optimize_pending .bwg-img-count-container {
|
894 |
+
text-align: left;
|
895 |
+
padding-left: 0;
|
896 |
+
}
|
897 |
+
|
898 |
+
.bwg-optimize_on-button-cont {
|
899 |
+
display: block;
|
900 |
+
}
|
901 |
+
|
902 |
+
input.bwg-sign-up-input {
|
903 |
+
width: 100%;
|
904 |
+
}
|
905 |
+
|
906 |
+
.bwg-sign_up-booster-container > div {
|
907 |
+
display: block;
|
908 |
+
}
|
909 |
+
|
910 |
+
a.bwg-sign-up-dashboard-button {
|
911 |
+
display: block;
|
912 |
+
width: 210px;
|
913 |
+
height: 40px;
|
914 |
+
margin-bottom: 15px;
|
915 |
+
}
|
916 |
+
|
917 |
+
.bwg-sign_up-booster-container > div > div {
|
918 |
+
padding: 0;
|
919 |
+
}
|
920 |
+
|
921 |
+
.bwg-connected-booster-container {
|
922 |
+
display: block;
|
923 |
+
}
|
924 |
+
|
925 |
+
.bwg-connected-booster-content,
|
926 |
+
.bwg-connected-booster-container .button-container {
|
927 |
+
width: 100%;
|
928 |
+
display: block;
|
929 |
+
}
|
930 |
+
|
931 |
+
a.bwg-manage-booster {
|
932 |
+
display: block;
|
933 |
+
width: 210px;
|
934 |
+
margin-top: 20px;
|
935 |
+
}
|
936 |
+
|
937 |
+
.bwg-analyze-img_optimizer-container.bwg-optimize_pending .bwg-img-count-container h5 {
|
938 |
+
margin-top: 20px;
|
939 |
+
}
|
940 |
+
|
941 |
+
.bwg-optimize-now-tooltip {
|
942 |
+
bottom: 205px;
|
943 |
+
width: 230px;
|
944 |
+
height: 85px;
|
945 |
+
}
|
946 |
+
|
947 |
+
.bwg-analyze-input-container .bwg-error-msg {
|
948 |
+
top: 42px;
|
949 |
+
line-height: 13px;
|
950 |
+
}
|
951 |
+
|
952 |
+
.bwg-last-analyzed-date-container {
|
953 |
+
position: relative;
|
954 |
+
bottom: unset;
|
955 |
+
}
|
956 |
+
|
957 |
+
.bwg-analyze-info-right p.bwg-last-analyzed-page {
|
958 |
+
max-height: inherit;
|
959 |
+
overflow: hidden;
|
960 |
+
}
|
961 |
+
}
|
962 |
+
|
963 |
+
.speed-loader-blue {
|
964 |
+
animation: rotation 1s infinite linear;
|
965 |
+
background: url(../images/speed/loader_small.svg) no-repeat;
|
966 |
+
width: 18px;
|
967 |
+
height: 18px;
|
968 |
+
margin: auto;
|
969 |
+
}
|
970 |
+
|
971 |
+
.speed-loader-grey {
|
972 |
+
animation: rotation 1s infinite linear;
|
973 |
+
background: url(../images/speed/loader_small_grey.svg) no-repeat;
|
974 |
+
width: 18px;
|
975 |
+
height: 18px;
|
976 |
+
margin: auto;
|
977 |
+
display:inline-block;
|
978 |
+
vertical-align: middle;
|
979 |
+
}
|
980 |
+
|
981 |
+
|
982 |
+
@keyframes rotation {
|
983 |
+
from {
|
984 |
+
transform: rotate(0deg);
|
985 |
+
}
|
986 |
+
to {
|
987 |
+
transform: rotate(359deg);
|
988 |
+
}
|
989 |
+
}
|
990 |
+
|
991 |
+
.speed_circle canvas {
|
992 |
+
border-radius: 40px;
|
993 |
+
}
|
css/images/information.svg
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<svg id="Information_Icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="14" height="14" viewBox="0 0 14 14">
|
2 |
+
<defs>
|
3 |
+
<clipPath id="clip-path">
|
4 |
+
<rect id="Rectangle_47798" data-name="Rectangle 47798" width="14" height="14" fill="#f8c332"/>
|
5 |
+
</clipPath>
|
6 |
+
</defs>
|
7 |
+
<g id="Information_Icon-2" data-name="Information_Icon" clip-path="url(#clip-path)">
|
8 |
+
<g id="Info" transform="translate(0 0)">
|
9 |
+
<path id="Path_169137" data-name="Path 169137" d="M18.5,25.5a7.016,7.016,0,0,1-7-7.038,6.9,6.9,0,0,1,2.043-4.919A6.811,6.811,0,0,1,18.424,11.5a7.148,7.148,0,0,1,7.076,7,6.944,6.944,0,0,1-6.924,7Zm0-10.821a.908.908,0,1,0,.908.908h0A.947.947,0,0,0,18.5,14.678Zm0,2.8h0a.921.921,0,0,0-.908.908v2.989a.921.921,0,0,0,.908.908h0a.921.921,0,0,0,.908-.908V18.386A.921.921,0,0,0,18.5,17.478Z" transform="translate(-11.5 -11.5)" fill="#f8c332"/>
|
10 |
+
</g>
|
11 |
+
</g>
|
12 |
+
</svg>
|
css/styles.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.spider_popup_wrap .bwg_image_wrap figure{margin:0;padding:0;display:inline-block}figure.zoom{background-position:50% 50%;background-size:200%;position:relative;width:auto;overflow:hidden;cursor:zoom-in}figure.zoom img:hover{opacity:0}figure.zoom img{transition:opacity .5s;display:block}div[id^=bwg_container] p{padding:0!important;margin:0!important}div[id^=bwg_container] img{box-shadow:none!important}div[id^=bwg_container] *{margin:0}div[id^=bwg_container] .SumoSelect.open>.CaptionCont,div[id^=bwg_container] .SumoSelect:focus>.CaptionCont,div[id^=bwg_container] .SumoSelect:hover>.CaptionCont,div[id^=bwg_container] .SumoSelect>.CaptionCont{border:none;box-shadow:none}#bwg_tag_wrap{background-color:#fff;width:100%;font-family:inherit;margin:0 -5px 20px 0;z-index:200;position:relative}.bwg_search_loupe_container,.bwg_search_reset_container{font-size:18px;color:#ccc;cursor:pointer;position:relative}#bwg_tag_container p{text-align:center}#bwg_tag_container{border:1px solid #ccc;box-shadow:0 0 3px 1px #ccc;border-radius:4px;width:256px;float:right}#spider_popup_wrap a{border:none;box-shadow:none}div[id^=bwg_container].bwg_container .bwg-a{border:none;box-shadow:none!important;outline:0;font-size:0;line-height:normal;cursor:pointer;text-decoration:none}div[id^=bwg_container].bwg_container .bwg-masonry-thumb-description,div[id^=bwg_container].bwg_container .bwg-thumb-description{cursor:auto}div[id^=bwg_container] div[id^=bwg_container] .bwg_img_clear{max-height:none!important;max-width:none!important;padding:0!important}.tag_cloud_link{font-size:inherit!important}@media print{#spider_popup_left,#spider_popup_right,.bwg_image_info,[class^=bwg_slideshow_title_text_],[id^=bwg_slideshow_play_pause_],[id^=spider_slideshow_left_],[id^=spider_slideshow_right_]{background:0 0}}.bwg_spider_popup_loading,.footer-list-block .bwp_gallery .bwg_spider_popup_loading,.footer-list-block .bwp_gallery_tags .bwg_spider_popup_loading{background-image:url(../images/ajax_loader.png);background-color:rgba(0,0,0,0);background-repeat:no-repeat;background-position:0 0;background-size:30px 30px;border:none!important;display:none;height:30px;left:50%;margin-left:-20px;margin-top:-20px;overflow:hidden;position:fixed;top:50%;width:30px;z-index:10102}.bwg_filmstrip_thumbnail_img{max-width:none!important}.dashicons-arrow-down-alt2:before{content:"\f347";height:100%;display:inline-block}.footer-list-block .bwp_gallery .spider_popup_overlay,.footer-list-block .bwp_gallery_tags .spider_popup_overlay,.spider_popup_overlay{cursor:pointer;display:none;height:100%;left:0;position:fixed;top:0;width:100%;z-index:10100}.bwp_gallery_tags div[id^=bwg_container] li{border:none}.spider_popup_close,.spider_popup_close_fullscreen{-moz-box-sizing:content-box!important;box-sizing:content-box!important;cursor:pointer;display:table;line-height:0;position:absolute;z-index:11100}.spider_popup_close_fullscreen{margin:10px 7px;right:7px}#spider_popup_left{left:0}#spider_popup_right{right:0}#spider_popup_left:hover,#spider_popup_right:hover{visibility:visible}#spider_popup_left:hover span{left:20px}#spider_popup_right:hover span{left:auto;right:20px}#spider_popup_left,#spider_popup_right{background:transparent url(../images/blank.gif) repeat scroll 0 0;bottom:35%;cursor:pointer;display:inline;height:30%;outline:medium none;position:absolute;width:35%;z-index:10130}#bwg_image_container #spider_popup_left,#bwg_image_container #spider_popup_right{width:25%}#spider_popup_left-ico,#spider_popup_right-ico{-moz-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:table;line-height:0;margin-top:-15px;position:absolute;top:50%;z-index:10135}.bwg_captcha_refresh{background-image:url(../images/captcha_refresh.png);background-position:center center;background-repeat:no-repeat;background-size:100% 100%;border-width:0;cursor:pointer;display:inline-block;height:20px;width:20px;margin:0;padding:0;vertical-align:middle}.bwg_captcha_input{vertical-align:middle;width:75px!important}.bwg_captcha_img{cursor:pointer;margin:0 5px 0 5px;vertical-align:middle}.bwg_comment_error{color:red;display:block}.bwg_comment_waiting_message{display:none}.bwg_image_hit_container1,.bwg_image_info_container1,.bwg_image_rate_container1{height:100%;margin:0 auto;position:absolute;width:100%}.bwg_image_rate_container1{display:none}.bwg_image_hit_container2,.bwg_image_info_container2,.bwg_image_rate_container2{display:table;height:100%;margin:0 auto;position:absolute;width:100%}.bwg_image_hit_spun,.bwg_image_info_spun,.bwg_image_rate_spun{display:table-cell;height:100%;left:0;top:0;width:100%;overflow:hidden;position:relative}.bwg_image_hit,.bwg_image_info,.bwg_image_rate{display:inline-block;position:relative;text-decoration:none;word-wrap:break-word;z-index:11}.bwg_image_rate{z-index:999!important}.bwg_image_rate_disabled{display:none;position:absolute;width:100%;height:40px;top:0}@media screen and (max-width:465px){.bwg_ctrl_btn_container{height:auto!important}}.bwg_search_container_1{display:inline-block;width:100%;text-align:right;margin:0 5px 20px 0;background-color:rgba(0,0,0,0)}.bwg_search_container_2{display:inline-block;position:relative;border-radius:4px;box-shadow:0 0 3px 1px #ccc;background-color:#fff;border:1px solid #ccc;max-width:100%}div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input_container{display:block;margin-right:45px}div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_loupe_container{display:inline-block;margin-right:1px;vertical-align:middle;float:right}div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_reset_container{margin-right:5px;vertical-align:middle;float:right}.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_reset,.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search{display:block;font-size:10px;color:#323a45;cursor:pointer;line-height:inherit!important}.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search{font-size:12px}div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input,div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input:focus{color:#070707;outline:0;border:none;box-shadow:none;background:0 0;padding:3px 5px;font-family:inherit;width:100%}.bwg_order_cont .SumoSelect{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 3px 1px #ccc;border-radius:4px;height:initial;max-width:100%;padding:0 10px}.SumoSelect>.optWrapper>.options li.opt{border:none;text-align:left}.bwg_order_cont .SumoSelect .CaptionCont{text-align:left}.bwg_order_cont{background-color:rgba(0,0,0,0);display:block;text-align:right;width:100%;margin:0 5px 20px 0}#bwg_tag_container .SumoSelect,.bwg_order_cont .SumoSelect{display:inline-table}#bwg_tag_container .SumoSelect ul.options,.bwg_order_cont .SumoSelect ul.options{margin:0;padding:0!important}#bwg_tag_container .SumoSelect li,.bwg_order_cont .SumoSelect li{list-style:none}#bwg_tag_container .SumoSelect.open .search-txt{padding:0 8px;height:100%}#bwg_tag_container .SumoSelect>.optWrapper>.options li label{margin:0}.bwg_order_label{border:none;box-shadow:none;color:#bbb;font-family:inherit;font-weight:700;outline:0}.bwg_order{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 3px 1px #ccc;border-radius:4px;height:initial;max-width:100%;text-align:left}.wd_error{color:#ccc;font-size:initial}div[id^=bwg_container] .bwg_download_gallery{text-align:right;margin-top:10px}div[id^=bwg_container] .bwg_download_gallery a{color:#4a4a4a;font-size:25px;text-decoration:none}div[id^=bwg_container] .bwg_download_gallery a:hover{color:#7d7d7d}div[id^=bwg_container] .bwg-border-box *{-moz-box-sizing:border-box;box-sizing:border-box}.bwg-flex{display:flex}.bwg-width-100{width:100%;max-width:100%}.bwg-flex-column{flex-direction:column}.bwg-flex-row{flex-direction:row;flex-wrap:wrap}.bwg-container{font-size:0;width:100%;max-width:100%;display:flex;flex-direction:row;flex-wrap:wrap}.bwg-item{display:flex;flex-direction:column;cursor:pointer}.bwg-item0{overflow:hidden;z-index:100}.bwg-item0:hover{background:0 0!important;backface-visibility:hidden;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;opacity:1;z-index:102;position:relative}.bwg-item1{overflow:hidden;width:100%;position:relative}.bwg-item2{top:0;left:0;bottom:0;right:0;width:100%;height:100%}.bwg-item2{position:absolute}.bwg-ecommerce1,.bwg-title1{opacity:1;text-align:center;width:100%}.bwg-ecommerce1{text-align:right}.bwg-title2{width:100%;word-wrap:break-word}.bwg-item0:hover .bwg-ecommerce1,.bwg-item0:hover .bwg-title1{left:0!important;opacity:1!important}.bwg-play-icon1{display:flex;width:auto;height:auto;opacity:1;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:100;justify-content:center;align-content:center;flex-direction:column;text-align:center}.bwg_loading_div_1{position:absolute;width:100%;height:100%;z-index:115;text-align:center;vertical-align:middle;top:0}.bwg_load_more_ajax_loading{width:100%;z-index:115;text-align:center;vertical-align:middle;position:relative;height:30px}.bwg_load_more_ajax_loading.bwg-hidden{height:0}.bwg_loading_div_2{display:table;vertical-align:middle;width:100%;height:100%;background-color:#fff;opacity:.95}.bwg_loading_div_3{display:table-cell;text-align:center;position:relative;vertical-align:middle}.bwg_spider_ajax_loading{border:none!important;display:inline-block;text-align:center;position:relative;vertical-align:middle;background-image:url(../images/ajax_loader.png);float:none;width:30px;height:30px;background-size:30px 30px}.bwg-hidden{visibility:hidden}.bwg_container{position:relative;margin:20px auto}.bwg_inst_play_btn_cont,.bwg_inst_play_btn_cont .bwg_inst_play{display:block}.hidden{display:none}.bwg-loading{width:100%;height:100%;opacity:.95;position:absolute;background-image:url(../images/ajax_loader.png);background-position:center;background-repeat:no-repeat;background-size:50px;z-index:100100;top:0;left:0}#bwg_download{display:inline-block}#bwg_download.hidden{display:none}.bwg_thumbnail.bwg_container .search_line.bwg_tag_select_view{min-height:50px;-webkit-box-shadow:0 5px 7px -5px rgba(0,0,0,.16);-moz-box-shadow:0 5px 7px -5px rgba(0,0,0,.16);box-shadow:0 5px 7px -5px rgba(0,0,0,.16);margin-bottom:10px;display:inline-block;width:100%}.bwg_thumbnail.bwg_container .search_line #bwg_tag_wrap,.bwg_thumbnail.bwg_container .search_line .bwg_order_cont,.bwg_thumbnail.bwg_container .search_line .bwg_search_container_1{float:left;display:table-cell;text-align:left;vertical-align:middle}.bwg_thumbnail.bwg_container .search_line #bwg_tag_wrap #bwg_tag_container,.bwg_thumbnail.bwg_container .search_line .bwg_order_cont select{border:.5px solid rgba(0,0,0,.15);box-shadow:none;border-radius:15px}.bwg_thumbnail.bwg_container .search_line .bwg_order_cont,.bwg_thumbnail.bwg_container .search_line .search_tags_container{width:25%;min-width:120px;max-width:180px;margin-right:20px;border:.5px solid rgba(0,0,0,.15);box-shadow:none;border-radius:15px;float:left;height:30px;padding:0;cursor:pointer;background:#fff}.bwg_thumbnail.bwg_container .search_line .bwg_order_cont select,.bwg_thumbnail.bwg_container .search_line .placeholder,.bwg_thumbnail.bwg_container .search_line .search-txt,.bwg_thumbnail.bwg_container .search_line .select-all,.bwg_thumbnail.bwg_container .search_line.SumoSelect .opt label{color:#323a45;font-size:12px;text-transform:uppercase;font-weight:400;font-family:Ubuntu;margin:0;border:none}.bwg_thumbnail.bwg_container .search_line .select-all label{margin-bottom:0;line-height:13px}.bwg_thumbnail.bwg_container .search_line .SumoSelect ul.options:not(:empty){padding:15px 0 0 10px!important}.bwg_thumbnail.bwg_container .search_line .SumoSelect{padding:0 10px;width:initial;height:inherit;cursor:pointer;display:block;border:none;box-shadow:none;border-radius:0;max-width:100%;background-color:transparent;line-height:inherit;vertical-align:bottom}.bwg_thumbnail.bwg_container .search_line .bwg_search_input_container{height:30px;text-align:center;font-size:12px;font-family:Ubuntu;border-radius:15px;text-align:left;width:calc(100%);margin:0;overflow:hidden}.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input,.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input:focus{height:30px;padding:0 10px;text-align:center;font-size:12px;font-family:Ubuntu;border-radius:15px;text-align:left;width:calc(100% - 64px);display:inline-table}.bwg_thumbnail.bwg_container .search_line .CaptionCont span{display:block!important;vertical-align:middle;color:#323a45!important;font-size:12px;text-transform:uppercase;font-family:Ubuntu;cursor:pointer;line-height:29px;max-width:calc(100% - 20px)}.bwg_thumbnail .search_tags{cursor:pointer}.bwg_thumbnail.bwg_container .search_line .SumoSelect .select-all>span,.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper.multiple>.options li.opt span{margin-left:-35px}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper.multiple>.options li.opt{padding-left:25px}.bwg_thumbnail .bwg_search_input::-webkit-input-placeholder{color:#ccc;font-size:12px;text-transform:uppercase;font-family:Ubuntu}.bwg_thumbnail .bwg_search_input::-moz-placeholder{color:#ccc;font-size:12px;text-transform:uppercase;text-align:left;font-family:Ubuntu;line-height:30px}.bwg_thumbnail .bwg_search_input:-ms-input-placeholder{color:#ccc;font-size:12px;text-transform:uppercase;text-align:left;font-family:Ubuntu}.bwg_thumbnail .bwg_search_input:-moz-placeholder{color:#ccc;font-size:12px;text-transform:uppercase;text-align:left;font-family:Ubuntu}.bwg_thumbnail .search-txt::-webkit-input-placeholder{text-align:left;color:#323a45;opacity:.5;font-size:12px!important}.bwg_thumbnail .search-txt::-moz-placeholder{text-align:left;color:#323a45;opacity:.5;font-size:12px!important}.bwg_thumbnail .search-txt::-ms-input-placeholder{text-align:left;color:#323a45;opacity:.5;font-size:12px}.bwg_thumbnail .search-txt:-ms-input-placeholder{text-align:left;color:#323a45;opacity:.5;font-size:12px}.bwg_thumbnail .search-txt:-moz-placeholder{text-align:left;color:#323a45;opacity:.5;font-size:12px}.bwg_thumbnail .bwg_search_input_container .search_placeholder_title{width:calc(100% - 20px);height:29px;text-align:center;display:inline-block;background:#fff;position:absolute;top:.5px;left:10px;white-space:nowrap;border-radius:15px;color:#4e4e4e;text-transform:uppercase;overflow:hidden}.bwg_thumbnail .bwg_search_input_container .search_placeholder_title span{line-height:28px}.bwg_thumbnail.bwg_container .search_line .bwg_search_loupe_container{line-height:29px;display:inline-block;top:0;margin-right:10px;vertical-align:middle;float:none;padding-top:0;font-size:12px;font-family:Ubuntug}.bwg_thumbnail.bwg_container .search_line .bwg_search_loupe_container1{margin-left:0;float:left;top:0;line-height:30px;width:auto;height:30px;margin-left:10px}.bwg_thumbnail.bwg_container .search_line .bwg_search_reset_container{right:0;top:0;line-height:30px;width:11px;height:30px;margin-right:10px}.bwg_thumbnail.bwg_container .search_line .bwg_search_container_1{float:right;width:30%;min-width:120px}.bwg_thumbnail.bwg_container .search_line .bwg_search_container_1 .bwg_search_container_2{width:100%!important;float:right}.bwg_thumbnail.bwg_container .search_line .SumoSelect .select-all{padding:0 0 3px 35px!important;height:13px;line-height:13px;margin-bottom:15px!important}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper>.options li.opt{margin-bottom:15px;padding:0;list-style:none;color:#323a45;font-size:12px;text-transform:uppercase;font-family:Ubuntu;line-height:12px}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper.multiple>.MultiControls>p.btnCancel,.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper.multiple>.MultiControls>p.btnOk{font-family:Ubuntu;font-size:12px;line-height:12px}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper.multiple>.MultiControls>p:hover{background:0 0}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper>.options li.opt label{color:#323a45;font-size:12px;text-transform:uppercase;font-family:Ubuntu;font-weight:400;margin-bottom:0}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont{height:inherit;border:transparent;background:inherit;width:100%;cursor:pointer;max-height:calc(100% - 2px)}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont>label{margin:0;line-height:100%;cursor:pointer;width:20px}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont>label>i{background:0 0;line-height:100%;height:100%}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont>label>i.closed:before,.bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont>label>i.opened:before{color:#323a45;font-size:10px;line-height:30px}.bwg_thumbnail.bwg_container .search_line .bwg_reset{position:absolute}.bwg_thumbnail.bwg_container .search_line .no-match{font-family:Ubuntu;font-size:12px;color:#323a45;padding:5px 25px!important;text-align:center}.bwg_thumbnail.bwg_container .search_line .search-txt{border:transparent;background:0 0;padding:4px 0!important;height:100%}.bwg_thumbnail.bwg_container .search_line .search-txt:focus{box-shadow:none}.bwg_thumbnail.bwg_container .search_line .bwg_order.SumoUnder{display:none}.bwg_slideshow_image_container{position:absolute}.bwg_slideshow_image_container>div>div{display:table;margin:0 auto}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slide_container_] img[id^=bwg_slideshow_image_]{display:inline-block}.bwg_thumbnail #bwg_tag_container p{text-align:left}.bwg_thumbnail .bwg_search_container_2{display:inline-block;position:relative;border-radius:4px;background-color:#fff;max-width:100%;box-shadow:none;border:.5px solid rgba(0,0,0,.15);border-radius:15px}.bwg_thumbnail .bwg_order_cont{background-color:rgba(0,0,0,0);display:block;text-align:right;width:100%}.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input_container{display:block;text-align:center}.bwg_thumbnail .SumoSelect>.optWrapper>.options li.opt:hover{background-color:transparent}.bwg-zoom-effect .bwg-zoom-effect-overlay{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;opacity:0;-webkit-transition:all .45s ease-in-out;transition:all .45s ease-in-out}.bwg-zoom-effect-overlay{display:flex;align-items:center;justify-content:center}.bwg-zoom-effect:hover .bwg-zoom-effect-overlay{opacity:1}.bwg-zoom-effect .bwg-title1{-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}@media (min-width:480px){.bwg-zoom-effect img{-webkit-transition:all .3s;transition:all .3s}}.bwg_container div[id^=bwg_container2_] img{height:initial}.bwg-masonry-vertical{flex-direction:column}.bwg_thumbnails_masonry .bwg-masonry-thumbnails{overflow:hidden}.bwg_thumbnails_masonry .bwg-masonry-thumbnails .bwg-item{box-sizing:border-box}.bwg-masonry-horizontal{flex-direction:row}.bwg-masonry-horizontal-parent{overflow-x:scroll;overflow-y:hidden}.bwg-masonry-horizontal-container{width:fit-content}.bwg-item.bwg-empty-item{border:0!important;padding:0!important}.bwg-background{background-color:rgba(0,0,0,0);position:relative;width:100%}.bwg-background .wd_error{color:#323a45;font-weight:700}div[id^=bwg_container] .bwg-carousel{margin:0 auto}.bwg_carousel_preload{background-image:url(../images/ajax_loader.png);background-size:50px!important;background-repeat:no-repeat;background-color:#fff;background-position:center}.bwg_container.bwg_carousel *{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.bwg_container.bwg_carousel [id^=bwg_container2_] *{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_]{position:relative;z-index:15}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_image_container_]{display:inline-block;position:absolute;text-align:center;vertical-align:middle}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_container_]{display:table-cell;margin:0 auto;position:relative;vertical-align:middle}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_container_] div{display:table;margin:0 auto}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_spun_]{display:table-cell;overflow:hidden;position:relative}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_image_]{padding:0!important;display:inline-block;float:none!important;margin:4px!important;position:relative;z-index:15}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_text_],.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_text_]:hover{text-decoration:none;margin:4px;display:block;position:relative;z-index:17}.bwg_container.bwg_carousel [id^=bwg_container2_] .bwg_carousel-cont-child{max-width:100%;position:relative;overflow:hidden;height:100%;width:100%}.bwg_container.bwg_carousel [id^=bwg_container2_] .bwg-carousel-image{border:0;position:absolute;display:block;max-width:none;padding:0!important;margin:0!important;float:none!important;vertical-align:middle;height:100%;width:100%;background-position:center center;background-repeat:no-repeat;background-size:cover;vertical-align:middle}.bwg_container.bwg_carousel [id^=bwg_container2_] .bwg-carousel{position:relative;max-width:100%;width:100%}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel-feature]{position:absolute;display:block;overflow:hidden;cursor:pointer}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel-feature] [class^=bwg_carousel-caption] [class^=bwg_carousel_title_text_]{text-decoration:none;position:absolute;z-index:15;display:inline-block;width:75%;top:0;text-align:center;word-wrap:break-word;word-break:break-word}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel-left],.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel-right]{bottom:38%;cursor:pointer;display:inline;height:30%;outline:medium none;position:absolute;width:0%;z-index:13;visibility:visible}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel-right]{right:0;left:auto;z-index:999}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel-left]{left:20px;z-index:999}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_video_hide]{width:100%;height:100%;position:absolute;z-index:22}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_left-ico_] span,.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_right-ico_] span{display:table-cell;text-align:center;vertical-align:middle;z-index:13}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_left-ico_],.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_right-ico_]{z-index:13;-moz-box-sizing:content-box;box-sizing:content-box;cursor:pointer;display:inline-table;line-height:0;margin-top:-15px;position:absolute;top:55%}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_left-ico_]:hover,.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_right-ico_]:hover{cursor:pointer}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel_play_pause_]{bottom:0;cursor:pointer;display:flex;justify-content:center;align-items:center;outline:medium none;position:absolute;height:inherit;width:30%;left:35%;z-index:13}.bwg_container.bwg_carousel .bwg_carousel_play_pause:hover .bwg_carousel_play_pause-ico{display:inline-block!important}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel_play_pause_]:hover span{position:relative;z-index:13}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel_play_pause_] span{display:flex;justify-content:center;align-items:center}.bwg_container.bwg_carousel [id^=bwg_container2_] .bwg_carousel_play_pause-ico{display:none!important;cursor:pointer;position:relative;z-index:13}.bwg_container.bwg_carousel [id^=bwg_container2_] .bwg_carousel_play_pause-ico:hover{display:inline-block;position:relative;z-index:13}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_embed_]{padding:0!important;float:none!important;width:100%;height:100%;vertical-align:middle;position:relative;display:table;background-color:#000;text-align:center}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_embed_video_]{padding:0!important;margin:0!important;float:none!important;vertical-align:middle;position:relative;display:table-cell;background-color:#000;text-align:center}.bwg_thumbnail.bwg_container{padding:0 1px}.bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive{display:inline-block}body .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .bwg_order_cont,body .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .bwg_search_container_1,body .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .search_tags_container{width:100%;margin:0 0 10px 0;text-align:center;max-width:100%}.search_line .SumoSelect>.optWrapper.multiple.isFloating{padding-bottom:26px}.bwg_container.bwg_blog_style .fluid-width-video-wrapper,.bwg_container.bwg_carousel .fluid-width-video-wrapper,.bwg_container.bwg_image_browser .fluid-width-video-wrapper{width:100%;position:unset!important;padding:0!important}.bwg_inst_play_btn_cont{width:100%;height:100%;position:absolute;z-index:1;cursor:pointer;top:0}.bwg_inst_play{position:absolute;width:50px;height:50px;background-position:center center;background-repeat:no-repeat;background-size:cover;transition:background-image .2s ease-out;-ms-transition:background-image .2s ease-out;-moz-transition:background-image .2s ease-out;-webkit-transition:background-image .2s ease-out;top:0;left:0;right:0;bottom:0;margin:auto}.bwg_inst_play:hover{background-position:center center;background-repeat:no-repeat;background-size:cover}.spider_popup_wrap *{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.spider_popup_wrap{display:inline-block;left:50%;outline:medium none;position:fixed;text-align:center;top:50%;z-index:100000}.bwg_popup_image{width:auto;vertical-align:middle;display:inline-block}.bwg_slider img{display:inline-block}.bwg_popup_embed{width:100%;height:100%;vertical-align:middle;text-align:center;display:table}.bwg_btn_container{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}.bwg_toggle_btn{margin:0;padding:0}.bwg_ctrl_btn_container{position:absolute;width:100%;z-index:10150}.bwg_btn_container.bwg_no_ctrl_btn .bwg_ctrl_btn_container{background:0 0}.bwg_toggle_container{cursor:pointer;left:50%;line-height:0;position:absolute;text-align:center;z-index:10150}#spider_popup_left-ico span,#spider_popup_right-ico span,.spider_popup_close span{display:table-cell;text-align:center;vertical-align:middle}.bwg_image_wrap{height:inherit;display:table;position:absolute;text-align:center;width:inherit}.bwg_image_wrap *{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.bwg_comment_wrap,.bwg_ecommerce_wrap{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0;z-index:-1}.bwg_comment_container,.bwg_ecommerce_container{-moz-box-sizing:border-box;height:100%;overflow:hidden;position:absolute;top:0;z-index:10103}#bwg_ecommerce{padding:10px}.bwg_ecommerce_body{background:0 0!important;border:none!important}.pge_tabs{list-style-type:none;margin:0;padding:0;background:0 0!important}.pge_tabs li a,.pge_tabs li a:hover,.pge_tabs li.pge_active a{text-decoration:none;display:block;width:100%;outline:0!important;padding:8px 5px!important;font-weight:700;font-size:13px}.pge_add_to_cart a{padding:5px 10px;text-decoration:none!important;display:block}.pge_add_to_cart{margin:5px 0 15px}.pge_add_to_cart_title{font-size:17px;padding:5px}.pge_add_to_cart div:first-child{float:left}.pge_add_to_cart div:last-child{float:right;margin-top:4px}.pge_add_to_cart:after,.pge_tabs:after{clear:both;content:"";display:table}#downloads table tr td,#downloads table tr th{padding:6px 10px!important;text-transform:none!important}.bwg_comments input[type=submit],.bwg_ecommerce_panel input[type=button]{cursor:pointer;font-size:15px;width:100%;margin-bottom:5px}.bwg_comments,.bwg_ecommerce_panel{bottom:0;height:100%;left:0;overflow-x:hidden;overflow-y:auto;position:absolute;top:0;width:100%;z-index:10101}.bwg_comments{height:100%}.bwg_comment_body_p,.bwg_comments p{margin:5px!important;text-align:left;word-wrap:break-word;word-break:break-all}.bwg_ecommerce_panel p{padding:5px!important;text-align:left;word-wrap:break-word;word-break:break-all;margin:0!important}.bwg_comments .bwg-submit-disabled{opacity:.5}.bwg_comments textarea{height:120px;resize:vertical}.bwg_comment_delete_btn{color:#7a7a7a;cursor:pointer;float:right;font-size:14px;margin:2px}.bwg_comments_close,.bwg_ecommerce_close{cursor:pointer;line-height:0;position:relative;font-size:13px;margin:5px;z-index:10150}.bwg_ecommerce_panel a:hover{text-decoration:underline}.bwg_comment_textarea::-webkit-scrollbar{width:4px}.bwg_comment_textarea::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,.55);border-radius:2px}.bwg_comment_textarea::-webkit-scrollbar-thumb:hover{background-color:#d9d9d9}.bwg_ctrl_btn_container a,.bwg_ctrl_btn_container a:hover{text-decoration:none}.bwg_facebook:hover{color:#3b5998}.bwg_twitter:hover{color:#4099fb}.bwg_pinterest:hover{color:#cb2027}.bwg_tumblr:hover{color:#2f5070}.bwg_image_container{display:table;position:absolute;text-align:center;vertical-align:middle;width:100%}.bwg_filmstrip_container{position:absolute;z-index:10150}.bwg_filmstrip{overflow:hidden;position:absolute;z-index:10106}.bwg_filmstrip_thumbnails{margin:0 auto;overflow:hidden;position:relative}.bwg_filmstrip_thumbnail{position:relative;background:0 0;float:left;cursor:pointer;overflow:hidden}.bwg_filmstrip_thumbnail .bwg_filmstrip_thumbnail_img_wrap{overflow:hidden}.bwg_thumb_active{opacity:1}.bwg_filmstrip_thumbnail_img{display:block;opacity:1}.bwg_filmstrip_left{cursor:pointer;vertical-align:middle;z-index:10106;line-height:0}.bwg_filmstrip_right{cursor:pointer;vertical-align:middle;z-index:10106;line-height:0}.bwg_none_selectable{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bwg_watermark_container{display:table-cell;margin:0 auto;position:relative;vertical-align:middle}.bwg_watermark_container>div{display:table;margin:0 auto}.bwg_watermark_spun{display:table-cell;overflow:hidden;position:relative}.bwg_watermark_image{margin:4px;position:relative;z-index:10141}.bwg_watermark_text,.bwg_watermark_text:hover{text-decoration:none;margin:4px;position:relative;z-index:10141}.bwg_slide_container{display:table-cell;position:absolute;vertical-align:middle;width:100%;height:100%}.bwg_slide_bg{margin:0 auto;width:inherit;height:inherit}.bwg_slider{height:inherit;width:inherit}.bwg_popup_image_spun{height:inherit;display:table-cell;opacity:1;position:absolute;vertical-align:middle;width:inherit;z-index:2}.bwg_popup_image_second_spun{width:inherit;height:inherit;display:table-cell;opacity:0;position:absolute;vertical-align:middle;z-index:1}.bwg_grid{display:none;height:100%;overflow:hidden;position:absolute;width:100%}.bwg_gridlet{opacity:1;position:absolute}.bwg_image_info::-webkit-scrollbar{width:4px}.bwg_image_info::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,.55);border-radius:2px}.bwg_image_info::-webkit-scrollbar-thumb:hover{background-color:#d9d9d9}#bwg_rate_form .bwg_hint{margin:0 5px;display:none}.bwg_star{display:inline-block;width:unset!important}.bwg_image_count_container{left:0;line-height:1;position:absolute;vertical-align:middle}#bwg_comment_form label{display:block;font-weight:700;margin-top:17px;text-transform:uppercase}#bwg_comment_form .bwg-privacy-policy-box label{text-transform:unset;word-break:break-word}.bwg_popup_image_spun .bwg_popup_image_spun1{width:inherit;height:inherit}.bwg_popup_image_spun1 .bwg_popup_image_spun2{vertical-align:middle;text-align:center;height:100%}#embed_conteiner{table-layout:fixed;height:100%}#opacity_div{background-color:rgba(255,255,255,.2);position:absolute;z-index:10150}#loading_div{text-align:center;position:relative;vertical-align:middle;z-index:10170;float:none;width:30px;height:30px;background-size:30px 30px;background-repeat:no-repeat;background-position:50% 50%}#ecommerce_ajax_loading{position:absolute}#ecommerce_opacity_div{display:none;background-color:rgba(255,255,255,.2);position:absolute;z-index:10150}#ecommerce_loading_div{display:none;text-align:center;position:relative;vertical-align:middle;z-index:10170;float:none;width:30px;height:30px;background-size:30px 30px;background-repeat:no-repeat;background-position:50% 50%}.bwg_ecommerce_panel.bwg_popup_sidebar_panel.bwg_popup_sidebar{text-align:left}#ajax_loading{position:absolute}@media (max-width:480px){.bwg_image_count_container{display:none}.bwg_image_title,.bwg_image_title *{font-size:12px}.bwg_image_description,.bwg_image_description *{font-size:10px}}@media (pointer:none),(pointer:coarse){.bwg-container.bwg-masonry-thumbnails .bwg-title1,.bwg-container.bwg-standard-thumbnails .bwg-title1,.bwg-mosaic-thumbnails{opacity:1!important}.bwg-zoom-effect .bwg-zoom-effect-overlay,.bwg-zoom-effect-overlay>span{opacity:1!important;background-color:unset!important}}body[data-elementor-device-mode=mobile] .bwg-container.bwg-masonry-thumbnails .bwg-title1,body[data-elementor-device-mode=mobile] .bwg-container.bwg-standard-thumbnails .bwg-title1,body[data-elementor-device-mode=mobile] .bwg-mosaic-thumbnails,body[data-elementor-device-mode=tablet] .bwg-container.bwg-masonry-thumbnails .bwg-title1,body[data-elementor-device-mode=tablet] .bwg-container.bwg-standard-thumbnails .bwg-title1,body[data-elementor-device-mode=tablet] .bwg-mosaic-thumbnails{opacity:1!important}body[data-elementor-device-mode=mobile] .bwg-zoom-effect .bwg-zoom-effect-overlay,body[data-elementor-device-mode=mobile] .bwg-zoom-effect-overlay>span,body[data-elementor-device-mode=tablet] .bwg-zoom-effect .bwg-zoom-effect-overlay,body[data-elementor-device-mode=tablet] .bwg-zoom-effect-overlay>span{opacity:1!important;background-color:unset!important}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_image_wrap_] *{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_image_wrap_]{border-collapse:collapse;display:table;position:relative;text-align:center;margin:auto}div[id^=bwg_container1_] div[id^=bwg_container2_] img[class^=bwg_slideshow_image_]{display:inline-block;padding:0!important;margin:0!important;float:none!important;vertical-align:middle}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_embed_]{padding:0!important;margin:0!important;float:none!important;vertical-align:middle;display:inline-block;text-align:center}div[id^=bwg_container1_] div[id^=bwg_container2_] img[class^=bwg_slideshow_watermark_]{position:relative;z-index:15}div[id^=bwg_container1_] div[id^=bwg_container2_] span.bwg_slideshow_play_pause{bottom:0;cursor:pointer;display:table;height:inherit;outline:medium none;position:absolute;width:30%;left:35%;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] span.bwg_slideshow_play_pause:hover span[id^=bwg_slideshow_play_pause-ico_]{display:inline-block!important}div[id^=bwg_container1_] div[id^=bwg_container2_] span.bwg_slideshow_play_pause:hover span{position:relative;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] span.bwg_slideshow_play_pause span{display:table-cell;text-align:center;vertical-align:middle;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=bwg_slideshow_play_pause-ico_]{display:none!important;cursor:pointer;position:relative;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=bwg_slideshow_play_pause-ico_]:hover{display:inline-block;position:relative;z-index:13}.bwg_embed_frame .instagram-media,div[id^=bwg_container1_] div[id^=bwg_container2_] .instagram-media{margin:0 auto!important;min-width:unset!important}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_left_],div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_right_]{bottom:35%;cursor:pointer;display:inline;height:30%;outline:medium none;position:absolute;width:35%;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_left_]{left:0}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_right_]{right:0}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_left_]:hover,div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_right_]:hover{visibility:visible}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_left_]:hover,div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_right_]:hover{visibility:visible}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_right_]:hover span{left:auto!important;right:20px!important}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_left_]:hover span{left:20px!important}div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_left-ico_] span,div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_right-ico_] span{display:table-cell;text-align:center;vertical-align:middle;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_left-ico_],div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_right-ico_]{z-index:13;-moz-box-sizing:content-box;box-sizing:content-box;cursor:pointer;display:table;line-height:0;margin-top:-15px;position:absolute;top:50%}div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_left-ico_]:hover,div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_right-ico_]:hover{cursor:pointer}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_image_container_]{display:table;position:absolute;text-align:center;vertical-align:middle}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_filmstrip_container_]{position:absolute}div[id^=bwg_container1_] div[id^=bwg_container2_] .bwg_slideshow_filmstrip,div[id^=bwg_container1_] div[id^=bwg_container2_] .bwg_slideshow_filmstrip_fix_count{overflow:hidden;position:absolute}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_filmstrip_thumbnails_]{margin:0 auto;overflow:hidden;position:relative}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_filmstrip_thumbnail_]{position:relative;background:0 0;cursor:pointer;float:left;overflow:hidden}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_thumb_active_]{opacity:1}div[id^=bwg_container1_] div[id^=bwg_container2_] img[class^=bwg_slideshow_filmstrip_thumbnail_img_]{display:block;opacity:1;padding:0!important}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_filmstrip_left_]{cursor:pointer;vertical-align:middle}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_filmstrip_right_]{cursor:pointer;vertical-align:middle}div[id^=bwg_container1_] div[id^=bwg_container2_] a[class^=bwg_none_selectable_]{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_watermark_container_]{display:table-cell;margin:0 auto;position:relative;vertical-align:middle}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_watermark_spun_]{display:table-cell;overflow:hidden;position:relative}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_title_spun_]{display:table-cell;overflow:hidden;position:relative}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_description_spun_]{display:table-cell;overflow:hidden;position:relative}div[id^=bwg_container1_] div[id^=bwg_container2_] img[class^=bwg_slideshow_watermark_image_]{padding:0!important;float:none!important;margin:4px!important;position:relative;z-index:15}div[id^=bwg_container1_] div[id^=bwg_container2_] a[class^=bwg_slideshow_watermark_text_],div[id^=bwg_container1_] div[id^=bwg_container2_] a[class^=bwg_slideshow_watermark_text_]:hover{text-decoration:none;margin:4px;position:relative;z-index:15}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_title_text_]{text-decoration:none;position:relative;z-index:11;display:inline-block;word-wrap:break-word;word-break:break-word}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_description_text_]{text-decoration:none;position:relative;z-index:15;margin:5px;display:inline-block;word-wrap:break-word;word-break:break-word}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slide_container_]{display:table-cell;margin:0 auto;position:absolute;vertical-align:middle;width:100%;height:100%}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slide_bg_]{margin:0 auto;width:inherit;height:inherit}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slider_]{height:inherit;width:inherit}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_image_spun_]{width:inherit;height:inherit;display:table-cell;opacity:1;position:absolute;vertical-align:middle;z-index:2}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_image_second_spun_]{width:inherit;height:inherit;display:table-cell;opacity:0;position:absolute;vertical-align:middle;z-index:1}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_grid_]{display:none;height:100%;overflow:hidden;position:absolute;width:100%}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_gridlet_]{opacity:1;position:absolute}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_dots_]{display:inline-block;position:relative;cursor:pointer;overflow:hidden;z-index:17}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_dots_container_]{display:block;overflow:hidden;position:absolute;z-index:17}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_dots_thumbnails_]{left:0;font-size:0;margin:0 auto;overflow:hidden;position:relative}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_dots_active_]{opacity:1}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_image_spun1_]{display:table;width:inherit;height:inherit}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_image_spun2_]{display:table-cell;vertical-align:middle;text-align:center}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_mosaic_play_icon_spun_]{display:flex;width:auto;height:auto;opacity:1;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:100;justify-content:center;align-content:center;flex-direction:column;text-align:center}.lazy_loader{background-image:url(../images/ajax_loader.png);background-size:30px 30px;background-repeat:no-repeat;background-position:50% 50%}.bwg-container-temp0{visibility:hidden!important;position:absolute!important}.bwg_image_browser .pagination-links{display:flex;padding:0}.bwg_image_browser .pagination-links_col1{flex-grow:3;text-align:left}.bwg_image_browser .pagination-links_col2{flex-grow:4;text-align:center}.bwg_image_browser .pagination-links_col3{flex-grow:3;text-align:right}.bwg_current_page[type=number]{width:35px;display:inline-block;-moz-appearance:textfield;line-height:normal!important}.bwg_current_page::-webkit-inner-spin-button,.bwg_current_page::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.bwg_container .bwg_tag_button_view_container{display:flex;justify-content:flex-start;align-content:flex-start;align-items:flex-start;margin-bottom:45px;position:relative;padding-top:3px;flex-wrap:wrap;overflow:hidden;clear:both}.bwg_container .bwg_tag_button_view_container button{cursor:pointer}.bwg_container .bwg_tag_button_view_container button.active{cursor:default}.bwg_container .bwg_tag_button_view_container .verLine{min-height:26px;margin:0 15px}.bwg_container .bwg_tag_button_see_all{margin-bottom:70px;position:relative;display:none}.bwg_container .bwg_tag_button_see_all .see_all_tags{text-transform:uppercase;position:absolute;padding:10px 25px;font-weight:600;cursor:pointer;left:47%;top:-23px}.bwg_container .bwg_tag_button_see_all .see_all_tags span{display:inline-block;line-height:normal;text-align:center;border-radius:50%;margin-right:10px;font-weight:500;color:#fff;height:18px;width:18px}.bwg_addThis{position:absolute;left:10px;top:10px;z-index:9999}
|
1 |
+
.spider_popup_wrap .bwg_image_wrap figure{margin:0;padding:0;display:inline-block}figure.zoom{background-position:50% 50%;background-size:200%;position:relative;width:auto;overflow:hidden;cursor:zoom-in}figure.zoom img:hover{opacity:0}figure.zoom img{transition:opacity .5s;display:block}div[id^=bwg_container] p{padding:0!important;margin:0!important}div[id^=bwg_container] img{box-shadow:none!important}div[id^=bwg_container] *{margin:0}div[id^=bwg_container] .SumoSelect.open>.CaptionCont,div[id^=bwg_container] .SumoSelect:focus>.CaptionCont,div[id^=bwg_container] .SumoSelect:hover>.CaptionCont,div[id^=bwg_container] .SumoSelect>.CaptionCont{border:none;box-shadow:none}#bwg_tag_wrap{background-color:#fff;width:100%;font-family:inherit;margin:0 -5px 20px 0;z-index:200;position:relative}.bwg_search_loupe_container,.bwg_search_reset_container{font-size:18px;color:#ccc;cursor:pointer;position:relative}#bwg_tag_container p{text-align:center}#bwg_tag_container{border:1px solid #ccc;box-shadow:0 0 3px 1px #ccc;border-radius:4px;width:256px;float:right}#spider_popup_wrap a{border:none;box-shadow:none}div[id^=bwg_container].bwg_container .bwg-a{border:none;box-shadow:none!important;outline:0;font-size:0;line-height:normal;cursor:pointer;text-decoration:none}div[id^=bwg_container].bwg_container .bwg-masonry-thumb-description,div[id^=bwg_container].bwg_container .bwg-thumb-description{cursor:auto}div[id^=bwg_container] div[id^=bwg_container] .bwg_img_clear{max-height:none!important;max-width:none!important;padding:0!important}.tag_cloud_link{font-size:inherit!important}@media print{#spider_popup_left,#spider_popup_right,.bwg_image_info,[class^=bwg_slideshow_title_text_],[id^=bwg_slideshow_play_pause_],[id^=spider_slideshow_left_],[id^=spider_slideshow_right_]{background:0 0}}.bwg_spider_popup_loading,.footer-list-block .bwp_gallery .bwg_spider_popup_loading,.footer-list-block .bwp_gallery_tags .bwg_spider_popup_loading{background-image:url(../images/ajax_loader.png);background-color:rgba(0,0,0,0);background-repeat:no-repeat;background-position:0 0;background-size:30px 30px;border:none!important;display:none;height:30px;left:50%;margin-left:-20px;margin-top:-20px;overflow:hidden;position:fixed;top:50%;width:30px;z-index:10102}.bwg_filmstrip_thumbnail_img{max-width:none!important}.dashicons-arrow-down-alt2:before{content:"\f347";height:100%;display:inline-block}.footer-list-block .bwp_gallery .spider_popup_overlay,.footer-list-block .bwp_gallery_tags .spider_popup_overlay,.spider_popup_overlay{cursor:pointer;display:none;height:100%;left:0;position:fixed;top:0;width:100%;z-index:10100}.bwp_gallery_tags div[id^=bwg_container] li{border:none}.spider_popup_close,.spider_popup_close_fullscreen{-moz-box-sizing:content-box!important;box-sizing:content-box!important;cursor:pointer;display:table;line-height:0;position:absolute;z-index:11100}.spider_popup_close_fullscreen{margin:10px 7px;right:7px}#spider_popup_left{left:0}#spider_popup_right{right:0}#spider_popup_left:hover,#spider_popup_right:hover{visibility:visible}#spider_popup_left:hover span{left:20px}#spider_popup_right:hover span{left:auto;right:20px}#spider_popup_left,#spider_popup_right{background:transparent url(../images/blank.gif) repeat scroll 0 0;bottom:35%;cursor:pointer;display:inline;height:30%;outline:medium none;position:absolute;width:35%;z-index:10130}#bwg_image_container #spider_popup_left,#bwg_image_container #spider_popup_right{width:25%}#spider_popup_left-ico,#spider_popup_right-ico{-moz-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:table;line-height:0;margin-top:-15px;position:absolute;top:50%;z-index:10135}.bwg_captcha_refresh{background-image:url(../images/captcha_refresh.png);background-position:center center;background-repeat:no-repeat;background-size:100% 100%;border-width:0;cursor:pointer;display:inline-block;height:20px;width:20px;margin:0;padding:0;vertical-align:middle}.bwg_captcha_input{vertical-align:middle;width:75px!important}.bwg_captcha_img{cursor:pointer;margin:0 5px 0 5px;vertical-align:middle}.bwg_comment_error{color:red;display:block}.bwg_comment_waiting_message{display:none}.bwg_image_hit_container1,.bwg_image_info_container1,.bwg_image_rate_container1{height:100%;margin:0 auto;position:absolute;width:100%}.bwg_image_rate_container1{display:none}.bwg_image_hit_container2,.bwg_image_info_container2,.bwg_image_rate_container2{display:table;height:100%;margin:0 auto;position:absolute;width:100%}.bwg_image_hit_spun,.bwg_image_info_spun,.bwg_image_rate_spun{display:table-cell;height:100%;left:0;top:0;width:100%;overflow:hidden;position:relative}.bwg_image_hit,.bwg_image_info,.bwg_image_rate{display:inline-block;position:relative;text-decoration:none;word-wrap:break-word;z-index:11}.bwg_image_rate{z-index:999!important}.bwg_image_rate_disabled{display:none;position:absolute;width:100%;height:40px;top:0}@media screen and (max-width:465px){.bwg_ctrl_btn_container{height:auto!important}}.bwg_search_container_1{display:inline-block;width:100%;text-align:right;margin:0 5px 20px 0;background-color:rgba(0,0,0,0)}.bwg_search_container_2{display:inline-block;position:relative;border-radius:4px;box-shadow:0 0 3px 1px #ccc;background-color:#fff;border:1px solid #ccc;max-width:100%}div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input_container{display:block;margin-right:45px}div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_loupe_container{display:inline-block;margin-right:1px;vertical-align:middle;float:right}div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_reset_container{margin-right:5px;vertical-align:middle;float:right}.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_reset,.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search{display:block;font-size:10px;color:#323a45;cursor:pointer;line-height:inherit!important}.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search{font-size:12px}div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input,div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input:focus{color:#070707;outline:0;border:none;box-shadow:none;background:0 0;padding:3px 5px;font-family:inherit;width:100%}.bwg_order_cont .SumoSelect{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 3px 1px #ccc;border-radius:4px;height:initial;max-width:100%;padding:0 10px}.SumoSelect>.optWrapper>.options li.opt{border:none;text-align:left}.bwg_order_cont .SumoSelect .CaptionCont{text-align:left}.bwg_order_cont{background-color:rgba(0,0,0,0);display:block;text-align:right;width:100%;margin:0 5px 20px 0}#bwg_tag_container .SumoSelect,.bwg_order_cont .SumoSelect{display:inline-table}#bwg_tag_container .SumoSelect ul.options,.bwg_order_cont .SumoSelect ul.options{margin:0;padding:0!important}#bwg_tag_container .SumoSelect li,.bwg_order_cont .SumoSelect li{list-style:none}#bwg_tag_container .SumoSelect.open .search-txt{padding:0 8px;height:100%}#bwg_tag_container .SumoSelect>.optWrapper>.options li label{margin:0}.bwg_order_label{border:none;box-shadow:none;color:#bbb;font-family:inherit;font-weight:700;outline:0}.bwg_order{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 3px 1px #ccc;border-radius:4px;height:initial;max-width:100%;text-align:left}.wd_error{color:#ccc;font-size:initial}div[id^=bwg_container] .bwg_download_gallery{text-align:right;margin-top:10px}div[id^=bwg_container] .bwg_download_gallery a{color:#4a4a4a;font-size:25px;text-decoration:none}div[id^=bwg_container] .bwg_download_gallery a:hover{color:#7d7d7d}div[id^=bwg_container] .bwg-border-box *{-moz-box-sizing:border-box;box-sizing:border-box}.bwg-flex{display:flex}.bwg-width-100{width:100%;max-width:100%}.bwg-flex-column{flex-direction:column}.bwg-flex-row{flex-direction:row;flex-wrap:wrap}.bwg-container{font-size:0;width:100%;max-width:100%;display:flex;flex-direction:row;flex-wrap:wrap}.bwg-item{display:flex;flex-direction:column;cursor:pointer}.bwg-item0{overflow:hidden;z-index:100}.bwg-item0:hover{background:0 0!important;backface-visibility:hidden;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;opacity:1;z-index:102;position:relative}.bwg-item1{overflow:hidden;width:100%;position:relative}.bwg-item2{top:0;left:0;bottom:0;right:0;width:100%;height:100%}.bwg-item2{position:absolute}.bwg-ecommerce1,.bwg-title1{opacity:1;text-align:center;width:100%}.bwg-ecommerce1{text-align:right}.bwg-title2{width:100%;word-wrap:break-word}.bwg-item0:hover .bwg-ecommerce1,.bwg-item0:hover .bwg-title1{left:0!important;opacity:1!important}.bwg-play-icon1{display:flex;width:auto;height:auto;opacity:1;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:100;justify-content:center;align-content:center;flex-direction:column;text-align:center}.bwg_loading_div_1{position:absolute;width:100%;height:100%;z-index:115;text-align:center;vertical-align:middle;top:0}.bwg_load_more_ajax_loading{width:100%;z-index:115;text-align:center;vertical-align:middle;position:relative;height:30px}.bwg_load_more_ajax_loading.bwg-hidden{height:0}.bwg_loading_div_2{display:table;vertical-align:middle;width:100%;height:100%;background-color:#fff;opacity:.95}.bwg_loading_div_3{display:table-cell;text-align:center;position:relative;vertical-align:middle}.bwg_spider_ajax_loading{border:none!important;display:inline-block;text-align:center;position:relative;vertical-align:middle;background-image:url(../images/ajax_loader.png);float:none;width:30px;height:30px;background-size:30px 30px}.bwg-hidden{visibility:hidden}.bwg_container{position:relative;margin:20px auto}.bwg_inst_play_btn_cont,.bwg_inst_play_btn_cont .bwg_inst_play{display:block}.hidden{display:none!important}.bwg-loading{width:100%;height:100%;opacity:.95;position:absolute;background-image:url(../images/ajax_loader.png);background-position:center;background-repeat:no-repeat;background-size:50px;z-index:100100;top:0;left:0}#bwg_download{display:inline-block}#bwg_download.hidden{display:none}.bwg_thumbnail.bwg_container .search_line.bwg_tag_select_view{min-height:50px;-webkit-box-shadow:0 5px 7px -5px rgba(0,0,0,.16);-moz-box-shadow:0 5px 7px -5px rgba(0,0,0,.16);box-shadow:0 5px 7px -5px rgba(0,0,0,.16);margin-bottom:10px;display:inline-block;width:100%}.bwg_thumbnail.bwg_container .search_line #bwg_tag_wrap,.bwg_thumbnail.bwg_container .search_line .bwg_order_cont,.bwg_thumbnail.bwg_container .search_line .bwg_search_container_1{float:left;display:table-cell;text-align:left;vertical-align:middle}.bwg_thumbnail.bwg_container .search_line #bwg_tag_wrap #bwg_tag_container,.bwg_thumbnail.bwg_container .search_line .bwg_order_cont select{border:.5px solid rgba(0,0,0,.15);box-shadow:none;border-radius:15px}.bwg_thumbnail.bwg_container .search_line .bwg_order_cont,.bwg_thumbnail.bwg_container .search_line .search_tags_container{width:25%;min-width:120px;max-width:180px;margin-right:20px;border:.5px solid rgba(0,0,0,.15);box-shadow:none;border-radius:15px;float:left;height:30px;padding:0;cursor:pointer;background:#fff}.bwg_thumbnail.bwg_container .search_line .bwg_order_cont select,.bwg_thumbnail.bwg_container .search_line .placeholder,.bwg_thumbnail.bwg_container .search_line .search-txt,.bwg_thumbnail.bwg_container .search_line .select-all,.bwg_thumbnail.bwg_container .search_line.SumoSelect .opt label{color:#323a45;font-size:12px;text-transform:uppercase;font-weight:400;font-family:Ubuntu;margin:0;border:none}.bwg_thumbnail.bwg_container .search_line .select-all label{margin-bottom:0;line-height:13px}.bwg_thumbnail.bwg_container .search_line .SumoSelect ul.options:not(:empty){padding:15px 0 0 10px!important}.bwg_thumbnail.bwg_container .search_line .SumoSelect{padding:0 10px;width:initial;height:inherit;cursor:pointer;display:block;border:none;box-shadow:none;border-radius:0;max-width:100%;background-color:transparent;line-height:inherit;vertical-align:bottom}.bwg_thumbnail.bwg_container .search_line .bwg_search_input_container{height:30px;text-align:center;font-size:12px;font-family:Ubuntu;border-radius:15px;text-align:left;width:calc(100%);margin:0;overflow:hidden}.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input,.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input:focus{height:30px;padding:0 10px;text-align:center;font-size:12px;font-family:Ubuntu;border-radius:15px;text-align:left;width:calc(100% - 64px);display:inline-table}.bwg_thumbnail.bwg_container .search_line .CaptionCont span{display:block!important;vertical-align:middle;color:#323a45!important;font-size:12px;text-transform:uppercase;font-family:Ubuntu;cursor:pointer;line-height:29px;max-width:calc(100% - 20px)}.bwg_thumbnail .search_tags{cursor:pointer}.bwg_thumbnail.bwg_container .search_line .SumoSelect .select-all>span,.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper.multiple>.options li.opt span{margin-left:-35px}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper.multiple>.options li.opt{padding-left:25px}.bwg_thumbnail .bwg_search_input::-webkit-input-placeholder{color:#ccc;font-size:12px;text-transform:uppercase;font-family:Ubuntu}.bwg_thumbnail .bwg_search_input::-moz-placeholder{color:#ccc;font-size:12px;text-transform:uppercase;text-align:left;font-family:Ubuntu;line-height:30px}.bwg_thumbnail .bwg_search_input:-ms-input-placeholder{color:#ccc;font-size:12px;text-transform:uppercase;text-align:left;font-family:Ubuntu}.bwg_thumbnail .bwg_search_input:-moz-placeholder{color:#ccc;font-size:12px;text-transform:uppercase;text-align:left;font-family:Ubuntu}.bwg_thumbnail .search-txt::-webkit-input-placeholder{text-align:left;color:#323a45;opacity:.5;font-size:12px!important}.bwg_thumbnail .search-txt::-moz-placeholder{text-align:left;color:#323a45;opacity:.5;font-size:12px!important}.bwg_thumbnail .search-txt::-ms-input-placeholder{text-align:left;color:#323a45;opacity:.5;font-size:12px}.bwg_thumbnail .search-txt:-ms-input-placeholder{text-align:left;color:#323a45;opacity:.5;font-size:12px}.bwg_thumbnail .search-txt:-moz-placeholder{text-align:left;color:#323a45;opacity:.5;font-size:12px}.bwg_thumbnail .bwg_search_input_container .search_placeholder_title{width:calc(100% - 20px);height:29px;text-align:center;display:inline-block;background:#fff;position:absolute;top:.5px;left:10px;white-space:nowrap;border-radius:15px;color:#4e4e4e;text-transform:uppercase;overflow:hidden}.bwg_thumbnail .bwg_search_input_container .search_placeholder_title span{line-height:28px}.bwg_thumbnail.bwg_container .search_line .bwg_search_loupe_container{line-height:29px;display:inline-block;top:0;margin-right:10px;vertical-align:middle;float:none;padding-top:0;font-size:12px;font-family:Ubuntug}.bwg_thumbnail.bwg_container .search_line .bwg_search_loupe_container1{margin-left:0;float:left;top:0;line-height:30px;width:auto;height:30px;margin-left:10px}.bwg_thumbnail.bwg_container .search_line .bwg_search_reset_container{right:0;top:0;line-height:30px;width:11px;height:30px;margin-right:10px}.bwg_thumbnail.bwg_container .search_line .bwg_search_container_1{float:right;width:30%;min-width:120px}.bwg_thumbnail.bwg_container .search_line .bwg_search_container_1 .bwg_search_container_2{width:100%!important;float:right}.bwg_thumbnail.bwg_container .search_line .SumoSelect .select-all{padding:0 0 3px 35px!important;height:13px;line-height:13px;margin-bottom:15px!important}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper>.options li.opt{margin-bottom:15px;padding:0;list-style:none;color:#323a45;font-size:12px;text-transform:uppercase;font-family:Ubuntu;line-height:12px}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper.multiple>.MultiControls>p.btnCancel,.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper.multiple>.MultiControls>p.btnOk{font-family:Ubuntu;font-size:12px;line-height:12px}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper.multiple>.MultiControls>p:hover{background:0 0}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.optWrapper>.options li.opt label{color:#323a45;font-size:12px;text-transform:uppercase;font-family:Ubuntu;font-weight:400;margin-bottom:0}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont{height:inherit;border:transparent;background:inherit;width:100%;cursor:pointer;max-height:calc(100% - 2px)}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont>label{margin:0;line-height:100%;cursor:pointer;width:20px}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont>label>i{background:0 0;line-height:100%;height:100%}.bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont>label>i.closed:before,.bwg_thumbnail.bwg_container .search_line .SumoSelect>.CaptionCont>label>i.opened:before{color:#323a45;font-size:10px;line-height:30px}.bwg_thumbnail.bwg_container .search_line .bwg_reset{position:absolute}.bwg_thumbnail.bwg_container .search_line .no-match{font-family:Ubuntu;font-size:12px;color:#323a45;padding:5px 25px!important;text-align:center}.bwg_thumbnail.bwg_container .search_line .search-txt{border:transparent;background:0 0;padding:4px 0!important;height:100%}.bwg_thumbnail.bwg_container .search_line .search-txt:focus{box-shadow:none}.bwg_thumbnail.bwg_container .search_line .bwg_order.SumoUnder{display:none}.bwg_slideshow_image_container{position:absolute}.bwg_slideshow_image_container>div>div{display:table;margin:0 auto}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slide_container_] img[id^=bwg_slideshow_image_]{display:inline-block}.bwg_thumbnail #bwg_tag_container p{text-align:left}.bwg_thumbnail .bwg_search_container_2{display:inline-block;position:relative;border-radius:4px;background-color:#fff;max-width:100%;box-shadow:none;border:.5px solid rgba(0,0,0,.15);border-radius:15px}.bwg_thumbnail .bwg_order_cont{background-color:rgba(0,0,0,0);display:block;text-align:right;width:100%}.bwg_thumbnail div[id^=bwg_search_container_1_] div[id^=bwg_search_container_2_] .bwg_search_input_container{display:block;text-align:center}.bwg_thumbnail .SumoSelect>.optWrapper>.options li.opt:hover{background-color:transparent}.bwg-zoom-effect .bwg-zoom-effect-overlay{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;opacity:0;-webkit-transition:all .45s ease-in-out;transition:all .45s ease-in-out}.bwg-zoom-effect-overlay{display:flex;align-items:center;justify-content:center}.bwg-zoom-effect:hover .bwg-zoom-effect-overlay{opacity:1}.bwg-zoom-effect .bwg-title1{-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}@media (min-width:480px){.bwg-zoom-effect img{-webkit-transition:all .3s;transition:all .3s}}.bwg_container div[id^=bwg_container2_] img{height:initial}.bwg-masonry-vertical{flex-direction:column}.bwg_thumbnails_masonry .bwg-masonry-thumbnails{overflow:hidden}.bwg_thumbnails_masonry .bwg-masonry-thumbnails .bwg-item{box-sizing:border-box}.bwg-masonry-horizontal{flex-direction:row}.bwg-masonry-horizontal-parent{overflow-x:scroll;overflow-y:hidden}.bwg-masonry-horizontal-container{width:fit-content}.bwg-item.bwg-empty-item{border:0!important;padding:0!important}.bwg-background{background-color:rgba(0,0,0,0);position:relative;width:100%}.bwg-background .wd_error{color:#323a45;font-weight:700}div[id^=bwg_container] .bwg-carousel{margin:0 auto}.bwg_carousel_preload{background-image:url(../images/ajax_loader.png);background-size:50px!important;background-repeat:no-repeat;background-color:#fff;background-position:center}.bwg_container.bwg_carousel *{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.bwg_container.bwg_carousel [id^=bwg_container2_] *{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_]{position:relative;z-index:15}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_image_container_]{display:inline-block;position:absolute;text-align:center;vertical-align:middle}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_container_]{display:table-cell;margin:0 auto;position:relative;vertical-align:middle}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_container_] div{display:table;margin:0 auto}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_spun_]{display:table-cell;overflow:hidden;position:relative}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_image_]{padding:0!important;display:inline-block;float:none!important;margin:4px!important;position:relative;z-index:15}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_text_],.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_watermark_text_]:hover{text-decoration:none;margin:4px;display:block;position:relative;z-index:17}.bwg_container.bwg_carousel [id^=bwg_container2_] .bwg_carousel-cont-child{max-width:100%;position:relative;overflow:hidden;height:100%;width:100%}.bwg_container.bwg_carousel [id^=bwg_container2_] .bwg-carousel-image{border:0;position:absolute;display:block;max-width:none;padding:0!important;margin:0!important;float:none!important;vertical-align:middle;height:100%;width:100%;background-position:center center;background-repeat:no-repeat;background-size:cover;vertical-align:middle}.bwg_container.bwg_carousel [id^=bwg_container2_] .bwg-carousel{position:relative;max-width:100%;width:100%}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel-feature]{position:absolute;display:block;overflow:hidden;cursor:pointer}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel-feature] [class^=bwg_carousel-caption] [class^=bwg_carousel_title_text_]{text-decoration:none;position:absolute;z-index:15;display:inline-block;width:75%;top:0;text-align:center;word-wrap:break-word;word-break:break-word}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel-left],.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel-right]{bottom:38%;cursor:pointer;display:inline;height:30%;outline:medium none;position:absolute;width:0%;z-index:13;visibility:visible}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel-right]{right:0;left:auto;z-index:999}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel-left]{left:20px;z-index:999}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_video_hide]{width:100%;height:100%;position:absolute;z-index:22}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_left-ico_] span,.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_right-ico_] span{display:table-cell;text-align:center;vertical-align:middle;z-index:13}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_left-ico_],.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_right-ico_]{z-index:13;-moz-box-sizing:content-box;box-sizing:content-box;cursor:pointer;display:inline-table;line-height:0;margin-top:-15px;position:absolute;top:55%}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_left-ico_]:hover,.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=spider_carousel_right-ico_]:hover{cursor:pointer}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel_play_pause_]{bottom:0;cursor:pointer;display:flex;justify-content:center;align-items:center;outline:medium none;position:absolute;height:inherit;width:30%;left:35%;z-index:13}.bwg_container.bwg_carousel .bwg_carousel_play_pause:hover .bwg_carousel_play_pause-ico{display:inline-block!important}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel_play_pause_]:hover span{position:relative;z-index:13}.bwg_container.bwg_carousel [id^=bwg_container2_] [id^=bwg_carousel_play_pause_] span{display:flex;justify-content:center;align-items:center}.bwg_container.bwg_carousel [id^=bwg_container2_] .bwg_carousel_play_pause-ico{display:none!important;cursor:pointer;position:relative;z-index:13}.bwg_container.bwg_carousel [id^=bwg_container2_] .bwg_carousel_play_pause-ico:hover{display:inline-block;position:relative;z-index:13}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_embed_]{padding:0!important;float:none!important;width:100%;height:100%;vertical-align:middle;position:relative;display:table;background-color:#000;text-align:center}.bwg_container.bwg_carousel [id^=bwg_container2_] [class^=bwg_carousel_embed_video_]{padding:0!important;margin:0!important;float:none!important;vertical-align:middle;position:relative;display:table-cell;background-color:#000;text-align:center}.bwg_thumbnail.bwg_container{padding:0 1px}.bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive{display:inline-block}body .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .bwg_order_cont,body .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .bwg_search_container_1,body .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .search_tags_container{width:100%;margin:0 0 10px 0;text-align:center;max-width:100%}.search_line .SumoSelect>.optWrapper.multiple.isFloating{padding-bottom:26px}.bwg_container.bwg_blog_style .fluid-width-video-wrapper,.bwg_container.bwg_carousel .fluid-width-video-wrapper,.bwg_container.bwg_image_browser .fluid-width-video-wrapper{width:100%;position:unset!important;padding:0!important}.bwg_inst_play_btn_cont{width:100%;height:100%;position:absolute;z-index:1;cursor:pointer;top:0}.bwg_inst_play{position:absolute;width:50px;height:50px;background-position:center center;background-repeat:no-repeat;background-size:cover;transition:background-image .2s ease-out;-ms-transition:background-image .2s ease-out;-moz-transition:background-image .2s ease-out;-webkit-transition:background-image .2s ease-out;top:0;left:0;right:0;bottom:0;margin:auto}.bwg_inst_play:hover{background-position:center center;background-repeat:no-repeat;background-size:cover}.spider_popup_wrap *{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.spider_popup_wrap{display:inline-block;left:50%;outline:medium none;position:fixed;text-align:center;top:50%;z-index:100000}.bwg_popup_image{width:auto;vertical-align:middle;display:inline-block}.bwg_slider img{display:inline-block}.bwg_popup_embed{width:100%;height:100%;vertical-align:middle;text-align:center;display:table}.bwg_btn_container{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}.bwg_toggle_btn{margin:0;padding:0}.bwg_ctrl_btn_container{position:absolute;width:100%;z-index:10150}.bwg_btn_container.bwg_no_ctrl_btn .bwg_ctrl_btn_container{background:0 0}.bwg_toggle_container{cursor:pointer;left:50%;line-height:0;position:absolute;text-align:center;z-index:10150}#spider_popup_left-ico span,#spider_popup_right-ico span,.spider_popup_close span{display:table-cell;text-align:center;vertical-align:middle}.bwg_image_wrap{height:inherit;display:table;position:absolute;text-align:center;width:inherit}.bwg_image_wrap *{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.bwg_comment_wrap,.bwg_ecommerce_wrap{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0;z-index:-1}.bwg_comment_container,.bwg_ecommerce_container{-moz-box-sizing:border-box;height:100%;overflow:hidden;position:absolute;top:0;z-index:10103}#bwg_ecommerce{padding:10px}.bwg_ecommerce_body{background:0 0!important;border:none!important}.pge_tabs{list-style-type:none;margin:0;padding:0;background:0 0!important}.pge_tabs li a,.pge_tabs li a:hover,.pge_tabs li.pge_active a{text-decoration:none;display:block;width:100%;outline:0!important;padding:8px 5px!important;font-weight:700;font-size:13px}.pge_add_to_cart a{padding:5px 10px;text-decoration:none!important;display:block}.pge_add_to_cart{margin:5px 0 15px}.pge_add_to_cart_title{font-size:17px;padding:5px}.pge_add_to_cart div:first-child{float:left}.pge_add_to_cart div:last-child{float:right;margin-top:4px}.pge_add_to_cart:after,.pge_tabs:after{clear:both;content:"";display:table}#downloads table tr td,#downloads table tr th{padding:6px 10px!important;text-transform:none!important}.bwg_comments input[type=submit],.bwg_ecommerce_panel input[type=button]{cursor:pointer;font-size:15px;width:100%;margin-bottom:5px}.bwg_comments,.bwg_ecommerce_panel{bottom:0;height:100%;left:0;overflow-x:hidden;overflow-y:auto;position:absolute;top:0;width:100%;z-index:10101}.bwg_comments{height:100%}.bwg_comment_body_p,.bwg_comments p{margin:5px!important;text-align:left;word-wrap:break-word;word-break:break-all}.bwg_ecommerce_panel p{padding:5px!important;text-align:left;word-wrap:break-word;word-break:break-all;margin:0!important}.bwg_comments .bwg-submit-disabled{opacity:.5}.bwg_comments textarea{height:120px;resize:vertical}.bwg_comment_delete_btn{color:#7a7a7a;cursor:pointer;float:right;font-size:14px;margin:2px}.bwg_comments_close,.bwg_ecommerce_close{cursor:pointer;line-height:0;position:relative;font-size:13px;margin:5px;z-index:10150}.bwg_ecommerce_panel a:hover{text-decoration:underline}.bwg_comment_textarea::-webkit-scrollbar{width:4px}.bwg_comment_textarea::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,.55);border-radius:2px}.bwg_comment_textarea::-webkit-scrollbar-thumb:hover{background-color:#d9d9d9}.bwg_ctrl_btn_container a,.bwg_ctrl_btn_container a:hover{text-decoration:none}.bwg_facebook:hover{color:#3b5998}.bwg_twitter:hover{color:#4099fb}.bwg_pinterest:hover{color:#cb2027}.bwg_tumblr:hover{color:#2f5070}.bwg_image_container{display:table;position:absolute;text-align:center;vertical-align:middle;width:100%}.bwg_filmstrip_container{position:absolute;z-index:10150}.bwg_filmstrip{overflow:hidden;position:absolute;z-index:10106}.bwg_filmstrip_thumbnails{margin:0 auto;overflow:hidden;position:relative}.bwg_filmstrip_thumbnail{position:relative;background:0 0;float:left;cursor:pointer;overflow:hidden}.bwg_filmstrip_thumbnail .bwg_filmstrip_thumbnail_img_wrap{overflow:hidden}.bwg_thumb_active{opacity:1}.bwg_filmstrip_thumbnail_img{display:block;opacity:1}.bwg_filmstrip_left{cursor:pointer;vertical-align:middle;z-index:10106;line-height:0}.bwg_filmstrip_right{cursor:pointer;vertical-align:middle;z-index:10106;line-height:0}.bwg_none_selectable{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bwg_watermark_container{display:table-cell;margin:0 auto;position:relative;vertical-align:middle}.bwg_watermark_container>div{display:table;margin:0 auto}.bwg_watermark_spun{display:table-cell;overflow:hidden;position:relative}.bwg_watermark_image{margin:4px;position:relative;z-index:10141}.bwg_watermark_text,.bwg_watermark_text:hover{text-decoration:none;margin:4px;position:relative;z-index:10141}.bwg_slide_container{display:table-cell;position:absolute;vertical-align:middle;width:100%;height:100%}.bwg_slide_bg{margin:0 auto;width:inherit;height:inherit}.bwg_slider{height:inherit;width:inherit}.bwg_popup_image_spun{height:inherit;display:table-cell;opacity:1;position:absolute;vertical-align:middle;width:inherit;z-index:2}.bwg_popup_image_second_spun{width:inherit;height:inherit;display:table-cell;opacity:0;position:absolute;vertical-align:middle;z-index:1}.bwg_grid{display:none;height:100%;overflow:hidden;position:absolute;width:100%}.bwg_gridlet{opacity:1;position:absolute}.bwg_image_info::-webkit-scrollbar{width:4px}.bwg_image_info::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,.55);border-radius:2px}.bwg_image_info::-webkit-scrollbar-thumb:hover{background-color:#d9d9d9}#bwg_rate_form .bwg_hint{margin:0 5px;display:none}.bwg_star{display:inline-block;width:unset!important}.bwg_image_count_container{left:0;line-height:1;position:absolute;vertical-align:middle}#bwg_comment_form label{display:block;font-weight:700;margin-top:17px;text-transform:uppercase}#bwg_comment_form .bwg-privacy-policy-box label{text-transform:unset;word-break:break-word}.bwg_popup_image_spun .bwg_popup_image_spun1{width:inherit;height:inherit}.bwg_popup_image_spun1 .bwg_popup_image_spun2{vertical-align:middle;text-align:center;height:100%}#embed_conteiner{table-layout:fixed;height:100%}#opacity_div{background-color:rgba(255,255,255,.2);position:absolute;z-index:10150}#loading_div{text-align:center;position:relative;vertical-align:middle;z-index:10170;float:none;width:30px;height:30px;background-size:30px 30px;background-repeat:no-repeat;background-position:50% 50%}#ecommerce_ajax_loading{position:absolute}#ecommerce_opacity_div{display:none;background-color:rgba(255,255,255,.2);position:absolute;z-index:10150}#ecommerce_loading_div{display:none;text-align:center;position:relative;vertical-align:middle;z-index:10170;float:none;width:30px;height:30px;background-size:30px 30px;background-repeat:no-repeat;background-position:50% 50%}.bwg_ecommerce_panel.bwg_popup_sidebar_panel.bwg_popup_sidebar{text-align:left}#ajax_loading{position:absolute}@media (max-width:480px){.bwg_image_count_container{display:none}.bwg_image_title,.bwg_image_title *{font-size:12px}.bwg_image_description,.bwg_image_description *{font-size:10px}}body[data-elementor-device-mode=mobile] .bwg-container.bwg-masonry-thumbnails .bwg-title1,body[data-elementor-device-mode=mobile] .bwg-container.bwg-standard-thumbnails .bwg-title1,body[data-elementor-device-mode=mobile] .bwg-mosaic-thumbnails,body[data-elementor-device-mode=tablet] .bwg-container.bwg-masonry-thumbnails .bwg-title1,body[data-elementor-device-mode=tablet] .bwg-container.bwg-standard-thumbnails .bwg-title1,body[data-elementor-device-mode=tablet] .bwg-mosaic-thumbnails{opacity:1!important}body[data-elementor-device-mode=mobile] .bwg-zoom-effect .bwg-zoom-effect-overlay,body[data-elementor-device-mode=mobile] .bwg-zoom-effect-overlay>span,body[data-elementor-device-mode=tablet] .bwg-zoom-effect .bwg-zoom-effect-overlay,body[data-elementor-device-mode=tablet] .bwg-zoom-effect-overlay>span{opacity:1!important;background-color:unset!important}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_image_wrap_] *{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_image_wrap_]{border-collapse:collapse;display:table;position:relative;text-align:center;margin:auto}div[id^=bwg_container1_] div[id^=bwg_container2_] img[class^=bwg_slideshow_image_]{display:inline-block;padding:0!important;margin:0!important;float:none!important;vertical-align:middle}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_embed_]{padding:0!important;margin:0!important;float:none!important;vertical-align:middle;display:inline-block;text-align:center}div[id^=bwg_container1_] div[id^=bwg_container2_] img[class^=bwg_slideshow_watermark_]{position:relative;z-index:15}div[id^=bwg_container1_] div[id^=bwg_container2_] span.bwg_slideshow_play_pause{bottom:0;cursor:pointer;display:table;height:inherit;outline:medium none;position:absolute;width:30%;left:35%;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] span.bwg_slideshow_play_pause:hover span[id^=bwg_slideshow_play_pause-ico_]{display:inline-block!important}div[id^=bwg_container1_] div[id^=bwg_container2_] span.bwg_slideshow_play_pause:hover span{position:relative;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] span.bwg_slideshow_play_pause span{display:table-cell;text-align:center;vertical-align:middle;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=bwg_slideshow_play_pause-ico_]{display:none!important;cursor:pointer;position:relative;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=bwg_slideshow_play_pause-ico_]:hover{display:inline-block;position:relative;z-index:13}.bwg_embed_frame .instagram-media,div[id^=bwg_container1_] div[id^=bwg_container2_] .instagram-media{margin:0 auto!important;min-width:unset!important}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_left_],div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_right_]{bottom:35%;cursor:pointer;display:inline;height:30%;outline:medium none;position:absolute;width:35%;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_left_]{left:0}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_right_]{right:0}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_left_]:hover,div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_right_]:hover{visibility:visible}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_left_]:hover,div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_right_]:hover{visibility:visible}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_right_]:hover span{left:auto!important;right:20px!important}div[id^=bwg_container1_] div[id^=bwg_container2_] a[id^=spider_slideshow_left_]:hover span{left:20px!important}div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_left-ico_] span,div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_right-ico_] span{display:table-cell;text-align:center;vertical-align:middle;z-index:13}div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_left-ico_],div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_right-ico_]{z-index:13;-moz-box-sizing:content-box;box-sizing:content-box;cursor:pointer;display:table;line-height:0;margin-top:-15px;position:absolute;top:50%}div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_left-ico_]:hover,div[id^=bwg_container1_] div[id^=bwg_container2_] span[id^=spider_slideshow_right-ico_]:hover{cursor:pointer}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_image_container_]{display:table;position:absolute;text-align:center;vertical-align:middle}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_filmstrip_container_]{position:absolute}div[id^=bwg_container1_] div[id^=bwg_container2_] .bwg_slideshow_filmstrip,div[id^=bwg_container1_] div[id^=bwg_container2_] .bwg_slideshow_filmstrip_fix_count{overflow:hidden;position:absolute}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_filmstrip_thumbnails_]{margin:0 auto;overflow:hidden;position:relative}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_filmstrip_thumbnail_]{position:relative;background:0 0;cursor:pointer;float:left;overflow:hidden}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_thumb_active_]{opacity:1}div[id^=bwg_container1_] div[id^=bwg_container2_] img[class^=bwg_slideshow_filmstrip_thumbnail_img_]{display:block;opacity:1;padding:0!important}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_filmstrip_left_]{cursor:pointer;vertical-align:middle}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_filmstrip_right_]{cursor:pointer;vertical-align:middle}div[id^=bwg_container1_] div[id^=bwg_container2_] a[class^=bwg_none_selectable_]{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_watermark_container_]{display:table-cell;margin:0 auto;position:relative;vertical-align:middle}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_watermark_spun_]{display:table-cell;overflow:hidden;position:relative}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_title_spun_]{display:table-cell;overflow:hidden;position:relative}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_description_spun_]{display:table-cell;overflow:hidden;position:relative}div[id^=bwg_container1_] div[id^=bwg_container2_] img[class^=bwg_slideshow_watermark_image_]{padding:0!important;float:none!important;margin:4px!important;position:relative;z-index:15}div[id^=bwg_container1_] div[id^=bwg_container2_] a[class^=bwg_slideshow_watermark_text_],div[id^=bwg_container1_] div[id^=bwg_container2_] a[class^=bwg_slideshow_watermark_text_]:hover{text-decoration:none;margin:4px;position:relative;z-index:15}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_title_text_]{text-decoration:none;position:relative;z-index:11;display:inline-block;word-wrap:break-word;word-break:break-word}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_description_text_]{text-decoration:none;position:relative;z-index:15;margin:5px;display:inline-block;word-wrap:break-word;word-break:break-word}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slide_container_]{display:table-cell;margin:0 auto;position:absolute;vertical-align:middle;width:100%;height:100%}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slide_bg_]{margin:0 auto;width:inherit;height:inherit}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slider_]{height:inherit;width:inherit}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_image_spun_]{width:inherit;height:inherit;display:table-cell;opacity:1;position:absolute;vertical-align:middle;z-index:2}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_image_second_spun_]{width:inherit;height:inherit;display:table-cell;opacity:0;position:absolute;vertical-align:middle;z-index:1}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_grid_]{display:none;height:100%;overflow:hidden;position:absolute;width:100%}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_gridlet_]{opacity:1;position:absolute}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_dots_]{display:inline-block;position:relative;cursor:pointer;overflow:hidden;z-index:17}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_dots_container_]{display:block;overflow:hidden;position:absolute;z-index:17}div[id^=bwg_container1_] div[id^=bwg_container2_] div[class^=bwg_slideshow_dots_thumbnails_]{left:0;font-size:0;margin:0 auto;overflow:hidden;position:relative}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_dots_active_]{opacity:1}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_image_spun1_]{display:table;width:inherit;height:inherit}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_slideshow_image_spun2_]{display:table-cell;vertical-align:middle;text-align:center}div[id^=bwg_container1_] div[id^=bwg_container2_] span[class^=bwg_mosaic_play_icon_spun_]{display:flex;width:auto;height:auto;opacity:1;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:100;justify-content:center;align-content:center;flex-direction:column;text-align:center}.lazy_loader{background-image:url(../images/ajax_loader.png);background-size:30px 30px;background-repeat:no-repeat;background-position:50% 50%}.bwg-container-temp0{visibility:hidden!important;position:absolute!important}.bwg_image_browser .pagination-links{display:flex;padding:0}.bwg_image_browser .pagination-links_col1{flex-grow:3;text-align:left}.bwg_image_browser .pagination-links_col2{flex-grow:4;text-align:center}.bwg_image_browser .pagination-links_col3{flex-grow:3;text-align:right}.bwg_current_page[type=number]{width:35px;display:inline-block;-moz-appearance:textfield;line-height:normal!important}.bwg_current_page::-webkit-inner-spin-button,.bwg_current_page::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.bwg_container .bwg_tag_button_view_container{display:flex;justify-content:flex-start;align-content:flex-start;align-items:flex-start;margin-bottom:45px;position:relative;padding-top:3px;flex-wrap:wrap;overflow:hidden;clear:both}.bwg_container .bwg_tag_button_view_container button{cursor:pointer}.bwg_container .bwg_tag_button_view_container button.active{cursor:default}.bwg_container .bwg_tag_button_view_container .verLine{min-height:26px;margin:0 15px}.bwg_container .bwg_tag_button_see_all{margin-bottom:70px;position:relative;display:none}.bwg_container .bwg_tag_button_see_all .see_all_tags{text-transform:uppercase;position:absolute;padding:10px 25px;font-weight:600;cursor:pointer;left:47%;top:-23px}.bwg_container .bwg_tag_button_see_all .see_all_tags span{display:inline-block;line-height:normal;text-align:center;border-radius:50%;margin-right:10px;font-weight:500;color:#fff;height:18px;width:18px}.bwg_addThis{position:absolute;left:10px;top:10px;z-index:9999}#wp-admin-bar-booster-top-button{position:relative}#wp-admin-bar-booster-top-button .ab-item{margin:3px 0 0 10px!important;padding:0!important;width:169px;height:26px!important;width:169px;height:26px;background:#2160b5 0 0 no-repeat padding-box;border-radius:4px;font-size:12px;line-height:24px;letter-spacing:.1px;text-align:center;color:#fff;cursor:pointer}#wp-admin-bar-booster-top-button .ab-item:hover,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-booster-top-button:hover>.ab-item{background:#2160b5 0 0 no-repeat padding-box!important;color:#fff!important}#wp-admin-bar-booster-top-button #wp-admin-bar-booster-wrap{display:block;position:absolute;right:0;overflow-y:auto;overflow-x:hidden}#wp-admin-bar-booster-top-button:hover #wp-admin-bar-booster-wrap{display:block}#wp-admin-bar-booster-top-button .bwg-score-info *{margin:0;padding:0;line-height:unset}#wp-admin-bar-booster-top-button .bwg-score-info{margin-top:10px;background:#fff 0 0 no-repeat padding-box;border:1px solid #323A4533;border-radius:6px}#wp-admin-bar-booster-top-button .bwg-score-info .bwg-score-circle{width:44px;height:44px;position:relative;border-radius:50%;margin-right:12px}#wp-admin-bar-booster-top-button .bwg-score-info .bwg-score-circle canvas{width:44px;height:44px;border-radius:44px}#wp-admin-bar-booster-top-button .bwg-score-info .bwg-score-circle .bwg-score-circle-animated{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);transform:translate(-50%,-50%);text-align:center;font:normal normal bold 16px/22px Open Sans;letter-spacing:0;color:rgba(34,179,57,1)}#wp-admin-bar-booster-top-button .bwg-score-info .bwg-reanalyze-container,#wp-admin-bar-booster-top-button .bwg-score-info .bwg-score-container{display:flex}#wp-admin-bar-booster-top-button .bwg-score-info .bwg-score-container{padding:20px;background:rgba(249,249,249,1) 0 0 no-repeat padding-box;border-top-left-radius:6px;border-top-right-radius:6px}#wp-admin-bar-booster-top-button .bwg-score-info .bwg-reanalyze-container{padding:14px 20px;display:flex}#wp-admin-bar-booster-wrap .bwg-reanalyze-button a{width:152px;height:34px;box-sizing:border-box;color:#fff;background-color:#2160b5;border-radius:4px;text-align:center;float:right}#wp-admin-bar-booster-top-button .bwg-score-info .bwg-reanalyze-button{flex-grow:1}#wp-admin-bar-booster-top-button .bwg-score-info .bwg-last-analyzed p:first-child{margin:0;padding:0;color:#323a45;font-size:10px;line-height:16px;font-weight:700}#wp-admin-bar-booster-top-button .bwg-score-info .bwg-last-analyzed p.bwg-last-analyzed-time{margin:0;padding:0;color:#323a45;font-size:12px;line-height:18px;font-weight:400}#wp-admin-bar-booster-top-button .bwg-score-info .bwg-score-desktop,#wp-admin-bar-booster-top-button .bwg-score-info .bwg-score-mobile{display:flex}#wp-admin-bar-booster-top-button .bwg-score-info .bwg-score-mobile{margin-right:20px}#wp-admin-bar-booster-top-button .bwg-score-info .bwg-score-text{width:106px;text-align:left;font-family:Open Sans;font-weight:100;color:rgba(50,58,69,1)}#wp-admin-bar-booster-top-button .bwg-score-info .bwg-score-text--name{display:block;line-height:16px;font-size:10px;font-weight:800;opacity:1}#wp-admin-bar-booster-top-button .bwg-score-info .bwg-load-text--time{display:block;line-height:18px;font-size:12px;opacity:.7}
|
framework/WDWLibrary.php
CHANGED
@@ -2438,9 +2438,8 @@ class WDWLibrary {
|
|
2438 |
add_action('create_bwg_tag', array('WDWLibrary', 'update_bwg_tag'), 10, 2);
|
2439 |
// Delete bwg_tag.
|
2440 |
add_action('delete_bwg_tag', array('WDWLibrary', 'delete_bwg_tag'), 10, 3);
|
2441 |
-
|
2442 |
if ('bwg_tag' == self::get('taxonomy')) {
|
2443 |
-
//add_action( 'admin_notices', array( 'WDWLibrary', 'topbar' ) );
|
2444 |
}
|
2445 |
}
|
2446 |
|
@@ -3026,28 +3025,6 @@ class WDWLibrary {
|
|
3026 |
echo ob_get_clean();
|
3027 |
}
|
3028 |
|
3029 |
-
/**
|
3030 |
-
* Generate top bar user guide section.
|
3031 |
-
*
|
3032 |
-
* @return string top bar user guide section html.
|
3033 |
-
*/
|
3034 |
-
public static function topbar_upgrade_ask_question() {
|
3035 |
-
$support_forum_link = 'https://wordpress.org/support/plugin/photo-gallery/#new-post';
|
3036 |
-
$premium_link = BWG()->plugin_link . BWG()->utm_source;
|
3037 |
-
wp_enqueue_style(BWG()->prefix . '-roboto');
|
3038 |
-
wp_enqueue_style(BWG()->prefix . '-pricing');
|
3039 |
-
ob_start();
|
3040 |
-
?>
|
3041 |
-
<div class="wd-list-view-header-free-right">
|
3042 |
-
<p class="upgrade-header"><?php _e('Unleash the full benefits & ', 'photo-gallery'); ?></p>
|
3043 |
-
<p class="upgrade-text"><?php _e('features of the Premium Plugin', 'photo-gallery'); ?></p>
|
3044 |
-
<a class="upgrade-button" href="<?php echo esc_url($premium_link); ?>" target="_blank"><?php _e( 'Upgrade Now', BWG()->prefix ); ?></a>
|
3045 |
-
</div>
|
3046 |
-
<a class="wd-list-view-ask-question" href="<?php echo esc_url($support_forum_link); ?>" target="_blank"><?php _e('Ask a question', 'photo-gallery'); ?></a>
|
3047 |
-
<?php
|
3048 |
-
echo ob_get_clean();
|
3049 |
-
}
|
3050 |
-
|
3051 |
/**
|
3052 |
* Generate ask question static fixed button.
|
3053 |
*
|
@@ -3062,7 +3039,6 @@ class WDWLibrary {
|
|
3062 |
echo ob_get_clean();
|
3063 |
}
|
3064 |
|
3065 |
-
// TODO. This function should be replaced with WP functionality in another version. At the moment it is not.
|
3066 |
/**
|
3067 |
* Get privacy_policy_url
|
3068 |
*
|
@@ -3443,5 +3419,16 @@ class WDWLibrary {
|
|
3443 |
|
3444 |
return number_format($number, $decimals, $decPoint, $thousandsSep);
|
3445 |
}
|
3446 |
-
}
|
3447 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2438 |
add_action('create_bwg_tag', array('WDWLibrary', 'update_bwg_tag'), 10, 2);
|
2439 |
// Delete bwg_tag.
|
2440 |
add_action('delete_bwg_tag', array('WDWLibrary', 'delete_bwg_tag'), 10, 3);
|
|
|
2441 |
if ('bwg_tag' == self::get('taxonomy')) {
|
2442 |
+
// add_action( 'admin_notices', array( 'WDWLibrary', 'topbar' ) );
|
2443 |
}
|
2444 |
}
|
2445 |
|
3025 |
echo ob_get_clean();
|
3026 |
}
|
3027 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3028 |
/**
|
3029 |
* Generate ask question static fixed button.
|
3030 |
*
|
3039 |
echo ob_get_clean();
|
3040 |
}
|
3041 |
|
|
|
3042 |
/**
|
3043 |
* Get privacy_policy_url
|
3044 |
*
|
3419 |
|
3420 |
return number_format($number, $decimals, $decPoint, $thousandsSep);
|
3421 |
}
|
|
|
3422 |
|
3423 |
+
/**
|
3424 |
+
* Get images count.
|
3425 |
+
*
|
3426 |
+
* @return int
|
3427 |
+
*/
|
3428 |
+
public static function get_gallery_images_count() {
|
3429 |
+
global $wpdb;
|
3430 |
+
$row = $wpdb->get_col( 'SELECT id AS qty FROM `' . $wpdb->prefix . 'bwg_image`' );
|
3431 |
+
|
3432 |
+
return intval(count($row));
|
3433 |
+
}
|
3434 |
+
}
|
frontend/controllers/controller.php
CHANGED
@@ -333,6 +333,9 @@ class BWGControllerSite {
|
|
333 |
$params['load_more_image_count'] = 1;
|
334 |
}
|
335 |
if ($params['gallery_type'] == 'blog_style') {
|
|
|
|
|
|
|
336 |
$params['image_enable_page'] = $params['blog_style_enable_page'];
|
337 |
$params['images_per_page'] = $params['blog_style_images_per_page'];
|
338 |
$params['load_more_image_count'] = (isset($params['blog_style_load_more_image_count']) && ($params['image_enable_page'] == 2)) ? $params['blog_style_load_more_image_count'] : $params['images_per_page'];
|
333 |
$params['load_more_image_count'] = 1;
|
334 |
}
|
335 |
if ($params['gallery_type'] == 'blog_style') {
|
336 |
+
if ( !BWG()->is_pro ) {
|
337 |
+
$params['popup_enable_comment'] = FALSE;
|
338 |
+
}
|
339 |
$params['image_enable_page'] = $params['blog_style_enable_page'];
|
340 |
$params['images_per_page'] = $params['blog_style_images_per_page'];
|
341 |
$params['load_more_image_count'] = (isset($params['blog_style_load_more_image_count']) && ($params['image_enable_page'] == 2)) ? $params['blog_style_load_more_image_count'] : $params['images_per_page'];
|
frontend/models/BWGModelShare.php
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class BWGModelShare {
|
4 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
5 |
+
// Events //
|
6 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
7 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
+
// Constants //
|
9 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
10 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
11 |
+
// Variables //
|
12 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
13 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
14 |
+
// Constructor & Destructor //
|
15 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
16 |
+
public function __construct() {
|
17 |
+
}
|
18 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
19 |
+
// Public Methods //
|
20 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
21 |
+
|
22 |
+
public function get_image_row_data($image_id) {
|
23 |
+
global $wpdb;
|
24 |
+
$row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_image WHERE published=1 AND id="%d"', $image_id));
|
25 |
+
return $row;
|
26 |
+
}
|
27 |
+
|
28 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
29 |
+
// Getters & Setters //
|
30 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
31 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
32 |
+
// Private Methods //
|
33 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
34 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
35 |
+
// Listeners //
|
36 |
+
////////////////////////////////////////////////////////////////////////////////////////
|
37 |
+
}
|
frontend/views/BWGViewAlbum_masonry_preview.php
ADDED
@@ -0,0 +1,257 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class BWGViewAlbum_masonry_preview extends BWGViewSite {
|
3 |
+
|
4 |
+
private $gallery_view = FALSE;
|
5 |
+
|
6 |
+
public function display($params = array(), $bwg = 0) {
|
7 |
+
require_once BWG()->plugin_dir . '/frontend/views/BWGViewThumbnails_masonry.php';
|
8 |
+
$view_class = 'BWGViewThumbnails_masonry';
|
9 |
+
$this->gallery_view = new $view_class();
|
10 |
+
$theme_row = $params['theme_row'];
|
11 |
+
|
12 |
+
$from = (isset($params['from']) ? esc_html($params['from']) : 0);
|
13 |
+
$breadcrumb_arr = array(
|
14 |
+
0 => array(
|
15 |
+
'id' => $params['album_gallery_id'],
|
16 |
+
'page' => WDWLibrary::get('page_number_' . $bwg, 1, 'intval')
|
17 |
+
)
|
18 |
+
);
|
19 |
+
$breadcrumb = WDWLibrary::get('bwg_album_breadcrumb_' . $bwg);
|
20 |
+
$breadcrumb = !empty($breadcrumb) ? $breadcrumb : json_encode($breadcrumb_arr);
|
21 |
+
$params['breadcrumb_arr'] = json_decode($breadcrumb);
|
22 |
+
/* Set theme parameters for Gallery/Gallery group title/description.*/
|
23 |
+
$theme_row->thumb_gal_title_font_size = $theme_row->album_masonry_gal_title_font_size;
|
24 |
+
$theme_row->thumb_gal_title_font_color = $theme_row->album_masonry_gal_title_font_color;
|
25 |
+
$theme_row->thumb_gal_title_font_style = $theme_row->album_masonry_gal_title_font_style;
|
26 |
+
$theme_row->thumb_gal_title_font_weight = $theme_row->album_masonry_gal_title_font_weight;
|
27 |
+
$theme_row->thumb_gal_title_shadow = $theme_row->album_masonry_gal_title_shadow;
|
28 |
+
$theme_row->thumb_gal_title_margin = $theme_row->album_masonry_gal_title_margin;
|
29 |
+
$theme_row->thumb_gal_title_align = $theme_row->album_masonry_gal_title_align;
|
30 |
+
|
31 |
+
$inline_style = $this->inline_styles($bwg, $theme_row, $params);
|
32 |
+
$lazyload = BWG()->options->lazyload_images;
|
33 |
+
|
34 |
+
if ( !WDWLibrary::elementor_is_active() ) {
|
35 |
+
if ( !$params['ajax'] ) {
|
36 |
+
if ( BWG()->options->use_inline_stiles_and_scripts ) {
|
37 |
+
wp_add_inline_style('bwg_frontend', $inline_style);
|
38 |
+
}
|
39 |
+
else {
|
40 |
+
echo wp_kses('<style id="bwg-style-' . esc_attr($bwg) . '">' . $inline_style . '</style>', array('style' => array('id' => true)));
|
41 |
+
}
|
42 |
+
}
|
43 |
+
}
|
44 |
+
else {
|
45 |
+
echo wp_kses('<style id="bwg-style-' . esc_attr($bwg) . '">' . $inline_style . '</style>', array('style' => array('id' => true)));
|
46 |
+
}
|
47 |
+
ob_start();
|
48 |
+
if ( $params['album_view_type'] != 'gallery' ) {
|
49 |
+
?>
|
50 |
+
<div data-bwg="<?php echo esc_attr($bwg); ?>"
|
51 |
+
data-masonry-type="vertical"
|
52 |
+
data-resizable-thumbnails="<?php echo esc_attr(BWG()->options->resizable_thumbnails); ?>"
|
53 |
+
data-max-count="<?php echo esc_attr($params['masonry_album_column_number']); ?>"
|
54 |
+
data-thumbnail-width="<?php echo esc_attr($params['masonry_album_thumb_width']); ?>"
|
55 |
+
data-thumbnail-padding="<?php echo esc_attr($theme_row->album_masonry_thumb_padding); ?>"
|
56 |
+
data-thumbnail-border="<?php echo esc_attr($theme_row->album_masonry_thumb_border_width); ?>"
|
57 |
+
id="<?php echo esc_attr($params['container_id']); ?>"
|
58 |
+
class="bwg-thumbnails bwg-masonry-album-thumbnails bwg-masonry-thumbnails bwg_masonry_thumbnails_<?php echo esc_attr($bwg); ?> bwg-masonry-vertical bwg-container bwg-border-box bwg-container-<?php echo esc_attr($bwg); ?> bwg-album-thumbnails <?php echo esc_attr($params['album_gallery_div_class']); ?> <?php echo esc_attr($lazyload) ? 'lazy_loader' : ''; ?>">
|
59 |
+
<?php
|
60 |
+
if ( !$params['album_gallery_rows']['page_nav']['total'] ) {
|
61 |
+
echo WDWLibrary::message(__('No results found.', 'photo-gallery'), 'wd_error');
|
62 |
+
}
|
63 |
+
foreach ($params['album_gallery_rows']['rows'] as $row) {
|
64 |
+
$REQUEST_URI = isset($_SERVER['REQUEST_URI']) ? sanitize_url($_SERVER['REQUEST_URI']) : '';
|
65 |
+
$href = esc_url( add_query_arg(array(
|
66 |
+
"type_" . $bwg => $row->def_type,
|
67 |
+
"album_gallery_id_" . $bwg => (($params['album_gallery_id'] != 0) ? $row->alb_gal_id : $row->id),
|
68 |
+
), $REQUEST_URI) );
|
69 |
+
$href = $this->http_strip_query_param($href, 'bwg_search_' . $bwg);
|
70 |
+
$href = $this->http_strip_query_param($href, 'page_number_' . $bwg);
|
71 |
+
$title = '<div class="bwg-title1"><div class="bwg-title2">' . esc_html($row->name) . '</div></div>';
|
72 |
+
$resolution_thumb = $row->resolution_thumb;
|
73 |
+
$image_thumb_width = '';
|
74 |
+
$image_thumb_height = '';
|
75 |
+
if ( $resolution_thumb != "" && strpos($resolution_thumb, 'x') !== FALSE ) {
|
76 |
+
$resolution_th = explode("x", $resolution_thumb);
|
77 |
+
$image_thumb_width = $resolution_th[0];
|
78 |
+
$image_thumb_height = $resolution_th[1];
|
79 |
+
}
|
80 |
+
$enable_seo = (int) BWG()->options->enable_seo;
|
81 |
+
$enable_dynamic_url = (int) BWG()->options->front_ajax;
|
82 |
+
?>
|
83 |
+
<div class="bwg-item">
|
84 |
+
<a class="bwg-a <?php echo esc_html($from) !== "widget" ? 'bwg-album ' : ''; ?>bwg_album_<?php echo esc_attr($bwg); ?>"
|
85 |
+
<?php echo ( (esc_html($enable_seo) || esc_html($enable_dynamic_url)) && $from !== "widget" ? "href='" . esc_url($href) . "'" : ""); ?>
|
86 |
+
<?php echo esc_html($from) === "widget" ? 'href="' . esc_url($row->permalink). '"' : ''; ?>
|
87 |
+
data-container_id="<?php echo esc_attr($params['container_id']); ?>"
|
88 |
+
data-def_type="<?php echo esc_attr($row->def_type); ?>"
|
89 |
+
data-album_gallery_id="<?php echo esc_attr($params['album_gallery_id']); ?>"
|
90 |
+
data-alb_gal_id="<?php echo ((esc_html($params['album_gallery_id']) != 0) ? esc_attr($row->alb_gal_id) : esc_attr($row->id)); ?>"
|
91 |
+
data-title="<?php echo esc_attr($row->name); ?>"
|
92 |
+
data-bwg="<?php echo esc_attr($bwg); ?>">
|
93 |
+
<div class="bwg-item0">
|
94 |
+
<div class="bwg-item1 <?php echo esc_html($theme_row->album_masonry_thumb_hover_effect) == 'zoom' && $params['image_title'] == 'hover' ? 'bwg-zoom-effect' : ''; ?>">
|
95 |
+
<img class="skip-lazy bwg-masonry-thumb bwg_masonry_thumb_<?php echo esc_attr($bwg); ?> <?php if( $lazyload ) { ?> bwg_lazyload lazy_loader<?php } ?>"
|
96 |
+
src="<?php if( !$lazyload ) { echo esc_url($row->preview_image); } else { echo esc_url(BWG()->plugin_url."/images/lazy_placeholder.gif"); } ?>"
|
97 |
+
data-src="<?php echo esc_url($row->preview_image); ?>"
|
98 |
+
data-width="<?php echo esc_attr($image_thumb_width); ?>"
|
99 |
+
data-height="<?php echo esc_attr($image_thumb_height); ?>"
|
100 |
+
alt="<?php echo esc_attr($row->name); ?>"
|
101 |
+
title="<?php echo esc_attr($row->name); ?>" />
|
102 |
+
<div class="<?php echo esc_html($theme_row->album_masonry_thumb_hover_effect) == 'zoom' && esc_html($params['image_title']) == 'hover' ? 'bwg-zoom-effect-overlay' : ''; ?>">
|
103 |
+
<?php if ( $params['image_title'] == 'hover' && $row->name ) { echo esc_html($title); } ?>
|
104 |
+
</div>
|
105 |
+
</div>
|
106 |
+
</div>
|
107 |
+
<?php
|
108 |
+
if ( $params['image_title'] == 'show' && $row->name ) { echo WDWLibrary::strip_tags($title); }
|
109 |
+
if ( BWG()->options->show_masonry_thumb_description && $row->description) {
|
110 |
+
?>
|
111 |
+
<div class="bwg-masonry-thumb-description bwg_masonry_thumb_description_<?php echo esc_attr($bwg); ?>">
|
112 |
+
<span><?php echo WDWLibrary::strip_tags(stripslashes($row->description)); ?></span>
|
113 |
+
</div>
|
114 |
+
<?php
|
115 |
+
}
|
116 |
+
?>
|
117 |
+
</a>
|
118 |
+
</div>
|
119 |
+
<?php
|
120 |
+
}
|
121 |
+
?>
|
122 |
+
</div>
|
123 |
+
<?php
|
124 |
+
}
|
125 |
+
elseif ($params['album_view_type'] == 'gallery') {
|
126 |
+
if ( $this->gallery_view && method_exists($this->gallery_view, 'display') ) {
|
127 |
+
$this->gallery_view->display($params, $bwg, TRUE);
|
128 |
+
}
|
129 |
+
}
|
130 |
+
?>
|
131 |
+
<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); ?>' />
|
132 |
+
<?php
|
133 |
+
$content = ob_get_clean();
|
134 |
+
|
135 |
+
if ( $params['ajax'] ) {/* Ajax response after ajax call for filters and pagination.*/
|
136 |
+
if ( $params['album_view_type'] != 'gallery' ) {
|
137 |
+
parent::ajax_content($params, $bwg, $content);
|
138 |
+
}
|
139 |
+
else {
|
140 |
+
echo $content;
|
141 |
+
}
|
142 |
+
}
|
143 |
+
else {
|
144 |
+
parent::container($params, $bwg, $content);
|
145 |
+
}
|
146 |
+
}
|
147 |
+
|
148 |
+
private function inline_styles($bwg, $theme_row, $params) {
|
149 |
+
ob_start();
|
150 |
+
?>
|
151 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> #bwg_album_masonry_<?php echo esc_attr($bwg); ?>.bwg_masonry_thumbnails_<?php echo esc_attr($bwg); ?> {
|
152 |
+
width: <?php echo esc_html($params['masonry_album_column_number'] * $params['masonry_album_thumb_width'] + ($theme_row->album_masonry_container_margin ? $theme_row->album_masonry_thumb_padding : 0)); ?>px;
|
153 |
+
max-width: 100%;
|
154 |
+
}
|
155 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> #bwg_album_masonry_<?php echo esc_attr($bwg); ?>.bwg-container-<?php echo esc_attr($bwg); ?> .bwg-item1 img {
|
156 |
+
max-height: none;
|
157 |
+
max-width: <?php echo esc_html($params['masonry_album_thumb_width']); ?>px;
|
158 |
+
}
|
159 |
+
@media only screen and (max-width: <?php echo esc_html($params['masonry_album_column_number'] * ($params['masonry_album_thumb_width'] + 2 * ($theme_row->album_masonry_thumb_padding + $theme_row->album_masonry_thumb_border_width))); ?>px) {
|
160 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> #bwg_album_masonry_<?php echo esc_attr($bwg); ?>.bwg_masonry_thumbnails_<?php echo esc_attr($bwg); ?> {
|
161 |
+
width: inherit;
|
162 |
+
}
|
163 |
+
}
|
164 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> #bwg_album_masonry_<?php echo esc_attr($bwg); ?> .bwg_masonry_thumb_<?php echo esc_attr($bwg); ?> {
|
165 |
+
width: <?php echo BWG()->options->resizable_thumbnails ? '100% !important;' : esc_html($params['masonry_album_thumb_width']) . 'px'; ?>;
|
166 |
+
}
|
167 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> #bwg_album_masonry_<?php echo esc_attr($bwg); ?>.bwg-container-<?php echo esc_attr($bwg); ?> .bwg-item {
|
168 |
+
max-width: <?php echo esc_html($params['masonry_album_thumb_width']); ?>px;
|
169 |
+
<?php if ( !BWG()->options->resizable_thumbnails ) { ?>
|
170 |
+
width: <?php echo esc_html($params['masonry_album_thumb_width']); ?>px !important;
|
171 |
+
<?php } ?>
|
172 |
+
}
|
173 |
+
|
174 |
+
<?php if ( $theme_row->album_masonry_thumb_hover_effect == 'zoom' ) { ?>
|
175 |
+
@media only screen and (min-width: 480px) {
|
176 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-masonry-album-thumbnails.bwg-masonry-thumbnails .bwg-item1 img {
|
177 |
+
<?php echo ($theme_row->album_masonry_thumb_transition) ? '-webkit-transition: all .3s; transition: all .3s;' : ''; ?>
|
178 |
+
}
|
179 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-masonry-album-thumbnails.bwg-masonry-thumbnails .bwg-item1 img:hover {
|
180 |
+
-ms-transform: scale(<?php echo esc_html($theme_row->album_masonry_thumb_hover_effect_value); ?>);
|
181 |
+
-webkit-transform: scale(<?php echo esc_html($theme_row->album_masonry_thumb_hover_effect_value); ?>);
|
182 |
+
transform: scale(<?php echo esc_html($theme_row->album_masonry_thumb_hover_effect_value); ?>);
|
183 |
+
}
|
184 |
+
<?php if ( $params['image_title'] == 'hover' ) { ?>
|
185 |
+
.bwg-masonry-album-thumbnails.bwg-masonry-thumbnails .bwg-zoom-effect .bwg-zoom-effect-overlay {
|
186 |
+
<?php $thumb_bg_color = WDWLibrary::spider_hex2rgb( $theme_row->album_masonry_thumb_bg_color ); ?>
|
187 |
+
background-color:rgba(<?php echo esc_html($thumb_bg_color['red'] .','. $thumb_bg_color['green'] . ',' . $thumb_bg_color['blue'] . ', 0.3'); ?>);
|
188 |
+
}
|
189 |
+
.bwg-masonry-album-thumbnails.bwg-masonry-thumbnails .bwg-zoom-effect:hover img {
|
190 |
+
-ms-transform: scale(<?php echo esc_html($theme_row->album_masonry_thumb_hover_effect_value); ?>);
|
191 |
+
-webkit-transform: scale(<?php echo esc_html($theme_row->album_masonry_thumb_hover_effect_value); ?>);
|
192 |
+
transform: scale(<?php echo esc_html($theme_row->album_masonry_thumb_hover_effect_value); ?>);
|
193 |
+
}
|
194 |
+
<?php } ?>
|
195 |
+
}
|
196 |
+
<?php
|
197 |
+
}
|
198 |
+
else {
|
199 |
+
?>
|
200 |
+
@media only screen and (min-width: 480px) {
|
201 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-masonry-album-thumbnails.bwg-masonry-thumbnails .bwg-item0 {
|
202 |
+
<?php echo ($theme_row->album_masonry_thumb_transition) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
|
203 |
+
}
|
204 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-masonry-album-thumbnails.bwg-masonry-thumbnails .bwg-item0:hover {
|
205 |
+
-ms-transform: <?php echo esc_html($theme_row->album_masonry_thumb_hover_effect); ?>(<?php echo esc_html($theme_row->album_masonry_thumb_hover_effect_value); ?>);
|
206 |
+
-webkit-transform: <?php echo esc_html($theme_row->album_masonry_thumb_hover_effect); ?>(<?php echo esc_html($theme_row->album_masonry_thumb_hover_effect_value); ?>);
|
207 |
+
transform: <?php echo esc_html($theme_row->album_masonry_thumb_hover_effect); ?>(<?php echo esc_html($theme_row->album_masonry_thumb_hover_effect_value); ?>);
|
208 |
+
}
|
209 |
+
}
|
210 |
+
<?php
|
211 |
+
}
|
212 |
+
?>
|
213 |
+
<?php
|
214 |
+
|
215 |
+
/* Add gallery styles, if gallery type exist.*/
|
216 |
+
if ( $this->gallery_view && method_exists($this->gallery_view, 'inline_styles') ) {
|
217 |
+
/* Set parameters for gallery view from album shortcode.*/
|
218 |
+
$params['thumb_width'] = $params['masonry_album_image_thumb_width'];
|
219 |
+
$params['image_column_number'] = $params['masonry_album_image_column_number'];
|
220 |
+
$params['images_per_page'] = $params['masonry_album_images_per_page'];
|
221 |
+
$params['image_enable_page'] = $params['masonry_album_enable_page'];
|
222 |
+
$params['show_masonry_thumb_description'] = BWG()->options->show_masonry_thumb_description;
|
223 |
+
$params['masonry_hor_ver'] = BWG()->options->masonry;
|
224 |
+
|
225 |
+
/* Set theme parameters for gallery view.*/
|
226 |
+
$theme_row->masonry_thumb_padding = $theme_row->album_masonry_thumb_padding;
|
227 |
+
$theme_row->masonry_container_margin = $theme_row->album_masonry_container_margin;
|
228 |
+
$theme_row->masonry_thumb_border_width = $theme_row->album_masonry_thumb_border_width;
|
229 |
+
$theme_row->masonry_thumb_border_style = $theme_row->album_masonry_thumb_border_style;
|
230 |
+
$theme_row->masonry_thumb_border_color = $theme_row->album_masonry_thumb_border_color;
|
231 |
+
$theme_row->masonry_thumb_border_radius = $theme_row->album_masonry_thumb_border_radius;
|
232 |
+
|
233 |
+
$theme_row->masonry_thumb_bg_color = $theme_row->album_masonry_thumb_bg_color;
|
234 |
+
$theme_row->masonry_thumb_transparent = $theme_row->album_masonry_thumb_transparent;
|
235 |
+
$theme_row->masonry_thumbs_bg_color = $theme_row->album_masonry_thumbs_bg_color;
|
236 |
+
$theme_row->masonry_thumb_bg_transparent = $theme_row->album_masonry_thumb_bg_transparent;
|
237 |
+
$theme_row->masonry_thumb_align = $theme_row->album_masonry_thumb_align;
|
238 |
+
|
239 |
+
$theme_row->masonry_thumb_title_font_size = $theme_row->album_masonry_title_font_size;
|
240 |
+
$theme_row->masonry_thumb_title_font_color = $theme_row->album_masonry_title_font_color;
|
241 |
+
$theme_row->masonry_thumb_title_font_color_hover = $theme_row->album_masonry_thumb_title_font_color_hover;
|
242 |
+
$theme_row->masonry_thumb_title_font_style = $theme_row->album_masonry_title_font_style;
|
243 |
+
$theme_row->masonry_thumb_title_font_weight = $theme_row->album_masonry_title_font_weight;
|
244 |
+
$theme_row->masonry_thumb_gal_title_font_size = $theme_row->album_masonry_gal_title_font_size;
|
245 |
+
$theme_row->masonry_thumb_gal_title_font_color = $theme_row->album_masonry_gal_title_font_color;
|
246 |
+
$theme_row->masonry_thumb_gal_title_font_style = $theme_row->album_masonry_gal_title_font_style;
|
247 |
+
$theme_row->masonry_thumb_gal_title_font_weight = $theme_row->album_masonry_gal_title_font_weight;
|
248 |
+
$theme_row->masonry_thumb_gal_title_shadow = $theme_row->album_masonry_gal_title_shadow;
|
249 |
+
$theme_row->masonry_thumb_gal_title_margin = $theme_row->album_masonry_gal_title_margin;
|
250 |
+
$theme_row->masonry_thumb_gal_title_align = $theme_row->album_masonry_gal_title_align;
|
251 |
+
|
252 |
+
echo $this->gallery_view->inline_styles($bwg, $theme_row, $params);
|
253 |
+
}
|
254 |
+
|
255 |
+
return ob_get_clean();
|
256 |
+
}
|
257 |
+
}
|
frontend/views/BWGViewBlog_style.php
ADDED
@@ -0,0 +1,506 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class BWGViewBlog_style extends BWGViewSite {
|
3 |
+
|
4 |
+
public function display($params = array(), $bwg = 0, $ajax = FALSE) {
|
5 |
+
$HTTP_HOST = isset($_SERVER['HTTP_HOST']) ? sanitize_url($_SERVER['HTTP_HOST']) : '';
|
6 |
+
$REQUEST_URI = isset($_SERVER['REQUEST_URI']) ? sanitize_url($_SERVER['REQUEST_URI']) : '';
|
7 |
+
$current_url = esc_url( (is_ssl() ? 'https://' : 'http://') . $HTTP_HOST . $REQUEST_URI );
|
8 |
+
$theme_row = $params['theme_row'];
|
9 |
+
$image_rows = $params['image_rows'];
|
10 |
+
$image_rows = $image_rows['images'];
|
11 |
+
$lazyload = BWG()->options->lazyload_images;
|
12 |
+
|
13 |
+
$image_title = $params['blog_style_title_enable'];
|
14 |
+
|
15 |
+
if ($params['watermark_type'] == 'none') {
|
16 |
+
$show_watermark = FALSE;
|
17 |
+
$text_align = '';
|
18 |
+
$vertical_align = '';
|
19 |
+
$params['watermark_width'] = '';
|
20 |
+
$params['watermark_opacity'] = '';
|
21 |
+
$watermark_image_or_text = '';
|
22 |
+
}
|
23 |
+
if ($params['watermark_type'] != 'none') {
|
24 |
+
$watermark_position =(($params['watermark_position'] != 'undefined') ? $params['watermark_position'] : 'top-center');
|
25 |
+
$position = explode('-', $watermark_position);
|
26 |
+
$vertical_align = $position[0];
|
27 |
+
$text_align = $position[1];
|
28 |
+
}
|
29 |
+
if ($params['watermark_type'] == 'text') {
|
30 |
+
$show_watermark = TRUE;
|
31 |
+
$params['watermark_width'] = '';
|
32 |
+
$watermark_image_or_text = esc_html($params['watermark_text']);
|
33 |
+
$watermark_a = 'bwg_watermark_text_' . $bwg;
|
34 |
+
$watermark_div = 'text_';
|
35 |
+
}
|
36 |
+
elseif ($params['watermark_type'] == 'image') {
|
37 |
+
$show_watermark = TRUE;
|
38 |
+
$watermark_image_or_text = '<img class="bwg_blog_style_watermark_img_' . esc_attr($bwg) . '" src="' . esc_url(urldecode($params['watermark_url'])) . '" >';
|
39 |
+
$watermark_a = '';
|
40 |
+
$watermark_div = '';
|
41 |
+
}
|
42 |
+
|
43 |
+
$inline_style = $this->inline_styles($bwg, $theme_row, $params, $show_watermark, $text_align, $vertical_align, $watermark_image_or_text);
|
44 |
+
if ( !WDWLibrary::elementor_is_active() ) {
|
45 |
+
if ( !$params['ajax'] ) {
|
46 |
+
if ( BWG()->options->use_inline_stiles_and_scripts ) {
|
47 |
+
wp_add_inline_style('bwg_frontend', $inline_style);
|
48 |
+
}
|
49 |
+
else {
|
50 |
+
echo wp_kses('<style id="bwg-style-' . esc_attr($bwg) . '">' . $inline_style . '</style>', array('style' => array('id' => true)));
|
51 |
+
}
|
52 |
+
} else {
|
53 |
+
echo wp_kses('<style id="bwg-style-' . esc_attr($bwg) . '">' . $inline_style . '</style>', array('style' => array('id' => true)));
|
54 |
+
}
|
55 |
+
}
|
56 |
+
else {
|
57 |
+
echo wp_kses('<style id="bwg-style-' . esc_attr($bwg) . '">' . $inline_style . '</style>', array('style' => array('id' => true)));
|
58 |
+
}
|
59 |
+
ob_start();
|
60 |
+
?>
|
61 |
+
<div id="bwg_<?php echo esc_attr($params['gallery_type'].'_'.$bwg) ?>" class="bwg-container-<?php echo esc_attr($bwg); ?> blog_style_images_conteiner_<?php echo esc_attr($bwg); ?> bwg-container"
|
62 |
+
data-lightbox-url="<?php echo esc_url(addslashes(add_query_arg($params['params_array'], admin_url('admin-ajax.php')))); ?>">
|
63 |
+
<div class="blog_style_images_<?php echo esc_attr($bwg); ?>" id="blog_style_images_<?php echo esc_attr($bwg); ?>" >
|
64 |
+
<?php
|
65 |
+
foreach ($image_rows as $image_row) {
|
66 |
+
$params['image_id'] = WDWLibrary::get('image_id', $image_row->id, 'intval');
|
67 |
+
$is_embed = preg_match('/EMBED/',$image_row->filetype)==1 ? true :false;
|
68 |
+
$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));
|
69 |
+
$is_embed_instagram_post = preg_match('/INSTAGRAM_POST/',$image_row->filetype)==1 ? true :false;
|
70 |
+
?>
|
71 |
+
<div class="blog_style_image_buttons_conteiner_<?php echo esc_attr($bwg); ?>">
|
72 |
+
<div class="blog_style_image_buttons_<?php echo esc_attr($bwg);?>">
|
73 |
+
<div class="bwg_blog_style_image_<?php echo esc_attr($bwg); ?>" >
|
74 |
+
<?php
|
75 |
+
if ($show_watermark) {
|
76 |
+
?>
|
77 |
+
<div class="bwg_blog_style_image_contain_<?php echo esc_attr($bwg); ?>" id="bwg_blog_style_image_contain_<?php echo esc_attr($image_row->id) ?>">
|
78 |
+
<div class="bwg_blog_style_watermark_contain_<?php echo esc_attr($bwg); ?>">
|
79 |
+
<div class="bwg_blog_style_watermark_cont_<?php echo esc_attr($bwg); ?>">
|
80 |
+
<div class="bwg_blog_style_watermark_<?php echo esc_attr($watermark_div).esc_attr($bwg) ?>">
|
81 |
+
<a class="bwg_none_selectable <?php echo esc_attr($watermark_a); ?>" id="watermark_a<?php echo esc_attr($image_row->id); ?>" href="<?php echo esc_url(urldecode($params['watermark_link'])); ?>" target="_blank">
|
82 |
+
<?php echo $watermark_image_or_text ?>
|
83 |
+
</a>
|
84 |
+
</div>
|
85 |
+
</div>
|
86 |
+
</div>
|
87 |
+
</div>
|
88 |
+
<?php
|
89 |
+
}
|
90 |
+
if ( !$is_embed ) {
|
91 |
+
?>
|
92 |
+
<a style="position:relative;" <?php echo ($params['thumb_click_action'] == 'open_lightbox' ? (' class="bwg-a bwg_lightbox_' . esc_attr($bwg) . '" 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' : '') . '"' : ''))) ?>>
|
93 |
+
<img class="skip-lazy bwg_blog_style_img_<?php echo esc_attr($bwg); ?> <?php if( $lazyload ) { ?> bwg_lazyload lazy_loader<?php } ?>"
|
94 |
+
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"); } ?>"
|
95 |
+
data-src="<?php echo esc_url(BWG()->upload_url . $image_row->image_url); ?>"
|
96 |
+
alt="<?php echo esc_attr($image_row->alt); ?>"
|
97 |
+
title="<?php echo esc_attr($image_row->alt); ?>" />
|
98 |
+
</a>
|
99 |
+
<?php
|
100 |
+
}
|
101 |
+
else /*$is_embed*/
|
102 |
+
{
|
103 |
+
if($is_embed_16x9) {
|
104 |
+
WDWLibraryEmbed::display_embed($image_row->filetype, $image_row->image_url, $image_row->filename, array('class' => 'bwg_embed_frame_16x9_' . $bwg, 'width' => $params['blog_style_width'], 'height' => $params['blog_style_width'] * 0.5625, 'frameborder' => "0", 'allowfullscreen' => "allowfullscreen", 'style' => "position: relative; margin:0;"));
|
105 |
+
}
|
106 |
+
else if($is_embed_instagram_post) {
|
107 |
+
$instagram_post_width = $params['blog_style_width'];
|
108 |
+
$instagram_post_height = $params['blog_style_width'];
|
109 |
+
$image_resolution = explode(' x ', $image_row->resolution);
|
110 |
+
if (is_array($image_resolution)) {
|
111 |
+
$instagram_post_width = $image_resolution[0];
|
112 |
+
$instagram_post_height = explode(' ', $image_resolution[1]);
|
113 |
+
$instagram_post_height = $instagram_post_height[0];
|
114 |
+
}
|
115 |
+
WDWLibraryEmbed::display_embed($image_row->filetype, $image_row->image_url, $image_row->filename, array('class' => "bwg_embed_frame_instapost_" . $bwg, 'data-width' => $instagram_post_width, 'data-height' => $instagram_post_height, 'frameborder' => "0", 'allowfullscreen' => "allowfullscreen", 'style' => "position: relative; margin:0;"));
|
116 |
+
}
|
117 |
+
else {/*for instagram image, video and flickr enable lightbox onclick*/
|
118 |
+
?>
|
119 |
+
<a style="position:relative;" <?php echo ($params['thumb_click_action'] == 'open_lightbox' ? (' class="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' : '') . '"' : '')) ?>>
|
120 |
+
<?php
|
121 |
+
WDWLibraryEmbed::display_embed($image_row->filetype, $image_row->image_url, $image_row->filename, array('class' => 'bwg_embed_frame_' . $bwg,'width'=>$params['blog_style_width'], 'height'=>'inherit !important', 'frameborder'=>"0", 'allowfullscreen'=>"allowfullscreen", 'style'=>"position: relative; margin:0;"));
|
122 |
+
?>
|
123 |
+
</a>
|
124 |
+
<?php
|
125 |
+
}
|
126 |
+
}
|
127 |
+
?>
|
128 |
+
</div>
|
129 |
+
</div>
|
130 |
+
<div class="bwg_blog_style_share_buttons_image_alt<?php echo esc_attr($bwg); ?>">
|
131 |
+
<?php
|
132 |
+
if ($image_title) {
|
133 |
+
?>
|
134 |
+
<div class="bwg_image_alt_<?php echo esc_attr($bwg); ?>" id="alt<?php echo esc_attr($image_row->id); ?>">
|
135 |
+
<?php echo html_entity_decode($image_row->alt); ?>
|
136 |
+
</div>
|
137 |
+
<?php
|
138 |
+
}
|
139 |
+
if (($params['popup_enable_comment'] or $params['popup_enable_facebook'] or $params['popup_enable_twitter'] or $params['popup_enable_pinterest'] or $params['popup_enable_tumblr']) and ($params['popup_enable_ctrl_btn'])) {
|
140 |
+
$share_url = add_query_arg(array('curr_url' => urlencode($current_url), 'image_id' => $image_row->id), WDWLibrary::get_share_page()) . '#bwg' . $params['gallery_id'] . '/' . $image_row->id;
|
141 |
+
$share_image_url = str_replace('%252F', '%2F', urlencode($is_embed ? $image_row->thumb_url : BWG()->upload_url . rawurlencode($image_row->image_url_raw)));
|
142 |
+
?>
|
143 |
+
<div id="bwg_blog_style_share_buttons_<?php echo esc_attr($image_row->id); ?>" class="bwg_blog_style_share_buttons_<?php echo esc_attr($bwg); ?>">
|
144 |
+
<?php
|
145 |
+
if ($params['popup_enable_comment']) {
|
146 |
+
?>
|
147 |
+
<a onclick="jQuery('#bwg_blog_style_share_buttons_<?php echo esc_attr($image_row->id); ?>').attr('data-open-comment', 1); bwg_gallery_box(<?php echo esc_attr($image_row->id); ?>, jQuery('.blog_style_image_buttons_conteiner_<?php echo esc_attr($bwg); ?>').closest('.bwg_container')); return false;" href="#">
|
148 |
+
<i title="<?php echo __('Show comments', 'photo-gallery'); ?>" class="bwg-icon-comment-square bwg_comment"></i>
|
149 |
+
</a>
|
150 |
+
<?php
|
151 |
+
}
|
152 |
+
if ($params['popup_enable_facebook']) {
|
153 |
+
?>
|
154 |
+
<a id="bwg_facebook_a_<?php echo esc_attr($image_row->id); ?>" href="https://www.facebook.com/sharer/sharer.php?u=<?php echo urlencode($share_url); ?>" target="_blank" title="<?php echo __('Share on Facebook', 'photo-gallery'); ?>">
|
155 |
+
<i title="<?php echo __('Share on Facebook', 'photo-gallery'); ?>" class="bwg-icon-facebook-square bwg_facebook"></i>
|
156 |
+
</a>
|
157 |
+
<?php
|
158 |
+
}
|
159 |
+
if ($params['popup_enable_twitter']) {
|
160 |
+
?>
|
161 |
+
<a href="https://twitter.com/intent/tweet?url=<?php echo urlencode($current_url . '#bwg' . $params['gallery_id'] . '/' . $image_row->id); ?>" target="_blank" title="<?php echo __('Share on Twitter', 'photo-gallery'); ?>">
|
162 |
+
<i title="<?php echo __('Share on Twitter', 'photo-gallery'); ?>" class="bwg-icon-twitter-square bwg_twitter"></i>
|
163 |
+
</a>
|
164 |
+
<?php
|
165 |
+
}
|
166 |
+
if ($params['popup_enable_pinterest']) {
|
167 |
+
?>
|
168 |
+
<a href="http://pinterest.com/pin/create/button/?s=100&url=<?php echo urlencode($share_url); ?>&media=<?php echo $share_image_url; ?>&description=<?php echo $image_row->alt . '%0A' . urlencode($image_row->description); ?>" target="_blank" title="<?php echo __('Share on Pinterest', 'photo-gallery'); ?>">
|
169 |
+
<i title="<?php echo __('Share on Pinterest', 'photo-gallery'); ?>" class="bwg-icon-pinterest-square bwg_ctrl_btn bwg_pinterest"></i>
|
170 |
+
</a>
|
171 |
+
<?php
|
172 |
+
}
|
173 |
+
if ($params['popup_enable_tumblr']) {
|
174 |
+
?>
|
175 |
+
<a href="https://www.tumblr.com/share/photo?source=<?php echo $share_image_url; ?>&caption=<?php echo urlencode($image_row->alt); ?>&clickthru=<?php echo urlencode($share_url); ?>" target="_blank" title="<?php echo __('Share on Tumblr', 'photo-gallery'); ?>">
|
176 |
+
<i title="<?php echo __('Share on Tumblr', 'photo-gallery'); ?>" class="bwg-icon-tumblr-square bwg_ctrl_btn bwg_tumblr"></i>
|
177 |
+
</a>
|
178 |
+
<?php
|
179 |
+
}
|
180 |
+
if ($params['popup_enable_ecommerce'] && $image_row->pricelist_id) {
|
181 |
+
?>
|
182 |
+
<a href="javascript:bwg_gallery_box(<?php echo esc_attr($image_row->id); ?>, jQuery('.blog_style_image_buttons_conteiner_<?php echo esc_attr($bwg); ?>' ).closest( '.bwg_container' ), true);">
|
183 |
+
<i title="<?php echo __('Show ecommerce', 'photo-gallery'); ?>" class="bwg-icon-shopping-cart bwg_ecommerce"></i>
|
184 |
+
</a>
|
185 |
+
<?php
|
186 |
+
}
|
187 |
+
?>
|
188 |
+
</div>
|
189 |
+
<?php
|
190 |
+
}
|
191 |
+
?>
|
192 |
+
</div>
|
193 |
+
<?php
|
194 |
+
if ($params['blog_style_description_enable']) {
|
195 |
+
?>
|
196 |
+
<div class="bwg_blog_style_share_buttons_image_alt<?php echo esc_attr($bwg); ?>">
|
197 |
+
<div class="bwg_image_alt_<?php echo esc_attr($bwg); ?>" id="desc<?php echo esc_attr($image_row->id); ?>">
|
198 |
+
<?php echo html_entity_decode($image_row->description); ?>
|
199 |
+
</div>
|
200 |
+
</div>
|
201 |
+
<?php
|
202 |
+
}
|
203 |
+
?>
|
204 |
+
</div>
|
205 |
+
<?php
|
206 |
+
}
|
207 |
+
?>
|
208 |
+
</div>
|
209 |
+
</div>
|
210 |
+
<?php
|
211 |
+
$content = ob_get_clean();
|
212 |
+
|
213 |
+
/* Set theme parameters for Gallery/Gallery group title/description.*/
|
214 |
+
$theme_row->thumb_gal_title_font_size = $theme_row->blog_style_gal_title_font_size;
|
215 |
+
$theme_row->thumb_gal_title_font_color = $theme_row->blog_style_gal_title_font_color;
|
216 |
+
$theme_row->thumb_gal_title_font_style = $theme_row->blog_style_gal_title_font_style;
|
217 |
+
$theme_row->thumb_gal_title_font_weight = $theme_row->blog_style_gal_title_font_weight;
|
218 |
+
$theme_row->thumb_gal_title_shadow = $theme_row->blog_style_gal_title_shadow;
|
219 |
+
$theme_row->thumb_gal_title_margin = $theme_row->blog_style_gal_title_margin;
|
220 |
+
$theme_row->thumb_gal_title_align = $theme_row->blog_style_gal_title_align;
|
221 |
+
|
222 |
+
if ( $ajax ) { /* Ajax response after ajax call for filters and pagination.*/
|
223 |
+
parent::ajax_content($params, $bwg, $content);
|
224 |
+
}
|
225 |
+
else {
|
226 |
+
parent::container($params, $bwg, $content);
|
227 |
+
}
|
228 |
+
}
|
229 |
+
|
230 |
+
public function inline_styles($bwg, $theme_row, $params, $show_watermark = FALSE, $text_align = '', $vertical_align = '', $watermark_image_or_text = '') {
|
231 |
+
ob_start();
|
232 |
+
$rgb_page_nav_font_color = WDWLibrary::spider_hex2rgb($theme_row->page_nav_font_color);
|
233 |
+
$bwg_blog_style_image = WDWLibrary::spider_hex2rgb($theme_row->blog_style_bg_color);
|
234 |
+
$blog_style_share_buttons_bg_color = WDWLibrary::spider_hex2rgb($theme_row->blog_style_share_buttons_bg_color);
|
235 |
+
?>
|
236 |
+
.bwg-container {
|
237 |
+
<?php
|
238 |
+
if ( $theme_row->blog_style_align == 'center' ) { ?>
|
239 |
+
justify-content: center;
|
240 |
+
<?php
|
241 |
+
}
|
242 |
+
elseif ( $theme_row->blog_style_align == 'left') { ?>
|
243 |
+
justify-content: flex-start;
|
244 |
+
<?php
|
245 |
+
}
|
246 |
+
else { ?>
|
247 |
+
justify-content: flex-end;
|
248 |
+
<?php } ?>
|
249 |
+
}
|
250 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .blog_style_images_conteiner_<?php echo esc_attr($bwg); ?>{
|
251 |
+
background-color: rgba(0, 0, 0, 0);
|
252 |
+
text-align: center;
|
253 |
+
width: 100%;
|
254 |
+
position: relative;
|
255 |
+
}
|
256 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .blog_style_images_<?php echo esc_attr($bwg); ?> {
|
257 |
+
display: inline-block;
|
258 |
+
-moz-box-sizing: border-box;
|
259 |
+
box-sizing: border-box;
|
260 |
+
font-size: 0;
|
261 |
+
text-align: center;
|
262 |
+
max-width: 100%;
|
263 |
+
width: <?php echo esc_html($params['blog_style_width']); ?>px;
|
264 |
+
}
|
265 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .blog_style_image_buttons_conteiner_<?php echo esc_attr($bwg); ?> {
|
266 |
+
text-align: <?php echo esc_html($theme_row->blog_style_align); ?>;
|
267 |
+
}
|
268 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .blog_style_image_buttons_<?php echo esc_attr($bwg); ?> {
|
269 |
+
text-align: center;
|
270 |
+
/*display: inline-block;*/
|
271 |
+
}
|
272 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_blog_style_image_<?php echo esc_attr($bwg); ?> {
|
273 |
+
background-color: rgba(<?php echo esc_html($bwg_blog_style_image['red']); ?>, <?php echo esc_html($bwg_blog_style_image['green']); ?>, <?php echo esc_html($bwg_blog_style_image['blue']); ?>, <?php echo number_format($theme_row->blog_style_transparent / 100, 2, ".", ""); ?>);
|
274 |
+
text-align: center;
|
275 |
+
/*display: inline-block;*/
|
276 |
+
vertical-align: middle;
|
277 |
+
margin: <?php echo esc_html($theme_row->blog_style_margin); ?>;
|
278 |
+
padding: <?php echo esc_html($theme_row->blog_style_padding); ?>;
|
279 |
+
border-radius: <?php echo esc_html($theme_row->blog_style_border_radius); ?>;
|
280 |
+
border: <?php echo esc_html($theme_row->blog_style_border_width); ?>px <?php echo esc_html($theme_row->blog_style_border_style); ?> #<?php echo esc_html($theme_row->blog_style_border_color); ?>;
|
281 |
+
box-shadow: <?php echo esc_html($theme_row->blog_style_box_shadow); ?>;
|
282 |
+
position: relative;
|
283 |
+
}
|
284 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_image_alt_<?php echo esc_attr($bwg); ?> {
|
285 |
+
display: table-cell;
|
286 |
+
width: 50%;
|
287 |
+
text-align: <?php if (!(($params['popup_enable_comment'] or $params['popup_enable_facebook'] or $params['popup_enable_twitter']) and ($params['popup_enable_ctrl_btn'])) and ($params['blog_style_title_enable']) ) echo esc_html($theme_row->blog_style_share_buttons_align); else echo "left"; ?>;
|
288 |
+
font-size: <?php echo esc_html($theme_row->blog_style_img_font_size); ?>px;
|
289 |
+
font-family: <?php echo esc_html($theme_row->blog_style_img_font_family); ?>;
|
290 |
+
color: #<?php echo esc_html($theme_row->blog_style_img_font_color); ?>;
|
291 |
+
padding-left: 8px;
|
292 |
+
word-wrap: break-word;
|
293 |
+
word-break: break-word;
|
294 |
+
vertical-align: middle;
|
295 |
+
}
|
296 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_blog_style_img_<?php echo esc_attr($bwg); ?> {
|
297 |
+
padding: 0 !important;
|
298 |
+
max-width: 100% !important;
|
299 |
+
height: inherit !important;
|
300 |
+
width: 100%;
|
301 |
+
}
|
302 |
+
/*pagination styles*/
|
303 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .tablenav-pages_<?php echo esc_attr($bwg); ?> {
|
304 |
+
text-align: <?php echo esc_html($theme_row->page_nav_align); ?>;
|
305 |
+
font-size: <?php echo esc_html($theme_row->page_nav_font_size); ?>px;
|
306 |
+
font-family: <?php echo esc_html($theme_row->page_nav_font_style); ?>;
|
307 |
+
font-weight: <?php echo esc_html($theme_row->page_nav_font_weight); ?>;
|
308 |
+
color: #<?php echo esc_html($theme_row->page_nav_font_color); ?>;
|
309 |
+
margin: 6px 0 4px;
|
310 |
+
display: block;
|
311 |
+
height: 30px;
|
312 |
+
line-height: 30px;
|
313 |
+
}
|
314 |
+
@media only screen and (max-width : 320px) {
|
315 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .displaying-num_<?php echo esc_attr($bwg); ?> {
|
316 |
+
display: none;
|
317 |
+
}
|
318 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_image_alt_<?php echo esc_attr($bwg); ?>{
|
319 |
+
display: none;
|
320 |
+
}
|
321 |
+
<?php
|
322 |
+
if ($show_watermark && ($params['watermark_type'] == 'text' ? TRUE : FALSE)) { ?>
|
323 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_watermark_text_<?php echo esc_attr($bwg); ?>,
|
324 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_watermark_text_<?php echo esc_attr($bwg); ?>:hover {
|
325 |
+
font-size:10px !important;
|
326 |
+
text-decoration: none;
|
327 |
+
margin: 4px;
|
328 |
+
font-family: <?php echo esc_html($params['watermark_font']); ?>;
|
329 |
+
color: #<?php echo esc_html($params['watermark_color']); ?> !important;
|
330 |
+
<?php if( !empty($params['watermark_opacity'])) { ?>
|
331 |
+
opacity: <?php echo number_format($params['watermark_opacity'] / 100, 2, ".", ""); ?>;
|
332 |
+
<?php } ?>
|
333 |
+
text-decoration: none;
|
334 |
+
position: relative;
|
335 |
+
z-index: 10141;
|
336 |
+
}
|
337 |
+
<?php } ?>
|
338 |
+
}
|
339 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .displaying-num_<?php echo esc_attr($bwg); ?> {
|
340 |
+
font-size: <?php echo esc_html($theme_row->page_nav_font_size); ?>px;
|
341 |
+
font-family: <?php echo esc_html($theme_row->page_nav_font_style); ?>;
|
342 |
+
font-weight: <?php echo esc_html($theme_row->page_nav_font_weight); ?>;
|
343 |
+
color: #<?php echo esc_html($theme_row->page_nav_font_color); ?>;
|
344 |
+
margin-right: 10px;
|
345 |
+
vertical-align: middle;
|
346 |
+
}
|
347 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .paging-input_<?php echo esc_attr($bwg); ?> {
|
348 |
+
font-size: <?php echo esc_html($theme_row->page_nav_font_size); ?>px;
|
349 |
+
font-family: <?php echo esc_html($theme_row->page_nav_font_style); ?>;
|
350 |
+
font-weight: <?php echo esc_html($theme_row->page_nav_font_weight); ?>;
|
351 |
+
color: #<?php echo esc_html($theme_row->page_nav_font_color); ?>;
|
352 |
+
vertical-align: middle;
|
353 |
+
}
|
354 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .tablenav-pages_<?php echo esc_attr($bwg); ?> a.disabled,
|
355 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .tablenav-pages_<?php echo esc_attr($bwg); ?> a.disabled:hover,
|
356 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .tablenav-pages_<?php echo esc_attr($bwg); ?> a.disabled:focus {
|
357 |
+
cursor: default;
|
358 |
+
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);
|
359 |
+
}
|
360 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .tablenav-pages_<?php echo esc_attr($bwg); ?> a {
|
361 |
+
cursor: pointer;
|
362 |
+
font-size: <?php echo esc_html($theme_row->page_nav_font_size); ?>px;
|
363 |
+
font-family: <?php echo esc_html($theme_row->page_nav_font_style); ?>;
|
364 |
+
font-weight: <?php echo esc_html($theme_row->page_nav_font_weight); ?>;
|
365 |
+
color: #<?php echo esc_html($theme_row->page_nav_font_color); ?>;
|
366 |
+
text-decoration: none;
|
367 |
+
padding: <?php echo esc_html($theme_row->page_nav_padding); ?>;
|
368 |
+
margin: <?php echo esc_html($theme_row->page_nav_margin); ?>;
|
369 |
+
border-radius: <?php echo esc_html($theme_row->page_nav_border_radius); ?>;
|
370 |
+
border-style: <?php echo esc_html($theme_row->page_nav_border_style); ?>;
|
371 |
+
border-width: <?php echo esc_html($theme_row->page_nav_border_width); ?>px;
|
372 |
+
border-color: #<?php echo esc_html($theme_row->page_nav_border_color); ?>;
|
373 |
+
background-color: #<?php echo esc_html($theme_row->page_nav_button_bg_color); ?>;
|
374 |
+
opacity: <?php echo number_format($theme_row->page_nav_button_bg_transparent / 100, 2, ".", ""); ?>;
|
375 |
+
box-shadow: <?php echo esc_html($theme_row->page_nav_box_shadow); ?>;
|
376 |
+
<?php echo ($theme_row->page_nav_button_transition ) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
|
377 |
+
}
|
378 |
+
/*Share button styles*/
|
379 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_blog_style_share_buttons_image_alt<?php echo esc_attr($bwg); ?> {
|
380 |
+
display: table;
|
381 |
+
clear: both;
|
382 |
+
margin: <?php echo esc_html($theme_row->blog_style_share_buttons_margin); ?>;
|
383 |
+
text-align: center;
|
384 |
+
width: 100%;
|
385 |
+
border:<?php echo esc_html($theme_row->blog_style_share_buttons_border_width); ?>px <?php echo esc_html($theme_row->blog_style_share_buttons_border_style); ?> #<?php echo esc_html($theme_row->blog_style_share_buttons_border_color); ?>;
|
386 |
+
border-radius: <?php echo esc_html($theme_row->blog_style_share_buttons_border_radius); ?>;
|
387 |
+
background-color: rgba(<?php echo esc_html($blog_style_share_buttons_bg_color['red']); ?>, <?php echo esc_html($blog_style_share_buttons_bg_color['green']); ?>, <?php echo esc_html($blog_style_share_buttons_bg_color['blue']); ?>, <?php echo number_format($theme_row->blog_style_share_buttons_bg_transparent / 100, 2, ".", ""); ?>);
|
388 |
+
}
|
389 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_blog_style_share_buttons_<?php echo esc_attr($bwg); ?> {
|
390 |
+
display: table-cell;
|
391 |
+
text-align: <?php if ((($params['popup_enable_comment'] or $params['popup_enable_facebook'] or $params['popup_enable_twitter']) and ($params['popup_enable_ctrl_btn'])) and (!($params['blog_style_title_enable'])) ) echo esc_html($theme_row->blog_style_share_buttons_align); else echo "right"; ?>;
|
392 |
+
width: 50%;
|
393 |
+
color: #<?php echo esc_html($theme_row->blog_style_share_buttons_color); ?>;
|
394 |
+
font-size: <?php echo esc_html($theme_row->blog_style_share_buttons_font_size); ?>px;
|
395 |
+
vertical-align:middle;
|
396 |
+
}
|
397 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_blog_style_share_buttons_<?php echo esc_attr($bwg); ?> a,
|
398 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_blog_style_share_buttons_<?php echo esc_attr($bwg); ?> a:hover {
|
399 |
+
color: #<?php echo esc_html($theme_row->blog_style_share_buttons_color); ?>;
|
400 |
+
font-size: <?php echo esc_html($theme_row->blog_style_share_buttons_font_size); ?>px;
|
401 |
+
margin: 0 5px;
|
402 |
+
text-decoration: none;
|
403 |
+
vertical-align: middle;
|
404 |
+
font-family: none;
|
405 |
+
}
|
406 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> [class^="bwg-icon-"],
|
407 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> [class*=" bwg-icon-"] {
|
408 |
+
vertical-align: baseline;
|
409 |
+
}
|
410 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_facebook:hover {
|
411 |
+
color: #3B5998;
|
412 |
+
}
|
413 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_twitter:hover {
|
414 |
+
color: #4099FB;
|
415 |
+
}
|
416 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_pinterest:hover {
|
417 |
+
color: #cb2027;
|
418 |
+
}
|
419 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_tumblr:hover {
|
420 |
+
color: #2F5070;
|
421 |
+
}
|
422 |
+
/*watermark*/
|
423 |
+
<?php
|
424 |
+
if ($show_watermark && $watermark_image_or_text) { ?>
|
425 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_watermark_text_<?php echo esc_attr($bwg); ?>,
|
426 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_watermark_text_<?php echo esc_attr($bwg); ?>:hover {
|
427 |
+
text-decoration: none;
|
428 |
+
margin: 4px;
|
429 |
+
font-size: <?php echo esc_html($params['watermark_font_size']); ?>px;
|
430 |
+
font-family: <?php echo esc_html($params['watermark_font']); ?>;
|
431 |
+
color: #<?php echo esc_html($params['watermark_color']); ?> !important;
|
432 |
+
opacity: <?php echo esc_html(number_format($params['watermark_opacity'] / 100, 2, ".", "")); ?>;
|
433 |
+
position: relative;
|
434 |
+
z-index: 10141;
|
435 |
+
}
|
436 |
+
<?php } ?>
|
437 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_blog_style_image_contain_<?php echo esc_attr($bwg); ?>{
|
438 |
+
position: absolute;
|
439 |
+
text-align: center;
|
440 |
+
vertical-align: middle;
|
441 |
+
width: 100%;
|
442 |
+
height: 100%;
|
443 |
+
cursor: pointer;
|
444 |
+
}
|
445 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_blog_style_watermark_contain_<?php echo esc_attr($bwg); ?>{
|
446 |
+
display: table;
|
447 |
+
vertical-align: middle;
|
448 |
+
width: 100%;
|
449 |
+
height: 100%;
|
450 |
+
display:none;
|
451 |
+
}
|
452 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_blog_style_watermark_cont_<?php echo esc_attr($bwg); ?>{
|
453 |
+
display: table-cell;
|
454 |
+
text-align: <?php echo esc_html($text_align); ?>;
|
455 |
+
position: relative;
|
456 |
+
vertical-align: <?php echo esc_html($vertical_align); ?>;
|
457 |
+
}
|
458 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_blog_style_watermark_<?php echo esc_attr($bwg); ?>{
|
459 |
+
display: inline-block;
|
460 |
+
overflow: hidden;
|
461 |
+
position: relative;
|
462 |
+
vertical-align: middle;
|
463 |
+
z-index: 10140;
|
464 |
+
width: <?php echo esc_html($params['watermark_width']); ?>px;
|
465 |
+
max-width: <?php echo intval(($params['watermark_width'])) / intval(($params['blog_style_width'])) * 100 ; ?>%;
|
466 |
+
margin: 10px 10px 10px 10px ;
|
467 |
+
}
|
468 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_blog_style_watermark_text_<?php echo esc_attr($bwg); ?>{
|
469 |
+
display: inline-block;
|
470 |
+
overflow: hidden;
|
471 |
+
position: relative;
|
472 |
+
vertical-align: middle;
|
473 |
+
z-index: 10140;
|
474 |
+
margin: 10px 10px 10px 10px ;
|
475 |
+
}
|
476 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_blog_style_watermark_img_<?php echo esc_attr($bwg); ?>{
|
477 |
+
max-width: 100%;
|
478 |
+
<?php if ( !empty($params['watermark_opacity']) ) { ?>
|
479 |
+
opacity: <?php echo number_format($params['watermark_opacity'] / 100, 2, ".", ""); ?>;
|
480 |
+
<?php } ?>
|
481 |
+
position: relative;
|
482 |
+
z-index: 10141;
|
483 |
+
}
|
484 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_none_selectable {
|
485 |
+
-webkit-touch-callout: none;
|
486 |
+
-webkit-user-select: none;
|
487 |
+
-khtml-user-select: none;
|
488 |
+
-moz-user-select: none;
|
489 |
+
-ms-user-select: none;
|
490 |
+
user-select: none;
|
491 |
+
}
|
492 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_gal_title_<?php echo esc_attr($bwg); ?> {
|
493 |
+
background-color: rgba(0, 0, 0, 0);
|
494 |
+
color: #<?php echo esc_html($theme_row->blog_style_gal_title_font_color); ?>;
|
495 |
+
display: block;
|
496 |
+
font-family: <?php echo esc_html($theme_row->blog_style_gal_title_font_style); ?>;
|
497 |
+
font-size: <?php echo esc_html($theme_row->blog_style_gal_title_font_size); ?>px;
|
498 |
+
font-weight: <?php echo esc_html($theme_row->blog_style_gal_title_font_weight); ?>;
|
499 |
+
padding: <?php echo esc_html($theme_row->blog_style_gal_title_margin); ?>;
|
500 |
+
text-shadow: <?php echo esc_html($theme_row->blog_style_gal_title_shadow); ?>;
|
501 |
+
text-align: <?php echo esc_html($theme_row->blog_style_gal_title_align); ?>;
|
502 |
+
}
|
503 |
+
<?php
|
504 |
+
return ob_get_clean();
|
505 |
+
}
|
506 |
+
}
|
frontend/views/BWGViewDownload_gallery.php
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class BWGViewDownload_gallery {
|
4 |
+
public function display( $params = array() ) {
|
5 |
+
$bwg = $params['bwg'];
|
6 |
+
$bwg_gallery_id = $params['gallery_id'];
|
7 |
+
$bwg_type = $params['type'];
|
8 |
+
$bwg_tag_input_name = $params['tag_input_name'];
|
9 |
+
$bwg_tag = $params['tag'];
|
10 |
+
// TODO. call method on mudel
|
11 |
+
$bwg_img = WDWLibrary::get_image_rows_data( $bwg_gallery_id, $bwg, $bwg_type, $bwg_tag_input_name, $bwg_tag, '', '', '' );
|
12 |
+
$images = array();
|
13 |
+
|
14 |
+
foreach ( $bwg_img['images'] as $image ) {
|
15 |
+
array_push( $images, $image->pure_thumb_url );
|
16 |
+
}
|
17 |
+
|
18 |
+
if ( $images ) {
|
19 |
+
@setlocale(LC_ALL, 'he_IL.UTF-8');
|
20 |
+
$upload_dir = wp_upload_dir();
|
21 |
+
$filepath = $upload_dir['basedir'] . "/photo-gallery-" . date('Y-m-d-H-i-s') . ".zip";
|
22 |
+
|
23 |
+
if ( !class_exists('\PhpZip\ZipFile') ) {
|
24 |
+
include_once BWG()->plugin_dir . '/library/vendor/autoload.php';
|
25 |
+
}
|
26 |
+
$zip = new \PhpZip\ZipFile();
|
27 |
+
|
28 |
+
$images = array_unique($images);
|
29 |
+
foreach ( $images as $image ) {
|
30 |
+
if ( strpos($image, "http") !== FALSE ) {
|
31 |
+
continue;
|
32 |
+
}
|
33 |
+
$image = html_entity_decode($image, ENT_QUOTES);
|
34 |
+
$original = str_replace("thumb", ".original", BWG()->upload_dir . $image);
|
35 |
+
if ( WDWLibrary::repair_image_original($original) ) {
|
36 |
+
$download_file_original = file_get_contents($original);
|
37 |
+
$zip->addFromString(basename($original), $download_file_original)->saveAsFile($filepath); // save the archive to a file;
|
38 |
+
}
|
39 |
+
}
|
40 |
+
$zip->close();
|
41 |
+
$filename = basename($filepath);
|
42 |
+
header('Content-Type: application/zip');
|
43 |
+
header("Content-Disposition: attachment; filename=\"$filename\"");
|
44 |
+
while ( ob_get_level() ) {
|
45 |
+
ob_end_clean();
|
46 |
+
}
|
47 |
+
readfile($filepath);
|
48 |
+
unlink($filepath);
|
49 |
+
die();
|
50 |
+
}
|
51 |
+
else {
|
52 |
+
?>
|
53 |
+
<p><?php _e('There are no images to download.', 'photo-gallery'); ?></p>
|
54 |
+
<?php
|
55 |
+
}
|
56 |
+
}
|
57 |
+
}
|
frontend/views/BWGViewGalleryBox.php
CHANGED
@@ -31,19 +31,11 @@ class BWGViewGalleryBox {
|
|
31 |
$params['order_by'] = ($params['order_by'] == 'desc') ? 'desc' : 'asc';
|
32 |
$params['watermark_position'] = explode('-', $params['watermark_position']);
|
33 |
if ( !BWG()->is_pro ) {
|
34 |
-
$params['popup_enable_filmstrip'] = FALSE;
|
35 |
$params['open_comment'] = FALSE;
|
36 |
$params['popup_enable_comment'] = FALSE;
|
37 |
-
$params['popup_enable_facebook'] = FALSE;
|
38 |
-
$params['popup_enable_twitter'] = FALSE;
|
39 |
-
$params['popup_enable_ecommerce'] = FALSE;
|
40 |
-
$params['popup_enable_pinterest'] = FALSE;
|
41 |
-
$params['popup_enable_tumblr'] = FALSE;
|
42 |
$params['popup_enable_email'] = FALSE;
|
43 |
$params['popup_enable_captcha'] = FALSE;
|
44 |
$params['comment_moderation'] = FALSE;
|
45 |
-
$params['enable_addthis'] = FALSE;
|
46 |
-
$params['addthis_profile_id'] = FALSE;
|
47 |
}
|
48 |
$image_right_click = isset(BWG()->options->image_right_click) ? BWG()->options->image_right_click : 0;
|
49 |
require_once BWG()->plugin_dir . "/frontend/models/model.php";
|
@@ -160,7 +152,7 @@ class BWGViewGalleryBox {
|
|
160 |
$lightbox_bg_transparent = (isset($theme_row->lightbox_bg_transparent)) ? $theme_row->lightbox_bg_transparent : 100;
|
161 |
$lightbox_bg_color = WDWLibrary::spider_hex2rgb($theme_row->lightbox_bg_color);
|
162 |
|
163 |
-
if (
|
164 |
?>
|
165 |
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=<?php echo esc_html($params['addthis_profile_id']); ?>" async="async"></script>
|
166 |
<?php
|
@@ -759,7 +751,7 @@ class BWGViewGalleryBox {
|
|
759 |
}
|
760 |
?>
|
761 |
<div id="bwg_image_container" class="bwg_image_container">
|
762 |
-
<?php if (
|
763 |
<div class="bwg_addThis addthis_inline_share_toolbox"></div>
|
764 |
<?php
|
765 |
}
|
31 |
$params['order_by'] = ($params['order_by'] == 'desc') ? 'desc' : 'asc';
|
32 |
$params['watermark_position'] = explode('-', $params['watermark_position']);
|
33 |
if ( !BWG()->is_pro ) {
|
|
|
34 |
$params['open_comment'] = FALSE;
|
35 |
$params['popup_enable_comment'] = FALSE;
|
|
|
|
|
|
|
|
|
|
|
36 |
$params['popup_enable_email'] = FALSE;
|
37 |
$params['popup_enable_captcha'] = FALSE;
|
38 |
$params['comment_moderation'] = FALSE;
|
|
|
|
|
39 |
}
|
40 |
$image_right_click = isset(BWG()->options->image_right_click) ? BWG()->options->image_right_click : 0;
|
41 |
require_once BWG()->plugin_dir . "/frontend/models/model.php";
|
152 |
$lightbox_bg_transparent = (isset($theme_row->lightbox_bg_transparent)) ? $theme_row->lightbox_bg_transparent : 100;
|
153 |
$lightbox_bg_color = WDWLibrary::spider_hex2rgb($theme_row->lightbox_bg_color);
|
154 |
|
155 |
+
if ( $params['enable_addthis'] && $params['addthis_profile_id'] ) {
|
156 |
?>
|
157 |
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=<?php echo esc_html($params['addthis_profile_id']); ?>" async="async"></script>
|
158 |
<?php
|
751 |
}
|
752 |
?>
|
753 |
<div id="bwg_image_container" class="bwg_image_container">
|
754 |
+
<?php if ( $params['enable_addthis'] && $params['addthis_profile_id'] ) { ?>
|
755 |
<div class="bwg_addThis addthis_inline_share_toolbox"></div>
|
756 |
<?php
|
757 |
}
|
frontend/views/BWGViewShare.php
ADDED
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class BWGViewShare {
|
3 |
+
|
4 |
+
private $model;
|
5 |
+
|
6 |
+
public function __construct($model) {
|
7 |
+
$this->model = $model;
|
8 |
+
}
|
9 |
+
|
10 |
+
public function display() {
|
11 |
+
$image_id = WDWLibrary::get('image_id', 0, 'intval');
|
12 |
+
$curr_url = WDWLibrary::get('curr_url', '', 'esc_url');
|
13 |
+
$current_url = !empty($curr_url) ? html_entity_decode(urldecode(urldecode($curr_url))) : '';
|
14 |
+
if ( !empty($image_id) ) {
|
15 |
+
require_once(BWG()->plugin_dir . '/framework/WDWLibrary.php');
|
16 |
+
$cur_image_row = $this->model->get_image_row_data($image_id);
|
17 |
+
if (!$cur_image_row) {
|
18 |
+
header("HTTP/1.1 410 Gone");
|
19 |
+
die();
|
20 |
+
}
|
21 |
+
$gallery_id = $cur_image_row->gallery_id;
|
22 |
+
$alt = ($cur_image_row->alt != '') ? $cur_image_row->alt: get_bloginfo('name');
|
23 |
+
$description = $cur_image_row->description;
|
24 |
+
$is_embed = preg_match('/EMBED/', $cur_image_row->filetype)==1 ? true : false;
|
25 |
+
$share_url = add_query_arg(array('curr_url' => $current_url, 'image_id' => $image_id), WDWLibrary::get_share_page()) . '#bwg' . $gallery_id . '/' . $image_id;
|
26 |
+
if (!$is_embed) {
|
27 |
+
$image_path_url = htmlspecialchars_decode(BWG()->upload_dir . $cur_image_row->image_url, ENT_COMPAT | ENT_QUOTES);
|
28 |
+
$image_path_url = explode('?bwg', $image_path_url);
|
29 |
+
list($image_thumb_width, $image_thumb_height) = getimagesize($image_path_url[0]);
|
30 |
+
}
|
31 |
+
else {
|
32 |
+
$image_thumb_width = BWG()->options->thumb_width;
|
33 |
+
if ($cur_image_row->resolution != '') {
|
34 |
+
$resolution_arr = explode(" ", $cur_image_row->resolution);
|
35 |
+
$resolution_w = intval($resolution_arr[0]);
|
36 |
+
$resolution_h = intval($resolution_arr[2]);
|
37 |
+
if ($resolution_w != 0 && $resolution_h != 0) {
|
38 |
+
$scale = $scale = max(BWG()->options->thumb_width / $resolution_w, BWG()->options->thumb_height / $resolution_h);
|
39 |
+
$image_thumb_width = $resolution_w * $scale;
|
40 |
+
$image_thumb_height = $resolution_h * $scale;
|
41 |
+
}
|
42 |
+
else {
|
43 |
+
$image_thumb_width = BWG()->options->thumb_width;
|
44 |
+
$image_thumb_height = BWG()->options->thumb_height;
|
45 |
+
}
|
46 |
+
}
|
47 |
+
else {
|
48 |
+
$image_thumb_width = BWG()->options->thumb_width;
|
49 |
+
$image_thumb_height = BWG()->options->thumb_height;
|
50 |
+
}
|
51 |
+
}
|
52 |
+
?>
|
53 |
+
<!DOCTYPE html>
|
54 |
+
<script>
|
55 |
+
var bwg_hash = window.parent.location.hash;
|
56 |
+
if (bwg_hash) {
|
57 |
+
if (bwg_hash.indexOf("bwg") == "-1") {
|
58 |
+
bwg_hash = bwg_hash.replace("#", "#bwg");
|
59 |
+
}
|
60 |
+
window.location.href = "<?php echo $current_url; ?>" + bwg_hash;
|
61 |
+
}
|
62 |
+
</script>
|
63 |
+
<html>
|
64 |
+
<head>
|
65 |
+
<title><?php echo esc_html(get_bloginfo('name')); ?></title>
|
66 |
+
<meta property="og:title" content="<?php echo esc_attr($alt); ?>" />
|
67 |
+
<meta property="og:site_name" content="<?php echo esc_attr(get_bloginfo('name')); ?>"/>
|
68 |
+
<meta property="og:url" content="<?php echo esc_url($share_url); ?>" />
|
69 |
+
<meta property="og:description" content="<?php echo esc_attr($description); ?>" />
|
70 |
+
<meta property="og:image" content="<?php echo esc_html($is_embed) ? esc_url($cur_image_row->thumb_url) : esc_url(BWG()->upload_url . str_replace(' ', '%20', $cur_image_row->image_url)); ?>" alt="<?php echo esc_html($cur_image_row->alt); ?>" />
|
71 |
+
<meta property="og:image:width" name="bwg_width" content="<?php echo esc_attr($image_thumb_width); ?>" />
|
72 |
+
<meta property="og:image:height" name="bwg_height" content="<?php echo esc_attr($image_thumb_height); ?>" />
|
73 |
+
<meta name="twitter:card" content="summary_large_image" />
|
74 |
+
<meta name="twitter:image" content="<?php echo $is_embed ? esc_url($cur_image_row->thumb_url) : esc_url(BWG()->upload_url . str_replace(' ', '%20', $cur_image_row->image_url)); ?>" />
|
75 |
+
<meta name="twitter:title" content="<?php echo esc_attr($alt); ?>" />
|
76 |
+
<meta name="twitter:description" content="<?php echo esc_attr($description); ?>" />
|
77 |
+
<meta content="summary" name="twitter:card" />
|
78 |
+
</head>
|
79 |
+
<body style="display:none">
|
80 |
+
<img src="<?php echo $is_embed ? esc_url($cur_image_row->thumb_url) : esc_url(BWG()->upload_url . str_replace(' ', '%20', $cur_image_row->image_url)); ?>" alt="<?php echo esc_attr($alt); ?>">
|
81 |
+
</body>
|
82 |
+
</html>
|
83 |
+
<?php
|
84 |
+
}
|
85 |
+
die();
|
86 |
+
}
|
87 |
+
}
|
frontend/views/BWGViewSlideshow.php
CHANGED
@@ -19,9 +19,9 @@ public function display($params = array(), $bwg = 0, $ajax = FALSE) {
|
|
19 |
$enable_slideshow_shuffle = $params['enable_slideshow_shuffle'];
|
20 |
$enable_slideshow_ctrl = $params['enable_slideshow_ctrl'];
|
21 |
|
22 |
-
$enable_slideshow_filmstrip =
|
23 |
-
$slideshow_filmstrip_type =
|
24 |
-
$slideshow_thumbnails_count =
|
25 |
// This option 'enable_slideshow_filmstrip' has been removed and is being used with the new option 'slideshow_filmstrip_type'.
|
26 |
if ( $enable_slideshow_filmstrip || ( $slideshow_filmstrip_type == 1 ) ) {
|
27 |
$slideshow_filmstrip_type = 1;
|
19 |
$enable_slideshow_shuffle = $params['enable_slideshow_shuffle'];
|
20 |
$enable_slideshow_ctrl = $params['enable_slideshow_ctrl'];
|
21 |
|
22 |
+
$enable_slideshow_filmstrip = !empty($params['enable_slideshow_filmstrip']) ? 1 : 0;
|
23 |
+
$slideshow_filmstrip_type = $params['slideshow_filmstrip_type'];
|
24 |
+
$slideshow_thumbnails_count = $params['slideshow_thumbnails_count'];
|
25 |
// This option 'enable_slideshow_filmstrip' has been removed and is being used with the new option 'slideshow_filmstrip_type'.
|
26 |
if ( $enable_slideshow_filmstrip || ( $slideshow_filmstrip_type == 1 ) ) {
|
27 |
$slideshow_filmstrip_type = 1;
|
frontend/views/BWGViewThumbnails_masonry.php
ADDED
@@ -0,0 +1,369 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class BWGViewThumbnails_masonry extends BWGViewSite {
|
3 |
+
public function display($params = array(), $bwg = 0, $ajax = FALSE) {
|
4 |
+
$theme_row = $params['theme_row'];
|
5 |
+
$image_rows = $params['image_rows'];
|
6 |
+
$image_rows = $image_rows['images'];
|
7 |
+
$lazyload = BWG()->options->lazyload_images;
|
8 |
+
$inline_style = $this->inline_styles($bwg, $theme_row, $params);
|
9 |
+
if ( !WDWLibrary::elementor_is_active() ) {
|
10 |
+
if ( !$ajax ) {
|
11 |
+
if ( BWG()->options->use_inline_stiles_and_scripts ) {
|
12 |
+
wp_add_inline_style('bwg_frontend', $inline_style);
|
13 |
+
}
|
14 |
+
else {
|
15 |
+
echo wp_kses('<style id="bwg-style-' . esc_attr($bwg) . '">' . $inline_style . '</style>', array('style' => array('id' => true)));
|
16 |
+
}
|
17 |
+
}
|
18 |
+
}
|
19 |
+
else {
|
20 |
+
echo wp_kses('<style id="bwg-style-' . esc_attr($bwg) . '">' . $inline_style . '</style>', array('style' => array('id' => true)));
|
21 |
+
}
|
22 |
+
ob_start();
|
23 |
+
if ('horizontal' == $params['masonry_hor_ver']) {
|
24 |
+
?>
|
25 |
+
<div class="bwg-masonry-horizontal-parent">
|
26 |
+
<div class="bwg-masonry-horizontal-container">
|
27 |
+
<?php
|
28 |
+
}
|
29 |
+
?>
|
30 |
+
<div id="bwg_thumbnails_masonry_<?php echo esc_attr($bwg); ?>"
|
31 |
+
data-bwg="<?php echo esc_attr($bwg); ?>"
|
32 |
+
data-masonry-type="<?php echo esc_attr($params['masonry_hor_ver']); ?>"
|
33 |
+
data-resizable-thumbnails="<?php echo esc_attr(BWG()->options->resizable_thumbnails); ?>"
|
34 |
+
data-max-count="<?php echo esc_attr($params['image_column_number']); ?>"
|
35 |
+
data-thumbnail-width="<?php echo esc_attr($params['thumb_width']); ?>"
|
36 |
+
data-thumbnail-height="<?php echo esc_attr($params['thumb_height']); ?>"
|
37 |
+
data-thumbnail-padding="<?php echo esc_attr($theme_row->masonry_thumb_padding); ?>"
|
38 |
+
data-thumbnail-border="<?php echo esc_attr($theme_row->masonry_thumb_border_width); ?>"
|
39 |
+
data-gallery-id="<?php echo esc_attr($params['gallery_id']); ?>"
|
40 |
+
data-lightbox-url="<?php echo esc_url(addslashes(add_query_arg($params['params_array'], admin_url('admin-ajax.php')))); ?>"
|
41 |
+
class="bwg-container-<?php echo esc_attr($bwg); ?> bwg_masonry_thumbnails_<?php echo esc_attr($bwg); ?> bwg-masonry-thumbnails bwg-masonry-<?php echo esc_attr($params['masonry_hor_ver']); ?> bwg-container bwg-border-box">
|
42 |
+
<?php
|
43 |
+
foreach ($image_rows as $image_row) {
|
44 |
+
$is_embed = preg_match('/EMBED/',$image_row->filetype) == 1 ? true : false;
|
45 |
+
$is_embed_video = preg_match('/VIDEO/',$image_row->filetype) == 1 ? true : false;
|
46 |
+
$bwg_thumb_url = esc_url($is_embed ? $image_row->thumb_url : BWG()->upload_url . $image_row->thumb_url);
|
47 |
+
$class = '';
|
48 |
+
$data_image_id = '';
|
49 |
+
$href = '';
|
50 |
+
$title = '<div class="bwg-title1"><div class="bwg-title2">' . htmlspecialchars_decode($image_row->alt, ENT_COMPAT | ENT_QUOTES) . '</div></div>';
|
51 |
+
$play_icon = '<div class="bwg-play-icon1"><i title="' . __('Play', 'photo-gallery') . '" class="bwg-icon-play bwg-title2 bwg-play-icon2"></i></div>';
|
52 |
+
$ecommerce_icon = '<div class="bwg-ecommerce1"><div class="bwg-ecommerce2">';
|
53 |
+
if ( $image_row->pricelist_id ) {
|
54 |
+
$ecommerce_icon .= '<i title="' . __('Open', 'photo-gallery') . '" class="bwg-icon-sign-out bwg_ctrl_btn bwg_open"></i> ';
|
55 |
+
$ecommerce_icon .= '<i title="' . __('Ecommerce', 'photo-gallery') . '" class="bwg-icon-shopping-cart bwg_ctrl_btn bwg_ecommerce"></i>';
|
56 |
+
}
|
57 |
+
else {
|
58 |
+
$ecommerce_icon .= ' ';
|
59 |
+
}
|
60 |
+
$ecommerce_icon .= '</div></div>';
|
61 |
+
if ( $params['thumb_click_action'] == 'open_lightbox' ) {
|
62 |
+
$class = ' bwg_lightbox';
|
63 |
+
$data_image_id = ' data-image-id="' . esc_attr($image_row->id) . '"';
|
64 |
+
if ( BWG()->options->enable_seo ) {
|
65 |
+
$href = ' href="' . esc_url($is_embed ? $image_row->thumb_url : BWG()->upload_url . $image_row->image_url) . '"';
|
66 |
+
}
|
67 |
+
}
|
68 |
+
elseif ( $params['thumb_click_action'] == 'redirect_to_url' && $image_row->redirect_url ) {
|
69 |
+
$href = ' href="' . esc_url($image_row->redirect_url) . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"';
|
70 |
+
}
|
71 |
+
|
72 |
+
$resolution_thumb = $image_row->resolution_thumb;
|
73 |
+
$image_thumb_width = '';
|
74 |
+
$image_thumb_height = '';
|
75 |
+
|
76 |
+
if ( $resolution_thumb != "" && strpos($resolution_thumb,'x') !== false ) {
|
77 |
+
$resolution_th = explode("x", $resolution_thumb);
|
78 |
+
$image_thumb_width = $resolution_th[0];
|
79 |
+
$image_thumb_height = $resolution_th[1];
|
80 |
+
}
|
81 |
+
?>
|
82 |
+
<div class="bwg-item">
|
83 |
+
<a class="bwg-a <?php echo esc_attr($class); ?>" <?php echo $data_image_id; ?><?php echo $href; ?> data-elementor-open-lightbox="no">
|
84 |
+
<div class="bwg-item0">
|
85 |
+
<div class="bwg-item1 <?php echo $theme_row->masonry_thumb_hover_effect == 'zoom' && $params['image_title'] == 'hover' ? 'bwg-zoom-effect' : ''; ?>">
|
86 |
+
<img class="skip-lazy bwg-masonry-thumb bwg_masonry_thumb_<?php echo esc_attr($bwg); ?> <?php if( $lazyload ) { ?> bwg_lazyload lazy_loader<?php } ?>"
|
87 |
+
data-id="<?php echo esc_attr($image_row->id); ?>"
|
88 |
+
data-src="<?php echo esc_url($bwg_thumb_url); ?>"
|
89 |
+
data-width="<?php echo esc_attr($image_thumb_width); ?>"
|
90 |
+
data-height="<?php echo esc_attr($image_thumb_height); ?>"
|
91 |
+
src="<?php if( !$lazyload ) { echo esc_url($bwg_thumb_url); } else { echo esc_url(BWG()->plugin_url."/images/lazy_placeholder.gif"); } ?>"
|
92 |
+
alt="<?php echo esc_attr($image_row->alt); ?>"
|
93 |
+
title="<?php echo esc_attr($image_row->alt); ?>" />
|
94 |
+
<div class="<?php echo $theme_row->masonry_thumb_hover_effect == 'zoom' && $params['image_title'] == 'hover' ? 'bwg-zoom-effect-overlay' : ''; ?>">
|
95 |
+
<?php if ( $params['masonry_hor_ver'] == 'vertical' && $params['image_title'] == 'hover' && !empty($image_row->alt) ) { echo WDWLibrary::strip_tags($title); } ?>
|
96 |
+
<?php if ( function_exists('BWGEC') && $params['ecommerce_icon'] == 'hover' && $image_row->pricelist_id ) { echo WDWLibrary::strip_tags($ecommerce_icon); } ?>
|
97 |
+
<?php if ( $is_embed_video && $params['play_icon'] ) { echo WDWLibrary::strip_tags($play_icon); } ?>
|
98 |
+
</div>
|
99 |
+
</div>
|
100 |
+
</div>
|
101 |
+
<?php if ( $params['masonry_hor_ver'] == 'vertical' && $params['image_title'] == 'show' && !empty($image_row->alt) ) { echo WDWLibrary::strip_tags($title); } ?>
|
102 |
+
</a>
|
103 |
+
<?php
|
104 |
+
if ( $params['masonry_hor_ver'] == 'vertical' && $params['show_masonry_thumb_description'] && $image_row->description) {
|
105 |
+
?>
|
106 |
+
<div class="bwg-masonry-thumb-description bwg_masonry_thumb_description_<?php echo esc_attr($bwg); ?>">
|
107 |
+
<span><?php echo WDWLibrary::strip_tags(stripslashes($image_row->description)); ?></span>
|
108 |
+
</div>
|
109 |
+
<?php
|
110 |
+
}
|
111 |
+
?>
|
112 |
+
</div>
|
113 |
+
<?php } ?>
|
114 |
+
</div>
|
115 |
+
<?php
|
116 |
+
if ( 'horizontal' == $params['masonry_hor_ver'] ) {
|
117 |
+
?>
|
118 |
+
</div>
|
119 |
+
</div>
|
120 |
+
<?php
|
121 |
+
}
|
122 |
+
$content = ob_get_clean();
|
123 |
+
/* Set theme parameters for Gallery/Gallery group title/description.*/
|
124 |
+
$theme_row->thumb_gal_title_font_size = $theme_row->masonry_thumb_gal_title_font_size;
|
125 |
+
$theme_row->thumb_gal_title_font_color = $theme_row->masonry_thumb_gal_title_font_color;
|
126 |
+
$theme_row->thumb_gal_title_font_style = $theme_row->masonry_thumb_gal_title_font_style;
|
127 |
+
$theme_row->thumb_gal_title_font_weight = $theme_row->masonry_thumb_gal_title_font_weight;
|
128 |
+
$theme_row->thumb_gal_title_shadow = $theme_row->masonry_thumb_gal_title_shadow;
|
129 |
+
$theme_row->thumb_gal_title_margin = $theme_row->masonry_thumb_gal_title_margin;
|
130 |
+
$theme_row->thumb_gal_title_align = $theme_row->masonry_thumb_gal_title_align;
|
131 |
+
|
132 |
+
if ( $ajax ) { /* Ajax response after ajax call for filters and pagination.*/
|
133 |
+
parent::ajax_content($params, $bwg, $content);
|
134 |
+
}
|
135 |
+
else {
|
136 |
+
parent::container($params, $bwg, $content);
|
137 |
+
}
|
138 |
+
}
|
139 |
+
|
140 |
+
public function inline_styles($bwg, $theme_row, $params) {
|
141 |
+
// This code helps us to have correct styles.
|
142 |
+
ob_start();
|
143 |
+
?>
|
144 |
+
<style>
|
145 |
+
<?php
|
146 |
+
ob_end_clean();
|
147 |
+
ob_start();
|
148 |
+
$rgb_thumbs_bg_color = WDWLibrary::spider_hex2rgb($theme_row->masonry_thumbs_bg_color);
|
149 |
+
?>
|
150 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_masonry_thumb_<?php echo esc_attr($bwg); ?> {
|
151 |
+
text-align: center;
|
152 |
+
display: inline-block;
|
153 |
+
vertical-align: middle;
|
154 |
+
<?php if ( $params['masonry_hor_ver'] == 'vertical' ) { ?>
|
155 |
+
width: <?php echo esc_html(BWG()->options->resizable_thumbnails ? '100% !important;' : $params['thumb_width'] . 'px'); ?>;
|
156 |
+
<?php }
|
157 |
+
else { ?>
|
158 |
+
height: <?php echo esc_html($params['thumb_height'] - $theme_row->masonry_thumb_padding); ?>px;
|
159 |
+
<?php } ?>
|
160 |
+
margin: 0;
|
161 |
+
opacity: <?php echo number_format($theme_row->masonry_thumb_transparent / 100, 2, ".", ""); ?>;
|
162 |
+
}
|
163 |
+
|
164 |
+
<?php if ( $theme_row->masonry_thumb_hover_effect == "scale" ) { ?>
|
165 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_masonry_thumbnails_<?php echo esc_attr($bwg); ?> {
|
166 |
+
overflow:visible;
|
167 |
+
}
|
168 |
+
<?php } ?>
|
169 |
+
|
170 |
+
<?php if ( !$theme_row->masonry_container_margin && $theme_row->masonry_thumb_padding ) { ?>
|
171 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-background-<?php echo esc_attr($bwg); ?> {
|
172 |
+
overflow: hidden;
|
173 |
+
}
|
174 |
+
<?php } ?>
|
175 |
+
|
176 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-masonry-thumbnails .bwg-item,
|
177 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-temp<?php echo esc_attr($bwg); ?>.bwg-masonry-thumbnails .bwg-item {
|
178 |
+
padding: calc(<?php echo esc_html($theme_row->masonry_thumb_padding); ?>px / 2);
|
179 |
+
<?php if ( !BWG()->options->resizable_thumbnails ) { ?>
|
180 |
+
width: <?php echo esc_html($params['thumb_width']); ?>px !important;
|
181 |
+
<?php } ?>
|
182 |
+
}
|
183 |
+
|
184 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-masonry-thumbnails .bwg-item0 {
|
185 |
+
<?php $thumb_bg_color = WDWLibrary::spider_hex2rgb( $theme_row->masonry_thumb_bg_color ); ?>
|
186 |
+
background-color:rgba(<?php echo esc_html($thumb_bg_color['red'] .','. $thumb_bg_color['green'] . ',' . $thumb_bg_color['blue'] . ', '.number_format($theme_row->masonry_thumb_bg_transparency / 100, 2, ".", "")); ?>);
|
187 |
+
border: <?php echo esc_html($theme_row->masonry_thumb_border_width); ?>px <?php echo esc_html($theme_row->masonry_thumb_border_style); ?> #<?php echo esc_html($theme_row->masonry_thumb_border_color); ?>;
|
188 |
+
opacity: <?php echo esc_html(number_format($theme_row->masonry_thumb_transparent / 100, 2, ".", "")); ?>;
|
189 |
+
border-radius: <?php echo esc_html($theme_row->masonry_thumb_border_radius); ?>;
|
190 |
+
}
|
191 |
+
|
192 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-masonry-thumbnails .bwg-item1 img {
|
193 |
+
max-height: none;
|
194 |
+
<?php if ( BWG()->options->resizable_thumbnails ) { ?>
|
195 |
+
max-width: calc(<?php echo esc_html($params['thumb_width']); ?>px + (<?php echo esc_html($theme_row->masonry_thumb_padding); ?>px + <?php echo esc_html($theme_row->masonry_thumb_border_width); ?>px));
|
196 |
+
<?php } ?>
|
197 |
+
}
|
198 |
+
|
199 |
+
<?php if ( $theme_row->masonry_thumb_hover_effect == 'zoom' ) { ?>
|
200 |
+
@media only screen and (min-width: 480px) {
|
201 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-masonry-thumbnails .bwg-item1 img {
|
202 |
+
<?php echo ($theme_row->masonry_thumb_transition) ? '-webkit-transition: -webkit-transform .3s; transition: transform .3s;' : ''; ?>
|
203 |
+
}
|
204 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-masonry-thumbnails .bwg-item1 img:hover {
|
205 |
+
-ms-transform: scale(<?php echo esc_html($theme_row->masonry_thumb_hover_effect_value); ?>);
|
206 |
+
-webkit-transform: scale(<?php echo esc_html($theme_row->masonry_thumb_hover_effect_value); ?>);
|
207 |
+
transform: scale(<?php echo esc_html($theme_row->masonry_thumb_hover_effect_value); ?>);
|
208 |
+
}
|
209 |
+
<?php if ( $params['image_title'] == 'hover' ) { ?>
|
210 |
+
.bwg-masonry-thumbnails .bwg-zoom-effect .bwg-zoom-effect-overlay {
|
211 |
+
<?php $thumb_bg_color = WDWLibrary::spider_hex2rgb( $theme_row->masonry_thumb_bg_color ); ?>
|
212 |
+
background-color:rgba(<?php echo esc_html($thumb_bg_color['red'] .','. $thumb_bg_color['green'] . ',' . $thumb_bg_color['blue'] . ', 0.3'); ?>);
|
213 |
+
}
|
214 |
+
.bwg-masonry-thumbnails .bwg-zoom-effect:hover img {
|
215 |
+
-ms-transform: scale(<?php echo esc_html($theme_row->masonry_thumb_hover_effect_value); ?>);
|
216 |
+
-webkit-transform: scale(<?php echo esc_html($theme_row->masonry_thumb_hover_effect_value); ?>);
|
217 |
+
transform: scale(<?php echo esc_html($theme_row->masonry_thumb_hover_effect_value); ?>);
|
218 |
+
}
|
219 |
+
<?php } ?>
|
220 |
+
}
|
221 |
+
<?php
|
222 |
+
}
|
223 |
+
else {
|
224 |
+
?>
|
225 |
+
@media only screen and (min-width: 480px) {
|
226 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-masonry-thumbnails .bwg-item0 {
|
227 |
+
<?php echo esc_html(($theme_row->masonry_thumb_transition) ? 'transition: transform 0.3s ease 0s; -webkit-transition: -webkit-transform 0.3s ease 0s;' : ''); ?>
|
228 |
+
}
|
229 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-masonry-thumbnails .bwg-item0:hover {
|
230 |
+
-ms-transform: <?php echo esc_html($theme_row->masonry_thumb_hover_effect); ?>(<?php echo esc_html($theme_row->masonry_thumb_hover_effect_value); ?>);
|
231 |
+
-webkit-transform: <?php echo esc_html($theme_row->masonry_thumb_hover_effect); ?>(<?php echo esc_html($theme_row->masonry_thumb_hover_effect_value); ?>);
|
232 |
+
transform: <?php echo esc_html($theme_row->masonry_thumb_hover_effect); ?>(<?php echo esc_html($theme_row->masonry_thumb_hover_effect_value); ?>);
|
233 |
+
}
|
234 |
+
}
|
235 |
+
<?php } ?>
|
236 |
+
|
237 |
+
<?php
|
238 |
+
/* Show image title on hover.*/
|
239 |
+
if ( $params['image_title'] == 'hover' ) { ?>
|
240 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-masonry-thumbnails .bwg-title1 {
|
241 |
+
position: absolute;
|
242 |
+
top: 0;
|
243 |
+
z-index: 100;
|
244 |
+
width: 100%;
|
245 |
+
height: 100%;
|
246 |
+
display: flex;
|
247 |
+
justify-content: center;
|
248 |
+
align-content: center;
|
249 |
+
flex-direction: column;
|
250 |
+
opacity: 0;
|
251 |
+
}
|
252 |
+
<?php } ?>
|
253 |
+
|
254 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-masonry-thumbnails .bwg-title2,
|
255 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-temp<?php echo esc_attr($bwg); ?>.bwg-masonry-thumbnails .bwg-title2,
|
256 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-masonry-thumbnails .bwg-play-icon2,
|
257 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-masonry-thumbnails .bwg-ecommerce2 {
|
258 |
+
max-height: 100%;
|
259 |
+
padding: <?php echo esc_html($theme_row->masonry_thumb_title_margin); ?>;
|
260 |
+
font-family: <?php echo esc_html($theme_row->masonry_thumb_title_font_style); ?>;
|
261 |
+
font-weight: <?php echo esc_html($theme_row->masonry_thumb_title_font_weight); ?>;
|
262 |
+
font-size: <?php echo esc_html($theme_row->masonry_thumb_title_font_size); ?>px;
|
263 |
+
color: #<?php echo esc_html(( $params['image_title'] == 'hover') ? (isset($theme_row->masonry_thumb_title_font_color_hover) ? $theme_row->masonry_thumb_title_font_color_hover : $theme_row->masonry_thumb_gal_title_font_color) : $theme_row->masonry_thumb_title_font_color); ?>;
|
264 |
+
}
|
265 |
+
|
266 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-masonry-thumbnails .bwg-ecommerce2 {
|
267 |
+
color: #<?php echo esc_html(( $params['ecommerce_icon'] == 'hover') ? (isset($theme_row->masonry_thumb_gal_title_font_color_hover) ? $theme_row->masonry_thumb_gal_title_font_color_hover : $theme_row->masonry_thumb_gal_title_font_color) : $theme_row->masonry_thumb_gal_title_font_color); ?>;
|
268 |
+
}
|
269 |
+
|
270 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_masonry_thumbnails_<?php echo esc_attr($bwg); ?> {
|
271 |
+
position: relative;
|
272 |
+
background-color: rgba(<?php echo esc_html($rgb_thumbs_bg_color['red']); ?>, <?php echo esc_html($rgb_thumbs_bg_color['green']); ?>, <?php echo esc_html($rgb_thumbs_bg_color['blue']); ?>, <?php echo number_format($theme_row->masonry_thumb_bg_transparent / 100, 2, ".", ""); ?>);
|
273 |
+
font-size: 0;
|
274 |
+
<?php if ( $params['masonry_hor_ver'] == 'vertical' ) { ?>
|
275 |
+
width: <?php echo esc_html($params['image_column_number'] * $params['thumb_width'] + ($theme_row->masonry_container_margin ? $theme_row->masonry_thumb_padding : 0)); ?>px;
|
276 |
+
max-width: 100%;
|
277 |
+
<?php
|
278 |
+
}
|
279 |
+
else { ?>
|
280 |
+
height: <?php echo esc_html($params['image_column_number'] * $params['thumb_height']); ?>px !important;
|
281 |
+
<?php
|
282 |
+
}
|
283 |
+
if ( $theme_row->masonry_container_margin ) { ?>
|
284 |
+
max-width: 100%;
|
285 |
+
<?php
|
286 |
+
}
|
287 |
+
else { ?>
|
288 |
+
margin-right: -<?php echo esc_html($theme_row->masonry_thumb_padding); ?>px;
|
289 |
+
max-width: calc(100% + <?php echo esc_html($theme_row->masonry_thumb_padding); ?>px);
|
290 |
+
<?php } ?>
|
291 |
+
<?php if ( $theme_row->masonry_thumb_align == 'center' ) { ?>
|
292 |
+
margin: 0 auto;
|
293 |
+
<?php
|
294 |
+
}
|
295 |
+
elseif ( $theme_row->masonry_thumb_align == 'left') { ?>
|
296 |
+
margin-right: auto;
|
297 |
+
<?php
|
298 |
+
}
|
299 |
+
else { ?>
|
300 |
+
margin-left: auto;
|
301 |
+
<?php } ?>
|
302 |
+
}
|
303 |
+
|
304 |
+
<?php if ( $params['masonry_hor_ver'] == 'vertical' ) { ?>
|
305 |
+
@media only screen and (max-width: <?php echo esc_html($params['image_column_number'] * ($params['thumb_width'] + 2 * ($theme_row->masonry_thumb_padding + $theme_row->masonry_thumb_border_width))); ?>px) {
|
306 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_masonry_thumbnails_<?php echo esc_attr($bwg); ?> {
|
307 |
+
width: inherit;
|
308 |
+
}
|
309 |
+
}
|
310 |
+
<?php
|
311 |
+
}
|
312 |
+
else { ?>
|
313 |
+
@media only screen and (max-height: <?php echo esc_html($params['image_column_number'] * ($params['thumb_height'] + 2 * ($theme_row->masonry_thumb_padding + $theme_row->masonry_thumb_border_width))); ?>px) {
|
314 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_masonry_thumbnails_<?php echo esc_attr($bwg); ?> {
|
315 |
+
height: inherit;
|
316 |
+
}
|
317 |
+
}
|
318 |
+
<?php } ?>
|
319 |
+
|
320 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_masonry_thumb_description_<?php echo esc_attr($bwg); ?> {
|
321 |
+
color: #<?php echo esc_html($theme_row->masonry_description_color); ?>;
|
322 |
+
line-height: 1.4;
|
323 |
+
font-size: <?php echo esc_html($theme_row->masonry_description_font_size); ?>px;
|
324 |
+
font-family: <?php echo esc_html($theme_row->masonry_description_font_style); ?>;
|
325 |
+
text-align: justify;
|
326 |
+
}
|
327 |
+
|
328 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?>.bwg_thumbnails_masonry .wd_error p {
|
329 |
+
color: #<?php echo esc_html($theme_row->album_masonry_back_font_color); ?>;
|
330 |
+
}
|
331 |
+
|
332 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_gal_title_<?php echo esc_attr($bwg); ?> {
|
333 |
+
background-color: rgba(0, 0, 0, 0);
|
334 |
+
color: #<?php echo esc_html($theme_row->masonry_thumb_gal_title_font_color); ?>;
|
335 |
+
display: block;
|
336 |
+
font-family: <?php echo esc_html($theme_row->masonry_thumb_gal_title_font_style); ?>;
|
337 |
+
font-size: <?php echo esc_html($theme_row->masonry_thumb_gal_title_font_size); ?>px;
|
338 |
+
font-weight: <?php echo esc_html($theme_row->masonry_thumb_gal_title_font_weight); ?>;
|
339 |
+
padding: <?php echo esc_html($theme_row->masonry_thumb_gal_title_margin); ?>;
|
340 |
+
text-shadow: <?php echo esc_html($theme_row->masonry_thumb_gal_title_shadow); ?>;
|
341 |
+
text-align: <?php echo esc_html($theme_row->masonry_thumb_gal_title_align); ?>;
|
342 |
+
}
|
343 |
+
|
344 |
+
<?php if ( function_exists('BWGEC') && $params['ecommerce_icon'] == 'hover' ) {
|
345 |
+
/* Show eCommerce icon on hover.*/ ?>
|
346 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-masonry-thumbnails .bwg-ecommerce1 {
|
347 |
+
display: flex;
|
348 |
+
height: 100%;
|
349 |
+
left: -3000px;
|
350 |
+
opacity: 0;
|
351 |
+
position: absolute;
|
352 |
+
top: 0;
|
353 |
+
width: 100%;
|
354 |
+
z-index: 100;
|
355 |
+
justify-content: center;
|
356 |
+
align-content: center;
|
357 |
+
flex-direction: column;
|
358 |
+
text-align: center;
|
359 |
+
}
|
360 |
+
<?php
|
361 |
+
}
|
362 |
+
return ob_get_clean();
|
363 |
+
ob_start();
|
364 |
+
?>
|
365 |
+
</style>
|
366 |
+
<?php
|
367 |
+
ob_end_clean();
|
368 |
+
}
|
369 |
+
}
|
frontend/views/BWGViewThumbnails_mosaic.php
ADDED
@@ -0,0 +1,361 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Class BWGViewThumbnails_mosaic
|
5 |
+
*/
|
6 |
+
class BWGViewThumbnails_mosaic extends BWGViewSite {
|
7 |
+
/**
|
8 |
+
* Display.
|
9 |
+
*
|
10 |
+
* @param array $params
|
11 |
+
* @param int $bwg
|
12 |
+
*/
|
13 |
+
public function display( $params = array(), $bwg = 0, $ajax = FALSE ) {
|
14 |
+
$images = $params['image_rows']['images'];
|
15 |
+
$theme_row = $params['theme_row'];
|
16 |
+
$play_icon = $params['play_icon'];
|
17 |
+
$lazyload = BWG()->options->lazyload_images;
|
18 |
+
|
19 |
+
$inline_style = $this->inline_styles($bwg, $theme_row, $params);
|
20 |
+
if ( !WDWLibrary::elementor_is_active() ) {
|
21 |
+
if ( !$ajax ) {
|
22 |
+
if ( BWG()->options->use_inline_stiles_and_scripts ) {
|
23 |
+
wp_add_inline_style('bwg_frontend', $inline_style);
|
24 |
+
}
|
25 |
+
else {
|
26 |
+
echo wp_kses('<style id="bwg-style-' . esc_attr($bwg) . '">' . $inline_style . '</style>', array('style' => array('id' => true)));
|
27 |
+
}
|
28 |
+
}
|
29 |
+
}
|
30 |
+
else {
|
31 |
+
echo wp_kses('<style id="bwg-style-' . esc_attr($bwg) . '">' . $inline_style . '</style>', array('style' => array('id' => true)));
|
32 |
+
}
|
33 |
+
$mosaic_block_id = 'bwg_' . $params['gallery_type'] . '_' . $bwg;
|
34 |
+
ob_start();
|
35 |
+
?>
|
36 |
+
<div id="bwg_mosaic_thumbnails_div_<?php echo esc_attr($bwg); ?>"
|
37 |
+
class="bwg-container-<?php echo esc_attr($bwg); ?> bwg-container bwg-mosaic-thumbnails"
|
38 |
+
data-bwg="<?php echo esc_attr($bwg); ?>"
|
39 |
+
data-mosaic-direction="<?php echo esc_attr($params['mosaic_hor_ver']); ?>"
|
40 |
+
data-resizable="<?php echo esc_attr($params['resizable_mosaic']); ?>"
|
41 |
+
data-width="<?php echo esc_attr($params['thumb_width']); ?>"
|
42 |
+
data-height="<?php echo esc_attr($params['thumb_height']); ?>"
|
43 |
+
data-total-width="<?php echo esc_attr($params['mosaic_total_width']); ?>"
|
44 |
+
data-block-id="<?php echo esc_attr($mosaic_block_id); ?>"
|
45 |
+
data-thumb-padding="<?php echo esc_attr($theme_row->mosaic_thumb_padding); ?>"
|
46 |
+
data-thumb-border="<?php echo esc_attr($theme_row->mosaic_thumb_border_width); ?>"
|
47 |
+
data-title-margin="<?php echo esc_attr($theme_row->mosaic_thumb_title_margin); ?>"
|
48 |
+
data-image-title="<?php echo esc_attr($params['image_title']); ?>"
|
49 |
+
data-play-icon="<?php echo esc_attr($play_icon); ?>"
|
50 |
+
data-ecommerce-icon="<?php echo esc_attr($params['ecommerce_icon']); ?>"
|
51 |
+
data-gallery-id="<?php echo esc_attr($params['gallery_id']); ?>"
|
52 |
+
data-lightbox-url="<?php echo esc_url(addslashes(add_query_arg($params['params_array'], admin_url('admin-ajax.php')))); ?>"
|
53 |
+
data-mosaic-thumb-transition="<?php echo ($theme_row->mosaic_thumb_transition) ? true : false; ?>"
|
54 |
+
style="visibility: hidden" >
|
55 |
+
<div id="<?php echo esc_attr($mosaic_block_id); ?>" class="bwg_mosaic_thumbnails_<?php echo esc_attr($bwg); ?>">
|
56 |
+
<?php foreach ( $images as $image_row ) {
|
57 |
+
$is_embed = preg_match('/EMBED/',$image_row->filetype) == 1 ? true :false;
|
58 |
+
$is_embed_video = preg_match('/VIDEO/',$image_row->filetype) == 1 ? true :false;
|
59 |
+
$bwg_thumb_url = esc_url($is_embed ? $image_row->thumb_url : BWG()->upload_url . $image_row->thumb_url);
|
60 |
+
$is_zoom_hover_effect = ($theme_row->mosaic_thumb_hover_effect == 'zoom' && $params['image_title'] == 'hover') ? true : false;
|
61 |
+
$resolution_thumb = $image_row->resolution_thumb;
|
62 |
+
$image_thumb_width = '';
|
63 |
+
$image_thumb_height = '';
|
64 |
+
|
65 |
+
if($resolution_thumb != "" && strpos($resolution_thumb,'x') !== false) {
|
66 |
+
$resolution_th = explode("x", $resolution_thumb);
|
67 |
+
$image_thumb_width = $resolution_th[0];
|
68 |
+
$image_thumb_height = $resolution_th[1];
|
69 |
+
}
|
70 |
+
?>
|
71 |
+
<a <?php echo (esc_html($params['thumb_click_action']) == 'open_lightbox' ? (' class="bwg-a bwg_lightbox 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) . '" data-elementor-open-lightbox="no"') : ('class="bwg-a" ' . (esc_html($params['thumb_click_action']) == 'redirect_to_url' && $image_row->redirect_url ? 'href="' . esc_url($image_row->redirect_url) . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : ''))) ?>>
|
72 |
+
<div class="bwg_mosaic_thumb_spun_<?php echo esc_attr($bwg); ?> bwg-item0 bwg-mosaic-thumb-span <?php echo ( $is_zoom_hover_effect ) ? 'bwg-zoom-effect' : ''; ?>">
|
73 |
+
<img class="bwg_mosaic_thumb_<?php echo esc_attr($bwg); ?> skip-lazy bwg_img_clear bwg_img_custom <?php if( $lazyload ) { ?> bwg_lazyload lazy_loader <?php } ?>"
|
74 |
+
id="<?php echo esc_attr($image_row->id); ?>"
|
75 |
+
src="<?php if( !$lazyload ) { echo esc_url($bwg_thumb_url); } else { echo esc_url(BWG()->plugin_url."/images/lazy_placeholder.gif"); } ?>"
|
76 |
+
data-src="<?php echo esc_url($bwg_thumb_url); ?>"
|
77 |
+
data-width="<?php echo esc_attr($image_thumb_width); ?>"
|
78 |
+
data-height="<?php echo esc_attr($image_thumb_height); ?>"
|
79 |
+
alt="<?php echo esc_attr($image_row->alt); ?>"
|
80 |
+
title="<?php echo esc_attr($image_row->alt); ?>" />
|
81 |
+
<?php
|
82 |
+
if ( $is_zoom_hover_effect ) {
|
83 |
+
echo '<div class="bwg-zoom-effect-overlay">';
|
84 |
+
}
|
85 |
+
if ( $play_icon && $is_embed_video ) { ?>
|
86 |
+
<span class="bwg_mosaic_play_icon_spun_<?php echo esc_attr($bwg); ?>">
|
87 |
+
<i title="<?php _e('Play', 'photo-gallery'); ?>" class="bwg-icon-play bwg_mosaic_play_icon_<?php echo esc_attr($bwg); ?>"></i>
|
88 |
+
</span>
|
89 |
+
<?php
|
90 |
+
}
|
91 |
+
if ($params['image_title'] == 'hover' || $params['image_title'] == 'show') {
|
92 |
+
?>
|
93 |
+
<span class="bwg_mosaic_title_spun1_<?php echo esc_attr($bwg); ?>">
|
94 |
+
<span class="bwg_mosaic_title_spun2_<?php echo esc_attr($bwg); ?>">
|
95 |
+
<?php echo htmlspecialchars_decode($image_row->alt, ENT_COMPAT | ENT_QUOTES); ?>
|
96 |
+
</span>
|
97 |
+
</span>
|
98 |
+
<?php
|
99 |
+
}
|
100 |
+
if ( function_exists('BWGEC') && $params['ecommerce_icon'] == 'hover' && $image_row->pricelist_id ) {
|
101 |
+
?>
|
102 |
+
<span class="bwg_ecommerce_spun1_<?php echo esc_attr($bwg); ?>">
|
103 |
+
<span class="bwg_ecommerce_spun2_<?php echo esc_attr($bwg); ?>">
|
104 |
+
<i title="<?php _e('Open', 'photo-gallery'); ?>" class="bwg-icon-sign-out bwg_ctrl_btn bwg_open"></i>
|
105 |
+
<i title="<?php _e('Ecommerce', 'photo-gallery'); ?>" class="bwg-icon-shopping-cart bwg_ctrl_btn bwg_ecommerce"></i>
|
106 |
+
</span>
|
107 |
+
</span>
|
108 |
+
<?php
|
109 |
+
}
|
110 |
+
if ( $is_zoom_hover_effect ) {
|
111 |
+
echo '</div>';
|
112 |
+
}
|
113 |
+
?>
|
114 |
+
</div>
|
115 |
+
</a>
|
116 |
+
<?php } ?>
|
117 |
+
</div>
|
118 |
+
</div>
|
119 |
+
<?php
|
120 |
+
$content = ob_get_clean();
|
121 |
+
|
122 |
+
/* Set theme parameters for Gallery/Gallery group title/description.*/
|
123 |
+
$theme_row->thumb_gal_title_font_size = $theme_row->mosaic_thumb_gal_title_font_size;
|
124 |
+
$theme_row->thumb_gal_title_font_color = $theme_row->mosaic_thumb_gal_title_font_color;
|
125 |
+
$theme_row->thumb_gal_title_font_style = $theme_row->mosaic_thumb_gal_title_font_style;
|
126 |
+
$theme_row->thumb_gal_title_font_weight = $theme_row->mosaic_thumb_gal_title_font_weight;
|
127 |
+
$theme_row->thumb_gal_title_shadow = $theme_row->mosaic_thumb_gal_title_shadow;
|
128 |
+
$theme_row->thumb_gal_title_margin = $theme_row->mosaic_thumb_gal_title_margin;
|
129 |
+
$theme_row->thumb_gal_title_align = $theme_row->mosaic_thumb_gal_title_align;
|
130 |
+
|
131 |
+
if ( $ajax ) { /* Ajax response after ajax call for filters and pagination.*/
|
132 |
+
parent::ajax_content($params, $bwg, $content);
|
133 |
+
}
|
134 |
+
else {
|
135 |
+
parent::container($params, $bwg, $content);
|
136 |
+
}
|
137 |
+
}
|
138 |
+
|
139 |
+
/**
|
140 |
+
* Get inline styles.
|
141 |
+
*
|
142 |
+
* @param int $bwg
|
143 |
+
* @param array $theme_row
|
144 |
+
* @param array $params
|
145 |
+
* @return string
|
146 |
+
*/
|
147 |
+
public function inline_styles( $bwg = 0, $theme_row = array(), $params = array() ) {
|
148 |
+
ob_start();
|
149 |
+
$rgb_thumbs_bg_color = WDWLibrary::spider_hex2rgb($theme_row->mosaic_thumbs_bg_color);
|
150 |
+
?>
|
151 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> #bwg_mosaic_thumbnails_div_<?php echo esc_attr($bwg); ?> {
|
152 |
+
width: 100%;
|
153 |
+
position: relative;
|
154 |
+
background-color: rgba(<?php echo esc_html($rgb_thumbs_bg_color['red']); ?>, <?php echo esc_html($rgb_thumbs_bg_color['green']); ?>, <?php echo esc_html($rgb_thumbs_bg_color['blue']); ?>, <?php echo number_format($theme_row->mosaic_thumb_bg_transparent / 100, 2, ".", ""); ?>);
|
155 |
+
text-align: <?php echo esc_html($theme_row->mosaic_thumb_align); ?>;
|
156 |
+
justify-content: <?php echo esc_html($theme_row->mosaic_thumb_align); ?>;
|
157 |
+
<?php
|
158 |
+
if ( $theme_row->thumb_align == 'center' ) {
|
159 |
+
?>
|
160 |
+
margin-left: auto;
|
161 |
+
margin-right: auto;
|
162 |
+
<?php
|
163 |
+
}
|
164 |
+
elseif ( $theme_row->thumb_align == 'left') {
|
165 |
+
?>
|
166 |
+
margin-right: auto;
|
167 |
+
<?php
|
168 |
+
}
|
169 |
+
else {
|
170 |
+
?>
|
171 |
+
margin-left: auto;
|
172 |
+
<?php
|
173 |
+
}
|
174 |
+
if ( $theme_row->mosaic_container_margin ) {
|
175 |
+
?>
|
176 |
+
padding-left: <?php echo esc_html($theme_row->mosaic_thumb_padding); ?>px;
|
177 |
+
padding-top: <?php echo esc_html($theme_row->mosaic_thumb_padding); ?>px;
|
178 |
+
<?php
|
179 |
+
}
|
180 |
+
?>
|
181 |
+
}
|
182 |
+
|
183 |
+
<?php
|
184 |
+
if (!$theme_row->mosaic_container_margin && $theme_row->mosaic_thumb_padding) {
|
185 |
+
?>
|
186 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_mosaic_thumbnails_<?php echo esc_attr($bwg); ?> {
|
187 |
+
overflow: hidden;
|
188 |
+
}
|
189 |
+
<?php
|
190 |
+
}
|
191 |
+
?>
|
192 |
+
|
193 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_mosaic_thumb_spun_<?php echo esc_attr($bwg); ?> {
|
194 |
+
display: block;
|
195 |
+
position: absolute;
|
196 |
+
border-radius: <?php echo esc_html($theme_row->mosaic_thumb_border_radius); ?>;
|
197 |
+
border: <?php echo esc_html($theme_row->mosaic_thumb_border_width); ?>px <?php echo esc_html($theme_row->mosaic_thumb_border_style); ?> #<?php echo esc_html($theme_row->mosaic_thumb_border_color); ?>;
|
198 |
+
<?php $thumb_bg_color = WDWLibrary::spider_hex2rgb( $theme_row->mosaic_thumb_bg_color ); ?>
|
199 |
+
background-color:rgba(<?php echo esc_html($thumb_bg_color['red'] .','. $thumb_bg_color['green'] . ',' . $thumb_bg_color['blue'] . ', '.number_format($theme_row->mosaic_thumb_bg_transparency / 100, 2, ".", "")); ?>);
|
200 |
+
-moz-box-sizing: content-box !important;
|
201 |
+
-webkit-box-sizing: content-box !important;
|
202 |
+
box-sizing: content-box !important;
|
203 |
+
}
|
204 |
+
|
205 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_mosaic_thumb_<?php echo esc_attr($bwg); ?> {
|
206 |
+
display: block;
|
207 |
+
-moz-box-sizing: content-box !important;
|
208 |
+
-webkit-box-sizing: content-box !important;
|
209 |
+
box-sizing: content-box !important;
|
210 |
+
margin: 0;
|
211 |
+
opacity: <?php echo number_format($theme_row->mosaic_thumb_transparent / 100, 2, ".", ""); ?>;
|
212 |
+
}
|
213 |
+
|
214 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_mosaic_thumb_spun_<?php echo esc_attr($bwg); ?>:hover {
|
215 |
+
opacity: 1;
|
216 |
+
backface-visibility: hidden;
|
217 |
+
-webkit-backface-visibility: hidden;
|
218 |
+
-moz-backface-visibility: hidden;
|
219 |
+
-ms-backface-visibility: hidden;
|
220 |
+
z-index: 102;
|
221 |
+
}
|
222 |
+
|
223 |
+
<?php if ( $theme_row->mosaic_thumb_hover_effect == 'zoom' ) { ?>
|
224 |
+
@media only screen and (min-width: 480px) {
|
225 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-mosaic-thumbnails .bwg-item0 img {
|
226 |
+
<?php echo ($theme_row->mosaic_thumb_transition) ? '-webkit-transition: -webkit-transform .3s; transition: transform .3s;' : ''; ?>
|
227 |
+
}
|
228 |
+
|
229 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-container-<?php echo esc_attr($bwg); ?>.bwg-mosaic-thumbnails .bwg-item0 img:hover {
|
230 |
+
-ms-transform: scale(<?php echo esc_html($theme_row->mosaic_thumb_hover_effect_value); ?>);
|
231 |
+
-webkit-transform: scale(<?php echo esc_html($theme_row->mosaic_thumb_hover_effect_value); ?>);
|
232 |
+
transform: scale(<?php echo esc_html($theme_row->mosaic_thumb_hover_effect_value); ?>);
|
233 |
+
}
|
234 |
+
<?php if ( $params['image_title'] == 'hover' ) { ?>
|
235 |
+
.bwg-mosaic-thumbnails .bwg-zoom-effect .bwg-zoom-effect-overlay {
|
236 |
+
<?php $thumb_bg_color = WDWLibrary::spider_hex2rgb( $theme_row->mosaic_thumb_bg_color ); ?>
|
237 |
+
background-color:rgba(<?php echo esc_html($thumb_bg_color['red'] .','. $thumb_bg_color['green'] . ',' . $thumb_bg_color['blue'] . ', 0.3'); ?>);
|
238 |
+
}
|
239 |
+
.bwg-mosaic-thumbnails .bwg-zoom-effect:hover img {
|
240 |
+
-ms-transform: scale(<?php echo esc_html($theme_row->thumb_hover_effect_value); ?>);
|
241 |
+
-webkit-transform: scale(<?php echo esc_html($theme_row->thumb_hover_effect_value); ?>);
|
242 |
+
transform: scale(<?php echo esc_html($theme_row->thumb_hover_effect_value); ?>);
|
243 |
+
}
|
244 |
+
<?php } ?>
|
245 |
+
}
|
246 |
+
<?php }
|
247 |
+
else { ?>
|
248 |
+
@media only screen and (min-width: 480px) {
|
249 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_mosaic_thumb_spun_<?php echo esc_attr($bwg); ?>:hover {
|
250 |
+
transform: <?php echo esc_html($theme_row->mosaic_thumb_hover_effect); ?>(<?php echo esc_html($theme_row->mosaic_thumb_hover_effect_value); ?>);
|
251 |
+
-ms-transform: <?php echo esc_html($theme_row->mosaic_thumb_hover_effect); ?>(<?php echo esc_html($theme_row->mosaic_thumb_hover_effect_value); ?>);
|
252 |
+
-webkit-transform: <?php echo esc_html($theme_row->mosaic_thumb_hover_effect); ?>(<?php echo esc_html($theme_row->mosaic_thumb_hover_effect_value); ?>);
|
253 |
+
}
|
254 |
+
}
|
255 |
+
<?php } ?>
|
256 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_mosaic_thumbnails_<?php echo esc_attr($bwg); ?> {
|
257 |
+
background-color: rgba(<?php echo esc_html($rgb_thumbs_bg_color['red']); ?>, <?php echo esc_html($rgb_thumbs_bg_color['green']); ?>, <?php echo esc_html($rgb_thumbs_bg_color['blue']); ?>, <?php echo number_format($theme_row->mosaic_thumb_bg_transparent / 100, 2, ".", ""); ?>);
|
258 |
+
font-size: 0;
|
259 |
+
position: relative;
|
260 |
+
text-align: <?php echo esc_html($theme_row->mosaic_thumb_align); ?>;
|
261 |
+
display: inline-block;
|
262 |
+
visibility: hidden;
|
263 |
+
<?php
|
264 |
+
if ( !$theme_row->mosaic_container_margin ) {
|
265 |
+
?>
|
266 |
+
margin-right: -<?php echo esc_html($theme_row->mosaic_thumb_padding); ?>px;
|
267 |
+
<?php
|
268 |
+
}
|
269 |
+
?>
|
270 |
+
}
|
271 |
+
|
272 |
+
/*image title styles*/
|
273 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_mosaic_title_spun1_<?php echo esc_attr($bwg); ?>,
|
274 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-mosaic-thumbnails .bwg_ecommerce_spun1_<?php echo esc_attr($bwg); ?> {
|
275 |
+
position: absolute;
|
276 |
+
display: block;
|
277 |
+
opacity: 0;
|
278 |
+
box-sizing: border-box;
|
279 |
+
text-align: center;
|
280 |
+
top: 50%;
|
281 |
+
left: 50%;
|
282 |
+
transform: translate(-50%, -50%);
|
283 |
+
}
|
284 |
+
|
285 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-mosaic-thumbnails .bwg_mosaic_title_spun2_<?php echo esc_attr($bwg); ?>,
|
286 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-mosaic-thumbnails .bwg_ecommerce_spun2_<?php echo esc_attr($bwg); ?> {
|
287 |
+
color: #<?php echo ( esc_html($params['image_title']) == 'hover') ? (isset($theme_row->mosaic_thumb_title_font_color_hover) ? esc_html($theme_row->mosaic_thumb_title_font_color_hover) : esc_html($theme_row->mosaic_thumb_title_font_color)) : esc_html($theme_row->mosaic_thumb_title_font_color); ?>;
|
288 |
+
font-family: <?php echo esc_html($theme_row->mosaic_thumb_title_font_style); ?>;
|
289 |
+
font-size: <?php echo esc_html($theme_row->mosaic_thumb_title_font_size); ?>px;
|
290 |
+
font-weight: <?php echo esc_html($theme_row->mosaic_thumb_title_font_weight); ?>;
|
291 |
+
text-shadow: <?php echo esc_html($theme_row->mosaic_thumb_title_shadow); ?>;
|
292 |
+
vertical-align: middle;
|
293 |
+
word-wrap: break-word;
|
294 |
+
}
|
295 |
+
|
296 |
+
<?php if( function_exists('BWGEC') && $params['ecommerce_icon'] == 'hover') { ?>
|
297 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-mosaic-thumbnails .bwg_ecommerce_spun1_<?php echo esc_attr($bwg); ?>,
|
298 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg-mosaic-thumbnails .bwg_ecommerce_spun2_<?php echo esc_attr($bwg); ?>, #bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_ecommerce_spun2_<?php echo esc_attr($bwg); ?> i {
|
299 |
+
opacity: 1 !important;
|
300 |
+
font-size: 20px !important;
|
301 |
+
z-index: 45;
|
302 |
+
}
|
303 |
+
|
304 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_mosaic_thumb_spun_<?php echo esc_attr($bwg); ?>:hover img {
|
305 |
+
opacity: 0.5;
|
306 |
+
}
|
307 |
+
|
308 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_mosaic_thumb_spun_<?php echo esc_attr($bwg); ?>:hover {
|
309 |
+
background: #000;
|
310 |
+
}
|
311 |
+
|
312 |
+
<?php } ?>
|
313 |
+
.bwg_mosaic_play_icon_spun_<?php echo esc_attr($bwg); ?> {
|
314 |
+
display: table;
|
315 |
+
position: absolute;
|
316 |
+
left: -10000px;
|
317 |
+
top: 0px;
|
318 |
+
opacity: 0;
|
319 |
+
}
|
320 |
+
|
321 |
+
.bwg_mosaic_play_icon_<?php echo esc_attr($bwg); ?> {
|
322 |
+
color: #<?php echo esc_html($theme_row->mosaic_thumb_title_font_color); ?>;
|
323 |
+
font-size: <?php echo esc_html(2 * $theme_row->mosaic_thumb_title_font_size); ?>px;
|
324 |
+
vertical-align: middle;
|
325 |
+
display: table-cell !important;
|
326 |
+
z-index: 1;
|
327 |
+
text-align: center;
|
328 |
+
margin: 0 auto;
|
329 |
+
}
|
330 |
+
|
331 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> .bwg_gal_title_<?php echo esc_attr($bwg); ?> {
|
332 |
+
background-color: rgba(0, 0, 0, 0);
|
333 |
+
color: #<?php echo esc_html($theme_row->mosaic_thumb_gal_title_font_color); ?>;
|
334 |
+
display: block;
|
335 |
+
font-family: <?php echo esc_html($theme_row->mosaic_thumb_gal_title_font_style); ?>;
|
336 |
+
font-size: <?php echo esc_html($theme_row->mosaic_thumb_gal_title_font_size); ?>px;
|
337 |
+
font-weight: <?php echo esc_html($theme_row->mosaic_thumb_gal_title_font_weight); ?>;
|
338 |
+
padding: <?php echo esc_html($theme_row->mosaic_thumb_gal_title_margin); ?>;
|
339 |
+
text-shadow: <?php echo esc_html($theme_row->mosaic_thumb_gal_title_shadow); ?>;
|
340 |
+
text-align: <?php echo esc_html($theme_row->mosaic_thumb_gal_title_align); ?>;
|
341 |
+
}
|
342 |
+
<?php
|
343 |
+
|
344 |
+
if( $params["mosaic_hor_ver"] == "vertical" ) {
|
345 |
+
?>
|
346 |
+
@media screen and (max-width: <?php echo esc_html($params['thumb_width'] + 100); ?>px) {
|
347 |
+
div[class^="bwg_mosaic_thumbnails_"],
|
348 |
+
span[class^="bwg_mosaic_thumb_spun_"] {
|
349 |
+
width: 100% !important;
|
350 |
+
}
|
351 |
+
img[class^="bwg_mosaic_thumb_"] {
|
352 |
+
width: 100% !important;
|
353 |
+
height: auto !important;
|
354 |
+
margin: 0px auto !important;
|
355 |
+
}
|
356 |
+
}
|
357 |
+
<?php
|
358 |
+
}
|
359 |
+
return ob_get_clean();
|
360 |
+
}
|
361 |
+
}
|
frontend/views/BWGViewWidget.php
ADDED
@@ -0,0 +1,207 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class BWGViewWidgetFrontEnd {
|
3 |
+
private $model;
|
4 |
+
|
5 |
+
public function __construct($model) {
|
6 |
+
$this->model = $model;
|
7 |
+
}
|
8 |
+
|
9 |
+
public function view_tags($params = array()) {
|
10 |
+
global $wp;
|
11 |
+
$current_url = $wp->query_string;
|
12 |
+
$type = isset($params["type"]) ? $params["type"] : 'text';
|
13 |
+
$bwg = isset($params["bwg"]) ? $params["bwg"] : 0;
|
14 |
+
$show_name = isset($params["show_name"]) ? $params["show_name"] : 0;
|
15 |
+
$open_option = isset($params["open_option"]) ? $params["open_option"] : 'page';
|
16 |
+
$count = isset($params["count"]) ? $params["count"] : 0;
|
17 |
+
$width = isset($params["width"]) ? $params["width"] : 250;
|
18 |
+
$height = isset($params["height"]) ? $params["height"] : 250;
|
19 |
+
$background_transparent = isset($params["background_transparent"]) ? $params["background_transparent"] : 1;
|
20 |
+
$background_color = isset($params["background_color"]) ? $params["background_color"] : "000000";
|
21 |
+
$text_color = isset($params["text_color"]) ? $params["text_color"] : "eeeeee";
|
22 |
+
$theme_id = isset($params["theme_id"]) ? $params["theme_id"] : 0;
|
23 |
+
|
24 |
+
$tags = $this->model->get_tags_data($count);
|
25 |
+
|
26 |
+
require_once BWG()->plugin_dir . "/frontend/models/model.php";
|
27 |
+
$model_site = new BWGModelSite();
|
28 |
+
$theme_row = $model_site->get_theme_row_data($theme_id);
|
29 |
+
|
30 |
+
ob_start();
|
31 |
+
?>
|
32 |
+
@media screen and (max-width: <?php echo esc_html($width) ?>px) {
|
33 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> #tags_cloud_item_<?php echo esc_attr($bwg); ?> {
|
34 |
+
display: none;
|
35 |
+
}
|
36 |
+
}
|
37 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> #tags_cloud_item_<?php echo esc_attr($bwg); ?> {
|
38 |
+
width:<?php echo esc_html($width) ?>px;
|
39 |
+
height:<?php echo esc_html($height) ?>px;
|
40 |
+
margin:0 auto;
|
41 |
+
overflow: hidden;
|
42 |
+
position: relative;
|
43 |
+
background-color: <?php echo esc_html($background_transparent ? 'transparent' : '#' . $background_color); ?>;
|
44 |
+
color: #<?php echo esc_html($text_color) ?> !important;
|
45 |
+
max-width: 100%;
|
46 |
+
}
|
47 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> #tags_cloud_item_<?php echo esc_attr($bwg); ?> ul {
|
48 |
+
list-style-type: none;
|
49 |
+
}
|
50 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> #tags_cloud_item_<?php echo esc_attr($bwg); ?> ul li:before {
|
51 |
+
content: "";
|
52 |
+
}
|
53 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> #tags_cloud_item_<?php echo esc_attr($bwg); ?> ul li a {
|
54 |
+
color: inherit !important;
|
55 |
+
}
|
56 |
+
#bwg_container1_<?php echo esc_attr($bwg); ?> #bwg_container2_<?php echo esc_attr($bwg); ?> #tags_cloud_item_<?php echo esc_attr($bwg); ?> .bwg_link_widget {
|
57 |
+
text-decoration: none;
|
58 |
+
color: #<?php echo esc_html($text_color); ?> !important;
|
59 |
+
cursor: pointer;
|
60 |
+
font-size: inherit !important;
|
61 |
+
}
|
62 |
+
<?php
|
63 |
+
$inline_style = ob_get_clean();
|
64 |
+
$lazyload = BWG()->options->lazyload_images;
|
65 |
+
if ( !WDWLibrary::elementor_is_active() ) {
|
66 |
+
if ( BWG()->options->use_inline_stiles_and_scripts) {
|
67 |
+
wp_enqueue_style('bwg_frontend');
|
68 |
+
wp_add_inline_style('bwg_frontend', $inline_style);
|
69 |
+
|
70 |
+
if (!wp_script_is('bwg_frontend', 'done')) {
|
71 |
+
wp_print_scripts('bwg_frontend');
|
72 |
+
}
|
73 |
+
if (!wp_script_is('mCustomScrollbar', 'done')) {
|
74 |
+
wp_print_scripts('mCustomScrollbar');
|
75 |
+
}
|
76 |
+
if (!wp_script_is('jquery-fullscreen', 'done')) {
|
77 |
+
wp_print_scripts('jquery-fullscreen');
|
78 |
+
}
|
79 |
+
if (!wp_script_is('bwg_gallery_box', 'done')) {
|
80 |
+
wp_print_scripts('bwg_gallery_box');
|
81 |
+
}
|
82 |
+
if(!wp_script_is('bwg_raty', 'done')) {
|
83 |
+
wp_print_scripts('bwg_raty');
|
84 |
+
}
|
85 |
+
if (!wp_script_is('jquery-mobile', 'done')) {
|
86 |
+
wp_print_scripts('jquery-mobile');
|
87 |
+
}
|
88 |
+
if (!wp_script_is('bwg_3DEngine', 'done')) {
|
89 |
+
wp_print_scripts('bwg_3DEngine');
|
90 |
+
}
|
91 |
+
}
|
92 |
+
else {
|
93 |
+
echo wp_kses('<style id="bwg-style-' . esc_attr($bwg) . '">' . $inline_style . '</style>', array('style' => array('id' => true)));
|
94 |
+
}
|
95 |
+
}
|
96 |
+
else {
|
97 |
+
echo wp_kses('<style id="bwg-style-' . esc_attr($bwg) . '">' . $inline_style . '</style>', array('style' => array('id' => true)));
|
98 |
+
}
|
99 |
+
?>
|
100 |
+
<script type="text/javascript">
|
101 |
+
jQuery(function() {
|
102 |
+
if (jQuery("#tags_cloud_item_<?php echo esc_attr($bwg); ?> ul li").length > 0) {
|
103 |
+
var container = jQuery("#tags_cloud_item_<?php echo esc_attr($bwg); ?>");
|
104 |
+
var camera = new Camera3D();
|
105 |
+
camera.init(0, 0, 0, (container.width() + container.height()) / 2);
|
106 |
+
var tags_cloud_item = new Object3D(container);
|
107 |
+
radius = (container.height() > container.width() ? container.width() : container.height());
|
108 |
+
tags_cloud_item.addChild(new Sphere(radius * 0.35, <?php echo esc_html(sqrt(count($tags))) ?>, <?php echo esc_html(count($tags)) ?>));
|
109 |
+
var scene = new Scene3D();
|
110 |
+
scene.addToScene(tags_cloud_item);
|
111 |
+
var mouseX = 20;
|
112 |
+
var mouseY = 30;
|
113 |
+
var offsetX = container.offset().left;
|
114 |
+
var offsetY = container.offset().top;
|
115 |
+
var speed = 6000;
|
116 |
+
container.mousemove(function (e) {
|
117 |
+
offsetX = container.offset().left;
|
118 |
+
offsetY = container.offset().top;
|
119 |
+
mouseX = (e.clientX + jQuery(window).scrollLeft() - offsetX - (container.width() / 2)) % container.width();
|
120 |
+
mouseY = (e.clientY + jQuery(window).scrollTop() - offsetY - (container.height() / 2)) % container.height();
|
121 |
+
});
|
122 |
+
var animateIt = function () {
|
123 |
+
if (mouseX != undefined) {
|
124 |
+
axisRotation.y += (mouseX) / speed;
|
125 |
+
}
|
126 |
+
if (mouseY != undefined) {
|
127 |
+
axisRotation.x -= mouseY / speed;
|
128 |
+
}
|
129 |
+
scene.renderCamera(camera);
|
130 |
+
};
|
131 |
+
setInterval(animateIt, 60);
|
132 |
+
jQuery("#tags_cloud_item_<?php echo esc_attr($bwg); ?>").attr("style", "visibility: visible;");
|
133 |
+
}
|
134 |
+
});
|
135 |
+
</script>
|
136 |
+
<div id="bwg_container1_<?php echo esc_attr($bwg); ?>">
|
137 |
+
<div id="bwg_container2_<?php echo esc_attr($bwg); ?>">
|
138 |
+
<div id="tags_cloud_item_<?php echo esc_attr($bwg); ?>" style="visibility: hidden;">
|
139 |
+
<ul>
|
140 |
+
<?php
|
141 |
+
foreach ($tags as $tag) {
|
142 |
+
if ($open_option == 'lightbox') {
|
143 |
+
$params_array = array(
|
144 |
+
'action' => 'GalleryBox',
|
145 |
+
'current_view' => $bwg,
|
146 |
+
'image_id' => $tag->image_id,
|
147 |
+
'tag' => $tag->term_id,
|
148 |
+
'theme_id' => $theme_id,
|
149 |
+
'current_url' => $current_url,
|
150 |
+
'shortcode_id' => 0,
|
151 |
+
);
|
152 |
+
if ($type == 'text') {
|
153 |
+
?>
|
154 |
+
<li><a class="bwg_link_widget" onclick="spider_createpopup('<?php echo addslashes(add_query_arg($params_array, admin_url('admin-ajax.php'))); ?>', '<?php echo esc_attr($bwg); ?>', '800', '600', 1, 'testpopup', 5, '<?php echo esc_html($theme_row->lightbox_ctrl_btn_pos) ;?>'); return false;"><?php echo esc_html($tag->name); ?></a></li>
|
155 |
+
<?php
|
156 |
+
}
|
157 |
+
else {
|
158 |
+
|
159 |
+
$is_embed = preg_match('/EMBED/',$tag->filetype)==1 ? true :false;
|
160 |
+
|
161 |
+
?>
|
162 |
+
<li style="text-align: center;">
|
163 |
+
<a class="bwg-a bwg_link_widget" onclick="spider_createpopup('<?php echo addslashes(add_query_arg($params_array, admin_url('admin-ajax.php'))); ?>', '<?php echo esc_attr($bwg); ?>', '800', '600', 1, 'testpopup', 5, '<?php echo esc_html($theme_row->lightbox_ctrl_btn_pos) ;?>'); return false;">
|
164 |
+
<img class="skip-lazy <?php if( $lazyload ) { ?> bwg_lazyload <?php } ?>"
|
165 |
+
id="imgg"
|
166 |
+
src="<?php if( !$lazyload ) { echo ( esc_html($is_embed) ? "" : esc_url(BWG()->upload_url) . $tag->thumb_url); } else { echo esc_url(BWG()->plugin_url."/images/lazy_placeholder.gif"); } ?>"
|
167 |
+
data-src="<?php echo ( $is_embed ? "" : esc_url(BWG()->upload_url)) . esc_url($tag->thumb_url); ?>"
|
168 |
+
alt="<?php echo esc_attr($tag->name) ?>"
|
169 |
+
title="<?php echo $show_name ? '' : esc_attr($tag->name); ?>" />
|
170 |
+
<?php echo $show_name ? '<br />' . esc_html($tag->name) : ''; ?>
|
171 |
+
</a></li>
|
172 |
+
<?php
|
173 |
+
}
|
174 |
+
}
|
175 |
+
else {
|
176 |
+
if ($type == 'text') {
|
177 |
+
?>
|
178 |
+
<li><a class="tag_cloud_link" href="<?php echo esc_url($tag->permalink); ?>"><?php echo esc_html($tag->name); ?></a></li>
|
179 |
+
<?php
|
180 |
+
}
|
181 |
+
else {
|
182 |
+
$is_embed = preg_match('/EMBED/', $tag->filetype) == 1 ? true : false;
|
183 |
+
?>
|
184 |
+
<li style="text-align: center;">
|
185 |
+
<a class="bwg-a bwg_link_widget" href="<?php echo esc_url($tag->permalink); ?>">
|
186 |
+
<img class="skip-lazy <?php if( $lazyload ) { ?> bwg_lazyload <?php } ?>"
|
187 |
+
id="imgg"
|
188 |
+
src="<?php if( !$lazyload ) { echo ( esc_html($is_embed) ? "" : esc_url(BWG()->upload_url)) . esc_url($tag->thumb_url); } else { echo esc_url(BWG()->plugin_url."/images/lazy_placeholder.gif"); } ?>"
|
189 |
+
data-src="<?php echo ( esc_html($is_embed) ? "" : esc_url(BWG()->upload_url)) . esc_url($tag->thumb_url);?>"
|
190 |
+
alt="<?php echo esc_attr($tag->name); ?>"
|
191 |
+
title="<?php echo $show_name ? '' : esc_attr($tag->name); ?>" />
|
192 |
+
<?php echo $show_name ? '<br />' . esc_html($tag->name) : ''; ?>
|
193 |
+
</a></li>
|
194 |
+
<?php
|
195 |
+
}
|
196 |
+
}
|
197 |
+
}
|
198 |
+
?>
|
199 |
+
</ul>
|
200 |
+
</div>
|
201 |
+
<div id="bwg_spider_popup_loading_<?php echo esc_attr($bwg); ?>" class="bwg_spider_popup_loading"></div>
|
202 |
+
<div id="spider_popup_overlay_<?php echo esc_attr($bwg); ?>" class="spider_popup_overlay" onclick="spider_destroypopup(1000)"></div>
|
203 |
+
</div>
|
204 |
+
</div>
|
205 |
+
<?php
|
206 |
+
}
|
207 |
+
}
|
images/check_green_bg.svg
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<svg id="Checkmark_Icon_2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="22" height="22" viewBox="0 0 22 22">
|
2 |
+
<defs>
|
3 |
+
<clipPath id="clip-path">
|
4 |
+
<rect id="Rectangle_48150" data-name="Rectangle 48150" width="22" height="22" fill="#fff"/>
|
5 |
+
</clipPath>
|
6 |
+
</defs>
|
7 |
+
<g id="Mask_Group_1304" data-name="Mask Group 1304" clip-path="url(#clip-path)">
|
8 |
+
<g id="Group_94669" data-name="Group 94669" transform="translate(3.667 3.667)">
|
9 |
+
<path id="Success_Done_Checkmark_Icon" d="M26.167,18.833A7.333,7.333,0,1,1,18.833,11.5,7.342,7.342,0,0,1,26.167,18.833Z" transform="translate(-11.5 -11.5)" fill="#23b536"/>
|
10 |
+
<path id="Success_Done_Checkmark_Icon-2" data-name="Success_Done_Checkmark_Icon" d="M22.176,15.662a.677.677,0,0,0-1.031,0L17.657,19.15a.59.59,0,0,1-.357.159.43.43,0,0,1-.357-.159l-1.586-1.586a.609.609,0,0,0-.515-.2.754.754,0,0,0-.515.2.742.742,0,0,0,0,1.031l2.458,2.458a.835.835,0,0,0,.515.2.754.754,0,0,0,.515-.2l4.36-4.36A.677.677,0,0,0,22.176,15.662Z" transform="translate(-10.918 -10.628)" fill="#fafafa"/>
|
11 |
+
</g>
|
12 |
+
</g>
|
13 |
+
</svg>
|
images/gallery_list_img_green.png
DELETED
Binary file
|
images/instagram-connect.png
ADDED
Binary file
|
images/speed/close_dark.svg
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<svg id="Close_Error_Icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="22" height="22" viewBox="0 0 22 22">
|
2 |
+
<defs>
|
3 |
+
<clipPath id="clip-path">
|
4 |
+
<rect id="Rectangle_47801" data-name="Rectangle 47801" width="22" height="22" fill="#323a45"/>
|
5 |
+
</clipPath>
|
6 |
+
</defs>
|
7 |
+
<g id="Close_Error_Icon-2" data-name="Close_Error_Icon" clip-path="url(#clip-path)">
|
8 |
+
<path id="Subtraction_23" data-name="Subtraction 23" d="M7.333,14.667a7.334,7.334,0,1,1,7.334-7.334A7.342,7.342,0,0,1,7.333,14.667ZM4.9,3.881a.8.8,0,0,0-.607.331A.857.857,0,0,0,4.43,5.341L6.213,7.124,4.225,9.113a.921.921,0,0,0-.25.635.924.924,0,0,0,.246.521l.047.047.035.035a.723.723,0,0,0,.458.154.922.922,0,0,0,.645-.267L7.338,8.305l1.919,1.919a.808.808,0,0,0,.6.218h.01a.846.846,0,0,0,.607-.332.888.888,0,0,0-.134-1.128L8.5,7.144l1.768-1.768a.924.924,0,0,0,.249-.634.914.914,0,0,0-.246-.521l-.053-.054-.029-.028a.712.712,0,0,0-.458-.154.915.915,0,0,0-.643.269L7.374,5.964,5.536,4.125a.91.91,0,0,0-.626-.244Z" transform="translate(3.666 3.665)" fill="#323a45"/>
|
9 |
+
</g>
|
10 |
+
</svg>
|
images/speed/close_error.svg
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="22" height="22" viewBox="0 0 22 22">
|
2 |
+
<defs>
|
3 |
+
<clipPath id="clip-path">
|
4 |
+
<rect id="Rectangle_47801" data-name="Rectangle 47801" width="22" height="22" fill="#323a45"/>
|
5 |
+
</clipPath>
|
6 |
+
</defs>
|
7 |
+
<g id="Close_Error_Icon" opacity="0.5">
|
8 |
+
<g id="Close_Error_Icon-2" data-name="Close_Error_Icon" clip-path="url(#clip-path)">
|
9 |
+
<path id="Subtraction_23" data-name="Subtraction 23" d="M7.333,14.667a7.334,7.334,0,1,1,7.334-7.334A7.342,7.342,0,0,1,7.333,14.667ZM4.9,3.881a.8.8,0,0,0-.607.331A.857.857,0,0,0,4.43,5.341L6.213,7.124,4.225,9.113a.921.921,0,0,0-.25.635.924.924,0,0,0,.246.521l.047.047.035.035a.723.723,0,0,0,.458.154.922.922,0,0,0,.645-.267L7.338,8.305l1.919,1.919a.808.808,0,0,0,.6.218h.01a.846.846,0,0,0,.607-.332.888.888,0,0,0-.134-1.128L8.5,7.144l1.768-1.768a.924.924,0,0,0,.249-.634.914.914,0,0,0-.246-.521l-.053-.054-.029-.028a.712.712,0,0,0-.458-.154.915.915,0,0,0-.643.269L7.374,5.964,5.536,4.125a.91.91,0,0,0-.626-.244Z" transform="translate(3.666 3.665)" fill="#323a45"/>
|
10 |
+
</g>
|
11 |
+
</g>
|
12 |
+
</svg>
|
images/speed/desktop.svg
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18" viewBox="0 0 18 18">
|
2 |
+
<defs>
|
3 |
+
<clipPath id="clip-path">
|
4 |
+
<rect id="Rectangle_49884" data-name="Rectangle 49884" width="18" height="18" transform="translate(2005 389)" fill="#fff"/>
|
5 |
+
</clipPath>
|
6 |
+
<linearGradient id="linear-gradient" y1="0.5" x2="1.131" y2="0.5" gradientUnits="objectBoundingBox">
|
7 |
+
<stop offset="0" stop-color="#fff"/>
|
8 |
+
<stop offset="1" stop-color="#fff" stop-opacity="0"/>
|
9 |
+
</linearGradient>
|
10 |
+
</defs>
|
11 |
+
<g id="Mask_Group_95205" data-name="Mask Group 95205" transform="translate(-2005 -389)" opacity="0.8" clip-path="url(#clip-path)">
|
12 |
+
<path id="design_system_icons-34" data-name="design system icons-34" d="M9.419.77V13.48a.773.773,0,0,1-.77.77H.77A.773.773,0,0,1,0,13.48V.77A.773.773,0,0,1,.77,0H8.688A.766.766,0,0,1,9.419.77Z" transform="translate(2021.122 392.482) rotate(90)" fill="url(#linear-gradient)"/>
|
13 |
+
<path id="Union_721" data-name="Union 721" d="M.4,11.219a.4.4,0,0,1-.4-.4v-1a.4.4,0,0,1,.4-.4H2.6a.773.773,0,0,1-.734-.769V.77A.773.773,0,0,1,2.641,0H15.352a.773.773,0,0,1,.77.77V8.688a.765.765,0,0,1-.734.731H17.6a.4.4,0,0,1,.4.4v1a.4.4,0,0,1-.4.4ZM14.2,8.3V1.117H3.836V8.3ZM3.836,8.3H3.8Z" transform="translate(2005 392.481)" fill="#343b46"/>
|
14 |
+
</g>
|
15 |
+
</svg>
|
images/speed/google_spinner.svg
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36">
|
2 |
+
<g id="_1" data-name="1" transform="translate(-0.135 -0.05)">
|
3 |
+
<ellipse id="Ellipse_1" cx="15.987" cy="16.022" rx="15.987" ry="16.022" transform="translate(2.098 2.003)" fill="#fff"/>
|
4 |
+
<path id="Path_140668" data-name="Path 140668" d="M30.088,30.643a2.1,2.1,0,0,1-1.3-.5,2.035,2.035,0,0,1-.2-2.8,14.347,14.347,0,0,0,2.7-13.92A13.853,13.853,0,0,0,17.1,4.006,1.872,1.872,0,0,1,15,2.2,1.819,1.819,0,0,1,16.757.129,18,18,0,0,1,35.183,12.217a18.364,18.364,0,0,1-3.5,17.825C28.366,33,30.687,30.643,30.088,30.643Z" transform="translate(-0.012 0)" fill="#ff4e42"/>
|
5 |
+
<path id="Path_140669" data-name="Path 140669" d="M18.289,36.013A18.138,18.138,0,0,1,5.4,30.605a1.98,1.98,0,0,1,2.8-2.8,13.979,13.979,0,0,0,14.388,3.5,15.131,15.131,0,0,0,6.131-4.124,2.024,2.024,0,0,1,2.8-.2,2.082,2.082,0,0,1,.328,2.828,19.563,19.563,0,0,1-7.958,5.3A17.246,17.246,0,0,1,18.289,36.013Z" transform="translate(-0.004 0.037)" fill="#f8a738"/>
|
6 |
+
<path id="Path_140670" data-name="Path 140670" d="M6.1,30.643a1.8,1.8,0,0,1-1.5-.7A18.132,18.132,0,0,1,1.1,12.217,17.726,17.726,0,0,1,19.284.1a1.927,1.927,0,0,1,1.8,2.1,1.925,1.925,0,0,1-2.1,1.8A13.849,13.849,0,0,0,4.9,13.419a14.347,14.347,0,0,0,2.7,13.92,2.035,2.035,0,0,1-.2,2.8A1.652,1.652,0,0,1,6.1,30.643Z" transform="translate(0 0)" fill="#24cc6f"/>
|
7 |
+
</g>
|
8 |
+
</svg>
|
images/speed/information.svg
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<svg id="Information_Icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="14" height="14" viewBox="0 0 14 14">
|
2 |
+
<defs>
|
3 |
+
<clipPath id="clip-path">
|
4 |
+
<rect id="Rectangle_47798" data-name="Rectangle 47798" width="14" height="14" fill="#f8c332"/>
|
5 |
+
</clipPath>
|
6 |
+
</defs>
|
7 |
+
<g id="Information_Icon-2" data-name="Information_Icon" clip-path="url(#clip-path)">
|
8 |
+
<g id="Info" transform="translate(0 0)">
|
9 |
+
<path id="Path_169137" data-name="Path 169137" d="M18.5,25.5a7.016,7.016,0,0,1-7-7.038,6.9,6.9,0,0,1,2.043-4.919A6.811,6.811,0,0,1,18.424,11.5a7.148,7.148,0,0,1,7.076,7,6.944,6.944,0,0,1-6.924,7Zm0-10.821a.908.908,0,1,0,.908.908h0A.947.947,0,0,0,18.5,14.678Zm0,2.8h0a.921.921,0,0,0-.908.908v2.989a.921.921,0,0,0,.908.908h0a.921.921,0,0,0,.908-.908V18.386A.921.921,0,0,0,18.5,17.478Z" transform="translate(-11.5 -11.5)" fill="#f8c332"/>
|
10 |
+
</g>
|
11 |
+
</g>
|
12 |
+
</svg>
|
images/speed/loader_small.svg
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
<svg id="Loader_Small" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18">
|
2 |
+
<path id="Subtraction_1" data-name="Subtraction 1" d="M180.823-1193a9.01,9.01,0,0,1-9-9,9.01,9.01,0,0,1,9-9,9.01,9.01,0,0,1,9,9A9.01,9.01,0,0,1,180.823-1193Zm0-16a7.007,7.007,0,0,0-7,7,7.008,7.008,0,0,0,7,7,7.008,7.008,0,0,0,7-7A7.008,7.008,0,0,0,180.823-1209Z" transform="translate(-171.823 1211)" fill="rgba(255,255,255,0.3)"/>
|
3 |
+
<path id="Intersection_2" data-name="Intersection 2" d="M187.826-1194h0a7.008,7.008,0,0,0-7-7v-.028a.948.948,0,0,1-.835-.933,1.047,1.047,0,0,1,.835-1.04,9.01,9.01,0,0,1,9,9h-.014a.982.982,0,0,1-.969.941h-.04A1.008,1.008,0,0,1,187.826-1194Z" transform="translate(-171.823 1203)" fill="rgba(255,255,255,0.7)"/>
|
4 |
+
</svg>
|
images/speed/loader_small_grey.svg
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
<svg id="Loader_Small" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18">
|
2 |
+
<path id="Subtraction_1" data-name="Subtraction 1" d="M180.823-1193a9.01,9.01,0,0,1-9-9,9.01,9.01,0,0,1,9-9,9.01,9.01,0,0,1,9,9A9.01,9.01,0,0,1,180.823-1193Zm0-16a7.007,7.007,0,0,0-7,7,7.008,7.008,0,0,0,7,7,7.008,7.008,0,0,0,7-7A7.008,7.008,0,0,0,180.823-1209Z" transform="translate(-171.823 1211)" fill="rgba(50,58,69,0.1)"/>
|
3 |
+
<path id="Intersection_2" data-name="Intersection 2" d="M187.826-1194h0a7.008,7.008,0,0,0-7-7v-.028a.948.948,0,0,1-.835-.933,1.047,1.047,0,0,1,.835-1.04,9.01,9.01,0,0,1,9,9h-.014a.982.982,0,0,1-.969.941h-.04A1.008,1.008,0,0,1,187.826-1194Z" transform="translate(-171.823 1203)" fill="rgba(50,58,69,0.5)"/>
|
4 |
+
</svg>
|
images/speed/mobile.svg
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18" viewBox="0 0 18 18">
|
2 |
+
<defs>
|
3 |
+
<clipPath id="clip-path">
|
4 |
+
<rect id="Rectangle_49882" data-name="Rectangle 49882" width="18" height="18" fill="#fff"/>
|
5 |
+
</clipPath>
|
6 |
+
<linearGradient id="linear-gradient" x1="0.5" x2="0.5" y2="1" gradientUnits="objectBoundingBox">
|
7 |
+
<stop offset="0" stop-color="#fff"/>
|
8 |
+
<stop offset="1" stop-color="#fff" stop-opacity="0"/>
|
9 |
+
</linearGradient>
|
10 |
+
</defs>
|
11 |
+
<g id="Mobile_Icon" opacity="0.8" clip-path="url(#clip-path)">
|
12 |
+
<path id="design_system_icons-34" data-name="design system icons-34" d="M27.881,12.311V25.689a.813.813,0,0,1-.811.811H19.611a.813.813,0,0,1-.811-.811V12.311a.813.813,0,0,1,.811-.811h7.5A.806.806,0,0,1,27.881,12.311Z" transform="translate(-14.3 -10)" fill="url(#linear-gradient)"/>
|
13 |
+
<path id="design_system_icons-34-2" data-name="design system icons-34" d="M27.881,12.311V25.689a.813.813,0,0,1-.811.811H19.611a.813.813,0,0,1-.811-.811V12.311a.813.813,0,0,1,.811-.811h7.5A.806.806,0,0,1,27.881,12.311ZM26.705,24.473V13.527h-6.73V24.432h6.73Z" transform="translate(-14.3 -10)" fill="#343b46"/>
|
14 |
+
</g>
|
15 |
+
</svg>
|
images/speed/success.svg
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<svg id="Checkmark_Icon_2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24" height="24" viewBox="0 0 24 24">
|
2 |
+
<defs>
|
3 |
+
<clipPath id="clip-path">
|
4 |
+
<rect id="Rectangle_48150" data-name="Rectangle 48150" width="24" height="24" fill="#fff"/>
|
5 |
+
</clipPath>
|
6 |
+
</defs>
|
7 |
+
<g id="Mask_Group_1304" data-name="Mask Group 1304" clip-path="url(#clip-path)">
|
8 |
+
<g id="Group_94669" data-name="Group 94669" transform="translate(4 4)">
|
9 |
+
<path id="Success_Done_Checkmark_Icon" d="M27.5,19.5a8,8,0,1,1-8-8A8.01,8.01,0,0,1,27.5,19.5Z" transform="translate(-11.5 -11.5)" fill="#23b536"/>
|
10 |
+
<path id="Success_Done_Checkmark_Icon-2" data-name="Success_Done_Checkmark_Icon" d="M22.908,15.684a.739.739,0,0,0-1.124,0l-3.805,3.805a.644.644,0,0,1-.389.173.47.47,0,0,1-.389-.173l-1.73-1.73a.664.664,0,0,0-.562-.216.822.822,0,0,0-.562.216.81.81,0,0,0,0,1.124l2.681,2.681a.911.911,0,0,0,.562.216.822.822,0,0,0,.562-.216l4.757-4.757A.738.738,0,0,0,22.908,15.684Z" transform="translate(-10.627 -10.192)" fill="#fafafa"/>
|
11 |
+
</g>
|
12 |
+
</g>
|
13 |
+
</svg>
|
js/bwg.js
CHANGED
@@ -604,6 +604,8 @@ function spider_ajax_save( form_id, tr_group, is_last_ajax, content_message_id )
|
|
604 |
jQuery( '#task' ).html( str );
|
605 |
var str = jQuery( data ).find( '#current_id' ).html();
|
606 |
jQuery( '#current_id' ).html( str );
|
|
|
|
|
607 |
|
608 |
if ( ajax_task != '' ) {
|
609 |
jQuery( ".ajax-msg" ).removeClass( "wd-hide" );
|
604 |
jQuery( '#task' ).html( str );
|
605 |
var str = jQuery( data ).find( '#current_id' ).html();
|
606 |
jQuery( '#current_id' ).html( str );
|
607 |
+
var str = jQuery( data ).find( '.bwg-optimize-btn' ).html();
|
608 |
+
jQuery( '.bwg-optimize-btn' ).html( str );
|
609 |
|
610 |
if ( ajax_task != '' ) {
|
611 |
jQuery( ".ajax-msg" ).removeClass( "wd-hide" );
|
js/bwg_frontend.js
CHANGED
@@ -10,6 +10,108 @@ var bwg_params = [];
|
|
10 |
var bwg_params_ib = [];
|
11 |
/* Carousel params */
|
12 |
var bwg_params_carousel = [];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
jQuery(function () {
|
14 |
/**
|
15 |
* @param {boolean} isAll do you need to stop all slideshows?.
|
10 |
var bwg_params_ib = [];
|
11 |
/* Carousel params */
|
12 |
var bwg_params_carousel = [];
|
13 |
+
|
14 |
+
function bwg_draw_score_circle( data ) {
|
15 |
+
var d = data.desktop_score;
|
16 |
+
var m = data.mobile_score;
|
17 |
+
var color_desktop = d <= 49 ? "rgb(253, 60, 49)" : (d >= 90 ? "rgb(12, 206, 107)" : "rgb(255, 164, 0)");
|
18 |
+
var color_mobile = m <= 49 ? "rgb(253, 60, 49)" : (m >= 90 ? "rgb(12, 206, 107)" : "rgb(255, 164, 0)");
|
19 |
+
var bg_color_desktop = d <= 49 ? "rgb(253, 60, 49, 0.1)" : (d >= 90 ? "rgb(12, 206, 107, 0.1)" : "rgb(255, 164, 0, 0.1)");
|
20 |
+
var bg_color_mobile = m <= 49 ? "rgb(253, 60, 49, 0.1)" : (m >= 90 ? "rgb(12, 206, 107, 0.1)" : "rgb(255, 164, 0, 0.1)");
|
21 |
+
|
22 |
+
jQuery('.bwg-score-circle').each(function () {
|
23 |
+
var _this = this;
|
24 |
+
var val = data.desktop_score / 100;
|
25 |
+
var num = d;
|
26 |
+
var color = color_desktop;
|
27 |
+
var bg_color = bg_color_desktop;
|
28 |
+
if (jQuery(this).data("id") === "mobile") {
|
29 |
+
val = data.mobile_score / 100;
|
30 |
+
num = m;
|
31 |
+
color = color_mobile;
|
32 |
+
bg_color = bg_color_mobile;
|
33 |
+
}
|
34 |
+
jQuery(_this).circleProgress({
|
35 |
+
value: val,
|
36 |
+
size: 44,
|
37 |
+
startAngle: -Math.PI / 4 * 2,
|
38 |
+
lineCap: 'round',
|
39 |
+
emptyFill: "rgba(255, 255, 255, 0)",
|
40 |
+
thickness: 4,
|
41 |
+
fill: {
|
42 |
+
color: color
|
43 |
+
}
|
44 |
+
}).on('circle-animation-progress', function (event, progress) {
|
45 |
+
jQuery(this).find('.bwg-score-circle-animated').html(Math.round(parseFloat(num) * progress)).css({"color": color});
|
46 |
+
jQuery(this).find('canvas').html(Math.round(parseFloat(num) * progress)).css({"background": bg_color});
|
47 |
+
});
|
48 |
+
});
|
49 |
+
jQuery('.bwg-load-time-mobile').html(data.mobile_loading_time);
|
50 |
+
jQuery('.bwg-load-time-desktop').html(data.desktop_loading_time);
|
51 |
+
jQuery('.bwg-last-analyzed-time').html(data.last_analyzed_time);
|
52 |
+
}
|
53 |
+
|
54 |
+
jQuery(function () {
|
55 |
+
|
56 |
+
if ( isMobile ) {
|
57 |
+
jQuery(".bwg-container.bwg-standard-thumbnails .bwg-title1, .bwg-container.bwg-masonry-thumbnails .bwg-title1, .bwg-mosaic-thumbnails").css("opacity","1");
|
58 |
+
jQuery(".bwg-zoom-effect .bwg-zoom-effect-overlay, .bwg-zoom-effect-overlay > span").css({"opacity":1,"background-color":"unset"});
|
59 |
+
}
|
60 |
+
|
61 |
+
var admin_bar_booster_top_button = jQuery("#wp-admin-bar-booster-top-button");
|
62 |
+
|
63 |
+
if (jQuery(".bwg-container").length) {
|
64 |
+
// Show the check score button only on pages with gallery in it.
|
65 |
+
admin_bar_booster_top_button.removeClass("hidden");
|
66 |
+
}
|
67 |
+
|
68 |
+
/* Show/hide booster container under the button */
|
69 |
+
admin_bar_booster_top_button.hover(function () {
|
70 |
+
jQuery("#wp-admin-bar-booster-wrap").removeClass("hidden");
|
71 |
+
}, function () {
|
72 |
+
jQuery("#wp-admin-bar-booster-wrap").addClass("hidden");
|
73 |
+
});
|
74 |
+
|
75 |
+
|
76 |
+
var reanalyze_href = jQuery('#wp-admin-bar-booster-top-button .ab-item').attr('href');
|
77 |
+
var html = '<div class="bwg-score-info">' +
|
78 |
+
'<div class="bwg-score-container">' +
|
79 |
+
'<div class="bwg-score-mobile">' +
|
80 |
+
'<div class="bwg-score-circle" data-thickness="6" data-id="mobile">' +
|
81 |
+
'<span class="bwg-score-circle-animated">47</span>' +
|
82 |
+
'</div>' +
|
83 |
+
'<div class="bwg-score-text">' +
|
84 |
+
'<span class="bwg-score-text--name">Mobile Score</span>' +
|
85 |
+
'<span class="bwg-load-text--time">Load Time: <span class="bwg-load-time-mobile"></span></span>' +
|
86 |
+
'</div>' +
|
87 |
+
'</div>' +
|
88 |
+
'<div class="bwg-score-desktop">' +
|
89 |
+
'<div class="bwg-score-circle" data-thickness="6" data-id="desktop">' +
|
90 |
+
'<span class="bwg-score-circle-animated">82</span>' +
|
91 |
+
'</div>' +
|
92 |
+
'<div class="bwg-score-text">' +
|
93 |
+
'<span class="bwg-score-text--name">Desktop Score</span>' +
|
94 |
+
'<span class="bwg-load-text--time">Load Time: <span class="bwg-load-time-desktop"></span></span>' +
|
95 |
+
'</div>' +
|
96 |
+
'</div>' +
|
97 |
+
'</div>' +
|
98 |
+
'<div class="bwg-reanalyze-container">' +
|
99 |
+
'<div class="bwg-last-analyzed">' +
|
100 |
+
'<p>Last analyzed:</p>' +
|
101 |
+
'<p class="bwg-last-analyzed-time"></p>' +
|
102 |
+
'</div>' +
|
103 |
+
'<div class="bwg-reanalyze-button">' +
|
104 |
+
'<a href="' + reanalyze_href + '" target="_blank">Reanalyze</a>';
|
105 |
+
'</div>' +
|
106 |
+
'</div>' +
|
107 |
+
'</div>';
|
108 |
+
|
109 |
+
if (typeof bwg_objectsL10n.page_speed !== "undefined" && bwg_objectsL10n.page_speed !== "") {
|
110 |
+
jQuery("#wp-admin-bar-booster-top-button").append('<div id="wp-admin-bar-booster-wrap" class="hidden">' + html + '</div>');
|
111 |
+
bwg_draw_score_circle(JSON.parse(bwg_objectsL10n.page_speed));
|
112 |
+
}
|
113 |
+
});
|
114 |
+
|
115 |
jQuery(function () {
|
116 |
/**
|
117 |
* @param {boolean} isAll do you need to stop all slideshows?.
|
js/bwg_gallery_box.js
CHANGED
@@ -59,7 +59,7 @@ function gallery_box_ready() {
|
|
59 |
}
|
60 |
});
|
61 |
|
62 |
-
if ( gallery_box_data['
|
63 |
addthis_share = {
|
64 |
url: gallery_box_data['share_url']
|
65 |
}
|
@@ -126,22 +126,20 @@ function gallery_box_ready() {
|
|
126 |
var bwg_popup_current_height = gallery_box_data['image_height'];
|
127 |
|
128 |
/* jQuery(document).ready(function () { */
|
129 |
-
if ( gallery_box_data['
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
var current_image_key = gallery_box_data['current_image_key'];
|
138 |
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
}
|
145 |
}
|
146 |
if (gallery_box_data['image_right_click'] == 1) {
|
147 |
/* Disable right click.*/
|
@@ -840,9 +838,7 @@ function spider_destroypopup(duration) {
|
|
840 |
viewportmeta.content = 'width=device-width, initial-scale=1';
|
841 |
}
|
842 |
var scrrr = jQuery(document).scrollTop();
|
843 |
-
|
844 |
-
history.pushState(history.state, null, window.location.origin + window.location.pathname + window.location.search);
|
845 |
-
}
|
846 |
jQuery(document).scrollTop(scrrr);
|
847 |
if ( typeof gallery_box_data['bwg_playInterval'] != "undefined" ) {
|
848 |
clearInterval(gallery_box_data['bwg_playInterval']);
|
@@ -1300,12 +1296,10 @@ function bwg_change_image_lightbox(current_key, key, data, from_effect) {
|
|
1300 |
bwg_current_filmstrip_pos = key * (jQuery(".bwg_filmstrip_thumbnail").height() + 2 + 2 * gallery_box_data['lightbox_filmstrip_thumb_border_width']);
|
1301 |
}
|
1302 |
gallery_box_data['bwg_current_key'] = key;
|
1303 |
-
|
1304 |
-
|
1305 |
-
|
1306 |
-
|
1307 |
-
history.replaceState(undefined, undefined, "#bwg" + gallery_box_data['gallery_id'] + "/" + data[key]["id"]);
|
1308 |
-
}
|
1309 |
jQuery("#bwg_rate_form input[name='image_id']").val(data[key]["id"]);
|
1310 |
/* Increase image hit counter.*/
|
1311 |
spider_set_input_value('rate_ajax_task', 'save_hit_count');
|
59 |
}
|
60 |
});
|
61 |
|
62 |
+
if ( gallery_box_data['enable_addthis'] == 1 && gallery_box_data['addthis_profile_id'] ) {
|
63 |
addthis_share = {
|
64 |
url: gallery_box_data['share_url']
|
65 |
}
|
126 |
var bwg_popup_current_height = gallery_box_data['image_height'];
|
127 |
|
128 |
/* jQuery(document).ready(function () { */
|
129 |
+
if ( gallery_box_data['enable_addthis'] == 1 && gallery_box_data['addthis_profile_id'] ) {
|
130 |
+
jQuery(".at4-share-outer").show();
|
131 |
+
}
|
132 |
+
/* Increase image hit counter.*/
|
133 |
+
spider_set_input_value('rate_ajax_task', 'save_hit_count');
|
134 |
+
spider_rate_ajax_save('bwg_rate_form');
|
135 |
+
var tempdata = gallery_box_data['data'];
|
136 |
+
var current_image_key = gallery_box_data['current_image_key'];
|
|
|
137 |
|
138 |
+
jQuery(".bwg_image_hits span").html(++tempdata[current_image_key]["hit_count"]);
|
139 |
+
var bwg_hash = window.location.hash;
|
140 |
+
if ( !bwg_hash || bwg_hash.indexOf("bwg") == "-1" ) {
|
141 |
+
location.replace("#bwg"+gallery_box_data['gallery_id']+"/"+gallery_box_data['current_image_id']);
|
142 |
+
history.replaceState(undefined, undefined, "#bwg"+gallery_box_data['gallery_id']+"/"+gallery_box_data['current_image_id']);
|
|
|
143 |
}
|
144 |
if (gallery_box_data['image_right_click'] == 1) {
|
145 |
/* Disable right click.*/
|
838 |
viewportmeta.content = 'width=device-width, initial-scale=1';
|
839 |
}
|
840 |
var scrrr = jQuery(document).scrollTop();
|
841 |
+
history.pushState(history.state, null, window.location.origin + window.location.pathname + window.location.search);
|
|
|
|
|
842 |
jQuery(document).scrollTop(scrrr);
|
843 |
if ( typeof gallery_box_data['bwg_playInterval'] != "undefined" ) {
|
844 |
clearInterval(gallery_box_data['bwg_playInterval']);
|
1296 |
bwg_current_filmstrip_pos = key * (jQuery(".bwg_filmstrip_thumbnail").height() + 2 + 2 * gallery_box_data['lightbox_filmstrip_thumb_border_width']);
|
1297 |
}
|
1298 |
gallery_box_data['bwg_current_key'] = key;
|
1299 |
+
/* Change hash.*/
|
1300 |
+
/*window.location.hash = "bwg"+gallery_box_data['gallery_id'] +"/" + data[key]["id"];*/
|
1301 |
+
location.replace("#bwg" + gallery_box_data['gallery_id'] + "/" + data[key]["id"]);
|
1302 |
+
history.replaceState(undefined, undefined, "#bwg" + gallery_box_data['gallery_id'] + "/" + data[key]["id"]);
|
|
|
|
|
1303 |
jQuery("#bwg_rate_form input[name='image_id']").val(data[key]["id"]);
|
1304 |
/* Increase image hit counter.*/
|
1305 |
spider_set_input_value('rate_ajax_task', 'save_hit_count');
|
js/bwg_shortcode.js
CHANGED
@@ -509,28 +509,18 @@ function bwg_gallery_type(gallery_type) {
|
|
509 |
jQuery("#tr_ecommerce_icon_hover").css('display', '');
|
510 |
jQuery("#tr_gallery").css('display', '');
|
511 |
jQuery("#tr_tag").css('display', '');
|
512 |
-
jQuery(".wd-free-msg").
|
513 |
-
jQuery("
|
514 |
-
jQuery(".pro-views
|
515 |
-
jQuery(".button-demo").attr('href', pro_demo_link );
|
516 |
-
if ( jQuery(".wd-free-msg").length != 0 ) {
|
517 |
-
jQuery("#insert").attr("style", "visibility: hidden;");
|
518 |
-
jQuery(".bwg-pro-views").hide();
|
519 |
-
}
|
520 |
break;
|
521 |
}
|
522 |
case 'thumbnails_mosaic': {
|
523 |
jQuery("#tr_ecommerce_icon_hover ").css('display', '');
|
524 |
jQuery("#tr_gallery").css('display', '');
|
525 |
jQuery("#tr_tag").css('display', '');
|
526 |
-
jQuery(".wd-free-msg").
|
527 |
-
jQuery("
|
528 |
-
jQuery(".pro-views
|
529 |
-
jQuery(".button-demo").attr('href', pro_demo_link );
|
530 |
-
if ( jQuery(".wd-free-msg").length != 0 ) {
|
531 |
-
jQuery("#insert").attr("style", "visibility: hidden;");
|
532 |
-
jQuery(".bwg-pro-views").hide();
|
533 |
-
}
|
534 |
break;
|
535 |
}
|
536 |
case 'slideshow': {
|
@@ -564,29 +554,19 @@ function bwg_gallery_type(gallery_type) {
|
|
564 |
jQuery(".bwg-section.bwg-pro-views").show();
|
565 |
break;
|
566 |
}
|
567 |
-
|
568 |
jQuery("#tr_album").css('display', '');
|
569 |
-
jQuery(".wd-free-msg").
|
570 |
-
jQuery("
|
571 |
-
jQuery(".pro-views
|
572 |
-
jQuery(".button-demo").attr('href', pro_demo_link );
|
573 |
-
if ( jQuery(".wd-free-msg").length != 0 ) {
|
574 |
-
jQuery("#insert").attr("style", "visibility: hidden;");
|
575 |
-
jQuery(".bwg-pro-views").hide();
|
576 |
-
}
|
577 |
break;
|
578 |
}
|
579 |
case 'blog_style': {
|
580 |
jQuery("#tr_gallery").css('display', '');
|
581 |
jQuery("#tr_tag").css('display', '');
|
582 |
-
jQuery(".wd-free-msg").
|
583 |
-
jQuery("
|
584 |
-
jQuery(".pro-views
|
585 |
-
jQuery(".button-demo").attr('href', pro_demo_link );
|
586 |
-
if ( jQuery(".wd-free-msg").length != 0 ) {
|
587 |
-
jQuery("#insert").attr("style", "visibility: hidden;");
|
588 |
-
jQuery(".bwg-pro-views").hide();
|
589 |
-
}
|
590 |
break;
|
591 |
}
|
592 |
case 'carousel': {
|
509 |
jQuery("#tr_ecommerce_icon_hover").css('display', '');
|
510 |
jQuery("#tr_gallery").css('display', '');
|
511 |
jQuery("#tr_tag").css('display', '');
|
512 |
+
jQuery(".wd-free-msg").hide();
|
513 |
+
jQuery("#insert").attr("style", "visibility: visible;");
|
514 |
+
jQuery(".bwg-section.bwg-pro-views").show();
|
|
|
|
|
|
|
|
|
|
|
515 |
break;
|
516 |
}
|
517 |
case 'thumbnails_mosaic': {
|
518 |
jQuery("#tr_ecommerce_icon_hover ").css('display', '');
|
519 |
jQuery("#tr_gallery").css('display', '');
|
520 |
jQuery("#tr_tag").css('display', '');
|
521 |
+
jQuery(".wd-free-msg").hide();
|
522 |
+
jQuery("#insert").attr("style", "visibility: visible;");
|
523 |
+
jQuery(".bwg-section.bwg-pro-views").show();
|
|
|
|
|
|
|
|
|
|
|
524 |
break;
|
525 |
}
|
526 |
case 'slideshow': {
|
554 |
jQuery(".bwg-section.bwg-pro-views").show();
|
555 |
break;
|
556 |
}
|
557 |
+
case 'album_masonry_preview': {
|
558 |
jQuery("#tr_album").css('display', '');
|
559 |
+
jQuery(".wd-free-msg").hide();
|
560 |
+
jQuery("#insert").attr("style", "visibility: visible;");
|
561 |
+
jQuery(".bwg-section.bwg-pro-views").show();
|
|
|
|
|
|
|
|
|
|
|
562 |
break;
|
563 |
}
|
564 |
case 'blog_style': {
|
565 |
jQuery("#tr_gallery").css('display', '');
|
566 |
jQuery("#tr_tag").css('display', '');
|
567 |
+
jQuery(".wd-free-msg").hide();
|
568 |
+
jQuery("#insert").attr("style", "visibility: visible;");
|
569 |
+
jQuery(".bwg-section.bwg-pro-views").show();
|
|
|
|
|
|
|
|
|
|
|
570 |
break;
|
571 |
}
|
572 |
case 'carousel': {
|
js/bwg_speed.js
ADDED
@@ -0,0 +1,387 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery(function () {
|
2 |
+
|
3 |
+
jQuery(".bwg-install-booster").on("click", function () {
|
4 |
+
install_booster_plugin( this );
|
5 |
+
});
|
6 |
+
|
7 |
+
jQuery(".bwg-sign-up-dashboard-button").on("click", function () {
|
8 |
+
sign_up_dashboard( this )
|
9 |
+
});
|
10 |
+
|
11 |
+
jQuery(".bwg-analyze-input-button").on("click", function () {
|
12 |
+
if ( !jQuery(this).hasClass("bwg-disable-analyze") ) {
|
13 |
+
bwg_get_google_score(this, '', '');
|
14 |
+
}
|
15 |
+
});
|
16 |
+
|
17 |
+
/* Case when redirected from frontend and need to count score 1-public, 0-private, ''-not from frontend */
|
18 |
+
if( jQuery(".bwg-analyze-input").data('page-public') !== '' ) {
|
19 |
+
analize_input_change();
|
20 |
+
if (jQuery(".bwg-analyze-input").data('page-public') === 1) {
|
21 |
+
jQuery(".bwg-analyze-input-button").trigger("click");
|
22 |
+
}
|
23 |
+
}
|
24 |
+
|
25 |
+
jQuery(document).on('change', '.bwg-analyze-input', function () {
|
26 |
+
analize_input_change();
|
27 |
+
});
|
28 |
+
|
29 |
+
/* If there is no score of home page run google score and get homepage score */
|
30 |
+
if( bwg_speed.home_speed_status === '0' ) {
|
31 |
+
bwg_get_google_score('', bwg_speed.home_url, '');
|
32 |
+
} else {
|
33 |
+
/* Draw score circle if it is Speed Optimization page */
|
34 |
+
if( jQuery(".bwg-analyze-desktop-score .speed_circle").length > 0 ) {
|
35 |
+
draw_score_circle(bwg_speed.home_speed_status.desktop_score, bwg_speed.home_speed_status.mobile_score);
|
36 |
+
}
|
37 |
+
}
|
38 |
+
|
39 |
+
/* Show/hide tooltip in Speed Optimization page bottom Image optimizer container */
|
40 |
+
jQuery(".bwg-optimize-now-button").hover(function(){
|
41 |
+
jQuery(".bwg-optimize-now-tooltip").removeClass("bwg-hidden");
|
42 |
+
}, function(){
|
43 |
+
jQuery(".bwg-optimize-now-tooltip").addClass("bwg-hidden");
|
44 |
+
});
|
45 |
+
|
46 |
+
});
|
47 |
+
|
48 |
+
function analize_input_change() {
|
49 |
+
var bwg_analyze_input = jQuery(".bwg-analyze-input");
|
50 |
+
bwg_analyze_input.removeClass("bwg-analyze-input-error");
|
51 |
+
jQuery(".bwg-analyze-input-button").removeClass("bwg-disable-analyze");
|
52 |
+
jQuery(".bwg-analyze-input-container .bwg-error-msg").remove();
|
53 |
+
var domain = bwg_speed.home_url.replace(/^https?:\/\/|www./g, '');
|
54 |
+
var url = bwg_analyze_input.val();
|
55 |
+
var page_public = bwg_analyze_input.data('page-public');
|
56 |
+
|
57 |
+
var error = false;
|
58 |
+
var error_msg = '';
|
59 |
+
if( url == '' ) {
|
60 |
+
error = true;
|
61 |
+
error_msg = bwg_speed.enter_page_url;
|
62 |
+
}
|
63 |
+
else if ( !isUrlValid(url) ) {
|
64 |
+
error = true;
|
65 |
+
error_msg = bwg_speed.wrong_url;
|
66 |
+
}
|
67 |
+
else if ( !url.includes(domain) ) {
|
68 |
+
error = true;
|
69 |
+
error_msg = bwg_speed.wrong_domain_url;
|
70 |
+
}
|
71 |
+
else if ( page_public === 0 ) {
|
72 |
+
error = true;
|
73 |
+
error_msg = bwg_speed.page_is_not_public;
|
74 |
+
}
|
75 |
+
|
76 |
+
|
77 |
+
if ( error === true ) {
|
78 |
+
jQuery(".bwg-analyze-input-button").addClass("bwg-disable-analyze");
|
79 |
+
jQuery(".bwg-analyze-input").addClass("bwg-analyze-input-error");
|
80 |
+
jQuery(".bwg-analyze-input").after('<p class="bwg-error-msg">' + error_msg + '</p>');
|
81 |
+
}
|
82 |
+
|
83 |
+
}
|
84 |
+
|
85 |
+
/**
|
86 |
+
* Run ajax action and install/activate booster plugin
|
87 |
+
*
|
88 |
+
* @param that object
|
89 |
+
*/
|
90 |
+
function install_booster_plugin( that ) {
|
91 |
+
if ( jQuery(that).hasClass("bwg-disable-link") ) {
|
92 |
+
return false;
|
93 |
+
}
|
94 |
+
jQuery(that).addClass('bwg-disable-link');
|
95 |
+
jQuery(that).html('<div class="speed-loader-blue"></div>');
|
96 |
+
jQuery.ajax( {
|
97 |
+
url: ajaxurl,
|
98 |
+
type: "POST",
|
99 |
+
data: {
|
100 |
+
action: "speed_bwg",
|
101 |
+
task: "install_booster",
|
102 |
+
speed_ajax_nonce: bwg_speed.speed_ajax_nonce
|
103 |
+
},
|
104 |
+
success: function ( result ) {
|
105 |
+
/* Cut json from returned html data */
|
106 |
+
var json = result.substring( result.indexOf('{"booster_plugin_status') );
|
107 |
+
var data = JSON.parse(json);
|
108 |
+
if( typeof data !== 'object' ) {
|
109 |
+
jQuery('.bwg-install-booster').text(bwg_speed.install_button_text);
|
110 |
+
jQuery(".bwg-install-booster").text(bwg_speed.install_button_text);
|
111 |
+
return;
|
112 |
+
}
|
113 |
+
if( parseInt(data.booster_plugin_status) === 2 ) {
|
114 |
+
jQuery(".bwg-install-booster-container").addClass("bwg-hidden");
|
115 |
+
if ( !data.booster_is_connected ) {
|
116 |
+
jQuery(".bwg-sign_up-booster-container").removeClass("bwg-hidden");
|
117 |
+
} else {
|
118 |
+
jQuery(".bwg-connected-booster-container").removeClass("bwg-hidden");
|
119 |
+
}
|
120 |
+
} else if ( parseInt(data.booster_plugin_status) === 1 ) {
|
121 |
+
jQuery('.bwg-install-booster').text(bwg_speed.activate_button_text);
|
122 |
+
}
|
123 |
+
},
|
124 |
+
error: function ( xhr ) {
|
125 |
+
jQuery(".bwg-install-booster").text(bwg_speed.install_button_text);
|
126 |
+
},
|
127 |
+
complete: function () {
|
128 |
+
jQuery('.bwg-install-booster.bwg-disable-link').removeClass('bwg-disable-link');
|
129 |
+
}
|
130 |
+
});
|
131 |
+
}
|
132 |
+
|
133 |
+
/**
|
134 |
+
* Run ajax action and Sign Up to dashboard
|
135 |
+
*
|
136 |
+
* @param that object
|
137 |
+
*/
|
138 |
+
function sign_up_dashboard( that ) {
|
139 |
+
if ( jQuery(that).hasClass("bwg-disable-link") ) {
|
140 |
+
return false;
|
141 |
+
}
|
142 |
+
|
143 |
+
var email_input = jQuery(".bwg-sign-up-input");
|
144 |
+
|
145 |
+
jQuery(".bwg-error-msg").remove();
|
146 |
+
email_input.removeClass("bwg-input-error");
|
147 |
+
jQuery(that).addClass('bwg-disable-link');
|
148 |
+
jQuery(that).html('<div class="speed-loader-blue"></div>');
|
149 |
+
|
150 |
+
|
151 |
+
var email = email_input.val();
|
152 |
+
if( email === '' ) {
|
153 |
+
email_input.after('<p class="bwg-error-msg">'+bwg_speed.empty_email+'</p>');
|
154 |
+
email_input.addClass("bwg-input-error");
|
155 |
+
jQuery(that).text(bwg_speed.sign_up);
|
156 |
+
jQuery(that).removeClass('bwg-disable-link');
|
157 |
+
|
158 |
+
return;
|
159 |
+
}
|
160 |
+
if( !isEmail(email) ) {
|
161 |
+
email_input.after('<p class="bwg-error-msg">'+bwg_speed.wrong_email+'</p>');
|
162 |
+
email_input.addClass("bwg-input-error");
|
163 |
+
jQuery(that).text(bwg_speed.sign_up);
|
164 |
+
jQuery(that).removeClass('bwg-disable-link');
|
165 |
+
|
166 |
+
return;
|
167 |
+
}
|
168 |
+
|
169 |
+
jQuery.ajax( {
|
170 |
+
url: ajaxurl,
|
171 |
+
type: "POST",
|
172 |
+
data: {
|
173 |
+
action: "speed_bwg",
|
174 |
+
task: "sign_up_dashboard",
|
175 |
+
bwg_email: email,
|
176 |
+
speed_ajax_nonce: bwg_speed.speed_ajax_nonce
|
177 |
+
},
|
178 |
+
success: function ( result ) {
|
179 |
+
if( !isValidJSONString(result) ) {
|
180 |
+
jQuery(that).text(bwg_speed.sign_up);
|
181 |
+
jQuery(that).removeClass('bwg-disable-link');
|
182 |
+
email_input.after('<p class="bwg-error-msg">' + bwg_speed.something_wrong + '</p>');
|
183 |
+
return;
|
184 |
+
}
|
185 |
+
var data = JSON.parse(result);
|
186 |
+
if ( data['status'] === 'success' ) {
|
187 |
+
window.location.href = data['booster_connect_url'];
|
188 |
+
} else {
|
189 |
+
jQuery(that).text(bwg_speed.sign_up);
|
190 |
+
jQuery(that).removeClass('bwg-disable-link');
|
191 |
+
email_input.after('<p class="bwg-error-msg">' + bwg_speed.something_wrong + '</p>');
|
192 |
+
return;
|
193 |
+
}
|
194 |
+
},
|
195 |
+
error: function ( xhr ) {
|
196 |
+
jQuery(that).text(bwg_speed.sign_up);
|
197 |
+
jQuery(that).removeClass('bwg-disable-link');
|
198 |
+
email_input.after('<p class="bwg-error-msg">' + bwg_speed.something_wrong + '</p>');
|
199 |
+
}
|
200 |
+
});
|
201 |
+
|
202 |
+
}
|
203 |
+
|
204 |
+
/**
|
205 |
+
* Drawing score circle in different colors
|
206 |
+
*
|
207 |
+
* @param desktop_score int score value of desktop
|
208 |
+
* @param mobile_score int score value of desktop
|
209 |
+
*/
|
210 |
+
function draw_score_circle( desktop_score, mobile_score ) {
|
211 |
+
var d = desktop_score;
|
212 |
+
var m = mobile_score;
|
213 |
+
var color_desktop = d <= 49 ? "rgb(253, 60, 49)" : (d >= 90 ? "rgb(12, 206, 107)" : "rgb(255, 164, 0)");
|
214 |
+
var color_mobile = m <= 49 ? "rgb(253, 60, 49)" : (m >= 90 ? "rgb(12, 206, 107)" : "rgb(255, 164, 0)");
|
215 |
+
var bg_color_desktop = d <= 49 ? "rgb(253, 60, 49, 0.1)" : (d >= 90 ? "rgb(12, 206, 107, 0.1)" : "rgb(255, 164, 0, 0.1)");
|
216 |
+
var bg_color_mobile = m <= 49 ? "rgb(253, 60, 49, 0.1)" : (m >= 90 ? "rgb(12, 206, 107, 0.1)" : "rgb(255, 164, 0, 0.1)");
|
217 |
+
|
218 |
+
jQuery('.speed_circle').each(function () {
|
219 |
+
var _this = this;
|
220 |
+
var val = desktop_score / 100;
|
221 |
+
var num = d;
|
222 |
+
var color = color_desktop;
|
223 |
+
var bg_color = bg_color_desktop;
|
224 |
+
if ( jQuery(this).data("id") === "mobile" ) {
|
225 |
+
val = mobile_score / 100;
|
226 |
+
num = m;
|
227 |
+
color = color_mobile;
|
228 |
+
bg_color = bg_color_mobile;
|
229 |
+
}
|
230 |
+
jQuery(_this).circleProgress({
|
231 |
+
value: val,
|
232 |
+
size: 78,
|
233 |
+
startAngle: -Math.PI / 4 * 2,
|
234 |
+
lineCap: 'round',
|
235 |
+
emptyFill: "rgba(255, 255, 255, 0)",
|
236 |
+
fill: {
|
237 |
+
color: color
|
238 |
+
}
|
239 |
+
}).on('circle-animation-progress', function ( event, progress ) {
|
240 |
+
jQuery(this).find('.circle_animated').html(Math.round(parseFloat(num) * progress)).css({"color": color});
|
241 |
+
jQuery(this).find('canvas').html(Math.round(parseFloat(num) * progress)).css({ "background": bg_color });
|
242 |
+
});
|
243 |
+
});
|
244 |
+
}
|
245 |
+
|
246 |
+
/**
|
247 |
+
* Run ajax action and icount google score
|
248 |
+
*
|
249 |
+
* @param that object
|
250 |
+
* @param home_url string
|
251 |
+
* @param bwg_from_retry int values 0 or 1 check if function called from retry or first time
|
252 |
+
* @param last_api_key_index int/empty last index of array where keeped google api keys
|
253 |
+
*/
|
254 |
+
function bwg_get_google_score( that, home_url, last_api_key_index ) {
|
255 |
+
var url;
|
256 |
+
jQuery(".bwg-error-msg").remove();
|
257 |
+
if (home_url === '') {
|
258 |
+
if (jQuery(that).hasClass("bwg-disable-link")) {
|
259 |
+
return false;
|
260 |
+
}
|
261 |
+
jQuery(that).addClass('bwg-disable-analyze');
|
262 |
+
jQuery(that).html('<div class="speed-loader-grey"></div>');
|
263 |
+
url = jQuery(".bwg-analyze-input").val();
|
264 |
+
}
|
265 |
+
else {
|
266 |
+
url = home_url;
|
267 |
+
}
|
268 |
+
if (!isUrlValid(url)) {
|
269 |
+
jQuery(".bwg-analyze-input").after('<p class="bwg-error-msg">' + bwg_speed.wrong_url + '</p>');
|
270 |
+
jQuery('.bwg-analyze-input-button.bwg-disable-analyze').removeClass('bwg-disable-analyze');
|
271 |
+
jQuery('.bwg-analyze-input-button').text(bwg_speed.analyze_button_text);
|
272 |
+
return;
|
273 |
+
}
|
274 |
+
|
275 |
+
jQuery(".speed_circle").after("<div class='speed_circle_loader'></div>");
|
276 |
+
jQuery(".speed_circle").addClass("bwg-hidden");
|
277 |
+
jQuery(".bwg-load-time-mobile span").text("-");
|
278 |
+
jQuery(".bwg-load-time-desktop span").text("-");
|
279 |
+
jQuery.ajax({
|
280 |
+
url: ajaxurl,
|
281 |
+
type: "POST",
|
282 |
+
data: {
|
283 |
+
action: "speed_bwg",
|
284 |
+
task: "get_google_page_speed",
|
285 |
+
last_api_key_index: last_api_key_index,
|
286 |
+
bwg_url: url,
|
287 |
+
speed_ajax_nonce: bwg_speed.speed_ajax_nonce
|
288 |
+
},
|
289 |
+
success: function (result) {
|
290 |
+
if( !isValidJSONString(result) ) {
|
291 |
+
google_speed_error_result('');
|
292 |
+
return;
|
293 |
+
} else {
|
294 |
+
var data = JSON.parse(result);
|
295 |
+
if ( data['error'] === 1 ) {
|
296 |
+
if ( typeof data['last_api_key_index'] !== 'undefined' ) {
|
297 |
+
bwg_get_google_score(that, home_url, data['last_api_key_index'] );
|
298 |
+
return;
|
299 |
+
}
|
300 |
+
var msg = '';
|
301 |
+
if( typeof data['msg'] !== 'undefined') {
|
302 |
+
msg = data['msg'];
|
303 |
+
}
|
304 |
+
google_speed_error_result(msg);
|
305 |
+
return;
|
306 |
+
}
|
307 |
+
}
|
308 |
+
|
309 |
+
jQuery(".speed_circle_loader").remove();
|
310 |
+
jQuery(".speed_circle").removeClass("bwg-hidden");
|
311 |
+
draw_score_circle(data['desktop_score'], data['mobile_score']);
|
312 |
+
jQuery(".bwg-last-analyzed-page").text(url);
|
313 |
+
jQuery(".bwg-last-analyzed-date").text(data['last_analyzed_time']);
|
314 |
+
jQuery(".bwg-load-time-mobile span").text(data['mobile_loading_time']);
|
315 |
+
jQuery(".bwg-load-time-desktop span").text(data['desktop_loading_time']);
|
316 |
+
},
|
317 |
+
error: function (xhr) {
|
318 |
+
google_speed_error_result('');
|
319 |
+
},
|
320 |
+
complete: function () {
|
321 |
+
jQuery('.bwg-analyze-input-button.bwg-disable-analyze').removeClass('bwg-disable-analyze');
|
322 |
+
jQuery('.bwg-analyze-input-button').text(bwg_speed.analyze_button_text);
|
323 |
+
}
|
324 |
+
});
|
325 |
+
}
|
326 |
+
|
327 |
+
/* Case when counting of scor return error */
|
328 |
+
function google_speed_error_result( msg ) {
|
329 |
+
if( msg !== '' ) {
|
330 |
+
bwg_speed.something_wrong = msg;
|
331 |
+
}
|
332 |
+
jQuery(".bwg-analyze-input").after('<p class="bwg-error-msg">' + bwg_speed.something_wrong + '</p>');
|
333 |
+
jQuery('.bwg-analyze-input-button.bwg-disable-analyze').removeClass('bwg-disable-analyze');
|
334 |
+
jQuery('.bwg-analyze-input-button').text(bwg_speed.analyze_button_text);
|
335 |
+
jQuery(".speed_circle_loader").remove();
|
336 |
+
jQuery(".speed_circle").removeClass("bwg-hidden");
|
337 |
+
}
|
338 |
+
|
339 |
+
/**
|
340 |
+
* Check if value is email
|
341 |
+
*
|
342 |
+
* @param email string
|
343 |
+
*
|
344 |
+
* @return bool
|
345 |
+
*/
|
346 |
+
function isEmail( email ) {
|
347 |
+
var EmailRegex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;
|
348 |
+
return EmailRegex.test(email);
|
349 |
+
}
|
350 |
+
|
351 |
+
/**
|
352 |
+
* Check if value is URL
|
353 |
+
*
|
354 |
+
* @param url string
|
355 |
+
*
|
356 |
+
* @return bool
|
357 |
+
*/
|
358 |
+
function isUrlValid(url) {
|
359 |
+
if (typeof url == 'undefined' || url == '') {
|
360 |
+
return false;
|
361 |
+
}
|
362 |
+
if ( url.indexOf("http") !== 0 && url.indexOf("www.") !== 0) {
|
363 |
+
return false;
|
364 |
+
}
|
365 |
+
regexp = /^(?:(?:https?|ftp):\/\/)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:\/\S*)?$/;
|
366 |
+
if (regexp.test(url)) {
|
367 |
+
return true;
|
368 |
+
} else {
|
369 |
+
return false;
|
370 |
+
}
|
371 |
+
}
|
372 |
+
|
373 |
+
/**
|
374 |
+
* Check if data is valid json
|
375 |
+
*
|
376 |
+
* @param str string
|
377 |
+
*
|
378 |
+
* @return bool
|
379 |
+
*/
|
380 |
+
function isValidJSONString(str) {
|
381 |
+
try {
|
382 |
+
JSON.parse(str);
|
383 |
+
} catch (e) {
|
384 |
+
return false;
|
385 |
+
}
|
386 |
+
return true;
|
387 |
+
}
|
js/circle-progress.js
ADDED
@@ -0,0 +1,552 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* jquery-circle-progress - jQuery Plugin to draw animated circular progress bars:
|
3 |
+
* {@link http://kottenator.github.io/jquery-circle-progress/}
|
4 |
+
*
|
5 |
+
* @author Rostyslav Bryzgunov <kottenator@gmail.com>
|
6 |
+
* @version 1.2.2
|
7 |
+
* @licence MIT
|
8 |
+
* @preserve
|
9 |
+
*/
|
10 |
+
// UMD factory - https://github.com/umdjs/umd/blob/d31bb6ee7098715e019f52bdfe27b3e4bfd2b97e/templates/jqueryPlugin.js
|
11 |
+
// Uses AMD, CommonJS or browser globals to create a jQuery plugin.
|
12 |
+
(function(factory) {
|
13 |
+
if (typeof define === 'function' && define.amd) {
|
14 |
+
// AMD - register as an anonymous module
|
15 |
+
define(['jquery'], factory);
|
16 |
+
} else if (typeof module === 'object' && module.exports) {
|
17 |
+
// Node/CommonJS
|
18 |
+
var $ = require('jquery');
|
19 |
+
factory($);
|
20 |
+
module.exports = $;
|
21 |
+
} else {
|
22 |
+
// Browser globals
|
23 |
+
factory(jQuery);
|
24 |
+
}
|
25 |
+
})(function($) {
|
26 |
+
/**
|
27 |
+
* Inner implementation of the circle progress bar.
|
28 |
+
* The class is not exposed _yet_ but you can create an instance through jQuery method call.
|
29 |
+
*
|
30 |
+
* @param {object} config - You can customize any class member (property or method).
|
31 |
+
* @class
|
32 |
+
* @alias CircleProgress
|
33 |
+
*/
|
34 |
+
function CircleProgress(config) {
|
35 |
+
this.init(config);
|
36 |
+
}
|
37 |
+
|
38 |
+
CircleProgress.prototype = {
|
39 |
+
//--------------------------------------- public options ---------------------------------------
|
40 |
+
/**
|
41 |
+
* This is the only required option. It should be from `0.0` to `1.0`.
|
42 |
+
* @type {number}
|
43 |
+
* @default 0.0
|
44 |
+
*/
|
45 |
+
value: 0.0,
|
46 |
+
|
47 |
+
/**
|
48 |
+
* Size of the canvas in pixels.
|
49 |
+
* It's a square so we need only one dimension.
|
50 |
+
* @type {number}
|
51 |
+
* @default 100.0
|
52 |
+
*/
|
53 |
+
size: 100.0,
|
54 |
+
|
55 |
+
/**
|
56 |
+
* Initial angle for `0.0` value in radians.
|
57 |
+
* @type {number}
|
58 |
+
* @default -Math.PI
|
59 |
+
*/
|
60 |
+
startAngle: -Math.PI,
|
61 |
+
|
62 |
+
/**
|
63 |
+
* Width of the arc in pixels.
|
64 |
+
* If it's `'auto'` - the value is calculated as `[this.size]{@link CircleProgress#size} / 14`.
|
65 |
+
* @type {number|string}
|
66 |
+
* @default 'auto'
|
67 |
+
*/
|
68 |
+
thickness: 'auto',
|
69 |
+
|
70 |
+
/**
|
71 |
+
* Fill of the arc. You may set it to:
|
72 |
+
*
|
73 |
+
* - solid color:
|
74 |
+
* - `'#3aeabb'`
|
75 |
+
* - `{ color: '#3aeabb' }`
|
76 |
+
* - `{ color: 'rgba(255, 255, 255, .3)' }`
|
77 |
+
* - linear gradient _(left to right)_:
|
78 |
+
* - `{ gradient: ['#3aeabb', '#fdd250'], gradientAngle: Math.PI / 4 }`
|
79 |
+
* - `{ gradient: ['red', 'green', 'blue'], gradientDirection: [x0, y0, x1, y1] }`
|
80 |
+
* - `{ gradient: [["red", .2], ["green", .3], ["blue", .8]] }`
|
81 |
+
* - image:
|
82 |
+
* - `{ image: 'http://i.imgur.com/pT0i89v.png' }`
|
83 |
+
* - `{ image: imageObject }`
|
84 |
+
* - `{ color: 'lime', image: 'http://i.imgur.com/pT0i89v.png' }` -
|
85 |
+
* color displayed until the image is loaded
|
86 |
+
*
|
87 |
+
* @default {gradient: ['#3aeabb', '#fdd250']}
|
88 |
+
*/
|
89 |
+
fill: {
|
90 |
+
gradient: ['#3aeabb', '#fdd250']
|
91 |
+
},
|
92 |
+
|
93 |
+
/**
|
94 |
+
* Color of the "empty" arc. Only a color fill supported by now.
|
95 |
+
* @type {string}
|
96 |
+
* @default 'rgba(0, 0, 0, .1)'
|
97 |
+
*/
|
98 |
+
emptyFill: 'rgba(0, 0, 0, .1)',
|
99 |
+
|
100 |
+
/**
|
101 |
+
* jQuery Animation config.
|
102 |
+
* You can pass `false` to disable the animation.
|
103 |
+
* @see http://api.jquery.com/animate/
|
104 |
+
* @type {object|boolean}
|
105 |
+
* @default {duration: 1200, easing: 'circleProgressEasing'}
|
106 |
+
*/
|
107 |
+
animation: {
|
108 |
+
duration: 1200,
|
109 |
+
easing: 'circleProgressEasing'
|
110 |
+
},
|
111 |
+
|
112 |
+
/**
|
113 |
+
* Default animation starts at `0.0` and ends at specified `value`. Let's call this _direct animation_.
|
114 |
+
* If you want to make _reversed animation_ - set `animationStartValue: 1.0`.
|
115 |
+
* Also you may specify any other value from `0.0` to `1.0`.
|
116 |
+
* @type {number}
|
117 |
+
* @default 0.0
|
118 |
+
*/
|
119 |
+
animationStartValue: 0.0,
|
120 |
+
|
121 |
+
/**
|
122 |
+
* Reverse animation and arc draw.
|
123 |
+
* By default, the arc is filled from `0.0` to `value`, _clockwise_.
|
124 |
+
* With `reverse: true` the arc is filled from `1.0` to `value`, _counter-clockwise_.
|
125 |
+
* @type {boolean}
|
126 |
+
* @default false
|
127 |
+
*/
|
128 |
+
reverse: false,
|
129 |
+
|
130 |
+
/**
|
131 |
+
* Arc line cap: `'butt'`, `'round'` or `'square'` -
|
132 |
+
* [read more]{@link https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.lineCap}.
|
133 |
+
* @type {string}
|
134 |
+
* @default 'butt'
|
135 |
+
*/
|
136 |
+
lineCap: 'butt',
|
137 |
+
|
138 |
+
/**
|
139 |
+
* Canvas insertion mode: append or prepend it into the parent element?
|
140 |
+
* @type {string}
|
141 |
+
* @default 'prepend'
|
142 |
+
*/
|
143 |
+
insertMode: 'prepend',
|
144 |
+
|
145 |
+
//------------------------------ protected properties and methods ------------------------------
|
146 |
+
/**
|
147 |
+
* Link to {@link CircleProgress} constructor.
|
148 |
+
* @protected
|
149 |
+
*/
|
150 |
+
constructor: CircleProgress,
|
151 |
+
|
152 |
+
/**
|
153 |
+
* Container element. Should be passed into constructor config.
|
154 |
+
* @protected
|
155 |
+
* @type {jQuery}
|
156 |
+
*/
|
157 |
+
el: null,
|
158 |
+
|
159 |
+
/**
|
160 |
+
* Canvas element. Automatically generated and prepended to [this.el]{@link CircleProgress#el}.
|
161 |
+
* @protected
|
162 |
+
* @type {HTMLCanvasElement}
|
163 |
+
*/
|
164 |
+
canvas: null,
|
165 |
+
|
166 |
+
/**
|
167 |
+
* 2D-context of [this.canvas]{@link CircleProgress#canvas}.
|
168 |
+
* @protected
|
169 |
+
* @type {CanvasRenderingContext2D}
|
170 |
+
*/
|
171 |
+
ctx: null,
|
172 |
+
|
173 |
+
/**
|
174 |
+
* Radius of the outer circle. Automatically calculated as `[this.size]{@link CircleProgress#size} / 2`.
|
175 |
+
* @protected
|
176 |
+
* @type {number}
|
177 |
+
*/
|
178 |
+
radius: 0.0,
|
179 |
+
|
180 |
+
/**
|
181 |
+
* Fill of the main arc. Automatically calculated, depending on [this.fill]{@link CircleProgress#fill} option.
|
182 |
+
* @protected
|
183 |
+
* @type {string|CanvasGradient|CanvasPattern}
|
184 |
+
*/
|
185 |
+
arcFill: null,
|
186 |
+
|
187 |
+
/**
|
188 |
+
* Last rendered frame value.
|
189 |
+
* @protected
|
190 |
+
* @type {number}
|
191 |
+
*/
|
192 |
+
lastFrameValue: 0.0,
|
193 |
+
|
194 |
+
/**
|
195 |
+
* Init/re-init the widget.
|
196 |
+
*
|
197 |
+
* Throws a jQuery event:
|
198 |
+
*
|
199 |
+
* - `circle-inited(jqEvent)`
|
200 |
+
*
|
201 |
+
* @param {object} config - You can customize any class member (property or method).
|
202 |
+
*/
|
203 |
+
init: function(config) {
|
204 |
+
$.extend(this, config);
|
205 |
+
this.radius = this.size / 2;
|
206 |
+
this.initWidget();
|
207 |
+
this.initFill();
|
208 |
+
this.draw();
|
209 |
+
this.el.trigger('circle-inited');
|
210 |
+
},
|
211 |
+
|
212 |
+
/**
|
213 |
+
* Initialize `<canvas>`.
|
214 |
+
* @protected
|
215 |
+
*/
|
216 |
+
initWidget: function() {
|
217 |
+
if (!this.canvas)
|
218 |
+
this.canvas = $('<canvas>')[this.insertMode == 'prepend' ? 'prependTo' : 'appendTo'](this.el)[0];
|
219 |
+
|
220 |
+
var canvas = this.canvas;
|
221 |
+
canvas.width = this.size;
|
222 |
+
canvas.height = this.size;
|
223 |
+
this.ctx = canvas.getContext('2d');
|
224 |
+
|
225 |
+
if (window.devicePixelRatio > 1) {
|
226 |
+
var scaleBy = window.devicePixelRatio;
|
227 |
+
canvas.style.width = canvas.style.height = this.size + 'px';
|
228 |
+
canvas.width = canvas.height = this.size * scaleBy;
|
229 |
+
this.ctx.scale(scaleBy, scaleBy);
|
230 |
+
}
|
231 |
+
},
|
232 |
+
|
233 |
+
/**
|
234 |
+
* This method sets [this.arcFill]{@link CircleProgress#arcFill}.
|
235 |
+
* It could do this async (on image load).
|
236 |
+
* @protected
|
237 |
+
*/
|
238 |
+
initFill: function() {
|
239 |
+
var self = this,
|
240 |
+
fill = this.fill,
|
241 |
+
ctx = this.ctx,
|
242 |
+
size = this.size;
|
243 |
+
|
244 |
+
if (!fill)
|
245 |
+
throw Error("The fill is not specified!");
|
246 |
+
|
247 |
+
if (typeof fill == 'string')
|
248 |
+
fill = {color: fill};
|
249 |
+
|
250 |
+
if (fill.color)
|
251 |
+
this.arcFill = fill.color;
|
252 |
+
|
253 |
+
if (fill.gradient) {
|
254 |
+
var gr = fill.gradient;
|
255 |
+
|
256 |
+
if (gr.length == 1) {
|
257 |
+
this.arcFill = gr[0];
|
258 |
+
} else if (gr.length > 1) {
|
259 |
+
var ga = fill.gradientAngle || 0, // gradient direction angle; 0 by default
|
260 |
+
gd = fill.gradientDirection || [
|
261 |
+
size / 2 * (1 - Math.cos(ga)), // x0
|
262 |
+
size / 2 * (1 + Math.sin(ga)), // y0
|
263 |
+
size / 2 * (1 + Math.cos(ga)), // x1
|
264 |
+
size / 2 * (1 - Math.sin(ga)) // y1
|
265 |
+
];
|
266 |
+
|
267 |
+
var lg = ctx.createLinearGradient.apply(ctx, gd);
|
268 |
+
|
269 |
+
for (var i = 0; i < gr.length; i++) {
|
270 |
+
var color = gr[i],
|
271 |
+
pos = i / (gr.length - 1);
|
272 |
+
|
273 |
+
if ($.isArray(color)) {
|
274 |
+
pos = color[1];
|
275 |
+
color = color[0];
|
276 |
+
}
|
277 |
+
|
278 |
+
lg.addColorStop(pos, color);
|
279 |
+
}
|
280 |
+
|
281 |
+
this.arcFill = lg;
|
282 |
+
}
|
283 |
+
}
|
284 |
+
|
285 |
+
if (fill.image) {
|
286 |
+
var img;
|
287 |
+
|
288 |
+
if (fill.image instanceof Image) {
|
289 |
+
img = fill.image;
|
290 |
+
} else {
|
291 |
+
img = new Image();
|
292 |
+
img.src = fill.image;
|
293 |
+
}
|
294 |
+
|
295 |
+
if (img.complete)
|
296 |
+
setImageFill();
|
297 |
+
else
|
298 |
+
img.onload = setImageFill;
|
299 |
+
}
|
300 |
+
|
301 |
+
function setImageFill() {
|
302 |
+
var bg = $('<canvas>')[0];
|
303 |
+
bg.width = self.size;
|
304 |
+
bg.height = self.size;
|
305 |
+
bg.getContext('2d').drawImage(img, 0, 0, size, size);
|
306 |
+
self.arcFill = self.ctx.createPattern(bg, 'no-repeat');
|
307 |
+
self.drawFrame(self.lastFrameValue);
|
308 |
+
}
|
309 |
+
},
|
310 |
+
|
311 |
+
/**
|
312 |
+
* Draw the circle.
|
313 |
+
* @protected
|
314 |
+
*/
|
315 |
+
draw: function() {
|
316 |
+
if (this.animation)
|
317 |
+
this.drawAnimated(this.value);
|
318 |
+
else
|
319 |
+
this.drawFrame(this.value);
|
320 |
+
},
|
321 |
+
|
322 |
+
/**
|
323 |
+
* Draw a single animation frame.
|
324 |
+
* @protected
|
325 |
+
* @param {number} v - Frame value.
|
326 |
+
*/
|
327 |
+
drawFrame: function(v) {
|
328 |
+
this.lastFrameValue = v;
|
329 |
+
this.ctx.clearRect(0, 0, this.size, this.size);
|
330 |
+
this.drawEmptyArc(v);
|
331 |
+
this.drawArc(v);
|
332 |
+
},
|
333 |
+
|
334 |
+
/**
|
335 |
+
* Draw the arc (part of the circle).
|
336 |
+
* @protected
|
337 |
+
* @param {number} v - Frame value.
|
338 |
+
*/
|
339 |
+
drawArc: function(v) {
|
340 |
+
if (v === 0)
|
341 |
+
return;
|
342 |
+
|
343 |
+
var ctx = this.ctx,
|
344 |
+
r = this.radius,
|
345 |
+
t = this.getThickness(),
|
346 |
+
a = this.startAngle;
|
347 |
+
|
348 |
+
ctx.save();
|
349 |
+
ctx.beginPath();
|
350 |
+
|
351 |
+
if (!this.reverse) {
|
352 |
+
ctx.arc(r, r, r - t / 2, a, a + Math.PI * 2 * v);
|
353 |
+
} else {
|
354 |
+
ctx.arc(r, r, r - t / 2, a - Math.PI * 2 * v, a);
|
355 |
+
}
|
356 |
+
|
357 |
+
ctx.lineWidth = t;
|
358 |
+
ctx.lineCap = this.lineCap;
|
359 |
+
ctx.strokeStyle = this.arcFill;
|
360 |
+
ctx.stroke();
|
361 |
+
ctx.restore();
|
362 |
+
},
|
363 |
+
|
364 |
+
/**
|
365 |
+
* Draw the _empty (background)_ arc (part of the circle).
|
366 |
+
* @protected
|
367 |
+
* @param {number} v - Frame value.
|
368 |
+
*/
|
369 |
+
drawEmptyArc: function(v) {
|
370 |
+
var ctx = this.ctx,
|
371 |
+
r = this.radius,
|
372 |
+
t = this.getThickness(),
|
373 |
+
a = this.startAngle;
|
374 |
+
|
375 |
+
if (v < 1) {
|
376 |
+
ctx.save();
|
377 |
+
ctx.beginPath();
|
378 |
+
|
379 |
+
if (v <= 0) {
|
380 |
+
ctx.arc(r, r, r - t / 2, 0, Math.PI * 2);
|
381 |
+
} else {
|
382 |
+
if (!this.reverse) {
|
383 |
+
ctx.arc(r, r, r - t / 2, a + Math.PI * 2 * v, a);
|
384 |
+
} else {
|
385 |
+
ctx.arc(r, r, r - t / 2, a, a - Math.PI * 2 * v);
|
386 |
+
}
|
387 |
+
}
|
388 |
+
|
389 |
+
ctx.lineWidth = t;
|
390 |
+
ctx.strokeStyle = this.emptyFill;
|
391 |
+
ctx.stroke();
|
392 |
+
ctx.restore();
|
393 |
+
}
|
394 |
+
},
|
395 |
+
|
396 |
+
/**
|
397 |
+
* Animate the progress bar.
|
398 |
+
*
|
399 |
+
* Throws 3 jQuery events:
|
400 |
+
*
|
401 |
+
* - `circle-animation-start(jqEvent)`
|
402 |
+
* - `circle-animation-progress(jqEvent, animationProgress, stepValue)` - multiple event
|
403 |
+
* animationProgress: from `0.0` to `1.0`; stepValue: from `0.0` to `value`
|
404 |
+
* - `circle-animation-end(jqEvent)`
|
405 |
+
*
|
406 |
+
* @protected
|
407 |
+
* @param {number} v - Final value.
|
408 |
+
*/
|
409 |
+
drawAnimated: function(v) {
|
410 |
+
var self = this,
|
411 |
+
el = this.el,
|
412 |
+
canvas = $(this.canvas);
|
413 |
+
|
414 |
+
// stop previous animation before new "start" event is triggered
|
415 |
+
canvas.stop(true, false);
|
416 |
+
el.trigger('circle-animation-start');
|
417 |
+
|
418 |
+
canvas
|
419 |
+
.css({animationProgress: 0})
|
420 |
+
.animate({animationProgress: 1}, $.extend({}, this.animation, {
|
421 |
+
step: function(animationProgress) {
|
422 |
+
var stepValue = self.animationStartValue * (1 - animationProgress) + v * animationProgress;
|
423 |
+
self.drawFrame(stepValue);
|
424 |
+
el.trigger('circle-animation-progress', [animationProgress, stepValue]);
|
425 |
+
}
|
426 |
+
}))
|
427 |
+
.promise()
|
428 |
+
.always(function() {
|
429 |
+
// trigger on both successful & failure animation end
|
430 |
+
el.trigger('circle-animation-end');
|
431 |
+
});
|
432 |
+
},
|
433 |
+
|
434 |
+
/**
|
435 |
+
* Get the circle thickness.
|
436 |
+
* @see CircleProgress#thickness
|
437 |
+
* @protected
|
438 |
+
* @returns {number}
|
439 |
+
*/
|
440 |
+
getThickness: function() {
|
441 |
+
return $.isNumeric(this.thickness) ? this.thickness : this.size / 14;
|
442 |
+
},
|
443 |
+
|
444 |
+
/**
|
445 |
+
* Get current value.
|
446 |
+
* @protected
|
447 |
+
* @return {number}
|
448 |
+
*/
|
449 |
+
getValue: function() {
|
450 |
+
return this.value;
|
451 |
+
},
|
452 |
+
|
453 |
+
/**
|
454 |
+
* Set current value (with smooth animation transition).
|
455 |
+
* @protected
|
456 |
+
* @param {number} newValue
|
457 |
+
*/
|
458 |
+
setValue: function(newValue) {
|
459 |
+
if (this.animation)
|
460 |
+
this.animationStartValue = this.lastFrameValue;
|
461 |
+
this.value = newValue;
|
462 |
+
this.draw();
|
463 |
+
}
|
464 |
+
};
|
465 |
+
|
466 |
+
//----------------------------------- Initiating jQuery plugin -----------------------------------
|
467 |
+
$.circleProgress = {
|
468 |
+
// Default options (you may override them)
|
469 |
+
defaults: CircleProgress.prototype
|
470 |
+
};
|
471 |
+
|
472 |
+
// ease-in-out-cubic
|
473 |
+
$.easing.circleProgressEasing = function(x) {
|
474 |
+
if (x < 0.5) {
|
475 |
+
x = 2 * x;
|
476 |
+
return 0.5 * x * x * x;
|
477 |
+
} else {
|
478 |
+
x = 2 - 2 * x;
|
479 |
+
return 1 - 0.5 * x * x * x;
|
480 |
+
}
|
481 |
+
};
|
482 |
+
|
483 |
+
/**
|
484 |
+
* Creates an instance of {@link CircleProgress}.
|
485 |
+
* Produces [init event]{@link CircleProgress#init} and [animation events]{@link CircleProgress#drawAnimated}.
|
486 |
+
*
|
487 |
+
* @param {object} [configOrCommand] - Config object or command name.
|
488 |
+
*
|
489 |
+
* Config example (you can specify any {@link CircleProgress} property):
|
490 |
+
*
|
491 |
+
* ```js
|
492 |
+
* { value: 0.75, size: 50, animation: false }
|
493 |
+
* ```
|
494 |
+
*
|
495 |
+
* Commands:
|
496 |
+
*
|
497 |
+
* ```js
|
498 |
+
* el.circleProgress('widget'); // get the <canvas>
|
499 |
+
* el.circleProgress('value'); // get the value
|
500 |
+
* el.circleProgress('value', newValue); // update the value
|
501 |
+
* el.circleProgress('redraw'); // redraw the circle
|
502 |
+
* el.circleProgress(); // the same as 'redraw'
|
503 |
+
* ```
|
504 |
+
*
|
505 |
+
* @param {string} [commandArgument] - Some commands (like `'value'`) may require an argument.
|
506 |
+
* @see CircleProgress
|
507 |
+
* @alias "$(...).circleProgress"
|
508 |
+
*/
|
509 |
+
$.fn.circleProgress = function(configOrCommand, commandArgument) {
|
510 |
+
var dataName = 'circle-progress',
|
511 |
+
firstInstance = this.data(dataName);
|
512 |
+
|
513 |
+
if (configOrCommand == 'widget') {
|
514 |
+
if (!firstInstance)
|
515 |
+
throw Error('Calling "widget" method on not initialized instance is forbidden');
|
516 |
+
return firstInstance.canvas;
|
517 |
+
}
|
518 |
+
|
519 |
+
if (configOrCommand == 'value') {
|
520 |
+
if (!firstInstance)
|
521 |
+
throw Error('Calling "value" method on not initialized instance is forbidden');
|
522 |
+
if (typeof commandArgument == 'undefined') {
|
523 |
+
return firstInstance.getValue();
|
524 |
+
} else {
|
525 |
+
var newValue = arguments[1];
|
526 |
+
return this.each(function() {
|
527 |
+
$(this).data(dataName).setValue(newValue);
|
528 |
+
});
|
529 |
+
}
|
530 |
+
}
|
531 |
+
|
532 |
+
return this.each(function() {
|
533 |
+
var el = $(this),
|
534 |
+
instance = el.data(dataName),
|
535 |
+
config = $.isPlainObject(configOrCommand) ? configOrCommand : {};
|
536 |
+
|
537 |
+
if (instance) {
|
538 |
+
instance.init(config);
|
539 |
+
} else {
|
540 |
+
var initialConfig = $.extend({}, el.data());
|
541 |
+
if (typeof initialConfig.fill == 'string')
|
542 |
+
initialConfig.fill = JSON.parse(initialConfig.fill);
|
543 |
+
if (typeof initialConfig.animation == 'string')
|
544 |
+
initialConfig.animation = JSON.parse(initialConfig.animation);
|
545 |
+
config = $.extend(initialConfig, config);
|
546 |
+
config.el = el;
|
547 |
+
instance = new CircleProgress(config);
|
548 |
+
el.data(dataName, instance);
|
549 |
+
}
|
550 |
+
});
|
551 |
+
};
|
552 |
+
});
|
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(),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)});
|
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.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;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();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,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_draw_score_circle(t){var _=t.desktop_score,s=t.mobile_score,o=_<=49?"rgb(253, 60, 49)":90<=_?"rgb(12, 206, 107)":"rgb(255, 164, 0)",l=s<=49?"rgb(253, 60, 49)":90<=s?"rgb(12, 206, 107)":"rgb(255, 164, 0)",n=_<=49?"rgb(253, 60, 49, 0.1)":90<=_?"rgb(12, 206, 107, 0.1)":"rgb(255, 164, 0, 0.1)",g=s<=49?"rgb(253, 60, 49, 0.1)":90<=s?"rgb(12, 206, 107, 0.1)":"rgb(255, 164, 0, 0.1)";jQuery(".bwg-score-circle").each(function(){var e=t.desktop_score/100,i=_,a=o,r=n;"mobile"===jQuery(this).data("id")&&(e=t.mobile_score/100,i=s,a=l,r=g),jQuery(this).circleProgress({value:e,size:44,startAngle:-Math.PI/4*2,lineCap:"round",emptyFill:"rgba(255, 255, 255, 0)",thickness:4,fill:{color:a}}).on("circle-animation-progress",function(e,t){jQuery(this).find(".bwg-score-circle-animated").html(Math.round(parseFloat(i)*t)).css({color:a}),jQuery(this).find("canvas").html(Math.round(parseFloat(i)*t)).css({background:r})})}),jQuery(".bwg-load-time-mobile").html(t.mobile_loading_time),jQuery(".bwg-load-time-desktop").html(t.desktop_loading_time),jQuery(".bwg-last-analyzed-time").html(t.last_analyzed_time)}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),F=0,R=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=F,v=R,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}R-=q,F+=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(){isMobile&&(jQuery(".bwg-container.bwg-standard-thumbnails .bwg-title1, .bwg-container.bwg-masonry-thumbnails .bwg-title1, .bwg-mosaic-thumbnails").css("opacity","1"),jQuery(".bwg-zoom-effect .bwg-zoom-effect-overlay, .bwg-zoom-effect-overlay > span").css({opacity:1,"background-color":"unset"}));var e=jQuery("#wp-admin-bar-booster-top-button");jQuery(".bwg-container").length&&e.removeClass("hidden"),e.hover(function(){jQuery("#wp-admin-bar-booster-wrap").removeClass("hidden")},function(){jQuery("#wp-admin-bar-booster-wrap").addClass("hidden")});var t='<div class="bwg-score-info"><div class="bwg-score-container"><div class="bwg-score-mobile"><div class="bwg-score-circle" data-thickness="6" data-id="mobile"><span class="bwg-score-circle-animated">47</span></div><div class="bwg-score-text"><span class="bwg-score-text--name">Mobile Score</span><span class="bwg-load-text--time">Load Time: <span class="bwg-load-time-mobile"></span></span></div></div><div class="bwg-score-desktop"><div class="bwg-score-circle" data-thickness="6" data-id="desktop"><span class="bwg-score-circle-animated">82</span></div><div class="bwg-score-text"><span class="bwg-score-text--name">Desktop Score</span><span class="bwg-load-text--time">Load Time: <span class="bwg-load-time-desktop"></span></span></div></div></div><div class="bwg-reanalyze-container"><div class="bwg-last-analyzed"><p>Last analyzed:</p><p class="bwg-last-analyzed-time"></p></div><div class="bwg-reanalyze-button"><a href="'+jQuery("#wp-admin-bar-booster-top-button .ab-item").attr("href")+'" target="_blank">Reanalyze</a>';void 0!==bwg_objectsL10n.page_speed&&""!==bwg_objectsL10n.page_speed&&(jQuery("#wp-admin-bar-booster-top-button").append('<div id="wp-admin-bar-booster-wrap" class="hidden">'+t+"</div>"),bwg_draw_score_circle(JSON.parse(bwg_objectsL10n.page_speed)))}),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.
|
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.
|
110 |
-
$this->db_version = '1.
|
111 |
$this->prefix = 'bwg';
|
112 |
$this->nicename = __('Photo Gallery', 'photo-gallery');
|
113 |
require_once($this->plugin_dir . '/framework/WDWLibrary.php');
|
@@ -125,7 +125,7 @@ final class BWG {
|
|
125 |
$this->upload_url = preg_replace('/uploads(.+)photo-gallery/', 'uploads/photo-gallery', $this->upload_url);
|
126 |
}
|
127 |
|
128 |
-
$this->free_msg = __('This option is available in Premium version', 'photo-gallery');
|
129 |
}
|
130 |
|
131 |
/**
|
@@ -143,14 +143,12 @@ final class BWG {
|
|
143 |
add_action('wp_ajax_nopriv_GalleryBox', array($this, 'frontend_ajax'));
|
144 |
add_action('wp_ajax_bwg_captcha', array($this, 'bwg_captcha'));
|
145 |
add_action('wp_ajax_nopriv_bwg_captcha', array($this, 'bwg_captcha'));
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
add_action('wp_ajax_download_gallery', array($this, 'frontend_ajax'));
|
153 |
-
}
|
154 |
|
155 |
// Admin AJAX actions.
|
156 |
add_action('wp_ajax_galleries_' . $this->prefix , array($this, 'admin_ajax'));
|
@@ -162,10 +160,9 @@ final class BWG {
|
|
162 |
add_action('wp_ajax_editimage_' . $this->prefix, array($this, 'admin_ajax'));
|
163 |
add_action('wp_ajax_addTags_' . $this->prefix, array($this, 'admin_ajax'));
|
164 |
add_action('wp_ajax_options_' . $this->prefix, array($this, 'admin_ajax'));
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
}
|
169 |
|
170 |
if ( !is_admin() ) {
|
171 |
add_shortcode('Best_Wordpress_Gallery', array($this, 'shortcode'));
|
@@ -210,16 +207,12 @@ final class BWG {
|
|
210 |
add_filter('set-screen-option', array($this, 'set_option_comments'), 10, 3);
|
211 |
add_filter('set-screen-option', array($this, 'set_option_rates'), 10, 3);
|
212 |
|
213 |
-
|
214 |
-
add_filter('single_template', array( $this, 'share_template' ));
|
215 |
-
}
|
216 |
|
217 |
add_filter('widget_tag_cloud_args', array($this, 'tag_cloud_widget_args'));
|
218 |
|
219 |
-
|
220 |
-
|
221 |
-
add_action('bwg_schedule_event_hook', array( $this, 'social_galleries' ));
|
222 |
-
}
|
223 |
|
224 |
// Check add-ons versions.
|
225 |
if ( $this->is_pro ) {
|
@@ -281,6 +274,19 @@ final class BWG {
|
|
281 |
add_filter('wp_image_editors', array( $this, 'bwg_change_image_editors_library'), 9, 1);
|
282 |
}
|
283 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
284 |
/**
|
285 |
* Add plugin action links.
|
286 |
*
|
@@ -411,6 +417,9 @@ final class BWG {
|
|
411 |
$this->overview();
|
412 |
add_action('init', array($this, 'language_load'));
|
413 |
add_action('init', array($this, 'create_post_types'));
|
|
|
|
|
|
|
414 |
}
|
415 |
|
416 |
/**
|
@@ -495,6 +504,12 @@ final class BWG {
|
|
495 |
|
496 |
add_submenu_page($parent_slug, __('Global Settings', 'photo-gallery'), __('Global Settings', 'photo-gallery'), $settings_permission, 'options_' . $this->prefix, array($this , 'admin_pages'));
|
497 |
|
|
|
|
|
|
|
|
|
|
|
|
|
498 |
$themes_page = add_submenu_page($parent_slug, __('Themes', 'photo-gallery'), __('Themes', 'photo-gallery'), $themes_permission, 'themes_' . $this->prefix, array($this , 'admin_pages'));
|
499 |
add_action('load-' . $themes_page, array($this, 'themes_per_page_option'));
|
500 |
|
@@ -505,10 +520,6 @@ final class BWG {
|
|
505 |
$rates_page = add_submenu_page($parent_slug, __('Ratings', 'photo-gallery'), __('Ratings', 'photo-gallery'), 'manage_options', 'ratings_' . $this->prefix, array($this , 'admin_pages'));
|
506 |
add_action('load-' . $rates_page, array($this, 'rates_per_page_option'));
|
507 |
}
|
508 |
-
else {
|
509 |
-
// Temporary deactivated.
|
510 |
-
// add_submenu_page($parent_slug, __('Premium Version', 'photo-gallery'), __('Premium Version', 'photo-gallery'), 'manage_options', 'licensing_' . $this->prefix, array($this , 'admin_pages'));
|
511 |
-
}
|
512 |
|
513 |
do_action('bwg_add_submenu_item', $parent_slug);
|
514 |
|
@@ -529,6 +540,20 @@ final class BWG {
|
|
529 |
}
|
530 |
}
|
531 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
532 |
/**
|
533 |
* Admin pages.
|
534 |
*/
|
@@ -537,6 +562,7 @@ final class BWG {
|
|
537 |
'galleries_' . $this->prefix,
|
538 |
'albums_' . $this->prefix,
|
539 |
'options_' . $this->prefix,
|
|
|
540 |
'themes_' . $this->prefix,
|
541 |
'comments_' . $this->prefix,
|
542 |
'ratings_' . $this->prefix,
|
@@ -611,14 +637,33 @@ final class BWG {
|
|
611 |
'media-views', // media uploader styles
|
612 |
'wp-auth-check', // check all
|
613 |
);
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
wp_register_script($this->prefix . '_fontselect', $this->plugin_url . '/js/fontselect/fontselect.min.js', $required_scripts, '1.0.0');
|
618 |
-
}
|
619 |
wp_register_style($this->prefix . '_tables', $this->plugin_url . '/css/bwg_tables.css', $required_styles, $this->plugin_version);
|
620 |
wp_register_style($this->prefix . '_gallery-upgrade', $this->plugin_url . '/css/gallery-upgrade.css', $required_styles, $this->plugin_version);
|
621 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
622 |
wp_register_script($this->prefix . '_admin', $this->plugin_url . '/js/bwg.js', $required_scripts, $this->plugin_version);
|
623 |
wp_localize_script($this->prefix . '_admin', 'bwg', array(
|
624 |
'delete_confirmation' => __('Do you want to delete selected items?', 'photo-gallery'),
|
@@ -702,6 +747,15 @@ final class BWG {
|
|
702 |
}
|
703 |
}
|
704 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
705 |
/**
|
706 |
* Frontend AJAX actions.
|
707 |
*/
|
@@ -868,9 +922,8 @@ final class BWG {
|
|
868 |
}
|
869 |
// TODO: move
|
870 |
public function bwg_add_embed_ajax() {
|
871 |
-
$permissions = $this->is_pro ? BWG()->options->permissions : 'manage_options';
|
872 |
if (function_exists('current_user_can')) {
|
873 |
-
if (!current_user_can(
|
874 |
die('Access Denied');
|
875 |
}
|
876 |
}
|
@@ -954,6 +1007,7 @@ final class BWG {
|
|
954 |
'shortcode_' . $this->prefix,
|
955 |
'editimage_' . $this->prefix,
|
956 |
'options_' . $this->prefix,
|
|
|
957 |
);
|
958 |
if ( !empty($page) && in_array($page, $allowed_pages) ) {
|
959 |
$page = WDWLibrary::clean_page_prefix($page);
|
@@ -1166,10 +1220,8 @@ final class BWG {
|
|
1166 |
* Activate.
|
1167 |
*/
|
1168 |
public function activate() {
|
1169 |
-
|
1170 |
-
|
1171 |
-
wp_schedule_event(time(), 'bwg_autoupdate_interval', 'bwg_schedule_event_hook');
|
1172 |
-
}
|
1173 |
$version = get_option('wd_bwg_version');
|
1174 |
$new_version = $this->db_version;
|
1175 |
if ($version && version_compare($version, $new_version, '<')) {
|
@@ -1184,17 +1236,11 @@ final class BWG {
|
|
1184 |
update_user_meta(get_current_user_id(),'bwg_photo_gallery', '1');
|
1185 |
add_option("wd_bwg_version", $new_version, '', 'no');
|
1186 |
add_option("wd_bwg_initial_version", $new_version, '', 'no');
|
1187 |
-
if ( !$this->is_pro ) {
|
1188 |
-
add_option("wd_bwg_theme_version", '1.0.0', '', 'no');
|
1189 |
-
}
|
1190 |
}
|
1191 |
else {
|
1192 |
require_once $this->plugin_dir . "/insert.php";
|
1193 |
BWGInsert::tables();
|
1194 |
add_option("wd_bwg_version", $new_version, '', 'no');
|
1195 |
-
if ( !$this->is_pro ) {
|
1196 |
-
add_option("wd_bwg_theme_version", '1.0.0', '', 'no');
|
1197 |
-
}
|
1198 |
}
|
1199 |
$this->create_post_types();
|
1200 |
// Using this insted of flush_rewrite_rule() for better performance with multisite.
|
@@ -1389,7 +1435,7 @@ final class BWG {
|
|
1389 |
wp_register_style('mCustomScrollbar', BWG()->front_url . '/css/jquery.mCustomScrollbar.min.css', array(), '3.1.5');
|
1390 |
wp_register_script('jquery-fullscreen', BWG()->front_url . '/js/jquery.fullscreen.min.js', $required_scripts, '0.6.0', $in_footer);
|
1391 |
wp_register_script($this->prefix . '_lazyload', BWG()->front_url . '/js/jquery.lazy.min.js', $required_scripts, $version, $in_footer);
|
1392 |
-
|
1393 |
array_push($required_scripts,
|
1394 |
'sumoselect',
|
1395 |
'jquery-mobile',
|
@@ -1428,6 +1474,13 @@ final class BWG {
|
|
1428 |
wp_register_style($this->prefix . '_frontend', $style_file, $required_styles, $version);
|
1429 |
wp_register_script($this->prefix . '_frontend', $script_file, $required_scripts, $version, $in_footer);
|
1430 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1431 |
if( BWG()->options->lazyload_images ) {
|
1432 |
wp_enqueue_script($this->prefix . '_lazyload');
|
1433 |
}
|
@@ -1437,6 +1490,8 @@ final class BWG {
|
|
1437 |
wp_enqueue_script($this->prefix . '_frontend');
|
1438 |
}
|
1439 |
|
|
|
|
|
1440 |
wp_localize_script($this->prefix . '_frontend', 'bwg_objectsL10n', array(
|
1441 |
'bwg_field_required' => __('field is required.', 'photo-gallery'),
|
1442 |
'bwg_mail_validation' => __('This is not a valid email address.', 'photo-gallery'),
|
@@ -1473,7 +1528,11 @@ final class BWG {
|
|
1473 |
'front_ajax' => BWG()->options->front_ajax,
|
1474 |
'bwg_tag_see_all' => __('see all tags', 'photo-gallery'),
|
1475 |
'bwg_tag_see_less' => __('see less tags', 'photo-gallery'),
|
|
|
1476 |
));
|
|
|
|
|
|
|
1477 |
}
|
1478 |
|
1479 |
/**
|
@@ -1808,17 +1867,15 @@ final class BWG {
|
|
1808 |
);
|
1809 |
register_post_type( 'bwg_tag', $args );
|
1810 |
|
1811 |
-
|
1812 |
-
|
1813 |
-
|
1814 |
-
|
1815 |
-
|
1816 |
-
|
1817 |
-
|
1818 |
-
|
1819 |
-
|
1820 |
-
register_post_type('bwg_share', $args);
|
1821 |
-
}
|
1822 |
|
1823 |
WDWLibrary::register_custom_taxonomies();
|
1824 |
}
|
@@ -2020,6 +2077,33 @@ final class BWG {
|
|
2020 |
function bwg_change_image_editors_library() {
|
2021 |
return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' );
|
2022 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023 |
}
|
2024 |
|
2025 |
/**
|
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.7.0
|
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.7.0';
|
110 |
+
$this->db_version = '1.7.0';
|
111 |
$this->prefix = 'bwg';
|
112 |
$this->nicename = __('Photo Gallery', 'photo-gallery');
|
113 |
require_once($this->plugin_dir . '/framework/WDWLibrary.php');
|
125 |
$this->upload_url = preg_replace('/uploads(.+)photo-gallery/', 'uploads/photo-gallery', $this->upload_url);
|
126 |
}
|
127 |
|
128 |
+
$this->free_msg = sprintf(__('This option is available in %s', 'photo-gallery'), '<a target="_blank" href="' . esc_url($this->plugin_link . $this->utm_source) . '">' . __('Premium version', 'photo-gallery') . '</a>');
|
129 |
}
|
130 |
|
131 |
/**
|
143 |
add_action('wp_ajax_nopriv_GalleryBox', array($this, 'frontend_ajax'));
|
144 |
add_action('wp_ajax_bwg_captcha', array($this, 'bwg_captcha'));
|
145 |
add_action('wp_ajax_nopriv_bwg_captcha', array($this, 'bwg_captcha'));
|
146 |
+
add_action('wp_ajax_Share', array( $this, 'frontend_ajax' ));
|
147 |
+
add_action('wp_ajax_nopriv_Share', array( $this, 'frontend_ajax' ));
|
148 |
+
add_action('wp_ajax_view_facebook_post', array($this, 'bwg_add_embed_ajax'));
|
149 |
+
add_action('wp_ajax_nopriv_view_facebook_post', array($this, 'bwg_add_embed_ajax'));
|
150 |
+
add_action('wp_ajax_nopriv_download_gallery', array($this, 'frontend_ajax'));
|
151 |
+
add_action('wp_ajax_download_gallery', array($this, 'frontend_ajax'));
|
|
|
|
|
152 |
|
153 |
// Admin AJAX actions.
|
154 |
add_action('wp_ajax_galleries_' . $this->prefix , array($this, 'admin_ajax'));
|
160 |
add_action('wp_ajax_editimage_' . $this->prefix, array($this, 'admin_ajax'));
|
161 |
add_action('wp_ajax_addTags_' . $this->prefix, array($this, 'admin_ajax'));
|
162 |
add_action('wp_ajax_options_' . $this->prefix, array($this, 'admin_ajax'));
|
163 |
+
add_action('wp_ajax_addInstagramGallery', array( $this, 'bwg_add_embed_ajax' ));
|
164 |
+
add_action('wp_ajax_addFacebookGallery', array( $this, 'bwg_add_embed_ajax' ));
|
165 |
+
add_action('wp_ajax_speed_' . $this->prefix, array($this, 'admin_ajax'));
|
|
|
166 |
|
167 |
if ( !is_admin() ) {
|
168 |
add_shortcode('Best_Wordpress_Gallery', array($this, 'shortcode'));
|
207 |
add_filter('set-screen-option', array($this, 'set_option_comments'), 10, 3);
|
208 |
add_filter('set-screen-option', array($this, 'set_option_rates'), 10, 3);
|
209 |
|
210 |
+
add_filter('single_template', array( $this, 'share_template' ));
|
|
|
|
|
211 |
|
212 |
add_filter('widget_tag_cloud_args', array($this, 'tag_cloud_widget_args'));
|
213 |
|
214 |
+
add_filter('cron_schedules', array( $this, 'autoupdate_interval' ));
|
215 |
+
add_action('bwg_schedule_event_hook', array( $this, 'social_galleries' ));
|
|
|
|
|
216 |
|
217 |
// Check add-ons versions.
|
218 |
if ( $this->is_pro ) {
|
274 |
add_filter('wp_image_editors', array( $this, 'bwg_change_image_editors_library'), 9, 1);
|
275 |
}
|
276 |
|
277 |
+
/*
|
278 |
+
* Count google page speed score for home page
|
279 |
+
* */
|
280 |
+
public function count_homapage_speed() {
|
281 |
+
require_once($this->plugin_dir . '/admin/controllers/Speed.php');
|
282 |
+
// Checking page class.
|
283 |
+
if ( !class_exists('SpeedController_bwg') ) {
|
284 |
+
return FALSE;
|
285 |
+
}
|
286 |
+
$controller = new SpeedController_bwg();
|
287 |
+
$controller->count_homapage_speed();
|
288 |
+
}
|
289 |
+
|
290 |
/**
|
291 |
* Add plugin action links.
|
292 |
*
|
417 |
$this->overview();
|
418 |
add_action('init', array($this, 'language_load'));
|
419 |
add_action('init', array($this, 'create_post_types'));
|
420 |
+
if ( !is_admin() ) {
|
421 |
+
add_action('admin_bar_menu', array( $this, 'admin_bar_menu' ), 100);
|
422 |
+
}
|
423 |
}
|
424 |
|
425 |
/**
|
504 |
|
505 |
add_submenu_page($parent_slug, __('Global Settings', 'photo-gallery'), __('Global Settings', 'photo-gallery'), $settings_permission, 'options_' . $this->prefix, array($this , 'admin_pages'));
|
506 |
|
507 |
+
if ( !$this->is_appsumo_subscription() ) {
|
508 |
+
add_submenu_page($parent_slug, __('Speed Optimization', 'photo-gallery'), __('Speed Optimization', 'photo-gallery'), 'manage_options', 'speed_' . $this->prefix, array(
|
509 |
+
$this,
|
510 |
+
'admin_pages'
|
511 |
+
));
|
512 |
+
}
|
513 |
$themes_page = add_submenu_page($parent_slug, __('Themes', 'photo-gallery'), __('Themes', 'photo-gallery'), $themes_permission, 'themes_' . $this->prefix, array($this , 'admin_pages'));
|
514 |
add_action('load-' . $themes_page, array($this, 'themes_per_page_option'));
|
515 |
|
520 |
$rates_page = add_submenu_page($parent_slug, __('Ratings', 'photo-gallery'), __('Ratings', 'photo-gallery'), 'manage_options', 'ratings_' . $this->prefix, array($this , 'admin_pages'));
|
521 |
add_action('load-' . $rates_page, array($this, 'rates_per_page_option'));
|
522 |
}
|
|
|
|
|
|
|
|
|
523 |
|
524 |
do_action('bwg_add_submenu_item', $parent_slug);
|
525 |
|
540 |
}
|
541 |
}
|
542 |
|
543 |
+
/* Check if subscription agreement from appsumo or 10WebX_ltd */
|
544 |
+
public function is_appsumo_subscription() {
|
545 |
+
$user_info = get_option('tenweb_user_info');
|
546 |
+
|
547 |
+
if ( !empty($user_info) ) {
|
548 |
+
$agreement_info = $user_info['agreement_info'];
|
549 |
+
$subscription_cat = $agreement_info->subscription_category;
|
550 |
+
if ( $subscription_cat == 'appsumo' || $subscription_cat == '10WebX_ltd' ) {
|
551 |
+
return true;
|
552 |
+
}
|
553 |
+
}
|
554 |
+
return false;
|
555 |
+
}
|
556 |
+
|
557 |
/**
|
558 |
* Admin pages.
|
559 |
*/
|
562 |
'galleries_' . $this->prefix,
|
563 |
'albums_' . $this->prefix,
|
564 |
'options_' . $this->prefix,
|
565 |
+
'speed_' . $this->prefix,
|
566 |
'themes_' . $this->prefix,
|
567 |
'comments_' . $this->prefix,
|
568 |
'ratings_' . $this->prefix,
|
637 |
'media-views', // media uploader styles
|
638 |
'wp-auth-check', // check all
|
639 |
);
|
640 |
+
wp_register_style($this->prefix . '_fontselect', $this->plugin_url . '/js/fontselect/fontselect.min.css', $required_styles, '1.0.0');
|
641 |
+
array_push($required_styles, $this->prefix . '_fontselect');
|
642 |
+
wp_register_script($this->prefix . '_fontselect', $this->plugin_url . '/js/fontselect/fontselect.min.js', $required_scripts, '1.0.0');
|
|
|
|
|
643 |
wp_register_style($this->prefix . '_tables', $this->plugin_url . '/css/bwg_tables.css', $required_styles, $this->plugin_version);
|
644 |
wp_register_style($this->prefix . '_gallery-upgrade', $this->plugin_url . '/css/gallery-upgrade.css', $required_styles, $this->plugin_version);
|
645 |
|
646 |
+
wp_register_script($this->prefix . '_speed_circle', $this->plugin_url . '/js/circle-progress.js', $required_scripts, $this->plugin_version);
|
647 |
+
wp_register_style($this->prefix . '_speed', $this->plugin_url . '/css/bwg_speed.css', $required_styles, $this->plugin_version);
|
648 |
+
wp_register_script($this->prefix . '_speed', $this->plugin_url . '/js/bwg_speed.js', $required_scripts, $this->plugin_version);
|
649 |
+
wp_localize_script($this->prefix . '_speed', 'bwg_speed', array(
|
650 |
+
'install_button_text' => __('Install 10Web Booster plugin', 'photo-gallery'),
|
651 |
+
'activate_button_text' => __('Activate 10Web Booster plugin', 'photo-gallery'),
|
652 |
+
'loading_url' => $this->plugin_url."/images//ajax_loader.png",
|
653 |
+
'wrong_email' => __('Please enter a valid email address.', 'photo-gallery'),
|
654 |
+
'empty_email' => __('Email field should not be empty.', 'photo-gallery'),
|
655 |
+
'wrong_domain_url' => __('Please enter a URL from your domain.', 'photo-gallery'),
|
656 |
+
'wrong_url' => __('Please enter correct URL.', 'photo-gallery'),
|
657 |
+
'enter_page_url' => __('Please enter a Page URL.', 'photo-gallery'),
|
658 |
+
'page_is_not_public' => __('This page is not public. Please publish the page to check the score.', 'photo-gallery'),
|
659 |
+
'sign_up' => __('Sign up', 'photo-gallery'),
|
660 |
+
'home_url' => get_home_url(),
|
661 |
+
'home_speed_status' => $this->check_home_speed_status(),
|
662 |
+
'analyze_button_text' => __('Analyze', 'photo-gallery'),
|
663 |
+
'something_wrong' => __('Something went wrong, please try again', 'photo-gallery'),
|
664 |
+
'speed_ajax_nonce' => wp_create_nonce('speed_ajax_nonce'),
|
665 |
+
'dashboard_login' => __('An account with your email is already registered. <a href="#">Login to continue</a>.', 'photo-gallery' ),
|
666 |
+
));
|
667 |
wp_register_script($this->prefix . '_admin', $this->plugin_url . '/js/bwg.js', $required_scripts, $this->plugin_version);
|
668 |
wp_localize_script($this->prefix . '_admin', 'bwg', array(
|
669 |
'delete_confirmation' => __('Do you want to delete selected items?', 'photo-gallery'),
|
747 |
}
|
748 |
}
|
749 |
|
750 |
+
public function check_home_speed_status() {
|
751 |
+
$bwg_speed_score = get_option('bwg_speed_score');
|
752 |
+
if( !empty($bwg_speed_score) && isset($bwg_speed_score['last']['url']) ) {
|
753 |
+
$url = $bwg_speed_score['last']['url'];
|
754 |
+
return array('desktop_score' => $bwg_speed_score[$url]['desktop_score'], 'mobile_score' => $bwg_speed_score[$url]['mobile_score']);
|
755 |
+
}
|
756 |
+
return 0;
|
757 |
+
}
|
758 |
+
|
759 |
/**
|
760 |
* Frontend AJAX actions.
|
761 |
*/
|
922 |
}
|
923 |
// TODO: move
|
924 |
public function bwg_add_embed_ajax() {
|
|
|
925 |
if (function_exists('current_user_can')) {
|
926 |
+
if (!current_user_can(BWG()->options->permissions)) {
|
927 |
die('Access Denied');
|
928 |
}
|
929 |
}
|
1007 |
'shortcode_' . $this->prefix,
|
1008 |
'editimage_' . $this->prefix,
|
1009 |
'options_' . $this->prefix,
|
1010 |
+
'speed_' . $this->prefix,
|
1011 |
);
|
1012 |
if ( !empty($page) && in_array($page, $allowed_pages) ) {
|
1013 |
$page = WDWLibrary::clean_page_prefix($page);
|
1220 |
* Activate.
|
1221 |
*/
|
1222 |
public function activate() {
|
1223 |
+
delete_transient('bwg_update_check');
|
1224 |
+
wp_schedule_event(time(), 'bwg_autoupdate_interval', 'bwg_schedule_event_hook');
|
|
|
|
|
1225 |
$version = get_option('wd_bwg_version');
|
1226 |
$new_version = $this->db_version;
|
1227 |
if ($version && version_compare($version, $new_version, '<')) {
|
1236 |
update_user_meta(get_current_user_id(),'bwg_photo_gallery', '1');
|
1237 |
add_option("wd_bwg_version", $new_version, '', 'no');
|
1238 |
add_option("wd_bwg_initial_version", $new_version, '', 'no');
|
|
|
|
|
|
|
1239 |
}
|
1240 |
else {
|
1241 |
require_once $this->plugin_dir . "/insert.php";
|
1242 |
BWGInsert::tables();
|
1243 |
add_option("wd_bwg_version", $new_version, '', 'no');
|
|
|
|
|
|
|
1244 |
}
|
1245 |
$this->create_post_types();
|
1246 |
// Using this insted of flush_rewrite_rule() for better performance with multisite.
|
1435 |
wp_register_style('mCustomScrollbar', BWG()->front_url . '/css/jquery.mCustomScrollbar.min.css', array(), '3.1.5');
|
1436 |
wp_register_script('jquery-fullscreen', BWG()->front_url . '/js/jquery.fullscreen.min.js', $required_scripts, '0.6.0', $in_footer);
|
1437 |
wp_register_script($this->prefix . '_lazyload', BWG()->front_url . '/js/jquery.lazy.min.js', $required_scripts, $version, $in_footer);
|
1438 |
+
wp_register_script($this->prefix . '_circle', BWG()->front_url . '/js/circle-progress.js', $required_scripts, '1.2.2', $in_footer);
|
1439 |
array_push($required_scripts,
|
1440 |
'sumoselect',
|
1441 |
'jquery-mobile',
|
1474 |
wp_register_style($this->prefix . '_frontend', $style_file, $required_styles, $version);
|
1475 |
wp_register_script($this->prefix . '_frontend', $script_file, $required_scripts, $version, $in_footer);
|
1476 |
|
1477 |
+
if ( !function_exists('is_plugin_active') ) {
|
1478 |
+
include_once(ABSPATH . 'wp-admin/includes/plugin.php');
|
1479 |
+
}
|
1480 |
+
if ( is_plugin_active('tenweb-speed-optimizer/tenweb_speed_optimizer.php') ) {
|
1481 |
+
wp_enqueue_script($this->prefix . '_circle');
|
1482 |
+
}
|
1483 |
+
|
1484 |
if( BWG()->options->lazyload_images ) {
|
1485 |
wp_enqueue_script($this->prefix . '_lazyload');
|
1486 |
}
|
1490 |
wp_enqueue_script($this->prefix . '_frontend');
|
1491 |
}
|
1492 |
|
1493 |
+
$current_url = urlencode((is_ssl() ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
|
1494 |
+
$bwg_speed_score = get_option('bwg_speed_score');
|
1495 |
wp_localize_script($this->prefix . '_frontend', 'bwg_objectsL10n', array(
|
1496 |
'bwg_field_required' => __('field is required.', 'photo-gallery'),
|
1497 |
'bwg_mail_validation' => __('This is not a valid email address.', 'photo-gallery'),
|
1528 |
'front_ajax' => BWG()->options->front_ajax,
|
1529 |
'bwg_tag_see_all' => __('see all tags', 'photo-gallery'),
|
1530 |
'bwg_tag_see_less' => __('see less tags', 'photo-gallery'),
|
1531 |
+
'page_speed' => isset($bwg_speed_score[urldecode($current_url)]) ? json_encode($bwg_speed_score[urldecode($current_url)]) : false,
|
1532 |
));
|
1533 |
+
|
1534 |
+
wp_register_script($this->prefix . '_speed_circle', $this->plugin_url . '/js/circle-progress.js', $required_scripts, $this->plugin_version);
|
1535 |
+
wp_enqueue_script($this->prefix . '_speed_circle');
|
1536 |
}
|
1537 |
|
1538 |
/**
|
1867 |
);
|
1868 |
register_post_type( 'bwg_tag', $args );
|
1869 |
|
1870 |
+
$args = array(
|
1871 |
+
'label' => 'Gallery Share',
|
1872 |
+
'public' => FALSE,
|
1873 |
+
'publicly_queryable' => TRUE,
|
1874 |
+
'exclude_from_search' => TRUE,
|
1875 |
+
/*'query_var' => 'share',
|
1876 |
+
'rewrite' => array('slug' => 'share'),*/
|
1877 |
+
);
|
1878 |
+
register_post_type('bwg_share', $args);
|
|
|
|
|
1879 |
|
1880 |
WDWLibrary::register_custom_taxonomies();
|
1881 |
}
|
2077 |
function bwg_change_image_editors_library() {
|
2078 |
return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' );
|
2079 |
}
|
2080 |
+
|
2081 |
+
/**
|
2082 |
+
* Admin bar menu.
|
2083 |
+
*
|
2084 |
+
* @param $wp_admin_bar
|
2085 |
+
*/
|
2086 |
+
public function admin_bar_menu( $wp_admin_bar ) {
|
2087 |
+
$current_url = urlencode((is_ssl() ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
|
2088 |
+
|
2089 |
+
global $post;
|
2090 |
+
$args = array(
|
2091 |
+
'page' => 'speed_' . $this->prefix,
|
2092 |
+
'current_url' => $current_url,
|
2093 |
+
'status' => $post->post_status == 'publish' ? 1 : 0,
|
2094 |
+
);
|
2095 |
+
$speed_page = add_query_arg( $args, admin_url('admin.php'));
|
2096 |
+
|
2097 |
+
$wp_admin_bar->add_menu(array(
|
2098 |
+
'id' => 'booster-top-button',
|
2099 |
+
'title' => __('Check PageSpeed score', 'photo-gallery'),
|
2100 |
+
'href' => $speed_page,
|
2101 |
+
'meta' => array(
|
2102 |
+
'target' => '_blank',
|
2103 |
+
'class' => 'hidden'
|
2104 |
+
),
|
2105 |
+
));
|
2106 |
+
}
|
2107 |
}
|
2108 |
|
2109 |
/**
|
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.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -89,19 +89,10 @@ Under the social options tab you’ll find settings for the Instagram and Facebo
|
|
89 |
|
90 |
[Premium version adds](https://10web.io/plugins/wordpress-photo-gallery/)
|
91 |
|
92 |
-
*
|
93 |
-
*
|
94 |
-
*
|
95 |
-
|
96 |
-
* Slideshow/Lightbox 15 effects
|
97 |
-
* Editable themes
|
98 |
-
* Instagram Integration
|
99 |
-
* Commenting possibility with Captcha protection
|
100 |
-
* Social sharing (Facebook, Google+, Twitter, Pinterest and Tumblr)
|
101 |
-
* Dynamic Tag Cloud widget with image tag cloud and text tag cloud options
|
102 |
-
* Possibility to include both videos and images within a single gallery
|
103 |
-
* Add ons support.
|
104 |
-
* Possibility of changing the roles of who can edit the galleries/albums/images (Author/All Users)
|
105 |
|
106 |
= Photo Gallery Add-ons =
|
107 |
[Google Photos Add-on](https://10web.io/plugins/wordpress-photo-gallery/) - Link and display your Google Photos albums in one click
|
@@ -282,6 +273,10 @@ Choose whether to display random or the first/last specific number of images.
|
|
282 |
|
283 |
== Changelog ==
|
284 |
|
|
|
|
|
|
|
|
|
285 |
= 1.6.10 =
|
286 |
* Fixed: Security vulnerability.
|
287 |
|
3 |
Tags: gallery, photo gallery, image gallery, responsive gallery, wordpress gallery plugin, photo albums, gallery slider, gallery lightbox, wordpress photo gallery plugin, fullscreen gallery, watermarking, video gallery
|
4 |
Requires at least: 4.6
|
5 |
Tested up to: 6.0
|
6 |
+
Stable tag: 1.7.0
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
89 |
|
90 |
[Premium version adds](https://10web.io/plugins/wordpress-photo-gallery/)
|
91 |
|
92 |
+
* Carousel gallery view
|
93 |
+
* 3D Widget
|
94 |
+
* Google Photos Extension
|
95 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
|
97 |
= Photo Gallery Add-ons =
|
98 |
[Google Photos Add-on](https://10web.io/plugins/wordpress-photo-gallery/) - Link and display your Google Photos albums in one click
|
273 |
|
274 |
== Changelog ==
|
275 |
|
276 |
+
= 1.7.0 =
|
277 |
+
* Added: 10Web Booster integration
|
278 |
+
* Improved: Updated Views and Widgets
|
279 |
+
|
280 |
= 1.6.10 =
|
281 |
* Fixed: Security vulnerability.
|
282 |
|
update.php
CHANGED
@@ -231,9 +231,7 @@ class BWGUpdate {
|
|
231 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_gallery ADD `gallery_source` varchar(64) NOT NULL DEFAULT ''");
|
232 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_gallery ADD `update_flag` varchar(32) NOT NULL DEFAULT ''");
|
233 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_gallery ADD `autogallery_image_number` int(4) NOT NULL DEFAULT 12");
|
234 |
-
|
235 |
-
wp_schedule_event(time(), 'bwg_autoupdate_interval', 'bwg_schedule_event_hook');
|
236 |
-
}
|
237 |
/*auto-filling image meta description*/
|
238 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `description_tb` tinyint(1) NOT NULL DEFAULT 1");
|
239 |
/*convert old videos with "YOUTUBE" and "VIMEO" videos to new EMBED format*/
|
231 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_gallery ADD `gallery_source` varchar(64) NOT NULL DEFAULT ''");
|
232 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_gallery ADD `update_flag` varchar(32) NOT NULL DEFAULT ''");
|
233 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_gallery ADD `autogallery_image_number` int(4) NOT NULL DEFAULT 12");
|
234 |
+
wp_schedule_event(time(), 'bwg_autoupdate_interval', 'bwg_schedule_event_hook');
|
|
|
|
|
235 |
/*auto-filling image meta description*/
|
236 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `description_tb` tinyint(1) NOT NULL DEFAULT 1");
|
237 |
/*convert old videos with "YOUTUBE" and "VIMEO" videos to new EMBED format*/
|