Photo Gallery by WD – Responsive Photo Gallery - Version 1.5.0

Version Description

  • Added: "Resizable thumbnails" option for all views.
  • Added: "Distance from container frame" option for all views.
  • Added: "Zoom" hover effect for all views.
  • Added: "Title font color (Show on hover)" option for all views.
  • Added: "Show title on hover / Always show" option for masonry view.
  • Added: Option to search images by Filename, Alt/Title, the description in the admin section.
  • Added: Filters for image browser view.
  • Added: Always show "Redirect URL" column on the gallery edit in the images table.
  • Added: Ordering for galleries in a gallery group with all galleries list.
  • Added: "Right-click protection" option on Image browser view.
  • Improved: Image crop functionality.
  • Improved: Move inline JS from all views to prevent conflict with some themes.
  • Improved: Remove static CSS from carousel view to improve load time.
  • Improved: Logic behind frontend AJAX calls to improve performance.
  • Improved: Use the largest image file instead of the original image when the original file doesn't exist to prevent errors.
  • Improved: Gallery edit page load time.
  • Improved: Disabled the cron functionality in the free version.
  • Improved: Masonry view HTML / CSS / JS sturcture.
  • Improved: Mosaic view HTML / CSS / JS sturcture.
  • Improved: Albums "Back" button styles.
  • Improved: Filemanager load time.
  • Improved: Do not add hashtag ids to browser history.
  • Changed: Pause autoplay when the user is writing a comment.
  • Changed: Apply Tag filter to image bulk-download.
  • Changed: Keep active tab in the themes section after updating the settings.
  • Changed: Removed Horizontal Masonry view.
  • Fixed: Bug on inserting Photo Gallery shortcode via Text mode of the Editor.
  • Fixed: Stretched thumbnails bug when Jetpack is enabled.
  • Fixed: Crop with "Keep aspect ratio" Off.
  • Fixed: WordFence warnings.
  • Fixed: When opening a rated image, show a message that image is already rated.
  • Fixed: Title and description in slideshow view appear only on the first image when the Scale-Out effect is selected.
  • Fixed: Skipping some images when bulk-uploading images on a slow connection and PHP 7.1.
  • Fixed: Infinite loading when you click on insert shortcode before the page is fully loaded.
  • Fixed: Instagram gallery auto-update.
  • Fixed: Bug with double quotes in Photo Gallery Widget title.
  • Fixed: Bug on "Select all" in the Comments section when the comments are filtered.
  • Fixed: Include Google Fonts only when needed.
  • Fixed: Widgets preview in Elementor builder.
  • Fixed: The first image is on the left in Slideshow view.
  • Fixed: Conflict with "WP 1 Slider" plugin.
  • Fixed: Bug on Comments moderation option.
  • Fixed: Gallery duplication after Resetting the images with a large number of images.
Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 Photo Gallery by WD – Responsive Photo Gallery
Version 1.5.0
Comparing to
See all releases

Code changes from version 1.4.17 to 1.5.0

Files changed (197) hide show
  1. admin/controllers/Albums.php +10 -4
  2. admin/controllers/Editimage.php +7 -1
  3. admin/controllers/Galleries.php +33 -13
  4. admin/controllers/Options.php +16 -11
  5. admin/controllers/Shortcode.php +4 -4
  6. admin/controllers/Themes.php +21 -12
  7. admin/controllers/Widget.php +10 -10
  8. admin/controllers/WidgetSlideshow.php +11 -11
  9. admin/controllers/WidgetTags.php +11 -11
  10. admin/controllers/elementorWidget.php +191 -0
  11. admin/models/Albums.php +1 -1
  12. admin/models/Galleries.php +76 -25
  13. admin/models/Themes.php +286 -123
  14. admin/views/AdminView.php +7 -1
  15. admin/views/Albums.php +3 -2
  16. admin/views/Editimage.php +199 -176
  17. admin/views/Galleries.php +38 -28
  18. admin/views/Options.php +106 -36
  19. admin/views/Shortcode.php +66 -30
  20. admin/views/Themes.php +259 -113
  21. admin/views/Widget.php +14 -16
  22. admin/views/WidgetSlideshow.php +5 -6
  23. admin/views/WidgetTags.php +6 -8
  24. css/bwg_frontend.css +360 -81
  25. css/bwg_tables.css +89 -9
  26. css/font-awesome/font-awesome.min.css +4 -0
  27. css/font-awesome/less/animated.less +0 -34
  28. css/font-awesome/less/bordered-pulled.less +0 -25
  29. css/font-awesome/less/core.less +0 -12
  30. css/font-awesome/less/fixed-width.less +0 -6
  31. css/font-awesome/less/font-awesome.less +0 -18
  32. css/font-awesome/less/icons.less +0 -733
  33. css/font-awesome/less/larger.less +0 -13
  34. css/font-awesome/less/list.less +0 -19
  35. css/font-awesome/less/mixins.less +0 -60
  36. css/font-awesome/less/path.less +0 -15
  37. css/font-awesome/less/rotated-flipped.less +0 -20
  38. css/font-awesome/less/screen-reader.less +0 -5
  39. css/font-awesome/less/stacked.less +0 -20
  40. css/font-awesome/less/variables.less +0 -744
  41. css/font-awesome/scss/_animated.scss +0 -34
  42. css/font-awesome/scss/_bordered-pulled.scss +0 -25
  43. css/font-awesome/scss/_core.scss +0 -12
  44. css/font-awesome/scss/_fixed-width.scss +0 -6
  45. css/font-awesome/scss/_icons.scss +0 -733
  46. css/font-awesome/scss/_larger.scss +0 -13
  47. css/font-awesome/scss/_list.scss +0 -19
  48. css/font-awesome/scss/_mixins.scss +0 -60
  49. css/font-awesome/scss/_path.scss +0 -15
  50. css/font-awesome/scss/_rotated-flipped.scss +0 -20
  51. css/font-awesome/scss/_screen-reader.scss +0 -5
  52. css/font-awesome/scss/_stacked.scss +0 -20
  53. css/font-awesome/scss/_variables.scss +0 -744
  54. css/font-awesome/scss/font-awesome.scss +0 -18
  55. css/images/animated-overlay.gif +0 -0
  56. css/images/arrow3.png +0 -0
  57. css/images/minus.png +0 -0
  58. css/images/plus.png +0 -0
  59. css/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  60. css/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  61. css/images/ui-bg_flat_10_000000_40x100.png +0 -0
  62. css/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  63. css/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  64. css/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  65. css/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  66. css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  67. css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  68. css/images/ui-icons_222222_256x240.png +0 -0
  69. css/images/ui-icons_228ef1_256x240.png +0 -0
  70. css/images/ui-icons_ef8c08_256x240.png +0 -0
  71. css/images/ui-icons_ffd27a_256x240.png +0 -0
  72. css/images/ui-icons_ffffff_256x240.png +0 -0
  73. css/jquery-ui-1.10.3.custom.css +0 -1177
  74. css/jquery.mCustomScrollbar.min.css +1 -0
  75. css/pricing.css +2 -1
  76. css/sumoselect.min.css +1 -0
  77. filemanager/UploadHandler.php +18 -8
  78. filemanager/css/default.css +97 -94
  79. filemanager/css/default_view_list.css +2 -2
  80. filemanager/css/default_view_thumbs.css +0 -5
  81. filemanager/css/index.html +11 -1
  82. filemanager/images/btn_icons/back.png +0 -0
  83. filemanager/images/btn_icons/copy.png +0 -0
  84. filemanager/images/btn_icons/create_dir.png +0 -0
  85. filemanager/images/btn_icons/cut.png +0 -0
  86. filemanager/images/btn_icons/delete.png +0 -0
  87. filemanager/images/btn_icons/divider.png +0 -0
  88. filemanager/images/btn_icons/import.png +0 -0
  89. filemanager/images/btn_icons/imports.png +0 -0
  90. filemanager/images/btn_icons/index.html +0 -1
  91. filemanager/images/btn_icons/paste.png +0 -0
  92. filemanager/images/btn_icons/rename.png +0 -0
  93. filemanager/images/btn_icons/sort_asc.png +0 -0
  94. filemanager/images/btn_icons/sort_desc.png +0 -0
  95. filemanager/images/btn_icons/up.png +0 -0
  96. filemanager/images/btn_icons/upload.png +0 -0
  97. filemanager/images/btn_icons/uploads.png +0 -0
  98. filemanager/images/btn_icons/view_list.png +0 -0
  99. filemanager/images/btn_icons/view_thumbs.png +0 -0
  100. filemanager/images/file_icons/aac.png +0 -0
  101. filemanager/images/file_icons/ai.png +0 -0
  102. filemanager/images/file_icons/aiff.png +0 -0
  103. filemanager/images/file_icons/avi.png +0 -0
  104. filemanager/images/file_icons/bmp.png +0 -0
  105. filemanager/images/file_icons/c.png +0 -0
  106. filemanager/images/file_icons/cpp.png +0 -0
  107. filemanager/images/file_icons/css.png +0 -0
  108. filemanager/images/file_icons/dat.png +0 -0
  109. filemanager/images/file_icons/dmg.png +0 -0
  110. filemanager/images/file_icons/doc.png +0 -0
  111. filemanager/images/file_icons/dotx.png +0 -0
  112. filemanager/images/file_icons/dwg.png +0 -0
  113. filemanager/images/file_icons/dxf.png +0 -0
  114. filemanager/images/file_icons/eps.png +0 -0
  115. filemanager/images/file_icons/exe.png +0 -0
  116. filemanager/images/file_icons/flv.png +0 -0
  117. filemanager/images/file_icons/gif.png +0 -0
  118. filemanager/images/file_icons/h.png +0 -0
  119. filemanager/images/file_icons/hpp.png +0 -0
  120. filemanager/images/file_icons/html.png +0 -0
  121. filemanager/images/file_icons/ics.png +0 -0
  122. filemanager/images/file_icons/index.html +4 -2
  123. filemanager/images/file_icons/iso.png +0 -0
  124. filemanager/images/file_icons/java.png +0 -0
  125. filemanager/images/file_icons/jpeg.png +0 -0
  126. filemanager/images/file_icons/jpg.png +0 -0
  127. filemanager/images/file_icons/key.png +0 -0
  128. filemanager/images/file_icons/mid.png +0 -0
  129. filemanager/images/file_icons/mp3.png +0 -0
  130. filemanager/images/file_icons/mp4.png +0 -0
  131. filemanager/images/file_icons/mpg.png +0 -0
  132. filemanager/images/file_icons/odf.png +0 -0
  133. filemanager/images/file_icons/ods.png +0 -0
  134. filemanager/images/file_icons/odt.png +0 -0
  135. filemanager/images/file_icons/otp.png +0 -0
  136. filemanager/images/file_icons/ots.png +0 -0
  137. filemanager/images/file_icons/ott.png +0 -0
  138. filemanager/images/file_icons/pdf.png +0 -0
  139. filemanager/images/file_icons/php.png +0 -0
  140. filemanager/images/file_icons/png.png +0 -0
  141. filemanager/images/file_icons/ppt.png +0 -0
  142. filemanager/images/file_icons/psd.png +0 -0
  143. filemanager/images/file_icons/py.png +0 -0
  144. filemanager/images/file_icons/qt.png +0 -0
  145. filemanager/images/file_icons/rar.png +0 -0
  146. filemanager/images/file_icons/rb.png +0 -0
  147. filemanager/images/file_icons/rtf.png +0 -0
  148. filemanager/images/file_icons/sql.png +0 -0
  149. filemanager/images/file_icons/tga.png +0 -0
  150. filemanager/images/file_icons/tgz.png +0 -0
  151. filemanager/images/file_icons/tiff.png +0 -0
  152. filemanager/images/file_icons/txt.png +0 -0
  153. filemanager/images/file_icons/wav.png +0 -0
  154. filemanager/images/file_icons/xls.png +0 -0
  155. filemanager/images/file_icons/xlsx.png +0 -0
  156. filemanager/images/file_icons/xml.png +0 -0
  157. filemanager/images/file_icons/yml.png +0 -0
  158. filemanager/images/file_icons/zip.png +0 -0
  159. filemanager/images/{icons → icons11}/add-new.png +0 -0
  160. filemanager/images/{icons → icons11}/apply.png +0 -0
  161. filemanager/images/{icons → icons11}/cancel.png +0 -0
  162. filemanager/images/{icons → icons11}/checkout-option.png +0 -0
  163. filemanager/images/{icons → icons11}/close-red.png +0 -0
  164. filemanager/images/{icons → icons11}/delete.png +0 -0
  165. filemanager/images/{icons → icons11}/edit.png +0 -0
  166. filemanager/images/{icons → icons11}/media.png +0 -0
  167. filemanager/images/{icons → icons11}/save.png +0 -0
  168. filemanager/js/default.js +1 -4
  169. filemanager/model.php +1 -1
  170. filemanager/view.php +127 -52
  171. framework/BWGOptions.php +4 -0
  172. framework/WDWLibrary.php +432 -475
  173. framework/WDWLibraryEmbed.php +178 -170
  174. framework/howto/data.php +7 -5
  175. framework/howto/howto.php +43 -39
  176. frontend/controllers/BWGControllerAlbum_compact_preview.php +0 -28
  177. frontend/controllers/BWGControllerAlbum_extended_preview.php +0 -45
  178. frontend/controllers/BWGControllerAlbum_masonry_preview.php +0 -29
  179. frontend/controllers/BWGControllerBlog_style.php +0 -40
  180. frontend/controllers/BWGControllerCarousel.php +0 -39
  181. frontend/controllers/BWGControllerGalleryBox.php +131 -73
  182. frontend/controllers/BWGControllerImage_browser.php +0 -17
  183. frontend/controllers/BWGControllerThumbnails_masonry.php +0 -18
  184. frontend/controllers/BWGControllerThumbnails_mosaic.php +0 -17
  185. frontend/controllers/BWGControllerWidget.php +0 -1
  186. frontend/controllers/controller.php +455 -46
  187. frontend/models/BWGModelAlbum_compact_preview.php +0 -3
  188. frontend/models/BWGModelAlbum_extended_preview.php +0 -3
  189. frontend/models/BWGModelGalleryBox.php +7 -7
  190. frontend/models/BWGModelImage_browser.php +0 -3
  191. frontend/models/BWGModelWidget.php +14 -2
  192. frontend/models/model.php +145 -21
  193. frontend/views/BWGViewAlbum_compact_preview.php +331 -1344
  194. frontend/views/BWGViewAlbum_extended_preview.php +193 -1243
  195. frontend/views/BWGViewGalleryBox.php +341 -412
  196. frontend/views/BWGViewImage_browser.php +195 -464
  197. frontend/views/BWGViewSlideshow.php +233 -162
admin/controllers/Albums.php CHANGED
@@ -53,10 +53,12 @@ class AlbumsController_bwg {
53
  );
54
  $user = get_current_user_id();
55
  $screen = get_current_screen();
56
- $option = $screen->get_option('per_page', 'option');
57
- $this->items_per_page = get_user_meta($user, $option, TRUE);
58
- if (empty ($this->items_per_page) || $this->items_per_page < 1) {
59
- $this->items_per_page = $screen->get_option('per_page', 'default');
 
 
60
  }
61
  }
62
 
@@ -101,7 +103,11 @@ class AlbumsController_bwg {
101
  }
102
  $params['items_per_page'] = $this->items_per_page;
103
  $page = (int)WDWLibrary::get('paged', 1);
 
 
 
104
  $page_num = $page ? ($page - 1) * $params['items_per_page'] : 0;
 
105
  $params['page_num'] = $page_num;
106
  $params['search'] = WDWLibrary::get('s', '');
107
 
53
  );
54
  $user = get_current_user_id();
55
  $screen = get_current_screen();
56
+ if ( !empty($screen) ) {
57
+ $option = $screen->get_option('per_page', 'option');
58
+ $this->items_per_page = get_user_meta($user, $option, TRUE);
59
+ if (empty ($this->items_per_page) || $this->items_per_page < 1) {
60
+ $this->items_per_page = $screen->get_option('per_page', 'default');
61
+ }
62
  }
63
  }
64
 
103
  }
104
  $params['items_per_page'] = $this->items_per_page;
105
  $page = (int)WDWLibrary::get('paged', 1);
106
+ if ( $page < 0 ) {
107
+ $page = 1;
108
+ }
109
  $page_num = $page ? ($page - 1) * $params['items_per_page'] : 0;
110
+ $params['paged'] = $page;
111
  $params['page_num'] = $page_num;
112
  $params['search'] = WDWLibrary::get('s', '');
113
 
admin/controllers/Editimage.php CHANGED
@@ -19,7 +19,13 @@ class EditimageController_bwg {
19
  }
20
 
21
  public function execute() {
22
- $this->display();
 
 
 
 
 
 
23
  }
24
 
25
  public function display() {
19
  }
20
 
21
  public function execute() {
22
+ $task = WDWLibrary::get('task');
23
+ if ( $task != 'display' && method_exists($this, $task) ) {
24
+ $this->$task();
25
+ }
26
+ else {
27
+ $this->display();
28
+ }
29
  }
30
 
31
  public function display() {
admin/controllers/Galleries.php CHANGED
@@ -46,12 +46,13 @@ class GalleriesController_bwg {
46
 
47
  $user = get_current_user_id();
48
  $screen = get_current_screen();
49
- $option = $screen->get_option('per_page', 'option');
50
- $this->items_per_page = get_user_meta($user, $option, TRUE);
51
-
52
- if ( empty ($this->items_per_page) || $this->items_per_page < 1 ) {
53
- $this->items_per_page = $screen->get_option('per_page', 'default');
54
- }
 
55
  }
56
 
57
  /**
@@ -91,15 +92,19 @@ class GalleriesController_bwg {
91
  $params['page_title'] = __('Galleries', BWG()->prefix);
92
  $params['actions'] = $this->actions;
93
  $params['order'] = WDWLibrary::get('order', 'asc');
94
- $params['orderby'] = WDWLibrary::get('orderby', 'name');
95
  // To prevent SQL injections.
96
  $params['order'] = ($params['order'] == 'desc') ? 'desc' : 'asc';
97
  if ( !in_array($params['orderby'], array( 'name', 'author' )) ) {
98
- $params['orderby'] = 'id';
99
  }
100
  $params['items_per_page'] = $this->items_per_page;
101
  $page = (int) WDWLibrary::get('paged', 1);
 
 
 
102
  $page_num = $page ? ($page - 1) * $params['items_per_page'] : 0;
 
103
  $params['page_num'] = $page_num;
104
  $params['search'] = WDWLibrary::get('s', '');
105
 
@@ -114,6 +119,11 @@ class GalleriesController_bwg {
114
 
115
  $page_url = add_query_arg($url_arg, $page_url);
116
  $params['page_url'] = $page_url;
 
 
 
 
 
117
 
118
  // Delete images without gallery.
119
  $this->model->delete_unknown_images();
@@ -284,8 +294,8 @@ class GalleriesController_bwg {
284
  ), admin_url('admin-ajax.php'));
285
  $params['add_images_action'] = add_query_arg(array(
286
  'action' => 'addImages',
287
- 'width' => '800',
288
- 'height' => '550',
289
  'extensions' => 'jpg,jpeg,png,gif',
290
  'callback' => 'bwg_add_image',
291
  BWG()->nonce => wp_create_nonce('addImages'),
@@ -318,16 +328,18 @@ class GalleriesController_bwg {
318
  $params['orderby'] = $order_by[0];
319
  $params['items_per_page'] = $this->items_per_page;
320
  $page = (int) WDWLibrary::get('paged', 1);
 
 
 
321
  $page_num = $page ? ($page - 1) * $params['items_per_page'] : 0;
322
  $params['page_num'] = $page_num;
323
  $params['search'] = WDWLibrary::get('s', '');
324
  $params['message'] = $message;
325
-
326
  $params['total'] = $this->model->image_total($id, $params);
327
  $params['rows'] = $this->model->get_image_rows_data($id, $params);
328
  $params['pager'] = 0;
329
  $params['facebook_embed'] = $this->get_facebook_embed();
330
- $this->view->edit( $params );
331
  }
332
 
333
  /**
@@ -361,7 +373,6 @@ class GalleriesController_bwg {
361
  // Save gallery and images.
362
  $data = $this->model->save($image_action);
363
  $message = array('image_message' => $data['image_message']);
364
-
365
  $this->edit($data['id'], $message);
366
  }
367
 
@@ -374,6 +385,7 @@ class GalleriesController_bwg {
374
  foreach ( $rows as $row ) {
375
  if ( $row->item_longest_dimension ) {
376
  $file_path = str_replace("thumb", ".original", htmlspecialchars_decode(BWG()->upload_dir . $row->thumb_url, ENT_COMPAT | ENT_QUOTES));
 
377
  list($img_width) = @getimagesize(htmlspecialchars_decode($file_path, ENT_COMPAT | ENT_QUOTES));
378
  if ( $row->item_longest_dimension > $img_width ) {
379
  $not_set_items[] = $row->id;
@@ -394,4 +406,12 @@ class GalleriesController_bwg {
394
  return $data;
395
  }
396
  }
 
 
 
 
 
 
 
 
397
  }
46
 
47
  $user = get_current_user_id();
48
  $screen = get_current_screen();
49
+ if ( !empty($screen) ) {
50
+ $option = $screen->get_option('per_page', 'option');
51
+ $this->items_per_page = get_user_meta($user, $option, TRUE);
52
+ if ( empty ($this->items_per_page) || $this->items_per_page < 1 ) {
53
+ $this->items_per_page = $screen->get_option('per_page', 'default');
54
+ }
55
+ }
56
  }
57
 
58
  /**
92
  $params['page_title'] = __('Galleries', BWG()->prefix);
93
  $params['actions'] = $this->actions;
94
  $params['order'] = WDWLibrary::get('order', 'asc');
95
+ $params['orderby'] = WDWLibrary::get('orderby', 'order');
96
  // To prevent SQL injections.
97
  $params['order'] = ($params['order'] == 'desc') ? 'desc' : 'asc';
98
  if ( !in_array($params['orderby'], array( 'name', 'author' )) ) {
99
+ $params['orderby'] = 'order';
100
  }
101
  $params['items_per_page'] = $this->items_per_page;
102
  $page = (int) WDWLibrary::get('paged', 1);
103
+ if ( $page < 0 ) {
104
+ $page = 1;
105
+ }
106
  $page_num = $page ? ($page - 1) * $params['items_per_page'] : 0;
107
+ $params['paged'] = $page;
108
  $params['page_num'] = $page_num;
109
  $params['search'] = WDWLibrary::get('s', '');
110
 
119
 
120
  $page_url = add_query_arg($url_arg, $page_url);
121
  $params['page_url'] = $page_url;
122
+ $params['galleries_ordering_ajax_url'] = add_query_arg( array(
123
+ 'action' => 'galleries_' . BWG()->prefix,
124
+ 'task' => 'ordering',
125
+ BWG()->nonce => wp_create_nonce(BWG()->nonce),
126
+ ), admin_url('admin-ajax.php') );
127
 
128
  // Delete images without gallery.
129
  $this->model->delete_unknown_images();
294
  ), admin_url('admin-ajax.php'));
295
  $params['add_images_action'] = add_query_arg(array(
296
  'action' => 'addImages',
297
+ 'width' => '1150',
298
+ 'height' => '800',
299
  'extensions' => 'jpg,jpeg,png,gif',
300
  'callback' => 'bwg_add_image',
301
  BWG()->nonce => wp_create_nonce('addImages'),
328
  $params['orderby'] = $order_by[0];
329
  $params['items_per_page'] = $this->items_per_page;
330
  $page = (int) WDWLibrary::get('paged', 1);
331
+ if ( $page < 0 ) {
332
+ $page = 1;
333
+ }
334
  $page_num = $page ? ($page - 1) * $params['items_per_page'] : 0;
335
  $params['page_num'] = $page_num;
336
  $params['search'] = WDWLibrary::get('s', '');
337
  $params['message'] = $message;
 
338
  $params['total'] = $this->model->image_total($id, $params);
339
  $params['rows'] = $this->model->get_image_rows_data($id, $params);
340
  $params['pager'] = 0;
341
  $params['facebook_embed'] = $this->get_facebook_embed();
342
+ $this->view->edit( $params );
343
  }
344
 
345
  /**
373
  // Save gallery and images.
374
  $data = $this->model->save($image_action);
375
  $message = array('image_message' => $data['image_message']);
 
376
  $this->edit($data['id'], $message);
377
  }
378
 
385
  foreach ( $rows as $row ) {
386
  if ( $row->item_longest_dimension ) {
387
  $file_path = str_replace("thumb", ".original", htmlspecialchars_decode(BWG()->upload_dir . $row->thumb_url, ENT_COMPAT | ENT_QUOTES));
388
+ WDWLibrary::repair_image_original($file_path);
389
  list($img_width) = @getimagesize(htmlspecialchars_decode($file_path, ENT_COMPAT | ENT_QUOTES));
390
  if ( $row->item_longest_dimension > $img_width ) {
391
  $not_set_items[] = $row->id;
406
  return $data;
407
  }
408
  }
409
+
410
+ public function ordering( $id = 0 ) {
411
+ $jsonData = array();
412
+ $message_id = $this->model->ordering( WDWLibrary::get('orders', array()) );
413
+ $jsonData['message'] = WDWLibrary::message_id($message_id);
414
+ echo json_encode($jsonData);
415
+ exit;
416
+ }
417
  }
admin/controllers/Options.php CHANGED
@@ -85,6 +85,7 @@ class OptionsController_bwg {
85
  }
86
 
87
  $params['row'] = $row;
 
88
  $params['page'] = $this->page;
89
  $params['imgcount'] = $this->model->get_image_count();
90
  $params['options_url_ajax'] = add_query_arg( array(
@@ -110,7 +111,7 @@ class OptionsController_bwg {
110
  public function reset( $params = array() ) {
111
  $params['row'] = new WD_BWG_Options(true);
112
  $params['page'] = $this->page;
113
- $params['imgcount'] = $this->model->get_image_count();
114
  $params['options_url_ajax'] = add_query_arg( array(
115
  'action' => 'options_' . BWG()->prefix,
116
  BWG()->nonce => wp_create_nonce(BWG()->nonce),
@@ -175,7 +176,7 @@ class OptionsController_bwg {
175
  if ($name == 'autoupdate_interval') {
176
  $autoupdate_interval = (isset($_POST['autoupdate_interval_hour']) && isset($_POST['autoupdate_interval_min']) ? ((int) $_POST['autoupdate_interval_hour'] * 60 + (int) $_POST['autoupdate_interval_min']) : null);
177
  /*minimum autoupdate interval is 1 min*/
178
- $row->autoupdate_interval = isset($autoupdate_interval) && $autoupdate_interval >= 1 ? $autoupdate_interval : 1;
179
  }
180
  else if ($name != 'images_directory' && isset($_POST[$name])) {
181
  $row->$name = esc_html(stripslashes($_POST[$name]));
@@ -202,13 +203,15 @@ class OptionsController_bwg {
202
  echo WDWLibrary::message_id(0, __('Item Succesfully Saved.', BWG()->prefix));
203
  }
204
 
205
- // Clear hook for scheduled events.
206
- wp_clear_scheduled_hook( 'bwg_schedule_event_hook' );
207
- // Refresh filter according to new time interval.
208
- remove_filter( 'cron_schedules', array(BWG(), 'autoupdate_interval') );
209
- add_filter( 'cron_schedules', array(BWG(), 'autoupdate_interval') );
210
- // Then add new schedule with the same hook name.
211
- wp_schedule_event( time(), 'bwg_autoupdate_interval', 'bwg_schedule_event_hook' );
 
 
212
  }
213
  }
214
 
@@ -269,8 +272,10 @@ class OptionsController_bwg {
269
  continue;
270
  }
271
  $file_path = str_replace("thumb", ".original", htmlspecialchars_decode(BWG()->upload_dir . $img_id->thumb_url, ENT_COMPAT | ENT_QUOTES));
272
- $new_file_path = htmlspecialchars_decode(BWG()->upload_dir . $img_id->thumb_url, ENT_COMPAT | ENT_QUOTES);
273
- WDWLibrary::resize_image($file_path, $new_file_path, $max_width, $max_height);
 
 
274
  }
275
  }
276
  }
85
  }
86
 
87
  $params['row'] = $row;
88
+ $params['row']->lightbox_shortcode = 0;
89
  $params['page'] = $this->page;
90
  $params['imgcount'] = $this->model->get_image_count();
91
  $params['options_url_ajax'] = add_query_arg( array(
111
  public function reset( $params = array() ) {
112
  $params['row'] = new WD_BWG_Options(true);
113
  $params['page'] = $this->page;
114
+ $params['imgcount'] = $this->model->get_image_count();
115
  $params['options_url_ajax'] = add_query_arg( array(
116
  'action' => 'options_' . BWG()->prefix,
117
  BWG()->nonce => wp_create_nonce(BWG()->nonce),
176
  if ($name == 'autoupdate_interval') {
177
  $autoupdate_interval = (isset($_POST['autoupdate_interval_hour']) && isset($_POST['autoupdate_interval_min']) ? ((int) $_POST['autoupdate_interval_hour'] * 60 + (int) $_POST['autoupdate_interval_min']) : null);
178
  /*minimum autoupdate interval is 1 min*/
179
+ $row->autoupdate_interval = isset($autoupdate_interval) && $autoupdate_interval >= 1 ? $autoupdate_interval : 30;
180
  }
181
  else if ($name != 'images_directory' && isset($_POST[$name])) {
182
  $row->$name = esc_html(stripslashes($_POST[$name]));
203
  echo WDWLibrary::message_id(0, __('Item Succesfully Saved.', BWG()->prefix));
204
  }
205
 
206
+ if ( BWG()->is_pro ) {
207
+ // Clear hook for scheduled events.
208
+ wp_clear_scheduled_hook('bwg_schedule_event_hook');
209
+ // Refresh filter according to new time interval.
210
+ remove_filter('cron_schedules', array( BWG(), 'autoupdate_interval' ));
211
+ add_filter('cron_schedules', array( BWG(), 'autoupdate_interval' ));
212
+ // Then add new schedule with the same hook name.
213
+ wp_schedule_event(time(), 'bwg_autoupdate_interval', 'bwg_schedule_event_hook');
214
+ }
215
  }
216
  }
217
 
272
  continue;
273
  }
274
  $file_path = str_replace("thumb", ".original", htmlspecialchars_decode(BWG()->upload_dir . $img_id->thumb_url, ENT_COMPAT | ENT_QUOTES));
275
+ $new_file_path = htmlspecialchars_decode( BWG()->upload_dir . $img_id->thumb_url, ENT_COMPAT | ENT_QUOTES );
276
+ if ( WDWLibrary::repair_image_original($file_path) ) {
277
+ WDWLibrary::resize_image( $file_path, $new_file_path, $max_width, $max_height );
278
+ }
279
  }
280
  }
281
  }
admin/controllers/Shortcode.php CHANGED
@@ -27,12 +27,12 @@ class ShortcodeController_bwg {
27
  $params['gutenberg_callback'] = WDWLibrary::get('callback', 0);
28
  $params['gutenberg_id'] = WDWLibrary::get('edit', 0);
29
  $params['from_menu'] = $this->from_menu;
30
- $params['gallery_rows'] = $this->model->get_gallery_rows_data();
31
- $params['album_rows'] = $this->model->get_album_rows_data();
32
- $params['theme_rows'] = $this->model->get_theme_rows_data();
33
  $params['shortcodes'] = $this->model->get_shortcode_data();
34
  $params['shortcode_max_id'] = $this->model->get_shortcode_max_id();
35
- $params['tag_rows'] = $this->model->get_tag_rows_data();
36
 
37
  $params['watermark_fonts'] = WDWLibrary::get_fonts();
38
  $params['gallery_types_name'] = array(
27
  $params['gutenberg_callback'] = WDWLibrary::get('callback', 0);
28
  $params['gutenberg_id'] = WDWLibrary::get('edit', 0);
29
  $params['from_menu'] = $this->from_menu;
30
+ $params['gallery_rows'] = WDWLibrary::get_galleries();
31
+ $params['album_rows'] = WDWLibrary::get_gallery_groups();
32
+ $params['theme_rows'] = WDWLibrary::get_theme_rows_data();
33
  $params['shortcodes'] = $this->model->get_shortcode_data();
34
  $params['shortcode_max_id'] = $this->model->get_shortcode_max_id();
35
+ $params['tag_rows'] = WDWLibrary::get_tags();
36
 
37
  $params['watermark_fonts'] = WDWLibrary::get_fonts();
38
  $params['gallery_types_name'] = array(
admin/controllers/Themes.php CHANGED
@@ -223,12 +223,21 @@ class ThemesController_bwg {
223
  * @param int $id
224
  * @param bool $bulk
225
  */
226
- public function edit( $id = 0, $bulk = FALSE ) {
227
- $reset = WDWLibrary::get('reset', FALSE);
228
- // Get Theme data.
229
- $row = $this->model->get_row_data($id, $reset);
230
  if (!isset($row->container_margin)) {
231
  $row->container_margin = 1;
 
 
 
 
 
 
 
 
 
232
  }
233
  $current_type = WDWLibrary::get('current_type', 'Thumbnail');
234
  $form_action = add_query_arg( array(
@@ -298,13 +307,13 @@ public function edit( $id = 0, $bulk = FALSE ) {
298
  'skew' => __('Skew', BWG()->prefix),
299
  );
300
 
301
- $thumbnail_hover_effects = array(
302
- 'none' => __('None', BWG()->prefix),
303
- 'rotate' => __('Rotate', BWG()->prefix),
304
- 'scale' => __('Scale', BWG()->prefix),
305
- 'zoom' => __('Zoom', BWG()->prefix),
306
- 'skew' => __('Skew', BWG()->prefix),
307
- );
308
 
309
  $button_styles = array(
310
  'fa-chevron' => __('Chevron', BWG()->prefix),
@@ -321,7 +330,7 @@ public function edit( $id = 0, $bulk = FALSE ) {
321
  'square' => __('Square', BWG()->prefix),
322
  );
323
 
324
- $active_tab = WDWLibrary::get('active_tab','Thumbnail');
325
 
326
  $params = array(
327
  'id' => $id,
223
  * @param int $id
224
  * @param bool $bulk
225
  */
226
+ public function edit( $id = 0, $bulk = FALSE ) {
227
+ $reset = WDWLibrary::get('reset', FALSE);
228
+ // Get Theme data.
229
+ $row = $this->model->get_row_data($id, $reset);
230
  if (!isset($row->container_margin)) {
231
  $row->container_margin = 1;
232
+ }
233
+ if (!isset($row->masonry_container_margin)) {
234
+ $row->masonry_container_margin = 1;
235
+ }
236
+ if (!isset($row->mosaic_container_margin)) {
237
+ $row->mosaic_container_margin = 1;
238
+ }
239
+ if (!isset($row->compact_container_margin)) {
240
+ $row->compact_container_margin = 1;
241
  }
242
  $current_type = WDWLibrary::get('current_type', 'Thumbnail');
243
  $form_action = add_query_arg( array(
307
  'skew' => __('Skew', BWG()->prefix),
308
  );
309
 
310
+ $thumbnail_hover_effects = array(
311
+ 'none' => __('None', BWG()->prefix),
312
+ 'rotate' => __('Rotate', BWG()->prefix),
313
+ 'scale' => __('Scale', BWG()->prefix),
314
+ 'zoom' => __('Zoom', BWG()->prefix),
315
+ 'skew' => __('Skew', BWG()->prefix),
316
+ );
317
 
318
  $button_styles = array(
319
  'fa-chevron' => __('Chevron', BWG()->prefix),
330
  'square' => __('Square', BWG()->prefix),
331
  );
332
 
333
+ $active_tab = WDWLibrary::get('active_tab', 'Thumbnail');
334
 
335
  $params = array(
336
  'id' => $id,
admin/controllers/Widget.php CHANGED
@@ -75,16 +75,16 @@ class WidgetController_bwg extends WP_Widget {
75
  * @return mixed
76
  */
77
  public function update($new_instance, $old_instance) {
78
- $instance['title'] = strip_tags($new_instance['title']);
79
- $instance['type'] = $new_instance['type'];
80
- $instance['gallery_id'] = $new_instance['gallery_id'];
81
- $instance['album_id'] = $new_instance['album_id'];
82
- $instance['show'] = $new_instance['show'];
83
- $instance['count'] = $new_instance['count'];
84
- $instance['width'] = $new_instance['width'];
85
- $instance['height'] = $new_instance['height'];
86
- $instance['theme_id'] = $new_instance['theme_id'];
87
- $instance['view_type'] = $new_instance['view_type'];
88
  return $instance;
89
  }
90
  }
75
  * @return mixed
76
  */
77
  public function update($new_instance, $old_instance) {
78
+ $instance['title'] = isset($new_instance['title']) ? strip_tags($new_instance['title']) : '';
79
+ $instance['type'] = isset($new_instance['type']) ? $new_instance['type'] : 'gallery';
80
+ $instance['gallery_id'] = isset($new_instance['gallery_id']) ? $new_instance['gallery_id'] : 0;
81
+ $instance['album_id'] = isset($new_instance['album_id']) ? $new_instance['album_id'] : 0;
82
+ $instance['show'] = isset($new_instance['show']) ? $new_instance['show'] : 'random';
83
+ $instance['count'] = isset($new_instance['count']) ? $new_instance['count'] : 4;
84
+ $instance['width'] = isset($new_instance['width']) ? $new_instance['width'] : 100;
85
+ $instance['height'] = isset($new_instance['height']) ? $new_instance['height'] : 100;
86
+ $instance['theme_id'] = isset($new_instance['theme_id']) ? $new_instance['theme_id'] : 1;
87
+ $instance['view_type'] = isset($new_instance['view_type']) ? $new_instance['view_type'] : 'thumbnails';
88
  return $instance;
89
  }
90
  }
admin/controllers/WidgetSlideshow.php CHANGED
@@ -92,17 +92,17 @@ class WidgetSlideshowController_bwg extends WP_Widget {
92
 
93
  // Update Settings.
94
  public function update($new_instance, $old_instance) {
95
- $instance['title'] = strip_tags($new_instance['title']);
96
- $instance['gallery_id'] = $new_instance['gallery_id'];
97
- $instance['width'] = $new_instance['width'];
98
- $instance['height'] = $new_instance['height'];
99
- $instance['filmstrip_height'] = $new_instance['filmstrip_height'];
100
- $instance['effect'] = $new_instance['effect'];
101
- $instance['interval'] = $new_instance['interval'];
102
- $instance['shuffle'] = $new_instance['shuffle'];
103
- $instance['theme_id'] = $new_instance['theme_id'];
104
- $instance['enable_ctrl_btn'] = $new_instance['enable_ctrl_btn'];
105
- $instance['enable_autoplay'] = $new_instance['enable_autoplay'];
106
  return $instance;
107
  }
108
  }
92
 
93
  // Update Settings.
94
  public function update($new_instance, $old_instance) {
95
+ $instance['title'] = isset($new_instance['title']) ? strip_tags($new_instance['title']) : '';
96
+ $instance['gallery_id'] = isset($new_instance['gallery_id']) ? $new_instance['gallery_id'] : 0;
97
+ $instance['width'] = isset($new_instance['width']) ? $new_instance['width'] : 200;
98
+ $instance['height'] = isset($new_instance['height']) ? $new_instance['height'] : 200;
99
+ $instance['filmstrip_height'] = isset($new_instance['filmstrip_height']) ? $new_instance['filmstrip_height'] : 40;
100
+ $instance['effect'] = isset($new_instance['effect']) ? $new_instance['effect'] : 'fade';
101
+ $instance['interval'] = isset($new_instance['interval']) ? $new_instance['interval'] : 5;
102
+ $instance['shuffle'] = isset($new_instance['shuffle']) ? $new_instance['shuffle'] : 0;
103
+ $instance['theme_id'] = isset($new_instance['theme_id']) ? $new_instance['theme_id'] : 1;
104
+ $instance['enable_ctrl_btn'] = isset($new_instance['enable_ctrl_btn']) ? $new_instance['enable_ctrl_btn'] : 0;
105
+ $instance['enable_autoplay'] = isset($new_instance['enable_autoplay']) ? $new_instance['enable_autoplay'] : 0;
106
  return $instance;
107
  }
108
  }
admin/controllers/WidgetTags.php CHANGED
@@ -77,17 +77,17 @@ class WidgetTagsController_bwg extends WP_Widget {
77
  * @return mixed
78
  */
79
  public function update($new_instance, $old_instance) {
80
- $instance['title'] = strip_tags($new_instance['title']);
81
- $instance['type'] = $new_instance['type'];
82
- $instance['show_name'] = $new_instance['show_name'];
83
- $instance['open_option'] = $new_instance['open_option'];
84
- $instance['count'] = $new_instance['count'];
85
- $instance['width'] = $new_instance['width'];
86
- $instance['height'] = $new_instance['height'];
87
- $instance['background_transparent'] = $new_instance['background_transparent'];
88
- $instance['background_color'] = $new_instance['background_color'];
89
- $instance['text_color'] = $new_instance['text_color'];
90
- $instance['theme_id'] = $new_instance['theme_id'];
91
  return $instance;
92
  }
93
  }
77
  * @return mixed
78
  */
79
  public function update($new_instance, $old_instance) {
80
+ $instance['title'] = isset($new_instance['title']) ? strip_tags($new_instance['title']) : '';
81
+ $instance['type'] = isset($new_instance['type']) ? $new_instance['type'] : 'text';
82
+ $instance['show_name'] = isset($new_instance['show_name']) ? $new_instance['show_name'] : 0;
83
+ $instance['open_option'] = isset($new_instance['open_option']) ? $new_instance['open_option'] : 'gallery';
84
+ $instance['count'] = isset($new_instance['count']) ? $new_instance['count'] : 0;
85
+ $instance['width'] = isset($new_instance['width']) ? $new_instance['width'] : 250;
86
+ $instance['height'] = isset($new_instance['height']) ? $new_instance['height'] : 250;
87
+ $instance['background_transparent'] = isset($new_instance['background_transparent']) ? $new_instance['background_transparent'] : 1;
88
+ $instance['background_color'] = isset($new_instance['background_color']) ? $new_instance['background_color'] : '000000';
89
+ $instance['text_color'] = isset($new_instance['text_color']) ? $new_instance['text_color'] : 'eeeeee';
90
+ $instance['theme_id'] = isset($new_instance['theme_id']) ? $new_instance['theme_id'] : 1;
91
  return $instance;
92
  }
93
  }
admin/controllers/elementorWidget.php ADDED
@@ -0,0 +1,191 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class BWGElementor extends \Elementor\Widget_Base {
4
+ /**
5
+ * Get widget name.
6
+ *
7
+ * @return string Widget name.
8
+ */
9
+ public function get_name() {
10
+ return 'bwg-elementor';
11
+ }
12
+
13
+ /**
14
+ * Get widget title.
15
+ *
16
+ * @return string Widget title.
17
+ */
18
+ public function get_title() {
19
+ return __('Gallery', BWG()->prefix);
20
+ }
21
+
22
+ /**
23
+ * Get widget icon.
24
+ *
25
+ * @return string Widget icon.
26
+ */
27
+ public function get_icon() {
28
+ return 'fa fa-camera';
29
+ }
30
+
31
+ /**
32
+ * Get widget categories.
33
+ *
34
+ * @return array Widget categories.
35
+ */
36
+ public function get_categories() {
37
+ return [ 'basic' ];
38
+ }
39
+
40
+ /**
41
+ * Register widget controls.
42
+ */
43
+ protected function _register_controls() {
44
+ $this->start_controls_section(
45
+ 'bwg_general',
46
+ [
47
+ 'label' => __('General', BWG()->prefix),
48
+ ]
49
+ );
50
+
51
+ $this->add_control(
52
+ 'bwg_view_type_tabs',
53
+ [
54
+ 'label' => __('Gallery/Gallery group', BWG()->prefix),
55
+ 'type' => \Elementor\Controls_Manager::CHOOSE,
56
+ 'label_block' => true,
57
+ 'toggle' => false,
58
+ 'default' => 'gallery',
59
+ 'options' => [
60
+ 'gallery' => [
61
+ 'title' => __('Gallery', BWG()->prefix),
62
+ 'icon' => 'fa fa-square',
63
+ ],
64
+ 'gallery_group' => [
65
+ 'title' => __('Gallery group', BWG()->prefix),
66
+ 'icon' => 'fa fa-th-large',
67
+ ],
68
+ ],
69
+ ]
70
+ );
71
+
72
+ $this->add_control(
73
+ 'bwg_gallery_view_type',
74
+ [
75
+ 'label_block' => true,
76
+ 'description' => __('Select the gallery view type.', BWG()->prefix) . '<a target="_balnk" href="' . add_query_arg(array( 'page' => 'options_' . BWG()->prefix, 'active_tab' => 1 ), admin_url('admin.php')) . '">' . __('Edit options', BWG()->prefix) . '</a>',
77
+ 'type' => \Elementor\Controls_Manager::SELECT,
78
+ 'default' => 'thumbnails',
79
+ 'options' => [
80
+ 'thumbnails' => __('Thumbnails', BWG()->prefix),
81
+ 'thumbnails_masonry' => __('Masonry', BWG()->prefix),
82
+ 'thumbnails_mosaic' => __('Mosaic', BWG()->prefix),
83
+ 'slideshow' => __('Slideshow', BWG()->prefix),
84
+ 'image_browser' => __('Image browser', BWG()->prefix),
85
+ 'blog_style' => __('Blog style', BWG()->prefix),
86
+ 'carousel' => __('Carousel', BWG()->prefix),
87
+ ],
88
+ 'condition' => [
89
+ 'bwg_view_type_tabs' => 'gallery',
90
+ ],
91
+ ]
92
+ );
93
+ $this->add_control(
94
+ 'bwg_galleries',
95
+ [
96
+ 'label' => __('Gallery', BWG()->prefix),
97
+ 'label_block' => true,
98
+ 'description' => __('Select the gallery to display.', BWG()->prefix) . '<a target="_balnk" href="' . add_query_arg(array( 'page' => 'galleries_' . BWG()->prefix ), admin_url('admin.php')) . '">' . __('Edit gallery', BWG()->prefix) . '</a>',
99
+ 'type' => \Elementor\Controls_Manager::SELECT,
100
+ 'default' => 0,
101
+ 'options' => WDWLibrary::get_galleries(),
102
+ 'condition' => [
103
+ 'bwg_view_type_tabs' => 'gallery',
104
+ ],
105
+ ]
106
+ );
107
+ $this->add_control(
108
+ 'bwg_tags',
109
+ [
110
+ 'label' => __('Tag', BWG()->prefix),
111
+ 'label_block' => true,
112
+ 'description' => __('Filter gallery images by this tag.', BWG()->prefix) . '<a target="_balnk" href="' . add_query_arg(array( 'taxonomy' => BWG()->prefix . '_tag' ), admin_url('edit-tags.php')) . '">' . __('Edit tag', BWG()->prefix) . '</a>',
113
+ 'type' => \Elementor\Controls_Manager::SELECT,
114
+ 'default' => 0,
115
+ 'options' => WDWLibrary::get_tags(),
116
+ 'condition' => [
117
+ 'bwg_view_type_tabs' => 'gallery',
118
+ ],
119
+ ]
120
+ );
121
+
122
+ $this->add_control(
123
+ 'bwg_gallery_group_view_type',
124
+ [
125
+ 'label_block' => true,
126
+ 'description' => __('Select the gallery group type.', BWG()->prefix) . '<a target="_balnk" href="' . add_query_arg(array( 'page' => 'options_' . BWG()->prefix, 'active_tab' => 2 ), admin_url('admin.php')) . '">' . __('Edit options', BWG()->prefix) . '</a>',
127
+ 'type' => \Elementor\Controls_Manager::SELECT,
128
+ 'default' => 'album_compact_preview',
129
+ 'options' => [
130
+ 'album_compact_preview' => __('Compact', BWG()->prefix),
131
+ 'album_masonry_preview' => __('Masonry', BWG()->prefix),
132
+ 'album_extended_preview' => __('Extended', BWG()->prefix),
133
+ ],
134
+ 'condition' => [
135
+ 'bwg_view_type_tabs' => 'gallery_group',
136
+ ],
137
+ ]
138
+ );
139
+ $this->add_control(
140
+ 'bwg_gallery_group',
141
+ [
142
+ 'label' => __('Gallery group', BWG()->prefix),
143
+ 'label_block' => true,
144
+ 'description' => __('Select the gallery group to display.', BWG()->prefix) . '<a target="_balnk" href="' . add_query_arg(array( 'page' => 'albums_' . BWG()->prefix ), admin_url('admin.php')) . '">' . __('Edit gallery group', BWG()->prefix) . '</a>',
145
+ 'type' => \Elementor\Controls_Manager::SELECT,
146
+ 'default' => 0,
147
+ 'options' => WDWLibrary::get_gallery_groups(),
148
+ 'condition' => [
149
+ 'bwg_view_type_tabs' => 'gallery_group',
150
+ ],
151
+ ]
152
+ );
153
+
154
+ $this->add_control(
155
+ 'bwg_theme',
156
+ [
157
+ 'label' => __('Theme', BWG()->prefix),
158
+ 'label_block' => true,
159
+ 'description' => __('Choose the theme for your gallery.', BWG()->prefix) . '<a target="_balnk" href="' . add_query_arg(array( 'page' => 'themes_' . BWG()->prefix ), admin_url('admin.php')) . '">' . __('Edit theme', BWG()->prefix) . '</a>',
160
+ 'type' => \Elementor\Controls_Manager::SELECT,
161
+ 'default' => WDWLibrary::get_default_theme(),
162
+ 'options' => WDWLibrary::get_theme_rows_data(),
163
+ ]
164
+ );
165
+
166
+ $this->end_controls_section();
167
+ }
168
+
169
+ /**
170
+ * Render widget output on the frontend.
171
+ */
172
+ protected function render() {
173
+ $settings = $this->get_settings_for_display();
174
+ $params = array();
175
+
176
+ if ( $settings['bwg_view_type_tabs'] === 'gallery' ) {
177
+ $params['gallery_type'] = $settings['bwg_gallery_view_type'];
178
+ $params['gallery_id'] = $settings['bwg_galleries'];
179
+ $params['tag'] = $settings['bwg_tags'];
180
+ }
181
+ elseif ( $settings['bwg_view_type_tabs'] === 'gallery_group' ) {
182
+ $params['gallery_type'] = $settings['bwg_gallery_group_view_type'];
183
+ $params['album_id'] = $settings['bwg_gallery_group'];
184
+ }
185
+ $params['theme_id'] = $settings['bwg_theme'];
186
+
187
+ echo BWG()->shortcode($params);
188
+ }
189
+ }
190
+
191
+ \Elementor\Plugin::instance()->widgets_manager->register_widget_type(new BWGElementor());
admin/models/Albums.php CHANGED
@@ -288,7 +288,7 @@ class AlbumsModel_bwg {
288
  $slug = WDWLibrary::get('slug');
289
  $slug = $this->create_unique_slug((empty($slug) ? $name : $slug), $id);
290
  $old_slug = WDWLibrary::get('old_slug');
291
- $published = WDWLibrary::get('published', 0);
292
  $preview_image = WDWLibrary::get('preview_image');
293
  $description = WDWLibrary::get('description', '', FALSE);
294
  $albumgallery_ids = WDWLibrary::get('albumgallery_ids');
288
  $slug = WDWLibrary::get('slug');
289
  $slug = $this->create_unique_slug((empty($slug) ? $name : $slug), $id);
290
  $old_slug = WDWLibrary::get('old_slug');
291
+ $published = WDWLibrary::get('published', 0);
292
  $preview_image = WDWLibrary::get('preview_image');
293
  $description = WDWLibrary::get('description', '', FALSE);
294
  $albumgallery_ids = WDWLibrary::get('albumgallery_ids');
admin/models/Galleries.php CHANGED
@@ -132,7 +132,7 @@ class GalleriesModel_bwg {
132
  */
133
  public function get_image_rows_data($gallery_id, $params, $total = FALSE) {
134
  global $wpdb;
135
- $rows = array();
136
  $order = $params['order'];
137
  $orderby = $params['orderby'];
138
  $page_per = $params['items_per_page'];
@@ -162,9 +162,26 @@ class GalleriesModel_bwg {
162
  $query .= " WHERE author>=0";
163
  }
164
  $query .= " AND `gallery_id`=" . $gallery_id;
 
165
  if ( $search ) {
166
- $query .= ' AND `filename` LIKE "%' . $search . '%"';
167
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
168
  if ( !$total ) {
169
  $query .= ' ORDER BY `' . $orderby . '` ' . $order;
170
  $query .= ' LIMIT ' . $page_num . ',' . $page_per;
@@ -176,6 +193,7 @@ class GalleriesModel_bwg {
176
  $value->not_set_items = 0;
177
  if ( $value->item_longest_dimension && strpos($value->sections, "downloads") !== FALSE ) {
178
  $file_path = str_replace("thumb", ".original", htmlspecialchars_decode(BWG()->upload_dir . $value->thumb_url, ENT_COMPAT | ENT_QUOTES));
 
179
  list($img_width) = @getimagesize(htmlspecialchars_decode($file_path, ENT_COMPAT | ENT_QUOTES));
180
  if ( $value->item_longest_dimension > $img_width ) {
181
  $value->not_set_items = 1;
@@ -329,7 +347,6 @@ class GalleriesModel_bwg {
329
  $old_slug = WDWLibrary::get('old_slug', '');
330
  $preview_image = WDWLibrary::get('preview_image', '');
331
  $random_preview_image = '';
332
-
333
  if ( $preview_image == '' ) {
334
  if ( $id != 0 ) {
335
  $random_preview_image = $wpdb->get_var($wpdb->prepare("SELECT random_preview_image FROM " . $wpdb->prefix . "bwg_gallery WHERE id='%d'", $id));
@@ -413,6 +430,7 @@ class GalleriesModel_bwg {
413
  $save = TRUE;
414
  $author = get_current_user_id();
415
  $all = WDWLibrary::get('check_all_items', FALSE);
 
416
  $image_message = '';
417
  $checked_items_count = WDWLibrary::get('checked_items_count', 0);
418
  foreach ( $image_id_array as $image_id ) {
@@ -463,7 +481,9 @@ class GalleriesModel_bwg {
463
  'rate_count' => 0,
464
  'hit_count' => 0,
465
  'pricelist_id' => 0,
 
466
  );
 
467
  $save = $wpdb->insert($wpdb->prefix . 'bwg_image', $data);
468
  $new_image_id = $wpdb->insert_id;
469
  if ( isset($_POST['image_current_id']) && (esc_html($_POST['image_current_id']) == $image_id) ) {
@@ -493,16 +513,16 @@ class GalleriesModel_bwg {
493
  }
494
  }
495
  }
496
- if ( $image_action
497
- && !$all
498
  && method_exists($this, $image_action)
499
  && isset($_POST['check_' . $temp_image_id]) ) {
500
- $this->$image_action($image_id, $gallery_id);
501
  }
502
  }
503
  }
504
 
505
- if ( $image_action && $checked_items_count ) {
506
  $actions = WDWLibrary::image_actions();
507
  $image_message = sprintf(_n('%s item successfully %s.', '%s items successfully %s.', $checked_items_count, BWG()->prefix), $checked_items_count, $actions[$image_action]['bulk_action']);
508
  }
@@ -514,7 +534,6 @@ class GalleriesModel_bwg {
514
  }
515
 
516
  $images_saved = ($save !== FALSE) ? TRUE : FALSE;
517
-
518
  return array( 'images_saved' => $images_saved, 'image_message' => $image_message );
519
  }
520
 
@@ -528,7 +547,6 @@ class GalleriesModel_bwg {
528
  public function get_post_random_image( $params = array() ) {
529
  $i = 0;
530
  $random_preview_image = '';
531
-
532
  while ( isset($params['input_filetype_pr_' . $i]) ) {
533
  if ( isset($params['thumb_url_pr_' . $i]) ) {
534
  $random_preview_image = esc_html(stripslashes($params['thumb_url_pr_' . $i]));
@@ -713,7 +731,8 @@ class GalleriesModel_bwg {
713
  if ( $gallery_id == 0 ) {
714
  $gallery_id = (int) WDWLibrary::get('current_id', 0);
715
  }
716
- WDWLibrary::bwg_image_recover_all($gallery_id);
 
717
  }
718
  else {
719
  global $wpdb;
@@ -724,6 +743,7 @@ class GalleriesModel_bwg {
724
  $where = ($id) ? ' `id` = ' . $id : 1;
725
  WDWLibrary::update_image_modified_date( $where );
726
  }
 
727
  return 20;
728
  }
729
 
@@ -737,17 +757,20 @@ class GalleriesModel_bwg {
737
  * @return int
738
  */
739
  public function image_set_watermark($id, $gallery_id = 0, $all = FALSE) {
740
- $options = new WD_BWG_Options();
741
- list($width_watermark, $height_watermark, $type_watermark) = getimagesize( $options->built_in_watermark_url );
742
- if ( empty($width_watermark) OR empty($height_watermark) OR empty($type_watermark)) {
743
- $message_id = 26;
744
- } else {
745
- if ( $gallery_id == 0 ) {
746
- $gallery_id = (int) WDWLibrary::get('current_id', 0);
747
- }
748
- $message_id = WDWLibrary::bwg_image_set_watermark($gallery_id, ($all ? 0 : $id));
749
- }
750
- return $message_id;
 
 
 
751
  }
752
 
753
  /**
@@ -861,7 +884,7 @@ class GalleriesModel_bwg {
861
  }
862
  WDWLibrary::update_image_modified_date( $where );
863
 
864
- return 22;
865
  }
866
 
867
  /**
@@ -888,7 +911,9 @@ class GalleriesModel_bwg {
888
  foreach ( $img_ids as $img_id ) {
889
  $file_path = str_replace("thumb", ".original", htmlspecialchars_decode(BWG()->upload_dir . $img_id->thumb_url, ENT_COMPAT | ENT_QUOTES));
890
  $new_file_path = htmlspecialchars_decode(BWG()->upload_dir . $img_id->thumb_url, ENT_COMPAT | ENT_QUOTES);
891
- WDWLibrary::resize_image($file_path, $new_file_path, BWG()->options->upload_thumb_width, BWG()->options->upload_thumb_height);
 
 
892
  }
893
  WDWLibrary::update_image_modified_date( $where );
894
 
@@ -924,7 +949,9 @@ class GalleriesModel_bwg {
924
  $file_path = BWG()->upload_dir . $image->image_url;
925
  $thumb_filename = BWG()->upload_dir . $image->thumb_url;
926
  $original_filename = str_replace('/thumb/', '/.original/', $thumb_filename);
927
- WDWLibrary::resize_image($original_filename, $file_path, $image_width, $image_height);
 
 
928
  }
929
  }
930
  WDWLibrary::update_image_modified_date( $where );
@@ -1022,6 +1049,7 @@ class GalleriesModel_bwg {
1022
  $image_ids_col = $wpdb->get_col('SELECT id FROM `' . $wpdb->prefix . 'bwg_image`' . $where);
1023
  foreach ($image_ids_col as $image_id) {
1024
  $file_path = str_replace("thumb", ".original", htmlspecialchars_decode(BWG()->upload_dir . $_POST['thumb_url_' . $image_id], ENT_COMPAT | ENT_QUOTES));
 
1025
  list($img_width) = @getimagesize(htmlspecialchars_decode($file_path, ENT_COMPAT | ENT_QUOTES));
1026
  if ($item_longest_dimension > $img_width && $img_width) {
1027
  $not_set_items[] = $image_id . "-" . $item_longest_dimension;
@@ -1056,4 +1084,27 @@ class GalleriesModel_bwg {
1056
  }
1057
  $wpdb->query('UPDATE `' . $wpdb->prefix . 'bwg_image` SET pricelist_id=0' . $where);
1058
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1059
  }
132
  */
133
  public function get_image_rows_data($gallery_id, $params, $total = FALSE) {
134
  global $wpdb;
135
+ $rows = array();
136
  $order = $params['order'];
137
  $orderby = $params['orderby'];
138
  $page_per = $params['items_per_page'];
162
  $query .= " WHERE author>=0";
163
  }
164
  $query .= " AND `gallery_id`=" . $gallery_id;
165
+ $search_where = '';
166
  if ( $search ) {
167
+ $search_keys = explode(' ', trim($search));
168
+ $alt_search = '(';
169
+ $filename_search = '(';
170
+ $description_search = '(';
171
+ foreach( $search_keys as $search_key) {
172
+ $alt_search .= '`T_IMAGE`.`alt` LIKE "%' . trim($search_key) . '%" AND ';
173
+ $filename_search .= '`T_IMAGE`.`filename` LIKE "%' . trim($search_key) . '%" AND ';
174
+ $description_search .= '`T_IMAGE`.`description` LIKE "%' . trim($search_key) . '%" AND ';
175
+ }
176
+ $alt_search = rtrim($alt_search, 'AND ');
177
+ $alt_search .= ')';
178
+ $filename_search = rtrim($filename_search, 'AND ');
179
+ $filename_search .= ')';
180
+ $description_search = rtrim($description_search, 'AND ');
181
+ $description_search .= ')';
182
+ $search_where = ' AND (' . $filename_search . ' OR ' . $alt_search . ' OR ' . $description_search . ') ';
183
+ }
184
+ $query .= $search_where;
185
  if ( !$total ) {
186
  $query .= ' ORDER BY `' . $orderby . '` ' . $order;
187
  $query .= ' LIMIT ' . $page_num . ',' . $page_per;
193
  $value->not_set_items = 0;
194
  if ( $value->item_longest_dimension && strpos($value->sections, "downloads") !== FALSE ) {
195
  $file_path = str_replace("thumb", ".original", htmlspecialchars_decode(BWG()->upload_dir . $value->thumb_url, ENT_COMPAT | ENT_QUOTES));
196
+ WDWLibrary::repair_image_original($file_path);
197
  list($img_width) = @getimagesize(htmlspecialchars_decode($file_path, ENT_COMPAT | ENT_QUOTES));
198
  if ( $value->item_longest_dimension > $img_width ) {
199
  $value->not_set_items = 1;
347
  $old_slug = WDWLibrary::get('old_slug', '');
348
  $preview_image = WDWLibrary::get('preview_image', '');
349
  $random_preview_image = '';
 
350
  if ( $preview_image == '' ) {
351
  if ( $id != 0 ) {
352
  $random_preview_image = $wpdb->get_var($wpdb->prepare("SELECT random_preview_image FROM " . $wpdb->prefix . "bwg_gallery WHERE id='%d'", $id));
430
  $save = TRUE;
431
  $author = get_current_user_id();
432
  $all = WDWLibrary::get('check_all_items', FALSE);
433
+ $limit = WDWLibrary::get('limit', 0);
434
  $image_message = '';
435
  $checked_items_count = WDWLibrary::get('checked_items_count', 0);
436
  foreach ( $image_id_array as $image_id ) {
481
  'rate_count' => 0,
482
  'hit_count' => 0,
483
  'pricelist_id' => 0,
484
+ 'modified_date' => time(),
485
  );
486
+
487
  $save = $wpdb->insert($wpdb->prefix . 'bwg_image', $data);
488
  $new_image_id = $wpdb->insert_id;
489
  if ( isset($_POST['image_current_id']) && (esc_html($_POST['image_current_id']) == $image_id) ) {
513
  }
514
  }
515
  }
516
+ if ( !$all
517
+ && $image_action
518
  && method_exists($this, $image_action)
519
  && isset($_POST['check_' . $temp_image_id]) ) {
520
+ $image_message = $this->$image_action($image_id, $gallery_id);
521
  }
522
  }
523
  }
524
 
525
+ if ( !in_array($image_message, WDWLibrary::error_message_ids()) && $image_action && $checked_items_count ) {
526
  $actions = WDWLibrary::image_actions();
527
  $image_message = sprintf(_n('%s item successfully %s.', '%s items successfully %s.', $checked_items_count, BWG()->prefix), $checked_items_count, $actions[$image_action]['bulk_action']);
528
  }
534
  }
535
 
536
  $images_saved = ($save !== FALSE) ? TRUE : FALSE;
 
537
  return array( 'images_saved' => $images_saved, 'image_message' => $image_message );
538
  }
539
 
547
  public function get_post_random_image( $params = array() ) {
548
  $i = 0;
549
  $random_preview_image = '';
 
550
  while ( isset($params['input_filetype_pr_' . $i]) ) {
551
  if ( isset($params['thumb_url_pr_' . $i]) ) {
552
  $random_preview_image = esc_html(stripslashes($params['thumb_url_pr_' . $i]));
731
  if ( $gallery_id == 0 ) {
732
  $gallery_id = (int) WDWLibrary::get('current_id', 0);
733
  }
734
+ $limit = WDWLibrary::get('limit', 0);
735
+ WDWLibrary::bwg_image_recover_all($gallery_id, $limit);
736
  }
737
  else {
738
  global $wpdb;
743
  $where = ($id) ? ' `id` = ' . $id : 1;
744
  WDWLibrary::update_image_modified_date( $where );
745
  }
746
+
747
  return 20;
748
  }
749
 
757
  * @return int
758
  */
759
  public function image_set_watermark($id, $gallery_id = 0, $all = FALSE) {
760
+ $options = new WD_BWG_Options();
761
+ list($width_watermark, $height_watermark, $type_watermark) = @getimagesize( str_replace(' ', '%20', $options->built_in_watermark_url) );
762
+ if ( $options->built_in_watermark_type == 'image' && (empty($width_watermark) OR empty($height_watermark) OR empty($type_watermark))) {
763
+ $message_id = 26;
764
+ }
765
+ else {
766
+ if ( $gallery_id == 0 ) {
767
+ $gallery_id = (int) WDWLibrary::get('current_id', 0);
768
+ }
769
+ $limit = WDWLibrary::get('limit', 0);
770
+ $message_id = WDWLibrary::bwg_image_set_watermark($gallery_id, ($all ? 0 : $id), $limit);
771
+ }
772
+
773
+ return $message_id;
774
  }
775
 
776
  /**
884
  }
885
  WDWLibrary::update_image_modified_date( $where );
886
 
887
+ return 22;
888
  }
889
 
890
  /**
911
  foreach ( $img_ids as $img_id ) {
912
  $file_path = str_replace("thumb", ".original", htmlspecialchars_decode(BWG()->upload_dir . $img_id->thumb_url, ENT_COMPAT | ENT_QUOTES));
913
  $new_file_path = htmlspecialchars_decode(BWG()->upload_dir . $img_id->thumb_url, ENT_COMPAT | ENT_QUOTES);
914
+ if ( WDWLibrary::repair_image_original($file_path) ) {
915
+ WDWLibrary::resize_image( $file_path, $new_file_path, BWG()->options->upload_thumb_width, BWG()->options->upload_thumb_height );
916
+ }
917
  }
918
  WDWLibrary::update_image_modified_date( $where );
919
 
949
  $file_path = BWG()->upload_dir . $image->image_url;
950
  $thumb_filename = BWG()->upload_dir . $image->thumb_url;
951
  $original_filename = str_replace('/thumb/', '/.original/', $thumb_filename);
952
+ if ( WDWLibrary::repair_image_original($original_filename) ) {
953
+ WDWLibrary::resize_image( $original_filename, $file_path, $image_width, $image_height );
954
+ }
955
  }
956
  }
957
  WDWLibrary::update_image_modified_date( $where );
1049
  $image_ids_col = $wpdb->get_col('SELECT id FROM `' . $wpdb->prefix . 'bwg_image`' . $where);
1050
  foreach ($image_ids_col as $image_id) {
1051
  $file_path = str_replace("thumb", ".original", htmlspecialchars_decode(BWG()->upload_dir . $_POST['thumb_url_' . $image_id], ENT_COMPAT | ENT_QUOTES));
1052
+ WDWLibrary::repair_image_original($file_path);
1053
  list($img_width) = @getimagesize(htmlspecialchars_decode($file_path, ENT_COMPAT | ENT_QUOTES));
1054
  if ($item_longest_dimension > $img_width && $img_width) {
1055
  $not_set_items[] = $image_id . "-" . $item_longest_dimension;
1084
  }
1085
  $wpdb->query('UPDATE `' . $wpdb->prefix . 'bwg_image` SET pricelist_id=0' . $where);
1086
  }
1087
+
1088
+ /**
1089
+ * Ordering.
1090
+ *
1091
+ * @param array $orders
1092
+ *
1093
+ * @return int
1094
+ */
1095
+ public function ordering( $orders = array() ) {
1096
+ global $wpdb;
1097
+ $message_id = 2;
1098
+ if ( !empty($orders) ) {
1099
+ foreach ( $orders as $order => $id ) {
1100
+ $upd_query = 'UPDATE ' . $wpdb->prefix . 'bwg_gallery SET `order` = ' . $order . ' WHERE `id` = ' . $id;
1101
+ $update = $wpdb->query($upd_query);
1102
+ if ( $update ) {
1103
+ $message_id = 1;
1104
+ }
1105
+ }
1106
+ }
1107
+
1108
+ return $message_id;
1109
+ }
1110
  }
admin/models/Themes.php CHANGED
@@ -92,7 +92,7 @@ class ThemesModel_bwg {
92
  $row->album_compact_gal_title_font_weight = $row->album_compact_back_font_weight;
93
  }
94
  if (!isset($row->album_compact_gal_title_margin)) {
95
- $row->album_compact_gal_title_margin = '2px';
96
  }
97
  if (!isset($row->album_compact_gal_title_shadow)) {
98
  $row->album_compact_gal_title_shadow = '0px 0px 0px #888888';
@@ -113,7 +113,7 @@ class ThemesModel_bwg {
113
  $row->album_extended_gal_title_font_weight = $row->album_extended_back_font_weight;
114
  }
115
  if (!isset($row->album_extended_gal_title_margin)) {
116
- $row->album_extended_gal_title_margin = '2px';
117
  }
118
  if (!isset($row->album_extended_gal_title_shadow)) {
119
  $row->album_extended_gal_title_shadow = '0px 0px 0px #888888';
@@ -121,7 +121,34 @@ class ThemesModel_bwg {
121
  if (!isset($row->album_extended_gal_title_align)) {
122
  $row->album_extended_gal_title_align = 'center';
123
  }
124
- if (!isset($row->masonry_thumb_gal_title_font_color)) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
125
  $row->masonry_thumb_gal_title_font_color = $row->album_compact_back_font_color;
126
  }
127
  if (!isset($row->masonry_thumb_gal_title_font_style)) {
@@ -137,7 +164,7 @@ class ThemesModel_bwg {
137
  $row->masonry_thumb_gal_title_margin = '2px';
138
  }
139
  if (!isset($row->masonry_thumb_gal_title_shadow)) {
140
- $row->masonry_thumb_gal_title_shadow = '0px 0px 0px #888888';
141
  }
142
  if (!isset($row->masonry_thumb_gal_title_align)) {
143
  $row->masonry_thumb_gal_title_align = 'center';
@@ -155,7 +182,7 @@ class ThemesModel_bwg {
155
  $row->album_masonry_gal_title_font_weight = $row->album_masonry_back_font_weight;
156
  }
157
  if (!isset($row->album_masonry_gal_title_margin)) {
158
- $row->album_masonry_gal_title_margin = '2px';
159
  }
160
  if (!isset($row->album_masonry_gal_title_shadow)) {
161
  $row->album_masonry_gal_title_shadow = '0px 0px 0px #888888';
@@ -163,6 +190,9 @@ class ThemesModel_bwg {
163
  if (!isset($row->album_masonry_gal_title_align)) {
164
  $row->album_masonry_gal_title_align = 'center';
165
  }
 
 
 
166
  if (!isset($row->mosaic_thumb_gal_title_font_color)) {
167
  $row->mosaic_thumb_gal_title_font_color = $row->album_compact_back_font_color;
168
  }
@@ -179,16 +209,16 @@ class ThemesModel_bwg {
179
  $row->mosaic_thumb_gal_title_margin = '2px';
180
  }
181
  if (!isset($row->mosaic_thumb_gal_title_shadow)) {
182
- $row->mosaic_thumb_gal_title_shadow = '0px 0px 0px #888888';
183
  }
184
  if (!isset($row->mosaic_thumb_gal_title_align)) {
185
  $row->mosaic_thumb_gal_title_align = 'center';
186
  }
187
  if (!isset($row->image_browser_gal_title_font_color)) {
188
- $row->image_browser_gal_title_font_color = 'CCCCCC';
189
  }
190
  if (!isset($row->image_browser_gal_title_font_style)) {
191
- $row->image_browser_gal_title_font_style = 'segoe ui';
192
  }
193
  if (!isset($row->image_browser_gal_title_font_size)) {
194
  $row->image_browser_gal_title_font_size = 16;
@@ -205,12 +235,11 @@ class ThemesModel_bwg {
205
  if (!isset($row->image_browser_gal_title_align)) {
206
  $row->image_browser_gal_title_align = 'center';
207
  }
208
-
209
  if (!isset($row->blog_style_gal_title_font_color)) {
210
- $row->blog_style_gal_title_font_color = 'CCCCCC';
211
  }
212
  if (!isset($row->blog_style_gal_title_font_style)) {
213
- $row->blog_style_gal_title_font_style = 'segoe ui';
214
  }
215
  if (!isset($row->blog_style_gal_title_font_size)) {
216
  $row->blog_style_gal_title_font_size = 16;
@@ -227,6 +256,18 @@ class ThemesModel_bwg {
227
  if (!isset($row->blog_style_gal_title_align)) {
228
  $row->blog_style_gal_title_align = 'center';
229
  }
 
 
 
 
 
 
 
 
 
 
 
 
230
  if ( $reset ) {
231
  if ( !$row->default_theme ) {
232
  $row_id = $row->id;
@@ -246,13 +287,13 @@ class ThemesModel_bwg {
246
  $row->image_browser_image_title_align = 'top';
247
  }
248
  if (!isset($row->thumb_gal_title_font_color)) {
249
- $row->thumb_gal_title_font_color = 'CCCCCC';
250
  }
251
  if (!isset($row->thumb_gal_title_font_style)) {
252
- $row->thumb_gal_title_font_style = 'segoe ui';
253
  }
254
  if (!isset($row->thumb_gal_title_font_size)) {
255
- $row->thumb_gal_title_font_size = 16;
256
  }
257
  if (!isset($row->thumb_gal_title_font_weight)) {
258
  $row->thumb_gal_title_font_weight = 'bold';
@@ -267,19 +308,19 @@ class ThemesModel_bwg {
267
  $row->thumb_gal_title_align = 'center';
268
  }
269
  if (!isset($row->album_compact_gal_title_font_color)) {
270
- $row->album_compact_gal_title_font_color = 'CCCCCC';
271
  }
272
  if (!isset($row->album_compact_gal_title_font_style)) {
273
- $row->album_compact_gal_title_font_style = 'segoe ui';
274
  }
275
  if (!isset($row->album_compact_gal_title_font_size)) {
276
- $row->album_compact_gal_title_font_size = 16;
277
  }
278
  if (!isset($row->album_compact_gal_title_font_weight)) {
279
  $row->album_compact_gal_title_font_weight = 'bold';
280
  }
281
  if (!isset($row->album_compact_gal_title_margin)) {
282
- $row->album_compact_gal_title_margin = '2px';
283
  }
284
  if (!isset($row->album_compact_gal_title_shadow)) {
285
  $row->album_compact_gal_title_shadow = '0px 0px 0px #888888';
@@ -288,19 +329,19 @@ class ThemesModel_bwg {
288
  $row->album_compact_gal_title_align = 'center';
289
  }
290
  if (!isset($row->album_extended_gal_title_font_color)) {
291
- $row->album_extended_gal_title_font_color = 'CCCCCC';
292
  }
293
  if (!isset($row->album_extended_gal_title_font_style)) {
294
- $row->album_extended_gal_title_font_style = 'segoe ui';
295
  }
296
  if (!isset($row->album_extended_gal_title_font_size)) {
297
- $row->album_extended_gal_title_font_size = 16;
298
  }
299
  if (!isset($row->album_extended_gal_title_font_weight)) {
300
  $row->album_extended_gal_title_font_weight = 'bold';
301
  }
302
  if (!isset($row->album_extended_gal_title_margin)) {
303
- $row->album_extended_gal_title_margin = '2px';
304
  }
305
  if (!isset($row->album_extended_gal_title_shadow)) {
306
  $row->album_extended_gal_title_shadow = '0px 0px 0px #888888';
@@ -308,41 +349,77 @@ class ThemesModel_bwg {
308
  if (!isset($row->album_extended_gal_title_align)) {
309
  $row->album_extended_gal_title_align = 'center';
310
  }
311
- if (!isset($row->masonry_thumb_gal_title_font_color)) {
312
- $row->masonry_thumb_gal_title_font_color = 'CCCCCC';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
313
  }
314
- if (!isset($row->masonry_thumb_gal_title_font_style)) {
315
- $row->masonry_thumb_gal_title_font_style = 'segoe ui';
316
  }
317
- if (!isset($row->masonry_thumb_gal_title_font_size)) {
318
- $row->masonry_thumb_gal_title_font_size = 16;
319
  }
320
- if (!isset($row->masonry_thumb_gal_title_font_weight)) {
 
 
 
 
 
 
 
 
 
321
  $row->masonry_thumb_gal_title_font_weight = 'bold';
322
  }
323
- if (!isset($row->masonry_thumb_gal_title_margin)) {
324
  $row->masonry_thumb_gal_title_margin = '2px';
325
  }
326
- if (!isset($row->masonry_thumb_gal_title_shadow)) {
327
- $row->masonry_thumb_gal_title_shadow = '0px 0px 0px #888888';
328
  }
329
- if (!isset($row->masonry_thumb_gal_title_align)) {
330
  $row->masonry_thumb_gal_title_align = 'center';
331
  }
 
 
 
 
 
 
332
  if (!isset($row->album_masonry_gal_title_font_color)) {
333
- $row->album_masonry_gal_title_font_color = 'CCCCCC';
334
  }
335
  if (!isset($row->album_masonry_gal_title_font_style)) {
336
- $row->album_masonry_gal_title_font_style = 'segoe ui';
337
  }
338
  if (!isset($row->album_masonry_gal_title_font_size)) {
339
- $row->album_masonry_gal_title_font_size = 16;
340
  }
341
  if (!isset($row->album_masonry_gal_title_font_weight)) {
342
  $row->album_masonry_gal_title_font_weight = 'bold';
343
  }
344
  if (!isset($row->album_masonry_gal_title_margin)) {
345
- $row->album_masonry_gal_title_margin = '2px';
346
  }
347
  if (!isset($row->album_masonry_gal_title_shadow)) {
348
  $row->album_masonry_gal_title_shadow = '0px 0px 0px #888888';
@@ -351,13 +428,13 @@ class ThemesModel_bwg {
351
  $row->album_masonry_gal_title_align = 'center';
352
  }
353
  if (!isset($row->mosaic_thumb_gal_title_font_color)) {
354
- $row->mosaic_thumb_gal_title_font_color = 'CCCCCC';
355
  }
356
  if (!isset($row->mosaic_thumb_gal_title_font_style)) {
357
- $row->mosaic_thumb_gal_title_font_style = 'segoe ui';
358
  }
359
  if (!isset($row->mosaic_thumb_gal_title_font_size)) {
360
- $row->mosaic_thumb_gal_title_font_size = 16;
361
  }
362
  if (!isset($row->mosaic_thumb_gal_title_font_weight)) {
363
  $row->mosaic_thumb_gal_title_font_weight = 'bold';
@@ -366,16 +443,16 @@ class ThemesModel_bwg {
366
  $row->mosaic_thumb_gal_title_margin = '2px';
367
  }
368
  if (!isset($row->mosaic_thumb_gal_title_shadow)) {
369
- $row->mosaic_thumb_gal_title_shadow = '0px 0px 0px #888888';
370
  }
371
  if (!isset($row->mosaic_thumb_gal_title_align)) {
372
  $row->mosaic_thumb_gal_title_align = 'center';
373
  }
374
  if (!isset($row->image_browser_gal_title_font_color)) {
375
- $row->image_browser_gal_title_font_color = 'CCCCCC';
376
  }
377
  if (!isset($row->image_browser_gal_title_font_style)) {
378
- $row->image_browser_gal_title_font_style = 'segoe ui';
379
  }
380
  if (!isset($row->image_browser_gal_title_font_size)) {
381
  $row->image_browser_gal_title_font_size = 16;
@@ -393,10 +470,10 @@ class ThemesModel_bwg {
393
  $row->image_browser_gal_title_align = 'center';
394
  }
395
  if (!isset($row->blog_style_gal_title_font_color)) {
396
- $row->blog_style_gal_title_font_color = 'CCCCCC';
397
  }
398
  if (!isset($row->blog_style_gal_title_font_style)) {
399
- $row->blog_style_gal_title_font_style = 'segoe ui';
400
  }
401
  if (!isset($row->blog_style_gal_title_font_size)) {
402
  $row->blog_style_gal_title_font_size = 16;
@@ -413,39 +490,80 @@ class ThemesModel_bwg {
413
  if (!isset($row->blog_style_gal_title_align)) {
414
  $row->blog_style_gal_title_align = 'center';
415
  }
416
- if ( $row->thumb_hover_effect ) {
417
- $row->thumb_hover_effect = 'zoom';
418
- }
419
- if ( $row->thumb_hover_effect_value ) {
420
- $row->thumb_hover_effect_value = '1.08';
421
- }
422
- if ( $row->thumb_bg_color ) {
423
- $row->thumb_bg_color = '000000';
424
- }
425
- if ( $row->thumb_title_font_color ) {
426
- $row->thumb_title_font_color = '323A45';
427
- }
428
- if ( $row->thumb_title_font_color_hover ) {
429
- $row->thumb_title_font_color_hover = 'FFFFFF';
430
- }
431
- if ( $row->thumb_title_shadow ) {
432
- $row->thumb_title_shadow = '';
433
- }
434
- if ( $row->thumb_gal_title_font_color ) {
435
- $row->thumb_gal_title_font_color = '000000';
436
- }
437
- if ( $row->thumb_gal_title_font_style ) {
438
- $row->thumb_gal_title_font_style = 'Ubuntu';
439
- }
440
- if ( $row->thumb_gal_title_font_size ) {
441
- $row->thumb_gal_title_font_size = '18';
442
- }
443
- if ( $row->thumb_gal_title_shadow ) {
444
- $row->thumb_gal_title_shadow = '';
445
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
446
  }
447
  else {
448
- $theme_defaults = '{"thumb_margin":"4","container_margin":"1","thumb_padding":"0","thumb_border_radius":"0","thumb_border_width":0,"thumb_border_style":"none","thumb_border_color":"CCCCCC","thumb_bg_color":"000000","thumbs_bg_color":"FFFFFF","thumb_bg_transparent":0,"thumb_box_shadow":"","thumb_transparent":100,"thumb_align":"center","thumb_hover_effect":"zoom","thumb_hover_effect_value":"1.08","thumb_transition":1,"thumb_title_margin":"2px","thumb_title_font_style":"Ubuntu","thumb_title_pos":"bottom","thumb_title_font_color":"323A45","thumb_title_font_color_hover":"FFFFFF","thumb_title_shadow":"","thumb_title_font_size":16,"thumb_title_font_weight":"bold","thumb_gal_title_font_color":"000000","thumb_gal_title_font_style":"Ubuntu","thumb_gal_title_font_size":18,"thumb_gal_title_font_weight":"bold","thumb_gal_title_margin":"2px","thumb_gal_title_shadow":"","thumb_gal_title_align":"center","page_nav_position":"bottom","page_nav_align":"center","page_nav_number":0,"page_nav_font_size":12,"page_nav_font_style":"segoe ui","page_nav_font_color":"666666","page_nav_font_weight":"bold","page_nav_border_width":1,"page_nav_border_style":"solid","page_nav_border_color":"E3E3E3","page_nav_border_radius":"0","page_nav_margin":"0","page_nav_padding":"3px 6px","page_nav_button_bg_color":"FFFFFF","page_nav_button_bg_transparent":100,"page_nav_box_shadow":"0","page_nav_button_transition":1,"page_nav_button_text":0,"lightbox_ctrl_btn_pos":"bottom","lightbox_ctrl_btn_align":"center","lightbox_ctrl_btn_height":20,"lightbox_ctrl_btn_margin_top":10,"lightbox_ctrl_btn_margin_left":7,"lightbox_ctrl_btn_transparent":100,"lightbox_ctrl_btn_color":"808080","lightbox_toggle_btn_height":20,"lightbox_toggle_btn_width":100,"lightbox_ctrl_cont_bg_color":"FFFFFF","lightbox_ctrl_cont_border_radius":4,"lightbox_ctrl_cont_transparent":85,"lightbox_close_btn_bg_color":"FFFFFF","lightbox_close_btn_border_radius":"16px","lightbox_close_btn_border_width":2,"lightbox_close_btn_border_style":"none","lightbox_close_btn_border_color":"FFFFFF","lightbox_close_btn_box_shadow":"0","lightbox_close_btn_color":"808080","lightbox_close_btn_size":20,"lightbox_close_btn_width":30,"lightbox_close_btn_height":30,"lightbox_close_btn_top":"-20","lightbox_close_btn_right":"-15","lightbox_close_btn_full_color":"000000","lightbox_close_btn_transparent":60,"lightbox_rl_btn_bg_color":"FFFFFF","lightbox_rl_btn_transparent":"60","lightbox_rl_btn_border_radius":"20px","lightbox_rl_btn_border_width":0,"lightbox_rl_btn_border_style":"none","lightbox_rl_btn_border_color":"FFFFFF","lightbox_rl_btn_box_shadow":"","lightbox_rl_btn_color":"ADADAD","lightbox_rl_btn_height":35,"lightbox_rl_btn_width":35,"lightbox_rl_btn_size":25,"lightbox_close_rl_btn_hover_color":"808080","lightbox_comment_pos":"left","lightbox_comment_width":350,"lightbox_comment_bg_color":"FFFFFF","lightbox_comment_font_color":"7A7A7A","lightbox_comment_font_style":"Ubuntu","lightbox_comment_font_size":12,"lightbox_comment_button_bg_color":"2F2F2F","lightbox_comment_button_border_color":"666666","lightbox_comment_button_border_width":1,"lightbox_comment_button_border_style":"none","lightbox_comment_button_border_radius":"7px","lightbox_comment_button_padding":"10px 10px","lightbox_comment_input_bg_color":"F7F8F9","lightbox_comment_input_border_color":"EBEBEB","lightbox_comment_input_border_width":2,"lightbox_comment_input_border_style":"none","lightbox_comment_input_border_radius":"7px","lightbox_comment_input_padding":"5px","lightbox_comment_separator_width":20,"lightbox_comment_separator_style":"none","lightbox_comment_separator_color":"383838","lightbox_comment_author_font_size":14,"lightbox_comment_date_font_size":10,"lightbox_comment_body_font_size":12,"lightbox_comment_share_button_color":"808080","lightbox_filmstrip_rl_bg_color":"EBEBEB","lightbox_filmstrip_rl_btn_size":20,"lightbox_filmstrip_rl_btn_color":"808080","lightbox_filmstrip_thumb_margin":"0 1px","lightbox_filmstrip_thumb_border_width":1,"lightbox_filmstrip_thumb_border_style":"none","lightbox_filmstrip_thumb_border_color":"000000","lightbox_filmstrip_thumb_border_radius":"0","lightbox_filmstrip_thumb_deactive_transparent":80,"lightbox_filmstrip_pos":"bottom","lightbox_filmstrip_thumb_active_border_width":0,"lightbox_filmstrip_thumb_active_border_color":"FFFFFF","lightbox_overlay_bg_transparent":60,"lightbox_bg_color":"FFFFFF","lightbox_overlay_bg_color":"EEEEEE","lightbox_rl_btn_style":"fa-angle","lightbox_bg_transparent":100,"blog_style_margin":"2px","blog_style_padding":"0","blog_style_border_radius":"0","blog_style_border_width":1,"blog_style_border_style":"solid","blog_style_border_color":"F5F5F5","blog_style_bg_color":"FFFFFF","blog_style_transparent":80,"blog_style_box_shadow":"","blog_style_align":"center","blog_style_share_buttons_margin":"5px auto 10px auto","blog_style_share_buttons_border_radius":"0","blog_style_share_buttons_border_width":0,"blog_style_share_buttons_border_style":"none","blog_style_share_buttons_border_color":"000000","blog_style_share_buttons_bg_color":"FFFFFF","blog_style_share_buttons_align":"right","blog_style_img_font_size":16,"blog_style_img_font_family":"segoe ui","blog_style_img_font_color":"000000","blog_style_share_buttons_font_size":20,"blog_style_share_buttons_color":"B3AFAF","blog_style_share_buttons_bg_transparent":0,"blog_style_gal_title_font_color":"CCCCCC","blog_style_gal_title_font_style":"segoe ui","blog_style_gal_title_font_size":16,"blog_style_gal_title_font_weight":"bold","blog_style_gal_title_margin":"2px","blog_style_gal_title_shadow":"0px 0px 0px #888888","blog_style_gal_title_align":"center","image_browser_margin":"2px auto","image_browser_padding":"4px","image_browser_border_radius":"0","image_browser_border_width":1,"image_browser_border_style":"none","image_browser_border_color":"F5F5F5","image_browser_bg_color":"EBEBEB","image_browser_box_shadow":"","image_browser_transparent":80,"image_browser_align":"center","image_browser_image_description_margin":"0px 5px 0px 5px","image_browser_image_description_padding":"8px 8px 8px 8px","image_browser_image_description_border_radius":"0","image_browser_image_description_border_width":1,"image_browser_image_description_border_style":"none","image_browser_image_description_border_color":"FFFFFF","image_browser_image_description_bg_color":"EBEBEB","image_browser_image_description_align":"center","image_browser_img_font_size":15,"image_browser_img_font_family":"Ubuntu","image_browser_img_font_color":"000000","image_browser_full_padding":"4px","image_browser_full_border_radius":"0","image_browser_full_border_width":2,"image_browser_full_border_style":"none","image_browser_full_border_color":"F7F7F7","image_browser_full_bg_color":"F5F5F5","image_browser_full_transparent":90,"image_browser_image_title_align":"top","image_browser_gal_title_font_color":"CCCCCC","image_browser_gal_title_font_style":"segoe ui","image_browser_gal_title_font_size":16,"image_browser_gal_title_font_weight":"bold","image_browser_gal_title_margin":"2px","image_browser_gal_title_shadow":"0px 0px 0px #888888","image_browser_gal_title_align":"center","album_compact_title_margin":"2px","album_compact_thumb_margin":2,"album_compact_back_padding":"0","album_compact_thumb_padding":0,"album_compact_thumb_border_radius":"0","album_compact_thumb_border_width":0,"album_compact_title_font_style":"segoe ui","album_compact_back_font_color":"000000","album_compact_title_font_color":"FFFFFF","album_compact_title_shadow":"0px 0px 0px #888888","album_compact_thumb_bg_transparent":0,"album_compact_thumb_box_shadow":"0px 0px 0px #888888","album_compact_thumb_transition":1,"album_compact_thumb_border_style":"none","album_compact_thumb_border_color":"CCCCCC","album_compact_thumb_bg_color":"FFFFFF","album_compact_back_font_weight":"bold","album_compact_back_font_size":16,"album_compact_back_font_style":"segoe ui","album_compact_thumb_title_pos":"bottom","album_compact_thumbs_bg_color":"FFFFFF","album_compact_title_font_size":16,"album_compact_title_font_weight":"bold","album_compact_thumb_align":"center","album_compact_thumb_hover_effect":"scale","album_compact_thumb_transparent":100,"album_compact_thumb_hover_effect_value":"1.08","album_compact_gal_title_font_color":"CCCCCC","album_compact_gal_title_font_style":"segoe ui","album_compact_gal_title_font_size":16,"album_compact_gal_title_font_weight":"bold","album_compact_gal_title_margin":"2px","album_compact_gal_title_shadow":"0px 0px 0px #888888","album_compact_gal_title_align":"center","album_extended_thumb_margin":2,"album_extended_thumb_padding":0,"album_extended_thumb_border_radius":"0","album_extended_thumb_border_width":0,"album_extended_thumb_border_style":"none","album_extended_thumb_border_color":"CCCCCC","album_extended_thumb_bg_color":"FFFFFF","album_extended_thumbs_bg_color":"FFFFFF","album_extended_thumb_bg_transparent":0,"album_extended_thumb_box_shadow":"","album_extended_thumb_transparent":100,"album_extended_thumb_align":"left","album_extended_thumb_hover_effect":"scale","album_extended_thumb_hover_effect_value":"1.08","album_extended_thumb_transition":1,"album_extended_back_font_color":"000000","album_extended_back_font_style":"segoe ui","album_extended_back_font_size":20,"album_extended_back_font_weight":"bold","album_extended_back_padding":"0","album_extended_div_bg_color":"FFFFFF","album_extended_div_bg_transparent":0,"album_extended_div_border_radius":"0 0 0 0","album_extended_div_margin":"0 0 5px 0","album_extended_div_padding":10,"album_extended_div_separator_width":1,"album_extended_div_separator_style":"solid","album_extended_div_separator_color":"E0E0E0","album_extended_thumb_div_bg_color":"FFFFFF","album_extended_thumb_div_border_radius":"0","album_extended_thumb_div_border_width":1,"album_extended_thumb_div_border_style":"solid","album_extended_thumb_div_border_color":"E8E8E8","album_extended_thumb_div_padding":"5px","album_extended_text_div_bg_color":"FFFFFF","album_extended_text_div_border_radius":"0","album_extended_text_div_border_width":1,"album_extended_text_div_border_style":"solid","album_extended_text_div_border_color":"E8E8E8","album_extended_text_div_padding":"5px","album_extended_title_span_border_width":1,"album_extended_title_span_border_style":"none","album_extended_title_span_border_color":"CCCCCC","album_extended_title_font_color":"000000","album_extended_title_font_style":"segoe ui","album_extended_title_font_size":16,"album_extended_title_font_weight":"bold","album_extended_title_margin_bottom":2,"album_extended_title_padding":"2px","album_extended_desc_span_border_width":1,"album_extended_desc_span_border_style":"none","album_extended_desc_span_border_color":"CCCCCC","album_extended_desc_font_color":"000000","album_extended_desc_font_style":"segoe ui","album_extended_desc_font_size":14,"album_extended_desc_font_weight":"normal","album_extended_desc_padding":"2px","album_extended_desc_more_color":"F2D22E","album_extended_desc_more_size":12,"album_extended_gal_title_font_color":"CCCCCC","album_extended_gal_title_font_style":"segoe ui","album_extended_gal_title_font_size":16,"album_extended_gal_title_font_weight":"bold","album_extended_gal_title_margin":"2px","album_extended_gal_title_shadow":"0px 0px 0px #888888","album_extended_gal_title_align":"center","slideshow_cont_bg_color":"F2F2F2","slideshow_close_btn_transparent":100,"slideshow_rl_btn_bg_color":"FFFFFF","slideshow_rl_btn_border_radius":"20px","slideshow_rl_btn_border_width":0,"slideshow_rl_btn_border_style":"none","slideshow_rl_btn_border_color":"FFFFFF","slideshow_rl_btn_box_shadow":"","slideshow_rl_btn_color":"D6D6D6","slideshow_rl_btn_height":37,"slideshow_rl_btn_size":12,"slideshow_rl_btn_width":37,"slideshow_close_rl_btn_hover_color":"BABABA","slideshow_filmstrip_pos":"bottom","slideshow_filmstrip_thumb_border_width":0,"slideshow_filmstrip_thumb_border_style":"none","slideshow_filmstrip_thumb_border_color":"000000","slideshow_filmstrip_thumb_border_radius":"0","slideshow_filmstrip_thumb_margin":"0px 2px 0 0 ","slideshow_filmstrip_thumb_active_border_width":0,"slideshow_filmstrip_thumb_active_border_color":"FFFFFF","slideshow_filmstrip_thumb_deactive_transparent":100,"slideshow_filmstrip_rl_bg_color":"F2F2F2","slideshow_filmstrip_rl_btn_color":"BABABA","slideshow_filmstrip_rl_btn_size":20,"slideshow_title_font_size":16,"slideshow_title_font":"segoe ui","slideshow_title_color":"FFFFFF","slideshow_title_opacity":70,"slideshow_title_border_radius":"5px","slideshow_title_background_color":"000000","slideshow_title_padding":"0 0 0 0","slideshow_description_font_size":14,"slideshow_description_font":"segoe ui","slideshow_description_color":"FFFFFF","slideshow_description_opacity":70,"slideshow_description_border_radius":"0","slideshow_description_background_color":"000000","slideshow_description_padding":"5px 10px 5px 10px","slideshow_dots_width":12,"slideshow_dots_height":12,"slideshow_dots_border_radius":"5px","slideshow_dots_background_color":"F2D22E","slideshow_dots_margin":3,"slideshow_dots_active_background_color":"FFFFFF","slideshow_dots_active_border_width":1,"slideshow_dots_active_border_color":"000000","slideshow_play_pause_btn_size":35,"slideshow_rl_btn_style":"fa-chevron","masonry_thumb_padding":"2","masonry_thumb_border_radius":"0","masonry_thumb_border_width":"0","masonry_thumb_border_style":"none","masonry_thumb_border_color":"CCCCCC","masonry_thumbs_bg_color":"FFFFFF","masonry_thumb_bg_transparent":"0","masonry_thumb_transparent":"100","masonry_thumb_align":"center","masonry_thumb_hover_effect":"scale","masonry_thumb_hover_effect_value":"1.08","masonry_thumb_transition":"1","masonry_thumb_gal_title_font_color":"CCCCCC","masonry_thumb_gal_title_font_style":"segoe ui","masonry_thumb_gal_title_font_size":16,"masonry_thumb_gal_title_font_weight":"bold","masonry_thumb_gal_title_margin":"2px","masonry_thumb_gal_title_shadow":"0px 0px 0px #888888","masonry_thumb_gal_title_align":"center","mosaic_thumb_padding":"2","mosaic_thumb_border_radius":"0","mosaic_thumb_border_width":"0","mosaic_thumb_border_style":"none","mosaic_thumb_border_color":"CCCCCC","mosaic_thumbs_bg_color":"FFFFFF","mosaic_thumb_bg_transparent":"0","mosaic_thumb_transparent":"100","mosaic_thumb_align":"center","mosaic_thumb_hover_effect":"scale","mosaic_thumb_hover_effect_value":"1.08","mosaic_thumb_title_margin":"2px","mosaic_thumb_title_font_style":"segoe ui","mosaic_thumb_title_font_color":"CCCCCC","mosaic_thumb_title_shadow":"0px 0px 0px #888888","mosaic_thumb_title_font_size":16,"mosaic_thumb_title_font_weight":"bold","mosaic_thumb_gal_title_font_color":"CCCCCC","mosaic_thumb_gal_title_font_style":"segoe ui","mosaic_thumb_gal_title_font_size":16,"mosaic_thumb_gal_title_font_weight":"bold","mosaic_thumb_gal_title_margin":"2px","mosaic_thumb_gal_title_shadow":"0px 0px 0px #888888","mosaic_thumb_gal_title_align":"center","lightbox_info_pos":"bottom","lightbox_info_align":"left","lightbox_info_bg_color":"FFFFFF","lightbox_info_bg_transparent":"70","lightbox_info_border_width":"1","lightbox_info_border_style":"none","lightbox_info_border_color":"000000","lightbox_info_border_radius":"0px","lightbox_info_padding":"10px 7px 44px 10px","lightbox_info_margin":"10px 10px -5px 10px","lightbox_title_color":"808080","lightbox_title_font_style":"Ubuntu","lightbox_title_font_weight":"bold","lightbox_title_font_size":"16","lightbox_description_color":"B0B0B0","lightbox_description_font_style":"Ubuntu","lightbox_description_font_weight":"bold","lightbox_description_font_size":"13","lightbox_rate_pos":"top","lightbox_rate_align":"left","lightbox_rate_icon":"star","lightbox_rate_color":"F9D062","lightbox_rate_size":"20","lightbox_rate_stars_count":"5","lightbox_rate_padding":"15px","lightbox_rate_hover_color":"F7B50E","lightbox_hit_pos":"bottom","lightbox_hit_align":"left","lightbox_hit_bg_color":"000000","lightbox_hit_bg_transparent":"70","lightbox_hit_border_width":"1","lightbox_hit_border_style":"none","lightbox_hit_border_color":"000000","lightbox_hit_border_radius":"5px","lightbox_hit_padding":"5px","lightbox_hit_margin":"0 5px","lightbox_hit_color":"FFFFFF","lightbox_hit_font_style":"segoe ui","lightbox_hit_font_weight":"normal","lightbox_hit_font_size":"14","masonry_description_font_size":12,"masonry_description_color":"CCCCCC","masonry_description_font_style":"segoe ui","album_masonry_back_font_color":"000000","album_masonry_back_font_style":"segoe ui","album_masonry_back_font_size":16,"album_masonry_back_font_weight":"bold","album_masonry_back_padding":"0","album_masonry_title_font_color":"CCCCCC","album_masonry_title_font_style":"segoe ui","album_masonry_thumb_title_pos":"bottom","album_masonry_title_font_size":16,"album_masonry_title_font_weight":"bold","album_masonry_title_margin":"","album_masonry_title_shadow":"0px 0px 0px #888888","album_masonry_thumb_margin":0,"album_masonry_thumb_padding":0,"album_masonry_thumb_border_radius":"0","album_masonry_thumb_border_width":0,"album_masonry_thumb_border_style":"none","album_masonry_thumb_border_color":"CCCCCC","album_masonry_thumb_bg_color":"FFFFFF","album_masonry_thumbs_bg_color":"FFFFFF","album_masonry_thumb_bg_transparent":0,"album_masonry_thumb_box_shadow":"","album_masonry_thumb_transparent":100,"album_masonry_thumb_align":"center","album_masonry_thumb_hover_effect":"scale","album_masonry_thumb_hover_effect_value":"1.08","album_masonry_thumb_transition":1,"album_masonry_gal_title_font_color":"CCCCCC","album_masonry_gal_title_font_style":"segoe ui","album_masonry_gal_title_font_size":16,"album_masonry_gal_title_font_weight":"bold","album_masonry_gal_title_margin":"2px","album_masonry_gal_title_shadow":"0px 0px 0px #888888","album_masonry_gal_title_align":"center","carousel_cont_bg_color":"000000","carousel_cont_btn_transparent":0,"carousel_close_btn_transparent":50,"carousel_rl_btn_bg_color":"FFFFFF","carousel_rl_btn_border_radius":"20px","carousel_rl_btn_border_width":0,"carousel_rl_btn_border_style":"none","carousel_rl_btn_border_color":"FFFFFF","carousel_rl_btn_color":"303030","carousel_rl_btn_height":35,"carousel_rl_btn_size":15,"carousel_play_pause_btn_size":25,"carousel_rl_btn_width":35,"carousel_close_rl_btn_hover_color":"191919","carousel_rl_btn_style":"fa-chevron","carousel_mergin_bottom":"0.5","carousel_font_family":"arial","carousel_feature_border_width":2,"carousel_feature_border_style":"none","carousel_feature_border_color":"5D204F","carousel_caption_background_color":"000000","carousel_caption_bottom":0,"carousel_caption_p_mergin":0,"carousel_caption_p_pedding":5,"carousel_caption_p_font_weight":"bold","carousel_caption_p_font_size":14,"carousel_caption_p_color":"FFFFFF","carousel_title_opacity":100,"carousel_title_border_radius":"5px","mosaic_thumb_transition":"1"}';
 
449
  $theme_defaults = json_decode($theme_defaults);
450
  foreach ($theme_defaults as $key => $value) {
451
  $row->$key = $value;
@@ -454,6 +572,7 @@ class ThemesModel_bwg {
454
  }
455
  }
456
  else {
 
457
  $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE default_theme="%d"', 1));
458
  $row->id = 0;
459
  $row->name = '';
@@ -473,10 +592,10 @@ class ThemesModel_bwg {
473
  $row->image_browser_image_title_align = 'top';
474
  }
475
  if (!isset($row->thumb_gal_title_font_color)) {
476
- $row->thumb_gal_title_font_color = 'CCCCCC';
477
  }
478
  if (!isset($row->thumb_gal_title_font_style)) {
479
- $row->thumb_gal_title_font_style = 'segoe ui';
480
  }
481
  if (!isset($row->thumb_gal_title_font_size)) {
482
  $row->thumb_gal_title_font_size = 16;
@@ -488,25 +607,25 @@ class ThemesModel_bwg {
488
  $row->thumb_gal_title_margin = '2px';
489
  }
490
  if (!isset($row->thumb_gal_title_shadow)) {
491
- $row->thumb_gal_title_shadow = '0px 0px 0px #888888';
492
  }
493
  if (!isset($row->thumb_gal_title_align)) {
494
  $row->thumb_gal_title_align = 'center';
495
  }
496
  if (!isset($row->album_compact_gal_title_font_color)) {
497
- $row->album_compact_gal_title_font_color = 'CCCCCC';
498
  }
499
  if (!isset($row->album_compact_gal_title_font_style)) {
500
- $row->album_compact_gal_title_font_style = 'segoe ui';
501
  }
502
  if (!isset($row->album_compact_gal_title_font_size)) {
503
- $row->album_compact_gal_title_font_size = 16;
504
  }
505
  if (!isset($row->album_compact_gal_title_font_weight)) {
506
  $row->album_compact_gal_title_font_weight = 'bold';
507
  }
508
  if (!isset($row->album_compact_gal_title_margin)) {
509
- $row->album_compact_gal_title_margin = '2px';
510
  }
511
  if (!isset($row->album_compact_gal_title_shadow)) {
512
  $row->album_compact_gal_title_shadow = '0px 0px 0px #888888';
@@ -515,19 +634,19 @@ class ThemesModel_bwg {
515
  $row->album_compact_gal_title_align = 'center';
516
  }
517
  if (!isset($row->album_extended_gal_title_font_color)) {
518
- $row->album_extended_gal_title_font_color = 'CCCCCC';
519
  }
520
  if (!isset($row->album_extended_gal_title_font_style)) {
521
- $row->album_extended_gal_title_font_style = 'segoe ui';
522
  }
523
  if (!isset($row->album_extended_gal_title_font_size)) {
524
- $row->album_extended_gal_title_font_size = 16;
525
  }
526
  if (!isset($row->album_extended_gal_title_font_weight)) {
527
  $row->album_extended_gal_title_font_weight = 'bold';
528
  }
529
  if (!isset($row->album_extended_gal_title_margin)) {
530
- $row->album_extended_gal_title_margin = '2px';
531
  }
532
  if (!isset($row->album_extended_gal_title_shadow)) {
533
  $row->album_extended_gal_title_shadow = '0px 0px 0px #888888';
@@ -535,41 +654,41 @@ class ThemesModel_bwg {
535
  if (!isset($row->album_extended_gal_title_align)) {
536
  $row->album_extended_gal_title_align = 'center';
537
  }
538
- if (!isset($row->masonry_thumb_gal_title_font_color)) {
539
- $row->masonry_thumb_gal_title_font_color = 'CCCCCC';
540
- }
541
- if (!isset($row->masonry_thumb_gal_title_font_style)) {
542
- $row->masonry_thumb_gal_title_font_style = 'segoe ui';
543
- }
544
- if (!isset($row->masonry_thumb_gal_title_font_size)) {
545
- $row->masonry_thumb_gal_title_font_size = 16;
546
- }
547
- if (!isset($row->masonry_thumb_gal_title_font_weight)) {
 
 
 
 
 
 
548
  $row->masonry_thumb_gal_title_font_weight = 'bold';
549
- }
550
- if (!isset($row->masonry_thumb_gal_title_margin)) {
551
- $row->masonry_thumb_gal_title_margin = '2px';
552
- }
553
- if (!isset($row->masonry_thumb_gal_title_shadow)) {
554
- $row->masonry_thumb_gal_title_shadow = '0px 0px 0px #888888';
555
- }
556
- if (!isset($row->masonry_thumb_gal_title_align)) {
557
  $row->masonry_thumb_gal_title_align = 'center';
558
- }
559
- if (!isset($row->album_masonry_gal_title_font_color)) {
560
- $row->album_masonry_gal_title_font_color = 'CCCCCC';
561
  }
562
  if (!isset($row->album_masonry_gal_title_font_style)) {
563
- $row->album_masonry_gal_title_font_style = 'segoe ui';
564
  }
565
  if (!isset($row->album_masonry_gal_title_font_size)) {
566
- $row->album_masonry_gal_title_font_size = 16;
567
  }
568
  if (!isset($row->album_masonry_gal_title_font_weight)) {
569
  $row->album_masonry_gal_title_font_weight = 'bold';
570
  }
571
  if (!isset($row->album_masonry_gal_title_margin)) {
572
- $row->album_masonry_gal_title_margin = '2px';
573
  }
574
  if (!isset($row->album_masonry_gal_title_shadow)) {
575
  $row->album_masonry_gal_title_shadow = '0px 0px 0px #888888';
@@ -578,10 +697,10 @@ class ThemesModel_bwg {
578
  $row->album_masonry_gal_title_align = 'center';
579
  }
580
  if (!isset($row->mosaic_thumb_gal_title_font_color)) {
581
- $row->mosaic_thumb_gal_title_font_color = 'CCCCCC';
582
  }
583
  if (!isset($row->mosaic_thumb_gal_title_font_style)) {
584
- $row->mosaic_thumb_gal_title_font_style = 'segoe ui';
585
  }
586
  if (!isset($row->mosaic_thumb_gal_title_font_size)) {
587
  $row->mosaic_thumb_gal_title_font_size = 16;
@@ -593,16 +712,16 @@ class ThemesModel_bwg {
593
  $row->mosaic_thumb_gal_title_margin = '2px';
594
  }
595
  if (!isset($row->mosaic_thumb_gal_title_shadow)) {
596
- $row->mosaic_thumb_gal_title_shadow = '0px 0px 0px #888888';
597
  }
598
  if (!isset($row->mosaic_thumb_gal_title_align)) {
599
  $row->mosaic_thumb_gal_title_align = 'center';
600
  }
601
  if (!isset($row->image_browser_gal_title_font_color)) {
602
- $row->image_browser_gal_title_font_color = 'CCCCCC';
603
  }
604
  if (!isset($row->image_browser_gal_title_font_style)) {
605
- $row->image_browser_gal_title_font_style = 'segoe ui';
606
  }
607
  if (!isset($row->image_browser_gal_title_font_size)) {
608
  $row->image_browser_gal_title_font_size = 16;
@@ -620,10 +739,10 @@ class ThemesModel_bwg {
620
  $row->image_browser_gal_title_align = 'center';
621
  }
622
  if (!isset($row->blog_style_gal_title_font_color)) {
623
- $row->blog_style_gal_title_font_color = 'CCCCCC';
624
  }
625
  if (!isset($row->blog_style_gal_title_font_style)) {
626
- $row->blog_style_gal_title_font_style = 'segoe ui';
627
  }
628
  if (!isset($row->blog_style_gal_title_font_size)) {
629
  $row->blog_style_gal_title_font_size = 16;
@@ -641,10 +760,13 @@ class ThemesModel_bwg {
641
  $row->blog_style_gal_title_align = 'center';
642
  }
643
  if ( $row->thumb_hover_effect ) {
644
- $row->thumb_hover_effect = 'zoom';
645
  }
646
  if ( $row->thumb_hover_effect_value ) {
647
- $row->thumb_hover_effect_value = '1.08';
 
 
 
648
  }
649
  if ( $row->thumb_bg_color ) {
650
  $row->thumb_bg_color = '000000';
@@ -653,13 +775,16 @@ class ThemesModel_bwg {
653
  $row->thumb_title_font_color = '323A45';
654
  }
655
  if ( !isset($row->thumb_title_font_color_hover) ) {
656
- $row->thumb_title_font_color_hover = 'FFFFFF';
 
 
 
657
  }
658
  if ( $row->thumb_title_shadow ) {
659
- $row->thumb_title_shadow = '';
660
  }
661
  if ( $row->thumb_gal_title_font_color ) {
662
- $row->thumb_gal_title_font_color = '000000';
663
  }
664
  if ( $row->thumb_gal_title_font_style ) {
665
  $row->thumb_gal_title_font_style = 'Ubuntu';
@@ -670,6 +795,44 @@ class ThemesModel_bwg {
670
  if ( $row->thumb_gal_title_shadow ) {
671
  $row->thumb_gal_title_shadow = '';
672
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
673
  }
674
  return $row;
675
  }
92
  $row->album_compact_gal_title_font_weight = $row->album_compact_back_font_weight;
93
  }
94
  if (!isset($row->album_compact_gal_title_margin)) {
95
+ $row->album_compact_gal_title_margin = '0 2px 2px 2px';
96
  }
97
  if (!isset($row->album_compact_gal_title_shadow)) {
98
  $row->album_compact_gal_title_shadow = '0px 0px 0px #888888';
113
  $row->album_extended_gal_title_font_weight = $row->album_extended_back_font_weight;
114
  }
115
  if (!isset($row->album_extended_gal_title_margin)) {
116
+ $row->album_extended_gal_title_margin = '0 2px 2px 2px';
117
  }
118
  if (!isset($row->album_extended_gal_title_shadow)) {
119
  $row->album_extended_gal_title_shadow = '0px 0px 0px #888888';
121
  if (!isset($row->album_extended_gal_title_align)) {
122
  $row->album_extended_gal_title_align = 'center';
123
  }
124
+ if (!isset($row->masonry_thumb_bg_color)) {
125
+ $row->masonry_thumb_bg_color = '000000';
126
+ }
127
+ if (!isset($row->masonry_thumbs_bg_color)) {
128
+ $row->masonry_thumbs_bg_color = 'FFFFFF';
129
+ }
130
+ if (!isset($row->masonry_thumb_title_font_size)) {
131
+ $row->masonry_thumb_title_font_size = 16;
132
+ }
133
+ if (!isset($row->masonry_thumb_title_font_color)) {
134
+ $row->masonry_thumb_title_font_color = '323A45';
135
+ }
136
+ if (!isset($row->album_masonry_thumb_title_font_color_hover)) {
137
+ $row->album_masonry_thumb_title_font_color_hover = 'FFFFFF';
138
+ }
139
+ if (!isset($row->masonry_thumb_title_font_color_hover)) {
140
+ $row->masonry_thumb_title_font_color_hover = 'FFFFFF';
141
+ }
142
+ if (!isset($row->masonry_thumb_title_font_style)) {
143
+ $row->masonry_thumb_title_font_style = 'Ubuntu';
144
+ }
145
+ if (!isset($row->masonry_thumb_title_font_weight)) {
146
+ $row->masonry_thumb_title_font_weight = 'bold';
147
+ }
148
+ if (!isset($row->masonry_thumb_title_margin)) {
149
+ $row->masonry_thumb_title_margin = '2px';
150
+ }
151
+ if (!isset($row->masonry_thumb_gal_title_font_color)) {
152
  $row->masonry_thumb_gal_title_font_color = $row->album_compact_back_font_color;
153
  }
154
  if (!isset($row->masonry_thumb_gal_title_font_style)) {
164
  $row->masonry_thumb_gal_title_margin = '2px';
165
  }
166
  if (!isset($row->masonry_thumb_gal_title_shadow)) {
167
+ $row->masonry_thumb_gal_title_shadow = '';
168
  }
169
  if (!isset($row->masonry_thumb_gal_title_align)) {
170
  $row->masonry_thumb_gal_title_align = 'center';
182
  $row->album_masonry_gal_title_font_weight = $row->album_masonry_back_font_weight;
183
  }
184
  if (!isset($row->album_masonry_gal_title_margin)) {
185
+ $row->album_masonry_gal_title_margin = '0 2px 2px 2px';
186
  }
187
  if (!isset($row->album_masonry_gal_title_shadow)) {
188
  $row->album_masonry_gal_title_shadow = '0px 0px 0px #888888';
190
  if (!isset($row->album_masonry_gal_title_align)) {
191
  $row->album_masonry_gal_title_align = 'center';
192
  }
193
+ if (!isset($row->mosaic_thumb_bg_color)) {
194
+ $row->mosaic_thumb_bg_color = "000000";
195
+ }
196
  if (!isset($row->mosaic_thumb_gal_title_font_color)) {
197
  $row->mosaic_thumb_gal_title_font_color = $row->album_compact_back_font_color;
198
  }
209
  $row->mosaic_thumb_gal_title_margin = '2px';
210
  }
211
  if (!isset($row->mosaic_thumb_gal_title_shadow)) {
212
+ $row->mosaic_thumb_gal_title_shadow = '';
213
  }
214
  if (!isset($row->mosaic_thumb_gal_title_align)) {
215
  $row->mosaic_thumb_gal_title_align = 'center';
216
  }
217
  if (!isset($row->image_browser_gal_title_font_color)) {
218
+ $row->image_browser_gal_title_font_color = '323A45';
219
  }
220
  if (!isset($row->image_browser_gal_title_font_style)) {
221
+ $row->image_browser_gal_title_font_style = 'Ubuntu';
222
  }
223
  if (!isset($row->image_browser_gal_title_font_size)) {
224
  $row->image_browser_gal_title_font_size = 16;
235
  if (!isset($row->image_browser_gal_title_align)) {
236
  $row->image_browser_gal_title_align = 'center';
237
  }
 
238
  if (!isset($row->blog_style_gal_title_font_color)) {
239
+ $row->blog_style_gal_title_font_color = '323A45';
240
  }
241
  if (!isset($row->blog_style_gal_title_font_style)) {
242
+ $row->blog_style_gal_title_font_style = 'Ubuntu';
243
  }
244
  if (!isset($row->blog_style_gal_title_font_size)) {
245
  $row->blog_style_gal_title_font_size = 16;
256
  if (!isset($row->blog_style_gal_title_align)) {
257
  $row->blog_style_gal_title_align = 'center';
258
  }
259
+ if (!isset($row->album_masonry_thumb_padding)) {
260
+ $row->album_masonry_thumb_padding = 4;
261
+ }
262
+ if (!isset($row->album_masonry_container_margin)) {
263
+ $row->album_masonry_container_margin = 1;
264
+ }
265
+ if (!isset($row->mosaic_thumb_title_font_color_hover)) {
266
+ $row->mosaic_thumb_title_font_color_hover = 'FFFFFF';
267
+ }
268
+ if (!isset($row->album_compact_title_font_color_hover)) {
269
+ $row->album_compact_title_font_color_hover = 'FFFFFF';
270
+ }
271
  if ( $reset ) {
272
  if ( !$row->default_theme ) {
273
  $row_id = $row->id;
287
  $row->image_browser_image_title_align = 'top';
288
  }
289
  if (!isset($row->thumb_gal_title_font_color)) {
290
+ $row->thumb_gal_title_font_color = '323A45';
291
  }
292
  if (!isset($row->thumb_gal_title_font_style)) {
293
+ $row->thumb_gal_title_font_style = 'Ubuntu';
294
  }
295
  if (!isset($row->thumb_gal_title_font_size)) {
296
+ $row->thumb_gal_title_font_size = 18;
297
  }
298
  if (!isset($row->thumb_gal_title_font_weight)) {
299
  $row->thumb_gal_title_font_weight = 'bold';
308
  $row->thumb_gal_title_align = 'center';
309
  }
310
  if (!isset($row->album_compact_gal_title_font_color)) {
311
+ $row->album_compact_gal_title_font_color = '323A45';
312
  }
313
  if (!isset($row->album_compact_gal_title_font_style)) {
314
+ $row->album_compact_gal_title_font_style = 'Ubuntu';
315
  }
316
  if (!isset($row->album_compact_gal_title_font_size)) {
317
+ $row->album_compact_gal_title_font_size = 18;
318
  }
319
  if (!isset($row->album_compact_gal_title_font_weight)) {
320
  $row->album_compact_gal_title_font_weight = 'bold';
321
  }
322
  if (!isset($row->album_compact_gal_title_margin)) {
323
+ $row->album_compact_gal_title_margin = '0 2px 2px 2px';
324
  }
325
  if (!isset($row->album_compact_gal_title_shadow)) {
326
  $row->album_compact_gal_title_shadow = '0px 0px 0px #888888';
329
  $row->album_compact_gal_title_align = 'center';
330
  }
331
  if (!isset($row->album_extended_gal_title_font_color)) {
332
+ $row->album_extended_gal_title_font_color = '323A45';
333
  }
334
  if (!isset($row->album_extended_gal_title_font_style)) {
335
+ $row->album_extended_gal_title_font_style = 'Ubuntu';
336
  }
337
  if (!isset($row->album_extended_gal_title_font_size)) {
338
+ $row->album_extended_gal_title_font_size = 18;
339
  }
340
  if (!isset($row->album_extended_gal_title_font_weight)) {
341
  $row->album_extended_gal_title_font_weight = 'bold';
342
  }
343
  if (!isset($row->album_extended_gal_title_margin)) {
344
+ $row->album_extended_gal_title_margin = '0 2px 2px 2px';
345
  }
346
  if (!isset($row->album_extended_gal_title_shadow)) {
347
  $row->album_extended_gal_title_shadow = '0px 0px 0px #888888';
349
  if (!isset($row->album_extended_gal_title_align)) {
350
  $row->album_extended_gal_title_align = 'center';
351
  }
352
+ if ($row->masonry_thumb_hover_effect) {
353
+ $row->masonry_thumb_hover_effect = 'zoom';
354
+ }
355
+ if ($row->masonry_thumb_hover_effect_value) {
356
+ $row->masonry_thumb_hover_effect_value = '1.08';
357
+ }
358
+ if ($row->masonry_thumb_bg_color) {
359
+ $row->masonry_thumb_bg_color = '000000';
360
+ }
361
+ if ($row->masonry_thumbs_bg_color) {
362
+ $row->masonry_thumbs_bg_color = 'FFFFFF';
363
+ }
364
+ if ($row->masonry_thumb_title_font_size) {
365
+ $row->masonry_thumb_title_font_size = 16;
366
+ }
367
+ if ($row->masonry_thumb_title_font_color) {
368
+ $row->masonry_thumb_title_font_color = '323A45';
369
+ }
370
+ if ($row->masonry_thumb_title_font_color_hover) {
371
+ $row->masonry_thumb_title_font_color_hover = 'FFFFFF';
372
+ }
373
+ if ($row->masonry_thumb_title_font_style) {
374
+ $row->masonry_thumb_title_font_style = 'Ubuntu';
375
  }
376
+ if ($row->masonry_thumb_title_font_weight) {
377
+ $row->masonry_thumb_title_font_weight = 'bold';
378
  }
379
+ if ($row->masonry_thumb_title_margin) {
380
+ $row->masonry_thumb_title_margin = '2px';
381
  }
382
+ if ($row->masonry_thumb_gal_title_font_color) {
383
+ $row->masonry_thumb_gal_title_font_color = '323A45';
384
+ }
385
+ if ($row->masonry_thumb_gal_title_font_style) {
386
+ $row->masonry_thumb_gal_title_font_style = 'Ubuntu';
387
+ }
388
+ if ($row->masonry_thumb_gal_title_font_size) {
389
+ $row->masonry_thumb_gal_title_font_size = 18;
390
+ }
391
+ if ($row->masonry_thumb_gal_title_font_weight) {
392
  $row->masonry_thumb_gal_title_font_weight = 'bold';
393
  }
394
+ if ($row->masonry_thumb_gal_title_margin) {
395
  $row->masonry_thumb_gal_title_margin = '2px';
396
  }
397
+ if ($row->masonry_thumb_gal_title_shadow) {
398
+ $row->masonry_thumb_gal_title_shadow = '';
399
  }
400
+ if ($row->masonry_thumb_gal_title_align) {
401
  $row->masonry_thumb_gal_title_align = 'center';
402
  }
403
+ if ($row->masonry_description_font_size) {
404
+ $row->masonry_description_font_size = 16;
405
+ }
406
+ if ($row->masonry_description_color) {
407
+ $row->masonry_description_color = '323A45';
408
+ }
409
  if (!isset($row->album_masonry_gal_title_font_color)) {
410
+ $row->album_masonry_gal_title_font_color = '323A45';
411
  }
412
  if (!isset($row->album_masonry_gal_title_font_style)) {
413
+ $row->album_masonry_gal_title_font_style = 'Ubuntu';
414
  }
415
  if (!isset($row->album_masonry_gal_title_font_size)) {
416
+ $row->album_masonry_gal_title_font_size = 18;
417
  }
418
  if (!isset($row->album_masonry_gal_title_font_weight)) {
419
  $row->album_masonry_gal_title_font_weight = 'bold';
420
  }
421
  if (!isset($row->album_masonry_gal_title_margin)) {
422
+ $row->album_masonry_gal_title_margin = '0 2px 2px 2px';
423
  }
424
  if (!isset($row->album_masonry_gal_title_shadow)) {
425
  $row->album_masonry_gal_title_shadow = '0px 0px 0px #888888';
428
  $row->album_masonry_gal_title_align = 'center';
429
  }
430
  if (!isset($row->mosaic_thumb_gal_title_font_color)) {
431
+ $row->mosaic_thumb_gal_title_font_color = '323A45';
432
  }
433
  if (!isset($row->mosaic_thumb_gal_title_font_style)) {
434
+ $row->mosaic_thumb_gal_title_font_style = 'Ubuntu';
435
  }
436
  if (!isset($row->mosaic_thumb_gal_title_font_size)) {
437
+ $row->mosaic_thumb_gal_title_font_size = '18';
438
  }
439
  if (!isset($row->mosaic_thumb_gal_title_font_weight)) {
440
  $row->mosaic_thumb_gal_title_font_weight = 'bold';
443
  $row->mosaic_thumb_gal_title_margin = '2px';
444
  }
445
  if (!isset($row->mosaic_thumb_gal_title_shadow)) {
446
+ $row->mosaic_thumb_gal_title_shadow = '';
447
  }
448
  if (!isset($row->mosaic_thumb_gal_title_align)) {
449
  $row->mosaic_thumb_gal_title_align = 'center';
450
  }
451
  if (!isset($row->image_browser_gal_title_font_color)) {
452
+ $row->image_browser_gal_title_font_color = '323A45';
453
  }
454
  if (!isset($row->image_browser_gal_title_font_style)) {
455
+ $row->image_browser_gal_title_font_style = 'Ubuntu';
456
  }
457
  if (!isset($row->image_browser_gal_title_font_size)) {
458
  $row->image_browser_gal_title_font_size = 16;
470
  $row->image_browser_gal_title_align = 'center';
471
  }
472
  if (!isset($row->blog_style_gal_title_font_color)) {
473
+ $row->blog_style_gal_title_font_color = '323A45';
474
  }
475
  if (!isset($row->blog_style_gal_title_font_style)) {
476
+ $row->blog_style_gal_title_font_style = 'Ubuntu';
477
  }
478
  if (!isset($row->blog_style_gal_title_font_size)) {
479
  $row->blog_style_gal_title_font_size = 16;
490
  if (!isset($row->blog_style_gal_title_align)) {
491
  $row->blog_style_gal_title_align = 'center';
492
  }
493
+ if ($row->thumb_hover_effect) {
494
+ $row->thumb_hover_effect = 'zoom';
495
+ }
496
+ if ($row->thumb_hover_effect_value) {
497
+ $row->thumb_hover_effect_value = '1.08';
498
+ }
499
+ if ($row->thumb_bg_color) {
500
+ $row->thumb_bg_color = '000000';
501
+ }
502
+ if ($row->thumb_title_font_color) {
503
+ $row->thumb_title_font_color = '323A45';
504
+ }
505
+ if ($row->thumb_title_font_color_hover) {
506
+ $row->thumb_title_font_color_hover = 'FFFFFF';
507
+ }
508
+ if ($row->album_compact_title_font_color_hover) {
509
+ $row->album_compact_title_font_color_hover = 'FFFFFF';
510
+ }
511
+ if ($row->thumb_title_shadow) {
512
+ $row->thumb_title_shadow = '';
513
+ }
514
+ if ($row->thumb_gal_title_font_color) {
515
+ $row->thumb_gal_title_font_color = '323A45';
516
+ }
517
+ if ($row->thumb_gal_title_font_style) {
518
+ $row->thumb_gal_title_font_style = 'Ubuntu';
519
+ }
520
+ if ($row->thumb_gal_title_font_size) {
521
+ $row->thumb_gal_title_font_size = '18';
522
+ }
523
+ if ($row->thumb_gal_title_shadow) {
524
+ $row->thumb_gal_title_shadow = '';
525
+ }
526
+ /* Mosaic */
527
+ if ($row->mosaic_thumb_bg_color) {
528
+ $row->mosaic_thumb_bg_color = '000000';
529
+ }
530
+ if ($row->mosaic_thumbs_bg_color) {
531
+ $row->mosaic_thumbs_bg_color = 'FFFFFF';
532
+ }
533
+ if ($row->mosaic_thumb_hover_effect) {
534
+ $row->mosaic_thumb_hover_effect = 'zoom';
535
+ }
536
+ if ($row->mosaic_thumb_hover_effect_value) {
537
+ $row->mosaic_thumb_hover_effect_value = '1.08';
538
+ }
539
+ if ($row->mosaic_thumb_title_font_color) {
540
+ $row->mosaic_thumb_title_font_color = '323A45';
541
+ }
542
+ if ($row->mosaic_thumb_title_font_color_hover) {
543
+ $row->mosaic_thumb_title_font_color_hover = 'FFFFFF';
544
+ }
545
+ if ($row->mosaic_thumb_title_font_style) {
546
+ $row->mosaic_thumb_title_font_style = 'Ubuntu';
547
+ }
548
+ if ($row->mosaic_thumb_title_shadow) {
549
+ $row->mosaic_thumb_title_shadow = '';
550
+ }
551
+ if ($row->mosaic_thumb_gal_title_font_size) {
552
+ $row->mosaic_thumb_gal_title_font_size = '18';
553
+ }
554
+ if ($row->mosaic_thumb_gal_title_font_color) {
555
+ $row->mosaic_thumb_gal_title_font_color = '323A45';
556
+ }
557
+ if ($row->mosaic_thumb_gal_title_font_style) {
558
+ $row->mosaic_thumb_gal_title_font_style = 'Ubuntu';
559
+ }
560
+ if ($row->mosaic_thumb_gal_title_shadow) {
561
+ $row->mosaic_thumb_gal_title_shadow = '';
562
+ }
563
  }
564
  else {
565
+ $theme_defaults = '{"thumb_margin":"4","album_compact_title_font_color_hover":"FFFFFF","compact_container_margin":"1","container_margin":"1","thumb_padding":"0","thumb_border_radius":"0","thumb_border_width":0,"thumb_border_style":"none","thumb_border_color":"CCCCCC","thumb_bg_color":"000000","thumbs_bg_color":"FFFFFF","thumb_bg_transparent":0,"thumb_box_shadow":"","thumb_transparent":100,"thumb_align":"center","thumb_hover_effect":"zoom","thumb_hover_effect_value":"1.08","thumb_transition":1,"thumb_title_margin":"2px","thumb_title_font_style":"Ubuntu","thumb_title_pos":"bottom","thumb_title_font_color":"323A45","thumb_title_font_color_hover":"FFFFFF","thumb_title_shadow":"","thumb_title_font_size":16,"thumb_title_font_weight":"bold","thumb_gal_title_font_color":"323A45","thumb_gal_title_font_style":"Ubuntu","thumb_gal_title_font_size":18,"thumb_gal_title_font_weight":"bold","thumb_gal_title_margin":"2px","thumb_gal_title_shadow":"","thumb_gal_title_align":"center","page_nav_position":"bottom","page_nav_align":"center","page_nav_number":0,"page_nav_font_size":12,"page_nav_font_style":"Ubuntu","page_nav_font_color":"666666","page_nav_font_weight":"bold","page_nav_border_width":1,"page_nav_border_style":"solid","page_nav_border_color":"E3E3E3","page_nav_border_radius":"0","page_nav_margin":"0","page_nav_padding":"3px 6px","page_nav_button_bg_color":"FFFFFF","page_nav_button_bg_transparent":100,"page_nav_box_shadow":"0","page_nav_button_transition":1,"page_nav_button_text":0,"lightbox_ctrl_btn_pos":"bottom","lightbox_ctrl_btn_align":"center","lightbox_ctrl_btn_height":20,"lightbox_ctrl_btn_margin_top":10,"lightbox_ctrl_btn_margin_left":7,"lightbox_ctrl_btn_transparent":100,"lightbox_ctrl_btn_color":"808080","lightbox_toggle_btn_height":20,"lightbox_toggle_btn_width":100,"lightbox_ctrl_cont_bg_color":"FFFFFF","lightbox_ctrl_cont_border_radius":4,"lightbox_ctrl_cont_transparent":85,"lightbox_close_btn_bg_color":"FFFFFF","lightbox_close_btn_border_radius":"16px","lightbox_close_btn_border_width":2,"lightbox_close_btn_border_style":"none","lightbox_close_btn_border_color":"FFFFFF","lightbox_close_btn_box_shadow":"0","lightbox_close_btn_color":"808080","lightbox_close_btn_size":20,"lightbox_close_btn_width":30,"lightbox_close_btn_height":30,"lightbox_close_btn_top":"-20","lightbox_close_btn_right":"-15","lightbox_close_btn_full_color":"000000","lightbox_close_btn_transparent":60,"lightbox_rl_btn_bg_color":"FFFFFF","lightbox_rl_btn_transparent":"60","lightbox_rl_btn_border_radius":"20px","lightbox_rl_btn_border_width":0,"lightbox_rl_btn_border_style":"none","lightbox_rl_btn_border_color":"FFFFFF","lightbox_rl_btn_box_shadow":"","lightbox_rl_btn_color":"ADADAD","lightbox_rl_btn_height":35,"lightbox_rl_btn_width":35,"lightbox_rl_btn_size":25,"lightbox_close_rl_btn_hover_color":"808080","lightbox_comment_pos":"left","lightbox_comment_width":350,"lightbox_comment_bg_color":"FFFFFF","lightbox_comment_font_color":"7A7A7A","lightbox_comment_font_style":"Ubuntu","lightbox_comment_font_size":12,"lightbox_comment_button_bg_color":"2F2F2F","lightbox_comment_button_border_color":"666666","lightbox_comment_button_border_width":1,"lightbox_comment_button_border_style":"none","lightbox_comment_button_border_radius":"7px","lightbox_comment_button_padding":"10px 10px","lightbox_comment_input_bg_color":"F7F8F9","lightbox_comment_input_border_color":"EBEBEB","lightbox_comment_input_border_width":2,"lightbox_comment_input_border_style":"none","lightbox_comment_input_border_radius":"7px","lightbox_comment_input_padding":"5px","lightbox_comment_separator_width":20,"lightbox_comment_separator_style":"none","lightbox_comment_separator_color":"383838","lightbox_comment_author_font_size":14,"lightbox_comment_date_font_size":10,"lightbox_comment_body_font_size":12,"lightbox_comment_share_button_color":"808080","lightbox_filmstrip_rl_bg_color":"EBEBEB","lightbox_filmstrip_rl_btn_size":20,"lightbox_filmstrip_rl_btn_color":"808080","lightbox_filmstrip_thumb_margin":"0 1px","lightbox_filmstrip_thumb_border_width":1,"lightbox_filmstrip_thumb_border_style":"none","lightbox_filmstrip_thumb_border_color":"000000","lightbox_filmstrip_thumb_border_radius":"0","lightbox_filmstrip_thumb_deactive_transparent":80,"lightbox_filmstrip_pos":"bottom","lightbox_filmstrip_thumb_active_border_width":0,"lightbox_filmstrip_thumb_active_border_color":"FFFFFF","lightbox_overlay_bg_transparent":60,"lightbox_bg_color":"FFFFFF","lightbox_overlay_bg_color":"EEEEEE","lightbox_rl_btn_style":"fa-angle","lightbox_bg_transparent":100,"blog_style_margin":"2px","blog_style_padding":"0","blog_style_border_radius":"0","blog_style_border_width":1,"blog_style_border_style":"solid","blog_style_border_color":"F5F5F5","blog_style_bg_color":"FFFFFF","blog_style_transparent":80,"blog_style_box_shadow":"","blog_style_align":"center","blog_style_share_buttons_margin":"5px auto 10px auto","blog_style_share_buttons_border_radius":"0","blog_style_share_buttons_border_width":0,"blog_style_share_buttons_border_style":"none","blog_style_share_buttons_border_color":"000000","blog_style_share_buttons_bg_color":"FFFFFF","blog_style_share_buttons_align":"right","blog_style_img_font_size":16,"blog_style_img_font_family":"Ubuntu","blog_style_img_font_color":"000000","blog_style_share_buttons_font_size":20,"blog_style_share_buttons_color":"B3AFAF","blog_style_share_buttons_bg_transparent":0,"blog_style_gal_title_font_color":"323A45","blog_style_gal_title_font_style":"Ubuntu","blog_style_gal_title_font_size":16,"blog_style_gal_title_font_weight":"bold","blog_style_gal_title_margin":"2px","blog_style_gal_title_shadow":"0px 0px 0px #888888","blog_style_gal_title_align":"center","image_browser_margin":"2px auto","image_browser_padding":"4px","image_browser_border_radius":"0","image_browser_border_width":1,"image_browser_border_style":"none","image_browser_border_color":"F5F5F5","image_browser_bg_color":"EBEBEB","image_browser_box_shadow":"","image_browser_transparent":80,"image_browser_align":"center","image_browser_image_description_margin":"0px 5px 0px 5px","image_browser_image_description_padding":"8px 8px 8px 8px","image_browser_image_description_border_radius":"0","image_browser_image_description_border_width":1,"image_browser_image_description_border_style":"none","image_browser_image_description_border_color":"FFFFFF","image_browser_image_description_bg_color":"EBEBEB","image_browser_image_description_align":"center","image_browser_img_font_size":15,"image_browser_img_font_family":"Ubuntu","image_browser_img_font_color":"000000","image_browser_full_padding":"4px","image_browser_full_border_radius":"0","image_browser_full_border_width":2,"image_browser_full_border_style":"none","image_browser_full_border_color":"F7F7F7","image_browser_full_bg_color":"F5F5F5","image_browser_full_transparent":90,"image_browser_image_title_align":"top","image_browser_gal_title_font_color":"323A45","image_browser_gal_title_font_style":"Ubuntu","image_browser_gal_title_font_size":16,"image_browser_gal_title_font_weight":"bold","image_browser_gal_title_margin":"2px","image_browser_gal_title_shadow":"0px 0px 0px #888888","image_browser_gal_title_align":"center","album_compact_title_margin":"2px","album_compact_thumb_margin":4,"album_compact_back_padding":"0","album_compact_thumb_padding":0,"album_compact_thumb_border_radius":"0","album_compact_thumb_border_width":0,"album_compact_title_font_style":"Ubuntu","album_compact_back_font_color":"323A45","album_compact_title_font_color":"323A45","album_compact_title_shadow":"0px 0px 0px #888888","album_compact_thumb_bg_transparent":0,"album_compact_thumb_box_shadow":"0px 0px 0px #888888","album_compact_thumb_transition":1,"album_compact_thumb_border_style":"none","album_compact_thumb_border_color":"CCCCCC","album_compact_thumb_bg_color":"000000","album_compact_back_font_weight":"bold","album_compact_back_font_size":15,"album_compact_back_font_style":"Ubuntu","album_compact_thumb_title_pos":"bottom","album_compact_thumbs_bg_color":"FFFFFF","album_compact_title_font_size":16,"album_compact_title_font_weight":"bold","album_compact_thumb_align":"center","album_compact_thumb_hover_effect":"zoom","album_compact_thumb_transparent":100,"album_compact_thumb_hover_effect_value":"1.08","album_compact_gal_title_font_color":"323A45","album_compact_gal_title_font_style":"Ubuntu","album_compact_gal_title_font_size":18,"album_compact_gal_title_font_weight":"bold","album_compact_gal_title_margin":"0 2px 2px 2px","album_compact_gal_title_shadow":"0px 0px 0px #888888","album_compact_gal_title_align":"center","album_extended_thumb_margin":2,"album_extended_thumb_padding":0,"album_extended_thumb_border_radius":"0","album_extended_thumb_border_width":0,"album_extended_thumb_border_style":"none","album_extended_thumb_border_color":"CCCCCC","album_extended_thumb_bg_color":"FFFFFF","album_extended_thumbs_bg_color":"FFFFFF","album_extended_thumb_bg_transparent":0,"album_extended_thumb_box_shadow":"","album_extended_thumb_transparent":100,"album_extended_thumb_align":"left","album_extended_thumb_hover_effect":"scale","album_extended_thumb_hover_effect_value":"1.08","album_extended_thumb_transition":1,"album_extended_back_font_color":"323A45","album_extended_back_font_style":"Ubuntu","album_extended_back_font_size":15,"album_extended_back_font_weight":"bold","album_extended_back_padding":"0","album_extended_div_bg_color":"FFFFFF","album_extended_div_bg_transparent":0,"album_extended_div_border_radius":"0 0 0 0","album_extended_div_margin":"0 0 5px 0","album_extended_div_padding":10,"album_extended_div_separator_width":1,"album_extended_div_separator_style":"solid","album_extended_div_separator_color":"E0E0E0","album_extended_thumb_div_bg_color":"FFFFFF","album_extended_thumb_div_border_radius":"0","album_extended_thumb_div_border_width":1,"album_extended_thumb_div_border_style":"solid","album_extended_thumb_div_border_color":"E8E8E8","album_extended_thumb_div_padding":"5px","album_extended_text_div_bg_color":"FFFFFF","album_extended_text_div_border_radius":"0","album_extended_text_div_border_width":1,"album_extended_text_div_border_style":"solid","album_extended_text_div_border_color":"E8E8E8","album_extended_text_div_padding":"5px","album_extended_title_span_border_width":1,"album_extended_title_span_border_style":"none","album_extended_title_span_border_color":"CCCCCC","album_extended_title_font_color":"000000","album_extended_title_font_style":"Ubuntu","album_extended_title_font_size":16,"album_extended_title_font_weight":"bold","album_extended_title_margin_bottom":2,"album_extended_title_padding":"2px","album_extended_desc_span_border_width":1,"album_extended_desc_span_border_style":"none","album_extended_desc_span_border_color":"CCCCCC","album_extended_desc_font_color":"000000","album_extended_desc_font_style":"Ubuntu","album_extended_desc_font_size":14,"album_extended_desc_font_weight":"normal","album_extended_desc_padding":"2px","album_extended_desc_more_color":"F2D22E","album_extended_desc_more_size":12,"album_extended_gal_title_font_color":"323A45","album_extended_gal_title_font_style":"Ubuntu","album_extended_gal_title_font_size":18,"album_extended_gal_title_font_weight":"bold","album_extended_gal_title_margin":"0 2px 2px 2px","album_extended_gal_title_shadow":"0px 0px 0px #888888","album_extended_gal_title_align":"center","slideshow_cont_bg_color":"F2F2F2","slideshow_close_btn_transparent":100,"slideshow_rl_btn_bg_color":"FFFFFF","slideshow_rl_btn_border_radius":"20px","slideshow_rl_btn_border_width":0,"slideshow_rl_btn_border_style":"none","slideshow_rl_btn_border_color":"FFFFFF","slideshow_rl_btn_box_shadow":"","slideshow_rl_btn_color":"D6D6D6","slideshow_rl_btn_height":37,"slideshow_rl_btn_size":12,"slideshow_rl_btn_width":37,"slideshow_close_rl_btn_hover_color":"BABABA","slideshow_filmstrip_pos":"bottom","slideshow_filmstrip_thumb_border_width":0,"slideshow_filmstrip_thumb_border_style":"none","slideshow_filmstrip_thumb_border_color":"000000","slideshow_filmstrip_thumb_border_radius":"0","slideshow_filmstrip_thumb_margin":"0px 2px 0 0 ","slideshow_filmstrip_thumb_active_border_width":0,"slideshow_filmstrip_thumb_active_border_color":"FFFFFF","slideshow_filmstrip_thumb_deactive_transparent":100,"slideshow_filmstrip_rl_bg_color":"F2F2F2","slideshow_filmstrip_rl_btn_color":"BABABA","slideshow_filmstrip_rl_btn_size":20,"slideshow_title_font_size":16,"slideshow_title_font":"Ubuntu","slideshow_title_color":"FFFFFF","slideshow_title_opacity":70,"slideshow_title_border_radius":"5px","slideshow_title_background_color":"000000","slideshow_title_padding":"0 0 0 0","slideshow_description_font_size":14,"slideshow_description_font":"Ubuntu","slideshow_description_color":"FFFFFF","slideshow_description_opacity":70,"slideshow_description_border_radius":"0","slideshow_description_background_color":"000000","slideshow_description_padding":"5px 10px 5px 10px","slideshow_dots_width":12,"slideshow_dots_height":12,"slideshow_dots_border_radius":"5px","slideshow_dots_background_color":"F2D22E","slideshow_dots_margin":3,"slideshow_dots_active_background_color":"FFFFFF","slideshow_dots_active_border_width":1,"slideshow_dots_active_border_color":"000000","slideshow_play_pause_btn_size":35,"slideshow_rl_btn_style":"fa-chevron","masonry_thumb_padding":"4","masonry_container_margin":"1","masonry_thumb_border_width":"0","masonry_thumb_border_style":"none","masonry_thumb_border_color":"CCCCCC","masonry_thumb_border_radius":"0","masonry_thumb_hover_effect":"zoom","masonry_thumb_hover_effect_value":"1.08","masonry_thumb_transition":"1","masonry_thumbs_bg_color":"FFFFFF","masonry_thumb_bg_color":"000000","masonry_thumb_bg_transparent":"0","masonry_thumb_transparent":"100","masonry_thumb_align":"center","masonry_thumb_title_font_size":"16","masonry_thumb_title_font_color":"323A45","masonry_thumb_title_font_color_hover":"FFFFFF","masonry_thumb_title_font_style":"Ubuntu","masonry_thumb_title_font_weight":"bold","masonry_thumb_title_margin":"2px","masonry_description_font_size":16,"masonry_description_color":"323A45","masonry_description_font_style":"Ubuntu","masonry_thumb_gal_title_font_size":18,"masonry_thumb_gal_title_font_color":"323A45","masonry_thumb_gal_title_font_style":"Ubuntu","masonry_thumb_gal_title_font_weight":"bold","masonry_thumb_gal_title_shadow":"","masonry_thumb_gal_title_margin":"2px","masonry_thumb_gal_title_align":"center","mosaic_thumb_padding":"2","mosaic_container_margin":"1","mosaic_thumb_border_radius":"0","mosaic_thumb_border_width":"0","mosaic_thumb_border_style":"none","mosaic_thumb_border_color":"CCCCCC","mosaic_thumb_bg_color":"000000","mosaic_thumb_transparent":"100","mosaic_thumbs_bg_color":"FFFFFF","mosaic_thumb_bg_transparent":"0","mosaic_thumb_align":"center","mosaic_thumb_hover_effect":"zoom","mosaic_thumb_hover_effect_value":"1.08","mosaic_thumb_title_margin":"2px","mosaic_thumb_title_font_style":"Ubuntu","mosaic_thumb_title_font_color":"323A45","mosaic_thumb_title_font_color_hover":"FFFFFF","mosaic_thumb_title_shadow":"","mosaic_thumb_title_font_size":16,"mosaic_thumb_title_font_weight":"bold","mosaic_thumb_gal_title_font_color":"323A45","mosaic_thumb_gal_title_font_style":"Ubuntu","mosaic_thumb_gal_title_font_size":16,"mosaic_thumb_gal_title_font_weight":"bold","mosaic_thumb_gal_title_margin":"2px","mosaic_thumb_gal_title_shadow":"","mosaic_thumb_gal_title_align":"center","lightbox_info_pos":"bottom","lightbox_info_align":"left","lightbox_info_bg_color":"FFFFFF","lightbox_info_bg_transparent":"70","lightbox_info_border_width":"1","lightbox_info_border_style":"none","lightbox_info_border_color":"000000","lightbox_info_border_radius":"0px","lightbox_info_padding":"10px 7px 44px 10px","lightbox_info_margin":"10px 10px -5px 10px","lightbox_title_color":"808080","lightbox_title_font_style":"Ubuntu","lightbox_title_font_weight":"bold","lightbox_title_font_size":"16","lightbox_description_color":"B0B0B0","lightbox_description_font_style":"Ubuntu","lightbox_description_font_weight":"bold","lightbox_description_font_size":"13","lightbox_rate_pos":"top","lightbox_rate_align":"left","lightbox_rate_icon":"star","lightbox_rate_color":"F9D062","lightbox_rate_size":"20","lightbox_rate_stars_count":"5","lightbox_rate_padding":"15px","lightbox_rate_hover_color":"F7B50E","lightbox_hit_pos":"bottom","lightbox_hit_align":"left","lightbox_hit_bg_color":"000000","lightbox_hit_bg_transparent":"70","lightbox_hit_border_width":"1","lightbox_hit_border_style":"none","lightbox_hit_border_color":"000000","lightbox_hit_border_radius":"5px","lightbox_hit_padding":"5px","lightbox_hit_margin":"0 5px","lightbox_hit_color":"FFFFFF","lightbox_hit_font_style":"Ubuntu","lightbox_hit_font_weight":"normal","lightbox_hit_font_size":"14","album_masonry_back_font_color":"323A45","album_masonry_back_font_style":"Ubuntu","album_masonry_back_font_size":15,"album_masonry_back_font_weight":"bold","album_masonry_back_padding":"0","album_masonry_title_font_color":"323A45","album_masonry_thumb_title_font_color_hover":"FFFFFF","album_masonry_title_font_style":"Ubuntu","album_masonry_thumb_title_pos":"bottom","album_masonry_title_font_size":16,"album_masonry_title_font_weight":"bold","album_masonry_title_margin":"","album_masonry_title_shadow":"0px 0px 0px #888888","album_masonry_thumb_margin":0,"album_masonry_thumb_padding":4,"album_masonry_thumb_border_radius":"0","album_masonry_container_margin":1,"album_masonry_thumb_border_width":0,"album_masonry_thumb_border_style":"none","album_masonry_thumb_border_color":"CCCCCC","album_masonry_thumb_bg_color":"000000","album_masonry_thumbs_bg_color":"FFFFFF","album_masonry_thumb_bg_transparent":0,"album_masonry_thumb_box_shadow":"","album_masonry_thumb_transparent":100,"album_masonry_thumb_align":"center","album_masonry_thumb_hover_effect":"zoom","album_masonry_thumb_hover_effect_value":"1.08","album_masonry_thumb_transition":1,"album_masonry_gal_title_font_color":"323A45","album_masonry_gal_title_font_style":"Ubuntu","album_masonry_gal_title_font_size":18,"album_masonry_gal_title_font_weight":"bold","album_masonry_gal_title_margin":"0 2px 2px 2px","album_masonry_gal_title_shadow":"0px 0px 0px #888888","album_masonry_gal_title_align":"center","carousel_cont_bg_color":"000000","carousel_cont_btn_transparent":0,"carousel_close_btn_transparent":50,"carousel_rl_btn_bg_color":"FFFFFF","carousel_rl_btn_border_radius":"20px","carousel_rl_btn_border_width":0,"carousel_rl_btn_border_style":"none","carousel_rl_btn_border_color":"FFFFFF","carousel_rl_btn_color":"303030","carousel_rl_btn_height":35,"carousel_rl_btn_size":15,"carousel_play_pause_btn_size":25,"carousel_rl_btn_width":35,"carousel_close_rl_btn_hover_color":"191919","carousel_rl_btn_style":"fa-chevron","carousel_mergin_bottom":"0.5","carousel_font_family":"arial","carousel_feature_border_width":2,"carousel_feature_border_style":"none","carousel_feature_border_color":"5D204F","carousel_caption_background_color":"000000","carousel_caption_bottom":0,"carousel_caption_p_mergin":0,"carousel_caption_p_pedding":5,"carousel_caption_p_font_weight":"bold","carousel_caption_p_font_size":14,"carousel_caption_p_color":"FFFFFF","carousel_title_opacity":100,"carousel_title_border_radius":"5px","mosaic_thumb_transition":"1"}';
566
+
567
  $theme_defaults = json_decode($theme_defaults);
568
  foreach ($theme_defaults as $key => $value) {
569
  $row->$key = $value;
572
  }
573
  }
574
  else {
575
+ // TODO. unknown logic!!!
576
  $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE default_theme="%d"', 1));
577
  $row->id = 0;
578
  $row->name = '';
592
  $row->image_browser_image_title_align = 'top';
593
  }
594
  if (!isset($row->thumb_gal_title_font_color)) {
595
+ $row->thumb_gal_title_font_color = '323A45';
596
  }
597
  if (!isset($row->thumb_gal_title_font_style)) {
598
+ $row->thumb_gal_title_font_style = 'Ubuntu';
599
  }
600
  if (!isset($row->thumb_gal_title_font_size)) {
601
  $row->thumb_gal_title_font_size = 16;
607
  $row->thumb_gal_title_margin = '2px';
608
  }
609
  if (!isset($row->thumb_gal_title_shadow)) {
610
+ $row->thumb_gal_title_shadow = '';
611
  }
612
  if (!isset($row->thumb_gal_title_align)) {
613
  $row->thumb_gal_title_align = 'center';
614
  }
615
  if (!isset($row->album_compact_gal_title_font_color)) {
616
+ $row->album_compact_gal_title_font_color = '323A45';
617
  }
618
  if (!isset($row->album_compact_gal_title_font_style)) {
619
+ $row->album_compact_gal_title_font_style = 'Ubuntu';
620
  }
621
  if (!isset($row->album_compact_gal_title_font_size)) {
622
+ $row->album_compact_gal_title_font_size = 18;
623
  }
624
  if (!isset($row->album_compact_gal_title_font_weight)) {
625
  $row->album_compact_gal_title_font_weight = 'bold';
626
  }
627
  if (!isset($row->album_compact_gal_title_margin)) {
628
+ $row->album_compact_gal_title_margin = '0 2px 2px 2px';
629
  }
630
  if (!isset($row->album_compact_gal_title_shadow)) {
631
  $row->album_compact_gal_title_shadow = '0px 0px 0px #888888';
634
  $row->album_compact_gal_title_align = 'center';
635
  }
636
  if (!isset($row->album_extended_gal_title_font_color)) {
637
+ $row->album_extended_gal_title_font_color = '323A45';
638
  }
639
  if (!isset($row->album_extended_gal_title_font_style)) {
640
+ $row->album_extended_gal_title_font_style = 'Ubuntu';
641
  }
642
  if (!isset($row->album_extended_gal_title_font_size)) {
643
+ $row->album_extended_gal_title_font_size = 18;
644
  }
645
  if (!isset($row->album_extended_gal_title_font_weight)) {
646
  $row->album_extended_gal_title_font_weight = 'bold';
647
  }
648
  if (!isset($row->album_extended_gal_title_margin)) {
649
+ $row->album_extended_gal_title_margin = '0 2px 2px 2px';
650
  }
651
  if (!isset($row->album_extended_gal_title_shadow)) {
652
  $row->album_extended_gal_title_shadow = '0px 0px 0px #888888';
654
  if (!isset($row->album_extended_gal_title_align)) {
655
  $row->album_extended_gal_title_align = 'center';
656
  }
657
+ // Masonry default value. TODO change logic in the other version.
658
+ $row->masonry_thumb_hover_effect = 'zoom';
659
+ $row->masonry_thumb_hover_effect_value = '1.08';
660
+ $row->masonry_thumb_bg_color = '000000';
661
+ $row->masonry_thumb_title_font_size = '16';
662
+ $row->masonry_thumb_title_font_color = '323A45' ;
663
+ $row->masonry_thumb_title_font_color_hover = 'FFFFFF';
664
+ $row->masonry_thumb_title_font_style = 'Ubuntu';
665
+ $row->masonry_thumb_title_font_weight = 'bold';
666
+ $row->masonry_thumb_title_margin = '2px';
667
+ $row->masonry_description_font_size = '16';
668
+ $row->masonry_description_color = '323A45';
669
+ $row->masonry_description_font_style = 'Ubuntu';
670
+ $row->masonry_thumb_gal_title_font_size = '18';
671
+ $row->masonry_thumb_gal_title_font_color = '323A45';
672
+ $row->masonry_thumb_gal_title_font_style = 'Ubuntu';
673
  $row->masonry_thumb_gal_title_font_weight = 'bold';
674
+ $row->masonry_thumb_gal_title_shadow = '';
675
+ $row->masonry_thumb_gal_title_margin = '0 2px 2px 2px';
 
 
 
 
 
 
676
  $row->masonry_thumb_gal_title_align = 'center';
677
+
678
+ if (!isset($row->album_masonry_gal_title_font_color)) {
679
+ $row->album_masonry_gal_title_font_color = '323A45';
680
  }
681
  if (!isset($row->album_masonry_gal_title_font_style)) {
682
+ $row->album_masonry_gal_title_font_style = 'Ubuntu';
683
  }
684
  if (!isset($row->album_masonry_gal_title_font_size)) {
685
+ $row->album_masonry_gal_title_font_size = 18;
686
  }
687
  if (!isset($row->album_masonry_gal_title_font_weight)) {
688
  $row->album_masonry_gal_title_font_weight = 'bold';
689
  }
690
  if (!isset($row->album_masonry_gal_title_margin)) {
691
+ $row->album_masonry_gal_title_margin = '0 2px 2px 2px';
692
  }
693
  if (!isset($row->album_masonry_gal_title_shadow)) {
694
  $row->album_masonry_gal_title_shadow = '0px 0px 0px #888888';
697
  $row->album_masonry_gal_title_align = 'center';
698
  }
699
  if (!isset($row->mosaic_thumb_gal_title_font_color)) {
700
+ $row->mosaic_thumb_gal_title_font_color = '323A45';
701
  }
702
  if (!isset($row->mosaic_thumb_gal_title_font_style)) {
703
+ $row->mosaic_thumb_gal_title_font_style = 'Ubuntu';
704
  }
705
  if (!isset($row->mosaic_thumb_gal_title_font_size)) {
706
  $row->mosaic_thumb_gal_title_font_size = 16;
712
  $row->mosaic_thumb_gal_title_margin = '2px';
713
  }
714
  if (!isset($row->mosaic_thumb_gal_title_shadow)) {
715
+ $row->mosaic_thumb_gal_title_shadow = '';
716
  }
717
  if (!isset($row->mosaic_thumb_gal_title_align)) {
718
  $row->mosaic_thumb_gal_title_align = 'center';
719
  }
720
  if (!isset($row->image_browser_gal_title_font_color)) {
721
+ $row->image_browser_gal_title_font_color = '323A45';
722
  }
723
  if (!isset($row->image_browser_gal_title_font_style)) {
724
+ $row->image_browser_gal_title_font_style = 'Ubuntu';
725
  }
726
  if (!isset($row->image_browser_gal_title_font_size)) {
727
  $row->image_browser_gal_title_font_size = 16;
739
  $row->image_browser_gal_title_align = 'center';
740
  }
741
  if (!isset($row->blog_style_gal_title_font_color)) {
742
+ $row->blog_style_gal_title_font_color = '323A45';
743
  }
744
  if (!isset($row->blog_style_gal_title_font_style)) {
745
+ $row->blog_style_gal_title_font_style = 'Ubuntu';
746
  }
747
  if (!isset($row->blog_style_gal_title_font_size)) {
748
  $row->blog_style_gal_title_font_size = 16;
760
  $row->blog_style_gal_title_align = 'center';
761
  }
762
  if ( $row->thumb_hover_effect ) {
763
+ $row->thumb_hover_effect = 'zoom';
764
  }
765
  if ( $row->thumb_hover_effect_value ) {
766
+ $row->thumb_hover_effect_value = '1.08';
767
+ }
768
+ if ( $row->masonry_thumbs_bg_color ) {
769
+ $row->masonry_thumbs_bg_color = 'FFFFFF';
770
  }
771
  if ( $row->thumb_bg_color ) {
772
  $row->thumb_bg_color = '000000';
775
  $row->thumb_title_font_color = '323A45';
776
  }
777
  if ( !isset($row->thumb_title_font_color_hover) ) {
778
+ $row->thumb_title_font_color_hover = 'FFFFFF';
779
+ }
780
+ if ( !isset($row->album_compact_title_font_color_hover) ) {
781
+ $row->album_compact_title_font_color_hover = 'FFFFFF';
782
  }
783
  if ( $row->thumb_title_shadow ) {
784
+ $row->thumb_title_shadow = '';
785
  }
786
  if ( $row->thumb_gal_title_font_color ) {
787
+ $row->thumb_gal_title_font_color = '323A45';
788
  }
789
  if ( $row->thumb_gal_title_font_style ) {
790
  $row->thumb_gal_title_font_style = 'Ubuntu';
795
  if ( $row->thumb_gal_title_shadow ) {
796
  $row->thumb_gal_title_shadow = '';
797
  }
798
+ /* Mosaic */
799
+ $row->mosaic_thumb_bg_color = '000000';
800
+ if ( $row->mosaic_thumbs_bg_color ) {
801
+ $row->mosaic_thumbs_bg_color = 'FFFFFF';
802
+ }
803
+ if ( $row->mosaic_thumb_hover_effect ) {
804
+ $row->mosaic_thumb_hover_effect = 'zoom';
805
+ }
806
+ if ( $row->mosaic_thumb_hover_effect_value ) {
807
+ $row->mosaic_thumb_hover_effect_value = '1.08';
808
+ }
809
+ if ( $row->mosaic_thumb_title_font_size ) {
810
+ $row->mosaic_thumb_title_font_size = '16';
811
+ }
812
+ if ( $row->mosaic_thumb_title_font_color ) {
813
+ $row->mosaic_thumb_title_font_color = '323A45';
814
+ }
815
+ if ( $row->mosaic_thumb_title_font_color_hover ) {
816
+ $row->mosaic_thumb_title_font_color_hover = 'FFFFFF';
817
+ }
818
+ if ( $row->mosaic_thumb_title_font_style ) {
819
+ $row->mosaic_thumb_title_font_style = 'Ubuntu';
820
+ }
821
+ if ( $row->mosaic_thumb_title_shadow ) {
822
+ $row->mosaic_thumb_title_shadow = '';
823
+ }
824
+ if ( $row->mosaic_thumb_gal_title_font_size ) {
825
+ $row->mosaic_thumb_gal_title_font_size = '18';
826
+ }
827
+ if ( $row->mosaic_thumb_gal_title_font_color ) {
828
+ $row->mosaic_thumb_gal_title_font_color = '323A45';
829
+ }
830
+ if ( $row->mosaic_thumb_gal_title_font_style ) {
831
+ $row->mosaic_thumb_gal_title_font_style = 'Ubuntu';
832
+ }
833
+ if ( $row->mosaic_thumb_gal_title_shadow ) {
834
+ $row->mosaic_thumb_gal_title_shadow = '';
835
+ }
836
  }
837
  return $row;
838
  }
admin/views/AdminView.php CHANGED
@@ -70,6 +70,7 @@ class AdminView_bwg {
70
  $title_id = !empty($params['title_id']) ? $params['title_id'] : '';
71
  $title_value = !empty($params['title_value']) ? $params['title_value'] : '';
72
  $add_new_button = !empty($params['add_new_button']) ? $params['add_new_button'] : '';
 
73
 
74
  $attributes = '';
75
  if ( !empty($add_new_button) && is_array($add_new_button) ) {
@@ -97,6 +98,11 @@ class AdminView_bwg {
97
  }
98
  ?>
99
  </h1>
 
 
 
 
 
100
  </div><?php
101
  return ob_get_clean();
102
  }
@@ -205,7 +211,7 @@ class AdminView_bwg {
205
  * @return string
206
  */
207
  protected function pagination($page_url, $total, $items_per_page = 20) {
208
- $page_number = WDWLibrary::get('paged', 1);
209
  $search = WDWLibrary::get('s', '');
210
  $orderby = WDWLibrary::get('orderby', '');
211
  $order = WDWLibrary::get('order', '');
70
  $title_id = !empty($params['title_id']) ? $params['title_id'] : '';
71
  $title_value = !empty($params['title_value']) ? $params['title_value'] : '';
72
  $add_new_button = !empty($params['add_new_button']) ? $params['add_new_button'] : '';
73
+ $how_to_button = !empty($params['how_to_button']) ? $params['how_to_button'] : false;
74
 
75
  $attributes = '';
76
  if ( !empty($add_new_button) && is_array($add_new_button) ) {
98
  }
99
  ?>
100
  </h1>
101
+ <?php
102
+ if ( $how_to_button ) {
103
+ require BWG()->plugin_dir . '/framework/howto/howto.php';
104
+ }
105
+ ?>
106
  </div><?php
107
  return ob_get_clean();
108
  }
211
  * @return string
212
  */
213
  protected function pagination($page_url, $total, $items_per_page = 20) {
214
+ $page_number = WDWLibrary::get('paged', 1) < 0 ? 1 : WDWLibrary::get('paged', 1);
215
  $search = WDWLibrary::get('s', '');
216
  $orderby = WDWLibrary::get('orderby', '');
217
  $order = WDWLibrary::get('order', '');
admin/views/Albums.php CHANGED
@@ -33,7 +33,8 @@ class AlbumsView_bwg extends AdminView_bwg {
33
  'title_class' => 'wd-header',
34
  'add_new_button' => array(
35
  'href' => add_query_arg(array( 'page' => $params['page'], 'task' => 'edit' ), admin_url('admin.php')),
36
- )
 
37
  )
38
  );
39
  echo $this->search();
@@ -44,7 +45,7 @@ class AlbumsView_bwg extends AdminView_bwg {
44
  echo $this->pagination($params['page_url'], $params['total'], $params['items_per_page']);
45
  ?>
46
  </div>
47
- <table class="adminlist table table-striped wp-list-table widefat fixed pages media">
48
  <thead>
49
  <td id="cb" class="column-cb check-column">
50
  <label class="screen-reader-text" for="cb-select-all-1"><?php _e('Select all', BWG()->prefix); ?></label>
33
  'title_class' => 'wd-header',
34
  'add_new_button' => array(
35
  'href' => add_query_arg(array( 'page' => $params['page'], 'task' => 'edit' ), admin_url('admin.php')),
36
+ ),
37
+ 'how_to_button' => true,
38
  )
39
  );
40
  echo $this->search();
45
  echo $this->pagination($params['page_url'], $params['total'], $params['items_per_page']);
46
  ?>
47
  </div>
48
+ <table class="images_table adminlist table table-striped wp-list-table widefat fixed pages media bwg-gallery-lists">
49
  <thead>
50
  <td id="cb" class="column-cb check-column">
51
  <label class="screen-reader-text" for="cb-select-all-1"><?php _e('Select all', BWG()->prefix); ?></label>
admin/views/Editimage.php CHANGED
@@ -6,7 +6,7 @@ class EditimageView_bwg {
6
 
7
  public function display() {
8
  wp_print_scripts('jquery');
9
- $popup_width = (int) WDWLibrary::get('width', 800);
10
  $image_width = $popup_width - 40;
11
  $popup_height = (int) WDWLibrary::get('height', 500);
12
  $image_height = $popup_height - 40;
@@ -35,7 +35,7 @@ class EditimageView_bwg {
35
  <div id="wd-content" style="width:100%; height:100%;">
36
  <div id="bwg_container_for_media_1" style="width:100%; height:100%; margin:0 auto; text-align:center; vertical-align:middle;">
37
  <?php if ( !$facebook_post ) { ?>
38
- <img id="image_display" src="<?php echo BWG()->upload_url . WDWLibrary::image_url_version($image_url, $modified_date); ?>" style="max-width:100%; max-height:100%" />
39
  <?php }
40
  else { ?>
41
  <div id="fb-root"></div>
@@ -96,9 +96,9 @@ class EditimageView_bwg {
96
  }
97
 
98
  public function thumb_display() {
99
- $popup_width = ((int) (isset($_GET['width']) ? esc_html($_GET['width']) : '800')) - 30;
100
  $image_width = $popup_width - 40;
101
- $popup_height = ((int) (isset($_GET['height']) ? esc_html($_GET['height']) : '500')) - 50;
102
  $image_height = $popup_height - 40;
103
  $image_id = (isset($_GET['image_id']) ? esc_html($_GET['image_id']) : '0');
104
  $modified_date = WDWLibrary::get('modified_date', '');
@@ -119,21 +119,27 @@ class EditimageView_bwg {
119
  public function crop($image_data = array()) {
120
  $thumb_width = BWG()->options->upload_thumb_width;
121
  $thumb_height = BWG()->options->upload_thumb_height;
122
- $popup_width = ((int) (isset($_GET['width']) ? esc_html($_GET['width']) : '800')) - 50;
123
  $image_width = $popup_width - $thumb_width - 70;
124
- $popup_height = ((int) (isset($_GET['height']) ? esc_html($_GET['height']) : '500')) - 75;
125
  $image_height = $popup_height - 70;
126
- $image_id = (isset($_GET['image_id']) ? esc_html($_GET['image_id']) : '0');
127
- $edit_type = (isset($_POST['edit_type']) ? esc_html($_POST['edit_type']) : '');
128
- $x = (isset($_POST['x']) ? (int) $_POST['x'] : 0);
129
- $y = (isset($_POST['y']) ? (int) $_POST['y'] : 0);
130
- $w = (isset($_POST['w']) ? (int) $_POST['w'] : 0);
131
- $h = (isset($_POST['h']) ? (int) $_POST['h'] : 0);
 
 
132
  $modified_date = time();
133
- if ( isset($_GET['image_url']) ) {
134
  $image_data = new stdClass();
135
- $image_data->image_url = (isset($_GET['image_url']) ? esc_html(stripcslashes($_GET['image_url'])) : '');
136
- $image_data->thumb_url = (isset($_GET['thumb_url']) ? esc_html(stripcslashes($_GET['thumb_url'])) : '');
 
 
 
 
137
  $filename = htmlspecialchars_decode(BWG()->upload_dir . $image_data->image_url, ENT_COMPAT | ENT_QUOTES);
138
  $thumb_filename = htmlspecialchars_decode(BWG()->upload_dir . $image_data->thumb_url, ENT_COMPAT | ENT_QUOTES);
139
  $form_action = add_query_arg(array(
@@ -142,8 +148,8 @@ class EditimageView_bwg {
142
  'image_id' => $image_id,
143
  'image_url' => $image_data->image_url,
144
  'thumb_url' => $image_data->thumb_url,
145
- 'width' => '800',
146
- 'height' => '500',
147
  'TB_iframe' => '1',
148
  ), admin_url('admin-ajax.php'));
149
  }
@@ -155,22 +161,23 @@ class EditimageView_bwg {
155
  'action' => 'editimage_' . BWG()->prefix,
156
  'type' => 'crop',
157
  'image_id' => $image_id,
158
- 'width' => '800',
159
- 'height' => '500',
160
  'TB_iframe' => '1',
161
  ), admin_url('admin-ajax.php'));
162
  }
163
  $image_data->image_url = WDWLibrary::image_url_version($image_data->image_url, $modified_date);
164
  @ini_set('memory_limit', '-1');
165
- list($width_orig, $height_orig, $type_orig) = getimagesize($filename);
166
- if ( $edit_type == 'crop' ) {
 
167
  if( ! $aspect_ratio ) {
168
- $scale = min( $w / $width_orig, $h / $height_orig );
169
- $thumb_width = $w * $scale;
170
- $thumb_height = $h * $scale;
171
  }
172
  if ( $type_orig == 2 ) {
173
- $img_r = imagecreatefromjpeg($filename);
174
  $dst_r = ImageCreateTrueColor($thumb_width, $thumb_height);
175
  imagecopyresampled($dst_r, $img_r, 0, 0, $x, $y, $thumb_width, $thumb_height, $w, $h);
176
  imagejpeg($dst_r, $thumb_filename, BWG()->options->jpeg_quality);
@@ -205,8 +212,7 @@ class EditimageView_bwg {
205
  }
206
  else {
207
  ?>
208
- <div class="thumb_message"><strong><?php echo __("You can't crop this type of image.", BWG()->prefix); ?></strong>
209
- </div>
210
  <?php
211
  }
212
  $where = ' `id` = ' . $image_id;
@@ -214,142 +220,178 @@ class EditimageView_bwg {
214
  $image_data->image_url = WDWLibrary::image_url_version($image_data->image_url, $updated_image['modified_date']);
215
  }
216
  @ini_restore('memory_limit');
 
 
 
 
217
  wp_print_scripts('jquery');
218
  wp_print_scripts('jcrop');
219
  wp_print_styles('jcrop');
220
  ?>
221
  <style>
222
- body {
223
- height: <?php echo $popup_height; ?>px;
224
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
225
 
226
- .spider_crop {
227
- background: linear-gradient(to top, #ECECEC, #F9F9F9) repeat scroll 0 0 #F1F1F1;
228
- cursor: pointer;
229
- height: 30px;
230
- padding: 2px;
231
- -moz-outline-radius: 2px;
232
- outline: 1px solid #CCCCCC;
233
- }
234
 
235
- .spider_crop:hover {
236
- -moz-outline-radius: 2px;
237
- outline: 1px solid #999999;
238
- padding: 2px;
239
- }
240
 
241
- .jcrop-holder {
242
- margin: 0 auto;
243
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
244
 
245
- .thumb_preview {
246
- height: 300px;
247
- margin: 0 auto;
248
- overflow: hidden;
249
- width: <?php echo $thumb_width * 300 / $thumb_height; ?>px;
 
 
 
 
 
 
 
 
 
 
 
 
250
  }
251
 
252
- #thumb_image_preview {
253
- display: none;
 
 
 
 
254
  }
255
 
256
- .thumb_preview_td {
257
- height: 20px;
258
- background-color: #F5F5F5;
259
- border-radius: 3px;
260
- border: 1px solid #CCCCCC;
261
- font-family: sans-serif;
262
- font-size: 12px;
263
- }
 
 
 
 
 
 
 
 
264
 
265
- .thumb_message {
266
- -moz-box-sizing: border-box;
267
- -webkit-box-sizing: border-box;
268
- background: linear-gradient(to top, #ECECEC, #F9F9F9) repeat scroll 0 0 #F1F1F1;
269
- background-color: #F5F5F5;
270
- border: 1px solid #CCCCCC;
271
- border-radius: 3px 3px 3px 3px;
272
- box-sizing: border-box;
273
- color: #333333;
274
- font-family: sans-serif;
275
- font-size: 12px;
276
- margin: 5px auto;
277
- padding: 8px 5px;
278
- width: 100%;
279
- }
 
280
 
281
- #crop_button {
282
- display: none;
283
- height: 38px;
284
- margin-top: 5px;
285
- text-align: center;
286
- }
287
- </style>
288
- <?php
289
- if ( $edit_type == 'crop' ) {
290
- ?>
291
- <div class="thumb_message" id="croped_message">
292
- <strong><?php echo __('The thumbnail successfully croped.', BWG()->prefix); ?></strong></div><?php
293
- }
294
- else {
295
- ?>
296
- <div class="thumb_message" id="thumb_message">
297
- <strong><?php echo __('Select the area for the thumbnail.', BWG()->prefix); ?></strong></div><?php
298
- }
299
- ?>
300
- <form method="post" id="crop_image" action="<?php echo $form_action; ?>">
301
- <?php wp_nonce_field('editimage_' . BWG()->prefix, 'bwg_nonce'); ?>
302
- <div class="thumb_preview_td" style="padding: 5px;">
303
- <input type="checkbox" id="chb" name="aspect_ratio" value="1" checked="checked" onclick="spider_crop_ratio()">
304
- <label for="chb"><?php _e('Keep aspect ratio', BWG()->prefix); ?></label>
305
- </div>
306
- <div style="height:<?php echo $popup_height - 60; ?>px; width:<?php echo $popup_width; ?>px; margin: 5px auto;">
307
- <div id="crop_button">
308
- <img title="Crop" class="spider_crop" onclick="spider_crop('crop', 'crop_image')" src="<?php echo BWG()->plugin_url . '/images/crop.png'; ?>" />
309
- </div>
310
- <table style="height: inherit; top: 80px; position: absolute; width: inherit; margin: 0 auto;">
311
- <tr>
312
- <td class="thumb_preview_td" style="vertical-align: middle; width: <?php echo ($popup_width - $thumb_width) - 40; ?>px;">
313
- <img id="image_view" src="<?php echo BWG()->upload_url . $image_data->image_url; ?>" style="max-width:<?php echo $image_width; ?>px; max-height:<?php echo $image_height; ?>px;" />
314
- </td>
315
- <td class="thumb_preview_td" style="width:<?php echo $thumb_width + 20; ?>px;">
316
- <div class="thumb_preview">
317
- <img id="thumb_image_preview" src="<?php echo BWG()->upload_url . $image_data->image_url; ?>">
318
- </div>
319
- </td>
320
- </tr>
321
- </table>
322
- </div>
323
- <input type="hidden" name="edit_type" id="edit_type" />
324
- <input id="x" type="hidden" name="x" value="" />
325
- <input id="y" type="hidden" name="y" value="" />
326
- <input id="w" type="hidden" name="w" value="" />
327
- <input id="h" type="hidden" name="h" value="" />
328
- </form>
329
- <script language="javascript">
330
- function spider_crop_ratio() {
331
- if (document.getElementById("chb").checked == false) {
332
- spider_crop_fix("", "");
333
- }
334
- else {
335
- spider_crop_fix("<?php echo BWG()->options->upload_thumb_width; ?>", "<?php echo BWG()->options->upload_thumb_height; ?>");
336
- }
337
- jQuery('#crop_button').show();
338
- jQuery('#thumb_message').hide();
339
- jQuery('#croped_message').hide();
340
- jQuery('#thumb_image_preview').show();
341
- }
342
 
343
- function spider_crop(type, form_id) {
344
- document.getElementById("edit_type").value = type;
345
- document.getElementById(form_id).submit();
346
- }
347
- var image_src = window.parent.document.getElementById("image_thumb_<?php echo $image_id; ?>").src;
348
- window.parent.document.getElementById("image_thumb_<?php echo $image_id; ?>").src = image_src + "<?php echo isset($updated_image['modified_date']) && $updated_image['modified_date'] ? '?bwg=' . $updated_image['modified_date'] : ''; ?>";
349
 
350
- jQuery(window).load(function () {
351
- spider_crop_fix("<?php echo $thumb_width * 300 / $thumb_height; ?>", "<?php echo 300; ?>");
352
- });
 
 
 
 
 
 
 
353
 
354
  function spider_crop_fix(wi, he) {
355
  var ratio = parseInt('<?php echo $width_orig; ?>') / jQuery('#image_view').width();
@@ -357,18 +399,14 @@ class EditimageView_bwg {
357
  var thumb_height = parseInt(he);
358
  if (<?php echo $w; ?> == 0) {
359
  jQuery('#image_view').Jcrop({
360
- onChange: spider_update_thumb,
361
  onSelect: spider_update_coords,
362
- // bgColor: 'black',
363
  bgOpacity: .7,
364
  aspectRatio: thumb_width / thumb_height
365
  });
366
  }
367
  else {
368
  jQuery('#image_view').Jcrop({
369
- onChange: spider_update_thumb,
370
  onSelect: spider_update_coords,
371
- // bgColor: 'black',
372
  bgOpacity: .7,
373
  setSelect: [ <?php echo $x; ?> / ratio, <?php echo $y; ?> / ratio, <?php echo $x + $w; ?> / ratio, <?php echo $y + $h; ?> / ratio],
374
  aspectRatio: thumb_width / thumb_height
@@ -382,29 +420,12 @@ class EditimageView_bwg {
382
  jQuery('#y').val(c.y * ratio);
383
  jQuery('#w').val(c.w * ratio);
384
  jQuery('#h').val(c.h * ratio);
385
- jQuery('#crop_button').show();
386
- jQuery('#thumb_message').hide();
387
- jQuery('#croped_message').hide();
388
- jQuery('#thumb_image_preview').show();
389
- jQuery('.thumb_preview').css("border", "1px solid #CCCCCC");
390
- }
391
-
392
- function spider_update_thumb(c) {
393
- jQuery('#crop_button').hide();
394
- jQuery('#croped_message').show();
395
- var thumb_width = parseInt('<?php echo $thumb_width * 300 / $thumb_height; ?>');
396
- var thumb_height = 300;
397
- var width = (thumb_width / c.w);
398
- var height = (thumb_height / c.h);
399
- var left = -c.x * (thumb_width / c.w);
400
- var top = -c.y * (thumb_height / c.h);
401
- //TODO broken style on preview.
402
- if ( !jQuery('#chb').is(':checked') ) {
403
- }
404
- jQuery('#thumb_image_preview').css("margin-left", left + "px");
405
- jQuery('#thumb_image_preview').css("margin-top", top + "px");
406
- jQuery('#thumb_image_preview').css("width", width * jQuery('#image_view').width() + "px");
407
- jQuery('#thumb_image_preview').css("height", height * jQuery('#image_view').height() + "px");
408
  }
409
  </script>
410
  <?php
@@ -422,8 +443,10 @@ class EditimageView_bwg {
422
  $filename = htmlspecialchars_decode(BWG()->upload_dir . $image_data->image_url, ENT_COMPAT | ENT_QUOTES);
423
  $thumb_filename = htmlspecialchars_decode(BWG()->upload_dir . $image_data->thumb_url, ENT_COMPAT | ENT_QUOTES);
424
  $original_filename = str_replace('/thumb/', '/.original/', $thumb_filename);
425
- WDWLibrary::resize_image($original_filename, $filename, BWG()->options->upload_img_width, BWG()->options->upload_img_height);
426
- WDWLibrary::resize_image($original_filename, $thumb_filename, BWG()->options->upload_thumb_width, BWG()->options->upload_thumb_height);
 
 
427
  }
428
 
429
  public function rotate($image_data = array()) {
@@ -766,7 +789,7 @@ class EditimageView_bwg {
766
  wp_print_scripts('jquery-ui-slider');
767
  ?>
768
  <link type="text/css" rel="stylesheet" id="bwg_tables-css" href="<?php echo BWG()->front_url . '/css/bwg_edit_image.css'; ?>" media="all">
769
- <link type="text/css" rel="stylesheet" href="<?php echo BWG()->front_url . '/css/font-awesome/font-awesome.css?ver=4.6.3'; ?>">
770
  <form method="post" id="bwg_rotate_image" action="<?php echo $form_action; ?>">
771
  <?php wp_nonce_field('editimage_' . BWG()->prefix, 'bwg_nonce'); ?>
772
  <div class="main_cont" style="height: <?php echo $popup_height; ?>px;">
6
 
7
  public function display() {
8
  wp_print_scripts('jquery');
9
+ $popup_width = (int) WDWLibrary::get('width', 650);
10
  $image_width = $popup_width - 40;
11
  $popup_height = (int) WDWLibrary::get('height', 500);
12
  $image_height = $popup_height - 40;
35
  <div id="wd-content" style="width:100%; height:100%;">
36
  <div id="bwg_container_for_media_1" style="width:100%; height:100%; margin:0 auto; text-align:center; vertical-align:middle;">
37
  <?php if ( !$facebook_post ) { ?>
38
+ <img id="image_display" src="<?php echo BWG()->upload_url . WDWLibrary::image_url_version($image_url, $modified_date); ?>" style="max-width:100%; max-height:100%; position: relative; transform: translateY(-50%); top: 50%;" />
39
  <?php }
40
  else { ?>
41
  <div id="fb-root"></div>
96
  }
97
 
98
  public function thumb_display() {
99
+ $popup_width = ((int) (isset($_GET['width']) ? esc_html($_GET['width']) : '1000')) - 30;
100
  $image_width = $popup_width - 40;
101
+ $popup_height = ((int) (isset($_GET['height']) ? esc_html($_GET['height']) : '600')) - 50;
102
  $image_height = $popup_height - 40;
103
  $image_id = (isset($_GET['image_id']) ? esc_html($_GET['image_id']) : '0');
104
  $modified_date = WDWLibrary::get('modified_date', '');
119
  public function crop($image_data = array()) {
120
  $thumb_width = BWG()->options->upload_thumb_width;
121
  $thumb_height = BWG()->options->upload_thumb_height;
122
+ $popup_width = ((int) WDWLibrary::get('width', 1000)) - 50;
123
  $image_width = $popup_width - $thumb_width - 70;
124
+ $popup_height = ((int) WDWLibrary::get('height', 600)) - 75;
125
  $image_height = $popup_height - 70;
126
+ $image_id = WDWLibrary::get('image_id','0');
127
+ $edit_type = WDWLibrary::get('edit_type','');
128
+ $task = WDWLibrary::get('task');
129
+ $aspect_ratio = WDWLibrary::get('aspect_ratio', 0);
130
+ $x = (int) WDWLibrary::get('x', 0);
131
+ $y = (int) WDWLibrary::get('y', 0);
132
+ $w = (int) WDWLibrary::get('w', 0);
133
+ $h = (int) WDWLibrary::get('h', 0);
134
  $modified_date = time();
135
+ if ( WDWLibrary::get('image_url') ) {
136
  $image_data = new stdClass();
137
+ $image_data->image_url = WDWLibrary::get('image_url', '');
138
+ $image_data->thumb_url = WDWLibrary::get('thumb_url', '');
139
+ if( WDWLibrary::get('data-image-url', '') != '' ) {
140
+ $image_data->image_url = WDWLibrary::get('data-image-url', '');
141
+ $image_data->thumb_url = WDWLibrary::get('data-thumb-url', '');
142
+ }
143
  $filename = htmlspecialchars_decode(BWG()->upload_dir . $image_data->image_url, ENT_COMPAT | ENT_QUOTES);
144
  $thumb_filename = htmlspecialchars_decode(BWG()->upload_dir . $image_data->thumb_url, ENT_COMPAT | ENT_QUOTES);
145
  $form_action = add_query_arg(array(
148
  'image_id' => $image_id,
149
  'image_url' => $image_data->image_url,
150
  'thumb_url' => $image_data->thumb_url,
151
+ 'width' => '1000',
152
+ 'height' => '600',
153
  'TB_iframe' => '1',
154
  ), admin_url('admin-ajax.php'));
155
  }
161
  'action' => 'editimage_' . BWG()->prefix,
162
  'type' => 'crop',
163
  'image_id' => $image_id,
164
+ 'width' => '1000',
165
+ 'height' => '600',
166
  'TB_iframe' => '1',
167
  ), admin_url('admin-ajax.php'));
168
  }
169
  $image_data->image_url = WDWLibrary::image_url_version($image_data->image_url, $modified_date);
170
  @ini_set('memory_limit', '-1');
171
+ $exp_filename = explode("?", $filename);
172
+ list( $width_orig, $height_orig, $type_orig ) = getimagesize($exp_filename[0]);
173
+ if ( $task == 'crop' ) {
174
  if( ! $aspect_ratio ) {
175
+ $scale = min( $w / $width_orig, $h / $height_orig );
176
+ $thumb_width = $w * $scale;
177
+ $thumb_height = $h * $scale;
178
  }
179
  if ( $type_orig == 2 ) {
180
+ $img_r = imagecreatefromjpeg($exp_filename[0]);
181
  $dst_r = ImageCreateTrueColor($thumb_width, $thumb_height);
182
  imagecopyresampled($dst_r, $img_r, 0, 0, $x, $y, $thumb_width, $thumb_height, $w, $h);
183
  imagejpeg($dst_r, $thumb_filename, BWG()->options->jpeg_quality);
212
  }
213
  else {
214
  ?>
215
+ <div class="message"><strong><?php echo __("You can't crop this type of image.", BWG()->prefix); ?></strong></div>
 
216
  <?php
217
  }
218
  $where = ' `id` = ' . $image_id;
220
  $image_data->image_url = WDWLibrary::image_url_version($image_data->image_url, $updated_image['modified_date']);
221
  }
222
  @ini_restore('memory_limit');
223
+ // Register and include styles and scripts.
224
+ BWG()->register_admin_scripts();
225
+ wp_print_styles(BWG()->prefix . '_tables');
226
+ wp_print_scripts(BWG()->prefix . '_admin');
227
  wp_print_scripts('jquery');
228
  wp_print_scripts('jcrop');
229
  wp_print_styles('jcrop');
230
  ?>
231
  <style>
232
+ body {
233
+ height: <?php echo $popup_height; ?>px;
234
+ }
235
+ #crop_image {
236
+ margin-top: 2px;
237
+ }
238
+ .spider_crop {
239
+ float: right;
240
+ margin-right: 10px!important;
241
+ }
242
+ .thumb_preview_td {
243
+ height: 20px;
244
+ background-color: #F5F5F5;
245
+ border-radius: 3px;
246
+ border: 1px solid #CCCCCC;
247
+ font-family: sans-serif;
248
+ font-size: 12px;
249
+ }
250
+ .message {
251
+ min-height: 37px;
252
+ padding: 0px 0px 2px 0px;
253
+ }
254
+ .message_block {
255
+ padding: 8px 5px;
256
+ width: 100%;
257
+ display: block;
258
+ text-align: center;
259
+ -moz-box-sizing: border-box;
260
+ -webkit-box-sizing: border-box;
261
+ background: linear-gradient(to top, #ECECEC, #F9F9F9) repeat scroll 0 0 #F1F1F1;
262
+ background-color: #F5F5F5;
263
+ border: 1px solid #CCCCCC;
264
+ border-radius: 3px 3px 3px 3px;
265
+ box-sizing: border-box;
266
+ font-family: sans-serif;
267
+ font-size: 12px;
268
+ color: #333333;
269
+ }
270
+ .crop_and_preview {
271
+ margin:5px 0;
272
+ width: 100%;
273
+ }
274
 
275
+ #croped_image_cont {
276
+ background-color: #F5F5F5;
277
+ border-radius: 3px;
278
+ border: 1px solid #CCCCCC;
279
+ margin-bottom: 5px;
280
+ }
 
 
281
 
282
+ #success_msg {
283
+ display: block;
284
+ margin-bottom: 5px;
285
+ }
 
286
 
287
+ .jcrop-holder {
288
+ margin: 0 auto;
289
+ }
290
+ </style>
291
+ <div style="padding:0 5px;">
292
+ <div class="message<?php echo ( $task == 'crop' ) ? ' croped' : '' ?>">
293
+ <span id="select_msg" class="notice notice-warning"><p><?php _e('Select the area for the thumbnail.', BWG()->prefix); ?></p></span>
294
+ </div>
295
+ <form method="post" id="crop_image" action="<?php echo $form_action; ?>" class="wd-form wp-core-ui">
296
+ <div class="thumb_preview_td" style="padding: 5px;">
297
+ <input type="checkbox" id="chb" name="aspect_ratio" value="1" onclick="spider_crop_ratio()" checked="checked">
298
+ <label for="chb"><?php _e('Keep aspect ratio', BWG()->prefix); ?></label>
299
+ </div>
300
+ <?php wp_nonce_field('editimage_' . BWG()->prefix, 'bwg_nonce'); ?>
301
+ <div style="max-height:<?php echo $image_height-200; ?>px; margin: 0 auto;">
302
+ <table class="crop_and_preview" cellpadding="0" cellspacing="0">
303
+ <tr>
304
+ <td class="thumb_preview_td" style="vertical-align: middle; max-width: <?php echo ($popup_width - $thumb_width) - 40; ?>px; height:409px;" max-width: <?php echo ($popup_height - $thumb_height) - 75; ?>px;">
305
+ <img id="image_view" data-mod-date = "<?php echo $updated_image['modified_date'] ?>" src="<?php echo BWG()->upload_url . $image_data->image_url; ?>" data-image-url="<?php echo $image_data->image_url ?>" data-thumb-url="<?php echo $image_data->thumb_url ?>" style="max-width:800px; max-height: 400px; visibility: hidden" />
306
+ </td>
307
+ </tr>
308
+ </table>
309
+ <button type="button" class="button button-primary button-large button-hero spider_crop" style="margin-top: 10px" onclick="spider_crop(); return false;"><?php _e('Crop', BWG()->prefix); ?></button>
310
+ </div>
311
+ <input type="hidden" name="edit_type" id="edit_type" />
312
+ <input id="x" type="hidden" name="x" value="" />
313
+ <input id="y" type="hidden" name="y" value="" />
314
+ <input id="w" type="hidden" name="w" value="" />
315
+ <input id="h" type="hidden" name="h" value="" />
316
+ </form>
317
 
318
+ <div id="croped_preview" class="hidden wp-core-ui">
319
+ <span id="success_msg" class="notice notice-success"><p><?php _e('The thumbnail was successfully cropped.', BWG()->prefix); ?></p></span>
320
+ <div id="croped_image_cont" style="height: 445px; display: grid;">
321
+ <img id='croped_image_thumb'>
322
+ </div>
323
+ <button type="button" class="button button-secondary button-large spider_crop button-hero" onclick="bwg_reset_crop(); return false;"><?php _e('Edit', BWG()->prefix); ?></button>
324
+ </div>
325
+ </div>
326
+ <script language="javascript">
327
+ jQuery(window).load(function () {
328
+ spider_crop_fix("<?php echo $thumb_width * 300 / $thumb_height; ?>", "<?php echo 300; ?>");
329
+ });
330
+ function spider_crop_ratio() {
331
+ spider_crop_fix("<?php echo BWG()->options->upload_thumb_width; ?>", "<?php echo BWG()->options->upload_thumb_height; ?>");
332
+ if ( document.getElementById("chb").checked == false ) {
333
+ spider_crop_fix();
334
+ }
335
  }
336
 
337
+ /* Edit button action after reset */
338
+ function bwg_reset_crop() {
339
+ jQuery("#croped_preview").hide();
340
+ jQuery("#crop_image").show();
341
+ jQuery('.message').show();
342
+ jQuery("td.thumb_preview_td").css("height","455x");
343
  }
344
 
345
+ function spider_crop() {
346
+ var url = jQuery("#crop_image").attr("action");
347
+ var data_image_url = jQuery("#image_view").attr("data-image-url");
348
+ var data_thumb_url = jQuery("#image_view").attr("data-thumb-url");
349
+ if(!jQuery("#w").val().length) {
350
+ return;
351
+ }
352
+ var post_data = {
353
+ 'task': 'crop',
354
+ 'x' : jQuery("#x").val(),
355
+ 'y' : jQuery("#y").val(),
356
+ 'w' : jQuery("#w").val(),
357
+ 'h' : jQuery("#h").val(),
358
+ 'data-image-url' : data_image_url,
359
+ 'data-thumb-url' : data_thumb_url,
360
+ };
361
 
362
+ jQuery.ajax({
363
+ data: post_data,
364
+ method: "POST",
365
+ url: url,
366
+ })
367
+ .complete(function( data ) {
368
+ var params;
369
+ var mod_date = jQuery("#image_view").attr("data-mod-date");
370
+ if( mod_date == '' ){
371
+ params = '?bwg='+Math.random();
372
+ } else {
373
+ params = '';
374
+ }
375
+ var image_src = window.parent.jQuery("#image_thumb_<?php echo $image_id; ?>").attr("src");
376
+ window.parent.jQuery("#image_thumb_<?php echo $image_id; ?>").attr("src", image_src + params);
377
+ var croped_image_src = window.parent.jQuery("#image_thumb_<?php echo $image_id; ?>").attr("src");
378
 
379
+ /* Hide Form content of Frame */
380
+ jQuery("#crop_image").hide();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
381
 
382
+ jQuery("#croped_image_thumb").attr('src',croped_image_src);
383
+ jQuery("#croped_preview").show();
 
 
 
 
384
 
385
+ jQuery("#croped_image_thumb").css({
386
+ 'max-width':'800px',
387
+ 'max-height':'455px',
388
+ 'margin': 'auto',
389
+ 'display': 'block',
390
+ });
391
+
392
+ jQuery('.message').hide();
393
+ });
394
+ }
395
 
396
  function spider_crop_fix(wi, he) {
397
  var ratio = parseInt('<?php echo $width_orig; ?>') / jQuery('#image_view').width();
399
  var thumb_height = parseInt(he);
400
  if (<?php echo $w; ?> == 0) {
401
  jQuery('#image_view').Jcrop({
 
402
  onSelect: spider_update_coords,
 
403
  bgOpacity: .7,
404
  aspectRatio: thumb_width / thumb_height
405
  });
406
  }
407
  else {
408
  jQuery('#image_view').Jcrop({
 
409
  onSelect: spider_update_coords,
 
410
  bgOpacity: .7,
411
  setSelect: [ <?php echo $x; ?> / ratio, <?php echo $y; ?> / ratio, <?php echo $x + $w; ?> / ratio, <?php echo $y + $h; ?> / ratio],
412
  aspectRatio: thumb_width / thumb_height
420
  jQuery('#y').val(c.y * ratio);
421
  jQuery('#w').val(c.w * ratio);
422
  jQuery('#h').val(c.h * ratio);
423
+ jQuery('.message').css('visibility', 'hidden');
424
+ if ( jQuery('.message').hasClass('croped') ) {
425
+ /* TODO. remove TB_window block.
426
+ window.parent.tb_remove(); */
427
+ jQuery('.message').css({ 'visibility':'unset' });
428
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
429
  }
430
  </script>
431
  <?php
443
  $filename = htmlspecialchars_decode(BWG()->upload_dir . $image_data->image_url, ENT_COMPAT | ENT_QUOTES);
444
  $thumb_filename = htmlspecialchars_decode(BWG()->upload_dir . $image_data->thumb_url, ENT_COMPAT | ENT_QUOTES);
445
  $original_filename = str_replace('/thumb/', '/.original/', $thumb_filename);
446
+ if ( WDWLibrary::repair_image_original($original_filename) ) {
447
+ WDWLibrary::resize_image( $original_filename, $filename, BWG()->options->upload_img_width, BWG()->options->upload_img_height );
448
+ WDWLibrary::resize_image( $original_filename, $thumb_filename, BWG()->options->upload_thumb_width, BWG()->options->upload_thumb_height );
449
+ }
450
  }
451
 
452
  public function rotate($image_data = array()) {
789
  wp_print_scripts('jquery-ui-slider');
790
  ?>
791
  <link type="text/css" rel="stylesheet" id="bwg_tables-css" href="<?php echo BWG()->front_url . '/css/bwg_edit_image.css'; ?>" media="all">
792
+ <link type="text/css" rel="stylesheet" href="<?php echo BWG()->front_url . '/css/font-awesome/font-awesome.min.css?ver=4.6.3'; ?>">
793
  <form method="post" id="bwg_rotate_image" action="<?php echo $form_action; ?>">
794
  <?php wp_nonce_field('editimage_' . BWG()->prefix, 'bwg_nonce'); ?>
795
  <div class="main_cont" style="height: <?php echo $popup_height; ?>px;">
admin/views/Galleries.php CHANGED
@@ -31,11 +31,12 @@ class GalleriesView_bwg extends AdminView_bwg {
31
  'title' => $params['page_title'],
32
  'title_class' => 'wd-header',
33
  'add_new_button' => array(
34
- 'href' => add_query_arg(array(
35
  'page' => $params['page'],
36
  'task' => 'edit',
37
  ), admin_url('admin.php')),
38
  ),
 
39
  ));
40
  echo $this->search();
41
  ?>
@@ -45,8 +46,9 @@ class GalleriesView_bwg extends AdminView_bwg {
45
  echo $this->pagination($params['page_url'], $params['total'], $params['items_per_page']);
46
  ?>
47
  </div>
48
- <table class="adminlist table table-striped wp-list-table widefat fixed pages media">
49
  <thead>
 
50
  <td id="cb" class="column-cb check-column">
51
  <label class="screen-reader-text" for="cb-select-all-1"><?php _e('Title', BWG()->prefix); ?></label>
52
  <input id="check_all" type="checkbox">
@@ -55,7 +57,7 @@ class GalleriesView_bwg extends AdminView_bwg {
55
  <th class="col_count"><?php _e('Images count', BWG()->prefix); ?></th>
56
  <?php echo WDWLibrary::ordering('author', $params['orderby'], $params['order'], __('Author', BWG()->prefix), $params['page_url']); ?>
57
  </thead>
58
- <tbody>
59
  <?php
60
  if ( $params['rows'] ) {
61
  foreach ( $params['rows'] as $row ) {
@@ -84,6 +86,11 @@ class GalleriesView_bwg extends AdminView_bwg {
84
  }
85
  ?>
86
  <tr id="tr_<?php echo $row->id; ?>" <?php echo $alternate; ?>>
 
 
 
 
 
87
  <th class="check-column">
88
  <input type="checkbox" id="check_<?php echo $row->id; ?>" name="check[<?php echo $row->id; ?>]" onclick="spider_check_all(this)" />
89
  </th>
@@ -141,7 +148,6 @@ class GalleriesView_bwg extends AdminView_bwg {
141
  wp_enqueue_style('jquery-ui-tooltip');
142
  wp_enqueue_script('jquery-ui-tooltip');
143
  wp_enqueue_script(BWG()->prefix . '_embed');
144
-
145
  ob_start();
146
  echo $this->edit_body( $params );
147
 
@@ -163,6 +169,7 @@ class GalleriesView_bwg extends AdminView_bwg {
163
  * @param $params
164
  */
165
  public function edit_body( $params = array() ) {
 
166
  $row = $params['row'];
167
  $current_id = $params['id'];
168
  $enable_wp_editor = isset(BWG()->options->enable_wp_editor) ? BWG()->options->enable_wp_editor : 0;
@@ -400,9 +407,7 @@ class GalleriesView_bwg extends AdminView_bwg {
400
  <input type="text" id="embed_url" name="embed_url" value="" placeholder="<?php _e('Enter YouTube, Vimeo, Instagram, Facebook, Flickr or Dailymotion URL here.', BWG()->prefix); ?>"/>
401
  <input class="button button-primary button-large" type="button" onclick="if (bwg_get_embed_info('embed_url')) {jQuery('.opacity_add_embed').hide();} return false;" value="<?php _e('Add to gallery', BWG()->prefix); ?>" />
402
  <input class="button button-secondary button-large" type="button" onclick="jQuery('.opacity_add_embed').hide(); return false;" value="<?php _e('Cancel', BWG()->prefix); ?>" />
403
- <p class="description">
404
-
405
- </p>
406
  <br>
407
  <div class="spider_description">
408
  <div>
@@ -510,14 +515,12 @@ class GalleriesView_bwg extends AdminView_bwg {
510
  </span>
511
  <input class="bwg_popup_input" type="text" id="title" name="title" value="" />
512
  </div>
513
- <?php if ( BWG()->options->thumb_click_action != 'open_lightbox' ) { ?>
514
  <div>
515
  <span class="bwg_popup_label">
516
  <?php _e('Redirect URL: ', BWG()->prefix); ?>
517
  </span>
518
  <input class="bwg_popup_input" type="text" id="redirecturl" name="redirecturl" value="" />
519
  </div>
520
- <?php } ?>
521
  <div>
522
  <span class="bwg_popup_label">
523
  <?php _e('Description: ', BWG()->prefix); ?>
@@ -579,14 +582,20 @@ class GalleriesView_bwg extends AdminView_bwg {
579
  <th class="column-primary"><?php _e('Image', BWG()->prefix); ?></th>
580
  <th class="col_alt"><?php _e('Alt/Title', BWG()->prefix); ?></th>
581
  <th class="col_desc"><?php _e('Description', BWG()->prefix); ?></th>
582
- <?php
583
- if ( BWG()->options->thumb_click_action != 'open_lightbox' ) {
584
- ?><th class="col_redirect"><?php _e('Redirect URL', BWG()->prefix); ?></th><?php
585
- }
586
- ?>
 
 
 
 
 
 
587
  <th class="col_tag"><?php _e('Tags', BWG()->prefix); ?></th>
588
  </thead>
589
- <tbody id="tbody_arr" data-meta="<?php echo BWG()->options->read_metadata; ?>">
590
  <?php
591
  if ( $params['rows'] ) {
592
  $i = $params['page_num'];
@@ -606,7 +615,7 @@ class GalleriesView_bwg extends AdminView_bwg {
606
  'image_url' => urlencode($row->pure_image_url),
607
  'thumb_url' => urlencode($row->pure_thumb_url),
608
  'image_id' => $row->id,
609
- 'width' => '800',
610
  'height' => '500',
611
  BWG()->nonce => wp_create_nonce('editimage_' . BWG()->prefix),
612
  ), admin_url('admin-ajax.php'));
@@ -629,7 +638,7 @@ class GalleriesView_bwg extends AdminView_bwg {
629
  ), $image_link);
630
  $image_link = add_query_arg(array('TB_iframe' => '1'), $image_link);
631
  $edit_link = add_query_arg(array('type' => 'rotate', 'TB_iframe' => '1'), $link);
632
- $crop_link = add_query_arg(array('type' => 'crop', 'TB_iframe' => '1'), $link);
633
  $image_url = (!$is_embed ? BWG()->upload_url : "") . $row->thumb_url;
634
  $add_tag_url = add_query_arg(array('image_id' => $row->id, 'TB_iframe' => '1'), $params['add_tags_action']);
635
  ?>
@@ -646,7 +655,7 @@ class GalleriesView_bwg extends AdminView_bwg {
646
  <strong class="has-media-icon">
647
  <a class="thickbox thickbox-preview" onclick="jQuery('#loading_div').show();" href="<?php echo $image_link; ?>">
648
  <span class="media-icon image-icon">
649
- <img id="image_thumb_<?php echo $row->id; ?>" class="preview-image" title="<?php echo $row->filename; ?>" <?php echo $temp ? 'tempthumb_src=""' : 'src="' . $image_url . '"'; ?> width="120" height="90" />
650
  </span>
651
  <?php echo $row->filename; ?>
652
  <i class="wd-info dashicons dashicons-info" data-id="wd-info-<?php echo $row->id; ?>"></i>
@@ -659,11 +668,12 @@ class GalleriesView_bwg extends AdminView_bwg {
659
  </a>
660
  <?php if ( !$row->published ) { ?>
661
  — <span class="post-state"><?php _e('Unpublished', BWG()->prefix); ?></span>
662
- <?php } ?>
 
663
  </strong>
664
  <div class="row-actions">
665
  <span class="wd-image-actions <?php echo ( !$is_embed && ( $params['gallery_type'] == '' ) ? '' : ' wd-hide' ); ?>"><a class="<?php echo (BWG()->is_demo || !BWG()->wp_editor_exists ? '' : 'thickbox thickbox-preview'); ?>" href="<?php echo (BWG()->is_demo ? 'javascript:alert(\'' . addslashes(__('This option is disabled in demo.', BWG()->prefix)) . '\');' : (BWG()->wp_editor_exists ? $edit_link : 'javascript:alert(\'' . addslashes(__('Image edit functionality is not supported by your web host.', BWG()->prefix)) . '\');')); ?>"><?php _e('Edit', BWG()->prefix); ?></a> |</span>
666
- <span class="wd-image-actions <?php echo ( !$is_embed && ( $params['gallery_type'] == '' ) ? '' : ' wd-hide' ); ?>"><a class="<?php echo (BWG()->is_demo || !BWG()->wp_editor_exists ? '' : 'thickbox thickbox-preview'); ?>" href="<?php echo (BWG()->is_demo ? 'javascript:alert(\'' . addslashes(__('This option is disabled in demo.', BWG()->prefix)) . '\');' : (BWG()->wp_editor_exists ? $crop_link : 'javascript:alert(\'' . addslashes(__('Image edit functionality is not supported by your web host.', BWG()->prefix)) . '\');')); ?>"><?php _e('Crop', BWG()->prefix); ?></a> |</span>
667
  <span class="wd-image-actions <?php echo ( !$is_embed && ( $params['gallery_type'] == '' ) ? '' : ' wd-hide' ); ?>"><a onclick="<?php echo (BWG()->is_demo ? 'alert(\'' . addslashes(__('This option is disabled in demo.', BWG()->prefix)) . '\');' : 'if (confirm(\'' . addslashes(__('Do you want to reset the image?', BWG()->prefix)) . '\')) { spider_set_input_value(\'ajax_task\', \'image_reset\'); spider_set_input_value(\'image_current_id\', \'' . $row->id . '\'); spider_ajax_save(\'bwg_gallery\'); } return false;'); ?>"><?php _e('Reset', BWG()->prefix); ?></a> |</span>
668
  <span><a onclick="spider_set_input_value('ajax_task', 'image_<?php echo $row->published ? 'unpublish' : 'publish'; ?>');
669
  spider_set_input_value('image_current_id', '<?php echo $row->id; ?>');
@@ -683,7 +693,7 @@ class GalleriesView_bwg extends AdminView_bwg {
683
  <td data-colname="<?php _e('Alt/Title', BWG()->prefix); ?>">
684
  <textarea rows="4" id="image_alt_text_<?php echo $row->id; ?>" name="image_alt_text_<?php echo $row->id; ?>"><?php echo $row->alt; ?></textarea>
685
  </td>
686
- <td data-colname="<?php _e('Description', BWG()->prefix); ?>">
687
  <textarea rows="4" id="image_description_<?php echo $row->id; ?>" name="image_description_<?php echo $row->id; ?>"><?php echo $row->description; ?></textarea>
688
  <?php
689
  if ( function_exists('BWGEC') ) {
@@ -696,14 +706,13 @@ class GalleriesView_bwg extends AdminView_bwg {
696
  }
697
  ?>
698
  </td>
699
- <?php
700
- if ( BWG()->options->thumb_click_action != 'open_lightbox' ) {
701
- ?>
702
- <td data-colname="<?php _e('Redirect URL', BWG()->prefix); ?>">
 
703
  <textarea rows="4" onkeypress="prevent_new_line(event)" class="bwg_redirect_url" id="redirect_url_<?php echo $row->id; ?>" name="redirect_url_<?php echo $row->id; ?>"><?php echo $row->redirect_url; ?></textarea>
704
- </td><?php
705
- }
706
- ?>
707
  <td data-colname="<?php _e('Tags', BWG()->prefix); ?>">
708
  <div class="tags_div<?php echo count($row->tags) > 1 ? '' : ' wd-hide'; ?>" id="tags_div_<?php echo $row->id; ?>">
709
  <?php
@@ -751,6 +760,7 @@ class GalleriesView_bwg extends AdminView_bwg {
751
  <input type="hidden" id="paged" name="paged" value="1" />
752
  <input type="hidden" id="ajax_task" name="ajax_task" value="" />
753
  <input type="hidden" id="image_current_id" name="image_current_id" value="" />
 
754
  <input type="hidden" id="added_tags_id" name="added_tags_id" value="" />
755
  <a class="wd-add-tags thickbox thickbox-preview wd-hide" href="<?php echo add_query_arg(array('TB_iframe' => '1'), $params['add_tags_action']); ?>"></a>
756
  <?php
31
  'title' => $params['page_title'],
32
  'title_class' => 'wd-header',
33
  'add_new_button' => array(
34
+ 'href' => add_query_arg(array(
35
  'page' => $params['page'],
36
  'task' => 'edit',
37
  ), admin_url('admin.php')),
38
  ),
39
+ 'how_to_button' => true,
40
  ));
41
  echo $this->search();
42
  ?>
46
  echo $this->pagination($params['page_url'], $params['total'], $params['items_per_page']);
47
  ?>
48
  </div>
49
+ <table class="images_table adminlist table table-striped wp-list-table widefat fixed pages media bwg-gallery-lists">
50
  <thead>
51
+ <td class="col_drag" data-page-number="<?php echo $params['page_num']; ?>" data-ordering-url="<?php echo $params['galleries_ordering_ajax_url']; ?>"><?php _e('Drag&Drop', BWG()->prefix); ?></td>
52
  <td id="cb" class="column-cb check-column">
53
  <label class="screen-reader-text" for="cb-select-all-1"><?php _e('Title', BWG()->prefix); ?></label>
54
  <input id="check_all" type="checkbox">
57
  <th class="col_count"><?php _e('Images count', BWG()->prefix); ?></th>
58
  <?php echo WDWLibrary::ordering('author', $params['orderby'], $params['order'], __('Author', BWG()->prefix), $params['page_url']); ?>
59
  </thead>
60
+ <tbody id="bwg-table-sortable" class="bwg-ordering">
61
  <?php
62
  if ( $params['rows'] ) {
63
  foreach ( $params['rows'] as $row ) {
86
  }
87
  ?>
88
  <tr id="tr_<?php echo $row->id; ?>" <?php echo $alternate; ?>>
89
+ <th class="connectedSortable col_drag handles ui-sortable-handle">
90
+ <div title="<?php _e('Drag to re-order', BWG()->prefix); ?>" class="wd-drag handle dashicons dashicons-move"></div>
91
+ <input class="wd-id" id="id_input_<?php echo $row->id; ?>" name="id_input_<?php echo $row->id; ?>" type="hidden" size="1" value="<?php echo $row->id; ?>" />
92
+ <input class="wd-order" id="order_input_<?php echo $row->id; ?>" name="order_input_<?php echo $row->id; ?>" type="hidden" size="1" value="<?php echo $row->order; ?>" />
93
+ </th>
94
  <th class="check-column">
95
  <input type="checkbox" id="check_<?php echo $row->id; ?>" name="check[<?php echo $row->id; ?>]" onclick="spider_check_all(this)" />
96
  </th>
148
  wp_enqueue_style('jquery-ui-tooltip');
149
  wp_enqueue_script('jquery-ui-tooltip');
150
  wp_enqueue_script(BWG()->prefix . '_embed');
 
151
  ob_start();
152
  echo $this->edit_body( $params );
153
 
169
  * @param $params
170
  */
171
  public function edit_body( $params = array() ) {
172
+ add_action('bwg_call_how_to', array($this, 'get_how_to'), 10, 2);
173
  $row = $params['row'];
174
  $current_id = $params['id'];
175
  $enable_wp_editor = isset(BWG()->options->enable_wp_editor) ? BWG()->options->enable_wp_editor : 0;
407
  <input type="text" id="embed_url" name="embed_url" value="" placeholder="<?php _e('Enter YouTube, Vimeo, Instagram, Facebook, Flickr or Dailymotion URL here.', BWG()->prefix); ?>"/>
408
  <input class="button button-primary button-large" type="button" onclick="if (bwg_get_embed_info('embed_url')) {jQuery('.opacity_add_embed').hide();} return false;" value="<?php _e('Add to gallery', BWG()->prefix); ?>" />
409
  <input class="button button-secondary button-large" type="button" onclick="jQuery('.opacity_add_embed').hide(); return false;" value="<?php _e('Cancel', BWG()->prefix); ?>" />
410
+ <p class="description"></p>
 
 
411
  <br>
412
  <div class="spider_description">
413
  <div>
515
  </span>
516
  <input class="bwg_popup_input" type="text" id="title" name="title" value="" />
517
  </div>
 
518
  <div>
519
  <span class="bwg_popup_label">
520
  <?php _e('Redirect URL: ', BWG()->prefix); ?>
521
  </span>
522
  <input class="bwg_popup_input" type="text" id="redirecturl" name="redirecturl" value="" />
523
  </div>
 
524
  <div>
525
  <span class="bwg_popup_label">
526
  <?php _e('Description: ', BWG()->prefix); ?>
582
  <th class="column-primary"><?php _e('Image', BWG()->prefix); ?></th>
583
  <th class="col_alt"><?php _e('Alt/Title', BWG()->prefix); ?></th>
584
  <th class="col_desc"><?php _e('Description', BWG()->prefix); ?></th>
585
+ <th class="col_redirect">
586
+ <?php _e('Redirect URL', BWG()->prefix); ?>
587
+ <i class="wd-info dashicons dashicons-info" data-id="wd-info-redirect"></i>
588
+ <div id="wd-info-redirect" class="wd-hide">
589
+ <p><?php
590
+ $link = '<a target="_blank" href="'.add_query_arg(array('page' => 'options_bwg'), admin_url('admin.php')).'">'. __('Options > General', BWG()->prefix) . '</a>';
591
+ echo sprintf(__('To activate this feature, go to %s, then set "Image click action" to "Redirect to URL". Please use absolute URLs when specifying the links.', BWG()->prefix), $link);
592
+ ?>
593
+ </p>
594
+ </div>
595
+ </th>
596
  <th class="col_tag"><?php _e('Tags', BWG()->prefix); ?></th>
597
  </thead>
598
+ <tbody id="tbody_arr" data-meta="<?php echo BWG()->options->read_metadata; ?>" class="bwg-ordering">
599
  <?php
600
  if ( $params['rows'] ) {
601
  $i = $params['page_num'];
615
  'image_url' => urlencode($row->pure_image_url),
616
  'thumb_url' => urlencode($row->pure_thumb_url),
617
  'image_id' => $row->id,
618
+ 'width' => '1000',
619
  'height' => '500',
620
  BWG()->nonce => wp_create_nonce('editimage_' . BWG()->prefix),
621
  ), admin_url('admin-ajax.php'));
638
  ), $image_link);
639
  $image_link = add_query_arg(array('TB_iframe' => '1'), $image_link);
640
  $edit_link = add_query_arg(array('type' => 'rotate', 'TB_iframe' => '1'), $link);
641
+ $crop_link = add_query_arg(array('height' => '600', 'type' => 'crop', 'TB_iframe' => '1'), $link);
642
  $image_url = (!$is_embed ? BWG()->upload_url : "") . $row->thumb_url;
643
  $add_tag_url = add_query_arg(array('image_id' => $row->id, 'TB_iframe' => '1'), $params['add_tags_action']);
644
  ?>
655
  <strong class="has-media-icon">
656
  <a class="thickbox thickbox-preview" onclick="jQuery('#loading_div').show();" href="<?php echo $image_link; ?>">
657
  <span class="media-icon image-icon">
658
+ <img id="image_thumb_<?php echo $row->id; ?>" class="preview-image gallery_image_thumb <?php echo $temp ? '' : 'bwg_no_border' ?>" title="<?php echo $row->filename; ?>" <?php echo $temp ? 'tempthumb_src=""' : ''; ?> alt="" data-src = "<?php echo $temp ? '' : $image_url ?>" />
659
  </span>
660
  <?php echo $row->filename; ?>
661
  <i class="wd-info dashicons dashicons-info" data-id="wd-info-<?php echo $row->id; ?>"></i>
668
  </a>
669
  <?php if ( !$row->published ) { ?>
670
  — <span class="post-state"><?php _e('Unpublished', BWG()->prefix); ?></span>
671
+ <?php }
672
+ ?>
673
  </strong>
674
  <div class="row-actions">
675
  <span class="wd-image-actions <?php echo ( !$is_embed && ( $params['gallery_type'] == '' ) ? '' : ' wd-hide' ); ?>"><a class="<?php echo (BWG()->is_demo || !BWG()->wp_editor_exists ? '' : 'thickbox thickbox-preview'); ?>" href="<?php echo (BWG()->is_demo ? 'javascript:alert(\'' . addslashes(__('This option is disabled in demo.', BWG()->prefix)) . '\');' : (BWG()->wp_editor_exists ? $edit_link : 'javascript:alert(\'' . addslashes(__('Image edit functionality is not supported by your web host.', BWG()->prefix)) . '\');')); ?>"><?php _e('Edit', BWG()->prefix); ?></a> |</span>
676
+ <span class="wd-image-actions <?php echo ( !$is_embed && ( $params['gallery_type'] == '' ) ? '' : ' wd-hide' ); ?>"><a class="<?php echo (BWG()->is_demo || !BWG()->wp_editor_exists ? '' : 'thickbox thickbox-preview'); ?>" href="<?php echo (BWG()->is_demo ? 'javascript:alert(\'' . addslashes(__('This option is disabled in demo.', BWG()->prefix)) . '\');' : (BWG()->wp_editor_exists ? $crop_link : 'javascript:alert(\'' . addslashes(__('Image edit functionality is not supported by your web host.', BWG()->prefix)) . '\');')); ?>"><?php _e('Crop Thumbnail', BWG()->prefix); ?></a> |</span>
677
  <span class="wd-image-actions <?php echo ( !$is_embed && ( $params['gallery_type'] == '' ) ? '' : ' wd-hide' ); ?>"><a onclick="<?php echo (BWG()->is_demo ? 'alert(\'' . addslashes(__('This option is disabled in demo.', BWG()->prefix)) . '\');' : 'if (confirm(\'' . addslashes(__('Do you want to reset the image?', BWG()->prefix)) . '\')) { spider_set_input_value(\'ajax_task\', \'image_reset\'); spider_set_input_value(\'image_current_id\', \'' . $row->id . '\'); spider_ajax_save(\'bwg_gallery\'); } return false;'); ?>"><?php _e('Reset', BWG()->prefix); ?></a> |</span>
678
  <span><a onclick="spider_set_input_value('ajax_task', 'image_<?php echo $row->published ? 'unpublish' : 'publish'; ?>');
679
  spider_set_input_value('image_current_id', '<?php echo $row->id; ?>');
693
  <td data-colname="<?php _e('Alt/Title', BWG()->prefix); ?>">
694
  <textarea rows="4" id="image_alt_text_<?php echo $row->id; ?>" name="image_alt_text_<?php echo $row->id; ?>"><?php echo $row->alt; ?></textarea>
695
  </td>
696
+ <td class="col_desc" data-colname="<?php _e('Description', BWG()->prefix); ?>">
697
  <textarea rows="4" id="image_description_<?php echo $row->id; ?>" name="image_description_<?php echo $row->id; ?>"><?php echo $row->description; ?></textarea>
698
  <?php
699
  if ( function_exists('BWGEC') ) {
706
  }
707
  ?>
708
  </td>
709
+ <td data-colname="<?php _e('Redirect URL', BWG()->prefix); ?>" class="redirect_cont">
710
+ <i class="wd-info dashicons dashicons-info" data-id="wd-info-redirect"></i>
711
+ <div id="wd-info-redirect" class="wd-hide">
712
+ <p>Enter a URL to redirect users as they click on image thumbnails.</p>
713
+ </div>
714
  <textarea rows="4" onkeypress="prevent_new_line(event)" class="bwg_redirect_url" id="redirect_url_<?php echo $row->id; ?>" name="redirect_url_<?php echo $row->id; ?>"><?php echo $row->redirect_url; ?></textarea>
715
+ </td>
 
 
716
  <td data-colname="<?php _e('Tags', BWG()->prefix); ?>">
717
  <div class="tags_div<?php echo count($row->tags) > 1 ? '' : ' wd-hide'; ?>" id="tags_div_<?php echo $row->id; ?>">
718
  <?php
760
  <input type="hidden" id="paged" name="paged" value="1" />
761
  <input type="hidden" id="ajax_task" name="ajax_task" value="" />
762
  <input type="hidden" id="image_current_id" name="image_current_id" value="" />
763
+ <input type="hidden" id="total" name="total" value="<?php echo $params['total']; ?>" />
764
  <input type="hidden" id="added_tags_id" name="added_tags_id" value="" />
765
  <a class="wd-add-tags thickbox thickbox-preview wd-hide" href="<?php echo add_query_arg(array('TB_iframe' => '1'), $params['add_tags_action']); ?>"></a>
766
  <?php
admin/views/Options.php CHANGED
@@ -108,6 +108,26 @@ class OptionsView_bwg extends AdminView_bwg {
108
  <?php
109
  }
110
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
111
  <div class="wd-box-content wd-width-100">
112
  <div class="wd-group">
113
  <label class="wd-label" for="upload_img_width"><?php _e('Image dimensions', BWG()->prefix); ?></label>
@@ -957,10 +977,14 @@ class OptionsView_bwg extends AdminView_bwg {
957
  bwg_enable_disable(<?php echo $row->album_view_type == 'mosaic' ? "'', 'tr_album_mosaic', 'album_view_type_2'" : "'none', 'tr_album_mosaic', 'album_view_type_" . $row->album_view_type . "'"; ?>);
958
  bwg_enable_disable(<?php echo $row->album_view_type == 'mosaic' ? "'', 'tr_album_resizable_mosaic', 'album_view_type_2'" : "'none', 'tr_album_resizable_mosaic', 'album_view_type_" . $row->album_view_type . "'"; ?>);
959
  bwg_enable_disable(<?php echo $row->album_view_type == 'mosaic' ? "'', 'tr_album_mosaic_total_width', 'album_view_type_2'" : "'none', 'tr_album_mosaic_total_width', 'album_view_type_" . $row->album_view_type . "'"; ?>);
 
 
960
  bwg_enable_disable(<?php echo $row->album_extended_view_type == 'mosaic' ? "'', 'tr_album_extended_mosaic', 'album_extended_view_type_2'" : "'none', 'tr_album_extended_mosaic', 'album_extended_view_type_" . $row->album_extended_view_type . "'"; ?>);
961
  bwg_enable_disable(<?php echo $row->album_extended_view_type == 'mosaic' ? "'', 'tr_album_extended_resizable_mosaic', 'album_extended_view_type_2'" : "'none', 'tr_album_extended_resizable_mosaic', 'album_extended_view_type_" . $row->album_extended_view_type . "'"; ?>);
962
  bwg_enable_disable(<?php echo $row->album_extended_view_type == 'mosaic' ? "'', 'tr_album_extended_mosaic_total_width', 'album_extended_view_type_2'" : "'none', 'tr_album_extended_mosaic_total_width', 'album_extended_view_type_" . $row->album_extended_view_type . "'"; ?>);
963
- bwg_enable_disable(<?php echo $row->masonry == 'horizontal' ? "'none', 'tr_show_masonry_thumb_description', 'masonry_1'" : "'', 'tr_show_masonry_thumb_description', 'masonry_0'"; ?>);
 
 
964
  preview_watermark();
965
  preview_built_in_watermark();
966
  bwg_show_hide_roles();
@@ -1207,18 +1231,21 @@ class OptionsView_bwg extends AdminView_bwg {
1207
  </div>
1208
  <div id="thumbnails_masonry_options" class="bwg-pro-views gallery_options wd-box-content wd-width-100 bwg-flex-wrap">
1209
  <div class="wd-box-content wd-width-33">
 
1210
  <div class="wd-box-content wd-width-100">
1211
  <div class="wd-group">
1212
  <label class="wd-label"><?php _e('Masonry type', BWG()->prefix); ?></label>
1213
  <div class="bwg-flex">
1214
- <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('', 'tr_show_masonry_thumb_description', 'masonry_0');" /><label for="masonry_0" class="wd-radio-label"><?php _e('Vertical', BWG()->prefix); ?></label>
1215
- <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', 'tr_show_masonry_thumb_description', 'masonry_1');" /><label for="masonry_1" class="wd-radio-label"><?php _e('Horizontal', BWG()->prefix); ?></label>
1216
  </div>
1217
  <p class="description"><?php _e('Select the type of Masonry galleries, Vertical or Horizontal.', BWG()->prefix); ?></p>
1218
  <?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
1219
  </div>
1220
  </div>
1221
- <div class="wd-box-content wd-width-100">
 
 
1222
  <div class="wd-group">
1223
  <label class="wd-label" for="masonry_thumb_size"><?php _e('Thumbnail size', BWG()->prefix); ?></label>
1224
  <div class="bwg-flex">
@@ -1364,7 +1391,18 @@ class OptionsView_bwg extends AdminView_bwg {
1364
  <p class="description"><?php _e('Display the descriptions of your galleries by activating this option.', BWG()->prefix); ?></p>
1365
  </div>
1366
  </div>
1367
- <div class="wd-box-content wd-width-100" id="tr_show_masonry_thumb_description">
 
 
 
 
 
 
 
 
 
 
 
1368
  <div class="wd-group">
1369
  <label class="wd-label"><?php _e('Show image descriptions in Vertical Masonry', BWG()->prefix); ?></label>
1370
  <div class="bwg-flex">
@@ -1589,8 +1627,7 @@ class OptionsView_bwg extends AdminView_bwg {
1589
  <label class="wd-label"><?php _e('Show image title', BWG()->prefix); ?></label>
1590
  <div class="bwg-flex">
1591
  <input type="radio" name="mosaic_image_title_show_hover" id="mosaic_image_title_show_hover_1" value="hover" <?php if ($row->mosaic_image_title_show_hover == "hover") echo 'checked="checked"'; ?> /><label for="mosaic_image_title_show_hover_1" class="wd-radio-label"><?php _e('Show on hover', BWG()->prefix); ?></label>
1592
- <input type="radio" name="mosaic_image_title_show_hover" id="mosaic_image_title_show_hover_0" value="show" <?php if ($row->mosaic_image_title_show_hover == "show") echo 'checked="checked"'; ?> /><label for="mosaic_image_title_show_hover_0" class="wd-radio-label"><?php _e('Always show', BWG()->prefix); ?></label>
1593
- <input type="radio" name="mosaic_image_title_show_hover" id="mosaic_image_title_show_hover_2" value="none" <?php if ($row->mosaic_image_title_show_hover == "none") echo 'checked="checked"'; ?> /><label for="mosaic_image_title_show_hover_2" class="wd-radio-label"><?php _e("Don't show", BWG()->prefix); ?></label>
1594
  </div>
1595
  <p class="description"><?php _e('Choose to show/hide titles of images, or display them on hover.', BWG()->prefix); ?></p>
1596
  </div>
@@ -1970,6 +2007,26 @@ class OptionsView_bwg extends AdminView_bwg {
1970
  </div>
1971
  </div>
1972
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1973
  </div>
1974
  <div class="wd-box-content wd-width-33">
1975
  <div class="wd-box-content wd-width-100">
@@ -2187,7 +2244,7 @@ class OptionsView_bwg extends AdminView_bwg {
2187
  <div class="wd-group">
2188
  <label class="wd-label" for="carousel_image_column_number"><?php _e('Max. number of images', BWG()->prefix); ?></label>
2189
  <div class="bwg-flex">
2190
- <input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="number" name="carousel_image_column_number" id="carousel_image_column_number" value="<?php echo $row->carousel_image_column_number; ?>" min="0" /><span>sec.</span>
2191
  </div>
2192
  <p class="description"><?php _e('Set the maximum number of images that are shown with Carousel display.', BWG()->prefix); ?></p>
2193
  <?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
@@ -2206,11 +2263,11 @@ class OptionsView_bwg extends AdminView_bwg {
2206
  </div>
2207
  <div class="wd-box-content wd-width-100">
2208
  <div class="wd-group">
2209
- <label class="wd-label" for="carousel_image_par"><?php _e('Carousel image ratio', BWG()->prefix); ?></label>
2210
  <div class="bwg-flex">
2211
  <input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="number" name="carousel_image_par" id="carousel_image_par" value="<?php echo $row->carousel_image_par; ?>" min="0" max="1" step="0.01" />
2212
  </div>
2213
- <p class="description"><?php _e('This option defines the dimensions ratio of images in Carousel view. E.g. for square images set ratio to 1.', BWG()->prefix); ?></p>
2214
  <?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
2215
  </div>
2216
  </div>
@@ -2517,9 +2574,9 @@ class OptionsView_bwg extends AdminView_bwg {
2517
  <div class="wd-group">
2518
  <label class="wd-label"><?php _e('Gallery view type', BWG()->prefix); ?></label>
2519
  <div class="bwg-flex">
2520
- <input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="album_view_type" id="album_view_type_1" value="thumbnail" <?php if ($row->album_view_type == "thumbnail") echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_album_mosaic', 'album_view_type_1'); bwg_enable_disable('none', 'tr_album_resizable_mosaic', 'album_view_type_1'); bwg_enable_disable('none', 'tr_album_mosaic_total_width', 'album_view_type_1');" /><label for="album_view_type_1" class="wd-radio-label"><?php _e('Thumbnail', BWG()->prefix); ?></label>
2521
- <input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="album_view_type" id="album_view_type_0" value="masonry" <?php if ($row->album_view_type == "masonry") echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_album_mosaic', 'album_view_type_0'); bwg_enable_disable('none', 'tr_album_resizable_mosaic', 'album_view_type_0'); bwg_enable_disable('none', 'tr_album_mosaic_total_width', 'album_view_type_0');" /><label for="album_view_type_0" class="wd-radio-label"><?php _e('Masonry', BWG()->prefix); ?></label>
2522
- <input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="album_view_type" id="album_view_type_2" value="mosaic" <?php if ($row->album_view_type == "mosaic") echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_album_mosaic', 'album_view_type_2'); bwg_enable_disable('', 'tr_album_resizable_mosaic', 'album_view_type_2'); bwg_enable_disable('', 'tr_album_mosaic_total_width', 'album_view_type_2');" /><label for="album_view_type_2" class="wd-radio-label"><?php _e('Mosaic', BWG()->prefix); ?></label>
2523
  </div>
2524
  <p class="description"><?php _e('Choose the display type for gallery groups, Thumbnails, Masonry or Mosaic.', BWG()->prefix); ?></p>
2525
  <?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
@@ -2561,9 +2618,9 @@ class OptionsView_bwg extends AdminView_bwg {
2561
  <div class="wd-group">
2562
  <label class="wd-label"><?php _e('Show image title', BWG()->prefix); ?></label>
2563
  <div class="bwg-flex">
2564
- <input type="radio" name="album_image_title_show_hover" id="album_image_title_show_hover_1" value="hover" <?php if ($row->album_image_title_show_hover == "hover") echo 'checked="checked"'; ?> /><label for="album_image_title_show_hover_1" class="wd-radio-label"><?php _e('Show on hover', BWG()->prefix); ?></label>
2565
- <input type="radio" name="album_image_title_show_hover" id="album_image_title_show_hover_0" value="show" <?php if ($row->album_image_title_show_hover == "show") echo 'checked="checked"'; ?> /><label for="album_image_title_show_hover_0" class="wd-radio-label"><?php _e('Always show', BWG()->prefix); ?></label>
2566
- <input type="radio" name="album_image_title_show_hover" id="album_image_title_show_hover_2" value="none" <?php if ($row->album_image_title_show_hover == "none") echo 'checked="checked"'; ?> /><label for="album_image_title_show_hover_2" class="wd-radio-label"><?php _e("Don't show", BWG()->prefix); ?></label>
2567
  </div>
2568
  <p class="description"><?php _e('Choose to show/hide titles of images, or display them on hover.', BWG()->prefix); ?></p>
2569
  </div>
@@ -2596,9 +2653,9 @@ class OptionsView_bwg extends AdminView_bwg {
2596
  <div class="wd-group">
2597
  <label class="wd-label"><?php _e('Show ecommerce icon', BWG()->prefix); ?></label>
2598
  <div class="bwg-flex">
2599
- <input type="radio" name="album_ecommerce_icon_show_hover" id="album_ecommerce_icon_show_hover_1" value="hover" <?php if ($row->album_ecommerce_icon_show_hover == "hover") echo 'checked="checked"'; ?> /><label for="album_ecommerce_icon_show_hover_1" class="wd-radio-label"><?php _e('Show on hover', BWG()->prefix); ?></label>
2600
- <input type="radio" name="album_ecommerce_icon_show_hover" id="album_ecommerce_icon_show_hover_0" value="show" <?php if ($row->album_ecommerce_icon_show_hover == "show") echo 'checked="checked"'; ?> /><label for="album_ecommerce_icon_show_hover_0" class="wd-radio-label"><?php _e('Always show', BWG()->prefix); ?></label>
2601
- <input type="radio" name="album_ecommerce_icon_show_hover" id="album_ecommerce_icon_show_hover_2" value="none" <?php if ($row->album_ecommerce_icon_show_hover == "none") echo 'checked="checked"'; ?> /><label for="album_ecommerce_icon_show_hover_2" class="wd-radio-label"><?php _e("Don't show", BWG()->prefix); ?></label>
2602
  </div>
2603
  <p class="description"><?php _e('Choose to show/hide ecommerce icon, or display them on hover.', BWG()->prefix); ?></p>
2604
  </div>
@@ -2773,6 +2830,17 @@ class OptionsView_bwg extends AdminView_bwg {
2773
  <p class="description"><?php _e('Display the description of displayed gallery or gallery group by enabling this setting.', BWG()->prefix); ?></p>
2774
  </div>
2775
  </div>
 
 
 
 
 
 
 
 
 
 
 
2776
  <div class="wd-box-content wd-width-100">
2777
  <div class="wd-group">
2778
  <label class="wd-label"><?php _e('Enable bulk download button', BWG()->prefix); ?></label>
@@ -2961,31 +3029,31 @@ class OptionsView_bwg extends AdminView_bwg {
2961
  </div>
2962
  <div class="wd-box-content wd-width-100">
2963
  <div class="wd-group">
2964
- <label class="wd-label"><?php _e('Show extended gallery group description', BWG()->prefix); ?></label>
2965
  <div class="bwg-flex">
2966
- <input type="radio" name="extended_album_description_enable" id="extended_album_description_enable_1" value="1" <?php if ($row->extended_album_description_enable) echo 'checked="checked"'; ?> /><label for="extended_album_description_enable_1" class="wd-radio-label"><?php _e('Yes', BWG()->prefix); ?></label>
2967
- <input type="radio" name="extended_album_description_enable" id="extended_album_description_enable_0" value="0" <?php if (!$row->extended_album_description_enable) echo 'checked="checked"'; ?> /><label for="extended_album_description_enable_0" class="wd-radio-label"><?php _e('No', BWG()->prefix); ?></label>
2968
  </div>
2969
- <p class="description"><?php _e('Enable this option to show descriptions of galleries/gallery groups in Extended view.', BWG()->prefix); ?></p>
2970
  </div>
2971
  </div>
2972
  <div class="wd-box-content wd-width-100">
2973
  <div class="wd-group">
2974
- <label class="wd-label"><?php _e('Show gallery group or gallery description', BWG()->prefix); ?></label>
2975
  <div class="bwg-flex">
2976
- <input type="radio" name="album_extended_show_gallery_description" id="album_extended_show_gallery_description_1" value="1" <?php if ($row->album_extended_show_gallery_description) echo 'checked="checked"'; ?> /><label for="album_extended_show_gallery_description_1" class="wd-radio-label"><?php _e('Yes', BWG()->prefix); ?></label>
2977
- <input type="radio" name="album_extended_show_gallery_description" id="album_extended_show_gallery_description_0" value="0" <?php if (!$row->album_extended_show_gallery_description) echo 'checked="checked"'; ?> /><label for="album_extended_show_gallery_description_0" class="wd-radio-label"><?php _e('No', BWG()->prefix); ?></label>
2978
  </div>
2979
- <p class="description"><?php _e('Display the description of displayed gallery or gallery group by enabling this setting.', BWG()->prefix); ?></p>
2980
  </div>
2981
  </div>
2982
  <div class="wd-box-content wd-width-100">
2983
  <div class="wd-group">
2984
  <label class="wd-label"><?php _e('Gallery view type', BWG()->prefix); ?></label>
2985
  <div class="bwg-flex">
2986
- <input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="album_extended_view_type" id="album_extended_view_type_1" value="thumbnail" <?php if ($row->album_extended_view_type == "thumbnail") echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_album_extended_mosaic', 'album_extended_view_type_1'); bwg_enable_disable('none', 'tr_album_extended_resizable_mosaic', 'album_extended_view_type_1'); bwg_enable_disable('none', 'tr_album_extended_mosaic_total_width', 'album_extended_view_type_1');" /><label for="album_extended_view_type_1" class="wd-radio-label"><?php _e('Thumbnail', BWG()->prefix); ?></label>
2987
- <input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="album_extended_view_type" id="album_extended_view_type_0" value="masonry" <?php if ($row->album_extended_view_type == "masonry") echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_album_extended_mosaic', 'album_extended_view_type_0'); bwg_enable_disable('none', 'tr_album_extended_resizable_mosaic', 'album_extended_view_type_0'); bwg_enable_disable('none', 'tr_album_extended_mosaic_total_width', 'album_extended_view_type_0');" /><label for="album_extended_view_type_0" class="wd-radio-label"><?php _e('Masonry', BWG()->prefix); ?></label>
2988
- <input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="album_extended_view_type" id="album_extended_view_type_2" value="mosaic" <?php if ($row->album_extended_view_type == "mosaic") echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_album_extended_mosaic', 'album_extended_view_type_2'); bwg_enable_disable('', 'tr_album_extended_resizable_mosaic', 'album_extended_view_type_2'); bwg_enable_disable('', 'tr_album_extended_mosaic_total_width', 'album_extended_view_type_2');" /><label for="album_extended_view_type_2" class="wd-radio-label"><?php _e('Mosaic', BWG()->prefix); ?></label>
2989
  </div>
2990
  <p class="description"><?php _e('Choose the display type for gallery groups, Thumbnails, Masonry or Mosaic.', BWG()->prefix); ?></p>
2991
  <?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
@@ -3027,9 +3095,9 @@ class OptionsView_bwg extends AdminView_bwg {
3027
  <div class="wd-group">
3028
  <label class="wd-label"><?php _e('Show image title', BWG()->prefix); ?></label>
3029
  <div class="bwg-flex">
3030
- <input type="radio" name="album_extended_image_title_show_hover" id="album_extended_image_title_show_hover_1" value="hover" <?php if ($row->album_extended_image_title_show_hover == "hover") echo 'checked="checked"'; ?> /><label for="album_extended_image_title_show_hover_1" class="wd-radio-label"><?php _e('Show on hover', BWG()->prefix); ?></label>
3031
- <input type="radio" name="album_extended_image_title_show_hover" id="album_extended_image_title_show_hover_0" value="show" <?php if ($row->album_extended_image_title_show_hover == "show") echo 'checked="checked"'; ?> /><label for="album_extended_image_title_show_hover_0" class="wd-radio-label"><?php _e('Always show', BWG()->prefix); ?></label>
3032
- <input type="radio" name="album_extended_image_title_show_hover" id="album_extended_image_title_show_hover_2" value="none" <?php if ($row->album_extended_image_title_show_hover == "none") echo 'checked="checked"'; ?> /><label for="album_extended_image_title_show_hover_2" class="wd-radio-label"><?php _e("Don't show", BWG()->prefix); ?></label>
3033
  </div>
3034
  <p class="description"><?php _e('Choose to show/hide titles of images, or display them on hover.', BWG()->prefix); ?></p>
3035
  </div>
@@ -3062,9 +3130,9 @@ class OptionsView_bwg extends AdminView_bwg {
3062
  <div class="wd-group">
3063
  <label class="wd-label"><?php _e('Show ecommerce icon', BWG()->prefix); ?></label>
3064
  <div class="bwg-flex">
3065
- <input type="radio" name="album_extended_ecommerce_icon_show_hover" id="album_extended_ecommerce_icon_show_hover_1" value="hover" <?php if ($row->album_extended_ecommerce_icon_show_hover == "hover") echo 'checked="checked"'; ?> /><label for="album_extended_ecommerce_icon_show_hover_1" class="wd-radio-label"><?php _e('Show on hover', BWG()->prefix); ?></label>
3066
- <input type="radio" name="album_extended_ecommerce_icon_show_hover" id="album_extended_ecommerce_icon_show_hover_0" value="show" <?php if ($row->album_extended_ecommerce_icon_show_hover == "show") echo 'checked="checked"'; ?> /><label for="album_extended_ecommerce_icon_show_hover_0" class="wd-radio-label"><?php _e('Always show', BWG()->prefix); ?></label>
3067
- <input type="radio" name="album_extended_ecommerce_icon_show_hover" id="album_extended_ecommerce_icon_show_hover_2" value="none" <?php if ($row->album_extended_ecommerce_icon_show_hover == "none") echo 'checked="checked"'; ?> /><label for="album_extended_ecommerce_icon_show_hover_2" class="wd-radio-label"><?php _e("Don't show", BWG()->prefix); ?></label>
3068
  </div>
3069
  <p class="description"><?php _e('Choose to show/hide ecommerce icon, or display them on hover.', BWG()->prefix); ?></p>
3070
  </div>
@@ -3082,6 +3150,7 @@ class OptionsView_bwg extends AdminView_bwg {
3082
  ?>
3083
  <div class="wd-box-content wd-width-100 bwg-flex-wrap">
3084
  <div class="wd-box-content wd-width-33">
 
3085
  <div class="wd-box-content wd-width-100">
3086
  <div class="wd-group">
3087
  <label class="wd-label"><?php _e('Image click action', BWG()->prefix); ?></label>
@@ -3102,6 +3171,7 @@ class OptionsView_bwg extends AdminView_bwg {
3102
  </div>
3103
  </div>
3104
  </div>
 
3105
  <div class="wd-box-content wd-width-100 bwg-lightbox bwg-lightbox-lightbox" id="tr_popup_full_width">
3106
  <div class="wd-group">
3107
  <label class="wd-label"><?php _e('Full-width lightbox', BWG()->prefix); ?></label>
108
  <?php
109
  }
110
  ?>
111
+ <div class="wd-box-content wd-width-100">
112
+ <div class="wd-group">
113
+ <label class="wd-label"><?php _e('Image click action', BWG()->prefix); ?></label>
114
+ <div class="bwg-flex">
115
+ <input type="radio" name="thumb_click_action" id="thumb_click_action_1" value="open_lightbox" <?php if ($row->thumb_click_action == 'open_lightbox') echo 'checked="checked"'; ?> onClick="bwg_thumb_click_action();" /><label for="thumb_click_action_1" class="wd-radio-label"><?php _e('Open lightbox', BWG()->prefix); ?></label>
116
+ <input type="radio" name="thumb_click_action" id="thumb_click_action_2" value="redirect_to_url" <?php if ($row->thumb_click_action == 'redirect_to_url') echo 'checked="checked"'; ?> onClick="bwg_thumb_click_action();" /><label for="thumb_click_action_2" class="wd-radio-label"><?php _e('Redirect to url', BWG()->prefix); ?></label>
117
+ <input type="radio" name="thumb_click_action" id="thumb_click_action_3" value="do_nothing" <?php if ($row->thumb_click_action == 'do_nothing') echo 'checked="checked"'; ?> onClick="bwg_thumb_click_action();" /><label for="thumb_click_action_3" class="wd-radio-label"><?php _e('Do Nothing', BWG()->prefix); ?></label>
118
+ </div>
119
+ <p class="description"><?php _e('Select the action which runs after clicking on gallery thumbnails.', BWG()->prefix); ?></p>
120
+ </div>
121
+ <div class="wd-box-content wd-width-100 bwg-lightbox bwg-lightbox-redirect" id="tr_thumb_link_target">
122
+ <div class="wd-group">
123
+ <label class="wd-label"><?php _e('Open in a new window', BWG()->prefix); ?></label>
124
+ <div class="bwg-flex">
125
+ <input type="radio" name="thumb_link_target" id="thumb_link_target_yes" value="1" <?php if ($row->thumb_link_target) echo 'checked="checked"'; ?> /><label for="thumb_link_target_yes" class="wd-radio-label"><?php _e('Yes', BWG()->prefix); ?></label>
126
+ <input type="radio" name="thumb_link_target" id="thumb_link_target_no" value="0" <?php if (!$row->thumb_link_target) echo 'checked="checked"'; ?> /><label for="thumb_link_target_no" class="wd-radio-label"><?php _e('No', BWG()->prefix); ?></label>
127
+ </div>
128
+ </div>
129
+ </div>
130
+ </div>
131
  <div class="wd-box-content wd-width-100">
132
  <div class="wd-group">
133
  <label class="wd-label" for="upload_img_width"><?php _e('Image dimensions', BWG()->prefix); ?></label>
977
  bwg_enable_disable(<?php echo $row->album_view_type == 'mosaic' ? "'', 'tr_album_mosaic', 'album_view_type_2'" : "'none', 'tr_album_mosaic', 'album_view_type_" . $row->album_view_type . "'"; ?>);
978
  bwg_enable_disable(<?php echo $row->album_view_type == 'mosaic' ? "'', 'tr_album_resizable_mosaic', 'album_view_type_2'" : "'none', 'tr_album_resizable_mosaic', 'album_view_type_" . $row->album_view_type . "'"; ?>);
979
  bwg_enable_disable(<?php echo $row->album_view_type == 'mosaic' ? "'', 'tr_album_mosaic_total_width', 'album_view_type_2'" : "'none', 'tr_album_mosaic_total_width', 'album_view_type_" . $row->album_view_type . "'"; ?>);
980
+ bwg_enable_disable(<?php echo $row->album_view_type == 'mosaic' ? "'none', 'for_album_image_title_show_hover_0', 'album_view_type_2'" : "'', 'for_album_image_title_show_hover_0', 'album_view_type_" . $row->album_view_type . "'"; ?>);
981
+ bwg_enable_disable(<?php echo $row->album_view_type == 'mosaic' ? "'none', 'for_album_ecommerce_icon_show_hover_0', 'album_view_type_2'" : "'', 'for_album_ecommerce_icon_show_hover_0', 'album_view_type_" . $row->album_view_type . "'"; ?>);
982
  bwg_enable_disable(<?php echo $row->album_extended_view_type == 'mosaic' ? "'', 'tr_album_extended_mosaic', 'album_extended_view_type_2'" : "'none', 'tr_album_extended_mosaic', 'album_extended_view_type_" . $row->album_extended_view_type . "'"; ?>);
983
  bwg_enable_disable(<?php echo $row->album_extended_view_type == 'mosaic' ? "'', 'tr_album_extended_resizable_mosaic', 'album_extended_view_type_2'" : "'none', 'tr_album_extended_resizable_mosaic', 'album_extended_view_type_" . $row->album_extended_view_type . "'"; ?>);
984
  bwg_enable_disable(<?php echo $row->album_extended_view_type == 'mosaic' ? "'', 'tr_album_extended_mosaic_total_width', 'album_extended_view_type_2'" : "'none', 'tr_album_extended_mosaic_total_width', 'album_extended_view_type_" . $row->album_extended_view_type . "'"; ?>);
985
+ bwg_enable_disable(<?php echo $row->album_extended_view_type == 'mosaic' ? "'none', 'for_album_extended_image_title_show_hover_0', 'album_extended_view_type_2'" : "'', 'for_album_extended_image_title_show_hover_0', 'album_extended_view_type_" . $row->album_extended_view_type . "'"; ?>);
986
+ bwg_enable_disable(<?php echo $row->album_extended_view_type == 'mosaic' ? "'none', 'for_album_extended_ecommerce_icon_show_hover_0', 'album_extended_view_type_2'" : "'', 'for_album_extended_ecommerce_icon_show_hover_0', 'album_extended_view_type_" . $row->album_extended_view_type . "'"; ?>);
987
+ bwg_enable_disable(<?php echo $row->masonry == 'horizontal' ? "'none', 'bwg-vertical-block-masonry', 'masonry_1'" : "'', 'bwg-vertical-block-masonry', 'masonry_0'"; ?>);
988
  preview_watermark();
989
  preview_built_in_watermark();
990
  bwg_show_hide_roles();
1231
  </div>
1232
  <div id="thumbnails_masonry_options" class="bwg-pro-views gallery_options wd-box-content wd-width-100 bwg-flex-wrap">
1233
  <div class="wd-box-content wd-width-33">
1234
+ <?php /*
1235
  <div class="wd-box-content wd-width-100">
1236
  <div class="wd-group">
1237
  <label class="wd-label"><?php _e('Masonry type', BWG()->prefix); ?></label>
1238
  <div class="bwg-flex">
1239
+ <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', BWG()->prefix); ?></label>
1240
+ <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', BWG()->prefix); ?></label>
1241
  </div>
1242
  <p class="description"><?php _e('Select the type of Masonry galleries, Vertical or Horizontal.', BWG()->prefix); ?></p>
1243
  <?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
1244
  </div>
1245
  </div>
1246
+ */
1247
+ ?>
1248
+ <div class="wd-box-content wd-width-100">
1249
  <div class="wd-group">
1250
  <label class="wd-label" for="masonry_thumb_size"><?php _e('Thumbnail size', BWG()->prefix); ?></label>
1251
  <div class="bwg-flex">
1391
  <p class="description"><?php _e('Display the descriptions of your galleries by activating this option.', BWG()->prefix); ?></p>
1392
  </div>
1393
  </div>
1394
+ <div class="wd-box-content wd-width-100 bwg-vertical-block-masonry">
1395
+ <div class="wd-group">
1396
+ <label class="wd-label"><?php _e('Show image title in Vertical Masonry', BWG()->prefix); ?></label>
1397
+ <div class="bwg-flex">
1398
+ <input type="radio" name="masonry_image_title" id="masonry_image_title_0" value="hover" <?php if ($row->masonry_image_title == "hover") echo 'checked="checked"'; ?> /><label for="masonry_image_title_0" class="wd-radio-label"><?php _e('Show on hover', BWG()->prefix); ?></label>
1399
+ <input type="radio" name="masonry_image_title" id="masonry_image_title_1" value="show" <?php if ($row->masonry_image_title == "show") echo 'checked="checked"'; ?> /><label for="masonry_image_title_1" class="wd-radio-label"><?php _e('Always show', BWG()->prefix); ?></label>
1400
+ <input type="radio" name="masonry_image_title" id="masonry_image_title_2" value="none" <?php if ($row->masonry_image_title == "none") echo 'checked="checked"'; ?> /><label for="masonry_image_title_2" class="wd-radio-label"><?php _e("Don't show", BWG()->prefix); ?></label>
1401
+ </div>
1402
+ <p class="description"><?php _e('Choose to show/hide titles of images, or display them on hover.', BWG()->prefix); ?></p>
1403
+ </div>
1404
+ </div>
1405
+ <div class="wd-box-content wd-width-100 bwg-vertical-block-masonry" id="tr_show_masonry_thumb_description">
1406
  <div class="wd-group">
1407
  <label class="wd-label"><?php _e('Show image descriptions in Vertical Masonry', BWG()->prefix); ?></label>
1408
  <div class="bwg-flex">
1627
  <label class="wd-label"><?php _e('Show image title', BWG()->prefix); ?></label>
1628
  <div class="bwg-flex">
1629
  <input type="radio" name="mosaic_image_title_show_hover" id="mosaic_image_title_show_hover_1" value="hover" <?php if ($row->mosaic_image_title_show_hover == "hover") echo 'checked="checked"'; ?> /><label for="mosaic_image_title_show_hover_1" class="wd-radio-label"><?php _e('Show on hover', BWG()->prefix); ?></label>
1630
+ <input type="radio" name="mosaic_image_title_show_hover" id="mosaic_image_title_show_hover_0" value="none" <?php if ($row->mosaic_image_title_show_hover == "none") echo 'checked="checked"'; ?> /><label for="mosaic_image_title_show_hover_0" class="wd-radio-label"><?php _e("Don't show", BWG()->prefix); ?></label>
 
1631
  </div>
1632
  <p class="description"><?php _e('Choose to show/hide titles of images, or display them on hover.', BWG()->prefix); ?></p>
1633
  </div>
2007
  </div>
2008
  </div>
2009
  </div>
2010
+ <div class="wd-box-content wd-width-100">
2011
+ <div class="wd-group">
2012
+ <label class="wd-label"><?php _e('Show "Order by" dropdown list', BWG()->prefix); ?></label>
2013
+ <div class="bwg-flex">
2014
+ <input type="radio" name="image_browser_show_sort_images" id="image_browser_show_sort_images_1" value="1" <?php if ($row->image_browser_show_sort_images) echo 'checked="checked"'; ?> /><label for="image_browser_show_sort_images_1" class="wd-radio-label"><?php _e('Yes', BWG()->prefix); ?></label>
2015
+ <input type="radio" name="image_browser_show_sort_images" id="image_browser_show_sort_images_0" value="0" <?php if (!$row->image_browser_show_sort_images) echo 'checked="checked"'; ?> /><label for="image_browser_show_sort_images_0" class="wd-radio-label"><?php _e('No', BWG()->prefix); ?></label>
2016
+ </div>
2017
+ <p class="description"><?php _e('Activate this dropdown box to let users browse your gallery images with different ordering options.', BWG()->prefix); ?></p>
2018
+ </div>
2019
+ </div>
2020
+ <div class="wd-box-content wd-width-100">
2021
+ <div class="wd-group">
2022
+ <label class="wd-label"><?php _e('Show tag box', BWG()->prefix); ?></label>
2023
+ <div class="bwg-flex">
2024
+ <input type="radio" name="image_browser_show_tag_box" id="image_browser_show_tag_box_1" value="1" <?php if ($row->image_browser_show_tag_box) echo 'checked="checked"'; ?> /><label for="image_browser_show_tag_box_1" class="wd-radio-label"><?php _e('Yes', BWG()->prefix); ?></label>
2025
+ <input type="radio" name="image_browser_show_tag_box" id="image_browser_show_tag_box_0" value="0" <?php if (!$row->image_browser_show_tag_box) echo 'checked="checked"'; ?> /><label for="image_browser_show_tag_box_0" class="wd-radio-label"><?php _e('No', BWG()->prefix); ?></label>
2026
+ </div>
2027
+ <p class="description"><?php _e('Enable Tag Box to allow users to filter the gallery images by their tags.', BWG()->prefix); ?></p>
2028
+ </div>
2029
+ </div>
2030
  </div>
2031
  <div class="wd-box-content wd-width-33">
2032
  <div class="wd-box-content wd-width-100">
2244
  <div class="wd-group">
2245
  <label class="wd-label" for="carousel_image_column_number"><?php _e('Max. number of images', BWG()->prefix); ?></label>
2246
  <div class="bwg-flex">
2247
+ <input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="number" name="carousel_image_column_number" id="carousel_image_column_number" value="<?php echo $row->carousel_image_column_number; ?>" min="0" />
2248
  </div>
2249
  <p class="description"><?php _e('Set the maximum number of images that are shown with Carousel display.', BWG()->prefix); ?></p>
2250
  <?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
2263
  </div>
2264
  <div class="wd-box-content wd-width-100">
2265
  <div class="wd-group">
2266
+ <label class="wd-label" for="carousel_image_par"><?php _e('Carousel ratio', BWG()->prefix); ?></label>
2267
  <div class="bwg-flex">
2268
  <input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="number" name="carousel_image_par" id="carousel_image_par" value="<?php echo $row->carousel_image_par; ?>" min="0" max="1" step="0.01" />
2269
  </div>
2270
+ <p class="description"><?php _e('This option defines the proportion of dimensions between neighboring images in the carousel.', BWG()->prefix); ?></p>
2271
  <?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
2272
  </div>
2273
  </div>
2574
  <div class="wd-group">
2575
  <label class="wd-label"><?php _e('Gallery view type', BWG()->prefix); ?></label>
2576
  <div class="bwg-flex">
2577
+ <input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="album_view_type" id="album_view_type_1" value="thumbnail" <?php if ($row->album_view_type == "thumbnail") echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_album_mosaic', 'album_view_type_1'); bwg_enable_disable('none', 'tr_album_resizable_mosaic', 'album_view_type_1'); bwg_enable_disable('none', 'tr_album_mosaic_total_width', 'album_view_type_1');bwg_enable_disable('', 'for_album_image_title_show_hover_0', 'album_view_type_1');bwg_enable_disable('', 'for_album_ecommerce_icon_show_hover_0', 'album_view_type_1');" /><label for="album_view_type_1" class="wd-radio-label"><?php _e('Thumbnail', BWG()->prefix); ?></label>
2578
+ <input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="album_view_type" id="album_view_type_0" value="masonry" <?php if ($row->album_view_type == "masonry") echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_album_mosaic', 'album_view_type_0'); bwg_enable_disable('none', 'tr_album_resizable_mosaic', 'album_view_type_0'); bwg_enable_disable('none', 'tr_album_mosaic_total_width', 'album_view_type_0');bwg_enable_disable('', 'for_album_image_title_show_hover_0', 'album_view_type_0');bwg_enable_disable('', 'for_album_ecommerce_icon_show_hover_0', 'album_view_type_0');" /><label for="album_view_type_0" class="wd-radio-label"><?php _e('Masonry', BWG()->prefix); ?></label>
2579
+ <input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="album_view_type" id="album_view_type_2" value="mosaic" <?php if ($row->album_view_type == "mosaic") echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_album_mosaic', 'album_view_type_2'); bwg_enable_disable('', 'tr_album_resizable_mosaic', 'album_view_type_2'); bwg_enable_disable('', 'tr_album_mosaic_total_width', 'album_view_type_2');bwg_enable_disable('none', 'for_album_image_title_show_hover_0', 'album_view_type_2');bwg_enable_disable('none', 'for_album_ecommerce_icon_show_hover_0', 'album_view_type_2');" /><label for="album_view_type_2" class="wd-radio-label"><?php _e('Mosaic', BWG()->prefix); ?></label>
2580
  </div>
2581
  <p class="description"><?php _e('Choose the display type for gallery groups, Thumbnails, Masonry or Mosaic.', BWG()->prefix); ?></p>
2582
  <?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
2618
  <div class="wd-group">
2619
  <label class="wd-label"><?php _e('Show image title', BWG()->prefix); ?></label>
2620
  <div class="bwg-flex">
2621
+ <label for="album_image_title_show_hover_1" class="wd-radio-label"><input type="radio" name="album_image_title_show_hover" id="album_image_title_show_hover_1" value="hover" <?php if ($row->album_image_title_show_hover == "hover") echo 'checked="checked"'; ?> /><?php _e('Show on hover', BWG()->prefix); ?></label>
2622
+ <label id="for_album_image_title_show_hover_0" for="album_image_title_show_hover_0" class="wd-radio-label"><input type="radio" name="album_image_title_show_hover" id="album_image_title_show_hover_0" value="show" <?php if ($row->album_image_title_show_hover == "show") echo 'checked="checked"'; ?> /><?php _e('Always show', BWG()->prefix); ?></label>
2623
+ <label for="album_image_title_show_hover_2" class="wd-radio-label"><input type="radio" name="album_image_title_show_hover" id="album_image_title_show_hover_2" value="none" <?php if ($row->album_image_title_show_hover == "none") echo 'checked="checked"'; ?> /><?php _e("Don't show", BWG()->prefix); ?></label>
2624
  </div>
2625
  <p class="description"><?php _e('Choose to show/hide titles of images, or display them on hover.', BWG()->prefix); ?></p>
2626
  </div>
2653
  <div class="wd-group">
2654
  <label class="wd-label"><?php _e('Show ecommerce icon', BWG()->prefix); ?></label>
2655
  <div class="bwg-flex">
2656
+ <label for="album_ecommerce_icon_show_hover_1" class="wd-radio-label"><input type="radio" name="album_ecommerce_icon_show_hover" id="album_ecommerce_icon_show_hover_1" value="hover" <?php if ($row->album_ecommerce_icon_show_hover == "hover") echo 'checked="checked"'; ?> /><?php _e('Show on hover', BWG()->prefix); ?></label>
2657
+ <label id="for_album_ecommerce_icon_show_hover_0" for="album_ecommerce_icon_show_hover_0" class="wd-radio-label"><input type="radio" name="album_ecommerce_icon_show_hover" id="album_ecommerce_icon_show_hover_0" value="show" <?php if ($row->album_ecommerce_icon_show_hover == "show") echo 'checked="checked"'; ?> /><?php _e('Always show', BWG()->prefix); ?></label>
2658
+ <label for="album_ecommerce_icon_show_hover_2" class="wd-radio-label"><input type="radio" name="album_ecommerce_icon_show_hover" id="album_ecommerce_icon_show_hover_2" value="none" <?php if ($row->album_ecommerce_icon_show_hover == "none") echo 'checked="checked"'; ?> /><?php _e("Don't show", BWG()->prefix); ?></label>
2659
  </div>
2660
  <p class="description"><?php _e('Choose to show/hide ecommerce icon, or display them on hover.', BWG()->prefix); ?></p>
2661
  </div>
2830
  <p class="description"><?php _e('Display the description of displayed gallery or gallery group by enabling this setting.', BWG()->prefix); ?></p>
2831
  </div>
2832
  </div>
2833
+ <div class="wd-box-content wd-width-100">
2834
+ <div class="wd-group">
2835
+ <label class="wd-label"><?php _e('Show image title', BWG()->prefix); ?></label>
2836
+ <div class="bwg-flex">
2837
+ <input type="radio" name="album_masonry_image_title" id="album_masonry_image_title_0" value="hover" <?php if ($row->album_masonry_image_title == "hover") echo 'checked="checked"'; ?> /><label for="album_masonry_image_title_0" class="wd-radio-label"><?php _e('Show on hover', BWG()->prefix); ?></label>
2838
+ <input type="radio" name="album_masonry_image_title" id="album_masonry_image_title_1" value="show" <?php if ($row->album_masonry_image_title == "show") echo 'checked="checked"'; ?> /><label for="album_masonry_image_title_1" class="wd-radio-label"><?php _e('Always show', BWG()->prefix); ?></label>
2839
+ <input type="radio" name="album_masonry_image_title" id="album_masonry_image_title_2" value="none" <?php if ($row->album_masonry_image_title == "none") echo 'checked="checked"'; ?> /><label for="album_masonry_image_title_2" class="wd-radio-label"><?php _e("Don't show", BWG()->prefix); ?></label>
2840
+ </div>
2841
+ <p class="description"><?php _e('Choose to show/hide titles of images, or display them on hover.', BWG()->prefix); ?></p>
2842
+ </div>
2843
+ </div>
2844
  <div class="wd-box-content wd-width-100">
2845
  <div class="wd-group">
2846
  <label class="wd-label"><?php _e('Enable bulk download button', BWG()->prefix); ?></label>
3029
  </div>
3030
  <div class="wd-box-content wd-width-100">
3031
  <div class="wd-group">
3032
+ <label class="wd-label"><?php _e('Show gallery group or gallery description', BWG()->prefix); ?></label>
3033
  <div class="bwg-flex">
3034
+ <input type="radio" name="album_extended_show_gallery_description" id="album_extended_show_gallery_description_1" value="1" <?php if ($row->album_extended_show_gallery_description) echo 'checked="checked"'; ?> /><label for="album_extended_show_gallery_description_1" class="wd-radio-label"><?php _e('Yes', BWG()->prefix); ?></label>
3035
+ <input type="radio" name="album_extended_show_gallery_description" id="album_extended_show_gallery_description_0" value="0" <?php if (!$row->album_extended_show_gallery_description) echo 'checked="checked"'; ?> /><label for="album_extended_show_gallery_description_0" class="wd-radio-label"><?php _e('No', BWG()->prefix); ?></label>
3036
  </div>
3037
+ <p class="description"><?php _e('Display the description of displayed gallery or gallery group by enabling this setting.', BWG()->prefix); ?></p>
3038
  </div>
3039
  </div>
3040
  <div class="wd-box-content wd-width-100">
3041
  <div class="wd-group">
3042
+ <label class="wd-label"><?php _e('Show extended gallery group description', BWG()->prefix); ?></label>
3043
  <div class="bwg-flex">
3044
+ <input type="radio" name="extended_album_description_enable" id="extended_album_description_enable_1" value="1" <?php if ($row->extended_album_description_enable) echo 'checked="checked"'; ?> /><label for="extended_album_description_enable_1" class="wd-radio-label"><?php _e('Yes', BWG()->prefix); ?></label>
3045
+ <input type="radio" name="extended_album_description_enable" id="extended_album_description_enable_0" value="0" <?php if (!$row->extended_album_description_enable) echo 'checked="checked"'; ?> /><label for="extended_album_description_enable_0" class="wd-radio-label"><?php _e('No', BWG()->prefix); ?></label>
3046
  </div>
3047
+ <p class="description"><?php _e('Enable this option to show descriptions of galleries/gallery groups in Extended view.', BWG()->prefix); ?></p>
3048
  </div>
3049
  </div>
3050
  <div class="wd-box-content wd-width-100">
3051
  <div class="wd-group">
3052
  <label class="wd-label"><?php _e('Gallery view type', BWG()->prefix); ?></label>
3053
  <div class="bwg-flex">
3054
+ <input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="album_extended_view_type" id="album_extended_view_type_1" value="thumbnail" <?php if ($row->album_extended_view_type == "thumbnail") echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_album_extended_mosaic', 'album_extended_view_type_1'); bwg_enable_disable('none', 'tr_album_extended_resizable_mosaic', 'album_extended_view_type_1'); bwg_enable_disable('none', 'tr_album_extended_mosaic_total_width', 'album_extended_view_type_1');bwg_enable_disable('', 'for_album_extended_image_title_show_hover_0', 'album_extended_view_type_1');bwg_enable_disable('', 'for_album_extended_ecommerce_icon_show_hover_0', 'album_extended_view_type_1');" /><label for="album_extended_view_type_1" class="wd-radio-label"><?php _e('Thumbnail', BWG()->prefix); ?></label>
3055
+ <input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="album_extended_view_type" id="album_extended_view_type_0" value="masonry" <?php if ($row->album_extended_view_type == "masonry") echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_album_extended_mosaic', 'album_extended_view_type_0'); bwg_enable_disable('none', 'tr_album_extended_resizable_mosaic', 'album_extended_view_type_0'); bwg_enable_disable('none', 'tr_album_extended_mosaic_total_width', 'album_extended_view_type_0');bwg_enable_disable('', 'for_album_extended_image_title_show_hover_0', 'album_extended_view_type_0');bwg_enable_disable('', 'for_album_extended_ecommerce_icon_show_hover_0', 'album_extended_view_type_0');" /><label for="album_extended_view_type_0" class="wd-radio-label"><?php _e('Masonry', BWG()->prefix); ?></label>
3056
+ <input <?php echo BWG()->is_pro ? '' : 'disabled="disabled"'; ?> type="radio" name="album_extended_view_type" id="album_extended_view_type_2" value="mosaic" <?php if ($row->album_extended_view_type == "mosaic") echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_album_extended_mosaic', 'album_extended_view_type_2'); bwg_enable_disable('', 'tr_album_extended_resizable_mosaic', 'album_extended_view_type_2'); bwg_enable_disable('', 'tr_album_extended_mosaic_total_width', 'album_extended_view_type_2');bwg_enable_disable('none', 'for_album_extended_image_title_show_hover_0', 'album_extended_view_type_2');bwg_enable_disable('none', 'for_album_extended_ecommerce_icon_show_hover_0', 'album_extended_view_type_2');" /><label for="album_extended_view_type_2" class="wd-radio-label"><?php _e('Mosaic', BWG()->prefix); ?></label>
3057
  </div>
3058
  <p class="description"><?php _e('Choose the display type for gallery groups, Thumbnails, Masonry or Mosaic.', BWG()->prefix); ?></p>
3059
  <?php if ( !BWG()->is_pro ) { ?><p class="description spider_free_version"><?php echo BWG()->free_msg; ?></p><?php } ?>
3095
  <div class="wd-group">
3096
  <label class="wd-label"><?php _e('Show image title', BWG()->prefix); ?></label>
3097
  <div class="bwg-flex">
3098
+ <label for="album_extended_image_title_show_hover_1" class="wd-radio-label"><input type="radio" name="album_extended_image_title_show_hover" id="album_extended_image_title_show_hover_1" value="hover" <?php if ($row->album_extended_image_title_show_hover == "hover") echo 'checked="checked"'; ?> /><?php _e('Show on hover', BWG()->prefix); ?></label>
3099
+ <label id="for_album_extended_image_title_show_hover_0" for="album_extended_image_title_show_hover_0" class="wd-radio-label"><input type="radio" name="album_extended_image_title_show_hover" id="album_extended_image_title_show_hover_0" value="show" <?php if ($row->album_extended_image_title_show_hover == "show") echo 'checked="checked"'; ?> /><?php _e('Always show', BWG()->prefix); ?></label>
3100
+ <label for="album_extended_image_title_show_hover_2" class="wd-radio-label"><input type="radio" name="album_extended_image_title_show_hover" id="album_extended_image_title_show_hover_2" value="none" <?php if ($row->album_extended_image_title_show_hover == "none") echo 'checked="checked"'; ?> /><?php _e("Don't show", BWG()->prefix); ?></label>
3101
  </div>
3102
  <p class="description"><?php _e('Choose to show/hide titles of images, or display them on hover.', BWG()->prefix); ?></p>
3103
  </div>
3130
  <div class="wd-group">
3131
  <label class="wd-label"><?php _e('Show ecommerce icon', BWG()->prefix); ?></label>
3132
  <div class="bwg-flex">
3133
+ <label for="album_extended_ecommerce_icon_show_hover_1" class="wd-radio-label"><input type="radio" name="album_extended_ecommerce_icon_show_hover" id="album_extended_ecommerce_icon_show_hover_1" value="hover" <?php if ($row->album_extended_ecommerce_icon_show_hover == "hover") echo 'checked="checked"'; ?> /><?php _e('Show on hover', BWG()->prefix); ?></label>
3134
+ <label id="for_album_extended_ecommerce_icon_show_hover_0" for="album_extended_ecommerce_icon_show_hover_0" class="wd-radio-label"><input type="radio" name="album_extended_ecommerce_icon_show_hover" id="album_extended_ecommerce_icon_show_hover_0" value="show" <?php if ($row->album_extended_ecommerce_icon_show_hover == "show") echo 'checked="checked"'; ?> /><?php _e('Always show', BWG()->prefix); ?></label>
3135
+ <label for="album_extended_ecommerce_icon_show_hover_2" class="wd-radio-label"><input type="radio" name="album_extended_ecommerce_icon_show_hover" id="album_extended_ecommerce_icon_show_hover_2" value="none" <?php if ($row->album_extended_ecommerce_icon_show_hover == "none") echo 'checked="checked"'; ?> /><?php _e("Don't show", BWG()->prefix); ?></label>
3136
  </div>
3137
  <p class="description"><?php _e('Choose to show/hide ecommerce icon, or display them on hover.', BWG()->prefix); ?></p>
3138
  </div>
3150
  ?>
3151
  <div class="wd-box-content wd-width-100 bwg-flex-wrap">
3152
  <div class="wd-box-content wd-width-33">
3153
+ <?php if( !isset($row->lightbox_shortcode) ) { ?>
3154
  <div class="wd-box-content wd-width-100">
3155
  <div class="wd-group">
3156
  <label class="wd-label"><?php _e('Image click action', BWG()->prefix); ?></label>
3171
  </div>
3172
  </div>
3173
  </div>
3174
+ <?php } ?>
3175
  <div class="wd-box-content wd-width-100 bwg-lightbox bwg-lightbox-lightbox" id="tr_popup_full_width">
3176
  <div class="wd-group">
3177
  <label class="wd-label"><?php _e('Full-width lightbox', BWG()->prefix); ?></label>
admin/views/Shortcode.php CHANGED
@@ -19,11 +19,6 @@ class ShortcodeView_bwg extends AdminView_bwg {
19
  wp_enqueue_script('jquery-ui-tabs');
20
  }
21
  require_once BWG()->plugin_dir . '/admin/views/Options.php';
22
- // Close shortcode editor after insert.
23
- if ( isset($_POST['tagtext']) ) {
24
- echo '<script>if (top.tinyMCE.activeEditor) {top.tinyMCE.activeEditor.windowManager.close(window);}top.tb_remove();</script>';
25
- wp_die();
26
- }
27
  ob_start();
28
  echo $this->body($params);
29
  // Pass the content to form.
@@ -191,11 +186,10 @@ class ShortcodeView_bwg extends AdminView_bwg {
191
  <label class="wd-label" for="gallery"><?php _e('Gallery', BWG()->prefix); ?></label>
192
  <div>
193
  <select name="gallery" id="gallery">
194
- <option value="0"><?php _e('All images', BWG()->prefix); ?></option>
195
  <?php
196
- foreach ( $gallery_rows as $gallery_row ) {
197
  ?>
198
- <option value="<?php echo $gallery_row->id; ?>"><?php echo $gallery_row->name; ?></option>
199
  <?php
200
  }
201
  ?>
@@ -207,11 +201,10 @@ class ShortcodeView_bwg extends AdminView_bwg {
207
  <label class="wd-label" for="album"><?php _e('Gallery Group', BWG()->prefix); ?></label>
208
  <div>
209
  <select name="album" id="album">
210
- <option value="0" selected="selected"><?php _e('All Galleries', BWG()->prefix); ?></option>
211
  <?php
212
- foreach ( $album_rows as $album_row ) {
213
  ?>
214
- <option value="<?php echo $album_row->id; ?>"><?php echo $album_row->name; ?></option>
215
  <?php
216
  }
217
  ?>
@@ -225,11 +218,10 @@ class ShortcodeView_bwg extends AdminView_bwg {
225
  <label class="wd-label" for="tag"><?php _e('Tag', BWG()->prefix); ?></label>
226
  <div>
227
  <select name="tag" id="tag">
228
- <option value="0"><?php _e('All Tags', BWG()->prefix); ?></option>
229
  <?php
230
- foreach ( $tag_rows as $tag_row ) {
231
  ?>
232
- <option value="<?php echo $tag_row->term_id; ?>"><?php echo $tag_row->name; ?></option>
233
  <?php
234
  }
235
  ?>
@@ -244,9 +236,9 @@ class ShortcodeView_bwg extends AdminView_bwg {
244
  <div>
245
  <select name="theme" id="theme">
246
  <?php
247
- foreach ( $theme_rows as $theme_row ) {
248
  ?>
249
- <option value="<?php echo $theme_row->id; ?>"><?php echo $theme_row->name; ?></option>
250
  <?php
251
  }
252
  ?>
@@ -284,7 +276,7 @@ class ShortcodeView_bwg extends AdminView_bwg {
284
  <span class="toggle-indicator" aria-hidden="false"></span>
285
  </button>
286
  <h2 class="hndle">
287
- <span><?php _e('Lightbox', BWG()->prefix); ?></span>
288
  </h2>
289
  <div class="inside">
290
  <?php
@@ -530,7 +522,7 @@ class ShortcodeView_bwg extends AdminView_bwg {
530
  }
531
  elseif (!$from_menu) { ?>
532
  var content;
533
- if (top.tinyMCE.activeEditor && top.tinyMCE.activeEditor.selection) {
534
  content = top.tinyMCE.activeEditor.selection.getContent();
535
  }
536
  else {
@@ -706,12 +698,21 @@ class ShortcodeView_bwg extends AdminView_bwg {
706
  jQuery('.masonry_row_num').hide();
707
  jQuery('.masonry_col_num').show();
708
  }
709
- if (short_code['show_masonry_thumb_description'] == 1) {
710
- jQuery("#masonry_thumb_desc_1").attr('checked', 'checked');
711
- }
712
- else {
713
- jQuery("#masonry_thumb_desc_0").attr('checked', 'checked');
714
- }
 
 
 
 
 
 
 
 
 
715
  jQuery("#masonry_image_column_number").val(short_code['image_column_number']);
716
  if (short_code['image_enable_page'] == 1) {
717
  jQuery("#masonry_image_enable_page_1").attr('checked', 'checked');
@@ -1006,6 +1007,19 @@ class ShortcodeView_bwg extends AdminView_bwg {
1006
  if (short_code['show_search_box']) {
1007
  jQuery("#image_browser_show_search_box_" + short_code['show_search_box']).attr('checked', 'checked');
1008
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
1009
  if (short_code['placeholder']) {
1010
  jQuery("#image_browser_placeholder").val(short_code['placeholder']);
1011
  }
@@ -1209,14 +1223,20 @@ class ShortcodeView_bwg extends AdminView_bwg {
1209
  jQuery("input[name=album_title_show_hover][value=" + short_code['compuct_album_title'] + "]").attr('checked', 'checked');
1210
  if (short_code['compuct_album_view_type'] == 'thumbnail') {
1211
  jQuery("#album_view_type_1").attr('checked', 'checked');
 
 
1212
  }
1213
  else if (short_code['compuct_album_view_type'] == 'masonry') {
1214
  jQuery("#album_view_type_0").attr('checked', 'checked');
 
 
1215
  }
1216
  else {
1217
  jQuery("#album_view_type_2").attr('checked', 'checked');
 
 
1218
  }
1219
- jQuery("input[name=album_image_title_show_hover][value=" + short_code['compuct_album_image_title'] + "]").attr('checked', 'checked');
1220
  if (short_code['compuct_album_mosaic_hor_ver'] == "vertical") {
1221
  jQuery("#album_mosaic_0").attr('checked', 'checked');
1222
  }
@@ -1306,6 +1326,7 @@ class ShortcodeView_bwg extends AdminView_bwg {
1306
  else {
1307
  jQuery("#album_masonry_show_gallery_description_0").attr('checked', 'checked');
1308
  }
 
1309
  if (short_code['gallery_download'] == 1) {
1310
  jQuery("#album_masonry_gallery_download_1").attr('checked', 'checked');
1311
  }
@@ -1383,14 +1404,20 @@ class ShortcodeView_bwg extends AdminView_bwg {
1383
  }
1384
  if (short_code['extended_album_view_type'] == 'thumbnail') {
1385
  jQuery("#album_extended_view_type_1").attr('checked', 'checked');
 
 
1386
  }
1387
  else if (short_code['extended_album_view_type'] == 'masonry') {
1388
  jQuery("#album_extended_view_type_0").attr('checked', 'checked');
 
 
1389
  }
1390
  else {
1391
  jQuery("#album_extended_view_type_2").attr('checked', 'checked');
 
 
1392
  }
1393
- jQuery("#album_extended_image_title_show_hover_" + short_code['extended_album_image_title']).attr('checked', 'checked');
1394
  if (short_code['extended_album_mosaic_hor_ver'] == "vertical") {
1395
  jQuery("#album_extended_mosaic_0").attr('checked', 'checked');
1396
  }
@@ -1700,7 +1727,7 @@ class ShortcodeView_bwg extends AdminView_bwg {
1700
  }
1701
  elseif (!$from_menu) { ?>
1702
  var selected_text;
1703
- if (top.tinyMCE.activeEditor && top.tinyMCE.activeEditor.selection) {
1704
  selected_text = top.tinyMCE.activeEditor.selection.getContent();
1705
  }
1706
  else {
@@ -1803,7 +1830,8 @@ class ShortcodeView_bwg extends AdminView_bwg {
1803
  tagtext += ' show_sort_images="' + jQuery("input[name=masonry_show_sort_images]:checked").val() + '"';
1804
  tagtext += ' show_tag_box="' + jQuery("input[name=masonry_show_tag_box]:checked").val() + '"';
1805
  tagtext += ' showthumbs_name="' + jQuery("input[name=masonry_show_gallery_title]:checked").val() + '"';
1806
- tagtext += ' show_gallery_description="' + jQuery("input[name=masonry_show_gallery_description]:checked").val() + '"';
 
1807
  tagtext += ' play_icon="' + jQuery("input[name=masonry_play_icon]:checked").val() + '"';
1808
  tagtext += ' gallery_download="' + jQuery("input[name=masonry_gallery_download]:checked").val() + '"';
1809
  tagtext += ' ecommerce_icon="' + jQuery("input[name=masonry_ecommerce_icon_show_hover]:checked").val() + '"';
@@ -1877,6 +1905,8 @@ class ShortcodeView_bwg extends AdminView_bwg {
1877
  tagtext += ' showthumbs_name="' + jQuery("input[name=image_browser_show_gallery_title]:checked").val() + '"';
1878
  tagtext += ' show_gallery_description="' + jQuery("input[name=image_browser_show_gallery_description]:checked").val() + '"';
1879
  tagtext += ' show_search_box="' + jQuery("input[name=image_browser_show_search_box]:checked").val() + '"';
 
 
1880
  tagtext += ' placeholder="' + jQuery("#image_browser_placeholder").val() + '"';
1881
  tagtext += ' search_box_width="' + jQuery("#image_browser_search_box_width").val() + '"';
1882
  tagtext += ' gallery_download="' + jQuery("input[name=image_browser_gallery_download]:checked").val() + '"';
@@ -1979,6 +2009,7 @@ class ShortcodeView_bwg extends AdminView_bwg {
1979
  tagtext += ' show_tag_box="' + jQuery("input[name=album_masonry_show_tag_box]:checked").val() + '"';
1980
  tagtext += ' show_album_name="' + jQuery("input[name=show_album_masonry_name]:checked").val() + '"';
1981
  tagtext += ' show_gallery_description="' + jQuery("input[name=album_masonry_show_gallery_description]:checked").val() + '"';
 
1982
  tagtext += ' gallery_download="' + jQuery("input[name=album_masonry_gallery_download]:checked").val() + '"';
1983
  tagtext += ' ecommerce_icon="' + jQuery("input[name=album_masonry_ecommerce_icon_show_hover]:checked").val() + '"';
1984
  break;
@@ -2073,9 +2104,8 @@ class ShortcodeView_bwg extends AdminView_bwg {
2073
  }
2074
  short_code += ' id="' + shortcode_id + '"' + title + ']';
2075
  var short_id = ' id="' + shortcode_id + '"' + title;
2076
-
2077
  <?php if (!$from_menu && !$params['gutenberg_callback']) { ?>
2078
- if (top.tinyMCE.activeEditor) {
2079
  // If there is no builder, then shortcode replace to image.
2080
  if( !page_builder_activated ) {
2081
  short_code = short_code.replace(/\[Best_Wordpress_Gallery([^\]]*)\]/g, function (d, c) {
@@ -2107,6 +2137,12 @@ class ShortcodeView_bwg extends AdminView_bwg {
2107
  top.send_to_editor(short_code);
2108
  }
2109
  top.tinyMCE.execCommand('mceRepaint');
 
 
 
 
 
 
2110
  });
2111
  <?php } else { ?>
2112
  var post_data = {};
19
  wp_enqueue_script('jquery-ui-tabs');
20
  }
21
  require_once BWG()->plugin_dir . '/admin/views/Options.php';
 
 
 
 
 
22
  ob_start();
23
  echo $this->body($params);
24
  // Pass the content to form.
186
  <label class="wd-label" for="gallery"><?php _e('Gallery', BWG()->prefix); ?></label>
187
  <div>
188
  <select name="gallery" id="gallery">
 
189
  <?php
190
+ foreach ( $gallery_rows as $id => $name ) {
191
  ?>
192
+ <option value="<?php echo $id; ?>"><?php echo $name; ?></option>
193
  <?php
194
  }
195
  ?>
201
  <label class="wd-label" for="album"><?php _e('Gallery Group', BWG()->prefix); ?></label>
202
  <div>
203
  <select name="album" id="album">
 
204
  <?php
205
+ foreach ( $album_rows as $id => $name ) {
206
  ?>
207
+ <option value="<?php echo $id; ?>"><?php echo $name; ?></option>
208
  <?php
209
  }
210
  ?>
218
  <label class="wd-label" for="tag"><?php _e('Tag', BWG()->prefix); ?></label>
219
  <div>
220
  <select name="tag" id="tag">
 
221
  <?php
222
+ foreach ( $tag_rows as $id => $name ) {
223
  ?>
224
+ <option value="<?php echo $id; ?>"><?php echo $name; ?></option>
225
  <?php
226
  }
227
  ?>
236
  <div>
237
  <select name="theme" id="theme">
238
  <?php
239
+ foreach ( $theme_rows as $id => $name ) {
240
  ?>
241
+ <option value="<?php echo $id; ?>"><?php echo $name; ?></option>
242
  <?php
243
  }
244
  ?>
276
  <span class="toggle-indicator" aria-hidden="false"></span>
277
  </button>
278
  <h2 class="hndle">
279
+ <span><?php _e('Action on image click', BWG()->prefix); ?></span>
280
  </h2>
281
  <div class="inside">
282
  <?php
522
  }
523
  elseif (!$from_menu) { ?>
524
  var content;
525
+ if (top.tinyMCE.activeEditor && !top.tinyMCE.activeEditor.hidden && top.tinyMCE.activeEditor.selection) {
526
  content = top.tinyMCE.activeEditor.selection.getContent();
527
  }
528
  else {
698
  jQuery('.masonry_row_num').hide();
699
  jQuery('.masonry_col_num').show();
700
  }
701
+ if (short_code['image_title'] == 'hover') {
702
+ jQuery("#masonry_image_title_0").attr('checked', 'checked');
703
+ }
704
+ else if (short_code['image_title'] == 'show') {
705
+ jQuery("#masonry_image_title_1").attr('checked', 'checked');
706
+ }
707
+ else {
708
+ jQuery("#masonry_image_title_2").attr('checked', 'checked');
709
+ }
710
+ if (short_code['show_masonry_thumb_description'] == 1) {
711
+ jQuery("#masonry_thumb_desc_1").attr('checked', 'checked');
712
+ }
713
+ else {
714
+ jQuery("#masonry_thumb_desc_0").attr('checked', 'checked');
715
+ }
716
  jQuery("#masonry_image_column_number").val(short_code['image_column_number']);
717
  if (short_code['image_enable_page'] == 1) {
718
  jQuery("#masonry_image_enable_page_1").attr('checked', 'checked');
1007
  if (short_code['show_search_box']) {
1008
  jQuery("#image_browser_show_search_box_" + short_code['show_search_box']).attr('checked', 'checked');
1009
  }
1010
+ if (short_code['show_sort_images'] == 1) {
1011
+ jQuery("#image_browser_show_sort_images_1").attr('checked', 'checked');
1012
+ }
1013
+ else {
1014
+ jQuery("#image_browser_show_sort_images_0").attr('checked', 'checked');
1015
+ }
1016
+ if (short_code['show_tag_box'] == 1) {
1017
+ jQuery("#image_browser_show_tag_box_1").attr('checked', 'checked');
1018
+ }
1019
+ else {
1020
+ jQuery("#image_browser_show_tag_box_0").attr('checked', 'checked');
1021
+ }
1022
+
1023
  if (short_code['placeholder']) {
1024
  jQuery("#image_browser_placeholder").val(short_code['placeholder']);
1025
  }
1223
  jQuery("input[name=album_title_show_hover][value=" + short_code['compuct_album_title'] + "]").attr('checked', 'checked');
1224
  if (short_code['compuct_album_view_type'] == 'thumbnail') {
1225
  jQuery("#album_view_type_1").attr('checked', 'checked');
1226
+ jQuery("#for_album_image_title_show_hover_0").show();
1227
+ jQuery("#for_album_ecommerce_icon_show_hover_0").show();
1228
  }
1229
  else if (short_code['compuct_album_view_type'] == 'masonry') {
1230
  jQuery("#album_view_type_0").attr('checked', 'checked');
1231
+ jQuery("#for_album_image_title_show_hover_0").show();
1232
+ jQuery("#for_album_ecommerce_icon_show_hover_0").show();
1233
  }
1234
  else {
1235
  jQuery("#album_view_type_2").attr('checked', 'checked');
1236
+ jQuery("#for_album_image_title_show_hover_0").hide();
1237
+ jQuery("#for_album_ecommerce_icon_show_hover_0").hide();
1238
  }
1239
+ jQuery("input[name='album_image_title_show_hover'][value='" + short_code['compuct_album_image_title'] + "']").attr('checked', 'checked');
1240
  if (short_code['compuct_album_mosaic_hor_ver'] == "vertical") {
1241
  jQuery("#album_mosaic_0").attr('checked', 'checked');
1242
  }
1326
  else {
1327
  jQuery("#album_masonry_show_gallery_description_0").attr('checked', 'checked');
1328
  }
1329
+ jQuery("input[name='album_masonry_image_title'][value='" + short_code['image_title'] + "']").attr('checked', 'checked');
1330
  if (short_code['gallery_download'] == 1) {
1331
  jQuery("#album_masonry_gallery_download_1").attr('checked', 'checked');
1332
  }
1404
  }
1405
  if (short_code['extended_album_view_type'] == 'thumbnail') {
1406
  jQuery("#album_extended_view_type_1").attr('checked', 'checked');
1407
+ jQuery("#for_album_extended_image_title_show_hover_0").show();
1408
+ jQuery("#for_album_extended_ecommerce_icon_show_hover_0").show();
1409
  }
1410
  else if (short_code['extended_album_view_type'] == 'masonry') {
1411
  jQuery("#album_extended_view_type_0").attr('checked', 'checked');
1412
+ jQuery("#for_album_extended_image_title_show_hover_0").show();
1413
+ jQuery("#for_album_extended_ecommerce_icon_show_hover_0").show();
1414
  }
1415
  else {
1416
  jQuery("#album_extended_view_type_2").attr('checked', 'checked');
1417
+ jQuery("#for_album_extended_image_title_show_hover_0").hide();
1418
+ jQuery("#for_album_extended_ecommerce_icon_show_hover_0").hide();
1419
  }
1420
+ jQuery("input[name='album_extended_image_title_show_hover'][value='" + short_code['extended_album_image_title'] + "']").attr('checked', 'checked');
1421
  if (short_code['extended_album_mosaic_hor_ver'] == "vertical") {
1422
  jQuery("#album_extended_mosaic_0").attr('checked', 'checked');
1423
  }
1727
  }
1728
  elseif (!$from_menu) { ?>
1729
  var selected_text;
1730
+ if (top.tinyMCE.activeEditor && !top.tinyMCE.activeEditor.hidden && top.tinyMCE.activeEditor.selection) {
1731
  selected_text = top.tinyMCE.activeEditor.selection.getContent();
1732
  }
1733
  else {
1830
  tagtext += ' show_sort_images="' + jQuery("input[name=masonry_show_sort_images]:checked").val() + '"';
1831
  tagtext += ' show_tag_box="' + jQuery("input[name=masonry_show_tag_box]:checked").val() + '"';
1832
  tagtext += ' showthumbs_name="' + jQuery("input[name=masonry_show_gallery_title]:checked").val() + '"';
1833
+ tagtext += ' image_title="' + jQuery("input[name=masonry_image_title]:checked").val() + '"';
1834
+ tagtext += ' show_gallery_description="' + jQuery("input[name=masonry_show_gallery_description]:checked").val() + '"';
1835
  tagtext += ' play_icon="' + jQuery("input[name=masonry_play_icon]:checked").val() + '"';
1836
  tagtext += ' gallery_download="' + jQuery("input[name=masonry_gallery_download]:checked").val() + '"';
1837
  tagtext += ' ecommerce_icon="' + jQuery("input[name=masonry_ecommerce_icon_show_hover]:checked").val() + '"';
1905
  tagtext += ' showthumbs_name="' + jQuery("input[name=image_browser_show_gallery_title]:checked").val() + '"';
1906
  tagtext += ' show_gallery_description="' + jQuery("input[name=image_browser_show_gallery_description]:checked").val() + '"';
1907
  tagtext += ' show_search_box="' + jQuery("input[name=image_browser_show_search_box]:checked").val() + '"';
1908
+ tagtext += ' show_sort_images="' + jQuery("input[name=image_browser_show_sort_images]:checked").val() + '"';
1909
+ tagtext += ' show_tag_box="' + jQuery("input[name=image_browser_show_tag_box]:checked").val() + '"';
1910
  tagtext += ' placeholder="' + jQuery("#image_browser_placeholder").val() + '"';
1911
  tagtext += ' search_box_width="' + jQuery("#image_browser_search_box_width").val() + '"';
1912
  tagtext += ' gallery_download="' + jQuery("input[name=image_browser_gallery_download]:checked").val() + '"';
2009
  tagtext += ' show_tag_box="' + jQuery("input[name=album_masonry_show_tag_box]:checked").val() + '"';
2010
  tagtext += ' show_album_name="' + jQuery("input[name=show_album_masonry_name]:checked").val() + '"';
2011
  tagtext += ' show_gallery_description="' + jQuery("input[name=album_masonry_show_gallery_description]:checked").val() + '"';
2012
+ tagtext += ' image_title="' + jQuery("input[name=album_masonry_image_title]:checked").val() + '"';
2013
  tagtext += ' gallery_download="' + jQuery("input[name=album_masonry_gallery_download]:checked").val() + '"';
2014
  tagtext += ' ecommerce_icon="' + jQuery("input[name=album_masonry_ecommerce_icon_show_hover]:checked").val() + '"';
2015
  break;
2104
  }
2105
  short_code += ' id="' + shortcode_id + '"' + title + ']';
2106
  var short_id = ' id="' + shortcode_id + '"' + title;
 
2107
  <?php if (!$from_menu && !$params['gutenberg_callback']) { ?>
2108
+ if (top.tinyMCE.activeEditor && !top.tinyMCE.activeEditor.hidden) {
2109
  // If there is no builder, then shortcode replace to image.
2110
  if( !page_builder_activated ) {
2111
  short_code = short_code.replace(/\[Best_Wordpress_Gallery([^\]]*)\]/g, function (d, c) {
2137
  top.send_to_editor(short_code);
2138
  }
2139
  top.tinyMCE.execCommand('mceRepaint');
2140
+ /* Close shortcode editor after insert.*/
2141
+ if (top.tinyMCE.activeEditor) {
2142
+ top.tinyMCE.activeEditor.windowManager.close(window);
2143
+ }
2144
+ top.tb_remove();
2145
+ jQuery('#loading_div').hide();
2146
  });
2147
  <?php } else { ?>
2148
  var post_data = {};
admin/views/Themes.php CHANGED
@@ -531,11 +531,21 @@ class ThemesView_bwg extends AdminView_bwg {
531
  <table style="clear:both;">
532
  <tbody>
533
  <tr>
534
- <td class="spider_label"><label for="masonry_thumb_padding"><?php echo __('Padding:', BWG()->prefix); ?> </label></td>
535
  <td>
536
  <input type="text" name="masonry_thumb_padding" id="masonry_thumb_padding" value="<?php echo $row->masonry_thumb_padding; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px
537
  </td>
538
  </tr>
 
 
 
 
 
 
 
 
 
 
539
  <tr>
540
  <td class="spider_label"><label for="masonry_thumb_border_width"><?php echo __('Border width:', BWG()->prefix); ?> </label></td>
541
  <td>
@@ -569,9 +579,38 @@ class ThemesView_bwg extends AdminView_bwg {
569
  <div class="spider_description"><?php echo __('Use CSS type values.', BWG()->prefix); ?></div>
570
  </td>
571
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
572
  </tbody>
573
  </table>
574
-
575
  </div>
576
  </div>
577
  </div>
@@ -581,42 +620,45 @@ class ThemesView_bwg extends AdminView_bwg {
581
  <table style="clear:both;">
582
  <tbody>
583
  <tr>
584
- <td class="spider_label"><label for="masonry_thumb_transparent"><?php echo __('Transparency:', BWG()->prefix); ?> </label></td>
585
- <td>
586
- <input type="text" name="masonry_thumb_transparent" id="masonry_thumb_transparent" value="<?php echo $row->masonry_thumb_transparent; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> %
587
- <div class="spider_description"><?php echo __('Value must be between 0 to 100.', BWG()->prefix); ?></div>
588
- </td>
 
589
  </tr>
590
  <tr>
591
- <td class="spider_label"><label for="masonry_thumbs_bg_color"><?php echo __('Background color:', BWG()->prefix); ?> </label></td>
592
- <td>
593
- <input type="text" name="masonry_thumbs_bg_color" id="masonry_thumbs_bg_color" value="<?php echo $row->masonry_thumbs_bg_color; ?>" class="color" />
594
- </td>
 
595
  </tr>
596
  <tr>
597
- <td class="spider_label"><label for="masonry_thumb_bg_transparent"><?php echo __('Background transparency:', BWG()->prefix); ?> </label></td>
598
- <td>
599
- <input type="text" name="masonry_thumb_bg_transparent" id="masonry_thumb_bg_transparent" value="<?php echo $row->masonry_thumb_bg_transparent; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> %
600
- <div class="spider_description"><?php echo __('Value must be between 0 to 100.', BWG()->prefix); ?></div>
601
- </td>
602
  </tr>
603
  <tr>
604
- <td class="spider_label"><label for="masonry_thumb_align0"><?php echo __('Alignment:', BWG()->prefix); ?> </label></td>
605
- <td>
606
- <select name="masonry_thumb_align" id="masonry_thumb_align">
607
- <?php
608
- foreach ($aligns as $key => $align) {
609
- ?>
610
- <option value="<?php echo $key; ?>" <?php echo (($row->masonry_thumb_align == $key) ? 'selected="selected"' : ''); ?>><?php echo __($align, BWG()->prefix); ?></option>
611
- <?php
612
- }
613
- ?>
 
 
 
614
  </select>
615
- </td>
616
  </tr>
617
  </tbody>
618
  </table>
619
-
620
  </div>
621
  </div>
622
  </div>
@@ -625,36 +667,67 @@ class ThemesView_bwg extends AdminView_bwg {
625
  <div class="wd-box-content">
626
  <table style="clear:both;">
627
  <tbody>
628
- <tr>
629
- <td class="spider_label"><label for="masonry_thumb_hover_effect"><?php echo __('Hover effect:', BWG()->prefix); ?> </label></td>
630
- <td>
631
- <select name="masonry_thumb_hover_effect" id="masonry_thumb_hover_effect">
632
- <?php
633
- foreach ($hover_effects as $key => $hover_effect) {
634
- ?>
635
- <option value="<?php echo $key; ?>" <?php echo (($row->masonry_thumb_hover_effect == $key) ? 'selected="selected"' : ''); ?>><?php echo __($hover_effect, BWG()->prefix); ?></option>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
636
  <?php
637
- }
638
- ?>
639
- </select>
640
- </td>
641
- </tr>
642
- <tr>
643
- <td class="spider_label"><label for="masonry_thumb_hover_effect_value"><?php echo __('Hover effect value:', BWG()->prefix); ?> </label></td>
644
- <td>
645
- <input type="text" name="masonry_thumb_hover_effect_value" id="masonry_thumb_hover_effect_value" value="<?php echo $row->masonry_thumb_hover_effect_value; ?>" class="spider_char_input" />
646
- <div class="spider_description"><?php echo __('E.g. Rotate: 10deg, Scale: 1.5, Skew: 10deg.', BWG()->prefix); ?></div>
647
- </td>
648
- </tr>
649
- <tr>
650
- <td class="spider_label"><label><?php echo __('Transition:', BWG()->prefix); ?> </label></td>
651
- <td id="masonry_thumb_transition">
652
- <input type="radio" name="masonry_thumb_transition" id="masonry_thumb_transition1" value="1"<?php if ($row->masonry_thumb_transition == 1) echo 'checked="checked"'; ?> />
653
- <label for="masonry_thumb_transition1" id="masonry_thumb_transition1_lbl"><?php echo __('Yes', BWG()->prefix); ?></label>
654
- <input type="radio" name="masonry_thumb_transition" id="masonry_thumb_transition0" value="0"<?php if ($row->masonry_thumb_transition == 0) echo 'checked="checked"'; ?> />
655
- <label for="masonry_thumb_transition0" id="masonry_thumb_transition0_lbl"><?php echo __('No', BWG()->prefix); ?></label>
656
- </td>
657
- </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
658
  <tr>
659
  <td class="spider_label"><label for="masonry_description_font_size"><?php echo __('Description font size:', BWG()->prefix); ?> </label></td>
660
  <td>
@@ -780,11 +853,21 @@ class ThemesView_bwg extends AdminView_bwg {
780
  <table style="clear:both;">
781
  <tbody>
782
  <tr>
783
- <td class="spider_label"><label for="mosaic_thumb_padding"><?php echo __('Padding:', BWG()->prefix); ?> </label></td>
784
  <td>
785
  <input type="text" name="mosaic_thumb_padding" id="mosaic_thumb_padding" value="<?php echo $row->mosaic_thumb_padding; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px
786
  </td>
787
  </tr>
 
 
 
 
 
 
 
 
 
 
788
  <tr>
789
  <td class="spider_label"><label for="mosaic_thumb_border_width"><?php echo __('Border width:', BWG()->prefix); ?> </label></td>
790
  <td>
@@ -818,6 +901,36 @@ class ThemesView_bwg extends AdminView_bwg {
818
  <div class="spider_description"><?php echo __('Use CSS type values.', BWG()->prefix); ?></div>
819
  </td>
820
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
821
  </tbody>
822
  </table>
823
  </div>
@@ -828,6 +941,12 @@ class ThemesView_bwg extends AdminView_bwg {
828
  <div class="wd-box-content">
829
  <table style="clear:both;">
830
  <tbody>
 
 
 
 
 
 
831
  <tr>
832
  <td class="spider_label"><label for="mosaic_thumb_transparent"><?php echo __('Transparency:', BWG()->prefix); ?> </label></td>
833
  <td>
@@ -836,7 +955,7 @@ class ThemesView_bwg extends AdminView_bwg {
836
  </td>
837
  </tr>
838
  <tr>
839
- <td class="spider_label"><label for="mosaic_thumbs_bg_color"><?php echo __('Background color:', BWG()->prefix); ?> </label></td>
840
  <td>
841
  <input type="text" name="mosaic_thumbs_bg_color" id="mosaic_thumbs_bg_color" value="<?php echo $row->mosaic_thumbs_bg_color; ?>" class="color" />
842
  </td>
@@ -872,36 +991,6 @@ class ThemesView_bwg extends AdminView_bwg {
872
  <div class="wd-box-content">
873
  <table style="clear:both;">
874
  <tbody>
875
- <tr>
876
- <td class="spider_label"><label for="mosaic_thumb_hover_effect"><?php echo __('Hover effect:', BWG()->prefix); ?> </label></td>
877
- <td>
878
- <select name="mosaic_thumb_hover_effect" id="mosaic_thumb_hover_effect">
879
- <?php
880
- foreach ($hover_effects as $key => $hover_effect) {
881
- ?>
882
- <option value="<?php echo $key; ?>" <?php echo (($row->mosaic_thumb_hover_effect == $key) ? 'selected="selected"' : ''); ?>><?php echo __($hover_effect, BWG()->prefix); ?></option>
883
- <?php
884
- }
885
- ?>
886
- </select>
887
- </td>
888
- </tr>
889
- <tr>
890
- <td class="spider_label"><label for="mosaic_thumb_hover_effect_value"><?php echo __('Hover effect value:', BWG()->prefix); ?> </label></td>
891
- <td>
892
- <input type="text" name="mosaic_thumb_hover_effect_value" id="mosaic_thumb_hover_effect_value" value="<?php echo $row->mosaic_thumb_hover_effect_value; ?>" class="spider_char_input" />
893
- <div class="spider_description"><?php echo __('E.g. Rotate: 10deg, Scale: 1.5, Skew: 10deg.', BWG()->prefix); ?></div>
894
- </td>
895
- </tr>
896
- <tr>
897
- <td class="spider_label"><label><?php echo __('Transition:', BWG()->prefix); ?> </label></td>
898
- <td id="mosaic_thumb_transition">
899
- <input type="radio" name="mosaic_thumb_transition" id="mosaic_thumb_transition1" value="1"<?php if ($row->mosaic_thumb_transition == 1) echo 'checked="checked"'; ?> />
900
- <label for="mosaic_thumb_transition1" id="mosaic_thumb_transition1_lbl"><?php echo __('Yes', BWG()->prefix); ?></label>
901
- <input type="radio" name="mosaic_thumb_transition" id="mosaic_thumb_transition0" value="0"<?php if ($row->mosaic_thumb_transition == 0) echo 'checked="checked"'; ?> />
902
- <label for="mosaic_thumb_transition0" id="mosaic_thumb_transition0_lbl"><?php echo __('No', BWG()->prefix); ?></label>
903
- </td>
904
- </tr>
905
  <tr>
906
  <td class="spider_label"><label for="mosaic_thumb_title_font_size"><?php echo __('Title font size:', BWG()->prefix); ?> </label></td>
907
  <td>
@@ -914,6 +1003,12 @@ class ThemesView_bwg extends AdminView_bwg {
914
  <input type="text" name="mosaic_thumb_title_font_color" id="mosaic_thumb_title_font_color" value="<?php echo $row->mosaic_thumb_title_font_color; ?>" class="color" />
915
  </td>
916
  </tr>
 
 
 
 
 
 
917
  <tr>
918
  <td class="spider_label"><label for="mosaic_thumb_title_font_style"><?php echo __('Title font family:', BWG()->prefix); ?> </label></td>
919
  <td>
@@ -1812,6 +1907,22 @@ class ThemesView_bwg extends AdminView_bwg {
1812
  <div class="wd-box-content">
1813
  <table style="clear:both;">
1814
  <tbody>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1815
  <tr>
1816
  <td class="spider_label"><label for="album_compact_thumb_padding"><?php echo __('Padding:', BWG()->prefix); ?> </label></td>
1817
  <td>
@@ -1819,13 +1930,6 @@ class ThemesView_bwg extends AdminView_bwg {
1819
  <div class="spider_description"><?php echo __('Use CSS type values.', BWG()->prefix); ?></div>
1820
  </td>
1821
  </tr>
1822
- <tr>
1823
- <td class="spider_label"><label for="album_compact_thumb_margin"><?php echo __('Margin:', BWG()->prefix); ?> </label></td>
1824
- <td>
1825
- <input type="text" name="album_compact_thumb_margin" id="album_compact_thumb_margin" value="<?php echo $row->album_compact_thumb_margin; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px
1826
- <div class="spider_description"><?php echo __('Use CSS type values.', BWG()->prefix); ?></div>
1827
- </td>
1828
- </tr>
1829
  <tr>
1830
  <td class="spider_label"><label for="album_compact_thumb_border_width"><?php echo __('Border width:', BWG()->prefix); ?> </label></td>
1831
  <td>
@@ -1871,7 +1975,7 @@ class ThemesView_bwg extends AdminView_bwg {
1871
  <td>
1872
  <select name="album_compact_thumb_hover_effect" id="album_compact_thumb_hover_effect">
1873
  <?php
1874
- foreach ($hover_effects as $key => $hover_effect) {
1875
  ?>
1876
  <option value="<?php echo $key; ?>" <?php echo (($row->album_compact_thumb_hover_effect == $key) ? 'selected="selected"' : ''); ?>><?php echo __($hover_effect, BWG()->prefix); ?></option>
1877
  <?php
@@ -1977,6 +2081,12 @@ class ThemesView_bwg extends AdminView_bwg {
1977
  <input type="text" name="album_compact_title_font_color" id="album_compact_title_font_color" value="<?php echo $row->album_compact_title_font_color; ?>" class="color" />
1978
  </td>
1979
  </tr>
 
 
 
 
 
 
1980
  <tr>
1981
  <td class="spider_label"><label for="album_compact_title_font_style"><?php echo __('Title font family:', BWG()->prefix); ?> </label></td>
1982
  <td>
@@ -2028,19 +2138,19 @@ class ThemesView_bwg extends AdminView_bwg {
2028
  </td>
2029
  </tr>
2030
  <tr>
2031
- <td class="spider_label"><label for="album_compact_back_font_size"><?php echo __('Font size:', BWG()->prefix); ?> </label></td>
2032
  <td>
2033
  <input type="text" name="album_compact_back_font_size" id="album_compact_back_font_size" value="<?php echo $row->album_compact_back_font_size; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px
2034
  </td>
2035
  </tr>
2036
  <tr>
2037
- <td class="spider_label"><label for="album_compact_back_font_color"><?php echo __('Font color:', BWG()->prefix); ?> </label></td>
2038
  <td>
2039
  <input type="text" name="album_compact_back_font_color" id="album_compact_back_font_color" value="<?php echo $row->album_compact_back_font_color; ?>" class="color" />
2040
  </td>
2041
  </tr>
2042
  <tr>
2043
- <td class="spider_label"><label for="album_compact_back_font_style"><?php echo __('Font family:', BWG()->prefix); ?> </label></td>
2044
  <td>
2045
  <select name="album_compact_back_font_style" id="album_compact_back_font_style">
2046
  <?php
@@ -2062,7 +2172,7 @@ class ThemesView_bwg extends AdminView_bwg {
2062
  </td>
2063
  </tr>
2064
  <tr>
2065
- <td class="spider_label"><label for="album_compact_back_font_weight"><?php echo __('Font weight:', BWG()->prefix); ?> </label></td>
2066
  <td>
2067
  <select name="album_compact_back_font_weight" id="album_compact_back_font_weight">
2068
  <?php
@@ -2792,6 +2902,23 @@ class ThemesView_bwg extends AdminView_bwg {
2792
  <div class="wd-box-content">
2793
  <table style="clear:both;">
2794
  <tbody>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2795
  <tr>
2796
  <td class="spider_label"><label for="album_masonry_thumb_border_width"><?php echo __('Border width:', BWG()->prefix); ?> </label></td>
2797
  <td>
@@ -2830,7 +2957,7 @@ class ThemesView_bwg extends AdminView_bwg {
2830
  <td>
2831
  <select name="album_masonry_thumb_hover_effect" id="album_masonry_thumb_hover_effect">
2832
  <?php
2833
- foreach ($hover_effects as $key => $hover_effect) {
2834
  ?>
2835
  <option value="<?php echo $key; ?>" <?php echo (($row->album_masonry_thumb_hover_effect == $key) ? 'selected="selected"' : ''); ?>><?php echo __($hover_effect, BWG()->prefix); ?></option>
2836
  <?php
@@ -2865,6 +2992,14 @@ class ThemesView_bwg extends AdminView_bwg {
2865
  <div class="wd-box-content">
2866
  <table style="clear:both;">
2867
  <tbody>
 
 
 
 
 
 
 
 
2868
  <tr>
2869
  <td class="spider_label"><label for="album_masonry_thumb_transparent"><?php echo __('Thumbnail transparency:', BWG()->prefix); ?> </label></td>
2870
  <td>
@@ -2921,6 +3056,12 @@ class ThemesView_bwg extends AdminView_bwg {
2921
  <input type="text" name="album_masonry_title_font_color" id="album_masonry_title_font_color" value="<?php echo $row->album_masonry_title_font_color; ?>" class="color" />
2922
  </td>
2923
  </tr>
 
 
 
 
 
 
2924
  <tr>
2925
  <td class="spider_label"><label for="album_masonry_title_font_style"><?php echo __('Title font family:', BWG()->prefix); ?> </label></td>
2926
  <td>
@@ -2965,19 +3106,19 @@ class ThemesView_bwg extends AdminView_bwg {
2965
  </td>
2966
  </tr>
2967
  <tr>
2968
- <td class="spider_label"><label for="album_masonry_back_font_size"><?php echo __('Font size:', BWG()->prefix); ?> </label></td>
2969
  <td>
2970
  <input type="text" name="album_masonry_back_font_size" id="album_masonry_back_font_size" value="<?php echo $row->album_masonry_back_font_size; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px
2971
  </td>
2972
  </tr>
2973
  <tr>
2974
- <td class="spider_label"><label for="album_masonry_back_font_color"><?php echo __('Font color:', BWG()->prefix); ?> </label></td>
2975
  <td>
2976
  <input type="text" name="album_masonry_back_font_color" id="album_masonry_back_font_color" value="<?php echo $row->album_masonry_back_font_color; ?>" class="color" />
2977
  </td>
2978
  </tr>
2979
  <tr>
2980
- <td class="spider_label"><label for="album_masonry_back_font_style"><?php echo __('Font family:', BWG()->prefix); ?> </label></td>
2981
  <td>
2982
  <select name="album_masonry_back_font_style" id="album_masonry_back_font_style">
2983
  <?php
@@ -2999,7 +3140,7 @@ class ThemesView_bwg extends AdminView_bwg {
2999
  </td>
3000
  </tr>
3001
  <tr>
3002
- <td class="spider_label"><label for="album_masonry_back_font_weight"><?php echo __('Font weight:', BWG()->prefix); ?> </label></td>
3003
  <td>
3004
  <select name="album_masonry_back_font_weight" id="album_masonry_back_font_weight">
3005
  <?php
@@ -3571,7 +3712,8 @@ class ThemesView_bwg extends AdminView_bwg {
3571
  <td class="spider_label"><label for="lightbox_close_btn_bg_color"><?php echo __('Close button background color:', BWG()->prefix); ?> </label></td>
3572
  <td>
3573
  <input type="text" name="lightbox_close_btn_bg_color" id="lightbox_close_btn_bg_color" value="<?php echo $row->lightbox_close_btn_bg_color; ?>" class="color"/>
3574
- </td>
 
3575
  </tr>
3576
  <tr id="lightbox_close9">
3577
  <td class="spider_label"><label for="lightbox_close_btn_transparent"><?php echo __('Close button transparency:', BWG()->prefix); ?> </label></td>
@@ -3583,25 +3725,29 @@ class ThemesView_bwg extends AdminView_bwg {
3583
  <td class="spider_label"><label for="lightbox_close_btn_width"><?php echo __('Close button width:', BWG()->prefix); ?> </label></td>
3584
  <td>
3585
  <input type="text" name="lightbox_close_btn_width" id="lightbox_close_btn_width" value="<?php echo $row->lightbox_close_btn_width; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px
3586
- </td>
 
3587
  </tr>
3588
  <tr id="lightbox_close6">
3589
  <td class="spider_label"><label for="lightbox_close_btn_height"><?php echo __('Close button height:', BWG()->prefix); ?> </label></td>
3590
  <td>
3591
  <input type="text" name="lightbox_close_btn_height" id="lightbox_close_btn_height" value="<?php echo $row->lightbox_close_btn_height; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px
3592
- </td>
 
3593
  </tr>
3594
  <tr id="lightbox_close7">
3595
  <td class="spider_label"><label for="lightbox_close_btn_top"><?php echo __('Close button top:', BWG()->prefix); ?> </label></td>
3596
  <td>
3597
  <input type="text" name="lightbox_close_btn_top" id="lightbox_close_btn_top" value="<?php echo $row->lightbox_close_btn_top; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px
3598
- </td>
 
3599
  </tr>
3600
  <tr id="lightbox_close8">
3601
  <td class="spider_label"><label for="lightbox_close_btn_right"><?php echo __('Close button right:', BWG()->prefix); ?> </label></td>
3602
  <td>
3603
  <input type="text" name="lightbox_close_btn_right" id="lightbox_close_btn_right" value="<?php echo $row->lightbox_close_btn_right; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px
3604
- </td>
 
3605
  </tr>
3606
  <tr id="lightbox_close4">
3607
  <td class="spider_label"><label for="lightbox_close_btn_size"><?php echo __('Close button size:', BWG()->prefix); ?> </label></td>
@@ -4869,8 +5015,8 @@ class ThemesView_bwg extends AdminView_bwg {
4869
  </div>
4870
  </fieldset>
4871
  </div>
4872
- <input type="hidden" id="default_theme" name="default_theme" value="<?php echo $row->default_theme; ?>"/>
4873
- <input type="hidden" id="active_tab" name="active_tab" value="Thumbnail" />
4874
  <?php
4875
  }
4876
  }
531
  <table style="clear:both;">
532
  <tbody>
533
  <tr>
534
+ <td class="spider_label"><label for="masonry_thumb_padding"><?php echo __('Distance between pictures:', BWG()->prefix); ?> </label></td>
535
  <td>
536
  <input type="text" name="masonry_thumb_padding" id="masonry_thumb_padding" value="<?php echo $row->masonry_thumb_padding; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px
537
  </td>
538
  </tr>
539
+ <tr>
540
+ <td class="spider_label"><label><?php _e('Distance from container frame:', BWG()->prefix); ?> </label></td>
541
+ <td>
542
+ <input type="radio" name="masonry_container_margin" id="masonry_container_margin1" value="1"<?php if ($row->masonry_container_margin == 1) echo 'checked="checked"'; ?> />
543
+ <label for="masonry_container_margin1"><?php _e('Yes', BWG()->prefix); ?></label>
544
+ <input type="radio" name="masonry_container_margin" id="masonry_container_margin0" value="0"<?php if ($row->masonry_container_margin == 0) echo 'checked="checked"'; ?> />
545
+ <label for="masonry_container_margin0"><?php _e('No', BWG()->prefix); ?></label>
546
+ <div class="spider_description"><?php _e('Enable this option to add distance between the parent container and the thumbnails grid.', BWG()->prefix); ?></div>
547
+ </td>
548
+ </tr>
549
  <tr>
550
  <td class="spider_label"><label for="masonry_thumb_border_width"><?php echo __('Border width:', BWG()->prefix); ?> </label></td>
551
  <td>
579
  <div class="spider_description"><?php echo __('Use CSS type values.', BWG()->prefix); ?></div>
580
  </td>
581
  </tr>
582
+ <tr>
583
+ <td class="spider_label"><label for="masonry_thumb_hover_effect"><?php echo __('Hover effect:', BWG()->prefix); ?> </label></td>
584
+ <td>
585
+ <select name="masonry_thumb_hover_effect" id="masonry_thumb_hover_effect">
586
+ <?php
587
+ foreach ($thumbnail_hover_effects as $key => $hover_effect) {
588
+ ?>
589
+ <option value="<?php echo $key; ?>" <?php echo (($row->masonry_thumb_hover_effect == $key) ? 'selected="selected"' : ''); ?>><?php echo __($hover_effect, BWG()->prefix); ?></option>
590
+ <?php
591
+ }
592
+ ?>
593
+ </select>
594
+ </td>
595
+ </tr>
596
+ <tr>
597
+ <td class="spider_label"><label for="masonry_thumb_hover_effect_value"><?php echo __('Hover effect value:', BWG()->prefix); ?> </label></td>
598
+ <td>
599
+ <input type="text" name="masonry_thumb_hover_effect_value" id="masonry_thumb_hover_effect_value" value="<?php echo $row->masonry_thumb_hover_effect_value; ?>" class="spider_char_input" />
600
+ <div class="spider_description"><?php echo __('E.g. Rotate: 10deg, Scale: 1.5, Skew: 10deg.', BWG()->prefix); ?></div>
601
+ </td>
602
+ </tr>
603
+ <tr>
604
+ <td class="spider_label"><label><?php echo __('Transition:', BWG()->prefix); ?> </label></td>
605
+ <td id="masonry_thumb_transition">
606
+ <input type="radio" name="masonry_thumb_transition" id="masonry_thumb_transition1" value="1"<?php if ($row->masonry_thumb_transition == 1) echo 'checked="checked"'; ?> />
607
+ <label for="masonry_thumb_transition1" id="masonry_thumb_transition1_lbl"><?php echo __('Yes', BWG()->prefix); ?></label>
608
+ <input type="radio" name="masonry_thumb_transition" id="masonry_thumb_transition0" value="0"<?php if ($row->masonry_thumb_transition == 0) echo 'checked="checked"'; ?> />
609
+ <label for="masonry_thumb_transition0" id="masonry_thumb_transition0_lbl"><?php echo __('No', BWG()->prefix); ?></label>
610
+ </td>
611
+ </tr>
612
  </tbody>
613
  </table>
 
614
  </div>
615
  </div>
616
  </div>
620
  <table style="clear:both;">
621
  <tbody>
622
  <tr>
623
+ <td class="spider_label">
624
+ <label for="masonry_thumb_bg_color"><?php echo __('Thumbnail background color:', BWG()->prefix); ?> </label>
625
+ </td>
626
+ <td>
627
+ <input type="text" name="masonry_thumb_bg_color" id="masonry_thumb_bg_color" value="<?php echo $row->masonry_thumb_bg_color; ?>" class="color" />
628
+ </td>
629
  </tr>
630
  <tr>
631
+ <td class="spider_label"><label for="masonry_thumb_transparent"><?php echo __('Transparency:', BWG()->prefix); ?> </label></td>
632
+ <td>
633
+ <input type="text" name="masonry_thumb_transparent" id="masonry_thumb_transparent" value="<?php echo $row->masonry_thumb_transparent; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> %
634
+ <div class="spider_description"><?php echo __('Value must be between 0 to 100.', BWG()->prefix); ?></div>
635
+ </td>
636
  </tr>
637
  <tr>
638
+ <td class="spider_label"><label for="masonry_thumbs_bg_color"><?php echo __('Full Background color:', BWG()->prefix); ?> </label></td>
639
+ <td>
640
+ <input type="text" name="masonry_thumbs_bg_color" id="masonry_thumbs_bg_color" value="<?php echo $row->masonry_thumbs_bg_color; ?>" class="color" />
641
+ </td>
 
642
  </tr>
643
  <tr>
644
+ <td class="spider_label"><label for="masonry_thumb_bg_transparent"><?php echo __('Background transparency:', BWG()->prefix); ?> </label></td>
645
+ <td>
646
+ <input type="text" name="masonry_thumb_bg_transparent" id="masonry_thumb_bg_transparent" value="<?php echo $row->masonry_thumb_bg_transparent; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> %
647
+ <div class="spider_description"><?php echo __('Value must be between 0 to 100.', BWG()->prefix); ?></div>
648
+ </td>
649
+ </tr>
650
+ <tr>
651
+ <td class="spider_label"><label for="masonry_thumb_align0"><?php echo __('Alignment:', BWG()->prefix); ?> </label></td>
652
+ <td>
653
+ <select name="masonry_thumb_align" id="masonry_thumb_align">
654
+ <?php foreach ($aligns as $key => $align) { ?>
655
+ <option value="<?php echo $key; ?>" <?php echo (($row->masonry_thumb_align == $key) ? 'selected="selected"' : ''); ?>><?php echo __($align, BWG()->prefix); ?></option>
656
+ <?php } ?>
657
  </select>
658
+ </td>
659
  </tr>
660
  </tbody>
661
  </table>
 
662
  </div>
663
  </div>
664
  </div>
667
  <div class="wd-box-content">
668
  <table style="clear:both;">
669
  <tbody>
670
+ <tr>
671
+ <td class="spider_label"><label for="masonry_thumb_title_font_size"><?php echo __('Title font size:', BWG()->prefix); ?> </label></td>
672
+ <td>
673
+ <input type="text" name="masonry_thumb_title_font_size" id="masonry_thumb_title_font_size" value="<?php echo $row->masonry_thumb_title_font_size; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px
674
+ </td>
675
+ </tr>
676
+ <tr>
677
+ <td class="spider_label"><label for="masonry_thumb_title_font_color"><?php echo __('Title font color:', BWG()->prefix); ?> </label></td>
678
+ <td>
679
+ <input type="text" name="masonry_thumb_title_font_color" id="masonry_thumb_title_font_color" value="<?php echo $row->masonry_thumb_title_font_color; ?>" class="color" />
680
+ </td>
681
+ </tr>
682
+ <tr>
683
+ <td class="spider_label"><label for="masonry_thumb_title_font_color_hover"><?php echo __('Title font color (Show on hover):', BWG()->prefix); ?> </label></td>
684
+ <td>
685
+ <input type="text" name="masonry_thumb_title_font_color_hover" id="masonry_thumb_title_font_color_hover" value="<?php echo $row->masonry_thumb_title_font_color_hover; ?>" class="color" />
686
+ </td>
687
+ </tr>
688
+ <tr>
689
+ <td class="spider_label"><label for="masonry_thumb_title_font_style"><?php echo __('Title font family:', BWG()->prefix); ?> </label></td>
690
+ <td>
691
+ <select name="masonry_thumb_title_font_style" id="masonry_thumb_title_font_style">
692
  <?php
693
+ $is_google_fonts = (in_array($row->thumb_title_font_style, $google_fonts)) ? true : false;
694
+ $thumb_font_families = ($is_google_fonts == true) ? $google_fonts : $font_families;
695
+ foreach ($thumb_font_families as $key => $font_family) {
696
+ ?>
697
+ <option value="<?php echo $key; ?>" <?php echo (($row->thumb_title_font_style == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
698
+ <?php
699
+ }
700
+ ?>
701
+ </select>
702
+ <div>
703
+ <input type="radio" name="masonry_thumb_title_google_fonts" id="masonry_thumb_title_google_fonts1" onchange="bwg_change_fonts('masonry_thumb_title_font_style', jQuery(this).attr('id'))" value="1" <?php if ($is_google_fonts == true) echo 'checked="checked"'; ?> />
704
+ <label for="masonry_thumb_title_google_fonts1"><?php echo __('Google fonts', BWG()->prefix); ?></label>
705
+ <input type="radio" name="masonry_thumb_title_google_fonts" id="masonry_thumb_title_google_fonts0" onchange="bwg_change_fonts('masonry_thumb_title_font_style', '')" value="0" <?php if ($is_google_fonts == false) echo 'checked="checked"'; ?> />
706
+ <label for="masonry_thumb_title_google_fonts0"><?php echo __('Default', BWG()->prefix); ?></label>
707
+ </div>
708
+ </td>
709
+ </tr>
710
+ <tr>
711
+ <td class="spider_label"><label for="masonry_thumb_title_font_weight"><?php echo __('Title font weight:', BWG()->prefix); ?> </label></td>
712
+ <td>
713
+ <select name="masonry_thumb_title_font_weight" id="masonry_thumb_title_font_weight">
714
+ <?php
715
+ foreach ($font_weights as $key => $font_weight) {
716
+ ?>
717
+ <option value="<?php echo $key; ?>" <?php echo (($row->masonry_thumb_title_font_weight == $key) ? 'selected="selected"' : ''); ?>><?php echo __($font_weight, BWG()->prefix); ?></option>
718
+ <?php
719
+ }
720
+ ?>
721
+ </select>
722
+ </td>
723
+ </tr>
724
+ <tr>
725
+ <td class="spider_label"><label for="masonry_thumb_title_margin"><?php echo __('Title margin:', BWG()->prefix); ?> </label></td>
726
+ <td>
727
+ <input type="text" name="masonry_thumb_title_margin" id="masonry_thumb_title_margin" value="<?php echo $row->masonry_thumb_title_margin; ?>" class="spider_char_input" />
728
+ <div class="spider_description"><?php echo __('Use CSS type values.', BWG()->prefix); ?></div>
729
+ </td>
730
+ </tr>
731
  <tr>
732
  <td class="spider_label"><label for="masonry_description_font_size"><?php echo __('Description font size:', BWG()->prefix); ?> </label></td>
733
  <td>
853
  <table style="clear:both;">
854
  <tbody>
855
  <tr>
856
+ <td class="spider_label"><label for="mosaic_thumb_padding"><?php echo __('Distance between pictures:', BWG()->prefix); ?> </label></td>
857
  <td>
858
  <input type="text" name="mosaic_thumb_padding" id="mosaic_thumb_padding" value="<?php echo $row->mosaic_thumb_padding; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px
859
  </td>
860
  </tr>
861
+ <tr>
862
+ <td class="spider_label"><label><?php _e('Distance from container frame:', BWG()->prefix); ?> </label></td>
863
+ <td>
864
+ <input type="radio" name="mosaic_container_margin" id="mosaic_container_margin1" value="1"<?php if ($row->mosaic_container_margin == 1) echo 'checked="checked"'; ?> />
865
+ <label for="mosaic_container_margin1"><?php _e('Yes', BWG()->prefix); ?></label>
866
+ <input type="radio" name="mosaic_container_margin" id="mosaic_container_margin0" value="0"<?php if ($row->mosaic_container_margin == 0) echo 'checked="checked"'; ?> />
867
+ <label for="mosaic_container_margin0"><?php _e('No', BWG()->prefix); ?></label>
868
+ <div class="spider_description"><?php _e('Enable this option to add distance between the parent container and the thumbnails grid.', BWG()->prefix); ?></div>
869
+ </td>
870
+ </tr>
871
  <tr>
872
  <td class="spider_label"><label for="mosaic_thumb_border_width"><?php echo __('Border width:', BWG()->prefix); ?> </label></td>
873
  <td>
901
  <div class="spider_description"><?php echo __('Use CSS type values.', BWG()->prefix); ?></div>
902
  </td>
903
  </tr>
904
+ <tr>
905
+ <td class="spider_label"><label for="mosaic_thumb_hover_effect"><?php echo __('Hover effect:', BWG()->prefix); ?> </label></td>
906
+ <td>
907
+ <select name="mosaic_thumb_hover_effect" id="mosaic_thumb_hover_effect">
908
+ <?php
909
+ foreach ($thumbnail_hover_effects as $key => $hover_effect) {
910
+ ?>
911
+ <option value="<?php echo $key; ?>" <?php echo (($row->mosaic_thumb_hover_effect == $key) ? 'selected="selected"' : ''); ?>><?php echo __($hover_effect, BWG()->prefix); ?></option>
912
+ <?php
913
+ }
914
+ ?>
915
+ </select>
916
+ </td>
917
+ </tr>
918
+ <tr>
919
+ <td class="spider_label"><label for="mosaic_thumb_hover_effect_value"><?php echo __('Hover effect value:', BWG()->prefix); ?> </label></td>
920
+ <td>
921
+ <input type="text" name="mosaic_thumb_hover_effect_value" id="mosaic_thumb_hover_effect_value" value="<?php echo $row->mosaic_thumb_hover_effect_value; ?>" class="spider_char_input" />
922
+ <div class="spider_description"><?php echo __('E.g. Rotate: 10deg, Scale: 1.5, Skew: 10deg.', BWG()->prefix); ?></div>
923
+ </td>
924
+ </tr>
925
+ <tr>
926
+ <td class="spider_label"><label><?php echo __('Transition:', BWG()->prefix); ?> </label></td>
927
+ <td id="mosaic_thumb_transition">
928
+ <input type="radio" name="mosaic_thumb_transition" id="mosaic_thumb_transition1" value="1"<?php if ($row->mosaic_thumb_transition == 1) echo 'checked="checked"'; ?> />
929
+ <label for="mosaic_thumb_transition1" id="mosaic_thumb_transition1_lbl"><?php echo __('Yes', BWG()->prefix); ?></label>
930
+ <input type="radio" name="mosaic_thumb_transition" id="mosaic_thumb_transition0" value="0"<?php if ($row->mosaic_thumb_transition == 0) echo 'checked="checked"'; ?> />
931
+ <label for="mosaic_thumb_transition0" id="mosaic_thumb_transition0_lbl"><?php echo __('No', BWG()->prefix); ?></label>
932
+ </td>
933
+ </tr>
934
  </tbody>
935
  </table>
936
  </div>
941
  <div class="wd-box-content">
942
  <table style="clear:both;">
943
  <tbody>
944
+ <tr>
945
+ <td class="spider_label"><label for="mosaic_thumb_bg_color"><?php echo __('Background color:', BWG()->prefix); ?> </label></td>
946
+ <td>
947
+ <input type="text" name="mosaic_thumb_bg_color" id="mosaic_thumb_bg_color" value="<?php echo $row->mosaic_thumb_bg_color; ?>" class="color" />
948
+ </td>
949
+ </tr>
950
  <tr>
951
  <td class="spider_label"><label for="mosaic_thumb_transparent"><?php echo __('Transparency:', BWG()->prefix); ?> </label></td>
952
  <td>
955
  </td>
956
  </tr>
957
  <tr>
958
+ <td class="spider_label"><label for="mosaic_thumbs_bg_color"><?php echo __('Full Background color:', BWG()->prefix); ?> </label></td>
959
  <td>
960
  <input type="text" name="mosaic_thumbs_bg_color" id="mosaic_thumbs_bg_color" value="<?php echo $row->mosaic_thumbs_bg_color; ?>" class="color" />
961
  </td>
991
  <div class="wd-box-content">
992
  <table style="clear:both;">
993
  <tbody>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
994
  <tr>
995
  <td class="spider_label"><label for="mosaic_thumb_title_font_size"><?php echo __('Title font size:', BWG()->prefix); ?> </label></td>
996
  <td>
1003
  <input type="text" name="mosaic_thumb_title_font_color" id="mosaic_thumb_title_font_color" value="<?php echo $row->mosaic_thumb_title_font_color; ?>" class="color" />
1004
  </td>
1005
  </tr>
1006
+ <tr>
1007
+ <td class="spider_label"><label for="mosaic_thumb_title_font_color_hover"><?php echo __('Title font color (Show on hover):', BWG()->prefix); ?> </label></td>
1008
+ <td>
1009
+ <input type="text" name="mosaic_thumb_title_font_color_hover" id="mosaic_thumb_title_font_color_hover" value="<?php echo $row->mosaic_thumb_title_font_color_hover; ?>" class="color" />
1010
+ </td>
1011
+ </tr>
1012
  <tr>
1013
  <td class="spider_label"><label for="mosaic_thumb_title_font_style"><?php echo __('Title font family:', BWG()->prefix); ?> </label></td>
1014
  <td>
1907
  <div class="wd-box-content">
1908
  <table style="clear:both;">
1909
  <tbody>
1910
+ <tr>
1911
+ <td class="spider_label"><label for="album_compact_thumb_margin"><?php _e('Distance between pictures:', BWG()->prefix); ?> </label></td>
1912
+ <td>
1913
+ <input type="text" name="album_compact_thumb_margin" id="album_compact_thumb_margin" value="<?php echo $row->album_compact_thumb_margin; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px
1914
+ </td>
1915
+ </tr>
1916
+ <tr>
1917
+ <td class="spider_label"><label><?php _e('Distance from container frame:', BWG()->prefix); ?> </label></td>
1918
+ <td>
1919
+ <input type="radio" name="compact_container_margin" id="compact_container_margin1" value="1"<?php if ($row->compact_container_margin == 1) echo 'checked="checked"'; ?> />
1920
+ <label for="compact_container_margin1"><?php _e('Yes', BWG()->prefix); ?></label>
1921
+ <input type="radio" name="compact_container_margin" id="compact_container_margin0" value="0"<?php if ($row->compact_container_margin == 0) echo 'checked="checked"'; ?> />
1922
+ <label for="compact_container_margin0"><?php _e('No', BWG()->prefix); ?></label>
1923
+ <div class="spider_description"><?php _e('Enable this option to add distance between the parent container and the thumbnails grid.', BWG()->prefix); ?></div>
1924
+ </td>
1925
+ </tr>
1926
  <tr>
1927
  <td class="spider_label"><label for="album_compact_thumb_padding"><?php echo __('Padding:', BWG()->prefix); ?> </label></td>
1928
  <td>
1930
  <div class="spider_description"><?php echo __('Use CSS type values.', BWG()->prefix); ?></div>
1931
  </td>
1932
  </tr>
 
 
 
 
 
 
 
1933
  <tr>
1934
  <td class="spider_label"><label for="album_compact_thumb_border_width"><?php echo __('Border width:', BWG()->prefix); ?> </label></td>
1935
  <td>
1975
  <td>
1976
  <select name="album_compact_thumb_hover_effect" id="album_compact_thumb_hover_effect">
1977
  <?php
1978
+ foreach ($thumbnail_hover_effects as $key => $hover_effect) {
1979
  ?>
1980
  <option value="<?php echo $key; ?>" <?php echo (($row->album_compact_thumb_hover_effect == $key) ? 'selected="selected"' : ''); ?>><?php echo __($hover_effect, BWG()->prefix); ?></option>
1981
  <?php
2081
  <input type="text" name="album_compact_title_font_color" id="album_compact_title_font_color" value="<?php echo $row->album_compact_title_font_color; ?>" class="color" />
2082
  </td>
2083
  </tr>
2084
+ <tr>
2085
+ <td class="spider_label"><label for="album_compact_title_font_color_hover"><?php echo __('Title font color (Show on hover):', BWG()->prefix); ?> </label></td>
2086
+ <td>
2087
+ <input type="text" name="album_compact_title_font_color_hover" id="album_compact_title_font_color_hover" value="<?php echo $row->album_compact_title_font_color_hover; ?>" class="color" />
2088
+ </td>
2089
+ </tr>
2090
  <tr>
2091
  <td class="spider_label"><label for="album_compact_title_font_style"><?php echo __('Title font family:', BWG()->prefix); ?> </label></td>
2092
  <td>
2138
  </td>
2139
  </tr>
2140
  <tr>
2141
+ <td class="spider_label"><label for="album_compact_back_font_size"><?php echo __('Back Font size:', BWG()->prefix); ?> </label></td>
2142
  <td>
2143
  <input type="text" name="album_compact_back_font_size" id="album_compact_back_font_size" value="<?php echo $row->album_compact_back_font_size; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px
2144
  </td>
2145
  </tr>
2146
  <tr>
2147
+ <td class="spider_label"><label for="album_compact_back_font_color"><?php echo __('Back Font color:', BWG()->prefix); ?> </label></td>
2148
  <td>
2149
  <input type="text" name="album_compact_back_font_color" id="album_compact_back_font_color" value="<?php echo $row->album_compact_back_font_color; ?>" class="color" />
2150
  </td>
2151
  </tr>
2152
  <tr>
2153
+ <td class="spider_label"><label for="album_compact_back_font_style"><?php echo __('Back Font family:', BWG()->prefix); ?> </label></td>
2154
  <td>
2155
  <select name="album_compact_back_font_style" id="album_compact_back_font_style">
2156
  <?php
2172
  </td>
2173
  </tr>
2174
  <tr>
2175
+ <td class="spider_label"><label for="album_compact_back_font_weight"><?php echo __('Back Font weight:', BWG()->prefix); ?> </label></td>
2176
  <td>
2177
  <select name="album_compact_back_font_weight" id="album_compact_back_font_weight">
2178
  <?php
2902
  <div class="wd-box-content">
2903
  <table style="clear:both;">
2904
  <tbody>
2905
+
2906
+ <tr>
2907
+ <td class="spider_label"><label for="album_masonry_thumb_padding"><?php echo __('Distance between pictures:', BWG()->prefix); ?> </label></td>
2908
+ <td>
2909
+ <input type="text" name="album_masonry_thumb_padding" id="album_masonry_thumb_padding" value="<?php echo $row->album_masonry_thumb_padding; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px
2910
+ </td>
2911
+ </tr>
2912
+ <tr>
2913
+ <td class="spider_label"><label><?php _e('Distance from container frame:', BWG()->prefix); ?> </label></td>
2914
+ <td>
2915
+ <input type="radio" name="album_masonry_container_margin" id="album_masonry_container_margin1" value="1"<?php if ($row->album_masonry_container_margin == 1) echo 'checked="checked"'; ?> />
2916
+ <label for="album_masonry_container_margin1"><?php _e('Yes', BWG()->prefix); ?></label>
2917
+ <input type="radio" name="album_masonry_container_margin" id="album_masonry_container_margin0" value="0"<?php if ($row->album_masonry_container_margin == 0) echo 'checked="checked"'; ?> />
2918
+ <label for="album_masonry_container_margin0"><?php _e('No', BWG()->prefix); ?></label>
2919
+ <div class="spider_description"><?php _e('Enable this option to add distance between the parent container and the thumbnails grid.', BWG()->prefix); ?></div>
2920
+ </td>
2921
+ </tr>
2922
  <tr>
2923
  <td class="spider_label"><label for="album_masonry_thumb_border_width"><?php echo __('Border width:', BWG()->prefix); ?> </label></td>
2924
  <td>
2957
  <td>
2958
  <select name="album_masonry_thumb_hover_effect" id="album_masonry_thumb_hover_effect">
2959
  <?php
2960
+ foreach ($thumbnail_hover_effects as $key => $hover_effect) {
2961
  ?>
2962
  <option value="<?php echo $key; ?>" <?php echo (($row->album_masonry_thumb_hover_effect == $key) ? 'selected="selected"' : ''); ?>><?php echo __($hover_effect, BWG()->prefix); ?></option>
2963
  <?php
2992
  <div class="wd-box-content">
2993
  <table style="clear:both;">
2994
  <tbody>
2995
+ <tr>
2996
+ <td class="spider_label">
2997
+ <label for="album_masonry_thumb_bg_color"><?php echo __('Thumbnail background color:', BWG()->prefix); ?> </label>
2998
+ </td>
2999
+ <td>
3000
+ <input type="text" name="album_masonry_thumb_bg_color" id="album_masonry_thumb_bg_color" value="<?php echo $row->album_masonry_thumb_bg_color; ?>" class="color" />
3001
+ </td>
3002
+ </tr>
3003
  <tr>
3004
  <td class="spider_label"><label for="album_masonry_thumb_transparent"><?php echo __('Thumbnail transparency:', BWG()->prefix); ?> </label></td>
3005
  <td>
3056
  <input type="text" name="album_masonry_title_font_color" id="album_masonry_title_font_color" value="<?php echo $row->album_masonry_title_font_color; ?>" class="color" />
3057
  </td>
3058
  </tr>
3059
+ <tr>
3060
+ <td class="spider_label"><label for="album_masonry_thumb_title_font_color_hover"><?php echo __('Title font color (Show on hover):', BWG()->prefix); ?> </label></td>
3061
+ <td>
3062
+ <input type="text" name="album_masonry_thumb_title_font_color_hover" id="album_masonry_thumb_title_font_color_hover" value="<?php echo $row->album_masonry_thumb_title_font_color_hover; ?>" class="color" />
3063
+ </td>
3064
+ </tr>
3065
  <tr>
3066
  <td class="spider_label"><label for="album_masonry_title_font_style"><?php echo __('Title font family:', BWG()->prefix); ?> </label></td>
3067
  <td>
3106
  </td>
3107
  </tr>
3108
  <tr>
3109
+ <td class="spider_label"><label for="album_masonry_back_font_size"><?php echo __('Back Font size:', BWG()->prefix); ?> </label></td>
3110
  <td>
3111
  <input type="text" name="album_masonry_back_font_size" id="album_masonry_back_font_size" value="<?php echo $row->album_masonry_back_font_size; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px
3112
  </td>
3113
  </tr>
3114
  <tr>
3115
+ <td class="spider_label"><label for="album_masonry_back_font_color"><?php echo __('Back Font color:', BWG()->prefix); ?> </label></td>
3116
  <td>
3117
  <input type="text" name="album_masonry_back_font_color" id="album_masonry_back_font_color" value="<?php echo $row->album_masonry_back_font_color; ?>" class="color" />
3118
  </td>
3119
  </tr>
3120
  <tr>
3121
+ <td class="spider_label"><label for="album_masonry_back_font_style"><?php echo __('Back Font family:', BWG()->prefix); ?> </label></td>
3122
  <td>
3123
  <select name="album_masonry_back_font_style" id="album_masonry_back_font_style">
3124
  <?php
3140
  </td>
3141
  </tr>
3142
  <tr>
3143
+ <td class="spider_label"><label for="album_masonry_back_font_weight"><?php echo __('Back Font weight:', BWG()->prefix); ?> </label></td>
3144
  <td>
3145
  <select name="album_masonry_back_font_weight" id="album_masonry_back_font_weight">
3146
  <?php
3712
  <td class="spider_label"><label for="lightbox_close_btn_bg_color"><?php echo __('Close button background color:', BWG()->prefix); ?> </label></td>
3713
  <td>
3714
  <input type="text" name="lightbox_close_btn_bg_color" id="lightbox_close_btn_bg_color" value="<?php echo $row->lightbox_close_btn_bg_color; ?>" class="color"/>
3715
+ <div class="spider_description"><?php echo __('The option does not apply to Full-width lightbox.', BWG()->prefix); ?></div>
3716
+ </td>
3717
  </tr>
3718
  <tr id="lightbox_close9">
3719
  <td class="spider_label"><label for="lightbox_close_btn_transparent"><?php echo __('Close button transparency:', BWG()->prefix); ?> </label></td>
3725
  <td class="spider_label"><label for="lightbox_close_btn_width"><?php echo __('Close button width:', BWG()->prefix); ?> </label></td>
3726
  <td>
3727
  <input type="text" name="lightbox_close_btn_width" id="lightbox_close_btn_width" value="<?php echo $row->lightbox_close_btn_width; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px
3728
+ <div class="spider_description"><?php echo __('The option does not apply to Full-width lightbox.', BWG()->prefix); ?></div>
3729
+ </td>
3730
  </tr>
3731
  <tr id="lightbox_close6">
3732
  <td class="spider_label"><label for="lightbox_close_btn_height"><?php echo __('Close button height:', BWG()->prefix); ?> </label></td>
3733
  <td>
3734
  <input type="text" name="lightbox_close_btn_height" id="lightbox_close_btn_height" value="<?php echo $row->lightbox_close_btn_height; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px
3735
+ <div class="spider_description"><?php echo __('The option does not apply to Full-width lightbox.', BWG()->prefix); ?></div>
3736
+ </td>
3737
  </tr>
3738
  <tr id="lightbox_close7">
3739
  <td class="spider_label"><label for="lightbox_close_btn_top"><?php echo __('Close button top:', BWG()->prefix); ?> </label></td>
3740
  <td>
3741
  <input type="text" name="lightbox_close_btn_top" id="lightbox_close_btn_top" value="<?php echo $row->lightbox_close_btn_top; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px
3742
+ <div class="spider_description"><?php echo __('The option does not apply to Full-width lightbox.', BWG()->prefix); ?></div>
3743
+ </td>
3744
  </tr>
3745
  <tr id="lightbox_close8">
3746
  <td class="spider_label"><label for="lightbox_close_btn_right"><?php echo __('Close button right:', BWG()->prefix); ?> </label></td>
3747
  <td>
3748
  <input type="text" name="lightbox_close_btn_right" id="lightbox_close_btn_right" value="<?php echo $row->lightbox_close_btn_right; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px
3749
+ <div class="spider_description"><?php echo __('The option does not apply to Full-width lightbox.', BWG()->prefix); ?></div>
3750
+ </td>
3751
  </tr>
3752
  <tr id="lightbox_close4">
3753
  <td class="spider_label"><label for="lightbox_close_btn_size"><?php echo __('Close button size:', BWG()->prefix); ?> </label></td>
5015
  </div>
5016
  </fieldset>
5017
  </div>
5018
+ <input type="hidden" id="default_theme" name="default_theme" value="<?php echo $row->default_theme; ?>" />
5019
+ <input type="hidden" id="active_tab" name="active_tab" value="<?php echo $params['active_tab']; ?>" />
5020
  <?php
5021
  }
5022
  }
admin/views/Widget.php CHANGED
@@ -45,18 +45,16 @@ class WidgetView_bwg {
45
  'order_by' => $order_by,
46
  'image_enable_page' => 0
47
  );
 
 
48
  if ($type == 'gallery') {
49
  if ($view_type == 'thumbnails') {
50
  $gallery_type = 'thumbnails';
51
- require_once(BWG()->plugin_dir . '/frontend/controllers/controller.php');
52
- $controller_class = 'BWGControllerSite';
53
- $view = 'Thumbnails';
54
  }
55
  else if ($view_type == 'masonry') {
56
  $gallery_type = 'thumbnails_masonry';
57
- require_once(BWG()->plugin_dir . '/frontend/controllers/BWGControllerThumbnails_masonry.php');
58
- $controller_class = 'BWGControllerThumbnails_masonry';
59
- $view = '';
60
  }
61
 
62
  $params['gallery_type'] = $gallery_type;
@@ -67,24 +65,21 @@ class WidgetView_bwg {
67
  $params['images_per_page'] = $count;
68
  }
69
  else {
70
- require_once(BWG()->plugin_dir . '/frontend/controllers/BWGControllerAlbum_compact_preview.php');
71
- $controller_class = 'BWGControllerAlbum_compact_preview';
72
- $view = '';
73
 
74
  $params['gallery_type'] = 'album_compact_preview';
75
  $params['album_id'] = $album_id;
76
  $params['compuct_albums_per_page'] = $count;
77
- $params['compuct_album_thumb_width'] = $width;
78
- $params['compuct_album_thumb_height'] = $height;
79
- $params['compuct_album_image_thumb_width'] = $width;
80
- $params['compuct_album_image_thumb_height'] = $height;
81
  $params['compuct_album_enable_page'] = 0;
82
  }
83
  $controller = new $controller_class($view);
84
- global $bwg;
85
  $pairs = WDWLibrary::get_shortcode_option_params( $params );
86
  $controller->execute($pairs, 1, $bwg);
87
- $bwg++;
88
  // After widget.
89
  echo $after_widget;
90
  }
@@ -110,10 +105,13 @@ class WidgetView_bwg {
110
  'theme_id' => 0,
111
  );
112
  $instance = wp_parse_args( (array) $instance, $defaults );
 
 
 
113
  ?>
114
  <p>
115
  <label for="<?php echo $id_title; ?>"><?php _e('Title:', BWG()->prefix); ?></label>
116
- <input class="widefat" id="<?php echo $id_title; ?>" name="<?php echo $name_title; ?>'" type="text" value="<?php echo $instance['title']; ?>"/>
117
  </p>
118
  <p>
119
  <label for="<?php echo $id_show; ?>"><?php _e('Type:', BWG()->prefix); ?></label><br>
45
  'order_by' => $order_by,
46
  'image_enable_page' => 0
47
  );
48
+ require_once(BWG()->plugin_dir . '/frontend/controllers/controller.php');
49
+ $controller_class = 'BWGControllerSite';
50
  if ($type == 'gallery') {
51
  if ($view_type == 'thumbnails') {
52
  $gallery_type = 'thumbnails';
53
+ $view = 'Thumbnails';
 
 
54
  }
55
  else if ($view_type == 'masonry') {
56
  $gallery_type = 'thumbnails_masonry';
57
+ $view = 'Thumbnails_masonry';
 
 
58
  }
59
 
60
  $params['gallery_type'] = $gallery_type;
65
  $params['images_per_page'] = $count;
66
  }
67
  else {
68
+ $view = 'Album_compact_preview';
 
 
69
 
70
  $params['gallery_type'] = 'album_compact_preview';
71
  $params['album_id'] = $album_id;
72
  $params['compuct_albums_per_page'] = $count;
73
+ $params['compuct_album_thumb_width'] = $width;
74
+ $params['compuct_album_thumb_height'] = $height;
75
+ $params['compuct_album_image_thumb_width'] = $width;
76
+ $params['compuct_album_image_thumb_height'] = $height;
77
  $params['compuct_album_enable_page'] = 0;
78
  }
79
  $controller = new $controller_class($view);
80
+ $bwg = WDWLibrary::unique_number();
81
  $pairs = WDWLibrary::get_shortcode_option_params( $params );
82
  $controller->execute($pairs, 1, $bwg);
 
83
  // After widget.
84
  echo $after_widget;
85
  }
105
  'theme_id' => 0,
106
  );
107
  $instance = wp_parse_args( (array) $instance, $defaults );
108
+ if (!isset($instance['view_type'])) {
109
+ $instance['view_type'] = "thumbnails";
110
+ }
111
  ?>
112
  <p>
113
  <label for="<?php echo $id_title; ?>"><?php _e('Title:', BWG()->prefix); ?></label>
114
+ <input class="widefat" id="<?php echo $id_title; ?>" name="<?php echo $name_title; ?>'" type="text" value="<?php echo htmlspecialchars( $instance['title'] ); ?>"/>
115
  </p>
116
  <p>
117
  <label for="<?php echo $id_show; ?>"><?php _e('Type:', BWG()->prefix); ?></label><br>
admin/views/WidgetSlideshow.php CHANGED
@@ -31,11 +31,11 @@ class WidgetSlideshowView_bwg {
31
  }
32
  // Widget output.
33
  require_once(BWG()->plugin_dir . '/frontend/controllers/controller.php');
34
- $controller_class = 'BWGControllerSite';
35
- $view = 'Slideshow';
36
- $controller = new $controller_class($view);
37
 
38
- global $bwg;
39
  $params = array (
40
  'from' => 'widget',
41
  'gallery_type' => 'slideshow',
@@ -52,7 +52,6 @@ class WidgetSlideshowView_bwg {
52
  );
53
  $pairs = WDWLibrary::get_shortcode_option_params( $params );
54
  $controller->execute($pairs, 1, $bwg);
55
- $bwg++;
56
  // After widget.
57
  echo $after_widget;
58
  }
@@ -82,7 +81,7 @@ class WidgetSlideshowView_bwg {
82
  ?>
83
  <p>
84
  <label for="<?php echo $id_title; ?>"><?php _e('Title:', BWG()->prefix); ?></label>
85
- <input class="widefat" id="<?php echo $id_title; ?>" name="<?php echo $name_title; ?>" type="text" value="<?php echo $instance['title']; ?>"/>
86
  </p>
87
  <p>
88
  <label for="<?php echo $id_gallery_id; ?>"><?php _e('Galleries:', BWG()->prefix); ?></label><br>
31
  }
32
  // Widget output.
33
  require_once(BWG()->plugin_dir . '/frontend/controllers/controller.php');
34
+ $controller_class = 'BWGControllerSite';
35
+ $view = 'Slideshow';
36
+ $controller = new $controller_class($view);
37
 
38
+ $bwg = WDWLibrary::unique_number();
39
  $params = array (
40
  'from' => 'widget',
41
  'gallery_type' => 'slideshow',
52
  );
53
  $pairs = WDWLibrary::get_shortcode_option_params( $params );
54
  $controller->execute($pairs, 1, $bwg);
 
55
  // After widget.
56
  echo $after_widget;
57
  }
81
  ?>
82
  <p>
83
  <label for="<?php echo $id_title; ?>"><?php _e('Title:', BWG()->prefix); ?></label>
84
+ <input class="widefat" id="<?php echo $id_title; ?>" name="<?php echo $name_title; ?>" type="text" value="<?php echo htmlspecialchars( $instance['title'] ); ?>"/>
85
  </p>
86
  <p>
87
  <label for="<?php echo $id_gallery_id; ?>"><?php _e('Galleries:', BWG()->prefix); ?></label><br>
admin/views/WidgetTags.php CHANGED
@@ -1,5 +1,4 @@
1
  <?php
2
-
3
  /**
4
  * Class WidgetTagsView_bwg
5
  */
@@ -21,7 +20,7 @@ class WidgetTagsView_bwg {
21
  $height = (isset($instance['height']) ? $instance['height'] : 250);
22
  $background_transparent = (isset($instance['background_transparent']) ? $instance['background_transparent'] : 1);
23
  $background_color = (isset($instance['background_color']) ? $instance['background_color'] : "000000");
24
- $text_color = (isset($instance['text_color']) ? $instance['text_color'] : "ffffff");
25
  $theme_id = (isset($instance['theme_id']) ? $instance['theme_id'] : 0);
26
  // Before widget.
27
  echo $before_widget;
@@ -33,9 +32,9 @@ class WidgetTagsView_bwg {
33
  require_once(BWG()->plugin_dir . '/frontend/controllers/BWGControllerWidget.php');
34
  $controller_class = 'BWGControllerWidgetFrontEnd';
35
  $controller = new $controller_class();
36
- global $bwg;
37
  $params = array (
38
  'type' => $type,
 
39
  'show_name' => $show_name,
40
  'open_option' => $open_option,
41
  'count' => $count,
@@ -46,7 +45,6 @@ class WidgetTagsView_bwg {
46
  'text_color' => $text_color,
47
  'theme_id' => $theme_id);
48
  $controller->execute($params);
49
- $bwg++;
50
  // After widget.
51
  echo $after_widget;
52
  }
@@ -58,7 +56,7 @@ class WidgetTagsView_bwg {
58
  * @param $instance
59
  */
60
  function form($params, $instance) {
61
- wp_register_script(BWG()->prefix . '_jscolor', BWG()->plugin_url . '/js/jscolor/jscolor.js', array('jquery'), '1.3.9');
62
  wp_enqueue_script(BWG()->prefix . '_jscolor');
63
  extract($params);
64
  $defaults = array(
@@ -71,14 +69,14 @@ class WidgetTagsView_bwg {
71
  'height' => 250,
72
  'background_transparent' => 1,
73
  'background_color' => '000000',
74
- 'text_color' => 'ffffff',
75
  'theme_id' => 0,
76
  );
77
  $instance = wp_parse_args((array) $instance, $defaults);
78
  ?>
79
  <p>
80
  <label for="<?php echo $id_title; ?>"><?php _e('Title:', BWG()->prefix); ?></label>
81
- <input class="widefat" id="<?php echo $id_title; ?>" name="<?php echo $name_title; ?>'" type="text" value="<?php echo $instance['title']; ?>"/>
82
  </p>
83
  <p>
84
  <label for="<?php echo $id_title; ?>"><?php _e('Type:', BWG()->prefix); ?></label><br>
@@ -101,7 +99,7 @@ class WidgetTagsView_bwg {
101
  <p>
102
  <label for="<?php echo $id_count; ?>"><?php _e('Number:', BWG()->prefix); ?></label><br>
103
  <input class="widefat" style="width:25%;" id="<?php echo $id_count; ?>" name="<?php echo $name_count; ?>'" type="text" value="<?php echo $instance['count']; ?>"/><br>
104
- <small><?php _e('0 for all.', BWG()->prefix); ?></small>
105
  </p>
106
  <p>
107
  <label for="<?php echo $id_width; ?>"><?php _e('Dimensions:', BWG()->prefix); ?></label><br>
1
  <?php
 
2
  /**
3
  * Class WidgetTagsView_bwg
4
  */
20
  $height = (isset($instance['height']) ? $instance['height'] : 250);
21
  $background_transparent = (isset($instance['background_transparent']) ? $instance['background_transparent'] : 1);
22
  $background_color = (isset($instance['background_color']) ? $instance['background_color'] : "000000");
23
+ $text_color = (isset($instance['text_color']) ? $instance['text_color'] : "eeeeee");
24
  $theme_id = (isset($instance['theme_id']) ? $instance['theme_id'] : 0);
25
  // Before widget.
26
  echo $before_widget;
32
  require_once(BWG()->plugin_dir . '/frontend/controllers/BWGControllerWidget.php');
33
  $controller_class = 'BWGControllerWidgetFrontEnd';
34
  $controller = new $controller_class();
 
35
  $params = array (
36
  'type' => $type,
37
+ 'bwg' => ( !WDWLibrary::elementor_is_active() ? WDWLibrary::unique_number() : 0 ),
38
  'show_name' => $show_name,
39
  'open_option' => $open_option,
40
  'count' => $count,
45
  'text_color' => $text_color,
46
  'theme_id' => $theme_id);
47
  $controller->execute($params);
 
48
  // After widget.
49
  echo $after_widget;
50
  }
56
  * @param $instance
57
  */
58
  function form($params, $instance) {
59
+ wp_register_script(BWG()->prefix . '_jscolor', BWG()->plugin_url . '/js/jscolor/jscolor.js', array('jquery'), '1.3.9');
60
  wp_enqueue_script(BWG()->prefix . '_jscolor');
61
  extract($params);
62
  $defaults = array(
69
  'height' => 250,
70
  'background_transparent' => 1,
71
  'background_color' => '000000',
72
+ 'text_color' => 'eeeeee',
73
  'theme_id' => 0,
74
  );
75
  $instance = wp_parse_args((array) $instance, $defaults);
76
  ?>
77
  <p>
78
  <label for="<?php echo $id_title; ?>"><?php _e('Title:', BWG()->prefix); ?></label>
79
+ <input class="widefat" id="<?php echo $id_title; ?>" name="<?php echo $name_title; ?>'" type="text" value="<?php echo htmlspecialchars( $instance['title'] ); ?>"/>
80
  </p>
81
  <p>
82
  <label for="<?php echo $id_title; ?>"><?php _e('Type:', BWG()->prefix); ?></label><br>
99
  <p>
100
  <label for="<?php echo $id_count; ?>"><?php _e('Number:', BWG()->prefix); ?></label><br>
101
  <input class="widefat" style="width:25%;" id="<?php echo $id_count; ?>" name="<?php echo $name_count; ?>'" type="text" value="<?php echo $instance['count']; ?>"/><br>
102
+ <small><?php _e('0 for all.', BWG()->prefix); ?></small>
103
  </p>
104
  <p>
105
  <label for="<?php echo $id_width; ?>"><?php _e('Dimensions:', BWG()->prefix); ?></label><br>
css/bwg_frontend.css CHANGED
@@ -132,6 +132,10 @@ div[id^="bwg_container"] div[id^="bwg_container"] .bwg_img_clear {
132
  z-index: 10100;
133
  }
134
 
 
 
 
 
135
  .spider_popup_close,
136
  .spider_popup_close_fullscreen {
137
  -moz-box-sizing: content-box !important;
@@ -221,6 +225,9 @@ div[id^="bwg_container"] div[id^="bwg_container"] .bwg_img_clear {
221
  color: #FF0000;
222
  display: block;
223
  }
 
 
 
224
 
225
  .bwg_image_info_container1,
226
  .bwg_image_rate_container1,
@@ -343,6 +350,7 @@ div[id^="bwg_search_container_1_"] div[id^="bwg_search_container_2_"] .bwg_searc
343
  }
344
 
345
  .SumoSelect > .optWrapper > .options li.opt {
 
346
  text-align: left;
347
  }
348
 
@@ -399,8 +407,9 @@ div[id^="bwg_search_container_1_"] div[id^="bwg_search_container_2_"] .bwg_searc
399
  }
400
  /* end sort */
401
 
402
- .spider_popup_wrap .wd_error {
403
  color: #CCCCCC;
 
404
  }
405
 
406
  div[id^="bwg_container"] .bwg_download_gallery {
@@ -480,7 +489,6 @@ div[id^="bwg_container"] .bwg-border-box * {
480
  }
481
 
482
  .bwg-item2 {
483
- position: absolute;
484
  top: 0;
485
  left: 0;
486
  bottom: 0;
@@ -488,6 +496,9 @@ div[id^="bwg_container"] .bwg-border-box * {
488
  width: 100%;
489
  height: 100%;
490
  }
 
 
 
491
 
492
  .bwg-title1,
493
  .bwg-ecommerce1 {
@@ -571,7 +582,7 @@ div[id^="bwg_container"] .bwg-border-box * {
571
  }
572
  .bwg_container {
573
  position: relative;
574
- min-height: 300px;
575
  }
576
 
577
  .bwg_inst_play_btn_cont,
@@ -602,75 +613,6 @@ div[id^="bwg_container"] .bwg-border-box * {
602
  display: inline-block;
603
  }
604
 
605
- /* Tags, Orders, Search */
606
- @media only screen and (max-width: 800px) {
607
-
608
- .bwg_thumbnail.bwg_container {
609
- padding: 0 1px;
610
- }
611
-
612
- .bwg_thumbnail .bwg_container .search_line {
613
- display: inline-block;
614
- }
615
-
616
- body .bwg_thumbnail.bwg_container .search_line .bwg_order_cont,
617
- body .bwg_thumbnail.bwg_container .search_line .search_tags_container,
618
- body .bwg_thumbnail.bwg_container .search_line .bwg_search_container_1 {
619
- width: 100%;
620
- margin: 0 0 10px 0;
621
- text-align: center;
622
- max-width: 100%;
623
- }
624
-
625
- .bwg_thumbnail .search_line .SumoSelect > .optWrapper.isFloating {
626
- position: absolute;
627
- max-height: none;
628
- bottom: auto;
629
- top:35px;
630
- }
631
-
632
- body .bwg_thumbnail .search_line .SumoSelect > .optWrapper.isFloating > ul.options {
633
- box-shadow: none;
634
- }
635
-
636
- .bwg_thumbnail.bwg_container .search_line .SumoSelect .optWrapper {
637
- width: 100%;
638
- height: auto!important;
639
- padding-bottom: 0px!important;
640
- }
641
-
642
- /* hide OK, Cancel buttons */
643
- .bwg_thumbnail.bwg_container .search_line .MultiControls {
644
- display: none!important;
645
- }
646
-
647
- .bwg_thumbnail.bwg_container .search_line .SumoSelect > .CaptionCont {
648
- width: 100%;
649
- text-align: center;
650
- }
651
-
652
- .bwg_thumbnail.bwg_container .search_line .bwg_search_container_1 {
653
- width: 100%;
654
- max-width: 100%!important;
655
- }
656
-
657
- .bwg_thumbnail.bwg_container .search_line .SumoSelect {
658
- width: inherit;
659
- height: inherit;
660
- cursor:pointer;
661
- display: block!important;
662
- }
663
-
664
- body .bwg_thumbnail.bwg_container .search_line .search-txt {
665
- padding: 0px 10px!important;
666
- }
667
-
668
- body .bwg_thumbnail.bwg_container .search_line .SumoSelect > .CaptionCont > label {
669
- width: 30px;
670
- }
671
- }
672
-
673
-
674
  .bwg_thumbnail.bwg_container .search_line {
675
  min-height: 50px;
676
  -webkit-box-shadow: 0px 5px 7px -5px rgba(0,0,0,0.16);
@@ -734,8 +676,8 @@ div[id^="bwg_container"] .bwg-border-box * {
734
  margin-bottom: 0px;
735
  line-height: 13px;
736
  }
737
- .bwg_thumbnail.bwg_container .search_line .SumoSelect ul.options {
738
- padding: 1px 0px 0 10px!important;
739
  }
740
 
741
  .bwg_thumbnail.bwg_container .search_line .SumoSelect {
@@ -928,6 +870,7 @@ margin-right: 10px;
928
  .bwg_thumbnail.bwg_container .search_line .bwg_search_container_1 {
929
  float: right;
930
  width: 30%;
 
931
  }
932
 
933
  .bwg_thumbnail.bwg_container .search_line .bwg_search_container_1 .bwg_search_container_2{
@@ -954,10 +897,6 @@ line-height: 12px;
954
 
955
  }
956
 
957
- .bwg_thumbnail.bwg_container .search_line .SumoSelect > .optWrapper > .options li:first-child {
958
- margin-top: 15px;
959
- }
960
-
961
  .bwg_thumbnail.bwg_container .search_line .SumoSelect > .optWrapper > .options li.opt label {
962
  color:#323A45;
963
  font-size: 12px;
@@ -1123,6 +1062,346 @@ div[id^="bwg_search_container_1_"] div[id^="bwg_search_container_2_"] .bwg_searc
1123
  height: initial;
1124
  }
1125
 
1126
- .bwg_container div[id^="bwg_container2_"] img {
1127
- height: initial;
1128
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
132
  z-index: 10100;
133
  }
134
 
135
+ .bwp_gallery_tags div[id^="bwg_container"] li {
136
+ border: none;
137
+ }
138
+
139
  .spider_popup_close,
140
  .spider_popup_close_fullscreen {
141
  -moz-box-sizing: content-box !important;
225
  color: #FF0000;
226
  display: block;
227
  }
228
+ .bwg_comment_waiting_message {
229
+ display:none;
230
+ }
231
 
232
  .bwg_image_info_container1,
233
  .bwg_image_rate_container1,
350
  }
351
 
352
  .SumoSelect > .optWrapper > .options li.opt {
353
+ border: none;
354
  text-align: left;
355
  }
356
 
407
  }
408
  /* end sort */
409
 
410
+ .wd_error {
411
  color: #CCCCCC;
412
+ font-size: initial;
413
  }
414
 
415
  div[id^="bwg_container"] .bwg_download_gallery {
489
  }
490
 
491
  .bwg-item2 {
 
492
  top: 0;
493
  left: 0;
494
  bottom: 0;
496
  width: 100%;
497
  height: 100%;
498
  }
499
+ .bwg-item2 {
500
+ position: absolute;
501
+ }
502
 
503
  .bwg-title1,
504
  .bwg-ecommerce1 {
582
  }
583
  .bwg_container {
584
  position: relative;
585
+ margin: 20px 0;
586
  }
587
 
588
  .bwg_inst_play_btn_cont,
613
  display: inline-block;
614
  }
615
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
616
  .bwg_thumbnail.bwg_container .search_line {
617
  min-height: 50px;
618
  -webkit-box-shadow: 0px 5px 7px -5px rgba(0,0,0,0.16);
676
  margin-bottom: 0px;
677
  line-height: 13px;
678
  }
679
+ .bwg_thumbnail.bwg_container .search_line .SumoSelect ul.options:not(:empty) {
680
+ padding: 15px 0px 0 10px !important;
681
  }
682
 
683
  .bwg_thumbnail.bwg_container .search_line .SumoSelect {
870
  .bwg_thumbnail.bwg_container .search_line .bwg_search_container_1 {
871
  float: right;
872
  width: 30%;
873
+ min-width: 120px;
874
  }
875
 
876
  .bwg_thumbnail.bwg_container .search_line .bwg_search_container_1 .bwg_search_container_2{
897
 
898
  }
899
 
 
 
 
 
900
  .bwg_thumbnail.bwg_container .search_line .SumoSelect > .optWrapper > .options li.opt label {
901
  color:#323A45;
902
  font-size: 12px;
1062
  height: initial;
1063
  }
1064
 
1065
+ /* Masonry */
1066
+ .bwg-masonry-vertical {
1067
+ flex-direction: column;
1068
+ }
1069
+ .bwg-masonry-horizontal {
1070
+ flex-direction: row;
1071
+ }
1072
+ .bwg-masonry-horizontal-parent {
1073
+ overflow-x: scroll;
1074
+ overflow-y: hidden;
1075
+ }
1076
+ .bwg-masonry-horizontal-container {
1077
+ width: fit-content;
1078
+ }
1079
+ .bwg-item.bwg-empty-item {
1080
+ border: 0 !important;
1081
+ padding: 0 !important;
1082
+ }
1083
+ /* End Masonry */
1084
+ .bwg-background {
1085
+ background-color: rgba(0, 0, 0, 0);
1086
+ position: relative;
1087
+ width: 100%;
1088
+ }
1089
+ .bwg-background .wd_error {
1090
+ color: #323A45;
1091
+ font-weight: bold;
1092
+ }
1093
+
1094
+ div[id^="bwg_container"] .bwg-carousel {
1095
+ margin: 0 auto;
1096
+ }
1097
+
1098
+ .bwg_carousel_preload {
1099
+ background-image: url('../images/ajax_loader.png');
1100
+ background-size: 50px!important;
1101
+ background-repeat: no-repeat;
1102
+ background-color: #ffffff;
1103
+ background-position: center;
1104
+ }
1105
+
1106
+ /* ------------- Carousel view -------------*/
1107
+ .bwg_container.bwg_carousel * {
1108
+ -moz-user-select: none;
1109
+ -khtml-user-select: none;
1110
+ -webkit-user-select: none;
1111
+ -ms-user-select: none;
1112
+ user-select: none;
1113
+ }
1114
+
1115
+ .bwg_container.bwg_carousel [id^="bwg_container2_"] * {
1116
+ -moz-user-select: none;
1117
+ -khtml-user-select: none;
1118
+ -webkit-user-select: none;
1119
+ -ms-user-select: none;
1120
+ user-select: none;
1121
+ }
1122
+
1123
+ .bwg_container.bwg_carousel [id^="bwg_container2_"] [class^="bwg_carousel_watermark_"] {
1124
+ position: relative;
1125
+ z-index: 15;
1126
+ }
1127
+
1128
+ .bwg_container.bwg_carousel [id^="bwg_container2_"] [class^="bwg_carousel_image_container_"] {
1129
+ display: inline-block;
1130
+ position: absolute;
1131
+ text-align: center;
1132
+ /*top:0px;*/
1133
+ vertical-align: middle;
1134
+ }
1135
+
1136
+ .bwg_container.bwg_carousel [id^="bwg_container2_"] [class^="bwg_carousel_watermark_container_"] {
1137
+ display: table-cell;
1138
+ margin: 0 auto;
1139
+ position: relative;
1140
+ vertical-align: middle;
1141
+ }
1142
+
1143
+ .bwg_container.bwg_carousel [id^="bwg_container2_"] [class^="bwg_carousel_watermark_container_"] div {
1144
+ display:table;
1145
+ margin:0 auto;
1146
+ }
1147
+
1148
+ .bwg_container.bwg_carousel [id^="bwg_container2_"] [class^="bwg_carousel_watermark_spun_"] {
1149
+ display: table-cell;
1150
+ overflow: hidden;
1151
+ position: relative;
1152
+ }
1153
+
1154
+ .bwg_container.bwg_carousel [id^="bwg_container2_"] [class^="bwg_carousel_watermark_image_"] {
1155
+ padding: 0 !important;
1156
+ display: inline-block;
1157
+ float: none !important;
1158
+ margin: 4px !important;
1159
+ position: relative;
1160
+ z-index: 15;
1161
+ }
1162
+
1163
+ .bwg_container.bwg_carousel [id^="bwg_container2_"] [class^="bwg_carousel_watermark_text_"],
1164
+ .bwg_container.bwg_carousel [id^="bwg_container2_"] [class^="bwg_carousel_watermark_text_"]:hover {
1165
+ text-decoration: none;
1166
+ margin: 4px;
1167
+ display:block;
1168
+ position: relative;
1169
+ z-index: 17;
1170
+ }
1171
+
1172
+ .bwg_container.bwg_carousel [id^="bwg_container2_"] .bwg_carousel-cont-child {
1173
+ max-width: 100%;
1174
+ position: relative;
1175
+ overflow: hidden;
1176
+ height: 100%;
1177
+ width: 100%;
1178
+ }
1179
+
1180
+ .bwg_container.bwg_carousel [id^="bwg_container2_"] .bwg-carousel-image {
1181
+ border:0;
1182
+ position:absolute;
1183
+ display:block;
1184
+ max-width:none;
1185
+ padding: 0 !important;
1186
+ margin: 0 !important;
1187
+ float: none !important;
1188
+ vertical-align: middle;
1189
+ height:100%;
1190
+ width:100%;
1191
+ background-position: center center;
1192
+ background-repeat: no-repeat;
1193
+ background-size: cover;
1194
+ vertical-align: middle;
1195
+ }
1196
+
1197
+ .bwg_container.bwg_carousel [id^="bwg_container2_"] .bwg-carousel {
1198
+ position:relative;
1199
+ max-width: 100%;
1200
+ width:100%;
1201
+ }
1202
+
1203
+ .bwg_container.bwg_carousel [id^="bwg_container2_"] [class^="bwg_carousel-feature"] {
1204
+ position:absolute;
1205
+ display:block;
1206
+ overflow:hidden;
1207
+ cursor:pointer;
1208
+ }
1209
+
1210
+ .bwg_container.bwg_carousel [id^="bwg_container2_"] [class^="bwg_carousel-feature"] [class^="bwg_carousel-caption"] [class^="bwg_carousel_title_text_"] {
1211
+ text-decoration: none;
1212
+ position: absolute;
1213
+ z-index: 15;
1214
+ /* bottom:0px; */
1215
+ display: inline-block;
1216
+ width: 75%;
1217
+ top:0px;
1218
+ text-align:center;
1219
+ word-wrap: break-word;
1220
+ word-break: break-word;
1221
+ }
1222
+
1223
+ .bwg_container.bwg_carousel [id^="bwg_container2_"] [id^="bwg_carousel-left"],
1224
+ .bwg_container.bwg_carousel [id^="bwg_container2_"] [id^="bwg_carousel-right"] {
1225
+ bottom:38%;
1226
+ cursor: pointer;
1227
+ display: inline;
1228
+ height: 30%;
1229
+ outline: medium none;
1230
+ position: absolute;
1231
+ width: 0%;
1232
+ z-index: 13;
1233
+ visibility: visible;
1234
+ }
1235
+
1236
+ .bwg_container.bwg_carousel [id^="bwg_container2_"] [id^="bwg_carousel-right"] {
1237
+ right: 0;
1238
+ left: auto;
1239
+ }
1240
+
1241
+ .bwg_container.bwg_carousel [id^="bwg_container2_"] [id^="bwg_carousel-left"] {
1242
+ left: 20px;
1243
+ }
1244
+
1245
+
1246
+
1247
+ .bwg_container.bwg_carousel [id^="bwg_container2_"] [class^="bwg_video_hide"] {
1248
+ width:100%;
1249
+ height:100%;
1250
+ position:absolute;
1251
+ z-index:22;
1252
+ }
1253
+
1254
+ .bwg_container.bwg_carousel [id^="bwg_container2_"] [id^="spider_carousel_left-ico_"] span,
1255
+ .bwg_container.bwg_carousel [id^="bwg_container2_"] [id^="spider_carousel_right-ico_"] span {
1256
+ display: table-cell;
1257
+ text-align: center;
1258
+ vertical-align: middle;
1259
+ z-index: 13;
1260
+ }
1261
+
1262
+ .bwg_container.bwg_carousel [id^="bwg_container2_"] [id^="spider_carousel_left-ico_"],
1263
+ .bwg_container.bwg_carousel [id^="bwg_container2_"] [id^="spider_carousel_right-ico_"] {
1264
+ z-index: 13;
1265
+ -moz-box-sizing: content-box;
1266
+ box-sizing: content-box;
1267
+ cursor: pointer;
1268
+ display: inline-table;
1269
+ line-height: 0;
1270
+ margin-top: -15px;
1271
+ position: absolute;
1272
+ top: 55%;
1273
+ }
1274
+
1275
+ .bwg_container.bwg_carousel [id^="bwg_container2_"] [id^="spider_carousel_left-ico_"]:hover,
1276
+ .bwg_container.bwg_carousel [id^="bwg_container2_"] [id^="spider_carousel_right-ico_"]:hover {
1277
+ cursor: pointer;
1278
+ }
1279
+
1280
+ .bwg_container.bwg_carousel [id^="bwg_container2_"] [id^="bwg_carousel_play_pause_"] {
1281
+ bottom: 0;
1282
+ cursor: pointer;
1283
+ display: inline-table;
1284
+ outline: medium none;
1285
+ position: absolute;
1286
+ height: inherit;
1287
+ width: 30%;
1288
+ left: 35%;
1289
+ z-index: 13;
1290
+ }
1291
+
1292
+ .bwg_container.bwg_carousel .bwg_carousel_play_pause:hover .bwg_carousel_play_pause-ico {
1293
+ display: inline-block !important;
1294
+ }
1295
+
1296
+ .bwg_container.bwg_carousel [id^="bwg_container2_"] [id^="bwg_carousel_play_pause_"]:hover span {
1297
+ position: relative;
1298
+ z-index: 13;
1299
+ }
1300
+ .bwg_container.bwg_carousel [id^="bwg_container2_"] [id^="bwg_carousel_play_pause_"] span {
1301
+ display: table-cell;
1302
+ text-align: center;
1303
+ vertical-align: middle;
1304
+ }
1305
+
1306
+ .bwg_container.bwg_carousel [id^="bwg_container2_"] .bwg_carousel_play_pause-ico {
1307
+ display: none !important;
1308
+ cursor: pointer;
1309
+ position: relative;
1310
+ z-index: 13;
1311
+ }
1312
+
1313
+ .bwg_container.bwg_carousel [id^="bwg_container2_"] .bwg_carousel_play_pause-ico:hover {
1314
+ display: inline-block;
1315
+ position: relative;
1316
+ z-index: 13;
1317
+ }
1318
+
1319
+ .bwg_container.bwg_carousel [id^="bwg_container2_"] [class^="bwg_carousel_embed_"] {
1320
+ padding: 0 !important;
1321
+ float: none !important;
1322
+ width: 100%;
1323
+ height: 100%;
1324
+ vertical-align: middle;
1325
+ position:relative;
1326
+ display: table;
1327
+ background-color:#000000;
1328
+ text-align: center;
1329
+ }
1330
+
1331
+ .bwg_container.bwg_carousel [id^="bwg_container2_"] [class^="bwg_carousel_embed_video_"] {
1332
+ padding: 0 !important;
1333
+ margin: 0 !important;
1334
+ float: none !important;
1335
+ vertical-align: middle;
1336
+ position:relative;
1337
+ display:table-cell;
1338
+ background-color:#000000;
1339
+ text-align: center;
1340
+ }
1341
+
1342
+ /* Search line responsiveness*/
1343
+ /* Tags, Orders, Search */
1344
+ .bwg_thumbnail.bwg_container {
1345
+ padding: 0 1px;
1346
+ }
1347
+
1348
+ .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive {
1349
+ display: inline-block;
1350
+ }
1351
+
1352
+ body .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .bwg_order_cont,
1353
+ body .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .search_tags_container,
1354
+ body .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .bwg_search_container_1 {
1355
+ width: 100%;
1356
+ margin: 0 0 10px 0;
1357
+ text-align: center;
1358
+ max-width: 100%;
1359
+ }
1360
+
1361
+ .bwg_thumbnail .search_line.bwg-search-line-responsive .SumoSelect > .optWrapper.isFloating {
1362
+ position: absolute;
1363
+ max-height: none;
1364
+ bottom: auto;
1365
+ top:35px;
1366
+ }
1367
+
1368
+ body .bwg_thumbnail .search_line.bwg-search-line-responsive .SumoSelect > .optWrapper.isFloating > ul.options {
1369
+ box-shadow: none;
1370
+ }
1371
+
1372
+ .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .SumoSelect .optWrapper {
1373
+ width: 100%;
1374
+ height: auto!important;
1375
+ padding-bottom: 0px!important;
1376
+ }
1377
+
1378
+ /* hide OK, Cancel buttons */
1379
+ .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .MultiControls {
1380
+ display: none!important;
1381
+ }
1382
+
1383
+ .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .SumoSelect > .CaptionCont {
1384
+ width: 100%;
1385
+ text-align: center;
1386
+ }
1387
+
1388
+ .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .bwg_search_container_1 {
1389
+ width: 100%;
1390
+ max-width: 100%!important;
1391
+ }
1392
+
1393
+ .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .SumoSelect {
1394
+ width: inherit;
1395
+ height: inherit;
1396
+ cursor:pointer;
1397
+ display: block!important;
1398
+ }
1399
+
1400
+ body .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .search-txt {
1401
+ padding: 0px 10px!important;
1402
+ }
1403
+
1404
+ body .bwg_thumbnail.bwg_container .search_line.bwg-search-line-responsive .SumoSelect > .CaptionCont > label {
1405
+ width: 30px;
1406
+ }
1407
+ /* Search line responsiveness*/
css/bwg_tables.css CHANGED
@@ -219,7 +219,7 @@
219
  }
220
 
221
  #TB_window {
222
- margin-left: -400px !important;
223
  }
224
 
225
  .input_th {
@@ -1415,7 +1415,19 @@ textarea.bwg_popup_input {
1415
  .wd-table-container {
1416
  height: calc(100% - 230px);
1417
  }
 
 
 
 
 
1418
  }
 
 
 
 
 
 
 
1419
  .tab_image {
1420
  width: 100%;
1421
  height: 100%;
@@ -1567,7 +1579,7 @@ textarea.bwg_popup_input {
1567
  }
1568
 
1569
  .col_num {
1570
- width: 25px;
1571
  text-align: right !important;
1572
  vertical-align: top;
1573
  }
@@ -1585,7 +1597,11 @@ textarea.bwg_popup_input {
1585
  cursor: pointer;
1586
  vertical-align: top;
1587
  }
1588
-
 
 
 
 
1589
  .wd-order {
1590
  vertical-align: top;
1591
  }
@@ -1604,20 +1620,48 @@ textarea.bwg_popup_input {
1604
  width: 100%;
1605
  resize: vertical;
1606
  }
1607
-
 
 
 
 
 
 
1608
  .images_table.media .column-title .media-icon img {
1609
  max-width: 120px;
 
 
 
 
 
 
 
 
1610
  }
1611
 
1612
- .images_table.media .column-title .media-icon {
1613
- max-height: 90px;
1614
- overflow: hidden;
 
 
 
 
 
1615
  }
1616
 
1617
  .images_table .media-icon {
1618
  width: 122px;
1619
  }
1620
 
 
 
 
 
 
 
 
 
 
1621
  .wd-delete-tag {
1622
  border: medium none;
1623
  cursor: pointer;
@@ -1628,6 +1672,25 @@ textarea.bwg_popup_input {
1628
  float: right;
1629
  }
1630
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1631
  @media screen and (max-width: 782px) {
1632
  .col_drag,
1633
  .wd-order,
@@ -1724,7 +1787,7 @@ textarea.bwg_popup_input {
1724
  opacity: 0.6;
1725
  position: fixed;
1726
  background-color: #000000;
1727
- background-image: url(../images/spinner.gif);
1728
  background-position: center;
1729
  background-repeat: no-repeat;
1730
  background-size: 50px;
@@ -2074,4 +2137,21 @@ li.tabs {
2074
  position: relative;
2075
  top: 0;
2076
  width: 20px;
2077
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
219
  }
220
 
221
  #TB_window {
222
+ margin-left: -400px;
223
  }
224
 
225
  .input_th {
1415
  .wd-table-container {
1416
  height: calc(100% - 230px);
1417
  }
1418
+
1419
+ .redirect_cont .wd-info.dashicons.dashicons-info {
1420
+ position:absolute;
1421
+ left:85px;
1422
+ }
1423
  }
1424
+
1425
+ @media screen and (min-width: 782px) {
1426
+ .redirect_cont .wd-info.dashicons.dashicons-info {
1427
+ display: none;
1428
+ }
1429
+ }
1430
+
1431
  .tab_image {
1432
  width: 100%;
1433
  height: 100%;
1579
  }
1580
 
1581
  .col_num {
1582
+ width: 32px;
1583
  text-align: right !important;
1584
  vertical-align: top;
1585
  }
1597
  cursor: pointer;
1598
  vertical-align: top;
1599
  }
1600
+ .col_order {
1601
+ width: 110px !important;
1602
+ text-align: center !important;
1603
+ cursor: pointer;
1604
+ }
1605
  .wd-order {
1606
  vertical-align: top;
1607
  }
1620
  width: 100%;
1621
  resize: vertical;
1622
  }
1623
+ .images_table.media .column-title .media-icon {
1624
+ max-height: 90px;
1625
+ height: 90px;
1626
+ overflow: hidden;
1627
+ position: relative;
1628
+ border: 1px solid #e5e5e5;
1629
+ }
1630
  .images_table.media .column-title .media-icon img {
1631
  max-width: 120px;
1632
+ position: absolute;
1633
+ left: 50%;
1634
+ top: 50%;
1635
+ width: 100%;
1636
+ -webkit-transform: translate(-50%,-50%);
1637
+ -ms-transform: translate(-50%,-50%);
1638
+ transform: translate(-50%,-50%);
1639
+ border-style: none;
1640
  }
1641
 
1642
+ .bwg-gallery-lists.media .column-title .media-icon {
1643
+ max-height: 60px;
1644
+ height: 60px;
1645
+ width: 100px;
1646
+ }
1647
+
1648
+ .bwg-gallery-lists.media .column-title .media-icon img {
1649
+ max-width: 100px;
1650
  }
1651
 
1652
  .images_table .media-icon {
1653
  width: 122px;
1654
  }
1655
 
1656
+ .gallery_image_thumb {
1657
+ width: 120px;
1658
+ height: 90px;
1659
+ }
1660
+
1661
+ .media-icon .bwg_no_border {
1662
+ border: none;
1663
+ }
1664
+
1665
  .wd-delete-tag {
1666
  border: medium none;
1667
  cursor: pointer;
1672
  float: right;
1673
  }
1674
 
1675
+ @media screen and (max-width: 1280px) {
1676
+ #images_table .has-media-icon~.row-actions {
1677
+ margin-left: 0px;
1678
+ }
1679
+ }
1680
+
1681
+ @media screen and (min-width: 1280px) {
1682
+ #images_table .has-media-icon~.row-actions {
1683
+ margin-left: 132px;
1684
+ }
1685
+ }
1686
+
1687
+ @media screen and (min-width: 768px) and (max-width: 1280px) {
1688
+ .col_drag,
1689
+ .col_desc {
1690
+ display: none !important;
1691
+ }
1692
+ }
1693
+
1694
  @media screen and (max-width: 782px) {
1695
  .col_drag,
1696
  .wd-order,
1787
  opacity: 0.6;
1788
  position: fixed;
1789
  background-color: #000000;
1790
+ background-image: url(../images/ajax_loader.png);
1791
  background-position: center;
1792
  background-repeat: no-repeat;
1793
  background-size: 50px;
2137
  position: relative;
2138
  top: 0;
2139
  width: 20px;
2140
+ }
2141
+
2142
+ #select_msg {
2143
+ display: block;
2144
+ }
2145
+
2146
+ #croped_preview .spider_crop, #crop_image .spider_crop {
2147
+ margin-top: 10px;
2148
+ }
2149
+
2150
+ .col_redirect .dashicons-info {
2151
+ cursor: pointer;
2152
+ color:#32373c;
2153
+ }
2154
+
2155
+ .ui-tooltip-content a {
2156
+ color:#FFFFFF;
2157
+ }
css/font-awesome/font-awesome.min.css ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ /*!
2
+ * Font Awesome 4.6.3 by @davegandy - http://fontawesome.io - @fontawesome
3
+ * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
4
+ */.fa.fa-pull-left,.fa.pull-left{margin-right:.3em}.fa-fw,.fa-li{text-align:center}@font-face{font-family:FontAwesome;src:url(fonts/fontawesome-webfont.eot?v=4.6.3);src:url(fonts/fontawesome-webfont.eot?#iefix&v=4.6.3) format('embedded-opentype'),url(fonts/fontawesome-webfont.woff2?v=4.6.3) format('woff2'),url(fonts/fontawesome-webfont.woff?v=4.6.3) format('woff'),url(fonts/fontawesome-webfont.ttf?v=4.6.3) format('truetype'),url(fonts/fontawesome-webfont.svg?v=4.6.3#fontawesomeregular) format('svg');font-weight:400;font-style:normal}#bwg_rotate_image .fa,#spider_popup_wrap .fa,div[id^=bwg_container] .fa{display:inline-block;font-family:FontAwesome!important;font-style:normal;font-weight:400;text-rendering:auto;line-height:1!important;-webkit-font-smoothing:antialiased!important;-moz-osx-font-smoothing:grayscale!important}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa.fa-pull-right,.fa.pull-right{margin-left:.3em}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:.08em solid #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right,.pull-right{float:right}.pull-left{float:left}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scale(-1,1);-ms-transform:scale(-1,1);transform:scale(-1,1)}.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";-webkit-transform:scale(1,-1);-ms-transform:scale(1,-1);transform:scale(1,-1)}:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-rotate-90{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-close:before,.fa-remove:before,.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-cog:before,.fa-gear:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-repeat:before,.fa-rotate-right:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-image:before,.fa-photo:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before,.fa-resize-full:before{content:"\f065"}.fa-compress:before,.fa-resize-small:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-exclamation-triangle:before,.fa-warning:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before,.fa-resize-vertical:before{content:"\f07d"}.fa-arrows-h:before,.fa-resize-horizontal:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-cogs:before,.fa-gears:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-feed:before,.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before,.fa-fullscreen:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-floppy-o:before,.fa-save:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-bars:before,.fa-navicon:before,.fa-reorder:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-sort:before,.fa-unsorted:before{content:"\f0dc"}.fa-sort-desc:before,.fa-sort-down:before{content:"\f0dd"}.fa-sort-asc:before,.fa-sort-up:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-gavel:before,.fa-legal:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-bolt:before,.fa-flash:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-clipboard:before,.fa-paste:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-chain-broken:before,.fa-unlink:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-caret-square-o-down:before,.fa-toggle-down:before{content:"\f150"}.fa-caret-square-o-up:before,.fa-toggle-up:before{content:"\f151"}.fa-caret-square-o-right:before,.fa-toggle-right:before{content:"\f152"}.fa-eur:before,.fa-euro:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-inr:before,.fa-rupee:before{content:"\f156"}.fa-cny:before,.fa-jpy:before,.fa-rmb:before,.fa-yen:before{content:"\f157"}.fa-rouble:before,.fa-rub:before,.fa-ruble:before{content:"\f158"}.fa-krw:before,.fa-won:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before,.fa-gratipay:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-caret-square-o-left:before,.fa-toggle-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-try:before,.fa-turkish-lira:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-bank:before,.fa-institution:before,.fa-university:before{content:"\f19c"}.fa-graduation-cap:before,.fa-mortar-board:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-image-o:before,.fa-file-photo-o:before,.fa-file-picture-o:before{content:"\f1c5"}.fa-file-archive-o:before,.fa-file-zip-o:before{content:"\f1c6"}.fa-file-audio-o:before,.fa-file-sound-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-ring:before,.fa-life-saver:before,.fa-support:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-rebel:before,.fa-resistance:before{content:"\f1d0"}.fa-empire:before,.fa-ge:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-hacker-news:before,.fa-y-combinator-square:before,.fa-yc-square:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-paper-plane:before,.fa-send:before{content:"\f1d8"}.fa-paper-plane-o:before,.fa-send-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-circle-thin:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-futbol-o:before,.fa-soccer-ball-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-ils:before,.fa-shekel:before,.fa-sheqel:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"}.fa-buysellads:before{content:"\f20d"}.fa-connectdevelop:before{content:"\f20e"}.fa-dashcube:before{content:"\f210"}.fa-forumbee:before{content:"\f211"}.fa-leanpub:before{content:"\f212"}.fa-sellsy:before{content:"\f213"}.fa-shirtsinbulk:before{content:"\f214"}.fa-simplybuilt:before{content:"\f215"}.fa-skyatlas:before{content:"\f216"}.fa-cart-plus:before{content:"\f217"}.fa-cart-arrow-down:before{content:"\f218"}.fa-diamond:before{content:"\f219"}.fa-ship:before{content:"\f21a"}.fa-user-secret:before{content:"\f21b"}.fa-motorcycle:before{content:"\f21c"}.fa-street-view:before{content:"\f21d"}.fa-heartbeat:before{content:"\f21e"}.fa-venus:before{content:"\f221"}.fa-mars:before{content:"\f222"}.fa-mercury:before{content:"\f223"}.fa-intersex:before,.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-venus-double:before{content:"\f226"}.fa-mars-double:before{content:"\f227"}.fa-venus-mars:before{content:"\f228"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-neuter:before{content:"\f22c"}.fa-genderless:before{content:"\f22d"}.fa-facebook-official:before{content:"\f230"}.fa-pinterest-p:before{content:"\f231"}.fa-whatsapp:before{content:"\f232"}.fa-server:before{content:"\f233"}.fa-user-plus:before{content:"\f234"}.fa-user-times:before{content:"\f235"}.fa-bed:before,.fa-hotel:before{content:"\f236"}.fa-viacoin:before{content:"\f237"}.fa-train:before{content:"\f238"}.fa-subway:before{content:"\f239"}.fa-medium:before{content:"\f23a"}.fa-y-combinator:before,.fa-yc:before{content:"\f23b"}.fa-optin-monster:before{content:"\f23c"}.fa-opencart:before{content:"\f23d"}.fa-expeditedssl:before{content:"\f23e"}.fa-battery-4:before,.fa-battery-full:before{content:"\f240"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\f241"}.fa-battery-2:before,.fa-battery-half:before{content:"\f242"}.fa-battery-1:before,.fa-battery-quarter:before{content:"\f243"}.fa-battery-0:before,.fa-battery-empty:before{content:"\f244"}.fa-mouse-pointer:before{content:"\f245"}.fa-i-cursor:before{content:"\f246"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-sticky-note:before{content:"\f249"}.fa-sticky-note-o:before{content:"\f24a"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-diners-club:before{content:"\f24c"}.fa-clone:before{content:"\f24d"}.fa-balance-scale:before{content:"\f24e"}.fa-hourglass-o:before{content:"\f250"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\f251"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\f253"}.fa-hourglass:before{content:"\f254"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\f255"}.fa-hand-paper-o:before,.fa-hand-stop-o:before{content:"\f256"}.fa-hand-scissors-o:before{content:"\f257"}.fa-hand-lizard-o:before{content:"\f258"}.fa-hand-spock-o:before{content:"\f259"}.fa-hand-pointer-o:before{content:"\f25a"}.fa-hand-peace-o:before{content:"\f25b"}.fa-trademark:before{content:"\f25c"}.fa-registered:before{content:"\f25d"}.fa-creative-commons:before{content:"\f25e"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-tripadvisor:before{content:"\f262"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-get-pocket:before{content:"\f265"}.fa-wikipedia-w:before{content:"\f266"}.fa-safari:before{content:"\f267"}.fa-chrome:before{content:"\f268"}.fa-firefox:before{content:"\f269"}.fa-opera:before{content:"\f26a"}.fa-internet-explorer:before{content:"\f26b"}.fa-television:before,.fa-tv:before{content:"\f26c"}.fa-contao:before{content:"\f26d"}.fa-500px:before{content:"\f26e"}.fa-amazon:before{content:"\f270"}.fa-calendar-plus-o:before{content:"\f271"}.fa-calendar-minus-o:before{content:"\f272"}.fa-calendar-times-o:before{content:"\f273"}.fa-calendar-check-o:before{content:"\f274"}.fa-industry:before{content:"\f275"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-map-o:before{content:"\f278"}.fa-map:before{content:"\f279"}.fa-commenting:before{content:"\f27a"}.fa-commenting-o:before{content:"\f27b"}.fa-houzz:before{content:"\f27c"}.fa-vimeo:before{content:"\f27d"}.fa-black-tie:before{content:"\f27e"}.fa-fonticons:before{content:"\f280"}.fa-reddit-alien:before{content:"\f281"}.fa-edge:before{content:"\f282"}.fa-credit-card-alt:before{content:"\f283"}.fa-codiepie:before{content:"\f284"}.fa-modx:before{content:"\f285"}.fa-fort-awesome:before{content:"\f286"}.fa-usb:before{content:"\f287"}.fa-product-hunt:before{content:"\f288"}.fa-mixcloud:before{content:"\f289"}.fa-scribd:before{content:"\f28a"}.fa-pause-circle:before{content:"\f28b"}.fa-pause-circle-o:before{content:"\f28c"}.fa-stop-circle:before{content:"\f28d"}.fa-stop-circle-o:before{content:"\f28e"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-hashtag:before{content:"\f292"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-percent:before{content:"\f295"}.fa-gitlab:before{content:"\f296"}.fa-wpbeginner:before{content:"\f297"}.fa-wpforms:before{content:"\f298"}.fa-envira:before{content:"\f299"}.fa-universal-access:before{content:"\f29a"}.fa-wheelchair-alt:before{content:"\f29b"}.fa-question-circle-o:before{content:"\f29c"}.fa-blind:before{content:"\f29d"}.fa-audio-description:before{content:"\f29e"}.fa-volume-control-phone:before{content:"\f2a0"}.fa-braille:before{content:"\f2a1"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-american-sign-language-interpreting:before,.fa-asl-interpreting:before{content:"\f2a3"}.fa-deaf:before,.fa-deafness:before,.fa-hard-of-hearing:before{content:"\f2a4"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-sign-language:before,.fa-signing:before{content:"\f2a7"}.fa-low-vision:before{content:"\f2a8"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.fa-pied-piper:before{content:"\f2ae"}.fa-first-order:before{content:"\f2b0"}.fa-yoast:before{content:"\f2b1"}.fa-themeisle:before{content:"\f2b2"}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:"\f2b3"}.fa-fa:before,.fa-font-awesome:before{content:"\f2b4"}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}
css/font-awesome/less/animated.less DELETED
@@ -1,34 +0,0 @@
1
- // Animated Icons
2
- // --------------------------
3
-
4
- .@{fa-css-prefix}-spin {
5
- -webkit-animation: fa-spin 2s infinite linear;
6
- animation: fa-spin 2s infinite linear;
7
- }
8
-
9
- .@{fa-css-prefix}-pulse {
10
- -webkit-animation: fa-spin 1s infinite steps(8);
11
- animation: fa-spin 1s infinite steps(8);
12
- }
13
-
14
- @-webkit-keyframes fa-spin {
15
- 0% {
16
- -webkit-transform: rotate(0deg);
17
- transform: rotate(0deg);
18
- }
19
- 100% {
20
- -webkit-transform: rotate(359deg);
21
- transform: rotate(359deg);
22
- }
23
- }
24
-
25
- @keyframes fa-spin {
26
- 0% {
27
- -webkit-transform: rotate(0deg);
28
- transform: rotate(0deg);
29
- }
30
- 100% {
31
- -webkit-transform: rotate(359deg);
32
- transform: rotate(359deg);
33
- }
34
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/font-awesome/less/bordered-pulled.less DELETED
@@ -1,25 +0,0 @@
1
- // Bordered & Pulled
2
- // -------------------------
3
-
4
- .@{fa-css-prefix}-border {
5
- padding: .2em .25em .15em;
6
- border: solid .08em @fa-border-color;
7
- border-radius: .1em;
8
- }
9
-
10
- .@{fa-css-prefix}-pull-left { float: left; }
11
- .@{fa-css-prefix}-pull-right { float: right; }
12
-
13
- .@{fa-css-prefix} {
14
- &.@{fa-css-prefix}-pull-left { margin-right: .3em; }
15
- &.@{fa-css-prefix}-pull-right { margin-left: .3em; }
16
- }
17
-
18
- /* Deprecated as of 4.4.0 */
19
- .pull-right { float: right; }
20
- .pull-left { float: left; }
21
-
22
- .@{fa-css-prefix} {
23
- &.pull-left { margin-right: .3em; }
24
- &.pull-right { margin-left: .3em; }
25
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/font-awesome/less/core.less DELETED
@@ -1,12 +0,0 @@
1
- // Base Class Definition
2
- // -------------------------
3
-
4
- .@{fa-css-prefix} {
5
- display: inline-block;
6
- font: normal normal normal @fa-font-size-base/@fa-line-height-base FontAwesome; // shortening font declaration
7
- font-size: inherit; // can't have font-size inherit on line above, so need to override
8
- text-rendering: auto; // optimizelegibility throws things off #1094
9
- -webkit-font-smoothing: antialiased;
10
- -moz-osx-font-smoothing: grayscale;
11
-
12
- }
 
 
 
 
 
 
 
 
 
 
 
 
css/font-awesome/less/fixed-width.less DELETED
@@ -1,6 +0,0 @@
1
- // Fixed Width Icons
2
- // -------------------------
3
- .@{fa-css-prefix}-fw {
4
- width: (18em / 14);
5
- text-align: center;
6
- }
 
 
 
 
 
 
css/font-awesome/less/font-awesome.less DELETED
@@ -1,18 +0,0 @@
1
- /*!
2
- * Font Awesome 4.6.3 by @davegandy - http://fontawesome.io - @fontawesome
3
- * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
4
- */
5
-
6
- @import "variables.less";
7
- @import "mixins.less";
8
- @import "path.less";
9
- @import "core.less";
10
- @import "larger.less";
11
- @import "fixed-width.less";
12
- @import "list.less";
13
- @import "bordered-pulled.less";
14
- @import "animated.less";
15
- @import "rotated-flipped.less";
16
- @import "stacked.less";
17
- @import "icons.less";
18
- @import "screen-reader.less";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/font-awesome/less/icons.less DELETED
@@ -1,733 +0,0 @@
1
- /* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
2
- readers do not read off random characters that represent icons */
3
-
4
- .@{fa-css-prefix}-glass:before { content: @fa-var-glass; }
5
- .@{fa-css-prefix}-music:before { content: @fa-var-music; }
6
- .@{fa-css-prefix}-search:before { content: @fa-var-search; }
7
- .@{fa-css-prefix}-envelope-o:before { content: @fa-var-envelope-o; }
8
- .@{fa-css-prefix}-heart:before { content: @fa-var-heart; }
9
- .@{fa-css-prefix}-star:before { content: @fa-var-star; }
10
- .@{fa-css-prefix}-star-o:before { content: @fa-var-star-o; }
11
- .@{fa-css-prefix}-user:before { content: @fa-var-user; }
12
- .@{fa-css-prefix}-film:before { content: @fa-var-film; }
13
- .@{fa-css-prefix}-th-large:before { content: @fa-var-th-large; }
14
- .@{fa-css-prefix}-th:before { content: @fa-var-th; }
15
- .@{fa-css-prefix}-th-list:before { content: @fa-var-th-list; }
16
- .@{fa-css-prefix}-check:before { content: @fa-var-check; }
17
- .@{fa-css-prefix}-remove:before,
18
- .@{fa-css-prefix}-close:before,
19
- .@{fa-css-prefix}-times:before { content: @fa-var-times; }
20
- .@{fa-css-prefix}-search-plus:before { content: @fa-var-search-plus; }
21
- .@{fa-css-prefix}-search-minus:before { content: @fa-var-search-minus; }
22
- .@{fa-css-prefix}-power-off:before { content: @fa-var-power-off; }
23
- .@{fa-css-prefix}-signal:before { content: @fa-var-signal; }
24
- .@{fa-css-prefix}-gear:before,
25
- .@{fa-css-prefix}-cog:before { content: @fa-var-cog; }
26
- .@{fa-css-prefix}-trash-o:before { content: @fa-var-trash-o; }
27
- .@{fa-css-prefix}-home:before { content: @fa-var-home; }
28
- .@{fa-css-prefix}-file-o:before { content: @fa-var-file-o; }
29
- .@{fa-css-prefix}-clock-o:before { content: @fa-var-clock-o; }
30
- .@{fa-css-prefix}-road:before { content: @fa-var-road; }
31
- .@{fa-css-prefix}-download:before { content: @fa-var-download; }
32
- .@{fa-css-prefix}-arrow-circle-o-down:before { content: @fa-var-arrow-circle-o-down; }
33
- .@{fa-css-prefix}-arrow-circle-o-up:before { content: @fa-var-arrow-circle-o-up; }
34
- .@{fa-css-prefix}-inbox:before { content: @fa-var-inbox; }
35
- .@{fa-css-prefix}-play-circle-o:before { content: @fa-var-play-circle-o; }
36
- .@{fa-css-prefix}-rotate-right:before,
37
- .@{fa-css-prefix}-repeat:before { content: @fa-var-repeat; }
38
- .@{fa-css-prefix}-refresh:before { content: @fa-var-refresh; }
39
- .@{fa-css-prefix}-list-alt:before { content: @fa-var-list-alt; }
40
- .@{fa-css-prefix}-lock:before { content: @fa-var-lock; }
41
- .@{fa-css-prefix}-flag:before { content: @fa-var-flag; }
42
- .@{fa-css-prefix}-headphones:before { content: @fa-var-headphones; }
43
- .@{fa-css-prefix}-volume-off:before { content: @fa-var-volume-off; }
44
- .@{fa-css-prefix}-volume-down:before { content: @fa-var-volume-down; }
45
- .@{fa-css-prefix}-volume-up:before { content: @fa-var-volume-up; }
46
- .@{fa-css-prefix}-qrcode:before { content: @fa-var-qrcode; }
47
- .@{fa-css-prefix}-barcode:before { content: @fa-var-barcode; }
48
- .@{fa-css-prefix}-tag:before { content: @fa-var-tag; }
49
- .@{fa-css-prefix}-tags:before { content: @fa-var-tags; }
50
- .@{fa-css-prefix}-book:before { content: @fa-var-book; }
51
- .@{fa-css-prefix}-bookmark:before { content: @fa-var-bookmark; }
52
- .@{fa-css-prefix}-print:before { content: @fa-var-print; }
53
- .@{fa-css-prefix}-camera:before { content: @fa-var-camera; }
54
- .@{fa-css-prefix}-font:before { content: @fa-var-font; }
55
- .@{fa-css-prefix}-bold:before { content: @fa-var-bold; }
56
- .@{fa-css-prefix}-italic:before { content: @fa-var-italic; }
57
- .@{fa-css-prefix}-text-height:before { content: @fa-var-text-height; }
58
- .@{fa-css-prefix}-text-width:before { content: @fa-var-text-width; }
59
- .@{fa-css-prefix}-align-left:before { content: @fa-var-align-left; }
60
- .@{fa-css-prefix}-align-center:before { content: @fa-var-align-center; }
61
- .@{fa-css-prefix}-align-right:before { content: @fa-var-align-right; }
62
- .@{fa-css-prefix}-align-justify:before { content: @fa-var-align-justify; }
63
- .@{fa-css-prefix}-list:before { content: @fa-var-list; }
64
- .@{fa-css-prefix}-dedent:before,
65
- .@{fa-css-prefix}-outdent:before { content: @fa-var-outdent; }
66
- .@{fa-css-prefix}-indent:before { content: @fa-var-indent; }
67
- .@{fa-css-prefix}-video-camera:before { content: @fa-var-video-camera; }
68
- .@{fa-css-prefix}-photo:before,
69
- .@{fa-css-prefix}-image:before,
70
- .@{fa-css-prefix}-picture-o:before { content: @fa-var-picture-o; }
71
- .@{fa-css-prefix}-pencil:before { content: @fa-var-pencil; }
72
- .@{fa-css-prefix}-map-marker:before { content: @fa-var-map-marker; }
73
- .@{fa-css-prefix}-adjust:before { content: @fa-var-adjust; }
74
- .@{fa-css-prefix}-tint:before { content: @fa-var-tint; }
75
- .@{fa-css-prefix}-edit:before,
76
- .@{fa-css-prefix}-pencil-square-o:before { content: @fa-var-pencil-square-o; }
77
- .@{fa-css-prefix}-share-square-o:before { content: @fa-var-share-square-o; }
78
- .@{fa-css-prefix}-check-square-o:before { content: @fa-var-check-square-o; }
79
- .@{fa-css-prefix}-arrows:before { content: @fa-var-arrows; }
80
- .@{fa-css-prefix}-step-backward:before { content: @fa-var-step-backward; }
81
- .@{fa-css-prefix}-fast-backward:before { content: @fa-var-fast-backward; }
82
- .@{fa-css-prefix}-backward:before { content: @fa-var-backward; }
83
- .@{fa-css-prefix}-play:before { content: @fa-var-play; }
84
- .@{fa-css-prefix}-pause:before { content: @fa-var-pause; }
85
- .@{fa-css-prefix}-stop:before { content: @fa-var-stop; }
86
- .@{fa-css-prefix}-forward:before { content: @fa-var-forward; }
87
- .@{fa-css-prefix}-fast-forward:before { content: @fa-var-fast-forward; }
88
- .@{fa-css-prefix}-step-forward:before { content: @fa-var-step-forward; }
89
- .@{fa-css-prefix}-eject:before { content: @fa-var-eject; }
90
- .@{fa-css-prefix}-chevron-left:before { content: @fa-var-chevron-left; }
91
- .@{fa-css-prefix}-chevron-right:before { content: @fa-var-chevron-right; }
92
- .@{fa-css-prefix}-plus-circle:before { content: @fa-var-plus-circle; }
93
- .@{fa-css-prefix}-minus-circle:before { content: @fa-var-minus-circle; }
94
- .@{fa-css-prefix}-times-circle:before { content: @fa-var-times-circle; }
95
- .@{fa-css-prefix}-check-circle:before { content: @fa-var-check-circle; }
96
- .@{fa-css-prefix}-question-circle:before { content: @fa-var-question-circle; }
97
- .@{fa-css-prefix}-info-circle:before { content: @fa-var-info-circle; }
98
- .@{fa-css-prefix}-crosshairs:before { content: @fa-var-crosshairs; }
99
- .@{fa-css-prefix}-times-circle-o:before { content: @fa-var-times-circle-o; }
100
- .@{fa-css-prefix}-check-circle-o:before { content: @fa-var-check-circle-o; }
101
- .@{fa-css-prefix}-ban:before { content: @fa-var-ban; }
102
- .@{fa-css-prefix}-arrow-left:before { content: @fa-var-arrow-left; }
103
- .@{fa-css-prefix}-arrow-right:before { content: @fa-var-arrow-right; }
104
- .@{fa-css-prefix}-arrow-up:before { content: @fa-var-arrow-up; }
105
- .@{fa-css-prefix}-arrow-down:before { content: @fa-var-arrow-down; }
106
- .@{fa-css-prefix}-mail-forward:before,
107
- .@{fa-css-prefix}-share:before { content: @fa-var-share; }
108
- .@{fa-css-prefix}-expand:before { content: @fa-var-expand; }
109
- .@{fa-css-prefix}-compress:before { content: @fa-var-compress; }
110
- .@{fa-css-prefix}-plus:before { content: @fa-var-plus; }
111
- .@{fa-css-prefix}-minus:before { content: @fa-var-minus; }
112
- .@{fa-css-prefix}-asterisk:before { content: @fa-var-asterisk; }
113
- .@{fa-css-prefix}-exclamation-circle:before { content: @fa-var-exclamation-circle; }
114
- .@{fa-css-prefix}-gift:before { content: @fa-var-gift; }
115
- .@{fa-css-prefix}-leaf:before { content: @fa-var-leaf; }
116
- .@{fa-css-prefix}-fire:before { content: @fa-var-fire; }
117
- .@{fa-css-prefix}-eye:before { content: @fa-var-eye; }
118
- .@{fa-css-prefix}-eye-slash:before { content: @fa-var-eye-slash; }
119
- .@{fa-css-prefix}-warning:before,
120
- .@{fa-css-prefix}-exclamation-triangle:before { content: @fa-var-exclamation-triangle; }
121
- .@{fa-css-prefix}-plane:before { content: @fa-var-plane; }
122
- .@{fa-css-prefix}-calendar:before { content: @fa-var-calendar; }
123
- .@{fa-css-prefix}-random:before { content: @fa-var-random; }
124
- .@{fa-css-prefix}-comment:before { content: @fa-var-comment; }
125
- .@{fa-css-prefix}-magnet:before { content: @fa-var-magnet; }
126
- .@{fa-css-prefix}-chevron-up:before { content: @fa-var-chevron-up; }
127
- .@{fa-css-prefix}-chevron-down:before { content: @fa-var-chevron-down; }
128
- .@{fa-css-prefix}-retweet:before { content: @fa-var-retweet; }
129
- .@{fa-css-prefix}-shopping-cart:before { content: @fa-var-shopping-cart; }
130
- .@{fa-css-prefix}-folder:before { content: @fa-var-folder; }
131
- .@{fa-css-prefix}-folder-open:before { content: @fa-var-folder-open; }
132
- .@{fa-css-prefix}-arrows-v:before { content: @fa-var-arrows-v; }
133
- .@{fa-css-prefix}-arrows-h:before { content: @fa-var-arrows-h; }
134
- .@{fa-css-prefix}-bar-chart-o:before,
135
- .@{fa-css-prefix}-bar-chart:before { content: @fa-var-bar-chart; }
136
- .@{fa-css-prefix}-twitter-square:before { content: @fa-var-twitter-square; }
137
- .@{fa-css-prefix}-facebook-square:before { content: @fa-var-facebook-square; }
138
- .@{fa-css-prefix}-camera-retro:before { content: @fa-var-camera-retro; }
139
- .@{fa-css-prefix}-key:before { content: @fa-var-key; }
140
- .@{fa-css-prefix}-gears:before,
141
- .@{fa-css-prefix}-cogs:before { content: @fa-var-cogs; }
142
- .@{fa-css-prefix}-comments:before { content: @fa-var-comments; }
143
- .@{fa-css-prefix}-thumbs-o-up:before { content: @fa-var-thumbs-o-up; }
144
- .@{fa-css-prefix}-thumbs-o-down:before { content: @fa-var-thumbs-o-down; }
145
- .@{fa-css-prefix}-star-half:before { content: @fa-var-star-half; }
146
- .@{fa-css-prefix}-heart-o:before { content: @fa-var-heart-o; }
147
- .@{fa-css-prefix}-sign-out:before { content: @fa-var-sign-out; }
148
- .@{fa-css-prefix}-linkedin-square:before { content: @fa-var-linkedin-square; }
149
- .@{fa-css-prefix}-thumb-tack:before { content: @fa-var-thumb-tack; }
150
- .@{fa-css-prefix}-external-link:before { content: @fa-var-external-link; }
151
- .@{fa-css-prefix}-sign-in:before { content: @fa-var-sign-in; }
152
- .@{fa-css-prefix}-trophy:before { content: @fa-var-trophy; }
153
- .@{fa-css-prefix}-github-square:before { content: @fa-var-github-square; }
154
- .@{fa-css-prefix}-upload:before { content: @fa-var-upload; }
155
- .@{fa-css-prefix}-lemon-o:before { content: @fa-var-lemon-o; }
156
- .@{fa-css-prefix}-phone:before { content: @fa-var-phone; }
157
- .@{fa-css-prefix}-square-o:before { content: @fa-var-square-o; }
158
- .@{fa-css-prefix}-bookmark-o:before { content: @fa-var-bookmark-o; }
159
- .@{fa-css-prefix}-phone-square:before { content: @fa-var-phone-square; }
160
- .@{fa-css-prefix}-twitter:before { content: @fa-var-twitter; }
161
- .@{fa-css-prefix}-facebook-f:before,
162
- .@{fa-css-prefix}-facebook:before { content: @fa-var-facebook; }
163
- .@{fa-css-prefix}-github:before { content: @fa-var-github; }
164
- .@{fa-css-prefix}-unlock:before { content: @fa-var-unlock; }
165
- .@{fa-css-prefix}-credit-card:before { content: @fa-var-credit-card; }
166
- .@{fa-css-prefix}-feed:before,
167
- .@{fa-css-prefix}-rss:before { content: @fa-var-rss; }
168
- .@{fa-css-prefix}-hdd-o:before { content: @fa-var-hdd-o; }
169
- .@{fa-css-prefix}-bullhorn:before { content: @fa-var-bullhorn; }
170
- .@{fa-css-prefix}-bell:before { content: @fa-var-bell; }
171
- .@{fa-css-prefix}-certificate:before { content: @fa-var-certificate; }
172
- .@{fa-css-prefix}-hand-o-right:before { content: @fa-var-hand-o-right; }
173
- .@{fa-css-prefix}-hand-o-left:before { content: @fa-var-hand-o-left; }
174
- .@{fa-css-prefix}-hand-o-up:before { content: @fa-var-hand-o-up; }
175
- .@{fa-css-prefix}-hand-o-down:before { content: @fa-var-hand-o-down; }
176
- .@{fa-css-prefix}-arrow-circle-left:before { content: @fa-var-arrow-circle-left; }
177
- .@{fa-css-prefix}-arrow-circle-right:before { content: @fa-var-arrow-circle-right; }
178
- .@{fa-css-prefix}-arrow-circle-up:before { content: @fa-var-arrow-circle-up; }
179
- .@{fa-css-prefix}-arrow-circle-down:before { content: @fa-var-arrow-circle-down; }
180
- .@{fa-css-prefix}-globe:before { content: @fa-var-globe; }
181
- .@{fa-css-prefix}-wrench:before { content: @fa-var-wrench; }
182
- .@{fa-css-prefix}-tasks:before { content: @fa-var-tasks; }
183
- .@{fa-css-prefix}-filter:before { content: @fa-var-filter; }
184
- .@{fa-css-prefix}-briefcase:before { content: @fa-var-briefcase; }
185
- .@{fa-css-prefix}-arrows-alt:before { content: @fa-var-arrows-alt; }
186
- .@{fa-css-prefix}-group:before,
187
- .@{fa-css-prefix}-users:before { content: @fa-var-users; }
188
- .@{fa-css-prefix}-chain:before,
189
- .@{fa-css-prefix}-link:before { content: @fa-var-link; }
190
- .@{fa-css-prefix}-cloud:before { content: @fa-var-cloud; }
191
- .@{fa-css-prefix}-flask:before { content: @fa-var-flask; }
192
- .@{fa-css-prefix}-cut:before,
193
- .@{fa-css-prefix}-scissors:before { content: @fa-var-scissors; }
194
- .@{fa-css-prefix}-copy:before,
195
- .@{fa-css-prefix}-files-o:before { content: @fa-var-files-o; }
196
- .@{fa-css-prefix}-paperclip:before { content: @fa-var-paperclip; }
197
- .@{fa-css-prefix}-save:before,
198
- .@{fa-css-prefix}-floppy-o:before { content: @fa-var-floppy-o; }
199
- .@{fa-css-prefix}-square:before { content: @fa-var-square; }
200
- .@{fa-css-prefix}-navicon:before,
201
- .@{fa-css-prefix}-reorder:before,
202
- .@{fa-css-prefix}-bars:before { content: @fa-var-bars; }
203
- .@{fa-css-prefix}-list-ul:before { content: @fa-var-list-ul; }
204
- .@{fa-css-prefix}-list-ol:before { content: @fa-var-list-ol; }
205
- .@{fa-css-prefix}-strikethrough:before { content: @fa-var-strikethrough; }
206
- .@{fa-css-prefix}-underline:before { content: @fa-var-underline; }
207
- .@{fa-css-prefix}-table:before { content: @fa-var-table; }
208
- .@{fa-css-prefix}-magic:before { content: @fa-var-magic; }
209
- .@{fa-css-prefix}-truck:before { content: @fa-var-truck; }
210
- .@{fa-css-prefix}-pinterest:before { content: @fa-var-pinterest; }
211
- .@{fa-css-prefix}-pinterest-square:before { content: @fa-var-pinterest-square; }
212
- .@{fa-css-prefix}-google-plus-square:before { content: @fa-var-google-plus-square; }
213
- .@{fa-css-prefix}-google-plus:before { content: @fa-var-google-plus; }
214
- .@{fa-css-prefix}-money:before { content: @fa-var-money; }
215
- .@{fa-css-prefix}-caret-down:before { content: @fa-var-caret-down; }
216
- .@{fa-css-prefix}-caret-up:before { content: @fa-var-caret-up; }
217
- .@{fa-css-prefix}-caret-left:before { content: @fa-var-caret-left; }
218
- .@{fa-css-prefix}-caret-right:before { content: @fa-var-caret-right; }
219
- .@{fa-css-prefix}-columns:before { content: @fa-var-columns; }
220
- .@{fa-css-prefix}-unsorted:before,
221
- .@{fa-css-prefix}-sort:before { content: @fa-var-sort; }
222
- .@{fa-css-prefix}-sort-down:before,
223
- .@{fa-css-prefix}-sort-desc:before { content: @fa-var-sort-desc; }
224
- .@{fa-css-prefix}-sort-up:before,
225
- .@{fa-css-prefix}-sort-asc:before { content: @fa-var-sort-asc; }
226
- .@{fa-css-prefix}-envelope:before { content: @fa-var-envelope; }
227
- .@{fa-css-prefix}-linkedin:before { content: @fa-var-linkedin; }
228
- .@{fa-css-prefix}-rotate-left:before,
229
- .@{fa-css-prefix}-undo:before { content: @fa-var-undo; }
230
- .@{fa-css-prefix}-legal:before,
231
- .@{fa-css-prefix}-gavel:before { content: @fa-var-gavel; }
232
- .@{fa-css-prefix}-dashboard:before,
233
- .@{fa-css-prefix}-tachometer:before { content: @fa-var-tachometer; }
234
- .@{fa-css-prefix}-comment-o:before { content: @fa-var-comment-o; }
235
- .@{fa-css-prefix}-comments-o:before { content: @fa-var-comments-o; }
236
- .@{fa-css-prefix}-flash:before,
237
- .@{fa-css-prefix}-bolt:before { content: @fa-var-bolt; }
238
- .@{fa-css-prefix}-sitemap:before { content: @fa-var-sitemap; }
239
- .@{fa-css-prefix}-umbrella:before { content: @fa-var-umbrella; }
240
- .@{fa-css-prefix}-paste:before,
241
- .@{fa-css-prefix}-clipboard:before { content: @fa-var-clipboard; }
242
- .@{fa-css-prefix}-lightbulb-o:before { content: @fa-var-lightbulb-o; }
243
- .@{fa-css-prefix}-exchange:before { content: @fa-var-exchange; }
244
- .@{fa-css-prefix}-cloud-download:before { content: @fa-var-cloud-download; }
245
- .@{fa-css-prefix}-cloud-upload:before { content: @fa-var-cloud-upload; }
246
- .@{fa-css-prefix}-user-md:before { content: @fa-var-user-md; }
247
- .@{fa-css-prefix}-stethoscope:before { content: @fa-var-stethoscope; }
248
- .@{fa-css-prefix}-suitcase:before { content: @fa-var-suitcase; }
249
- .@{fa-css-prefix}-bell-o:before { content: @fa-var-bell-o; }
250
- .@{fa-css-prefix}-coffee:before { content: @fa-var-coffee; }
251
- .@{fa-css-prefix}-cutlery:before { content: @fa-var-cutlery; }
252
- .@{fa-css-prefix}-file-text-o:before { content: @fa-var-file-text-o; }
253
- .@{fa-css-prefix}-building-o:before { content: @fa-var-building-o; }
254
- .@{fa-css-prefix}-hospital-o:before { content: @fa-var-hospital-o; }
255
- .@{fa-css-prefix}-ambulance:before { content: @fa-var-ambulance; }
256
- .@{fa-css-prefix}-medkit:before { content: @fa-var-medkit; }
257
- .@{fa-css-prefix}-fighter-jet:before { content: @fa-var-fighter-jet; }
258
- .@{fa-css-prefix}-beer:before { content: @fa-var-beer; }
259
- .@{fa-css-prefix}-h-square:before { content: @fa-var-h-square; }
260
- .@{fa-css-prefix}-plus-square:before { content: @fa-var-plus-square; }
261
- .@{fa-css-prefix}-angle-double-left:before { content: @fa-var-angle-double-left; }
262
- .@{fa-css-prefix}-angle-double-right:before { content: @fa-var-angle-double-right; }
263
- .@{fa-css-prefix}-angle-double-up:before { content: @fa-var-angle-double-up; }
264
- .@{fa-css-prefix}-angle-double-down:before { content: @fa-var-angle-double-down; }
265
- .@{fa-css-prefix}-angle-left:before { content: @fa-var-angle-left; }
266
- .@{fa-css-prefix}-angle-right:before { content: @fa-var-angle-right; }
267
- .@{fa-css-prefix}-angle-up:before { content: @fa-var-angle-up; }
268
- .@{fa-css-prefix}-angle-down:before { content: @fa-var-angle-down; }
269
- .@{fa-css-prefix}-desktop:before { content: @fa-var-desktop; }
270
- .@{fa-css-prefix}-laptop:before { content: @fa-var-laptop; }
271
- .@{fa-css-prefix}-tablet:before { content: @fa-var-tablet; }
272
- .@{fa-css-prefix}-mobile-phone:before,
273
- .@{fa-css-prefix}-mobile:before { content: @fa-var-mobile; }
274
- .@{fa-css-prefix}-circle-o:before { content: @fa-var-circle-o; }
275
- .@{fa-css-prefix}-quote-left:before { content: @fa-var-quote-left; }
276
- .@{fa-css-prefix}-quote-right:before { content: @fa-var-quote-right; }
277
- .@{fa-css-prefix}-spinner:before { content: @fa-var-spinner; }
278
- .@{fa-css-prefix}-circle:before { content: @fa-var-circle; }
279
- .@{fa-css-prefix}-mail-reply:before,
280
- .@{fa-css-prefix}-reply:before { content: @fa-var-reply; }
281
- .@{fa-css-prefix}-github-alt:before { content: @fa-var-github-alt; }
282
- .@{fa-css-prefix}-folder-o:before { content: @fa-var-folder-o; }
283
- .@{fa-css-prefix}-folder-open-o:before { content: @fa-var-folder-open-o; }
284
- .@{fa-css-prefix}-smile-o:before { content: @fa-var-smile-o; }
285
- .@{fa-css-prefix}-frown-o:before { content: @fa-var-frown-o; }
286
- .@{fa-css-prefix}-meh-o:before { content: @fa-var-meh-o; }
287
- .@{fa-css-prefix}-gamepad:before { content: @fa-var-gamepad; }
288
- .@{fa-css-prefix}-keyboard-o:before { content: @fa-var-keyboard-o; }
289
- .@{fa-css-prefix}-flag-o:before { content: @fa-var-flag-o; }
290
- .@{fa-css-prefix}-flag-checkered:before { content: @fa-var-flag-checkered; }
291
- .@{fa-css-prefix}-terminal:before { content: @fa-var-terminal; }
292
- .@{fa-css-prefix}-code:before { content: @fa-var-code; }
293
- .@{fa-css-prefix}-mail-reply-all:before,
294
- .@{fa-css-prefix}-reply-all:before { content: @fa-var-reply-all; }
295
- .@{fa-css-prefix}-star-half-empty:before,
296
- .@{fa-css-prefix}-star-half-full:before,
297
- .@{fa-css-prefix}-star-half-o:before { content: @fa-var-star-half-o; }
298
- .@{fa-css-prefix}-location-arrow:before { content: @fa-var-location-arrow; }
299
- .@{fa-css-prefix}-crop:before { content: @fa-var-crop; }
300
- .@{fa-css-prefix}-code-fork:before { content: @fa-var-code-fork; }
301
- .@{fa-css-prefix}-unlink:before,
302
- .@{fa-css-prefix}-chain-broken:before { content: @fa-var-chain-broken; }
303
- .@{fa-css-prefix}-question:before { content: @fa-var-question; }
304
- .@{fa-css-prefix}-info:before { content: @fa-var-info; }
305
- .@{fa-css-prefix}-exclamation:before { content: @fa-var-exclamation; }
306
- .@{fa-css-prefix}-superscript:before { content: @fa-var-superscript; }
307
- .@{fa-css-prefix}-subscript:before { content: @fa-var-subscript; }
308
- .@{fa-css-prefix}-eraser:before { content: @fa-var-eraser; }
309
- .@{fa-css-prefix}-puzzle-piece:before { content: @fa-var-puzzle-piece; }
310
- .@{fa-css-prefix}-microphone:before { content: @fa-var-microphone; }
311
- .@{fa-css-prefix}-microphone-slash:before { content: @fa-var-microphone-slash; }
312
- .@{fa-css-prefix}-shield:before { content: @fa-var-shield; }
313
- .@{fa-css-prefix}-calendar-o:before { content: @fa-var-calendar-o; }
314
- .@{fa-css-prefix}-fire-extinguisher:before { content: @fa-var-fire-extinguisher; }
315
- .@{fa-css-prefix}-rocket:before { content: @fa-var-rocket; }
316
- .@{fa-css-prefix}-maxcdn:before { content: @fa-var-maxcdn; }
317
- .@{fa-css-prefix}-chevron-circle-left:before { content: @fa-var-chevron-circle-left; }
318
- .@{fa-css-prefix}-chevron-circle-right:before { content: @fa-var-chevron-circle-right; }
319
- .@{fa-css-prefix}-chevron-circle-up:before { content: @fa-var-chevron-circle-up; }
320
- .@{fa-css-prefix}-chevron-circle-down:before { content: @fa-var-chevron-circle-down; }
321
- .@{fa-css-prefix}-html5:before { content: @fa-var-html5; }
322
- .@{fa-css-prefix}-css3:before { content: @fa-var-css3; }
323
- .@{fa-css-prefix}-anchor:before { content: @fa-var-anchor; }
324
- .@{fa-css-prefix}-unlock-alt:before { content: @fa-var-unlock-alt; }
325
- .@{fa-css-prefix}-bullseye:before { content: @fa-var-bullseye; }
326
- .@{fa-css-prefix}-ellipsis-h:before { content: @fa-var-ellipsis-h; }
327
- .@{fa-css-prefix}-ellipsis-v:before { content: @fa-var-ellipsis-v; }
328
- .@{fa-css-prefix}-rss-square:before { content: @fa-var-rss-square; }
329
- .@{fa-css-prefix}-play-circle:before { content: @fa-var-play-circle; }
330
- .@{fa-css-prefix}-ticket:before { content: @fa-var-ticket; }
331
- .@{fa-css-prefix}-minus-square:before { content: @fa-var-minus-square; }
332
- .@{fa-css-prefix}-minus-square-o:before { content: @fa-var-minus-square-o; }
333
- .@{fa-css-prefix}-level-up:before { content: @fa-var-level-up; }
334
- .@{fa-css-prefix}-level-down:before { content: @fa-var-level-down; }
335
- .@{fa-css-prefix}-check-square:before { content: @fa-var-check-square; }
336
- .@{fa-css-prefix}-pencil-square:before { content: @fa-var-pencil-square; }
337
- .@{fa-css-prefix}-external-link-square:before { content: @fa-var-external-link-square; }
338
- .@{fa-css-prefix}-share-square:before { content: @fa-var-share-square; }
339
- .@{fa-css-prefix}-compass:before { content: @fa-var-compass; }
340
- .@{fa-css-prefix}-toggle-down:before,
341
- .@{fa-css-prefix}-caret-square-o-down:before { content: @fa-var-caret-square-o-down; }
342
- .@{fa-css-prefix}-toggle-up:before,
343
- .@{fa-css-prefix}-caret-square-o-up:before { content: @fa-var-caret-square-o-up; }
344
- .@{fa-css-prefix}-toggle-right:before,
345
- .@{fa-css-prefix}-caret-square-o-right:before { content: @fa-var-caret-square-o-right; }
346
- .@{fa-css-prefix}-euro:before,
347
- .@{fa-css-prefix}-eur:before { content: @fa-var-eur; }
348
- .@{fa-css-prefix}-gbp:before { content: @fa-var-gbp; }
349
- .@{fa-css-prefix}-dollar:before,
350
- .@{fa-css-prefix}-usd:before { content: @fa-var-usd; }
351
- .@{fa-css-prefix}-rupee:before,
352
- .@{fa-css-prefix}-inr:before { content: @fa-var-inr; }
353
- .@{fa-css-prefix}-cny:before,
354
- .@{fa-css-prefix}-rmb:before,
355
- .@{fa-css-prefix}-yen:before,
356
- .@{fa-css-prefix}-jpy:before { content: @fa-var-jpy; }
357
- .@{fa-css-prefix}-ruble:before,
358
- .@{fa-css-prefix}-rouble:before,
359
- .@{fa-css-prefix}-rub:before { content: @fa-var-rub; }
360
- .@{fa-css-prefix}-won:before,
361
- .@{fa-css-prefix}-krw:before { content: @fa-var-krw; }
362
- .@{fa-css-prefix}-bitcoin:before,
363
- .@{fa-css-prefix}-btc:before { content: @fa-var-btc; }
364
- .@{fa-css-prefix}-file:before { content: @fa-var-file; }
365
- .@{fa-css-prefix}-file-text:before { content: @fa-var-file-text; }
366
- .@{fa-css-prefix}-sort-alpha-asc:before { content: @fa-var-sort-alpha-asc; }
367
- .@{fa-css-prefix}-sort-alpha-desc:before { content: @fa-var-sort-alpha-desc; }
368
- .@{fa-css-prefix}-sort-amount-asc:before { content: @fa-var-sort-amount-asc; }
369
- .@{fa-css-prefix}-sort-amount-desc:before { content: @fa-var-sort-amount-desc; }
370
- .@{fa-css-prefix}-sort-numeric-asc:before { content: @fa-var-sort-numeric-asc; }
371
- .@{fa-css-prefix}-sort-numeric-desc:before { content: @fa-var-sort-numeric-desc; }
372
- .@{fa-css-prefix}-thumbs-up:before { content: @fa-var-thumbs-up; }
373
- .@{fa-css-prefix}-thumbs-down:before { content: @fa-var-thumbs-down; }
374
- .@{fa-css-prefix}-youtube-square:before { content: @fa-var-youtube-square; }
375
- .@{fa-css-prefix}-youtube:before { content: @fa-var-youtube; }
376
- .@{fa-css-prefix}-xing:before { content: @fa-var-xing; }
377
- .@{fa-css-prefix}-xing-square:before { content: @fa-var-xing-square; }
378
- .@{fa-css-prefix}-youtube-play:before { content: @fa-var-youtube-play; }
379
- .@{fa-css-prefix}-dropbox:before { content: @fa-var-dropbox; }
380
- .@{fa-css-prefix}-stack-overflow:before { content: @fa-var-stack-overflow; }
381
- .@{fa-css-prefix}-instagram:before { content: @fa-var-instagram; }
382
- .@{fa-css-prefix}-flickr:before { content: @fa-var-flickr; }
383
- .@{fa-css-prefix}-adn:before { content: @fa-var-adn; }
384
- .@{fa-css-prefix}-bitbucket:before { content: @fa-var-bitbucket; }
385
- .@{fa-css-prefix}-bitbucket-square:before { content: @fa-var-bitbucket-square; }
386
- .@{fa-css-prefix}-tumblr:before { content: @fa-var-tumblr; }
387
- .@{fa-css-prefix}-tumblr-square:before { content: @fa-var-tumblr-square; }
388
- .@{fa-css-prefix}-long-arrow-down:before { content: @fa-var-long-arrow-down; }
389
- .@{fa-css-prefix}-long-arrow-up:before { content: @fa-var-long-arrow-up; }
390
- .@{fa-css-prefix}-long-arrow-left:before { content: @fa-var-long-arrow-left; }
391
- .@{fa-css-prefix}-long-arrow-right:before { content: @fa-var-long-arrow-right; }
392
- .@{fa-css-prefix}-apple:before { content: @fa-var-apple; }
393
- .@{fa-css-prefix}-windows:before { content: @fa-var-windows; }
394
- .@{fa-css-prefix}-android:before { content: @fa-var-android; }
395
- .@{fa-css-prefix}-linux:before { content: @fa-var-linux; }
396
- .@{fa-css-prefix}-dribbble:before { content: @fa-var-dribbble; }
397
- .@{fa-css-prefix}-skype:before { content: @fa-var-skype; }
398
- .@{fa-css-prefix}-foursquare:before { content: @fa-var-foursquare; }
399
- .@{fa-css-prefix}-trello:before { content: @fa-var-trello; }
400
- .@{fa-css-prefix}-female:before { content: @fa-var-female; }
401
- .@{fa-css-prefix}-male:before { content: @fa-var-male; }
402
- .@{fa-css-prefix}-gittip:before,
403
- .@{fa-css-prefix}-gratipay:before { content: @fa-var-gratipay; }
404
- .@{fa-css-prefix}-sun-o:before { content: @fa-var-sun-o; }
405
- .@{fa-css-prefix}-moon-o:before { content: @fa-var-moon-o; }
406
- .@{fa-css-prefix}-archive:before { content: @fa-var-archive; }
407
- .@{fa-css-prefix}-bug:before { content: @fa-var-bug; }
408
- .@{fa-css-prefix}-vk:before { content: @fa-var-vk; }
409
- .@{fa-css-prefix}-weibo:before { content: @fa-var-weibo; }
410
- .@{fa-css-prefix}-renren:before { content: @fa-var-renren; }
411
- .@{fa-css-prefix}-pagelines:before { content: @fa-var-pagelines; }
412
- .@{fa-css-prefix}-stack-exchange:before { content: @fa-var-stack-exchange; }
413
- .@{fa-css-prefix}-arrow-circle-o-right:before { content: @fa-var-arrow-circle-o-right; }
414
- .@{fa-css-prefix}-arrow-circle-o-left:before { content: @fa-var-arrow-circle-o-left; }
415
- .@{fa-css-prefix}-toggle-left:before,
416
- .@{fa-css-prefix}-caret-square-o-left:before { content: @fa-var-caret-square-o-left; }
417
- .@{fa-css-prefix}-dot-circle-o:before { content: @fa-var-dot-circle-o; }
418
- .@{fa-css-prefix}-wheelchair:before { content: @fa-var-wheelchair; }
419
- .@{fa-css-prefix}-vimeo-square:before { content: @fa-var-vimeo-square; }
420
- .@{fa-css-prefix}-turkish-lira:before,
421
- .@{fa-css-prefix}-try:before { content: @fa-var-try; }
422
- .@{fa-css-prefix}-plus-square-o:before { content: @fa-var-plus-square-o; }
423
- .@{fa-css-prefix}-space-shuttle:before { content: @fa-var-space-shuttle; }
424
- .@{fa-css-prefix}-slack:before { content: @fa-var-slack; }
425
- .@{fa-css-prefix}-envelope-square:before { content: @fa-var-envelope-square; }
426
- .@{fa-css-prefix}-wordpress:before { content: @fa-var-wordpress; }
427
- .@{fa-css-prefix}-openid:before { content: @fa-var-openid; }
428
- .@{fa-css-prefix}-institution:before,
429
- .@{fa-css-prefix}-bank:before,
430
- .@{fa-css-prefix}-university:before { content: @fa-var-university; }
431
- .@{fa-css-prefix}-mortar-board:before,
432
- .@{fa-css-prefix}-graduation-cap:before { content: @fa-var-graduation-cap; }
433
- .@{fa-css-prefix}-yahoo:before { content: @fa-var-yahoo; }
434
- .@{fa-css-prefix}-google:before { content: @fa-var-google; }
435
- .@{fa-css-prefix}-reddit:before { content: @fa-var-reddit; }
436
- .@{fa-css-prefix}-reddit-square:before { content: @fa-var-reddit-square; }
437
- .@{fa-css-prefix}-stumbleupon-circle:before { content: @fa-var-stumbleupon-circle; }
438
- .@{fa-css-prefix}-stumbleupon:before { content: @fa-var-stumbleupon; }
439
- .@{fa-css-prefix}-delicious:before { content: @fa-var-delicious; }
440
- .@{fa-css-prefix}-digg:before { content: @fa-var-digg; }
441
- .@{fa-css-prefix}-pied-piper-pp:before { content: @fa-var-pied-piper-pp; }
442
- .@{fa-css-prefix}-pied-piper-alt:before { content: @fa-var-pied-piper-alt; }
443
- .@{fa-css-prefix}-drupal:before { content: @fa-var-drupal; }
444
- .@{fa-css-prefix}-joomla:before { content: @fa-var-joomla; }
445
- .@{fa-css-prefix}-language:before { content: @fa-var-language; }
446
- .@{fa-css-prefix}-fax:before { content: @fa-var-fax; }
447
- .@{fa-css-prefix}-building:before { content: @fa-var-building; }
448
- .@{fa-css-prefix}-child:before { content: @fa-var-child; }
449
- .@{fa-css-prefix}-paw:before { content: @fa-var-paw; }
450
- .@{fa-css-prefix}-spoon:before { content: @fa-var-spoon; }
451
- .@{fa-css-prefix}-cube:before { content: @fa-var-cube; }
452
- .@{fa-css-prefix}-cubes:before { content: @fa-var-cubes; }
453
- .@{fa-css-prefix}-behance:before { content: @fa-var-behance; }
454
- .@{fa-css-prefix}-behance-square:before { content: @fa-var-behance-square; }
455
- .@{fa-css-prefix}-steam:before { content: @fa-var-steam; }
456
- .@{fa-css-prefix}-steam-square:before { content: @fa-var-steam-square; }
457
- .@{fa-css-prefix}-recycle:before { content: @fa-var-recycle; }
458
- .@{fa-css-prefix}-automobile:before,
459
- .@{fa-css-prefix}-car:before { content: @fa-var-car; }
460
- .@{fa-css-prefix}-cab:before,
461
- .@{fa-css-prefix}-taxi:before { content: @fa-var-taxi; }
462
- .@{fa-css-prefix}-tree:before { content: @fa-var-tree; }
463
- .@{fa-css-prefix}-spotify:before { content: @fa-var-spotify; }
464
- .@{fa-css-prefix}-deviantart:before { content: @fa-var-deviantart; }
465
- .@{fa-css-prefix}-soundcloud:before { content: @fa-var-soundcloud; }
466
- .@{fa-css-prefix}-database:before { content: @fa-var-database; }
467
- .@{fa-css-prefix}-file-pdf-o:before { content: @fa-var-file-pdf-o; }
468
- .@{fa-css-prefix}-file-word-o:before { content: @fa-var-file-word-o; }
469
- .@{fa-css-prefix}-file-excel-o:before { content: @fa-var-file-excel-o; }
470
- .@{fa-css-prefix}-file-powerpoint-o:before { content: @fa-var-file-powerpoint-o; }
471
- .@{fa-css-prefix}-file-photo-o:before,
472
- .@{fa-css-prefix}-file-picture-o:before,
473
- .@{fa-css-prefix}-file-image-o:before { content: @fa-var-file-image-o; }
474
- .@{fa-css-prefix}-file-zip-o:before,
475
- .@{fa-css-prefix}-file-archive-o:before { content: @fa-var-file-archive-o; }
476
- .@{fa-css-prefix}-file-sound-o:before,
477
- .@{fa-css-prefix}-file-audio-o:before { content: @fa-var-file-audio-o; }
478
- .@{fa-css-prefix}-file-movie-o:before,
479
- .@{fa-css-prefix}-file-video-o:before { content: @fa-var-file-video-o; }
480
- .@{fa-css-prefix}-file-code-o:before { content: @fa-var-file-code-o; }
481
- .@{fa-css-prefix}-vine:before { content: @fa-var-vine; }
482
- .@{fa-css-prefix}-codepen:before { content: @fa-var-codepen; }
483
- .@{fa-css-prefix}-jsfiddle:before { content: @fa-var-jsfiddle; }
484
- .@{fa-css-prefix}-life-bouy:before,
485
- .@{fa-css-prefix}-life-buoy:before,
486
- .@{fa-css-prefix}-life-saver:before,
487
- .@{fa-css-prefix}-support:before,
488
- .@{fa-css-prefix}-life-ring:before { content: @fa-var-life-ring; }
489
- .@{fa-css-prefix}-circle-o-notch:before { content: @fa-var-circle-o-notch; }
490
- .@{fa-css-prefix}-ra:before,
491
- .@{fa-css-prefix}-resistance:before,
492
- .@{fa-css-prefix}-rebel:before { content: @fa-var-rebel; }
493
- .@{fa-css-prefix}-ge:before,
494
- .@{fa-css-prefix}-empire:before { content: @fa-var-empire; }
495
- .@{fa-css-prefix}-git-square:before { content: @fa-var-git-square; }
496
- .@{fa-css-prefix}-git:before { content: @fa-var-git; }
497
- .@{fa-css-prefix}-y-combinator-square:before,
498
- .@{fa-css-prefix}-yc-square:before,
499
- .@{fa-css-prefix}-hacker-news:before { content: @fa-var-hacker-news; }
500
- .@{fa-css-prefix}-tencent-weibo:before { content: @fa-var-tencent-weibo; }
501
- .@{fa-css-prefix}-qq:before { content: @fa-var-qq; }
502
- .@{fa-css-prefix}-wechat:before,
503
- .@{fa-css-prefix}-weixin:before { content: @fa-var-weixin; }
504
- .@{fa-css-prefix}-send:before,
505
- .@{fa-css-prefix}-paper-plane:before { content: @fa-var-paper-plane; }
506
- .@{fa-css-prefix}-send-o:before,
507
- .@{fa-css-prefix}-paper-plane-o:before { content: @fa-var-paper-plane-o; }
508
- .@{fa-css-prefix}-history:before { content: @fa-var-history; }
509
- .@{fa-css-prefix}-circle-thin:before { content: @fa-var-circle-thin; }
510
- .@{fa-css-prefix}-header:before { content: @fa-var-header; }
511
- .@{fa-css-prefix}-paragraph:before { content: @fa-var-paragraph; }
512
- .@{fa-css-prefix}-sliders:before { content: @fa-var-sliders; }
513
- .@{fa-css-prefix}-share-alt:before { content: @fa-var-share-alt; }
514
- .@{fa-css-prefix}-share-alt-square:before { content: @fa-var-share-alt-square; }
515
- .@{fa-css-prefix}-bomb:before { content: @fa-var-bomb; }
516
- .@{fa-css-prefix}-soccer-ball-o:before,
517
- .@{fa-css-prefix}-futbol-o:before { content: @fa-var-futbol-o; }
518
- .@{fa-css-prefix}-tty:before { content: @fa-var-tty; }
519
- .@{fa-css-prefix}-binoculars:before { content: @fa-var-binoculars; }
520
- .@{fa-css-prefix}-plug:before { content: @fa-var-plug; }
521
- .@{fa-css-prefix}-slideshare:before { content: @fa-var-slideshare; }
522
- .@{fa-css-prefix}-twitch:before { content: @fa-var-twitch; }
523
- .@{fa-css-prefix}-yelp:before { content: @fa-var-yelp; }
524
- .@{fa-css-prefix}-newspaper-o:before { content: @fa-var-newspaper-o; }
525
- .@{fa-css-prefix}-wifi:before { content: @fa-var-wifi; }
526
- .@{fa-css-prefix}-calculator:before { content: @fa-var-calculator; }
527
- .@{fa-css-prefix}-paypal:before { content: @fa-var-paypal; }
528
- .@{fa-css-prefix}-google-wallet:before { content: @fa-var-google-wallet; }
529
- .@{fa-css-prefix}-cc-visa:before { content: @fa-var-cc-visa; }
530
- .@{fa-css-prefix}-cc-mastercard:before { content: @fa-var-cc-mastercard; }
531
- .@{fa-css-prefix}-cc-discover:before { content: @fa-var-cc-discover; }
532
- .@{fa-css-prefix}-cc-amex:before { content: @fa-var-cc-amex; }
533
- .@{fa-css-prefix}-cc-paypal:before { content: @fa-var-cc-paypal; }
534
- .@{fa-css-prefix}-cc-stripe:before { content: @fa-var-cc-stripe; }
535
- .@{fa-css-prefix}-bell-slash:before { content: @fa-var-bell-slash; }
536
- .@{fa-css-prefix}-bell-slash-o:before { content: @fa-var-bell-slash-o; }
537
- .@{fa-css-prefix}-trash:before { content: @fa-var-trash; }
538
- .@{fa-css-prefix}-copyright:before { content: @fa-var-copyright; }
539
- .@{fa-css-prefix}-at:before { content: @fa-var-at; }
540
- .@{fa-css-prefix}-eyedropper:before { content: @fa-var-eyedropper; }
541
- .@{fa-css-prefix}-paint-brush:before { content: @fa-var-paint-brush; }
542
- .@{fa-css-prefix}-birthday-cake:before { content: @fa-var-birthday-cake; }
543
- .@{fa-css-prefix}-area-chart:before { content: @fa-var-area-chart; }
544
- .@{fa-css-prefix}-pie-chart:before { content: @fa-var-pie-chart; }
545
- .@{fa-css-prefix}-line-chart:before { content: @fa-var-line-chart; }
546
- .@{fa-css-prefix}-lastfm:before { content: @fa-var-lastfm; }
547
- .@{fa-css-prefix}-lastfm-square:before { content: @fa-var-lastfm-square; }
548
- .@{fa-css-prefix}-toggle-off:before { content: @fa-var-toggle-off; }
549
- .@{fa-css-prefix}-toggle-on:before { content: @fa-var-toggle-on; }
550
- .@{fa-css-prefix}-bicycle:before { content: @fa-var-bicycle; }
551
- .@{fa-css-prefix}-bus:before { content: @fa-var-bus; }
552
- .@{fa-css-prefix}-ioxhost:before { content: @fa-var-ioxhost; }
553
- .@{fa-css-prefix}-angellist:before { content: @fa-var-angellist; }
554
- .@{fa-css-prefix}-cc:before { content: @fa-var-cc; }
555
- .@{fa-css-prefix}-shekel:before,
556
- .@{fa-css-prefix}-sheqel:before,
557
- .@{fa-css-prefix}-ils:before { content: @fa-var-ils; }
558
- .@{fa-css-prefix}-meanpath:before { content: @fa-var-meanpath; }
559
- .@{fa-css-prefix}-buysellads:before { content: @fa-var-buysellads; }
560
- .@{fa-css-prefix}-connectdevelop:before { content: @fa-var-connectdevelop; }
561
- .@{fa-css-prefix}-dashcube:before { content: @fa-var-dashcube; }
562
- .@{fa-css-prefix}-forumbee:before { content: @fa-var-forumbee; }
563
- .@{fa-css-prefix}-leanpub:before { content: @fa-var-leanpub; }
564
- .@{fa-css-prefix}-sellsy:before { content: @fa-var-sellsy; }
565
- .@{fa-css-prefix}-shirtsinbulk:before { content: @fa-var-shirtsinbulk; }
566
- .@{fa-css-prefix}-simplybuilt:before { content: @fa-var-simplybuilt; }
567
- .@{fa-css-prefix}-skyatlas:before { content: @fa-var-skyatlas; }
568
- .@{fa-css-prefix}-cart-plus:before { content: @fa-var-cart-plus; }
569
- .@{fa-css-prefix}-cart-arrow-down:before { content: @fa-var-cart-arrow-down; }
570
- .@{fa-css-prefix}-diamond:before { content: @fa-var-diamond; }
571
- .@{fa-css-prefix}-ship:before { content: @fa-var-ship; }
572
- .@{fa-css-prefix}-user-secret:before { content: @fa-var-user-secret; }
573
- .@{fa-css-prefix}-motorcycle:before { content: @fa-var-motorcycle; }
574
- .@{fa-css-prefix}-street-view:before { content: @fa-var-street-view; }
575
- .@{fa-css-prefix}-heartbeat:before { content: @fa-var-heartbeat; }
576
- .@{fa-css-prefix}-venus:before { content: @fa-var-venus; }
577
- .@{fa-css-prefix}-mars:before { content: @fa-var-mars; }
578
- .@{fa-css-prefix}-mercury:before { content: @fa-var-mercury; }
579
- .@{fa-css-prefix}-intersex:before,
580
- .@{fa-css-prefix}-transgender:before { content: @fa-var-transgender; }
581
- .@{fa-css-prefix}-transgender-alt:before { content: @fa-var-transgender-alt; }
582
- .@{fa-css-prefix}-venus-double:before { content: @fa-var-venus-double; }
583
- .@{fa-css-prefix}-mars-double:before { content: @fa-var-mars-double; }
584
- .@{fa-css-prefix}-venus-mars:before { content: @fa-var-venus-mars; }
585
- .@{fa-css-prefix}-mars-stroke:before { content: @fa-var-mars-stroke; }
586
- .@{fa-css-prefix}-mars-stroke-v:before { content: @fa-var-mars-stroke-v; }
587
- .@{fa-css-prefix}-mars-stroke-h:before { content: @fa-var-mars-stroke-h; }
588
- .@{fa-css-prefix}-neuter:before { content: @fa-var-neuter; }
589
- .@{fa-css-prefix}-genderless:before { content: @fa-var-genderless; }
590
- .@{fa-css-prefix}-facebook-official:before { content: @fa-var-facebook-official; }
591
- .@{fa-css-prefix}-pinterest-p:before { content: @fa-var-pinterest-p; }
592
- .@{fa-css-prefix}-whatsapp:before { content: @fa-var-whatsapp; }
593
- .@{fa-css-prefix}-server:before { content: @fa-var-server; }
594
- .@{fa-css-prefix}-user-plus:before { content: @fa-var-user-plus; }
595
- .@{fa-css-prefix}-user-times:before { content: @fa-var-user-times; }
596
- .@{fa-css-prefix}-hotel:before,
597
- .@{fa-css-prefix}-bed:before { content: @fa-var-bed; }
598
- .@{fa-css-prefix}-viacoin:before { content: @fa-var-viacoin; }
599
- .@{fa-css-prefix}-train:before { content: @fa-var-train; }
600
- .@{fa-css-prefix}-subway:before { content: @fa-var-subway; }
601
- .@{fa-css-prefix}-medium:before { content: @fa-var-medium; }
602
- .@{fa-css-prefix}-yc:before,
603
- .@{fa-css-prefix}-y-combinator:before { content: @fa-var-y-combinator; }
604
- .@{fa-css-prefix}-optin-monster:before { content: @fa-var-optin-monster; }
605
- .@{fa-css-prefix}-opencart:before { content: @fa-var-opencart; }
606
- .@{fa-css-prefix}-expeditedssl:before { content: @fa-var-expeditedssl; }
607
- .@{fa-css-prefix}-battery-4:before,
608
- .@{fa-css-prefix}-battery-full:before { content: @fa-var-battery-full; }
609
- .@{fa-css-prefix}-battery-3:before,
610
- .@{fa-css-prefix}-battery-three-quarters:before { content: @fa-var-battery-three-quarters; }
611
- .@{fa-css-prefix}-battery-2:before,
612
- .@{fa-css-prefix}-battery-half:before { content: @fa-var-battery-half; }
613
- .@{fa-css-prefix}-battery-1:before,
614
- .@{fa-css-prefix}-battery-quarter:before { content: @fa-var-battery-quarter; }
615
- .@{fa-css-prefix}-battery-0:before,
616
- .@{fa-css-prefix}-battery-empty:before { content: @fa-var-battery-empty; }
617
- .@{fa-css-prefix}-mouse-pointer:before { content: @fa-var-mouse-pointer; }
618
- .@{fa-css-prefix}-i-cursor:before { content: @fa-var-i-cursor; }
619
- .@{fa-css-prefix}-object-group:before { content: @fa-var-object-group; }
620
- .@{fa-css-prefix}-object-ungroup:before { content: @fa-var-object-ungroup; }
621
- .@{fa-css-prefix}-sticky-note:before { content: @fa-var-sticky-note; }
622
- .@{fa-css-prefix}-sticky-note-o:before { content: @fa-var-sticky-note-o; }
623
- .@{fa-css-prefix}-cc-jcb:before { content: @fa-var-cc-jcb; }
624
- .@{fa-css-prefix}-cc-diners-club:before { content: @fa-var-cc-diners-club; }
625
- .@{fa-css-prefix}-clone:before { content: @fa-var-clone; }
626
- .@{fa-css-prefix}-balance-scale:before { content: @fa-var-balance-scale; }
627
- .@{fa-css-prefix}-hourglass-o:before { content: @fa-var-hourglass-o; }
628
- .@{fa-css-prefix}-hourglass-1:before,
629
- .@{fa-css-prefix}-hourglass-start:before { content: @fa-var-hourglass-start; }
630
- .@{fa-css-prefix}-hourglass-2:before,
631
- .@{fa-css-prefix}-hourglass-half:before { content: @fa-var-hourglass-half; }
632
- .@{fa-css-prefix}-hourglass-3:before,
633
- .@{fa-css-prefix}-hourglass-end:before { content: @fa-var-hourglass-end; }
634
- .@{fa-css-prefix}-hourglass:before { content: @fa-var-hourglass; }
635
- .@{fa-css-prefix}-hand-grab-o:before,
636
- .@{fa-css-prefix}-hand-rock-o:before { content: @fa-var-hand-rock-o; }
637
- .@{fa-css-prefix}-hand-stop-o:before,
638
- .@{fa-css-prefix}-hand-paper-o:before { content: @fa-var-hand-paper-o; }
639
- .@{fa-css-prefix}-hand-scissors-o:before { content: @fa-var-hand-scissors-o; }
640
- .@{fa-css-prefix}-hand-lizard-o:before { content: @fa-var-hand-lizard-o; }
641
- .@{fa-css-prefix}-hand-spock-o:before { content: @fa-var-hand-spock-o; }
642
- .@{fa-css-prefix}-hand-pointer-o:before { content: @fa-var-hand-pointer-o; }
643
- .@{fa-css-prefix}-hand-peace-o:before { content: @fa-var-hand-peace-o; }
644
- .@{fa-css-prefix}-trademark:before { content: @fa-var-trademark; }
645
- .@{fa-css-prefix}-registered:before { content: @fa-var-registered; }
646
- .@{fa-css-prefix}-creative-commons:before { content: @fa-var-creative-commons; }
647
- .@{fa-css-prefix}-gg:before { content: @fa-var-gg; }
648
- .@{fa-css-prefix}-gg-circle:before { content: @fa-var-gg-circle; }
649
- .@{fa-css-prefix}-tripadvisor:before { content: @fa-var-tripadvisor; }
650
- .@{fa-css-prefix}-odnoklassniki:before { content: @fa-var-odnoklassniki; }
651
- .@{fa-css-prefix}-odnoklassniki-square:before { content: @fa-var-odnoklassniki-square; }
652
- .@{fa-css-prefix}-get-pocket:before { content: @fa-var-get-pocket; }
653
- .@{fa-css-prefix}-wikipedia-w:before { content: @fa-var-wikipedia-w; }
654
- .@{fa-css-prefix}-safari:before { content: @fa-var-safari; }
655
- .@{fa-css-prefix}-chrome:before { content: @fa-var-chrome; }
656
- .@{fa-css-prefix}-firefox:before { content: @fa-var-firefox; }
657
- .@{fa-css-prefix}-opera:before { content: @fa-var-opera; }
658
- .@{fa-css-prefix}-internet-explorer:before { content: @fa-var-internet-explorer; }
659
- .@{fa-css-prefix}-tv:before,
660
- .@{fa-css-prefix}-television:before { content: @fa-var-television; }
661
- .@{fa-css-prefix}-contao:before { content: @fa-var-contao; }
662
- .@{fa-css-prefix}-500px:before { content: @fa-var-500px; }
663
- .@{fa-css-prefix}-amazon:before { content: @fa-var-amazon; }
664
- .@{fa-css-prefix}-calendar-plus-o:before { content: @fa-var-calendar-plus-o; }
665
- .@{fa-css-prefix}-calendar-minus-o:before { content: @fa-var-calendar-minus-o; }
666
- .@{fa-css-prefix}-calendar-times-o:before { content: @fa-var-calendar-times-o; }
667
- .@{fa-css-prefix}-calendar-check-o:before { content: @fa-var-calendar-check-o; }
668
- .@{fa-css-prefix}-industry:before { content: @fa-var-industry; }
669
- .@{fa-css-prefix}-map-pin:before { content: @fa-var-map-pin; }
670
- .@{fa-css-prefix}-map-signs:before { content: @fa-var-map-signs; }
671
- .@{fa-css-prefix}-map-o:before { content: @fa-var-map-o; }
672
- .@{fa-css-prefix}-map:before { content: @fa-var-map; }
673
- .@{fa-css-prefix}-commenting:before { content: @fa-var-commenting; }
674
- .@{fa-css-prefix}-commenting-o:before { content: @fa-var-commenting-o; }
675
- .@{fa-css-prefix}-houzz:before { content: @fa-var-houzz; }
676
- .@{fa-css-prefix}-vimeo:before { content: @fa-var-vimeo; }
677
- .@{fa-css-prefix}-black-tie:before { content: @fa-var-black-tie; }
678
- .@{fa-css-prefix}-fonticons:before { content: @fa-var-fonticons; }
679
- .@{fa-css-prefix}-reddit-alien:before { content: @fa-var-reddit-alien; }
680
- .@{fa-css-prefix}-edge:before { content: @fa-var-edge; }
681
- .@{fa-css-prefix}-credit-card-alt:before { content: @fa-var-credit-card-alt; }
682
- .@{fa-css-prefix}-codiepie:before { content: @fa-var-codiepie; }
683
- .@{fa-css-prefix}-modx:before { content: @fa-var-modx; }
684
- .@{fa-css-prefix}-fort-awesome:before { content: @fa-var-fort-awesome; }
685
- .@{fa-css-prefix}-usb:before { content: @fa-var-usb; }
686
- .@{fa-css-prefix}-product-hunt:before { content: @fa-var-product-hunt; }
687
- .@{fa-css-prefix}-mixcloud:before { content: @fa-var-mixcloud; }
688
- .@{fa-css-prefix}-scribd:before { content: @fa-var-scribd; }
689
- .@{fa-css-prefix}-pause-circle:before { content: @fa-var-pause-circle; }
690
- .@{fa-css-prefix}-pause-circle-o:before { content: @fa-var-pause-circle-o; }
691
- .@{fa-css-prefix}-stop-circle:before { content: @fa-var-stop-circle; }
692
- .@{fa-css-prefix}-stop-circle-o:before { content: @fa-var-stop-circle-o; }
693
- .@{fa-css-prefix}-shopping-bag:before { content: @fa-var-shopping-bag; }
694
- .@{fa-css-prefix}-shopping-basket:before { content: @fa-var-shopping-basket; }
695
- .@{fa-css-prefix}-hashtag:before { content: @fa-var-hashtag; }
696
- .@{fa-css-prefix}-bluetooth:before { content: @fa-var-bluetooth; }
697
- .@{fa-css-prefix}-bluetooth-b:before { content: @fa-var-bluetooth-b; }
698
- .@{fa-css-prefix}-percent:before { content: @fa-var-percent; }
699
- .@{fa-css-prefix}-gitlab:before { content: @fa-var-gitlab; }
700
- .@{fa-css-prefix}-wpbeginner:before { content: @fa-var-wpbeginner; }
701
- .@{fa-css-prefix}-wpforms:before { content: @fa-var-wpforms; }
702
- .@{fa-css-prefix}-envira:before { content: @fa-var-envira; }
703
- .@{fa-css-prefix}-universal-access:before { content: @fa-var-universal-access; }
704
- .@{fa-css-prefix}-wheelchair-alt:before { content: @fa-var-wheelchair-alt; }
705
- .@{fa-css-prefix}-question-circle-o:before { content: @fa-var-question-circle-o; }
706
- .@{fa-css-prefix}-blind:before { content: @fa-var-blind; }
707
- .@{fa-css-prefix}-audio-description:before { content: @fa-var-audio-description; }
708
- .@{fa-css-prefix}-volume-control-phone:before { content: @fa-var-volume-control-phone; }
709
- .@{fa-css-prefix}-braille:before { content: @fa-var-braille; }
710
- .@{fa-css-prefix}-assistive-listening-systems:before { content: @fa-var-assistive-listening-systems; }
711
- .@{fa-css-prefix}-asl-interpreting:before,
712
- .@{fa-css-prefix}-american-sign-language-interpreting:before { content: @fa-var-american-sign-language-interpreting; }
713
- .@{fa-css-prefix}-deafness:before,
714
- .@{fa-css-prefix}-hard-of-hearing:before,
715
- .@{fa-css-prefix}-deaf:before { content: @fa-var-deaf; }
716
- .@{fa-css-prefix}-glide:before { content: @fa-var-glide; }
717
- .@{fa-css-prefix}-glide-g:before { content: @fa-var-glide-g; }
718
- .@{fa-css-prefix}-signing:before,
719
- .@{fa-css-prefix}-sign-language:before { content: @fa-var-sign-language; }
720
- .@{fa-css-prefix}-low-vision:before { content: @fa-var-low-vision; }
721
- .@{fa-css-prefix}-viadeo:before { content: @fa-var-viadeo; }
722
- .@{fa-css-prefix}-viadeo-square:before { content: @fa-var-viadeo-square; }
723
- .@{fa-css-prefix}-snapchat:before { content: @fa-var-snapchat; }
724
- .@{fa-css-prefix}-snapchat-ghost:before { content: @fa-var-snapchat-ghost; }
725
- .@{fa-css-prefix}-snapchat-square:before { content: @fa-var-snapchat-square; }
726
- .@{fa-css-prefix}-pied-piper:before { content: @fa-var-pied-piper; }
727
- .@{fa-css-prefix}-first-order:before { content: @fa-var-first-order; }
728
- .@{fa-css-prefix}-yoast:before { content: @fa-var-yoast; }
729
- .@{fa-css-prefix}-themeisle:before { content: @fa-var-themeisle; }
730
- .@{fa-css-prefix}-google-plus-circle:before,
731
- .@{fa-css-prefix}-google-plus-official:before { content: @fa-var-google-plus-official; }
732
- .@{fa-css-prefix}-fa:before,
733
- .@{fa-css-prefix}-font-awesome:before { content: @fa-var-font-awesome; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/font-awesome/less/larger.less DELETED
@@ -1,13 +0,0 @@
1
- // Icon Sizes
2
- // -------------------------
3
-
4
- /* makes the font 33% larger relative to the icon container */
5
- .@{fa-css-prefix}-lg {
6
- font-size: (4em / 3);
7
- line-height: (3em / 4);
8
- vertical-align: -15%;
9
- }
10
- .@{fa-css-prefix}-2x { font-size: 2em; }
11
- .@{fa-css-prefix}-3x { font-size: 3em; }
12
- .@{fa-css-prefix}-4x { font-size: 4em; }
13
- .@{fa-css-prefix}-5x { font-size: 5em; }
 
 
 
 
 
 
 
 
 
 
 
 
 
css/font-awesome/less/list.less DELETED
@@ -1,19 +0,0 @@
1
- // List Icons
2
- // -------------------------
3
-
4
- .@{fa-css-prefix}-ul {
5
- padding-left: 0;
6
- margin-left: @fa-li-width;
7
- list-style-type: none;
8
- > li { position: relative; }
9
- }
10
- .@{fa-css-prefix}-li {
11
- position: absolute;
12
- left: -@fa-li-width;
13
- width: @fa-li-width;
14
- top: (2em / 14);
15
- text-align: center;
16
- &.@{fa-css-prefix}-lg {
17
- left: (-@fa-li-width + (4em / 14));
18
- }
19
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/font-awesome/less/mixins.less DELETED
@@ -1,60 +0,0 @@
1
- // Mixins
2
- // --------------------------
3
-
4
- .fa-icon() {
5
- display: inline-block;
6
- font: normal normal normal @fa-font-size-base/@fa-line-height-base FontAwesome; // shortening font declaration
7
- font-size: inherit; // can't have font-size inherit on line above, so need to override
8
- text-rendering: auto; // optimizelegibility throws things off #1094
9
- -webkit-font-smoothing: antialiased;
10
- -moz-osx-font-smoothing: grayscale;
11
-
12
- }
13
-
14
- .fa-icon-rotate(@degrees, @rotation) {
15
- -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=@{rotation})";
16
- -webkit-transform: rotate(@degrees);
17
- -ms-transform: rotate(@degrees);
18
- transform: rotate(@degrees);
19
- }
20
-
21
- .fa-icon-flip(@horiz, @vert, @rotation) {
22
- -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=@{rotation}, mirror=1)";
23
- -webkit-transform: scale(@horiz, @vert);
24
- -ms-transform: scale(@horiz, @vert);
25
- transform: scale(@horiz, @vert);
26
- }
27
-
28
-
29
- // Only display content to screen readers. A la Bootstrap 4.
30
- //
31
- // See: http://a11yproject.com/posts/how-to-hide-content/
32
-
33
- .sr-only() {
34
- position: absolute;
35
- width: 1px;
36
- height: 1px;
37
- padding: 0;
38
- margin: -1px;
39
- overflow: hidden;
40
- clip: rect(0,0,0,0);
41
- border: 0;
42
- }
43
-
44
- // Use in conjunction with .sr-only to only display content when it's focused.
45
- //
46
- // Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
47
- //
48
- // Credit: HTML5 Boilerplate
49
-
50
- .sr-only-focusable() {
51
- &:active,
52
- &:focus {
53
- position: static;
54
- width: auto;
55
- height: auto;
56
- margin: 0;
57
- overflow: visible;
58
- clip: auto;
59
- }
60
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/font-awesome/less/path.less DELETED
@@ -1,15 +0,0 @@
1
- /* FONT PATH
2
- * -------------------------- */
3
-
4
- @font-face {
5
- font-family: 'FontAwesome';
6
- src: url('@{fa-font-path}/fontawesome-webfont.eot?v=@{fa-version}');
7
- src: url('@{fa-font-path}/fontawesome-webfont.eot?#iefix&v=@{fa-version}') format('embedded-opentype'),
8
- url('@{fa-font-path}/fontawesome-webfont.woff2?v=@{fa-version}') format('woff2'),
9
- url('@{fa-font-path}/fontawesome-webfont.woff?v=@{fa-version}') format('woff'),
10
- url('@{fa-font-path}/fontawesome-webfont.ttf?v=@{fa-version}') format('truetype'),
11
- url('@{fa-font-path}/fontawesome-webfont.svg?v=@{fa-version}#fontawesomeregular') format('svg');
12
- // src: url('@{fa-font-path}/FontAwesome.otf') format('opentype'); // used when developing fonts
13
- font-weight: normal;
14
- font-style: normal;
15
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/font-awesome/less/rotated-flipped.less DELETED
@@ -1,20 +0,0 @@
1
- // Rotated & Flipped Icons
2
- // -------------------------
3
-
4
- .@{fa-css-prefix}-rotate-90 { .fa-icon-rotate(90deg, 1); }
5
- .@{fa-css-prefix}-rotate-180 { .fa-icon-rotate(180deg, 2); }
6
- .@{fa-css-prefix}-rotate-270 { .fa-icon-rotate(270deg, 3); }
7
-
8
- .@{fa-css-prefix}-flip-horizontal { .fa-icon-flip(-1, 1, 0); }
9
- .@{fa-css-prefix}-flip-vertical { .fa-icon-flip(1, -1, 2); }
10
-
11
- // Hook for IE8-9
12
- // -------------------------
13
-
14
- :root .@{fa-css-prefix}-rotate-90,
15
- :root .@{fa-css-prefix}-rotate-180,
16
- :root .@{fa-css-prefix}-rotate-270,
17
- :root .@{fa-css-prefix}-flip-horizontal,
18
- :root .@{fa-css-prefix}-flip-vertical {
19
- filter: none;
20
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/font-awesome/less/screen-reader.less DELETED
@@ -1,5 +0,0 @@
1
- // Screen Readers
2
- // -------------------------
3
-
4
- .sr-only { .sr-only(); }
5
- .sr-only-focusable { .sr-only-focusable(); }
 
 
 
 
 
css/font-awesome/less/stacked.less DELETED
@@ -1,20 +0,0 @@
1
- // Stacked Icons
2
- // -------------------------
3
-
4
- .@{fa-css-prefix}-stack {
5
- position: relative;
6
- display: inline-block;
7
- width: 2em;
8
- height: 2em;
9
- line-height: 2em;
10
- vertical-align: middle;
11
- }
12
- .@{fa-css-prefix}-stack-1x, .@{fa-css-prefix}-stack-2x {
13
- position: absolute;
14
- left: 0;
15
- width: 100%;
16
- text-align: center;
17
- }
18
- .@{fa-css-prefix}-stack-1x { line-height: inherit; }
19
- .@{fa-css-prefix}-stack-2x { font-size: 2em; }
20
- .@{fa-css-prefix}-inverse { color: @fa-inverse; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/font-awesome/less/variables.less DELETED
@@ -1,744 +0,0 @@
1
- // Variables
2
- // --------------------------
3
-
4
- @fa-font-path: "../fonts";
5
- @fa-font-size-base: 14px;
6
- @fa-line-height-base: 1;
7
- //@fa-font-path: "//netdna.bootstrapcdn.com/font-awesome/4.6.3/fonts"; // for referencing Bootstrap CDN font files directly
8
- @fa-css-prefix: fa;
9
- @fa-version: "4.6.3";
10
- @fa-border-color: #eee;
11
- @fa-inverse: #fff;
12
- @fa-li-width: (30em / 14);
13
-
14
- @fa-var-500px: "\f26e";
15
- @fa-var-adjust: "\f042";
16
- @fa-var-adn: "\f170";
17
- @fa-var-align-center: "\f037";
18
- @fa-var-align-justify: "\f039";
19
- @fa-var-align-left: "\f036";
20
- @fa-var-align-right: "\f038";
21
- @fa-var-amazon: "\f270";
22
- @fa-var-ambulance: "\f0f9";
23
- @fa-var-american-sign-language-interpreting: "\f2a3";
24
- @fa-var-anchor: "\f13d";
25
- @fa-var-android: "\f17b";
26
- @fa-var-angellist: "\f209";
27
- @fa-var-angle-double-down: "\f103";
28
- @fa-var-angle-double-left: "\f100";
29
- @fa-var-angle-double-right: "\f101";
30
- @fa-var-angle-double-up: "\f102";
31
- @fa-var-angle-down: "\f107";
32
- @fa-var-angle-left: "\f104";
33
- @fa-var-angle-right: "\f105";
34
- @fa-var-angle-up: "\f106";
35
- @fa-var-apple: "\f179";
36
- @fa-var-archive: "\f187";
37
- @fa-var-area-chart: "\f1fe";
38
- @fa-var-arrow-circle-down: "\f0ab";
39
- @fa-var-arrow-circle-left: "\f0a8";
40
- @fa-var-arrow-circle-o-down: "\f01a";
41
- @fa-var-arrow-circle-o-left: "\f190";
42
- @fa-var-arrow-circle-o-right: "\f18e";
43
- @fa-var-arrow-circle-o-up: "\f01b";
44
- @fa-var-arrow-circle-right: "\f0a9";
45
- @fa-var-arrow-circle-up: "\f0aa";
46
- @fa-var-arrow-down: "\f063";
47
- @fa-var-arrow-left: "\f060";
48
- @fa-var-arrow-right: "\f061";
49
- @fa-var-arrow-up: "\f062";
50
- @fa-var-arrows: "\f047";
51
- @fa-var-arrows-alt: "\f0b2";
52
- @fa-var-arrows-h: "\f07e";
53
- @fa-var-arrows-v: "\f07d";
54
- @fa-var-asl-interpreting: "\f2a3";
55
- @fa-var-assistive-listening-systems: "\f2a2";
56
- @fa-var-asterisk: "\f069";
57
- @fa-var-at: "\f1fa";
58
- @fa-var-audio-description: "\f29e";
59
- @fa-var-automobile: "\f1b9";
60
- @fa-var-backward: "\f04a";
61
- @fa-var-balance-scale: "\f24e";
62
- @fa-var-ban: "\f05e";
63
- @fa-var-bank: "\f19c";
64
- @fa-var-bar-chart: "\f080";
65
- @fa-var-bar-chart-o: "\f080";
66
- @fa-var-barcode: "\f02a";
67
- @fa-var-bars: "\f0c9";
68
- @fa-var-battery-0: "\f244";
69
- @fa-var-battery-1: "\f243";
70
- @fa-var-battery-2: "\f242";
71
- @fa-var-battery-3: "\f241";
72
- @fa-var-battery-4: "\f240";
73
- @fa-var-battery-empty: "\f244";
74
- @fa-var-battery-full: "\f240";
75
- @fa-var-battery-half: "\f242";
76
- @fa-var-battery-quarter: "\f243";
77
- @fa-var-battery-three-quarters: "\f241";
78
- @fa-var-bed: "\f236";
79
- @fa-var-beer: "\f0fc";
80
- @fa-var-behance: "\f1b4";
81
- @fa-var-behance-square: "\f1b5";
82
- @fa-var-bell: "\f0f3";
83
- @fa-var-bell-o: "\f0a2";
84
- @fa-var-bell-slash: "\f1f6";
85
- @fa-var-bell-slash-o: "\f1f7";
86
- @fa-var-bicycle: "\f206";
87
- @fa-var-binoculars: "\f1e5";
88
- @fa-var-birthday-cake: "\f1fd";
89
- @fa-var-bitbucket: "\f171";
90
- @fa-var-bitbucket-square: "\f172";
91
- @fa-var-bitcoin: "\f15a";
92
- @fa-var-black-tie: "\f27e";
93
- @fa-var-blind: "\f29d";
94
- @fa-var-bluetooth: "\f293";
95
- @fa-var-bluetooth-b: "\f294";
96
- @fa-var-bold: "\f032";
97
- @fa-var-bolt: "\f0e7";
98
- @fa-var-bomb: "\f1e2";
99
- @fa-var-book: "\f02d";
100
- @fa-var-bookmark: "\f02e";
101
- @fa-var-bookmark-o: "\f097";
102
- @fa-var-braille: "\f2a1";
103
- @fa-var-briefcase: "\f0b1";
104
- @fa-var-btc: "\f15a";
105
- @fa-var-bug: "\f188";
106
- @fa-var-building: "\f1ad";
107
- @fa-var-building-o: "\f0f7";
108
- @fa-var-bullhorn: "\f0a1";
109
- @fa-var-bullseye: "\f140";
110
- @fa-var-bus: "\f207";
111
- @fa-var-buysellads: "\f20d";
112
- @fa-var-cab: "\f1ba";
113
- @fa-var-calculator: "\f1ec";
114
- @fa-var-calendar: "\f073";
115
- @fa-var-calendar-check-o: "\f274";
116
- @fa-var-calendar-minus-o: "\f272";
117
- @fa-var-calendar-o: "\f133";
118
- @fa-var-calendar-plus-o: "\f271";
119
- @fa-var-calendar-times-o: "\f273";
120
- @fa-var-camera: "\f030";
121
- @fa-var-camera-retro: "\f083";
122
- @fa-var-car: "\f1b9";
123
- @fa-var-caret-down: "\f0d7";
124
- @fa-var-caret-left: "\f0d9";
125
- @fa-var-caret-right: "\f0da";
126
- @fa-var-caret-square-o-down: "\f150";
127
- @fa-var-caret-square-o-left: "\f191";
128
- @fa-var-caret-square-o-right: "\f152";
129
- @fa-var-caret-square-o-up: "\f151";
130
- @fa-var-caret-up: "\f0d8";
131
- @fa-var-cart-arrow-down: "\f218";
132
- @fa-var-cart-plus: "\f217";
133
- @fa-var-cc: "\f20a";
134
- @fa-var-cc-amex: "\f1f3";
135
- @fa-var-cc-diners-club: "\f24c";
136
- @fa-var-cc-discover: "\f1f2";
137
- @fa-var-cc-jcb: "\f24b";
138
- @fa-var-cc-mastercard: "\f1f1";
139
- @fa-var-cc-paypal: "\f1f4";
140
- @fa-var-cc-stripe: "\f1f5";
141
- @fa-var-cc-visa: "\f1f0";
142
- @fa-var-certificate: "\f0a3";
143
- @fa-var-chain: "\f0c1";
144
- @fa-var-chain-broken: "\f127";
145
- @fa-var-check: "\f00c";
146
- @fa-var-check-circle: "\f058";
147
- @fa-var-check-circle-o: "\f05d";
148
- @fa-var-check-square: "\f14a";
149
- @fa-var-check-square-o: "\f046";
150
- @fa-var-chevron-circle-down: "\f13a";
151
- @fa-var-chevron-circle-left: "\f137";
152
- @fa-var-chevron-circle-right: "\f138";
153
- @fa-var-chevron-circle-up: "\f139";
154
- @fa-var-chevron-down: "\f078";
155
- @fa-var-chevron-left: "\f053";
156
- @fa-var-chevron-right: "\f054";
157
- @fa-var-chevron-up: "\f077";
158
- @fa-var-child: "\f1ae";
159
- @fa-var-chrome: "\f268";
160
- @fa-var-circle: "\f111";
161
- @fa-var-circle-o: "\f10c";
162
- @fa-var-circle-o-notch: "\f1ce";
163
- @fa-var-circle-thin: "\f1db";
164
- @fa-var-clipboard: "\f0ea";
165
- @fa-var-clock-o: "\f017";
166
- @fa-var-clone: "\f24d";
167
- @fa-var-close: "\f00d";
168
- @fa-var-cloud: "\f0c2";
169
- @fa-var-cloud-download: "\f0ed";
170
- @fa-var-cloud-upload: "\f0ee";
171
- @fa-var-cny: "\f157";
172
- @fa-var-code: "\f121";
173
- @fa-var-code-fork: "\f126";
174
- @fa-var-codepen: "\f1cb";
175
- @fa-var-codiepie: "\f284";
176
- @fa-var-coffee: "\f0f4";
177
- @fa-var-cog: "\f013";
178
- @fa-var-cogs: "\f085";
179
- @fa-var-columns: "\f0db";
180
- @fa-var-comment: "\f075";
181
- @fa-var-comment-o: "\f0e5";
182
- @fa-var-commenting: "\f27a";
183
- @fa-var-commenting-o: "\f27b";
184
- @fa-var-comments: "\f086";
185
- @fa-var-comments-o: "\f0e6";
186
- @fa-var-compass: "\f14e";
187
- @fa-var-compress: "\f066";
188
- @fa-var-connectdevelop: "\f20e";
189
- @fa-var-contao: "\f26d";
190
- @fa-var-copy: "\f0c5";
191
- @fa-var-copyright: "\f1f9";
192
- @fa-var-creative-commons: "\f25e";
193
- @fa-var-credit-card: "\f09d";
194
- @fa-var-credit-card-alt: "\f283";
195
- @fa-var-crop: "\f125";
196
- @fa-var-crosshairs: "\f05b";
197
- @fa-var-css3: "\f13c";
198
- @fa-var-cube: "\f1b2";
199
- @fa-var-cubes: "\f1b3";
200
- @fa-var-cut: "\f0c4";
201
- @fa-var-cutlery: "\f0f5";
202
- @fa-var-dashboard: "\f0e4";
203
- @fa-var-dashcube: "\f210";
204
- @fa-var-database: "\f1c0";
205
- @fa-var-deaf: "\f2a4";
206
- @fa-var-deafness: "\f2a4";
207
- @fa-var-dedent: "\f03b";
208
- @fa-var-delicious: "\f1a5";
209
- @fa-var-desktop: "\f108";
210
- @fa-var-deviantart: "\f1bd";
211
- @fa-var-diamond: "\f219";
212
- @fa-var-digg: "\f1a6";
213
- @fa-var-dollar: "\f155";
214
- @fa-var-dot-circle-o: "\f192";
215
- @fa-var-download: "\f019";
216
- @fa-var-dribbble: "\f17d";
217
- @fa-var-dropbox: "\f16b";
218
- @fa-var-drupal: "\f1a9";
219
- @fa-var-edge: "\f282";
220
- @fa-var-edit: "\f044";
221
- @fa-var-eject: "\f052";
222
- @fa-var-ellipsis-h: "\f141";
223
- @fa-var-ellipsis-v: "\f142";
224
- @fa-var-empire: "\f1d1";
225
- @fa-var-envelope: "\f0e0";
226
- @fa-var-envelope-o: "\f003";
227
- @fa-var-envelope-square: "\f199";
228
- @fa-var-envira: "\f299";
229
- @fa-var-eraser: "\f12d";
230
- @fa-var-eur: "\f153";
231
- @fa-var-euro: "\f153";
232
- @fa-var-exchange: "\f0ec";
233
- @fa-var-exclamation: "\f12a";
234
- @fa-var-exclamation-circle: "\f06a";
235
- @fa-var-exclamation-triangle: "\f071";
236
- @fa-var-expand: "\f065";
237
- @fa-var-expeditedssl: "\f23e";
238
- @fa-var-external-link: "\f08e";
239
- @fa-var-external-link-square: "\f14c";
240
- @fa-var-eye: "\f06e";
241
- @fa-var-eye-slash: "\f070";
242
- @fa-var-eyedropper: "\f1fb";
243
- @fa-var-fa: "\f2b4";
244
- @fa-var-facebook: "\f09a";
245
- @fa-var-facebook-f: "\f09a";
246
- @fa-var-facebook-official: "\f230";
247
- @fa-var-facebook-square: "\f082";
248
- @fa-var-fast-backward: "\f049";
249
- @fa-var-fast-forward: "\f050";
250
- @fa-var-fax: "\f1ac";
251
- @fa-var-feed: "\f09e";
252
- @fa-var-female: "\f182";
253
- @fa-var-fighter-jet: "\f0fb";
254
- @fa-var-file: "\f15b";
255
- @fa-var-file-archive-o: "\f1c6";
256
- @fa-var-file-audio-o: "\f1c7";
257
- @fa-var-file-code-o: "\f1c9";
258
- @fa-var-file-excel-o: "\f1c3";
259
- @fa-var-file-image-o: "\f1c5";
260
- @fa-var-file-movie-o: "\f1c8";
261
- @fa-var-file-o: "\f016";
262
- @fa-var-file-pdf-o: "\f1c1";
263
- @fa-var-file-photo-o: "\f1c5";
264
- @fa-var-file-picture-o: "\f1c5";
265
- @fa-var-file-powerpoint-o: "\f1c4";
266
- @fa-var-file-sound-o: "\f1c7";
267
- @fa-var-file-text: "\f15c";
268
- @fa-var-file-text-o: "\f0f6";
269
- @fa-var-file-video-o: "\f1c8";
270
- @fa-var-file-word-o: "\f1c2";
271
- @fa-var-file-zip-o: "\f1c6";
272
- @fa-var-files-o: "\f0c5";
273
- @fa-var-film: "\f008";
274
- @fa-var-filter: "\f0b0";
275
- @fa-var-fire: "\f06d";
276
- @fa-var-fire-extinguisher: "\f134";
277
- @fa-var-firefox: "\f269";
278
- @fa-var-first-order: "\f2b0";
279
- @fa-var-flag: "\f024";
280
- @fa-var-flag-checkered: "\f11e";
281
- @fa-var-flag-o: "\f11d";
282
- @fa-var-flash: "\f0e7";
283
- @fa-var-flask: "\f0c3";
284
- @fa-var-flickr: "\f16e";
285
- @fa-var-floppy-o: "\f0c7";
286
- @fa-var-folder: "\f07b";
287
- @fa-var-folder-o: "\f114";
288
- @fa-var-folder-open: "\f07c";
289
- @fa-var-folder-open-o: "\f115";
290
- @fa-var-font: "\f031";
291
- @fa-var-font-awesome: "\f2b4";
292
- @fa-var-fonticons: "\f280";
293
- @fa-var-fort-awesome: "\f286";
294
- @fa-var-forumbee: "\f211";
295
- @fa-var-forward: "\f04e";
296
- @fa-var-foursquare: "\f180";
297
- @fa-var-frown-o: "\f119";
298
- @fa-var-futbol-o: "\f1e3";
299
- @fa-var-gamepad: "\f11b";
300
- @fa-var-gavel: "\f0e3";
301
- @fa-var-gbp: "\f154";
302
- @fa-var-ge: "\f1d1";
303
- @fa-var-gear: "\f013";
304
- @fa-var-gears: "\f085";
305
- @fa-var-genderless: "\f22d";
306
- @fa-var-get-pocket: "\f265";
307
- @fa-var-gg: "\f260";
308
- @fa-var-gg-circle: "\f261";
309
- @fa-var-gift: "\f06b";
310
- @fa-var-git: "\f1d3";
311
- @fa-var-git-square: "\f1d2";
312
- @fa-var-github: "\f09b";
313
- @fa-var-github-alt: "\f113";
314
- @fa-var-github-square: "\f092";
315
- @fa-var-gitlab: "\f296";
316
- @fa-var-gittip: "\f184";
317
- @fa-var-glass: "\f000";
318
- @fa-var-glide: "\f2a5";
319
- @fa-var-glide-g: "\f2a6";
320
- @fa-var-globe: "\f0ac";
321
- @fa-var-google: "\f1a0";
322
- @fa-var-google-plus: "\f0d5";
323
- @fa-var-google-plus-circle: "\f2b3";
324
- @fa-var-google-plus-official: "\f2b3";
325
- @fa-var-google-plus-square: "\f0d4";
326
- @fa-var-google-wallet: "\f1ee";
327
- @fa-var-graduation-cap: "\f19d";
328
- @fa-var-gratipay: "\f184";
329
- @fa-var-group: "\f0c0";
330
- @fa-var-h-square: "\f0fd";
331
- @fa-var-hacker-news: "\f1d4";
332
- @fa-var-hand-grab-o: "\f255";
333
- @fa-var-hand-lizard-o: "\f258";
334
- @fa-var-hand-o-down: "\f0a7";
335
- @fa-var-hand-o-left: "\f0a5";
336
- @fa-var-hand-o-right: "\f0a4";
337
- @fa-var-hand-o-up: "\f0a6";
338
- @fa-var-hand-paper-o: "\f256";
339
- @fa-var-hand-peace-o: "\f25b";
340
- @fa-var-hand-pointer-o: "\f25a";
341
- @fa-var-hand-rock-o: "\f255";
342
- @fa-var-hand-scissors-o: "\f257";
343
- @fa-var-hand-spock-o: "\f259";
344
- @fa-var-hand-stop-o: "\f256";
345
- @fa-var-hard-of-hearing: "\f2a4";
346
- @fa-var-hashtag: "\f292";
347
- @fa-var-hdd-o: "\f0a0";
348
- @fa-var-header: "\f1dc";
349
- @fa-var-headphones: "\f025";
350
- @fa-var-heart: "\f004";
351
- @fa-var-heart-o: "\f08a";
352
- @fa-var-heartbeat: "\f21e";
353
- @fa-var-history: "\f1da";
354
- @fa-var-home: "\f015";
355
- @fa-var-hospital-o: "\f0f8";
356
- @fa-var-hotel: "\f236";
357
- @fa-var-hourglass: "\f254";
358
- @fa-var-hourglass-1: "\f251";
359
- @fa-var-hourglass-2: "\f252";
360
- @fa-var-hourglass-3: "\f253";
361
- @fa-var-hourglass-end: "\f253";
362
- @fa-var-hourglass-half: "\f252";
363
- @fa-var-hourglass-o: "\f250";
364
- @fa-var-hourglass-start: "\f251";
365
- @fa-var-houzz: "\f27c";
366
- @fa-var-html5: "\f13b";
367
- @fa-var-i-cursor: "\f246";
368
- @fa-var-ils: "\f20b";
369
- @fa-var-image: "\f03e";
370
- @fa-var-inbox: "\f01c";
371
- @fa-var-indent: "\f03c";
372
- @fa-var-industry: "\f275";
373
- @fa-var-info: "\f129";
374
- @fa-var-info-circle: "\f05a";
375
- @fa-var-inr: "\f156";
376
- @fa-var-instagram: "\f16d";
377
- @fa-var-institution: "\f19c";
378
- @fa-var-internet-explorer: "\f26b";
379
- @fa-var-intersex: "\f224";
380
- @fa-var-ioxhost: "\f208";
381
- @fa-var-italic: "\f033";
382
- @fa-var-joomla: "\f1aa";
383
- @fa-var-jpy: "\f157";
384
- @fa-var-jsfiddle: "\f1cc";
385
- @fa-var-key: "\f084";
386
- @fa-var-keyboard-o: "\f11c";
387
- @fa-var-krw: "\f159";
388
- @fa-var-language: "\f1ab";
389
- @fa-var-laptop: "\f109";
390
- @fa-var-lastfm: "\f202";
391
- @fa-var-lastfm-square: "\f203";
392
- @fa-var-leaf: "\f06c";
393
- @fa-var-leanpub: "\f212";
394
- @fa-var-legal: "\f0e3";
395
- @fa-var-lemon-o: "\f094";
396
- @fa-var-level-down: "\f149";
397
- @fa-var-level-up: "\f148";
398
- @fa-var-life-bouy: "\f1cd";
399
- @fa-var-life-buoy: "\f1cd";
400
- @fa-var-life-ring: "\f1cd";
401
- @fa-var-life-saver: "\f1cd";
402
- @fa-var-lightbulb-o: "\f0eb";
403
- @fa-var-line-chart: "\f201";
404
- @fa-var-link: "\f0c1";
405
- @fa-var-linkedin: "\f0e1";
406
- @fa-var-linkedin-square: "\f08c";
407
- @fa-var-linux: "\f17c";
408
- @fa-var-list: "\f03a";
409
- @fa-var-list-alt: "\f022";
410
- @fa-var-list-ol: "\f0cb";
411
- @fa-var-list-ul: "\f0ca";
412
- @fa-var-location-arrow: "\f124";
413
- @fa-var-lock: "\f023";
414
- @fa-var-long-arrow-down: "\f175";
415
- @fa-var-long-arrow-left: "\f177";
416
- @fa-var-long-arrow-right: "\f178";
417
- @fa-var-long-arrow-up: "\f176";
418
- @fa-var-low-vision: "\f2a8";
419
- @fa-var-magic: "\f0d0";
420
- @fa-var-magnet: "\f076";
421
- @fa-var-mail-forward: "\f064";
422
- @fa-var-mail-reply: "\f112";
423
- @fa-var-mail-reply-all: "\f122";
424
- @fa-var-male: "\f183";
425
- @fa-var-map: "\f279";
426
- @fa-var-map-marker: "\f041";
427
- @fa-var-map-o: "\f278";
428
- @fa-var-map-pin: "\f276";
429
- @fa-var-map-signs: "\f277";
430
- @fa-var-mars: "\f222";
431
- @fa-var-mars-double: "\f227";
432
- @fa-var-mars-stroke: "\f229";
433
- @fa-var-mars-stroke-h: "\f22b";
434
- @fa-var-mars-stroke-v: "\f22a";
435
- @fa-var-maxcdn: "\f136";
436
- @fa-var-meanpath: "\f20c";
437
- @fa-var-medium: "\f23a";
438
- @fa-var-medkit: "\f0fa";
439
- @fa-var-meh-o: "\f11a";
440
- @fa-var-mercury: "\f223";
441
- @fa-var-microphone: "\f130";
442
- @fa-var-microphone-slash: "\f131";
443
- @fa-var-minus: "\f068";
444
- @fa-var-minus-circle: "\f056";
445
- @fa-var-minus-square: "\f146";
446
- @fa-var-minus-square-o: "\f147";
447
- @fa-var-mixcloud: "\f289";
448
- @fa-var-mobile: "\f10b";
449
- @fa-var-mobile-phone: "\f10b";
450
- @fa-var-modx: "\f285";
451
- @fa-var-money: "\f0d6";
452
- @fa-var-moon-o: "\f186";
453
- @fa-var-mortar-board: "\f19d";
454
- @fa-var-motorcycle: "\f21c";
455
- @fa-var-mouse-pointer: "\f245";
456
- @fa-var-music: "\f001";
457
- @fa-var-navicon: "\f0c9";
458
- @fa-var-neuter: "\f22c";
459
- @fa-var-newspaper-o: "\f1ea";
460
- @fa-var-object-group: "\f247";
461
- @fa-var-object-ungroup: "\f248";
462
- @fa-var-odnoklassniki: "\f263";
463
- @fa-var-odnoklassniki-square: "\f264";
464
- @fa-var-opencart: "\f23d";
465
- @fa-var-openid: "\f19b";
466
- @fa-var-opera: "\f26a";
467
- @fa-var-optin-monster: "\f23c";
468
- @fa-var-outdent: "\f03b";
469
- @fa-var-pagelines: "\f18c";
470
- @fa-var-paint-brush: "\f1fc";
471
- @fa-var-paper-plane: "\f1d8";
472
- @fa-var-paper-plane-o: "\f1d9";
473
- @fa-var-paperclip: "\f0c6";
474
- @fa-var-paragraph: "\f1dd";
475
- @fa-var-paste: "\f0ea";
476
- @fa-var-pause: "\f04c";
477
- @fa-var-pause-circle: "\f28b";
478
- @fa-var-pause-circle-o: "\f28c";
479
- @fa-var-paw: "\f1b0";
480
- @fa-var-paypal: "\f1ed";
481
- @fa-var-pencil: "\f040";
482
- @fa-var-pencil-square: "\f14b";
483
- @fa-var-pencil-square-o: "\f044";
484
- @fa-var-percent: "\f295";
485
- @fa-var-phone: "\f095";
486
- @fa-var-phone-square: "\f098";
487
- @fa-var-photo: "\f03e";
488
- @fa-var-picture-o: "\f03e";
489
- @fa-var-pie-chart: "\f200";
490
- @fa-var-pied-piper: "\f2ae";
491
- @fa-var-pied-piper-alt: "\f1a8";
492
- @fa-var-pied-piper-pp: "\f1a7";
493
- @fa-var-pinterest: "\f0d2";
494
- @fa-var-pinterest-p: "\f231";
495
- @fa-var-pinterest-square: "\f0d3";
496
- @fa-var-plane: "\f072";
497
- @fa-var-play: "\f04b";
498
- @fa-var-play-circle: "\f144";
499
- @fa-var-play-circle-o: "\f01d";
500
- @fa-var-plug: "\f1e6";
501
- @fa-var-plus: "\f067";
502
- @fa-var-plus-circle: "\f055";
503
- @fa-var-plus-square: "\f0fe";
504
- @fa-var-plus-square-o: "\f196";
505
- @fa-var-power-off: "\f011";
506
- @fa-var-print: "\f02f";
507
- @fa-var-product-hunt: "\f288";
508
- @fa-var-puzzle-piece: "\f12e";
509
- @fa-var-qq: "\f1d6";
510
- @fa-var-qrcode: "\f029";
511
- @fa-var-question: "\f128";
512
- @fa-var-question-circle: "\f059";
513
- @fa-var-question-circle-o: "\f29c";
514
- @fa-var-quote-left: "\f10d";
515
- @fa-var-quote-right: "\f10e";
516
- @fa-var-ra: "\f1d0";
517
- @fa-var-random: "\f074";
518
- @fa-var-rebel: "\f1d0";
519
- @fa-var-recycle: "\f1b8";
520
- @fa-var-reddit: "\f1a1";
521
- @fa-var-reddit-alien: "\f281";
522
- @fa-var-reddit-square: "\f1a2";
523
- @fa-var-refresh: "\f021";
524
- @fa-var-registered: "\f25d";
525
- @fa-var-remove: "\f00d";
526
- @fa-var-renren: "\f18b";
527
- @fa-var-reorder: "\f0c9";
528
- @fa-var-repeat: "\f01e";
529
- @fa-var-reply: "\f112";
530
- @fa-var-reply-all: "\f122";
531
- @fa-var-resistance: "\f1d0";
532
- @fa-var-retweet: "\f079";
533
- @fa-var-rmb: "\f157";
534
- @fa-var-road: "\f018";
535
- @fa-var-rocket: "\f135";
536
- @fa-var-rotate-left: "\f0e2";
537
- @fa-var-rotate-right: "\f01e";
538
- @fa-var-rouble: "\f158";
539
- @fa-var-rss: "\f09e";
540
- @fa-var-rss-square: "\f143";
541
- @fa-var-rub: "\f158";
542
- @fa-var-ruble: "\f158";
543
- @fa-var-rupee: "\f156";
544
- @fa-var-safari: "\f267";
545
- @fa-var-save: "\f0c7";
546
- @fa-var-scissors: "\f0c4";
547
- @fa-var-scribd: "\f28a";
548
- @fa-var-search: "\f002";
549
- @fa-var-search-minus: "\f010";
550
- @fa-var-search-plus: "\f00e";
551
- @fa-var-sellsy: "\f213";
552
- @fa-var-send: "\f1d8";
553
- @fa-var-send-o: "\f1d9";
554
- @fa-var-server: "\f233";
555
- @fa-var-share: "\f064";
556
- @fa-var-share-alt: "\f1e0";
557
- @fa-var-share-alt-square: "\f1e1";
558
- @fa-var-share-square: "\f14d";
559
- @fa-var-share-square-o: "\f045";
560
- @fa-var-shekel: "\f20b";
561
- @fa-var-sheqel: "\f20b";
562
- @fa-var-shield: "\f132";
563
- @fa-var-ship: "\f21a";
564
- @fa-var-shirtsinbulk: "\f214";
565
- @fa-var-shopping-bag: "\f290";
566
- @fa-var-shopping-basket: "\f291";
567
- @fa-var-shopping-cart: "\f07a";
568
- @fa-var-sign-in: "\f090";
569
- @fa-var-sign-language: "\f2a7";
570
- @fa-var-sign-out: "\f08b";
571
- @fa-var-signal: "\f012";
572
- @fa-var-signing: "\f2a7";
573
- @fa-var-simplybuilt: "\f215";
574
- @fa-var-sitemap: "\f0e8";
575
- @fa-var-skyatlas: "\f216";
576
- @fa-var-skype: "\f17e";
577
- @fa-var-slack: "\f198";
578
- @fa-var-sliders: "\f1de";
579
- @fa-var-slideshare: "\f1e7";
580
- @fa-var-smile-o: "\f118";
581
- @fa-var-snapchat: "\f2ab";
582
- @fa-var-snapchat-ghost: "\f2ac";
583
- @fa-var-snapchat-square: "\f2ad";
584
- @fa-var-soccer-ball-o: "\f1e3";
585
- @fa-var-sort: "\f0dc";
586
- @fa-var-sort-alpha-asc: "\f15d";
587
- @fa-var-sort-alpha-desc: "\f15e";
588
- @fa-var-sort-amount-asc: "\f160";
589
- @fa-var-sort-amount-desc: "\f161";
590
- @fa-var-sort-asc: "\f0de";
591
- @fa-var-sort-desc: "\f0dd";
592
- @fa-var-sort-down: "\f0dd";
593
- @fa-var-sort-numeric-asc: "\f162";
594
- @fa-var-sort-numeric-desc: "\f163";
595
- @fa-var-sort-up: "\f0de";
596
- @fa-var-soundcloud: "\f1be";
597
- @fa-var-space-shuttle: "\f197";
598
- @fa-var-spinner: "\f110";
599
- @fa-var-spoon: "\f1b1";
600
- @fa-var-spotify: "\f1bc";
601
- @fa-var-square: "\f0c8";
602
- @fa-var-square-o: "\f096";
603
- @fa-var-stack-exchange: "\f18d";
604
- @fa-var-stack-overflow: "\f16c";
605
- @fa-var-star: "\f005";
606
- @fa-var-star-half: "\f089";
607
- @fa-var-star-half-empty: "\f123";
608
- @fa-var-star-half-full: "\f123";
609
- @fa-var-star-half-o: "\f123";
610
- @fa-var-star-o: "\f006";
611
- @fa-var-steam: "\f1b6";
612
- @fa-var-steam-square: "\f1b7";
613
- @fa-var-step-backward: "\f048";
614
- @fa-var-step-forward: "\f051";
615
- @fa-var-stethoscope: "\f0f1";
616
- @fa-var-sticky-note: "\f249";
617
- @fa-var-sticky-note-o: "\f24a";
618
- @fa-var-stop: "\f04d";
619
- @fa-var-stop-circle: "\f28d";
620
- @fa-var-stop-circle-o: "\f28e";
621
- @fa-var-street-view: "\f21d";
622
- @fa-var-strikethrough: "\f0cc";
623
- @fa-var-stumbleupon: "\f1a4";
624
- @fa-var-stumbleupon-circle: "\f1a3";
625
- @fa-var-subscript: "\f12c";
626
- @fa-var-subway: "\f239";
627
- @fa-var-suitcase: "\f0f2";
628
- @fa-var-sun-o: "\f185";
629
- @fa-var-superscript: "\f12b";
630
- @fa-var-support: "\f1cd";
631
- @fa-var-table: "\f0ce";
632
- @fa-var-tablet: "\f10a";
633
- @fa-var-tachometer: "\f0e4";
634
- @fa-var-tag: "\f02b";
635
- @fa-var-tags: "\f02c";
636
- @fa-var-tasks: "\f0ae";
637
- @fa-var-taxi: "\f1ba";
638
- @fa-var-television: "\f26c";
639
- @fa-var-tencent-weibo: "\f1d5";
640
- @fa-var-terminal: "\f120";
641
- @fa-var-text-height: "\f034";
642
- @fa-var-text-width: "\f035";
643
- @fa-var-th: "\f00a";
644
- @fa-var-th-large: "\f009";
645
- @fa-var-th-list: "\f00b";
646
- @fa-var-themeisle: "\f2b2";
647
- @fa-var-thumb-tack: "\f08d";
648
- @fa-var-thumbs-down: "\f165";
649
- @fa-var-thumbs-o-down: "\f088";
650
- @fa-var-thumbs-o-up: "\f087";
651
- @fa-var-thumbs-up: "\f164";
652
- @fa-var-ticket: "\f145";
653
- @fa-var-times: "\f00d";
654
- @fa-var-times-circle: "\f057";
655
- @fa-var-times-circle-o: "\f05c";
656
- @fa-var-tint: "\f043";
657
- @fa-var-toggle-down: "\f150";
658
- @fa-var-toggle-left: "\f191";
659
- @fa-var-toggle-off: "\f204";
660
- @fa-var-toggle-on: "\f205";
661
- @fa-var-toggle-right: "\f152";
662
- @fa-var-toggle-up: "\f151";
663
- @fa-var-trademark: "\f25c";
664
- @fa-var-train: "\f238";
665
- @fa-var-transgender: "\f224";
666
- @fa-var-transgender-alt: "\f225";
667
- @fa-var-trash: "\f1f8";
668
- @fa-var-trash-o: "\f014";
669
- @fa-var-tree: "\f1bb";
670
- @fa-var-trello: "\f181";
671
- @fa-var-tripadvisor: "\f262";
672
- @fa-var-trophy: "\f091";
673
- @fa-var-truck: "\f0d1";
674
- @fa-var-try: "\f195";
675
- @fa-var-tty: "\f1e4";
676
- @fa-var-tumblr: "\f173";
677
- @fa-var-tumblr-square: "\f174";
678
- @fa-var-turkish-lira: "\f195";
679
- @fa-var-tv: "\f26c";
680
- @fa-var-twitch: "\f1e8";
681
- @fa-var-twitter: "\f099";
682
- @fa-var-twitter-square: "\f081";
683
- @fa-var-umbrella: "\f0e9";
684
- @fa-var-underline: "\f0cd";
685
- @fa-var-undo: "\f0e2";
686
- @fa-var-universal-access: "\f29a";
687
- @fa-var-university: "\f19c";
688
- @fa-var-unlink: "\f127";
689
- @fa-var-unlock: "\f09c";
690
- @fa-var-unlock-alt: "\f13e";
691
- @fa-var-unsorted: "\f0dc";
692
- @fa-var-upload: "\f093";
693
- @fa-var-usb: "\f287";
694
- @fa-var-usd: "\f155";
695
- @fa-var-user: "\f007";
696
- @fa-var-user-md: "\f0f0";
697
- @fa-var-user-plus: "\f234";
698
- @fa-var-user-secret: "\f21b";
699
- @fa-var-user-times: "\f235";
700
- @fa-var-users: "\f0c0";
701
- @fa-var-venus: "\f221";
702
- @fa-var-venus-double: "\f226";
703
- @fa-var-venus-mars: "\f228";
704
- @fa-var-viacoin: "\f237";
705
- @fa-var-viadeo: "\f2a9";
706
- @fa-var-viadeo-square: "\f2aa";
707
- @fa-var-video-camera: "\f03d";
708
- @fa-var-vimeo: "\f27d";
709
- @fa-var-vimeo-square: "\f194";
710
- @fa-var-vine: "\f1ca";
711
- @fa-var-vk: "\f189";
712
- @fa-var-volume-control-phone: "\f2a0";
713
- @fa-var-volume-down: "\f027";
714
- @fa-var-volume-off: "\f026";
715
- @fa-var-volume-up: "\f028";
716
- @fa-var-warning: "\f071";
717
- @fa-var-wechat: "\f1d7";
718
- @fa-var-weibo: "\f18a";
719
- @fa-var-weixin: "\f1d7";
720
- @fa-var-whatsapp: "\f232";
721
- @fa-var-wheelchair: "\f193";
722
- @fa-var-wheelchair-alt: "\f29b";
723
- @fa-var-wifi: "\f1eb";
724
- @fa-var-wikipedia-w: "\f266";
725
- @fa-var-windows: "\f17a";
726
- @fa-var-won: "\f159";
727
- @fa-var-wordpress: "\f19a";
728
- @fa-var-wpbeginner: "\f297";
729
- @fa-var-wpforms: "\f298";
730
- @fa-var-wrench: "\f0ad";
731
- @fa-var-xing: "\f168";
732
- @fa-var-xing-square: "\f169";
733
- @fa-var-y-combinator: "\f23b";
734
- @fa-var-y-combinator-square: "\f1d4";
735
- @fa-var-yahoo: "\f19e";
736
- @fa-var-yc: "\f23b";
737
- @fa-var-yc-square: "\f1d4";
738
- @fa-var-yelp: "\f1e9";
739
- @fa-var-yen: "\f157";
740
- @fa-var-yoast: "\f2b1";
741
- @fa-var-youtube: "\f167";
742
- @fa-var-youtube-play: "\f16a";
743
- @fa-var-youtube-square: "\f166";
744
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/font-awesome/scss/_animated.scss DELETED
@@ -1,34 +0,0 @@
1
- // Spinning Icons
2
- // --------------------------
3
-
4
- .#{$fa-css-prefix}-spin {
5
- -webkit-animation: fa-spin 2s infinite linear;
6
- animation: fa-spin 2s infinite linear;
7
- }
8
-
9
- .#{$fa-css-prefix}-pulse {
10
- -webkit-animation: fa-spin 1s infinite steps(8);
11
- animation: fa-spin 1s infinite steps(8);
12
- }
13
-
14
- @-webkit-keyframes fa-spin {
15
- 0% {
16
- -webkit-transform: rotate(0deg);
17
- transform: rotate(0deg);
18
- }
19
- 100% {
20
- -webkit-transform: rotate(359deg);
21
- transform: rotate(359deg);
22
- }
23
- }
24
-
25
- @keyframes fa-spin {
26
- 0% {
27
- -webkit-transform: rotate(0deg);
28
- transform: rotate(0deg);
29
- }
30
- 100% {
31
- -webkit-transform: rotate(359deg);
32
- transform: rotate(359deg);
33
- }
34
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/font-awesome/scss/_bordered-pulled.scss DELETED
@@ -1,25 +0,0 @@
1
- // Bordered & Pulled
2
- // -------------------------
3
-
4
- .#{$fa-css-prefix}-border {
5
- padding: .2em .25em .15em;
6
- border: solid .08em $fa-border-color;
7
- border-radius: .1em;
8
- }
9
-
10
- .#{$fa-css-prefix}-pull-left { float: left; }
11
- .#{$fa-css-prefix}-pull-right { float: right; }
12
-
13
- .#{$fa-css-prefix} {
14
- &.#{$fa-css-prefix}-pull-left { margin-right: .3em; }
15
- &.#{$fa-css-prefix}-pull-right { margin-left: .3em; }
16
- }
17
-
18
- /* Deprecated as of 4.4.0 */
19
- .pull-right { float: right; }
20
- .pull-left { float: left; }
21
-
22
- .#{$fa-css-prefix} {
23
- &.pull-left { margin-right: .3em; }
24
- &.pull-right { margin-left: .3em; }
25
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/font-awesome/scss/_core.scss DELETED
@@ -1,12 +0,0 @@
1
- // Base Class Definition
2
- // -------------------------
3
-
4
- .#{$fa-css-prefix} {
5
- display: inline-block;
6
- font: normal normal normal #{$fa-font-size-base}/#{$fa-line-height-base} FontAwesome; // shortening font declaration
7
- font-size: inherit; // can't have font-size inherit on line above, so need to override
8
- text-rendering: auto; // optimizelegibility throws things off #1094
9
- -webkit-font-smoothing: antialiased;
10
- -moz-osx-font-smoothing: grayscale;
11
-
12
- }
 
 
 
 
 
 
 
 
 
 
 
 
css/font-awesome/scss/_fixed-width.scss DELETED
@@ -1,6 +0,0 @@
1
- // Fixed Width Icons
2
- // -------------------------
3
- .#{$fa-css-prefix}-fw {
4
- width: (18em / 14);
5
- text-align: center;
6
- }
 
 
 
 
 
 
css/font-awesome/scss/_icons.scss DELETED
@@ -1,733 +0,0 @@
1
- /* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
2
- readers do not read off random characters that represent icons */
3
-
4
- .#{$fa-css-prefix}-glass:before { content: $fa-var-glass; }
5
- .#{$fa-css-prefix}-music:before { content: $fa-var-music; }
6
- .#{$fa-css-prefix}-search:before { content: $fa-var-search; }
7
- .#{$fa-css-prefix}-envelope-o:before { content: $fa-var-envelope-o; }
8
- .#{$fa-css-prefix}-heart:before { content: $fa-var-heart; }
9
- .#{$fa-css-prefix}-star:before { content: $fa-var-star; }
10
- .#{$fa-css-prefix}-star-o:before { content: $fa-var-star-o; }
11
- .#{$fa-css-prefix}-user:before { content: $fa-var-user; }
12
- .#{$fa-css-prefix}-film:before { content: $fa-var-film; }
13
- .#{$fa-css-prefix}-th-large:before { content: $fa-var-th-large; }
14
- .#{$fa-css-prefix}-th:before { content: $fa-var-th; }
15
- .#{$fa-css-prefix}-th-list:before { content: $fa-var-th-list; }
16
- .#{$fa-css-prefix}-check:before { content: $fa-var-check; }
17
- .#{$fa-css-prefix}-remove:before,
18
- .#{$fa-css-prefix}-close:before,
19
- .#{$fa-css-prefix}-times:before { content: $fa-var-times; }
20
- .#{$fa-css-prefix}-search-plus:before { content: $fa-var-search-plus; }
21
- .#{$fa-css-prefix}-search-minus:before { content: $fa-var-search-minus; }
22
- .#{$fa-css-prefix}-power-off:before { content: $fa-var-power-off; }
23
- .#{$fa-css-prefix}-signal:before { content: $fa-var-signal; }
24
- .#{$fa-css-prefix}-gear:before,
25
- .#{$fa-css-prefix}-cog:before { content: $fa-var-cog; }
26
- .#{$fa-css-prefix}-trash-o:before { content: $fa-var-trash-o; }
27
- .#{$fa-css-prefix}-home:before { content: $fa-var-home; }
28
- .#{$fa-css-prefix}-file-o:before { content: $fa-var-file-o; }
29
- .#{$fa-css-prefix}-clock-o:before { content: $fa-var-clock-o; }
30
- .#{$fa-css-prefix}-road:before { content: $fa-var-road; }
31
- .#{$fa-css-prefix}-download:before { content: $fa-var-download; }
32
- .#{$fa-css-prefix}-arrow-circle-o-down:before { content: $fa-var-arrow-circle-o-down; }
33
- .#{$fa-css-prefix}-arrow-circle-o-up:before { content: $fa-var-arrow-circle-o-up; }
34
- .#{$fa-css-prefix}-inbox:before { content: $fa-var-inbox; }
35
- .#{$fa-css-prefix}-play-circle-o:before { content: $fa-var-play-circle-o; }
36
- .#{$fa-css-prefix}-rotate-right:before,
37
- .#{$fa-css-prefix}-repeat:before { content: $fa-var-repeat; }
38
- .#{$fa-css-prefix}-refresh:before { content: $fa-var-refresh; }
39
- .#{$fa-css-prefix}-list-alt:before { content: $fa-var-list-alt; }
40
- .#{$fa-css-prefix}-lock:before { content: $fa-var-lock; }
41
- .#{$fa-css-prefix}-flag:before { content: $fa-var-flag; }
42
- .#{$fa-css-prefix}-headphones:before { content: $fa-var-headphones; }
43
- .#{$fa-css-prefix}-volume-off:before { content: $fa-var-volume-off; }
44
- .#{$fa-css-prefix}-volume-down:before { content: $fa-var-volume-down; }
45
- .#{$fa-css-prefix}-volume-up:before { content: $fa-var-volume-up; }
46
- .#{$fa-css-prefix}-qrcode:before { content: $fa-var-qrcode; }
47
- .#{$fa-css-prefix}-barcode:before { content: $fa-var-barcode; }
48
- .#{$fa-css-prefix}-tag:before { content: $fa-var-tag; }
49
- .#{$fa-css-prefix}-tags:before { content: $fa-var-tags; }
50
- .#{$fa-css-prefix}-book:before { content: $fa-var-book; }
51
- .#{$fa-css-prefix}-bookmark:before { content: $fa-var-bookmark; }
52
- .#{$fa-css-prefix}-print:before { content: $fa-var-print; }
53
- .#{$fa-css-prefix}-camera:before { content: $fa-var-camera; }
54
- .#{$fa-css-prefix}-font:before { content: $fa-var-font; }
55
- .#{$fa-css-prefix}-bold:before { content: $fa-var-bold; }
56
- .#{$fa-css-prefix}-italic:before { content: $fa-var-italic; }
57
- .#{$fa-css-prefix}-text-height:before { content: $fa-var-text-height; }
58
- .#{$fa-css-prefix}-text-width:before { content: $fa-var-text-width; }
59
- .#{$fa-css-prefix}-align-left:before { content: $fa-var-align-left; }
60
- .#{$fa-css-prefix}-align-center:before { content: $fa-var-align-center; }
61
- .#{$fa-css-prefix}-align-right:before { content: $fa-var-align-right; }
62
- .#{$fa-css-prefix}-align-justify:before { content: $fa-var-align-justify; }
63
- .#{$fa-css-prefix}-list:before { content: $fa-var-list; }
64
- .#{$fa-css-prefix}-dedent:before,
65
- .#{$fa-css-prefix}-outdent:before { content: $fa-var-outdent; }
66
- .#{$fa-css-prefix}-indent:before { content: $fa-var-indent; }
67
- .#{$fa-css-prefix}-video-camera:before { content: $fa-var-video-camera; }
68
- .#{$fa-css-prefix}-photo:before,
69
- .#{$fa-css-prefix}-image:before,
70
- .#{$fa-css-prefix}-picture-o:before { content: $fa-var-picture-o; }
71
- .#{$fa-css-prefix}-pencil:before { content: $fa-var-pencil; }
72
- .#{$fa-css-prefix}-map-marker:before { content: $fa-var-map-marker; }
73
- .#{$fa-css-prefix}-adjust:before { content: $fa-var-adjust; }
74
- .#{$fa-css-prefix}-tint:before { content: $fa-var-tint; }
75
- .#{$fa-css-prefix}-edit:before,
76
- .#{$fa-css-prefix}-pencil-square-o:before { content: $fa-var-pencil-square-o; }
77
- .#{$fa-css-prefix}-share-square-o:before { content: $fa-var-share-square-o; }
78
- .#{$fa-css-prefix}-check-square-o:before { content: $fa-var-check-square-o; }
79
- .#{$fa-css-prefix}-arrows:before { content: $fa-var-arrows; }
80
- .#{$fa-css-prefix}-step-backward:before { content: $fa-var-step-backward; }
81
- .#{$fa-css-prefix}-fast-backward:before { content: $fa-var-fast-backward; }
82
- .#{$fa-css-prefix}-backward:before { content: $fa-var-backward; }
83
- .#{$fa-css-prefix}-play:before { content: $fa-var-play; }
84
- .#{$fa-css-prefix}-pause:before { content: $fa-var-pause; }
85
- .#{$fa-css-prefix}-stop:before { content: $fa-var-stop; }
86
- .#{$fa-css-prefix}-forward:before { content: $fa-var-forward; }
87
- .#{$fa-css-prefix}-fast-forward:before { content: $fa-var-fast-forward; }
88
- .#{$fa-css-prefix}-step-forward:before { content: $fa-var-step-forward; }
89
- .#{$fa-css-prefix}-eject:before { content: $fa-var-eject; }
90
- .#{$fa-css-prefix}-chevron-left:before { content: $fa-var-chevron-left; }
91
- .#{$fa-css-prefix}-chevron-right:before { content: $fa-var-chevron-right; }
92
- .#{$fa-css-prefix}-plus-circle:before { content: $fa-var-plus-circle; }
93
- .#{$fa-css-prefix}-minus-circle:before { content: $fa-var-minus-circle; }
94
- .#{$fa-css-prefix}-times-circle:before { content: $fa-var-times-circle; }
95
- .#{$fa-css-prefix}-check-circle:before { content: $fa-var-check-circle; }
96
- .#{$fa-css-prefix}-question-circle:before { content: $fa-var-question-circle; }
97
- .#{$fa-css-prefix}-info-circle:before { content: $fa-var-info-circle; }
98
- .#{$fa-css-prefix}-crosshairs:before { content: $fa-var-crosshairs; }
99
- .#{$fa-css-prefix}-times-circle-o:before { content: $fa-var-times-circle-o; }
100
- .#{$fa-css-prefix}-check-circle-o:before { content: $fa-var-check-circle-o; }
101
- .#{$fa-css-prefix}-ban:before { content: $fa-var-ban; }
102
- .#{$fa-css-prefix}-arrow-left:before { content: $fa-var-arrow-left; }
103
- .#{$fa-css-prefix}-arrow-right:before { content: $fa-var-arrow-right; }
104
- .#{$fa-css-prefix}-arrow-up:before { content: $fa-var-arrow-up; }
105
- .#{$fa-css-prefix}-arrow-down:before { content: $fa-var-arrow-down; }
106
- .#{$fa-css-prefix}-mail-forward:before,
107
- .#{$fa-css-prefix}-share:before { content: $fa-var-share; }
108
- .#{$fa-css-prefix}-expand:before { content: $fa-var-expand; }
109
- .#{$fa-css-prefix}-compress:before { content: $fa-var-compress; }
110
- .#{$fa-css-prefix}-plus:before { content: $fa-var-plus; }
111
- .#{$fa-css-prefix}-minus:before { content: $fa-var-minus; }
112
- .#{$fa-css-prefix}-asterisk:before { content: $fa-var-asterisk; }
113
- .#{$fa-css-prefix}-exclamation-circle:before { content: $fa-var-exclamation-circle; }
114
- .#{$fa-css-prefix}-gift:before { content: $fa-var-gift; }
115
- .#{$fa-css-prefix}-leaf:before { content: $fa-var-leaf; }
116
- .#{$fa-css-prefix}-fire:before { content: $fa-var-fire; }
117
- .#{$fa-css-prefix}-eye:before { content: $fa-var-eye; }
118
- .#{$fa-css-prefix}-eye-slash:before { content: $fa-var-eye-slash; }
119
- .#{$fa-css-prefix}-warning:before,
120
- .#{$fa-css-prefix}-exclamation-triangle:before { content: $fa-var-exclamation-triangle; }
121
- .#{$fa-css-prefix}-plane:before { content: $fa-var-plane; }
122
- .#{$fa-css-prefix}-calendar:before { content: $fa-var-calendar; }
123
- .#{$fa-css-prefix}-random:before { content: $fa-var-random; }
124
- .#{$fa-css-prefix}-comment:before { content: $fa-var-comment; }
125
- .#{$fa-css-prefix}-magnet:before { content: $fa-var-magnet; }
126
- .#{$fa-css-prefix}-chevron-up:before { content: $fa-var-chevron-up; }
127
- .#{$fa-css-prefix}-chevron-down:before { content: $fa-var-chevron-down; }
128
- .#{$fa-css-prefix}-retweet:before { content: $fa-var-retweet; }
129
- .#{$fa-css-prefix}-shopping-cart:before { content: $fa-var-shopping-cart; }
130
- .#{$fa-css-prefix}-folder:before { content: $fa-var-folder; }
131
- .#{$fa-css-prefix}-folder-open:before { content: $fa-var-folder-open; }
132
- .#{$fa-css-prefix}-arrows-v:before { content: $fa-var-arrows-v; }
133
- .#{$fa-css-prefix}-arrows-h:before { content: $fa-var-arrows-h; }
134
- .#{$fa-css-prefix}-bar-chart-o:before,
135
- .#{$fa-css-prefix}-bar-chart:before { content: $fa-var-bar-chart; }
136
- .#{$fa-css-prefix}-twitter-square:before { content: $fa-var-twitter-square; }
137
- .#{$fa-css-prefix}-facebook-square:before { content: $fa-var-facebook-square; }
138
- .#{$fa-css-prefix}-camera-retro:before { content: $fa-var-camera-retro; }
139
- .#{$fa-css-prefix}-key:before { content: $fa-var-key; }
140
- .#{$fa-css-prefix}-gears:before,
141
- .#{$fa-css-prefix}-cogs:before { content: $fa-var-cogs; }
142
- .#{$fa-css-prefix}-comments:before { content: $fa-var-comments; }
143
- .#{$fa-css-prefix}-thumbs-o-up:before { content: $fa-var-thumbs-o-up; }
144
- .#{$fa-css-prefix}-thumbs-o-down:before { content: $fa-var-thumbs-o-down; }
145
- .#{$fa-css-prefix}-star-half:before { content: $fa-var-star-half; }
146
- .#{$fa-css-prefix}-heart-o:before { content: $fa-var-heart-o; }
147
- .#{$fa-css-prefix}-sign-out:before { content: $fa-var-sign-out; }
148
- .#{$fa-css-prefix}-linkedin-square:before { content: $fa-var-linkedin-square; }
149
- .#{$fa-css-prefix}-thumb-tack:before { content: $fa-var-thumb-tack; }
150
- .#{$fa-css-prefix}-external-link:before { content: $fa-var-external-link; }
151
- .#{$fa-css-prefix}-sign-in:before { content: $fa-var-sign-in; }
152
- .#{$fa-css-prefix}-trophy:before { content: $fa-var-trophy; }
153
- .#{$fa-css-prefix}-github-square:before { content: $fa-var-github-square; }
154
- .#{$fa-css-prefix}-upload:before { content: $fa-var-upload; }
155
- .#{$fa-css-prefix}-lemon-o:before { content: $fa-var-lemon-o; }
156
- .#{$fa-css-prefix}-phone:before { content: $fa-var-phone; }
157
- .#{$fa-css-prefix}-square-o:before { content: $fa-var-square-o; }
158
- .#{$fa-css-prefix}-bookmark-o:before { content: $fa-var-bookmark-o; }
159
- .#{$fa-css-prefix}-phone-square:before { content: $fa-var-phone-square; }
160
- .#{$fa-css-prefix}-twitter:before { content: $fa-var-twitter; }
161
- .#{$fa-css-prefix}-facebook-f:before,
162
- .#{$fa-css-prefix}-facebook:before { content: $fa-var-facebook; }
163
- .#{$fa-css-prefix}-github:before { content: $fa-var-github; }
164
- .#{$fa-css-prefix}-unlock:before { content: $fa-var-unlock; }
165
- .#{$fa-css-prefix}-credit-card:before { content: $fa-var-credit-card; }
166
- .#{$fa-css-prefix}-feed:before,
167
- .#{$fa-css-prefix}-rss:before { content: $fa-var-rss; }
168
- .#{$fa-css-prefix}-hdd-o:before { content: $fa-var-hdd-o; }
169
- .#{$fa-css-prefix}-bullhorn:before { content: $fa-var-bullhorn; }
170
- .#{$fa-css-prefix}-bell:before { content: $fa-var-bell; }
171
- .#{$fa-css-prefix}-certificate:before { content: $fa-var-certificate; }
172
- .#{$fa-css-prefix}-hand-o-right:before { content: $fa-var-hand-o-right; }
173
- .#{$fa-css-prefix}-hand-o-left:before { content: $fa-var-hand-o-left; }
174
- .#{$fa-css-prefix}-hand-o-up:before { content: $fa-var-hand-o-up; }
175
- .#{$fa-css-prefix}-hand-o-down:before { content: $fa-var-hand-o-down; }
176
- .#{$fa-css-prefix}-arrow-circle-left:before { content: $fa-var-arrow-circle-left; }
177
- .#{$fa-css-prefix}-arrow-circle-right:before { content: $fa-var-arrow-circle-right; }
178
- .#{$fa-css-prefix}-arrow-circle-up:before { content: $fa-var-arrow-circle-up; }
179
- .#{$fa-css-prefix}-arrow-circle-down:before { content: $fa-var-arrow-circle-down; }
180
- .#{$fa-css-prefix}-globe:before { content: $fa-var-globe; }
181
- .#{$fa-css-prefix}-wrench:before { content: $fa-var-wrench; }
182
- .#{$fa-css-prefix}-tasks:before { content: $fa-var-tasks; }
183
- .#{$fa-css-prefix}-filter:before { content: $fa-var-filter; }
184
- .#{$fa-css-prefix}-briefcase:before { content: $fa-var-briefcase; }
185
- .#{$fa-css-prefix}-arrows-alt:before { content: $fa-var-arrows-alt; }
186
- .#{$fa-css-prefix}-group:before,
187
- .#{$fa-css-prefix}-users:before { content: $fa-var-users; }
188
- .#{$fa-css-prefix}-chain:before,
189
- .#{$fa-css-prefix}-link:before { content: $fa-var-link; }
190
- .#{$fa-css-prefix}-cloud:before { content: $fa-var-cloud; }
191
- .#{$fa-css-prefix}-flask:before { content: $fa-var-flask; }
192
- .#{$fa-css-prefix}-cut:before,
193
- .#{$fa-css-prefix}-scissors:before { content: $fa-var-scissors; }
194
- .#{$fa-css-prefix}-copy:before,
195
- .#{$fa-css-prefix}-files-o:before { content: $fa-var-files-o; }
196
- .#{$fa-css-prefix}-paperclip:before { content: $fa-var-paperclip; }
197
- .#{$fa-css-prefix}-save:before,
198
- .#{$fa-css-prefix}-floppy-o:before { content: $fa-var-floppy-o; }
199
- .#{$fa-css-prefix}-square:before { content: $fa-var-square; }
200
- .#{$fa-css-prefix}-navicon:before,
201
- .#{$fa-css-prefix}-reorder:before,
202
- .#{$fa-css-prefix}-bars:before { content: $fa-var-bars; }
203
- .#{$fa-css-prefix}-list-ul:before { content: $fa-var-list-ul; }
204
- .#{$fa-css-prefix}-list-ol:before { content: $fa-var-list-ol; }
205
- .#{$fa-css-prefix}-strikethrough:before { content: $fa-var-strikethrough; }
206
- .#{$fa-css-prefix}-underline:before { content: $fa-var-underline; }
207
- .#{$fa-css-prefix}-table:before { content: $fa-var-table; }
208
- .#{$fa-css-prefix}-magic:before { content: $fa-var-magic; }
209
- .#{$fa-css-prefix}-truck:before { content: $fa-var-truck; }
210
- .#{$fa-css-prefix}-pinterest:before { content: $fa-var-pinterest; }
211
- .#{$fa-css-prefix}-pinterest-square:before { content: $fa-var-pinterest-square; }
212
- .#{$fa-css-prefix}-google-plus-square:before { content: $fa-var-google-plus-square; }
213
- .#{$fa-css-prefix}-google-plus:before { content: $fa-var-google-plus; }
214
- .#{$fa-css-prefix}-money:before { content: $fa-var-money; }
215
- .#{$fa-css-prefix}-caret-down:before { content: $fa-var-caret-down; }
216
- .#{$fa-css-prefix}-caret-up:before { content: $fa-var-caret-up; }
217
- .#{$fa-css-prefix}-caret-left:before { content: $fa-var-caret-left; }
218
- .#{$fa-css-prefix}-caret-right:before { content: $fa-var-caret-right; }
219
- .#{$fa-css-prefix}-columns:before { content: $fa-var-columns; }
220
- .#{$fa-css-prefix}-unsorted:before,
221
- .#{$fa-css-prefix}-sort:before { content: $fa-var-sort; }
222
- .#{$fa-css-prefix}-sort-down:before,
223
- .#{$fa-css-prefix}-sort-desc:before { content: $fa-var-sort-desc; }
224
- .#{$fa-css-prefix}-sort-up:before,
225
- .#{$fa-css-prefix}-sort-asc:before { content: $fa-var-sort-asc; }
226
- .#{$fa-css-prefix}-envelope:before { content: $fa-var-envelope; }
227
- .#{$fa-css-prefix}-linkedin:before { content: $fa-var-linkedin; }
228
- .#{$fa-css-prefix}-rotate-left:before,
229
- .#{$fa-css-prefix}-undo:before { content: $fa-var-undo; }
230
- .#{$fa-css-prefix}-legal:before,
231
- .#{$fa-css-prefix}-gavel:before { content: $fa-var-gavel; }
232
- .#{$fa-css-prefix}-dashboard:before,
233
- .#{$fa-css-prefix}-tachometer:before { content: $fa-var-tachometer; }
234
- .#{$fa-css-prefix}-comment-o:before { content: $fa-var-comment-o; }
235
- .#{$fa-css-prefix}-comments-o:before { content: $fa-var-comments-o; }
236
- .#{$fa-css-prefix}-flash:before,
237
- .#{$fa-css-prefix}-bolt:before { content: $fa-var-bolt; }
238
- .#{$fa-css-prefix}-sitemap:before { content: $fa-var-sitemap; }
239
- .#{$fa-css-prefix}-umbrella:before { content: $fa-var-umbrella; }
240
- .#{$fa-css-prefix}-paste:before,
241
- .#{$fa-css-prefix}-clipboard:before { content: $fa-var-clipboard; }
242
- .#{$fa-css-prefix}-lightbulb-o:before { content: $fa-var-lightbulb-o; }
243
- .#{$fa-css-prefix}-exchange:before { content: $fa-var-exchange; }
244
- .#{$fa-css-prefix}-cloud-download:before { content: $fa-var-cloud-download; }
245
- .#{$fa-css-prefix}-cloud-upload:before { content: $fa-var-cloud-upload; }
246
- .#{$fa-css-prefix}-user-md:before { content: $fa-var-user-md; }
247
- .#{$fa-css-prefix}-stethoscope:before { content: $fa-var-stethoscope; }
248
- .#{$fa-css-prefix}-suitcase:before { content: $fa-var-suitcase; }
249
- .#{$fa-css-prefix}-bell-o:before { content: $fa-var-bell-o; }
250
- .#{$fa-css-prefix}-coffee:before { content: $fa-var-coffee; }
251
- .#{$fa-css-prefix}-cutlery:before { content: $fa-var-cutlery; }
252
- .#{$fa-css-prefix}-file-text-o:before { content: $fa-var-file-text-o; }
253
- .#{$fa-css-prefix}-building-o:before { content: $fa-var-building-o; }
254
- .#{$fa-css-prefix}-hospital-o:before { content: $fa-var-hospital-o; }
255
- .#{$fa-css-prefix}-ambulance:before { content: $fa-var-ambulance; }
256
- .#{$fa-css-prefix}-medkit:before { content: $fa-var-medkit; }
257
- .#{$fa-css-prefix}-fighter-jet:before { content: $fa-var-fighter-jet; }
258
- .#{$fa-css-prefix}-beer:before { content: $fa-var-beer; }
259
- .#{$fa-css-prefix}-h-square:before { content: $fa-var-h-square; }
260
- .#{$fa-css-prefix}-plus-square:before { content: $fa-var-plus-square; }
261
- .#{$fa-css-prefix}-angle-double-left:before { content: $fa-var-angle-double-left; }
262
- .#{$fa-css-prefix}-angle-double-right:before { content: $fa-var-angle-double-right; }
263
- .#{$fa-css-prefix}-angle-double-up:before { content: $fa-var-angle-double-up; }
264
- .#{$fa-css-prefix}-angle-double-down:before { content: $fa-var-angle-double-down; }
265
- .#{$fa-css-prefix}-angle-left:before { content: $fa-var-angle-left; }
266
- .#{$fa-css-prefix}-angle-right:before { content: $fa-var-angle-right; }
267
- .#{$fa-css-prefix}-angle-up:before { content: $fa-var-angle-up; }
268
- .#{$fa-css-prefix}-angle-down:before { content: $fa-var-angle-down; }
269
- .#{$fa-css-prefix}-desktop:before { content: $fa-var-desktop; }
270
- .#{$fa-css-prefix}-laptop:before { content: $fa-var-laptop; }
271
- .#{$fa-css-prefix}-tablet:before { content: $fa-var-tablet; }
272
- .#{$fa-css-prefix}-mobile-phone:before,
273
- .#{$fa-css-prefix}-mobile:before { content: $fa-var-mobile; }
274
- .#{$fa-css-prefix}-circle-o:before { content: $fa-var-circle-o; }
275
- .#{$fa-css-prefix}-quote-left:before { content: $fa-var-quote-left; }
276
- .#{$fa-css-prefix}-quote-right:before { content: $fa-var-quote-right; }
277
- .#{$fa-css-prefix}-spinner:before { content: $fa-var-spinner; }
278
- .#{$fa-css-prefix}-circle:before { content: $fa-var-circle; }
279
- .#{$fa-css-prefix}-mail-reply:before,
280
- .#{$fa-css-prefix}-reply:before { content: $fa-var-reply; }
281
- .#{$fa-css-prefix}-github-alt:before { content: $fa-var-github-alt; }
282
- .#{$fa-css-prefix}-folder-o:before { content: $fa-var-folder-o; }
283
- .#{$fa-css-prefix}-folder-open-o:before { content: $fa-var-folder-open-o; }
284
- .#{$fa-css-prefix}-smile-o:before { content: $fa-var-smile-o; }
285
- .#{$fa-css-prefix}-frown-o:before { content: $fa-var-frown-o; }
286
- .#{$fa-css-prefix}-meh-o:before { content: $fa-var-meh-o; }
287
- .#{$fa-css-prefix}-gamepad:before { content: $fa-var-gamepad; }
288
- .#{$fa-css-prefix}-keyboard-o:before { content: $fa-var-keyboard-o; }
289
- .#{$fa-css-prefix}-flag-o:before { content: $fa-var-flag-o; }
290
- .#{$fa-css-prefix}-flag-checkered:before { content: $fa-var-flag-checkered; }
291
- .#{$fa-css-prefix}-terminal:before { content: $fa-var-terminal; }
292
- .#{$fa-css-prefix}-code:before { content: $fa-var-code; }
293
- .#{$fa-css-prefix}-mail-reply-all:before,
294
- .#{$fa-css-prefix}-reply-all:before { content: $fa-var-reply-all; }
295
- .#{$fa-css-prefix}-star-half-empty:before,
296
- .#{$fa-css-prefix}-star-half-full:before,
297
- .#{$fa-css-prefix}-star-half-o:before { content: $fa-var-star-half-o; }
298
- .#{$fa-css-prefix}-location-arrow:before { content: $fa-var-location-arrow; }
299
- .#{$fa-css-prefix}-crop:before { content: $fa-var-crop; }
300
- .#{$fa-css-prefix}-code-fork:before { content: $fa-var-code-fork; }
301
- .#{$fa-css-prefix}-unlink:before,
302
- .#{$fa-css-prefix}-chain-broken:before { content: $fa-var-chain-broken; }
303
- .#{$fa-css-prefix}-question:before { content: $fa-var-question; }
304
- .#{$fa-css-prefix}-info:before { content: $fa-var-info; }
305
- .#{$fa-css-prefix}-exclamation:before { content: $fa-var-exclamation; }
306
- .#{$fa-css-prefix}-superscript:before { content: $fa-var-superscript; }
307
- .#{$fa-css-prefix}-subscript:before { content: $fa-var-subscript; }
308
- .#{$fa-css-prefix}-eraser:before { content: $fa-var-eraser; }
309
- .#{$fa-css-prefix}-puzzle-piece:before { content: $fa-var-puzzle-piece; }
310
- .#{$fa-css-prefix}-microphone:before { content: $fa-var-microphone; }
311
- .#{$fa-css-prefix}-microphone-slash:before { content: $fa-var-microphone-slash; }
312
- .#{$fa-css-prefix}-shield:before { content: $fa-var-shield; }
313
- .#{$fa-css-prefix}-calendar-o:before { content: $fa-var-calendar-o; }
314
- .#{$fa-css-prefix}-fire-extinguisher:before { content: $fa-var-fire-extinguisher; }
315
- .#{$fa-css-prefix}-rocket:before { content: $fa-var-rocket; }
316
- .#{$fa-css-prefix}-maxcdn:before { content: $fa-var-maxcdn; }
317
- .#{$fa-css-prefix}-chevron-circle-left:before { content: $fa-var-chevron-circle-left; }
318
- .#{$fa-css-prefix}-chevron-circle-right:before { content: $fa-var-chevron-circle-right; }
319
- .#{$fa-css-prefix}-chevron-circle-up:before { content: $fa-var-chevron-circle-up; }
320
- .#{$fa-css-prefix}-chevron-circle-down:before { content: $fa-var-chevron-circle-down; }
321
- .#{$fa-css-prefix}-html5:before { content: $fa-var-html5; }
322
- .#{$fa-css-prefix}-css3:before { content: $fa-var-css3; }
323
- .#{$fa-css-prefix}-anchor:before { content: $fa-var-anchor; }
324
- .#{$fa-css-prefix}-unlock-alt:before { content: $fa-var-unlock-alt; }
325
- .#{$fa-css-prefix}-bullseye:before { content: $fa-var-bullseye; }
326
- .#{$fa-css-prefix}-ellipsis-h:before { content: $fa-var-ellipsis-h; }
327
- .#{$fa-css-prefix}-ellipsis-v:before { content: $fa-var-ellipsis-v; }
328
- .#{$fa-css-prefix}-rss-square:before { content: $fa-var-rss-square; }
329
- .#{$fa-css-prefix}-play-circle:before { content: $fa-var-play-circle; }
330
- .#{$fa-css-prefix}-ticket:before { content: $fa-var-ticket; }
331
- .#{$fa-css-prefix}-minus-square:before { content: $fa-var-minus-square; }
332
- .#{$fa-css-prefix}-minus-square-o:before { content: $fa-var-minus-square-o; }
333
- .#{$fa-css-prefix}-level-up:before { content: $fa-var-level-up; }
334
- .#{$fa-css-prefix}-level-down:before { content: $fa-var-level-down; }
335
- .#{$fa-css-prefix}-check-square:before { content: $fa-var-check-square; }
336
- .#{$fa-css-prefix}-pencil-square:before { content: $fa-var-pencil-square; }
337
- .#{$fa-css-prefix}-external-link-square:before { content: $fa-var-external-link-square; }
338
- .#{$fa-css-prefix}-share-square:before { content: $fa-var-share-square; }
339
- .#{$fa-css-prefix}-compass:before { content: $fa-var-compass; }
340
- .#{$fa-css-prefix}-toggle-down:before,
341
- .#{$fa-css-prefix}-caret-square-o-down:before { content: $fa-var-caret-square-o-down; }
342
- .#{$fa-css-prefix}-toggle-up:before,
343
- .#{$fa-css-prefix}-caret-square-o-up:before { content: $fa-var-caret-square-o-up; }
344
- .#{$fa-css-prefix}-toggle-right:before,
345
- .#{$fa-css-prefix}-caret-square-o-right:before { content: $fa-var-caret-square-o-right; }
346
- .#{$fa-css-prefix}-euro:before,
347
- .#{$fa-css-prefix}-eur:before { content: $fa-var-eur; }
348
- .#{$fa-css-prefix}-gbp:before { content: $fa-var-gbp; }
349
- .#{$fa-css-prefix}-dollar:before,
350
- .#{$fa-css-prefix}-usd:before { content: $fa-var-usd; }
351
- .#{$fa-css-prefix}-rupee:before,
352
- .#{$fa-css-prefix}-inr:before { content: $fa-var-inr; }
353
- .#{$fa-css-prefix}-cny:before,
354
- .#{$fa-css-prefix}-rmb:before,
355
- .#{$fa-css-prefix}-yen:before,
356
- .#{$fa-css-prefix}-jpy:before { content: $fa-var-jpy; }
357
- .#{$fa-css-prefix}-ruble:before,
358
- .#{$fa-css-prefix}-rouble:before,
359
- .#{$fa-css-prefix}-rub:before { content: $fa-var-rub; }
360
- .#{$fa-css-prefix}-won:before,
361
- .#{$fa-css-prefix}-krw:before { content: $fa-var-krw; }
362
- .#{$fa-css-prefix}-bitcoin:before,
363
- .#{$fa-css-prefix}-btc:before { content: $fa-var-btc; }
364
- .#{$fa-css-prefix}-file:before { content: $fa-var-file; }
365
- .#{$fa-css-prefix}-file-text:before { content: $fa-var-file-text; }
366
- .#{$fa-css-prefix}-sort-alpha-asc:before { content: $fa-var-sort-alpha-asc; }
367
- .#{$fa-css-prefix}-sort-alpha-desc:before { content: $fa-var-sort-alpha-desc; }
368
- .#{$fa-css-prefix}-sort-amount-asc:before { content: $fa-var-sort-amount-asc; }
369
- .#{$fa-css-prefix}-sort-amount-desc:before { content: $fa-var-sort-amount-desc; }
370
- .#{$fa-css-prefix}-sort-numeric-asc:before { content: $fa-var-sort-numeric-asc; }
371
- .#{$fa-css-prefix}-sort-numeric-desc:before { content: $fa-var-sort-numeric-desc; }
372
- .#{$fa-css-prefix}-thumbs-up:before { content: $fa-var-thumbs-up; }
373
- .#{$fa-css-prefix}-thumbs-down:before { content: $fa-var-thumbs-down; }
374
- .#{$fa-css-prefix}-youtube-square:before { content: $fa-var-youtube-square; }
375
- .#{$fa-css-prefix}-youtube:before { content: $fa-var-youtube; }
376
- .#{$fa-css-prefix}-xing:before { content: $fa-var-xing; }
377
- .#{$fa-css-prefix}-xing-square:before { content: $fa-var-xing-square; }
378
- .#{$fa-css-prefix}-youtube-play:before { content: $fa-var-youtube-play; }
379
- .#{$fa-css-prefix}-dropbox:before { content: $fa-var-dropbox; }
380
- .#{$fa-css-prefix}-stack-overflow:before { content: $fa-var-stack-overflow; }
381
- .#{$fa-css-prefix}-instagram:before { content: $fa-var-instagram; }
382
- .#{$fa-css-prefix}-flickr:before { content: $fa-var-flickr; }
383
- .#{$fa-css-prefix}-adn:before { content: $fa-var-adn; }
384
- .#{$fa-css-prefix}-bitbucket:before { content: $fa-var-bitbucket; }
385
- .#{$fa-css-prefix}-bitbucket-square:before { content: $fa-var-bitbucket-square; }
386
- .#{$fa-css-prefix}-tumblr:before { content: $fa-var-tumblr; }
387
- .#{$fa-css-prefix}-tumblr-square:before { content: $fa-var-tumblr-square; }
388
- .#{$fa-css-prefix}-long-arrow-down:before { content: $fa-var-long-arrow-down; }
389
- .#{$fa-css-prefix}-long-arrow-up:before { content: $fa-var-long-arrow-up; }
390
- .#{$fa-css-prefix}-long-arrow-left:before { content: $fa-var-long-arrow-left; }
391
- .#{$fa-css-prefix}-long-arrow-right:before { content: $fa-var-long-arrow-right; }
392
- .#{$fa-css-prefix}-apple:before { content: $fa-var-apple; }
393
- .#{$fa-css-prefix}-windows:before { content: $fa-var-windows; }
394
- .#{$fa-css-prefix}-android:before { content: $fa-var-android; }
395
- .#{$fa-css-prefix}-linux:before { content: $fa-var-linux; }
396
- .#{$fa-css-prefix}-dribbble:before { content: $fa-var-dribbble; }
397
- .#{$fa-css-prefix}-skype:before { content: $fa-var-skype; }
398
- .#{$fa-css-prefix}-foursquare:before { content: $fa-var-foursquare; }
399
- .#{$fa-css-prefix}-trello:before { content: $fa-var-trello; }
400
- .#{$fa-css-prefix}-female:before { content: $fa-var-female; }
401
- .#{$fa-css-prefix}-male:before { content: $fa-var-male; }
402
- .#{$fa-css-prefix}-gittip:before,
403
- .#{$fa-css-prefix}-gratipay:before { content: $fa-var-gratipay; }
404
- .#{$fa-css-prefix}-sun-o:before { content: $fa-var-sun-o; }
405
- .#{$fa-css-prefix}-moon-o:before { content: $fa-var-moon-o; }
406
- .#{$fa-css-prefix}-archive:before { content: $fa-var-archive; }
407
- .#{$fa-css-prefix}-bug:before { content: $fa-var-bug; }
408
- .#{$fa-css-prefix}-vk:before { content: $fa-var-vk; }
409
- .#{$fa-css-prefix}-weibo:before { content: $fa-var-weibo; }
410
- .#{$fa-css-prefix}-renren:before { content: $fa-var-renren; }
411
- .#{$fa-css-prefix}-pagelines:before { content: $fa-var-pagelines; }
412
- .#{$fa-css-prefix}-stack-exchange:before { content: $fa-var-stack-exchange; }
413
- .#{$fa-css-prefix}-arrow-circle-o-right:before { content: $fa-var-arrow-circle-o-right; }
414
- .#{$fa-css-prefix}-arrow-circle-o-left:before { content: $fa-var-arrow-circle-o-left; }
415
- .#{$fa-css-prefix}-toggle-left:before,
416
- .#{$fa-css-prefix}-caret-square-o-left:before { content: $fa-var-caret-square-o-left; }
417
- .#{$fa-css-prefix}-dot-circle-o:before { content: $fa-var-dot-circle-o; }
418
- .#{$fa-css-prefix}-wheelchair:before { content: $fa-var-wheelchair; }
419
- .#{$fa-css-prefix}-vimeo-square:before { content: $fa-var-vimeo-square; }
420
- .#{$fa-css-prefix}-turkish-lira:before,
421
- .#{$fa-css-prefix}-try:before { content: $fa-var-try; }
422
- .#{$fa-css-prefix}-plus-square-o:before { content: $fa-var-plus-square-o; }
423
- .#{$fa-css-prefix}-space-shuttle:before { content: $fa-var-space-shuttle; }
424
- .#{$fa-css-prefix}-slack:before { content: $fa-var-slack; }
425
- .#{$fa-css-prefix}-envelope-square:before { content: $fa-var-envelope-square; }
426
- .#{$fa-css-prefix}-wordpress:before { content: $fa-var-wordpress; }
427
- .#{$fa-css-prefix}-openid:before { content: $fa-var-openid; }
428
- .#{$fa-css-prefix}-institution:before,
429
- .#{$fa-css-prefix}-bank:before,
430
- .#{$fa-css-prefix}-university:before { content: $fa-var-university; }
431
- .#{$fa-css-prefix}-mortar-board:before,
432
- .#{$fa-css-prefix}-graduation-cap:before { content: $fa-var-graduation-cap; }
433
- .#{$fa-css-prefix}-yahoo:before { content: $fa-var-yahoo; }
434
- .#{$fa-css-prefix}-google:before { content: $fa-var-google; }
435
- .#{$fa-css-prefix}-reddit:before { content: $fa-var-reddit; }
436
- .#{$fa-css-prefix}-reddit-square:before { content: $fa-var-reddit-square; }
437
- .#{$fa-css-prefix}-stumbleupon-circle:before { content: $fa-var-stumbleupon-circle; }
438
- .#{$fa-css-prefix}-stumbleupon:before { content: $fa-var-stumbleupon; }
439
- .#{$fa-css-prefix}-delicious:before { content: $fa-var-delicious; }
440
- .#{$fa-css-prefix}-digg:before { content: $fa-var-digg; }
441
- .#{$fa-css-prefix}-pied-piper-pp:before { content: $fa-var-pied-piper-pp; }
442
- .#{$fa-css-prefix}-pied-piper-alt:before { content: $fa-var-pied-piper-alt; }
443
- .#{$fa-css-prefix}-drupal:before { content: $fa-var-drupal; }
444
- .#{$fa-css-prefix}-joomla:before { content: $fa-var-joomla; }
445
- .#{$fa-css-prefix}-language:before { content: $fa-var-language; }
446
- .#{$fa-css-prefix}-fax:before { content: $fa-var-fax; }
447
- .#{$fa-css-prefix}-building:before { content: $fa-var-building; }
448
- .#{$fa-css-prefix}-child:before { content: $fa-var-child; }
449
- .#{$fa-css-prefix}-paw:before { content: $fa-var-paw; }
450
- .#{$fa-css-prefix}-spoon:before { content: $fa-var-spoon; }
451
- .#{$fa-css-prefix}-cube:before { content: $fa-var-cube; }
452
- .#{$fa-css-prefix}-cubes:before { content: $fa-var-cubes; }
453
- .#{$fa-css-prefix}-behance:before { content: $fa-var-behance; }
454
- .#{$fa-css-prefix}-behance-square:before { content: $fa-var-behance-square; }
455
- .#{$fa-css-prefix}-steam:before { content: $fa-var-steam; }
456
- .#{$fa-css-prefix}-steam-square:before { content: $fa-var-steam-square; }
457
- .#{$fa-css-prefix}-recycle:before { content: $fa-var-recycle; }
458
- .#{$fa-css-prefix}-automobile:before,
459
- .#{$fa-css-prefix}-car:before { content: $fa-var-car; }
460
- .#{$fa-css-prefix}-cab:before,
461
- .#{$fa-css-prefix}-taxi:before { content: $fa-var-taxi; }
462
- .#{$fa-css-prefix}-tree:before { content: $fa-var-tree; }
463
- .#{$fa-css-prefix}-spotify:before { content: $fa-var-spotify; }
464
- .#{$fa-css-prefix}-deviantart:before { content: $fa-var-deviantart; }
465
- .#{$fa-css-prefix}-soundcloud:before { content: $fa-var-soundcloud; }
466
- .#{$fa-css-prefix}-database:before { content: $fa-var-database; }
467
- .#{$fa-css-prefix}-file-pdf-o:before { content: $fa-var-file-pdf-o; }
468
- .#{$fa-css-prefix}-file-word-o:before { content: $fa-var-file-word-o; }
469
- .#{$fa-css-prefix}-file-excel-o:before { content: $fa-var-file-excel-o; }
470
- .#{$fa-css-prefix}-file-powerpoint-o:before { content: $fa-var-file-powerpoint-o; }
471
- .#{$fa-css-prefix}-file-photo-o:before,
472
- .#{$fa-css-prefix}-file-picture-o:before,
473
- .#{$fa-css-prefix}-file-image-o:before { content: $fa-var-file-image-o; }
474
- .#{$fa-css-prefix}-file-zip-o:before,
475
- .#{$fa-css-prefix}-file-archive-o:before { content: $fa-var-file-archive-o; }
476
- .#{$fa-css-prefix}-file-sound-o:before,
477
- .#{$fa-css-prefix}-file-audio-o:before { content: $fa-var-file-audio-o; }
478
- .#{$fa-css-prefix}-file-movie-o:before,
479
- .#{$fa-css-prefix}-file-video-o:before { content: $fa-var-file-video-o; }
480
- .#{$fa-css-prefix}-file-code-o:before { content: $fa-var-file-code-o; }
481
- .#{$fa-css-prefix}-vine:before { content: $fa-var-vine; }
482
- .#{$fa-css-prefix}-codepen:before { content: $fa-var-codepen; }
483
- .#{$fa-css-prefix}-jsfiddle:before { content: $fa-var-jsfiddle; }
484
- .#{$fa-css-prefix}-life-bouy:before,
485
- .#{$fa-css-prefix}-life-buoy:before,
486
- .#{$fa-css-prefix}-life-saver:before,
487
- .#{$fa-css-prefix}-support:before,
488
- .#{$fa-css-prefix}-life-ring:before { content: $fa-var-life-ring; }
489
- .#{$fa-css-prefix}-circle-o-notch:before { content: $fa-var-circle-o-notch; }
490
- .#{$fa-css-prefix}-ra:before,
491
- .#{$fa-css-prefix}-resistance:before,
492
- .#{$fa-css-prefix}-rebel:before { content: $fa-var-rebel; }
493
- .#{$fa-css-prefix}-ge:before,
494
- .#{$fa-css-prefix}-empire:before { content: $fa-var-empire; }
495
- .#{$fa-css-prefix}-git-square:before { content: $fa-var-git-square; }
496
- .#{$fa-css-prefix}-git:before { content: $fa-var-git; }
497
- .#{$fa-css-prefix}-y-combinator-square:before,
498
- .#{$fa-css-prefix}-yc-square:before,
499
- .#{$fa-css-prefix}-hacker-news:before { content: $fa-var-hacker-news; }
500
- .#{$fa-css-prefix}-tencent-weibo:before { content: $fa-var-tencent-weibo; }
501
- .#{$fa-css-prefix}-qq:before { content: $fa-var-qq; }
502
- .#{$fa-css-prefix}-wechat:before,
503
- .#{$fa-css-prefix}-weixin:before { content: $fa-var-weixin; }
504
- .#{$fa-css-prefix}-send:before,
505
- .#{$fa-css-prefix}-paper-plane:before { content: $fa-var-paper-plane; }
506
- .#{$fa-css-prefix}-send-o:before,
507
- .#{$fa-css-prefix}-paper-plane-o:before { content: $fa-var-paper-plane-o; }
508
- .#{$fa-css-prefix}-history:before { content: $fa-var-history; }
509
- .#{$fa-css-prefix}-circle-thin:before { content: $fa-var-circle-thin; }
510
- .#{$fa-css-prefix}-header:before { content: $fa-var-header; }
511
- .#{$fa-css-prefix}-paragraph:before { content: $fa-var-paragraph; }
512
- .#{$fa-css-prefix}-sliders:before { content: $fa-var-sliders; }
513
- .#{$fa-css-prefix}-share-alt:before { content: $fa-var-share-alt; }
514
- .#{$fa-css-prefix}-share-alt-square:before { content: $fa-var-share-alt-square; }
515
- .#{$fa-css-prefix}-bomb:before { content: $fa-var-bomb; }
516
- .#{$fa-css-prefix}-soccer-ball-o:before,
517
- .#{$fa-css-prefix}-futbol-o:before { content: $fa-var-futbol-o; }
518
- .#{$fa-css-prefix}-tty:before { content: $fa-var-tty; }
519
- .#{$fa-css-prefix}-binoculars:before { content: $fa-var-binoculars; }
520
- .#{$fa-css-prefix}-plug:before { content: $fa-var-plug; }
521
- .#{$fa-css-prefix}-slideshare:before { content: $fa-var-slideshare; }
522
- .#{$fa-css-prefix}-twitch:before { content: $fa-var-twitch; }
523
- .#{$fa-css-prefix}-yelp:before { content: $fa-var-yelp; }
524
- .#{$fa-css-prefix}-newspaper-o:before { content: $fa-var-newspaper-o; }
525
- .#{$fa-css-prefix}-wifi:before { content: $fa-var-wifi; }
526
- .#{$fa-css-prefix}-calculator:before { content: $fa-var-calculator; }
527
- .#{$fa-css-prefix}-paypal:before { content: $fa-var-paypal; }
528
- .#{$fa-css-prefix}-google-wallet:before { content: $fa-var-google-wallet; }
529
- .#{$fa-css-prefix}-cc-visa:before { content: $fa-var-cc-visa; }
530
- .#{$fa-css-prefix}-cc-mastercard:before { content: $fa-var-cc-mastercard; }
531
- .#{$fa-css-prefix}-cc-discover:before { content: $fa-var-cc-discover; }
532
- .#{$fa-css-prefix}-cc-amex:before { content: $fa-var-cc-amex; }
533
- .#{$fa-css-prefix}-cc-paypal:before { content: $fa-var-cc-paypal; }
534
- .#{$fa-css-prefix}-cc-stripe:before { content: $fa-var-cc-stripe; }
535
- .#{$fa-css-prefix}-bell-slash:before { content: $fa-var-bell-slash; }
536
- .#{$fa-css-prefix}-bell-slash-o:before { content: $fa-var-bell-slash-o; }
537
- .#{$fa-css-prefix}-trash:before { content: $fa-var-trash; }
538
- .#{$fa-css-prefix}-copyright:before { content: $fa-var-copyright; }
539
- .#{$fa-css-prefix}-at:before { content: $fa-var-at; }
540
- .#{$fa-css-prefix}-eyedropper:before { content: $fa-var-eyedropper; }
541
- .#{$fa-css-prefix}-paint-brush:before { content: $fa-var-paint-brush; }
542
- .#{$fa-css-prefix}-birthday-cake:before { content: $fa-var-birthday-cake; }
543
- .#{$fa-css-prefix}-area-chart:before { content: $fa-var-area-chart; }
544
- .#{$fa-css-prefix}-pie-chart:before { content: $fa-var-pie-chart; }
545
- .#{$fa-css-prefix}-line-chart:before { content: $fa-var-line-chart; }
546
- .#{$fa-css-prefix}-lastfm:before { content: $fa-var-lastfm; }
547
- .#{$fa-css-prefix}-lastfm-square:before { content: $fa-var-lastfm-square; }
548
- .#{$fa-css-prefix}-toggle-off:before { content: $fa-var-toggle-off; }
549
- .#{$fa-css-prefix}-toggle-on:before { content: $fa-var-toggle-on; }
550
- .#{$fa-css-prefix}-bicycle:before { content: $fa-var-bicycle; }
551
- .#{$fa-css-prefix}-bus:before { content: $fa-var-bus; }
552
- .#{$fa-css-prefix}-ioxhost:before { content: $fa-var-ioxhost; }
553
- .#{$fa-css-prefix}-angellist:before { content: $fa-var-angellist; }
554
- .#{$fa-css-prefix}-cc:before { content: $fa-var-cc; }
555
- .#{$fa-css-prefix}-shekel:before,
556
- .#{$fa-css-prefix}-sheqel:before,
557
- .#{$fa-css-prefix}-ils:before { content: $fa-var-ils; }
558
- .#{$fa-css-prefix}-meanpath:before { content: $fa-var-meanpath; }
559
- .#{$fa-css-prefix}-buysellads:before { content: $fa-var-buysellads; }
560
- .#{$fa-css-prefix}-connectdevelop:before { content: $fa-var-connectdevelop; }
561
- .#{$fa-css-prefix}-dashcube:before { content: $fa-var-dashcube; }
562
- .#{$fa-css-prefix}-forumbee:before { content: $fa-var-forumbee; }
563
- .#{$fa-css-prefix}-leanpub:before { content: $fa-var-leanpub; }
564
- .#{$fa-css-prefix}-sellsy:before { content: $fa-var-sellsy; }
565
- .#{$fa-css-prefix}-shirtsinbulk:before { content: $fa-var-shirtsinbulk; }
566
- .#{$fa-css-prefix}-simplybuilt:before { content: $fa-var-simplybuilt; }
567
- .#{$fa-css-prefix}-skyatlas:before { content: $fa-var-skyatlas; }
568
- .#{$fa-css-prefix}-cart-plus:before { content: $fa-var-cart-plus; }
569
- .#{$fa-css-prefix}-cart-arrow-down:before { content: $fa-var-cart-arrow-down; }
570
- .#{$fa-css-prefix}-diamond:before { content: $fa-var-diamond; }
571
- .#{$fa-css-prefix}-ship:before { content: $fa-var-ship; }
572
- .#{$fa-css-prefix}-user-secret:before { content: $fa-var-user-secret; }
573
- .#{$fa-css-prefix}-motorcycle:before { content: $fa-var-motorcycle; }
574
- .#{$fa-css-prefix}-street-view:before { content: $fa-var-street-view; }
575
- .#{$fa-css-prefix}-heartbeat:before { content: $fa-var-heartbeat; }
576
- .#{$fa-css-prefix}-venus:before { content: $fa-var-venus; }
577
- .#{$fa-css-prefix}-mars:before { content: $fa-var-mars; }
578
- .#{$fa-css-prefix}-mercury:before { content: $fa-var-mercury; }
579
- .#{$fa-css-prefix}-intersex:before,
580
- .#{$fa-css-prefix}-transgender:before { content: $fa-var-transgender; }
581
- .#{$fa-css-prefix}-transgender-alt:before { content: $fa-var-transgender-alt; }
582
- .#{$fa-css-prefix}-venus-double:before { content: $fa-var-venus-double; }
583
- .#{$fa-css-prefix}-mars-double:before { content: $fa-var-mars-double; }
584
- .#{$fa-css-prefix}-venus-mars:before { content: $fa-var-venus-mars; }
585
- .#{$fa-css-prefix}-mars-stroke:before { content: $fa-var-mars-stroke; }
586
- .#{$fa-css-prefix}-mars-stroke-v:before { content: $fa-var-mars-stroke-v; }
587
- .#{$fa-css-prefix}-mars-stroke-h:before { content: $fa-var-mars-stroke-h; }
588
- .#{$fa-css-prefix}-neuter:before { content: $fa-var-neuter; }
589
- .#{$fa-css-prefix}-genderless:before { content: $fa-var-genderless; }
590
- .#{$fa-css-prefix}-facebook-official:before { content: $fa-var-facebook-official; }
591
- .#{$fa-css-prefix}-pinterest-p:before { content: $fa-var-pinterest-p; }
592
- .#{$fa-css-prefix}-whatsapp:before { content: $fa-var-whatsapp; }
593
- .#{$fa-css-prefix}-server:before { content: $fa-var-server; }
594
- .#{$fa-css-prefix}-user-plus:before { content: $fa-var-user-plus; }
595
- .#{$fa-css-prefix}-user-times:before { content: $fa-var-user-times; }
596
- .#{$fa-css-prefix}-hotel:before,
597
- .#{$fa-css-prefix}-bed:before { content: $fa-var-bed; }
598
- .#{$fa-css-prefix}-viacoin:before { content: $fa-var-viacoin; }
599
- .#{$fa-css-prefix}-train:before { content: $fa-var-train; }
600
- .#{$fa-css-prefix}-subway:before { content: $fa-var-subway; }
601
- .#{$fa-css-prefix}-medium:before { content: $fa-var-medium; }
602
- .#{$fa-css-prefix}-yc:before,
603
- .#{$fa-css-prefix}-y-combinator:before { content: $fa-var-y-combinator; }
604
- .#{$fa-css-prefix}-optin-monster:before { content: $fa-var-optin-monster; }
605
- .#{$fa-css-prefix}-opencart:before { content: $fa-var-opencart; }
606
- .#{$fa-css-prefix}-expeditedssl:before { content: $fa-var-expeditedssl; }
607
- .#{$fa-css-prefix}-battery-4:before,
608
- .#{$fa-css-prefix}-battery-full:before { content: $fa-var-battery-full; }
609
- .#{$fa-css-prefix}-battery-3:before,
610
- .#{$fa-css-prefix}-battery-three-quarters:before { content: $fa-var-battery-three-quarters; }
611
- .#{$fa-css-prefix}-battery-2:before,
612
- .#{$fa-css-prefix}-battery-half:before { content: $fa-var-battery-half; }
613
- .#{$fa-css-prefix}-battery-1:before,
614
- .#{$fa-css-prefix}-battery-quarter:before { content: $fa-var-battery-quarter; }
615
- .#{$fa-css-prefix}-battery-0:before,
616
- .#{$fa-css-prefix}-battery-empty:before { content: $fa-var-battery-empty; }
617
- .#{$fa-css-prefix}-mouse-pointer:before { content: $fa-var-mouse-pointer; }
618
- .#{$fa-css-prefix}-i-cursor:before { content: $fa-var-i-cursor; }
619
- .#{$fa-css-prefix}-object-group:before { content: $fa-var-object-group; }
620
- .#{$fa-css-prefix}-object-ungroup:before { content: $fa-var-object-ungroup; }
621
- .#{$fa-css-prefix}-sticky-note:before { content: $fa-var-sticky-note; }
622
- .#{$fa-css-prefix}-sticky-note-o:before { content: $fa-var-sticky-note-o; }
623
- .#{$fa-css-prefix}-cc-jcb:before { content: $fa-var-cc-jcb; }
624
- .#{$fa-css-prefix}-cc-diners-club:before { content: $fa-var-cc-diners-club; }
625
- .#{$fa-css-prefix}-clone:before { content: $fa-var-clone; }
626
- .#{$fa-css-prefix}-balance-scale:before { content: $fa-var-balance-scale; }
627
- .#{$fa-css-prefix}-hourglass-o:before { content: $fa-var-hourglass-o; }
628
- .#{$fa-css-prefix}-hourglass-1:before,
629
- .#{$fa-css-prefix}-hourglass-start:before { content: $fa-var-hourglass-start; }
630
- .#{$fa-css-prefix}-hourglass-2:before,
631
- .#{$fa-css-prefix}-hourglass-half:before { content: $fa-var-hourglass-half; }
632
- .#{$fa-css-prefix}-hourglass-3:before,
633
- .#{$fa-css-prefix}-hourglass-end:before { content: $fa-var-hourglass-end; }
634
- .#{$fa-css-prefix}-hourglass:before { content: $fa-var-hourglass; }
635
- .#{$fa-css-prefix}-hand-grab-o:before,
636
- .#{$fa-css-prefix}-hand-rock-o:before { content: $fa-var-hand-rock-o; }
637
- .#{$fa-css-prefix}-hand-stop-o:before,
638
- .#{$fa-css-prefix}-hand-paper-o:before { content: $fa-var-hand-paper-o; }
639
- .#{$fa-css-prefix}-hand-scissors-o:before { content: $fa-var-hand-scissors-o; }
640
- .#{$fa-css-prefix}-hand-lizard-o:before { content: $fa-var-hand-lizard-o; }
641
- .#{$fa-css-prefix}-hand-spock-o:before { content: $fa-var-hand-spock-o; }
642
- .#{$fa-css-prefix}-hand-pointer-o:before { content: $fa-var-hand-pointer-o; }
643
- .#{$fa-css-prefix}-hand-peace-o:before { content: $fa-var-hand-peace-o; }
644
- .#{$fa-css-prefix}-trademark:before { content: $fa-var-trademark; }
645
- .#{$fa-css-prefix}-registered:before { content: $fa-var-registered; }
646
- .#{$fa-css-prefix}-creative-commons:before { content: $fa-var-creative-commons; }
647
- .#{$fa-css-prefix}-gg:before { content: $fa-var-gg; }
648
- .#{$fa-css-prefix}-gg-circle:before { content: $fa-var-gg-circle; }
649
- .#{$fa-css-prefix}-tripadvisor:before { content: $fa-var-tripadvisor; }
650
- .#{$fa-css-prefix}-odnoklassniki:before { content: $fa-var-odnoklassniki; }
651
- .#{$fa-css-prefix}-odnoklassniki-square:before { content: $fa-var-odnoklassniki-square; }
652
- .#{$fa-css-prefix}-get-pocket:before { content: $fa-var-get-pocket; }
653
- .#{$fa-css-prefix}-wikipedia-w:before { content: $fa-var-wikipedia-w; }
654
- .#{$fa-css-prefix}-safari:before { content: $fa-var-safari; }
655
- .#{$fa-css-prefix}-chrome:before { content: $fa-var-chrome; }
656
- .#{$fa-css-prefix}-firefox:before { content: $fa-var-firefox; }
657
- .#{$fa-css-prefix}-opera:before { content: $fa-var-opera; }
658
- .#{$fa-css-prefix}-internet-explorer:before { content: $fa-var-internet-explorer; }
659
- .#{$fa-css-prefix}-tv:before,
660
- .#{$fa-css-prefix}-television:before { content: $fa-var-television; }
661
- .#{$fa-css-prefix}-contao:before { content: $fa-var-contao; }
662
- .#{$fa-css-prefix}-500px:before { content: $fa-var-500px; }
663
- .#{$fa-css-prefix}-amazon:before { content: $fa-var-amazon; }
664
- .#{$fa-css-prefix}-calendar-plus-o:before { content: $fa-var-calendar-plus-o; }
665
- .#{$fa-css-prefix}-calendar-minus-o:before { content: $fa-var-calendar-minus-o; }
666
- .#{$fa-css-prefix}-calendar-times-o:before { content: $fa-var-calendar-times-o; }
667
- .#{$fa-css-prefix}-calendar-check-o:before { content: $fa-var-calendar-check-o; }
668
- .#{$fa-css-prefix}-industry:before { content: $fa-var-industry; }
669
- .#{$fa-css-prefix}-map-pin:before { content: $fa-var-map-pin; }
670
- .#{$fa-css-prefix}-map-signs:before { content: $fa-var-map-signs; }
671
- .#{$fa-css-prefix}-map-o:before { content: $fa-var-map-o; }
672
- .#{$fa-css-prefix}-map:before { content: $fa-var-map; }
673
- .#{$fa-css-prefix}-commenting:before { content: $fa-var-commenting; }
674
- .#{$fa-css-prefix}-commenting-o:before { content: $fa-var-commenting-o; }
675
- .#{$fa-css-prefix}-houzz:before { content: $fa-var-houzz; }
676
- .#{$fa-css-prefix}-vimeo:before { content: $fa-var-vimeo; }
677
- .#{$fa-css-prefix}-black-tie:before { content: $fa-var-black-tie; }
678
- .#{$fa-css-prefix}-fonticons:before { content: $fa-var-fonticons; }
679
- .#{$fa-css-prefix}-reddit-alien:before { content: $fa-var-reddit-alien; }
680
- .#{$fa-css-prefix}-edge:before { content: $fa-var-edge; }
681
- .#{$fa-css-prefix}-credit-card-alt:before { content: $fa-var-credit-card-alt; }
682
- .#{$fa-css-prefix}-codiepie:before { content: $fa-var-codiepie; }
683
- .#{$fa-css-prefix}-modx:before { content: $fa-var-modx; }
684
- .#{$fa-css-prefix}-fort-awesome:before { content: $fa-var-fort-awesome; }
685
- .#{$fa-css-prefix}-usb:before { content: $fa-var-usb; }
686
- .#{$fa-css-prefix}-product-hunt:before { content: $fa-var-product-hunt; }
687
- .#{$fa-css-prefix}-mixcloud:before { content: $fa-var-mixcloud; }
688
- .#{$fa-css-prefix}-scribd:before { content: $fa-var-scribd; }
689
- .#{$fa-css-prefix}-pause-circle:before { content: $fa-var-pause-circle; }
690
- .#{$fa-css-prefix}-pause-circle-o:before { content: $fa-var-pause-circle-o; }
691
- .#{$fa-css-prefix}-stop-circle:before { content: $fa-var-stop-circle; }
692
- .#{$fa-css-prefix}-stop-circle-o:before { content: $fa-var-stop-circle-o; }
693
- .#{$fa-css-prefix}-shopping-bag:before { content: $fa-var-shopping-bag; }
694
- .#{$fa-css-prefix}-shopping-basket:before { content: $fa-var-shopping-basket; }
695
- .#{$fa-css-prefix}-hashtag:before { content: $fa-var-hashtag; }
696
- .#{$fa-css-prefix}-bluetooth:before { content: $fa-var-bluetooth; }
697
- .#{$fa-css-prefix}-bluetooth-b:before { content: $fa-var-bluetooth-b; }
698
- .#{$fa-css-prefix}-percent:before { content: $fa-var-percent; }
699
- .#{$fa-css-prefix}-gitlab:before { content: $fa-var-gitlab; }
700
- .#{$fa-css-prefix}-wpbeginner:before { content: $fa-var-wpbeginner; }
701
- .#{$fa-css-prefix}-wpforms:before { content: $fa-var-wpforms; }
702
- .#{$fa-css-prefix}-envira:before { content: $fa-var-envira; }
703
- .#{$fa-css-prefix}-universal-access:before { content: $fa-var-universal-access; }
704
- .#{$fa-css-prefix}-wheelchair-alt:before { content: $fa-var-wheelchair-alt; }
705
- .#{$fa-css-prefix}-question-circle-o:before { content: $fa-var-question-circle-o; }
706
- .#{$fa-css-prefix}-blind:before { content: $fa-var-blind; }
707
- .#{$fa-css-prefix}-audio-description:before { content: $fa-var-audio-description; }
708
- .#{$fa-css-prefix}-volume-control-phone:before { content: $fa-var-volume-control-phone; }
709
- .#{$fa-css-prefix}-braille:before { content: $fa-var-braille; }
710
- .#{$fa-css-prefix}-assistive-listening-systems:before { content: $fa-var-assistive-listening-systems; }
711
- .#{$fa-css-prefix}-asl-interpreting:before,
712
- .#{$fa-css-prefix}-american-sign-language-interpreting:before { content: $fa-var-american-sign-language-interpreting; }
713
- .#{$fa-css-prefix}-deafness:before,
714
- .#{$fa-css-prefix}-hard-of-hearing:before,
715
- .#{$fa-css-prefix}-deaf:before { content: $fa-var-deaf; }
716
- .#{$fa-css-prefix}-glide:before { content: $fa-var-glide; }
717
- .#{$fa-css-prefix}-glide-g:before { content: $fa-var-glide-g; }
718
- .#{$fa-css-prefix}-signing:before,
719
- .#{$fa-css-prefix}-sign-language:before { content: $fa-var-sign-language; }
720
- .#{$fa-css-prefix}-low-vision:before { content: $fa-var-low-vision; }
721
- .#{$fa-css-prefix}-viadeo:before { content: $fa-var-viadeo; }
722
- .#{$fa-css-prefix}-viadeo-square:before { content: $fa-var-viadeo-square; }
723
- .#{$fa-css-prefix}-snapchat:before { content: $fa-var-snapchat; }
724
- .#{$fa-css-prefix}-snapchat-ghost:before { content: $fa-var-snapchat-ghost; }
725
- .#{$fa-css-prefix}-snapchat-square:before { content: $fa-var-snapchat-square; }
726
- .#{$fa-css-prefix}-pied-piper:before { content: $fa-var-pied-piper; }
727
- .#{$fa-css-prefix}-first-order:before { content: $fa-var-first-order; }
728
- .#{$fa-css-prefix}-yoast:before { content: $fa-var-yoast; }
729
- .#{$fa-css-prefix}-themeisle:before { content: $fa-var-themeisle; }
730
- .#{$fa-css-prefix}-google-plus-circle:before,
731
- .#{$fa-css-prefix}-google-plus-official:before { content: $fa-var-google-plus-official; }
732
- .#{$fa-css-prefix}-fa:before,
733
- .#{$fa-css-prefix}-font-awesome:before { content: $fa-var-font-awesome; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/font-awesome/scss/_larger.scss DELETED
@@ -1,13 +0,0 @@
1
- // Icon Sizes
2
- // -------------------------
3
-
4
- /* makes the font 33% larger relative to the icon container */
5
- .#{$fa-css-prefix}-lg {
6
- font-size: (4em / 3);
7
- line-height: (3em / 4);
8
- vertical-align: -15%;
9
- }
10
- .#{$fa-css-prefix}-2x { font-size: 2em; }
11
- .#{$fa-css-prefix}-3x { font-size: 3em; }
12
- .#{$fa-css-prefix}-4x { font-size: 4em; }
13
- .#{$fa-css-prefix}-5x { font-size: 5em; }
 
 
 
 
 
 
 
 
 
 
 
 
 
css/font-awesome/scss/_list.scss DELETED
@@ -1,19 +0,0 @@
1
- // List Icons
2
- // -------------------------
3
-
4
- .#{$fa-css-prefix}-ul {
5
- padding-left: 0;
6
- margin-left: $fa-li-width;
7
- list-style-type: none;
8
- > li { position: relative; }
9
- }
10
- .#{$fa-css-prefix}-li {
11
- position: absolute;
12
- left: -$fa-li-width;
13
- width: $fa-li-width;
14
- top: (2em / 14);
15
- text-align: center;
16
- &.#{$fa-css-prefix}-lg {
17
- left: -$fa-li-width + (4em / 14);
18
- }
19
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/font-awesome/scss/_mixins.scss DELETED
@@ -1,60 +0,0 @@
1
- // Mixins
2
- // --------------------------
3
-
4
- @mixin fa-icon() {
5
- display: inline-block;
6
- font: normal normal normal #{$fa-font-size-base}/#{$fa-line-height-base} FontAwesome; // shortening font declaration
7
- font-size: inherit; // can't have font-size inherit on line above, so need to override
8
- text-rendering: auto; // optimizelegibility throws things off #1094
9
- -webkit-font-smoothing: antialiased;
10
- -moz-osx-font-smoothing: grayscale;
11
-
12
- }
13
-
14
- @mixin fa-icon-rotate($degrees, $rotation) {
15
- -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation})";
16
- -webkit-transform: rotate($degrees);
17
- -ms-transform: rotate($degrees);
18
- transform: rotate($degrees);
19
- }
20
-
21
- @mixin fa-icon-flip($horiz, $vert, $rotation) {
22
- -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation}, mirror=1)";
23
- -webkit-transform: scale($horiz, $vert);
24
- -ms-transform: scale($horiz, $vert);
25
- transform: scale($horiz, $vert);
26
- }
27
-
28
-
29
- // Only display content to screen readers. A la Bootstrap 4.
30
- //
31
- // See: http://a11yproject.com/posts/how-to-hide-content/
32
-
33
- @mixin sr-only {
34
- position: absolute;
35
- width: 1px;
36
- height: 1px;
37
- padding: 0;
38
- margin: -1px;
39
- overflow: hidden;
40
- clip: rect(0,0,0,0);
41
- border: 0;
42
- }
43
-
44
- // Use in conjunction with .sr-only to only display content when it's focused.
45
- //
46
- // Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
47
- //
48
- // Credit: HTML5 Boilerplate
49
-
50
- @mixin sr-only-focusable {
51
- &:active,
52
- &:focus {
53
- position: static;
54
- width: auto;
55
- height: auto;
56
- margin: 0;
57
- overflow: visible;
58
- clip: auto;
59
- }
60
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/font-awesome/scss/_path.scss DELETED
@@ -1,15 +0,0 @@
1
- /* FONT PATH
2
- * -------------------------- */
3
-
4
- @font-face {
5
- font-family: 'FontAwesome';
6
- src: url('#{$fa-font-path}/fontawesome-webfont.eot?v=#{$fa-version}');
7
- src: url('#{$fa-font-path}/fontawesome-webfont.eot?#iefix&v=#{$fa-version}') format('embedded-opentype'),
8
- url('#{$fa-font-path}/fontawesome-webfont.woff2?v=#{$fa-version}') format('woff2'),
9
- url('#{$fa-font-path}/fontawesome-webfont.woff?v=#{$fa-version}') format('woff'),
10
- url('#{$fa-font-path}/fontawesome-webfont.ttf?v=#{$fa-version}') format('truetype'),
11
- url('#{$fa-font-path}/fontawesome-webfont.svg?v=#{$fa-version}#fontawesomeregular') format('svg');
12
- // src: url('#{$fa-font-path}/FontAwesome.otf') format('opentype'); // used when developing fonts
13
- font-weight: normal;
14
- font-style: normal;
15
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/font-awesome/scss/_rotated-flipped.scss DELETED
@@ -1,20 +0,0 @@
1
- // Rotated & Flipped Icons
2
- // -------------------------
3
-
4
- .#{$fa-css-prefix}-rotate-90 { @include fa-icon-rotate(90deg, 1); }
5
- .#{$fa-css-prefix}-rotate-180 { @include fa-icon-rotate(180deg, 2); }
6
- .#{$fa-css-prefix}-rotate-270 { @include fa-icon-rotate(270deg, 3); }
7
-
8
- .#{$fa-css-prefix}-flip-horizontal { @include fa-icon-flip(-1, 1, 0); }
9
- .#{$fa-css-prefix}-flip-vertical { @include fa-icon-flip(1, -1, 2); }
10
-
11
- // Hook for IE8-9
12
- // -------------------------
13
-
14
- :root .#{$fa-css-prefix}-rotate-90,
15
- :root .#{$fa-css-prefix}-rotate-180,
16
- :root .#{$fa-css-prefix}-rotate-270,
17
- :root .#{$fa-css-prefix}-flip-horizontal,
18
- :root .#{$fa-css-prefix}-flip-vertical {
19
- filter: none;
20
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/font-awesome/scss/_screen-reader.scss DELETED
@@ -1,5 +0,0 @@
1
- // Screen Readers
2
- // -------------------------
3
-
4
- .sr-only { @include sr-only(); }
5
- .sr-only-focusable { @include sr-only-focusable(); }
 
 
 
 
 
css/font-awesome/scss/_stacked.scss DELETED
@@ -1,20 +0,0 @@
1
- // Stacked Icons
2
- // -------------------------
3
-
4
- .#{$fa-css-prefix}-stack {
5
- position: relative;
6
- display: inline-block;
7
- width: 2em;
8
- height: 2em;
9
- line-height: 2em;
10
- vertical-align: middle;
11
- }
12
- .#{$fa-css-prefix}-stack-1x, .#{$fa-css-prefix}-stack-2x {
13
- position: absolute;
14
- left: 0;
15
- width: 100%;
16
- text-align: center;
17
- }
18
- .#{$fa-css-prefix}-stack-1x { line-height: inherit; }
19
- .#{$fa-css-prefix}-stack-2x { font-size: 2em; }
20
- .#{$fa-css-prefix}-inverse { color: $fa-inverse; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/font-awesome/scss/_variables.scss DELETED
@@ -1,744 +0,0 @@
1
- // Variables
2
- // --------------------------
3
-
4
- $fa-font-path: "../fonts" !default;
5
- $fa-font-size-base: 14px !default;
6
- $fa-line-height-base: 1 !default;
7
- //$fa-font-path: "//netdna.bootstrapcdn.com/font-awesome/4.6.3/fonts" !default; // for referencing Bootstrap CDN font files directly
8
- $fa-css-prefix: fa !default;
9
- $fa-version: "4.6.3" !default;
10
- $fa-border-color: #eee !default;
11
- $fa-inverse: #fff !default;
12
- $fa-li-width: (30em / 14) !default;
13
-
14
- $fa-var-500px: "\f26e";
15
- $fa-var-adjust: "\f042";
16
- $fa-var-adn: "\f170";
17
- $fa-var-align-center: "\f037";
18
- $fa-var-align-justify: "\f039";
19
- $fa-var-align-left: "\f036";
20
- $fa-var-align-right: "\f038";
21
- $fa-var-amazon: "\f270";
22
- $fa-var-ambulance: "\f0f9";
23
- $fa-var-american-sign-language-interpreting: "\f2a3";
24
- $fa-var-anchor: "\f13d";
25
- $fa-var-android: "\f17b";
26
- $fa-var-angellist: "\f209";
27
- $fa-var-angle-double-down: "\f103";
28
- $fa-var-angle-double-left: "\f100";
29
- $fa-var-angle-double-right: "\f101";
30
- $fa-var-angle-double-up: "\f102";
31
- $fa-var-angle-down: "\f107";
32
- $fa-var-angle-left: "\f104";
33
- $fa-var-angle-right: "\f105";
34
- $fa-var-angle-up: "\f106";
35
- $fa-var-apple: "\f179";
36
- $fa-var-archive: "\f187";
37
- $fa-var-area-chart: "\f1fe";
38
- $fa-var-arrow-circle-down: "\f0ab";
39
- $fa-var-arrow-circle-left: "\f0a8";
40
- $fa-var-arrow-circle-o-down: "\f01a";
41
- $fa-var-arrow-circle-o-left: "\f190";
42
- $fa-var-arrow-circle-o-right: "\f18e";
43
- $fa-var-arrow-circle-o-up: "\f01b";
44
- $fa-var-arrow-circle-right: "\f0a9";
45
- $fa-var-arrow-circle-up: "\f0aa";
46
- $fa-var-arrow-down: "\f063";
47
- $fa-var-arrow-left: "\f060";
48
- $fa-var-arrow-right: "\f061";
49
- $fa-var-arrow-up: "\f062";
50
- $fa-var-arrows: "\f047";
51
- $fa-var-arrows-alt: "\f0b2";
52
- $fa-var-arrows-h: "\f07e";
53
- $fa-var-arrows-v: "\f07d";
54
- $fa-var-asl-interpreting: "\f2a3";
55
- $fa-var-assistive-listening-systems: "\f2a2";
56
- $fa-var-asterisk: "\f069";
57
- $fa-var-at: "\f1fa";
58
- $fa-var-audio-description: "\f29e";
59
- $fa-var-automobile: "\f1b9";
60
- $fa-var-backward: "\f04a";
61
- $fa-var-balance-scale: "\f24e";
62
- $fa-var-ban: "\f05e";
63
- $fa-var-bank: "\f19c";
64
- $fa-var-bar-chart: "\f080";
65
- $fa-var-bar-chart-o: "\f080";
66
- $fa-var-barcode: "\f02a";
67
- $fa-var-bars: "\f0c9";
68
- $fa-var-battery-0: "\f244";
69
- $fa-var-battery-1: "\f243";
70
- $fa-var-battery-2: "\f242";
71
- $fa-var-battery-3: "\f241";
72
- $fa-var-battery-4: "\f240";
73
- $fa-var-battery-empty: "\f244";
74
- $fa-var-battery-full: "\f240";
75
- $fa-var-battery-half: "\f242";
76
- $fa-var-battery-quarter: "\f243";
77
- $fa-var-battery-three-quarters: "\f241";
78
- $fa-var-bed: "\f236";
79
- $fa-var-beer: "\f0fc";
80
- $fa-var-behance: "\f1b4";
81
- $fa-var-behance-square: "\f1b5";
82
- $fa-var-bell: "\f0f3";
83
- $fa-var-bell-o: "\f0a2";
84
- $fa-var-bell-slash: "\f1f6";
85
- $fa-var-bell-slash-o: "\f1f7";
86
- $fa-var-bicycle: "\f206";
87
- $fa-var-binoculars: "\f1e5";
88
- $fa-var-birthday-cake: "\f1fd";
89
- $fa-var-bitbucket: "\f171";
90
- $fa-var-bitbucket-square: "\f172";
91
- $fa-var-bitcoin: "\f15a";
92
- $fa-var-black-tie: "\f27e";
93
- $fa-var-blind: "\f29d";
94
- $fa-var-bluetooth: "\f293";
95
- $fa-var-bluetooth-b: "\f294";
96
- $fa-var-bold: "\f032";
97
- $fa-var-bolt: "\f0e7";
98
- $fa-var-bomb: "\f1e2";
99
- $fa-var-book: "\f02d";
100
- $fa-var-bookmark: "\f02e";
101
- $fa-var-bookmark-o: "\f097";
102
- $fa-var-braille: "\f2a1";
103
- $fa-var-briefcase: "\f0b1";
104
- $fa-var-btc: "\f15a";
105
- $fa-var-bug: "\f188";
106
- $fa-var-building: "\f1ad";
107
- $fa-var-building-o: "\f0f7";
108
- $fa-var-bullhorn: "\f0a1";
109
- $fa-var-bullseye: "\f140";
110
- $fa-var-bus: "\f207";
111
- $fa-var-buysellads: "\f20d";
112
- $fa-var-cab: "\f1ba";
113
- $fa-var-calculator: "\f1ec";
114
- $fa-var-calendar: "\f073";
115
- $fa-var-calendar-check-o: "\f274";
116
- $fa-var-calendar-minus-o: "\f272";
117
- $fa-var-calendar-o: "\f133";
118
- $fa-var-calendar-plus-o: "\f271";
119
- $fa-var-calendar-times-o: "\f273";
120
- $fa-var-camera: "\f030";
121
- $fa-var-camera-retro: "\f083";
122
- $fa-var-car: "\f1b9";
123
- $fa-var-caret-down: "\f0d7";
124
- $fa-var-caret-left: "\f0d9";
125
- $fa-var-caret-right: "\f0da";
126
- $fa-var-caret-square-o-down: "\f150";
127
- $fa-var-caret-square-o-left: "\f191";
128
- $fa-var-caret-square-o-right: "\f152";
129
- $fa-var-caret-square-o-up: "\f151";
130
- $fa-var-caret-up: "\f0d8";
131
- $fa-var-cart-arrow-down: "\f218";
132
- $fa-var-cart-plus: "\f217";
133
- $fa-var-cc: "\f20a";
134
- $fa-var-cc-amex: "\f1f3";
135
- $fa-var-cc-diners-club: "\f24c";
136
- $fa-var-cc-discover: "\f1f2";
137
- $fa-var-cc-jcb: "\f24b";
138
- $fa-var-cc-mastercard: "\f1f1";
139
- $fa-var-cc-paypal: "\f1f4";
140
- $fa-var-cc-stripe: "\f1f5";
141
- $fa-var-cc-visa: "\f1f0";
142
- $fa-var-certificate: "\f0a3";
143
- $fa-var-chain: "\f0c1";
144
- $fa-var-chain-broken: "\f127";
145
- $fa-var-check: "\f00c";
146
- $fa-var-check-circle: "\f058";
147
- $fa-var-check-circle-o: "\f05d";
148
- $fa-var-check-square: "\f14a";
149
- $fa-var-check-square-o: "\f046";
150
- $fa-var-chevron-circle-down: "\f13a";
151
- $fa-var-chevron-circle-left: "\f137";
152
- $fa-var-chevron-circle-right: "\f138";
153
- $fa-var-chevron-circle-up: "\f139";
154
- $fa-var-chevron-down: "\f078";
155
- $fa-var-chevron-left: "\f053";
156
- $fa-var-chevron-right: "\f054";
157
- $fa-var-chevron-up: "\f077";
158
- $fa-var-child: "\f1ae";
159
- $fa-var-chrome: "\f268";
160
- $fa-var-circle: "\f111";
161
- $fa-var-circle-o: "\f10c";
162
- $fa-var-circle-o-notch: "\f1ce";
163
- $fa-var-circle-thin: "\f1db";
164
- $fa-var-clipboard: "\f0ea";
165
- $fa-var-clock-o: "\f017";
166
- $fa-var-clone: "\f24d";
167
- $fa-var-close: "\f00d";
168
- $fa-var-cloud: "\f0c2";
169
- $fa-var-cloud-download: "\f0ed";
170
- $fa-var-cloud-upload: "\f0ee";
171
- $fa-var-cny: "\f157";
172
- $fa-var-code: "\f121";
173
- $fa-var-code-fork: "\f126";
174
- $fa-var-codepen: "\f1cb";
175
- $fa-var-codiepie: "\f284";
176
- $fa-var-coffee: "\f0f4";
177
- $fa-var-cog: "\f013";
178
- $fa-var-cogs: "\f085";
179
- $fa-var-columns: "\f0db";
180
- $fa-var-comment: "\f075";
181
- $fa-var-comment-o: "\f0e5";
182
- $fa-var-commenting: "\f27a";
183
- $fa-var-commenting-o: "\f27b";
184
- $fa-var-comments: "\f086";
185
- $fa-var-comments-o: "\f0e6";
186
- $fa-var-compass: "\f14e";
187
- $fa-var-compress: "\f066";
188
- $fa-var-connectdevelop: "\f20e";
189
- $fa-var-contao: "\f26d";
190
- $fa-var-copy: "\f0c5";
191
- $fa-var-copyright: "\f1f9";
192
- $fa-var-creative-commons: "\f25e";
193
- $fa-var-credit-card: "\f09d";
194
- $fa-var-credit-card-alt: "\f283";
195
- $fa-var-crop: "\f125";
196
- $fa-var-crosshairs: "\f05b";
197
- $fa-var-css3: "\f13c";
198
- $fa-var-cube: "\f1b2";
199
- $fa-var-cubes: "\f1b3";
200
- $fa-var-cut: "\f0c4";
201
- $fa-var-cutlery: "\f0f5";
202
- $fa-var-dashboard: "\f0e4";
203
- $fa-var-dashcube: "\f210";
204
- $fa-var-database: "\f1c0";
205
- $fa-var-deaf: "\f2a4";
206
- $fa-var-deafness: "\f2a4";
207
- $fa-var-dedent: "\f03b";
208
- $fa-var-delicious: "\f1a5";
209
- $fa-var-desktop: "\f108";
210
- $fa-var-deviantart: "\f1bd";
211
- $fa-var-diamond: "\f219";
212
- $fa-var-digg: "\f1a6";
213
- $fa-var-dollar: "\f155";
214
- $fa-var-dot-circle-o: "\f192";
215
- $fa-var-download: "\f019";
216
- $fa-var-dribbble: "\f17d";
217
- $fa-var-dropbox: "\f16b";
218
- $fa-var-drupal: "\f1a9";
219
- $fa-var-edge: "\f282";
220
- $fa-var-edit: "\f044";
221
- $fa-var-eject: "\f052";
222
- $fa-var-ellipsis-h: "\f141";
223
- $fa-var-ellipsis-v: "\f142";
224
- $fa-var-empire: "\f1d1";
225
- $fa-var-envelope: "\f0e0";
226
- $fa-var-envelope-o: "\f003";
227
- $fa-var-envelope-square: "\f199";
228
- $fa-var-envira: "\f299";
229
- $fa-var-eraser: "\f12d";
230
- $fa-var-eur: "\f153";
231
- $fa-var-euro: "\f153";
232
- $fa-var-exchange: "\f0ec";
233
- $fa-var-exclamation: "\f12a";
234
- $fa-var-exclamation-circle: "\f06a";
235
- $fa-var-exclamation-triangle: "\f071";
236
- $fa-var-expand: "\f065";
237
- $fa-var-expeditedssl: "\f23e";
238
- $fa-var-external-link: "\f08e";
239
- $fa-var-external-link-square: "\f14c";
240
- $fa-var-eye: "\f06e";
241
- $fa-var-eye-slash: "\f070";
242
- $fa-var-eyedropper: "\f1fb";
243
- $fa-var-fa: "\f2b4";
244
- $fa-var-facebook: "\f09a";
245
- $fa-var-facebook-f: "\f09a";
246
- $fa-var-facebook-official: "\f230";
247
- $fa-var-facebook-square: "\f082";
248
- $fa-var-fast-backward: "\f049";
249
- $fa-var-fast-forward: "\f050";
250
- $fa-var-fax: "\f1ac";
251
- $fa-var-feed: "\f09e";
252
- $fa-var-female: "\f182";
253
- $fa-var-fighter-jet: "\f0fb";
254
- $fa-var-file: "\f15b";
255
- $fa-var-file-archive-o: "\f1c6";
256
- $fa-var-file-audio-o: "\f1c7";
257
- $fa-var-file-code-o: "\f1c9";
258
- $fa-var-file-excel-o: "\f1c3";
259
- $fa-var-file-image-o: "\f1c5";
260
- $fa-var-file-movie-o: "\f1c8";
261
- $fa-var-file-o: "\f016";
262
- $fa-var-file-pdf-o: "\f1c1";
263
- $fa-var-file-photo-o: "\f1c5";
264
- $fa-var-file-picture-o: "\f1c5";
265
- $fa-var-file-powerpoint-o: "\f1c4";
266
- $fa-var-file-sound-o: "\f1c7";
267
- $fa-var-file-text: "\f15c";
268
- $fa-var-file-text-o: "\f0f6";
269
- $fa-var-file-video-o: "\f1c8";
270
- $fa-var-file-word-o: "\f1c2";
271
- $fa-var-file-zip-o: "\f1c6";
272
- $fa-var-files-o: "\f0c5";
273
- $fa-var-film: "\f008";
274
- $fa-var-filter: "\f0b0";
275
- $fa-var-fire: "\f06d";
276
- $fa-var-fire-extinguisher: "\f134";
277
- $fa-var-firefox: "\f269";
278
- $fa-var-first-order: "\f2b0";
279
- $fa-var-flag: "\f024";
280
- $fa-var-flag-checkered: "\f11e";
281
- $fa-var-flag-o: "\f11d";
282
- $fa-var-flash: "\f0e7";
283
- $fa-var-flask: "\f0c3";
284
- $fa-var-flickr: "\f16e";
285
- $fa-var-floppy-o: "\f0c7";
286
- $fa-var-folder: "\f07b";
287
- $fa-var-folder-o: "\f114";
288
- $fa-var-folder-open: "\f07c";
289
- $fa-var-folder-open-o: "\f115";
290
- $fa-var-font: "\f031";
291
- $fa-var-font-awesome: "\f2b4";
292
- $fa-var-fonticons: "\f280";
293
- $fa-var-fort-awesome: "\f286";
294
- $fa-var-forumbee: "\f211";
295
- $fa-var-forward: "\f04e";
296
- $fa-var-foursquare: "\f180";
297
- $fa-var-frown-o: "\f119";
298
- $fa-var-futbol-o: "\f1e3";
299
- $fa-var-gamepad: "\f11b";
300
- $fa-var-gavel: "\f0e3";
301
- $fa-var-gbp: "\f154";
302
- $fa-var-ge: "\f1d1";
303
- $fa-var-gear: "\f013";
304
- $fa-var-gears: "\f085";
305
- $fa-var-genderless: "\f22d";
306
- $fa-var-get-pocket: "\f265";
307
- $fa-var-gg: "\f260";
308
- $fa-var-gg-circle: "\f261";
309
- $fa-var-gift: "\f06b";
310
- $fa-var-git: "\f1d3";
311
- $fa-var-git-square: "\f1d2";
312
- $fa-var-github: "\f09b";
313
- $fa-var-github-alt: "\f113";
314
- $fa-var-github-square: "\f092";
315
- $fa-var-gitlab: "\f296";
316
- $fa-var-gittip: "\f184";
317
- $fa-var-glass: "\f000";
318
- $fa-var-glide: "\f2a5";
319
- $fa-var-glide-g: "\f2a6";
320
- $fa-var-globe: "\f0ac";
321
- $fa-var-google: "\f1a0";
322
- $fa-var-google-plus: "\f0d5";
323
- $fa-var-google-plus-circle: "\f2b3";
324
- $fa-var-google-plus-official: "\f2b3";
325
- $fa-var-google-plus-square: "\f0d4";
326
- $fa-var-google-wallet: "\f1ee";
327
- $fa-var-graduation-cap: "\f19d";
328
- $fa-var-gratipay: "\f184";
329
- $fa-var-group: "\f0c0";
330
- $fa-var-h-square: "\f0fd";
331
- $fa-var-hacker-news: "\f1d4";
332
- $fa-var-hand-grab-o: "\f255";
333
- $fa-var-hand-lizard-o: "\f258";
334
- $fa-var-hand-o-down: "\f0a7";
335
- $fa-var-hand-o-left: "\f0a5";
336
- $fa-var-hand-o-right: "\f0a4";
337
- $fa-var-hand-o-up: "\f0a6";
338
- $fa-var-hand-paper-o: "\f256";
339
- $fa-var-hand-peace-o: "\f25b";
340
- $fa-var-hand-pointer-o: "\f25a";
341
- $fa-var-hand-rock-o: "\f255";
342
- $fa-var-hand-scissors-o: "\f257";
343
- $fa-var-hand-spock-o: "\f259";
344
- $fa-var-hand-stop-o: "\f256";
345
- $fa-var-hard-of-hearing: "\f2a4";
346
- $fa-var-hashtag: "\f292";
347
- $fa-var-hdd-o: "\f0a0";
348
- $fa-var-header: "\f1dc";
349
- $fa-var-headphones: "\f025";
350
- $fa-var-heart: "\f004";
351
- $fa-var-heart-o: "\f08a";
352
- $fa-var-heartbeat: "\f21e";
353
- $fa-var-history: "\f1da";
354
- $fa-var-home: "\f015";
355
- $fa-var-hospital-o: "\f0f8";
356
- $fa-var-hotel: "\f236";
357
- $fa-var-hourglass: "\f254";
358
- $fa-var-hourglass-1: "\f251";
359
- $fa-var-hourglass-2: "\f252";
360
- $fa-var-hourglass-3: "\f253";
361
- $fa-var-hourglass-end: "\f253";
362
- $fa-var-hourglass-half: "\f252";
363
- $fa-var-hourglass-o: "\f250";
364
- $fa-var-hourglass-start: "\f251";
365
- $fa-var-houzz: "\f27c";
366
- $fa-var-html5: "\f13b";
367
- $fa-var-i-cursor: "\f246";
368
- $fa-var-ils: "\f20b";
369
- $fa-var-image: "\f03e";
370
- $fa-var-inbox: "\f01c";
371
- $fa-var-indent: "\f03c";
372
- $fa-var-industry: "\f275";
373
- $fa-var-info: "\f129";
374
- $fa-var-info-circle: "\f05a";
375
- $fa-var-inr: "\f156";
376
- $fa-var-instagram: "\f16d";
377
- $fa-var-institution: "\f19c";
378
- $fa-var-internet-explorer: "\f26b";
379
- $fa-var-intersex: "\f224";
380
- $fa-var-ioxhost: "\f208";
381
- $fa-var-italic: "\f033";
382
- $fa-var-joomla: "\f1aa";
383
- $fa-var-jpy: "\f157";
384
- $fa-var-jsfiddle: "\f1cc";
385
- $fa-var-key: "\f084";
386
- $fa-var-keyboard-o: "\f11c";
387
- $fa-var-krw: "\f159";
388
- $fa-var-language: "\f1ab";
389
- $fa-var-laptop: "\f109";
390
- $fa-var-lastfm: "\f202";
391
- $fa-var-lastfm-square: "\f203";
392
- $fa-var-leaf: "\f06c";
393
- $fa-var-leanpub: "\f212";
394
- $fa-var-legal: "\f0e3";
395
- $fa-var-lemon-o: "\f094";
396
- $fa-var-level-down: "\f149";
397
- $fa-var-level-up: "\f148";
398
- $fa-var-life-bouy: "\f1cd";
399
- $fa-var-life-buoy: "\f1cd";
400
- $fa-var-life-ring: "\f1cd";
401
- $fa-var-life-saver: "\f1cd";
402
- $fa-var-lightbulb-o: "\f0eb";
403
- $fa-var-line-chart: "\f201";
404
- $fa-var-link: "\f0c1";
405
- $fa-var-linkedin: "\f0e1";
406
- $fa-var-linkedin-square: "\f08c";
407
- $fa-var-linux: "\f17c";
408
- $fa-var-list: "\f03a";
409
- $fa-var-list-alt: "\f022";
410
- $fa-var-list-ol: "\f0cb";
411
- $fa-var-list-ul: "\f0ca";
412
- $fa-var-location-arrow: "\f124";
413
- $fa-var-lock: "\f023";
414
- $fa-var-long-arrow-down: "\f175";
415
- $fa-var-long-arrow-left: "\f177";
416
- $fa-var-long-arrow-right: "\f178";
417
- $fa-var-long-arrow-up: "\f176";
418
- $fa-var-low-vision: "\f2a8";
419
- $fa-var-magic: "\f0d0";
420
- $fa-var-magnet: "\f076";
421
- $fa-var-mail-forward: "\f064";
422
- $fa-var-mail-reply: "\f112";
423
- $fa-var-mail-reply-all: "\f122";
424
- $fa-var-male: "\f183";
425
- $fa-var-map: "\f279";
426
- $fa-var-map-marker: "\f041";
427
- $fa-var-map-o: "\f278";
428
- $fa-var-map-pin: "\f276";
429
- $fa-var-map-signs: "\f277";
430
- $fa-var-mars: "\f222";
431
- $fa-var-mars-double: "\f227";
432
- $fa-var-mars-stroke: "\f229";
433
- $fa-var-mars-stroke-h: "\f22b";
434
- $fa-var-mars-stroke-v: "\f22a";
435
- $fa-var-maxcdn: "\f136";
436
- $fa-var-meanpath: "\f20c";
437
- $fa-var-medium: "\f23a";
438
- $fa-var-medkit: "\f0fa";
439
- $fa-var-meh-o: "\f11a";
440
- $fa-var-mercury: "\f223";
441
- $fa-var-microphone: "\f130";
442
- $fa-var-microphone-slash: "\f131";
443
- $fa-var-minus: "\f068";
444
- $fa-var-minus-circle: "\f056";
445
- $fa-var-minus-square: "\f146";
446
- $fa-var-minus-square-o: "\f147";
447
- $fa-var-mixcloud: "\f289";
448
- $fa-var-mobile: "\f10b";
449
- $fa-var-mobile-phone: "\f10b";
450
- $fa-var-modx: "\f285";
451
- $fa-var-money: "\f0d6";
452
- $fa-var-moon-o: "\f186";
453
- $fa-var-mortar-board: "\f19d";
454
- $fa-var-motorcycle: "\f21c";
455
- $fa-var-mouse-pointer: "\f245";
456
- $fa-var-music: "\f001";
457
- $fa-var-navicon: "\f0c9";
458
- $fa-var-neuter: "\f22c";
459
- $fa-var-newspaper-o: "\f1ea";
460
- $fa-var-object-group: "\f247";
461
- $fa-var-object-ungroup: "\f248";
462
- $fa-var-odnoklassniki: "\f263";
463
- $fa-var-odnoklassniki-square: "\f264";
464
- $fa-var-opencart: "\f23d";
465
- $fa-var-openid: "\f19b";
466
- $fa-var-opera: "\f26a";
467
- $fa-var-optin-monster: "\f23c";
468
- $fa-var-outdent: "\f03b";
469
- $fa-var-pagelines: "\f18c";
470
- $fa-var-paint-brush: "\f1fc";
471
- $fa-var-paper-plane: "\f1d8";
472
- $fa-var-paper-plane-o: "\f1d9";
473
- $fa-var-paperclip: "\f0c6";
474
- $fa-var-paragraph: "\f1dd";
475
- $fa-var-paste: "\f0ea";
476
- $fa-var-pause: "\f04c";
477
- $fa-var-pause-circle: "\f28b";
478
- $fa-var-pause-circle-o: "\f28c";
479
- $fa-var-paw: "\f1b0";
480
- $fa-var-paypal: "\f1ed";
481
- $fa-var-pencil: "\f040";
482
- $fa-var-pencil-square: "\f14b";
483
- $fa-var-pencil-square-o: "\f044";
484
- $fa-var-percent: "\f295";
485
- $fa-var-phone: "\f095";
486
- $fa-var-phone-square: "\f098";
487
- $fa-var-photo: "\f03e";
488
- $fa-var-picture-o: "\f03e";
489
- $fa-var-pie-chart: "\f200";
490
- $fa-var-pied-piper: "\f2ae";
491
- $fa-var-pied-piper-alt: "\f1a8";
492
- $fa-var-pied-piper-pp: "\f1a7";
493
- $fa-var-pinterest: "\f0d2";
494
- $fa-var-pinterest-p: "\f231";
495
- $fa-var-pinterest-square: "\f0d3";
496
- $fa-var-plane: "\f072";
497
- $fa-var-play: "\f04b";
498
- $fa-var-play-circle: "\f144";
499
- $fa-var-play-circle-o: "\f01d";
500
- $fa-var-plug: "\f1e6";
501
- $fa-var-plus: "\f067";
502
- $fa-var-plus-circle: "\f055";
503
- $fa-var-plus-square: "\f0fe";
504
- $fa-var-plus-square-o: "\f196";
505
- $fa-var-power-off: "\f011";
506
- $fa-var-print: "\f02f";
507
- $fa-var-product-hunt: "\f288";
508
- $fa-var-puzzle-piece: "\f12e";
509
- $fa-var-qq: "\f1d6";
510
- $fa-var-qrcode: "\f029";
511
- $fa-var-question: "\f128";
512
- $fa-var-question-circle: "\f059";
513
- $fa-var-question-circle-o: "\f29c";
514
- $fa-var-quote-left: "\f10d";
515
- $fa-var-quote-right: "\f10e";
516
- $fa-var-ra: "\f1d0";
517
- $fa-var-random: "\f074";
518
- $fa-var-rebel: "\f1d0";
519
- $fa-var-recycle: "\f1b8";
520
- $fa-var-reddit: "\f1a1";
521
- $fa-var-reddit-alien: "\f281";
522
- $fa-var-reddit-square: "\f1a2";
523
- $fa-var-refresh: "\f021";
524
- $fa-var-registered: "\f25d";
525
- $fa-var-remove: "\f00d";
526
- $fa-var-renren: "\f18b";
527
- $fa-var-reorder: "\f0c9";
528
- $fa-var-repeat: "\f01e";
529
- $fa-var-reply: "\f112";
530
- $fa-var-reply-all: "\f122";
531
- $fa-var-resistance: "\f1d0";
532
- $fa-var-retweet: "\f079";
533
- $fa-var-rmb: "\f157";
534
- $fa-var-road: "\f018";
535
- $fa-var-rocket: "\f135";
536
- $fa-var-rotate-left: "\f0e2";
537
- $fa-var-rotate-right: "\f01e";
538
- $fa-var-rouble: "\f158";
539
- $fa-var-rss: "\f09e";
540
- $fa-var-rss-square: "\f143";
541
- $fa-var-rub: "\f158";
542
- $fa-var-ruble: "\f158";
543
- $fa-var-rupee: "\f156";
544
- $fa-var-safari: "\f267";
545
- $fa-var-save: "\f0c7";
546
- $fa-var-scissors: "\f0c4";
547
- $fa-var-scribd: "\f28a";
548
- $fa-var-search: "\f002";
549
- $fa-var-search-minus: "\f010";
550
- $fa-var-search-plus: "\f00e";
551
- $fa-var-sellsy: "\f213";
552
- $fa-var-send: "\f1d8";
553
- $fa-var-send-o: "\f1d9";
554
- $fa-var-server: "\f233";
555
- $fa-var-share: "\f064";
556
- $fa-var-share-alt: "\f1e0";
557
- $fa-var-share-alt-square: "\f1e1";
558
- $fa-var-share-square: "\f14d";
559
- $fa-var-share-square-o: "\f045";
560
- $fa-var-shekel: "\f20b";
561
- $fa-var-sheqel: "\f20b";
562
- $fa-var-shield: "\f132";
563
- $fa-var-ship: "\f21a";
564
- $fa-var-shirtsinbulk: "\f214";
565
- $fa-var-shopping-bag: "\f290";
566
- $fa-var-shopping-basket: "\f291";
567
- $fa-var-shopping-cart: "\f07a";
568
- $fa-var-sign-in: "\f090";
569
- $fa-var-sign-language: "\f2a7";
570
- $fa-var-sign-out: "\f08b";
571
- $fa-var-signal: "\f012";
572
- $fa-var-signing: "\f2a7";
573
- $fa-var-simplybuilt: "\f215";
574
- $fa-var-sitemap: "\f0e8";
575
- $fa-var-skyatlas: "\f216";
576
- $fa-var-skype: "\f17e";
577
- $fa-var-slack: "\f198";
578
- $fa-var-sliders: "\f1de";
579
- $fa-var-slideshare: "\f1e7";
580
- $fa-var-smile-o: "\f118";
581
- $fa-var-snapchat: "\f2ab";
582
- $fa-var-snapchat-ghost: "\f2ac";
583
- $fa-var-snapchat-square: "\f2ad";
584
- $fa-var-soccer-ball-o: "\f1e3";
585
- $fa-var-sort: "\f0dc";
586
- $fa-var-sort-alpha-asc: "\f15d";
587
- $fa-var-sort-alpha-desc: "\f15e";
588
- $fa-var-sort-amount-asc: "\f160";
589
- $fa-var-sort-amount-desc: "\f161";
590
- $fa-var-sort-asc: "\f0de";
591
- $fa-var-sort-desc: "\f0dd";
592
- $fa-var-sort-down: "\f0dd";
593
- $fa-var-sort-numeric-asc: "\f162";
594
- $fa-var-sort-numeric-desc: "\f163";
595
- $fa-var-sort-up: "\f0de";
596
- $fa-var-soundcloud: "\f1be";
597
- $fa-var-space-shuttle: "\f197";
598
- $fa-var-spinner: "\f110";
599
- $fa-var-spoon: "\f1b1";
600
- $fa-var-spotify: "\f1bc";
601
- $fa-var-square: "\f0c8";
602
- $fa-var-square-o: "\f096";
603
- $fa-var-stack-exchange: "\f18d";
604
- $fa-var-stack-overflow: "\f16c";
605
- $fa-var-star: "\f005";
606
- $fa-var-star-half: "\f089";
607
- $fa-var-star-half-empty: "\f123";
608
- $fa-var-star-half-full: "\f123";
609
- $fa-var-star-half-o: "\f123";
610
- $fa-var-star-o: "\f006";
611
- $fa-var-steam: "\f1b6";
612
- $fa-var-steam-square: "\f1b7";
613
- $fa-var-step-backward: "\f048";
614
- $fa-var-step-forward: "\f051";
615
- $fa-var-stethoscope: "\f0f1";
616
- $fa-var-sticky-note: "\f249";
617
- $fa-var-sticky-note-o: "\f24a";
618
- $fa-var-stop: "\f04d";
619
- $fa-var-stop-circle: "\f28d";
620
- $fa-var-stop-circle-o: "\f28e";
621
- $fa-var-street-view: "\f21d";
622
- $fa-var-strikethrough: "\f0cc";
623
- $fa-var-stumbleupon: "\f1a4";
624
- $fa-var-stumbleupon-circle: "\f1a3";
625
- $fa-var-subscript: "\f12c";
626
- $fa-var-subway: "\f239";
627
- $fa-var-suitcase: "\f0f2";
628
- $fa-var-sun-o: "\f185";
629
- $fa-var-superscript: "\f12b";
630
- $fa-var-support: "\f1cd";
631
- $fa-var-table: "\f0ce";
632
- $fa-var-tablet: "\f10a";
633
- $fa-var-tachometer: "\f0e4";
634
- $fa-var-tag: "\f02b";
635
- $fa-var-tags: "\f02c";
636
- $fa-var-tasks: "\f0ae";
637
- $fa-var-taxi: "\f1ba";
638
- $fa-var-television: "\f26c";
639
- $fa-var-tencent-weibo: "\f1d5";
640
- $fa-var-terminal: "\f120";
641
- $fa-var-text-height: "\f034";
642
- $fa-var-text-width: "\f035";
643
- $fa-var-th: "\f00a";
644
- $fa-var-th-large: "\f009";
645
- $fa-var-th-list: "\f00b";
646
- $fa-var-themeisle: "\f2b2";
647
- $fa-var-thumb-tack: "\f08d";
648
- $fa-var-thumbs-down: "\f165";
649
- $fa-var-thumbs-o-down: "\f088";
650
- $fa-var-thumbs-o-up: "\f087";
651
- $fa-var-thumbs-up: "\f164";
652
- $fa-var-ticket: "\f145";
653
- $fa-var-times: "\f00d";
654
- $fa-var-times-circle: "\f057";
655
- $fa-var-times-circle-o: "\f05c";
656
- $fa-var-tint: "\f043";
657
- $fa-var-toggle-down: "\f150";
658
- $fa-var-toggle-left: "\f191";
659
- $fa-var-toggle-off: "\f204";
660
- $fa-var-toggle-on: "\f205";
661
- $fa-var-toggle-right: "\f152";
662
- $fa-var-toggle-up: "\f151";
663
- $fa-var-trademark: "\f25c";
664
- $fa-var-train: "\f238";
665
- $fa-var-transgender: "\f224";
666
- $fa-var-transgender-alt: "\f225";
667
- $fa-var-trash: "\f1f8";
668
- $fa-var-trash-o: "\f014";
669
- $fa-var-tree: "\f1bb";
670
- $fa-var-trello: "\f181";
671
- $fa-var-tripadvisor: "\f262";
672
- $fa-var-trophy: "\f091";
673
- $fa-var-truck: "\f0d1";
674
- $fa-var-try: "\f195";
675
- $fa-var-tty: "\f1e4";
676
- $fa-var-tumblr: "\f173";
677
- $fa-var-tumblr-square: "\f174";
678
- $fa-var-turkish-lira: "\f195";
679
- $fa-var-tv: "\f26c";
680
- $fa-var-twitch: "\f1e8";
681
- $fa-var-twitter: "\f099";
682
- $fa-var-twitter-square: "\f081";
683
- $fa-var-umbrella: "\f0e9";
684
- $fa-var-underline: "\f0cd";
685
- $fa-var-undo: "\f0e2";
686
- $fa-var-universal-access: "\f29a";
687
- $fa-var-university: "\f19c";
688
- $fa-var-unlink: "\f127";
689
- $fa-var-unlock: "\f09c";
690
- $fa-var-unlock-alt: "\f13e";
691
- $fa-var-unsorted: "\f0dc";
692
- $fa-var-upload: "\f093";
693
- $fa-var-usb: "\f287";
694
- $fa-var-usd: "\f155";
695
- $fa-var-user: "\f007";
696
- $fa-var-user-md: "\f0f0";
697
- $fa-var-user-plus: "\f234";
698
- $fa-var-user-secret: "\f21b";
699
- $fa-var-user-times: "\f235";
700
- $fa-var-users: "\f0c0";
701
- $fa-var-venus: "\f221";
702
- $fa-var-venus-double: "\f226";
703
- $fa-var-venus-mars: "\f228";
704
- $fa-var-viacoin: "\f237";
705
- $fa-var-viadeo: "\f2a9";
706
- $fa-var-viadeo-square: "\f2aa";
707
- $fa-var-video-camera: "\f03d";
708
- $fa-var-vimeo: "\f27d";
709
- $fa-var-vimeo-square: "\f194";
710
- $fa-var-vine: "\f1ca";
711
- $fa-var-vk: "\f189";
712
- $fa-var-volume-control-phone: "\f2a0";
713
- $fa-var-volume-down: "\f027";
714
- $fa-var-volume-off: "\f026";
715
- $fa-var-volume-up: "\f028";
716
- $fa-var-warning: "\f071";
717
- $fa-var-wechat: "\f1d7";
718
- $fa-var-weibo: "\f18a";
719
- $fa-var-weixin: "\f1d7";
720
- $fa-var-whatsapp: "\f232";
721
- $fa-var-wheelchair: "\f193";
722
- $fa-var-wheelchair-alt: "\f29b";
723
- $fa-var-wifi: "\f1eb";
724
- $fa-var-wikipedia-w: "\f266";
725
- $fa-var-windows: "\f17a";
726
- $fa-var-won: "\f159";
727
- $fa-var-wordpress: "\f19a";
728
- $fa-var-wpbeginner: "\f297";
729
- $fa-var-wpforms: "\f298";
730
- $fa-var-wrench: "\f0ad";
731
- $fa-var-xing: "\f168";
732
- $fa-var-xing-square: "\f169";
733
- $fa-var-y-combinator: "\f23b";
734
- $fa-var-y-combinator-square: "\f1d4";
735
- $fa-var-yahoo: "\f19e";
736
- $fa-var-yc: "\f23b";
737
- $fa-var-yc-square: "\f1d4";
738
- $fa-var-yelp: "\f1e9";
739
- $fa-var-yen: "\f157";
740
- $fa-var-yoast: "\f2b1";
741
- $fa-var-youtube: "\f167";
742
- $fa-var-youtube-play: "\f16a";
743
- $fa-var-youtube-square: "\f166";
744
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/font-awesome/scss/font-awesome.scss DELETED
@@ -1,18 +0,0 @@
1
- /*!
2
- * Font Awesome 4.6.3 by @davegandy - http://fontawesome.io - @fontawesome
3
- * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
4
- */
5
-
6
- @import "variables";
7
- @import "mixins";
8
- @import "path";
9
- @import "core";
10
- @import "larger";
11
- @import "fixed-width";
12
- @import "list";
13
- @import "bordered-pulled";
14
- @import "animated";
15
- @import "rotated-flipped";
16
- @import "stacked";
17
- @import "icons";
18
- @import "screen-reader";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/images/animated-overlay.gif DELETED
Binary file
css/images/arrow3.png DELETED
Binary file
css/images/minus.png DELETED
Binary file
css/images/plus.png DELETED
Binary file
css/images/ui-bg_diagonals-thick_18_b81900_40x40.png DELETED
Binary file
css/images/ui-bg_diagonals-thick_20_666666_40x40.png DELETED
Binary file
css/images/ui-bg_flat_10_000000_40x100.png DELETED
Binary file
css/images/ui-bg_glass_100_f6f6f6_1x400.png DELETED
Binary file
css/images/ui-bg_glass_100_fdf5ce_1x400.png DELETED
Binary file
css/images/ui-bg_glass_65_ffffff_1x400.png DELETED
Binary file
css/images/ui-bg_gloss-wave_35_f6a828_500x100.png DELETED
Binary file
css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png DELETED
Binary file
css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png DELETED
Binary file
css/images/ui-icons_222222_256x240.png DELETED
Binary file
css/images/ui-icons_228ef1_256x240.png DELETED
Binary file
css/images/ui-icons_ef8c08_256x240.png DELETED
Binary file
css/images/ui-icons_ffd27a_256x240.png DELETED
Binary file
css/images/ui-icons_ffffff_256x240.png DELETED
Binary file
css/jquery-ui-1.10.3.custom.css DELETED
@@ -1,1177 +0,0 @@
1
- /*! jQuery UI - v1.10.3 - 2013-10-19
2
- * http://jqueryui.com
3
- * Includes: jquery.ui.core.css, jquery.ui.resizable.css, jquery.ui.selectable.css, jquery.ui.accordion.css, jquery.ui.autocomplete.css, jquery.ui.button.css, jquery.ui.datepicker.css, jquery.ui.dialog.css, jquery.ui.menu.css, jquery.ui.progressbar.css, jquery.ui.slider.css, jquery.ui.spinner.css, jquery.ui.tabs.css, jquery.ui.tooltip.css, jquery.ui.theme.css
4
- * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Trebuchet%20MS%2CTahoma%2CVerdana%2CArial%2Csans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=f6a828&bgTextureHeader=gloss_wave&bgImgOpacityHeader=35&borderColorHeader=e78f08&fcHeader=ffffff&iconColorHeader=ffffff&bgColorContent=eeeeee&bgTextureContent=highlight_soft&bgImgOpacityContent=100&borderColorContent=dddddd&fcContent=333333&iconColorContent=222222&bgColorDefault=f6f6f6&bgTextureDefault=glass&bgImgOpacityDefault=100&borderColorDefault=cccccc&fcDefault=1c94c4&iconColorDefault=ef8c08&bgColorHover=fdf5ce&bgTextureHover=glass&bgImgOpacityHover=100&borderColorHover=fbcb09&fcHover=c77405&iconColorHover=ef8c08&bgColorActive=ffffff&bgTextureActive=glass&bgImgOpacityActive=65&borderColorActive=fbd850&fcActive=eb8f00&iconColorActive=ef8c08&bgColorHighlight=ffe45c&bgTextureHighlight=highlight_soft&bgImgOpacityHighlight=75&borderColorHighlight=fed22f&fcHighlight=363636&iconColorHighlight=228ef1&bgColorError=b81900&bgTextureError=diagonals_thick&bgImgOpacityError=18&borderColorError=cd0a0a&fcError=ffffff&iconColorError=ffd27a&bgColorOverlay=666666&bgTextureOverlay=diagonals_thick&bgImgOpacityOverlay=20&opacityOverlay=50&bgColorShadow=000000&bgTextureShadow=flat&bgImgOpacityShadow=10&opacityShadow=20&thicknessShadow=5px&offsetTopShadow=-5px&offsetLeftShadow=-5px&cornerRadiusShadow=5px
5
- * Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
6
-
7
- /* Layout helpers
8
- ----------------------------------*/
9
- .ui-helper-hidden {
10
- display: none;
11
- }
12
- .ui-helper-hidden-accessible {
13
- border: 0;
14
- clip: rect(0 0 0 0);
15
- height: 1px;
16
- margin: -1px;
17
- overflow: hidden;
18
- padding: 0;
19
- position: absolute;
20
- width: 1px;
21
- }
22
- .ui-helper-reset {
23
- margin: 0;
24
- padding: 0;
25
- border: 0;
26
- outline: 0;
27
- line-height: 1.3;
28
- text-decoration: none;
29
- font-size: 100%;
30
- list-style: none;
31
- }
32
- .ui-helper-clearfix:before,
33
- .ui-helper-clearfix:after {
34
- content: "";
35
- display: table;
36
- border-collapse: collapse;
37
- }
38
- .ui-helper-clearfix:after {
39
- clear: both;
40
- }
41
- .ui-helper-clearfix {
42
- min-height: 0; /* support: IE7 */
43
- }
44
- .ui-helper-zfix {
45
- width: 100%;
46
- height: 100%;
47
- top: 0;
48
- left: 0;
49
- position: absolute;
50
- opacity: 0;
51
- filter:Alpha(Opacity=0);
52
- }
53
-
54
- .ui-front {
55
- z-index: 100;
56
- }
57
-
58
-
59
- /* Interaction Cues
60
- ----------------------------------*/
61
- .ui-state-disabled {
62
- cursor: default !important;
63
- }
64
-
65
-
66
- /* Icons
67
- ----------------------------------*/
68
-
69
- /* states and images */
70
- .ui-icon {
71
- display: block;
72
- text-indent: -99999px;
73
- overflow: hidden;
74
- background-repeat: no-repeat;
75
- }
76
-
77
-
78
- /* Misc visuals
79
- ----------------------------------*/
80
-
81
- /* Overlays */
82
- .ui-widget-overlay {
83
- position: fixed;
84
- top: 0;
85
- left: 0;
86
- width: 100%;
87
- height: 100%;
88
- }
89
- .ui-resizable {
90
- position: relative;
91
- }
92
- .ui-resizable-handle {
93
- position: absolute;
94
- font-size: 0.1px;
95
- display: block;
96
- }
97
- .ui-resizable-disabled .ui-resizable-handle,
98
- .ui-resizable-autohide .ui-resizable-handle {
99
- display: none;
100
- }
101
- .ui-resizable-n {
102
- cursor: n-resize;
103
- height: 7px;
104
- width: 100%;
105
- top: -5px;
106
- left: 0;
107
- }
108
- .ui-resizable-s {
109
- cursor: s-resize;
110
- height: 7px;
111
- width: 100%;
112
- bottom: -5px;
113
- left: 0;
114
- }
115
- .ui-resizable-e {
116
- cursor: e-resize;
117
- width: 7px;
118
- right: -5px;
119
- top: 0;
120
- height: 100%;
121
- }
122
- .ui-resizable-w {
123
- cursor: w-resize;
124
- width: 7px;
125
- left: -5px;
126
- top: 0;
127
- height: 100%;
128
- }
129
- .ui-resizable-se {
130
- cursor: se-resize;
131
- width: 12px;
132
- height: 12px;
133
- right: 1px;
134
- bottom: 1px;
135
- }
136
- .ui-resizable-sw {
137
- cursor: sw-resize;
138
- width: 9px;
139
- height: 9px;
140
- left: -5px;
141
- bottom: -5px;
142
- }
143
- .ui-resizable-nw {
144
- cursor: nw-resize;
145
- width: 9px;
146
- height: 9px;
147
- left: -5px;
148
- top: -5px;
149
- }
150
- .ui-resizable-ne {
151
- cursor: ne-resize;
152
- width: 9px;
153
- height: 9px;
154
- right: -5px;
155
- top: -5px;
156
- }
157
- .ui-selectable-helper {
158
- position: absolute;
159
- z-index: 100;
160
- border: 1px dotted black;
161
- }
162
- .ui-accordion .ui-accordion-header {
163
- display: block;
164
- cursor: pointer;
165
- position: relative;
166
- margin-top: 2px;
167
- padding: .5em .5em .5em .7em;
168
- min-height: 0; /* support: IE7 */
169
- }
170
- .ui-accordion .ui-accordion-icons {
171
- padding-left: 2.2em;
172
- }
173
- .ui-accordion .ui-accordion-noicons {
174
- padding-left: .7em;
175
- }
176
- .ui-accordion .ui-accordion-icons .ui-accordion-icons {
177
- padding-left: 2.2em;
178
- }
179
- .ui-accordion .ui-accordion-header .ui-accordion-header-icon {
180
- position: absolute;
181
- left: .5em;
182
- top: 50%;
183
- margin-top: -8px;
184
- }
185
- .ui-accordion .ui-accordion-content {
186
- padding: 1em 2.2em;
187
- border-top: 0;
188
- overflow: auto;
189
- }
190
- .ui-autocomplete {
191
- position: absolute;
192
- top: 0;
193
- left: 0;
194
- cursor: default;
195
- }
196
- .ui-button {
197
- display: inline-block;
198
- position: relative;
199
- padding: 0;
200
- line-height: normal;
201
- margin-right: .1em;
202
- cursor: pointer;
203
- vertical-align: middle;
204
- text-align: center;
205
- overflow: visible; /* removes extra width in IE */
206
- }
207
- .ui-button,
208
- .ui-button:link,
209
- .ui-button:visited,
210
- .ui-button:hover,
211
- .ui-button:active {
212
- text-decoration: none;
213
- }
214
- /* to make room for the icon, a width needs to be set here */
215
- .ui-button-icon-only {
216
- width: 2.2em;
217
- }
218
- /* button elements seem to need a little more width */
219
- button.ui-button-icon-only {
220
- width: 2.4em;
221
- }
222
- .ui-button-icons-only {
223
- width: 3.4em;
224
- }
225
- button.ui-button-icons-only {
226
- width: 3.7em;
227
- }
228
-
229
- /* button text element */
230
- .ui-button .ui-button-text {
231
- display: block;
232
- line-height: normal;
233
- }
234
- .ui-button-text-only .ui-button-text {
235
- padding: .4em 1em;
236
- }
237
- .ui-button-icon-only .ui-button-text,
238
- .ui-button-icons-only .ui-button-text {
239
- padding: .4em;
240
- text-indent: -9999999px;
241
- }
242
- .ui-button-text-icon-primary .ui-button-text,
243
- .ui-button-text-icons .ui-button-text {
244
- padding: .4em 1em .4em 2.1em;
245
- }
246
- .ui-button-text-icon-secondary .ui-button-text,
247
- .ui-button-text-icons .ui-button-text {
248
- padding: .4em 2.1em .4em 1em;
249
- }
250
- .ui-button-text-icons .ui-button-text {
251
- padding-left: 2.1em;
252
- padding-right: 2.1em;
253
- }
254
- /* no icon support for input elements, provide padding by default */
255
- input.ui-button {
256
- padding: .4em 1em;
257
- }
258
-
259
- /* button icon element(s) */
260
- .ui-button-icon-only .ui-icon,
261
- .ui-button-text-icon-primary .ui-icon,
262
- .ui-button-text-icon-secondary .ui-icon,
263
- .ui-button-text-icons .ui-icon,
264
- .ui-button-icons-only .ui-icon {
265
- position: absolute;
266
- top: 50%;
267
- margin-top: -8px;
268
- }
269
- .ui-button-icon-only .ui-icon {
270
- left: 50%;
271
- margin-left: -8px;
272
- }
273
- .ui-button-text-icon-primary .ui-button-icon-primary,
274
- .ui-button-text-icons .ui-button-icon-primary,
275
- .ui-button-icons-only .ui-button-icon-primary {
276
- left: .5em;
277
- }
278
- .ui-button-text-icon-secondary .ui-button-icon-secondary,
279
- .ui-button-text-icons .ui-button-icon-secondary,
280
- .ui-button-icons-only .ui-button-icon-secondary {
281
- right: .5em;
282
- }
283
-
284
- /* button sets */
285
- .ui-buttonset {
286
- margin-right: 7px;
287
- }
288
- .ui-buttonset .ui-button {
289
- margin-left: 0;
290
- margin-right: -.3em;
291
- }
292
-
293
- /* workarounds */
294
- /* reset extra padding in Firefox, see h5bp.com/l */
295
- input.ui-button::-moz-focus-inner,
296
- button.ui-button::-moz-focus-inner {
297
- border: 0;
298
- padding: 0;
299
- }
300
- .ui-datepicker {
301
- width: 17em;
302
- padding: .2em .2em 0;
303
- display: none;
304
- }
305
- .ui-datepicker .ui-datepicker-header {
306
- position: relative;
307
- padding: .2em 0;
308
- }
309
- .ui-datepicker .ui-datepicker-prev,
310
- .ui-datepicker .ui-datepicker-next {
311
- position: absolute;
312
- top: 2px;
313
- width: 1.8em;
314
- height: 1.8em;
315
- }
316
- .ui-datepicker .ui-datepicker-prev-hover,
317
- .ui-datepicker .ui-datepicker-next-hover {
318
- top: 1px;
319
- }
320
- .ui-datepicker .ui-datepicker-prev {
321
- left: 2px;
322
- }
323
- .ui-datepicker .ui-datepicker-next {
324
- right: 2px;
325
- }
326
- .ui-datepicker .ui-datepicker-prev-hover {
327
- left: 1px;
328
- }
329
- .ui-datepicker .ui-datepicker-next-hover {
330
- right: 1px;
331
- }
332
- .ui-datepicker .ui-datepicker-prev span,
333
- .ui-datepicker .ui-datepicker-next span {
334
- display: block;
335
- position: absolute;
336
- left: 50%;
337
- margin-left: -8px;
338
- top: 50%;
339
- margin-top: -8px;
340
- }
341
- .ui-datepicker .ui-datepicker-title {
342
- margin: 0 2.3em;
343
- line-height: 1.8em;
344
- text-align: center;
345
- }
346
- .ui-datepicker .ui-datepicker-title select {
347
- font-size: 1em;
348
- margin: 1px 0;
349
- }
350
- .ui-datepicker select.ui-datepicker-month-year {
351
- width: 100%;
352
- }
353
- .ui-datepicker select.ui-datepicker-month,
354
- .ui-datepicker select.ui-datepicker-year {
355
- width: 49%;
356
- }
357
- .ui-datepicker table {
358
- width: 100%;
359
- font-size: .9em;
360
- border-collapse: collapse;
361
- margin: 0 0 .4em;
362
- }
363
- .ui-datepicker th {
364
- padding: .7em .3em;
365
- text-align: center;
366
- font-weight: bold;
367
- border: 0;
368
- }
369
- .ui-datepicker td {
370
- border: 0;
371
- padding: 1px;
372
- }
373
- .ui-datepicker td span,
374
- .ui-datepicker td a {
375
- display: block;
376
- padding: .2em;
377
- text-align: right;
378
- text-decoration: none;
379
- }
380
- .ui-datepicker .ui-datepicker-buttonpane {
381
- background-image: none;
382
- margin: .7em 0 0 0;
383
- padding: 0 .2em;
384
- border-left: 0;
385
- border-right: 0;
386
- border-bottom: 0;
387
- }
388
- .ui-datepicker .ui-datepicker-buttonpane button {
389
- float: right;
390
- margin: .5em .2em .4em;
391
- cursor: pointer;
392
- padding: .2em .6em .3em .6em;
393
- width: auto;
394
- overflow: visible;
395
- }
396
- .ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current {
397
- float: left;
398
- }
399
-
400
- /* with multiple calendars */
401
- .ui-datepicker.ui-datepicker-multi {
402
- width: auto;
403
- }
404
- .ui-datepicker-multi .ui-datepicker-group {
405
- float: left;
406
- }
407
- .ui-datepicker-multi .ui-datepicker-group table {
408
- width: 95%;
409
- margin: 0 auto .4em;
410
- }
411
- .ui-datepicker-multi-2 .ui-datepicker-group {
412
- width: 50%;
413
- }
414
- .ui-datepicker-multi-3 .ui-datepicker-group {
415
- width: 33.3%;
416
- }
417
- .ui-datepicker-multi-4 .ui-datepicker-group {
418
- width: 25%;
419
- }
420
- .ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,
421
- .ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header {
422
- border-left-width: 0;
423
- }
424
- .ui-datepicker-multi .ui-datepicker-buttonpane {
425
- clear: left;
426
- }
427
- .ui-datepicker-row-break {
428
- clear: both;
429
- width: 100%;
430
- font-size: 0;
431
- }
432
-
433
- /* RTL support */
434
- .ui-datepicker-rtl {
435
- direction: rtl;
436
- }
437
- .ui-datepicker-rtl .ui-datepicker-prev {
438
- right: 2px;
439
- left: auto;
440
- }
441
- .ui-datepicker-rtl .ui-datepicker-next {
442
- left: 2px;
443
- right: auto;
444
- }
445
- .ui-datepicker-rtl .ui-datepicker-prev:hover {
446
- right: 1px;
447
- left: auto;
448
- }
449
- .ui-datepicker-rtl .ui-datepicker-next:hover {
450
- left: 1px;
451
- right: auto;
452
- }
453
- .ui-datepicker-rtl .ui-datepicker-buttonpane {
454
- clear: right;
455
- }
456
- .ui-datepicker-rtl .ui-datepicker-buttonpane button {
457
- float: left;
458
- }
459
- .ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,
460
- .ui-datepicker-rtl .ui-datepicker-group {
461
- float: right;
462
- }
463
- .ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,
464
- .ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header {
465
- border-right-width: 0;
466
- border-left-width: 1px;
467
- }
468
- .ui-dialog {
469
- position: absolute;
470
- top: 0;
471
- left: 0;
472
- padding: .2em;
473
- outline: 0;
474
- }
475
- .ui-dialog .ui-dialog-titlebar {
476
- padding: .4em 1em;
477
- position: relative;
478
- }
479
- .ui-dialog .ui-dialog-title {
480
- float: left;
481
- margin: .1em 0;
482
- white-space: nowrap;
483
- width: 90%;
484
- overflow: hidden;
485
- text-overflow: ellipsis;
486
- }
487
- .ui-dialog .ui-dialog-titlebar-close {
488
- position: absolute;
489
- right: .3em;
490
- top: 50%;
491
- width: 21px;
492
- margin: -10px 0 0 0;
493
- padding: 1px;
494
- height: 20px;
495
- }
496
- .ui-dialog .ui-dialog-content {
497
- position: relative;
498
- border: 0;
499
- padding: .5em 1em;
500
- background: none;
501
- overflow: auto;
502
- }
503
- .ui-dialog .ui-dialog-buttonpane {
504
- text-align: left;
505
- border-width: 1px 0 0 0;
506
- background-image: none;
507
- margin-top: .5em;
508
- padding: .3em 1em .5em .4em;
509
- }
510
- .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
511
- float: right;
512
- }
513
- .ui-dialog .ui-dialog-buttonpane button {
514
- margin: .5em .4em .5em 0;
515
- cursor: pointer;
516
- }
517
- .ui-dialog .ui-resizable-se {
518
- width: 12px;
519
- height: 12px;
520
- right: -5px;
521
- bottom: -5px;
522
- background-position: 16px 16px;
523
- }
524
- .ui-draggable .ui-dialog-titlebar {
525
- cursor: move;
526
- }
527
- .ui-menu {
528
- list-style: none;
529
- padding: 2px;
530
- margin: 0;
531
- display: block;
532
- outline: none;
533
- }
534
- .ui-menu .ui-menu {
535
- margin-top: -3px;
536
- position: absolute;
537
- }
538
- .ui-menu .ui-menu-item {
539
- margin: 0;
540
- padding: 0;
541
- width: 100%;
542
- /* support: IE10, see #8844 */
543
- list-style-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);
544
- }
545
- .ui-menu .ui-menu-divider {
546
- margin: 5px -2px 5px -2px;
547
- height: 0;
548
- font-size: 0;
549
- line-height: 0;
550
- border-width: 1px 0 0 0;
551
- }
552
- .ui-menu .ui-menu-item a {
553
- text-decoration: none;
554
- display: block;
555
- padding: 2px .4em;
556
- line-height: 1.5;
557
- min-height: 0; /* support: IE7 */
558
- font-weight: normal;
559
- }
560
- .ui-menu .ui-menu-item a.ui-state-focus,
561
- .ui-menu .ui-menu-item a.ui-state-active {
562
- font-weight: normal;
563
- margin: -1px;
564
- }
565
-
566
- .ui-menu .ui-state-disabled {
567
- font-weight: normal;
568
- margin: .4em 0 .2em;
569
- line-height: 1.5;
570
- }
571
- .ui-menu .ui-state-disabled a {
572
- cursor: default;
573
- }
574
-
575
- /* icon support */
576
- .ui-menu-icons {
577
- position: relative;
578
- }
579
- .ui-menu-icons .ui-menu-item a {
580
- position: relative;
581
- padding-left: 2em;
582
- }
583
-
584
- /* left-aligned */
585
- .ui-menu .ui-icon {
586
- position: absolute;
587
- top: .2em;
588
- left: .2em;
589
- }
590
-
591
- /* right-aligned */
592
- .ui-menu .ui-menu-icon {
593
- position: static;
594
- float: right;
595
- }
596
- .ui-progressbar {
597
- height: 2em;
598
- text-align: left;
599
- overflow: hidden;
600
- }
601
- .ui-progressbar .ui-progressbar-value {
602
- margin: -1px;
603
- height: 100%;
604
- }
605
- .ui-progressbar .ui-progressbar-overlay {
606
- background: url("images/animated-overlay.gif");
607
- height: 100%;
608
- filter: alpha(opacity=25);
609
- opacity: 0.25;
610
- }
611
- .ui-progressbar-indeterminate .ui-progressbar-value {
612
- background-image: none;
613
- }
614
- .ui-slider {
615
- position: relative;
616
- text-align: left;
617
- }
618
- .ui-slider .ui-slider-handle {
619
- position: absolute;
620
- z-index: 2;
621
- width: 1.2em;
622
- height: 1.2em;
623
- cursor: default;
624
- }
625
- .ui-slider .ui-slider-range {
626
- position: absolute;
627
- z-index: 1;
628
- font-size: .7em;
629
- display: block;
630
- border: 0;
631
- background-position: 0 0;
632
- }
633
-
634
- /* For IE8 - See #6727 */
635
- .ui-slider.ui-state-disabled .ui-slider-handle,
636
- .ui-slider.ui-state-disabled .ui-slider-range {
637
- filter: inherit;
638
- }
639
-
640
- .ui-slider-horizontal {
641
- height: .8em;
642
- }
643
- .ui-slider-horizontal .ui-slider-handle {
644
- top: -.3em;
645
- margin-left: -.6em;
646
- }
647
- .ui-slider-horizontal .ui-slider-range {
648
- top: 0;
649
- height: 100%;
650
- }
651
- .ui-slider-horizontal .ui-slider-range-min {
652
- left: 0;
653
- }
654
- .ui-slider-horizontal .ui-slider-range-max {
655
- right: 0;
656
- }
657
-
658
- .ui-slider-vertical {
659
- width: .8em;
660
- height: 100px;
661
- }
662
- .ui-slider-vertical .ui-slider-handle {
663
- left: -.3em;
664
- margin-left: 0;
665
- margin-bottom: -.6em;
666
- }
667
- .ui-slider-vertical .ui-slider-range {
668
- left: 0;
669
- width: 100%;
670
- }
671
- .ui-slider-vertical .ui-slider-range-min {
672
- bottom: 0;
673
- }
674
- .ui-slider-vertical .ui-slider-range-max {
675
- top: 0;
676
- }
677
- .ui-spinner {
678
- position: relative;
679
- display: inline-block;
680
- overflow: hidden;
681
- padding: 0;
682
- vertical-align: middle;
683
- }
684
- .ui-spinner-input {
685
- border: none;
686
- background: none;
687
- color: inherit;
688
- padding: 0;
689
- margin: .2em 0;
690
- vertical-align: middle;
691
- margin-left: .4em;
692
- margin-right: 22px;
693
- }
694
- .ui-spinner-button {
695
- width: 16px;
696
- height: 50%;
697
- font-size: .5em;
698
- padding: 0;
699
- margin: 0;
700
- text-align: center;
701
- position: absolute;
702
- cursor: default;
703
- display: block;
704
- overflow: hidden;
705
- right: 0;
706
- }
707
- /* more specificity required here to overide default borders */
708
- .ui-spinner a.ui-spinner-button {
709
- border-top: none;
710
- border-bottom: none;
711
- border-right: none;
712
- }
713
- /* vertical centre icon */
714
- .ui-spinner .ui-icon {
715
- position: absolute;
716
- margin-top: -8px;
717
- top: 50%;
718
- left: 0;
719
- }
720
- .ui-spinner-up {
721
- top: 0;
722
- }
723
- .ui-spinner-down {
724
- bottom: 0;
725
- }
726
-
727
- /* TR overrides */
728
- .ui-spinner .ui-icon-triangle-1-s {
729
- /* need to fix icons sprite */
730
- background-position: -65px -16px;
731
- }
732
- .ui-tabs {
733
- position: relative;/* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
734
- padding: .2em;
735
- }
736
- .ui-tabs .ui-tabs-nav {
737
- margin: 0;
738
- padding: .2em .2em 0;
739
- }
740
- .ui-tabs .ui-tabs-nav li {
741
- list-style: none;
742
- float: left;
743
- position: relative;
744
- top: 0;
745
- margin: 1px .2em 0 0;
746
- border-bottom-width: 0;
747
- padding: 0;
748
- white-space: nowrap;
749
- }
750
- .ui-tabs .ui-tabs-nav li a {
751
- float: left;
752
- padding: .5em 1em;
753
- text-decoration: none;
754
- }
755
- .ui-tabs .ui-tabs-nav li.ui-tabs-active {
756
- margin-bottom: -1px;
757
- padding-bottom: 1px;
758
- }
759
- .ui-tabs .ui-tabs-nav li.ui-tabs-active a,
760
- .ui-tabs .ui-tabs-nav li.ui-state-disabled a,
761
- .ui-tabs .ui-tabs-nav li.ui-tabs-loading a {
762
- cursor: text;
763
- }
764
- .ui-tabs .ui-tabs-nav li a, /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
765
- .ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a {
766
- cursor: pointer;
767
- }
768
- .ui-tabs .ui-tabs-panel {
769
- display: block;
770
- border-width: 0;
771
- padding: 1em 1.4em;
772
- background: none;
773
- }
774
- .ui-tooltip {
775
- padding: 8px;
776
- position: absolute;
777
- z-index: 9999;
778
- max-width: 300px;
779
- -webkit-box-shadow: 0 0 5px #aaa;
780
- box-shadow: 0 0 5px #aaa;
781
- }
782
- body .ui-tooltip {
783
- border-width: 2px;
784
- }
785
-
786
- /* Component containers
787
- ----------------------------------*/
788
- .ui-widget {
789
- font-family: Trebuchet MS,Tahoma,Verdana,Arial,sans-serif;
790
- font-size: 1.1em;
791
- }
792
- .ui-widget .ui-widget {
793
- font-size: 1em;
794
- }
795
- .ui-widget input,
796
- .ui-widget select,
797
- .ui-widget textarea,
798
- .ui-widget button {
799
- font-family: Trebuchet MS,Tahoma,Verdana,Arial,sans-serif;
800
- font-size: 1em;
801
- }
802
- .ui-widget-content {
803
- border: 1px solid #dddddd;
804
- background: #eeeeee url(images/ui-bg_highlight-soft_100_eeeeee_1x100.png) 50% top repeat-x;
805
- color: #333333;
806
- }
807
- .ui-widget-content a {
808
- color: #333333;
809
- }
810
- .ui-widget-header {
811
- border: 1px solid #e78f08;
812
- background: #f6a828 url(images/ui-bg_gloss-wave_35_f6a828_500x100.png) 50% 50% repeat-x;
813
- color: #ffffff;
814
- font-weight: bold;
815
- }
816
- .ui-widget-header a {
817
- color: #ffffff;
818
- }
819
-
820
- /* Interaction states
821
- ----------------------------------*/
822
- .ui-state-default,
823
- .ui-widget-content .ui-state-default,
824
- .ui-widget-header .ui-state-default {
825
- border: 1px solid #cccccc;
826
- background: #f6f6f6 url(images/ui-bg_glass_100_f6f6f6_1x400.png) 50% 50% repeat-x;
827
- font-weight: bold;
828
- color: #1c94c4;
829
- }
830
- .ui-state-default a,
831
- .ui-state-default a:link,
832
- .ui-state-default a:visited {
833
- color: #1c94c4;
834
- text-decoration: none;
835
- }
836
- .ui-state-hover,
837
- .ui-widget-content .ui-state-hover,
838
- .ui-widget-header .ui-state-hover,
839
- .ui-state-focus,
840
- .ui-widget-content .ui-state-focus,
841
- .ui-widget-header .ui-state-focus {
842
- border: 1px solid #fbcb09;
843
- background: #fdf5ce url(images/ui-bg_glass_100_fdf5ce_1x400.png) 50% 50% repeat-x;
844
- font-weight: bold;
845
- color: #c77405;
846
- }
847
- .ui-state-hover a,
848
- .ui-state-hover a:hover,
849
- .ui-state-hover a:link,
850
- .ui-state-hover a:visited {
851
- color: #c77405;
852
- text-decoration: none;
853
- }
854
- .ui-state-active,
855
- .ui-widget-content .ui-state-active,
856
- .ui-widget-header .ui-state-active {
857
- border: 1px solid #fbd850;
858
- background: #ffffff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x;
859
- font-weight: bold;
860
- color: #eb8f00;
861
- }
862
- .ui-state-active a,
863
- .ui-state-active a:link,
864
- .ui-state-active a:visited {
865
- color: #eb8f00;
866
- text-decoration: none;
867
- }
868
-
869
- /* Interaction Cues
870
- ----------------------------------*/
871
- .ui-state-highlight,
872
- .ui-widget-content .ui-state-highlight,
873
- .ui-widget-header .ui-state-highlight {
874
- border: 1px solid #fed22f;
875
- background: #ffe45c url(images/ui-bg_highlight-soft_75_ffe45c_1x100.png) 50% top repeat-x;
876
- color: #363636;
877
- }
878
- .ui-state-highlight a,
879
- .ui-widget-content .ui-state-highlight a,
880
- .ui-widget-header .ui-state-highlight a {
881
- color: #363636;
882
- }
883
- .ui-state-error,
884
- .ui-widget-content .ui-state-error,
885
- .ui-widget-header .ui-state-error {
886
- border: 1px solid #cd0a0a;
887
- background: #b81900 url(images/ui-bg_diagonals-thick_18_b81900_40x40.png) 50% 50% repeat;
888
- color: #ffffff;
889
- }
890
- .ui-state-error a,
891
- .ui-widget-content .ui-state-error a,
892
- .ui-widget-header .ui-state-error a {
893
- color: #ffffff;
894
- }
895
- .ui-state-error-text,
896
- .ui-widget-content .ui-state-error-text,
897
- .ui-widget-header .ui-state-error-text {
898
- color: #ffffff;
899
- }
900
- .ui-priority-primary,
901
- .ui-widget-content .ui-priority-primary,
902
- .ui-widget-header .ui-priority-primary {
903
- font-weight: bold;
904
- }
905
- .ui-priority-secondary,
906
- .ui-widget-content .ui-priority-secondary,
907
- .ui-widget-header .ui-priority-secondary {
908
- opacity: .7;
909
- filter:Alpha(Opacity=70);
910
- font-weight: normal;
911
- }
912
- .ui-state-disabled,
913
- .ui-widget-content .ui-state-disabled,
914
- .ui-widget-header .ui-state-disabled {
915
- opacity: .35;
916
- filter:Alpha(Opacity=35);
917
- background-image: none;
918
- }
919
- .ui-state-disabled .ui-icon {
920
- filter:Alpha(Opacity=35); /* For IE8 - See #6059 */
921
- }
922
-
923
- /* Icons
924
- ----------------------------------*/
925
-
926
- /* states and images */
927
- .ui-icon {
928
- width: 16px;
929
- height: 16px;
930
- }
931
- .ui-icon,
932
- .ui-widget-content .ui-icon {
933
- background-image: url(images/ui-icons_222222_256x240.png);
934
- }
935
- .ui-widget-header .ui-icon {
936
- background-image: url(images/ui-icons_ffffff_256x240.png);
937
- }
938
- .ui-state-default .ui-icon {
939
- background-image: url(images/ui-icons_ef8c08_256x240.png);
940
- }
941
- .ui-state-hover .ui-icon,
942
- .ui-state-focus .ui-icon {
943
- background-image: url(images/ui-icons_ef8c08_256x240.png);
944
- }
945
- .ui-state-active .ui-icon {
946
- background-image: url(images/ui-icons_ef8c08_256x240.png);
947
- }
948
- .ui-state-highlight .ui-icon {
949
- background-image: url(images/ui-icons_228ef1_256x240.png);
950
- }
951
- .ui-state-error .ui-icon,
952
- .ui-state-error-text .ui-icon {
953
- background-image: url(images/ui-icons_ffd27a_256x240.png);
954
- }
955
-
956
- /* positioning */
957
- .ui-icon-blank { background-position: 16px 16px; }
958
- .ui-icon-carat-1-n { background-position: 0 0; }
959
- .ui-icon-carat-1-ne { background-position: -16px 0; }
960
- .ui-icon-carat-1-e { background-position: -32px 0; }
961
- .ui-icon-carat-1-se { background-position: -48px 0; }
962
- .ui-icon-carat-1-s { background-position: -64px 0; }
963
- .ui-icon-carat-1-sw { background-position: -80px 0; }
964
- .ui-icon-carat-1-w { background-position: -96px 0; }
965
- .ui-icon-carat-1-nw { background-position: -112px 0; }
966
- .ui-icon-carat-2-n-s { background-position: -128px 0; }
967
- .ui-icon-carat-2-e-w { background-position: -144px 0; }
968
- .ui-icon-triangle-1-n { background-position: 0 -16px; }
969
- .ui-icon-triangle-1-ne { background-position: -16px -16px; }
970
- .ui-icon-triangle-1-e { background-position: -32px -16px; }
971
- .ui-icon-triangle-1-se { background-position: -48px -16px; }
972
- .ui-icon-triangle-1-s { background-position: -64px -16px; }
973
- .ui-icon-triangle-1-sw { background-position: -80px -16px; }
974
- .ui-icon-triangle-1-w { background-position: -96px -16px; }
975
- .ui-icon-triangle-1-nw { background-position: -112px -16px; }
976
- .ui-icon-triangle-2-n-s { background-position: -128px -16px; }
977
- .ui-icon-triangle-2-e-w { background-position: -144px -16px; }
978
- .ui-icon-arrow-1-n { background-position: 0 -32px; }
979
- .ui-icon-arrow-1-ne { background-position: -16px -32px; }
980
- .ui-icon-arrow-1-e { background-position: -32px -32px; }
981
- .ui-icon-arrow-1-se { background-position: -48px -32px; }
982
- .ui-icon-arrow-1-s { background-position: -64px -32px; }
983
- .ui-icon-arrow-1-sw { background-position: -80px -32px; }
984
- .ui-icon-arrow-1-w { background-position: -96px -32px; }
985
- .ui-icon-arrow-1-nw { background-position: -112px -32px; }
986
- .ui-icon-arrow-2-n-s { background-position: -128px -32px; }
987
- .ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
988
- .ui-icon-arrow-2-e-w { background-position: -160px -32px; }
989
- .ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
990
- .ui-icon-arrowstop-1-n { background-position: -192px -32px; }
991
- .ui-icon-arrowstop-1-e { background-position: -208px -32px; }
992
- .ui-icon-arrowstop-1-s { background-position: -224px -32px; }
993
- .ui-icon-arrowstop-1-w { background-position: -240px -32px; }
994
- .ui-icon-arrowthick-1-n { background-position: 0 -48px; }
995
- .ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
996
- .ui-icon-arrowthick-1-e { background-position: -32px -48px; }
997
- .ui-icon-arrowthick-1-se { background-position: -48px -48px; }
998
- .ui-icon-arrowthick-1-s { background-position: -64px -48px; }
999
- .ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
1000
- .ui-icon-arrowthick-1-w { background-position: -96px -48px; }
1001
- .ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
1002
- .ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
1003
- .ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
1004
- .ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
1005
- .ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
1006
- .ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
1007
- .ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
1008
- .ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
1009
- .ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
1010
- .ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
1011
- .ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
1012
- .ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
1013
- .ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
1014
- .ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
1015
- .ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
1016
- .ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
1017
- .ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
1018
- .ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
1019
- .ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
1020
- .ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
1021
- .ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
1022
- .ui-icon-arrow-4 { background-position: 0 -80px; }
1023
- .ui-icon-arrow-4-diag { background-position: -16px -80px; }
1024
- .ui-icon-extlink { background-position: -32px -80px; }
1025
- .ui-icon-newwin { background-position: -48px -80px; }
1026
- .ui-icon-refresh { background-position: -64px -80px; }
1027
- .ui-icon-shuffle { background-position: -80px -80px; }
1028
- .ui-icon-transfer-e-w { background-position: -96px -80px; }
1029
- .ui-icon-transferthick-e-w { background-position: -112px -80px; }
1030
- .ui-icon-folder-collapsed { background-position: 0 -96px; }
1031
- .ui-icon-folder-open { background-position: -16px -96px; }
1032
- .ui-icon-document { background-position: -32px -96px; }
1033
- .ui-icon-document-b { background-position: -48px -96px; }
1034
- .ui-icon-note { background-position: -64px -96px; }
1035
- .ui-icon-mail-closed { background-position: -80px -96px; }
1036
- .ui-icon-mail-open { background-position: -96px -96px; }
1037
- .ui-icon-suitcase { background-position: -112px -96px; }
1038
- .ui-icon-comment { background-position: -128px -96px; }
1039
- .ui-icon-person { background-position: -144px -96px; }
1040
- .ui-icon-print { background-position: -160px -96px; }
1041
- .ui-icon-trash { background-position: -176px -96px; }
1042
- .ui-icon-locked { background-position: -192px -96px; }
1043
- .ui-icon-unlocked { background-position: -208px -96px; }
1044
- .ui-icon-bookmark { background-position: -224px -96px; }
1045
- .ui-icon-tag { background-position: -240px -96px; }
1046
- .ui-icon-home { background-position: 0 -112px; }
1047
- .ui-icon-flag { background-position: -16px -112px; }
1048
- .ui-icon-calendar { background-position: -32px -112px; }
1049
- .ui-icon-cart { background-position: -48px -112px; }
1050
- .ui-icon-pencil { background-position: -64px -112px; }
1051
- .ui-icon-clock { background-position: -80px -112px; }
1052
- .ui-icon-disk { background-position: -96px -112px; }
1053
- .ui-icon-calculator { background-position: -112px -112px; }
1054
- .ui-icon-zoomin { background-position: -128px -112px; }
1055
- .ui-icon-zoomout { background-position: -144px -112px; }
1056
- .ui-icon-search { background-position: -160px -112px; }
1057
- .ui-icon-wrench { background-position: -176px -112px; }
1058
- .ui-icon-gear { background-position: -192px -112px; }
1059
- .ui-icon-heart { background-position: -208px -112px; }
1060
- .ui-icon-star { background-position: -224px -112px; }
1061
- .ui-icon-link { background-position: -240px -112px; }
1062
- .ui-icon-cancel { background-position: 0 -128px; }
1063
- .ui-icon-plus { background-position: -16px -128px; }
1064
- .ui-icon-plusthick { background-position: -32px -128px; }
1065
- .ui-icon-minus { background-position: -48px -128px; }
1066
- .ui-icon-minusthick { background-position: -64px -128px; }
1067
- .ui-icon-close { background-position: -80px -128px; }
1068
- .ui-icon-closethick { background-position: -96px -128px; }
1069
- .ui-icon-key { background-position: -112px -128px; }
1070
- .ui-icon-lightbulb { background-position: -128px -128px; }
1071
- .ui-icon-scissors { background-position: -144px -128px; }
1072
- .ui-icon-clipboard { background-position: -160px -128px; }
1073
- .ui-icon-copy { background-position: -176px -128px; }
1074
- .ui-icon-contact { background-position: -192px -128px; }
1075
- .ui-icon-image { background-position: -208px -128px; }
1076
- .ui-icon-video { background-position: -224px -128px; }
1077
- .ui-icon-script { background-position: -240px -128px; }
1078
- .ui-icon-alert { background-position: 0 -144px; }
1079
- .ui-icon-info { background-position: -16px -144px; }
1080
- .ui-icon-notice { background-position: -32px -144px; }
1081
- .ui-icon-help { background-position: -48px -144px; }
1082
- .ui-icon-check { background-position: -64px -144px; }
1083
- .ui-icon-bullet { background-position: -80px -144px; }
1084
- .ui-icon-radio-on { background-position: -96px -144px; }
1085
- .ui-icon-radio-off { background-position: -112px -144px; }
1086
- .ui-icon-pin-w { background-position: -128px -144px; }
1087
- .ui-icon-pin-s { background-position: -144px -144px; }
1088
- .ui-icon-play { background-position: 0 -160px; }
1089
- .ui-icon-pause { background-position: -16px -160px; }
1090
- .ui-icon-seek-next { background-position: -32px -160px; }
1091
- .ui-icon-seek-prev { background-position: -48px -160px; }
1092
- .ui-icon-seek-end { background-position: -64px -160px; }
1093
- .ui-icon-seek-start { background-position: -80px -160px; }
1094
- /* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
1095
- .ui-icon-seek-first { background-position: -80px -160px; }
1096
- .ui-icon-stop { background-position: -96px -160px; }
1097
- .ui-icon-eject { background-position: -112px -160px; }
1098
- .ui-icon-volume-off { background-position: -128px -160px; }
1099
- .ui-icon-volume-on { background-position: -144px -160px; }
1100
- .ui-icon-power { background-position: 0 -176px; }
1101
- .ui-icon-signal-diag { background-position: -16px -176px; }
1102
- .ui-icon-signal { background-position: -32px -176px; }
1103
- .ui-icon-battery-0 { background-position: -48px -176px; }
1104
- .ui-icon-battery-1 { background-position: -64px -176px; }
1105
- .ui-icon-battery-2 { background-position: -80px -176px; }
1106
- .ui-icon-battery-3 { background-position: -96px -176px; }
1107
- .ui-icon-circle-plus { background-position: 0 -192px; }
1108
- .ui-icon-circle-minus { background-position: -16px -192px; }
1109
- .ui-icon-circle-close { background-position: -32px -192px; }
1110
- .ui-icon-circle-triangle-e { background-position: -48px -192px; }
1111
- .ui-icon-circle-triangle-s { background-position: -64px -192px; }
1112
- .ui-icon-circle-triangle-w { background-position: -80px -192px; }
1113
- .ui-icon-circle-triangle-n { background-position: -96px -192px; }
1114
- .ui-icon-circle-arrow-e { background-position: -112px -192px; }
1115
- .ui-icon-circle-arrow-s { background-position: -128px -192px; }
1116
- .ui-icon-circle-arrow-w { background-position: -144px -192px; }
1117
- .ui-icon-circle-arrow-n { background-position: -160px -192px; }
1118
- .ui-icon-circle-zoomin { background-position: -176px -192px; }
1119
- .ui-icon-circle-zoomout { background-position: -192px -192px; }
1120
- .ui-icon-circle-check { background-position: -208px -192px; }
1121
- .ui-icon-circlesmall-plus { background-position: 0 -208px; }
1122
- .ui-icon-circlesmall-minus { background-position: -16px -208px; }
1123
- .ui-icon-circlesmall-close { background-position: -32px -208px; }
1124
- .ui-icon-squaresmall-plus { background-position: -48px -208px; }
1125
- .ui-icon-squaresmall-minus { background-position: -64px -208px; }
1126
- .ui-icon-squaresmall-close { background-position: -80px -208px; }
1127
- .ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
1128
- .ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
1129
- .ui-icon-grip-solid-vertical { background-position: -32px -224px; }
1130
- .ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
1131
- .ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
1132
- .ui-icon-grip-diagonal-se { background-position: -80px -224px; }
1133
-
1134
-
1135
- /* Misc visuals
1136
- ----------------------------------*/
1137
-
1138
- /* Corner radius */
1139
- .ui-corner-all,
1140
- .ui-corner-top,
1141
- .ui-corner-left,
1142
- .ui-corner-tl {
1143
- border-top-left-radius: 4px;
1144
- }
1145
- .ui-corner-all,
1146
- .ui-corner-top,
1147
- .ui-corner-right,
1148
- .ui-corner-tr {
1149
- border-top-right-radius: 4px;
1150
- }
1151
- .ui-corner-all,
1152
- .ui-corner-bottom,
1153
- .ui-corner-left,
1154
- .ui-corner-bl {
1155
- border-bottom-left-radius: 4px;
1156
- }
1157
- .ui-corner-all,
1158
- .ui-corner-bottom,
1159
- .ui-corner-right,
1160
- .ui-corner-br {
1161
- border-bottom-right-radius: 4px;
1162
- }
1163
-
1164
- /* Overlays */
1165
- .ui-widget-overlay {
1166
- background: #666666 url(images/ui-bg_diagonals-thick_20_666666_40x40.png) 50% 50% repeat;
1167
- opacity: .5;
1168
- filter: Alpha(Opacity=50);
1169
- }
1170
- .ui-widget-shadow {
1171
- margin: -5px 0 0 -5px;
1172
- padding: 5px;
1173
- background: #000000 url(images/ui-bg_flat_10_000000_40x100.png) 50% 50% repeat-x;
1174
- opacity: .2;
1175
- filter: Alpha(Opacity=20);
1176
- border-radius: 5px;
1177
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/jquery.mCustomScrollbar.min.css ADDED
@@ -0,0 +1 @@
 
1
+ .mCSB_container{width:auto;margin-right:15px;overflow:hidden}.mCSB_container.mCS_no_scrollbar{margin-right:0}.mCS_destroyed>.mCustomScrollBox>.mCSB_container.mCS_no_scrollbar,.mCS_disabled>.mCustomScrollBox>.mCSB_container.mCS_no_scrollbar{margin-right:15px}.mCustomScrollBox>.mCSB_scrollTools{width:16px;height:100%;top:0;right:0;opacity:.75;filter:"alpha(opacity=75)";-ms-filter:"alpha(opacity=75)"}.mCSB_scrollTools .mCSB_draggerContainer{position:absolute;top:0;left:0;bottom:0;right:0;height:auto}.mCSB_scrollTools a+.mCSB_draggerContainer{margin:20px 0}.mCSB_scrollTools .mCSB_draggerRail{width:2px;height:100%;margin:0 auto;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.mCSB_scrollTools .mCSB_dragger{cursor:pointer;width:100%;height:30px}.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:4px;height:100%;margin:0 auto;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;text-align:center}.mCSB_scrollTools .mCSB_buttonDown,.mCSB_scrollTools .mCSB_buttonUp{display:block;position:relative;height:20px;overflow:hidden;margin:0 auto;cursor:pointer}.mCSB_scrollTools .mCSB_buttonDown{top:100%;margin-top:-40px}.mCSB_horizontal>.mCSB_container{height:auto;margin-right:0;margin-bottom:30px;overflow:hidden}.mCSB_horizontal>.mCSB_container.mCS_no_scrollbar{margin-bottom:0}.mCS_destroyed>.mCSB_horizontal>.mCSB_container.mCS_no_scrollbar,.mCS_disabled>.mCSB_horizontal>.mCSB_container.mCS_no_scrollbar{margin-right:0;margin-bottom:30px}.mCSB_horizontal.mCustomScrollBox>.mCSB_scrollTools{width:100%;height:16px;top:auto;right:auto;bottom:0;left:0;overflow:hidden}.mCSB_horizontal>.mCSB_scrollTools a+.mCSB_draggerContainer{margin:0 20px}.mCSB_horizontal>.mCSB_scrollTools .mCSB_draggerRail{width:100%;height:2px;margin:7px 0;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger{width:30px;height:100%}.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:100%;height:4px;margin:6px auto;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.mCSB_horizontal>.mCSB_scrollTools .mCSB_buttonLeft,.mCSB_horizontal>.mCSB_scrollTools .mCSB_buttonRight{display:block;position:relative;width:20px;height:100%;overflow:hidden;margin:0 auto;cursor:pointer;float:left}.mCSB_horizontal>.mCSB_scrollTools .mCSB_buttonRight{margin-left:-40px;float:right}.mCustomScrollBox{-ms-touch-action:none}.mCustomScrollBox:hover>.mCSB_scrollTools{opacity:1;filter:"alpha(opacity=100)";-ms-filter:"alpha(opacity=100)"}.mCSB_scrollTools .mCSB_draggerRail{background:#000;background:rgba(0,0,0,.4);filter:"alpha(opacity=40)";-ms-filter:"alpha(opacity=40)"}.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{background:#fff;background:rgba(255,255,255,.75);filter:"alpha(opacity=75)";-ms-filter:"alpha(opacity=75)"}.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background:rgba(255,255,255,.85);filter:"alpha(opacity=85)";-ms-filter:"alpha(opacity=85)"}.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background:rgba(255,255,255,.9);filter:"alpha(opacity=90)";-ms-filter:"alpha(opacity=90)"}.mCSB_scrollTools .mCSB_buttonDown,.mCSB_scrollTools .mCSB_buttonLeft,.mCSB_scrollTools .mCSB_buttonRight,.mCSB_scrollTools .mCSB_buttonUp{background-repeat:no-repeat;opacity:.4;filter:"alpha(opacity=40)";-ms-filter:"alpha(opacity=40)"}.mCSB_scrollTools .mCSB_buttonUp{background-position:0 0}.mCSB_scrollTools .mCSB_buttonDown{background-position:0 -20px}.mCSB_scrollTools .mCSB_buttonLeft{background-position:0 -40px}.mCSB_scrollTools .mCSB_buttonRight{background-position:0 -56px}.mCSB_scrollTools .mCSB_buttonDown:hover,.mCSB_scrollTools .mCSB_buttonLeft:hover,.mCSB_scrollTools .mCSB_buttonRight:hover,.mCSB_scrollTools .mCSB_buttonUp:hover{opacity:.75;filter:"alpha(opacity=75)";-ms-filter:"alpha(opacity=75)"}.mCSB_scrollTools .mCSB_buttonDown:active,.mCSB_scrollTools .mCSB_buttonLeft:active,.mCSB_scrollTools .mCSB_buttonRight:active,.mCSB_scrollTools .mCSB_buttonUp:active{opacity:.9;filter:"alpha(opacity=90)";-ms-filter:"alpha(opacity=90)"}.mCS-dark>.mCSB_scrollTools .mCSB_draggerRail{background:#000;background:rgba(0,0,0,.15)}.mCS-dark>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{background:#000;background:rgba(0,0,0,.75)}.mCS-dark>.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background:rgba(0,0,0,.85)}.mCS-dark>.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-dark>.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background:rgba(0,0,0,.9)}.mCS-dark>.mCSB_scrollTools .mCSB_buttonUp{background-position:-80px 0}.mCS-dark>.mCSB_scrollTools .mCSB_buttonDown{background-position:-80px -20px}.mCS-dark>.mCSB_scrollTools .mCSB_buttonLeft{background-position:-80px -40px}.mCS-dark>.mCSB_scrollTools .mCSB_buttonRight{background-position:-80px -56px}.mCS-light-2>.mCSB_scrollTools .mCSB_draggerRail{width:4px;background:#fff;background:rgba(255,255,255,.1);-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px}.mCS-light-2>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:4px;background:#fff;background:rgba(255,255,255,.75);-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px}.mCS-light-2.mCSB_horizontal>.mCSB_scrollTools .mCSB_draggerRail{width:100%;height:4px;margin:6px 0}.mCS-light-2.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:100%;height:4px;margin:6px auto}.mCS-light-2>.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background:rgba(255,255,255,.85)}.mCS-light-2>.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-light-2>.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background:rgba(255,255,255,.9)}.mCS-light-2>.mCSB_scrollTools .mCSB_buttonUp{background-position:-32px 0}.mCS-light-2>.mCSB_scrollTools .mCSB_buttonDown{background-position:-32px -20px}.mCS-light-2>.mCSB_scrollTools .mCSB_buttonLeft{background-position:-40px -40px}.mCS-light-2>.mCSB_scrollTools .mCSB_buttonRight{background-position:-40px -56px}.mCS-dark-2>.mCSB_scrollTools .mCSB_draggerRail{width:4px;background:#000;background:rgba(0,0,0,.1);-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px}.mCS-dark-2>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:4px;background:#000;background:rgba(0,0,0,.75);-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px}.mCS-dark-2.mCSB_horizontal>.mCSB_scrollTools .mCSB_draggerRail{width:100%;height:4px;margin:6px 0}.mCS-dark-2.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:100%;height:4px;margin:6px auto}.mCS-dark-2>.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background:rgba(0,0,0,.85)}.mCS-dark-2>.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-dark-2>.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background:rgba(0,0,0,.9)}.mCS-dark-2>.mCSB_scrollTools .mCSB_buttonUp{background-position:-112px 0}.mCS-dark-2>.mCSB_scrollTools .mCSB_buttonDown{background-position:-112px -20px}.mCS-dark-2>.mCSB_scrollTools .mCSB_buttonLeft{background-position:-120px -40px}.mCS-dark-2>.mCSB_scrollTools .mCSB_buttonRight{background-position:-120px -56px}.mCS-light-thick>.mCSB_scrollTools .mCSB_draggerRail{width:4px;background:#fff;background:rgba(255,255,255,.1);-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}.mCS-light-thick>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:6px;background:#fff;background:rgba(255,255,255,.75);-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}.mCS-light-thick.mCSB_horizontal>.mCSB_scrollTools .mCSB_draggerRail{width:100%;height:4px;margin:6px 0}.mCS-light-thick.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:100%;height:6px;margin:5px auto}.mCS-light-thick>.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background:rgba(255,255,255,.85)}.mCS-light-thick>.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-light-thick>.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background:rgba(255,255,255,.9)}.mCS-light-thick>.mCSB_scrollTools .mCSB_buttonUp{background-position:-16px 0}.mCS-light-thick>.mCSB_scrollTools .mCSB_buttonDown{background-position:-16px -20px}.mCS-light-thick>.mCSB_scrollTools .mCSB_buttonLeft{background-position:-20px -40px}.mCS-light-thick>.mCSB_scrollTools .mCSB_buttonRight{background-position:-20px -56px}.mCS-dark-thick>.mCSB_scrollTools .mCSB_draggerRail{width:4px;background:#000;background:rgba(0,0,0,.1);-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}.mCS-dark-thick>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:6px;background:#000;background:rgba(0,0,0,.75);-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}.mCS-dark-thick.mCSB_horizontal>.mCSB_scrollTools .mCSB_draggerRail{width:100%;height:4px;margin:6px 0}.mCS-dark-thick.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:100%;height:6px;margin:5px auto}.mCS-dark-thick>.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background:rgba(0,0,0,.85)}.mCS-dark-thick>.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-dark-thick>.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background:rgba(0,0,0,.9)}.mCS-dark-thick>.mCSB_scrollTools .mCSB_buttonUp{background-position:-96px 0}.mCS-dark-thick>.mCSB_scrollTools .mCSB_buttonDown{background-position:-96px -20px}.mCS-dark-thick>.mCSB_scrollTools .mCSB_buttonLeft{background-position:-100px -40px}.mCS-dark-thick>.mCSB_scrollTools .mCSB_buttonRight{background-position:-100px -56px}.mCS-light-thin>.mCSB_scrollTools .mCSB_draggerRail{background:#fff;background:rgba(255,255,255,.1)}.mCS-light-thin>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:2px}.mCS-light-thin.mCSB_horizontal>.mCSB_scrollTools .mCSB_draggerRail{width:100%}.mCS-light-thin.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:100%;height:2px;margin:7px auto}.mCS-dark-thin>.mCSB_scrollTools .mCSB_draggerRail{background:#000;background:rgba(0,0,0,.15)}.mCS-dark-thin>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:2px;background:#000;background:rgba(0,0,0,.75)}.mCS-dark-thin.mCSB_horizontal>.mCSB_scrollTools .mCSB_draggerRail{width:100%}.mCS-dark-thin.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:100%;height:2px;margin:7px auto}.mCS-dark-thin>.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background:rgba(0,0,0,.85)}.mCS-dark-thin>.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-dark-thin>.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background:rgba(0,0,0,.9)}.mCS-dark-thin>.mCSB_scrollTools .mCSB_buttonUp{background-position:-80px 0}.mCS-dark-thin>.mCSB_scrollTools .mCSB_buttonDown{background-position:-80px -20px}.mCS-dark-thin>.mCSB_scrollTools .mCSB_buttonLeft{background-position:-80px -40px}.mCS-dark-thin>.mCSB_scrollTools .mCSB_buttonRight{background-position:-80px -56px}
css/pricing.css CHANGED
@@ -491,10 +491,11 @@
491
  }
492
  .bwg-topbar-links a,
493
  .bwg-topbar-links a:focus {
 
494
  align-self: center;
495
  box-shadow: none;
496
  color: #000000;
497
- text-decoration: none;
498
  }
499
  .bwg-topbar-links a:hover {
500
  opacity: 0.5;
491
  }
492
  .bwg-topbar-links a,
493
  .bwg-topbar-links a:focus {
494
+ text-decoration: none;
495
  align-self: center;
496
  box-shadow: none;
497
  color: #000000;
498
+ cursor:pointer;
499
  }
500
  .bwg-topbar-links a:hover {
501
  opacity: 0.5;
css/sumoselect.min.css ADDED
@@ -0,0 +1 @@
 
1
+ .SumoSelect p{margin:0}.SumoSelect{width:200px}.SelectBox{padding:5px 8px}.sumoStopScroll{overflow:hidden}.SumoSelect .hidden{display:none}.SumoSelect .search-txt{display:none;outline:0}.SumoSelect .no-match{display:none;padding:6px}.SumoSelect.open .search-txt{display:inline-block;position:absolute;top:0;left:0;width:100%;margin:0;padding:4px 8px;border:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border-radius:5px}.SelectClass,.SumoUnder,.bwg_thumbnail .SelectClass,.bwg_thumbnail .SumoUnder{position:absolute;height:100%;border:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-khtml-opacity:0;top:0;left:0;right:0}.SumoSelect.open>.search>label,.SumoSelect.open>.search>span{visibility:hidden}.bwg_thumbnail .SelectClass,.bwg_thumbnail .SumoUnder{width:100%;box-sizing:border-box;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";filter:alpha(opacity=0);-moz-opacity:0;opacity:0}.SelectClass,.SumoUnder{display:inline-block;width:102%;box-sizing:border-box;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";filter:alpha(opacity=0);-moz-opacity:0;opacity:0}.SelectClass{z-index:1}.SumoSelect .select-all>label,.SumoSelect>.CaptionCont,.SumoSelect>.optWrapper>.options li.opt label{user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none}.SumoSelect{display:inline-block;position:relative;outline:0}.SumoSelect.open>.CaptionCont,.SumoSelect:focus>.CaptionCont,.SumoSelect:hover>.CaptionCont{box-shadow:0 0 2px #7799D0;border-color:#7799D0}.SumoSelect>.CaptionCont{position:relative;border:1px solid #A4A4A4;min-height:14px;background-color:#fff;border-radius:2px;margin:0}.SumoSelect>.CaptionCont>span{display:block;padding-right:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;cursor:default}.SumoSelect>.CaptionCont>span.placeholder{color:#000}.SumoSelect>.CaptionCont>label{position:absolute;top:0;right:0;bottom:0;width:30px}.bwg_thumbnail .SumoSelect>.CaptionCont>label>i{background-image:none;bottom:0;background-position:center center;width:16px;height:16px;display:block;position:absolute;top:0;left:0;right:0;margin:auto;background-repeat:no-repeat;opacity:.8}.SumoSelect>.optWrapper{display:none;z-index:1000;top:30px;width:100%;position:absolute;left:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;background:#fff;border:1px solid #ddd;box-shadow:2px 3px 3px rgba(0,0,0,.11);border-radius:15px;overflow:hidden}.SumoSelect.open>.optWrapper{top:35px;display:block}.SumoSelect.open>.optWrapper.up{top:auto;bottom:100%;margin-bottom:5px}.SumoSelect>.optWrapper ul{list-style:none;display:block;padding:0;margin:0;overflow:auto}.SumoSelect>.optWrapper>.options{border-radius:2px;position:relative;max-height:250px}.SumoSelect>.optWrapper>.options li.group.disabled>label{opacity:.5}.SumoSelect>.optWrapper>.options li ul li.opt{padding-left:22px}.SumoSelect>.optWrapper.multiple>.options li ul li.opt{padding-left:50px}.SumoSelect>.optWrapper.isFloating>.options{max-height:100%;box-shadow:0 0 100px #595959}.SumoSelect>.optWrapper>.options li.opt{padding:6px;position:relative}.SumoSelect>.optWrapper>.options>li.opt:first-child{border-radius:2px 2px 0 0}.SumoSelect>.optWrapper>.options>li.opt:last-child{border-radius:0 0 2px 2px;border-bottom:none}.bwg_thumbnail .SumoSelect>.optWrapper>.options li.opt>label:hover{color:#323A45;opacity:.7}.SumoSelect>.optWrapper>.options li.opt:hover{background-color:#E4E4E4}.SumoSelect>.optWrapper>.options li.opt.sel{background-color:#a1c0e4;border-bottom:1px solid #a1c0e4}.SumoSelect>.optWrapper>.options li label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;cursor:pointer}.SumoSelect>.optWrapper>.options li span{display:none}.SumoSelect>.optWrapper>.options li.group>label{cursor:default;padding:8px 6px;font-weight:700}.SumoSelect>.optWrapper.isFloating{position:fixed;top:0;left:0;right:0;width:90%;bottom:0;margin:auto;max-height:90%}.SumoSelect>.optWrapper>.options li.opt.disabled{background-color:inherit;pointer-events:none}.SumoSelect>.optWrapper>.options li.opt.disabled *{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";filter:alpha(opacity=50);-moz-opacity:.5;-khtml-opacity:.5;opacity:.5}.SumoSelect>.optWrapper.multiple>.options li.opt{padding-left:35px;cursor:pointer}.SumoSelect .select-all>span,.SumoSelect>.optWrapper.multiple>.options li.opt span{position:absolute;display:block;width:30px;top:0;bottom:0;margin-left:-35px}.SumoSelect .select-all>span i,.SumoSelect>.optWrapper.multiple>.options li.opt span i{position:absolute;margin:auto;left:0;right:0;top:0;bottom:0;width:14px;height:14px;border:1px solid #AEAEAE;border-radius:2px;box-shadow:inset 0 1px 3px rgba(0,0,0,.15);background-color:#fff}.SumoSelect>.optWrapper>.MultiControls{display:none;border-top:1px solid #ddd;background-color:#fff;box-shadow:0 0 2px rgba(0,0,0,.13);border-radius:0 0 3px 3px}.SumoSelect>.optWrapper.multiple.isFloating>.MultiControls{display:block;margin-top:5px;position:absolute;bottom:0;width:100%}.SumoSelect>.optWrapper.multiple.okCancelInMulti>.MultiControls{display:block}.SumoSelect>.optWrapper.multiple.okCancelInMulti>.MultiControls>p{padding:6px}.SumoSelect>.optWrapper.multiple>.MultiControls>p{display:inline-block;cursor:pointer;padding:12px;width:50%;box-sizing:border-box;text-align:center}.SumoSelect>.optWrapper.multiple>.MultiControls>p:hover{background-color:#f1f1f1}.SumoSelect>.optWrapper.multiple>.MultiControls>p.btnOk{border-right:1px solid #DBDBDB;border-radius:0 0 0 3px}.SumoSelect>.optWrapper.multiple>.MultiControls>p.btnCancel{border-radius:0 0 3px}.bwg_thumbnail .SumoSelect>.optWrapper.isFloating>.options li.opt{padding:0}.SumoSelect>.optWrapper.isFloating>.options li.opt{padding:12px 6px}.SumoSelect>.optWrapper.multiple.isFloating>.options li.opt{padding-left:35px}.SumoSelect>.optWrapper.multiple.isFloating{padding-bottom:43px}.SumoSelect .select-all.partial>span i,.SumoSelect .select-all.selected>span i,.SumoSelect>.optWrapper.multiple>.options li.opt.selected span i{background-color:#11a911;box-shadow:none;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAACzSURBVChTY/wPBAwkACYS1IKVEqWhfflFBsvczWANjISc1L/mEkP5wjsMv3/+ZVhTZcDAANKAC/StvvSf1WctGIPYYMNBhEXOpv9tyy6g6OtbfRFJ8UW4HMOa/bf+M7iugpoCkcClGCQH9kP/mstAd95mYGdlYvAyEmDYdu4Dw8/f/xg641UZCkN0UQMSZhfMVKnozSi2ofsPxdMgTQx2y8BOwgUwQunYpSf4Ag7iB1JiGwAouCBFqHEGogAAAABJRU5ErkJggg==);background-repeat:no-repeat;background-position:center center}.SumoSelect.disabled{opacity:.7;cursor:not-allowed}.SumoSelect.disabled>.CaptionCont{border-color:#ccc;box-shadow:none}.SumoSelect .select-all{border-radius:3px 3px 0 0;position:relative;border-bottom:1px solid #ddd;background-color:#fff;padding:8px 0 3px 35px;height:20px;cursor:pointer}.SumoSelect .select-all>label,.SumoSelect .select-all>span i{cursor:pointer}.SumoSelect .select-all.partial>span i{background-color:#ccc}.SumoSelect>.optWrapper>.options li.optGroup{padding-left:5px;text-decoration:underline}
filemanager/UploadHandler.php CHANGED
@@ -310,16 +310,17 @@ class bwg_UploadHandler {
310
 
311
  function get_config_bytes($val) {
312
  $val = trim($val);
 
313
  $last = strtolower($val[strlen($val)-1]);
314
  switch($last) {
315
  case 'g':
316
- $val *= 1024;
317
  case 'm':
318
- $val *= 1024;
319
  case 'k':
320
- $val *= 1024;
321
  }
322
- return $this->fix_integer_overflow($val);
323
  }
324
 
325
  protected function validate($uploaded_file, $file, $error, $index) {
@@ -418,7 +419,13 @@ class bwg_UploadHandler {
418
  // into different directories or replacing hidden system files.
419
  // Also remove control characters and spaces (\x00..\x20) around the filename:
420
  $name = trim(stripslashes($name), ".\x00..\x20");
421
- $name = str_replace(array(" ",'%'), array("_",''), $name);
 
 
 
 
 
 
422
  // Use a timestamp for empty filenames:
423
  if (!$name) {
424
  $name = str_replace('.', '-', microtime(true));
@@ -558,7 +565,8 @@ class bwg_UploadHandler {
558
  if (is_file($ex_file)) {
559
  $type = filetype($ex_file);
560
  $name = basename($ex_file);
561
- $extension = end(explode(".", $name));
 
562
  $name = str_replace('.' . $extension, strtolower('.' . $extension), $name);
563
  $index = null;
564
  $content_range = null;
@@ -885,7 +893,8 @@ class bwg_UploadHandler {
885
  // $_FILES is a multi-dimensional array:
886
  foreach ($upload['tmp_name'] as $index => $value) {
887
  $filename = $file_name ? $file_name : $upload['name'][$index];
888
- $extension = end(explode(".", $filename));
 
889
  $filename = str_replace('.' . $extension, strtolower('.' . $extension), $filename);
890
  $files[] = $this->handle_file_upload(
891
  $upload['tmp_name'][$index],
@@ -900,7 +909,8 @@ class bwg_UploadHandler {
900
  }
901
  else {
902
  $filename = $file_name ? $file_name : (isset($upload['name']) ? $upload['name'] : null);
903
- $extension = end(explode(".", $filename));
 
904
  $filename = str_replace('.' . $extension, strtolower('.' . $extension), $filename);
905
  // param_name is a single object identifier like "file",
906
  // $_FILES is a one-dimensional array:
310
 
311
  function get_config_bytes($val) {
312
  $val = trim($val);
313
+ $int_val = intval($val);
314
  $last = strtolower($val[strlen($val)-1]);
315
  switch($last) {
316
  case 'g':
317
+ $int_val *= 1024;
318
  case 'm':
319
+ $int_val *= 1024;
320
  case 'k':
321
+ $int_val *= 1024;
322
  }
323
+ return $this->fix_integer_overflow($int_val);
324
  }
325
 
326
  protected function validate($uploaded_file, $file, $error, $index) {
419
  // into different directories or replacing hidden system files.
420
  // Also remove control characters and spaces (\x00..\x20) around the filename:
421
  $name = trim(stripslashes($name), ".\x00..\x20");
422
+ $name = str_replace(array(" ",'%','&'), array("_",'',''), $name);
423
+ $tempname = explode(".", $name);
424
+
425
+ if ( $tempname[0] == '' ) {
426
+ $tempname[0] = 'unnamed-file';
427
+ $name = $tempname[0].".".$tempname[1];
428
+ }
429
  // Use a timestamp for empty filenames:
430
  if (!$name) {
431
  $name = str_replace('.', '-', microtime(true));
565
  if (is_file($ex_file)) {
566
  $type = filetype($ex_file);
567
  $name = basename($ex_file);
568
+ $extension = explode(".", $name);
569
+ $extension = end($extension);
570
  $name = str_replace('.' . $extension, strtolower('.' . $extension), $name);
571
  $index = null;
572
  $content_range = null;
893
  // $_FILES is a multi-dimensional array:
894
  foreach ($upload['tmp_name'] as $index => $value) {
895
  $filename = $file_name ? $file_name : $upload['name'][$index];
896
+ $extension = explode(".", $filename);
897
+ $extension = end($extension);
898
  $filename = str_replace('.' . $extension, strtolower('.' . $extension), $filename);
899
  $files[] = $this->handle_file_upload(
900
  $upload['tmp_name'][$index],
909
  }
910
  else {
911
  $filename = $file_name ? $file_name : (isset($upload['name']) ? $upload['name'] : null);
912
+ $extension = explode(".", $filename);
913
+ $extension = end($extension);
914
  $filename = str_replace('.' . $extension, strtolower('.' . $extension), $filename);
915
  // param_name is a single object identifier like "file",
916
  // $_FILES is a one-dimensional array:
filemanager/css/default.css CHANGED
@@ -2,11 +2,6 @@
2
  border: none !important;
3
  margin-top: 200px;
4
  width: 30px;
5
- /*border: none !important;
6
- -webkit-animation: spin 2.5s infinite linear;
7
- -moz-animation: spin 2.5s infinite linear;
8
- -o-animation: spin 2.5s infinite linear;
9
- animation: spin 2.5s infinite linear;*/
10
  }
11
 
12
  @-moz-keyframes spin {
@@ -78,6 +73,7 @@ html, body, div, span, th, td, a {
78
  /* default tags */
79
  .clickable {
80
  cursor: pointer !important;
 
81
  }
82
 
83
  /* wrapper */
@@ -120,6 +116,10 @@ html, body, div, span, th, td, a {
120
  top: 0;
121
  }
122
 
 
 
 
 
123
  .ctrls_bar_footer {
124
  bottom: 0;
125
  }
@@ -143,16 +143,15 @@ html, body, div, span, th, td, a {
143
  margin-right: 10px;
144
  }
145
 
146
- .ctrl_bar_divider {
147
  display: table-cell;
148
- margin: 0;
149
- background-image: url("../images/btn_icons/divider.png");
150
- background-repeat: no-repeat;
151
- width: 16px !important;
152
- height: 32px !important;
153
- padding: 0;
154
- vertical-align: middle;
155
  cursor: default;
 
 
 
 
 
156
  }
157
 
158
  .upload_thumb_dim {
@@ -190,38 +189,9 @@ html, body, div, span, th, td, a {
190
  text-decoration: none;
191
  }
192
 
193
- .ctrl_bar_btn.btn_up {
194
- background-image: url("../images/btn_icons/up.png");
195
- }
196
-
197
- .ctrl_bar_btn.btn_make_dir {
198
- background-image: url("../images/btn_icons/create_dir.png");
199
- }
200
-
201
- .ctrl_bar_btn.btn_rename_item {
202
- background-image: url("../images/btn_icons/rename.png");
203
- }
204
-
205
- .ctrl_bar_btn.btn_copy {
206
- background-image: url("../images/btn_icons/copy.png");
207
- }
208
-
209
- .ctrl_bar_btn.btn_cut {
210
- background-image: url("../images/btn_icons/cut.png");
211
- }
212
-
213
- .ctrl_bar_btn.btn_paste {
214
- background-image: url("../images/btn_icons/paste.png");
215
- }
216
-
217
- .ctrl_bar_btn.btn_remove_items {
218
- background-image: url("../images/btn_icons/delete.png");
219
- }
220
-
221
  .ctrl_bar_btn.btn_upload_files {
222
  padding-left: 32px;
223
  padding-right: 4px;
224
- background-image: url("../images/btn_icons/upload.png");
225
  color: #F5F6F7;
226
  cursor: pointer;
227
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
@@ -231,7 +201,6 @@ html, body, div, span, th, td, a {
231
  .ctrl_bar_btn.btn_import_files {
232
  padding-left: 32px;
233
  padding-right: 4px;
234
- background-image: url("../images/btn_icons/import.png");
235
  color: #F5F6F7;
236
  cursor: pointer;
237
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
@@ -285,23 +254,10 @@ html, body, div, span, th, td, a {
285
  width: 10px;
286
  }
287
 
288
- .ctrl_bar_btn.btn_view_thumbs {
289
- background-image: url("../images/btn_icons/view_thumbs.png");
290
- }
291
-
292
- .ctrl_bar_btn.btn_view_list {
293
- background-image: url("../images/btn_icons/view_list.png");
294
- }
295
-
296
- .ctrl_bar_btn.btn_back {
297
- background-image: url("../images/btn_icons/back.png");
298
- }
299
-
300
  /* sort icons */
301
  .sort_order_asc {
302
  display: inline-block !important;
303
  margin: 0;
304
- background-image: url("../images/btn_icons/sort_asc.png");
305
  background-repeat: no-repeat;
306
  padding: 0;
307
  width: 12px !important;
@@ -316,7 +272,6 @@ html, body, div, span, th, td, a {
316
  .sort_order_desc {
317
  display: inline-block !important;
318
  margin: 0;
319
- background-image: url("../images/btn_icons/sort_desc.png");
320
  background-repeat: no-repeat;
321
  padding: 0;
322
  width: 12px !important;
@@ -413,7 +368,7 @@ html, body, div, span, th, td, a {
413
  #drag_message {
414
  position: absolute;
415
  top: 40px;
416
- bottom: 60px;
417
  left: 40px;
418
  right: 40px;
419
  outline: #c0c0c0 dashed 5px;
@@ -438,23 +393,24 @@ html, body, div, span, th, td, a {
438
  height: 40px;
439
  vertical-align: middle;
440
  text-align: center;
 
441
  }
442
 
443
- #uploaded_files {
444
  position: absolute;
445
  bottom: 60px;
446
  left: 0;
447
  right: 0;
448
  border: solid 1px #e8e9ea;
449
- height: 100px;
450
  background-color: #ffffff;
451
  overflow-x: auto;
452
  overflow-y: scroll;
453
  }
454
 
455
- #uploaded_files ul {
456
- margin: 0;
457
- padding: 0px !important;
458
  }
459
 
460
  .uploaded_item {
@@ -574,6 +530,18 @@ a.wd-btn {
574
  outline: none !important;
575
  }
576
 
 
 
 
 
 
 
 
 
 
 
 
 
577
  .wd-btn-secondary {
578
  background-color: #FFFFFF;
579
  color: #686;
@@ -605,22 +573,6 @@ a.wd-btn-primary:link {
605
  background-position: 10% 50%;
606
  }
607
 
608
- .wd-btn-uplaod {
609
- background-image: url("../images/btn_icons/upload.png");
610
- }
611
-
612
- .wd-btn-add {
613
- background-image: url("../images/icons/add-new.png");
614
- }
615
-
616
- .wd-btn-apply {
617
- background-image: url("../images/icons/apply.png");
618
- }
619
-
620
- .wd-btn-cancel {
621
- background-image: url("../images/icons/cancel.png");
622
- }
623
-
624
  .wd-not-image {
625
  padding: 0px 10px 1px 10px !important;
626
  background-repeat: no-repeat;
@@ -694,11 +646,45 @@ a.wd-btn-primary:link {
694
  margin: 50px;
695
  }
696
 
697
- #uploaded_files {
698
  bottom: 40px !important;
699
  height: 40px !important;
700
  padding: 3px;
701
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
702
  }
703
 
704
  @media screen and (max-width:521px) {
@@ -735,15 +721,6 @@ a.wd-btn-primary:link {
735
  width: 100%;
736
  }
737
 
738
- #search_by_name {
739
- display: inline-block;
740
- width: 100%;
741
- }
742
-
743
- .search_by_name {
744
- margin: 2px 0 0 0;
745
- width: 100%;
746
- }
747
  }
748
  @media screen and (max-height: 480px) {
749
  #drag_message {
@@ -762,17 +739,26 @@ a.wd-btn-primary:link {
762
  }
763
 
764
  @media screen and (max-width:409px) {
765
- #bwg_img_add,
766
- #bwg_img_cancel {
767
- display: none !important;
768
- }
769
  #add_selectid_img,
770
  .wd-btn-cancel {
771
- padding: 0 !important;
772
  background-position: 50% 50%;
773
  }
774
  }
775
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
776
  .thumb_full_title {
777
  display: table-row;
778
  float: left;
@@ -788,4 +774,21 @@ a.wd-btn-primary:link {
788
 
789
  .ctrls_bar .upload_thumb_dim {
790
  padding: 5px 5px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
791
  }
2
  border: none !important;
3
  margin-top: 200px;
4
  width: 30px;
 
 
 
 
 
5
  }
6
 
7
  @-moz-keyframes spin {
73
  /* default tags */
74
  .clickable {
75
  cursor: pointer !important;
76
+ line-height: 30px;
77
  }
78
 
79
  /* wrapper */
116
  top: 0;
117
  }
118
 
119
+ .ctrls_bar_header .dashicons{
120
+ font-size: 22px!important;
121
+ }
122
+
123
  .ctrls_bar_footer {
124
  bottom: 0;
125
  }
143
  margin-right: 10px;
144
  }
145
 
146
+ span.ctrl_bar_divider {
147
  display: table-cell;
148
+ padding: 0px 10px;
 
 
 
 
 
 
149
  cursor: default;
150
+ height: 100%;
151
+ font-size: 14px!important;
152
+ vertical-align: middle;
153
+ font-weight: 100;
154
+ opacity: 0.5;
155
  }
156
 
157
  .upload_thumb_dim {
189
  text-decoration: none;
190
  }
191
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
192
  .ctrl_bar_btn.btn_upload_files {
193
  padding-left: 32px;
194
  padding-right: 4px;
 
195
  color: #F5F6F7;
196
  cursor: pointer;
197
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
201
  .ctrl_bar_btn.btn_import_files {
202
  padding-left: 32px;
203
  padding-right: 4px;
 
204
  color: #F5F6F7;
205
  cursor: pointer;
206
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
254
  width: 10px;
255
  }
256
 
 
 
 
 
 
 
 
 
 
 
 
 
257
  /* sort icons */
258
  .sort_order_asc {
259
  display: inline-block !important;
260
  margin: 0;
 
261
  background-repeat: no-repeat;
262
  padding: 0;
263
  width: 12px !important;
272
  .sort_order_desc {
273
  display: inline-block !important;
274
  margin: 0;
 
275
  background-repeat: no-repeat;
276
  padding: 0;
277
  width: 12px !important;
368
  #drag_message {
369
  position: absolute;
370
  top: 40px;
371
+ bottom: 130px;
372
  left: 40px;
373
  right: 40px;
374
  outline: #c0c0c0 dashed 5px;
393
  height: 40px;
394
  vertical-align: middle;
395
  text-align: center;
396
+ visibility: hidden;
397
  }
398
 
399
+ #bwg-errors-wrap {
400
  position: absolute;
401
  bottom: 60px;
402
  left: 0;
403
  right: 0;
404
  border: solid 1px #e8e9ea;
405
+ height: 185px;
406
  background-color: #ffffff;
407
  overflow-x: auto;
408
  overflow-y: scroll;
409
  }
410
 
411
+ #bwg-errors-wrap .bwg-files-item {
412
+ margin: 5px 0 0 0;
413
+ padding: 1px 12px;
414
  }
415
 
416
  .uploaded_item {
530
  outline: none !important;
531
  }
532
 
533
+ #search_by_name {
534
+ padding-left: 10px;
535
+ }
536
+
537
+ #search_by_name:hover, #upload_images_cont {
538
+ outline: none;
539
+ }
540
+
541
+ .search_by_name {
542
+ padding: 0 10px;
543
+ }
544
+
545
  .wd-btn-secondary {
546
  background-color: #FFFFFF;
547
  color: #686;
573
  background-position: 10% 50%;
574
  }
575
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
576
  .wd-not-image {
577
  padding: 0px 10px 1px 10px !important;
578
  background-repeat: no-repeat;
646
  margin: 50px;
647
  }
648
 
649
+ #bwg-errors-wrap {
650
  bottom: 40px !important;
651
  height: 40px !important;
652
  padding: 3px;
653
  }
654
+
655
+
656
+ .ctrls_left.header_bar {
657
+ width: 80%;
658
+ }
659
+
660
+ .ctrls_left.header_bar:nth-child(3) {
661
+ width: 100%;
662
+ }
663
+
664
+ #upload_images_cont {
665
+ width: 30%;
666
+ float: left;
667
+ }
668
+ #search_by_name {
669
+ width: 70%;
670
+ }
671
+
672
+ #search_by_name .search_by_name {
673
+ margin: 0px;
674
+ }
675
+
676
+ .ctrls_bar .ctrls_left {
677
+ float: left;
678
+ }
679
+
680
+ #search_by_name {
681
+ padding-left: 0px;
682
+ float: right;
683
+ }
684
+
685
+ #search_by_name input {
686
+ width:100%;
687
+ }
688
  }
689
 
690
  @media screen and (max-width:521px) {
721
  width: 100%;
722
  }
723
 
 
 
 
 
 
 
 
 
 
724
  }
725
  @media screen and (max-height: 480px) {
726
  #drag_message {
739
  }
740
 
741
  @media screen and (max-width:409px) {
 
 
 
 
742
  #add_selectid_img,
743
  .wd-btn-cancel {
 
744
  background-position: 50% 50%;
745
  }
746
  }
747
 
748
+ @media screen and (max-width:409px) {
749
+ .ctrls_left.header_bar {
750
+ width: 100%;
751
+ }
752
+
753
+ .ctrls_bar .ctrls_right {
754
+ width: 100%;
755
+ }
756
+
757
+ .ctrls_bar_footer.ctrls_bar .ctrls_right {
758
+ width: auto;
759
+ }
760
+ }
761
+
762
  .thumb_full_title {
763
  display: table-row;
764
  float: left;
774
 
775
  .ctrls_bar .upload_thumb_dim {
776
  padding: 5px 5px;
777
+ }
778
+
779
+ .item_date_modified .clickable .dashicons,
780
+ .item_name .clickable .dashicons,
781
+ .item_size .clickable .dashicons {
782
+ font-size:20px!important;
783
+ line-height: 27px;
784
+ }
785
+
786
+ #explorer_header .item_name,
787
+ #explorer_header .item_size {
788
+ border-right:1px solid #cccccc;
789
+
790
+ }
791
+
792
+ #explorer_header .item_name, #explorer_header .item_size, #explorer_header .item_date_modified {
793
+ padding: 0px 15px;
794
  }
filemanager/css/default_view_list.css CHANGED
@@ -94,13 +94,13 @@
94
 
95
  .item_icon {
96
  display: table-cell;
97
- width: 40px;
98
  padding: 0 2px;
99
  vertical-align: middle;
100
  }
101
 
102
  .item_icon img {
103
- max-width: 32px;
104
  max-height: 32px;
105
  }
106
 
94
 
95
  .item_icon {
96
  display: table-cell;
97
+ width: 60px;
98
  padding: 0 2px;
99
  vertical-align: middle;
100
  }
101
 
102
  .item_icon img {
103
+ max-width: 60px;
104
  max-height: 32px;
105
  }
106
 
filemanager/css/default_view_thumbs.css CHANGED
@@ -18,11 +18,6 @@
18
  width: 100%;
19
  }
20
 
21
- #explorer_header_container .item_name::after,
22
- #explorer_header_container .item_size::after {
23
- content: url("../images/btn_icons/divider.png");
24
- display: table-cell;
25
- }
26
 
27
  #explorer_header_container .item_name,
28
  #explorer_header_container .item_size,
18
  width: 100%;
19
  }
20
 
 
 
 
 
 
21
 
22
  #explorer_header_container .item_name,
23
  #explorer_header_container .item_size,
filemanager/css/index.html CHANGED
@@ -1 +1,11 @@
1
- <!DOCTYPE html><title></title>
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>403 Forbidden</title>
5
+ </head>
6
+ <body>
7
+
8
+ <p>Directory access is forbidden.</p>
9
+
10
+ </body>
11
+ </html>
filemanager/images/btn_icons/back.png DELETED
Binary file
filemanager/images/btn_icons/copy.png DELETED
Binary file
filemanager/images/btn_icons/create_dir.png DELETED
Binary file
filemanager/images/btn_icons/cut.png DELETED
Binary file
filemanager/images/btn_icons/delete.png DELETED
Binary file
filemanager/images/btn_icons/divider.png DELETED
Binary file
filemanager/images/btn_icons/import.png DELETED
Binary file
filemanager/images/btn_icons/imports.png DELETED
Binary file
filemanager/images/btn_icons/index.html DELETED
@@ -1 +0,0 @@
1
- <!DOCTYPE html><title></title>
 
filemanager/images/btn_icons/paste.png DELETED
Binary file
filemanager/images/btn_icons/rename.png DELETED
Binary file
filemanager/images/btn_icons/sort_asc.png DELETED
Binary file
filemanager/images/btn_icons/sort_desc.png DELETED
Binary file
filemanager/images/btn_icons/up.png DELETED
Binary file
filemanager/images/btn_icons/upload.png DELETED
Binary file
filemanager/images/btn_icons/uploads.png DELETED
Binary file
filemanager/images/btn_icons/view_list.png DELETED
Binary file
filemanager/images/btn_icons/view_thumbs.png DELETED
Binary file
filemanager/images/file_icons/aac.png DELETED
Binary file
filemanager/images/file_icons/ai.png DELETED
Binary file
filemanager/images/file_icons/aiff.png DELETED
Binary file
filemanager/images/file_icons/avi.png DELETED
Binary file
filemanager/images/file_icons/bmp.png DELETED
Binary file
filemanager/images/file_icons/c.png DELETED
Binary file
filemanager/images/file_icons/cpp.png DELETED
Binary file
filemanager/images/file_icons/css.png DELETED
Binary file
filemanager/images/file_icons/dat.png DELETED
Binary file
filemanager/images/file_icons/dmg.png DELETED
Binary file
filemanager/images/file_icons/doc.png DELETED
Binary file
filemanager/images/file_icons/dotx.png DELETED
Binary file
filemanager/images/file_icons/dwg.png DELETED
Binary file
filemanager/images/file_icons/dxf.png DELETED
Binary file
filemanager/images/file_icons/eps.png DELETED
Binary file
filemanager/images/file_icons/exe.png DELETED
Binary file
filemanager/images/file_icons/flv.png DELETED
Binary file
filemanager/images/file_icons/gif.png DELETED
Binary file
filemanager/images/file_icons/h.png DELETED
Binary file
filemanager/images/file_icons/hpp.png DELETED
Binary file
filemanager/images/file_icons/html.png DELETED
Binary file
filemanager/images/file_icons/ics.png DELETED
Binary file
filemanager/images/file_icons/index.html CHANGED
@@ -1,9 +1,11 @@
1
  <!DOCTYPE html>
2
  <html>
3
  <head>
4
- <title></title>
5
  </head>
6
- <body bgcolor="#ffffff">
 
 
7
 
8
  </body>
9
  </html>
1
  <!DOCTYPE html>
2
  <html>
3
  <head>
4
+ <title>403 Forbidden</title>
5
  </head>
6
+ <body>
7
+
8
+ <p>Directory access is forbidden.</p>
9
 
10
  </body>
11
  </html>
filemanager/images/file_icons/iso.png DELETED
Binary file
filemanager/images/file_icons/java.png DELETED
Binary file
filemanager/images/file_icons/jpeg.png DELETED
Binary file
filemanager/images/file_icons/jpg.png DELETED
Binary file
filemanager/images/file_icons/key.png DELETED
Binary file
filemanager/images/file_icons/mid.png DELETED
Binary file
filemanager/images/file_icons/mp3.png DELETED
Binary file
filemanager/images/file_icons/mp4.png DELETED
Binary file
filemanager/images/file_icons/mpg.png DELETED
Binary file
filemanager/images/file_icons/odf.png DELETED
Binary file
filemanager/images/file_icons/ods.png DELETED
Binary file
filemanager/images/file_icons/odt.png DELETED
Binary file
filemanager/images/file_icons/otp.png DELETED
Binary file
filemanager/images/file_icons/ots.png DELETED
Binary file
filemanager/images/file_icons/ott.png DELETED
Binary file
filemanager/images/file_icons/pdf.png DELETED
Binary file
filemanager/images/file_icons/php.png DELETED
Binary file
filemanager/images/file_icons/png.png DELETED
Binary file
filemanager/images/file_icons/ppt.png DELETED
Binary file
filemanager/images/file_icons/psd.png DELETED
Binary file
filemanager/images/file_icons/py.png DELETED
Binary file
filemanager/images/file_icons/qt.png DELETED
Binary file
filemanager/images/file_icons/rar.png DELETED
Binary file
filemanager/images/file_icons/rb.png DELETED
Binary file
filemanager/images/file_icons/rtf.png DELETED
Binary file
filemanager/images/file_icons/sql.png DELETED
Binary file
filemanager/images/file_icons/tga.png DELETED
Binary file
filemanager/images/file_icons/tgz.png DELETED
Binary file
filemanager/images/file_icons/tiff.png DELETED
Binary file
filemanager/images/file_icons/txt.png DELETED
Binary file
filemanager/images/file_icons/wav.png DELETED
Binary file
filemanager/images/file_icons/xls.png DELETED
Binary file
filemanager/images/file_icons/xlsx.png DELETED
Binary file
filemanager/images/file_icons/xml.png DELETED
Binary file
filemanager/images/file_icons/yml.png DELETED
Binary file
filemanager/images/file_icons/zip.png DELETED
Binary file
filemanager/images/{icons → icons11}/add-new.png RENAMED
File without changes
filemanager/images/{icons → icons11}/apply.png RENAMED
File without changes
filemanager/images/{icons → icons11}/cancel.png RENAMED
File without changes
filemanager/images/{icons → icons11}/checkout-option.png RENAMED
File without changes
filemanager/images/{icons → icons11}/close-red.png RENAMED
File without changes
filemanager/images/{icons → icons11}/delete.png RENAMED
File without changes
filemanager/images/{icons → icons11}/edit.png RENAMED
File without changes
filemanager/images/{icons → icons11}/media.png RENAMED
File without changes
filemanager/images/{icons → icons11}/save.png RENAMED
File without changes
filemanager/js/default.js CHANGED
@@ -19,7 +19,6 @@ jQuery(document).ready(function () {
19
  wdb_all_files_filtered = wdb_all_files;
20
  var all_items_count = wdb_all_files_filtered.length;
21
  var page = 2;
22
-
23
  jQuery("#explorer_body_container").scroll(function () {
24
  var explorer_item_count = jQuery("#explorer_body .explorer_item").length;
25
  if ( ajax && explorer_item_count < all_items_count ) {
@@ -200,7 +199,6 @@ function submitFiles() {
200
  if (filesSelected.length == 0) {
201
  return;
202
  }
203
-
204
  var filesValid = [];
205
  if (all_files_selected === true) {
206
  for (i in wdb_all_files_filtered) {
@@ -258,7 +256,6 @@ function submitFiles() {
258
  }
259
  }
260
  }
261
-
262
  window.parent[callback](filesValid);
263
  window.parent.tb_remove();
264
  }
@@ -656,7 +653,7 @@ function ajax_print_images(files, element, view_type, count) {
656
  var item_number = count;
657
  count++;
658
  var item_thumb = '<span class="item_thumb"><img src="' + corent_file['thumb'] + '"/></span>';
659
- var item_icon = '<span class="item_icon"><img src="'+corent_file['icon']+'"/> </span>';
660
  var item_name = '<span class="item_name">'+corent_file['name']+'</span>';
661
  var item_size = '<span class="item_size">'+corent_file['size']+'</span>';
662
  var item_date_modified = '<span class="item_date_modified">'+corent_file['date_modified']+'</span>';
19
  wdb_all_files_filtered = wdb_all_files;
20
  var all_items_count = wdb_all_files_filtered.length;
21
  var page = 2;
 
22
  jQuery("#explorer_body_container").scroll(function () {
23
  var explorer_item_count = jQuery("#explorer_body .explorer_item").length;
24
  if ( ajax && explorer_item_count < all_items_count ) {
199
  if (filesSelected.length == 0) {
200
  return;
201
  }
 
202
  var filesValid = [];
203
  if (all_files_selected === true) {
204
  for (i in wdb_all_files_filtered) {
256
  }
257
  }
258
  }
 
259
  window.parent[callback](filesValid);
260
  window.parent.tb_remove();
261
  }
653
  var item_number = count;
654
  count++;
655
  var item_thumb = '<span class="item_thumb"><img src="' + corent_file['thumb'] + '"/></span>';
656
+ var item_icon = '<span class="item_icon"><img src="'+corent_file['thumb']+'"/> </span>';
657
  var item_name = '<span class="item_name">'+corent_file['name']+'</span>';
658
  var item_size = '<span class="item_size">'+corent_file['size']+'</span>';
659
  var item_date_modified = '<span class="item_date_modified">'+corent_file['date_modified']+'</span>';
filemanager/model.php CHANGED
@@ -10,7 +10,7 @@ $s_order;
10
 
11
  class FilemanagerModel {
12
  private $controller;
13
- private $element_load_count = 100;
14
 
15
  public function __construct($controller) {
16
  $this->controller = $controller;
10
 
11
  class FilemanagerModel {
12
  private $controller;
13
+ private $element_load_count = 60;
14
 
15
  public function __construct($controller) {
16
  $this->controller = $controller;
filemanager/view.php CHANGED
@@ -1,19 +1,26 @@
1
  <?php
 
2
  /**
3
- * Author: Rob
4
- * Date: 6/24/13
5
- * Time: 11:48 AM
6
  */
7
-
8
  class FilemanagerView {
 
9
  private $controller;
10
  private $model;
11
 
 
 
 
 
 
12
  public function __construct($controller, $model) {
13
  $this->controller = $controller;
14
  $this->model = $model;
15
  }
16
 
 
 
 
17
  public function display() {
18
  if (isset($_GET['filemanager_msg']) && esc_html($_GET['filemanager_msg']) != '') {
19
  ?>
@@ -34,6 +41,10 @@ class FilemanagerView {
34
  $clipboard_files = $file_manager_data['session_data']['clipboard_files'];
35
  $clipboard_src = $file_manager_data['session_data']['clipboard_src'];
36
  $clipboard_dest = $file_manager_data['session_data']['clipboard_dest'];
 
 
 
 
37
  wp_print_scripts('jquery');
38
  wp_print_scripts('jquery-ui-widget');
39
  wp_print_scripts('wp-pointer');
@@ -86,36 +97,34 @@ class FilemanagerView {
86
  }
87
  $i = 0;
88
  ?>
89
- <form id="adminForm" name="adminForm" action="" method="post">
90
  <?php wp_nonce_field( '', 'bwg_nonce' ); ?>
91
  <div id="wrapper">
92
  <div id="file_manager">
93
  <div class="ctrls_bar ctrls_bar_header">
94
  <div class="ctrls_left header_bar">
95
- <a class="ctrl_bar_btn btn_up" onclick="onBtnUpClick(event, this);" title="<?php echo __('Up', BWG()->prefix); ?>"></a>
96
- <a class="ctrl_bar_btn btn_make_dir" onclick="<?php echo (BWG()->is_demo ? 'alert(demo_message)' : 'onBtnMakeDirClick(event, this)'); ?>" title="<?php echo __('Make a directory', BWG()->prefix); ?>"></a>
97
- <a class="ctrl_bar_btn btn_rename_item" onclick="<?php echo (BWG()->is_demo ? 'alert(demo_message)' : 'onBtnRenameItemClick(event, this)'); ?>" title="<?php echo __('Rename item', BWG()->prefix); ?>"></a>
98
- <span class="ctrl_bar_divider"></span>
99
- <a class="ctrl_bar_btn btn_copy" onclick="<?php echo (BWG()->is_demo ? 'alert(demo_message)' : 'onBtnCopyClick(event, this)'); ?>" title="<?php echo __('Copy', BWG()->prefix); ?>"></a>
100
- <a class="ctrl_bar_btn btn_cut" onclick="<?php echo (BWG()->is_demo ? 'alert(demo_message)' : 'onBtnCutClick(event, this)'); ?>" title="<?php echo __('Cut', BWG()->prefix); ?>"></a>
101
- <a class="ctrl_bar_btn btn_paste" onclick="<?php echo (BWG()->is_demo ? 'alert(demo_message)' : 'onBtnPasteClick(event, this)'); ?>" title="<?php echo __('Paste', BWG()->prefix); ?>"> </a>
102
- <a class="ctrl_bar_btn btn_remove_items" onclick="<?php echo (BWG()->is_demo ? 'alert(demo_message)' : 'onBtnRemoveItemsClick(event, this)'); ?>" title="<?php echo __('Remove items', BWG()->prefix); ?>"></a>
103
- <span class="ctrl_bar_divider divider_upload"></span>
104
  </div>
105
  <div class="ctrls_right">
106
- <a class="ctrl_bar_btn btn_view_thumbs" onclick="onBtnViewThumbsClick(event, this);" title="<?php echo __('View thumbs', BWG()->prefix); ?>"></a>
107
- <a class="ctrl_bar_btn btn_view_list" onclick="onBtnViewListClick(event, this);" title="<?php echo __('View list', BWG()->prefix); ?>"></a>
108
  </div>
109
  <div class="ctrls_left header_bar">
110
- <span class="ctrl_bar_btn">
111
- <a id="upload_images" class="ctrl_bar_btn wd-btn wd-btn-primary wd-btn-icon wd-btn-uplaod" onclick="<?php echo (BWG()->is_demo ? 'alert(demo_message)' : 'onBtnShowUploaderClick(event, this)'); ?>"><?php echo __('Upload files', BWG()->prefix); ?></a>
112
  </span>
113
- <span class="ctrl_bar_divider divider_search"></span>
114
- </div>
115
- <div class="ctrls_left header_bar">
116
  <span id="search_by_name" class="ctrl_bar_btn">
117
  <input type="search" placeholder="Search" class="ctrl_bar_btn search_by_name">
118
  </span>
 
119
  </div>
120
  </div>
121
  <div id="path">
@@ -139,11 +148,15 @@ class FilemanagerView {
139
  <span class="item_name" title="<?php _e('Click to sort by name', BWG()->prefix); ?>">
140
  <span class="clickable" onclick="onNameHeaderClick(event, this);">
141
  <?php
142
- echo 'Name';
143
  if ($sort_by == 'name') {
 
144
  ?>
145
- <span class="sort_order_<?php echo $sort_order; ?>"></span>
 
 
146
  <?php
 
147
  }
148
  ?>
149
  </span>
@@ -151,11 +164,15 @@ class FilemanagerView {
151
  <span class="item_size" title="<?php _e('Click to sort by size', BWG()->prefix); ?>">
152
  <span class="clickable" onclick="onSizeHeaderClick(event, this);">
153
  <?php
154
- echo 'Size';
155
  if ($sort_by == 'size') {
 
156
  ?>
157
- <span class="sort_order_<?php echo $sort_order; ?>"></span>
 
 
158
  <?php
 
159
  }
160
  ?>
161
  </span>
@@ -163,11 +180,15 @@ class FilemanagerView {
163
  <span class="item_date_modified" title="<?php _e('Click to sort by date modified', BWG()->prefix); ?>">
164
  <span class="clickable" onclick="onDateModifiedHeaderClick(event, this);">
165
  <?php
166
- echo 'Date modified';
167
  if ($sort_by == 'date_modified') {
 
168
  ?>
169
- <span class="sort_order_<?php echo $sort_order; ?>"></span>
 
 
170
  <?php
 
171
  }
172
  ?>
173
  </span>
@@ -218,7 +239,7 @@ class FilemanagerView {
218
  <img src="<?php echo $file[ 'thumb' ]; ?>" <?php echo $key >= 24 ? 'onload="loaded()"' : ''; ?> />
219
  </span>
220
  <span class="item_icon">
221
- <img src="<?php echo $file[ 'icon' ]; ?>"/>
222
  </span>
223
  <span class="item_name">
224
  <?php echo $file[ 'name' ]; ?>
@@ -240,7 +261,7 @@ class FilemanagerView {
240
  </div>
241
  <div class="ctrls_bar ctrls_bar_footer">
242
  <div class="ctrls_left">
243
- <a id="select_all_images" class="ctrl_bar_btn wd-btn wd-btn-primary wd-not-image none_select" onclick="onBtnSelectAllClick();"><?php echo __('Select All', BWG()->prefix); ?></a>
244
  </div>
245
  <div class="ctrls_right">
246
  <span id="file_names_span">
@@ -250,11 +271,10 @@ class FilemanagerView {
250
  <?php
251
  $add_image_btn = (isset($_REQUEST['callback']) && esc_html($_REQUEST['callback']) == 'bwg_add_image') ? __('Add selected images to gallery', BWG()->prefix) : __('Add', BWG()->prefix);
252
  ?>
253
- <a id="add_selectid_img" title="<?php echo $add_image_btn; ?>" class="ctrl_bar_btn btn_open wd-btn wd-btn-primary wd-btn-icon-add wd-btn-add none_select" onclick="window.parent.bwg_create_loading_block(); onBtnOpenClick(event, this);">
254
  <div id="bwg_img_add"><?php echo $add_image_btn; ?></div>
255
  </a>
256
- <span class="ctrl_bar_empty_devider"></span>
257
- <a class="ctrl_bar_btn btn_cancel wd-btn wd-btn-primary wd-btn-icon wd-btn-cancel none_select" title="<?php _e('Cancel', BWG()->prefix); ?>" onclick="onBtnCancelClick(event, this);">
258
  <div id="bwg_img_cancel"><?php _e('Cancel', BWG()->prefix); ?></div>
259
  </a>
260
  </div>
@@ -270,7 +290,7 @@ class FilemanagerView {
270
  <input type="text" class="upload_thumb_dim" name="upload_thumb_height" id="upload_thumb_height" value="<?php echo BWG()->options->upload_thumb_height; ?>" /> px
271
  </div>
272
  <div class="ctrls_right">
273
- <a class="ctrl_bar_btn btn_back" onclick="onBtnBackClick(event, this);" title="<?php echo __('Back', BWG()->prefix); ?>"></a>
274
  </div>
275
  <div class="ctrls_right_img upload_thumb">
276
  <div class="upload_thumb thumb_full_title"><?php _e("Image Max Dimensions:", BWG()->prefix); ?></div>
@@ -282,7 +302,7 @@ class FilemanagerView {
282
  <label for="jQueryUploader">
283
  <div id="uploader_hitter">
284
  <div id="drag_message">
285
- <span><?php echo __('Drag files here or click the button below',BWG()->prefix) . '<br />' . __('to upload files',BWG()->prefix)?></span>
286
  </div>
287
  <div id="btnBrowseContainer">
288
  <?php
@@ -295,9 +315,9 @@ class FilemanagerView {
295
  </div>
296
  </div>
297
  </label>
298
- <div id="uploaded_files">
299
- <ul></ul>
300
- </div>
301
  <div id="uploader_progress">
302
  <div id="uploader_progress_bar">
303
  <div></div>
@@ -325,22 +345,35 @@ class FilemanagerView {
325
  <input type="hidden" name="clipboard_dest" value="<?php echo $clipboard_dest; ?>" />
326
  </form>
327
  <script>
 
 
 
 
 
 
 
 
 
 
328
  jQuery(window).load(function() {
329
- jQuery("#loading_div", window.parent.document).hide();
330
  });
 
331
  jQuery("#jQueryUploader").fileupload({
332
  dataType: "json",
333
  dropZone: jQuery("#uploader_hitter"),
 
 
334
  submit: function (e, data) {
335
- jQuery("#uploader_progress_text").removeClass("uploader_text");
336
  isUploading = true;
 
337
  jQuery("#uploader_progress_bar").fadeIn();
338
  },
339
  progressall: function (e, data) {
340
  var progress = parseInt(data.loaded / data.total * 100, 10);
341
  jQuery("#uploader_progress_text").text("Progress " + progress + "%");
342
  jQuery("#uploader_progress div div").css({width: progress + "%"});
343
- if (data.loaded == data.total) {
344
  isUploading = false;
345
  jQuery("#uploader_progress_bar").fadeOut(function () {
346
  jQuery("#uploader_progress_text").text(messageFilesUploadComplete);
@@ -349,24 +382,66 @@ class FilemanagerView {
349
  }
350
  },
351
  stop: function (e, data) {
352
- onBtnBackClick();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
353
  },
354
  done: function (e, data) {
355
- jQuery.each(data.result.files, function (index, file) {
356
- if (file.error) {
357
- alert(errorLoadingFile + ' :: ' + file.error);
358
- }
359
- if (file.error) {
360
- jQuery("#uploaded_files ul").prepend(jQuery("<li class=uploaded_item_failed>" + "<?php echo 'Upload failed' ?> :: " + file.error + "</li>"));
361
- }
362
- else {
363
- jQuery("#uploaded_files ul").prepend(jQuery("<li class=uploaded_item>" + file.name + " (<?php echo 'Uploaded' ?>)" + "</li>"));
364
- }
 
 
 
365
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
366
  }
367
  });
368
  </script>
369
  <?php
370
  die();
371
  }
372
- }
1
  <?php
2
+
3
  /**
4
+ * Class FilemanagerView
 
 
5
  */
 
6
  class FilemanagerView {
7
+
8
  private $controller;
9
  private $model;
10
 
11
+ /**
12
+ * FilemanagerView constructor.
13
+ * @param $controller
14
+ * @param $model
15
+ */
16
  public function __construct($controller, $model) {
17
  $this->controller = $controller;
18
  $this->model = $model;
19
  }
20
 
21
+ /**
22
+ * Display.
23
+ */
24
  public function display() {
25
  if (isset($_GET['filemanager_msg']) && esc_html($_GET['filemanager_msg']) != '') {
26
  ?>
41
  $clipboard_files = $file_manager_data['session_data']['clipboard_files'];
42
  $clipboard_src = $file_manager_data['session_data']['clipboard_src'];
43
  $clipboard_dest = $file_manager_data['session_data']['clipboard_dest'];
44
+
45
+ // Register and include styles and scripts.
46
+ BWG()->register_admin_scripts();
47
+
48
  wp_print_scripts('jquery');
49
  wp_print_scripts('jquery-ui-widget');
50
  wp_print_scripts('wp-pointer');
97
  }
98
  $i = 0;
99
  ?>
100
+ <form id="adminForm" name="adminForm" action="" method="post" class="wp-core-ui">
101
  <?php wp_nonce_field( '', 'bwg_nonce' ); ?>
102
  <div id="wrapper">
103
  <div id="file_manager">
104
  <div class="ctrls_bar ctrls_bar_header">
105
  <div class="ctrls_left header_bar">
106
+ <span class="dashicons dashicons-arrow-up-alt ctrl_bar_btn" onclick="onBtnUpClick(event, this);" title="<?php echo __('Up', BWG()->prefix); ?>"></span>
107
+ <span class="dashicons dashicons-category ctrl_bar_btn" onclick="<?php echo (BWG()->is_demo ? 'alert(demo_message)' : 'onBtnMakeDirClick(event, this)'); ?>" title="<?php echo __('Make a directory', BWG()->prefix); ?>"></span>
108
+ <span class="dashicons dashicons-edit ctrl_bar_btn" onclick="<?php echo (BWG()->is_demo ? 'alert(demo_message)' : 'onBtnRenameItemClick(event, this)'); ?>" title="<?php echo __('Rename item', BWG()->prefix); ?>"></span>
109
+ <span class="ctrl_bar_divider">|</span>
110
+ <span class="dashicons dashicons-admin-page ctrl_bar_btn" onclick="<?php echo (BWG()->is_demo ? 'alert(demo_message)' : 'onBtnCopyClick(event, this)'); ?>" title="<?php echo __('Copy', BWG()->prefix); ?>"></span>
111
+ <span class="dashicons dashicons-media-document ctrl_bar_btn" onclick="<?php echo (BWG()->is_demo ? 'alert(demo_message)' : 'onBtnCutClick(event, this)'); ?>" title="<?php echo __('Cut', BWG()->prefix); ?>"></span>
112
+ <span class="dashicons dashicons-editor-paste-text ctrl_bar_btn" onclick="<?php echo (BWG()->is_demo ? 'alert(demo_message)' : 'onBtnPasteClick(event, this)'); ?>" title="<?php echo __('Paste', BWG()->prefix); ?>"></span>
113
+ <span class="dashicons dashicons-trash ctrl_bar_btn" onclick="<?php echo (BWG()->is_demo ? 'alert(demo_message)' : 'onBtnRemoveItemsClick(event, this)'); ?>" title="<?php echo __('Remove items', BWG()->prefix); ?>"></span>
114
+ <span class="ctrl_bar_divider">|</span>
115
  </div>
116
  <div class="ctrls_right">
117
+ <span class="dashicons dashicons-grid-view ctrl_bar_btn" onclick="onBtnViewThumbsClick(event, this);" title="<?php echo __('View thumbs', BWG()->prefix); ?>"></span>
118
+ <span class="dashicons dashicons-list-view ctrl_bar_btn" onclick="onBtnViewListClick(event, this);" title="<?php echo __('View list', BWG()->prefix); ?>"></span>
119
  </div>
120
  <div class="ctrls_left header_bar">
121
+ <span id="upload_images_cont" class="ctrl_bar_btn">
122
+ <a id="upload_images" class="button button-primary button-large" onclick="<?php echo (BWG()->is_demo ? 'alert(demo_message)' : 'onBtnShowUploaderClick(event, this)'); ?>"><?php echo __('Upload files', BWG()->prefix); ?></a>
123
  </span>
 
 
 
124
  <span id="search_by_name" class="ctrl_bar_btn">
125
  <input type="search" placeholder="Search" class="ctrl_bar_btn search_by_name">
126
  </span>
127
+
128
  </div>
129
  </div>
130
  <div id="path">
148
  <span class="item_name" title="<?php _e('Click to sort by name', BWG()->prefix); ?>">
149
  <span class="clickable" onclick="onNameHeaderClick(event, this);">
150
  <?php
151
+ echo '<span>'.__('Name', BWG()->prefix).'</span>';
152
  if ($sort_by == 'name') {
153
+ if( $sort_order == 'asc' ){
154
  ?>
155
+ <span class="dashicons dashicons-arrow-up"></span>
156
+ <?php } else { ?>
157
+ <span class="dashicons dashicons-arrow-down"></span>
158
  <?php
159
+ }
160
  }
161
  ?>
162
  </span>
164
  <span class="item_size" title="<?php _e('Click to sort by size', BWG()->prefix); ?>">
165
  <span class="clickable" onclick="onSizeHeaderClick(event, this);">
166
  <?php
167
+ echo '<span>'.__('Size', BWG()->prefix).'</span>';
168
  if ($sort_by == 'size') {
169
+ if( $sort_order == 'asc' ){
170
  ?>
171
+ <span class="dashicons dashicons-arrow-up"></span>
172
+ <?php } else { ?>
173
+ <span class="dashicons dashicons-arrow-down"></span>
174
  <?php
175
+ }
176
  }
177
  ?>
178
  </span>
180
  <span class="item_date_modified" title="<?php _e('Click to sort by date modified', BWG()->prefix); ?>">
181
  <span class="clickable" onclick="onDateModifiedHeaderClick(event, this);">
182
  <?php
183
+ echo '<span>'.__('Date modified', BWG()->prefix).'</span>';
184
  if ($sort_by == 'date_modified') {
185
+ if( $sort_order == 'asc' ){
186
  ?>
187
+ <span class="dashicons dashicons-arrow-up"></span>
188
+ <?php } else { ?>
189
+ <span class="dashicons dashicons-arrow-down"></span>
190
  <?php
191
+ }
192
  }
193
  ?>
194
  </span>
239
  <img src="<?php echo $file[ 'thumb' ]; ?>" <?php echo $key >= 24 ? 'onload="loaded()"' : ''; ?> />
240
  </span>
241
  <span class="item_icon">
242
+ <img src="<?php echo $file[ 'thumb' ]; ?>"/>
243
  </span>
244
  <span class="item_name">
245
  <?php echo $file[ 'name' ]; ?>
261
  </div>
262
  <div class="ctrls_bar ctrls_bar_footer">
263
  <div class="ctrls_left">
264
+ <a id="select_all_images" class="button button-primary button-large" onclick="onBtnSelectAllClick();"><?php echo __('Select All', BWG()->prefix); ?></a>
265
  </div>
266
  <div class="ctrls_right">
267
  <span id="file_names_span">
271
  <?php
272
  $add_image_btn = (isset($_REQUEST['callback']) && esc_html($_REQUEST['callback']) == 'bwg_add_image') ? __('Add selected images to gallery', BWG()->prefix) : __('Add', BWG()->prefix);
273
  ?>
274
+ <a id="add_selectid_img" title="<?php echo $add_image_btn; ?>" class="button button-primary button-large" onclick="window.parent.bwg_create_loading_block(); onBtnOpenClick(event, this);">
275
  <div id="bwg_img_add"><?php echo $add_image_btn; ?></div>
276
  </a>
277
+ <a class="button button-secondary button-large" title="<?php _e('Cancel', BWG()->prefix); ?>" onclick="onBtnCancelClick(event, this);">
 
278
  <div id="bwg_img_cancel"><?php _e('Cancel', BWG()->prefix); ?></div>
279
  </a>
280
  </div>
290
  <input type="text" class="upload_thumb_dim" name="upload_thumb_height" id="upload_thumb_height" value="<?php echo BWG()->options->upload_thumb_height; ?>" /> px
291
  </div>
292
  <div class="ctrls_right">
293
+ <span class="dashicons dashicons-arrow-left-alt ctrl_bar_btn" onclick="onBtnBackClick(event, this);" title="<?php echo __('Back', BWG()->prefix); ?>"></span>
294
  </div>
295
  <div class="ctrls_right_img upload_thumb">
296
  <div class="upload_thumb thumb_full_title"><?php _e("Image Max Dimensions:", BWG()->prefix); ?></div>
302
  <label for="jQueryUploader">
303
  <div id="uploader_hitter">
304
  <div id="drag_message">
305
+ <span><?php echo __('Choose or Drag files here', BWG()->prefix) . '<br />' . __('to upload',BWG()->prefix)?></span>
306
  </div>
307
  <div id="btnBrowseContainer">
308
  <?php
315
  </div>
316
  </div>
317
  </label>
318
+ <div id="bwg-errors-wrap">
319
+ <ul class="bwg-files-item"></ul>
320
+ </div>
321
  <div id="uploader_progress">
322
  <div id="uploader_progress_bar">
323
  <div></div>
345
  <input type="hidden" name="clipboard_dest" value="<?php echo $clipboard_dest; ?>" />
346
  </form>
347
  <script>
348
+ allowed_files = [];
349
+ not_uploading_files = [];
350
+ errorFiles = {};
351
+ errorMessages = {};
352
+ messages = {
353
+ 'uploaded' : '<?php _e('Uploaded', BWG()->prefix); ?>',
354
+ 'upload_failed' : '<?php _e('Upload failed', BWG()->prefix); ?>',
355
+ 'upload_problem': '<?php _e('There has been a problem while trying to upload the following images. Please try to upload them again.', BWG()->prefix); ?>',
356
+ 'allowed_upload_types' : '<?php _e('Allowed upload types JPG, JPEG, GIF, PNG.', BWG()->prefix); ?>'
357
+ }
358
  jQuery(window).load(function() {
359
+ jQuery("#loading_div", window.parent.document).hide();
360
  });
361
+
362
  jQuery("#jQueryUploader").fileupload({
363
  dataType: "json",
364
  dropZone: jQuery("#uploader_hitter"),
365
+ limitConcurrentUploads: 30, // upload step by step
366
+ acceptFileTypes: /(\.|\/)(jpe?g|gif|png)$/i,
367
  submit: function (e, data) {
 
368
  isUploading = true;
369
+ jQuery("#uploader_progress_text").removeClass("uploader_text");
370
  jQuery("#uploader_progress_bar").fadeIn();
371
  },
372
  progressall: function (e, data) {
373
  var progress = parseInt(data.loaded / data.total * 100, 10);
374
  jQuery("#uploader_progress_text").text("Progress " + progress + "%");
375
  jQuery("#uploader_progress div div").css({width: progress + "%"});
376
+ if ( data.loaded == data.total ) {
377
  isUploading = false;
378
  jQuery("#uploader_progress_bar").fadeOut(function () {
379
  jQuery("#uploader_progress_text").text(messageFilesUploadComplete);
382
  }
383
  },
384
  stop: function (e, data) {
385
+ jQuery("#bwg-errors-wrap .errors").remove();
386
+ jQuery("#bwg-errors-wrap .bwg-files-item").html('');
387
+ if ( errorMessages && Object.keys(errorMessages).length > 0 ) {
388
+ var html = '';
389
+ jQuery.each( errorMessages, function( index, message ) {
390
+ html += '<div class="errors ' + index + '">';
391
+ html += '<div class="error"><p>' + message + '</p></div>';
392
+ if ( errorFiles[index] && errorFiles[index].length > 0 ) {
393
+ html += '<ul class="bwg-files-item">';
394
+ jQuery.each( errorFiles[index], function( key, value ) {
395
+ html += '<li class="uploaded_item_failed">' + value + ' (' + messages.upload_failed + ')</li>';
396
+ });
397
+ html += '</ul>';
398
+ errorFiles[index] = {};
399
+ }
400
+ html += '</div>';
401
+ });
402
+ jQuery("#bwg-errors-wrap").prepend( html );
403
+ errorMessages = {};
404
+ allowed_files = [];
405
+ not_uploading_files = [];
406
+ }
407
+ else {
408
+ onBtnBackClick();
409
+ }
410
  },
411
  done: function (e, data) {
412
+ jQuery("#bwg-errors-wrap .errors").remove();
413
+ var html = '';
414
+ jQuery.each( data.result.files, function (index, file) {
415
+ if ( file.error ) {
416
+ allowed_files.push( file.name );
417
+ errorFiles['allowed'] = allowed_files;
418
+ errorMessages['allowed'] = messages.allowed_upload_types;
419
+ html += '<li class="uploaded_item_failed">' + file.name + ' (' + messages.upload_failed + ')</li>';
420
+ }
421
+ else {
422
+ html += '<li class="uploaded_item">' + file.name + ' (' + messages.uploaded + ')</li>';
423
+ }
424
+ jQuery("#bwg-errors-wrap .bwg-files-item").prepend( html );
425
  });
426
+ },
427
+ fail: function (e, data) {
428
+ if ( data.textStatus == 'error' ) {
429
+ var filename = data.files[0].name;
430
+ var regex = /\.(jpe?g|png|gif)$/i;
431
+ if ( ! regex.test(filename) ) {
432
+ allowed_files.push(filename);
433
+ errorFiles['allowed'] = allowed_files;
434
+ errorMessages['allowed'] = messages.allowed_upload_types;
435
+ return;
436
+ }
437
+ not_uploading_files.push( filename );
438
+ errorFiles['not_uploading'] = not_uploading_files;
439
+ errorMessages['not_uploading'] = messages.upload_problem;
440
+ }
441
  }
442
  });
443
  </script>
444
  <?php
445
  die();
446
  }
447
+ }
framework/BWGOptions.php CHANGED
@@ -60,6 +60,7 @@ class WD_BWG_Options {
60
  public $masonry_show_tag_box = 0;
61
  public $masonry_show_gallery_title = 0;
62
  public $masonry_show_gallery_description = 0;
 
63
  public $masonry_play_icon = 1;
64
  public $masonry_gallery_download = 0;
65
  public $masonry_ecommerce_icon_show_hover = 'none';
@@ -118,6 +119,8 @@ class WD_BWG_Options {
118
  public $image_browser_show_gallery_title = 0;
119
  public $image_browser_show_gallery_description = 0;
120
  public $image_browser_show_search_box = 0;
 
 
121
  public $image_browser_placeholder = 'Search';
122
  public $image_browser_search_box_width = 180;
123
  public $image_browser_gallery_download = 0;
@@ -202,6 +205,7 @@ class WD_BWG_Options {
202
  public $album_masonry_show_tag_box = 0;
203
  public $show_album_masonry_name = 0;
204
  public $album_masonry_show_gallery_description = 0;
 
205
  public $album_masonry_gallery_download = 0;
206
  public $album_masonry_ecommerce_icon_show_hover = 'none';
207
 
60
  public $masonry_show_tag_box = 0;
61
  public $masonry_show_gallery_title = 0;
62
  public $masonry_show_gallery_description = 0;
63
+ public $masonry_image_title = 'none';
64
  public $masonry_play_icon = 1;
65
  public $masonry_gallery_download = 0;
66
  public $masonry_ecommerce_icon_show_hover = 'none';
119
  public $image_browser_show_gallery_title = 0;
120
  public $image_browser_show_gallery_description = 0;
121
  public $image_browser_show_search_box = 0;
122
+ public $image_browser_show_sort_images = 0;
123
+ public $image_browser_show_tag_box = 0;
124
  public $image_browser_placeholder = 'Search';
125
  public $image_browser_search_box_width = 180;
126
  public $image_browser_gallery_download = 0;
205
  public $album_masonry_show_tag_box = 0;
206
  public $show_album_masonry_name = 0;
207
  public $album_masonry_show_gallery_description = 0;
208
+ public $album_masonry_image_title = 0;
209
  public $album_masonry_gallery_download = 0;
210
  public $album_masonry_ecommerce_icon_show_hover = 'none';
211
 
framework/WDWLibrary.php CHANGED
@@ -172,7 +172,7 @@ class WDWLibrary {
172
  break;
173
  }
174
  case 20: {
175
- $message = __('Items successfully reset.', BWG()->prefix);
176
  $type = 'updated';
177
  break;
178
  }
@@ -201,7 +201,7 @@ class WDWLibrary {
201
  $type = 'updated';
202
  break;
203
  }
204
- case 26: {
205
  $message = __('Watermark could not be set. The image URL is incorrect.', BWG()->prefix);
206
  $type = 'error';
207
  break;
@@ -226,7 +226,7 @@ class WDWLibrary {
226
  }
227
 
228
  public static function message($message, $type) {
229
- return '<div style="width:99%"><div class="' . $type . '"><p><strong>' . $message . '</strong></p></div></div>';
230
  }
231
 
232
  /**
@@ -736,13 +736,98 @@ class WDWLibrary {
736
  return $google_fonts;
737
  }
738
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
739
  public static function get_used_google_fonts($theme = null, $shortcode = null) {
740
  global $wpdb;
741
 
742
  $google_array = array();
743
  $google_fonts = self::get_google_fonts();
744
  if (null === $theme) {
745
- $theme = $wpdb->get_results('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme');
746
  }
747
  else {
748
  $theme = array($theme);
@@ -756,15 +841,48 @@ class WDWLibrary {
756
  if ($shortcode_google_fonts) {
757
  foreach($shortcode_google_fonts as $shortcode_google_font){
758
  $shortcode_font_string = $shortcode_google_font->tagtext;
759
- $len_start = strpos($shortcode_font_string, 'watermark_font="');
760
- $len_current = strpos(substr($shortcode_font_string, $len_start), '"');
761
- $len_end = strpos(substr(substr($shortcode_font_string, $len_start), $len_current + 1), '"');
762
- $shortcode_fonts = str_replace('"', '', substr(substr($shortcode_font_string, $len_start), $len_current, $len_end + 1));
763
  if (true == in_array($shortcode_fonts, $google_fonts)) {
764
  $google_array[$shortcode_fonts] = $shortcode_fonts;
765
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
766
  }
767
  }
 
 
768
  if ($theme) {
769
  foreach ($theme as $row) {
770
  if (isset($row->options)) {
@@ -781,7 +899,14 @@ class WDWLibrary {
781
  if (true == in_array(BWG()->options->watermark_font, $google_fonts)) {
782
  $google_array[BWG()->options->watermark_font] = BWG()->options->watermark_font;
783
  }
784
- return $google_array;
 
 
 
 
 
 
 
785
  }
786
 
787
  public static function get_default_theme_id() {
@@ -992,23 +1117,23 @@ class WDWLibrary {
992
  $gallery_id = (int) $gallery_id;
993
  $tag = (int) $tag;
994
  global $wpdb;
995
- $bwg_search = self::get('bwg_search_' . $bwg);
996
 
997
  $join = '';
998
  $where = '';
999
- if ( $bwg_search ) {
1000
- $bwg_search_keys = explode(' ', trim($bwg_search));
1001
- $alt_search = '(';
1002
- $description_search = '(';
1003
- foreach( $bwg_search_keys as $search_key) {
1004
- $alt_search .= '`image`.`alt` LIKE "%' . $search_key . '%" AND ';
1005
- $description_search .= '`image`.`description` LIKE "%' . $search_key . '%" AND ';
1006
- }
1007
- $alt_search = rtrim($alt_search, 'AND ');
1008
- $alt_search .= ')';
1009
- $description_search = rtrim($description_search, 'AND ');
1010
- $description_search .= ')';
1011
- $where = 'AND (' . $alt_search . ' OR ' . $description_search . ')';
1012
  }
1013
  if ( $sort_by == 'size' || $sort_by == 'resolution' ) {
1014
  $sort_by = ' CAST(image.' . $sort_by . ' AS SIGNED) ';
@@ -1114,13 +1239,14 @@ class WDWLibrary {
1114
  $limit_str = 'LIMIT 0,' . $limit;
1115
  }
1116
  }
 
1117
  // Select all galleries
1118
  if ( $id == 0 ) {
1119
- $row = $wpdb->get_results( 'SELECT * FROM ' . $wpdb->prefix . 'bwg_gallery WHERE `published`=1 ' . $order_by . ' ' . $limit_str );
1120
- $total = $wpdb->get_var( 'SELECT COUNT(*) FROM ' . $wpdb->prefix . 'bwg_gallery' );
1121
  } else {
1122
- $row = $wpdb->get_results( $wpdb->prepare( 'SELECT * FROM ' . $wpdb->prefix . 'bwg_album_gallery WHERE album_id="%d" ' . $order_by . ' ' . $limit_str, $id ) );
1123
- $total = $wpdb->get_var( $wpdb->prepare( 'SELECT COUNT(*) FROM ' . $wpdb->prefix . 'bwg_album_gallery WHERE album_id="%d"', $id ) );
1124
  }
1125
  $page_nav[ 'total' ] = $total;
1126
  $page_nav[ 'limit' ] = 1;
@@ -1145,11 +1271,10 @@ class WDWLibrary {
1145
 
1146
  if ( $options->built_in_watermark_type != 'none' ) {
1147
  $limitstart = '';
1148
- if ( $limit != '' ) {
1149
  $limitstart = ' LIMIT 50 OFFSET ' . $limit;
1150
  }
1151
-
1152
- $where = (($gallery_id) ? ' `gallery_id`=' . $gallery_id . ($image_id ? ' AND `id`=' . $image_id : '') : 1);
1153
  $search = WDWLibrary::get( 's', '' );
1154
  if ( $search ) {
1155
  $where .= ' AND `filename` LIKE "%' . $search . '%"';
@@ -1186,7 +1311,6 @@ class WDWLibrary {
1186
  }
1187
 
1188
  public static function set_text_watermark($original_filename, $dest_filename, $watermark_text, $watermark_font, $watermark_font_size, $watermark_color, $watermark_transparency, $watermark_position) {
1189
-
1190
  $original_filename = htmlspecialchars_decode($original_filename, ENT_COMPAT | ENT_QUOTES);
1191
  $dest_filename = htmlspecialchars_decode($dest_filename, ENT_COMPAT | ENT_QUOTES);
1192
 
@@ -1250,87 +1374,87 @@ class WDWLibrary {
1250
  }
1251
 
1252
  public static function set_image_watermark($original_filename, $dest_filename, $watermark_url, $watermark_height, $watermark_width, $watermark_position) {
1253
- if ( !empty($watermark_url) ) {
1254
- $original_filename = htmlspecialchars_decode($original_filename, ENT_COMPAT | ENT_QUOTES);
1255
- $dest_filename = htmlspecialchars_decode($dest_filename, ENT_COMPAT | ENT_QUOTES);
1256
- $watermark_url = htmlspecialchars_decode($watermark_url, ENT_COMPAT | ENT_QUOTES);
1257
-
1258
- list($width, $height, $type) = getimagesize($original_filename);
1259
- list($width_watermark, $height_watermark, $type_watermark) = getimagesize($watermark_url);
1260
-
1261
- $watermark_width = $width * $watermark_width / 100;
1262
- $watermark_height = $height_watermark * $watermark_width / $width_watermark;
1263
-
1264
- $watermark_position = explode('-', $watermark_position);
1265
- $top = $height - $watermark_height - 5;
1266
- $left = $width - $watermark_width - 5;
1267
- switch ($watermark_position[0]) {
1268
- case 'top':
1269
- $top = 5;
1270
- break;
1271
- case 'middle':
1272
- $top = ($height - $watermark_height) / 2;
1273
- break;
1274
- }
1275
- switch ($watermark_position[1]) {
1276
- case 'left':
1277
- $left = 5;
1278
- break;
1279
- case 'center':
1280
- $left = ($width - $watermark_width) / 2;
1281
- break;
1282
- }
1283
- @ini_set('memory_limit', '-1');
1284
- if ($type_watermark == 2) {
1285
- $watermark_image = imagecreatefromjpeg($watermark_url);
1286
- }
1287
- elseif ($type_watermark == 3) {
1288
- $watermark_image = imagecreatefrompng($watermark_url);
1289
- }
1290
- elseif ($type_watermark == 1) {
1291
- $watermark_image = imagecreatefromgif($watermark_url);
1292
- }
1293
- else {
1294
- return false;
1295
- }
1296
 
1297
- $watermark_image_resized = imagecreatetruecolor($watermark_width, $watermark_height);
1298
- imagecolorallocatealpha($watermark_image_resized, 255, 255, 255, 127);
1299
- imagealphablending($watermark_image_resized, FALSE);
1300
- imagesavealpha($watermark_image_resized, TRUE);
1301
- imagecopyresampled ($watermark_image_resized, $watermark_image, 0, 0, 0, 0, $watermark_width, $watermark_height, $width_watermark, $height_watermark);
1302
-
1303
- if ($type == 2) {
1304
- $image = imagecreatefromjpeg($original_filename);
1305
- imagecopy($image, $watermark_image_resized, $left, $top, 0, 0, $watermark_width, $watermark_height);
1306
- if ($dest_filename <> '') {
1307
- imagejpeg ($image, $dest_filename, BWG()->options->jpeg_quality);
1308
- } else {
1309
- header('Content-Type: image/jpeg');
1310
- imagejpeg($image, null, BWG()->options->jpeg_quality);
1311
- };
1312
- imagedestroy($image);
1313
- }
1314
- elseif ($type == 3) {
1315
- $image = imagecreatefrompng($original_filename);
1316
- imagecopy($image, $watermark_image_resized, $left, $top, 0, 0, $watermark_width, $watermark_height);
1317
- imagealphablending($image, FALSE);
1318
- imagesavealpha($image, TRUE);
1319
- imagepng($image, $dest_filename, BWG()->options->png_quality);
1320
- imagedestroy($image);
1321
- }
1322
- elseif ($type == 1) {
1323
- $image = imagecreatefromgif($original_filename);
1324
- $tempimage = imagecreatetruecolor($width, $height);
1325
- imagecopy($tempimage, $image, 0, 0, 0, 0, $width, $height);
1326
- imagecopy($tempimage, $watermark_image_resized, $left, $top, 0, 0, $watermark_width, $watermark_height);
1327
- imagegif($tempimage, $dest_filename);
1328
- imagedestroy($image);
1329
- imagedestroy($tempimage);
1330
- }
1331
- imagedestroy($watermark_image);
1332
- @ini_restore('memory_limit');
1333
- }
1334
  }
1335
 
1336
  public static function bwg_image_recover_all($gallery_id, $limit = '') {
@@ -1343,11 +1467,10 @@ class WDWLibrary {
1343
  $where .= ' AND `filename` LIKE "%' . $search . '%"';
1344
  }
1345
  $limitstart = '';
1346
- if ( $limit != '' ) {
1347
  $limitstart = ' LIMIT 50 OFFSET ' . $limit;
1348
  }
1349
-
1350
- $images = $wpdb->get_results( 'SELECT * FROM `' . $wpdb->prefix . 'bwg_image` WHERE ' . $where. $limitstart );
1351
  if ( !empty( $images ) ) {
1352
  foreach ( $images as $image ) {
1353
  if ( preg_match( '/EMBED/', $image->filetype ) == 1 ) {
@@ -1359,6 +1482,30 @@ class WDWLibrary {
1359
  self::update_image_modified_date( $where );
1360
  }
1361
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1362
  public static function recover_image($image, $thumb_width, $width, $page) {
1363
  if ( preg_match('/EMBED/', $image->filetype) == 1 ) {
1364
  return;
@@ -1366,22 +1513,24 @@ class WDWLibrary {
1366
  $filename = htmlspecialchars_decode(BWG()->upload_dir . $image->image_url, ENT_COMPAT | ENT_QUOTES);
1367
  $thumb_filename = htmlspecialchars_decode(BWG()->upload_dir . $image->thumb_url, ENT_COMPAT | ENT_QUOTES);
1368
  $original_filename = str_replace('/thumb/', '/.original/', $thumb_filename);
1369
- if (file_exists($original_filename) || file_exists($filename)) {
1370
- if (!file_exists($original_filename)) {
1371
- copy($filename, $original_filename);
1372
- }
1373
- $original_image = wp_get_image_editor( $original_filename );
1374
- if ( ! is_wp_error( $original_image ) ) {
1375
- $get_size = $original_image->get_size();
1376
- $width_orig = $get_size['width'];
1377
- $height_orig = $get_size['height'];
1378
- $original_image->set_quality(BWG()->options->image_quality);
1379
- self::recover_image_size($width_orig, $height_orig, $width, $original_image, $filename);
1380
- self::recover_image_size($width_orig, $height_orig, $thumb_width, $original_image, $thumb_filename);
1381
- }
1382
- else {
1383
- copy($original_filename, $filename);
1384
- copy($original_filename, $thumb_filename);
 
 
1385
  }
1386
  }
1387
  if ($page == 'gallery_page') {
@@ -1674,9 +1823,9 @@ class WDWLibrary {
1674
  case 'thumbnails':
1675
  $defaults['thumb_width'] = self::get_option_value('thumb_width', 'thumb_width', 'thumb_width', $use_option_defaults, $params);
1676
  $defaults['thumb_height'] = self::get_option_value('thumb_height', 'thumb_height', 'thumb_height', $use_option_defaults, $params);
1677
- $defaults['image_column_number'] = self::get_option_value('image_column_number', 'image_column_number', 'image_column_number', $use_option_defaults, $params);
1678
  $defaults['image_enable_page'] = self::get_option_value('image_enable_page', 'image_enable_page', 'image_enable_page', $use_option_defaults, $params);
1679
- $defaults['images_per_page'] = self::get_option_value('images_per_page', 'images_per_page', 'images_per_page', $use_option_defaults, $params);
1680
  $defaults['load_more_image_count'] = self::get_option_value('load_more_image_count', 'load_more_image_count', 'load_more_image_count', $use_option_defaults, $params);
1681
  $defaults['sort_by'] = self::get_option_value('sort_by', 'sort_by', 'sort_by', $use_option_defaults, $params);
1682
  $defaults['order_by'] = self::get_option_value('order_by', 'order_by', 'order_by', $use_option_defaults, $params);
@@ -1697,9 +1846,9 @@ class WDWLibrary {
1697
  $defaults['show_masonry_thumb_description'] = self::get_option_value('show_masonry_thumb_description', 'show_masonry_thumb_description', 'show_masonry_thumb_description', $use_option_defaults, $params);
1698
  $defaults['thumb_width'] = self::get_option_value('masonry_thumb_size', 'thumb_width', 'masonry_thumb_size', $use_option_defaults, $params);
1699
  $defaults['thumb_height'] = self::get_option_value('masonry_thumb_size', 'thumb_height', 'masonry_thumb_size', $use_option_defaults, $params);
1700
- $defaults['image_column_number'] = self::get_option_value('masonry_image_column_number', 'image_column_number', 'masonry_image_column_number', $use_option_defaults, $params);
1701
  $defaults['image_enable_page'] = self::get_option_value('masonry_image_enable_page', 'image_enable_page', 'masonry_image_enable_page', $use_option_defaults, $params);
1702
- $defaults['images_per_page'] = self::get_option_value('masonry_images_per_page', 'images_per_page', 'masonry_images_per_page', $use_option_defaults, $params);
1703
  $defaults['load_more_image_count'] = self::get_option_value('masonry_load_more_image_count', 'load_more_image_count', 'masonry_load_more_image_count', $use_option_defaults, $params);
1704
  $defaults['sort_by'] = self::get_option_value('masonry_sort_by', 'sort_by', 'masonry_sort_by', $use_option_defaults, $params);
1705
  $defaults['order_by'] = self::get_option_value('masonry_order_by', 'order_by', 'masonry_order_by', $use_option_defaults, $params);
@@ -1710,6 +1859,7 @@ class WDWLibrary {
1710
  $defaults['show_tag_box'] = self::get_option_value('masonry_show_tag_box', 'show_tag_box', 'masonry_show_tag_box', $use_option_defaults, $params);
1711
  $defaults['showthumbs_name'] = self::get_option_value('masonry_show_gallery_title', 'showthumbs_name', 'masonry_show_gallery_title', $use_option_defaults, $params);
1712
  $defaults['show_gallery_description'] = self::get_option_value('masonry_show_gallery_description', 'show_gallery_description', 'masonry_show_gallery_description', $use_option_defaults, $params);
 
1713
  $defaults['play_icon'] = self::get_option_value('masonry_play_icon', 'play_icon', 'masonry_play_icon', $use_option_defaults, $params);
1714
  $defaults['gallery_download'] = self::get_option_value('masonry_gallery_download', 'gallery_download', 'masonry_gallery_download', $use_option_defaults, $params);
1715
  $defaults['ecommerce_icon'] = self::get_option_value('masonry_ecommerce_icon_show_hover', 'ecommerce_icon', 'masonry_ecommerce_icon_show_hover', $use_option_defaults, $params);
@@ -1721,7 +1871,7 @@ class WDWLibrary {
1721
  $defaults['thumb_width'] = self::get_option_value('mosaic_thumb_size', 'thumb_width', 'mosaic_thumb_size', $use_option_defaults, $params);
1722
  $defaults['thumb_height'] = self::get_option_value('mosaic_thumb_size', 'thumb_height', 'mosaic_thumb_size', $use_option_defaults, $params);
1723
  $defaults['image_enable_page'] = self::get_option_value('mosaic_image_enable_page', 'image_enable_page', 'mosaic_image_enable_page', $use_option_defaults, $params);
1724
- $defaults['images_per_page'] = self::get_option_value('mosaic_images_per_page', 'images_per_page', 'mosaic_images_per_page', $use_option_defaults, $params);
1725
  $defaults['load_more_image_count'] = self::get_option_value('mosaic_load_more_image_count', 'load_more_image_count', 'mosaic_load_more_image_count', $use_option_defaults, $params);
1726
  $defaults['sort_by'] = self::get_option_value('mosaic_sort_by', 'sort_by', 'mosaic_sort_by', $use_option_defaults, $params);
1727
  $defaults['order_by'] = self::get_option_value('mosaic_order_by', 'order_by', 'mosaic_order_by', $use_option_defaults, $params);
@@ -1770,6 +1920,8 @@ class WDWLibrary {
1770
  $defaults['showthumbs_name'] = self::get_option_value('image_browser_show_gallery_title', 'showthumbs_name', 'image_browser_show_gallery_title', $use_option_defaults, $params);
1771
  $defaults['show_gallery_description'] = self::get_option_value('image_browser_show_gallery_description', 'show_gallery_description', 'image_browser_show_gallery_description', $use_option_defaults, $params);
1772
  $defaults['show_search_box'] = self::get_option_value('image_browser_show_search_box', 'show_search_box', 'image_browser_show_search_box', $use_option_defaults, $params);
 
 
1773
  $defaults['placeholder'] = self::get_option_value('image_browser_placeholder', 'placeholder', 'image_browser_placeholder', $use_option_defaults, $params);
1774
  $defaults['search_box_width'] = self::get_option_value('image_browser_search_box_width', 'search_box_width', 'image_browser_search_box_width', $use_option_defaults, $params);
1775
  $defaults['gallery_download'] = self::get_option_value('image_browser_gallery_download', 'gallery_download', 'image_browser_gallery_download', $use_option_defaults, $params);
@@ -1798,8 +1950,8 @@ class WDWLibrary {
1798
  $defaults['carousel_height'] = self::get_option_value('carousel_height', 'carousel_height', 'carousel_height', $use_option_defaults, $params);
1799
  $defaults['carousel_image_column_number'] = self::get_option_value('carousel_image_column_number', 'carousel_image_column_number', 'carousel_image_column_number', $use_option_defaults, $params);
1800
  $defaults['carousel_image_par'] = self::get_option_value('carousel_image_par', 'carousel_image_par', 'carousel_image_par', $use_option_defaults, $params);
1801
- $defaults['enable_carousel_title'] = self::get_option_value('carousel_enable_title', 'carousel_enable_title', 'carousel_enable_title', $use_option_defaults, $params);
1802
- $defaults['carousel_enable_autoplay'] = self::get_option_value('carousel_enable_autoplay', 'carousel_enable_autoplay', 'carousel_enable_autoplay', $use_option_defaults, $params);
1803
  $defaults['carousel_r_width'] = self::get_option_value('carousel_r_width', 'carousel_r_width', 'carousel_r_width', $use_option_defaults, $params);
1804
  $defaults['carousel_fit_containerWidth'] = self::get_option_value('carousel_fit_containerWidth', 'carousel_fit_containerWidth', 'carousel_fit_containerWidth', $use_option_defaults, $params);
1805
  $defaults['carousel_prev_next_butt'] = self::get_option_value('carousel_prev_next_butt', 'carousel_prev_next_butt', 'carousel_prev_next_butt', $use_option_defaults, $params);
@@ -1852,8 +2004,9 @@ class WDWLibrary {
1852
  $defaults['search_box_width'] = self::get_option_value('album_masonry_search_box_width', 'search_box_width', 'album_masonry_search_box_width', $use_option_defaults, $params);
1853
  $defaults['show_sort_images'] = self::get_option_value('album_masonry_show_sort_images', 'show_sort_images', 'album_masonry_show_sort_images', $use_option_defaults, $params);
1854
  $defaults['show_tag_box'] = self::get_option_value('album_masonry_show_tag_box', 'show_tag_box', 'album_masonry_show_tag_box', $use_option_defaults, $params);
1855
- $defaults['show_album_masonry_name'] = self::get_option_value('show_album_masonry_name', 'show_album_masonry_name', 'show_album_masonry_name', $use_option_defaults, $params);
1856
  $defaults['show_gallery_description'] = self::get_option_value('album_masonry_show_gallery_description', 'show_gallery_description', 'album_masonry_show_gallery_description', $use_option_defaults, $params);
 
1857
  $defaults['gallery_download'] = self::get_option_value('album_masonry_gallery_download', 'gallery_download', 'album_masonry_gallery_download', $use_option_defaults, $params);
1858
  $defaults['ecommerce_icon'] = self::get_option_value('album_masonry_ecommerce_icon_show_hover', 'ecommerce_icon', 'album_masonry_ecommerce_icon_show_hover', $use_option_defaults, $params);
1859
  break;
@@ -1874,11 +2027,14 @@ class WDWLibrary {
1874
  $defaults['search_box_width'] = self::get_option_value('album_extended_search_box_width', 'search_box_width', 'album_extended_search_box_width', $use_option_defaults, $params);
1875
  $defaults['show_sort_images'] = self::get_option_value('album_extended_show_sort_images', 'show_sort_images', 'album_extended_show_sort_images', $use_option_defaults, $params);
1876
  $defaults['show_tag_box'] = self::get_option_value('album_extended_show_tag_box', 'show_tag_box', 'album_extended_show_tag_box', $use_option_defaults, $params);
1877
- $defaults['show_album_extended_name'] = self::get_option_value('show_album_extended_name', 'show_album_extended_name', 'show_album_extended_name', $use_option_defaults, $params);
1878
- $defaults['extended_album_description_enable'] = self::get_option_value('extended_album_description_enable', 'extended_album_description_enable', 'extended_album_description_enable', $use_option_defaults, $params);
1879
  $defaults['show_gallery_description'] = self::get_option_value('album_extended_show_gallery_description', 'show_gallery_description', 'album_extended_show_gallery_description', $use_option_defaults, $params);
 
1880
  $defaults['extended_album_view_type'] = self::get_option_value('extended_album_view_type', 'extended_album_view_type', 'album_extended_view_type', $use_option_defaults, $params);
1881
  $defaults['extended_album_image_title'] = self::get_option_value('extended_album_image_title', 'extended_album_image_title', 'album_extended_image_title_show_hover', $use_option_defaults, $params);
 
 
 
1882
  $defaults['play_icon'] = self::get_option_value('album_extended_play_icon', 'play_icon', 'album_extended_play_icon', $use_option_defaults, $params);
1883
  $defaults['gallery_download'] = self::get_option_value('album_extended_gallery_download', 'gallery_download', 'album_extended_gallery_download', $use_option_defaults, $params);
1884
  $defaults['ecommerce_icon'] = self::get_option_value('album_extended_ecommerce_icon_show_hover', 'ecommerce_icon', 'album_extended_ecommerce_icon_show_hover', $use_option_defaults, $params);
@@ -1973,12 +2129,24 @@ class WDWLibrary {
1973
  return $str;
1974
  }
1975
 
 
 
 
 
 
 
 
 
 
 
1976
  /**
1977
  * Register custom taxonomies to use in plugin.
1978
  */
1979
  public static function register_custom_taxonomies() {
1980
  // Register bwg_tag taxonomy.
1981
  self::create_bwg_tag();
 
 
1982
  // Set Photo Gallery menu as parent for bwg_tag.
1983
  add_action('parent_file', array('WDWLibrary', 'menu_highlight'));
1984
  // Save/update bwg_tag.
@@ -2005,6 +2173,7 @@ class WDWLibrary {
2005
  }
2006
 
2007
  public static function update_bwg_tag($term_id) {
 
2008
  // Create custom post (type is tag).
2009
  $term = get_term($term_id, 'bwg_tag');
2010
  $custom_post_params = array(
@@ -2016,6 +2185,8 @@ class WDWLibrary {
2016
  'mode' => '',
2017
  ),
2018
  );
 
 
2019
  WDWLibrary::bwg_create_custom_post($custom_post_params);
2020
  }
2021
 
@@ -2163,323 +2334,6 @@ class WDWLibrary {
2163
  return $url;
2164
  }
2165
 
2166
- // TODO: To be removed when all views are ready.
2167
- public static function get_theme_row_data($id) {
2168
- global $wpdb;
2169
- if ($id) {
2170
- $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE id="%d"', $id));
2171
- }
2172
- else {
2173
- $row = $wpdb->get_row('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme WHERE default_theme=1');
2174
- }
2175
- if (isset($row->options)) {
2176
- $row = (object) array_merge((array) $row, (array) json_decode($row->options));
2177
- }
2178
-
2179
- // TODO: For old views. Delete after changing all views.
2180
- if ( $row->thumb_hover_effect == 'zoom' ) {
2181
- $row->thumb_hover_effect = 'scale';
2182
- }
2183
-
2184
- return $row;
2185
- }
2186
-
2187
- public static function get_gallery_row_data($id, $from = '') {
2188
- global $wpdb;
2189
- $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_gallery WHERE published=1 AND id="%d"', $id));
2190
- if ($row) {
2191
- $row->permalink = '';
2192
- if ($from != '') {
2193
- $row->permalink = self::get_custom_post_permalink( array( 'slug' => $row->slug, 'post_type' => 'gallery' ) );
2194
- }
2195
- if ( !empty($row->preview_image) ) {
2196
- $row->preview_image = self::image_url_version($row->preview_image, $row->modified_date);
2197
- }
2198
- if ( !empty($row->random_preview_image) ) {
2199
- $row->random_preview_image = self::image_url_version($row->random_preview_image, $row->modified_date);
2200
- }
2201
- }
2202
- else if ( $id == 0 ) {
2203
- $row_count = $wpdb->get_var('SELECT COUNT(*) FROM ' . $wpdb->prefix . 'bwg_gallery WHERE published=1');
2204
- if (!$row_count) {
2205
- return false;
2206
- }
2207
- else {
2208
- $row = new stdClass();
2209
- $row->name = '';
2210
- }
2211
- }
2212
- return $row;
2213
- }
2214
-
2215
- public static function get_tags_rows_data($gallery_id) {
2216
- global $wpdb;
2217
- $row = $wpdb->get_results('Select t1.* FROM ' . $wpdb->prefix . 'terms AS t1 LEFT JOIN ' . $wpdb->prefix . 'term_taxonomy AS t2 ON t1.term_id = t2.term_id' . ($gallery_id ? ' LEFT JOIN (SELECT DISTINCT tag_id , gallery_id FROM ' . $wpdb->prefix . 'bwg_image_tag) AS t3 ON t1.term_id=t3.tag_id' : '') . ' WHERE taxonomy="bwg_tag"' . ($gallery_id ? ' AND t3.gallery_id="' . $gallery_id . '"' : '') . ' ORDER BY t1.name ASC');
2218
- return $row;
2219
- }
2220
-
2221
- public static function ajax_html_frontend_search_box($form_id, $current_view, $cur_gal_id, $images_count, $search_box_width = 180, $placeholder = '', $album_gallery_id = 0) {
2222
- $bwg_search = ((isset($_POST['bwg_search_' . $current_view]) && esc_html($_POST['bwg_search_' . $current_view]) != '') ? esc_html($_POST['bwg_search_' . $current_view]) : '');
2223
- $type = (isset($_POST['type_' . $current_view]) ? esc_html($_POST['type_' . $current_view]) : ($album_gallery_id ? 'gallery' : 'album'));
2224
- $album_gallery_id = (isset($_POST['album_gallery_id_' . $current_view]) ? esc_html($_POST['album_gallery_id_' . $current_view]) : ( $album_gallery_id ? $album_gallery_id : 0));
2225
-
2226
- ob_start();
2227
- ?>
2228
- #bwg_search_container_2_<?php echo $current_view; ?> {
2229
- width: <?php echo $search_box_width; ?>px;
2230
- }
2231
- <?php
2232
- $inline_style = ob_get_clean();
2233
-
2234
- if (BWG()->options->use_inline_stiles_and_scripts) {
2235
- wp_add_inline_style('bwg_frontend', $inline_style);
2236
- }
2237
- else {
2238
- echo '<style>' . $inline_style . '</style>';
2239
- }
2240
- ?>
2241
- <div class="bwg_search_container_1" id="bwg_search_container_1_<?php echo $current_view; ?>">
2242
- <div class="bwg_search_container_2" id="bwg_search_container_2_<?php echo $current_view; ?>">
2243
- <span class="bwg_search_reset_container" >
2244
- <i title="<?php echo __('Reset', BWG()->prefix); ?>" class="bwg_reset fa fa-times" onclick="bwg_clear_search_input('<?php echo $current_view; ?>'),spider_frontend_ajax('<?php echo $form_id; ?>', '<?php echo $current_view; ?>', '<?php echo $cur_gal_id; ?>', <?php echo $album_gallery_id; ?>, '', '<?php echo $type; ?>', 1)"></i>
2245
- </span>
2246
- <span class="bwg_search_loupe_container" >
2247
- <i title="<?php echo __('Search', BWG()->prefix); ?>" class="bwg_search fa fa-search" onclick="spider_frontend_ajax('<?php echo $form_id; ?>', '<?php echo $current_view; ?>', '<?php echo $cur_gal_id; ?>', <?php echo $album_gallery_id; ?>, '', '<?php echo $type; ?>', 1)"></i>
2248
- </span>
2249
- <span class="bwg_search_input_container">
2250
- <input id="bwg_search_input_<?php echo $current_view; ?>" class="bwg_search_input" type="text" onkeypress="return bwg_check_search_input_enter(this, event)" name="bwg_search_<?php echo $current_view; ?>" value="<?php echo $bwg_search; ?>" placeholder="<?php echo $placeholder; ?>" />
2251
- <input id="bwg_images_count_<?php echo $current_view; ?>" class="bwg_search_input" type="hidden" name="bwg_images_count_<?php echo $current_view; ?>" value="333<?php echo $images_count; ?>" >
2252
- </span>
2253
- </div>
2254
- </div>
2255
- <?php
2256
- }
2257
-
2258
- public static function ajax_html_frontend_sort_box($form_id, $current_view, $cur_gal_id, $sort_by = '', $search_box_width = 180) {
2259
- $type = (isset($_POST['type_' . $current_view]) ? esc_html($_POST['type_' . $current_view]) : 'album');
2260
- $album_gallery_id = (isset($_POST['album_gallery_id_' . $current_view]) ? esc_html($_POST['album_gallery_id_' . $current_view]) : 0);
2261
-
2262
- ob_start();
2263
- ?>
2264
- #bwg_order_<?php echo $current_view; ?> {
2265
- width: <?php echo $search_box_width; ?>px;
2266
- }
2267
- <?php
2268
- $inline_style = ob_get_clean();
2269
-
2270
- if (BWG()->options->use_inline_stiles_and_scripts) {
2271
- wp_add_inline_style('bwg_frontend', $inline_style);
2272
- }
2273
- else {
2274
- echo '<style>' . $inline_style . '</style>';
2275
- }
2276
- ?>
2277
- <div class="bwg_order_cont">
2278
- <span class="bwg_order_label"><?php echo __('Order by: ', BWG()->prefix); ?></span>
2279
- <select id="bwg_order_<?php echo $current_view; ?>" class="bwg_order" onchange="spider_frontend_ajax('<?php echo $form_id; ?>', '<?php echo $current_view; ?>', '<?php echo $cur_gal_id; ?>', <?php echo $album_gallery_id; ?>, '', '<?php echo $type; ?>', 1, '', this.value)">
2280
- <option <?php if ($sort_by == 'default') echo 'selected'; ?> value="default"><?php echo __('Default', BWG()->prefix); ?></option>
2281
- <option <?php if ($sort_by == 'filename') echo 'selected'; ?> value="filename"><?php echo __('Filename', BWG()->prefix); ?></option>
2282
- <option <?php if ($sort_by == 'size') echo 'selected'; ?> value="size"><?php echo __('Size', BWG()->prefix); ?></option>
2283
- <option <?php if ($sort_by == 'random' || $sort_by == 'RAND()') echo 'selected'; ?> value="random"><?php echo __('Random', BWG()->prefix); ?></option>
2284
- </select>
2285
- </div>
2286
- <?php
2287
- }
2288
-
2289
- public static function ajax_html_frontend_search_tags($form_id, $current_view, $cur_gal_id, $images_count, $tags_rows) {
2290
- $type = (isset($_POST['type_' . $current_view]) ? esc_html($_POST['type_' . $current_view]) : 'album');
2291
- $bwg_search_tags = (isset($_POST['bwg_tag_id_' . $cur_gal_id]) && $_POST['bwg_tag_id_' . $cur_gal_id] != '' )? $_POST['bwg_tag_id_' . $cur_gal_id] : array();
2292
- $album_gallery_id = (isset($_POST['album_gallery_id_' . $current_view]) ? esc_html($_POST['album_gallery_id_' . $current_view]) : 0);
2293
- ?>
2294
- <div id="bwg_tag_wrap">
2295
- <div id="bwg_tag_container">
2296
- <select class="search_tags" id="bwg_tag_id_<?php echo $cur_gal_id; ?>" multiple="multiple">
2297
- <?php
2298
- foreach($tags_rows as $tags_row) {
2299
- $selected = (in_array($tags_row->term_id ? $tags_row->term_id : '', $bwg_search_tags)) ? 'selected="selected"' : '';
2300
- ?>
2301
- <option value="<?php echo $tags_row->term_id ?>" <?php echo $selected;?>><?php echo $tags_row->name ?></option>
2302
- <?php
2303
- }
2304
- ?>
2305
- </select>
2306
- <span class="bwg_search_loupe_container" >
2307
- <i title="<?php _e('Search', BWG()->prefix); ?>" class="bwg_search fa fa-search" onclick="bwg_select_tag('<?php echo $current_view; ?>' ,'<?php echo $form_id; ?>', '<?php echo $cur_gal_id; ?>', <?php echo $album_gallery_id; ?>, '<?php echo $type; ?>', false);"></i>
2308
- </span>
2309
- <span class="bwg_search_reset_container" >
2310
- <i title="<?php _e('Reset', BWG()->prefix); ?>" class="bwg_reset fa fa-times" onclick="bwg_select_tag('<?php echo $current_view; ?>' ,'<?php echo $form_id; ?>', '<?php echo $cur_gal_id; ?>', <?php echo $album_gallery_id; ?>, '<?php echo $type; ?>', '<?php echo $cur_gal_id; ?>');"></i>
2311
- </span>
2312
- <input type="hidden" id="bwg_tags_id_<?php echo $cur_gal_id; ?>" value="" />
2313
- </div>
2314
- <div style="clear:both"></div>
2315
- </div>
2316
- <?php
2317
- }
2318
-
2319
- public static function ajax_html_frontend_page_nav($theme_row, $count_items, $page_number, $form_id, $items_per_page, $current_view, $id, $cur_alb_gal_id = 0, $type = 'album', $enable_seo = false, $pagination = 1) {
2320
- $limit = $page_number > 1 ? $items_per_page['load_more_image_count'] : $items_per_page['images_per_page'];
2321
- $limit = $limit ? $limit : 1;
2322
- $type = (isset($_POST['type_' . $current_view]) ? esc_html($_POST['type_' . $current_view]) : $type);
2323
- $album_gallery_id = (isset($_POST['album_gallery_id_' . $current_view]) ? esc_html($_POST['album_gallery_id_' . $current_view]) : $cur_alb_gal_id);
2324
- if ($count_items) {
2325
- if ($count_items % $limit) {
2326
- $items_county = ($count_items - $count_items % $limit) / $limit + 1;
2327
- }
2328
- else {
2329
- $items_county = ($count_items - $count_items % $limit) / $limit;
2330
- }
2331
- if ($pagination == 2) {
2332
- $items_county++;
2333
- }
2334
- }
2335
- else {
2336
- $items_county = 1;
2337
- }
2338
- if ($page_number > $items_county) {
2339
- return;
2340
- }
2341
- $first_page = "first-page-" . $current_view;
2342
- $prev_page = "prev-page-" . $current_view;
2343
- $next_page = "next-page-" . $current_view;
2344
- $last_page = "last-page-" . $current_view;
2345
- ?>
2346
- <span class="bwg_nav_cont_<?php echo $current_view; ?>">
2347
- <?php
2348
- if ($pagination == 1) {
2349
- ?>
2350
- <div class="tablenav-pages_<?php echo $current_view; ?>">
2351
- <?php
2352
- if ($theme_row->page_nav_number) {
2353
- ?>
2354
- <span class="displaying-num_<?php echo $current_view; ?>"><?php echo $count_items . ' ' . __(' item(s)', BWG()->prefix); ?></span>
2355
- <?php
2356
- }
2357
- if ($count_items > $limit) {
2358
- if ($theme_row->page_nav_button_text) {
2359
- $first_button = __('First', BWG()->prefix);
2360
- $previous_button = __('Previous', BWG()->prefix);
2361
- $next_button = __('Next', BWG()->prefix);
2362
- $last_button = __('Last', BWG()->prefix);
2363
- }
2364
- else {
2365
- $first_button = '«';
2366
- $previous_button = '‹';
2367
- $next_button = '›';
2368
- $last_button = '»';
2369
- }
2370
- if ($page_number == 1) {
2371
- $first_page = "first-page disabled";
2372
- $prev_page = "prev-page disabled";
2373
- }
2374
- if ($page_number >= $items_county) {
2375
- $next_page = "next-page disabled";
2376
- $last_page = "last-page disabled";
2377
- }
2378
- ?>
2379
- <span class="pagination-links_<?php echo $current_view; ?>">
2380
- <a class="<?php echo $first_page; ?>" title="<?php echo __('Go to the first page', BWG()->prefix); ?>"><?php echo $first_button; ?></a>
2381
- <a class="<?php echo $prev_page; ?>" title="<?php echo __('Go to the previous page', BWG()->prefix); ?>" <?php echo $page_number > 1 && $enable_seo ? 'href="' . esc_url(add_query_arg(array("page_number_" . $current_view => $page_number - 1), $_SERVER['REQUEST_URI'])) . '"' : ""; ?>><?php echo $previous_button; ?></a>
2382
- <span class="paging-input_<?php echo $current_view; ?>">
2383
- <span class="total-pages_<?php echo $current_view; ?>"><?php echo $page_number; ?></span> <?php echo __('of', BWG()->prefix); ?> <span class="total-pages_<?php echo $current_view; ?>">
2384
- <?php echo $items_county; ?>
2385
- </span>
2386
- </span>
2387
- <a class="<?php echo $next_page ?>" title="<?php echo __('Go to the next page', BWG()->prefix); ?>" <?php echo $page_number + 1 <= $items_county && $enable_seo ? 'href="' . esc_url(add_query_arg(array("page_number_" . $current_view => $page_number + 1), $_SERVER['REQUEST_URI'])) . '"' : ""; ?>><?php echo $next_button; ?></a>
2388
- <a class="<?php echo $last_page ?>" title="<?php echo __('Go to the last page', BWG()->prefix); ?>"><?php echo $last_button; ?></a>
2389
- </span>
2390
- <?php
2391
- }
2392
- ?>
2393
- </div>
2394
- <?php
2395
- }
2396
- elseif ($pagination == 2) {
2397
- if ($count_items > ($limit * ($page_number - 1)) + $items_per_page['images_per_page']) {
2398
- ?>
2399
- <div id="bwg_load_<?php echo $current_view; ?>" class="tablenav-pages_<?php echo $current_view; ?>">
2400
- <a class="bwg_load_btn_<?php echo $current_view; ?> bwg_load_btn" href="javascript:void(0);"><?php echo __('Load More...', BWG()->prefix); ?></a>
2401
- <input type="hidden" id="bwg_load_more_<?php echo $current_view; ?>" name="bwg_load_more_<?php echo $current_view; ?>" value="on" />
2402
- </div>
2403
- <?php
2404
- }
2405
- }
2406
- elseif ($pagination == 3) {
2407
- if ($count_items > $limit * $page_number) {
2408
- ?>
2409
- <script type="text/javascript">
2410
- jQuery(window).on("scroll", function() {
2411
- if (jQuery(document).scrollTop() + jQuery(window).height() > (jQuery('#<?php echo $form_id; ?>').offset().top + jQuery('#<?php echo $form_id; ?>').height())) {
2412
- jQuery(window).off("scroll");
2413
- spider_page_<?php echo $current_view; ?>('', <?php echo $page_number; ?>, 1, true);
2414
- return false;
2415
- }
2416
- });
2417
- </script>
2418
- <?php
2419
- }
2420
- }
2421
- ?>
2422
- <input type="hidden" id="page_number_<?php echo $current_view; ?>" name="page_number_<?php echo $current_view; ?>" value="<?php echo ((isset($_POST['page_number_' . $current_view])) ? (int) $_POST['page_number_' . $current_view] : 1); ?>" />
2423
- <script type="text/javascript">
2424
- function spider_page_<?php echo $current_view; ?>(cur, x, y, load_more) {
2425
- if (typeof load_more == "undefined") {
2426
- var load_more = false;
2427
- }
2428
- if (jQuery(cur).hasClass('disabled')) {
2429
- return false;
2430
- }
2431
- var items_county_<?php echo $current_view; ?> = <?php echo $items_county; ?>;
2432
- switch (y) {
2433
- case 1:
2434
- if (x >= items_county_<?php echo $current_view; ?>) {
2435
- document.getElementById('page_number_<?php echo $current_view; ?>').value = items_county_<?php echo $current_view; ?>;
2436
- }
2437
- else {
2438
- document.getElementById('page_number_<?php echo $current_view; ?>').value = x + 1;
2439
- }
2440
- break;
2441
- case 2:
2442
- document.getElementById('page_number_<?php echo $current_view; ?>').value = items_county_<?php echo $current_view; ?>;
2443
- break;
2444
- case -1:
2445
- if (x == 1) {
2446
- document.getElementById('page_number_<?php echo $current_view; ?>').value = 1;
2447
- }
2448
- else {
2449
- document.getElementById('page_number_<?php echo $current_view; ?>').value = x - 1;
2450
- }
2451
- break;
2452
- case -2:
2453
- document.getElementById('page_number_<?php echo $current_view; ?>').value = 1;
2454
- break;
2455
- default:
2456
- document.getElementById('page_number_<?php echo $current_view; ?>').value = 1;
2457
- }
2458
- spider_frontend_ajax('<?php echo $form_id; ?>', '<?php echo $current_view; ?>', '<?php echo $id; ?>', '<?php echo $album_gallery_id; ?>', '', '<?php echo $type; ?>', 0, '', '', load_more);
2459
- }
2460
- jQuery('.<?php echo $first_page; ?>').on('click', function() {
2461
- spider_page_<?php echo $current_view; ?>(this, <?php echo $page_number; ?>, -2);
2462
- });
2463
- jQuery('.<?php echo $prev_page; ?>').on('click', function() {
2464
- spider_page_<?php echo $current_view; ?>(this, <?php echo $page_number; ?>, -1);
2465
- return false;
2466
- });
2467
- jQuery('.<?php echo $next_page; ?>').on('click', function() {
2468
- spider_page_<?php echo $current_view; ?>(this, <?php echo $page_number; ?>, 1);
2469
- return false;
2470
- });
2471
- jQuery('.<?php echo $last_page; ?>').on('click', function() {
2472
- spider_page_<?php echo $current_view; ?>(this, <?php echo $page_number; ?>, 2);
2473
- });
2474
- jQuery('.bwg_load_btn_<?php echo $current_view; ?>').on('click', function() {
2475
- spider_page_<?php echo $current_view; ?>(this, <?php echo $page_number; ?>, 1, true);
2476
- return false;
2477
- });
2478
- </script>
2479
- </span>
2480
- <?php
2481
- }
2482
-
2483
  public static function bwg_session_start() {
2484
  if (session_id() == '' || (function_exists('session_status') && (session_status() == PHP_SESSION_NONE))) {
2485
  @session_start();
@@ -2675,7 +2529,9 @@ class WDWLibrary {
2675
  ?>
2676
  <div class="bwg-topbar bwg-topbar-links">
2677
  <div class="bwg-topbar-links-container">
2678
- <?php if ( $show_guide_link ) { ?>
 
 
2679
  <a href="<?php echo $user_guide_link; ?>" target="_blank">
2680
  <div class="bwg-topbar-links-item">
2681
  <?php _e('User guide', BWG()->prefix); ?>
@@ -2686,8 +2542,10 @@ class WDWLibrary {
2686
  if (!BWG()->is_pro) {
2687
  if ( $show_guide_link ) {
2688
  ?>
2689
- <span class="bwg-topbar-separator"></span>
2690
- <?php } ?>
 
 
2691
  <a href="<?php echo $support_forum_link; ?>" target="_blank">
2692
  <div class="bwg-topbar-links-item">
2693
  <?php _e('Support Forum', BWG()->prefix); ?>
@@ -2695,7 +2553,7 @@ class WDWLibrary {
2695
  </a>
2696
  <?php
2697
  }
2698
- ?>
2699
  </div>
2700
  </div>
2701
  </div>
@@ -2756,18 +2614,118 @@ class WDWLibrary {
2756
  }
2757
  return $permalink;
2758
  }
2759
- }
2760
-
2761
- /**
2762
- * Rre.
2763
- *
2764
- * @param array $data
2765
- * @param boolean $e
2766
- *
2767
- * @return string $data
2768
- */
2769
- if ( !function_exists('pre') ) {
2770
- function pre( $data = FALSE, $e = FALSE ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2771
  $bt = debug_backtrace();
2772
  $caller = array_shift($bt);
2773
  print "<pre><xmp>";
@@ -2778,5 +2736,4 @@ if ( !function_exists('pre') ) {
2778
  exit;
2779
  }
2780
  }
2781
- }
2782
-
172
  break;
173
  }
174
  case 20: {
175
+ $message = __('Items were reset successfully.', BWG()->prefix);
176
  $type = 'updated';
177
  break;
178
  }
201
  $type = 'updated';
202
  break;
203
  }
204
+ case 26: {
205
  $message = __('Watermark could not be set. The image URL is incorrect.', BWG()->prefix);
206
  $type = 'error';
207
  break;
226
  }
227
 
228
  public static function message($message, $type) {
229
+ return '<div style="width:100%"><div class="' . $type . '"><p><strong>' . $message . '</strong></p></div></div>';
230
  }
231
 
232
  /**
736
  return $google_fonts;
737
  }
738
 
739
+ /**
740
+ * Get value of option using key
741
+ *
742
+ * @param $string
743
+ * @param $option
744
+ *
745
+ * @return string
746
+ */
747
+ public static function get_option_value_from_string( $string, $option ) {
748
+ $len_start = strpos($string, $option);
749
+ if( !$len_start ) {
750
+ return;
751
+ }
752
+ $len_current = strpos(substr($string, $len_start), '"');
753
+ $len_end = strpos(substr(substr($string, $len_start), $len_current + 1), '"');
754
+ $option_value = str_replace('"', '', substr(substr($string, $len_start), $len_current, $len_end + 1));
755
+ return $option_value;
756
+ }
757
+
758
+ /**
759
+ * Get options of gallery type from whole options string.
760
+ *
761
+ * @param $gallery_type
762
+ * @param $option_key
763
+ *
764
+ * @return bool
765
+ */
766
+ public static function get_option_by_gallery_type( $gallery_type, $option_key ) {
767
+ switch ($gallery_type) {
768
+ case "thumbnails":
769
+ if(strpos($option_key, 'thumb_') === 0) {
770
+ return true;
771
+ }
772
+ break;
773
+ case "thumbnails_masonry":
774
+ if(strpos($option_key, 'masonry_') === 0) {
775
+ return true;
776
+ }
777
+ break;
778
+ case "thumbnails_mosaic":
779
+ if(strpos($option_key, 'mosaic_') === 0) {
780
+ return true;
781
+ }
782
+ break;
783
+ case "slideshow":
784
+ if(strpos($option_key, 'slideshow_') === 0) {
785
+ return true;
786
+ }
787
+ break;
788
+ case "image_browser":
789
+ if(strpos($option_key, 'image_browser_') === 0) {
790
+ return true;
791
+ }
792
+ break;
793
+ case "blog_style":
794
+ if(strpos($option_key, 'blog_style_') === 0) {
795
+ return true;
796
+ }
797
+ break;
798
+ case "carousel":
799
+ if(strpos($option_key, 'carousel_') === 0) {
800
+ return true;
801
+ }
802
+ break;
803
+ case "album_compact_preview":
804
+ if(strpos($option_key, 'album_compact_') === 0) {
805
+ return true;
806
+ }
807
+ break;
808
+ case "album_masonry_preview":
809
+ if(strpos($option_key, 'album_masonry_') === 0) {
810
+ return true;
811
+ }
812
+ break;
813
+ case "album_extended_preview":
814
+ if(strpos($option_key, 'album_extended_') === 0) {
815
+ return true;
816
+ }
817
+ break;
818
+ default:
819
+ return false;
820
+ }
821
+ return false;
822
+ }
823
+
824
  public static function get_used_google_fonts($theme = null, $shortcode = null) {
825
  global $wpdb;
826
 
827
  $google_array = array();
828
  $google_fonts = self::get_google_fonts();
829
  if (null === $theme) {
830
+ $theme = $wpdb->get_results('SELECT * FROM ' . $wpdb->prefix . 'bwg_theme', 'OBJECT_K');
831
  }
832
  else {
833
  $theme = array($theme);
841
  if ($shortcode_google_fonts) {
842
  foreach($shortcode_google_fonts as $shortcode_google_font){
843
  $shortcode_font_string = $shortcode_google_font->tagtext;
844
+ $shortcode_fonts = self::get_option_value_from_string( $shortcode_font_string, 'watermark_font="' );
 
 
 
845
  if (true == in_array($shortcode_fonts, $google_fonts)) {
846
  $google_array[$shortcode_fonts] = $shortcode_fonts;
847
  }
848
+
849
+ $showthumbs_name = self::get_option_value_from_string( $shortcode_font_string, 'showthumbs_name="' );
850
+ $show_gallery_description = self::get_option_value_from_string( $shortcode_font_string, 'show_gallery_description="' );
851
+ $image_title = self::get_option_value_from_string( $shortcode_font_string, 'image_title="' );
852
+ $theme_id = self::get_option_value_from_string( $shortcode_font_string, 'theme_id="' );
853
+ $gallery_type = self::get_option_value_from_string( $shortcode_font_string, 'gallery_type="' );
854
+ // Check if show Gallery title, description, image title options are true
855
+ if( $showthumbs_name == 1 || $show_gallery_description == 1 || ($image_title != 'none' && $image_title != '') || !isset($showthumbs_name)) {
856
+ if ( !empty($theme[$theme_id]) ) {
857
+ $row = $theme[$theme_id];
858
+ if (isset($row->options)) {
859
+ $options = json_decode($row->options);
860
+ foreach ($options as $key=>$option) {
861
+ $is_google_fonts = (in_array((string)$option, $google_fonts)) ? true : false;
862
+ if (true == $is_google_fonts && self::get_option_by_gallery_type( $gallery_type, $key )) {
863
+ $google_array[$option] = $option;
864
+ }
865
+ }
866
+ }
867
+ }
868
+
869
+ if (true == in_array(BWG()->options->watermark_font, $google_fonts)) {
870
+ $google_array[BWG()->options->watermark_font] = BWG()->options->watermark_font;
871
+ }
872
+ }
873
+
874
+ if ( !empty($google_array) ) {
875
+ $query = implode("|", str_replace(' ', '+', $google_array));
876
+ $url = 'https://fonts.googleapis.com/css?family=' . $query;
877
+ $url .= '&subset=greek,latin,greek-ext,vietnamese,cyrillic-ext,latin-ext,cyrillic';
878
+ $shortcode_id = $shortcode_google_font->id;
879
+ wp_register_style('bwg_googlefonts'. $shortcode_id, $url, null, null);
880
+ $google_array = array();
881
+ }
882
  }
883
  }
884
+
885
+ // Register style for widget
886
  if ($theme) {
887
  foreach ($theme as $row) {
888
  if (isset($row->options)) {
899
  if (true == in_array(BWG()->options->watermark_font, $google_fonts)) {
900
  $google_array[BWG()->options->watermark_font] = BWG()->options->watermark_font;
901
  }
902
+ if ( !empty($google_array) ) {
903
+ $query = implode("|", str_replace(' ', '+', $google_array));
904
+
905
+ $url = 'https://fonts.googleapis.com/css?family=' . $query;
906
+ $url .= '&subset=greek,latin,greek-ext,vietnamese,cyrillic-ext,latin-ext,cyrillic';
907
+ }
908
+
909
+ return $url;
910
  }
911
 
912
  public static function get_default_theme_id() {
1117
  $gallery_id = (int) $gallery_id;
1118
  $tag = (int) $tag;
1119
  global $wpdb;
1120
+ $bwg_search = trim(self::get('bwg_search_' . $bwg));
1121
 
1122
  $join = '';
1123
  $where = '';
1124
+ if ( $bwg_search !== '' ) {
1125
+ $bwg_search_keys = explode(' ', $bwg_search);
1126
+ $alt_search = '(';
1127
+ $description_search = '(';
1128
+ foreach( $bwg_search_keys as $search_key) {
1129
+ $alt_search .= '`image`.`alt` LIKE "%' . trim($search_key) . '%" AND ';
1130
+ $description_search .= '`image`.`description` LIKE "%' . trim($search_key) . '%" AND ';
1131
+ }
1132
+ $alt_search = rtrim($alt_search, 'AND ');
1133
+ $alt_search .= ')';
1134
+ $description_search = rtrim($description_search, 'AND ');
1135
+ $description_search .= ')';
1136
+ $where = 'AND (' . $alt_search . ' OR ' . $description_search . ')';
1137
  }
1138
  if ( $sort_by == 'size' || $sort_by == 'resolution' ) {
1139
  $sort_by = ' CAST(image.' . $sort_by . ' AS SIGNED) ';
1239
  $limit_str = 'LIMIT 0,' . $limit;
1240
  }
1241
  }
1242
+
1243
  // Select all galleries
1244
  if ( $id == 0 ) {
1245
+ $row = $wpdb->get_results( 'SELECT * FROM ' . $wpdb->prefix . 'bwg_gallery WHERE `published` = 1 ' . $order_by . ' ' . $limit_str );
1246
+ $total = $wpdb->get_var( 'SELECT COUNT(*) FROM ' . $wpdb->prefix . 'bwg_gallery WHERE `published` = 1' );
1247
  } else {
1248
+ $row = $wpdb->get_results( $wpdb->prepare( 'SELECT * FROM ' . $wpdb->prefix . 'bwg_album_gallery WHERE `album_id`="%d" ' . $order_by . ' ' . $limit_str, $id ) );
1249
+ $total = $wpdb->get_var( $wpdb->prepare( 'SELECT COUNT(*) FROM ' . $wpdb->prefix . 'bwg_album_gallery WHERE `album_id`="%d"', $id ) );
1250
  }
1251
  $page_nav[ 'total' ] = $total;
1252
  $page_nav[ 'limit' ] = 1;
1271
 
1272
  if ( $options->built_in_watermark_type != 'none' ) {
1273
  $limitstart = '';
1274
+ if ( !$limit ) {
1275
  $limitstart = ' LIMIT 50 OFFSET ' . $limit;
1276
  }
1277
+ $where = (($gallery_id) ? ' `gallery_id`=' . $gallery_id . ($image_id && !$limit ? ' AND `id`=' . $image_id : '') : 1);
 
1278
  $search = WDWLibrary::get( 's', '' );
1279
  if ( $search ) {
1280
  $where .= ' AND `filename` LIKE "%' . $search . '%"';
1311
  }
1312
 
1313
  public static function set_text_watermark($original_filename, $dest_filename, $watermark_text, $watermark_font, $watermark_font_size, $watermark_color, $watermark_transparency, $watermark_position) {
 
1314
  $original_filename = htmlspecialchars_decode($original_filename, ENT_COMPAT | ENT_QUOTES);
1315
  $dest_filename = htmlspecialchars_decode($dest_filename, ENT_COMPAT | ENT_QUOTES);
1316
 
1374
  }
1375
 
1376
  public static function set_image_watermark($original_filename, $dest_filename, $watermark_url, $watermark_height, $watermark_width, $watermark_position) {
1377
+ if ( !empty($watermark_url) ) {
1378
+ $original_filename = htmlspecialchars_decode($original_filename, ENT_COMPAT | ENT_QUOTES);
1379
+ $dest_filename = htmlspecialchars_decode($dest_filename, ENT_COMPAT | ENT_QUOTES);
1380
+ $watermark_url = htmlspecialchars_decode($watermark_url, ENT_COMPAT | ENT_QUOTES);
1381
+
1382
+ @ini_set('memory_limit', '-1');
1383
+ list($width, $height, $type) = getimagesize($original_filename);
1384
+ list($width_watermark, $height_watermark, $type_watermark) = getimagesize($watermark_url);
1385
+
1386
+ $watermark_width = $width * $watermark_width / 100;
1387
+ $watermark_height = $height_watermark * $watermark_width / $width_watermark;
1388
+
1389
+ $watermark_position = explode('-', $watermark_position);
1390
+ $top = $height - $watermark_height - 5;
1391
+ $left = $width - $watermark_width - 5;
1392
+ switch ($watermark_position[0]) {
1393
+ case 'top':
1394
+ $top = 5;
1395
+ break;
1396
+ case 'middle':
1397
+ $top = ($height - $watermark_height) / 2;
1398
+ break;
1399
+ }
1400
+ switch ($watermark_position[1]) {
1401
+ case 'left':
1402
+ $left = 5;
1403
+ break;
1404
+ case 'center':
1405
+ $left = ($width - $watermark_width) / 2;
1406
+ break;
1407
+ }
1408
+ if ($type_watermark == 2) {
1409
+ $watermark_image = imagecreatefromjpeg($watermark_url);
1410
+ }
1411
+ elseif ($type_watermark == 3) {
1412
+ $watermark_image = imagecreatefrompng($watermark_url);
1413
+ }
1414
+ elseif ($type_watermark == 1) {
1415
+ $watermark_image = imagecreatefromgif($watermark_url);
1416
+ }
1417
+ else {
1418
+ return false;
1419
+ }
1420
 
1421
+ $watermark_image_resized = imagecreatetruecolor($watermark_width, $watermark_height);
1422
+ imagecolorallocatealpha($watermark_image_resized, 255, 255, 255, 127);
1423
+ imagealphablending($watermark_image_resized, FALSE);
1424
+ imagesavealpha($watermark_image_resized, TRUE);
1425
+ imagecopyresampled ($watermark_image_resized, $watermark_image, 0, 0, 0, 0, $watermark_width, $watermark_height, $width_watermark, $height_watermark);
1426
+
1427
+ if ($type == 2) {
1428
+ $image = imagecreatefromjpeg($original_filename);
1429
+ imagecopy($image, $watermark_image_resized, $left, $top, 0, 0, $watermark_width, $watermark_height);
1430
+ if ($dest_filename <> '') {
1431
+ imagejpeg ($image, $dest_filename, BWG()->options->jpeg_quality);
1432
+ } else {
1433
+ header('Content-Type: image/jpeg');
1434
+ imagejpeg($image, null, BWG()->options->jpeg_quality);
1435
+ };
1436
+ imagedestroy($image);
1437
+ }
1438
+ elseif ($type == 3) {
1439
+ $image = imagecreatefrompng($original_filename);
1440
+ imagecopy($image, $watermark_image_resized, $left, $top, 0, 0, $watermark_width, $watermark_height);
1441
+ imagealphablending($image, FALSE);
1442
+ imagesavealpha($image, TRUE);
1443
+ imagepng($image, $dest_filename, BWG()->options->png_quality);
1444
+ imagedestroy($image);
1445
+ }
1446
+ elseif ($type == 1) {
1447
+ $image = imagecreatefromgif($original_filename);
1448
+ $tempimage = imagecreatetruecolor($width, $height);
1449
+ imagecopy($tempimage, $image, 0, 0, 0, 0, $width, $height);
1450
+ imagecopy($tempimage, $watermark_image_resized, $left, $top, 0, 0, $watermark_width, $watermark_height);
1451
+ imagegif($tempimage, $dest_filename);
1452
+ imagedestroy($image);
1453
+ imagedestroy($tempimage);
1454
+ }
1455
+ imagedestroy($watermark_image);
1456
+ @ini_restore('memory_limit');
1457
+ }
1458
  }
1459
 
1460
  public static function bwg_image_recover_all($gallery_id, $limit = '') {
1467
  $where .= ' AND `filename` LIKE "%' . $search . '%"';
1468
  }
1469
  $limitstart = '';
1470
+ if ( !$limit ) {
1471
  $limitstart = ' LIMIT 50 OFFSET ' . $limit;
1472
  }
1473
+ $images = $wpdb->get_results('SELECT * FROM `' . $wpdb->prefix . 'bwg_image` WHERE ' . $where . $limitstart);
 
1474
  if ( !empty( $images ) ) {
1475
  foreach ( $images as $image ) {
1476
  if ( preg_match( '/EMBED/', $image->filetype ) == 1 ) {
1482
  self::update_image_modified_date( $where );
1483
  }
1484
 
1485
+ /**
1486
+ * @param $file_path
1487
+ * @return bool
1488
+ */
1489
+ public static function repair_image_original($file_path) {
1490
+ $succeed = true;
1491
+ if ( !file_exists( $file_path ) ) {
1492
+ $dir = dirname( $file_path );
1493
+ if ( !is_dir( $dir ) ) {
1494
+ $succeed = mkdir( $dir, 0755 );
1495
+ }
1496
+ if ( $succeed ) {
1497
+ $main_file = str_replace( '/.original', '', $file_path );
1498
+ if ( file_exists( $main_file ) ) {
1499
+ $succeed = copy( $main_file, $file_path );
1500
+ }
1501
+ else {
1502
+ $succeed = false;
1503
+ }
1504
+ }
1505
+ }
1506
+ return $succeed;
1507
+ }
1508
+
1509
  public static function recover_image($image, $thumb_width, $width, $page) {
1510
  if ( preg_match('/EMBED/', $image->filetype) == 1 ) {
1511
  return;
1513
  $filename = htmlspecialchars_decode(BWG()->upload_dir . $image->image_url, ENT_COMPAT | ENT_QUOTES);
1514
  $thumb_filename = htmlspecialchars_decode(BWG()->upload_dir . $image->thumb_url, ENT_COMPAT | ENT_QUOTES);
1515
  $original_filename = str_replace('/thumb/', '/.original/', $thumb_filename);
1516
+ if ( WDWLibrary::repair_image_original($original_filename) ) {
1517
+ if ( file_exists( $original_filename ) || file_exists( $filename ) ) {
1518
+ if ( !file_exists( $original_filename ) ) {
1519
+ copy( $filename, $original_filename );
1520
+ }
1521
+ $original_image = wp_get_image_editor( $original_filename );
1522
+ if ( !is_wp_error( $original_image ) ) {
1523
+ $get_size = $original_image->get_size();
1524
+ $width_orig = $get_size[ 'width' ];
1525
+ $height_orig = $get_size[ 'height' ];
1526
+ $original_image->set_quality( BWG()->options->image_quality );
1527
+ self::recover_image_size( $width_orig, $height_orig, $width, $original_image, $filename );
1528
+ self::recover_image_size( $width_orig, $height_orig, $thumb_width, $original_image, $thumb_filename );
1529
+ }
1530
+ else {
1531
+ copy( $original_filename, $filename );
1532
+ copy( $original_filename, $thumb_filename );
1533
+ }
1534
  }
1535
  }
1536
  if ($page == 'gallery_page') {
1823
  case 'thumbnails':
1824
  $defaults['thumb_width'] = self::get_option_value('thumb_width', 'thumb_width', 'thumb_width', $use_option_defaults, $params);
1825
  $defaults['thumb_height'] = self::get_option_value('thumb_height', 'thumb_height', 'thumb_height', $use_option_defaults, $params);
1826
+ $defaults['image_column_number'] = abs(intval(self::get_option_value('image_column_number', 'image_column_number', 'image_column_number', $use_option_defaults, $params)));
1827
  $defaults['image_enable_page'] = self::get_option_value('image_enable_page', 'image_enable_page', 'image_enable_page', $use_option_defaults, $params);
1828
+ $defaults['images_per_page'] = abs(intval(self::get_option_value('images_per_page', 'images_per_page', 'images_per_page', $use_option_defaults, $params)));
1829
  $defaults['load_more_image_count'] = self::get_option_value('load_more_image_count', 'load_more_image_count', 'load_more_image_count', $use_option_defaults, $params);
1830
  $defaults['sort_by'] = self::get_option_value('sort_by', 'sort_by', 'sort_by', $use_option_defaults, $params);
1831
  $defaults['order_by'] = self::get_option_value('order_by', 'order_by', 'order_by', $use_option_defaults, $params);
1846
  $defaults['show_masonry_thumb_description'] = self::get_option_value('show_masonry_thumb_description', 'show_masonry_thumb_description', 'show_masonry_thumb_description', $use_option_defaults, $params);
1847
  $defaults['thumb_width'] = self::get_option_value('masonry_thumb_size', 'thumb_width', 'masonry_thumb_size', $use_option_defaults, $params);
1848
  $defaults['thumb_height'] = self::get_option_value('masonry_thumb_size', 'thumb_height', 'masonry_thumb_size', $use_option_defaults, $params);
1849
+ $defaults['image_column_number'] = abs(intval(self::get_option_value('masonry_image_column_number', 'image_column_number', 'masonry_image_column_number', $use_option_defaults, $params)));
1850
  $defaults['image_enable_page'] = self::get_option_value('masonry_image_enable_page', 'image_enable_page', 'masonry_image_enable_page', $use_option_defaults, $params);
1851
+ $defaults['images_per_page'] = abs(intval(self::get_option_value('masonry_images_per_page', 'images_per_page', 'masonry_images_per_page', $use_option_defaults, $params)));
1852
  $defaults['load_more_image_count'] = self::get_option_value('masonry_load_more_image_count', 'load_more_image_count', 'masonry_load_more_image_count', $use_option_defaults, $params);
1853
  $defaults['sort_by'] = self::get_option_value('masonry_sort_by', 'sort_by', 'masonry_sort_by', $use_option_defaults, $params);
1854
  $defaults['order_by'] = self::get_option_value('masonry_order_by', 'order_by', 'masonry_order_by', $use_option_defaults, $params);
1859
  $defaults['show_tag_box'] = self::get_option_value('masonry_show_tag_box', 'show_tag_box', 'masonry_show_tag_box', $use_option_defaults, $params);
1860
  $defaults['showthumbs_name'] = self::get_option_value('masonry_show_gallery_title', 'showthumbs_name', 'masonry_show_gallery_title', $use_option_defaults, $params);
1861
  $defaults['show_gallery_description'] = self::get_option_value('masonry_show_gallery_description', 'show_gallery_description', 'masonry_show_gallery_description', $use_option_defaults, $params);
1862
+ $defaults['image_title'] = self::get_option_value('image_title', 'image_title', 'masonry_image_title', $from || $use_option_defaults, $params);
1863
  $defaults['play_icon'] = self::get_option_value('masonry_play_icon', 'play_icon', 'masonry_play_icon', $use_option_defaults, $params);
1864
  $defaults['gallery_download'] = self::get_option_value('masonry_gallery_download', 'gallery_download', 'masonry_gallery_download', $use_option_defaults, $params);
1865
  $defaults['ecommerce_icon'] = self::get_option_value('masonry_ecommerce_icon_show_hover', 'ecommerce_icon', 'masonry_ecommerce_icon_show_hover', $use_option_defaults, $params);
1871
  $defaults['thumb_width'] = self::get_option_value('mosaic_thumb_size', 'thumb_width', 'mosaic_thumb_size', $use_option_defaults, $params);
1872
  $defaults['thumb_height'] = self::get_option_value('mosaic_thumb_size', 'thumb_height', 'mosaic_thumb_size', $use_option_defaults, $params);
1873
  $defaults['image_enable_page'] = self::get_option_value('mosaic_image_enable_page', 'image_enable_page', 'mosaic_image_enable_page', $use_option_defaults, $params);
1874
+ $defaults['images_per_page'] = abs(intval(self::get_option_value('mosaic_images_per_page', 'images_per_page', 'mosaic_images_per_page', $use_option_defaults, $params)));
1875
  $defaults['load_more_image_count'] = self::get_option_value('mosaic_load_more_image_count', 'load_more_image_count', 'mosaic_load_more_image_count', $use_option_defaults, $params);
1876
  $defaults['sort_by'] = self::get_option_value('mosaic_sort_by', 'sort_by', 'mosaic_sort_by', $use_option_defaults, $params);
1877
  $defaults['order_by'] = self::get_option_value('mosaic_order_by', 'order_by', 'mosaic_order_by', $use_option_defaults, $params);
1920
  $defaults['showthumbs_name'] = self::get_option_value('image_browser_show_gallery_title', 'showthumbs_name', 'image_browser_show_gallery_title', $use_option_defaults, $params);
1921
  $defaults['show_gallery_description'] = self::get_option_value('image_browser_show_gallery_description', 'show_gallery_description', 'image_browser_show_gallery_description', $use_option_defaults, $params);
1922
  $defaults['show_search_box'] = self::get_option_value('image_browser_show_search_box', 'show_search_box', 'image_browser_show_search_box', $use_option_defaults, $params);
1923
+ $defaults['show_sort_images'] = self::get_option_value('image_browser_show_sort_images', 'show_sort_images', 'image_browser_show_sort_images', $use_option_defaults, $params);
1924
+ $defaults['show_tag_box'] = self::get_option_value('image_browser_show_tag_box', 'show_tag_box', 'image_browser_show_tag_box', $use_option_defaults, $params);
1925
  $defaults['placeholder'] = self::get_option_value('image_browser_placeholder', 'placeholder', 'image_browser_placeholder', $use_option_defaults, $params);
1926
  $defaults['search_box_width'] = self::get_option_value('image_browser_search_box_width', 'search_box_width', 'image_browser_search_box_width', $use_option_defaults, $params);
1927
  $defaults['gallery_download'] = self::get_option_value('image_browser_gallery_download', 'gallery_download', 'image_browser_gallery_download', $use_option_defaults, $params);
1950
  $defaults['carousel_height'] = self::get_option_value('carousel_height', 'carousel_height', 'carousel_height', $use_option_defaults, $params);
1951
  $defaults['carousel_image_column_number'] = self::get_option_value('carousel_image_column_number', 'carousel_image_column_number', 'carousel_image_column_number', $use_option_defaults, $params);
1952
  $defaults['carousel_image_par'] = self::get_option_value('carousel_image_par', 'carousel_image_par', 'carousel_image_par', $use_option_defaults, $params);
1953
+ $defaults['enable_carousel_title'] = self::get_option_value('enable_carousel_title', 'enable_carousel_title', 'carousel_enable_title', $use_option_defaults, $params);
1954
+ $defaults['enable_carousel_autoplay'] = self::get_option_value('enable_carousel_autoplay', 'enable_carousel_autoplay', 'carousel_enable_autoplay', $use_option_defaults, $params);
1955
  $defaults['carousel_r_width'] = self::get_option_value('carousel_r_width', 'carousel_r_width', 'carousel_r_width', $use_option_defaults, $params);
1956
  $defaults['carousel_fit_containerWidth'] = self::get_option_value('carousel_fit_containerWidth', 'carousel_fit_containerWidth', 'carousel_fit_containerWidth', $use_option_defaults, $params);
1957
  $defaults['carousel_prev_next_butt'] = self::get_option_value('carousel_prev_next_butt', 'carousel_prev_next_butt', 'carousel_prev_next_butt', $use_option_defaults, $params);
2004
  $defaults['search_box_width'] = self::get_option_value('album_masonry_search_box_width', 'search_box_width', 'album_masonry_search_box_width', $use_option_defaults, $params);
2005
  $defaults['show_sort_images'] = self::get_option_value('album_masonry_show_sort_images', 'show_sort_images', 'album_masonry_show_sort_images', $use_option_defaults, $params);
2006
  $defaults['show_tag_box'] = self::get_option_value('album_masonry_show_tag_box', 'show_tag_box', 'album_masonry_show_tag_box', $use_option_defaults, $params);
2007
+ $defaults['show_album_name'] = self::get_option_value('show_album_masonry_name', 'show_album_name', 'show_album_masonry_name', $use_option_defaults, $params);
2008
  $defaults['show_gallery_description'] = self::get_option_value('album_masonry_show_gallery_description', 'show_gallery_description', 'album_masonry_show_gallery_description', $use_option_defaults, $params);
2009
+ $defaults['image_title'] = self::get_option_value('album_image_title', 'image_title', 'album_masonry_image_title', $use_option_defaults, $params);
2010
  $defaults['gallery_download'] = self::get_option_value('album_masonry_gallery_download', 'gallery_download', 'album_masonry_gallery_download', $use_option_defaults, $params);
2011
  $defaults['ecommerce_icon'] = self::get_option_value('album_masonry_ecommerce_icon_show_hover', 'ecommerce_icon', 'album_masonry_ecommerce_icon_show_hover', $use_option_defaults, $params);
2012
  break;
2027
  $defaults['search_box_width'] = self::get_option_value('album_extended_search_box_width', 'search_box_width', 'album_extended_search_box_width', $use_option_defaults, $params);
2028
  $defaults['show_sort_images'] = self::get_option_value('album_extended_show_sort_images', 'show_sort_images', 'album_extended_show_sort_images', $use_option_defaults, $params);
2029
  $defaults['show_tag_box'] = self::get_option_value('album_extended_show_tag_box', 'show_tag_box', 'album_extended_show_tag_box', $use_option_defaults, $params);
2030
+ $defaults['show_album_name'] = self::get_option_value('show_album_extended_name', 'show_album_name', 'show_album_extended_name', $use_option_defaults, $params);
 
2031
  $defaults['show_gallery_description'] = self::get_option_value('album_extended_show_gallery_description', 'show_gallery_description', 'album_extended_show_gallery_description', $use_option_defaults, $params);
2032
+ $defaults['extended_album_description_enable'] = self::get_option_value('extended_album_description_enable', 'extended_album_description_enable', 'extended_album_description_enable', $use_option_defaults, $params);
2033
  $defaults['extended_album_view_type'] = self::get_option_value('extended_album_view_type', 'extended_album_view_type', 'album_extended_view_type', $use_option_defaults, $params);
2034
  $defaults['extended_album_image_title'] = self::get_option_value('extended_album_image_title', 'extended_album_image_title', 'album_extended_image_title_show_hover', $use_option_defaults, $params);
2035
+ $defaults['extended_album_mosaic_hor_ver'] = self::get_option_value('extended_album_mosaic_hor_ver', 'extended_album_mosaic_hor_ver', 'album_mosaic', $use_option_defaults, $params);
2036
+ $defaults['extended_album_resizable_mosaic'] = self::get_option_value('extended_album_resizable_mosaic', 'extended_album_resizable_mosaic', 'album_resizable_mosaic', $use_option_defaults, $params);
2037
+ $defaults['extended_album_mosaic_total_width'] = self::get_option_value('extended_album_mosaic_total_width', 'extended_album_mosaic_total_width', 'album_mosaic_total_width', $use_option_defaults, $params);
2038
  $defaults['play_icon'] = self::get_option_value('album_extended_play_icon', 'play_icon', 'album_extended_play_icon', $use_option_defaults, $params);
2039
  $defaults['gallery_download'] = self::get_option_value('album_extended_gallery_download', 'gallery_download', 'album_extended_gallery_download', $use_option_defaults, $params);
2040
  $defaults['ecommerce_icon'] = self::get_option_value('album_extended_ecommerce_icon_show_hover', 'ecommerce_icon', 'album_extended_ecommerce_icon_show_hover', $use_option_defaults, $params);
2129
  return $str;
2130
  }
2131
 
2132
+ // A callback function to add a custom hidden field to our taxonomy
2133
+ public static function bwg_old_tag_edit_form_fields( $tag ) {
2134
+ // Check for existing taxonomy meta for the term you're editing
2135
+ $t_id = $tag->term_id; // Get the ID of the term you're editing
2136
+ $term = get_term($t_id, 'bwg_tag');
2137
+ ?>
2138
+ <input type="hidden" name="old_tag" value="<?php echo $term->slug ?>">
2139
+ <?php
2140
+ }
2141
+
2142
  /**
2143
  * Register custom taxonomies to use in plugin.
2144
  */
2145
  public static function register_custom_taxonomies() {
2146
  // Register bwg_tag taxonomy.
2147
  self::create_bwg_tag();
2148
+ // Add the fields to the bwg_tags taxonomy, using our callback function
2149
+ add_action( 'edit_tag_form_fields', array('WDWLibrary', 'bwg_old_tag_edit_form_fields'), 10, 2 );
2150
  // Set Photo Gallery menu as parent for bwg_tag.
2151
  add_action('parent_file', array('WDWLibrary', 'menu_highlight'));
2152
  // Save/update bwg_tag.
2173
  }
2174
 
2175
  public static function update_bwg_tag($term_id) {
2176
+ $old_tag = self::get('old_tag','');
2177
  // Create custom post (type is tag).
2178
  $term = get_term($term_id, 'bwg_tag');
2179
  $custom_post_params = array(
2185
  'mode' => '',
2186
  ),
2187
  );
2188
+ $post = get_page_by_path($old_tag, OBJECT, BWG()->prefix . '_tag');
2189
+ wp_delete_post($post->ID);
2190
  WDWLibrary::bwg_create_custom_post($custom_post_params);
2191
  }
2192
 
2334
  return $url;
2335
  }
2336
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2337
  public static function bwg_session_start() {
2338
  if (session_id() == '' || (function_exists('session_status') && (session_status() == PHP_SESSION_NONE))) {
2339
  @session_start();
2529
  ?>
2530
  <div class="bwg-topbar bwg-topbar-links">
2531
  <div class="bwg-topbar-links-container">
2532
+ <?php
2533
+ if ( $show_guide_link ) {
2534
+ ?>
2535
  <a href="<?php echo $user_guide_link; ?>" target="_blank">
2536
  <div class="bwg-topbar-links-item">
2537
  <?php _e('User guide', BWG()->prefix); ?>
2542
  if (!BWG()->is_pro) {
2543
  if ( $show_guide_link ) {
2544
  ?>
2545
+ <span class="bwg-topbar-separator"></span>
2546
+ <?php
2547
+ }
2548
+ ?>
2549
  <a href="<?php echo $support_forum_link; ?>" target="_blank">
2550
  <div class="bwg-topbar-links-item">
2551
  <?php _e('Support Forum', BWG()->prefix); ?>
2553
  </a>
2554
  <?php
2555
  }
2556
+ ?>
2557
  </div>
2558
  </div>
2559
  </div>
2614
  }
2615
  return $permalink;
2616
  }
2617
+
2618
+ /**
2619
+ * Check if is preview of Elementor builder.
2620
+ *
2621
+ * @return bool
2622
+ */
2623
+ public static function elementor_is_active() {
2624
+ if ( in_array( self::get('action', ''), array('elementor', 'elementor_ajax') ) || self::get('elementor-preview', '') ) {
2625
+ return TRUE;
2626
+ }
2627
+
2628
+ return FALSE;
2629
+ }
2630
+
2631
+ /**
2632
+ * Get galleries.
2633
+ *
2634
+ * @return array
2635
+ */
2636
+ public static function get_galleries() {
2637
+ global $wpdb;
2638
+ $query = "SELECT `id`, `name` FROM `" . $wpdb->prefix . "bwg_gallery` WHERE `published`=1 ORDER BY `name`";
2639
+ $rows = $wpdb->get_results($query);
2640
+
2641
+ $galleries = array();
2642
+ $galleries[0] = __('All images', BWG()->prefix);
2643
+ foreach ( $rows as $row ) {
2644
+ $galleries[$row->id] = $row->name;
2645
+ }
2646
+
2647
+ return $galleries;
2648
+ }
2649
+
2650
+ /**
2651
+ * Get gallery groups.
2652
+ *
2653
+ * @return array
2654
+ */
2655
+ public static function get_gallery_groups() {
2656
+ global $wpdb;
2657
+ $query = "SELECT `id`, `name` FROM `" . $wpdb->prefix . "bwg_album` WHERE `published`=1 ORDER BY `name`";
2658
+ $rows = $wpdb->get_results($query);
2659
+
2660
+ $gallery_groups = array();
2661
+ $gallery_groups[0] = __('All galleries', BWG()->prefix);
2662
+ foreach ( $rows as $row ) {
2663
+ $gallery_groups[$row->id] = $row->name;
2664
+ }
2665
+
2666
+ return $gallery_groups;
2667
+ }
2668
+
2669
+ /**
2670
+ * Get themes.
2671
+ *
2672
+ * @return array
2673
+ */
2674
+ public static function get_theme_rows_data() {
2675
+ global $wpdb;
2676
+ $query = "SELECT `id`, `name` FROM `" . $wpdb->prefix . "bwg_theme` ORDER BY `default_theme` DESC, `name`";
2677
+ $rows = $wpdb->get_results($query);
2678
+
2679
+ $themes = array();
2680
+ foreach ( $rows as $row ) {
2681
+ $themes[$row->id] = $row->name;
2682
+ }
2683
+
2684
+ return $themes;
2685
+ }
2686
+
2687
+ /**
2688
+ * Get default theme id.
2689
+ *
2690
+ * @return null|string
2691
+ */
2692
+ public static function get_default_theme() {
2693
+ global $wpdb;
2694
+ $query = "SELECT `id` FROM `" . $wpdb->prefix . "bwg_theme` WHERE `default_theme`=1";
2695
+ $id = $wpdb->get_var($query);
2696
+
2697
+ return $id;
2698
+ }
2699
+
2700
+ public static function get_tags() {
2701
+ global $wpdb;
2702
+ $query ="SELECT * FROM ".$wpdb->prefix."terms as A LEFT JOIN ".$wpdb->prefix ."term_taxonomy as B ON A.term_id = B.term_id WHERE B.taxonomy='bwg_tag'";
2703
+ $rows = $wpdb->get_results($query);
2704
+
2705
+ $tags = array();
2706
+ $tags[0] = __('All tags', BWG()->prefix);
2707
+ foreach ( $rows as $row ) {
2708
+ $tags[$row->term_id] = $row->name;
2709
+ }
2710
+
2711
+ return $tags;
2712
+ }
2713
+
2714
+ public static function unique_number() {
2715
+ return mt_rand();
2716
+ }
2717
+
2718
+ public static function error_message_ids() {
2719
+ return array( 26 );
2720
+ }
2721
+
2722
+ /**
2723
+ * Pre.
2724
+ *
2725
+ * @param bool $data
2726
+ * @param bool $e
2727
+ */
2728
+ public static function pre( $data = FALSE, $e = FALSE ) {
2729
  $bt = debug_backtrace();
2730
  $caller = array_shift($bt);
2731
  print "<pre><xmp>";
2736
  exit;
2737
  }
2738
  }
2739
+ }
 
framework/WDWLibraryEmbed.php CHANGED
@@ -97,22 +97,22 @@ class WDWLibraryEmbed {
97
  $fifth = strtok('/');
98
  //sixth is for video's fbid if url is video url
99
  $sixth = strtok('/');
100
- if($second_token === 'www.facebook.com') {
101
  $json_data = array("error", "Incorect url.");
102
- if ( has_filter('init_facebook_add_embed_bwg') ) {
103
- $arg = array(
104
- 'app_id' => BWG()->options->facebook_app_id,
105
- 'app_secret' => BWG()->options->facebook_app_secret,
106
- 'third_token' => $third_token,
107
- 'fourth' => $fourth,
108
- 'fifth' => $fifth,
109
- 'sixth' => $sixth,
110
- 'url' => $url
111
- );
112
- $json_data = array();
113
- $json_data = apply_filters('init_facebook_add_embed_bwg', array(), $arg);
114
  }
115
- return json_encode($json_data);
116
  }
117
 
118
  /*check if we can embed this using wordpress class WP_oEmbed */
@@ -136,13 +136,13 @@ class WDWLibraryEmbed {
136
  * Wordpress oembed not recognize instagram post url,
137
  * so we check manually.
138
  */
139
- if (!$host) {
140
  $parse = parse_url($url);
141
  $host = ($parse['host'] == "www.instagram.com") ? 'INSTAGRAM' : false;
142
  }
143
  /*return json_encode($host); for test*/
144
  /*handling oembed cases*/
145
- if ($host) {
146
  /*instagram is exception*/
147
  /*standard oembed fetching does not return thumbnail_url! so we do it manually*/
148
  if ($host == 'INSTAGRAM' && strtolower(substr($url,-4)) != 'post') {
@@ -279,7 +279,7 @@ class WDWLibraryEmbed {
279
  if(!$result){
280
  return json_encode(array("error", "please enter ". $host . " correct single media URL"));
281
  }
282
- else{/*one of known oembed types*/
283
  $embed_type = 'EMBED_OEMBED_'.$host;
284
  switch ($embed_type) {
285
  case 'EMBED_OEMBED_YOUTUBE':
@@ -303,8 +303,8 @@ class WDWLibraryEmbed {
303
  'redirect_url' => '');
304
 
305
  return json_encode($embedData);
306
-
307
- break;
308
  case 'EMBED_OEMBED_VIMEO':
309
 
310
  $embedData = array(
@@ -322,8 +322,8 @@ class WDWLibraryEmbed {
322
  'redirect_url' => '');
323
 
324
  return json_encode($embedData);
325
-
326
- break;
327
  case 'EMBED_OEMBED_FLICKR':
328
  $matches = preg_match('~^.+/(\d+)~',$url,$matches);
329
  $filename = $matches[1];
@@ -349,8 +349,7 @@ class WDWLibraryEmbed {
349
  'redirect_url' => '');
350
 
351
  return json_encode($embedData);
352
- break;
353
-
354
  case 'EMBED_OEMBED_DAILYMOTION':
355
  $filename = strtok(basename($url), '_');
356
 
@@ -369,10 +368,9 @@ class WDWLibraryEmbed {
369
  'redirect_url' => '');
370
 
371
  return json_encode($embedData);
372
-
373
- break;
374
  case 'EMBED_OEMBED_GETTYIMAGES':
375
- /*not working yet*/
376
  $filename = strtok(basename($url), '_');
377
 
378
  $embedData = array(
@@ -390,10 +388,9 @@ class WDWLibraryEmbed {
390
  'redirect_url' => '');
391
 
392
  return json_encode($embedData);
393
-
394
  default:
395
- return json_encode(array("error", "unknown URL host"));
396
- break;
397
  }
398
  }
399
  }/*end of oembed cases*/
@@ -401,12 +398,12 @@ class WDWLibraryEmbed {
401
  /*check for direct image url*/
402
  /*check if something else*/
403
  /*not implemented yet*/
404
- return json_encode(array("error", "unknown URL"));
405
  }
406
- return json_encode(array("error", "unknown URL"));
407
  }
408
 
409
- /**
410
  * client side analogue is function spider_display_embed in bwg_embed.js
411
  *
412
  * @param embed_type: string , one of predefined accepted types
@@ -414,12 +411,21 @@ class WDWLibraryEmbed {
414
  * @param attrs: associative array with html attributes and values format e.g. array('width'=>"100px", 'style'=>"display:inline;")
415
  *
416
  */
417
-
418
  public static function display_embed($embed_type, $file_url, $embed_id = '', $attrs = array()) {
419
  $html_to_insert = '';
420
-
 
 
 
 
 
 
 
 
 
 
421
  switch ($embed_type) {
422
- case 'EMBED_OEMBED_YOUTUBE_VIDEO':
423
  $oembed_youtube_html ='<iframe ';
424
  if ($embed_id != '') {
425
  $oembed_youtube_query_args = array();
@@ -450,7 +456,11 @@ class WDWLibraryEmbed {
450
  $oembed_youtube_query_args = array('start' => $seconds);
451
  }
452
  $oembed_youtube_query_args += array('enablejsapi' => 1, 'wmode' => 'transparent');
453
- $oembed_youtube_html .= ' src="' . add_query_arg($oembed_youtube_query_args, '//www.youtube.com/embed/'. $embed_id) . '"';
 
 
 
 
454
  }
455
  foreach ($attrs as $attr => $value) {
456
  if (preg_match('/src/i', $attr) === 0) {
@@ -462,10 +472,15 @@ class WDWLibraryEmbed {
462
  $oembed_youtube_html .= " ></iframe>";
463
  $html_to_insert .= $oembed_youtube_html;
464
  break;
465
- case 'EMBED_OEMBED_VIMEO_VIDEO':
 
466
  $oembed_vimeo_html ='<iframe ';
467
  if($embed_id!=''){
468
- $oembed_vimeo_html .= ' src="' . '//player.vimeo.com/video/'. $embed_id . '?enablejsapi=1"';
 
 
 
 
469
  }
470
  foreach ($attrs as $attr => $value) {
471
  if(preg_match('/src/i', $attr)===0){
@@ -477,7 +492,8 @@ class WDWLibraryEmbed {
477
  $oembed_vimeo_html .= " ></iframe>";
478
  $html_to_insert .= $oembed_vimeo_html;
479
  break;
480
- case 'EMBED_OEMBED_FLICKR_IMAGE':
 
481
  $oembed_flickr_html ='<div ';
482
  foreach ($attrs as $attr => $value) {
483
  if(preg_match('/src/i', $attr)===0){
@@ -488,8 +504,12 @@ class WDWLibraryEmbed {
488
  }
489
  $oembed_flickr_html .= " >";
490
  if($embed_id!=''){
491
- $oembed_flickr_html .= '<img src="'.$embed_id.'"'.
492
- ' style="'.
 
 
 
 
493
  'max-width:'.'100%'." !important".
494
  '; max-height:'.'100%'." !important".
495
  '; width:'.'auto !important'.
@@ -500,9 +520,11 @@ class WDWLibraryEmbed {
500
 
501
  $html_to_insert .= $oembed_flickr_html;
502
  break;
503
- case 'EMBED_OEMBED_FLICKR_VIDEO':
 
504
  # code...not implemented yet
505
- break;
 
506
  case 'EMBED_OEMBED_INSTAGRAM_VIDEO':
507
  $oembed_instagram_html ='<div ';
508
  foreach ($attrs as $attr => $value) {
@@ -514,9 +536,13 @@ class WDWLibraryEmbed {
514
  }
515
  $oembed_instagram_html .= " >";
516
  if($embed_id!=''){
517
- $oembed_instagram_html .= '<video style="width:auto !important; height:auto !important; max-width:100% !important; max-height:100% !important; margin:0 !important;" controls>'.
518
- '<source src="'. $embed_id .
519
- '" type="video/mp4"> Your browser does not support the video tag. </video>';
 
 
 
 
520
  }
521
  $oembed_instagram_html .="</div>";
522
  $html_to_insert .= $oembed_instagram_html;
@@ -532,54 +558,66 @@ class WDWLibraryEmbed {
532
  }
533
  $oembed_instagram_html .= " >";
534
  if($embed_id!=''){
535
- $oembed_instagram_html .= '<img src="//instagram.com/p/'.$embed_id.'/media/?size=l"'.
536
- ' style="'.
537
- 'max-width:'.'100%'." !important".
538
- '; max-height:'.'100%'." !important".
539
- '; width:'.'auto !important'.
540
- '; height:'. 'auto !important' .
541
- ';">';
 
 
 
 
542
  }
543
  $oembed_instagram_html .="</div>";
544
  $html_to_insert .= $oembed_instagram_html;
545
  break;
546
- case 'EMBED_OEMBED_FACEBOOK_IMAGE':
547
  $oembed_facebook_html ='<div ';
548
- foreach ($attrs as $attr => $value) {
549
- if(preg_match('/src/i', $attr)===0){
550
- if($attr != '' && $value != ''){
551
- $oembed_facebook_html .= ' '. $attr . '="'. $value . '"';
 
552
  }
553
  }
554
- }
555
- $oembed_facebook_html .= " >";
556
- if($embed_id!=''){
557
- $oembed_facebook_html .= '<img src="'.$file_url.'"'.
558
- ' style="'.
559
- 'max-width:'.'100%'." !important".
560
- '; max-height:'.'100%'." !important".
561
- '; width:'.'auto !important'.
562
- '; height:'. 'auto !important' .
563
- ';">';
564
- }
565
- $oembed_facebook_html .="</div>";
566
- $html_to_insert .= $oembed_facebook_html;
567
- break;
568
- case 'EMBED_OEMBED_FACEBOOK_VIDEO':
569
- $oembed_facebook_html ='<iframe class="bwg_fb_video"';
570
- if($embed_id!=''){
571
- $oembed_facebook_html .= ' src="//www.facebook.com/video/embed?video_id=' . $file_url . '&enablejsapi=1&wmode=transparent"';
572
- }
573
- foreach ($attrs as $attr => $value) {
574
- if(preg_match('/src/i', $attr)===0){
575
- if($attr != '' && $value != ''){
576
- $oembed_facebook_html .= ' '. $attr . '="'. $value . '"';
577
  }
 
 
 
 
 
 
578
  }
579
- }
580
- $oembed_facebook_html .= " ></iframe>";
581
- $html_to_insert .= $oembed_facebook_html;
582
- break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
583
  case 'EMBED_OEMBED_INSTAGRAM_POST':
584
  $oembed_instagram_html ='<div ';
585
  $id = '';
@@ -595,16 +633,20 @@ class WDWLibraryEmbed {
595
  }
596
  $oembed_instagram_html .= " >";
597
  if($embed_id!=''){
598
- $oembed_instagram_html .= '<iframe class="inner_instagram_iframe_'.$class.'" src="//instagr.am/p/'.$embed_id.'/embed/?enablejsapi=1"'.
599
- ' style="'.
600
- 'max-width:'.'100%'." !important".
601
- '; max-height:'.'100%'." !important".
602
- '; width:'.'100%'.
603
- '; height:'. '100%' .
604
- '; margin:0'.
605
- '; display:table-cell; vertical-align:middle;"'.
606
- 'frameborder="0" scrolling="no" allowtransparency="false" allowfullscreen'.
607
- '></iframe>';
 
 
 
 
608
  }
609
  $oembed_instagram_html .="</div>";
610
  $html_to_insert .= $oembed_instagram_html;
@@ -612,7 +654,11 @@ class WDWLibraryEmbed {
612
  case 'EMBED_OEMBED_DAILYMOTION_VIDEO':
613
  $oembed_dailymotion_html ='<iframe ';
614
  if($embed_id!=''){
615
- $oembed_dailymotion_html .= ' src="' . '//www.dailymotion.com/embed/video/'. $embed_id . '?api=postMessage"';
 
 
 
 
616
  }
617
  foreach ($attrs as $attr => $value) {
618
  if(preg_match('/src/i', $attr)===0){
@@ -637,7 +683,7 @@ class WDWLibraryEmbed {
637
  * @return json_encode(array("error","error message")) on failure
638
  * @return json_encode(array of data of instagram user recent posts) on success
639
  */
640
- public static function add_instagram_gallery( $instagram_user, $access_token, $whole_post, $autogallery_image_number ) {
641
  @set_time_limit(0);
642
  $instagram_posts_response = wp_remote_get("https://api.instagram.com/v1/users/self/media/recent/?access_token=" . $access_token . "&count=" . $autogallery_image_number);
643
  if ( is_wp_error($instagram_posts_response) ) {
@@ -709,41 +755,40 @@ class WDWLibraryEmbed {
709
  global $wpdb;
710
  $id = $args->id;
711
  $type = $args->gallery_type;
712
- $source = $args->gallery_source;
713
  $update_flag = $args->update_flag;
714
  $autogallery_image_number = $args->autogallery_image_number;
715
 
716
- $is_instagram = false;
717
  if ( $type == 'instagram' ) {
718
- $is_instagram = true;
719
  $whole_post = 0;
720
  }
721
  elseif ( $type == 'instagram_post' ) {
722
- $is_instagram = true;
723
- $whole_post = 1;
724
- }
725
 
726
- if(!$id || !$type || !$source){
727
- return array(false, "Gallery id, type or source are empty");
728
  }
729
 
730
- $images_new = array();
 
731
  if ($is_instagram) {
732
  $instagram_access_token = BWG()->options->instagram_access_token;
733
  if ( !$instagram_access_token ) {
734
  return array(false, "Cannot get access token from the database");
735
  }
736
- $data = self::add_instagram_gallery($source, $instagram_access_token, $whole_post, $autogallery_image_number);
737
  $images_new = json_decode($data);
738
  }
739
  elseif( !empty($args->images_list) ) {
740
- $images_new = $args->images_list;
741
  }
742
 
743
  if ( empty($images_new) ) {
744
  return array(false, "Cannot get social data");
745
  }
746
-
747
  $images = $wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "bwg_image WHERE gallery_id = '" . $id . "' ", OBJECT);
748
  $images_count = sizeof($images);
749
 
@@ -757,7 +802,6 @@ class WDWLibraryEmbed {
757
  else{
758
  $author = 1;
759
  }
760
-
761
  /*loops to compare new and existing images*/
762
  foreach ($images_new as $image_new) {
763
  $to_add = true;
@@ -769,7 +813,7 @@ class WDWLibraryEmbed {
769
  }
770
  }
771
  }
772
- if($to_add){
773
  /*if image does not exist, insert*/
774
  $new_order++;
775
  $new_image_data = array(
@@ -860,71 +904,35 @@ class WDWLibraryEmbed {
860
  }
861
  }
862
  /*add new images*/
863
- foreach($images_insert as $image){
864
- $save = $wpdb->insert($wpdb->prefix . 'bwg_image', array(
865
- 'gallery_id' => $image['gallery_id'],
866
- 'slug' => self::spider_replace4byte($image['slug']),
867
- 'filename' => $image['filename'],
868
- 'image_url' => $image['image_url'],
869
- 'thumb_url' => $image['thumb_url'],
870
- 'description' => self::spider_replace4byte($image['description']),
871
- 'alt' => self::spider_replace4byte($image['alt']),
872
- 'date' => $image['date'],
873
- 'size' => $image['size'],
874
- 'filetype' => $image['filetype'],
875
- 'resolution' => $image['resolution'],
876
- 'author' => $image['author'],
877
- 'order' => $image['order'],
878
- 'published' => $image['published'],
879
- 'comment_count' => $image['comment_count'],
880
- 'avg_rating' => $image['avg_rating'],
881
- 'rate_count' => $image['rate_count'],
882
- 'hit_count' => $image['hit_count'],
883
- 'redirect_url' => $image['redirect_url'],
884
- ), array(
885
- '%d',
886
- '%s',
887
- '%s',
888
- '%s',
889
- '%s',
890
- '%s',
891
- '%s',
892
- '%s',
893
- '%s',
894
- '%s',
895
- '%s',
896
- '%d',
897
- '%d',
898
- '%d',
899
- '%d',
900
- '%d',
901
- '%d',
902
- '%d',
903
- '%s',
904
- ));
905
- }
906
 
907
  $time = date('d F Y, H:i');
908
  /*return time of last update*/
909
  return array(true, $time);
910
  }
911
 
912
- /**
913
- * Get autoupdate interval.
914
- *
915
- * @return int
916
- */
917
- public static function get_autoupdate_interval() {
918
- if(!isset(BWG()->options)){
919
- return 30;
920
- }
921
- if(!isset(BWG()->options->autoupdate_interval)){
922
- return 30;
923
- }
924
- $autoupdate_interval = BWG()->options->autoupdate_interval;
925
- return $autoupdate_interval;
926
- }
927
-
928
  /**
929
  * Spider replace 4 byte.
930
  *
97
  $fifth = strtok('/');
98
  //sixth is for video's fbid if url is video url
99
  $sixth = strtok('/');
100
+ if ( $second_token === 'www.facebook.com') {
101
  $json_data = array("error", "Incorect url.");
102
+ if ( has_filter('init_facebook_add_embed_bwg') ) {
103
+ $arg = array(
104
+ 'app_id' => BWG()->options->facebook_app_id,
105
+ 'app_secret' => BWG()->options->facebook_app_secret,
106
+ 'third_token' => $third_token,
107
+ 'fourth' => $fourth,
108
+ 'fifth' => $fifth,
109
+ 'sixth' => $sixth,
110
+ 'url' => $url
111
+ );
112
+ $json_data = array();
113
+ $json_data = apply_filters('init_facebook_add_embed_bwg', array(), $arg);
114
  }
115
+ return json_encode($json_data);
116
  }
117
 
118
  /*check if we can embed this using wordpress class WP_oEmbed */
136
  * Wordpress oembed not recognize instagram post url,
137
  * so we check manually.
138
  */
139
+ if ( !$host ) {
140
  $parse = parse_url($url);
141
  $host = ($parse['host'] == "www.instagram.com") ? 'INSTAGRAM' : false;
142
  }
143
  /*return json_encode($host); for test*/
144
  /*handling oembed cases*/
145
+ if ( $host ) {
146
  /*instagram is exception*/
147
  /*standard oembed fetching does not return thumbnail_url! so we do it manually*/
148
  if ($host == 'INSTAGRAM' && strtolower(substr($url,-4)) != 'post') {
279
  if(!$result){
280
  return json_encode(array("error", "please enter ". $host . " correct single media URL"));
281
  }
282
+ else { /*one of known oembed types*/
283
  $embed_type = 'EMBED_OEMBED_'.$host;
284
  switch ($embed_type) {
285
  case 'EMBED_OEMBED_YOUTUBE':
303
  'redirect_url' => '');
304
 
305
  return json_encode($embedData);
306
+ break;
307
+
308
  case 'EMBED_OEMBED_VIMEO':
309
 
310
  $embedData = array(
322
  'redirect_url' => '');
323
 
324
  return json_encode($embedData);
325
+ break;
326
+
327
  case 'EMBED_OEMBED_FLICKR':
328
  $matches = preg_match('~^.+/(\d+)~',$url,$matches);
329
  $filename = $matches[1];
349
  'redirect_url' => '');
350
 
351
  return json_encode($embedData);
352
+ break;
 
353
  case 'EMBED_OEMBED_DAILYMOTION':
354
  $filename = strtok(basename($url), '_');
355
 
368
  'redirect_url' => '');
369
 
370
  return json_encode($embedData);
371
+ break;
 
372
  case 'EMBED_OEMBED_GETTYIMAGES':
373
+ /*not working yet*/
374
  $filename = strtok(basename($url), '_');
375
 
376
  $embedData = array(
388
  'redirect_url' => '');
389
 
390
  return json_encode($embedData);
 
391
  default:
392
+ return json_encode( array("error", __('The entered URL is incorrect. Please check the URL and try again.', BWG()->prefix) ) );
393
+ break;
394
  }
395
  }
396
  }/*end of oembed cases*/
398
  /*check for direct image url*/
399
  /*check if something else*/
400
  /*not implemented yet*/
401
+ return json_encode( array("error", __('The entered URL is incorrect. Please check the URL and try again.', BWG()->prefix) ) );
402
  }
403
+ return json_encode( array("error", __('The entered URL is incorrect. Please check the URL and try again.', BWG()->prefix) ) );
404
  }
405
 
406
+ /**
407
  * client side analogue is function spider_display_embed in bwg_embed.js
408
  *
409
  * @param embed_type: string , one of predefined accepted types
411
  * @param attrs: associative array with html attributes and values format e.g. array('width'=>"100px", 'style'=>"display:inline;")
412
  *
413
  */
 
414
  public static function display_embed($embed_type, $file_url, $embed_id = '', $attrs = array()) {
415
  $html_to_insert = '';
416
+ $is_visible = true;
417
+ if( isset($attrs['is_visible']) ) {
418
+ $is_visible = $attrs['is_visible'];
419
+ $bwg = $attrs['bwg'];
420
+ $image_key = $attrs['image_key'];
421
+ /* The attrs using in div as attribute */
422
+ unset( $attrs['bwg'],$attrs['is_visible'],$attrs['image_key'] );
423
+ if ( !$is_visible ) {
424
+ $attrs['class'] .= ' bwg_carousel_preload';
425
+ }
426
+ }
427
  switch ($embed_type) {
428
+ case 'EMBED_OEMBED_YOUTUBE_VIDEO': {
429
  $oembed_youtube_html ='<iframe ';
430
  if ($embed_id != '') {
431
  $oembed_youtube_query_args = array();
456
  $oembed_youtube_query_args = array('start' => $seconds);
457
  }
458
  $oembed_youtube_query_args += array('enablejsapi' => 1, 'wmode' => 'transparent');
459
+ if( $is_visible ) {
460
+ $oembed_youtube_html .= ' src="' . add_query_arg($oembed_youtube_query_args, '//www.youtube.com/embed/' . $embed_id) . '"';
461
+ } else {
462
+ $oembed_youtube_html .= 'id="bwg_carousel_preload_'.$bwg.'_'.$image_key.'" data-src="' . add_query_arg($oembed_youtube_query_args, '//www.youtube.com/embed/' . $embed_id) . '"';
463
+ }
464
  }
465
  foreach ($attrs as $attr => $value) {
466
  if (preg_match('/src/i', $attr) === 0) {
472
  $oembed_youtube_html .= " ></iframe>";
473
  $html_to_insert .= $oembed_youtube_html;
474
  break;
475
+ }
476
+ case 'EMBED_OEMBED_VIMEO_VIDEO': {
477
  $oembed_vimeo_html ='<iframe ';
478
  if($embed_id!=''){
479
+ if( $is_visible ) {
480
+ $oembed_vimeo_html .= ' src="' . '//player.vimeo.com/video/' . $embed_id . '?enablejsapi=1"';
481
+ } else {
482
+ $oembed_vimeo_html .= 'id="bwg_carousel_preload_'.$bwg.'_'.$image_key.'" data-src="' . '//player.vimeo.com/video/' . $embed_id . '?enablejsapi=1"';
483
+ }
484
  }
485
  foreach ($attrs as $attr => $value) {
486
  if(preg_match('/src/i', $attr)===0){
492
  $oembed_vimeo_html .= " ></iframe>";
493
  $html_to_insert .= $oembed_vimeo_html;
494
  break;
495
+ }
496
+ case 'EMBED_OEMBED_FLICKR_IMAGE': {
497
  $oembed_flickr_html ='<div ';
498
  foreach ($attrs as $attr => $value) {
499
  if(preg_match('/src/i', $attr)===0){
504
  }
505
  $oembed_flickr_html .= " >";
506
  if($embed_id!=''){
507
+ if( $is_visible ) {
508
+ $oembed_flickr_html .= '<img src="' . $embed_id . '"';
509
+ } else {
510
+ $oembed_flickr_html .= '<img id="bwg_carousel_preload_'.$bwg.'_'.$image_key.'" data-src="' . $embed_id . '"';
511
+ }
512
+ $oembed_flickr_html .= ' style="'.
513
  'max-width:'.'100%'." !important".
514
  '; max-height:'.'100%'." !important".
515
  '; width:'.'auto !important'.
520
 
521
  $html_to_insert .= $oembed_flickr_html;
522
  break;
523
+ }
524
+ case 'EMBED_OEMBED_FLICKR_VIDEO': {
525
  # code...not implemented yet
526
+ break;
527
+ }
528
  case 'EMBED_OEMBED_INSTAGRAM_VIDEO':
529
  $oembed_instagram_html ='<div ';
530
  foreach ($attrs as $attr => $value) {
536
  }
537
  $oembed_instagram_html .= " >";
538
  if($embed_id!=''){
539
+ $oembed_instagram_html .= '<video class="bwg_carousel_video" style="width:auto !important; height:auto !important; max-width:100% !important; max-height:100% !important; margin:0 !important;" controls>';
540
+ if ( $is_visible ) {
541
+ $oembed_instagram_html .= '<source src="' . $embed_id;
542
+ } else {
543
+ $oembed_instagram_html .= '<source id="bwg_carousel_preload_'.$bwg.'_'.$image_key.'" data-src="' . $embed_id;
544
+ }
545
+ $oembed_instagram_html .= '" type="video/mp4"> Your browser does not support the video tag. </video>';
546
  }
547
  $oembed_instagram_html .="</div>";
548
  $html_to_insert .= $oembed_instagram_html;
558
  }
559
  $oembed_instagram_html .= " >";
560
  if($embed_id!=''){
561
+ if ( $is_visible ) {
562
+ $oembed_instagram_html .= '<img src="//instagram.com/p/' . $embed_id . '/media/?size=l"';
563
+ } else {
564
+ $oembed_instagram_html .= '<img id="bwg_carousel_preload_'.$bwg.'_'.$image_key.'" data-src="//instagram.com/p/' . $embed_id . '/media/?size=l"';
565
+ }
566
+ $oembed_instagram_html .= ' style="'.
567
+ 'max-width:'.'100%'." !important".
568
+ '; max-height:'.'100%'." !important".
569
+ '; width:'.'auto !important'.
570
+ '; height:'. 'auto !important' .
571
+ ';">';
572
  }
573
  $oembed_instagram_html .="</div>";
574
  $html_to_insert .= $oembed_instagram_html;
575
  break;
576
+ case 'EMBED_OEMBED_FACEBOOK_IMAGE':
577
  $oembed_facebook_html ='<div ';
578
+ foreach ($attrs as $attr => $value) {
579
+ if(preg_match('/src/i', $attr)===0){
580
+ if($attr != '' && $value != ''){
581
+ $oembed_facebook_html .= ' '. $attr . '="'. $value . '"';
582
+ }
583
  }
584
  }
585
+ $oembed_facebook_html .= " >";
586
+ if($embed_id!=''){
587
+ if ( $is_visible ) {
588
+ $oembed_facebook_html .= '<img src="' . $file_url . '"';
589
+ } else {
590
+ $oembed_facebook_html .= '<img id="bwg_carousel_preload_'.$bwg.'_'.$image_key.'" data-src="' . $file_url . '"';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
591
  }
592
+ $oembed_facebook_html .= ' style="'.
593
+ 'max-width:'.'100%'." !important".
594
+ '; max-height:'.'100%'." !important".
595
+ '; width:'.'auto !important'.
596
+ '; height:'. 'auto !important' .
597
+ ';">';
598
  }
599
+ $oembed_facebook_html .="</div>";
600
+ $html_to_insert .= $oembed_facebook_html;
601
+ break;
602
+ case 'EMBED_OEMBED_FACEBOOK_VIDEO':
603
+ $oembed_facebook_html ='<iframe class="bwg_fb_video"';
604
+ if($embed_id!=''){
605
+ if( $is_visible ) {
606
+ $oembed_facebook_html .= ' src="//www.facebook.com/video/embed?video_id=' . $file_url . '&enablejsapi=1&wmode=transparent"';
607
+ } else {
608
+ $oembed_facebook_html .= ' id="bwg_carousel_preload_'.$bwg.'_'.$image_key.'" data-src="//www.facebook.com/video/embed?video_id=' . $file_url . '&enablejsapi=1&wmode=transparent"';
609
+ }
610
+ }
611
+ foreach ($attrs as $attr => $value) {
612
+ if(preg_match('/src/i', $attr)===0){
613
+ if($attr != '' && $value != ''){
614
+ $oembed_facebook_html .= ' '. $attr . '="'. $value . '"';
615
+ }
616
+ }
617
+ }
618
+ $oembed_facebook_html .= " ></iframe>";
619
+ $html_to_insert .= $oembed_facebook_html;
620
+ break;
621
  case 'EMBED_OEMBED_INSTAGRAM_POST':
622
  $oembed_instagram_html ='<div ';
623
  $id = '';
633
  }
634
  $oembed_instagram_html .= " >";
635
  if($embed_id!=''){
636
+ if ( $is_visible ) {
637
+ $oembed_instagram_html .= '<iframe class="inner_instagram_iframe_' . $class . '" src="//instagr.am/p/' . $embed_id . '/embed/?enablejsapi=1"';
638
+ } else {
639
+ $oembed_instagram_html .= '<iframe id="bwg_carousel_preload_'.$bwg.'_'.$image_key.'" class="inner_instagram_iframe_' . $class . '" data-src="//instagr.am/p/' . $embed_id . '/embed/?enablejsapi=1"';
640
+ }
641
+ $oembed_instagram_html .= ' style="'.
642
+ 'max-width:'.'100%'." !important".
643
+ '; max-height:'.'100%'." !important".
644
+ '; width:'.'100%'.
645
+ '; height:'. '100%' .
646
+ '; margin:0'.
647
+ '; display:table-cell; vertical-align:middle;"'.
648
+ 'frameborder="0" scrolling="no" allowtransparency="false" allowfullscreen'.
649
+ '></iframe>';
650
  }
651
  $oembed_instagram_html .="</div>";
652
  $html_to_insert .= $oembed_instagram_html;
654
  case 'EMBED_OEMBED_DAILYMOTION_VIDEO':
655
  $oembed_dailymotion_html ='<iframe ';
656
  if($embed_id!=''){
657
+ if ( $is_visible ) {
658
+ $oembed_dailymotion_html .= ' src="' . '//www.dailymotion.com/embed/video/' . $embed_id . '?api=postMessage"';
659
+ } else {
660
+ $oembed_dailymotion_html .= ' id="bwg_carousel_preload_'.$bwg.'_'.$image_key.'" data-src="' . '//www.dailymotion.com/embed/video/' . $embed_id . '?api=postMessage"';
661
+ }
662
  }
663
  foreach ($attrs as $attr => $value) {
664
  if(preg_match('/src/i', $attr)===0){
683
  * @return json_encode(array("error","error message")) on failure
684
  * @return json_encode(array of data of instagram user recent posts) on success
685
  */
686
+ public static function add_instagram_gallery( $access_token, $whole_post, $autogallery_image_number ) {
687
  @set_time_limit(0);
688
  $instagram_posts_response = wp_remote_get("https://api.instagram.com/v1/users/self/media/recent/?access_token=" . $access_token . "&count=" . $autogallery_image_number);
689
  if ( is_wp_error($instagram_posts_response) ) {
755
  global $wpdb;
756
  $id = $args->id;
757
  $type = $args->gallery_type;
 
758
  $update_flag = $args->update_flag;
759
  $autogallery_image_number = $args->autogallery_image_number;
760
 
761
+ $is_instagram = false;
762
  if ( $type == 'instagram' ) {
763
+ $is_instagram = TRUE;
764
  $whole_post = 0;
765
  }
766
  elseif ( $type == 'instagram_post' ) {
767
+ $is_instagram = TRUE;
768
+ $whole_post = 1;
769
+ }
770
 
771
+ if ( !$id || !$type ) {
772
+ return array( FALSE, "Gallery id, type or source are empty" );
773
  }
774
 
775
+ $images_new = array();
776
+
777
  if ($is_instagram) {
778
  $instagram_access_token = BWG()->options->instagram_access_token;
779
  if ( !$instagram_access_token ) {
780
  return array(false, "Cannot get access token from the database");
781
  }
782
+ $data = self::add_instagram_gallery($instagram_access_token, $whole_post, $autogallery_image_number);
783
  $images_new = json_decode($data);
784
  }
785
  elseif( !empty($args->images_list) ) {
786
+ $images_new = $args->images_list;
787
  }
788
 
789
  if ( empty($images_new) ) {
790
  return array(false, "Cannot get social data");
791
  }
 
792
  $images = $wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "bwg_image WHERE gallery_id = '" . $id . "' ", OBJECT);
793
  $images_count = sizeof($images);
794
 
802
  else{
803
  $author = 1;
804
  }
 
805
  /*loops to compare new and existing images*/
806
  foreach ($images_new as $image_new) {
807
  $to_add = true;
813
  }
814
  }
815
  }
816
+ if ( $to_add ) {
817
  /*if image does not exist, insert*/
818
  $new_order++;
819
  $new_image_data = array(
904
  }
905
  }
906
  /*add new images*/
907
+ foreach ( $images_insert as $image ) {
908
+ $wpdb->insert($wpdb->prefix . 'bwg_image', array(
909
+ 'gallery_id' => $image['gallery_id'],
910
+ 'slug' => self::spider_replace4byte($image['slug']),
911
+ 'filename' => $image['filename'],
912
+ 'image_url' => $image['image_url'],
913
+ 'thumb_url' => $image['thumb_url'],
914
+ 'description' => self::spider_replace4byte($image['description']),
915
+ 'alt' => self::spider_replace4byte($image['alt']),
916
+ 'date' => $image['date'],
917
+ 'size' => $image['size'],
918
+ 'filetype' => $image['filetype'],
919
+ 'resolution' => $image['resolution'],
920
+ 'author' => $image['author'],
921
+ 'order' => $image['order'],
922
+ 'published' => $image['published'],
923
+ 'comment_count' => $image['comment_count'],
924
+ 'avg_rating' => $image['avg_rating'],
925
+ 'rate_count' => $image['rate_count'],
926
+ 'hit_count' => $image['hit_count'],
927
+ 'redirect_url' => $image['redirect_url'],
928
+ ));
929
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
930
 
931
  $time = date('d F Y, H:i');
932
  /*return time of last update*/
933
  return array(true, $time);
934
  }
935
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
936
  /**
937
  * Spider replace 4 byte.
938
  *
framework/howto/data.php CHANGED
@@ -47,8 +47,10 @@ $howto = array(
47
  'function' => ''
48
  ),
49
  )
50
- ),
51
- 2 => array(
 
 
52
  'title' => __('Advanced: PHP code', BWG()->prefix),
53
  'description' => sprintf(__('%s This code should be inserted into a PHP file. This is a more advanced method of publishing and should be used in case you want the galleries to be integrated into your theme files ( for example in your website header or footer area ). You can\'t insert this code into your post / page editor.', BWG()->prefix), '<span class="wh-howto-attention">' . __('Attention:', BWG()->prefix) . '</span>'),
54
  'content' => array(
@@ -69,10 +71,10 @@ $howto = array(
69
  'content' => __('The Photo Gallery will now appear in the section of the site you’ve chosen.', BWG()->prefix),
70
  'screenshot' => '',
71
  'function' => ''
72
- ),
73
  )
74
- ),
75
- );
76
  function bwg_howto_php_code($params) {
77
  ?>
78
  <script>
47
  'function' => ''
48
  ),
49
  )
50
+ )
51
+ );
52
+ if ( !empty($params['shortcode_id']) ) {
53
+ $howto[] = array(
54
  'title' => __('Advanced: PHP code', BWG()->prefix),
55
  'description' => sprintf(__('%s This code should be inserted into a PHP file. This is a more advanced method of publishing and should be used in case you want the galleries to be integrated into your theme files ( for example in your website header or footer area ). You can\'t insert this code into your post / page editor.', BWG()->prefix), '<span class="wh-howto-attention">' . __('Attention:', BWG()->prefix) . '</span>'),
56
  'content' => array(
71
  'content' => __('The Photo Gallery will now appear in the section of the site you’ve chosen.', BWG()->prefix),
72
  'screenshot' => '',
73
  'function' => ''
74
+ )
75
  )
76
+ );
77
+ }
78
  function bwg_howto_php_code($params) {
79
  ?>
80
  <script>
framework/howto/howto.php CHANGED
@@ -45,6 +45,7 @@ wp_print_scripts('jquery-ui-tabs');
45
  }
46
  #wd_howto_container * {
47
  box-sizing: border-box;
 
48
  }
49
  #wd_howto_container {
50
  position: fixed;
@@ -55,14 +56,14 @@ wp_print_scripts('jquery-ui-tabs');
55
  background: #000000b3;
56
  z-index: 100500;
57
  }
58
- .wd-howto-overlay {
59
  position: absolute;
60
  top: 0;
61
  right: 0;
62
  bottom: 0;
63
  left: 0;
64
  }
65
- .wd-howto-wrap {
66
  background: #fff;
67
  font-size: 0;
68
  height: 100%;
@@ -76,7 +77,7 @@ wp_print_scripts('jquery-ui-tabs');
76
  max-width: 955px;
77
  max-height: 600px;
78
  }
79
- .wd-howto-menu {
80
  display: inline-block;
81
  font-size: initial;
82
  background: #FBFCFD;
@@ -88,7 +89,7 @@ wp_print_scripts('jquery-ui-tabs');
88
  vertical-align: top;
89
  padding: 20px;
90
  }
91
- .wd-howto-content {
92
  display: inline-block;
93
  font-size: initial;
94
  background: #FFFFFF;
@@ -101,7 +102,7 @@ wp_print_scripts('jquery-ui-tabs');
101
  overflow-x: hidden;
102
  overflow-y: scroll;
103
  }
104
- .wd-howto-title {
105
  color: #323A45;
106
  font-family: Ubuntu;
107
  font-size: 22px;
@@ -129,12 +130,12 @@ wp_print_scripts('jquery-ui-tabs');
129
  #wd_howto_container li.ui-tabs-active {
130
  color: #2160B5;
131
  }
132
- .wd-howto-divider-horizontal {
133
  border: #0000000d 1px solid;
134
  margin-top: 20px;
135
  width: 100%;
136
  }
137
- .wd-howto-divider-vertical {
138
  border: #0000000d 1px solid;
139
  width: 0;
140
  height: calc(100% - 30px);
@@ -147,10 +148,10 @@ wp_print_scripts('jquery-ui-tabs');
147
  font-weight: 300;
148
  line-height: 18px;
149
  }
150
- .wh-howto-attention {
151
  color: #FD3C31;
152
  }
153
- .wd-howto-numeration {
154
  color: #FFFFFF;
155
  display: inline-block;
156
  background: #29B311;
@@ -164,11 +165,11 @@ wp_print_scripts('jquery-ui-tabs');
164
  text-align: center;
165
  vertical-align: middle;
166
  }
167
- .wd-howto-content-wrap {
168
  margin-top: 20px;
169
  position: relative;
170
  }
171
- .wd-howto-content-title {
172
  display: inline-block;
173
  color: #323A45;
174
  line-height: 18px;
@@ -177,7 +178,7 @@ wp_print_scripts('jquery-ui-tabs');
177
  font-weight: 400;
178
  vertical-align: middle;
179
  }
180
- .wd-howto-content-content {
181
  color: #323A45;
182
  line-height: 18px;
183
  font-family: Ubuntu;
@@ -185,26 +186,26 @@ wp_print_scripts('jquery-ui-tabs');
185
  font-weight: 300;
186
  margin-top: 10px;
187
  }
188
- .wd-howto-screenshot {
189
  margin: 20px 0;
190
  width: 100%;
191
  }
192
- .wd-howto-mobile {
193
  display: none;
194
  }
195
- .wd-howto-content-left,
196
- .wd-howto-content-right {
197
  display: inline-block;
198
  vertical-align: top;
199
  }
200
- .wd-howto-content-left {
201
  width: 40px;
202
  height: 100%;
203
  position: absolute;
204
  top: 0;
205
  bottom: 0;
206
  }
207
- .wd-howto-content-right {
208
  padding-left: 40px;
209
  width: calc(100% - 40px);
210
  height: 100%;
@@ -217,7 +218,7 @@ wp_print_scripts('jquery-ui-tabs');
217
  font-size: 30px;
218
  cursor: pointer;
219
  }
220
- .wd-howto-loading-image {
221
  width: 50px;
222
  }
223
  @media (max-width:1000px) {
@@ -231,41 +232,41 @@ wp_print_scripts('jquery-ui-tabs');
231
  }
232
  }
233
  @media (max-width:768px) {
234
- .wd-howto-content {
235
  padding: 16px;
236
  }
237
- .wd-howto-divider-horizontal {
238
  display: none;
239
  }
240
- .wd-howto-mobile .wd-howto-divider-horizontal {
241
  width: 768px;
242
  margin-left: -16px;
243
  display: block;
244
  }
245
- .wd-howto-divider-vertical {
246
  height: calc(100% - 10px);
247
  margin: 5px 9px;
248
  }
249
- .wd-howto-menu {
250
  left: -310px;
251
  position: absolute;
252
  width: 310px;
253
  z-index: 100501;
254
  transition: left 0.5s;
255
  }
256
- .wd-howto-menu-opened {
257
  left: 0;
258
  }
259
- .wd-howto-content {
260
  width: 100%;
261
  }
262
- .wd-howto-wrap {
263
  width: 100%;
264
  height: 100%;
265
  max-width: none;
266
  max-height: none;
267
  }
268
- .wd-howto-mobile {
269
  display: initial;
270
  position: absolute;
271
  top: 0;
@@ -273,31 +274,31 @@ wp_print_scripts('jquery-ui-tabs');
273
  background-color: #FFFFFF;
274
  z-index: 100500;
275
  }
276
- .wd-howto-content {
277
  padding-top: 60px;
278
  }
279
- .wd-howto-desktop {
280
  display: none;
281
  }
282
  #wd_howto_container .dashicons-menu {
283
  color: #414852;
284
  cursor: pointer;
285
  }
286
- .wd-howto-title {
287
  font-size: 16px;
288
  line-height: 20px;
289
  }
290
- .wd-howto-title-desktop {
291
  margin-top: 14px;
292
  font-size: 14px;
293
  }
294
- .wd-howto-content-title {
295
  font-size: 14px;
296
  }
297
- .wd-howto-content-content {
298
  font-size: 12px;
299
  }
300
- .wd-howto-numeration {
301
  width: 20px;
302
  height: 20px;
303
  font-size: 12px;
@@ -309,7 +310,7 @@ wp_print_scripts('jquery-ui-tabs');
309
  #wd_howto_container li {
310
  font-size: 12px;
311
  }
312
- .wd-howto-menu-overlay {
313
  position: fixed;
314
  top: 0;
315
  right: 0;
@@ -326,10 +327,10 @@ wp_print_scripts('jquery-ui-tabs');
326
  cursor: pointer;
327
  }
328
  }
 
 
 
329
  </style>
330
- <button class="button button-secondary button-large" onclick="wd_how_to_use(); return false;">
331
- <?php _e('How to use', BWG()->prefix); ?>
332
- </button>
333
  <div id="wd_howto_container" class="hidden">
334
  <div class="wd-howto-overlay" onclick="wd_how_to_use(); return false;"></div>
335
  <div id="wd_howto_wrap" class="wd-howto-wrap">
@@ -404,4 +405,7 @@ wp_print_scripts('jquery-ui-tabs');
404
  </div>
405
  </div>
406
  </div>
 
 
 
407
  <?php
45
  }
46
  #wd_howto_container * {
47
  box-sizing: border-box;
48
+ font-size: 14px;
49
  }
50
  #wd_howto_container {
51
  position: fixed;
56
  background: #000000b3;
57
  z-index: 100500;
58
  }
59
+ #wd_howto_container .wd-howto-overlay {
60
  position: absolute;
61
  top: 0;
62
  right: 0;
63
  bottom: 0;
64
  left: 0;
65
  }
66
+ #wd_howto_container .wd-howto-wrap {
67
  background: #fff;
68
  font-size: 0;
69
  height: 100%;
77
  max-width: 955px;
78
  max-height: 600px;
79
  }
80
+ #wd_howto_container .wd-howto-menu {
81
  display: inline-block;
82
  font-size: initial;
83
  background: #FBFCFD;
89
  vertical-align: top;
90
  padding: 20px;
91
  }
92
+ #wd_howto_container .wd-howto-content {
93
  display: inline-block;
94
  font-size: initial;
95
  background: #FFFFFF;
102
  overflow-x: hidden;
103
  overflow-y: scroll;
104
  }
105
+ #wd_howto_container .wd-howto-title {
106
  color: #323A45;
107
  font-family: Ubuntu;
108
  font-size: 22px;
130
  #wd_howto_container li.ui-tabs-active {
131
  color: #2160B5;
132
  }
133
+ #wd_howto_container .wd-howto-divider-horizontal {
134
  border: #0000000d 1px solid;
135
  margin-top: 20px;
136
  width: 100%;
137
  }
138
+ #wd_howto_container .wd-howto-divider-vertical {
139
  border: #0000000d 1px solid;
140
  width: 0;
141
  height: calc(100% - 30px);
148
  font-weight: 300;
149
  line-height: 18px;
150
  }
151
+ #wd_howto_container .wh-howto-attention {
152
  color: #FD3C31;
153
  }
154
+ #wd_howto_container .wd-howto-numeration {
155
  color: #FFFFFF;
156
  display: inline-block;
157
  background: #29B311;
165
  text-align: center;
166
  vertical-align: middle;
167
  }
168
+ #wd_howto_container .wd-howto-content-wrap {
169
  margin-top: 20px;
170
  position: relative;
171
  }
172
+ #wd_howto_container .wd-howto-content-title {
173
  display: inline-block;
174
  color: #323A45;
175
  line-height: 18px;
178
  font-weight: 400;
179
  vertical-align: middle;
180
  }
181
+ #wd_howto_container .wd-howto-content-content {
182
  color: #323A45;
183
  line-height: 18px;
184
  font-family: Ubuntu;
186
  font-weight: 300;
187
  margin-top: 10px;
188
  }
189
+ #wd_howto_container .wd-howto-screenshot {
190
  margin: 20px 0;
191
  width: 100%;
192
  }
193
+ #wd_howto_container .wd-howto-mobile {
194
  display: none;
195
  }
196
+ #wd_howto_container .wd-howto-content-left,
197
+ #wd_howto_container .wd-howto-content-right {
198
  display: inline-block;
199
  vertical-align: top;
200
  }
201
+ #wd_howto_container .wd-howto-content-left {
202
  width: 40px;
203
  height: 100%;
204
  position: absolute;
205
  top: 0;
206
  bottom: 0;
207
  }
208
+ #wd_howto_container .wd-howto-content-right {
209
  padding-left: 40px;
210
  width: calc(100% - 40px);
211
  height: 100%;
218
  font-size: 30px;
219
  cursor: pointer;
220
  }
221
+ #wd_howto_container .wd-howto-loading-image {
222
  width: 50px;
223
  }
224
  @media (max-width:1000px) {
232
  }
233
  }
234
  @media (max-width:768px) {
235
+ #wd_howto_container .wd-howto-content {
236
  padding: 16px;
237
  }
238
+ #wd_howto_container .wd-howto-divider-horizontal {
239
  display: none;
240
  }
241
+ #wd_howto_container .wd-howto-mobile .wd-howto-divider-horizontal {
242
  width: 768px;
243
  margin-left: -16px;
244
  display: block;
245
  }
246
+ #wd_howto_container .wd-howto-divider-vertical {
247
  height: calc(100% - 10px);
248
  margin: 5px 9px;
249
  }
250
+ #wd_howto_container .wd-howto-menu {
251
  left: -310px;
252
  position: absolute;
253
  width: 310px;
254
  z-index: 100501;
255
  transition: left 0.5s;
256
  }
257
+ #wd_howto_container .wd-howto-menu-opened {
258
  left: 0;
259
  }
260
+ #wd_howto_container .wd-howto-content {
261
  width: 100%;
262
  }
263
+ #wd_howto_container .wd-howto-wrap {
264
  width: 100%;
265
  height: 100%;
266
  max-width: none;
267
  max-height: none;
268
  }
269
+ #wd_howto_container .wd-howto-mobile {
270
  display: initial;
271
  position: absolute;
272
  top: 0;
274
  background-color: #FFFFFF;
275
  z-index: 100500;
276
  }
277
+ #wd_howto_container .wd-howto-content {
278
  padding-top: 60px;
279
  }
280
+ #wd_howto_container .wd-howto-desktop {
281
  display: none;
282
  }
283
  #wd_howto_container .dashicons-menu {
284
  color: #414852;
285
  cursor: pointer;
286
  }
287
+ #wd_howto_container .wd-howto-title {
288
  font-size: 16px;
289
  line-height: 20px;
290
  }
291
+ #wd_howto_container .wd-howto-title-desktop {
292
  margin-top: 14px;
293
  font-size: 14px;
294
  }
295
+ #wd_howto_container .wd-howto-content-title {
296
  font-size: 14px;
297
  }
298
+ #wd_howto_container .wd-howto-content-content {
299
  font-size: 12px;
300
  }
301
+ #wd_howto_container .wd-howto-numeration {
302
  width: 20px;
303
  height: 20px;
304
  font-size: 12px;
310
  #wd_howto_container li {
311
  font-size: 12px;
312
  }
313
+ #wd_howto_container .wd-howto-menu-overlay {
314
  position: fixed;
315
  top: 0;
316
  right: 0;
327
  cursor: pointer;
328
  }
329
  }
330
+ .bwg-howto-button:last-child {
331
+ float: right;
332
+ }
333
  </style>
 
 
 
334
  <div id="wd_howto_container" class="hidden">
335
  <div class="wd-howto-overlay" onclick="wd_how_to_use(); return false;"></div>
336
  <div id="wd_howto_wrap" class="wd-howto-wrap">
405
  </div>
406
  </div>
407
  </div>
408
+ <button type="button" class="button button-secondary button-large bwg-howto-button" onclick="wd_how_to_use(); return false;">
409
+ <?php _e('How to use', BWG()->prefix); ?>
410
+ </button>
411
  <?php
frontend/controllers/BWGControllerAlbum_compact_preview.php DELETED
@@ -1,28 +0,0 @@
1
- <?php
2
- class BWGControllerAlbum_compact_preview {
3
-
4
- public function __construct() {
5
- }
6
-
7
- public function execute($params = array(), $from_shortcode = 0, $bwg = 0) {
8
- $this->display($params, $from_shortcode, $bwg);
9
- }
10
-
11
- public function display($params = array(), $from_shortcode = 0, $bwg = 0) {
12
- require_once BWG()->plugin_dir . "/frontend/views/BWGViewAlbum_compact_preview.php";
13
- $view = new BWGViewAlbum_compact_preview();
14
- if( isset($params[ 'show_gallery_description' ]) && $params[ 'show_gallery_description' ] ) {
15
- if ( isset( $_POST[ 'type_' . $bwg ] ) && isset( $_POST[ 'album_gallery_id_' . $bwg ] ) ) {
16
- $description = WDWLibrary::get_album_gallery_title_description( $_POST[ 'type_' . $bwg ], $_POST[ 'album_gallery_id_' . $bwg ] );
17
- $params[ 'description' ] = $description->description;
18
- } else {
19
- if( $params['album_id'] != 0 ) {
20
- $description = WDWLibrary::get_album_gallery_title_description('album', $params['album_id']);
21
- $params[ 'description' ] = $description->description;
22
- } else $params['description'] = '';
23
- }
24
- }
25
-
26
- $view->display($params, $from_shortcode, $bwg);
27
- }
28
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
frontend/controllers/BWGControllerAlbum_extended_preview.php DELETED
@@ -1,45 +0,0 @@
1
- <?php
2
-
3
- class BWGControllerAlbum_extended_preview {
4
-
5
- public function __construct() { }
6
-
7
- public function execute($params = array(), $from_shortcode = 0, $bwg = 0) {
8
- $this->display($params, $from_shortcode, $bwg);
9
- }
10
-
11
- public function display($params = array(), $from_shortcode = 0, $bwg = 0) {
12
- if( $params['show_gallery_description'] ) {
13
- if ( isset($_POST['type_' . $bwg]) && isset($_POST['album_gallery_id_' . $bwg]) ) {
14
- $description = WDWLibrary::get_album_gallery_title_description($_POST['type_' . $bwg], $_POST['album_gallery_id_' . $bwg]);
15
- $params['description'] = $description->description;
16
- } else {
17
- if( $params['album_id'] != 0 ) {
18
- $description = WDWLibrary::get_album_gallery_title_description('album', $params['album_id']);
19
- $params['description'] = $description->description;
20
- } else {
21
- $params['description'] = '';
22
- }
23
- }
24
-
25
- }
26
- if( $params['show_album_name'] ) {
27
- if ( isset($_POST['type_' . $bwg]) && isset($_POST['album_gallery_id_' . $bwg]) ) {
28
- $album_title = WDWLibrary::get_album_gallery_title_description($_POST['type_' . $bwg], $_POST['album_gallery_id_' . $bwg]);
29
- $params['album_title'] = $album_title->name;
30
- } else {
31
- if( $params['album_id'] != 0 ) {
32
- $album_title = WDWLibrary::get_album_gallery_title_description('album', $params['album_id']);
33
- $params['album_title'] = $album_title->name;
34
- }
35
- else {
36
- $params['album_title'] = "";
37
- }
38
- }
39
- }
40
-
41
- require_once BWG()->plugin_dir . "/frontend/views/BWGViewAlbum_extended_preview.php";
42
- $view = new BWGViewAlbum_extended_preview();
43
- $view->display($params, $from_shortcode, $bwg);
44
- }
45
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
frontend/controllers/BWGControllerAlbum_masonry_preview.php DELETED
@@ -1,29 +0,0 @@
1
- <?php
2
- class BWGControllerAlbum_masonry_preview {
3
-
4
- public function __construct() {
5
- }
6
-
7
- public function execute($params = array(), $from_shortcode = 0, $bwg = 0) {
8
- $this->display($params, $from_shortcode, $bwg);
9
- }
10
-
11
- public function display($params = array(), $from_shortcode = 0, $bwg = 0) {
12
- require_once BWG()->plugin_dir . "/frontend/views/BWGViewAlbum_masonry_preview.php";
13
- $view = new BWGViewAlbum_masonry_preview();
14
-
15
- if( isset($params[ 'show_gallery_description' ]) && $params[ 'show_gallery_description' ] ) {
16
- if ( isset( $_POST[ 'type_' . $bwg ] ) && isset( $_POST[ 'album_gallery_id_' . $bwg ] ) ) {
17
- $description = WDWLibrary::get_album_gallery_title_description( $_POST[ 'type_' . $bwg ], $_POST[ 'album_gallery_id_' . $bwg ] );
18
- $params[ 'description' ] = $description->description;
19
- } else {
20
- if( $params['album_id'] != 0 ) {
21
- $description = WDWLibrary::get_album_gallery_title_description('album', $params['album_id']);
22
- $params[ 'description' ] = $description->description;
23
- } else $params['description'] = '';
24
- }
25
- }
26
-
27
- $view->display($params, $from_shortcode, $bwg);
28
- }
29
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
frontend/controllers/BWGControllerBlog_style.php DELETED
@@ -1,40 +0,0 @@
1
- <?php
2
-
3
- class BWGControllerBlog_style {
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
- public function execute($params = array(), $from_shortcode = 0, $bwg = 0) {
22
- $this->display($params, $from_shortcode, $bwg);
23
- }
24
-
25
- public function display($params = array(), $from_shortcode = 0, $bwg = 0) {
26
- require_once BWG()->plugin_dir . "/frontend/views/BWGViewBlog_style.php";
27
- $view = new BWGViewBlog_style();
28
-
29
- $view->display($params, $from_shortcode, $bwg);
30
- }
31
- ////////////////////////////////////////////////////////////////////////////////////////
32
- // Getters & Setters //
33
- ////////////////////////////////////////////////////////////////////////////////////////
34
- ////////////////////////////////////////////////////////////////////////////////////////
35
- // Private Methods //
36
- ////////////////////////////////////////////////////////////////////////////////////////
37
- ////////////////////////////////////////////////////////////////////////////////////////
38
- // Listeners //
39
- ////////////////////////////////////////////////////////////////////////////////////////
40
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
frontend/controllers/BWGControllerCarousel.php DELETED
@@ -1,39 +0,0 @@
1
- <?php
2
-
3
- class BWGControllerCarousel {
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
- public function execute($params = array(), $from_shortcode = 0, $bwg = 0) {
22
- $this->display($params, $from_shortcode, $bwg);
23
- }
24
-
25
- public function display($params = array(), $from_shortcode = 0, $bwg = 0) {
26
- require_once BWG()->plugin_dir . "/frontend/views/BWGViewCarousel.php";
27
- $view = new BWGViewCarousel();
28
- $view->display($params, $from_shortcode, $bwg);
29
- }
30
- ////////////////////////////////////////////////////////////////////////////////////////
31
- // Getters & Setters //
32
- ////////////////////////////////////////////////////////////////////////////////////////
33
- ////////////////////////////////////////////////////////////////////////////////////////
34
- // Private Methods //
35
- ////////////////////////////////////////////////////////////////////////////////////////
36
- ////////////////////////////////////////////////////////////////////////////////////////
37
- // Listeners //
38
- ////////////////////////////////////////////////////////////////////////////////////////
39
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
frontend/controllers/BWGControllerGalleryBox.php CHANGED
@@ -3,7 +3,7 @@ class BWGControllerGalleryBox {
3
  public function execute() {
4
  $ajax_task = (isset($_POST['ajax_task']) ? esc_html($_POST['ajax_task']) : '');
5
  if (method_exists($this, $ajax_task)) {
6
- $this->$ajax_task();
7
  }
8
  else {
9
  $this->display();
@@ -20,67 +20,10 @@ class BWGControllerGalleryBox {
20
  $view->display();
21
  }
22
 
23
- public function save() {
24
- require_once BWG()->plugin_dir . "/frontend/models/BWGModelGalleryBox.php";
25
- $model = new BWGModelGalleryBox();
26
-
27
- if (BWG()->options->popup_enable_email) {
28
- // Email validation.
29
- $email = (isset($_POST['bwg_email']) ? is_email(stripslashes($_POST['bwg_email'])) : FALSE);
30
- }
31
- else {
32
- $email = TRUE;
33
- }
34
- if (BWG()->options->popup_enable_captcha) {
35
- $bwg_captcha_input = (isset($_POST['bwg_captcha_input']) ? esc_html(stripslashes($_POST['bwg_captcha_input'])) : '');
36
- WDWLibrary::bwg_session_start();
37
- $bwg_captcha_code = (isset($_SESSION['bwg_captcha_code']) ? esc_html(stripslashes($_SESSION['bwg_captcha_code'])) : '');
38
- if ($bwg_captcha_input === $bwg_captcha_code) {
39
- $captcha = TRUE;
40
- }
41
- else {
42
- $captcha = FALSE;
43
- }
44
- }
45
- else {
46
- $captcha = TRUE;
47
- }
48
-
49
- if ( $email && $captcha ) {
50
- global $wpdb;
51
- $image_id = (isset($_POST['image_id']) ? (int) $_POST['image_id'] : 0);
52
- $name = (isset($_POST['bwg_name']) ? esc_html(stripslashes($_POST['bwg_name'])) : '');
53
- $bwg_comment = (isset($_POST['bwg_comment']) ? esc_html(stripslashes($_POST['bwg_comment'])) : '');
54
- $bwg_email = (isset($_POST['bwg_email']) ? esc_html(stripslashes($_POST['bwg_email'])) : '');
55
- $published = (current_user_can('manage_options') || !BWG()->options->comment_moderation) ? 1 : 0;
56
- $save = $wpdb->insert($wpdb->prefix . 'bwg_image_comment', array(
57
- 'image_id' => $image_id,
58
- 'name' => $name,
59
- 'date' => date('Y-m-d H:i'),
60
- 'comment' => $bwg_comment,
61
- 'url' => '',
62
- 'mail' => $bwg_email,
63
- 'published' => $published,
64
- ), array(
65
- '%d',
66
- '%s',
67
- '%s',
68
- '%s',
69
- '%s',
70
- '%s',
71
- '%d',
72
- ));
73
- $wpdb->query($wpdb->prepare('UPDATE ' . $wpdb->prefix . 'bwg_image SET comment_count=comment_count+1 WHERE id="%d"', $image_id));
74
- }
75
- $this->display();
76
- }
77
-
78
  public function save_rate() {
79
  global $wpdb;
80
- $image_id = WDWLibrary::get('image_id', 0);
81
- (isset($_POST['image_id']) ? esc_html(stripslashes($_POST['image_id'])) : 0);
82
- $rate = WDWLibrary::get('rate', 0);
83
- (isset($_POST['rate']) ? esc_html(stripslashes($_POST['rate'])) : '');
84
  $ip = BWG()->options->save_ip ? $_SERVER['REMOTE_ADDR'] : '';
85
  if ( !$ip || !$wpdb->get_var($wpdb->prepare('SELECT `image_id` FROM `' . $wpdb->prefix . 'bwg_image_rate` WHERE `ip`="%s" AND `image_id`="%d"', $ip, $image_id)) ) {
86
  $wpdb->insert($wpdb->prefix . 'bwg_image_rate', array(
@@ -89,11 +32,11 @@ class BWGControllerGalleryBox {
89
  'ip' => $ip,
90
  'date' => date('Y-m-d H:i:s'),
91
  ), array(
92
- '%d',
93
- '%f',
94
- '%s',
95
- '%s',
96
- ));
97
  }
98
  $rates = $wpdb->get_row($wpdb->prepare('SELECT AVG(`rate`) as `average`, COUNT(`rate`) as `rate_count` FROM ' . $wpdb->prefix . 'bwg_image_rate WHERE image_id="%d"', $image_id));
99
  $wpdb->update($wpdb->prefix . 'bwg_image', array(
@@ -109,12 +52,127 @@ class BWGControllerGalleryBox {
109
  $wpdb->query($wpdb->prepare('UPDATE ' . $wpdb->prefix . 'bwg_image SET hit_count = hit_count + 1 WHERE id="%d"', $image_id));
110
  }
111
 
112
- public function delete() {
113
- global $wpdb;
114
- $comment_id = (isset($_POST['comment_id']) ? (int) $_POST['comment_id'] : 0);
115
- $image_id = (isset($_POST['image_id']) ? (int) $_POST['image_id'] : 0);
116
- $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'bwg_image_comment WHERE id="%d"', $comment_id));
117
- $wpdb->query($wpdb->prepare('UPDATE ' . $wpdb->prefix . 'bwg_image SET comment_count=comment_count-1 WHERE id="%d"', $image_id));
118
- $this->display();
119
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
120
  }
3
  public function execute() {
4
  $ajax_task = (isset($_POST['ajax_task']) ? esc_html($_POST['ajax_task']) : '');
5
  if (method_exists($this, $ajax_task)) {
6
+ $this->$ajax_task();
7
  }
8
  else {
9
  $this->display();
20
  $view->display();
21
  }
22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  public function save_rate() {
24
  global $wpdb;
25
+ $image_id = (isset($_POST['image_id']) ? esc_html(stripslashes($_POST['image_id'])) : 0);
26
+ $rate = (isset($_POST['rate']) ? esc_html(stripslashes($_POST['rate'])) : '');
 
 
27
  $ip = BWG()->options->save_ip ? $_SERVER['REMOTE_ADDR'] : '';
28
  if ( !$ip || !$wpdb->get_var($wpdb->prepare('SELECT `image_id` FROM `' . $wpdb->prefix . 'bwg_image_rate` WHERE `ip`="%s" AND `image_id`="%d"', $ip, $image_id)) ) {
29
  $wpdb->insert($wpdb->prefix . 'bwg_image_rate', array(
32
  'ip' => $ip,
33
  'date' => date('Y-m-d H:i:s'),
34
  ), array(
35
+ '%d',
36
+ '%f',
37
+ '%s',
38
+ '%s',
39
+ ));
40
  }
41
  $rates = $wpdb->get_row($wpdb->prepare('SELECT AVG(`rate`) as `average`, COUNT(`rate`) as `rate_count` FROM ' . $wpdb->prefix . 'bwg_image_rate WHERE image_id="%d"', $image_id));
42
  $wpdb->update($wpdb->prefix . 'bwg_image', array(
52
  $wpdb->query($wpdb->prepare('UPDATE ' . $wpdb->prefix . 'bwg_image SET hit_count = hit_count + 1 WHERE id="%d"', $image_id));
53
  }
54
 
55
+ /**
56
+ * Add comment.
57
+ */
58
+ public function add_comment() {
59
+ global $wpdb;
60
+ $error = false;
61
+ $json = array();
62
+ $error_messages = array();
63
+ // get post data.
64
+ $image_id = WDWLibrary::get('comment_image_id', '');
65
+ $name = trim(WDWLibrary::get('comment_name', ''));
66
+ $email = WDWLibrary::get('comment_email', '');
67
+ $comment = trim(WDWLibrary::get('comment_text', ''));
68
+ $moderation = trim(WDWLibrary::get('comment_moderation', 0));
69
+ $privacy_policy = WDWLibrary::get('privacy_policy', '');
70
+ $published = (current_user_can('manage_options') || !$moderation) ? 1 : 0;
71
+
72
+ if ( empty($name) ) {
73
+ $error = true;
74
+ $error_messages['name'] = sprintf( __('The %s field is required.', BWG()->prefix), 'name' );
75
+ }
76
+ if ( WDWLibrary::get('popup_enable_email') ) {
77
+ if ( empty($email) ) {
78
+ $error = true;
79
+ $error_messages['email'] = sprintf( __('The %s field is required.', BWG()->prefix), 'email' );
80
+ }
81
+ elseif ( !is_email($email) ) {
82
+ $error = true;
83
+ $error_messages['email'] = sprintf( __('The %s field must contain a valid email address.', BWG()->prefix), 'email' );
84
+ }
85
+ }
86
+ if ( empty($comment) ) {
87
+ $error = true;
88
+ $error_messages['textarea'] = sprintf( __('The %s field is required.', BWG()->prefix), 'comment' );
89
+ }
90
+ if ( WDWLibrary::get('popup_enable_captcha') ) {
91
+ WDWLibrary::bwg_session_start();
92
+ $captcha = WDWLibrary::get('comment_captcha','');
93
+ $session_captcha = (isset($_SESSION['bwg_captcha_code']) ? esc_html(stripslashes($_SESSION['bwg_captcha_code'])) : '');
94
+ if ( empty($captcha) ) {
95
+ $error = true;
96
+ $error_messages['captcha'] = sprintf( __('The %s field is required.', BWG()->prefix), 'captcha' );
97
+ }
98
+ elseif ( $captcha != $session_captcha ) {
99
+ $error = true;
100
+ $error_messages['captcha'] = __('Incorrect Security code.', BWG()->prefix);
101
+ }
102
+ }
103
+ if ( WDWLibrary::get_privacy_policy_url() ) {
104
+ if ( empty($privacy_policy) ) {
105
+ $error = true;
106
+ $error_messages['privacy_policy'] = sprintf( __('The %s field is required.', BWG()->prefix), 'privacy policy' );
107
+ }
108
+ }
109
+
110
+ if ( $error === false ) {
111
+ $added = $wpdb->insert( $wpdb->prefix . 'bwg_image_comment', array(
112
+ 'image_id' => $image_id,
113
+ 'name' => $name,
114
+ 'mail' => $email,
115
+ 'comment' => $comment,
116
+ 'url' => '',
117
+ 'date' => date('Y-m-d H:i'),
118
+ 'published' => $published,
119
+ ), array(
120
+ '%d',
121
+ '%s',
122
+ '%s',
123
+ '%s',
124
+ '%s',
125
+ '%s',
126
+ '%d',
127
+ ));
128
+ if ( $added ) {
129
+ $error_messages['success'] = 'ok';
130
+ $wpdb->query($wpdb->prepare('UPDATE `' . $wpdb->prefix . 'bwg_image` SET `comment_count` = `comment_count` + 1 WHERE `id` = "%d"', $image_id));
131
+
132
+ require_once BWG()->plugin_dir . "/frontend/models/BWGModelGalleryBox.php";
133
+ $model = new BWGModelGalleryBox();
134
+
135
+ require_once BWG()->plugin_dir . "/frontend/views/BWGViewGalleryBox.php";
136
+ $view = new BWGViewGalleryBox($model);
137
+
138
+ if ( $published ) {
139
+ $comments = $model->get_comment_rows_data($image_id);
140
+ if ( !empty($comments) ) {
141
+ $html_comments_block = '';
142
+ foreach ( $comments as $comment ) {
143
+ $html_comments_block .= $view->html_comments_block($comment);
144
+ }
145
+ }
146
+ $json['html_comments_block'] = $html_comments_block;
147
+ }
148
+ }
149
+ }
150
+ $json['error'] = $error;
151
+ $json['published'] = $published;
152
+ $json['error_messages'] = $error_messages;
153
+ echo json_encode($json); exit;
154
+ }
155
+
156
+ /**
157
+ * Delete comment.
158
+ */
159
+ public function delete_comment() {
160
+ global $wpdb;
161
+ $error = false;
162
+ $json = array();
163
+ $id_image = (isset($_POST['id_image']) ? (int) $_POST['id_image'] : 0);
164
+ $id_comment = (isset($_POST['id_comment']) ? (int) $_POST['id_comment'] : 0);
165
+ if ( $id_image && $id_comment ) {
166
+ $delete = $wpdb->query($wpdb->prepare('DELETE FROM `' . $wpdb->prefix . 'bwg_image_comment` WHERE `id` = "%d"', $id_comment));
167
+ $update = $wpdb->query($wpdb->prepare('UPDATE `' . $wpdb->prefix . 'bwg_image` SET `comment_count` = (CASE WHEN comment_count <= 0 THEN 0 ELSE `comment_count`-1 END) WHERE `id`="%d"', $id_image));
168
+ if ( !$delete || !$update ) {
169
+ $error = true;
170
+ }
171
+ }
172
+ else {
173
+ $error = true;
174
+ }
175
+ $json['error'] = $error;
176
+ echo json_encode($json); exit;
177
+ }
178
  }
frontend/controllers/BWGControllerImage_browser.php DELETED
@@ -1,17 +0,0 @@
1
- <?php
2
- class BWGControllerImage_browser {
3
-
4
- public function __construct() {
5
- }
6
-
7
- public function execute($params = array(), $from_shortcode = 0, $bwg = 0) {
8
- $this->display($params, $from_shortcode, $bwg);
9
- }
10
-
11
- public function display($params = array(), $from_shortcode = 0, $bwg = 0) {
12
- require_once BWG()->plugin_dir . "/frontend/views/BWGViewImage_browser.php";
13
- $view = new BWGViewImage_browser();
14
-
15
- $view->display($params, $from_shortcode, $bwg);
16
- }
17
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
frontend/controllers/BWGControllerThumbnails_masonry.php DELETED
@@ -1,18 +0,0 @@
1
- <?php
2
-
3
- class BWGControllerThumbnails_masonry {
4
-
5
- public function __construct() {
6
- }
7
-
8
- public function execute($params = array(), $from_shortcode = 0, $bwg = 0) {
9
- $this->display($params, $from_shortcode, $bwg);
10
- }
11
-
12
- public function display($params = array(), $from_shortcode = 0, $bwg = 0) {
13
- require_once BWG()->plugin_dir . "/frontend/views/BWGViewThumbnails_masonry.php";
14
- $view = new BWGViewThumbnails_masonry();
15
-
16
- $view->display($params, $from_shortcode, $bwg);
17
- }
18
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
frontend/controllers/BWGControllerThumbnails_mosaic.php DELETED
@@ -1,17 +0,0 @@
1
- <?php
2
- class BWGControllerThumbnails_mosaic {
3
-
4
- public function __construct() {
5
- }
6
-
7
- public function execute($params = array(), $from_shortcode = 0, $bwg = 0) {
8
- $this->display($params, $from_shortcode, $bwg);
9
- }
10
-
11
- public function display($params, $from_shortcode = 0, $bwg = 0) {
12
- require_once BWG()->plugin_dir . "/frontend/views/BWGViewThumbnails_mosaic.php";
13
- $view = new BWGViewThumbnails_mosaic();
14
-
15
- $view->display($params, $from_shortcode, $bwg);
16
- }
17
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
frontend/controllers/BWGControllerWidget.php CHANGED
@@ -16,7 +16,6 @@ class BWGControllerWidgetFrontEnd {
16
 
17
  require_once BWG()->plugin_dir . "/frontend/views/BWGViewWidget.php";
18
  $view = new BWGViewWidgetFrontEnd($model);
19
-
20
  $view->view_tags($params);
21
  }
22
  }
16
 
17
  require_once BWG()->plugin_dir . "/frontend/views/BWGViewWidget.php";
18
  $view = new BWGViewWidgetFrontEnd($model);
 
19
  $view->view_tags($params);
20
  }
21
  }
frontend/controllers/controller.php CHANGED
@@ -4,65 +4,256 @@ class BWGControllerSite {
4
  private $model;
5
  private $view;
6
 
7
- public function __construct($view = 'Thumbnails') {
 
 
8
  require_once BWG()->plugin_dir . "/frontend/models/model.php";
9
  $this->model = new BWGModelSite();
10
-
11
  require_once BWG()->plugin_dir . "/frontend/views/view.php";
12
  require_once BWG()->plugin_dir . '/frontend/views/BWGView' . $view . '.php';
13
  $view_class = 'BWGView' . $view;
14
  $this->view = new $view_class();
15
  }
16
 
17
- public function execute($params = array(), $from_shortcode = 0, $bwg = 0) {
18
- $theme_id = $params['theme_id'];
19
  $theme_row = $this->model->get_theme_row_data($theme_id);
20
  if ( !$theme_row ) {
21
  echo WDWLibrary::message(__('There is no theme selected or the theme was deleted.', BWG()->prefix), 'wd_error');
22
  return;
23
  }
24
  else {
25
- if (!isset($theme_row->thumb_gal_title_font_color)) {
26
- $theme_row->thumb_gal_title_font_color = 'CCCCCC';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  }
28
- if (!isset($theme_row->thumb_gal_title_font_style)) {
29
- $theme_row->thumb_gal_title_font_style = 'segoe ui';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  }
31
- if (!isset($theme_row->thumb_gal_title_font_size)) {
32
- $theme_row->thumb_gal_title_font_size = 16;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  }
34
- if (!isset($theme_row->thumb_gal_title_font_weight)) {
35
- $theme_row->thumb_gal_title_font_weight = 'bold';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  }
37
- if (!isset($theme_row->thumb_gal_title_margin)) {
38
- $theme_row->thumb_gal_title_margin = '2px';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  }
40
- if (!isset($theme_row->thumb_gal_title_shadow)) {
41
- $theme_row->thumb_gal_title_shadow = '0px 0px 0px #888888';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  }
43
- if (!isset($theme_row->thumb_gal_title_align)) {
44
- $theme_row->thumb_gal_title_align = 'center';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  }
46
- if (!isset($theme_row->container_margin)) {
47
- $theme_row->container_margin = 1;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  }
49
- $params['theme_row'] = $theme_row;
50
  }
51
 
52
  if ( !isset($params['type']) ) {
53
  $params['type'] = '';
54
  }
55
 
56
- $gallery_row = $this->model->get_gallery_row_data($params['gallery_id']);
57
- if ( !$gallery_row && ($params['type'] == '') && $params["tag"] == 0 ) {
58
- echo WDWLibrary::message(__('There is no gallery selected or the gallery was deleted.', BWG()->prefix), 'wd_error');
59
-
60
- return;
61
- }
62
- else {
63
- $params['gallery_row'] = $gallery_row;
64
- }
65
-
66
  if ( isset($_POST['sortImagesByValue_' . $bwg]) ) {
67
  $sort_by = esc_html($_POST['sortImagesByValue_' . $bwg]);
68
  if ( $sort_by == 'random' ) {
@@ -75,23 +266,214 @@ class BWGControllerSite {
75
  }
76
  }
77
 
78
- $params['load_more_image_count'] = (isset($params['load_more_image_count']) && ($params['image_enable_page'] == 2)) ? $params['load_more_image_count'] : $params['images_per_page'];
79
- $params['items_per_page'] = array('images_per_page' => $params['images_per_page'], 'load_more_image_count' => $params['load_more_image_count']);
 
 
 
 
80
 
81
- $image_rows = $this->model->get_image_rows_data($params['gallery_id'], $bwg, $params['type'], 'bwg_tag_id_bwg_standart_thumbnails_' . $bwg, $params['tag'], $params['images_per_page'], $params['load_more_image_count'], $params['sort_by'], $params['order_by']);
82
- $images_count = count($image_rows['images']);
83
- if ( !$images_count ) {
84
- if ( $params['tag'] ) {
85
- echo WDWLibrary::message(__('There are no images.', BWG()->prefix), 'wd_error');
 
 
 
 
 
 
 
 
 
 
86
  }
87
- else {
88
- echo WDWLibrary::message(__('There are no images in this gallery.', BWG()->prefix), 'wd_error');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
  }
90
- return;
91
  }
92
- $params['image_rows'] = $image_rows;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
 
94
- $params['tags_rows'] = $this->model->get_tags_rows_data($params['gallery_id']);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95
 
96
  $params['current_url'] = (is_ssl() ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
97
 
@@ -139,7 +521,7 @@ class BWGControllerSite {
139
  'show_image_counts' => $params['show_image_counts'],
140
  'enable_loop' => $params['enable_loop'],
141
  'enable_addthis' => $params['enable_addthis'],
142
- 'addthis_profile_id' => $params['addthis_profile_id']
143
  );
144
  if ($params['watermark_type'] != 'none') {
145
  $params_array['watermark_link'] = $params['watermark_link'];
@@ -158,10 +540,37 @@ class BWGControllerSite {
158
  $params_array['watermark_height'] = $params['watermark_height'];
159
  }
160
  $params['params_array'] = $params_array;
 
 
 
161
  $this->display($params, $from_shortcode, $bwg);
162
  }
163
 
164
  public function display($params = array(), $from_shortcode = 0, $bwg = 0) {
165
- $this->view->display($params, $from_shortcode, $bwg);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
166
  }
167
- }
4
  private $model;
5
  private $view;
6
 
7
+ public $thumb_urls;
8
+
9
+ public function __construct( $view = 'Thumbnails' ) {
10
  require_once BWG()->plugin_dir . "/frontend/models/model.php";
11
  $this->model = new BWGModelSite();
 
12
  require_once BWG()->plugin_dir . "/frontend/views/view.php";
13
  require_once BWG()->plugin_dir . '/frontend/views/BWGView' . $view . '.php';
14
  $view_class = 'BWGView' . $view;
15
  $this->view = new $view_class();
16
  }
17
 
18
+ public function execute( $params = array(), $from_shortcode = 0, $bwg = 0 ) {
19
+ $theme_id = $params['theme_id'];
20
  $theme_row = $this->model->get_theme_row_data($theme_id);
21
  if ( !$theme_row ) {
22
  echo WDWLibrary::message(__('There is no theme selected or the theme was deleted.', BWG()->prefix), 'wd_error');
23
  return;
24
  }
25
  else {
26
+ /* Thumbnails */
27
+ {
28
+ if ( !isset( $theme_row->thumb_gal_title_font_color ) ) {
29
+ $theme_row->thumb_gal_title_font_color = '323A45';
30
+ }
31
+ if ( !isset( $theme_row->thumb_gal_title_font_style ) ) {
32
+ $theme_row->thumb_gal_title_font_style = 'Ubuntu';
33
+ }
34
+ if ( !isset( $theme_row->thumb_gal_title_font_size ) ) {
35
+ $theme_row->thumb_gal_title_font_size = 16;
36
+ }
37
+ if ( !isset( $theme_row->thumb_gal_title_font_weight ) ) {
38
+ $theme_row->thumb_gal_title_font_weight = 'bold';
39
+ }
40
+ if ( !isset( $theme_row->thumb_gal_title_margin ) ) {
41
+ $theme_row->thumb_gal_title_margin = '2px';
42
+ }
43
+ if ( !isset( $theme_row->thumb_gal_title_shadow ) ) {
44
+ $theme_row->thumb_gal_title_shadow = '0px 0px 0px #888888';
45
+ }
46
+ if ( !isset( $theme_row->thumb_gal_title_align ) ) {
47
+ $theme_row->thumb_gal_title_align = 'center';
48
+ }
49
+ if ( !isset( $theme_row->container_margin ) ) {
50
+ $theme_row->container_margin = 1;
51
+ }
52
+ if ( !isset( $theme_row->thumb_title_font_color_hover ) ) {
53
+ $theme_row->thumb_title_font_color_hover = 'FFFFFF';
54
+ }
55
  }
56
+ {
57
+ /* Masonry*/
58
+ if ( !isset( $theme_row->masonry_thumb_gal_title_font_color ) ) {
59
+ $theme_row->masonry_thumb_gal_title_font_color = '323A45';
60
+ }
61
+ if ( !isset( $theme_row->masonry_thumb_gal_title_font_color_hover ) ) {
62
+ $theme_row->masonry_thumb_gal_title_font_color_hover = 'FFFFFF';
63
+ }
64
+ if ( !isset( $theme_row->masonry_thumb_gal_title_font_style ) ) {
65
+ $theme_row->masonry_thumb_gal_title_font_style = 'Ubuntu';
66
+ }
67
+ if ( !isset( $theme_row->masonry_thumb_gal_title_font_size ) ) {
68
+ $theme_row->masonry_thumb_gal_title_font_size = 16;
69
+ }
70
+ if ( !isset( $theme_row->masonry_thumb_gal_title_font_weight ) ) {
71
+ $theme_row->masonry_thumb_gal_title_font_weight = 'bold';
72
+ }
73
+ if ( !isset( $theme_row->masonry_thumb_gal_title_margin ) ) {
74
+ $theme_row->masonry_thumb_gal_title_margin = '2px';
75
+ }
76
+ if ( !isset( $theme_row->masonry_thumb_gal_title_shadow ) ) {
77
+ $theme_row->masonry_thumb_gal_title_shadow = '0px 0px 0px #888888';
78
+ }
79
+ if ( !isset( $theme_row->masonry_thumb_gal_title_align ) ) {
80
+ $theme_row->masonry_thumb_gal_title_align = 'center';
81
+ }
82
+ if ( !isset( $theme_row->masonry_container_margin ) ) {
83
+ $theme_row->masonry_container_margin = 1;
84
+ }
85
+ if ( !isset($theme_row->masonry_thumb_title_margin) ) {
86
+ $theme_row->masonry_thumb_title_margin = '2px';
87
+ }
88
  }
89
+ /* Mosaic */
90
+ {
91
+ if ( !isset( $theme_row->mosaic_thumb_gal_title_font_color ) ) {
92
+ $theme_row->mosaic_thumb_gal_title_font_color = '323A45';
93
+ }
94
+ if ( !isset( $theme_row->mosaic_thumb_gal_title_font_style ) ) {
95
+ $theme_row->mosaic_thumb_gal_title_font_style = 'Ubuntu';
96
+ }
97
+ if ( !isset( $theme_row->mosaic_thumb_gal_title_font_size ) ) {
98
+ $theme_row->mosaic_thumb_gal_title_font_size = 16;
99
+ }
100
+ if ( !isset( $theme_row->mosaic_thumb_gal_title_font_weight ) ) {
101
+ $theme_row->mosaic_thumb_gal_title_font_weight = 'bold';
102
+ }
103
+ if ( !isset( $theme_row->mosaic_thumb_gal_title_margin ) ) {
104
+ $theme_row->mosaic_thumb_gal_title_margin = '2px';
105
+ }
106
+ if ( !isset( $theme_row->mosaic_thumb_gal_title_shadow ) ) {
107
+ $theme_row->mosaic_thumb_gal_title_shadow = '0px 0px 0px #888888';
108
+ }
109
+ if ( !isset( $theme_row->mosaic_thumb_gal_title_align ) ) {
110
+ $theme_row->mosaic_thumb_gal_title_align = 'center';
111
+ }
112
+ if ( !isset( $theme_row->mosaic_container_margin ) ) {
113
+ $theme_row->mosaic_container_margin = 1;
114
+ }
115
+ if ( !isset($theme_row->mosaic_thumb_title_font_color_hover) ) {
116
+ $theme_row->mosaic_thumb_title_font_color_hover = 'FFFFFF';
117
+ }
118
  }
119
+ /* Image browser */
120
+ {
121
+ if ( !isset( $theme_row->image_browser_gal_title_font_color ) ) {
122
+ $theme_row->image_browser_gal_title_font_color = '323A45';
123
+ }
124
+ if ( !isset( $theme_row->image_browser_gal_title_font_style ) ) {
125
+ $theme_row->image_browser_gal_title_font_style = 'Ubuntu';
126
+ }
127
+ if ( !isset( $theme_row->image_browser_gal_title_font_size ) ) {
128
+ $theme_row->image_browser_gal_title_font_size = 16;
129
+ }
130
+ if ( !isset( $theme_row->image_browser_gal_title_font_weight ) ) {
131
+ $theme_row->image_browser_gal_title_font_weight = 'bold';
132
+ }
133
+ if ( !isset( $theme_row->image_browser_gal_title_margin ) ) {
134
+ $theme_row->image_browser_gal_title_margin = '2px';
135
+ }
136
+ if ( !isset( $theme_row->image_browser_gal_title_shadow ) ) {
137
+ $theme_row->image_browser_gal_title_shadow = '0px 0px 0px #888888';
138
+ }
139
+ if ( !isset( $theme_row->image_browser_gal_title_align ) ) {
140
+ $theme_row->image_browser_gal_title_align = 'center';
141
+ }
142
  }
143
+ /* Blog style. */
144
+ {
145
+ if (!isset($theme_row->blog_style_gal_title_font_color)) {
146
+ $theme_row->blog_style_gal_title_font_color = '323A45';
147
+ }
148
+ if (!isset($theme_row->blog_style_gal_title_font_style)) {
149
+ $theme_row->blog_style_gal_title_font_style = 'Ubuntu';
150
+ }
151
+ if (!isset($theme_row->blog_style_gal_title_font_size)) {
152
+ $theme_row->blog_style_gal_title_font_size = 16;
153
+ }
154
+ if (!isset($theme_row->blog_style_gal_title_font_weight)) {
155
+ $theme_row->blog_style_gal_title_font_weight = 'bold';
156
+ }
157
+ if (!isset($theme_row->blog_style_gal_title_margin)) {
158
+ $theme_row->blog_style_gal_title_margin = '2px';
159
+ }
160
+ if (!isset($theme_row->blog_style_gal_title_shadow)) {
161
+ $theme_row->blog_style_gal_title_shadow = '0px 0px 0px #888888';
162
+ }
163
+ if (!isset($theme_row->blog_style_gal_title_align)) {
164
+ $theme_row->blog_style_gal_title_align = 'center';
165
+ }
166
  }
167
+ /* Compact album. */
168
+ {
169
+ if ( !isset( $theme_row->compact_container_margin ) ) {
170
+ $theme_row->compact_container_margin = 1;
171
+ }
172
+ if (!isset($theme_row->album_compact_gal_title_font_color)) {
173
+ $theme_row->album_compact_gal_title_font_color = '323A45';
174
+ }
175
+ if (!isset($theme_row->album_compact_gal_title_font_style)) {
176
+ $theme_row->album_compact_gal_title_font_style = 'Ubuntu';
177
+ }
178
+ if (!isset($theme_row->album_compact_gal_title_font_size)) {
179
+ $theme_row->album_compact_gal_title_font_size = 18;
180
+ }
181
+ if (!isset($theme_row->album_compact_gal_title_font_weight)) {
182
+ $theme_row->album_compact_gal_title_font_weight = 'bold';
183
+ }
184
+ if (!isset($theme_row->album_compact_gal_title_margin)) {
185
+ $theme_row->album_compact_gal_title_margin = '0 2px 2px 2px';
186
+ }
187
+ if (!isset($theme_row->album_compact_gal_title_shadow)) {
188
+ $theme_row->album_compact_gal_title_shadow = '0px 0px 0px #888888';
189
+ }
190
+ if (!isset($theme_row->album_compact_gal_title_align)) {
191
+ $theme_row->album_compact_gal_title_align = 'center';
192
+ }
193
+ if ( !isset( $theme_row->album_compact_title_font_color_hover ) ) {
194
+ $theme_row->album_compact_title_font_color_hover = 'FFFFFF';
195
+ }
196
+ if ( !isset( $theme_row->compact_container_margin ) ) {
197
+ $theme_row->compact_container_margin = 1;
198
+ }
199
  }
200
+ /* Masonry album */
201
+ {
202
+ if (!isset($theme_row->album_masonry_gal_title_font_color)) {
203
+ $theme_row->album_masonry_gal_title_font_color = '323A45';
204
+ }
205
+ if (!isset($theme_row->album_masonry_thumb_title_font_color_hover)) {
206
+ $theme_row->album_masonry_thumb_title_font_color_hover = 'FFFFFF';
207
+ }
208
+ if (!isset($theme_row->album_masonry_gal_title_font_style)) {
209
+ $theme_row->album_masonry_gal_title_font_style = 'Ubuntu';
210
+ }
211
+ if (!isset($theme_row->album_masonry_gal_title_font_size)) {
212
+ $theme_row->album_masonry_gal_title_font_size = 18;
213
+ }
214
+ if (!isset($theme_row->album_masonry_gal_title_font_weight)) {
215
+ $theme_row->album_masonry_gal_title_font_weight = 'bold';
216
+ }
217
+ if (!isset($theme_row->album_masonry_gal_title_margin)) {
218
+ $theme_row->album_masonry_gal_title_margin = '0 2px 2px 2px';
219
+ }
220
+ if (!isset($theme_row->album_masonry_gal_title_shadow)) {
221
+ $theme_row->album_masonry_gal_title_shadow = '0px 0px 0px #888888';
222
+ }
223
+ if (!isset($theme_row->album_masonry_gal_title_align)) {
224
+ $theme_row->album_masonry_gal_title_align = 'center';
225
+ }
226
  }
227
+ /* Extended album.*/
228
+ {
229
+ if ( !isset($theme_row->album_extended_gal_title_font_color) ) {
230
+ $theme_row->album_extended_gal_title_font_color = 'CCCCCC';
231
+ }
232
+ if ( !isset($theme_row->album_extended_gal_title_font_style) ) {
233
+ $theme_row->album_extended_gal_title_font_style = 'segoe ui';
234
+ }
235
+ if ( !isset($theme_row->album_extended_gal_title_font_size) ) {
236
+ $theme_row->album_extended_gal_title_font_size = 18;
237
+ }
238
+ if ( !isset($theme_row->album_extended_gal_title_font_weight) ) {
239
+ $theme_row->album_extended_gal_title_font_weight = 'bold';
240
+ }
241
+ if ( !isset($theme_row->album_extended_gal_title_margin) ) {
242
+ $theme_row->album_extended_gal_title_margin = '0 2px 2px 2px';
243
+ }
244
+ if ( !isset($theme_row->album_extended_gal_title_shadow) ) {
245
+ $theme_row->album_extended_gal_title_shadow = '0px 0px 0px #888888';
246
+ }
247
+ if ( !isset($theme_row->album_extended_gal_title_align) ) {
248
+ $theme_row->album_extended_gal_title_align = 'center';
249
+ }
250
  }
 
251
  }
252
 
253
  if ( !isset($params['type']) ) {
254
  $params['type'] = '';
255
  }
256
 
 
 
 
 
 
 
 
 
 
 
257
  if ( isset($_POST['sortImagesByValue_' . $bwg]) ) {
258
  $sort_by = esc_html($_POST['sortImagesByValue_' . $bwg]);
259
  if ( $sort_by == 'random' ) {
266
  }
267
  }
268
 
269
+ if ( strpos($params['gallery_type'], 'album') !== FALSE ) { //Album views (compact/masonry/extended).
270
+ // View type.
271
+ $params['view_type'] = 'album';
272
+
273
+ // Type in album view (album or gallery).
274
+ $params['album_view_type'] = (isset($_REQUEST['type_' . $bwg]) ? esc_html($_REQUEST['type_' . $bwg]) : (isset($params['type']) && $params['type'] ? $params['type'] : 'album')); // Album or gallery in album.
275
 
276
+ // Album or gallery id.
277
+ $params['album_gallery_id'] = (isset($_REQUEST['album_gallery_id_' . $bwg]) ? esc_html($_REQUEST['album_gallery_id_' . $bwg]) : $params['album_id']);
278
+ $params['cur_alb_gal_id'] = $params['album_gallery_id'];
279
+
280
+ if ( isset($params['compuct_album_image_thumb_width']) ) { // Compact album view.
281
+ // Gallery type in album (thumbnail/masonry/mosaic).
282
+ $params['gallery_view_type'] = $params['compuct_album_view_type'];
283
+ $params['image_enable_page'] = $params['compuct_album_enable_page'];
284
+ $params['container_id'] = 'bwg_album_compact_' . $bwg;
285
+ /* Set theme parameters for back button.*/
286
+ $theme_row->back_padding = $theme_row->album_compact_back_padding;
287
+ $theme_row->back_font_size = $theme_row->album_compact_back_font_size;
288
+ $theme_row->back_font_style = $theme_row->album_compact_back_font_style;
289
+ $theme_row->back_font_weight = $theme_row->album_compact_back_font_weight;
290
+ $theme_row->back_font_color = $theme_row->album_compact_back_font_color;
291
  }
292
+ elseif ( isset($params['extended_album_image_thumb_width']) ) { // Extended album view.
293
+ // Gallery type in album (thumbnail/masonry/mosaic).
294
+ $params['gallery_view_type'] = $params['extended_album_view_type'];
295
+ $params['image_enable_page'] = $params['extended_album_enable_page'];
296
+ $params['container_id'] = 'bwg_album_extended_' . $bwg;
297
+ /* Set theme parameters for back button.*/
298
+ $theme_row->back_padding = $theme_row->album_extended_back_padding;
299
+ $theme_row->back_font_size = $theme_row->album_extended_back_font_size;
300
+ $theme_row->back_font_style = $theme_row->album_extended_back_font_style;
301
+ $theme_row->back_font_weight = $theme_row->album_extended_back_font_weight;
302
+ $theme_row->back_font_color = $theme_row->album_extended_back_font_color;
303
+ }
304
+ elseif ( isset($params['masonry_album_thumb_width']) ) {
305
+ $params['gallery_view_type'] = 'masonry';
306
+ $params['image_enable_page'] = $params['masonry_album_enable_page'];
307
+ $params['container_id'] = 'bwg_album_masonry_' . $bwg;
308
+ /* Set theme parameters for back button.*/
309
+ $theme_row->back_padding = $theme_row->album_masonry_back_padding;
310
+ $theme_row->back_font_size = $theme_row->album_masonry_back_font_size;
311
+ $theme_row->back_font_style = $theme_row->album_masonry_back_font_style;
312
+ $theme_row->back_font_weight = $theme_row->album_masonry_back_font_weight;
313
+ $theme_row->back_font_color = $theme_row->album_masonry_back_font_color;
314
+ }
315
+
316
+ $params['showthumbs_name'] = $params['show_album_name'];
317
+
318
+ if ( $params['album_view_type'] == 'album' ) { // Album in album.
319
+ $from = (isset($params['from']) ? esc_html($params['from']) : 0);
320
+ $album_row = $this->model->get_album_row_data($params['album_gallery_id'], $from === "widget");
321
+ $params['album_row'] = $album_row;
322
+ if ( isset($album_row->published) && $album_row->published == 0 ) {
323
+ return;
324
+ }
325
+ if ( !$params['album_row'] ) {
326
+ echo WDWLibrary::message(__('There is no album selected or the gallery was deleted.', BWG()->prefix), 'wd_error');
327
+
328
+ return;
329
+ }
330
+
331
+ // Disable features for album.
332
+ $params['gallery_download'] = FALSE;
333
+ $params['show_search_box'] = FALSE;
334
+ $params['show_sort_images'] = FALSE;
335
+ $params['show_tag_box'] = FALSE;
336
+ $params['gallery_id'] = 0;
337
+
338
+ if ( isset($params['compuct_album_image_thumb_width']) ) { // Compact album view.
339
+ $params['image_enable_page'] = $params['compuct_album_enable_page'];
340
+ $params['images_per_page'] = $params['compuct_albums_per_page'];
341
+ $params['items_col_num'] = $params['compuct_album_column_number'];
342
+ }
343
+ elseif ( isset($params['extended_album_image_thumb_width']) ) { // Extended album view.
344
+ $params['image_enable_page'] = $params['extended_album_enable_page'];
345
+ $params['images_per_page'] = $params['extended_albums_per_page'];
346
+ $params['items_col_num'] = $params['extended_album_image_column_number'];
347
+ $params['image_column_number'] = $params['extended_album_image_column_number'];
348
+ }
349
+ elseif ( isset($params['masonry_album_thumb_width']) ) {
350
+ $params['image_enable_page'] = $params['masonry_album_enable_page'];
351
+ $params['images_per_page'] = $params['masonry_albums_per_page'];
352
+ $params['items_col_num'] = $params['masonry_album_column_number'];
353
+ $params['image_column_number'] = $params['masonry_album_image_column_number'];
354
+ }
355
+
356
+ $params['album_gallery_div_class'] = 'bwg_album_thumbnails_' . $bwg;
357
+ $params['load_more_image_count'] = $params['images_per_page'];
358
+ $params['items_per_page'] = array('images_per_page' => $params['images_per_page'], 'load_more_image_count' => $params['load_more_image_count']);
359
+
360
+ $album_gallery_rows = $this->model->get_alb_gals_row($bwg, $params['album_gallery_id'], $params['images_per_page'], $params['sort_by'], $params['image_enable_page'], $from);
361
+ $params['album_gallery_rows'] = $album_gallery_rows;
362
+ }
363
+ else { // Gallery views (thumbnail/masonry/mosaic).
364
+ if ( $params['gallery_view_type'] == 'masonry' ) {
365
+ $params['gallery_type'] = 'thumbnails_masonry';
366
+ }
367
+ elseif ( $params['gallery_view_type'] == 'mosaic' ) {
368
+ $params['gallery_type'] = 'thumbnails_mosaic';
369
+ }
370
+ else {
371
+ $params['gallery_type'] = 'thumbnails';
372
+ }
373
+
374
+ $params['gallery_id'] = $params['album_gallery_id'];
375
+ $params['container_id'] = 'bwg_' . $params['gallery_type'] . '_' . $bwg;
376
+
377
+ /* Set parameters for gallery view from album shortcode.*/
378
+ if ( isset($params['compuct_album_image_thumb_width']) ) { // Compact album view.
379
+ $params['thumb_width'] = $params['compuct_album_image_thumb_width'];
380
+ $params['thumb_height'] = $params['compuct_album_image_thumb_height'];
381
+ $params['image_title'] = $params['compuct_album_image_title'];
382
+
383
+ $params['image_column_number'] = $params['compuct_album_image_column_number'];
384
+ $params['images_per_page'] = $params['compuct_album_images_per_page'];
385
+
386
+ $params['mosaic_hor_ver'] = $params['compuct_album_mosaic_hor_ver'];
387
+ $params['resizable_mosaic'] = $params['compuct_album_resizable_mosaic'];
388
+ $params['mosaic_total_width'] = $params['compuct_album_mosaic_total_width'];
389
+ }
390
+ elseif ( isset($params['extended_album_image_thumb_width']) ) { // Extended album view.
391
+ $params['thumb_width'] = $params['extended_album_image_thumb_width'];
392
+ $params['thumb_height'] = $params['extended_album_image_thumb_height'];
393
+ $params['image_title'] = $params['extended_album_image_title'];
394
+
395
+ $params['image_column_number'] = $params['extended_album_image_column_number'];
396
+ $params['images_per_page'] = $params['extended_album_images_per_page'];
397
+
398
+ $params['mosaic_hor_ver'] = $params['extended_album_mosaic_hor_ver'];
399
+ $params['resizable_mosaic'] = $params['extended_album_resizable_mosaic'];
400
+ $params['mosaic_total_width'] = $params['extended_album_mosaic_total_width'];
401
+ }
402
+ elseif ( isset($params['masonry_album_thumb_width']) ) {
403
+ $params['thumb_width'] = $params['masonry_album_image_thumb_width'];
404
+ $params['image_title'] = $params['masonry_album_image_title'];
405
+ $params['image_column_number'] = $params['masonry_album_image_column_number'];
406
+ $params['images_per_page'] = $params['masonry_album_images_per_page'];
407
+ $params['play_icon'] = BWG()->options->masonry_play_icon;
408
+ }
409
+
410
+ $params['masonry_hor_ver'] = BWG()->options->masonry;
411
+ $params['show_masonry_thumb_description'] = BWG()->options->show_masonry_thumb_description;
412
+
413
+ $gallery_row = $this->model->get_gallery_row_data($params['gallery_id']);
414
+
415
+ if ( empty($gallery_row) && $params['type'] == '' && $params["tag"] == 0 ) {
416
+ echo WDWLibrary::message(__('There is no gallery selected or the gallery was deleted.', BWG()->prefix), 'wd_error');
417
+ return;
418
+ }
419
+ else {
420
+ $params['gallery_row'] = $gallery_row;
421
+ }
422
+
423
+ $params['load_more_image_count'] = $params['images_per_page'];
424
+ $params['items_per_page'] = array('images_per_page' => $params['images_per_page'], 'load_more_image_count' => $params['load_more_image_count']);
425
+
426
+ $params['image_rows'] = $this->model->get_image_rows_data($params['gallery_id'], $bwg, $params['type'], 'bwg_tag_id_bwg_'.$params['gallery_type'].'_' . $bwg, $params['tag'], $params['images_per_page'], $params['load_more_image_count'], $params['sort_by'], $params['order_by']);
427
+
428
+ // Disable Jetpack Photon module for gallery images.
429
+ $this->thumb_urls = $params['image_rows']['thumb_urls'];
430
+ if ( class_exists('Jetpack') && Jetpack::is_module_active('photon') ) {
431
+ add_filter( 'jetpack_photon_skip_image', array($this, 'disable_jetpack'), 11, 3 );
432
+ }
433
+
434
+ $params['tags_rows'] = $this->model->get_tags_rows_data($params['gallery_id']);
435
  }
 
436
  }
437
+ else { // View type gallery.
438
+ $params['view_type'] = 'gallery';
439
+ $params['album_view_type'] = '';
440
+ $params['container_id'] = 'bwg_' . $params['gallery_type'] . '_' . $bwg;
441
+ $params['cur_alb_gal_id'] = 0;
442
+ $gallery_row = $this->model->get_gallery_row_data($params['gallery_id']);
443
+ if( !empty($gallery_row) && isset($gallery_row->published) && $gallery_row->published == 0 ) {
444
+ return;
445
+ }
446
+ if ( (empty($gallery_row) && $params['type'] == '' && $params["tag"] == 0) || ( !empty($params['from']) && $params['from'] == 'widget' && $gallery_row->id == 0) ) {
447
+ echo WDWLibrary::message(__('There is no gallery selected or the gallery was deleted.', BWG()->prefix), 'wd_error');
448
+ return;
449
+ }
450
+ else {
451
+ $params['gallery_row'] = $gallery_row;
452
+ }
453
 
454
+ $params['load_more_image_count'] = (isset($params['load_more_image_count']) && ($params['image_enable_page'] == 2)) ? $params['load_more_image_count'] : $params['images_per_page'];
455
+ $params['items_per_page'] = array('images_per_page' => $params['images_per_page'], 'load_more_image_count' => $params['load_more_image_count']);
456
+ if ( $params['gallery_type'] == 'image_browser' ) {
457
+ $params['image_enable_page'] = 1;
458
+ $params['images_per_page'] = 1;
459
+ $params['load_more_image_count'] = 1;
460
+ }
461
+ if ( $params['gallery_type'] == 'blog_style' ) {
462
+ $params['image_enable_page'] = $params['blog_style_enable_page'];
463
+ $params['images_per_page'] = $params['blog_style_images_per_page'];
464
+ $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'];
465
+ $params['items_per_page'] = array('images_per_page' => $params['images_per_page'], 'load_more_image_count' => $params['load_more_image_count']);
466
+ }
467
+ $params['image_rows'] = $this->model->get_image_rows_data($params['gallery_id'], $bwg, $params['type'], 'bwg_tag_id_bwg_'.$params['gallery_type'].'_' . $bwg, $params['tag'], $params['images_per_page'], $params['load_more_image_count'], $params['sort_by'], $params['order_by']);
468
+
469
+ // Disable Jetpack Photon module for gallery images.
470
+ $this->thumb_urls = $params['image_rows']['thumb_urls'];
471
+ if ( class_exists('Jetpack') && Jetpack::is_module_active('photon') ) {
472
+ add_filter( 'jetpack_photon_skip_image', array($this, 'disable_jetpack'), 11, 3 );
473
+ }
474
+
475
+ $params['tags_rows'] = $this->model->get_tags_rows_data($params['gallery_id']);
476
+ }
477
 
478
  $params['current_url'] = (is_ssl() ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
479
 
521
  'show_image_counts' => $params['show_image_counts'],
522
  'enable_loop' => $params['enable_loop'],
523
  'enable_addthis' => $params['enable_addthis'],
524
+ 'addthis_profile_id' => $params['addthis_profile_id'],
525
  );
526
  if ($params['watermark_type'] != 'none') {
527
  $params_array['watermark_link'] = $params['watermark_link'];
540
  $params_array['watermark_height'] = $params['watermark_height'];
541
  }
542
  $params['params_array'] = $params_array;
543
+
544
+ $params[ 'theme_row' ] = $theme_row;
545
+
546
  $this->display($params, $from_shortcode, $bwg);
547
  }
548
 
549
  public function display($params = array(), $from_shortcode = 0, $bwg = 0) {
550
+ $params['ajax'] = isset($params['ajax']) ? TRUE : FALSE;
551
+ $this->view->display($params, $bwg, $params['ajax']);
552
+ if ($from_shortcode) {
553
+ return;
554
+ }
555
+ else {
556
+ die();
557
+ }
558
+ }
559
+
560
+ /**
561
+ * Disable Jetpack Photon module for gallery images.
562
+ *
563
+ * @param $val
564
+ * @param $src
565
+ * @param $tag
566
+ *
567
+ * @return bool
568
+ */
569
+ public function disable_jetpack( $val, $src, $tag ) {
570
+ if ( in_array($src, $this->thumb_urls) ) {
571
+ return TRUE;
572
+ }
573
+
574
+ return $val;
575
  }
576
+ }
frontend/models/BWGModelAlbum_compact_preview.php DELETED
@@ -1,3 +0,0 @@
1
- <?php
2
- class BWGModelAlbum_compact_preview {
3
- }
 
 
 
frontend/models/BWGModelAlbum_extended_preview.php DELETED
@@ -1,3 +0,0 @@
1
- <?php
2
- class BWGModelAlbum_extended_preview {
3
- }
 
 
 
frontend/models/BWGModelGalleryBox.php CHANGED
@@ -55,21 +55,21 @@ class BWGModelGalleryBox {
55
  if ( $filter_search_name_temp == '' ) { /* for thumbnail view */
56
  $filter_search_name_temp = WDWLibrary::get('filter_search_name_' . $bwg);
57
  if ( $filter_search_name_temp != '' ) {
58
- $filter_search_name = $filter_search_name_temp;
59
  }
60
  }
61
  else {
62
- $filter_search_name = $filter_search_name_temp;
63
  }
64
 
65
  $where = '';
66
- if ( !empty($filter_search_name) ) {
67
- $bwg_search_keys = explode(' ', trim($filter_search_name));
68
  $alt_search = '(';
69
  $description_search = '(';
70
  foreach( $bwg_search_keys as $search_key) {
71
- $alt_search .= '`image`.`alt` LIKE "%' . $search_key . '%" AND ';
72
- $description_search .= '`image`.`description` LIKE "%' . $search_key . '%" AND ';
73
  }
74
  $alt_search = rtrim($alt_search, 'AND ');
75
  $alt_search .= ')';
@@ -88,7 +88,7 @@ class BWGModelGalleryBox {
88
  $where .= ' AND CONCAT(",", tags.tags_combined, ",") REGEXP ",(' . implode("|", $filter_tags) . ')," ';
89
  }
90
 
91
- $rows = $wpdb->get_results('SELECT image.*, rates.rate FROM ' . $wpdb->prefix . 'bwg_image as image LEFT JOIN (SELECT rate, image_id FROM ' . $wpdb->prefix . 'bwg_image_rate WHERE ip="%s") as rates ON image.id=rates.image_id ' . $join . ' WHERE image.published=1 ' . $where . ' ORDER BY ' . str_replace('RAND()', 'RAND(' . $bwg_random_seed . ')', $sort_by) . ' ' . $order_by);
92
 
93
  $images = array();
94
  if ( !empty($rows) ) {
55
  if ( $filter_search_name_temp == '' ) { /* for thumbnail view */
56
  $filter_search_name_temp = WDWLibrary::get('filter_search_name_' . $bwg);
57
  if ( $filter_search_name_temp != '' ) {
58
+ $filter_search_name = trim($filter_search_name_temp);
59
  }
60
  }
61
  else {
62
+ $filter_search_name = trim($filter_search_name_temp);
63
  }
64
 
65
  $where = '';
66
+ if ( $filter_search_name !== '' ) {
67
+ $bwg_search_keys = explode(' ', $filter_search_name);
68
  $alt_search = '(';
69
  $description_search = '(';
70
  foreach( $bwg_search_keys as $search_key) {
71
+ $alt_search .= '`image`.`alt` LIKE "%' . trim($search_key) . '%" AND ';
72
+ $description_search .= '`image`.`description` LIKE "%' . trim($search_key) . '%" AND ';
73
  }
74
  $alt_search = rtrim($alt_search, 'AND ');
75
  $alt_search .= ')';
88
  $where .= ' AND CONCAT(",", tags.tags_combined, ",") REGEXP ",(' . implode("|", $filter_tags) . ')," ';
89
  }
90
 
91
+ $rows = $wpdb->get_results('SELECT image.*, rates.rate FROM ' . $wpdb->prefix . 'bwg_image as image LEFT JOIN (SELECT rate, image_id FROM ' . $wpdb->prefix . 'bwg_image_rate WHERE ip="' . $_SERVER['REMOTE_ADDR'] . '") as rates ON image.id=rates.image_id ' . $join . ' WHERE image.published=1 ' . $where . ' ORDER BY ' . str_replace('RAND()', 'RAND(' . $bwg_random_seed . ')', $sort_by) . ' ' . $order_by);
92
 
93
  $images = array();
94
  if ( !empty($rows) ) {
frontend/models/BWGModelImage_browser.php DELETED
@@ -1,3 +0,0 @@
1
- <?php
2
- class BWGModelImage_browser {
3
- }
 
 
 
frontend/models/BWGModelWidget.php CHANGED
@@ -1,8 +1,20 @@
1
  <?php
2
  class BWGModelWidgetFrontEnd {
3
  public function get_tags_data($count = 0) {
4
- global $wpdb;
5
- $rows = $wpdb->get_results('SELECT image.thumb_url as thumb_url, image.id as image_id, tags.name, tags.slug, tags.term_id, image.filetype FROM ' . $wpdb->prefix . 'terms AS tags INNER JOIN ' . $wpdb->prefix . 'term_taxonomy AS taxonomy ON taxonomy.term_id=tags.term_id INNER JOIN (SELECT image.thumb_url, tag.tag_id, image.id, image.filetype FROM ' . $wpdb->prefix . 'bwg_image AS image INNER JOIN ' . $wpdb->prefix . 'bwg_image_tag AS tag ON image.id=tag.image_id ORDER BY RAND()) AS image ON image.tag_id=tags.term_id WHERE taxonomy.taxonomy="bwg_tag" GROUP BY tags.term_id' . ($count ? ' LIMIT ' . $count : ""));
 
 
 
 
 
 
 
 
 
 
 
 
6
  foreach ( $rows as $row ) {
7
  $row->permalink = WDWLibrary::get_custom_post_permalink(array( 'slug' => $row->slug, 'post_type' => 'tag' ));
8
  }
1
  <?php
2
  class BWGModelWidgetFrontEnd {
3
  public function get_tags_data($count = 0) {
4
+ global $wpdb;
5
+ $count = abs(intval($count));
6
+ $rows = $wpdb->get_results('SELECT
7
+ `image`.`thumb_url` AS `thumb_url`,
8
+ `image`.`id` AS `image_id`,
9
+ `tags`.`name`,
10
+ `tags`.`slug`,
11
+ `tags`.`term_id`,
12
+ `image`.`filetype`
13
+ FROM ' . $wpdb->prefix . 'terms AS tags
14
+ INNER JOIN ' . $wpdb->prefix . 'term_taxonomy AS taxonomy ON taxonomy.term_id=tags.term_id
15
+ INNER JOIN
16
+ (SELECT `image`.`thumb_url`, `tag`.`tag_id`, `image`.`id`, `image`.`filetype` FROM ' . $wpdb->prefix . 'bwg_image AS image
17
+ INNER JOIN ' . $wpdb->prefix . 'bwg_image_tag AS tag ON image.id=tag.image_id ORDER BY RAND()) AS image ON image.tag_id=tags.term_id WHERE taxonomy.taxonomy="bwg_tag" GROUP BY tags.term_id' . ($count ? ' LIMIT ' . $count : ""));
18
  foreach ( $rows as $row ) {
19
  $row->permalink = WDWLibrary::get_custom_post_permalink(array( 'slug' => $row->slug, 'post_type' => 'tag' ));
20
  }
frontend/models/model.php CHANGED
@@ -16,8 +16,8 @@ class BWGModelSite {
16
 
17
  public function get_gallery_row_data($id = 0, $from = '') {
18
  global $wpdb;
19
- $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_gallery WHERE published=1 AND id="%d"', $id));
20
- if ($row) {
21
  $row->permalink = '';
22
  if ($from != '') {
23
  $row->permalink = self::get_custom_post_permalink( array( 'slug' => $row->slug, 'post_type' => 'gallery' ) );
@@ -29,40 +29,70 @@ class BWGModelSite {
29
  $row->random_preview_image = WDWLibrary::image_url_version($row->random_preview_image, $row->modified_date);
30
  }
31
  }
32
- else if ( $id == 0 ) {
33
  $row_count = $wpdb->get_var('SELECT COUNT(*) FROM ' . $wpdb->prefix . 'bwg_gallery WHERE published=1');
34
- if (!$row_count) {
35
  return false;
36
  }
37
  else {
38
  $row = new stdClass();
39
  $row->id = 0;
40
  $row->name = '';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  }
42
  }
43
  return $row;
44
  }
45
 
46
  public function get_image_rows_data( $gallery_id, $bwg, $type, $tag_input_name, $tag, $images_per_page, $load_more_image_count, $sort_by, $sort_direction = 'ASC' ) {
 
 
 
 
 
 
47
  global $wpdb;
48
  $gallery_id = (int) $gallery_id;
49
  $tag = (int) $tag;
50
- $bwg_search = ((isset($_POST['bwg_search_' . $bwg]) && esc_html($_POST['bwg_search_' . $bwg]) != '') ? esc_html($_POST['bwg_search_' . $bwg]) : '');
51
  $join = '';
52
  $where = '';
53
- if ( $bwg_search ) {
54
- $bwg_search_keys = explode(' ', trim($bwg_search));
55
- $alt_search = '(';
56
- $description_search = '(';
57
- foreach( $bwg_search_keys as $search_key) {
58
- $alt_search .= '`image`.`alt` LIKE "%' . $search_key . '%" AND ';
59
- $description_search .= '`image`.`description` LIKE "%' . $search_key . '%" AND ';
60
- }
61
- $alt_search = rtrim($alt_search, 'AND ');
62
- $alt_search .= ')';
63
- $description_search = rtrim($description_search, 'AND ');
64
- $description_search .= ')';
65
- $where = 'AND (' . $alt_search . ' OR ' . $description_search . ')';
66
  }
67
  if ( $sort_by == 'size' || $sort_by == 'resolution' ) {
68
  $sort_by = ' CAST(image.' . $sort_by . ' AS SIGNED) ';
@@ -102,7 +132,7 @@ class BWGModelSite {
102
  }
103
  $join .= ' LEFT JOIN '. $wpdb->prefix .'bwg_gallery as gallery ON gallery.id = image.gallery_id';
104
  $where .= ' AND gallery.published = 1 ';
105
- $query = 'SELECT image.* FROM ' . $wpdb->prefix . 'bwg_image as image ' . $join . ' WHERE image.published=1 ' . $where . ' ORDER BY ' . str_replace('RAND()', 'RAND(' . $bwg_random_seed . ')', $sort_by) . ' ' . $sort_direction . ' ' . $limit_str;
106
  $rows = $wpdb->get_results($query);
107
  $total = $wpdb->get_var('SELECT COUNT(*) FROM ' . $wpdb->prefix . 'bwg_image as image ' . $join . ' WHERE image.published=1 ' . $where);
108
  $page_nav['total'] = $total;
@@ -111,16 +141,19 @@ class BWGModelSite {
111
  $page_nav['limit'] = (int) $_REQUEST['page_number_' . $bwg];
112
  }
113
  $images = array();
 
114
  if ( !empty($rows) ) {
115
  foreach ( $rows as $row ) {
116
  if ( strpos($row->filetype, 'EMBED') === FALSE ) {
117
  $row->image_url = WDWLibrary::image_url_version($row->image_url, $row->modified_date);
118
  $row->thumb_url = WDWLibrary::image_url_version($row->thumb_url, $row->modified_date);
 
 
119
  }
120
  $images[] = $row;
121
  }
122
  }
123
- return array( 'images' => $images, 'page_nav' => $page_nav );
124
  }
125
 
126
  public function get_tags_rows_data($gallery_id) {
@@ -128,4 +161,95 @@ class BWGModelSite {
128
  $row = $wpdb->get_results('Select t1.* FROM ' . $wpdb->prefix . 'terms AS t1 LEFT JOIN ' . $wpdb->prefix . 'term_taxonomy AS t2 ON t1.term_id = t2.term_id' . ($gallery_id ? ' LEFT JOIN (SELECT DISTINCT tag_id , gallery_id FROM ' . $wpdb->prefix . 'bwg_image_tag) AS t3 ON t1.term_id=t3.tag_id' : '') . ' WHERE taxonomy="bwg_tag"' . ($gallery_id ? ' AND t3.gallery_id="' . $gallery_id . '"' : '') . ' ORDER BY t1.name ASC');
129
  return $row;
130
  }
131
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
 
17
  public function get_gallery_row_data($id = 0, $from = '') {
18
  global $wpdb;
19
+ $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_gallery WHERE id="%d"', $id));
20
+ if ( $row ) {
21
  $row->permalink = '';
22
  if ($from != '') {
23
  $row->permalink = self::get_custom_post_permalink( array( 'slug' => $row->slug, 'post_type' => 'gallery' ) );
29
  $row->random_preview_image = WDWLibrary::image_url_version($row->random_preview_image, $row->modified_date);
30
  }
31
  }
32
+ else if ( !$id ) { /* Select all Galleries */
33
  $row_count = $wpdb->get_var('SELECT COUNT(*) FROM ' . $wpdb->prefix . 'bwg_gallery WHERE published=1');
34
+ if ( !$row_count ) {
35
  return false;
36
  }
37
  else {
38
  $row = new stdClass();
39
  $row->id = 0;
40
  $row->name = '';
41
+
42
+ }
43
+ }
44
+
45
+ return $row;
46
+ }
47
+
48
+ public function get_album_row_data( $id, $from ) {
49
+ global $wpdb;
50
+ if ( $id == 0 ) {
51
+ $row = $wpdb->get_results('SELECT * FROM ' . $wpdb->prefix . 'bwg_gallery');
52
+ }
53
+ else {
54
+ $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_album WHERE id="%d"', $id));
55
+ }
56
+ if ( is_object($row) ) {
57
+ if ( $from ) {
58
+ $row->permalink = WDWLibrary::get_custom_post_permalink(array( 'slug' => $row->slug, 'post_type' => 'album' ));
59
+ }
60
+ if ( !empty($row->preview_image) ) {
61
+ $row->preview_image = WDWLibrary::image_url_version($row->preview_image, $row->modified_date);
62
+ }
63
+ if ( !empty($row->random_preview_image) ) {
64
+ $row->random_preview_image = WDWLibrary::image_url_version($row->random_preview_image, $row->modified_date);
65
  }
66
  }
67
  return $row;
68
  }
69
 
70
  public function get_image_rows_data( $gallery_id, $bwg, $type, $tag_input_name, $tag, $images_per_page, $load_more_image_count, $sort_by, $sort_direction = 'ASC' ) {
71
+ if ( $images_per_page < 0 ) {
72
+ $images_per_page = 0;
73
+ }
74
+ if ( $load_more_image_count < 0 ) {
75
+ $load_more_image_count = 0;
76
+ }
77
  global $wpdb;
78
  $gallery_id = (int) $gallery_id;
79
  $tag = (int) $tag;
80
+ $bwg_search = ((isset($_POST['bwg_search_' . $bwg]) && esc_html($_POST['bwg_search_' . $bwg]) != '') ? trim(esc_html($_POST['bwg_search_' . $bwg])) : '');
81
  $join = '';
82
  $where = '';
83
+ if ( $bwg_search !== '' ) {
84
+ $bwg_search_keys = explode(' ', $bwg_search);
85
+ $alt_search = '(';
86
+ $description_search = '(';
87
+ foreach( $bwg_search_keys as $search_key) {
88
+ $alt_search .= '`image`.`alt` LIKE "%' . trim($search_key) . '%" AND ';
89
+ $description_search .= '`image`.`description` LIKE "%' . trim($search_key) . '%" AND ';
90
+ }
91
+ $alt_search = rtrim($alt_search, 'AND ');
92
+ $alt_search .= ')';
93
+ $description_search = rtrim($description_search, 'AND ');
94
+ $description_search .= ')';
95
+ $where = 'AND (' . $alt_search . ' OR ' . $description_search . ')';
96
  }
97
  if ( $sort_by == 'size' || $sort_by == 'resolution' ) {
98
  $sort_by = ' CAST(image.' . $sort_by . ' AS SIGNED) ';
132
  }
133
  $join .= ' LEFT JOIN '. $wpdb->prefix .'bwg_gallery as gallery ON gallery.id = image.gallery_id';
134
  $where .= ' AND gallery.published = 1 ';
135
+ $query = 'SELECT image.* FROM ' . $wpdb->prefix . 'bwg_image as image ' . $join . ' WHERE image.published=1 ' . $where . ' ORDER BY ' . str_replace('RAND()', 'RAND(' . $bwg_random_seed . ')', $sort_by) . ' ' . $sort_direction . ' ' . $limit_str;
136
  $rows = $wpdb->get_results($query);
137
  $total = $wpdb->get_var('SELECT COUNT(*) FROM ' . $wpdb->prefix . 'bwg_image as image ' . $join . ' WHERE image.published=1 ' . $where);
138
  $page_nav['total'] = $total;
141
  $page_nav['limit'] = (int) $_REQUEST['page_number_' . $bwg];
142
  }
143
  $images = array();
144
+ $thumb_urls = array();
145
  if ( !empty($rows) ) {
146
  foreach ( $rows as $row ) {
147
  if ( strpos($row->filetype, 'EMBED') === FALSE ) {
148
  $row->image_url = WDWLibrary::image_url_version($row->image_url, $row->modified_date);
149
  $row->thumb_url = WDWLibrary::image_url_version($row->thumb_url, $row->modified_date);
150
+ // To disable Jetpack Photon module.
151
+ $thumb_urls[] = BWG()->upload_url . $row->thumb_url;
152
  }
153
  $images[] = $row;
154
  }
155
  }
156
+ return array( 'images' => $images, 'page_nav' => $page_nav, 'thumb_urls' => $thumb_urls );
157
  }
158
 
159
  public function get_tags_rows_data($gallery_id) {
161
  $row = $wpdb->get_results('Select t1.* FROM ' . $wpdb->prefix . 'terms AS t1 LEFT JOIN ' . $wpdb->prefix . 'term_taxonomy AS t2 ON t1.term_id = t2.term_id' . ($gallery_id ? ' LEFT JOIN (SELECT DISTINCT tag_id , gallery_id FROM ' . $wpdb->prefix . 'bwg_image_tag) AS t3 ON t1.term_id=t3.tag_id' : '') . ' WHERE taxonomy="bwg_tag"' . ($gallery_id ? ' AND t3.gallery_id="' . $gallery_id . '"' : '') . ' ORDER BY t1.name ASC');
162
  return $row;
163
  }
164
+
165
+ public function get_alb_gals_row( $bwg, $id, $albums_per_page, $sort_by, $pagination_type = 0, $from = '' ) {
166
+ if ( $albums_per_page < 0 ) {
167
+ $albums_per_page = 0;
168
+ }
169
+ global $wpdb;
170
+ if ( $sort_by == 'random' || $sort_by == 'RAND()' ) {
171
+ $order_by = 'ORDER BY RAND()';
172
+ } else {
173
+ $order_by = 'ORDER BY `order` ASC';
174
+ }
175
+ $limit = 0;
176
+ if ( isset( $_REQUEST[ 'page_number_' . $bwg ] ) && $_REQUEST[ 'page_number_' . $bwg ] ) {
177
+ $limit = ((int) $_REQUEST[ 'page_number_' . $bwg ] - 1) * $albums_per_page;
178
+ }
179
+ $limit_str = '';
180
+ if ( $albums_per_page ) {
181
+ $limit_str = 'LIMIT ' . $limit . ',' . $albums_per_page;
182
+ }
183
+ if ( isset( $_REQUEST[ 'action_' . $bwg ] ) && $_REQUEST[ 'action_' . $bwg ] == 'back' && ($pagination_type == 2 || $pagination_type == 3) ) {
184
+ if ( isset( $_REQUEST[ 'page_number_' . $bwg ] ) && $_REQUEST[ 'page_number_' . $bwg ] ) {
185
+ $limit = $albums_per_page * $_REQUEST[ 'page_number_' . $bwg ];
186
+ $limit_str = 'LIMIT 0,' . $limit;
187
+ }
188
+ }
189
+ // Select all galleries.
190
+ if ( $id == 0 ) {
191
+ $query = 'SELECT * FROM `' . $wpdb->prefix . 'bwg_gallery` WHERE `published`=1';
192
+ $limitation = ' ' . $order_by . ' ' . $limit_str;
193
+ $rows = $wpdb->get_results( $query . $limitation );
194
+ $total = $wpdb->get_var('SELECT count(*) FROM `' . $wpdb->prefix . 'bwg_gallery` WHERE `published`=1');
195
+ }
196
+ else {
197
+ $query = 'SELECT t.*, t1.preview_image, t1.random_preview_image, t1.name, t1.description, t1.slug, t1.modified_date FROM `' . $wpdb->prefix . 'bwg_album_gallery` as t';
198
+ $query .= ' LEFT JOIN `' . $wpdb->prefix . 'bwg_album` as t1 ON (t.is_album=1 AND t.alb_gal_id = t1.id)';
199
+ $query .= ' WHERE t.album_id="' . $id . '"';
200
+ $query .= ' AND t1.published=1';
201
+ $query .= ' UNION SELECT t.*, t2.preview_image, t2.random_preview_image, t2.name, t2.description, t2.slug, t2.modified_date FROM `' . $wpdb->prefix . 'bwg_album_gallery` as t';
202
+ $query .= ' LEFT JOIN `' . $wpdb->prefix . 'bwg_gallery` as t2 ON (t.is_album=0 AND t.alb_gal_id = t2.id)';
203
+ $query .= ' WHERE t.album_id="' . $id . '"';
204
+ $query .= ' AND t2.published=1';
205
+ $limitation = ' ' . $order_by . ' ' . $limit_str;
206
+ $rows = $wpdb->get_results($query . $limitation);
207
+ $total = count($wpdb->get_results($query));
208
+ }
209
+ if ( $rows ) {
210
+ foreach ( $rows as $row ) {
211
+ $row->def_type = isset($row->is_album) && $row->is_album ? 'album' : 'gallery';
212
+ if ( $from ) {
213
+ $row->permalink = WDWLibrary::get_custom_post_permalink(array( 'slug' => $row->slug, 'post_type' => $row->def_type ));
214
+ }
215
+ else {
216
+ $row->permalink = '';
217
+ }
218
+ if ( !empty($row->preview_image) ) {
219
+ $row->preview_image = WDWLibrary::image_url_version($row->preview_image, $row->modified_date);
220
+ }
221
+ if ( !empty($row->random_preview_image) ) {
222
+ $row->random_preview_image = WDWLibrary::image_url_version($row->random_preview_image, $row->modified_date);
223
+ }
224
+ if ( !$row->preview_image ) {
225
+ $row->preview_image = $row->random_preview_image;
226
+ }
227
+
228
+ if ( !$row->preview_image ) {
229
+ $row->preview_image = BWG()->plugin_url . '/images/no-image.png';
230
+ $row->preview_path = BWG()->plugin_dir . '/images/no-image.png';
231
+ }
232
+ else {
233
+ $parsed_prev_url = parse_url($row->preview_image, PHP_URL_SCHEME);
234
+ if ( $parsed_prev_url == 'http' || $parsed_prev_url == 'https' ) {
235
+ $row->preview_path = $row->preview_image;
236
+ $row->preview_image = $row->preview_image;
237
+ }
238
+ else {
239
+ $row->preview_path = BWG()->upload_dir . $row->preview_image;
240
+ $row->preview_image = BWG()->upload_url . $row->preview_image;
241
+ }
242
+ }
243
+
244
+ $row->description = wpautop($row->description);
245
+ }
246
+ }
247
+ $page_nav[ 'total' ] = $total;
248
+ $page_nav[ 'limit' ] = 1;
249
+ if ( isset( $_REQUEST[ 'page_number_' . $bwg ] ) && $_REQUEST[ 'page_number_' . $bwg ] ) {
250
+ $page_nav[ 'limit' ] = (int) $_REQUEST[ 'page_number_' . $bwg ];
251
+ }
252
+
253
+ return array( 'rows' => $rows, 'page_nav' => $page_nav );
254
+ }
255
+ }
frontend/views/BWGViewAlbum_compact_preview.php CHANGED
@@ -1,1398 +1,385 @@
1
  <?php
2
- class BWGViewAlbum_compact_preview {
3
- public function display($params = array(), $from_shortcode = 0, $bwg = 0) {
4
- require_once(BWG()->plugin_dir . '/framework/WDWLibrary.php');
5
 
6
- $theme_id = $params['theme_id'];
7
- $order_by = $params['order_by'];
8
- $album_view_type = $params['compuct_album_view_type'];
9
 
10
- $image_right_click = isset(BWG()->options->image_right_click) ? BWG()->options->image_right_click : 0;
11
- $placeholder = $params['placeholder'];
12
- $gallery_download = $params['gallery_download'];
13
- $play_icon = $params['play_icon'];
14
-
15
- $type = (isset($_REQUEST['type_' . $bwg]) ? esc_html($_REQUEST['type_' . $bwg]) : (isset($params['type']) ? $params['type'] : 'album'));
16
- $bwg_search = ((isset($_POST['bwg_search_' . $bwg]) && esc_html($_POST['bwg_search_' . $bwg]) != '') ? esc_html($_POST['bwg_search_' . $bwg]) : '');
17
-
18
- $from = (isset($params['from']) ? esc_html($params['from']) : 0);
19
-
20
- $theme_row = WDWLibrary::get_theme_row_data($theme_id);
21
- if (!$theme_row) {
22
- echo WDWLibrary::message(__('There is no theme selected or the theme was deleted.', BWG()->prefix), 'wd_error');
23
- return;
24
- }
25
- if (!isset($theme_row->album_compact_gal_title_font_color)) {
26
- $theme_row->album_compact_gal_title_font_color = 'CCCCCC';
27
- }
28
- if (!isset($theme_row->album_compact_gal_title_font_style)) {
29
- $theme_row->album_compact_gal_title_font_style = 'segoe ui';
30
- }
31
- if (!isset($theme_row->album_compact_gal_title_font_size)) {
32
- $theme_row->album_compact_gal_title_font_size = 16;
33
- }
34
- if (!isset($theme_row->album_compact_gal_title_font_weight)) {
35
- $theme_row->album_compact_gal_title_font_weight = 'bold';
36
- }
37
- if (!isset($theme_row->album_compact_gal_title_margin)) {
38
- $theme_row->album_compact_gal_title_margin = '2px';
39
  }
40
- if (!isset($theme_row->album_compact_gal_title_shadow)) {
41
- $theme_row->album_compact_gal_title_shadow = '0px 0px 0px #888888';
42
  }
43
- if (!isset($theme_row->album_compact_gal_title_align)) {
44
- $theme_row->album_compact_gal_title_align = 'center';
45
- }
46
-
47
- $album_gallery_id = (isset($_REQUEST['album_gallery_id_' . $bwg]) ? esc_html($_REQUEST['album_gallery_id_' . $bwg]) : $params['album_id']);
48
- $album_row = WDWLibrary::get_album_row_data($album_gallery_id, $from === "widget");
49
- if ( $type == 'album' && !$album_row ) {
50
- echo WDWLibrary::message(__('There is no album selected or the gallery was deleted.', BWG()->prefix), 'wd_error');
51
- return;
52
  }
 
 
 
53
 
54
- if ($type == 'gallery') {
55
- $items_per_page = $params['compuct_album_images_per_page'];
56
- $items_per_page_arr = array('images_per_page' => $params['compuct_album_images_per_page'], 'load_more_image_count' => $params['compuct_album_images_per_page']);
57
- $items_col_num = $params['compuct_album_image_column_number'];
58
- if (isset($_POST['sortImagesByValue_' . $bwg])) {
59
- $sort_by = esc_html($_POST['sortImagesByValue_' . $bwg]);
60
- if ($sort_by == 'random') {
61
- $params['sort_by'] = 'RAND()';
62
- }
63
- else if ($sort_by == 'default') {
64
- $params['sort_by'] = $params['sort_by'];
65
- }
66
- else {
67
- $params['sort_by'] = $sort_by;
68
- }
69
- }
70
- $image_rows = WDWLibrary::get_image_rows_data($album_gallery_id, $bwg, 'album_compact', 'bwg_tag_id_bwg_album_compact_' . $bwg, '', $items_per_page, $params['compuct_album_images_per_page'], $params['sort_by'], $order_by);
71
 
72
- $page_nav = $image_rows['page_nav'];
73
- $image_rows = $image_rows['images'];
74
- $images_count = count($image_rows);
75
- if (!$images_count) {
76
- echo WDWLibrary::message(__('There are no images in this gallery.', BWG()->prefix), 'wd_error');
77
- }
78
- $album_gallery_div_id = 'bwg_album_compact_' . $bwg;
79
- $album_gallery_div_class = 'bwg_standart_thumbnails_' . $bwg;
80
- }
81
- else {
82
- $items_per_page = $params['compuct_albums_per_page'];
83
- $items_per_page_arr = array('images_per_page' => $params['compuct_albums_per_page'], 'load_more_image_count' => $params['compuct_albums_per_page']);
84
- $items_col_num = $params['compuct_album_column_number'];
85
- $sort_by = $params['sort_by'];
86
- $pagination_type = $params['compuct_album_enable_page'];
87
- $album_galleries_row = WDWLibrary::get_alb_gals_row( $bwg, $album_gallery_id, $items_per_page, $sort_by, $pagination_type);
88
- $page_nav = $album_galleries_row['page_nav'];
89
- $album_galleries_row = $album_galleries_row['rows'];
90
- if (!$album_galleries_row) {
91
- echo WDWLibrary::message(__('There is no album selected or the gallery was deleted.', BWG()->prefix), 'wd_error');
92
- return;
93
- }
94
- $album_gallery_div_id = 'bwg_album_compact_' . $bwg;
95
- $album_gallery_div_class = 'bwg_album_thumbnails_' . $bwg;
96
- }
97
-
98
- if ($type == 'gallery' ) {
99
- if ( $album_view_type == 'masonry' ) {
100
- $form_child_div_style = 'background-color:rgba(0, 0, 0, 0); position:relative; text-align:' . $theme_row->masonry_thumb_align . '; width:100%;';
101
- $form_child_div_id = 'bwg_masonry_thumbnails_div_' . $bwg;
102
- $album_gallery_div_id = 'bwg_masonry_thumbnails_' . $bwg;
103
- $album_gallery_div_class = 'bwg_masonry_thumbnails_' . $bwg;
104
- }
105
- else if ( $album_view_type == 'mosaic' ) {
106
- $form_child_div_style = 'background-color:rgba(0, 0, 0, 0); position:relative; text-align:' . $theme_row->mosaic_thumb_align . '; width:100%;';
107
- $form_child_div_id = 'bwg_mosaic_thumbnails_div_' . $bwg;
108
- $album_gallery_div_id = 'bwg_mosaic_thumbnails_' . $bwg;
109
- $album_gallery_div_class = 'bwg_mosaic_thumbnails_' . $bwg;
110
- }
111
- else {
112
- $form_child_div_style = 'background-color:rgba(0, 0, 0, 0); position:relative; text-align:' . $theme_row->thumb_align . '; width:100%;';
113
- $form_child_div_id = '';
114
- }
115
- }
116
- else {
117
- $form_child_div_id = '';
118
- $form_child_div_style = 'background-color:rgba(0, 0, 0, 0); position:relative; text-align:' . $theme_row->album_compact_thumb_align . '; width:100%;';
119
- }
120
 
121
- $bwg_previous_album_id = (isset($_REQUEST['bwg_previous_album_id_' . $bwg]) ? esc_html($_REQUEST['bwg_previous_album_id_' . $bwg]) : $params['album_id']);
122
- $bwg_previous_album_page_number = (isset($_REQUEST['bwg_previous_album_page_number_' . $bwg]) ? esc_html($_REQUEST['bwg_previous_album_page_number_' . $bwg]) : 0);
 
123
 
124
- $params_array = array(
125
- 'action' => 'GalleryBox',
126
- 'current_view' => $bwg,
127
- 'theme_id' => $params['theme_id'],
128
- 'thumb_width' => $params['compuct_album_image_thumb_width'],
129
- 'thumb_height' => $params['compuct_album_image_thumb_height'],
130
- 'open_with_fullscreen' => $params['popup_fullscreen'],
131
- 'open_with_autoplay' => $params['popup_autoplay'],
132
- 'image_width' => $params['popup_width'],
133
- 'image_height' => $params['popup_height'],
134
- 'image_effect' => $params['popup_effect'],
135
- 'wd_sor' => $params['sort_by'],
136
- 'wd_ord' => $params['order_by'],
137
- 'enable_image_filmstrip' => $params['popup_enable_filmstrip'],
138
- 'image_filmstrip_height' => $params['popup_filmstrip_height'],
139
- 'enable_image_ctrl_btn' => $params['popup_enable_ctrl_btn'],
140
- 'enable_image_fullscreen' => $params['popup_enable_fullscreen'],
141
- 'popup_enable_info' => $params['popup_enable_info'],
142
- 'popup_info_always_show' => $params['popup_info_always_show'],
143
- 'popup_info_full_width' => $params['popup_info_full_width'],
144
- 'popup_hit_counter' => $params['popup_hit_counter'],
145
- 'popup_enable_rate' => $params['popup_enable_rate'],
146
- 'slideshow_interval' => $params['popup_interval'],
147
- 'enable_comment_social' => $params['popup_enable_comment'],
148
- 'enable_image_facebook' => $params['popup_enable_facebook'],
149
- 'enable_image_twitter' => $params['popup_enable_twitter'],
150
- 'enable_image_google' => $params['popup_enable_google'],
151
- 'enable_image_pinterest' => $params['popup_enable_pinterest'],
152
- 'enable_image_tumblr' => $params['popup_enable_tumblr'],
153
- 'watermark_type' => $params['watermark_type'],
154
- 'slideshow_effect_duration' => isset($params['popup_effect_duration']) ? $params['popup_effect_duration'] : 1,
155
- 'popup_enable_email' => $params['popup_enable_email'],
156
- 'popup_enable_captcha' => $params['popup_enable_captcha'],
157
- 'comment_moderation' => $params['comment_moderation'],
158
- 'autohide_lightbox_navigation' => $params['autohide_lightbox_navigation'],
159
- 'popup_enable_fullsize_image' => $params['popup_enable_fullsize_image'],
160
- 'popup_enable_download' => $params['popup_enable_download'],
161
- 'show_image_counts' => $params['show_image_counts'],
162
- 'enable_loop' => $params['enable_loop'],
163
- 'enable_addthis' => $params['enable_addthis'],
164
- 'addthis_profile_id' => $params['addthis_profile_id']
165
- );
166
- if ( BWG()->is_pro ) {
167
- $current_url = (is_ssl() ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
168
- $params_array['current_url'] = urlencode($current_url);
169
- $params_array['enable_image_ecommerce'] = $params['popup_enable_ecommerce'];
170
- }
171
- if ($params['watermark_type'] != 'none') {
172
- $params_array['watermark_link'] = $params['watermark_link'];
173
- $params_array['watermark_opacity'] = $params['watermark_opacity'];
174
- $params_array['watermark_position'] = $params['watermark_position'];
175
- }
176
- if ($params['watermark_type'] == 'text') {
177
- $params_array['watermark_text'] = $params['watermark_text'];
178
- $params_array['watermark_font_size'] = $params['watermark_font_size'];
179
- $params_array['watermark_font'] = $params['watermark_font'];
180
- $params_array['watermark_color'] = $params['watermark_color'];
181
- }
182
- elseif ($params['watermark_type'] == 'image') {
183
- $params_array['watermark_url'] = $params['watermark_url'];
184
- $params_array['watermark_width'] = $params['watermark_width'];
185
- $params_array['watermark_height'] = $params['watermark_height'];
186
- }
187
- $tags_rows = WDWLibrary::get_tags_rows_data($album_gallery_id);
188
- $inline_style = $this->inline_styles($bwg, $theme_row, $params, $album_gallery_div_class, $items_col_num, $album_view_type);
189
 
190
- if (BWG()->options->use_inline_stiles_and_scripts) {
191
- wp_enqueue_style('bwg_frontend');
192
- wp_add_inline_style('bwg_frontend', $inline_style);
193
- wp_enqueue_style('bwg_font-awesome');
194
- wp_enqueue_style('bwg_mCustomScrollbar');
195
- wp_enqueue_style('bwg_googlefonts');
196
- if (isset($params['show_tag_box']) && $params['show_tag_box']) {
197
- wp_enqueue_style('bwg_sumoselect');
198
- if (!wp_script_is('bwg_sumoselect', 'done')) {
199
- wp_print_scripts('bwg_sumoselect');
200
  }
201
- }
202
- if (!wp_script_is('bwg_frontend', 'done')) {
203
- wp_print_scripts('bwg_frontend');
204
- }
205
- if ($params['thumb_click_action'] == 'open_lightbox') {
206
- if (!wp_script_is('bwg_mCustomScrollbar', 'done')) {
207
- wp_print_scripts('bwg_mCustomScrollbar');
208
- }
209
- if (!wp_script_is('jquery-fullscreen', 'done')) {
210
- wp_print_scripts('jquery-fullscreen');
211
- }
212
- if (!wp_script_is('bwg_gallery_box', 'done')) {
213
- wp_print_scripts('bwg_gallery_box');
214
- }
215
- if ( BWG()->is_pro && !wp_script_is('bwg_raty', 'done') ) {
216
- wp_print_scripts('bwg_raty');
217
  }
218
  }
219
- if (!wp_script_is('bwg_jquery_mobile', 'done')) {
220
- wp_print_scripts('bwg_jquery_mobile');
221
- }
222
  }
223
  else {
224
- echo '<style>' . $inline_style . '</style>';
 
 
 
 
 
225
  }
226
- ?>
227
- <div id="bwg_container1_<?php echo $bwg; ?>">
228
- <div id="bwg_container2_<?php echo $bwg; ?>">
229
- <form id="gal_front_form_<?php echo $bwg; ?>" method="post" action="#" data-current="<?php echo $bwg; ?>">
230
- <?php
231
- if ($params['show_search_box'] && $type == 'gallery') {
232
- WDWLibrary::ajax_html_frontend_search_box('gal_front_form_' . $bwg, $bwg, $album_gallery_div_id, $images_count, $params['search_box_width'], $placeholder,$album_gallery_id);
233
- }
234
- if (isset($params['show_sort_images']) && $params['show_sort_images'] && $type == 'gallery') {
235
- WDWLibrary::ajax_html_frontend_sort_box('gal_front_form_' . $bwg, $bwg, $album_gallery_div_id, $params['sort_by'], $params['search_box_width']);
236
- }
237
- if (isset($params['show_tag_box']) && $params['show_tag_box'] && $type == 'gallery') {
238
- WDWLibrary::ajax_html_frontend_search_tags('gal_front_form_' . $bwg, $bwg, $album_gallery_div_id, $images_count, $tags_rows);
239
- }
240
- ?>
241
- <div id="<?php echo $form_child_div_id; ?>" style="<?php echo $form_child_div_style; ?>">
242
- <div id="ajax_loading_<?php echo $bwg; ?>" style="position:absolute;width: 100%; z-index: 115; text-align: center; height: 100%; vertical-align: middle; display: none;">
243
- <div style="display: table; vertical-align: middle; width: 100%; height: 100%; background-color: #FFFFFF; opacity: 0.7; filter: Alpha(opacity=70);">
244
- <div style="display: table-cell; text-align: center; position: relative; vertical-align: middle;" >
245
- <div id="loading_div_<?php echo $bwg; ?>" class="bwg_spider_ajax_loading" style="display: inline-block; text-align:center; position:relative; vertical-align:middle; background-image:url(<?php echo BWG()->plugin_url . '/images/ajax_loader.png'; ?>); float: none; width:30px;height:30px;background-size:30px 30px;">
246
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
247
  </div>
248
  </div>
249
  </div>
250
- <?php
251
- if ($params['compuct_album_enable_page'] && $items_per_page && ($theme_row->page_nav_position == 'top') && $page_nav['total']) {
252
- WDWLibrary::ajax_html_frontend_page_nav($theme_row, $page_nav['total'], $page_nav['limit'], 'gal_front_form_' . $bwg, $items_per_page_arr, $bwg, $album_gallery_div_id, $params['album_id'], $type, BWG()->options->enable_seo, $params['compuct_album_enable_page']);
253
- }
254
- if ($bwg_previous_album_id != $params['album_id']) {
255
- ?>
256
- <a class="bwg_back_<?php echo $bwg; ?>" onclick="spider_frontend_ajax('gal_front_form_<?php echo $bwg; ?>', '<?php echo $bwg; ?>', '<?php echo $album_gallery_div_id; ?>', 'back', '', 'album')"><?php echo __('Back', BWG()->prefix); ?></a>
257
- <?php
258
- }
259
- if ($params['show_album_name']) {
260
- if ($type == 'gallery') {
261
- ?>
262
- <div class="bwg_gal_title_<?php echo $bwg; ?>" ><?php echo isset($_POST['title_' . $bwg]) ? esc_html($_POST['title_' . $bwg]) : ''; ?></div>
263
- <?php
264
- }
265
- elseif ( $params['album_id'] != 0 ) {
266
- ?>
267
- <div class="bwg_gal_title_<?php echo $bwg; ?>"><?php echo $album_row->name; ?></div>
268
- <?php
269
- }
270
- }
271
- if (isset($params['show_gallery_description']) && $params['show_gallery_description'] && $params['description'] != '') {
272
- ?>
273
- <span class="bwg_gal_title_<?php echo $bwg; ?>">
274
- <?php echo $params['description']; ?>
275
- </span>
276
- <?php
277
- }
278
- ?>
279
- <div id="<?php echo $album_gallery_div_id; ?>" class="<?php echo $album_gallery_div_class; ?>">
280
- <input type="hidden" id="bwg_previous_album_id_<?php echo $bwg; ?>" name="bwg_previous_album_id_<?php echo $bwg; ?>" value="<?php echo $bwg_previous_album_id; ?>" />
281
- <input type="hidden" id="bwg_previous_album_page_number_<?php echo $bwg; ?>" name="bwg_previous_album_page_number_<?php echo $bwg; ?>" value="<?php echo $bwg_previous_album_page_number; ?>" />
282
- <?php
283
- if ($type != 'gallery') {
284
-
285
- if (!$page_nav['total']) {
286
- ?>
287
- <span class="bwg_back_<?php echo $bwg; ?>"><?php echo __('Album is empty.', BWG()->prefix); ?></span>
288
- <?php
289
- }
290
- foreach ($album_galleries_row as $album_galallery_row) {
291
- // Check if selected All Galleries
292
- if( $album_gallery_id ) {
293
- if ($album_galallery_row->is_album) {
294
- $album_row = WDWLibrary::get_album_row_data($album_galallery_row->alb_gal_id, $from === "widget");
295
- if (!$album_row) {
296
- continue;
297
- }
298
- $preview_image = $album_row->preview_image;
299
- if (!$preview_image) {
300
- $preview_image = $album_row->random_preview_image;
301
- }
302
- $def_type = 'album';
303
- $title = $album_row->name;
304
- $permalink = isset($album_row->permalink) ? $album_row->permalink : '';
305
- } else {
306
- $gallery_row = WDWLibrary::get_gallery_row_data($album_galallery_row->alb_gal_id, ($from === "widget" ? "compact" : ""));
307
- if (!$gallery_row) {
308
- continue;
309
- }
310
- $preview_image = $gallery_row->preview_image;
311
- if (!$preview_image) {
312
- $preview_image = $gallery_row->random_preview_image;
313
- }
314
- $def_type = 'gallery';
315
- $title = $gallery_row->name;
316
- $permalink = isset($gallery_row->permalink) ? $gallery_row->permalink : '';
317
- }
318
- }
319
- else {
320
- $preview_image = $album_galallery_row->preview_image;
321
- if (!$preview_image) {
322
- $preview_image = $album_galallery_row->random_preview_image;
323
- }
324
- $def_type = 'gallery';
325
- $title = $album_galallery_row->name;
326
- $permalink = isset($album_galallery_row->permalink) ? $album_galallery_row->permalink : '';
327
- }
328
-
329
- $local_preview_image = true;
330
- $parsed_prev_url = parse_url($preview_image, PHP_URL_SCHEME);
331
-
332
- if($parsed_prev_url =='http' || $parsed_prev_url =='https'){
333
- $local_preview_image = false;
334
- }
335
-
336
- if (!$preview_image) {
337
- $preview_url = BWG()->plugin_url . '/images/no-image.png';
338
- $preview_path = BWG()->plugin_dir . '/images/no-image.png';
339
- }
340
- else {
341
- if($local_preview_image){
342
- $preview_url = BWG()->upload_url . $preview_image;
343
- $preview_path = BWG()->upload_dir . $preview_image;
344
- }
345
- else{
346
- $preview_url = $preview_image;
347
- $preview_path = $preview_image;
348
- }
349
- }
350
- if($local_preview_image){
351
- $preview_path_url = htmlspecialchars_decode($preview_path, ENT_COMPAT | ENT_QUOTES);
352
- $preview_path_url = explode('?bwg',$preview_path_url);
353
- list($image_thumb_width, $image_thumb_height) = getimagesize($preview_path_url[0]);
354
- $scale = max($params['compuct_album_thumb_width'] / $image_thumb_width, $params['compuct_album_thumb_height'] / $image_thumb_height);
355
- $image_thumb_width *= $scale;
356
- $image_thumb_height *= $scale;
357
- $thumb_left = ($params['compuct_album_thumb_width'] - $image_thumb_width) / 2;
358
- $thumb_top = ($params['compuct_album_thumb_height'] - $image_thumb_height) / 2;
359
- }
360
- else{
361
- $image_thumb_width = $params['compuct_album_thumb_width'];
362
- $image_thumb_height = $params['compuct_album_thumb_height'];
363
- $thumb_left = 0;
364
- $thumb_top = 0;
365
- }
366
- if ($type != 'gallery') {
367
- ?>
368
- <a class="bwg_album_<?php echo $bwg; ?>" <?php echo ($from !== "widget" ? (BWG()->options->enable_seo ? "href='" . esc_url(add_query_arg(array("type_" . $bwg => $def_type, "album_gallery_id_" . $bwg => (($album_gallery_id != 0) ? $album_galallery_row->alb_gal_id : $album_galallery_row->id), "bwg_previous_album_id_" . $bwg => $album_gallery_id . ',' . $bwg_previous_album_id , "bwg_previous_album_page_number_" . $bwg => (isset($_REQUEST['page_number_' . $bwg]) ? esc_html($_REQUEST['page_number_' . $bwg]) : 0) . ',' . $bwg_previous_album_page_number), $_SERVER['REQUEST_URI'])) . "'" : "") . " data-alb_gal_id=\"" . (($album_gallery_id != 0) ? $album_galallery_row->alb_gal_id : $album_galallery_row->id) . "\" data-def_type=\"" . $def_type . "\" data-title=\"" . htmlspecialchars(addslashes($title)) . "\"" : "href='" . $permalink . "'") ?>>
369
- <span class="bwg_album_thumb_<?php echo $bwg; ?>">
370
- <?php
371
- if ($params['compuct_album_title'] == 'show' && $theme_row->album_compact_thumb_title_pos == 'top') {
372
- ?>
373
- <span class="bwg_title_spun1_<?php echo $bwg; ?>">
374
- <span class="bwg_title_spun2_<?php echo $bwg; ?>">
375
- <?php echo $title; ?>
376
- </span>
377
- </span>
378
- <?php
379
- }
380
- ?>
381
- <span class="bwg_album_thumb_spun1_<?php echo $bwg; ?>">
382
- <span class="bwg_album_thumb_spun2_<?php echo $bwg; ?>">
383
- <img class="bwg_img_clear bwg_img_custom" style="width: <?php echo $image_thumb_width; ?>px; height:<?php echo $image_thumb_height; ?>px; margin-left: <?php echo $thumb_left; ?>px; margin-top: <?php echo $thumb_top; ?>px;" src="<?php echo $preview_url; ?>" alt="<?php echo $title; ?>" />
384
- <?php
385
- if ($params['compuct_album_title'] == 'hover') {
386
- ?>
387
- <span class="bwg_title_spun1_<?php echo $bwg; ?>">
388
- <span class="bwg_title_spun2_<?php echo $bwg; ?>">
389
- <?php echo $title; ?>
390
- </span>
391
- </span>
392
- <?php
393
- }
394
- ?>
395
- </span>
396
- </span>
397
- <?php
398
- if ($params['compuct_album_title'] == 'show' && $theme_row->album_compact_thumb_title_pos == 'bottom') {
399
- ?>
400
- <span class="bwg_title_spun1_<?php echo $bwg; ?>">
401
- <span class="bwg_title_spun2_<?php echo $bwg; ?>">
402
- <?php echo $title; ?>
403
- </span>
404
- </span>
405
- <?php
406
- }
407
- ?>
408
- </span>
409
- </a>
410
- <?php
411
- }
412
- }
413
- }
414
- elseif ($type == 'gallery') {
415
- if (!$page_nav['total']) {
416
- if ($bwg_search != '') {
417
- ?>
418
- <span class="bwg_back_<?php echo $bwg; ?>"><?php echo __('There are no images matching your search.', BWG()->prefix); ?></span>
419
- <?php
420
- }
421
- else {
422
- ?>
423
- <span class="bwg_back_<?php echo $bwg; ?>"><?php echo __('Gallery is empty.', BWG()->prefix); ?></span>
424
- <?php
425
- }
426
- }
427
- foreach ($image_rows as $image_row) {
428
- $is_embed = preg_match('/EMBED/', $image_row->filetype) == 1 ? true : false;
429
- $is_embed_video = preg_match('/VIDEO/', $image_row->filetype) == 1 ? true : false;
430
- $is_embed_instagram = preg_match('/EMBED_OEMBED_INSTAGRAM/', $image_row->filetype) == 1 ? true : false;
431
- if (!$is_embed) {
432
- $thumb_path_url = htmlspecialchars_decode(BWG()->upload_dir . $image_row->thumb_url, ENT_COMPAT | ENT_QUOTES);
433
- $thumb_path_url = explode('?bwg', $thumb_path_url);
434
- list($image_thumb_width, $image_thumb_height) = getimagesize($thumb_path_url[0]);
435
- }
436
- else {
437
- if ($image_row->resolution != '') {
438
- if (!$is_embed_instagram) {
439
- $resolution_arr = explode(" ", $image_row->resolution);
440
- $resolution_w = intval($resolution_arr[0]);
441
- $resolution_h = intval($resolution_arr[2]);
442
- if($resolution_w != 0 && $resolution_h != 0){
443
- $scale = $scale = max($params['compuct_album_image_thumb_width'] / $resolution_w, $params['compuct_album_image_thumb_height'] / $resolution_h);
444
- $image_thumb_width = $resolution_w * $scale;
445
- $image_thumb_height = $resolution_h * $scale;
446
- }
447
- else{
448
- $image_thumb_width = $params['compuct_album_image_thumb_width'];
449
- $image_thumb_height = $params['compuct_album_image_thumb_height'];
450
- }
451
- }
452
- else {
453
- // this will be ok while instagram thumbnails width and height are the same
454
- $image_thumb_width = min($params['compuct_album_image_thumb_width'], $params['compuct_album_image_thumb_height']);
455
- $image_thumb_height = $image_thumb_width;
456
- }
457
- }
458
- else{
459
- $image_thumb_width = $params['compuct_album_image_thumb_width'];
460
- $image_thumb_height = $params['compuct_album_image_thumb_height'];
461
- }
462
- }
463
- $scale = max($params['compuct_album_image_thumb_width'] / $image_thumb_width, $params['compuct_album_image_thumb_height'] / $image_thumb_height);
464
- $image_thumb_width *= $scale;
465
- $image_thumb_height *= $scale;
466
- $thumb_left = ($params['compuct_album_image_thumb_width'] - $image_thumb_width) / 2;
467
- $thumb_top = ($params['compuct_album_image_thumb_height'] - $image_thumb_height) / 2;
468
- if ($album_view_type == 'thumbnail') {
469
- ?>
470
- <a <?php echo ($params['thumb_click_action'] == 'open_lightbox' ? (' class="bwg_lightbox_' . $bwg . '"' . (BWG()->options->enable_seo ? ' href="' . ($is_embed ? $image_row->thumb_url : BWG()->upload_url . $image_row->image_url) . '"' : '') . ' data-image-id="' . $image_row->id . '" data-gallery-id="' . $album_gallery_id . '"') : ($image_row->redirect_url ? 'href="' . $image_row->redirect_url . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : '')) ?>>
471
- <span class="bwg_standart_thumb_<?php echo $bwg; ?>">
472
- <?php
473
- if ($params['compuct_album_image_title'] == 'show' && $theme_row->album_compact_thumb_title_pos == 'top') {
474
- ?>
475
- <span class="bwg_image_title_spun1_<?php echo $bwg; ?>">
476
- <span class="bwg_image_title_spun2_<?php echo $bwg; ?>">
477
- <?php echo $image_row->alt; ?>
478
- </span>
479
- </span>
480
- <?php
481
- }
482
- ?>
483
- <span class="bwg_standart_thumb_spun1_<?php echo $bwg; ?>">
484
- <span class="bwg_standart_thumb_spun2_<?php echo $bwg; ?>">
485
- <?php
486
- if ($play_icon && $is_embed_video) {
487
- ?>
488
- <span class="bwg_play_icon_spun_<?php echo $bwg; ?>">
489
- <i title="<?php echo __('Play', BWG()->prefix); ?>" class="fa fa-play bwg_play_icon_<?php echo $bwg; ?>"></i>
490
- </span>
491
- <?php
492
- }
493
- if ($params['compuct_album_image_title'] == 'hover') {
494
- ?>
495
- <span class="bwg_image_title_spun1_<?php echo $bwg; ?>">
496
- <span class="bwg_image_title_spun2_<?php echo $bwg; ?>">
497
- <?php echo $image_row->alt; ?>
498
- </span>
499
- </span>
500
- <?php
501
- }
502
-
503
- if(function_exists('BWGEC') && $params['ecommerce_icon'] == 'hover' && $image_row->pricelist_id){
504
- ?>
505
- <span class="bwg_ecommerce_spun1_<?php echo $bwg; ?>">
506
- <span class="bwg_ecommerce_spun2_<?php echo $bwg; ?>">
507
- <i title="<?php echo __('Open', BWG()->prefix); ?>" class="bwg_ctrl_btn bwg_open fa fa-share-square" ></i>
508
- <i title="<?php echo __('Ecommerce', BWG()->prefix); ?>" class="bwg_ctrl_btn bwg_ecommerce fa fa-shopping-cart" ></i>
509
- </span>
510
- </span>
511
- <?php
512
- }
513
- ?>
514
- <img class="bwg_img_clear bwg_img_custom" style="width:<?php echo $image_thumb_width; ?>px; height:<?php echo $image_thumb_height; ?>px; margin-left: <?php echo $thumb_left; ?>px; margin-top: <?php echo $thumb_top; ?>px;" id="<?php echo $image_row->id; ?>" src="<?php echo ( $is_embed ? "" : BWG()->upload_url) . $image_row->thumb_url; ?>" alt="<?php echo $image_row->alt; ?>" />
515
- </span>
516
- </span>
517
- <?php
518
- if ($params['compuct_album_image_title'] == 'show' && $theme_row->album_compact_thumb_title_pos == 'bottom') {
519
- ?>
520
- <span class="bwg_image_title_spun1_<?php echo $bwg; ?>">
521
- <span class="bwg_image_title_spun2_<?php echo $bwg; ?>">
522
- <?php echo $image_row->alt; ?>
523
- </span>
524
- </span>
525
- <?php
526
- }
527
- ?>
528
- <?php
529
- if (function_exists('BWGEC') && $params['ecommerce_icon'] == 'show' && $image_row->pricelist_id) {
530
- ?>
531
- <span class="bwg_ecommerce_spun1_<?php echo $bwg; ?>">
532
- <span class="bwg_ecommerce_spun2_<?php echo $bwg; ?>">
533
- <i title="<?php echo __('Open', BWG()->prefix); ?>" class="bwg_ctrl_btn bwg_open fa fa-share-square" ></i>
534
- <i title="<?php echo __('Ecommerce', BWG()->prefix); ?>" class="bwg_ctrl_btn bwg_ecommerce fa fa-shopping-cart" ></i>
535
- </span>
536
- </span>
537
- <?php
538
- }
539
- ?>
540
- </span>
541
- </a>
542
- <?php
543
- }
544
- }
545
- }
546
- ?>
547
- </div>
548
- <?php
549
- if ( $type == 'gallery' ) {
550
- if ( BWG()->is_pro && $gallery_download && $image_rows ) {
551
- $bwg_tags_input_value = WDWLibrary::get('bwg_tag_id_bwg_album_compact_' . $bwg);
552
- $query_url = addslashes(add_query_arg(array(
553
- "action" => "download_gallery",
554
- "gallery_id" => $params['gallery_id'],
555
- "bwg" => $bwg,
556
- "type" => 'gallery',
557
- "tag_input_name" => 'bwg_tag_id_bwg_album_compact_' . $bwg,
558
- "bwg_tag_id_bwg_album_compact_" . $bwg => $bwg_tags_input_value,
559
- "tag" => $params['tag'],
560
- "bwg_search_".$bwg => WDWLibrary::get('bwg_search_'.$bwg),
561
- ), admin_url('admin-ajax.php')));
562
- ?>
563
- <div class="bwg_download_gallery">
564
- <a href="<?php echo $query_url; ?>">
565
- <i title="<?php _e('Download gallery', BWG()->prefix); ?>" class="bwg_ctrl_btn fa fa-download"></i>
566
- </a>
567
- </div>
568
- <?php
569
- }
570
- }
571
- if ($params['compuct_album_enable_page'] && $items_per_page && ($theme_row->page_nav_position == 'bottom') && $page_nav['total']) {
572
- WDWLibrary::ajax_html_frontend_page_nav($theme_row, $page_nav['total'], $page_nav['limit'], 'gal_front_form_' . $bwg, $items_per_page_arr, $bwg, $album_gallery_div_id, $params['album_id'], $type, BWG()->options->enable_seo, $params['compuct_album_enable_page']);
573
- }
574
- ?>
575
- </div>
576
- </form>
577
- <div id="bwg_spider_popup_loading_<?php echo $bwg; ?>" class="bwg_spider_popup_loading"></div>
578
- <div id="spider_popup_overlay_<?php echo $bwg; ?>" class="spider_popup_overlay" onclick="spider_destroypopup(1000)"></div>
579
- </div>
580
  </div>
581
- <script>
582
- function bwg_masonry_<?php echo $bwg; ?>() {}
583
- function bwg_mosaic_<?php echo $bwg; ?>(event_type) {}
584
- function bwg_gallery_box_<?php echo $bwg; ?>(gallery_id, image_id,openEcommerce) {
585
- if (typeof openEcommerce == undefined) {
586
- openEcommerce = false;
587
- }
588
- var ecommerce = openEcommerce == true ? "&open_ecommerce=1" : "";
589
- var filterTags = jQuery("#bwg_tags_id_bwg_album_compact_<?php echo $bwg; ?>" ).val() ? jQuery("#bwg_tags_id_bwg_album_compact_<?php echo $bwg; ?>" ).val() : 0;
590
- var filtersearchname = jQuery("#bwg_search_input_<?php echo $bwg; ?>" ).val() ? "&filter_search_name_<?php echo $bwg; ?>=" + jQuery("#bwg_search_input_<?php echo $bwg; ?>" ).val() : '';
591
- spider_createpopup('<?php echo addslashes(add_query_arg($params_array, admin_url('admin-ajax.php'))); ?>&gallery_id=' + gallery_id + '&image_id=' + image_id + "&filter_tag_<?php echo $bwg; ?>=" + filterTags + ecommerce + filtersearchname, '<?php echo $bwg; ?>', '<?php echo $bwg; ?>', '<?php echo $params['popup_width']; ?>', '<?php echo $params['popup_height']; ?>', 1, 'testpopup', 5, "<?php echo $theme_row->lightbox_ctrl_btn_pos ;?>");
592
  }
593
- function bwg_document_ready_<?php echo $bwg; ?>() {
594
- var bwg_touch_flag = false;
595
- jQuery("#bwg_container2_<?php echo $bwg; ?>").on("click", ".bwg_lightbox_<?php echo $bwg; ?>", function () {
596
- if (!bwg_touch_flag) {
597
- bwg_touch_flag = true;
598
- setTimeout(function(){ bwg_touch_flag = false; }, 100);
599
- bwg_gallery_box_<?php echo $bwg; ?>(jQuery(this).attr("data-gallery-id"), jQuery(this).attr("data-image-id"));
600
- return false;
601
- }
602
- });
603
- jQuery(".bwg_lightbox_<?php echo $bwg; ?> .bwg_ecommerce").on("click", function (event) {
604
- event.stopPropagation();
605
- if (!bwg_touch_flag) {
606
- bwg_touch_flag = true;
607
- setTimeout(function(){ bwg_touch_flag = false; }, 100);
608
- var image_id = jQuery(this).closest(".bwg_lightbox_<?php echo $bwg; ?>").attr("data-image-id");
609
- var gallery_id = jQuery(this).closest(".bwg_lightbox_<?php echo $bwg; ?>").attr("data-gallery-id");
610
- bwg_gallery_box_<?php echo $bwg; ?>(gallery_id, image_id, true);
611
- return false;
612
- }
613
- });
614
 
615
- jQuery( 'div[id^="bwg_container"]' ).each( function () {
616
- var bwg_container = jQuery(this);
617
- if (bwg_container.data('right-click-protection')) {
618
- /* Disable right click.*/
619
- bwg_container.bind("contextmenu", function () {
620
- return false;
621
- });
622
- bwg_container.css('webkitTouchCallout', 'none');
623
- }
624
- var search_tags = bwg_container.find('.search_tags');
625
- if (search_tags.length) {
626
- search_tags.SumoSelect({
627
- triggerChangeCombined: true,
628
- placeholder: bwg_objectsL10n.bwg_select_tag,
629
- search: 1,
630
- searchText: bwg_objectsL10n.bwg_search,
631
- forceCustomRendering: true,
632
- noMatch: bwg_objectsL10n.bwg_tag_no_match,
633
- captionFormatAllSelected: bwg_objectsL10n.bwg_all_tags_selected,
634
- captionFormat: '{0} ' + bwg_objectsL10n.bwg_tags_selected,
635
- });
636
- }
637
- var bwg_order = bwg_container.find('.bwg_order');
638
- if (bwg_order.length) {
639
- bwg_order.SumoSelect({
640
- triggerChangeCombined: true,
641
- forceCustomRendering: true,
642
- });
643
- }
644
- });
645
 
646
- <?php if ($from !== "widget") { ?>
647
- jQuery("#bwg_container2_<?php echo $bwg; ?>").on("click", ".bwg_album_<?php echo $bwg; ?>", function () {
648
- if (!bwg_touch_flag) {
649
- bwg_touch_flag = true;
650
- setTimeout(function(){ bwg_touch_flag = false; }, 100);
651
- spider_frontend_ajax('gal_front_form_<?php echo $bwg; ?>', '<?php echo $bwg; ?>', 'bwg_album_compact_<?php echo $bwg; ?>', jQuery(this).attr("data-alb_gal_id"), '<?php echo $album_gallery_id; ?>', jQuery(this).attr("data-def_type"), '', jQuery(this).attr("data-title"), 'default');
652
- return false;
653
- }
654
- });
655
- <?php }
656
- if ($image_right_click) {
657
- ?>
658
- /* Disable right click.*/
659
- jQuery('div[id^="bwg_container"]').bind("contextmenu", function () {
660
- return false;
661
- });
662
- jQuery('div[id^="bwg_container"]').css('webkitTouchCallout','none');
663
- <?php
664
- }
665
- if ( BWG()->is_pro ) {
666
- ?>
667
- var bwg_hash = window.location.hash.substring(1);
668
- if (bwg_hash) {
669
- if (bwg_hash.indexOf("bwg") != "-1") {
670
- bwg_hash_array = bwg_hash.replace("bwg", "").split("/");
671
- bwg_gallery_box_<?php echo $bwg; ?>(bwg_hash_array[0], bwg_hash_array[1]);
672
- }
673
- }
674
- <?php
675
- }
676
- ?>
677
  }
678
- jQuery(document).ready(function () {
679
- bwg_document_ready_<?php echo $bwg; ?>();
680
- });
681
- function bwg_mosaic_ajax_<?php echo $bwg; ?>(tot_cccount_mosaic_ajax) {}
682
- function bwg_masonry_ajax_<?php echo $bwg; ?>(tot_cccount_masonry_ajax) {}
683
- </script>
684
- <?php
685
- if ($from_shortcode) {
686
- return;
687
  }
688
  else {
689
- die();
690
  }
691
  }
692
 
693
- private function inline_styles($bwg, $theme_row, $params, $album_gallery_div_class, $items_col_num, $album_view_type) {
694
  ob_start();
695
- $rgb_page_nav_font_color = WDWLibrary::spider_hex2rgb($theme_row->page_nav_font_color);
696
  $rgb_album_compact_thumbs_bg_color = WDWLibrary::spider_hex2rgb($theme_row->album_compact_thumbs_bg_color);
697
- $rgb_thumbs_bg_color = WDWLibrary::spider_hex2rgb($theme_row->thumbs_bg_color);
698
-
699
  ?>
700
- /* Style for masonry view. */
701
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_masonry_thumbnails_<?php echo $bwg; ?> * {
702
- -moz-box-sizing: border-box;
703
- -webkit-box-sizing: border-box;
704
- box-sizing: border-box;
705
- }
706
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_masonry_thumb_<?php echo $bwg; ?> {
707
- visibility: hidden;
708
- text-align: center;
709
- display: inline-block;
710
- vertical-align: middle;
711
- width: <?php echo $params['compuct_album_image_thumb_width']; ?>px !important;
712
- border-radius: <?php echo $theme_row->masonry_thumb_border_radius; ?>;
713
- border: <?php echo $theme_row->masonry_thumb_border_width; ?>px <?php echo $theme_row->masonry_thumb_border_style; ?> #<?php echo $theme_row->masonry_thumb_border_color; ?>;
714
- background-color: #<?php echo $theme_row->thumb_bg_color; ?>;
715
- margin: 0;
716
- padding: <?php echo $theme_row->masonry_thumb_padding; ?>px !important;
717
- opacity: <?php echo number_format($theme_row->masonry_thumb_transparent / 100, 2, ".", ""); ?>;
718
- filter: Alpha(opacity=<?php echo $theme_row->masonry_thumb_transparent; ?>);
719
- <?php echo ($theme_row->masonry_thumb_transition) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
720
- z-index: 100;
721
- }
722
- /* #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_masonry_thumb_<?php echo $bwg; ?>:hover {
723
- opacity: 1;
724
- filter: Alpha(opacity=100);
725
- transform: <?php echo $theme_row->masonry_thumb_hover_effect; ?>(<?php echo $theme_row->masonry_thumb_hover_effect_value; ?>);
726
- -ms-transform: <?php echo $theme_row->masonry_thumb_hover_effect; ?>(<?php echo $theme_row->masonry_thumb_hover_effect_value; ?>);
727
- -webkit-transform: <?php echo $theme_row->masonry_thumb_hover_effect; ?>(<?php echo $theme_row->masonry_thumb_hover_effect_value; ?>);
728
- backface-visibility: hidden;
729
- -webkit-backface-visibility: hidden;
730
- -moz-backface-visibility: hidden;
731
- -ms-backface-visibility: hidden;
732
- z-index: 102;
733
- position: absolute;
734
- }*/
735
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_masonry_thumbnails_<?php echo $bwg; ?> {
736
- -moz-box-sizing: border-box;
737
- background-color: rgba(<?php echo $rgb_thumbs_bg_color['red']; ?>, <?php echo $rgb_thumbs_bg_color['green']; ?>, <?php echo $rgb_thumbs_bg_color['blue']; ?>, <?php echo number_format($theme_row->masonry_thumb_bg_transparent / 100, 2, ".", ""); ?>);
738
- box-sizing: border-box;
739
- display: inline-block;
740
- font-size: 0;
741
- /*width: <?php echo $params['compuct_album_image_column_number'] * ($params['compuct_album_image_thumb_width'] + 2 * ($theme_row->masonry_thumb_padding + $theme_row->masonry_thumb_border_width)); ?>px;*/
742
- width: 100%;
743
- position: relative;
744
- text-align: <?php echo $theme_row->masonry_thumb_align; ?>;
745
- }
746
- @media only screen and (max-width : <?php echo $params['compuct_album_image_column_number'] * ($params['compuct_album_image_thumb_width'] + 2 * ($theme_row->masonry_thumb_padding + $theme_row->masonry_thumb_border_width)); ?>px) {
747
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_masonry_thumbnails_<?php echo $bwg; ?> {
748
- width: inherit;
749
- }
750
- }
751
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_popup_overlay_<?php echo $bwg; ?> {
752
- background-color: #<?php echo $theme_row->lightbox_overlay_bg_color; ?>;
753
- opacity: <?php echo number_format($theme_row->lightbox_overlay_bg_transparent / 100, 2, ".", ""); ?>;
754
- filter: Alpha(opacity=<?php echo $theme_row->lightbox_overlay_bg_transparent; ?>);
755
- }
756
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_masonry_thumb_spun_<?php echo $bwg; ?> {
757
- position: absolute;
758
- }
759
- /* Style for thumbnail view.*/
760
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_album_thumb_<?php echo $bwg; ?> {
761
- display: inline-block;
762
- text-align: center;
763
- }
764
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .<?php echo $album_gallery_div_class; ?> * {
765
- -moz-box-sizing: content-box;
766
- box-sizing: content-box;
767
- }
768
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_album_thumb_spun1_<?php echo $bwg; ?> {
769
- background-color: #<?php echo $theme_row->album_compact_thumb_bg_color; ?>;
770
- display: inline-block;
771
- width: <?php echo $params['compuct_album_thumb_width']; ?>px;
772
- height: <?php echo $params['compuct_album_thumb_height']; ?>px;
773
- margin: <?php echo $theme_row->album_compact_thumb_margin; ?>px;
774
- opacity: <?php echo number_format($theme_row->album_compact_thumb_transparent / 100, 2, ".", ""); ?>;
775
- filter: Alpha(opacity=<?php echo $theme_row->album_compact_thumb_transparent; ?>);
776
- <?php echo ($theme_row->album_compact_thumb_transition) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
777
- padding: <?php echo $theme_row->album_compact_thumb_padding; ?>px;
778
- text-align: center;
779
- vertical-align: middle;
780
- z-index: 100;
781
- -webkit-backface-visibility: visible;
782
- -ms-backface-visibility: visible;
783
- }
784
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_album_thumb_spun1_<?php echo $bwg; ?>:hover {
785
- opacity: 1;
786
- filter: Alpha(opacity=100);
787
- backface-visibility: hidden;
788
- -webkit-backface-visibility: hidden;
789
- -moz-backface-visibility: hidden;
790
- -ms-backface-visibility: hidden;
791
- z-index: 102;
792
- }
793
-
794
- @media only screen and (min-width: 480px) {
795
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_album_thumb_spun1_<?php echo $bwg; ?>:hover {
796
- transform: <?php echo $theme_row->album_compact_thumb_hover_effect; ?>(<?php echo $theme_row->album_compact_thumb_hover_effect_value; ?>);
797
- -ms-transform: <?php echo $theme_row->album_compact_thumb_hover_effect; ?>(<?php echo $theme_row->album_compact_thumb_hover_effect_value; ?>);
798
- -webkit-transform: <?php echo $theme_row->album_compact_thumb_hover_effect; ?>(<?php echo $theme_row->album_compact_thumb_hover_effect_value; ?>);
799
- }
800
- }
801
-
802
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_album_thumb_spun2_<?php echo $bwg; ?> {
803
- border-radius: <?php echo $theme_row->album_compact_thumb_border_radius; ?>;
804
- border: <?php echo $theme_row->album_compact_thumb_border_width; ?>px <?php echo $theme_row->album_compact_thumb_border_style; ?> #<?php echo $theme_row->album_compact_thumb_border_color; ?>;
805
- box-shadow: <?php echo $theme_row->album_compact_thumb_box_shadow; ?>;
806
- display: inline-block;
807
- height: <?php echo $params['compuct_album_thumb_height']; ?>px;
808
- overflow: hidden;
809
- width: <?php echo $params['compuct_album_thumb_width']; ?>px;
810
- }
811
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_album_thumbnails_<?php echo $bwg; ?> {
812
- display: inline-block;
813
- -moz-box-sizing: border-box;
814
- box-sizing: border-box;
815
- background-color: rgba(<?php echo $rgb_album_compact_thumbs_bg_color['red']; ?>, <?php echo $rgb_album_compact_thumbs_bg_color['green']; ?>, <?php echo $rgb_album_compact_thumbs_bg_color['blue']; ?>, <?php echo number_format($theme_row->album_compact_thumb_bg_transparent / 100, 2, ".", ""); ?>);
816
- font-size: 0;
817
- text-align: <?php echo $theme_row->album_compact_thumb_align; ?>;
818
- max-width: <?php echo $items_col_num * ($params['compuct_album_thumb_width'] + 2 * (2 + $theme_row->album_compact_thumb_margin + $theme_row->album_compact_thumb_padding + $theme_row->album_compact_thumb_border_width)); ?>px;
819
- }
820
  <?php
821
- if ($params['compuct_album_title'] == 'show') { /* Show album/gallery title at the bottom.*/
822
- ?>
823
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_title_spun1_<?php echo $bwg; ?> {
824
- display: block;
825
- opacity: 1;
826
- filter: Alpha(opacity=100);
827
- text-align: center;
828
- width: <?php echo $params['compuct_album_thumb_width']; ?>px;
829
- }
830
- <?php
831
- }
832
- elseif ($params['compuct_album_title'] == 'hover') { /* Show album/gallery title on hover.*/
833
- ?>
834
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_title_spun1_<?php echo $bwg; ?> {
835
- display: table;
836
- height: inherit;
837
- left: -3000px;
838
- opacity: 0;
839
- filter: Alpha(opacity=0);
840
- position: absolute;
841
- top: 0px;
842
- width: inherit;
843
- }
844
- <?php
845
- }
846
  ?>
847
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_album_thumb_spun1_<?php echo $bwg; ?>:hover .bwg_title_spun1_<?php echo $bwg; ?> {
848
- left: <?php echo $theme_row->album_compact_thumb_padding; ?>px;
849
- top: <?php echo $theme_row->album_compact_thumb_padding; ?>px;
850
- opacity: 1;
851
- filter: Alpha(opacity=100);
852
- }
853
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_title_spun2_<?php echo $bwg; ?> {
854
- color: #<?php echo $theme_row->album_compact_title_font_color; ?>;
855
- display: table-cell;
856
- font-family: <?php echo $theme_row->album_compact_title_font_style; ?>;
857
- font-size: <?php echo $theme_row->album_compact_title_font_size; ?>px;
858
- font-weight: <?php echo $theme_row->album_compact_title_font_weight; ?>;
859
- height: inherit;
860
- padding: <?php echo $theme_row->album_compact_title_margin; ?>;
861
- text-shadow: <?php echo $theme_row->album_compact_title_shadow; ?>;
862
- vertical-align: middle;
863
- width: inherit;
864
- }
865
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_album_thumbnails_<?php echo $bwg; ?> {
866
- display: inline-block;
867
- -moz-box-sizing: border-box;
868
- box-sizing: border-box;
869
- background-color: rgba(<?php echo $rgb_album_compact_thumbs_bg_color['red']; ?>, <?php echo $rgb_album_compact_thumbs_bg_color['green']; ?>, <?php echo $rgb_album_compact_thumbs_bg_color['blue']; ?>, <?php echo number_format($theme_row->album_compact_thumb_bg_transparent / 100, 2, ".", ""); ?>);
870
- font-size: 0;
871
- text-align: <?php echo $theme_row->album_compact_thumb_align; ?>;
872
- max-width: <?php echo $items_col_num * ($params['compuct_album_thumb_width'] + 2 * (2 + $theme_row->album_compact_thumb_margin + $theme_row->album_compact_thumb_padding + $theme_row->album_compact_thumb_border_width)); ?>px;
873
- }
874
-
875
- <?php if($album_view_type != 'mosaic'): ?>
876
- /* Style for masonry view.*/
877
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_masonry_thumbnails_<?php echo $bwg; ?> * {
878
- -moz-box-sizing: border-box;
879
- -webkit-box-sizing: border-box;
880
- box-sizing: border-box;
881
- }
882
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_masonry_thumb_<?php echo $bwg; ?> {
883
- visibility: hidden;
884
- text-align: center;
885
- display: inline-block;
886
- vertical-align: middle;
887
- width: <?php echo $params['compuct_album_image_thumb_width']; ?>px !important;
888
- border-radius: <?php echo $theme_row->masonry_thumb_border_radius; ?>;
889
- border: <?php echo $theme_row->masonry_thumb_border_width; ?>px <?php echo $theme_row->masonry_thumb_border_style; ?> #<?php echo $theme_row->masonry_thumb_border_color; ?>;
890
- background-color: #<?php echo $theme_row->thumb_bg_color; ?>;
891
- margin: 0;
892
- padding: <?php echo $theme_row->masonry_thumb_padding; ?>px !important;
893
- opacity: <?php echo number_format($theme_row->masonry_thumb_transparent / 100, 2, ".", ""); ?>;
894
- filter: Alpha(opacity=<?php echo $theme_row->masonry_thumb_transparent; ?>);
895
- <?php echo ($theme_row->masonry_thumb_transition) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
896
- z-index: 100;
897
- }
898
- /* #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_masonry_thumb_<?php echo $bwg; ?>:hover {
899
- opacity: 1;
900
- filter: Alpha(opacity=100);
901
- transform: <?php echo $theme_row->masonry_thumb_hover_effect; ?>(<?php echo $theme_row->masonry_thumb_hover_effect_value; ?>);
902
- -ms-transform: <?php echo $theme_row->masonry_thumb_hover_effect; ?>(<?php echo $theme_row->masonry_thumb_hover_effect_value; ?>);
903
- -webkit-transform: <?php echo $theme_row->masonry_thumb_hover_effect; ?>(<?php echo $theme_row->masonry_thumb_hover_effect_value; ?>);
904
- backface-visibility: hidden;
905
- -webkit-backface-visibility: hidden;
906
- -moz-backface-visibility: hidden;
907
- -ms-backface-visibility: hidden;
908
- z-index: 102;
909
- position: absolute;
910
- }*/
911
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_masonry_thumbnails_<?php echo $bwg; ?> {
912
- -moz-box-sizing: border-box;
913
- background-color: rgba(<?php echo $rgb_thumbs_bg_color['red']; ?>, <?php echo $rgb_thumbs_bg_color['green']; ?>, <?php echo $rgb_thumbs_bg_color['blue']; ?>, <?php echo number_format($theme_row->masonry_thumb_bg_transparent / 100, 2, ".", ""); ?>);
914
- box-sizing: border-box;
915
- display: inline-block;
916
- font-size: 0;
917
- /*width: <?php echo $params['compuct_album_image_column_number'] * ($params['compuct_album_image_thumb_width'] + 2 * ($theme_row->masonry_thumb_padding + $theme_row->masonry_thumb_border_width)); ?>px;*/
918
- width: 100%;
919
- position: relative;
920
- text-align: <?php echo $theme_row->masonry_thumb_align; ?>;
921
- }
922
- @media only screen and (max-width : <?php echo $params['compuct_album_image_column_number'] * ($params['compuct_album_image_thumb_width'] + 2 * ($theme_row->masonry_thumb_padding + $theme_row->masonry_thumb_border_width)); ?>px) {
923
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_masonry_thumbnails_<?php echo $bwg; ?> {
924
- width: inherit;
925
- }
926
- }
927
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_popup_overlay_<?php echo $bwg; ?> {
928
- background-color: #<?php echo $theme_row->lightbox_overlay_bg_color; ?>;
929
- opacity: <?php echo number_format($theme_row->lightbox_overlay_bg_transparent / 100, 2, ".", ""); ?>;
930
- filter: Alpha(opacity=<?php echo $theme_row->lightbox_overlay_bg_transparent; ?>);
931
- }
932
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_masonry_thumb_spun_<?php echo $bwg; ?> {
933
- position: absolute;
934
- }
935
- /*Image thumbs styles.*/
936
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_standart_thumb_spun1_<?php echo $bwg; ?> {
937
- background-color: #<?php echo $theme_row->thumb_bg_color; ?>;
938
- display: inline-block;
939
- height: <?php echo $params['compuct_album_image_thumb_height']; ?>px;
940
- margin: <?php echo $theme_row->thumb_margin; ?>px;
941
- opacity: <?php echo number_format($theme_row->thumb_transparent / 100, 2, ".", ""); ?>;
942
- filter: Alpha(opacity=<?php echo $theme_row->thumb_transparent; ?>);
943
- <?php echo ($theme_row->thumb_transition) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
944
- padding: <?php echo $theme_row->thumb_padding; ?>px;
945
- text-align: center;
946
- vertical-align: middle;
947
- width: <?php echo $params['compuct_album_image_thumb_width']; ?>px;
948
- z-index: 100;
949
- }
950
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_standart_thumb_spun1_<?php echo $bwg; ?>:hover {
951
- backface-visibility: hidden;
952
- -webkit-backface-visibility: hidden;
953
- -moz-backface-visibility: hidden;
954
- -ms-backface-visibility: hidden;
955
- opacity: 1;
956
- filter: Alpha(opacity=100);
957
- z-index: 102;
958
- position: relative;
959
- }
960
- @media only screen and (min-width: 480px) {
961
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_standart_thumb_spun1_<?php echo $bwg; ?>:hover {
962
- -ms-transform: <?php echo $theme_row->thumb_hover_effect; ?>(<?php echo $theme_row->thumb_hover_effect_value; ?>);
963
- -webkit-transform: <?php echo $theme_row->thumb_hover_effect; ?>(<?php echo $theme_row->thumb_hover_effect_value; ?>);
964
- transform: <?php echo $theme_row->thumb_hover_effect; ?>(<?php echo $theme_row->thumb_hover_effect_value; ?>);
965
- }
966
- }
967
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_standart_thumb_spun2_<?php echo $bwg; ?> {
968
- border-radius: <?php echo $theme_row->thumb_border_radius; ?>;
969
- border: <?php echo $theme_row->thumb_border_width; ?>px <?php echo $theme_row->thumb_border_style; ?> #<?php echo $theme_row->thumb_border_color; ?>;
970
- box-shadow: <?php echo $theme_row->thumb_box_shadow; ?>;
971
- display: inline-block;
972
- height: <?php echo $params['compuct_album_image_thumb_height']; ?>px;
973
- overflow: hidden;
974
- width: <?php echo $params['compuct_album_image_thumb_width']; ?>px;
975
- }
976
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_standart_thumbnails_<?php echo $bwg; ?> {
977
- -moz-box-sizing: border-box;
978
- display: inline-block;
979
- background-color: rgba(<?php echo $rgb_thumbs_bg_color['red']; ?>, <?php echo $rgb_thumbs_bg_color['green']; ?>, <?php echo $rgb_thumbs_bg_color['blue']; ?>, <?php echo number_format($theme_row->thumb_bg_transparent / 100, 2, ".", ""); ?>);
980
- box-sizing: border-box;
981
- font-size: 0;
982
- max-width: <?php echo $params['compuct_album_image_column_number'] * ($params['compuct_album_image_thumb_width'] + 2 * (2 + $theme_row->thumb_margin + $theme_row->thumb_padding + $theme_row->thumb_border_width)); ?>px;
983
- text-align: <?php echo $theme_row->thumb_align; ?>;
984
- }
985
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_standart_thumb_<?php echo $bwg; ?> {
986
- display: inline-block;
987
- text-align: center;
988
  }
989
  <?php
990
- if(function_exists('BWGEC')){
991
- if( $params['ecommerce_icon'] == 'show' ){
992
- ?>
993
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_ecommerce_spun1_<?php echo $bwg; ?>{
994
- display: block;
995
- margin: 0 auto;
996
- opacity: 1;
997
- filter: Alpha(opacity=100);
998
- text-align: right;
999
- width: <?php echo $params['compuct_album_image_thumb_width']; ?>px;
1000
- }
1001
- <?php
1002
- }
1003
- elseif ($params['ecommerce_icon'] == 'hover') { /* Show ecommerce icon on hover.*/
1004
- ?>
1005
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_ecommerce_spun1_<?php echo $bwg; ?> {
1006
- display: table;
1007
- height: inherit;
1008
- left: -3000px;
1009
- opacity: 0;
1010
- filter: Alpha(opacity=0);
1011
- position: absolute;
1012
- top: 0px;
1013
- width: inherit;
1014
- }
1015
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_standart_thumb_spun1_<?php echo $bwg; ?>:hover img{
1016
- opacity:0.5;
1017
- }
1018
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_standart_thumb_spun1_<?php echo $bwg; ?>:hover{
1019
- background:#000;
1020
- }
1021
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_ecommerce_spun1_<?php echo $bwg; ?>, #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_ecommerce_spun2_<?php echo $bwg; ?>, #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_ecommerce_spun2_<?php echo $bwg; ?> i{
1022
- opacity:1 !important;
1023
- font-size:20px !important;
1024
- z-index: 45;
1025
- }
1026
- <?php
1027
- }
1028
- }
1029
- if ($params['compuct_album_image_title'] == 'show') { /* Show image title at the bottom.*/
1030
- ?>
1031
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_title_spun1_<?php echo $bwg; ?> {
1032
- display: block;
1033
- margin: 0 auto;
1034
- opacity: 1;
1035
- filter: Alpha(opacity=100);
1036
- text-align: center;
1037
- width: <?php echo $params['compuct_album_thumb_width']; ?>px;
1038
  }
1039
- <?php
1040
- }
1041
- elseif ($params['compuct_album_image_title'] == 'hover') { /* Show image title on hover.*/
1042
- ?>
1043
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_title_spun1_<?php echo $bwg; ?> {
1044
- display: table;
1045
- height: inherit;
1046
- left: -3000px;
1047
- opacity: 0;
1048
- filter: Alpha(opacity=0);
1049
- position: absolute;
1050
- top: 0px;
1051
- width: inherit;
1052
  }
1053
- <?php
1054
  }
 
 
 
1055
  ?>
1056
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_standart_thumb_spun1_<?php echo $bwg; ?>:hover .bwg_image_title_spun1_<?php echo $bwg; ?>, #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_standart_thumb_spun1_<?php echo $bwg; ?>:hover .bwg_ecommerce_spun1_<?php echo $bwg; ?> {
1057
- left: <?php echo $theme_row->thumb_padding; ?>px;
1058
- top: <?php echo $theme_row->thumb_padding; ?>px;
1059
- opacity: 1;
1060
- filter: Alpha(opacity=100);
1061
- overflow : hidden;
1062
- display : inherit;
1063
- }
1064
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_title_spun2_<?php echo $bwg; ?>, #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_ecommerce_spun2_<?php echo $bwg; ?>{
1065
- color: #<?php echo $theme_row->thumb_title_font_color; ?>;
1066
- display: table-cell;
1067
- font-family: <?php echo $theme_row->thumb_title_font_style; ?>;
1068
- font-size: <?php echo $theme_row->thumb_title_font_size; ?>px;
1069
- font-weight: <?php echo $theme_row->thumb_title_font_weight; ?>;
1070
- height: inherit;
1071
- margin: <?php echo $theme_row->thumb_title_margin; ?>;
1072
- text-shadow: <?php echo $theme_row->thumb_title_shadow; ?>;
1073
- vertical-align: middle;
1074
- width: inherit;
1075
- word-wrap: break-word;
1076
- }
1077
- /*Pagination styles.*/
1078
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> {
1079
- text-align: <?php echo $theme_row->page_nav_align; ?>;
1080
- font-size: <?php echo $theme_row->page_nav_font_size; ?>px;
1081
- font-family: <?php echo $theme_row->page_nav_font_style; ?>;
1082
- font-weight: <?php echo $theme_row->page_nav_font_weight; ?>;
1083
- color: #<?php echo $theme_row->page_nav_font_color; ?>;
1084
- margin: 6px 0 4px;
1085
- display: block;
1086
- height: 30px;
1087
- line-height: 30px;
1088
- }
1089
- @media only screen and (max-width : 320px) {
1090
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .displaying-num_<?php echo $bwg; ?> {
1091
- display: none;
1092
- }
1093
- }
1094
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .displaying-num_<?php echo $bwg; ?> {
1095
- font-size: <?php echo $theme_row->page_nav_font_size; ?>px;
1096
- font-family: <?php echo $theme_row->page_nav_font_style; ?>;
1097
- font-weight: <?php echo $theme_row->page_nav_font_weight; ?>;
1098
- color: #<?php echo $theme_row->page_nav_font_color; ?>;
1099
- margin-right: 10px;
1100
- vertical-align: middle;
1101
- }
1102
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .paging-input_<?php echo $bwg; ?> {
1103
- font-size: <?php echo $theme_row->page_nav_font_size; ?>px;
1104
- font-family: <?php echo $theme_row->page_nav_font_style; ?>;
1105
- font-weight: <?php echo $theme_row->page_nav_font_weight; ?>;
1106
- color: #<?php echo $theme_row->page_nav_font_color; ?>;
1107
- vertical-align: middle;
1108
- }
1109
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> a.disabled,
1110
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> a.disabled:hover,
1111
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> a.disabled:focus {
1112
- cursor: default;
1113
- color: rgba(<?php echo $rgb_page_nav_font_color['red']; ?>, <?php echo $rgb_page_nav_font_color['green']; ?>, <?php echo $rgb_page_nav_font_color['blue']; ?>, 0.5);
1114
- }
1115
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> a {
1116
- cursor: pointer;
1117
- font-size: <?php echo $theme_row->page_nav_font_size; ?>px;
1118
- font-family: <?php echo $theme_row->page_nav_font_style; ?>;
1119
- font-weight: <?php echo $theme_row->page_nav_font_weight; ?>;
1120
- color: #<?php echo $theme_row->page_nav_font_color; ?>;
1121
- text-decoration: none;
1122
- padding: <?php echo $theme_row->page_nav_padding; ?>;
1123
- margin: <?php echo $theme_row->page_nav_margin; ?>;
1124
- border-radius: <?php echo $theme_row->page_nav_border_radius; ?>;
1125
- border-style: <?php echo $theme_row->page_nav_border_style; ?>;
1126
- border-width: <?php echo $theme_row->page_nav_border_width; ?>px;
1127
- border-color: #<?php echo $theme_row->page_nav_border_color; ?>;
1128
- background-color: #<?php echo $theme_row->page_nav_button_bg_color; ?>;
1129
- opacity: <?php echo number_format($theme_row->page_nav_button_bg_transparent / 100, 2, ".", ""); ?>;
1130
- filter: Alpha(opacity=<?php echo $theme_row->page_nav_button_bg_transparent; ?>);
1131
- box-shadow: <?php echo $theme_row->page_nav_box_shadow; ?>;
1132
- <?php echo ($theme_row->page_nav_button_transition ) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
1133
- }
1134
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_back_<?php echo $bwg; ?> {
1135
- background-color: rgba(0, 0, 0, 0);
1136
- color: #<?php echo $theme_row->album_compact_back_font_color; ?> !important;
1137
- cursor: pointer;
1138
- display: block;
1139
- font-family: <?php echo $theme_row->album_compact_back_font_style; ?>;
1140
- font-size: <?php echo $theme_row->album_compact_back_font_size; ?>px;
1141
- font-weight: <?php echo $theme_row->album_compact_back_font_weight; ?>;
1142
- text-decoration: none;
1143
- padding: <?php echo $theme_row->album_compact_back_padding; ?>;
1144
- }
1145
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_popup_overlay_<?php echo $bwg; ?> {
1146
- background-color: #<?php echo $theme_row->lightbox_overlay_bg_color; ?>;
1147
- opacity: <?php echo number_format($theme_row->lightbox_overlay_bg_transparent / 100, 2, ".", ""); ?>;
1148
- filter: Alpha(opacity=<?php echo $theme_row->lightbox_overlay_bg_transparent; ?>);
1149
- }
1150
- .bwg_play_icon_spun_<?php echo $bwg; ?> {
1151
- width: inherit;
1152
- height: inherit;
1153
- display: table;
1154
- position: absolute;
1155
- }
1156
- .bwg_play_icon_<?php echo $bwg; ?> {
1157
- color: #<?php echo $theme_row->thumb_title_font_color; ?>;
1158
- font-size: <?php echo 2 * $theme_row->thumb_title_font_size; ?>px;
1159
- vertical-align: middle;
1160
- display: table-cell !important;
1161
- z-index: 1;
1162
- text-align: center;
1163
- margin: 0 auto;
1164
- }
1165
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_masonry_thumb_description_<?php echo $bwg; ?> {
1166
- padding: 0 5px !important;
1167
- line-height: 1.4 !important;
1168
- font-size: <?php echo $theme_row->masonry_description_font_size; ?>px;
1169
- color: #<?php echo $theme_row->masonry_description_color; ?>;
1170
- font-family: <?php echo $theme_row->masonry_description_font_style; ?>;
1171
- text-align: center;
1172
- }
1173
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_masonry_thumb_spun_<?php echo $bwg; ?>:hover {
1174
- opacity: 1;
1175
- filter: Alpha(opacity=100);
1176
- backface-visibility: hidden;
1177
- -webkit-backface-visibility: hidden;
1178
- -moz-backface-visibility: hidden;
1179
- -ms-backface-visibility: hidden;
1180
- z-index: 102;
1181
- position: absolute;
1182
- }
1183
  @media only screen and (min-width: 480px) {
1184
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_masonry_thumb_spun_<?php echo $bwg; ?>:hover {
1185
- transform: <?php echo $theme_row->masonry_thumb_hover_effect; ?>(<?php echo $theme_row->masonry_thumb_hover_effect_value; ?>);
1186
- -ms-transform: <?php echo $theme_row->masonry_thumb_hover_effect; ?>(<?php echo $theme_row->masonry_thumb_hover_effect_value; ?>);
1187
- -webkit-transform: <?php echo $theme_row->masonry_thumb_hover_effect; ?>(<?php echo $theme_row->masonry_thumb_hover_effect_value; ?>);
1188
- }
1189
  }
1190
- <?php
1191
- /*for mosaic view of images*/
1192
- else :
1193
- ?>
1194
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_mosaic_thumb_<?php echo $bwg; ?> {
1195
- visibility: hidden;
1196
- display: block;
1197
- -moz-box-sizing: content-box !important;
1198
- -webkit-box-sizing: content-box !important;
1199
- box-sizing: content-box !important;
1200
- border-radius: <?php echo $theme_row->mosaic_thumb_border_radius; ?>;
1201
- border: <?php echo $theme_row->mosaic_thumb_border_width; ?>px <?php echo $theme_row->mosaic_thumb_border_style; ?> #<?php echo $theme_row->mosaic_thumb_border_color; ?>;
1202
- background-color: #<?php echo $theme_row->thumb_bg_color; ?>;
1203
- margin: 0;
1204
- padding: <?php echo $theme_row->mosaic_thumb_padding; ?>px !important;
1205
- opacity: <?php echo number_format($theme_row->mosaic_thumb_transparent / 100, 2, ".", ""); ?>;
1206
- filter: Alpha(opacity=<?php echo $theme_row->mosaic_thumb_transparent; ?>);
1207
- z-index: 100;
1208
- }
1209
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_mosaic_thumb_spun_<?php echo $bwg; ?>:hover {
1210
- opacity: 1;
1211
- filter: Alpha(opacity=100);
1212
- backface-visibility: hidden;
1213
- -webkit-backface-visibility: hidden;
1214
- -moz-backface-visibility: hidden;
1215
- -ms-backface-visibility: hidden;
1216
- z-index: 102;
1217
- position: absolute;
1218
  }
1219
- @media only screen and (min-width: 480px) {
1220
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_mosaic_thumb_spun_<?php echo $bwg; ?>:hover {
1221
- transform: <?php echo $theme_row->mosaic_thumb_hover_effect; ?>(<?php echo $theme_row->mosaic_thumb_hover_effect_value; ?>);
1222
- -ms-transform: <?php echo $theme_row->mosaic_thumb_hover_effect; ?>(<?php echo $theme_row->mosaic_thumb_hover_effect_value; ?>);
1223
- -webkit-transform: <?php echo $theme_row->mosaic_thumb_hover_effect; ?>(<?php echo $theme_row->mosaic_thumb_hover_effect_value; ?>);
1224
- }
1225
- }
1226
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_mosaic_thumbnails_<?php echo $bwg; ?> {
1227
- background-color: rgba(<?php echo $rgb_thumbs_bg_color['red']; ?>, <?php echo $rgb_thumbs_bg_color['green']; ?>, <?php echo $rgb_thumbs_bg_color['blue']; ?>, <?php echo number_format($theme_row->mosaic_thumb_bg_transparent / 100, 2, ".", ""); ?>);
1228
- font-size: 0;
1229
- position: relative;
1230
- text-align: <?php echo $theme_row->mosaic_thumb_align; ?>;
1231
- display: inline-block;
1232
- }
1233
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_mosaic_thumb_spun_<?php echo $bwg; ?> {
1234
- display:block;
1235
- position: absolute;
1236
- -moz-box-sizing: content-box !important;
1237
- -webkit-box-sizing: content-box !important;
1238
- box-sizing: content-box !important;
1239
  }
1240
- /*image title styles*/
1241
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_mosaic_title_spun1_<?php echo $bwg; ?> {
 
 
 
 
 
 
 
 
1242
  position: absolute;
1243
- display:block;
1244
- opacity: 0;
 
 
 
 
 
 
1245
  filter: Alpha(opacity=0);
1246
- left: -10000px;
1247
- top: 0px;
1248
- box-sizing:border-box;
1249
- text-align: center;
1250
- }
1251
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_mosaic_title_spun2_<?php echo $bwg; ?> {
1252
- color: #<?php echo $theme_row->mosaic_thumb_title_font_color; ?>;
1253
- font-family: <?php echo $theme_row->mosaic_thumb_title_font_style; ?>;
1254
- font-size: <?php echo $theme_row->mosaic_thumb_title_font_size; ?>px;
1255
- font-weight: <?php echo $theme_row->mosaic_thumb_title_font_weight; ?>;
1256
- text-shadow: <?php echo $theme_row->mosaic_thumb_title_shadow; ?>;
1257
- vertical-align: middle;
1258
- word-wrap: break-word;
1259
-
1260
- }
1261
- .bwg_mosaic_play_icon_spun_<?php echo $bwg; ?> {
1262
- display: table;
1263
- position: absolute;
1264
- left: -10000px;
1265
- top: 0px;
1266
  opacity: 0;
1267
- filter: Alpha(opacity=0);
1268
- }
1269
- .bwg_mosaic_play_icon_<?php echo $bwg; ?> {
1270
- color: #<?php echo $theme_row->mosaic_thumb_title_font_color; ?>;
1271
- font-size: <?php echo 2 * $theme_row->mosaic_thumb_title_font_size; ?>px;
1272
- vertical-align: middle;
1273
- display: table-cell !important;
1274
- z-index: 1;
1275
- text-align: center;
1276
- margin: 0 auto;
1277
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
1278
 
1279
- /*pagination styles*/
1280
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> {
1281
- text-align: <?php echo $theme_row->page_nav_align; ?>;
1282
- font-size: <?php echo $theme_row->page_nav_font_size; ?>px;
1283
- font-family: <?php echo $theme_row->page_nav_font_style; ?>;
1284
- font-weight: <?php echo $theme_row->page_nav_font_weight; ?>;
1285
- color: #<?php echo $theme_row->page_nav_font_color; ?>;
1286
- margin: 6px 0 4px;
1287
- display: block;
1288
- height: 30px;
1289
- line-height: 30px;
1290
- }
1291
- @media only screen and (max-width : 320px) {
1292
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .displaying-num_<?php echo $bwg; ?> {
1293
- display: none;
1294
- }
1295
- }
1296
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .displaying-num_<?php echo $bwg; ?> {
1297
- font-size: <?php echo $theme_row->page_nav_font_size; ?>px;
1298
- font-family: <?php echo $theme_row->page_nav_font_style; ?>;
1299
- font-weight: <?php echo $theme_row->page_nav_font_weight; ?>;
1300
- color: #<?php echo $theme_row->page_nav_font_color; ?>;
1301
- margin-right: 10px;
1302
- vertical-align: middle;
1303
- }
1304
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .paging-input_<?php echo $bwg; ?> {
1305
- font-size: <?php echo $theme_row->page_nav_font_size; ?>px;
1306
- font-family: <?php echo $theme_row->page_nav_font_style; ?>;
1307
- font-weight: <?php echo $theme_row->page_nav_font_weight; ?>;
1308
- color: #<?php echo $theme_row->page_nav_font_color; ?>;
1309
- vertical-align: middle;
1310
- }
1311
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> a.disabled,
1312
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> a.disabled:hover,
1313
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> a.disabled:focus {
1314
- cursor: default;
1315
- color: rgba(<?php echo $rgb_page_nav_font_color['red']; ?>, <?php echo $rgb_page_nav_font_color['green']; ?>, <?php echo $rgb_page_nav_font_color['blue']; ?>, 0.5);
1316
- }
1317
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> a {
1318
- cursor: pointer;
1319
- font-size: <?php echo $theme_row->page_nav_font_size; ?>px;
1320
- font-family: <?php echo $theme_row->page_nav_font_style; ?>;
1321
- font-weight: <?php echo $theme_row->page_nav_font_weight; ?>;
1322
- color: #<?php echo $theme_row->page_nav_font_color; ?>;
1323
- text-decoration: none;
1324
- padding: <?php echo $theme_row->page_nav_padding; ?>;
1325
- margin: <?php echo $theme_row->page_nav_margin; ?>;
1326
- border-radius: <?php echo $theme_row->page_nav_border_radius; ?>;
1327
- border-style: <?php echo $theme_row->page_nav_border_style; ?>;
1328
- border-width: <?php echo $theme_row->page_nav_border_width; ?>px;
1329
- border-color: #<?php echo $theme_row->page_nav_border_color; ?>;
1330
- background-color: #<?php echo $theme_row->page_nav_button_bg_color; ?>;
1331
- opacity: <?php echo number_format($theme_row->page_nav_button_bg_transparent / 100, 2, ".", ""); ?>;
1332
- filter: Alpha(opacity=<?php echo $theme_row->page_nav_button_bg_transparent; ?>);
1333
- box-shadow: <?php echo $theme_row->page_nav_box_shadow; ?>;
1334
- <?php echo ($theme_row->page_nav_button_transition ) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
1335
- }
1336
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_back_<?php echo $bwg; ?> {
1337
- background-color: rgba(0, 0, 0, 0);
1338
- color: #<?php echo $theme_row->album_compact_back_font_color; ?> !important;
1339
- cursor: pointer;
1340
- display: block;
1341
- font-family: <?php echo $theme_row->album_compact_back_font_style; ?>;
1342
- font-size: <?php echo $theme_row->album_compact_back_font_size; ?>px;
1343
- font-weight: <?php echo $theme_row->album_compact_back_font_weight; ?>;
1344
- text-decoration: none;
1345
- padding: <?php echo $theme_row->album_compact_back_padding; ?>;
1346
- }
1347
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_popup_overlay_<?php echo $bwg; ?> {
1348
- background-color: #<?php echo $theme_row->lightbox_overlay_bg_color; ?>;
1349
- opacity: <?php echo number_format($theme_row->lightbox_overlay_bg_transparent / 100, 2, ".", ""); ?>;
1350
- filter: Alpha(opacity=<?php echo $theme_row->lightbox_overlay_bg_transparent; ?>);
1351
- }
1352
- <?php
1353
- endif;/*for mosaic view or (thumbnail or masonry) view*/
1354
- ?>
1355
- @media screen and (max-width: <?php echo $params['compuct_album_thumb_width'] + 100; ?>px) {
1356
- div[class^="bwg_album_thumbnails_"],
1357
- span[class^="bwg_album_thumb_spun1_"],
1358
- span[class^="bwg_album_thumb_spun2_"],
1359
- span[class^="bwg_album_thumb_spun2_"] .bwg_img_custom
1360
- {
1361
- width: 100% !important;
1362
- height: auto !important;
1363
- }
1364
- span[class^="bwg_album_thumb_spun2_"] .bwg_img_custom {
1365
- margin:0px auto !important;
1366
- }
1367
- span[class^="bwg_title_spun1_"] {
1368
- width: 100% !important;
1369
- }
1370
- }
1371
- @media screen and (max-width: <?php echo $params['compuct_album_image_thumb_width'] + 100; ?>px) {
1372
- div[class^="bwg_standart_thumbnails_"],
1373
- span[class^="bwg_standart_thumb_spun1_"],
1374
- span[class^="bwg_standart_thumb_spun2_"],
1375
- span[class^="bwg_standart_thumb_spun2_"] .bwg_img_custom
1376
- {
1377
- width: 100% !important;
1378
- height: auto !important;
1379
- }
1380
- span[class^="bwg_standart_thumb_spun2_"] .bwg_img_custom {
1381
- margin: 0px auto !important;
1382
- }
1383
- }
1384
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_gal_title_<?php echo $bwg; ?> {
1385
- background-color: rgba(0, 0, 0, 0);
1386
- color: #<?php echo $theme_row->album_compact_gal_title_font_color; ?>;
1387
- display: block;
1388
- font-family: <?php echo $theme_row->album_compact_gal_title_font_style; ?>;
1389
- font-size: <?php echo $theme_row->album_compact_gal_title_font_size; ?>px;
1390
- font-weight: <?php echo $theme_row->album_compact_gal_title_font_weight; ?>;
1391
- padding: <?php echo $theme_row->album_compact_gal_title_margin; ?>;
1392
- text-shadow: <?php echo $theme_row->album_compact_gal_title_shadow; ?>;
1393
- text-align: <?php echo $theme_row->album_compact_gal_title_align; ?>;
1394
  }
1395
- <?php
1396
  return ob_get_clean();
1397
  }
1398
  }
1
  <?php
2
+ class BWGViewAlbum_compact_preview extends BWGViewSite {
 
 
3
 
4
+ private $gallery_view = FALSE;
 
 
5
 
6
+ public function display($params = array(), $bwg = 0) {
7
+ /* Gallery view class.*/
8
+ if ( $params['gallery_view_type'] == 'masonry' ) {
9
+ $gallery_type = 'Thumbnails_masonry';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  }
11
+ elseif ( $params['gallery_view_type'] == 'mosaic' ) {
12
+ $gallery_type = 'Thumbnails_mosaic';
13
  }
14
+ else {
15
+ $gallery_type = 'Thumbnails';
 
 
 
 
 
 
 
16
  }
17
+ require_once BWG()->plugin_dir . '/frontend/views/BWGView' . $gallery_type . '.php';
18
+ $view_class = 'BWGView' . $gallery_type;
19
+ $this->gallery_view = new $view_class();
20
 
21
+ $theme_row = $params['theme_row'];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
 
23
+ $from = (isset($params['from']) ? esc_html($params['from']) : 0);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
 
25
+ $breadcrumb_arr = array( 0 => array('id' => $params['album_gallery_id'], 'page' => isset($_REQUEST['page_number_' . $bwg]) ? (int) $_REQUEST['page_number_' . $bwg] : 1) );
26
+ $breadcrumb = isset($_REQUEST['bwg_album_breadcrumb_' . $bwg]) ? stripslashes(($_REQUEST['bwg_album_breadcrumb_' . $bwg])) : json_encode($breadcrumb_arr);
27
+ $params['breadcrumb_arr'] = json_decode($breadcrumb);
28
 
29
+ /* Set theme parameters for Gallery/Gallery group title/description.*/
30
+ $theme_row->thumb_gal_title_font_size = $theme_row->album_compact_gal_title_font_size;
31
+ $theme_row->thumb_gal_title_font_color = $theme_row->album_compact_gal_title_font_color;
32
+ $theme_row->thumb_gal_title_font_style = $theme_row->album_compact_gal_title_font_style;
33
+ $theme_row->thumb_gal_title_font_weight = $theme_row->album_compact_gal_title_font_weight;
34
+ $theme_row->thumb_gal_title_shadow = $theme_row->album_compact_gal_title_shadow;
35
+ $theme_row->thumb_gal_title_margin = $theme_row->album_compact_gal_title_margin;
36
+ $theme_row->thumb_gal_title_align = $theme_row->album_compact_gal_title_align;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
 
38
+ $inline_style = $this->inline_styles($bwg, $theme_row, $params);
39
+ if ( !WDWLibrary::elementor_is_active() ) {
40
+ if ( !$params['ajax'] ) {
41
+ if ( BWG()->options->use_inline_stiles_and_scripts ) {
42
+ wp_add_inline_style('bwg_frontend', $inline_style);
 
 
 
 
 
43
  }
44
+ else {
45
+ echo '<style id="bwg-style-' . $bwg . '">' . $inline_style . '</style>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  }
47
  }
 
 
 
48
  }
49
  else {
50
+ echo '<style id="bwg-style-' . $bwg . '">' . $inline_style . '</style>';
51
+ echo '<script id="bwg-script-' . $bwg .'">
52
+ jQuery(document).ready(function () {
53
+ bwg_main_ready();
54
+ });
55
+ </script>';
56
  }
57
+ ob_start();
58
+
59
+ if ( $params['album_view_type'] != 'gallery' ) {
60
+ ?>
61
+ <div data-max-count="<?php echo $params['items_col_num']; ?>"
62
+ data-thumbnail-width="<?php echo $params['compuct_album_thumb_width']; ?>"
63
+ data-bwg="<?php echo $bwg; ?>"
64
+ id="<?php echo $params['container_id']; ?>"
65
+ class="bwg-thumbnails bwg-container bwg-container-<?php echo $bwg; ?> bwg-album-thumbnails <?php echo $params['album_gallery_div_class']; ?>">
66
+ <?php
67
+ if ( !$params['album_gallery_rows']['page_nav']['total'] ) {
68
+ echo WDWLibrary::message(__('Album is empty.', BWG()->prefix), 'wd_error');
69
+ }
70
+ foreach ( $params['album_gallery_rows']['rows'] as $row ) {
71
+ $href = add_query_arg(array(
72
+ "type_" . $bwg => $row->def_type,
73
+ "album_gallery_id_" . $bwg => (($params['album_gallery_id'] != 0) ? $row->alb_gal_id : $row->id),
74
+ ), $_SERVER['REQUEST_URI']);
75
+ $title = '<div class="bwg-title1"><div class="bwg-title2">' . ($row->name ? $row->name : '&nbsp;') . '</div></div>';
76
+ ?>
77
+ <div class="bwg-item">
78
+ <a class="<?php echo $from !== "widget" ? 'bwg-album ' : ''; ?>bwg_album_<?php echo $bwg; ?>"
79
+ <?php echo (BWG()->options->enable_seo && $from !== "widget" ? "href='" . esc_url($href) . "'" : ""); ?>
80
+ <?php echo $from === "widget" ? 'href="' . $row->permalink . '"' : ''; ?>
81
+ data-container_id="<?php echo $params['container_id']; ?>"
82
+ data-def_type="<?php echo $row->def_type; ?>"
83
+ data-album_gallery_id="<?php echo $params['album_gallery_id']; ?>"
84
+ data-alb_gal_id="<?php echo (($params['album_gallery_id'] != 0) ? $row->alb_gal_id : $row->id); ?>"
85
+ data-title="<?php echo htmlspecialchars(addslashes($row->name)); ?>"
86
+ data-bwg="<?php echo $bwg; ?>">
87
+ <?php if ( $params['compuct_album_title'] == 'show' && $theme_row->album_compact_thumb_title_pos == 'top' ) { echo $title; } ?>
88
+ <div class="bwg-item0">
89
+ <div class="bwg-item1 <?php echo $theme_row->album_compact_thumb_hover_effect == 'zoom' && $params['compuct_album_title'] == 'hover' ? 'bwg-zoom-effect' : ''; ?>">
90
+ <div class="bwg-item2">
91
+ <img src="<?php echo $row->preview_image; ?>" alt="<?php echo $row->name; ?>" />
92
+ </div>
93
+ <div class="<?php echo $theme_row->album_compact_thumb_hover_effect == 'zoom' && $params['compuct_album_title'] == 'hover' ? 'bwg-zoom-effect-overlay' : ''; ?>">
94
+ <?php if ( $params['compuct_album_title'] == 'hover' ) { echo $title; } ?>
95
  </div>
96
  </div>
97
  </div>
98
+ <?php if ( $params['compuct_album_title'] == 'show' && $theme_row->album_compact_thumb_title_pos == 'bottom' ) { echo $title; } ?>
99
+ </a>
100
+ </div>
101
+ <?php
102
+ }
103
+ ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
  </div>
105
+ <?php
106
+ }
107
+ elseif ( $params['album_view_type'] == 'gallery' ) {
108
+ $theme_row->thumb_title_pos = $theme_row->album_compact_thumb_title_pos;
109
+ if ( $this->gallery_view && method_exists($this->gallery_view, 'display') ) {
110
+ $this->gallery_view->display($params, $bwg, TRUE);
 
 
 
 
 
111
  }
112
+ }
113
+ ?>
114
+ <input type="hidden" id="bwg_album_breadcrumb_<?php echo $bwg; ?>" name="bwg_album_breadcrumb_<?php echo $bwg; ?>" value='<?php echo $breadcrumb; ?>' />
115
+ <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
116
 
117
+ $content = ob_get_clean();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
118
 
119
+ if ( $params['ajax'] ) {/* Ajax response after ajax call for filters and pagination.*/
120
+ if ( $params['album_view_type'] != 'gallery' ) {
121
+ parent::ajax_content($params, $bwg, $content);
122
+ }
123
+ else {
124
+ echo $content;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
125
  }
 
 
 
 
 
 
 
 
 
126
  }
127
  else {
128
+ parent::container($params, $bwg, $content);
129
  }
130
  }
131
 
132
+ private function inline_styles($bwg, $theme_row, $params) {
133
  ob_start();
 
134
  $rgb_album_compact_thumbs_bg_color = WDWLibrary::spider_hex2rgb($theme_row->album_compact_thumbs_bg_color);
 
 
135
  ?>
136
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg-container-<?php echo $bwg; ?>.bwg-album-thumbnails {
137
+ width: <?php echo ($params['items_col_num'] * $params['compuct_album_thumb_width']) + ($theme_row->compact_container_margin ? $theme_row->album_compact_thumb_margin : 0); ?>px;
138
+ justify-content: <?php echo $theme_row->album_compact_thumb_align; ?>;
139
+ <?php
140
+ if ( $theme_row->album_compact_thumb_align == 'center' ) {
141
+ ?>
142
+ margin-left: auto;
143
+ margin-right: auto;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
  <?php
145
+ }
146
+ elseif ( $theme_row->album_compact_thumb_align == 'left') {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
147
  ?>
148
+ margin-right: auto;
149
+ <?php
150
+ }
151
+ else {
152
+ ?>
153
+ margin-left: auto;
154
+ <?php
155
+ }
156
+ ?>
157
+ background-color: rgba(<?php echo $rgb_album_compact_thumbs_bg_color['red']; ?>, <?php echo $rgb_album_compact_thumbs_bg_color['green']; ?>, <?php echo $rgb_album_compact_thumbs_bg_color['blue']; ?>, <?php echo number_format($theme_row->album_compact_thumb_bg_transparent / 100, 2, ".", ""); ?>);
158
+ <?php
159
+ if ( $theme_row->compact_container_margin ) {
160
+ ?>
161
+ padding-left: <?php echo $theme_row->album_compact_thumb_margin; ?>px;
162
+ padding-top: <?php echo $theme_row->album_compact_thumb_margin; ?>px;
163
+ max-width: 100%;
164
+ <?php
165
+ }
166
+ else {
167
+ ?>
168
+ margin-right: -<?php echo $theme_row->album_compact_thumb_margin; ?>px;
169
+ max-width: calc(100% + <?php echo $theme_row->album_compact_thumb_margin; ?>px);
170
+ <?php
171
+ }
172
+ ?>
173
+ }
174
+ <?php
175
+ if (!$theme_row->compact_container_margin && $theme_row->album_compact_thumb_margin) {
176
+ ?>
177
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg-background-<?php echo $bwg; ?>.bwg-album-thumbnails {
178
+ overflow: hidden;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
179
  }
180
  <?php
181
+ }
182
+ ?>
183
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg-container-<?php echo $bwg; ?>.bwg-album-thumbnails .bwg-item {
184
+ justify-content: <?php echo $theme_row->album_compact_thumb_title_pos == 'top'? 'flex-end' : 'flex-start'; ?>;
185
+ max-width: <?php echo $params['compuct_album_thumb_width']; ?>px;
186
+ <?php if ( !BWG()->options->resizable_thumbnails ) { ?>
187
+ width: <?php echo $params['compuct_album_thumb_width']; ?>px !important;
188
+ <?php } ?>
189
+ }
190
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg-container-<?php echo $bwg; ?>.bwg-album-thumbnails .bwg-item > a {
191
+ margin-right: <?php echo $theme_row->album_compact_thumb_margin; ?>px;
192
+ margin-bottom: <?php echo $theme_row->album_compact_thumb_margin; ?>px;
193
+ }
194
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg-container-<?php echo $bwg; ?>.bwg-album-thumbnails .bwg-item0 {
195
+ padding: <?php echo $theme_row->album_compact_thumb_padding; ?>px;
196
+ background-color: #<?php echo $theme_row->album_compact_thumb_bg_color; ?>;
197
+ border: <?php echo $theme_row->album_compact_thumb_border_width; ?>px <?php echo $theme_row->album_compact_thumb_border_style; ?> #<?php echo $theme_row->album_compact_thumb_border_color; ?>;
198
+ opacity: <?php echo number_format($theme_row->album_compact_thumb_transparent / 100, 2, ".", ""); ?>;
199
+ filter: Alpha(opacity=<?php echo $theme_row->album_compact_thumb_transparent; ?>);
200
+ border-radius: <?php echo $theme_row->album_compact_thumb_border_radius; ?>;
201
+ box-shadow: <?php echo $theme_row->album_compact_thumb_box_shadow; ?>;
202
+ }
203
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg-container-<?php echo $bwg; ?>.bwg-album-thumbnails .bwg-item1 img {
204
+ max-height: none;
205
+ max-width: none;
206
+ padding: 0 !important;
207
+ }
208
+ <?php if ( $theme_row->album_compact_thumb_hover_effect == 'zoom' ) { ?>
209
+ @media only screen and (min-width: 480px) {
210
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg-container-<?php echo $bwg; ?>.bwg-album-thumbnails .bwg-item1 img {
211
+ <?php echo ($theme_row->album_compact_thumb_transition) ? '-webkit-transition: all .3s; transition: all .3s;' : ''; ?>
212
+ }
213
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg-container-<?php echo $bwg; ?>.bwg-album-thumbnails .bwg-item1 img:hover {
214
+ -ms-transform: scale(<?php echo $theme_row->album_compact_thumb_hover_effect_value; ?>);
215
+ -webkit-transform: scale(<?php echo $theme_row->album_compact_thumb_hover_effect_value; ?>);
216
+ transform: scale(<?php echo $theme_row->album_compact_thumb_hover_effect_value; ?>);
217
+ }
218
+ <?php if ( $params['compuct_album_title'] == 'hover' ) { ?>
219
+ .bwg-album-thumbnails .bwg-zoom-effect .bwg-zoom-effect-overlay {
220
+ <?php $thumb_bg_color = WDWLibrary::spider_hex2rgb( $theme_row->album_compact_thumb_bg_color ); ?>
221
+ background-color:rgba(<?php echo $thumb_bg_color['red'] .','. $thumb_bg_color['green'] . ',' . $thumb_bg_color['blue'] . ', 0.3'; ?>);
 
 
 
 
 
 
 
222
  }
223
+ .bwg-album-thumbnails .bwg-zoom-effect:hover img {
224
+ -ms-transform: scale(<?php echo $theme_row->album_compact_thumb_hover_effect_value; ?>);
225
+ -webkit-transform: scale(<?php echo $theme_row->album_compact_thumb_hover_effect_value; ?>);
226
+ transform: scale(<?php echo $theme_row->album_compact_thumb_hover_effect_value; ?>);
 
 
 
 
 
 
 
 
 
227
  }
228
+ <?php } ?>
229
  }
230
+ <?php
231
+ }
232
+ else {
233
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
234
  @media only screen and (min-width: 480px) {
235
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg-container-<?php echo $bwg; ?>.bwg-album-thumbnails .bwg-item0 {
236
+ <?php echo ($theme_row->album_compact_thumb_transition) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
 
 
 
237
  }
238
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg-container-<?php echo $bwg; ?> .bwg-album-thumbnails .bwg-item0:hover {
239
+ -ms-transform: <?php echo $theme_row->album_compact_thumb_hover_effect; ?>(<?php echo $theme_row->album_compact_thumb_hover_effect_value; ?>);
240
+ -webkit-transform: <?php echo $theme_row->album_compact_thumb_hover_effect; ?>(<?php echo $theme_row->album_compact_thumb_hover_effect_value; ?>);
241
+ transform: <?php echo $theme_row->album_compact_thumb_hover_effect; ?>(<?php echo $theme_row->album_compact_thumb_hover_effect_value; ?>);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
242
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
243
  }
244
+ <?php
245
+ }
246
+ ?>
247
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg-container-<?php echo $bwg; ?>.bwg-album-thumbnails .bwg-item1 {
248
+ padding-top: <?php echo $params['compuct_album_thumb_height'] / $params['compuct_album_thumb_width'] * 100; ?>%;
249
+ }
250
+ <?php
251
+ /* Show image title on hover.*/
252
+ if ( $params['compuct_album_title'] == 'hover' ) { ?>
253
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg-container-<?php echo $bwg; ?>.bwg-album-thumbnails .bwg-title1 {
254
  position: absolute;
255
+ top: 0;
256
+ z-index: 100;
257
+ width: 100%;
258
+ height: 100%;
259
+ display: flex;
260
+ justify-content: center;
261
+ align-content: center;
262
+ flex-direction: column;
263
  filter: Alpha(opacity=0);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
264
  opacity: 0;
 
 
 
 
 
 
 
 
 
 
265
  }
266
+ <?php
267
+ }
268
+ ?>
269
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg-container-<?php echo $bwg; ?>.bwg-album-thumbnails .bwg-title2 {
270
+ color: #<?php echo ( $params['compuct_album_title'] == 'hover') ? (isset($theme_row->album_compact_title_font_color_hover) ? $theme_row->album_compact_title_font_color_hover : $theme_row->album_compact_title_font_color) : $theme_row->album_compact_title_font_color; ?>;
271
+ font-family: <?php echo $theme_row->album_compact_title_font_style; ?>;
272
+ font-size: <?php echo $theme_row->album_compact_title_font_size; ?>px;
273
+ font-weight: <?php echo $theme_row->album_compact_title_font_weight; ?>;
274
+ padding: <?php echo $theme_row->album_compact_title_margin; ?>;
275
+ text-shadow: <?php echo $theme_row->album_compact_title_shadow; ?>;
276
+ max-height: 100%;
277
+ }
278
+ <?php
279
 
280
+ /* Add gallery styles, if gallery type exist.*/
281
+ if ( $this->gallery_view && method_exists($this->gallery_view, 'inline_styles') ) {
282
+ /* Set parameters for gallery view from album shortcode.*/
283
+ $params['thumb_width'] = $params['compuct_album_image_thumb_width'];
284
+ $params['thumb_height'] = $params['compuct_album_image_thumb_height'];
285
+ $params['image_title'] = $params['compuct_album_image_title'];
286
+
287
+ $params['image_column_number'] = $params['compuct_album_image_column_number'];
288
+ $params['images_per_page'] = $params['compuct_album_images_per_page'];
289
+ $params['image_enable_page'] = $params['compuct_album_enable_page'];
290
+
291
+ $params['masonry_hor_ver'] = 'vertical';
292
+ $params['show_masonry_thumb_description'] = BWG()->options->show_masonry_thumb_description;
293
+
294
+ $params['mosaic_hor_ver'] = $params['compuct_album_mosaic_hor_ver'];
295
+ $params['resizable_mosaic'] = $params['compuct_album_resizable_mosaic'];
296
+ $params['mosaic_total_width'] = $params['compuct_album_mosaic_total_width'];
297
+
298
+ /* Set theme parameters for gallery view.*/
299
+ $theme_row->thumbs_bg_color = $theme_row->album_compact_thumbs_bg_color;
300
+ $theme_row->masonry_thumbs_bg_color = $theme_row->album_compact_thumbs_bg_color;
301
+ $theme_row->mosaic_thumbs_bg_color = $theme_row->album_compact_thumbs_bg_color;
302
+
303
+ $theme_row->container_margin = $theme_row->compact_container_margin;
304
+ $theme_row->masonry_container_margin = $theme_row->compact_container_margin;
305
+
306
+ $theme_row->thumb_margin = $theme_row->album_compact_thumb_margin;
307
+ $theme_row->masonry_thumb_padding = $theme_row->album_compact_thumb_margin;
308
+
309
+ $theme_row->thumb_padding = $theme_row->album_compact_thumb_padding;
310
+ $theme_row->mosaic_thumb_padding = $theme_row->album_compact_thumb_padding;
311
+
312
+ $theme_row->thumb_align = $theme_row->album_compact_thumb_align;
313
+ $theme_row->masonry_thumb_align = $theme_row->album_compact_thumb_align;
314
+ $theme_row->mosaic_thumb_align = $theme_row->album_compact_thumb_align;
315
+
316
+ $theme_row->thumb_bg_transparent = $theme_row->album_compact_thumb_bg_transparent;
317
+ $theme_row->masonry_thumb_transparent = $theme_row->album_compact_thumb_transparent;
318
+ $theme_row->mosaic_thumb_bg_transparent = $theme_row->album_compact_thumb_bg_transparent;
319
+
320
+ $theme_row->thumb_transparent = $theme_row->album_compact_thumb_transparent;
321
+ $theme_row->mosaic_thumb_transparent = $theme_row->album_compact_thumb_transparent;
322
+
323
+ $theme_row->thumb_title_pos = $theme_row->album_compact_thumb_title_pos;
324
+
325
+ $theme_row->thumb_bg_color = $theme_row->album_compact_thumb_bg_color;
326
+ $theme_row->masonry_thumbs_bg_color = $theme_row->album_compact_thumb_bg_color;
327
+
328
+ $theme_row->thumb_border_width = $theme_row->album_compact_thumb_border_width;
329
+ $theme_row->masonry_thumb_border_width = $theme_row->album_compact_thumb_border_width;
330
+ $theme_row->mosaic_thumb_border_width = $theme_row->album_compact_thumb_border_width;
331
+
332
+ $theme_row->thumb_border_style = $theme_row->album_compact_thumb_border_style;
333
+ $theme_row->masonry_thumb_border_style = $theme_row->album_compact_thumb_border_style;
334
+ $theme_row->mosaic_thumb_border_style = $theme_row->album_compact_thumb_border_style;
335
+
336
+ $theme_row->thumb_border_color = $theme_row->album_compact_thumb_border_color;
337
+ $theme_row->masonry_thumb_border_color = $theme_row->album_compact_thumb_border_color;
338
+ $theme_row->mosaic_thumb_border_color = $theme_row->album_compact_thumb_border_color;
339
+
340
+ $theme_row->thumb_border_radius = $theme_row->album_compact_thumb_border_radius;
341
+ $theme_row->masonry_thumb_border_radius = $theme_row->album_compact_thumb_border_radius;
342
+ $theme_row->mosaic_thumb_border_radius = $theme_row->album_compact_thumb_border_radius;
343
+
344
+ $theme_row->thumb_box_shadow = $theme_row->album_compact_thumb_box_shadow;
345
+
346
+ $theme_row->thumb_hover_effect = $theme_row->album_compact_thumb_hover_effect;
347
+ $theme_row->masonry_thumb_hover_effect = $theme_row->album_compact_thumb_hover_effect;
348
+ $theme_row->mosaic_thumb_hover_effect = $theme_row->album_compact_thumb_hover_effect;
349
+
350
+ $theme_row->thumb_transition = $theme_row->album_compact_thumb_transition;
351
+ $theme_row->masonry_thumb_transition = $theme_row->album_compact_thumb_transition;
352
+ $theme_row->mosaic_thumb_transition = $theme_row->album_compact_thumb_transition;
353
+
354
+ $theme_row->thumb_hover_effect_value = $theme_row->album_compact_thumb_hover_effect_value;
355
+ $theme_row->masonry_thumb_hover_effect_value = $theme_row->album_compact_thumb_hover_effect_value;
356
+ $theme_row->mosaic_thumb_hover_effect_value = $theme_row->album_compact_thumb_hover_effect_value;
357
+
358
+ $theme_row->thumb_title_font_color_hover = $theme_row->album_compact_title_font_color_hover;
359
+ $theme_row->thumb_title_font_color = $theme_row->album_compact_title_font_color;
360
+ $theme_row->masonry_thumb_title_font_color_hover = $theme_row->album_compact_title_font_color_hover;
361
+ $theme_row->masonry_thumb_title_font_color = $theme_row->album_compact_title_font_color;
362
+ $theme_row->mosaic_thumb_title_font_color = $theme_row->album_compact_title_font_color;
363
+ $theme_row->mosaic_thumb_title_font_color = $theme_row->album_compact_title_font_color;
364
+
365
+ $theme_row->thumb_title_font_style = $theme_row->album_compact_title_font_style;
366
+ $theme_row->masonry_thumb_title_font_style = $theme_row->album_compact_title_font_style;
367
+ $theme_row->mosaic_thumb_title_font_style = $theme_row->album_compact_title_font_style;
368
+
369
+ $theme_row->thumb_title_font_size = $theme_row->album_compact_title_font_size;
370
+ $theme_row->masonry_thumb_title_font_size = $theme_row->album_compact_title_font_size;
371
+ $theme_row->mosaic_thumb_title_font_size = $theme_row->album_compact_title_font_size;
372
+
373
+ $theme_row->thumb_title_font_weight = $theme_row->album_compact_title_font_weight;
374
+ $theme_row->masonry_thumb_title_font_weight = $theme_row->album_compact_title_font_weight;
375
+ $theme_row->mosaic_thumb_title_font_weight = $theme_row->album_compact_title_font_weight;
376
+
377
+ $theme_row->thumb_title_shadow = $theme_row->album_compact_title_shadow;
378
+ $theme_row->mosaic_thumb_title_shadow = $theme_row->album_compact_title_shadow;
379
+
380
+ echo $this->gallery_view->inline_styles($bwg, $theme_row, $params);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
381
  }
382
+
383
  return ob_get_clean();
384
  }
385
  }
frontend/views/BWGViewAlbum_extended_preview.php CHANGED
@@ -1,754 +1,200 @@
1
  <?php
2
- class BWGViewAlbum_extended_preview {
3
- public function display($params = array(), $from_shortcode = 0, $bwg = 0) {
4
- require_once(BWG()->plugin_dir . '/framework/WDWLibrary.php');
5
 
6
- $order_by = $params['order_by'];
7
- $theme_id = $params['theme_id'];
8
- $album_view_type = $params['extended_album_view_type'];
9
- $image_right_click = isset(BWG()->options->image_right_click) ? BWG()->options->image_right_click : 0;
10
- $placeholder = $params['placeholder'];
11
- $gallery_download = $params['gallery_download'];
12
- $play_icon = $params['play_icon'];
13
 
14
- $theme_row = WDWLibrary::get_theme_row_data($theme_id);
15
- if (!$theme_row) {
16
- echo WDWLibrary::message(__('There is no theme selected or the theme was deleted.', BWG()->prefix), 'wd_error');
17
- return;
18
  }
19
- if (!isset($theme_row->album_extended_gal_title_font_color)) {
20
- $theme_row->album_extended_gal_title_font_color = 'CCCCCC';
21
- }
22
- if (!isset($theme_row->album_extended_gal_title_font_style)) {
23
- $theme_row->album_extended_gal_title_font_style = 'segoe ui';
24
- }
25
- if (!isset($theme_row->album_extended_gal_title_font_size)) {
26
- $theme_row->album_extended_gal_title_font_size = 16;
27
- }
28
- if (!isset($theme_row->album_extended_gal_title_font_weight)) {
29
- $theme_row->album_extended_gal_title_font_weight = 'bold';
30
- }
31
- if (!isset($theme_row->album_extended_gal_title_margin)) {
32
- $theme_row->album_extended_gal_title_margin = '2px';
33
- }
34
- if (!isset($theme_row->album_extended_gal_title_shadow)) {
35
- $theme_row->album_extended_gal_title_shadow = '0px 0px 0px #888888';
36
- }
37
- if (!isset($theme_row->album_extended_gal_title_align)) {
38
- $theme_row->album_extended_gal_title_align = 'center';
39
- }
40
- $type = (isset($_REQUEST['type_' . $bwg]) ? esc_html($_REQUEST['type_' . $bwg]) : 'album');
41
- $bwg_search = ((isset($_POST['bwg_search_' . $bwg]) && esc_html($_POST['bwg_search_' . $bwg]) != '') ? esc_html($_POST['bwg_search_' . $bwg]) : '');
42
- $album_gallery_id = (isset($_REQUEST['album_gallery_id_' . $bwg]) ? esc_html($_REQUEST['album_gallery_id_' . $bwg]) : $params['album_id']);
43
- if ($type == 'album' && !WDWLibrary::get_album_row_data($album_gallery_id, FALSE)) {
44
- echo WDWLibrary::message(__('There is no album selected or the gallery was deleted.', BWG()->prefix), 'wd_error');
45
- return;
46
- }
47
- if ($type == 'gallery') {
48
- $items_per_page = $params['extended_album_images_per_page'];
49
- $items_per_page_arr = array('images_per_page' => $params['extended_album_images_per_page'], 'load_more_image_count' => $params['extended_album_images_per_page']);
50
- $items_col_num = $params['extended_album_image_column_number'];
51
- if (isset($_POST['sortImagesByValue_' . $bwg])) {
52
- $sort_by = esc_html($_POST['sortImagesByValue_' . $bwg]);
53
- if ($sort_by == 'random') {
54
- $params['sort_by'] = 'RAND()';
55
- }
56
- else if ($sort_by == 'default') {
57
- $params['sort_by'] = $params['sort_by'];
58
- }
59
- else {
60
- $params['sort_by'] = $sort_by;
61
- }
62
- }
63
- $image_rows = WDWLibrary::get_image_rows_data($album_gallery_id, $bwg, 'album_extended', 'bwg_tag_id_bwg_album_extended_' . $bwg, '', $items_per_page, $params['extended_album_images_per_page'], $params['sort_by'], $order_by);
64
- $page_nav = $image_rows['page_nav'];
65
- $image_rows = $image_rows['images'];
66
- $images_count = count($image_rows);
67
- if (!$images_count) {
68
- echo WDWLibrary::message(__('There are no images in this gallery.', BWG()->prefix), 'wd_error');
69
- }
70
- $album_gallery_div_id = 'bwg_album_extended_' . $bwg;
71
- $album_gallery_div_class = 'bwg_standart_thumbnails_' . $bwg;
72
  }
73
  else {
74
- $items_per_page = $params['extended_albums_per_page'];
75
- $items_per_page_arr = array('images_per_page' => $params['extended_albums_per_page'], 'load_more_image_count' => $params['extended_albums_per_page']);
76
- $items_col_num = 1;
77
- $pagination_type = $params['extended_album_enable_page'];
78
- $album_galleries_row = WDWLibrary::get_alb_gals_row( $bwg, $album_gallery_id, $items_per_page, 'order', $pagination_type);
79
- $page_nav = $album_galleries_row['page_nav'];
80
- $album_galleries_row = $album_galleries_row['rows'];
81
- if (!$album_galleries_row) {
82
- echo WDWLibrary::message(__('There is no album selected or the gallery was deleted.', BWG()->prefix), 'wd_error');
83
- return;
84
- }
85
- $album_gallery_div_id = 'bwg_album_extended_' . $bwg;
86
- $album_gallery_div_class = 'bwg_album_extended_thumbnails_' . $bwg;
87
  }
 
 
 
88
 
89
- if ($type == 'gallery' ) {
90
- if($album_view_type == 'masonry') {
91
- $form_child_div_id = 'bwg_masonry_thumbnails_div_' . $bwg;
92
- $form_child_div_style = 'background-color:rgba(0, 0, 0, 0); position:relative; text-align:' . $theme_row->masonry_thumb_align . '; width:100%;';
93
- $album_gallery_div_id = 'bwg_masonry_thumbnails_' . $bwg;
94
- $album_gallery_div_class = 'bwg_masonry_thumbnails_' . $bwg;
95
- }
96
- else if($album_view_type == 'mosaic'){
97
- $form_child_div_id = 'bwg_mosaic_thumbnails_div_' . $bwg;
98
- $form_child_div_style = 'background-color:rgba(0, 0, 0, 0); position:relative; text-align:' . $theme_row->mosaic_thumb_align . '; width:100%;';
99
- $album_gallery_div_id = 'bwg_mosaic_thumbnails_' . $bwg;
100
- $album_gallery_div_class = 'bwg_mosaic_thumbnails_' . $bwg;
101
- }
102
- else {
103
- $form_child_div_style = 'background-color:rgba(0, 0, 0, 0); position:relative; text-align:' . $theme_row->thumb_align . '; width:100%;';
104
- $form_child_div_id = '';
105
- }
106
- }
107
- else {
108
- $form_child_div_id = '';
109
- $form_child_div_style = 'background-color:rgba(0, 0, 0, 0); position:relative; text-align:' . $theme_row->album_extended_thumb_align . '; width:100%;';
110
- }
111
 
112
- $bwg_previous_album_id = (isset($_REQUEST['bwg_previous_album_id_' . $bwg]) ? esc_html($_REQUEST['bwg_previous_album_id_' . $bwg]) : $params['album_id']);
113
- $bwg_previous_album_page_number = (isset($_REQUEST['bwg_previous_album_page_number_' . $bwg]) ? esc_html($_REQUEST['bwg_previous_album_page_number_' . $bwg]) : 0);
114
-
115
- $params_array = array(
116
- 'action' => 'GalleryBox',
117
- 'current_view' => $bwg,
118
- 'theme_id' => $params['theme_id'],
119
- 'thumb_width' => $params['extended_album_image_thumb_width'],
120
- 'thumb_height' => $params['extended_album_image_thumb_height'],
121
- 'open_with_fullscreen' => $params['popup_fullscreen'],
122
- 'open_with_autoplay' => $params['popup_autoplay'],
123
- 'image_width' => $params['popup_width'],
124
- 'image_height' => $params['popup_height'],
125
- 'image_effect' => $params['popup_effect'],
126
- 'wd_sor' => $params['sort_by'],
127
- 'wd_ord' => $params['order_by'],
128
- 'enable_image_filmstrip' => $params['popup_enable_filmstrip'],
129
- 'image_filmstrip_height' => $params['popup_filmstrip_height'],
130
- 'enable_image_ctrl_btn' => $params['popup_enable_ctrl_btn'],
131
- 'enable_image_fullscreen' => $params['popup_enable_fullscreen'],
132
- 'popup_enable_info' => $params['popup_enable_info'],
133
- 'popup_info_always_show' => $params['popup_info_always_show'],
134
- 'popup_info_full_width' => $params['popup_info_full_width'],
135
- 'popup_hit_counter' => $params['popup_hit_counter'],
136
- 'popup_enable_rate' => $params['popup_enable_rate'],
137
- 'slideshow_interval' => $params['popup_interval'],
138
- 'enable_comment_social' => $params['popup_enable_comment'],
139
- 'enable_image_facebook' => $params['popup_enable_facebook'],
140
- 'enable_image_twitter' => $params['popup_enable_twitter'],
141
- 'enable_image_google' => $params['popup_enable_google'],
142
- 'enable_image_pinterest' => $params['popup_enable_pinterest'],
143
- 'enable_image_tumblr' => $params['popup_enable_tumblr'],
144
- 'watermark_type' => $params['watermark_type'],
145
- 'slideshow_effect_duration' => isset($params['popup_effect_duration']) ? $params['popup_effect_duration'] : 1,
146
- 'popup_enable_email' => $params['popup_enable_email'],
147
- 'popup_enable_captcha' => $params['popup_enable_captcha'],
148
- 'comment_moderation' => $params['comment_moderation'],
149
- 'autohide_lightbox_navigation' => $params['autohide_lightbox_navigation'],
150
- 'popup_enable_fullsize_image' => $params['popup_enable_fullsize_image'],
151
- 'popup_enable_download' => $params['popup_enable_download'],
152
- 'show_image_counts' => $params['show_image_counts'],
153
- 'enable_loop' => $params['enable_loop'],
154
- 'enable_addthis' => $params['enable_addthis'],
155
- 'addthis_profile_id' => $params['addthis_profile_id']
156
  );
157
- if ( BWG()->is_pro ) {
158
- $current_url = (is_ssl() ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
159
- $params_array['current_url'] = urlencode($current_url);
160
- $params_array['enable_image_ecommerce'] = $params['popup_enable_ecommerce'];
161
- $params_array['ecommerce_icon'] = $params['ecommerce_icon'];
162
- }
163
- if ($params['watermark_type'] != 'none') {
164
- $params_array['watermark_link'] = $params['watermark_link'];
165
- $params_array['watermark_opacity'] = $params['watermark_opacity'];
166
- $params_array['watermark_position'] = $params['watermark_position'];
167
- }
168
- if ($params['watermark_type'] == 'text') {
169
- $params_array['watermark_text'] = $params['watermark_text'];
170
- $params_array['watermark_font_size'] = $params['watermark_font_size'];
171
- $params_array['watermark_font'] = $params['watermark_font'];
172
- $params_array['watermark_color'] = $params['watermark_color'];
173
- }
174
- elseif ($params['watermark_type'] == 'image') {
175
- $params_array['watermark_url'] = $params['watermark_url'];
176
- $params_array['watermark_width'] = $params['watermark_width'];
177
- $params_array['watermark_height'] = $params['watermark_height'];
178
- }
179
- $tags_rows = WDWLibrary::get_tags_rows_data($album_gallery_id);
180
- $inline_style = $this->inline_styles($bwg, $theme_row, $params, $album_view_type);
181
- if (BWG()->options->use_inline_stiles_and_scripts) {
182
- wp_enqueue_style('bwg_frontend');
183
- wp_add_inline_style('bwg_frontend', $inline_style);
184
- wp_enqueue_style('bwg_font-awesome');
185
- wp_enqueue_style('bwg_mCustomScrollbar');
186
- wp_enqueue_style('bwg_googlefonts');
187
- if (isset($params['show_tag_box']) && $params['show_tag_box']) {
188
- wp_enqueue_style('bwg_sumoselect');
189
- if (!wp_script_is('bwg_sumoselect', 'done')) {
190
- wp_print_scripts('bwg_sumoselect');
191
- }
192
- }
193
- if (!wp_script_is('bwg_frontend', 'done')) {
194
- wp_print_scripts('bwg_frontend');
195
- }
196
- if ($params['thumb_click_action'] == 'open_lightbox') {
197
- if (!wp_script_is('bwg_mCustomScrollbar', 'done')) {
198
- wp_print_scripts('bwg_mCustomScrollbar');
199
- }
200
- if (!wp_script_is('jquery-fullscreen', 'done')) {
201
- wp_print_scripts('jquery-fullscreen');
202
- }
203
- if (!wp_script_is('bwg_gallery_box', 'done')) {
204
- wp_print_scripts('bwg_gallery_box');
205
  }
206
- if ( BWG()->is_pro && !wp_script_is('bwg_raty', 'done')) {
207
- wp_print_scripts('bwg_raty');
208
  }
209
  }
210
- if (!wp_script_is('bwg_jquery_mobile', 'done')) {
211
- wp_print_scripts('bwg_jquery_mobile');
212
- }
213
  }
214
  else {
215
- echo '<style>' . $inline_style . '</style>';
 
 
 
 
 
216
  }
217
- ?>
218
- <div id="bwg_container1_<?php echo $bwg; ?>">
219
- <div id="bwg_container2_<?php echo $bwg; ?>">
220
- <form id="gal_front_form_<?php echo $bwg; ?>" method="post" action="#" data-current="<?php echo $bwg; ?>">
221
- <?php
222
- if ($params['show_search_box'] && $type == 'gallery') {
223
- WDWLibrary::ajax_html_frontend_search_box('gal_front_form_' . $bwg, $bwg, $album_gallery_div_id, $images_count, $params['search_box_width'], $placeholder);
224
- }
225
- if (isset($params['show_sort_images']) && $params['show_sort_images'] && $type == 'gallery') {
226
- WDWLibrary::ajax_html_frontend_sort_box('gal_front_form_' . $bwg, $bwg, $album_gallery_div_id, $params['sort_by'], $params['search_box_width']);
227
- }
228
- if (isset($params['show_tag_box']) && $params['show_tag_box'] && $type == 'gallery') {
229
- WDWLibrary::ajax_html_frontend_search_tags('gal_front_form_' . $bwg, $bwg, $album_gallery_div_id, $images_count, $tags_rows);
230
- }
231
- ?>
232
- <div id="<?php echo $form_child_div_id; ?>" style="<?php echo $form_child_div_style; ?>">
233
- <div id="ajax_loading_<?php echo $bwg; ?>" style="position:absolute;width: 100%; z-index: 115; text-align: center; height: 100%; vertical-align: middle; display: none;">
234
- <div style="display: table; vertical-align: middle; width: 100%; height: 100%; background-color:#FFFFFF; opacity:0.7; filter:Alpha(opacity=70);">
235
- <div style="display: table-cell; text-align: center; position: relative; vertical-align: middle;" >
236
- <div id="loading_div_<?php echo $bwg; ?>" class="bwg_spider_ajax_loading" style="display: inline-block; text-align:center; position:relative; vertical-align:middle; background-image:url(<?php echo BWG()->plugin_url . '/images/ajax_loader.png'; ?>); float: none; width:30px;height:30px;background-size:30px 30px;">
237
- </div>
238
- </div>
239
- </div>
240
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
241
  <?php
242
- if ($params['extended_album_enable_page'] && $items_per_page && ($theme_row->page_nav_position == 'top') && $page_nav['total']) {
243
- WDWLibrary::ajax_html_frontend_page_nav($theme_row, $page_nav['total'], $page_nav['limit'], 'gal_front_form_' . $bwg, $items_per_page_arr, $bwg, $album_gallery_div_id, $params['album_id'], $type, BWG()->options->enable_seo, $params['extended_album_enable_page']);
244
- }
245
- if ($bwg_previous_album_id != $params['album_id']) {
246
  ?>
247
- <a class="bwg_back_<?php echo $bwg; ?>" onclick="spider_frontend_ajax('gal_front_form_<?php echo $bwg; ?>', '<?php echo $bwg; ?>', '<?php echo $album_gallery_div_id; ?>', 'back', '', 'album')"><?php echo __('Back', BWG()->prefix); ?></a>
 
 
 
 
 
 
 
 
 
248
  <?php
249
  }
250
- if ($params['show_album_name']) {
251
- ?>
252
- <div class="bwg_gal_title_<?php echo $bwg; ?>" ><?php echo $params['album_title']; ?></div>
253
- <?php
254
- }
255
- if ($params['show_gallery_description'] && $params['description'] != '') {
256
  ?>
257
- <span class="bwg_description_spun1_<?php echo $bwg; ?> bwg_gal_description">
258
- <span class="bwg_description_short_<?php echo $bwg; ?>">
259
- <?php echo $params['description']; ?>
260
- </span>
 
 
 
 
261
  </span>
262
- <?php
263
- }
264
-
265
- if (!$page_nav['total']) {
266
- if ($bwg_search != '') {
267
- ?>
268
- <span class="bwg_back_<?php echo $bwg; ?>"><?php echo __('There are no images matching your search.', BWG()->prefix); ?></span>
269
  <?php
270
  }
271
  else {
272
  ?>
273
- <span class="bwg_back_<?php echo $bwg; ?>"><?php echo __('Gallery is empty.', BWG()->prefix); ?></span>
274
- <?php
275
- }
276
- }
277
- ?>
278
- <div id="<?php echo $album_gallery_div_id; ?>" class="<?php echo $album_gallery_div_class; ?>">
279
- <input type="hidden" id="bwg_previous_album_id_<?php echo $bwg; ?>" name="bwg_previous_album_id_<?php echo $bwg; ?>" value="<?php echo $bwg_previous_album_id; ?>" />
280
- <input type="hidden" id="bwg_previous_album_page_number_<?php echo $bwg; ?>" name="bwg_previous_album_page_number_<?php echo $bwg; ?>" value="<?php echo $bwg_previous_album_page_number; ?>" />
281
- <?php
282
- if ($type != 'gallery') {
283
- if (!$page_nav['total']) {
284
- ?>
285
- <span class="bwg_back_<?php echo $bwg; ?>"><?php echo __('Album is empty.', BWG()->prefix); ?></span>
286
- <?php
287
- }
288
- foreach ($album_galleries_row as $album_galallery_row) {
289
- // Check if selected All Galleries
290
- if( $album_gallery_id ) {
291
- if ($album_galallery_row->is_album) {
292
- $album_row = WDWLibrary::get_album_row_data($album_galallery_row->alb_gal_id, FALSE);
293
- if (!$album_row) {
294
- continue;
295
- }
296
- $preview_image = $album_row->preview_image;
297
- if (!$preview_image) {
298
- $preview_image = $album_row->random_preview_image;
299
- }
300
- $def_type = 'album';
301
- $title = $album_row->name;
302
- $description = wpautop($album_row->description);
303
- } else {
304
- $gallery_row = WDWLibrary::get_gallery_row_data($album_galallery_row->alb_gal_id);
305
- if (!$gallery_row) {
306
- continue;
307
- }
308
- $preview_image = $gallery_row->preview_image;
309
- if (!$preview_image) {
310
- $preview_image = $gallery_row->random_preview_image;
311
- }
312
- $def_type = 'gallery';
313
- $title = $gallery_row->name;
314
- $description = wpautop($gallery_row->description);
315
- }
316
- } else {
317
- $preview_image = $album_galallery_row->preview_image;
318
- if (!$preview_image) {
319
- $preview_image = $album_galallery_row->random_preview_image;
320
- }
321
- $def_type = 'gallery';
322
- $title = $album_galallery_row->name;
323
- $description = wpautop($album_galallery_row->description);
324
- }
325
- $local_preview_image = true;
326
- $parsed_prev_url = parse_url($preview_image, PHP_URL_SCHEME);
327
-
328
- if($parsed_prev_url =='http' || $parsed_prev_url =='https'){
329
- $local_preview_image = false;
330
- }
331
-
332
- if (!$preview_image) {
333
- $preview_url = BWG()->plugin_url . '/images/no-image.png';
334
- $preview_path = BWG()->plugin_dir . '/images/no-image.png';
335
- }
336
- else {
337
- if($local_preview_image){
338
- $preview_url = BWG()->upload_url . $preview_image;
339
- $preview_path = BWG()->upload_dir . $preview_image;
340
- }
341
- else{
342
- $preview_url = $preview_image;
343
- $preview_path = $preview_image;
344
- }
345
- }
346
- if($local_preview_image){
347
- $preview_path_url = htmlspecialchars_decode($preview_path, ENT_COMPAT | ENT_QUOTES);
348
- $preview_path_url = explode('?bwg', $preview_path_url);
349
- list($image_thumb_width, $image_thumb_height) = getimagesize($preview_path_url[0]);
350
- $scale = max($params['extended_album_thumb_width'] / $image_thumb_width, $params['extended_album_thumb_height'] / $image_thumb_height);
351
- $image_thumb_width *= $scale;
352
- $image_thumb_height *= $scale;
353
- $thumb_left = ($params['extended_album_thumb_width'] - $image_thumb_width) / 2;
354
- $thumb_top = ($params['extended_album_thumb_height'] - $image_thumb_height) / 2;
355
- }
356
- else{
357
- $image_thumb_width = $params['extended_album_thumb_width'];
358
- $image_thumb_height = $params['extended_album_thumb_height'];
359
- $thumb_left = 0;
360
- $thumb_top = 0;
361
- }
362
- ?>
363
- <div class="bwg_album_extended_div_<?php echo $bwg; ?>">
364
- <div class="bwg_album_extended_thumb_div_<?php echo $bwg; ?>">
365
- <a class="bwg_album_<?php echo $bwg; ?>" <?php echo (BWG()->options->enable_seo ? 'href="' . esc_url(add_query_arg(array("type_" . $bwg => $def_type, "album_gallery_id_" . $bwg => (($album_gallery_id != 0) ? $album_galallery_row->alb_gal_id : $album_galallery_row->id), "bwg_previous_album_id_" . $bwg => $album_gallery_id . ',' . $bwg_previous_album_id , "bwg_previous_album_page_number_" . $bwg => (isset($_REQUEST['page_number_' . $bwg]) ? esc_html($_REQUEST['page_number_' . $bwg]) : 0) . ',' . $bwg_previous_album_page_number), $_SERVER['REQUEST_URI'])) . '"' : ''); ?> style="font-size: 0;" data-alb_gal_id="<?php echo (($album_gallery_id != 0) ? $album_galallery_row->alb_gal_id : $album_galallery_row->id); ?>" data-def_type="<?php echo $def_type; ?>" data-title="<?php echo htmlspecialchars(addslashes($title)); ?>"> <span class="bwg_album_thumb_<?php echo $bwg; ?>" style="height:inherit;">
366
- <span class="bwg_album_thumb_spun1_<?php echo $bwg; ?>">
367
- <span class="bwg_album_thumb_spun2_<?php echo $bwg; ?>">
368
- <img class="bwg_img_clear bwg_img_custom" style="width:<?php echo $image_thumb_width; ?>px; height:<?php echo $image_thumb_height; ?>px; margin-left: <?php echo $thumb_left; ?>px; margin-top: <?php echo $thumb_top; ?>px;" src="<?php echo $preview_url; ?>" alt="<?php echo $title; ?>" />
369
- </span>
370
- </span>
371
- </span>
372
- </a>
373
- </div>
374
- <div class="bwg_album_extended_text_div_<?php echo $bwg; ?>">
375
- <?php
376
- if ($title) {
377
- ?>
378
- <a class="bwg_album_<?php echo $bwg; ?>" <?php echo (BWG()->options->enable_seo ? 'href="' . esc_url(add_query_arg(array("type_" . $bwg => $def_type, "album_gallery_id_" . $bwg => (($album_gallery_id != 0) ? $album_galallery_row->alb_gal_id : $album_galallery_row->id), "bwg_previous_album_id_" . $bwg => $album_gallery_id . ',' . $bwg_previous_album_id , "bwg_previous_album_page_number_" . $bwg => (isset($_REQUEST['page_number_' . $bwg]) ? esc_html($_REQUEST['page_number_' . $bwg]) : 0) . ',' . $bwg_previous_album_page_number), $_SERVER['REQUEST_URI'])) . '"' : ''); ?> style="font-size: 0;" data-alb_gal_id="<?php echo (($album_gallery_id != 0) ? $album_galallery_row->alb_gal_id : $album_galallery_row->id); ?>" data-def_type="<?php echo $def_type; ?>" data-title="<?php echo htmlspecialchars(addslashes($title)); ?>">
379
- <span class="bwg_title_spun_<?php echo $bwg; ?>"><?php echo $title; ?></span>
380
- </a>
381
- <?php
382
- }
383
- if ($params['extended_album_description_enable'] && $description ) {
384
- if (stripos($description, '<!--more-->') !== FALSE) {
385
- $description_array = explode('<!--more-->', $description);
386
- $description_short = $description_array[0];
387
- $description_full = $description_array[1];
388
- ?>
389
- <span class="bwg_description_spun1_<?php echo $bwg; ?>">
390
- <span class="bwg_description_spun2_<?php echo $bwg; ?>">
391
- <span class="bwg_description_short_<?php echo $bwg; ?>">
392
- <?php echo $description_short; ?>
393
- </span>
394
- <span class="bwg_description_full_<?php echo $bwg; ?>">
395
- <?php echo $description_full; ?>
396
- </span>
397
- </span>
398
- <span class="bwg_description_more_<?php echo $bwg; ?> bwg_more"><?php echo __('More', BWG()->prefix); ?></span>
399
- </span>
400
- <?php
401
- }
402
- else {
403
- ?>
404
- <span class="bwg_description_spun1_<?php echo $bwg; ?>">
405
- <span class="bwg_description_short_<?php echo $bwg; ?>">
406
- <?php echo $description; ?>
407
- </span>
408
- </span>
409
- <?php
410
- }
411
- }
412
- ?>
413
- </div>
414
- </div>
415
- <?php
416
- }
417
- }
418
- elseif ($type == 'gallery') {
419
- foreach ($image_rows as $image_row) {
420
- $params_array['image_id'] = (isset($_POST['image_id']) ? esc_html($_POST['image_id']) : $image_row->id);
421
- $params_array['gallery_id'] = $album_gallery_id;
422
-
423
- $is_embed = preg_match('/EMBED/', $image_row->filetype) == 1 ? true : false;
424
- $is_embed_video = preg_match('/VIDEO/', $image_row->filetype) == 1 ? true : false;
425
- $is_embed_instagram = preg_match('/EMBED_OEMBED_INSTAGRAM/', $image_row->filetype) == 1 ? true : false;
426
- if (!$is_embed) {
427
- $thumb_path_url = htmlspecialchars_decode(BWG()->upload_dir . $image_row->thumb_url, ENT_COMPAT | ENT_QUOTES);
428
- $thumb_path_url = explode('?bwg', $thumb_path_url);
429
- list($image_thumb_width, $image_thumb_height) = getimagesize($thumb_path_url[0]);
430
- }
431
- else {
432
- if($image_row->resolution != '') {
433
- if (!$is_embed_instagram) {
434
- $resolution_arr = explode(" ",$image_row->resolution);
435
- $resolution_w = intval($resolution_arr[0]);
436
- $resolution_h = intval($resolution_arr[2]);
437
- if($resolution_w != 0 && $resolution_h != 0){
438
- $scale = $scale = max($params['extended_album_image_thumb_width'] / $resolution_w, $params['extended_album_image_thumb_height'] / $resolution_h);
439
- $image_thumb_width = $resolution_w * $scale;
440
- $image_thumb_height = $resolution_h * $scale;
441
- }
442
- else{
443
- $image_thumb_width = $params['extended_album_image_thumb_width'];
444
- $image_thumb_height = $params['extended_album_image_thumb_height'];
445
- }
446
- }
447
- else {
448
- // this will be ok while instagram thumbnails width and height are the same
449
- $image_thumb_width = min($params['extended_album_image_thumb_width'], $params['extended_album_image_thumb_height']);
450
- $image_thumb_height = $image_thumb_width;
451
- }
452
- }
453
- else{
454
- $image_thumb_width = $params['extended_album_image_thumb_width'];
455
- $image_thumb_height = $params['extended_album_image_thumb_height'];
456
- }
457
- }
458
- $scale = max($params['extended_album_image_thumb_width'] / $image_thumb_width, $params['extended_album_image_thumb_height'] / $image_thumb_height);
459
- $image_thumb_width *= $scale;
460
- $image_thumb_height *= $scale;
461
- $thumb_left = ($params['extended_album_image_thumb_width'] - $image_thumb_width) / 2;
462
- $thumb_top = ($params['extended_album_image_thumb_height'] - $image_thumb_height) / 2;
463
- if ($album_view_type == 'thumbnail') {
464
- ?>
465
- <a <?php echo ($params['thumb_click_action'] == 'open_lightbox' ? (' class="bwg_lightbox_' . $bwg . '"' . (BWG()->options->enable_seo ? ' href="' . ($is_embed ? $image_row->thumb_url : BWG()->upload_url . $image_row->image_url) . '"' : '') . ' data-image-id="' . $image_row->id . '" data-gallery-id="' . $album_gallery_id . '"') : ($params['thumb_click_action'] == 'redirect_to_url' && $image_row->redirect_url ? 'href="' . $image_row->redirect_url . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : '')) ?>>
466
- <span class="bwg_standart_thumb_<?php echo $bwg; ?>">
467
- <span class="bwg_standart_thumb_spun1_<?php echo $bwg; ?>">
468
- <span class="bwg_standart_thumb_spun2_<?php echo $bwg; ?>">
469
- <?php
470
- if ($play_icon && $is_embed_video) {
471
- ?>
472
- <span class="bwg_play_icon_spun_<?php echo $bwg; ?>">
473
- <i title="<?php echo __('Play', BWG()->prefix); ?>" class="fa fa-play bwg_play_icon_<?php echo $bwg; ?>"></i>
474
- </span>
475
- <?php
476
- }
477
- if ($params['extended_album_image_title'] == 'hover') {
478
- ?>
479
- <span class="bwg_image_title_spun1_<?php echo $bwg; ?>">
480
- <span class="bwg_image_title_spun2_<?php echo $bwg; ?>">
481
- <?php echo $image_row->alt; ?>
482
- </span>
483
- </span>
484
- <?php
485
- }
486
- if(function_exists('BWGEC') && $params['ecommerce_icon'] == 'hover' && $image_row->pricelist_id){
487
- ?>
488
- <span class="bwg_ecommerce_spun1_<?php echo $bwg; ?>">
489
- <span class="bwg_ecommerce_spun2_<?php echo $bwg; ?>">
490
- <i title="<?php echo __('Open', BWG()->prefix); ?>" class="bwg_ctrl_btn bwg_open fa fa-share-square" ></i>
491
- <i title="<?php echo __('Ecommerce', BWG()->prefix); ?>" class="bwg_ctrl_btn bwg_ecommerce fa fa-shopping-cart" ></i>
492
- </span>
493
- </span>
494
- <?php
495
- }
496
- ?>
497
- <img class="bwg_img_clear bwg_img_custom" style="width:<?php echo $image_thumb_width; ?>px; height:<?php echo $image_thumb_height; ?>px; margin-left: <?php echo $thumb_left; ?>px; margin-top: <?php echo $thumb_top; ?>px;" id="<?php echo $image_row->id; ?>" src="<?php echo ( $is_embed ? "" : BWG()->upload_url) . $image_row->thumb_url; ?>" alt="<?php echo $image_row->alt; ?>" />
498
- </span>
499
- </span>
500
- <?php
501
- if ($params['extended_album_image_title'] == 'show') {
502
- ?>
503
- <span class="bwg_image_title_spun1_<?php echo $bwg; ?>">
504
- <span class="bwg_image_title_spun2_<?php echo $bwg; ?>">
505
- <?php echo $image_row->alt; ?>
506
- </span>
507
- </span>
508
- <?php
509
- }
510
-
511
- if (function_exists('BWGEC') && $params['ecommerce_icon'] == 'show' && $image_row->pricelist_id) {
512
- ?>
513
- <span class="bwg_ecommerce_spun1_<?php echo $bwg; ?>">
514
- <span class="bwg_ecommerce_spun2_<?php echo $bwg; ?>">
515
- <i title="<?php echo __('Open', BWG()->prefix); ?>" class="bwg_ctrl_btn bwg_open fa fa-share-square" ></i>
516
- <i title="<?php echo __('Ecommerce', BWG()->prefix); ?>" class="bwg_ctrl_btn bwg_ecommerce fa fa-shopping-cart" ></i>
517
- </span>
518
- </span>
519
- <?php
520
- }
521
- ?>
522
- </span>
523
- </a>
524
- <?php
525
- }
526
- }
527
- } /* End of if gallery.*/
528
- ?>
529
- <script>
530
- jQuery(".bwg_description_more_<?php echo $bwg; ?>").on("click", function () {
531
- if (jQuery(this).hasClass("bwg_more")) {
532
- jQuery(this).parent().find(".bwg_description_full_<?php echo $bwg; ?>").show();
533
- jQuery(this).attr("class", "bwg_description_more_<?php echo $bwg; ?> bwg_hide");
534
- jQuery(this).html("<?php echo __('Hide', BWG()->prefix); ?>");
535
- }
536
- else {
537
- jQuery(this).parent().find(".bwg_description_full_<?php echo $bwg; ?>").hide();
538
- jQuery(this).attr("class", "bwg_description_more_<?php echo $bwg; ?> bwg_more");
539
- jQuery(this).html("<?php echo __('More', BWG()->prefix); ?>");
540
- }
541
- });
542
- </script>
543
- </div>
544
- <?php
545
- if ( $type == 'gallery' ) {
546
- if ( BWG()->is_pro && $gallery_download && $image_rows ) {
547
- $bwg_tags_input_value = WDWLibrary::get('bwg_tag_id_bwg_album_extended_' . $bwg);
548
- $query_url = addslashes(add_query_arg(array(
549
- "action" => "download_gallery",
550
- "gallery_id" => $params['gallery_id'],
551
- "bwg" => $bwg,
552
- "type" => 'gallery',
553
- "tag_input_name" => 'bwg_tag_id_bwg_album_extended_' . $bwg,
554
- "bwg_tag_id_bwg_album_extended_" . $bwg => $bwg_tags_input_value,
555
- "tag" => $params['tag'],
556
- "bwg_search_".$bwg => WDWLibrary::get('bwg_search_'.$bwg),
557
- ), admin_url('admin-ajax.php')));
558
- ?>
559
- <div class="bwg_download_gallery">
560
- <a href="<?php echo $query_url; ?>">
561
- <i title="<?php _e('Download gallery', BWG()->prefix); ?>" class="bwg_ctrl_btn fa fa-download"></i>
562
- </a>
563
- </div>
564
  <?php
565
  }
566
  }
567
- if ($params['extended_album_enable_page'] && $items_per_page && ($theme_row->page_nav_position == 'bottom') && $page_nav['total']) {
568
- WDWLibrary::ajax_html_frontend_page_nav($theme_row, $page_nav['total'], $page_nav['limit'], 'gal_front_form_' . $bwg, $items_per_page_arr, $bwg, $album_gallery_div_id, $params['album_id'], $type, BWG()->options->enable_seo, $params['extended_album_enable_page']);
569
- }
570
  ?>
571
  </div>
572
- </form>
573
- <div id="bwg_spider_popup_loading_<?php echo $bwg; ?>" class="bwg_spider_popup_loading"></div>
574
- <div id="spider_popup_overlay_<?php echo $bwg; ?>" class="spider_popup_overlay" onclick="spider_destroypopup(1000)"></div>
 
575
  </div>
576
- </div>
577
- <script>
578
- function bwg_masonry_<?php echo $bwg; ?>() {}
579
- function bwg_mosaic_<?php echo $bwg; ?>(event_type) {}
580
- function bwg_gallery_box_<?php echo $bwg; ?>(gallery_id, image_id, openEcommerce) {
581
- if (typeof openEcommerce == undefined) {
582
- openEcommerce = false;
583
- }
584
- var ecommerce = openEcommerce == true ? "&open_ecommerce=1" : "";
585
- var filterTags = jQuery("#bwg_tags_id_bwg_album_extended_<?php echo $bwg; ?>" ).val() ? jQuery("#bwg_tags_id_bwg_album_extended_<?php echo $bwg; ?>" ).val() : 0;
586
- var filtersearchname = jQuery("#bwg_search_input_<?php echo $bwg; ?>" ).val() ? "&filter_search_name_<?php echo $bwg; ?>=" + jQuery("#bwg_search_input_<?php echo $bwg; ?>" ).val() : '';
587
- spider_createpopup('<?php echo addslashes(add_query_arg($params_array, admin_url('admin-ajax.php'))); ?>&gallery_id=' + gallery_id + '&image_id=' + image_id + "&filter_tag_<?php echo $bwg; ?>=" + filterTags + ecommerce + filtersearchname, '<?php echo $bwg; ?>', '<?php echo $params['popup_width']; ?>', '<?php echo $params['popup_height']; ?>', 1, 'testpopup', 5, "<?php echo $theme_row->lightbox_ctrl_btn_pos ;?>");
588
  }
589
- function bwg_document_ready_<?php echo $bwg; ?>() {
590
- var bwg_touch_flag = false;
591
- jQuery("#bwg_container2_<?php echo $bwg; ?>").on("click", ".bwg_lightbox_<?php echo $bwg; ?>", function () {
592
- if (!bwg_touch_flag) {
593
- bwg_touch_flag = true;
594
- setTimeout(function(){ bwg_touch_flag = false; }, 100);
595
- bwg_gallery_box_<?php echo $bwg; ?>(jQuery(this).attr("data-gallery-id"), jQuery(this).attr("data-image-id"));
596
- return false;
597
- }
598
- });
599
- jQuery(".bwg_lightbox_<?php echo $bwg; ?> .bwg_ecommerce").on("click", function (event) {
600
- event.stopPropagation();
601
- if (!bwg_touch_flag) {
602
- bwg_touch_flag = true;
603
- setTimeout(function(){ bwg_touch_flag = false; }, 100);
604
- var image_id = jQuery(this).closest(".bwg_lightbox_<?php echo $bwg; ?>").attr("data-image-id");
605
- var gallery_id = jQuery(this).closest(".bwg_lightbox_<?php echo $bwg; ?>").attr("data-gallery-id");
606
- bwg_gallery_box_<?php echo $bwg; ?>(gallery_id,image_id, true);
607
- return false;
608
- }
609
- });
610
- jQuery("#bwg_container2_<?php echo $bwg; ?>").on("click", ".bwg_album_<?php echo $bwg; ?>", function () {
611
- if (!bwg_touch_flag) {
612
- bwg_touch_flag = true;
613
- setTimeout(function(){ bwg_touch_flag = false; }, 100);
614
- spider_frontend_ajax('gal_front_form_<?php echo $bwg; ?>', '<?php echo $bwg; ?>', 'bwg_album_extended_<?php echo $bwg; ?>', jQuery(this).attr("data-alb_gal_id"), '<?php echo $album_gallery_id; ?>', jQuery(this).attr("data-def_type"), '', jQuery(this).attr("data-title"), 'default', false, jQuery(this).attr("data-description"));
615
- return false;
616
- }
617
- });
618
 
619
- jQuery( 'div[id^="bwg_container"]' ).each( function () {
620
- var bwg_container = jQuery(this);
621
- if (bwg_container.data('right-click-protection')) {
622
- /* Disable right click.*/
623
- bwg_container.bind("contextmenu", function () {
624
- return false;
625
- });
626
- bwg_container.css('webkitTouchCallout', 'none');
627
- }
628
- var search_tags = bwg_container.find('.search_tags');
629
- if (search_tags.length) {
630
- search_tags.SumoSelect({
631
- triggerChangeCombined: true,
632
- placeholder: bwg_objectsL10n.bwg_select_tag,
633
- search: 1,
634
- searchText: bwg_objectsL10n.bwg_search,
635
- forceCustomRendering: true,
636
- noMatch: bwg_objectsL10n.bwg_tag_no_match,
637
- captionFormatAllSelected: bwg_objectsL10n.bwg_all_tags_selected,
638
- captionFormat: '{0} ' + bwg_objectsL10n.bwg_tags_selected,
639
- });
640
- }
641
- var bwg_order = bwg_container.find('.bwg_order');
642
- if (bwg_order.length) {
643
- bwg_order.SumoSelect({
644
- triggerChangeCombined: true,
645
- forceCustomRendering: true,
646
- });
647
- }
648
- });
649
 
650
- <?php
651
- if ($image_right_click) {
652
- ?>
653
- /* Disable right click.*/
654
- jQuery('div[id^="bwg_container"]').bind("contextmenu", function () {
655
- return false;
656
- });
657
- jQuery('div[id^="bwg_container"]').css('webkitTouchCallout','none');
658
- <?php
659
- }
660
- if ( BWG()->is_pro ) {
661
- ?>
662
- var bwg_hash = window.location.hash.substring(1);
663
- if (bwg_hash) {
664
- if (bwg_hash.indexOf("bwg") != "-1") {
665
- bwg_hash_array = bwg_hash.replace("bwg", "").split("/");
666
- bwg_gallery_box_<?php echo $bwg; ?>(bwg_hash_array[0], bwg_hash_array[1]);
667
- }
668
- }
669
- <?php
670
- }
671
- ?>
672
  }
673
- jQuery(document).ready(function () {
674
- bwg_document_ready_<?php echo $bwg; ?>();
675
- });
676
- </script>
677
- <?php
678
- if ($from_shortcode) {
679
- return;
680
  }
681
  else {
682
- die();
683
  }
684
  }
685
 
686
- private function inline_styles($bwg, $theme_row, $params, $album_view_type) {
687
  ob_start();
688
- $rgb_page_nav_font_color = WDWLibrary::spider_hex2rgb($theme_row->page_nav_font_color);
689
  $rgb_album_extended_thumbs_bg_color = WDWLibrary::spider_hex2rgb($theme_row->album_extended_thumbs_bg_color);
690
  $rgb_album_extended_div_bg_color = WDWLibrary::spider_hex2rgb($theme_row->album_extended_div_bg_color);
691
- $rgb_thumbs_bg_color = WDWLibrary::spider_hex2rgb($theme_row->thumbs_bg_color);
692
  ?>
693
- /* Style for masonry view.*/
694
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_masonry_thumbnails_<?php echo $bwg; ?> * {
695
- -moz-box-sizing: border-box;
696
- -webkit-box-sizing: border-box;
697
- box-sizing: border-box;
698
- }
699
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_masonry_thumb_<?php echo $bwg; ?> {
700
- visibility: hidden;
701
- text-align: center;
702
- display: inline-block;
703
- vertical-align: middle;
704
- width: <?php echo $params['extended_album_image_thumb_width']; ?>px !important;
705
- border-radius: <?php echo $theme_row->masonry_thumb_border_radius; ?>;
706
- border: <?php echo $theme_row->masonry_thumb_border_width; ?>px <?php echo $theme_row->masonry_thumb_border_style; ?> #<?php echo $theme_row->masonry_thumb_border_color; ?>;
707
- background-color: #<?php echo $theme_row->thumb_bg_color; ?>;
708
- margin: 0;
709
- padding: <?php echo $theme_row->masonry_thumb_padding; ?>px !important;
710
- opacity: <?php echo number_format($theme_row->masonry_thumb_transparent / 100, 2, ".", ""); ?>;
711
- filter: Alpha(opacity=<?php echo $theme_row->masonry_thumb_transparent; ?>);
712
- <?php echo ($theme_row->masonry_thumb_transition) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
713
- z-index: 100;
714
- }
715
- /*#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_masonry_thumb_<?php echo $bwg; ?>:hover {
716
- opacity: 1;
717
- filter: Alpha(opacity=100);
718
- transform: <?php echo $theme_row->masonry_thumb_hover_effect; ?>(<?php echo $theme_row->masonry_thumb_hover_effect_value; ?>);
719
- -ms-transform: <?php echo $theme_row->masonry_thumb_hover_effect; ?>(<?php echo $theme_row->masonry_thumb_hover_effect_value; ?>);
720
- -webkit-transform: <?php echo $theme_row->masonry_thumb_hover_effect; ?>(<?php echo $theme_row->masonry_thumb_hover_effect_value; ?>);
721
- backface-visibility: hidden;
722
- -webkit-backface-visibility: hidden;
723
- -moz-backface-visibility: hidden;
724
- -ms-backface-visibility: hidden;
725
- z-index: 102;
726
- position: absolute;
727
- }*/
728
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_masonry_thumbnails_<?php echo $bwg; ?> {
729
- -moz-box-sizing: border-box;
730
- background-color: rgba(<?php echo $rgb_thumbs_bg_color['red']; ?>, <?php echo $rgb_thumbs_bg_color['green']; ?>, <?php echo $rgb_thumbs_bg_color['blue']; ?>, <?php echo number_format($theme_row->masonry_thumb_bg_transparent / 100, 2, ".", ""); ?>);
731
- box-sizing: border-box;
732
- display: inline-block;
733
- font-size: 0;
734
- /*width: <?php echo $params['extended_album_image_column_number'] * ($params['extended_album_image_thumb_width'] + 2 * ($theme_row->masonry_thumb_padding + $theme_row->masonry_thumb_border_width)); ?>px;*/
735
- width: 100%;
736
- position: relative;
737
- text-align: <?php echo $theme_row->masonry_thumb_align; ?>;
738
- }
739
- @media only screen and (max-width : <?php echo $params['extended_album_image_column_number'] * ($params['extended_album_image_thumb_width'] + 2 * ($theme_row->masonry_thumb_padding + $theme_row->masonry_thumb_border_width)); ?>px) {
740
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_masonry_thumbnails_<?php echo $bwg; ?> {
741
- width: inherit;
742
- }
743
- }
744
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_popup_overlay_<?php echo $bwg; ?> {
745
- background-color: #<?php echo $theme_row->lightbox_overlay_bg_color; ?>;
746
- opacity: <?php echo number_format($theme_row->lightbox_overlay_bg_transparent / 100, 2, ".", ""); ?>;
747
- filter: Alpha(opacity=<?php echo $theme_row->lightbox_overlay_bg_transparent; ?>);
748
- }
749
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_masonry_thumb_spun_<?php echo $bwg; ?> {
750
- position: absolute;
751
- }
752
  /* Style for thumbnail view.*/
753
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_album_extended_thumbnails_<?php echo $bwg; ?> * {
754
  -moz-box-sizing: border-box;
@@ -845,20 +291,7 @@ class BWGViewAlbum_extended_preview {
845
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_description_short_<?php echo $bwg; ?> {
846
  display: inline;
847
  }
848
-
849
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_gal_description {
850
- background-color: rgba(0, 0, 0, 0);
851
- color: #<?php echo $theme_row->album_extended_gal_title_font_color; ?>;
852
- display: block;
853
- font-family: <?php echo $theme_row->album_extended_gal_title_font_style; ?>;
854
- font-size: <?php echo $theme_row->album_extended_gal_title_font_size; ?>px;
855
- font-weight: <?php echo $theme_row->album_extended_gal_title_font_weight; ?>;
856
- padding: <?php echo $theme_row->album_extended_gal_title_margin; ?>;
857
- text-shadow: <?php echo $theme_row->album_extended_gal_title_shadow; ?>;
858
- text-align: <?php echo $theme_row->album_extended_gal_title_align; ?>;
859
- }
860
-
861
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_description_full_<?php echo $bwg; ?> {
862
  display: none;
863
  }
864
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_description_more_<?php echo $bwg; ?> {
@@ -901,547 +334,64 @@ class BWGViewAlbum_extended_preview {
901
  z-index: 102;
902
  }
903
  @media only screen and (min-width: 480px) {
904
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_album_thumb_spun1_<?php echo $bwg; ?>:hover {
905
  transform: <?php echo $theme_row->album_extended_thumb_hover_effect; ?>(<?php echo $theme_row->album_extended_thumb_hover_effect_value; ?>);
906
  -ms-transform: <?php echo $theme_row->album_extended_thumb_hover_effect; ?>(<?php echo $theme_row->album_extended_thumb_hover_effect_value; ?>);
907
  -webkit-transform: <?php echo $theme_row->album_extended_thumb_hover_effect; ?>(<?php echo $theme_row->album_extended_thumb_hover_effect_value; ?>);
908
- }
909
  }
910
-
911
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_album_thumb_spun2_<?php echo $bwg; ?> {
912
  display: inline-block;
913
  height: <?php echo $params['extended_album_thumb_height']; ?>px;
914
  overflow: hidden;
915
  width: <?php echo $params['extended_album_thumb_width']; ?>px;
916
  }
917
- <?php
918
- if ($album_view_type != 'mosaic') {
919
- ?>
920
- /* Style for masonry view.*/
921
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_masonry_thumbnails_<?php echo $bwg; ?> * {
922
- -moz-box-sizing: border-box;
923
- -webkit-box-sizing: border-box;
924
- box-sizing: border-box;
925
- }
926
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_masonry_thumb_<?php echo $bwg; ?> {
927
- visibility: hidden;
928
- text-align: center;
929
- display: inline-block;
930
- vertical-align: middle;
931
- width: <?php echo $params['extended_album_image_thumb_width']; ?>px !important;
932
- border-radius: <?php echo $theme_row->masonry_thumb_border_radius; ?>;
933
- border: <?php echo $theme_row->masonry_thumb_border_width; ?>px <?php echo $theme_row->masonry_thumb_border_style; ?> #<?php echo $theme_row->masonry_thumb_border_color; ?>;
934
- background-color: #<?php echo $theme_row->thumb_bg_color; ?>;
935
- margin: 0;
936
- padding: <?php echo $theme_row->masonry_thumb_padding; ?>px !important;
937
- opacity: <?php echo number_format($theme_row->masonry_thumb_transparent / 100, 2, ".", ""); ?>;
938
- filter: Alpha(opacity=<?php echo $theme_row->masonry_thumb_transparent; ?>);
939
- <?php echo ($theme_row->masonry_thumb_transition) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
940
- z-index: 100;
941
- }
942
- /*#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_masonry_thumb_<?php echo $bwg; ?>:hover {
943
- opacity: 1;
944
- filter: Alpha(opacity=100);
945
- transform: <?php echo $theme_row->masonry_thumb_hover_effect; ?>(<?php echo $theme_row->masonry_thumb_hover_effect_value; ?>);
946
- -ms-transform: <?php echo $theme_row->masonry_thumb_hover_effect; ?>(<?php echo $theme_row->masonry_thumb_hover_effect_value; ?>);
947
- -webkit-transform: <?php echo $theme_row->masonry_thumb_hover_effect; ?>(<?php echo $theme_row->masonry_thumb_hover_effect_value; ?>);
948
- backface-visibility: hidden;
949
- -webkit-backface-visibility: hidden;
950
- -moz-backface-visibility: hidden;
951
- -ms-backface-visibility: hidden;
952
- z-index: 102;
953
- position: absolute;
954
- }*/
955
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_masonry_thumbnails_<?php echo $bwg; ?> {
956
- -moz-box-sizing: border-box;
957
- background-color: rgba(<?php echo $rgb_thumbs_bg_color['red']; ?>, <?php echo $rgb_thumbs_bg_color['green']; ?>, <?php echo $rgb_thumbs_bg_color['blue']; ?>, <?php echo number_format($theme_row->masonry_thumb_bg_transparent / 100, 2, ".", ""); ?>);
958
- box-sizing: border-box;
959
- display: inline-block;
960
- font-size: 0;
961
- /*width: <?php echo $params['extended_album_image_column_number'] * ($params['extended_album_image_thumb_width'] + 2 * ($theme_row->masonry_thumb_padding + $theme_row->masonry_thumb_border_width)); ?>px;*/
962
- width: 100%;
963
- position: relative;
964
- text-align: <?php echo $theme_row->masonry_thumb_align; ?>;
965
- }
966
- @media only screen and (max-width : <?php echo $params['extended_album_image_column_number'] * ($params['extended_album_image_thumb_width'] + 2 * ($theme_row->masonry_thumb_padding + $theme_row->masonry_thumb_border_width)); ?>px) {
967
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_masonry_thumbnails_<?php echo $bwg; ?> {
968
- width: inherit;
969
  }
970
- }
971
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_popup_overlay_<?php echo $bwg; ?> {
972
- background-color: #<?php echo $theme_row->lightbox_overlay_bg_color; ?>;
973
- opacity: <?php echo number_format($theme_row->lightbox_overlay_bg_transparent / 100, 2, ".", ""); ?>;
974
- filter: Alpha(opacity=<?php echo $theme_row->lightbox_overlay_bg_transparent; ?>);
975
- }
976
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_masonry_thumb_spun_<?php echo $bwg; ?> {
977
- position: absolute;
978
- }
979
- /*Style for image thumbnail view .*/
980
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_standart_thumb_spun1_<?php echo $bwg; ?> {
981
- background-color: #<?php echo $theme_row->thumb_bg_color; ?>;
982
- border-radius: <?php echo $theme_row->thumb_border_radius; ?>;
983
- border: <?php echo $theme_row->thumb_border_width; ?>px <?php echo $theme_row->thumb_border_style; ?> #<?php echo $theme_row->thumb_border_color; ?>;
984
- box-shadow: <?php echo $theme_row->thumb_box_shadow; ?>;
985
- display: inline-block;
986
- height: <?php echo $params['extended_album_image_thumb_height']; ?>px;
987
- margin: <?php echo $theme_row->thumb_margin; ?>px;
988
- opacity: <?php echo number_format($theme_row->thumb_transparent / 100, 2, ".", ""); ?>;
989
- filter: Alpha(opacity=<?php echo $theme_row->thumb_transparent; ?>);
990
- <?php echo ($theme_row->thumb_transition) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
991
- padding: <?php echo $theme_row->thumb_padding; ?>px;
992
- text-align: center;
993
- vertical-align: middle;
994
- width: <?php echo $params['extended_album_image_thumb_width']; ?>px;
995
- z-index: 100;
996
- }
997
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_standart_thumb_spun1_<?php echo $bwg; ?>:hover {
998
- backface-visibility: hidden;
999
- -webkit-backface-visibility: hidden;
1000
- -moz-backface-visibility: hidden;
1001
- -ms-backface-visibility: hidden;
1002
- opacity: 1;
1003
- filter: Alpha(opacity=100);
1004
- z-index: 102;
1005
- position: relative;
1006
- }
1007
- @media only screen and (min-width: 480px) {
1008
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_standart_thumb_spun1_<?php echo $bwg; ?>:hover {
1009
- transform: <?php echo $theme_row->thumb_hover_effect; ?>(<?php echo $theme_row->thumb_hover_effect_value; ?>);
1010
- -ms-transform: <?php echo $theme_row->thumb_hover_effect; ?>(<?php echo $theme_row->thumb_hover_effect_value; ?>);
1011
- -webkit-transform: <?php echo $theme_row->thumb_hover_effect; ?>(<?php echo $theme_row->thumb_hover_effect_value; ?>);
1012
- }
1013
- }
1014
-
1015
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_standart_thumb_spun2_<?php echo $bwg; ?> {
1016
- display: inline-block;
1017
- height: <?php echo $params['extended_album_image_thumb_height']; ?>px;
1018
- overflow: hidden;
1019
- width: <?php echo $params['extended_album_image_thumb_width']; ?>px;
1020
- }
1021
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_standart_thumbnails_<?php echo $bwg; ?> {
1022
- -moz-box-sizing: border-box;
1023
- display: inline-block;
1024
- background-color: rgba(<?php echo $rgb_thumbs_bg_color['red']; ?>, <?php echo $rgb_thumbs_bg_color['green']; ?>, <?php echo $rgb_thumbs_bg_color['blue']; ?>, <?php echo number_format($theme_row->thumb_bg_transparent / 100, 2, ".", ""); ?>);
1025
- box-sizing: border-box;
1026
- font-size: 0;
1027
- max-width: <?php echo $params['extended_album_image_column_number'] * ($params['extended_album_image_thumb_width'] + 2 * (2 + $theme_row->thumb_margin + $theme_row->thumb_padding + $theme_row->thumb_border_width)); ?>px;
1028
- text-align: <?php echo $theme_row->thumb_align; ?>;
1029
- }
1030
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_standart_thumb_<?php echo $bwg; ?> {
1031
- display: inline-block;
1032
- text-align: center;
1033
- }
1034
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_gal_title_<?php echo $bwg; ?> {
1035
- background-color: rgba(0, 0, 0, 0);
1036
- color: #<?php echo $theme_row->album_extended_gal_title_font_color; ?>;
1037
- display: block;
1038
- font-family: <?php echo $theme_row->album_extended_gal_title_font_style; ?>;
1039
- font-size: <?php echo $theme_row->album_extended_gal_title_font_size; ?>px;
1040
- font-weight: <?php echo $theme_row->album_extended_gal_title_font_weight; ?>;
1041
- padding: <?php echo $theme_row->album_extended_gal_title_margin; ?>;
1042
- text-shadow: <?php echo $theme_row->album_extended_gal_title_shadow; ?>;
1043
- text-align: <?php echo $theme_row->album_extended_gal_title_align; ?>;
1044
- }
1045
- <?php
1046
- if(function_exists('BWGEC')){
1047
- if( $params['ecommerce_icon'] == 'show' ){
1048
- ?>
1049
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_ecommerce_spun1_<?php echo $bwg; ?>{
1050
- display: block;
1051
- margin: 0 auto;
1052
- opacity: 1;
1053
- filter: Alpha(opacity=100);
1054
- text-align: right;
1055
- width: <?php echo $params['extended_album_image_thumb_width']; ?>px;
1056
- }
1057
- <?php
1058
- }
1059
- elseif ($params['ecommerce_icon'] == 'hover') { /* Show ecommerce icon on hover.*/
1060
- ?>
1061
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_ecommerce_spun1_<?php echo $bwg; ?> {
1062
- display: table;
1063
- height: inherit;
1064
- left: -3000px;
1065
- opacity: 0;
1066
- filter: Alpha(opacity=0);
1067
- position: absolute;
1068
- top: 0px;
1069
- width: inherit;
1070
  }
1071
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_standart_thumb_spun1_<?php echo $bwg; ?>:hover img{
1072
- opacity:0.5;
1073
- }
1074
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_standart_thumb_spun1_<?php echo $bwg; ?>:hover{
1075
- background:#000;
1076
- }
1077
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_ecommerce_spun1_<?php echo $bwg; ?>, #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_ecommerce_spun2_<?php echo $bwg; ?>, #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_ecommerce_spun2_<?php echo $bwg; ?> i{
1078
- opacity:1 !important;
1079
- font-size:20px !important;
1080
- z-index: 45;
1081
- }
1082
- <?php
1083
- }
1084
- }
1085
- if ($params['extended_album_image_title'] == 'show') { /* Show image title at the bottom.*/
1086
- ?>
1087
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_title_spun1_<?php echo $bwg; ?> {
1088
- display: block;
1089
- margin: 0 auto;
1090
- opacity: 1;
1091
- filter: Alpha(opacity=100);
1092
- text-align: center;
1093
- width: <?php echo $params['extended_album_image_thumb_width']; ?>px;
1094
- }
1095
- <?php
1096
  }
1097
- elseif ($params['extended_album_image_title'] == 'hover') { /* Show image title on hover.*/
1098
- ?>
1099
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_title_spun1_<?php echo $bwg; ?> {
1100
- display: table;
1101
- height: inherit;
1102
- left: -3000px;
1103
- opacity: 0;
1104
- filter: Alpha(opacity=0);
1105
- position: absolute;
1106
- top: 0px;
1107
- width: inherit;
1108
  }
1109
- <?php
1110
- }
1111
- ?>
1112
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_standart_thumb_spun1_<?php echo $bwg; ?>:hover .bwg_image_title_spun1_<?php echo $bwg; ?>, #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_standart_thumb_spun1_<?php echo $bwg; ?>:hover .bwg_ecommerce_spun1_<?php echo $bwg; ?> {
1113
- left: <?php echo $theme_row->thumb_padding; ?>px;
1114
- top: <?php echo $theme_row->thumb_padding; ?>px;
1115
- opacity: 1;
1116
- filter: Alpha(opacity=100);
1117
- overflow:hidden;
1118
- display:inherit;
1119
- padding: 0 5px;
1120
- }
1121
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_title_spun2_<?php echo $bwg; ?>, #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_ecommerce_spun2_<?php echo $bwg; ?>{
1122
- color: #<?php echo $theme_row->thumb_title_font_color; ?>;
1123
- display: table-cell;
1124
- font-family: <?php echo $theme_row->thumb_title_font_style; ?>;
1125
- font-size: <?php echo $theme_row->thumb_title_font_size; ?>px;
1126
- font-weight: <?php echo $theme_row->thumb_title_font_weight; ?>;
1127
- height: inherit;
1128
- margin: <?php echo $theme_row->thumb_title_margin; ?>;
1129
- text-shadow: <?php echo $theme_row->thumb_title_shadow; ?>;
1130
- vertical-align: middle;
1131
- width: inherit;
1132
- word-break: break-all;
1133
- word-wrap: break-word;
1134
- }
1135
- /*Pagination styles.*/
1136
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> {
1137
- text-align: <?php echo $theme_row->page_nav_align; ?>;
1138
- font-size: <?php echo $theme_row->page_nav_font_size; ?>px;
1139
- font-family: <?php echo $theme_row->page_nav_font_style; ?>;
1140
- font-weight: <?php echo $theme_row->page_nav_font_weight; ?>;
1141
- color: #<?php echo $theme_row->page_nav_font_color; ?>;
1142
- margin: 6px 0 4px;
1143
- display: block;
1144
- height: 30px;
1145
- line-height: 30px;
1146
- }
1147
- @media only screen and (max-width : 320px) {
1148
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .displaying-num_<?php echo $bwg; ?> {
1149
- display: none;
1150
  }
1151
  }
1152
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .displaying-num_<?php echo $bwg; ?> {
1153
- font-size: <?php echo $theme_row->page_nav_font_size; ?>px;
1154
- font-family: <?php echo $theme_row->page_nav_font_style; ?>;
1155
- font-weight: <?php echo $theme_row->page_nav_font_weight; ?>;
1156
- color: #<?php echo $theme_row->page_nav_font_color; ?>;
1157
- margin-right: 10px;
1158
- vertical-align: middle;
1159
- }
1160
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .paging-input_<?php echo $bwg; ?> {
1161
- font-size: <?php echo $theme_row->page_nav_font_size; ?>px;
1162
- font-family: <?php echo $theme_row->page_nav_font_style; ?>;
1163
- font-weight: <?php echo $theme_row->page_nav_font_weight; ?>;
1164
- color: #<?php echo $theme_row->page_nav_font_color; ?>;
1165
- vertical-align: middle;
1166
- }
1167
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> a.disabled,
1168
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> a.disabled:hover,
1169
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> a.disabled:focus {
1170
- cursor: default;
1171
- color: rgba(<?php echo $rgb_page_nav_font_color['red']; ?>, <?php echo $rgb_page_nav_font_color['green']; ?>, <?php echo $rgb_page_nav_font_color['blue']; ?>, 0.5);
1172
- }
1173
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> a {
1174
- cursor: pointer;
1175
- font-size: <?php echo $theme_row->page_nav_font_size; ?>px;
1176
- font-family: <?php echo $theme_row->page_nav_font_style; ?>;
1177
- font-weight: <?php echo $theme_row->page_nav_font_weight; ?>;
1178
- color: #<?php echo $theme_row->page_nav_font_color; ?>;
1179
- text-decoration: none;
1180
- padding: <?php echo $theme_row->page_nav_padding; ?>;
1181
- margin: <?php echo $theme_row->page_nav_margin; ?>;
1182
- border-radius: <?php echo $theme_row->page_nav_border_radius; ?>;
1183
- border-style: <?php echo $theme_row->page_nav_border_style; ?>;
1184
- border-width: <?php echo $theme_row->page_nav_border_width; ?>px;
1185
- border-color: #<?php echo $theme_row->page_nav_border_color; ?>;
1186
- background-color: #<?php echo $theme_row->page_nav_button_bg_color; ?>;
1187
- opacity: <?php echo number_format($theme_row->page_nav_button_bg_transparent / 100, 2, ".", ""); ?>;
1188
- filter: Alpha(opacity=<?php echo $theme_row->page_nav_button_bg_transparent; ?>);
1189
- box-shadow: <?php echo $theme_row->page_nav_box_shadow; ?>;
1190
- <?php echo ($theme_row->page_nav_button_transition ) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
1191
- }
1192
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_back_<?php echo $bwg; ?> {
1193
- background-color: rgba(0, 0, 0, 0);
1194
- color: #<?php echo $theme_row->album_extended_back_font_color; ?> !important;
1195
- cursor: pointer;
1196
- display: block;
1197
- font-family: <?php echo $theme_row->album_extended_back_font_style; ?>;
1198
- font-size: <?php echo $theme_row->album_extended_back_font_size; ?>px;
1199
- font-weight: <?php echo $theme_row->album_extended_back_font_weight; ?>;
1200
- text-decoration: none;
1201
- padding: <?php echo $theme_row->album_extended_back_padding; ?>;
1202
- }
1203
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_popup_overlay_<?php echo $bwg; ?> {
1204
- background-color: #<?php echo $theme_row->lightbox_overlay_bg_color; ?>;
1205
- opacity: <?php echo number_format($theme_row->lightbox_overlay_bg_transparent / 100, 2, ".", ""); ?>;
1206
- filter: Alpha(opacity=<?php echo $theme_row->lightbox_overlay_bg_transparent; ?>);
1207
- }
1208
- .bwg_play_icon_spun_<?php echo $bwg; ?> {
1209
- width: inherit;
1210
- height: inherit;
1211
- display: table;
1212
- position: absolute;
1213
- }
1214
- .bwg_play_icon_<?php echo $bwg; ?> {
1215
- color: #<?php echo $theme_row->thumb_title_font_color; ?>;
1216
- font-size: <?php echo 2 * $theme_row->thumb_title_font_size; ?>px;
1217
- vertical-align: middle;
1218
- display: table-cell !important;
1219
- z-index: 1;
1220
- text-align: center;
1221
- margin: 0 auto;
1222
- }
1223
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_masonry_thumb_description_<?php echo $bwg; ?> {
1224
- padding: 0 5px !important;
1225
- line-height: 1.4 !important;
1226
- font-size: <?php echo $theme_row->masonry_description_font_size; ?>px;
1227
- color: #<?php echo $theme_row->masonry_description_color; ?>;
1228
- font-family: <?php echo $theme_row->masonry_description_font_style; ?>;
1229
- text-align: center;
1230
- }
1231
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_masonry_thumb_spun_<?php echo $bwg; ?>:hover {
1232
- opacity: 1;
1233
- filter: Alpha(opacity=100);
1234
- backface-visibility: hidden;
1235
- -webkit-backface-visibility: hidden;
1236
- -moz-backface-visibility: hidden;
1237
- -ms-backface-visibility: hidden;
1238
- z-index: 102;
1239
- position: absolute;
1240
- }
1241
- @media only screen and (min-width: 480px) {
1242
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_masonry_thumb_spun_<?php echo $bwg; ?>:hover {
1243
- transform: <?php echo $theme_row->masonry_thumb_hover_effect; ?>(<?php echo $theme_row->masonry_thumb_hover_effect_value; ?>);
1244
- -ms-transform: <?php echo $theme_row->masonry_thumb_hover_effect; ?>(<?php echo $theme_row->masonry_thumb_hover_effect_value; ?>);
1245
- -webkit-transform: <?php echo $theme_row->masonry_thumb_hover_effect; ?>(<?php echo $theme_row->masonry_thumb_hover_effect_value; ?>);
1246
- }
1247
- }
1248
 
1249
- <?php
1250
- }
1251
- else { /* For mosaic view of images.*/
1252
- ?>
1253
- /*#bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_mosaic_thumbnails_<?php echo $bwg; ?> * {
1254
- -moz-box-sizing: border-box;
1255
- -webkit-box-sizing: border-box;
1256
- box-sizing: border-box;
1257
- }*/
1258
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_mosaic_thumb_<?php echo $bwg; ?> {
1259
- visibility: hidden;/* make hidden later */
1260
- /*text-align: center;*/
1261
- display: block;
1262
- -moz-box-sizing: content-box !important;
1263
- -webkit-box-sizing: content-box !important;
1264
- box-sizing: content-box !important;
1265
- border-radius: <?php echo $theme_row->mosaic_thumb_border_radius; ?>;
1266
- border: <?php echo $theme_row->mosaic_thumb_border_width; ?>px <?php echo $theme_row->mosaic_thumb_border_style; ?> #<?php echo $theme_row->mosaic_thumb_border_color; ?>;
1267
- background-color: #<?php echo $theme_row->thumb_bg_color; ?>;
1268
- margin: 0;
1269
- padding: <?php echo $theme_row->mosaic_thumb_padding; ?>px !important;
1270
- opacity: <?php echo number_format($theme_row->mosaic_thumb_transparent / 100, 2, ".", ""); ?>;
1271
- filter: Alpha(opacity=<?php echo $theme_row->mosaic_thumb_transparent; ?>);
1272
- z-index: 100;
1273
- }
1274
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_mosaic_thumb_spun_<?php echo $bwg; ?>:hover {
1275
- opacity: 1;
1276
- filter: Alpha(opacity=100);
1277
- backface-visibility: hidden;
1278
- -webkit-backface-visibility: hidden;
1279
- -moz-backface-visibility: hidden;
1280
- -ms-backface-visibility: hidden;
1281
- z-index: 102;
1282
- position: absolute;
1283
- }
1284
- @media only screen and (min-width: 480px) {
1285
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_mosaic_thumb_spun_<?php echo $bwg; ?>:hover {
1286
- transform: <?php echo $theme_row->mosaic_thumb_hover_effect; ?>(<?php echo $theme_row->mosaic_thumb_hover_effect_value; ?>);
1287
- -ms-transform: <?php echo $theme_row->mosaic_thumb_hover_effect; ?>(<?php echo $theme_row->mosaic_thumb_hover_effect_value; ?>);
1288
- -webkit-transform: <?php echo $theme_row->mosaic_thumb_hover_effect; ?>(<?php echo $theme_row->mosaic_thumb_hover_effect_value; ?>);
1289
- }
1290
- }
1291
 
1292
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_mosaic_thumbnails_<?php echo $bwg; ?> {
1293
- background-color: rgba(<?php echo $rgb_thumbs_bg_color['red']; ?>, <?php echo $rgb_thumbs_bg_color['green']; ?>, <?php echo $rgb_thumbs_bg_color['blue']; ?>, <?php echo number_format($theme_row->mosaic_thumb_bg_transparent / 100, 2, ".", ""); ?>);
1294
- font-size: 0;
1295
- position: relative;
1296
- text-align: <?php echo $theme_row->mosaic_thumb_align; ?>;
1297
- display: inline-block;
1298
- }
1299
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_mosaic_thumb_spun_<?php echo $bwg; ?> {
1300
- display:block;
1301
- position: absolute;
1302
- -moz-box-sizing: content-box !important;
1303
- -webkit-box-sizing: content-box !important;
1304
- box-sizing: content-box !important;
1305
- <?php echo ($theme_row->mosaic_thumb_transition) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
1306
- }
1307
- /*image title styles*/
1308
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_mosaic_title_spun1_<?php echo $bwg; ?> {
1309
- position: absolute;
1310
- display:block;
1311
- opacity: 0;
1312
- filter: Alpha(opacity=0);
1313
- left: -10000px;
1314
- top: 0px;
1315
- box-sizing:border-box;
1316
- text-align: center;
1317
- }
1318
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_mosaic_title_spun2_<?php echo $bwg; ?> {
1319
- color: #<?php echo $theme_row->mosaic_thumb_title_font_color; ?>;
1320
- font-family: <?php echo $theme_row->mosaic_thumb_title_font_style; ?>;
1321
- font-size: <?php echo $theme_row->mosaic_thumb_title_font_size; ?>px;
1322
- font-weight: <?php echo $theme_row->mosaic_thumb_title_font_weight; ?>;
1323
- text-shadow: <?php echo $theme_row->mosaic_thumb_title_shadow; ?>;
1324
- vertical-align: middle;
1325
- word-wrap: break-word;
1326
- }
1327
- .bwg_mosaic_play_icon_spun_<?php echo $bwg; ?> {
1328
- display: table;
1329
- position: absolute;
1330
- left: -10000px;
1331
- top: 0px;
1332
- opacity: 0;
1333
- filter: Alpha(opacity=0);
1334
- }
1335
- .bwg_mosaic_play_icon_<?php echo $bwg; ?> {
1336
- color: #<?php echo $theme_row->mosaic_thumb_title_font_color; ?>;
1337
- font-size: <?php echo 2 * $theme_row->mosaic_thumb_title_font_size; ?>px;
1338
- vertical-align: middle;
1339
- display: table-cell !important;
1340
- z-index: 1;
1341
- text-align: center;
1342
- margin: 0 auto;
1343
- }
1344
- /*pagination styles*/
1345
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> {
1346
- text-align: <?php echo $theme_row->page_nav_align; ?>;
1347
- font-size: <?php echo $theme_row->page_nav_font_size; ?>px;
1348
- font-family: <?php echo $theme_row->page_nav_font_style; ?>;
1349
- font-weight: <?php echo $theme_row->page_nav_font_weight; ?>;
1350
- color: #<?php echo $theme_row->page_nav_font_color; ?>;
1351
- margin: 6px 0 4px;
1352
- display: block;
1353
- height: 30px;
1354
- line-height: 30px;
1355
- }
1356
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .displaying-num_<?php echo $bwg; ?> {
1357
- font-size: <?php echo $theme_row->page_nav_font_size; ?>px;
1358
- font-family: <?php echo $theme_row->page_nav_font_style; ?>;
1359
- font-weight: <?php echo $theme_row->page_nav_font_weight; ?>;
1360
- color: #<?php echo $theme_row->page_nav_font_color; ?>;
1361
- margin-right: 10px;
1362
- vertical-align: middle;
1363
- }
1364
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .paging-input_<?php echo $bwg; ?> {
1365
- font-size: <?php echo $theme_row->page_nav_font_size; ?>px;
1366
- font-family: <?php echo $theme_row->page_nav_font_style; ?>;
1367
- font-weight: <?php echo $theme_row->page_nav_font_weight; ?>;
1368
- color: #<?php echo $theme_row->page_nav_font_color; ?>;
1369
- vertical-align: middle;
1370
- }
1371
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> a.disabled,
1372
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> a.disabled:hover,
1373
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> a.disabled:focus {
1374
- cursor: default;
1375
- color: rgba(<?php echo $rgb_page_nav_font_color['red']; ?>, <?php echo $rgb_page_nav_font_color['green']; ?>, <?php echo $rgb_page_nav_font_color['blue']; ?>, 0.5);
1376
- }
1377
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> a {
1378
- cursor: pointer;
1379
- font-size: <?php echo $theme_row->page_nav_font_size; ?>px;
1380
- font-family: <?php echo $theme_row->page_nav_font_style; ?>;
1381
- font-weight: <?php echo $theme_row->page_nav_font_weight; ?>;
1382
- color: #<?php echo $theme_row->page_nav_font_color; ?>;
1383
- text-decoration: none;
1384
- padding: <?php echo $theme_row->page_nav_padding; ?>;
1385
- margin: <?php echo $theme_row->page_nav_margin; ?>;
1386
- border-radius: <?php echo $theme_row->page_nav_border_radius; ?>;
1387
- border-style: <?php echo $theme_row->page_nav_border_style; ?>;
1388
- border-width: <?php echo $theme_row->page_nav_border_width; ?>px;
1389
- border-color: #<?php echo $theme_row->page_nav_border_color; ?>;
1390
- background-color: #<?php echo $theme_row->page_nav_button_bg_color; ?>;
1391
- opacity: <?php echo number_format($theme_row->page_nav_button_bg_transparent / 100, 2, ".", ""); ?>;
1392
- filter: Alpha(opacity=<?php echo $theme_row->page_nav_button_bg_transparent; ?>);
1393
- box-shadow: <?php echo $theme_row->page_nav_box_shadow; ?>;
1394
- <?php echo ($theme_row->page_nav_button_transition ) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
1395
- }
1396
- @media only screen and (max-width : 320px) {
1397
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .displaying-num_<?php echo $bwg; ?> {
1398
- display: none;
1399
- }
1400
- }
1401
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_back_<?php echo $bwg; ?> {
1402
- background-color: rgba(0, 0, 0, 0);
1403
- color: #<?php echo $theme_row->album_compact_back_font_color; ?> !important;
1404
- cursor: pointer;
1405
- display: block;
1406
- font-family: <?php echo $theme_row->album_compact_back_font_style; ?>;
1407
- font-size: <?php echo $theme_row->album_compact_back_font_size; ?>px;
1408
- font-weight: <?php echo $theme_row->album_compact_back_font_weight; ?>;
1409
- text-decoration: none;
1410
- padding: <?php echo $theme_row->album_compact_back_padding; ?>;
1411
- }
1412
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_popup_overlay_<?php echo $bwg; ?> {
1413
- background-color: #<?php echo $theme_row->lightbox_overlay_bg_color; ?>;
1414
- opacity: <?php echo number_format($theme_row->lightbox_overlay_bg_transparent / 100, 2, ".", ""); ?>;
1415
- filter: Alpha(opacity=<?php echo $theme_row->lightbox_overlay_bg_transparent; ?>);
1416
  }
1417
- <?php
1418
- } /* For mosaic view or (thumbnail or masonry) view.*/
1419
- ?>
1420
- @media screen and (max-width: <?php echo $params['extended_album_thumb_width'] + 100; ?>px) {
1421
- div[class^="bwg_album_extended_thumb_div_"],
1422
- span[class^="bwg_album_thumb_"],
1423
- span[class^="bwg_album_thumb_"] .bwg_img_custom
1424
- {
1425
- width: 100% !important;
1426
- height: auto !important;
1427
- }
1428
- span[class^="bwg_album_thumb_"] .bwg_img_custom {
1429
- margin:0px auto !important;
1430
- }
1431
- }
1432
- @media screen and (max-width: <?php echo $params['extended_album_image_thumb_width'] + 100; ?>px) {
1433
- div[class^="bwg_mosaic_thumbnails_"],
1434
- div[class^="bwg_mosaic_thumb_spun_"],
1435
- img[class^="bwg_mosaic_thumb_"]
1436
- {
1437
- width: 100% !important;
1438
- height: auto !important;
1439
- }
1440
- img[class^="bwg_mosaic_thumb_"] {
1441
- margin:0px auto !important;
1442
- }
1443
- }
1444
- <?php
1445
  return ob_get_clean();
1446
  }
1447
  }
1
  <?php
 
 
 
2
 
3
+ class BWGViewAlbum_extended_preview extends BWGViewSite {
4
+ private $gallery_view = FALSE;
 
 
 
 
 
5
 
6
+ public function display( $params = array(), $bwg = 0 ) {
7
+ /* Gallery view class.*/
8
+ if ( $params['gallery_view_type'] == 'masonry' ) {
9
+ $gallery_type = 'Thumbnails_masonry';
10
  }
11
+ elseif ( $params['gallery_view_type'] == 'mosaic' ) {
12
+ $gallery_type = 'Thumbnails_mosaic';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  }
14
  else {
15
+ $gallery_type = 'Thumbnails';
 
 
 
 
 
 
 
 
 
 
 
 
16
  }
17
+ require_once BWG()->plugin_dir . '/frontend/views/BWGView' . $gallery_type . '.php';
18
+ $view_class = 'BWGView' . $gallery_type;
19
+ $this->gallery_view = new $view_class();
20
 
21
+ $theme_row = $params['theme_row'];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
 
23
+ $breadcrumb_arr = array(
24
+ 0 => array(
25
+ 'id' => $params['album_gallery_id'],
26
+ 'page' => isset($_REQUEST['page_number_' . $bwg]) ? (int) $_REQUEST['page_number_' . $bwg] : 1,
27
+ ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  );
29
+ $breadcrumb = isset($_REQUEST['bwg_album_breadcrumb_' . $bwg]) ? stripslashes(($_REQUEST['bwg_album_breadcrumb_' . $bwg])) : json_encode($breadcrumb_arr);
30
+ $params['breadcrumb_arr'] = json_decode($breadcrumb);
31
+
32
+ /* Set theme parameters for Gallery/Gallery group title/description.*/
33
+ $theme_row->thumb_gal_title_font_size = $theme_row->album_extended_gal_title_font_size;
34
+ $theme_row->thumb_gal_title_font_color = $theme_row->album_extended_gal_title_font_color;
35
+ $theme_row->thumb_gal_title_font_style = $theme_row->album_extended_gal_title_font_style;
36
+ $theme_row->thumb_gal_title_font_weight = $theme_row->album_extended_gal_title_font_weight;
37
+ $theme_row->thumb_gal_title_shadow = $theme_row->album_extended_gal_title_shadow;
38
+ $theme_row->thumb_gal_title_margin = $theme_row->album_extended_gal_title_margin;
39
+ $theme_row->thumb_gal_title_align = $theme_row->album_extended_gal_title_align;
40
+
41
+ $inline_style = $this->inline_styles($bwg, $theme_row, $params);
42
+ if ( !WDWLibrary::elementor_is_active() ) {
43
+ if ( !$params['ajax'] ) {
44
+ if ( BWG()->options->use_inline_stiles_and_scripts ) {
45
+ wp_add_inline_style('bwg_frontend', $inline_style);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  }
47
+ else {
48
+ echo '<style id="bwg-style-' . $bwg . '">' . $inline_style . '</style>';
49
  }
50
  }
 
 
 
51
  }
52
  else {
53
+ echo '<style id="bwg-style-' . $bwg . '">' . $inline_style . '</style>';
54
+ echo '<script id="bwg-script-' . $bwg .'">
55
+ jQuery(document).ready(function () {
56
+ bwg_main_ready();
57
+ });
58
+ </script>';
59
  }
60
+
61
+ ob_start();
62
+
63
+ if ( $params['album_view_type'] != 'gallery' ) {
64
+ ?>
65
+ <div data-bwg="<?php echo $bwg; ?>"
66
+ id="<?php echo $params['container_id']; ?>"
67
+ class="bwg-thumbnails bwg-container bwg-container-<?php echo $bwg; ?> bwg-album-thumbnails <?php echo 'bwg_album_extended_thumbnails_' . $bwg; ?>">
68
+ <?php
69
+ if ( !$params['album_gallery_rows']['page_nav']['total'] ) {
70
+ echo WDWLibrary::message(__('Album is empty.', BWG()->prefix), 'wd_error');
71
+ }
72
+ foreach ( $params['album_gallery_rows']['rows'] as $row ) {
73
+ $href = add_query_arg(array(
74
+ "type_" . $bwg => $row->def_type,
75
+ "album_gallery_id_" . $bwg => (($params['album_gallery_id'] != 0) ? $row->alb_gal_id : $row->id),
76
+ ), $_SERVER['REQUEST_URI']);
77
+
78
+ /* ToDO: Remove after refactoring.*/
79
+ $preview_path_url = htmlspecialchars_decode($row->preview_path, ENT_COMPAT | ENT_QUOTES);
80
+ $preview_path_url = explode('?bwg', $preview_path_url);
81
+ list($image_thumb_width, $image_thumb_height) = getimagesize($preview_path_url[0]);
82
+ $scale = max($params['extended_album_thumb_width'] / $image_thumb_width, $params['extended_album_thumb_height'] / $image_thumb_height);
83
+ $image_thumb_width *= $scale;
84
+ $image_thumb_height *= $scale;
85
+ $thumb_left = ($params['extended_album_thumb_width'] - $image_thumb_width) / 2;
86
+ $thumb_top = ($params['extended_album_thumb_height'] - $image_thumb_height) / 2;
87
+ ?>
88
+ <div class="bwg_album_extended_div_<?php echo $bwg; ?>">
89
+ <div class="bwg_album_extended_thumb_div_<?php echo $bwg; ?>">
90
+ <a class="bwg-album bwg_album_<?php echo $bwg; ?>"
91
+ <?php echo(BWG()->options->enable_seo ? "href='" . esc_url($href) . "'" : ""); ?>
92
+ style="font-size: 0;"
93
+ data-bwg="<?php echo $bwg; ?>"
94
+ data-container_id="<?php echo $params['container_id']; ?>"
95
+ data-alb_gal_id="<?php echo (($params['album_gallery_id'] != 0) ? $row->alb_gal_id : $row->id); ?>"
96
+ data-def_type="<?php echo $row->def_type; ?>"
97
+ data-title="<?php echo htmlspecialchars(addslashes($row->name)); ?>">
98
+ <span class="bwg_album_thumb_<?php echo $bwg; ?>" style="height:inherit;">
99
+ <span class="bwg_album_thumb_spun1_<?php echo $bwg; ?>">
100
+ <span class="bwg_album_thumb_spun2_<?php echo $bwg; ?>">
101
+ <img class="bwg_img_clear bwg_img_custom"
102
+ style="width:<?php echo $image_thumb_width; ?>px; height:<?php echo $image_thumb_height; ?>px; margin-left: <?php echo $thumb_left; ?>px; margin-top: <?php echo $thumb_top; ?>px;"
103
+ src="<?php echo $row->preview_image; ?>"
104
+ alt="<?php echo $row->name; ?>" />
105
+ </span>
106
+ </span>
107
+ </span>
108
+ </a>
109
+ </div>
110
+ <div class="bwg_album_extended_text_div_<?php echo $bwg; ?>">
111
  <?php
112
+ if ( $row->name ) {
 
 
 
113
  ?>
114
+ <a class="bwg-album bwg_album_<?php echo $bwg; ?>"
115
+ <?php echo (BWG()->options->enable_seo ? "href='" . esc_url($href) . "'" : ""); ?>
116
+ style="font-size: 0;"
117
+ data-bwg="<?php echo $bwg; ?>"
118
+ data-container_id="<?php echo $params['container_id']; ?>"
119
+ data-alb_gal_id="<?php echo(($params['album_gallery_id'] != 0) ? $row->alb_gal_id : $row->id); ?>"
120
+ data-def_type="<?php echo $row->def_type; ?>"
121
+ data-title="<?php echo htmlspecialchars(addslashes($row->name)); ?>">
122
+ <span class="bwg_title_spun_<?php echo $bwg; ?>"><?php echo $row->name; ?></span>
123
+ </a>
124
  <?php
125
  }
126
+ if ( $params['extended_album_description_enable'] && $row->description ) {
127
+ if ( stripos($row->description, '<!--more-->') !== FALSE ) {
128
+ $description_array = explode('<!--more-->', $row->description);
129
+ $description_short = $description_array[0];
130
+ $description_full = $description_array[1];
 
131
  ?>
132
+ <span class="bwg_description_spun1_<?php echo $bwg; ?>">
133
+ <span class="bwg_description_spun2_<?php echo $bwg; ?>">
134
+ <span class="bwg_description_short_<?php echo $bwg; ?>">
135
+ <?php echo $description_short; ?>
136
+ </span>
137
+ <span class="bwg_description_full">
138
+ <?php echo $description_full; ?>
139
+ </span>
140
  </span>
141
+ <span data-more-msg="<?php _e('More', BWG()->prefix); ?>"
142
+ data-hide-msg="<?php _e('Hide', BWG()->prefix); ?>"
143
+ class="bwg_description_more bwg_description_more_<?php echo $bwg; ?> bwg_more">
144
+ <?php _e('More', BWG()->prefix); ?>
145
+ </span>
146
+ </span>
 
147
  <?php
148
  }
149
  else {
150
  ?>
151
+ <span class="bwg_description_spun1_<?php echo $bwg; ?>">
152
+ <span class="bwg_description_short_<?php echo $bwg; ?>">
153
+ <?php echo $row->description; ?>
154
+ </span>
155
+ </span>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
156
  <?php
157
  }
158
  }
 
 
 
159
  ?>
160
  </div>
161
+ </div>
162
+ <?php
163
+ }
164
+ ?>
165
  </div>
166
+ <?php
167
+ }
168
+ elseif ( $params['album_view_type'] == 'gallery' ) {
169
+ $theme_row->thumb_title_pos = $theme_row->album_compact_thumb_title_pos;
170
+ if ( $this->gallery_view && method_exists($this->gallery_view, 'display') ) {
171
+ $this->gallery_view->display($params, $bwg, TRUE);
 
 
 
 
 
 
172
  }
173
+ }
174
+ ?>
175
+ <input type="hidden" id="bwg_album_breadcrumb_<?php echo $bwg; ?>" name="bwg_album_breadcrumb_<?php echo $bwg; ?>" value='<?php echo $breadcrumb; ?>' />
176
+ <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
177
 
178
+ $content = ob_get_clean();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
179
 
180
+ if ( $params['ajax'] ) {/* Ajax response after ajax call for filters and pagination.*/
181
+ if ( $params['album_view_type'] != 'gallery' ) {
182
+ parent::ajax_content($params, $bwg, $content);
183
+ }
184
+ else {
185
+ echo $content;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
186
  }
 
 
 
 
 
 
 
187
  }
188
  else {
189
+ parent::container($params, $bwg, $content);
190
  }
191
  }
192
 
193
+ private function inline_styles( $bwg, $theme_row, $params ) {
194
  ob_start();
 
195
  $rgb_album_extended_thumbs_bg_color = WDWLibrary::spider_hex2rgb($theme_row->album_extended_thumbs_bg_color);
196
  $rgb_album_extended_div_bg_color = WDWLibrary::spider_hex2rgb($theme_row->album_extended_div_bg_color);
 
197
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
198
  /* Style for thumbnail view.*/
199
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_album_extended_thumbnails_<?php echo $bwg; ?> * {
200
  -moz-box-sizing: border-box;
291
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_description_short_<?php echo $bwg; ?> {
292
  display: inline;
293
  }
294
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_description_full {
 
 
 
 
 
 
 
 
 
 
 
 
 
295
  display: none;
296
  }
297
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_description_more_<?php echo $bwg; ?> {
334
  z-index: 102;
335
  }
336
  @media only screen and (min-width: 480px) {
337
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_album_thumb_spun1_<?php echo $bwg; ?>:hover {
338
  transform: <?php echo $theme_row->album_extended_thumb_hover_effect; ?>(<?php echo $theme_row->album_extended_thumb_hover_effect_value; ?>);
339
  -ms-transform: <?php echo $theme_row->album_extended_thumb_hover_effect; ?>(<?php echo $theme_row->album_extended_thumb_hover_effect_value; ?>);
340
  -webkit-transform: <?php echo $theme_row->album_extended_thumb_hover_effect; ?>(<?php echo $theme_row->album_extended_thumb_hover_effect_value; ?>);
341
+ }
342
  }
343
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_album_thumb_spun2_<?php echo $bwg; ?> {
 
344
  display: inline-block;
345
  height: <?php echo $params['extended_album_thumb_height']; ?>px;
346
  overflow: hidden;
347
  width: <?php echo $params['extended_album_thumb_width']; ?>px;
348
  }
349
+ @media screen and (max-width: <?php echo $params['extended_album_thumb_width'] + 100; ?>px) {
350
+ div[class^="bwg_album_extended_thumb_div_"],
351
+ span[class^="bwg_album_thumb_"],
352
+ span[class^="bwg_album_thumb_"] .bwg_img_custom
353
+ {
354
+ width: 100% !important;
355
+ height: auto !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
356
  }
357
+ span[class^="bwg_album_thumb_"] .bwg_img_custom {
358
+ margin:0px auto !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
359
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
360
  }
361
+ @media screen and (max-width: <?php echo $params['extended_album_image_thumb_width'] + 100; ?>px) {
362
+ div[class^="bwg_mosaic_thumbnails_"],
363
+ div[class^="bwg_mosaic_thumb_spun_"],
364
+ img[class^="bwg_mosaic_thumb_"]
365
+ {
366
+ width: 100% !important;
367
+ height: auto !important;
 
 
 
 
368
  }
369
+ img[class^="bwg_mosaic_thumb_"] {
370
+ margin:0px auto !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
371
  }
372
  }
373
+ <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
374
 
375
+ /* Add gallery styles, if gallery type exist.*/
376
+ if ( $this->gallery_view && method_exists($this->gallery_view, 'inline_styles') ) {
377
+ /* Set parameters for gallery view from album shortcode.*/
378
+ $params['thumb_width'] = $params['extended_album_image_thumb_width'];
379
+ $params['thumb_height'] = $params['extended_album_image_thumb_height'];
380
+ $params['image_title'] = $params['extended_album_image_title'];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
381
 
382
+ $params['image_enable_page'] = $params['extended_album_enable_page'];
383
+ $params['images_per_page'] = $params['extended_albums_per_page'];
384
+ $params['items_col_num'] = $params['extended_album_image_column_number'];
385
+
386
+ $params['masonry_hor_ver'] = 'vertical';
387
+ $params['show_masonry_thumb_description'] = BWG()->options->show_masonry_thumb_description;
388
+
389
+ $params['mosaic_hor_ver'] = $params['extended_album_mosaic_hor_ver'];
390
+ $params['resizable_mosaic'] = $params['extended_album_resizable_mosaic'];
391
+ $params['mosaic_total_width'] = $params['extended_album_mosaic_total_width'];
392
+
393
+ echo $this->gallery_view->inline_styles($bwg, $theme_row, $params);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
394
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
395
  return ob_get_clean();
396
  }
397
  }
frontend/views/BWGViewGalleryBox.php CHANGED
@@ -16,8 +16,8 @@ class BWGViewGalleryBox {
16
  $bwg = (isset($_GET['current_view']) ? esc_html($_GET['current_view']) : 0);
17
  $current_image_id = WDWLibrary::esc_script('get', 'image_id', 0, 'int');
18
  $theme_id = (isset($_GET['theme_id']) ? esc_html($_GET['theme_id']) : 1);
19
- $thumb_width = BWG()->options->thumb_width;
20
- $thumb_height = BWG()->options->thumb_height;
21
  $open_with_fullscreen = WDWLibrary::esc_script('get', 'open_with_fullscreen', 0, 'int');
22
  $open_with_autoplay = WDWLibrary::esc_script('get', 'open_with_autoplay', 0, 'int');
23
  $image_width = WDWLibrary::esc_script('get', 'image_width', 800, 'int');
@@ -37,6 +37,7 @@ class BWGViewGalleryBox {
37
 
38
  $slideshow_interval = (isset($_GET['slideshow_interval']) ? (int) $_GET['slideshow_interval'] : 5);
39
  $enable_image_ctrl_btn = (isset($_GET['enable_image_ctrl_btn']) ? esc_html($_GET['enable_image_ctrl_btn']) : 0);
 
40
  $enable_comment_social = (BWG()->is_pro && isset($_GET['enable_comment_social']) ? esc_html($_GET['enable_comment_social']) : 0);
41
  $enable_image_facebook = (BWG()->is_pro && isset($_GET['enable_image_facebook']) ? esc_html($_GET['enable_image_facebook']) : 0);
42
  $enable_image_twitter = (BWG()->is_pro && isset($_GET['enable_image_twitter']) ? esc_html($_GET['enable_image_twitter']) : 0);
@@ -47,7 +48,6 @@ class BWGViewGalleryBox {
47
 
48
  $popup_enable_email = (BWG()->is_pro && isset($_GET['popup_enable_email']) ? esc_html($_GET['popup_enable_email']) : 0);
49
  $popup_enable_captcha = (BWG()->is_pro && isset($_GET['popup_enable_captcha']) ? esc_html($_GET['popup_enable_captcha']) : 0);
50
-
51
  $comment_moderation = (BWG()->is_pro && isset($_GET['comment_moderation']) ? esc_html($_GET['comment_moderation']) : 0);
52
  $autohide_lightbox_navigation = (isset($_GET['autohide_lightbox_navigation']) ? esc_html($_GET['autohide_lightbox_navigation']) : BWG()->options->autohide_lightbox_navigation);
53
  $popup_enable_fullsize_image = (isset($_GET['popup_enable_fullsize_image']) ? esc_html($_GET['popup_enable_fullsize_image']) : BWG()->options->popup_enable_fullsize_image);
@@ -69,14 +69,17 @@ class BWGViewGalleryBox {
69
  $watermark_width = (isset($_GET['watermark_width']) ? (int) $_GET['watermark_width'] : 90);
70
  $watermark_height = (isset($_GET['watermark_height']) ? (int) $_GET['watermark_height'] : 90);
71
 
72
- $image_right_click = isset(BWG()->options->image_right_click) ? BWG()->options->image_right_click : 0;
 
 
 
 
73
 
74
- $theme_row = WDWLibrary::get_theme_row_data($theme_id);
75
  $filmstrip_direction = 'horizontal';
76
  if ($theme_row->lightbox_filmstrip_pos == 'right' || $theme_row->lightbox_filmstrip_pos == 'left') {
77
  $filmstrip_direction = 'vertical';
78
  }
79
- $image_filmstrip_height = 0;
80
  $image_filmstrip_width = 0;
81
  if ( $enable_image_filmstrip ) {
82
  if ( $filmstrip_direction == 'horizontal' ) {
@@ -90,13 +93,10 @@ class BWGViewGalleryBox {
90
  $image_filmstrip_height = round($thumb_ratio * $image_filmstrip_width);
91
  }
92
  }
93
- else {
94
- $image_filmstrip_height = 0;
95
- $image_filmstrip_width = 0;
96
- }
97
  $image_rows = $this->model->get_image_rows_data($gallery_id, $bwg, $sort_by, $order_by, $tag);
98
 
99
  $image_id = (isset($_POST['image_id']) ? (int) $_POST['image_id'] : $current_image_id);
 
100
  $comment_rows = $this->model->get_comment_rows_data($image_id);
101
 
102
  $image_pricelist = $this->model->get_image_pricelist($image_id);
@@ -106,7 +106,7 @@ class BWGViewGalleryBox {
106
 
107
  $params_array = array(
108
  'action' => 'GalleryBox',
109
- 'image_id' => $current_image_id,
110
  'gallery_id' => $gallery_id,
111
  'tags' => $tag,
112
  'theme_id' => $theme_id,
@@ -137,8 +137,9 @@ class BWGViewGalleryBox {
137
  'enable_image_tumblr' => $enable_image_tumblr,
138
  'watermark_type' => $watermark_type,
139
  'slideshow_effect_duration' => $slideshow_effect_duration,
140
- 'popup_enable_captcha' => $popup_enable_captcha,
141
  'popup_enable_email' => $popup_enable_email,
 
 
142
  );
143
  if ($watermark_type != 'none') {
144
  $params_array['watermark_link'] = $watermark_link;
@@ -157,7 +158,9 @@ class BWGViewGalleryBox {
157
  $params_array['watermark_height'] = $watermark_height;
158
  }
159
  $popup_url = add_query_arg(array($params_array), admin_url('admin-ajax.php'));
 
160
  $filmstrip_thumb_margin = trim($theme_row->lightbox_filmstrip_thumb_margin);
 
161
  $margins_split = explode(" ", $filmstrip_thumb_margin);
162
  $all_images_top_bottom_space = 0;
163
  $all_images_right_left_space = 0;
@@ -514,7 +517,7 @@ class BWGViewGalleryBox {
514
  padding:8px 5px !important;
515
  font-weight: bold;
516
  font-size: 13px;
517
- }
518
  .pge_tabs li a{
519
  color:#<?php echo $theme_row->lightbox_comment_bg_color; ?>!important;
520
  }
@@ -612,6 +615,10 @@ class BWGViewGalleryBox {
612
  .bwg_comments .bwg-submit-disabled {
613
  opacity: 0.5;
614
  }
 
 
 
 
615
  .bwg_comments input[type="text"],
616
  .bwg_comments textarea,
617
  .bwg_ecommerce_panel input[type="text"],
@@ -646,7 +653,7 @@ class BWGViewGalleryBox {
646
  font-size: <?php echo $theme_row->lightbox_comment_body_font_size; ?>px;
647
  }
648
  .bwg_comment_delete_btn {
649
- color: #FFFFFF;
650
  cursor: pointer;
651
  float: right;
652
  font-size: 14px;
@@ -661,7 +668,7 @@ class BWGViewGalleryBox {
661
  margin: 5px;
662
  z-index: 10150;
663
  }
664
- .bwg_ecommerce_panel a:hover{
665
  text-decoration:underline;
666
  }
667
  .bwg_comment_textarea::-webkit-scrollbar {
@@ -672,7 +679,7 @@ class BWGViewGalleryBox {
672
  .bwg_comment_textarea::-webkit-scrollbar-thumb {
673
  background-color: rgba(255, 255, 255, 0.55);
674
  border-radius: 2px;
675
- }
676
  .bwg_comment_textarea::-webkit-scrollbar-thumb:hover {
677
  background-color: #D9D9D9;
678
  }
@@ -712,7 +719,7 @@ class BWGViewGalleryBox {
712
  <?php echo $theme_row->lightbox_filmstrip_pos; ?>: <?php echo ($filmstrip_direction == 'horizontal' ? $image_filmstrip_height : $image_filmstrip_width); ?>px;
713
  vertical-align: middle;
714
  width: 100%;
715
- }
716
  .bwg_filmstrip_container {
717
  display: <?php echo ($filmstrip_direction == 'horizontal'? 'table' : 'block'); ?>;
718
  height: <?php echo ($filmstrip_direction == 'horizontal'? $image_filmstrip_height : $image_height); ?>px;
@@ -940,7 +947,7 @@ class BWGViewGalleryBox {
940
  .bwg_image_info::-webkit-scrollbar-thumb {
941
  background-color: rgba(255, 255, 255, 0.55);
942
  border-radius: 2px;
943
- }
944
  .bwg_image_info::-webkit-scrollbar-thumb:hover {
945
  background-color: #D9D9D9;
946
  }
@@ -1046,7 +1053,7 @@ class BWGViewGalleryBox {
1046
  $current_filename = $image_row->filename;
1047
  $image_id_exist = TRUE;
1048
  }
1049
- $has_embed = $has_embed || preg_match('/EMBED/',$image_row->filetype) == 1;
1050
  if ( BWG()->is_pro ) {
1051
  $current_pricelist_id = $this->model->get_image_pricelist($image_row->id) ? $this->model->get_image_pricelist($image_row->id) : 0;
1052
  $_pricelist_data = $this->model->get_image_pricelists($current_pricelist_id);
@@ -1080,16 +1087,11 @@ class BWGViewGalleryBox {
1080
  data["<?php echo $key; ?>"]["rate"] = "<?php echo $image_row->rate; ?>";
1081
  data["<?php echo $key; ?>"]["rate_count"] = "<?php echo $image_row->rate_count; ?>";
1082
  data["<?php echo $key; ?>"]["hit_count"] = "<?php echo $image_row->hit_count; ?>";
1083
- <?php
1084
- if ( BWG()->is_pro ) {
1085
- ?>
1086
  data["<?php echo $key; ?>"]["pricelist"] = "<?php echo $current_pricelist_id ? $current_pricelist_id : 0; ?>";
1087
  data["<?php echo $key; ?>"]["pricelist_manual_price"] = "<?php echo isset($_pricelist->price) ? $_pricelist->price : 0; ?>";
1088
  data["<?php echo $key; ?>"]["pricelist_sections"] = "<?php echo isset($_pricelist->sections) ? $_pricelist->sections : ""; ?>";
1089
- <?php
1090
- }
1091
- ?>
1092
- <?php
1093
  }
1094
  ?>
1095
  </script>
@@ -1179,16 +1181,17 @@ class BWGViewGalleryBox {
1179
  <div style="display:table; margin:0 auto;">
1180
  <span class="bwg_watermark_spun" id="bwg_watermark_container">
1181
  <?php
 
1182
  if ($watermark_type == 'image') {
1183
  ?>
1184
- <a href="<?php echo esc_js(urldecode($watermark_link)); ?>" target="_blank">
1185
  <img class="bwg_watermark_image bwg_watermark" src="<?php echo $watermark_url; ?>" />
1186
  </a>
1187
  <?php
1188
  }
1189
  elseif ($watermark_type == 'text') {
1190
  ?>
1191
- <a class="bwg_none_selectable bwg_watermark_text bwg_watermark" target="_blank" href="<?php echo esc_js(urldecode($watermark_link)); ?>"><?php echo stripslashes($watermark_text); ?></a>
1192
  <?php
1193
  }
1194
  ?>
@@ -1201,9 +1204,9 @@ class BWGViewGalleryBox {
1201
  ?>
1202
  <div id="bwg_image_container" class="bwg_image_container">
1203
  <?php
1204
- echo $this->loading();
1205
- if ($enable_image_ctrl_btn) {
1206
- $share_url = add_query_arg(array('curr_url' => $current_url, 'image_id' => $current_image_id), WDWLibrary::get_share_page()) . '#bwg' . $gallery_id . '/' . $current_image_id;
1207
  ?>
1208
  <div class="bwg_btn_container">
1209
  <div class="bwg_ctrl_btn_container">
@@ -1277,10 +1280,12 @@ class BWGViewGalleryBox {
1277
  </a>
1278
  <?php
1279
  }
1280
- if ($popup_enable_download) {
1281
  $style = 'none';
1282
  $current_image_arr = explode('/', $current_image_url);
1283
- if (!$is_embed) {
 
 
1284
  $download_href = BWG()->upload_url . str_replace('/thumb/', '/.original/', $current_thumb_url);
1285
  $style = 'inline-block';
1286
  }
@@ -1397,14 +1402,15 @@ class BWGViewGalleryBox {
1397
  $current_key = -6;
1398
  foreach ( $image_rows as $key => $image_row ) {
1399
  $is_embed = preg_match('/EMBED/',$image_row->filetype)==1 ? true :false;
1400
- $is_embed_instagram_post = preg_match('/INSTAGRAM_POST/',$image_row->filetype)==1 ? true :false;
1401
- $is_embed_instagram_video = preg_match('/INSTAGRAM_VIDEO/', $image_row->filetype) == 1 ? true :false;
1402
- if ($image_row->id == $current_image_id) {
 
1403
  $current_key = $key;
1404
  ?>
1405
  <span class="bwg_popup_image_spun" id="bwg_popup_image" image_id="<?php echo $image_row->id; ?>">
1406
- <span class="bwg_popup_image_spun1" style="display: <?php echo (!$is_embed ? 'table' : 'block'); ?>; width: inherit; height: inherit;">
1407
- <span class="bwg_popup_image_spun2" style="display: <?php echo (!$is_embed ? 'table-cell' : 'block'); ?>; vertical-align: middle; text-align: center; height: 100%;">
1408
  <?php
1409
  if (!$is_embed) {
1410
  ?>
@@ -1412,7 +1418,7 @@ class BWGViewGalleryBox {
1412
  <?php
1413
  }
1414
  else { /*$is_embed*/ ?>
1415
- <span id="embed_conteiner" class="bwg_popup_embed bwg_popup_watermark" style="display: block; table-layout: fixed; height: 100%;">
1416
  <?php echo $is_embed_instagram_video ? '<span class="bwg_inst_play_btn_cont" onclick="bwg_play_instagram_video(this)" ><span class="bwg_inst_play"></span></span>' : '';
1417
  if ($is_embed_instagram_post) {
1418
  $post_width = $image_width - ($filmstrip_direction == 'vertical' ? $image_filmstrip_width : 0);
@@ -1436,7 +1442,7 @@ class BWGViewGalleryBox {
1436
  WDWLibraryEmbed::display_embed($image_row->filetype, $image_row->image_url, $image_row->filename, array('class' => "bwg_embed_frame", 'data-width' => $instagram_post_width, 'data-height' => $instagram_post_height, 'frameborder' => "0", 'style' => "width:" . $post_width . "px; height:" . $post_height . "px; vertical-align:middle; display:inline-block; position:relative;"));
1437
  }
1438
  else{
1439
- WDWLibraryEmbed::display_embed($image_row->filetype, $image_row->image_url, $image_row->filename, array('class'=>"bwg_embed_frame", 'frameborder'=>"0", 'allowfullscreen'=>"allowfullscreen", 'style'=>"display:block; width:inherit; height:inherit; vertical-align:middle;"));
1440
  }
1441
  ?>
1442
  </span>
@@ -1461,7 +1467,10 @@ class BWGViewGalleryBox {
1461
  <a id="spider_popup_right" <?php echo ($enable_loop == 0 && $current_key == count($image_rows) - 1) ? 'style="display: none;"' : ''; ?>><span id="spider_popup_right-ico"><span><i class="bwg_next_btn fa <?php echo $theme_row->lightbox_rl_btn_style; ?>-right"></i></span></span></a>
1462
  </div>
1463
  </div>
1464
- <?php if ($enable_comment_social) { ?>
 
 
 
1465
  <div class="bwg_comment_wrap bwg_popup_sidebar_wrap">
1466
  <div class="bwg_comment_container bwg_popup_sidebar_container bwg_close">
1467
  <div id="ajax_loading" style="position:absolute;">
@@ -1470,65 +1479,34 @@ class BWGViewGalleryBox {
1470
  </span>
1471
  </div>
1472
  <div class="bwg_comments bwg_popup_sidebar">
1473
- <?php
1474
- $captcha_error_message = '';
1475
- $email_error_message = '';
1476
- $bwg_name = '';
1477
- $bwg_comment = '';
1478
- $bwg_email = '';
1479
- if (isset($_POST['ajax_task']) && (esc_html(stripslashes($_POST['ajax_task'])) === 'save')) {
1480
- if ($popup_enable_captcha) {
1481
- $bwg_captcha_input = (isset($_POST['bwg_captcha_input']) ? esc_html(stripslashes($_POST['bwg_captcha_input'])) : '');
1482
- WDWLibrary::bwg_session_start();
1483
- $bwg_captcha_code = (isset($_SESSION['bwg_captcha_code']) ? esc_html(stripslashes($_SESSION['bwg_captcha_code'])) : '');
1484
- if ($bwg_captcha_input !== $bwg_captcha_code) {
1485
- $captcha_error_message = __('Error. Incorrect Verification Code.', BWG()->prefix);
1486
- $bwg_name = (isset($_POST['bwg_name']) ? esc_html(stripslashes($_POST['bwg_name'])) : '');
1487
- $bwg_comment = (isset($_POST['bwg_comment']) ? esc_html(stripslashes($_POST['bwg_comment'])) : '');
1488
- $bwg_email = (isset($_POST['bwg_email']) ? esc_html(stripslashes($_POST['bwg_email'])) : '');
1489
- }
1490
- }
1491
- if ($popup_enable_email && isset($_POST['bwg_email']) && !is_email(stripslashes($_POST['bwg_email']))) {
1492
- $email_error_message = __( 'This is not a valid email address.', BWG()->prefix );
1493
- $bwg_name = (isset($_POST['bwg_name']) ? esc_html(stripslashes($_POST['bwg_name'])) : '');
1494
- $bwg_comment = (isset($_POST['bwg_comment']) ? esc_html(stripslashes($_POST['bwg_comment'])) : '');
1495
- $bwg_email = (isset($_POST['bwg_email']) ? esc_html(stripslashes($_POST['bwg_email'])) : '');
1496
- }
1497
- }
1498
- ?>
1499
- <div id="bwg_comments bwg_popup_sidebar">
1500
  <div title="<?php echo __('Hide Comments', BWG()->prefix); ?>" class="bwg_comments_close bwg_popup_sidebar_close">
1501
  <i class="bwg_comments_close_btn bwg_popup_sidebar_close_btn fa fa-arrow-<?php echo $theme_row->lightbox_comment_pos; ?>"></i>
1502
  </div>
1503
  <form id="bwg_comment_form" method="post" action="<?php echo $popup_url; ?>">
1504
- <p><label for="bwg_name"><?php echo __('Name', BWG()->prefix); ?> </label></p>
1505
- <p><input type="text" name="bwg_name" id="bwg_name" <?php echo ((get_current_user_id() != 0) ? 'readonly="readonly"' : ''); ?>
1506
- value="<?php echo ((get_current_user_id() != 0) ? get_userdata(get_current_user_id())->display_name : $bwg_name); ?>" /></p>
1507
- <?php
1508
- if ($popup_enable_email) {
1509
- ?>
1510
- <p><label for="bwg_email"><?php echo __('Email', BWG()->prefix); ?> </label></p>
1511
- <p><input type="text" name="bwg_email" id="bwg_email"
1512
  value="<?php echo ((get_current_user_id() != 0) ? get_userdata(get_current_user_id())->user_email : $bwg_email); ?>" /></p>
1513
- <p><span class="bwg_comment_error"><?php echo $email_error_message; ?></span></p>
1514
- <?php
1515
- }
1516
- ?>
1517
- <p><label for="bwg_comment"><?php echo __('Comment', BWG()->prefix); ?> </label></p>
1518
- <p><textarea class="bwg_comment_textarea" name="bwg_comment" id="bwg_comment"><?php echo $bwg_comment; ?></textarea></p>
1519
- <?php
1520
- if ($popup_enable_captcha) {
1521
- ?>
1522
- <p><label for="bwg_captcha_input"><?php echo __('Verification Code', BWG()->prefix); ?></label></p>
1523
- <p>
1524
- <input id="bwg_captcha_input" name="bwg_captcha_input" class="bwg_captcha_input" type="text">
1525
- <img id="bwg_captcha_img" class="bwg_captcha_img" type="captcha" digit="6" src="<?php echo add_query_arg(array('action' => 'bwg_captcha', 'digit' => 6, 'i' => ''), admin_url('admin-ajax.php')); ?>" onclick="bwg_captcha_refresh('bwg_captcha')" ontouchend="bwg_captcha_refresh('bwg_captcha')" />
1526
- <span id="bwg_captcha_refresh" class="bwg_captcha_refresh" onclick="bwg_captcha_refresh('bwg_captcha')" ontouchend="bwg_captcha_refresh('bwg_captcha')"></span>
1527
- </p>
1528
- <p><span class="bwg_comment_error"><?php echo $captcha_error_message; ?></span></p>
1529
- <?php
1530
- }
1531
- ?>
1532
  <?php
1533
  $privacy_policy_url = false;
1534
  if ( WDWLibrary::get_privacy_policy_url() ) {
@@ -1549,74 +1527,23 @@ class BWGViewGalleryBox {
1549
  ?>
1550
  </label>
1551
  </p>
 
1552
  <?php } ?>
1553
- <p><input <?php echo ($privacy_policy_url) ? 'disabled' : '' ?>
1554
- onclick="if ( spider_check_required('bwg_name', '<?php _e('Name', BWG()->prefix); ?>')
1555
- <?php if ($popup_enable_email) { ?>
1556
- || spider_check_required('bwg_email', '<?php _e('Email', BWG()->prefix); ?>')
1557
- || spider_check_email('bwg_email')
1558
- <?php } ?>
1559
- || spider_check_required('bwg_comment', '<?php _e('Comment', BWG()->prefix); ?>')
1560
- ) { return false; }
1561
- var cur_image_key = parseInt(jQuery('#bwg_current_image_key').val());
1562
- ++data[cur_image_key]['comment_count'];
1563
- spider_set_input_value('ajax_task', 'save');
1564
- spider_set_input_value('image_id', jQuery('#bwg_popup_image').attr('image_id'));
1565
- spider_ajax_save('bwg_comment_form');
1566
- return false;"
1567
- ontouchend="if (spider_check_required('bwg_name', '<?php _e('Name', BWG()->prefix); ?>')
1568
- <?php if ($popup_enable_email) { ?>
1569
- || spider_check_required('bwg_email', '<?php _e('Email', BWG()->prefix); ?>')
1570
- || spider_check_email('bwg_email')
1571
- <?php } ?>
1572
- || spider_check_required('bwg_comment', '<?php _e('Comment', BWG()->prefix); ?>')
1573
- ) { return false; }
1574
- var cur_image_key = parseInt(jQuery('#bwg_current_image_key').val());
1575
- ++data[cur_image_key]['comment_count'];
1576
- spider_set_input_value('ajax_task', 'save');
1577
- spider_set_input_value('image_id', jQuery('#bwg_popup_image').attr('image_id'));
1578
- spider_ajax_save('bwg_comment_form');
1579
- return false;" class="bwg_submit <?php echo ($privacy_policy_url) ? 'bwg-submit-disabled' : '' ?>" type="submit" name="bwg_submit" id="bwg_submit" value="<?php echo __('Submit', BWG()->prefix); ?>" /></p>
1580
- <?php echo (!current_user_can('manage_options') && ($comment_moderation && (isset($_POST['bwg_comment']) && esc_html($_POST['bwg_comment'])))) ? __('Your comment is awaiting moderation', BWG()->prefix) : ''; ?>
1581
- <input id="ajax_task" name="ajax_task" type="hidden" value="" />
1582
- <input id="image_id" name="image_id" type="hidden" value="<?php echo $image_id; ?>" />
1583
  <input id="comment_id" name="comment_id" type="hidden" value="" />
 
1584
  </form>
1585
- </div>
1586
  <div id="bwg_added_comments">
1587
  <?php
1588
- foreach ($comment_rows as $comment_row) {
1589
- ?>
1590
- <div class="bwg_single_comment">
1591
- <p class="bwg_comment_header_p">
1592
- <span class="bwg_comment_header"><?php echo $comment_row->name; ?></span>
1593
- <?php
1594
- if (current_user_can('manage_options')) {
1595
- ?>
1596
- <i onclick="var cur_image_key = parseInt(jQuery('#bwg_current_image_key').val());
1597
- --data[cur_image_key]['comment_count'];
1598
- spider_set_input_value('ajax_task', 'delete');
1599
- spider_set_input_value('image_id', jQuery('#bwg_popup_image').attr('image_id'));
1600
- spider_set_input_value('comment_id', '<?php echo $comment_row->id; ?>');
1601
- spider_ajax_save('bwg_comment_form');
1602
- return false;"
1603
- ontouchend="var cur_image_key = parseInt(jQuery('#bwg_current_image_key').val());
1604
- --data[cur_image_key]['comment_count'];
1605
- spider_set_input_value('ajax_task', 'delete');
1606
- spider_set_input_value('image_id', jQuery('#bwg_popup_image').attr('image_id'));
1607
- spider_set_input_value('comment_id', '<?php echo $comment_row->id; ?>');
1608
- spider_ajax_save('bwg_comment_form');
1609
- return false;" title="<?php echo __('Delete Comment', BWG()->prefix); ?>" class="bwg_comment_delete_btn fa fa-times"></i>
1610
- <?php
1611
- }
1612
- ?>
1613
- <span class="bwg_comment_date"><?php echo $comment_row->date; ?></span>
1614
- </p>
1615
- <div class="bwg_comment_body_p">
1616
- <span class="bwg_comment_body"><?php echo wpautop($comment_row->comment); ?></span>
1617
- </div>
1618
- </div>
1619
- <?php
1620
  }
1621
  ?>
1622
  </div>
@@ -1631,7 +1558,6 @@ class BWGViewGalleryBox {
1631
  $options = $pricelist_data["options"];
1632
  $products_in_cart = $pricelist_data["products_in_cart"];
1633
  $pricelist_sections = $pricelist->sections ? explode("," , $pricelist->sections) : array();
1634
-
1635
  ?>
1636
  <div class="bwg_ecommerce_wrap bwg_popup_sidebar_wrap" id="bwg_ecommerce_wrap">
1637
  <div class="bwg_ecommerce_container bwg_popup_sidebar_container bwg_close">
@@ -1703,7 +1629,7 @@ class BWGViewGalleryBox {
1703
  <input type="number" min="1" class="image_count" value="1" onchange="changeMenualTotal(this);">
1704
  </p>
1705
  </div>
1706
- <?php if(empty($parameters) == false){?>
1707
  <div class="image_parameters">
1708
  <p><?php //echo __('Parameters', BWG()->prefix); ?></p>
1709
  <?php
@@ -1721,17 +1647,17 @@ class BWGViewGalleryBox {
1721
  echo '<label for="parameter_input">'.$parameter["title"].'</label>';
1722
  echo '<input type="text" name="parameter_input'.$parameter_id.'" id="parameter_input" value="'. $parameter["values"][0]["parameter_value"] .'">';
1723
  echo '</div>';
1724
- break;
1725
  case "3" :
1726
  echo '<div class="image_selected_parameter" data-parameter-id="'.$parameter_id.'" data-parameter-type = "'.$parameter["type"].'">';
1727
  echo '<label for="parameter_textarea">'.$parameter["title"].'</label>';
1728
  echo '<textarea name="parameter_textarea'.$parameter_id.'" id="parameter_textarea" >'. $parameter["values"][0]["parameter_value"] .'</textarea>';
1729
  echo '</div>';
1730
- break;
1731
  case "4" :
1732
  echo '<div class="image_selected_parameter" data-parameter-id="'.$parameter_id.'" data-parameter-type = "'.$parameter["type"].'">';
1733
  echo '<label for="parameter_select">'.$parameter["title"].'</label>';
1734
- echo '<select name="parameter_select'.$parameter_id.'" id="parameter_select" onchange="onSelectableParametersChange(this)">';
1735
  echo '<option value="+*0*">-Select-</option>';
1736
  foreach($parameter["values"] as $values){
1737
  $price_addon = $values["parameter_value_price"] == "0" ? "" : ' ('.$values["parameter_value_price_sign"].$options->currency_sign.number_format((float)$values["parameter_value_price"],2).')';
@@ -1754,8 +1680,8 @@ class BWGViewGalleryBox {
1754
  }
1755
  echo '<input type="hidden" class="already_selected_values">';
1756
  echo '</div>';
1757
- break;
1758
- case "6" :
1759
  echo '<div class="image_selected_parameter" data-parameter-id="'.$parameter_id.'" data-parameter-type = "'.$parameter["type"].'">';
1760
  echo '<label>'.$parameter["title"].'</label>';
1761
  foreach($parameter["values"] as $values){
@@ -1772,7 +1698,7 @@ class BWGViewGalleryBox {
1772
  default:
1773
  break;
1774
  }
1775
- echo '</div>';
1776
  }
1777
  ?>
1778
 
@@ -1782,7 +1708,7 @@ class BWGViewGalleryBox {
1782
  <span><b><?php echo __('Total', BWG()->prefix).': '.$options->currency_sign;?></b></span>
1783
  <b><span class="product_manual_price" data-price="<?php echo $pricelist->price; ?>" data-actual-price="<?php echo $pricelist->price; ?>"><?php echo number_format((float)$pricelist->price,2)?></span></b>
1784
  </p>
1785
- </div>
1786
  </div>
1787
  <!-- downloads -->
1788
  <div class="downloads pge_pricelist" id="downloads" <?php if( (count($pricelist_sections) == 1 && end($pricelist_sections) == "downloads")) echo 'style="display: block;"'; else echo 'style="display: none;"'; ?> >
@@ -1792,8 +1718,8 @@ class BWGViewGalleryBox {
1792
  <th><?php echo __('Name', BWG()->prefix); ?></th>
1793
  <th><?php echo __('Dimensions', BWG()->prefix); ?></th>
1794
  <th><?php echo __('Price', BWG()->prefix); ?></th>
1795
- <th><?php echo __('Choose', BWG()->prefix); ?></th>
1796
- </tr>
1797
  </thead>
1798
  <tbody>
1799
  <?php
@@ -1804,18 +1730,18 @@ class BWGViewGalleryBox {
1804
  <td><?php echo $download_item->item_name; ?></td>
1805
  <td><?php echo $download_item->item_longest_dimension.'px'; ?></td>
1806
  <td class="item_price"><?php echo $options->currency_sign. number_format((float)$download_item->item_price, 2); ?></td>
1807
- <?php if($options->show_digital_items_count == 0){
1808
- ?>
1809
- <td><input type="checkbox" name="selected_download_item" value="<?php echo $download_item->id; ?>" onchange="changeDownloadsTotal(this);"></td>
1810
- <?php
1811
- }
1812
- else{
1813
- ?>
1814
- <td><input type="number" min="0" class="digital_image_count" value="0" onchange="changeDownloadsTotal(this);"></td>
1815
- <?php
1816
- }
1817
- ?>
1818
- </tr>
1819
  <?php
1820
  }
1821
  }
@@ -1826,16 +1752,14 @@ class BWGViewGalleryBox {
1826
  <span><b><?php echo __('Total', BWG()->prefix).': '.$options->currency_sign;?></b></span>
1827
  <b><span class="product_downloads_price">0</span></b>
1828
  </p>
1829
- </div>
1830
  </div>
1831
  </div>
1832
-
1833
  <div style="margin-top:10px;">
1834
  <input type="button" class="bwg_submit" value="<?php echo __('Add to cart', BWG()->prefix); ?>" onclick="onBtnClickAddToCart();">
1835
  <input type="button" class="bwg_submit" value="<?php echo __('View cart', BWG()->prefix); ?>" onclick="onBtnViewCart()">
1836
  &nbsp;<span class="add_to_cart_msg"></span>
1837
  </div>
1838
-
1839
  <input id="ajax_task" name="ajax_task" type="hidden" value="" />
1840
  <input id="type" name="type" type="hidden" value="<?php echo isset($pricelist_sections[0]) ? $pricelist_sections[0] : "" ?>" />
1841
  <input id="image_id" name="image_id" type="hidden" value="<?php echo $image_id; ?>" />
@@ -1848,203 +1772,191 @@ class BWGViewGalleryBox {
1848
  </div>
1849
  </div>
1850
  </div>
1851
- <script>
1852
- function changeDownloadsTotal(obj){
1853
- var totalPrice = 0;
1854
- var showdigitalItemsCount = jQuery("[name=option_show_digital_items_count]").val();
1855
- if( showdigitalItemsCount == 0 ){
1856
- jQuery("[name=selected_download_item]:checked").each(function(){
1857
- totalPrice += Number(jQuery(this).closest("tr").attr("data-price"));
1858
-
1859
- });
1860
- }
1861
- else{
1862
- jQuery(".digital_image_count").each(function(){
1863
- if(Number(jQuery(this).val()) != 0){
1864
- totalPrice += Number(jQuery(this).closest("tr").attr("data-price")) * Number(jQuery(this).val());
1865
- }
1866
- });
1867
  }
1868
- totalPrice = totalPrice.toFixed(2).toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,");
1869
- jQuery(".product_downloads_price").html(totalPrice);
1870
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1871
  }
1872
-
1873
- function changeMenualTotal(obj){
1874
- if(Number(jQuery(obj).val()) <= 0){
1875
- jQuery(obj).val("1");
1876
- }
1877
- var count = Number(jQuery(obj).val());
1878
- var totalPrice = Number(jQuery(".product_manual_price").attr("data-actual-price"));
1879
- totalPrice = count*totalPrice;
1880
-
1881
- totalPrice = totalPrice.toFixed(2).toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,");
1882
- jQuery(".product_manual_price").html(totalPrice);
1883
  }
 
 
1884
 
1885
- function onSelectableParametersChange(obj){
1886
- var parametersPrise = 0;
1887
-
1888
- var productPrice = data[jQuery('#bwg_current_image_key').val()]["pricelist_manual_price"] ? data[jQuery('#bwg_current_image_key').val()]["pricelist_manual_price"] : '0';
1889
- productPrice = parseFloat(productPrice.replace(",",""));
1890
-
1891
- var type = jQuery(obj).closest('.image_selected_parameter').attr("data-parameter-type");
1892
- var priceInfo = jQuery(obj).val();
1893
- priceInfo = priceInfo.split("*");
1894
- var priceValue = priceInfo[1];
1895
- var sign = priceInfo[0];
1896
-
1897
- var alreadySelectedValues = Number(jQuery(obj).closest('.image_selected_parameter').find(".already_selected_values").val());
1898
-
1899
- if(type == "4" || type == "5") {
1900
- var newPriceVlaueSelectRadio = parseFloat(eval(sign + '1*' + priceValue));
1901
-
1902
- jQuery(obj).closest('.image_selected_parameter').find(".already_selected_values").val(newPriceVlaueSelectRadio);
1903
- }
1904
 
1905
- else if (type == "6"){
1906
- if(jQuery(obj).is(":checked") == false){
1907
- var newPriceVlaueCheckbox = parseFloat(eval(alreadySelectedValues + "- " + sign + priceValue));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1908
  }
1909
- else{
1910
- var newPriceVlaueCheckbox = parseFloat(eval(alreadySelectedValues + sign + priceValue));
1911
- }
1912
- jQuery(obj).closest('.image_selected_parameter').find(".already_selected_values").val(newPriceVlaueCheckbox);
1913
- }
1914
 
1915
-
1916
- jQuery(".already_selected_values").each(function(){
1917
- parametersPrise += Number(jQuery(this).val());
1918
  });
1919
-
1920
- productPrice = productPrice + parametersPrise;
1921
- jQuery(".product_manual_price").attr("data-actual-price",productPrice);
1922
- var count = Number(jQuery(".image_count").val()) <= 0 ? 1 : Number(jQuery(".image_count").val());
1923
- productPrice = count * productPrice;
1924
- productPrice = productPrice.toFixed(2).toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,");;
1925
- jQuery(".product_manual_price").html(productPrice);
1926
  }
1927
-
1928
- function onBtnClickAddToCart(){
1929
- var type = jQuery("[name=type]").val();
1930
- if(type != ""){
1931
- var data = {};
1932
- if(type == "manual"){
1933
- var count = jQuery(".image_count").val();
1934
- var parameters = {};
1935
-
1936
- jQuery(".manual").find(".image_selected_parameter").each(function () {
1937
- var parameterId = jQuery(this).attr("data-parameter-id");
1938
- var parameterTypeId = jQuery(this).attr("data-parameter-type");
1939
- var parameterValue = "";
1940
- switch (parameterTypeId) {
1941
-
1942
- // input
1943
- case '2':
1944
- parameterValue = jQuery(this).find("input").val();
1945
- break;
1946
- case '3':
1947
- parameterValue = jQuery(this).find("textarea").val();
1948
- break;
1949
- // Select
1950
- case '4':
1951
- parameterValue = jQuery(this).find('select :selected').val();
1952
- break;
1953
- // Radio
1954
- case '5':
1955
- parameterValue = jQuery(this).find('[type=radio]:checked').val();
1956
- break;
1957
- // Checkbox
1958
- case '6':
1959
- var checkbox_parameter_values = [];;
1960
- jQuery(this).find("[type=checkbox]:checked").each(function () {
1961
- checkbox_parameter_values.push(jQuery(this).val());
1962
- });
1963
- parameterValue = checkbox_parameter_values;
1964
- break;
1965
- }
1966
-
1967
- parameters[parameterId] = parameterValue;
1968
- });
1969
- data.count = count;
1970
- data.parameters = parameters;
1971
- data.price = jQuery(".product_manual_price").attr("data-price").replace(",","");
1972
- }
1973
- else{
1974
- var downloadItems = [];
1975
- var showdigitalItemsCount = jQuery("[name=option_show_digital_items_count]").val();
1976
- if( showdigitalItemsCount == 0 ){
1977
- if(jQuery("[name=selected_download_item]:checked").length == 0){
1978
- jQuery(".add_to_cart_msg").html("You must select at least one item.");
1979
- return;
1980
- }
1981
- jQuery("[name=selected_download_item]:checked").each(function () {
1982
- var downloadItem = {};
1983
- downloadItem.id = jQuery(this).val();
1984
- downloadItem.count = 1;
1985
- downloadItem.price = jQuery(this).closest("tr").attr("data-price");
1986
- downloadItems.push(downloadItem);
1987
- });
1988
- }
1989
- else{
1990
- jQuery(".digital_image_count").each(function () {
1991
- var downloadItem = {};
1992
- if(jQuery(this).val() > 0){
1993
- downloadItem.id = jQuery(this).closest("tr").attr("data-id");
1994
- downloadItem.price = jQuery(this).closest("tr").attr("data-price");
1995
- downloadItem.count = jQuery(this).val();
1996
- downloadItems.push(downloadItem);
1997
- }
1998
-
1999
- });
2000
- }
2001
- data.downloadItems = downloadItems;
2002
- if(downloadItems.length == 0) {
2003
- jQuery(".add_to_cart_msg").html("<?php echo __("Please select at least one item", BWG()->prefix);?>");
2004
- return ;
2005
- }
2006
-
2007
  }
2008
-
2009
- var ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>';
2010
- var post_data = {
2011
- 'action': 'add_cart',
2012
- 'task': 'add_cart',
2013
- 'controller': 'checkout',
2014
- "image_id": jQuery('#bwg_popup_image').attr('image_id'),
2015
- "type": type,
2016
- "data": JSON.stringify(data)
2017
- };
2018
-
2019
- jQuery.ajax({
2020
- type: "POST",
2021
- url: ajaxurl,
2022
- data: post_data,
2023
- success: function (response) {
2024
- responseData = JSON.parse(response);
2025
- jQuery(".add_to_cart_msg").html(responseData["msg"]);
2026
- jQuery(".products_in_cart").html(responseData["products_in_cart"]);
2027
- if(responseData["redirect"] == 1){
2028
- window.location.href = "<?php echo get_permalink($options->checkout_page);?>";
2029
- }
2030
- },
2031
- beforeSend: function(){
2032
- },
2033
- complete:function(){
2034
- }
2035
- });
2036
  }
2037
  else{
2038
- jQuery(".add_to_cart_msg").html("<?php echo __("Please select Prints and products or Downloads", BWG()->prefix);?>");
 
 
 
 
 
 
 
 
 
 
 
 
 
2039
  }
2040
  }
2041
 
2042
- function onBtnViewCart(){
2043
- var checkoutPage = jQuery("[name=option_checkout_page]").val();
2044
- jQuery("#bwg_ecommerce_form").attr("action",checkoutPage)
2045
- jQuery("#bwg_ecommerce_form").submit();
2046
- }
2047
- </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2048
  <?php
2049
  }
2050
  if ( BWG()->options->use_inline_stiles_and_scripts ) {
@@ -2081,7 +1993,6 @@ class BWGViewGalleryBox {
2081
  var startPoint = 0;
2082
  var endPoint = key+preloadCount;
2083
 
2084
-
2085
  jQuery(document).ready(function () {
2086
  wds_load_visible_images();
2087
  jQuery(".pge_tabs li a").on("click", function(){
@@ -2109,7 +2020,7 @@ class BWGViewGalleryBox {
2109
  }
2110
  }
2111
  var bwg_param = {
2112
- bwg : <?php echo $bwg; ?>,
2113
  bwg_current_key : '<?php echo $current_key; ?>',
2114
  enable_loop : <?php echo $enable_loop; ?>,
2115
  ecommerceACtive : '<?php echo (function_exists('BWGEC') ) == true ? 1 : 0 ; ?>',
@@ -2141,16 +2052,15 @@ class BWGViewGalleryBox {
2141
  bwg_share_image_url : "<?php echo urlencode(BWG()->upload_url); ?>",
2142
  slideshow_interval : <?php echo $slideshow_interval; ?>,
2143
  open_with_fullscreen : <?php echo $open_with_fullscreen; ?>,
 
 
 
2144
  };
2145
- <?php
2146
- if (BWG()->is_pro && $enable_addthis && $addthis_profile_id) {
2147
- ?>
2148
- var addthis_share = {
2149
- url: "<?php echo urlencode($share_url); ?>"
2150
- }
2151
- <?php
2152
- }
2153
- ?>
2154
  var lightbox_comment_pos = bwg_param['lightbox_comment_pos'];
2155
  var bwg_image_info_pos = (jQuery(".bwg_ctrl_btn_container").length) ? jQuery(".bwg_ctrl_btn_container").height() : 0;
2156
  setTimeout(function(){
@@ -2161,9 +2071,9 @@ class BWGViewGalleryBox {
2161
  jQuery(".bwg_image_info").height(jQuery(".bwg_image_info_container1").height()- jQuery(".bwg_toggle_container").height()- bwg_image_info_pos - 2*(parseInt("<?php echo $theme_row->lightbox_info_margin; ?>")));
2162
  }
2163
  }, 100);
2164
- var bwg_trans_in_progress = false;
2165
  var bwg_transition_duration = <?php echo (($slideshow_interval < 4 * $slideshow_effect_duration) && ($slideshow_interval != 0)) ? ($slideshow_interval * 1000) / 4 : ($slideshow_effect_duration * 1000); ?>;
2166
  bwg_param['bwg_transition_duration'] = bwg_transition_duration;
 
2167
 
2168
  var bwg_playInterval;
2169
  if ((jQuery("#spider_popup_wrap").width() >= jQuery(window).width()) || (jQuery("#spider_popup_wrap").height() >= jQuery(window).height())) {
@@ -2180,10 +2090,10 @@ class BWGViewGalleryBox {
2180
  return;
2181
  }
2182
  if (e.keyCode === 39) { /* Right arrow.*/
2183
- bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), parseInt(jQuery('#bwg_current_image_key').val()) + 1, data)
2184
  }
2185
  else if (e.keyCode === 37) { /* Left arrow.*/
2186
- bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), parseInt(jQuery('#bwg_current_image_key').val()) - 1, data)
2187
  }
2188
  else if (e.keyCode === 27) { /* Esc.*/
2189
  spider_destroypopup(1000);
@@ -2192,8 +2102,6 @@ class BWGViewGalleryBox {
2192
  jQuery(".bwg_play_pause").trigger('click');
2193
  }
2194
  });
2195
-
2196
-
2197
  jQuery(window).resize(function() {
2198
  if (typeof jQuery().fullscreen !== 'undefined') {
2199
  if (jQuery.isFunction(jQuery().fullscreen)) {
@@ -2208,20 +2116,24 @@ class BWGViewGalleryBox {
2208
  var bwg_popup_current_height = <?php echo $image_height; ?>;
2209
 
2210
  /* jQuery(document).ready(function () { */
2211
- <?php if ( BWG()->is_pro ) {
2212
- if ($enable_addthis && $addthis_profile_id) {
 
2213
  ?>
2214
- jQuery(".at4-share-outer").show();
2215
- <?php } ?>
 
 
2216
  /* Increase image hit counter.*/
2217
  spider_set_input_value('rate_ajax_task', 'save_hit_count');
2218
  spider_rate_ajax_save('bwg_rate_form');
2219
  jQuery(".bwg_image_hits span").html(++data["<?php echo $current_image_key; ?>"]["hit_count"]);
2220
  var bwg_hash = window.location.hash;
2221
  if (!bwg_hash || bwg_hash.indexOf("bwg") == "-1") {
2222
- window.location.hash = "bwg<?php echo $gallery_id; ?>/<?php echo $current_image_id; ?>";
 
2223
  }
2224
- <?php } ?>
2225
  <?php if ($image_right_click) { ?>
2226
  /* Disable right click.*/
2227
  jQuery(".bwg_image_wrap").bind("contextmenu", function (e) {
@@ -2234,16 +2146,16 @@ class BWGViewGalleryBox {
2234
  });
2235
  if (typeof jQuery().swiperight !== 'undefined') {
2236
  if (jQuery.isFunction(jQuery().swiperight)) {
2237
- jQuery('#spider_popup_wrap').swiperight(function () {
2238
- bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), (parseInt(jQuery('#bwg_current_image_key').val()) + data.length - 1) % data.length, data);
2239
  return false;
2240
  });
2241
  }
2242
  }
2243
  if (typeof jQuery().swipeleft !== 'undefined') {
2244
  if (jQuery.isFunction(jQuery().swipeleft)) {
2245
- jQuery('#spider_popup_wrap').swipeleft(function () {
2246
- bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), (parseInt(jQuery('#bwg_current_image_key').val()) + 1) % data.length, data);
2247
  return false;
2248
  });
2249
  }
@@ -2252,11 +2164,11 @@ class BWGViewGalleryBox {
2252
  var isMobile = (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));
2253
  var bwg_click = isMobile ? 'touchend' : 'click';
2254
  jQuery("#spider_popup_left").on(bwg_click, function () {
2255
- bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), (parseInt(jQuery('#bwg_current_image_key').val()) + data.length - 1) % data.length, data);
2256
  return false;
2257
  });
2258
  jQuery("#spider_popup_right").on(bwg_click, function () {
2259
- bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), (parseInt(jQuery('#bwg_current_image_key').val()) + 1) % data.length, data);
2260
  return false;
2261
  });
2262
  if (navigator.appVersion.indexOf("MSIE 10") != -1 || navigator.appVersion.indexOf("MSIE 9") != -1) {
@@ -2283,7 +2195,7 @@ class BWGViewGalleryBox {
2283
  <?php if ($filmstrip_direction == 'horizontal') { ?>
2284
  jQuery(".bwg_image_container").height(jQuery(".bwg_image_wrap").height() - <?php echo $image_filmstrip_height; ?>);
2285
  jQuery(".bwg_image_container").width(jQuery(".bwg_image_wrap").width());
2286
- <?php }
2287
  else {
2288
  ?>
2289
  jQuery(".bwg_image_container").height(jQuery(".bwg_image_wrap").height());
@@ -2390,11 +2302,9 @@ class BWGViewGalleryBox {
2390
  }
2391
  });
2392
  /* Open/close comments.*/
2393
- jQuery(".bwg_comment, .bwg_comments_close_btn").on(bwg_click, function() { bwg_comment()});
2394
-
2395
  /* Open/close ecommerce.*/
2396
- jQuery(".bwg_ecommerce, .bwg_ecommerce_close_btn").on(bwg_click, function() { bwg_ecommerce()});
2397
-
2398
  /* Open/close control buttons.*/
2399
  jQuery(".bwg_toggle_container").on(bwg_click, function () {
2400
  var bwg_open_toggle_btn_class = "<?php echo ($theme_row->lightbox_ctrl_btn_pos == 'top') ? 'fa-angle-up' : 'fa-angle-down'; ?>";
@@ -2409,7 +2319,6 @@ class BWGViewGalleryBox {
2409
  var info_height = bwg_image_info_height + jQuery(".bwg_ctrl_btn_container").height();
2410
  var top = parseInt(jQuery(".bwg_image_info").css("top")) - jQuery(".bwg_ctrl_btn_container").height();
2411
  var bottom = jQuery(".bwg_ctrl_btn_container").height();
2412
-
2413
  <?php
2414
  if ($theme_row->lightbox_ctrl_btn_pos == 'top' && $theme_row->lightbox_info_pos == 'top') {
2415
  ?>
@@ -2419,7 +2328,7 @@ class BWGViewGalleryBox {
2419
  else {
2420
  jQuery(".bwg_image_info").animate({top: top + "px"}, 500);
2421
  }
2422
- <?php
2423
  }
2424
  elseif ($theme_row->lightbox_ctrl_btn_pos == 'bottom') {
2425
  ?>
@@ -2672,9 +2581,9 @@ class BWGViewGalleryBox {
2672
  });
2673
  /* Play/pause.*/
2674
  jQuery(".bwg_play_pause, .bwg_popup_image").on(bwg_click, function () {
2675
- if (jQuery(".bwg_play_pause").length && jQuery(".bwg_play_pause").hasClass("fa-play")) {
2676
  /* PLay.*/
2677
- bwg_play( data );
2678
  jQuery(".bwg_play_pause").attr("title", "<?php echo __('Pause', BWG()->prefix); ?>");
2679
  jQuery(".bwg_play_pause").attr("class", "bwg_ctrl_btn bwg_play_pause fa fa-pause");
2680
  }
@@ -2687,18 +2596,14 @@ class BWGViewGalleryBox {
2687
  });
2688
  /* Open with autoplay.*/
2689
  <?php if ($open_with_autoplay) { ?>
2690
- bwg_play( data );
2691
  jQuery(".bwg_play_pause").attr("title", "<?php echo __('Pause', BWG()->prefix); ?>");
2692
  jQuery(".bwg_play_pause").attr("class", "bwg_ctrl_btn bwg_play_pause fa fa-pause");
2693
  <?php } ?>
2694
  /* Open with fullscreen.*/
2695
- <?php
2696
- if ($open_with_fullscreen) {
2697
- ?>
2698
  bwg_open_with_fullscreen();
2699
- <?php
2700
- }
2701
- ?>
2702
 
2703
  /* load filmstrip not visible images */
2704
  function bwg_load_filmstrip() {
@@ -2728,7 +2633,7 @@ class BWGViewGalleryBox {
2728
  jQuery(window).focus(function() {
2729
  /* event_stack = [];*/
2730
  if (jQuery(".bwg_play_pause").length && !jQuery(".bwg_play_pause").hasClass("fa-play")) {
2731
- bwg_play( data );
2732
  }
2733
  /*var i = 0;
2734
  jQuery(".bwg_slider").children("span").each(function () {
@@ -2746,6 +2651,9 @@ class BWGViewGalleryBox {
2746
  if ( <?php echo $open_ecommerce;?> == 1) {
2747
  setTimeout(function(){ bwg_ecommerce(); }, 400);
2748
  }
 
 
 
2749
  </script>
2750
  <?php
2751
  die();
@@ -2756,4 +2664,25 @@ class BWGViewGalleryBox {
2756
  <div class="bwg-loading hidden"></div>
2757
  <?php
2758
  }
2759
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  $bwg = (isset($_GET['current_view']) ? esc_html($_GET['current_view']) : 0);
17
  $current_image_id = WDWLibrary::esc_script('get', 'image_id', 0, 'int');
18
  $theme_id = (isset($_GET['theme_id']) ? esc_html($_GET['theme_id']) : 1);
19
+ $thumb_width = BWG()->options->thumb_width;
20
+ $thumb_height = BWG()->options->thumb_height;
21
  $open_with_fullscreen = WDWLibrary::esc_script('get', 'open_with_fullscreen', 0, 'int');
22
  $open_with_autoplay = WDWLibrary::esc_script('get', 'open_with_autoplay', 0, 'int');
23
  $image_width = WDWLibrary::esc_script('get', 'image_width', 800, 'int');
37
 
38
  $slideshow_interval = (isset($_GET['slideshow_interval']) ? (int) $_GET['slideshow_interval'] : 5);
39
  $enable_image_ctrl_btn = (isset($_GET['enable_image_ctrl_btn']) ? esc_html($_GET['enable_image_ctrl_btn']) : 0);
40
+ $open_comment = (BWG()->is_pro && isset($_GET['open_comment']) ? esc_html($_GET['open_comment']) : 0);
41
  $enable_comment_social = (BWG()->is_pro && isset($_GET['enable_comment_social']) ? esc_html($_GET['enable_comment_social']) : 0);
42
  $enable_image_facebook = (BWG()->is_pro && isset($_GET['enable_image_facebook']) ? esc_html($_GET['enable_image_facebook']) : 0);
43
  $enable_image_twitter = (BWG()->is_pro && isset($_GET['enable_image_twitter']) ? esc_html($_GET['enable_image_twitter']) : 0);
48
 
49
  $popup_enable_email = (BWG()->is_pro && isset($_GET['popup_enable_email']) ? esc_html($_GET['popup_enable_email']) : 0);
50
  $popup_enable_captcha = (BWG()->is_pro && isset($_GET['popup_enable_captcha']) ? esc_html($_GET['popup_enable_captcha']) : 0);
 
51
  $comment_moderation = (BWG()->is_pro && isset($_GET['comment_moderation']) ? esc_html($_GET['comment_moderation']) : 0);
52
  $autohide_lightbox_navigation = (isset($_GET['autohide_lightbox_navigation']) ? esc_html($_GET['autohide_lightbox_navigation']) : BWG()->options->autohide_lightbox_navigation);
53
  $popup_enable_fullsize_image = (isset($_GET['popup_enable_fullsize_image']) ? esc_html($_GET['popup_enable_fullsize_image']) : BWG()->options->popup_enable_fullsize_image);
69
  $watermark_width = (isset($_GET['watermark_width']) ? (int) $_GET['watermark_width'] : 90);
70
  $watermark_height = (isset($_GET['watermark_height']) ? (int) $_GET['watermark_height'] : 90);
71
 
72
+ $image_right_click = isset(BWG()->options->image_right_click) ? BWG()->options->image_right_click : 0;
73
+
74
+ require_once BWG()->plugin_dir . "/frontend/models/model.php";
75
+ $model_site = new BWGModelSite();
76
+ $theme_row = $model_site->get_theme_row_data($theme_id);
77
 
 
78
  $filmstrip_direction = 'horizontal';
79
  if ($theme_row->lightbox_filmstrip_pos == 'right' || $theme_row->lightbox_filmstrip_pos == 'left') {
80
  $filmstrip_direction = 'vertical';
81
  }
82
+ $image_filmstrip_height = 0;
83
  $image_filmstrip_width = 0;
84
  if ( $enable_image_filmstrip ) {
85
  if ( $filmstrip_direction == 'horizontal' ) {
93
  $image_filmstrip_height = round($thumb_ratio * $image_filmstrip_width);
94
  }
95
  }
 
 
 
 
96
  $image_rows = $this->model->get_image_rows_data($gallery_id, $bwg, $sort_by, $order_by, $tag);
97
 
98
  $image_id = (isset($_POST['image_id']) ? (int) $_POST['image_id'] : $current_image_id);
99
+
100
  $comment_rows = $this->model->get_comment_rows_data($image_id);
101
 
102
  $image_pricelist = $this->model->get_image_pricelist($image_id);
106
 
107
  $params_array = array(
108
  'action' => 'GalleryBox',
109
+ 'image_id' => $image_id,
110
  'gallery_id' => $gallery_id,
111
  'tags' => $tag,
112
  'theme_id' => $theme_id,
137
  'enable_image_tumblr' => $enable_image_tumblr,
138
  'watermark_type' => $watermark_type,
139
  'slideshow_effect_duration' => $slideshow_effect_duration,
 
140
  'popup_enable_email' => $popup_enable_email,
141
+ 'popup_enable_captcha' => $popup_enable_captcha,
142
+ 'comment_moderation' => $comment_moderation,
143
  );
144
  if ($watermark_type != 'none') {
145
  $params_array['watermark_link'] = $watermark_link;
158
  $params_array['watermark_height'] = $watermark_height;
159
  }
160
  $popup_url = add_query_arg(array($params_array), admin_url('admin-ajax.php'));
161
+
162
  $filmstrip_thumb_margin = trim($theme_row->lightbox_filmstrip_thumb_margin);
163
+
164
  $margins_split = explode(" ", $filmstrip_thumb_margin);
165
  $all_images_top_bottom_space = 0;
166
  $all_images_right_left_space = 0;
517
  padding:8px 5px !important;
518
  font-weight: bold;
519
  font-size: 13px;
520
+ }
521
  .pge_tabs li a{
522
  color:#<?php echo $theme_row->lightbox_comment_bg_color; ?>!important;
523
  }
615
  .bwg_comments .bwg-submit-disabled {
616
  opacity: 0.5;
617
  }
618
+ .bwg_comments .bwg-submit-disabled:hover {
619
+ padding: <?php echo $theme_row->lightbox_comment_button_padding; ?> !important;
620
+ border-radius: <?php echo $theme_row->lightbox_comment_button_border_radius; ?> !important;
621
+ }
622
  .bwg_comments input[type="text"],
623
  .bwg_comments textarea,
624
  .bwg_ecommerce_panel input[type="text"],
653
  font-size: <?php echo $theme_row->lightbox_comment_body_font_size; ?>px;
654
  }
655
  .bwg_comment_delete_btn {
656
+ color: #7A7A7A;
657
  cursor: pointer;
658
  float: right;
659
  font-size: 14px;
668
  margin: 5px;
669
  z-index: 10150;
670
  }
671
+ .bwg_ecommerce_panel a:hover {
672
  text-decoration:underline;
673
  }
674
  .bwg_comment_textarea::-webkit-scrollbar {
679
  .bwg_comment_textarea::-webkit-scrollbar-thumb {
680
  background-color: rgba(255, 255, 255, 0.55);
681
  border-radius: 2px;
682
+ }
683
  .bwg_comment_textarea::-webkit-scrollbar-thumb:hover {
684
  background-color: #D9D9D9;
685
  }
719
  <?php echo $theme_row->lightbox_filmstrip_pos; ?>: <?php echo ($filmstrip_direction == 'horizontal' ? $image_filmstrip_height : $image_filmstrip_width); ?>px;
720
  vertical-align: middle;
721
  width: 100%;
722
+ }
723
  .bwg_filmstrip_container {
724
  display: <?php echo ($filmstrip_direction == 'horizontal'? 'table' : 'block'); ?>;
725
  height: <?php echo ($filmstrip_direction == 'horizontal'? $image_filmstrip_height : $image_height); ?>px;
947
  .bwg_image_info::-webkit-scrollbar-thumb {
948
  background-color: rgba(255, 255, 255, 0.55);
949
  border-radius: 2px;
950
+ }
951
  .bwg_image_info::-webkit-scrollbar-thumb:hover {
952
  background-color: #D9D9D9;
953
  }
1053
  $current_filename = $image_row->filename;
1054
  $image_id_exist = TRUE;
1055
  }
1056
+ $has_embed = $has_embed || preg_match('/EMBED/',$image_row->filetype) == 1;
1057
  if ( BWG()->is_pro ) {
1058
  $current_pricelist_id = $this->model->get_image_pricelist($image_row->id) ? $this->model->get_image_pricelist($image_row->id) : 0;
1059
  $_pricelist_data = $this->model->get_image_pricelists($current_pricelist_id);
1087
  data["<?php echo $key; ?>"]["rate"] = "<?php echo $image_row->rate; ?>";
1088
  data["<?php echo $key; ?>"]["rate_count"] = "<?php echo $image_row->rate_count; ?>";
1089
  data["<?php echo $key; ?>"]["hit_count"] = "<?php echo $image_row->hit_count; ?>";
1090
+ <?php if ( BWG()->is_pro ) { ?>
 
 
1091
  data["<?php echo $key; ?>"]["pricelist"] = "<?php echo $current_pricelist_id ? $current_pricelist_id : 0; ?>";
1092
  data["<?php echo $key; ?>"]["pricelist_manual_price"] = "<?php echo isset($_pricelist->price) ? $_pricelist->price : 0; ?>";
1093
  data["<?php echo $key; ?>"]["pricelist_sections"] = "<?php echo isset($_pricelist->sections) ? $_pricelist->sections : ""; ?>";
1094
+ <?php }
 
 
 
1095
  }
1096
  ?>
1097
  </script>
1181
  <div style="display:table; margin:0 auto;">
1182
  <span class="bwg_watermark_spun" id="bwg_watermark_container">
1183
  <?php
1184
+ $watermark_link = urldecode($watermark_link);
1185
  if ($watermark_type == 'image') {
1186
  ?>
1187
+ <a href="<?php echo esc_js($watermark_link); ?>" target="_blank">
1188
  <img class="bwg_watermark_image bwg_watermark" src="<?php echo $watermark_url; ?>" />
1189
  </a>
1190
  <?php
1191
  }
1192
  elseif ($watermark_type == 'text') {
1193
  ?>
1194
+ <a class="bwg_none_selectable bwg_watermark_text bwg_watermark" target="_blank" href="<?php echo esc_js($watermark_link); ?>"><?php echo stripslashes($watermark_text); ?></a>
1195
  <?php
1196
  }
1197
  ?>
1204
  ?>
1205
  <div id="bwg_image_container" class="bwg_image_container">
1206
  <?php
1207
+ echo $this->loading();
1208
+ if ($enable_image_ctrl_btn) {
1209
+ $share_url = add_query_arg(array('curr_url' => $current_url, 'image_id' => $current_image_id), WDWLibrary::get_share_page()) . '#bwg' . $gallery_id . '/' . $current_image_id;
1210
  ?>
1211
  <div class="bwg_btn_container">
1212
  <div class="bwg_ctrl_btn_container">
1280
  </a>
1281
  <?php
1282
  }
1283
+ if ( $popup_enable_download ) {
1284
  $style = 'none';
1285
  $current_image_arr = explode('/', $current_image_url);
1286
+ if ( !$is_embed ) {
1287
+ $download_dir = BWG()->upload_dir . str_replace('/thumb/', '/.original/', $current_thumb_url);
1288
+ WDWLibrary::repair_image_original($download_dir);
1289
  $download_href = BWG()->upload_url . str_replace('/thumb/', '/.original/', $current_thumb_url);
1290
  $style = 'inline-block';
1291
  }
1402
  $current_key = -6;
1403
  foreach ( $image_rows as $key => $image_row ) {
1404
  $is_embed = preg_match('/EMBED/',$image_row->filetype)==1 ? true :false;
1405
+ $is_embed_instagram_post = preg_match('/INSTAGRAM_POST/',$image_row->filetype)==1 ? true : false;
1406
+ $is_embed_instagram_video = preg_match('/INSTAGRAM_VIDEO/', $image_row->filetype) == 1 ? true : false;
1407
+ $is_ifrem = ( in_array($image_row->filetype, array('EMBED_OEMBED_YOUTUBE_VIDEO', 'EMBED_OEMBED_VIMEO_VIDEO', 'EMBED_OEMBED_FACEBOOK_VIDEO', 'EMBED_OEMBED_DAILYMOTION_VIDEO') ) ) ? true : false;
1408
+ if ($image_row->id == $current_image_id) {
1409
  $current_key = $key;
1410
  ?>
1411
  <span class="bwg_popup_image_spun" id="bwg_popup_image" image_id="<?php echo $image_row->id; ?>">
1412
+ <span class="bwg_popup_image_spun1" style="display: <?php echo ( !$is_embed ? 'table' : 'block' ); ?>; width: inherit; height: inherit;">
1413
+ <span class="bwg_popup_image_spun2" style="display: <?php echo ( !$is_embed ? 'table-cell' : 'block' ); ?>; vertical-align: middle; text-align: center; height: 100%;">
1414
  <?php
1415
  if (!$is_embed) {
1416
  ?>
1418
  <?php
1419
  }
1420
  else { /*$is_embed*/ ?>
1421
+ <span id="embed_conteiner" class="bwg_popup_embed bwg_popup_watermark" style="display: <?php echo ( $is_ifrem ? 'block' : 'table' ); ?>; table-layout: fixed; height: 100%;">
1422
  <?php echo $is_embed_instagram_video ? '<span class="bwg_inst_play_btn_cont" onclick="bwg_play_instagram_video(this)" ><span class="bwg_inst_play"></span></span>' : '';
1423
  if ($is_embed_instagram_post) {
1424
  $post_width = $image_width - ($filmstrip_direction == 'vertical' ? $image_filmstrip_width : 0);
1442
  WDWLibraryEmbed::display_embed($image_row->filetype, $image_row->image_url, $image_row->filename, array('class' => "bwg_embed_frame", 'data-width' => $instagram_post_width, 'data-height' => $instagram_post_height, 'frameborder' => "0", 'style' => "width:" . $post_width . "px; height:" . $post_height . "px; vertical-align:middle; display:inline-block; position:relative;"));
1443
  }
1444
  else{
1445
+ WDWLibraryEmbed::display_embed($image_row->filetype, $image_row->image_url, $image_row->filename, array('class'=>"bwg_embed_frame", 'frameborder'=>"0", 'allowfullscreen'=>"allowfullscreen", 'style'=> "display: " . ( $is_ifrem ? 'block' : 'table-cell' ) . "; width:inherit; height:inherit; vertical-align:middle;"));
1446
  }
1447
  ?>
1448
  </span>
1467
  <a id="spider_popup_right" <?php echo ($enable_loop == 0 && $current_key == count($image_rows) - 1) ? 'style="display: none;"' : ''; ?>><span id="spider_popup_right-ico"><span><i class="bwg_next_btn fa <?php echo $theme_row->lightbox_rl_btn_style; ?>-right"></i></span></span></a>
1468
  </div>
1469
  </div>
1470
+ <?php if ( $enable_comment_social ) {
1471
+ $bwg_name = (isset($_POST['bwg_name']) ? esc_html(stripslashes($_POST['bwg_name'])) : '');
1472
+ $bwg_email = (isset($_POST['bwg_email']) ? esc_html(stripslashes($_POST['bwg_email'])) : '');
1473
+ ?>
1474
  <div class="bwg_comment_wrap bwg_popup_sidebar_wrap">
1475
  <div class="bwg_comment_container bwg_popup_sidebar_container bwg_close">
1476
  <div id="ajax_loading" style="position:absolute;">
1479
  </span>
1480
  </div>
1481
  <div class="bwg_comments bwg_popup_sidebar">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1482
  <div title="<?php echo __('Hide Comments', BWG()->prefix); ?>" class="bwg_comments_close bwg_popup_sidebar_close">
1483
  <i class="bwg_comments_close_btn bwg_popup_sidebar_close_btn fa fa-arrow-<?php echo $theme_row->lightbox_comment_pos; ?>"></i>
1484
  </div>
1485
  <form id="bwg_comment_form" method="post" action="<?php echo $popup_url; ?>">
1486
+ <p><label for="bwg_name"><?php echo __('Name', BWG()->prefix); ?> </label></p>
1487
+ <p><input type="text" name="bwg_name" id="bwg_name" <?php echo ((get_current_user_id() != 0) ? 'readonly="readonly"' : ''); ?>
1488
+ value="<?php echo ((get_current_user_id() != 0) ? get_userdata(get_current_user_id())->display_name : $bwg_name); ?>" />
1489
+ </p>
1490
+ <p><span class="bwg_comment_error bwg_comment_name_error"></span></p>
1491
+ <?php if ($popup_enable_email) { ?>
1492
+ <p><label for="bwg_email"><?php echo __('Email', BWG()->prefix); ?> </label></p>
1493
+ <p><input type="text" name="bwg_email" id="bwg_email"
1494
  value="<?php echo ((get_current_user_id() != 0) ? get_userdata(get_current_user_id())->user_email : $bwg_email); ?>" /></p>
1495
+ <p><span class="bwg_comment_error bwg_comment_email_error"></span></p>
1496
+ <?php } ?>
1497
+ <p><label for="bwg_comment"><?php echo __('Comment', BWG()->prefix); ?> </label></p>
1498
+ <p><textarea class="bwg_comment_textarea" name="bwg_comment" id="bwg_comment"></textarea></p>
1499
+ <p><span class="bwg_comment_error bwg_comment_textarea_error"></span></p>
1500
+ <?php if ( $popup_enable_captcha ) { ?>
1501
+ <p><label for="bwg_captcha_input"><?php echo __('Verification Code', BWG()->prefix); ?></label></p>
1502
+ <p>
1503
+ <input id="bwg_captcha_input" name="bwg_captcha_input" class="bwg_captcha_input" type="text" autocomplete="off">
1504
+ <img id="bwg_captcha_img" class="bwg_captcha_img" type="captcha" digit="6" src="<?php echo add_query_arg(array('action' => 'bwg_captcha', 'digit' => 6, 'i' => ''), admin_url('admin-ajax.php')); ?>" onclick="bwg_captcha_refresh('bwg_captcha')" ontouchend="bwg_captcha_refresh('bwg_captcha')" />
1505
+ <span id="bwg_captcha_refresh" class="bwg_captcha_refresh" onclick="bwg_captcha_refresh('bwg_captcha')" ontouchend="bwg_captcha_refresh('bwg_captcha')"></span>
1506
+ </p>
1507
+ <p><span class="bwg_comment_error bwg_comment_captcha_error"></span></p>
1508
+ <?php } ?>
1509
+
 
 
 
 
1510
  <?php
1511
  $privacy_policy_url = false;
1512
  if ( WDWLibrary::get_privacy_policy_url() ) {
1527
  ?>
1528
  </label>
1529
  </p>
1530
+ <p><span class="bwg_comment_error bwg_comment_privacy_policy_error"></span></p>
1531
  <?php } ?>
1532
+ <p>
1533
+
1534
+ <input <?php echo ($privacy_policy_url) ? 'disabled="disabled"' : ''; ?> onclick="bwg_add_comment(); return false;" ontouchend="bwg_add_comment(); return false;" class="bwg_submit <?php echo ($privacy_policy_url) ? 'bwg-submit-disabled' : ''; ?>" type="submit"
1535
+ name="bwg_submit" id="bwg_submit" value="<?php echo __('Submit', BWG()->prefix); ?>" />
1536
+ </p>
1537
+ <p class="bwg_comment_waiting_message"><?php _e('Your comment is awaiting moderation', BWG()->prefix); ?></p>
1538
+ <input id="ajax_task" name="ajax_task" type="hidden" value="" />
1539
+ <input id="image_id"id="image_id" name="image_id" type="hidden" value="<?php echo $image_id; ?>" />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1540
  <input id="comment_id" name="comment_id" type="hidden" value="" />
1541
+ <input type="hidden" value="<?php echo $comment_moderation ?>" id="bwg_comment_moderation">
1542
  </form>
 
1543
  <div id="bwg_added_comments">
1544
  <?php
1545
+ foreach ( $comment_rows as $comment_row ) {
1546
+ echo $this->html_comments_block($comment_row);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1547
  }
1548
  ?>
1549
  </div>
1558
  $options = $pricelist_data["options"];
1559
  $products_in_cart = $pricelist_data["products_in_cart"];
1560
  $pricelist_sections = $pricelist->sections ? explode("," , $pricelist->sections) : array();
 
1561
  ?>
1562
  <div class="bwg_ecommerce_wrap bwg_popup_sidebar_wrap" id="bwg_ecommerce_wrap">
1563
  <div class="bwg_ecommerce_container bwg_popup_sidebar_container bwg_close">
1629
  <input type="number" min="1" class="image_count" value="1" onchange="changeMenualTotal(this);">
1630
  </p>
1631
  </div>
1632
+ <?php if ( empty($parameters) == false ) { ?>
1633
  <div class="image_parameters">
1634
  <p><?php //echo __('Parameters', BWG()->prefix); ?></p>
1635
  <?php
1647
  echo '<label for="parameter_input">'.$parameter["title"].'</label>';
1648
  echo '<input type="text" name="parameter_input'.$parameter_id.'" id="parameter_input" value="'. $parameter["values"][0]["parameter_value"] .'">';
1649
  echo '</div>';
1650
+ break;
1651
  case "3" :
1652
  echo '<div class="image_selected_parameter" data-parameter-id="'.$parameter_id.'" data-parameter-type = "'.$parameter["type"].'">';
1653
  echo '<label for="parameter_textarea">'.$parameter["title"].'</label>';
1654
  echo '<textarea name="parameter_textarea'.$parameter_id.'" id="parameter_textarea" >'. $parameter["values"][0]["parameter_value"] .'</textarea>';
1655
  echo '</div>';
1656
+ break;
1657
  case "4" :
1658
  echo '<div class="image_selected_parameter" data-parameter-id="'.$parameter_id.'" data-parameter-type = "'.$parameter["type"].'">';
1659
  echo '<label for="parameter_select">'.$parameter["title"].'</label>';
1660
+ echo '<select name="parameter_select'.$parameter_id.'" id="parameter_select" onchange="onSelectableParametersChange(this)">';
1661
  echo '<option value="+*0*">-Select-</option>';
1662
  foreach($parameter["values"] as $values){
1663
  $price_addon = $values["parameter_value_price"] == "0" ? "" : ' ('.$values["parameter_value_price_sign"].$options->currency_sign.number_format((float)$values["parameter_value_price"],2).')';
1680
  }
1681
  echo '<input type="hidden" class="already_selected_values">';
1682
  echo '</div>';
1683
+ break;
1684
+ case "6" :
1685
  echo '<div class="image_selected_parameter" data-parameter-id="'.$parameter_id.'" data-parameter-type = "'.$parameter["type"].'">';
1686
  echo '<label>'.$parameter["title"].'</label>';
1687
  foreach($parameter["values"] as $values){
1698
  default:
1699
  break;
1700
  }
1701
+ echo '</div>';
1702
  }
1703
  ?>
1704
 
1708
  <span><b><?php echo __('Total', BWG()->prefix).': '.$options->currency_sign;?></b></span>
1709
  <b><span class="product_manual_price" data-price="<?php echo $pricelist->price; ?>" data-actual-price="<?php echo $pricelist->price; ?>"><?php echo number_format((float)$pricelist->price,2)?></span></b>
1710
  </p>
1711
+ </div>
1712
  </div>
1713
  <!-- downloads -->
1714
  <div class="downloads pge_pricelist" id="downloads" <?php if( (count($pricelist_sections) == 1 && end($pricelist_sections) == "downloads")) echo 'style="display: block;"'; else echo 'style="display: none;"'; ?> >
1718
  <th><?php echo __('Name', BWG()->prefix); ?></th>
1719
  <th><?php echo __('Dimensions', BWG()->prefix); ?></th>
1720
  <th><?php echo __('Price', BWG()->prefix); ?></th>
1721
+ <th><?php echo __('Choose', BWG()->prefix); ?></th>
1722
+ </tr>
1723
  </thead>
1724
  <tbody>
1725
  <?php
1730
  <td><?php echo $download_item->item_name; ?></td>
1731
  <td><?php echo $download_item->item_longest_dimension.'px'; ?></td>
1732
  <td class="item_price"><?php echo $options->currency_sign. number_format((float)$download_item->item_price, 2); ?></td>
1733
+ <?php if($options->show_digital_items_count == 0){
1734
+ ?>
1735
+ <td><input type="checkbox" name="selected_download_item" value="<?php echo $download_item->id; ?>" onchange="changeDownloadsTotal(this);"></td>
1736
+ <?php
1737
+ }
1738
+ else{
1739
+ ?>
1740
+ <td><input type="number" min="0" class="digital_image_count" value="0" onchange="changeDownloadsTotal(this);"></td>
1741
+ <?php
1742
+ }
1743
+ ?>
1744
+ </tr>
1745
  <?php
1746
  }
1747
  }
1752
  <span><b><?php echo __('Total', BWG()->prefix).': '.$options->currency_sign;?></b></span>
1753
  <b><span class="product_downloads_price">0</span></b>
1754
  </p>
1755
+ </div>
1756
  </div>
1757
  </div>
 
1758
  <div style="margin-top:10px;">
1759
  <input type="button" class="bwg_submit" value="<?php echo __('Add to cart', BWG()->prefix); ?>" onclick="onBtnClickAddToCart();">
1760
  <input type="button" class="bwg_submit" value="<?php echo __('View cart', BWG()->prefix); ?>" onclick="onBtnViewCart()">
1761
  &nbsp;<span class="add_to_cart_msg"></span>
1762
  </div>
 
1763
  <input id="ajax_task" name="ajax_task" type="hidden" value="" />
1764
  <input id="type" name="type" type="hidden" value="<?php echo isset($pricelist_sections[0]) ? $pricelist_sections[0] : "" ?>" />
1765
  <input id="image_id" name="image_id" type="hidden" value="<?php echo $image_id; ?>" />
1772
  </div>
1773
  </div>
1774
  </div>
1775
+ <script>
1776
+ function changeDownloadsTotal(obj) {
1777
+ var totalPrice = 0;
1778
+ var showdigitalItemsCount = jQuery("[name=option_show_digital_items_count]").val();
1779
+ if( showdigitalItemsCount == 0 ){
1780
+ jQuery("[name=selected_download_item]:checked").each(function(){
1781
+ totalPrice += Number(jQuery(this).closest("tr").attr("data-price"));
1782
+ });
1783
+ }
1784
+ else{
1785
+ jQuery(".digital_image_count").each(function(){
1786
+ if(Number(jQuery(this).val()) != 0){
1787
+ totalPrice += Number(jQuery(this).closest("tr").attr("data-price")) * Number(jQuery(this).val());
 
 
 
1788
  }
1789
+ });
1790
+ }
1791
+ totalPrice = totalPrice.toFixed(2).toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,");
1792
+ jQuery(".product_downloads_price").html(totalPrice);
1793
+ }
1794
+
1795
+ function changeMenualTotal(obj) {
1796
+ if(Number(jQuery(obj).val()) <= 0){
1797
+ jQuery(obj).val("1");
1798
+ }
1799
+ var count = Number(jQuery(obj).val());
1800
+ var totalPrice = Number(jQuery(".product_manual_price").attr("data-actual-price"));
1801
+ totalPrice = count*totalPrice;
1802
+
1803
+ totalPrice = totalPrice.toFixed(2).toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,");
1804
+ jQuery(".product_manual_price").html(totalPrice);
1805
+ }
1806
+
1807
+ function onSelectableParametersChange(obj) {
1808
+ var parametersPrise = 0;
1809
+
1810
+ var productPrice = data[jQuery('#bwg_current_image_key').val()]["pricelist_manual_price"] ? data[jQuery('#bwg_current_image_key').val()]["pricelist_manual_price"] : '0';
1811
+ productPrice = parseFloat(productPrice.replace(",",""));
1812
+
1813
+ var type = jQuery(obj).closest('.image_selected_parameter').attr("data-parameter-type");
1814
+ var priceInfo = jQuery(obj).val();
1815
+ priceInfo = priceInfo.split("*");
1816
+ var priceValue = parseFloat(priceInfo[1]);
1817
+ var sign = priceInfo[0];
1818
+ var alreadySelectedValues = Number(jQuery(obj).closest('.image_selected_parameter').find(".already_selected_values").val());
1819
+ if ( type == "4" || type == "5" ) {
1820
+ var newPriceVlaueSelectRadio = parseFloat( sign + priceValue );
1821
+ jQuery(obj).closest('.image_selected_parameter').find(".already_selected_values").val(newPriceVlaueSelectRadio);
1822
+ }
1823
+ else if ( type == "6" ) {
1824
+ if ( jQuery(obj).is(":checked") == false ) {
1825
+ var newPriceVlaueCheckbox = alreadySelectedValues - parseFloat( sign + priceValue );
1826
  }
1827
+ else {
1828
+ var newPriceVlaueCheckbox = alreadySelectedValues + parseFloat( sign + priceValue );
 
 
 
 
 
 
 
 
 
1829
  }
1830
+ jQuery(obj).closest('.image_selected_parameter').find(".already_selected_values").val(newPriceVlaueCheckbox);
1831
+ }
1832
 
1833
+ jQuery(".already_selected_values").each( function() {
1834
+ parametersPrise += Number(jQuery(this).val());
1835
+ });
1836
+ productPrice = productPrice + parametersPrise;
1837
+ jQuery(".product_manual_price").attr("data-actual-price",productPrice);
1838
+ var count = Number(jQuery(".image_count").val()) <= 0 ? 1 : Number(jQuery(".image_count").val());
1839
+ productPrice = count * productPrice;
1840
+ productPrice = productPrice.toFixed(2).toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,");
1841
+ jQuery(".product_manual_price").html(productPrice);
1842
+ }
 
 
 
 
 
 
 
 
 
1843
 
1844
+ function onBtnClickAddToCart() {
1845
+ var type = jQuery("[name=type]").val();
1846
+ if(type != ""){
1847
+ var data = {};
1848
+ if(type == "manual"){
1849
+ var count = jQuery(".image_count").val();
1850
+ var parameters = {};
1851
+ jQuery(".manual").find(".image_selected_parameter").each(function () {
1852
+ var parameterId = jQuery(this).attr("data-parameter-id");
1853
+ var parameterTypeId = jQuery(this).attr("data-parameter-type");
1854
+ var parameterValue = "";
1855
+ switch (parameterTypeId) {
1856
+ // input
1857
+ case '2':
1858
+ parameterValue = jQuery(this).find("input").val();
1859
+ break;
1860
+ case '3':
1861
+ parameterValue = jQuery(this).find("textarea").val();
1862
+ break;
1863
+ // Select
1864
+ case '4':
1865
+ parameterValue = jQuery(this).find('select :selected').val();
1866
+ break;
1867
+ // Radio
1868
+ case '5':
1869
+ parameterValue = jQuery(this).find('[type=radio]:checked').val();
1870
+ break;
1871
+ // Checkbox
1872
+ case '6':
1873
+ var checkbox_parameter_values = [];;
1874
+ jQuery(this).find("[type=checkbox]:checked").each(function () {
1875
+ checkbox_parameter_values.push(jQuery(this).val());
1876
+ });
1877
+ parameterValue = checkbox_parameter_values;
1878
+ break;
1879
  }
 
 
 
 
 
1880
 
1881
+ parameters[parameterId] = parameterValue;
 
 
1882
  });
1883
+ data.count = count;
1884
+ data.parameters = parameters;
1885
+ data.price = jQuery(".product_manual_price").attr("data-price").replace(",","");
 
 
 
 
1886
  }
1887
+ else{
1888
+ var downloadItems = [];
1889
+ var showdigitalItemsCount = jQuery("[name=option_show_digital_items_count]").val();
1890
+ if( showdigitalItemsCount == 0 ){
1891
+ if(jQuery("[name=selected_download_item]:checked").length == 0){
1892
+ jQuery(".add_to_cart_msg").html("You must select at least one item.");
1893
+ return;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1894
  }
1895
+ jQuery("[name=selected_download_item]:checked").each(function () {
1896
+ var downloadItem = {};
1897
+ downloadItem.id = jQuery(this).val();
1898
+ downloadItem.count = 1;
1899
+ downloadItem.price = jQuery(this).closest("tr").attr("data-price");
1900
+ downloadItems.push(downloadItem);
1901
+ });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1902
  }
1903
  else{
1904
+ jQuery(".digital_image_count").each(function () {
1905
+ var downloadItem = {};
1906
+ if(jQuery(this).val() > 0){
1907
+ downloadItem.id = jQuery(this).closest("tr").attr("data-id");
1908
+ downloadItem.price = jQuery(this).closest("tr").attr("data-price");
1909
+ downloadItem.count = jQuery(this).val();
1910
+ downloadItems.push(downloadItem);
1911
+ }
1912
+ });
1913
+ }
1914
+ data.downloadItems = downloadItems;
1915
+ if(downloadItems.length == 0) {
1916
+ jQuery(".add_to_cart_msg").html("<?php echo __("Please select at least one item", BWG()->prefix);?>");
1917
+ return ;
1918
  }
1919
  }
1920
 
1921
+ var ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>';
1922
+ var post_data = {
1923
+ 'action': 'add_cart',
1924
+ 'task': 'add_cart',
1925
+ 'controller': 'checkout',
1926
+ "image_id": jQuery('#bwg_popup_image').attr('image_id'),
1927
+ "type": type,
1928
+ "data": JSON.stringify(data)
1929
+ };
1930
+
1931
+ jQuery.ajax({
1932
+ type: "POST",
1933
+ url: ajaxurl,
1934
+ data: post_data,
1935
+ success: function (response) {
1936
+ responseData = JSON.parse(response);
1937
+ jQuery(".add_to_cart_msg").html(responseData["msg"]);
1938
+ jQuery(".products_in_cart").html(responseData["products_in_cart"]);
1939
+ if(responseData["redirect"] == 1){
1940
+ window.location.href = "<?php echo get_permalink($options->checkout_page);?>";
1941
+ }
1942
+ },
1943
+ beforeSend: function(){
1944
+ },
1945
+ complete:function(){
1946
+ }
1947
+ });
1948
+ }
1949
+ else {
1950
+ jQuery(".add_to_cart_msg").html("<?php echo __("Please select Prints and products or Downloads", BWG()->prefix);?>");
1951
+ }
1952
+ }
1953
+
1954
+ function onBtnViewCart(){
1955
+ var checkoutPage = jQuery("[name=option_checkout_page]").val();
1956
+ jQuery("#bwg_ecommerce_form").attr("action",checkoutPage)
1957
+ jQuery("#bwg_ecommerce_form").submit();
1958
+ }
1959
+ </script>
1960
  <?php
1961
  }
1962
  if ( BWG()->options->use_inline_stiles_and_scripts ) {
1993
  var startPoint = 0;
1994
  var endPoint = key+preloadCount;
1995
 
 
1996
  jQuery(document).ready(function () {
1997
  wds_load_visible_images();
1998
  jQuery(".pge_tabs li a").on("click", function(){
2020
  }
2021
  }
2022
  var bwg_param = {
2023
+ bwg : '<?php echo $bwg; ?>',
2024
  bwg_current_key : '<?php echo $current_key; ?>',
2025
  enable_loop : <?php echo $enable_loop; ?>,
2026
  ecommerceACtive : '<?php echo (function_exists('BWGEC') ) == true ? 1 : 0 ; ?>',
2052
  bwg_share_image_url : "<?php echo urlencode(BWG()->upload_url); ?>",
2053
  slideshow_interval : <?php echo $slideshow_interval; ?>,
2054
  open_with_fullscreen : <?php echo $open_with_fullscreen; ?>,
2055
+ event_stack : event_stack,
2056
+ bwg_playInterval : 0,
2057
+ data : data,
2058
  };
2059
+ <?php if (BWG()->is_pro && $enable_addthis && $addthis_profile_id) { ?>
2060
+ var addthis_share = {
2061
+ url: "<?php echo urlencode($share_url); ?>"
2062
+ }
2063
+ <?php } ?>
 
 
 
 
2064
  var lightbox_comment_pos = bwg_param['lightbox_comment_pos'];
2065
  var bwg_image_info_pos = (jQuery(".bwg_ctrl_btn_container").length) ? jQuery(".bwg_ctrl_btn_container").height() : 0;
2066
  setTimeout(function(){
2071
  jQuery(".bwg_image_info").height(jQuery(".bwg_image_info_container1").height()- jQuery(".bwg_toggle_container").height()- bwg_image_info_pos - 2*(parseInt("<?php echo $theme_row->lightbox_info_margin; ?>")));
2072
  }
2073
  }, 100);
 
2074
  var bwg_transition_duration = <?php echo (($slideshow_interval < 4 * $slideshow_effect_duration) && ($slideshow_interval != 0)) ? ($slideshow_interval * 1000) / 4 : ($slideshow_effect_duration * 1000); ?>;
2075
  bwg_param['bwg_transition_duration'] = bwg_transition_duration;
2076
+ bwg_param['bwg_trans_in_progress'] = false;
2077
 
2078
  var bwg_playInterval;
2079
  if ((jQuery("#spider_popup_wrap").width() >= jQuery(window).width()) || (jQuery("#spider_popup_wrap").height() >= jQuery(window).height())) {
2090
  return;
2091
  }
2092
  if (e.keyCode === 39) { /* Right arrow.*/
2093
+ bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), parseInt(jQuery('#bwg_current_image_key').val()) + 1, bwg_param['data'])
2094
  }
2095
  else if (e.keyCode === 37) { /* Left arrow.*/
2096
+ bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), parseInt(jQuery('#bwg_current_image_key').val()) - 1, bwg_param['data'])
2097
  }
2098
  else if (e.keyCode === 27) { /* Esc.*/
2099
  spider_destroypopup(1000);
2102
  jQuery(".bwg_play_pause").trigger('click');
2103
  }
2104
  });
 
 
2105
  jQuery(window).resize(function() {
2106
  if (typeof jQuery().fullscreen !== 'undefined') {
2107
  if (jQuery.isFunction(jQuery().fullscreen)) {
2116
  var bwg_popup_current_height = <?php echo $image_height; ?>;
2117
 
2118
  /* jQuery(document).ready(function () { */
2119
+ <?php
2120
+ if ( BWG()->is_pro ) {
2121
+ if ($enable_addthis && $addthis_profile_id) {
2122
  ?>
2123
+ jQuery(".at4-share-outer").show();
2124
+ <?php
2125
+ }
2126
+ ?>
2127
  /* Increase image hit counter.*/
2128
  spider_set_input_value('rate_ajax_task', 'save_hit_count');
2129
  spider_rate_ajax_save('bwg_rate_form');
2130
  jQuery(".bwg_image_hits span").html(++data["<?php echo $current_image_key; ?>"]["hit_count"]);
2131
  var bwg_hash = window.location.hash;
2132
  if (!bwg_hash || bwg_hash.indexOf("bwg") == "-1") {
2133
+ location.replace("#bwg<?php echo $gallery_id; ?>/<?php echo $current_image_id; ?>");
2134
+ history.replaceState(undefined, undefined, "#bwg<?php echo $gallery_id; ?>/<?php echo $current_image_id; ?>");
2135
  }
2136
+ <?php } ?>
2137
  <?php if ($image_right_click) { ?>
2138
  /* Disable right click.*/
2139
  jQuery(".bwg_image_wrap").bind("contextmenu", function (e) {
2146
  });
2147
  if (typeof jQuery().swiperight !== 'undefined') {
2148
  if (jQuery.isFunction(jQuery().swiperight)) {
2149
+ jQuery('#spider_popup_wrap .bwg_image_wrap').swiperight(function () {
2150
+ bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), (parseInt(jQuery('#bwg_current_image_key').val()) + bwg_param['data'].length - 1) % bwg_param['data'].length, bwg_param['data']);
2151
  return false;
2152
  });
2153
  }
2154
  }
2155
  if (typeof jQuery().swipeleft !== 'undefined') {
2156
  if (jQuery.isFunction(jQuery().swipeleft)) {
2157
+ jQuery('#spider_popup_wrap .bwg_image_wrap').swipeleft(function () {
2158
+ bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), (parseInt(jQuery('#bwg_current_image_key').val()) + 1) % bwg_param['data'].length, bwg_param['data']);
2159
  return false;
2160
  });
2161
  }
2164
  var isMobile = (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));
2165
  var bwg_click = isMobile ? 'touchend' : 'click';
2166
  jQuery("#spider_popup_left").on(bwg_click, function () {
2167
+ bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), (parseInt(jQuery('#bwg_current_image_key').val()) + bwg_param['data'].length - 1) % bwg_param['data'].length, bwg_param['data']);
2168
  return false;
2169
  });
2170
  jQuery("#spider_popup_right").on(bwg_click, function () {
2171
+ bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), (parseInt(jQuery('#bwg_current_image_key').val()) + 1) % bwg_param['data'].length, bwg_param['data']);
2172
  return false;
2173
  });
2174
  if (navigator.appVersion.indexOf("MSIE 10") != -1 || navigator.appVersion.indexOf("MSIE 9") != -1) {
2195
  <?php if ($filmstrip_direction == 'horizontal') { ?>
2196
  jQuery(".bwg_image_container").height(jQuery(".bwg_image_wrap").height() - <?php echo $image_filmstrip_height; ?>);
2197
  jQuery(".bwg_image_container").width(jQuery(".bwg_image_wrap").width());
2198
+ <?php }
2199
  else {
2200
  ?>
2201
  jQuery(".bwg_image_container").height(jQuery(".bwg_image_wrap").height());
2302
  }
2303
  });
2304
  /* Open/close comments.*/
2305
+ jQuery(".bwg_comment, .bwg_comments_close_btn").on(bwg_click, function() { bwg_comment() });
 
2306
  /* Open/close ecommerce.*/
2307
+ jQuery(".bwg_ecommerce, .bwg_ecommerce_close_btn").on(bwg_click, function() { bwg_ecommerce() });
 
2308
  /* Open/close control buttons.*/
2309
  jQuery(".bwg_toggle_container").on(bwg_click, function () {
2310
  var bwg_open_toggle_btn_class = "<?php echo ($theme_row->lightbox_ctrl_btn_pos == 'top') ? 'fa-angle-up' : 'fa-angle-down'; ?>";
2319
  var info_height = bwg_image_info_height + jQuery(".bwg_ctrl_btn_container").height();
2320
  var top = parseInt(jQuery(".bwg_image_info").css("top")) - jQuery(".bwg_ctrl_btn_container").height();
2321
  var bottom = jQuery(".bwg_ctrl_btn_container").height();
 
2322
  <?php
2323
  if ($theme_row->lightbox_ctrl_btn_pos == 'top' && $theme_row->lightbox_info_pos == 'top') {
2324
  ?>
2328
  else {
2329
  jQuery(".bwg_image_info").animate({top: top + "px"}, 500);
2330
  }
2331
+ <?php
2332
  }
2333
  elseif ($theme_row->lightbox_ctrl_btn_pos == 'bottom') {
2334
  ?>
2581
  });
2582
  /* Play/pause.*/
2583
  jQuery(".bwg_play_pause, .bwg_popup_image").on(bwg_click, function () {
2584
+ if (jQuery(".bwg_play_pause").length && jQuery(".bwg_play_pause").hasClass("fa-play") && !jQuery(".bwg_comment_container").hasClass("bwg_open")) {
2585
  /* PLay.*/
2586
+ bwg_play( bwg_param['data'] );
2587
  jQuery(".bwg_play_pause").attr("title", "<?php echo __('Pause', BWG()->prefix); ?>");
2588
  jQuery(".bwg_play_pause").attr("class", "bwg_ctrl_btn bwg_play_pause fa fa-pause");
2589
  }
2596
  });
2597
  /* Open with autoplay.*/
2598
  <?php if ($open_with_autoplay) { ?>
2599
+ bwg_play( bwg_param['data'] );
2600
  jQuery(".bwg_play_pause").attr("title", "<?php echo __('Pause', BWG()->prefix); ?>");
2601
  jQuery(".bwg_play_pause").attr("class", "bwg_ctrl_btn bwg_play_pause fa fa-pause");
2602
  <?php } ?>
2603
  /* Open with fullscreen.*/
2604
+ <?php if ($open_with_fullscreen) { ?>
 
 
2605
  bwg_open_with_fullscreen();
2606
+ <?php } ?>
 
 
2607
 
2608
  /* load filmstrip not visible images */
2609
  function bwg_load_filmstrip() {
2633
  jQuery(window).focus(function() {
2634
  /* event_stack = [];*/
2635
  if (jQuery(".bwg_play_pause").length && !jQuery(".bwg_play_pause").hasClass("fa-play")) {
2636
+ bwg_play( bwg_param['data'] );
2637
  }
2638
  /*var i = 0;
2639
  jQuery(".bwg_slider").children("span").each(function () {
2651
  if ( <?php echo $open_ecommerce;?> == 1) {
2652
  setTimeout(function(){ bwg_ecommerce(); }, 400);
2653
  }
2654
+ <?php if ( $open_comment ) { ?>
2655
+ bwg_comment();
2656
+ <?php } ?>
2657
  </script>
2658
  <?php
2659
  die();
2664
  <div class="bwg-loading hidden"></div>
2665
  <?php
2666
  }
2667
+
2668
+ public function html_comments_block( $row = array() ) {
2669
+ ob_start();
2670
+ ?>
2671
+ <div id="bwg_comment_block_<?php echo $row->id; ?>" class="bwg_single_comment">
2672
+ <p class="bwg_comment_header_p">
2673
+ <span class="bwg_comment_header"><?php echo $row->name; ?></span>
2674
+ <?php if ( current_user_can('manage_options') ) { ?>
2675
+ <i onclick="bwg_remove_comment(<?php echo $row->id; ?>); return false;"
2676
+ ontouchend="bwg_remove_comment(<?php echo $row->id; ?>); return false;"
2677
+ title="<?php _e('Delete Comment', BWG()->prefix); ?>" class="bwg_comment_delete_btn fa fa-times"></i>
2678
+ <?php } ?>
2679
+ <span class="bwg_comment_date"><?php echo $row->date; ?></span>
2680
+ </p>
2681
+ <div class="bwg_comment_body_p">
2682
+ <span class="bwg_comment_body"><?php echo wpautop($row->comment); ?></span>
2683
+ </div>
2684
+ </div>
2685
+ <?php
2686
+ return ob_get_clean();
2687
+ }
2688
+ }
frontend/views/BWGViewImage_browser.php CHANGED
@@ -1,435 +1,237 @@
1
  <?php
2
- class BWGViewImage_browser {
3
- public function display($params = array(), $from_shortcode = 0, $bwg = 0) {
4
- require_once(BWG()->plugin_dir . '/framework/WDWLibrary.php');
5
- require_once(BWG()->plugin_dir . '/framework/WDWLibraryEmbed.php');
6
 
7
- $order_by = $params['order_by'];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  $image_title = $params['image_browser_title_enable'];
9
  $enable_image_description = $params['image_browser_description_enable'];
10
  $image_right_click = isset(BWG()->options->image_right_click) ? BWG()->options->image_right_click : 0;
11
- $placeholder = $params['placeholder'];
12
- $gallery_download = $params['gallery_download'];
13
-
14
- $theme_row = WDWLibrary::get_theme_row_data($params['theme_id']);
15
- if (!$theme_row) {
16
- echo WDWLibrary::message(__('There is no theme selected or the theme was deleted.', BWG()->prefix), 'wd_error');
17
- return;
18
- }
19
- $gallery_row = WDWLibrary::get_gallery_row_data($params['gallery_id']);
20
- if (!$gallery_row && $params["tag"] == 0) {
21
- echo WDWLibrary::message(__('There is no gallery selected or the gallery was deleted.', BWG()->prefix), 'wd_error');
22
- return;
23
- }
24
- $image_rows = WDWLibrary::get_image_rows_data($params['gallery_id'], $bwg, 'image_browser', '', $params['tag'], 1, 1, $params['sort_by'], $params['order_by']);
25
  $page_nav = $image_rows['page_nav'];
26
- $image_rows = $image_rows['images'];
27
- $images_count = count($image_rows);
28
- if (!$image_rows) {
29
- if ($params['tag']) {
30
- echo WDWLibrary::message(__('There are no images.', BWG()->prefix), 'wd_error');
31
- }
32
- else {
33
- echo WDWLibrary::message(__('There are no images in this gallery.', BWG()->prefix), 'wd_error');
34
- }
35
- }
36
-
37
- $params_array = array(
38
- 'action' => 'GalleryBox',
39
- 'current_view' => $bwg,
40
- 'gallery_id' => $params['gallery_id'],
41
- 'theme_id' => $params['theme_id'],
42
- 'open_with_fullscreen' => $params['popup_fullscreen'],
43
- 'open_with_autoplay' => $params['popup_autoplay'],
44
- 'image_width' => $params['popup_width'],
45
- 'image_height' => $params['popup_height'],
46
- 'image_effect' => $params['popup_effect'],
47
- 'wd_sor' => $params['sort_by'],
48
- 'wd_ord' => $order_by,
49
- 'enable_image_filmstrip' => $params['popup_enable_filmstrip'],
50
- 'image_filmstrip_height' => $params['popup_filmstrip_height'],
51
- 'enable_image_ctrl_btn' => $params['popup_enable_ctrl_btn'],
52
- 'enable_image_fullscreen' => $params['popup_enable_fullscreen'],
53
- 'popup_enable_info' => $params['popup_enable_info'],
54
- 'popup_info_always_show' => $params['popup_info_always_show'],
55
- 'popup_info_full_width' => $params['popup_info_full_width'],
56
- 'popup_hit_counter' => $params['popup_hit_counter'],
57
- 'popup_enable_rate' => $params['popup_enable_rate'],
58
- 'slideshow_interval' => $params['popup_interval'],
59
- 'enable_comment_social' => $params['popup_enable_comment'],
60
- 'enable_image_facebook' => $params['popup_enable_facebook'],
61
- 'enable_image_twitter' => $params['popup_enable_twitter'],
62
- 'enable_image_google' => $params['popup_enable_google'],
63
- 'enable_image_pinterest' => $params['popup_enable_pinterest'],
64
- 'enable_image_tumblr' => $params['popup_enable_tumblr'],
65
- 'watermark_type' => $params['watermark_type'],
66
- 'slideshow_effect_duration' => isset($params['popup_effect_duration']) ? $params['popup_effect_duration'] : 1,
67
- 'tags' => (isset($params['tag']) ? $params['tag'] : 0),
68
- 'popup_enable_email' => $params['popup_enable_email'],
69
- 'popup_enable_captcha' => $params['popup_enable_captcha'],
70
- 'comment_moderation' => $params['comment_moderation'],
71
- 'autohide_lightbox_navigation' => $params['autohide_lightbox_navigation'],
72
- 'popup_enable_fullsize_image' => $params['popup_enable_fullsize_image'],
73
- 'popup_enable_download' => $params['popup_enable_download'],
74
- 'show_image_counts' => $params['show_image_counts'],
75
- 'enable_loop' => $params['enable_loop'],
76
- 'enable_addthis' => $params['enable_addthis'],
77
- 'addthis_profile_id' => $params['addthis_profile_id']
78
- );
79
- if ( BWG()->is_pro ) {
80
- $current_url = (is_ssl() ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
81
- $params_array['current_url'] = urlencode($current_url);;
82
- $params_array['enable_image_ecommerce'] = $params['popup_enable_ecommerce'];
83
- }
84
  $items_per_page = array('images_per_page' => 1, 'load_more_image_count' => 1);
85
- if ($params['watermark_type'] == 'none') {
86
- $params_array['watermark_font'] = '';
87
- $params_array['watermark_color'] = '';
88
- $params_array['watermark_font_size'] = '';
89
- $params_array['watermark_opacity'] = 0;
90
  $text_align = '';
91
  $vertical_align = '';
92
- $params_array['watermark_width'] = '';
93
  $show_watermark = FALSE;
94
  }
95
- if ($params['watermark_type'] != 'none') {
96
- $params_array['watermark_link'] = $params['watermark_link'];
97
- $params_array['watermark_opacity'] = (int) $params['watermark_opacity'];
98
- $params_array['watermark_position'] =(($params['watermark_position'] != 'undefined') ? $params['watermark_position'] : 'top-center');
99
- $position = explode('-', $params_array['watermark_position']);
100
- $vertical_align = $position[0];
101
- $text_align = $position[1];
102
  }
103
- if ($params['watermark_type'] == 'text') {
104
  $show_watermark = TRUE;
105
- $watermark_text_image = TRUE;
106
- $params_array['watermark_text'] = $params['watermark_text'];
107
- $params_array['watermark_font_size'] = $params['watermark_font_size'];
108
- $params_array['watermark_font'] = $params['watermark_font'];
109
- $params_array['watermark_color'] = $params['watermark_color'];
110
- $params_array['watermark_width'] = 0;
111
- $watermark_image_or_text = $params_array['watermark_text'];
112
- $watermark_a = 'bwg_watermark_text_' . $bwg;
113
- $watermark_div = 'class="bwg_image_browser_watermark_text_' . $bwg . '"';
114
  }
115
- elseif ($params['watermark_type'] == 'image') {
116
  $show_watermark = TRUE;
117
- $watermark_text_image = FALSE;
118
- $params_array['watermark_url'] = $params['watermark_url'];
119
- $params_array['watermark_width'] = (int) $params['watermark_width'];
120
- $params_array['watermark_height'] = $params['watermark_height'];
121
- $watermark_image_or_text = '<img class="bwg_image_browser_watermark_img_' . $bwg . '" src="' . urldecode($params_array['watermark_url']) . '" />';
122
- $watermark_a = '';
123
- $watermark_div = 'class="bwg_image_browser_watermark_' . $bwg . '"';
124
- $params_array['watermark_font'] = '';
125
- $params_array['watermark_color'] = '';
126
- $params_array['watermark_font_size'] = '';
127
  }
128
  $image_browser_image_title_align = (isset($theme_row->image_browser_image_title_align)) ? $theme_row->image_browser_image_title_align : 'top';
129
- if (!isset($theme_row->image_browser_gal_title_font_color)) {
130
- $theme_row->image_browser_gal_title_font_color = 'CCCCCC';
131
- }
132
- if (!isset($theme_row->image_browser_gal_title_font_style)) {
133
- $theme_row->image_browser_gal_title_font_style = 'segoe ui';
134
- }
135
- if (!isset($theme_row->image_browser_gal_title_font_size)) {
136
- $theme_row->image_browser_gal_title_font_size = 16;
137
- }
138
- if (!isset($theme_row->image_browser_gal_title_font_weight)) {
139
- $theme_row->image_browser_gal_title_font_weight = 'bold';
140
- }
141
- if (!isset($theme_row->image_browser_gal_title_margin)) {
142
- $theme_row->image_browser_gal_title_margin = '2px';
143
- }
144
- if (!isset($theme_row->image_browser_gal_title_shadow)) {
145
- $theme_row->image_browser_gal_title_shadow = '0px 0px 0px #888888';
146
- }
147
- if (!isset($theme_row->image_browser_gal_title_align)) {
148
- $theme_row->image_browser_gal_title_align = 'center';
149
- }
150
- $inline_style = $this->inline_styles($bwg, $theme_row, $params, $params_array, $text_align, $vertical_align);
151
- if (BWG()->options->use_inline_stiles_and_scripts) {
152
- wp_enqueue_style('bwg_frontend');
153
- wp_add_inline_style('bwg_frontend', $inline_style);
154
- wp_enqueue_style('bwg_font-awesome');
155
- wp_enqueue_style('bwg_mCustomScrollbar');
156
- wp_enqueue_style('bwg_googlefonts');
157
- if (!wp_script_is('bwg_frontend', 'done')) {
158
- wp_print_scripts('bwg_frontend');
159
- }
160
- if ($params['thumb_click_action'] == 'open_lightbox') {
161
- if (!wp_script_is('bwg_mCustomScrollbar', 'done')) {
162
- wp_print_scripts('bwg_mCustomScrollbar');
163
- }
164
- if (!wp_script_is('jquery-fullscreen', 'done')) {
165
- wp_print_scripts('jquery-fullscreen');
166
- }
167
- if (!wp_script_is('bwg_gallery_box', 'done')) {
168
- wp_print_scripts('bwg_gallery_box');
169
  }
170
- if ( BWG()->is_pro && !wp_script_is('bwg_raty', 'done')) {
171
- wp_print_scripts('bwg_raty');
172
  }
173
  }
174
- if (!wp_script_is('bwg_jquery_mobile', 'done')) {
175
- wp_print_scripts('bwg_jquery_mobile');
176
- }
177
  }
178
  else {
179
- echo '<style>' . $inline_style . '</style>';
 
 
 
 
 
180
  }
 
 
 
 
 
 
 
181
  ?>
182
- <div id="bwg_container1_<?php echo $bwg; ?>">
183
- <div id="bwg_container2_<?php echo $bwg; ?>">
184
- <form id="gal_front_form_<?php echo $bwg; ?>" method="post" action="#" data-current="<?php echo $bwg; ?>">
185
- <?php
186
- if ($params['show_search_box']) {
187
- WDWLibrary::ajax_html_frontend_search_box('gal_front_form_' . $bwg, $bwg, 'bwg_image_browser_' . $bwg, $images_count, $params['search_box_width'], $placeholder);
188
- }
189
- if ($params['showthumbs_name'] && $gallery_row->name != '') {
190
- ?>
191
- <div class="bwg_gal_title_<?php echo $bwg; ?>"><?php echo $gallery_row->name; ?></div>
192
- <?php
193
- }
194
- if ($params['show_gallery_description'] && $gallery_row->name != '') {
195
- ?>
196
- <div class="bwg_gal_title_<?php echo $bwg; ?>"><?php echo $gallery_row->description; ?></div>
197
- <?php
198
- }
199
  ?>
200
- <div class="image_browser_images_conteiner_<?php echo $bwg; ?>">
201
- <div id="ajax_loading_<?php echo $bwg; ?>" style="position:absolute;width: 100%; z-index: 115; text-align: center; height: 100%; vertical-align: middle; display:none;">
202
- <div style="display: table; vertical-align: middle; width: 100%; height: 100%; background-color: #FFFFFF; opacity: 0.7; filter: Alpha(opacity=70);">
203
- <div style="display: table-cell; text-align: center; position: relative; vertical-align: middle;" >
204
- <div id="loading_div_<?php echo $bwg; ?>" class="bwg_spider_ajax_loading" style="display: inline-block; text-align:center; position:relative; vertical-align:middle; background-image:url(<?php echo BWG()->plugin_url . '/images/ajax_loader.png'; ?>); float: none; width:30px;height:30px;background-size:30px 30px;">
 
 
 
205
  </div>
206
  </div>
207
- </div>
208
- </div>
209
- <div class="image_browser_images_<?php echo $bwg; ?>" id="bwg_image_browser_<?php echo $bwg; ?>" >
210
- <?php
211
- if ( $theme_row->page_nav_position == 'top') {
212
- WDWLibrary::ajax_html_frontend_page_nav($theme_row, $page_nav['total'], $page_nav['limit'], 'gal_front_form_' . $bwg, $items_per_page, $bwg, 'bwg_image_browser_' . $bwg, 0, 'album', BWG()->options->enable_seo);
213
  }
214
- foreach ($image_rows as $image_row) {
215
- $params_array['image_id'] = (isset($_POST['image_id']) ? esc_html($_POST['image_id']) : $image_row->id);
216
- $is_embed = preg_match('/EMBED/',$image_row->filetype)==1 ? true :false;
217
- $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));
218
- $is_embed_instagram_post = preg_match('/INSTAGRAM_POST/',$image_row->filetype)==1 ? true :false;
219
- ?>
220
- <div class="image_browser_image_buttons_conteiner_<?php echo $bwg; ?>">
221
- <div class="image_browser_image_buttons_<?php echo $bwg;?>">
222
- <?php
223
- if ($image_title && ($image_browser_image_title_align == 'top')) {
224
- ?>
225
- <div class="bwg_image_browser_image_alt_<?php echo $bwg; ?>">
226
- <div class="bwg_image_alt_<?php echo $bwg; ?>" id="alt<?php echo $image_row->id; ?>">
227
- <?php echo html_entity_decode($image_row->alt); ?>
228
- </div>
229
- </div>
230
- <?php
231
- }
232
- ?>
233
- <div class="bwg_image_browser_image_<?php echo $bwg; ?>">
234
- <?php
235
- if ($show_watermark) {
236
- ?>
237
- <div class="bwg_image_browser_image_contain_<?php echo $bwg; ?>" id="bwg_image_browser_image_contain_<?php echo $image_row->id ?>">
238
- <div class="bwg_image_browser_watermark_contain_<?php echo $bwg; ?>">
239
- <div class="bwg_image_browser_watermark_cont_<?php echo $bwg; ?>">
240
- <div <?php echo $watermark_div; ?> >
241
- <a class="bwg_none_selectable <?php echo $watermark_a; ?>" id="watermark_a<?php echo $image_row->id; ?>" href="<?php echo urldecode($params_array['watermark_link']); ?>" target="_blank">
242
- <?php echo $watermark_image_or_text; ?>
243
- </a>
244
- </div>
245
- </div>
246
- </div>
247
- </div>
248
- <?php
249
- }
250
- if (!$is_embed) {
251
- ?>
252
- <a style="position:relative;" <?php echo ($params['thumb_click_action'] == 'open_lightbox' ? (' class="bwg_lightbox_' . $bwg . '" data-image-id="' . $image_row->id . '"') : ($params['thumb_click_action'] == 'redirect_to_url' && $image_row->redirect_url ? 'href="' . $image_row->redirect_url . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : '')) ?>>
253
- <img class="bwg_image_browser_img_<?php echo $bwg; ?>" src="<?php echo BWG()->upload_url . $image_row->image_url; ?>" alt="<?php echo $image_row->alt; ?>" />
254
- </a>
255
- <?php
256
- }
257
- else { /*$is_embed*/
258
- if($is_embed_16x9) {
259
- WDWLibraryEmbed::display_embed($image_row->filetype, $image_row->image_url, $image_row->filename, array('id' => "bwg_embed_frame_16x9_" . $bwg, 'width' => $params['image_browser_width'], 'height' => $params['image_browser_width'] * 0.5625, 'frameborder' => "0", 'allowfullscreen' => "allowfullscreen", 'style' => "position: relative; margin:0;"));
260
- }
261
- else if($is_embed_instagram_post) {
262
- $instagram_post_width = $params['image_browser_width'];
263
- $instagram_post_height = $params['image_browser_width'];
264
- $image_resolution = explode(' x ', $image_row->resolution);
265
- if (is_array($image_resolution)) {
266
- $instagram_post_width = $image_resolution[0];
267
- $instagram_post_height = explode(' ', $image_resolution[1]);
268
- $instagram_post_height = $instagram_post_height[0];
269
- }
270
- 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;"));
271
- }
272
- else{/*for instagram image, video and flickr enable lightbox onclick*/
273
- ?>
274
- <a style="position:relative;" <?php echo ($params['thumb_click_action'] == 'open_lightbox' ? (' class="bwg_lightbox_' . $bwg . '" data-image-id="' . $image_row->id . '"') : ($image_row->redirect_url ? 'href="' . $image_row->redirect_url . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : '')) ?>>
275
- <?php
276
- WDWLibraryEmbed::display_embed($image_row->filetype, $image_row->image_url, $image_row->filename, array('id'=>"bwg_embed_frame_".$bwg,'width'=>$params['image_browser_width'], 'height'=>'auto', 'frameborder'=>"0", 'allowfullscreen'=>"allowfullscreen", 'style'=>"position: relative; margin:0;"));
277
- ?>
278
  </a>
279
-
280
- <?php
281
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
282
  }
 
 
 
 
 
 
 
 
 
 
283
  ?>
284
- <script>
285
- function bwg_image_browser_<?php echo $bwg; ?>() {
286
- jQuery('#bwg_embed_frame_16x9_<?php echo $bwg; ?>').width(jQuery('#bwg_embed_frame_16x9_<?php echo $bwg; ?>').parent().width());
287
- jQuery('#bwg_embed_frame_16x9_<?php echo $bwg; ?>').height(jQuery('#bwg_embed_frame_16x9_<?php echo $bwg; ?>').width() * 0.5625);
288
- jQuery('#bwg_embed_frame_instapost_<?php echo $bwg; ?>').width(jQuery('#bwg_embed_frame_16x9_<?php echo $bwg; ?>').parent().width());
289
- /* 16 is 2*padding inside iframe */
290
- /* 96 is 2*padding(top) + 1*padding(bottom) + 40(footer) + 32(header) */
291
- jQuery('.bwg_embed_frame_instapost_<?php echo $bwg; ?>').height((jQuery('.bwg_embed_frame_instapost_<?php echo $bwg; ?>').width() - 16) * jQuery('.bwg_embed_frame_instapost_<?php echo $bwg; ?>').attr('data-height') / jQuery('.bwg_embed_frame_instapost_<?php echo $bwg; ?>').attr('data-width') + 96);
292
-
293
- var bwg_image_browser_width = jQuery('.image_browser_images_<?php echo $bwg; ?>').width();
294
- if (bwg_image_browser_width <= 108) {
295
- jQuery('.paging-input_<?php echo $bwg; ?>').css('display', 'none');
296
- }
297
- else if (bwg_image_browser_width <= 200) {
298
- jQuery('.paging-input_<?php echo $bwg; ?>').css('margin', '0% 0% 0% 0%');
299
- jQuery('.paging-input_<?php echo $bwg; ?>').css('display', 'inline');
300
- jQuery('.tablenav-pages_<?php echo $bwg; ?> .next-page').css('margin', '0% 0% 0% 0%');
301
- jQuery('.tablenav-pages_<?php echo $bwg; ?> .prev-page').css('margin', '0% 0% 0% 0%');
302
- }
303
- else if (bwg_image_browser_width <= 580) {
304
- jQuery('.paging-input_<?php echo $bwg; ?>').css('display', 'inline');
305
- jQuery('.tablenav-pages_<?php echo $bwg; ?> a').css('font-size', '13px');
306
- jQuery('.paging-input_<?php echo $bwg; ?>').css('margin', '0% 7% 0% 7%');
307
- jQuery('.tablenav-pages_<?php echo $bwg; ?> .next-page').css('margin', '0% 0% 0% 0%');
308
- jQuery('.tablenav-pages_<?php echo $bwg; ?> .prev-page').css('margin', '0% 0% 0% 0%');
309
- }
310
- else {
311
- jQuery('.tablenav-pages_<?php echo $bwg; ?> a').css('font-size', '15px');
312
- jQuery('.paging-input_<?php echo $bwg; ?>').css('margin', '0% 14% 0% 14%');
313
- jQuery('.paging-input_<?php echo $bwg; ?>').css('display', 'inline');
314
- jQuery('.tablenav-pages_<?php echo $bwg; ?> .next-page').css('margin', '0% 0% 0% 0%');
315
- jQuery('.tablenav-pages_<?php echo $bwg; ?> .prev-page').css('margin', '0% 0% 0% 0%');
316
- }
317
- }
318
- setTimeout(function() {
319
- bwg_image_browser_<?php echo $bwg; ?>();
320
- }, 3);
321
- </script>
322
- </div>
323
- <?php
324
- if ($image_title && ($image_browser_image_title_align == 'bottom')) {
325
- ?>
326
- <div class="bwg_image_browser_image_alt_<?php echo $bwg; ?>">
327
- <div class="bwg_image_alt_<?php echo $bwg; ?>" id="alt<?php echo $image_row->id; ?>">
328
- <?php echo html_entity_decode($image_row->alt); ?>
329
- </div>
330
- </div>
331
  <?php
332
- }
333
- if ($enable_image_description && ($image_row->description != "")) {
 
 
 
 
 
 
 
334
  ?>
335
- <div class="bwg_image_browser_image_desp_<?php echo $bwg; ?>">
336
- <div class="bwg_image_browser_image_description_<?php echo $bwg; ?>" id="alt<?php echo $image_row->id; ?>">
337
- <?php echo html_entity_decode($image_row->description); ?>
338
- </div>
339
- </div>
340
- <?php
341
- }
342
- ?>
 
 
 
 
 
343
  </div>
344
  </div>
345
  <?php
346
  }
347
- if ( BWG()->is_pro && $gallery_download && $image_rows ) {
348
- $query_url = addslashes(add_query_arg(array(
349
- "action" => "download_gallery",
350
- "gallery_id" => $params['gallery_id'],
351
- "bwg" => $bwg,
352
- "type" => 'gallery',
353
- "bwg_search_".$bwg => WDWLibrary::get('bwg_search_'.$bwg),
354
- ), admin_url('admin-ajax.php')));
355
  ?>
356
- <div class="bwg_download_gallery">
357
- <a href="<?php echo $query_url; ?>">
358
- <i title="<?php _e('Download gallery', BWG()->prefix); ?>" class="bwg_ctrl_btn fa fa-download"></i>
359
- </a>
360
  </div>
361
  <?php
362
  }
363
- if ( $theme_row->page_nav_position == 'bottom') {
364
- WDWLibrary::ajax_html_frontend_page_nav($theme_row, $page_nav['total'], $page_nav['limit'], 'gal_front_form_' . $bwg, $items_per_page, $bwg, 'bwg_image_browser_' . $bwg, 0, 'album', BWG()->options->enable_seo);
365
- }
366
  ?>
367
  </div>
368
  </div>
369
- </form>
370
- <div id="bwg_spider_popup_loading_<?php echo $bwg; ?>" class="bwg_spider_popup_loading"></div>
371
- <div id="spider_popup_overlay_<?php echo $bwg; ?>" class="spider_popup_overlay" onclick="spider_destroypopup(1000)"></div>
372
- </div>
373
- </div>
374
- <script>
375
- jQuery(window).on("load", function () {
376
- <?php if ($image_right_click) { ?>
377
- /* Disable right click.*/
378
- jQuery('div[id^="bwg_container"]').bind("contextmenu", function (e) {
379
- return false;
380
- });
381
- jQuery('div[id^="bwg_container"]').css('webkitTouchCallout','none');
382
- <?php } ?>
383
- });
384
- jQuery(window).resize(function() {
385
- bwg_image_browser_<?php echo $bwg; ?>();
386
- });
387
- function bwg_gallery_box_<?php echo $bwg; ?>(image_id) {
388
- var filtersearchname = jQuery("#bwg_search_input_<?php echo $bwg; ?>" ).val() ? "&filter_search_name_<?php echo $bwg; ?>=" + jQuery("#bwg_search_input_<?php echo $bwg; ?>" ).val() : '';
389
- spider_createpopup('<?php echo addslashes(add_query_arg($params_array, admin_url('admin-ajax.php'))); ?>&image_id=' + image_id + filtersearchname, '<?php echo $bwg; ?>', '<?php echo $params['popup_width']; ?>', '<?php echo $params['popup_height']; ?>', 1, 'testpopup', 5, "<?php echo $theme_row->lightbox_ctrl_btn_pos ;?>");
390
- }
391
- function bwg_document_ready_<?php echo $bwg; ?>() {
392
- var bwg_touch_flag = false;
393
- jQuery(".bwg_lightbox_<?php echo $bwg; ?>").on("click", function () {
394
- if (!bwg_touch_flag) {
395
- bwg_touch_flag = true;
396
- setTimeout(function(){ bwg_touch_flag = false; }, 100);
397
- bwg_gallery_box_<?php echo $bwg; ?>(jQuery(this).attr("data-image-id"));
398
- return false;
399
- }
400
- });
401
- <?php
402
- if ( BWG()->is_pro ) {
403
- ?>
404
- var bwg_hash = window.location.hash.substring(1);
405
- if (bwg_hash) {
406
- if (bwg_hash.indexOf("bwg") != "-1") {
407
- bwg_hash_array = bwg_hash.replace("bwg", "").split("/");
408
- if (bwg_hash_array[0] == "<?php echo $params_array['gallery_id']; ?>") {
409
- bwg_gallery_box_<?php echo $bwg; ?>(bwg_hash_array[1]);
410
- }
411
- }
412
- }
413
- <?php
414
  }
415
  ?>
416
- }
417
- jQuery(document).ready(function () {
418
- bwg_document_ready_<?php echo $bwg; ?>();
419
- });
420
- </script>
421
  <?php
422
- if ($from_shortcode) {
423
- return;
 
 
 
 
 
 
 
 
 
 
 
424
  }
425
  else {
426
- die();
427
  }
428
  }
429
 
430
- private function inline_styles($bwg, $theme_row, $params, $params_array, $text_align, $vertical_align) {
 
 
 
 
 
 
 
 
 
 
431
  ob_start();
432
- $rgb_page_nav_font_color = WDWLibrary::spider_hex2rgb($theme_row->page_nav_font_color);
433
  $image_browser_images_conteiner = WDWLibrary::spider_hex2rgb($theme_row->image_browser_full_bg_color);
434
  $bwg_image_browser_image = WDWLibrary::spider_hex2rgb($theme_row->image_browser_bg_color);
435
  ?>
@@ -467,7 +269,7 @@ class BWGViewImage_browser {
467
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_image_<?php echo $bwg; ?> {
468
  background-color: rgba(<?php echo $bwg_image_browser_image['red']; ?>, <?php echo $bwg_image_browser_image['green']; ?>, <?php echo $bwg_image_browser_image['blue']; ?>, <?php echo number_format($theme_row->image_browser_transparent / 100, 2, ".", ""); ?>);
469
  text-align: center;
470
- /*display: inline-block;*/
471
  vertical-align: middle;
472
  margin: <?php echo $theme_row->image_browser_margin; ?>;
473
  padding: <?php echo $theme_row->image_browser_padding; ?>;
@@ -505,10 +307,10 @@ class BWGViewImage_browser {
505
  font-size: 10px !important;
506
  text-decoration: none;
507
  margin: 4px;
508
- font-family: <?php echo $params_array['watermark_font']; ?>;
509
- color: #<?php echo $params_array['watermark_color']; ?> !important;
510
- opacity: <?php echo number_format($params_array['watermark_opacity'] / 100, 2, ".", ""); ?>;
511
- filter: Alpha(opacity=<?php echo $params_array['watermark_opacity']; ?>);
512
  text-decoration: none;
513
  position: relative;
514
  z-index: 10141;
@@ -532,77 +334,6 @@ class BWGViewImage_browser {
532
  font-size: 10px !important;
533
  }
534
  }
535
- /*pagination styles*/
536
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> {
537
- text-align: <?php echo $theme_row->page_nav_align; ?>;
538
- font-size: <?php echo $theme_row->page_nav_font_size; ?>px;
539
- font-family: <?php echo $theme_row->page_nav_font_style; ?>;
540
- font-weight: <?php echo $theme_row->page_nav_font_weight; ?>;
541
- color: #<?php echo $theme_row->page_nav_font_color; ?>;
542
- margin: 6px 0 4px;
543
- display: block;
544
- height: 30px;
545
- line-height: 30px;
546
- }
547
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .displaying-num_<?php echo $bwg; ?> {
548
- font-size: <?php echo $theme_row->page_nav_font_size; ?>px;
549
- font-family: <?php echo $theme_row->page_nav_font_style; ?>;
550
- font-weight: <?php echo $theme_row->page_nav_font_weight; ?>;
551
- color: #<?php echo $theme_row->page_nav_font_color; ?>;
552
- margin-right: 10px;
553
- vertical-align: middle;
554
- display: none;
555
- }
556
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .paging-input_<?php echo $bwg; ?> {
557
- font-size: <?php echo $theme_row->page_nav_font_size; ?>px;
558
- font-family: <?php echo $theme_row->page_nav_font_style; ?>;
559
- font-weight: <?php echo $theme_row->page_nav_font_weight; ?>;
560
- color: #<?php echo $theme_row->page_nav_font_color; ?>;
561
- vertical-align: middle;
562
- }
563
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> a.disabled,
564
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> a.disabled:hover,
565
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> a.disabled:focus {
566
- cursor: default;
567
- color: rgba(<?php echo $rgb_page_nav_font_color['red']; ?>, <?php echo $rgb_page_nav_font_color['green']; ?>, <?php echo $rgb_page_nav_font_color['blue']; ?>, 0.5);
568
- }
569
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> a.next-page:hover,
570
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> a.prev-page:hover {
571
- color: #000000;
572
- }
573
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> a {
574
- cursor: pointer;
575
- font-size: 15px;
576
- font-family: <?php echo $theme_row->page_nav_font_style; ?>;
577
- font-weight: <?php echo $theme_row->page_nav_font_weight; ?>;
578
- color: #<?php echo $theme_row->page_nav_font_color; ?>;
579
- text-decoration: none;
580
- padding: 0% 7%;
581
- margin: <?php echo $theme_row->page_nav_margin; ?>;
582
- border-radius: <?php echo $theme_row->page_nav_border_radius; ?>;
583
- border-style: none;
584
- border-width: <?php echo $theme_row->page_nav_border_width; ?>px;
585
- border-color: #<?php echo $theme_row->page_nav_border_color; ?>;
586
- background-color: #<?php echo $theme_row->page_nav_button_bg_color; ?>;
587
- opacity: <?php echo number_format($theme_row->page_nav_button_bg_transparent / 100, 2, ".", ""); ?>;
588
- filter: Alpha(opacity=<?php echo $theme_row->page_nav_button_bg_transparent; ?>);
589
- <?php echo ($theme_row->page_nav_button_transition ) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
590
- }
591
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> .first-page,
592
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> .last-page {
593
- padding: 0% 7%;
594
- }
595
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> .next-page {
596
- margin: 0% 4% 0% 0%;
597
- }
598
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> .prev-page {
599
- margin: 0% 0% 0% 4%;
600
- }
601
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_popup_overlay_<?php echo $bwg; ?> {
602
- background-color: #<?php echo $theme_row->lightbox_overlay_bg_color; ?>;
603
- opacity: <?php echo number_format($theme_row->lightbox_overlay_bg_transparent / 100, 2, ".", ""); ?>;
604
- filter: Alpha(opacity=<?php echo $theme_row->lightbox_overlay_bg_transparent; ?>);
605
- }
606
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_image_desp_<?php echo $bwg; ?> {
607
  display: table;
608
  clear: both;
@@ -636,11 +367,11 @@ class BWGViewImage_browser {
636
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_watermark_text_<?php echo $bwg; ?>:hover {
637
  text-decoration: none;
638
  margin: 4px;
639
- font-size: <?php echo $params_array['watermark_font_size']; ?>px;
640
- font-family: <?php echo $params_array['watermark_font']; ?>;
641
- color: #<?php echo $params_array['watermark_color']; ?> !important;
642
- opacity: <?php echo number_format($params_array['watermark_opacity'] / 100, 2, ".", ""); ?>;
643
- filter: Alpha(opacity=<?php echo $params_array['watermark_opacity']; ?>);
644
  position: relative;
645
  z-index: 10141;
646
  }
@@ -670,8 +401,8 @@ class BWGViewImage_browser {
670
  position: relative;
671
  vertical-align: middle;
672
  z-index: 10140;
673
- width: <?php echo $params_array['watermark_width'];?>px;
674
- max-width: <?php echo (($params_array['watermark_width']) / ($params['image_browser_width'])) * 100 ; ?>%;
675
  margin: 10px 10px 10px 10px ;
676
  }
677
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_watermark_text_<?php echo $bwg; ?>{
@@ -684,8 +415,8 @@ class BWGViewImage_browser {
684
  }
685
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_watermark_img_<?php echo $bwg; ?>{
686
  max-width: 100%;
687
- opacity: <?php echo number_format($params_array['watermark_opacity'] / 100, 2, ".", ""); ?>;
688
- filter: Alpha(opacity=<?php echo $params_array['watermark_opacity']; ?>);
689
  position: relative;
690
  z-index: 10141;
691
  }
1
  <?php
 
 
 
 
2
 
3
+ /**
4
+ * Class BWGViewImage_browser
5
+ */
6
+ class BWGViewImage_browser extends BWGViewSite {
7
+
8
+ /**
9
+ * Display.
10
+ *
11
+ * @param array $params
12
+ * @param int $bwg
13
+ */
14
+ public function display( $params = array(), $bwg = 0) {
15
+ $theme_row = $params['theme_row'];
16
+ $image_rows = $params['image_rows'];
17
+
18
  $image_title = $params['image_browser_title_enable'];
19
  $enable_image_description = $params['image_browser_description_enable'];
20
  $image_right_click = isset(BWG()->options->image_right_click) ? BWG()->options->image_right_click : 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  $page_nav = $image_rows['page_nav'];
22
+ $images = $image_rows['images'];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  $items_per_page = array('images_per_page' => 1, 'load_more_image_count' => 1);
24
+ if ( $params['watermark_type'] == 'none' ) {
 
 
 
 
25
  $text_align = '';
26
  $vertical_align = '';
 
27
  $show_watermark = FALSE;
28
  }
29
+ if ( $params['watermark_type'] != 'none' ) {
30
+ $position = explode('-', $params['watermark_position']);
31
+ $vertical_align = $position[0];
32
+ $text_align = $position[1];
 
 
 
33
  }
34
+ if ( $params['watermark_type'] == 'text' ) {
35
  $show_watermark = TRUE;
36
+ $params['watermark_width'] = 0;
37
+ $watermark_a = 'bwg_watermark_text_' . $bwg;
38
+ $watermark_div = 'class="bwg_image_browser_watermark_text_' . $bwg . '"';
39
+ $watermark_image_or_text = $params["watermark_text"];
 
 
 
 
 
40
  }
41
+ elseif ( $params['watermark_type'] == 'image' ) {
42
  $show_watermark = TRUE;
43
+ $watermark_image_or_text = '<img class="bwg_image_browser_watermark_img_' . $bwg . '" src="' . urldecode($params['watermark_url']) . '" />';
44
+ $watermark_a = '';
45
+ $watermark_div = 'class="bwg_image_browser_watermark_' . $bwg . '"';
46
+ $params['watermark_font'] = '';
47
+ $params['watermark_color'] = '';
48
+ $params['watermark_font_size'] = '';
 
 
 
 
49
  }
50
  $image_browser_image_title_align = (isset($theme_row->image_browser_image_title_align)) ? $theme_row->image_browser_image_title_align : 'top';
51
+
52
+ $inline_style = $this->inline_styles($bwg, $theme_row, $params, $text_align, $vertical_align);
53
+ if ( !WDWLibrary::elementor_is_active() ) {
54
+ if ( !$params['ajax'] ) {
55
+ if ( BWG()->options->use_inline_stiles_and_scripts ) {
56
+ wp_add_inline_style('bwg_frontend', $inline_style);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  }
58
+ else {
59
+ echo '<style id="bwg-style-' . $bwg . '">' . $inline_style . '</style>';
60
  }
61
  }
 
 
 
62
  }
63
  else {
64
+ echo '<style id="bwg-style-' . $bwg . '">' . $inline_style . '</style>';
65
+ echo '<script id="bwg-script-' . $bwg .'">
66
+ jQuery(document).ready(function () {
67
+ bwg_main_ready();
68
+ });
69
+ </script>';
70
  }
71
+ $bwg_param = array(
72
+ 'is_pro' => BWG()->is_pro,
73
+ 'image_right_click' => $image_right_click,
74
+ 'gallery_id' => $params['gallery_id'],
75
+ );
76
+ $bwg_params = json_encode($bwg_param);
77
+ ob_start();
78
  ?>
79
+ <div id="bwg_<?php echo $params['gallery_type'] . '_' . $bwg ?>" class="image_browser_images_conteiner_<?php echo $bwg; ?>" data-params='<?php echo $bwg_params ?>'>
80
+ <div class="image_browser_images_<?php echo $bwg; ?>">
81
+ <?php
82
+ foreach ( $images as $image_row ) {
83
+ $params['image_id'] = (isset($_POST['image_id']) ? esc_html($_POST['image_id']) : $image_row->id);
84
+ $is_embed = preg_match('/EMBED/', $image_row->filetype) == 1 ? TRUE : FALSE;
85
+ $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));
86
+ $is_embed_instagram_post = preg_match('/INSTAGRAM_POST/', $image_row->filetype) == 1 ? TRUE : FALSE;
 
 
 
 
 
 
 
 
 
87
  ?>
88
+ <div class="image_browser_image_buttons_conteiner_<?php echo $bwg; ?>">
89
+ <div class="image_browser_image_buttons_<?php echo $bwg; ?>">
90
+ <?php
91
+ if ( $image_title && ($image_browser_image_title_align == 'top') ) {
92
+ ?>
93
+ <div class="bwg_image_browser_image_alt_<?php echo $bwg; ?>">
94
+ <div class="bwg_image_alt_<?php echo $bwg; ?>" id="alt<?php echo $image_row->id; ?>">
95
+ <?php echo html_entity_decode($image_row->alt); ?>
96
  </div>
97
  </div>
98
+ <?php
 
 
 
 
 
99
  }
100
+ ?>
101
+ <div class="bwg_image_browser_image_<?php echo $bwg; ?>">
102
+ <?php
103
+ if ( $show_watermark ) {
104
+ ?>
105
+ <div class="bwg_image_browser_image_contain_<?php echo $bwg; ?>" id="bwg_image_browser_image_contain_<?php echo $image_row->id ?>">
106
+ <div class="bwg_image_browser_watermark_contain_<?php echo $bwg; ?>">
107
+ <div class="bwg_image_browser_watermark_cont_<?php echo $bwg; ?>">
108
+ <div <?php echo $watermark_div; ?> >
109
+ <a class="bwg_none_selectable <?php echo $watermark_a; ?>" id="watermark_a<?php echo $image_row->id; ?>" href="<?php echo urldecode($params['watermark_link']); ?>" target="_blank">
110
+ <?php echo $watermark_image_or_text; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
111
  </a>
112
+ </div>
113
+ </div>
114
+ </div>
115
+ </div>
116
+ <?php
117
+ }
118
+ if ( !$is_embed ) {
119
+ ?>
120
+ <a style="position:relative;" <?php echo($params['thumb_click_action'] == 'open_lightbox' ? (' class="bwg_lightbox" data-image-id="' . $image_row->id . '"') : ($params['thumb_click_action'] == 'redirect_to_url' && $image_row->redirect_url ? 'href="' . $image_row->redirect_url . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : '')) ?>>
121
+ <img class="bwg-item0 bwg_image_browser_img bwg_image_browser_img_<?php echo $bwg; ?>" src="<?php echo BWG()->upload_url . $image_row->image_url; ?>" alt="<?php echo $image_row->alt; ?>" />
122
+ </a>
123
+ <?php
124
+ }
125
+ else { /*$is_embed*/
126
+ if ( $is_embed_16x9 ) {
127
+ WDWLibraryEmbed::display_embed($image_row->filetype, $image_row->image_url, $image_row->filename, array(
128
+ 'id' => "bwg_embed_frame_16x9_" . $bwg,
129
+ 'width' => $params['image_browser_width'],
130
+ 'height' => $params['image_browser_width'] * 0.5625,
131
+ 'frameborder' => "0",
132
+ 'allowfullscreen' => "allowfullscreen",
133
+ 'style' => "position: relative; margin:0;"
134
+ ));
135
+ }
136
+ else {
137
+ if ( $is_embed_instagram_post ) {
138
+ $instagram_post_width = $params['image_browser_width'];
139
+ $instagram_post_height = $params['image_browser_width'];
140
+ $image_resolution = explode(' x ', $image_row->resolution);
141
+ if ( is_array($image_resolution) ) {
142
+ $instagram_post_width = $image_resolution[0];
143
+ $instagram_post_height = explode(' ', $image_resolution[1]);
144
+ $instagram_post_height = $instagram_post_height[0];
145
  }
146
+ WDWLibraryEmbed::display_embed($image_row->filetype, $image_row->image_url, $image_row->filename, array(
147
+ 'class' => "bwg_embed_frame_instapost_" . $bwg,
148
+ 'data-width' => $instagram_post_width,
149
+ 'data-height' => $instagram_post_height,
150
+ 'frameborder' => "0",
151
+ 'allowfullscreen' => "allowfullscreen",
152
+ 'style' => "position: relative; margin:0;"
153
+ ));
154
+ }
155
+ else {/*for instagram image, video and flickr enable lightbox onclick*/
156
  ?>
157
+ <a style="position:relative;" <?php echo($params['thumb_click_action'] == 'open_lightbox' ? (' class="bwg_lightbox bwg_lightbox_' . $bwg . '" data-image-id="' . $image_row->id . '"') : ($image_row->redirect_url ? 'href="' . $image_row->redirect_url . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : '')) ?>>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
158
  <?php
159
+ WDWLibraryEmbed::display_embed($image_row->filetype, $image_row->image_url, $image_row->filename, array(
160
+ 'id' => "bwg_embed_frame_" . $bwg,
161
+ 'width' => $params['image_browser_width'],
162
+ 'height' => 'auto',
163
+ 'frameborder' => "0",
164
+ 'allowfullscreen' => "allowfullscreen",
165
+ 'style' => "position: relative; margin:0;",
166
+ 'class' => 'bwg-item0'
167
+ ));
168
  ?>
169
+ </a>
170
+ <?php
171
+ }
172
+ }
173
+ }
174
+ ?>
175
+ </div>
176
+ <?php
177
+ if ( $image_title && ($image_browser_image_title_align == 'bottom') ) {
178
+ ?>
179
+ <div class="bwg_image_browser_image_alt_<?php echo $bwg; ?>">
180
+ <div class="bwg_image_alt_<?php echo $bwg; ?>" id="alt<?php echo $image_row->id; ?>">
181
+ <?php echo html_entity_decode($image_row->alt); ?>
182
  </div>
183
  </div>
184
  <?php
185
  }
186
+ if ( $enable_image_description && ($image_row->description != "") ) {
 
 
 
 
 
 
 
187
  ?>
188
+ <div class="bwg_image_browser_image_desp_<?php echo $bwg; ?>">
189
+ <div class="bwg_image_browser_image_description_<?php echo $bwg; ?>" id="alt<?php echo $image_row->id; ?>">
190
+ <?php echo html_entity_decode($image_row->description); ?>
191
+ </div>
192
  </div>
193
  <?php
194
  }
 
 
 
195
  ?>
196
  </div>
197
  </div>
198
+ <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
199
  }
200
  ?>
201
+ </div>
202
+ </div>
 
 
 
203
  <?php
204
+ $content = ob_get_clean();
205
+
206
+ /* Set theme parameters for Gallery/Gallery group title/description.*/
207
+ $theme_row->thumb_gal_title_font_size = $theme_row->image_browser_gal_title_font_size;
208
+ $theme_row->thumb_gal_title_font_color = $theme_row->image_browser_gal_title_font_color;
209
+ $theme_row->thumb_gal_title_font_style = $theme_row->image_browser_gal_title_font_style;
210
+ $theme_row->thumb_gal_title_font_weight = $theme_row->image_browser_gal_title_font_weight;
211
+ $theme_row->thumb_gal_title_shadow = $theme_row->image_browser_gal_title_shadow;
212
+ $theme_row->thumb_gal_title_margin = $theme_row->image_browser_gal_title_margin;
213
+ $theme_row->thumb_gal_title_align = $theme_row->image_browser_gal_title_align;
214
+
215
+ if ( $params['ajax'] ) { /* Ajax response after ajax call for filters and pagination.*/
216
+ parent::ajax_content($params, $bwg, $content);
217
  }
218
  else {
219
+ parent::container($params, $bwg, $content);
220
  }
221
  }
222
 
223
+ /**
224
+ * Get inline styles.
225
+ *
226
+ * @param $bwg
227
+ * @param $theme_row
228
+ * @param $params
229
+ * @param $text_align
230
+ * @param $vertical_align
231
+ * @return string
232
+ */
233
+ private function inline_styles($bwg, $theme_row, $params, $text_align, $vertical_align) {
234
  ob_start();
 
235
  $image_browser_images_conteiner = WDWLibrary::spider_hex2rgb($theme_row->image_browser_full_bg_color);
236
  $bwg_image_browser_image = WDWLibrary::spider_hex2rgb($theme_row->image_browser_bg_color);
237
  ?>
269
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_image_<?php echo $bwg; ?> {
270
  background-color: rgba(<?php echo $bwg_image_browser_image['red']; ?>, <?php echo $bwg_image_browser_image['green']; ?>, <?php echo $bwg_image_browser_image['blue']; ?>, <?php echo number_format($theme_row->image_browser_transparent / 100, 2, ".", ""); ?>);
271
  text-align: center;
272
+ display: inline-block;
273
  vertical-align: middle;
274
  margin: <?php echo $theme_row->image_browser_margin; ?>;
275
  padding: <?php echo $theme_row->image_browser_padding; ?>;
307
  font-size: 10px !important;
308
  text-decoration: none;
309
  margin: 4px;
310
+ font-family: <?php echo $params['watermark_font']; ?>;
311
+ color: #<?php echo $params['watermark_color']; ?> !important;
312
+ opacity: <?php echo number_format($params['watermark_opacity'] / 100, 2, ".", ""); ?>;
313
+ filter: Alpha(opacity=<?php echo $params['watermark_opacity']; ?>);
314
  text-decoration: none;
315
  position: relative;
316
  z-index: 10141;
334
  font-size: 10px !important;
335
  }
336
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
337
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_image_desp_<?php echo $bwg; ?> {
338
  display: table;
339
  clear: both;
367
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_watermark_text_<?php echo $bwg; ?>:hover {
368
  text-decoration: none;
369
  margin: 4px;
370
+ font-size: <?php echo $params['watermark_font_size']; ?>px;
371
+ font-family: <?php echo $params['watermark_font']; ?>;
372
+ color: #<?php echo $params['watermark_color']; ?> !important;
373
+ opacity: <?php echo number_format($params['watermark_opacity'] / 100, 2, ".", ""); ?>;
374
+ filter: Alpha(opacity=<?php echo $params['watermark_opacity']; ?>);
375
  position: relative;
376
  z-index: 10141;
377
  }
401
  position: relative;
402
  vertical-align: middle;
403
  z-index: 10140;
404
+ width: <?php echo $params['watermark_width'];?>px;
405
+ max-width: <?php echo (($params['watermark_width']) / ($params['image_browser_width'])) * 100 ; ?>%;
406
  margin: 10px 10px 10px 10px ;
407
  }
408
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_watermark_text_<?php echo $bwg; ?>{
415
  }
416
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_image_browser_watermark_img_<?php echo $bwg; ?>{
417
  max-width: 100%;
418
+ opacity: <?php echo number_format($params['watermark_opacity'] / 100, 2, ".", ""); ?>;
419
+ filter: Alpha(opacity=<?php echo $params['watermark_opacity']; ?>);
420
  position: relative;
421
  z-index: 10141;
422
  }
frontend/views/BWGViewSlideshow.php CHANGED
@@ -1,21 +1,22 @@
1
  <?php
2
  class BWGViewSlideshow extends BWGViewSite {
3
- public function display($params = array(), $from_shortcode = 0, $bwg = 0) {
4
- $theme_row = $params['theme_row'];
5
- $image_rows = $params['image_rows'];
6
- $image_rows = $image_rows['images'];
 
 
7
 
 
8
  $filmstrip_direction = 'horizontal';
9
- if ($theme_row->slideshow_filmstrip_pos == 'right' || $theme_row->slideshow_filmstrip_pos == 'left') {
10
  $filmstrip_direction = 'vertical';
11
  }
12
-
13
  $slideshow_effect = $params['slideshow_effect'];
14
  $enable_slideshow_autoplay = $params['enable_slideshow_autoplay'];
15
  $enable_slideshow_shuffle = $params['enable_slideshow_shuffle'];
16
  $enable_slideshow_ctrl = $params['enable_slideshow_ctrl'];
17
  $enable_slideshow_filmstrip = BWG()->is_pro ? $params['enable_slideshow_filmstrip'] : 0;
18
-
19
  $slideshow_filmstrip_height = 0;
20
  $slideshow_filmstrip_width = 0;
21
  if ( $enable_slideshow_filmstrip ) {
@@ -32,21 +33,19 @@ class BWGViewSlideshow extends BWGViewSite {
32
  $slideshow_filmstrip_height = round($thumb_ratio * $slideshow_filmstrip_width);
33
  }
34
  }
35
-
36
  $enable_image_title = $params['slideshow_enable_title'];
37
  $slideshow_title_position = explode('-', $params['slideshow_title_position']);
38
  $enable_image_description = $params['slideshow_enable_description'];
39
  $slideshow_description_position = explode('-', $params['slideshow_description_position']);
40
  $enable_slideshow_music = $params['enable_slideshow_music'];
41
  $slideshow_music_url = $params['slideshow_music_url'];
42
- // Validate url. If not valid add upload url.
43
  $url = filter_var($slideshow_music_url, FILTER_SANITIZE_URL);
44
- if (false === filter_var($url, FILTER_VALIDATE_URL)) {
45
  $slideshow_music_url = BWG()->upload_url . $slideshow_music_url;
46
  }
47
  $image_width = $params['slideshow_width'];
48
  $image_height = $params['slideshow_height'];
49
-
50
  $watermark_font_size = $params['watermark_font_size'];
51
  $watermark_font = $params['watermark_font'];
52
  $watermark_color = $params['watermark_color'];
@@ -56,243 +55,304 @@ class BWGViewSlideshow extends BWGViewSite {
56
  $watermark_url = $params['watermark_url'];
57
  $watermark_width = $params['watermark_width'];
58
  $watermark_height = $params['watermark_height'];
59
-
60
  $current_image_id = ($image_rows ? $image_rows[0]->id : 0);
61
  $play_pause_button_display = 'undefined';
62
  $filmstrip_thumb_margin = $theme_row->slideshow_filmstrip_thumb_margin;
63
  $margins_split = explode(" ", $filmstrip_thumb_margin);
64
  $temp_iterator = ($filmstrip_direction == 'horizontal' ? 1 : 0);
65
- if (isset($margins_split[$temp_iterator])) {
66
  $filmstrip_thumb_margin_right = (int) $margins_split[$temp_iterator];
67
- if (isset($margins_split[$temp_iterator + 2])) {
68
  $filmstrip_thumb_margin_left = (int) $margins_split[$temp_iterator + 2];
69
  }
70
  else {
71
  $filmstrip_thumb_margin_left = $filmstrip_thumb_margin_right;
72
  }
73
  }
74
- elseif (isset($margins_split[0])) {
75
  $filmstrip_thumb_margin_right = (int) $margins_split[0];
76
  $filmstrip_thumb_margin_left = $filmstrip_thumb_margin_right;
77
  }
78
  $filmstrip_thumb_margin_hor = $filmstrip_thumb_margin_right + $filmstrip_thumb_margin_left;
79
- if (!$enable_slideshow_filmstrip) {
80
- if ($theme_row->slideshow_filmstrip_pos == 'left') {
81
  $theme_row->slideshow_filmstrip_pos = 'top';
82
  }
83
- if ($theme_row->slideshow_filmstrip_pos == 'right') {
84
  $theme_row->slideshow_filmstrip_pos = 'bottom';
85
  }
86
  }
87
  $left_or_top = 'left';
88
  $width_or_height = 'width';
89
  $outerWidth_or_outerHeight = 'outerWidth';
90
- if (!($filmstrip_direction == 'horizontal')) {
91
  $left_or_top = 'top';
92
  $width_or_height = 'height';
93
  $outerWidth_or_outerHeight = 'outerHeight';
94
  }
95
-
96
  $inline_style = $this->inline_styles($bwg, $theme_row, $params, $image_width, $image_height, $filmstrip_direction, $slideshow_filmstrip_height, BWG()->options, $left_or_top, $width_or_height, $filmstrip_thumb_margin_hor, $slideshow_filmstrip_width, $image_rows, $watermark_position, $slideshow_title_position, $slideshow_description_position, $watermark_height, $watermark_width, $watermark_opacity, $watermark_font_size, $watermark_font, $watermark_color, $enable_slideshow_filmstrip);
97
-
98
-
99
- if ( BWG()->options->use_inline_stiles_and_scripts ) {
100
- wp_add_inline_style('bwg_frontend', $inline_style);
101
- if ( !wp_script_is('bwg_embed', 'done') ) {
102
  wp_print_scripts('bwg_embed');
103
- }
104
- if ( !wp_script_is('bwg_jquery_mobile', 'done') ) {
105
  wp_print_scripts('bwg_jquery_mobile');
 
 
 
 
106
  }
107
  }
108
  else {
109
- echo '<style>' . $inline_style . '</style>';
 
 
 
 
 
110
  }
111
 
112
- ?>
113
- <script>
114
- var data_<?php echo $bwg; ?> = [];
115
- var event_stack_<?php echo $bwg; ?> = [];
116
- <?php
117
- foreach ($image_rows as $key => $image_row) {
118
- if ($image_row->id == $current_image_id) {
119
- $current_image_alt = $image_row->alt;
120
- $current_image_description = str_replace(array("\r\n", "\n", "\r"), esc_html('<br />'), $image_row->description);
121
- }
122
- ?>
123
- data_<?php echo $bwg; ?>["<?php echo $key; ?>"] = [];
124
- data_<?php echo $bwg; ?>["<?php echo $key; ?>"]["id"] = "<?php echo $image_row->id; ?>";
125
- data_<?php echo $bwg; ?>["<?php echo $key; ?>"]["alt"] = "<?php echo str_replace(array("\r\n", "\n", "\r"), esc_html('<br />'), $image_row->alt); ?>";
126
- data_<?php echo $bwg; ?>["<?php echo $key; ?>"]["description"] = "<?php echo str_replace(array("\r\n", "\n", "\r"), esc_html('<br />'), $image_row->description); ?>";
127
- data_<?php echo $bwg; ?>["<?php echo $key; ?>"]["filetype"] = "<?php echo $image_row->filetype; ?>";
128
- data_<?php echo $bwg; ?>["<?php echo $key; ?>"]["filename"] = "<?php echo $image_row->filename; ?>";
129
- data_<?php echo $bwg; ?>["<?php echo $key; ?>"]["image_url"] = "<?php echo $image_row->image_url; ?>";
130
- data_<?php echo $bwg; ?>["<?php echo $key; ?>"]["thumb_url"] = "<?php echo $image_row->thumb_url; ?>";
131
- data_<?php echo $bwg; ?>["<?php echo $key; ?>"]["redirect_url"] = "<?php echo $image_row->redirect_url; ?>";
132
- data_<?php echo $bwg; ?>["<?php echo $key; ?>"]["date"] = "<?php echo $image_row->date; ?>";
133
- data_<?php echo $bwg; ?>["<?php echo $key; ?>"]["is_embed"] = "<?php echo (preg_match('/EMBED/',$image_row->filetype)==1 ? true :false); ?>";
134
- data_<?php echo $bwg; ?>["<?php echo $key; ?>"]["is_embed_video"] = "<?php echo (((preg_match('/EMBED/',$image_row->filetype)==1) && (preg_match('/_VIDEO/',$image_row->filetype)==1)) ? true :false); ?>";
135
- <?php
136
  }
137
- ?>
138
- </script>
139
- <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
140
  ob_start();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
141
  ?>
142
- <div id="gal_front_form_<?php echo $bwg; ?>" class="bwg-hidden bwg_slideshow_image_wrap_<?php echo $bwg; ?>">
143
- <?php
144
- $current_pos = 0;
145
- if ($enable_slideshow_filmstrip) {
146
- ?>
147
- <div class="bwg_slideshow_filmstrip_container_<?php echo $bwg; ?>">
148
- <div class="bwg_slideshow_filmstrip_left_<?php echo $bwg; ?>"><i class="fa <?php echo ($filmstrip_direction == 'horizontal'? 'fa-angle-left' : 'fa-angle-up'); ?>"></i></div>
149
- <div class="bwg_slideshow_filmstrip_<?php echo $bwg; ?>">
150
- <div class="bwg_slideshow_filmstrip_thumbnails_<?php echo $bwg; ?>">
151
- <?php
152
- foreach ($image_rows as $key => $image_row) {
153
- if ($image_row->id == $current_image_id) {
154
- $current_pos = $key * (($filmstrip_direction == 'horizontal' ? $slideshow_filmstrip_width : $slideshow_filmstrip_height) + $filmstrip_thumb_margin_hor);
155
- $current_key = $key;
156
- }
157
- $is_embed = preg_match('/EMBED/', $image_row->filetype) == 1 ? true :false;
158
- $is_embed_video = ($is_embed && preg_match('/_VIDEO/', $image_row->filetype) == 1) ? true : false;
159
- $is_embed_instagram = preg_match('/EMBED_OEMBED_INSTAGRAM/', $image_row->filetype) == 1 ? true : false;
160
- if ($play_pause_button_display === 'undefined') {
161
- if ($is_embed_video) {
162
- $play_pause_button_display = 'none';
163
- }
164
- else {
165
- $play_pause_button_display = '';
166
- }
167
- }
168
- if (!$is_embed) {
169
- $thumb_path_url = htmlspecialchars_decode(BWG()->upload_dir . $image_row->thumb_url, ENT_COMPAT | ENT_QUOTES);
170
- $thumb_path_url = explode('?bwg', $thumb_path_url);
171
- list($image_thumb_width, $image_thumb_height) = getimagesize($thumb_path_url[0]);
172
  }
173
  else {
174
- if ($image_row->resolution != '') {
175
- if (!$is_embed_instagram) {
176
- $resolution_arr = explode(" ",$image_row->resolution);
177
- $resolution_w = intval($resolution_arr[0]);
178
- $resolution_h = intval($resolution_arr[2]);
179
- if ($resolution_w != 0 && $resolution_h != 0){
180
- $scale = $scale = max($slideshow_filmstrip_width / $resolution_w, $slideshow_filmstrip_height / $resolution_h);
181
- $image_thumb_width = $resolution_w * $scale;
182
- $image_thumb_height = $resolution_h * $scale;
183
- }
184
- else {
185
- $image_thumb_width = $slideshow_filmstrip_width;
186
- $image_thumb_height = $slideshow_filmstrip_height;
187
- }
 
 
 
 
188
  }
189
  else {
190
- // this will be ok while instagram thumbnails width and height are the same
191
- $image_thumb_width = min($slideshow_filmstrip_width, $slideshow_filmstrip_height);
192
- $image_thumb_height = $image_thumb_width;
193
  }
194
  }
195
  else {
196
- $image_thumb_width = $slideshow_filmstrip_width;
197
- $image_thumb_height = $slideshow_filmstrip_height;
 
198
  }
199
  }
200
- $scale = max($slideshow_filmstrip_width / $image_thumb_width, $slideshow_filmstrip_height / $image_thumb_height);
201
- $image_thumb_width *= $scale;
202
- $image_thumb_height *= $scale;
203
- $thumb_left = ($slideshow_filmstrip_width - $image_thumb_width) / 2;
204
- $thumb_top = ($slideshow_filmstrip_height - $image_thumb_height) / 2;
 
 
 
 
 
205
  ?>
206
- <div id="bwg_filmstrip_thumbnail_<?php echo $key; ?>_<?php echo $bwg; ?>" class="bwg_slideshow_filmstrip_thumbnail_<?php echo $bwg; ?> <?php echo (($image_row->id == $current_image_id) ? 'bwg_slideshow_thumb_active_' . $bwg : 'bwg_slideshow_thumb_deactive_' . $bwg); ?>">
207
- <img style="width:<?php echo $image_thumb_width; ?>px; height:<?php echo $image_thumb_height; ?>px; margin-left: <?php echo $thumb_left; ?>px; margin-top: <?php echo $thumb_top; ?>px;" class="bwg_filmstrip_thumbnail_img bwg_slideshow_filmstrip_thumbnail_img_<?php echo $bwg; ?>" src="<?php echo ( $is_embed ? "" : BWG()->upload_url) . $image_row->thumb_url; ?>" onclick="bwg_change_image(parseInt(jQuery('#bwg_current_image_key_<?php echo $bwg; ?>').val()), '<?php echo $key; ?>', data_<?php echo $bwg; ?>, '', <?php echo $bwg; ?>)" image_id="<?php echo $image_row->id; ?>" image_key="<?php echo $key; ?>" alt="<?php echo $image_row->alt; ?>"/>
208
  </div>
209
  <?php
210
- }
211
- ?>
212
- </div>
213
- </div>
214
- <div class="bwg_slideshow_filmstrip_right_<?php echo $bwg; ?>"><i class="fa <?php echo ($filmstrip_direction == 'horizontal'? 'fa-angle-right' : 'fa-angle-down'); ?>"></i></div>
215
- </div>
216
- <?php
217
- }
218
- else {
219
- ?>
220
- <div class="bwg_slideshow_dots_container_<?php echo $bwg; ?>">
221
- <div class="bwg_slideshow_dots_thumbnails_<?php echo $bwg; ?>">
222
- <?php
223
- foreach ($image_rows as $key => $image_row) {
224
- if ($image_row->id == $current_image_id) {
225
- $current_pos = $key * ($slideshow_filmstrip_width + 2);
226
- $current_key = $key;
227
- }
228
- ?>
229
- <span id="bwg_dots_<?php echo $key; ?>_<?php echo $bwg; ?>" class="bwg_slideshow_dots_<?php echo $bwg; ?> <?php echo (($image_row->id == $current_image_id) ? 'bwg_slideshow_dots_active_' . $bwg : 'bwg_slideshow_dots_deactive_' . $bwg); ?>" onclick="bwg_change_image(parseInt(jQuery('#bwg_current_image_key_<?php echo $bwg; ?>').val()), '<?php echo $key; ?>', data_<?php echo $bwg; ?>, '', <?php echo $bwg; ?>)" image_id="<?php echo $image_row->id; ?>" image_key="<?php echo $key; ?>"></span>
230
- <?php
231
  }
232
  ?>
233
  </div>
234
  </div>
235
- <?php
236
- }
 
 
 
 
 
237
  ?>
238
- <div id="bwg_slideshow_image_container_<?php echo $bwg; ?>" class="bwg_slideshow_image_container_<?php echo $bwg; ?>">
239
- <div class="bwg_slide_container_<?php echo $bwg; ?>">
240
- <div class="bwg_slide_bg_<?php echo $bwg; ?>">
241
- <div class="bwg_slider_<?php echo $bwg; ?>">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
242
  <?php
243
- foreach ($image_rows as $key => $image_row) {
244
- $is_embed = preg_match('/EMBED/',$image_row->filetype)==1 ? true :false;
245
- $is_embed_instagram_post = preg_match('/INSTAGRAM_POST/',$image_row->filetype)==1 ? true :false;
246
- $is_embed_instagram_video = preg_match('/INSTAGRAM_VIDEO/', $image_row->filetype) == 1 ? true :false;
247
- if ($image_row->id == $current_image_id) {
248
  $current_key = $key;
249
  ?>
250
  <span class="bwg_slideshow_image_spun_<?php echo $bwg; ?>" id="image_id_<?php echo $bwg; ?>_<?php echo $image_row->id; ?>">
251
- <span class="bwg_slideshow_image_spun1_<?php echo $bwg; ?>">
252
- <span class="bwg_slideshow_image_spun2_<?php echo $bwg; ?>">
253
- <?php
254
- if (!$is_embed) {
255
- ?>
256
- <a <?php echo ($params['thumb_click_action'] == 'open_lightbox' ? (' class="bwg_lightbox"' . (BWG()->options->enable_seo ? ' href="' . ($is_embed ? $image_row->thumb_url : BWG()->upload_url . $image_row->image_url) . '"' : '') . ' data-image-id="' . $image_row->id . '"') : ($params['thumb_click_action'] == 'redirect_to_url' && $image_row->redirect_url ? 'href="' . $image_row->redirect_url . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : '')) ?>>
257
- <img id="bwg_slideshow_image_<?php echo $bwg; ?>" class="bwg_slide bwg_slideshow_image_<?php echo $bwg; ?>" src="<?php echo BWG()->upload_url . $image_row->image_url; ?>" image_id="<?php echo $image_row->id; ?>" alt="<?php echo $image_row->alt; ?>"/>
258
- </a>
259
  <?php
 
 
 
 
 
 
260
  }
261
- else{ /*$is_embed*/?>
262
- <span id="bwg_slideshow_image_<?php echo $bwg; ?>" class="bwg_slideshow_embed_<?php echo $bwg; ?>" image_id="<?php echo $image_row->id; ?>">
263
- <?php echo $is_embed_instagram_video ? '<span class="bwg_inst_play_btn_cont" onclick="bwg_play_instagram_video(this)" ><span class="bwg_inst_play"></span></span>' : '';
264
- if ($is_embed_instagram_post) {
265
- $post_width = $image_width - ($filmstrip_direction == 'vertical' ? $slideshow_filmstrip_width : 0);
266
- $post_height = $image_height - ($filmstrip_direction == 'horizontal' ? $slideshow_filmstrip_height : 0);
267
- if ($post_height < $post_width + 88) {
268
- $post_width = $post_height - 88;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
269
  }
270
  else {
271
- $post_height = $post_width + 88;
 
 
 
 
 
272
  }
273
- $instagram_post_width = $post_width;
274
- $instagram_post_height = $po
1
  <?php
2
  class BWGViewSlideshow extends BWGViewSite {
3
+ public function display($params = array(), $bwg = 0) {
4
+ $theme_row = $params['theme_row'];
5
+ $image_rows = $params['image_rows'];
6
+ $image_rows = $image_rows['images'];
7
+ $images_count = count($image_rows);
8
+ $content = '';
9
 
10
+ if ( $images_count ) {
11
  $filmstrip_direction = 'horizontal';
12
+ if ( $theme_row->slideshow_filmstrip_pos == 'right' || $theme_row->slideshow_filmstrip_pos == 'left' ) {
13
  $filmstrip_direction = 'vertical';
14
  }
 
15
  $slideshow_effect = $params['slideshow_effect'];
16
  $enable_slideshow_autoplay = $params['enable_slideshow_autoplay'];
17
  $enable_slideshow_shuffle = $params['enable_slideshow_shuffle'];
18
  $enable_slideshow_ctrl = $params['enable_slideshow_ctrl'];
19
  $enable_slideshow_filmstrip = BWG()->is_pro ? $params['enable_slideshow_filmstrip'] : 0;
 
20
  $slideshow_filmstrip_height = 0;
21
  $slideshow_filmstrip_width = 0;
22
  if ( $enable_slideshow_filmstrip ) {
33
  $slideshow_filmstrip_height = round($thumb_ratio * $slideshow_filmstrip_width);
34
  }
35
  }
 
36
  $enable_image_title = $params['slideshow_enable_title'];
37
  $slideshow_title_position = explode('-', $params['slideshow_title_position']);
38
  $enable_image_description = $params['slideshow_enable_description'];
39
  $slideshow_description_position = explode('-', $params['slideshow_description_position']);
40
  $enable_slideshow_music = $params['enable_slideshow_music'];
41
  $slideshow_music_url = $params['slideshow_music_url'];
42
+ /* Validate url. If not valid add upload url.*/
43
  $url = filter_var($slideshow_music_url, FILTER_SANITIZE_URL);
44
+ if ( FALSE === filter_var($url, FILTER_VALIDATE_URL) ) {
45
  $slideshow_music_url = BWG()->upload_url . $slideshow_music_url;
46
  }
47
  $image_width = $params['slideshow_width'];
48
  $image_height = $params['slideshow_height'];
 
49
  $watermark_font_size = $params['watermark_font_size'];
50
  $watermark_font = $params['watermark_font'];
51
  $watermark_color = $params['watermark_color'];
55
  $watermark_url = $params['watermark_url'];
56
  $watermark_width = $params['watermark_width'];
57
  $watermark_height = $params['watermark_height'];
 
58
  $current_image_id = ($image_rows ? $image_rows[0]->id : 0);
59
  $play_pause_button_display = 'undefined';
60
  $filmstrip_thumb_margin = $theme_row->slideshow_filmstrip_thumb_margin;
61
  $margins_split = explode(" ", $filmstrip_thumb_margin);
62
  $temp_iterator = ($filmstrip_direction == 'horizontal' ? 1 : 0);
63
+ if ( isset($margins_split[$temp_iterator]) ) {
64
  $filmstrip_thumb_margin_right = (int) $margins_split[$temp_iterator];
65
+ if ( isset($margins_split[$temp_iterator + 2]) ) {
66
  $filmstrip_thumb_margin_left = (int) $margins_split[$temp_iterator + 2];
67
  }
68
  else {
69
  $filmstrip_thumb_margin_left = $filmstrip_thumb_margin_right;
70
  }
71
  }
72
+ elseif ( isset($margins_split[0]) ) {
73
  $filmstrip_thumb_margin_right = (int) $margins_split[0];
74
  $filmstrip_thumb_margin_left = $filmstrip_thumb_margin_right;
75
  }
76
  $filmstrip_thumb_margin_hor = $filmstrip_thumb_margin_right + $filmstrip_thumb_margin_left;
77
+ if ( !$enable_slideshow_filmstrip ) {
78
+ if ( $theme_row->slideshow_filmstrip_pos == 'left' ) {
79
  $theme_row->slideshow_filmstrip_pos = 'top';
80
  }
81
+ if ( $theme_row->slideshow_filmstrip_pos == 'right' ) {
82
  $theme_row->slideshow_filmstrip_pos = 'bottom';
83
  }
84
  }
85
  $left_or_top = 'left';
86
  $width_or_height = 'width';
87
  $outerWidth_or_outerHeight = 'outerWidth';
88
+ if ( !($filmstrip_direction == 'horizontal') ) {
89
  $left_or_top = 'top';
90
  $width_or_height = 'height';
91
  $outerWidth_or_outerHeight = 'outerHeight';
92
  }
 
93
  $inline_style = $this->inline_styles($bwg, $theme_row, $params, $image_width, $image_height, $filmstrip_direction, $slideshow_filmstrip_height, BWG()->options, $left_or_top, $width_or_height, $filmstrip_thumb_margin_hor, $slideshow_filmstrip_width, $image_rows, $watermark_position, $slideshow_title_position, $slideshow_description_position, $watermark_height, $watermark_width, $watermark_opacity, $watermark_font_size, $watermark_font, $watermark_color, $enable_slideshow_filmstrip);
94
+ if ( !WDWLibrary::elementor_is_active() ) {
95
+ if ( BWG()->options->use_inline_stiles_and_scripts ) {
96
+ wp_add_inline_style('bwg_frontend', $inline_style);
97
+ if ( !wp_script_is('bwg_embed', 'done') ) {
 
98
  wp_print_scripts('bwg_embed');
99
+ }
100
+ if ( !wp_script_is('bwg_jquery_mobile', 'done') ) {
101
  wp_print_scripts('bwg_jquery_mobile');
102
+ }
103
+ }
104
+ else {
105
+ echo '<style id="bwg-style-' . $bwg . '">' . $inline_style . '</style>';
106
  }
107
  }
108
  else {
109
+ echo '<style id="bwg-style-' . $bwg . '">' . $inline_style . '</style>';
110
+ echo '<script id="bwg-script-' . $bwg .'">
111
+ jQuery(document).ready(function () {
112
+ bwg_main_ready();
113
+ });
114
+ </script>';
115
  }
116
 
117
+ $data = array();
118
+ $data[$bwg] = array();
119
+ foreach ( $image_rows as $key => $image_row ) {
120
+ if ( $image_row->id == $current_image_id ) {
121
+ $current_image_alt = $image_row->alt;
122
+ $current_image_description = str_replace(array(
123
+ "\r\n",
124
+ "\n",
125
+ "\r"
126
+ ), esc_html('<br />'), $image_row->description);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
127
  }
128
+ $data[$bwg][$key]["id"] = $image_row->id;
129
+ $data[$bwg][$key]["alt"] = str_replace(array( "\r\n", "\n", "\r" ), esc_html('<br />'), $image_row->alt);
130
+ $data[$bwg][$key]["description"] = str_replace(array(
131
+ "\r\n",
132
+ "\n",
133
+ "\r"
134
+ ), esc_html('<br />'), $image_row->description);
135
+ $data[$bwg][$key]["filetype"] = $image_row->filetype;
136
+ $data[$bwg][$key]["filename"] = $image_row->filename;
137
+ $data[$bwg][$key]["image_url"] = $image_row->image_url;
138
+ $data[$bwg][$key]["thumb_url"] = $image_row->thumb_url;
139
+ $data[$bwg][$key]["redirect_url"] = $image_row->redirect_url;
140
+ $data[$bwg][$key]["date"] = $image_row->date;
141
+ $data[$bwg][$key]["is_embed"] = (preg_match('/EMBED/', $image_row->filetype) == 1 ? TRUE : FALSE);
142
+ $data[$bwg][$key]["is_embed_video"] = (((preg_match('/EMBED/', $image_row->filetype) == 1) && (preg_match('/_VIDEO/', $image_row->filetype) == 1)) ? TRUE : FALSE);
143
+ }
144
  ob_start();
145
+ $trans_dur = (($params['slideshow_interval'] < 4) && ($params['slideshow_interval'] != 0)) ? ($params['slideshow_interval'] * 1000) / 4 : ($params['slideshow_effect_duration'] * 1000);
146
+ $bwg_param = array(
147
+ 'bwg_source' => 'slider',
148
+ 'bwg_current_key' => isset($current_key) ? $current_key : '',
149
+ 'bwg_transition_duration' => $trans_dur,
150
+ 'bwg_trans_in_progress' => FALSE,
151
+ 'data' => $data[$bwg],
152
+ 'width_or_height' => $width_or_height,
153
+ 'filmstrip_thumb_margin_hor' => $filmstrip_thumb_margin_hor,
154
+ 'left_or_top' => $left_or_top,
155
+ 'outerWidth_or_outerHeight' => $outerWidth_or_outerHeight,
156
+ 'enable_slideshow_shuffle' => $enable_slideshow_shuffle,
157
+ 'lightbox_filmstrip_thumb_border_width' => $theme_row->lightbox_filmstrip_thumb_border_width,
158
+ 'thumb_click_action' => $params['thumb_click_action'],
159
+ 'thumb_link_target' => $params['thumb_link_target'],
160
+ 'upload_url' => BWG()->upload_url,
161
+ 'preload_images' => BWG()->options->preload_images,
162
+ 'slideshow_effect' => $slideshow_effect,
163
+ 'enable_slideshow_filmstrip' => $enable_slideshow_filmstrip,
164
+ 'event_stack' => '',
165
+ 'preload_images_count' => (int) BWG()->options->preload_images_count,
166
+ 'image_width' => $image_width,
167
+ 'image_height' => $image_height,
168
+ 'filmstrip_direction' => $filmstrip_direction,
169
+ 'slideshow_filmstrip_width' => $slideshow_filmstrip_width,
170
+ 'slideshow_filmstrip_height' => $slideshow_filmstrip_height,
171
+ 'slideshow_play_pause_btn_size' => $theme_row->slideshow_play_pause_btn_size,
172
+ 'watermark_type' => $params['watermark_width'],
173
+ 'watermark_height' => $watermark_height,
174
+ 'watermark_font_size' => $watermark_font_size,
175
+ 'slideshow_title_font_size' => $theme_row->slideshow_title_font_size,
176
+ 'slideshow_description_font_size' => $theme_row->slideshow_description_font_size,
177
+ 'bwg_playInterval' => '',
178
+ 'slideshow_interval' => $params['slideshow_interval'],
179
+ 'image_right_click' => BWG()->options->image_right_click,
180
+ 'enable_slideshow_autoplay' => $enable_slideshow_autoplay,
181
+ 'enable_slideshow_music' => $enable_slideshow_music,
182
+ );
183
  ?>
184
+ <div class="bwg_slideshow_image_wrap_<?php echo $bwg; ?>">
185
+ <?php
186
+ $current_pos = 0;
187
+ if ( $enable_slideshow_filmstrip ) {
188
+ ?>
189
+ <div class="bwg_slideshow_filmstrip_container_<?php echo $bwg; ?>">
190
+ <div class="bwg_slideshow_filmstrip_left_<?php echo $bwg; ?>">
191
+ <i class="fa <?php echo($filmstrip_direction == 'horizontal' ? 'fa-angle-left' : 'fa-angle-up'); ?>"></i>
192
+ </div>
193
+ <div class="bwg_slideshow_filmstrip_<?php echo $bwg; ?>">
194
+ <div class="bwg_slideshow_filmstrip_thumbnails_<?php echo $bwg; ?>">
195
+ <?php
196
+ foreach ( $image_rows as $key => $image_row ) {
197
+ if ( $image_row->id == $current_image_id ) {
198
+ $current_pos = $key * (($filmstrip_direction == 'horizontal' ? $slideshow_filmstrip_width : $slideshow_filmstrip_height) + $filmstrip_thumb_margin_hor);
199
+ $current_key = $key;
200
+ }
201
+ $is_embed = preg_match('/EMBED/', $image_row->filetype) == 1 ? TRUE : FALSE;
202
+ $is_embed_video = ($is_embed && preg_match('/_VIDEO/', $image_row->filetype) == 1) ? TRUE : FALSE;
203
+ $is_embed_instagram = preg_match('/EMBED_OEMBED_INSTAGRAM/', $image_row->filetype) == 1 ? TRUE : FALSE;
204
+ if ( $play_pause_button_display === 'undefined' ) {
205
+ if ( $is_embed_video ) {
206
+ $play_pause_button_display = 'none';
 
 
 
 
 
 
 
207
  }
208
  else {
209
+ $play_pause_button_display = '';
210
+ }
211
+ }
212
+ if ( !$is_embed ) {
213
+ $thumb_path_url = htmlspecialchars_decode(BWG()->upload_dir . $image_row->thumb_url, ENT_COMPAT | ENT_QUOTES);
214
+ $thumb_path_url = explode('?bwg', $thumb_path_url);
215
+ list($image_thumb_width, $image_thumb_height) = getimagesize($thumb_path_url[0]);
216
+ }
217
+ else {
218
+ if ( $image_row->resolution != '' ) {
219
+ if ( !$is_embed_instagram ) {
220
+ $resolution_arr = explode(" ", $image_row->resolution);
221
+ $resolution_w = intval($resolution_arr[0]);
222
+ $resolution_h = intval($resolution_arr[2]);
223
+ if ( $resolution_w != 0 && $resolution_h != 0 ) {
224
+ $scale = $scale = max($slideshow_filmstrip_width / $resolution_w, $slideshow_filmstrip_height / $resolution_h);
225
+ $image_thumb_width = $resolution_w * $scale;
226
+ $image_thumb_height = $resolution_h * $scale;
227
  }
228
  else {
229
+ $image_thumb_width = $slideshow_filmstrip_width;
230
+ $image_thumb_height = $slideshow_filmstrip_height;
 
231
  }
232
  }
233
  else {
234
+ // this will be ok while instagram thumbnails width and height are the same
235
+ $image_thumb_width = min($slideshow_filmstrip_width, $slideshow_filmstrip_height);
236
+ $image_thumb_height = $image_thumb_width;
237
  }
238
  }
239
+ else {
240
+ $image_thumb_width = $slideshow_filmstrip_width;
241
+ $image_thumb_height = $slideshow_filmstrip_height;
242
+ }
243
+ }
244
+ $scale = max($slideshow_filmstrip_width / $image_thumb_width, $slideshow_filmstrip_height / $image_thumb_height);
245
+ $image_thumb_width *= $scale;
246
+ $image_thumb_height *= $scale;
247
+ $thumb_left = ($slideshow_filmstrip_width - $image_thumb_width) / 2;
248
+ $thumb_top = ($slideshow_filmstrip_height - $image_thumb_height) / 2;
249
  ?>
250
+ <div id="bwg_filmstrip_thumbnail_<?php echo $key; ?>_<?php echo $bwg; ?>" class="bwg_slideshow_filmstrip_thumbnail_<?php echo $bwg; ?> <?php echo(($image_row->id == $current_image_id) ? 'bwg_slideshow_thumb_active_' . $bwg : 'bwg_slideshow_thumb_deactive_' . $bwg); ?>">
251
+ <img style="width:<?php echo $image_thumb_width; ?>px; height:<?php echo $image_thumb_height; ?>px; margin-left: <?php echo $thumb_left; ?>px; margin-top: <?php echo $thumb_top; ?>px;" class="bwg_filmstrip_thumbnail_img bwg_slideshow_filmstrip_thumbnail_img_<?php echo $bwg; ?>" src="<?php echo ($is_embed ? "" : BWG()->upload_url) . $image_row->thumb_url; ?>" onclick="bwg_change_image(parseInt(jQuery('#bwg_current_image_key_<?php echo $bwg; ?>').val()), '<?php echo $key; ?>', '', '', '<?php echo $bwg; ?>')" image_id="<?php echo $image_row->id; ?>" image_key="<?php echo $key; ?>" alt="<?php echo $image_row->alt; ?>" />
252
  </div>
253
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
254
  }
255
  ?>
256
  </div>
257
  </div>
258
+ <div class="bwg_slideshow_filmstrip_right_<?php echo $bwg; ?>">
259
+ <i class="fa <?php echo($filmstrip_direction == 'horizontal' ? 'fa-angle-right' : 'fa-angle-down'); ?>"></i>
260
+ </div>
261
+ </div>
262
+ <?php
263
+ }
264
+ else {
265
  ?>
266
+ <div class="bwg_slideshow_dots_container_<?php echo $bwg; ?>">
267
+ <div class="bwg_slideshow_dots_thumbnails_<?php echo $bwg; ?>">
268
+ <?php
269
+ foreach ( $image_rows as $key => $image_row ) {
270
+ if ( $image_row->id == $current_image_id ) {
271
+ $current_pos = $key * ($slideshow_filmstrip_width + 2);
272
+ $current_key = $key;
273
+ }
274
+ ?>
275
+ <span id="bwg_dots_<?php echo $key; ?>_<?php echo $bwg; ?>" class="bwg_slideshow_dots_<?php echo $bwg; ?> <?php echo(($image_row->id == $current_image_id) ? 'bwg_slideshow_dots_active_' . $bwg : 'bwg_slideshow_dots_deactive_' . $bwg); ?>" onclick="bwg_change_image(parseInt(jQuery('#bwg_current_image_key_<?php echo $bwg; ?>').val()), '<?php echo $key; ?>', '', '', <?php echo $bwg; ?>)" image_id="<?php echo $image_row->id; ?>" image_key="<?php echo $key; ?>"></span>
276
+ <?php
277
+ }
278
+ ?>
279
+ </div>
280
+ </div>
281
+ <?php
282
+ }
283
+ $bwg_param['bwg_current_filmstrip_pos'] = $current_pos;
284
+ $bwg_params = json_encode($bwg_param);
285
+ ?>
286
+ <div id="bwg_slideshow_image_container_<?php echo $bwg; ?>" class="bwg_slideshow_image_container_<?php echo $bwg; ?>" data-params='<?php echo $bwg_params ?>'>
287
+ <div class="bwg_slide_container_<?php echo $bwg; ?>">
288
+ <div class="bwg_slide_bg_<?php echo $bwg; ?>">
289
+ <div class="bwg_slider_<?php echo $bwg; ?>">
290
  <?php
291
+ foreach ( $image_rows as $key => $image_row ) {
292
+ $is_embed = preg_match('/EMBED/', $image_row->filetype) == 1 ? TRUE : FALSE;
293
+ $is_embed_instagram_post = preg_match('/INSTAGRAM_POST/', $image_row->filetype) == 1 ? TRUE : FALSE;
294
+ $is_embed_instagram_video = preg_match('/INSTAGRAM_VIDEO/', $image_row->filetype) == 1 ? TRUE : FALSE;
295
+ if ( $image_row->id == $current_image_id ) {
296
  $current_key = $key;
297
  ?>
298
  <span class="bwg_slideshow_image_spun_<?php echo $bwg; ?>" id="image_id_<?php echo $bwg; ?>_<?php echo $image_row->id; ?>">
299
+ <span class="bwg_slideshow_image_spun1_<?php echo $bwg; ?>">
300
+ <span class="bwg_slideshow_image_spun2_<?php echo $bwg; ?>">
 
 
 
 
 
 
301
  <?php
302
+ if ( !$is_embed ) {
303
+ ?>
304
+ <a <?php echo($params['thumb_click_action'] == 'open_lightbox' ? (' class="bwg_lightbox"' . (BWG()->options->enable_seo ? ' href="' . ($is_embed ? $image_row->thumb_url : BWG()->upload_url . $image_row->image_url) . '"' : '') . ' data-image-id="' . $image_row->id . '"') : ($params['thumb_click_action'] == 'redirect_to_url' && $image_row->redirect_url ? 'href="' . $image_row->redirect_url . '" target="' . ($params['thumb_link_target'] ? '_blank' : '') . '"' : '')) ?>>
305
+ <img id="bwg_slideshow_image_<?php echo $bwg; ?>" class="bwg_slide bwg_slideshow_image_<?php echo $bwg; ?>" src="<?php echo BWG()->upload_url . $image_row->image_url; ?>" image_id="<?php echo $image_row->id; ?>" alt="<?php echo $image_row->alt; ?>" />
306
+ </a>
307
+ <?php
308
  }
309
+ else { /*$is_embed*/
310
+ ?>
311
+ <span id="bwg_slideshow_image_<?php echo $bwg; ?>" class="bwg_slideshow_embed_<?php echo $bwg; ?>" image_id="<?php echo $image_row->id; ?>">
312
+ <?php echo $is_embed_instagram_video ? '<span class="bwg_inst_play_btn_cont" onclick="bwg_play_instagram_video(this)" ><span class="bwg_inst_play"></span></span>' : '';
313
+ if ( $is_embed_instagram_post ) {
314
+ $post_width = $image_width - ($filmstrip_direction == 'vertical' ? $slideshow_filmstrip_width : 0);
315
+ $post_height = $image_height - ($filmstrip_direction == 'horizontal' ? $slideshow_filmstrip_height : 0);
316
+ if ( $post_height < $post_width + 88 ) {
317
+ $post_width = $post_height - 88;
318
+ }
319
+ else {
320
+ $post_height = $post_width + 88;
321
+ }
322
+ $instagram_post_width = $post_width;
323
+ $instagram_post_height = $post_height;
324
+ $image_resolution = explode(' x ', $image_row->resolution);
325
+ if ( is_array($image_resolution) ) {
326
+ $instagram_post_width = $image_resolution[0];
327
+ $instagram_post_height = explode(' ', $image_resolution[1]);
328
+ $instagram_post_height = $instagram_post_height[0];
329
+ }
330
+ WDWLibraryEmbed::display_embed($image_row->filetype, $image_row->image_url, $image_row->filename, array(
331
+ 'class' => "bwg_embed_frame_" . $bwg,
332
+ 'data-width' => $instagram_post_width,
333
+ 'data-height' => $instagram_post_height,
334
+ 'frameborder' => "0",
335
+ 'style' => "width:" . $post_width . "px; height:" . $post_height . "px; vertical-align:middle; display:inline-block; position:relative;"
336
+ ));
337
  }
338
  else {
339
+ WDWLibraryEmbed::display_embed($image_row->filetype, $image_row->image_url, $image_row->filename, array(
340
+ 'class' => "bwg_embed_frame_" . $bwg,
341
+ 'frameborder' => "0",
342
+ 'allowfullscreen' => "allowfullscreen",
343
+ 'style' => "width:inherit; height:inherit; vertical-align:middle; display:table-cell;"
344
+ ));
345
  }