Version Description
Fixed: JavaScript conflict with some themes.
Download this release
Release Info
Developer | webdorado |
Plugin | Photo Gallery by WD – Responsive Photo Gallery |
Version | 1.2.50 |
Comparing to | |
See all releases |
Code changes from version 1.2.49 to 1.2.50
- frontend/views/BWGViewGalleryBox.php +107 -67
- frontend/views/BWGViewImage_browser.php +38 -70
- frontend/views/BWGViewSlideshow.php +5 -4
- photo-gallery.php +3 -3
- readme.txt +4 -1
frontend/views/BWGViewGalleryBox.php
CHANGED
@@ -1145,10 +1145,12 @@ class BWGViewGalleryBox {
|
|
1145 |
|
1146 |
bwg_trans_in_progress = false;
|
1147 |
jQuery(current_image_class).html('');
|
1148 |
-
if (typeof event_stack !== 'undefined'
|
1149 |
-
|
1150 |
-
|
1151 |
-
|
|
|
|
|
1152 |
}
|
1153 |
bwg_change_watermark_container();
|
1154 |
}
|
@@ -1224,7 +1226,8 @@ class BWGViewGalleryBox {
|
|
1224 |
function bwg_gridlet(width, height, top, img_top, left, img_left, src, imgWidth, imgHeight, c, r) {
|
1225 |
var delay = (c + r) * count;
|
1226 |
/* Return a gridlet elem with styles for specific transition.*/
|
1227 |
-
return jQuery('<
|
|
|
1228 |
width : width,
|
1229 |
height : height,
|
1230 |
top : top,
|
@@ -1242,7 +1245,7 @@ class BWGViewGalleryBox {
|
|
1242 |
/* Get the current slide's image.*/
|
1243 |
var cur_img = jQuery(current_image_class).find('img');
|
1244 |
/* Create a grid to hold the gridlets.*/
|
1245 |
-
var grid = jQuery('<
|
1246 |
/* Prepend the grid to the next slide (i.e. so it's above the slide image).*/
|
1247 |
jQuery(current_image_class).prepend(grid);
|
1248 |
/* Vars to calculate positioning/size of gridlets.*/
|
@@ -1321,10 +1324,12 @@ class BWGViewGalleryBox {
|
|
1321 |
grid.remove();
|
1322 |
bwg_trans_in_progress = false;
|
1323 |
jQuery(current_image_class).html('');
|
1324 |
-
if (typeof event_stack !== 'undefined'
|
1325 |
-
|
1326 |
-
|
1327 |
-
|
|
|
|
|
1328 |
}
|
1329 |
bwg_change_watermark_container();
|
1330 |
}
|
@@ -1361,7 +1366,8 @@ class BWGViewGalleryBox {
|
|
1361 |
jQuery(this)[0].contentWindow.postMessage('{ "method": "pause" }', "*");
|
1362 |
jQuery(this)[0].contentWindow.postMessage('pause', '*');
|
1363 |
});
|
1364 |
-
if (typeof data[key] != 'undefined'
|
|
|
1365 |
if (jQuery('.bwg_ctrl_btn').hasClass('fa-pause')) {
|
1366 |
bwg_play();
|
1367 |
}
|
@@ -1394,14 +1400,14 @@ class BWGViewGalleryBox {
|
|
1394 |
/* Change image id.*/
|
1395 |
jQuery("#bwg_popup_image").attr('image_id', data[key]["id"]);
|
1396 |
/* Change image title, description.*/
|
1397 |
-
|
1398 |
-
|
1399 |
-
if (data[key]["alt"].trim() == "" && data[key]["description"].trim() == "") {
|
1400 |
-
jQuery(".bwg_image_info").css("background", "none");
|
1401 |
-
}
|
1402 |
-
else {
|
1403 |
jQuery(".bwg_image_info").removeAttr("style");
|
1404 |
-
|
|
|
|
|
|
|
|
|
1405 |
if (jQuery(".bwg_image_info_container1").css("display") != 'none') {
|
1406 |
jQuery(".bwg_image_info_container1").css("display", "table-cell");
|
1407 |
}
|
@@ -1417,7 +1423,7 @@ class BWGViewGalleryBox {
|
|
1417 |
var cur_width = jQuery(current_image_class).width();
|
1418 |
var innhtml = '<span class="bwg_popup_image_spun1" style="display: table; width: inherit; height: inherit;"><span class="bwg_popup_image_spun2" style="display: table-cell; vertical-align: middle; text-align: center;">';
|
1419 |
if (!is_embed) {
|
1420 |
-
|
1421 |
}
|
1422 |
else { /*is_embed*/
|
1423 |
|
@@ -1482,13 +1488,15 @@ class BWGViewGalleryBox {
|
|
1482 |
}
|
1483 |
}
|
1484 |
/* Update custom scroll.*/
|
1485 |
-
|
1486 |
-
|
1487 |
-
|
1488 |
-
|
|
|
|
|
|
|
1489 |
}
|
1490 |
-
}
|
1491 |
-
}
|
1492 |
jQuery(".mCSB_scrollTools").hide();
|
1493 |
<?php
|
1494 |
if ($enable_image_filmstrip) {
|
@@ -1508,6 +1516,7 @@ class BWGViewGalleryBox {
|
|
1508 |
}
|
1509 |
else {
|
1510 |
bwg_afterload();
|
|
|
1511 |
}
|
1512 |
}
|
1513 |
}
|
@@ -1538,23 +1547,35 @@ class BWGViewGalleryBox {
|
|
1538 |
for (var i = key - count; i < key + count; i++) {
|
1539 |
var index = parseInt((i + count_all) % count_all);
|
1540 |
var is_embed = data[index]['filetype'].indexOf("EMBED_") > -1 ? true : false;
|
1541 |
-
|
|
|
|
|
|
|
|
|
1542 |
}
|
1543 |
}
|
1544 |
else {
|
1545 |
for (var i = 0; i < data.length; i++) {
|
1546 |
var is_embed = data[i]['filetype'].indexOf("EMBED_") > -1 ? true : false;
|
1547 |
-
|
|
|
|
|
|
|
|
|
1548 |
}
|
1549 |
}
|
1550 |
}
|
1551 |
function bwg_popup_resize() {
|
1552 |
-
if (typeof jQuery().fullscreen !== 'undefined'
|
1553 |
-
jQuery(
|
1554 |
-
|
1555 |
-
|
1556 |
-
|
1557 |
-
|
|
|
|
|
|
|
|
|
1558 |
}
|
1559 |
var comment_container_width = 0;
|
1560 |
if (jQuery(".bwg_comment_container").hasClass("bwg_open")) {
|
@@ -1570,7 +1591,7 @@ class BWGViewGalleryBox {
|
|
1570 |
else {
|
1571 |
jQuery(".spider_popup_close_fullscreen").show();
|
1572 |
}
|
1573 |
-
if (jQuery(window).height() > <?php echo $image_height; ?>
|
1574 |
jQuery("#spider_popup_wrap").css({
|
1575 |
height: <?php echo $image_height; ?>,
|
1576 |
top: '50%',
|
@@ -1604,7 +1625,7 @@ class BWGViewGalleryBox {
|
|
1604 |
bwg_resize_instagram_post();
|
1605 |
bwg_popup_current_height = jQuery(window).height();
|
1606 |
}
|
1607 |
-
if (jQuery(window).width() >= <?php echo $image_width; ?>
|
1608 |
jQuery("#spider_popup_wrap").css({
|
1609 |
width: <?php echo $image_width; ?>,
|
1610 |
left: '50%',
|
@@ -1644,18 +1665,22 @@ class BWGViewGalleryBox {
|
|
1644 |
}
|
1645 |
/* Set watermark container size.*/
|
1646 |
bwg_change_watermark_container();
|
1647 |
-
if (((jQuery(window).height() > <?php echo $image_height - 2 * $theme_row->lightbox_close_btn_top; ?>)
|
1648 |
jQuery(".spider_popup_close_fullscreen").attr("class", "spider_popup_close");
|
1649 |
}
|
1650 |
else {
|
1651 |
-
if ((jQuery("#spider_popup_wrap").width() < jQuery(window).width())
|
1652 |
jQuery(".spider_popup_close").attr("class", "bwg_ctrl_btn spider_popup_close_fullscreen");
|
1653 |
}
|
1654 |
}
|
1655 |
}
|
1656 |
jQuery(window).resize(function() {
|
1657 |
-
if (typeof jQuery().fullscreen !== 'undefined'
|
1658 |
-
|
|
|
|
|
|
|
|
|
1659 |
}
|
1660 |
});
|
1661 |
/* Popup current width/height.*/
|
@@ -1751,8 +1776,10 @@ class BWGViewGalleryBox {
|
|
1751 |
function bwg_reset_zoom() {
|
1752 |
var isMobile = (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));
|
1753 |
var viewportmeta = document.querySelector('meta[name="viewport"]');
|
1754 |
-
if (isMobile
|
1755 |
-
viewportmeta
|
|
|
|
|
1756 |
}
|
1757 |
}
|
1758 |
jQuery(document).ready(function () {
|
@@ -1766,17 +1793,21 @@ class BWGViewGalleryBox {
|
|
1766 |
<?php
|
1767 |
}
|
1768 |
?>
|
1769 |
-
if (typeof jQuery().swiperight !== 'undefined'
|
1770 |
-
jQuery(
|
1771 |
-
|
1772 |
-
|
1773 |
-
|
|
|
|
|
1774 |
}
|
1775 |
-
if (typeof jQuery().swipeleft !== 'undefined'
|
1776 |
-
jQuery(
|
1777 |
-
|
1778 |
-
|
1779 |
-
|
|
|
|
|
1780 |
}
|
1781 |
|
1782 |
bwg_reset_zoom();
|
@@ -1803,14 +1834,20 @@ class BWGViewGalleryBox {
|
|
1803 |
bwg_change_watermark_container();
|
1804 |
}, 500);
|
1805 |
/* If browser doesn't support Fullscreen API.*/
|
1806 |
-
if (typeof jQuery().fullscreen !== 'undefined'
|
1807 |
-
jQuery(
|
|
|
|
|
|
|
|
|
1808 |
}
|
1809 |
/* Set image container height.*/
|
1810 |
jQuery(".bwg_image_container").height(jQuery(".bwg_image_wrap").height() - <?php echo $image_filmstrip_height; ?>);
|
1811 |
/* Change default scrollbar in comments.*/
|
1812 |
-
if (typeof jQuery().mCustomScrollbar !== 'undefined'
|
1813 |
-
jQuery(
|
|
|
|
|
1814 |
}
|
1815 |
var mousewheelevt = (/Firefox/i.test(navigator.userAgent)) ? "DOMMouseScroll" : "mousewheel" /*FF doesn't recognize mousewheel as of FF3.x*/
|
1816 |
jQuery('.bwg_filmstrip').on(mousewheelevt, function(e) {
|
@@ -1960,8 +1997,10 @@ class BWGViewGalleryBox {
|
|
1960 |
duration: 500,
|
1961 |
complete: function () {
|
1962 |
bwg_change_watermark_container();
|
1963 |
-
if ((jQuery("#spider_popup_wrap").width() < jQuery(window).width())
|
1964 |
-
jQuery("
|
|
|
|
|
1965 |
}
|
1966 |
}
|
1967 |
});
|
@@ -1973,8 +2012,10 @@ class BWGViewGalleryBox {
|
|
1973 |
complete: function () {
|
1974 |
bwg_resize_instagram_post();
|
1975 |
bwg_change_watermark_container();
|
1976 |
-
if (
|
1977 |
-
jQuery("
|
|
|
|
|
1978 |
}
|
1979 |
}
|
1980 |
});
|
@@ -2032,11 +2073,6 @@ class BWGViewGalleryBox {
|
|
2032 |
if (jQuery(".bwg_comment_container").hasClass("bwg_open")) {
|
2033 |
comment_container_width = jQuery(".bwg_comment_container").width();
|
2034 |
}
|
2035 |
-
/*jQuery(document).on("fscreenchange", function () {
|
2036 |
-
if (typeof jQuery().fullscreen !== 'undefined' && jQuery.isFunction(jQuery().fullscreen) && jQuery.fullscreen.isFullScreen()) {
|
2037 |
-
bwg_exit_fullscreen();
|
2038 |
-
}
|
2039 |
-
});*/
|
2040 |
function bwg_exit_fullscreen() {
|
2041 |
if (jQuery(window).width() > <?php echo $image_width; ?>) {
|
2042 |
bwg_popup_current_width = <?php echo $image_width; ?>;
|
@@ -2087,12 +2123,15 @@ class BWGViewGalleryBox {
|
|
2087 |
jQuery(".bwg_resize-full").attr("title", "<?php echo __('Maximize', 'bwg'); ?>");
|
2088 |
jQuery(".bwg_fullscreen").attr("class", "bwg_ctrl_btn bwg_fullscreen fa fa-fullscreen");
|
2089 |
jQuery(".bwg_fullscreen").attr("title", "<?php echo __('Fullscreen', 'bwg'); ?>");
|
2090 |
-
if (
|
2091 |
-
jQuery("
|
|
|
|
|
2092 |
}
|
2093 |
});
|
2094 |
}
|
2095 |
-
if (typeof jQuery().fullscreen !== 'undefined'
|
|
|
2096 |
if (jQuery.fullscreen.isFullScreen()) {
|
2097 |
/* Exit Fullscreen.*/
|
2098 |
jQuery.fullscreen.exit();
|
@@ -2137,6 +2176,7 @@ class BWGViewGalleryBox {
|
|
2137 |
jQuery(".spider_popup_close").attr("class", "bwg_ctrl_btn spider_popup_close_fullscreen");
|
2138 |
/*});
|
2139 |
}*/
|
|
|
2140 |
}
|
2141 |
}
|
2142 |
return false;
|
1145 |
|
1146 |
bwg_trans_in_progress = false;
|
1147 |
jQuery(current_image_class).html('');
|
1148 |
+
if (typeof event_stack !== 'undefined') {
|
1149 |
+
if (event_stack.length > 0) {
|
1150 |
+
key = event_stack[0].split("-");
|
1151 |
+
event_stack.shift();
|
1152 |
+
bwg_change_image(key[0], key[1], data, true);
|
1153 |
+
}
|
1154 |
}
|
1155 |
bwg_change_watermark_container();
|
1156 |
}
|
1226 |
function bwg_gridlet(width, height, top, img_top, left, img_left, src, imgWidth, imgHeight, c, r) {
|
1227 |
var delay = (c + r) * count;
|
1228 |
/* Return a gridlet elem with styles for specific transition.*/
|
1229 |
+
return jQuery('<span class="bwg_gridlet" />').css({
|
1230 |
+
display : "block",
|
1231 |
width : width,
|
1232 |
height : height,
|
1233 |
top : top,
|
1245 |
/* Get the current slide's image.*/
|
1246 |
var cur_img = jQuery(current_image_class).find('img');
|
1247 |
/* Create a grid to hold the gridlets.*/
|
1248 |
+
var grid = jQuery('<span style="display: block;" />').addClass('bwg_grid');
|
1249 |
/* Prepend the grid to the next slide (i.e. so it's above the slide image).*/
|
1250 |
jQuery(current_image_class).prepend(grid);
|
1251 |
/* Vars to calculate positioning/size of gridlets.*/
|
1324 |
grid.remove();
|
1325 |
bwg_trans_in_progress = false;
|
1326 |
jQuery(current_image_class).html('');
|
1327 |
+
if (typeof event_stack !== 'undefined') {
|
1328 |
+
if (event_stack.length > 0) {
|
1329 |
+
key = event_stack[0].split("-");
|
1330 |
+
event_stack.shift();
|
1331 |
+
bwg_change_image(key[0], key[1], data, true);
|
1332 |
+
}
|
1333 |
}
|
1334 |
bwg_change_watermark_container();
|
1335 |
}
|
1366 |
jQuery(this)[0].contentWindow.postMessage('{ "method": "pause" }', "*");
|
1367 |
jQuery(this)[0].contentWindow.postMessage('pause', '*');
|
1368 |
});
|
1369 |
+
if (typeof data[key] != 'undefined') {
|
1370 |
+
if (typeof data[current_key] != 'undefined') {
|
1371 |
if (jQuery('.bwg_ctrl_btn').hasClass('fa-pause')) {
|
1372 |
bwg_play();
|
1373 |
}
|
1400 |
/* Change image id.*/
|
1401 |
jQuery("#bwg_popup_image").attr('image_id', data[key]["id"]);
|
1402 |
/* Change image title, description.*/
|
1403 |
+
jQuery(".bwg_image_title").html(jQuery('<span style="display: block;" />').html(data[key]["alt"]).text());
|
1404 |
+
jQuery(".bwg_image_description").html(jQuery('<span style="display: block;" />').html(data[key]["description"]).text());
|
|
|
|
|
|
|
|
|
1405 |
jQuery(".bwg_image_info").removeAttr("style");
|
1406 |
+
if (data[key]["alt"].trim() == "") {
|
1407 |
+
if (data[key]["description"].trim() == "") {
|
1408 |
+
jQuery(".bwg_image_info").css("background", "none");
|
1409 |
+
}
|
1410 |
+
}
|
1411 |
if (jQuery(".bwg_image_info_container1").css("display") != 'none') {
|
1412 |
jQuery(".bwg_image_info_container1").css("display", "table-cell");
|
1413 |
}
|
1423 |
var cur_width = jQuery(current_image_class).width();
|
1424 |
var innhtml = '<span class="bwg_popup_image_spun1" style="display: table; width: inherit; height: inherit;"><span class="bwg_popup_image_spun2" style="display: table-cell; vertical-align: middle; text-align: center;">';
|
1425 |
if (!is_embed) {
|
1426 |
+
innhtml += '<img style="max-height: ' + cur_height + 'px; max-width: ' + cur_width + 'px;" class="bwg_popup_image bwg_popup_watermark" src="<?php echo site_url() . '/' . $WD_BWG_UPLOAD_DIR; ?>' + jQuery('<span style="display: block;" />').html(data[key]["image_url"]).text() + '" alt="' + data[key]["alt"] + '" />';
|
1427 |
}
|
1428 |
else { /*is_embed*/
|
1429 |
|
1488 |
}
|
1489 |
}
|
1490 |
/* Update custom scroll.*/
|
1491 |
+
if (typeof jQuery().mCustomScrollbar !== 'undefined') {
|
1492 |
+
if (jQuery.isFunction(jQuery().mCustomScrollbar)) {
|
1493 |
+
jQuery(".bwg_comments").mCustomScrollbar({
|
1494 |
+
advanced:{
|
1495 |
+
updateOnContentResize: true
|
1496 |
+
}
|
1497 |
+
});
|
1498 |
}
|
1499 |
+
}
|
|
|
1500 |
jQuery(".mCSB_scrollTools").hide();
|
1501 |
<?php
|
1502 |
if ($enable_image_filmstrip) {
|
1516 |
}
|
1517 |
else {
|
1518 |
bwg_afterload();
|
1519 |
+
}
|
1520 |
}
|
1521 |
}
|
1522 |
}
|
1547 |
for (var i = key - count; i < key + count; i++) {
|
1548 |
var index = parseInt((i + count_all) % count_all);
|
1549 |
var is_embed = data[index]['filetype'].indexOf("EMBED_") > -1 ? true : false;
|
1550 |
+
if (typeof data[index] != "undefined") {
|
1551 |
+
if (!is_embed) {
|
1552 |
+
jQuery("<img/>").attr("src", '<?php echo site_url() . '/' . $WD_BWG_UPLOAD_DIR; ?>' + jQuery('<span style="display: block;" />').html(data[index]["image_url"]).text());
|
1553 |
+
}
|
1554 |
+
}
|
1555 |
}
|
1556 |
}
|
1557 |
else {
|
1558 |
for (var i = 0; i < data.length; i++) {
|
1559 |
var is_embed = data[i]['filetype'].indexOf("EMBED_") > -1 ? true : false;
|
1560 |
+
if (typeof data[index] != "undefined") {
|
1561 |
+
if (!is_embed) {
|
1562 |
+
jQuery("<img/>").attr("src", '<?php echo site_url() . '/' . $WD_BWG_UPLOAD_DIR; ?>' + jQuery('<span style="display: block;" />').html(data[i]["image_url"]).text());
|
1563 |
+
}
|
1564 |
+
}
|
1565 |
}
|
1566 |
}
|
1567 |
}
|
1568 |
function bwg_popup_resize() {
|
1569 |
+
if (typeof jQuery().fullscreen !== 'undefined') {
|
1570 |
+
if (jQuery.isFunction(jQuery().fullscreen)) {
|
1571 |
+
if (!jQuery.fullscreen.isFullScreen()) {
|
1572 |
+
jQuery(".bwg_resize-full").show();
|
1573 |
+
jQuery(".bwg_resize-full").attr("class", "bwg_ctrl_btn bwg_resize-full fa fa-resize-full");
|
1574 |
+
jQuery(".bwg_resize-full").attr("title", "<?php echo __('Maximize', 'bwg'); ?>");
|
1575 |
+
jQuery(".bwg_fullscreen").attr("class", "bwg_ctrl_btn bwg_fullscreen fa fa-fullscreen");
|
1576 |
+
jQuery(".bwg_fullscreen").attr("title", "<?php echo __('Fullscreen', 'bwg'); ?>");
|
1577 |
+
}
|
1578 |
+
}
|
1579 |
}
|
1580 |
var comment_container_width = 0;
|
1581 |
if (jQuery(".bwg_comment_container").hasClass("bwg_open")) {
|
1591 |
else {
|
1592 |
jQuery(".spider_popup_close_fullscreen").show();
|
1593 |
}
|
1594 |
+
if (!(!(jQuery(window).height() > <?php echo $image_height; ?>) || !(<?php echo $open_with_fullscreen; ?> != 1))) {
|
1595 |
jQuery("#spider_popup_wrap").css({
|
1596 |
height: <?php echo $image_height; ?>,
|
1597 |
top: '50%',
|
1625 |
bwg_resize_instagram_post();
|
1626 |
bwg_popup_current_height = jQuery(window).height();
|
1627 |
}
|
1628 |
+
if (!(!(jQuery(window).width() >= <?php echo $image_width; ?>) || !(<?php echo $open_with_fullscreen; ?> != 1))) {
|
1629 |
jQuery("#spider_popup_wrap").css({
|
1630 |
width: <?php echo $image_width; ?>,
|
1631 |
left: '50%',
|
1665 |
}
|
1666 |
/* Set watermark container size.*/
|
1667 |
bwg_change_watermark_container();
|
1668 |
+
if (!(!(jQuery(window).height() > <?php echo $image_height - 2 * $theme_row->lightbox_close_btn_top; ?>) || !(jQuery(window).width() >= <?php echo $image_width - 2 * $theme_row->lightbox_close_btn_right; ?>) || !(<?php echo $open_with_fullscreen; ?> != 1))) {
|
1669 |
jQuery(".spider_popup_close_fullscreen").attr("class", "spider_popup_close");
|
1670 |
}
|
1671 |
else {
|
1672 |
+
if (!(!(jQuery("#spider_popup_wrap").width() < jQuery(window).width()) || !(jQuery("#spider_popup_wrap").height() < jQuery(window).height()))) {
|
1673 |
jQuery(".spider_popup_close").attr("class", "bwg_ctrl_btn spider_popup_close_fullscreen");
|
1674 |
}
|
1675 |
}
|
1676 |
}
|
1677 |
jQuery(window).resize(function() {
|
1678 |
+
if (typeof jQuery().fullscreen !== 'undefined') {
|
1679 |
+
if (jQuery.isFunction(jQuery().fullscreen)) {
|
1680 |
+
if (!jQuery.fullscreen.isFullScreen()) {
|
1681 |
+
bwg_popup_resize();
|
1682 |
+
}
|
1683 |
+
}
|
1684 |
}
|
1685 |
});
|
1686 |
/* Popup current width/height.*/
|
1776 |
function bwg_reset_zoom() {
|
1777 |
var isMobile = (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));
|
1778 |
var viewportmeta = document.querySelector('meta[name="viewport"]');
|
1779 |
+
if (isMobile) {
|
1780 |
+
if (viewportmeta) {
|
1781 |
+
viewportmeta.content = 'width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=0';
|
1782 |
+
}
|
1783 |
}
|
1784 |
}
|
1785 |
jQuery(document).ready(function () {
|
1793 |
<?php
|
1794 |
}
|
1795 |
?>
|
1796 |
+
if (typeof jQuery().swiperight !== 'undefined') {
|
1797 |
+
if (jQuery.isFunction(jQuery().swiperight)) {
|
1798 |
+
jQuery('#spider_popup_wrap').swiperight(function () {
|
1799 |
+
bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), parseInt(jQuery('#bwg_current_image_key').val()) - 1, data)
|
1800 |
+
return false;
|
1801 |
+
});
|
1802 |
+
}
|
1803 |
}
|
1804 |
+
if (typeof jQuery().swipeleft !== 'undefined') {
|
1805 |
+
if (jQuery.isFunction(jQuery().swipeleft)) {
|
1806 |
+
jQuery('#spider_popup_wrap').swipeleft(function () {
|
1807 |
+
bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), parseInt(jQuery('#bwg_current_image_key').val()) + 1, data);
|
1808 |
+
return false;
|
1809 |
+
});
|
1810 |
+
}
|
1811 |
}
|
1812 |
|
1813 |
bwg_reset_zoom();
|
1834 |
bwg_change_watermark_container();
|
1835 |
}, 500);
|
1836 |
/* If browser doesn't support Fullscreen API.*/
|
1837 |
+
if (typeof jQuery().fullscreen !== 'undefined') {
|
1838 |
+
if (jQuery.isFunction(jQuery().fullscreen)) {
|
1839 |
+
if (!jQuery.fullscreen.isNativelySupported()) {
|
1840 |
+
jQuery(".bwg_fullscreen").hide();
|
1841 |
+
}
|
1842 |
+
}
|
1843 |
}
|
1844 |
/* Set image container height.*/
|
1845 |
jQuery(".bwg_image_container").height(jQuery(".bwg_image_wrap").height() - <?php echo $image_filmstrip_height; ?>);
|
1846 |
/* Change default scrollbar in comments.*/
|
1847 |
+
if (typeof jQuery().mCustomScrollbar !== 'undefined') {
|
1848 |
+
if (jQuery.isFunction(jQuery().mCustomScrollbar)) {
|
1849 |
+
jQuery(".bwg_comments").mCustomScrollbar({scrollInertia: 150});
|
1850 |
+
}
|
1851 |
}
|
1852 |
var mousewheelevt = (/Firefox/i.test(navigator.userAgent)) ? "DOMMouseScroll" : "mousewheel" /*FF doesn't recognize mousewheel as of FF3.x*/
|
1853 |
jQuery('.bwg_filmstrip').on(mousewheelevt, function(e) {
|
1997 |
duration: 500,
|
1998 |
complete: function () {
|
1999 |
bwg_change_watermark_container();
|
2000 |
+
if ((jQuery("#spider_popup_wrap").width() < jQuery(window).width())) {
|
2001 |
+
if (jQuery("#spider_popup_wrap").height() < jQuery(window).height()) {
|
2002 |
+
jQuery(".spider_popup_close_fullscreen").attr("class", "spider_popup_close");
|
2003 |
+
}
|
2004 |
}
|
2005 |
}
|
2006 |
});
|
2012 |
complete: function () {
|
2013 |
bwg_resize_instagram_post();
|
2014 |
bwg_change_watermark_container();
|
2015 |
+
if (jQuery("#spider_popup_wrap").width() < jQuery(window).width()) {
|
2016 |
+
if (jQuery("#spider_popup_wrap").height() < jQuery(window).height()) {
|
2017 |
+
jQuery(".spider_popup_close_fullscreen").attr("class", "spider_popup_close");
|
2018 |
+
}
|
2019 |
}
|
2020 |
}
|
2021 |
});
|
2073 |
if (jQuery(".bwg_comment_container").hasClass("bwg_open")) {
|
2074 |
comment_container_width = jQuery(".bwg_comment_container").width();
|
2075 |
}
|
|
|
|
|
|
|
|
|
|
|
2076 |
function bwg_exit_fullscreen() {
|
2077 |
if (jQuery(window).width() > <?php echo $image_width; ?>) {
|
2078 |
bwg_popup_current_width = <?php echo $image_width; ?>;
|
2123 |
jQuery(".bwg_resize-full").attr("title", "<?php echo __('Maximize', 'bwg'); ?>");
|
2124 |
jQuery(".bwg_fullscreen").attr("class", "bwg_ctrl_btn bwg_fullscreen fa fa-fullscreen");
|
2125 |
jQuery(".bwg_fullscreen").attr("title", "<?php echo __('Fullscreen', 'bwg'); ?>");
|
2126 |
+
if (jQuery("#spider_popup_wrap").width() < jQuery(window).width()) {
|
2127 |
+
if (jQuery("#spider_popup_wrap").height() < jQuery(window).height()) {
|
2128 |
+
jQuery(".spider_popup_close_fullscreen").attr("class", "spider_popup_close");
|
2129 |
+
}
|
2130 |
}
|
2131 |
});
|
2132 |
}
|
2133 |
+
if (typeof jQuery().fullscreen !== 'undefined') {
|
2134 |
+
if (jQuery.isFunction(jQuery().fullscreen)) {
|
2135 |
if (jQuery.fullscreen.isFullScreen()) {
|
2136 |
/* Exit Fullscreen.*/
|
2137 |
jQuery.fullscreen.exit();
|
2176 |
jQuery(".spider_popup_close").attr("class", "bwg_ctrl_btn spider_popup_close_fullscreen");
|
2177 |
/*});
|
2178 |
}*/
|
2179 |
+
}
|
2180 |
}
|
2181 |
}
|
2182 |
return false;
|
frontend/views/BWGViewImage_browser.php
CHANGED
@@ -463,7 +463,7 @@ class BWGViewImage_browser {
|
|
463 |
foreach ($image_rows as $image_row) {
|
464 |
$params_array['image_id'] = (isset($_POST['image_id']) ? esc_html($_POST['image_id']) : $image_row->id);
|
465 |
$is_embed = preg_match('/EMBED/',$image_row->filetype)==1 ? true :false;
|
466 |
-
$is_embed_16x9 = ((preg_match('/EMBED/',$image_row->filetype)==1 ? true :false) && (preg_match('/VIDEO/',$image_row->filetype)==1 ? true :false) && !(preg_match('/INSTAGRAM/',$image_row->filetype)==1 ? true :false));
|
467 |
$is_embed_instagram_post = preg_match('/INSTAGRAM_POST/',$image_row->filetype)==1 ? true :false;
|
468 |
?>
|
469 |
<div class="image_browser_image_buttons_conteiner_<?php echo $bwg; ?>">
|
@@ -522,74 +522,7 @@ class BWGViewImage_browser {
|
|
522 |
<?php
|
523 |
}
|
524 |
}
|
525 |
-
?>
|
526 |
-
<script>
|
527 |
-
jQuery(window).load(function() {
|
528 |
-
/*setTimeout(function() {*/
|
529 |
-
|
530 |
-
jQuery('#bwg_embed_frame_16x9_<?php echo $bwg; ?>').width(jQuery('#bwg_embed_frame_16x9_<?php echo $bwg; ?>').parent().width());
|
531 |
-
jQuery('#bwg_embed_frame_16x9_<?php echo $bwg; ?>').height(jQuery('#bwg_embed_frame_16x9_<?php echo $bwg; ?>').width() * 0.5625);
|
532 |
-
jQuery('#bwg_embed_frame_instapost_<?php echo $bwg; ?>').width(jQuery('#bwg_embed_frame_16x9_<?php echo $bwg; ?>').parent().width());
|
533 |
-
jQuery('#bwg_embed_frame_instapost_<?php echo $bwg; ?>').height(jQuery('#bwg_embed_frame_instapost_<?php echo $bwg; ?>').width() +88);
|
534 |
-
|
535 |
-
if (jQuery('.image_browser_images_<?php echo $bwg; ?>').width() <= 108) {
|
536 |
-
jQuery('.paging-input_<?php echo $bwg; ?>').css('display', 'none');
|
537 |
-
}
|
538 |
-
if (jQuery('.image_browser_images_<?php echo $bwg; ?>').width() <= 200 && jQuery('.image_browser_images_<?php echo $bwg; ?>').width() > 108) {
|
539 |
-
jQuery('.paging-input_<?php echo $bwg; ?>').css('display', 'inline');
|
540 |
-
jQuery('.paging-input_<?php echo $bwg; ?>').css('margin', '0% 3% 0% 3%');
|
541 |
-
jQuery('.tablenav-pages_<?php echo $bwg; ?> .next-page').css('margin', '0% 0% 0% 0%');
|
542 |
-
jQuery('.tablenav-pages_<?php echo $bwg; ?> .prev-page').css('margin', '0% 0% 0% 0%');
|
543 |
-
}
|
544 |
-
else {
|
545 |
-
if (jQuery('.image_browser_images_<?php echo $bwg; ?>').width() > 200 && jQuery('.image_browser_images_<?php echo $bwg; ?>').width() <= 580) {
|
546 |
-
jQuery('.paging-input_<?php echo $bwg; ?>').css('display', 'inline');
|
547 |
-
jQuery('.tablenav-pages_<?php echo $bwg; ?> a').css('font-size', '13px');
|
548 |
-
jQuery('.paging-input_<?php echo $bwg; ?>').css('margin', '0% 10% 0% 10%');
|
549 |
-
jQuery('.tablenav-pages_<?php echo $bwg; ?> .next-page').css('margin', '0% 3% 0% 0%');
|
550 |
-
jQuery('.tablenav-pages_<?php echo $bwg; ?> .prev-page').css('margin', '0% 0% 0% 3%');
|
551 |
-
}
|
552 |
-
if (jQuery('.image_browser_images_<?php echo $bwg; ?>').width() > 580) {
|
553 |
-
jQuery('.tablenav-pages_<?php echo $bwg; ?> a').css('font-size', '15px');
|
554 |
-
jQuery('.paging-input_<?php echo $bwg; ?>').css('margin', '0% 17% 0% 17%');
|
555 |
-
jQuery('.paging-input_<?php echo $bwg; ?>').css('display', 'inline');
|
556 |
-
jQuery('.tablenav-pages_<?php echo $bwg; ?> .next-page').css('margin', '0% 4% 0% 0%');
|
557 |
-
jQuery('.tablenav-pages_<?php echo $bwg; ?> .prev-page').css('margin', '0% 0% 0% 4%');
|
558 |
-
}
|
559 |
-
}
|
560 |
-
}/*, 3*/);
|
561 |
-
jQuery(window).resize(function() {
|
562 |
-
|
563 |
-
jQuery('#bwg_embed_frame_16x9_<?php echo $bwg; ?>').height(jQuery('#bwg_embed_frame_16x9_<?php echo $bwg; ?>').width() * 0.5625);
|
564 |
-
jQuery('#bwg_embed_frame_instapost_<?php echo $bwg; ?>').height(jQuery('#bwg_embed_frame_instapost_<?php echo $bwg; ?>').width() +88);
|
565 |
-
|
566 |
-
if (jQuery('.image_browser_images_<?php echo $bwg; ?>').width() <= 108) {
|
567 |
-
jQuery('.paging-input_<?php echo $bwg; ?>').css('display', 'none');
|
568 |
-
}
|
569 |
-
if (jQuery('.image_browser_images_<?php echo $bwg; ?>').width() <= 200 && jQuery('.image_browser_images_<?php echo $bwg; ?>').width() > 108) {
|
570 |
-
jQuery('.paging-input_<?php echo $bwg; ?>').css('margin', '0% 2% 0% 2%');
|
571 |
-
jQuery('.paging-input_<?php echo $bwg; ?>').css('display', 'inline');
|
572 |
-
jQuery('.tablenav-pages_<?php echo $bwg; ?> .next-page').css('margin', '0% 0% 0% 0%');
|
573 |
-
jQuery('.tablenav-pages_<?php echo $bwg; ?> .prev-page').css('margin', '0% 0% 0% 0%');
|
574 |
-
}
|
575 |
-
else {
|
576 |
-
if (jQuery('.image_browser_images_<?php echo $bwg; ?>').width() > 200 && jQuery('.image_browser_images_<?php echo $bwg; ?>').width() <= 580) {
|
577 |
-
jQuery('.tablenav-pages_<?php echo $bwg; ?> a').css('font-size', '13px');
|
578 |
-
jQuery('.paging-input_<?php echo $bwg; ?>').css('margin', '0% 10% 0% 10%');
|
579 |
-
jQuery('.tablenav-pages_<?php echo $bwg; ?> .next-page').css('margin', '0% 3% 0% 0%');
|
580 |
-
jQuery('.tablenav-pages_<?php echo $bwg; ?> .prev-page').css('margin', '0% 0% 0% 3%');
|
581 |
-
jQuery('.paging-input_<?php echo $bwg; ?>').css('display', 'inline');
|
582 |
-
}
|
583 |
-
else if (jQuery('.image_browser_images_<?php echo $bwg; ?>').width() > 580) {
|
584 |
-
jQuery('.tablenav-pages_<?php echo $bwg; ?> a').css('font-size', '15px');
|
585 |
-
jQuery('.paging-input_<?php echo $bwg; ?>').css('margin', '0% 17% 0% 17%');
|
586 |
-
jQuery('.tablenav-pages_<?php echo $bwg; ?> .next-page').css('margin', '0% 4% 0% 0%');
|
587 |
-
jQuery('.tablenav-pages_<?php echo $bwg; ?> .prev-page').css('margin', '0% 0% 0% 4%');
|
588 |
-
jQuery('.paging-input_<?php echo $bwg; ?>').css('display', 'inline');
|
589 |
-
}
|
590 |
-
}
|
591 |
-
});
|
592 |
-
</script>
|
593 |
</div>
|
594 |
<?php
|
595 |
if ($enable_image_description && ($image_row->description != "")) {
|
@@ -599,7 +532,7 @@ class BWGViewImage_browser {
|
|
599 |
<?php echo html_entity_decode($image_row->description); ?>
|
600 |
</div>
|
601 |
</div>
|
602 |
-
|
603 |
}
|
604 |
?>
|
605 |
</div>
|
@@ -618,6 +551,37 @@ class BWGViewImage_browser {
|
|
618 |
</div>
|
619 |
</div>
|
620 |
<script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
621 |
jQuery(window).load(function () {
|
622 |
<?php
|
623 |
if ($image_right_click) {
|
@@ -629,6 +593,10 @@ class BWGViewImage_browser {
|
|
629 |
<?php
|
630 |
}
|
631 |
?>
|
|
|
|
|
|
|
|
|
632 |
});
|
633 |
function bwg_gallery_box_<?php echo $bwg; ?>(image_id) {
|
634 |
spider_createpopup('<?php echo addslashes(add_query_arg($params_array, admin_url('admin-ajax.php'))); ?>&image_id=' + image_id, '<?php echo $bwg; ?>', '<?php echo $params['popup_width']; ?>', '<?php echo $params['popup_height']; ?>', 1, 'testpopup', 5);
|
463 |
foreach ($image_rows as $image_row) {
|
464 |
$params_array['image_id'] = (isset($_POST['image_id']) ? esc_html($_POST['image_id']) : $image_row->id);
|
465 |
$is_embed = preg_match('/EMBED/',$image_row->filetype)==1 ? true :false;
|
466 |
+
$is_embed_16x9 = ((preg_match('/EMBED/',$image_row->filetype)==1 ? true : false) && (preg_match('/VIDEO/',$image_row->filetype)==1 ? true : false) && !(preg_match('/INSTAGRAM/',$image_row->filetype)==1 ? true :false));
|
467 |
$is_embed_instagram_post = preg_match('/INSTAGRAM_POST/',$image_row->filetype)==1 ? true :false;
|
468 |
?>
|
469 |
<div class="image_browser_image_buttons_conteiner_<?php echo $bwg; ?>">
|
522 |
<?php
|
523 |
}
|
524 |
}
|
525 |
+
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
526 |
</div>
|
527 |
<?php
|
528 |
if ($enable_image_description && ($image_row->description != "")) {
|
532 |
<?php echo html_entity_decode($image_row->description); ?>
|
533 |
</div>
|
534 |
</div>
|
535 |
+
<?php
|
536 |
}
|
537 |
?>
|
538 |
</div>
|
551 |
</div>
|
552 |
</div>
|
553 |
<script>
|
554 |
+
function bwg_image_browser_<?php echo $bwg; ?>() {
|
555 |
+
jQuery('#bwg_embed_frame_16x9_<?php echo $bwg; ?>').width(jQuery('#bwg_embed_frame_16x9_<?php echo $bwg; ?>').parent().width());
|
556 |
+
jQuery('#bwg_embed_frame_16x9_<?php echo $bwg; ?>').height(jQuery('#bwg_embed_frame_16x9_<?php echo $bwg; ?>').width() * 0.5625);
|
557 |
+
jQuery('#bwg_embed_frame_instapost_<?php echo $bwg; ?>').width(jQuery('#bwg_embed_frame_16x9_<?php echo $bwg; ?>').parent().width());
|
558 |
+
jQuery('#bwg_embed_frame_instapost_<?php echo $bwg; ?>').height(jQuery('#bwg_embed_frame_instapost_<?php echo $bwg; ?>').width() +88);
|
559 |
+
|
560 |
+
var bwg_image_browser_width = jQuery('.image_browser_images_<?php echo $bwg; ?>').width();
|
561 |
+
if (bwg_image_browser_width <= 108) {
|
562 |
+
jQuery('.paging-input_<?php echo $bwg; ?>').css('display', 'none');
|
563 |
+
}
|
564 |
+
else if (bwg_image_browser_width <= 200) {
|
565 |
+
jQuery('.paging-input_<?php echo $bwg; ?>').css('margin', '0% 3% 0% 3%');
|
566 |
+
jQuery('.paging-input_<?php echo $bwg; ?>').css('display', 'inline');
|
567 |
+
jQuery('.tablenav-pages_<?php echo $bwg; ?> .next-page').css('margin', '0% 0% 0% 0%');
|
568 |
+
jQuery('.tablenav-pages_<?php echo $bwg; ?> .prev-page').css('margin', '0% 0% 0% 0%');
|
569 |
+
}
|
570 |
+
else if (bwg_image_browser_width <= 580) {
|
571 |
+
jQuery('.paging-input_<?php echo $bwg; ?>').css('display', 'inline');
|
572 |
+
jQuery('.tablenav-pages_<?php echo $bwg; ?> a').css('font-size', '13px');
|
573 |
+
jQuery('.paging-input_<?php echo $bwg; ?>').css('margin', '0% 10% 0% 10%');
|
574 |
+
jQuery('.tablenav-pages_<?php echo $bwg; ?> .next-page').css('margin', '0% 3% 0% 0%');
|
575 |
+
jQuery('.tablenav-pages_<?php echo $bwg; ?> .prev-page').css('margin', '0% 0% 0% 3%');
|
576 |
+
}
|
577 |
+
else {
|
578 |
+
jQuery('.tablenav-pages_<?php echo $bwg; ?> a').css('font-size', '15px');
|
579 |
+
jQuery('.paging-input_<?php echo $bwg; ?>').css('margin', '0% 17% 0% 17%');
|
580 |
+
jQuery('.paging-input_<?php echo $bwg; ?>').css('display', 'inline');
|
581 |
+
jQuery('.tablenav-pages_<?php echo $bwg; ?> .next-page').css('margin', '0% 4% 0% 0%');
|
582 |
+
jQuery('.tablenav-pages_<?php echo $bwg; ?> .prev-page').css('margin', '0% 0% 0% 4%');
|
583 |
+
}
|
584 |
+
}
|
585 |
jQuery(window).load(function () {
|
586 |
<?php
|
587 |
if ($image_right_click) {
|
593 |
<?php
|
594 |
}
|
595 |
?>
|
596 |
+
bwg_image_browser_<?php echo $bwg; ?>();
|
597 |
+
});
|
598 |
+
jQuery(window).resize(function() {
|
599 |
+
bwg_image_browser_<?php echo $bwg; ?>();
|
600 |
});
|
601 |
function bwg_gallery_box_<?php echo $bwg; ?>(image_id) {
|
602 |
spider_createpopup('<?php echo addslashes(add_query_arg($params_array, admin_url('admin-ajax.php'))); ?>&image_id=' + image_id, '<?php echo $bwg; ?>', '<?php echo $params['popup_width']; ?>', '<?php echo $params['popup_height']; ?>', 1, 'testpopup', 5);
|
frontend/views/BWGViewSlideshow.php
CHANGED
@@ -1083,7 +1083,8 @@ class BWGViewSlideshow {
|
|
1083 |
function bwg_gridlet(width, height, top, img_top, left, img_left, src, imgWidth, imgHeight, c, r) {
|
1084 |
var delay = (c + r) * count;
|
1085 |
/* Return a gridlet elem with styles for specific transition.*/
|
1086 |
-
return jQuery('<
|
|
|
1087 |
width : width,
|
1088 |
height : height,
|
1089 |
top : top,
|
@@ -1101,7 +1102,7 @@ class BWGViewSlideshow {
|
|
1101 |
/* Get the current slide's image.*/
|
1102 |
var cur_img = jQuery(current_image_class).find('img');
|
1103 |
/* Create a grid to hold the gridlets.*/
|
1104 |
-
var grid = jQuery('<
|
1105 |
/* Prepend the grid to the next slide (i.e. so it's above the slide image).*/
|
1106 |
jQuery(current_image_class).prepend(grid);
|
1107 |
/* vars to calculate positioning/size of gridlets*/
|
@@ -1255,8 +1256,8 @@ class BWGViewSlideshow {
|
|
1255 |
bwg_current_key_<?php echo $bwg; ?> = key;
|
1256 |
/* Change image id, title, description.*/
|
1257 |
jQuery("#bwg_slideshow_image_<?php echo $bwg; ?>").attr('image_id', data_<?php echo $bwg; ?>[key]["id"]);
|
1258 |
-
jQuery(".bwg_slideshow_title_text_<?php echo $bwg; ?>").html(jQuery('<
|
1259 |
-
jQuery(".bwg_slideshow_description_text_<?php echo $bwg; ?>").html(jQuery('<
|
1260 |
var current_image_class = "#image_id_<?php echo $bwg; ?>_" + data_<?php echo $bwg; ?>[current_key]["id"];
|
1261 |
var next_image_class = "#image_id_<?php echo $bwg; ?>_" + data_<?php echo $bwg; ?>[key]["id"];
|
1262 |
bwg_<?php echo $slideshow_effect; ?>_<?php echo $bwg; ?>(current_image_class, next_image_class, direction);
|
1083 |
function bwg_gridlet(width, height, top, img_top, left, img_left, src, imgWidth, imgHeight, c, r) {
|
1084 |
var delay = (c + r) * count;
|
1085 |
/* Return a gridlet elem with styles for specific transition.*/
|
1086 |
+
return jQuery('<span class="bwg_gridlet_<?php echo $bwg; ?>" />').css({
|
1087 |
+
display : "block",
|
1088 |
width : width,
|
1089 |
height : height,
|
1090 |
top : top,
|
1102 |
/* Get the current slide's image.*/
|
1103 |
var cur_img = jQuery(current_image_class).find('img');
|
1104 |
/* Create a grid to hold the gridlets.*/
|
1105 |
+
var grid = jQuery('<span style="display: block;" />').addClass('bwg_grid_<?php echo $bwg; ?>');
|
1106 |
/* Prepend the grid to the next slide (i.e. so it's above the slide image).*/
|
1107 |
jQuery(current_image_class).prepend(grid);
|
1108 |
/* vars to calculate positioning/size of gridlets*/
|
1256 |
bwg_current_key_<?php echo $bwg; ?> = key;
|
1257 |
/* Change image id, title, description.*/
|
1258 |
jQuery("#bwg_slideshow_image_<?php echo $bwg; ?>").attr('image_id', data_<?php echo $bwg; ?>[key]["id"]);
|
1259 |
+
jQuery(".bwg_slideshow_title_text_<?php echo $bwg; ?>").html(jQuery('<span style="display: block;" />').html(data_<?php echo $bwg; ?>[key]["alt"]).text());
|
1260 |
+
jQuery(".bwg_slideshow_description_text_<?php echo $bwg; ?>").html(jQuery('<span style="display: block;" />').html(data_<?php echo $bwg; ?>[key]["description"]).text());
|
1261 |
var current_image_class = "#image_id_<?php echo $bwg; ?>_" + data_<?php echo $bwg; ?>[current_key]["id"];
|
1262 |
var next_image_class = "#image_id_<?php echo $bwg; ?>_" + data_<?php echo $bwg; ?>[key]["id"];
|
1263 |
bwg_<?php echo $slideshow_effect; ?>_<?php echo $bwg; ?>(current_image_class, next_image_class, direction);
|
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
|
@@ -2306,7 +2306,7 @@ function bwg_activate() {
|
|
2306 |
));
|
2307 |
}
|
2308 |
$version = get_option("wd_bwg_version");
|
2309 |
-
$new_version = '1.2.
|
2310 |
if ($version && version_compare($version, $new_version, '<')) {
|
2311 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
2312 |
bwg_update($version);
|
@@ -2354,7 +2354,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
|
|
2354 |
|
2355 |
function bwg_update_hook() {
|
2356 |
$version = get_option("wd_bwg_version");
|
2357 |
-
$new_version = '1.2.
|
2358 |
if ($version && version_compare($version, $new_version, '<')) {
|
2359 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
2360 |
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.50
|
8 |
* Author: WebDorado
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
2306 |
));
|
2307 |
}
|
2308 |
$version = get_option("wd_bwg_version");
|
2309 |
+
$new_version = '1.2.50';
|
2310 |
if ($version && version_compare($version, $new_version, '<')) {
|
2311 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
2312 |
bwg_update($version);
|
2354 |
|
2355 |
function bwg_update_hook() {
|
2356 |
$version = get_option("wd_bwg_version");
|
2357 |
+
$new_version = '1.2.50';
|
2358 |
if ($version && version_compare($version, $new_version, '<')) {
|
2359 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
2360 |
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, fotogalerie, galleria, galerie, galeri, 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, mosaic
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.2
|
7 |
-
Stable tag: 1.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -207,6 +207,9 @@ Yes, it is possible to add advertising and/or watermark over the images. In both
|
|
207 |
|
208 |
== Changelog ==
|
209 |
|
|
|
|
|
|
|
210 |
= 1.2.49 =
|
211 |
* Added: Call photo gallery by php function.
|
212 |
|
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, 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, mosaic
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.2
|
7 |
+
Stable tag: 1.2.50
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
207 |
|
208 |
== Changelog ==
|
209 |
|
210 |
+
= 1.2.50 =
|
211 |
+
Fixed: JavaScript conflict with some themes.
|
212 |
+
|
213 |
= 1.2.49 =
|
214 |
* Added: Call photo gallery by php function.
|
215 |
|