Photo Gallery by WD – Responsive Photo Gallery - Version 1.1.30

Version Description

  • images count in ligthbox (optional - only in options page)
  • images count column in galleries table
  • WordPress Search Integration by gallery and album title
  • show gallery, album title (optional - only in options page)
Download this release

Release Info

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

Code changes from version 1.1.29 to 1.1.30

admin/controllers/BWGControllerOptions_bwg.php CHANGED
@@ -179,6 +179,9 @@ class BWGControllerOptions_bwg {
179
  $comment_moderation = (isset($_POST['comment_moderation']) ? esc_html(stripslashes($_POST['comment_moderation'])) : 0);
180
  $popup_hit_counter = (isset($_POST['popup_hit_counter']) ? esc_html(stripslashes($_POST['popup_hit_counter'])) : 0);
181
  $enable_ML_import = (isset($_POST['enable_ML_import']) ? esc_html(stripslashes($_POST['enable_ML_import'])) : 0);
 
 
 
182
 
183
  $save = $wpdb->update($wpdb->prefix . 'bwg_option', array(
184
  'images_directory' => $images_directory,
@@ -278,6 +281,9 @@ class BWGControllerOptions_bwg {
278
  'comment_moderation' => $comment_moderation,
279
  'popup_hit_counter' => $popup_hit_counter,
280
  'enable_ML_import' => $enable_ML_import,
 
 
 
281
  ), array('id' => 1));
282
 
283
  if ($save !== FALSE) {
179
  $comment_moderation = (isset($_POST['comment_moderation']) ? esc_html(stripslashes($_POST['comment_moderation'])) : 0);
180
  $popup_hit_counter = (isset($_POST['popup_hit_counter']) ? esc_html(stripslashes($_POST['popup_hit_counter'])) : 0);
181
  $enable_ML_import = (isset($_POST['enable_ML_import']) ? esc_html(stripslashes($_POST['enable_ML_import'])) : 0);
182
+ $showthumbs_name = (isset($_POST['thumb_name']) ? esc_html(stripslashes($_POST['thumb_name'])) : 1);
183
+ $show_album_name = (isset($_POST['show_album_name_enable']) ? esc_html(stripslashes($_POST['show_album_name_enable'])) : 1);
184
+ $show_image_counts = (isset($_POST['show_image_counts']) ? esc_html(stripslashes($_POST['show_image_counts'])) : 0);
185
 
186
  $save = $wpdb->update($wpdb->prefix . 'bwg_option', array(
187
  'images_directory' => $images_directory,
281
  'comment_moderation' => $comment_moderation,
282
  'popup_hit_counter' => $popup_hit_counter,
283
  'enable_ML_import' => $enable_ML_import,
284
+ 'showthumbs_name' => $showthumbs_name,
285
+ 'show_album_name' => $show_album_name,
286
+ 'show_image_counts' => $show_image_counts,
287
  ), array('id' => 1));
288
 
289
  if ($save !== FALSE) {
admin/models/BWGModelGalleries_bwg.php CHANGED
@@ -88,6 +88,7 @@ class BWGModelGalleries_bwg {
88
  $row->preview_image = '';
89
  $row->order = 0;
90
  $row->author = get_current_user_id();
 
91
  $row->published = 1;
92
  }
93
  return $row;
@@ -143,6 +144,18 @@ class BWGModelGalleries_bwg {
143
  return $row;
144
  }
145
 
 
 
 
 
 
 
 
 
 
 
 
 
146
  ////////////////////////////////////////////////////////////////////////////////////////
147
  // Getters & Setters //
148
  ////////////////////////////////////////////////////////////////////////////////////////
88
  $row->preview_image = '';
89
  $row->order = 0;
90
  $row->author = get_current_user_id();
91
+ $row->images_count = 0;
92
  $row->published = 1;
93
  }
94
  return $row;
144
  return $row;
145
  }
146
 
147
+ public function get_images_count($gallery_id) {
148
+ global $wpdb;
149
+ if (!current_user_can('manage_options') && $wpdb->get_var("SELECT image_role FROM " . $wpdb->prefix . "bwg_option")) {
150
+ $where = " WHERE author=" . get_current_user_id();
151
+ }
152
+ else {
153
+ $where = " WHERE author>=0 ";
154
+ }
155
+ $row = $wpdb->get_var($wpdb->prepare("SELECT COUNT(filename) FROM " . $wpdb->prefix . "bwg_image " . $where . " AND gallery_id='%d'", $gallery_id));
156
+ return $row;
157
+ }
158
+
159
  ////////////////////////////////////////////////////////////////////////////////////////
160
  // Getters & Setters //
161
  ////////////////////////////////////////////////////////////////////////////////////////
admin/models/BWGModelOptions_bwg.php CHANGED
@@ -133,6 +133,9 @@ class BWGModelOptions_bwg {
133
  $row->comment_moderation = 0;
134
  $row->popup_hit_counter = 0;
135
  $row->enable_ML_import = 0;
 
 
 
136
  }
137
  return $row;
138
  }
133
  $row->comment_moderation = 0;
134
  $row->popup_hit_counter = 0;
135
  $row->enable_ML_import = 0;
136
+ $row->showthumbs_name = 0;
137
+ $row->show_album_name = 0;
138
+ $row->show_image_counts = 0;
139
  }
140
  return $row;
141
  }
admin/views/BWGViewBWGShortcode.php CHANGED
@@ -1317,6 +1317,7 @@ class BWGViewBWGShortcode {
1317
  tagtext += ' image_enable_page="' + jQuery("input[name=image_enable_page]:checked").val() + '"';
1318
  tagtext += ' thumb_width="' + jQuery("#thumb_width").val() + '"';
1319
  tagtext += ' thumb_height="' + jQuery("#thumb_height").val() + '"';
 
1320
  break;
1321
 
1322
  }
@@ -1339,6 +1340,7 @@ class BWGViewBWGShortcode {
1339
  tagtext += ' slideshow_description_position="' + jQuery("input[name=slideshow_description_position]:checked").val() + '"';
1340
  tagtext += ' enable_slideshow_music="' + jQuery("input[name=enable_slideshow_music]:checked").val() + '"';
1341
  tagtext += ' slideshow_music_url="' + jQuery("#slideshow_music_url").val() + '"';
 
1342
  break;
1343
 
1344
  }
@@ -1351,6 +1353,7 @@ class BWGViewBWGShortcode {
1351
  tagtext += ' image_browser_width="' + jQuery("#image_browser_width").val() + '"';
1352
  tagtext += ' image_browser_title_enable="' + jQuery("input[name=image_browser_title_enable]:checked").val() + '"';
1353
  tagtext += ' image_browser_description_enable="' + jQuery("input[name=image_browser_description_enable]:checked").val() + '"';
 
1354
  break;
1355
 
1356
  }
@@ -1372,6 +1375,7 @@ class BWGViewBWGShortcode {
1372
  tagtext += ' compuct_album_image_thumb_width="' + jQuery("#compuct_album_image_thumb_width").val() + '"';
1373
  tagtext += ' compuct_album_image_thumb_height="' + jQuery("#compuct_album_image_thumb_height").val() + '"';
1374
  tagtext += ' compuct_album_enable_page="' + jQuery("input[name=compuct_album_enable_page]:checked").val() + '"';
 
1375
  break;
1376
 
1377
  }
@@ -1393,6 +1397,7 @@ class BWGViewBWGShortcode {
1393
  tagtext += ' extended_album_image_thumb_width="' + jQuery("#extended_album_image_thumb_width").val() + '"';
1394
  tagtext += ' extended_album_image_thumb_height="' + jQuery("#extended_album_image_thumb_height").val() + '"';
1395
  tagtext += ' extended_album_enable_page="' + jQuery("input[name=extended_album_enable_page]:checked").val() + '"';
 
1396
  break;
1397
 
1398
  }
1317
  tagtext += ' image_enable_page="' + jQuery("input[name=image_enable_page]:checked").val() + '"';
1318
  tagtext += ' thumb_width="' + jQuery("#thumb_width").val() + '"';
1319
  tagtext += ' thumb_height="' + jQuery("#thumb_height").val() + '"';
1320
+ tagtext += ' gallery_name="' + jQuery('#gallery option:selected').text() + '"';
1321
  break;
1322
 
1323
  }
1340
  tagtext += ' slideshow_description_position="' + jQuery("input[name=slideshow_description_position]:checked").val() + '"';
1341
  tagtext += ' enable_slideshow_music="' + jQuery("input[name=enable_slideshow_music]:checked").val() + '"';
1342
  tagtext += ' slideshow_music_url="' + jQuery("#slideshow_music_url").val() + '"';
1343
+ tagtext += ' gallery_name="' + jQuery('#gallery option:selected').text() + '"';
1344
  break;
1345
 
1346
  }
1353
  tagtext += ' image_browser_width="' + jQuery("#image_browser_width").val() + '"';
1354
  tagtext += ' image_browser_title_enable="' + jQuery("input[name=image_browser_title_enable]:checked").val() + '"';
1355
  tagtext += ' image_browser_description_enable="' + jQuery("input[name=image_browser_description_enable]:checked").val() + '"';
1356
+ tagtext += ' gallery_name="' + jQuery('#gallery option:selected').text() + '"';
1357
  break;
1358
 
1359
  }
1375
  tagtext += ' compuct_album_image_thumb_width="' + jQuery("#compuct_album_image_thumb_width").val() + '"';
1376
  tagtext += ' compuct_album_image_thumb_height="' + jQuery("#compuct_album_image_thumb_height").val() + '"';
1377
  tagtext += ' compuct_album_enable_page="' + jQuery("input[name=compuct_album_enable_page]:checked").val() + '"';
1378
+ tagtext += ' album_name="' + jQuery('#album option:selected').text() + '"';
1379
  break;
1380
 
1381
  }
1397
  tagtext += ' extended_album_image_thumb_width="' + jQuery("#extended_album_image_thumb_width").val() + '"';
1398
  tagtext += ' extended_album_image_thumb_height="' + jQuery("#extended_album_image_thumb_height").val() + '"';
1399
  tagtext += ' extended_album_enable_page="' + jQuery("input[name=extended_album_enable_page]:checked").val() + '"';
1400
+ tagtext += ' album_name="' + jQuery('#album option:selected').text() + '"';
1401
  break;
1402
 
1403
  }
admin/views/BWGViewGalleries_bwg.php CHANGED
@@ -110,6 +110,7 @@ class BWGViewGalleries_bwg {
110
  <span>Author</span><span class="sorting-indicator"></span>
111
  </a>
112
  </th>
 
113
  <th id="th_order" class="table_medium_col <?php if ($order_by == 'order') {echo $order_class;} ?>">
114
  <a onclick="spider_set_input_value('task', '');
115
  spider_set_input_value('order_by', 'order');
@@ -136,6 +137,7 @@ class BWGViewGalleries_bwg {
136
  $alternate = (!isset($alternate) || $alternate == 'class="alternate"') ? '' : 'class="alternate"';
137
  $published_image = (($row_data->published) ? 'publish' : 'unpublish');
138
  $published = (($row_data->published) ? 'unpublish' : 'publish');
 
139
  if ($row_data->preview_image == '') {
140
  $preview_image = WD_BWG_URL . '/images/no-image.png';
141
  }
@@ -160,7 +162,8 @@ class BWGViewGalleries_bwg {
160
  spider_form_submit(event, 'galleries_form')" href="" title="Edit"><?php echo $row_data->name; ?></a></td>
161
  <td><?php echo $row_data->slug; ?></td>
162
  <td><?php echo get_userdata($row_data->author)->display_name; ?></td>
163
- <td class="spider_order table_medium_col"><input id="order_input_<?php echo $row_data->id; ?>" name="order_input_<?php echo $row_data->id; ?>" type="text" size="1" value="<?php echo $row_data->order; ?>" /></td>
 
164
  <td class="table_big_col"><a onclick="spider_set_input_value('task', '<?php echo $published; ?>');spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');spider_form_submit(event, 'galleries_form')" href=""><img src="<?php echo WD_BWG_URL . '/images/' . $published_image . '.png'; ?>"></img></a></td>
165
  <td class="table_big_col"><a onclick="spider_set_input_value('task', 'edit');
166
  spider_set_input_value('page_number', '1');
110
  <span>Author</span><span class="sorting-indicator"></span>
111
  </a>
112
  </th>
113
+ <th class="table_large_col">Images count</th>
114
  <th id="th_order" class="table_medium_col <?php if ($order_by == 'order') {echo $order_class;} ?>">
115
  <a onclick="spider_set_input_value('task', '');
116
  spider_set_input_value('order_by', 'order');
137
  $alternate = (!isset($alternate) || $alternate == 'class="alternate"') ? '' : 'class="alternate"';
138
  $published_image = (($row_data->published) ? 'publish' : 'unpublish');
139
  $published = (($row_data->published) ? 'unpublish' : 'publish');
140
+ $images_count = $this->model->get_images_count($row_data->id);
141
  if ($row_data->preview_image == '') {
142
  $preview_image = WD_BWG_URL . '/images/no-image.png';
143
  }
162
  spider_form_submit(event, 'galleries_form')" href="" title="Edit"><?php echo $row_data->name; ?></a></td>
163
  <td><?php echo $row_data->slug; ?></td>
164
  <td><?php echo get_userdata($row_data->author)->display_name; ?></td>
165
+ <td class="table_large_col"><?php echo $images_count; ?></td>
166
+ <td class="spider_order table_medium_col"><input id="order_input_<?php echo $row_data->id; ?>" name="order_input_<?php echo $row_data->id; ?>" type="text" size="1" value="<?php echo $row_data->order; ?>" /></td>
167
  <td class="table_big_col"><a onclick="spider_set_input_value('task', '<?php echo $published; ?>');spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');spider_form_submit(event, 'galleries_form')" href=""><img src="<?php echo WD_BWG_URL . '/images/' . $published_image . '.png'; ?>"></img></a></td>
168
  <td class="table_big_col"><a onclick="spider_set_input_value('task', 'edit');
169
  spider_set_input_value('page_number', '1');
admin/views/BWGViewOptions_bwg.php CHANGED
@@ -202,7 +202,7 @@ class BWGViewOptions_bwg {
202
  <input type="text" name="preload_images_count" id="preload_images_count" value="<?php echo $row->preload_images_count; ?>" class="spider_int_input" />
203
  <div class="spider_description">Count of images to preload (0 for all).</div>
204
  </td>
205
- </tr>
206
  <tr>
207
  <td class="spider_label_options">
208
  <label>Import from Media Library:</label>
@@ -787,6 +787,16 @@ class BWGViewOptions_bwg {
787
  <input disabled="disabled" type="radio" name="popup_enable_tumblr" id="popup_enable_tumblr_0" value="0" <?php if (!$row->popup_enable_tumblr) echo 'checked="checked"'; ?> /><label for="popup_enable_tumblr_0">No</label>
788
  <div class="spider_description spider_free_version">This option is disabled in free version.</div>
789
  </td>
 
 
 
 
 
 
 
 
 
 
790
  </tr>
791
  </tbody>
792
  </table>
@@ -845,6 +855,16 @@ class BWGViewOptions_bwg {
845
  <div class="spider_description"></div>
846
  </td>
847
  </tr>
 
 
 
 
 
 
 
 
 
 
848
  <tr>
849
  <td class="spider_label_options">
850
  <label>Enable extended album description:</label>
@@ -1133,6 +1153,14 @@ class BWGViewOptions_bwg {
1133
  <div class="spider_description"></div>
1134
  </td>
1135
  </tr>
 
 
 
 
 
 
 
 
1136
  <tr>
1137
  <td class="spider_label_options"><label>Enable image pagination: </label></td>
1138
  <td>
202
  <input type="text" name="preload_images_count" id="preload_images_count" value="<?php echo $row->preload_images_count; ?>" class="spider_int_input" />
203
  <div class="spider_description">Count of images to preload (0 for all).</div>
204
  </td>
205
+ </tr>
206
  <tr>
207
  <td class="spider_label_options">
208
  <label>Import from Media Library:</label>
787
  <input disabled="disabled" type="radio" name="popup_enable_tumblr" id="popup_enable_tumblr_0" value="0" <?php if (!$row->popup_enable_tumblr) echo 'checked="checked"'; ?> /><label for="popup_enable_tumblr_0">No</label>
788
  <div class="spider_description spider_free_version">This option is disabled in free version.</div>
789
  </td>
790
+ </tr>
791
+ <tr id="tr_image_count">
792
+ <td class="spider_label_options">
793
+ <label>Show images count:</label>
794
+ </td>
795
+ <td>
796
+ <input type="radio" name="show_image_counts" id="show_image_counts_current_image_number_1" value="1" <?php if ($row->show_image_counts) echo 'checked="checked"'; ?> /><label for="show_image_counts_current_image_number_1">Yes</label>
797
+ <input type="radio" name="show_image_counts" id="show_image_counts_current_image_number_0" value="0" <?php if (!$row->show_image_counts) echo 'checked="checked"'; ?> /><label for="show_image_counts_current_image_number_0">No</label>
798
+ <div class="spider_description"></div>
799
+ </td>
800
  </tr>
801
  </tbody>
802
  </table>
855
  <div class="spider_description"></div>
856
  </td>
857
  </tr>
858
+ <tr>
859
+ <td class="spider_label_options">
860
+ <label>Show album/gallery name:</label>
861
+ </td>
862
+ <td>
863
+ <input type="radio" name="show_album_name_enable" id="show_album_name_enable_1" value="1" <?php if ($row->show_album_name) echo 'checked="checked"'; ?> /><label for="show_album_name_enable_1">Yes</label>
864
+ <input type="radio" name="show_album_name_enable" id="show_album_name_enable_0" value="0" <?php if (!$row->show_album_name) echo 'checked="checked"'; ?> /><label for="show_album_name_enable_0">No</label>
865
+ <div class="spider_description"></div>
866
+ </td>
867
+ </tr>
868
  <tr>
869
  <td class="spider_label_options">
870
  <label>Enable extended album description:</label>
1153
  <div class="spider_description"></div>
1154
  </td>
1155
  </tr>
1156
+ <tr id="tr_thumb_show_name">
1157
+ <td class="spider_label_options"><label>Show gallery name: </label></td>
1158
+ <td>
1159
+ <input type="radio" name="thumb_name" id="thumb_name_yes" value="1" <?php if ($row->showthumbs_name) echo 'checked="checked"'; ?> /><label for="thumb_name_yes">Yes</label>
1160
+ <input type="radio" name="thumb_name" id="thumb_name_no" value="0" <?php if (!$row->showthumbs_name) echo 'checked="checked"'; ?> /><label for="thumb_name_no">No</label>
1161
+ <div class="spider_description"></div>
1162
+ </td>
1163
+ </tr>
1164
  <tr>
1165
  <td class="spider_label_options"><label>Enable image pagination: </label></td>
1166
  <td>
filemanager/model.php CHANGED
@@ -177,6 +177,8 @@ class FilemanagerModel {
177
  $query_images = new WP_Query( $query_images_args );
178
 
179
  $files = array();
 
 
180
  foreach ($query_images->posts as $image) {
181
  $file_meta = wp_get_attachment_metadata($image->ID);
182
  if (isset($file_meta['file'])) {
@@ -189,7 +191,15 @@ class FilemanagerModel {
189
  $file['filename'] = substr($file_name, 0, strrpos($file_name, '.'));
190
  $file_type_array = explode('.', $file_name);
191
  $file['type'] = strtolower(end($file_type_array));
192
- $file['thumb'] = wp_get_attachment_thumb_url($image->ID);
 
 
 
 
 
 
 
 
193
  $file['icon'] = $file['thumb'];
194
  if (($valid_types[0] != '*') && (in_array($file['type'], $valid_types) == FALSE)) {
195
  continue;
@@ -198,8 +208,8 @@ class FilemanagerModel {
198
  if (!$file_size_kb) continue;
199
  $file['size'] = $file_size_kb . ' KB';
200
  $file['date_modified'] = date('d F Y, H:i', filemtime($parent_dir . '/' . $file_meta['file']));
201
- $image_info = getimagesize(htmlspecialchars_decode($parent_dir . '/' . $file_meta['file'], ENT_COMPAT | ENT_QUOTES));
202
- $file['resolution'] = $this->is_img($file['type']) ? $image_info[0] . ' x ' . $image_info[1] . ' px' : '';
203
  $files[] = $file;
204
  }
205
  }
177
  $query_images = new WP_Query( $query_images_args );
178
 
179
  $files = array();
180
+ $upload_dir = wp_upload_dir();
181
+
182
  foreach ($query_images->posts as $image) {
183
  $file_meta = wp_get_attachment_metadata($image->ID);
184
  if (isset($file_meta['file'])) {
191
  $file['filename'] = substr($file_name, 0, strrpos($file_name, '.'));
192
  $file_type_array = explode('.', $file_name);
193
  $file['type'] = strtolower(end($file_type_array));
194
+ // $file['thumb'] = wp_get_attachment_thumb_url($image->ID);
195
+ if ($file_meta['sizes']['thumbnail']['file']) {
196
+ $file_pos = strrpos($file_meta['file'], '/');
197
+ $sub_folder = substr($file_meta['file'], 0, $file_pos);
198
+ $file['thumb'] = $upload_dir['baseurl'] . '/' . $sub_folder . '/' . $file_meta['sizes']['thumbnail']['file'];
199
+ }
200
+ else {
201
+ $file['thumb'] = $upload_dir['baseurl'] . '/' . $file_meta['file'];
202
+ }
203
  $file['icon'] = $file['thumb'];
204
  if (($valid_types[0] != '*') && (in_array($file['type'], $valid_types) == FALSE)) {
205
  continue;
208
  if (!$file_size_kb) continue;
209
  $file['size'] = $file_size_kb . ' KB';
210
  $file['date_modified'] = date('d F Y, H:i', filemtime($parent_dir . '/' . $file_meta['file']));
211
+ // $image_info = getimagesize(htmlspecialchars_decode($parent_dir . '/' . $file_meta['file'], ENT_COMPAT | ENT_QUOTES));
212
+ $file['resolution'] = $this->is_img($file['type']) ? $file_meta['width'] . ' x ' . $file_meta['height'] . ' px' : '';
213
  $files[] = $file;
214
  }
215
  }
frontend/models/BWGModelAlbum_extended_preview.php CHANGED
@@ -117,6 +117,11 @@ class BWGModelAlbum_extended_preview {
117
  }
118
  return $page_nav;
119
  }
 
 
 
 
 
120
 
121
  ////////////////////////////////////////////////////////////////////////////////////////
122
  // Getters & Setters //
117
  }
118
  return $page_nav;
119
  }
120
+ public function get_options_row_data() {
121
+ global $wpdb;
122
+ $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_option WHERE id="%d"', 1));
123
+ return $row;
124
+ }
125
 
126
  ////////////////////////////////////////////////////////////////////////////////////////
127
  // Getters & Setters //
frontend/views/BWGViewAlbum_compact_preview.php CHANGED
@@ -80,8 +80,8 @@ class BWGViewAlbum_compact_preview {
80
  $type = (isset($_POST['type_' . $bwg]) ? esc_html($_POST['type_' . $bwg]) : (isset($params['type']) ? $params['type'] : 'album'));
81
  $bwg_search = ((isset($_POST['bwg_search_' . $bwg]) && esc_html($_POST['bwg_search_' . $bwg]) != '') ? esc_html($_POST['bwg_search_' . $bwg]) : '');
82
  $sort_direction = ' ' . $params['order_by'] . ' ';
 
83
  if ($from === "widget") {
84
- $options_row = $this->model->get_options_row_data();
85
  $params['album_id'] = $params['id'];
86
  $params['sort_by'] = $params['show'] == 'random' ? 'RAND()' : 'order';
87
  if ($params['show'] == 'last') {
@@ -133,7 +133,9 @@ class BWGViewAlbum_compact_preview {
133
  return;
134
  }
135
  $album_gallery_id = (isset($_POST['album_gallery_id_' . $bwg]) ? esc_html($_POST['album_gallery_id_' . $bwg]) : $params['album_id']);
136
- if (!$album_gallery_id || ($type == 'album' && !$this->model->get_album_row_data($album_gallery_id))) {
 
 
137
  echo WDWLibrary::message(__('There is no album selected or the album was deleted.', 'bwg'), 'error');
138
  return;
139
  }
@@ -508,6 +510,11 @@ class BWGViewAlbum_compact_preview {
508
  <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')"><?php echo __('Back', 'bwg'); ?></a>
509
  <?php
510
  }
 
 
 
 
 
511
  ?>
512
  <div id="<?php echo $album_gallery_div_id; ?>" class="<?php echo $album_gallery_div_class; ?>" >
513
  <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; ?>" />
@@ -562,7 +569,7 @@ class BWGViewAlbum_compact_preview {
562
  $thumb_top = ($params['compuct_album_thumb_height'] - $image_thumb_height) / 2;
563
  if ($type != 'gallery') {
564
  ?>
565
- <a style="font-size: 0;" <?php echo ($from !== "widget" ? "onclick=\"spider_frontend_ajax('gal_front_form_" . $bwg . "', '" . $bwg . "', 'bwg_album_compact_" . $bwg . "', '" . $album_galallery_row->alb_gal_id . "', '" . $album_gallery_id . "', '" . $def_type . "')\"" : "href='" . $permalink . "'") ?>>
566
  <span class="bwg_album_thumb_<?php echo $bwg; ?>">
567
  <?php
568
  if ($params['compuct_album_title'] == 'show' && $theme_row->album_compact_thumb_title_pos == 'top') {
80
  $type = (isset($_POST['type_' . $bwg]) ? esc_html($_POST['type_' . $bwg]) : (isset($params['type']) ? $params['type'] : 'album'));
81
  $bwg_search = ((isset($_POST['bwg_search_' . $bwg]) && esc_html($_POST['bwg_search_' . $bwg]) != '') ? esc_html($_POST['bwg_search_' . $bwg]) : '');
82
  $sort_direction = ' ' . $params['order_by'] . ' ';
83
+ $options_row = $this->model->get_options_row_data();
84
  if ($from === "widget") {
 
85
  $params['album_id'] = $params['id'];
86
  $params['sort_by'] = $params['show'] == 'random' ? 'RAND()' : 'order';
87
  if ($params['show'] == 'last') {
133
  return;
134
  }
135
  $album_gallery_id = (isset($_POST['album_gallery_id_' . $bwg]) ? esc_html($_POST['album_gallery_id_' . $bwg]) : $params['album_id']);
136
+ $album_row_data = $this->model->get_album_row_data($album_gallery_id);
137
+
138
+ if (!$album_gallery_id || ($type == 'album' && !$album_row_data)) {
139
  echo WDWLibrary::message(__('There is no album selected or the album was deleted.', 'bwg'), 'error');
140
  return;
141
  }
510
  <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')"><?php echo __('Back', 'bwg'); ?></a>
511
  <?php
512
  }
513
+ if ($options_row->show_album_name) {
514
+ ?>
515
+ <div class="bwg_back_<?php echo $bwg; ?>" ><?php echo isset($_POST['title_' . $bwg]) ? esc_html($_POST['title_' . $bwg]) : $album_row_data->name; ?></div>
516
+ <?php
517
+ }
518
  ?>
519
  <div id="<?php echo $album_gallery_div_id; ?>" class="<?php echo $album_gallery_div_class; ?>" >
520
  <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; ?>" />
569
  $thumb_top = ($params['compuct_album_thumb_height'] - $image_thumb_height) / 2;
570
  if ($type != 'gallery') {
571
  ?>
572
+ <a style="font-size: 0;" <?php echo ($from !== "widget" ? "onclick=\"spider_frontend_ajax('gal_front_form_" . $bwg . "', '" . $bwg . "', 'bwg_album_compact_" . $bwg . "', '" . $album_galallery_row->alb_gal_id . "', '" . $album_gallery_id . "', '" . $def_type . "', '', '" . $title . "')\"" : "href='" . $permalink . "'") ?>>
573
  <span class="bwg_album_thumb_<?php echo $bwg; ?>">
574
  <?php
575
  if ($params['compuct_album_title'] == 'show' && $theme_row->album_compact_thumb_title_pos == 'top') {
frontend/views/BWGViewAlbum_extended_preview.php CHANGED
@@ -27,6 +27,7 @@ class BWGViewAlbum_extended_preview {
27
  $current_url = $wp->query_string;
28
  global $WD_BWG_UPLOAD_DIR;
29
  require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
 
30
 
31
  if (!isset($params['extended_album_image_title'])) {
32
  $params['extended_album_image_title'] = 'none';
@@ -544,7 +545,7 @@ class BWGViewAlbum_extended_preview {
544
  ?>
545
  <div class="bwg_album_extended_div_<?php echo $bwg; ?>">
546
  <div class="bwg_album_extended_thumb_div_<?php echo $bwg; ?>">
547
- <a style="font-size: 0;" onclick="spider_frontend_ajax('gal_front_form_<?php echo $bwg; ?>', '<?php echo $bwg; ?>', 'bwg_album_extended_<?php echo $bwg; ?>', '<?php echo $album_galallery_row->alb_gal_id; ?>', '<?php echo $album_gallery_id; ?>', '<?php echo $def_type; ?>')">
548
  <span class="bwg_album_thumb_<?php echo $bwg; ?>" style="height:inherit;">
549
  <span class="bwg_album_thumb_spun1_<?php echo $bwg; ?>">
550
  <span class="bwg_album_thumb_spun2_<?php echo $bwg; ?>">
@@ -598,6 +599,11 @@ class BWGViewAlbum_extended_preview {
598
  }
599
  }
600
  elseif ($type == 'gallery') {
 
 
 
 
 
601
  if (!$page_nav['total']) {
602
  if ($bwg_search != '') {
603
  ?>
27
  $current_url = $wp->query_string;
28
  global $WD_BWG_UPLOAD_DIR;
29
  require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
30
+ $options_row = $this->model->get_options_row_data();
31
 
32
  if (!isset($params['extended_album_image_title'])) {
33
  $params['extended_album_image_title'] = 'none';
545
  ?>
546
  <div class="bwg_album_extended_div_<?php echo $bwg; ?>">
547
  <div class="bwg_album_extended_thumb_div_<?php echo $bwg; ?>">
548
+ <a style="font-size: 0;" onclick="spider_frontend_ajax('gal_front_form_<?php echo $bwg; ?>', '<?php echo $bwg; ?>', 'bwg_album_extended_<?php echo $bwg; ?>', '<?php echo $album_galallery_row->alb_gal_id; ?>', '<?php echo $album_gallery_id; ?>', '<?php echo $def_type; ?>', '', '<?php echo $title; ?>')">
549
  <span class="bwg_album_thumb_<?php echo $bwg; ?>" style="height:inherit;">
550
  <span class="bwg_album_thumb_spun1_<?php echo $bwg; ?>">
551
  <span class="bwg_album_thumb_spun2_<?php echo $bwg; ?>">
599
  }
600
  }
601
  elseif ($type == 'gallery') {
602
+ if ($options_row->show_album_name) {
603
+ ?>
604
+ <div class="bwg_back_<?php echo $bwg; ?>" ><?php echo isset($_POST['title_' . $bwg]) ? esc_html($_POST['title_' . $bwg]) : ''; ?></div>
605
+ <?php
606
+ }
607
  if (!$page_nav['total']) {
608
  if ($bwg_search != '') {
609
  ?>
frontend/views/BWGViewGalleryBox.php CHANGED
@@ -718,6 +718,17 @@ class BWGViewGalleryBox {
718
  color: #<?php echo $theme_row->lightbox_rate_color; ?>;
719
  display: none;
720
  font-size: <?php echo $theme_row->lightbox_rate_size - 2; ?>px;
 
 
 
 
 
 
 
 
 
 
 
721
  }
722
  </style>
723
  <script>
@@ -743,6 +754,7 @@ class BWGViewGalleryBox {
743
  }
744
  ?>
745
  data["<?php echo $key; ?>"] = [];
 
746
  data["<?php echo $key; ?>"]["id"] = "<?php echo $image_row->id; ?>";
747
  data["<?php echo $key; ?>"]["alt"] = "<?php echo $image_row->alt; ?>";
748
  data["<?php echo $key; ?>"]["description"] = "<?php echo str_replace(array("\r\n", "\n", "\r"), esc_html('<br />'), $image_row->description); ?>";
@@ -772,6 +784,16 @@ class BWGViewGalleryBox {
772
  ?>
773
  <div class="bwg_btn_container">
774
  <div class="bwg_ctrl_btn_container">
 
 
 
 
 
 
 
 
 
 
775
  <i title="<?php echo __('Play', 'bwg'); ?>" class="bwg_ctrl_btn bwg_play_pause fa fa-play"></i>
776
  <?php if ($enable_image_fullscreen) {
777
  if (!$open_with_fullscreen) {
@@ -1083,6 +1105,7 @@ class BWGViewGalleryBox {
1083
  /* Set active thumbnail.*/
1084
  jQuery(".bwg_filmstrip_thumbnail").removeClass("bwg_thumb_active").addClass("bwg_thumb_deactive");
1085
  jQuery("#bwg_filmstrip_thumbnail_" + bwg_current_key).removeClass("bwg_thumb_deactive").addClass("bwg_thumb_active");
 
1086
  }
1087
  function bwg_fade(current_image_class, next_image_class, direction) {
1088
  /* Set active thumbnail.*/
@@ -1279,6 +1302,7 @@ class BWGViewGalleryBox {
1279
  else if (key == (data.length - 1)) {
1280
  jQuery("#spider_popup_right").hover().css({"display": "none"});
1281
  }
 
1282
  /* Set filmstrip initial position.*/
1283
  jQuery(".bwg_watermark").css({display: 'none'});
1284
  /* Set active thumbnail position.*/
718
  color: #<?php echo $theme_row->lightbox_rate_color; ?>;
719
  display: none;
720
  font-size: <?php echo $theme_row->lightbox_rate_size - 2; ?>px;
721
+ }
722
+ @media (max-width: 480px) {
723
+ .bwg_image_count_container {
724
+ display: none;
725
+ }
726
+ }
727
+ .bwg_image_count_container {
728
+ left: 0;
729
+ line-height: 1;
730
+ position: absolute;
731
+ vertical-align: middle;
732
  }
733
  </style>
734
  <script>
754
  }
755
  ?>
756
  data["<?php echo $key; ?>"] = [];
757
+ data["<?php echo $key; ?>"]["number"] = <?php echo $key + 1; ?>;
758
  data["<?php echo $key; ?>"]["id"] = "<?php echo $image_row->id; ?>";
759
  data["<?php echo $key; ?>"]["alt"] = "<?php echo $image_row->alt; ?>";
760
  data["<?php echo $key; ?>"]["description"] = "<?php echo str_replace(array("\r\n", "\n", "\r"), esc_html('<br />'), $image_row->description); ?>";
784
  ?>
785
  <div class="bwg_btn_container">
786
  <div class="bwg_ctrl_btn_container">
787
+ <?php
788
+ if ($option_row->show_image_counts) {
789
+ ?>
790
+ <span class="bwg_image_count_container bwg_ctrl_btn">
791
+ <span class="bwg_image_count"><?php echo $current_image_key + 1; ?></span> /
792
+ <span><?php echo count($image_rows); ?></span>
793
+ </span>
794
+ <?php
795
+ }
796
+ ?>
797
  <i title="<?php echo __('Play', 'bwg'); ?>" class="bwg_ctrl_btn bwg_play_pause fa fa-play"></i>
798
  <?php if ($enable_image_fullscreen) {
799
  if (!$open_with_fullscreen) {
1105
  /* Set active thumbnail.*/
1106
  jQuery(".bwg_filmstrip_thumbnail").removeClass("bwg_thumb_active").addClass("bwg_thumb_deactive");
1107
  jQuery("#bwg_filmstrip_thumbnail_" + bwg_current_key).removeClass("bwg_thumb_deactive").addClass("bwg_thumb_active");
1108
+ bwg_change_watermark_container();
1109
  }
1110
  function bwg_fade(current_image_class, next_image_class, direction) {
1111
  /* Set active thumbnail.*/
1302
  else if (key == (data.length - 1)) {
1303
  jQuery("#spider_popup_right").hover().css({"display": "none"});
1304
  }
1305
+ jQuery(".bwg_image_count").html(data[key]["number"]);
1306
  /* Set filmstrip initial position.*/
1307
  jQuery(".bwg_watermark").css({display: 'none'});
1308
  /* Set active thumbnail position.*/
frontend/views/BWGViewSlideshow.php CHANGED
@@ -955,10 +955,12 @@ class BWGViewSlideshow {
955
  jQuery(next_image_class).css({'opacity' : 1, filter: 'Alpha(opacity=100)', 'z-index' : 2});
956
  bwg_change_watermark_container_<?php echo $bwg; ?>();
957
  bwg_trans_in_progress_<?php echo $bwg; ?> = false;
958
- if (typeof event_stack_<?php echo $bwg; ?> !== 'undefined' && event_stack_<?php echo $bwg; ?>.length > 0) {
959
- key = event_stack_<?php echo $bwg; ?>[0].split("-");
960
- event_stack_<?php echo $bwg; ?>.shift();
961
- bwg_change_image_<?php echo $bwg; ?>(key[0], key[1], data_<?php echo $bwg; ?>, true);
 
 
962
  }
963
  }
964
  }
@@ -1134,10 +1136,12 @@ class BWGViewSlideshow {
1134
  bwg_change_watermark_container_<?php echo $bwg; ?>();
1135
  grid.remove();
1136
  bwg_trans_in_progress_<?php echo $bwg; ?> = false;
1137
- if (typeof event_stack_<?php echo $bwg; ?> !== 'undefined' && event_stack_<?php echo $bwg; ?>.length > 0) {
1138
- key = event_stack_<?php echo $bwg; ?>[0].split("-");
1139
- event_stack_<?php echo $bwg; ?>.shift();
1140
- bwg_change_image_<?php echo $bwg; ?>(key[0], key[1], data_<?php echo $bwg; ?>, true);
 
 
1141
  }
1142
  }
1143
  }
@@ -1292,17 +1296,21 @@ class BWGViewSlideshow {
1292
  <?php
1293
  }
1294
  ?>
1295
- if (typeof jQuery().swiperight !== 'undefined' && jQuery.isFunction(jQuery().swiperight)) {
1296
- jQuery('#bwg_container1_<?php echo $bwg; ?>').swiperight(function () {
1297
- bwg_change_image_<?php echo $bwg; ?>(parseInt(jQuery('#bwg_current_image_key_<?php echo $bwg; ?>').val()), (parseInt(jQuery('#bwg_current_image_key_<?php echo $bwg; ?>').val()) - iterator_<?php echo $bwg; ?>()) >= 0 ? (parseInt(jQuery('#bwg_current_image_key_<?php echo $bwg; ?>').val()) - iterator_<?php echo $bwg; ?>()) % data_<?php echo $bwg; ?>.length : data_<?php echo $bwg; ?>.length - 1, data_<?php echo $bwg; ?>);
1298
- return false;
1299
- });
 
 
1300
  }
1301
- if (typeof jQuery().swipeleft !== 'undefined' && jQuery.isFunction(jQuery().swipeleft)) {
1302
- jQuery('#bwg_container1_<?php echo $bwg; ?>').swipeleft(function () {
1303
- bwg_change_image_<?php echo $bwg; ?>(parseInt(jQuery('#bwg_current_image_key_<?php echo $bwg; ?>').val()), (parseInt(jQuery('#bwg_current_image_key_<?php echo $bwg; ?>').val()) + iterator_<?php echo $bwg; ?>()) % data_<?php echo $bwg; ?>.length, data_<?php echo $bwg; ?>);
1304
- return false;
1305
- });
 
 
1306
  }
1307
 
1308
  var isMobile = (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));
955
  jQuery(next_image_class).css({'opacity' : 1, filter: 'Alpha(opacity=100)', 'z-index' : 2});
956
  bwg_change_watermark_container_<?php echo $bwg; ?>();
957
  bwg_trans_in_progress_<?php echo $bwg; ?> = false;
958
+ if (typeof event_stack_<?php echo $bwg; ?> !== 'undefined') {
959
+ if (event_stack_<?php echo $bwg; ?>.length > 0) {
960
+ key = event_stack_<?php echo $bwg; ?>[0].split("-");
961
+ event_stack_<?php echo $bwg; ?>.shift();
962
+ bwg_change_image_<?php echo $bwg; ?>(key[0], key[1], data_<?php echo $bwg; ?>, true);
963
+ }
964
  }
965
  }
966
  }
1136
  bwg_change_watermark_container_<?php echo $bwg; ?>();
1137
  grid.remove();
1138
  bwg_trans_in_progress_<?php echo $bwg; ?> = false;
1139
+ if (typeof event_stack_<?php echo $bwg; ?> !== 'undefined') {
1140
+ if (event_stack_<?php echo $bwg; ?>.length > 0) {
1141
+ key = event_stack_<?php echo $bwg; ?>[0].split("-");
1142
+ event_stack_<?php echo $bwg; ?>.shift();
1143
+ bwg_change_image_<?php echo $bwg; ?>(key[0], key[1], data_<?php echo $bwg; ?>, true);
1144
+ }
1145
  }
1146
  }
1147
  }
1296
  <?php
1297
  }
1298
  ?>
1299
+ if (typeof jQuery().swiperight !== 'undefined') {
1300
+ if (jQuery.isFunction(jQuery().swiperight)) {
1301
+ jQuery('#bwg_container1_<?php echo $bwg; ?>').swiperight(function () {
1302
+ bwg_change_image_<?php echo $bwg; ?>(parseInt(jQuery('#bwg_current_image_key_<?php echo $bwg; ?>').val()), (parseInt(jQuery('#bwg_current_image_key_<?php echo $bwg; ?>').val()) - iterator_<?php echo $bwg; ?>()) >= 0 ? (parseInt(jQuery('#bwg_current_image_key_<?php echo $bwg; ?>').val()) - iterator_<?php echo $bwg; ?>()) % data_<?php echo $bwg; ?>.length : data_<?php echo $bwg; ?>.length - 1, data_<?php echo $bwg; ?>);
1303
+ return false;
1304
+ });
1305
+ }
1306
  }
1307
+ if (typeof jQuery().swipeleft !== 'undefined') {
1308
+ if (jQuery.isFunction(jQuery().swipeleft)) {
1309
+ jQuery('#bwg_container1_<?php echo $bwg; ?>').swipeleft(function () {
1310
+ bwg_change_image_<?php echo $bwg; ?>(parseInt(jQuery('#bwg_current_image_key_<?php echo $bwg; ?>').val()), (parseInt(jQuery('#bwg_current_image_key_<?php echo $bwg; ?>').val()) + iterator_<?php echo $bwg; ?>()) % data_<?php echo $bwg; ?>.length, data_<?php echo $bwg; ?>);
1311
+ return false;
1312
+ });
1313
+ }
1314
  }
1315
 
1316
  var isMobile = (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));
frontend/views/BWGViewThumbnails.php CHANGED
@@ -72,8 +72,8 @@ class BWGViewThumbnails {
72
  }
73
  $from = (isset($params['from']) ? esc_html($params['from']) : 0);
74
  $sort_direction = ' ' . $params['order_by'] . ' ';
 
75
  if ($from) {
76
- $options_row = $this->model->get_options_row_data();
77
  $params['gallery_id'] = $params['id'];
78
  $params['images_per_page'] = $params['count'];
79
  $params['sort_by'] = (($params['show'] == 'random') ? 'RAND()' : 'order');
@@ -311,6 +311,17 @@ class BWGViewThumbnails {
311
  box-shadow: <?php echo $theme_row->page_nav_box_shadow; ?>;
312
  <?php echo ($theme_row->page_nav_button_transition ) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
313
  }
 
 
 
 
 
 
 
 
 
 
 
314
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_popup_overlay_<?php echo $bwg; ?> {
315
  background-color: #<?php echo $theme_row->lightbox_overlay_bg_color; ?>;
316
  opacity: <?php echo $theme_row->lightbox_overlay_bg_transparent / 100; ?>;
@@ -325,6 +336,7 @@ class BWGViewThumbnails {
325
  WDWLibrary::ajax_html_frontend_search_box('gal_front_form_' . $bwg, $bwg, 'bwg_standart_thumbnails_' . $bwg, $images_count, $params['search_box_width']);
326
  }
327
  ?>
 
328
  <div style="background-color:rgba(0, 0, 0, 0); text-align: <?php echo $theme_row->thumb_align; ?>; width:100%; position: relative;">
329
  <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;">
330
  <div style="display: table; vertical-align: middle; width: 100%; height: 100%; background-color: #FFFFFF; opacity: 0.7; filter: Alpha(opacity=70);">
72
  }
73
  $from = (isset($params['from']) ? esc_html($params['from']) : 0);
74
  $sort_direction = ' ' . $params['order_by'] . ' ';
75
+ $options_row = $this->model->get_options_row_data();
76
  if ($from) {
 
77
  $params['gallery_id'] = $params['id'];
78
  $params['images_per_page'] = $params['count'];
79
  $params['sort_by'] = (($params['show'] == 'random') ? 'RAND()' : 'order');
311
  box-shadow: <?php echo $theme_row->page_nav_box_shadow; ?>;
312
  <?php echo ($theme_row->page_nav_button_transition ) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
313
  }
314
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_back_<?php echo $bwg; ?> {
315
+ background-color: rgba(0, 0, 0, 0);
316
+ color: #<?php echo $theme_row->album_compact_back_font_color; ?> !important;
317
+ cursor: pointer;
318
+ display: block;
319
+ font-family: <?php echo $theme_row->album_compact_back_font_style; ?>;
320
+ font-size: <?php echo $theme_row->album_compact_back_font_size; ?>px;
321
+ font-weight: <?php echo $theme_row->album_compact_back_font_weight; ?>;
322
+ text-decoration: none;
323
+ padding: <?php echo $theme_row->album_compact_back_padding; ?>;
324
+ }
325
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_popup_overlay_<?php echo $bwg; ?> {
326
  background-color: #<?php echo $theme_row->lightbox_overlay_bg_color; ?>;
327
  opacity: <?php echo $theme_row->lightbox_overlay_bg_transparent / 100; ?>;
336
  WDWLibrary::ajax_html_frontend_search_box('gal_front_form_' . $bwg, $bwg, 'bwg_standart_thumbnails_' . $bwg, $images_count, $params['search_box_width']);
337
  }
338
  ?>
339
+ <div class="bwg_back_<?php echo $bwg; ?>"><?php echo $options_row->showthumbs_name ? $gallery_row->name : ''; ?></div>
340
  <div style="background-color:rgba(0, 0, 0, 0); text-align: <?php echo $theme_row->thumb_align; ?>; width:100%; position: relative;">
341
  <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;">
342
  <div style="display: table; vertical-align: middle; width: 100%; height: 100%; background-color: #FFFFFF; opacity: 0.7; filter: Alpha(opacity=70);">
js/bwg.js CHANGED
@@ -913,7 +913,7 @@ function bwg_change_theme_type(type) {
913
  }
914
 
915
  function bwg_get_video_host(url) {
916
- if ((/youtu\.be/i).test(url) || (/youtube\.com\/watch/i).test(url)) {
917
  return 'YOUTUBE';
918
  }
919
  if ((/vimeo\.com/i).test(url)) {
@@ -924,21 +924,50 @@ function bwg_get_video_host(url) {
924
  }
925
 
926
  function bwg_get_youtube_video_id(url) {
927
- pattern = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/;
928
- var matches = url.match(pattern);
929
- if (matches && (matches[7]).length == 11) {
930
- return matches[7];
931
- }
932
- return '';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
933
  }
934
 
935
  function bwg_get_vimeo_video_id(url) {
936
- pattern = /\/\/(www\.)?vimeo.com\/(\d+)($|\/)/;
937
- var matches = url.match(pattern);
938
- if (matches) {
939
- return matches[2];
940
- }
941
- return '';
 
 
 
 
 
 
942
  }
943
 
944
  function bwg_get_video_info(input_id) {
913
  }
914
 
915
  function bwg_get_video_host(url) {
916
+ if ((/youtu\.be/i).test(url) || (/youtube\.com\/watch/i).test(url) || (/youtube\.com\/.*/i).test(url)) {
917
  return 'YOUTUBE';
918
  }
919
  if ((/vimeo\.com/i).test(url)) {
924
  }
925
 
926
  function bwg_get_youtube_video_id(url) {
927
+ // pattern = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/;
928
+ // var matches = url.match(pattern);
929
+ // if (matches && (matches[7]).length == 11) {
930
+ // return matches[7];
931
+ // }
932
+ // return '';
933
+ var video_id;
934
+ var url_parts = url.split('v=');
935
+ if (url_parts.length <= 1) {
936
+ url_parts = url.split('/v/');
937
+ if (url_parts.length <= 1) {
938
+ url_parts = url_parts[url_parts.length - 1].split('/');
939
+ if (url_parts.length <= 1) {
940
+ url_parts = url_parts[0].split('?');
941
+ }
942
+ }
943
+ url_parts = url_parts[url_parts.length - 1].split('&');
944
+ if (url_parts.length <= 1) {
945
+ url_parts = url_parts[url_parts.length - 1].split('?');
946
+ }
947
+ }
948
+ else {
949
+ url_parts = url_parts[url_parts.length - 1].split('&');
950
+ if (url_parts.length <= 1) {
951
+ url_parts = url_parts[url_parts.length - 1].split('#');
952
+ }
953
+ }
954
+ video_id = url_parts[0].split('?')[0];
955
+ return video_id ? video_id : false;
956
  }
957
 
958
  function bwg_get_vimeo_video_id(url) {
959
+ // pattern = /\/\/(www\.)?vimeo.com\/(\d+)($|\/)/;
960
+ // var matches = url.match(pattern);
961
+ // if (matches) {
962
+ // return matches[2];
963
+ // }
964
+ // return '';
965
+ var url_parts
966
+ var video_id;
967
+ url_parts = url.split('/');
968
+ url_parts = url_parts[url_parts.length - 1].split('?');
969
+ video_id = url_parts[0];
970
+ return video_id ? video_id : false;
971
  }
972
 
973
  function bwg_get_video_info(input_id) {
js/bwg_frontend.js CHANGED
@@ -1,4 +1,4 @@
1
- function spider_frontend_ajax(form_id, current_view, id, album_gallery_id, cur_album_id, type, srch_btn) {
2
  var page_number = jQuery("#page_number_" + current_view).val();
3
  var bwg_previous_album_ids = jQuery('#bwg_previous_album_id_' + current_view).val();
4
  var bwg_previous_album_page_numbers = jQuery('#bwg_previous_album_page_number_' + current_view).val();
@@ -21,11 +21,15 @@ function spider_frontend_ajax(form_id, current_view, id, album_gallery_id, cur_a
21
  if (srch_btn) { // Start search.
22
  page_number = 1;
23
  }
 
 
 
24
  post_data["page_number_" + current_view] = page_number;
25
  post_data["album_gallery_id_" + current_view] = album_gallery_id;
26
  post_data["bwg_previous_album_id_" + current_view] = jQuery('#bwg_previous_album_id_' + current_view).val();
27
  post_data["bwg_previous_album_page_number_" + current_view] = jQuery('#bwg_previous_album_page_number_' + current_view).val();
28
  post_data["type_" + current_view] = type;
 
29
  if (jQuery("#bwg_search_input_" + current_view).length > 0) { // Search box exists.
30
  post_data["bwg_search_" + current_view] = jQuery("#bwg_search_input_" + current_view).val();
31
  }
1
+ function spider_frontend_ajax(form_id, current_view, id, album_gallery_id, cur_album_id, type, srch_btn, title) {
2
  var page_number = jQuery("#page_number_" + current_view).val();
3
  var bwg_previous_album_ids = jQuery('#bwg_previous_album_id_' + current_view).val();
4
  var bwg_previous_album_page_numbers = jQuery('#bwg_previous_album_page_number_' + current_view).val();
21
  if (srch_btn) { // Start search.
22
  page_number = 1;
23
  }
24
+ if (typeof title == "undefined") {
25
+ var title = "";
26
+ }
27
  post_data["page_number_" + current_view] = page_number;
28
  post_data["album_gallery_id_" + current_view] = album_gallery_id;
29
  post_data["bwg_previous_album_id_" + current_view] = jQuery('#bwg_previous_album_id_' + current_view).val();
30
  post_data["bwg_previous_album_page_number_" + current_view] = jQuery('#bwg_previous_album_page_number_' + current_view).val();
31
  post_data["type_" + current_view] = type;
32
+ post_data["title_" + current_view] = title;
33
  if (jQuery("#bwg_search_input_" + current_view).length > 0) { // Search box exists.
34
  post_data["bwg_search_" + current_view] = jQuery("#bwg_search_input_" + current_view).val();
35
  }
languages/bwg-de_DE.mo CHANGED
Binary file
languages/bwg-de_DE.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: bwg\n"
4
- "POT-Creation-Date: 2014-06-23 10:48+0400\n"
5
- "PO-Revision-Date: 2014-06-23 10:50+0400\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: de\n"
@@ -16,24 +16,24 @@ msgstr ""
16
  "X-Poedit-SearchPath-0: C:\\wamp\\www\\wordpress3.5\\wp-content\\plugins"
17
  "\\photo-gallery\n"
18
 
19
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/photo-gallery.php:2821
20
  msgid "field is required."
21
  msgstr "Feld ist erforderlich."
22
 
23
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/photo-gallery.php:2822
24
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1116
25
  msgid "This is not a valid email address."
26
  msgstr "Dies ist keine gültige E-Mail-Adresse."
27
 
28
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/photo-gallery.php:2823
29
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_compact_preview.php:726
30
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_extended_preview.php:715
31
  msgid "There are no images matching your search."
32
  msgstr "Es gibt keine Bilder, die Ihren Such."
33
 
34
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/framework/WDWLibrary.php:478
35
  msgid " item(s)"
36
- msgstr "Artikel(s)"
37
 
38
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/framework/WDWLibrary.php:483
39
  msgid "First"
@@ -41,7 +41,7 @@ msgstr "Erste"
41
 
42
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/framework/WDWLibrary.php:484
43
  msgid "Previous"
44
- msgstr "Vorherige"
45
 
46
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/framework/WDWLibrary.php:485
47
  msgid "Next"
@@ -49,7 +49,7 @@ msgstr "Weiter"
49
 
50
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/framework/WDWLibrary.php:486
51
  msgid "Last"
52
- msgstr "Laden"
53
 
54
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/framework/WDWLibrary.php:512
55
  msgid "Go to the first page"
@@ -71,16 +71,16 @@ msgstr "Gehen Sie auf der nächsten Seite"
71
  msgid "Go to the last page"
72
  msgstr "Gehen Sie auf der letzten Seite"
73
 
74
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/framework/WDWLibrary.php:604
75
  msgid "Reset"
76
  msgstr "Zurücksetzen"
77
 
78
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/framework/WDWLibrary.php:607
79
  msgid "Search"
80
  msgstr "Suchen"
81
 
82
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_compact_preview.php:132
83
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_extended_preview.php:82
84
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewBlog_style.php:32
85
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewImage_browser.php:68
86
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewSlideshow.php:42
@@ -90,15 +90,15 @@ msgstr "Suchen"
90
  msgid "There is no theme selected or the theme was deleted."
91
  msgstr "Es gibt kein Thema ausgewählt oder das Thema gelöscht wurde"
92
 
93
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_compact_preview.php:137
94
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_compact_preview.php:157
95
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_extended_preview.php:89
96
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_extended_preview.php:109
97
  msgid "There is no album selected or the album was deleted."
98
  msgstr "Es gibt kein Album ausgewählt oder das Album gelöscht wurd"
99
 
100
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_compact_preview.php:146
101
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_extended_preview.php:98
102
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewBlog_style.php:79
103
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewImage_browser.php:79
104
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewSlideshow.php:163
@@ -107,27 +107,27 @@ msgstr "Es gibt kein Album ausgewählt oder das Album gelöscht wurd"
107
  msgid "There are no images in this gallery."
108
  msgstr "Es sind keine Bilder in dieser Galerie"
109
 
110
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_compact_preview.php:619
111
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_extended_preview.php:599
112
  msgid "Back"
113
  msgstr "Zurück"
114
 
115
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_compact_preview.php:630
116
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_extended_preview.php:610
117
  msgid "Album is empty."
118
  msgstr "Album ist leer"
119
 
120
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_compact_preview.php:731
121
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_extended_preview.php:720
122
  msgid "Gallery is empty."
123
  msgstr "Galerie ist leer"
124
 
125
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_extended_preview.php:690
126
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_extended_preview.php:798
127
  msgid "More"
128
  msgstr "Mehr"
129
 
130
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_extended_preview.php:793
131
  msgid "Hide"
132
  msgstr "Ausblenden"
133
 
@@ -140,177 +140,177 @@ msgid "There is no gallery selected or the gallery was deleted."
140
  msgstr "Es gibt keine Galerie ausgewählt oder die Galerie gelöscht wurde"
141
 
142
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewBlog_style.php:493
143
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:831
144
  msgid "Show comments"
145
  msgstr "Kommentare anzeigen"
146
 
147
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewBlog_style.php:499
148
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewBlog_style.php:500
149
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:839
150
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:840
151
  msgid "Share on Facebook"
152
  msgstr "Teilen auf Facebook"
153
 
154
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewBlog_style.php:506
155
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewBlog_style.php:507
156
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:846
157
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:847
158
  msgid "Share on Twitter"
159
  msgstr "Teilen Sie auf Twitter"
160
 
161
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewBlog_style.php:513
162
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewBlog_style.php:514
163
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:853
164
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:854
165
  msgid "Share on Google+"
166
  msgstr "Teilen auf Google+ "
167
 
168
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewBlog_style.php:520
169
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewBlog_style.php:521
170
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:860
171
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:861
172
  msgid "Share on Pinterest"
173
  msgstr "Share on Pinterest"
174
 
175
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewBlog_style.php:527
176
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewBlog_style.php:528
177
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:867
178
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:868
179
  msgid "Share on Tumblr"
180
  msgstr "Share on Tumblr"
181
 
182
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:809
183
  msgid "The image has been deleted."
184
  msgstr "Das Bild wurde gelöscht. "
185
 
186
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:819
187
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:2489
188
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewSlideshow.php:1556
189
  msgid "Play"
190
  msgstr "Spielen"
191
 
192
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:823
193
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:2325
194
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:2422
195
  msgid "Maximize"
196
  msgstr "Maximieren"
197
 
198
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:827
199
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:2424
200
  msgid "Fullscreen"
201
  msgstr "Vollbild"
202
 
203
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:829
204
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:2165
205
  msgid "Show info"
206
  msgstr "Info anzeigen"
207
 
208
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:833
209
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:2176
210
  msgid "Show rating"
211
  msgstr "Zeigen Bewertung"
212
 
213
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:875
214
  msgid "Open image in original size."
215
  msgstr "Bild in Originalgröße. "
216
 
217
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:882
218
  msgid "Download original image"
219
  msgstr "Originalbild"
220
 
221
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:975
222
  msgid "Hits: "
223
  msgstr "Treffer: "
224
 
225
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:986
226
  msgid "Rated."
227
  msgstr "Nenn."
228
 
229
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:990
230
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1003
231
  msgid "Not rated yet."
232
  msgstr "Noch nicht bewertet. "
233
 
234
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:992
235
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1025
236
  msgid "Votes: "
237
  msgstr "Stimmen: "
238
 
239
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1023
240
  msgid "Cancel your rating."
241
  msgstr "Abbrechen Ihre Bewertung. "
242
 
243
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1025
244
  msgid "You have already rated."
245
  msgstr "Sie haben schon bewertet. "
246
 
247
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1109
248
  msgid "Error. Incorrect Verification Code."
249
  msgstr "Fehler. Falsche Verifikations-Code. "
250
 
251
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1124
252
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:2012
253
  msgid "Hide Comments"
254
  msgstr "Kommentare ausblenden "
255
 
256
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1128
257
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1156
258
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1163
259
  msgid "Name"
260
  msgstr "Zu nennen"
261
 
262
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1134
263
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1156
264
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1163
265
  msgid "Email"
266
  msgstr "E-Mail "
267
 
268
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1141
269
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1156
270
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1163
271
  msgid "Comment"
272
  msgstr "Kommentar"
273
 
274
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1146
275
  msgid "Verification Code"
276
  msgstr "Bestätigungs-Code"
277
 
278
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1169
279
  msgid "Submit"
280
  msgstr "Senden"
281
 
282
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1170
283
  msgid "Your comment is awaiting moderation"
284
  msgstr "Ihr Kommentar wartet auf Moderation "
285
 
286
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1199
287
  msgid "Delete Comment"
288
  msgstr "Kommentar löschen"
289
 
290
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1969
291
  msgid "Show Comments"
292
  msgstr "Anmerkungen anzeigen "
293
 
294
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:2161
295
  msgid "Hide info"
296
  msgstr "Ausblenden"
297
 
298
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:2172
299
  msgid "Hide rating"
300
  msgstr "Bewertung ausblenden"
301
 
302
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:2360
303
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:2554
304
  msgid "Restore"
305
  msgstr "Wiederherstellen"
306
 
307
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:2470
308
  msgid "Exit Fullscreen"
309
  msgstr "Verlassen Sie Vollbild "
310
 
311
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:2483
312
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:2498
313
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewSlideshow.php:1547
314
- #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewSlideshow.php:1565
315
  msgid "Pause"
316
  msgstr "Pause"
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: bwg\n"
4
+ "POT-Creation-Date: 2014-08-29 15:30+0400\n"
5
+ "PO-Revision-Date: 2014-08-29 15:39+0400\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: de\n"
16
  "X-Poedit-SearchPath-0: C:\\wamp\\www\\wordpress3.5\\wp-content\\plugins"
17
  "\\photo-gallery\n"
18
 
19
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/photo-gallery.php:2834
20
  msgid "field is required."
21
  msgstr "Feld ist erforderlich."
22
 
23
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/photo-gallery.php:2835
24
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1135
25
  msgid "This is not a valid email address."
26
  msgstr "Dies ist keine gültige E-Mail-Adresse."
27
 
28
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/photo-gallery.php:2836
29
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_compact_preview.php:732
30
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_extended_preview.php:721
31
  msgid "There are no images matching your search."
32
  msgstr "Es gibt keine Bilder, die Ihren Such."
33
 
34
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/framework/WDWLibrary.php:478
35
  msgid " item(s)"
36
+ msgstr " Foto(s)"
37
 
38
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/framework/WDWLibrary.php:483
39
  msgid "First"
41
 
42
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/framework/WDWLibrary.php:484
43
  msgid "Previous"
44
+ msgstr "Zurück"
45
 
46
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/framework/WDWLibrary.php:485
47
  msgid "Next"
49
 
50
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/framework/WDWLibrary.php:486
51
  msgid "Last"
52
+ msgstr "Letzte"
53
 
54
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/framework/WDWLibrary.php:512
55
  msgid "Go to the first page"
71
  msgid "Go to the last page"
72
  msgstr "Gehen Sie auf der letzten Seite"
73
 
74
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/framework/WDWLibrary.php:605
75
  msgid "Reset"
76
  msgstr "Zurücksetzen"
77
 
78
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/framework/WDWLibrary.php:608
79
  msgid "Search"
80
  msgstr "Suchen"
81
 
82
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_compact_preview.php:132
83
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_extended_preview.php:83
84
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewBlog_style.php:32
85
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewImage_browser.php:68
86
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewSlideshow.php:42
90
  msgid "There is no theme selected or the theme was deleted."
91
  msgstr "Es gibt kein Thema ausgewählt oder das Thema gelöscht wurde"
92
 
93
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_compact_preview.php:139
94
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_compact_preview.php:159
95
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_extended_preview.php:90
96
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_extended_preview.php:110
97
  msgid "There is no album selected or the album was deleted."
98
  msgstr "Es gibt kein Album ausgewählt oder das Album gelöscht wurd"
99
 
100
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_compact_preview.php:148
101
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_extended_preview.php:99
102
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewBlog_style.php:79
103
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewImage_browser.php:79
104
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewSlideshow.php:163
107
  msgid "There are no images in this gallery."
108
  msgstr "Es sind keine Bilder in dieser Galerie"
109
 
110
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_compact_preview.php:620
111
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_extended_preview.php:600
112
  msgid "Back"
113
  msgstr "Zurück"
114
 
115
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_compact_preview.php:636
116
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_extended_preview.php:611
117
  msgid "Album is empty."
118
  msgstr "Album ist leer"
119
 
120
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_compact_preview.php:737
121
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_extended_preview.php:726
122
  msgid "Gallery is empty."
123
  msgstr "Galerie ist leer"
124
 
125
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_extended_preview.php:691
126
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_extended_preview.php:803
127
  msgid "More"
128
  msgstr "Mehr"
129
 
130
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewAlbum_extended_preview.php:798
131
  msgid "Hide"
132
  msgstr "Ausblenden"
133
 
140
  msgstr "Es gibt keine Galerie ausgewählt oder die Galerie gelöscht wurde"
141
 
142
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewBlog_style.php:493
143
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:849
144
  msgid "Show comments"
145
  msgstr "Kommentare anzeigen"
146
 
147
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewBlog_style.php:499
148
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewBlog_style.php:500
149
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:857
150
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:858
151
  msgid "Share on Facebook"
152
  msgstr "Teilen auf Facebook"
153
 
154
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewBlog_style.php:506
155
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewBlog_style.php:507
156
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:864
157
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:865
158
  msgid "Share on Twitter"
159
  msgstr "Teilen Sie auf Twitter"
160
 
161
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewBlog_style.php:513
162
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewBlog_style.php:514
163
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:871
164
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:872
165
  msgid "Share on Google+"
166
  msgstr "Teilen auf Google+ "
167
 
168
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewBlog_style.php:520
169
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewBlog_style.php:521
170
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:878
171
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:879
172
  msgid "Share on Pinterest"
173
  msgstr "Share on Pinterest"
174
 
175
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewBlog_style.php:527
176
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewBlog_style.php:528
177
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:885
178
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:886
179
  msgid "Share on Tumblr"
180
  msgstr "Share on Tumblr"
181
 
182
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:817
183
  msgid "The image has been deleted."
184
  msgstr "Das Bild wurde gelöscht. "
185
 
186
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:837
187
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:2511
188
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewSlideshow.php:1564
189
  msgid "Play"
190
  msgstr "Spielen"
191
 
192
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:841
193
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:2347
194
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:2444
195
  msgid "Maximize"
196
  msgstr "Maximieren"
197
 
198
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:845
199
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:2446
200
  msgid "Fullscreen"
201
  msgstr "Vollbild"
202
 
203
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:847
204
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:2187
205
  msgid "Show info"
206
  msgstr "Info anzeigen"
207
 
208
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:851
209
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:2198
210
  msgid "Show rating"
211
  msgstr "Zeigen Bewertung"
212
 
213
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:893
214
  msgid "Open image in original size."
215
  msgstr "Bild in Originalgröße. "
216
 
217
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:901
218
  msgid "Download original image"
219
  msgstr "Originalbild"
220
 
221
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:994
222
  msgid "Hits: "
223
  msgstr "Treffer: "
224
 
225
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1005
226
  msgid "Rated."
227
  msgstr "Nenn."
228
 
229
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1009
230
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1022
231
  msgid "Not rated yet."
232
  msgstr "Noch nicht bewertet. "
233
 
234
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1011
235
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1044
236
  msgid "Votes: "
237
  msgstr "Stimmen: "
238
 
239
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1042
240
  msgid "Cancel your rating."
241
  msgstr "Abbrechen Ihre Bewertung. "
242
 
243
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1044
244
  msgid "You have already rated."
245
  msgstr "Sie haben schon bewertet. "
246
 
247
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1128
248
  msgid "Error. Incorrect Verification Code."
249
  msgstr "Fehler. Falsche Verifikations-Code. "
250
 
251
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1143
252
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:2034
253
  msgid "Hide Comments"
254
  msgstr "Kommentare ausblenden "
255
 
256
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1147
257
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1175
258
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1182
259
  msgid "Name"
260
  msgstr "Zu nennen"
261
 
262
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1153
263
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1175
264
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1182
265
  msgid "Email"
266
  msgstr "E-Mail "
267
 
268
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1160
269
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1175
270
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1182
271
  msgid "Comment"
272
  msgstr "Kommentar"
273
 
274
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1165
275
  msgid "Verification Code"
276
  msgstr "Bestätigungs-Code"
277
 
278
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1188
279
  msgid "Submit"
280
  msgstr "Senden"
281
 
282
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1189
283
  msgid "Your comment is awaiting moderation"
284
  msgstr "Ihr Kommentar wartet auf Moderation "
285
 
286
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1218
287
  msgid "Delete Comment"
288
  msgstr "Kommentar löschen"
289
 
290
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:1991
291
  msgid "Show Comments"
292
  msgstr "Anmerkungen anzeigen "
293
 
294
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:2183
295
  msgid "Hide info"
296
  msgstr "Ausblenden"
297
 
298
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:2194
299
  msgid "Hide rating"
300
  msgstr "Bewertung ausblenden"
301
 
302
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:2382
303
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:2576
304
  msgid "Restore"
305
  msgstr "Wiederherstellen"
306
 
307
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:2492
308
  msgid "Exit Fullscreen"
309
  msgstr "Verlassen Sie Vollbild "
310
 
311
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:2505
312
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewGalleryBox.php:2520
313
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewSlideshow.php:1555
314
+ #: C:\wamp\www\wordpress3.5\wp-content\plugins\photo-gallery/frontend/views/BWGViewSlideshow.php:1573
315
  msgid "Pause"
316
  msgstr "Pause"
photo-gallery.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Photo Gallery
5
  * Plugin URI: http://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.1.29
8
  * Author: http://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
10
  */
@@ -562,6 +562,9 @@ function bwg_activate() {
562
  `comment_moderation` tinyint(1) NOT NULL,
563
  `popup_hit_counter` tinyint(1) NOT NULL,
564
  `enable_ML_import` tinyint(1) NOT NULL,
 
 
 
565
  PRIMARY KEY (`id`)
566
  ) ENGINE=MyISAM DEFAULT CHARSET=utf8;";
567
  $wpdb->query($bwg_option);
@@ -1079,6 +1082,9 @@ function bwg_activate() {
1079
  'popup_info_always_show' => 0,
1080
  'popup_hit_counter' => 0,
1081
  'enable_ML_import' => 0,
 
 
 
1082
  ), array(
1083
  '%d',
1084
  '%s',
@@ -1187,6 +1193,9 @@ function bwg_activate() {
1187
  '%d',
1188
  '%d',
1189
  '%d',
 
 
 
1190
  ));
1191
  }
1192
  $exists_default = $wpdb->get_var('SELECT count(id) FROM ' . $wpdb->prefix . 'bwg_theme');
@@ -2688,7 +2697,7 @@ function bwg_activate() {
2688
  ));
2689
  }
2690
  $version = get_option("wd_bwg_version");
2691
- $new_version = '1.1.26';
2692
  if ($version && version_compare($version, $new_version, '<')) {
2693
  require_once WD_BWG_DIR . "/update/bwg_update.php";
2694
  bwg_update($version);
@@ -2703,7 +2712,7 @@ register_activation_hook(__FILE__, 'bwg_activate');
2703
 
2704
  function bwg_update_hook() {
2705
  $version = get_option("wd_bwg_version");
2706
- $new_version = '1.1.26';
2707
  if ($version && version_compare($version, $new_version, '<')) {
2708
  require_once WD_BWG_DIR . "/update/bwg_update.php";
2709
  bwg_update($version);
4
  * Plugin Name: Photo Gallery
5
  * Plugin URI: http://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.1.30
8
  * Author: http://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
10
  */
562
  `comment_moderation` tinyint(1) NOT NULL,
563
  `popup_hit_counter` tinyint(1) NOT NULL,
564
  `enable_ML_import` tinyint(1) NOT NULL,
565
+ `showthumbs_name` tinyint(1) NOT NULL,
566
+ `show_album_name` tinyint(1) NOT NULL,
567
+ `show_image_counts` tinyint(1) NOT NULL,
568
  PRIMARY KEY (`id`)
569
  ) ENGINE=MyISAM DEFAULT CHARSET=utf8;";
570
  $wpdb->query($bwg_option);
1082
  'popup_info_always_show' => 0,
1083
  'popup_hit_counter' => 0,
1084
  'enable_ML_import' => 0,
1085
+ 'showthumbs_name'=> 0,
1086
+ 'show_album_name'=> 0,
1087
+ 'show_image_counts'=> 0,
1088
  ), array(
1089
  '%d',
1090
  '%s',
1193
  '%d',
1194
  '%d',
1195
  '%d',
1196
+ '%d',
1197
+ '%d',
1198
+ '%d',
1199
  ));
1200
  }
1201
  $exists_default = $wpdb->get_var('SELECT count(id) FROM ' . $wpdb->prefix . 'bwg_theme');
2697
  ));
2698
  }
2699
  $version = get_option("wd_bwg_version");
2700
+ $new_version = '1.1.30';
2701
  if ($version && version_compare($version, $new_version, '<')) {
2702
  require_once WD_BWG_DIR . "/update/bwg_update.php";
2703
  bwg_update($version);
2712
 
2713
  function bwg_update_hook() {
2714
  $version = get_option("wd_bwg_version");
2715
+ $new_version = '1.1.30';
2716
  if ($version && version_compare($version, $new_version, '<')) {
2717
  require_once WD_BWG_DIR . "/update/bwg_update.php";
2718
  bwg_update($version);
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Photo Gallery ===
2
  Contributors: webdorado
3
  Donate link: http://web-dorado.com/products/wordpress-photo-gallery-plugin.html
4
- Tags: photo, photo gallery, image gallery, video gallery, gallery, galleries, wordpress gallery plugin, images gallery, album, photo albums, Simple gallery, best gallery plugin, free photo gallery, wp gallery, wordpress gallery, website gallery, gallery shortcode, best gallery, picture, pictures, gallery slider, photo album, photogallery, widget gallery, image, images, photos, gallery lightbox, photoset, wordpress photo gallery plugin, wp gallery plugins, responsive wordpress photo gallery, media, image album, filterable gallery, banner rotator, fullscreen gallery, Fotogalerie, Galleria, galerie, galeri
5
  Requires at least: 3.0
6
  Tested up to: 3.9
7
- Stable tag: 1.1.29
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -74,7 +74,7 @@ Photo Gallery product in addition to the main plugin includes 4 specific widgets
74
  * Right-click enabling option for the image downloads protection.
75
  * Possibility to display images in the albums in thumbnail or masonry view upon opening
76
 
77
-
78
  Upgrade to [WordPress Photo Gallery Pro](http://web-dorado.com/products/wordpress-photo-gallery-plugin.html) to add features:
79
 
80
  * Masonry View.
@@ -174,6 +174,12 @@ If any problem occurs, please contact us at [info@web-dorado.com](mailto:info@w
174
 
175
  == Changelog ==
176
 
 
 
 
 
 
 
177
  = 1.1.29 =
178
  * Bug fixed in tag cloud widget
179
 
1
  === Photo Gallery ===
2
  Contributors: webdorado
3
  Donate link: http://web-dorado.com/products/wordpress-photo-gallery-plugin.html
4
+ Tags: photo, photo gallery, image gallery, video gallery, gallery, galleries, wordpress gallery plugin, images gallery, album, photo albums, simple gallery, best gallery plugin, free photo gallery, wp gallery, wordpress gallery, website gallery, gallery shortcode, best gallery, picture, pictures, gallery slider, photo album, photogallery, widget gallery, image, images, photos, gallery lightbox, photoset, wordpress photo gallery plugin, wp gallery plugins, responsive wordpress photo gallery, media, image album, filterable gallery, banner rotator, fullscreen gallery, fotogalerie, galleria, galerie, galeri
5
  Requires at least: 3.0
6
  Tested up to: 3.9
7
+ Stable tag: 1.1.30
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
74
  * Right-click enabling option for the image downloads protection.
75
  * Possibility to display images in the albums in thumbnail or masonry view upon opening
76
 
77
+
78
  Upgrade to [WordPress Photo Gallery Pro](http://web-dorado.com/products/wordpress-photo-gallery-plugin.html) to add features:
79
 
80
  * Masonry View.
174
 
175
  == Changelog ==
176
 
177
+ = 1.1.30 =
178
+ * images count in ligthbox (optional - only in options page)
179
+ * images count column in galleries table
180
+ * WordPress Search Integration by gallery and album title
181
+ * show gallery, album title (optional - only in options page)
182
+
183
  = 1.1.29 =
184
  * Bug fixed in tag cloud widget
185
 
update/bwg_update.php CHANGED
@@ -127,6 +127,12 @@ function bwg_update($version) {
127
  // Add import from media library option.
128
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `enable_ML_import` tinyint(1) NOT NULL DEFAULT 0");
129
  }
 
 
 
 
 
 
130
  return;
131
  }
132
 
127
  // Add import from media library option.
128
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `enable_ML_import` tinyint(1) NOT NULL DEFAULT 0");
129
  }
130
+ if (version_compare($version, '1.1.30') == -1) {
131
+ // Add enable/disable showing album or thumbnail names
132
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `showthumbs_name` tinyint(1) NOT NULL DEFAULT 0");
133
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `show_album_name` tinyint(1) NOT NULL DEFAULT 0");
134
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `show_image_counts` tinyint(1) NOT NULL DEFAULT 0");
135
+ }
136
  return;
137
  }
138