Version Description
- Fixed: Shortcode pop-up style.
Download this release
Release Info
Developer | webdorado |
Plugin | Photo Gallery by WD – Responsive Photo Gallery |
Version | 1.3.46 |
Comparing to | |
See all releases |
Code changes from version 1.3.45 to 1.3.46
- admin/views/BWGViewBWGShortcode.php +97 -53
- css/bwg_tables.css +1 -0
- filemanager/css/default_view_thumbs.css +1 -1
- js/bwg_editor_button.js +2 -1
- photo-gallery.php +3 -3
- readme.txt +4 -1
admin/views/BWGViewBWGShortcode.php
CHANGED
@@ -79,9 +79,6 @@ class BWGViewBWGShortcode {
|
|
79 |
<head>
|
80 |
<title><?php _e("Photo Gallery", 'bwg_back'); ?></title>
|
81 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
82 |
-
<script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script>
|
83 |
-
<script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/utils/mctabs.js"></script>
|
84 |
-
<script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/utils/form_utils.js"></script>
|
85 |
<?php
|
86 |
wp_print_scripts('jquery');
|
87 |
bwg_register_admin_scripts();
|
@@ -102,10 +99,60 @@ class BWGViewBWGShortcode {
|
|
102 |
if (!$from_menu) {
|
103 |
wp_print_styles('forms');
|
104 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
<base target="_self">
|
106 |
</head>
|
107 |
-
<body id="
|
108 |
-
<?php if (isset($_POST['tagtext'])) { echo '<script>
|
109 |
<form method="post" action="#" id="bwg_shortcode_form">
|
110 |
<?php wp_nonce_field( 'BWGShortcode', 'bwg_nonce' ); ?>
|
111 |
<div class="panel_wrapper">
|
@@ -156,7 +203,7 @@ class BWGViewBWGShortcode {
|
|
156 |
<span title="<?php _e("This view is available only in Paid version.", 'bwg_back'); ?><a class='wd-btn wd-btn-primary-blue wd-not-image' href='http://wpdemo.web-dorado.com/blog-style-view/' target='_blank'>Demo View</a>" class="gallery_type">
|
157 |
<div class="gallery_type_div"><input disabled="disabled" type="radio" class="gallery_type_radio" id="blog_style" name="gallery_type" value="blog_style" /><label class="spider_free_version_label gallery_type_label" for="blog_style"><?php _e("Blog Style", 'bwg_back'); ?></label></div>
|
158 |
<label><img style="opacity:0.5; filter: Alpha(opacity=50);" disabled="disabled" src="<?php echo WD_BWG_URL . '/images/blog_style.jpg'; ?>" /></label>
|
159 |
-
</span>
|
160 |
<span title="<?php _e("This view is available only in Paid version.", 'bwg_back'); ?><a class='wd-btn wd-btn-primary-blue wd-not-image' href='http://wpdemo.web-dorado.com/gallery-carousel/' target='_blank'>Demo View</a>" class="gallery_type">
|
161 |
<div class="gallery_type_div"><input disabled="disabled" type="radio" class="gallery_type_radio" id="carousel" name="gallery_type" value="carousel" /><label class="spider_free_version_label gallery_type_label" for="carousel"><?php _e("Carousel", 'bwg_back'); ?></label></div>
|
162 |
<div><label for="carousel"><img style="opacity:0.5; filter: Alpha(opacity=50);" disabled="disabled" src="<?php echo WD_BWG_URL . '/images/Carousel.png'; ?>" /></label></div>
|
@@ -188,7 +235,7 @@ class BWGViewBWGShortcode {
|
|
188 |
<a id="bwg_advertisement" class="wd-btn wd-btn-primary wd-not-image">
|
189 |
<div class="bwg_tab_label">
|
190 |
<?php _e('Advertisement', 'bwg_back'); ?>
|
191 |
-
|
192 |
</div>
|
193 |
</a>
|
194 |
</div>
|
@@ -354,7 +401,7 @@ class BWGViewBWGShortcode {
|
|
354 |
<tr id="tr_slideshow_width_height">
|
355 |
<td title="<?php _e("Maximum values for slideshow width and height.", 'bwg_back'); ?>" class="spider_label"><label for="slideshow_width"><?php _e("Slideshow dimensions:", 'bwg_back'); ?> </label></td>
|
356 |
<td>
|
357 |
-
<input type="text" name="slideshow_width" id="slideshow_width" value="<?php echo $wd_bwg_options->slideshow_width; ?>" class="spider_int_input" /> x
|
358 |
<input type="text" name="slideshow_height" id="slideshow_height" value="<?php echo $wd_bwg_options->slideshow_height; ?>" class="spider_int_input" /> px
|
359 |
</td>
|
360 |
</tr>
|
@@ -394,8 +441,8 @@ class BWGViewBWGShortcode {
|
|
394 |
jQuery('#thumb_width').hide();
|
395 |
jQuery('#thumb_height').show();
|
396 |
jQuery('#thumb_width_height_separator').hide();" <?php echo ($wd_bwg_options->mosaic == 'horizontal') ? 'checked' : ''; ?> /><label for="mosaic_hor"><?php _e("Horizontal", 'bwg_back'); ?></label>
|
397 |
-
|
398 |
-
|
399 |
</td>
|
400 |
</tr>
|
401 |
<tr id="tr_resizable_mosaic">
|
@@ -439,7 +486,7 @@ class BWGViewBWGShortcode {
|
|
439 |
<tr id="tr_load_more_image_count">
|
440 |
<td class="spider_label"><label for="load_more_image_count"><?php _e("Images per load:", 'bwg_back'); ?> </label></td>
|
441 |
<td><input type="text" name="load_more_image_count" id="load_more_image_count" value="<?php echo $wd_bwg_options->images_per_page; ?>" class="spider_int_input" /></td>
|
442 |
-
</tr>
|
443 |
<tr id="tr_thumb_width_height">
|
444 |
<td title="<?php _e('Maximum values for thumbnail dimension.', 'bwg_back'); ?>" class="spider_label"><label id="thumb_width_height_label" for="thumb_width"><?php _e("Image Thumbnail dimensions:", 'bwg_back'); ?> </label></td>
|
445 |
<td>
|
@@ -468,7 +515,7 @@ class BWGViewBWGShortcode {
|
|
468 |
<tr id="tr_compuct_album_thumb_width_height">
|
469 |
<td title="<?php _e("Maximum values for album thumb width and height.", 'bwg_back'); ?>" class="spider_label"><label for="compuct_album_thumb_width"><?php _e("Album Thumbnail dimensions:", 'bwg_back'); ?> </label></td>
|
470 |
<td>
|
471 |
-
<input type="text" name="compuct_album_thumb_width" id="compuct_album_thumb_width" value="<?php echo $wd_bwg_options->album_thumb_width; ?>" class="spider_int_input" /> x
|
472 |
<input type="text" name="compuct_album_thumb_height" id="compuct_album_thumb_height" value="<?php echo $wd_bwg_options->album_thumb_height; ?>" class="spider_int_input" /> px
|
473 |
</td>
|
474 |
</tr>
|
@@ -493,8 +540,8 @@ class BWGViewBWGShortcode {
|
|
493 |
jQuery('#compuct_album_image_thumb_width').hide();
|
494 |
jQuery('#compuct_album_image_thumb_height').show();
|
495 |
jQuery('#compuct_album_image_thumb_dimensions_x').hide();" <?php echo ($wd_bwg_options->mosaic == 'horizontal') ? 'checked' : ''; ?> /><label for="compuct_album_mosaic_hor"><?php _e("Horizontal", 'bwg_back'); ?></label>
|
496 |
-
|
497 |
-
|
498 |
</td>
|
499 |
</tr>
|
500 |
<tr id="tr_compuct_album_resizable_mosaic">
|
@@ -536,7 +583,7 @@ class BWGViewBWGShortcode {
|
|
536 |
<td class="spider_label"><label><?php _e("Enable pagination:", 'bwg_back'); ?> </label></td>
|
537 |
<td>
|
538 |
<input type="radio" name="compuct_album_enable_page" class="hide_load_count" id="compuct_album_page_yes" value="1" <?php echo ($wd_bwg_options->album_enable_page == '1') ? 'checked' : ''; ?> onchange="bwg_loadmore()"/><label for="compuct_album_page_yes"><?php _e('Yes', 'bwg_back'); ?></label>
|
539 |
-
<input type="radio" name="compuct_album_enable_page" class="hide_load_count" id="compuct_album_page_no" value="0" <?php echo ($wd_bwg_options->album_enable_page == '0') ? 'checked' : ''; ?> onchange="bwg_loadmore()" /><label for="compuct_album_page_no"><?php _e('No', 'bwg_back'); ?></label>
|
540 |
<input type="radio" name="compuct_album_enable_page" id="compuct_album_page_loadmore" value="2" <?php echo ($wd_bwg_options->album_enable_page == '2') ? 'checked' : ''; ?> onchange="bwg_loadmore()" /><label for="compuct_album_page_loadmore"><?php _e("Load More", 'bwg_back'); ?></label>
|
541 |
<input type="radio" name="compuct_album_enable_page" id="compuct_album_page_scrol_load" value="3" <?php echo ($wd_bwg_options->album_enable_page == '3') ? 'checked' : ''; ?> onchange="bwg_loadmore()" /><label for="compuct_album_page_scrol_load"><?php _e("Scroll Load", 'bwg_back'); ?></label>
|
542 |
</td>
|
@@ -569,7 +616,7 @@ class BWGViewBWGShortcode {
|
|
569 |
<tr id="tr_extended_album_thumb_width_height">
|
570 |
<td title="<?php _e("Maximum values for album thumb width and height.", 'bwg_back'); ?>" class="spider_label"><label for="extended_album_thumb_width"><?php _e("Album thumbnail dimensions:", 'bwg_back'); ?> </label></td>
|
571 |
<td>
|
572 |
-
<input type="text" name="extended_album_thumb_width" id="extended_album_thumb_width" value="<?php echo $wd_bwg_options->album_thumb_width; ?>" class="spider_int_input" /> x
|
573 |
<input type="text" name="extended_album_thumb_height" id="extended_album_thumb_height" value="<?php echo $wd_bwg_options->album_thumb_height; ?>" class="spider_int_input" /> px
|
574 |
</td>
|
575 |
</tr>
|
@@ -594,8 +641,8 @@ class BWGViewBWGShortcode {
|
|
594 |
jQuery('#extended_album_image_thumb_width').hide();
|
595 |
jQuery('#extended_album_image_thumb_height').show();
|
596 |
jQuery('#extended_album_image_thumb_dimensions_x').hide();" <?php echo ($wd_bwg_options->mosaic == 'horizontal') ? 'checked' : ''; ?> /><label for="extended_album_mosaic_hor"><?php _e("Horizontal", 'bwg_back'); ?></label>
|
597 |
-
|
598 |
-
|
599 |
</td>
|
600 |
</tr>
|
601 |
<tr id="tr_extended_album_resizable_mosaic">
|
@@ -860,11 +907,11 @@ class BWGViewBWGShortcode {
|
|
860 |
<input type="radio" name="popup_fullscreen" id="popup_fullscreen_1" value="1" <?php if ($wd_bwg_options->popup_fullscreen) echo 'checked="checked"'; ?> onchange="bwg_popup_fullscreen()" /><label for="popup_fullscreen_1"><?php _e('Yes', 'bwg_back'); ?></label>
|
861 |
<input type="radio" name="popup_fullscreen" id="popup_fullscreen_0" value="0" <?php if (!$wd_bwg_options->popup_fullscreen) echo 'checked="checked"'; ?> onchange="bwg_popup_fullscreen()" /><label for="popup_fullscreen_0"><?php _e('No', 'bwg_back'); ?></label>
|
862 |
</td>
|
863 |
-
</tr>
|
864 |
<tr id="tr_popup_width_height">
|
865 |
<td title="<?php _e("Maximum values for lightbox width and height.", 'bwg_back'); ?>" class="spider_label"><label for="popup_width"><?php _e("Lightbox dimensions:", 'bwg_back'); ?> </label></td>
|
866 |
<td>
|
867 |
-
<input type="text" name="popup_width" id="popup_width" value="<?php echo $wd_bwg_options->popup_width; ?>" class="spider_int_input" /> x
|
868 |
<input type="text" name="popup_height" id="popup_height" value="<?php echo $wd_bwg_options->popup_height; ?>" class="spider_int_input" /> px
|
869 |
</td>
|
870 |
</tr>
|
@@ -1007,8 +1054,8 @@ class BWGViewBWGShortcode {
|
|
1007 |
<input disabled="disabled" type="radio" name="popup_enable_tumblr" id="popup_tumblr_no" value="0" <?php echo ($wd_bwg_options->popup_enable_tumblr) ? '' : 'checked'; ?> /><label for="popup_tumblr_no"><?php _e('No', 'bwg_back'); ?></label>
|
1008 |
</td>
|
1009 |
</tr>
|
1010 |
-
</tbody>
|
1011 |
-
</table>
|
1012 |
</div>
|
1013 |
</div>
|
1014 |
</div>
|
@@ -1043,7 +1090,7 @@ class BWGViewBWGShortcode {
|
|
1043 |
<tr id="tr_watermark_width_height">
|
1044 |
<td title="<?php _e("Maximum values for watermark image width and height.", 'bwg_back'); ?>" class="spider_label"><label for="watermark_width"><?php _e("Advertisement dimensions:", 'bwg_back'); ?> </label></td>
|
1045 |
<td>
|
1046 |
-
<input type="text" name="watermark_width" id="watermark_width" value="<?php echo $wd_bwg_options->watermark_width; ?>" class="spider_int_input" /> x
|
1047 |
<input type="text" name="watermark_height" id="watermark_height" value="<?php echo $wd_bwg_options->watermark_height; ?>" class="spider_int_input" /> px
|
1048 |
</td>
|
1049 |
</tr>
|
@@ -1125,11 +1172,7 @@ class BWGViewBWGShortcode {
|
|
1125 |
</div>
|
1126 |
</div>
|
1127 |
<div class="mceActionPanel">
|
1128 |
-
<div style="float:right;">
|
1129 |
<input type="button" id="insert" name="insert" value="<?php _e("Insert", 'bwg_back'); ?>" onClick="bwg_insert_shortcode('');" />
|
1130 |
-
<input type="button" id="cancel" name="cancel" value="<?php _e("Cancel", 'bwg_back'); ?>" onClick="tinyMCEPopup.close();" />
|
1131 |
-
</div>
|
1132 |
-
<div style="float:left;">
|
1133 |
<a id="bwg_pro_version_link" class="bwg_link_shortcode" target="_blank" href="http://wpdemo.web-dorado.com/thumbnails-view-2/"><?php _e("Please see Pro ", 'bwg_back'); ?><span id="bwg_pro_version"><?php _e("Thumbnail", 'bwg_back'); ?></span> <?php _e("View", 'bwg_back'); ?></a>
|
1134 |
</div>
|
1135 |
</div>
|
@@ -1174,6 +1217,7 @@ class BWGViewBWGShortcode {
|
|
1174 |
<input type="hidden" id="task" name="task" value="" />
|
1175 |
</form>
|
1176 |
<script type="text/javascript">
|
|
|
1177 |
var shortcodes = [];
|
1178 |
var shortcode_id = 1;
|
1179 |
<?php
|
@@ -1189,7 +1233,7 @@ class BWGViewBWGShortcode {
|
|
1189 |
var bwg_insert = 1;
|
1190 |
bwg_update_shortcode();
|
1191 |
<?php if (!$from_menu) { ?>
|
1192 |
-
var content = tinyMCE.activeEditor.selection.getContent();
|
1193 |
<?php } else { ?>
|
1194 |
var content = jQuery("#bwg_shortcode").val();
|
1195 |
<?php } ?>
|
@@ -1457,10 +1501,10 @@ class BWGViewBWGShortcode {
|
|
1457 |
else if (short_code['compuct_album_enable_page'] == 3) {
|
1458 |
jQuery("#compuct_album_page_scrol_load").attr('checked', 'checked');
|
1459 |
}
|
1460 |
-
if (short_code['compuct_album_view_type'] == 'thumbnail') {
|
1461 |
-
jQuery("#compuct_album_view_type_1").attr('checked', 'checked');
|
1462 |
}
|
1463 |
-
else if (short_code['compuct_album_view_type'] == 'masonry'){
|
1464 |
jQuery("#compuct_album_view_type_0").attr('checked', 'checked');
|
1465 |
}
|
1466 |
else{
|
@@ -1498,7 +1542,7 @@ class BWGViewBWGShortcode {
|
|
1498 |
jQuery("#show_album_name_0").attr('checked', 'checked');
|
1499 |
}
|
1500 |
break;
|
1501 |
-
|
1502 |
}
|
1503 |
case 'album_extended_preview': {
|
1504 |
jQuery("select[id=album] option[value='" + short_code['album_id'] + "']").attr('selected', 'selected');
|
@@ -1555,7 +1599,7 @@ class BWGViewBWGShortcode {
|
|
1555 |
else if (short_code['extended_album_enable_page'] == 3){
|
1556 |
jQuery("#extended_album_page_scrol_load").attr('checked', 'checked');
|
1557 |
}
|
1558 |
-
if (short_code['extended_album_view_type'] == 'thumbnail') {
|
1559 |
jQuery("#extended_album_view_type_1").attr('checked', 'checked');
|
1560 |
}
|
1561 |
else if(short_code['extended_album_view_type'] == 'masonry'){
|
@@ -1617,7 +1661,7 @@ class BWGViewBWGShortcode {
|
|
1617 |
}
|
1618 |
if(short_code['popup_fullscreen'] != undefined) {
|
1619 |
if (short_code['popup_fullscreen'] == 1) {
|
1620 |
-
jQuery("#popup_fullscreen_1").attr('checked', 'checked');
|
1621 |
jQuery("#tr_popup_width_height").css('display', 'none');
|
1622 |
}
|
1623 |
else {
|
@@ -1627,7 +1671,7 @@ class BWGViewBWGShortcode {
|
|
1627 |
}
|
1628 |
if(short_code['popup_autoplay'] != undefined) {
|
1629 |
if (short_code['popup_autoplay'] == 1) {
|
1630 |
-
jQuery("#popup_autoplay_1").attr('checked', 'checked');
|
1631 |
}
|
1632 |
else {
|
1633 |
jQuery("#popup_autoplay_0").attr('checked', 'checked');
|
@@ -1641,9 +1685,9 @@ class BWGViewBWGShortcode {
|
|
1641 |
}
|
1642 |
else {
|
1643 |
jQuery("#popup_filmstrip_no").attr('checked', 'checked');
|
1644 |
-
}
|
1645 |
}
|
1646 |
-
if (short_code['popup_enable_ctrl_btn'] != undefined){
|
1647 |
if (short_code['popup_enable_ctrl_btn'] == 1) {
|
1648 |
jQuery("#popup_ctrl_btn_yes").attr('checked', 'checked');
|
1649 |
bwg_enable_disable('', 'tbody_popup_ctrl_btn', 'popup_ctrl_btn_yes');
|
@@ -1737,7 +1781,7 @@ class BWGViewBWGShortcode {
|
|
1737 |
}
|
1738 |
}
|
1739 |
if (!short_code['thumb_click_action'] || short_code['thumb_click_action'] == 'undefined' || short_code['thumb_click_action'] == 'do_nothing') {
|
1740 |
-
jQuery("#thumb_click_action_3").attr('checked', 'checked');
|
1741 |
}
|
1742 |
else if (short_code['thumb_click_action'] == 'redirect_to_url') {
|
1743 |
jQuery("#thumb_click_action_2").attr('checked', 'checked');
|
@@ -1746,13 +1790,13 @@ class BWGViewBWGShortcode {
|
|
1746 |
jQuery("#thumb_click_action_1").attr('checked', 'checked');
|
1747 |
}
|
1748 |
if (short_code['thumb_link_target'] == 1 || !short_code['thumb_link_target'] || short_code['thumb_link_target'] == 'undefined') {
|
1749 |
-
jQuery("#thumb_link_target_yes").attr('checked', 'checked');
|
1750 |
}
|
1751 |
else {
|
1752 |
jQuery("#thumb_link_target_no").attr('checked', 'checked');
|
1753 |
}
|
1754 |
bwg_thumb_click_action();
|
1755 |
-
|
1756 |
// Watermark.
|
1757 |
if (short_code['watermark_type'] == 'text') {
|
1758 |
jQuery("#watermark_type_text").attr('checked', 'checked');
|
@@ -1792,7 +1836,7 @@ class BWGViewBWGShortcode {
|
|
1792 |
}
|
1793 |
// in_array
|
1794 |
function in_array(what, where) {
|
1795 |
-
var t = false;
|
1796 |
for (var i in where) {
|
1797 |
if (what == where[i]) {
|
1798 |
t = true;
|
@@ -1809,7 +1853,7 @@ class BWGViewBWGShortcode {
|
|
1809 |
// Get shortcodes attributes.
|
1810 |
function get_params(module_name) {
|
1811 |
<?php if (!$from_menu) { ?>
|
1812 |
-
var selected_text = tinyMCE.activeEditor.selection.getContent();
|
1813 |
<?php } else { ?>
|
1814 |
var selected_text = jQuery("#bwg_shortcode").val();
|
1815 |
<?php } ?>
|
@@ -1890,7 +1934,7 @@ class BWGViewBWGShortcode {
|
|
1890 |
tagtext += ' slideshow_filmstrip_height="' + jQuery("#slideshow_filmstrip_height").val() + '"';
|
1891 |
tagtext += ' slideshow_enable_title="' + jQuery("input[name=slideshow_enable_title]:checked").val() + '"';
|
1892 |
tagtext += ' slideshow_title_position="' + jQuery("input[name=slideshow_title_position]:checked").val() + '"';
|
1893 |
-
tagtext += ' slideshow_title_full_width="' + jQuery("input[name=slideshow_title_full_width]:checked").val() + '"';
|
1894 |
tagtext += ' slideshow_enable_description="' + jQuery("input[name=slideshow_enable_description]:checked").val() + '"';
|
1895 |
tagtext += ' slideshow_description_position="' + jQuery("input[name=slideshow_description_position]:checked").val() + '"';
|
1896 |
tagtext += ' enable_slideshow_music="' + jQuery("input[name=enable_slideshow_music]:checked").val() + '"';
|
@@ -1944,7 +1988,7 @@ class BWGViewBWGShortcode {
|
|
1944 |
tagtext += ' show_tag_box="' + jQuery("input[name=show_tag_box]:checked").val() + '"';
|
1945 |
title = ' gal_title="' + jQuery.trim(jQuery('#album option:selected').text().replace("'", "").replace('"', '')) + '"';
|
1946 |
tagtext += ' show_gallery_description="' + jQuery("input[name=show_gallery_description]:checked").val() + '"';
|
1947 |
-
tagtext += ' show_album_name="' + jQuery("input[name=show_album_name]:checked").val() + '"';
|
1948 |
break;
|
1949 |
|
1950 |
}
|
@@ -1975,7 +2019,7 @@ class BWGViewBWGShortcode {
|
|
1975 |
tagtext += ' show_tag_box="' + jQuery("input[name=show_tag_box]:checked").val() + '"';
|
1976 |
title = ' gal_title="' + jQuery.trim(jQuery('#album option:selected').text().replace("'", "").replace('"', '')) + '"';
|
1977 |
tagtext += ' show_gallery_description="' + jQuery("input[name=show_gallery_description]:checked").val() + '"';
|
1978 |
-
tagtext += ' show_album_name="' + jQuery("input[name=show_album_name]:checked").val() + '"';
|
1979 |
break;
|
1980 |
|
1981 |
}
|
@@ -1984,7 +2028,7 @@ class BWGViewBWGShortcode {
|
|
1984 |
tagtext += ' thumb_click_action="' + jQuery("input[name=thumb_click_action]:checked").val() + '"';
|
1985 |
tagtext += ' thumb_link_target="' + jQuery("input[name=thumb_link_target]:checked").val() + '"';
|
1986 |
tagtext += ' popup_fullscreen="' + jQuery("input[name=popup_fullscreen]:checked").val() + '"';
|
1987 |
-
tagtext += ' popup_autoplay="' + jQuery("input[name=popup_autoplay]:checked").val() + '"';
|
1988 |
tagtext += ' popup_width="' + jQuery("#popup_width").val() + '"';
|
1989 |
tagtext += ' popup_height="' + jQuery("#popup_height").val() + '"';
|
1990 |
tagtext += ' popup_effect="' + jQuery("#popup_effect").val() + '"';
|
@@ -2006,7 +2050,7 @@ class BWGViewBWGShortcode {
|
|
2006 |
tagtext += ' popup_enable_tumblr="' + jQuery("input[name=popup_enable_tumblr]:checked").val() + '"';
|
2007 |
tagtext += ' show_tag_box="' + jQuery("input[name=show_tag_box]:checked").val() + '"';
|
2008 |
tagtext += ' popup_effect_duration="' + jQuery("#popup_effect_duration").val() + '"';
|
2009 |
-
|
2010 |
// Watermark parameters.
|
2011 |
tagtext += ' watermark_type="' + jQuery("input[name=watermark_type]:checked").val() + '"';
|
2012 |
tagtext += ' watermark_link="' + (jQuery("#watermark_link").val()) + '"';
|
@@ -2037,16 +2081,16 @@ class BWGViewBWGShortcode {
|
|
2037 |
jQuery("#title").val(title);
|
2038 |
jQuery("#bwg_insert").val((content && !bwg_insert) ? 0 : 1);
|
2039 |
jQuery("#bwg_shortcode_form").submit();
|
2040 |
-
if (
|
2041 |
// IE and Update.
|
2042 |
-
var all_content = tinyMCE.activeEditor.getContent();
|
2043 |
all_content = all_content.replace('<p></p><p>[Best_Wordpress_Gallery', '<p>[Best_Wordpress_Gallery');
|
2044 |
-
tinyMCE.activeEditor.setContent(all_content.replace(content, '[Best_Wordpress_Gallery id="' + shortcode_id + '"' + title + ']'));
|
2045 |
}
|
2046 |
else {
|
2047 |
-
|
2048 |
}
|
2049 |
-
|
2050 |
<?php } else { ?>
|
2051 |
var post_data = {};
|
2052 |
var url = jQuery("#bwg_insert_shortcode").attr('action');
|
@@ -2101,4 +2145,4 @@ class BWGViewBWGShortcode {
|
|
2101 |
////////////////////////////////////////////////////////////////////////////////////////
|
2102 |
// Listeners //
|
2103 |
////////////////////////////////////////////////////////////////////////////////////////
|
2104 |
-
}
|
79 |
<head>
|
80 |
<title><?php _e("Photo Gallery", 'bwg_back'); ?></title>
|
81 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
|
|
|
|
|
82 |
<?php
|
83 |
wp_print_scripts('jquery');
|
84 |
bwg_register_admin_scripts();
|
99 |
if (!$from_menu) {
|
100 |
wp_print_styles('forms');
|
101 |
?>
|
102 |
+
<style>
|
103 |
+
#WD-PhotoGallery .ui-widget-content a {
|
104 |
+
margin-top: 3px;
|
105 |
+
display: inline-block;
|
106 |
+
line-height: 22px;
|
107 |
+
height: 24px;
|
108 |
+
}
|
109 |
+
#WD-PhotoGallery #bwg_change_gallery_type {
|
110 |
+
padding-top: 13px;
|
111 |
+
}
|
112 |
+
#WD-PhotoGallery .mceActionPanel {
|
113 |
+
margin-top: 10px;
|
114 |
+
padding-top: 10px;
|
115 |
+
border-top: 1px solid;
|
116 |
+
border-color: #919B9C ;
|
117 |
+
}
|
118 |
+
#WD-PhotoGallery .mceActionPanel #bwg_pro_version_link,
|
119 |
+
#WD-PhotoGallery .mceActionPanel #insert {
|
120 |
+
float: right;
|
121 |
+
outline:none;
|
122 |
+
display: inline-block;
|
123 |
+
text-decoration: none;
|
124 |
+
font-size: 13px;
|
125 |
+
line-height: 26px;
|
126 |
+
height: 28px;
|
127 |
+
margin: 0 10px 0 0;
|
128 |
+
padding: 0 10px 1px;
|
129 |
+
cursor: pointer;
|
130 |
+
border-width: 1px;
|
131 |
+
border-style: solid;
|
132 |
+
-webkit-appearance: none;
|
133 |
+
-webkit-border-radius: 3px;
|
134 |
+
-webkit-box-sizing: border-box;
|
135 |
+
-webkit-box-shadow: 0 1px 0 #ccc;
|
136 |
+
box-shadow: 0 1px 0 #ccc;
|
137 |
+
border-radius: 3px;
|
138 |
+
white-space: nowrap;
|
139 |
+
-moz-box-sizing: border-box;
|
140 |
+
box-sizing: border-box;
|
141 |
+
background: #0085ba;
|
142 |
+
border-color: #0073aa #006799 #006799;
|
143 |
+
-webkit-box-shadow: 0 1px 0 #006799;
|
144 |
+
box-shadow: 0 1px 0 #006799;
|
145 |
+
color: #fff;
|
146 |
+
text-shadow: 0 -1px 1px #006799, 1px 0 1px #006799, 0 1px 1px #006799, -1px 0 1px #006799;
|
147 |
+
}
|
148 |
+
#WD-PhotoGallery .mceActionPanel #bwg_pro_version_link {
|
149 |
+
float: left;
|
150 |
+
}
|
151 |
+
</style>
|
152 |
<base target="_self">
|
153 |
</head>
|
154 |
+
<body id="WD-PhotoGallery">
|
155 |
+
<?php if (isset($_POST['tagtext'])) { echo '<script>top.tinyMCE.activeEditor.windowManager.close(window);</script></body></html>'; die(); } ?>
|
156 |
<form method="post" action="#" id="bwg_shortcode_form">
|
157 |
<?php wp_nonce_field( 'BWGShortcode', 'bwg_nonce' ); ?>
|
158 |
<div class="panel_wrapper">
|
203 |
<span title="<?php _e("This view is available only in Paid version.", 'bwg_back'); ?><a class='wd-btn wd-btn-primary-blue wd-not-image' href='http://wpdemo.web-dorado.com/blog-style-view/' target='_blank'>Demo View</a>" class="gallery_type">
|
204 |
<div class="gallery_type_div"><input disabled="disabled" type="radio" class="gallery_type_radio" id="blog_style" name="gallery_type" value="blog_style" /><label class="spider_free_version_label gallery_type_label" for="blog_style"><?php _e("Blog Style", 'bwg_back'); ?></label></div>
|
205 |
<label><img style="opacity:0.5; filter: Alpha(opacity=50);" disabled="disabled" src="<?php echo WD_BWG_URL . '/images/blog_style.jpg'; ?>" /></label>
|
206 |
+
</span>
|
207 |
<span title="<?php _e("This view is available only in Paid version.", 'bwg_back'); ?><a class='wd-btn wd-btn-primary-blue wd-not-image' href='http://wpdemo.web-dorado.com/gallery-carousel/' target='_blank'>Demo View</a>" class="gallery_type">
|
208 |
<div class="gallery_type_div"><input disabled="disabled" type="radio" class="gallery_type_radio" id="carousel" name="gallery_type" value="carousel" /><label class="spider_free_version_label gallery_type_label" for="carousel"><?php _e("Carousel", 'bwg_back'); ?></label></div>
|
209 |
<div><label for="carousel"><img style="opacity:0.5; filter: Alpha(opacity=50);" disabled="disabled" src="<?php echo WD_BWG_URL . '/images/Carousel.png'; ?>" /></label></div>
|
235 |
<a id="bwg_advertisement" class="wd-btn wd-btn-primary wd-not-image">
|
236 |
<div class="bwg_tab_label">
|
237 |
<?php _e('Advertisement', 'bwg_back'); ?>
|
238 |
+
|
239 |
</div>
|
240 |
</a>
|
241 |
</div>
|
401 |
<tr id="tr_slideshow_width_height">
|
402 |
<td title="<?php _e("Maximum values for slideshow width and height.", 'bwg_back'); ?>" class="spider_label"><label for="slideshow_width"><?php _e("Slideshow dimensions:", 'bwg_back'); ?> </label></td>
|
403 |
<td>
|
404 |
+
<input type="text" name="slideshow_width" id="slideshow_width" value="<?php echo $wd_bwg_options->slideshow_width; ?>" class="spider_int_input" /> x
|
405 |
<input type="text" name="slideshow_height" id="slideshow_height" value="<?php echo $wd_bwg_options->slideshow_height; ?>" class="spider_int_input" /> px
|
406 |
</td>
|
407 |
</tr>
|
441 |
jQuery('#thumb_width').hide();
|
442 |
jQuery('#thumb_height').show();
|
443 |
jQuery('#thumb_width_height_separator').hide();" <?php echo ($wd_bwg_options->mosaic == 'horizontal') ? 'checked' : ''; ?> /><label for="mosaic_hor"><?php _e("Horizontal", 'bwg_back'); ?></label>
|
444 |
+
|
445 |
+
|
446 |
</td>
|
447 |
</tr>
|
448 |
<tr id="tr_resizable_mosaic">
|
486 |
<tr id="tr_load_more_image_count">
|
487 |
<td class="spider_label"><label for="load_more_image_count"><?php _e("Images per load:", 'bwg_back'); ?> </label></td>
|
488 |
<td><input type="text" name="load_more_image_count" id="load_more_image_count" value="<?php echo $wd_bwg_options->images_per_page; ?>" class="spider_int_input" /></td>
|
489 |
+
</tr>
|
490 |
<tr id="tr_thumb_width_height">
|
491 |
<td title="<?php _e('Maximum values for thumbnail dimension.', 'bwg_back'); ?>" class="spider_label"><label id="thumb_width_height_label" for="thumb_width"><?php _e("Image Thumbnail dimensions:", 'bwg_back'); ?> </label></td>
|
492 |
<td>
|
515 |
<tr id="tr_compuct_album_thumb_width_height">
|
516 |
<td title="<?php _e("Maximum values for album thumb width and height.", 'bwg_back'); ?>" class="spider_label"><label for="compuct_album_thumb_width"><?php _e("Album Thumbnail dimensions:", 'bwg_back'); ?> </label></td>
|
517 |
<td>
|
518 |
+
<input type="text" name="compuct_album_thumb_width" id="compuct_album_thumb_width" value="<?php echo $wd_bwg_options->album_thumb_width; ?>" class="spider_int_input" /> x
|
519 |
<input type="text" name="compuct_album_thumb_height" id="compuct_album_thumb_height" value="<?php echo $wd_bwg_options->album_thumb_height; ?>" class="spider_int_input" /> px
|
520 |
</td>
|
521 |
</tr>
|
540 |
jQuery('#compuct_album_image_thumb_width').hide();
|
541 |
jQuery('#compuct_album_image_thumb_height').show();
|
542 |
jQuery('#compuct_album_image_thumb_dimensions_x').hide();" <?php echo ($wd_bwg_options->mosaic == 'horizontal') ? 'checked' : ''; ?> /><label for="compuct_album_mosaic_hor"><?php _e("Horizontal", 'bwg_back'); ?></label>
|
543 |
+
|
544 |
+
|
545 |
</td>
|
546 |
</tr>
|
547 |
<tr id="tr_compuct_album_resizable_mosaic">
|
583 |
<td class="spider_label"><label><?php _e("Enable pagination:", 'bwg_back'); ?> </label></td>
|
584 |
<td>
|
585 |
<input type="radio" name="compuct_album_enable_page" class="hide_load_count" id="compuct_album_page_yes" value="1" <?php echo ($wd_bwg_options->album_enable_page == '1') ? 'checked' : ''; ?> onchange="bwg_loadmore()"/><label for="compuct_album_page_yes"><?php _e('Yes', 'bwg_back'); ?></label>
|
586 |
+
<input type="radio" name="compuct_album_enable_page" class="hide_load_count" id="compuct_album_page_no" value="0" <?php echo ($wd_bwg_options->album_enable_page == '0') ? 'checked' : ''; ?> onchange="bwg_loadmore()" /><label for="compuct_album_page_no"><?php _e('No', 'bwg_back'); ?></label>
|
587 |
<input type="radio" name="compuct_album_enable_page" id="compuct_album_page_loadmore" value="2" <?php echo ($wd_bwg_options->album_enable_page == '2') ? 'checked' : ''; ?> onchange="bwg_loadmore()" /><label for="compuct_album_page_loadmore"><?php _e("Load More", 'bwg_back'); ?></label>
|
588 |
<input type="radio" name="compuct_album_enable_page" id="compuct_album_page_scrol_load" value="3" <?php echo ($wd_bwg_options->album_enable_page == '3') ? 'checked' : ''; ?> onchange="bwg_loadmore()" /><label for="compuct_album_page_scrol_load"><?php _e("Scroll Load", 'bwg_back'); ?></label>
|
589 |
</td>
|
616 |
<tr id="tr_extended_album_thumb_width_height">
|
617 |
<td title="<?php _e("Maximum values for album thumb width and height.", 'bwg_back'); ?>" class="spider_label"><label for="extended_album_thumb_width"><?php _e("Album thumbnail dimensions:", 'bwg_back'); ?> </label></td>
|
618 |
<td>
|
619 |
+
<input type="text" name="extended_album_thumb_width" id="extended_album_thumb_width" value="<?php echo $wd_bwg_options->album_thumb_width; ?>" class="spider_int_input" /> x
|
620 |
<input type="text" name="extended_album_thumb_height" id="extended_album_thumb_height" value="<?php echo $wd_bwg_options->album_thumb_height; ?>" class="spider_int_input" /> px
|
621 |
</td>
|
622 |
</tr>
|
641 |
jQuery('#extended_album_image_thumb_width').hide();
|
642 |
jQuery('#extended_album_image_thumb_height').show();
|
643 |
jQuery('#extended_album_image_thumb_dimensions_x').hide();" <?php echo ($wd_bwg_options->mosaic == 'horizontal') ? 'checked' : ''; ?> /><label for="extended_album_mosaic_hor"><?php _e("Horizontal", 'bwg_back'); ?></label>
|
644 |
+
|
645 |
+
|
646 |
</td>
|
647 |
</tr>
|
648 |
<tr id="tr_extended_album_resizable_mosaic">
|
907 |
<input type="radio" name="popup_fullscreen" id="popup_fullscreen_1" value="1" <?php if ($wd_bwg_options->popup_fullscreen) echo 'checked="checked"'; ?> onchange="bwg_popup_fullscreen()" /><label for="popup_fullscreen_1"><?php _e('Yes', 'bwg_back'); ?></label>
|
908 |
<input type="radio" name="popup_fullscreen" id="popup_fullscreen_0" value="0" <?php if (!$wd_bwg_options->popup_fullscreen) echo 'checked="checked"'; ?> onchange="bwg_popup_fullscreen()" /><label for="popup_fullscreen_0"><?php _e('No', 'bwg_back'); ?></label>
|
909 |
</td>
|
910 |
+
</tr>
|
911 |
<tr id="tr_popup_width_height">
|
912 |
<td title="<?php _e("Maximum values for lightbox width and height.", 'bwg_back'); ?>" class="spider_label"><label for="popup_width"><?php _e("Lightbox dimensions:", 'bwg_back'); ?> </label></td>
|
913 |
<td>
|
914 |
+
<input type="text" name="popup_width" id="popup_width" value="<?php echo $wd_bwg_options->popup_width; ?>" class="spider_int_input" /> x
|
915 |
<input type="text" name="popup_height" id="popup_height" value="<?php echo $wd_bwg_options->popup_height; ?>" class="spider_int_input" /> px
|
916 |
</td>
|
917 |
</tr>
|
1054 |
<input disabled="disabled" type="radio" name="popup_enable_tumblr" id="popup_tumblr_no" value="0" <?php echo ($wd_bwg_options->popup_enable_tumblr) ? '' : 'checked'; ?> /><label for="popup_tumblr_no"><?php _e('No', 'bwg_back'); ?></label>
|
1055 |
</td>
|
1056 |
</tr>
|
1057 |
+
</tbody>
|
1058 |
+
</table>
|
1059 |
</div>
|
1060 |
</div>
|
1061 |
</div>
|
1090 |
<tr id="tr_watermark_width_height">
|
1091 |
<td title="<?php _e("Maximum values for watermark image width and height.", 'bwg_back'); ?>" class="spider_label"><label for="watermark_width"><?php _e("Advertisement dimensions:", 'bwg_back'); ?> </label></td>
|
1092 |
<td>
|
1093 |
+
<input type="text" name="watermark_width" id="watermark_width" value="<?php echo $wd_bwg_options->watermark_width; ?>" class="spider_int_input" /> x
|
1094 |
<input type="text" name="watermark_height" id="watermark_height" value="<?php echo $wd_bwg_options->watermark_height; ?>" class="spider_int_input" /> px
|
1095 |
</td>
|
1096 |
</tr>
|
1172 |
</div>
|
1173 |
</div>
|
1174 |
<div class="mceActionPanel">
|
|
|
1175 |
<input type="button" id="insert" name="insert" value="<?php _e("Insert", 'bwg_back'); ?>" onClick="bwg_insert_shortcode('');" />
|
|
|
|
|
|
|
1176 |
<a id="bwg_pro_version_link" class="bwg_link_shortcode" target="_blank" href="http://wpdemo.web-dorado.com/thumbnails-view-2/"><?php _e("Please see Pro ", 'bwg_back'); ?><span id="bwg_pro_version"><?php _e("Thumbnail", 'bwg_back'); ?></span> <?php _e("View", 'bwg_back'); ?></a>
|
1177 |
</div>
|
1178 |
</div>
|
1217 |
<input type="hidden" id="task" name="task" value="" />
|
1218 |
</form>
|
1219 |
<script type="text/javascript">
|
1220 |
+
var ajaxurl = "<?php echo admin_url('admin-ajax.php'); ?>";
|
1221 |
var shortcodes = [];
|
1222 |
var shortcode_id = 1;
|
1223 |
<?php
|
1233 |
var bwg_insert = 1;
|
1234 |
bwg_update_shortcode();
|
1235 |
<?php if (!$from_menu) { ?>
|
1236 |
+
var content = top.tinyMCE.activeEditor.selection.getContent();
|
1237 |
<?php } else { ?>
|
1238 |
var content = jQuery("#bwg_shortcode").val();
|
1239 |
<?php } ?>
|
1501 |
else if (short_code['compuct_album_enable_page'] == 3) {
|
1502 |
jQuery("#compuct_album_page_scrol_load").attr('checked', 'checked');
|
1503 |
}
|
1504 |
+
if (short_code['compuct_album_view_type'] == 'thumbnail') {
|
1505 |
+
jQuery("#compuct_album_view_type_1").attr('checked', 'checked');
|
1506 |
}
|
1507 |
+
else if (short_code['compuct_album_view_type'] == 'masonry'){
|
1508 |
jQuery("#compuct_album_view_type_0").attr('checked', 'checked');
|
1509 |
}
|
1510 |
else{
|
1542 |
jQuery("#show_album_name_0").attr('checked', 'checked');
|
1543 |
}
|
1544 |
break;
|
1545 |
+
|
1546 |
}
|
1547 |
case 'album_extended_preview': {
|
1548 |
jQuery("select[id=album] option[value='" + short_code['album_id'] + "']").attr('selected', 'selected');
|
1599 |
else if (short_code['extended_album_enable_page'] == 3){
|
1600 |
jQuery("#extended_album_page_scrol_load").attr('checked', 'checked');
|
1601 |
}
|
1602 |
+
if (short_code['extended_album_view_type'] == 'thumbnail') {
|
1603 |
jQuery("#extended_album_view_type_1").attr('checked', 'checked');
|
1604 |
}
|
1605 |
else if(short_code['extended_album_view_type'] == 'masonry'){
|
1661 |
}
|
1662 |
if(short_code['popup_fullscreen'] != undefined) {
|
1663 |
if (short_code['popup_fullscreen'] == 1) {
|
1664 |
+
jQuery("#popup_fullscreen_1").attr('checked', 'checked');
|
1665 |
jQuery("#tr_popup_width_height").css('display', 'none');
|
1666 |
}
|
1667 |
else {
|
1671 |
}
|
1672 |
if(short_code['popup_autoplay'] != undefined) {
|
1673 |
if (short_code['popup_autoplay'] == 1) {
|
1674 |
+
jQuery("#popup_autoplay_1").attr('checked', 'checked');
|
1675 |
}
|
1676 |
else {
|
1677 |
jQuery("#popup_autoplay_0").attr('checked', 'checked');
|
1685 |
}
|
1686 |
else {
|
1687 |
jQuery("#popup_filmstrip_no").attr('checked', 'checked');
|
1688 |
+
}
|
1689 |
}
|
1690 |
+
if (short_code['popup_enable_ctrl_btn'] != undefined){
|
1691 |
if (short_code['popup_enable_ctrl_btn'] == 1) {
|
1692 |
jQuery("#popup_ctrl_btn_yes").attr('checked', 'checked');
|
1693 |
bwg_enable_disable('', 'tbody_popup_ctrl_btn', 'popup_ctrl_btn_yes');
|
1781 |
}
|
1782 |
}
|
1783 |
if (!short_code['thumb_click_action'] || short_code['thumb_click_action'] == 'undefined' || short_code['thumb_click_action'] == 'do_nothing') {
|
1784 |
+
jQuery("#thumb_click_action_3").attr('checked', 'checked');
|
1785 |
}
|
1786 |
else if (short_code['thumb_click_action'] == 'redirect_to_url') {
|
1787 |
jQuery("#thumb_click_action_2").attr('checked', 'checked');
|
1790 |
jQuery("#thumb_click_action_1").attr('checked', 'checked');
|
1791 |
}
|
1792 |
if (short_code['thumb_link_target'] == 1 || !short_code['thumb_link_target'] || short_code['thumb_link_target'] == 'undefined') {
|
1793 |
+
jQuery("#thumb_link_target_yes").attr('checked', 'checked');
|
1794 |
}
|
1795 |
else {
|
1796 |
jQuery("#thumb_link_target_no").attr('checked', 'checked');
|
1797 |
}
|
1798 |
bwg_thumb_click_action();
|
1799 |
+
|
1800 |
// Watermark.
|
1801 |
if (short_code['watermark_type'] == 'text') {
|
1802 |
jQuery("#watermark_type_text").attr('checked', 'checked');
|
1836 |
}
|
1837 |
// in_array
|
1838 |
function in_array(what, where) {
|
1839 |
+
var t = false;
|
1840 |
for (var i in where) {
|
1841 |
if (what == where[i]) {
|
1842 |
t = true;
|
1853 |
// Get shortcodes attributes.
|
1854 |
function get_params(module_name) {
|
1855 |
<?php if (!$from_menu) { ?>
|
1856 |
+
var selected_text = top.tinyMCE.activeEditor.selection.getContent();
|
1857 |
<?php } else { ?>
|
1858 |
var selected_text = jQuery("#bwg_shortcode").val();
|
1859 |
<?php } ?>
|
1934 |
tagtext += ' slideshow_filmstrip_height="' + jQuery("#slideshow_filmstrip_height").val() + '"';
|
1935 |
tagtext += ' slideshow_enable_title="' + jQuery("input[name=slideshow_enable_title]:checked").val() + '"';
|
1936 |
tagtext += ' slideshow_title_position="' + jQuery("input[name=slideshow_title_position]:checked").val() + '"';
|
1937 |
+
tagtext += ' slideshow_title_full_width="' + jQuery("input[name=slideshow_title_full_width]:checked").val() + '"';
|
1938 |
tagtext += ' slideshow_enable_description="' + jQuery("input[name=slideshow_enable_description]:checked").val() + '"';
|
1939 |
tagtext += ' slideshow_description_position="' + jQuery("input[name=slideshow_description_position]:checked").val() + '"';
|
1940 |
tagtext += ' enable_slideshow_music="' + jQuery("input[name=enable_slideshow_music]:checked").val() + '"';
|
1988 |
tagtext += ' show_tag_box="' + jQuery("input[name=show_tag_box]:checked").val() + '"';
|
1989 |
title = ' gal_title="' + jQuery.trim(jQuery('#album option:selected').text().replace("'", "").replace('"', '')) + '"';
|
1990 |
tagtext += ' show_gallery_description="' + jQuery("input[name=show_gallery_description]:checked").val() + '"';
|
1991 |
+
tagtext += ' show_album_name="' + jQuery("input[name=show_album_name]:checked").val() + '"';
|
1992 |
break;
|
1993 |
|
1994 |
}
|
2019 |
tagtext += ' show_tag_box="' + jQuery("input[name=show_tag_box]:checked").val() + '"';
|
2020 |
title = ' gal_title="' + jQuery.trim(jQuery('#album option:selected').text().replace("'", "").replace('"', '')) + '"';
|
2021 |
tagtext += ' show_gallery_description="' + jQuery("input[name=show_gallery_description]:checked").val() + '"';
|
2022 |
+
tagtext += ' show_album_name="' + jQuery("input[name=show_album_name]:checked").val() + '"';
|
2023 |
break;
|
2024 |
|
2025 |
}
|
2028 |
tagtext += ' thumb_click_action="' + jQuery("input[name=thumb_click_action]:checked").val() + '"';
|
2029 |
tagtext += ' thumb_link_target="' + jQuery("input[name=thumb_link_target]:checked").val() + '"';
|
2030 |
tagtext += ' popup_fullscreen="' + jQuery("input[name=popup_fullscreen]:checked").val() + '"';
|
2031 |
+
tagtext += ' popup_autoplay="' + jQuery("input[name=popup_autoplay]:checked").val() + '"';
|
2032 |
tagtext += ' popup_width="' + jQuery("#popup_width").val() + '"';
|
2033 |
tagtext += ' popup_height="' + jQuery("#popup_height").val() + '"';
|
2034 |
tagtext += ' popup_effect="' + jQuery("#popup_effect").val() + '"';
|
2050 |
tagtext += ' popup_enable_tumblr="' + jQuery("input[name=popup_enable_tumblr]:checked").val() + '"';
|
2051 |
tagtext += ' show_tag_box="' + jQuery("input[name=show_tag_box]:checked").val() + '"';
|
2052 |
tagtext += ' popup_effect_duration="' + jQuery("#popup_effect_duration").val() + '"';
|
2053 |
+
|
2054 |
// Watermark parameters.
|
2055 |
tagtext += ' watermark_type="' + jQuery("input[name=watermark_type]:checked").val() + '"';
|
2056 |
tagtext += ' watermark_link="' + (jQuery("#watermark_link").val()) + '"';
|
2081 |
jQuery("#title").val(title);
|
2082 |
jQuery("#bwg_insert").val((content && !bwg_insert) ? 0 : 1);
|
2083 |
jQuery("#bwg_shortcode_form").submit();
|
2084 |
+
if (top.tinymce.isIE && content) {
|
2085 |
// IE and Update.
|
2086 |
+
var all_content = top.tinyMCE.activeEditor.getContent();
|
2087 |
all_content = all_content.replace('<p></p><p>[Best_Wordpress_Gallery', '<p>[Best_Wordpress_Gallery');
|
2088 |
+
top.tinyMCE.activeEditor.setContent(all_content.replace(content, '[Best_Wordpress_Gallery id="' + shortcode_id + '"' + title + ']'));
|
2089 |
}
|
2090 |
else {
|
2091 |
+
top.tinyMCE.execCommand('mceInsertContent', false, short_code);
|
2092 |
}
|
2093 |
+
top.tinyMCE.execCommand('mceRepaint');
|
2094 |
<?php } else { ?>
|
2095 |
var post_data = {};
|
2096 |
var url = jQuery("#bwg_insert_shortcode").attr('action');
|
2145 |
////////////////////////////////////////////////////////////////////////////////////////
|
2146 |
// Listeners //
|
2147 |
////////////////////////////////////////////////////////////////////////////////////////
|
2148 |
+
}
|
css/bwg_tables.css
CHANGED
@@ -56,6 +56,7 @@
|
|
56 |
#TB_window,
|
57 |
#TB_iframeContent {
|
58 |
width: 800px !important;
|
|
|
59 |
max-height: 100% !important;
|
60 |
max-width: 100% !important;
|
61 |
}
|
56 |
#TB_window,
|
57 |
#TB_iframeContent {
|
58 |
width: 800px !important;
|
59 |
+
height: 500px !important;
|
60 |
max-height: 100% !important;
|
61 |
max-width: 100% !important;
|
62 |
}
|
filemanager/css/default_view_thumbs.css
CHANGED
@@ -56,7 +56,7 @@
|
|
56 |
#importer_body_container {
|
57 |
display: inline-block;
|
58 |
margin: 0 auto;
|
59 |
-
text-align:
|
60 |
}
|
61 |
|
62 |
#explorer_body_container,
|
56 |
#importer_body_container {
|
57 |
display: inline-block;
|
58 |
margin: 0 auto;
|
59 |
+
text-align: left;
|
60 |
}
|
61 |
|
62 |
#explorer_body_container,
|
js/bwg_editor_button.js
CHANGED
@@ -31,7 +31,8 @@ jQuery(window).load(function(){
|
|
31 |
file:bwg_admin_ajax,
|
32 |
width:width_window + ed.getLang('bwg_mce.delta_width', 0),
|
33 |
height:height_window + ed.getLang('bwg_mce.delta_height', 0),
|
34 |
-
inline:1
|
|
|
35 |
}, {
|
36 |
plugin_url:url
|
37 |
});
|
31 |
file:bwg_admin_ajax,
|
32 |
width:width_window + ed.getLang('bwg_mce.delta_width', 0),
|
33 |
height:height_window + ed.getLang('bwg_mce.delta_height', 0),
|
34 |
+
inline:1,
|
35 |
+
title:'Photo Gallery'
|
36 |
}, {
|
37 |
plugin_url:url
|
38 |
});
|
photo-gallery.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Photo Gallery
|
5 |
* Plugin URI: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
|
6 |
* Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
|
7 |
-
* Version: 1.3.
|
8 |
* Author: Photo Gallery Team
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -1701,7 +1701,7 @@ function bwg_activate() {
|
|
1701 |
));
|
1702 |
}
|
1703 |
$version = get_option('wd_bwg_version');
|
1704 |
-
$new_version = '1.3.
|
1705 |
if ($version && version_compare($version, $new_version, '<')) {
|
1706 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1707 |
bwg_update($version);
|
@@ -1753,7 +1753,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
|
|
1753 |
|
1754 |
function bwg_update_hook() {
|
1755 |
$version = get_option('wd_bwg_version');
|
1756 |
-
$new_version = '1.3.
|
1757 |
if ($version && version_compare($version, $new_version, '<')) {
|
1758 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1759 |
bwg_update($version);
|
4 |
* Plugin Name: Photo Gallery
|
5 |
* Plugin URI: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
|
6 |
* Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
|
7 |
+
* Version: 1.3.46
|
8 |
* Author: Photo Gallery Team
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
1701 |
));
|
1702 |
}
|
1703 |
$version = get_option('wd_bwg_version');
|
1704 |
+
$new_version = '1.3.46';
|
1705 |
if ($version && version_compare($version, $new_version, '<')) {
|
1706 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1707 |
bwg_update($version);
|
1753 |
|
1754 |
function bwg_update_hook() {
|
1755 |
$version = get_option('wd_bwg_version');
|
1756 |
+
$new_version = '1.3.46';
|
1757 |
if ($version && version_compare($version, $new_version, '<')) {
|
1758 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1759 |
bwg_update($version);
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
|
|
4 |
Tags: gallery, photo gallery, image gallery, responsive gallery, wordpress gallery plugin, photo albums, gallery slider, gallery lightbox, wordpress photo gallery plugin, fullscreen gallery, watermarking, video gallery
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.8
|
7 |
-
Stable tag: 1.3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -188,6 +188,9 @@ To enable the feature of adding Media Library images, go to Photo Gallery > Opti
|
|
188 |
|
189 |
== Changelog ==
|
190 |
|
|
|
|
|
|
|
191 |
= 1.3.45 =
|
192 |
* Fixed: Bug on Import from library image sizes.
|
193 |
* Fixed: Filemanager responsiveness.
|
4 |
Tags: gallery, photo gallery, image gallery, responsive gallery, wordpress gallery plugin, photo albums, gallery slider, gallery lightbox, wordpress photo gallery plugin, fullscreen gallery, watermarking, video gallery
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.8
|
7 |
+
Stable tag: 1.3.46
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
188 |
|
189 |
== Changelog ==
|
190 |
|
191 |
+
= 1.3.46 =
|
192 |
+
* Fixed: Shortcode pop-up style.
|
193 |
+
|
194 |
= 1.3.45 =
|
195 |
* Fixed: Bug on Import from library image sizes.
|
196 |
* Fixed: Filemanager responsiveness.
|