Version Description
Added: "How to publish feed" tab in feeds editor screen
Added: Closeable metaboxes in feeds editor screen
Added: Feed preview button in feeds editor screen
Changed: Save, apply and cancel buttons in feed and theme editor screens
Changed: Feed and theme title input design
Fixed: Minor bugs and conflicts with some themes
Improved: Shortcode popup design
Removed: Update submenu (Premium)
Download this release
Release Info
Developer | webdorado |
Plugin | WD Instagram Feed – Instagram Gallery |
Version | 1.2.15 |
Comparing to | |
See all releases |
Code changes from version 1.2.14 to 1.2.15
- admin/controllers/WDIControllerUninstall_wdi.php +4 -0
- admin/models/WDIModelFeeds_wdi.php +36 -0
- admin/views/WDIViewEditorShortcode.php +21 -22
- admin/views/WDIViewFeeds_wdi.php +92 -33
- changelog.txt +228 -0
- css/wd_bp_install.css +1 -1
- css/wd_bp_install.min.css +1 -1
- css/wdi_backend.css +103 -9
- css/wdi_backend.min.css +1 -1
- css/wdi_frontend.css +9 -8
- css/wdi_frontend.min.css +1 -1
- framework/WDI_form_builder.php +77 -5
- frontend/shortcode.php +24 -7
- frontend/views/WDIViewImageBrowser_view.php +2 -2
- frontend/views/WDIViewThumbnails_view.php +1 -1
- images/how_to_publish_shortcode.png +0 -0
- images/how_to_publish_widget.png +0 -0
- images/logo.png +0 -0
- images/seo_logo.png +0 -0
- images/wd_assets/filtered-fields.svg +46 -0
- images/wd_assets/gallery.svg +130 -0
- images/wd_assets/layout.svg +10 -0
- images/wd_assets/lightbox.svg +16 -0
- images/wd_assets/themes.svg +27 -0
- images/wd_assets/wdi_main_plugin.svg +105 -0
- images/wd_assets/widget.svg +17 -0
- js/shortcode.js +5 -0
- js/wdi_admin.js +89 -5
- js/wdi_admin.min.js +1 -1
- js/wdi_frontend.js +56 -17
- js/wdi_frontend.min.js +1 -1
- readme.txt +19 -31
- wd-instagram-feed.php +39 -18
admin/controllers/WDIControllerUninstall_wdi.php
CHANGED
@@ -116,6 +116,10 @@ class WDIControllerUninstall_wdi{
|
|
116 |
|
117 |
add_option(WDI_OPT,$default_option);
|
118 |
delete_option('wdi_version');
|
|
|
|
|
|
|
|
|
119 |
}else{
|
120 |
$this->display();
|
121 |
}
|
116 |
|
117 |
add_option(WDI_OPT,$default_option);
|
118 |
delete_option('wdi_version');
|
119 |
+
$row = get_posts(array( 'post_type' => "wdi_instagram" ));
|
120 |
+
if ( !empty($row[0]) ) {
|
121 |
+
wp_delete_post( $row[0]->ID, true );
|
122 |
+
}
|
123 |
}else{
|
124 |
$this->display();
|
125 |
}
|
admin/models/WDIModelFeeds_wdi.php
CHANGED
@@ -270,6 +270,42 @@ private function check_settings($settings){
|
|
270 |
$settings = WDILibrary::arrayToObject($settings);
|
271 |
return $settings;
|
272 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
273 |
|
274 |
}
|
275 |
?>
|
270 |
$settings = WDILibrary::arrayToObject($settings);
|
271 |
return $settings;
|
272 |
}
|
273 |
+
/**
|
274 |
+
* Create Preview Instagram post.
|
275 |
+
*
|
276 |
+
* @return string $guid
|
277 |
+
*/
|
278 |
+
public function get_instagram_preview_post() {
|
279 |
+
global $wpdb;
|
280 |
+
$post_type = 'wdi_instagram';
|
281 |
+
$row = get_posts(array( 'post_type' => $post_type , 'post_status' => 'private'));
|
282 |
+
if ( !empty($row[0]) ) {
|
283 |
+
return $row[0]->guid;
|
284 |
+
}
|
285 |
+
else {
|
286 |
+
$post_params = array(
|
287 |
+
'post_author' => 1,
|
288 |
+
'post_status' => 'private',
|
289 |
+
'post_content' => '[wdi_preview]',
|
290 |
+
'post_title' => 'Preview',
|
291 |
+
'post_type' => $post_type,
|
292 |
+
'comment_status' => 'closed',
|
293 |
+
'ping_status' => 'closed',
|
294 |
+
'post_parent' => 0,
|
295 |
+
'menu_order' => 0,
|
296 |
+
'import_id' => 0,
|
297 |
+
);
|
298 |
+
// Create new post by fmformpreview type.
|
299 |
+
if ( wp_insert_post($post_params) ) {
|
300 |
+
flush_rewrite_rules();
|
301 |
+
|
302 |
+
return get_the_guid($wpdb->insert_id);
|
303 |
+
}
|
304 |
+
else {
|
305 |
+
return "";
|
306 |
+
}
|
307 |
+
}
|
308 |
+
}
|
309 |
|
310 |
}
|
311 |
?>
|
admin/views/WDIViewEditorShortcode.php
CHANGED
@@ -25,6 +25,9 @@ class WDIViewEditorShortcode {
|
|
25 |
public function display() {
|
26 |
$rows = WDILibrary::objectToArray($this->model->get_row_data());
|
27 |
wp_print_scripts('jquery');
|
|
|
|
|
|
|
28 |
|
29 |
?>
|
30 |
<style type="text/css">
|
@@ -58,11 +61,15 @@ class WDIViewEditorShortcode {
|
|
58 |
margin:0 auto;
|
59 |
}
|
60 |
.wdi_feed_thumb img{
|
61 |
-
max-height:
|
62 |
-
max-width:
|
63 |
width: auto;
|
64 |
height: auto;
|
65 |
}
|
|
|
|
|
|
|
|
|
66 |
.table-cell{
|
67 |
display: table-cell;
|
68 |
vertical-align: middle;
|
@@ -74,25 +81,12 @@ class WDIViewEditorShortcode {
|
|
74 |
.wdi_feed_name{
|
75 |
padding: 5px;
|
76 |
}
|
77 |
-
|
78 |
-
background: #00a0d2;
|
79 |
-
border-color: #0073aa;
|
80 |
-
-webkit-box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.5), 0 1px 0 rgba( 0, 0, 0, 0.15 );
|
81 |
-
box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.5 ), 0 1px 0 rgba( 0, 0, 0, 0.15 );
|
82 |
-
color: #fff;
|
83 |
-
text-decoration: none;
|
84 |
-
display: inline-block;
|
85 |
-
text-align: right;
|
86 |
-
height: 30px;
|
87 |
-
line-height: 28px;
|
88 |
padding: 0 12px 2px;
|
89 |
-
|
90 |
-
border: 1px solid #948888;
|
91 |
-
}
|
92 |
-
.wdi_editor_insert:hover{
|
93 |
-
cursor: pointer;
|
94 |
}
|
95 |
</style>
|
|
|
96 |
<div id="wdi_editor_popup">
|
97 |
<div class="editor_popup_container styled-select">
|
98 |
<div class="wdi_feed_select table-row">
|
@@ -104,11 +98,15 @@ class WDIViewEditorShortcode {
|
|
104 |
<option value="<?php echo $row['id']?>"><?php echo $row["feed_name"]?></option>
|
105 |
<?php
|
106 |
}?>
|
107 |
-
</select
|
108 |
-
|
109 |
-
|
110 |
-
|
|
|
111 |
</div>
|
|
|
|
|
|
|
112 |
</div>
|
113 |
</div>
|
114 |
<script>
|
@@ -140,6 +138,7 @@ class WDIViewEditorShortcode {
|
|
140 |
window.parent.tb_remove();
|
141 |
}
|
142 |
</script>
|
|
|
143 |
<?php
|
144 |
die();
|
145 |
}
|
25 |
public function display() {
|
26 |
$rows = WDILibrary::objectToArray($this->model->get_row_data());
|
27 |
wp_print_scripts('jquery');
|
28 |
+
wp_print_scripts('wdi-shortcode');
|
29 |
+
wp_print_styles('wp-admin');
|
30 |
+
wp_print_styles('buttons');
|
31 |
|
32 |
?>
|
33 |
<style type="text/css">
|
61 |
margin:0 auto;
|
62 |
}
|
63 |
.wdi_feed_thumb img{
|
64 |
+
max-height: 40px;
|
65 |
+
max-width: 40px;
|
66 |
width: auto;
|
67 |
height: auto;
|
68 |
}
|
69 |
+
.wdi_feed_select{
|
70 |
+
float: left;
|
71 |
+
padding: 8px;
|
72 |
+
}
|
73 |
.table-cell{
|
74 |
display: table-cell;
|
75 |
vertical-align: middle;
|
81 |
.wdi_feed_name{
|
82 |
padding: 5px;
|
83 |
}
|
84 |
+
#wdi_editor_insert_btn{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
padding: 0 12px 2px;
|
86 |
+
margin-right: 5px;
|
|
|
|
|
|
|
|
|
87 |
}
|
88 |
</style>
|
89 |
+
<body class="wp-core-ui" data-width="400" data-height="140">
|
90 |
<div id="wdi_editor_popup">
|
91 |
<div class="editor_popup_container styled-select">
|
92 |
<div class="wdi_feed_select table-row">
|
98 |
<option value="<?php echo $row['id']?>"><?php echo $row["feed_name"]?></option>
|
99 |
<?php
|
100 |
}?>
|
101 |
+
</select>
|
102 |
+
|
103 |
+
<button id="wdi_editor_insert_btn" class="wdi_editor_insert wd-button button-primary">Insert</button>
|
104 |
+
|
105 |
+
</span>
|
106 |
</div>
|
107 |
+
<!-- <div style="text-align:right">
|
108 |
+
<button id="wdi_editor_insert_btn" class="wdi_editor_insert wd-button button-primary">Insert</button>
|
109 |
+
</div>-->
|
110 |
</div>
|
111 |
</div>
|
112 |
<script>
|
138 |
window.parent.tb_remove();
|
139 |
}
|
140 |
</script>
|
141 |
+
</body>
|
142 |
<?php
|
143 |
die();
|
144 |
}
|
admin/views/WDIViewFeeds_wdi.php
CHANGED
@@ -250,9 +250,11 @@ class WDIViewFeeds_wdi
|
|
250 |
"title" => "Media",
|
251 |
"type" => "full",
|
252 |
"column" => "two",
|
|
|
|
|
253 |
"elements" => array(
|
254 |
array(
|
255 |
-
'feed_name' => array('name' => 'feed_name', 'title' => __('Feed Title', "wd-instagram-feed"), 'type' => 'input', 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
|
256 |
'liked_feed' => array('disabled_options' => array('liked'), 'disabled' => array('text' => __("Feed of liked media is available only in paid version", "wd-instagram-feed")), 'name' => 'liked_feed', 'title' => __('Feed Media', "wd-instagram-feed"), 'type' => 'select', 'valid_options' => array('userhash' => __('Username/Hashtag', "wd-instagram-feed"), 'liked' => __('Media I liked', "wd-instagram-feed")), 'break' => 'false', 'hide_ids' => array('liked' => 'feed_users,thumb_user'), 'tooltip' => __('Display media of User/Hashtag or the media I liked', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
|
257 |
'feed_users' => array('name' => 'feed_users', 'title' => __('Feed Usernames and Hashtags', "wd-instagram-feed"), 'type' => 'input', 'input_type' => 'hidden', 'tooltip' => sprintf('%s', __('Add usernames or hashtags to your feed. Hashtags must start with #, usernames shouldn\'t start with @.', "wd-instagram-feed")), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
|
258 |
),
|
@@ -268,6 +270,7 @@ class WDIViewFeeds_wdi
|
|
268 |
"title" => "Layout and Pagination",
|
269 |
"type" => "half",
|
270 |
"column" => "one",
|
|
|
271 |
"elements" => array(
|
272 |
array(
|
273 |
'feed_display_view' => array('name' => 'feed_display_view', 'title' => __('New Media Loading', "wd-instagram-feed"), 'type' => 'select', 'valid_options' => array('pagination' => __('Pagination', "wd-instagram-feed"), 'load_more_btn' => __('Load More Button', "wd-instagram-feed"), 'infinite_scroll' => __('Infinite Scroll', "wd-instagram-feed"), 'none' => __('None', "wd-instagram-feed")),'disabled_options' => array('infinite_scroll'),'disabled' => array('text' => __("Infinite Scroll option is available only in paid version", "wd-instagram-feed")), 'break' => 'true', 'hide_ids' => array('pagination' => 'number_of_photos,load_more_number,resort_after_load_more', 'load_more_btn' => 'pagination_per_page_number,pagination_preload_number', 'infinite_scroll' => 'pagination_per_page_number,pagination_preload_number', 'none' => 'pagination_preload_number,pagination_per_page_number,load_more_number,resort_after_load_more'), 'tooltip' => __('How to load and display new images/videos', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style'))),
|
@@ -288,20 +291,21 @@ class WDIViewFeeds_wdi
|
|
288 |
"title" => "Advanced",
|
289 |
"type" => "half",
|
290 |
"column" => "one",
|
|
|
291 |
"elements" => array(
|
292 |
array(
|
293 |
'theme_id' => array('switched' => 'off', 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("Changing Theme is available only in paid version", "wd-instagram-feed"), 'br' => 'true'), 'name' => 'theme_id', 'title' => __('Theme', "wd-instagram-feed"), 'valid_options' => $themes, 'type' => 'select', 'tooltip' => __('Styling theme of the feed. You can create themes in themes menu', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
|
294 |
'feed_resolution' => array('name' => 'feed_resolution', 'title' => __('Feed Media Resolution', "wd-instagram-feed"), 'type' => 'select', 'label' => array('text' => '', 'place' => 'after'), 'valid_options' => array('optimal' => 'Optimal', 'standard' => 'Standard (640 pixels)', 'low' => 'Low (320 pixels)', 'thumbnail' => 'Thumbnail (150 pixels)'), 'tooltip' => 'If set optimal, loaded media size is calculated according to container size. Fast loading and no stretched images.', 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
|
295 |
'thumb_user' => array('name' => 'thumb_user', 'title' => __('Featured Image', "wd-instagram-feed"), 'valid_options' => array(), 'type' => 'select', 'tooltip' => __('Select featured image for header section', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
|
296 |
'display_header' => array('name' => 'display_header', 'title' => __('Show Feed Header', "wd-instagram-feed"), 'type' => 'checkbox', 'tooltip' => __('Header includes feed title and featured image', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
|
|
|
297 |
'follow_on_instagram_btn' => array('name' => 'follow_on_instagram_btn', 'title' => __('Show "Follow On Instagram" button', "wd-instagram-feed"), 'type' => 'checkbox', 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
|
|
|
|
|
298 |
'show_description' => array('switched' => 'off', 'name' => 'show_description', 'title' => __('Show Media Caption', "wd-instagram-feed"), 'type' => 'checkbox', 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("This feature is available only in paid version", "wd-instagram-feed"), 'br' => 'true'), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
|
299 |
'show_likes' => array('switched' => 'off', 'name' => 'show_likes', 'title' => __('Show Number of Likes', "wd-instagram-feed"), 'type' => 'checkbox', 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("This feature is available only in paid version", "wd-instagram-feed"), 'br' => 'true'), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
|
300 |
'show_comments' => array('switched' => 'off', 'name' => 'show_comments', 'title' => __('Show Number of Comments', "wd-instagram-feed"), 'type' => 'checkbox', 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("This feature is available only in paid version", "wd-instagram-feed"), 'br' => 'true'), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
|
301 |
'show_username_on_thumb' => array('switched' => 'off', 'name' => 'show_username_on_thumb', 'title' => __('Show Username On Image Thumb', "wd-instagram-feed"), 'type' => 'checkbox', 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("This feature is available only in paid version", "wd-instagram-feed"), 'br' => 'true'), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry'))),
|
302 |
-
'show_usernames' => array('name' => 'show_usernames', 'title' => __('Show User Data', "wd-instagram-feed"), 'type' => 'checkbox', 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
|
303 |
-
'display_user_info' => array('name' => 'display_user_info', 'title' => __('Show User Bio', "wd-instagram-feed"), 'type' => 'checkbox', 'tooltip' => __('User bio will be displayed if feed has only one user', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
|
304 |
-
'display_user_post_follow_number' => array('name' => 'display_user_post_follow_number', 'title' => __('Show User Posts and Followers count', "wd-instagram-feed"), 'type' => 'checkbox', 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
|
305 |
'show_full_description' => array('name' => 'show_full_description', 'title' => __('Show Full Description', "wd-instagram-feed"), 'type' => 'checkbox', 'tooltip' => __('Discription will be shown no matter how long it is', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'masonry'))),
|
306 |
)
|
307 |
)
|
@@ -312,6 +316,8 @@ class WDIViewFeeds_wdi
|
|
312 |
"title" => "General",
|
313 |
"type" => "full",
|
314 |
"column" => "two",
|
|
|
|
|
315 |
"elements" => array(
|
316 |
array(
|
317 |
'popup_fullscreen' => array('name' => 'popup_fullscreen', 'title' => __('Full width lightbox', "wd-instagram-feed"), 'type' => 'radio', 'valid_options' => array('1' => __('Yes', "wd-instagram-feed"), '0' => __('No', "wd-instagram-feed")), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings')), 'hide_ids' => array('1' => 'popup_width,popup_height')),
|
@@ -329,6 +335,7 @@ class WDIViewFeeds_wdi
|
|
329 |
"title" => "Advanced",
|
330 |
"type" => "full",
|
331 |
"column" => "two",
|
|
|
332 |
"elements" => array(
|
333 |
array(
|
334 |
'popup_enable_filmstrip' => array('disabled_options' => array('1' => '', '0' => ''), 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("This feature is available only in paid version", "wd-instagram-feed"), 'br' => 'true'), 'name' => 'popup_enable_filmstrip', 'title' => __('Enable Filmstrip', "wd-instagram-feed"), 'type' => 'radio', 'valid_options' => array('1' => __('Yes', "wd-instagram-feed"), '0' => __('No', "wd-instagram-feed")), 'hide_ids' => array('0' => 'popup_filmstrip_height'), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))),
|
@@ -362,6 +369,8 @@ class WDIViewFeeds_wdi
|
|
362 |
"title" => __("This is free version, Conditional filters are available only in paid version", "wd-instagram-feed"),
|
363 |
"type" => "full",
|
364 |
"column" => "one",
|
|
|
|
|
365 |
"elements" => array(
|
366 |
array(
|
367 |
'conditional_filter_enable' => array('name' => 'conditional_filter_enable', 'title' => __('Enable Conditional Filters', "wd-instagram-feed"), 'type' => 'radio', 'valid_options' => array('1' => __('Yes', "wd-instagram-feed"), '0' => __('No', "wd-instagram-feed")), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'conditional_filters'))),
|
@@ -369,6 +378,25 @@ class WDIViewFeeds_wdi
|
|
369 |
)
|
370 |
)
|
371 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
372 |
)
|
373 |
);
|
374 |
$return = array('tabs' => $tabs, 'current_id' => $current_id);
|
@@ -380,8 +408,9 @@ public function genarateFeedViews()
|
|
380 |
{
|
381 |
?>
|
382 |
<div class="wdi_border_wrapper">
|
383 |
-
|
384 |
-
|
|
|
385 |
<div class="display_type" tab="feed_settings">
|
386 |
<div style="text-align:center;padding:2px;"><input type="radio" id="thumbnails" name="feed_type"
|
387 |
value="thumbnails"><label for="thumbnails">Thumbnails</label>
|
@@ -418,22 +447,44 @@ public function genarateFeedViews()
|
|
418 |
|
419 |
<?php
|
420 |
}
|
|
|
421 |
public function generateTabs()
|
422 |
{
|
423 |
?>
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
432 |
<?php
|
433 |
}
|
|
|
434 |
public function generateForm($current_id = ''){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
435 |
$formInfo = $this->getFormElements($current_id);
|
436 |
$tabs = $formInfo['tabs'];
|
|
|
437 |
|
438 |
global $wdi_options;
|
439 |
//for edit
|
@@ -445,6 +496,11 @@ public function genarateFeedViews()
|
|
445 |
else {
|
446 |
$feed_row = '';
|
447 |
}
|
|
|
|
|
|
|
|
|
|
|
448 |
?>
|
449 |
<div class="update-nag wdi_help_bar_wrap">
|
450 |
<span class="wdi_help_bar_text">
|
@@ -463,25 +519,18 @@ public function genarateFeedViews()
|
|
463 |
</div>
|
464 |
</div>
|
465 |
<div class="wrap">
|
466 |
-
<h2
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
<div id="wdi_save_feed_submit" class="button button-primary"><?php _e('Save', "wd-instagram-feed"); ?></div>
|
477 |
-
<div id="wdi_save_feed_apply" class="button button-primary"><?php _e('Apply', "wd-instagram-feed"); ?></div>
|
478 |
-
<div id="wdi_save_feed_reset" style="display:none"
|
479 |
-
class="button button-secondary"><?php _e('Reset', "wd-instagram-feed"); ?></div>
|
480 |
-
<div id="wdi_cancel_changes" class="button button-secondary"><?php _e('Cancel', "wd-instagram-feed"); ?></div>
|
481 |
-
</div>
|
482 |
<?php $this->generateTabs(); ?>
|
483 |
<?php $this->genarateFeedViews(); ?>
|
484 |
-
<form method="post" action="admin.php?page=wdi_feeds" id='wdi_save_feed'>
|
485 |
<?php wp_nonce_field('nonce_wd', 'nonce_wd'); ?>
|
486 |
<input type="hidden" id="wdi_feed_type" name='<?php echo WDI_FSN . '[feed_type]' ?>'>
|
487 |
<input type="hidden" id="task" name='task'>
|
@@ -500,9 +549,15 @@ public function genarateFeedViews()
|
|
500 |
<div class="form-table">
|
501 |
<?php foreach ($tabs as $key => $tab) { ?>
|
502 |
<div id="<?php echo $key; ?>_tab" class="wdi_tab" style="<?php echo $key == "feed_settings" ? "display:block;" : ""; ?>">
|
503 |
-
<?php foreach ($tab as $key => $section) {
|
|
|
|
|
|
|
|
|
|
|
504 |
<div id="<?php echo $key; ?>_section" class="wdi_section <?php echo $section["type"]; ?> <?php echo $section["column"]; ?>">
|
505 |
-
|
|
|
506 |
<div class="wdi_elements wdi_clear_tag">
|
507 |
<?php foreach ($section["elements"] as $elements) { ?>
|
508 |
<div class="section_col">
|
@@ -585,6 +640,10 @@ public function genarateFeedViews()
|
|
585 |
$builder->checkbox($element, $feed_row);
|
586 |
break;
|
587 |
}
|
|
|
|
|
|
|
|
|
588 |
}
|
589 |
}
|
590 |
|
250 |
"title" => "Media",
|
251 |
"type" => "full",
|
252 |
"column" => "two",
|
253 |
+
"visibility" =>"show",
|
254 |
+
"section_name"=>"wdi_media",
|
255 |
"elements" => array(
|
256 |
array(
|
257 |
+
//'feed_name' => array('name' => 'feed_name', 'title' => __('Feed Title', "wd-instagram-feed"), 'type' => 'input', 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
|
258 |
'liked_feed' => array('disabled_options' => array('liked'), 'disabled' => array('text' => __("Feed of liked media is available only in paid version", "wd-instagram-feed")), 'name' => 'liked_feed', 'title' => __('Feed Media', "wd-instagram-feed"), 'type' => 'select', 'valid_options' => array('userhash' => __('Username/Hashtag', "wd-instagram-feed"), 'liked' => __('Media I liked', "wd-instagram-feed")), 'break' => 'false', 'hide_ids' => array('liked' => 'feed_users,thumb_user'), 'tooltip' => __('Display media of User/Hashtag or the media I liked', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
|
259 |
'feed_users' => array('name' => 'feed_users', 'title' => __('Feed Usernames and Hashtags', "wd-instagram-feed"), 'type' => 'input', 'input_type' => 'hidden', 'tooltip' => sprintf('%s', __('Add usernames or hashtags to your feed. Hashtags must start with #, usernames shouldn\'t start with @.', "wd-instagram-feed")), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
|
260 |
),
|
270 |
"title" => "Layout and Pagination",
|
271 |
"type" => "half",
|
272 |
"column" => "one",
|
273 |
+
"section_name"=>"wdi_layout",
|
274 |
"elements" => array(
|
275 |
array(
|
276 |
'feed_display_view' => array('name' => 'feed_display_view', 'title' => __('New Media Loading', "wd-instagram-feed"), 'type' => 'select', 'valid_options' => array('pagination' => __('Pagination', "wd-instagram-feed"), 'load_more_btn' => __('Load More Button', "wd-instagram-feed"), 'infinite_scroll' => __('Infinite Scroll', "wd-instagram-feed"), 'none' => __('None', "wd-instagram-feed")),'disabled_options' => array('infinite_scroll'),'disabled' => array('text' => __("Infinite Scroll option is available only in paid version", "wd-instagram-feed")), 'break' => 'true', 'hide_ids' => array('pagination' => 'number_of_photos,load_more_number,resort_after_load_more', 'load_more_btn' => 'pagination_per_page_number,pagination_preload_number', 'infinite_scroll' => 'pagination_per_page_number,pagination_preload_number', 'none' => 'pagination_preload_number,pagination_per_page_number,load_more_number,resort_after_load_more'), 'tooltip' => __('How to load and display new images/videos', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style'))),
|
291 |
"title" => "Advanced",
|
292 |
"type" => "half",
|
293 |
"column" => "one",
|
294 |
+
"section_name"=>"wdi_advanced",
|
295 |
"elements" => array(
|
296 |
array(
|
297 |
'theme_id' => array('switched' => 'off', 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("Changing Theme is available only in paid version", "wd-instagram-feed"), 'br' => 'true'), 'name' => 'theme_id', 'title' => __('Theme', "wd-instagram-feed"), 'valid_options' => $themes, 'type' => 'select', 'tooltip' => __('Styling theme of the feed. You can create themes in themes menu', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
|
298 |
'feed_resolution' => array('name' => 'feed_resolution', 'title' => __('Feed Media Resolution', "wd-instagram-feed"), 'type' => 'select', 'label' => array('text' => '', 'place' => 'after'), 'valid_options' => array('optimal' => 'Optimal', 'standard' => 'Standard (640 pixels)', 'low' => 'Low (320 pixels)', 'thumbnail' => 'Thumbnail (150 pixels)'), 'tooltip' => 'If set optimal, loaded media size is calculated according to container size. Fast loading and no stretched images.', 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
|
299 |
'thumb_user' => array('name' => 'thumb_user', 'title' => __('Featured Image', "wd-instagram-feed"), 'valid_options' => array(), 'type' => 'select', 'tooltip' => __('Select featured image for header section', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
|
300 |
'display_header' => array('name' => 'display_header', 'title' => __('Show Feed Header', "wd-instagram-feed"), 'type' => 'checkbox', 'tooltip' => __('Header includes feed title and featured image', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
|
301 |
+
'show_usernames' => array('name' => 'show_usernames', 'title' => __('Show User Data', "wd-instagram-feed"), 'type' => 'checkbox', 'tooltip' => '','hide_ids' => array('display_user_info','display_user_post_follow_number','follow_on_instagram_btn'), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
|
302 |
'follow_on_instagram_btn' => array('name' => 'follow_on_instagram_btn', 'title' => __('Show "Follow On Instagram" button', "wd-instagram-feed"), 'type' => 'checkbox', 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
|
303 |
+
'display_user_post_follow_number' => array('name' => 'display_user_post_follow_number', 'title' => __('Show User Posts and Followers count', "wd-instagram-feed"), 'type' => 'checkbox', 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
|
304 |
+
'display_user_info' => array('name' => 'display_user_info', 'title' => __('Show User Bio', "wd-instagram-feed"), 'type' => 'checkbox', 'tooltip' => __('User bio will be displayed if feed has only one user', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
|
305 |
'show_description' => array('switched' => 'off', 'name' => 'show_description', 'title' => __('Show Media Caption', "wd-instagram-feed"), 'type' => 'checkbox', 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("This feature is available only in paid version", "wd-instagram-feed"), 'br' => 'true'), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
|
306 |
'show_likes' => array('switched' => 'off', 'name' => 'show_likes', 'title' => __('Show Number of Likes', "wd-instagram-feed"), 'type' => 'checkbox', 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("This feature is available only in paid version", "wd-instagram-feed"), 'br' => 'true'), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
|
307 |
'show_comments' => array('switched' => 'off', 'name' => 'show_comments', 'title' => __('Show Number of Comments', "wd-instagram-feed"), 'type' => 'checkbox', 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("This feature is available only in paid version", "wd-instagram-feed"), 'br' => 'true'), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
|
308 |
'show_username_on_thumb' => array('switched' => 'off', 'name' => 'show_username_on_thumb', 'title' => __('Show Username On Image Thumb', "wd-instagram-feed"), 'type' => 'checkbox', 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("This feature is available only in paid version", "wd-instagram-feed"), 'br' => 'true'), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry'))),
|
|
|
|
|
|
|
309 |
'show_full_description' => array('name' => 'show_full_description', 'title' => __('Show Full Description', "wd-instagram-feed"), 'type' => 'checkbox', 'tooltip' => __('Discription will be shown no matter how long it is', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'masonry'))),
|
310 |
)
|
311 |
)
|
316 |
"title" => "General",
|
317 |
"type" => "full",
|
318 |
"column" => "two",
|
319 |
+
"visibility" =>"show",
|
320 |
+
"section_name"=>"wdi_lightbox_general",
|
321 |
"elements" => array(
|
322 |
array(
|
323 |
'popup_fullscreen' => array('name' => 'popup_fullscreen', 'title' => __('Full width lightbox', "wd-instagram-feed"), 'type' => 'radio', 'valid_options' => array('1' => __('Yes', "wd-instagram-feed"), '0' => __('No', "wd-instagram-feed")), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings')), 'hide_ids' => array('1' => 'popup_width,popup_height')),
|
335 |
"title" => "Advanced",
|
336 |
"type" => "full",
|
337 |
"column" => "two",
|
338 |
+
"section_name"=>"wdi_lightbox_advanced",
|
339 |
"elements" => array(
|
340 |
array(
|
341 |
'popup_enable_filmstrip' => array('disabled_options' => array('1' => '', '0' => ''), 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("This feature is available only in paid version", "wd-instagram-feed"), 'br' => 'true'), 'name' => 'popup_enable_filmstrip', 'title' => __('Enable Filmstrip', "wd-instagram-feed"), 'type' => 'radio', 'valid_options' => array('1' => __('Yes', "wd-instagram-feed"), '0' => __('No', "wd-instagram-feed")), 'hide_ids' => array('0' => 'popup_filmstrip_height'), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))),
|
369 |
"title" => __("This is free version, Conditional filters are available only in paid version", "wd-instagram-feed"),
|
370 |
"type" => "full",
|
371 |
"column" => "one",
|
372 |
+
"visibility" =>"show",
|
373 |
+
"section_name"=>"wdi_conditional_filters",
|
374 |
"elements" => array(
|
375 |
array(
|
376 |
'conditional_filter_enable' => array('name' => 'conditional_filter_enable', 'title' => __('Enable Conditional Filters', "wd-instagram-feed"), 'type' => 'radio', 'valid_options' => array('1' => __('Yes', "wd-instagram-feed"), '0' => __('No', "wd-instagram-feed")), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'conditional_filters'))),
|
378 |
)
|
379 |
)
|
380 |
)
|
381 |
+
),
|
382 |
+
"how_to_publish" => array(
|
383 |
+
"" => array(
|
384 |
+
"title" => __("How to Publish Feed", "wd-instagram-feed"),
|
385 |
+
"type" => "full",
|
386 |
+
"column" => "one",
|
387 |
+
"visibility" =>"show",
|
388 |
+
"section_name"=>"wdi_how_to_publish",
|
389 |
+
"elements" => array(
|
390 |
+
array(
|
391 |
+
'how_to_publish' => array(
|
392 |
+
'name' => 'how_to_publish',
|
393 |
+
'type' => 'how_to_publish',
|
394 |
+
'title' => "",
|
395 |
+
'tooltip' => ''
|
396 |
+
)
|
397 |
+
)
|
398 |
+
)
|
399 |
+
)
|
400 |
)
|
401 |
);
|
402 |
$return = array('tabs' => $tabs, 'current_id' => $current_id);
|
408 |
{
|
409 |
?>
|
410 |
<div class="wdi_border_wrapper">
|
411 |
+
<div id="wdi_layout_section" class="wdi_layout_section display_type_content wdi_section">
|
412 |
+
<h3 data-section_name="wdi_layout_section" class="wdi_display_content wdi_section_name wdi_section_close">Select layout</h3>
|
413 |
+
<div data-display="table" class="display_type_container wdi_clear_tag wdi_elements">
|
414 |
<div class="display_type" tab="feed_settings">
|
415 |
<div style="text-align:center;padding:2px;"><input type="radio" id="thumbnails" name="feed_type"
|
416 |
value="thumbnails"><label for="thumbnails">Thumbnails</label>
|
447 |
|
448 |
<?php
|
449 |
}
|
450 |
+
|
451 |
public function generateTabs()
|
452 |
{
|
453 |
?>
|
454 |
+
<div id="wdi_feed_tabs">
|
455 |
+
<div class="wdi_feed_tabs" id="wdi_feed_settings" onclick="wdi_controller.switchFeedTabs('feed_settings');">
|
456 |
+
<span class="dashicons dashicons-before dashicons-admin-generic"></span>
|
457 |
+
<span class="wdi_feed_tab_title"><?php _e('Feed Settings', "wd-instagram-feed") ?></span>
|
458 |
+
</div>
|
459 |
+
<div class="wdi_feed_tabs" id="wdi_lightbox_settings" onclick="wdi_controller.switchFeedTabs('lightbox_settings');">
|
460 |
+
<span class="dashicons dashicons-before dashicons-admin-page"></span>
|
461 |
+
<span class="wdi_feed_tab_title"><?php _e('Lightbox Settings', "wd-instagram-feed") ?></span>
|
462 |
+
</div>
|
463 |
+
<div class="wdi_feed_tabs" id="wdi_conditional_filters" onclick="wdi_controller.switchFeedTabs('conditional_filters');">
|
464 |
+
<span class="dashicons dashicons-before dashicons-filter"></span>
|
465 |
+
<span class="wdi_feed_tab_title"><?php _e('Conditional Filters', "wd-instagram-feed") ?></span>
|
466 |
+
</div>
|
467 |
+
<div class="wdi_feed_tabs" id="wdi_how_to_publish" onclick="wdi_controller.switchFeedTabs('how_to_publish');">
|
468 |
+
<span class="dashicons dashicons-before dashicons-editor-help"></span>
|
469 |
+
<span class="wdi_feed_tab_title"><?php _e('How To Publish Feed', "wd-instagram-feed") ?></span>
|
470 |
+
</div>
|
471 |
+
</div>
|
472 |
<?php
|
473 |
}
|
474 |
+
|
475 |
public function generateForm($current_id = ''){
|
476 |
+
if ( $current_id==="" ) {
|
477 |
+
$wdi_preview_btn = false;
|
478 |
+
$save_btn_name = __('Publish', "wd-instagram-feed");
|
479 |
+
}
|
480 |
+
else {
|
481 |
+
$wdi_preview_btn = true;
|
482 |
+
$save_btn_name = __('Update', "wd-instagram-feed");
|
483 |
+
}
|
484 |
+
|
485 |
$formInfo = $this->getFormElements($current_id);
|
486 |
$tabs = $formInfo['tabs'];
|
487 |
+
$wdi_preview_link = $this->model->get_instagram_preview_post();
|
488 |
|
489 |
global $wdi_options;
|
490 |
//for edit
|
496 |
else {
|
497 |
$feed_row = '';
|
498 |
}
|
499 |
+
$feed_row_id = "";
|
500 |
+
if(isset($feed_row["id"])){
|
501 |
+
$feed_row_id = $feed_row["id"];
|
502 |
+
}
|
503 |
+
|
504 |
?>
|
505 |
<div class="update-nag wdi_help_bar_wrap">
|
506 |
<span class="wdi_help_bar_text">
|
519 |
</div>
|
520 |
</div>
|
521 |
<div class="wrap">
|
522 |
+
<h2 class="wdi-h2-message"></h2>
|
523 |
+
<form method="post" action="admin.php?page=wdi_feeds" id='wdi_save_feed'>
|
524 |
+
<div class="wdi-page-header">
|
525 |
+
<h1 class="wp-heading-inline"><?php echo __('Feed Title', "wd-instagram-feed")?></h1>
|
526 |
+
<input id="WDI_feed_name" class="WDI_title_input" name="wdi_feed_settings[feed_name]" type="text" value="<?php echo ($edit == true && isset($feed_row['feed_name'])) ? $feed_row['feed_name'] : "Sample Feed";?>">
|
527 |
+
<div class="wdi_buttons">
|
528 |
+
<div id="wdi_save_feed_apply" class="button button-primary"><?php echo $save_btn_name;?></div>
|
529 |
+
<button class="button preview-button button-large"<?php if (!$wdi_preview_btn) echo ' disabled="disabled"' ?> <?php echo ($wdi_preview_btn) ? 'onclick="window.open(\''. add_query_arg( array('feed_id' => $feed_row_id), $wdi_preview_link ) .'\', \'_blank\'); return false;"' : ''; ?>><?php echo __('Preview', "wd-instagram-feed");?></button>
|
530 |
+
</div>
|
531 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
532 |
<?php $this->generateTabs(); ?>
|
533 |
<?php $this->genarateFeedViews(); ?>
|
|
|
534 |
<?php wp_nonce_field('nonce_wd', 'nonce_wd'); ?>
|
535 |
<input type="hidden" id="wdi_feed_type" name='<?php echo WDI_FSN . '[feed_type]' ?>'>
|
536 |
<input type="hidden" id="task" name='task'>
|
549 |
<div class="form-table">
|
550 |
<?php foreach ($tabs as $key => $tab) { ?>
|
551 |
<div id="<?php echo $key; ?>_tab" class="wdi_tab" style="<?php echo $key == "feed_settings" ? "display:block;" : ""; ?>">
|
552 |
+
<?php foreach ($tab as $key => $section) {
|
553 |
+
$section_class = "wdi_section_open";
|
554 |
+
if(isset($section["visibility"]) && $section["visibility"]==="show"){
|
555 |
+
$section_class = "wdi_section_close";
|
556 |
+
}
|
557 |
+
?>
|
558 |
<div id="<?php echo $key; ?>_section" class="wdi_section <?php echo $section["type"]; ?> <?php echo $section["column"]; ?>">
|
559 |
+
<!--<span class="wdi_section_button <?php /*echo $section_class;*/?>"></span>-->
|
560 |
+
<h3 data-section_name="<?php echo $section['section_name']?>" class="wdi_section_name <?php echo $section_class;?>"><?php echo $section["title"]; ?></h3>
|
561 |
<div class="wdi_elements wdi_clear_tag">
|
562 |
<?php foreach ($section["elements"] as $elements) { ?>
|
563 |
<div class="section_col">
|
640 |
$builder->checkbox($element, $feed_row);
|
641 |
break;
|
642 |
}
|
643 |
+
case 'how_to_publish': {
|
644 |
+
$builder->how_to_publish($element, $feed_row);
|
645 |
+
break;
|
646 |
+
}
|
647 |
}
|
648 |
}
|
649 |
|
changelog.txt
ADDED
@@ -0,0 +1,228 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
= 1.2.15 =
|
2 |
+
Added: "How to publish feed" tab in feeds editor screen
|
3 |
+
Added: Closeable metaboxes in feeds editor screen
|
4 |
+
Added: Feed preview button in feeds editor screen
|
5 |
+
Changed: Save, apply and cancel buttons in feed and theme editor screens
|
6 |
+
Changed: Feed and theme title input design
|
7 |
+
Fixed: Minor bugs and conflicts with some themes
|
8 |
+
Improved: Shortcode popup design
|
9 |
+
Removed: Update submenu (Premium)
|
10 |
+
|
11 |
+
= 1.2.14 =
|
12 |
+
Fixed: Conflict with Page Builder by SiteOrigin
|
13 |
+
|
14 |
+
= 1.2.13 =
|
15 |
+
Fixed: Conflict with Divi
|
16 |
+
|
17 |
+
= 1.2.12 =
|
18 |
+
New: Customize feed media resolution. Choose between optimal or custom resolutions, fast loading and higher quality.
|
19 |
+
Improved: Redesigned feed and theme editor screens
|
20 |
+
Improved: More user-friendly names and descriptions of feed settings
|
21 |
+
Improved: UX when access token is expired or have not been obtained yet
|
22 |
+
Improved: UX when there are JS errors on front-end
|
23 |
+
Fixed: Minor: do not include custom scroll bar JS if feed does not have popup
|
24 |
+
|
25 |
+
= 1.2.11 =
|
26 |
+
Changed: Scripts and styles are minified by default
|
27 |
+
Changed: Font-Awesome has been updated to version 4.7.0 and loaded from CDN
|
28 |
+
Changed: Pagination buttons are smaller now in default theme
|
29 |
+
Changed: Deactivation popup.
|
30 |
+
|
31 |
+
= 1.2.10 =
|
32 |
+
Fixed: CSS XSS vulnerability in lightbox
|
33 |
+
|
34 |
+
= 1.2.9 =
|
35 |
+
Changed: Web-Dorado links
|
36 |
+
|
37 |
+
= 1.2.8 =
|
38 |
+
Changed: Allow more users and hashtags in feed settings
|
39 |
+
|
40 |
+
= 1.2.7 =
|
41 |
+
Changed: Show notification to install Backup WD plugin only on plugin pages
|
42 |
+
|
43 |
+
= 1.2.6 =
|
44 |
+
Change: Introduction of Backup WD plugin
|
45 |
+
|
46 |
+
= 1.2.5 =
|
47 |
+
Change: "create_function" is not used anymore
|
48 |
+
|
49 |
+
= 1.2.4 =
|
50 |
+
Fixed: Compatibility issue with Better WordPress Minify plugin, thanks to @amityweb for bug report
|
51 |
+
|
52 |
+
= 1.2.3 =
|
53 |
+
Change: WD library updated to version 1.0.11
|
54 |
+
Fixed: Error message when editing feed and token is expired
|
55 |
+
|
56 |
+
= 1.2.2 =
|
57 |
+
New: Redirection to custom URL
|
58 |
+
|
59 |
+
= 1.2.1 =
|
60 |
+
New: Option to disable loading of new images in feed
|
61 |
+
|
62 |
+
= 1.2.0 =
|
63 |
+
New: Default feed
|
64 |
+
Fixed: Infinite scroll triggering (PRO)
|
65 |
+
Fixed: "No media in feed" message on mobile masonry feed
|
66 |
+
Fixed: Minor style conflicts with some themes
|
67 |
+
|
68 |
+
= 1.1.30 =
|
69 |
+
Changed: Frontend styles optimized, loads faster now
|
70 |
+
|
71 |
+
= 1.1.29 =
|
72 |
+
Fixed: Display only published feeds in feeds selector popup for shortcode
|
73 |
+
Changed: UX improvement - no error message when user first inserts a widget then creates feeds
|
74 |
+
|
75 |
+
= 1.1.28 =
|
76 |
+
Fixed: Conflict with some themes
|
77 |
+
|
78 |
+
= 1.1.27 =
|
79 |
+
Fixed: Overriding window.onload function
|
80 |
+
Changed: Some strings on frontend are translatable now
|
81 |
+
|
82 |
+
= 1.1.26 =
|
83 |
+
Fixed: Conflict with Beaver Builder
|
84 |
+
Fixed: Frontend error messages in old Chrome and Safari browsers
|
85 |
+
Changed: Translations hosted on WordPress.org
|
86 |
+
|
87 |
+
= 1.1.25 =
|
88 |
+
New: UX improvements: when authorizing and editing feeds
|
89 |
+
Changed: JavaScript error notices on frontend
|
90 |
+
Fixed: Updates page restored (PRO)
|
91 |
+
Fixed: Deactivation popup in uninstall page (PRO)
|
92 |
+
Fixed: Subscribe after uninstall
|
93 |
+
|
94 |
+
= 1.1.24 =
|
95 |
+
New: Overview page
|
96 |
+
Changed: Deactivation
|
97 |
+
|
98 |
+
= 1.1.23 =
|
99 |
+
Fixed: cropping of "landscape" images in thumbnails layout
|
100 |
+
|
101 |
+
= 1.1.22 =
|
102 |
+
New: message displayed on frontend if feed has no media
|
103 |
+
Fixed: JS errors for media with Instagram's new "Slideshow" feature. This feature is not supported by Instagram's API yet.
|
104 |
+
Changed: Errors by plugin and Instagram API are alerted in frontend only for admins, otherwise output the message to the Web Console
|
105 |
+
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.
|
106 |
+
Changed: Minor style conflicts fixed
|
107 |
+
|
108 |
+
= 1.1.21 =
|
109 |
+
New: Three new plugins added to featured plugins list: Ad Manager WD, Youtube WD and Staff Team WD
|
110 |
+
Fixed: Colors and opacities of share buttons in lightbox (PRO)
|
111 |
+
|
112 |
+
= 1.1.20 =
|
113 |
+
New: Instagram feed displayed in AJAX-loaded content. AJAX request callback needs to call wp_footer() in the end.
|
114 |
+
|
115 |
+
= 1.1.19 =
|
116 |
+
Fixed: Strange bug in Instagram API when user feed pagination is null, causing JS errors in frontend
|
117 |
+
|
118 |
+
= 1.1.18 =
|
119 |
+
Fixed: Frontend filter colors (PRO)
|
120 |
+
Changed: Featured plugins, brand new Mailchimp Forms WD plugin added
|
121 |
+
|
122 |
+
= 1.1.17 =
|
123 |
+
New: Option in feed settings to show small size images and low-bandwidth videos when viewed in mobile devices
|
124 |
+
Fixed: Escaping in custom JS
|
125 |
+
Change: WP 4.7 compatibility - language of frontend content in AJAX response
|
126 |
+
|
127 |
+
= 1.1.16 =
|
128 |
+
Fixed: Unicode "paragraph separator" symbol in media caption crashes lightbox
|
129 |
+
Fixed: Javascript error in admin feed page and styling issue in lightbox because of some non-standard themes
|
130 |
+
|
131 |
+
= 1.1.15 =
|
132 |
+
New: Show hashtag media number in header
|
133 |
+
Fixed: Scripts dependency on underscore.js
|
134 |
+
Fixed: Compatibility issues with Yoast SEO
|
135 |
+
|
136 |
+
= 1.1.14 =
|
137 |
+
Fixed: Single user bio not shown
|
138 |
+
Changed: Plugin logo
|
139 |
+
Changed: Featured plugins logos
|
140 |
+
|
141 |
+
= 1.1.13 =
|
142 |
+
Fixed: Changes in database after plugin version update via FTP or AJAX requests with silent activation
|
143 |
+
|
144 |
+
= 1.1.12 =
|
145 |
+
New: Feed based on liked media (Pro)
|
146 |
+
Fixed: Hidden media in last page
|
147 |
+
Fixed: Minor issues
|
148 |
+
|
149 |
+
= 1.1.11 =
|
150 |
+
Added: Setting to show media descriptions in widget mode (Pro)
|
151 |
+
Fixed: Untranslatable strings in widget editor
|
152 |
+
Change: Featured plugins list
|
153 |
+
|
154 |
+
= 1.1.10 =
|
155 |
+
Added: New text in uninstall page
|
156 |
+
Added: Featured plugins admin page
|
157 |
+
Fixed: Video not centering issue on blogstyle
|
158 |
+
Added: Swedish translations
|
159 |
+
|
160 |
+
= 1.1.9 =
|
161 |
+
New: Option to set minimal user role for adding and managing feeds and themes
|
162 |
+
Fixed: Masonry feed thumbnails overlay opacity (Pro)
|
163 |
+
|
164 |
+
= 1.1.8 =
|
165 |
+
Changed: Font-Awesome updated to version 4.6.3
|
166 |
+
|
167 |
+
= 1.1.7 =
|
168 |
+
New: Featured themes admin page
|
169 |
+
Fixed: Javascript error in hashtag feed
|
170 |
+
|
171 |
+
= 1.1.6 =
|
172 |
+
Change: Added compatibility with "All in one SEO pack" and other plugins running shortcodes in page head
|
173 |
+
|
174 |
+
= 1.1.5 =
|
175 |
+
Fixed: javascript error on firefox and safari
|
176 |
+
|
177 |
+
= 1.1.4 =
|
178 |
+
Fixed: Error handling in case of wrong access_token
|
179 |
+
Fixed: Image description not opening after pagination (Pro)
|
180 |
+
Fixed: Do not show load more button if feed media are finished
|
181 |
+
Fixed: Infinite scroll triggering bug (Pro)
|
182 |
+
|
183 |
+
= 1.1.3 =
|
184 |
+
New: French translation (Thanks to Guillaume Barjou)
|
185 |
+
New: English US and UK translation files. Edit them to change default strings
|
186 |
+
Fixed: Image sizes and overwflows in thumbnails layout
|
187 |
+
Fixed: Lightbox filmstrip thumb styles (Pro)
|
188 |
+
|
189 |
+
= 1.1.2 =
|
190 |
+
Fixed: Bug when saving theme data to some MySQL 5.6 databases
|
191 |
+
Changed: Pagination of hashtag feeds restored
|
192 |
+
Changed: Check and get user id on frontend if empty for some unknown reason
|
193 |
+
|
194 |
+
= 1.1.1 =
|
195 |
+
fix: bug when duplicating feeds
|
196 |
+
|
197 |
+
= 1.1.0 =
|
198 |
+
new: Instagram new API
|
199 |
+
new: Spanish translation (Thanks to Alexandro Lacadena Gomez)
|
200 |
+
|
201 |
+
= 1.0.10 =
|
202 |
+
Temporarily disable pagination in hashtag based feeds
|
203 |
+
Updated Russian Translations ( Thanks to Alex Petrin )
|
204 |
+
|
205 |
+
= 1.0.9 =
|
206 |
+
Bug fixes
|
207 |
+
|
208 |
+
= 1.0.8 =
|
209 |
+
Show video play button when redirect is enabled
|
210 |
+
|
211 |
+
= 1.0.7 =
|
212 |
+
new: Image Hover Effects
|
213 |
+
|
214 |
+
= 1.0.6 =
|
215 |
+
new: Conditional Filters (Pro)
|
216 |
+
new: Option for displaying username in masonry/thumbnails view (Pro)
|
217 |
+
new: Russian translation (Thanks to Ruslan Tertyshny).
|
218 |
+
|
219 |
+
= 1.0.2 =
|
220 |
+
fix: PHP error after plugin update
|
221 |
+
|
222 |
+
= 1.0.1 =
|
223 |
+
fix: PHP 5.3 compatibility
|
224 |
+
fix: video redirect bug
|
225 |
+
change: user info styles
|
226 |
+
|
227 |
+
= 1.0.0 =
|
228 |
+
Initial version
|
css/wd_bp_install.css
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
}
|
9 |
|
10 |
#wd_bp_logo_notice {
|
11 |
-
width:
|
12 |
float: left;
|
13 |
margin-right: 10px;
|
14 |
}
|
8 |
}
|
9 |
|
10 |
#wd_bp_logo_notice {
|
11 |
+
width: 50px;
|
12 |
float: left;
|
13 |
margin-right: 10px;
|
14 |
}
|
css/wd_bp_install.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
@media only screen and (max-width:500px){body #wd_backup_logo{max-width:100%}body #wd_bp_notice_cont p{padding-right:25px !important}}#wd_bp_logo_notice{width:
|
1 |
+
@media only screen and (max-width:500px){body #wd_backup_logo{max-width:100%}body #wd_bp_notice_cont p{padding-right:25px !important}}#wd_bp_logo_notice{width:50px;float:left;margin-right:10px}#wd_bp_notice_cont{position:relative}.wds_backup_install p{padding-top:0;margin-top:0}#wd_bp_notice_cont a{margin:0 5px}#wd_bp_notice_cont .dashicons-dismiss:before{content:"\f153";background:0;color:#72777c;display:block;font:400 16px/20px dashicons;speak:none;height:20px;text-align:center;width:20px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wd_bp_notice_dissmiss{margin-top:5px}
|
css/wdi_backend.css
CHANGED
@@ -109,7 +109,22 @@ position: relative;
|
|
109 |
#wdi_feed_tabs .wdi_feed_tab_active,
|
110 |
#wdi_feed_tabs .wdi_feed_tabs:hover {
|
111 |
background: none repeat scroll 0 0 #FFFFFF;
|
112 |
-
border: 1px solid #46ACC3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
}
|
114 |
|
115 |
.wdi_border_wrapper [scope='row'] + td, .wdi_border_wrapper [scope='row'] {
|
@@ -505,7 +520,7 @@ border: 1px solid rgb(185, 185, 185);
|
|
505 |
line-height: 30px;
|
506 |
padding: 15px;
|
507 |
vertical-align: middle;
|
508 |
-
width:
|
509 |
}
|
510 |
.wdi_help_bar_text{
|
511 |
float:left;
|
@@ -1506,10 +1521,12 @@ border: 1px solid rgb(185, 185, 185);
|
|
1506 |
#wdi_save_feed .wdi_element {
|
1507 |
margin: 0 0 18px;
|
1508 |
}
|
1509 |
-
|
1510 |
-
|
1511 |
-
|
1512 |
-
|
|
|
|
|
1513 |
}
|
1514 |
#wdi_save_feed .wdi_element p {
|
1515 |
margin: 2px 0 0;
|
@@ -1517,11 +1534,12 @@ border: 1px solid rgb(185, 185, 185);
|
|
1517 |
.wdi_section_name {
|
1518 |
font-size: 19px;
|
1519 |
margin: 0 auto 15px;
|
1520 |
-
width:
|
1521 |
box-sizing: border-box;
|
1522 |
-
padding: 15px
|
1523 |
border-bottom: 1px solid #f1f1f1;
|
1524 |
color: #444;
|
|
|
1525 |
}
|
1526 |
.wdi_section {
|
1527 |
border: 1px solid #dedede;
|
@@ -1545,6 +1563,46 @@ border: 1px solid rgb(185, 185, 185);
|
|
1545 |
.wdi_tab .wdi_section.half:last-child{
|
1546 |
margin-left:2%;
|
1547 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1548 |
@media (min-width: 768px) {
|
1549 |
.wdi_border_wrapper .wdi_element_content{
|
1550 |
width: 100%;
|
@@ -1579,6 +1637,42 @@ border: 1px solid rgb(185, 185, 185);
|
|
1579 |
margin:0 0 20px 0 !important;
|
1580 |
}
|
1581 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1582 |
.wdi_demo_img{
|
1583 |
margin-top: 20px;
|
1584 |
-
}
|
|
109 |
#wdi_feed_tabs .wdi_feed_tab_active,
|
110 |
#wdi_feed_tabs .wdi_feed_tabs:hover {
|
111 |
background: none repeat scroll 0 0 #FFFFFF;
|
112 |
+
/*border: 1px solid #46ACC3;*/
|
113 |
+
color: #9a2465;
|
114 |
+
}
|
115 |
+
|
116 |
+
#how_to_publish_tab .wdi_howto_container .wdi_howto_content .wdi_howto_wrapper{
|
117 |
+
max-width: 270px;
|
118 |
+
margin: 0 auto;
|
119 |
+
}
|
120 |
+
|
121 |
+
#how_to_publish_tab .wdi_howto_container .wdi_howto_content .wdi_howto_wrapper img{
|
122 |
+
max-width: 100%;
|
123 |
+
}
|
124 |
+
|
125 |
+
#wdi_feed_tabs .wdi_feed_tab_title{
|
126 |
+
margin-top: 1px;
|
127 |
+
display: inline-block;
|
128 |
}
|
129 |
|
130 |
.wdi_border_wrapper [scope='row'] + td, .wdi_border_wrapper [scope='row'] {
|
520 |
line-height: 30px;
|
521 |
padding: 15px;
|
522 |
vertical-align: middle;
|
523 |
+
width: calc(100% - 22px);
|
524 |
}
|
525 |
.wdi_help_bar_text{
|
526 |
float:left;
|
1521 |
#wdi_save_feed .wdi_element {
|
1522 |
margin: 0 0 18px;
|
1523 |
}
|
1524 |
+
|
1525 |
+
#wdi_save_feed .half .wdi_element,
|
1526 |
+
#wdi_save_feed .one .wdi_element {
|
1527 |
+
width: 96%;
|
1528 |
+
float: none;
|
1529 |
+
margin: 0 2% 20px;
|
1530 |
}
|
1531 |
#wdi_save_feed .wdi_element p {
|
1532 |
margin: 2px 0 0;
|
1534 |
.wdi_section_name {
|
1535 |
font-size: 19px;
|
1536 |
margin: 0 auto 15px;
|
1537 |
+
width: 100%;
|
1538 |
box-sizing: border-box;
|
1539 |
+
padding: 15px;
|
1540 |
border-bottom: 1px solid #f1f1f1;
|
1541 |
color: #444;
|
1542 |
+
cursor: pointer;
|
1543 |
}
|
1544 |
.wdi_section {
|
1545 |
border: 1px solid #dedede;
|
1563 |
.wdi_tab .wdi_section.half:last-child{
|
1564 |
margin-left:2%;
|
1565 |
}
|
1566 |
+
|
1567 |
+
/*wdi how to publish*/
|
1568 |
+
#how_to_publish_tab .wdi_howto_container{
|
1569 |
+
display: flex;
|
1570 |
+
flex-wrap: wrap;
|
1571 |
+
}
|
1572 |
+
|
1573 |
+
#how_to_publish_tab .wdi_howto_content{
|
1574 |
+
border: 1px rgb(221, 221, 221) solid;
|
1575 |
+
display: flex;
|
1576 |
+
flex: 1;
|
1577 |
+
flex-direction: column;
|
1578 |
+
margin: 5px;
|
1579 |
+
min-width: 250px;
|
1580 |
+
padding: 20px 10px;
|
1581 |
+
text-align: center;
|
1582 |
+
}
|
1583 |
+
|
1584 |
+
#how_to_publish_tab .wdi_howto_container h2{
|
1585 |
+
font-size: 23px;
|
1586 |
+
font-weight: normal;
|
1587 |
+
line-height: 29px;
|
1588 |
+
margin: 0;
|
1589 |
+
padding: 11px 15px 4px 0;
|
1590 |
+
}
|
1591 |
+
|
1592 |
+
#how_to_publish_tab .wdi_howto_container .wdi_howto_content input{
|
1593 |
+
margin: 0 auto;
|
1594 |
+
text-align: center;
|
1595 |
+
width: 100%;
|
1596 |
+
}
|
1597 |
+
.wdi_buttons button.button.preview-button {
|
1598 |
+
height: 28px;
|
1599 |
+
}
|
1600 |
+
@media (max-width: 782px) {
|
1601 |
+
.wdi_buttons button.button.preview-button {
|
1602 |
+
height: auto;
|
1603 |
+
}
|
1604 |
+
}
|
1605 |
+
|
1606 |
@media (min-width: 768px) {
|
1607 |
.wdi_border_wrapper .wdi_element_content{
|
1608 |
width: 100%;
|
1637 |
margin:0 0 20px 0 !important;
|
1638 |
}
|
1639 |
}
|
1640 |
+
|
1641 |
+
.wdi_section_close::before{
|
1642 |
+
content: "\f142";
|
1643 |
+
display: inline-block;
|
1644 |
+
font: 400 20px/1 dashicons;
|
1645 |
+
speak: none;
|
1646 |
+
float: right;
|
1647 |
+
cursor: pointer;
|
1648 |
+
}
|
1649 |
+
.wdi_section_open::before{
|
1650 |
+
content: "\f140";
|
1651 |
+
display: inline-block;
|
1652 |
+
font: 400 20px/1 dashicons;
|
1653 |
+
speak: none;
|
1654 |
+
float: right;
|
1655 |
+
cursor: pointer;
|
1656 |
+
}
|
1657 |
+
.wdi-page-header{
|
1658 |
+
width: 98%;
|
1659 |
+
padding: 10px;
|
1660 |
+
}
|
1661 |
+
.wdi-page-header .wdi_buttons{
|
1662 |
+
float: right;
|
1663 |
+
}
|
1664 |
+
.wdi-page-header .WDI_title_input{
|
1665 |
+
padding: 3px 8px;
|
1666 |
+
font-size: 1.7em;
|
1667 |
+
line-height: 100%;
|
1668 |
+
height: 1.5em;
|
1669 |
+
width: 30%;
|
1670 |
+
outline: 0;
|
1671 |
+
margin: 0 0 3px;
|
1672 |
+
background-color: #fff;
|
1673 |
+
}
|
1674 |
+
|
1675 |
.wdi_demo_img{
|
1676 |
margin-top: 20px;
|
1677 |
+
}
|
1678 |
+
|
css/wdi_backend.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.wdi_clear{clear:both}.wdi_clear_tag:after{content:"";display:table;clear:both}#wdi_unistall{background-color:#d82121;border-color:#d31818;box-shadow:inset 0 1px 0 rgba(230,120,120,0.5),0 1px 0 rgba(0,0,0,.15)}#wdi_unistall:hover{background-color:#da1313}#wdi_unistall_table th{width:45%}.display_type_content{background:#fff;border:1px solid #dedede;margin-bottom:15px}.wdi_tooltip,.wdi_settings_link{display:block;font-size:14px !important;font-weight:bold;line-height:20px;margin-bottom:5px;color:#444;text-decoration:none}p.wdi_about_filed{font-size:13px;font-style:italic}.wdi_tooltip:hover,.wdi_settings_link:hover{color:#23282d;position:relative}.wdi_tooltip:hover:after{content:attr(wdi-tooltip);padding:4px 8px;color:#dbdbe0;position:absolute;left:0;top:100%;white-space:nowrap;z-index:20;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:2px;-moz-box-shadow:0 0 4px #222;-webkit-box-shadow:0 0 4px #222;box-shadow:0 0 4px rgba(0,0,0,0.5);background-color:rgba(0,0,0,0.75);font-size:12px}.wdi_pro_only{font-style:italic;color:#4e4e4e !important;background-color:#ccc !important;text-decoration:none}.wdi_pro_only_op{opacity:.6}.wdi_pro_notice{text-align:right;color:#15699f;font-size:20px !important;padding:10px}.wdi_pro_only_btn{background-color:#c5c0c0 !important;border-top-color:#c5c0c0 !important}.wdi-pro-overlay img{opacity:.7}#wdi_feed_users{width:100%;margin-top:2px}#wdi_feed_tabs .wdi_feed_tabs{border:1px solid #f1f1f1;color:#444;cursor:pointer;font-size:13px;font-weight:bold;padding:12px;background:#fff;text-decoration:none;display:inline-block}#wdi_feed_tabs{margin:16px 0}#wdi_feed_tabs .wdi_feed_tab_active,#wdi_feed_tabs .wdi_feed_tabs:hover{background:none repeat scroll 0 0 #fff;border:1px solid #46acc3}.wdi_border_wrapper [scope='row']+td,.wdi_border_wrapper [scope='row']{padding:8px}.display_type_container.wdi_clear_tag{display:table;margin:10px auto}.display_type_container>div{float:left;margin-right:15px}.wdi_user{border:1px solid #b9b9b9;background-color:rgba(0,0,0,.05);margin:0 4px 0 0;border-radius:5px;height:28px;position:relative;display:inline-block}.wdi_user:hover{background-color:rgba(0,0,0,.08)}.wdi_user a{text-decoration:none;color:black;line-height:28px;width:70%;margin-left:12%;margin-right:18%;height:100%;display:table-row;padding-right:3px}.wdi_user .wdi_profile_pic{width:20px;height:20px;top:4px;left:30px;padding:5px;vertical-align:middle;display:table-cell}.wdi_user span{display:table-cell;vertical-align:middle;left:55px;font-weight:bold;font-size:14px}.wdi_user .wdi_remove_user,.wdi_user .wdi_check_thumb_user{position:absolute;right:4px;width:15px;height:15px;top:6.5px;transition:all .1s ease}.wdi_user .wdi_remove_user:hover{cursor:pointer;transform:rotate(180deg)}.wdi_user .wdi_check_thumb_user:hover{cursor:pointer}.wdi_user .wdi_check_thumb_user{left:4px}.wdi_border_wrapper [scope='row']{padding:2px;font-size:13px;min-width:250px}.wdi_border_wrapper [scope='row']+td,.wdi_border_wrapper [scope='row']{padding:2px}.small_input{width:60px;text-align:center}.display_type{text-align:center}.wdi_access_token_missing{font-size:14px;color:#000;clear:both;max-width:720px}.instagram-feed-wd_page_wdi_settings form{width:65%}.instagram-feed-wd_page_wdi_settings table td{padding-left:0;padding-right:0}.instagram-feed-wd_page_wdi_settings table th{padding-left:4px}.instagram-feed-wd_page_wdi_settings table input{float:right}#login_with_instagram{height:43px}#login_with_instagram .wdi_sign_in_button{background-image:url('../images/sign_in_with_instagram.png');background-repeat:no-repeat;background-position:left top;width:234px;height:43px;display:inline-block;float:left}#login_with_instagram .wdi_default_feed_button,#login_with_instagram .wdi_edit_default_feed_button{width:234px;height:43px;background-repeat:no-repeat;background-position:center top;display:inline-block}#login_with_instagram .wdi_default_feed_button{background-image:url('../images/default_feed_button.png');float:left;margin-right:10px}#login_with_instagram .wdi_edit_default_feed_button{background-image:url('../images/edit_feed_button.png');float:left}#wdi_options_page_buttons_wrapper .submit{display:inline;margin-left:15px}#wdi_reset_access_token{margin-top:0;float:left;width:232px;text-align:center}.wdi_advanced_option{width:100%;position:relative;font-weight:600}.wdi_advanced_option{background-color:#fff;cursor:pointer;border:1px solid #e3e3e3;border-radius:10px;border-collapse:separate;border-spacing:0}.wdi_advanced_option .wdi_advanced_option_head{border-bottom:1px solid #e3e3e3}.wdi_advanced_option .wdi_advanced_option_head th{padding-top:10px;padding-bottom:10px}.wdi_advanced_option.wdi_advanced_option_open .wdi_advanced_option_head th{border-bottom:1px solid #e3e3e3;border-bottom-left-radius:10px}.wdi_advanced_option.wdi_advanced_option_open .wdi_advanced_option_head td{border-bottom:1px solid #e3e3e3;border-bottom-right-radius:10px}.instagram-feed-wd_page_wdi_settings table.wdi_advanced_option th{padding-left:12px}.instagram-feed-wd_page_wdi_settings table.wdi_advanced_option td .wdwt_param{margin-left:15px}.wdi_advanced_option .wdi_advanced_option_icon{background-repeat:no-repeat;background-position:left top;width:20px;height:20px;display:inline-block;position:absolute;top:16px;right:10px}.wdi_advanced_option.wdi_advanced_option_close .wdi_advanced_option_icon{background-image:url('../images/arrow_1.png')}.wdi_advanced_option.wdi_advanced_option_open .wdi_advanced_option_icon{background-image:url('../images/arrow_2.png')}.wdi_advanced_option.wdi_advanced_option_close tbody tr:not(.wdi_advanced_option_head){display:none}.instagram-feed-wd_page_wdi_settings form h2{display:none}#wdi_options_page_buttons_wrapper{margin-top:10px;width:700px}.wdi_hide{display:none}.wdi_hidden{display:none !important}.selectoff{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.wdi_filter_radio{margin:5px;display:inline-block}.wdi_filter_radio label{vertical-align:text-bottom}.wdi_filter_input{margin-top:10px}.wdi_filter_input input{height:28px;width:250px;margin-right:0;padding-right:0;line-height:28px}#wdi_filter_type{line-height:28px;margin:0;padding:0;position:relative;right:2px;top:-1px;font-weight:400}.wdi_filter_item{display:inline-block;padding:6px;margin-top:5px;border-radius:5px}.wdi_filter_by_username{background-color:#00a0d2;color:white}.wdi_filter_by_hashtag{background-color:#e08d11;color:white}.wdi_logic{display:inline-block;padding:5px;font-weight:bold}.wdi_filter_by_location{background-color:#509833;color:white}.wdi_filter_by_mention{background-color:#833888;color:white}.wdi_filter_by_description{background-color:#bd242b;color:white}.wdi_filter_by_url{background-color:#004eff;color:white}.wdi_remove_filter{padding-left:5px;color:white;font-size:13px}.wdi_remove_filter:hover{cursor:pointer}.wdi_source_user{display:inline-block;padding:5px}.wdi_source_img{display:inline-block}.wdi_source_img img{width:30px;height:30px;border-radius:15px;display:block}.wdi_source_username{display:inline-block;line-height:25px;font-size:15px !important;height:30px;vertical-align:bottom;padding:0 5px;font-weight:bold}#login_with_instagram>a:focus{-webkit-box-shadow:none;box-shadow:none}.wdi_help_bar_wrap{background-color:#fff;border:0;box-sizing:border-box;clear:both;color:#6e7990;font-size:14px;font-weight:bold;line-height:30px;padding:15px;vertical-align:middle;width:98%}.wdi_help_bar_text{float:left}.wdi_help_bar_text>a{color:#0073aa;text-decoration:none}.wdi_hb_buy_pro{float:right;padding:0}.wdi_hb_buy_pro a,.wdi_hb_buy_pro a:active,.wdi_hb_buy_pro a:visited,.wdi_hb_buy_pro a:hover{display:inline-block;font-weight:bold;font-size:14px;vertical-align:middle;border:0;box-shadow:none !important;text-decoration:none}.wdi_hb_buy_pro .wdi_support_link{color:#72777c !important;padding:0 10px}.wdi_hb_buy_pro .wdi_update_pro_link{background:#45a6b7;font-weight:bold;line-height:30px;padding:0 18px 0 18px;color:#fff !important}.wdi_hb_buy_pro img{border:0;display:inline-block;vertical-align:middle}#bullets_images_type,#bullets_images_color,#bull_style,#rl_butt_type,#rl_butt_color,#rl_butt_style{margin:0 10px 0 0;width:100px}.wds_ctrl_btn_upload{display:block !important;margin:5px 0 !important;text-align:center;vertical-align:middle;width:95%}.wds_reverse{margin:0 5px !important}.wds_free_button,.wds_free_button:hover{background:linear-gradient(to bottom,#e5e5e5,#e5e5e5) repeat scroll 0 0 #f3f3f3 !important;border-color:#bbb !important;color:#888 !important}.wdi_spider_free_version_label,.wdi_spider_free_version_label *{color:#808080 !important}.wdi_spider_free_version{background-color:#dfdfdf;border:1px solid #797979;border-radius:2px;padding:2px;width:210px}.wds_more{font-size:12px}.wrap .button{border-radius:3px !important;text-shadow:none !important}.wdi_spider_message_cont{display:none;width:99%}.wdi_spider_load{display:none}.wdi_spider_load_cont{background-color:rgba(0,0,0,0.2);left:0;height:100%;position:fixed;top:0;width:100%;z-index:99998}.wdi_spider_load_icon{left:0;height:100%;position:fixed;text-align:center;top:0;width:100%;z-index:99999}.wdi_spider_ajax_loading{border:none !important;margin-top:200px;width:50px;-webkit-animation:spin 2.5s infinite linear;-moz-animation:spin 2.5s infinite linear;-o-animation:spin 2.5s infinite linear;animation:spin 2.5s infinite linear}@-moz-keyframes spin{0{-moz-transform:rotate(0)}100%{-moz-transform:rotate(359deg)}}@-webkit-keyframes spin{0{-webkit-transform:rotate(0)}100%{-webkit-transform:rotate(359deg)}}@-o-keyframes spin{0{-o-transform:rotate(0)}100%{-o-transform:rotate(359deg)}}@-ms-keyframes spin{0{-ms-transform:rotate(0)}100%{-ms-transform:rotate(359deg)}}@keyframes spin{0{transform:rotate(0)}100%{transform:rotate(359deg)}}#TB_window,#TB_iframeContent{width:800px !important;height:500px !important}#TB_window{margin-left:-400px !important}.wrap *{font-size:12px;font-family:sans-serif}.input_th{margin-left:0 !important;width:160px !important;font-family:sans-serif}.input_th2{margin-left:0 !important;width:160px !important;margin-top:5px;height:19px}.edit_input{height:28px !important;padding-bottom:7px !important}.add_tag_th{padding-left:21px;font-size:12px;font-family:sans-serif}.pointer{cursor:pointer}.non_selectable{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.wds_position_table td,.wds_position_table input{border:1px solid #ccc;margin:2px}.wds_position_table .wds_position_td{background-color:#f4f4f4;display:inline-block;line-height:1;padding:0 !important}.wdi_spider_div_options{background:none repeat scroll 0 0 #f4f4f4;border:1px solid #8f8d8d;border-radius:8px 8px 8px 8px;display:none;margin:2px 0 0 190px;padding:13px;min-height:300px;min-width:600px;vertical-align:top}.table_small_col{text-align:center !important;width:45px}.table_medium_col{text-align:center !important;width:70px}.table_big_col{text-align:center !important;width:80px}.table_large_col{text-align:center !important;width:140px}.table_medium_col_uncenter{width:80px}.table_extra_large_col{padding:4px !important;width:150px !important}.first-page,.prev-page,.next-page,.last-page,.table_extra_large_col a,.table_medium_col a,.table_big_col a,.table_small_col a{cursor:pointer}.wdi_spider_word_wrap{word-wrap:normal}.wdi_spider_description{color:#666;font-size:.923em;line-height:1.231em}.handle{background:url("../images/draggable.png") no-repeat transparent;border:0;cursor:move;display:inline-block;height:15px;margin:0 auto;vertical-align:middle;width:15px}.slider-icon{background-image:url("../images/slider-icon.png");background-repeat:no-repeat;border:0;float:left;height:32px;margin:7px 8px 0 0;width:32px}.uninstall-icon{background-image:url("../images/uninstall-icon.png");background-repeat:no-repeat;border:0;float:left;height:32px;margin:7px 8px 0 0;width:32px}.wdi_spider_label{font-weight:bold;width:100px}.wdi_spider_label_top{font-weight:bold;padding-top:3px;vertical-align:top;width:100px}.wdi_spider_fieldset .wdi_spider_label{font-weight:bold;vertical-align:top;width:150px}.wdi_spider_label_options{font-weight:bold;vertical-align:top;width:150px}.wdi_spider_choose_option{display:table;box-shadow:0 0 1px 1px #d2d2d2;margin-bottom:5px;border-radius:2px;padding:2px;box-sizing:border-box;cursor:pointer;width:100%}.wdi_spider_options_cont,.wdi_spider_bull_options_cont,.wdi_spider_pp_options_cont,.wdi_spider_options_color_cont,.wdi_spider_bull_options_color_cont,.wdi_spider_pp_options_color_cont{display:none;width:180px;height:150px;overflow:scroll;overflow-x:hidden;overflow-y:scroll}.wdi_spider_option_cont{display:block;border-bottom:1px solid #d3d3d3;padding:3px 0 3px 0;box-sizing:content-box;width:98%;border-radius:0;cursor:pointer}.wdi_spider_option_cont_title{display:table-cell;vertical-align:middle;padding:0 0 0 4px}.wdi_spider_option_cont_img{display:table-cell;width:23%;height:15px;text-align:right;padding:5px 4px 0 0;box-sizing:border-box;background-color:#eee}.wdi_spider_option_main_title{display:table-cell;width:65%;vertical-align:middle;padding:0 0 0 4px;color:#555}.wdi_spider_sel_option_ic{display:table-cell;width:20%;height:15px;text-align:right;padding:0 6px 0 0;box-sizing:border-box}.wdi_spider_int_input{width:45px}.wdi_spider_char_input{width:115px}.wdi_spider_text_input{width:190px}.wdi_spider_slider_div{display:inline-block;vertical-align:middle;width:140px}.wdi_spider_slider_percentage,.wdi_spider_slider_percentage input,.wdi_spider_slider_percentage input :focus{background:transparent;border:0;color:#00aeef;display:inline;font-weight:bold;text-align:right;vertical-align:middle;width:30px}.updated,.error{margin:5px 0 2px !important}.buttons_div{clear:both;float:right;margin:5px 0}.buttons_div_left{float:left;margin:5px 0}.buttons_div_right{float:right;margin:5px 0}.wdi_spider_delete_img{background-image:url("../images/delete.png");border:0;cursor:pointer;display:inline-block;vertical-align:middle;height:14px;width:14px}.wdi_spider_delete_img_small{background-image:url("../images/delete.png");background-size:10px auto;border:medium none;cursor:pointer;display:inline-block;height:10px;margin-top:2px;vertical-align:middle;width:10px}.wdi_spider_fieldset{background:none repeat scroll 0 0 #f4f4f4;border:1px solid #8f8d8d;border-radius:8px 8px 8px 8px;display:none;float:left;margin:4px;padding:13px;width:97%}.wdi_spider_type_fieldset{background:none repeat scroll 0 0 #f4f4f4;border-radius:8px 8px 8px 8px;display:none;float:left;width:100%}.wdi_spider_child_fieldset{background:none repeat scroll 0 0 #f4f4f4;border:1px solid #8f8d8d;border-radius:8px 8px 8px 8px;float:left;margin:4px;width:30%;padding:13px;display:block}.wdi_spider_table td{padding:0;vertical-align:middle}.wdi_spider_ctrls{padding:4px;text-align:center;width:40px}.theme_type{background-color:#f4f4f4;border:1px solid #8f8d8d;border-radius:8px 8px 8px 8px;cursor:pointer;display:inline-block;font-size:16px;height:24px;padding-top:5px;text-align:center;vertical-align:middle;width:123px;margin:2px 0 2px 0}.ui-slider-handle{cursor:pointer !important}.thumb{border:1px solid #ccc;max-height:120px;max-width:120px}.fileDescription{color:#666;cursor:pointer;font-family:sans-serif;font-size:12px}.filename{font-size:13px}.tag_div{background-clip:padding-box;background-color:#f3f3f3;border:1px solid #aaa;border-radius:3px 3px 3px 3px;box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,0.05);color:#666;line-height:13px;margin:2px 0;padding:2px 5px 2px 5px;width:132px}.tags_div{overflow-y:auto;height:65px}.tag_name{width:118px}.edit_thumb{cursor:pointer}.wdi_spider_rotate{border-radius:2px;border:1px solid #fff;height:30px}.wdi_spider_search_value{height:2em;margin:0 0 4px}#th_order,.wdi_spider_order{display:none}.wds_add_video,.wds_resize_image,.wds_import,.wds_exports{display:none;padding:10px;height:60px;background-color:#fff;border:1px solid #999;top:50%;position:fixed;left:50%;text-align:left;z-index:100000;border-radius:3px;margin-top:-45px}.wds_add_video,.wds_resize_image{margin-left:-340px}.wds_exports{margin-left:-240px}.wds_import{margin-left:-185px}.wds_add_video input[type="text"],.wds_resize_image input[type="text"]{width:500px}.wds_opacity_video,.wds_opacity_import,.wds_opacity_export{background-color:#000;display:none;opacity:.75;filter:Alpha(opacity=75);position:fixed;top:0;left:0;width:100%;height:100%;z-index:99998}.widefat .check-column{text-align:center}.wds_tabs{clear:both;display:none;position:relative;z-index:1}.wds_tabs a.wds_sub_active,.wds_tabs a.wds_active{background-color:#f5f5f5;border-bottom:1px solid #f5f5f5;color:#333}.wds_tabs a{background-color:#f9f9f9;border:1px solid #dfdfdf;border-top-left-radius:3px;border-top-right-radius:3px;color:#c7c7c7;display:block !important;float:left;font:bold 17px/32px Arial,serif;height:30px;margin:3px 3px 0 0;padding:0 10px;position:relative;text-decoration:none;width:130px}.wbs_subtab a{font:bold 14px/26px Arial,serif;height:26px;padding:0 5px;width:105px}.wds_add_layer{font:normal 20px/28px Arial,serif !important;width:initial !important;padding:0 9px !important}.wds_tab_title{background:none repeat scroll 0 0 transparent !important;border:none !important;cursor:pointer;opacity:.5;filter:Alpha(opacity=50);padding:1px;vertical-align:middle;width:50px}.wds_sub_active .wds_tab_title,.wds_layer_title{background-color:#fff !important;border-color:#dfdfdf !important;border-radius:3px !important;border-style:solid !important;border-width:1px !important;cursor:pointer;opacity:1;filter:Alpha(opacity=100)}.wds_tab_remove{background-image:url("../images/close.png");background-repeat:no-repeat;background-size:100% 100%;display:inline-block;width:9px;height:9px;opacity:.5;filter:Alpha(opacity=50);vertical-align:middle}.wds_layer_remove{background-image:url("../images/close.png");background-repeat:no-repeat;background-size:100% 100%;display:inline-block;width:15px;height:15px;margin:5px;float:right}.wds_layer_dublicate{background-image:url("../images/duplicate.png");background-repeat:no-repeat;background-size:100% 100%;display:inline-block;width:15px;height:15px;margin:5px;float:right}.wds_slide_dublicate{background-image:url("../images/duplicate.png");background-repeat:no-repeat;background-size:100% 100%;display:inline-block;width:12px;height:12px;vertical-align:middle}.wds_layer_depth{float:right;font-size:13px;line-height:15px;margin:1px 5px;text-align:left;width:40px}.wds_layer_label{display:inline-block;font-size:13px;width:80%}.wds_sub_active .wds_tab_remove{cursor:pointer !important;opacity:1;filter:Alpha(opacity=100)}.wds_box.wds_sub_active,.wds_box.wds_active{display:block}.wds_tab_label{display:block;width:inherit}.wds_box{display:none;margin-top:0 !important;position:relative;top:-1px}.wds_box{border:1px solid #dfdfdf;border-radius:3px;box-shadow:0 0 10px #f2f2f2;margin-top:15px;position:relative}.wds_clear{clear:both;float:none !important}.wds_box thead td{border-bottom:0 none !important}.wds_box tbody{background-color:#fff;border-top:0 none;padding-left:10px}.wds_box thead{background:-webkit-linear-gradient(#f5f5f5,#fff);background:-o-linear-gradient(#f5f5f5,#fff);background:-moz-linear-gradient(#f5f5f5,#fff);background:linear-gradient(#f5f5f5,#fff);border-top:0 none;border-bottom:0 none;color:#333;font:bold 12px/29px Arial,serif;height:29px;margin:0;padding:0 10px;text-align:left;text-shadow:0 1px 0 #fff}.wds_box table{border-collapse:collapse;border-spacing:0;width:100%}.wds_nav_tabs{background-color:#f5f5f5;border-right:1px solid #dfdfdf;float:left;height:640px;margin:0;width:150px}.wds_nav_tabs ul{list-style:none outside none;margin:10px 0;padding:0}.wds_nav_tabs .wds_sub_active,.wds_nav_tabs .wds_sub_active a,.wds_nav_tabs .wds_sub_active a:hover,.wds_nav_tabs .wds_active,.wds_nav_tabs .wds_active a,.wds_nav_tabs .wds_active a:hover{background:none repeat scroll 0 0 #fff;color:#333}.wds_nav_tabs .wds_active{border-color:#dfdfdf;border-width:1px 0 1px 1px;border-style:solid;margin:0 -1px 0 -4px;padding:0}.wds_nav_tabs li{border-color:transparent;border-style:solid;border-width:1px 0;list-style-type:none;margin-bottom:0}.wds_nav_tabs a{display:block;line-height:18px;padding:5px 5px 5px 12px;text-decoration:none}.wds_nav_box{background:none repeat scroll 0 0 #fff;display:none;height:610px;overflow:auto;padding:15px}.wds_nav_box.wds_active{display:block}.wds_layer_head{background-color:#f5f5f5;border-bottom:1px solid #dfdfdf;border-top:1px solid #dfdfdf;cursor:pointer;padding:5px}.wds_layer_head .handle{cursor:move;display:inline-block;margin:5px}.wds_box td{padding:10px !important}.wds_draggable{box-sizing:border-box;cursor:move}.wds_box .color{width:60px}.wds_active_layer{box-shadow:#2c2424 0 0 5px;border-radius:3px}.wds_draggable a,.wds_draggable a:hover{color:inherit !important;font-size:inherit !important;font-style:inherit !important;font-weight:inherit !important;text-decoration:none}#add_embed_help{height:200px;width:672px;top:40%}#add_embed input[type="text"]{width:500px}.wds_buttons{float:right;font-weight:normal;position:relative}.wds_reset_button{display:none;font-weight:normal;margin:10px 0;position:absolute;right:40px;z-index:1}#wdi_save_feed .two .section_col{width:47%;float:left;margin:0 1.5% 18px}#wdi_save_feed .wdi_element{margin:0 0 18px}#wdi_save_feed .half .wdi_element{width:96%;float:none;margin:0 2% 20px}#wdi_save_feed .wdi_element p{margin:2px 0 0}.wdi_section_name{font-size:19px;margin:0 auto 15px;width:97%;box-sizing:border-box;padding:15px 0 15px;border-bottom:1px solid #f1f1f1;color:#444}.wdi_section{border:1px solid #dedede;margin-bottom:20px;background:#fff}.wdi_section .optioninput *{text-align:left}.wdi_section.half{width:49%;float:left;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.wdi_buttons{text-align:right;margin-top:7px}.wdi_tab .wdi_section.half:last-child{margin-left:2%}@media(min-width:768px){.wdi_border_wrapper .wdi_element_content{width:100%;display:block}.wdi_border_wrapper .wdi_element_title{display:block}.wdi_border_wrapper .wdi_element_content input[type=text]:not(.wp-color-picker){width:calc(100% - 30px);height:28px}.wdi_border_wrapper .wdi_element_content input#wdi_add_user_ajax_input{width:calc(100% - 78px)}.wdi_border_wrapper .wdi_element_content input[type=number]{width:calc(100% - 30px)}.wdi_border_wrapper .wdi_element_content select{width:calc(100% - 30px)}}@media(max-width:768px){#wdi_save_feed .two .section_col{width:96%;float:none;margin:0 2% 18px}.wdi_section.half{width:100%;float:none;margin:0 0 20px 0 !important}}.wdi_demo_img{margin-top:20px}
|
1 |
+
.wdi_clear{clear:both}.wdi_clear_tag:after{content:"";display:table;clear:both}#wdi_unistall{background-color:#d82121;border-color:#d31818;box-shadow:inset 0 1px 0 rgba(230,120,120,0.5),0 1px 0 rgba(0,0,0,.15)}#wdi_unistall:hover{background-color:#da1313}#wdi_unistall_table th{width:45%}.display_type_content{background:#fff;border:1px solid #dedede;margin-bottom:15px}.wdi_tooltip,.wdi_settings_link{display:block;font-size:14px !important;font-weight:bold;line-height:20px;margin-bottom:5px;color:#444;text-decoration:none}p.wdi_about_filed{font-size:13px;font-style:italic}.wdi_tooltip:hover,.wdi_settings_link:hover{color:#23282d;position:relative}.wdi_tooltip:hover:after{content:attr(wdi-tooltip);padding:4px 8px;color:#dbdbe0;position:absolute;left:0;top:100%;white-space:nowrap;z-index:20;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:2px;-moz-box-shadow:0 0 4px #222;-webkit-box-shadow:0 0 4px #222;box-shadow:0 0 4px rgba(0,0,0,0.5);background-color:rgba(0,0,0,0.75);font-size:12px}.wdi_pro_only{font-style:italic;color:#4e4e4e !important;background-color:#ccc !important;text-decoration:none}.wdi_pro_only_op{opacity:.6}.wdi_pro_notice{text-align:right;color:#15699f;font-size:20px !important;padding:10px}.wdi_pro_only_btn{background-color:#c5c0c0 !important;border-top-color:#c5c0c0 !important}.wdi-pro-overlay img{opacity:.7}#wdi_feed_users{width:100%;margin-top:2px}#wdi_feed_tabs .wdi_feed_tabs{border:1px solid #f1f1f1;color:#444;cursor:pointer;font-size:13px;font-weight:bold;padding:12px;background:#fff;text-decoration:none;display:inline-block}#wdi_feed_tabs{margin:16px 0}#wdi_feed_tabs .wdi_feed_tab_active,#wdi_feed_tabs .wdi_feed_tabs:hover{background:none repeat scroll 0 0 #fff;color:#9a2465}#how_to_publish_tab .wdi_howto_container .wdi_howto_content .wdi_howto_wrapper{max-width:270px;margin:0 auto}#how_to_publish_tab .wdi_howto_container .wdi_howto_content .wdi_howto_wrapper img{max-width:100%}#wdi_feed_tabs .wdi_feed_tab_title{margin-top:1px;display:inline-block}.wdi_border_wrapper [scope='row']+td,.wdi_border_wrapper [scope='row']{padding:8px}.display_type_container.wdi_clear_tag{display:table;margin:10px auto}.display_type_container>div{float:left;margin-right:15px}.wdi_user{border:1px solid #b9b9b9;background-color:rgba(0,0,0,.05);margin:0 4px 0 0;border-radius:5px;height:28px;position:relative;display:inline-block}.wdi_user:hover{background-color:rgba(0,0,0,.08)}.wdi_user a{text-decoration:none;color:black;line-height:28px;width:70%;margin-left:12%;margin-right:18%;height:100%;display:table-row;padding-right:3px}.wdi_user .wdi_profile_pic{width:20px;height:20px;top:4px;left:30px;padding:5px;vertical-align:middle;display:table-cell}.wdi_user span{display:table-cell;vertical-align:middle;left:55px;font-weight:bold;font-size:14px}.wdi_user .wdi_remove_user,.wdi_user .wdi_check_thumb_user{position:absolute;right:4px;width:15px;height:15px;top:6.5px;transition:all .1s ease}.wdi_user .wdi_remove_user:hover{cursor:pointer;transform:rotate(180deg)}.wdi_user .wdi_check_thumb_user:hover{cursor:pointer}.wdi_user .wdi_check_thumb_user{left:4px}.wdi_border_wrapper [scope='row']{padding:2px;font-size:13px;min-width:250px}.wdi_border_wrapper [scope='row']+td,.wdi_border_wrapper [scope='row']{padding:2px}.small_input{width:60px;text-align:center}.display_type{text-align:center}.wdi_access_token_missing{font-size:14px;color:#000;clear:both;max-width:720px}.instagram-feed-wd_page_wdi_settings form{width:65%}.instagram-feed-wd_page_wdi_settings table td{padding-left:0;padding-right:0}.instagram-feed-wd_page_wdi_settings table th{padding-left:4px}.instagram-feed-wd_page_wdi_settings table input{float:right}#login_with_instagram{height:43px}#login_with_instagram .wdi_sign_in_button{background-image:url('../images/sign_in_with_instagram.png');background-repeat:no-repeat;background-position:left top;width:234px;height:43px;display:inline-block;float:left}#login_with_instagram .wdi_default_feed_button,#login_with_instagram .wdi_edit_default_feed_button{width:234px;height:43px;background-repeat:no-repeat;background-position:center top;display:inline-block}#login_with_instagram .wdi_default_feed_button{background-image:url('../images/default_feed_button.png');float:left;margin-right:10px}#login_with_instagram .wdi_edit_default_feed_button{background-image:url('../images/edit_feed_button.png');float:left}#wdi_options_page_buttons_wrapper .submit{display:inline;margin-left:15px}#wdi_reset_access_token{margin-top:0;float:left;width:232px;text-align:center}.wdi_advanced_option{width:100%;position:relative;font-weight:600}.wdi_advanced_option{background-color:#fff;cursor:pointer;border:1px solid #e3e3e3;border-radius:10px;border-collapse:separate;border-spacing:0}.wdi_advanced_option .wdi_advanced_option_head{border-bottom:1px solid #e3e3e3}.wdi_advanced_option .wdi_advanced_option_head th{padding-top:10px;padding-bottom:10px}.wdi_advanced_option.wdi_advanced_option_open .wdi_advanced_option_head th{border-bottom:1px solid #e3e3e3;border-bottom-left-radius:10px}.wdi_advanced_option.wdi_advanced_option_open .wdi_advanced_option_head td{border-bottom:1px solid #e3e3e3;border-bottom-right-radius:10px}.instagram-feed-wd_page_wdi_settings table.wdi_advanced_option th{padding-left:12px}.instagram-feed-wd_page_wdi_settings table.wdi_advanced_option td .wdwt_param{margin-left:15px}.wdi_advanced_option .wdi_advanced_option_icon{background-repeat:no-repeat;background-position:left top;width:20px;height:20px;display:inline-block;position:absolute;top:16px;right:10px}.wdi_advanced_option.wdi_advanced_option_close .wdi_advanced_option_icon{background-image:url('../images/arrow_1.png')}.wdi_advanced_option.wdi_advanced_option_open .wdi_advanced_option_icon{background-image:url('../images/arrow_2.png')}.wdi_advanced_option.wdi_advanced_option_close tbody tr:not(.wdi_advanced_option_head){display:none}.instagram-feed-wd_page_wdi_settings form h2{display:none}#wdi_options_page_buttons_wrapper{margin-top:10px;width:700px}.wdi_hide{display:none}.wdi_hidden{display:none !important}.selectoff{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.wdi_filter_radio{margin:5px;display:inline-block}.wdi_filter_radio label{vertical-align:text-bottom}.wdi_filter_input{margin-top:10px}.wdi_filter_input input{height:28px;width:250px;margin-right:0;padding-right:0;line-height:28px}#wdi_filter_type{line-height:28px;margin:0;padding:0;position:relative;right:2px;top:-1px;font-weight:400}.wdi_filter_item{display:inline-block;padding:6px;margin-top:5px;border-radius:5px}.wdi_filter_by_username{background-color:#00a0d2;color:white}.wdi_filter_by_hashtag{background-color:#e08d11;color:white}.wdi_logic{display:inline-block;padding:5px;font-weight:bold}.wdi_filter_by_location{background-color:#509833;color:white}.wdi_filter_by_mention{background-color:#833888;color:white}.wdi_filter_by_description{background-color:#bd242b;color:white}.wdi_filter_by_url{background-color:#004eff;color:white}.wdi_remove_filter{padding-left:5px;color:white;font-size:13px}.wdi_remove_filter:hover{cursor:pointer}.wdi_source_user{display:inline-block;padding:5px}.wdi_source_img{display:inline-block}.wdi_source_img img{width:30px;height:30px;border-radius:15px;display:block}.wdi_source_username{display:inline-block;line-height:25px;font-size:15px !important;height:30px;vertical-align:bottom;padding:0 5px;font-weight:bold}#login_with_instagram>a:focus{-webkit-box-shadow:none;box-shadow:none}.wdi_help_bar_wrap{background-color:#fff;border:0;box-sizing:border-box;clear:both;color:#6e7990;font-size:14px;font-weight:bold;line-height:30px;padding:15px;vertical-align:middle;width:calc(100% - 22px)}.wdi_help_bar_text{float:left}.wdi_help_bar_text>a{color:#0073aa;text-decoration:none}.wdi_hb_buy_pro{float:right;padding:0}.wdi_hb_buy_pro a,.wdi_hb_buy_pro a:active,.wdi_hb_buy_pro a:visited,.wdi_hb_buy_pro a:hover{display:inline-block;font-weight:bold;font-size:14px;vertical-align:middle;border:0;box-shadow:none !important;text-decoration:none}.wdi_hb_buy_pro .wdi_support_link{color:#72777c !important;padding:0 10px}.wdi_hb_buy_pro .wdi_update_pro_link{background:#45a6b7;font-weight:bold;line-height:30px;padding:0 18px 0 18px;color:#fff !important}.wdi_hb_buy_pro img{border:0;display:inline-block;vertical-align:middle}#bullets_images_type,#bullets_images_color,#bull_style,#rl_butt_type,#rl_butt_color,#rl_butt_style{margin:0 10px 0 0;width:100px}.wds_ctrl_btn_upload{display:block !important;margin:5px 0 !important;text-align:center;vertical-align:middle;width:95%}.wds_reverse{margin:0 5px !important}.wds_free_button,.wds_free_button:hover{background:linear-gradient(to bottom,#e5e5e5,#e5e5e5) repeat scroll 0 0 #f3f3f3 !important;border-color:#bbb !important;color:#888 !important}.wdi_spider_free_version_label,.wdi_spider_free_version_label *{color:#808080 !important}.wdi_spider_free_version{background-color:#dfdfdf;border:1px solid #797979;border-radius:2px;padding:2px;width:210px}.wds_more{font-size:12px}.wrap .button{border-radius:3px !important;text-shadow:none !important}.wdi_spider_message_cont{display:none;width:99%}.wdi_spider_load{display:none}.wdi_spider_load_cont{background-color:rgba(0,0,0,0.2);left:0;height:100%;position:fixed;top:0;width:100%;z-index:99998}.wdi_spider_load_icon{left:0;height:100%;position:fixed;text-align:center;top:0;width:100%;z-index:99999}.wdi_spider_ajax_loading{border:none !important;margin-top:200px;width:50px;-webkit-animation:spin 2.5s infinite linear;-moz-animation:spin 2.5s infinite linear;-o-animation:spin 2.5s infinite linear;animation:spin 2.5s infinite linear}@-moz-keyframes spin{0{-moz-transform:rotate(0)}100%{-moz-transform:rotate(359deg)}}@-webkit-keyframes spin{0{-webkit-transform:rotate(0)}100%{-webkit-transform:rotate(359deg)}}@-o-keyframes spin{0{-o-transform:rotate(0)}100%{-o-transform:rotate(359deg)}}@-ms-keyframes spin{0{-ms-transform:rotate(0)}100%{-ms-transform:rotate(359deg)}}@keyframes spin{0{transform:rotate(0)}100%{transform:rotate(359deg)}}#TB_window,#TB_iframeContent{width:800px !important;height:500px !important}#TB_window{margin-left:-400px !important}.wrap *{font-size:12px;font-family:sans-serif}.input_th{margin-left:0 !important;width:160px !important;font-family:sans-serif}.input_th2{margin-left:0 !important;width:160px !important;margin-top:5px;height:19px}.edit_input{height:28px !important;padding-bottom:7px !important}.add_tag_th{padding-left:21px;font-size:12px;font-family:sans-serif}.pointer{cursor:pointer}.non_selectable{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.wds_position_table td,.wds_position_table input{border:1px solid #ccc;margin:2px}.wds_position_table .wds_position_td{background-color:#f4f4f4;display:inline-block;line-height:1;padding:0 !important}.wdi_spider_div_options{background:none repeat scroll 0 0 #f4f4f4;border:1px solid #8f8d8d;border-radius:8px 8px 8px 8px;display:none;margin:2px 0 0 190px;padding:13px;min-height:300px;min-width:600px;vertical-align:top}.table_small_col{text-align:center !important;width:45px}.table_medium_col{text-align:center !important;width:70px}.table_big_col{text-align:center !important;width:80px}.table_large_col{text-align:center !important;width:140px}.table_medium_col_uncenter{width:80px}.table_extra_large_col{padding:4px !important;width:150px !important}.first-page,.prev-page,.next-page,.last-page,.table_extra_large_col a,.table_medium_col a,.table_big_col a,.table_small_col a{cursor:pointer}.wdi_spider_word_wrap{word-wrap:normal}.wdi_spider_description{color:#666;font-size:.923em;line-height:1.231em}.handle{background:url("../images/draggable.png") no-repeat transparent;border:0;cursor:move;display:inline-block;height:15px;margin:0 auto;vertical-align:middle;width:15px}.slider-icon{background-image:url("../images/slider-icon.png");background-repeat:no-repeat;border:0;float:left;height:32px;margin:7px 8px 0 0;width:32px}.uninstall-icon{background-image:url("../images/uninstall-icon.png");background-repeat:no-repeat;border:0;float:left;height:32px;margin:7px 8px 0 0;width:32px}.wdi_spider_label{font-weight:bold;width:100px}.wdi_spider_label_top{font-weight:bold;padding-top:3px;vertical-align:top;width:100px}.wdi_spider_fieldset .wdi_spider_label{font-weight:bold;vertical-align:top;width:150px}.wdi_spider_label_options{font-weight:bold;vertical-align:top;width:150px}.wdi_spider_choose_option{display:table;box-shadow:0 0 1px 1px #d2d2d2;margin-bottom:5px;border-radius:2px;padding:2px;box-sizing:border-box;cursor:pointer;width:100%}.wdi_spider_options_cont,.wdi_spider_bull_options_cont,.wdi_spider_pp_options_cont,.wdi_spider_options_color_cont,.wdi_spider_bull_options_color_cont,.wdi_spider_pp_options_color_cont{display:none;width:180px;height:150px;overflow:scroll;overflow-x:hidden;overflow-y:scroll}.wdi_spider_option_cont{display:block;border-bottom:1px solid #d3d3d3;padding:3px 0 3px 0;box-sizing:content-box;width:98%;border-radius:0;cursor:pointer}.wdi_spider_option_cont_title{display:table-cell;vertical-align:middle;padding:0 0 0 4px}.wdi_spider_option_cont_img{display:table-cell;width:23%;height:15px;text-align:right;padding:5px 4px 0 0;box-sizing:border-box;background-color:#eee}.wdi_spider_option_main_title{display:table-cell;width:65%;vertical-align:middle;padding:0 0 0 4px;color:#555}.wdi_spider_sel_option_ic{display:table-cell;width:20%;height:15px;text-align:right;padding:0 6px 0 0;box-sizing:border-box}.wdi_spider_int_input{width:45px}.wdi_spider_char_input{width:115px}.wdi_spider_text_input{width:190px}.wdi_spider_slider_div{display:inline-block;vertical-align:middle;width:140px}.wdi_spider_slider_percentage,.wdi_spider_slider_percentage input,.wdi_spider_slider_percentage input :focus{background:transparent;border:0;color:#00aeef;display:inline;font-weight:bold;text-align:right;vertical-align:middle;width:30px}.updated,.error{margin:5px 0 2px !important}.buttons_div{clear:both;float:right;margin:5px 0}.buttons_div_left{float:left;margin:5px 0}.buttons_div_right{float:right;margin:5px 0}.wdi_spider_delete_img{background-image:url("../images/delete.png");border:0;cursor:pointer;display:inline-block;vertical-align:middle;height:14px;width:14px}.wdi_spider_delete_img_small{background-image:url("../images/delete.png");background-size:10px auto;border:medium none;cursor:pointer;display:inline-block;height:10px;margin-top:2px;vertical-align:middle;width:10px}.wdi_spider_fieldset{background:none repeat scroll 0 0 #f4f4f4;border:1px solid #8f8d8d;border-radius:8px 8px 8px 8px;display:none;float:left;margin:4px;padding:13px;width:97%}.wdi_spider_type_fieldset{background:none repeat scroll 0 0 #f4f4f4;border-radius:8px 8px 8px 8px;display:none;float:left;width:100%}.wdi_spider_child_fieldset{background:none repeat scroll 0 0 #f4f4f4;border:1px solid #8f8d8d;border-radius:8px 8px 8px 8px;float:left;margin:4px;width:30%;padding:13px;display:block}.wdi_spider_table td{padding:0;vertical-align:middle}.wdi_spider_ctrls{padding:4px;text-align:center;width:40px}.theme_type{background-color:#f4f4f4;border:1px solid #8f8d8d;border-radius:8px 8px 8px 8px;cursor:pointer;display:inline-block;font-size:16px;height:24px;padding-top:5px;text-align:center;vertical-align:middle;width:123px;margin:2px 0 2px 0}.ui-slider-handle{cursor:pointer !important}.thumb{border:1px solid #ccc;max-height:120px;max-width:120px}.fileDescription{color:#666;cursor:pointer;font-family:sans-serif;font-size:12px}.filename{font-size:13px}.tag_div{background-clip:padding-box;background-color:#f3f3f3;border:1px solid #aaa;border-radius:3px 3px 3px 3px;box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,0.05);color:#666;line-height:13px;margin:2px 0;padding:2px 5px 2px 5px;width:132px}.tags_div{overflow-y:auto;height:65px}.tag_name{width:118px}.edit_thumb{cursor:pointer}.wdi_spider_rotate{border-radius:2px;border:1px solid #fff;height:30px}.wdi_spider_search_value{height:2em;margin:0 0 4px}#th_order,.wdi_spider_order{display:none}.wds_add_video,.wds_resize_image,.wds_import,.wds_exports{display:none;padding:10px;height:60px;background-color:#fff;border:1px solid #999;top:50%;position:fixed;left:50%;text-align:left;z-index:100000;border-radius:3px;margin-top:-45px}.wds_add_video,.wds_resize_image{margin-left:-340px}.wds_exports{margin-left:-240px}.wds_import{margin-left:-185px}.wds_add_video input[type="text"],.wds_resize_image input[type="text"]{width:500px}.wds_opacity_video,.wds_opacity_import,.wds_opacity_export{background-color:#000;display:none;opacity:.75;filter:Alpha(opacity=75);position:fixed;top:0;left:0;width:100%;height:100%;z-index:99998}.widefat .check-column{text-align:center}.wds_tabs{clear:both;display:none;position:relative;z-index:1}.wds_tabs a.wds_sub_active,.wds_tabs a.wds_active{background-color:#f5f5f5;border-bottom:1px solid #f5f5f5;color:#333}.wds_tabs a{background-color:#f9f9f9;border:1px solid #dfdfdf;border-top-left-radius:3px;border-top-right-radius:3px;color:#c7c7c7;display:block !important;float:left;font:bold 17px/32px Arial,serif;height:30px;margin:3px 3px 0 0;padding:0 10px;position:relative;text-decoration:none;width:130px}.wbs_subtab a{font:bold 14px/26px Arial,serif;height:26px;padding:0 5px;width:105px}.wds_add_layer{font:normal 20px/28px Arial,serif !important;width:initial !important;padding:0 9px !important}.wds_tab_title{background:none repeat scroll 0 0 transparent !important;border:none !important;cursor:pointer;opacity:.5;filter:Alpha(opacity=50);padding:1px;vertical-align:middle;width:50px}.wds_sub_active .wds_tab_title,.wds_layer_title{background-color:#fff !important;border-color:#dfdfdf !important;border-radius:3px !important;border-style:solid !important;border-width:1px !important;cursor:pointer;opacity:1;filter:Alpha(opacity=100)}.wds_tab_remove{background-image:url("../images/close.png");background-repeat:no-repeat;background-size:100% 100%;display:inline-block;width:9px;height:9px;opacity:.5;filter:Alpha(opacity=50);vertical-align:middle}.wds_layer_remove{background-image:url("../images/close.png");background-repeat:no-repeat;background-size:100% 100%;display:inline-block;width:15px;height:15px;margin:5px;float:right}.wds_layer_dublicate{background-image:url("../images/duplicate.png");background-repeat:no-repeat;background-size:100% 100%;display:inline-block;width:15px;height:15px;margin:5px;float:right}.wds_slide_dublicate{background-image:url("../images/duplicate.png");background-repeat:no-repeat;background-size:100% 100%;display:inline-block;width:12px;height:12px;vertical-align:middle}.wds_layer_depth{float:right;font-size:13px;line-height:15px;margin:1px 5px;text-align:left;width:40px}.wds_layer_label{display:inline-block;font-size:13px;width:80%}.wds_sub_active .wds_tab_remove{cursor:pointer !important;opacity:1;filter:Alpha(opacity=100)}.wds_box.wds_sub_active,.wds_box.wds_active{display:block}.wds_tab_label{display:block;width:inherit}.wds_box{display:none;margin-top:0 !important;position:relative;top:-1px}.wds_box{border:1px solid #dfdfdf;border-radius:3px;box-shadow:0 0 10px #f2f2f2;margin-top:15px;position:relative}.wds_clear{clear:both;float:none !important}.wds_box thead td{border-bottom:0 none !important}.wds_box tbody{background-color:#fff;border-top:0 none;padding-left:10px}.wds_box thead{background:-webkit-linear-gradient(#f5f5f5,#fff);background:-o-linear-gradient(#f5f5f5,#fff);background:-moz-linear-gradient(#f5f5f5,#fff);background:linear-gradient(#f5f5f5,#fff);border-top:0 none;border-bottom:0 none;color:#333;font:bold 12px/29px Arial,serif;height:29px;margin:0;padding:0 10px;text-align:left;text-shadow:0 1px 0 #fff}.wds_box table{border-collapse:collapse;border-spacing:0;width:100%}.wds_nav_tabs{background-color:#f5f5f5;border-right:1px solid #dfdfdf;float:left;height:640px;margin:0;width:150px}.wds_nav_tabs ul{list-style:none outside none;margin:10px 0;padding:0}.wds_nav_tabs .wds_sub_active,.wds_nav_tabs .wds_sub_active a,.wds_nav_tabs .wds_sub_active a:hover,.wds_nav_tabs .wds_active,.wds_nav_tabs .wds_active a,.wds_nav_tabs .wds_active a:hover{background:none repeat scroll 0 0 #fff;color:#333}.wds_nav_tabs .wds_active{border-color:#dfdfdf;border-width:1px 0 1px 1px;border-style:solid;margin:0 -1px 0 -4px;padding:0}.wds_nav_tabs li{border-color:transparent;border-style:solid;border-width:1px 0;list-style-type:none;margin-bottom:0}.wds_nav_tabs a{display:block;line-height:18px;padding:5px 5px 5px 12px;text-decoration:none}.wds_nav_box{background:none repeat scroll 0 0 #fff;display:none;height:610px;overflow:auto;padding:15px}.wds_nav_box.wds_active{display:block}.wds_layer_head{background-color:#f5f5f5;border-bottom:1px solid #dfdfdf;border-top:1px solid #dfdfdf;cursor:pointer;padding:5px}.wds_layer_head .handle{cursor:move;display:inline-block;margin:5px}.wds_box td{padding:10px !important}.wds_draggable{box-sizing:border-box;cursor:move}.wds_box .color{width:60px}.wds_active_layer{box-shadow:#2c2424 0 0 5px;border-radius:3px}.wds_draggable a,.wds_draggable a:hover{color:inherit !important;font-size:inherit !important;font-style:inherit !important;font-weight:inherit !important;text-decoration:none}#add_embed_help{height:200px;width:672px;top:40%}#add_embed input[type="text"]{width:500px}.wds_buttons{float:right;font-weight:normal;position:relative}.wds_reset_button{display:none;font-weight:normal;margin:10px 0;position:absolute;right:40px;z-index:1}#wdi_save_feed .two .section_col{width:47%;float:left;margin:0 1.5% 18px}#wdi_save_feed .wdi_element{margin:0 0 18px}#wdi_save_feed .half .wdi_element,#wdi_save_feed .one .wdi_element{width:96%;float:none;margin:0 2% 20px}#wdi_save_feed .wdi_element p{margin:2px 0 0}.wdi_section_name{font-size:19px;margin:0 auto 15px;width:100%;box-sizing:border-box;padding:15px;border-bottom:1px solid #f1f1f1;color:#444;cursor:pointer}.wdi_section{border:1px solid #dedede;margin-bottom:20px;background:#fff}.wdi_section .optioninput *{text-align:left}.wdi_section.half{width:49%;float:left;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.wdi_buttons{text-align:right;margin-top:7px}.wdi_tab .wdi_section.half:last-child{margin-left:2%}#how_to_publish_tab .wdi_howto_container{display:flex;flex-wrap:wrap}#how_to_publish_tab .wdi_howto_content{border:1px #ddd solid;display:flex;flex:1;flex-direction:column;margin:5px;min-width:250px;padding:20px 10px;text-align:center}#how_to_publish_tab .wdi_howto_container h2{font-size:23px;font-weight:normal;line-height:29px;margin:0;padding:11px 15px 4px 0}#how_to_publish_tab .wdi_howto_container .wdi_howto_content input{margin:0 auto;text-align:center;width:100%}.wdi_buttons button.button.preview-button{height:28px}@media(max-width:782px){.wdi_buttons button.button.preview-button{height:auto}}@media(min-width:768px){.wdi_border_wrapper .wdi_element_content{width:100%;display:block}.wdi_border_wrapper .wdi_element_title{display:block}.wdi_border_wrapper .wdi_element_content input[type=text]:not(.wp-color-picker){width:calc(100% - 30px);height:28px}.wdi_border_wrapper .wdi_element_content input#wdi_add_user_ajax_input{width:calc(100% - 78px)}.wdi_border_wrapper .wdi_element_content input[type=number]{width:calc(100% - 30px)}.wdi_border_wrapper .wdi_element_content select{width:calc(100% - 30px)}}@media(max-width:768px){#wdi_save_feed .two .section_col{width:96%;float:none;margin:0 2% 18px}.wdi_section.half{width:100%;float:none;margin:0 0 20px 0 !important}}.wdi_section_close::before{content:"\f142";display:inline-block;font:400 20px/1 dashicons;speak:none;float:right;cursor:pointer}.wdi_section_open::before{content:"\f140";display:inline-block;font:400 20px/1 dashicons;speak:none;float:right;cursor:pointer}.wdi-page-header{width:98%;padding:10px}.wdi-page-header .wdi_buttons{float:right}.wdi-page-header .WDI_title_input{padding:3px 8px;font-size:1.7em;line-height:100%;height:1.5em;width:30%;outline:0;margin:0 0 3px;background-color:#fff}.wdi_demo_img{margin-top:20px}
|
css/wdi_frontend.css
CHANGED
@@ -153,6 +153,7 @@
|
|
153 |
.wdi_feed_main_container .fa {
|
154 |
font-family: FontAwesome !important;
|
155 |
font-style: normal;
|
|
|
156 |
}
|
157 |
.wdi_media_info .fa:before {
|
158 |
margin-right: 6px;
|
@@ -466,7 +467,7 @@ div[id^="wdi_container"] p {
|
|
466 |
display: inline-block;
|
467 |
}
|
468 |
|
469 |
-
.wdi_layout_th .wdi_header_user_text h3 {
|
470 |
display: inline-block;
|
471 |
text-transform: none;
|
472 |
}
|
@@ -481,13 +482,13 @@ div[id^="wdi_container"] p {
|
|
481 |
margin:0;
|
482 |
}
|
483 |
|
484 |
-
.wdi_layout_th .wdi_header_user_text h3 {
|
485 |
margin-left: 10px;
|
486 |
margin-bottom: 0px;
|
487 |
padding:0;
|
488 |
}
|
489 |
|
490 |
-
.wdi_layout_th .wdi_media_info p {
|
491 |
margin-top: 0px;
|
492 |
margin-bottom: 0px;
|
493 |
}
|
@@ -502,7 +503,7 @@ div[id^="wdi_container"] p {
|
|
502 |
float: left;
|
503 |
}
|
504 |
|
505 |
-
.wdi_layout_th .wdi_followers {
|
506 |
margin-left: 10px;
|
507 |
}
|
508 |
|
@@ -751,7 +752,7 @@ div[id^="wdi_container"] p {
|
|
751 |
display: inline-block;
|
752 |
}
|
753 |
|
754 |
-
.wdi_layout_ib .wdi_header_user_text h3 {
|
755 |
display: inline-block;
|
756 |
text-transform: none;
|
757 |
}
|
@@ -766,13 +767,13 @@ div[id^="wdi_container"] p {
|
|
766 |
margin:0;
|
767 |
}
|
768 |
|
769 |
-
.wdi_layout_ib .wdi_header_user_text h3 {
|
770 |
margin-left: 10px;
|
771 |
margin-bottom: 0;
|
772 |
padding: 0;
|
773 |
}
|
774 |
|
775 |
-
.wdi_layout_ib .wdi_media_info
|
776 |
margin-top: 0px;
|
777 |
margin-bottom: 0px;
|
778 |
}
|
@@ -787,7 +788,7 @@ div[id^="wdi_container"] p {
|
|
787 |
float: left;
|
788 |
}
|
789 |
|
790 |
-
.wdi_layout_ib .wdi_followers {
|
791 |
margin-left: 10px;
|
792 |
}
|
793 |
|
153 |
.wdi_feed_main_container .fa {
|
154 |
font-family: FontAwesome !important;
|
155 |
font-style: normal;
|
156 |
+
width: auto;/*for Hueman theme*/
|
157 |
}
|
158 |
.wdi_media_info .fa:before {
|
159 |
margin-right: 6px;
|
467 |
display: inline-block;
|
468 |
}
|
469 |
|
470 |
+
.wdi_layout_th .wdi_feed_container .wdi_feed_info .wdi_header_user_text h3 {
|
471 |
display: inline-block;
|
472 |
text-transform: none;
|
473 |
}
|
482 |
margin:0;
|
483 |
}
|
484 |
|
485 |
+
.wdi_layout_th .wdi_feed_container .wdi_feed_info .wdi_header_user_text h3 {
|
486 |
margin-left: 10px;
|
487 |
margin-bottom: 0px;
|
488 |
padding:0;
|
489 |
}
|
490 |
|
491 |
+
.wdi_layout_th .wdi_feed_container .wdi_feed_info .wdi_media_info p {
|
492 |
margin-top: 0px;
|
493 |
margin-bottom: 0px;
|
494 |
}
|
503 |
float: left;
|
504 |
}
|
505 |
|
506 |
+
.wdi_layout_th .wdi_feed_container .wdi_feed_info .wdi_header_user_text .wdi_followers {
|
507 |
margin-left: 10px;
|
508 |
}
|
509 |
|
752 |
display: inline-block;
|
753 |
}
|
754 |
|
755 |
+
.wdi_layout_ib .wdi_feed_container .wdi_feed_info .wdi_header_user_text h3 {
|
756 |
display: inline-block;
|
757 |
text-transform: none;
|
758 |
}
|
767 |
margin:0;
|
768 |
}
|
769 |
|
770 |
+
.wdi_layout_ib .wdi_feed_container .wdi_feed_info .wdi_header_user_text h3 {
|
771 |
margin-left: 10px;
|
772 |
margin-bottom: 0;
|
773 |
padding: 0;
|
774 |
}
|
775 |
|
776 |
+
.wdi_layout_ib .wdi_feed_container .wdi_feed_info .wdi_media_info p {
|
777 |
margin-top: 0px;
|
778 |
margin-bottom: 0px;
|
779 |
}
|
788 |
float: left;
|
789 |
}
|
790 |
|
791 |
+
.wdi_layout_ib .wdi_feed_container .wdi_feed_info .wdi_header_user_text .wdi_followers {
|
792 |
margin-left: 10px;
|
793 |
}
|
794 |
|
css/wdi_frontend.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.wdi_clear{clear:both}.table{display:table}.table-cell{display:table-cell}.table-row{display:table-row}.wdi_feed_main_container{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.wdi_follow_button:hover{cursor:pointer}.wdi_hidden{display:none !important}.wdi_hover_off:hover{background-color:transparent !important}.wdi_cursor_off:hover{cursor:auto !important}.wdi_filter_active span{color:white}.wdi_disabled{visibility:hidden}.wdi_ajax_loading{position:absolute;width:50px;height:50px;left:0;right:0;bottom:-50px;margin:auto;z-index:100}.wdi_feed_main_container{width:100%;position:relative}.wdi_feed_main_container .wdi_img{margin:0}.wdi_feed_main_container .wdi_follow_btn{display:inline-block;background:0;border-style:solid;border-width:1px;font-weight:500;outline:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-appearance:none;vertical-align:text-bottom}.wdi_feed_main_container .wdi_follow_btn:hover{cursor:pointer}.wdi_feed_main_container .wdi_pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.wdi_feed_main_container .wdi_pagination_ctrl{display:inline-block}.wdi_feed_main_container .wdi_pagination_ctrl:hover{cursor:pointer}.wdi_feed_main_container .wdi_filter_icon span{display:block;font-size:25px;color:white}.wdi_feed_main_container .wdi_filter_icon span::before{width:20px;height:20px;position:absolute;opacity:1;right:0;left:0;top:0;bottom:0;margin:auto}.wdi_photo_img{position:relative;overflow:hidden}.wdi_photo_overlay{width:100%;height:100%;position:absolute;top:0;left:0;background-color:transparent;transition:all .1s ease}.wdi_thumb_icon i{display:none;transition:all .1s ease}.wdi_photo_overlay:hover .wdi_thumb_icon i{display:block}.wdi_feed_main_container .fa{font-family:FontAwesome !important;font-style:normal}.wdi_media_info .fa:before{margin-right:6px}.wdi_spider_popup_loading{background-image:url("../images/ajax_loader.png");background-color:rgba(0,0,0,0);background-repeat:no-repeat;background-position:0 0;background-size:50px 50px;border:none !important;display:none;height:50px;left:50%;margin-left:-20px;margin-top:-20px;overflow:hidden;position:fixed;top:50%;width:50px;z-index:10102;-moz-animation:spin 2.5s infinite linear;-o-animation:spin 2.5s infinite linear;-webkit-animation:spin 2.5s infinite linear;animation:spin 2.5s infinite linear}.wdi_spider_popup_overlay{cursor:pointer;background-color:rgba(0,0,0,0.5);display:none;height:100%;left:0;position:fixed;top:0;width:100%;z-index:10100}div[id^="wdi_container"] p{padding:0 !important;margin:0 !important}.wdi_spider_popup_loading,.footer-list-block .bwp_gallery .wdi_spider_popup_loading,.footer-list-block .bwp_gallery_tags .wdi_spider_popup_loading{background-image:url("../images/ajax_loader.png");background-color:rgba(0,0,0,0);background-repeat:no-repeat;background-position:0 0;background-size:50px 50px;border:none !important;display:none;height:50px;left:50%;margin-left:-20px;margin-top:-20px;overflow:hidden;position:fixed;top:50%;width:50px;z-index:10102;-moz-animation:spin 2.5s infinite linear;-o-animation:spin 2.5s infinite linear;-webkit-animation:spin 2.5s infinite linear;animation:spin 2.5s infinite linear}.wdi_spider_ajax_loading{border:none !important;-moz-animation:spin 2.5s infinite linear;-o-animation:spin 2.5s infinite linear;-webkit-animation:spin 2.5s infinite linear;animation:spin 2.5s infinite linear}.wdi_spider_popup_overlay,.footer-list-block .bwp_gallery .wdi_spider_popup_overlay,.footer-list-block .bwp_gallery_tags .wdi_spider_popup_overlay{cursor:pointer;display:none;height:100%;left:0;position:fixed;top:0;width:100%;z-index:10100}.wdi_spider_popup_close,.wdi_spider_popup_close_fullscreen{-moz-box-sizing:content-box !important;box-sizing:content-box !important;cursor:pointer;display:table;line-height:0;position:absolute;z-index:11100}#wdi_spider_popup_left{left:0}#wdi_spider_popup_right{right:0}#wdi_spider_popup_left:hover,#wdi_spider_popup_right:hover{visibility:visible}#wdi_spider_popup_left:hover span{left:20px}#wdi_spider_popup_right:hover span{left:auto;right:20px}#wdi_spider_popup_left,#wdi_spider_popup_right{background:transparent url("../images/blank.gif") repeat scroll 0 0;bottom:35%;cursor:pointer;display:inline;height:30%;outline:medium none;position:absolute;width:35%;z-index:10130}#wdi_spider_popup_left-ico,#wdi_spider_popup_right-ico{-moz-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:table;left:-9999px;line-height:0;margin-top:-15px;position:absolute;top:50%;z-index:10135}.wdi_image_info_container1{height:100%;margin:0 auto;position:absolute;width:100%}.wdi_image_info_container2{display:table;height:100%;margin:0 auto;position:absolute;width:100%}.wdi_image_info_spun{display:table-cell;height:100%;left:0;top:0;width:100%;overflow:hidden;position:relative}.wdi_image_info{display:inline-block;position:relative;text-decoration:none;word-wrap:break-word;z-index:11}.wdi_photo_wrap_inner{text-align:center}.wdi_feed_item[wdi_type="slideshow"] .fa-clone{-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-o-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.wdi_js_error_no_animate,.wdi_token_error{text-align:center;font-size:14px}.wdi_js_error{text-align:center;-webkit-animation-name:wdi_js_error;-moz-animation-name:wdi_js_error;-o-animation-name:wdi_js_error;animation-name:wdi_js_error;-webkit-animation-duration:.5s;-moz-animation-duration:.5s;-o-animation-duration:.5s;animation-duration:.5s;-webkit-animation-delay:20s;-moz-animation-delay:20s;-o-animation-delay:20s;animation-delay:20s;-webkit-animation-fill-mode:forwards;-moz-animation-fill-mode:forwards;-o-animation-fill-mode:forwards;animation-fill-mode:forwards;color:#c00;-webkit-transform:scale(0);-moz-transform:scale(0);-ms-transform:scale(0);-o-transform:scale(0);transform:scale(0);font-size:12px}@keyframes wdi_js_error{from{visibility:hidden;-webkit-transform:scale(0);-moz-transform:scale(0);-ms-transform:scale(0);-o-transform:scale(0);transform:scale(0)}to{visibility:visible;-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1)}}.wdi_layout_th .wdi_feed_container{min-width:160px;margin:0 auto}.wdi_layout_th .wdi_feed_wrapper{margin:0 auto}.wdi_layout_th .wdi_header_wrapper{display:inline-table}.wdi_layout_th .wdi_header_img_wrap,.wdi_users_img_wrap{overflow:hidden}.wdi_layout_th .wdi_header_text{display:table-cell;vertical-align:middle}.wdi_layout_th .wdi_single_user{display:inline-block;float:left}.wdi_layout_th .wdi_user_img_wrap{display:inline-block;float:left;position:relative}.wdi_layout_th .wdi_header_user_text{display:inline-block;float:left;width:100%}.wdi_layout_th .wdi_followers,.wdi_layout_th .wdi_posts{display:inline-block}.wdi_layout_th .wdi_header_user_text h3{display:inline-block;text-transform:none}.wdi_layout_th .wdi_header_user_text h3:hover{cursor:pointer}.wdi_layout_th .wdi_user_img_wrap img{overflow:hidden;display:block;margin:0}.wdi_layout_th .wdi_header_user_text h3{margin-left:10px;margin-bottom:0;padding:0}.wdi_layout_th .wdi_media_info p{margin-top:0;margin-bottom:0}.wdi_layout_th .wdi_user_controls{margin-left:0;display:inline-block;vertical-align:middle}.wdi_layout_th .wdi_bio{float:left}.wdi_layout_th .wdi_followers{margin-left:10px}.wdi_layout_th .wdi_filter_overlay{position:absolute;z-index:2;top:0;left:0;opacity:0;transition:opacity .1s ease}.wdi_layout_th .wdi_filter_overlay:hover{opacity:.9;cursor:pointer}.wdi_layout_th .wdi_photo_wrap{position:relative;display:inline-block;overflow:hidden;box-sizing:content-box}.wdi_layout_th .wdi_photo_wrap:after{padding-top:100%;display:block;content:""}.wdi_layout_th .wdi_photo_wrap_inner{position:absolute;top:0;bottom:0;left:0;right:0}.wdi_layout_th .wdi_photo_img{width:100%;height:100%}.wdi_layout_th .wdi_img{display:block;position:absolute;top:50%;left:50%;max-width:none;-webkit-transform:translateX(-50%) translateY(-50%);-moz-transform:translateX(-50%) translateY(-50%);-ms-transform:translateX(-50%) translateY(-50%);-o-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}.wdi_layout_th .wdi_shape_portrait .wdi_img,.wdi_layout_th .wdi_shape_square .wdi_img{width:100%;height:auto}.wdi_layout_th .wdi_shape_landscape .wdi_img{height:100% !important;width:auto}.wdi_layout_th .wdi_feed_item{display:inline-block;vertical-align:top;overflow:hidden}.wdi_layout_th .wdi_photo_meta{text-align:center;padding-bottom:10px}.wdi_layout_th .wdi_thumb_comments i,.wdi_layout_th .wdi_thumb_likes i{width:100%}.wdi_layout_th .wdi_photo_title{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:90%;margin-left:5%;margin-right:5%;text-align:center}.wdi_layout_th .wdi_photo_title:hover{cursor:pointer}@-moz-keyframes wdi_rotate{from{transform:rotate(0)}to{transform:rotate(360deg)}}@-o-keyframes wdi_rotate{from{transform:rotate(0)}to{transform:rotate(360deg)}}@-ms-keyframes wdi_rotate{from{transform:rotate(0)}to{transform:rotate(360deg)}}@-webkit-keyframes wdi_rotate{from{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes wdi_rotate{from{transform:rotate(0)}to{transform:rotate(360deg)}}.wdi_layout_th .wdi_load_more_spinner{display:table-cell;vertical-align:middle;-webkit-animation:wdi_rotate 1.5s infinite;-moz-animation:wdi_rotate 1.5s infinite;-o-animation:wdi_rotate 1.5s infinite;animation:wdi_rotate 1.5s infinite}.wdi_layout_th .wdi_load_more,.wdi_layout_th .wdi_spinner{padding:10px;transition:all .2s ease}.wdi_layout_th .wdi_load_more_wrap,.wdi_layout_th .wdi_spinner_wrap{display:inline-table;box-sizing:border-box}.wdi_layout_th .wdi_load_more_wrap_inner,.wdi_layout_th .wdi_spinner_wrap_inner{display:table-row;text-align:center}.wdi_layout_th .wdi_load_more_text{display:table-cell;vertical-align:middle}.wdi_layout_th .wdi_load_more_text img{float:left}.wdi_layout_th .wdi_load_more_wrap:hover{cursor:pointer}.wdi_layout_th .wdi_photo_overlay:hover{cursor:pointer}.wdi_layout_th .wdi_photo_overlay i{opacity:1}.wdi_layout_th .wdi_load_more_container{display:inline-block}.wdi_layout_ib .wdi_feed_container{min-width:160px;margin:0 auto}.wdi_layout_ib .wdi_feed_wrapper{margin:0 auto}.wdi_layout_ib .wdi_header_wrapper{display:inline-table}.wdi_layout_ib .wdi_header_img_wrap,.wdi_layout_ib .wdi_users_img_wrap{overflow:hidden}.wdi_layout_ib .wdi_header_text{display:table-cell;vertical-align:middle}.wdi_layout_ib .wdi_single_user{display:inline-block;float:left}.wdi_layout_ib .wdi_user_img_wrap{display:inline-block;float:left;position:relative}.wdi_layout_ib .wdi_header_user_text{display:inline-block;float:left;width:100%}.wdi_layout_ib .wdi_followers,.wdi_layout_ib .wdi_posts{display:inline-block}.wdi_layout_ib .wdi_header_user_text h3{display:inline-block;text-transform:none}.wdi_layout_ib .wdi_header_user_text h3:hover{cursor:pointer}.wdi_layout_ib .wdi_user_img_wrap img{overflow:hidden;display:block;margin:0}.wdi_layout_ib .wdi_header_user_text h3{margin-left:10px;margin-bottom:0;padding:0}.wdi_layout_ib .wdi_media_info p{margin-top:0;margin-bottom:0}.wdi_layout_ib .wdi_user_controls{margin-left:0;display:inline-block;vertical-align:middle}.wdi_layout_ib .wdi_bio{float:left}.wdi_layout_ib .wdi_followers{margin-left:10px}.wdi_layout_ib .wdi_filter_overlay{position:absolute;z-index:2;top:0;left:0;opacity:0;transition:opacity .1s ease}.wdi_layout_ib .wdi_filter_overlay:hover{opacity:.9;cursor:pointer}.wdi_layout_ib .wdi_photo_wrap{overflow:hidden;box-sizing:content-box}.wdi_layout_ib .wdi_img{width:100%;display:block}.wdi_layout_ib .wdi_feed_item{display:inline-block;overflow:hidden}.wdi_layout_ib .wdi_photo_meta{text-align:center;padding-bottom:10px}.wdi_layout_ib .wdi_thumb_comments i,.wdi_layout_ib .wdi_thumb_likes i{width:100%}.wdi_layout_ib .wdi_photo_title{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:90%;margin-left:5%;margin-right:5%;text-align:center}.wdi_layout_ib .wdi_photo_title:hover{cursor:pointer}.wdi_layout_ib .wdi_load_more{padding:10px;transition:all .2s ease}.wdi_layout_ib .wdi_load_more_wrap{display:inline-table;box-sizing:border-box}.wdi_layout_ib .wdi_load_more_wrap_inner{display:table-row;text-align:center}.wdi_layout_ib .wdi_load_more_text{display:table-cell;vertical-align:middle}.wdi_layout_ib .wdi_load_more_text img{float:left}.wdi_layout_ib .wdi_load_more_wrap:hover{cursor:pointer}.wdi_layout_ib .wdi_photo_overlay:hover{cursor:pointer}.wdi_layout_ib .wdi_load_more_container{display:inline-block}.wdi_embed_frame video{display:inline-block}.wdi_image_container img{display:inline}
|
1 |
+
.wdi_clear{clear:both}.table{display:table}.table-cell{display:table-cell}.table-row{display:table-row}.wdi_feed_main_container{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.wdi_follow_button:hover{cursor:pointer}.wdi_hidden{display:none !important}.wdi_hover_off:hover{background-color:transparent !important}.wdi_cursor_off:hover{cursor:auto !important}.wdi_filter_active span{color:white}.wdi_disabled{visibility:hidden}.wdi_ajax_loading{position:absolute;width:50px;height:50px;left:0;right:0;bottom:-50px;margin:auto;z-index:100}.wdi_feed_main_container{width:100%;position:relative}.wdi_feed_main_container .wdi_img{margin:0}.wdi_feed_main_container .wdi_follow_btn{display:inline-block;background:0;border-style:solid;border-width:1px;font-weight:500;outline:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-appearance:none;vertical-align:text-bottom}.wdi_feed_main_container .wdi_follow_btn:hover{cursor:pointer}.wdi_feed_main_container .wdi_pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.wdi_feed_main_container .wdi_pagination_ctrl{display:inline-block}.wdi_feed_main_container .wdi_pagination_ctrl:hover{cursor:pointer}.wdi_feed_main_container .wdi_filter_icon span{display:block;font-size:25px;color:white}.wdi_feed_main_container .wdi_filter_icon span::before{width:20px;height:20px;position:absolute;opacity:1;right:0;left:0;top:0;bottom:0;margin:auto}.wdi_photo_img{position:relative;overflow:hidden}.wdi_photo_overlay{width:100%;height:100%;position:absolute;top:0;left:0;background-color:transparent;transition:all .1s ease}.wdi_thumb_icon i{display:none;transition:all .1s ease}.wdi_photo_overlay:hover .wdi_thumb_icon i{display:block}.wdi_feed_main_container .fa{font-family:FontAwesome !important;font-style:normal;width:auto}.wdi_media_info .fa:before{margin-right:6px}.wdi_spider_popup_loading{background-image:url("../images/ajax_loader.png");background-color:rgba(0,0,0,0);background-repeat:no-repeat;background-position:0 0;background-size:50px 50px;border:none !important;display:none;height:50px;left:50%;margin-left:-20px;margin-top:-20px;overflow:hidden;position:fixed;top:50%;width:50px;z-index:10102;-moz-animation:spin 2.5s infinite linear;-o-animation:spin 2.5s infinite linear;-webkit-animation:spin 2.5s infinite linear;animation:spin 2.5s infinite linear}.wdi_spider_popup_overlay{cursor:pointer;background-color:rgba(0,0,0,0.5);display:none;height:100%;left:0;position:fixed;top:0;width:100%;z-index:10100}div[id^="wdi_container"] p{padding:0 !important;margin:0 !important}.wdi_spider_popup_loading,.footer-list-block .bwp_gallery .wdi_spider_popup_loading,.footer-list-block .bwp_gallery_tags .wdi_spider_popup_loading{background-image:url("../images/ajax_loader.png");background-color:rgba(0,0,0,0);background-repeat:no-repeat;background-position:0 0;background-size:50px 50px;border:none !important;display:none;height:50px;left:50%;margin-left:-20px;margin-top:-20px;overflow:hidden;position:fixed;top:50%;width:50px;z-index:10102;-moz-animation:spin 2.5s infinite linear;-o-animation:spin 2.5s infinite linear;-webkit-animation:spin 2.5s infinite linear;animation:spin 2.5s infinite linear}.wdi_spider_ajax_loading{border:none !important;-moz-animation:spin 2.5s infinite linear;-o-animation:spin 2.5s infinite linear;-webkit-animation:spin 2.5s infinite linear;animation:spin 2.5s infinite linear}.wdi_spider_popup_overlay,.footer-list-block .bwp_gallery .wdi_spider_popup_overlay,.footer-list-block .bwp_gallery_tags .wdi_spider_popup_overlay{cursor:pointer;display:none;height:100%;left:0;position:fixed;top:0;width:100%;z-index:10100}.wdi_spider_popup_close,.wdi_spider_popup_close_fullscreen{-moz-box-sizing:content-box !important;box-sizing:content-box !important;cursor:pointer;display:table;line-height:0;position:absolute;z-index:11100}#wdi_spider_popup_left{left:0}#wdi_spider_popup_right{right:0}#wdi_spider_popup_left:hover,#wdi_spider_popup_right:hover{visibility:visible}#wdi_spider_popup_left:hover span{left:20px}#wdi_spider_popup_right:hover span{left:auto;right:20px}#wdi_spider_popup_left,#wdi_spider_popup_right{background:transparent url("../images/blank.gif") repeat scroll 0 0;bottom:35%;cursor:pointer;display:inline;height:30%;outline:medium none;position:absolute;width:35%;z-index:10130}#wdi_spider_popup_left-ico,#wdi_spider_popup_right-ico{-moz-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:table;left:-9999px;line-height:0;margin-top:-15px;position:absolute;top:50%;z-index:10135}.wdi_image_info_container1{height:100%;margin:0 auto;position:absolute;width:100%}.wdi_image_info_container2{display:table;height:100%;margin:0 auto;position:absolute;width:100%}.wdi_image_info_spun{display:table-cell;height:100%;left:0;top:0;width:100%;overflow:hidden;position:relative}.wdi_image_info{display:inline-block;position:relative;text-decoration:none;word-wrap:break-word;z-index:11}.wdi_photo_wrap_inner{text-align:center}.wdi_feed_item[wdi_type="slideshow"] .fa-clone{-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-o-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.wdi_js_error_no_animate,.wdi_token_error{text-align:center;font-size:14px}.wdi_js_error{text-align:center;-webkit-animation-name:wdi_js_error;-moz-animation-name:wdi_js_error;-o-animation-name:wdi_js_error;animation-name:wdi_js_error;-webkit-animation-duration:.5s;-moz-animation-duration:.5s;-o-animation-duration:.5s;animation-duration:.5s;-webkit-animation-delay:20s;-moz-animation-delay:20s;-o-animation-delay:20s;animation-delay:20s;-webkit-animation-fill-mode:forwards;-moz-animation-fill-mode:forwards;-o-animation-fill-mode:forwards;animation-fill-mode:forwards;color:#c00;-webkit-transform:scale(0);-moz-transform:scale(0);-ms-transform:scale(0);-o-transform:scale(0);transform:scale(0);font-size:12px}@keyframes wdi_js_error{from{visibility:hidden;-webkit-transform:scale(0);-moz-transform:scale(0);-ms-transform:scale(0);-o-transform:scale(0);transform:scale(0)}to{visibility:visible;-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1)}}.wdi_layout_th .wdi_feed_container{min-width:160px;margin:0 auto}.wdi_layout_th .wdi_feed_wrapper{margin:0 auto}.wdi_layout_th .wdi_header_wrapper{display:inline-table}.wdi_layout_th .wdi_header_img_wrap,.wdi_users_img_wrap{overflow:hidden}.wdi_layout_th .wdi_header_text{display:table-cell;vertical-align:middle}.wdi_layout_th .wdi_single_user{display:inline-block;float:left}.wdi_layout_th .wdi_user_img_wrap{display:inline-block;float:left;position:relative}.wdi_layout_th .wdi_header_user_text{display:inline-block;float:left;width:100%}.wdi_layout_th .wdi_followers,.wdi_layout_th .wdi_posts{display:inline-block}.wdi_layout_th .wdi_feed_container .wdi_feed_info .wdi_header_user_text h3{display:inline-block;text-transform:none}.wdi_layout_th .wdi_header_user_text h3:hover{cursor:pointer}.wdi_layout_th .wdi_user_img_wrap img{overflow:hidden;display:block;margin:0}.wdi_layout_th .wdi_feed_container .wdi_feed_info .wdi_header_user_text h3{margin-left:10px;margin-bottom:0;padding:0}.wdi_layout_th .wdi_feed_container .wdi_feed_info .wdi_media_info p{margin-top:0;margin-bottom:0}.wdi_layout_th .wdi_user_controls{margin-left:0;display:inline-block;vertical-align:middle}.wdi_layout_th .wdi_bio{float:left}.wdi_layout_th .wdi_feed_container .wdi_feed_info .wdi_header_user_text .wdi_followers{margin-left:10px}.wdi_layout_th .wdi_filter_overlay{position:absolute;z-index:2;top:0;left:0;opacity:0;transition:opacity .1s ease}.wdi_layout_th .wdi_filter_overlay:hover{opacity:.9;cursor:pointer}.wdi_layout_th .wdi_photo_wrap{position:relative;display:inline-block;overflow:hidden;box-sizing:content-box}.wdi_layout_th .wdi_photo_wrap:after{padding-top:100%;display:block;content:""}.wdi_layout_th .wdi_photo_wrap_inner{position:absolute;top:0;bottom:0;left:0;right:0}.wdi_layout_th .wdi_photo_img{width:100%;height:100%}.wdi_layout_th .wdi_img{display:block;position:absolute;top:50%;left:50%;max-width:none;-webkit-transform:translateX(-50%) translateY(-50%);-moz-transform:translateX(-50%) translateY(-50%);-ms-transform:translateX(-50%) translateY(-50%);-o-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}.wdi_layout_th .wdi_shape_portrait .wdi_img,.wdi_layout_th .wdi_shape_square .wdi_img{width:100%;height:auto}.wdi_layout_th .wdi_shape_landscape .wdi_img{height:100% !important;width:auto}.wdi_layout_th .wdi_feed_item{display:inline-block;vertical-align:top;overflow:hidden}.wdi_layout_th .wdi_photo_meta{text-align:center;padding-bottom:10px}.wdi_layout_th .wdi_thumb_comments i,.wdi_layout_th .wdi_thumb_likes i{width:100%}.wdi_layout_th .wdi_photo_title{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:90%;margin-left:5%;margin-right:5%;text-align:center}.wdi_layout_th .wdi_photo_title:hover{cursor:pointer}@-moz-keyframes wdi_rotate{from{transform:rotate(0)}to{transform:rotate(360deg)}}@-o-keyframes wdi_rotate{from{transform:rotate(0)}to{transform:rotate(360deg)}}@-ms-keyframes wdi_rotate{from{transform:rotate(0)}to{transform:rotate(360deg)}}@-webkit-keyframes wdi_rotate{from{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes wdi_rotate{from{transform:rotate(0)}to{transform:rotate(360deg)}}.wdi_layout_th .wdi_load_more_spinner{display:table-cell;vertical-align:middle;-webkit-animation:wdi_rotate 1.5s infinite;-moz-animation:wdi_rotate 1.5s infinite;-o-animation:wdi_rotate 1.5s infinite;animation:wdi_rotate 1.5s infinite}.wdi_layout_th .wdi_load_more,.wdi_layout_th .wdi_spinner{padding:10px;transition:all .2s ease}.wdi_layout_th .wdi_load_more_wrap,.wdi_layout_th .wdi_spinner_wrap{display:inline-table;box-sizing:border-box}.wdi_layout_th .wdi_load_more_wrap_inner,.wdi_layout_th .wdi_spinner_wrap_inner{display:table-row;text-align:center}.wdi_layout_th .wdi_load_more_text{display:table-cell;vertical-align:middle}.wdi_layout_th .wdi_load_more_text img{float:left}.wdi_layout_th .wdi_load_more_wrap:hover{cursor:pointer}.wdi_layout_th .wdi_photo_overlay:hover{cursor:pointer}.wdi_layout_th .wdi_photo_overlay i{opacity:1}.wdi_layout_th .wdi_load_more_container{display:inline-block}.wdi_layout_ib .wdi_feed_container{min-width:160px;margin:0 auto}.wdi_layout_ib .wdi_feed_wrapper{margin:0 auto}.wdi_layout_ib .wdi_header_wrapper{display:inline-table}.wdi_layout_ib .wdi_header_img_wrap,.wdi_layout_ib .wdi_users_img_wrap{overflow:hidden}.wdi_layout_ib .wdi_header_text{display:table-cell;vertical-align:middle}.wdi_layout_ib .wdi_single_user{display:inline-block;float:left}.wdi_layout_ib .wdi_user_img_wrap{display:inline-block;float:left;position:relative}.wdi_layout_ib .wdi_header_user_text{display:inline-block;float:left;width:100%}.wdi_layout_ib .wdi_followers,.wdi_layout_ib .wdi_posts{display:inline-block}.wdi_layout_ib .wdi_feed_container .wdi_feed_info .wdi_header_user_text h3{display:inline-block;text-transform:none}.wdi_layout_ib .wdi_header_user_text h3:hover{cursor:pointer}.wdi_layout_ib .wdi_user_img_wrap img{overflow:hidden;display:block;margin:0}.wdi_layout_ib .wdi_feed_container .wdi_feed_info .wdi_header_user_text h3{margin-left:10px;margin-bottom:0;padding:0}.wdi_layout_ib .wdi_feed_container .wdi_feed_info .wdi_media_info p{margin-top:0;margin-bottom:0}.wdi_layout_ib .wdi_user_controls{margin-left:0;display:inline-block;vertical-align:middle}.wdi_layout_ib .wdi_bio{float:left}.wdi_layout_ib .wdi_feed_container .wdi_feed_info .wdi_header_user_text .wdi_followers{margin-left:10px}.wdi_layout_ib .wdi_filter_overlay{position:absolute;z-index:2;top:0;left:0;opacity:0;transition:opacity .1s ease}.wdi_layout_ib .wdi_filter_overlay:hover{opacity:.9;cursor:pointer}.wdi_layout_ib .wdi_photo_wrap{overflow:hidden;box-sizing:content-box}.wdi_layout_ib .wdi_img{width:100%;display:block}.wdi_layout_ib .wdi_feed_item{display:inline-block;overflow:hidden}.wdi_layout_ib .wdi_photo_meta{text-align:center;padding-bottom:10px}.wdi_layout_ib .wdi_thumb_comments i,.wdi_layout_ib .wdi_thumb_likes i{width:100%}.wdi_layout_ib .wdi_photo_title{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:90%;margin-left:5%;margin-right:5%;text-align:center}.wdi_layout_ib .wdi_photo_title:hover{cursor:pointer}.wdi_layout_ib .wdi_load_more{padding:10px;transition:all .2s ease}.wdi_layout_ib .wdi_load_more_wrap{display:inline-table;box-sizing:border-box}.wdi_layout_ib .wdi_load_more_wrap_inner{display:table-row;text-align:center}.wdi_layout_ib .wdi_load_more_text{display:table-cell;vertical-align:middle}.wdi_layout_ib .wdi_load_more_text img{float:left}.wdi_layout_ib .wdi_load_more_wrap:hover{cursor:pointer}.wdi_layout_ib .wdi_photo_overlay:hover{cursor:pointer}.wdi_layout_ib .wdi_load_more_container{display:inline-block}.wdi_embed_frame video{display:inline-block}.wdi_image_container img{display:inline}
|
framework/WDI_form_builder.php
CHANGED
@@ -388,7 +388,10 @@ public function __construct() {
|
|
388 |
if($current_settings !=''){
|
389 |
$opt_value = isset($current_settings[$element['name']]) ? $current_settings[$element['name']] : '';
|
390 |
}
|
391 |
-
|
|
|
|
|
|
|
392 |
<div class="wdwt_param" id="WDI_wrap_<?php echo $element['name'];?>">
|
393 |
|
394 |
|
@@ -415,20 +418,61 @@ public function __construct() {
|
|
415 |
</div>
|
416 |
</div>
|
417 |
</div>
|
418 |
-
|
|
|
|
|
|
|
|
|
|
|
419 |
<script>
|
420 |
|
421 |
jQuery(document).ready(function(){
|
422 |
-
|
423 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
424 |
}
|
425 |
-
|
|
|
|
|
426 |
if (jQuery(this).attr("checked") != 'checked') {
|
427 |
jQuery(this).after("<input type=\"hidden\" name=\"" + jQuery(this).attr("name") + "\" value=0>");
|
|
|
|
|
|
|
428 |
} else {
|
429 |
jQuery(this).next().remove();
|
|
|
|
|
430 |
}
|
|
|
|
|
431 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
432 |
});
|
433 |
</script>
|
434 |
|
@@ -436,6 +480,34 @@ public function __construct() {
|
|
436 |
}
|
437 |
|
438 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
439 |
/**
|
440 |
* Displays a single color control
|
441 |
* $element['name']
|
388 |
if($current_settings !=''){
|
389 |
$opt_value = isset($current_settings[$element['name']]) ? $current_settings[$element['name']] : '';
|
390 |
}
|
391 |
+
|
392 |
+
$hide_ids = isset($element['hide_ids']) ? $element['hide_ids'] : '';
|
393 |
+
|
394 |
+
?>
|
395 |
<div class="wdwt_param" id="WDI_wrap_<?php echo $element['name'];?>">
|
396 |
|
397 |
|
418 |
</div>
|
419 |
</div>
|
420 |
</div>
|
421 |
+
<style>
|
422 |
+
<?php if(!empty($hide_ids)){
|
423 |
+
echo '.'.$id.'_hide_ids_hidden{display:none !important;}';
|
424 |
+
}
|
425 |
+
?>
|
426 |
+
</style>
|
427 |
<script>
|
428 |
|
429 |
jQuery(document).ready(function(){
|
430 |
+
|
431 |
+
var el = jQuery('#<?php echo ''.$id?>');
|
432 |
+
var hide_ids = <?php echo json_encode($hide_ids); ?>;
|
433 |
+
var hide_class = '<?php echo $id.'_hide_ids_hidden'; ?>';
|
434 |
+
|
435 |
+
|
436 |
+
if(el.attr('checked') != 'checked'){
|
437 |
+
el.after('<input type=\"hidden\" name=\"' + jQuery("#<?php echo ''.$id?>").attr("name") + '\" value="0">');
|
438 |
}
|
439 |
+
|
440 |
+
el.on('click',function(){
|
441 |
+
|
442 |
if (jQuery(this).attr("checked") != 'checked') {
|
443 |
jQuery(this).after("<input type=\"hidden\" name=\"" + jQuery(this).attr("name") + "\" value=0>");
|
444 |
+
if(Array.isArray(hide_ids) && hide_ids.length > 0){
|
445 |
+
iterator(false);
|
446 |
+
}
|
447 |
} else {
|
448 |
jQuery(this).next().remove();
|
449 |
+
if(Array.isArray(hide_ids) && hide_ids.length > 0){
|
450 |
+
iterator(true);
|
451 |
}
|
452 |
+
}
|
453 |
+
|
454 |
});
|
455 |
+
|
456 |
+
if(Array.isArray(hide_ids) && hide_ids.length > 0){
|
457 |
+
if(el.attr('checked') != 'checked'){
|
458 |
+
iterator(false);
|
459 |
+
}else{
|
460 |
+
iterator(true);
|
461 |
+
}
|
462 |
+
}
|
463 |
+
|
464 |
+
|
465 |
+
function iterator(show) {
|
466 |
+
for (var i=0;i<hide_ids.length;i++){
|
467 |
+
var el = jQuery("#WDI_"+hide_ids[i]).closest('.wdi_element');
|
468 |
+
if(el.length == 0){
|
469 |
+
continue;
|
470 |
+
}
|
471 |
+
|
472 |
+
(show === true) ? el.removeClass(hide_class) : el.addClass(hide_class);
|
473 |
+
}
|
474 |
+
}
|
475 |
+
|
476 |
});
|
477 |
</script>
|
478 |
|
480 |
}
|
481 |
|
482 |
|
483 |
+
public function how_to_publish($element,$feed_row=array()){
|
484 |
+
$feed_id = (isset($feed_row['id'])) ? $feed_row['id'] : 0;
|
485 |
+
?>
|
486 |
+
<div class="wdi_howto_container">
|
487 |
+
<div class="wdi_howto_content">
|
488 |
+
<h2>Shortcode</h2>
|
489 |
+
<h4>Copy and paste this shortcode into your posts or pages:</h4>
|
490 |
+
<input type="text" class="wdi_howto_shortcode" value='[wdi_feed id="<?php echo $feed_id; ?>"]' onclick="wdi_select_focus_element(this)" size="11" readonly="readonly" />
|
491 |
+
</div>
|
492 |
+
<div class="wdi_howto_content">
|
493 |
+
<h2>Page or Post editor</h2>
|
494 |
+
<h4>Insert it into an existing post with the button:</h4>
|
495 |
+
<img src="<?php echo WDI_URL.'/images/how_to_publish_shortcode.png'; ?>">
|
496 |
+
</div>
|
497 |
+
<div class="wdi_howto_content">
|
498 |
+
<h2>PHP code</h2>
|
499 |
+
<h4>Copy and paste the PHP code into your template file:</h4>
|
500 |
+
<input type="text" class="wdi_howto_phpcode" value="<?php echo wdi_feed(array('id'=>'<?php echo $feed_id; ?>')); ?>" onclick="wdi_select_focus_element(this)" size="17" readonly="readonly" />
|
501 |
+
</div>
|
502 |
+
<div class="wdi_howto_content">
|
503 |
+
<h2>Widget</h2>
|
504 |
+
<h4>Add Instagram Feed WD Widget to your site:</h4>
|
505 |
+
<img src="<?php echo WDI_URL.'/images/how_to_publish_widget.png'; ?>">
|
506 |
+
</div>
|
507 |
+
<script>function wdi_select_focus_element(obj) {obj.focus();obj.select();}</script>
|
508 |
+
<?php
|
509 |
+
}
|
510 |
+
|
511 |
/**
|
512 |
* Displays a single color control
|
513 |
* $element['name']
|
frontend/shortcode.php
CHANGED
@@ -12,10 +12,11 @@ function wdi_frontend_init()
|
|
12 |
}
|
13 |
|
14 |
add_shortcode('wdi_feed', 'wdi_feed');
|
|
|
15 |
// [wdi_feed id="feed_id"]
|
16 |
function wdi_feed($atts, $widget_params = '')
|
17 |
{
|
18 |
-
|
19 |
|
20 |
ob_start();
|
21 |
global $wdi_feed_counter;
|
@@ -37,8 +38,9 @@ function wdi_feed($atts, $widget_params = '')
|
|
37 |
|
38 |
|
39 |
require_once(WDI_DIR . '/framework/WDILibrary.php');
|
40 |
-
|
41 |
-
|
|
|
42 |
$attributes = shortcode_atts(array(
|
43 |
'id' => 'no_id',
|
44 |
), $atts);
|
@@ -91,6 +93,12 @@ function wdi_feed($atts, $widget_params = '')
|
|
91 |
$feed_row['show_description'] = '0';
|
92 |
$feed_row['number_of_columns'] = (string)$widget_params['number_of_columns'];
|
93 |
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
if ($widget_params['enable_loading_buttons'] == 0) {
|
95 |
$feed_row['feed_display_view'] = 'none';
|
96 |
}
|
@@ -165,7 +173,7 @@ function wdi_load_frontend_scripts()
|
|
165 |
$wdi_token_error_flag = get_option("wdi_token_error_flag");
|
166 |
|
167 |
wp_localize_script("wdi_frontend", 'wdi_ajax', array('ajax_url' => admin_url('admin-ajax.php')), WDI_VERSION);
|
168 |
-
wp_localize_script("wdi_frontend", 'wdi_url', array('plugin_url' =>
|
169 |
'ajax_url' => admin_url('admin-ajax.php')), WDI_VERSION);
|
170 |
|
171 |
$user_is_admin = current_user_can('manage_options');
|
@@ -280,7 +288,7 @@ function wdi_load_frontend_scripts_styles_ajax()
|
|
280 |
wp_localize_script("wdi_frontend", 'wdi_feed_counter_init', array('wdi_feed_counter_init' => $wdi_feed_counter_init), WDI_VERSION);
|
281 |
|
282 |
wp_localize_script("wdi_frontend", 'wdi_ajax', array('ajax_url' => admin_url('admin-ajax.php'), 'ajax_response' => 1), WDI_VERSION);
|
283 |
-
wp_localize_script("wdi_frontend", 'wdi_url', array('plugin_url' =>
|
284 |
'ajax_url' => admin_url('admin-ajax.php')), WDI_VERSION);
|
285 |
|
286 |
$user_is_admin = current_user_can('manage_options');
|
@@ -333,15 +341,24 @@ function wdi_feed_frontend_messages(){
|
|
333 |
|
334 |
$token_error_message = __("Instagram token error.");
|
335 |
$error_style = "";
|
|
|
|
|
|
|
|
|
336 |
if($manage_options_user){
|
337 |
$js_error_message = __("Something is wrong. Response takes too long or there is JS error. Press Ctrl+Shift+J or Cmd+Shift+J on a Mac to see error in console or ask for <a class='wdi_error_link' href='https://wordpress.org/support/plugin/wd-instagram-feed' target='_blank'>free support</a>.", "wd-instagram-feed");
|
338 |
$token_error_message = __("Instagram token is invalid or expired. Please <a href='".site_url()."/wp-admin/admin.php?page=wdi_settings' target='_blank'>reset token</a> and sign-in again to get new one.");
|
339 |
-
$error_style = 'style="color: #cc0000;"';
|
|
|
|
|
|
|
|
|
340 |
}
|
341 |
|
342 |
$ajax_error_message = (defined('DOING_AJAX') && DOING_AJAX) ? __("Warning: Instagram Feed is loaded using AJAX request. It might not display properly.", "wd-instagram-feed") : '';
|
343 |
|
344 |
-
echo '<div '.$error_style.' class="wdi_js_error
|
345 |
$js_error_message ."<br/>". $ajax_error_message .'</div>';
|
346 |
echo '<div '.$error_style.' class="wdi_token_error wdi_hidden">'. $token_error_message .'</div>';
|
|
|
347 |
}
|
12 |
}
|
13 |
|
14 |
add_shortcode('wdi_feed', 'wdi_feed');
|
15 |
+
add_shortcode('wdi_preview', 'wdi_feed');
|
16 |
// [wdi_feed id="feed_id"]
|
17 |
function wdi_feed($atts, $widget_params = '')
|
18 |
{
|
19 |
+
global $post;
|
20 |
|
21 |
ob_start();
|
22 |
global $wdi_feed_counter;
|
38 |
|
39 |
|
40 |
require_once(WDI_DIR . '/framework/WDILibrary.php');
|
41 |
+
if(isset($_GET["feed_id"]) && $post->post_type === "wdi_instagram"){
|
42 |
+
$atts["id"] = $_GET["feed_id"];
|
43 |
+
}
|
44 |
$attributes = shortcode_atts(array(
|
45 |
'id' => 'no_id',
|
46 |
), $atts);
|
93 |
$feed_row['show_description'] = '0';
|
94 |
$feed_row['number_of_columns'] = (string)$widget_params['number_of_columns'];
|
95 |
|
96 |
+
// if($feed_row['feed_display_view'] == "load_more_btn" || $feed_row['feed_display_view'] == "infinite_scroll") {
|
97 |
+
// $feed_row['load_more_number'] = (string)$widget_params['widget_image_num'];
|
98 |
+
// } else if($feed_row['feed_display_view'] == "pagination") {
|
99 |
+
// $feed_row['pagination_per_page_number'] = (string)$widget_params['widget_image_num'];
|
100 |
+
// }
|
101 |
+
|
102 |
if ($widget_params['enable_loading_buttons'] == 0) {
|
103 |
$feed_row['feed_display_view'] = 'none';
|
104 |
}
|
173 |
$wdi_token_error_flag = get_option("wdi_token_error_flag");
|
174 |
|
175 |
wp_localize_script("wdi_frontend", 'wdi_ajax', array('ajax_url' => admin_url('admin-ajax.php')), WDI_VERSION);
|
176 |
+
wp_localize_script("wdi_frontend", 'wdi_url', array('plugin_url' => WDI_URL . '/',
|
177 |
'ajax_url' => admin_url('admin-ajax.php')), WDI_VERSION);
|
178 |
|
179 |
$user_is_admin = current_user_can('manage_options');
|
288 |
wp_localize_script("wdi_frontend", 'wdi_feed_counter_init', array('wdi_feed_counter_init' => $wdi_feed_counter_init), WDI_VERSION);
|
289 |
|
290 |
wp_localize_script("wdi_frontend", 'wdi_ajax', array('ajax_url' => admin_url('admin-ajax.php'), 'ajax_response' => 1), WDI_VERSION);
|
291 |
+
wp_localize_script("wdi_frontend", 'wdi_url', array('plugin_url' => WDI_URL . '/',
|
292 |
'ajax_url' => admin_url('admin-ajax.php')), WDI_VERSION);
|
293 |
|
294 |
$user_is_admin = current_user_can('manage_options');
|
341 |
|
342 |
$token_error_message = __("Instagram token error.");
|
343 |
$error_style = "";
|
344 |
+
$private_feed_error = "";
|
345 |
+
$private_feed_error_1 = "";
|
346 |
+
$private_feed_error_2 = "";
|
347 |
+
$private_feed_error_3 = "";
|
348 |
if($manage_options_user){
|
349 |
$js_error_message = __("Something is wrong. Response takes too long or there is JS error. Press Ctrl+Shift+J or Cmd+Shift+J on a Mac to see error in console or ask for <a class='wdi_error_link' href='https://wordpress.org/support/plugin/wd-instagram-feed' target='_blank'>free support</a>.", "wd-instagram-feed");
|
350 |
$token_error_message = __("Instagram token is invalid or expired. Please <a href='".site_url()."/wp-admin/admin.php?page=wdi_settings' target='_blank'>reset token</a> and sign-in again to get new one.");
|
351 |
+
$error_style = 'style="color: #cc0000; text-align: center;"';
|
352 |
+
$private_feed_error_1 = __("Admin warning: there is one or more private user in this feed") ;
|
353 |
+
|
354 |
+
$private_feed_error_2 = __("Their media won't be displayed.") ;
|
355 |
+
$private_feed_error_3 = '(<span class="wdi_private_feed_names"></span>). ' ;
|
356 |
}
|
357 |
|
358 |
$ajax_error_message = (defined('DOING_AJAX') && DOING_AJAX) ? __("Warning: Instagram Feed is loaded using AJAX request. It might not display properly.", "wd-instagram-feed") : '';
|
359 |
|
360 |
+
echo '<div '.$error_style.' class="wdi_js_error">'.
|
361 |
$js_error_message ."<br/>". $ajax_error_message .'</div>';
|
362 |
echo '<div '.$error_style.' class="wdi_token_error wdi_hidden">'. $token_error_message .'</div>';
|
363 |
+
echo '<div '.$error_style.' class="wdi_private_feed_error wdi_hidden"><span>'. $private_feed_error_1 . $private_feed_error_3 .$private_feed_error_2.'</span></div>';
|
364 |
}
|
frontend/views/WDIViewImageBrowser_view.php
CHANGED
@@ -30,7 +30,8 @@ class WDIViewImageBrowser_view{
|
|
30 |
|
31 |
?>
|
32 |
<div id="wdi_feed_<?php echo $wdi_feed_counter?>" class="wdi_feed_main_container wdi_layout_ib" <?php echo $wdi_data_ajax; ?> >
|
33 |
-
|
|
|
34 |
<div id="wdi_spider_popup_overlay_<?php echo $wdi_feed_counter?>" class="wdi_spider_popup_overlay" onclick="wdi_spider_destroypopup(1000)"></div>
|
35 |
<div class="wdi_feed_container">
|
36 |
<div class="wdi_feed_info">
|
@@ -60,7 +61,6 @@ class WDIViewImageBrowser_view{
|
|
60 |
?><div id="wdi_infinite_scroll" class="wdi_infinite_scroll"></div> <?php
|
61 |
}
|
62 |
}
|
63 |
-
wdi_feed_frontend_messages();
|
64 |
?>
|
65 |
</div>
|
66 |
</div>
|
30 |
|
31 |
?>
|
32 |
<div id="wdi_feed_<?php echo $wdi_feed_counter?>" class="wdi_feed_main_container wdi_layout_ib" <?php echo $wdi_data_ajax; ?> >
|
33 |
+
<?php wdi_feed_frontend_messages();?>
|
34 |
+
<div id="wdi_spider_popup_loading_<?php echo $wdi_feed_counter?>" class="wdi_spider_popup_loading"></div>
|
35 |
<div id="wdi_spider_popup_overlay_<?php echo $wdi_feed_counter?>" class="wdi_spider_popup_overlay" onclick="wdi_spider_destroypopup(1000)"></div>
|
36 |
<div class="wdi_feed_container">
|
37 |
<div class="wdi_feed_info">
|
61 |
?><div id="wdi_infinite_scroll" class="wdi_infinite_scroll"></div> <?php
|
62 |
}
|
63 |
}
|
|
|
64 |
?>
|
65 |
</div>
|
66 |
</div>
|
frontend/views/WDIViewThumbnails_view.php
CHANGED
@@ -36,6 +36,7 @@ class WDIViewThumbnails_view
|
|
36 |
?>
|
37 |
|
38 |
<div id="wdi_feed_<?php echo $wdi_feed_counter ?>" class="wdi_feed_main_container wdi_layout_th" <?php echo $wdi_data_ajax; ?> >
|
|
|
39 |
<div id="wdi_spider_popup_loading_<?php echo $wdi_feed_counter ?>" class="wdi_spider_popup_loading"></div>
|
40 |
<div id="wdi_spider_popup_overlay_<?php echo $wdi_feed_counter ?>" class="wdi_spider_popup_overlay"
|
41 |
onclick="wdi_spider_destroypopup(1000)"></div>
|
@@ -109,7 +110,6 @@ class WDIViewThumbnails_view
|
|
109 |
<div id="wdi_infinite_scroll" class="wdi_infinite_scroll"></div> <?php
|
110 |
}
|
111 |
}
|
112 |
-
wdi_feed_frontend_messages();
|
113 |
?>
|
114 |
</div>
|
115 |
</div>
|
36 |
?>
|
37 |
|
38 |
<div id="wdi_feed_<?php echo $wdi_feed_counter ?>" class="wdi_feed_main_container wdi_layout_th" <?php echo $wdi_data_ajax; ?> >
|
39 |
+
<?php wdi_feed_frontend_messages();?>
|
40 |
<div id="wdi_spider_popup_loading_<?php echo $wdi_feed_counter ?>" class="wdi_spider_popup_loading"></div>
|
41 |
<div id="wdi_spider_popup_overlay_<?php echo $wdi_feed_counter ?>" class="wdi_spider_popup_overlay"
|
42 |
onclick="wdi_spider_destroypopup(1000)"></div>
|
110 |
<div id="wdi_infinite_scroll" class="wdi_infinite_scroll"></div> <?php
|
111 |
}
|
112 |
}
|
|
|
113 |
?>
|
114 |
</div>
|
115 |
</div>
|
images/how_to_publish_shortcode.png
ADDED
Binary file
|
images/how_to_publish_widget.png
ADDED
Binary file
|
images/logo.png
DELETED
Binary file
|
images/seo_logo.png
ADDED
Binary file
|
images/wd_assets/filtered-fields.svg
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="utf-8"?>
|
2 |
+
<!-- Generator: Adobe Illustrator 21.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
3 |
+
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
4 |
+
viewBox="0 0 53.9 53.9" style="enable-background:new 0 0 53.9 53.9;" xml:space="preserve">
|
5 |
+
<style type="text/css">
|
6 |
+
.st0{fill:#2E3243;}
|
7 |
+
.st1{clip-path:url(#SVGID_2_);fill:#2E3243;}
|
8 |
+
</style>
|
9 |
+
<g>
|
10 |
+
<path class="st0" d="M41.1,23.1c-1.8,0-3.5,0-5.3,0c-1.2,0-2.4,0-3.6,0c1.2,0,2.4,0,3.6,0C37.6,23.1,39.3,23.1,41.1,23.1z"/>
|
11 |
+
<path class="st0" d="M28.1,38.1c2.3,0,4.6,0,6.9,0c1.2,0,2.3,0,3.5,0c-1.2,0-2.3,0-3.5,0C32.7,38.1,30.4,38.1,28.1,38.1z"/>
|
12 |
+
<path class="st0" d="M35.7,10.6c1.8,0,3.6,0,5.4,0C39.3,10.6,37.5,10.6,35.7,10.6c-2.4,0-4.8,0-7.1,0
|
13 |
+
C30.9,10.6,33.3,10.6,35.7,10.6z"/>
|
14 |
+
<g>
|
15 |
+
<path class="st0" d="M7.4,36.6c7,0,14.1,0,21.1,0c4,0,8,0,12,0c0.8,0,1.3-0.1,1.5-0.7c0.2-0.8-0.3-1.2-1.6-1.2
|
16 |
+
c-5.5,0-11.1,0-16.6,0c-5.5,0-11,0-16.5,0c-1.3,0-1.7,0.2-1.7,0.9C5.7,36.3,6.1,36.6,7.4,36.6z"/>
|
17 |
+
<path class="st0" d="M26.6,27c3.2,0,6.4,0,9.6,0c1.8,0,3.7,0,5.5,0c0.4,0,0.6-0.1,0.7-0.7c0.1-0.8-0.1-1.2-0.7-1.2
|
18 |
+
c-2.5,0-5,0-7.6,0c-2.5,0-5,0-7.5,0c-0.6,0-0.8,0.2-0.8,0.9C25.8,26.7,26,27,26.6,27z"/>
|
19 |
+
<path class="st0" d="M26.7,20.3c3.2,0,6.4,0,9.6,0c1.8,0,3.7,0,5.5,0c0.4,0,0.6-0.1,0.7-0.7c0.1-0.8-0.1-1.2-0.7-1.2
|
20 |
+
c-2.5,0-5,0-7.6,0c-2.5,0-5,0-7.5,0c-0.6,0-0.8,0.2-0.8,0.9C25.9,20,26.1,20.3,26.7,20.3z"/>
|
21 |
+
<path class="st0" d="M26.5,13.6c3.2,0,6.4,0,9.6,0c1.8,0,3.7,0,5.5,0c0.4,0,0.6-0.1,0.7-0.7c0.1-0.8-0.1-1.2-0.7-1.2
|
22 |
+
c-2.5,0-5,0-7.6,0c-2.5,0-5,0-7.5,0c-0.6,0-0.8,0.2-0.8,0.9C25.7,13.3,25.9,13.6,26.5,13.6z"/>
|
23 |
+
<path class="st0" d="M7.4,42.1c7,0,14.1,0,21.1,0c4,0,8,0,12,0c0.8,0,1.3-0.1,1.5-0.7c0.2-0.8-0.3-1.2-1.6-1.2
|
24 |
+
c-5.5,0-11.1,0-16.6,0c-5.5,0-11,0-16.5,0c-1.3,0-1.7,0.2-1.7,0.9C5.7,41.9,6.1,42.1,7.4,42.1z"/>
|
25 |
+
<path class="st0" d="M15.5,28.5c-0.1,0-0.3,0-0.4-0.1l-3.3-1.7c-0.3-0.1-0.5-0.4-0.5-0.8v-5.1l-6.4-7.6c-0.2-0.3-0.3-0.6-0.1-0.9
|
26 |
+
c0.1-0.3,0.4-0.5,0.8-0.5h16.5c0.3,0,0.6,0.2,0.8,0.5c0.1,0.3,0.1,0.7-0.1,0.9l-6.4,7.6v6.8c0,0.3-0.2,0.6-0.4,0.7
|
27 |
+
C15.8,28.4,15.6,28.5,15.5,28.5z M13,25.4l1.6,0.8v-5.7c0-0.2,0.1-0.4,0.2-0.6l5.4-6.4H7.4l5.4,6.4c0.1,0.2,0.2,0.3,0.2,0.6V25.4z
|
28 |
+
"/>
|
29 |
+
</g>
|
30 |
+
<path class="st0" d="M44.4,49.6H4.3c-2.4,0-4.3-1.9-4.3-4.3v-36C0,7,1.9,5,4.3,5h40.1c2.4,0,4.3,1.9,4.3,4.3v36
|
31 |
+
C48.7,47.7,46.8,49.6,44.4,49.6z M4.3,6.8c-1.4,0-2.6,1.1-2.6,2.6v36c0,1.4,1.1,2.6,2.6,2.6h40.1c1.4,0,2.6-1.1,2.6-2.6v-36
|
32 |
+
c0-1.4-1.1-2.6-2.6-2.6H4.3z"/>
|
33 |
+
<g>
|
34 |
+
<defs>
|
35 |
+
<path id="SVGID_1_" d="M53.8,49.6c-3,0-6,0-9.1,0c0.3-0.5,0.5-1.1,0.8-1.6c0.5-0.3,1.1-0.7,1.6-1c0-14.2,0-28.4,0-42.7
|
36 |
+
c2.2,0,4.4,0,6.6,0V49.6z"/>
|
37 |
+
</defs>
|
38 |
+
<clipPath id="SVGID_2_">
|
39 |
+
<use xlink:href="#SVGID_1_" style="overflow:visible;"/>
|
40 |
+
</clipPath>
|
41 |
+
<path class="st1" d="M48.8,49.6H11.9c-2.4,0-4.3-1.9-4.3-4.3v-33c0-2.4,1.9-4.3,4.3-4.3h36.8c2.4,0,4.3,1.9,4.3,4.3v33
|
42 |
+
C53,47.7,51.1,49.6,48.8,49.6z M11.9,9.8c-1.4,0-2.6,1.1-2.6,2.6v33c0,1.4,1.1,2.6,2.6,2.6h36.8c1.4,0,2.6-1.1,2.6-2.6v-33
|
43 |
+
c0-1.4-1.1-2.6-2.6-2.6H11.9z"/>
|
44 |
+
</g>
|
45 |
+
</g>
|
46 |
+
</svg>
|
images/wd_assets/gallery.svg
ADDED
@@ -0,0 +1,130 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="utf-8"?>
|
2 |
+
<!-- Generator: Adobe Illustrator 21.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
3 |
+
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
4 |
+
viewBox="0 0 53.9 53.9" style="enable-background:new 0 0 53.9 53.9;" xml:space="preserve">
|
5 |
+
<style type="text/css">
|
6 |
+
.st0{fill:#2E3243;}
|
7 |
+
.st1{clip-path:url(#SVGID_2_);fill:none;}
|
8 |
+
.st2{clip-path:url(#SVGID_2_);fill:#2E3243;}
|
9 |
+
.st3{clip-path:url(#SVGID_2_);fill:#FFFFFF;}
|
10 |
+
.st4{clip-path:url(#SVGID_4_);fill:none;}
|
11 |
+
.st5{clip-path:url(#SVGID_4_);fill:#2E3243;}
|
12 |
+
.st6{clip-path:url(#SVGID_4_);fill:#FFFFFF;}
|
13 |
+
.st7{clip-path:url(#SVGID_6_);fill:none;}
|
14 |
+
.st8{clip-path:url(#SVGID_6_);fill:#2E3243;}
|
15 |
+
.st9{clip-path:url(#SVGID_6_);fill:#FFFFFF;}
|
16 |
+
.st10{clip-path:url(#SVGID_8_);fill:none;}
|
17 |
+
.st11{clip-path:url(#SVGID_8_);fill:#2E3243;}
|
18 |
+
.st12{clip-path:url(#SVGID_8_);fill:#FFFFFF;}
|
19 |
+
</style>
|
20 |
+
<g>
|
21 |
+
<path class="st0" d="M25.4,53.7H0.2V28.5h25.2V53.7z M1.2,52.6h23.1V29.6H1.2V52.6z"/>
|
22 |
+
<path class="st0" d="M53.7,25.4H28.5V0.2h25.2V25.4z M29.6,24.3h23.1V1.2H29.6V24.3z"/>
|
23 |
+
<path class="st0" d="M53.7,53.7H28.5V28.5h25.2V53.7z M29.6,52.6h23.1V29.6H29.6V52.6z"/>
|
24 |
+
<path class="st0" d="M25.4,25.4H0.2V0.2h25.2V25.4z M1.2,24.3h23.1V1.2H1.2V24.3z"/>
|
25 |
+
<g>
|
26 |
+
<defs>
|
27 |
+
<rect id="SVGID_1_" x="2.2" y="8" width="21.2" height="15.3"/>
|
28 |
+
</defs>
|
29 |
+
<clipPath id="SVGID_2_">
|
30 |
+
<use xlink:href="#SVGID_1_" style="overflow:visible;"/>
|
31 |
+
</clipPath>
|
32 |
+
<path class="st1" d="M24.8,23.3h0.4c0.1-0.1,0.1-0.2,0.1-0.3l0-17.3c0-0.3-0.2-0.5-0.4-0.5H4.3c-0.2,0-0.4,0.2-0.4,0.5v0.5h19.7
|
33 |
+
c0.5,0,0.9,0.4,0.9,0.9v4.3h0.4V23.3z"/>
|
34 |
+
<path class="st1" d="M27.1,3.8c0-0.3-0.2-0.5-0.4-0.5H6.1c-0.2,0-0.4,0.2-0.4,0.5v0.5h19.7c0.5,0,0.9,0.4,0.9,0.9v16.4h0.4
|
35 |
+
c0.2,0,0.4-0.2,0.4-0.5h0V3.8z"/>
|
36 |
+
<path class="st1" d="M23.5,11.4V7.5c0-0.3-0.2-0.5-0.4-0.5H2.5c-0.2,0-0.4,0.2-0.4,0.5v10.2l7.3-6.8c0.2-0.2,0.4-0.2,0.6,0
|
37 |
+
l7.7,7.2l2.8-3.4c0.2-0.2,0.5-0.2,0.7,0l2.3,2.8L23.5,11.4L23.5,11.4z M17.3,13.6c-1,0-1.8-0.8-1.8-1.9s0.8-1.9,1.8-1.9
|
38 |
+
c1,0,1.8,0.8,1.8,1.9S18.3,13.6,17.3,13.6z"/>
|
39 |
+
<path class="st2" d="M27.1,2.4H5.7c-0.5,0-0.9,0.4-0.9,0.9v0.9H3.9C3.4,4.3,3,4.7,3,5.2v0.9H2.1c-0.5,0-0.9,0.4-0.9,0.9v16.2h0.7
|
40 |
+
v-8.6h0.2v8.6h21.4v-5.8l-2.3-2.8c-0.2-0.2-0.5-0.2-0.7,0l-2.8,3.4L10,10.9c-0.2-0.2-0.4-0.2-0.6,0l-7.3,6.8V7.5
|
41 |
+
c0-0.3,0.2-0.5,0.4-0.5h20.6c0.2,0,0.4,0.2,0.4,0.5v3.8h0.9V7.1c0-0.5-0.4-0.9-0.9-0.9H3.9V5.7c0-0.3,0.2-0.5,0.4-0.5h20.6
|
42 |
+
c0.2,0,0.4,0.2,0.4,0.5l0,17.3c0,0.1-0.1,0.2-0.1,0.3H26v0.1h-0.9c-0.1,0-0.1,0-0.2,0h-0.1v0.9h0.5c0.5,0,0.9-0.4,0.9-0.9v-0.9
|
43 |
+
h0.9c0.5,0,0.9-0.4,0.9-0.9V3.3C28,2.8,27.6,2.4,27.1,2.4z M26.7,21.6h-0.4V5.2c0-0.5-0.4-0.9-0.9-0.9H5.7V3.8
|
44 |
+
c0-0.3,0.2-0.5,0.4-0.5h20.6c0.2,0,0.4,0.2,0.4,0.5v17.3h0C27.1,21.3,26.9,21.6,26.7,21.6z"/>
|
45 |
+
<ellipse class="st2" cx="17.3" cy="11.7" rx="1.8" ry="1.9"/>
|
46 |
+
<rect x="1.9" y="14.7" class="st3" width="0.2" height="8.6"/>
|
47 |
+
<polygon class="st3" points="23.5,11.4 23.5,11.4 23.5,17.5 23.5,17.5 "/>
|
48 |
+
<rect x="24.4" y="11.4" class="st3" width="0.4" height="11.9"/>
|
49 |
+
<polygon class="st3" points="24.4,11.4 23.5,11.4 23.5,17.5 23.5,17.5 23.5,23.3 24.4,23.3 "/>
|
50 |
+
</g>
|
51 |
+
<g>
|
52 |
+
<defs>
|
53 |
+
<rect id="SVGID_3_" x="30.5" y="8" width="21.2" height="15.3"/>
|
54 |
+
</defs>
|
55 |
+
<clipPath id="SVGID_4_">
|
56 |
+
<use xlink:href="#SVGID_3_" style="overflow:visible;"/>
|
57 |
+
</clipPath>
|
58 |
+
<path class="st4" d="M53.1,23.3h0.4c0.1-0.1,0.1-0.2,0.1-0.3l0-17.3c0-0.3-0.2-0.5-0.4-0.5H32.6c-0.2,0-0.4,0.2-0.4,0.5v0.5h19.7
|
59 |
+
c0.5,0,0.9,0.4,0.9,0.9v4.3h0.4V23.3z"/>
|
60 |
+
<path class="st4" d="M55.4,3.8c0-0.3-0.2-0.5-0.4-0.5H34.4c-0.2,0-0.4,0.2-0.4,0.5v0.5h19.7c0.5,0,0.9,0.4,0.9,0.9v16.4H55
|
61 |
+
c0.2,0,0.4-0.2,0.4-0.5h0V3.8z"/>
|
62 |
+
<path class="st4" d="M51.9,11.4V7.5c0-0.3-0.2-0.5-0.4-0.5H30.9c-0.2,0-0.4,0.2-0.4,0.5v10.2l7.3-6.8c0.2-0.2,0.4-0.2,0.6,0
|
63 |
+
l7.7,7.2l2.8-3.4c0.2-0.2,0.5-0.2,0.7,0l2.3,2.8L51.9,11.4L51.9,11.4z M45.6,13.6c-1,0-1.8-0.8-1.8-1.9s0.8-1.9,1.8-1.9
|
64 |
+
s1.8,0.8,1.8,1.9S46.6,13.6,45.6,13.6z"/>
|
65 |
+
<path class="st5" d="M55.4,2.4H34c-0.5,0-0.9,0.4-0.9,0.9v0.9h-0.9c-0.5,0-0.9,0.4-0.9,0.9v0.9h-0.9c-0.5,0-0.9,0.4-0.9,0.9v16.2
|
66 |
+
h0.7v-8.6h0.2v8.6h21.4v-5.8l-2.3-2.8c-0.2-0.2-0.5-0.2-0.7,0L46,18.1l-7.7-7.2c-0.2-0.2-0.4-0.2-0.6,0l-7.3,6.8V7.5
|
67 |
+
c0-0.3,0.2-0.5,0.4-0.5h20.6c0.2,0,0.4,0.2,0.4,0.5v3.8h0.9V7.1c0-0.5-0.4-0.9-0.9-0.9H32.2V5.7c0-0.3,0.2-0.5,0.4-0.5h20.6
|
68 |
+
c0.2,0,0.4,0.2,0.4,0.5l0,17.3c0,0.1-0.1,0.2-0.1,0.3h0.8v0.1h-0.9c-0.1,0-0.1,0-0.2,0h-0.1v0.9h0.5c0.5,0,0.9-0.4,0.9-0.9v-0.9
|
69 |
+
h0.9c0.5,0,0.9-0.4,0.9-0.9V3.3C56.3,2.8,55.9,2.4,55.4,2.4z M55,21.6h-0.4V5.2c0-0.5-0.4-0.9-0.9-0.9H34V3.8
|
70 |
+
c0-0.3,0.2-0.5,0.4-0.5H55c0.2,0,0.4,0.2,0.4,0.5v17.3h0C55.4,21.3,55.2,21.6,55,21.6z"/>
|
71 |
+
<ellipse class="st5" cx="45.6" cy="11.7" rx="1.8" ry="1.9"/>
|
72 |
+
<rect x="30.2" y="14.7" class="st6" width="0.2" height="8.6"/>
|
73 |
+
<polygon class="st6" points="51.9,11.4 51.8,11.4 51.8,17.5 51.9,17.5 "/>
|
74 |
+
<rect x="52.8" y="11.4" class="st6" width="0.4" height="11.9"/>
|
75 |
+
<polygon class="st6" points="52.8,11.4 51.9,11.4 51.9,17.5 51.8,17.5 51.8,23.3 52.8,23.3 "/>
|
76 |
+
</g>
|
77 |
+
<g>
|
78 |
+
<defs>
|
79 |
+
<rect id="SVGID_5_" x="30.5" y="36.4" width="21.2" height="15.3"/>
|
80 |
+
</defs>
|
81 |
+
<clipPath id="SVGID_6_">
|
82 |
+
<use xlink:href="#SVGID_5_" style="overflow:visible;"/>
|
83 |
+
</clipPath>
|
84 |
+
<path class="st7" d="M53.1,51.6h0.4c0.1-0.1,0.1-0.2,0.1-0.3l0-17.3c0-0.3-0.2-0.5-0.4-0.5H32.6c-0.2,0-0.4,0.2-0.4,0.5v0.5h19.7
|
85 |
+
c0.5,0,0.9,0.4,0.9,0.9v4.3h0.4V51.6z"/>
|
86 |
+
<path class="st7" d="M55.4,32.1c0-0.3-0.2-0.5-0.4-0.5H34.4c-0.2,0-0.4,0.2-0.4,0.5v0.5h19.7c0.5,0,0.9,0.4,0.9,0.9v16.4H55
|
87 |
+
c0.2,0,0.4-0.2,0.4-0.5h0V32.1z"/>
|
88 |
+
<path class="st7" d="M51.9,39.7v-3.8c0-0.3-0.2-0.5-0.4-0.5H30.9c-0.2,0-0.4,0.2-0.4,0.5V46l7.3-6.8c0.2-0.2,0.4-0.2,0.6,0
|
89 |
+
l7.7,7.2l2.8-3.4c0.2-0.2,0.5-0.2,0.7,0l2.3,2.8L51.9,39.7L51.9,39.7z M45.6,41.9c-1,0-1.8-0.8-1.8-1.9s0.8-1.9,1.8-1.9
|
90 |
+
s1.8,0.8,1.8,1.9S46.6,41.9,45.6,41.9z"/>
|
91 |
+
<path class="st8" d="M55.4,30.7H34c-0.5,0-0.9,0.4-0.9,0.9v0.9h-0.9c-0.5,0-0.9,0.4-0.9,0.9v0.9h-0.9c-0.5,0-0.9,0.4-0.9,0.9v16.2
|
92 |
+
h0.7V43h0.2v8.6h21.4v-5.8L49.5,43c-0.2-0.2-0.5-0.2-0.7,0L46,46.4l-7.7-7.2c-0.2-0.2-0.4-0.2-0.6,0L30.4,46V35.9
|
93 |
+
c0-0.3,0.2-0.5,0.4-0.5h20.6c0.2,0,0.4,0.2,0.4,0.5v3.8h0.9v-4.3c0-0.5-0.4-0.9-0.9-0.9H32.2V34c0-0.3,0.2-0.5,0.4-0.5h20.6
|
94 |
+
c0.2,0,0.4,0.2,0.4,0.5l0,17.3c0,0.1-0.1,0.2-0.1,0.3h0.8v0.1h-0.9c-0.1,0-0.1,0-0.2,0h-0.1v0.9h0.5c0.5,0,0.9-0.4,0.9-0.9v-0.9
|
95 |
+
h0.9c0.5,0,0.9-0.4,0.9-0.9V31.7C56.3,31.1,55.9,30.7,55.4,30.7z M55,49.9h-0.4V33.5c0-0.5-0.4-0.9-0.9-0.9H34v-0.5
|
96 |
+
c0-0.3,0.2-0.5,0.4-0.5H55c0.2,0,0.4,0.2,0.4,0.5v17.3h0C55.4,49.7,55.2,49.9,55,49.9z"/>
|
97 |
+
<ellipse class="st8" cx="45.6" cy="40.1" rx="1.8" ry="1.9"/>
|
98 |
+
<rect x="30.2" y="43" class="st9" width="0.2" height="8.6"/>
|
99 |
+
<polygon class="st9" points="51.9,39.7 51.8,39.7 51.8,45.8 51.9,45.8 "/>
|
100 |
+
<rect x="52.8" y="39.7" class="st9" width="0.4" height="11.9"/>
|
101 |
+
<polygon class="st9" points="52.8,39.7 51.9,39.7 51.9,45.8 51.8,45.8 51.8,51.6 52.8,51.6 "/>
|
102 |
+
</g>
|
103 |
+
<g>
|
104 |
+
<defs>
|
105 |
+
<rect id="SVGID_7_" x="2.2" y="36.4" width="21.2" height="15.3"/>
|
106 |
+
</defs>
|
107 |
+
<clipPath id="SVGID_8_">
|
108 |
+
<use xlink:href="#SVGID_7_" style="overflow:visible;"/>
|
109 |
+
</clipPath>
|
110 |
+
<path class="st10" d="M24.8,51.6h0.4c0.1-0.1,0.1-0.2,0.1-0.3l0-17.3c0-0.3-0.2-0.5-0.4-0.5H4.3c-0.2,0-0.4,0.2-0.4,0.5v0.5h19.7
|
111 |
+
c0.5,0,0.9,0.4,0.9,0.9v4.3h0.4V51.6z"/>
|
112 |
+
<path class="st10" d="M27.1,32.1c0-0.3-0.2-0.5-0.4-0.5H6.1c-0.2,0-0.4,0.2-0.4,0.5v0.5h19.7c0.5,0,0.9,0.4,0.9,0.9v16.4h0.4
|
113 |
+
c0.2,0,0.4-0.2,0.4-0.5h0V32.1z"/>
|
114 |
+
<path class="st10" d="M23.5,39.7v-3.8c0-0.3-0.2-0.5-0.4-0.5H2.5c-0.2,0-0.4,0.2-0.4,0.5V46l7.3-6.8c0.2-0.2,0.4-0.2,0.6,0
|
115 |
+
l7.7,7.2l2.8-3.4c0.2-0.2,0.5-0.2,0.7,0l2.3,2.8L23.5,39.7L23.5,39.7z M17.3,41.9c-1,0-1.8-0.8-1.8-1.9s0.8-1.9,1.8-1.9
|
116 |
+
c1,0,1.8,0.8,1.8,1.9S18.3,41.9,17.3,41.9z"/>
|
117 |
+
<path class="st11" d="M27.1,30.7H5.7c-0.5,0-0.9,0.4-0.9,0.9v0.9H3.9C3.4,32.6,3,33,3,33.5v0.9H2.1c-0.5,0-0.9,0.4-0.9,0.9v16.2
|
118 |
+
h0.7V43h0.2v8.6h21.4v-5.8L21.2,43c-0.2-0.2-0.5-0.2-0.7,0l-2.8,3.4L10,39.3c-0.2-0.2-0.4-0.2-0.6,0L2.1,46V35.9
|
119 |
+
c0-0.3,0.2-0.5,0.4-0.5h20.6c0.2,0,0.4,0.2,0.4,0.5v3.8h0.9v-4.3c0-0.5-0.4-0.9-0.9-0.9H3.9V34c0-0.3,0.2-0.5,0.4-0.5h20.6
|
120 |
+
c0.2,0,0.4,0.2,0.4,0.5l0,17.3c0,0.1-0.1,0.2-0.1,0.3H26v0.1h-0.9c-0.1,0-0.1,0-0.2,0h-0.1v0.9h0.5c0.5,0,0.9-0.4,0.9-0.9v-0.9
|
121 |
+
h0.9c0.5,0,0.9-0.4,0.9-0.9V31.7C28,31.1,27.6,30.7,27.1,30.7z M26.7,49.9h-0.4V33.5c0-0.5-0.4-0.9-0.9-0.9H5.7v-0.5
|
122 |
+
c0-0.3,0.2-0.5,0.4-0.5h20.6c0.2,0,0.4,0.2,0.4,0.5v17.3h0C27.1,49.7,26.9,49.9,26.7,49.9z"/>
|
123 |
+
<ellipse class="st11" cx="17.3" cy="40.1" rx="1.8" ry="1.9"/>
|
124 |
+
<rect x="1.9" y="43" class="st12" width="0.2" height="8.6"/>
|
125 |
+
<polygon class="st12" points="23.5,39.7 23.5,39.7 23.5,45.8 23.5,45.8 "/>
|
126 |
+
<rect x="24.4" y="39.7" class="st12" width="0.4" height="11.9"/>
|
127 |
+
<polygon class="st12" points="24.4,39.7 23.5,39.7 23.5,45.8 23.5,45.8 23.5,51.6 24.4,51.6 "/>
|
128 |
+
</g>
|
129 |
+
</g>
|
130 |
+
</svg>
|
images/wd_assets/layout.svg
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="utf-8"?>
|
2 |
+
<!-- Generator: Adobe Illustrator 21.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
3 |
+
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
4 |
+
viewBox="0 0 53.9 53.9" style="enable-background:new 0 0 53.9 53.9;" xml:space="preserve">
|
5 |
+
<style type="text/css">
|
6 |
+
.st0{fill:#2E3243;}
|
7 |
+
</style>
|
8 |
+
<path class="st0" d="M51.4,0H2.5C1.1,0,0,1.1,0,2.5v48.9c0,1.3,1.1,2.5,2.5,2.5h48.9c1.3,0,2.5-1.1,2.5-2.5V2.5
|
9 |
+
C53.9,1.1,52.7,0,51.4,0z M18.7,50.6H3.2V20.7h15.5V50.6z M50.6,50.6H20.7V20.7h29.9V50.6z M50.6,18.7H3.2V3.2h47.4V18.7z"/>
|
10 |
+
</svg>
|
images/wd_assets/lightbox.svg
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="utf-8"?>
|
2 |
+
<!-- Generator: Adobe Illustrator 21.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
3 |
+
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
4 |
+
viewBox="0 0 54 54" style="enable-background:new 0 0 54 54;" xml:space="preserve">
|
5 |
+
<style type="text/css">
|
6 |
+
.st0{fill:#2D3142;}
|
7 |
+
</style>
|
8 |
+
<g>
|
9 |
+
<g>
|
10 |
+
<path class="st0" d="M0,54C0,37.7,0,21.5,0,5.3c10.4,0,20.8,0,31.3,0c0,1.1,0,2.2,0,3.4c-9.3,0-18.5,0-27.8,0c0,14,0,27.9,0,41.8
|
11 |
+
c13.9,0,27.8,0,41.8,0c0-9.3,0-18.5,0-27.8c1.2,0,2.3,0,3.4,0c0,10.4,0,20.9,0,31.3C32.5,54,16.3,54,0,54z"/>
|
12 |
+
<path class="st0" d="M31.6,25.1c-1-0.9-1.8-1.7-2.7-2.5C35.2,16.2,41.5,9.9,48,3.5c-3.9,0-7.5,0-11.3,0c0-1.2,0-2.3,0-3.5
|
13 |
+
C42.4,0,48.2,0,54,0c0,5.8,0,11.5,0,17.3c-1.1,0-2.2,0-3.4,0c0-3.7,0-7.4,0-11.3C44.1,12.5,37.8,18.8,31.6,25.1z"/>
|
14 |
+
</g>
|
15 |
+
</g>
|
16 |
+
</svg>
|
images/wd_assets/themes.svg
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="utf-8"?>
|
2 |
+
<!-- Generator: Adobe Illustrator 21.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
3 |
+
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
4 |
+
viewBox="0 0 53.9 43.3" style="enable-background:new 0 0 53.9 43.3;" xml:space="preserve">
|
5 |
+
<style type="text/css">
|
6 |
+
.st0{fill:#2D3142;}
|
7 |
+
</style>
|
8 |
+
<g>
|
9 |
+
<path class="st0" d="M27.4,39.9h5.2l15.5,0h0c0.7,0,1.3-0.2,1.7-0.7c0.4-0.4,0.7-1,0.7-1.6l0-32c0-1.1-0.6-1.9-1.7-2.2l0,0
|
10 |
+
c0,0.5,0,1,0,1.5l0,0.6l0,7.4c0,7.2,0,14.3,0,21.5c0,2.2-1.7,3.9-4,3.9l-3,0l-28.8,0c-3.2,0-6.3,0-9.5,0c0.3,0.9,1.2,1.6,2.3,1.6
|
11 |
+
c5.2,0,10.5,0,15.7,0L27.4,39.9L27.4,39.9z"/>
|
12 |
+
<path class="st0" d="M52.2,6.9c0,2.7,0,5.3,0,8l0,2.9l0,5.8c0,4.8,0,9.5,0,14.3c0,2.1-1.7,3.9-3.9,3.9c-4.6,0-9.1,0-13.7,0l-6.5,0
|
13 |
+
l-5,0c-5.4,0-10.7,0-16.1,0c0.3,0.9,1.2,1.6,2.3,1.6c5.2,0,10.4,0,15.7,0h5.8v0H36c1.9,0,3.7,0,5.6,0c3.3,0,6.6,0,9.8,0h0
|
14 |
+
c0.7,0,1.3-0.2,1.8-0.6c0.4-0.4,0.7-1,0.7-1.7c0-10.7,0-21.3,0-32C53.9,8,53.2,7.2,52.2,6.9z"/>
|
15 |
+
<path class="st0" d="M47,2.3C47,1,46,0,44.6,0c-5,0-10,0-15,0l-6.1,0l-4.2,0L2.3,0C1,0,0,1,0,2.3l0,31.9c0,0.2,0,0.4,0,0.5
|
16 |
+
c0.3,1.1,1.1,1.8,2.4,1.8l41.9,0c1.7,0,2.6-0.9,2.6-2.6L47,2.3z M42.7,2.1c0.9,0,1.6,0.7,1.6,1.5c0,0.4-0.2,0.8-0.5,1.1
|
17 |
+
c-0.3,0.3-0.7,0.5-1.1,0.5c0,0,0,0,0,0c-0.8,0-1.5-0.7-1.5-1.5C41.2,2.8,41.8,2.1,42.7,2.1z M36.8,2.6c0.3-0.3,0.7-0.4,1.1-0.4
|
18 |
+
c0.9,0,1.6,0.7,1.6,1.5c0,0.4-0.2,0.8-0.5,1.1c-0.3,0.3-0.7,0.5-1.1,0.5c0,0,0,0,0,0c-0.8,0-1.5-0.7-1.5-1.6
|
19 |
+
C36.3,3.2,36.5,2.8,36.8,2.6z M7.8,2.7c0.2-0.2,0.6-0.3,1-0.3l23.8,0c0.5,0,0.9,0.1,1.1,0.4c0.2,0.2,0.3,0.6,0.3,1
|
20 |
+
c0,0.6-0.3,1.2-1.3,1.2c-1.7,0-3.4,0-5,0l-6.9,0c-2.4,0-4.8,0-7.3,0c-1.6,0-3.1,0-4.7,0c-0.9,0-1.4-0.4-1.4-1.3
|
21 |
+
C7.5,3.2,7.6,2.9,7.8,2.7z M3.1,2.6c0.3-0.3,0.7-0.5,1.1-0.5c0.4,0,0.8,0.1,1.1,0.4c0.3,0.3,0.4,0.7,0.4,1.1c0,0.4-0.2,0.8-0.5,1.1
|
22 |
+
C5,5.1,4.7,5.2,4.3,5.2c0,0,0,0,0,0c-0.8,0-1.6-0.7-1.6-1.6C2.7,3.3,2.8,2.9,3.1,2.6z M44,33.6c-0.2,0.2-0.5,0.2-0.8,0.2
|
23 |
+
c-10.8,0-21.5,0-32.3,0l-4.5,0c-0.9,0-1.8,0-2.8,0c0,0,0,0-0.1,0c-0.2,0-0.5,0-0.7-0.2c-0.2-0.2-0.3-0.5-0.3-0.8
|
24 |
+
c0-4.6,0-9.1,0-13.7l0-3.1l0-1.9c0-2,0-4,0-6c0-0.2,0-0.6,0.2-0.8c0.2-0.2,0.5-0.2,0.8-0.2c5.3,0,10.6,0,15.8,0h8.8h14.8
|
25 |
+
c0.9,0,1.1,0.2,1.1,1.1l0,6.2c0,6.2,0,12.3,0,18.5C44.3,33.1,44.3,33.4,44,33.6z"/>
|
26 |
+
</g>
|
27 |
+
</svg>
|
images/wd_assets/wdi_main_plugin.svg
ADDED
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="utf-8"?>
|
2 |
+
<!-- Generator: Adobe Illustrator 21.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
3 |
+
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
4 |
+
viewBox="0 0 59.2 59.4" style="enable-background:new 0 0 59.2 59.4;" xml:space="preserve">
|
5 |
+
<style type="text/css">
|
6 |
+
.st0{fill:#323A45;}
|
7 |
+
.st1{fill:#FFFFFF;}
|
8 |
+
</style>
|
9 |
+
<g>
|
10 |
+
<path class="st0" d="M-840.8,506c0-0.5,0.1-0.9,0.1-1.2c0-2.2-0.1-4.3-0.1-6.5c0-2.4,0.2-4.9,0.2-7.3c0-3.4-0.1-6.9-0.1-10.3
|
11 |
+
c0-2.8,0-5.7,0-8.5c0-3.3,2-5.9,5.1-6.7c3.7-1,7.1,0.6,8.5,4.3c0.3,0.8,0.4,1.8,0.4,2.7c0,5.1,0,10.2,0,15.3c0,0.2,0,0.3,0.1,0.6
|
12 |
+
c0.3-0.1,0.5-0.1,0.7-0.2c2.5-1.6,5-1.3,7.4,0.3c0.8,0.5,1.6,1,2,2c0.2,0.4,0.5,0.3,0.9,0.1c2.4-1.6,5-2.4,7.6-0.9
|
13 |
+
c2.4,1.3,3.7,3.5,3.8,6.3c0,0.2,0,0.5,0.1,0.7c0,0.1,0.1,0.1,0.2,0.3c1.2-1.1,2.7-1.2,4.2-1.2c2,0,3.5,0.9,4.9,2.3
|
14 |
+
c1.4,1.5,1.8,3.3,1.8,5.2c0,5.1,0.1,10.2,0,15.3c-0.2,9.4-4.4,16.6-12.7,21.2c-4.2,2.3-8.7,3.2-13.5,2.7c-5-0.5-9.3-2.6-13.1-5.7
|
15 |
+
c-5.2-4.2-9.8-9-14.4-14c-1.3-1.4-2.5-2.8-3.9-4.1c-1.6-1.6-2.5-3.4-2.5-5.6c-0.1-3.7,2.4-7.1,6.3-7.9c1.9-0.4,3.6-0.1,5.4,0.7
|
16 |
+
C-841.3,505.9-841.1,505.9-840.8,506z M-838,500.2C-838,500.2-838,500.2-838,500.2c0.1,1.3,0.1,2.6,0.1,3.9c0,1.8,0,3.6,0,5.4
|
17 |
+
c0,0.5-0.4,1.1-0.8,1.3c-0.4,0.2-1.1,0-1.5-0.3c-0.6-0.3-0.9-1-1.5-1.3c-0.8-0.5-1.7-1.1-2.6-1.2c-2.1-0.4-4.3,0.7-5.3,2.6
|
18 |
+
c-1,2-0.7,4.3,0.8,6c1.7,1.8,3.4,3.6,5.1,5.4c4.5,4.8,9.1,9.6,14.4,13.6c2.8,2.1,5.8,3.6,9.3,4c4.8,0.6,9.4-0.1,13.5-2.6
|
19 |
+
c6.7-4,10.2-10,10.6-17.7c0.2-5.4,0-10.8,0-16.2c0-2.1-1.4-3.9-3.2-4.3c-1.9-0.4-4,0.7-4.9,2.6c-0.2,0.4-0.2,0.9-0.2,1.3
|
20 |
+
c-0.2,1.1-0.7,1.6-1.6,1.5c-0.9-0.1-1.3-0.6-1.3-1.7c0-2.2,0-4.5-0.1-6.7c0-1.2-0.4-2.3-1.5-3c-1.4-0.9-2.7-1.3-4.3-0.5
|
21 |
+
c-1.5,0.8-2.4,1.8-2.5,3.5c0,0.9-0.7,1.6-1.4,1.6c-0.7,0-1.3-0.6-1.4-1.6c0-0.6,0-1.2,0-1.8c0-1.3-1.4-3.2-2.7-3.7
|
22 |
+
c-1.2-0.4-2.3-0.3-3.5,0.3c-1.4,0.8-2.2,1.8-2.2,3.5c0,0.3-0.2,0.6-0.4,0.9c-0.4,0.4-0.9,0.8-1.6,0.5c-0.7-0.3-1.1-0.8-1.1-1.6
|
23 |
+
c0.1-2.3,0.1-4.6,0.1-6.9c0-4.6,0-9.3,0-13.9c0-0.8-0.1-1.7-0.4-2.4c-0.8-2.1-3.1-2.7-4.4-2.5c-2.2,0.5-3.6,2.1-3.6,4.3
|
24 |
+
c0,6.3-0.1,12.5-0.1,18.8C-838,494.2-838,497.2-838,500.2z"/>
|
25 |
+
<path class="st0" d="M-832.3,457.4c0,0.3,0,0.7,0,1c0,1.7,0,1.7,1.7,2.1c4,1,6.7,3.5,8.2,7.3c1.4,3.3,1.2,6.6-0.4,9.8
|
26 |
+
c-0.3,0.5-0.8,1.1-1.3,1.3c-0.3,0.1-1.1-0.1-1.3-0.5c-0.3-0.4-0.4-1.1-0.2-1.5c0.9-1.7,1.3-3.6,1.1-5.5c-0.2-3.4-2.7-6.7-6.1-7.9
|
27 |
+
c-5.1-1.8-10.4,0.8-12.1,6c-0.7,2.3-0.5,4.6,0.5,6.8c0.2,0.5,0.5,1,0.4,1.5c0,0.6-0.5,1.2-1.1,1.1c-0.5,0-1.3-0.3-1.5-0.7
|
28 |
+
c-0.6-1.3-1.2-2.6-1.4-4c-0.8-5.7,1.8-10.6,6.9-13.1c0.9-0.4,1.9-0.7,2.8-0.9c0.6-0.2,0.8-0.5,0.8-1.1c0-1.5,0-3,0.2-4.4
|
29 |
+
c0.7-5.4,3.7-9.3,8.6-11.6c2.2-1,4.5-1.4,6.9-1.2c4.7,0.5,8.4,2.6,11.1,6.5c1.8,2.7,2.6,5.8,2.5,9c0,0.6,0,1.2,0,1.7
|
30 |
+
c0,0.6,0.3,0.8,0.9,0.9c1.2,0.3,2.5,0.7,3.6,1.3c1.1,0.5,1.4,1.3,1,2.1c-0.5,0.8-1.3,0.9-2.4,0.4c-1.4-0.7-2.9-1.1-4.5-1.1
|
31 |
+
c-4.4,0-8,2.6-9.5,6.7c-1.9,5.3,0.9,10.9,6.1,12.8c5.4,1.9,11.1-1.2,12.7-6.2c0.3-1,0.4-2.1,0.6-3.1c0.2-1.1,0.6-1.6,1.6-1.5
|
32 |
+
c0.9,0.1,1.3,0.6,1.3,1.7c-0.3,5.2-2.7,8.9-7.4,11.2c-6.3,3-13.5,0.3-16.7-5.3c-3.4-6.2-1.2-14.2,5.1-17.5c1.3-0.7,2.7-0.9,4.1-1.4
|
33 |
+
c0.3-0.1,0.6-0.4,0.6-0.6c0.3-3.8,0-7.4-2.6-10.4c-3-3.5-7-4.9-11.4-4c-4.4,0.9-7.4,3.7-8.8,8.1c-0.4,1.4-0.5,2.8-0.7,4.3
|
34 |
+
C-832.4,457.3-832.4,457.4-832.3,457.4z"/>
|
35 |
+
<path class="st0" d="M-807.3,475c2.1-2.2,4.1-4.3,6.2-6.4c1.9-2,3.9-3.9,5.9-5.9c0.9-0.9,2-0.8,2.6,0.3c0.4,0.7-0.1,1.2-0.5,1.7
|
36 |
+
c-1,1.1-2.1,2.2-3.2,3.2c-3.1,3.1-6.2,6.2-9.4,9.4c-1.5,1.5-2,1.5-3.4,0c-1.9-1.9-3.8-3.8-5.6-5.6c-0.2-0.2-0.5-0.4-0.6-0.7
|
37 |
+
c-0.2-0.7-0.3-1.3,0.4-1.9c0.7-0.5,1.3-0.4,1.9,0.2c1.6,1.6,3.3,3.2,4.9,4.9C-808,474.3-807.7,474.5-807.3,475z"/>
|
38 |
+
</g>
|
39 |
+
<g>
|
40 |
+
<g>
|
41 |
+
<path d="M-847.6,680.5c3,0,5.5,2.5,5.5,5.5c0,3-2.5,5.5-5.5,5.5c-3,0-5.5-2.5-5.5-5.5C-853.1,683-850.6,680.5-847.6,680.5z
|
42 |
+
M-847.6,681.4c-2.6,0-4.6,2.1-4.6,4.6c0,2.6,2.1,4.6,4.6,4.6c2.6,0,4.6-2.1,4.6-4.6C-843,683.4-845.1,681.4-847.6,681.4z"/>
|
43 |
+
<path d="M-847.6,688.2c-1-0.9-1.9-1.9-2.9-2.8c0.2-0.2,0.4-0.4,0.6-0.6c0.8,0.8,1.6,1.5,2.3,2.2c0.8-0.7,1.6-1.5,2.3-2.2
|
44 |
+
c0.2,0.2,0.4,0.4,0.6,0.6C-845.7,686.3-846.7,687.2-847.6,688.2z"/>
|
45 |
+
</g>
|
46 |
+
</g>
|
47 |
+
<path class="st0" d="M-838.3,572.9c5.9,0,12.3,4.3,13,12.3h1.8c-0.1-2.7-0.9-5.1-2.4-7.5c-1.5-2.4-3.7-4.2-6.5-5.5l-0.9-0.4l0.8-0.6
|
48 |
+
c2.6-1.9,4.1-4.6,4.4-7.6c0.2-2.9-0.8-5.7-2.7-7.8c-1.9-2-4.5-3.2-7.3-3.2c-2.8,0-5.4,1-7.4,3c-2.1,2.1-3.1,5-2.9,7.9
|
49 |
+
c0.2,3,1.8,5.7,4.4,7.7l0.8,0.6l-0.9,0.4c-2.8,1.3-4.9,3.1-6.5,5.4c-1.6,2.4-2.4,4.9-2.4,7.6h1.8
|
50 |
+
C-850.6,577.2-844.2,572.9-838.3,572.9z M-846.7,562.8c0-2.2,0.8-4.3,2.4-5.9c1.6-1.6,3.7-2.5,5.9-2.5c2.3,0,4.4,0.9,5.9,2.4
|
51 |
+
c1.6,1.6,2.4,3.7,2.4,5.9c0,4.5-3.7,8.3-8.3,8.3l-0.1,0C-842.9,571.1-846.6,567.3-846.7,562.8z"/>
|
52 |
+
<g>
|
53 |
+
<path class="st0" d="M-837.8,615.2c0-3.9,0-7.7,0-11.6c0-0.2-0.1-0.3-0.3-0.4c-1.6-0.6-2.7-2.2-2.8-3.7c0-1.7,1.2-3.4,2.9-4
|
54 |
+
c1.5-0.5,3.3,0,4.4,1.4c2,2.6,0.3,5.4-1.9,6.2c-0.2,0.1-0.3,0.2-0.3,0.5c0,7.7,0,15.4,0,23c0,0.1,0,0.3,0,0.4
|
55 |
+
c-0.1,0.5-0.6,0.9-1.1,0.8c-0.5,0-0.9-0.5-0.9-1.1c0-2.9,0-5.8,0-8.7C-837.8,617.1-837.8,616.1-837.8,615.2z M-836.8,601.3
|
56 |
+
c1.2,0,2-0.8,2-2c0-1.3-0.8-2.1-2-2.1c-1.3,0-2.1,0.8-2.1,2C-838.9,600.6-838.1,601.3-836.8,601.3z"/>
|
57 |
+
<path class="st0" d="M-825.6,607.9c0-3.8,0-7.7,0-11.5c0-0.1,0-0.3,0-0.4c0.1-0.5,0.6-0.9,1.1-0.8c0.5,0.1,0.9,0.5,0.9,1
|
58 |
+
c0,1.7,0,3.4,0,5.1c0,6,0,12.1,0,18.1c0,0.2,0.1,0.3,0.3,0.4c1.5,0.6,2.7,2.1,2.8,3.7c0,1.7-1.2,3.5-3,4c-1.6,0.5-3.4-0.2-4.5-1.7
|
59 |
+
c-1.7-2.5,0-5.2,2-6c0.3-0.1,0.3-0.2,0.3-0.5C-825.6,615.6-825.6,611.8-825.6,607.9z M-824.6,621.7c-1.3,0-2.1,0.8-2.1,2
|
60 |
+
c0,1.3,0.8,2.1,2,2.1c1.3,0,2-0.8,2-2C-822.5,622.5-823.3,621.7-824.6,621.7z"/>
|
61 |
+
<path class="st0" d="M-850.1,601.8c0-1.8,0-3.6,0-5.4c0-0.7,0.4-1.1,1-1.1c0.6,0,1,0.5,1,1.2c0,3.6,0,7.3,0,10.9
|
62 |
+
c0,0.2,0.1,0.3,0.3,0.4c1.7,0.6,2.8,2.2,2.8,3.9c0,1.6-1.2,3.1-2.8,3.7c-0.2,0.1-0.3,0.2-0.3,0.4c0,3.6,0,7.3,0,10.9
|
63 |
+
c0,0.8-0.7,1.3-1.4,1c-0.4-0.2-0.6-0.5-0.6-1c0-2.2,0-4.4,0-6.7c0-1.4,0-2.9,0-4.3c0-0.2-0.1-0.3-0.3-0.4c-1.7-0.6-2.8-2.2-2.8-3.9
|
64 |
+
c0-1.6,1.2-3.2,2.8-3.8c0.2-0.1,0.3-0.2,0.3-0.5c0-0.9,0-1.8,0-2.7C-850.1,603.6-850.1,602.7-850.1,601.8z M-847,611.5
|
65 |
+
c0-1.2-0.7-1.9-1.8-2c-1.2-0.1-2.1,0.5-2.3,1.6c-0.2,1.2,0.4,2.2,1.5,2.4c0.3,0.1,0.7,0,1,0C-847.6,613.4-847,612.6-847,611.5z"/>
|
66 |
+
</g>
|
67 |
+
<g>
|
68 |
+
<path class="st0" d="M-841.4,670.5c-1.8,0-3.3-1.4-3.3-3.3c0-0.4,0-0.8,0-1.2c0-0.5,0-0.9,0-1.4c0-0.1-0.1-0.2-0.1-0.3
|
69 |
+
c-0.7-0.7-1.3-1.3-2-2c-1-1-2-2-3-3.1c-1.2-1.3-2.3-2.8-2.8-4.7c-0.5-2-0.5-4.3-0.5-4.3l23.3,0l0,0.8c-0.1,3.6-1.5,6.7-4.1,9.2
|
70 |
+
c-1.3,1.3-2.6,2.6-4.1,4.1c0,0-0.1,0.1-0.1,0.2c0,0.5,0,1,0,1.5c0,0.3,0,0.7,0,1C-838.1,669.1-839.5,670.5-841.4,670.5
|
71 |
+
C-841.4,670.5-841.4,670.5-841.4,670.5z M-851.4,651.9c0,0,0,0.1,0,0.1c0,0.3,0.1,0.6,0.1,0.8c0.1,0.7,0.2,1.3,0.4,1.9
|
72 |
+
c0.4,1.2,1.2,2.4,2.2,3.5c1,1,2,2.1,3,3.1c0.7,0.7,1.3,1.4,2,2c0.3,0.3,0.5,0.8,0.5,1.3c0,0.5,0,1,0,1.5c0,0.4,0,0.8,0,1.1
|
73 |
+
c0,1,0.8,1.8,1.8,1.8c0,0,0,0,0,0c1,0,1.7-0.8,1.8-1.8c0-0.3,0-0.7,0-1c0-0.5,0-1.1,0-1.6c0-0.4,0.2-0.9,0.5-1.2
|
74 |
+
c1.4-1.5,2.7-2.8,4.1-4.1c2.1-2,3.3-4.5,3.6-7.3L-851.4,651.9z"/>
|
75 |
+
<path class="st0" d="M-844.5,648.7l-5.2,0l0-0.7c0-0.2,0-0.3,0-0.4l0-2.1c0-1.7,0-3.3,0-5c0-0.9,0.4-1.6,1.2-2.1
|
76 |
+
c1.2-0.7,3.1-0.6,4.1,0.3c0.4,0.3,0.8,0.9,0.8,1.5c0,2,0,4,0,6l0,1.7c0,0.2,0,0.3-0.1,0.4l-0.2,0.5L-844.5,648.7z M-848.2,647.1
|
77 |
+
l2.9,0l0-1c0-2,0-4,0-6c0-0.1-0.1-0.2-0.2-0.4c-0.5-0.4-1.6-0.5-2.3-0.1c-0.3,0.2-0.4,0.4-0.4,0.7c0,1.7,0,3.4,0,5L-848.2,647.1z"
|
78 |
+
/>
|
79 |
+
<path class="st0" d="M-839.2,648.7l0-6.6c0-0.6,0-1.2,0-1.8c0-0.8,0.4-1.5,1.1-1.9c1.3-0.7,2.7-0.7,4,0.1c0.5,0.3,0.9,0.9,0.9,1.6
|
80 |
+
c0,2,0,4,0,6l0,2.6L-839.2,648.7z M-836.2,639.4c-0.4,0-0.8,0.1-1.2,0.3c-0.2,0.1-0.3,0.3-0.3,0.5c0,0.6,0,1.2,0,1.9l0,5l2.9,0
|
81 |
+
l0-1.1c0-2,0-4,0-6c0-0.1-0.1-0.2-0.2-0.3C-835.4,639.5-835.8,639.4-836.2,639.4z"/>
|
82 |
+
</g>
|
83 |
+
<g>
|
84 |
+
<g>
|
85 |
+
<g>
|
86 |
+
<g id="XMLID_105_">
|
87 |
+
<g>
|
88 |
+
<path id="XMLID_106_" class="st1" d="M41.2,59.4H18c-10,0-18-8.1-18-18V18C0,8.1,8.1,0,18,0h23.1c10,0,18,8.1,18,18v23.3
|
89 |
+
C59.2,51.3,51.1,59.4,41.2,59.4z M18,5.7C11.2,5.7,5.7,11.2,5.7,18v23.3c0,6.8,5.5,12.3,12.3,12.3h23.1
|
90 |
+
c6.8,0,12.3-5.5,12.3-12.3V18c0-6.8-5.5-12.3-12.3-12.3H18z"/>
|
91 |
+
</g>
|
92 |
+
</g>
|
93 |
+
<g id="XMLID_101_">
|
94 |
+
<g>
|
95 |
+
<path id="XMLID_102_" class="st1" d="M29.7,44.7c-8.3,0-15-6.7-15-15s6.7-15,15-15s15,6.7,15,15S37.9,44.7,29.7,44.7z
|
96 |
+
M29.7,19.9c-5.4,0-9.8,4.4-9.8,9.8s4.4,9.8,9.8,9.8s9.8-4.4,9.8-9.8S35.1,19.9,29.7,19.9z"/>
|
97 |
+
</g>
|
98 |
+
</g>
|
99 |
+
<g id="XMLID_100_">
|
100 |
+
<circle class="st1" cx="45.5" cy="14" r="3.5"/>
|
101 |
+
</g>
|
102 |
+
</g>
|
103 |
+
</g>
|
104 |
+
</g>
|
105 |
+
</svg>
|
images/wd_assets/widget.svg
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="utf-8"?>
|
2 |
+
<!-- Generator: Adobe Illustrator 21.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
3 |
+
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
4 |
+
viewBox="0 0 53.9 53.9" style="enable-background:new 0 0 53.9 53.9;" xml:space="preserve">
|
5 |
+
<style type="text/css">
|
6 |
+
.st0{fill:#2E3243;}
|
7 |
+
</style>
|
8 |
+
<g>
|
9 |
+
<path class="st0" d="M26.9,13c-7.6,0-13.9,6.2-13.9,13.9s6.2,13.9,13.9,13.9s13.9-6.3,13.9-13.9S34.5,13,26.9,13z M26.9,35.7
|
10 |
+
c-4.9,0-8.9-4-8.9-8.9s4-8.9,8.9-8.9s8.9,4,8.9,8.9S31.8,35.7,26.9,35.7z"/>
|
11 |
+
<circle class="st0" cx="41.3" cy="12.6" r="3.1"/>
|
12 |
+
<path class="st0" d="M49.4,4.5c-2.8-2.9-6.8-4.4-11.4-4.4H15.8C6.4,0.1,0.1,6.4,0.1,15.8V38c0,4.7,1.5,8.7,4.5,11.6
|
13 |
+
c2.9,2.8,6.8,4.2,11.3,4.2H38c4.7,0,8.6-1.5,11.4-4.2c2.9-2.8,4.4-6.8,4.4-11.5V15.8C53.8,11.2,52.3,7.3,49.4,4.5z M49,38.1
|
14 |
+
c0,3.4-1.2,6.1-3.1,7.9s-4.7,2.8-7.9,2.8H15.9c-3.2,0-6-1-7.9-2.8C6,44,5.1,41.3,5.1,38V15.8c0-3.2,1-6,2.9-7.9
|
15 |
+
c1.8-1.8,4.7-2.8,7.9-2.8h22.3c3.2,0,6,1,7.9,2.9c1.8,1.9,2.9,4.7,2.9,7.8V38.1L49,38.1z"/>
|
16 |
+
</g>
|
17 |
+
</svg>
|
js/shortcode.js
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery(window).resize(function() {
|
2 |
+
jQuery("body").each(function () {
|
3 |
+
window.parent.wdi_thickDims(jQuery(this).data("width"), jQuery(this).data("height"));
|
4 |
+
});
|
5 |
+
});
|
js/wdi_admin.js
CHANGED
@@ -19,6 +19,85 @@ jQuery(document).ready(function() {
|
|
19 |
wdi_advanced_option_controller();
|
20 |
}
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
});
|
23 |
|
24 |
function wdi_advanced_option_controller() {
|
@@ -163,14 +242,14 @@ wdi_controller.switchFeedTabs = function(tabname, section) {
|
|
163 |
|
164 |
if( tabname != 'conditional_filters' ){
|
165 |
jQuery( '#wdi-conditional-filters-ui' ).addClass('wdi_hidden');
|
166 |
-
jQuery( '#wdi_save_feed_apply' ).removeClass( 'wdi_hidden' );
|
167 |
jQuery( '#wdi_cancel_changes' ).removeClass( 'wdi_hidden' );
|
168 |
-
jQuery( '#wdi_save_feed_submit' ).removeClass( 'wdi_hidden' )
|
169 |
}else{
|
170 |
jQuery( '#wdi-conditional-filters-ui' ).removeClass('wdi_hidden');
|
171 |
-
jQuery( '#wdi_save_feed_apply' ).addClass( 'wdi_hidden' );
|
172 |
jQuery( '#wdi_cancel_changes' ).addClass( 'wdi_hidden' );
|
173 |
-
jQuery( '#wdi_save_feed_submit' ).addClass( 'wdi_hidden' )
|
174 |
}
|
175 |
|
176 |
}
|
@@ -629,6 +708,10 @@ wdi_controller.updateFeaturedImageSelect = function(username, action, selected)
|
|
629 |
case 'remove':
|
630 |
{
|
631 |
select.find('option[value="' + username + '"]').remove();
|
|
|
|
|
|
|
|
|
632 |
break;
|
633 |
}
|
634 |
}
|
@@ -780,7 +863,8 @@ wdi_controller.hasData = function(response) {
|
|
780 |
* @return {Boolean} true or false
|
781 |
*/
|
782 |
wdi_controller.thumbUser = function(user) {
|
783 |
-
|
|
|
784 |
}
|
785 |
|
786 |
|
19 |
wdi_advanced_option_controller();
|
20 |
}
|
21 |
|
22 |
+
jQuery(".wdi_section_name").click(function () {
|
23 |
+
wdi_show_hide_sections(jQuery(this));
|
24 |
+
});
|
25 |
+
wdi_show_hide_sections(false);
|
26 |
+
function wdi_show_hide_sections(element) {
|
27 |
+
if(element===false){
|
28 |
+
var wdi_hide_show_sections_list = {
|
29 |
+
'wdi_layout_section':'show',
|
30 |
+
'wdi_media':'show',
|
31 |
+
'wdi_layout':'hide',
|
32 |
+
'wdi_advanced':'hide',
|
33 |
+
|
34 |
+
'wdi_lightbox_general':'show',
|
35 |
+
'wdi_lightbox_advanced':'hide',
|
36 |
+
|
37 |
+
'wdi_conditional_filters':'show',
|
38 |
+
'wdi_how_to_publish':'show',
|
39 |
+
};
|
40 |
+
//var closed_sections = jQuery("#wdi_save_feed .wdi_section").find(".wdi_section_open");
|
41 |
+
var wdi_sections = JSON.parse(localStorage.getItem('wdi_sections'));
|
42 |
+
if(wdi_sections === null || wdi_sections === false){
|
43 |
+
wdi_sections = wdi_hide_show_sections_list;
|
44 |
+
localStorage.setItem('wdi_sections', JSON.stringify(wdi_sections));
|
45 |
+
}
|
46 |
+
for(i in wdi_sections){
|
47 |
+
var wdi_section_el = jQuery("#wdi_save_feed").find("[data-section_name='" + i + "']");
|
48 |
+
wdi_show_hide(wdi_sections[i], wdi_section_el);
|
49 |
+
}
|
50 |
+
}else{
|
51 |
+
var wdi_section_parent_id = jQuery(element).data("section_name");
|
52 |
+
var show_hide_section = null;
|
53 |
+
if(element.hasClass("wdi_section_open")){
|
54 |
+
wdi_show_hide("show", element);
|
55 |
+
show_hide_section = "show";
|
56 |
+
}else if(element.hasClass("wdi_section_close")){
|
57 |
+
wdi_show_hide("hide", element);
|
58 |
+
show_hide_section = "hide";
|
59 |
+
}
|
60 |
+
if(show_hide_section != null){
|
61 |
+
var old_wdi_sections = JSON.parse(localStorage.getItem('wdi_sections')) || {};
|
62 |
+
old_wdi_sections[wdi_section_parent_id] = show_hide_section;
|
63 |
+
localStorage.setItem('wdi_sections', JSON.stringify(old_wdi_sections));
|
64 |
+
}
|
65 |
+
}
|
66 |
+
}
|
67 |
+
|
68 |
+
|
69 |
+
function wdi_show_hide(type, element) {
|
70 |
+
if(type === "show"){
|
71 |
+
var wdi_closable_section = element.closest(".wdi_section").find(".wdi_elements");
|
72 |
+
if(wdi_closable_section.data("display") === "table"){
|
73 |
+
wdi_closable_section.css({
|
74 |
+
"display":"table"
|
75 |
+
});
|
76 |
+
}else{
|
77 |
+
wdi_closable_section.css({
|
78 |
+
"display":"block"
|
79 |
+
});
|
80 |
+
}
|
81 |
+
|
82 |
+
element.css({
|
83 |
+
'border-bottom':"1px solid #f1f1f1",
|
84 |
+
'margin': '0 auto 15px'
|
85 |
+
});
|
86 |
+
element.removeClass("wdi_section_open");
|
87 |
+
element.addClass("wdi_section_close");
|
88 |
+
}else{
|
89 |
+
element.closest(".wdi_section").find(".wdi_elements").css({
|
90 |
+
'display':'none'
|
91 |
+
});
|
92 |
+
element.css({
|
93 |
+
'border-bottom':"0px",
|
94 |
+
'margin': '0 auto 0px'
|
95 |
+
});
|
96 |
+
element.removeClass("wdi_section_close");
|
97 |
+
element.addClass("wdi_section_open");
|
98 |
+
}
|
99 |
+
|
100 |
+
}
|
101 |
});
|
102 |
|
103 |
function wdi_advanced_option_controller() {
|
242 |
|
243 |
if( tabname != 'conditional_filters' ){
|
244 |
jQuery( '#wdi-conditional-filters-ui' ).addClass('wdi_hidden');
|
245 |
+
/* jQuery( '#wdi_save_feed_apply' ).removeClass( 'wdi_hidden' );
|
246 |
jQuery( '#wdi_cancel_changes' ).removeClass( 'wdi_hidden' );
|
247 |
+
jQuery( '#wdi_save_feed_submit' ).removeClass( 'wdi_hidden' );*/
|
248 |
}else{
|
249 |
jQuery( '#wdi-conditional-filters-ui' ).removeClass('wdi_hidden');
|
250 |
+
/* jQuery( '#wdi_save_feed_apply' ).addClass( 'wdi_hidden' );
|
251 |
jQuery( '#wdi_cancel_changes' ).addClass( 'wdi_hidden' );
|
252 |
+
jQuery( '#wdi_save_feed_submit' ).addClass( 'wdi_hidden' );*/
|
253 |
}
|
254 |
|
255 |
}
|
708 |
case 'remove':
|
709 |
{
|
710 |
select.find('option[value="' + username + '"]').remove();
|
711 |
+
if(this.feed_users.length > 0) {
|
712 |
+
select.val(this.feed_users[0].username);
|
713 |
+
}
|
714 |
+
|
715 |
break;
|
716 |
}
|
717 |
}
|
863 |
* @return {Boolean} true or false
|
864 |
*/
|
865 |
wdi_controller.thumbUser = function(user) {
|
866 |
+
return (this.feed_users.length > 0 && this.feed_users[0].username === user);
|
867 |
+
//return (jQuery('#wdi_thumb_user').val() == user) ? true : false;
|
868 |
}
|
869 |
|
870 |
|
js/wdi_admin.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(document).ready(function(){wdi_controller.bindSaveFeedEvent();wdi_controller.bindAddNewUserOrHashtagEvent();jQuery(".display_type input").on("click",function(){wdi_controller.displaySettingsSection(jQuery(this))});wdi_controller.conditionalFiltersTabInit();wdi_controller.bindSaveThemeEvent();jQuery("#wdi_add_user_ajax").after(jQuery("<br><label class='wdi_pro_only' for='wdi_add_user_ajax_input'>"+wdi_messages.username_hashtag_multiple+"</label>"));if(jQuery("body").hasClass("instagram-feed-wd_page_wdi_settings")){wdi_advanced_option_controller()}});function wdi_advanced_option_controller(){var a=jQuery(jQuery("#wdi_user_id").closest("form").find(".form-table").get(1));a.addClass("wdi_advanced_option wdi_advanced_option_close");var b="<tr class='wdi_advanced_option_head'><th>ADVANCED OPTIONS</th><td><div class='wdi_advanced_option_icon'></div></td></tr>";$tr=jQuery(b);a.prepend($tr);$tr.on("click",function(){if(a.hasClass("wdi_advanced_option_open")){a.removeClass("wdi_advanced_option_open");a.addClass("wdi_advanced_option_close")}else{a.removeClass("wdi_advanced_option_close");a.addClass("wdi_advanced_option_open")}})}function wdi_controller(){}wdi_controller.getParameterByName=function(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var c=new RegExp("[\\?&]"+a+"=([^&#]*)"),b=c.exec(location.search);return b===null?"":decodeURIComponent(b[1].replace(/\+/g," "))};wdi_controller.apiRedirected=function(){var d=this.getParameterByName("access_token");var a=d.split(".");var b=/^[^\\\/&?><"']*$/;for(i=0;i<a.length;i++){if(a[i].match(b)===null){return}}var c=a.join(".");jQuery(document).ready(function(){jQuery("#wdi_access_token").attr("value",c)});wdi_controller.instagram.addToken(c);wdi_controller.getUserInfo(c)};wdi_controller.getUserInfo=function(a){this.instagram.getSelfInfo({success:function(b){jQuery("#wdi_user_name").attr("value",b.data["username"]);jQuery("#wdi_user_id").attr("value",b.data["id"]);jQuery(document).trigger("wdi_settings_filled")}})};wdi_controller.oldDisplayType={};wdi_controller.displayTypeMemory={};wdi_controller.switchFeedTabs=function(d,b){jQuery("#wdi_refresh_tab").attr("value",d);jQuery(".wdi_tab").hide();jQuery("#"+d+"_tab").show();jQuery(".display_type").css("display","none");jQuery('.display_type[tab="'+d+'"]').css("display","block");jQuery('.display_type[tab="'+d+'"]').css("display","block");if(!jQuery('.display_type[tab="'+d+'"]').length){jQuery(".display_type_content").hide()}else{jQuery(".display_type_content").show()}jQuery(".wdi_feed_tabs").filter(".wdi_feed_tab_active").each(function(){jQuery(this).removeClass("wdi_feed_tab_active")});jQuery("#wdi_"+d).addClass("wdi_feed_tab_active");var a=jQuery();var c=false;if(b!=undefined&&b!=""){a=jQuery(".display_type #"+b).prop("checked",true);jQuery("#wdi_feed_type").attr("value",b)}if(!c){a=jQuery('.display_type[tab="'+d+'"] input[name="feed_type"]:checked');if(a.length!=0){c=true}}if(!c){a=jQuery('.display_type[tab="'+d+'"] #thumbnails');if(a.length!=0){c=true;a.prop("checked",true);jQuery("#wdi_feed_type").attr("value","thumbnails")}}if(c){wdi_controller.displaySettingsSection(a)}if(d!="conditional_filters"){jQuery("#wdi-conditional-filters-ui").addClass("wdi_hidden");jQuery("#wdi_save_feed_apply").removeClass("wdi_hidden");jQuery("#wdi_cancel_changes").removeClass("wdi_hidden");jQuery("#wdi_save_feed_submit").removeClass("wdi_hidden")}else{jQuery("#wdi-conditional-filters-ui").removeClass("wdi_hidden");jQuery("#wdi_save_feed_apply").addClass("wdi_hidden");jQuery("#wdi_cancel_changes").addClass("wdi_hidden");jQuery("#wdi_save_feed_submit").addClass("wdi_hidden")}};wdi_controller.displaySettingsSection=function(h){var d=h.attr("id").toLowerCase().trim();var g=h.parent().parent().attr("tab");var a=jQuery("#wdi_refresh_section");wdi_controller.oldDisplayType={section:d,tab:g};wdi_controller.displayTypeMemory[g]=wdi_controller.oldDisplayType;if(a!=undefined){a.attr("value",d)}var f=jQuery(".wdi_border_wrapper .form-table");jQuery("#wdi_feed_type").attr("value",d);var e=0,c=0;var b=false;f.find(".wdi_element").each(function(){e++;var j=jQuery(this).find(".wdwt_param").children().children().children().attr("section");if(j!==undefined){b=false;var k=j.toLowerCase().trim().split(",");for(c=0;c<k.length;c++){if(k[c]===d){jQuery(this).css("display","block");b=true}}if(b===false){jQuery(this).css("display","none")}}})};wdi_controller.switchThemeTabs=function(b,a){jQuery(".wdi_feed_tabs").filter(".wdi_feed_tab_active").each(function(){jQuery(this).removeClass("wdi_feed_tab_active")});jQuery("#wdi_"+b).addClass("wdi_feed_tab_active");jQuery("[tab]").each(function(){if(jQuery(this).attr("tab")!=b){jQuery(this).parent().parent().parent().parent().parent().filter("tr").css("display","none")}else{jQuery(this).parent().parent().parent().parent().parent().filter("tr").css("display","block")}});jQuery(".display_type").css("display","none");jQuery('.display_type[tab="'+b+'"]').css("display","block");jQuery("#wdi_refresh_tab").attr("value",b);if(a!=undefined&&a!=""){jQuery("#wdi_refresh_section").attr("value",a)}if(a==undefined&&a!=""){if(wdi_controller.displayTypeMemory[b]!=undefined){jQuery(".display_type #"+wdi_controller.displayTypeMemory[b]["section"]).trigger("click")}else{jQuery('.display_type[tab="'+b+'"]').first().find("input").trigger("click")}}else{jQuery(".display_type #"+a).trigger("click")}};wdi_controller.bindSaveFeedEvent=function(){var a=this;jQuery("#wdi_save_feed_submit").on("click",function(){a.save_feed("save_feed")});jQuery("#wdi_save_feed_apply").on("click",function(){a.save_feed("apply_changes")});jQuery("#wdi_cancel_changes").on("click",function(){a.save_feed("cancel")})};wdi_controller.save_feed=function(d){if("cancel"==d){window.location=window.location.href}wdi_controller.checkIfUserNotSaved(d);if(wdi_controller.waitingAjaxRequestEnd.button!=0){return}jQuery("#task").attr("value",d);var a=this.feed_users,b,c,f,j,h,e={username:jQuery("#wdi_default_user").val(),id:jQuery("#wdi_default_user_id").val()};if(a.length==0){a.push(e);this.updateFeaturedImageSelect(e.username,"add","selected")}b=this.stringifyUserData(a);jQuery("#WDI_feed_users").val(b);if(d=="apply_changes"||d=="save_feed"){c=jQuery("#wdi_add_or_edit").attr("value");jQuery("#wdi_current_id").attr("value",c)}f=jQuery("#WDI_thumb_user").val();h=this.getUserProfilePic(f);if("false"==h||typeof h=="undefined"){var g=this;this.instagram.searchForUsersByName(f,{success:function(m){var l=g.isValidResponse(m),k=g.findUser(f,m),n;if(l.valid&&g.hasData(m)&&k){n=k.profile_picture}else{n=""}jQuery("#wdi_feed_thumb").attr("value",n);jQuery("#wdi_save_feed").submit()}})}else{jQuery("#wdi_feed_thumb").attr("value",h);jQuery("#wdi_save_feed").submit()}};wdi_controller.makeInstagramUserRequest=function(b,f){var a,c,g=this,d;c=this.getInputType(b);if(wdi_version.is_pro=="false"){if(jQuery(".wdi_user").length==1){alert(wdi_messages.only_one_user_or_hashtag);return}}switch(c){case"user":this.instagram.searchForUsersByName(b,{success:function(k){var j=g.isValidResponse(k);if(j.valid==false){alert(j.msg);return}var h=g.findUser(b,k);if(j.valid&&g.hasData(k)&&h){g.addUser(h);if(wdi_version.is_pro=="false"){if(jQuery(".wdi_user").length==1){jQuery("#wdi_add_user_ajax_input").attr("disabled","disabled");jQuery("#wdi_add_user_ajax_input").attr("placeholder",wdi_messages.available_in_pro)}}}else{if(!h){alert(wdi_messages.user_not_exist.replace("%s",'"'+b+'"'))}else{alert(j.msg)}}}});break;case"hashtag":var e=b.substr(1,b.length);e=e.replace(" ","");this.instagram.getTagRecentMedia(e,{success:function(j){var h=g.isValidResponse(j);if(h.valid&&g.hasData(j)){g.addHashtag(e,j);if(wdi_version.is_pro=="false"){if(jQuery(".wdi_user").length==1){jQuery("#wdi_add_user_ajax_input").attr("disabled","disabled");jQuery("#wdi_add_user_ajax_input").attr("placeholder",wdi_messages.available_in_pro)}}}else{if(!g.hasData(j)&&h.msg=="success"){if(f!=true){if(confirm(wdi_messages.hashtag_no_data)){g.addHashtag(e,j);if(wdi_version.is_pro=="false"){if(jQuery(".wdi_user").length==1){jQuery("#wdi_add_user_ajax_input").attr("disabled","disabled");jQuery("#wdi_add_user_ajax_input").attr("placeholder",wdi_messages.available_in_pro)}}}else{jQuery("#wdi_add_user_ajax_input").val("")}}else{g.addHashtag(e,j);if(wdi_version.is_pro=="false"){if(jQuery(".wdi_user").length==1){jQuery("#wdi_add_user_ajax_input").attr("disabled","disabled");jQuery("#wdi_add_user_ajax_input").attr("placeholder",wdi_messages.available_in_pro)}}}}else{alert(h.msg)}}}});break}};wdi_controller.checkForDuplicateUser=function(b){for(var a=0;a<this.feed_users.length;a++){if(b==this.feed_users[a]["username"]){return true}}return false};wdi_controller.getInputType=function(a){switch(a[0]){case"#":return"hashtag";break;case"%":return"location";break;default:return"user";break}};wdi_controller.stringifyUserData=function(a){var c=[];for(var b=0;b<a.length;b++){c.push({username:a[b]["username"],id:a[b]["id"]})}return JSON.stringify(c)};wdi_controller.bindAddNewUserOrHashtagEvent=function(){jQuery("#wdi_add_user_ajax").on("click",function(){var a=jQuery("#wdi_add_user_ajax_input").val().trim().toLowerCase();wdi_controller.makeInstagramUserRequest(a)});jQuery("#wdi_add_user_ajax_input").on("keypress",function(b){if(b.keyCode==13){var a=jQuery("#wdi_add_user_ajax_input").val().trim().toLowerCase();wdi_controller.makeInstagramUserRequest(a);return false}})};wdi_controller.removeFeedUser=function(b){var c=b.parent().find("a span").text();if(b.parent().find("a span").hasClass("wdi_hashtag")){c="#"+c}for(var a=0;a<this.feed_users.length;a++){if(this.feed_users[a]["username"]==c){this.feed_users.splice(a,1);break}}b.parent().remove();if(c!==jQuery("#wdi_default_user").val()){wdi_controller.updateFeaturedImageSelect(c,"remove")}if(wdi_version.is_pro=="false"){if(jQuery(".wdi_user").length==0){jQuery("#wdi_add_user_ajax_input").removeAttr("disabled");jQuery("#wdi_add_user_ajax_input").attr("placeholder","")}}};wdi_controller.updateFeaturedImageSelect=function(f,e,d){var a=jQuery("#WDI_thumb_user");if(d!="selected"){d=""}switch(e){case"add":var b=a.find('option[value="'+f+'"]').length;if(!b){var c=jQuery("<option "+d+' value="'+f+'">'+f+"</option>");a.append(c)}break;case"remove":a.find('option[value="'+f+'"]').remove();break}};wdi_controller.bindSaveThemeEvent=function(){jQuery("#wdi_save_theme_submit").on("click",function(){jQuery("#task").attr("value","save_feed");jQuery("#wdi_save_feed").submit()});jQuery("#wdi_save_theme_apply").on("click",function(){jQuery("#task").attr("value","apply_changes");var a=jQuery("#wdi_add_or_edit").attr("value");jQuery("#wdi_current_id").attr("value",a);jQuery("#wdi_save_feed").submit()});jQuery("#wdi_save_theme_reset").on("click",function(){jQuery("#task").attr("value","reset_changes");var a=jQuery("#wdi_add_or_edit").attr("value");jQuery("#wdi_current_id").attr("value",a);jQuery("#wdi_save_feed").submit()})};wdi_controller.checkIfUserNotSaved=function(b){switch(b){case"save_feed":b="submit";break;case"apply_changes":b="apply";break;case"reset_changes":b="reset";break}if(jQuery("#wdi_add_user_ajax_input").val().trim()!=""){var a=jQuery("#wdi_add_user_ajax_input").val().trim().toLowerCase();wdi_controller.waitingAjaxRequestEnd={button:b};wdi_controller.makeInstagramUserRequest(a);return 1}else{wdi_controller.waitingAjaxRequestEnd={button:0};return 0}};wdi_controller.saveFeedAfterAjaxWait=function(b){if(wdi_controller.waitingAjaxRequestEnd!=undefined){var a=wdi_controller.waitingAjaxRequestEnd.button;if(b&&a!=0){jQuery("#wdi_save_feed_"+a).trigger("click")}wdi_controller.waitingAjaxRequestEnd=undefined}};wdi_controller.getCookie=function(a){var b="; "+document.cookie;var c=b.split("; "+a+"=");if(c.length==2){return c.pop().split(";").shift()}};wdi_controller.isValidResponse=function(a){var b={};if(typeof a=="undefined"||typeof a.meta["code"]=="undefined"||a.meta["code"]!=200){b.valid=false;if(typeof a=="undefined"){b.msg=wdi_messages.instagram_server_error}else{if(a.meta["code"]!==200){b.msg=a.meta["error_message"]}else{b.msg=""}}}else{b.valid=true;b.msg="success"}return b};wdi_controller.hasData=function(a){if(typeof a!="undefined"&&typeof a.data!="undefined"&&a.data.length!=0){return true}else{return false}};wdi_controller.thumbUser=function(a){return(jQuery("#wdi_thumb_user").val()==a)?true:false};wdi_controller.findUser=function(d,a){var c=[];if(typeof a!="undefined"&&typeof a.data!="undefined"){c=a.data}for(var b=0;b<c.length;b++){if(c[b]["username"]==d){return c[b]}}return false};wdi_controller.addHashtag=function(e,c){if(e.match(/[~!@$%&*#^()<>?]/)==null){if(this.checkForDuplicateUser("#"+e)==false){var b=jQuery('<div class="wdi_user"><a target="_blank" href="https://instagram.com/explore/tags/'+e+'"><img class="wdi_profile_pic" src="'+wdi_url.plugin_url+'/images/hashtag.png"><span class="wdi_hashtag">'+e+'</span><i style="display:table-cell;width:25px;"></i></a><img class="wdi_remove_user" onclick="wdi_controller.removeFeedUser(jQuery(this))" src="'+wdi_url.plugin_url+'/images/delete_user.png"></div>');jQuery("#wdi_feed_users").append(b);jQuery("#wdi_add_user_ajax_input").attr("value","");var d;if(typeof c!="undefined"){d=(c.data.length!=0)?c.data[0]["images"]["thumbnail"]["url"]:""}else{d=""}this.feed_users.push({username:"#"+e,id:"#"+e,profile_picture:d});var a="#"+e;selected=this.thumbUser(a)?"selected":"";wdi_controller.updateFeaturedImageSelect(a,"add",selected)}else{alert("#"+e+" "+wdi_messages.already_added)}}else{alert(wdi_messages.invalid_hashtag)}this.updateConditionalFiltersUi();wdi_controller.saveFeedAfterAjaxWait(true)};wdi_controller.addUser=function(a){if(this.checkForDuplicateUser(a.username)==false){newUser=jQuery('<div class="wdi_user"><a target="_blank" href="http://www.instagram.com/'+a.username+'"><img class="wdi_profile_pic" src="'+a.profile_picture+'"><span class="wdi_username">'+a.username+'</span><i style="display:table-cell;width:25px;"></i></a><img class="wdi_remove_user" onclick="wdi_controller.removeFeedUser(jQuery(this))" src="'+wdi_url.plugin_url+'/images/delete_user.png"></div>');jQuery("#wdi_feed_users").append(newUser);jQuery("#wdi_add_user_ajax_input").attr("value","");this.feed_users.push({username:a.username,id:a.id,profile_picture:a.profile_picture})}else{alert(a.username+" "+wdi_messages.already_added)}selected=this.thumbUser(a.username)?"selected":"";this.updateFeaturedImageSelect(a.username,"add",selected);this.updateConditionalFiltersUi();wdi_controller.saveFeedAfterAjaxWait(true)};wdi_controller.getUserProfilePic=function(b){for(var a=0;a<this.feed_users.length;a++){if(b==this.feed_users[a]["username"]){return this.feed_users[a]["profile_picture"]}}return"false"};wdi_controller.conditionalFiltersTabInit=function(){this.setInitialFilters();this.updateFiltersUi();var b=this;jQuery("#wdi_add_filter").on("click",function(){b.addConditionalFilter();jQuery("#wdi_filter_input").val("")});jQuery(".wdi_filter_radio").on("click",function(){jQuery("#wdi_filter_input").trigger("focus")});jQuery("#wdi_filter_input").on("keypress",function(c){if(c.keyCode==13){b.addConditionalFilter();jQuery(this).val("");return false}});a();jQuery("#WDI_wrap_conditional_filter_enable input").on("change",function(){a()});function a(){switch(jQuery("#WDI_wrap_conditional_filter_enable input:checked").val()){case"0":jQuery("#WDI_conditional_filters").parent().parent().addClass("wdi_hidden");jQuery("#WDI_conditional_filter_type").parent().parent().parent().parent().parent().addClass("wdi_hidden");jQuery("#wdi_final_condition").addClass("wdi_hidden");jQuery("#WDI_filter_source").addClass("wdi_hidden");break;case"1":jQuery("#WDI_conditional_filters").parent().parent().removeClass("wdi_hidden");jQuery("#WDI_conditional_filter_type").parent().parent().parent().parent().parent().removeClass("wdi_hidden");jQuery("#wdi_final_condition").removeClass("wdi_hidden");jQuery("#WDI_filter_source").removeClass("wdi_hidden");break}}jQuery("#WDI_conditional_filter_type").on("change",function(){if(jQuery(this).val()=="none"){}else{jQuery("#WDI_conditional_filters").css("display","block")}jQuery(this).parent().find("label").css({"line-height":"24px",height:"24px",padding:"2px 5px",display:"inline-block","font-size":"15px",color:"black","font-weight":"500","-webkit-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","-o-user-select":"none","user-select":"none"});switch(jQuery(this).val()){case"AND":jQuery("#WDI_conditional_filters").css("display","block");jQuery(this).parent().find("label").html(wdi_messages.and_descr);break;case"OR":jQuery("#WDI_conditional_filters").css("display","block");jQuery(this).parent().find("label").html(wdi_messages.or_descr);break;case"NOR":jQuery("#WDI_conditional_filters").css("display","block");jQuery(this).parent().find("label").html(wdi_messages.nor_descr);break}wdi_controller.updateFiltersUi()});jQuery("#WDI_conditional_filter_type").trigger("change")};wdi_controller.addConditionalFilter=function(){var b=jQuery("#wdi_filter_input").val(),a=jQuery("#wdi_filter_type").val(),c={};if(b==""){return}b=b.trim();switch(a){case"username":if(b[0]=="@"){b=b.substr(1,b.length)}break;case"mention":if(b[0]=="@"){b=b.substr(1,b.length)}break;case"hashtag":if(b[0]=="#"){b=b.substr(1,b.length)}break;case"url":var d=/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i;if(!d.test(b)){alert(wdi_messages.invalid_url);return}break}c={filter_type:a,filter_by:b,id:this.randomId()};if(a!=null){if(!this.filterExists(c)){this.conditionalFilters.push(c);this.updateFiltersUi()}else{alert(b+" "+wdi_messages.already_added)}}else{alert(wdi_messages.selectConditionType)}};wdi_controller.filterExists=function(b){for(var a=0;a<this.conditionalFilters.length;a++){if(this.conditionalFilters[a].filter_type==b.filter_type&&this.conditionalFilters[a].filter_by==b.filter_by){return true}}return false};wdi_controller.updateFiltersUi=function(){var a=jQuery("#wdi_filters_ui").html("");for(var b=0;b<this.conditionalFilters.length;b++){if(b==0){if(this.conditionalFilters.length!=1){switch(jQuery("#WDI_conditional_filter_type").val()){case"AND":break;case"OR":a.append(jQuery('<span class="wdi_logic">'+wdi_messages.either+"</span>"));break;case"NOR":a.append(jQuery('<span class="wdi_logic">'+wdi_messages.neither+"</span>"));break}}else{switch(jQuery("#WDI_conditional_filter_type").val()){case"AND":break;case"OR":break;case"NOR":a.append(jQuery('<span class="wdi_logic">'+wdi_messages.not+"</span>"));break}}}var c;switch(jQuery("#WDI_conditional_filter_type").val()){case"AND":c=wdi_messages.and;break;case"OR":c=wdi_messages.or;break;case"NOR":c=wdi_messages.nor;break}if(b>=1){a.append(jQuery('<span class="wdi_logic">'+c+"</span>"))}a.append(this.createUiElement(this.conditionalFilters[b]))}this.updateFilterTextarea()};wdi_controller.createUiElement=function(b){var c;switch(b.filter_type){case"mention":c="@";break;case"hashtag":c="#";break;case"location":c="%";break;default:c="";break}var a=jQuery('<span data-id="'+b.id+'" class="wdi_filter_item wdi_filter_by_'+b.filter_type+'"></span>').html(c+b.filter_by+'<span onclick="wdi_controller.removeConditionalFilter(jQuery(this));" class="wdi_remove_filter">X</span>');return a};wdi_controller.randomId=function(){var c="";var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(var b=0;b<5;b++){c+=a.charAt(Math.floor(Math.random()*a.length))}return c};wdi_controller.removeConditionalFilter=function(b){var c=b.parent().attr("data-id");for(var a=0;a<this.conditionalFilters.length;a++){if(this.conditionalFilters[a]["id"]==c){this.conditionalFilters.splice(a,1)}}this.updateFiltersUi()};wdi_controller.updateFilterTextarea=function(){var a,b=this.conditionalFilters;a=JSON.stringify(b);jQuery("#wdi_conditional_filters_textarea").val(a)};wdi_controller.setInitialFilters=function(){var b=[],a=jQuery("#wdi_conditional_filters_textarea").val();if(this.isJsonString(a)){b=JSON.parse(a)}this.conditionalFilters=b};wdi_controller.updateConditionalFiltersUi=function(){wdi_controller.updateFilterSource()};wdi_controller.updateFilterSource=function(){if(jQuery('input[name="wdi_feed_settings[liked_feed]"]:checked').val()=="liked"){var a=jQuery("#wdi_filter_source").html("");var d="<div class='wdi_source_user'><span class='wdi_source_username'>Media I liked</span></div>";a.html(a.html()+d);return}var f=[],e,c;jQuery(".wdi_user").each(function(){if(jQuery(this).find(".wdi_username").length!=0){e=jQuery(this).find(".wdi_username").text()}else{e=jQuery(this).find(".wdi_hashtag").text()}c=jQuery(this).find("img").attr("src");f.push({username:e,image:c})});var a=jQuery("#wdi_filter_source").html("");for(var b=0;b<f.length;b++){var d="<div class='wdi_source_user'><span class='wdi_source_img'><img src='"+f[b].image+"'></span><span class='wdi_source_username'>"+f[b].username+"</span></div>";a.html(a.html()+d)}};wdi_controller.isJsonString=function(b){try{JSON.parse(b)}catch(a){return false}return true};function wdi_spider_select_value(a){a.focus();a.select()}function wdi_spider_set_input_value(b,a){if(a==="add"){if(jQuery("#wdi_access_token").attr("value")==""){alert("Please get your access token")}}if(document.getElementById(b)){document.getElementById(b).value=a}}function wdi_spider_form_submit(b,a){if(document.getElementById(a)){document.getElementById(a).submit()}if(b.preventDefault){b.preventDefault()}else{b.returnValue=false}}function wdi_spider_check_all_items(){wdi_spider_check_all_items_checkbox();jQuery("#check_all").trigger("click")}function wdi_spider_check_all_items_checkbox(){if(jQuery("#check_all_items").attr("checked")){jQuery("#check_all_items").attr("checked",false);jQuery("#draganddrop").hide()}else{var b=(parseInt(jQuery(".displaying-num").html())?parseInt(jQuery(".displaying-num").html()):0);var a=(jQuery('input[id^="check_pr_"]').length?parseInt(jQuery('input[id^="check_pr_"]').length):0);var c=a+b;jQuery("#check_all_items").attr("checked",true);if(c){jQuery("#draganddrop").html("<strong><p>Selected "+c+" item"+(c>1?"s":"")+".</p></strong>");jQuery("#draganddrop").show()}}}function wdi_spider_check_all(a){if(!jQuery(a).attr("checked")){jQuery("#check_all_items").attr("checked",false);jQuery("#draganddrop").hide()}}function wdi_spider_set_input_value(b,a){if(a==="add"){if(jQuery("#wdi_access_token").attr("value")==""){alert("Please get your access token")}}if(document.getElementById(b)){document.getElementById(b).value=a}};
|
1 |
+
jQuery(document).ready(function(){wdi_controller.bindSaveFeedEvent();wdi_controller.bindAddNewUserOrHashtagEvent();jQuery(".display_type input").on("click",function(){wdi_controller.displaySettingsSection(jQuery(this))});wdi_controller.conditionalFiltersTabInit();wdi_controller.bindSaveThemeEvent();jQuery("#wdi_add_user_ajax").after(jQuery("<br><label class='wdi_pro_only' for='wdi_add_user_ajax_input'>"+wdi_messages.username_hashtag_multiple+"</label>"));if(jQuery("body").hasClass("instagram-feed-wd_page_wdi_settings")){wdi_advanced_option_controller()}jQuery(".wdi_section_name").click(function(){b(jQuery(this))});b(false);function b(f){if(f===false){var d={wdi_layout_section:"show",wdi_media:"show",wdi_layout:"hide",wdi_advanced:"hide",wdi_lightbox_general:"show",wdi_lightbox_advanced:"hide",wdi_conditional_filters:"show",wdi_how_to_publish:"show"};var g=JSON.parse(localStorage.getItem("wdi_sections"));if(g===null||g===false){g=d;localStorage.setItem("wdi_sections",JSON.stringify(g))}for(i in g){var j=jQuery("#wdi_save_feed").find("[data-section_name='"+i+"']");a(g[i],j)}}else{var c=jQuery(f).data("section_name");var h=null;if(f.hasClass("wdi_section_open")){a("show",f);h="show"}else{if(f.hasClass("wdi_section_close")){a("hide",f);h="hide"}}if(h!=null){var e=JSON.parse(localStorage.getItem("wdi_sections"))||{};e[c]=h;localStorage.setItem("wdi_sections",JSON.stringify(e))}}}function a(e,d){if(e==="show"){var c=d.closest(".wdi_section").find(".wdi_elements");if(c.data("display")==="table"){c.css({display:"table"})}else{c.css({display:"block"})}d.css({"border-bottom":"1px solid #f1f1f1",margin:"0 auto 15px"});d.removeClass("wdi_section_open");d.addClass("wdi_section_close")}else{d.closest(".wdi_section").find(".wdi_elements").css({display:"none"});d.css({"border-bottom":"0px",margin:"0 auto 0px"});d.removeClass("wdi_section_close");d.addClass("wdi_section_open")}}});function wdi_advanced_option_controller(){var a=jQuery(jQuery("#wdi_user_id").closest("form").find(".form-table").get(1));a.addClass("wdi_advanced_option wdi_advanced_option_close");var b="<tr class='wdi_advanced_option_head'><th>ADVANCED OPTIONS</th><td><div class='wdi_advanced_option_icon'></div></td></tr>";$tr=jQuery(b);a.prepend($tr);$tr.on("click",function(){if(a.hasClass("wdi_advanced_option_open")){a.removeClass("wdi_advanced_option_open");a.addClass("wdi_advanced_option_close")}else{a.removeClass("wdi_advanced_option_close");a.addClass("wdi_advanced_option_open")}})}function wdi_controller(){}wdi_controller.getParameterByName=function(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var c=new RegExp("[\\?&]"+a+"=([^&#]*)"),b=c.exec(location.search);return b===null?"":decodeURIComponent(b[1].replace(/\+/g," "))};wdi_controller.apiRedirected=function(){var d=this.getParameterByName("access_token");var a=d.split(".");var b=/^[^\\\/&?><"']*$/;for(i=0;i<a.length;i++){if(a[i].match(b)===null){return}}var c=a.join(".");jQuery(document).ready(function(){jQuery("#wdi_access_token").attr("value",c)});wdi_controller.instagram.addToken(c);wdi_controller.getUserInfo(c)};wdi_controller.getUserInfo=function(a){this.instagram.getSelfInfo({success:function(b){jQuery("#wdi_user_name").attr("value",b.data["username"]);jQuery("#wdi_user_id").attr("value",b.data["id"]);jQuery(document).trigger("wdi_settings_filled")}})};wdi_controller.oldDisplayType={};wdi_controller.displayTypeMemory={};wdi_controller.switchFeedTabs=function(d,b){jQuery("#wdi_refresh_tab").attr("value",d);jQuery(".wdi_tab").hide();jQuery("#"+d+"_tab").show();jQuery(".display_type").css("display","none");jQuery('.display_type[tab="'+d+'"]').css("display","block");jQuery('.display_type[tab="'+d+'"]').css("display","block");if(!jQuery('.display_type[tab="'+d+'"]').length){jQuery(".display_type_content").hide()}else{jQuery(".display_type_content").show()}jQuery(".wdi_feed_tabs").filter(".wdi_feed_tab_active").each(function(){jQuery(this).removeClass("wdi_feed_tab_active")});jQuery("#wdi_"+d).addClass("wdi_feed_tab_active");var a=jQuery();var c=false;if(b!=undefined&&b!=""){a=jQuery(".display_type #"+b).prop("checked",true);jQuery("#wdi_feed_type").attr("value",b)}if(!c){a=jQuery('.display_type[tab="'+d+'"] input[name="feed_type"]:checked');if(a.length!=0){c=true}}if(!c){a=jQuery('.display_type[tab="'+d+'"] #thumbnails');if(a.length!=0){c=true;a.prop("checked",true);jQuery("#wdi_feed_type").attr("value","thumbnails")}}if(c){wdi_controller.displaySettingsSection(a)}if(d!="conditional_filters"){jQuery("#wdi-conditional-filters-ui").addClass("wdi_hidden")}else{jQuery("#wdi-conditional-filters-ui").removeClass("wdi_hidden")}};wdi_controller.displaySettingsSection=function(h){var d=h.attr("id").toLowerCase().trim();var g=h.parent().parent().attr("tab");var a=jQuery("#wdi_refresh_section");wdi_controller.oldDisplayType={section:d,tab:g};wdi_controller.displayTypeMemory[g]=wdi_controller.oldDisplayType;if(a!=undefined){a.attr("value",d)}var f=jQuery(".wdi_border_wrapper .form-table");jQuery("#wdi_feed_type").attr("value",d);var e=0,c=0;var b=false;f.find(".wdi_element").each(function(){e++;var j=jQuery(this).find(".wdwt_param").children().children().children().attr("section");if(j!==undefined){b=false;var k=j.toLowerCase().trim().split(",");for(c=0;c<k.length;c++){if(k[c]===d){jQuery(this).css("display","block");b=true}}if(b===false){jQuery(this).css("display","none")}}})};wdi_controller.switchThemeTabs=function(b,a){jQuery(".wdi_feed_tabs").filter(".wdi_feed_tab_active").each(function(){jQuery(this).removeClass("wdi_feed_tab_active")});jQuery("#wdi_"+b).addClass("wdi_feed_tab_active");jQuery("[tab]").each(function(){if(jQuery(this).attr("tab")!=b){jQuery(this).parent().parent().parent().parent().parent().filter("tr").css("display","none")}else{jQuery(this).parent().parent().parent().parent().parent().filter("tr").css("display","block")}});jQuery(".display_type").css("display","none");jQuery('.display_type[tab="'+b+'"]').css("display","block");jQuery("#wdi_refresh_tab").attr("value",b);if(a!=undefined&&a!=""){jQuery("#wdi_refresh_section").attr("value",a)}if(a==undefined&&a!=""){if(wdi_controller.displayTypeMemory[b]!=undefined){jQuery(".display_type #"+wdi_controller.displayTypeMemory[b]["section"]).trigger("click")}else{jQuery('.display_type[tab="'+b+'"]').first().find("input").trigger("click")}}else{jQuery(".display_type #"+a).trigger("click")}};wdi_controller.bindSaveFeedEvent=function(){var a=this;jQuery("#wdi_save_feed_submit").on("click",function(){a.save_feed("save_feed")});jQuery("#wdi_save_feed_apply").on("click",function(){a.save_feed("apply_changes")});jQuery("#wdi_cancel_changes").on("click",function(){a.save_feed("cancel")})};wdi_controller.save_feed=function(d){if("cancel"==d){window.location=window.location.href}wdi_controller.checkIfUserNotSaved(d);if(wdi_controller.waitingAjaxRequestEnd.button!=0){return}jQuery("#task").attr("value",d);var a=this.feed_users,b,c,f,j,h,e={username:jQuery("#wdi_default_user").val(),id:jQuery("#wdi_default_user_id").val()};if(a.length==0){a.push(e);this.updateFeaturedImageSelect(e.username,"add","selected")}b=this.stringifyUserData(a);jQuery("#WDI_feed_users").val(b);if(d=="apply_changes"||d=="save_feed"){c=jQuery("#wdi_add_or_edit").attr("value");jQuery("#wdi_current_id").attr("value",c)}f=jQuery("#WDI_thumb_user").val();h=this.getUserProfilePic(f);if("false"==h||typeof h=="undefined"){var g=this;this.instagram.searchForUsersByName(f,{success:function(m){var l=g.isValidResponse(m),k=g.findUser(f,m),n;if(l.valid&&g.hasData(m)&&k){n=k.profile_picture}else{n=""}jQuery("#wdi_feed_thumb").attr("value",n);jQuery("#wdi_save_feed").submit()}})}else{jQuery("#wdi_feed_thumb").attr("value",h);jQuery("#wdi_save_feed").submit()}};wdi_controller.makeInstagramUserRequest=function(b,f){var a,c,g=this,d;c=this.getInputType(b);if(wdi_version.is_pro=="false"){if(jQuery(".wdi_user").length==1){alert(wdi_messages.only_one_user_or_hashtag);return}}switch(c){case"user":this.instagram.searchForUsersByName(b,{success:function(k){var j=g.isValidResponse(k);if(j.valid==false){alert(j.msg);return}var h=g.findUser(b,k);if(j.valid&&g.hasData(k)&&h){g.addUser(h);if(wdi_version.is_pro=="false"){if(jQuery(".wdi_user").length==1){jQuery("#wdi_add_user_ajax_input").attr("disabled","disabled");jQuery("#wdi_add_user_ajax_input").attr("placeholder",wdi_messages.available_in_pro)}}}else{if(!h){alert(wdi_messages.user_not_exist.replace("%s",'"'+b+'"'))}else{alert(j.msg)}}}});break;case"hashtag":var e=b.substr(1,b.length);e=e.replace(" ","");this.instagram.getTagRecentMedia(e,{success:function(j){var h=g.isValidResponse(j);if(h.valid&&g.hasData(j)){g.addHashtag(e,j);if(wdi_version.is_pro=="false"){if(jQuery(".wdi_user").length==1){jQuery("#wdi_add_user_ajax_input").attr("disabled","disabled");jQuery("#wdi_add_user_ajax_input").attr("placeholder",wdi_messages.available_in_pro)}}}else{if(!g.hasData(j)&&h.msg=="success"){if(f!=true){if(confirm(wdi_messages.hashtag_no_data)){g.addHashtag(e,j);if(wdi_version.is_pro=="false"){if(jQuery(".wdi_user").length==1){jQuery("#wdi_add_user_ajax_input").attr("disabled","disabled");jQuery("#wdi_add_user_ajax_input").attr("placeholder",wdi_messages.available_in_pro)}}}else{jQuery("#wdi_add_user_ajax_input").val("")}}else{g.addHashtag(e,j);if(wdi_version.is_pro=="false"){if(jQuery(".wdi_user").length==1){jQuery("#wdi_add_user_ajax_input").attr("disabled","disabled");jQuery("#wdi_add_user_ajax_input").attr("placeholder",wdi_messages.available_in_pro)}}}}else{alert(h.msg)}}}});break}};wdi_controller.checkForDuplicateUser=function(b){for(var a=0;a<this.feed_users.length;a++){if(b==this.feed_users[a]["username"]){return true}}return false};wdi_controller.getInputType=function(a){switch(a[0]){case"#":return"hashtag";break;case"%":return"location";break;default:return"user";break}};wdi_controller.stringifyUserData=function(a){var c=[];for(var b=0;b<a.length;b++){c.push({username:a[b]["username"],id:a[b]["id"]})}return JSON.stringify(c)};wdi_controller.bindAddNewUserOrHashtagEvent=function(){jQuery("#wdi_add_user_ajax").on("click",function(){var a=jQuery("#wdi_add_user_ajax_input").val().trim().toLowerCase();wdi_controller.makeInstagramUserRequest(a)});jQuery("#wdi_add_user_ajax_input").on("keypress",function(b){if(b.keyCode==13){var a=jQuery("#wdi_add_user_ajax_input").val().trim().toLowerCase();wdi_controller.makeInstagramUserRequest(a);return false}})};wdi_controller.removeFeedUser=function(b){var c=b.parent().find("a span").text();if(b.parent().find("a span").hasClass("wdi_hashtag")){c="#"+c}for(var a=0;a<this.feed_users.length;a++){if(this.feed_users[a]["username"]==c){this.feed_users.splice(a,1);break}}b.parent().remove();if(c!==jQuery("#wdi_default_user").val()){wdi_controller.updateFeaturedImageSelect(c,"remove")}if(wdi_version.is_pro=="false"){if(jQuery(".wdi_user").length==0){jQuery("#wdi_add_user_ajax_input").removeAttr("disabled");jQuery("#wdi_add_user_ajax_input").attr("placeholder","")}}};wdi_controller.updateFeaturedImageSelect=function(f,e,d){var a=jQuery("#WDI_thumb_user");if(d!="selected"){d=""}switch(e){case"add":var b=a.find('option[value="'+f+'"]').length;if(!b){var c=jQuery("<option "+d+' value="'+f+'">'+f+"</option>");a.append(c)}break;case"remove":a.find('option[value="'+f+'"]').remove();if(this.feed_users.length>0){a.val(this.feed_users[0].username)}break}};wdi_controller.bindSaveThemeEvent=function(){jQuery("#wdi_save_theme_submit").on("click",function(){jQuery("#task").attr("value","save_feed");jQuery("#wdi_save_feed").submit()});jQuery("#wdi_save_theme_apply").on("click",function(){jQuery("#task").attr("value","apply_changes");var a=jQuery("#wdi_add_or_edit").attr("value");jQuery("#wdi_current_id").attr("value",a);jQuery("#wdi_save_feed").submit()});jQuery("#wdi_save_theme_reset").on("click",function(){jQuery("#task").attr("value","reset_changes");var a=jQuery("#wdi_add_or_edit").attr("value");jQuery("#wdi_current_id").attr("value",a);jQuery("#wdi_save_feed").submit()})};wdi_controller.checkIfUserNotSaved=function(b){switch(b){case"save_feed":b="submit";break;case"apply_changes":b="apply";break;case"reset_changes":b="reset";break}if(jQuery("#wdi_add_user_ajax_input").val().trim()!=""){var a=jQuery("#wdi_add_user_ajax_input").val().trim().toLowerCase();wdi_controller.waitingAjaxRequestEnd={button:b};wdi_controller.makeInstagramUserRequest(a);return 1}else{wdi_controller.waitingAjaxRequestEnd={button:0};return 0}};wdi_controller.saveFeedAfterAjaxWait=function(b){if(wdi_controller.waitingAjaxRequestEnd!=undefined){var a=wdi_controller.waitingAjaxRequestEnd.button;if(b&&a!=0){jQuery("#wdi_save_feed_"+a).trigger("click")}wdi_controller.waitingAjaxRequestEnd=undefined}};wdi_controller.getCookie=function(a){var b="; "+document.cookie;var c=b.split("; "+a+"=");if(c.length==2){return c.pop().split(";").shift()}};wdi_controller.isValidResponse=function(a){var b={};if(typeof a=="undefined"||typeof a.meta["code"]=="undefined"||a.meta["code"]!=200){b.valid=false;if(typeof a=="undefined"){b.msg=wdi_messages.instagram_server_error}else{if(a.meta["code"]!==200){b.msg=a.meta["error_message"]}else{b.msg=""}}}else{b.valid=true;b.msg="success"}return b};wdi_controller.hasData=function(a){if(typeof a!="undefined"&&typeof a.data!="undefined"&&a.data.length!=0){return true}else{return false}};wdi_controller.thumbUser=function(a){return(this.feed_users.length>0&&this.feed_users[0].username===a)};wdi_controller.findUser=function(d,a){var c=[];if(typeof a!="undefined"&&typeof a.data!="undefined"){c=a.data}for(var b=0;b<c.length;b++){if(c[b]["username"]==d){return c[b]}}return false};wdi_controller.addHashtag=function(e,c){if(e.match(/[~!@$%&*#^()<>?]/)==null){if(this.checkForDuplicateUser("#"+e)==false){var b=jQuery('<div class="wdi_user"><a target="_blank" href="https://instagram.com/explore/tags/'+e+'"><img class="wdi_profile_pic" src="'+wdi_url.plugin_url+'/images/hashtag.png"><span class="wdi_hashtag">'+e+'</span><i style="display:table-cell;width:25px;"></i></a><img class="wdi_remove_user" onclick="wdi_controller.removeFeedUser(jQuery(this))" src="'+wdi_url.plugin_url+'/images/delete_user.png"></div>');jQuery("#wdi_feed_users").append(b);jQuery("#wdi_add_user_ajax_input").attr("value","");var d;if(typeof c!="undefined"){d=(c.data.length!=0)?c.data[0]["images"]["thumbnail"]["url"]:""}else{d=""}this.feed_users.push({username:"#"+e,id:"#"+e,profile_picture:d});var a="#"+e;selected=this.thumbUser(a)?"selected":"";wdi_controller.updateFeaturedImageSelect(a,"add",selected)}else{alert("#"+e+" "+wdi_messages.already_added)}}else{alert(wdi_messages.invalid_hashtag)}this.updateConditionalFiltersUi();wdi_controller.saveFeedAfterAjaxWait(true)};wdi_controller.addUser=function(a){if(this.checkForDuplicateUser(a.username)==false){newUser=jQuery('<div class="wdi_user"><a target="_blank" href="http://www.instagram.com/'+a.username+'"><img class="wdi_profile_pic" src="'+a.profile_picture+'"><span class="wdi_username">'+a.username+'</span><i style="display:table-cell;width:25px;"></i></a><img class="wdi_remove_user" onclick="wdi_controller.removeFeedUser(jQuery(this))" src="'+wdi_url.plugin_url+'/images/delete_user.png"></div>');jQuery("#wdi_feed_users").append(newUser);jQuery("#wdi_add_user_ajax_input").attr("value","");this.feed_users.push({username:a.username,id:a.id,profile_picture:a.profile_picture})}else{alert(a.username+" "+wdi_messages.already_added)}selected=this.thumbUser(a.username)?"selected":"";this.updateFeaturedImageSelect(a.username,"add",selected);this.updateConditionalFiltersUi();wdi_controller.saveFeedAfterAjaxWait(true)};wdi_controller.getUserProfilePic=function(b){for(var a=0;a<this.feed_users.length;a++){if(b==this.feed_users[a]["username"]){return this.feed_users[a]["profile_picture"]}}return"false"};wdi_controller.conditionalFiltersTabInit=function(){this.setInitialFilters();this.updateFiltersUi();var b=this;jQuery("#wdi_add_filter").on("click",function(){b.addConditionalFilter();jQuery("#wdi_filter_input").val("")});jQuery(".wdi_filter_radio").on("click",function(){jQuery("#wdi_filter_input").trigger("focus")});jQuery("#wdi_filter_input").on("keypress",function(c){if(c.keyCode==13){b.addConditionalFilter();jQuery(this).val("");return false}});a();jQuery("#WDI_wrap_conditional_filter_enable input").on("change",function(){a()});function a(){switch(jQuery("#WDI_wrap_conditional_filter_enable input:checked").val()){case"0":jQuery("#WDI_conditional_filters").parent().parent().addClass("wdi_hidden");jQuery("#WDI_conditional_filter_type").parent().parent().parent().parent().parent().addClass("wdi_hidden");jQuery("#wdi_final_condition").addClass("wdi_hidden");jQuery("#WDI_filter_source").addClass("wdi_hidden");break;case"1":jQuery("#WDI_conditional_filters").parent().parent().removeClass("wdi_hidden");jQuery("#WDI_conditional_filter_type").parent().parent().parent().parent().parent().removeClass("wdi_hidden");jQuery("#wdi_final_condition").removeClass("wdi_hidden");jQuery("#WDI_filter_source").removeClass("wdi_hidden");break}}jQuery("#WDI_conditional_filter_type").on("change",function(){if(jQuery(this).val()=="none"){}else{jQuery("#WDI_conditional_filters").css("display","block")}jQuery(this).parent().find("label").css({"line-height":"24px",height:"24px",padding:"2px 5px",display:"inline-block","font-size":"15px",color:"black","font-weight":"500","-webkit-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","-o-user-select":"none","user-select":"none"});switch(jQuery(this).val()){case"AND":jQuery("#WDI_conditional_filters").css("display","block");jQuery(this).parent().find("label").html(wdi_messages.and_descr);break;case"OR":jQuery("#WDI_conditional_filters").css("display","block");jQuery(this).parent().find("label").html(wdi_messages.or_descr);break;case"NOR":jQuery("#WDI_conditional_filters").css("display","block");jQuery(this).parent().find("label").html(wdi_messages.nor_descr);break}wdi_controller.updateFiltersUi()});jQuery("#WDI_conditional_filter_type").trigger("change")};wdi_controller.addConditionalFilter=function(){var b=jQuery("#wdi_filter_input").val(),a=jQuery("#wdi_filter_type").val(),c={};if(b==""){return}b=b.trim();switch(a){case"username":if(b[0]=="@"){b=b.substr(1,b.length)}break;case"mention":if(b[0]=="@"){b=b.substr(1,b.length)}break;case"hashtag":if(b[0]=="#"){b=b.substr(1,b.length)}break;case"url":var d=/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i;if(!d.test(b)){alert(wdi_messages.invalid_url);return}break}c={filter_type:a,filter_by:b,id:this.randomId()};if(a!=null){if(!this.filterExists(c)){this.conditionalFilters.push(c);this.updateFiltersUi()}else{alert(b+" "+wdi_messages.already_added)}}else{alert(wdi_messages.selectConditionType)}};wdi_controller.filterExists=function(b){for(var a=0;a<this.conditionalFilters.length;a++){if(this.conditionalFilters[a].filter_type==b.filter_type&&this.conditionalFilters[a].filter_by==b.filter_by){return true}}return false};wdi_controller.updateFiltersUi=function(){var a=jQuery("#wdi_filters_ui").html("");for(var b=0;b<this.conditionalFilters.length;b++){if(b==0){if(this.conditionalFilters.length!=1){switch(jQuery("#WDI_conditional_filter_type").val()){case"AND":break;case"OR":a.append(jQuery('<span class="wdi_logic">'+wdi_messages.either+"</span>"));break;case"NOR":a.append(jQuery('<span class="wdi_logic">'+wdi_messages.neither+"</span>"));break}}else{switch(jQuery("#WDI_conditional_filter_type").val()){case"AND":break;case"OR":break;case"NOR":a.append(jQuery('<span class="wdi_logic">'+wdi_messages.not+"</span>"));break}}}var c;switch(jQuery("#WDI_conditional_filter_type").val()){case"AND":c=wdi_messages.and;break;case"OR":c=wdi_messages.or;break;case"NOR":c=wdi_messages.nor;break}if(b>=1){a.append(jQuery('<span class="wdi_logic">'+c+"</span>"))}a.append(this.createUiElement(this.conditionalFilters[b]))}this.updateFilterTextarea()};wdi_controller.createUiElement=function(b){var c;switch(b.filter_type){case"mention":c="@";break;case"hashtag":c="#";break;case"location":c="%";break;default:c="";break}var a=jQuery('<span data-id="'+b.id+'" class="wdi_filter_item wdi_filter_by_'+b.filter_type+'"></span>').html(c+b.filter_by+'<span onclick="wdi_controller.removeConditionalFilter(jQuery(this));" class="wdi_remove_filter">X</span>');return a};wdi_controller.randomId=function(){var c="";var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(var b=0;b<5;b++){c+=a.charAt(Math.floor(Math.random()*a.length))}return c};wdi_controller.removeConditionalFilter=function(b){var c=b.parent().attr("data-id");for(var a=0;a<this.conditionalFilters.length;a++){if(this.conditionalFilters[a]["id"]==c){this.conditionalFilters.splice(a,1)}}this.updateFiltersUi()};wdi_controller.updateFilterTextarea=function(){var a,b=this.conditionalFilters;a=JSON.stringify(b);jQuery("#wdi_conditional_filters_textarea").val(a)};wdi_controller.setInitialFilters=function(){var b=[],a=jQuery("#wdi_conditional_filters_textarea").val();if(this.isJsonString(a)){b=JSON.parse(a)}this.conditionalFilters=b};wdi_controller.updateConditionalFiltersUi=function(){wdi_controller.updateFilterSource()};wdi_controller.updateFilterSource=function(){if(jQuery('input[name="wdi_feed_settings[liked_feed]"]:checked').val()=="liked"){var a=jQuery("#wdi_filter_source").html("");var d="<div class='wdi_source_user'><span class='wdi_source_username'>Media I liked</span></div>";a.html(a.html()+d);return}var f=[],e,c;jQuery(".wdi_user").each(function(){if(jQuery(this).find(".wdi_username").length!=0){e=jQuery(this).find(".wdi_username").text()}else{e=jQuery(this).find(".wdi_hashtag").text()}c=jQuery(this).find("img").attr("src");f.push({username:e,image:c})});var a=jQuery("#wdi_filter_source").html("");for(var b=0;b<f.length;b++){var d="<div class='wdi_source_user'><span class='wdi_source_img'><img src='"+f[b].image+"'></span><span class='wdi_source_username'>"+f[b].username+"</span></div>";a.html(a.html()+d)}};wdi_controller.isJsonString=function(b){try{JSON.parse(b)}catch(a){return false}return true};function wdi_spider_select_value(a){a.focus();a.select()}function wdi_spider_set_input_value(b,a){if(a==="add"){if(jQuery("#wdi_access_token").attr("value")==""){alert("Please get your access token")}}if(document.getElementById(b)){document.getElementById(b).value=a}}function wdi_spider_form_submit(b,a){if(document.getElementById(a)){document.getElementById(a).submit()}if(b.preventDefault){b.preventDefault()}else{b.returnValue=false}}function wdi_spider_check_all_items(){wdi_spider_check_all_items_checkbox();jQuery("#check_all").trigger("click")}function wdi_spider_check_all_items_checkbox(){if(jQuery("#check_all_items").attr("checked")){jQuery("#check_all_items").attr("checked",false);jQuery("#draganddrop").hide()}else{var b=(parseInt(jQuery(".displaying-num").html())?parseInt(jQuery(".displaying-num").html()):0);var a=(jQuery('input[id^="check_pr_"]').length?parseInt(jQuery('input[id^="check_pr_"]').length):0);var c=a+b;jQuery("#check_all_items").attr("checked",true);if(c){jQuery("#draganddrop").html("<strong><p>Selected "+c+" item"+(c>1?"s":"")+".</p></strong>");jQuery("#draganddrop").show()}}}function wdi_spider_check_all(a){if(!jQuery(a).attr("checked")){jQuery("#check_all_items").attr("checked",false);jQuery("#draganddrop").hide()}}function wdi_spider_set_input_value(b,a){if(a==="add"){if(jQuery("#wdi_access_token").attr("value")==""){alert("Please get your access token")}}if(document.getElementById(b)){document.getElementById(b).value=a}};
|
js/wdi_frontend.js
CHANGED
@@ -21,9 +21,20 @@ var wdi_error_show = false;
|
|
21 |
|
22 |
wdi_front.show_alert = function (message, response, wdi_current_feed)
|
23 |
{
|
24 |
-
|
25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
|
|
|
|
|
27 |
wdi_current_feed.find(".wdi_spinner").remove();
|
28 |
/* if(wdi_error_show){
|
29 |
return;
|
@@ -80,11 +91,12 @@ wdi_front.globalInit = function ()
|
|
80 |
}
|
81 |
for (var i = init_feed_counter; i <= num; i++) {
|
82 |
|
83 |
-
|
|
|
84 |
continue;
|
85 |
}
|
86 |
|
87 |
-
|
88 |
|
89 |
/*initializing instagram object which will handle all instagram api requests*/
|
90 |
currentFeed.instagram = new WDIInstagram();
|
@@ -217,7 +229,7 @@ wdi_front.globalInit = function ()
|
|
217 |
//initializing function for lightbox
|
218 |
currentFeed.galleryBox = function (image_id)
|
219 |
{
|
220 |
-
wdi_spider_createpopup(wdi_url.ajax_url + '?gallery_id=' + this.feed_row['id'] + '&image_id=' + image_id,
|
221 |
}
|
222 |
//calling responive javascript
|
223 |
wdi_responsive.columnControl(currentFeed);
|
@@ -419,6 +431,7 @@ wdi_front.instagramRequest = function (id, currentFeed)
|
|
419 |
{
|
420 |
|
421 |
if(typeof response.meta!= "undefined" && typeof response.meta.error_type != "undefined"){
|
|
|
422 |
wdi_front.show_alert(false, response, currentFeed);
|
423 |
}
|
424 |
currentFeed.mediaRequestsDone = true;
|
@@ -573,6 +586,9 @@ wdi_front.userHasNoPhoto = function (currentFeed, cstData)
|
|
573 |
data = cstData;
|
574 |
}
|
575 |
for (var i = 0; i < data.length; i++) {
|
|
|
|
|
|
|
576 |
if (currentFeed.feed_row.liked_feed === 'liked') {
|
577 |
if (typeof data[i]['pagination']['next_max_like_id'] == 'undefined') {
|
578 |
counter++
|
@@ -730,7 +746,7 @@ wdi_front.updateUsersImages = function (currentFeed)
|
|
730 |
var elements = jQuery('#wdi_feed_' + currentFeed.feed_row.wdi_feed_counter).find('.wdi_single_user .wdi_user_img_wrap img');
|
731 |
elements.each(function ()
|
732 |
{
|
733 |
-
if (jQuery(this).attr('src') == wdi_url.plugin_url + '
|
734 |
//console.log('missing');
|
735 |
|
736 |
if (currentFeed.feed_row.liked_feed == 'liked') {
|
@@ -981,7 +997,11 @@ wdi_front.displayFeedItems = function (data, currentFeed)
|
|
981 |
* also do the same thing when recievied data has lenght equal to zero
|
982 |
*/
|
983 |
if (currentFeed.feed_row.feed_display_view == 'pagination') {
|
984 |
-
|
|
|
|
|
|
|
|
|
985 |
currentFeed.currentPage = (--currentFeed.currentPage <= 1) ? 1 : currentFeed.currentPage;
|
986 |
}
|
987 |
}
|
@@ -2276,7 +2296,7 @@ wdi_front.mergeData = function (array1, array2)
|
|
2276 |
//broken image handling
|
2277 |
wdi_front.brokenImageHandler = function (source)
|
2278 |
{
|
2279 |
-
source.src = wdi_url.plugin_url + "
|
2280 |
source.onerror = "";
|
2281 |
return true;
|
2282 |
|
@@ -2297,7 +2317,7 @@ wdi_front.ajaxLoader = function (currentFeed)
|
|
2297 |
if (currentFeed.feed_row.feed_display_view == 'infinite_scroll') {
|
2298 |
var loadingDiv;
|
2299 |
if (feed_container.find('.wdi_ajax_loading').length == 0) {
|
2300 |
-
loadingDiv = jQuery('<div class="wdi_ajax_loading"><div><div><img class="wdi_load_more_spinner" src="' + wdi_url.plugin_url + '
|
2301 |
feed_container.append(loadingDiv);
|
2302 |
} else {
|
2303 |
loadingDiv = feed_container.find('.wdi_ajax_loading');
|
@@ -2320,7 +2340,6 @@ wdi_front.allImagesLoaded = function (currentFeed)
|
|
2320 |
////////////////////////////////////////////////////
|
2321 |
var dataLength = wdi_front.getDataLength(currentFeed);
|
2322 |
/*if there was no request for media, we do not know yet of feed data has been finished or not*/
|
2323 |
-
|
2324 |
if(! currentFeed.mediaRequestsDone){
|
2325 |
jQuery('#wdi_feed_' + currentFeed.feed_row.wdi_feed_counter + " .wdi_feed_wrapper").remove("wdi_nomedia");
|
2326 |
}
|
@@ -2415,7 +2434,15 @@ wdi_front.show = function (name, currentFeed)
|
|
2415 |
wdi_front.show_alert(false, response, currentFeed);
|
2416 |
}
|
2417 |
response = _this.checkMediaResponse(response, currentFeed);
|
2418 |
-
if
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2419 |
var obj = {
|
2420 |
id: response['data']['id'],
|
2421 |
name: response['data']['username'],
|
@@ -2481,7 +2508,15 @@ wdi_front.show = function (name, currentFeed)
|
|
2481 |
wdi_front.show_alert(false, response, currentFeed);
|
2482 |
}
|
2483 |
response = _this.checkMediaResponse(response, currentFeed);
|
2484 |
-
if
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2485 |
var obj = {
|
2486 |
id: response['data']['id'],
|
2487 |
name: response['data']['username'],
|
@@ -2510,6 +2545,9 @@ wdi_front.show = function (name, currentFeed)
|
|
2510 |
feed_container.find('.wdi_feed_users').html('');
|
2511 |
for (var k = 0; k < info.length; k++) {
|
2512 |
//setting all user filters to false
|
|
|
|
|
|
|
2513 |
|
2514 |
var userFilter = {
|
2515 |
'flag': false,
|
@@ -2898,12 +2936,13 @@ wdi_front.activeUsersCount = function (currentFeed)
|
|
2898 |
wdi_front.checkMediaResponse = function (response,currentFeed)
|
2899 |
{
|
2900 |
|
2901 |
-
if (response
|
2902 |
-
|
2903 |
-
wdi_front.show_alert(errorMessage, response, currentFeed);
|
2904 |
-
return false;
|
2905 |
}
|
2906 |
-
|
|
|
|
|
|
|
2907 |
errorMessage = response['meta']['error_message'];
|
2908 |
wdi_front.show_alert(errorMessage, response, currentFeed);
|
2909 |
return false;
|
21 |
|
22 |
wdi_front.show_alert = function (message, response, wdi_current_feed)
|
23 |
{
|
24 |
+
wdi_current_feed = jQuery('#wdi_feed_' + wdi_current_feed.feed_row.wdi_feed_counter);
|
25 |
+
if(response["meta"]["code"] === 400 && response["meta"]["error_type"] === "APINotAllowedError"){
|
26 |
+
if(typeof response.wdi_current_feed_name != "undefined"){
|
27 |
+
var wdi_private_user_name = response.wdi_current_feed_name;
|
28 |
+
var wdi_private_feed_names = wdi_current_feed.find(".wdi_private_feed_names");
|
29 |
+
wdi_private_feed_names.html(wdi_private_user_name);
|
30 |
+
wdi_current_feed.find(".wdi_private_feed_error").removeClass("wdi_hidden");
|
31 |
+
}
|
32 |
+
wdi_current_feed.find(".wdi_spinner").remove();
|
33 |
+
|
34 |
+
}
|
35 |
|
36 |
+
|
37 |
+
if(typeof wdi_current_feed != "undefined" && response["meta"]["error_type"] != "APINotAllowedError"){
|
38 |
wdi_current_feed.find(".wdi_spinner").remove();
|
39 |
/* if(wdi_error_show){
|
40 |
return;
|
91 |
}
|
92 |
for (var i = init_feed_counter; i <= num; i++) {
|
93 |
|
94 |
+
|
95 |
+
if (jQuery('#wdi_feed_' + i).length === 0) {//conflict with Yoast SEO,Page Builder by SiteOrigin
|
96 |
continue;
|
97 |
}
|
98 |
|
99 |
+
var currentFeed = new WDIFeed(window['wdi_feed_' + i]);
|
100 |
|
101 |
/*initializing instagram object which will handle all instagram api requests*/
|
102 |
currentFeed.instagram = new WDIInstagram();
|
229 |
//initializing function for lightbox
|
230 |
currentFeed.galleryBox = function (image_id)
|
231 |
{
|
232 |
+
wdi_spider_createpopup(wdi_url.ajax_url + '?gallery_id=' + this.feed_row['id'] + '&image_id=' + image_id, this.feed_row.wdi_feed_counter, this.feed_row['lightbox_width'], this.feed_row['lightbox_height'], 1, 'testpopup', 5, this);
|
233 |
}
|
234 |
//calling responive javascript
|
235 |
wdi_responsive.columnControl(currentFeed);
|
431 |
{
|
432 |
|
433 |
if(typeof response.meta!= "undefined" && typeof response.meta.error_type != "undefined"){
|
434 |
+
response.wdi_current_feed_name = feed_users[id].username;
|
435 |
wdi_front.show_alert(false, response, currentFeed);
|
436 |
}
|
437 |
currentFeed.mediaRequestsDone = true;
|
586 |
data = cstData;
|
587 |
}
|
588 |
for (var i = 0; i < data.length; i++) {
|
589 |
+
if(typeof data[i]['pagination'] == 'undefined'){
|
590 |
+
data[i]['pagination'] = [];
|
591 |
+
}
|
592 |
if (currentFeed.feed_row.liked_feed === 'liked') {
|
593 |
if (typeof data[i]['pagination']['next_max_like_id'] == 'undefined') {
|
594 |
counter++
|
746 |
var elements = jQuery('#wdi_feed_' + currentFeed.feed_row.wdi_feed_counter).find('.wdi_single_user .wdi_user_img_wrap img');
|
747 |
elements.each(function ()
|
748 |
{
|
749 |
+
if (jQuery(this).attr('src') == wdi_url.plugin_url + 'images/missing.png' || jQuery(this).attr('src') == '') {
|
750 |
//console.log('missing');
|
751 |
|
752 |
if (currentFeed.feed_row.liked_feed == 'liked') {
|
997 |
* also do the same thing when recievied data has lenght equal to zero
|
998 |
*/
|
999 |
if (currentFeed.feed_row.feed_display_view == 'pagination') {
|
1000 |
+
var local_load_more_number = currentFeed.feed_row.load_more_number;
|
1001 |
+
if(currentFeed.feed_row.feed_type == "image_browser"){
|
1002 |
+
local_load_more_number = 1;
|
1003 |
+
}
|
1004 |
+
if (jQuery('#wdi_feed_' + currentFeed.feed_row.wdi_feed_counter + ' [wdi_page="' + (currentFeed.currentPage - 1) + '"]').length < local_load_more_number || data.length == 0) {
|
1005 |
currentFeed.currentPage = (--currentFeed.currentPage <= 1) ? 1 : currentFeed.currentPage;
|
1006 |
}
|
1007 |
}
|
2296 |
//broken image handling
|
2297 |
wdi_front.brokenImageHandler = function (source)
|
2298 |
{
|
2299 |
+
source.src = wdi_url.plugin_url + "images/missing.png";
|
2300 |
source.onerror = "";
|
2301 |
return true;
|
2302 |
|
2317 |
if (currentFeed.feed_row.feed_display_view == 'infinite_scroll') {
|
2318 |
var loadingDiv;
|
2319 |
if (feed_container.find('.wdi_ajax_loading').length == 0) {
|
2320 |
+
loadingDiv = jQuery('<div class="wdi_ajax_loading"><div><div><img class="wdi_load_more_spinner" src="' + wdi_url.plugin_url + 'images/ajax_loader.png"></div></div></div>');
|
2321 |
feed_container.append(loadingDiv);
|
2322 |
} else {
|
2323 |
loadingDiv = feed_container.find('.wdi_ajax_loading');
|
2340 |
////////////////////////////////////////////////////
|
2341 |
var dataLength = wdi_front.getDataLength(currentFeed);
|
2342 |
/*if there was no request for media, we do not know yet of feed data has been finished or not*/
|
|
|
2343 |
if(! currentFeed.mediaRequestsDone){
|
2344 |
jQuery('#wdi_feed_' + currentFeed.feed_row.wdi_feed_counter + " .wdi_feed_wrapper").remove("wdi_nomedia");
|
2345 |
}
|
2434 |
wdi_front.show_alert(false, response, currentFeed);
|
2435 |
}
|
2436 |
response = _this.checkMediaResponse(response, currentFeed);
|
2437 |
+
if(response != false && response["meta"]["code"] === 400 && response["meta"]["error_type"] === "APINotAllowedError"){
|
2438 |
+
var obj = null;
|
2439 |
+
currentFeed.headerUserinfo.push(obj);
|
2440 |
+
i++;
|
2441 |
+
getThumb();
|
2442 |
+
}
|
2443 |
+
|
2444 |
+
if (response != false && response["meta"]["code"] === 200) {
|
2445 |
+
|
2446 |
var obj = {
|
2447 |
id: response['data']['id'],
|
2448 |
name: response['data']['username'],
|
2508 |
wdi_front.show_alert(false, response, currentFeed);
|
2509 |
}
|
2510 |
response = _this.checkMediaResponse(response, currentFeed);
|
2511 |
+
if(response != false && response["meta"]["code"] === 400 && response["meta"]["error_type"] === "APINotAllowedError"){
|
2512 |
+
var obj = null;
|
2513 |
+
currentFeed.headerUserinfo.push(obj);
|
2514 |
+
i++;
|
2515 |
+
getThumb();
|
2516 |
+
}
|
2517 |
+
|
2518 |
+
if (response != false && response["meta"]["code"] === 200) {
|
2519 |
+
|
2520 |
var obj = {
|
2521 |
id: response['data']['id'],
|
2522 |
name: response['data']['username'],
|
2545 |
feed_container.find('.wdi_feed_users').html('');
|
2546 |
for (var k = 0; k < info.length; k++) {
|
2547 |
//setting all user filters to false
|
2548 |
+
if(info[k]=== null){
|
2549 |
+
continue;
|
2550 |
+
}
|
2551 |
|
2552 |
var userFilter = {
|
2553 |
'flag': false,
|
2936 |
wdi_front.checkMediaResponse = function (response,currentFeed)
|
2937 |
{
|
2938 |
|
2939 |
+
if (response != '' && typeof response != 'undefined' && response != null && response['meta']['code'] === 400 && response['meta']['error_type'] === "APINotAllowedError") {
|
2940 |
+
return response;
|
|
|
|
|
2941 |
}
|
2942 |
+
|
2943 |
+
|
2944 |
+
if (response == '' || typeof response == 'undefined' || response == null) {
|
2945 |
+
|
2946 |
errorMessage = response['meta']['error_message'];
|
2947 |
wdi_front.show_alert(errorMessage, response, currentFeed);
|
2948 |
return false;
|
js/wdi_frontend.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
if(typeof wdi_front=="undefined"){wdi_front={type:"not_declared"}}wdi_front.detectEvent=function(){var a=(/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));if(a){return"touchend"}else{return"click"}};var wdi_error_show=false;wdi_front.show_alert=function(c,a,d){if(typeof d!="undefined"){d=jQuery("#wdi_feed_"+d.feed_row.wdi_feed_counter);d.find(".wdi_spinner").remove();wdi_error_show=true;var b=d.find(".wdi_js_error");var e=d.find(".wdi_token_error");if(a!=false&&typeof a.meta!=undefined&&a.meta.error_type==="OAuthAccessTokenException"){e.removeClass("wdi_hidden");if(wdi_front_messages.wdi_token_error_flag!="1"){jQuery.ajax({type:"POST",url:wdi_url.ajax_url,dataType:"json",data:{action:"wdi_token_flag",wdi_token_flag_nonce:wdi_front_messages.wdi_token_flag_nonce},success:function(f){}})}}else{b.removeClass("wdi_js_error");b.addClass("wdi_js_error_no_animate");jQuery(".wdi_js_error_no_animate").show()}if(wdi_front_messages.show_alerts){}else{console.log("%c"+c,"color:#cc0000;")}}wdi_error_show=true};wdi_front.globalInit=function(){var a=wdi_front.feed_counter;if(typeof wdi_ajax.ajax_response!="undefined"){var c=wdi_feed_counter_init.wdi_feed_counter_init}else{var c=0}for(var b=c;b<=a;b++){if(jQuery("#wdi_feed_"+b).length===0){continue}var d=new WDIFeed(window["wdi_feed_"+b]);d.instagram=new WDIInstagram();d.instagram.filterArguments={feed:d};d.instagram.filters=[{where:"getUserRecentMedia",what:function(f,g,e){return g.feed.conditionalFilter(f,e)}},{where:"getTagRecentMedia",what:function(f,g,e){return g.feed.conditionalFilter(f,e)}},{where:"getRecentLikedMedia",what:function(f,g,e){return g.feed.conditionalFilter(f,e)}},{where:"requestByUrl",what:function(f,g,e){return g.feed.conditionalFilter(f,e)}}];d.instagram.addToken(d.feed_row["access_token"]);wdi_front.access_token=d.feed_row["access_token"];d.dataStorageRaw=[];d.dataStorage=[];d.dataStorageList=[];d.allResponseLength=0;d.currentResponseLength=0;d.temproraryUsersData=[];d.removedUsers=0;d.nowLoadingImages=true;d.imageIndex=0;d.resIndex=0;d.currentPage=1;d.userSortFlags=[];d.customFilterChanged=false;d.maxConditionalFiltersRequestCount=10;d.instagramRequestCounter=0;d.mediaRequestsDone=false;d.conditionalFilterBuffer=[];d.stopInfiniteScrollFlag=false;if(d.feed_row.feed_type=="masonry"){d.displayedData=[]}if(d.feed_row.feed_display_view=="pagination"){d.feed_row.resort_after_load_more=0;if(d.feed_row.feed_type!="image_browser"){d.feed_row.load_more_number=parseInt(d.feed_row.pagination_per_page_number);d.feed_row.number_of_photos=(1+parseInt(d.feed_row.pagination_preload_number))*d.feed_row.load_more_number}else{d.feed_row.number_of_photos=1+parseInt(d.feed_row.image_browser_preload_number);d.feed_row.load_more_number=parseInt(d.feed_row.image_browser_load_number)}d.freeSpaces=(Math.floor(d.feed_row.pagination_per_page_number/d.feed_row.number_of_columns)+1)*d.feed_row.number_of_columns-d.feed_row.pagination_per_page_number}else{d.freeSpaces=0}d.galleryBox=function(e){wdi_spider_createpopup(wdi_url.ajax_url+"?gallery_id="+this.feed_row.id+"&image_id="+e,wdi_front.feed_counter,this.feed_row.lightbox_width,this.feed_row.lightbox_height,1,"testpopup",5,this)};wdi_responsive.columnControl(d);if(d.feed_row.feed_type=="masonry"){jQuery(window).trigger("resize")}wdi_front.bindEvents(d);window["wdi_feed_"+b]=d;wdi_front.init(d)}};wdi_front.init=function(c){jQuery(".wdi_js_error").hide();c.photoCounter=c.feed_row.number_of_photos;if(c.feed_row.liked_feed=="liked"){c.feed_users=["self"]}else{if(wdi_front.isJsonString(c.feed_row.feed_users)){c.feed_users=JSON.parse(c.feed_row.feed_users);if(wdi_front.updateUsersIfNecessary(c)){return}}else{wdi_front.show_alert(wdi_front_messages.invalid_users_format,false,c);return}}c.dataCount=c.feed_users.length;var a=wdi_front.getFeedItemResolution(c);c.feedImageResolution=a.image;c.feedVideoResolution=a.video;for(var b=0;b<c.dataCount;b++){wdi_front.instagramRequest(b,c)}if(c.feed_row.number_of_photos>0){wdi_front.ajaxLoader(c)}if(c.feed_row["display_header"]==="1"){wdi_front.show("header",c)}if(c.feed_row["show_usernames"]==="1"){wdi_front.show("users",c)}};wdi_front.getFeedItemResolution=function(g){var d={image:"standard_resolution",video:"standard_resolution"};if(g.feed_row.feed_resolution==="thumbnail"){return{image:"thumbnail",video:"low_bandwidth"}}else{if(g.feed_row.feed_resolution==="low"){return{image:"low_resolution",video:"low_resolution"}}else{if(g.feed_row.feed_resolution==="standard"){return{image:"standard_resolution",video:"standard_resolution"}}}}var c=jQuery("#wdi_feed_"+g.feed_row.wdi_feed_counter).find(".wdi_feed_wrapper");c.append('<div class="wdi_feed_item" id="wdi_feed_item_example"></div>');wdi_responsive.columnControl(g,1);var b=c.attr("wdi-res").split("wdi_col_");c.find("#wdi_feed_item_example").remove();if(b.length!==2){return d}var a=parseInt(b[1]);if(a<=0){return d}var f=(c.width()/a)-10;var e=d;if(f<=150){e.image="thumbnail";e.video="low_bandwidth"}else{if(f>150&&f<=320){e.image="low_resolution";e.video="low_resolution"}else{e.image="standard_resolution";e.video="standard_resolution"}}return e};wdi_front.isJsonString=function(b){try{JSON.parse(b)}catch(a){return false}return true};wdi_front.instagramRequest=function(d,b){var a=b.feed_users,c=this;if(typeof a[d]==="string"&&a[d]==="self"){b.instagram.getRecentLikedMedia({success:function(e){if(typeof e.meta!="undefined"&&typeof e.meta.error_type!="undefined"){wdi_front.show_alert(false,e,b)}b.mediaRequestsDone=true;e=c.checkMediaResponse(e,b);if(e!=false){c.saveSelfUserData(e,b)}}})}else{if(this.getInputType(a[d]["username"])=="hashtag"){b.instagram.getTagRecentMedia(this.stripHashtag(a[d]["username"]),{success:function(e){if(typeof e.meta!="undefined"&&typeof e.meta.error_type!="undefined"){wdi_front.show_alert(false,e,b)}b.mediaRequestsDone=true;e=c.checkMediaResponse(e,b);if(e!=false){c.saveUserData(e,b.feed_users[d],b)}}})}else{if(this.getInputType(a[d]["username"])=="user"){b.instagram.getUserRecentMedia(a[d]["id"],{success:function(e){if(typeof e.meta!="undefined"&&typeof e.meta.error_type!="undefined"){wdi_front.show_alert(false,e,b)}b.mediaRequestsDone=true;e=c.checkMediaResponse(e,b);if(e!=false){c.saveUserData(e,b.feed_users[d],b)}}})}}}};wdi_front.isHashtag=function(a){return(a[0]==="#")};wdi_front.saveUserData=function(d,a,b){d.username=a.username;d.user_id=a.id;if(d.user_id[0]==="#"){d.data=wdi_front.appendRequestHashtag(d.data,d.user_id)}b.usersData.push(d);b.currentResponseLength=wdi_front.getArrayContentLength(b.usersData,"data");b.allResponseLength+=b.currentResponseLength;if(b.dataCount==b.usersData.length){if(b.currentResponseLength<b.feed_row.number_of_photos&&!wdi_front.userHasNoPhoto(b)){wdi_front.loadMore("initial-keep",b)}else{wdi_front.displayFeed(b);wdi_front.applyFilters(b);if(!wdi_front.activeUsersCount(b)){if(b.feed_row.feed_display_view=="load_more_btn"){var c=jQuery("#wdi_feed_"+b.feed_row.wdi_feed_counter);c.find(".wdi_load_more").addClass("wdi_hidden");c.find(".wdi_spinner").addClass("wdi_hidden")}}}}};wdi_front.saveSelfUserData=function(c,a){c.username="";c.user_id="";a.usersData.push(c);a.currentResponseLength=wdi_front.getArrayContentLength(a.usersData,"data");a.allResponseLength+=a.currentResponseLength;if(a.dataCount==a.usersData.length){if(a.currentResponseLength<a.feed_row.number_of_photos&&!wdi_front.userHasNoPhoto(a)){wdi_front.loadMore("initial-keep",a)}else{wdi_front.displayFeed(a);wdi_front.applyFilters(a);if(!wdi_front.activeUsersCount(a)){if(a.feed_row.feed_display_view=="load_more_btn"){var b=jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter);b.find(".wdi_load_more").addClass("wdi_hidden");b.find(".wdi_spinner").addClass("wdi_hidden")}}}}};wdi_front.userHasNoPhoto=function(c,e){var a=0;var d=c.usersData;if(typeof e!="undefined"){d=e}for(var b=0;b<d.length;b++){if(c.feed_row.liked_feed==="liked"){if(typeof d[b]["pagination"]["next_max_like_id"]=="undefined"){a++}}else{if(typeof d[b]["pagination"]["next_max_id"]=="undefined"){a++}}}if(a==d.length){return 1}else{return 0}};wdi_front.appendRequestHashtag=function(c,b){for(var a=0;a<c.length;a++){c[a]["wdi_hashtag"]=b}return c};wdi_front.displayFeed=function(c,b){if(c.customFilterChanged==false){var d=wdi_front.feedSort(c,b)}var a=c.customFilterChanged;if(c.customFilterChanged==true){var d=c.customFilteredData;c.parsedData=wdi_front.parseLighboxData(c,true)}if(c.feed_row.resort_after_load_more!="1"){if(c.customFilterChanged==false){c.dataStorageList=c.dataStorageList.concat(d)}}else{if(c.customFilterChanged==false){c.dataStorageList=d}}if(c.feed_row.feed_type=="masonry"){wdi_front.masonryDisplayFeedItems(d,c)}if(c.feed_row.feed_type=="thumbnails"||c.feed_row.feed_type=="blog_style"||c.feed_row.feed_type=="image_browser"){wdi_front.displayFeedItems(d,c)}var e=wdi_front.getDataLength(c);if(e<c.photoCounter&&!a&&c.instagramRequestCounter<=c.maxConditionalFiltersRequestCount&&!wdi_front.allDataHasFinished(c)){wdi_front.loadMore("",c)}else{wdi_front.allImagesLoaded(c)}if(c.instagramRequestCounter>c.maxConditionalFiltersRequestCount){wdi_front.allImagesLoaded(c);if(d.length==0){c.stopInfiniteScrollFlag=true}}if(c.feed_row.feed_display_view=="pagination"&&c.currentPage<c.paginator){jQuery("#wdi_feed_"+c.feed_row.wdi_feed_counter).find("#wdi_last_page").removeClass("wdi_disabled")}c.instagramRequestCounter=0;c.conditionalFilterBuffer=[];wdi_front.updateUsersImages(c)};wdi_front.updateUsersImages=function(a){var b=jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter).find(".wdi_single_user .wdi_user_img_wrap img");b.each(function(){if(jQuery(this).attr("src")==wdi_url.plugin_url+"../images/missing.png"||jQuery(this).attr("src")==""){if(a.feed_row.liked_feed=="liked"){return}for(var c=0;c<a.usersData.length;c++){if(a.usersData[c]["username"]==jQuery(this).parent().parent().find("h3").text()){if(a.usersData[c]["data"].length!=0){jQuery(this).attr("src",a.usersData[c]["data"][0]["images"]["thumbnail"]["url"])}}}}})};wdi_front.masonryDisplayFeedItems=function(d,h){var b=[];var p=[];if(jQuery("#wdi_feed_"+h.feed_row.wdi_feed_counter+" .wdi_feed_wrapper").length==0){return}jQuery("#wdi_feed_"+h.feed_row.wdi_feed_counter+" .wdi_masonry_column").each(function(){if(h.feed_row.resort_after_load_more==1){jQuery(this).html("");h.imageIndex=0}if(h.customFilterChanged==true){jQuery(this).html("");h.imageIndex=0}if(h.feed_row.feed_display_view=="pagination"){b.push(0)}else{b.push(jQuery(this).height())}p.push(jQuery(this))});if(h.customFilterChanged==true){h.customFilterChanged=false}for(var e=0;e<d.length;e++){h.displayedData.push(d[e]);if(d[e]["type"]=="image"){var n=wdi_front.getPhotoTemplate(h)}else{if(d[e].hasOwnProperty("videos")){var n=wdi_front.getVideoTemplate(h)}else{var n=wdi_front.getSliderTemplate(h)}}var g=d[e];var o=wdi_front.createObject(g,h);var f=n(o);var m=wdi_front.array_min(b);var l=wdi_front.getImageResolution(d[e]);p[m.index].html(p[m.index].html()+f);b[m.index]+=p[m.index].width()*l;h.imageIndex++;if(h.feed_row.feed_display_view=="pagination"){if((e+1)%h.feed_row.pagination_per_page_number===0){h.resIndex+=h.freeSpaces+1}else{h.resIndex++}}}h.wdi_loadedImages=0;var j=false;h.wdi_load_count=e;var a=h.feed_row.wdi_feed_counter;var k=jQuery("#wdi_feed_"+a+" img.wdi_img").on("load",function(){h.wdi_loadedImages++;c();if(j===false){wdi_responsive.columnControl(h,1);j=true}});c();function c(){if(h.wdi_load_count===h.wdi_loadedImages&&h.wdi_loadedImages!=0){h.loadedImages=0;h.wdi_load_count=0;wdi_front.allImagesLoaded(h)}}if(h.paginatorNextFlag==true){wdi_front.updatePagination(h,"next")}h.infiniteScrollFlag=false};wdi_front.getImageResolution=function(c){var d=c.images["standard_resolution"]["width"];var b=c.images["standard_resolution"]["height"];var a=b/d;return a};wdi_front.getDataLength=function(b,d){var c=0;if(typeof d==="undefined"){for(var a=0;a<b.dataStorage.length;a++){c+=b.dataStorage[a].length}}else{for(var a=0;a<d.length;a++){c+=d[a].length}}return c};wdi_front.getArrayContentLength=function(d,c){var b=0;for(var a=0;a<d.length;a++){if(d[a]["finished"]=="finished"){continue}b+=d[a][c].length}return b};wdi_front.displayFeedItems=function(c,h){if(jQuery("#wdi_feed_"+h.feed_row.wdi_feed_counter+" .wdi_feed_wrapper").length==0){return}var a=h.feed_row.wdi_feed_counter;var k=jQuery("#wdi_feed_"+a+" .wdi_feed_wrapper");if(h.feed_row.resort_after_load_more==="1"){k.html("");h.imageIndex=0}if(h.customFilterChanged==true){k.html("");h.imageIndex=0;h.customFilterChanged=false}var f=wdi_front.getImgCount(h)-c.length-1;if(h.feed_row.feed_display_view=="pagination"){if(jQuery("#wdi_feed_"+h.feed_row.wdi_feed_counter+' [wdi_page="'+(h.currentPage-1)+'"]').length<h.feed_row.load_more_number||c.length==0){h.currentPage=(--h.currentPage<=1)?1:h.currentPage}}for(var d=0;d<c.length;d++){if(c[d]["type"]=="image"){var l=wdi_front.getPhotoTemplate(h)}else{if(c[d].hasOwnProperty("videos")){var l=wdi_front.getVideoTemplate(h)}else{var l=wdi_front.getSliderTemplate(h)}}var g=c[d];var m=wdi_front.createObject(g,h);var e=l(m);k.html(k.html()+e);h.imageIndex++;if(h.feed_row.feed_display_view=="pagination"){if((d+1)%h.feed_row.pagination_per_page_number===0){h.resIndex+=h.freeSpaces+1}else{h.resIndex++}}}h.wdi_loadedImages=0;var j=false;h.wdi_load_count=d;var a=h.feed_row.wdi_feed_counter;var k=jQuery("#wdi_feed_"+a+" img.wdi_img").on("load",function(){h.wdi_loadedImages++;b();if(j===false){wdi_responsive.columnControl(h,1);j=true}});function b(){if(h.wdi_load_count===h.wdi_loadedImages&&h.wdi_loadedImages!=0){h.loadedImages=0;h.wdi_load_count=0;wdi_front.allImagesLoaded(h)}}if(h.paginatorNextFlag==true){wdi_front.updatePagination(h,"next")}h.infiniteScrollFlag=false};wdi_front.checkFeedFinished=function(b){for(var a=0;a<b.usersData.length;a++){if(typeof b.usersData[a]["finished"]=="undefined"){return false}}return true};wdi_front.sortingOperator=function(c,b){var a;switch(c){case"date":switch(b){case"asc":a=function(e,d){return(e.created_time>d.created_time)?1:-1};break;case"desc":a=function(e,d){return(e.created_time>d.created_time)?-1:1};break}break;case"likes":switch(b){case"asc":a=function(e,d){return(e.likes["count"]<d.likes["count"])?-1:1};break;case"desc":a=function(e,d){return(e.likes["count"]<d.likes["count"])?1:-1};break}break;case"comments":switch(b){case"asc":a=function(e,d){return(e.comments["count"]<d.comments["count"])?-1:1};break;case"desc":a=function(e,d){return(e.comments["count"]<d.comments["count"])?1:-1};break}break;case"random":a=function(e,d){var f=Math.random();return(f>0.5)?1:-1};break}return a};wdi_front.feedSort=function(e,b){var d=e.feed_row.sort_images_by;var c=e.feed_row.display_order;if(e.feed_row.resort_after_load_more==="1"){e.data=e.data.concat(wdi_front.smartPicker(e,b))}else{e.data=wdi_front.smartPicker(e,b)}var a=wdi_front.sortingOperator(d,c);e.data.sort(a);return e.data};wdi_front.smartPicker=function(l,c){var g=[];var a=0;var k=[];var f=Math.ceil(l.feed_row["number_of_photos"]/l.usersData.length);var b=parseInt(l.feed_row["number_of_photos"]);var n=0;if(c!=""&&typeof c!="undefined"&&c!=null){b=parseInt(c);f=Math.ceil(b/wdi_front.activeUsersCount(l))}var j=function(p,i){return(p.data.length>i.data.length)?1:-1};var e=function(p,i){return(p.length()>i.length())?1:-1};l.storeRawData(l.usersData,"dataStorageRaw");var o=l.dataStorageRaw.sort(e);var h=l.usersData.sort(j);for(var d=0;d<h.length;d++){n+=f;if(o[d].length()<=n){n-=o[d].length();g.push(o[d].getData(o[d].length()));a+=g[g.length-1].length}else{if(a+n>b){n=b-a}var m=[];if(l.auto_trigger===false){m=m.concat(o[d].getData(n))}else{if(m.length+wdi_front.getDataLength(l)+wdi_front.getDataLength(l,g)<l.feed_row["number_of_photos"]){m=m.concat(o[d].getData(n))}}n=0;a+=m.length;g.push(m)}}for(d=0;d<g.length;d++){if(typeof l.dataStorage[d]==="undefined"){l.dataStorage.push(g[d])}else{l.dataStorage[d]=l.dataStorage[d].concat(g[d])}}l.parsedData=wdi_front.parseLighboxData(l);for(d=0;d<g.length;d++){k=k.concat(g[d])}return k};wdi_front.createObject=function(e,h){var j=(e.caption!=null)?e.caption["text"]:" ";var i="";if(e.type=="video"){i=e.hasOwnProperty("videos")?e.videos[h.feedVideoResolution]["url"]:""}var f=e.images[h.feedImageResolution].url;var a=h.imageIndex;var b="square";var d=e.images["standard_resolution"]["height"];var g=e.images["standard_resolution"]["width"];if(d>g){b="portrait"}else{if(d<g){b="landscape"}}var c={id:e.id,caption:j,image_url:f,likes:e.likes["count"],comments:e.comments["count"],wdi_index:a,wdi_res_index:h.resIndex,wdi_media_user:e.user["username"],link:e.link,video_url:i,wdi_username:e.user["username"],wdi_shape:b};return c};wdi_front.setPage=function(c){var b=c.feed_row.feed_display_view;var e=c.feed_row.feed_type;if(b!="pagination"){return""}var a=c.imageIndex;if(e=="image_browser"){var d=1}else{var d=Math.abs(c.feed_row.pagination_per_page_number)}c.paginator=Math.ceil((a+1)/d);return c.paginator};wdi_front.getPhotoTemplate=function(g){var e=wdi_front.setPage(g);var j="";var k="";var l="";var d="";var m="fa-arrows-alt";var c="";if(g.feed_row.feed_type=="blog_style"||g.feed_row.feed_type=="image_browser"){m=""}if(e!=""){k='wdi_page="'+e+'"';sourceAttr="src"}else{sourceAttr="src"}if(e!=""&&e!=1){j="wdi_hidden"}if(g.feed_row.show_username_on_thumb=="1"){c='<span class="wdi_media_user">@<%= wdi_username%></span>'}if(g.feed_row.show_full_description==1&&g.feed_row.feed_type=="masonry"){j+=" wdi_full_caption"}var f="";if(g.feed_row.feed_type!=="blog_style"){if(g.feed_row.feed_type=="masonry"){f="wdi_responsive.showMasonryCaption(jQuery(this),"+g.feed_row.wdi_feed_counter+");"}else{f="wdi_responsive.showCaption(jQuery(this),"+g.feed_row.wdi_feed_counter+");"}}switch(g.feed_row.feed_item_onclick){case"lightbox":l="onclick=wdi_feed_"+g.feed_row.wdi_feed_counter+".galleryBox('<%=id%>')";break;case"instagram":l="onclick=\"window.open ('<%= link%>','_blank')\"";d="wdi_hover_off";m="";break;case"custom_redirect":l="onclick=\"window.open ('"+g.feed_row.redirect_url+"','_self')\"";d="wdi_hover_off";m="";break;case"none":l="";d="wdi_cursor_off wdi_hover_off";m=""}var h="<%= wdi_shape == 'square' ? 'wdi_shape_square' : (wdi_shape == 'portrait' ? 'wdi_shape_portrait' : (wdi_shape == 'landscape' ? 'wdi_shape_landscape' : 'wdi_shape_square') ) %>";var b=g.feed_row.wdi_feed_counter;var a='<div class="wdi_feed_item '+j+'" wdi_index=<%= wdi_index%> wdi_res_index=<%= wdi_res_index%> wdi_media_user=<%= wdi_media_user%> '+k+' wdi_type="image" id="wdi_'+b+'_<%=id%>"><div class="wdi_photo_wrap"><div class="wdi_photo_wrap_inner"><div class="wdi_photo_img '+h+'"><img class="wdi_img" '+sourceAttr+'="<%=image_url%>" alt="feed_image" onerror="wdi_front.brokenImageHandler(this);"><div class="wdi_photo_overlay '+d+'" >'+c+'<div class="wdi_thumb_icon" '+l+' style="display:table;width:100%;height:100%;"><div style="display:table-cell;vertical-align:middle;text-align:center;color:white;"><i class="fa '+m+'"></i></div></div></div></div></div></div>';if(g.feed_row["show_likes"]==="1"||g.feed_row["show_comments"]==="1"||g.feed_row["show_description"]==="1"){a+='<div class="wdi_photo_meta">';if(g.feed_row["show_likes"]==="1"){a+='<div class="wdi_thumb_likes"><i class="fa fa-heart-o"> <%= likes%></i></div>'}if(g.feed_row["show_comments"]==="1"){a+='<div class="wdi_thumb_comments"><i class="fa fa-comment-o"> <%= comments%></i></div>'}a+='<div class="wdi_clear"></div>';if(g.feed_row["show_description"]==="1"){a+='<div class="wdi_photo_title" onclick='+f+" ><%=caption%></div>"}a+="</div>"}a+="</div>";var i=_.template(a);return i};wdi_front.getSliderTemplate=function(g){var e=wdi_front.setPage(g);var j="";var k="";var l="";var d="";var m="fa-clone";var c="";if(g.feed_row.feed_type=="blog_style"||g.feed_row.feed_type=="image_browser"){m=""}if(e!=""){k='wdi_page="'+e+'"';sourceAttr="src"}else{sourceAttr="src"}if(e!=""&&e!=1){j="wdi_hidden"}if(g.feed_row.show_username_on_thumb=="1"){c='<span class="wdi_media_user">@<%= wdi_username%></span>'}if(g.feed_row.show_full_description==1&&g.feed_row.feed_type=="masonry"){j+=" wdi_full_caption"}var f="";if(g.feed_row.feed_type!=="blog_style"){if(g.feed_row.feed_type=="masonry"){f="wdi_responsive.showMasonryCaption(jQuery(this),"+g.feed_row.wdi_feed_counter+");"}else{f="wdi_responsive.showCaption(jQuery(this),"+g.feed_row.wdi_feed_counter+");"}}switch(g.feed_row.feed_item_onclick){case"lightbox":l="onclick=wdi_feed_"+g.feed_row.wdi_feed_counter+".galleryBox('<%=id%>')";break;case"instagram":l="onclick=\"window.open ('<%= link%>','_blank')\"";d="wdi_hover_off";m="fa-clone";break;case"custom_redirect":l="onclick=\"window.open ('"+g.feed_row.redirect_url+"','_self')\"";d="wdi_hover_off";m="";break;case"none":l="";d="wdi_cursor_off wdi_hover_off";m=""}var h="<%= wdi_shape == 'square' ? 'wdi_shape_square' : (wdi_shape == 'portrait' ? 'wdi_shape_portrait' : (wdi_shape == 'landscape' ? 'wdi_shape_landscape' : 'wdi_shape_square') ) %>";var b=g.feed_row.wdi_feed_counter;var a='<div class="wdi_feed_item '+j+'" wdi_index=<%= wdi_index%> wdi_res_index=<%= wdi_res_index%> wdi_media_user=<%= wdi_media_user%> '+k+' wdi_type="slideshow" id="wdi_'+b+'_<%=id%>"><div class="wdi_photo_wrap"><div class="wdi_photo_wrap_inner"><div class="wdi_photo_img '+h+'"><img class="wdi_img" '+sourceAttr+'="<%=image_url%>" alt="feed_image" onerror="wdi_front.brokenImageHandler(this);"><div class="wdi_photo_overlay '+d+'" >'+c+'<div class="wdi_thumb_icon" '+l+' style="display:table;width:100%;height:100%;"><div style="display:table-cell;vertical-align:middle;text-align:center;color:white;"><i class="fa '+m+'"></i></div></div></div></div></div></div>';if(g.feed_row["show_likes"]==="1"||g.feed_row["show_comments"]==="1"||g.feed_row["show_description"]==="1"){a+='<div class="wdi_photo_meta">';if(g.feed_row["show_likes"]==="1"){a+='<div class="wdi_thumb_likes"><i class="fa fa-heart-o"> <%= likes%></i></div>'}if(g.feed_row["show_comments"]==="1"){a+='<div class="wdi_thumb_comments"><i class="fa fa-comment-o"> <%= comments%></i></div>'}a+='<div class="wdi_clear"></div>';if(g.feed_row["show_description"]==="1"){a+='<div class="wdi_photo_title" onclick='+f+" ><%=caption%></div>"}a+="</div>"}a+="</div>";var i=_.template(a);return i};wdi_front.replaceToVideo=function(b,a,c){overlayHtml="<video style='width:auto !important; height:auto !important; max-width:100% !important; max-height:100% !important; margin:0 !important;' controls=''><source src='"+b+"' type='video/mp4'>Your browser does not support the video tag. </video>";jQuery("#wdi_feed_"+c+' [wdi_index="'+a+'"] .wdi_photo_wrap_inner').html(overlayHtml);jQuery("#wdi_feed_"+c+' [wdi_index="'+a+'"] .wdi_photo_wrap_inner video').get(0).play()};wdi_front.getVideoTemplate=function(h){var f=wdi_front.setPage(h);var k="";var l="";var n="fa-play";var m="";var d="";var e;var c="";if(f!=""){l='wdi_page="'+f+'"';e="src"}else{e="src"}if(f!=""&&f!=1){k="wdi_hidden"}if(h.feed_row.show_username_on_thumb=="1"){c='<span class="wdi_media_user">@<%= wdi_username%></span>'}if(h.feed_row.show_full_description==1&&h.feed_row.feed_type=="masonry"){k+=" wdi_full_caption"}var g="";if(h.feed_row.feed_type!=="blog_style"){if(h.feed_row.feed_type=="masonry"){g="wdi_responsive.showMasonryCaption(jQuery(this),"+h.feed_row.wdi_feed_counter+");"}else{g="wdi_responsive.showCaption(jQuery(this),"+h.feed_row.wdi_feed_counter+");"}}switch(h.feed_row.feed_item_onclick){case"lightbox":m="onclick=wdi_feed_"+h.feed_row.wdi_feed_counter+".galleryBox('<%=id%>')";break;case"instagram":m="onclick=\"window.open ('<%= link%>','_blank')\"";d="wdi_hover_off";n="fa-play";break;case"custom_redirect":m="onclick=\"window.open ('"+h.feed_row.redirect_url+"','_self')\"";d="wdi_hover_off";n="";break;case"none":d="wdi_cursor_off wdi_hover_off";n="";if(h.feed_row.feed_type=="blog_style"||h.feed_row.feed_type=="image_browser"){m="onclick=wdi_front.replaceToVideo('<%= video_url%>','<%= wdi_index%>',"+h.feed_row.wdi_feed_counter+")";d="";n="fa-play"}}var i="<%= wdi_shape == 'square' ? 'wdi_shape_square' : (wdi_shape == 'portrait' ? 'wdi_shape_portrait' : (wdi_shape == 'landscape' ? 'wdi_shape_landscape' : 'wdi_shape_square') ) %>";var b=h.feed_row.wdi_feed_counter;var a='<div class="wdi_feed_item '+k+'" wdi_index=<%= wdi_index%> wdi_res_index=<%= wdi_res_index%> wdi_media_user=<%= wdi_media_user%> '+l+' wdi_type="image" id="wdi_'+b+'_<%=id%>"><div class="wdi_photo_wrap"><div class="wdi_photo_wrap_inner"><div class="wdi_photo_img '+i+'"><img class="wdi_img" '+e+'="<%=image_url%>" alt="feed_image" onerror="wdi_front.brokenImageHandler(this);"><div class="wdi_photo_overlay '+d+'" '+m+">"+c+'<div class="wdi_thumb_icon" style="display:table;width:100%;height:100%;"><div style="display:table-cell;vertical-align:middle;text-align:center;color:white;"><i class="fa '+n+'"></i></div></div></div></div></div></div>';if(h.feed_row["show_likes"]==="1"||h.feed_row["show_comments"]==="1"||h.feed_row["show_description"]==="1"){a+='<div class="wdi_photo_meta">';if(h.feed_row["show_likes"]==="1"){a+='<div class="wdi_thumb_likes"><i class="fa fa-heart-o"> <%= likes%></i></div>'}if(h.feed_row["show_comments"]==="1"){a+='<div class="wdi_thumb_comments"><i class="fa fa-comment-o"> <%= comments%></i></div>'}a+='<div class="wdi_clear"></div>';if(h.feed_row["show_description"]==="1"){a+='<div class="wdi_photo_title" onclick='+g+" ><%=caption%></div>"}a+="</div>"}a+="</div>";var j=_.template(a);return j};wdi_front.bindEvents=function(a){if(jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter+" .wdi_feed_wrapper").length==0){return}if(a.feed_row.feed_display_view=="load_more_btn"){jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter+" .wdi_load_more_container").on(wdi_front.clickOrTouch,function(){wdi_front.loadMore(jQuery(this).find(".wdi_load_more_wrap"))})}if(a.feed_row.feed_display_view=="pagination"){jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter+" #wdi_next").on(wdi_front.clickOrTouch,function(){wdi_front.paginatorNext(jQuery(this),a)});jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter+" #wdi_prev").on(wdi_front.clickOrTouch,function(){wdi_front.paginatorPrev(jQuery(this),a)});jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter+" #wdi_last_page").on(wdi_front.clickOrTouch,function(){wdi_front.paginationLastPage(jQuery(this),a)});jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter+" #wdi_first_page").on(wdi_front.clickOrTouch,function(){wdi_front.paginationFirstPage(jQuery(this),a)});a.paginatorNextFlag=false}if(a.feed_row.feed_display_view=="infinite_scroll"){jQuery(window).on("scroll",function(){wdi_front.infiniteScroll(a)});a.infiniteScrollFlag=false}};wdi_front.infiniteScroll=function(a){if((jQuery(window).scrollTop()+jQuery(window).height()-100)>=jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter+" #wdi_infinite_scroll").offset().top){if(a.infiniteScrollFlag===false&&a.stopInfiniteScrollFlag==false){a.infiniteScrollFlag=true;wdi_front.loadMore(jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter+" #wdi_infinite_scroll"),a)}else{if(a.stopInfiniteScrollFlag){wdi_front.allImagesLoaded(a)}}}};wdi_front.paginationFirstPage=function(b,c){if(c.paginator==1||c.currentPage==1){b.addClass("wdi_disabled");return}var d=c.currentPage;c.currentPage=1;wdi_front.updatePagination(c,"custom",d);var a=b.parent().find("#wdi_last_page");a.removeClass("wdi_disabled");b.addClass("wdi_disabled")};wdi_front.paginationLastPage=function(a,b){if(b.paginator==1||b.currentPage==b.paginator){return}var d=b.currentPage;b.currentPage=b.paginator;wdi_front.updatePagination(b,"custom",d);a.addClass("wdi_disabled");var c=a.parent().find("#wdi_first_page");c.removeClass("wdi_disabled")};wdi_front.paginatorNext=function(b,c){var a=b.parent().find("#wdi_last_page");var d=b.parent().find("#wdi_first_page");c.paginatorNextFlag=true;if(c.paginator==c.currentPage&&!wdi_front.checkFeedFinished(c)){c.currentPage++;var e=c.feed_row.number_of_photos;wdi_front.loadMore(b,c,e);a.addClass("wdi_disabled")}else{if(c.paginator>c.currentPage){c.currentPage++;wdi_front.updatePagination(c,"next");if(c.paginator>c.currentPage){a.removeClass("wdi_disabled")}else{a.addClass("wdi_disabled")}}}d.removeClass("wdi_disabled")};wdi_front.paginatorPrev=function(b,c){var a=b.parent().find("#wdi_last_page");var d=b.parent().find("#wdi_first_page");if(c.currentPage==1){d.addClass("wdi_disabled");return}c.currentPage--;wdi_front.updatePagination(c,"prev");a.removeClass("wdi_disabled");if(c.currentPage==1){d.addClass("wdi_disabled")}};wdi_front.updatePagination=function(b,a,d){var c="#wdi_feed_"+b.feed_row.wdi_feed_counter;jQuery(c+' [wdi_page="'+b.currentPage+'"]').each(function(){jQuery(this).removeClass("wdi_hidden")});switch(a){case"next":var d=b.currentPage-1;jQuery(c+" .wdi_feed_wrapper").height(jQuery(".wdi_feed_wrapper").height());jQuery(c+' [wdi_page="'+d+'"]').each(function(){jQuery(this).addClass("wdi_hidden")});break;case"prev":var d=b.currentPage+1;jQuery(c+" .wdi_feed_wrapper").height(jQuery(".wdi_feed_wrapper").height());jQuery(c+' [wdi_page="'+d+'"]').each(function(){jQuery(this).addClass("wdi_hidden")});break;case"custom":var d=d;if(d!=b.currentPage){jQuery(c+" .wdi_feed_wrapper").height(jQuery(".wdi_feed_wrapper").height());jQuery(c+' [wdi_page="'+d+'"]').each(function(){jQuery(this).addClass("wdi_hidden")})}break}b.paginatorNextFlag=false;jQuery(c+" .wdi_feed_wrapper").css("height","auto");jQuery(c+" #wdi_current_page").text(b.currentPage)};wdi_front.loadMore=function(f,k){var b=0;if(f!=""&&typeof f!="undefined"&&f!="initial"&&f!="initial-keep"){var l=window[f.parent().parent().parent().parent().attr("id")]}if(typeof k!="undefined"){var l=k}var n=0,g=0;for(var e=0;e<l.userSortFlags.length;e++){if(l.userSortFlags[e].flag===true){n++;for(var d=0;d<l.usersData.length;d++){if(l.userSortFlags[e]["id"]===l.usersData[d]["user_id"]){if(l.usersData[d]["finished"]==="finished"){g++}}}}}if(n===g&&n!=0){return}if(f===""){l.auto_trigger=true}else{l.auto_trigger=false}wdi_front.ajaxLoader(l);if(l.feed_row.feed_type==="masonry"&&l.feed_row.feed_display_view=="pagination"){jQuery("#wdi_feed_"+wdi_front.feed_counter+" .wdi_full_caption").each(function(){jQuery(this).find(".wdi_photo_title").trigger(wdi_front.clickOrTouch)})}for(var e=0;e<l.usersData.length;e++){if(l.usersData[e]["finished"]==="finished"){b++}}if(b===l.usersData.length){wdi_front.allImagesLoaded(l);jQuery("#wdi_feed_"+l.feed_row["wdi_feed_counter"]+" .wdi_load_more").remove()}var h=l.usersData;l.loadMoreDataCount=l.feed_users.length;for(var e=0;e<h.length;e++){var m=h[e]["pagination"];var c={user_id:h[e]["user_id"],username:h[e]["username"]};if(m.next_url!=""&&m.next_url!=null&&typeof m.next_url!="undefined"){var a=m.next_url;wdi_front.loadMoreRequest(c,a,l,f)}else{if(f=="initial-keep"){l.temproraryUsersData[e]=l.usersData[e]}l.loadMoreDataCount--;wdi_front.checkForLoadMoreDone(l,f);continue}}};wdi_front.loadMoreRequest=function(b,a,e,d){if(!e.mediaRequestsDone){return}var f=e.usersData;var c="";e.instagram.requestByUrl(a,{success:function(g){if(typeof g.meta!="undefined"&&typeof g.meta.error_type!="undefined"){wdi_front.show_alert(false,g,e)}if(g===""||typeof g=="undefined"||g==null){c=wdi_front_messages.network_error;e.loadMoreDataCount--;wdi_front.show_alert(c,g,e);return}if(g.meta["code"]!=200){c=g.meta["error_message"];e.loadMoreDataCount--;wdi_front.show_alert(c,g,e);return}g.user_id=b.user_id;g.username=b.username;for(var h=0;h<e.usersData.length;h++){if(g.user_id===e.usersData[h]["user_id"]){if(g.user_id[0]==="#"){g.data=wdi_front.appendRequestHashtag(g.data,g.user_id)}if(d=="initial-keep"){e.temproraryUsersData[h]=e.usersData[h]}e.usersData[h]=g;e.loadMoreDataCount--}}wdi_front.checkForLoadMoreDone(e,d)}})};wdi_front.checkForLoadMoreDone=function(c,b){var a=c.feed_row.load_more_number;var e=c.feed_row.number_of_photos;if(c.loadMoreDataCount==0){c.temproraryUsersData=wdi_front.mergeData(c.temproraryUsersData,c.usersData);var d=wdi_front.getArrayContentLength(c.temproraryUsersData,"data");if(b=="initial-keep"){b="initial"}if(b=="initial"){if(d<e&&!wdi_front.userHasNoPhoto(c,c.temproraryUsersData)&&c.instagramRequestCounter<=c.maxConditionalFiltersRequestCount){wdi_front.loadMore("initial",c)}else{c.usersData=c.temproraryUsersData;wdi_front.displayFeed(c);wdi_front.applyFilters(c);c.temproraryUsersData=[]}}else{if(d<a&&!wdi_front.userHasNoPhoto(c,c.temproraryUsersData)&&c.instagramRequestCounter<=c.maxConditionalFiltersRequestCount){wdi_front.loadMore(undefined,c)}else{c.usersData=c.temproraryUsersData;if(!wdi_front.activeUsersCount(c)){return}wdi_front.displayFeed(c,a);wdi_front.applyFilters(c);c.temproraryUsersData=[]}}}};wdi_front.allDataHasFinished=function(b){var d=0;for(var a=0;a<b.dataStorageRaw.length;a++){if(b.dataStorageRaw[a].length()==0&&b.dataStorageRaw[a].locked==true){d++}}return(d==b.dataStorageRaw.length)};wdi_front.mergeData=function(c,b){for(var a=0;a<b.length;a++){if(typeof c[a]!="undefined"){if(b[a]["finished"]=="finished"){continue}if(typeof c[a]["pagination"]["next_max_id"]=="undefined"&&typeof c[a]["pagination"]["next_max_like_id"]=="undefined"){continue}c[a]["data"]=c[a]["data"].concat(b[a]["data"]);c[a]["pagination"]=b[a]["pagination"];c[a]["user_id"]=b[a]["user_id"];c[a]["username"]=b[a]["username"];c[a]["meta"]=b[a]["meta"]}else{c.push(b[a])}}return c};wdi_front.brokenImageHandler=function(a){a.src=wdi_url.plugin_url+"../images/missing.png";a.onerror="";return true};wdi_front.ajaxLoader=function(a){var d=a.feed_row.wdi_feed_counter;var c=jQuery("#wdi_feed_"+d);if(a.feed_row.feed_display_view=="load_more_btn"){c.find(".wdi_load_more").addClass("wdi_hidden");c.find(".wdi_spinner").removeClass("wdi_hidden")}if(a.feed_row.feed_display_view=="infinite_scroll"){var b;if(c.find(".wdi_ajax_loading").length==0){b=jQuery('<div class="wdi_ajax_loading"><div><div><img class="wdi_load_more_spinner" src="'+wdi_url.plugin_url+'../images/ajax_loader.png"></div></div></div>');c.append(b)}else{b=c.find(".wdi_ajax_loading")}b.removeClass("wdi_hidden")}};wdi_front.allImagesLoaded=function(a){var d=wdi_front.getDataLength(a);if(!a.mediaRequestsDone){jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter+" .wdi_feed_wrapper").remove("wdi_nomedia")}if(d==0&&a.mediaRequestsDone&&(a.feed_row.conditional_filters.length==0||a.feed_row.conditional_filter_enable==0)){jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter+" .wdi_feed_wrapper").append("<p class='wdi_nomedia'>"+wdi_front_messages.feed_nomedia+"</p>")}var c=a.feed_row.wdi_feed_counter;var b=jQuery("#wdi_feed_"+c);if(a.feed_row.feed_display_view=="load_more_btn"){b.find(".wdi_load_more").removeClass("wdi_hidden");b.find(".wdi_spinner").addClass("wdi_hidden")}if(a.feed_row.feed_display_view=="infinite_scroll"){jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter+" .wdi_ajax_loading").addClass("wdi_hidden")}b.trigger("wdi_feed_loaded")};wdi_front.show=function(b,c){var e=c.feed_row.wdi_feed_counter;var d=jQuery("#wdi_feed_"+e+" .wdi_feed_container");var g=this;switch(b){case"header":f();break;case"users":a(c);break}function f(){var i={feed_thumb:c.feed_row["feed_thumb"],feed_name:c.feed_row["feed_name"]};var k=wdi_front.getHeaderTemplate(),h=k(i),j=d.find(".wdi_feed_header").html();d.find(".wdi_feed_header").html(j+h)}function a(j){d.find(".wdi_feed_users").html("");var n=j.feed_users;var m=j.feed_row["access_token"];var h=0;j.headerUserinfo=[];k();function k(){if(j.headerUserinfo.length==n.length){l(j.headerUserinfo,j);return}var i=n[j.headerUserinfo.length];if(typeof i==="string"&&i==="self"){j.instagram.getSelfInfo({success:function(o){if(typeof o.meta!="undefined"&&typeof o.meta.error_type!="undefined"){wdi_front.show_alert(false,o,j)}o=g.checkMediaResponse(o,j);if(o!=false){var p={id:o.data["id"],name:o.data["username"],url:o.data["profile_picture"],bio:o.data["bio"],counts:o.data["counts"],website:o.data["website"],full_name:o.data["full_name"]};j.headerUserinfo.push(p);h++;k()}},args:{ignoreFiltering:true}})}else{if(g.getInputType(i.username)=="hashtag"){j.instagram.searchForTagsByName(g.stripHashtag(i.username),{success:function(o){if(typeof o.meta!="undefined"&&typeof o.meta.error_type!="undefined"){wdi_front.show_alert(false,o,j)}o=g.checkMediaResponse(o,j);if(o!=false){if(o.data.length==0){var p="";var q={media:""}}else{var p="";var q={media:o.data[0]["media_count"]}}var r={name:n[h]["username"],url:p,counts:q};h++;j.headerUserinfo.push(r);k()}},args:{ignoreFiltering:true}})}else{if(g.getInputType(i.username)=="user"){j.instagram.getUserInfo(i.id,{success:function(o){if(typeof o.meta!="undefined"&&typeof o.meta.error_type!="undefined"){wdi_front.show_alert(false,o,j)}o=g.checkMediaResponse(o,j);if(o!=false){var p={id:o.data["id"],name:o.data["username"],url:o.data["profile_picture"],bio:o.data["bio"],counts:o.data["counts"],website:o.data["website"],full_name:o.data["full_name"]};j.headerUserinfo.push(p);h++;k()}},args:{ignoreFiltering:true}})}}}}function l(i,t){d.find(".wdi_feed_users").html("");for(var q=0;q<i.length;q++){var u={flag:false,id:i[q]["id"],name:i[q]["name"]};var p=(i[q]["name"][0]=="#")?"wdi_header_hashtag":"";var o={user_index:q,user_img_url:i[q]["url"],counts:i[q]["counts"],feed_counter:t.feed_row.wdi_feed_counter,user_name:i[q]["name"],bio:i[q]["bio"],usersCount:t.feed_row.feed_users.length,hashtagClass:p};var w=wdi_front.getUserTemplate(t,i[q]["name"]),r=w(o),s=d.find(".wdi_feed_users").html();d.find(".wdi_feed_users").html(s+r);t.userSortFlags.push(u);var v=jQuery('<div class="wdi_clear"></div>')}d.find(".wdi_feed_users").append(v);wdi_front.updateUsersImages(t)}}};wdi_front.getUserTemplate=function(c,h){var a=c.dataCount,d,f,g;switch(h[0]){case"#":d="//instagram.com/explore/tags/"+h.substr(1,h.length);break;default:d="//instagram.com/"+h;break}g='window.open("'+d+'","_blank")';f="onclick='"+g+"'";var e='<div class="wdi_single_user" user_index="<%=user_index%>"><div class="wdi_header_user_text <%=hashtagClass%>"><div class="wdi_user_img_wrap"><img onerror="wdi_front.brokenImageHandler(this);" src="<%= user_img_url%>">';if(a>1){e+='<div title="'+wdi_front_messages.filter_title+'" class="wdi_filter_overlay"><div class="wdi_filter_icon"><span onclick="wdi_front.addFilter(<%=user_index%>,<%=feed_counter%>);" class="fa fa-filter"></span></div></div>'}e+="</div>";e+="<h3 "+f+"><%= user_name%></h3>";if(h[0]!=="#"){if(c.feed_row.follow_on_instagram_btn=="1"){e+='<div class="wdi_user_controls"><div class="wdi_follow_btn" onclick="window.open(\'//instagram.com/<%= user_name%>\',\'_blank\')"><span> '+wdi_front_messages.follow+"</span></div></div>"}e+='<div class="wdi_media_info"><p class="wdi_posts"><span class="fa fa-camera-retro"><%= counts.media%></span></p><p class="wdi_followers"><span class="fa fa-user"><%= counts.followed_by%></span></p></div>'}else{e+='<div class="wdi_user_controls"></div><div class="wdi_media_info"><p class="wdi_posts"><span class="fa fa-camera-retro"><%= counts.media%></span></p><p class="wdi_followers"><span></span></p></div>'}e+='<div class="wdi_clear"></div>';if(a==1&&h[0]!=="#"&&c.feed_row.display_user_info=="1"){e+='<div class="wdi_bio"><%= bio%></div>'}e+="</div></div>";var b=_.template(e);return b};wdi_front.getHeaderTemplate=function(){var b='<div class="wdi_header_wrapper"><div class="wdi_header_img_wrap"><img src="<%=feed_thumb%>"></div><div class="wdi_header_text"><%=feed_name%></div><div class="wdi_clear"></div>';var a=_.template(b);return a};wdi_front.addFilter=function(e,g){var f=window["wdi_feed_"+g];var d=f.dataCount;if(d<2){return}if(f.nowLoadingImages!=false){return}else{var c=jQuery("#wdi_feed_"+f.feed_row.wdi_feed_counter+'_users [user_index="'+e+'"]');c.find(".wdi_filter_overlay").toggleClass("wdi_filter_active_bg");c.find(".wdi_header_user_text h3").toggleClass("wdi_filter_active_col");c.find(".wdi_media_info").toggleClass("wdi_filter_active_col");c.find(".wdi_follow_btn").toggleClass("wdi_filter_active_col");f.customFilterChanged=true;if(f.userSortFlags[e]["flag"]==false){f.userSortFlags[e]["flag"]=true}else{f.userSortFlags[e]["flag"]=false}var a=0;for(var b=0;b<f.userSortFlags.length;b++){if(f.userSortFlags[b]["flag"]==true){a++}}if(f.feed_row.feed_display_view=="pagination"){f.resIndex=0}if(a!=0){wdi_front.filterData(f);wdi_front.displayFeed(f)}else{f.customFilteredData=f.dataStorageList;wdi_front.displayFeed(f)}if(f.feed_row.feed_display_view=="pagination"){f.paginator=Math.ceil((f.imageIndex)/parseInt(f.feed_row.pagination_per_page_number));f.currentPage=f.paginator;wdi_front.updatePagination(f,"custom",1);jQuery("#wdi_first_page").removeClass("wdi_disabled");jQuery("#wdi_last_page").addClass("wdi_disabled")}}};wdi_front.filterData=function(c){var d=c.userSortFlags;c.customFilteredData=[];for(var b=0;b<c.dataStorageList.length;b++){for(var a=0;a<d.length;a++){if((c.dataStorageList[b]["user"]["id"]==d[a]["id"]||c.dataStorageList[b]["wdi_hashtag"]==d[a]["name"])&&d[a]["flag"]==true){c.customFilteredData.push(c.dataStorageList[b])}}}};wdi_front.applyFilters=function(c){for(var b=0;b<c.userSortFlags.length;b++){if(c.userSortFlags[b]["flag"]==true){var a=jQuery("#wdi_feed_"+c.feed_row.wdi_feed_counter+'[user_index="'+b+'"]');wdi_front.addFilter(b,c.feed_row.wdi_feed_counter);wdi_front.addFilter(b,c.feed_row.wdi_feed_counter)}}};wdi_front.getImgCount=function(b){var d=b.dataStorage;var c=0;for(var a=0;a<d.length;a++){c+=d[a].length}return c};wdi_front.parseLighboxData=function(k,m){var g=k.dataStorage;var l=k.feed_row.sort_images_by;var a=k.feed_row.display_order;var h=wdi_front.sortingOperator(l,a);var f=[];var b=[];var e={};if(m==true){f=k.customFilteredData}else{for(var d=0;d<g.length;d++){for(var c=0;c<g[d].length;c++){f.push(g[d][c])}}f.sort(h)}for(d=0;d<f.length;d++){e={alt:"",avg_rating:"",comment_count:f[d]["comments"]["count"],date:wdi_front.convertUnixDate(f[d]["created_time"]),description:wdi_front.getDescription((f[d]["caption"]!==null)?f[d]["caption"]["text"]:""),filename:wdi_front.getFileName(f[d]),filetype:wdi_front.getFileType(f[d]),hit_count:"0",id:f[d]["id"],image_url:f[d]["link"],number:0,rate:"",rate_count:"0",username:f[d]["user"]["username"],profile_picture:f[d]["user"]["profile_picture"],thumb_url:f[d]["link"]+"media/?size=t",comments_data:f[d]["comments"]["data"]};b.push(e)}return b};wdi_front.convertUnixDate=function(b){var c=parseInt(b);var a=new Date(0);a.setUTCSeconds(c);var d=a.getFullYear()+"-"+a.getMonth()+"-"+a.getDate();d+=" "+a.getHours()+":"+a.getMinutes();return d};wdi_front.getDescription=function(a){a=a.replace(/\r?\n|\r/g," ");return a};wdi_front.getFileName=function(d){var c=d.link;var b=d.type;if(b==="video"&&d.hasOwnProperty("videos")){return d.videos["standard_resolution"]["url"]}else{var a=c.split("/");return a[a.length-2]}};wdi_front.getFileType=function(a){if(a.type=="video"&&a.hasOwnProperty("videos")){return"EMBED_OEMBED_INSTAGRAM_VIDEO"}else{return"EMBED_OEMBED_INSTAGRAM_IMAGE"}};wdi_front.array_max=function(d){var a=d[0];var b=0;for(var c=1;c<d.length;c++){if(a<d[c]){a=d[c];b=c}}return{value:a,index:b}};wdi_front.array_min=function(d){var c=d[0];var a=0;for(var b=1;b<d.length;b++){if(c>d[b]){c=d[b];a=b}}return{value:c,index:a}};wdi_front.activeUsersCount=function(c){var a=0;for(var b=0;b<c.usersData.length;b++){if(c.usersData[b].finished!="finished"){a++}}return a};wdi_front.checkMediaResponse=function(a,b){if(a==""||typeof a=="undefined"||a==null){errorMessage=wdi_front_messages.connection_error;wdi_front.show_alert(errorMessage,a,b);return false}if(a.meta["code"]!=200){errorMessage=a.meta["error_message"];wdi_front.show_alert(errorMessage,a,b);return false}return a};wdi_front.stripHashtag=function(a){switch(a[0]){case"#":return a.substr(1,a.length);break;default:return a;break}};wdi_front.getInputType=function(a){switch(a[0]){case"#":return"hashtag";break;case"%":return"location";break;default:return"user";break}};wdi_front.regexpTestCaption=function(h,e){var d=false,b=false,f=[],g=e.replace(/[-[\]{}()*+?.,\\^$|]/g,"\\$&"),c=new RegExp("(?:^|\\s)"+g+"(?:^|\\s)"),a=new RegExp("(?:^|\\s)"+g,"g");if(c.exec(h)!=null){d=true}while((match=a.exec(h))!=null){if(match.index==h.length-e.length-1){b=true}}if(d==true||b==true){return true}else{return false}};wdi_front.replaceNewLines=function(c){var b="vUkCJvN2ps3t",a=[],g;c=c.replace(/\r?\n|\r/g,b);g=new RegExp(b,"g");while((match=g.exec(c))!=null){a.push(match.index)}var f=c.split(b);var e=0;for(var d=0;d<f.length;d++){if(f[d]==""){e++}else{e=0}if(e>0){f.splice(d,1);e--;d--}}c=f.join(" ");return c};wdi_front.isEmptyObject=function(a){for(var b in a){if(a.hasOwnProperty(b)){return false}}return true};var WDIFeed=function(a){this["data"]=a.data;this["dataCount"]=a.dataCount;this["feed_row"]=a.feed_row;this["usersData"]=a.usersData;_this=this;this.set_images_loading_flag=function(b){window.addEventListener("load",function(){b.nowLoadingImages=false})};this.set_images_loading_flag(_this)};WDIFeed.prototype.conditionalFilter=function(a,c){var d=this,b=d.feed_row.conditional_filter_type,e=d.feed_row.conditional_filters;if(c.ignoreFiltering==true){}else{a=this.avoidDuplicateMedia(a)}if(!wdi_front.isJsonString(e)){return a}else{e=JSON.parse(e);if(e.length==0){return a}}if(d.feed_row.conditional_filter_enable=="0"){return a}d.instagramRequestCounter++;switch(b){case"AND":a=this.applyANDLogic(a,e,d);break;case"OR":a=this.applyORLogic(a,e,d);break;case"NOR":a=this.applyNORLogic(a,e,d);break;default:break}return a};WDIFeed.prototype.applyANDLogic=function(a,d){var c=this;for(var b=0;b<d.length;b++){a=this.filterResponse(a,d[b])}return a};WDIFeed.prototype.applyORLogic=function(d,c){var h=this;var a=[],g,j=[],f,b;for(var e=0;e<c.length;e++){g=this.filterResponse(d,c[e]);a=a.concat(g.data);g={}}for(e=0;e<a.length;e++){b=a[e];if(!this.mediaExists(b,j)&&!this.mediaExists(b,h.dataStorageList)){j.push(b)}}f={data:j,meta:d.meta,pagination:d.pagination};return f};WDIFeed.prototype.applyNORLogic=function(c,h){var f=c,g=this,b=this.applyORLogic(c,h,g),d=[],a;for(var e=0;e<f.data.length;e++){if(!this.mediaExists(f.data[e],b.data)){d.push(f.data[e])}}a={data:d,meta:f.meta,pagination:f.pagination};return a};WDIFeed.prototype.mediaExists=function(b,c){for(var a=0;a<c.length;a++){if(b.id==c[a]["id"]){return true}}return false};WDIFeed.prototype.filterResponse=function(a,b){switch(b.filter_type){case"hashtag":return this.filterByHashtag(a,b);break;case"username":return this.filterByUsername(a,b);break;case"mention":return this.filterByMention(a,b);break;case"description":return this.filterByDescription(a,b);break;case"location":return this.filterByLocation(a,b);break;case"url":return this.filterByUrl(a,b);break}};WDIFeed.prototype.filterByHashtag=function(b,g){var d=[],f,h,a;for(var e=0;e<b.data.length;e++){h=b.data[e];for(var c=0;c<h.tags.length;c++){tag=h.tags[c];if(tag.toLowerCase()==g.filter_by.toLowerCase()){d.push(h)}}}a={data:d,meta:b.meta,pagination:b.pagination};return a};WDIFeed.prototype.filterByUsername=function(b,e){var c=[],f,a;for(var d=0;d<b.data.length;d++){f=b.data[d];if(f.user.username.toLowerCase()==e.filter_by.toLowerCase()){c.push(f)}}a={data:c,meta:b.meta,pagination:b.pagination};return a};WDIFeed.prototype.filterByMention=function(b,e){var c=[],f,g,a;for(var d=0;d<b.data.length;d++){f=b.data[d];if(f.caption!==null){g=f.caption["text"].toLowerCase();if(g.indexOf("@"+e.filter_by.toLowerCase())!=-1){c.push(f)}}}a={data:c,meta:b.meta,pagination:b.pagination};return a};WDIFeed.prototype.filterByDescription=function(c,f){var d=[],g,h,b;for(var e=0;e<c.data.length;e++){g=c.data[e];if(g.caption!==null){h=g.caption["text"].toLowerCase();h=wdi_front.replaceNewLines(h);var a=f.filter_by.toLowerCase();if(wdi_front.regexpTestCaption(h,a)){d.push(g)}}}b={data:d,meta:c.meta,pagination:c.pagination};return b};WDIFeed.prototype.filterByLocation=function(b,f){var c=[],g,e,a;for(var d=0;d<b.data.length;d++){g=b.data[d];if(g.location!==null){e=g.location["id"];if(e==f.filter_by){c.push(g)}}}a={data:c,meta:b.meta,pagination:b.pagination};return a};WDIFeed.prototype.filterByUrl=function(b,e){var c=[],g,h,a,f;e.filter_by=this.getIdFromUrl(e.filter_by);for(var d=0;d<b.data.length;d++){g=b.data[d];if(g.link!==null){h=this.getIdFromUrl(g.link);if(h==e.filter_by){c.push(g)}}}a={data:c,meta:b.meta,pagination:b.pagination};return a};WDIFeed.prototype.getIdFromUrl=function(a){var c=a.split("/"),d=false;for(var b=0;b<c.length;b++){if(c[b]=="p"){if(typeof c[b+1]!="undefined"){d=c[b+1];break}}}return d};WDIFeed.prototype.avoidDuplicateMedia=function(b){var e=b.data,d=[],a={};if(typeof e=="undefined"){e=[]}for(var c=0;c<e.length;c++){if(!this.mediaExists(e[c],this.dataStorageList)&&!this.mediaExists(e[c],d)&&!this.mediaExists(e[c],this.conditionalFilterBuffer)){d.push(e[c])}}this.conditionalFilterBuffer=this.conditionalFilterBuffer.concat(d);a={data:d,meta:b.meta,pagination:b.pagination};return a};WDIFeed.prototype.storeRawData=function(c,a){var e=this;if(typeof this[a]=="object"&&typeof this[a].length=="number"){for(var b=0;b<c.length;b++){var d="";if(wdi_front.isHashtag(c[b].user_id)){d=c[b].pagination.next_max_tag_id}else{if(e.feed_row.liked_feed=="liked"){d=c[b].pagination.next_max_like_id;if(typeof d=="undefined"){d=""}}else{if(c[b].pagination==null){c[b].pagination=[]}d=c[b].pagination.next_max_id;if(typeof d=="undefined"){d=""}}}if(typeof this[a][b]=="undefined"){this[a].push({data:c[b].data,index:0,locked:false,hash_id:d,usersDataFinished:false,userId:c[b].user_id,length:function(){return this.data.length-this.index},getData:function(g){var h=this.data.slice(this.index,this.index+g);this.index+=Math.min(g,this.length());if(this.index==this.data.length&&this.locked==true&&this.usersDataFinished==false){for(var f=0;f<e.usersData.length;f++){if(e.usersData[f]["user_id"]==this.userId){e.usersData[f].finished="finished";this.usersDataFinished=true;break}}}return h}})}else{if(this[a][b].locked==false){if(d!=this[a][b].hash_id){this[a][b].data=this[a][b].data.concat(c[b].data);this[a][b].hash_id=d}else{this[a][b].locked=true}}}}}};wdi_front.updateUsersIfNecessary=function(c){var d=c.feed_users;var a=false;for(var b=0;b<d.length;b++){if("#"==d[b].username.substr(0,1)){d[b].id=d[b].username;continue}if(""==d[b].id||"username"==d[b].id){a=true;c.instagram.searchForUsersByName(d[b].username,{success:function(i){if(typeof i.meta!="undefined"&&typeof i.meta.error_type!="undefined"){wdi_front.show_alert(false,i,c)}if(i.meta.code==200&&i.data.length>0){var l=false;for(var g=0;g<i.data.length;g++){if(i.data[g].username==i.args.username){l=true;break}}if(l){for(var h=0;h<d.length;h++){if(i.data[g].username==d[h].username){d[h].id=i.data[g].id}}}}var f=false;for(var e=0;e<d.length;e++){if(d[e].id==""||d[e].id=="username"){f=true;break}}if(!f){c.feed_row.feed_users=JSON.stringify(d);wdi_front.init(c)}},username:d[b].username})}}return a};if(typeof wdi_ajax.ajax_response!="undefined"){jQuery(document).one("ajaxStop",function(){if(wdi_front.type!="not_declared"){wdi_front.clickOrTouch=wdi_front.detectEvent();wdi_front.globalInit()}else{return}})}else{jQuery(document).ready(function(){if(wdi_front.type!="not_declared"){wdi_front.clickOrTouch=wdi_front.detectEvent();wdi_front.globalInit()}else{return}})};
|
1 |
+
if(typeof wdi_front=="undefined"){wdi_front={type:"not_declared"}}wdi_front.detectEvent=function(){var a=(/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));if(a){return"touchend"}else{return"click"}};var wdi_error_show=false;wdi_front.show_alert=function(e,b,f){f=jQuery("#wdi_feed_"+f.feed_row.wdi_feed_counter);if(b.meta["code"]===400&&b.meta["error_type"]==="APINotAllowedError"){if(typeof b.wdi_current_feed_name!="undefined"){var a=b.wdi_current_feed_name;var d=f.find(".wdi_private_feed_names");d.html(a);f.find(".wdi_private_feed_error").removeClass("wdi_hidden")}f.find(".wdi_spinner").remove()}if(typeof f!="undefined"&&b.meta["error_type"]!="APINotAllowedError"){f.find(".wdi_spinner").remove();wdi_error_show=true;var c=f.find(".wdi_js_error");var g=f.find(".wdi_token_error");if(b!=false&&typeof b.meta!=undefined&&b.meta.error_type==="OAuthAccessTokenException"){g.removeClass("wdi_hidden");if(wdi_front_messages.wdi_token_error_flag!="1"){jQuery.ajax({type:"POST",url:wdi_url.ajax_url,dataType:"json",data:{action:"wdi_token_flag",wdi_token_flag_nonce:wdi_front_messages.wdi_token_flag_nonce},success:function(h){}})}}else{c.removeClass("wdi_js_error");c.addClass("wdi_js_error_no_animate");jQuery(".wdi_js_error_no_animate").show()}if(wdi_front_messages.show_alerts){}else{console.log("%c"+e,"color:#cc0000;")}}wdi_error_show=true};wdi_front.globalInit=function(){var a=wdi_front.feed_counter;if(typeof wdi_ajax.ajax_response!="undefined"){var c=wdi_feed_counter_init.wdi_feed_counter_init}else{var c=0}for(var b=c;b<=a;b++){if(jQuery("#wdi_feed_"+b).length===0){continue}var d=new WDIFeed(window["wdi_feed_"+b]);d.instagram=new WDIInstagram();d.instagram.filterArguments={feed:d};d.instagram.filters=[{where:"getUserRecentMedia",what:function(f,g,e){return g.feed.conditionalFilter(f,e)}},{where:"getTagRecentMedia",what:function(f,g,e){return g.feed.conditionalFilter(f,e)}},{where:"getRecentLikedMedia",what:function(f,g,e){return g.feed.conditionalFilter(f,e)}},{where:"requestByUrl",what:function(f,g,e){return g.feed.conditionalFilter(f,e)}}];d.instagram.addToken(d.feed_row["access_token"]);wdi_front.access_token=d.feed_row["access_token"];d.dataStorageRaw=[];d.dataStorage=[];d.dataStorageList=[];d.allResponseLength=0;d.currentResponseLength=0;d.temproraryUsersData=[];d.removedUsers=0;d.nowLoadingImages=true;d.imageIndex=0;d.resIndex=0;d.currentPage=1;d.userSortFlags=[];d.customFilterChanged=false;d.maxConditionalFiltersRequestCount=10;d.instagramRequestCounter=0;d.mediaRequestsDone=false;d.conditionalFilterBuffer=[];d.stopInfiniteScrollFlag=false;if(d.feed_row.feed_type=="masonry"){d.displayedData=[]}if(d.feed_row.feed_display_view=="pagination"){d.feed_row.resort_after_load_more=0;if(d.feed_row.feed_type!="image_browser"){d.feed_row.load_more_number=parseInt(d.feed_row.pagination_per_page_number);d.feed_row.number_of_photos=(1+parseInt(d.feed_row.pagination_preload_number))*d.feed_row.load_more_number}else{d.feed_row.number_of_photos=1+parseInt(d.feed_row.image_browser_preload_number);d.feed_row.load_more_number=parseInt(d.feed_row.image_browser_load_number)}d.freeSpaces=(Math.floor(d.feed_row.pagination_per_page_number/d.feed_row.number_of_columns)+1)*d.feed_row.number_of_columns-d.feed_row.pagination_per_page_number}else{d.freeSpaces=0}d.galleryBox=function(e){wdi_spider_createpopup(wdi_url.ajax_url+"?gallery_id="+this.feed_row.id+"&image_id="+e,this.feed_row.wdi_feed_counter,this.feed_row.lightbox_width,this.feed_row.lightbox_height,1,"testpopup",5,this)};wdi_responsive.columnControl(d);if(d.feed_row.feed_type=="masonry"){jQuery(window).trigger("resize")}wdi_front.bindEvents(d);window["wdi_feed_"+b]=d;wdi_front.init(d)}};wdi_front.init=function(c){jQuery(".wdi_js_error").hide();c.photoCounter=c.feed_row.number_of_photos;if(c.feed_row.liked_feed=="liked"){c.feed_users=["self"]}else{if(wdi_front.isJsonString(c.feed_row.feed_users)){c.feed_users=JSON.parse(c.feed_row.feed_users);if(wdi_front.updateUsersIfNecessary(c)){return}}else{wdi_front.show_alert(wdi_front_messages.invalid_users_format,false,c);return}}c.dataCount=c.feed_users.length;var a=wdi_front.getFeedItemResolution(c);c.feedImageResolution=a.image;c.feedVideoResolution=a.video;for(var b=0;b<c.dataCount;b++){wdi_front.instagramRequest(b,c)}if(c.feed_row.number_of_photos>0){wdi_front.ajaxLoader(c)}if(c.feed_row["display_header"]==="1"){wdi_front.show("header",c)}if(c.feed_row["show_usernames"]==="1"){wdi_front.show("users",c)}};wdi_front.getFeedItemResolution=function(g){var d={image:"standard_resolution",video:"standard_resolution"};if(g.feed_row.feed_resolution==="thumbnail"){return{image:"thumbnail",video:"low_bandwidth"}}else{if(g.feed_row.feed_resolution==="low"){return{image:"low_resolution",video:"low_resolution"}}else{if(g.feed_row.feed_resolution==="standard"){return{image:"standard_resolution",video:"standard_resolution"}}}}var c=jQuery("#wdi_feed_"+g.feed_row.wdi_feed_counter).find(".wdi_feed_wrapper");c.append('<div class="wdi_feed_item" id="wdi_feed_item_example"></div>');wdi_responsive.columnControl(g,1);var b=c.attr("wdi-res").split("wdi_col_");c.find("#wdi_feed_item_example").remove();if(b.length!==2){return d}var a=parseInt(b[1]);if(a<=0){return d}var f=(c.width()/a)-10;var e=d;if(f<=150){e.image="thumbnail";e.video="low_bandwidth"}else{if(f>150&&f<=320){e.image="low_resolution";e.video="low_resolution"}else{e.image="standard_resolution";e.video="standard_resolution"}}return e};wdi_front.isJsonString=function(b){try{JSON.parse(b)}catch(a){return false}return true};wdi_front.instagramRequest=function(d,b){var a=b.feed_users,c=this;if(typeof a[d]==="string"&&a[d]==="self"){b.instagram.getRecentLikedMedia({success:function(e){if(typeof e.meta!="undefined"&&typeof e.meta.error_type!="undefined"){wdi_front.show_alert(false,e,b)}b.mediaRequestsDone=true;e=c.checkMediaResponse(e,b);if(e!=false){c.saveSelfUserData(e,b)}}})}else{if(this.getInputType(a[d]["username"])=="hashtag"){b.instagram.getTagRecentMedia(this.stripHashtag(a[d]["username"]),{success:function(e){if(typeof e.meta!="undefined"&&typeof e.meta.error_type!="undefined"){wdi_front.show_alert(false,e,b)}b.mediaRequestsDone=true;e=c.checkMediaResponse(e,b);if(e!=false){c.saveUserData(e,b.feed_users[d],b)}}})}else{if(this.getInputType(a[d]["username"])=="user"){b.instagram.getUserRecentMedia(a[d]["id"],{success:function(e){if(typeof e.meta!="undefined"&&typeof e.meta.error_type!="undefined"){e.wdi_current_feed_name=a[d].username;wdi_front.show_alert(false,e,b)}b.mediaRequestsDone=true;e=c.checkMediaResponse(e,b);if(e!=false){c.saveUserData(e,b.feed_users[d],b)}}})}}}};wdi_front.isHashtag=function(a){return(a[0]==="#")};wdi_front.saveUserData=function(d,a,b){d.username=a.username;d.user_id=a.id;if(d.user_id[0]==="#"){d.data=wdi_front.appendRequestHashtag(d.data,d.user_id)}b.usersData.push(d);b.currentResponseLength=wdi_front.getArrayContentLength(b.usersData,"data");b.allResponseLength+=b.currentResponseLength;if(b.dataCount==b.usersData.length){if(b.currentResponseLength<b.feed_row.number_of_photos&&!wdi_front.userHasNoPhoto(b)){wdi_front.loadMore("initial-keep",b)}else{wdi_front.displayFeed(b);wdi_front.applyFilters(b);if(!wdi_front.activeUsersCount(b)){if(b.feed_row.feed_display_view=="load_more_btn"){var c=jQuery("#wdi_feed_"+b.feed_row.wdi_feed_counter);c.find(".wdi_load_more").addClass("wdi_hidden");c.find(".wdi_spinner").addClass("wdi_hidden")}}}}};wdi_front.saveSelfUserData=function(c,a){c.username="";c.user_id="";a.usersData.push(c);a.currentResponseLength=wdi_front.getArrayContentLength(a.usersData,"data");a.allResponseLength+=a.currentResponseLength;if(a.dataCount==a.usersData.length){if(a.currentResponseLength<a.feed_row.number_of_photos&&!wdi_front.userHasNoPhoto(a)){wdi_front.loadMore("initial-keep",a)}else{wdi_front.displayFeed(a);wdi_front.applyFilters(a);if(!wdi_front.activeUsersCount(a)){if(a.feed_row.feed_display_view=="load_more_btn"){var b=jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter);b.find(".wdi_load_more").addClass("wdi_hidden");b.find(".wdi_spinner").addClass("wdi_hidden")}}}}};wdi_front.userHasNoPhoto=function(c,e){var a=0;var d=c.usersData;if(typeof e!="undefined"){d=e}for(var b=0;b<d.length;b++){if(typeof d[b]["pagination"]=="undefined"){d[b]["pagination"]=[]}if(c.feed_row.liked_feed==="liked"){if(typeof d[b]["pagination"]["next_max_like_id"]=="undefined"){a++}}else{if(typeof d[b]["pagination"]["next_max_id"]=="undefined"){a++}}}if(a==d.length){return 1}else{return 0}};wdi_front.appendRequestHashtag=function(c,b){for(var a=0;a<c.length;a++){c[a]["wdi_hashtag"]=b}return c};wdi_front.displayFeed=function(c,b){if(c.customFilterChanged==false){var d=wdi_front.feedSort(c,b)}var a=c.customFilterChanged;if(c.customFilterChanged==true){var d=c.customFilteredData;c.parsedData=wdi_front.parseLighboxData(c,true)}if(c.feed_row.resort_after_load_more!="1"){if(c.customFilterChanged==false){c.dataStorageList=c.dataStorageList.concat(d)}}else{if(c.customFilterChanged==false){c.dataStorageList=d}}if(c.feed_row.feed_type=="masonry"){wdi_front.masonryDisplayFeedItems(d,c)}if(c.feed_row.feed_type=="thumbnails"||c.feed_row.feed_type=="blog_style"||c.feed_row.feed_type=="image_browser"){wdi_front.displayFeedItems(d,c)}var e=wdi_front.getDataLength(c);if(e<c.photoCounter&&!a&&c.instagramRequestCounter<=c.maxConditionalFiltersRequestCount&&!wdi_front.allDataHasFinished(c)){wdi_front.loadMore("",c)}else{wdi_front.allImagesLoaded(c)}if(c.instagramRequestCounter>c.maxConditionalFiltersRequestCount){wdi_front.allImagesLoaded(c);if(d.length==0){c.stopInfiniteScrollFlag=true}}if(c.feed_row.feed_display_view=="pagination"&&c.currentPage<c.paginator){jQuery("#wdi_feed_"+c.feed_row.wdi_feed_counter).find("#wdi_last_page").removeClass("wdi_disabled")}c.instagramRequestCounter=0;c.conditionalFilterBuffer=[];wdi_front.updateUsersImages(c)};wdi_front.updateUsersImages=function(a){var b=jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter).find(".wdi_single_user .wdi_user_img_wrap img");b.each(function(){if(jQuery(this).attr("src")==wdi_url.plugin_url+"images/missing.png"||jQuery(this).attr("src")==""){if(a.feed_row.liked_feed=="liked"){return}for(var c=0;c<a.usersData.length;c++){if(a.usersData[c]["username"]==jQuery(this).parent().parent().find("h3").text()){if(a.usersData[c]["data"].length!=0){jQuery(this).attr("src",a.usersData[c]["data"][0]["images"]["thumbnail"]["url"])}}}}})};wdi_front.masonryDisplayFeedItems=function(d,h){var b=[];var p=[];if(jQuery("#wdi_feed_"+h.feed_row.wdi_feed_counter+" .wdi_feed_wrapper").length==0){return}jQuery("#wdi_feed_"+h.feed_row.wdi_feed_counter+" .wdi_masonry_column").each(function(){if(h.feed_row.resort_after_load_more==1){jQuery(this).html("");h.imageIndex=0}if(h.customFilterChanged==true){jQuery(this).html("");h.imageIndex=0}if(h.feed_row.feed_display_view=="pagination"){b.push(0)}else{b.push(jQuery(this).height())}p.push(jQuery(this))});if(h.customFilterChanged==true){h.customFilterChanged=false}for(var e=0;e<d.length;e++){h.displayedData.push(d[e]);if(d[e]["type"]=="image"){var n=wdi_front.getPhotoTemplate(h)}else{if(d[e].hasOwnProperty("videos")){var n=wdi_front.getVideoTemplate(h)}else{var n=wdi_front.getSliderTemplate(h)}}var g=d[e];var o=wdi_front.createObject(g,h);var f=n(o);var m=wdi_front.array_min(b);var l=wdi_front.getImageResolution(d[e]);p[m.index].html(p[m.index].html()+f);b[m.index]+=p[m.index].width()*l;h.imageIndex++;if(h.feed_row.feed_display_view=="pagination"){if((e+1)%h.feed_row.pagination_per_page_number===0){h.resIndex+=h.freeSpaces+1}else{h.resIndex++}}}h.wdi_loadedImages=0;var j=false;h.wdi_load_count=e;var a=h.feed_row.wdi_feed_counter;var k=jQuery("#wdi_feed_"+a+" img.wdi_img").on("load",function(){h.wdi_loadedImages++;c();if(j===false){wdi_responsive.columnControl(h,1);j=true}});c();function c(){if(h.wdi_load_count===h.wdi_loadedImages&&h.wdi_loadedImages!=0){h.loadedImages=0;h.wdi_load_count=0;wdi_front.allImagesLoaded(h)}}if(h.paginatorNextFlag==true){wdi_front.updatePagination(h,"next")}h.infiniteScrollFlag=false};wdi_front.getImageResolution=function(c){var d=c.images["standard_resolution"]["width"];var b=c.images["standard_resolution"]["height"];var a=b/d;return a};wdi_front.getDataLength=function(b,d){var c=0;if(typeof d==="undefined"){for(var a=0;a<b.dataStorage.length;a++){c+=b.dataStorage[a].length}}else{for(var a=0;a<d.length;a++){c+=d[a].length}}return c};wdi_front.getArrayContentLength=function(d,c){var b=0;for(var a=0;a<d.length;a++){if(d[a]["finished"]=="finished"){continue}b+=d[a][c].length}return b};wdi_front.displayFeedItems=function(d,j){if(jQuery("#wdi_feed_"+j.feed_row.wdi_feed_counter+" .wdi_feed_wrapper").length==0){return}var a=j.feed_row.wdi_feed_counter;var l=jQuery("#wdi_feed_"+a+" .wdi_feed_wrapper");if(j.feed_row.resort_after_load_more==="1"){l.html("");j.imageIndex=0}if(j.customFilterChanged==true){l.html("");j.imageIndex=0;j.customFilterChanged=false}var g=wdi_front.getImgCount(j)-d.length-1;if(j.feed_row.feed_display_view=="pagination"){var b=j.feed_row.load_more_number;if(j.feed_row.feed_type=="image_browser"){b=1}if(jQuery("#wdi_feed_"+j.feed_row.wdi_feed_counter+' [wdi_page="'+(j.currentPage-1)+'"]').length<b||d.length==0){j.currentPage=(--j.currentPage<=1)?1:j.currentPage}}for(var e=0;e<d.length;e++){if(d[e]["type"]=="image"){var m=wdi_front.getPhotoTemplate(j)}else{if(d[e].hasOwnProperty("videos")){var m=wdi_front.getVideoTemplate(j)}else{var m=wdi_front.getSliderTemplate(j)}}var h=d[e];var n=wdi_front.createObject(h,j);var f=m(n);l.html(l.html()+f);j.imageIndex++;if(j.feed_row.feed_display_view=="pagination"){if((e+1)%j.feed_row.pagination_per_page_number===0){j.resIndex+=j.freeSpaces+1}else{j.resIndex++}}}j.wdi_loadedImages=0;var k=false;j.wdi_load_count=e;var a=j.feed_row.wdi_feed_counter;var l=jQuery("#wdi_feed_"+a+" img.wdi_img").on("load",function(){j.wdi_loadedImages++;c();if(k===false){wdi_responsive.columnControl(j,1);k=true}});function c(){if(j.wdi_load_count===j.wdi_loadedImages&&j.wdi_loadedImages!=0){j.loadedImages=0;j.wdi_load_count=0;wdi_front.allImagesLoaded(j)}}if(j.paginatorNextFlag==true){wdi_front.updatePagination(j,"next")}j.infiniteScrollFlag=false};wdi_front.checkFeedFinished=function(b){for(var a=0;a<b.usersData.length;a++){if(typeof b.usersData[a]["finished"]=="undefined"){return false}}return true};wdi_front.sortingOperator=function(c,b){var a;switch(c){case"date":switch(b){case"asc":a=function(e,d){return(e.created_time>d.created_time)?1:-1};break;case"desc":a=function(e,d){return(e.created_time>d.created_time)?-1:1};break}break;case"likes":switch(b){case"asc":a=function(e,d){return(e.likes["count"]<d.likes["count"])?-1:1};break;case"desc":a=function(e,d){return(e.likes["count"]<d.likes["count"])?1:-1};break}break;case"comments":switch(b){case"asc":a=function(e,d){return(e.comments["count"]<d.comments["count"])?-1:1};break;case"desc":a=function(e,d){return(e.comments["count"]<d.comments["count"])?1:-1};break}break;case"random":a=function(e,d){var f=Math.random();return(f>0.5)?1:-1};break}return a};wdi_front.feedSort=function(e,b){var d=e.feed_row.sort_images_by;var c=e.feed_row.display_order;if(e.feed_row.resort_after_load_more==="1"){e.data=e.data.concat(wdi_front.smartPicker(e,b))}else{e.data=wdi_front.smartPicker(e,b)}var a=wdi_front.sortingOperator(d,c);e.data.sort(a);return e.data};wdi_front.smartPicker=function(l,c){var g=[];var a=0;var k=[];var f=Math.ceil(l.feed_row["number_of_photos"]/l.usersData.length);var b=parseInt(l.feed_row["number_of_photos"]);var n=0;if(c!=""&&typeof c!="undefined"&&c!=null){b=parseInt(c);f=Math.ceil(b/wdi_front.activeUsersCount(l))}var j=function(p,i){return(p.data.length>i.data.length)?1:-1};var e=function(p,i){return(p.length()>i.length())?1:-1};l.storeRawData(l.usersData,"dataStorageRaw");var o=l.dataStorageRaw.sort(e);var h=l.usersData.sort(j);for(var d=0;d<h.length;d++){n+=f;if(o[d].length()<=n){n-=o[d].length();g.push(o[d].getData(o[d].length()));a+=g[g.length-1].length}else{if(a+n>b){n=b-a}var m=[];if(l.auto_trigger===false){m=m.concat(o[d].getData(n))}else{if(m.length+wdi_front.getDataLength(l)+wdi_front.getDataLength(l,g)<l.feed_row["number_of_photos"]){m=m.concat(o[d].getData(n))}}n=0;a+=m.length;g.push(m)}}for(d=0;d<g.length;d++){if(typeof l.dataStorage[d]==="undefined"){l.dataStorage.push(g[d])}else{l.dataStorage[d]=l.dataStorage[d].concat(g[d])}}l.parsedData=wdi_front.parseLighboxData(l);for(d=0;d<g.length;d++){k=k.concat(g[d])}return k};wdi_front.createObject=function(e,h){var j=(e.caption!=null)?e.caption["text"]:" ";var i="";if(e.type=="video"){i=e.hasOwnProperty("videos")?e.videos[h.feedVideoResolution]["url"]:""}var f=e.images[h.feedImageResolution].url;var a=h.imageIndex;var b="square";var d=e.images["standard_resolution"]["height"];var g=e.images["standard_resolution"]["width"];if(d>g){b="portrait"}else{if(d<g){b="landscape"}}var c={id:e.id,caption:j,image_url:f,likes:e.likes["count"],comments:e.comments["count"],wdi_index:a,wdi_res_index:h.resIndex,wdi_media_user:e.user["username"],link:e.link,video_url:i,wdi_username:e.user["username"],wdi_shape:b};return c};wdi_front.setPage=function(c){var b=c.feed_row.feed_display_view;var e=c.feed_row.feed_type;if(b!="pagination"){return""}var a=c.imageIndex;if(e=="image_browser"){var d=1}else{var d=Math.abs(c.feed_row.pagination_per_page_number)}c.paginator=Math.ceil((a+1)/d);return c.paginator};wdi_front.getPhotoTemplate=function(g){var e=wdi_front.setPage(g);var j="";var k="";var l="";var d="";var m="fa-arrows-alt";var c="";if(g.feed_row.feed_type=="blog_style"||g.feed_row.feed_type=="image_browser"){m=""}if(e!=""){k='wdi_page="'+e+'"';sourceAttr="src"}else{sourceAttr="src"}if(e!=""&&e!=1){j="wdi_hidden"}if(g.feed_row.show_username_on_thumb=="1"){c='<span class="wdi_media_user">@<%= wdi_username%></span>'}if(g.feed_row.show_full_description==1&&g.feed_row.feed_type=="masonry"){j+=" wdi_full_caption"}var f="";if(g.feed_row.feed_type!=="blog_style"){if(g.feed_row.feed_type=="masonry"){f="wdi_responsive.showMasonryCaption(jQuery(this),"+g.feed_row.wdi_feed_counter+");"}else{f="wdi_responsive.showCaption(jQuery(this),"+g.feed_row.wdi_feed_counter+");"}}switch(g.feed_row.feed_item_onclick){case"lightbox":l="onclick=wdi_feed_"+g.feed_row.wdi_feed_counter+".galleryBox('<%=id%>')";break;case"instagram":l="onclick=\"window.open ('<%= link%>','_blank')\"";d="wdi_hover_off";m="";break;case"custom_redirect":l="onclick=\"window.open ('"+g.feed_row.redirect_url+"','_self')\"";d="wdi_hover_off";m="";break;case"none":l="";d="wdi_cursor_off wdi_hover_off";m=""}var h="<%= wdi_shape == 'square' ? 'wdi_shape_square' : (wdi_shape == 'portrait' ? 'wdi_shape_portrait' : (wdi_shape == 'landscape' ? 'wdi_shape_landscape' : 'wdi_shape_square') ) %>";var b=g.feed_row.wdi_feed_counter;var a='<div class="wdi_feed_item '+j+'" wdi_index=<%= wdi_index%> wdi_res_index=<%= wdi_res_index%> wdi_media_user=<%= wdi_media_user%> '+k+' wdi_type="image" id="wdi_'+b+'_<%=id%>"><div class="wdi_photo_wrap"><div class="wdi_photo_wrap_inner"><div class="wdi_photo_img '+h+'"><img class="wdi_img" '+sourceAttr+'="<%=image_url%>" alt="feed_image" onerror="wdi_front.brokenImageHandler(this);"><div class="wdi_photo_overlay '+d+'" >'+c+'<div class="wdi_thumb_icon" '+l+' style="display:table;width:100%;height:100%;"><div style="display:table-cell;vertical-align:middle;text-align:center;color:white;"><i class="fa '+m+'"></i></div></div></div></div></div></div>';if(g.feed_row["show_likes"]==="1"||g.feed_row["show_comments"]==="1"||g.feed_row["show_description"]==="1"){a+='<div class="wdi_photo_meta">';if(g.feed_row["show_likes"]==="1"){a+='<div class="wdi_thumb_likes"><i class="fa fa-heart-o"> <%= likes%></i></div>'}if(g.feed_row["show_comments"]==="1"){a+='<div class="wdi_thumb_comments"><i class="fa fa-comment-o"> <%= comments%></i></div>'}a+='<div class="wdi_clear"></div>';if(g.feed_row["show_description"]==="1"){a+='<div class="wdi_photo_title" onclick='+f+" ><%=caption%></div>"}a+="</div>"}a+="</div>";var i=_.template(a);return i};wdi_front.getSliderTemplate=function(g){var e=wdi_front.setPage(g);var j="";var k="";var l="";var d="";var m="fa-clone";var c="";if(g.feed_row.feed_type=="blog_style"||g.feed_row.feed_type=="image_browser"){m=""}if(e!=""){k='wdi_page="'+e+'"';sourceAttr="src"}else{sourceAttr="src"}if(e!=""&&e!=1){j="wdi_hidden"}if(g.feed_row.show_username_on_thumb=="1"){c='<span class="wdi_media_user">@<%= wdi_username%></span>'}if(g.feed_row.show_full_description==1&&g.feed_row.feed_type=="masonry"){j+=" wdi_full_caption"}var f="";if(g.feed_row.feed_type!=="blog_style"){if(g.feed_row.feed_type=="masonry"){f="wdi_responsive.showMasonryCaption(jQuery(this),"+g.feed_row.wdi_feed_counter+");"}else{f="wdi_responsive.showCaption(jQuery(this),"+g.feed_row.wdi_feed_counter+");"}}switch(g.feed_row.feed_item_onclick){case"lightbox":l="onclick=wdi_feed_"+g.feed_row.wdi_feed_counter+".galleryBox('<%=id%>')";break;case"instagram":l="onclick=\"window.open ('<%= link%>','_blank')\"";d="wdi_hover_off";m="fa-clone";break;case"custom_redirect":l="onclick=\"window.open ('"+g.feed_row.redirect_url+"','_self')\"";d="wdi_hover_off";m="";break;case"none":l="";d="wdi_cursor_off wdi_hover_off";m=""}var h="<%= wdi_shape == 'square' ? 'wdi_shape_square' : (wdi_shape == 'portrait' ? 'wdi_shape_portrait' : (wdi_shape == 'landscape' ? 'wdi_shape_landscape' : 'wdi_shape_square') ) %>";var b=g.feed_row.wdi_feed_counter;var a='<div class="wdi_feed_item '+j+'" wdi_index=<%= wdi_index%> wdi_res_index=<%= wdi_res_index%> wdi_media_user=<%= wdi_media_user%> '+k+' wdi_type="slideshow" id="wdi_'+b+'_<%=id%>"><div class="wdi_photo_wrap"><div class="wdi_photo_wrap_inner"><div class="wdi_photo_img '+h+'"><img class="wdi_img" '+sourceAttr+'="<%=image_url%>" alt="feed_image" onerror="wdi_front.brokenImageHandler(this);"><div class="wdi_photo_overlay '+d+'" >'+c+'<div class="wdi_thumb_icon" '+l+' style="display:table;width:100%;height:100%;"><div style="display:table-cell;vertical-align:middle;text-align:center;color:white;"><i class="fa '+m+'"></i></div></div></div></div></div></div>';if(g.feed_row["show_likes"]==="1"||g.feed_row["show_comments"]==="1"||g.feed_row["show_description"]==="1"){a+='<div class="wdi_photo_meta">';if(g.feed_row["show_likes"]==="1"){a+='<div class="wdi_thumb_likes"><i class="fa fa-heart-o"> <%= likes%></i></div>'}if(g.feed_row["show_comments"]==="1"){a+='<div class="wdi_thumb_comments"><i class="fa fa-comment-o"> <%= comments%></i></div>'}a+='<div class="wdi_clear"></div>';if(g.feed_row["show_description"]==="1"){a+='<div class="wdi_photo_title" onclick='+f+" ><%=caption%></div>"}a+="</div>"}a+="</div>";var i=_.template(a);return i};wdi_front.replaceToVideo=function(b,a,c){overlayHtml="<video style='width:auto !important; height:auto !important; max-width:100% !important; max-height:100% !important; margin:0 !important;' controls=''><source src='"+b+"' type='video/mp4'>Your browser does not support the video tag. </video>";jQuery("#wdi_feed_"+c+' [wdi_index="'+a+'"] .wdi_photo_wrap_inner').html(overlayHtml);jQuery("#wdi_feed_"+c+' [wdi_index="'+a+'"] .wdi_photo_wrap_inner video').get(0).play()};wdi_front.getVideoTemplate=function(h){var f=wdi_front.setPage(h);var k="";var l="";var n="fa-play";var m="";var d="";var e;var c="";if(f!=""){l='wdi_page="'+f+'"';e="src"}else{e="src"}if(f!=""&&f!=1){k="wdi_hidden"}if(h.feed_row.show_username_on_thumb=="1"){c='<span class="wdi_media_user">@<%= wdi_username%></span>'}if(h.feed_row.show_full_description==1&&h.feed_row.feed_type=="masonry"){k+=" wdi_full_caption"}var g="";if(h.feed_row.feed_type!=="blog_style"){if(h.feed_row.feed_type=="masonry"){g="wdi_responsive.showMasonryCaption(jQuery(this),"+h.feed_row.wdi_feed_counter+");"}else{g="wdi_responsive.showCaption(jQuery(this),"+h.feed_row.wdi_feed_counter+");"}}switch(h.feed_row.feed_item_onclick){case"lightbox":m="onclick=wdi_feed_"+h.feed_row.wdi_feed_counter+".galleryBox('<%=id%>')";break;case"instagram":m="onclick=\"window.open ('<%= link%>','_blank')\"";d="wdi_hover_off";n="fa-play";break;case"custom_redirect":m="onclick=\"window.open ('"+h.feed_row.redirect_url+"','_self')\"";d="wdi_hover_off";n="";break;case"none":d="wdi_cursor_off wdi_hover_off";n="";if(h.feed_row.feed_type=="blog_style"||h.feed_row.feed_type=="image_browser"){m="onclick=wdi_front.replaceToVideo('<%= video_url%>','<%= wdi_index%>',"+h.feed_row.wdi_feed_counter+")";d="";n="fa-play"}}var i="<%= wdi_shape == 'square' ? 'wdi_shape_square' : (wdi_shape == 'portrait' ? 'wdi_shape_portrait' : (wdi_shape == 'landscape' ? 'wdi_shape_landscape' : 'wdi_shape_square') ) %>";var b=h.feed_row.wdi_feed_counter;var a='<div class="wdi_feed_item '+k+'" wdi_index=<%= wdi_index%> wdi_res_index=<%= wdi_res_index%> wdi_media_user=<%= wdi_media_user%> '+l+' wdi_type="image" id="wdi_'+b+'_<%=id%>"><div class="wdi_photo_wrap"><div class="wdi_photo_wrap_inner"><div class="wdi_photo_img '+i+'"><img class="wdi_img" '+e+'="<%=image_url%>" alt="feed_image" onerror="wdi_front.brokenImageHandler(this);"><div class="wdi_photo_overlay '+d+'" '+m+">"+c+'<div class="wdi_thumb_icon" style="display:table;width:100%;height:100%;"><div style="display:table-cell;vertical-align:middle;text-align:center;color:white;"><i class="fa '+n+'"></i></div></div></div></div></div></div>';if(h.feed_row["show_likes"]==="1"||h.feed_row["show_comments"]==="1"||h.feed_row["show_description"]==="1"){a+='<div class="wdi_photo_meta">';if(h.feed_row["show_likes"]==="1"){a+='<div class="wdi_thumb_likes"><i class="fa fa-heart-o"> <%= likes%></i></div>'}if(h.feed_row["show_comments"]==="1"){a+='<div class="wdi_thumb_comments"><i class="fa fa-comment-o"> <%= comments%></i></div>'}a+='<div class="wdi_clear"></div>';if(h.feed_row["show_description"]==="1"){a+='<div class="wdi_photo_title" onclick='+g+" ><%=caption%></div>"}a+="</div>"}a+="</div>";var j=_.template(a);return j};wdi_front.bindEvents=function(a){if(jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter+" .wdi_feed_wrapper").length==0){return}if(a.feed_row.feed_display_view=="load_more_btn"){jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter+" .wdi_load_more_container").on(wdi_front.clickOrTouch,function(){wdi_front.loadMore(jQuery(this).find(".wdi_load_more_wrap"))})}if(a.feed_row.feed_display_view=="pagination"){jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter+" #wdi_next").on(wdi_front.clickOrTouch,function(){wdi_front.paginatorNext(jQuery(this),a)});jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter+" #wdi_prev").on(wdi_front.clickOrTouch,function(){wdi_front.paginatorPrev(jQuery(this),a)});jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter+" #wdi_last_page").on(wdi_front.clickOrTouch,function(){wdi_front.paginationLastPage(jQuery(this),a)});jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter+" #wdi_first_page").on(wdi_front.clickOrTouch,function(){wdi_front.paginationFirstPage(jQuery(this),a)});a.paginatorNextFlag=false}if(a.feed_row.feed_display_view=="infinite_scroll"){jQuery(window).on("scroll",function(){wdi_front.infiniteScroll(a)});a.infiniteScrollFlag=false}};wdi_front.infiniteScroll=function(a){if((jQuery(window).scrollTop()+jQuery(window).height()-100)>=jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter+" #wdi_infinite_scroll").offset().top){if(a.infiniteScrollFlag===false&&a.stopInfiniteScrollFlag==false){a.infiniteScrollFlag=true;wdi_front.loadMore(jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter+" #wdi_infinite_scroll"),a)}else{if(a.stopInfiniteScrollFlag){wdi_front.allImagesLoaded(a)}}}};wdi_front.paginationFirstPage=function(b,c){if(c.paginator==1||c.currentPage==1){b.addClass("wdi_disabled");return}var d=c.currentPage;c.currentPage=1;wdi_front.updatePagination(c,"custom",d);var a=b.parent().find("#wdi_last_page");a.removeClass("wdi_disabled");b.addClass("wdi_disabled")};wdi_front.paginationLastPage=function(a,b){if(b.paginator==1||b.currentPage==b.paginator){return}var d=b.currentPage;b.currentPage=b.paginator;wdi_front.updatePagination(b,"custom",d);a.addClass("wdi_disabled");var c=a.parent().find("#wdi_first_page");c.removeClass("wdi_disabled")};wdi_front.paginatorNext=function(b,c){var a=b.parent().find("#wdi_last_page");var d=b.parent().find("#wdi_first_page");c.paginatorNextFlag=true;if(c.paginator==c.currentPage&&!wdi_front.checkFeedFinished(c)){c.currentPage++;var e=c.feed_row.number_of_photos;wdi_front.loadMore(b,c,e);a.addClass("wdi_disabled")}else{if(c.paginator>c.currentPage){c.currentPage++;wdi_front.updatePagination(c,"next");if(c.paginator>c.currentPage){a.removeClass("wdi_disabled")}else{a.addClass("wdi_disabled")}}}d.removeClass("wdi_disabled")};wdi_front.paginatorPrev=function(b,c){var a=b.parent().find("#wdi_last_page");var d=b.parent().find("#wdi_first_page");if(c.currentPage==1){d.addClass("wdi_disabled");return}c.currentPage--;wdi_front.updatePagination(c,"prev");a.removeClass("wdi_disabled");if(c.currentPage==1){d.addClass("wdi_disabled")}};wdi_front.updatePagination=function(b,a,d){var c="#wdi_feed_"+b.feed_row.wdi_feed_counter;jQuery(c+' [wdi_page="'+b.currentPage+'"]').each(function(){jQuery(this).removeClass("wdi_hidden")});switch(a){case"next":var d=b.currentPage-1;jQuery(c+" .wdi_feed_wrapper").height(jQuery(".wdi_feed_wrapper").height());jQuery(c+' [wdi_page="'+d+'"]').each(function(){jQuery(this).addClass("wdi_hidden")});break;case"prev":var d=b.currentPage+1;jQuery(c+" .wdi_feed_wrapper").height(jQuery(".wdi_feed_wrapper").height());jQuery(c+' [wdi_page="'+d+'"]').each(function(){jQuery(this).addClass("wdi_hidden")});break;case"custom":var d=d;if(d!=b.currentPage){jQuery(c+" .wdi_feed_wrapper").height(jQuery(".wdi_feed_wrapper").height());jQuery(c+' [wdi_page="'+d+'"]').each(function(){jQuery(this).addClass("wdi_hidden")})}break}b.paginatorNextFlag=false;jQuery(c+" .wdi_feed_wrapper").css("height","auto");jQuery(c+" #wdi_current_page").text(b.currentPage)};wdi_front.loadMore=function(f,k){var b=0;if(f!=""&&typeof f!="undefined"&&f!="initial"&&f!="initial-keep"){var l=window[f.parent().parent().parent().parent().attr("id")]}if(typeof k!="undefined"){var l=k}var n=0,g=0;for(var e=0;e<l.userSortFlags.length;e++){if(l.userSortFlags[e].flag===true){n++;for(var d=0;d<l.usersData.length;d++){if(l.userSortFlags[e]["id"]===l.usersData[d]["user_id"]){if(l.usersData[d]["finished"]==="finished"){g++}}}}}if(n===g&&n!=0){return}if(f===""){l.auto_trigger=true}else{l.auto_trigger=false}wdi_front.ajaxLoader(l);if(l.feed_row.feed_type==="masonry"&&l.feed_row.feed_display_view=="pagination"){jQuery("#wdi_feed_"+wdi_front.feed_counter+" .wdi_full_caption").each(function(){jQuery(this).find(".wdi_photo_title").trigger(wdi_front.clickOrTouch)})}for(var e=0;e<l.usersData.length;e++){if(l.usersData[e]["finished"]==="finished"){b++}}if(b===l.usersData.length){wdi_front.allImagesLoaded(l);jQuery("#wdi_feed_"+l.feed_row["wdi_feed_counter"]+" .wdi_load_more").remove()}var h=l.usersData;l.loadMoreDataCount=l.feed_users.length;for(var e=0;e<h.length;e++){var m=h[e]["pagination"];var c={user_id:h[e]["user_id"],username:h[e]["username"]};if(m.next_url!=""&&m.next_url!=null&&typeof m.next_url!="undefined"){var a=m.next_url;wdi_front.loadMoreRequest(c,a,l,f)}else{if(f=="initial-keep"){l.temproraryUsersData[e]=l.usersData[e]}l.loadMoreDataCount--;wdi_front.checkForLoadMoreDone(l,f);continue}}};wdi_front.loadMoreRequest=function(b,a,e,d){if(!e.mediaRequestsDone){return}var f=e.usersData;var c="";e.instagram.requestByUrl(a,{success:function(g){if(typeof g.meta!="undefined"&&typeof g.meta.error_type!="undefined"){wdi_front.show_alert(false,g,e)}if(g===""||typeof g=="undefined"||g==null){c=wdi_front_messages.network_error;e.loadMoreDataCount--;wdi_front.show_alert(c,g,e);return}if(g.meta["code"]!=200){c=g.meta["error_message"];e.loadMoreDataCount--;wdi_front.show_alert(c,g,e);return}g.user_id=b.user_id;g.username=b.username;for(var h=0;h<e.usersData.length;h++){if(g.user_id===e.usersData[h]["user_id"]){if(g.user_id[0]==="#"){g.data=wdi_front.appendRequestHashtag(g.data,g.user_id)}if(d=="initial-keep"){e.temproraryUsersData[h]=e.usersData[h]}e.usersData[h]=g;e.loadMoreDataCount--}}wdi_front.checkForLoadMoreDone(e,d)}})};wdi_front.checkForLoadMoreDone=function(c,b){var a=c.feed_row.load_more_number;var e=c.feed_row.number_of_photos;if(c.loadMoreDataCount==0){c.temproraryUsersData=wdi_front.mergeData(c.temproraryUsersData,c.usersData);var d=wdi_front.getArrayContentLength(c.temproraryUsersData,"data");if(b=="initial-keep"){b="initial"}if(b=="initial"){if(d<e&&!wdi_front.userHasNoPhoto(c,c.temproraryUsersData)&&c.instagramRequestCounter<=c.maxConditionalFiltersRequestCount){wdi_front.loadMore("initial",c)}else{c.usersData=c.temproraryUsersData;wdi_front.displayFeed(c);wdi_front.applyFilters(c);c.temproraryUsersData=[]}}else{if(d<a&&!wdi_front.userHasNoPhoto(c,c.temproraryUsersData)&&c.instagramRequestCounter<=c.maxConditionalFiltersRequestCount){wdi_front.loadMore(undefined,c)}else{c.usersData=c.temproraryUsersData;if(!wdi_front.activeUsersCount(c)){return}wdi_front.displayFeed(c,a);wdi_front.applyFilters(c);c.temproraryUsersData=[]}}}};wdi_front.allDataHasFinished=function(b){var d=0;for(var a=0;a<b.dataStorageRaw.length;a++){if(b.dataStorageRaw[a].length()==0&&b.dataStorageRaw[a].locked==true){d++}}return(d==b.dataStorageRaw.length)};wdi_front.mergeData=function(c,b){for(var a=0;a<b.length;a++){if(typeof c[a]!="undefined"){if(b[a]["finished"]=="finished"){continue}if(typeof c[a]["pagination"]["next_max_id"]=="undefined"&&typeof c[a]["pagination"]["next_max_like_id"]=="undefined"){continue}c[a]["data"]=c[a]["data"].concat(b[a]["data"]);c[a]["pagination"]=b[a]["pagination"];c[a]["user_id"]=b[a]["user_id"];c[a]["username"]=b[a]["username"];c[a]["meta"]=b[a]["meta"]}else{c.push(b[a])}}return c};wdi_front.brokenImageHandler=function(a){a.src=wdi_url.plugin_url+"images/missing.png";a.onerror="";return true};wdi_front.ajaxLoader=function(a){var d=a.feed_row.wdi_feed_counter;var c=jQuery("#wdi_feed_"+d);if(a.feed_row.feed_display_view=="load_more_btn"){c.find(".wdi_load_more").addClass("wdi_hidden");c.find(".wdi_spinner").removeClass("wdi_hidden")}if(a.feed_row.feed_display_view=="infinite_scroll"){var b;if(c.find(".wdi_ajax_loading").length==0){b=jQuery('<div class="wdi_ajax_loading"><div><div><img class="wdi_load_more_spinner" src="'+wdi_url.plugin_url+'images/ajax_loader.png"></div></div></div>');c.append(b)}else{b=c.find(".wdi_ajax_loading")}b.removeClass("wdi_hidden")}};wdi_front.allImagesLoaded=function(a){var d=wdi_front.getDataLength(a);if(!a.mediaRequestsDone){jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter+" .wdi_feed_wrapper").remove("wdi_nomedia")}if(d==0&&a.mediaRequestsDone&&(a.feed_row.conditional_filters.length==0||a.feed_row.conditional_filter_enable==0)){jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter+" .wdi_feed_wrapper").append("<p class='wdi_nomedia'>"+wdi_front_messages.feed_nomedia+"</p>")}var c=a.feed_row.wdi_feed_counter;var b=jQuery("#wdi_feed_"+c);if(a.feed_row.feed_display_view=="load_more_btn"){b.find(".wdi_load_more").removeClass("wdi_hidden");b.find(".wdi_spinner").addClass("wdi_hidden")}if(a.feed_row.feed_display_view=="infinite_scroll"){jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter+" .wdi_ajax_loading").addClass("wdi_hidden")}b.trigger("wdi_feed_loaded")};wdi_front.show=function(b,c){var e=c.feed_row.wdi_feed_counter;var d=jQuery("#wdi_feed_"+e+" .wdi_feed_container");var g=this;switch(b){case"header":f();break;case"users":a(c);break}function f(){var i={feed_thumb:c.feed_row["feed_thumb"],feed_name:c.feed_row["feed_name"]};var k=wdi_front.getHeaderTemplate(),h=k(i),j=d.find(".wdi_feed_header").html();d.find(".wdi_feed_header").html(j+h)}function a(j){d.find(".wdi_feed_users").html("");var n=j.feed_users;var m=j.feed_row["access_token"];var h=0;j.headerUserinfo=[];k();function k(){if(j.headerUserinfo.length==n.length){l(j.headerUserinfo,j);return}var i=n[j.headerUserinfo.length];if(typeof i==="string"&&i==="self"){j.instagram.getSelfInfo({success:function(o){if(typeof o.meta!="undefined"&&typeof o.meta.error_type!="undefined"){wdi_front.show_alert(false,o,j)}o=g.checkMediaResponse(o,j);if(o!=false&&o.meta["code"]===400&&o.meta["error_type"]==="APINotAllowedError"){var p=null;j.headerUserinfo.push(p);h++;k()}if(o!=false&&o.meta["code"]===200){var p={id:o.data["id"],name:o.data["username"],url:o.data["profile_picture"],bio:o.data["bio"],counts:o.data["counts"],website:o.data["website"],full_name:o.data["full_name"]};j.headerUserinfo.push(p);h++;k()}},args:{ignoreFiltering:true}})}else{if(g.getInputType(i.username)=="hashtag"){j.instagram.searchForTagsByName(g.stripHashtag(i.username),{success:function(o){if(typeof o.meta!="undefined"&&typeof o.meta.error_type!="undefined"){wdi_front.show_alert(false,o,j)}o=g.checkMediaResponse(o,j);if(o!=false){if(o.data.length==0){var p="";var q={media:""}}else{var p="";var q={media:o.data[0]["media_count"]}}var r={name:n[h]["username"],url:p,counts:q};h++;j.headerUserinfo.push(r);k()}},args:{ignoreFiltering:true}})}else{if(g.getInputType(i.username)=="user"){j.instagram.getUserInfo(i.id,{success:function(o){if(typeof o.meta!="undefined"&&typeof o.meta.error_type!="undefined"){wdi_front.show_alert(false,o,j)}o=g.checkMediaResponse(o,j);if(o!=false&&o.meta["code"]===400&&o.meta["error_type"]==="APINotAllowedError"){var p=null;j.headerUserinfo.push(p);h++;k()}if(o!=false&&o.meta["code"]===200){var p={id:o.data["id"],name:o.data["username"],url:o.data["profile_picture"],bio:o.data["bio"],counts:o.data["counts"],website:o.data["website"],full_name:o.data["full_name"]};j.headerUserinfo.push(p);h++;k()}},args:{ignoreFiltering:true}})}}}}function l(i,t){d.find(".wdi_feed_users").html("");for(var q=0;q<i.length;q++){if(i[q]===null){continue}var u={flag:false,id:i[q]["id"],name:i[q]["name"]};var p=(i[q]["name"][0]=="#")?"wdi_header_hashtag":"";var o={user_index:q,user_img_url:i[q]["url"],counts:i[q]["counts"],feed_counter:t.feed_row.wdi_feed_counter,user_name:i[q]["name"],bio:i[q]["bio"],usersCount:t.feed_row.feed_users.length,hashtagClass:p};var w=wdi_front.getUserTemplate(t,i[q]["name"]),r=w(o),s=d.find(".wdi_feed_users").html();d.find(".wdi_feed_users").html(s+r);t.userSortFlags.push(u);var v=jQuery('<div class="wdi_clear"></div>')}d.find(".wdi_feed_users").append(v);wdi_front.updateUsersImages(t)}}};wdi_front.getUserTemplate=function(c,h){var a=c.dataCount,d,f,g;switch(h[0]){case"#":d="//instagram.com/explore/tags/"+h.substr(1,h.length);break;default:d="//instagram.com/"+h;break}g='window.open("'+d+'","_blank")';f="onclick='"+g+"'";var e='<div class="wdi_single_user" user_index="<%=user_index%>"><div class="wdi_header_user_text <%=hashtagClass%>"><div class="wdi_user_img_wrap"><img onerror="wdi_front.brokenImageHandler(this);" src="<%= user_img_url%>">';if(a>1){e+='<div title="'+wdi_front_messages.filter_title+'" class="wdi_filter_overlay"><div class="wdi_filter_icon"><span onclick="wdi_front.addFilter(<%=user_index%>,<%=feed_counter%>);" class="fa fa-filter"></span></div></div>'}e+="</div>";e+="<h3 "+f+"><%= user_name%></h3>";if(h[0]!=="#"){if(c.feed_row.follow_on_instagram_btn=="1"){e+='<div class="wdi_user_controls"><div class="wdi_follow_btn" onclick="window.open(\'//instagram.com/<%= user_name%>\',\'_blank\')"><span> '+wdi_front_messages.follow+"</span></div></div>"}e+='<div class="wdi_media_info"><p class="wdi_posts"><span class="fa fa-camera-retro"><%= counts.media%></span></p><p class="wdi_followers"><span class="fa fa-user"><%= counts.followed_by%></span></p></div>'}else{e+='<div class="wdi_user_controls"></div><div class="wdi_media_info"><p class="wdi_posts"><span class="fa fa-camera-retro"><%= counts.media%></span></p><p class="wdi_followers"><span></span></p></div>'}e+='<div class="wdi_clear"></div>';if(a==1&&h[0]!=="#"&&c.feed_row.display_user_info=="1"){e+='<div class="wdi_bio"><%= bio%></div>'}e+="</div></div>";var b=_.template(e);return b};wdi_front.getHeaderTemplate=function(){var b='<div class="wdi_header_wrapper"><div class="wdi_header_img_wrap"><img src="<%=feed_thumb%>"></div><div class="wdi_header_text"><%=feed_name%></div><div class="wdi_clear"></div>';var a=_.template(b);return a};wdi_front.addFilter=function(e,g){var f=window["wdi_feed_"+g];var d=f.dataCount;if(d<2){return}if(f.nowLoadingImages!=false){return}else{var c=jQuery("#wdi_feed_"+f.feed_row.wdi_feed_counter+'_users [user_index="'+e+'"]');c.find(".wdi_filter_overlay").toggleClass("wdi_filter_active_bg");c.find(".wdi_header_user_text h3").toggleClass("wdi_filter_active_col");c.find(".wdi_media_info").toggleClass("wdi_filter_active_col");c.find(".wdi_follow_btn").toggleClass("wdi_filter_active_col");f.customFilterChanged=true;if(f.userSortFlags[e]["flag"]==false){f.userSortFlags[e]["flag"]=true}else{f.userSortFlags[e]["flag"]=false}var a=0;for(var b=0;b<f.userSortFlags.length;b++){if(f.userSortFlags[b]["flag"]==true){a++}}if(f.feed_row.feed_display_view=="pagination"){f.resIndex=0}if(a!=0){wdi_front.filterData(f);wdi_front.displayFeed(f)}else{f.customFilteredData=f.dataStorageList;wdi_front.displayFeed(f)}if(f.feed_row.feed_display_view=="pagination"){f.paginator=Math.ceil((f.imageIndex)/parseInt(f.feed_row.pagination_per_page_number));f.currentPage=f.paginator;wdi_front.updatePagination(f,"custom",1);jQuery("#wdi_first_page").removeClass("wdi_disabled");jQuery("#wdi_last_page").addClass("wdi_disabled")}}};wdi_front.filterData=function(c){var d=c.userSortFlags;c.customFilteredData=[];for(var b=0;b<c.dataStorageList.length;b++){for(var a=0;a<d.length;a++){if((c.dataStorageList[b]["user"]["id"]==d[a]["id"]||c.dataStorageList[b]["wdi_hashtag"]==d[a]["name"])&&d[a]["flag"]==true){c.customFilteredData.push(c.dataStorageList[b])}}}};wdi_front.applyFilters=function(c){for(var b=0;b<c.userSortFlags.length;b++){if(c.userSortFlags[b]["flag"]==true){var a=jQuery("#wdi_feed_"+c.feed_row.wdi_feed_counter+'[user_index="'+b+'"]');wdi_front.addFilter(b,c.feed_row.wdi_feed_counter);wdi_front.addFilter(b,c.feed_row.wdi_feed_counter)}}};wdi_front.getImgCount=function(b){var d=b.dataStorage;var c=0;for(var a=0;a<d.length;a++){c+=d[a].length}return c};wdi_front.parseLighboxData=function(k,m){var g=k.dataStorage;var l=k.feed_row.sort_images_by;var a=k.feed_row.display_order;var h=wdi_front.sortingOperator(l,a);var f=[];var b=[];var e={};if(m==true){f=k.customFilteredData}else{for(var d=0;d<g.length;d++){for(var c=0;c<g[d].length;c++){f.push(g[d][c])}}f.sort(h)}for(d=0;d<f.length;d++){e={alt:"",avg_rating:"",comment_count:f[d]["comments"]["count"],date:wdi_front.convertUnixDate(f[d]["created_time"]),description:wdi_front.getDescription((f[d]["caption"]!==null)?f[d]["caption"]["text"]:""),filename:wdi_front.getFileName(f[d]),filetype:wdi_front.getFileType(f[d]),hit_count:"0",id:f[d]["id"],image_url:f[d]["link"],number:0,rate:"",rate_count:"0",username:f[d]["user"]["username"],profile_picture:f[d]["user"]["profile_picture"],thumb_url:f[d]["link"]+"media/?size=t",comments_data:f[d]["comments"]["data"]};b.push(e)}return b};wdi_front.convertUnixDate=function(b){var c=parseInt(b);var a=new Date(0);a.setUTCSeconds(c);var d=a.getFullYear()+"-"+a.getMonth()+"-"+a.getDate();d+=" "+a.getHours()+":"+a.getMinutes();return d};wdi_front.getDescription=function(a){a=a.replace(/\r?\n|\r/g," ");return a};wdi_front.getFileName=function(d){var c=d.link;var b=d.type;if(b==="video"&&d.hasOwnProperty("videos")){return d.videos["standard_resolution"]["url"]}else{var a=c.split("/");return a[a.length-2]}};wdi_front.getFileType=function(a){if(a.type=="video"&&a.hasOwnProperty("videos")){return"EMBED_OEMBED_INSTAGRAM_VIDEO"}else{return"EMBED_OEMBED_INSTAGRAM_IMAGE"}};wdi_front.array_max=function(d){var a=d[0];var b=0;for(var c=1;c<d.length;c++){if(a<d[c]){a=d[c];b=c}}return{value:a,index:b}};wdi_front.array_min=function(d){var c=d[0];var a=0;for(var b=1;b<d.length;b++){if(c>d[b]){c=d[b];a=b}}return{value:c,index:a}};wdi_front.activeUsersCount=function(c){var a=0;for(var b=0;b<c.usersData.length;b++){if(c.usersData[b].finished!="finished"){a++}}return a};wdi_front.checkMediaResponse=function(a,b){if(a!=""&&typeof a!="undefined"&&a!=null&&a.meta["code"]===400&&a.meta["error_type"]==="APINotAllowedError"){return a}if(a==""||typeof a=="undefined"||a==null){errorMessage=a.meta["error_message"];wdi_front.show_alert(errorMessage,a,b);return false}return a};wdi_front.stripHashtag=function(a){switch(a[0]){case"#":return a.substr(1,a.length);break;default:return a;break}};wdi_front.getInputType=function(a){switch(a[0]){case"#":return"hashtag";break;case"%":return"location";break;default:return"user";break}};wdi_front.regexpTestCaption=function(h,e){var d=false,b=false,f=[],g=e.replace(/[-[\]{}()*+?.,\\^$|]/g,"\\$&"),c=new RegExp("(?:^|\\s)"+g+"(?:^|\\s)"),a=new RegExp("(?:^|\\s)"+g,"g");if(c.exec(h)!=null){d=true}while((match=a.exec(h))!=null){if(match.index==h.length-e.length-1){b=true}}if(d==true||b==true){return true}else{return false}};wdi_front.replaceNewLines=function(c){var b="vUkCJvN2ps3t",a=[],g;c=c.replace(/\r?\n|\r/g,b);g=new RegExp(b,"g");while((match=g.exec(c))!=null){a.push(match.index)}var f=c.split(b);var e=0;for(var d=0;d<f.length;d++){if(f[d]==""){e++}else{e=0}if(e>0){f.splice(d,1);e--;d--}}c=f.join(" ");return c};wdi_front.isEmptyObject=function(a){for(var b in a){if(a.hasOwnProperty(b)){return false}}return true};var WDIFeed=function(a){this["data"]=a.data;this["dataCount"]=a.dataCount;this["feed_row"]=a.feed_row;this["usersData"]=a.usersData;_this=this;this.set_images_loading_flag=function(b){window.addEventListener("load",function(){b.nowLoadingImages=false})};this.set_images_loading_flag(_this)};WDIFeed.prototype.conditionalFilter=function(a,c){var d=this,b=d.feed_row.conditional_filter_type,e=d.feed_row.conditional_filters;if(c.ignoreFiltering==true){}else{a=this.avoidDuplicateMedia(a)}if(!wdi_front.isJsonString(e)){return a}else{e=JSON.parse(e);if(e.length==0){return a}}if(d.feed_row.conditional_filter_enable=="0"){return a}d.instagramRequestCounter++;switch(b){case"AND":a=this.applyANDLogic(a,e,d);break;case"OR":a=this.applyORLogic(a,e,d);break;case"NOR":a=this.applyNORLogic(a,e,d);break;default:break}return a};WDIFeed.prototype.applyANDLogic=function(a,d){var c=this;for(var b=0;b<d.length;b++){a=this.filterResponse(a,d[b])}return a};WDIFeed.prototype.applyORLogic=function(d,c){var h=this;var a=[],g,j=[],f,b;for(var e=0;e<c.length;e++){g=this.filterResponse(d,c[e]);a=a.concat(g.data);g={}}for(e=0;e<a.length;e++){b=a[e];if(!this.mediaExists(b,j)&&!this.mediaExists(b,h.dataStorageList)){j.push(b)}}f={data:j,meta:d.meta,pagination:d.pagination};return f};WDIFeed.prototype.applyNORLogic=function(c,h){var f=c,g=this,b=this.applyORLogic(c,h,g),d=[],a;for(var e=0;e<f.data.length;e++){if(!this.mediaExists(f.data[e],b.data)){d.push(f.data[e])}}a={data:d,meta:f.meta,pagination:f.pagination};return a};WDIFeed.prototype.mediaExists=function(b,c){for(var a=0;a<c.length;a++){if(b.id==c[a]["id"]){return true}}return false};WDIFeed.prototype.filterResponse=function(a,b){switch(b.filter_type){case"hashtag":return this.filterByHashtag(a,b);break;case"username":return this.filterByUsername(a,b);break;case"mention":return this.filterByMention(a,b);break;case"description":return this.filterByDescription(a,b);break;case"location":return this.filterByLocation(a,b);break;case"url":return this.filterByUrl(a,b);break}};WDIFeed.prototype.filterByHashtag=function(b,g){var d=[],f,h,a;for(var e=0;e<b.data.length;e++){h=b.data[e];for(var c=0;c<h.tags.length;c++){tag=h.tags[c];if(tag.toLowerCase()==g.filter_by.toLowerCase()){d.push(h)}}}a={data:d,meta:b.meta,pagination:b.pagination};return a};WDIFeed.prototype.filterByUsername=function(b,e){var c=[],f,a;for(var d=0;d<b.data.length;d++){f=b.data[d];if(f.user.username.toLowerCase()==e.filter_by.toLowerCase()){c.push(f)}}a={data:c,meta:b.meta,pagination:b.pagination};return a};WDIFeed.prototype.filterByMention=function(b,e){var c=[],f,g,a;for(var d=0;d<b.data.length;d++){f=b.data[d];if(f.caption!==null){g=f.caption["text"].toLowerCase();if(g.indexOf("@"+e.filter_by.toLowerCase())!=-1){c.push(f)}}}a={data:c,meta:b.meta,pagination:b.pagination};return a};WDIFeed.prototype.filterByDescription=function(c,f){var d=[],g,h,b;for(var e=0;e<c.data.length;e++){g=c.data[e];if(g.caption!==null){h=g.caption["text"].toLowerCase();h=wdi_front.replaceNewLines(h);var a=f.filter_by.toLowerCase();if(wdi_front.regexpTestCaption(h,a)){d.push(g)}}}b={data:d,meta:c.meta,pagination:c.pagination};return b};WDIFeed.prototype.filterByLocation=function(b,f){var c=[],g,e,a;for(var d=0;d<b.data.length;d++){g=b.data[d];if(g.location!==null){e=g.location["id"];if(e==f.filter_by){c.push(g)}}}a={data:c,meta:b.meta,pagination:b.pagination};return a};WDIFeed.prototype.filterByUrl=function(b,e){var c=[],g,h,a,f;e.filter_by=this.getIdFromUrl(e.filter_by);for(var d=0;d<b.data.length;d++){g=b.data[d];if(g.link!==null){h=this.getIdFromUrl(g.link);if(h==e.filter_by){c.push(g)}}}a={data:c,meta:b.meta,pagination:b.pagination};return a};WDIFeed.prototype.getIdFromUrl=function(a){var c=a.split("/"),d=false;for(var b=0;b<c.length;b++){if(c[b]=="p"){if(typeof c[b+1]!="undefined"){d=c[b+1];break}}}return d};WDIFeed.prototype.avoidDuplicateMedia=function(b){var e=b.data,d=[],a={};if(typeof e=="undefined"){e=[]}for(var c=0;c<e.length;c++){if(!this.mediaExists(e[c],this.dataStorageList)&&!this.mediaExists(e[c],d)&&!this.mediaExists(e[c],this.conditionalFilterBuffer)){d.push(e[c])}}this.conditionalFilterBuffer=this.conditionalFilterBuffer.concat(d);a={data:d,meta:b.meta,pagination:b.pagination};return a};WDIFeed.prototype.storeRawData=function(c,a){var e=this;if(typeof this[a]=="object"&&typeof this[a].length=="number"){for(var b=0;b<c.length;b++){var d="";if(wdi_front.isHashtag(c[b].user_id)){d=c[b].pagination.next_max_tag_id}else{if(e.feed_row.liked_feed=="liked"){d=c[b].pagination.next_max_like_id;if(typeof d=="undefined"){d=""}}else{if(c[b].pagination==null){c[b].pagination=[]}d=c[b].pagination.next_max_id;if(typeof d=="undefined"){d=""}}}if(typeof this[a][b]=="undefined"){this[a].push({data:c[b].data,index:0,locked:false,hash_id:d,usersDataFinished:false,userId:c[b].user_id,length:function(){return this.data.length-this.index},getData:function(g){var h=this.data.slice(this.index,this.index+g);this.index+=Math.min(g,this.length());if(this.index==this.data.length&&this.locked==true&&this.usersDataFinished==false){for(var f=0;f<e.usersData.length;f++){if(e.usersData[f]["user_id"]==this.userId){e.usersData[f].finished="finished";this.usersDataFinished=true;break}}}return h}})}else{if(this[a][b].locked==false){if(d!=this[a][b].hash_id){this[a][b].data=this[a][b].data.concat(c[b].data);this[a][b].hash_id=d}else{this[a][b].locked=true}}}}}};wdi_front.updateUsersIfNecessary=function(c){var d=c.feed_users;var a=false;for(var b=0;b<d.length;b++){if("#"==d[b].username.substr(0,1)){d[b].id=d[b].username;continue}if(""==d[b].id||"username"==d[b].id){a=true;c.instagram.searchForUsersByName(d[b].username,{success:function(i){if(typeof i.meta!="undefined"&&typeof i.meta.error_type!="undefined"){wdi_front.show_alert(false,i,c)}if(i.meta.code==200&&i.data.length>0){var l=false;for(var g=0;g<i.data.length;g++){if(i.data[g].username==i.args.username){l=true;break}}if(l){for(var h=0;h<d.length;h++){if(i.data[g].username==d[h].username){d[h].id=i.data[g].id}}}}var f=false;for(var e=0;e<d.length;e++){if(d[e].id==""||d[e].id=="username"){f=true;break}}if(!f){c.feed_row.feed_users=JSON.stringify(d);wdi_front.init(c)}},username:d[b].username})}}return a};if(typeof wdi_ajax.ajax_response!="undefined"){jQuery(document).one("ajaxStop",function(){if(wdi_front.type!="not_declared"){wdi_front.clickOrTouch=wdi_front.detectEvent();wdi_front.globalInit()}else{return}})}else{jQuery(document).ready(function(){if(wdi_front.type!="not_declared"){wdi_front.clickOrTouch=wdi_front.detectEvent();wdi_front.globalInit()}else{return}})};
|
readme.txt
CHANGED
@@ -4,22 +4,24 @@ Tags: custom instagram feed, feed, instagram, hashtag, Instagram feed, instagram
|
|
4 |
Requires at least: 3.9
|
5 |
Requires PHP: 5.2
|
6 |
Tested up to: 4.9
|
7 |
-
Stable tag: 1.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
Instagram Feed WD is a user-friendly plugin to display user or hashtag-based Instagram feeds as a responsive customizable gallery.
|
12 |
|
13 |
== Description ==
|
14 |
-
|
15 |
-
|
16 |
https://www.youtube.com/watch?v=KU4LJFxw0BY
|
17 |
-
|
|
|
|
|
18 |
[WordPress WD Instagram Feed ](https://web-dorado.com/products/wordpress-instagram-feed-wd.html)
|
19 |
[Demo](http://wpdemo.web-dorado.com/instagram-wd/)
|
20 |
[User Guide](https://web-dorado.com/wordpress-instagram-feed-wd/installation-and-configuration/installation.html)
|
21 |
|
22 |
-
|
|
|
23 |
Instagram Feed WD is a perfect fit for bloggers, photography websites, travel and food blogs and for WordPress users that want to spice up their posts with the latest images and videos from Instagram. The plugin is responsive and scales perfectly to screens of all sizes, providing better user experience across the board.
|
24 |
|
25 |
|
@@ -30,8 +32,8 @@ Instagram Feed WD is a perfect fit for bloggers, photography websites, travel an
|
|
30 |
* **Add appeal to your website** - Stunning display views, custom styling features and image lightbox effects will bring vibrancy to your posts and pages, and add to your website’s overall look and feel.
|
31 |
* **Control** - Take pure charge of what content to display and how to display it with an extensive list of content and display settings. Specify the number of photos you display on the page and choose what happens when a visitor clicks on an image from the feed.Custom styled display views and filtered Instagram content will be a great addition to any post you publish.
|
32 |
* **Minimal effort** – Set the plugin up and have it up and running in no time and with minimal efforts. Out of box solution that’s user-friendly and simple in use.
|
33 |
-
* **Support** -
|
34 |
-
* **Resource efficient** -
|
35 |
|
36 |
|
37 |
|
@@ -67,30 +69,6 @@ Choose from the two default themes offered by the plugin or create multifarious
|
|
67 |
Instagram Feed WD comes with extensive customization options for the feeds, layouts, themes and content display. Every new feed you add to your website has its own settings for the feed and for the lightbox that pops up when people click on an image or video. Upon clicking on the image you can choose to redirect people to Instagram, open the image in the lightbox, or chose the custom redirect option. There are various image sorting options available based on the date, likes,comments, and on random basis. Media loading options include load more button, infinite Instagram scrolling, or classic pagination with next and previous buttons. You can enable “Follow on Instagram” button from the feed settings and let your visitors to follow the displayed Instagram accounts directly from your site. The number of photos you display on the page or post can be specified from the feed settings,as well as the number of the loading images.
|
68 |
|
69 |
|
70 |
-
|
71 |
-
== Feature Summary ==
|
72 |
-
|
73 |
-
= Instagram Feed main features include: =
|
74 |
-
|
75 |
-
* Responsive Instagram feeds
|
76 |
-
* SEO-friendly
|
77 |
-
* Unlimited feeds
|
78 |
-
* Hashtag-based feeds
|
79 |
-
* Account-based feeds
|
80 |
-
* User meta data (image, bio, followers and posts number) display
|
81 |
-
* Thumbnail Layout Instagram feeds
|
82 |
-
* Image Browser Layout Instagram feeds
|
83 |
-
* Multiple image sorting options (date, likes, comments, random)
|
84 |
-
* Load More and pagination options for feeds
|
85 |
-
* Powerful lightbox with media captions
|
86 |
-
* 1 Lightbox transition effect
|
87 |
-
* Instagram icon for redirecting to Instagram account/ hashtag feed
|
88 |
-
* Simple Instagram WordPress shortcode
|
89 |
-
* Instagram WD PHP shortcode support
|
90 |
-
* Redirection to Instagram
|
91 |
-
* Instagram Feed WD Widget
|
92 |
-
* Original Instagram Image download
|
93 |
-
|
94 |
[Premium version adds](https://web-dorado.com/products/wordpress-instagram-feed-wd.html)
|
95 |
|
96 |
* Masonry Layout feeds
|
@@ -353,6 +331,16 @@ Hashtag. Useful when you have an Instagram feed based on usernames. It will allo
|
|
353 |
|
354 |
== Changelog ==
|
355 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
356 |
= 1.2.14 =
|
357 |
Fixed: Conflict with Page Builder by SiteOrigin
|
358 |
|
4 |
Requires at least: 3.9
|
5 |
Requires PHP: 5.2
|
6 |
Tested up to: 4.9
|
7 |
+
Stable tag: 1.2.15
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
Instagram Feed WD is a user-friendly plugin to display user or hashtag-based Instagram feeds as a responsive customizable gallery.
|
12 |
|
13 |
== Description ==
|
14 |
+
|
|
|
15 |
https://www.youtube.com/watch?v=KU4LJFxw0BY
|
16 |
+
|
17 |
+
= Useful Links: =
|
18 |
+
[Special Offer for all Premium Plugins](https://web-dorado.com/wordpress-plugins-bundle.html)
|
19 |
[WordPress WD Instagram Feed ](https://web-dorado.com/products/wordpress-instagram-feed-wd.html)
|
20 |
[Demo](http://wpdemo.web-dorado.com/instagram-wd/)
|
21 |
[User Guide](https://web-dorado.com/wordpress-instagram-feed-wd/installation-and-configuration/installation.html)
|
22 |
|
23 |
+
|
24 |
+
Instagram Feed WD is a user-friendly WordPress plugin that can help you bring Instagram feeds with all the media to any of your posts and pages. It will take couple of minutes to set up and customize to your needs. The plugin’s settings and features will allow you to take full control over how to display the feeds and the content on your website.
|
25 |
Instagram Feed WD is a perfect fit for bloggers, photography websites, travel and food blogs and for WordPress users that want to spice up their posts with the latest images and videos from Instagram. The plugin is responsive and scales perfectly to screens of all sizes, providing better user experience across the board.
|
26 |
|
27 |
|
32 |
* **Add appeal to your website** - Stunning display views, custom styling features and image lightbox effects will bring vibrancy to your posts and pages, and add to your website’s overall look and feel.
|
33 |
* **Control** - Take pure charge of what content to display and how to display it with an extensive list of content and display settings. Specify the number of photos you display on the page and choose what happens when a visitor clicks on an image from the feed.Custom styled display views and filtered Instagram content will be a great addition to any post you publish.
|
34 |
* **Minimal effort** – Set the plugin up and have it up and running in no time and with minimal efforts. Out of box solution that’s user-friendly and simple in use.
|
35 |
+
* **Support** - Get timely and effective support. We keep standards high and response time low.
|
36 |
+
* **Resource efficient** - The Plugin loads the images pretty fast as no feed data is stored in the database. All the images, videos, captions and comments are retrieved directly from the Instagram in the front-end.
|
37 |
|
38 |
|
39 |
|
69 |
Instagram Feed WD comes with extensive customization options for the feeds, layouts, themes and content display. Every new feed you add to your website has its own settings for the feed and for the lightbox that pops up when people click on an image or video. Upon clicking on the image you can choose to redirect people to Instagram, open the image in the lightbox, or chose the custom redirect option. There are various image sorting options available based on the date, likes,comments, and on random basis. Media loading options include load more button, infinite Instagram scrolling, or classic pagination with next and previous buttons. You can enable “Follow on Instagram” button from the feed settings and let your visitors to follow the displayed Instagram accounts directly from your site. The number of photos you display on the page or post can be specified from the feed settings,as well as the number of the loading images.
|
70 |
|
71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
[Premium version adds](https://web-dorado.com/products/wordpress-instagram-feed-wd.html)
|
73 |
|
74 |
* Masonry Layout feeds
|
331 |
|
332 |
== Changelog ==
|
333 |
|
334 |
+
= 1.2.15 =
|
335 |
+
Added: "How to publish feed" tab in feeds editor screen
|
336 |
+
Added: Closeable metaboxes in feeds editor screen
|
337 |
+
Added: Feed preview button in feeds editor screen
|
338 |
+
Changed: Save, apply and cancel buttons in feed and theme editor screens
|
339 |
+
Changed: Feed and theme title input design
|
340 |
+
Fixed: Minor bugs and conflicts with some themes
|
341 |
+
Improved: Shortcode popup design
|
342 |
+
Removed: Update submenu (Premium)
|
343 |
+
|
344 |
= 1.2.14 =
|
345 |
Fixed: Conflict with Page Builder by SiteOrigin
|
346 |
|
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,12 +21,11 @@ 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 |
$wdi_minify = ((isset($_GET['wdi_no_minify']) && $_GET['wdi_no_minify'] == "true") ? false : true);
|
27 |
define('WDI_MINIFY', $wdi_minify);
|
28 |
|
29 |
-
|
30 |
function wdi_use_home_url() {
|
31 |
$home_url = str_replace("http://", "", home_url());
|
32 |
$home_url = str_replace("https://", "", $home_url);
|
@@ -278,7 +277,7 @@ function WDI_instagram_menu() {
|
|
278 |
add_submenu_page($parent_slug,__('Settings',"wd-instagram-feed"),__('Settings',"wd-instagram-feed"),'manage_options','wdi_settings','WDI_instagram_settings_page');
|
279 |
//add_submenu_page('overview_wdi',__('Featured Themes',"wd-instagram-feed"),__('Featured Themes',"wd-instagram-feed"),$min_feeds_capability,'wdi_featured_themes','wdi_featured_themes');
|
280 |
//add_submenu_page('overview_wdi',__('Featured Plugins',"wd-instagram-feed"),__('Featured Plugins',"wd-instagram-feed"),$min_feeds_capability,'wdi_featured_plugins','wdi_featured_plugins');
|
281 |
-
add_submenu_page($parent_slug,__('
|
282 |
add_submenu_page($parent_slug,__('Uninstall',"wd-instagram-feed"),__('Uninstall',"wd-instagram-feed"),'manage_options','wdi_uninstall','WDI_instagram_uninstall_page');
|
283 |
}
|
284 |
|
@@ -396,7 +395,7 @@ function wdi_load_scripts($hook){
|
|
396 |
'or' => __('OR','wd-instagram-feed'),
|
397 |
'nor' => __('NOR','wd-instagram-feed')
|
398 |
));
|
399 |
-
wp_localize_script("wdi_admin", 'wdi_url',array('plugin_url'=>
|
400 |
wp_localize_script("wdi_admin", 'wdi_admin',array('admin_url' =>get_admin_url()));
|
401 |
}
|
402 |
|
@@ -487,6 +486,8 @@ function wdi_editor_button(){
|
|
487 |
require_once(WDI_DIR . '/framework/WDILibrary.php');
|
488 |
$page = WDILibrary::get('action');
|
489 |
if ($page != '' && (($page == 'WDIEditorShortcode'))) {
|
|
|
|
|
490 |
require_once(WDI_DIR . '/admin/controllers/WDIControllerEditorShortcode.php');
|
491 |
$controller_class = 'WDIControllerEditorShortcode';
|
492 |
$controller = new $controller_class();
|
@@ -508,7 +509,7 @@ function wdi_admin_ajax() {
|
|
508 |
<script>
|
509 |
|
510 |
var wdi_thickDims, wdi_tbWidth, wdi_tbHeight;
|
511 |
-
wdi_tbWidth =
|
512 |
wdi_tbHeight = 140;
|
513 |
wdi_thickDims = function() {
|
514 |
var tbWindow = jQuery('#TB_window'), H = jQuery(window).height(), W = jQuery(window).width(), w, h;
|
@@ -533,6 +534,25 @@ function wdi_admin_ajax() {
|
|
533 |
|
534 |
|
535 |
add_action( 'init', 'wdi_load_textdomain' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
536 |
/**
|
537 |
* Load plugin textdomain.
|
538 |
*
|
@@ -695,9 +715,10 @@ function wdi_wd_lib_init(){
|
|
695 |
|
696 |
|
697 |
}
|
|
|
698 |
if (!function_exists('wdi_wd_bp_install_notice')) {
|
699 |
|
700 |
-
if(get_option('
|
701 |
|
702 |
add_action('admin_enqueue_scripts', 'wdi_wd_bp_script_style');
|
703 |
|
@@ -727,32 +748,32 @@ if (!function_exists('wdi_wd_bp_install_notice')) {
|
|
727 |
}
|
728 |
|
729 |
$prefix = 'wdi';
|
730 |
-
$meta_value = get_option('
|
731 |
if ($meta_value === '' || $meta_value === false) {
|
732 |
ob_start();
|
733 |
?>
|
734 |
<div class="notice notice-info" id="wd_bp_notice_cont">
|
735 |
<p>
|
736 |
-
<img id="wd_bp_logo_notice" src="<?php echo $wd_bp_plugin_url . '/images/
|
737 |
-
<?php _e("Instagram Feed WD advises:
|
738 |
-
<a href="https://wordpress.org/plugins/
|
739 |
-
target="_blank"><?php _e("
|
740 |
-
<?php _e("plugin
|
741 |
<a class="button button-primary"
|
742 |
-
href="<?php echo esc_url(wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=
|
743 |
<span onclick="wd_bp_notice_install()"><?php _e("Install", $prefix); ?></span>
|
744 |
</a>
|
745 |
</p>
|
746 |
<button type="button" class="wd_bp_notice_dissmiss notice-dismiss"><span class="screen-reader-text"></span>
|
747 |
</button>
|
748 |
</div>
|
749 |
-
<script>wd_bp_url = '<?php echo add_query_arg(array('action' => '
|
750 |
<?php
|
751 |
echo ob_get_clean();
|
752 |
}
|
753 |
}
|
754 |
|
755 |
-
if (!is_dir(plugin_dir_path(dirname(__FILE__)) . '
|
756 |
add_action('admin_notices', 'wdi_wd_bp_install_notice');
|
757 |
}
|
758 |
|
@@ -763,9 +784,9 @@ if (!function_exists('wdi_wd_bp_install_notice')) {
|
|
763 |
* 1 : never show again
|
764 |
*/
|
765 |
function wdi_wd_bp_install_notice_status() {
|
766 |
-
update_option('
|
767 |
}
|
768 |
-
add_action('
|
769 |
}
|
770 |
|
771 |
|
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.15
|
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.15');
|
25 |
define('WDI_IS_PRO','false');
|
26 |
$wdi_minify = ((isset($_GET['wdi_no_minify']) && $_GET['wdi_no_minify'] == "true") ? false : true);
|
27 |
define('WDI_MINIFY', $wdi_minify);
|
28 |
|
|
|
29 |
function wdi_use_home_url() {
|
30 |
$home_url = str_replace("http://", "", home_url());
|
31 |
$home_url = str_replace("https://", "", $home_url);
|
277 |
add_submenu_page($parent_slug,__('Settings',"wd-instagram-feed"),__('Settings',"wd-instagram-feed"),'manage_options','wdi_settings','WDI_instagram_settings_page');
|
278 |
//add_submenu_page('overview_wdi',__('Featured Themes',"wd-instagram-feed"),__('Featured Themes',"wd-instagram-feed"),$min_feeds_capability,'wdi_featured_themes','wdi_featured_themes');
|
279 |
//add_submenu_page('overview_wdi',__('Featured Plugins',"wd-instagram-feed"),__('Featured Plugins',"wd-instagram-feed"),$min_feeds_capability,'wdi_featured_plugins','wdi_featured_plugins');
|
280 |
+
add_submenu_page($parent_slug,__('Premium Version',"wd-instagram-feed"),__('Premium Version',"wd-instagram-feed"),$min_feeds_capability,'wdi_licensing','WDI_instagram_licensing_page');
|
281 |
add_submenu_page($parent_slug,__('Uninstall',"wd-instagram-feed"),__('Uninstall',"wd-instagram-feed"),'manage_options','wdi_uninstall','WDI_instagram_uninstall_page');
|
282 |
}
|
283 |
|
395 |
'or' => __('OR','wd-instagram-feed'),
|
396 |
'nor' => __('NOR','wd-instagram-feed')
|
397 |
));
|
398 |
+
wp_localize_script("wdi_admin", 'wdi_url',array('plugin_url'=> WDI_URL . '/'));
|
399 |
wp_localize_script("wdi_admin", 'wdi_admin',array('admin_url' =>get_admin_url()));
|
400 |
}
|
401 |
|
486 |
require_once(WDI_DIR . '/framework/WDILibrary.php');
|
487 |
$page = WDILibrary::get('action');
|
488 |
if ($page != '' && (($page == 'WDIEditorShortcode'))) {
|
489 |
+
wp_register_script('wdi-shortcode', WDI_URL . '/js/shortcode.js', array('jquery'), WDI_VERSION);
|
490 |
+
|
491 |
require_once(WDI_DIR . '/admin/controllers/WDIControllerEditorShortcode.php');
|
492 |
$controller_class = 'WDIControllerEditorShortcode';
|
493 |
$controller = new $controller_class();
|
509 |
<script>
|
510 |
|
511 |
var wdi_thickDims, wdi_tbWidth, wdi_tbHeight;
|
512 |
+
wdi_tbWidth = 420;
|
513 |
wdi_tbHeight = 140;
|
514 |
wdi_thickDims = function() {
|
515 |
var tbWindow = jQuery('#TB_window'), H = jQuery(window).height(), W = jQuery(window).width(), w, h;
|
534 |
|
535 |
|
536 |
add_action( 'init', 'wdi_load_textdomain' );
|
537 |
+
add_action('init', 'wdi_register_instagram_preview_cpt');
|
538 |
+
|
539 |
+
function wdi_register_instagram_preview_cpt() {
|
540 |
+
$args = array(
|
541 |
+
'public' => true,
|
542 |
+
'exclude_from_search' => true,
|
543 |
+
'show_in_menu' => false,
|
544 |
+
'create_posts' => 'do_not_allow',
|
545 |
+
'capabilities' => array(
|
546 |
+
'create_posts' => FALSE,
|
547 |
+
'edit_post' => 'edit_posts',
|
548 |
+
'read_post' => 'edit_posts',
|
549 |
+
'delete_posts' => FALSE,
|
550 |
+
)
|
551 |
+
);
|
552 |
+
|
553 |
+
register_post_type('wdi_instagram', $args);
|
554 |
+
}
|
555 |
+
|
556 |
/**
|
557 |
* Load plugin textdomain.
|
558 |
*
|
715 |
|
716 |
|
717 |
}
|
718 |
+
|
719 |
if (!function_exists('wdi_wd_bp_install_notice')) {
|
720 |
|
721 |
+
if(get_option('wd_seo_notice_status') !=='' && get_option('wd_seo_notice_status')!=='1') {
|
722 |
|
723 |
add_action('admin_enqueue_scripts', 'wdi_wd_bp_script_style');
|
724 |
|
748 |
}
|
749 |
|
750 |
$prefix = 'wdi';
|
751 |
+
$meta_value = get_option('wd_seo_notice_status');
|
752 |
if ($meta_value === '' || $meta_value === false) {
|
753 |
ob_start();
|
754 |
?>
|
755 |
<div class="notice notice-info" id="wd_bp_notice_cont">
|
756 |
<p>
|
757 |
+
<img id="wd_bp_logo_notice" src="<?php echo $wd_bp_plugin_url . '/images/seo_logo.png'; ?>">
|
758 |
+
<?php _e("Instagram Feed WD advises: Optimize your web pages for search engines with the", $prefix) ?>
|
759 |
+
<a href="https://wordpress.org/plugins/seo-by-10web/" title="<?php _e("More details", $prefix) ?>"
|
760 |
+
target="_blank"><?php _e("FREE SEO", $prefix) ?></a>
|
761 |
+
<?php _e("plugin.", $prefix) ?>
|
762 |
<a class="button button-primary"
|
763 |
+
href="<?php echo esc_url(wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=seo-by-10web'), 'install-plugin_seo-by-10web')); ?>">
|
764 |
<span onclick="wd_bp_notice_install()"><?php _e("Install", $prefix); ?></span>
|
765 |
</a>
|
766 |
</p>
|
767 |
<button type="button" class="wd_bp_notice_dissmiss notice-dismiss"><span class="screen-reader-text"></span>
|
768 |
</button>
|
769 |
</div>
|
770 |
+
<script>wd_bp_url = '<?php echo add_query_arg(array('action' => 'wd_seo_dismiss',), admin_url('admin-ajax.php')); ?>'</script>
|
771 |
<?php
|
772 |
echo ob_get_clean();
|
773 |
}
|
774 |
}
|
775 |
|
776 |
+
if (!is_dir(plugin_dir_path(dirname(__FILE__)) . 'seo-by-10web')) {
|
777 |
add_action('admin_notices', 'wdi_wd_bp_install_notice');
|
778 |
}
|
779 |
|
784 |
* 1 : never show again
|
785 |
*/
|
786 |
function wdi_wd_bp_install_notice_status() {
|
787 |
+
update_option('wd_seo_notice_status', '1', 'no');
|
788 |
}
|
789 |
+
add_action('wp_ajax_wd_seo_dismiss', 'wdi_wd_bp_install_notice_status');
|
790 |
}
|
791 |
|
792 |
|