Version Description
Fixed: CSS XSS vulnerability in lightbox
Download this release
Release Info
Developer | webdorado |
Plugin | WD Instagram Feed – Instagram Gallery |
Version | 1.2.10 |
Comparing to | |
See all releases |
Code changes from version 1.2.9 to 1.2.10
- changelog.txt +0 -195
- frontend/views/WDIViewGalleryBox.php +1 -115
- readme.txt +7 -1
- wd-instagram-feed.php +2 -2
changelog.txt
DELETED
@@ -1,195 +0,0 @@
|
|
1 |
-
= 1.2.9 =
|
2 |
-
Changed: Web-Dorado links
|
3 |
-
|
4 |
-
= 1.2.8 =
|
5 |
-
Changed: Allow more users and hashtags in feed settings
|
6 |
-
|
7 |
-
= 1.2.7 =
|
8 |
-
Changed: Show notification to install Backup WD plugin only on plugin pages
|
9 |
-
|
10 |
-
= 1.2.6 =
|
11 |
-
Change: Introduction of Backup WD plugin
|
12 |
-
|
13 |
-
= 1.2.5 =
|
14 |
-
Change: "create_function" is not used anymore
|
15 |
-
|
16 |
-
= 1.2.4 =
|
17 |
-
Fixed: Compatibility issue with Better WordPress Minify plugin, thanks to @amityweb for bug report
|
18 |
-
|
19 |
-
= 1.2.3 =
|
20 |
-
Change: WD library updated to version 1.0.11
|
21 |
-
Fixed: Error message when editing feed and token is expired
|
22 |
-
|
23 |
-
= 1.2.2 =
|
24 |
-
New: Redirection to custom URL
|
25 |
-
|
26 |
-
= 1.2.1 =
|
27 |
-
New: Option to disable loading of new images in feed
|
28 |
-
|
29 |
-
= 1.2.0 =
|
30 |
-
New: Default feed
|
31 |
-
Fixed: Infinite scroll triggering (PRO)
|
32 |
-
Fixed: "No media in feed" message on mobile masonry feed
|
33 |
-
Fixed: Minor style conflicts with some themes
|
34 |
-
|
35 |
-
= 1.1.30 =
|
36 |
-
Changed: Frontend styles optimized, loads faster now
|
37 |
-
|
38 |
-
= 1.1.29 =
|
39 |
-
Fixed: Display only published feeds in feeds selector popup for shortcode
|
40 |
-
Changed: UX improvement - no error message when user first inserts a widget then creates feeds
|
41 |
-
|
42 |
-
= 1.1.28 =
|
43 |
-
Fixed: Conflict with some themes
|
44 |
-
|
45 |
-
= 1.1.27 =
|
46 |
-
Fixed: Overriding window.onload function
|
47 |
-
Changed: Some strings on frontend are translatable now
|
48 |
-
|
49 |
-
= 1.1.26 =
|
50 |
-
Fixed: Conflict with Beaver Builder
|
51 |
-
Fixed: Frontend error messages in old Chrome and Safari browsers
|
52 |
-
Changed: Translations hosted on WordPress.org
|
53 |
-
|
54 |
-
= 1.1.25 =
|
55 |
-
New: UX improvements: when authorizing and editing feeds
|
56 |
-
Changed: JavaScript error notices on frontend
|
57 |
-
Fixed: Updates page restored (PRO)
|
58 |
-
Fixed: Deactivation popup in uninstall page (PRO)
|
59 |
-
Fixed: Subscribe after uninstall
|
60 |
-
|
61 |
-
= 1.1.24 =
|
62 |
-
New: Overview page
|
63 |
-
Changed: Deactivation
|
64 |
-
|
65 |
-
= 1.1.23 =
|
66 |
-
Fixed: cropping of "landscape" images in thumbnails layout
|
67 |
-
|
68 |
-
= 1.1.22 =
|
69 |
-
New: message displayed on frontend if feed has no media
|
70 |
-
Fixed: JS errors for media with Instagram's new "Slideshow" feature. This feature is not supported by Instagram's API yet.
|
71 |
-
Changed: Errors by plugin and Instagram API are alerted in frontend only for admins, otherwise output the message to the Web Console
|
72 |
-
Changed: Custom attribute "wdi_media_user" added to media containers in frontend. Useful for adding different event listeners, e.g. custom redirects for every user's media.
|
73 |
-
Changed: Minor style conflicts fixed
|
74 |
-
|
75 |
-
= 1.1.21 =
|
76 |
-
New: Three new plugins added to featured plugins list: Ad Manager WD, Youtube WD and Staff Team WD
|
77 |
-
Fixed: Colors and opacities of share buttons in lightbox (PRO)
|
78 |
-
|
79 |
-
= 1.1.20 =
|
80 |
-
New: Instagram feed displayed in AJAX-loaded content. AJAX request callback needs to call wp_footer() in the end.
|
81 |
-
|
82 |
-
= 1.1.19 =
|
83 |
-
Fixed: Strange bug in Instagram API when user feed pagination is null, causing JS errors in frontend
|
84 |
-
|
85 |
-
= 1.1.18 =
|
86 |
-
Fixed: Frontend filter colors (PRO)
|
87 |
-
Changed: Featured plugins, brand new Mailchimp Forms WD plugin added
|
88 |
-
|
89 |
-
= 1.1.17 =
|
90 |
-
New: Option in feed settings to show small size images and low-bandwidth videos when viewed in mobile devices
|
91 |
-
Fixed: Escaping in custom JS
|
92 |
-
Change: WP 4.7 compatibility - language of frontend content in AJAX response
|
93 |
-
|
94 |
-
= 1.1.16 =
|
95 |
-
Fixed: Unicode "paragraph separator" symbol in media caption crashes lightbox
|
96 |
-
Fixed: Javascript error in admin feed page and styling issue in lightbox because of some non-standard themes
|
97 |
-
|
98 |
-
= 1.1.15 =
|
99 |
-
New: Show hashtag media number in header
|
100 |
-
Fixed: Scripts dependency on underscore.js
|
101 |
-
Fixed: Compatibility issues with Yoast SEO
|
102 |
-
|
103 |
-
= 1.1.14 =
|
104 |
-
Fixed: Single user bio not shown
|
105 |
-
Changed: Plugin logo
|
106 |
-
Changed: Featured plugins logos
|
107 |
-
|
108 |
-
= 1.1.13 =
|
109 |
-
Fixed: Changes in database after plugin version update via FTP or AJAX requests with silent activation
|
110 |
-
|
111 |
-
= 1.1.12 =
|
112 |
-
New: Feed based on liked media (Pro)
|
113 |
-
Fixed: Hidden media in last page
|
114 |
-
Fixed: Minor issues
|
115 |
-
|
116 |
-
= 1.1.11 =
|
117 |
-
Added: Setting to show media descriptions in widget mode (Pro)
|
118 |
-
Fixed: Untranslatable strings in widget editor
|
119 |
-
Change: Featured plugins list
|
120 |
-
|
121 |
-
= 1.1.10 =
|
122 |
-
Added: New text in uninstall page
|
123 |
-
Added: Featured plugins admin page
|
124 |
-
Fixed: Video not centering issue on blogstyle
|
125 |
-
Added: Swedish translations
|
126 |
-
|
127 |
-
= 1.1.9 =
|
128 |
-
New: Option to set minimal user role for adding and managing feeds and themes
|
129 |
-
Fixed: Masonry feed thumbnails overlay opacity (Pro)
|
130 |
-
|
131 |
-
= 1.1.8 =
|
132 |
-
Changed: Font-Awesome updated to version 4.6.3
|
133 |
-
|
134 |
-
= 1.1.7 =
|
135 |
-
New: Featured themes admin page
|
136 |
-
Fixed: Javascript error in hashtag feed
|
137 |
-
|
138 |
-
= 1.1.6 =
|
139 |
-
Change: Added compatibility with "All in one SEO pack" and other plugins running shortcodes in page head
|
140 |
-
|
141 |
-
= 1.1.5 =
|
142 |
-
Fixed: javascript error on firefox and safari
|
143 |
-
|
144 |
-
= 1.1.4 =
|
145 |
-
Fixed: Error handling in case of wrong access_token
|
146 |
-
Fixed: Image description not opening after pagination (Pro)
|
147 |
-
Fixed: Do not show load more button if feed media are finished
|
148 |
-
Fixed: Infinite scroll triggering bug (Pro)
|
149 |
-
|
150 |
-
= 1.1.3 =
|
151 |
-
New: French translation (Thanks to Guillaume Barjou)
|
152 |
-
New: English US and UK translation files. Edit them to change default strings
|
153 |
-
Fixed: Image sizes and overwflows in thumbnails layout
|
154 |
-
Fixed: Lightbox filmstrip thumb styles (Pro)
|
155 |
-
|
156 |
-
= 1.1.2 =
|
157 |
-
Fixed: Bug when saving theme data to some MySQL 5.6 databases
|
158 |
-
Changed: Pagination of hashtag feeds restored
|
159 |
-
Changed: Check and get user id on frontend if empty for some unknown reason
|
160 |
-
|
161 |
-
= 1.1.1 =
|
162 |
-
fix: bug when duplicating feeds
|
163 |
-
|
164 |
-
= 1.1.0 =
|
165 |
-
new: Instagram new API
|
166 |
-
new: Spanish translation (Thanks to Alexandro Lacadena Gomez)
|
167 |
-
|
168 |
-
= 1.0.10 =
|
169 |
-
Temporarily disable pagination in hashtag based feeds
|
170 |
-
Updated Russian Translations ( Thanks to Alex Petrin )
|
171 |
-
|
172 |
-
= 1.0.9 =
|
173 |
-
Bug fixes
|
174 |
-
|
175 |
-
= 1.0.8 =
|
176 |
-
Show video play button when redirect is enabled
|
177 |
-
|
178 |
-
= 1.0.7 =
|
179 |
-
new: Image Hover Effects
|
180 |
-
|
181 |
-
= 1.0.6 =
|
182 |
-
new: Conditional Filters (Pro)
|
183 |
-
new: Option for displaying username in masonry/thumbnails view (Pro)
|
184 |
-
new: Russian translation (Thanks to Ruslan Tertyshny).
|
185 |
-
|
186 |
-
= 1.0.2 =
|
187 |
-
fix: PHP error after plugin update
|
188 |
-
|
189 |
-
= 1.0.1 =
|
190 |
-
fix: PHP 5.3 compatibility
|
191 |
-
fix: video redirect bug
|
192 |
-
change: user info styles
|
193 |
-
|
194 |
-
= 1.0.0 =
|
195 |
-
Initial version
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
frontend/views/WDIViewGalleryBox.php
CHANGED
@@ -85,25 +85,8 @@ class WDIViewGalleryBox {
|
|
85 |
$enable_share_buttons = (isset($current_feed['popup_enable_share_buttons']) ? esc_html($current_feed['popup_enable_share_buttons']) : 1);
|
86 |
$image_right_click = (isset($current_feed['popup_image_right_click']) ? esc_html($current_feed['popup_image_right_click']) : 1);
|
87 |
|
88 |
-
|
89 |
-
$watermark_type = (isset($_GET['watermark_type']) ? esc_html($_GET['watermark_type']) : 'none');/*watch later*//*deprecated*/
|
90 |
-
$watermark_text = (isset($_GET['watermark_text']) ? esc_html($_GET['watermark_text']) : '');/*watch later*//*deprecated*/
|
91 |
-
$watermark_font_size = (isset($_GET['watermark_font_size']) ? esc_html($_GET['watermark_font_size']) : 12);/*watch later*//*deprecated*/
|
92 |
-
$watermark_font = (isset($_GET['watermark_font']) ? esc_html($_GET['watermark_font']) : 'Arial');/*watch later*//*deprecated*/
|
93 |
-
$watermark_color = (isset($_GET['watermark_color']) ? esc_html($_GET['watermark_color']) : 'FFFFFF');/*watch later*//*deprecated*/
|
94 |
-
$watermark_opacity = (isset($_GET['watermark_opacity']) ? esc_html($_GET['watermark_opacity']) : 30);/*watch later*//*deprecated*/
|
95 |
-
$watermark_position = explode('-', (isset($_GET['watermark_position']) ? esc_html($_GET['watermark_position']) : 'bottom-right'));/*watch later*//*deprecated*/
|
96 |
-
$watermark_link = (isset($_GET['watermark_link']) ? esc_html($_GET['watermark_link']) : '');/*watch later*//*deprecated*/
|
97 |
-
$watermark_url = (isset($_GET['watermark_url']) ? esc_html($_GET['watermark_url']) : '');/*watch later*//*deprecated*/
|
98 |
-
$watermark_width = (isset($_GET['watermark_width']) ? esc_html($_GET['watermark_width']) : 90);/*watch later*//*deprecated*/
|
99 |
-
$watermark_height = (isset($_GET['watermark_height']) ? esc_html($_GET['watermark_height']) : 90);/*watch later*//*deprecated*/
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
//$option_row = $this->model->get_option_row_data();
|
105 |
|
106 |
-
|
107 |
// $image_right_click = 0; //$option_row->image_right_click;/*watch later havent this options*/
|
108 |
$comment_moderation = 0;//$option_row->comment_moderation;/*watch later havent this options*/
|
109 |
|
@@ -180,25 +163,9 @@ class WDIViewGalleryBox {
|
|
180 |
'enable_image_google' => $enable_image_google,
|
181 |
'enable_image_pinterest' => $enable_image_pinterest,
|
182 |
'enable_image_tumblr' => $enable_image_tumblr,
|
183 |
-
'watermark_type' => $watermark_type,
|
184 |
'current_url' => $current_url
|
185 |
);
|
186 |
-
|
187 |
-
$params_array['watermark_link'] = $watermark_link;
|
188 |
-
$params_array['watermark_opacity'] = $watermark_opacity;
|
189 |
-
$params_array['watermark_position'] = $watermark_position;
|
190 |
-
}
|
191 |
-
if ($watermark_type == 'text') {
|
192 |
-
$params_array['watermark_text'] = $watermark_text;
|
193 |
-
$params_array['watermark_font_size'] = $watermark_font_size;
|
194 |
-
$params_array['watermark_font'] = $watermark_font;
|
195 |
-
$params_array['watermark_color'] = $watermark_color;
|
196 |
-
}
|
197 |
-
elseif ($watermark_type == 'image') {
|
198 |
-
$params_array['watermark_url'] = $watermark_url;
|
199 |
-
$params_array['watermark_width'] = $watermark_width;
|
200 |
-
$params_array['watermark_height'] = $watermark_height;
|
201 |
-
}
|
202 |
$popup_url = add_query_arg(array($params_array), admin_url('admin-ajax.php'));
|
203 |
$filmstrip_thumb_margin = $theme_row->lightbox_filmstrip_thumb_margin;
|
204 |
$margins_split = explode(" ", $filmstrip_thumb_margin);
|
@@ -713,41 +680,6 @@ class WDIViewGalleryBox {
|
|
713 |
-ms-user-select: none;
|
714 |
user-select: none;
|
715 |
}
|
716 |
-
.wdi_watermark_container {
|
717 |
-
display: table-cell;
|
718 |
-
margin: 0 auto;
|
719 |
-
position: relative;
|
720 |
-
vertical-align: middle;
|
721 |
-
}
|
722 |
-
.wdi_watermark_spun {
|
723 |
-
display: table-cell;
|
724 |
-
overflow: hidden;
|
725 |
-
position: relative;
|
726 |
-
text-align: <?php echo $watermark_position[1]; ?>;
|
727 |
-
vertical-align: <?php echo $watermark_position[0]; ?>;
|
728 |
-
/*z-index: 10140;*/
|
729 |
-
}
|
730 |
-
.wdi_watermark_image {
|
731 |
-
margin: 4px;
|
732 |
-
max-height: <?php echo $watermark_height; ?>px;
|
733 |
-
max-width: <?php echo $watermark_width; ?>px;
|
734 |
-
opacity: <?php echo number_format($watermark_opacity / 100, 2, ".", ""); ?>;
|
735 |
-
filter: Alpha(opacity=<?php echo $watermark_opacity; ?>);
|
736 |
-
position: relative;
|
737 |
-
z-index: 10141;
|
738 |
-
}
|
739 |
-
.wdi_watermark_text,
|
740 |
-
.wdi_watermark_text:hover {
|
741 |
-
text-decoration: none;
|
742 |
-
margin: 4px;
|
743 |
-
font-size: <?php echo $watermark_font_size; ?>px;
|
744 |
-
font-family: <?php echo $watermark_font; ?>;
|
745 |
-
color: <?php echo $watermark_color; ?> !important;
|
746 |
-
opacity: <?php echo number_format($watermark_opacity / 100, 2, ".", ""); ?>;
|
747 |
-
filter: Alpha(opacity=<?php echo $watermark_opacity; ?>);
|
748 |
-
position: relative;
|
749 |
-
z-index: 10141;
|
750 |
-
}
|
751 |
.wdi_slide_container {
|
752 |
display: table-cell;
|
753 |
position: absolute;
|
@@ -1204,32 +1136,6 @@ class WDIViewGalleryBox {
|
|
1204 |
</div>
|
1205 |
<?php
|
1206 |
}
|
1207 |
-
if ($watermark_type != 'none') {
|
1208 |
-
?>
|
1209 |
-
<div class="wdi_image_container">
|
1210 |
-
<div class="wdi_watermark_container">
|
1211 |
-
<div style="display:table; margin:0 auto;">
|
1212 |
-
<span class="wdi_watermark_spun" id="wdi_watermark_container">
|
1213 |
-
<?php
|
1214 |
-
if ($watermark_type == 'image') {
|
1215 |
-
?>
|
1216 |
-
<a href="<?php echo urldecode($watermark_link); ?>" target="_blank">
|
1217 |
-
<img class="wdi_watermark_image wdi_watermark" src="<?php echo $watermark_url; ?>" />
|
1218 |
-
</a>
|
1219 |
-
<?php
|
1220 |
-
}
|
1221 |
-
elseif ($watermark_type == 'text') {
|
1222 |
-
?>
|
1223 |
-
<a class="wdi_none_selectable wdi_watermark_text wdi_watermark" target="_blank" href="<?php echo $watermark_link; ?>"><?php echo $watermark_text; ?></a>
|
1224 |
-
<?php
|
1225 |
-
}
|
1226 |
-
?>
|
1227 |
-
</span>
|
1228 |
-
</div>
|
1229 |
-
</div>
|
1230 |
-
</div>
|
1231 |
-
<?php
|
1232 |
-
}
|
1233 |
?>
|
1234 |
<div id="wdi_image_container" class="wdi_image_container">
|
1235 |
<div class="wdi_image_info_container1">
|
@@ -1446,23 +1352,10 @@ class WDIViewGalleryBox {
|
|
1446 |
var width = wdi_current_image_span.width();
|
1447 |
var height = wdi_current_image_span.height();
|
1448 |
|
1449 |
-
|
1450 |
-
jQuery(".wdi_watermark_spun").width(width);
|
1451 |
-
jQuery(".wdi_watermark_spun").height(height);
|
1452 |
-
jQuery(".wdi_watermark").css({display: ''});
|
1453 |
-
/* Set watermark image size.*/
|
1454 |
var comment_container_width = 0;
|
1455 |
if (jQuery(".wdi_comment_container").hasClass("wdi_open")) {
|
1456 |
comment_container_width = <?php echo $theme_row->lightbox_comment_width; ?>;
|
1457 |
}
|
1458 |
-
if (width <= (jQuery(window).width() - comment_container_width)) {
|
1459 |
-
jQuery(".wdi_watermark_image").css({
|
1460 |
-
width: ((jQuery(".wdi_spider_popup_wrap").width() - comment_container_width) * <?php echo $watermark_width / $image_width; ?>)
|
1461 |
-
});
|
1462 |
-
jQuery(".wdi_watermark_text, .wdi_watermark_text:hover").css({
|
1463 |
-
fontSize: ((jQuery(".wdi_spider_popup_wrap").width() - comment_container_width) * <?php echo $watermark_font_size / $image_width; ?>)
|
1464 |
-
});
|
1465 |
-
}
|
1466 |
}, 800);
|
1467 |
}
|
1468 |
});
|
@@ -1906,8 +1799,6 @@ class WDIViewGalleryBox {
|
|
1906 |
/*jQuery("#wdi_spider_popup_left").hover().css({"display": "inline"});
|
1907 |
jQuery("#wdi_spider_popup_right").hover().css({"display": "inline"});*/
|
1908 |
jQuery(".wdi_image_count").html(wdi_data[key]["number"]);
|
1909 |
-
/* Set filmstrip initial position.*/
|
1910 |
-
jQuery(".wdi_watermark").css({display: 'none'});
|
1911 |
/* Set active thumbnail position.*/
|
1912 |
wdi_current_filmstrip_pos = key * (jQuery(".wdi_filmstrip_thumbnail").<?php echo $width_or_height; ?>() + 2 + 2 * <?php echo $theme_row->lightbox_filmstrip_thumb_border_width; ?>);
|
1913 |
wdi_current_key = key;
|
@@ -2296,7 +2187,6 @@ class WDIViewGalleryBox {
|
|
2296 |
/* Open/close comments.*/
|
2297 |
function wdi_comment() {
|
2298 |
|
2299 |
-
jQuery(".wdi_watermark").css({display: 'none'});
|
2300 |
if (jQuery(".wdi_comment_container").hasClass("wdi_open")) {
|
2301 |
|
2302 |
/* Close comment.*/
|
@@ -2469,7 +2359,6 @@ class WDIViewGalleryBox {
|
|
2469 |
else {
|
2470 |
wdi_popup_resize();
|
2471 |
}
|
2472 |
-
jQuery(".wdi_watermark").css({display: 'none'});
|
2473 |
setTimeout(function () {
|
2474 |
wdi_change_watermark_container();
|
2475 |
}, 500);
|
@@ -2656,7 +2545,6 @@ class WDIViewGalleryBox {
|
|
2656 |
});
|
2657 |
/* Maximize/minimize.*/
|
2658 |
jQuery(".wdi_resize-full").on(wdi_click, function () {
|
2659 |
-
jQuery(".wdi_watermark").css({display: 'none'});
|
2660 |
var comment_container_width = 0;
|
2661 |
if (jQuery(".wdi_comment_container").hasClass("wdi_open")) {
|
2662 |
comment_container_width = jQuery(".wdi_comment_container").width();
|
@@ -2758,7 +2646,6 @@ class WDIViewGalleryBox {
|
|
2758 |
/* Fullscreen.*/
|
2759 |
/*Toggle with mouse click*/
|
2760 |
jQuery(".wdi_fullscreen").on(wdi_click, function () {
|
2761 |
-
jQuery(".wdi_watermark").css({display: 'none'});
|
2762 |
var comment_container_width = 0;
|
2763 |
if (jQuery(".wdi_comment_container").hasClass("wdi_open")) {
|
2764 |
comment_container_width = jQuery(".wdi_comment_container").width();
|
@@ -2928,7 +2815,6 @@ class WDIViewGalleryBox {
|
|
2928 |
});
|
2929 |
/* Open with fullscreen.*/
|
2930 |
function wdi_open_with_fullscreen() {
|
2931 |
-
jQuery(".wdi_watermark").css({display: 'none'});
|
2932 |
var comment_container_width = 0;
|
2933 |
if (jQuery(".wdi_comment_container").hasClass("wdi_open")) {
|
2934 |
comment_container_width = jQuery(".wdi_comment_container").width();
|
85 |
$enable_share_buttons = (isset($current_feed['popup_enable_share_buttons']) ? esc_html($current_feed['popup_enable_share_buttons']) : 1);
|
86 |
$image_right_click = (isset($current_feed['popup_image_right_click']) ? esc_html($current_feed['popup_image_right_click']) : 1);
|
87 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
//$option_row = $this->model->get_option_row_data();
|
89 |
|
|
|
90 |
// $image_right_click = 0; //$option_row->image_right_click;/*watch later havent this options*/
|
91 |
$comment_moderation = 0;//$option_row->comment_moderation;/*watch later havent this options*/
|
92 |
|
163 |
'enable_image_google' => $enable_image_google,
|
164 |
'enable_image_pinterest' => $enable_image_pinterest,
|
165 |
'enable_image_tumblr' => $enable_image_tumblr,
|
|
|
166 |
'current_url' => $current_url
|
167 |
);
|
168 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
$popup_url = add_query_arg(array($params_array), admin_url('admin-ajax.php'));
|
170 |
$filmstrip_thumb_margin = $theme_row->lightbox_filmstrip_thumb_margin;
|
171 |
$margins_split = explode(" ", $filmstrip_thumb_margin);
|
680 |
-ms-user-select: none;
|
681 |
user-select: none;
|
682 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
683 |
.wdi_slide_container {
|
684 |
display: table-cell;
|
685 |
position: absolute;
|
1136 |
</div>
|
1137 |
<?php
|
1138 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1139 |
?>
|
1140 |
<div id="wdi_image_container" class="wdi_image_container">
|
1141 |
<div class="wdi_image_info_container1">
|
1352 |
var width = wdi_current_image_span.width();
|
1353 |
var height = wdi_current_image_span.height();
|
1354 |
|
|
|
|
|
|
|
|
|
|
|
1355 |
var comment_container_width = 0;
|
1356 |
if (jQuery(".wdi_comment_container").hasClass("wdi_open")) {
|
1357 |
comment_container_width = <?php echo $theme_row->lightbox_comment_width; ?>;
|
1358 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1359 |
}, 800);
|
1360 |
}
|
1361 |
});
|
1799 |
/*jQuery("#wdi_spider_popup_left").hover().css({"display": "inline"});
|
1800 |
jQuery("#wdi_spider_popup_right").hover().css({"display": "inline"});*/
|
1801 |
jQuery(".wdi_image_count").html(wdi_data[key]["number"]);
|
|
|
|
|
1802 |
/* Set active thumbnail position.*/
|
1803 |
wdi_current_filmstrip_pos = key * (jQuery(".wdi_filmstrip_thumbnail").<?php echo $width_or_height; ?>() + 2 + 2 * <?php echo $theme_row->lightbox_filmstrip_thumb_border_width; ?>);
|
1804 |
wdi_current_key = key;
|
2187 |
/* Open/close comments.*/
|
2188 |
function wdi_comment() {
|
2189 |
|
|
|
2190 |
if (jQuery(".wdi_comment_container").hasClass("wdi_open")) {
|
2191 |
|
2192 |
/* Close comment.*/
|
2359 |
else {
|
2360 |
wdi_popup_resize();
|
2361 |
}
|
|
|
2362 |
setTimeout(function () {
|
2363 |
wdi_change_watermark_container();
|
2364 |
}, 500);
|
2545 |
});
|
2546 |
/* Maximize/minimize.*/
|
2547 |
jQuery(".wdi_resize-full").on(wdi_click, function () {
|
|
|
2548 |
var comment_container_width = 0;
|
2549 |
if (jQuery(".wdi_comment_container").hasClass("wdi_open")) {
|
2550 |
comment_container_width = jQuery(".wdi_comment_container").width();
|
2646 |
/* Fullscreen.*/
|
2647 |
/*Toggle with mouse click*/
|
2648 |
jQuery(".wdi_fullscreen").on(wdi_click, function () {
|
|
|
2649 |
var comment_container_width = 0;
|
2650 |
if (jQuery(".wdi_comment_container").hasClass("wdi_open")) {
|
2651 |
comment_container_width = jQuery(".wdi_comment_container").width();
|
2815 |
});
|
2816 |
/* Open with fullscreen.*/
|
2817 |
function wdi_open_with_fullscreen() {
|
|
|
2818 |
var comment_container_width = 0;
|
2819 |
if (jQuery(".wdi_comment_container").hasClass("wdi_open")) {
|
2820 |
comment_container_width = jQuery(".wdi_comment_container").width();
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: custom instagram feed, feed, instagram, hashtag, Instagram feed, instagram
|
|
5 |
Requires at least: 3.9
|
6 |
Requires PHP: 5.2
|
7 |
Tested up to: 4.9
|
8 |
-
Stable tag: 1.2.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -111,6 +111,12 @@ After downloading the ZIP file of the Instagram Feed WD plugin,
|
|
111 |
|
112 |
== Changelog ==
|
113 |
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
= 1.2.8 =
|
115 |
Changed: Allow more users and hashtags in feed settings
|
116 |
|
5 |
Requires at least: 3.9
|
6 |
Requires PHP: 5.2
|
7 |
Tested up to: 4.9
|
8 |
+
Stable tag: 1.2.10
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
111 |
|
112 |
== Changelog ==
|
113 |
|
114 |
+
= 1.2.10 =
|
115 |
+
Fixed: CSS XSS vulnerability in lightbox
|
116 |
+
|
117 |
+
= 1.2.9 =
|
118 |
+
Changed: Web-Dorado links
|
119 |
+
|
120 |
= 1.2.8 =
|
121 |
Changed: Allow more users and hashtags in feed settings
|
122 |
|
wd-instagram-feed.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Instagram Feed WD
|
4 |
Plugin URI: https://web-dorado.com/products/wordpress-instagram-feed-wd.html
|
5 |
Description: WD Instagram Feed is a user-friendly tool for displaying user or hashtag-based feeds on your website. You can create feeds with one of the available layouts. It allows displaying image metadata, open up images in lightbox, download them and even share in social networking websites.
|
6 |
-
Version: 1.2.
|
7 |
Author: WebDorado
|
8 |
Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
|
9 |
License: GPLv2 or later
|
@@ -21,7 +21,7 @@ define("WDI_META", "_".WDI_VAR."_meta");
|
|
21 |
//define("wdi",'wdi');
|
22 |
define('WDI_FEED_TABLE','wdi_feeds');
|
23 |
define('WDI_THEME_TABLE','wdi_themes');
|
24 |
-
define('WDI_VERSION','1.2.
|
25 |
define('WDI_IS_PRO','false');
|
26 |
|
27 |
|
3 |
Plugin Name: Instagram Feed WD
|
4 |
Plugin URI: https://web-dorado.com/products/wordpress-instagram-feed-wd.html
|
5 |
Description: WD Instagram Feed is a user-friendly tool for displaying user or hashtag-based feeds on your website. You can create feeds with one of the available layouts. It allows displaying image metadata, open up images in lightbox, download them and even share in social networking websites.
|
6 |
+
Version: 1.2.10
|
7 |
Author: WebDorado
|
8 |
Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
|
9 |
License: GPLv2 or later
|
21 |
//define("wdi",'wdi');
|
22 |
define('WDI_FEED_TABLE','wdi_feeds');
|
23 |
define('WDI_THEME_TABLE','wdi_themes');
|
24 |
+
define('WDI_VERSION','1.2.10');
|
25 |
define('WDI_IS_PRO','false');
|
26 |
|
27 |
|