Photo Gallery by WD – Responsive Photo Gallery - Version 1.3.18

Version Description

  • Changed: Options page design.
Download this release

Release Info

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

Code changes from version 1.3.17 to 1.3.18

Files changed (5) hide show
  1. admin/views/BWGViewOptions_bwg.php +1638 -1560
  2. css/bwg_tables.css +150 -15
  3. js/bwg.js +33 -18
  4. photo-gallery.php +3 -3
  5. readme.txt +4 -1
admin/views/BWGViewOptions_bwg.php CHANGED
@@ -92,1593 +92,1680 @@ class BWGViewOptions_bwg {
92
  <form method="post" class="wrap bwg_form" action="admin.php?page=options_bwg" style="float: left; width: 99%;">
93
  <?php wp_nonce_field( 'options_bwg', 'bwg_nonce' ); ?>
94
  <span class="option-icon"></span>
95
- <h2 id="ed_options"><?php _e("Edit options", 'bwg_back'); ?></h2>
96
  <div style="display: inline-block; width: 100%;">
97
  <div style="float: right;">
98
- <input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-save" type="submit" onclick="if (spider_check_required('title', 'Title')) {return false;}; spider_set_input_value('task', 'save')" value="<?php _e("Save", 'bwg_back'); ?>" />
99
- <input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-reset" type="submit" onclick="if (confirm('<?php echo addslashes(__("Do you want to reset to default?", 'bwg_back')); ?>')) {
100
  spider_set_input_value('task', 'reset');
101
  } else {
102
  return false;
103
- }" value="<?php _e("Reset all options", 'bwg_back'); ?>" />
104
  </div>
105
  </div>
106
- <div style="display: none; width: 100%;" id="display_panel">
107
- <div style="float:left;">
108
- <div id="div_1" class="gallery_type" onclick="bwg_change_option_type('1')"> <?php _e("Global options", 'bwg_back'); ?></div><br/>
109
- <div id="div_8" class="gallery_type" onclick="bwg_change_option_type('8')"> <?php _e("Watermark", 'bwg_back'); ?></div><br/>
110
- <div id="div_2" class="gallery_type" onclick="bwg_change_option_type('2')"> <?php _e("Advertisement", 'bwg_back'); ?></div><br/>
111
- <div id="div_3" class="gallery_type" onclick="bwg_change_option_type('3')"> <?php _e("Lightbox", 'bwg_back'); ?></div><br/>
112
- <div id="div_4" class="gallery_type" onclick="bwg_change_option_type('4')"> <?php _e("Album options", 'bwg_back'); ?></div><br/>
113
- <div id="div_5" class="gallery_type" onclick="bwg_change_option_type('5')"> <?php _e("Slideshow", 'bwg_back'); ?></div><br/>
114
- <div id="div_6" class="gallery_type" onclick="bwg_change_option_type('6')"> <?php _e("Thumbnail options", 'bwg_back'); ?></div><br/>
115
- <div id="div_7" class="gallery_type" onclick="bwg_change_option_type('7')"> <?php _e("Image options", 'bwg_back'); ?></div><br/>
116
- <div id="div_9" class="gallery_type" onclick="bwg_change_option_type('9')"> <?php _e("Embed options", 'bwg_back'); ?></div><br/>
117
- <div id="div_10" class="gallery_type" onclick="bwg_change_option_type('10')"> <?php _e("Carousel", 'bwg_back'); ?></div><br/>
118
- <input type="hidden" id="type" name="type" value="<?php echo (isset($_POST["type"]) ? esc_html(stripslashes($_POST["type"])) : "1"); ?>"/>
119
- </div>
120
-
121
- <!--Global options-->
122
- <div class="spider_div_options" id="div_content_1">
123
- <table>
124
- <tbody>
125
- <tr>
126
- <td class="spider_label_options">
127
- <label for="images_directory"><?php _e("Images directory:", 'bwg_back'); ?></label>
128
- </td>
129
- <td>
130
- <input id="images_directory" name="images_directory" type="text" style="display:inline-block; width:100%;" value="<?php echo $row->images_directory; ?>" />
131
- <input type="hidden" id="old_images_directory" name="old_images_directory" value="<?php echo $row->old_images_directory; ?>"/>
132
- <div class="spider_description"><?php _e("Input an existing directory inside the Wordpress directory to store uploaded images.<br />Old directory content will be moved to the new one.", 'bwg_back'); ?></div>
133
- </td>
134
- </tr>
135
- <tr>
136
- <td class="spider_label_options">
137
- <label for="upload_img_width"><?php _e("Image dimensions:", 'bwg_back'); ?> </label>
138
- </td>
139
- <td>
140
- <input type="text" name="upload_img_width" id="upload_img_width" value="<?php echo $row->upload_img_width; ?>" class="spider_int_input" /> x
141
- <input type="text" name="upload_img_height" id="upload_img_height" value="<?php echo $row->upload_img_height; ?>" class="spider_int_input" /> px
142
- <div class="spider_description"><?php _e("The maximum size of the uploaded image (0 for original size).", 'bwg_back'); ?></div>
143
- </td>
144
- </tr>
145
- <tr>
146
- <td class="spider_label_options">
147
- <label><?php _e("Right click protection:", 'bwg_back'); ?></label>
148
- </td>
149
- <td>
150
- <input type="radio" name="image_right_click" id="image_right_click_1" value="1" <?php if ($row->image_right_click) echo 'checked="checked"'; ?> /><label for="image_right_click_1"><?php _e("Yes", 'bwg_back'); ?></label>
151
- <input type="radio" name="image_right_click" id="image_right_click_0" value="0" <?php if (!$row->image_right_click) echo 'checked="checked"'; ?> /><label for="image_right_click_0"><?php _e("No", 'bwg_back'); ?></label>
152
- <div class="spider_description"><?php _e("Disable image right click possibility.", 'bwg_back'); ?></div>
153
- </td>
154
- </tr>
155
- <tr style="display: none;">
156
- <td class="spider_label_options">
157
- <label><?php _e("Gallery role:", 'bwg_back'); ?></label>
158
- </td>
159
- <td>
160
- <input type="radio" name="gallery_role" id="gallery_role_1" value="1" <?php if ($row->gallery_role) echo 'checked="checked"'; ?> /><label for="gallery_role_1"><?php _e("Yes", 'bwg_back'); ?></label>
161
- <input type="radio" name="gallery_role" id="gallery_role_0" value="0" <?php if (!$row->gallery_role) echo 'checked="checked"'; ?> /><label for="gallery_role_0">No</label>
162
- <div class="spider_description">Only author can change a gallery.</div>
163
- </td>
164
- </tr>
165
- <tr style="display: none;">
166
- <td class="spider_label_options">
167
- <label>Album role:</label>
168
- </td>
169
- <td>
170
- <input type="radio" name="album_role" id="album_role_1" value="1" <?php if ($row->album_role) echo 'checked="checked"'; ?> /><label for="album_role_1"><?php _e("Yes", 'bwg_back'); ?></label>
171
- <input type="radio" name="album_role" id="album_role_0" value="0" <?php if (!$row->album_role) echo 'checked="checked"'; ?> /><label for="album_role_0">No</label>
172
- <div class="spider_description">Only author can change an album.</div>
173
- </td>
174
- </tr>
175
- <tr style="display: none;">
176
- <td class="spider_label_options">
177
- <label>Image role:</label>
178
- </td>
179
- <td>
180
- <input type="radio" name="image_role" id="image_role_1" value="1" <?php if ($row->image_role) echo 'checked="checked"'; ?> /><label for="image_role_1"><?php _e("Yes", 'bwg_back'); ?></label>
181
- <input type="radio" name="image_role" id="image_role_0" value="0" <?php if (!$row->image_role) echo 'checked="checked"'; ?> /><label for="image_role_0"><?php _e("No", 'bwg_back'); ?></label>
182
- <div class="spider_description"><?php _e("Only author can change an image.", 'bwg_back'); ?></div>
183
- </td>
184
- </tr>
185
- <tr>
186
- <td class="spider_label_options">
187
- <label><?php echo __('Show search box:', 'bwg_back'); ?></label>
188
- </td>
189
- <td>
190
- <input type="radio" name="show_search_box" id="show_search_box_1" value="1" <?php if ($row->show_search_box) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_search_box_width', 'show_search_box_1'); bwg_enable_disable('', 'tr_search_box_placeholder', 'show_search_box_1')" /><label for="show_search_box_1"><?php echo __('Yes', 'bwg_back'); ?></label>
191
- <input type="radio" name="show_search_box" id="show_search_box_0" value="0" <?php if (!$row->show_search_box) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_search_box_width', 'show_search_box_0'); bwg_enable_disable('none', 'tr_search_box_placeholder', 'show_search_box_0')" /><label for="show_search_box_0"><?php echo __('No', 'bwg_back'); ?></label>
192
- <div class="spider_description"></div>
193
- </td>
194
- </tr>
195
- <tr id="tr_search_box_placeholder">
196
- <td class="spider_label_options">
197
- <label for="placeholder"><?php echo __('Add placeholder to search:', 'bwg_back'); ?> </label>
198
- </td>
199
- <td>
200
- <input type="text" name="placeholder" id="placeholder" value="<?php echo $row->placeholder; ?>" />
201
- <div class="spider_description"></div>
202
- </td>
203
- </tr>
204
- <tr id="tr_search_box_width">
205
- <td class="spider_label_options">
206
- <label for="search_box_width"><?php _e('Search box width:', 'bwg_back'); ?> </label>
207
- </td>
208
- <td>
209
- <input type="text" name="search_box_width" id="search_box_width" value="<?php echo $row->search_box_width; ?>" class="spider_int_input" /> px
210
- <div class="spider_description"></div>
211
- </td>
212
- </tr>
213
- <tr>
214
- <td class="spider_label_options">
215
- <label><?php _e('Show "Order by" dropdown list:', 'bwg_back'); ?></label>
216
- </td>
217
- <td>
218
- <input type="radio" name="show_sort_images" id="show_sort_images_1" value="1" <?php if ($row->show_sort_images) echo 'checked="checked"'; ?> /><label for="show_sort_images_1"><?php _e('Yes', 'bwg_back'); ?></label>
219
- <input type="radio" name="show_sort_images" id="show_sort_images_0" value="0" <?php if (!$row->show_sort_images) echo 'checked="checked"'; ?> /><label for="show_sort_images_0"><?php _e('No', 'bwg_back'); ?></label>
220
- <div class="spider_description"></div>
221
- </td>
222
- </tr>
223
- <tr>
224
- <td class="spider_label_options">
225
- <label><?php _e('Show tag box:', 'bwg_back'); ?></label>
226
- </td>
227
- <td>
228
- <input type="radio" name="show_tag_box" id="show_tag_box_1" value="1" <?php if ($row->show_tag_box) echo 'checked="checked"'; ?> /><label for="show_tag_box_1"><?php _e('Yes', 'bwg_back'); ?></label>
229
- <input type="radio" name="show_tag_box" id="show_tag_box_0" value="0" <?php if (!$row->show_tag_box) echo 'checked="checked"'; ?> /><label for="show_tag_box_0"><?php _e('No', 'bwg_back'); ?></label>
230
- <div class="spider_description"></div>
231
- </td>
232
- </tr>
233
- <tr>
234
- <td class="spider_label_options">
235
- <label><?php _e('Preload images:', 'bwg_back'); ?></label>
236
- </td>
237
- <td>
238
- <input type="radio" name="preload_images" id="preload_images_1" value="1" <?php if ($row->preload_images) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_preload_images_count', 'preload_images_1')" /><label for="preload_images_1"><?php _e('Yes', 'bwg_back'); ?></label>
239
- <input type="radio" name="preload_images" id="preload_images_0" value="0" <?php if (!$row->preload_images) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_preload_images_count', 'preload_images_0')" /><label for="preload_images_0"><?php _e('No', 'bwg_back'); ?></label>
240
- <div class="spider_description"></div>
241
- </td>
242
- </tr>
243
- <tr id="tr_preload_images_count">
244
- <td class="spider_label_options">
245
- <label for="preload_images_count"><?php _e('Count of images:', 'bwg_back'); ?> </label>
246
- </td>
247
- <td>
248
- <input type="text" name="preload_images_count" id="preload_images_count" value="<?php echo $row->preload_images_count; ?>" class="spider_int_input" />
249
- <div class="spider_description"><?php _e('Count of images to preload (0 for all).', 'bwg_back'); ?></div>
250
- </td>
251
- </tr>
252
- <tr>
253
- <td class="spider_label_options">
254
- <label><?php _e('Import from Media Library:', 'bwg_back'); ?></label>
255
- </td>
256
- <td>
257
- <input type="radio" name="enable_ML_import" id="enable_ML_import_1" value="1" <?php if ($row->enable_ML_import) echo 'checked="checked"'; ?> /><label for="enable_ML_import_1"><?php _e('Yes', 'bwg_back'); ?></label>
258
- <input type="radio" name="enable_ML_import" id="enable_ML_import_0" value="0" <?php if (!$row->enable_ML_import) echo 'checked="checked"'; ?> /><label for="enable_ML_import_0"><?php _e('No', 'bwg_back'); ?></label>
259
- <div class="spider_description"><?php _e('Enable import from Media Library in file manager.', 'bwg_back'); ?></div>
260
- </td>
261
- </tr>
262
- <tr>
263
- <td class="spider_label_options">
264
- <label><?php _e('Enable href attribute:', 'bwg_back'); ?></label>
265
- </td>
266
- <td>
267
- <input type="radio" name="enable_seo" id="enable_seo_1" value="1" <?php if ($row->enable_seo) echo 'checked="checked"'; ?> /><label for="enable_seo_1"><?php _e('Yes', 'bwg_back'); ?></label>
268
- <input type="radio" name="enable_seo" id="enable_seo_0" value="0" <?php if (!$row->enable_seo) echo 'checked="checked"'; ?> /><label for="enable_seo_0"><?php _e('No', 'bwg_back'); ?></label>
269
- <div class="spider_description"><?php _e('Disable this option only if it conflicts with your theme.', 'bwg_back'); ?></div>
270
- </td>
271
- </tr>
272
- <tr>
273
- <td class="spider_label_options">
274
- <label><?php _e('Meta auto-fill:', 'bwg_back'); ?></label>
275
- </td>
276
- <td>
277
- <input type="radio" name="read_metadata" id="read_metadata_1" value="1" <?php if ($row->read_metadata) echo 'checked="checked"'; ?> /><label for="read_metadata_1"><?php _e('Yes', 'bwg_back'); ?></label>
278
- <input type="radio" name="read_metadata" id="read_metadata_0" value="0" <?php if (!$row->read_metadata) echo 'checked="checked"'; ?> /><label for="read_metadata_0"><?php _e('No', 'bwg_back'); ?></label>
279
- <div class="spider_description"><?php _e('Enabling this option the meta description of the image will be automatically filled in image description field.', 'bwg_back'); ?></div>
280
- </td>
281
- </tr>
282
-
283
- <tr>
284
- <td class="spider_label_options">
285
- <label><?php _e('Show/hide custom post types:', 'bwg_back'); ?></label>
286
- </td>
287
- <td>
288
- <input type="radio" name="show_hide_custom_post" id="show_hide_custom_post_1" value="1" <?php if ($row->show_hide_custom_post) echo 'checked="checked"'; ?> /><label for="show_hide_custom_post_1"><?php _e('Yes', 'bwg_back'); ?></label>
289
- <input type="radio" name="show_hide_custom_post" id="show_hide_custom_post_0" value="0" <?php if (!$row->show_hide_custom_post) echo 'checked="checked"'; ?> /><label for="show_hide_custom_post_0"><?php _e('No', 'bwg_back'); ?></label>
290
- <div class="spider_description"></div>
291
- </td>
292
- </tr>
293
  <tr>
294
- <td class="spider_label_options">
295
- <label><?php _e('Show/hide comments for custom post types:', 'bwg_back'); ?></label>
296
- </td>
297
- <td>
298
- <input type="radio" name="show_hide_post_meta" id="show_hide_post_meta_1" value="1" <?php if ($row->show_hide_post_meta) echo 'checked="checked"'; ?> /><label for="show_hide_post_meta_1"><?php _e("Yes", 'bwg_back'); ?></label>
299
- <input type="radio" name="show_hide_post_meta" id="show_hide_post_meta_0" value="0" <?php if (!$row->show_hide_post_meta) echo 'checked="checked"'; ?> /><label for="show_hide_post_meta_0"><?php _e("No", 'bwg_back'); ?></label>
300
- <div class="spider_description"></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
301
  </td>
302
  </tr>
 
 
 
 
 
303
  <tr>
304
- <td class="spider_label_options">
305
- <label><?php echo __('Introduction tour:', 'bwg_back'); ?></label>
306
- </td>
307
- <td>
308
- <a href="admin.php?page=options_bwg&bwg_start_tour=1" class="wd-btn wd-btn-primary wd-not-image" title="<?php echo _e('Start tour', 'bwg_back'); ?>">
309
- <?php _e('Start tour', 'bwg_back'); ?>
310
- </a>
311
- <div class="spider_description"><?php echo __('Take this tour to quickly learn about the use of this plugin.', 'bwg_back'); ?></div>
312
- </td>
313
- </tr>
314
- </tbody>
315
- </table>
316
- </div>
317
-
318
- <!--Watermark-->
319
- <div class="spider_div_options" id="div_content_8">
320
- <table style="width: 100%;">
321
- <tr>
322
- <td style="width: 50%; vertical-align: top; height: 100%; display: table-cell;">
323
- <table>
324
- <tbody>
325
- <tr id="tr_built_in_watermark_type">
326
- <td class="spider_label_options">
327
- <label><?php _e('Watermark type: ', 'bwg_back'); ?></label>
328
- </td>
329
- <td>
330
- <input type="radio" name="built_in_watermark_type" id="built_in_watermark_type_none" value="none" <?php if ($row->built_in_watermark_type == 'none') echo 'checked="checked"'; ?> onClick="bwg_built_in_watermark('watermark_type_none')" />
331
- <label for="built_in_watermark_type_none"><?php _e('None', 'bwg_back'); ?></label>
332
- <input type="radio" name="built_in_watermark_type" id="built_in_watermark_type_text" value="text" <?php if ($row->built_in_watermark_type == 'text') echo 'checked="checked"'; ?> onClick="bwg_built_in_watermark('watermark_type_text')" onchange="preview_built_in_watermark()" />
333
- <label for="built_in_watermark_type_text"><?php _e('Text', 'bwg_back'); ?></label>
334
- <input type="radio" name="built_in_watermark_type" id="built_in_watermark_type_image" value="image" <?php if ($row->built_in_watermark_type == 'image') echo 'checked="checked"'; ?> onClick="bwg_built_in_watermark('watermark_type_image')" onchange="preview_built_in_watermark()" />
335
- <label for="built_in_watermark_type_image"><?php _e('Image', 'bwg_back'); ?></label>
336
- <div class="spider_description"></div>
337
- </td>
338
- </tr>
339
- <tr id="tr_built_in_watermark_url">
340
- <td class="spider_label_options">
341
- <label for="built_in_watermark_url"><?php _e('Watermark url: ', 'bwg_back'); ?></label>
342
- </td>
343
- <td>
344
- <input type="text" id="built_in_watermark_url" name="built_in_watermark_url" style="width: 68%;" value="<?php echo $row->built_in_watermark_url; ?>" style="display:inline-block;" onchange="preview_built_in_watermark()" />
345
- <?php
346
- $query_url = add_query_arg(array('action' => 'addImages', 'width' => '700', 'height' => '550', 'extensions' => 'png', 'callback' => 'bwg_add_built_in_watermark_image'), admin_url('admin-ajax.php'));
347
- $query_url = wp_nonce_url( $query_url, 'addImages', 'bwg_nonce' );
348
- $query_url = add_query_arg(array('TB_iframe' => '1'), $query_url );
349
- ?>
350
- <a href="<?php echo $query_url; ?>" id="button_add_built_in_watermark_image" class="wd-btn wd-btn-primary wd-btn-icon wd-btn-add thickbox thickbox-preview"
351
- title="Add image"
352
- onclick="return false;"
353
- style="margin-bottom:5px;">
354
- <?php _e('Add Image', 'bwg_back'); ?>
355
- </a>
356
- <div class="spider_description"><?php _e('Only .png format is supported.', 'bwg_back'); ?></div>
357
- </td>
358
- </tr>
359
- <tr id="tr_built_in_watermark_text">
360
- <td class="spider_label_options">
361
- <label for="built_in_watermark_text"><?php _e('Watermark text: ', 'bwg_back'); ?></label>
362
- </td>
363
- <td>
364
- <input type="text" name="built_in_watermark_text" id="built_in_watermark_text" style="width: 100%;" value="<?php echo $row->built_in_watermark_text; ?>" onchange="preview_built_in_watermark()" onkeypress="preview_built_in_watermark()" />
365
- <div class="spider_description"></div>
366
- </td>
367
- </tr>
368
- <tr id="tr_built_in_watermark_size">
369
- <td class="spider_label_options">
370
- <label for="built_in_watermark_size"><?php _e('Watermark size: ', 'bwg_back'); ?></label>
371
- </td>
372
- <td>
373
- <input type="text" name="built_in_watermark_size" id="built_in_watermark_size" value="<?php echo $row->built_in_watermark_size; ?>" class="spider_int_input" onchange="preview_built_in_watermark()" /> %
374
- <div class="spider_description"><?php _e('Enter size of watermark in percents according to image.', 'bwg_back'); ?></div>
375
- </td>
376
- </tr>
377
- <tr id="tr_built_in_watermark_font_size">
378
- <td class="spider_label_options">
379
- <label for="built_in_watermark_font_size"><?php _e('Watermark font size:', 'bwg_back'); ?></label>
380
- </td>
381
- <td>
382
- <input type="text" name="built_in_watermark_font_size" id="built_in_watermark_font_size" value="<?php echo $row->built_in_watermark_font_size; ?>" class="spider_int_input" onchange="preview_built_in_watermark()" />
383
- <div class="spider_description"></div>
384
- </td>
385
- </tr>
386
- <tr id="tr_built_in_watermark_font">
387
- <td class="spider_label_options">
388
- <label for="built_in_watermark_font"><?php _e('Watermark font style: ', 'bwg_back'); ?></label>
389
- </td>
390
- <td>
391
- <select class="select_icon" name="built_in_watermark_font" id="built_in_watermark_font" style="width:150px;" onchange="preview_built_in_watermark()">
392
- <?php
393
- foreach ($built_in_watermark_fonts as $watermark_font) {
394
- ?>
395
- <option value="<?php echo $watermark_font; ?>" <?php if ($row->built_in_watermark_font == $watermark_font) echo 'selected="selected"'; ?>><?php echo $watermark_font; ?></option>
396
  <?php
397
- }
398
- ?>
399
- </select>
400
- <?php
401
- foreach ($built_in_watermark_fonts as $watermark_font) {
402
  ?>
403
- <style>
404
- @font-face {
405
- font-family: <?php echo 'bwg_' . str_replace('.ttf', '', $watermark_font); ?>;
406
- src: url("<?php echo WD_BWG_URL . '/fonts/' . $watermark_font; ?>");
407
- }
408
- </style>
409
- <?php
410
- }
411
- ?>
412
- <div class="spider_description"></div>
413
- </td>
414
- </tr>
415
- <tr id="tr_built_in_watermark_color">
416
- <td class="spider_label_options">
417
- <label for="built_in_watermark_color"><?php _e('Watermark color:', 'bwg_back'); ?> </label>
418
- </td>
419
- <td>
420
- <input type="text" name="built_in_watermark_color" id="built_in_watermark_color" value="<?php echo $row->built_in_watermark_color; ?>" class="color" onchange="preview_built_in_watermark()" />
421
- <div class="spider_description"></div>
422
- </td>
423
- </tr>
424
- <tr id="tr_built_in_watermark_opacity">
425
- <td class="spider_label_options">
426
- <label for="built_in_watermark_opacity"><?php _e('Watermark opacity:', 'bwg_back'); ?> </label>
427
- </td>
428
- <td>
429
- <input type="text" name="built_in_watermark_opacity" id="built_in_watermark_opacity" value="<?php echo $row->built_in_watermark_opacity; ?>" class="spider_int_input" onchange="preview_built_in_watermark()" /> %
430
- <div class="spider_description"><?php _e('Opacity value must be in the range of 0 to 100.', 'bwg_back'); ?></div>
431
- </td>
432
- </tr>
433
- <tr id="tr_built_in_watermark_position">
434
- <td class="spider_label_options">
435
- <label><?php _e('Watermark position:', 'bwg_back'); ?> </label>
436
- </td>
437
- <td>
438
- <table class="bwg_position_table">
439
- <tbody>
440
- <tr>
441
- <td><input type="radio" value="top-left" name="built_in_watermark_position" <?php if ($row->built_in_watermark_position == "top-left") echo 'checked="checked"'; ?> onchange="preview_built_in_watermark()"></td>
442
- <td><input type="radio" value="top-center" name="built_in_watermark_position" <?php if ($row->built_in_watermark_position == "top-center") echo 'checked="checked"'; ?> onchange="preview_built_in_watermark()"></td>
443
- <td><input type="radio" value="top-right" name="built_in_watermark_position" <?php if ($row->built_in_watermark_position == "top-right") echo 'checked="checked"'; ?> onchange="preview_built_in_watermark()"></td>
444
- </tr>
445
- <tr>
446
- <td><input type="radio" value="middle-left" name="built_in_watermark_position" <?php if ($row->built_in_watermark_position == "middle-left") echo 'checked="checked"'; ?> onchange="preview_built_in_watermark()"></td>
447
- <td><input type="radio" value="middle-center" name="built_in_watermark_position" <?php if ($row->built_in_watermark_position == "middle-center") echo 'checked="checked"'; ?> onchange="preview_built_in_watermark()"></td>
448
- <td><input type="radio" value="middle-right" name="built_in_watermark_position" <?php if ($row->built_in_watermark_position == "middle-right") echo 'checked="checked"'; ?> onchange="preview_built_in_watermark()"></td>
449
- </tr>
450
- <tr>
451
- <td><input type="radio" value="bottom-left" name="built_in_watermark_position" <?php if ($row->built_in_watermark_position == "bottom-left") echo 'checked="checked"'; ?> onchange="preview_built_in_watermark()"></td>
452
- <td><input type="radio" value="bottom-center" name="built_in_watermark_position" <?php if ($row->built_in_watermark_position == "bottom-center") echo 'checked="checked"'; ?> onchange="preview_built_in_watermark()"></td>
453
- <td><input type="radio" value="bottom-right" name="built_in_watermark_position" <?php if ($row->built_in_watermark_position == "bottom-right") echo 'checked="checked"'; ?> onchange="preview_built_in_watermark()"></td>
454
- </tr>
455
- </tbody>
456
- </table>
457
- <input type="submit" class="button-secondary" title="<?php _e('Set watermark', 'bwg_back'); ?>" style="margin-top: 5px;"
458
- onclick="spider_set_input_value('task', 'save'); spider_set_input_value('watermark', 'image_set_watermark');"
459
- value="<?php _e('Set Watermark', 'bwg_back'); ?>"/>
460
- <input type="submit" class="button-secondary" title="<?php _e('Reset watermark', 'bwg_back'); ?>" style="margin-top: 5px;"
461
- onclick="spider_set_input_value('task', 'image_recover_all');"
462
- value="<?php echo __('Reset Watermark', 'bwg_back'); ?>"/>
463
- <div class="spider_description"></div>
464
- </td>
465
- </tr>
466
- </tbody>
467
- </table>
468
- </td>
469
- <td style="width: 50%; vertical-align: top;height: 100%; display: table-cell;">
470
- <span id="preview_built_in_watermark" style="display:table-cell; background-image:url('<?php echo WD_BWG_URL . '/images/watermark_preview.jpg'?>');background-size:100% 100%;width:400px;height:400px;padding-top: 4px; position:relative;">
471
- </span>
472
- </td>
473
- </tr>
474
- </table>
475
- </div>
476
-
477
- <!--Advertisement-->
478
- <div class="spider_div_options" id="div_content_2">
479
- <table style="width: 100%;">
480
- <tr>
481
- <td style="width: 50%; vertical-align: top; height: 100%; display: table-cell;">
482
- <table>
483
- <tbody>
484
- <tr id="tr_watermark_type">
485
- <td class="spider_label_options">
486
- <label><?php _e('Advertisement type:', 'bwg_back'); ?> </label>
487
- </td>
488
- <td>
489
- <input type="radio" name="watermark_type" id="watermark_type_none" value="none" <?php if ($row->watermark_type == 'none') echo 'checked="checked"'; ?> onClick="bwg_watermark('watermark_type_none')" />
490
- <label for="watermark_type_none"><?php _e('None', 'bwg_back'); ?></label>
491
- <input type="radio" name="watermark_type" id="watermark_type_text" value="text" <?php if ($row->watermark_type == 'text') echo 'checked="checked"'; ?> onClick="bwg_watermark('watermark_type_text')" onchange="preview_watermark()" />
492
- <label for="watermark_type_text"><?php _e('Text', 'bwg_back'); ?></label>
493
- <input type="radio" name="watermark_type" id="watermark_type_image" value="image" <?php if ($row->watermark_type == 'image') echo 'checked="checked"'; ?> onClick="bwg_watermark('watermark_type_image')" onchange="preview_watermark()" />
494
- <label for="watermark_type_image"><?php _e('Image', 'bwg_back'); ?></label>
495
  <div class="spider_description"></div>
496
- </td>
497
- </tr>
498
- <tr id="tr_watermark_url">
499
- <td class="spider_label_options">
500
- <label for="watermark_url"><?php _e('Advertisement url:', 'bwg_back'); ?> </label>
501
- </td>
502
- <td>
503
- <input type="text" id="watermark_url" name="watermark_url" style="width: 68%;" value="<?php echo $row->watermark_url; ?>" style="display:inline-block;" onchange="preview_watermark()" />
504
-
505
- <?php
506
- $query_url = add_query_arg(array('action' => 'addImages', 'width' => '700', 'height' => '550', 'extensions' => 'jpg,jpeg,png,gif', 'callback' => 'bwg_add_watermark_image'), admin_url('admin-ajax.php'));
507
- $query_url = wp_nonce_url( $query_url, 'addImages', 'bwg_nonce' );
508
- $query_url = add_query_arg(array('TB_iframe' => '1'), $query_url );
509
- ?>
510
-
511
- <a href="<?php echo $query_url; ?>" id="button_add_watermark_image" class="wd-btn wd-btn-primary wd-btn-icon wd-btn-add thickbox thickbox-preview"
512
- title="Add image"
513
- onclick="return false;"
514
- style="margin-bottom:5px;">
515
- <?php _e('Add Image', 'bwg_back'); ?>
516
- </a>
517
- <div class="spider_description"><?php _e('Enter absolute image file url or add file from Options page. (.jpg,.jpeg,.png,.gif formats are supported)', 'bwg_back'); ?></div>
518
- </td>
519
- </tr>
520
- <tr id="tr_watermark_text">
521
- <td class="spider_label_options">
522
- <label for="watermark_text"><?php _e('Advertisement text:', 'bwg_back'); ?> </label>
523
- </td>
524
- <td>
525
- <input type="text" name="watermark_text" id="watermark_text" style="width: 100%;" value="<?php echo $row->watermark_text; ?>" onchange="preview_watermark()" onkeypress="preview_watermark()" />
526
- <div class="spider_description"></div>
527
- </td>
528
- </tr>
529
- <tr id="tr_watermark_link">
530
- <td class="spider_label_options">
531
- <label for="watermark_link"><?php _e('Advertisement link:', 'bwg_back'); ?> </label>
532
- </td>
533
- <td>
534
- <input type="text" name="watermark_link" id="watermark_link" style="width: 100%;" value="<?php echo $row->watermark_link; ?>" onchange="preview_watermark()" onkeypress="preview_watermark()" />
535
- <div class="spider_description"><?php _e('Enter a URL to open when the advertisement banner is clicked.', 'bwg_back'); ?></div>
536
- </td>
537
- </tr>
538
- <tr id="tr_watermark_width_height">
539
- <td class="spider_label_options">
540
- <label for="watermark_width"><?php _e('Advertisement dimensions:', 'bwg_back'); ?> </label>
541
- </td>
542
- <td>
543
- <input type="text" name="watermark_width" id="watermark_width" value="<?php echo $row->watermark_width; ?>" class="spider_int_input" onchange="preview_watermark()" /> x
544
- <input type="text" name="watermark_height" id="watermark_height" value="<?php echo $row->watermark_height; ?>" class="spider_int_input" onchange="preview_watermark()" /> px
545
- <div class="spider_description"><?php _e('Maximum values for watermark image width and height.', 'bwg_back'); ?></div>
546
- </td>
547
- </tr>
548
- <tr id="tr_watermark_font_size">
549
- <td class="spider_label_options">
550
- <label for="watermark_font_size"><?php _e('Advertisement font size:', 'bwg_back'); ?> </label>
551
- </td>
552
- <td>
553
- <input type="text" name="watermark_font_size" id="watermark_font_size" value="<?php echo $row->watermark_font_size; ?>" class="spider_int_input" onchange="preview_watermark()" /> px
554
- <div class="spider_description"></div>
555
- </td>
556
- </tr>
557
- <tr id="tr_watermark_font">
558
- <td class="spider_label_options">
559
- <label for="watermark_font"><?php _e('Advertisement font style:', 'bwg_back'); ?> </label>
560
- </td>
561
- <td>
562
- <select name="watermark_font" id="watermark_font" class="select_icon bwg_font_select" style="width:150px;" onchange="preview_watermark()">
563
- <?php
564
- $google_fonts = WDWLibrary::get_google_fonts();
565
- $is_google_fonts = (in_array($row->watermark_font, $google_fonts) ) ? true : false;
566
- $watermark_font_families = ($is_google_fonts == true) ? $google_fonts : $watermark_fonts;
567
- foreach ($watermark_font_families as $watermark_font) {
568
- ?>
569
- <option value="<?php echo $watermark_font; ?>" <?php if ($row->watermark_font == $watermark_font) echo 'selected="selected"'; ?>><?php echo $watermark_font; ?></option>
570
- <?php
571
- }
572
- ?>
573
- </select>
574
- <input type="radio" name="watermark_google_fonts" id="watermark_google_fonts1" onchange="bwg_change_fonts('watermark_font', jQuery(this).attr('id'))" value="1" <?php if ($is_google_fonts) echo 'checked="checked"'; ?> />
575
- <label for="watermark_google_fonts1" id="watermark_google_fonts1_lbl"><?php echo __('Google fonts', 'bwg_back'); ?></label>
576
- <input type="radio" name="watermark_google_fonts" id="watermark_google_fonts0" onchange="bwg_change_fonts('watermark_font', '')" value="0" <?php if (!$is_google_fonts) echo 'checked="checked"'; ?> />
577
- <label for="watermark_google_fonts0" id="watermark_google_fonts0_lbl"><?php echo __('Default', 'bwg_back'); ?></label>
578
- <div class="spider_description"></div>
579
- </td>
580
- </tr>
581
- <tr id="tr_watermark_color">
582
- <td class="spider_label_options">
583
- <label for="watermark_color"><?php _e('Advertisement color:', 'bwg_back'); ?> </label>
584
- </td>
585
- <td>
586
- <input type="text" name="watermark_color" id="watermark_color" value="<?php echo $row->watermark_color; ?>" class="color" onchange="preview_watermark()" />
587
- <div class="spider_description"></div>
588
- </td>
589
- </tr>
590
- <tr id="tr_watermark_opacity">
591
- <td class="spider_label_options">
592
- <label for="watermark_opacity"><?php _e('Advertisement opacity:', 'bwg_back'); ?> </label>
593
- </td>
594
- <td>
595
- <input type="text" name="watermark_opacity" id="watermark_opacity" value="<?php echo $row->watermark_opacity; ?>" class="spider_int_input" onchange="preview_watermark()" /> %
596
- <div class="spider_description"><?php _e('Value must be between 0 to 100.', 'bwg_back'); ?></div>
597
- </td>
598
- </tr>
599
- <tr id="tr_watermark_position">
600
- <td class="spider_label_options">
601
- <label><?php _e('Advertisement position:', 'bwg_back'); ?> </label>
602
- </td>
603
- <td>
604
- <table class="bwg_position_table">
605
- <tbody>
606
- <tr>
607
- <td><input type="radio" value="top-left" name="watermark_position" <?php if ($row->watermark_position == "top-left") echo 'checked="checked"'; ?> onchange="preview_watermark()"></td>
608
- <td><input type="radio" value="top-center" name="watermark_position" <?php if ($row->watermark_position == "top-center") echo 'checked="checked"'; ?> onchange="preview_watermark()"></td>
609
- <td><input type="radio" value="top-right" name="watermark_position" <?php if ($row->watermark_position == "top-right") echo 'checked="checked"'; ?> onchange="preview_watermark()"></td>
610
- </tr>
611
- <tr>
612
- <td><input type="radio" value="middle-left" name="watermark_position" <?php if ($row->watermark_position == "middle-left") echo 'checked="checked"'; ?> onchange="preview_watermark()"></td>
613
- <td><input type="radio" value="middle-center" name="watermark_position" <?php if ($row->watermark_position == "middle-center") echo 'checked="checked"'; ?> onchange="preview_watermark()"></td>
614
- <td><input type="radio" value="middle-right" name="watermark_position" <?php if ($row->watermark_position == "middle-right") echo 'checked="checked"'; ?> onchange="preview_watermark()"></td>
615
- </tr>
616
- <tr>
617
- <td><input type="radio" value="bottom-left" name="watermark_position" <?php if ($row->watermark_position == "bottom-left") echo 'checked="checked"'; ?> onchange="preview_watermark()"></td>
618
- <td><input type="radio" value="bottom-center" name="watermark_position" <?php if ($row->watermark_position == "bottom-center") echo 'checked="checked"'; ?> onchange="preview_watermark()"></td>
619
- <td><input type="radio" value="bottom-right" name="watermark_position" <?php if ($row->watermark_position == "bottom-right") echo 'checked="checked"'; ?> onchange="preview_watermark()"></td>
620
- </tr>
621
- </tbody>
622
- </table>
623
- <div class="spider_description"></div>
624
- </td>
625
- </tr>
626
- </tbody>
627
- </table>
628
- </td>
629
- <td style="width: 50%; vertical-align: top;height: 100%; display: table-cell;">
630
- <span id="preview_watermark" style="display:table-cell; background-image:url('<?php echo WD_BWG_URL . '/images/watermark_preview.jpg'?>');background-size:100% 100%;width:400px;height:400px;padding-top: 4px; position:relative;">
631
- </span>
632
- </td>
633
- </tr>
634
- </table>
635
- </div>
636
-
637
- <!--Lightbox-->
638
- <div class="spider_div_options" id="div_content_3">
639
- <table style="width: 100%;">
640
- <tr>
641
- <td style="width: 50%; vertical-align: top;">
642
- <table style="display: inline-table;">
643
- <tbody>
644
- <tr id="tr_popup_full_width">
645
- <td class="spider_label_options">
646
- <label><?php _e('Full width lightbox:', 'bwg_back'); ?></label>
647
- </td>
648
- <td>
649
- <input type="radio" name="popup_fullscreen" id="popup_fullscreen_1" value="1" <?php if ($row->popup_fullscreen) echo 'checked="checked"'; ?> onchange="bwg_popup_fullscreen(1)" /><label for="popup_fullscreen_1"><?php _e('Yes', 'bwg_back'); ?></label>
650
- <input type="radio" name="popup_fullscreen" id="popup_fullscreen_0" value="0" <?php if (!$row->popup_fullscreen) echo 'checked="checked"'; ?> onchange="bwg_popup_fullscreen(0)" /><label for="popup_fullscreen_0"><?php _e('No', 'bwg_back'); ?></label>
651
- <div class="spider_description"><?php _e('Enable full width feature for the lightbox.', 'bwg_back'); ?></div>
652
- </td>
653
- </tr>
654
- <tr id="tr_popup_dimensions" >
655
- <td class="spider_label_options">
656
- <label for="popup_width"><?php _e('Lightbox dimensions:', 'bwg_back'); ?></label>
657
- </td>
658
- <td>
659
- <input type="text" name="popup_width" id="popup_width" value="<?php echo $row->popup_width; ?>" class="spider_int_input" /> x
660
- <input type="text" name="popup_height" id="popup_height" value="<?php echo $row->popup_height; ?>" class="spider_int_input" /> px
661
- <div class="spider_description"></div>
662
- </td>
663
- </tr>
664
- <tr>
665
- <td class="spider_label_options">
666
- <label for="popup_type"><?php _e('Lightbox effect:', 'bwg_back'); ?></label>
667
- </td>
668
- <td>
669
- <select class="select_icon" name="popup_type" id="popup_type" style="width:150px;">
670
  <?php
671
- foreach ($effects as $key => $effect) {
672
- ?>
673
- <option value="<?php echo $key; ?>" <?php echo ($key != 'none' && $key != 'fade') ? 'disabled="disabled" title="'.__("This effect is disabled in free version.", 'bwg_back').'"' : ''; ?> <?php if ($row->popup_type == $key) echo 'selected="selected"'; ?>><?php echo __($effect,"bwg_back"); ?></option>
674
- <?php
675
- }
676
  ?>
677
- </select>
678
- <div class="spider_description"></div>
679
- </td>
680
- </tr>
681
- <tr>
682
- <td class="spider_label_options">
683
- <label for="popup_effect_duration"><?php echo __('Effect duration:', 'bwg_back'); ?> </label>
684
- </td>
685
- <td>
686
- <input type="text" name="popup_effect_duration" id="popup_effect_duration" value="<?php echo $row->popup_effect_duration; ?>" class="spider_int_input" /> sec.
687
- <div class="spider_description"></div>
688
- </td>
689
- </tr>
690
- <tr id="tr_popup_autoplay">
691
- <td class="spider_label_options">
692
- <label><?php _e('Lightbox autoplay:', 'bwg_back'); ?> </label>
693
- </td>
694
- <td>
695
- <input type="radio" name="popup_autoplay" id="popup_autoplay_1" value="1" <?php if ($row->popup_autoplay) echo 'checked="checked"'; ?> /><label for="popup_autoplay_1"><?php _e('Yes', 'bwg_back'); ?></label>
696
- <input type="radio" name="popup_autoplay" id="popup_autoplay_0" value="0" <?php if (!$row->popup_autoplay) echo 'checked="checked"'; ?> /><label for="popup_autoplay_0"><?php _e('No', 'bwg_back'); ?></label>
697
- <div class="spider_description"></div>
698
- </td>
699
- </tr>
700
- <tr>
701
- <td class="spider_label_options">
702
- <label for="popup_interval"><?php _e('Time interval:', 'bwg_back'); ?></label>
703
- </td>
704
- <td>
705
- <input type="text" name="popup_interval" id="popup_interval" value="<?php echo $row->popup_interval; ?>" class="spider_int_input" /> sec.
706
- <div class="spider_description"></div>
707
- </td>
708
- </tr>
709
- <tr>
710
- <td class="spider_label_options">
711
- <label><?php _e('Enable filmstrip:', 'bwg_back'); ?></label>
712
- </td>
713
- <td>
714
- <input disabled="disabled" type="radio" name="popup_enable_filmstrip" id="popup_enable_filmstrip_1" value="1" <?php if ($row->popup_enable_filmstrip ) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_popup_filmstrip_height', 'popup_enable_filmstrip_1')" /><label for="popup_enable_filmstrip_1"><?php _e("Yes", 'bwg_back'); ?></label>
715
- <input disabled="disabled" type="radio" name="popup_enable_filmstrip" id="popup_enable_filmstrip_0" value="0" <?php if (!$row->popup_enable_filmstrip ) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_popup_filmstrip_height', 'popup_enable_filmstrip_0')" /><label for="popup_enable_filmstrip_0"><?php _e("No", 'bwg_back'); ?></label>
716
- <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
717
- </td>
718
- </tr>
719
- <tr id="tr_popup_filmstrip_height">
720
- <td class="spider_label_options spider_free_version_label">
721
- <label for="popup_filmstrip_height"><?php _e("Filmstrip size:", 'bwg_back'); ?></label>
722
- </td>
723
- <td class="spider_free_version_label">
724
- <input disabled="disabled" type="text" name="popup_filmstrip_height" id="popup_filmstrip_height" value="<?php echo $row->popup_filmstrip_height; ?>" class="spider_int_input spider_free_version_label" /> px
725
- <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
726
- </td>
727
- </tr>
728
- <tr id="tr_popup_hit_counter">
729
- <td class="spider_label_options spider_free_version_label">
730
- <label><?php _e("Display hit counter:", 'bwg_back'); ?></label>
731
- </td>
732
- <td>
733
- <input disabled="disabled" type="radio" name="popup_hit_counter" id="popup_hit_counter_1" value="1" <?php if ($row->popup_hit_counter) echo 'checked="checked"'; ?> /><label for="popup_hit_counter_1"><?php _e("Yes", 'bwg_back'); ?></label>
734
- <input disabled="disabled" type="radio" name="popup_hit_counter" id="popup_hit_counter_0" value="0" <?php if (!$row->popup_hit_counter) echo 'checked="checked"'; ?> /><label for="popup_hit_counter_0"><?php _e("No", 'bwg_back'); ?></label>
735
- <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
736
- </td>
737
- </tr>
738
- <tr>
739
- <td class="spider_label_options">
740
- <label> <?php _e("Show Next / Previous buttons:", 'bwg_back'); ?></label>
741
- </td>
742
- <td>
743
- <input type="radio" name="autohide_lightbox_navigation" id="autohide_lightbox_navigation_1" value="1" <?php if ($row->autohide_lightbox_navigation ) echo 'checked="checked"'; ?> /><label for="autohide_lightbox_navigation_1"><?php _e("On hover", 'bwg_back'); ?></label>
744
- <input type="radio" name="autohide_lightbox_navigation" id="autohide_lightbox_navigation_0" value="0" <?php if (!$row->autohide_lightbox_navigation ) echo 'checked="checked"'; ?> /><label for="autohide_lightbox_navigation_0"><?php _e("Always", 'bwg_back'); ?></label>
745
- <div class="spider_description"></div>
746
- </td>
747
- </tr>
748
- <tr>
749
- <td class="spider_label_options">
750
- <label><?php _e("Enable control buttons:", 'bwg_back'); ?></label>
751
- </td>
752
- <td>
753
- <input type="radio" name="popup_enable_ctrl_btn" id="popup_enable_ctrl_btn_1" value="1" <?php if ($row->popup_enable_ctrl_btn) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_popup_fullscreen', 'popup_enable_ctrl_btn_1');
754
- bwg_enable_disable('', 'tr_popup_info', 'popup_enable_ctrl_btn_1');
755
- bwg_enable_disable('', 'tr_popup_comment', 'popup_enable_ctrl_btn_1');
756
- bwg_enable_disable('', 'tr_popup_facebook', 'popup_enable_ctrl_btn_1');
757
- bwg_enable_disable('', 'tr_popup_twitter', 'popup_enable_ctrl_btn_1');
758
- bwg_enable_disable('', 'tr_popup_google', 'popup_enable_ctrl_btn_1');
759
- bwg_enable_disable('', 'tr_popup_pinterest', 'popup_enable_ctrl_btn_1');
760
- bwg_enable_disable('', 'tr_popup_tumblr', 'popup_enable_ctrl_btn_1');
761
- bwg_enable_disable('', 'tr_comment_moderation', 'comment_moderation_1');
762
- bwg_enable_disable('', 'tr_popup_email', 'popup_enable_ctrl_btn_1');
763
- bwg_enable_disable('', 'tr_popup_captcha', 'popup_enable_ctrl_btn_1');
764
- bwg_enable_disable('', 'tr_popup_download', 'popup_enable_ctrl_btn_1');
765
- bwg_enable_disable('', 'tr_popup_fullsize_image', 'popup_enable_ctrl_btn_1');" /><label for="popup_enable_ctrl_btn_1"><?php _e("Yes", 'bwg_back'); ?></label>
766
- <input type="radio" name="popup_enable_ctrl_btn" id="popup_enable_ctrl_btn_0" value="0" <?php if (!$row->popup_enable_ctrl_btn) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_popup_fullscreen', 'popup_enable_ctrl_btn_0');
767
- bwg_enable_disable('none', 'tr_popup_info', 'popup_enable_ctrl_btn_0');
768
- bwg_enable_disable('none', 'tr_popup_comment', 'popup_enable_ctrl_btn_0');
769
- bwg_enable_disable('none', 'tr_popup_facebook', 'popup_enable_ctrl_btn_0');
770
- bwg_enable_disable('none', 'tr_popup_twitter', 'popup_enable_ctrl_btn_0');
771
- bwg_enable_disable('none', 'tr_popup_google', 'popup_enable_ctrl_btn_0');
772
- bwg_enable_disable('none', 'tr_popup_pinterest', 'popup_enable_ctrl_btn_0');
773
- bwg_enable_disable('none', 'tr_popup_tumblr', 'popup_enable_ctrl_btn_0');
774
- bwg_enable_disable('none', 'tr_comment_moderation', 'comment_moderation_0');
775
- bwg_enable_disable('none', 'tr_popup_email', 'popup_enable_ctrl_btn_0');
776
- bwg_enable_disable('none', 'tr_popup_captcha', 'popup_enable_ctrl_btn_0');
777
- bwg_enable_disable('none', 'tr_popup_download', 'popup_enable_ctrl_btn_0');
778
- bwg_enable_disable('none', 'tr_popup_fullsize_image', 'popup_enable_ctrl_btn_0');" /><label for="popup_enable_ctrl_btn_0"><?php _e("No", 'bwg_back'); ?></label>
779
- <div class="spider_description"></div>
780
- </td>
781
- </tr>
782
- <tr id="tr_popup_fullscreen">
783
- <td class="spider_label_options">
784
- <label><?php _e("Enable fullscreen:", 'bwg_back'); ?></label>
785
- </td>
786
- <td>
787
- <input type="radio" name="popup_enable_fullscreen" id="popup_enable_fullscreen_1" value="1" <?php if ($row->popup_enable_fullscreen) echo 'checked="checked"'; ?> /><label for="popup_enable_fullscreen_1"><?php _e("Yes", 'bwg_back'); ?></label>
788
- <input type="radio" name="popup_enable_fullscreen" id="popup_enable_fullscreen_0" value="0" <?php if (!$row->popup_enable_fullscreen) echo 'checked="checked"'; ?> /><label for="popup_enable_fullscreen_0"><?php _e("No", 'bwg_back'); ?></label>
789
- <div class="spider_description"></div>
790
- </td>
791
- </tr>
792
- <tr id="tr_popup_info">
793
- <td class="spider_label_options">
794
- <label><?php _e("Enable info:", 'bwg_back'); ?></label>
795
- </td>
796
- <td>
797
- <input type="radio" name="popup_enable_info" id="popup_enable_info_1" value="1" <?php if ($row->popup_enable_info) echo 'checked="checked"'; ?> /><label for="popup_enable_info_1"><?php _e("Yes", 'bwg_back'); ?></label>
798
- <input type="radio" name="popup_enable_info" id="popup_enable_info_0" value="0" <?php if (!$row->popup_enable_info) echo 'checked="checked"'; ?> /><label for="popup_enable_info_0"><?php _e("No", 'bwg_back'); ?></label>
799
- <div class="spider_description"></div>
800
- </td>
801
- </tr>
802
- <tr id="tr_popup_info_always_show">
803
- <td class="spider_label_options">
804
- <label><?php _e("Display info by default:", 'bwg_back'); ?></label>
805
- </td>
806
- <td>
807
- <input type="radio" name="popup_info_always_show" id="popup_info_always_show_1" value="1" <?php if ($row->popup_info_always_show) echo 'checked="checked"'; ?> /><label for="popup_info_always_show_1"><?php _e("Yes", 'bwg_back'); ?></label>
808
- <input type="radio" name="popup_info_always_show" id="popup_info_always_show_0" value="0" <?php if (!$row->popup_info_always_show) echo 'checked="checked"'; ?> /><label for="popup_info_always_show_0"><?php _e("No", 'bwg_back'); ?></label>
809
- <div class="spider_description"></div>
810
- </td>
811
- </tr>
812
- <tr id="tr_popup_info_full_width">
813
- <td class="spider_label_options">
814
- <label><?php _e("Full width info:", 'bwg_back'); ?></label>
815
- </td>
816
- <td>
817
- <input type="radio" name="popup_info_full_width" id="popup_info_full_width_1" value="1" <?php if ($row->popup_info_full_width) echo 'checked="checked"'; ?> /><label for="popup_info_full_width_1"><?php _e("Yes", 'bwg_back'); ?></label>
818
- <input type="radio" name="popup_info_full_width" id="popup_info_full_width_0" value="0" <?php if (!$row->popup_info_full_width) echo 'checked="checked"'; ?> /><label for="popup_info_full_width_0"><?php _e("No", 'bwg_back'); ?></label>
819
- <div class="spider_description"><?php _e("Display image information based on the lightbox dimensions.", 'bwg_back'); ?></div>
820
- </td>
821
- </tr>
822
- </tbody>
823
- </table>
824
- </td>
825
- <td style="width: 50%; vertical-align: top;">
826
- <table style="display: inline-table;">
827
- <tbody>
828
- <tr id="tr_popup_rate">
829
- <td class="spider_label_options spider_free_version_label">
830
- <label><?php _e("Enable rating:", 'bwg_back'); ?></label>
831
- </td>
832
- <td>
833
- <input disabled="disabled" type="radio" name="popup_enable_rate" id="popup_enable_rate_1" value="1" <?php if ($row->popup_enable_rate) echo 'checked="checked"'; ?> /><label for="popup_enable_rate_1"><?php _e("Yes", 'bwg_back'); ?></label>
834
- <input disabled="disabled" type="radio" name="popup_enable_rate" id="popup_enable_rate_0" value="0" <?php if (!$row->popup_enable_rate) echo 'checked="checked"'; ?> /><label for="popup_enable_rate_0"><?php _e("No", 'bwg_back'); ?></label>
835
- <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
836
- </td>
837
- </tr>
838
- <tr id="tr_popup_comment">
839
- <td class="spider_label_options spider_free_version_label">
840
- <label><?php _e("Enable comments:", 'bwg_back'); ?></label>
841
- </td>
842
- <td>
843
- <input disabled="disabled" type="radio" name="popup_enable_comment" id="popup_enable_comment_1" value="1" <?php if ($row->popup_enable_comment) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_comment_moderation', 'popup_enable_comment_1');
844
- bwg_enable_disable('', 'tr_popup_email', 'popup_enable_comment_1');
845
- bwg_enable_disable('', 'tr_popup_captcha', 'popup_enable_comment_1');" /><label for="popup_enable_comment_1"><?php _e("Yes", 'bwg_back'); ?></label>
846
- <input disabled="disabled" type="radio" name="popup_enable_comment" id="popup_enable_comment_0" value="0" <?php if (!$row->popup_enable_comment) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_comment_moderation', 'popup_enable_comment_0');
847
- bwg_enable_disable('none', 'tr_popup_email', 'popup_enable_comment_0');
848
- bwg_enable_disable('none', 'tr_popup_captcha', 'popup_enable_comment_0');" /><label for="popup_enable_comment_0"><?php _e("No", 'bwg_back'); ?></label>
849
- <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
850
- </td>
851
- </tr>
852
- <tr id="tr_comment_moderation">
853
- <td class="spider_label_options spider_free_version_label">
854
- <label><?php _e("Enable comments moderation:", 'bwg_back'); ?></label>
855
- </td>
856
- <td>
857
- <input disabled="disabled" type="radio" name="comment_moderation" id="comment_moderation_1" value="1" <?php if ($row->comment_moderation) echo 'checked="checked"'; ?> /><label for="comment_moderation_1"><?php _e("Yes", 'bwg_back'); ?></label>
858
- <input disabled="disabled" type="radio" name="comment_moderation" id="comment_moderation_0" value="0" <?php if (!$row->comment_moderation) echo 'checked="checked"'; ?> /><label for="comment_moderation_0"><?php _e("No", 'bwg_back'); ?></label>
859
- <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
860
- </td>
861
- </tr>
862
- <tr id="tr_popup_email">
863
- <td class="spider_label_options spider_free_version_label">
864
- <label><?php _e("Enable Email for comments:", 'bwg_back'); ?></label>
865
- </td>
866
- <td>
867
- <input disabled="disabled" type="radio" name="popup_enable_email" id="popup_enable_email_1" value="1" <?php if ($row->popup_enable_email) echo 'checked="checked"'; ?> /><label for="popup_enable_email_1"><?php _e("Yes", 'bwg_back'); ?></label>
868
- <input disabled="disabled" type="radio" name="popup_enable_email" id="popup_enable_email_0" value="0" <?php if (!$row->popup_enable_email) echo 'checked="checked"'; ?> /><label for="popup_enable_email_0"><?php _e("No", 'bwg_back'); ?></label>
869
- <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
870
- </td>
871
- </tr>
872
- <tr id="tr_popup_captcha">
873
- <td class="spider_label_options spider_free_version_label">
874
- <label><?php _e("Enable Captcha for comments:", 'bwg_back'); ?></label>
875
- </td>
876
- <td>
877
- <input disabled="disabled" type="radio" name="popup_enable_captcha" id="popup_enable_captcha_1" value="1" <?php if ($row->popup_enable_captcha) echo 'checked="checked"'; ?> /><label for="popup_enable_captcha_1"><?php _e("Yes", 'bwg_back'); ?></label>
878
- <input disabled="disabled" type="radio" name="popup_enable_captcha" id="popup_enable_captcha_0" value="0" <?php if (!$row->popup_enable_captcha) echo 'checked="checked"'; ?> /><label for="popup_enable_captcha_0"><?php _e("No", 'bwg_back'); ?></label>
879
- <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
880
- </td>
881
- </tr>
882
- <tr id="tr_popup_fullsize_image">
883
- <td class="spider_label_options">
884
- <label><?php _e("Enable original image display button:", 'bwg_back'); ?></label>
885
- </td>
886
- <td>
887
- <input type="radio" name="popup_enable_fullsize_image" id="popup_enable_fullsize_image_1" value="1" <?php if ($row->popup_enable_fullsize_image) echo 'checked="checked"'; ?> /><label for="popup_enable_fullsize_image_1"><?php _e("Yes", 'bwg_back'); ?></label>
888
- <input type="radio" name="popup_enable_fullsize_image" id="popup_enable_fullsize_image_0" value="0" <?php if (!$row->popup_enable_fullsize_image) echo 'checked="checked"'; ?> /><label for="popup_enable_fullsize_image_0"><?php _e("No", 'bwg_back'); ?></label>
889
- <div class="spider_description"></div>
890
- </td>
891
- </tr>
892
- <tr id="tr_popup_download">
893
- <td class="spider_label_options">
894
- <label><?php _e("Enable download button:", 'bwg_back'); ?></label>
895
- </td>
896
- <td>
897
- <input type="radio" name="popup_enable_download" id="popup_enable_download_1" value="1" <?php if ($row->popup_enable_download) echo 'checked="checked"'; ?> /><label for="popup_enable_download_1"><?php _e("Yes", 'bwg_back'); ?></label>
898
- <input type="radio" name="popup_enable_download" id="popup_enable_download_0" value="0" <?php if (!$row->popup_enable_download) echo 'checked="checked"'; ?> /><label for="popup_enable_download_0"><?php _e("No", 'bwg_back'); ?></label>
899
- <div class="spider_description"></div>
900
- </td>
901
- </tr>
902
- <tr id="tr_popup_facebook">
903
- <td class="spider_label_options spider_free_version_label">
904
- <label><?php _e("Enable Facebook button:", 'bwg_back'); ?></label>
905
- </td>
906
- <td>
907
- <input disabled="disabled" type="radio" name="popup_enable_facebook" id="popup_enable_facebook_1" value="1" <?php if ($row->popup_enable_facebook) echo 'checked="checked"'; ?> /><label for="popup_enable_facebook_1"><?php _e("Yes", 'bwg_back'); ?></label>
908
- <input disabled="disabled" type="radio" name="popup_enable_facebook" id="popup_enable_facebook_0" value="0" <?php if (!$row->popup_enable_facebook) echo 'checked="checked"'; ?> /><label for="popup_enable_facebook_0"><?php _e("No", 'bwg_back'); ?></label>
909
- <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
910
- </td>
911
- </tr>
912
- <tr id="tr_popup_twitter">
913
- <td class="spider_label_options spider_free_version_label">
914
- <label><?php _e("Enable Twitter button:", 'bwg_back'); ?></label>
915
- </td>
916
- <td>
917
- <input disabled="disabled" type="radio" name="popup_enable_twitter" id="popup_enable_facebook_1" value="1" <?php if ($row->popup_enable_twitter) echo 'checked="checked"'; ?> /><label for="popup_enable_twitter_1"><?php _e("Yes", 'bwg_back'); ?></label>
918
- <input disabled="disabled" type="radio" name="popup_enable_twitter" id="popup_enable_facebook_0" value="0" <?php if (!$row->popup_enable_twitter) echo 'checked="checked"'; ?> /><label for="popup_enable_twitter_0"><?php _e("No", 'bwg_back'); ?></label>
919
- <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
920
- </td>
921
- </tr>
922
- <tr id="tr_popup_google">
923
- <td class="spider_label_options spider_free_version_label">
924
- <label><?php _e("Enable Google+ button:", 'bwg_back'); ?></label>
925
- </td>
926
- <td>
927
- <input disabled="disabled" type="radio" name="popup_enable_google" id="popup_enable_google_1" value="1" <?php if ($row->popup_enable_google) echo 'checked="checked"'; ?> /><label for="popup_enable_google_1"><?php _e("Yes", 'bwg_back'); ?></label>
928
- <input disabled="disabled" type="radio" name="popup_enable_google" id="popup_enable_google_0" value="0" <?php if (!$row->popup_enable_google) echo 'checked="checked"'; ?> /><label for="popup_enable_google_0"><?php _e("No", 'bwg_back'); ?></label>
929
- <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
930
- </td>
931
- </tr>
932
- <tr id="tr_popup_pinterest">
933
- <td class="spider_label_options spider_free_version_label">
934
- <label><?php _e("Enable Pinterest button:", 'bwg_back'); ?></label>
935
- </td>
936
- <td>
937
- <input disabled="disabled" type="radio" name="popup_enable_pinterest" id="popup_enable_pinterest_1" value="1" <?php if ($row->popup_enable_pinterest) echo 'checked="checked"'; ?> /><label for="popup_enable_pinterest_1"><?php _e("Yes", 'bwg_back'); ?></label>
938
- <input disabled="disabled" type="radio" name="popup_enable_pinterest" id="popup_enable_pinterest_0" value="0" <?php if (!$row->popup_enable_pinterest) echo 'checked="checked"'; ?> /><label for="popup_enable_pinterest_0"><?php _e("No", 'bwg_back'); ?></label>
939
- <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
940
- </td>
941
- </tr>
942
- <tr id="tr_popup_tumblr">
943
- <td class="spider_label_options spider_free_version_label">
944
- <label><?php _e("Enable Tumblr button:", 'bwg_back'); ?></label>
945
- </td>
946
- <td>
947
- <input disabled="disabled" type="radio" name="popup_enable_tumblr" id="popup_enable_tumblr_1" value="1" <?php if ($row->popup_enable_tumblr) echo 'checked="checked"'; ?> /><label for="popup_enable_tumblr_1"><?php _e("Yes", 'bwg_back'); ?></label>
948
- <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"><?php _e("No", 'bwg_back'); ?></label>
949
- <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
950
- </td>
951
- </tr>
952
- <tr id="tr_image_count">
953
- <td class="spider_label_options">
954
- <label><?php _e("Show images count:", 'bwg_back'); ?></label>
955
- </td>
956
- <td>
957
- <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"><?php _e("Yes", 'bwg_back'); ?></label>
958
- <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"><?php _e("No", 'bwg_back'); ?></label>
959
- <div class="spider_description"></div>
960
- </td>
961
- </tr>
962
- <tr id="tr_image_cycle">
963
- <td class="spider_label_options">
964
- <label><?php _e("Enable loop:", 'bwg_back'); ?></label>
965
- </td>
966
- <td>
967
- <input type="radio" name="enable_loop" id="enable_loop_1" value="1" <?php if ($row->enable_loop) echo 'checked="checked"'; ?> /><label for="enable_loop_1"><?php _e("Yes", 'bwg_back'); ?></label>
968
- <input type="radio" name="enable_loop" id="enable_loop_0" value="0" <?php if (!$row->enable_loop) echo 'checked="checked"'; ?> /><label for="enable_loop_0"><?php _e("No", 'bwg_back'); ?></label>
969
- <div class="spider_description"></div>
970
- </td>
971
- </tr>
972
- <tr>
973
- <td class="spider_label_options spider_free_version_label">
974
- <label><?php _e("Enable", 'bwg_back'); ?> AddThis:</label>
975
- </td>
976
- <td>
977
- <input disabled="disabled" type="radio" name="enable_addthis" id="enable_addthis_1" value="1" <?php if ($row->enable_addthis ) echo 'checked="checked"'; ?> />
978
- <label for="enable_addthis_1"><?php _e("Yes", 'bwg_back'); ?></label>
979
- <input disabled="disabled" type="radio" name="enable_addthis" id="enable_addthis_0" value="0" <?php if (!$row->enable_addthis ) echo 'checked="checked"'; ?> />
980
- <label for="enable_addthis_0"><?php _e("No", 'bwg_back'); ?></label>
981
- <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
982
- </td>
983
- </tr>
984
- </tbody>
985
- </table>
986
- </td>
987
- </tr>
988
- </table>
989
- </div>
990
-
991
- <!--Album options-->
992
- <div class="spider_div_options" id="div_content_4">
993
- <table>
994
- <tbody>
995
- <tr>
996
- <td class="spider_label_options">
997
- <label for="album_column_number"><?php _e("Number of album columns:", 'bwg_back'); ?> </label>
998
- </td>
999
- <td>
1000
- <input type="text" name="album_column_number" id="album_column_number" value="<?php echo $row->album_column_number; ?>" class="spider_int_input" />
1001
- <div class="spider_description"></div>
1002
- </td>
1003
- </tr>
1004
- <tr>
1005
- <td class="spider_label_options">
1006
- <label for="albums_per_page"><?php _e("Albums per page:", 'bwg_back'); ?> </label>
1007
- </td>
1008
- <td>
1009
- <input type="text" name="albums_per_page" id="albums_per_page" value="<?php echo $row->albums_per_page; ?>" class="spider_int_input" />
1010
- <div class="spider_description"></div>
1011
- </td>
1012
- </tr>
1013
- <tr>
1014
- <td class="spider_label_options">
1015
- <label><?php _e("Enable pagination:", 'bwg_back'); ?></label>
1016
- </td>
1017
- <td>
1018
- <input type="radio" name="album_enable_page" id="album_enable_page_1" value="1" <?php if ($row->album_enable_page) echo 'checked="checked"'; ?> /><label for="album_enable_page_1"><?php _e("Yes", 'bwg_back'); ?></label>
1019
- <input type="radio" name="album_enable_page" id="album_enable_page_0" value="0" <?php if (!$row->album_enable_page) echo 'checked="checked"'; ?> /><label for="album_enable_page_0"><?php _e("No", 'bwg_back'); ?></label>
1020
- <div class="spider_description"></div>
1021
- </td>
1022
- </tr>
1023
- <tr>
1024
- <td class="spider_label_options">
1025
- <label><?php _e("Album view type:", 'bwg_back'); ?></label>
1026
- </td>
1027
- <td>
1028
- <input disabled="disabled" type="radio" name="album_view_type" id="album_view_type_1" value="thumbnail" <?php if ($row->album_view_type == "thumbnail") echo 'checked="checked"'; ?> /><label for="album_view_type_1"><?php _e("Thumbnail", 'bwg_back'); ?></label>
1029
- <input disabled="disabled" type="radio" name="album_view_type" id="album_view_type_0" value="masonry" <?php if ($row->album_view_type == "masonry") echo 'checked="checked"'; ?> /><label for="album_view_type_0"><?php _e("Masonry", 'bwg_back'); ?></label>
1030
- <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
1031
- </td>
1032
- </tr>
1033
- <tr>
1034
- <td class="spider_label_options">
1035
- <label><?php _e("Show title:", 'bwg_back'); ?></label>
1036
- </td>
1037
- <td>
1038
- <input type="radio" name="album_title_show_hover" id="album_title_show_hover_1" value="hover" <?php if ($row->album_title_show_hover == "hover") echo 'checked="checked"'; ?> /><label for="album_title_show_hover_1"><?php _e("Show on hover", 'bwg_back'); ?></label><br />
1039
- <input type="radio" name="album_title_show_hover" id="album_title_show_hover_0" value="show" <?php if ($row->album_title_show_hover == "show") echo 'checked="checked"'; ?> /><label for="album_title_show_hover_0"><?php _e("Always show", 'bwg_back'); ?></label><br />
1040
- <input type="radio" name="album_title_show_hover" id="album_title_show_hover_2" value="none" <?php if ($row->album_title_show_hover == "none") echo 'checked="checked"'; ?> /><label for="album_title_show_hover_2"><?php _e("Don't show", 'bwg_back'); ?></label>
1041
- <div class="spider_description"></div>
1042
- </td>
1043
- </tr>
1044
- <tr>
1045
- <td class="spider_label_options">
1046
- <label><?php _e("Show album/gallery name:", 'bwg_back'); ?></label>
1047
- </td>
1048
- <td>
1049
- <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"><?php _e("Yes", 'bwg_back'); ?></label>
1050
- <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"><?php _e("No", 'bwg_back'); ?></label>
1051
- <div class="spider_description"></div>
1052
  </td>
1053
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1054
  <tr>
1055
- <td class="spider_label_options">
1056
- <label><?php _e("Enable extended album description:", 'bwg_back'); ?></label>
1057
- </td>
1058
- <td>
1059
- <input type="radio" name="extended_album_description_enable" id="extended_album_description_enable_1" value="1" <?php if ($row->extended_album_description_enable) echo 'checked="checked"'; ?> /><label for="extended_album_description_enable_1"><?php _e("Yes", 'bwg_back'); ?></label>
1060
- <input type="radio" name="extended_album_description_enable" id="extended_album_description_enable_0" value="0" <?php if (!$row->extended_album_description_enable) echo 'checked="checked"'; ?> /><label for="extended_album_description_enable_0"><?php _e("No", 'bwg_back'); ?></label>
1061
- <div class="spider_description"></div>
1062
- </td>
1063
- </tr>
1064
- <tr>
1065
- <td class="spider_label_options">
1066
- <label for="album_thumb_width"><?php _e("Album thumbnail dimensions:", 'bwg_back'); ?> </label>
1067
- </td>
1068
- <td>
1069
- <input type="text" name="album_thumb_width" id="album_thumb_width" value="<?php echo $row->album_thumb_width; ?>" class="spider_int_input" /> x
1070
- <input type="text" name="album_thumb_height" id="album_thumb_height" value="<?php echo $row->album_thumb_height; ?>" class="spider_int_input" /> px
1071
- <div class="spider_description"></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1072
  </td>
1073
  </tr>
 
 
 
 
 
 
1074
  <tr>
1075
- <td class="spider_label_options">
1076
- <label for="extended_album_height"><?php _e("Extended album height:", 'bwg_back'); ?> </label>
1077
- </td>
1078
- <td>
1079
- <input type="text" name="extended_album_height" id="extended_album_height" value="<?php echo $row->extended_album_height; ?>" class="spider_int_input" /> px
1080
- <div class="spider_description"></div>
1081
- </td>
1082
- </tr>
1083
- </tbody>
1084
- </table>
1085
- </div>
1086
-
1087
- <!--Slideshow-->
1088
- <div class="spider_div_options" id="div_content_5">
1089
- <table style="width: 100%;">
1090
- <tr>
1091
- <td style="width: 50%; vertical-align: top;">
1092
- <table style="display: inline-table;">
1093
- <tbody>
1094
- <tr>
1095
- <td class="spider_label_options">
1096
- <label for="slideshow_type"><?php _e("Slideshow effect:", 'bwg_back'); ?> </label>
1097
- </td>
1098
- <td>
1099
- <select class="select_icon" name="slideshow_type" id="slideshow_type" style="width:150px;">
1100
  <?php
1101
- foreach ($effects as $key => $effect) {
1102
- ?>
1103
- <option value="<?php echo $key; ?>" <?php echo ($key != 'none' && $key != 'fade') ? 'disabled="disabled" title="This effect is disabled in free version."' : ''; ?> <?php if ($row->slideshow_type == $key) echo 'selected="selected"'; ?>><?php echo $effect; ?></option>
1104
- <?php
1105
- }
1106
  ?>
1107
- </select>
1108
- <div class="spider_description"></div>
1109
- </td>
1110
- </tr>
1111
- <tr>
1112
- <td class="spider_label_options">
1113
- <label for="slideshow_effect_duration"><?php echo __('Effect duration:', 'bwg_back'); ?> </label>
1114
- </td>
1115
- <td>
1116
- <input type="text" name="slideshow_effect_duration" id="slideshow_effect_duration" value="<?php echo $row->slideshow_effect_duration; ?>" class="spider_int_input" /> sec.
1117
- <div class="spider_description"></div>
1118
- </td>
1119
- </tr>
1120
- <tr>
1121
- <td class="spider_label_options">
1122
- <label for="slideshow_interval"><?php _e("Time interval:", 'bwg_back'); ?> </label>
1123
- </td>
1124
- <td>
1125
- <input type="text" name="slideshow_interval" id="slideshow_interval" value="<?php echo $row->slideshow_interval; ?>" class="spider_int_input" /> sec.
1126
- <div class="spider_description"></div>
1127
- </td>
1128
- </tr>
1129
- <tr>
1130
- <td class="spider_label_options">
1131
- <label for="slideshow_width"><?php _e("Slideshow dimensions:", 'bwg_back'); ?> </label>
1132
- </td>
1133
- <td>
1134
- <input type="text" name="slideshow_width" id="slideshow_width" value="<?php echo $row->slideshow_width; ?>" class="spider_int_input" /> x
1135
- <input type="text" name="slideshow_height" id="slideshow_height" value="<?php echo $row->slideshow_height; ?>" class="spider_int_input" /> px
1136
- <div class="spider_description"></div>
1137
- </td>
1138
- </tr>
1139
- <tr>
1140
- <td class="spider_label_options">
1141
- <label><?php _e("Enable autoplay:", 'bwg_back'); ?> </label>
1142
- </td>
1143
- <td>
1144
- <input type="radio" name="slideshow_enable_autoplay" id="slideshow_enable_autoplay_yes" value="1" <?php if ($row->slideshow_enable_autoplay) echo 'checked="checked"'; ?> /><label for="slideshow_enable_autoplay_yes"><?php _e("Yes", 'bwg_back'); ?></label>
1145
- <input type="radio" name="slideshow_enable_autoplay" id="slideshow_enable_autoplay_no" value="0" <?php if (!$row->slideshow_enable_autoplay) echo 'checked="checked"'; ?> /><label for="slideshow_enable_autoplay_no"><?php _e("No", 'bwg_back'); ?></label>
1146
- <div class="spider_description"></div>
1147
- </td>
1148
- </tr>
1149
- <tr>
1150
- <td class="spider_label_options">
1151
- <label><?php _e("Enable shuffle:", 'bwg_back'); ?> </label>
1152
- </td>
1153
- <td>
1154
- <input type="radio" name="slideshow_enable_shuffle" id="slideshow_enable_shuffle_yes" value="1" <?php if ($row->slideshow_enable_shuffle) echo 'checked="checked"'; ?> /><label for="slideshow_enable_shuffle_yes"><?php _e("Yes", 'bwg_back'); ?></label>
1155
- <input type="radio" name="slideshow_enable_shuffle" id="slideshow_enable_shuffle_no" value="0" <?php if (!$row->slideshow_enable_shuffle) echo 'checked="checked"'; ?> /><label for="slideshow_enable_shuffle_no"><?php _e("No", 'bwg_back'); ?></label>
1156
- <div class="spider_description"></div>
1157
- </td>
1158
- </tr>
1159
- <tr>
1160
- <td class="spider_label_options">
1161
- <label> <?php _e("Show Next / Previous buttons:", 'bwg_back'); ?></label>
1162
- </td>
1163
- <td>
1164
- <input type="radio" name="autohide_slideshow_navigation" id="autohide_slideshow_navigation_1" value="1" <?php if ($row->autohide_slideshow_navigation) echo 'checked="checked"'; ?> /><label for="autohide_slideshow_navigation_1"><?php _e("On hover", 'bwg_back'); ?></label>
1165
- <input type="radio" name="autohide_slideshow_navigation" id="autohide_slideshow_navigation_0" value="0" <?php if (!$row->autohide_slideshow_navigation) echo 'checked="checked"'; ?> /><label for="autohide_slideshow_navigation_0"><?php _e("Always", 'bwg_back'); ?></label>
1166
- <div class="spider_description"></div>
1167
- </td>
1168
- </tr>
1169
- <tr>
1170
- <td class="spider_label_options">
1171
- <label><?php _e("Enable control buttons:", 'bwg_back'); ?> </label>
1172
- </td>
1173
- <td>
1174
- <input type="radio" name="slideshow_enable_ctrl" id="slideshow_enable_ctrl_yes" value="1" <?php if ($row->slideshow_enable_ctrl) echo 'checked="checked"'; ?> /><label for="slideshow_enable_ctrl_yes"><?php _e("Yes", 'bwg_back'); ?></label>
1175
- <input type="radio" name="slideshow_enable_ctrl" id="slideshow_enable_ctrl_no" value="0" <?php if (!$row->slideshow_enable_ctrl) echo 'checked="checked"'; ?> /><label for="slideshow_enable_ctrl_no"><?php _e("No", 'bwg_back'); ?></label>
1176
- <div class="spider_description"></div>
1177
- </td>
1178
- </tr>
1179
- <tr>
1180
- <td class="spider_label_options spider_free_version_label"><label><?php _e("Enable slideshow filmstrip:", 'bwg_back'); ?> </label></td>
1181
- <td>
1182
- <input disabled="disabled" type="radio" name="slideshow_enable_filmstrip" id="slideshow_enable_filmstrip_yes" value="1" <?php if ($row->slideshow_enable_filmstrip) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_slideshow_filmstrip_height', 'slideshow_enable_filmstrip_yes')" /><label for="slideshow_enable_filmstrip_yes"><?php _e("Yes", 'bwg_back'); ?></label>
1183
- <input disabled="disabled" type="radio" name="slideshow_enable_filmstrip" id="slideshow_enable_filmstrip_no" value="0" <?php if (!$row->slideshow_enable_filmstrip) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_slideshow_filmstrip_height', 'slideshow_enable_filmstrip_no')" /><label for="slideshow_enable_filmstrip_no"><?php _e("No", 'bwg_back'); ?></label>
1184
- <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
1185
- </td>
1186
- </tr>
1187
- <tr id="tr_slideshow_filmstrip_height">
1188
- <td class="spider_label_options spider_free_version_label"><label for="slideshow_filmstrip_height"><?php _e("Slideshow filmstrip size:", 'bwg_back'); ?> </label></td>
1189
- <td class="spider_free_version_label">
1190
- <input disabled="disabled" type="text" name="slideshow_filmstrip_height" id="slideshow_filmstrip_height" value="<?php echo $row->slideshow_filmstrip_height; ?>" class="spider_int_input spider_free_version_label" /> px
1191
- <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
1192
- </td>
1193
- </tr>
1194
- </tbody>
1195
- </table>
1196
- </td>
1197
- <td style="width: 50%; vertical-align: top;">
1198
- <table style="width: 100%; display: inline-table;">
1199
- <tbody>
1200
- <tr>
1201
- <td class="spider_label_options"><label><?php _e("Enable image title:", 'bwg_back'); ?> </label></td>
1202
- <td>
1203
- <input type="radio" name="slideshow_enable_title" id="slideshow_enable_title_yes" value="1" <?php if ($row->slideshow_enable_title) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_slideshow_title_position', 'slideshow_enable_title_yes')" /><label for="slideshow_enable_title_yes"><?php _e("Yes", 'bwg_back'); ?></label>
1204
- <input type="radio" name="slideshow_enable_title" id="slideshow_enable_title_no" value="0" <?php if (!$row->slideshow_enable_title) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_slideshow_title_position', 'slideshow_enable_title_no')" /><label for="slideshow_enable_title_no"><?php _e("No", 'bwg_back'); ?></label>
1205
- <div class="spider_description"></div>
1206
- </td>
1207
- </tr>
1208
- <tr id="tr_slideshow_title_position">
1209
- <td class="spider_label_options"><label><?php _e("Title position:", 'bwg_back'); ?> </label></td>
1210
- <td>
1211
- <table class="bwg_position_table">
1212
- <tbody>
1213
- <tr>
1214
- <td><input type="radio" value="top-left" id="slideshow_title_topLeft" name="slideshow_title_position" <?php if ($row->slideshow_title_position == "top-left") echo 'checked="checked"'; ?>></td>
1215
- <td><input type="radio" value="top-center" id="slideshow_title_topCenter" name="slideshow_title_position" <?php if ($row->slideshow_title_position == "top-center") echo 'checked="checked"'; ?>></td>
1216
- <td><input type="radio" value="top-right" id="slideshow_title_topRight" name="slideshow_title_position" <?php if ($row->slideshow_title_position == "top-right") echo 'checked="checked"'; ?>></td>
1217
- </tr>
1218
- <tr>
1219
- <td><input type="radio" value="middle-left" id="slideshow_title_midLeft" name="slideshow_title_position" <?php if ($row->slideshow_title_position == "middle-left") echo 'checked="checked"'; ?>></td>
1220
- <td><input type="radio" value="middle-center" id="slideshow_title_midCenter" name="slideshow_title_position" <?php if ($row->slideshow_title_position == "middle-center") echo 'checked="checked"'; ?>></td>
1221
- <td><input type="radio" value="middle-right" id="slideshow_title_midRight" name="slideshow_title_position" <?php if ($row->slideshow_title_position == "middle-right") echo 'checked="checked"'; ?>></td>
1222
- </tr>
1223
- <tr>
1224
- <td><input type="radio" value="bottom-left" id="slideshow_title_botLeft" name="slideshow_title_position" <?php if ($row->slideshow_title_position == "bottom-left") echo 'checked="checked"'; ?>></td>
1225
- <td><input type="radio" value="bottom-center" id="slideshow_title_botCenter" name="slideshow_title_position" <?php if ($row->slideshow_title_position == "bottom-center") echo 'checked="checked"'; ?>></td>
1226
- <td><input type="radio" value="bottom-right" id="slideshow_title_botRight" name="slideshow_title_position" <?php if ($row->slideshow_title_position == "bottom-right") echo 'checked="checked"'; ?>></td>
1227
- </tr>
1228
- </tbody>
1229
- </table>
1230
- <div class="spider_description"><?php _e("Image title position on slideshow", 'bwg_back'); ?></div>
1231
- </td>
1232
- </tr>
1233
- <tr id="tr_slideshow_full_width_title">
1234
- <td class="spider_label_options">
1235
- <label><?php _e("Full width title:", 'bwg_back'); ?></label>
1236
- </td>
1237
- <td>
1238
- <input type="radio" name="slideshow_title_full_width" id="slideshow_title_full_width_1" value="1" <?php if ($row->slideshow_title_full_width) echo 'checked="checked"'; ?> /><label for="slideshow_title_full_width_1"><?php _e("Yes", 'bwg_back'); ?></label>
1239
- <input type="radio" name="slideshow_title_full_width" id="slideshow_title_full_width_0" value="0" <?php if (!$row->slideshow_title_full_width) echo 'checked="checked"'; ?> /><label for="slideshow_title_full_width_0"><?php _e("No", 'bwg_back'); ?></label>
1240
- <div class="spider_description"><?php _e("Display image title based on the slideshow dimensions.", 'bwg_back'); ?></div>
1241
- </td>
1242
- </tr>
1243
- <tr>
1244
- <td class="spider_label_options"><label><?php _e("Enable image description: ", 'bwg_back'); ?></label></td>
1245
- <td>
1246
- <input type="radio" name="slideshow_enable_description" id="slideshow_enable_description_yes" value="1" <?php if ($row->slideshow_enable_description) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_slideshow_description_position', 'slideshow_enable_description_yes')" /><label for="slideshow_enable_description_yes"><?php _e("Yes", 'bwg_back'); ?></label>
1247
- <input type="radio" name="slideshow_enable_description" id="slideshow_enable_description_no" value="0" <?php if (!$row->slideshow_enable_description) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_slideshow_description_position', 'slideshow_enable_description_no')" /><label for="slideshow_enable_description_no"><?php _e("No", 'bwg_back'); ?></label>
1248
- <div class="spider_description"></div>
1249
- </td>
1250
- </tr>
1251
- <tr id="tr_slideshow_description_position">
1252
- <td class="spider_label"><label><?php _e("Description position:", 'bwg_back'); ?> </label></td>
1253
- <td>
1254
- <table class="bwg_position_table">
1255
- <tbody>
1256
- <tr>
1257
- <td><input type="radio" value="top-left" id="slideshow_description_topLeft" name="slideshow_description_position" <?php if ($row->slideshow_description_position == "top-left") echo 'checked="checked"'; ?>></td>
1258
- <td><input type="radio" value="top-center" id="slideshow_description_topCenter" name="slideshow_description_position" <?php if ($row->slideshow_description_position == "top-center") echo 'checked="checked"'; ?>></td>
1259
- <td><input type="radio" value="top-right" id="slideshow_description_topRight" name="slideshow_description_position" <?php if ($row->slideshow_description_position == "top-right") echo 'checked="checked"'; ?>></td>
1260
- </tr>
1261
- <tr>
1262
- <td><input type="radio" value="middle-left" id="slideshow_description_midLeft" name="slideshow_description_position" <?php if ($row->slideshow_description_position == "middle-left") echo 'checked="checked"'; ?>></td>
1263
- <td><input type="radio" value="middle-center" id="slideshow_description_midCenter" name="slideshow_description_position" <?php if ($row->slideshow_description_position == "middle-center") echo 'checked="checked"'; ?>></td>
1264
- <td><input type="radio" value="middle-right" id="slideshow_description_midRight" name="slideshow_description_position" <?php if ($row->slideshow_description_position == "middle-right") echo 'checked="checked"'; ?>></td>
1265
- </tr>
1266
- <tr>
1267
- <td><input type="radio" value="bottom-left" id="slideshow_description_botLeft" name="slideshow_description_position" <?php if ($row->slideshow_description_position == "bottom-left") echo 'checked="checked"'; ?>></td>
1268
- <td><input type="radio" value="bottom-center" id="slideshow_description_botCenter" name="slideshow_description_position" <?php if ($row->slideshow_description_position == "bottom-center") echo 'checked="checked"'; ?>></td>
1269
- <td><input type="radio" value="bottom-right" id="slideshow_description_botRight" name="slideshow_description_position" <?php if ($row->slideshow_description_position == "bottom-right") echo 'checked="checked"'; ?>></td>
1270
- </tr>
1271
- </tbody>
1272
- </table>
1273
- <div class="spider_description"><?php _e("Image description position on slideshow", 'bwg_back'); ?></div>
1274
- </td>
1275
- </tr>
1276
- <tr>
1277
- <td class="spider_label_options">
1278
- <label><?php _e("Enable slideshow Music:", 'bwg_back'); ?> </label>
1279
- </td>
1280
- <td>
1281
- <input type="radio" name="slideshow_enable_music" id="slideshow_enable_music_yes" value="1" <?php if ($row->slideshow_enable_music) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_slideshow_music_url', 'slideshow_enable_music_yes')" /><label for="slideshow_enable_music_yes"><?php _e("Yes", 'bwg_back'); ?></label>
1282
- <input type="radio" name="slideshow_enable_music" id="slideshow_enable_music_no" value="0" <?php if (!$row->slideshow_enable_music) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_slideshow_music_url', 'slideshow_enable_music_no')" /><label for="slideshow_enable_music_no"><?php _e("No", 'bwg_back'); ?></label>
1283
- <div class="spider_description"></div>
1284
- </td>
1285
- </tr>
1286
- <tr id="tr_slideshow_music_url">
1287
- <td class="spider_label_options">
1288
- <label for="slideshow_audio_url"><?php _e("Music url:", 'bwg_back'); ?> </label>
1289
- </td>
1290
- <td>
1291
- <input type="text" id="slideshow_audio_url" name="slideshow_audio_url" style="width: 70%;" value="<?php echo $row->slideshow_audio_url; ?>" style="display:inline-block;" />
1292
- <?php
1293
- $query_url = add_query_arg(array('action' => 'addMusic', 'width' => '700', 'height' => '550', 'extensions' => 'aac,m4a,f4a,mp3,ogg,oga', 'callback' => 'bwg_add_music'), admin_url('admin-ajax.php'));
1294
- $query_url = wp_nonce_url( $query_url, 'addMusic', 'bwg_nonce' );
1295
- $query_url = add_query_arg(array('TB_iframe' => '1'), $query_url );
1296
- ?>
1297
- <a href="<?php echo $query_url; ?>" id="button_add_music" class="button-primary thickbox thickbox-preview"
1298
- title="Add music"
1299
- onclick="return false;"
1300
- style="margin-bottom:5px;">
1301
- <?php _e("Add Music", 'bwg_back'); ?>
1302
- </a>
1303
- <div class="spider_description"><?php _e("Only", 'bwg_back'); ?> .aac,.m4a,.f4a,.mp3,.ogg,.oga <?php _e("formats are supported.", 'bwg_back'); ?></div>
1304
- </td>
1305
- </tr>
1306
- </tbody>
1307
- </table>
1308
- </td>
1309
- </tr>
1310
- </table>
1311
- </div>
1312
 
1313
- <!--Thumbnail options-->
1314
- <div class="spider_div_options" id="div_content_6">
1315
- <table>
1316
- <tbody>
1317
- <tr style="display:none;">
1318
- <td class="spider_label_options">
1319
- <label><?php _e("Masonry:", 'bwg_back'); ?></label>
1320
- </td>
1321
- <td>
1322
- <input type="radio" name="masonry" id="masonry_1" value="horizontal" <?php if ($row->masonry == "horizontal") echo 'checked="checked"'; ?> /><label for="masonry_1"><?php _e("Horizontal", 'bwg_back'); ?></label>
1323
- <input type="radio" name="masonry" id="masonry_0" value="vertical" <?php if ($row->masonry == "vertical") echo 'checked="checked"'; ?> /><label for="masonry_0"><?php _e("Vertical", 'bwg_back'); ?></label>
1324
- <div class="spider_description"></div>
1325
- </td>
1326
- </tr>
1327
- <tr style="display:none;">
1328
- <td class="spider_label_options">
1329
- <label><?php _e("Mosaic:", 'bwg_back'); ?></label>
1330
- </td>
1331
- <td>
1332
- <input type="radio" name="mosaic" id="mosaic_0" value="vertical" <?php if ($row->mosaic == "vertical") echo 'checked="checked"'; ?> /><label for="mosaic_0"><?php _e("Vertical", 'bwg_back'); ?></label>
1333
- <input type="radio" name="mosaic" id="mosaic_1" value="horizontal" <?php if ($row->mosaic == "horizontal") echo 'checked="checked"'; ?> /><label for="mosaic_1"><?php _e("Horizontal", 'bwg_back'); ?></label>
1334
- <div class="spider_description"></div>
1335
- </td>
1336
- </tr>
1337
- <tr style="display:none;">
1338
- <td class="spider_label_options">
1339
- <label><?php _e("Resizable mosaic:", 'bwg_back'); ?></label>
1340
- </td>
1341
- <td>
1342
- <input type="radio" name="resizable_mosaic" id="resizable_mosaic_0" value="0" <?php if ($row->resizable_mosaic == "0") echo 'checked="checked"'; ?> /><label for="resizable_mosaic_0"><?php _e("No", 'bwg_back'); ?></label>
1343
- <input type="radio" name="resizable_mosaic" id="resizable_mosaic_1" value="1" <?php if ($row->resizable_mosaic == "1") echo 'checked="checked"'; ?> /><label for="resizable_mosaic_1"><?php _e("Yes", 'bwg_back'); ?></label>
1344
- <div class="spider_description"></div>
1345
- </td>
1346
- </tr>
1347
- <tr style="display:none;">
1348
- <td class="spider_label_options">
1349
- <label for="mosaic_total_width"><?php _e("Total width of mosaic:", 'bwg_back'); ?> </label>
1350
- </td>
1351
- <td>
1352
- <input type="text" name="mosaic_total_width" id="mosaic_total_width" value="<?php echo $row->mosaic_total_width; ?>" class="spider_int_input" /> %
1353
- <div class="spider_description"><?php _e("Width of mosaic as a percentage of container's width.", 'bwg_back'); ?></div>
1354
- </td>
1355
- </tr>
1356
- <tr>
1357
- <td class="spider_label_options">
1358
- <label for="image_column_number"><?php _e("Number of image columns:", 'bwg_back'); ?> </label>
1359
- </td>
1360
- <td>
1361
- <input type="text" name="image_column_number" id="image_column_number" value="<?php echo $row->image_column_number; ?>" class="spider_int_input" />
1362
- <div class="spider_description"></div>
1363
- </td>
1364
- </tr>
1365
- <tr>
1366
- <td class="spider_label_options">
1367
- <label for="images_per_page"><?php _e("Images per page:", 'bwg_back'); ?> </label>
1368
- </td>
1369
- <td>
1370
- <input type="text" name="images_per_page" id="images_per_page" value="<?php echo $row->images_per_page; ?>" class="spider_int_input" />
1371
- <div class="spider_description"></div>
1372
- </td>
1373
- </tr>
1374
- <tr>
1375
- <td class="spider_label_options">
1376
- <label for="upload_thumb_width"><?php _e("Generated thumbnail dimensions:", 'bwg_back'); ?> </label>
1377
- </td>
1378
- <td>
1379
- <input type="text" name="upload_thumb_width" id="upload_thumb_width" value="<?php echo $row->upload_thumb_width; ?>" class="spider_int_input" /> x
1380
- <input type="text" name="upload_thumb_height" id="upload_thumb_height" value="<?php echo $row->upload_thumb_height; ?>" class="spider_int_input" /> px
1381
- <input type="submit" class="wd-btn wd-btn-primary wd-not-image" onclick="spider_set_input_value('task', 'save'); spider_set_input_value('recreate', 'resize_image_thumb');" value="<?php echo __('Recreate', 'bwg_back'); ?>" />
1382
- <div class="spider_description"><?php _e("The maximum size of the generated thumbnail. Its dimensions should be larger than the ones of the frontend thumbnail.", 'bwg_back'); ?></div>
1383
- </td>
1384
- </tr>
1385
- <tr>
1386
- <td class="spider_label_options">
1387
- <label for="thumb_width"><?php _e("Frontend thumbnail dimensions:", 'bwg_back'); ?> </label>
1388
- </td>
1389
- <td>
1390
- <input type="text" name="thumb_width" id="thumb_width" value="<?php echo $row->thumb_width; ?>" class="spider_int_input" /> x
1391
- <input type="text" name="thumb_height" id="thumb_height" value="<?php echo $row->thumb_height; ?>" class="spider_int_input" /> px
1392
- <div class="spider_description"><?php _e("The default size of the thumbnail which will be displayed in the website", 'bwg_back'); ?></div>
1393
- </td>
1394
- </tr>
1395
- <tr>
1396
- <td class="spider_label_options">
1397
- <label><?php _e("Show image title:", 'bwg_back'); ?></label>
1398
- </td>
1399
- <td>
1400
- <input type="radio" name="image_title_show_hover" id="image_title_show_hover_1" value="hover" <?php if ($row->image_title_show_hover == "hover") echo 'checked="checked"'; ?> /><label for="image_title_show_hover_1"><?php _e("Show on hover", 'bwg_back'); ?></label><br />
1401
- <input type="radio" name="image_title_show_hover" id="image_title_show_hover_0" value="show" <?php if ($row->image_title_show_hover == "show") echo 'checked="checked"'; ?> /><label for="image_title_show_hover_0"><?php _e("Always show", 'bwg_back'); ?></label><br />
1402
- <input type="radio" name="image_title_show_hover" id="image_title_show_hover_2" value="none" <?php if ($row->image_title_show_hover == "none") echo 'checked="checked"'; ?> /><label for="image_title_show_hover_2"><?php _e("Don't show", 'bwg_back'); ?></label>
1403
- <div class="spider_description"></div>
1404
- </td>
1405
- </tr>
1406
- <tr id="tr_thumb_show_name">
1407
- <td class="spider_label_options"><label><?php _e("Show gallery name:", 'bwg_back'); ?> </label></td>
1408
- <td>
1409
- <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"><?php _e("Yes", 'bwg_back'); ?></label>
1410
- <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"><?php _e("No", 'bwg_back'); ?></label>
1411
- <div class="spider_description"></div>
1412
- </td>
1413
- </tr>
1414
- <tr>
1415
- <td class="spider_label_options spider_free_version_label">
1416
- <label><?php _e("Show description in Vertical Masonry view:", 'bwg_back'); ?> </label>
1417
- </td>
1418
- <td>
1419
- <input disabled="disabled" type="radio" name="show_masonry_thumb_description" id="masonry_thumb_desc_1" value="1" <?php if ($row->show_masonry_thumb_description) echo 'checked="checked"'; ?> /><label for="masonry_thumb_desc_1"><?php _e("Yes", 'bwg_back'); ?></label>
1420
- <input disabled="disabled" type="radio" name="show_masonry_thumb_description" id="masonry_thumb_desc_0" value="0" <?php if (!$row->show_masonry_thumb_description) echo 'checked="checked"'; ?> /><label for="masonry_thumb_desc_0"><?php _e("No", 'bwg_back'); ?></label>
1421
- <div style="width: 200px;" class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
1422
- </td>
1423
- </tr>
1424
- <tr>
1425
- <td class="spider_label_options"><label><?php _e("Enable image pagination:", 'bwg_back'); ?> </label></td>
1426
- <td>
1427
- <input type="radio" name="image_enable_page" id="image_enable_page_yes" value="1" <?php if ($row->image_enable_page) echo 'checked="checked"'; ?> /><label for="image_enable_page_yes"><?php _e("Yes", 'bwg_back'); ?></label>
1428
- <input type="radio" name="image_enable_page" id="image_enable_page_no" value="0" <?php if (!$row->image_enable_page) echo 'checked="checked"'; ?> /><label for="image_enable_page_no"><?php _e("No", 'bwg_back'); ?></label>
1429
- <div class="spider_description"></div>
1430
- </td>
1431
- </tr>
1432
- <tr>
1433
- <td class="spider_label_options"><label><?php _e("Thumbnail click action:", 'bwg_back'); ?> </label></td>
1434
- <td>
1435
- <input type="radio" name="thumb_click_action" id="thumb_click_action_1" value="open_lightbox" <?php if ($row->thumb_click_action == 'open_lightbox') echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_thumb_link_target', 'thumb_click_action_1')" /><label for="thumb_click_action_1"><?php _e("Open lightbox", 'bwg_back'); ?></label>
1436
- <input type="radio" name="thumb_click_action" id="thumb_click_action_2" value="redirect_to_url" <?php if ($row->thumb_click_action == 'redirect_to_url') echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_thumb_link_target', 'thumb_click_action_2')" /><label for="thumb_click_action_2"><?php _e("Redirect to url", 'bwg_back'); ?></label>
1437
- <input type="radio" name="thumb_click_action" id="thumb_click_action_3" value="do_nothing" <?php if ($row->thumb_click_action == 'do_nothing') echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_thumb_link_target', 'thumb_click_action_3')" /><label for="thumb_click_action_3"><?php _e("Do Nothing", 'bwg_back'); ?></label>
1438
- <div class="spider_description"></div>
1439
- </td>
1440
- </tr>
1441
- <tr id="tr_thumb_link_target">
1442
- <td class="spider_label_options"><label><?php _e("Open in a new window:", 'bwg_back'); ?> </label></td>
1443
- <td>
1444
- <input type="radio" name="thumb_link_target" id="thumb_link_target_yes" value="1" <?php if ($row->thumb_link_target) echo 'checked="checked"'; ?> /><label for="thumb_link_target_yes"><?php _e("Yes", 'bwg_back'); ?></label>
1445
- <input type="radio" name="thumb_link_target" id="thumb_link_target_no" value="0" <?php if (!$row->thumb_link_target) echo 'checked="checked"'; ?> /><label for="thumb_link_target_no"><?php _e("No", 'bwg_back'); ?></label>
1446
- <div class="spider_description"></div>
1447
- </td>
1448
- </tr>
1449
- <tr>
1450
- <td class="spider_label_options"><label><?php _e("Play icon over the video thumbnail:", 'bwg_back'); ?> </label></td>
1451
- <td>
1452
- <input type="radio" name="play_icon" id="play_icon_yes" value="1" <?php if ($row->play_icon) echo 'checked="checked"'; ?> /><label for="play_icon_yes"><?php _e("Yes", 'bwg_back'); ?></label>
1453
- <input type="radio" name="play_icon" id="play_icon_no" value="0" <?php if (!$row->play_icon) echo 'checked="checked"'; ?> /><label for="play_icon_no"><?php _e("No", 'bwg_back'); ?></label>
1454
- <div class="spider_description"></div>
1455
  </td>
1456
  </tr>
1457
- </tbody>
1458
- </table>
1459
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1460
 
1461
- <!--Image options-->
1462
- <div class="spider_div_options" id="div_content_7">
1463
- <table>
1464
- <tbody>
1465
- <tr>
1466
- <td class="spider_label_options">
1467
- <label><?php _e("Enable image title for Image Browser view:", 'bwg_back'); ?></label>
1468
- </td>
1469
- <td>
1470
- <input type="radio" name="image_browser_title_enable" id="image_browser_title_enable_1" value="1" <?php if ($row->image_browser_title_enable) echo 'checked="checked"'; ?> /><label for="image_browser_title_enable_1"><?php _e("Yes", 'bwg_back'); ?></label>
1471
- <input type="radio" name="image_browser_title_enable" id="image_browser_title_enable_0" value="0" <?php if (!$row->image_browser_title_enable) echo 'checked="checked"'; ?> /><label for="image_browser_title_enable_0"><?php _e("No", 'bwg_back'); ?></label>
1472
- <div class="spider_description"></div>
1473
- </td>
1474
- </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1475
  <tr>
1476
- <td class="spider_label_options">
1477
- <label><?php _e("Enable image description for Image Browser view:", 'bwg_back'); ?></label>
1478
- </td>
1479
- <td>
1480
- <input type="radio" name="image_browser_description_enable" id="image_browser_description_enable_1" value="1" <?php if ($row->image_browser_description_enable) echo 'checked="checked"'; ?> /><label for="image_browser_description_enable_1"><?php _e("Yes", 'bwg_back'); ?></label>
1481
- <input type="radio" name="image_browser_description_enable" id="image_browser_description_enable_0" value="0" <?php if (!$row->image_browser_description_enable) echo 'checked="checked"'; ?> /><label for="image_browser_description_enable_0"><?php _e("No", 'bwg_back'); ?></label>
1482
- <div class="spider_description"></div>
1483
- </td>
1484
- </tr>
1485
- <tr>
1486
- <td class="spider_label_options">
1487
- <label for="image_browser_width"><?php _e("Image width for Image Browser view:", 'bwg_back'); ?></label>
1488
- </td>
1489
- <td>
1490
- <input type="text" name="image_browser_width" id="image_browser_width" value="<?php echo $row->image_browser_width; ?>" class="spider_int_input" /> px
1491
- <div class="spider_description"></div>
1492
- </td>
1493
- </tr>
1494
- <tr>
1495
- <td colspan="2">
1496
- <div style="margin: 0;" class="spider_description spider_free_version"><?php _e("The Blog Style view is disabled in free version.", 'bwg_back'); ?></div>
1497
- </td>
1498
- </tr>
1499
- <tr>
1500
- <td class="spider_label_options spider_free_version_label">
1501
- <label><?php _e("Enable image title for Blog Style view:", 'bwg_back'); ?></label>
1502
- </td>
1503
- <td class="spider_free_version_label">
1504
- <input disabled="disabled" type="radio" name="blog_style_title_enable" id="blog_style_title_enable_1" value="1" <?php if ($row->blog_style_title_enable) echo 'checked="checked"'; ?> /><label for="blog_style_title_enable_1"><?php _e("Yes", 'bwg_back'); ?></label>
1505
- <input disabled="disabled" type="radio" name="blog_style_title_enable" id="blog_style_title_enable_0" value="0" <?php if (!$row->blog_style_title_enable) echo 'checked="checked"'; ?> /><label for="blog_style_title_enable_0"><?php _e("No", 'bwg_back'); ?></label>
1506
- <div class="spider_description"></div>
1507
- </td>
1508
- </tr>
1509
- <tr>
1510
- <td class="spider_label_options spider_free_version_label">
1511
- <label for="blog_style_width"><?php _e("Image width for Blog Style view:", 'bwg_back'); ?></label>
1512
- </td>
1513
- <td class="spider_free_version_label">
1514
- <input disabled="disabled" type="text" name="blog_style_width" id="blog_style_width" value="<?php echo $row->blog_style_width; ?>" class="spider_int_input spider_free_version_label" /> px
1515
- <div class="spider_description"></div>
1516
- </td>
1517
- </tr>
1518
- <tr>
1519
- <td class="spider_label_options spider_free_version_label">
1520
- <label for="blog_style_images_per_page"><?php _e("Images per page in Blog Style view:", 'bwg_back'); ?></label>
1521
- </td>
1522
- <td class="spider_free_version_label">
1523
- <input disabled="disabled" type="text" name="blog_style_images_per_page" id="blog_style_images_per_page" value="<?php echo $row->blog_style_images_per_page; ?>" class="spider_int_input spider_free_version_label" />
1524
- <div class="spider_description"></div>
1525
- </td>
1526
- </tr>
1527
- <tr>
1528
- <td class="spider_label_options spider_free_version_label">
1529
- <label><?php _e("Enable pagination for Blog Style view:", 'bwg_back'); ?></label>
1530
- </td>
1531
- <td class="spider_free_version_label">
1532
- <input disabled="disabled" type="radio" name="blog_style_enable_page" id="blog_style_enable_page_1" value="1" <?php if ($row->blog_style_enable_page) echo 'checked="checked"'; ?> /><label for="blog_style_enable_page_1"><?php _e("Yes", 'bwg_back'); ?></label>
1533
- <input disabled="disabled" type="radio" name="blog_style_enable_page" id="blog_style_enable_page_0" value="0" <?php if (!$row->blog_style_enable_page) echo 'checked="checked"'; ?> /><label for="blog_style_enable_page_0"><?php _e("No", 'bwg_back'); ?></label>
1534
- <div class="spider_description"></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1535
  </td>
1536
  </tr>
1537
- </tbody>
1538
- </table>
1539
- </div>
1540
- <!--Embed options-->
1541
- <div class="spider_div_options" id="div_content_9">
1542
- <table>
1543
- <tbody>
1544
  <tr>
1545
- <td class="spider_label_options spider_free_version_label">
1546
- <label ><?php _e("Gallery autoupdate interval:", 'bwg_back'); ?></label>
1547
- </td>
1548
- <td class="spider_free_version_label">
1549
- <input type="number" disabled="disabled" id="autoupdate_interval_hour" class="spider_int_input" min="0" max="24" value="0" />
1550
- <?php _e("hour", 'bwg_back'); ?>
1551
- <input type="number" disabled="disabled" id="autoupdate_interval_min" class="spider_int_input" min="0" max="59" value="30" />
1552
- <?php _e("min", 'bwg_back'); ?>
1553
- <div class="spider_description spider_free_version"><?php _e("Autoupdatable galleries are disabled in free version.", 'bwg_back'); ?></div>
 
 
 
 
 
 
1554
  </td>
1555
  </tr>
1556
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1557
  <tr>
1558
- <td class="spider_label_options spider_free_version_label">
1559
- <label>Instagram Access Token:</label>
1560
- </td>
1561
- <td class="spider_free_version_label">
1562
- <input id="instagram_client_id" type="text" disabled="disabled" style="display:inline-block; width:100%;" value="" />
1563
- <div class="spider_description spider_free_version">Instagram <?php _e("galleries are disabled in free version.", 'bwg_back'); ?></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1564
  </td>
1565
  </tr>
1566
- </tbody>
1567
- </table>
1568
- </div>
1569
-
1570
- <!-- Carousel-->
1571
- <div class="spider_div_options" id="div_content_10">
1572
- <table style="width: 100%;">
1573
- <tr>
1574
- <td style="width: 50%; vertical-align: top;">
1575
- <table style="display: inline-table;">
1576
- <tbody>
1577
- <tr>
1578
- <td class="spider_label_options spider_free_version_label">
1579
- <label for="carousel_interval"><?php _e("Time interval:", 'bwg_back'); ?> </label>
1580
- </td>
1581
- <td class="spider_free_version_label">
1582
- <input type="text" disabled="disabled" name="carousel_interval" id="carousel_interval" value="<?php echo $row->carousel_interval; ?>" class="spider_int_input" /> sec.
1583
- <div class="spider_description"></div>
1584
- </td>
1585
- </tr>
1586
- <tr>
1587
- <td class="spider_label_options spider_free_version_label">
1588
- <label for="carousel_image_column_number"><?php _e("Max. number of images:", 'bwg_back'); ?> </label>
1589
- </td>
1590
- <td class="spider_free_version_label">
1591
- <input type="text" disabled="disabled" name="carousel_image_column_number" id="carousel_image_column_number" value="<?php echo $row->carousel_image_column_number; ?>" class="spider_int_input" /> sec.
1592
- <div class="spider_description"></div>
1593
- </td>
1594
- </tr>
1595
- <tr>
1596
- <td class="spider_label_options spider_free_version_label">
1597
- <label for="carousel_image_par"><?php _e("Carousel image ratio:", 'bwg_back'); ?> </label>
1598
- </td>
1599
- <td class="spider_free_version_label">
1600
- <input type="text" disabled="disabled" name="carousel_image_par" id="carousel_image_par" value="<?php echo $row->carousel_image_par; ?>" />
1601
- <div class="spider_description"></div>
1602
- </td>
1603
- </tr>
1604
- <tr>
1605
- <td class="spider_label_options spider_free_version_label">
1606
- <label for="carousel_width"><?php _e("Image dimensions:", 'bwg_back'); ?> </label>
1607
- </td>
1608
- <td class="spider_free_version_label">
1609
- <input type="text" disabled="disabled" name="carousel_width" id="carousel_width" value="<?php echo $row->carousel_width; ?>" class="spider_int_input" /> x
1610
- <input type="text" disabled="disabled" name="carousel_height" id="carousel_height" value="<?php echo $row->carousel_height; ?>" class="spider_int_input" /> px
1611
- <div class="spider_description"></div>
1612
- </td>
1613
- </tr>
1614
- <tr>
1615
- <td class="spider_label_options spider_free_version_label">
1616
- <label for="carousel_r_width"><?php _e("Fixed width:", 'bwg_back'); ?> </label>
1617
- </td>
1618
- <td class="spider_free_version_label">
1619
- <input type="text" disabled="disabled" name="carousel_r_width" id="carousel_r_width" value="<?php echo $row->carousel_r_width; ?>" class="spider_int_input" /> px
1620
- </td>
1621
- </tr>
1622
- </tbody>
1623
- </table>
1624
- </td>
1625
- <td style="width: 50%; vertical-align: top;">
1626
- <table style="width: 100%; display: inline-table;">
1627
- <tbody>
1628
- <tr>
1629
- <td class="spider_label_options spider_free_version_label"><label><?php _e("Enable image title:", 'bwg_back'); ?> </label></td>
1630
- <td class="spider_free_version_label">
1631
- <input type="radio" disabled="disabled" name="carousel_enable_title" id="carousel_enable_title_yes" value="1" <?php if ($row->carousel_enable_title) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_carousel_title_position', 'carousel_enable_title_yes')" /><label for="carousel_enable_title_yes"><?php _e("Yes", 'bwg_back'); ?></label>
1632
- <input type="radio" disabled="disabled" name="carousel_enable_title" id="carousel_enable_title_no" value="0" <?php if (!$row->carousel_enable_title) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_carousel_title_position', 'carousel_enable_title_no')" /><label for="carousel_enable_title_no"><?php _e("No", 'bwg_back'); ?></label>
1633
- <div class="spider_description"></div>
1634
- </td>
1635
- </tr>
1636
- <tr>
1637
- <td class="spider_label_options spider_free_version_label">
1638
- <label><?php _e("Enable autoplay:", 'bwg_back'); ?> </label>
1639
- </td>
1640
- <td class="spider_free_version_label">
1641
- <input type="radio" disabled="disabled" name="carousel_enable_autoplay" id="carousel_enable_autoplay_yes" value="1" <?php if ($row->carousel_enable_autoplay) echo 'checked="checked"'; ?> /><label for="carousel_enable_autoplay_yes"><?php _e("Yes", 'bwg_back'); ?></label>
1642
- <input type="radio" disabled="disabled" name="carousel_enable_autoplay" id="carousel_enable_autoplay_no" value="0" <?php if (!$row->carousel_enable_autoplay) echo 'checked="checked"'; ?> /><label for="carousel_enable_autoplay_no"><?php _e("No", 'bwg_back'); ?></label>
1643
- <div class="spider_description"></div>
1644
- </td>
1645
- </tr>
1646
- <tr>
1647
- <td class="spider_label_options spider_free_version_label">
1648
- <label> <?php _e("Container fit:", 'bwg_back'); ?> </label>
1649
- </td>
1650
- <td class="spider_free_version_label">
1651
- <input type="radio" disabled="disabled" name="carousel_fit_containerWidth" id="carousel_fit_containerWidth_yes" value="1" <?php if ($row->carousel_fit_containerWidth) echo 'checked="checked"'; ?> /><label for="carousel_fit_containerWidth_yes"><?php _e("Yes", 'bwg_back'); ?></label>
1652
- <input type="radio" disabled="disabled" name="carousel_fit_containerWidth" id="carousel_fit_containerWidth_no" value="0" <?php if (!$row->carousel_fit_containerWidth) echo 'checked="checked"'; ?> /><label for="carousel_fit_containerWidth_no"><?php _e("No", 'bwg_back'); ?></label>
1653
- <div class="spider_description"></div>
1654
- </td>
1655
- </tr>
1656
- <tr>
1657
- <td class="spider_label_options spider_free_version_label">
1658
- <label> <?php _e("Next/Previous buttons:", 'bwg_back'); ?> </label>
1659
- </td>
1660
- <td class="spider_free_version_label">
1661
- <input type="radio" disabled="disabled" name="carousel_prev_next_butt" id="carousel_prev_next_butt_yes" value="1" <?php if ($row->carousel_prev_next_butt) echo 'checked="checked"'; ?> /><label for="carousel_prev_next_butt_yes"><?php _e("Yes", 'bwg_back'); ?></label>
1662
- <input type="radio" disabled="disabled" name="carousel_prev_next_butt" id="carousel_prev_next_butt_no" value="0" <?php if (!$row->carousel_prev_next_butt) echo 'checked="checked"'; ?> /><label for="carousel_prev_next_butt_no"><?php _e("No", 'bwg_back'); ?></label>
1663
- <div class="spider_description"></div>
1664
- </td>
1665
- </tr>
1666
- <tr>
1667
- <td class="spider_label_options spider_free_version_label">
1668
- <label> <?php _e("Play/Pause button:", 'bwg_back'); ?> </label>
1669
- </td>
1670
- <td class="spider_free_version_label">
1671
- <input type="radio" disabled="disabled" name="carousel_play_pause_butt" id="carousel_play_pause_butt_yes" value="1" <?php if ($row->carousel_play_pause_butt) echo 'checked="checked"'; ?> /><label for="carousel_play_pause_butt_yes"><?php _e("Yes", 'bwg_back'); ?></label>
1672
- <input type="radio" disabled="disabled" name="carousel_play_pause_butt" id="carousel_play_pause_butt_no" value="0" <?php if (!$row->carousel_play_pause_butt) echo 'checked="checked"'; ?> /><label for="carousel_play_pause_butt_no"><?php _e("No", 'bwg_back'); ?></label>
1673
- <div class="spider_description"></div>
1674
- </td>
1675
- </tr>
1676
- </tbody>
1677
- </table>
1678
- </td>
1679
- </tr>
1680
- </table>
1681
- <div class="spider_description spider_free_version"><?php _e("Carousel view is disabled in free version.", 'bwg_back'); ?></div>
1682
  </div>
1683
  </div>
1684
  <input id="task" name="task" type="hidden" value="" />
@@ -1686,7 +1773,8 @@ class BWGViewOptions_bwg {
1686
  <input id="current_id" name="current_id" type="hidden" value="<?php echo $row->id; ?>" />
1687
  <input id="watermark" name="watermark" type="hidden" value="" />
1688
  <script>
1689
- window.onload = bwg_change_option_type('<?php echo isset($_POST['type']) ? esc_html($_POST['type']) : '1'; ?>');
 
1690
  window.onload = bwg_inputs();
1691
  window.onload = bwg_watermark('watermark_type_<?php echo $row->watermark_type ?>');
1692
  window.onload = bwg_built_in_watermark('watermark_type_<?php echo $row->built_in_watermark_type ?>');
@@ -1719,14 +1807,4 @@ class BWGViewOptions_bwg {
1719
  </form>
1720
  <?php
1721
  }
1722
-
1723
- ////////////////////////////////////////////////////////////////////////////////////////
1724
- // Getters & Setters //
1725
- ////////////////////////////////////////////////////////////////////////////////////////
1726
- ////////////////////////////////////////////////////////////////////////////////////////
1727
- // Private Methods //
1728
- ////////////////////////////////////////////////////////////////////////////////////////
1729
- ////////////////////////////////////////////////////////////////////////////////////////
1730
- // Listeners //
1731
- ////////////////////////////////////////////////////////////////////////////////////////
1732
  }
92
  <form method="post" class="wrap bwg_form" action="admin.php?page=options_bwg" style="float: left; width: 99%;">
93
  <?php wp_nonce_field( 'options_bwg', 'bwg_nonce' ); ?>
94
  <span class="option-icon"></span>
95
+ <h2 id="ed_options"><?php _e('Edit options', 'bwg_back'); ?></h2>
96
  <div style="display: inline-block; width: 100%;">
97
  <div style="float: right;">
98
+ <input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-save" type="submit" onclick="if (spider_check_required('title', 'Title')) {return false;}; spider_set_input_value('task', 'save')" value="<?php _e('Save', 'bwg_back'); ?>" />
99
+ <input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-reset" type="submit" onclick="if (confirm('<?php echo addslashes(__('Do you want to reset to default?', 'bwg_back')); ?>')) {
100
  spider_set_input_value('task', 'reset');
101
  } else {
102
  return false;
103
+ }" value="<?php _e('Reset all options', 'bwg_back'); ?>" />
104
  </div>
105
  </div>
106
+ <div class="tab_conteiner">
107
+ <div class="tab_button_wrap option_tab_button_wrap" id="bwg_options" onclick="bwg_change_tab('bwg_options_box');return false;">
108
+ <a id="bwg_standart" class="wd-btn_tabs wd-btn-primary-tabs wd-not-image_gray">
109
+ <div class="bwg_tab_label"><?php _e('Global options', 'bwg_back'); ?></div>
110
+ </a>
111
+ </div>
112
+ <div class="tab_button_wrap default_tab_button_wrap" id="bwg_default_option" onclick="bwg_change_tab('bwg_default_box');return false;">
113
+ <a id="bwg_default" class="wd-btn_tabs wd-btn-primary-tabs wd-not-image_gray">
114
+ <div class="bwg_tab_label">
115
+ <?php _e('Shortcode defaults', 'bwg_back'); ?>
116
+ <small class="bwg_tab_desc"><?php _e('Applies to new shortcodes only', 'bwg_back'); ?></small>
117
+ </div>
118
+ </a>
119
+ </div>
120
+ <input type="hidden" id="type_option" name="type_option" value="<?php echo (isset($_POST["type_option"]) ? esc_html(stripslashes($_POST["type_option"])) : "bwg_default_box"); ?>" />
121
+ </div>
122
+ <div class="bwg_default_box default_option">
123
+ <div style="display: none; width: 100%;" id="display_default_option_panel">
124
+ <div class="options_tab">
125
+ <div id="div_8" class="gallery_type" onclick="bwg_change_option_type('8')"> <?php echo __('Thumbnail options', 'bwg_back'); ?></div>
126
+ <div class="bwg_line_option">|</div>
127
+ <div id="div_9" class="gallery_type" onclick="bwg_change_option_type('9')"> <?php echo __('Lightbox', 'bwg_back'); ?></div>
128
+ <div class="bwg_line_option">|</div>
129
+ <div id="div_10" class="gallery_type" onclick="bwg_change_option_type('10')"> <?php echo __('Slideshow', 'bwg_back'); ?></div>
130
+ <div class="bwg_line_option">|</div>
131
+ <div id="div_11" class="gallery_type" onclick="bwg_change_option_type('11')"> <?php echo __('Album options', 'bwg_back'); ?></div>
132
+ <div class="bwg_line_option">|</div>
133
+ <div id="div_12" class="gallery_type" onclick="bwg_change_option_type('12')"> <?php echo __('Image options', 'bwg_back'); ?></div>
134
+ <div class="bwg_line_option">|</div>
135
+ <div id="div_13" class="gallery_type" onclick="bwg_change_option_type('13')"> <?php echo __('Carousel', 'bwg_back'); ?></div>
136
+ <div class="bwg_line_option">|</div>
137
+ <div id="div_14" class="gallery_type" onclick="bwg_change_option_type('14')"> <?php echo __('Advertisement', 'bwg_back'); ?></div>
138
+ <input type="hidden" id="type_def" name="type_def" value="<?php echo (isset($_POST["type_def"]) ? esc_html(stripslashes($_POST["type_def"])) : "8"); ?>"/>
139
+ </div>
140
+ <!--Thumbnail options-->
141
+ <div class="spider_div_options" id="div_content_8">
142
+ <table>
143
+ <tbody>
144
+ <tr style="display:none;">
145
+ <td class="spider_label_options">
146
+ <label><?php _e("Masonry:", 'bwg_back'); ?></label>
147
+ </td>
148
+ <td>
149
+ <input type="radio" name="masonry" id="masonry_1" value="horizontal" <?php if ($row->masonry == "horizontal") echo 'checked="checked"'; ?> /><label for="masonry_1"><?php _e("Horizontal", 'bwg_back'); ?></label>
150
+ <input type="radio" name="masonry" id="masonry_0" value="vertical" <?php if ($row->masonry == "vertical") echo 'checked="checked"'; ?> /><label for="masonry_0"><?php _e("Vertical", 'bwg_back'); ?></label>
151
+ <div class="spider_description"></div>
152
+ </td>
153
+ </tr>
154
+ <tr style="display:none;">
155
+ <td class="spider_label_options">
156
+ <label><?php _e("Mosaic:", 'bwg_back'); ?></label>
157
+ </td>
158
+ <td>
159
+ <input type="radio" name="mosaic" id="mosaic_0" value="vertical" <?php if ($row->mosaic == "vertical") echo 'checked="checked"'; ?> /><label for="mosaic_0"><?php _e("Vertical", 'bwg_back'); ?></label>
160
+ <input type="radio" name="mosaic" id="mosaic_1" value="horizontal" <?php if ($row->mosaic == "horizontal") echo 'checked="checked"'; ?> /><label for="mosaic_1"><?php _e("Horizontal", 'bwg_back'); ?></label>
161
+ <div class="spider_description"></div>
162
+ </td>
163
+ </tr>
164
+ <tr style="display:none;">
165
+ <td class="spider_label_options">
166
+ <label><?php _e("Resizable mosaic:", 'bwg_back'); ?></label>
167
+ </td>
168
+ <td>
169
+ <input type="radio" name="resizable_mosaic" id="resizable_mosaic_0" value="0" <?php if ($row->resizable_mosaic == "0") echo 'checked="checked"'; ?> /><label for="resizable_mosaic_0"><?php _e("No", 'bwg_back'); ?></label>
170
+ <input type="radio" name="resizable_mosaic" id="resizable_mosaic_1" value="1" <?php if ($row->resizable_mosaic == "1") echo 'checked="checked"'; ?> /><label for="resizable_mosaic_1"><?php _e("Yes", 'bwg_back'); ?></label>
171
+ <div class="spider_description"></div>
172
+ </td>
173
+ </tr>
174
+ <tr style="display:none;">
175
+ <td class="spider_label_options">
176
+ <label for="mosaic_total_width"><?php _e("Total width of mosaic:", 'bwg_back'); ?> </label>
177
+ </td>
178
+ <td>
179
+ <input type="text" name="mosaic_total_width" id="mosaic_total_width" value="<?php echo $row->mosaic_total_width; ?>" class="spider_int_input" /> %
180
+ <div class="spider_description"><?php _e("Width of mosaic as a percentage of container's width.", 'bwg_back'); ?></div>
181
+ </td>
182
+ </tr>
183
+ <tr>
184
+ <td class="spider_label_options">
185
+ <label for="image_column_number"><?php _e("Number of image columns:", 'bwg_back'); ?> </label>
186
+ </td>
187
+ <td>
188
+ <input type="text" name="image_column_number" id="image_column_number" value="<?php echo $row->image_column_number; ?>" class="spider_int_input" />
189
+ <div class="spider_description"></div>
190
+ </td>
191
+ </tr>
192
+ <tr>
193
+ <td class="spider_label_options">
194
+ <label for="images_per_page"><?php _e("Images per page:", 'bwg_back'); ?> </label>
195
+ </td>
196
+ <td>
197
+ <input type="text" name="images_per_page" id="images_per_page" value="<?php echo $row->images_per_page; ?>" class="spider_int_input" />
198
+ <div class="spider_description"></div>
199
+ </td>
200
+ </tr>
201
+ <tr>
202
+ <td class="spider_label_options">
203
+ <label for="thumb_width"><?php _e("Frontend thumbnail dimensions:", 'bwg_back'); ?> </label>
204
+ </td>
205
+ <td>
206
+ <input type="text" name="thumb_width" id="thumb_width" value="<?php echo $row->thumb_width; ?>" class="spider_int_input" /> x
207
+ <input type="text" name="thumb_height" id="thumb_height" value="<?php echo $row->thumb_height; ?>" class="spider_int_input" /> px
208
+ <div class="spider_description"><?php _e("The default size of the thumbnail which will be displayed in the website", 'bwg_back'); ?></div>
209
+ </td>
210
+ </tr>
211
+ <tr>
212
+ <td class="spider_label_options">
213
+ <label><?php _e("Show image title:", 'bwg_back'); ?></label>
214
+ </td>
215
+ <td>
216
+ <input type="radio" name="image_title_show_hover" id="image_title_show_hover_1" value="hover" <?php if ($row->image_title_show_hover == "hover") echo 'checked="checked"'; ?> /><label for="image_title_show_hover_1"><?php _e("Show on hover", 'bwg_back'); ?></label><br />
217
+ <input type="radio" name="image_title_show_hover" id="image_title_show_hover_0" value="show" <?php if ($row->image_title_show_hover == "show") echo 'checked="checked"'; ?> /><label for="image_title_show_hover_0"><?php _e("Always show", 'bwg_back'); ?></label><br />
218
+ <input type="radio" name="image_title_show_hover" id="image_title_show_hover_2" value="none" <?php if ($row->image_title_show_hover == "none") echo 'checked="checked"'; ?> /><label for="image_title_show_hover_2"><?php _e("Don't show", 'bwg_back'); ?></label>
219
+ <div class="spider_description"></div>
220
+ </td>
221
+ </tr>
222
+ <tr>
223
+ <td class="spider_label_options"><label><?php _e("Enable image pagination:", 'bwg_back'); ?> </label></td>
224
+ <td>
225
+ <input type="radio" name="image_enable_page" id="image_enable_page_yes" value="1" <?php if ($row->image_enable_page) echo 'checked="checked"'; ?> /><label for="image_enable_page_yes"><?php _e("Yes", 'bwg_back'); ?></label>
226
+ <input type="radio" name="image_enable_page" id="image_enable_page_no" value="0" <?php if (!$row->image_enable_page) echo 'checked="checked"'; ?> /><label for="image_enable_page_no"><?php _e("No", 'bwg_back'); ?></label>
227
+ <div class="spider_description"></div>
228
+ </td>
229
+ </tr>
230
+ <tr>
231
+ <td class="spider_label_options"><label><?php _e("Thumbnail click action:", 'bwg_back'); ?> </label></td>
232
+ <td>
233
+ <input type="radio" name="thumb_click_action" id="thumb_click_action_1" value="open_lightbox" <?php if ($row->thumb_click_action == 'open_lightbox') echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_thumb_link_target', 'thumb_click_action_1')" /><label for="thumb_click_action_1"><?php _e("Open lightbox", 'bwg_back'); ?></label>
234
+ <input type="radio" name="thumb_click_action" id="thumb_click_action_2" value="redirect_to_url" <?php if ($row->thumb_click_action == 'redirect_to_url') echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_thumb_link_target', 'thumb_click_action_2')" /><label for="thumb_click_action_2"><?php _e("Redirect to url", 'bwg_back'); ?></label>
235
+ <input type="radio" name="thumb_click_action" id="thumb_click_action_3" value="do_nothing" <?php if ($row->thumb_click_action == 'do_nothing') echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_thumb_link_target', 'thumb_click_action_3')" /><label for="thumb_click_action_3"><?php _e("Do Nothing", 'bwg_back'); ?></label>
236
+ <div class="spider_description"></div>
237
+ </td>
238
+ </tr>
239
+ <tr id="tr_thumb_link_target">
240
+ <td class="spider_label_options"><label><?php _e("Open in a new window:", 'bwg_back'); ?> </label></td>
241
+ <td>
242
+ <input type="radio" name="thumb_link_target" id="thumb_link_target_yes" value="1" <?php if ($row->thumb_link_target) echo 'checked="checked"'; ?> /><label for="thumb_link_target_yes"><?php _e("Yes", 'bwg_back'); ?></label>
243
+ <input type="radio" name="thumb_link_target" id="thumb_link_target_no" value="0" <?php if (!$row->thumb_link_target) echo 'checked="checked"'; ?> /><label for="thumb_link_target_no"><?php _e("No", 'bwg_back'); ?></label>
244
+ <div class="spider_description"></div>
245
+ </td>
246
+ </tr>
247
+ </tbody>
248
+ </table>
249
+ </div>
250
+ <!--Lightbox-->
251
+ <div class="spider_div_options" id="div_content_9">
252
+ <table style="width: 100%;">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
253
  <tr>
254
+ <td class="options_left">
255
+ <table style="display: inline-table;">
256
+ <tbody>
257
+ <tr id="tr_popup_full_width">
258
+ <td class="spider_label_options">
259
+ <label><?php _e('Full width lightbox:', 'bwg_back'); ?></label>
260
+ </td>
261
+ <td>
262
+ <input type="radio" name="popup_fullscreen" id="popup_fullscreen_1" value="1" <?php if ($row->popup_fullscreen) echo 'checked="checked"'; ?> onchange="bwg_popup_fullscreen(1)" /><label for="popup_fullscreen_1"><?php _e('Yes', 'bwg_back'); ?></label>
263
+ <input type="radio" name="popup_fullscreen" id="popup_fullscreen_0" value="0" <?php if (!$row->popup_fullscreen) echo 'checked="checked"'; ?> onchange="bwg_popup_fullscreen(0)" /><label for="popup_fullscreen_0"><?php _e('No', 'bwg_back'); ?></label>
264
+ <div class="spider_description"><?php _e('Enable full width feature for the lightbox.', 'bwg_back'); ?></div>
265
+ </td>
266
+ </tr>
267
+ <tr id="tr_popup_dimensions" >
268
+ <td class="spider_label_options">
269
+ <label for="popup_width"><?php _e('Lightbox dimensions:', 'bwg_back'); ?></label>
270
+ </td>
271
+ <td>
272
+ <input type="text" name="popup_width" id="popup_width" value="<?php echo $row->popup_width; ?>" class="spider_int_input" /> x
273
+ <input type="text" name="popup_height" id="popup_height" value="<?php echo $row->popup_height; ?>" class="spider_int_input" /> px
274
+ <div class="spider_description"></div>
275
+ </td>
276
+ </tr>
277
+ <tr>
278
+ <td class="spider_label_options">
279
+ <label for="popup_type"><?php _e('Lightbox effect:', 'bwg_back'); ?></label>
280
+ </td>
281
+ <td>
282
+ <select class="select_icon" name="popup_type" id="popup_type" style="width:120px;">
283
+ <?php
284
+ foreach ($effects as $key => $effect) {
285
+ ?>
286
+ <option value="<?php echo $key; ?>" <?php echo ($key != 'none' && $key != 'fade') ? 'disabled="disabled" title="'.__("This effect is disabled in free version.", 'bwg_back').'"' : ''; ?> <?php if ($row->popup_type == $key) echo 'selected="selected"'; ?>><?php echo __($effect,"bwg_back"); ?></option>
287
+ <?php
288
+ }
289
+ ?>
290
+ </select>
291
+ <div class="spider_description"></div>
292
+ </td>
293
+ </tr>
294
+ <tr>
295
+ <td class="spider_label_options">
296
+ <label for="popup_effect_duration"><?php echo __('Effect duration:', 'bwg_back'); ?> </label>
297
+ </td>
298
+ <td>
299
+ <input type="text" name="popup_effect_duration" id="popup_effect_duration" value="<?php echo $row->popup_effect_duration; ?>" class="spider_int_input" /> sec.
300
+ <div class="spider_description"></div>
301
+ </td>
302
+ </tr>
303
+ <tr id="tr_popup_autoplay">
304
+ <td class="spider_label_options">
305
+ <label><?php _e('Lightbox autoplay:', 'bwg_back'); ?> </label>
306
+ </td>
307
+ <td>
308
+ <input type="radio" name="popup_autoplay" id="popup_autoplay_1" value="1" <?php if ($row->popup_autoplay) echo 'checked="checked"'; ?> /><label for="popup_autoplay_1"><?php _e('Yes', 'bwg_back'); ?></label>
309
+ <input type="radio" name="popup_autoplay" id="popup_autoplay_0" value="0" <?php if (!$row->popup_autoplay) echo 'checked="checked"'; ?> /><label for="popup_autoplay_0"><?php _e('No', 'bwg_back'); ?></label>
310
+ <div class="spider_description"></div>
311
+ </td>
312
+ </tr>
313
+ <tr>
314
+ <td class="spider_label_options">
315
+ <label for="popup_interval"><?php _e('Time interval:', 'bwg_back'); ?></label>
316
+ </td>
317
+ <td>
318
+ <input type="text" name="popup_interval" id="popup_interval" value="<?php echo $row->popup_interval; ?>" class="spider_int_input" /> sec.
319
+ <div class="spider_description"></div>
320
+ </td>
321
+ </tr>
322
+ <tr>
323
+ <td class="spider_label_options">
324
+ <label><?php _e('Enable filmstrip:', 'bwg_back'); ?></label>
325
+ </td>
326
+ <td>
327
+ <input disabled="disabled" type="radio" name="popup_enable_filmstrip" id="popup_enable_filmstrip_1" value="1" <?php if ($row->popup_enable_filmstrip ) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_popup_filmstrip_height', 'popup_enable_filmstrip_1')" /><label for="popup_enable_filmstrip_1"><?php _e("Yes", 'bwg_back'); ?></label>
328
+ <input disabled="disabled" type="radio" name="popup_enable_filmstrip" id="popup_enable_filmstrip_0" value="0" <?php if (!$row->popup_enable_filmstrip ) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_popup_filmstrip_height', 'popup_enable_filmstrip_0')" /><label for="popup_enable_filmstrip_0"><?php _e("No", 'bwg_back'); ?></label>
329
+ <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
330
+ </td>
331
+ </tr>
332
+ <tr id="tr_popup_filmstrip_height">
333
+ <td class="spider_label_options spider_free_version_label">
334
+ <label for="popup_filmstrip_height"><?php _e("Filmstrip size:", 'bwg_back'); ?></label>
335
+ </td>
336
+ <td class="spider_free_version_label">
337
+ <input disabled="disabled" type="text" name="popup_filmstrip_height" id="popup_filmstrip_height" value="<?php echo $row->popup_filmstrip_height; ?>" class="spider_int_input spider_free_version_label" /> px
338
+ <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
339
+ </td>
340
+ </tr>
341
+ <tr id="tr_popup_hit_counter">
342
+ <td class="spider_label_options spider_free_version_label">
343
+ <label><?php _e("Display hit counter:", 'bwg_back'); ?></label>
344
+ </td>
345
+ <td>
346
+ <input disabled="disabled" type="radio" name="popup_hit_counter" id="popup_hit_counter_1" value="1" <?php if ($row->popup_hit_counter) echo 'checked="checked"'; ?> /><label for="popup_hit_counter_1"><?php _e("Yes", 'bwg_back'); ?></label>
347
+ <input disabled="disabled" type="radio" name="popup_hit_counter" id="popup_hit_counter_0" value="0" <?php if (!$row->popup_hit_counter) echo 'checked="checked"'; ?> /><label for="popup_hit_counter_0"><?php _e("No", 'bwg_back'); ?></label>
348
+ <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
349
+ </td>
350
+ </tr>
351
+ <tr>
352
+ <td class="spider_label_options">
353
+ <label><?php _e("Enable control buttons:", 'bwg_back'); ?></label>
354
+ </td>
355
+ <td>
356
+ <input type="radio" name="popup_enable_ctrl_btn" id="popup_enable_ctrl_btn_1" value="1" <?php if ($row->popup_enable_ctrl_btn) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_popup_fullscreen', 'popup_enable_ctrl_btn_1');
357
+ bwg_enable_disable('', 'tr_popup_info', 'popup_enable_ctrl_btn_1');
358
+ bwg_enable_disable('', 'tr_popup_comment', 'popup_enable_ctrl_btn_1');
359
+ bwg_enable_disable('', 'tr_popup_facebook', 'popup_enable_ctrl_btn_1');
360
+ bwg_enable_disable('', 'tr_popup_twitter', 'popup_enable_ctrl_btn_1');
361
+ bwg_enable_disable('', 'tr_popup_google', 'popup_enable_ctrl_btn_1');
362
+ bwg_enable_disable('', 'tr_popup_pinterest', 'popup_enable_ctrl_btn_1');
363
+ bwg_enable_disable('', 'tr_popup_tumblr', 'popup_enable_ctrl_btn_1');
364
+ bwg_enable_disable('', 'tr_comment_moderation', 'comment_moderation_1');
365
+ bwg_enable_disable('', 'tr_popup_email', 'popup_enable_ctrl_btn_1');
366
+ bwg_enable_disable('', 'tr_popup_captcha', 'popup_enable_ctrl_btn_1');
367
+ bwg_enable_disable('', 'tr_popup_download', 'popup_enable_ctrl_btn_1');
368
+ bwg_enable_disable('', 'tr_popup_fullsize_image', 'popup_enable_ctrl_btn_1');" /><label for="popup_enable_ctrl_btn_1"><?php _e("Yes", 'bwg_back'); ?></label>
369
+ <input type="radio" name="popup_enable_ctrl_btn" id="popup_enable_ctrl_btn_0" value="0" <?php if (!$row->popup_enable_ctrl_btn) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_popup_fullscreen', 'popup_enable_ctrl_btn_0');
370
+ bwg_enable_disable('none', 'tr_popup_info', 'popup_enable_ctrl_btn_0');
371
+ bwg_enable_disable('none', 'tr_popup_comment', 'popup_enable_ctrl_btn_0');
372
+ bwg_enable_disable('none', 'tr_popup_facebook', 'popup_enable_ctrl_btn_0');
373
+ bwg_enable_disable('none', 'tr_popup_twitter', 'popup_enable_ctrl_btn_0');
374
+ bwg_enable_disable('none', 'tr_popup_google', 'popup_enable_ctrl_btn_0');
375
+ bwg_enable_disable('none', 'tr_popup_pinterest', 'popup_enable_ctrl_btn_0');
376
+ bwg_enable_disable('none', 'tr_popup_tumblr', 'popup_enable_ctrl_btn_0');
377
+ bwg_enable_disable('none', 'tr_comment_moderation', 'comment_moderation_0');
378
+ bwg_enable_disable('none', 'tr_popup_email', 'popup_enable_ctrl_btn_0');
379
+ bwg_enable_disable('none', 'tr_popup_captcha', 'popup_enable_ctrl_btn_0');
380
+ bwg_enable_disable('none', 'tr_popup_download', 'popup_enable_ctrl_btn_0');
381
+ bwg_enable_disable('none', 'tr_popup_fullsize_image', 'popup_enable_ctrl_btn_0');" /><label for="popup_enable_ctrl_btn_0"><?php _e("No", 'bwg_back'); ?></label>
382
+ <div class="spider_description"></div>
383
+ </td>
384
+ </tr>
385
+ <tr id="tr_popup_fullscreen">
386
+ <td class="spider_label_options">
387
+ <label><?php _e("Enable fullscreen:", 'bwg_back'); ?></label>
388
+ </td>
389
+ <td>
390
+ <input type="radio" name="popup_enable_fullscreen" id="popup_enable_fullscreen_1" value="1" <?php if ($row->popup_enable_fullscreen) echo 'checked="checked"'; ?> /><label for="popup_enable_fullscreen_1"><?php _e("Yes", 'bwg_back'); ?></label>
391
+ <input type="radio" name="popup_enable_fullscreen" id="popup_enable_fullscreen_0" value="0" <?php if (!$row->popup_enable_fullscreen) echo 'checked="checked"'; ?> /><label for="popup_enable_fullscreen_0"><?php _e("No", 'bwg_back'); ?></label>
392
+ <div class="spider_description"></div>
393
+ </td>
394
+ </tr>
395
+ <tr id="tr_popup_info">
396
+ <td class="spider_label_options">
397
+ <label><?php _e("Enable info:", 'bwg_back'); ?></label>
398
+ </td>
399
+ <td>
400
+ <input type="radio" name="popup_enable_info" id="popup_enable_info_1" value="1" <?php if ($row->popup_enable_info) echo 'checked="checked"'; ?> /><label for="popup_enable_info_1"><?php _e("Yes", 'bwg_back'); ?></label>
401
+ <input type="radio" name="popup_enable_info" id="popup_enable_info_0" value="0" <?php if (!$row->popup_enable_info) echo 'checked="checked"'; ?> /><label for="popup_enable_info_0"><?php _e("No", 'bwg_back'); ?></label>
402
+ <div class="spider_description"></div>
403
+ </td>
404
+ </tr>
405
+ <tr id="tr_popup_info_always_show">
406
+ <td class="spider_label_options">
407
+ <label><?php _e("Display info by default:", 'bwg_back'); ?></label>
408
+ </td>
409
+ <td>
410
+ <input type="radio" name="popup_info_always_show" id="popup_info_always_show_1" value="1" <?php if ($row->popup_info_always_show) echo 'checked="checked"'; ?> /><label for="popup_info_always_show_1"><?php _e("Yes", 'bwg_back'); ?></label>
411
+ <input type="radio" name="popup_info_always_show" id="popup_info_always_show_0" value="0" <?php if (!$row->popup_info_always_show) echo 'checked="checked"'; ?> /><label for="popup_info_always_show_0"><?php _e("No", 'bwg_back'); ?></label>
412
+ <div class="spider_description"></div>
413
+ </td>
414
+ </tr>
415
+ <tr id="tr_popup_info_full_width">
416
+ <td class="spider_label_options">
417
+ <label><?php _e("Full width info:", 'bwg_back'); ?></label>
418
+ </td>
419
+ <td>
420
+ <input type="radio" name="popup_info_full_width" id="popup_info_full_width_1" value="1" <?php if ($row->popup_info_full_width) echo 'checked="checked"'; ?> /><label for="popup_info_full_width_1"><?php _e("Yes", 'bwg_back'); ?></label>
421
+ <input type="radio" name="popup_info_full_width" id="popup_info_full_width_0" value="0" <?php if (!$row->popup_info_full_width) echo 'checked="checked"'; ?> /><label for="popup_info_full_width_0"><?php _e("No", 'bwg_back'); ?></label>
422
+ <div class="spider_description"><?php _e("Display image information based on the lightbox dimensions.", 'bwg_back'); ?></div>
423
+ </td>
424
+ </tr>
425
+ </tbody>
426
+ </table>
427
+ </td>
428
+ <td class="options_right">
429
+ <table style="display: inline-table;">
430
+ <tbody>
431
+ <tr id="tr_popup_rate">
432
+ <td class="spider_label_options spider_free_version_label">
433
+ <label><?php _e("Enable rating:", 'bwg_back'); ?></label>
434
+ </td>
435
+ <td>
436
+ <input disabled="disabled" type="radio" name="popup_enable_rate" id="popup_enable_rate_1" value="1" <?php if ($row->popup_enable_rate) echo 'checked="checked"'; ?> /><label for="popup_enable_rate_1"><?php _e("Yes", 'bwg_back'); ?></label>
437
+ <input disabled="disabled" type="radio" name="popup_enable_rate" id="popup_enable_rate_0" value="0" <?php if (!$row->popup_enable_rate) echo 'checked="checked"'; ?> /><label for="popup_enable_rate_0"><?php _e("No", 'bwg_back'); ?></label>
438
+ <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
439
+ </td>
440
+ </tr>
441
+ <tr id="tr_popup_comment">
442
+ <td class="spider_label_options spider_free_version_label">
443
+ <label><?php _e("Enable comments:", 'bwg_back'); ?></label>
444
+ </td>
445
+ <td>
446
+ <input disabled="disabled" type="radio" name="popup_enable_comment" id="popup_enable_comment_1" value="1" <?php if ($row->popup_enable_comment) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_comment_moderation', 'popup_enable_comment_1');
447
+ bwg_enable_disable('', 'tr_popup_email', 'popup_enable_comment_1');
448
+ bwg_enable_disable('', 'tr_popup_captcha', 'popup_enable_comment_1');" /><label for="popup_enable_comment_1"><?php _e("Yes", 'bwg_back'); ?></label>
449
+ <input disabled="disabled" type="radio" name="popup_enable_comment" id="popup_enable_comment_0" value="0" <?php if (!$row->popup_enable_comment) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_comment_moderation', 'popup_enable_comment_0');
450
+ bwg_enable_disable('none', 'tr_popup_email', 'popup_enable_comment_0');
451
+ bwg_enable_disable('none', 'tr_popup_captcha', 'popup_enable_comment_0');" /><label for="popup_enable_comment_0"><?php _e("No", 'bwg_back'); ?></label>
452
+ <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
453
+ </td>
454
+ </tr>
455
+ <tr id="tr_comment_moderation">
456
+ <td class="spider_label_options spider_free_version_label">
457
+ <label><?php _e("Enable comments moderation:", 'bwg_back'); ?></label>
458
+ </td>
459
+ <td>
460
+ <input disabled="disabled" type="radio" name="comment_moderation" id="comment_moderation_1" value="1" <?php if ($row->comment_moderation) echo 'checked="checked"'; ?> /><label for="comment_moderation_1"><?php _e("Yes", 'bwg_back'); ?></label>
461
+ <input disabled="disabled" type="radio" name="comment_moderation" id="comment_moderation_0" value="0" <?php if (!$row->comment_moderation) echo 'checked="checked"'; ?> /><label for="comment_moderation_0"><?php _e("No", 'bwg_back'); ?></label>
462
+ <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
463
+ </td>
464
+ </tr>
465
+ <tr id="tr_popup_facebook">
466
+ <td class="spider_label_options spider_free_version_label">
467
+ <label><?php _e("Enable Facebook button:", 'bwg_back'); ?></label>
468
+ </td>
469
+ <td>
470
+ <input disabled="disabled" type="radio" name="popup_enable_facebook" id="popup_enable_facebook_1" value="1" <?php if ($row->popup_enable_facebook) echo 'checked="checked"'; ?> /><label for="popup_enable_facebook_1"><?php _e("Yes", 'bwg_back'); ?></label>
471
+ <input disabled="disabled" type="radio" name="popup_enable_facebook" id="popup_enable_facebook_0" value="0" <?php if (!$row->popup_enable_facebook) echo 'checked="checked"'; ?> /><label for="popup_enable_facebook_0"><?php _e("No", 'bwg_back'); ?></label>
472
+ <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
473
+ </td>
474
+ </tr>
475
+ <tr id="tr_popup_twitter">
476
+ <td class="spider_label_options spider_free_version_label">
477
+ <label><?php _e("Enable Twitter button:", 'bwg_back'); ?></label>
478
+ </td>
479
+ <td>
480
+ <input disabled="disabled" type="radio" name="popup_enable_twitter" id="popup_enable_facebook_1" value="1" <?php if ($row->popup_enable_twitter) echo 'checked="checked"'; ?> /><label for="popup_enable_twitter_1"><?php _e("Yes", 'bwg_back'); ?></label>
481
+ <input disabled="disabled" type="radio" name="popup_enable_twitter" id="popup_enable_facebook_0" value="0" <?php if (!$row->popup_enable_twitter) echo 'checked="checked"'; ?> /><label for="popup_enable_twitter_0"><?php _e("No", 'bwg_back'); ?></label>
482
+ <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
483
+ </td>
484
+ </tr>
485
+ <tr id="tr_popup_google">
486
+ <td class="spider_label_options spider_free_version_label">
487
+ <label><?php _e("Enable Google+ button:", 'bwg_back'); ?></label>
488
+ </td>
489
+ <td>
490
+ <input disabled="disabled" type="radio" name="popup_enable_google" id="popup_enable_google_1" value="1" <?php if ($row->popup_enable_google) echo 'checked="checked"'; ?> /><label for="popup_enable_google_1"><?php _e("Yes", 'bwg_back'); ?></label>
491
+ <input disabled="disabled" type="radio" name="popup_enable_google" id="popup_enable_google_0" value="0" <?php if (!$row->popup_enable_google) echo 'checked="checked"'; ?> /><label for="popup_enable_google_0"><?php _e("No", 'bwg_back'); ?></label>
492
+ <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
493
+ </td>
494
+ </tr>
495
+ <tr id="tr_popup_pinterest">
496
+ <td class="spider_label_options spider_free_version_label">
497
+ <label><?php _e("Enable Pinterest button:", 'bwg_back'); ?></label>
498
+ </td>
499
+ <td>
500
+ <input disabled="disabled" type="radio" name="popup_enable_pinterest" id="popup_enable_pinterest_1" value="1" <?php if ($row->popup_enable_pinterest) echo 'checked="checked"'; ?> /><label for="popup_enable_pinterest_1"><?php _e("Yes", 'bwg_back'); ?></label>
501
+ <input disabled="disabled" type="radio" name="popup_enable_pinterest" id="popup_enable_pinterest_0" value="0" <?php if (!$row->popup_enable_pinterest) echo 'checked="checked"'; ?> /><label for="popup_enable_pinterest_0"><?php _e("No", 'bwg_back'); ?></label>
502
+ <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
503
+ </td>
504
+ </tr>
505
+ <tr id="tr_popup_tumblr">
506
+ <td class="spider_label_options spider_free_version_label">
507
+ <label><?php _e("Enable Tumblr button:", 'bwg_back'); ?></label>
508
+ </td>
509
+ <td>
510
+ <input disabled="disabled" type="radio" name="popup_enable_tumblr" id="popup_enable_tumblr_1" value="1" <?php if ($row->popup_enable_tumblr) echo 'checked="checked"'; ?> /><label for="popup_enable_tumblr_1"><?php _e("Yes", 'bwg_back'); ?></label>
511
+ <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"><?php _e("No", 'bwg_back'); ?></label>
512
+ <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
513
+ </td>
514
+ </tr>
515
+ </tbody>
516
+ </table>
517
  </td>
518
  </tr>
519
+ </table>
520
+ </div>
521
+ <!--Slideshow-->
522
+ <div class="spider_div_options" id="div_content_10">
523
+ <table style="width: 100%;">
524
  <tr>
525
+ <td class="options_left">
526
+ <table style="display: inline-table;">
527
+ <tbody>
528
+ <tr>
529
+ <td class="spider_label_options">
530
+ <label for="slideshow_type"><?php _e("Slideshow effect:", 'bwg_back'); ?> </label>
531
+ </td>
532
+ <td>
533
+ <select class="select_icon" name="slideshow_type" id="slideshow_type" style="width:120px;">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
534
  <?php
535
+ foreach ($effects as $key => $effect) {
536
+ ?>
537
+ <option value="<?php echo $key; ?>" <?php echo ($key != 'none' && $key != 'fade') ? 'disabled="disabled" title="This effect is disabled in free version."' : ''; ?> <?php if ($row->slideshow_type == $key) echo 'selected="selected"'; ?>><?php echo $effect; ?></option>
538
+ <?php
539
+ }
540
  ?>
541
+ </select>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
542
  <div class="spider_description"></div>
543
+ </td>
544
+ </tr>
545
+ <tr>
546
+ <td class="spider_label_options">
547
+ <label for="slideshow_effect_duration"><?php echo __('Effect duration:', 'bwg_back'); ?> </label>
548
+ </td>
549
+ <td>
550
+ <input type="text" name="slideshow_effect_duration" id="slideshow_effect_duration" value="<?php echo $row->slideshow_effect_duration; ?>" class="spider_int_input" /> sec.
551
+ <div class="spider_description"></div>
552
+ </td>
553
+ </tr>
554
+ <tr>
555
+ <td class="spider_label_options">
556
+ <label for="slideshow_interval"><?php _e("Time interval:", 'bwg_back'); ?> </label>
557
+ </td>
558
+ <td>
559
+ <input type="text" name="slideshow_interval" id="slideshow_interval" value="<?php echo $row->slideshow_interval; ?>" class="spider_int_input" /> sec.
560
+ <div class="spider_description"></div>
561
+ </td>
562
+ </tr>
563
+ <tr>
564
+ <td class="spider_label_options">
565
+ <label for="slideshow_width"><?php _e("Slideshow dimensions:", 'bwg_back'); ?> </label>
566
+ </td>
567
+ <td>
568
+ <input type="text" name="slideshow_width" id="slideshow_width" value="<?php echo $row->slideshow_width; ?>" class="spider_int_input" /> x
569
+ <input type="text" name="slideshow_height" id="slideshow_height" value="<?php echo $row->slideshow_height; ?>" class="spider_int_input" /> px
570
+ <div class="spider_description"></div>
571
+ </td>
572
+ </tr>
573
+ <tr>
574
+ <td class="spider_label_options">
575
+ <label><?php _e("Enable autoplay:", 'bwg_back'); ?> </label>
576
+ </td>
577
+ <td>
578
+ <input type="radio" name="slideshow_enable_autoplay" id="slideshow_enable_autoplay_yes" value="1" <?php if ($row->slideshow_enable_autoplay) echo 'checked="checked"'; ?> /><label for="slideshow_enable_autoplay_yes"><?php _e("Yes", 'bwg_back'); ?></label>
579
+ <input type="radio" name="slideshow_enable_autoplay" id="slideshow_enable_autoplay_no" value="0" <?php if (!$row->slideshow_enable_autoplay) echo 'checked="checked"'; ?> /><label for="slideshow_enable_autoplay_no"><?php _e("No", 'bwg_back'); ?></label>
580
+ <div class="spider_description"></div>
581
+ </td>
582
+ </tr>
583
+ <tr>
584
+ <td class="spider_label_options">
585
+ <label><?php _e("Enable shuffle:", 'bwg_back'); ?> </label>
586
+ </td>
587
+ <td>
588
+ <input type="radio" name="slideshow_enable_shuffle" id="slideshow_enable_shuffle_yes" value="1" <?php if ($row->slideshow_enable_shuffle) echo 'checked="checked"'; ?> /><label for="slideshow_enable_shuffle_yes"><?php _e("Yes", 'bwg_back'); ?></label>
589
+ <input type="radio" name="slideshow_enable_shuffle" id="slideshow_enable_shuffle_no" value="0" <?php if (!$row->slideshow_enable_shuffle) echo 'checked="checked"'; ?> /><label for="slideshow_enable_shuffle_no"><?php _e("No", 'bwg_back'); ?></label>
590
+ <div class="spider_description"></div>
591
+ </td>
592
+ </tr>
593
+ <tr>
594
+ <td class="spider_label_options">
595
+ <label><?php _e("Enable control buttons:", 'bwg_back'); ?> </label>
596
+ </td>
597
+ <td>
598
+ <input type="radio" name="slideshow_enable_ctrl" id="slideshow_enable_ctrl_yes" value="1" <?php if ($row->slideshow_enable_ctrl) echo 'checked="checked"'; ?> /><label for="slideshow_enable_ctrl_yes"><?php _e("Yes", 'bwg_back'); ?></label>
599
+ <input type="radio" name="slideshow_enable_ctrl" id="slideshow_enable_ctrl_no" value="0" <?php if (!$row->slideshow_enable_ctrl) echo 'checked="checked"'; ?> /><label for="slideshow_enable_ctrl_no"><?php _e("No", 'bwg_back'); ?></label>
600
+ <div class="spider_description"></div>
601
+ </td>
602
+ </tr>
603
+ <tr>
604
+ <td class="spider_label_options spider_free_version_label"><label><?php _e("Enable slideshow filmstrip:", 'bwg_back'); ?> </label></td>
605
+ <td>
606
+ <input disabled="disabled" type="radio" name="slideshow_enable_filmstrip" id="slideshow_enable_filmstrip_yes" value="1" <?php if ($row->slideshow_enable_filmstrip) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_slideshow_filmstrip_height', 'slideshow_enable_filmstrip_yes')" /><label for="slideshow_enable_filmstrip_yes"><?php _e("Yes", 'bwg_back'); ?></label>
607
+ <input disabled="disabled" type="radio" name="slideshow_enable_filmstrip" id="slideshow_enable_filmstrip_no" value="0" <?php if (!$row->slideshow_enable_filmstrip) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_slideshow_filmstrip_height', 'slideshow_enable_filmstrip_no')" /><label for="slideshow_enable_filmstrip_no"><?php _e("No", 'bwg_back'); ?></label>
608
+ <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
609
+ </td>
610
+ </tr>
611
+ <tr id="tr_slideshow_filmstrip_height">
612
+ <td class="spider_label_options spider_free_version_label"><label for="slideshow_filmstrip_height"><?php _e("Slideshow filmstrip size:", 'bwg_back'); ?> </label></td>
613
+ <td class="spider_free_version_label">
614
+ <input disabled="disabled" type="text" name="slideshow_filmstrip_height" id="slideshow_filmstrip_height" value="<?php echo $row->slideshow_filmstrip_height; ?>" class="spider_int_input spider_free_version_label" /> px
615
+ <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
616
+ </td>
617
+ </tr>
618
+ </tbody>
619
+ </table>
620
+ </td>
621
+ <td class="options_right">
622
+ <table style="width: 100%; display: inline-table;">
623
+ <tbody>
624
+ <tr>
625
+ <td class="spider_label_options"><label><?php _e("Enable image title:", 'bwg_back'); ?> </label></td>
626
+ <td>
627
+ <input type="radio" name="slideshow_enable_title" id="slideshow_enable_title_yes" value="1" <?php if ($row->slideshow_enable_title) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_slideshow_title_position', 'slideshow_enable_title_yes')" /><label for="slideshow_enable_title_yes"><?php _e("Yes", 'bwg_back'); ?></label>
628
+ <input type="radio" name="slideshow_enable_title" id="slideshow_enable_title_no" value="0" <?php if (!$row->slideshow_enable_title) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_slideshow_title_position', 'slideshow_enable_title_no')" /><label for="slideshow_enable_title_no"><?php _e("No", 'bwg_back'); ?></label>
629
+ <div class="spider_description"></div>
630
+ </td>
631
+ </tr>
632
+ <tr id="tr_slideshow_title_position">
633
+ <td class="spider_label_options"><label><?php _e("Title position:", 'bwg_back'); ?> </label></td>
634
+ <td>
635
+ <table class="bwg_position_table">
636
+ <tbody>
637
+ <tr>
638
+ <td><input type="radio" value="top-left" id="slideshow_title_topLeft" name="slideshow_title_position" <?php if ($row->slideshow_title_position == "top-left") echo 'checked="checked"'; ?>></td>
639
+ <td><input type="radio" value="top-center" id="slideshow_title_topCenter" name="slideshow_title_position" <?php if ($row->slideshow_title_position == "top-center") echo 'checked="checked"'; ?>></td>
640
+ <td><input type="radio" value="top-right" id="slideshow_title_topRight" name="slideshow_title_position" <?php if ($row->slideshow_title_position == "top-right") echo 'checked="checked"'; ?>></td>
641
+ </tr>
642
+ <tr>
643
+ <td><input type="radio" value="middle-left" id="slideshow_title_midLeft" name="slideshow_title_position" <?php if ($row->slideshow_title_position == "middle-left") echo 'checked="checked"'; ?>></td>
644
+ <td><input type="radio" value="middle-center" id="slideshow_title_midCenter" name="slideshow_title_position" <?php if ($row->slideshow_title_position == "middle-center") echo 'checked="checked"'; ?>></td>
645
+ <td><input type="radio" value="middle-right" id="slideshow_title_midRight" name="slideshow_title_position" <?php if ($row->slideshow_title_position == "middle-right") echo 'checked="checked"'; ?>></td>
646
+ </tr>
647
+ <tr>
648
+ <td><input type="radio" value="bottom-left" id="slideshow_title_botLeft" name="slideshow_title_position" <?php if ($row->slideshow_title_position == "bottom-left") echo 'checked="checked"'; ?>></td>
649
+ <td><input type="radio" value="bottom-center" id="slideshow_title_botCenter" name="slideshow_title_position" <?php if ($row->slideshow_title_position == "bottom-center") echo 'checked="checked"'; ?>></td>
650
+ <td><input type="radio" value="bottom-right" id="slideshow_title_botRight" name="slideshow_title_position" <?php if ($row->slideshow_title_position == "bottom-right") echo 'checked="checked"'; ?>></td>
651
+ </tr>
652
+ </tbody>
653
+ </table>
654
+ <div class="spider_description"><?php _e("Image title position on slideshow", 'bwg_back'); ?></div>
655
+ </td>
656
+ </tr>
657
+ <tr id="tr_slideshow_full_width_title">
658
+ <td class="spider_label_options">
659
+ <label><?php _e("Full width title:", 'bwg_back'); ?></label>
660
+ </td>
661
+ <td>
662
+ <input type="radio" name="slideshow_title_full_width" id="slideshow_title_full_width_1" value="1" <?php if ($row->slideshow_title_full_width) echo 'checked="checked"'; ?> /><label for="slideshow_title_full_width_1"><?php _e("Yes", 'bwg_back'); ?></label>
663
+ <input type="radio" name="slideshow_title_full_width" id="slideshow_title_full_width_0" value="0" <?php if (!$row->slideshow_title_full_width) echo 'checked="checked"'; ?> /><label for="slideshow_title_full_width_0"><?php _e("No", 'bwg_back'); ?></label>
664
+ <div class="spider_description"><?php _e("Display image title based on the slideshow dimensions.", 'bwg_back'); ?></div>
665
+ </td>
666
+ </tr>
667
+ <tr>
668
+ <td class="spider_label_options"><label><?php _e("Enable image description: ", 'bwg_back'); ?></label></td>
669
+ <td>
670
+ <input type="radio" name="slideshow_enable_description" id="slideshow_enable_description_yes" value="1" <?php if ($row->slideshow_enable_description) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_slideshow_description_position', 'slideshow_enable_description_yes')" /><label for="slideshow_enable_description_yes"><?php _e("Yes", 'bwg_back'); ?></label>
671
+ <input type="radio" name="slideshow_enable_description" id="slideshow_enable_description_no" value="0" <?php if (!$row->slideshow_enable_description) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_slideshow_description_position', 'slideshow_enable_description_no')" /><label for="slideshow_enable_description_no"><?php _e("No", 'bwg_back'); ?></label>
672
+ <div class="spider_description"></div>
673
+ </td>
674
+ </tr>
675
+ <tr id="tr_slideshow_description_position">
676
+ <td class="spider_label"><label><?php _e("Description position:", 'bwg_back'); ?> </label></td>
677
+ <td>
678
+ <table class="bwg_position_table">
679
+ <tbody>
680
+ <tr>
681
+ <td><input type="radio" value="top-left" id="slideshow_description_topLeft" name="slideshow_description_position" <?php if ($row->slideshow_description_position == "top-left") echo 'checked="checked"'; ?>></td>
682
+ <td><input type="radio" value="top-center" id="slideshow_description_topCenter" name="slideshow_description_position" <?php if ($row->slideshow_description_position == "top-center") echo 'checked="checked"'; ?>></td>
683
+ <td><input type="radio" value="top-right" id="slideshow_description_topRight" name="slideshow_description_position" <?php if ($row->slideshow_description_position == "top-right") echo 'checked="checked"'; ?>></td>
684
+ </tr>
685
+ <tr>
686
+ <td><input type="radio" value="middle-left" id="slideshow_description_midLeft" name="slideshow_description_position" <?php if ($row->slideshow_description_position == "middle-left") echo 'checked="checked"'; ?>></td>
687
+ <td><input type="radio" value="middle-center" id="slideshow_description_midCenter" name="slideshow_description_position" <?php if ($row->slideshow_description_position == "middle-center") echo 'checked="checked"'; ?>></td>
688
+ <td><input type="radio" value="middle-right" id="slideshow_description_midRight" name="slideshow_description_position" <?php if ($row->slideshow_description_position == "middle-right") echo 'checked="checked"'; ?>></td>
689
+ </tr>
690
+ <tr>
691
+ <td><input type="radio" value="bottom-left" id="slideshow_description_botLeft" name="slideshow_description_position" <?php if ($row->slideshow_description_position == "bottom-left") echo 'checked="checked"'; ?>></td>
692
+ <td><input type="radio" value="bottom-center" id="slideshow_description_botCenter" name="slideshow_description_position" <?php if ($row->slideshow_description_position == "bottom-center") echo 'checked="checked"'; ?>></td>
693
+ <td><input type="radio" value="bottom-right" id="slideshow_description_botRight" name="slideshow_description_position" <?php if ($row->slideshow_description_position == "bottom-right") echo 'checked="checked"'; ?>></td>
694
+ </tr>
695
+ </tbody>
696
+ </table>
697
+ <div class="spider_description"><?php _e("Image description position on slideshow", 'bwg_back'); ?></div>
698
+ </td>
699
+ </tr>
700
+ <tr>
701
+ <td class="spider_label_options">
702
+ <label><?php _e("Enable slideshow Music:", 'bwg_back'); ?> </label>
703
+ </td>
704
+ <td>
705
+ <input type="radio" name="slideshow_enable_music" id="slideshow_enable_music_yes" value="1" <?php if ($row->slideshow_enable_music) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_slideshow_music_url', 'slideshow_enable_music_yes')" /><label for="slideshow_enable_music_yes"><?php _e("Yes", 'bwg_back'); ?></label>
706
+ <input type="radio" name="slideshow_enable_music" id="slideshow_enable_music_no" value="0" <?php if (!$row->slideshow_enable_music) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_slideshow_music_url', 'slideshow_enable_music_no')" /><label for="slideshow_enable_music_no"><?php _e("No", 'bwg_back'); ?></label>
707
+ <div class="spider_description"></div>
708
+ </td>
709
+ </tr>
710
+ <tr id="tr_slideshow_music_url">
711
+ <td class="spider_label_options">
712
+ <label for="slideshow_audio_url"><?php _e("Music url:", 'bwg_back'); ?> </label>
713
+ </td>
714
+ <td>
715
+ <input type="text" id="slideshow_audio_url" name="slideshow_audio_url" style="width: 70%;" value="<?php echo $row->slideshow_audio_url; ?>" style="display:inline-block;" />
 
716
  <?php
717
+ $query_url = add_query_arg(array('action' => 'addMusic', 'width' => '700', 'height' => '550', 'extensions' => 'aac,m4a,f4a,mp3,ogg,oga', 'callback' => 'bwg_add_music'), admin_url('admin-ajax.php'));
718
+ $query_url = wp_nonce_url( $query_url, 'addMusic', 'bwg_nonce' );
719
+ $query_url = add_query_arg(array('TB_iframe' => '1'), $query_url );
 
 
720
  ?>
721
+ <a href="<?php echo $query_url; ?>" id="button_add_music" class="button-primary thickbox thickbox-preview"
722
+ title="Add music"
723
+ onclick="return false;"
724
+ style="margin-bottom:5px;">
725
+ <?php _e("Add Music", 'bwg_back'); ?>
726
+ </a>
727
+ <div class="spider_description"><?php _e("Only", 'bwg_back'); ?> .aac,.m4a,.f4a,.mp3,.ogg,.oga <?php _e("formats are supported.", 'bwg_back'); ?></div>
728
+ </td>
729
+ </tr>
730
+ </tbody>
731
+ </table>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
732
  </td>
733
  </tr>
734
+ </table>
735
+ </div>
736
+ <!--Album options-->
737
+ <div class="spider_div_options" id="div_content_11">
738
+ <table>
739
+ <tbody>
740
+ <tr>
741
+ <td class="spider_label_options">
742
+ <label for="album_column_number"><?php _e("Number of album columns:", 'bwg_back'); ?> </label>
743
+ </td>
744
+ <td>
745
+ <input type="text" name="album_column_number" id="album_column_number" value="<?php echo $row->album_column_number; ?>" class="spider_int_input" />
746
+ <div class="spider_description"></div>
747
+ </td>
748
+ </tr>
749
+ <tr>
750
+ <td class="spider_label_options">
751
+ <label for="albums_per_page"><?php _e("Albums per page:", 'bwg_back'); ?> </label>
752
+ </td>
753
+ <td>
754
+ <input type="text" name="albums_per_page" id="albums_per_page" value="<?php echo $row->albums_per_page; ?>" class="spider_int_input" />
755
+ <div class="spider_description"></div>
756
+ </td>
757
+ </tr>
758
+ <tr>
759
+ <td class="spider_label_options">
760
+ <label><?php _e("Enable pagination:", 'bwg_back'); ?></label>
761
+ </td>
762
+ <td>
763
+ <input type="radio" name="album_enable_page" id="album_enable_page_1" value="1" <?php if ($row->album_enable_page) echo 'checked="checked"'; ?> /><label for="album_enable_page_1"><?php _e("Yes", 'bwg_back'); ?></label>
764
+ <input type="radio" name="album_enable_page" id="album_enable_page_0" value="0" <?php if (!$row->album_enable_page) echo 'checked="checked"'; ?> /><label for="album_enable_page_0"><?php _e("No", 'bwg_back'); ?></label>
765
+ <div class="spider_description"></div>
766
+ </td>
767
+ </tr>
768
+ <tr>
769
+ <td class="spider_label_options">
770
+ <label><?php _e("Album view type:", 'bwg_back'); ?></label>
771
+ </td>
772
+ <td>
773
+ <input disabled="disabled" type="radio" name="album_view_type" id="album_view_type_1" value="thumbnail" <?php if ($row->album_view_type == "thumbnail") echo 'checked="checked"'; ?> /><label for="album_view_type_1"><?php _e("Thumbnail", 'bwg_back'); ?></label>
774
+ <input disabled="disabled" type="radio" name="album_view_type" id="album_view_type_0" value="masonry" <?php if ($row->album_view_type == "masonry") echo 'checked="checked"'; ?> /><label for="album_view_type_0"><?php _e("Masonry", 'bwg_back'); ?></label>
775
+ <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
776
+ </td>
777
+ </tr>
778
+ <tr>
779
+ <td class="spider_label_options">
780
+ <label><?php _e("Show title:", 'bwg_back'); ?></label>
781
+ </td>
782
+ <td>
783
+ <input type="radio" name="album_title_show_hover" id="album_title_show_hover_1" value="hover" <?php if ($row->album_title_show_hover == "hover") echo 'checked="checked"'; ?> /><label for="album_title_show_hover_1"><?php _e("Show on hover", 'bwg_back'); ?></label><br />
784
+ <input type="radio" name="album_title_show_hover" id="album_title_show_hover_0" value="show" <?php if ($row->album_title_show_hover == "show") echo 'checked="checked"'; ?> /><label for="album_title_show_hover_0"><?php _e("Always show", 'bwg_back'); ?></label><br />
785
+ <input type="radio" name="album_title_show_hover" id="album_title_show_hover_2" value="none" <?php if ($row->album_title_show_hover == "none") echo 'checked="checked"'; ?> /><label for="album_title_show_hover_2"><?php _e("Don't show", 'bwg_back'); ?></label>
786
+ <div class="spider_description"></div>
787
+ </td>
788
+ </tr>
789
+ <tr>
790
+ <td class="spider_label_options">
791
+ <label><?php _e("Enable extended album description:", 'bwg_back'); ?></label>
792
+ </td>
793
+ <td>
794
+ <input type="radio" name="extended_album_description_enable" id="extended_album_description_enable_1" value="1" <?php if ($row->extended_album_description_enable) echo 'checked="checked"'; ?> /><label for="extended_album_description_enable_1"><?php _e("Yes", 'bwg_back'); ?></label>
795
+ <input type="radio" name="extended_album_description_enable" id="extended_album_description_enable_0" value="0" <?php if (!$row->extended_album_description_enable) echo 'checked="checked"'; ?> /><label for="extended_album_description_enable_0"><?php _e("No", 'bwg_back'); ?></label>
796
+ <div class="spider_description"></div>
797
+ </td>
798
+ </tr>
799
+ <tr>
800
+ <td class="spider_label_options">
801
+ <label for="album_thumb_width"><?php _e("Album thumbnail dimensions:", 'bwg_back'); ?> </label>
802
+ </td>
803
+ <td>
804
+ <input type="text" name="album_thumb_width" id="album_thumb_width" value="<?php echo $row->album_thumb_width; ?>" class="spider_int_input" /> x
805
+ <input type="text" name="album_thumb_height" id="album_thumb_height" value="<?php echo $row->album_thumb_height; ?>" class="spider_int_input" /> px
806
+ <div class="spider_description"></div>
807
+ </td>
808
+ </tr>
809
+ <tr>
810
+ <td class="spider_label_options">
811
+ <label for="extended_album_height"><?php _e("Extended album height:", 'bwg_back'); ?> </label>
812
+ </td>
813
+ <td>
814
+ <input type="text" name="extended_album_height" id="extended_album_height" value="<?php echo $row->extended_album_height; ?>" class="spider_int_input" /> px
815
+ <div class="spider_description"></div>
816
+ </td>
817
+ </tr>
818
+ </tbody>
819
+ </table>
820
+ </div>
821
+ <!--Image options-->
822
+ <div class="spider_div_options" id="div_content_12">
823
+ <table>
824
+ <tbody>
825
+ <tr>
826
+ <td class="spider_label_options">
827
+ <label><?php _e("Enable image title for Image Browser view:", 'bwg_back'); ?></label>
828
+ </td>
829
+ <td>
830
+ <input type="radio" name="image_browser_title_enable" id="image_browser_title_enable_1" value="1" <?php if ($row->image_browser_title_enable) echo 'checked="checked"'; ?> /><label for="image_browser_title_enable_1"><?php _e("Yes", 'bwg_back'); ?></label>
831
+ <input type="radio" name="image_browser_title_enable" id="image_browser_title_enable_0" value="0" <?php if (!$row->image_browser_title_enable) echo 'checked="checked"'; ?> /><label for="image_browser_title_enable_0"><?php _e("No", 'bwg_back'); ?></label>
832
+ <div class="spider_description"></div>
833
+ </td>
834
+ </tr>
835
+ <tr>
836
+ <td class="spider_label_options">
837
+ <label><?php _e("Enable image description for Image Browser view:", 'bwg_back'); ?></label>
838
+ </td>
839
+ <td>
840
+ <input type="radio" name="image_browser_description_enable" id="image_browser_description_enable_1" value="1" <?php if ($row->image_browser_description_enable) echo 'checked="checked"'; ?> /><label for="image_browser_description_enable_1"><?php _e("Yes", 'bwg_back'); ?></label>
841
+ <input type="radio" name="image_browser_description_enable" id="image_browser_description_enable_0" value="0" <?php if (!$row->image_browser_description_enable) echo 'checked="checked"'; ?> /><label for="image_browser_description_enable_0"><?php _e("No", 'bwg_back'); ?></label>
842
+ <div class="spider_description"></div>
843
+ </td>
844
+ </tr>
845
+ <tr>
846
+ <td class="spider_label_options">
847
+ <label for="image_browser_width"><?php _e("Image width for Image Browser view:", 'bwg_back'); ?></label>
848
+ </td>
849
+ <td>
850
+ <input type="text" name="image_browser_width" id="image_browser_width" value="<?php echo $row->image_browser_width; ?>" class="spider_int_input" /> px
851
+ <div class="spider_description"></div>
852
+ </td>
853
+ </tr>
854
+ <tr>
855
+ <td colspan="2">
856
+ <div style="margin: 0;" class="spider_description spider_free_version"><?php _e("The Blog Style view is disabled in free version.", 'bwg_back'); ?></div>
857
+ </td>
858
+ </tr>
859
+ <tr>
860
+ <td class="spider_label_options spider_free_version_label">
861
+ <label><?php _e("Enable image title for Blog Style view:", 'bwg_back'); ?></label>
862
+ </td>
863
+ <td class="spider_free_version_label">
864
+ <input disabled="disabled" type="radio" name="blog_style_title_enable" id="blog_style_title_enable_1" value="1" <?php if ($row->blog_style_title_enable) echo 'checked="checked"'; ?> /><label for="blog_style_title_enable_1"><?php _e("Yes", 'bwg_back'); ?></label>
865
+ <input disabled="disabled" type="radio" name="blog_style_title_enable" id="blog_style_title_enable_0" value="0" <?php if (!$row->blog_style_title_enable) echo 'checked="checked"'; ?> /><label for="blog_style_title_enable_0"><?php _e("No", 'bwg_back'); ?></label>
866
+ <div class="spider_description"></div>
867
+ </td>
868
+ </tr>
869
+ <tr>
870
+ <td class="spider_label_options spider_free_version_label">
871
+ <label for="blog_style_width"><?php _e("Image width for Blog Style view:", 'bwg_back'); ?></label>
872
+ </td>
873
+ <td class="spider_free_version_label">
874
+ <input disabled="disabled" type="text" name="blog_style_width" id="blog_style_width" value="<?php echo $row->blog_style_width; ?>" class="spider_int_input spider_free_version_label" /> px
875
+ <div class="spider_description"></div>
876
+ </td>
877
+ </tr>
878
+ <tr>
879
+ <td class="spider_label_options spider_free_version_label">
880
+ <label for="blog_style_images_per_page"><?php _e("Images per page in Blog Style view:", 'bwg_back'); ?></label>
881
+ </td>
882
+ <td class="spider_free_version_label">
883
+ <input disabled="disabled" type="text" name="blog_style_images_per_page" id="blog_style_images_per_page" value="<?php echo $row->blog_style_images_per_page; ?>" class="spider_int_input spider_free_version_label" />
884
+ <div class="spider_description"></div>
885
+ </td>
886
+ </tr>
887
+ <tr>
888
+ <td class="spider_label_options spider_free_version_label">
889
+ <label><?php _e("Enable pagination for Blog Style view:", 'bwg_back'); ?></label>
890
+ </td>
891
+ <td class="spider_free_version_label">
892
+ <input disabled="disabled" type="radio" name="blog_style_enable_page" id="blog_style_enable_page_1" value="1" <?php if ($row->blog_style_enable_page) echo 'checked="checked"'; ?> /><label for="blog_style_enable_page_1"><?php _e("Yes", 'bwg_back'); ?></label>
893
+ <input disabled="disabled" type="radio" name="blog_style_enable_page" id="blog_style_enable_page_0" value="0" <?php if (!$row->blog_style_enable_page) echo 'checked="checked"'; ?> /><label for="blog_style_enable_page_0"><?php _e("No", 'bwg_back'); ?></label>
894
+ <div class="spider_description"></div>
895
+ </td>
896
+ </tr>
897
+ </tbody>
898
+ </table>
899
+ </div>
900
+ <!-- Carousel-->
901
+ <div class="spider_div_options" id="div_content_13">
902
+ <table style="width: 100%;">
903
  <tr>
904
+ <td class="options_left">
905
+ <table style="display: inline-table;">
906
+ <tbody>
907
+ <tr>
908
+ <td class="spider_label_options spider_free_version_label">
909
+ <label for="carousel_interval"><?php _e("Time interval:", 'bwg_back'); ?> </label>
910
+ </td>
911
+ <td class="spider_free_version_label">
912
+ <input type="text" disabled="disabled" name="carousel_interval" id="carousel_interval" value="<?php echo $row->carousel_interval; ?>" class="spider_int_input" /> sec.
913
+ <div class="spider_description"></div>
914
+ </td>
915
+ </tr>
916
+ <tr>
917
+ <td class="spider_label_options spider_free_version_label">
918
+ <label for="carousel_image_column_number"><?php _e("Max. number of images:", 'bwg_back'); ?> </label>
919
+ </td>
920
+ <td class="spider_free_version_label">
921
+ <input type="text" disabled="disabled" name="carousel_image_column_number" id="carousel_image_column_number" value="<?php echo $row->carousel_image_column_number; ?>" class="spider_int_input" /> sec.
922
+ <div class="spider_description"></div>
923
+ </td>
924
+ </tr>
925
+ <tr>
926
+ <td class="spider_label_options spider_free_version_label">
927
+ <label for="carousel_image_par"><?php _e("Carousel image ratio:", 'bwg_back'); ?> </label>
928
+ </td>
929
+ <td class="spider_free_version_label">
930
+ <input type="text" disabled="disabled" name="carousel_image_par" id="carousel_image_par" value="<?php echo $row->carousel_image_par; ?>" />
931
+ <div class="spider_description"></div>
932
+ </td>
933
+ </tr>
934
+ <tr>
935
+ <td class="spider_label_options spider_free_version_label">
936
+ <label for="carousel_width"><?php _e("Image dimensions:", 'bwg_back'); ?> </label>
937
+ </td>
938
+ <td class="spider_free_version_label">
939
+ <input type="text" disabled="disabled" name="carousel_width" id="carousel_width" value="<?php echo $row->carousel_width; ?>" class="spider_int_input" /> x
940
+ <input type="text" disabled="disabled" name="carousel_height" id="carousel_height" value="<?php echo $row->carousel_height; ?>" class="spider_int_input" /> px
941
+ <div class="spider_description"></div>
942
+ </td>
943
+ </tr>
944
+ <tr>
945
+ <td class="spider_label_options spider_free_version_label">
946
+ <label for="carousel_r_width"><?php _e("Fixed width:", 'bwg_back'); ?> </label>
947
+ </td>
948
+ <td class="spider_free_version_label">
949
+ <input type="text" disabled="disabled" name="carousel_r_width" id="carousel_r_width" value="<?php echo $row->carousel_r_width; ?>" class="spider_int_input" /> px
950
+ </td>
951
+ </tr>
952
+ </tbody>
953
+ </table>
954
+ </td>
955
+ <td class="options_right">
956
+ <table style="width: 100%; display: inline-table;">
957
+ <tbody>
958
+ <tr>
959
+ <td class="spider_label_options spider_free_version_label"><label><?php _e("Enable image title:", 'bwg_back'); ?> </label></td>
960
+ <td class="spider_free_version_label">
961
+ <input type="radio" disabled="disabled" name="carousel_enable_title" id="carousel_enable_title_yes" value="1" <?php if ($row->carousel_enable_title) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_carousel_title_position', 'carousel_enable_title_yes')" /><label for="carousel_enable_title_yes"><?php _e("Yes", 'bwg_back'); ?></label>
962
+ <input type="radio" disabled="disabled" name="carousel_enable_title" id="carousel_enable_title_no" value="0" <?php if (!$row->carousel_enable_title) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_carousel_title_position', 'carousel_enable_title_no')" /><label for="carousel_enable_title_no"><?php _e("No", 'bwg_back'); ?></label>
963
+ <div class="spider_description"></div>
964
+ </td>
965
+ </tr>
966
+ <tr>
967
+ <td class="spider_label_options spider_free_version_label">
968
+ <label><?php _e("Enable autoplay:", 'bwg_back'); ?> </label>
969
+ </td>
970
+ <td class="spider_free_version_label">
971
+ <input type="radio" disabled="disabled" name="carousel_enable_autoplay" id="carousel_enable_autoplay_yes" value="1" <?php if ($row->carousel_enable_autoplay) echo 'checked="checked"'; ?> /><label for="carousel_enable_autoplay_yes"><?php _e("Yes", 'bwg_back'); ?></label>
972
+ <input type="radio" disabled="disabled" name="carousel_enable_autoplay" id="carousel_enable_autoplay_no" value="0" <?php if (!$row->carousel_enable_autoplay) echo 'checked="checked"'; ?> /><label for="carousel_enable_autoplay_no"><?php _e("No", 'bwg_back'); ?></label>
973
+ <div class="spider_description"></div>
974
+ </td>
975
+ </tr>
976
+ <tr>
977
+ <td class="spider_label_options spider_free_version_label">
978
+ <label> <?php _e("Container fit:", 'bwg_back'); ?> </label>
979
+ </td>
980
+ <td class="spider_free_version_label">
981
+ <input type="radio" disabled="disabled" name="carousel_fit_containerWidth" id="carousel_fit_containerWidth_yes" value="1" <?php if ($row->carousel_fit_containerWidth) echo 'checked="checked"'; ?> /><label for="carousel_fit_containerWidth_yes"><?php _e("Yes", 'bwg_back'); ?></label>
982
+ <input type="radio" disabled="disabled" name="carousel_fit_containerWidth" id="carousel_fit_containerWidth_no" value="0" <?php if (!$row->carousel_fit_containerWidth) echo 'checked="checked"'; ?> /><label for="carousel_fit_containerWidth_no"><?php _e("No", 'bwg_back'); ?></label>
983
+ <div class="spider_description"></div>
984
+ </td>
985
+ </tr>
986
+ <tr>
987
+ <td class="spider_label_options spider_free_version_label">
988
+ <label> <?php _e("Next/Previous buttons:", 'bwg_back'); ?> </label>
989
+ </td>
990
+ <td class="spider_free_version_label">
991
+ <input type="radio" disabled="disabled" name="carousel_prev_next_butt" id="carousel_prev_next_butt_yes" value="1" <?php if ($row->carousel_prev_next_butt) echo 'checked="checked"'; ?> /><label for="carousel_prev_next_butt_yes"><?php _e("Yes", 'bwg_back'); ?></label>
992
+ <input type="radio" disabled="disabled" name="carousel_prev_next_butt" id="carousel_prev_next_butt_no" value="0" <?php if (!$row->carousel_prev_next_butt) echo 'checked="checked"'; ?> /><label for="carousel_prev_next_butt_no"><?php _e("No", 'bwg_back'); ?></label>
993
+ <div class="spider_description"></div>
994
+ </td>
995
+ </tr>
996
+ <tr>
997
+ <td class="spider_label_options spider_free_version_label">
998
+ <label> <?php _e("Play/Pause button:", 'bwg_back'); ?> </label>
999
+ </td>
1000
+ <td class="spider_free_version_label">
1001
+ <input type="radio" disabled="disabled" name="carousel_play_pause_butt" id="carousel_play_pause_butt_yes" value="1" <?php if ($row->carousel_play_pause_butt) echo 'checked="checked"'; ?> /><label for="carousel_play_pause_butt_yes"><?php _e("Yes", 'bwg_back'); ?></label>
1002
+ <input type="radio" disabled="disabled" name="carousel_play_pause_butt" id="carousel_play_pause_butt_no" value="0" <?php if (!$row->carousel_play_pause_butt) echo 'checked="checked"'; ?> /><label for="carousel_play_pause_butt_no"><?php _e("No", 'bwg_back'); ?></label>
1003
+ <div class="spider_description"></div>
1004
+ </td>
1005
+ </tr>
1006
+ </tbody>
1007
+ </table>
1008
  </td>
1009
  </tr>
1010
+ </table>
1011
+ <div class="spider_description spider_free_version"><?php _e("Carousel view is disabled in free version.", 'bwg_back'); ?></div>
1012
+ </div>
1013
+ <!--Advertisement-->
1014
+ <div class="spider_div_options" id="div_content_14">
1015
+ <table style="width: 100%;">
1016
  <tr>
1017
+ <td class="options_left">
1018
+ <table style="display: inline-table;">
1019
+ <tbody>
1020
+ <tr id="tr_watermark_type">
1021
+ <td class="spider_label_options">
1022
+ <label><?php _e('Advertisement type:', 'bwg_back'); ?> </label>
1023
+ </td>
1024
+ <td>
1025
+ <input type="radio" name="watermark_type" id="watermark_type_none" value="none" <?php if ($row->watermark_type == 'none') echo 'checked="checked"'; ?> onClick="bwg_watermark('watermark_type_none')" />
1026
+ <label for="watermark_type_none"><?php _e('None', 'bwg_back'); ?></label>
1027
+ <input type="radio" name="watermark_type" id="watermark_type_text" value="text" <?php if ($row->watermark_type == 'text') echo 'checked="checked"'; ?> onClick="bwg_watermark('watermark_type_text')" onchange="preview_watermark()" />
1028
+ <label for="watermark_type_text"><?php _e('Text', 'bwg_back'); ?></label>
1029
+ <input type="radio" name="watermark_type" id="watermark_type_image" value="image" <?php if ($row->watermark_type == 'image') echo 'checked="checked"'; ?> onClick="bwg_watermark('watermark_type_image')" onchange="preview_watermark()" />
1030
+ <label for="watermark_type_image"><?php _e('Image', 'bwg_back'); ?></label>
1031
+ <div class="spider_description"></div>
1032
+ </td>
1033
+ </tr>
1034
+ <tr id="tr_watermark_url">
1035
+ <td class="spider_label_options">
1036
+ <label for="watermark_url"><?php _e('Advertisement url:', 'bwg_back'); ?> </label>
1037
+ </td>
1038
+ <td>
1039
+ <input type="text" id="watermark_url" name="watermark_url" style="width: 68%;" value="<?php echo $row->watermark_url; ?>" style="display:inline-block;" onchange="preview_watermark()" />
1040
+
 
1041
  <?php
1042
+ $query_url = add_query_arg(array('action' => 'addImages', 'width' => '700', 'height' => '550', 'extensions' => 'jpg,jpeg,png,gif', 'callback' => 'bwg_add_watermark_image'), admin_url('admin-ajax.php'));
1043
+ $query_url = wp_nonce_url( $query_url, 'addImages', 'bwg_nonce' );
1044
+ $query_url = add_query_arg(array('TB_iframe' => '1'), $query_url );
 
 
1045
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1046
 
1047
+ <a href="<?php echo $query_url; ?>" id="button_add_watermark_image" class="wd-btn wd-btn-primary wd-btn-icon wd-btn-add thickbox thickbox-preview"
1048
+ title="Add image"
1049
+ onclick="return false;"
1050
+ style="margin-bottom:5px;">
1051
+ <?php _e('Add Image', 'bwg_back'); ?>
1052
+ </a>
1053
+ <div class="spider_description"><?php _e('Enter absolute image file url or add file from Options page. (.jpg,.jpeg,.png,.gif formats are supported)', 'bwg_back'); ?></div>
1054
+ </td>
1055
+ </tr>
1056
+ <tr id="tr_watermark_text">
1057
+ <td class="spider_label_options">
1058
+ <label for="watermark_text"><?php _e('Advertisement text:', 'bwg_back'); ?> </label>
1059
+ </td>
1060
+ <td>
1061
+ <input type="text" name="watermark_text" id="watermark_text" style="width: 100%;" value="<?php echo $row->watermark_text; ?>" onchange="preview_watermark()" onkeypress="preview_watermark()" />
1062
+ <div class="spider_description"></div>
1063
+ </td>
1064
+ </tr>
1065
+ <tr id="tr_watermark_link">
1066
+ <td class="spider_label_options">
1067
+ <label for="watermark_link"><?php _e('Advertisement link:', 'bwg_back'); ?> </label>
1068
+ </td>
1069
+ <td>
1070
+ <input type="text" name="watermark_link" id="watermark_link" style="width: 100%;" value="<?php echo $row->watermark_link; ?>" onchange="preview_watermark()" onkeypress="preview_watermark()" />
1071
+ <div class="spider_description"><?php _e('Enter a URL to open when the advertisement banner is clicked.', 'bwg_back'); ?></div>
1072
+ </td>
1073
+ </tr>
1074
+ <tr id="tr_watermark_width_height">
1075
+ <td class="spider_label_options">
1076
+ <label for="watermark_width"><?php _e('Advertisement dimensions:', 'bwg_back'); ?> </label>
1077
+ </td>
1078
+ <td>
1079
+ <input type="text" name="watermark_width" id="watermark_width" value="<?php echo $row->watermark_width; ?>" class="spider_int_input" onchange="preview_watermark()" /> x
1080
+ <input type="text" name="watermark_height" id="watermark_height" value="<?php echo $row->watermark_height; ?>" class="spider_int_input" onchange="preview_watermark()" /> px
1081
+ <div class="spider_description"><?php _e('Maximum values for watermark image width and height.', 'bwg_back'); ?></div>
1082
+ </td>
1083
+ </tr>
1084
+ <tr id="tr_watermark_font_size">
1085
+ <td class="spider_label_options">
1086
+ <label for="watermark_font_size"><?php _e('Advertisement font size:', 'bwg_back'); ?> </label>
1087
+ </td>
1088
+ <td>
1089
+ <input type="text" name="watermark_font_size" id="watermark_font_size" value="<?php echo $row->watermark_font_size; ?>" class="spider_int_input" onchange="preview_watermark()" /> px
1090
+ <div class="spider_description"></div>
1091
+ </td>
1092
+ </tr>
1093
+ <tr id="tr_watermark_font">
1094
+ <td class="spider_label_options">
1095
+ <label for="watermark_font"><?php _e('Advertisement font style:', 'bwg_back'); ?> </label>
1096
+ </td>
1097
+ <td>
1098
+ <select name="watermark_font" id="watermark_font" class="select_icon bwg_font_select" style="width:120px;" onchange="preview_watermark()">
1099
+ <?php
1100
+ $google_fonts = WDWLibrary::get_google_fonts();
1101
+ $is_google_fonts = (in_array($row->watermark_font, $google_fonts) ) ? true : false;
1102
+ $watermark_font_families = ($is_google_fonts == true) ? $google_fonts : $watermark_fonts;
1103
+ foreach ($watermark_font_families as $watermark_font) {
1104
+ ?>
1105
+ <option value="<?php echo $watermark_font; ?>" <?php if ($row->watermark_font == $watermark_font) echo 'selected="selected"'; ?>><?php echo $watermark_font; ?></option>
1106
+ <?php
1107
+ }
1108
+ ?>
1109
+ </select>
1110
+ <input type="radio" name="watermark_google_fonts" id="watermark_google_fonts1" onchange="bwg_change_fonts('watermark_font', jQuery(this).attr('id'))" value="1" <?php if ($is_google_fonts) echo 'checked="checked"'; ?> />
1111
+ <label for="watermark_google_fonts1" id="watermark_google_fonts1_lbl"><?php echo __('Google fonts', 'bwg_back'); ?></label>
1112
+ <input type="radio" name="watermark_google_fonts" id="watermark_google_fonts0" onchange="bwg_change_fonts('watermark_font', '')" value="0" <?php if (!$is_google_fonts) echo 'checked="checked"'; ?> />
1113
+ <label for="watermark_google_fonts0" id="watermark_google_fonts0_lbl"><?php echo __('Default', 'bwg_back'); ?></label>
1114
+ <div class="spider_description"></div>
1115
+ </td>
1116
+ </tr>
1117
+ <tr id="tr_watermark_color">
1118
+ <td class="spider_label_options">
1119
+ <label for="watermark_color"><?php _e('Advertisement color:', 'bwg_back'); ?> </label>
1120
+ </td>
1121
+ <td>
1122
+ <input type="text" name="watermark_color" id="watermark_color" value="<?php echo $row->watermark_color; ?>" class="color" onchange="preview_watermark()" />
1123
+ <div class="spider_description"></div>
1124
+ </td>
1125
+ </tr>
1126
+ <tr id="tr_watermark_opacity">
1127
+ <td class="spider_label_options">
1128
+ <label for="watermark_opacity"><?php _e('Advertisement opacity:', 'bwg_back'); ?> </label>
1129
+ </td>
1130
+ <td>
1131
+ <input type="text" name="watermark_opacity" id="watermark_opacity" value="<?php echo $row->watermark_opacity; ?>" class="spider_int_input" onchange="preview_watermark()" /> %
1132
+ <div class="spider_description"><?php _e('Value must be between 0 to 100.', 'bwg_back'); ?></div>
1133
+ </td>
1134
+ </tr>
1135
+ <tr id="tr_watermark_position">
1136
+ <td class="spider_label_options">
1137
+ <label><?php _e('Advertisement position:', 'bwg_back'); ?> </label>
1138
+ </td>
1139
+ <td>
1140
+ <table class="bwg_position_table">
1141
+ <tbody>
1142
+ <tr>
1143
+ <td><input type="radio" value="top-left" name="watermark_position" <?php if ($row->watermark_position == "top-left") echo 'checked="checked"'; ?> onchange="preview_watermark()"></td>
1144
+ <td><input type="radio" value="top-center" name="watermark_position" <?php if ($row->watermark_position == "top-center") echo 'checked="checked"'; ?> onchange="preview_watermark()"></td>
1145
+ <td><input type="radio" value="top-right" name="watermark_position" <?php if ($row->watermark_position == "top-right") echo 'checked="checked"'; ?> onchange="preview_watermark()"></td>
1146
+ </tr>
1147
+ <tr>
1148
+ <td><input type="radio" value="middle-left" name="watermark_position" <?php if ($row->watermark_position == "middle-left") echo 'checked="checked"'; ?> onchange="preview_watermark()"></td>
1149
+ <td><input type="radio" value="middle-center" name="watermark_position" <?php if ($row->watermark_position == "middle-center") echo 'checked="checked"'; ?> onchange="preview_watermark()"></td>
1150
+ <td><input type="radio" value="middle-right" name="watermark_position" <?php if ($row->watermark_position == "middle-right") echo 'checked="checked"'; ?> onchange="preview_watermark()"></td>
1151
+ </tr>
1152
+ <tr>
1153
+ <td><input type="radio" value="bottom-left" name="watermark_position" <?php if ($row->watermark_position == "bottom-left") echo 'checked="checked"'; ?> onchange="preview_watermark()"></td>
1154
+ <td><input type="radio" value="bottom-center" name="watermark_position" <?php if ($row->watermark_position == "bottom-center") echo 'checked="checked"'; ?> onchange="preview_watermark()"></td>
1155
+ <td><input type="radio" value="bottom-right" name="watermark_position" <?php if ($row->watermark_position == "bottom-right") echo 'checked="checked"'; ?> onchange="preview_watermark()"></td>
1156
+ </tr>
1157
+ </tbody>
1158
+ </table>
1159
+ <div class="spider_description"></div>
1160
+ </td>
1161
+ </tr>
1162
+ </tbody>
1163
+ </table>
1164
+ </td>
1165
+ <td class="options_right">
1166
+ <table style="width: 100%; display: inline-table;">
1167
+ <tbody>
1168
+ <tr>
1169
+ <td>
1170
+ <span id="preview_watermark" style="display:table-cell; background-image:url('<?php echo WD_BWG_URL . '/images/watermark_preview.jpg'?>');background-size:100% 100%;width:400px;height:400px;padding-top: 4px; position:relative;">
1171
+ </span>
1172
+ </td>
1173
+ </tr>
1174
+ </tbody>
1175
+ </table>
 
 
 
 
 
 
 
 
 
 
 
 
 
1176
  </td>
1177
  </tr>
1178
+ </table>
1179
+ </div>
1180
  </div>
1181
+ </div>
1182
+ <div class="bwg_options_box standart_option" style="display:none;">
1183
+ <div style="display:none; width: 100%; " id="display_panel">
1184
+ <div class="options_tab">
1185
+ <div id="div_1" class="gallery_type" onclick="bwg_change_option_type('1')"><?php _e('General', 'bwg_back'); ?></div>
1186
+ <div class="bwg_line_option">|</div>
1187
+ <div id="div_2" class="gallery_type" onclick="bwg_change_option_type('2')"><?php _e('Thumbnail options', 'bwg_back'); ?></div>
1188
+ <div class="bwg_line_option">|</div>
1189
+ <div id="div_3" class="gallery_type" onclick="bwg_change_option_type('3')"><?php _e('Lightbox', 'bwg_back'); ?></div>
1190
+ <div class="bwg_line_option">|</div>
1191
+ <div id="div_4" class="gallery_type" onclick="bwg_change_option_type('4')"><?php _e('Slideshow', 'bwg_back'); ?></div>
1192
+ <div class="bwg_line_option">|</div>
1193
+ <div id="div_5" class="gallery_type" onclick="bwg_change_option_type('5')"><?php _e('Album options', 'bwg_back'); ?></div>
1194
+ <div class="bwg_line_option">|</div>
1195
+ <div id="div_6" class="gallery_type" onclick="bwg_change_option_type('6')"><?php _e('Social options', 'bwg_back'); ?></div>
1196
+ <div class="bwg_line_option">|</div>
1197
+ <div id="div_7" class="gallery_type" onclick="bwg_change_option_type('7')"><?php _e('Watermark', 'bwg_back'); ?></div>
1198
+ <input type="hidden" id="type" name="type" value="<?php echo (isset($_POST["type"]) ? esc_html(stripslashes($_POST["type"])) : 1); ?>" />
1199
+ </div>
1200
+ <!--Global options-->
1201
+ <div class="spider_div_options" id="div_content_1">
1202
+ <table>
1203
+ <tbody>
1204
+ <tr>
1205
+ <td class="spider_label_options">
1206
+ <label for="images_directory"><?php _e("Images directory:", 'bwg_back'); ?></label>
1207
+ </td>
1208
+ <td>
1209
+ <input id="images_directory" name="images_directory" type="text" style="display:inline-block; width:100%;" value="<?php echo $row->images_directory; ?>" />
1210
+ <input type="hidden" id="old_images_directory" name="old_images_directory" value="<?php echo $row->old_images_directory; ?>"/>
1211
+ <div class="spider_description"><?php _e("Input an existing directory inside the Wordpress directory to store uploaded images.<br />Old directory content will be moved to the new one.", 'bwg_back'); ?></div>
1212
+ </td>
1213
+ </tr>
1214
+ <tr>
1215
+ <td class="spider_label_options">
1216
+ <label for="upload_img_width"><?php _e("Image dimensions:", 'bwg_back'); ?> </label>
1217
+ </td>
1218
+ <td>
1219
+ <input type="text" name="upload_img_width" id="upload_img_width" value="<?php echo $row->upload_img_width; ?>" class="spider_int_input" /> x
1220
+ <input type="text" name="upload_img_height" id="upload_img_height" value="<?php echo $row->upload_img_height; ?>" class="spider_int_input" /> px
1221
+ <div class="spider_description"><?php _e("The maximum size of the uploaded image (0 for original size).", 'bwg_back'); ?></div>
1222
+ </td>
1223
+ </tr>
1224
+ <tr>
1225
+ <td class="spider_label_options">
1226
+ <label><?php _e("Right click protection:", 'bwg_back'); ?></label>
1227
+ </td>
1228
+ <td>
1229
+ <input type="radio" name="image_right_click" id="image_right_click_1" value="1" <?php if ($row->image_right_click) echo 'checked="checked"'; ?> /><label for="image_right_click_1"><?php _e("Yes", 'bwg_back'); ?></label>
1230
+ <input type="radio" name="image_right_click" id="image_right_click_0" value="0" <?php if (!$row->image_right_click) echo 'checked="checked"'; ?> /><label for="image_right_click_0"><?php _e("No", 'bwg_back'); ?></label>
1231
+ <div class="spider_description"><?php _e("Disable image right click possibility.", 'bwg_back'); ?></div>
1232
+ </td>
1233
+ </tr>
1234
+ <tr style="display: none;">
1235
+ <td class="spider_label_options">
1236
+ <label><?php _e("Gallery role:", 'bwg_back'); ?></label>
1237
+ </td>
1238
+ <td>
1239
+ <input type="radio" name="gallery_role" id="gallery_role_1" value="1" <?php if ($row->gallery_role) echo 'checked="checked"'; ?> /><label for="gallery_role_1"><?php _e("Yes", 'bwg_back'); ?></label>
1240
+ <input type="radio" name="gallery_role" id="gallery_role_0" value="0" <?php if (!$row->gallery_role) echo 'checked="checked"'; ?> /><label for="gallery_role_0">No</label>
1241
+ <div class="spider_description">Only author can change a gallery.</div>
1242
+ </td>
1243
+ </tr>
1244
+ <tr style="display: none;">
1245
+ <td class="spider_label_options">
1246
+ <label>Album role:</label>
1247
+ </td>
1248
+ <td>
1249
+ <input type="radio" name="album_role" id="album_role_1" value="1" <?php if ($row->album_role) echo 'checked="checked"'; ?> /><label for="album_role_1"><?php _e("Yes", 'bwg_back'); ?></label>
1250
+ <input type="radio" name="album_role" id="album_role_0" value="0" <?php if (!$row->album_role) echo 'checked="checked"'; ?> /><label for="album_role_0">No</label>
1251
+ <div class="spider_description">Only author can change an album.</div>
1252
+ </td>
1253
+ </tr>
1254
+ <tr style="display: none;">
1255
+ <td class="spider_label_options">
1256
+ <label>Image role:</label>
1257
+ </td>
1258
+ <td>
1259
+ <input type="radio" name="image_role" id="image_role_1" value="1" <?php if ($row->image_role) echo 'checked="checked"'; ?> /><label for="image_role_1"><?php _e("Yes", 'bwg_back'); ?></label>
1260
+ <input type="radio" name="image_role" id="image_role_0" value="0" <?php if (!$row->image_role) echo 'checked="checked"'; ?> /><label for="image_role_0"><?php _e("No", 'bwg_back'); ?></label>
1261
+ <div class="spider_description"><?php _e("Only author can change an image.", 'bwg_back'); ?></div>
1262
+ </td>
1263
+ </tr>
1264
+ <tr>
1265
+ <td class="spider_label_options">
1266
+ <label><?php echo __('Show search box:', 'bwg_back'); ?></label>
1267
+ </td>
1268
+ <td>
1269
+ <input type="radio" name="show_search_box" id="show_search_box_1" value="1" <?php if ($row->show_search_box) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_search_box_width', 'show_search_box_1'); bwg_enable_disable('', 'tr_search_box_placeholder', 'show_search_box_1')" /><label for="show_search_box_1"><?php echo __('Yes', 'bwg_back'); ?></label>
1270
+ <input type="radio" name="show_search_box" id="show_search_box_0" value="0" <?php if (!$row->show_search_box) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_search_box_width', 'show_search_box_0'); bwg_enable_disable('none', 'tr_search_box_placeholder', 'show_search_box_0')" /><label for="show_search_box_0"><?php echo __('No', 'bwg_back'); ?></label>
1271
+ <div class="spider_description"></div>
1272
+ </td>
1273
+ </tr>
1274
+ <tr id="tr_search_box_placeholder">
1275
+ <td class="spider_label_options">
1276
+ <label for="placeholder"><?php echo __('Add placeholder to search:', 'bwg_back'); ?> </label>
1277
+ </td>
1278
+ <td>
1279
+ <input type="text" name="placeholder" id="placeholder" value="<?php echo $row->placeholder; ?>" />
1280
+ <div class="spider_description"></div>
1281
+ </td>
1282
+ </tr>
1283
+ <tr id="tr_search_box_width">
1284
+ <td class="spider_label_options">
1285
+ <label for="search_box_width"><?php _e('Search box width:', 'bwg_back'); ?> </label>
1286
+ </td>
1287
+ <td>
1288
+ <input type="text" name="search_box_width" id="search_box_width" value="<?php echo $row->search_box_width; ?>" class="spider_int_input" /> px
1289
+ <div class="spider_description"></div>
1290
+ </td>
1291
+ </tr>
1292
+ <tr>
1293
+ <td class="spider_label_options">
1294
+ <label><?php _e('Show "Order by" dropdown list:', 'bwg_back'); ?></label>
1295
+ </td>
1296
+ <td>
1297
+ <input type="radio" name="show_sort_images" id="show_sort_images_1" value="1" <?php if ($row->show_sort_images) echo 'checked="checked"'; ?> /><label for="show_sort_images_1"><?php _e('Yes', 'bwg_back'); ?></label>
1298
+ <input type="radio" name="show_sort_images" id="show_sort_images_0" value="0" <?php if (!$row->show_sort_images) echo 'checked="checked"'; ?> /><label for="show_sort_images_0"><?php _e('No', 'bwg_back'); ?></label>
1299
+ <div class="spider_description"></div>
1300
+ </td>
1301
+ </tr>
1302
+ <tr>
1303
+ <td class="spider_label_options">
1304
+ <label><?php _e('Show tag box:', 'bwg_back'); ?></label>
1305
+ </td>
1306
+ <td>
1307
+ <input type="radio" name="show_tag_box" id="show_tag_box_1" value="1" <?php if ($row->show_tag_box) echo 'checked="checked"'; ?> /><label for="show_tag_box_1"><?php _e('Yes', 'bwg_back'); ?></label>
1308
+ <input type="radio" name="show_tag_box" id="show_tag_box_0" value="0" <?php if (!$row->show_tag_box) echo 'checked="checked"'; ?> /><label for="show_tag_box_0"><?php _e('No', 'bwg_back'); ?></label>
1309
+ <div class="spider_description"></div>
1310
+ </td>
1311
+ </tr>
1312
+ <tr>
1313
+ <td class="spider_label_options">
1314
+ <label><?php _e('Preload images:', 'bwg_back'); ?></label>
1315
+ </td>
1316
+ <td>
1317
+ <input type="radio" name="preload_images" id="preload_images_1" value="1" <?php if ($row->preload_images) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_preload_images_count', 'preload_images_1')" /><label for="preload_images_1"><?php _e('Yes', 'bwg_back'); ?></label>
1318
+ <input type="radio" name="preload_images" id="preload_images_0" value="0" <?php if (!$row->preload_images) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_preload_images_count', 'preload_images_0')" /><label for="preload_images_0"><?php _e('No', 'bwg_back'); ?></label>
1319
+ <div class="spider_description"></div>
1320
+ </td>
1321
+ </tr>
1322
+ <tr id="tr_preload_images_count">
1323
+ <td class="spider_label_options">
1324
+ <label for="preload_images_count"><?php _e('Count of images:', 'bwg_back'); ?> </label>
1325
+ </td>
1326
+ <td>
1327
+ <input type="text" name="preload_images_count" id="preload_images_count" value="<?php echo $row->preload_images_count; ?>" class="spider_int_input" />
1328
+ <div class="spider_description"><?php _e('Count of images to preload (0 for all).', 'bwg_back'); ?></div>
1329
+ </td>
1330
+ </tr>
1331
+ <tr>
1332
+ <td class="spider_label_options">
1333
+ <label><?php _e('Import from Media Library:', 'bwg_back'); ?></label>
1334
+ </td>
1335
+ <td>
1336
+ <input type="radio" name="enable_ML_import" id="enable_ML_import_1" value="1" <?php if ($row->enable_ML_import) echo 'checked="checked"'; ?> /><label for="enable_ML_import_1"><?php _e('Yes', 'bwg_back'); ?></label>
1337
+ <input type="radio" name="enable_ML_import" id="enable_ML_import_0" value="0" <?php if (!$row->enable_ML_import) echo 'checked="checked"'; ?> /><label for="enable_ML_import_0"><?php _e('No', 'bwg_back'); ?></label>
1338
+ <div class="spider_description"><?php _e('Enable import from Media Library in file manager.', 'bwg_back'); ?></div>
1339
+ </td>
1340
+ </tr>
1341
+ <tr>
1342
+ <td class="spider_label_options">
1343
+ <label><?php _e('Enable href attribute:', 'bwg_back'); ?></label>
1344
+ </td>
1345
+ <td>
1346
+ <input type="radio" name="enable_seo" id="enable_seo_1" value="1" <?php if ($row->enable_seo) echo 'checked="checked"'; ?> /><label for="enable_seo_1"><?php _e('Yes', 'bwg_back'); ?></label>
1347
+ <input type="radio" name="enable_seo" id="enable_seo_0" value="0" <?php if (!$row->enable_seo) echo 'checked="checked"'; ?> /><label for="enable_seo_0"><?php _e('No', 'bwg_back'); ?></label>
1348
+ <div class="spider_description"><?php _e('Disable this option only if it conflicts with your theme.', 'bwg_back'); ?></div>
1349
+ </td>
1350
+ </tr>
1351
+ <tr>
1352
+ <td class="spider_label_options">
1353
+ <label><?php _e('Meta auto-fill:', 'bwg_back'); ?></label>
1354
+ </td>
1355
+ <td>
1356
+ <input type="radio" name="read_metadata" id="read_metadata_1" value="1" <?php if ($row->read_metadata) echo 'checked="checked"'; ?> /><label for="read_metadata_1"><?php _e('Yes', 'bwg_back'); ?></label>
1357
+ <input type="radio" name="read_metadata" id="read_metadata_0" value="0" <?php if (!$row->read_metadata) echo 'checked="checked"'; ?> /><label for="read_metadata_0"><?php _e('No', 'bwg_back'); ?></label>
1358
+ <div class="spider_description"><?php _e('Enabling this option the meta description of the image will be automatically filled in image description field.', 'bwg_back'); ?></div>
1359
+ </td>
1360
+ </tr>
1361
 
1362
+ <tr>
1363
+ <td class="spider_label_options">
1364
+ <label><?php _e('Show/hide custom post types:', 'bwg_back'); ?></label>
1365
+ </td>
1366
+ <td>
1367
+ <input type="radio" name="show_hide_custom_post" id="show_hide_custom_post_1" value="1" <?php if ($row->show_hide_custom_post) echo 'checked="checked"'; ?> /><label for="show_hide_custom_post_1"><?php _e('Yes', 'bwg_back'); ?></label>
1368
+ <input type="radio" name="show_hide_custom_post" id="show_hide_custom_post_0" value="0" <?php if (!$row->show_hide_custom_post) echo 'checked="checked"'; ?> /><label for="show_hide_custom_post_0"><?php _e('No', 'bwg_back'); ?></label>
1369
+ <div class="spider_description"></div>
1370
+ </td>
1371
+ </tr>
1372
+ <tr>
1373
+ <td class="spider_label_options">
1374
+ <label><?php _e('Show/hide comments for custom post types:', 'bwg_back'); ?></label>
1375
+ </td>
1376
+ <td>
1377
+ <input type="radio" name="show_hide_post_meta" id="show_hide_post_meta_1" value="1" <?php if ($row->show_hide_post_meta) echo 'checked="checked"'; ?> /><label for="show_hide_post_meta_1"><?php _e("Yes", 'bwg_back'); ?></label>
1378
+ <input type="radio" name="show_hide_post_meta" id="show_hide_post_meta_0" value="0" <?php if (!$row->show_hide_post_meta) echo 'checked="checked"'; ?> /><label for="show_hide_post_meta_0"><?php _e("No", 'bwg_back'); ?></label>
1379
+ <div class="spider_description"></div>
1380
+ </td>
1381
+ </tr>
1382
+ <tr>
1383
+ <td class="spider_label_options">
1384
+ <label><?php echo __('Introduction tour:', 'bwg_back'); ?></label>
1385
+ </td>
1386
+ <td>
1387
+ <a href="admin.php?page=options_bwg&bwg_start_tour=1" class="wd-btn wd-btn-primary wd-not-image" title="<?php echo _e('Start tour', 'bwg_back'); ?>">
1388
+ <?php _e('Start tour', 'bwg_back'); ?>
1389
+ </a>
1390
+ <div class="spider_description"><?php echo __('Take this tour to quickly learn about the use of this plugin.', 'bwg_back'); ?></div>
1391
+ </td>
1392
+ </tr>
1393
+ </tbody>
1394
+ </table>
1395
+ </div>
1396
+ <!--Thumbnail options-->
1397
+ <div class="spider_div_options" id="div_content_2">
1398
+ <table>
1399
+ <tbody>
1400
+ <tr>
1401
+ <td class="spider_label_options">
1402
+ <label for="upload_thumb_width"><?php _e("Generated thumbnail dimensions:", 'bwg_back'); ?> </label>
1403
+ </td>
1404
+ <td>
1405
+ <input type="text" name="upload_thumb_width" id="upload_thumb_width" value="<?php echo $row->upload_thumb_width; ?>" class="spider_int_input" /> x
1406
+ <input type="text" name="upload_thumb_height" id="upload_thumb_height" value="<?php echo $row->upload_thumb_height; ?>" class="spider_int_input" /> px
1407
+ <input type="submit" class="wd-btn wd-btn-primary wd-not-image" onclick="spider_set_input_value('task', 'save'); spider_set_input_value('recreate', 'resize_image_thumb');" value="<?php echo __('Recreate', 'bwg_back'); ?>" />
1408
+ <div class="spider_description"><?php _e("The maximum size of the generated thumbnail. Its dimensions should be larger than the ones of the frontend thumbnail.", 'bwg_back'); ?></div>
1409
+ </td>
1410
+ </tr>
1411
+ <tr id="tr_thumb_show_name">
1412
+ <td class="spider_label_options"><label><?php _e("Show gallery name:", 'bwg_back'); ?> </label></td>
1413
+ <td>
1414
+ <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"><?php _e("Yes", 'bwg_back'); ?></label>
1415
+ <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"><?php _e("No", 'bwg_back'); ?></label>
1416
+ <div class="spider_description"></div>
1417
+ </td>
1418
+ </tr>
1419
+ <tr>
1420
+ <td class="spider_label_options spider_free_version_label">
1421
+ <label><?php _e("Show description in Vertical Masonry view:", 'bwg_back'); ?> </label>
1422
+ </td>
1423
+ <td>
1424
+ <input disabled="disabled" type="radio" name="show_masonry_thumb_description" id="masonry_thumb_desc_1" value="1" <?php if ($row->show_masonry_thumb_description) echo 'checked="checked"'; ?> /><label for="masonry_thumb_desc_1"><?php _e("Yes", 'bwg_back'); ?></label>
1425
+ <input disabled="disabled" type="radio" name="show_masonry_thumb_description" id="masonry_thumb_desc_0" value="0" <?php if (!$row->show_masonry_thumb_description) echo 'checked="checked"'; ?> /><label for="masonry_thumb_desc_0"><?php _e("No", 'bwg_back'); ?></label>
1426
+ <div style="width: 200px;" class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
1427
+ </td>
1428
+ </tr>
1429
+ <tr>
1430
+ <td class="spider_label_options"><label><?php _e("Play icon over the video thumbnail:", 'bwg_back'); ?> </label></td>
1431
+ <td>
1432
+ <input type="radio" name="play_icon" id="play_icon_yes" value="1" <?php if ($row->play_icon) echo 'checked="checked"'; ?> /><label for="play_icon_yes"><?php _e("Yes", 'bwg_back'); ?></label>
1433
+ <input type="radio" name="play_icon" id="play_icon_no" value="0" <?php if (!$row->play_icon) echo 'checked="checked"'; ?> /><label for="play_icon_no"><?php _e("No", 'bwg_back'); ?></label>
1434
+ <div class="spider_description"></div>
1435
+ </td>
1436
+ </tr>
1437
+ </tbody>
1438
+ </table>
1439
+ </div>
1440
+ <!--Lightbox-->
1441
+ <div class="spider_div_options" id="div_content_3">
1442
+ <table style="width: 100%;">
1443
  <tr>
1444
+ <td style="width: 50%; vertical-align: top;">
1445
+ <table style="display: inline-table;">
1446
+ <tbody>
1447
+ <tr>
1448
+ <td class="spider_label_options">
1449
+ <label> <?php _e("Show Next / Previous buttons:", 'bwg_back'); ?></label>
1450
+ </td>
1451
+ <td>
1452
+ <input type="radio" name="autohide_lightbox_navigation" id="autohide_lightbox_navigation_1" value="1" <?php if ($row->autohide_lightbox_navigation ) echo 'checked="checked"'; ?> /><label for="autohide_lightbox_navigation_1"><?php _e("On hover", 'bwg_back'); ?></label>
1453
+ <input type="radio" name="autohide_lightbox_navigation" id="autohide_lightbox_navigation_0" value="0" <?php if (!$row->autohide_lightbox_navigation ) echo 'checked="checked"'; ?> /><label for="autohide_lightbox_navigation_0"><?php _e("Always", 'bwg_back'); ?></label>
1454
+ <div class="spider_description"></div>
1455
+ </td>
1456
+ </tr>
1457
+ <tr id="tr_popup_email">
1458
+ <td class="spider_label_options spider_free_version_label">
1459
+ <label><?php _e("Enable Email for comments:", 'bwg_back'); ?></label>
1460
+ </td>
1461
+ <td>
1462
+ <input disabled="disabled" type="radio" name="popup_enable_email" id="popup_enable_email_1" value="1" <?php if ($row->popup_enable_email) echo 'checked="checked"'; ?> /><label for="popup_enable_email_1"><?php _e("Yes", 'bwg_back'); ?></label>
1463
+ <input disabled="disabled" type="radio" name="popup_enable_email" id="popup_enable_email_0" value="0" <?php if (!$row->popup_enable_email) echo 'checked="checked"'; ?> /><label for="popup_enable_email_0"><?php _e("No", 'bwg_back'); ?></label>
1464
+ <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
1465
+ </td>
1466
+ </tr>
1467
+ <tr id="tr_popup_captcha">
1468
+ <td class="spider_label_options spider_free_version_label">
1469
+ <label><?php _e("Enable Captcha for comments:", 'bwg_back'); ?></label>
1470
+ </td>
1471
+ <td>
1472
+ <input disabled="disabled" type="radio" name="popup_enable_captcha" id="popup_enable_captcha_1" value="1" <?php if ($row->popup_enable_captcha) echo 'checked="checked"'; ?> /><label for="popup_enable_captcha_1"><?php _e("Yes", 'bwg_back'); ?></label>
1473
+ <input disabled="disabled" type="radio" name="popup_enable_captcha" id="popup_enable_captcha_0" value="0" <?php if (!$row->popup_enable_captcha) echo 'checked="checked"'; ?> /><label for="popup_enable_captcha_0"><?php _e("No", 'bwg_back'); ?></label>
1474
+ <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
1475
+ </td>
1476
+ </tr>
1477
+ <tr id="tr_popup_fullsize_image">
1478
+ <td class="spider_label_options">
1479
+ <label><?php _e("Enable original image display button:", 'bwg_back'); ?></label>
1480
+ </td>
1481
+ <td>
1482
+ <input type="radio" name="popup_enable_fullsize_image" id="popup_enable_fullsize_image_1" value="1" <?php if ($row->popup_enable_fullsize_image) echo 'checked="checked"'; ?> /><label for="popup_enable_fullsize_image_1"><?php _e("Yes", 'bwg_back'); ?></label>
1483
+ <input type="radio" name="popup_enable_fullsize_image" id="popup_enable_fullsize_image_0" value="0" <?php if (!$row->popup_enable_fullsize_image) echo 'checked="checked"'; ?> /><label for="popup_enable_fullsize_image_0"><?php _e("No", 'bwg_back'); ?></label>
1484
+ <div class="spider_description"></div>
1485
+ </td>
1486
+ </tr>
1487
+ <tr id="tr_popup_download">
1488
+ <td class="spider_label_options">
1489
+ <label><?php _e("Enable download button:", 'bwg_back'); ?></label>
1490
+ </td>
1491
+ <td>
1492
+ <input type="radio" name="popup_enable_download" id="popup_enable_download_1" value="1" <?php if ($row->popup_enable_download) echo 'checked="checked"'; ?> /><label for="popup_enable_download_1"><?php _e("Yes", 'bwg_back'); ?></label>
1493
+ <input type="radio" name="popup_enable_download" id="popup_enable_download_0" value="0" <?php if (!$row->popup_enable_download) echo 'checked="checked"'; ?> /><label for="popup_enable_download_0"><?php _e("No", 'bwg_back'); ?></label>
1494
+ <div class="spider_description"></div>
1495
+ </td>
1496
+ </tr>
1497
+ <tr id="tr_image_count">
1498
+ <td class="spider_label_options">
1499
+ <label><?php _e("Show images count:", 'bwg_back'); ?></label>
1500
+ </td>
1501
+ <td>
1502
+ <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"><?php _e("Yes", 'bwg_back'); ?></label>
1503
+ <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"><?php _e("No", 'bwg_back'); ?></label>
1504
+ <div class="spider_description"></div>
1505
+ </td>
1506
+ </tr>
1507
+ <tr id="tr_image_cycle">
1508
+ <td class="spider_label_options">
1509
+ <label><?php _e("Enable loop:", 'bwg_back'); ?></label>
1510
+ </td>
1511
+ <td>
1512
+ <input type="radio" name="enable_loop" id="enable_loop_1" value="1" <?php if ($row->enable_loop) echo 'checked="checked"'; ?> /><label for="enable_loop_1"><?php _e("Yes", 'bwg_back'); ?></label>
1513
+ <input type="radio" name="enable_loop" id="enable_loop_0" value="0" <?php if (!$row->enable_loop) echo 'checked="checked"'; ?> /><label for="enable_loop_0"><?php _e("No", 'bwg_back'); ?></label>
1514
+ <div class="spider_description"></div>
1515
+ </td>
1516
+ </tr>
1517
+ <tr>
1518
+ <td class="spider_label_options spider_free_version_label">
1519
+ <label><?php _e("Enable", 'bwg_back'); ?> AddThis:</label>
1520
+ </td>
1521
+ <td>
1522
+ <input disabled="disabled" type="radio" name="enable_addthis" id="enable_addthis_1" value="1" <?php if ($row->enable_addthis ) echo 'checked="checked"'; ?> />
1523
+ <label for="enable_addthis_1"><?php _e("Yes", 'bwg_back'); ?></label>
1524
+ <input disabled="disabled" type="radio" name="enable_addthis" id="enable_addthis_0" value="0" <?php if (!$row->enable_addthis ) echo 'checked="checked"'; ?> />
1525
+ <label for="enable_addthis_0"><?php _e("No", 'bwg_back'); ?></label>
1526
+ <div class="spider_description spider_free_version"><?php _e("This option is disabled in free version.", 'bwg_back'); ?></div>
1527
+ </td>
1528
+ </tr>
1529
+ </tbody>
1530
+ </table>
1531
  </td>
1532
  </tr>
1533
+ </table>
1534
+ </div>
1535
+ <!--Slideshow-->
1536
+ <div class="spider_div_options" id="div_content_4">
1537
+ <table style="width: 100%;">
 
 
1538
  <tr>
1539
+ <td style="width: 50%; vertical-align: top;">
1540
+ <table style="display: inline-table;">
1541
+ <tbody>
1542
+ <tr>
1543
+ <td class="spider_label_options">
1544
+ <label><?php _e('Show Next / Previous buttons:', 'bwg_back'); ?></label>
1545
+ </td>
1546
+ <td>
1547
+ <input type="radio" name="autohide_slideshow_navigation" id="autohide_slideshow_navigation_1" value="1" <?php if ($row->autohide_slideshow_navigation) echo 'checked="checked"'; ?> /><label for="autohide_slideshow_navigation_1"><?php _e('On hover', 'bwg_back'); ?></label>
1548
+ <input type="radio" name="autohide_slideshow_navigation" id="autohide_slideshow_navigation_0" value="0" <?php if (!$row->autohide_slideshow_navigation) echo 'checked="checked"'; ?> /><label for="autohide_slideshow_navigation_0"><?php _e('Always', 'bwg_back'); ?></label>
1549
+ <div class="spider_description"></div>
1550
+ </td>
1551
+ </tr>
1552
+ </tbody>
1553
+ </table>
1554
  </td>
1555
  </tr>
1556
+ </table>
1557
+ </div>
1558
+ <!--Album options-->
1559
+ <div class="spider_div_options" id="div_content_5">
1560
+ <table>
1561
+ <tbody>
1562
+ <tr>
1563
+ <td class="spider_label_options">
1564
+ <label><?php _e('Show album/gallery name:', 'bwg_back'); ?></label>
1565
+ </td>
1566
+ <td>
1567
+ <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"><?php _e('Yes', 'bwg_back'); ?></label>
1568
+ <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"><?php _e('No', 'bwg_back'); ?></label>
1569
+ <div class="spider_description"></div>
1570
+ </td>
1571
+ </tr>
1572
+ </tbody>
1573
+ </table>
1574
+ </div>
1575
+ <!--Embed options-->
1576
+ <div class="spider_div_options" id="div_content_6">
1577
+ <table>
1578
+ <tbody>
1579
+ <tr>
1580
+ <td class="spider_label_options spider_free_version_label">
1581
+ <label ><?php _e('Gallery autoupdate interval:', 'bwg_back'); ?></label>
1582
+ </td>
1583
+ <td class="spider_free_version_label">
1584
+ <input type="number" disabled="disabled" id="autoupdate_interval_hour" class="spider_int_input" min="0" max="24" value="0" />
1585
+ <?php _e('hour', 'bwg_back'); ?>
1586
+ <input type="number" disabled="disabled" id="autoupdate_interval_min" class="spider_int_input" min="0" max="59" value="30" />
1587
+ <?php _e('min', 'bwg_back'); ?>
1588
+ <div class="spider_description spider_free_version"><?php _e('Autoupdatable galleries are disabled in free version.', 'bwg_back'); ?></div>
1589
+ </td>
1590
+ </tr>
1591
+ <tr>
1592
+ <td class="spider_label_options spider_free_version_label">
1593
+ <label><?php _e('Instagram Access Token:', 'bwg_back'); ?></label>
1594
+ </td>
1595
+ <td class="spider_free_version_label">
1596
+ <input id="instagram_client_id" type="text" disabled="disabled" style="display:inline-block; width:100%;" value="" />
1597
+ <div class="spider_description spider_free_version"><?php _e('Instagram galleries are disabled in free version.', 'bwg_back'); ?></div>
1598
+ </td>
1599
+ </tr>
1600
+ </tbody>
1601
+ </table>
1602
+ </div>
1603
+ <!--Watermark-->
1604
+ <div class="spider_div_options" id="div_content_7">
1605
+ <table style="width: 100%;">
1606
  <tr>
1607
+ <td class="options_left">
1608
+ <table style="display: inline-table;">
1609
+ <tbody>
1610
+ <tr id="tr_built_in_watermark_type">
1611
+ <td class="spider_label_options">
1612
+ <label><?php _e('Watermark type: ', 'bwg_back'); ?></label>
1613
+ </td>
1614
+ <td>
1615
+ <input type="radio" name="built_in_watermark_type" id="built_in_watermark_type_none" value="none" <?php if ($row->built_in_watermark_type == 'none') echo 'checked="checked"'; ?> onClick="bwg_built_in_watermark('watermark_type_none')" />
1616
+ <label for="built_in_watermark_type_none"><?php _e('None', 'bwg_back'); ?></label>
1617
+ <input type="radio" name="built_in_watermark_type" id="built_in_watermark_type_text" value="text" <?php if ($row->built_in_watermark_type == 'text') echo 'checked="checked"'; ?> onClick="bwg_built_in_watermark('watermark_type_text')" onchange="preview_built_in_watermark()" />
1618
+ <label for="built_in_watermark_type_text"><?php _e('Text', 'bwg_back'); ?></label>
1619
+ <input type="radio" name="built_in_watermark_type" id="built_in_watermark_type_image" value="image" <?php if ($row->built_in_watermark_type == 'image') echo 'checked="checked"'; ?> onClick="bwg_built_in_watermark('watermark_type_image')" onchange="preview_built_in_watermark()" />
1620
+ <label for="built_in_watermark_type_image"><?php _e('Image', 'bwg_back'); ?></label>
1621
+ <div class="spider_description"></div>
1622
+ </td>
1623
+ </tr>
1624
+ <tr id="tr_built_in_watermark_url">
1625
+ <td class="spider_label_options">
1626
+ <label for="built_in_watermark_url"><?php _e('Watermark url: ', 'bwg_back'); ?></label>
1627
+ </td>
1628
+ <td>
1629
+ <input type="text" id="built_in_watermark_url" name="built_in_watermark_url" style="width: 68%;" value="<?php echo $row->built_in_watermark_url; ?>" style="display:inline-block;" onchange="preview_built_in_watermark()" />
1630
+ <?php
1631
+ $query_url = add_query_arg(array('action' => 'addImages', 'width' => '700', 'height' => '550', 'extensions' => 'png', 'callback' => 'bwg_add_built_in_watermark_image'), admin_url('admin-ajax.php'));
1632
+ $query_url = wp_nonce_url( $query_url, 'addImages', 'bwg_nonce' );
1633
+ $query_url = add_query_arg(array('TB_iframe' => '1'), $query_url );
1634
+ ?>
1635
+ <a href="<?php echo $query_url; ?>" id="button_add_built_in_watermark_image" class="wd-btn wd-btn-primary wd-btn-icon wd-btn-add thickbox thickbox-preview"
1636
+ title="Add image"
1637
+ onclick="return false;"
1638
+ style="margin-bottom:5px;">
1639
+ <?php _e('Add Image', 'bwg_back'); ?>
1640
+ </a>
1641
+ <div class="spider_description"><?php _e('Only .png format is supported.', 'bwg_back'); ?></div>
1642
+ </td>
1643
+ </tr>
1644
+ <tr id="tr_built_in_watermark_text">
1645
+ <td class="spider_label_options">
1646
+ <label for="built_in_watermark_text"><?php _e('Watermark text: ', 'bwg_back'); ?></label>
1647
+ </td>
1648
+ <td>
1649
+ <input type="text" name="built_in_watermark_text" id="built_in_watermark_text" style="width: 100%;" value="<?php echo $row->built_in_watermark_text; ?>" onchange="preview_built_in_watermark()" onkeypress="preview_built_in_watermark()" />
1650
+ <div class="spider_description"></div>
1651
+ </td>
1652
+ </tr>
1653
+ <tr id="tr_built_in_watermark_size">
1654
+ <td class="spider_label_options">
1655
+ <label for="built_in_watermark_size"><?php _e('Watermark size: ', 'bwg_back'); ?></label>
1656
+ </td>
1657
+ <td>
1658
+ <input type="text" name="built_in_watermark_size" id="built_in_watermark_size" value="<?php echo $row->built_in_watermark_size; ?>" class="spider_int_input" onchange="preview_built_in_watermark()" /> %
1659
+ <div class="spider_description"><?php _e('Enter size of watermark in percents according to image.', 'bwg_back'); ?></div>
1660
+ </td>
1661
+ </tr>
1662
+ <tr id="tr_built_in_watermark_font_size">
1663
+ <td class="spider_label_options">
1664
+ <label for="built_in_watermark_font_size"><?php _e('Watermark font size:', 'bwg_back'); ?></label>
1665
+ </td>
1666
+ <td>
1667
+ <input type="text" name="built_in_watermark_font_size" id="built_in_watermark_font_size" value="<?php echo $row->built_in_watermark_font_size; ?>" class="spider_int_input" onchange="preview_built_in_watermark()" />
1668
+ <div class="spider_description"></div>
1669
+ </td>
1670
+ </tr>
1671
+ <tr id="tr_built_in_watermark_font">
1672
+ <td class="spider_label_options">
1673
+ <label for="built_in_watermark_font"><?php _e('Watermark font style: ', 'bwg_back'); ?></label>
1674
+ </td>
1675
+ <td>
1676
+ <select class="select_icon" name="built_in_watermark_font" id="built_in_watermark_font" style="width:120px;" onchange="preview_built_in_watermark()">
1677
+ <?php
1678
+ foreach ($built_in_watermark_fonts as $watermark_font) {
1679
+ ?>
1680
+ <option value="<?php echo $watermark_font; ?>" <?php if ($row->built_in_watermark_font == $watermark_font) echo 'selected="selected"'; ?>><?php echo $watermark_font; ?></option>
1681
+ <?php
1682
+ }
1683
+ ?>
1684
+ </select>
1685
+ <?php
1686
+ foreach ($built_in_watermark_fonts as $watermark_font) {
1687
+ ?>
1688
+ <style>
1689
+ @font-face {
1690
+ font-family: <?php echo 'bwg_' . str_replace('.ttf', '', $watermark_font); ?>;
1691
+ src: url("<?php echo WD_BWG_URL . '/fonts/' . $watermark_font; ?>");
1692
+ }
1693
+ </style>
1694
+ <?php
1695
+ }
1696
+ ?>
1697
+ <div class="spider_description"></div>
1698
+ </td>
1699
+ </tr>
1700
+ <tr id="tr_built_in_watermark_color">
1701
+ <td class="spider_label_options">
1702
+ <label for="built_in_watermark_color"><?php _e('Watermark color:', 'bwg_back'); ?> </label>
1703
+ </td>
1704
+ <td>
1705
+ <input type="text" name="built_in_watermark_color" id="built_in_watermark_color" value="<?php echo $row->built_in_watermark_color; ?>" class="color" onchange="preview_built_in_watermark()" />
1706
+ <div class="spider_description"></div>
1707
+ </td>
1708
+ </tr>
1709
+ <tr id="tr_built_in_watermark_opacity">
1710
+ <td class="spider_label_options">
1711
+ <label for="built_in_watermark_opacity"><?php _e('Watermark opacity:', 'bwg_back'); ?> </label>
1712
+ </td>
1713
+ <td>
1714
+ <input type="text" name="built_in_watermark_opacity" id="built_in_watermark_opacity" value="<?php echo $row->built_in_watermark_opacity; ?>" class="spider_int_input" onchange="preview_built_in_watermark()" /> %
1715
+ <div class="spider_description"><?php _e('Opacity value must be in the range of 0 to 100.', 'bwg_back'); ?></div>
1716
+ </td>
1717
+ </tr>
1718
+ <tr id="tr_built_in_watermark_position">
1719
+ <td class="spider_label_options">
1720
+ <label><?php _e('Watermark position:', 'bwg_back'); ?> </label>
1721
+ </td>
1722
+ <td>
1723
+ <table class="bwg_position_table">
1724
+ <tbody>
1725
+ <tr>
1726
+ <td><input type="radio" value="top-left" name="built_in_watermark_position" <?php if ($row->built_in_watermark_position == "top-left") echo 'checked="checked"'; ?> onchange="preview_built_in_watermark()"></td>
1727
+ <td><input type="radio" value="top-center" name="built_in_watermark_position" <?php if ($row->built_in_watermark_position == "top-center") echo 'checked="checked"'; ?> onchange="preview_built_in_watermark()"></td>
1728
+ <td><input type="radio" value="top-right" name="built_in_watermark_position" <?php if ($row->built_in_watermark_position == "top-right") echo 'checked="checked"'; ?> onchange="preview_built_in_watermark()"></td>
1729
+ </tr>
1730
+ <tr>
1731
+ <td><input type="radio" value="middle-left" name="built_in_watermark_position" <?php if ($row->built_in_watermark_position == "middle-left") echo 'checked="checked"'; ?> onchange="preview_built_in_watermark()"></td>
1732
+ <td><input type="radio" value="middle-center" name="built_in_watermark_position" <?php if ($row->built_in_watermark_position == "middle-center") echo 'checked="checked"'; ?> onchange="preview_built_in_watermark()"></td>
1733
+ <td><input type="radio" value="middle-right" name="built_in_watermark_position" <?php if ($row->built_in_watermark_position == "middle-right") echo 'checked="checked"'; ?> onchange="preview_built_in_watermark()"></td>
1734
+ </tr>
1735
+ <tr>
1736
+ <td><input type="radio" value="bottom-left" name="built_in_watermark_position" <?php if ($row->built_in_watermark_position == "bottom-left") echo 'checked="checked"'; ?> onchange="preview_built_in_watermark()"></td>
1737
+ <td><input type="radio" value="bottom-center" name="built_in_watermark_position" <?php if ($row->built_in_watermark_position == "bottom-center") echo 'checked="checked"'; ?> onchange="preview_built_in_watermark()"></td>
1738
+ <td><input type="radio" value="bottom-right" name="built_in_watermark_position" <?php if ($row->built_in_watermark_position == "bottom-right") echo 'checked="checked"'; ?> onchange="preview_built_in_watermark()"></td>
1739
+ </tr>
1740
+ </tbody>
1741
+ </table>
1742
+ <input type="submit" class="wd-btn wd-btn-primary wd-not-image" title="<?php _e('Set watermark', 'bwg_back'); ?>" style="margin-top: 5px;"
1743
+ onclick="spider_set_input_value('task', 'save'); spider_set_input_value('watermark', 'image_set_watermark');"
1744
+ value="<?php _e('Set Watermark', 'bwg_back'); ?>"/>
1745
+ <input type="submit" class="wd-btn wd-btn-primary wd-not-image" title="<?php _e('Reset watermark', 'bwg_back'); ?>" style="margin-top: 5px;"
1746
+ onclick="spider_set_input_value('task', 'image_recover_all');"
1747
+ value="<?php echo __('Reset Watermark', 'bwg_back'); ?>"/>
1748
+ <div class="spider_description"></div>
1749
+ </td>
1750
+ </tr>
1751
+ </tbody>
1752
+ </table>
1753
+ </td>
1754
+ <td class="options_right">
1755
+ <table style="width: 100%; display: inline-table;">
1756
+ <tbody>
1757
+ <tr>
1758
+ <td>
1759
+ <span id="preview_built_in_watermark" style="display:table-cell; background-image:url('<?php echo WD_BWG_URL . '/images/watermark_preview.jpg'?>');background-size:100% 100%;width:400px;height:400px;padding-top: 4px; position:relative;">
1760
+ </span>
1761
+ </td>
1762
+ </tr>
1763
+ </tbody>
1764
+ </table>
1765
  </td>
1766
  </tr>
1767
+ </table>
1768
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1769
  </div>
1770
  </div>
1771
  <input id="task" name="task" type="hidden" value="" />
1773
  <input id="current_id" name="current_id" type="hidden" value="<?php echo $row->id; ?>" />
1774
  <input id="watermark" name="watermark" type="hidden" value="" />
1775
  <script>
1776
+ // "state" global get var is for checking redirect from facebook.
1777
+ window.onload = bwg_change_tab('<?php echo isset($_POST['type_option']) ? esc_html($_POST['type_option']) : (isset($_GET['state']) ? 'bwg_default_box' : 'bwg_options_box'); ?>');
1778
  window.onload = bwg_inputs();
1779
  window.onload = bwg_watermark('watermark_type_<?php echo $row->watermark_type ?>');
1780
  window.onload = bwg_built_in_watermark('watermark_type_<?php echo $row->built_in_watermark_type ?>');
1807
  </form>
1808
  <?php
1809
  }
 
 
 
 
 
 
 
 
 
 
1810
  }
css/bwg_tables.css CHANGED
@@ -115,28 +115,37 @@
115
  }
116
 
117
  .spider_div_options {
118
- background: none repeat scroll 0 0 #fff;
119
- border: 1px solid #00A0D2;
120
  display: none;
121
- margin: 1px 0 0 189px;
122
- padding: 13px;
123
- min-height: 370px;
124
- min-width: 600px;
125
  vertical-align: top;
 
126
  }
127
 
128
  .gallery_type {
129
- background-color: #F4F4F4;
130
  cursor: pointer;
131
  display: inline-block;
132
  font-size: 18px;
133
- height: 26px;
134
- padding-top: 10px;
135
- padding-left:8px;
136
- margin: 1px;
137
  text-align: center;
138
- vertical-align: middle;
139
- width: 180px;
 
 
 
 
 
 
 
 
 
 
 
 
 
140
  }
141
 
142
  .table_small_col {
@@ -200,7 +209,7 @@
200
  .spider_free_version {
201
  background-color: #00A0D2;
202
  border: 1px solid #4682B4;
203
- color:#fff;
204
  border-radius: 2px;
205
  padding: 2px;
206
  }
@@ -650,10 +659,27 @@
650
  line-height: 13px;
651
 
652
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
653
  a.wd-btn{
654
  color:#fff;
655
  line-height: 28px;
656
  }
 
 
 
657
  .wd-btn:focus, .wd-search-btn:focus, .wd-reset-btn:focus, .wd-preview-image-btn:focus{
658
  outline:none !important;
659
  }
@@ -681,6 +707,11 @@ a.wd-btn-primary:hover, a.wd-btn-primary:active, a.wd-btn-primary:link{
681
  color: #000;
682
  border: 1px solid #FFFFFF;
683
  }
 
 
 
 
 
684
  .wd-btn-icon{
685
  padding: 0px 10px 1px 36px !important;
686
  color:#fff;
@@ -762,7 +793,7 @@ a.wd-btn-primary:hover, a.wd-btn-primary:active, a.wd-btn-primary:link{
762
  background-repeat: no-repeat;
763
  background-position: 10% 50%;
764
  }
765
- .select_icon{
766
  background-image:url("../images/icons/arrow.png");
767
  background-repeat: no-repeat;
768
  -webkit-appearance: none;
@@ -919,4 +950,108 @@ textarea.bwg_popup_input {
919
 
920
  .bwg_font_select {
921
  display: block;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
922
  }
115
  }
116
 
117
  .spider_div_options {
118
+ background: none repeat scroll 0 0 #F4F4F4;
119
+ padding: 66px 12px 18px 11px;
120
  display: none;
 
 
 
 
121
  vertical-align: top;
122
+ max-width: 98%;
123
  }
124
 
125
  .gallery_type {
126
+ background-color: #fff;
127
  cursor: pointer;
128
  display: inline-block;
129
  font-size: 18px;
130
+ height: 30px;
131
+ padding-top: 14px;
132
+ color:#444;
 
133
  text-align: center;
134
+ vertical-align: top;
135
+ min-width: 157px;
136
+ }
137
+
138
+ .options_tab {
139
+ float: left;
140
+ width: 100%;
141
+ background-color: #fff;
142
+ border-bottom: 2px solid #E1E1E1;
143
+ }
144
+
145
+ .active_gallery_type {
146
+ background-color: #ffffff;
147
+ color:#00A0D2;
148
+ border-bottom : 2px solid #00A0D2;
149
  }
150
 
151
  .table_small_col {
209
  .spider_free_version {
210
  background-color: #00A0D2;
211
  border: 1px solid #4682B4;
212
+ color: #fff;
213
  border-radius: 2px;
214
  padding: 2px;
215
  }
659
  line-height: 13px;
660
 
661
  }
662
+ .wd-btn_tabs{
663
+ padding: 18px 10px;
664
+ margin: 0;
665
+ display: inline-block;
666
+ text-decoration: none;
667
+ height: 40px;
668
+ cursor: pointer;
669
+ -webkit-appearance: none;
670
+ white-space: nowrap;
671
+ -webkit-box-sizing: border-box;
672
+ -moz-box-sizing: border-box;
673
+ box-sizing: border-box;
674
+ line-height: 13px;
675
+ }
676
  a.wd-btn{
677
  color:#fff;
678
  line-height: 28px;
679
  }
680
+ a.wd-btn_tabs{
681
+ color:#444;
682
+ }
683
  .wd-btn:focus, .wd-search-btn:focus, .wd-reset-btn:focus, .wd-preview-image-btn:focus{
684
  outline:none !important;
685
  }
707
  color: #000;
708
  border: 1px solid #FFFFFF;
709
  }
710
+ .wd-btn-primary-tabs{
711
+ background-color: #FFFFFF;
712
+ color: #444;
713
+ border: 1px solid #FFFFFF;
714
+ }
715
  .wd-btn-icon{
716
  padding: 0px 10px 1px 36px !important;
717
  color:#fff;
793
  background-repeat: no-repeat;
794
  background-position: 10% 50%;
795
  }
796
+ .select_icon {
797
  background-image:url("../images/icons/arrow.png");
798
  background-repeat: no-repeat;
799
  -webkit-appearance: none;
950
 
951
  .bwg_font_select {
952
  display: block;
953
+ }
954
+
955
+ .tab_button_wrap {
956
+ float :left;
957
+ }
958
+
959
+ .bwg_tab_label {
960
+ display: block;
961
+ width: inherit;
962
+ text-align:center;
963
+ font-size:inherit;
964
+ }
965
+
966
+ .bwg_line_option {
967
+ display:inline-block;
968
+ color:#E3E3E3;
969
+ font-size:22px;
970
+ vertical-align:middle;
971
+ margin:12px -5px;
972
+ }
973
+
974
+ #bwg_default,
975
+ #bwg_standart {
976
+ background: none repeat scroll 0 0 #F4F4F4;
977
+ font-size: 22px;
978
+ height: 50px;
979
+ position: relative;
980
+ border-left: 2px solid #E1E1E1;
981
+ border-right: 2px solid #E1E1E1;
982
+ border-top: 2px solid #E1E1E1;
983
+ top: 10px;
984
+ }
985
+
986
+ .bwg_optiontab_active {
987
+ top: 0 !important;
988
+ height: 60px !important;
989
+ color: #00A0D2 !important;
990
+ background: none repeat scroll 0 0 #FFFFFF !important;
991
+ }
992
+
993
+ .tab_conteiner {
994
+ display:block;
995
+ width: 98%;
996
+ }
997
+
998
+ #display_default_option_panel,
999
+ #display_panel {
1000
+ border: 2px solid #E1E1E1;
1001
+ }
1002
+
1003
+ .options_left,
1004
+ .options_right {
1005
+ width:50%;
1006
+ vertical-align:top;
1007
+ }
1008
+
1009
+ @media screen and (max-width: 640px) {
1010
+ .options_left,
1011
+ .options_right {
1012
+ display: block !important;
1013
+ width: 77%;
1014
+ }
1015
+ .spider_label_options {
1016
+ width: 72px !important;
1017
+ max-width: 90px;
1018
+ }
1019
+ .bwg_line_option {
1020
+ display: none;
1021
+ }
1022
+ .active_gallery_type {
1023
+ width: 100%;
1024
+ }
1025
+ .gallery_type {
1026
+ width: 100%;
1027
+ }
1028
+ #watermark_google_fonts1, #watermark_google_fonts0 {
1029
+ margin-top: 3px;
1030
+ }
1031
+ #display_default_option_panel, #display_panel {
1032
+ float: left
1033
+ display: block !important;
1034
+ }
1035
+ #preview_built_in_watermark, #preview_watermark {
1036
+ height: 200px !important;
1037
+ }
1038
+ @media screen and (max-width: 420px) {
1039
+ .default_tab_button_wrap {
1040
+ margin-top: -10px;
1041
+ }
1042
+ .option_tab_button_wrap {
1043
+ margin-top: -2px;
1044
+ }
1045
+ #bwg_default, #bwg_standart {
1046
+ border-bottom: none;
1047
+ border-left: 2px solid #E1E1E1 !important;
1048
+ border-right: 2px solid #E1E1E1 !important
1049
+ }
1050
+ }
1051
+ }
1052
+
1053
+ .bwg_tab_desc {
1054
+ display: block;
1055
+ font-size: 11px;
1056
+ margin-top: 5px;
1057
  }
js/bwg.js CHANGED
@@ -898,26 +898,19 @@ function bwg_built_in_watermark(watermark_type) {
898
 
899
  function bwg_change_option_type(type) {
900
  type = (type == '' ? 1 : type);
901
- document.getElementById('type').value = type;
902
- for (var i = 1; i <= 10; i++) {
903
- if (i == type) {
904
- document.getElementById('div_content_' + i).style.display = 'block';
905
- document.getElementById('div_' + i).style.background = '#ffffff';
906
- document.getElementById('div_' + i).style.color = '#00A0D2';
907
- document.getElementById('div_' + i).style.borderLeft = '1px solid #00A0D2';
908
- document.getElementById('div_' + i).style.borderTop = '1px solid #00A0D2';
909
- document.getElementById('div_' + i).style.borderBottom = '1px solid #00A0D2';
910
  }
911
  else {
912
- document.getElementById('div_content_' + i).style.display = 'none';
913
- document.getElementById('div_' + i).style.background = '#00A0D2';
914
- document.getElementById('div_' + i).style.color = '#ffffff';
915
- document.getElementById('div_' + i).style.borderLeft = '1px solid #00A0D2';
916
- document.getElementById('div_' + i).style.borderTop = '1px solid #00A0D2';
917
- document.getElementById('div_' + i).style.borderBottom = '1px solid #00A0D2';
918
  }
919
- }
920
- document.getElementById('display_panel').style.display = 'inline-block';
 
 
 
 
 
921
  }
922
 
923
  function bwg_inputs() {
@@ -1017,7 +1010,7 @@ function bwg_change_gallery_type(type_to_set, warning_type) {
1017
 
1018
  warning_type = (typeof warning_type === "undefined") ? "default" : warning_type;
1019
 
1020
- if(type_to_set == 'instagram'){
1021
  jQuery('#gallery_type').val('instagram');
1022
  jQuery('#tr_instagram_post_gallery').show();
1023
  jQuery('#tr_gallery_source').show();
@@ -1259,4 +1252,26 @@ function bwg_change_fonts(cont, google_fonts) {
1259
  fonts_option += '<option value="' + i + '">' + fonts[i] + '</option>';
1260
  }
1261
  jQuery("#" + cont).html(fonts_option);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1262
  }
898
 
899
  function bwg_change_option_type(type) {
900
  type = (type == '' ? 1 : type);
901
+ if(type <= 7) {
902
+ jQuery('#type').val(type);
 
 
 
 
 
 
 
903
  }
904
  else {
905
+ jQuery('#type_def').val(type);
 
 
 
 
 
906
  }
907
+ jQuery('.spider_div_options').hide();
908
+ jQuery('.spider_default_div_options').hide();
909
+ jQuery('#div_content_' + type).show();
910
+ jQuery('.gallery_type').removeClass("active_gallery_type");
911
+ jQuery('#div_' + type).addClass("active_gallery_type");
912
+ jQuery('#display_panel').css({'display':'inline-block'});
913
+ jQuery('#display_default_option_panel').css({'display':'inline-block'});
914
  }
915
 
916
  function bwg_inputs() {
1010
 
1011
  warning_type = (typeof warning_type === "undefined") ? "default" : warning_type;
1012
 
1013
+ if (type_to_set == 'instagram') {
1014
  jQuery('#gallery_type').val('instagram');
1015
  jQuery('#tr_instagram_post_gallery').show();
1016
  jQuery('#tr_gallery_source').show();
1252
  fonts_option += '<option value="' + i + '">' + fonts[i] + '</option>';
1253
  }
1254
  jQuery("#" + cont).html(fonts_option);
1255
+ }
1256
+
1257
+ function bwg_change_tab(box) {
1258
+ jQuery("#type_option").val(box);
1259
+ if (box == "bwg_default_box") {
1260
+ jQuery(".bwg_default_box").show();
1261
+ jQuery(".standart_option").hide();
1262
+ jQuery('#bwg_default').addClass('bwg_optiontab_active');
1263
+ jQuery("#bwg_standart").removeClass('bwg_optiontab_active');
1264
+ jQuery("#bwg_standart").css({'borderRight':'2px solid #f4f4f4'});
1265
+ jQuery("#bwg_default").css({'borderLeft':'2px solid #E1E1E1'});
1266
+ bwg_change_option_type(jQuery("#type_def").val());
1267
+ }
1268
+ else {
1269
+ jQuery(".bwg_options_box").show();
1270
+ jQuery(".default_option").hide();
1271
+ jQuery('#bwg_standart').addClass('bwg_optiontab_active');
1272
+ jQuery("#bwg_default").removeClass('bwg_optiontab_active');
1273
+ jQuery("#bwg_default").css({'borderLeft':'2px solid #f4f4f4'});
1274
+ jQuery("#bwg_standart").css({'borderRight':'2px solid #E1E1E1'});
1275
+ bwg_change_option_type(jQuery("#type").val());
1276
+ }
1277
  }
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.17
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -1924,7 +1924,7 @@ function bwg_activate() {
1924
  ));
1925
  }
1926
  $version = WD_BWG_VERSION;
1927
- $new_version = '1.3.17';
1928
  if ($version && version_compare($version, $new_version, '<')) {
1929
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1930
  bwg_update($version);
@@ -1976,7 +1976,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.17';
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.18
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
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
 
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);
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.17
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -173,6 +173,9 @@ To enable the feature of adding Media Library images, go to Photo Gallery > Opti
173
 
174
  == Changelog ==
175
 
 
 
 
176
  = 1.3.17 =
177
  * Changed: Dutch translations by Piet Kok.
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.18
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.18 =
177
+ * Changed: Options page design.
178
+
179
  = 1.3.17 =
180
  * Changed: Dutch translations by Piet Kok.
181