Version Description
Download this release
Release Info
Developer | webdorado |
Plugin | Photo Gallery by WD – Responsive Photo Gallery |
Version | 1.1.14 |
Comparing to | |
See all releases |
Code changes from version 1.1.13 to 1.1.14
- admin/controllers/BWGControllerThemes_bwg.php +76 -0
- admin/models/BWGModelThemes_bwg.php +18 -0
- admin/views/BWGViewThemes_bwg.php +166 -1
- css/bwg_frontend.css +34 -0
- frontend/views/BWGViewGalleryBox.php +104 -20
- js/bwg_gallery_box.js +0 -1
- photo-gallery.php +106 -4
- readme.txt +1 -1
- update/bwg_update.php +25 -1
admin/controllers/BWGControllerThemes_bwg.php
CHANGED
@@ -414,6 +414,25 @@ class BWGControllerThemes_bwg {
|
|
414 |
$masonry_thumb_hover_effect_value = (isset($_POST['masonry_thumb_hover_effect_value']) ? esc_html(stripslashes( $_POST['masonry_thumb_hover_effect_value'])) : '1.3');
|
415 |
$masonry_thumb_transition = (isset($_POST['masonry_thumb_transition']) ? esc_html(stripslashes( $_POST['masonry_thumb_transition'])) : 0);
|
416 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
417 |
$default_theme = (isset($_POST['default_theme']) ? esc_html(stripslashes( $_POST['default_theme'])) : 0);
|
418 |
if ($id != 0) {
|
419 |
$save = $wpdb->update($wpdb->prefix . 'bwg_theme', array(
|
@@ -742,6 +761,25 @@ class BWGControllerThemes_bwg {
|
|
742 |
'masonry_thumb_hover_effect_value' => $masonry_thumb_hover_effect_value,
|
743 |
'masonry_thumb_transition' => $masonry_thumb_transition,
|
744 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
745 |
'default_theme' => $default_theme,
|
746 |
), array('id' => $id));
|
747 |
}
|
@@ -1071,6 +1109,25 @@ class BWGControllerThemes_bwg {
|
|
1071 |
'masonry_thumb_transition' => $masonry_thumb_transition,
|
1072 |
'lightbox_rl_btn_transparent' => $lightbox_rl_btn_transparent,
|
1073 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1074 |
'default_theme' => $default_theme,
|
1075 |
), array(
|
1076 |
'%s',
|
@@ -1402,6 +1459,25 @@ class BWGControllerThemes_bwg {
|
|
1402 |
'%d',
|
1403 |
'%d',
|
1404 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1405 |
'%d',
|
1406 |
));
|
1407 |
}
|
414 |
$masonry_thumb_hover_effect_value = (isset($_POST['masonry_thumb_hover_effect_value']) ? esc_html(stripslashes( $_POST['masonry_thumb_hover_effect_value'])) : '1.3');
|
415 |
$masonry_thumb_transition = (isset($_POST['masonry_thumb_transition']) ? esc_html(stripslashes( $_POST['masonry_thumb_transition'])) : 0);
|
416 |
|
417 |
+
$lightbox_info_pos = (isset($_POST['lightbox_info_pos']) ? esc_html(stripslashes( $_POST['lightbox_info_pos'])) : 'top');
|
418 |
+
$lightbox_info_align = (isset($_POST['lightbox_info_align']) ? esc_html(stripslashes( $_POST['lightbox_info_align'])) : 'right');
|
419 |
+
$lightbox_info_bg_color = (isset($_POST['lightbox_info_bg_color']) ? esc_html(stripslashes( $_POST['lightbox_info_bg_color'])) : '000000');
|
420 |
+
$lightbox_info_bg_transparent = (isset($_POST['lightbox_info_bg_transparent']) ? esc_html(stripslashes( $_POST['lightbox_info_bg_transparent'])) : 70);
|
421 |
+
$lightbox_info_border_width = (isset($_POST['lightbox_info_border_width']) ? esc_html(stripslashes( $_POST['lightbox_info_border_width'])) : 1);
|
422 |
+
$lightbox_info_border_style = (isset($_POST['lightbox_info_border_style']) ? esc_html(stripslashes( $_POST['lightbox_info_border_style'])) : 'none');
|
423 |
+
$lightbox_info_border_color = (isset($_POST['lightbox_info_border_color']) ? esc_html(stripslashes( $_POST['lightbox_info_border_color'])) : '000000');
|
424 |
+
$lightbox_info_border_radius = (isset($_POST['lightbox_info_border_radius']) ? esc_html(stripslashes( $_POST['lightbox_info_border_radius'])) : 5);
|
425 |
+
$lightbox_info_padding = (isset($_POST['lightbox_info_padding']) ? esc_html(stripslashes( $_POST['lightbox_info_padding'])) : '5px');
|
426 |
+
$lightbox_info_margin = (isset($_POST['lightbox_info_margin']) ? esc_html(stripslashes( $_POST['lightbox_info_margin'])) : '15px');
|
427 |
+
$lightbox_title_color = (isset($_POST['lightbox_title_color']) ? esc_html(stripslashes( $_POST['lightbox_title_color'])) : 'FFFFFF');
|
428 |
+
$lightbox_title_font_style = (isset($_POST['lightbox_title_font_style']) ? esc_html(stripslashes( $_POST['lightbox_title_font_style'])) : 'segoe ui');
|
429 |
+
$lightbox_title_font_weight = (isset($_POST['lightbox_title_font_weight']) ? esc_html(stripslashes( $_POST['lightbox_title_font_weight'])) : 'bold');
|
430 |
+
$lightbox_title_font_size = (isset($_POST['lightbox_title_font_size']) ? esc_html(stripslashes( $_POST['lightbox_title_font_size'])) : 18);
|
431 |
+
$lightbox_description_color = (isset($_POST['lightbox_description_color']) ? esc_html(stripslashes( $_POST['lightbox_description_color'])) : 'FFFFFF');
|
432 |
+
$lightbox_description_font_style = (isset($_POST['lightbox_description_font_style']) ? esc_html(stripslashes( $_POST['lightbox_description_font_style'])) : 'segoe ui');
|
433 |
+
$lightbox_description_font_weight = (isset($_POST['lightbox_description_font_weight']) ? esc_html(stripslashes( $_POST['lightbox_description_font_weight'])) : 'normal');
|
434 |
+
$lightbox_description_font_size = (isset($_POST['lightbox_description_font_size']) ? esc_html(stripslashes( $_POST['lightbox_description_font_size'])) : 14);
|
435 |
+
|
436 |
$default_theme = (isset($_POST['default_theme']) ? esc_html(stripslashes( $_POST['default_theme'])) : 0);
|
437 |
if ($id != 0) {
|
438 |
$save = $wpdb->update($wpdb->prefix . 'bwg_theme', array(
|
761 |
'masonry_thumb_hover_effect_value' => $masonry_thumb_hover_effect_value,
|
762 |
'masonry_thumb_transition' => $masonry_thumb_transition,
|
763 |
|
764 |
+
'lightbox_info_pos' => $lightbox_info_pos,
|
765 |
+
'lightbox_info_align' => $lightbox_info_align,
|
766 |
+
'lightbox_info_bg_color' => $lightbox_info_bg_color,
|
767 |
+
'lightbox_info_bg_transparent' => $lightbox_info_bg_transparent,
|
768 |
+
'lightbox_info_border_width' => $lightbox_info_border_width,
|
769 |
+
'lightbox_info_border_style' => $lightbox_info_border_style,
|
770 |
+
'lightbox_info_border_color' => $lightbox_info_border_color,
|
771 |
+
'lightbox_info_border_radius' => $lightbox_info_border_radius,
|
772 |
+
'lightbox_info_padding' => $lightbox_info_padding,
|
773 |
+
'lightbox_info_margin' => $lightbox_info_margin,
|
774 |
+
'lightbox_title_color' => $lightbox_title_color,
|
775 |
+
'lightbox_title_font_style' => $lightbox_title_font_style,
|
776 |
+
'lightbox_title_font_weight' => $lightbox_title_font_weight,
|
777 |
+
'lightbox_title_font_size' => $lightbox_title_font_size,
|
778 |
+
'lightbox_description_color' => $lightbox_description_color,
|
779 |
+
'lightbox_description_font_style' => $lightbox_description_font_style,
|
780 |
+
'lightbox_description_font_weight' => $lightbox_description_font_weight,
|
781 |
+
'lightbox_description_font_size' => $lightbox_description_font_size,
|
782 |
+
|
783 |
'default_theme' => $default_theme,
|
784 |
), array('id' => $id));
|
785 |
}
|
1109 |
'masonry_thumb_transition' => $masonry_thumb_transition,
|
1110 |
'lightbox_rl_btn_transparent' => $lightbox_rl_btn_transparent,
|
1111 |
|
1112 |
+
'lightbox_info_pos' => $lightbox_info_pos,
|
1113 |
+
'lightbox_info_align' => $lightbox_info_align,
|
1114 |
+
'lightbox_info_bg_color' => $lightbox_info_bg_color,
|
1115 |
+
'lightbox_info_bg_transparent' => $lightbox_info_bg_transparent,
|
1116 |
+
'lightbox_info_border_width' => $lightbox_info_border_width,
|
1117 |
+
'lightbox_info_border_style' => $lightbox_info_border_style,
|
1118 |
+
'lightbox_info_border_color' => $lightbox_info_border_color,
|
1119 |
+
'lightbox_info_border_radius' => $lightbox_info_border_radius,
|
1120 |
+
'lightbox_info_padding' => $lightbox_info_padding,
|
1121 |
+
'lightbox_info_margin' => $lightbox_info_margin,
|
1122 |
+
'lightbox_title_color' => $lightbox_title_color,
|
1123 |
+
'lightbox_title_font_style' => $lightbox_title_font_style,
|
1124 |
+
'lightbox_title_font_weight' => $lightbox_title_font_weight,
|
1125 |
+
'lightbox_title_font_size' => $lightbox_title_font_size,
|
1126 |
+
'lightbox_description_color' => $lightbox_description_color,
|
1127 |
+
'lightbox_description_font_style' => $lightbox_description_font_style,
|
1128 |
+
'lightbox_description_font_weight' => $lightbox_description_font_weight,
|
1129 |
+
'lightbox_description_font_size' => $lightbox_description_font_size,
|
1130 |
+
|
1131 |
'default_theme' => $default_theme,
|
1132 |
), array(
|
1133 |
'%s',
|
1459 |
'%d',
|
1460 |
'%d',
|
1461 |
|
1462 |
+
'%s',
|
1463 |
+
'%s',
|
1464 |
+
'%s',
|
1465 |
+
'%d',
|
1466 |
+
'%d',
|
1467 |
+
'%s',
|
1468 |
+
'%s',
|
1469 |
+
'%s',
|
1470 |
+
'%s',
|
1471 |
+
'%s',
|
1472 |
+
'%s',
|
1473 |
+
'%s',
|
1474 |
+
'%s',
|
1475 |
+
'%d',
|
1476 |
+
'%s',
|
1477 |
+
'%s',
|
1478 |
+
'%s',
|
1479 |
+
'%d',
|
1480 |
+
|
1481 |
'%d',
|
1482 |
));
|
1483 |
}
|
admin/models/BWGModelThemes_bwg.php
CHANGED
@@ -373,6 +373,24 @@ class BWGModelThemes_bwg {
|
|
373 |
$row->image_browser_full_border_color = 'F7F7F7';
|
374 |
$row->image_browser_full_bg_color = 'F5F5F5';
|
375 |
$row->image_browser_full_transparent = 90;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
376 |
}
|
377 |
}
|
378 |
}
|
373 |
$row->image_browser_full_border_color = 'F7F7F7';
|
374 |
$row->image_browser_full_bg_color = 'F5F5F5';
|
375 |
$row->image_browser_full_transparent = 90;
|
376 |
+
$row->lightbox_info_pos = 'top';
|
377 |
+
$row->lightbox_info_align = 'right';
|
378 |
+
$row->lightbox_info_bg_color = '000000';
|
379 |
+
$row->lightbox_info_bg_transparent = 70;
|
380 |
+
$row->lightbox_info_border_width = 1;
|
381 |
+
$row->lightbox_info_border_style = 'none';
|
382 |
+
$row->lightbox_info_border_color = '000000';
|
383 |
+
$row->lightbox_info_border_radius = '5px';
|
384 |
+
$row->lightbox_info_padding = '5px';
|
385 |
+
$row->lightbox_info_margin = '15px';
|
386 |
+
$row->lightbox_title_color = 'FFFFFF';
|
387 |
+
$row->lightbox_title_font_style = 'segoe ui';
|
388 |
+
$row->lightbox_title_font_weight = 'bold';
|
389 |
+
$row->lightbox_title_font_size = 18;
|
390 |
+
$row->lightbox_description_color = 'FFFFFF';
|
391 |
+
$row->lightbox_description_font_style = 'segoe ui';
|
392 |
+
$row->lightbox_description_font_weight = 'normal';
|
393 |
+
$row->lightbox_description_font_size = 14;
|
394 |
}
|
395 |
}
|
396 |
}
|
admin/views/BWGViewThemes_bwg.php
CHANGED
@@ -2600,7 +2600,172 @@ class BWGViewThemes_bwg {
|
|
2600 |
<fieldset class="spider_child_fieldset" id="Lightbox_3">
|
2601 |
<table style="clear:both;">
|
2602 |
<tbody>
|
2603 |
-
<tr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2604 |
<td class="spider_label"><label for="lightbox_comment_width">Comments Width: </label></td>
|
2605 |
<td>
|
2606 |
<input type="text" name="lightbox_comment_width" id="lightbox_comment_width" value="<?php echo $row->lightbox_comment_width; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px
|
2600 |
<fieldset class="spider_child_fieldset" id="Lightbox_3">
|
2601 |
<table style="clear:both;">
|
2602 |
<tbody>
|
2603 |
+
<tr>
|
2604 |
+
<td class="spider_label"><label for="lightbox_info_pos1">Info position: </label></td>
|
2605 |
+
<td>
|
2606 |
+
<input type="radio" name="lightbox_info_pos" id="lightbox_info_pos1" value="top" <?php if ($row->lightbox_info_pos == "top") echo 'checked="checked"'; ?> />
|
2607 |
+
<label for="lightbox_info_pos1" id="lightbox_info_pos1_lbl">Top</label>
|
2608 |
+
<input type="radio" name="lightbox_info_pos" id="lightbox_info_pos0" value="bottom" <?php if ($row->lightbox_info_pos == "bottom") echo 'checked="checked"'; ?> />
|
2609 |
+
<label for="lightbox_info_pos0" id="lightbox_info_pos0_lbl">Bottom</label>
|
2610 |
+
</td>
|
2611 |
+
</tr>
|
2612 |
+
<tr>
|
2613 |
+
<td class="spider_label"><label for="lightbox_info_align">Info alignment: </label></td>
|
2614 |
+
<td>
|
2615 |
+
<select name="lightbox_info_align" id="lightbox_info_align">
|
2616 |
+
<?php
|
2617 |
+
foreach ($aligns as $key => $align) {
|
2618 |
+
?>
|
2619 |
+
<option value="<?php echo $key; ?>" <?php echo (($row->lightbox_info_align == $key) ? 'selected="selected"' : ''); ?>><?php echo $align; ?></option>
|
2620 |
+
<?php
|
2621 |
+
}
|
2622 |
+
?>
|
2623 |
+
</select>
|
2624 |
+
</td>
|
2625 |
+
</tr>
|
2626 |
+
<tr>
|
2627 |
+
<td class="spider_label"><label for="lightbox_info_bg_color">Info background color: </label></td>
|
2628 |
+
<td>
|
2629 |
+
<input type="text" name="lightbox_info_bg_color" id="lightbox_info_bg_color" value="<?php echo $row->lightbox_info_bg_color; ?>" class="color"/>
|
2630 |
+
</td>
|
2631 |
+
</tr>
|
2632 |
+
<tr>
|
2633 |
+
<td class="spider_label"><label for="lightbox_info_bg_transparent">Info background transparency: </label></td>
|
2634 |
+
<td>
|
2635 |
+
<input type="text" name="lightbox_info_bg_transparent" id="lightbox_info_bg_transparent" value="<?php echo $row->lightbox_info_bg_transparent; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> %
|
2636 |
+
<div class="spider_description">Value must be between 0 to 100.</div>
|
2637 |
+
</td>
|
2638 |
+
</tr>
|
2639 |
+
<tr>
|
2640 |
+
<td class="spider_label"><label for="lightbox_info_border_width">Info border width: </label></td>
|
2641 |
+
<td>
|
2642 |
+
<input type="text" name="lightbox_info_border_width" id="lightbox_info_border_width" value="<?php echo $row->lightbox_info_border_width; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px
|
2643 |
+
</td>
|
2644 |
+
</tr>
|
2645 |
+
<tr>
|
2646 |
+
<td class="spider_label"><label for="lightbox_info_border_style">Info border style: </label></td>
|
2647 |
+
<td>
|
2648 |
+
<select name="lightbox_info_border_style" id="lightbox_info_border_style">
|
2649 |
+
<?php
|
2650 |
+
foreach ($border_styles as $key => $border_style) {
|
2651 |
+
?>
|
2652 |
+
<option value="<?php echo $key; ?>" <?php echo (($row->lightbox_info_border_style == $key) ? 'selected="selected"' : ''); ?>><?php echo $border_style; ?></option>
|
2653 |
+
<?php
|
2654 |
+
}
|
2655 |
+
?>
|
2656 |
+
</select>
|
2657 |
+
</td>
|
2658 |
+
</tr>
|
2659 |
+
<tr>
|
2660 |
+
<td class="spider_label"><label for="lightbox_info_border_color">Info border color: </label></td>
|
2661 |
+
<td>
|
2662 |
+
<input type="text" name="lightbox_info_border_color" id="lightbox_info_border_color" value="<?php echo $row->lightbox_info_border_color; ?>" class="color"/>
|
2663 |
+
</td>
|
2664 |
+
</tr>
|
2665 |
+
<tr>
|
2666 |
+
<td class="spider_label"><label for="lightbox_info_border_radius">Info border radius: </label></td>
|
2667 |
+
<td>
|
2668 |
+
<input type="text" name="lightbox_info_border_radius" id="lightbox_info_border_radius" value="<?php echo $row->lightbox_info_border_radius; ?>" class="spider_char_input"/>
|
2669 |
+
<div class="spider_description">Use CSS type values.</div>
|
2670 |
+
</td>
|
2671 |
+
</tr>
|
2672 |
+
<tr>
|
2673 |
+
<td class="spider_label"><label for="lightbox_info_padding">Info padding: </label></td>
|
2674 |
+
<td>
|
2675 |
+
<input type="text" name="lightbox_info_padding" id="lightbox_info_padding" value="<?php echo $row->lightbox_info_padding; ?>" class="spider_char_input"/>
|
2676 |
+
<div class="spider_description">Use CSS type values.</div>
|
2677 |
+
</td>
|
2678 |
+
</tr>
|
2679 |
+
<tr>
|
2680 |
+
<td class="spider_label"><label for="lightbox_info_margin">Info margin: </label></td>
|
2681 |
+
<td>
|
2682 |
+
<input type="text" name="lightbox_info_margin" id="lightbox_info_margin" value="<?php echo $row->lightbox_info_margin; ?>" class="spider_char_input"/>
|
2683 |
+
<div class="spider_description">Use CSS type values.</div>
|
2684 |
+
</td>
|
2685 |
+
</tr>
|
2686 |
+
<tr>
|
2687 |
+
<td class="spider_label"><label for="lightbox_title_color">Title font color: </label></td>
|
2688 |
+
<td>
|
2689 |
+
<input type="text" name="lightbox_title_color" id="lightbox_title_color" value="<?php echo $row->lightbox_title_color; ?>" class="color"/>
|
2690 |
+
</td>
|
2691 |
+
</tr>
|
2692 |
+
<tr>
|
2693 |
+
<td class="spider_label"><label for="lightbox_title_font_style">Title font family: </label></td>
|
2694 |
+
<td>
|
2695 |
+
<select name="lightbox_title_font_style" id="lightbox_title_font_style">
|
2696 |
+
<?php
|
2697 |
+
foreach ($font_families as $key => $font_family) {
|
2698 |
+
?>
|
2699 |
+
<option value="<?php echo $key; ?>" <?php echo (($row->lightbox_title_font_style == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
2700 |
+
<?php
|
2701 |
+
}
|
2702 |
+
?>
|
2703 |
+
</select>
|
2704 |
+
</td>
|
2705 |
+
</tr>
|
2706 |
+
<tr>
|
2707 |
+
<td class="spider_label"><label for="lightbox_title_font_weight">Title font weight: </label></td>
|
2708 |
+
<td>
|
2709 |
+
<select name="lightbox_title_font_weight" id="lightbox_title_font_weight">
|
2710 |
+
<?php
|
2711 |
+
foreach ($font_weights as $key => $font_weight) {
|
2712 |
+
?>
|
2713 |
+
<option value="<?php echo $key; ?>" <?php echo (($row->lightbox_title_font_weight == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_weight; ?></option>
|
2714 |
+
<?php
|
2715 |
+
}
|
2716 |
+
?>
|
2717 |
+
</select>
|
2718 |
+
</td>
|
2719 |
+
</tr>
|
2720 |
+
<tr>
|
2721 |
+
<td class="spider_label"><label for="lightbox_title_font_size">Title font size: </label>
|
2722 |
+
</td>
|
2723 |
+
<td>
|
2724 |
+
<input type="text" name="lightbox_title_font_size" id="lightbox_title_font_size" value="<?php echo $row->lightbox_title_font_size; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px
|
2725 |
+
</td>
|
2726 |
+
</tr>
|
2727 |
+
<tr>
|
2728 |
+
<td class="spider_label"><label for="lightbox_description_color">Description font color: </label></td>
|
2729 |
+
<td>
|
2730 |
+
<input type="text" name="lightbox_description_color" id="lightbox_description_color" value="<?php echo $row->lightbox_description_color; ?>" class="color"/>
|
2731 |
+
</td>
|
2732 |
+
</tr>
|
2733 |
+
<tr>
|
2734 |
+
<td class="spider_label"><label for="lightbox_description_font_style">Description font family: </label></td>
|
2735 |
+
<td>
|
2736 |
+
<select name="lightbox_description_font_style" id="lightbox_description_font_style">
|
2737 |
+
<?php
|
2738 |
+
foreach ($font_families as $key => $font_family) {
|
2739 |
+
?>
|
2740 |
+
<option value="<?php echo $key; ?>" <?php echo (($row->lightbox_description_font_style == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_family; ?></option>
|
2741 |
+
<?php
|
2742 |
+
}
|
2743 |
+
?>
|
2744 |
+
</select>
|
2745 |
+
</td>
|
2746 |
+
</tr>
|
2747 |
+
<tr>
|
2748 |
+
<td class="spider_label"><label for="lightbox_description_font_weight">Description font weight: </label></td>
|
2749 |
+
<td>
|
2750 |
+
<select name="lightbox_description_font_weight" id="lightbox_description_font_weight">
|
2751 |
+
<?php
|
2752 |
+
foreach ($font_weights as $key => $font_weight) {
|
2753 |
+
?>
|
2754 |
+
<option value="<?php echo $key; ?>" <?php echo (($row->lightbox_description_font_weight == $key) ? 'selected="selected"' : ''); ?>><?php echo $font_weight; ?></option>
|
2755 |
+
<?php
|
2756 |
+
}
|
2757 |
+
?>
|
2758 |
+
</select>
|
2759 |
+
</td>
|
2760 |
+
</tr>
|
2761 |
+
<tr>
|
2762 |
+
<td class="spider_label"><label for="lightbox_description_font_size">Description font size: </label>
|
2763 |
+
</td>
|
2764 |
+
<td>
|
2765 |
+
<input type="text" name="lightbox_description_font_size" id="lightbox_description_font_size" value="<?php echo $row->lightbox_description_font_size; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px
|
2766 |
+
</td>
|
2767 |
+
</tr>
|
2768 |
+
<tr>
|
2769 |
<td class="spider_label"><label for="lightbox_comment_width">Comments Width: </label></td>
|
2770 |
<td>
|
2771 |
<input type="text" name="lightbox_comment_width" id="lightbox_comment_width" value="<?php echo $row->lightbox_comment_width; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px
|
css/bwg_frontend.css
CHANGED
@@ -140,3 +140,37 @@ div[id^="bwg_container"] p {
|
|
140 |
color: #FF0000;
|
141 |
display: block;
|
142 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
color: #FF0000;
|
141 |
display: block;
|
142 |
}
|
143 |
+
|
144 |
+
.bwg_image_info_container1 {
|
145 |
+
display: none;
|
146 |
+
height: 100%;
|
147 |
+
margin: 0 auto;
|
148 |
+
position: absolute;
|
149 |
+
width: 100%;
|
150 |
+
}
|
151 |
+
|
152 |
+
.bwg_image_info_container2 {
|
153 |
+
display: table;
|
154 |
+
height: 100%;
|
155 |
+
margin: 0 auto;
|
156 |
+
position: absolute;
|
157 |
+
width: 100%;
|
158 |
+
}
|
159 |
+
|
160 |
+
.bwg_image_info_spun {
|
161 |
+
display: table-cell;
|
162 |
+
height: 100%;
|
163 |
+
left: 0;
|
164 |
+
top: 0;
|
165 |
+
width: 100%;
|
166 |
+
overflow: hidden;
|
167 |
+
position: relative;
|
168 |
+
}
|
169 |
+
|
170 |
+
.bwg_image_info {
|
171 |
+
display: inline-block;
|
172 |
+
position: relative;
|
173 |
+
text-decoration: none;
|
174 |
+
word-wrap: break-word;
|
175 |
+
z-index: 11;
|
176 |
+
}
|
frontend/views/BWGViewGalleryBox.php
CHANGED
@@ -59,6 +59,8 @@ class BWGViewGalleryBox {
|
|
59 |
$enable_image_facebook = FALSE;
|
60 |
$enable_image_twitter = FALSE;
|
61 |
$enable_image_google = FALSE;
|
|
|
|
|
62 |
|
63 |
$watermark_type = (isset($_GET['watermark_type']) ? esc_html($_GET['watermark_type']) : 'none');
|
64 |
$watermark_text = (isset($_GET['watermark_text']) ? esc_html($_GET['watermark_text']) : '');
|
@@ -107,6 +109,8 @@ class BWGViewGalleryBox {
|
|
107 |
'enable_image_facebook' => $enable_image_facebook,
|
108 |
'enable_image_twitter' => $enable_image_twitter,
|
109 |
'enable_image_google' => $enable_image_google,
|
|
|
|
|
110 |
'watermark_type' => $watermark_type,
|
111 |
'current_url' => $current_url
|
112 |
);
|
@@ -145,6 +149,7 @@ class BWGViewGalleryBox {
|
|
145 |
$filmstrip_thumb_margin_left = $filmstrip_thumb_margin_right;
|
146 |
}
|
147 |
$filmstrip_thumb_margin_hor = $filmstrip_thumb_margin_right + $filmstrip_thumb_margin_left;
|
|
|
148 |
?>
|
149 |
<style>
|
150 |
.spider_popup_wrap * {
|
@@ -152,11 +157,6 @@ class BWGViewGalleryBox {
|
|
152 |
-webkit-box-sizing: border-box;
|
153 |
box-sizing: border-box;
|
154 |
}
|
155 |
-
.ui-tooltip {
|
156 |
-
z-index: 2147483650;
|
157 |
-
word-wrap: break-word;
|
158 |
-
word-break: break-word;
|
159 |
-
}
|
160 |
.spider_popup_wrap {
|
161 |
background-color: #<?php echo $theme_row->lightbox_bg_color; ?>;
|
162 |
display: inline-block;
|
@@ -437,9 +437,17 @@ class BWGViewGalleryBox {
|
|
437 |
.bwg_google:hover {
|
438 |
color: #DD4B39;
|
439 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
440 |
.bwg_facebook,
|
441 |
.bwg_twitter,
|
442 |
-
.bwg_google
|
|
|
|
|
443 |
color: #<?php echo $theme_row->lightbox_comment_share_button_color; ?>;
|
444 |
}
|
445 |
.bwg_image_container {
|
@@ -613,16 +621,45 @@ class BWGViewGalleryBox {
|
|
613 |
filter: Alpha(opacity=100);
|
614 |
position: absolute;
|
615 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
616 |
</style>
|
617 |
<script>
|
618 |
var data = [];
|
619 |
var event_stack = [];
|
620 |
<?php
|
|
|
621 |
foreach ($image_rows as $key => $image_row) {
|
622 |
if ($image_row->id == $current_image_id) {
|
623 |
$current_image_alt = $image_row->alt;
|
624 |
$current_image_description = str_replace(array("\r\n", "\n", "\r"), esc_html('<br />'), $image_row->description);
|
625 |
$current_image_url = $image_row->image_url;
|
|
|
626 |
}
|
627 |
?>
|
628 |
data["<?php echo $key; ?>"] = [];
|
@@ -635,8 +672,14 @@ class BWGViewGalleryBox {
|
|
635 |
data["<?php echo $key; ?>"]["comment_count"] = "<?php echo $image_row->comment_count; ?>";
|
636 |
<?php
|
637 |
}
|
638 |
-
?>
|
639 |
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
640 |
<div class="bwg_image_wrap">
|
641 |
<?php
|
642 |
if ($enable_image_ctrl_btn) {
|
@@ -653,7 +696,7 @@ class BWGViewGalleryBox {
|
|
653 |
?>
|
654 |
<i title="<?php echo __('Fullscreen', 'bwg'); ?>" class="bwg_ctrl_btn bwg_fullscreen fa fa-fullscreen"></i>
|
655 |
<?php } ?>
|
656 |
-
<i title="<?php echo
|
657 |
<?php
|
658 |
if ($option_row->popup_enable_fullsize_image) {
|
659 |
?>
|
@@ -708,6 +751,16 @@ class BWGViewGalleryBox {
|
|
708 |
}
|
709 |
?>
|
710 |
<div id="bwg_image_container" class="bwg_image_container">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
711 |
<div class="bwg_slide_container">
|
712 |
<div class="bwg_slide_bg">
|
713 |
<div class="bwg_slider">
|
@@ -1172,15 +1225,20 @@ class BWGViewGalleryBox {
|
|
1172 |
bwg_current_key = key;
|
1173 |
/* Change image id, title, description.*/
|
1174 |
jQuery("#bwg_popup_image").attr('image_id', data[key]["id"]);
|
1175 |
-
jQuery(".
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1176 |
var current_image_class = "#image_id_" + data[current_key]["id"];
|
1177 |
var next_image_class = "#image_id_" + data[key]["id"];
|
1178 |
bwg_<?php echo $image_effect; ?>(current_image_class, next_image_class, direction);
|
1179 |
jQuery("#bwg_fullsize_image").attr("href", "<?php echo site_url() . '/' . $WD_BWG_UPLOAD_DIR; ?>" + data[key]['image_url']);
|
1180 |
jQuery("#bwg_download").attr("href", "<?php echo site_url() . '/' . $WD_BWG_UPLOAD_DIR; ?>" + data[key]['image_url']);
|
1181 |
jQuery("#bwg_download").attr("download", data[key]['image_url']);
|
1182 |
-
/* Add image url to meta.*/
|
1183 |
-
jQuery("#bwg_facebook_a").attr("href", "https://www.facebook.com/sharer/sharer.php?s=100&p[url]=<?php echo urlencode($current_url); ?>&p[title]=" + data[key]['alt'] + "&p[summary]=" + data[key]['description'] + "&p[images][0]=<?php echo urlencode(site_url() . '/' . $WD_BWG_UPLOAD_DIR); ?>" + data[key]['thumb_url']);
|
1184 |
/* Load comments.*/
|
1185 |
if (jQuery(".bwg_comment_container").hasClass("bwg_open")) {
|
1186 |
if (data[key]["comment_count"] == 0) {
|
@@ -1463,15 +1521,6 @@ class BWGViewGalleryBox {
|
|
1463 |
}
|
1464 |
/* Set image container height.*/
|
1465 |
jQuery(".bwg_image_container").height(jQuery(".bwg_image_wrap").height() - <?php echo $image_filmstrip_height; ?>);
|
1466 |
-
/* Show image info in cloud.*/
|
1467 |
-
if (typeof jQuery().tooltip !== 'undefined' && jQuery.isFunction(jQuery().tooltip)) {
|
1468 |
-
jQuery(".bwg_info").tooltip({
|
1469 |
-
track: true,
|
1470 |
-
content: function () {
|
1471 |
-
return jQuery(this).prop('title');
|
1472 |
-
}
|
1473 |
-
});
|
1474 |
-
}
|
1475 |
/* Change default scrollbar in comments.*/
|
1476 |
if (typeof jQuery().mCustomScrollbar !== 'undefined' && jQuery.isFunction(jQuery().mCustomScrollbar)) {
|
1477 |
jQuery(".bwg_comments").mCustomScrollbar({scrollInertia: 150});
|
@@ -1529,6 +1578,17 @@ class BWGViewGalleryBox {
|
|
1529 |
});
|
1530 |
/* Set filmstrip initial position.*/
|
1531 |
bwg_set_filmstrip_pos(jQuery(".bwg_filmstrip").width());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1532 |
/* Open/close comments.*/
|
1533 |
jQuery(".bwg_comment, .bwg_comments_close_btn").on(bwg_click, function() { bwg_comment()});
|
1534 |
/* Open/close control buttons.*/
|
@@ -1537,6 +1597,18 @@ class BWGViewGalleryBox {
|
|
1537 |
var bwg_close_toggle_btn_class = "<?php echo ($theme_row->lightbox_ctrl_btn_pos == 'top') ? 'fa-angle-down' : 'fa-angle-up'; ?>";
|
1538 |
if (jQuery(".bwg_toggle_container i").hasClass(bwg_open_toggle_btn_class)) {
|
1539 |
/* Close controll buttons.*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1540 |
jQuery(".bwg_ctrl_btn_container").animate({<?php echo $theme_row->lightbox_ctrl_btn_pos; ?>: '-' + jQuery(".bwg_ctrl_btn_container").height()}, 500);
|
1541 |
jQuery(".bwg_toggle_container").animate({
|
1542 |
<?php echo $theme_row->lightbox_ctrl_btn_pos; ?>: 0
|
@@ -1547,6 +1619,18 @@ class BWGViewGalleryBox {
|
|
1547 |
}
|
1548 |
else {
|
1549 |
/* Open controll buttons.*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1550 |
jQuery(".bwg_ctrl_btn_container").animate({<?php echo $theme_row->lightbox_ctrl_btn_pos; ?>: 0}, 500);
|
1551 |
jQuery(".bwg_toggle_container").animate({
|
1552 |
<?php echo $theme_row->lightbox_ctrl_btn_pos; ?>: jQuery(".bwg_ctrl_btn_container").height()
|
59 |
$enable_image_facebook = FALSE;
|
60 |
$enable_image_twitter = FALSE;
|
61 |
$enable_image_google = FALSE;
|
62 |
+
$enable_image_pinterest = FALSE;
|
63 |
+
$enable_image_tumblr = FALSE;
|
64 |
|
65 |
$watermark_type = (isset($_GET['watermark_type']) ? esc_html($_GET['watermark_type']) : 'none');
|
66 |
$watermark_text = (isset($_GET['watermark_text']) ? esc_html($_GET['watermark_text']) : '');
|
109 |
'enable_image_facebook' => $enable_image_facebook,
|
110 |
'enable_image_twitter' => $enable_image_twitter,
|
111 |
'enable_image_google' => $enable_image_google,
|
112 |
+
'enable_image_pinterest' => $enable_image_pinterest,
|
113 |
+
'enable_image_tumblr' => $enable_image_tumblr,
|
114 |
'watermark_type' => $watermark_type,
|
115 |
'current_url' => $current_url
|
116 |
);
|
149 |
$filmstrip_thumb_margin_left = $filmstrip_thumb_margin_right;
|
150 |
}
|
151 |
$filmstrip_thumb_margin_hor = $filmstrip_thumb_margin_right + $filmstrip_thumb_margin_left;
|
152 |
+
$rgb_bwg_image_info_bg_color = WDWLibrary::spider_hex2rgb($theme_row->lightbox_info_bg_color);
|
153 |
?>
|
154 |
<style>
|
155 |
.spider_popup_wrap * {
|
157 |
-webkit-box-sizing: border-box;
|
158 |
box-sizing: border-box;
|
159 |
}
|
|
|
|
|
|
|
|
|
|
|
160 |
.spider_popup_wrap {
|
161 |
background-color: #<?php echo $theme_row->lightbox_bg_color; ?>;
|
162 |
display: inline-block;
|
437 |
.bwg_google:hover {
|
438 |
color: #DD4B39;
|
439 |
}
|
440 |
+
.bwg_pinterest:hover {
|
441 |
+
color: #cb2027;
|
442 |
+
}
|
443 |
+
.bwg_tumblr:hover {
|
444 |
+
color: #2F5070;
|
445 |
+
}
|
446 |
.bwg_facebook,
|
447 |
.bwg_twitter,
|
448 |
+
.bwg_google,
|
449 |
+
.bwg_pinterest,
|
450 |
+
.bwg_tumblr {
|
451 |
color: #<?php echo $theme_row->lightbox_comment_share_button_color; ?>;
|
452 |
}
|
453 |
.bwg_image_container {
|
621 |
filter: Alpha(opacity=100);
|
622 |
position: absolute;
|
623 |
}
|
624 |
+
.bwg_image_info_spun {
|
625 |
+
text-align: <?php echo $theme_row->lightbox_info_align; ?>;
|
626 |
+
vertical-align: <?php echo $theme_row->lightbox_info_pos; ?>;
|
627 |
+
}
|
628 |
+
.bwg_image_info {
|
629 |
+
background: rgba(<?php echo $rgb_bwg_image_info_bg_color['red']; ?>, <?php echo $rgb_bwg_image_info_bg_color['green']; ?>, <?php echo $rgb_bwg_image_info_bg_color['blue']; ?>, <?php echo $theme_row->lightbox_info_bg_transparent / 100; ?>);
|
630 |
+
border: <?php echo $theme_row->lightbox_info_border_width; ?>px <?php echo $theme_row->lightbox_info_border_style; ?> #<?php echo $theme_row->lightbox_info_border_color; ?>;
|
631 |
+
border-radius: <?php echo $theme_row->lightbox_info_border_radius; ?>;
|
632 |
+
<?php echo ((!$enable_image_filmstrip || $theme_row->lightbox_filmstrip_pos == 'top') && $theme_row->lightbox_ctrl_btn_pos == 'bottom' && $theme_row->lightbox_info_pos == 'bottom') ? 'bottom: ' . ($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top) . 'px;' : '' ?>
|
633 |
+
margin: <?php echo $theme_row->lightbox_info_margin; ?>;
|
634 |
+
padding: <?php echo $theme_row->lightbox_info_padding; ?>;
|
635 |
+
<?php echo ((!$enable_image_filmstrip || $theme_row->lightbox_filmstrip_pos == 'bottom') && $theme_row->lightbox_ctrl_btn_pos == 'top' && $theme_row->lightbox_info_pos == 'top') ? 'top: ' . ($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top) . 'px;' : '' ?>
|
636 |
+
}
|
637 |
+
.bwg_image_title,
|
638 |
+
.bwg_image_title * {
|
639 |
+
color: #<?php echo $theme_row->lightbox_title_color; ?> !important;
|
640 |
+
font-family: <?php echo $theme_row->lightbox_title_font_style; ?>;
|
641 |
+
font-size: <?php echo $theme_row->lightbox_title_font_size; ?>px;
|
642 |
+
font-weight: <?php echo $theme_row->lightbox_title_font_weight; ?>;
|
643 |
+
}
|
644 |
+
.bwg_image_description,
|
645 |
+
.bwg_image_description * {
|
646 |
+
color: #<?php echo $theme_row->lightbox_description_color; ?> !important;
|
647 |
+
font-family: <?php echo $theme_row->lightbox_description_font_style; ?>;
|
648 |
+
font-size: <?php echo $theme_row->lightbox_description_font_size; ?>px;
|
649 |
+
font-weight: <?php echo $theme_row->lightbox_description_font_weight; ?>;
|
650 |
+
}
|
651 |
</style>
|
652 |
<script>
|
653 |
var data = [];
|
654 |
var event_stack = [];
|
655 |
<?php
|
656 |
+
$image_id_exist = FALSE;
|
657 |
foreach ($image_rows as $key => $image_row) {
|
658 |
if ($image_row->id == $current_image_id) {
|
659 |
$current_image_alt = $image_row->alt;
|
660 |
$current_image_description = str_replace(array("\r\n", "\n", "\r"), esc_html('<br />'), $image_row->description);
|
661 |
$current_image_url = $image_row->image_url;
|
662 |
+
$image_id_exist = TRUE;
|
663 |
}
|
664 |
?>
|
665 |
data["<?php echo $key; ?>"] = [];
|
672 |
data["<?php echo $key; ?>"]["comment_count"] = "<?php echo $image_row->comment_count; ?>";
|
673 |
<?php
|
674 |
}
|
675 |
+
?>
|
676 |
</script>
|
677 |
+
<?php
|
678 |
+
if (!$image_id_exist) {
|
679 |
+
echo WDWLibrary::message(__('There are no images in this gallery.', 'bwg'), 'error');
|
680 |
+
die();
|
681 |
+
}
|
682 |
+
?>
|
683 |
<div class="bwg_image_wrap">
|
684 |
<?php
|
685 |
if ($enable_image_ctrl_btn) {
|
696 |
?>
|
697 |
<i title="<?php echo __('Fullscreen', 'bwg'); ?>" class="bwg_ctrl_btn bwg_fullscreen fa fa-fullscreen"></i>
|
698 |
<?php } ?>
|
699 |
+
<i title="<?php echo __('Show info', 'bwg'); ?>" class="bwg_ctrl_btn bwg_info fa fa-info"></i>
|
700 |
<?php
|
701 |
if ($option_row->popup_enable_fullsize_image) {
|
702 |
?>
|
751 |
}
|
752 |
?>
|
753 |
<div id="bwg_image_container" class="bwg_image_container">
|
754 |
+
<div class="bwg_image_info_container1" >
|
755 |
+
<div class="bwg_image_info_container2">
|
756 |
+
<span class="bwg_image_info_spun">
|
757 |
+
<div class="bwg_image_info">
|
758 |
+
<div class="bwg_image_title"><?php echo html_entity_decode($current_image_alt); ?></div>
|
759 |
+
<div class="bwg_image_description"><?php echo html_entity_decode($current_image_description); ?></div>
|
760 |
+
</div>
|
761 |
+
</span>
|
762 |
+
</div>
|
763 |
+
</div>
|
764 |
<div class="bwg_slide_container">
|
765 |
<div class="bwg_slide_bg">
|
766 |
<div class="bwg_slider">
|
1225 |
bwg_current_key = key;
|
1226 |
/* Change image id, title, description.*/
|
1227 |
jQuery("#bwg_popup_image").attr('image_id', data[key]["id"]);
|
1228 |
+
if (jQuery(".bwg_image_info_container1").css("display") != 'none' && (data[key]["alt"] || data[key]["description"])) {
|
1229 |
+
jQuery(".bwg_image_title").html(jQuery('<div />').html(data[key]["alt"]).text());
|
1230 |
+
jQuery(".bwg_image_description").html(jQuery('<div />').html(data[key]["description"]).text());
|
1231 |
+
jQuery(".bwg_image_info_container1").css("display", "table-cell");
|
1232 |
+
}
|
1233 |
+
else {
|
1234 |
+
jQuery(".bwg_image_info_container1").css("display", "none");
|
1235 |
+
}
|
1236 |
var current_image_class = "#image_id_" + data[current_key]["id"];
|
1237 |
var next_image_class = "#image_id_" + data[key]["id"];
|
1238 |
bwg_<?php echo $image_effect; ?>(current_image_class, next_image_class, direction);
|
1239 |
jQuery("#bwg_fullsize_image").attr("href", "<?php echo site_url() . '/' . $WD_BWG_UPLOAD_DIR; ?>" + data[key]['image_url']);
|
1240 |
jQuery("#bwg_download").attr("href", "<?php echo site_url() . '/' . $WD_BWG_UPLOAD_DIR; ?>" + data[key]['image_url']);
|
1241 |
jQuery("#bwg_download").attr("download", data[key]['image_url']);
|
|
|
|
|
1242 |
/* Load comments.*/
|
1243 |
if (jQuery(".bwg_comment_container").hasClass("bwg_open")) {
|
1244 |
if (data[key]["comment_count"] == 0) {
|
1521 |
}
|
1522 |
/* Set image container height.*/
|
1523 |
jQuery(".bwg_image_container").height(jQuery(".bwg_image_wrap").height() - <?php echo $image_filmstrip_height; ?>);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1524 |
/* Change default scrollbar in comments.*/
|
1525 |
if (typeof jQuery().mCustomScrollbar !== 'undefined' && jQuery.isFunction(jQuery().mCustomScrollbar)) {
|
1526 |
jQuery(".bwg_comments").mCustomScrollbar({scrollInertia: 150});
|
1578 |
});
|
1579 |
/* Set filmstrip initial position.*/
|
1580 |
bwg_set_filmstrip_pos(jQuery(".bwg_filmstrip").width());
|
1581 |
+
/* Show/hide image title/description.*/
|
1582 |
+
jQuery(".bwg_info").on(bwg_click, function() {
|
1583 |
+
if (jQuery(".bwg_image_info_container1").css("display") == 'none') {
|
1584 |
+
jQuery(".bwg_image_info_container1").css("display", "table-cell");
|
1585 |
+
jQuery(".bwg_info").attr("title", "<?php echo __('Hide info', 'bwg'); ?>");
|
1586 |
+
}
|
1587 |
+
else {
|
1588 |
+
jQuery(".bwg_image_info_container1").css("display", "none");
|
1589 |
+
jQuery(".bwg_info").attr("title", "<?php echo __('Show info', 'bwg'); ?>");
|
1590 |
+
}
|
1591 |
+
});
|
1592 |
/* Open/close comments.*/
|
1593 |
jQuery(".bwg_comment, .bwg_comments_close_btn").on(bwg_click, function() { bwg_comment()});
|
1594 |
/* Open/close control buttons.*/
|
1597 |
var bwg_close_toggle_btn_class = "<?php echo ($theme_row->lightbox_ctrl_btn_pos == 'top') ? 'fa-angle-down' : 'fa-angle-up'; ?>";
|
1598 |
if (jQuery(".bwg_toggle_container i").hasClass(bwg_open_toggle_btn_class)) {
|
1599 |
/* Close controll buttons.*/
|
1600 |
+
<?php
|
1601 |
+
if ((!$enable_image_filmstrip || $theme_row->lightbox_filmstrip_pos == 'top') && $theme_row->lightbox_ctrl_btn_pos == 'bottom' && $theme_row->lightbox_info_pos == 'bottom') {
|
1602 |
+
?>
|
1603 |
+
jQuery(".bwg_image_info").animate({bottom: 0}, 500);
|
1604 |
+
<?php
|
1605 |
+
}
|
1606 |
+
elseif ((!$enable_image_filmstrip || $theme_row->lightbox_filmstrip_pos == 'bottom') && $theme_row->lightbox_ctrl_btn_pos == 'top' && $theme_row->lightbox_info_pos == 'top') {
|
1607 |
+
?>
|
1608 |
+
jQuery(".bwg_image_info").animate({top: 0}, 500);
|
1609 |
+
<?php
|
1610 |
+
}
|
1611 |
+
?>
|
1612 |
jQuery(".bwg_ctrl_btn_container").animate({<?php echo $theme_row->lightbox_ctrl_btn_pos; ?>: '-' + jQuery(".bwg_ctrl_btn_container").height()}, 500);
|
1613 |
jQuery(".bwg_toggle_container").animate({
|
1614 |
<?php echo $theme_row->lightbox_ctrl_btn_pos; ?>: 0
|
1619 |
}
|
1620 |
else {
|
1621 |
/* Open controll buttons.*/
|
1622 |
+
<?php
|
1623 |
+
if ((!$enable_image_filmstrip || $theme_row->lightbox_filmstrip_pos == 'top') && $theme_row->lightbox_ctrl_btn_pos == 'bottom' && $theme_row->lightbox_info_pos == 'bottom') {
|
1624 |
+
?>
|
1625 |
+
jQuery(".bwg_image_info").animate({bottom: jQuery(".bwg_ctrl_btn_container").height()}, 500);
|
1626 |
+
<?php
|
1627 |
+
}
|
1628 |
+
elseif ((!$enable_image_filmstrip || $theme_row->lightbox_filmstrip_pos == 'bottom') && $theme_row->lightbox_ctrl_btn_pos == 'top' && $theme_row->lightbox_info_pos == 'top') {
|
1629 |
+
?>
|
1630 |
+
jQuery(".bwg_image_info").animate({top: jQuery(".bwg_ctrl_btn_container").height()}, 500);
|
1631 |
+
<?php
|
1632 |
+
}
|
1633 |
+
?>
|
1634 |
jQuery(".bwg_ctrl_btn_container").animate({<?php echo $theme_row->lightbox_ctrl_btn_pos; ?>: 0}, 500);
|
1635 |
jQuery(".bwg_toggle_container").animate({
|
1636 |
<?php echo $theme_row->lightbox_ctrl_btn_pos; ?>: jQuery(".bwg_ctrl_btn_container").height()
|
js/bwg_gallery_box.js
CHANGED
@@ -64,7 +64,6 @@ function spider_destroypopup(duration) {
|
|
64 |
if (isMobile && viewportmeta) {
|
65 |
viewportmeta.content = 'width=device-width, initial-scale=1';
|
66 |
}
|
67 |
-
window.location.hash = "";
|
68 |
}
|
69 |
|
70 |
// Submit popup.
|
64 |
if (isMobile && viewportmeta) {
|
65 |
viewportmeta.content = 'width=device-width, initial-scale=1';
|
66 |
}
|
|
|
67 |
}
|
68 |
|
69 |
// Submit popup.
|
photo-gallery.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Photo Gallery
|
5 |
* Plugin URI: http://web-dorado.com/products/wordpress-photo-gallery-plugin.html
|
6 |
* Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
|
7 |
-
* Version: 1.1.
|
8 |
* Author: http://web-dorado.com/
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
*/
|
@@ -276,6 +276,8 @@ function bwg_shortcode($params) {
|
|
276 |
'popup_enable_facebook' => 1,
|
277 |
'popup_enable_twitter' => 1,
|
278 |
'popup_enable_google' => 1,
|
|
|
|
|
279 |
'watermark_type' => 'none'
|
280 |
), $params);
|
281 |
}
|
@@ -530,6 +532,8 @@ function bwg_activate() {
|
|
530 |
`image_role` tinyint(1) NOT NULL,
|
531 |
`popup_autoplay` tinyint(1) NOT NULL,
|
532 |
`album_view_type` varchar(64) NOT NULL,
|
|
|
|
|
533 |
PRIMARY KEY (`id`)
|
534 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8;";
|
535 |
$wpdb->query($bwg_option);
|
@@ -862,7 +866,26 @@ function bwg_activate() {
|
|
862 |
`image_browser_full_border_color` varchar(128) NOT NULL,
|
863 |
`image_browser_full_bg_color` varchar(128) NOT NULL,
|
864 |
`image_browser_full_transparent` int(4) NOT NULL,
|
865 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
866 |
`default_theme` tinyint(1) NOT NULL,
|
867 |
PRIMARY KEY (`id`)
|
868 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8;";
|
@@ -980,6 +1003,8 @@ function bwg_activate() {
|
|
980 |
'image_role' => 0,
|
981 |
'popup_autoplay' => 0,
|
982 |
'album_view_type' => 'thumbnail',
|
|
|
|
|
983 |
), array(
|
984 |
'%d',
|
985 |
'%s',
|
@@ -1074,6 +1099,8 @@ function bwg_activate() {
|
|
1074 |
'%d',
|
1075 |
'%d',
|
1076 |
'%s',
|
|
|
|
|
1077 |
));
|
1078 |
}
|
1079 |
$exists_default = $wpdb->get_var('SELECT count(id) FROM ' . $wpdb->prefix . 'bwg_theme');
|
@@ -1407,6 +1434,25 @@ function bwg_activate() {
|
|
1407 |
'image_browser_full_bg_color' => 'F5F5F5',
|
1408 |
'image_browser_full_transparent' => 90,
|
1409 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1410 |
'default_theme' => 1
|
1411 |
), array(
|
1412 |
'%d',
|
@@ -1737,6 +1783,25 @@ function bwg_activate() {
|
|
1737 |
'%s',
|
1738 |
'%d',
|
1739 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1740 |
'%d'
|
1741 |
));
|
1742 |
|
@@ -2069,6 +2134,25 @@ function bwg_activate() {
|
|
2069 |
'image_browser_full_bg_color' => 'FFFFFF',
|
2070 |
'image_browser_full_transparent' => 90,
|
2071 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2072 |
'default_theme' => 0
|
2073 |
), array(
|
2074 |
'%d',
|
@@ -2399,11 +2483,30 @@ function bwg_activate() {
|
|
2399 |
'%s',
|
2400 |
'%d',
|
2401 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2402 |
'%d'
|
2403 |
));
|
2404 |
}
|
2405 |
$version = get_option("wd_bwg_version");
|
2406 |
-
$new_version = '1.1.
|
2407 |
if ($version && version_compare($version, $new_version, '<')) {
|
2408 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
2409 |
bwg_update($version);
|
@@ -2472,7 +2575,6 @@ function bwg_front_end_scripts() {
|
|
2472 |
}
|
2473 |
}
|
2474 |
wp_enqueue_script('jquery');
|
2475 |
-
wp_enqueue_script('jquery-ui-tooltip');
|
2476 |
wp_enqueue_style('jquery-ui', WD_BWG_URL . '/css/jquery-ui-1.10.3.custom.css', array(), $version);
|
2477 |
|
2478 |
wp_enqueue_script('bwg_frontend', WD_BWG_URL . '/js/bwg_frontend.js', array(), $version);
|
4 |
* Plugin Name: Photo Gallery
|
5 |
* Plugin URI: http://web-dorado.com/products/wordpress-photo-gallery-plugin.html
|
6 |
* Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
|
7 |
+
* Version: 1.1.14
|
8 |
* Author: http://web-dorado.com/
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
*/
|
276 |
'popup_enable_facebook' => 1,
|
277 |
'popup_enable_twitter' => 1,
|
278 |
'popup_enable_google' => 1,
|
279 |
+
'popup_enable_pinterest' => 0,
|
280 |
+
'popup_enable_tumblr' => 0,
|
281 |
'watermark_type' => 'none'
|
282 |
), $params);
|
283 |
}
|
532 |
`image_role` tinyint(1) NOT NULL,
|
533 |
`popup_autoplay` tinyint(1) NOT NULL,
|
534 |
`album_view_type` varchar(64) NOT NULL,
|
535 |
+
`popup_enable_pinterest` tinyint(1) NOT NULL,
|
536 |
+
`popup_enable_tumblr` tinyint(1) NOT NULL,
|
537 |
PRIMARY KEY (`id`)
|
538 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8;";
|
539 |
$wpdb->query($bwg_option);
|
866 |
`image_browser_full_border_color` varchar(128) NOT NULL,
|
867 |
`image_browser_full_bg_color` varchar(128) NOT NULL,
|
868 |
`image_browser_full_transparent` int(4) NOT NULL,
|
869 |
+
|
870 |
+
`lightbox_info_pos` varchar(128) NOT NULL,
|
871 |
+
`lightbox_info_align` varchar(128) NOT NULL,
|
872 |
+
`lightbox_info_bg_color` varchar(128) NOT NULL,
|
873 |
+
`lightbox_info_bg_transparent` int(4) NOT NULL,
|
874 |
+
`lightbox_info_border_width` int(4) NOT NULL,
|
875 |
+
`lightbox_info_border_style` varchar(128) NOT NULL,
|
876 |
+
`lightbox_info_border_color` varchar(128) NOT NULL,
|
877 |
+
`lightbox_info_border_radius` varchar(128) NOT NULL,
|
878 |
+
`lightbox_info_padding` varchar(128) NOT NULL,
|
879 |
+
`lightbox_info_margin` varchar(128) NOT NULL,
|
880 |
+
`lightbox_title_color` varchar(128) NOT NULL,
|
881 |
+
`lightbox_title_font_style` varchar(128) NOT NULL,
|
882 |
+
`lightbox_title_font_weight` varchar(128) NOT NULL,
|
883 |
+
`lightbox_title_font_size` int(4) NOT NULL,
|
884 |
+
`lightbox_description_color` varchar(128) NOT NULL,
|
885 |
+
`lightbox_description_font_style` varchar(128) NOT NULL,
|
886 |
+
`lightbox_description_font_weight` varchar(128) NOT NULL,
|
887 |
+
`lightbox_description_font_size` int(4) NOT NULL,
|
888 |
+
|
889 |
`default_theme` tinyint(1) NOT NULL,
|
890 |
PRIMARY KEY (`id`)
|
891 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8;";
|
1003 |
'image_role' => 0,
|
1004 |
'popup_autoplay' => 0,
|
1005 |
'album_view_type' => 'thumbnail',
|
1006 |
+
'popup_enable_pinterest' => 0,
|
1007 |
+
'popup_enable_tumblr' => 0,
|
1008 |
), array(
|
1009 |
'%d',
|
1010 |
'%s',
|
1099 |
'%d',
|
1100 |
'%d',
|
1101 |
'%s',
|
1102 |
+
'%d',
|
1103 |
+
'%d',
|
1104 |
));
|
1105 |
}
|
1106 |
$exists_default = $wpdb->get_var('SELECT count(id) FROM ' . $wpdb->prefix . 'bwg_theme');
|
1434 |
'image_browser_full_bg_color' => 'F5F5F5',
|
1435 |
'image_browser_full_transparent' => 90,
|
1436 |
|
1437 |
+
'lightbox_info_pos' => 'top',
|
1438 |
+
'lightbox_info_align' => 'right',
|
1439 |
+
'lightbox_info_bg_color' => '000000',
|
1440 |
+
'lightbox_info_bg_transparent' => 70,
|
1441 |
+
'lightbox_info_border_width' => 1,
|
1442 |
+
'lightbox_info_border_style' => 'none',
|
1443 |
+
'lightbox_info_border_color' => '000000',
|
1444 |
+
'lightbox_info_border_radius' => '5px',
|
1445 |
+
'lightbox_info_padding' => '5px',
|
1446 |
+
'lightbox_info_margin' => '15px',
|
1447 |
+
'lightbox_title_color' => 'FFFFFF',
|
1448 |
+
'lightbox_title_font_style' => 'segoe ui',
|
1449 |
+
'lightbox_title_font_weight' => 'bold',
|
1450 |
+
'lightbox_title_font_size' => 18,
|
1451 |
+
'lightbox_description_color' => 'FFFFFF',
|
1452 |
+
'lightbox_description_font_style' => 'segoe ui',
|
1453 |
+
'lightbox_description_font_weight' => 'normal',
|
1454 |
+
'lightbox_description_font_size' => 14,
|
1455 |
+
|
1456 |
'default_theme' => 1
|
1457 |
), array(
|
1458 |
'%d',
|
1783 |
'%s',
|
1784 |
'%d',
|
1785 |
|
1786 |
+
'%s',
|
1787 |
+
'%s',
|
1788 |
+
'%s',
|
1789 |
+
'%d',
|
1790 |
+
'%d',
|
1791 |
+
'%s',
|
1792 |
+
'%s',
|
1793 |
+
'%s',
|
1794 |
+
'%s',
|
1795 |
+
'%s',
|
1796 |
+
'%s',
|
1797 |
+
'%s',
|
1798 |
+
'%s',
|
1799 |
+
'%d',
|
1800 |
+
'%s',
|
1801 |
+
'%s',
|
1802 |
+
'%s',
|
1803 |
+
'%d',
|
1804 |
+
|
1805 |
'%d'
|
1806 |
));
|
1807 |
|
2134 |
'image_browser_full_bg_color' => 'FFFFFF',
|
2135 |
'image_browser_full_transparent' => 90,
|
2136 |
|
2137 |
+
'lightbox_info_pos' => 'top',
|
2138 |
+
'lightbox_info_align' => 'right',
|
2139 |
+
'lightbox_info_bg_color' => '000000',
|
2140 |
+
'lightbox_info_bg_transparent' => 70,
|
2141 |
+
'lightbox_info_border_width' => 1,
|
2142 |
+
'lightbox_info_border_style' => 'none',
|
2143 |
+
'lightbox_info_border_color' => '000000',
|
2144 |
+
'lightbox_info_border_radius' => '5px',
|
2145 |
+
'lightbox_info_padding' => '5px',
|
2146 |
+
'lightbox_info_margin' => '15px',
|
2147 |
+
'lightbox_title_color' => 'FFFFFF',
|
2148 |
+
'lightbox_title_font_style' => 'segoe ui',
|
2149 |
+
'lightbox_title_font_weight' => 'bold',
|
2150 |
+
'lightbox_title_font_size' => 18,
|
2151 |
+
'lightbox_description_color' => 'FFFFFF',
|
2152 |
+
'lightbox_description_font_style' => 'segoe ui',
|
2153 |
+
'lightbox_description_font_weight' => 'normal',
|
2154 |
+
'lightbox_description_font_size' => 14,
|
2155 |
+
|
2156 |
'default_theme' => 0
|
2157 |
), array(
|
2158 |
'%d',
|
2483 |
'%s',
|
2484 |
'%d',
|
2485 |
|
2486 |
+
'%s',
|
2487 |
+
'%s',
|
2488 |
+
'%s',
|
2489 |
+
'%d',
|
2490 |
+
'%d',
|
2491 |
+
'%s',
|
2492 |
+
'%s',
|
2493 |
+
'%s',
|
2494 |
+
'%s',
|
2495 |
+
'%s',
|
2496 |
+
'%s',
|
2497 |
+
'%s',
|
2498 |
+
'%s',
|
2499 |
+
'%d',
|
2500 |
+
'%s',
|
2501 |
+
'%s',
|
2502 |
+
'%s',
|
2503 |
+
'%d',
|
2504 |
+
|
2505 |
'%d'
|
2506 |
));
|
2507 |
}
|
2508 |
$version = get_option("wd_bwg_version");
|
2509 |
+
$new_version = '1.1.14';
|
2510 |
if ($version && version_compare($version, $new_version, '<')) {
|
2511 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
2512 |
bwg_update($version);
|
2575 |
}
|
2576 |
}
|
2577 |
wp_enqueue_script('jquery');
|
|
|
2578 |
wp_enqueue_style('jquery-ui', WD_BWG_URL . '/css/jquery-ui-1.10.3.custom.css', array(), $version);
|
2579 |
|
2580 |
wp_enqueue_script('bwg_frontend', WD_BWG_URL . '/js/bwg_frontend.js', array(), $version);
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://web-dorado.com/products/wordpress-photo-gallery-plugin.html
|
|
4 |
Tags: photo, photo gallery, image gallery, video gallery, gallery, galleries, wordpress gallery plugin, images gallery, album, photo albums, Simple gallery, best gallery plugin, free photo gallery, wp gallery, wordpress gallery, website gallery, gallery shortcode, best gallery, picture, pictures, gallery slider, photo album, photogallery, widget gallery, image, images, photos, gallery lightbox, photoset, wordpress photo gallery plugin, wp gallery plugins, responsive wordpress photo gallery, media, image album, filterable gallery, banner rotator, fullscreen gallery, Fotogalerie, Galleria, galerie, galeri
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.9
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
4 |
Tags: photo, photo gallery, image gallery, video gallery, gallery, galleries, wordpress gallery plugin, images gallery, album, photo albums, Simple gallery, best gallery plugin, free photo gallery, wp gallery, wordpress gallery, website gallery, gallery shortcode, best gallery, picture, pictures, gallery slider, photo album, photogallery, widget gallery, image, images, photos, gallery lightbox, photoset, wordpress photo gallery plugin, wp gallery plugins, responsive wordpress photo gallery, media, image album, filterable gallery, banner rotator, fullscreen gallery, Fotogalerie, Galleria, galerie, galeri
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.9
|
7 |
+
Stable tag: 1.1.14
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
update/bwg_update.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
function bwg_update($version) {
|
4 |
global $wpdb;
|
5 |
if (version_compare($version, '1.0.1') == -1) {
|
6 |
-
// Add
|
7 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `image_title_show_hover` varchar(20) NOT NULL DEFAULT 'none' AFTER `image_enable_page`");
|
8 |
// Add image title theme options.
|
9 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `thumb_title_shadow` varchar(64) NOT NULL DEFAULT '0px 0px 0px #888888' AFTER `thumb_transition`");
|
@@ -31,6 +31,30 @@ function bwg_update($version) {
|
|
31 |
// Add album view type option.
|
32 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `album_view_type` varchar(255) NOT NULL DEFAULT 'thumbnail' AFTER `popup_autoplay`");
|
33 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
return;
|
35 |
}
|
36 |
|
3 |
function bwg_update($version) {
|
4 |
global $wpdb;
|
5 |
if (version_compare($version, '1.0.1') == -1) {
|
6 |
+
// Add thumb title option.
|
7 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `image_title_show_hover` varchar(20) NOT NULL DEFAULT 'none' AFTER `image_enable_page`");
|
8 |
// Add image title theme options.
|
9 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `thumb_title_shadow` varchar(64) NOT NULL DEFAULT '0px 0px 0px #888888' AFTER `thumb_transition`");
|
31 |
// Add album view type option.
|
32 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `album_view_type` varchar(255) NOT NULL DEFAULT 'thumbnail' AFTER `popup_autoplay`");
|
33 |
}
|
34 |
+
if (version_compare($version, '1.1.14') == -1) {
|
35 |
+
// Add Pinterest, Tumblr share buttons enable options.
|
36 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `popup_enable_pinterest` tinyint(1) NOT NULL DEFAULT 0 AFTER `popup_fullscreen`");
|
37 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `popup_enable_tumblr` tinyint(1) NOT NULL DEFAULT 0 AFTER `popup_fullscreen`");
|
38 |
+
// Add image title/description theme options.
|
39 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `lightbox_info_pos` varchar(128) NOT NULL DEFAULT 'top' AFTER `image_browser_full_transparent`");
|
40 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `lightbox_info_align` varchar(128) NOT NULL DEFAULT 'right' AFTER `image_browser_full_transparent`");
|
41 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `lightbox_info_bg_color` varchar(128) NOT NULL DEFAULT '000000' AFTER `image_browser_full_transparent`");
|
42 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `lightbox_info_bg_transparent` int(4) NOT NULL DEFAULT 70 AFTER `image_browser_full_transparent`");
|
43 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `lightbox_info_border_width` int(4) NOT NULL DEFAULT 1 AFTER `image_browser_full_transparent`");
|
44 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `lightbox_info_border_style` varchar(128) NOT NULL DEFAULT 'none' AFTER `image_browser_full_transparent`");
|
45 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `lightbox_info_border_color` varchar(128) NOT NULL DEFAULT '000000' AFTER `image_browser_full_transparent`");
|
46 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `lightbox_info_border_radius` varchar(128) NOT NULL DEFAULT '5px' AFTER `image_browser_full_transparent`");
|
47 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `lightbox_info_padding` varchar(128) NOT NULL DEFAULT '5px' AFTER `image_browser_full_transparent`");
|
48 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `lightbox_info_margin` varchar(128) NOT NULL DEFAULT '15px' AFTER `image_browser_full_transparent`");
|
49 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `lightbox_title_color` varchar(128) NOT NULL DEFAULT 'FFFFFF' AFTER `image_browser_full_transparent`");
|
50 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `lightbox_title_font_style` varchar(128) NOT NULL DEFAULT 'segoe ui' AFTER `image_browser_full_transparent`");
|
51 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `lightbox_title_font_weight` varchar(128) NOT NULL DEFAULT 'bold' AFTER `image_browser_full_transparent`");
|
52 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `lightbox_title_font_size` int(4) NOT NULL DEFAULT 18 AFTER `image_browser_full_transparent`");
|
53 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `lightbox_description_color` varchar(128) NOT NULL DEFAULT 'FFFFFF' AFTER `image_browser_full_transparent`");
|
54 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `lightbox_description_font_style` varchar(128) NOT NULL DEFAULT 'segoe ui' AFTER `image_browser_full_transparent`");
|
55 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `lightbox_description_font_weight` varchar(128) NOT NULL DEFAULT 'normal' AFTER `image_browser_full_transparent`");
|
56 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `lightbox_description_font_size` int(4) NOT NULL DEFAULT 14 AFTER `image_browser_full_transparent`");
|
57 |
+
}
|
58 |
return;
|
59 |
}
|
60 |
|