Version Description
bug in new image save fixed
Download this release
Release Info
Developer | webdorado |
Plugin | Photo Gallery by WD – Responsive Photo Gallery |
Version | 1.2.6 |
Comparing to | |
See all releases |
Code changes from version 1.2.5 to 1.2.6
- admin/controllers/BWGControllerGalleries_bwg.php +1 -1
- admin/controllers/BWGControllerOptions_bwg.php +4 -0
- admin/models/BWGModelOptions_bwg.php +2 -0
- admin/views/BWGViewBWGShortcode.php +24 -0
- admin/views/BWGViewLicensing_bwg.php +1 -1
- admin/views/BWGViewOptions_bwg.php +20 -0
- filemanager/UploadHandler.php +31 -13
- filemanager/js/default.js +6 -6
- framework/WDWLibrary.php +1 -1
- frontend/views/BWGViewAlbum_compact_preview.php +28 -8
- frontend/views/BWGViewAlbum_extended_preview.php +12 -7
- frontend/views/BWGViewGalleryBox.php +7 -1
- frontend/views/BWGViewImage_browser.php +4 -0
- frontend/views/BWGViewSlideshow.php +6 -0
- frontend/views/BWGViewThumbnails.php +5 -0
- js/bwg.js +3 -0
- js/bwg_shortcode.js +6 -0
- photo-gallery.php +36 -10
- readme.txt +9 -2
- update/bwg_update.php +7 -1
admin/controllers/BWGControllerGalleries_bwg.php
CHANGED
@@ -80,7 +80,7 @@ class BWGControllerGalleries_bwg {
|
|
80 |
}
|
81 |
|
82 |
public function ajax_search() {
|
83 |
-
if (isset($_POST['ajax_task'])
|
84 |
// Save gallery on "apply" and "save".
|
85 |
$this->save_db();
|
86 |
global $wpdb;
|
80 |
}
|
81 |
|
82 |
public function ajax_search() {
|
83 |
+
if (isset($_POST['ajax_task'])) {
|
84 |
// Save gallery on "apply" and "save".
|
85 |
$this->save_db();
|
86 |
global $wpdb;
|
admin/controllers/BWGControllerOptions_bwg.php
CHANGED
@@ -120,6 +120,7 @@ class BWGControllerOptions_bwg {
|
|
120 |
$slideshow_filmstrip_height = (isset($_POST['slideshow_filmstrip_height']) ? esc_html(stripslashes($_POST['slideshow_filmstrip_height'])) : 70);
|
121 |
$slideshow_enable_title = (isset($_POST['slideshow_enable_title']) ? esc_html(stripslashes($_POST['slideshow_enable_title'])) : 0);
|
122 |
$slideshow_title_position = (isset($_POST['slideshow_title_position']) ? esc_html(stripslashes($_POST['slideshow_title_position'])) : 'top-right');
|
|
|
123 |
$slideshow_enable_description = (isset($_POST['slideshow_enable_description']) ? esc_html(stripslashes($_POST['slideshow_enable_description'])) : 1);
|
124 |
$slideshow_description_position = (isset($_POST['slideshow_description_position']) ? esc_html(stripslashes($_POST['slideshow_description_position'])) : 'bottom-right');
|
125 |
$slideshow_enable_music = (isset($_POST['slideshow_enable_music']) ? esc_html(stripslashes($_POST['slideshow_enable_music'])) : 0);
|
@@ -186,6 +187,7 @@ class BWGControllerOptions_bwg {
|
|
186 |
$show_image_counts = (isset($_POST['show_image_counts']) ? esc_html(stripslashes($_POST['show_image_counts'])) : 0);
|
187 |
$play_icon = (isset($_POST['play_icon']) ? esc_html(stripslashes($_POST['play_icon'])) : 1);
|
188 |
$show_masonry_thumb_description = (isset($_POST['show_masonry_thumb_description']) ? esc_html(stripslashes($_POST['show_masonry_thumb_description'])) : 0);
|
|
|
189 |
|
190 |
$save = $wpdb->update($wpdb->prefix . 'bwg_option', array(
|
191 |
'images_directory' => $images_directory,
|
@@ -226,6 +228,7 @@ class BWGControllerOptions_bwg {
|
|
226 |
'slideshow_filmstrip_height' => $slideshow_filmstrip_height,
|
227 |
'slideshow_enable_title' => $slideshow_enable_title,
|
228 |
'slideshow_title_position' => $slideshow_title_position,
|
|
|
229 |
'slideshow_enable_description' => $slideshow_enable_description,
|
230 |
'slideshow_description_position' => $slideshow_description_position,
|
231 |
'slideshow_enable_music' => $slideshow_enable_music,
|
@@ -292,6 +295,7 @@ class BWGControllerOptions_bwg {
|
|
292 |
'show_image_counts' => $show_image_counts,
|
293 |
'play_icon' => $play_icon,
|
294 |
'show_masonry_thumb_description' => $show_masonry_thumb_description,
|
|
|
295 |
), array('id' => 1));
|
296 |
|
297 |
if ($save !== FALSE) {
|
120 |
$slideshow_filmstrip_height = (isset($_POST['slideshow_filmstrip_height']) ? esc_html(stripslashes($_POST['slideshow_filmstrip_height'])) : 70);
|
121 |
$slideshow_enable_title = (isset($_POST['slideshow_enable_title']) ? esc_html(stripslashes($_POST['slideshow_enable_title'])) : 0);
|
122 |
$slideshow_title_position = (isset($_POST['slideshow_title_position']) ? esc_html(stripslashes($_POST['slideshow_title_position'])) : 'top-right');
|
123 |
+
$slideshow_title_full_width = (isset($_POST['slideshow_title_full_width']) ? esc_html(stripslashes($_POST['slideshow_title_full_width'])) : 0);
|
124 |
$slideshow_enable_description = (isset($_POST['slideshow_enable_description']) ? esc_html(stripslashes($_POST['slideshow_enable_description'])) : 1);
|
125 |
$slideshow_description_position = (isset($_POST['slideshow_description_position']) ? esc_html(stripslashes($_POST['slideshow_description_position'])) : 'bottom-right');
|
126 |
$slideshow_enable_music = (isset($_POST['slideshow_enable_music']) ? esc_html(stripslashes($_POST['slideshow_enable_music'])) : 0);
|
187 |
$show_image_counts = (isset($_POST['show_image_counts']) ? esc_html(stripslashes($_POST['show_image_counts'])) : 0);
|
188 |
$play_icon = (isset($_POST['play_icon']) ? esc_html(stripslashes($_POST['play_icon'])) : 1);
|
189 |
$show_masonry_thumb_description = (isset($_POST['show_masonry_thumb_description']) ? esc_html(stripslashes($_POST['show_masonry_thumb_description'])) : 0);
|
190 |
+
$popup_info_full_width = (isset($_POST['popup_info_full_width']) ? esc_html(stripslashes($_POST['popup_info_full_width'])) : 0);
|
191 |
|
192 |
$save = $wpdb->update($wpdb->prefix . 'bwg_option', array(
|
193 |
'images_directory' => $images_directory,
|
228 |
'slideshow_filmstrip_height' => $slideshow_filmstrip_height,
|
229 |
'slideshow_enable_title' => $slideshow_enable_title,
|
230 |
'slideshow_title_position' => $slideshow_title_position,
|
231 |
+
'slideshow_title_full_width' => $slideshow_title_full_width,
|
232 |
'slideshow_enable_description' => $slideshow_enable_description,
|
233 |
'slideshow_description_position' => $slideshow_description_position,
|
234 |
'slideshow_enable_music' => $slideshow_enable_music,
|
295 |
'show_image_counts' => $show_image_counts,
|
296 |
'play_icon' => $play_icon,
|
297 |
'show_masonry_thumb_description' => $show_masonry_thumb_description,
|
298 |
+
'popup_info_full_width' => $popup_info_full_width,
|
299 |
), array('id' => 1));
|
300 |
|
301 |
if ($save !== FALSE) {
|
admin/models/BWGModelOptions_bwg.php
CHANGED
@@ -70,6 +70,7 @@ class BWGModelOptions_bwg {
|
|
70 |
$row->slideshow_filmstrip_height = 90;
|
71 |
$row->slideshow_enable_title = 0;
|
72 |
$row->slideshow_title_position = 'top-right';
|
|
|
73 |
$row->slideshow_enable_description = 0;
|
74 |
$row->slideshow_description_position = 'bottom-right';
|
75 |
$row->slideshow_enable_music = 0;
|
@@ -140,6 +141,7 @@ class BWGModelOptions_bwg {
|
|
140 |
$row->show_image_counts = 0;
|
141 |
$row->play_icon = 1;
|
142 |
$row->show_masonry_thumb_description = 0;
|
|
|
143 |
}
|
144 |
return $row;
|
145 |
}
|
70 |
$row->slideshow_filmstrip_height = 90;
|
71 |
$row->slideshow_enable_title = 0;
|
72 |
$row->slideshow_title_position = 'top-right';
|
73 |
+
$row->slideshow_title_full_width = 0;
|
74 |
$row->slideshow_enable_description = 0;
|
75 |
$row->slideshow_description_position = 'bottom-right';
|
76 |
$row->slideshow_enable_music = 0;
|
141 |
$row->show_image_counts = 0;
|
142 |
$row->play_icon = 1;
|
143 |
$row->show_masonry_thumb_description = 0;
|
144 |
+
$row->popup_info_full_width = 0;
|
145 |
}
|
146 |
return $row;
|
147 |
}
|
admin/views/BWGViewBWGShortcode.php
CHANGED
@@ -535,6 +535,15 @@ class BWGViewBWGShortcode {
|
|
535 |
</table>
|
536 |
</td>
|
537 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
538 |
<tr id="tr_slideshow_enable_description">
|
539 |
<td class="spider_label"><label>Enable Image Description: </label></td>
|
540 |
<td>
|
@@ -694,6 +703,13 @@ class BWGViewBWGShortcode {
|
|
694 |
<input type="radio" name="popup_info_always_show" id="popup_info_always_show_no" value="0" <?php echo ($option_row->popup_info_always_show) ? '' : 'checked="checked"'; ?> /><label for="popup_info_always_show_no">No</label>
|
695 |
</td>
|
696 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
697 |
<tr id="tr_popup_enable_rate">
|
698 |
<td title="Enable rating for images<br /><br />This option is disabled in free version." class="spider_label spider_free_version_label"><label>Enable rating: </label></td>
|
699 |
<td>
|
@@ -1205,6 +1221,12 @@ class BWGViewBWGShortcode {
|
|
1205 |
}
|
1206 |
else {
|
1207 |
jQuery("#popup_info_no").attr('checked', 'checked');
|
|
|
|
|
|
|
|
|
|
|
|
|
1208 |
}
|
1209 |
if (short_code['popup_info_always_show'] == 1 && short_code['popup_info_always_show']) {
|
1210 |
jQuery("#popup_info_always_show_yes").attr('checked', 'checked');
|
@@ -1384,6 +1406,7 @@ class BWGViewBWGShortcode {
|
|
1384 |
tagtext += ' slideshow_filmstrip_height="' + jQuery("#slideshow_filmstrip_height").val() + '"';
|
1385 |
tagtext += ' slideshow_enable_title="' + jQuery("input[name=slideshow_enable_title]:checked").val() + '"';
|
1386 |
tagtext += ' slideshow_title_position="' + jQuery("input[name=slideshow_title_position]:checked").val() + '"';
|
|
|
1387 |
tagtext += ' slideshow_enable_description="' + jQuery("input[name=slideshow_enable_description]:checked").val() + '"';
|
1388 |
tagtext += ' slideshow_description_position="' + jQuery("input[name=slideshow_description_position]:checked").val() + '"';
|
1389 |
tagtext += ' enable_slideshow_music="' + jQuery("input[name=enable_slideshow_music]:checked").val() + '"';
|
@@ -1466,6 +1489,7 @@ class BWGViewBWGShortcode {
|
|
1466 |
tagtext += ' popup_enable_fullscreen="' + jQuery("input[name=popup_enable_fullscreen]:checked").val() + '"';
|
1467 |
tagtext += ' popup_enable_info="' + jQuery("input[name=popup_enable_info]:checked").val() + '"';
|
1468 |
tagtext += ' popup_info_always_show="' + jQuery("input[name=popup_info_always_show]:checked").val() + '"';
|
|
|
1469 |
tagtext += ' popup_enable_rate="' + jQuery("input[name=popup_enable_rate]:checked").val() + '"';
|
1470 |
tagtext += ' popup_enable_comment="' + jQuery("input[name=popup_enable_comment]:checked").val() + '"';
|
1471 |
tagtext += ' popup_hit_counter="' + jQuery("input[name=popup_hit_counter]:checked").val() + '"';
|
535 |
</table>
|
536 |
</td>
|
537 |
</tr>
|
538 |
+
<tr id="tr_slideshow_full_width_title">
|
539 |
+
<td title="Display image title based on the slideshow dimensions." class="spider_label">
|
540 |
+
<label>Full width title:</label>
|
541 |
+
</td>
|
542 |
+
<td>
|
543 |
+
<input type="radio" name="slideshow_title_full_width" id="slideshow_title_full_width_1" value="1" <?php if ($option_row->slideshow_title_full_width) echo 'checked="checked"'; ?> /><label for="slideshow_title_full_width_1">Yes</label>
|
544 |
+
<input type="radio" name="slideshow_title_full_width" id="slideshow_title_full_width_0" value="0" <?php if (!$option_row->slideshow_title_full_width) echo 'checked="checked"'; ?> /><label for="slideshow_title_full_width_0">No</label>
|
545 |
+
</td>
|
546 |
+
</tr>
|
547 |
<tr id="tr_slideshow_enable_description">
|
548 |
<td class="spider_label"><label>Enable Image Description: </label></td>
|
549 |
<td>
|
703 |
<input type="radio" name="popup_info_always_show" id="popup_info_always_show_no" value="0" <?php echo ($option_row->popup_info_always_show) ? '' : 'checked="checked"'; ?> /><label for="popup_info_always_show_no">No</label>
|
704 |
</td>
|
705 |
</tr>
|
706 |
+
<tr id="tr_popup_info_full_width">
|
707 |
+
<td title="Display image information based on the lightbox dimensions." class="spider_label"><label>Full width info:</label></td>
|
708 |
+
<td>
|
709 |
+
<input type="radio" name="popup_info_full_width" id="popup_info_full_width_1" value="1" <?php if ($option_row->popup_info_full_width) echo 'checked="checked"'; ?> /><label for="popup_info_full_width_1">Yes</label>
|
710 |
+
<input type="radio" name="popup_info_full_width" id="popup_info_full_width_0" value="0" <?php if (!$option_row->popup_info_full_width) echo 'checked="checked"'; ?> /><label for="popup_info_full_width_0">No</label>
|
711 |
+
</td>
|
712 |
+
</tr>
|
713 |
<tr id="tr_popup_enable_rate">
|
714 |
<td title="Enable rating for images<br /><br />This option is disabled in free version." class="spider_label spider_free_version_label"><label>Enable rating: </label></td>
|
715 |
<td>
|
1221 |
}
|
1222 |
else {
|
1223 |
jQuery("#popup_info_no").attr('checked', 'checked');
|
1224 |
+
}
|
1225 |
+
if (short_code['popup_info_full_width'] == 1) {
|
1226 |
+
jQuery("#popup_info_full_width_1").attr('checked', 'checked');
|
1227 |
+
}
|
1228 |
+
else {
|
1229 |
+
jQuery("#popup_info_full_width_0").attr('checked', 'checked');
|
1230 |
}
|
1231 |
if (short_code['popup_info_always_show'] == 1 && short_code['popup_info_always_show']) {
|
1232 |
jQuery("#popup_info_always_show_yes").attr('checked', 'checked');
|
1406 |
tagtext += ' slideshow_filmstrip_height="' + jQuery("#slideshow_filmstrip_height").val() + '"';
|
1407 |
tagtext += ' slideshow_enable_title="' + jQuery("input[name=slideshow_enable_title]:checked").val() + '"';
|
1408 |
tagtext += ' slideshow_title_position="' + jQuery("input[name=slideshow_title_position]:checked").val() + '"';
|
1409 |
+
tagtext += ' slideshow_title_full_width="' + jQuery("input[name=slideshow_title_full_width]:checked").val() + '"';
|
1410 |
tagtext += ' slideshow_enable_description="' + jQuery("input[name=slideshow_enable_description]:checked").val() + '"';
|
1411 |
tagtext += ' slideshow_description_position="' + jQuery("input[name=slideshow_description_position]:checked").val() + '"';
|
1412 |
tagtext += ' enable_slideshow_music="' + jQuery("input[name=enable_slideshow_music]:checked").val() + '"';
|
1489 |
tagtext += ' popup_enable_fullscreen="' + jQuery("input[name=popup_enable_fullscreen]:checked").val() + '"';
|
1490 |
tagtext += ' popup_enable_info="' + jQuery("input[name=popup_enable_info]:checked").val() + '"';
|
1491 |
tagtext += ' popup_info_always_show="' + jQuery("input[name=popup_info_always_show]:checked").val() + '"';
|
1492 |
+
tagtext += ' popup_info_full_width="' + jQuery("input[name=popup_info_full_width]:checked").val() + '"';
|
1493 |
tagtext += ' popup_enable_rate="' + jQuery("input[name=popup_enable_rate]:checked").val() + '"';
|
1494 |
tagtext += ' popup_enable_comment="' + jQuery("input[name=popup_enable_comment]:checked").val() + '"';
|
1495 |
tagtext += ' popup_hit_counter="' + jQuery("input[name=popup_hit_counter]:checked").val() + '"';
|
admin/views/BWGViewLicensing_bwg.php
CHANGED
@@ -178,7 +178,7 @@ class BWGViewLicensing_bwg {
|
|
178 |
</a>
|
179 |
</div>
|
180 |
<div style="float: left; clear: both;">
|
181 |
-
<p>After
|
182 |
<ol>
|
183 |
<li>Deactivate Photo Gallery plugin.</li>
|
184 |
<li>Delete Photo Gallery plugin.</li>
|
178 |
</a>
|
179 |
</div>
|
180 |
<div style="float: left; clear: both;">
|
181 |
+
<p>After purchasing the commercial version follow these steps:</p>
|
182 |
<ol>
|
183 |
<li>Deactivate Photo Gallery plugin.</li>
|
184 |
<li>Delete Photo Gallery plugin.</li>
|
admin/views/BWGViewOptions_bwg.php
CHANGED
@@ -677,6 +677,16 @@ class BWGViewOptions_bwg {
|
|
677 |
<div class="spider_description"></div>
|
678 |
</td>
|
679 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
680 |
</tbody>
|
681 |
</table>
|
682 |
</td>
|
@@ -1047,6 +1057,16 @@ class BWGViewOptions_bwg {
|
|
1047 |
<div class="spider_description">Image title position on slideshow</div>
|
1048 |
</td>
|
1049 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1050 |
<tr>
|
1051 |
<td class="spider_label_options"><label>Enable image description: </label></td>
|
1052 |
<td>
|
677 |
<div class="spider_description"></div>
|
678 |
</td>
|
679 |
</tr>
|
680 |
+
<tr id="tr_popup_info_full_width">
|
681 |
+
<td class="spider_label_options">
|
682 |
+
<label>Full width info:</label>
|
683 |
+
</td>
|
684 |
+
<td>
|
685 |
+
<input type="radio" name="popup_info_full_width" id="popup_info_full_width_1" value="1" <?php if ($row->popup_info_full_width) echo 'checked="checked"'; ?> /><label for="popup_info_full_width_1">Yes</label>
|
686 |
+
<input type="radio" name="popup_info_full_width" id="popup_info_full_width_0" value="0" <?php if (!$row->popup_info_full_width) echo 'checked="checked"'; ?> /><label for="popup_info_full_width_0">No</label>
|
687 |
+
<div class="spider_description">Display image information based on the lightbox dimensions.</div>
|
688 |
+
</td>
|
689 |
+
</tr>
|
690 |
</tbody>
|
691 |
</table>
|
692 |
</td>
|
1057 |
<div class="spider_description">Image title position on slideshow</div>
|
1058 |
</td>
|
1059 |
</tr>
|
1060 |
+
<tr id="tr_slideshow_full_width_title">
|
1061 |
+
<td class="spider_label_options">
|
1062 |
+
<label>Full width title:</label>
|
1063 |
+
</td>
|
1064 |
+
<td>
|
1065 |
+
<input type="radio" name="slideshow_title_full_width" id="slideshow_title_full_width_1" value="1" <?php if ($row->slideshow_title_full_width) echo 'checked="checked"'; ?> /><label for="slideshow_title_full_width_1">Yes</label>
|
1066 |
+
<input type="radio" name="slideshow_title_full_width" id="slideshow_title_full_width_0" value="0" <?php if (!$row->slideshow_title_full_width) echo 'checked="checked"'; ?> /><label for="slideshow_title_full_width_0">No</label>
|
1067 |
+
<div class="spider_description">Display image title based on the slideshow dimensions.</div>
|
1068 |
+
</td>
|
1069 |
+
</tr>
|
1070 |
<tr>
|
1071 |
<td class="spider_label_options"><label>Enable image description: </label></td>
|
1072 |
<td>
|
filemanager/UploadHandler.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
*/
|
12 |
|
13 |
if (function_exists('current_user_can')) {
|
14 |
-
if (!current_user_can('
|
15 |
die('Access Denied');
|
16 |
}
|
17 |
}
|
@@ -598,18 +598,36 @@ class UploadHandler {
|
|
598 |
}
|
599 |
|
600 |
protected function handle_zip_file($file_path, $file) {
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
613 |
|
614 |
protected function handle_directory($target_dir) {
|
615 |
$extracted_files = scandir($target_dir);
|
11 |
*/
|
12 |
|
13 |
if (function_exists('current_user_can')) {
|
14 |
+
if (!current_user_can('manage_options')) {
|
15 |
die('Access Denied');
|
16 |
}
|
17 |
}
|
598 |
}
|
599 |
|
600 |
protected function handle_zip_file($file_path, $file) {
|
601 |
+
$zip = new ZipArchive;
|
602 |
+
$res = $zip->open($file_path);
|
603 |
+
if ($res === TRUE) {
|
604 |
+
$allow_extract = true;
|
605 |
+
for($i = 0; $i < $zip->numFiles; $i++) {
|
606 |
+
$OnlyFileName = $zip->getNameIndex($i);
|
607 |
+
$FullFileName = $zip->statIndex($i);
|
608 |
+
if (!($FullFileName['name'][strlen($FullFileName['name'])-1] =="/")) {
|
609 |
+
if (!preg_match('#\.(gif|jpe?g|png|bmp|mp4|flv|webm|ogg|mp3|wav|pdf|ini|txt)$#i', $OnlyFileName)) {
|
610 |
+
$allow_extract = false;
|
611 |
+
}
|
612 |
+
}
|
613 |
+
}
|
614 |
+
if ($allow_extract) {
|
615 |
+
$target_dir = substr($file_path, 0, strlen($file_path) - 4);
|
616 |
+
if (!is_dir($target_dir)) {
|
617 |
+
mkdir($target_dir, 0777);
|
618 |
+
}
|
619 |
+
$zip->extractTo($target_dir);
|
620 |
+
}
|
621 |
+
else {
|
622 |
+
$file->error = 'Zip file should contain only image files.';
|
623 |
+
}
|
624 |
+
$zip->close();
|
625 |
+
if ($allow_extract) {
|
626 |
+
$this->handle_directory($target_dir);
|
627 |
+
}
|
628 |
+
}
|
629 |
+
}
|
630 |
+
|
631 |
|
632 |
protected function handle_directory($target_dir) {
|
633 |
$extracted_files = scandir($target_dir);
|
filemanager/js/default.js
CHANGED
@@ -149,7 +149,7 @@ function updateFileNames() {
|
|
149 |
if (filesSelected.length > 0) {
|
150 |
var fileNames = [];
|
151 |
for (var i = 0; i < filesSelected.length; i++) {
|
152 |
-
fileNames[i] = "'
|
153 |
}
|
154 |
result = fileNames.join(" ");
|
155 |
}
|
@@ -164,7 +164,7 @@ function submitFiles() {
|
|
164 |
}
|
165 |
var filesValid = [];
|
166 |
for (var i = 0; i < filesSelected.length; i++) {
|
167 |
-
var file_object = jQuery(
|
168 |
if (jQuery(file_object).attr("isDir") == "false") {
|
169 |
var fileData = [];
|
170 |
fileData['name'] = filesSelected[i];
|
@@ -398,7 +398,7 @@ function onFileClick(event, obj) {
|
|
398 |
}
|
399 |
|
400 |
for (var i = 0; i < filesSelected.length; i++) {
|
401 |
-
jQuery(
|
402 |
}
|
403 |
updateFileNames();
|
404 |
}
|
@@ -433,7 +433,7 @@ function onFileClickML(event, obj) {
|
|
433 |
}
|
434 |
|
435 |
for (var i = 0; i < filesSelectedML.length; i++) {
|
436 |
-
jQuery(
|
437 |
}
|
438 |
updateFileNames();
|
439 |
}
|
@@ -482,7 +482,7 @@ function onFileDragStart(event, obj) {
|
|
482 |
}
|
483 |
|
484 |
for (var i = 0; i < filesSelected.length; i++) {
|
485 |
-
jQuery(
|
486 |
}
|
487 |
|
488 |
updateFileNames();
|
@@ -506,7 +506,7 @@ function onFileDrop(event, obj) {
|
|
506 |
}
|
507 |
|
508 |
function onBtnOpenClick(event, obj) {
|
509 |
-
if (jQuery(
|
510 |
filesSelected.length = 1;
|
511 |
submit("", null, null, null, dir + DS + filesSelected[0], null, null, null, null, null, null);
|
512 |
}
|
149 |
if (filesSelected.length > 0) {
|
150 |
var fileNames = [];
|
151 |
for (var i = 0; i < filesSelected.length; i++) {
|
152 |
+
fileNames[i] = '"' + filesSelected[i] + '"';
|
153 |
}
|
154 |
result = fileNames.join(" ");
|
155 |
}
|
164 |
}
|
165 |
var filesValid = [];
|
166 |
for (var i = 0; i < filesSelected.length; i++) {
|
167 |
+
var file_object = jQuery('.explorer_item[name="' + filesSelected[i] + '"]');
|
168 |
if (jQuery(file_object).attr("isDir") == "false") {
|
169 |
var fileData = [];
|
170 |
fileData['name'] = filesSelected[i];
|
398 |
}
|
399 |
|
400 |
for (var i = 0; i < filesSelected.length; i++) {
|
401 |
+
jQuery('.explorer_item[name="' + filesSelected[i] + '"]').addClass("explorer_item_select");
|
402 |
}
|
403 |
updateFileNames();
|
404 |
}
|
433 |
}
|
434 |
|
435 |
for (var i = 0; i < filesSelectedML.length; i++) {
|
436 |
+
jQuery('.importer_item[path="' + filesSelectedML[i] + '"]').addClass("importer_item_select");
|
437 |
}
|
438 |
updateFileNames();
|
439 |
}
|
482 |
}
|
483 |
|
484 |
for (var i = 0; i < filesSelected.length; i++) {
|
485 |
+
jQuery('.explorer_item[name="' + filesSelected[i] + '"]').addClass("explorer_item_select");
|
486 |
}
|
487 |
|
488 |
updateFileNames();
|
506 |
}
|
507 |
|
508 |
function onBtnOpenClick(event, obj) {
|
509 |
+
if (jQuery('.explorer_item[name="' + filesSelected[0] + '"]').attr("isDir") == true) {
|
510 |
filesSelected.length = 1;
|
511 |
submit("", null, null, null, dir + DS + filesSelected[0], null, null, null, null, null, null);
|
512 |
}
|
framework/WDWLibrary.php
CHANGED
@@ -264,7 +264,7 @@ class WDWLibrary {
|
|
264 |
else {
|
265 |
document.getElementById('page_number').value = jQuery('#current_page').val();
|
266 |
}
|
267 |
-
|
268 |
}
|
269 |
return true;
|
270 |
}
|
264 |
else {
|
265 |
document.getElementById('page_number').value = jQuery('#current_page').val();
|
266 |
}
|
267 |
+
document.getElementById('<?php echo $form_id; ?>').submit();
|
268 |
}
|
269 |
return true;
|
270 |
}
|
frontend/views/BWGViewAlbum_compact_preview.php
CHANGED
@@ -60,6 +60,9 @@ class BWGViewAlbum_compact_preview {
|
|
60 |
}
|
61 |
if (!isset($params['popup_info_always_show'])) {
|
62 |
$params['popup_info_always_show'] = 0;
|
|
|
|
|
|
|
63 |
}
|
64 |
if (!isset($params['popup_enable_rate'])) {
|
65 |
$params['popup_enable_rate'] = 0;
|
@@ -76,11 +79,15 @@ class BWGViewAlbum_compact_preview {
|
|
76 |
if (!isset($params['order_by'])) {
|
77 |
$params['order_by'] = ' ASC ';
|
78 |
}
|
|
|
|
|
|
|
|
|
79 |
$from = (isset($params['from']) ? esc_html($params['from']) : 0);
|
80 |
$type = (isset($_POST['type_' . $bwg]) ? esc_html($_POST['type_' . $bwg]) : (isset($params['type']) ? $params['type'] : 'album'));
|
81 |
$bwg_search = ((isset($_POST['bwg_search_' . $bwg]) && esc_html($_POST['bwg_search_' . $bwg]) != '') ? esc_html($_POST['bwg_search_' . $bwg]) : '');
|
82 |
$sort_direction = ' ' . $params['order_by'] . ' ';
|
83 |
-
|
84 |
$play_icon = $options_row->play_icon;
|
85 |
if ($from === "widget") {
|
86 |
$params['album_id'] = $params['id'];
|
@@ -106,6 +113,7 @@ class BWGViewAlbum_compact_preview {
|
|
106 |
$params['popup_enable_fullscreen'] = $options_row->popup_enable_fullscreen;
|
107 |
$params['popup_enable_info'] = $options_row->popup_enable_info;
|
108 |
$params['popup_info_always_show'] = $options_row->popup_info_always_show;
|
|
|
109 |
$params['popup_hit_counter'] = $options_row->popup_hit_counter;
|
110 |
$params['popup_enable_rate'] = $options_row->popup_enable_rate;
|
111 |
$params['popup_interval'] = $options_row->popup_interval;
|
@@ -498,7 +506,10 @@ class BWGViewAlbum_compact_preview {
|
|
498 |
margin: 0 auto;
|
499 |
}
|
500 |
</style>
|
501 |
-
|
|
|
|
|
|
|
502 |
<div id="bwg_container1_<?php echo $bwg; ?>">
|
503 |
<div id="bwg_container2_<?php echo $bwg; ?>">
|
504 |
<form id="gal_front_form_<?php echo $bwg; ?>" method="post" action="#">
|
@@ -527,9 +538,16 @@ class BWGViewAlbum_compact_preview {
|
|
527 |
<?php
|
528 |
}
|
529 |
if ($options_row->show_album_name) {
|
|
|
530 |
?>
|
531 |
-
<div class="bwg_back_<?php echo $bwg; ?>" ><?php echo isset($_POST['title_' . $bwg]) ? esc_html($_POST['title_' . $bwg]) :
|
532 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
533 |
}
|
534 |
?>
|
535 |
<div id="<?php echo $album_gallery_div_id; ?>" class="<?php echo $album_gallery_div_class; ?>" >
|
@@ -659,20 +677,22 @@ class BWGViewAlbum_compact_preview {
|
|
659 |
'image_height' => $params['popup_height'],
|
660 |
'image_effect' => $params['popup_effect'],
|
661 |
'sort_by' => $params['sort_by'],
|
|
|
662 |
'enable_image_filmstrip' => $params['popup_enable_filmstrip'],
|
663 |
'image_filmstrip_height' => $params['popup_filmstrip_height'],
|
664 |
'enable_image_ctrl_btn' => $params['popup_enable_ctrl_btn'],
|
665 |
-
|
666 |
'popup_enable_info' => $params['popup_enable_info'],
|
667 |
-
|
668 |
-
|
669 |
-
|
|
|
670 |
'slideshow_interval' => $params['popup_interval'],
|
671 |
'enable_comment_social' => $params['popup_enable_comment'],
|
672 |
'enable_image_facebook' => $params['popup_enable_facebook'],
|
673 |
'enable_image_twitter' => $params['popup_enable_twitter'],
|
674 |
'enable_image_google' => $params['popup_enable_google'],
|
675 |
-
|
676 |
'enable_image_tumblr' => $params['popup_enable_tumblr'],
|
677 |
'watermark_type' => $params['watermark_type'],
|
678 |
'current_url' => $current_url
|
60 |
}
|
61 |
if (!isset($params['popup_info_always_show'])) {
|
62 |
$params['popup_info_always_show'] = 0;
|
63 |
+
}
|
64 |
+
if (!isset($params['popup_info_full_width'])) {
|
65 |
+
$params['popup_info_full_width'] = 0;
|
66 |
}
|
67 |
if (!isset($params['popup_enable_rate'])) {
|
68 |
$params['popup_enable_rate'] = 0;
|
79 |
if (!isset($params['order_by'])) {
|
80 |
$params['order_by'] = ' ASC ';
|
81 |
}
|
82 |
+
$options_row = $this->model->get_options_row_data();
|
83 |
+
if (!isset($params['show_album_name'])) {
|
84 |
+
$params['show_album_name'] = $options_row->show_album_name;
|
85 |
+
}
|
86 |
$from = (isset($params['from']) ? esc_html($params['from']) : 0);
|
87 |
$type = (isset($_POST['type_' . $bwg]) ? esc_html($_POST['type_' . $bwg]) : (isset($params['type']) ? $params['type'] : 'album'));
|
88 |
$bwg_search = ((isset($_POST['bwg_search_' . $bwg]) && esc_html($_POST['bwg_search_' . $bwg]) != '') ? esc_html($_POST['bwg_search_' . $bwg]) : '');
|
89 |
$sort_direction = ' ' . $params['order_by'] . ' ';
|
90 |
+
|
91 |
$play_icon = $options_row->play_icon;
|
92 |
if ($from === "widget") {
|
93 |
$params['album_id'] = $params['id'];
|
113 |
$params['popup_enable_fullscreen'] = $options_row->popup_enable_fullscreen;
|
114 |
$params['popup_enable_info'] = $options_row->popup_enable_info;
|
115 |
$params['popup_info_always_show'] = $options_row->popup_info_always_show;
|
116 |
+
$params['popup_info_full_width'] = $options_row->popup_info_full_width;
|
117 |
$params['popup_hit_counter'] = $options_row->popup_hit_counter;
|
118 |
$params['popup_enable_rate'] = $options_row->popup_enable_rate;
|
119 |
$params['popup_interval'] = $options_row->popup_interval;
|
506 |
margin: 0 auto;
|
507 |
}
|
508 |
</style>
|
509 |
+
<?php
|
510 |
+
$album_row = $this->model->get_album_row_data($album_gallery_id);
|
511 |
+
?>
|
512 |
+
|
513 |
<div id="bwg_container1_<?php echo $bwg; ?>">
|
514 |
<div id="bwg_container2_<?php echo $bwg; ?>">
|
515 |
<form id="gal_front_form_<?php echo $bwg; ?>" method="post" action="#">
|
538 |
<?php
|
539 |
}
|
540 |
if ($options_row->show_album_name) {
|
541 |
+
if ($type == 'gallery') {
|
542 |
?>
|
543 |
+
<div class="bwg_back_<?php echo $bwg; ?>" ><?php echo isset($_POST['title_' . $bwg]) ? esc_html($_POST['title_' . $bwg]) : ''; ?></div>
|
544 |
<?php
|
545 |
+
}
|
546 |
+
else {
|
547 |
+
?>
|
548 |
+
<div class="bwg_back_<?php echo $bwg; ?>"><?php echo $album_row->name; ?></div>
|
549 |
+
<?php
|
550 |
+
}
|
551 |
}
|
552 |
?>
|
553 |
<div id="<?php echo $album_gallery_div_id; ?>" class="<?php echo $album_gallery_div_class; ?>" >
|
677 |
'image_height' => $params['popup_height'],
|
678 |
'image_effect' => $params['popup_effect'],
|
679 |
'sort_by' => $params['sort_by'],
|
680 |
+
'order_by' => $params['order_by'],
|
681 |
'enable_image_filmstrip' => $params['popup_enable_filmstrip'],
|
682 |
'image_filmstrip_height' => $params['popup_filmstrip_height'],
|
683 |
'enable_image_ctrl_btn' => $params['popup_enable_ctrl_btn'],
|
684 |
+
'enable_image_fullscreen' => $params['popup_enable_fullscreen'],
|
685 |
'popup_enable_info' => $params['popup_enable_info'],
|
686 |
+
'popup_info_always_show' => $params['popup_info_always_show'],
|
687 |
+
'popup_info_full_width' => $params['popup_info_full_width'],
|
688 |
+
'popup_hit_counter' => $params['popup_hit_counter'],
|
689 |
+
'popup_enable_rate' => $params['popup_enable_rate'],
|
690 |
'slideshow_interval' => $params['popup_interval'],
|
691 |
'enable_comment_social' => $params['popup_enable_comment'],
|
692 |
'enable_image_facebook' => $params['popup_enable_facebook'],
|
693 |
'enable_image_twitter' => $params['popup_enable_twitter'],
|
694 |
'enable_image_google' => $params['popup_enable_google'],
|
695 |
+
'enable_image_pinterest' => $params['popup_enable_pinterest'],
|
696 |
'enable_image_tumblr' => $params['popup_enable_tumblr'],
|
697 |
'watermark_type' => $params['watermark_type'],
|
698 |
'current_url' => $current_url
|
frontend/views/BWGViewAlbum_extended_preview.php
CHANGED
@@ -62,6 +62,9 @@ class BWGViewAlbum_extended_preview {
|
|
62 |
}
|
63 |
if (!isset($params['popup_info_always_show'])) {
|
64 |
$params['popup_info_always_show'] = 0;
|
|
|
|
|
|
|
65 |
}
|
66 |
if (!isset($params['popup_enable_rate'])) {
|
67 |
$params['popup_enable_rate'] = 0;
|
@@ -627,7 +630,7 @@ class BWGViewAlbum_extended_preview {
|
|
627 |
<?php
|
628 |
}
|
629 |
else {
|
630 |
-
|
631 |
<span class="bwg_back_<?php echo $bwg; ?>"><?php echo __('Gallery is empty.', 'bwg'); ?></span>
|
632 |
<?php
|
633 |
}
|
@@ -647,20 +650,22 @@ class BWGViewAlbum_extended_preview {
|
|
647 |
'image_height' => $params['popup_height'],
|
648 |
'image_effect' => $params['popup_effect'],
|
649 |
'sort_by' => $params['sort_by'],
|
|
|
650 |
'enable_image_filmstrip' => $params['popup_enable_filmstrip'],
|
651 |
'image_filmstrip_height' => $params['popup_filmstrip_height'],
|
652 |
'enable_image_ctrl_btn' => $params['popup_enable_ctrl_btn'],
|
653 |
-
|
654 |
'popup_enable_info' => $params['popup_enable_info'],
|
655 |
-
|
656 |
-
|
657 |
-
|
|
|
658 |
'slideshow_interval' => $params['popup_interval'],
|
659 |
'enable_comment_social' => $params['popup_enable_comment'],
|
660 |
'enable_image_facebook' => $params['popup_enable_facebook'],
|
661 |
'enable_image_twitter' => $params['popup_enable_twitter'],
|
662 |
'enable_image_google' => $params['popup_enable_google'],
|
663 |
-
|
664 |
'enable_image_tumblr' => $params['popup_enable_tumblr'],
|
665 |
'watermark_type' => $params['watermark_type'],
|
666 |
'current_url' => $current_url
|
@@ -717,7 +722,7 @@ class BWGViewAlbum_extended_preview {
|
|
717 |
<?php
|
718 |
}
|
719 |
?>
|
720 |
-
|
721 |
</span>
|
722 |
</span>
|
723 |
<?php
|
62 |
}
|
63 |
if (!isset($params['popup_info_always_show'])) {
|
64 |
$params['popup_info_always_show'] = 0;
|
65 |
+
}
|
66 |
+
if (!isset($params['popup_info_full_width'])) {
|
67 |
+
$params['popup_info_full_width'] = 0;
|
68 |
}
|
69 |
if (!isset($params['popup_enable_rate'])) {
|
70 |
$params['popup_enable_rate'] = 0;
|
630 |
<?php
|
631 |
}
|
632 |
else {
|
633 |
+
?>
|
634 |
<span class="bwg_back_<?php echo $bwg; ?>"><?php echo __('Gallery is empty.', 'bwg'); ?></span>
|
635 |
<?php
|
636 |
}
|
650 |
'image_height' => $params['popup_height'],
|
651 |
'image_effect' => $params['popup_effect'],
|
652 |
'sort_by' => $params['sort_by'],
|
653 |
+
'order_by' => $params['order_by'],
|
654 |
'enable_image_filmstrip' => $params['popup_enable_filmstrip'],
|
655 |
'image_filmstrip_height' => $params['popup_filmstrip_height'],
|
656 |
'enable_image_ctrl_btn' => $params['popup_enable_ctrl_btn'],
|
657 |
+
'enable_image_fullscreen' => $params['popup_enable_fullscreen'],
|
658 |
'popup_enable_info' => $params['popup_enable_info'],
|
659 |
+
'popup_info_always_show' => $params['popup_info_always_show'],
|
660 |
+
'popup_info_full_width' => $params['popup_info_full_width'],
|
661 |
+
'popup_hit_counter' => $params['popup_hit_counter'],
|
662 |
+
'popup_enable_rate' => $params['popup_enable_rate'],
|
663 |
'slideshow_interval' => $params['popup_interval'],
|
664 |
'enable_comment_social' => $params['popup_enable_comment'],
|
665 |
'enable_image_facebook' => $params['popup_enable_facebook'],
|
666 |
'enable_image_twitter' => $params['popup_enable_twitter'],
|
667 |
'enable_image_google' => $params['popup_enable_google'],
|
668 |
+
'enable_image_pinterest' => $params['popup_enable_pinterest'],
|
669 |
'enable_image_tumblr' => $params['popup_enable_tumblr'],
|
670 |
'watermark_type' => $params['watermark_type'],
|
671 |
'current_url' => $current_url
|
722 |
<?php
|
723 |
}
|
724 |
?>
|
725 |
+
<img style="max-height:none; max-width:none; width:<?php echo $image_thumb_width; ?>px; height:<?php echo $image_thumb_height; ?>px; margin-left: <?php echo $thumb_left; ?>px; margin-top: <?php echo $thumb_top; ?>px;" id="<?php echo $image_row->id; ?>" src="<?php echo ($is_video ? "" : site_url() . '/' . $WD_BWG_UPLOAD_DIR) . $image_row->thumb_url; ?>" alt="<?php echo $image_row->alt; ?>" />
|
726 |
</span>
|
727 |
</span>
|
728 |
<?php
|
frontend/views/BWGViewGalleryBox.php
CHANGED
@@ -42,6 +42,7 @@ class BWGViewGalleryBox {
|
|
42 |
$enable_image_fullscreen = (isset($_GET['enable_image_fullscreen']) ? esc_html($_GET['enable_image_fullscreen']) : 0);
|
43 |
$popup_enable_info = (isset($_GET['popup_enable_info']) ? esc_html($_GET['popup_enable_info']) : 1);
|
44 |
$popup_info_always_show = (isset($_GET['popup_info_always_show']) ? esc_html($_GET['popup_info_always_show']) : 0);
|
|
|
45 |
$popup_enable_rate = (isset($_GET['popup_enable_rate']) ? esc_html($_GET['popup_enable_rate']) : 0);
|
46 |
$popup_hit_counter = (isset($_GET['popup_hit_counter']) ? esc_html($_GET['popup_hit_counter']) : 0);
|
47 |
|
@@ -108,6 +109,7 @@ class BWGViewGalleryBox {
|
|
108 |
'enable_image_fullscreen' => $enable_image_fullscreen,
|
109 |
'popup_enable_info' => $popup_enable_info,
|
110 |
'popup_info_always_show' => $popup_info_always_show,
|
|
|
111 |
'popup_hit_counter' => $popup_hit_counter,
|
112 |
'popup_enable_rate' => $popup_enable_rate,
|
113 |
'slideshow_interval' => $slideshow_interval,
|
@@ -667,7 +669,11 @@ class BWGViewGalleryBox {
|
|
667 |
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; ?>;
|
668 |
border-radius: <?php echo $theme_row->lightbox_info_border_radius; ?>;
|
669 |
<?php echo ((!$enable_image_filmstrip || $theme_row->lightbox_filmstrip_pos != 'bottom') && $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;' : '' ?>
|
670 |
-
|
|
|
|
|
|
|
|
|
671 |
padding: <?php echo $theme_row->lightbox_info_padding; ?>;
|
672 |
<?php echo ((!$enable_image_filmstrip || $theme_row->lightbox_filmstrip_pos != 'top') && $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;' : '' ?>
|
673 |
}
|
42 |
$enable_image_fullscreen = (isset($_GET['enable_image_fullscreen']) ? esc_html($_GET['enable_image_fullscreen']) : 0);
|
43 |
$popup_enable_info = (isset($_GET['popup_enable_info']) ? esc_html($_GET['popup_enable_info']) : 1);
|
44 |
$popup_info_always_show = (isset($_GET['popup_info_always_show']) ? esc_html($_GET['popup_info_always_show']) : 0);
|
45 |
+
$popup_info_full_width = (isset($_GET['popup_info_full_width']) ? esc_html($_GET['popup_info_full_width']) : 0);
|
46 |
$popup_enable_rate = (isset($_GET['popup_enable_rate']) ? esc_html($_GET['popup_enable_rate']) : 0);
|
47 |
$popup_hit_counter = (isset($_GET['popup_hit_counter']) ? esc_html($_GET['popup_hit_counter']) : 0);
|
48 |
|
109 |
'enable_image_fullscreen' => $enable_image_fullscreen,
|
110 |
'popup_enable_info' => $popup_enable_info,
|
111 |
'popup_info_always_show' => $popup_info_always_show,
|
112 |
+
'popup_info_full_width' => $popup_info_full_width,
|
113 |
'popup_hit_counter' => $popup_hit_counter,
|
114 |
'popup_enable_rate' => $popup_enable_rate,
|
115 |
'slideshow_interval' => $slideshow_interval,
|
669 |
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; ?>;
|
670 |
border-radius: <?php echo $theme_row->lightbox_info_border_radius; ?>;
|
671 |
<?php echo ((!$enable_image_filmstrip || $theme_row->lightbox_filmstrip_pos != 'bottom') && $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;' : '' ?>
|
672 |
+
<?php if($params_array['popup_info_full_width']) { ?>
|
673 |
+
width: 100%;
|
674 |
+
<?php } else { ?>
|
675 |
+
margin: <?php echo $theme_row->lightbox_info_margin; ?>;
|
676 |
+
<?php } ?>
|
677 |
padding: <?php echo $theme_row->lightbox_info_padding; ?>;
|
678 |
<?php echo ((!$enable_image_filmstrip || $theme_row->lightbox_filmstrip_pos != 'top') && $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;' : '' ?>
|
679 |
}
|
frontend/views/BWGViewImage_browser.php
CHANGED
@@ -51,6 +51,9 @@ class BWGViewImage_browser {
|
|
51 |
}
|
52 |
if (!isset($params['popup_info_always_show'])) {
|
53 |
$params['popup_info_always_show'] = 0;
|
|
|
|
|
|
|
54 |
}
|
55 |
if (!isset($params['popup_enable_rate'])) {
|
56 |
$params['popup_enable_rate'] = 0;
|
@@ -110,6 +113,7 @@ class BWGViewImage_browser {
|
|
110 |
'enable_image_fullscreen' => $params['popup_enable_fullscreen'],
|
111 |
'popup_enable_info' => $params['popup_enable_info'],
|
112 |
'popup_info_always_show' => $params['popup_info_always_show'],
|
|
|
113 |
'popup_hit_counter' => $params['popup_hit_counter'],
|
114 |
'popup_enable_rate' => $params['popup_enable_rate'],
|
115 |
'slideshow_interval' => $params['popup_interval'],
|
51 |
}
|
52 |
if (!isset($params['popup_info_always_show'])) {
|
53 |
$params['popup_info_always_show'] = 0;
|
54 |
+
}
|
55 |
+
if (!isset($params['popup_info_full_width'])) {
|
56 |
+
$params['popup_info_full_width'] = 0;
|
57 |
}
|
58 |
if (!isset($params['popup_enable_rate'])) {
|
59 |
$params['popup_enable_rate'] = 0;
|
113 |
'enable_image_fullscreen' => $params['popup_enable_fullscreen'],
|
114 |
'popup_enable_info' => $params['popup_enable_info'],
|
115 |
'popup_info_always_show' => $params['popup_info_always_show'],
|
116 |
+
'popup_info_full_width' => $params['popup_info_full_width'],
|
117 |
'popup_hit_counter' => $params['popup_hit_counter'],
|
118 |
'popup_enable_rate' => $params['popup_enable_rate'],
|
119 |
'slideshow_interval' => $params['popup_interval'],
|
frontend/views/BWGViewSlideshow.php
CHANGED
@@ -33,6 +33,9 @@ class BWGViewSlideshow {
|
|
33 |
else {
|
34 |
$order_by = $params['order_by'];
|
35 |
}
|
|
|
|
|
|
|
36 |
$image_right_click = $options_row->image_right_click;
|
37 |
if (!$from) {
|
38 |
$theme_id = (isset($params['theme_id']) ? esc_html($params['theme_id']) : 1);
|
@@ -462,6 +465,9 @@ class BWGViewSlideshow {
|
|
462 |
border-radius: <?php echo $theme_row->slideshow_title_border_radius; ?>;
|
463 |
background-color: #<?php echo $theme_row->slideshow_title_background_color; ?>;
|
464 |
padding: <?php echo $theme_row->slideshow_title_padding; ?>;
|
|
|
|
|
|
|
465 |
margin: 5px;
|
466 |
display: inline-block;
|
467 |
word-wrap: break-word;
|
33 |
else {
|
34 |
$order_by = $params['order_by'];
|
35 |
}
|
36 |
+
if (!isset($params['slideshow_title_full_width'])) {
|
37 |
+
$params['slideshow_title_full_width'] = 0;
|
38 |
+
}
|
39 |
$image_right_click = $options_row->image_right_click;
|
40 |
if (!$from) {
|
41 |
$theme_id = (isset($params['theme_id']) ? esc_html($params['theme_id']) : 1);
|
465 |
border-radius: <?php echo $theme_row->slideshow_title_border_radius; ?>;
|
466 |
background-color: #<?php echo $theme_row->slideshow_title_background_color; ?>;
|
467 |
padding: <?php echo $theme_row->slideshow_title_padding; ?>;
|
468 |
+
<?php if($params['slideshow_title_full_width']) { ?>
|
469 |
+
width: 100%;
|
470 |
+
<?php } ?>
|
471 |
margin: 5px;
|
472 |
display: inline-block;
|
473 |
word-wrap: break-word;
|
frontend/views/BWGViewThumbnails.php
CHANGED
@@ -57,6 +57,9 @@ class BWGViewThumbnails {
|
|
57 |
}
|
58 |
if (!isset($params['popup_info_always_show'])) {
|
59 |
$params['popup_info_always_show'] = 0;
|
|
|
|
|
|
|
60 |
}
|
61 |
if (!isset($params['popup_enable_rate'])) {
|
62 |
$params['popup_enable_rate'] = 0;
|
@@ -100,6 +103,7 @@ class BWGViewThumbnails {
|
|
100 |
$params['popup_enable_fullscreen'] = $options_row->popup_enable_fullscreen;
|
101 |
$params['popup_enable_info'] = $options_row->popup_enable_info;
|
102 |
$params['popup_info_always_show'] = $options_row->popup_info_always_show;
|
|
|
103 |
$params['popup_hit_counter'] = $options_row->popup_hit_counter;
|
104 |
$params['popup_enable_rate'] = $options_row->popup_enable_rate;
|
105 |
$params['popup_interval'] = $options_row->popup_interval;
|
@@ -393,6 +397,7 @@ class BWGViewThumbnails {
|
|
393 |
'enable_image_fullscreen' => $params['popup_enable_fullscreen'],
|
394 |
'popup_enable_info' => $params['popup_enable_info'],
|
395 |
'popup_info_always_show' => $params['popup_info_always_show'],
|
|
|
396 |
'popup_hit_counter' => $params['popup_hit_counter'],
|
397 |
'popup_enable_rate' => $params['popup_enable_rate'],
|
398 |
'slideshow_interval' => $params['popup_interval'],
|
57 |
}
|
58 |
if (!isset($params['popup_info_always_show'])) {
|
59 |
$params['popup_info_always_show'] = 0;
|
60 |
+
}
|
61 |
+
if (!isset($params['popup_info_full_width'])) {
|
62 |
+
$params['popup_info_full_width'] = 0;
|
63 |
}
|
64 |
if (!isset($params['popup_enable_rate'])) {
|
65 |
$params['popup_enable_rate'] = 0;
|
103 |
$params['popup_enable_fullscreen'] = $options_row->popup_enable_fullscreen;
|
104 |
$params['popup_enable_info'] = $options_row->popup_enable_info;
|
105 |
$params['popup_info_always_show'] = $options_row->popup_info_always_show;
|
106 |
+
$params['popup_info_full_width'] = $options_row->popup_info_full_width;
|
107 |
$params['popup_hit_counter'] = $options_row->popup_hit_counter;
|
108 |
$params['popup_enable_rate'] = $options_row->popup_enable_rate;
|
109 |
$params['popup_interval'] = $options_row->popup_interval;
|
397 |
'enable_image_fullscreen' => $params['popup_enable_fullscreen'],
|
398 |
'popup_enable_info' => $params['popup_enable_info'],
|
399 |
'popup_info_always_show' => $params['popup_info_always_show'],
|
400 |
+
'popup_info_full_width' => $params['popup_info_full_width'],
|
401 |
'popup_hit_counter' => $params['popup_hit_counter'],
|
402 |
'popup_enable_rate' => $params['popup_enable_rate'],
|
403 |
'slideshow_interval' => $params['popup_interval'],
|
js/bwg.js
CHANGED
@@ -852,6 +852,9 @@ function bwg_inputs() {
|
|
852 |
function bwg_enable_disable(display, id, current) {
|
853 |
jQuery("#" + current).attr('checked', 'checked');
|
854 |
jQuery("#" + id).css('display', display);
|
|
|
|
|
|
|
855 |
}
|
856 |
|
857 |
function bwg_popup_fullscreen(num) {
|
852 |
function bwg_enable_disable(display, id, current) {
|
853 |
jQuery("#" + current).attr('checked', 'checked');
|
854 |
jQuery("#" + id).css('display', display);
|
855 |
+
if(id == 'tr_slideshow_title_position') {
|
856 |
+
jQuery("#tr_slideshow_full_width_title").css('display', display);
|
857 |
+
}
|
858 |
}
|
859 |
|
860 |
function bwg_popup_fullscreen(num) {
|
js/bwg_shortcode.js
CHANGED
@@ -52,6 +52,9 @@ function bwg_watermark(watermark_type) {
|
|
52 |
function bwg_enable_disable(display, id, current) {
|
53 |
jQuery("#" + current).prop('checked', true);
|
54 |
jQuery("#" + id).css('display', display);
|
|
|
|
|
|
|
55 |
}
|
56 |
|
57 |
function bwg_popup_fullscreen() {
|
@@ -211,6 +214,7 @@ function bwg_gallery_type(gallery_type) {
|
|
211 |
jQuery("#tr_slideshow_filmstrip_height").css('display', 'none');
|
212 |
jQuery("#tr_slideshow_enable_title").css('display', 'none');
|
213 |
jQuery("#tr_slideshow_title_position").css('display', 'none');
|
|
|
214 |
jQuery("#tr_slideshow_enable_description").css('display', 'none');
|
215 |
jQuery("#tr_slideshow_description_position").css('display', 'none');
|
216 |
jQuery("#tr_enable_slideshow_music").css('display', 'none');
|
@@ -227,6 +231,7 @@ function bwg_gallery_type(gallery_type) {
|
|
227 |
jQuery("#tr_popup_enable_ctrl_btn").css('display', 'none');
|
228 |
jQuery("#tr_popup_enable_fullscreen").css('display', 'none');
|
229 |
jQuery("#tr_popup_enable_info").css('display', 'none');
|
|
|
230 |
jQuery("#tr_popup_enable_rate").css('display', 'none');
|
231 |
jQuery("#tr_popup_enable_comment").css('display', 'none');
|
232 |
jQuery("#tr_popup_enable_facebook").css('display', 'none');
|
@@ -433,6 +438,7 @@ function bwg_gallery_type(gallery_type) {
|
|
433 |
}
|
434 |
jQuery("#tr_popup_enable_fullscreen").css('display', '');
|
435 |
jQuery("#tr_popup_enable_info").css('display', '');
|
|
|
436 |
jQuery("#tr_popup_enable_rate").css('display', '');
|
437 |
jQuery("#tr_popup_enable_comment").css('display', '');
|
438 |
jQuery("#tr_popup_enable_facebook").css('display', '');
|
52 |
function bwg_enable_disable(display, id, current) {
|
53 |
jQuery("#" + current).prop('checked', true);
|
54 |
jQuery("#" + id).css('display', display);
|
55 |
+
if(id == 'tr_slideshow_title_position') {
|
56 |
+
jQuery("#tr_slideshow_full_width_title").css('display', display);
|
57 |
+
}
|
58 |
}
|
59 |
|
60 |
function bwg_popup_fullscreen() {
|
214 |
jQuery("#tr_slideshow_filmstrip_height").css('display', 'none');
|
215 |
jQuery("#tr_slideshow_enable_title").css('display', 'none');
|
216 |
jQuery("#tr_slideshow_title_position").css('display', 'none');
|
217 |
+
jQuery("#tr_slideshow_full_width_title").css('display', 'none');
|
218 |
jQuery("#tr_slideshow_enable_description").css('display', 'none');
|
219 |
jQuery("#tr_slideshow_description_position").css('display', 'none');
|
220 |
jQuery("#tr_enable_slideshow_music").css('display', 'none');
|
231 |
jQuery("#tr_popup_enable_ctrl_btn").css('display', 'none');
|
232 |
jQuery("#tr_popup_enable_fullscreen").css('display', 'none');
|
233 |
jQuery("#tr_popup_enable_info").css('display', 'none');
|
234 |
+
jQuery("#tr_popup_info_full_width").css('display', 'none');
|
235 |
jQuery("#tr_popup_enable_rate").css('display', 'none');
|
236 |
jQuery("#tr_popup_enable_comment").css('display', 'none');
|
237 |
jQuery("#tr_popup_enable_facebook").css('display', 'none');
|
438 |
}
|
439 |
jQuery("#tr_popup_enable_fullscreen").css('display', '');
|
440 |
jQuery("#tr_popup_enable_info").css('display', '');
|
441 |
+
jQuery("#tr_popup_info_full_width").css('display', '');
|
442 |
jQuery("#tr_popup_enable_rate").css('display', '');
|
443 |
jQuery("#tr_popup_enable_comment").css('display', '');
|
444 |
jQuery("#tr_popup_enable_facebook").css('display', '');
|
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.2.
|
8 |
* Author: WebDorado
|
9 |
* Author URI: http://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -23,13 +23,13 @@ else {
|
|
23 |
|
24 |
// Plugin menu.
|
25 |
function bwg_options_panel() {
|
26 |
-
$galleries_page = add_menu_page('Photo Gallery', 'Photo Gallery', '
|
27 |
|
28 |
-
$galleries_page = add_submenu_page('galleries_bwg', 'Add Galleries/Images', 'Add Galleries/Images', '
|
29 |
add_action('admin_print_styles-' . $galleries_page, 'bwg_styles');
|
30 |
add_action('admin_print_scripts-' . $galleries_page, 'bwg_scripts');
|
31 |
|
32 |
-
$albums_page = add_submenu_page('galleries_bwg', 'Albums', 'Albums', '
|
33 |
add_action('admin_print_styles-' . $albums_page, 'bwg_styles');
|
34 |
add_action('admin_print_scripts-' . $albums_page, 'bwg_scripts');
|
35 |
|
@@ -45,7 +45,7 @@ function bwg_options_panel() {
|
|
45 |
add_action('admin_print_styles-' . $themes_page, 'bwg_styles');
|
46 |
add_action('admin_print_scripts-' . $themes_page, 'bwg_options_scripts');
|
47 |
|
48 |
-
|
49 |
|
50 |
$licensing_plugins_page = add_submenu_page('galleries_bwg', 'Licensing', 'Licensing', 'manage_options', 'licensing_bwg', 'bw_gallery');
|
51 |
add_action('admin_print_styles-' . $licensing_plugins_page, 'bwg_licensing_styles');
|
@@ -71,6 +71,14 @@ function bw_gallery() {
|
|
71 |
}
|
72 |
|
73 |
function bwg_featured() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
require_once(WD_BWG_DIR . '/featured/featured.php');
|
75 |
wp_register_style('bwg_featured', WD_BWG_URL . '/featured/style.css', array(), get_option("wd_bwg_version"));
|
76 |
wp_print_styles('bwg_featured');
|
@@ -108,7 +116,7 @@ function bwg_UploadHandler() {
|
|
108 |
|
109 |
function bwg_filemanager_ajax() {
|
110 |
if (function_exists('current_user_can')) {
|
111 |
-
if (!current_user_can('
|
112 |
die('Access Denied');
|
113 |
}
|
114 |
}
|
@@ -127,6 +135,14 @@ function bwg_filemanager_ajax() {
|
|
127 |
}
|
128 |
|
129 |
function bwg_edit_tag() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
require_once(WD_BWG_DIR . '/admin/controllers/BWGControllerTags_bwg.php');
|
131 |
$controller_class = 'BWGControllerTags_bwg';
|
132 |
$controller = new $controller_class();
|
@@ -135,7 +151,7 @@ function bwg_edit_tag() {
|
|
135 |
|
136 |
function bwg_ajax() {
|
137 |
if (function_exists('current_user_can')) {
|
138 |
-
if (!current_user_can('
|
139 |
die('Access Denied');
|
140 |
}
|
141 |
}
|
@@ -226,6 +242,7 @@ function bwg_shortcode($params) {
|
|
226 |
'enable_slideshow_filmstrip' => 1,
|
227 |
'slideshow_filmstrip_height' => 70,
|
228 |
'slideshow_enable_title' => 0,
|
|
|
229 |
'slideshow_title_position' => 'top-right',
|
230 |
'slideshow_enable_description' => 0,
|
231 |
'slideshow_description_position' => 'bottom-right',
|
@@ -314,6 +331,7 @@ function bwg_shortcode($params) {
|
|
314 |
'popup_enable_ctrl_btn' => 1,
|
315 |
'popup_enable_fullscreen' => 1,
|
316 |
'popup_enable_info' => 1,
|
|
|
317 |
'popup_info_always_show' => 0,
|
318 |
'popup_hit_counter' => 0,
|
319 |
'popup_enable_rate' => 0,
|
@@ -420,7 +438,7 @@ if (class_exists('WP_Widget')) {
|
|
420 |
function bwg_activate() {
|
421 |
global $wpdb;
|
422 |
$bwg_shortcode = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix . "bwg_shortcode` (
|
423 |
-
`id` bigint(20) NOT NULL
|
424 |
`tagtext` mediumtext NOT NULL,
|
425 |
PRIMARY KEY (`id`)
|
426 |
) DEFAULT CHARSET=utf8;";
|
@@ -608,6 +626,8 @@ function bwg_activate() {
|
|
608 |
`upload_img_height` int(4) NOT NULL,
|
609 |
`play_icon` tinyint(1) NOT NULL,
|
610 |
`show_masonry_thumb_description` tinyint(1) NOT NULL,
|
|
|
|
|
611 |
PRIMARY KEY (`id`)
|
612 |
) DEFAULT CHARSET=utf8;";
|
613 |
$wpdb->query($bwg_option);
|
@@ -1134,6 +1154,9 @@ function bwg_activate() {
|
|
1134 |
'upload_img_width' => 1200,
|
1135 |
'upload_img_height' => 1200,
|
1136 |
'play_icon'=> 1,
|
|
|
|
|
|
|
1137 |
), array(
|
1138 |
'%d',
|
1139 |
'%s',
|
@@ -1248,6 +1271,9 @@ function bwg_activate() {
|
|
1248 |
'%d',
|
1249 |
'%d',
|
1250 |
'%d',
|
|
|
|
|
|
|
1251 |
));
|
1252 |
}
|
1253 |
$exists_default = $wpdb->get_var('SELECT count(id) FROM ' . $wpdb->prefix . 'bwg_theme');
|
@@ -2761,7 +2787,7 @@ function bwg_activate() {
|
|
2761 |
));
|
2762 |
}
|
2763 |
$version = get_option("wd_bwg_version");
|
2764 |
-
$new_version = '1.2.
|
2765 |
if ($version && version_compare($version, $new_version, '<')) {
|
2766 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
2767 |
bwg_update($version);
|
@@ -2776,7 +2802,7 @@ register_activation_hook(__FILE__, 'bwg_activate');
|
|
2776 |
|
2777 |
function bwg_update_hook() {
|
2778 |
$version = get_option("wd_bwg_version");
|
2779 |
-
$new_version = '1.2.
|
2780 |
if ($version && version_compare($version, $new_version, '<')) {
|
2781 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
2782 |
bwg_update($version);
|
4 |
* Plugin Name: Photo Gallery
|
5 |
* Plugin URI: http://web-dorado.com/products/wordpress-photo-gallery-plugin.html
|
6 |
* Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
|
7 |
+
* Version: 1.2.6
|
8 |
* Author: WebDorado
|
9 |
* Author URI: http://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
23 |
|
24 |
// Plugin menu.
|
25 |
function bwg_options_panel() {
|
26 |
+
$galleries_page = add_menu_page('Photo Gallery', 'Photo Gallery', 'manage_options', 'galleries_bwg', 'bw_gallery', WD_BWG_URL . '/images/best-wordpress-gallery.png');
|
27 |
|
28 |
+
$galleries_page = add_submenu_page('galleries_bwg', 'Add Galleries/Images', 'Add Galleries/Images', 'manage_options', 'galleries_bwg', 'bw_gallery');
|
29 |
add_action('admin_print_styles-' . $galleries_page, 'bwg_styles');
|
30 |
add_action('admin_print_scripts-' . $galleries_page, 'bwg_scripts');
|
31 |
|
32 |
+
$albums_page = add_submenu_page('galleries_bwg', 'Albums', 'Albums', 'manage_options', 'albums_bwg', 'bw_gallery');
|
33 |
add_action('admin_print_styles-' . $albums_page, 'bwg_styles');
|
34 |
add_action('admin_print_scripts-' . $albums_page, 'bwg_scripts');
|
35 |
|
45 |
add_action('admin_print_styles-' . $themes_page, 'bwg_styles');
|
46 |
add_action('admin_print_scripts-' . $themes_page, 'bwg_options_scripts');
|
47 |
|
48 |
+
add_submenu_page('galleries_bwg', 'Generate Shortcode', 'Generate Shortcode', 'manage_options', 'BWGShortcode', 'bw_gallery');
|
49 |
|
50 |
$licensing_plugins_page = add_submenu_page('galleries_bwg', 'Licensing', 'Licensing', 'manage_options', 'licensing_bwg', 'bw_gallery');
|
51 |
add_action('admin_print_styles-' . $licensing_plugins_page, 'bwg_licensing_styles');
|
71 |
}
|
72 |
|
73 |
function bwg_featured() {
|
74 |
+
if (function_exists('current_user_can')) {
|
75 |
+
if (!current_user_can('manage_options')) {
|
76 |
+
die('Access Denied');
|
77 |
+
}
|
78 |
+
}
|
79 |
+
else {
|
80 |
+
die('Access Denied');
|
81 |
+
}
|
82 |
require_once(WD_BWG_DIR . '/featured/featured.php');
|
83 |
wp_register_style('bwg_featured', WD_BWG_URL . '/featured/style.css', array(), get_option("wd_bwg_version"));
|
84 |
wp_print_styles('bwg_featured');
|
116 |
|
117 |
function bwg_filemanager_ajax() {
|
118 |
if (function_exists('current_user_can')) {
|
119 |
+
if (!current_user_can('manage_options')) {
|
120 |
die('Access Denied');
|
121 |
}
|
122 |
}
|
135 |
}
|
136 |
|
137 |
function bwg_edit_tag() {
|
138 |
+
if (function_exists('current_user_can')) {
|
139 |
+
if (!current_user_can('manage_options')) {
|
140 |
+
die('Access Denied');
|
141 |
+
}
|
142 |
+
}
|
143 |
+
else {
|
144 |
+
die('Access Denied');
|
145 |
+
}
|
146 |
require_once(WD_BWG_DIR . '/admin/controllers/BWGControllerTags_bwg.php');
|
147 |
$controller_class = 'BWGControllerTags_bwg';
|
148 |
$controller = new $controller_class();
|
151 |
|
152 |
function bwg_ajax() {
|
153 |
if (function_exists('current_user_can')) {
|
154 |
+
if (!current_user_can('manage_options')) {
|
155 |
die('Access Denied');
|
156 |
}
|
157 |
}
|
242 |
'enable_slideshow_filmstrip' => 1,
|
243 |
'slideshow_filmstrip_height' => 70,
|
244 |
'slideshow_enable_title' => 0,
|
245 |
+
'slideshow_title_full_width' => 0,
|
246 |
'slideshow_title_position' => 'top-right',
|
247 |
'slideshow_enable_description' => 0,
|
248 |
'slideshow_description_position' => 'bottom-right',
|
331 |
'popup_enable_ctrl_btn' => 1,
|
332 |
'popup_enable_fullscreen' => 1,
|
333 |
'popup_enable_info' => 1,
|
334 |
+
'popup_info_full_width' => 0,
|
335 |
'popup_info_always_show' => 0,
|
336 |
'popup_hit_counter' => 0,
|
337 |
'popup_enable_rate' => 0,
|
438 |
function bwg_activate() {
|
439 |
global $wpdb;
|
440 |
$bwg_shortcode = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix . "bwg_shortcode` (
|
441 |
+
`id` bigint(20) NOT NULL,
|
442 |
`tagtext` mediumtext NOT NULL,
|
443 |
PRIMARY KEY (`id`)
|
444 |
) DEFAULT CHARSET=utf8;";
|
626 |
`upload_img_height` int(4) NOT NULL,
|
627 |
`play_icon` tinyint(1) NOT NULL,
|
628 |
`show_masonry_thumb_description` tinyint(1) NOT NULL,
|
629 |
+
`slideshow_title_full_width` tinyint(1) NOT NULL,
|
630 |
+
`popup_info_full_width` tinyint(1) NOT NULL,
|
631 |
PRIMARY KEY (`id`)
|
632 |
) DEFAULT CHARSET=utf8;";
|
633 |
$wpdb->query($bwg_option);
|
1154 |
'upload_img_width' => 1200,
|
1155 |
'upload_img_height' => 1200,
|
1156 |
'play_icon'=> 1,
|
1157 |
+
'show_masonry_thumb_description' => 0,
|
1158 |
+
'slideshow_title_full_width' => 0,
|
1159 |
+
'popup_info_full_width' => 0,
|
1160 |
), array(
|
1161 |
'%d',
|
1162 |
'%s',
|
1271 |
'%d',
|
1272 |
'%d',
|
1273 |
'%d',
|
1274 |
+
'%d',
|
1275 |
+
'%d',
|
1276 |
+
'%d',
|
1277 |
));
|
1278 |
}
|
1279 |
$exists_default = $wpdb->get_var('SELECT count(id) FROM ' . $wpdb->prefix . 'bwg_theme');
|
2787 |
));
|
2788 |
}
|
2789 |
$version = get_option("wd_bwg_version");
|
2790 |
+
$new_version = '1.2.6';
|
2791 |
if ($version && version_compare($version, $new_version, '<')) {
|
2792 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
2793 |
bwg_update($version);
|
2802 |
|
2803 |
function bwg_update_hook() {
|
2804 |
$version = get_option("wd_bwg_version");
|
2805 |
+
$new_version = '1.2.6';
|
2806 |
if ($version && version_compare($version, $new_version, '<')) {
|
2807 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
2808 |
bwg_update($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: 4.0
|
7 |
-
Stable tag: 1.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -77,6 +77,8 @@ Photo Gallery product in addition to the main plugin includes 4 specific widgets
|
|
77 |
* Resizing possibility after adding the images
|
78 |
* Possibility to display Search Box on the gallery page for the search based on titles
|
79 |
* Possibility to display the number of images in the lighbox
|
|
|
|
|
80 |
|
81 |
Upgrade to [WordPress Photo Gallery Pro](http://web-dorado.com/products/wordpress-photo-gallery-plugin.html) to add features:
|
82 |
|
@@ -177,6 +179,12 @@ If any problem occurs, please contact us at [info@web-dorado.com](mailto:info@w
|
|
177 |
|
178 |
== Changelog ==
|
179 |
|
|
|
|
|
|
|
|
|
|
|
|
|
180 |
= 1.2.4 =
|
181 |
pagination input
|
182 |
|
@@ -296,7 +304,6 @@ change shortcodes
|
|
296 |
|
297 |
|
298 |
==Wordpress Photo Gallery Step by step guide==
|
299 |
-
Step by step guide
|
300 |
|
301 |
= Step 1: Installing the Gallery =
|
302 |
1.1 Minimum requirements.
|
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: 4.0
|
7 |
+
Stable tag: 1.2.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
77 |
* Resizing possibility after adding the images
|
78 |
* Possibility to display Search Box on the gallery page for the search based on titles
|
79 |
* Possibility to display the number of images in the lighbox
|
80 |
+
* Redirection option upon clicking image thumbnail
|
81 |
+
* Option of displaying the image information in full-width mode
|
82 |
|
83 |
Upgrade to [WordPress Photo Gallery Pro](http://web-dorado.com/products/wordpress-photo-gallery-plugin.html) to add features:
|
84 |
|
179 |
|
180 |
== Changelog ==
|
181 |
|
182 |
+
= 1.2.6 =
|
183 |
+
bug in new image save fixed
|
184 |
+
|
185 |
+
= 1.2.5 =
|
186 |
+
wrap around in lightbox
|
187 |
+
|
188 |
= 1.2.4 =
|
189 |
pagination input
|
190 |
|
304 |
|
305 |
|
306 |
==Wordpress Photo Gallery Step by step guide==
|
|
|
307 |
|
308 |
= Step 1: Installing the Gallery =
|
309 |
1.1 Minimum requirements.
|
update/bwg_update.php
CHANGED
@@ -135,7 +135,7 @@ function bwg_update($version) {
|
|
135 |
}
|
136 |
if (version_compare($version, '1.2.0') == -1) {
|
137 |
$bwg_shortcode = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix . "bwg_shortcode` (
|
138 |
-
`id` bigint(20) NOT NULL
|
139 |
`tagtext` mediumtext NOT NULL,
|
140 |
PRIMARY KEY (`id`)
|
141 |
) DEFAULT CHARSET=utf8;";
|
@@ -158,6 +158,12 @@ function bwg_update($version) {
|
|
158 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `masonry_description_color` varchar(8) NOT NULL DEFAULT 'CCCCCC'");
|
159 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `masonry_description_font_style` varchar(16) NOT NULL DEFAULT 'segoe ui'");
|
160 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
161 |
return;
|
162 |
}
|
163 |
|
135 |
}
|
136 |
if (version_compare($version, '1.2.0') == -1) {
|
137 |
$bwg_shortcode = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix . "bwg_shortcode` (
|
138 |
+
`id` bigint(20) NOT NULL,
|
139 |
`tagtext` mediumtext NOT NULL,
|
140 |
PRIMARY KEY (`id`)
|
141 |
) DEFAULT CHARSET=utf8;";
|
158 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `masonry_description_color` varchar(8) NOT NULL DEFAULT 'CCCCCC'");
|
159 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `masonry_description_font_style` varchar(16) NOT NULL DEFAULT 'segoe ui'");
|
160 |
}
|
161 |
+
if (version_compare($version, '1.2.6') == -1) {
|
162 |
+
// Add enable/disable option for slideshow image title full width.
|
163 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `slideshow_title_full_width` tinyint(1) NOT NULL DEFAULT 1");
|
164 |
+
// Add enable/disable option for lightbox info full width.
|
165 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `popup_info_full_width` tinyint(1) NOT NULL DEFAULT 1");
|
166 |
+
}
|
167 |
return;
|
168 |
}
|
169 |
|