Photo Gallery by WD – Responsive Photo Gallery - Version 1.3.19

Version Description

  • Added: Image title position in image browser view (optional).
  • Added: Loading icon in slideshow view.
  • Added: Open album on title click in extended album view.
Download this release

Release Info

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

Code changes from version 1.3.18 to 1.3.19

admin/controllers/BWGControllerThemes_bwg.php CHANGED
@@ -275,6 +275,7 @@ class BWGControllerThemes_bwg {
275
  $image_browser_full_border_color = (isset($_POST['image_browser_full_border_color']) ? esc_html(stripslashes( $_POST['image_browser_full_border_color'])) : '000000');
276
  $image_browser_full_bg_color = (isset($_POST['image_browser_full_bg_color']) ? esc_html(stripslashes( $_POST['image_browser_full_bg_color'])) : 'FFFFFF');
277
  $image_browser_full_transparent = (isset($_POST['image_browser_full_transparent']) ? (int) esc_html(stripslashes( $_POST['image_browser_full_transparent'])) : 0);
 
278
 
279
  $album_compact_title_margin = (isset($_POST['album_compact_title_margin']) ? esc_html(stripslashes( $_POST['album_compact_title_margin'])) : '');
280
  $album_compact_title_font_style = (isset($_POST['album_compact_title_font_style']) ? esc_html(stripslashes( $_POST['album_compact_title_font_style'])) : 'inherit');
@@ -726,7 +727,7 @@ class BWGControllerThemes_bwg {
726
  'image_browser_full_border_color' => $image_browser_full_border_color,
727
  'image_browser_full_bg_color' => $image_browser_full_bg_color,
728
  'image_browser_full_transparent' => $image_browser_full_transparent,
729
-
730
  'album_compact_title_margin' => $album_compact_title_margin,
731
  'album_compact_thumb_margin' => $album_compact_thumb_margin,
732
  'album_compact_back_padding' => $album_compact_back_padding,
275
  $image_browser_full_border_color = (isset($_POST['image_browser_full_border_color']) ? esc_html(stripslashes( $_POST['image_browser_full_border_color'])) : '000000');
276
  $image_browser_full_bg_color = (isset($_POST['image_browser_full_bg_color']) ? esc_html(stripslashes( $_POST['image_browser_full_bg_color'])) : 'FFFFFF');
277
  $image_browser_full_transparent = (isset($_POST['image_browser_full_transparent']) ? (int) esc_html(stripslashes( $_POST['image_browser_full_transparent'])) : 0);
278
+ $image_browser_image_title_align = (isset($_POST['image_browser_image_title_align']) ? esc_html(stripslashes( $_POST['image_browser_image_title_align'])) : 'top');
279
 
280
  $album_compact_title_margin = (isset($_POST['album_compact_title_margin']) ? esc_html(stripslashes( $_POST['album_compact_title_margin'])) : '');
281
  $album_compact_title_font_style = (isset($_POST['album_compact_title_font_style']) ? esc_html(stripslashes( $_POST['album_compact_title_font_style'])) : 'inherit');
727
  'image_browser_full_border_color' => $image_browser_full_border_color,
728
  'image_browser_full_bg_color' => $image_browser_full_bg_color,
729
  'image_browser_full_transparent' => $image_browser_full_transparent,
730
+ 'image_browser_image_title_align' => $image_browser_image_title_align,
731
  'album_compact_title_margin' => $album_compact_title_margin,
732
  'album_compact_thumb_margin' => $album_compact_thumb_margin,
733
  'album_compact_back_padding' => $album_compact_back_padding,
admin/models/BWGModelOptions_bwg.php CHANGED
@@ -22,162 +22,167 @@ class BWGModelOptions_bwg {
22
  public function get_row_data($reset) {
23
  global $wpdb;
24
  $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_option WHERE id="%d"', 1));
25
- $row->old_images_directory = $row->images_directory;
26
- if ($reset) {
27
- $upload_dir = wp_upload_dir();
28
- if (!is_dir($upload_dir['basedir'] . '/photo-gallery')) {
29
- mkdir($upload_dir['basedir'] . '/photo-gallery', 0777);
30
- }
31
- $row->images_directory = str_replace(ABSPATH, '', $upload_dir['basedir']);
32
- $row->masonry = 'vertical';
33
- $row->mosaic = 'vertical';
34
- $row->resizable_mosaic = 0;
35
- $row->mosaic_total_width = 100;
36
- $row->image_column_number = 5;
37
- $row->images_per_page = 30;
38
- $row->thumb_width = 180;
39
- $row->thumb_height = 90;
40
- $row->upload_thumb_width = 300;
41
- $row->upload_thumb_height = 300;
42
- $row->upload_img_width = 1200;
43
- $row->upload_img_height = 1200;
44
- $row->image_enable_page = 1;
45
- $row->image_title_show_hover = 'none';
 
46
 
47
- $row->album_column_number = 5;
48
- $row->albums_per_page = 30;
49
- $row->album_title_show_hover = 'hover';
50
- $row->album_thumb_width = 120;
51
- $row->album_thumb_height = 90;
52
- $row->album_enable_page = 1;
53
- $row->extended_album_height = 150;
54
- $row->extended_album_description_enable = 1;
55
 
56
- $row->image_browser_width = 800;
57
- $row->image_browser_title_enable = 1;
58
- $row->image_browser_description_enable = 1;
59
 
60
- $row->blog_style_width = 800;
61
- $row->blog_style_title_enable = 1;
62
- $row->blog_style_images_per_page = 5;
63
- $row->blog_style_enable_page = 1;
64
 
65
- $row->slideshow_type = 'fade';
66
- $row->slideshow_interval = 5;
67
- $row->slideshow_width = 800;
68
- $row->slideshow_height = 500;
69
- $row->slideshow_enable_autoplay = 0;
70
- $row->slideshow_enable_shuffle = 0;
71
- $row->slideshow_enable_ctrl = 1;
72
- $row->slideshow_enable_filmstrip = 1;
73
- $row->slideshow_filmstrip_height = 90;
74
- $row->slideshow_enable_title = 0;
75
- $row->slideshow_title_position = 'top-right';
76
- $row->slideshow_title_full_width = 0;
77
- $row->slideshow_enable_description = 0;
78
- $row->slideshow_description_position = 'bottom-right';
79
- $row->slideshow_enable_music = 0;
80
- $row->slideshow_audio_url = '';
81
- $row->slideshow_effect_duration = 1;
82
 
83
- $row->popup_width = 800;
84
- $row->popup_height = 500;
85
- $row->popup_type = 'fade';
86
- $row->popup_interval = 5;
87
- $row->popup_enable_filmstrip = 1;
88
- $row->popup_filmstrip_height = 70;
89
- $row->popup_enable_ctrl_btn = 1;
90
- $row->popup_enable_fullscreen = 1;
91
- $row->popup_enable_comment = 1;
92
- $row->popup_enable_email = 0;
93
- $row->popup_enable_captcha = 0;
94
- $row->popup_enable_download = 0;
95
- $row->popup_enable_fullsize_image = 0;
96
- $row->popup_enable_facebook = 1;
97
- $row->popup_enable_twitter = 1;
98
- $row->popup_enable_google = 1;
99
- $row->popup_enable_pinterest = 0;
100
- $row->popup_enable_tumblr = 0;
101
- $row->popup_effect_duration = 1;
102
 
103
- $row->watermark_type = 'none';
104
- $row->watermark_position = 'bottom-left';
105
- $row->watermark_width = 90;
106
- $row->watermark_height = 90;
107
- $row->watermark_url = WD_BWG_URL . '/images/watermark.png';
108
- $row->watermark_text = 'web-dorado.com';
109
- $row->watermark_link = 'https://web-dorado.com';
110
- $row->watermark_font_size = 20;
111
- $row->watermark_font = 'segoe ui';
112
- $row->watermark_color = 'FFFFFF';
113
- $row->watermark_opacity = 30;
114
 
115
- $row->built_in_watermark_type = 'none';
116
- $row->built_in_watermark_position = 'middle-center';
117
- $row->built_in_watermark_size = 15;
118
- $row->built_in_watermark_url = WD_BWG_URL . '/images/watermark.png';
119
- $row->built_in_watermark_text = 'web-dorado.com';
120
- $row->built_in_watermark_font_size = 20;
121
- $row->built_in_watermark_font = 'arial';
122
- $row->built_in_watermark_color = 'FFFFFF';
123
- $row->built_in_watermark_opacity = 30;
124
 
125
- $row->image_right_click = 0;
126
- $row->popup_fullscreen = 0;
127
- $row->gallery_role = 0;
128
- $row->album_role = 0;
129
- $row->image_role = 0;
130
- $row->popup_autoplay = 0;
131
- $row->album_view_type = 'thumbnail';
132
- $row->show_search_box = 0;
133
- $row->search_box_width = 180;
134
- $row->preload_images = 1;
135
- $row->preload_images_count = 10;
136
- $row->popup_enable_info = 1;
137
- $row->popup_info_always_show = 0;
138
- $row->popup_enable_rate = 0;
139
- $row->thumb_click_action = 'open_lightbox';
140
- $row->thumb_link_target = 1;
141
- $row->comment_moderation = 0;
142
- $row->popup_hit_counter = 0;
143
- $row->enable_ML_import = 0;
144
- $row->autoupdate_interval = 30;
145
- $row->instagram_client_id = '';
146
- $row->showthumbs_name = 0;
147
- $row->show_album_name = 0;
148
- $row->show_image_counts = 0;
149
- $row->play_icon = 1;
150
- $row->show_masonry_thumb_description = 0;
151
- $row->popup_info_full_width = 0;
152
- $row->show_sort_images = 0;
153
- $row->enable_seo = 1;
154
- $row->autohide_lightbox_navigation = 1;
155
- $row->autohide_slideshow_navigation = 1;
156
- $row->read_metadata = 0;
157
- $row->enable_loop = 1;
158
- $row->enable_addthis = 0;
159
- $row->addthis_profile_id = '';
160
 
161
- $row->carousel_interval = 5;
162
- $row->carousel_width = 300;
163
- $row->carousel_height = 300;
164
- $row->carousel_image_column_number = 5;
165
- $row->carousel_image_par = 0.75;
166
- $row->carousel_enable_autoplay = 0;
167
- $row->carousel_enable_title = 0;
168
- $row->carousel_r_width = 800;
169
- $row->carousel_fit_containerWidth = 1;
170
- $row->carousel_prev_next_butt = 1;
171
- $row->carousel_play_pause_butt = 1;
172
- $row->permissions = 'manage_options';
173
- $row->facebook_app_id = '';
174
- $row->facebook_app_secret = '';
175
- $row->show_tag_box = 0;
176
- $row->show_hide_custom_post = 0;
177
- $row->show_hide_post_meta = 0;
178
- $row->placeholder = '';
 
 
 
 
 
179
  }
180
- return $row;
181
  }
182
  ////////////////////////////////////////////////////////////////////////////////////////
183
  // Getters & Setters //
22
  public function get_row_data($reset) {
23
  global $wpdb;
24
  $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_option WHERE id="%d"', 1));
25
+ if (!is_null($row)) {
26
+ $row->old_images_directory = $row->images_directory;
27
+ if ($reset) {
28
+ $upload_dir = wp_upload_dir();
29
+ if (!is_dir($upload_dir['basedir'] . '/photo-gallery')) {
30
+ mkdir($upload_dir['basedir'] . '/photo-gallery', 0777);
31
+ }
32
+ $row->images_directory = str_replace(ABSPATH, '', $upload_dir['basedir']);
33
+ $row->masonry = 'vertical';
34
+ $row->mosaic = 'vertical';
35
+ $row->resizable_mosaic = 0;
36
+ $row->mosaic_total_width = 100;
37
+ $row->image_column_number = 5;
38
+ $row->images_per_page = 30;
39
+ $row->thumb_width = 180;
40
+ $row->thumb_height = 90;
41
+ $row->upload_thumb_width = 300;
42
+ $row->upload_thumb_height = 300;
43
+ $row->upload_img_width = 1200;
44
+ $row->upload_img_height = 1200;
45
+ $row->image_enable_page = 1;
46
+ $row->image_title_show_hover = 'none';
47
 
48
+ $row->album_column_number = 5;
49
+ $row->albums_per_page = 30;
50
+ $row->album_title_show_hover = 'hover';
51
+ $row->album_thumb_width = 120;
52
+ $row->album_thumb_height = 90;
53
+ $row->album_enable_page = 1;
54
+ $row->extended_album_height = 150;
55
+ $row->extended_album_description_enable = 1;
56
 
57
+ $row->image_browser_width = 800;
58
+ $row->image_browser_title_enable = 1;
59
+ $row->image_browser_description_enable = 1;
60
 
61
+ $row->blog_style_width = 800;
62
+ $row->blog_style_title_enable = 1;
63
+ $row->blog_style_images_per_page = 5;
64
+ $row->blog_style_enable_page = 1;
65
 
66
+ $row->slideshow_type = 'fade';
67
+ $row->slideshow_interval = 5;
68
+ $row->slideshow_width = 800;
69
+ $row->slideshow_height = 500;
70
+ $row->slideshow_enable_autoplay = 0;
71
+ $row->slideshow_enable_shuffle = 0;
72
+ $row->slideshow_enable_ctrl = 1;
73
+ $row->slideshow_enable_filmstrip = 1;
74
+ $row->slideshow_filmstrip_height = 90;
75
+ $row->slideshow_enable_title = 0;
76
+ $row->slideshow_title_position = 'top-right';
77
+ $row->slideshow_title_full_width = 0;
78
+ $row->slideshow_enable_description = 0;
79
+ $row->slideshow_description_position = 'bottom-right';
80
+ $row->slideshow_enable_music = 0;
81
+ $row->slideshow_audio_url = '';
82
+ $row->slideshow_effect_duration = 1;
83
 
84
+ $row->popup_width = 800;
85
+ $row->popup_height = 500;
86
+ $row->popup_type = 'fade';
87
+ $row->popup_interval = 5;
88
+ $row->popup_enable_filmstrip = 1;
89
+ $row->popup_filmstrip_height = 70;
90
+ $row->popup_enable_ctrl_btn = 1;
91
+ $row->popup_enable_fullscreen = 1;
92
+ $row->popup_enable_comment = 1;
93
+ $row->popup_enable_email = 0;
94
+ $row->popup_enable_captcha = 0;
95
+ $row->popup_enable_download = 0;
96
+ $row->popup_enable_fullsize_image = 0;
97
+ $row->popup_enable_facebook = 1;
98
+ $row->popup_enable_twitter = 1;
99
+ $row->popup_enable_google = 1;
100
+ $row->popup_enable_pinterest = 0;
101
+ $row->popup_enable_tumblr = 0;
102
+ $row->popup_effect_duration = 1;
103
 
104
+ $row->watermark_type = 'none';
105
+ $row->watermark_position = 'bottom-left';
106
+ $row->watermark_width = 90;
107
+ $row->watermark_height = 90;
108
+ $row->watermark_url = WD_BWG_URL . '/images/watermark.png';
109
+ $row->watermark_text = 'web-dorado.com';
110
+ $row->watermark_link = 'https://web-dorado.com';
111
+ $row->watermark_font_size = 20;
112
+ $row->watermark_font = 'segoe ui';
113
+ $row->watermark_color = 'FFFFFF';
114
+ $row->watermark_opacity = 30;
115
 
116
+ $row->built_in_watermark_type = 'none';
117
+ $row->built_in_watermark_position = 'middle-center';
118
+ $row->built_in_watermark_size = 15;
119
+ $row->built_in_watermark_url = WD_BWG_URL . '/images/watermark.png';
120
+ $row->built_in_watermark_text = 'web-dorado.com';
121
+ $row->built_in_watermark_font_size = 20;
122
+ $row->built_in_watermark_font = 'arial';
123
+ $row->built_in_watermark_color = 'FFFFFF';
124
+ $row->built_in_watermark_opacity = 30;
125
 
126
+ $row->image_right_click = 0;
127
+ $row->popup_fullscreen = 0;
128
+ $row->gallery_role = 0;
129
+ $row->album_role = 0;
130
+ $row->image_role = 0;
131
+ $row->popup_autoplay = 0;
132
+ $row->album_view_type = 'thumbnail';
133
+ $row->show_search_box = 0;
134
+ $row->search_box_width = 180;
135
+ $row->preload_images = 1;
136
+ $row->preload_images_count = 10;
137
+ $row->popup_enable_info = 1;
138
+ $row->popup_info_always_show = 0;
139
+ $row->popup_enable_rate = 0;
140
+ $row->thumb_click_action = 'open_lightbox';
141
+ $row->thumb_link_target = 1;
142
+ $row->comment_moderation = 0;
143
+ $row->popup_hit_counter = 0;
144
+ $row->enable_ML_import = 0;
145
+ $row->autoupdate_interval = 30;
146
+ $row->instagram_client_id = '';
147
+ $row->showthumbs_name = 0;
148
+ $row->show_album_name = 0;
149
+ $row->show_image_counts = 0;
150
+ $row->play_icon = 1;
151
+ $row->show_masonry_thumb_description = 0;
152
+ $row->popup_info_full_width = 0;
153
+ $row->show_sort_images = 0;
154
+ $row->enable_seo = 1;
155
+ $row->autohide_lightbox_navigation = 1;
156
+ $row->autohide_slideshow_navigation = 1;
157
+ $row->read_metadata = 0;
158
+ $row->enable_loop = 1;
159
+ $row->enable_addthis = 0;
160
+ $row->addthis_profile_id = '';
161
 
162
+ $row->carousel_interval = 5;
163
+ $row->carousel_width = 300;
164
+ $row->carousel_height = 300;
165
+ $row->carousel_image_column_number = 5;
166
+ $row->carousel_image_par = 0.75;
167
+ $row->carousel_enable_autoplay = 0;
168
+ $row->carousel_enable_title = 0;
169
+ $row->carousel_r_width = 800;
170
+ $row->carousel_fit_containerWidth = 1;
171
+ $row->carousel_prev_next_butt = 1;
172
+ $row->carousel_play_pause_butt = 1;
173
+ $row->permissions = 'manage_options';
174
+ $row->facebook_app_id = '';
175
+ $row->facebook_app_secret = '';
176
+ $row->show_tag_box = 0;
177
+ $row->show_hide_custom_post = 0;
178
+ $row->show_hide_post_meta = 0;
179
+ $row->placeholder = '';
180
+ }
181
+ return $row;
182
+ }
183
+ else {
184
+ return 0;
185
  }
 
186
  }
187
  ////////////////////////////////////////////////////////////////////////////////////////
188
  // Getters & Setters //
admin/models/BWGModelThemes_bwg.php CHANGED
@@ -57,6 +57,9 @@ class BWGModelThemes_bwg {
57
  if (!isset($row->lightbox_bg_transparent)) {
58
  $row->lightbox_bg_transparent = 100;
59
  }
 
 
 
60
  if ($reset) {
61
  if (!$row->default_theme) {
62
  $row_id = $row->id;
@@ -72,6 +75,9 @@ class BWGModelThemes_bwg {
72
  if (!isset($row->lightbox_bg_transparent)) {
73
  $row->lightbox_bg_transparent = 100;
74
  }
 
 
 
75
  }
76
  else {
77
  $row->thumb_margin = 4;
@@ -450,6 +456,7 @@ class BWGModelThemes_bwg {
450
  $row->image_browser_full_border_color = 'F7F7F7';
451
  $row->image_browser_full_bg_color = 'F5F5F5';
452
  $row->image_browser_full_transparent = 90;
 
453
  $row->lightbox_info_pos = 'top';
454
  $row->lightbox_info_align = 'right';
455
  $row->lightbox_info_bg_color = '000000';
@@ -540,6 +547,9 @@ class BWGModelThemes_bwg {
540
  if (!isset($row->lightbox_bg_transparent)) {
541
  $row->lightbox_bg_transparent = 100;
542
  }
 
 
 
543
  }
544
  return $row;
545
  }
57
  if (!isset($row->lightbox_bg_transparent)) {
58
  $row->lightbox_bg_transparent = 100;
59
  }
60
+ if (!isset($row->image_browser_image_title_align)) {
61
+ $row->image_browser_image_title_align = 'top';
62
+ }
63
  if ($reset) {
64
  if (!$row->default_theme) {
65
  $row_id = $row->id;
75
  if (!isset($row->lightbox_bg_transparent)) {
76
  $row->lightbox_bg_transparent = 100;
77
  }
78
+ if (!isset($row->image_browser_image_title_align)) {
79
+ $row->image_browser_image_title_align = 'top';
80
+ }
81
  }
82
  else {
83
  $row->thumb_margin = 4;
456
  $row->image_browser_full_border_color = 'F7F7F7';
457
  $row->image_browser_full_bg_color = 'F5F5F5';
458
  $row->image_browser_full_transparent = 90;
459
+ $row->image_browser_image_title_align = 'top';
460
  $row->lightbox_info_pos = 'top';
461
  $row->lightbox_info_align = 'right';
462
  $row->lightbox_info_bg_color = '000000';
547
  if (!isset($row->lightbox_bg_transparent)) {
548
  $row->lightbox_bg_transparent = 100;
549
  }
550
+ if (!isset($row->image_browser_image_title_align)) {
551
+ $row->image_browser_image_title_align = 'top';
552
+ }
553
  }
554
  return $row;
555
  }
admin/views/BWGViewOptions_bwg.php CHANGED
@@ -53,6 +53,10 @@ class BWGViewOptions_bwg {
53
  </script>
54
  <?php
55
  $row = $this->model->get_row_data($reset);
 
 
 
 
56
  $built_in_watermark_fonts = array();
57
  foreach (scandir(path_join(WD_BWG_DIR, 'fonts')) as $filename) {
58
  if (strpos($filename, '.') === 0) continue;
53
  </script>
54
  <?php
55
  $row = $this->model->get_row_data($reset);
56
+ if (!$row) {
57
+ echo WDWLibrary::message_id(2);
58
+ return;
59
+ }
60
  $built_in_watermark_fonts = array();
61
  foreach (scandir(path_join(WD_BWG_DIR, 'fonts')) as $filename) {
62
  if (strpos($filename, '.') === 0) continue;
admin/views/BWGViewThemes_bwg.php CHANGED
@@ -32,7 +32,7 @@ class BWGViewThemes_bwg {
32
  $order_class = 'manage-column column-title sorted ' . $asc_or_desc;
33
  $ids_string = '';
34
  $per_page = $this->model->per_page();
35
- $pager = 0;
36
  ?>
37
  <div style="clear: both; float: left; width: 99%;">
38
  <div style="float:left; font-size: 14px; font-weight: bold;">
@@ -1211,7 +1211,16 @@ class BWGViewThemes_bwg {
1211
  <table style="clear:both;">
1212
  <tbody>
1213
  <tr>
1214
- <td class="spider_label"><label for="image_browser_image_description_align0"><?php _e("Title alignment:", 'bwg_back'); ?> </label></td>
 
 
 
 
 
 
 
 
 
1215
  <td>
1216
  <select name="image_browser_image_description_align" id="image_browser_image_description_align">
1217
  <?php
32
  $order_class = 'manage-column column-title sorted ' . $asc_or_desc;
33
  $ids_string = '';
34
  $per_page = $this->model->per_page();
35
+ $pager = 0;
36
  ?>
37
  <div style="clear: both; float: left; width: 99%;">
38
  <div style="float:left; font-size: 14px; font-weight: bold;">
1211
  <table style="clear:both;">
1212
  <tbody>
1213
  <tr>
1214
+ <td class="spider_label"><label><?php _e('Title position:', 'bwg_back'); ?> </label></td>
1215
+ <td>
1216
+ <input type="radio" name="image_browser_image_title_align" id="image_browser_image_title_align1" value="top" <?php if ($row->image_browser_image_title_align == "top") echo 'checked="checked"'; ?> />
1217
+ <label for="image_browser_image_title_align1" id="image_browser_image_title_align1_lbl"><?php _e('Top', 'bwg_back'); ?></label>
1218
+ <input type="radio" name="image_browser_image_title_align" id="image_browser_image_title_align0" value="bottom" <?php if ($row->image_browser_image_title_align == "bottom") echo 'checked="checked"'; ?> />
1219
+ <label for="image_browser_image_title_align0" id="image_browser_image_title_align0_lbl"><?php _e('Bottom', 'bwg_back'); ?></label>
1220
+ </td>
1221
+ </tr>
1222
+ <tr>
1223
+ <td class="spider_label"><label for="image_browser_image_description_align0"><?php echo __('Title alignment:', 'bwg_back'); ?> </label></td>
1224
  <td>
1225
  <select name="image_browser_image_description_align" id="image_browser_image_description_align">
1226
  <?php
css/bwg_tables.css CHANGED
@@ -1036,6 +1036,12 @@ textarea.bwg_popup_input {
1036
  height: 200px !important;
1037
  }
1038
  @media screen and (max-width: 420px) {
 
 
 
 
 
 
1039
  .default_tab_button_wrap {
1040
  margin-top: -10px;
1041
  }
1036
  height: 200px !important;
1037
  }
1038
  @media screen and (max-width: 420px) {
1039
+ #bwg_standart {
1040
+ top: -3px !important;
1041
+ }
1042
+ #bwg_default {
1043
+ top: 2px !important;
1044
+ }
1045
  .default_tab_button_wrap {
1046
  margin-top: -10px;
1047
  }
frontend/views/BWGViewAlbum_extended_preview.php CHANGED
@@ -636,61 +636,61 @@ class BWGViewAlbum_extended_preview {
636
  $thumb_left = 0;
637
  $thumb_top = 0;
638
  }
639
- if ($type != 'gallery') {
640
- ?>
641
- <div class="bwg_album_extended_div_<?php echo $bwg; ?>">
642
- <div class="bwg_album_extended_thumb_div_<?php echo $bwg; ?>">
643
- <a class="bwg_album_<?php echo $bwg; ?>" <?php echo ($options_row->enable_seo ? 'href="' . esc_url(add_query_arg(array("type_" . $bwg => $def_type, "album_gallery_id_" . $bwg => $album_galallery_row->alb_gal_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_galallery_row->alb_gal_id; ?>" data-def_type="<?php echo $def_type; ?>" data-title="<?php htmlspecialchars(addslashes($title)); ?>">
644
- <span class="bwg_album_thumb_<?php echo $bwg; ?>" style="height:inherit;">
645
- <span class="bwg_album_thumb_spun1_<?php echo $bwg; ?>">
646
- <span class="bwg_album_thumb_spun2_<?php echo $bwg; ?>">
647
- <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; ?>" />
648
- </span>
649
  </span>
650
  </span>
 
 
 
 
 
 
 
 
 
651
  </a>
652
- </div>
653
- <div class="bwg_album_extended_text_div_<?php echo $bwg; ?>">
654
  <?php
655
- if ($title) {
 
 
 
 
 
656
  ?>
657
- <span class="bwg_title_spun_<?php echo $bwg; ?>"><?php echo $title; ?></span>
658
- <?php
659
- }
660
- if ($params['extended_album_description_enable'] && $description) {
661
- if (stripos($description, '<!--more-->') !== FALSE) {
662
- $description_array = explode('<!--more-->', $description);
663
- $description_short = $description_array[0];
664
- $description_full = $description_array[1];
665
- ?>
666
- <span class="bwg_description_spun1_<?php echo $bwg; ?>">
667
- <span class="bwg_description_spun2_<?php echo $bwg; ?>">
668
- <span class="bwg_description_short_<?php echo $bwg; ?>">
669
- <?php echo $description_short; ?>
670
- </span>
671
- <span class="bwg_description_full_<?php echo $bwg; ?>">
672
- <?php echo $description_full; ?>
673
- </span>
674
- </span>
675
- <span class="bwg_description_more_<?php echo $bwg; ?> bwg_more"><?php echo __('More', 'bwg'); ?></span>
676
- </span>
677
- <?php
678
- }
679
- else {
680
- ?>
681
- <span class="bwg_description_spun1_<?php echo $bwg; ?>">
682
  <span class="bwg_description_short_<?php echo $bwg; ?>">
683
- <?php echo $description; ?>
 
 
 
684
  </span>
685
  </span>
686
- <?php
687
- }
 
688
  }
689
- ?>
690
- </div>
 
 
 
 
 
 
 
 
 
691
  </div>
692
- <?php
693
- }
694
  }
695
  }
696
  elseif ($type == 'gallery') {
636
  $thumb_left = 0;
637
  $thumb_top = 0;
638
  }
639
+ ?>
640
+ <div class="bwg_album_extended_div_<?php echo $bwg; ?>">
641
+ <div class="bwg_album_extended_thumb_div_<?php echo $bwg; ?>">
642
+ <a class="bwg_album_<?php echo $bwg; ?>" <?php echo ($options_row->enable_seo ? 'href="' . esc_url(add_query_arg(array("type_" . $bwg => $def_type, "album_gallery_id_" . $bwg => $album_galallery_row->alb_gal_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_galallery_row->alb_gal_id; ?>" data-def_type="<?php echo $def_type; ?>" data-title="<?php htmlspecialchars(addslashes($title)); ?>">
643
+ <span class="bwg_album_thumb_<?php echo $bwg; ?>" style="height:inherit;">
644
+ <span class="bwg_album_thumb_spun1_<?php echo $bwg; ?>">
645
+ <span class="bwg_album_thumb_spun2_<?php echo $bwg; ?>">
646
+ <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; ?>" />
 
 
647
  </span>
648
  </span>
649
+ </span>
650
+ </a>
651
+ </div>
652
+ <div class="bwg_album_extended_text_div_<?php echo $bwg; ?>">
653
+ <?php
654
+ if ($title) {
655
+ ?>
656
+ <a class="bwg_album_<?php echo $bwg; ?>" <?php echo ($options_row->enable_seo ? 'href="' . esc_url(add_query_arg(array("type_" . $bwg => $def_type, "album_gallery_id_" . $bwg => $album_galallery_row->alb_gal_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_galallery_row->alb_gal_id; ?>" data-def_type="<?php echo $def_type; ?>" data-title="<?php htmlspecialchars(addslashes($title)); ?>">
657
+ <span class="bwg_title_spun_<?php echo $bwg; ?>"><?php echo $title; ?></span>
658
  </a>
 
 
659
  <?php
660
+ }
661
+ if ($params['extended_album_description_enable'] && $description) {
662
+ if (stripos($description, '<!--more-->') !== FALSE) {
663
+ $description_array = explode('<!--more-->', $description);
664
+ $description_short = $description_array[0];
665
+ $description_full = $description_array[1];
666
  ?>
667
+ <span class="bwg_description_spun1_<?php echo $bwg; ?>">
668
+ <span class="bwg_description_spun2_<?php echo $bwg; ?>">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
669
  <span class="bwg_description_short_<?php echo $bwg; ?>">
670
+ <?php echo $description_short; ?>
671
+ </span>
672
+ <span class="bwg_description_full_<?php echo $bwg; ?>">
673
+ <?php echo $description_full; ?>
674
  </span>
675
  </span>
676
+ <span class="bwg_description_more_<?php echo $bwg; ?> bwg_more"><?php echo __('More', 'bwg'); ?></span>
677
+ </span>
678
+ <?php
679
  }
680
+ else {
681
+ ?>
682
+ <span class="bwg_description_spun1_<?php echo $bwg; ?>">
683
+ <span class="bwg_description_short_<?php echo $bwg; ?>">
684
+ <?php echo $description; ?>
685
+ </span>
686
+ </span>
687
+ <?php
688
+ }
689
+ }
690
+ ?>
691
  </div>
692
+ </div>
693
+ <?php
694
  }
695
  }
696
  elseif ($type == 'gallery') {
frontend/views/BWGViewImage_browser.php CHANGED
@@ -158,6 +158,7 @@ class BWGViewImage_browser {
158
  $params_array['watermark_color'] = '';
159
  $params_array['watermark_font_size'] = '';
160
  }
 
161
  ?>
162
  <style>
163
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .image_browser_images_conteiner_<?php echo $bwg; ?> * {
@@ -455,17 +456,17 @@ class BWGViewImage_browser {
455
  ?>
456
  <div class="image_browser_image_buttons_conteiner_<?php echo $bwg; ?>">
457
  <div class="image_browser_image_buttons_<?php echo $bwg;?>">
458
- <div class="bwg_image_browser_image_alt_<?php echo $bwg; ?>">
459
- <?php
460
- if ($image_title) {
461
- ?>
462
- <div class="bwg_image_alt_<?php echo $bwg; ?>" id="alt<?php echo $image_row->id; ?>">
463
- <?php echo html_entity_decode($image_row->alt); ?>
464
- </div>
465
- <?php
466
- }
467
  ?>
 
 
 
 
468
  </div>
 
 
 
469
  <div class="bwg_image_browser_image_<?php echo $bwg; ?>">
470
  <?php
471
  if ($show_watermark) {
@@ -558,6 +559,15 @@ class BWGViewImage_browser {
558
  </script>
559
  </div>
560
  <?php
 
 
 
 
 
 
 
 
 
561
  if ($enable_image_description && ($image_row->description != "")) {
562
  ?>
563
  <div class="bwg_image_browser_image_desp_<?php echo $bwg; ?>">
158
  $params_array['watermark_color'] = '';
159
  $params_array['watermark_font_size'] = '';
160
  }
161
+ $image_browser_image_title_align = (isset($theme_row->image_browser_image_title_align)) ? $theme_row->image_browser_image_title_align : 'top';
162
  ?>
163
  <style>
164
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .image_browser_images_conteiner_<?php echo $bwg; ?> * {
456
  ?>
457
  <div class="image_browser_image_buttons_conteiner_<?php echo $bwg; ?>">
458
  <div class="image_browser_image_buttons_<?php echo $bwg;?>">
459
+ <?php
460
+ if ($image_title && ($image_browser_image_title_align == 'top')) {
 
 
 
 
 
 
 
461
  ?>
462
+ <div class="bwg_image_browser_image_alt_<?php echo $bwg; ?>">
463
+ <div class="bwg_image_alt_<?php echo $bwg; ?>" id="alt<?php echo $image_row->id; ?>">
464
+ <?php echo html_entity_decode($image_row->alt); ?>
465
+ </div>
466
  </div>
467
+ <?php
468
+ }
469
+ ?>
470
  <div class="bwg_image_browser_image_<?php echo $bwg; ?>">
471
  <?php
472
  if ($show_watermark) {
559
  </script>
560
  </div>
561
  <?php
562
+ if ($image_title && ($image_browser_image_title_align == 'bottom')) {
563
+ ?>
564
+ <div class="bwg_image_browser_image_alt_<?php echo $bwg; ?>">
565
+ <div class="bwg_image_alt_<?php echo $bwg; ?>" id="alt<?php echo $image_row->id; ?>">
566
+ <?php echo html_entity_decode($image_row->alt); ?>
567
+ </div>
568
+ </div>
569
+ <?php
570
+ }
571
  if ($enable_image_description && ($image_row->description != "")) {
572
  ?>
573
  <div class="bwg_image_browser_image_desp_<?php echo $bwg; ?>">
frontend/views/BWGViewSlideshow.php CHANGED
@@ -618,6 +618,9 @@ class BWGViewSlideshow {
618
  <div id="bwg_container1_<?php echo $bwg; ?>">
619
  <div id="bwg_container2_<?php echo $bwg; ?>">
620
  <div class="bwg_slideshow_image_wrap_<?php echo $bwg; ?>">
 
 
 
621
  <?php
622
  $current_pos = 0;
623
  if (!$enable_slideshow_filmstrip) {
@@ -1344,6 +1347,7 @@ class BWGViewSlideshow {
1344
  bwg_popup_resize_<?php echo $bwg; ?>();
1345
  });
1346
  jQuery(window).load(function () {
 
1347
  <?php
1348
  if ($image_right_click) {
1349
  ?>
618
  <div id="bwg_container1_<?php echo $bwg; ?>">
619
  <div id="bwg_container2_<?php echo $bwg; ?>">
620
  <div class="bwg_slideshow_image_wrap_<?php echo $bwg; ?>">
621
+ <div id="ajax_loading_<?php echo $bwg; ?>" style="text-align: center; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999;">
622
+ <img src="<?php echo WD_BWG_URL . '/images/ajax_loader.gif'; ?>" style="width: 30px; border: medium none; visibility: visible;">
623
+ </div>
624
  <?php
625
  $current_pos = 0;
626
  if (!$enable_slideshow_filmstrip) {
1347
  bwg_popup_resize_<?php echo $bwg; ?>();
1348
  });
1349
  jQuery(window).load(function () {
1350
+ jQuery('#ajax_loading_<?php echo $bwg; ?>').hide();
1351
  <?php
1352
  if ($image_right_click) {
1353
  ?>
photo-gallery.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Photo Gallery
5
  * Plugin URI: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
6
  * Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
7
- * Version: 1.3.18
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -1331,6 +1331,7 @@ function bwg_activate() {
1331
  'image_browser_full_border_color' => 'F7F7F7',
1332
  'image_browser_full_bg_color' => 'F5F5F5',
1333
  'image_browser_full_transparent' => 90,
 
1334
 
1335
  'lightbox_info_pos' => 'top',
1336
  'lightbox_info_align' => 'right',
@@ -1782,6 +1783,7 @@ function bwg_activate() {
1782
  'image_browser_full_border_color' => 'EDEDED',
1783
  'image_browser_full_bg_color' => 'FFFFFF',
1784
  'image_browser_full_transparent' => 90,
 
1785
 
1786
  'lightbox_info_pos' => 'top',
1787
  'lightbox_info_align' => 'right',
@@ -1924,7 +1926,7 @@ function bwg_activate() {
1924
  ));
1925
  }
1926
  $version = WD_BWG_VERSION;
1927
- $new_version = '1.3.18';
1928
  if ($version && version_compare($version, $new_version, '<')) {
1929
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1930
  bwg_update($version);
@@ -1976,7 +1978,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
1976
 
1977
  function bwg_update_hook() {
1978
  $version = WD_BWG_VERSION;
1979
- $new_version = '1.3.18';
1980
  if ($version && version_compare($version, $new_version, '<')) {
1981
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1982
  bwg_update($version);
4
  * Plugin Name: Photo Gallery
5
  * Plugin URI: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
6
  * Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
7
+ * Version: 1.3.19
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
1331
  'image_browser_full_border_color' => 'F7F7F7',
1332
  'image_browser_full_bg_color' => 'F5F5F5',
1333
  'image_browser_full_transparent' => 90,
1334
+ 'image_browser_image_title_align' => 'top',
1335
 
1336
  'lightbox_info_pos' => 'top',
1337
  'lightbox_info_align' => 'right',
1783
  'image_browser_full_border_color' => 'EDEDED',
1784
  'image_browser_full_bg_color' => 'FFFFFF',
1785
  'image_browser_full_transparent' => 90,
1786
+ 'image_browser_image_title_align' => 'top',
1787
 
1788
  'lightbox_info_pos' => 'top',
1789
  'lightbox_info_align' => 'right',
1926
  ));
1927
  }
1928
  $version = WD_BWG_VERSION;
1929
+ $new_version = '1.3.19';
1930
  if ($version && version_compare($version, $new_version, '<')) {
1931
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1932
  bwg_update($version);
1978
 
1979
  function bwg_update_hook() {
1980
  $version = WD_BWG_VERSION;
1981
+ $new_version = '1.3.19';
1982
  if ($version && version_compare($version, $new_version, '<')) {
1983
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1984
  bwg_update($version);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
4
  Tags: album, image gallery, gallery, image, images, lightbox, photo, photo gallery, photos, responsive, thumbnail, widget
5
  Requires at least: 3.4
6
  Tested up to: 4.6
7
- Stable tag: 1.3.18
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -173,6 +173,11 @@ To enable the feature of adding Media Library images, go to Photo Gallery > Opti
173
 
174
  == Changelog ==
175
 
 
 
 
 
 
176
  = 1.3.18 =
177
  * Changed: Options page design.
178
 
4
  Tags: album, image gallery, gallery, image, images, lightbox, photo, photo gallery, photos, responsive, thumbnail, widget
5
  Requires at least: 3.4
6
  Tested up to: 4.6
7
+ Stable tag: 1.3.19
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
173
 
174
  == Changelog ==
175
 
176
+ = 1.3.19 =
177
+ * Added: Image title position in image browser view (optional).
178
+ * Added: Loading icon in slideshow view.
179
+ * Added: Open album on title click in extended album view.
180
+
181
  = 1.3.18 =
182
  * Changed: Options page design.
183