Version Description
- Fixed: Search in gallery from widget.
- Added: Effect duration option.
Download this release
Release Info
Developer | webdorado |
Plugin | Photo Gallery by WD – Responsive Photo Gallery |
Version | 1.2.104 |
Comparing to | |
See all releases |
Code changes from version 1.2.103 to 1.2.104
- admin/controllers/BWGControllerOptions_bwg.php +15 -11
- admin/models/BWGModelOptions_bwg.php +3 -1
- admin/views/BWGViewBWGShortcode.php +12 -0
- admin/views/BWGViewOptions_bwg.php +18 -0
- frontend/views/BWGViewAlbum_compact_preview.php +3 -1
- frontend/views/BWGViewAlbum_extended_preview.php +2 -1
- frontend/views/BWGViewGalleryBox.php +3 -1
- frontend/views/BWGViewImage_browser.php +2 -1
- frontend/views/BWGViewSlideshow.php +3 -1
- frontend/views/BWGViewThumbnails.php +3 -1
- photo-gallery.php +15 -4
- readme.txt +6 -1
- update/bwg_update.php +4 -0
admin/controllers/BWGControllerOptions_bwg.php
CHANGED
@@ -227,12 +227,14 @@ class BWGControllerOptions_bwg {
|
|
227 |
$carousel_play_pause_butt = (isset($_POST['carousel_play_pause_butt']) ? esc_html(stripslashes($_POST['carousel_play_pause_butt'])) : 1);
|
228 |
$bwg_permissions = (isset($_POST['permissions']) ? esc_html(stripslashes($_POST['permissions'])) : 'manage_options');
|
229 |
$facebook_app_id = (isset($_POST['facebook_app_id']) ? esc_html(stripslashes($_POST['facebook_app_id'])) : '');
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
|
|
|
|
236 |
$save = $wpdb->update($wpdb->prefix . 'bwg_option', array(
|
237 |
'images_directory' => $images_directory,
|
238 |
'masonry' => $masonry,
|
@@ -367,11 +369,13 @@ class BWGControllerOptions_bwg {
|
|
367 |
'carousel_play_pause_butt' => $carousel_play_pause_butt,
|
368 |
'permissions' => $bwg_permissions,
|
369 |
'facebook_app_id' => $facebook_app_id,
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
|
|
|
|
375 |
), array('id' => 1));
|
376 |
|
377 |
if(isset($_POST['watermark']) && $_POST['watermark'] == "image_set_watermark"){
|
227 |
$carousel_play_pause_butt = (isset($_POST['carousel_play_pause_butt']) ? esc_html(stripslashes($_POST['carousel_play_pause_butt'])) : 1);
|
228 |
$bwg_permissions = (isset($_POST['permissions']) ? esc_html(stripslashes($_POST['permissions'])) : 'manage_options');
|
229 |
$facebook_app_id = (isset($_POST['facebook_app_id']) ? esc_html(stripslashes($_POST['facebook_app_id'])) : '');
|
230 |
+
$facebook_app_secret = (isset($_POST['facebook_app_secret']) ? esc_html(stripslashes($_POST['facebook_app_secret'])) : '');
|
231 |
+
$show_tag_box = (isset($_POST['show_tag_box']) ? esc_html(stripslashes($_POST['show_tag_box'])) : 0);
|
232 |
+
$show_hide_custom_post = (isset($_POST['show_hide_custom_post']) ? esc_html(stripslashes($_POST['show_hide_custom_post'])) : 0);
|
233 |
+
$show_hide_post_meta = (isset($_POST['show_hide_post_meta']) ? esc_html(stripslashes($_POST['show_hide_post_meta'])) : 0);
|
234 |
+
$placeholder = (isset($_POST['placeholder']) ? esc_html(stripslashes($_POST['placeholder'])) : '');
|
235 |
+
$slideshow_effect_duration = (isset($_POST['slideshow_effect_duration']) ? esc_html(stripslashes($_POST['slideshow_effect_duration'])) : 1);
|
236 |
+
$popup_effect_duration = (isset($_POST['popup_effect_duration']) ? esc_html(stripslashes($_POST['popup_effect_duration'])) : 1);
|
237 |
+
|
238 |
$save = $wpdb->update($wpdb->prefix . 'bwg_option', array(
|
239 |
'images_directory' => $images_directory,
|
240 |
'masonry' => $masonry,
|
369 |
'carousel_play_pause_butt' => $carousel_play_pause_butt,
|
370 |
'permissions' => $bwg_permissions,
|
371 |
'facebook_app_id' => $facebook_app_id,
|
372 |
+
'facebook_app_secret' => $facebook_app_secret,
|
373 |
+
'show_tag_box' => $show_tag_box,
|
374 |
+
'show_hide_custom_post' => $show_hide_custom_post,
|
375 |
+
'show_hide_post_meta' => $show_hide_post_meta,
|
376 |
+
'placeholder' => $placeholder,
|
377 |
+
'slideshow_effect_duration' => $slideshow_effect_duration,
|
378 |
+
'popup_effect_duration' => $popup_effect_duration,
|
379 |
), array('id' => 1));
|
380 |
|
381 |
if(isset($_POST['watermark']) && $_POST['watermark'] == "image_set_watermark"){
|
admin/models/BWGModelOptions_bwg.php
CHANGED
@@ -78,7 +78,8 @@ class BWGModelOptions_bwg {
|
|
78 |
$row->slideshow_description_position = 'bottom-right';
|
79 |
$row->slideshow_enable_music = 0;
|
80 |
$row->slideshow_audio_url = '';
|
81 |
-
|
|
|
82 |
$row->popup_width = 800;
|
83 |
$row->popup_height = 500;
|
84 |
$row->popup_type = 'fade';
|
@@ -97,6 +98,7 @@ class BWGModelOptions_bwg {
|
|
97 |
$row->popup_enable_google = 1;
|
98 |
$row->popup_enable_pinterest = 0;
|
99 |
$row->popup_enable_tumblr = 0;
|
|
|
100 |
|
101 |
$row->watermark_type = 'none';
|
102 |
$row->watermark_position = 'bottom-left';
|
78 |
$row->slideshow_description_position = 'bottom-right';
|
79 |
$row->slideshow_enable_music = 0;
|
80 |
$row->slideshow_audio_url = '';
|
81 |
+
$row->slideshow_effect_duration = 1;
|
82 |
+
|
83 |
$row->popup_width = 800;
|
84 |
$row->popup_height = 500;
|
85 |
$row->popup_type = 'fade';
|
98 |
$row->popup_enable_google = 1;
|
99 |
$row->popup_enable_pinterest = 0;
|
100 |
$row->popup_enable_tumblr = 0;
|
101 |
+
$row->popup_effect_duration = 1;
|
102 |
|
103 |
$row->watermark_type = 'none';
|
104 |
$row->watermark_position = 'bottom-left';
|
admin/views/BWGViewBWGShortcode.php
CHANGED
@@ -609,6 +609,10 @@ class BWGViewBWGShortcode {
|
|
609 |
</select>
|
610 |
</td>
|
611 |
</tr>
|
|
|
|
|
|
|
|
|
612 |
<tr id="tr_slideshow_interval">
|
613 |
<td title="<?php _e("Interval between two images.", 'bwg_back'); ?>" class="spider_label"><label for="slideshow_interval"><?php _e("Time interval:", 'bwg_back'); ?> </label></td>
|
614 |
<td><input type="text" name="slideshow_interval" id="slideshow_interval" value="<?php echo $option_row->slideshow_interval; ?>" class="spider_int_input" /> sec.</td>
|
@@ -796,6 +800,10 @@ class BWGViewBWGShortcode {
|
|
796 |
</select>
|
797 |
</td>
|
798 |
</tr>
|
|
|
|
|
|
|
|
|
799 |
<tr id="tr_popup_autoplay">
|
800 |
<td class="spider_label">
|
801 |
<label><?php _e("Lightbox autoplay:", 'bwg_back'); ?> </label>
|
@@ -1179,6 +1187,7 @@ class BWGViewBWGShortcode {
|
|
1179 |
}
|
1180 |
jQuery("select[id=slideshow_effect] option[value='" + short_code['slideshow_effect'] + "']").attr('selected', 'selected');
|
1181 |
jQuery("#slideshow_interval").val(short_code['slideshow_interval']);
|
|
|
1182 |
jQuery("#slideshow_width").val(short_code['slideshow_width']);
|
1183 |
jQuery("#slideshow_height").val(short_code['slideshow_height']);
|
1184 |
if (short_code['enable_slideshow_autoplay'] == 1) {
|
@@ -1444,6 +1453,7 @@ class BWGViewBWGShortcode {
|
|
1444 |
jQuery("#popup_height").val(short_code['popup_height']);
|
1445 |
jQuery("select[id=popup_effect] option[value='" + short_code['popup_effect'] + "']").attr('selected', 'selected');
|
1446 |
jQuery("#popup_interval").val(short_code['popup_interval']);
|
|
|
1447 |
if (short_code['popup_fullscreen'] == 1) {
|
1448 |
jQuery("#popup_fullscreen_1").attr('checked', 'checked');
|
1449 |
jQuery("#tr_popup_width_height").css('display', 'none');
|
@@ -1684,6 +1694,7 @@ class BWGViewBWGShortcode {
|
|
1684 |
tagtext += ' enable_slideshow_music="' + jQuery("input[name=enable_slideshow_music]:checked").val() + '"';
|
1685 |
tagtext += ' slideshow_music_url="' + jQuery("#slideshow_music_url").val() + '"';
|
1686 |
title = ' gal_title="' + jQuery.trim(jQuery('#gallery option:selected').text().replace("'", "").replace('"', '')) + '"';
|
|
|
1687 |
break;
|
1688 |
|
1689 |
}
|
@@ -1785,6 +1796,7 @@ class BWGViewBWGShortcode {
|
|
1785 |
tagtext += ' popup_enable_pinterest="' + jQuery("input[name=popup_enable_pinterest]:checked").val() + '"';
|
1786 |
tagtext += ' popup_enable_tumblr="' + jQuery("input[name=popup_enable_tumblr]:checked").val() + '"';
|
1787 |
tagtext += ' show_tag_box="' + jQuery("input[name=show_tag_box]:checked").val() + '"';
|
|
|
1788 |
}
|
1789 |
// Watermark parameters.
|
1790 |
tagtext += ' watermark_type="' + jQuery("input[name=watermark_type]:checked").val() + '"';
|
609 |
</select>
|
610 |
</td>
|
611 |
</tr>
|
612 |
+
<tr id="tr_slideshow_effect_duration">
|
613 |
+
<td title="<?php echo __("Interval between two images.", 'bwg_back'); ?>" class="spider_label"><label for="slideshow_effect_duration"><?php echo __('Effect duration:', 'bwg_back'); ?> </label></td>
|
614 |
+
<td><input type="text" name="slideshow_effect_duration" id="slideshow_effect_duration" value="<?php echo $option_row->slideshow_effect_duration; ?>" class="spider_int_input" /> sec.</td>
|
615 |
+
</tr>
|
616 |
<tr id="tr_slideshow_interval">
|
617 |
<td title="<?php _e("Interval between two images.", 'bwg_back'); ?>" class="spider_label"><label for="slideshow_interval"><?php _e("Time interval:", 'bwg_back'); ?> </label></td>
|
618 |
<td><input type="text" name="slideshow_interval" id="slideshow_interval" value="<?php echo $option_row->slideshow_interval; ?>" class="spider_int_input" /> sec.</td>
|
800 |
</select>
|
801 |
</td>
|
802 |
</tr>
|
803 |
+
<tr id="tr_popup_effect_duration">
|
804 |
+
<td title="<?php echo __("Interval between two images.", 'bwg_back'); ?>" class="spider_label"><label for="popup_effect_duration"><?php echo __('Effect duration:', 'bwg_back'); ?> </label></td>
|
805 |
+
<td><input type="text" name="popup_effect_duration" id="popup_effect_duration" value="<?php echo $option_row->popup_effect_duration; ?>" class="spider_int_input" /> sec.</td>
|
806 |
+
</tr>
|
807 |
<tr id="tr_popup_autoplay">
|
808 |
<td class="spider_label">
|
809 |
<label><?php _e("Lightbox autoplay:", 'bwg_back'); ?> </label>
|
1187 |
}
|
1188 |
jQuery("select[id=slideshow_effect] option[value='" + short_code['slideshow_effect'] + "']").attr('selected', 'selected');
|
1189 |
jQuery("#slideshow_interval").val(short_code['slideshow_interval']);
|
1190 |
+
jQuery("#slideshow_effect_duration").val(short_code['slideshow_effect_duration']);
|
1191 |
jQuery("#slideshow_width").val(short_code['slideshow_width']);
|
1192 |
jQuery("#slideshow_height").val(short_code['slideshow_height']);
|
1193 |
if (short_code['enable_slideshow_autoplay'] == 1) {
|
1453 |
jQuery("#popup_height").val(short_code['popup_height']);
|
1454 |
jQuery("select[id=popup_effect] option[value='" + short_code['popup_effect'] + "']").attr('selected', 'selected');
|
1455 |
jQuery("#popup_interval").val(short_code['popup_interval']);
|
1456 |
+
jQuery("#popup_effect_duration").val(short_code['popup_effect_duration']);
|
1457 |
if (short_code['popup_fullscreen'] == 1) {
|
1458 |
jQuery("#popup_fullscreen_1").attr('checked', 'checked');
|
1459 |
jQuery("#tr_popup_width_height").css('display', 'none');
|
1694 |
tagtext += ' enable_slideshow_music="' + jQuery("input[name=enable_slideshow_music]:checked").val() + '"';
|
1695 |
tagtext += ' slideshow_music_url="' + jQuery("#slideshow_music_url").val() + '"';
|
1696 |
title = ' gal_title="' + jQuery.trim(jQuery('#gallery option:selected').text().replace("'", "").replace('"', '')) + '"';
|
1697 |
+
tagtext += ' slideshow_effect_duration="' + jQuery("#slideshow_effect_duration").val() + '"';
|
1698 |
break;
|
1699 |
|
1700 |
}
|
1796 |
tagtext += ' popup_enable_pinterest="' + jQuery("input[name=popup_enable_pinterest]:checked").val() + '"';
|
1797 |
tagtext += ' popup_enable_tumblr="' + jQuery("input[name=popup_enable_tumblr]:checked").val() + '"';
|
1798 |
tagtext += ' show_tag_box="' + jQuery("input[name=show_tag_box]:checked").val() + '"';
|
1799 |
+
tagtext += ' popup_effect_duration="' + jQuery("#popup_effect_duration").val() + '"';
|
1800 |
}
|
1801 |
// Watermark parameters.
|
1802 |
tagtext += ' watermark_type="' + jQuery("input[name=watermark_type]:checked").val() + '"';
|
admin/views/BWGViewOptions_bwg.php
CHANGED
@@ -671,6 +671,15 @@ class BWGViewOptions_bwg {
|
|
671 |
<div class="spider_description"></div>
|
672 |
</td>
|
673 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
674 |
<tr id="tr_popup_autoplay">
|
675 |
<td class="spider_label_options">
|
676 |
<label><?php _e('Lightbox autoplay:', 'bwg_back'); ?> </label>
|
@@ -1091,6 +1100,15 @@ class BWGViewOptions_bwg {
|
|
1091 |
</select>
|
1092 |
<div class="spider_description"></div>
|
1093 |
</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1094 |
</tr>
|
1095 |
<tr>
|
1096 |
<td class="spider_label_options">
|
671 |
<div class="spider_description"></div>
|
672 |
</td>
|
673 |
</tr>
|
674 |
+
<tr>
|
675 |
+
<td class="spider_label_options">
|
676 |
+
<label for="popup_effect_duration"><?php echo __('Effect duration:', 'bwg_back'); ?> </label>
|
677 |
+
</td>
|
678 |
+
<td>
|
679 |
+
<input type="text" name="popup_effect_duration" id="popup_effect_duration" value="<?php echo $row->popup_effect_duration; ?>" class="spider_int_input" /> sec.
|
680 |
+
<div class="spider_description"></div>
|
681 |
+
</td>
|
682 |
+
</tr>
|
683 |
<tr id="tr_popup_autoplay">
|
684 |
<td class="spider_label_options">
|
685 |
<label><?php _e('Lightbox autoplay:', 'bwg_back'); ?> </label>
|
1100 |
</select>
|
1101 |
<div class="spider_description"></div>
|
1102 |
</td>
|
1103 |
+
</tr>
|
1104 |
+
<tr>
|
1105 |
+
<td class="spider_label_options">
|
1106 |
+
<label for="slideshow_effect_duration"><?php echo __('Effect duration:', 'bwg_back'); ?> </label>
|
1107 |
+
</td>
|
1108 |
+
<td>
|
1109 |
+
<input type="text" name="slideshow_effect_duration" id="slideshow_effect_duration" value="<?php echo $row->slideshow_effect_duration; ?>" class="spider_int_input" /> sec.
|
1110 |
+
<div class="spider_description"></div>
|
1111 |
+
</td>
|
1112 |
</tr>
|
1113 |
<tr>
|
1114 |
<td class="spider_label_options">
|
frontend/views/BWGViewAlbum_compact_preview.php
CHANGED
@@ -143,6 +143,7 @@ class BWGViewAlbum_compact_preview {
|
|
143 |
$params['watermark_url'] = urlencode($options_row->watermark_url);
|
144 |
$params['watermark_width'] = $options_row->watermark_width;
|
145 |
$params['watermark_height'] = $options_row->watermark_height;
|
|
|
146 |
}
|
147 |
|
148 |
$theme_row = $this->model->get_theme_row_data($params['theme_id']);
|
@@ -249,7 +250,8 @@ class BWGViewAlbum_compact_preview {
|
|
249 |
'enable_image_google' => $params['popup_enable_google'],
|
250 |
'enable_image_pinterest' => $params['popup_enable_pinterest'],
|
251 |
'enable_image_tumblr' => $params['popup_enable_tumblr'],
|
252 |
-
'watermark_type' => $params['watermark_type']
|
|
|
253 |
);
|
254 |
if ($params['watermark_type'] != 'none') {
|
255 |
$params_array['watermark_link'] = urlencode($params['watermark_link']);
|
143 |
$params['watermark_url'] = urlencode($options_row->watermark_url);
|
144 |
$params['watermark_width'] = $options_row->watermark_width;
|
145 |
$params['watermark_height'] = $options_row->watermark_height;
|
146 |
+
$params['popup_effect_duration'] = isset($options_row->popup_effect_duration) ? $options_row->popup_effect_duration : 1;
|
147 |
}
|
148 |
|
149 |
$theme_row = $this->model->get_theme_row_data($params['theme_id']);
|
250 |
'enable_image_google' => $params['popup_enable_google'],
|
251 |
'enable_image_pinterest' => $params['popup_enable_pinterest'],
|
252 |
'enable_image_tumblr' => $params['popup_enable_tumblr'],
|
253 |
+
'watermark_type' => $params['watermark_type'],
|
254 |
+
'slideshow_effect_duration' => isset($params['popup_effect_duration']) ? $params['popup_effect_duration'] : 1
|
255 |
);
|
256 |
if ($params['watermark_type'] != 'none') {
|
257 |
$params_array['watermark_link'] = urlencode($params['watermark_link']);
|
frontend/views/BWGViewAlbum_extended_preview.php
CHANGED
@@ -194,7 +194,8 @@ class BWGViewAlbum_extended_preview {
|
|
194 |
'enable_image_google' => $params['popup_enable_google'],
|
195 |
'enable_image_pinterest' => $params['popup_enable_pinterest'],
|
196 |
'enable_image_tumblr' => $params['popup_enable_tumblr'],
|
197 |
-
'watermark_type' => $params['watermark_type']
|
|
|
198 |
);
|
199 |
if ($params['watermark_type'] != 'none') {
|
200 |
$params_array['watermark_link'] = urlencode($params['watermark_link']);
|
194 |
'enable_image_google' => $params['popup_enable_google'],
|
195 |
'enable_image_pinterest' => $params['popup_enable_pinterest'],
|
196 |
'enable_image_tumblr' => $params['popup_enable_tumblr'],
|
197 |
+
'watermark_type' => $params['watermark_type'],
|
198 |
+
'slideshow_effect_duration' => isset($params['popup_effect_duration']) ? $params['popup_effect_duration'] : 1
|
199 |
);
|
200 |
if ($params['watermark_type'] != 'none') {
|
201 |
$params_array['watermark_link'] = urlencode($params['watermark_link']);
|
frontend/views/BWGViewGalleryBox.php
CHANGED
@@ -44,6 +44,8 @@ class BWGViewGalleryBox {
|
|
44 |
$popup_info_full_width = (isset($_GET['popup_info_full_width']) ? esc_html($_GET['popup_info_full_width']) : 0);
|
45 |
$popup_enable_rate = WDWLibrary::esc_script('get', 'popup_enable_rate', 0, 'int');
|
46 |
$popup_hit_counter = (isset($_GET['popup_hit_counter']) ? esc_html($_GET['popup_hit_counter']) : 0);
|
|
|
|
|
47 |
|
48 |
$slideshow_interval = (isset($_GET['slideshow_interval']) ? (int) $_GET['slideshow_interval'] : 5);
|
49 |
$enable_image_ctrl_btn = (isset($_GET['enable_image_ctrl_btn']) ? esc_html($_GET['enable_image_ctrl_btn']) : 0);
|
@@ -926,7 +928,7 @@ class BWGViewGalleryBox {
|
|
926 |
<script language="javascript" type="text/javascript" src="<?php echo WD_BWG_URL . '/js/bwg_embed.js?ver='.wd_bwg_version(); ?>"></script>
|
927 |
<script>
|
928 |
var bwg_trans_in_progress = false;
|
929 |
-
var bwg_transition_duration = <?php echo (($slideshow_interval < 4) && ($slideshow_interval != 0)) ? ($slideshow_interval * 1000) / 4 :
|
930 |
var bwg_playInterval;
|
931 |
if ((jQuery("#spider_popup_wrap").width() >= jQuery(window).width()) || (jQuery("#spider_popup_wrap").height() >= jQuery(window).height())) {
|
932 |
jQuery(".spider_popup_close").attr("class", "bwg_ctrl_btn spider_popup_close_fullscreen");
|
44 |
$popup_info_full_width = (isset($_GET['popup_info_full_width']) ? esc_html($_GET['popup_info_full_width']) : 0);
|
45 |
$popup_enable_rate = WDWLibrary::esc_script('get', 'popup_enable_rate', 0, 'int');
|
46 |
$popup_hit_counter = (isset($_GET['popup_hit_counter']) ? esc_html($_GET['popup_hit_counter']) : 0);
|
47 |
+
$slideshow_effect_duration = (isset($_GET['slideshow_effect_duration']) ? (int) $_GET['slideshow_effect_duration'] : 1);
|
48 |
+
|
49 |
|
50 |
$slideshow_interval = (isset($_GET['slideshow_interval']) ? (int) $_GET['slideshow_interval'] : 5);
|
51 |
$enable_image_ctrl_btn = (isset($_GET['enable_image_ctrl_btn']) ? esc_html($_GET['enable_image_ctrl_btn']) : 0);
|
928 |
<script language="javascript" type="text/javascript" src="<?php echo WD_BWG_URL . '/js/bwg_embed.js?ver='.wd_bwg_version(); ?>"></script>
|
929 |
<script>
|
930 |
var bwg_trans_in_progress = false;
|
931 |
+
var bwg_transition_duration = <?php echo (($slideshow_interval < 4) && ($slideshow_interval != 0)) ? ($slideshow_interval * 1000) / 4 : ($slideshow_effect_duration * 1000); ?>;
|
932 |
var bwg_playInterval;
|
933 |
if ((jQuery("#spider_popup_wrap").width() >= jQuery(window).width()) || (jQuery("#spider_popup_wrap").height() >= jQuery(window).height())) {
|
934 |
jQuery(".spider_popup_close").attr("class", "bwg_ctrl_btn spider_popup_close_fullscreen");
|
frontend/views/BWGViewImage_browser.php
CHANGED
@@ -123,7 +123,8 @@ class BWGViewImage_browser {
|
|
123 |
'enable_image_google' => $params['popup_enable_google'],
|
124 |
'enable_image_pinterest' => $params['popup_enable_pinterest'],
|
125 |
'enable_image_tumblr' => $params['popup_enable_tumblr'],
|
126 |
-
'watermark_type' => $params['watermark_type']
|
|
|
127 |
);
|
128 |
$items_per_page = array('images_per_page' => 1, 'load_more_image_count' => 1);
|
129 |
if ($params['watermark_type'] == 'none') {
|
123 |
'enable_image_google' => $params['popup_enable_google'],
|
124 |
'enable_image_pinterest' => $params['popup_enable_pinterest'],
|
125 |
'enable_image_tumblr' => $params['popup_enable_tumblr'],
|
126 |
+
'watermark_type' => $params['watermark_type'],
|
127 |
+
'slideshow_effect_duration' => isset($params['popup_effect_duration']) ? $params['popup_effect_duration'] : 1
|
128 |
);
|
129 |
$items_per_page = array('images_per_page' => 1, 'load_more_image_count' => 1);
|
130 |
if ($params['watermark_type'] == 'none') {
|
frontend/views/BWGViewSlideshow.php
CHANGED
@@ -78,6 +78,7 @@ class BWGViewSlideshow {
|
|
78 |
$watermark_url = (isset($params['watermark_url']) ? esc_html($params['watermark_url']) : '');
|
79 |
$watermark_width = (isset($params['watermark_width']) ? esc_html($params['watermark_width']) : 90);
|
80 |
$watermark_height = (isset($params['watermark_height']) ? esc_html($params['watermark_height']) : 90);
|
|
|
81 |
}
|
82 |
else {
|
83 |
$theme_id = (isset($params['theme_id']) ? esc_html($params['theme_id']) : 0);
|
@@ -102,6 +103,7 @@ class BWGViewSlideshow {
|
|
102 |
$slideshow_description_position = explode('-', $options_row->slideshow_description_position);
|
103 |
$enable_slideshow_music = $options_row->slideshow_enable_music;
|
104 |
$slideshow_music_url = $options_row->slideshow_audio_url;
|
|
|
105 |
|
106 |
$image_width = (isset($params['width']) ? esc_html($params['width']) : '800');
|
107 |
$image_height = (isset($params['height']) ? esc_html($params['height']) : '600');
|
@@ -822,7 +824,7 @@ class BWGViewSlideshow {
|
|
822 |
|
823 |
<script>
|
824 |
var bwg_trans_in_progress_<?php echo $bwg; ?> = false;
|
825 |
-
var bwg_transition_duration_<?php echo $bwg; ?> = <?php echo (($slideshow_interval < 4) && ($slideshow_interval != 0)) ? ($slideshow_interval * 1000) / 4 :
|
826 |
var bwg_playInterval_<?php echo $bwg; ?>;
|
827 |
/* Stop autoplay.*/
|
828 |
window.clearInterval(bwg_playInterval_<?php echo $bwg; ?>);
|
78 |
$watermark_url = (isset($params['watermark_url']) ? esc_html($params['watermark_url']) : '');
|
79 |
$watermark_width = (isset($params['watermark_width']) ? esc_html($params['watermark_width']) : 90);
|
80 |
$watermark_height = (isset($params['watermark_height']) ? esc_html($params['watermark_height']) : 90);
|
81 |
+
$slideshow_effect_duration = (isset($params['slideshow_effect_duration']) ? esc_html($params['slideshow_effect_duration']) : 1);
|
82 |
}
|
83 |
else {
|
84 |
$theme_id = (isset($params['theme_id']) ? esc_html($params['theme_id']) : 0);
|
103 |
$slideshow_description_position = explode('-', $options_row->slideshow_description_position);
|
104 |
$enable_slideshow_music = $options_row->slideshow_enable_music;
|
105 |
$slideshow_music_url = $options_row->slideshow_audio_url;
|
106 |
+
$slideshow_effect_duration = isset($options_row->slideshow_effect_duration) ? $options_row->slideshow_effect_duration : 1;
|
107 |
|
108 |
$image_width = (isset($params['width']) ? esc_html($params['width']) : '800');
|
109 |
$image_height = (isset($params['height']) ? esc_html($params['height']) : '600');
|
824 |
|
825 |
<script>
|
826 |
var bwg_trans_in_progress_<?php echo $bwg; ?> = false;
|
827 |
+
var bwg_transition_duration_<?php echo $bwg; ?> = <?php echo (($slideshow_interval < 4) && ($slideshow_interval != 0)) ? ($slideshow_interval * 1000) / 4 : ($slideshow_effect_duration * 1000); ?>;
|
828 |
var bwg_playInterval_<?php echo $bwg; ?>;
|
829 |
/* Stop autoplay.*/
|
830 |
window.clearInterval(bwg_playInterval_<?php echo $bwg; ?>);
|
frontend/views/BWGViewThumbnails.php
CHANGED
@@ -134,6 +134,7 @@ class BWGViewThumbnails {
|
|
134 |
$params['watermark_height'] = $options_row->watermark_height;
|
135 |
$params['thumb_click_action'] = $options_row->thumb_click_action;
|
136 |
$params['thumb_link_target'] = $options_row->thumb_link_target;
|
|
|
137 |
}
|
138 |
if (isset($_POST['sortImagesByValue_' . $bwg])) {
|
139 |
$sort_by = esc_html($_POST['sortImagesByValue_' . $bwg]);
|
@@ -529,7 +530,8 @@ class BWGViewThumbnails {
|
|
529 |
'enable_image_google' => $params['popup_enable_google'],
|
530 |
'enable_image_pinterest' => $params['popup_enable_pinterest'],
|
531 |
'enable_image_tumblr' => $params['popup_enable_tumblr'],
|
532 |
-
'watermark_type' => $params['watermark_type']
|
|
|
533 |
);
|
534 |
if ($params['watermark_type'] != 'none') {
|
535 |
$params_array['watermark_link'] = urlencode($params['watermark_link']);
|
134 |
$params['watermark_height'] = $options_row->watermark_height;
|
135 |
$params['thumb_click_action'] = $options_row->thumb_click_action;
|
136 |
$params['thumb_link_target'] = $options_row->thumb_link_target;
|
137 |
+
$params['popup_effect_duration'] = isset($options_row->popup_effect_duration) ? $options_row->popup_effect_duration : 1;
|
138 |
}
|
139 |
if (isset($_POST['sortImagesByValue_' . $bwg])) {
|
140 |
$sort_by = esc_html($_POST['sortImagesByValue_' . $bwg]);
|
530 |
'enable_image_google' => $params['popup_enable_google'],
|
531 |
'enable_image_pinterest' => $params['popup_enable_pinterest'],
|
532 |
'enable_image_tumblr' => $params['popup_enable_tumblr'],
|
533 |
+
'watermark_type' => $params['watermark_type'],
|
534 |
+
'slideshow_effect_duration' => isset($params['popup_effect_duration']) ? $params['popup_effect_duration'] : 1
|
535 |
);
|
536 |
if ($params['watermark_type'] != 'none') {
|
537 |
$params_array['watermark_link'] = urlencode($params['watermark_link']);
|
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.2.
|
8 |
* Author: WebDorado
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -368,6 +368,7 @@ function bwg_shortcode($params) {
|
|
368 |
'slideshow_description_position' => 'bottom-right',
|
369 |
'enable_slideshow_music' => 0,
|
370 |
'slideshow_music_url' => '',
|
|
|
371 |
), $params);
|
372 |
break;
|
373 |
|
@@ -466,7 +467,8 @@ function bwg_shortcode($params) {
|
|
466 |
'popup_enable_google' => 1,
|
467 |
'popup_enable_pinterest' => 0,
|
468 |
'popup_enable_tumblr' => 0,
|
469 |
-
'watermark_type' => 'none'
|
|
|
470 |
), $params);
|
471 |
}
|
472 |
|
@@ -699,6 +701,7 @@ function bwg_activate() {
|
|
699 |
`slideshow_description_position` varchar(16) NOT NULL,
|
700 |
`slideshow_enable_music` tinyint(1) NOT NULL,
|
701 |
`slideshow_audio_url` varchar(255) NOT NULL,
|
|
|
702 |
|
703 |
`popup_width` int(4) NOT NULL,
|
704 |
`popup_height` int(4) NOT NULL,
|
@@ -720,6 +723,8 @@ function bwg_activate() {
|
|
720 |
`popup_enable_twitter` tinyint(1) NOT NULL,
|
721 |
`popup_enable_google` tinyint(1) NOT NULL,
|
722 |
`popup_enable_ecommerce` tinyint(1) NOT NULL,
|
|
|
|
|
723 |
`watermark_type` varchar(8) NOT NULL,
|
724 |
`watermark_position` varchar(16) NOT NULL,
|
725 |
`watermark_width` int(4) NOT NULL,
|
@@ -888,6 +893,7 @@ function bwg_activate() {
|
|
888 |
'slideshow_description_position' => 'bottom-right',
|
889 |
'slideshow_enable_music' => 0,
|
890 |
'slideshow_audio_url' => '',
|
|
|
891 |
|
892 |
'popup_width' => 800,
|
893 |
'popup_height' => 500,
|
@@ -905,6 +911,7 @@ function bwg_activate() {
|
|
905 |
'popup_enable_facebook' => 1,
|
906 |
'popup_enable_twitter' => 1,
|
907 |
'popup_enable_google' => 1,
|
|
|
908 |
|
909 |
'watermark_type' => 'none',
|
910 |
'watermark_position' => 'bottom-left',
|
@@ -987,6 +994,10 @@ function bwg_activate() {
|
|
987 |
'show_hide_custom_post' => 0,
|
988 |
'show_hide_post_meta' => 0,
|
989 |
'placeholder' => '',
|
|
|
|
|
|
|
|
|
990 |
));
|
991 |
}
|
992 |
$exists_default = $wpdb->get_var('SELECT count(id) FROM ' . $wpdb->prefix . 'bwg_theme');
|
@@ -1911,7 +1922,7 @@ function bwg_activate() {
|
|
1911 |
));
|
1912 |
}
|
1913 |
$version = get_option("wd_bwg_version");
|
1914 |
-
$new_version = '1.2.
|
1915 |
if ($version && version_compare($version, $new_version, '<')) {
|
1916 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1917 |
bwg_update($version);
|
@@ -1965,7 +1976,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
|
|
1965 |
|
1966 |
function bwg_update_hook() {
|
1967 |
$version = get_option("wd_bwg_version");
|
1968 |
-
$new_version = '1.2.
|
1969 |
if ($version && version_compare($version, $new_version, '<')) {
|
1970 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1971 |
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.2.104
|
8 |
* Author: WebDorado
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
368 |
'slideshow_description_position' => 'bottom-right',
|
369 |
'enable_slideshow_music' => 0,
|
370 |
'slideshow_music_url' => '',
|
371 |
+
'slideshow_effect_duration' => 1,
|
372 |
), $params);
|
373 |
break;
|
374 |
|
467 |
'popup_enable_google' => 1,
|
468 |
'popup_enable_pinterest' => 0,
|
469 |
'popup_enable_tumblr' => 0,
|
470 |
+
'watermark_type' => 'none',
|
471 |
+
'popup_effect_duration' => 1,
|
472 |
), $params);
|
473 |
}
|
474 |
|
701 |
`slideshow_description_position` varchar(16) NOT NULL,
|
702 |
`slideshow_enable_music` tinyint(1) NOT NULL,
|
703 |
`slideshow_audio_url` varchar(255) NOT NULL,
|
704 |
+
`slideshow_effect_duration` int(4) NOT NULL,
|
705 |
|
706 |
`popup_width` int(4) NOT NULL,
|
707 |
`popup_height` int(4) NOT NULL,
|
723 |
`popup_enable_twitter` tinyint(1) NOT NULL,
|
724 |
`popup_enable_google` tinyint(1) NOT NULL,
|
725 |
`popup_enable_ecommerce` tinyint(1) NOT NULL,
|
726 |
+
`popup_effect_duration` int(4) NOT NULL,
|
727 |
+
|
728 |
`watermark_type` varchar(8) NOT NULL,
|
729 |
`watermark_position` varchar(16) NOT NULL,
|
730 |
`watermark_width` int(4) NOT NULL,
|
893 |
'slideshow_description_position' => 'bottom-right',
|
894 |
'slideshow_enable_music' => 0,
|
895 |
'slideshow_audio_url' => '',
|
896 |
+
'slideshow_effect_duration' => 1,
|
897 |
|
898 |
'popup_width' => 800,
|
899 |
'popup_height' => 500,
|
911 |
'popup_enable_facebook' => 1,
|
912 |
'popup_enable_twitter' => 1,
|
913 |
'popup_enable_google' => 1,
|
914 |
+
'popup_effect_duration' => 1,
|
915 |
|
916 |
'watermark_type' => 'none',
|
917 |
'watermark_position' => 'bottom-left',
|
994 |
'show_hide_custom_post' => 0,
|
995 |
'show_hide_post_meta' => 0,
|
996 |
'placeholder' => '',
|
997 |
+
'ecommerce_icon_show_hover' => '',
|
998 |
+
'popup_enable_ecommerce' => 0,
|
999 |
+
'slideshow_effect_duration' => 1,
|
1000 |
+
'popup_effect_duration' => 1,
|
1001 |
));
|
1002 |
}
|
1003 |
$exists_default = $wpdb->get_var('SELECT count(id) FROM ' . $wpdb->prefix . 'bwg_theme');
|
1922 |
));
|
1923 |
}
|
1924 |
$version = get_option("wd_bwg_version");
|
1925 |
+
$new_version = '1.2.104';
|
1926 |
if ($version && version_compare($version, $new_version, '<')) {
|
1927 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1928 |
bwg_update($version);
|
1976 |
|
1977 |
function bwg_update_hook() {
|
1978 |
$version = get_option("wd_bwg_version");
|
1979 |
+
$new_version = '1.2.104';
|
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: 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, responsive gallery, add album, add gallery, add pictures, fotoalbum, foto, gallery decription, multiple pictures, photoalbum, upload images, upload photos, view images, view pictures, admin, AJAX, comments, gallery image, image lightbox, image rotate, image slideshow, image slider, jquery, jquery gallery, slide show, slideshow, thumbnail, thumbnail view, thumbnails, thumbs, responsive, watermarking, watermarks,fullscreen slider, lightbox, photography, sidebar, slide, youtube, vimeo, videos, instagram, facebook, mosaic, facebook integration, instagram feed, Flickr, Dailymotion, widget, youtube gallery, ecommerce
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.5
|
7 |
-
Stable tag: 1.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -225,6 +225,11 @@ To enable the feature of adding Media Library images, go to Photo Gallery > Opti
|
|
225 |
|
226 |
== Changelog ==
|
227 |
|
|
|
|
|
|
|
|
|
|
|
228 |
= 1.2.103 =
|
229 |
* Fixed: Text watermark responsivness.
|
230 |
* Added: Set/Reset watermark to all images at once.
|
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, responsive gallery, add album, add gallery, add pictures, fotoalbum, foto, gallery decription, multiple pictures, photoalbum, upload images, upload photos, view images, view pictures, admin, AJAX, comments, gallery image, image lightbox, image rotate, image slideshow, image slider, jquery, jquery gallery, slide show, slideshow, thumbnail, thumbnail view, thumbnails, thumbs, responsive, watermarking, watermarks,fullscreen slider, lightbox, photography, sidebar, slide, youtube, vimeo, videos, instagram, facebook, mosaic, facebook integration, instagram feed, Flickr, Dailymotion, widget, youtube gallery, ecommerce
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.5
|
7 |
+
Stable tag: 1.2.104
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
225 |
|
226 |
== Changelog ==
|
227 |
|
228 |
+
|
229 |
+
= 1.2.104 =
|
230 |
+
* Fixed: Search in gallery from widget.
|
231 |
+
* Added: Effect duration option.
|
232 |
+
|
233 |
= 1.2.103 =
|
234 |
* Fixed: Text watermark responsivness.
|
235 |
* Added: Set/Reset watermark to all images at once.
|
update/bwg_update.php
CHANGED
@@ -348,6 +348,10 @@ function bwg_update($version) {
|
|
348 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_image ADD `pricelist_id` int(16) NOT NULL DEFAULT 0");
|
349 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `ecommerce_icon_show_hover` varchar(32) NOT NULL DEFAULT 0");
|
350 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `popup_enable_ecommerce` tinyint(1) NOT NULL DEFAULT 0");
|
|
|
|
|
|
|
|
|
351 |
}
|
352 |
return;
|
353 |
}
|
348 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_image ADD `pricelist_id` int(16) NOT NULL DEFAULT 0");
|
349 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `ecommerce_icon_show_hover` varchar(32) NOT NULL DEFAULT 0");
|
350 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `popup_enable_ecommerce` tinyint(1) NOT NULL DEFAULT 0");
|
351 |
+
}
|
352 |
+
if (version_compare($version, '1.2.104') == -1) {
|
353 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `slideshow_effect_duration` int(4) NOT NULL DEFAULT 1");
|
354 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `popup_effect_duration` int(4) NOT NULL DEFAULT 1");
|
355 |
}
|
356 |
return;
|
357 |
}
|