WD Instagram Feed – Instagram Gallery - Version 1.2.12

Version Description

New: Customize feed media resolution. Choose between optimal or custom resolutions, fast loading and higher quality.
Improved: Redesigned feed and theme editor screens.
Improved: More user-friendly names and descriptions of feed settings.
Improved: UX when access token is expired or have not been obtained yet.
Improved: UX when there are JS errors on front-end.
Fixed: Minor: do not include custom scroll bar JS if feed does not have popup.

Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 WD Instagram Feed – Instagram Gallery
Version 1.2.12
Comparing to
See all releases

Code changes from version 1.2.11 to 1.2.12

admin-functions.php CHANGED
@@ -174,6 +174,7 @@ function wdi_install()
174
  liked_feed varchar(30) NOT NULL,
175
  mobile_breakpoint varchar(10) NOT NULL,
176
  redirect_url varchar(255) NOT NULL,
 
177
 
178
  UNIQUE KEY id (id)
179
  ) $charset_collate;";
174
  liked_feed varchar(30) NOT NULL,
175
  mobile_breakpoint varchar(10) NOT NULL,
176
  redirect_url varchar(255) NOT NULL,
177
+ feed_resolution varchar(255) NOT NULL,
178
 
179
  UNIQUE KEY id (id)
180
  ) $charset_collate;";
admin/controllers/WDIControllerFeeds_wdi.php CHANGED
@@ -132,7 +132,8 @@ class WDIControllerFeeds_wdi {
132
  '%d',//'conditional_filter_enable'=>'0',
133
  '%s',//'liked_feed' => 'string'
134
  '%d',//'mobile_breakpoint'=>'640',
135
- '%s',//'redirect_url'
 
136
 
137
  );
138
  }
132
  '%d',//'conditional_filter_enable'=>'0',
133
  '%s',//'liked_feed' => 'string'
134
  '%d',//'mobile_breakpoint'=>'640',
135
+ '%s',//'redirect_url',
136
+ '%s',//'feed_resolution',
137
 
138
  );
139
  }
admin/models/WDIModelFeeds_wdi.php CHANGED
@@ -145,6 +145,7 @@ class WDIModelFeeds_wdi {
145
  'liked_feed' => 'userhash',
146
  'mobile_breakpoint' => '640',
147
  'redirect_url' => '',
 
148
  );
149
  return $settings;
150
  }
@@ -217,6 +218,7 @@ class WDIModelFeeds_wdi {
217
  'liked_feed' => 'string',
218
  'mobile_breakpoint' => 'number',
219
  'redirect_url' => 'string',
 
220
  );
221
  return $sanitize_types;
222
  }
145
  'liked_feed' => 'userhash',
146
  'mobile_breakpoint' => '640',
147
  'redirect_url' => '',
148
+ 'feed_resolution' => 'optimal',
149
  );
150
  return $settings;
151
  }
218
  'liked_feed' => 'string',
219
  'mobile_breakpoint' => 'number',
220
  'redirect_url' => 'string',
221
+ 'feed_resolution' => 'string',
222
  );
223
  return $sanitize_types;
224
  }
admin/views/WDIViewFeeds_wdi.php CHANGED
@@ -240,77 +240,138 @@ class WDIViewFeeds_wdi
240
  }
241
 
242
 
243
- public function getFormElements($current_id = '')
244
- {
245
  require_once(WDI_DIR . '/admin/models/WDIModelThemes_wdi.php');
246
  $themes = WDIModelThemes_wdi::get_themes();
247
- $elements = array(
248
- 'feed_name' => array('name' => 'feed_name', 'title' => __('Feed Name', "wd-instagram-feed"), 'type' => 'input', 'tooltip' => __('The name of your feed which can be displayed in feed\'s header section', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
249
- 'theme_id' => array('switched' => 'off', 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("Changing Theme is Available Only in PRO version", "wd-instagram-feed"), 'br' => 'true'), 'name' => 'theme_id', 'title' => __('Theme', "wd-instagram-feed"), 'valid_options' => $themes, 'type' => 'select', 'tooltip' => __('The theme of your 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'))),
250
- 'liked_feed' => array('switched' => 'off', 'disabled_options' => array('liked' => __('Feed of liked media is Available in PRO version'), 'br' => 'true'), 'name' => 'liked_feed', 'title' => __('User/Hashtag feed or liked media', "wd-instagram-feed"), 'type' => 'radio', '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' => __('Show the media I liked instead of showing user or hashtag feed', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
251
- 'feed_users' => array('name' => 'feed_users', 'title' => __('Feed Usernames and Hashtags', "wd-instagram-feed"), 'type' => 'input', 'input_type' => 'hidden', 'tooltip' => __('Enter usernames or hashtags to your feed, hashtags must start with #, username\'s 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'))),
252
- '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'))),
253
-
254
- 'feed_display_view' => array('name' => 'feed_display_view', 'title' => __('New Media Loading', "wd-instagram-feed"), 'type' => 'radio', 'valid_options' => array('pagination' => __('Pagination', "wd-instagram-feed"), 'load_more_btn' => __('Load More Button', "wd-instagram-feed"),'none' => __('None', "wd-instagram-feed"), 'infinite_scroll' => __('Infinite Scroll', "wd-instagram-feed")), 'disabled_options' => array('infinite_scroll' => __('This Feature is Available in PRO version'), 'br' => 'true'), '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'), 'tooltip' => __('How to load and display new images', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style'))),
255
-
256
- 'sort_images_by' => array('name' => 'sort_images_by', 'title' => __('Sort Images By', "wd-instagram-feed"), 'valid_options' => array('date' => __('Date', "wd-instagram-feed"), 'likes' => __('Likes', "wd-instagram-feed"), 'comments' => __('Comments', "wd-instagram-feed"), 'random' => __('Random', "wd-instagram-feed")), 'type' => 'select', 'tooltip' => __('How to sort images', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
257
- 'display_order' => array('name' => 'display_order', 'title' => __('Order By', "wd-instagram-feed"), 'valid_options' => array('asc' => 'Ascending', 'desc' => 'Descending '), 'type' => 'select', 'tooltip' => __('Sorting order either Ascending or Descending', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
258
- 'follow_on_instagram_btn' => array('name' => 'follow_on_instagram_btn', 'title' => __('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'))),
259
- 'display_header' => array('name' => 'display_header', 'title' => __('Display Header', "wd-instagram-feed"), 'type' => 'checkbox', 'tooltip' => __('Displays feed\'s header, header includes feed name and feed users', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
260
- 'number_of_photos' => array('name' => 'number_of_photos', 'title' => __('Number of Photos to Display', "wd-instagram-feed"), 'type' => 'input', 'input_type' => 'number', 'tooltip' => __('Number of images to load when page loads first time', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style'))),
261
- 'load_more_number' => array('name' => 'load_more_number', 'title' => __('Number of Photos to Load', "wd-instagram-feed"), 'type' => 'input', 'input_type' => 'number', 'tooltip' => __('Number of images to load when clicking load more button or triggering infinite scroll', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style'))),
262
- 'pagination_per_page_number' => array('name' => 'pagination_per_page_number', 'title' => __('Number of Images Per Page', "wd-instagram-feed"), 'type' => 'input', 'input_type' => 'number', 'tooltip' => __('Number Of Images To Show On Each Pagination Page', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style'))),
263
- 'pagination_preload_number' => array('name' => 'pagination_preload_number', 'title' => __('Number of Pages To Preload', "wd-instagram-feed"), 'type' => 'input', 'input_type' => 'number', 'tooltip' => __('This Will Preload Images For Pagination', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style'))),
264
- 'image_browser_preload_number' => array('name' => 'image_browser_preload_number', 'title' => __('Number of Images To Preload', "wd-instagram-feed"), 'type' => 'input', 'input_type' => 'number', 'tooltip' => __('This Will Preload Images For Pagination', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'image_browser'))),
265
- 'image_browser_load_number' => array('name' => 'image_browser_load_number', 'title' => __('Number of Images To Load Each Time', "wd-instagram-feed"), 'type' => 'input', 'input_type' => 'number', 'tooltip' => __('Number Of Photos To Load on Each Load', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'image_browser'))),
266
- 'number_of_columns' => array('name' => 'number_of_columns', 'title' => __('Number of Columns', "wd-instagram-feed"), 'type' => 'select', 'valid_options' => array('1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6', '7' => '7', '8' => '8'), 'tooltip' => __('Feed item\'s column count', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry'))),
267
- 'resort_after_load_more' => array('name' => 'resort_after_load_more', 'title' => __('Sort Again Whole Feed After Loading New Images', "wd-instagram-feed"), 'type' => 'checkbox', 'tooltip' => __('Sort both newly loaded and existing images alltogether', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style'))),
268
- 'show_likes' => array('switched' => 'off', 'name' => 'show_likes', 'title' => __('Show Likes', "wd-instagram-feed"), 'type' => 'checkbox', 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("This Feature is Available Only in PRO 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'))),
269
- 'show_description' => array('switched' => 'off', 'name' => 'show_description', 'title' => __('Show Description', "wd-instagram-feed"), 'type' => 'checkbox', 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("This Feature is Available Only in PRO 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'))),
270
- 'show_comments' => array('switched' => 'off', 'name' => 'show_comments', 'title' => __('Show Comments', "wd-instagram-feed"), 'type' => 'checkbox', 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("This Feature is Available Only in PRO 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'))),
271
- '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 PRO version", "wd-instagram-feed"), 'br' => 'true'), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry'))),
272
- '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'))),
273
- 'display_user_info' => array('name' => 'display_user_info', 'title' => __('Display 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'))),
274
- 'display_user_post_follow_number' => array('name' => 'display_user_post_follow_number', 'title' => __('Display 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'))),
275
- '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'))),
276
- 'disable_mobile_layout' => array('name' => 'disable_mobile_layout', 'title' => __('Disable Mobile Layout', "wd-instagram-feed"), 'type' => 'checkbox', 'tooltip' => __('Column number stays the same in all screens', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry'))),
277
- 'mobile_breakpoint' => array('name' => 'mobile_breakpoint', 'title' => __('Window width breakpoint for small size media', "wd-instagram-feed"), 'type' => 'input', 'input_type' => 'number', 'tooltip' => __('Load media of smaller size from Instagram if browser width is smaller than this value. Faster loading in mobile devices. Set the value about 320px to always load large-size media.', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
278
- 'feed_item_onclick' => array('name' => 'feed_item_onclick', 'title' => __('Image Onclick', "wd-instagram-feed"), 'type' => 'radio', 'valid_options' => array('lightbox' => __('Open Lightbox', "wd-instagram-feed"), 'instagram' => __('Redirect To Instagram', "wd-instagram-feed"), 'custom_redirect' => __('Custom Redirect', "wd-instagram-feed"), 'none' => __('Do Nothing', "wd-instagram-feed")), 'break' => 'true', 'hide_ids' => array('lightbox' => 'redirect_url','instagram' => 'redirect_url','none' => 'redirect_url'), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
279
- 'redirect_url' => array('name' => 'redirect_url', 'title' => __('Redirect Absolute Url', "wd-instagram-feed"), 'type' => 'input', 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
280
-
281
- //lightbox settings
282
- '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'))),
283
- 'popup_width' => array('name' => 'popup_width', 'title' => __('Lightbox Width', "wd-instagram-feed"), 'type' => 'input', 'input_type' => 'number', 'label' => array('text' => 'px', 'place' => 'after'), 'tooltip' => '', 'attr' => array(array('name' => 'class', 'value' => 'small_input'), array('name' => 'tab', 'value' => 'lightbox_settings'))),
284
- 'popup_height' => array('name' => 'popup_height', 'title' => __('Lightbox Height', "wd-instagram-feed"), 'type' => 'input', 'input_type' => 'number', 'label' => array('text' => 'px', 'place' => 'after'), 'tooltip' => '', 'attr' => array(array('name' => 'class', 'value' => 'small_input'), array('name' => 'tab', 'value' => 'lightbox_settings'))),
285
- 'popup_type' => array('name' => 'popup_type', 'title' => __('Lightbox Effect', "wd-instagram-feed"), 'valid_options' => array('none' => 'None', 'fade' => 'Fade', 'cubeH' => 'Cube Horizontal', 'cubeV' => 'Cube Vertical', 'sliceH' => 'Slice Horizontal', 'sliceV' => 'Slice Vertical', 'slideH' => 'Slide Horizontal', 'slideV' => 'Slide Vertical', 'scaleOut' => 'Scale Out', 'scaleIn' => 'Scale In', 'blockScale' => 'Block Scale', 'kaleidoscope' => 'Kaleidoscope', 'fan' => 'Fan', 'blindH' => 'Blind Horizontal', 'blindV' => 'Blinde Vertical', 'random' => 'Random'), 'disabled_options' => array('cubeH', 'cubeV', 'sliceH', 'sliceV', 'slideH', 'slideV', 'scaleOut', 'scaleIn', 'blockScale', 'kaleidoscope', 'fan', 'blindH', 'blindV', 'random'), 'type' => 'select', 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))),
286
- 'popup_autoplay' => array('name' => 'popup_autoplay', 'title' => __('Lightbox autoplay', "wd-instagram-feed"), 'type' => 'radio', 'valid_options' => array('1' => __('Yes', "wd-instagram-feed"), '0' => __('No', "wd-instagram-feed")), 'hide_ids' => array('0' => 'popup_interval'), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))),
287
- 'popup_interval' => array('name' => 'popup_interval', 'title' => __('Time Interval', "wd-instagram-feed"), 'type' => 'input', 'input_type' => 'number', 'label' => array('text' => 'sec', 'place' => 'after'), 'tooltip' => '', 'attr' => array(array('name' => 'class', 'value' => 'small_input'), array('name' => 'tab', 'value' => 'lightbox_settings'))),
288
- 'popup_enable_filmstrip' => array('disabled_options' => array('1' => '', '0' => ''), 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("This Feature is Available Only in PRO version", "wd-instagram-feed"), 'br' => 'true'), 'name' => 'popup_enable_filmstrip', 'title' => __('Enable filmstrip in lightbox', "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'))),
289
- 'popup_filmstrip_height' => array('switched' => 'off', 'disabled' => array('text' => __("This Feature is Available Only in PRO version", "wd-instagram-feed")), 'name' => 'popup_filmstrip_height', 'title' => __('Filmstrip size', "wd-instagram-feed"), 'type' => 'input', 'input_type' => 'number', 'label' => array('text' => 'px', 'place' => 'after'), 'tooltip' => '', 'attr' => array(array('name' => 'class', 'value' => 'small_input'), array('name' => 'tab', 'value' => 'lightbox_settings'))),
290
- 'autohide_lightbox_navigation' => array('name' => 'autohide_lightbox_navigation', 'title' => __('Show Next / Previous Buttons', "wd-instagram-feed"), 'type' => 'radio', 'valid_options' => array('1' => __('On Hover', "wd-instagram-feed"), '0' => __('Always', "wd-instagram-feed")), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))),
291
- 'popup_info_always_show' => array('disabled_options' => array('1' => '', '0' => ''), 'name' => 'popup_info_always_show', 'title' => __('Display info by default', "wd-instagram-feed"), 'type' => 'radio', 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("This Feature is Available Only in PRO version", "wd-instagram-feed"), 'br' => 'true'), 'valid_options' => array('1' => __('Yes', "wd-instagram-feed"), '0' => __('No', "wd-instagram-feed")), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))),
292
- 'popup_info_full_width' => array('disabled_options' => array('1' => '', '0' => ''), 'name' => 'popup_info_full_width', 'title' => __('Full width info', "wd-instagram-feed"), 'type' => 'radio', 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("This Feature is Available Only in PRO version", "wd-instagram-feed"), 'br' => 'true'), 'valid_options' => array('1' => __('Yes', "wd-instagram-feed"), '0' => __('No', "wd-instagram-feed")), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))),
293
- 'enable_loop' => array('name' => 'enable_loop', 'title' => __('Enable Loop', "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'))),
294
- 'popup_image_right_click' => array('name' => 'popup_image_right_click', 'title' => __('Enable Right Click Protection', "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'))),
295
- 'popup_enable_ctrl_btn' => array('name' => 'popup_enable_ctrl_btn', 'title' => __('Enable control buttons', "wd-instagram-feed"), 'type' => 'radio', 'valid_options' => array('1' => __('Yes', "wd-instagram-feed"), '0' => __('No', "wd-instagram-feed")), 'hide_ids' => array('0' => 'popup_enable_info,popup_enable_fullscreen,popup_enable_info,popup_enable_comment,popup_enable_download,popup_enable_share_buttons,popup_enable_fullsize_image'), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))),
296
- 'popup_enable_info' => array('disabled_options' => array('1' => '', '0' => ''), 'name' => 'popup_enable_info', 'title' => __('Enable info', "wd-instagram-feed"), 'type' => 'radio', 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("This Feature is Available Only in PRO version", "wd-instagram-feed"), 'br' => 'true'), 'valid_options' => array('1' => 'Yes', '0' => 'No'), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))),
297
- 'popup_enable_fullscreen' => array('name' => 'popup_enable_fullscreen', 'title' => __('Enable fullscreen', "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'))),
298
- 'popup_enable_comment' => array('switched' => 'off', 'disabled_options' => array('1' => '', '0' => ''), 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("This Feature is Available Only in PRO version", "wd-instagram-feed"), 'br' => 'true'), 'name' => 'popup_enable_comment', 'title' => __('Enable comments', "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'))),
299
- 'popup_enable_fullsize_image' => array('name' => 'popup_enable_fullsize_image', 'title' => __('Link To Instagram Button', "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'))),
300
- 'popup_enable_download' => array('name' => 'popup_enable_download', 'title' => __('Enable Download Button', "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'))),
301
- 'popup_enable_share_buttons' => array('disabled_options' => array('1' => '', '0' => ''), 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("This Feature is Available Only in PRO version", "wd-instagram-feed"), 'br' => 'true'), 'name' => 'popup_enable_share_buttons', 'title' => __('Enable Share Buttons', "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'))),
302
- 'popup_enable_facebook' => array('status' => 'disabled', 'name' => 'popup_enable_facebook', 'title' => __('Enable Facebook button', "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'))),
303
- 'popup_enable_twitter' => array('status' => 'disabled', 'name' => 'popup_enable_twitter', 'title' => __('Enable Twitter button', "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'))),
304
- 'popup_enable_google' => array('status' => 'disabled', 'name' => 'popup_enable_google', 'title' => __('Enable Google+ button', "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'))),
305
- 'popup_enable_pinterest' => array('status' => 'disabled', 'name' => 'popup_enable_pinterest', 'title' => __('Enable Pinterest button', "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'))),
306
- 'popup_enable_tumblr' => array('status' => 'disabled', 'name' => 'popup_enable_tumblr', 'title' => __('Enable Tumblr button', "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'))),
307
- 'show_image_counts' => array('status' => 'disabled', 'name' => 'show_image_counts', 'title' => __('Show Images Count', "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'))),
308
-
309
- //filters
310
- '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'))),
311
- 'conditional_filter_type' => array('name' => 'conditional_filter_type', 'title' => __('Filter Logic', "wd-instagram-feed"), 'type' => 'select', 'label' => array('text' => '', 'place' => 'after'), 'valid_options' => array('AND' => 'AND', 'OR' => 'OR', 'NOR' => 'NOR'), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'conditional_filters'))),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
312
  );
313
- $return = array('elements' => $elements, 'current_id' => $current_id);
314
  return $return;
315
  }
316
 
@@ -319,62 +380,60 @@ public function genarateFeedViews()
319
  {
320
  ?>
321
  <div class="wdi_border_wrapper">
322
-
323
-
324
- <div class="display_type" tab="feed_settings" style="margin:5px;float:left;">
325
- <div style="text-align:center;padding:2px;"><input type="radio" id="thumbnails" name="feed_type"
326
- value="thumbnails"><label for="thumbnails">Thumbnails</label>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
327
  </div>
328
- <label for="thumbnails"><img src="<?php echo plugins_url('../../images/feed_views/thumbnails.png', __FILE__); ?>"></label>
329
- </div>
330
-
331
- <div class="display_type wdi_tooltip" wdi-tooltip="<?php _e('Available In Pro Version') ?>" tab="feed_settings"
332
- style="margin:5px;float:left;">
333
- <div style="text-align:center;padding:2px;"><input type="radio" disabled id="masonry" name="feed_type"
334
- value="masonry"><label for="masonry" class="wdi_pro_only">Masonry</label>
335
- </div>
336
- <label for="masonry" class="wdi_pro_only_op"><img
337
- src="<?php echo plugins_url('../../images/feed_views/masonry.png', __FILE__); ?>"></label>
338
- </div>
339
-
340
- <div class="display_type wdi_tooltip" wdi-tooltip="<?php _e('Available In Pro Version') ?>" tab="feed_settings"
341
- style="margin:5px;float:left;">
342
- <div style="text-align:center;padding:2px;"><input disabled type="radio" id="blog_style" name="feed_type"
343
- value="blog_style"><label for="blog_style"
344
- class="wdi_pro_only">Blog
345
- Style</label></div>
346
- <label for="blog_style" class="wdi_pro_only_op"><img
347
- src="<?php echo plugins_url('../../images/feed_views/blog_style.png', __FILE__); ?>"></label>
348
- </div>
349
-
350
- <div class="display_type" tab="feed_settings" style="margin:5px;float:left;">
351
- <div style="text-align:center;padding:2px;"><input type="radio" id="image_browser" name="feed_type"
352
- value="image_browser"><label for="image_browser">Image
353
- Browser</label></div>
354
- <label for="image_browser"><img
355
- src="<?php echo plugins_url('../../images/feed_views/image_browser.png', __FILE__); ?>"></label>
356
  </div>
357
 
358
- <br class="wdi_clear">
359
  <?php
360
  }
361
  public function generateTabs()
362
  {
363
  ?>
364
- <div id="wdi_feed_tabs">
365
  <div class="wdi_feed_tabs" id="wdi_feed_settings"
366
  onclick="wdi_controller.switchFeedTabs('feed_settings');"><?php _e('Feed Settings', "wd-instagram-feed") ?></div>
367
  <div class="wdi_feed_tabs" id="wdi_lightbox_settings"
368
  onclick="wdi_controller.switchFeedTabs('lightbox_settings');"><?php _e('Lightbox Settings', "wd-instagram-feed") ?></div>
369
  <div class="wdi_feed_tabs" id="wdi_conditional_filters"
370
  onclick="wdi_controller.switchFeedTabs('conditional_filters');"><?php _e('Conditional Filters', "wd-instagram-feed") ?></div>
371
- <br class="wdi_clear">
372
  </div>
373
  <?php
374
  }
375
  public function generateForm($current_id = ''){
376
  $formInfo = $this->getFormElements($current_id);
377
- $elements = $formInfo['elements'];
378
 
379
  global $wdi_options;
380
  //for edit
@@ -413,6 +472,13 @@ public function genarateFeedViews()
413
 
414
 
415
  </h2>
 
 
 
 
 
 
 
416
  <?php $this->generateTabs(); ?>
417
  <?php $this->genarateFeedViews(); ?>
418
  <form method="post" action="admin.php?page=wdi_feeds" id='wdi_save_feed'>
@@ -431,66 +497,66 @@ public function genarateFeedViews()
431
  value="<?php echo isset($feed_row['published']) ? $feed_row['published'] : '1'; ?>">
432
  <input type="hidden" id="wdi_current_id" name="current_id" value=''>
433
  <input type="hidden" id="wdi_refresh_tab" name="wdi_refresh_tab">
434
- <table class="form-table">
435
- <tbody>
436
- <?php
437
- foreach ($elements as $element) {
438
- if ($element['name'] == 'conditional_filter_enable') {
439
- continue;
440
- }
441
-
442
- if ($element['name'] == 'conditional_filter_type') {
443
- ?>
444
-
445
- <div id="wdi-conditional-filters-ui" class="wdi_demo_img">
446
- <div
447
- class="wdi_pro_notice"> <?php _e("This is FREE version, Conditional filters are available only in PRO version", "wd-instagram-feed"); ?> </div>
448
- <div class="wdi-pro-overlay"><img src="<?php echo WDI_URL . '/demo_images/filters.png'; ?>" alt=""></div>
449
- </div><?php
450
- continue;
451
- }
452
-
453
- if (isset($element['status'])) {
454
- if ($element['status'] == 'disabled') {
455
- continue;
456
- }
457
- }
458
- ?>
459
-
460
-
461
-
462
-
463
- <tr>
464
- <th scope="row"><a
465
- href="#" <?php echo ($element['tooltip'] != '' && isset($element['tooltip'])) ? 'class="wdi_tooltip" wdi-tooltip="' . $element['tooltip'] . '"' : 'class="wdi_settings_link"'; ?> ><?php echo $element['title']; ?></a>
466
- </th>
467
- <td>
468
-
469
- <?php $this->buildField($element, $feed_row); ?>
470
- <!-- FEED USERS -->
471
- <?php if ($element['name'] == 'feed_users'): ?>
472
- <input type="text" id="wdi_add_user_ajax_input">
473
- <div id="wdi_add_user_ajax" class="button"><?php _e('Add', "wd-instagram-feed"); ?></div>
474
- <div id="wdi_feed_users">
475
- <?php $this->display_feed_users($feed_row); ?>
476
- </div>
477
- <?php endif; ?>
478
- <!-- END FEED USERS -->
479
-
480
-
481
- </td>
482
- </tr><?php
483
-
 
 
 
 
 
 
 
484
  }
485
  ?>
486
- </tbody>
487
- </table>
488
- <div id="wdi_save_feed_submit" class="button button-primary"><?php _e('Save', "wd-instagram-feed"); ?></div>
489
-
490
- <div id="wdi_save_feed_apply" class="button button-primary"><?php _e('Apply', "wd-instagram-feed"); ?></div>
491
- <div id="wdi_save_feed_reset" style="display:none"
492
- class="button button-secondary"><?php _e('Reset', "wd-instagram-feed"); ?></div>
493
- <div id="wdi_cancel_changes" class="button button-secondary"><?php _e('Cancel', "wd-instagram-feed"); ?></div>
494
  </form>
495
  </div>
496
  </div>
240
  }
241
 
242
 
243
+ public function getFormElements($current_id = ''){
 
244
  require_once(WDI_DIR . '/admin/models/WDIModelThemes_wdi.php');
245
  $themes = WDIModelThemes_wdi::get_themes();
246
+
247
+ $tabs = array(
248
+ "feed_settings" => array(
249
+ "media" => array(
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
+ ),
259
+ array(
260
+ 'sort_images_by' => array('name' => 'sort_images_by', 'title' => __('Sort Media By', "wd-instagram-feed"), 'valid_options' => array('date' => __('Date', "wd-instagram-feed"), 'likes' => __('Likes', "wd-instagram-feed"), 'comments' => __('Comments', "wd-instagram-feed"), 'random' => __('Random', "wd-instagram-feed")), 'type' => 'select', 'tooltip' => "", 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
261
+ 'display_order' => array('name' => 'display_order', 'title' => __('Sorting Order', "wd-instagram-feed"), 'valid_options' => array('asc' => 'Ascending', 'desc' => 'Descending '), 'type' => 'select', 'tooltip' => "", 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
262
+ 'feed_item_onclick' => array('name' => 'feed_item_onclick', 'title' => __('Action OnClick', "wd-instagram-feed"), 'type' => 'select', 'valid_options' => array('lightbox' => __('Open Lightbox', "wd-instagram-feed"), 'instagram' => __('Redirect To Instagram', "wd-instagram-feed"), 'custom_redirect' => __('Custom Redirect', "wd-instagram-feed"), 'none' => __('Do Nothing', "wd-instagram-feed")), 'break' => 'true', 'hide_ids' => array('lightbox' => 'redirect_url', 'instagram' => 'redirect_url', 'none' => 'redirect_url'), 'tooltip' => __('Do this action when user clicks on image/video in the feed', 'wd-instagram-feed'), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
263
+ 'redirect_url' => array('name' => 'redirect_url', 'title' => __('Redirect URL', "wd-instagram-feed"), 'type' => 'input', 'tooltip' => __('Absolute Url to redirect to.', 'wd-instagram-feed'), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style,image_browser'))),
264
+ )
265
+ )
266
+ ),
267
+ "layout" => array(
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'))),
274
+
275
+ 'number_of_columns' => array('name' => 'number_of_columns', 'title' => __('Number of Columns', "wd-instagram-feed"), 'type' => 'select', 'valid_options' => array('1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6', '7' => '7', '8' => '8'), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry'))),
276
+ 'number_of_photos' => array('name' => 'number_of_photos', 'title' => __('Number of Images/Videos', "wd-instagram-feed"), 'type' => 'input', 'input_type' => 'number', 'tooltip' => __('Number of images/videos to show when feed is loaded first time', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style'))),
277
+ 'load_more_number' => array('name' => 'load_more_number', 'title' => __('Number of New Media', "wd-instagram-feed"), 'type' => 'input', 'input_type' => 'number', 'tooltip' => __('Number of new media added to the feed, when user clicks on load more button or triggers infinite scroll', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style'))),
278
+ 'pagination_per_page_number' => array('name' => 'pagination_per_page_number', 'title' => __('Number of Media Per Page', "wd-instagram-feed"), 'type' => 'input', 'input_type' => 'number', 'tooltip' => __('Number of images to show on each pagination page', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style'))),
279
+ 'pagination_preload_number' => array('name' => 'pagination_preload_number', 'title' => __('Pages To Preload', "wd-instagram-feed"), 'type' => 'input', 'input_type' => 'number', 'tooltip' => __('Preload all the media of several first pages', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style'))),
280
+ 'image_browser_preload_number' => array('name' => 'image_browser_preload_number', 'title' => __('Number of Media for Initial Preload', "wd-instagram-feed"), 'type' => 'input', 'input_type' => 'number', 'tooltip' => __('A number of first images/videos are preloaded', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'image_browser'))),
281
+ 'image_browser_load_number' => array('name' => 'image_browser_load_number', 'title' => __('Number of Media for Pagination Preload', "wd-instagram-feed"), 'type' => 'input', 'input_type' => 'number', 'tooltip' => "", 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'image_browser'))),
282
+ 'resort_after_load_more' => array('name' => 'resort_after_load_more', 'title' => __('Resort Altogether After Loading More', "wd-instagram-feed"), 'type' => 'checkbox', 'tooltip' => __('When checked, newly loaded and existing media is mixed then sorted', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry,blog_style'))),
283
+ 'disable_mobile_layout' => array('name' => 'disable_mobile_layout', 'title' => __('Make Layout Not Responsive', "wd-instagram-feed"), 'type' => 'checkbox', 'tooltip' => __('When checked, layout does not become single-column on mobile. Columns number stays the same', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'feed_settings'), array('name' => 'section', 'value' => 'thumbnails,masonry'))),
284
+ )
285
+ )
286
+ ),
287
+ "advanced" => array(
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
+ )
308
+ ),
309
+ ),
310
+ "lightbox_settings" => array(
311
+ "general" => array(
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')),
318
+ 'popup_width' => array('name' => 'popup_width', 'title' => __('Lightbox Width', "wd-instagram-feed"), 'type' => 'input', 'input_type' => 'number', 'label' => array('text' => 'px', 'place' => 'after'), 'tooltip' => '', 'attr' => array(array('name' => 'class', 'value' => 'small_input'), array('name' => 'tab', 'value' => 'lightbox_settings'))),
319
+ 'popup_height' => array('name' => 'popup_height', 'title' => __('Lightbox Height', "wd-instagram-feed"), 'type' => 'input', 'input_type' => 'number', 'label' => array('text' => 'px', 'place' => 'after'), 'tooltip' => '', 'attr' => array(array('name' => 'class', 'value' => 'small_input'), array('name' => 'tab', 'value' => 'lightbox_settings'))),
320
+ 'popup_type' => array('name' => 'popup_type', 'title' => __('Lightbox Effect', "wd-instagram-feed"), 'valid_options' => array('none' => 'None', 'cubeH' => 'Cube Horizontal', 'cubeV' => 'Cube Vertical', 'fade' => 'Fade', 'sliceH' => 'Slice Horizontal', 'sliceV' => 'Slice Vertical', 'slideH' => 'Slide Horizontal', 'slideV' => 'Slide Vertical', 'scaleOut' => 'Scale Out', 'scaleIn' => 'Scale In', 'blockScale' => 'Block Scale', 'kaleidoscope' => 'Kaleidoscope', 'fan' => 'Fan', 'blindH' => 'Blind Horizontal', 'blindV' => 'Blinde Vertical', 'random' => 'Random'), 'disabled_options' => array('cubeH', 'cubeV', 'sliceH', 'sliceV', 'slideH', 'slideV', 'scaleOut', 'scaleIn', 'blockScale', 'kaleidoscope', 'fan', 'blindH', 'blindV', 'random'), 'disabled' => array('text' => __("Effects are available only in paid version", "wd-instagram-feed")), 'type' => 'select', 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))),
321
+ ),
322
+ array(
323
+ 'popup_autoplay' => array('name' => 'popup_autoplay', 'title' => __('Lightbox autoplay', "wd-instagram-feed"), 'type' => 'radio', 'valid_options' => array('1' => __('Yes', "wd-instagram-feed"), '0' => __('No', "wd-instagram-feed")), 'hide_ids' => array('0' => 'popup_interval'), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))),
324
+ 'popup_interval' => array('name' => 'popup_interval', 'title' => __('Autoplay Interval', "wd-instagram-feed"), 'type' => 'input', 'input_type' => 'number', 'label' => array('text' => 'sec', 'place' => 'after'), 'tooltip' => '', 'attr' => array(array('name' => 'class', 'value' => 'small_input'), array('name' => 'tab', 'value' => 'lightbox_settings'))),
325
+ )
326
+ )
327
+ ),
328
+ "advanced" => array(
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'))),
335
+ 'popup_filmstrip_height' => array('name' => 'popup_filmstrip_height', 'title' => __('Filmstrip Thumbnail Size', "wd-instagram-feed"), 'type' => 'input', 'input_type' => 'number', 'label' => array('text' => 'px', 'place' => 'after'), 'tooltip' => '', 'attr' => array(array('name' => 'class', 'value' => 'small_input'), array('name' => 'tab', 'value' => 'lightbox_settings'))),
336
+ 'autohide_lightbox_navigation' => array('name' => 'autohide_lightbox_navigation', 'title' => __('Show Next / Previous Buttons', "wd-instagram-feed"), 'type' => 'radio', 'valid_options' => array('1' => __('On Hover', "wd-instagram-feed"), '0' => __('Always', "wd-instagram-feed")), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))),
337
+ 'popup_info_always_show' => array('disabled_options' => array('1' => '', '0' => ''), 'name' => 'popup_info_always_show', 'title' => __('Caption Displayed by Default', "wd-instagram-feed"), 'type' => 'radio', 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("This feature is available only in paid version", "wd-instagram-feed"), 'br' => 'true'), 'valid_options' => array('1' => __('Yes', "wd-instagram-feed"), '0' => __('No', "wd-instagram-feed")), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))),
338
+ 'popup_info_full_width' => array('disabled_options' => array('1' => '', '0' => ''), 'name' => 'popup_info_full_width', 'title' => __('Full Width Caption', "wd-instagram-feed"), 'type' => 'radio', 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("This feature is available only in paid version", "wd-instagram-feed"), 'br' => 'true'), 'valid_options' => array('1' => __('Yes', "wd-instagram-feed"), '0' => __('No', "wd-instagram-feed")), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))),
339
+ 'enable_loop' => array('name' => 'enable_loop', 'title' => __('Enable Loop', "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'))),
340
+ 'popup_image_right_click' => array('name' => 'popup_image_right_click', 'title' => __('Right Click Protection', "wd-instagram-feed"), 'type' => 'radio', 'valid_options' => array('1' => __('Yes', "wd-instagram-feed"), '0' => __('No', "wd-instagram-feed")), 'tooltip' => __('Protect lightbox images from downloading', "wd-instagram-feed"), 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))),
341
+ ),
342
+ array(
343
+ 'popup_enable_ctrl_btn' => array('name' => 'popup_enable_ctrl_btn', 'title' => __('Enable Control Buttons', "wd-instagram-feed"), 'type' => 'radio', 'valid_options' => array('1' => __('Yes', "wd-instagram-feed"), '0' => __('No', "wd-instagram-feed")), 'hide_ids' => array('0' => 'popup_enable_info,popup_enable_fullscreen,popup_enable_info,popup_enable_comment,popup_enable_download,popup_enable_share_buttons,popup_enable_fullsize_image'), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))),
344
+ 'popup_enable_info' => array('disabled_options' => array('1' => '', '0' => ''), 'name' => 'popup_enable_info', 'title' => __('Enable Caption Control', "wd-instagram-feed"), 'type' => 'radio', 'label' => array('place' => 'after', 'class' => 'wdi_pro_only', 'text' => __("This feature is available only in paid version", "wd-instagram-feed"), 'br' => 'true'), 'valid_options' => array('1' => 'Yes', '0' => 'No'), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'lightbox_settings'))),
345
+ 'popup_enable_fullscreen' => array('name' => 'popup_enable_fullscreen', 'title' => __('Show Fullscreen Control Button', "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'))),
346
+ 'popup_enable_comment' => array('switched' => 'off', '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_comment', 'title' => __('Enable Comments Control', "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'))),
347
+ 'popup_enable_fullsize_image' => array('name' => 'popup_enable_fullsize_image', 'title' => __('Add Link to Instagram Post', "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'))),
348
+ 'popup_enable_download' => array('name' => 'popup_enable_download', 'title' => __('Enable Download Button', "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'))),
349
+ 'popup_enable_share_buttons' => 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_share_buttons', 'title' => __('Show Share Buttons', "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'))),
350
+ 'popup_enable_facebook' => array('status' => 'disabled', 'name' => 'popup_enable_facebook', 'title' => __('Enable Facebook button', "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'))),
351
+ 'popup_enable_twitter' => array('status' => 'disabled', 'name' => 'popup_enable_twitter', 'title' => __('Enable Twitter button', "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'))),
352
+ 'popup_enable_google' => array('status' => 'disabled', 'name' => 'popup_enable_google', 'title' => __('Enable Google+ button', "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'))),
353
+ 'popup_enable_pinterest' => array('status' => 'disabled', 'name' => 'popup_enable_pinterest', 'title' => __('Enable Pinterest button', "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'))),
354
+ 'popup_enable_tumblr' => array('status' => 'disabled', 'name' => 'popup_enable_tumblr', 'title' => __('Enable Tumblr button', "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'))),
355
+ 'show_image_counts' => array('status' => 'disabled', 'name' => 'show_image_counts', 'title' => __('Show Images Count', "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'))),
356
+ )
357
+ )
358
+ ),
359
+ ),
360
+ "conditional_filters" => array(
361
+ "" => array(
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'))),
368
+ 'conditional_filter_type' => array('name' => 'conditional_filter_type', 'title' => __('Filter Logic', "wd-instagram-feed"), 'type' => 'select', 'label' => array('text' => '', 'place' => 'after'), 'valid_options' => array('AND' => 'AND', 'OR' => 'OR', 'NOR' => 'NOR'), 'tooltip' => '', 'attr' => array(array('name' => 'tab', 'value' => 'conditional_filters'))),
369
+ )
370
+ )
371
+ )
372
+ )
373
  );
374
+ $return = array('tabs' => $tabs, 'current_id' => $current_id);
375
  return $return;
376
  }
377
 
380
  {
381
  ?>
382
  <div class="wdi_border_wrapper">
383
+ <div class="display_type_content">
384
+ <div class="display_type_container wdi_clear_tag">
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>
388
+ </div>
389
+ <label for="thumbnails"><img src="<?php echo plugins_url('../../images/feed_views/thumbnails.png', __FILE__); ?>"></label>
390
+ </div>
391
+
392
+ <div class="display_type wdi_tooltip" wdi-tooltip="<?php _e('Available In Paid Version') ?>" tab="feed_settings">
393
+ <div style="text-align:center;padding:2px;"><input type="radio" disabled id="masonry" name="feed_type"
394
+ value="masonry"><label for="masonry" class="wdi_pro_only">Masonry</label>
395
+ </div>
396
+ <label for="masonry" class="wdi_pro_only_op"><img
397
+ src="<?php echo plugins_url('../../images/feed_views/masonry.png', __FILE__); ?>"></label>
398
+ </div>
399
+
400
+ <div class="display_type wdi_tooltip" wdi-tooltip="<?php _e('Available In Paid Version') ?>" tab="feed_settings">
401
+ <div style="text-align:center;padding:2px;"><input disabled type="radio" id="blog_style" name="feed_type"
402
+ value="blog_style"><label for="blog_style"
403
+ class="wdi_pro_only">Blog
404
+ Style</label></div>
405
+ <label for="blog_style" class="wdi_pro_only_op"><img
406
+ src="<?php echo plugins_url('../../images/feed_views/blog_style.png', __FILE__); ?>"></label>
407
+ </div>
408
+
409
+ <div class="display_type" tab="feed_settings">
410
+ <div style="text-align:center;padding:2px;"><input type="radio" id="image_browser" name="feed_type"
411
+ value="image_browser"><label for="image_browser">Image
412
+ Browser</label></div>
413
+ <label for="image_browser"><img
414
+ src="<?php echo plugins_url('../../images/feed_views/image_browser.png', __FILE__); ?>"></label>
415
+ </div>
416
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
417
  </div>
418
 
 
419
  <?php
420
  }
421
  public function generateTabs()
422
  {
423
  ?>
424
+ <div id="wdi_feed_tabs" >
425
  <div class="wdi_feed_tabs" id="wdi_feed_settings"
426
  onclick="wdi_controller.switchFeedTabs('feed_settings');"><?php _e('Feed Settings', "wd-instagram-feed") ?></div>
427
  <div class="wdi_feed_tabs" id="wdi_lightbox_settings"
428
  onclick="wdi_controller.switchFeedTabs('lightbox_settings');"><?php _e('Lightbox Settings', "wd-instagram-feed") ?></div>
429
  <div class="wdi_feed_tabs" id="wdi_conditional_filters"
430
  onclick="wdi_controller.switchFeedTabs('conditional_filters');"><?php _e('Conditional Filters', "wd-instagram-feed") ?></div>
 
431
  </div>
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
472
 
473
 
474
  </h2>
475
+ <div class="wdi_buttons">
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'>
497
  value="<?php echo isset($feed_row['published']) ? $feed_row['published'] : '1'; ?>">
498
  <input type="hidden" id="wdi_current_id" name="current_id" value=''>
499
  <input type="hidden" id="wdi_refresh_tab" name="wdi_refresh_tab">
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
+ <h3 class="wdi_section_name"><?php echo $section["title"]; ?></h3>
506
+ <div class="wdi_elements wdi_clear_tag">
507
+ <?php foreach ($section["elements"] as $elements) { ?>
508
+ <div class="section_col">
509
+ <?php foreach ($elements as $key => $element) {
510
+ if ($element['name'] == 'conditional_filter_enable') { ?>
511
+ <div id="wdi-conditional-filters-ui" class="wdi_demo_img">
512
+ <div class="wdi-pro-overlay"><img src="<?php echo WDI_URL . '/demo_images/filters.png'; ?>" alt=""></div>
513
+ </div><?php
514
+ continue;
515
+ }
516
+
517
+ if ($element['name'] == 'conditional_filter_type') {
518
+ continue;
519
+ }
520
+
521
+ if (isset($element['status'])) {
522
+ if ($element['status'] == 'disabled') {
523
+ continue;
524
+ }
525
+ } ?>
526
+
527
+ <div class="wdi_element">
528
+ <div class="wdi_element_title">
529
+ <span class="wdi_settings_link" ><?php echo $element['title']; ?></span>
530
+ </div>
531
+ <div class="wdi_element_content">
532
+
533
+ <?php $this->buildField($element, $feed_row); ?>
534
+ <!-- FEED USERS -->
535
+ <?php if ($element['name'] == 'feed_users'): ?>
536
+ <input type="text" id="wdi_add_user_ajax_input">
537
+ <div id="wdi_add_user_ajax" class="button"><?php _e('Add', "wd-instagram-feed"); ?></div>
538
+ <div id="wdi_feed_users">
539
+ <?php $this->display_feed_users($feed_row); ?>
540
+ </div>
541
+ <?php endif; ?>
542
+ <!-- END FEED USERS -->
543
+ <?php
544
+ if($element['tooltip'] && $element['tooltip']!=""){
545
+ echo "<p class='wdi_about_filed'>".$element['tooltip']."</p>";
546
+ }
547
+ ?>
548
+ </div>
549
+ </div>
550
+ <?php } ?>
551
+ </div>
552
+ <?php } ?>
553
+ </div>
554
+ </div>
555
+ <?php } ?>
556
+ </div><?php
557
  }
558
  ?>
559
+ </div>
 
 
 
 
 
 
 
560
  </form>
561
  </div>
562
  </div>
admin/views/WDIViewLicensing_wdi.php CHANGED
@@ -91,7 +91,7 @@ class WDIViewLicensing_wdi {
91
  <span> <?php _e('Only Bug Fixes',"wd-instagram-feed"); ?> </span>
92
  </div>
93
  <div id="featurs_table3">
94
- <span><?php _e("Pro Version", 'wd-instagram-feed'); ?></span>
95
 
96
  <span class="yes"></span>
97
  <span class="yes"></span>
91
  <span> <?php _e('Only Bug Fixes',"wd-instagram-feed"); ?> </span>
92
  </div>
93
  <div id="featurs_table3">
94
+ <span><?php _e("Paid Version", 'wd-instagram-feed'); ?></span>
95
 
96
  <span class="yes"></span>
97
  <span class="yes"></span>
admin/views/WDIViewSettings_wdi.php CHANGED
@@ -77,7 +77,11 @@ private $model;
77
  body.instagram-feed-wd_page_wdi_settings table:nth-of-type(2){
78
  display:none;
79
  }
80
- <?php } ?>
 
 
 
 
81
  </style>
82
  <script>
83
  jQuery(document).ready(function(){
@@ -86,7 +90,21 @@ private $model;
86
  jQuery('#wdi_access_token').attr('value','');
87
  jQuery('#wdi_user_name').attr('value','');
88
  document.cookie = "wdi_autofill=false";
89
- jQuery(this).parent().parent().find('#submit').trigger('click');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  }
91
  });
92
  });
77
  body.instagram-feed-wd_page_wdi_settings table:nth-of-type(2){
78
  display:none;
79
  }
80
+ body.toplevel_page_wdi_settings table:nth-of-type(2){
81
+ display:none;
82
+ }
83
+
84
+ <?php } ?>
85
  </style>
86
  <script>
87
  jQuery(document).ready(function(){
90
  jQuery('#wdi_access_token').attr('value','');
91
  jQuery('#wdi_user_name').attr('value','');
92
  document.cookie = "wdi_autofill=false";
93
+ <?php if(get_option("wdi_token_error_flag") === "1"):?>
94
+ jQuery.ajax({
95
+ type: "POST",
96
+ url: "<?php echo admin_url('admin-ajax.php');?>",
97
+ dataType: 'json',
98
+ data: {
99
+ action: "wdi_delete_token_flag",
100
+ wdi_token_flag_nonce: "<?php echo wp_create_nonce('');?>",
101
+ },
102
+ success: function(data){
103
+
104
+ }
105
+ });
106
+ <?php endif; ?>
107
+ jQuery(this).parent().parent().find('#submit').trigger('click');
108
  }
109
  });
110
  });
admin/views/WDIViewThemes_wdi.php CHANGED
@@ -42,7 +42,7 @@ class WDIViewThemes_wdi {
42
  </div>
43
 
44
 
45
- <div class="wdi_pro_notice"> <?php _e("This is FREE version, Customizing themes is available only in PRO version","wd-instagram-feed"); ?> </div>
46
 
47
 
48
  <?php
42
  </div>
43
 
44
 
45
+ <div class="wdi_pro_notice"> <?php _e("This is free version, Customizing themes is available only in paid version","wd-instagram-feed"); ?> </div>
46
 
47
 
48
  <?php
changelog.txt CHANGED
@@ -1,3 +1,11 @@
 
 
 
 
 
 
 
 
1
  = 1.2.11 =
2
  Changed: Scripts and styles are minified by default
3
  Changed: Font-Awesome has been updated to version 4.7.0 and loaded from CDN
1
+ = 1.2.12 =
2
+ New: Customize feed media resolution. Choose between optimal or custom resolutions, fast loading and higher quality.
3
+ Improved: Redesigned feed and theme editor screens
4
+ Improved: More user-friendly names and descriptions of feed settings
5
+ Improved: UX when access token is expired or have not been obtained yet
6
+ Improved: UX when there are JS errors on front-end
7
+ Fixed: Minor: do not include custom scroll bar JS if feed does not have popup
8
+
9
  = 1.2.11 =
10
  Changed: Scripts and styles are minified by default
11
  Changed: Font-Awesome has been updated to version 4.7.0 and loaded from CDN
css/wdi_backend.css CHANGED
@@ -1,6 +1,11 @@
1
  .wdi_clear{
2
  clear: both;
3
  }
 
 
 
 
 
4
  #wdi_unistall{
5
  background-color: #D82121;
6
  border-color: #D31818;
@@ -13,44 +18,48 @@
13
  width: 45%;
14
  }
15
 
16
-
 
 
 
 
17
 
18
  /*tooltip css*/
19
- .wdi_tooltip,.wdi_settings_link{
20
- text-decoration: none;
21
- line-height: 16.9px;
22
- font-size: 13px;
23
- color: rgb(35, 40, 45);
24
- padding-bottom: 2px;
25
- padding-left: 2px;
26
- padding-right: 2px;
27
- padding-top: 2px;
 
 
 
 
28
  }
29
  .wdi_tooltip:hover,.wdi_settings_link:hover {
30
  color: rgb(35, 40, 45);
31
  position: relative;
32
  }
33
  .wdi_tooltip:hover:after {
34
- content: attr(wdi-tooltip);
35
- padding: 4px 8px;
36
- color: #271F21;
37
- position: absolute;
38
- left: 0;
39
- top: 100%;
40
- white-space: nowrap;
41
- z-index: 20;
42
- -moz-border-radius: 5px;
43
- -webkit-border-radius: 5px;
44
- border-radius: 5px;
45
- -moz-box-shadow: 0px 0px 4px #222;
46
- -webkit-box-shadow: 0px 0px 4px #222;
47
- box-shadow: 0px 0px 4px #222;
48
- background-image: -moz-linear-gradient(top, #eeeeee, #cccccc);
49
- background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, #eeeeee),color-stop(1, #cccccc));
50
- background-image: -webkit-linear-gradient(top, #eeeeee, #cccccc);
51
- background-image: -moz-linear-gradient(top, #eeeeee, #cccccc);
52
- background-image: -ms-linear-gradient(top, #eeeeee, #cccccc);
53
- background-image: -o-linear-gradient(top, #eeeeee, #cccccc);
54
  }
55
  .wdi_pro_only{
56
  font-style: italic;
@@ -79,62 +88,53 @@ background-image: -o-linear-gradient(top, #eeeeee, #cccccc);
79
 
80
  /*feeds page*/
81
  #wdi_feed_users{
82
- width: 100%;
83
- }
84
- #wdi_feed_tabs .wdi_feed_tabs:hover {
85
- cursor: pointer;
86
- background-color: rgb(240, 240, 240);
87
- border-bottom: none;
88
- margin-bottom: 1px;
89
  }
 
90
  #wdi_feed_tabs .wdi_feed_tabs {
91
- font-size: 20px;
92
- float: left;
93
- padding: 10px;
94
- background-color: #e4e4e4;
95
- border: 1px solid #ccc;
96
- border-bottom: none;
97
- margin-right: 2px;
98
- position: relative;
99
- z-index: 2;
100
- top: 2px;
101
- /* color: black; */
102
  }
103
- .wdi_feed_tab_active{
104
- background-color: rgb(240, 240, 240) !important;
105
- margin-bottom: 1px !important;
106
- border-bottom: 1px solid rgb(240,240,240) !important;
107
- top: 0px;
108
  }
109
- .wdi_border_wrapper{
110
- border: 1px solid #ccc;
111
- padding: 5px;
 
112
  }
113
 
114
-
115
  .wdi_border_wrapper [scope='row'] + td, .wdi_border_wrapper [scope='row'] {
116
  padding: 8px;
117
  }
118
-
119
-
120
-
121
-
122
-
123
-
 
 
124
 
125
  .wdi_user {
126
- border: 1px solid rgb(185, 185, 185);
127
- background-color: rgb(215, 215, 215);
128
- margin: 3px;
129
- border-radius: 5px;
130
- height: 28px;
131
- position: relative;
132
- width: 60%;
133
- min-width: 200px;
134
  }
135
  .wdi_user:hover{
136
- border: 1px solid rgb(190, 190, 190);
137
- background-color: rgb(247, 239, 239);
138
  }
139
  .wdi_user a{
140
  text-decoration: none;
@@ -216,6 +216,7 @@ padding: 5px;
216
  font-size: 14px;
217
  color: #000000;
218
  clear: both;
 
219
  }
220
 
221
  .instagram-feed-wd_page_wdi_settings form{
@@ -296,7 +297,7 @@ padding: 5px;
296
  }
297
 
298
  .wdi_advanced_option {
299
- background-color: #f9f9f9;
300
  cursor: pointer;
301
  border: 1px solid rgb(227, 227, 227);
302
  border-radius: 10px;
@@ -547,4 +548,1037 @@ padding: 5px;
547
  border: none;
548
  display: inline-block;
549
  vertical-align: middle;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
550
  }
1
  .wdi_clear{
2
  clear: both;
3
  }
4
+ .wdi_clear_tag:after{
5
+ content:"";
6
+ display:table;
7
+ clear: both;
8
+ }
9
  #wdi_unistall{
10
  background-color: #D82121;
11
  border-color: #D31818;
18
  width: 45%;
19
  }
20
 
21
+ .display_type_content {
22
+ background: #fff;
23
+ border: 1px solid #dedede;
24
+ margin-bottom: 15px;
25
+ }
26
 
27
  /*tooltip css*/
28
+ .wdi_tooltip,
29
+ .wdi_settings_link {
30
+ display: block;
31
+ font-size: 14px !important;
32
+ font-weight: bold;
33
+ line-height: 20px;
34
+ margin-bottom: 5px;
35
+ color: #444;
36
+ text-decoration: none;
37
+ }
38
+ p.wdi_about_filed {
39
+ font-size: 13px;
40
+ font-style: italic;
41
  }
42
  .wdi_tooltip:hover,.wdi_settings_link:hover {
43
  color: rgb(35, 40, 45);
44
  position: relative;
45
  }
46
  .wdi_tooltip:hover:after {
47
+ content: attr(wdi-tooltip);
48
+ padding: 4px 8px;
49
+ color: #dbdbe0;
50
+ position: absolute;
51
+ left: 0;
52
+ top: 100%;
53
+ white-space: nowrap;
54
+ z-index: 20;
55
+ -moz-border-radius: 3px;
56
+ -webkit-border-radius: 3px;
57
+ border-radius: 2px;
58
+ -moz-box-shadow: 0px 0px 4px #222;
59
+ -webkit-box-shadow: 0px 0px 4px #222;
60
+ box-shadow: 0px 0px 4px rgba(0,0,0,0.5);
61
+ background-color: rgba(0,0,0,0.75);
62
+ font-size: 12px;
 
 
 
 
63
  }
64
  .wdi_pro_only{
65
  font-style: italic;
88
 
89
  /*feeds page*/
90
  #wdi_feed_users{
91
+ width: 100%;
92
+ margin-top: 2px;
 
 
 
 
 
93
  }
94
+
95
  #wdi_feed_tabs .wdi_feed_tabs {
96
+ border: 1px solid #F1F1F1;
97
+ color: #444;
98
+ cursor: pointer;
99
+ font-size: 13px;
100
+ font-weight: bold;
101
+ padding: 12px;
102
+ background: #fff;
103
+ text-decoration: none;
104
+ display: inline-block;
 
 
105
  }
106
+ #wdi_feed_tabs {
107
+ margin: 16px 0;
 
 
 
108
  }
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'] {
116
  padding: 8px;
117
  }
118
+ .display_type_container.wdi_clear_tag {
119
+ display: table;
120
+ margin: 10px auto;
121
+ }
122
+ .display_type_container > div {
123
+ float: left;
124
+ margin-right: 15px;
125
+ }
126
 
127
  .wdi_user {
128
+ border: 1px solid rgb(185, 185, 185);
129
+ background-color: rgba(0, 0, 0, .05);
130
+ margin: 0px 4px 0 0;
131
+ border-radius: 5px;
132
+ height: 28px;
133
+ position: relative;
134
+ display: inline-block;
 
135
  }
136
  .wdi_user:hover{
137
+ background-color: rgba(0, 0, 0, .08);
 
138
  }
139
  .wdi_user a{
140
  text-decoration: none;
216
  font-size: 14px;
217
  color: #000000;
218
  clear: both;
219
+ max-width: 720px;
220
  }
221
 
222
  .instagram-feed-wd_page_wdi_settings form{
297
  }
298
 
299
  .wdi_advanced_option {
300
+ background-color: #fff;
301
  cursor: pointer;
302
  border: 1px solid rgb(227, 227, 227);
303
  border-radius: 10px;
548
  border: none;
549
  display: inline-block;
550
  vertical-align: middle;
551
+ }
552
+
553
+ #bullets_images_type,
554
+ #bullets_images_color,
555
+ #bull_style,
556
+ #rl_butt_type,
557
+ #rl_butt_color,
558
+ #rl_butt_style {
559
+ margin: 0 10px 0 0;
560
+ width: 100px;
561
+ }
562
+
563
+ .wds_ctrl_btn_upload {
564
+ display: block !important;
565
+ margin: 5px 0 !important;
566
+ text-align: center;
567
+ vertical-align: middle;
568
+ width: 95%;
569
+ }
570
+
571
+ .wds_reverse {
572
+ margin: 0 5px !important;
573
+ }
574
+
575
+ .wds_free_button,
576
+ .wds_free_button:hover {
577
+ background: linear-gradient(to bottom, #E5E5E5, #E5E5E5) repeat scroll 0 0 #f3f3f3 !important;
578
+ border-color: #bbb !important;
579
+ color: #888888 !important;
580
+ }
581
+
582
+ .wdi_spider_free_version_label,
583
+ .wdi_spider_free_version_label * {
584
+ color: #808080 !important;
585
+ }
586
+
587
+ .wdi_spider_free_version {
588
+ background-color: #DFDFDF;
589
+ border: 1px solid #797979;
590
+ border-radius: 2px;
591
+ padding: 2px;
592
+ width: 210px;
593
+ }
594
+
595
+ .wds_more {
596
+ font-size: 12px;
597
+ }
598
+
599
+ .wrap .button {
600
+ border-radius: 3px !important;
601
+ text-shadow: none !important;
602
+ }
603
+
604
+ .wdi_spider_message_cont {
605
+ display: none;
606
+ width: 99%;
607
+ }
608
+
609
+ .wdi_spider_load {
610
+ display: none;
611
+ }
612
+
613
+ .wdi_spider_load_cont {
614
+ background-color: rgba(0, 0, 0, 0.2);
615
+ left: 0;
616
+ height: 100%;
617
+ position: fixed;
618
+ top: 0;
619
+ width: 100%;
620
+ z-index: 99998;
621
+ }
622
+
623
+ .wdi_spider_load_icon {
624
+ left: 0;
625
+ height: 100%;
626
+ position: fixed;
627
+ text-align: center;
628
+ top: 0;
629
+ width: 100%;
630
+ z-index: 99999;
631
+ }
632
+
633
+ .wdi_spider_ajax_loading {
634
+ border: none !important;
635
+ margin-top: 200px;
636
+ width: 50px;
637
+ -webkit-animation: spin 2.5s infinite linear;
638
+ -moz-animation: spin 2.5s infinite linear;
639
+ -o-animation: spin 2.5s infinite linear;
640
+ animation: spin 2.5s infinite linear;
641
+ }
642
+
643
+ @-moz-keyframes spin {
644
+ 0% {
645
+ -moz-transform: rotate(0deg);
646
+ }
647
+ 100% {
648
+ -moz-transform: rotate(359deg);
649
+ }
650
+ }
651
+ @-webkit-keyframes spin {
652
+ 0% {
653
+ -webkit-transform: rotate(0deg);
654
+ }
655
+ 100% {
656
+ -webkit-transform: rotate(359deg);
657
+ }
658
+ }
659
+ @-o-keyframes spin {
660
+ 0% {
661
+ -o-transform: rotate(0deg);
662
+ }
663
+ 100% {
664
+ -o-transform: rotate(359deg);
665
+ }
666
+ }
667
+ @-ms-keyframes spin {
668
+ 0% {
669
+ -ms-transform: rotate(0deg);
670
+ }
671
+ 100% {
672
+ -ms-transform: rotate(359deg);
673
+ }
674
+ }
675
+ @keyframes spin {
676
+ 0% {
677
+ transform: rotate(0deg);
678
+ }
679
+ 100% {
680
+ transform: rotate(359deg);
681
+ }
682
+ }
683
+
684
+ #TB_window,
685
+ #TB_iframeContent {
686
+ width: 800px !important;
687
+ height: 500px !important;
688
+ }
689
+
690
+ #TB_window {
691
+ margin-left: -400px !important;
692
+ }
693
+
694
+ .wrap * {
695
+ font-size: 12px;
696
+ font-family: sans-serif;
697
+ }
698
+
699
+ .input_th {
700
+ margin-left: 0px !important;
701
+ width: 160px !important;
702
+ font-family: sans-serif;
703
+ }
704
+ .input_th2 {
705
+ margin-left: 0px !important;
706
+ width: 160px !important;
707
+ margin-top:5px;
708
+ height: 19px;
709
+ }
710
+
711
+ .edit_input {
712
+ height: 28px !important;
713
+ padding-bottom: 7px !important;
714
+ }
715
+
716
+ .add_tag_th {
717
+ padding-left: 21px;
718
+ font-size: 12px;
719
+ font-family: sans-serif;
720
+ }
721
+
722
+ .pointer{
723
+ cursor: pointer;
724
+ }
725
+
726
+ .non_selectable {
727
+ -webkit-touch-callout: none;
728
+ -webkit-user-select: none;
729
+ -khtml-user-select: none;
730
+ -moz-user-select: none;
731
+ -ms-user-select: none;
732
+ user-select: none;
733
+ }
734
+
735
+ .wds_position_table td,
736
+ .wds_position_table input{
737
+ border: 1px solid #CCCCCC;
738
+ margin: 2px;
739
+ }
740
+
741
+ .wds_position_table .wds_position_td {
742
+ background-color: #f4f4f4;
743
+ display: inline-block;
744
+ line-height: 1;
745
+ padding: 0 !important;
746
+ }
747
+
748
+ .wdi_spider_div_options {
749
+ background: none repeat scroll 0 0 #F4F4F4;
750
+ border: 1px solid #8F8D8D;
751
+ border-radius: 8px 8px 8px 8px;
752
+ display: none;
753
+ margin: 2px 0 0 190px;
754
+ padding: 13px;
755
+ min-height: 300px;
756
+ min-width: 600px;
757
+ vertical-align: top;
758
+ }
759
+
760
+ .table_small_col {
761
+ text-align: center !important;
762
+ width: 45px;
763
+ }
764
+
765
+ .table_medium_col {
766
+ text-align: center !important;
767
+ width: 70px;
768
+ }
769
+
770
+ .table_big_col {
771
+ text-align: center !important;
772
+ width: 80px;
773
+ }
774
+
775
+ .table_large_col {
776
+ text-align: center !important;
777
+ width: 140px;
778
+ }
779
+
780
+ .table_medium_col_uncenter {
781
+ width: 80px;
782
+ }
783
+
784
+ .table_extra_large_col {
785
+ padding: 4px !important;
786
+ width: 150px !important;
787
+ }
788
+
789
+ .first-page,
790
+ .prev-page,
791
+ .next-page,
792
+ .last-page,
793
+ .table_extra_large_col a,
794
+ .table_medium_col a,
795
+ .table_big_col a,
796
+ .table_small_col a {
797
+ cursor: pointer;
798
+ }
799
+
800
+ .wdi_spider_word_wrap {
801
+ word-wrap: normal;
802
+ }
803
+
804
+ .wdi_spider_description {
805
+ color: #666666;
806
+ font-size: 0.923em;
807
+ line-height: 1.231em;
808
+ }
809
+
810
+ .handle {
811
+ background: url("../images/draggable.png") no-repeat transparent;
812
+ border: none;
813
+ cursor: move;
814
+ display: inline-block;
815
+ height: 15px;
816
+ margin: 0 auto;
817
+ vertical-align: middle;
818
+ width: 15px;
819
+ }
820
+
821
+ .slider-icon {
822
+ background-image: url("../images/slider-icon.png");
823
+ background-repeat: no-repeat;
824
+ border: none;
825
+ float: left;
826
+ height: 32px;
827
+ margin: 7px 8px 0 0;
828
+ width: 32px;
829
+ }
830
+ .uninstall-icon {
831
+ background-image: url("../images/uninstall-icon.png");
832
+ background-repeat: no-repeat;
833
+ border: none;
834
+ float: left;
835
+ height: 32px;
836
+ margin: 7px 8px 0 0;
837
+ width: 32px;
838
+ }
839
+
840
+ .wdi_spider_label {
841
+ font-weight: bold;
842
+ width: 100px;
843
+ }
844
+
845
+ .wdi_spider_label_top {
846
+ font-weight: bold;
847
+ padding-top: 3px;
848
+ vertical-align: top;
849
+ width: 100px;
850
+ }
851
+
852
+ .wdi_spider_fieldset .wdi_spider_label {
853
+ font-weight: bold;
854
+ vertical-align: top;
855
+ width: 150px;
856
+ }
857
+
858
+ .wdi_spider_label_options {
859
+ font-weight: bold;
860
+ vertical-align: top;
861
+ width: 150px;
862
+ }
863
+
864
+ .wdi_spider_choose_option {
865
+ display: table;
866
+ box-shadow: 0px 0px 1px 1px #D2D2D2;
867
+ margin-bottom: 5px;
868
+ border-radius: 2px;
869
+ padding: 2px;
870
+ box-sizing: border-box;
871
+ cursor: pointer;
872
+ width: 100%;
873
+ }
874
+
875
+ .wdi_spider_options_cont,
876
+ .wdi_spider_bull_options_cont,
877
+ .wdi_spider_pp_options_cont,
878
+ .wdi_spider_options_color_cont,
879
+ .wdi_spider_bull_options_color_cont,
880
+ .wdi_spider_pp_options_color_cont {
881
+ display: none;
882
+ width: 180px;
883
+ height: 150px;
884
+ overflow: scroll;
885
+ overflow-x: hidden;
886
+ overflow-y: scroll;
887
+ }
888
+
889
+ .wdi_spider_option_cont {
890
+ display: block;
891
+ border-bottom: 1px solid #D3D3D3;
892
+ padding: 3px 0px 3px 0px;
893
+ box-sizing: content-box;
894
+ width: 98%;
895
+ border-radius: 0px;
896
+ cursor: pointer;
897
+ }
898
+
899
+ .wdi_spider_option_cont_title {
900
+ display: table-cell;
901
+ vertical-align: middle;
902
+ padding: 0px 0px 0px 4px;
903
+ }
904
+
905
+ .wdi_spider_option_cont_img {
906
+ display: table-cell;
907
+ width: 23%;
908
+ height: 15px;
909
+ text-align: right;
910
+ padding: 5px 4px 0px 0px;
911
+ box-sizing: border-box;
912
+ background-color: #EEEEEE;
913
+ }
914
+
915
+ .wdi_spider_option_main_title {
916
+ display: table-cell;
917
+ width: 65%;
918
+ vertical-align: middle;
919
+ padding: 0px 0px 0px 4px;
920
+ color: #555;
921
+ }
922
+
923
+ .wdi_spider_sel_option_ic {
924
+ display: table-cell;
925
+ width: 20%;
926
+ height: 15px;
927
+ text-align: right;
928
+ padding: 0px 6px 0px 0px;
929
+ box-sizing: border-box;
930
+ }
931
+
932
+ .wdi_spider_int_input {
933
+ width: 45px;
934
+ }
935
+
936
+ .wdi_spider_char_input {
937
+ width: 115px;
938
+ }
939
+
940
+ .wdi_spider_text_input {
941
+ width: 190px;
942
+ }
943
+
944
+ .wdi_spider_slider_div {
945
+ display: inline-block;
946
+ vertical-align: middle;
947
+ width: 140px;
948
+ }
949
+
950
+ .wdi_spider_slider_percentage,
951
+ .wdi_spider_slider_percentage input,
952
+ .wdi_spider_slider_percentage input :focus {
953
+ background: transparent;
954
+ border: none;
955
+ color: #00AEEF;
956
+ display: inline;
957
+ font-weight: bold;
958
+ text-align: right;
959
+ vertical-align: middle;
960
+ width: 30px;
961
+ }
962
+
963
+ .updated,
964
+ .error {
965
+ margin: 5px 0 2px !important;
966
+ }
967
+
968
+ .buttons_div {
969
+ clear: both;
970
+ float: right;
971
+ margin: 5px 0;
972
+ }
973
+
974
+ .buttons_div_left {
975
+ float: left;
976
+ margin: 5px 0;
977
+ }
978
+
979
+ .buttons_div_right {
980
+ float: right;
981
+ margin: 5px 0;
982
+ }
983
+
984
+ .wdi_spider_delete_img {
985
+ background-image: url("../images/delete.png");
986
+ border: none;
987
+ cursor: pointer;
988
+ display: inline-block;
989
+ vertical-align: middle;
990
+ height: 14px;
991
+ width: 14px;
992
+ }
993
+
994
+ .wdi_spider_delete_img_small {
995
+ background-image: url("../images/delete.png");
996
+ background-size: 10px auto;
997
+ border: medium none;
998
+ cursor: pointer;
999
+ display: inline-block;
1000
+ height: 10px;
1001
+ margin-top: 2px;
1002
+ vertical-align: middle;
1003
+ width: 10px;
1004
+ }
1005
+
1006
+ .wdi_spider_fieldset {
1007
+ background: none repeat scroll 0 0 #F4F4F4;
1008
+ border: 1px solid #8F8D8D;
1009
+ border-radius: 8px 8px 8px 8px;
1010
+ display: none;
1011
+ float: left;
1012
+ margin: 4px;
1013
+ padding: 13px;
1014
+ width: 97%;
1015
+ }
1016
+
1017
+ .wdi_spider_type_fieldset {
1018
+ background: none repeat scroll 0 0 #F4F4F4;
1019
+ border-radius: 8px 8px 8px 8px;
1020
+ display: none;
1021
+ float: left;
1022
+ width: 100%;
1023
+ }
1024
+
1025
+ .wdi_spider_child_fieldset {
1026
+ background: none repeat scroll 0 0 #F4F4F4;
1027
+ border: 1px solid #8F8D8D;
1028
+ border-radius: 8px 8px 8px 8px;
1029
+ float: left;
1030
+ margin: 4px;
1031
+ width: 30%;
1032
+ padding: 13px;
1033
+ display: block;
1034
+ }
1035
+
1036
+ .wdi_spider_table td {
1037
+ padding: 0;
1038
+ vertical-align: middle;
1039
+ }
1040
+
1041
+ .wdi_spider_ctrls {
1042
+ padding: 4px;
1043
+ text-align: center;
1044
+ width: 40px;
1045
+ }
1046
+
1047
+ .theme_type {
1048
+ background-color: #F4F4F4;
1049
+ border: 1px solid #8F8D8D;
1050
+ border-radius: 8px 8px 8px 8px;
1051
+ cursor: pointer;
1052
+ display: inline-block;
1053
+ font-size: 16px;
1054
+ height: 24px;
1055
+ padding-top: 5px;
1056
+ text-align: center;
1057
+ vertical-align: middle;
1058
+ width: 123px;
1059
+ margin: 2px 0px 2px 0px;
1060
+ }
1061
+
1062
+ .ui-slider-handle {
1063
+ cursor: pointer !important;
1064
+ }
1065
+
1066
+ .thumb {
1067
+ border: 1px solid #CCCCCC;
1068
+ max-height: 120px;
1069
+ max-width: 120px;
1070
+ }
1071
+
1072
+ .fileDescription {
1073
+ color: #666666;
1074
+ cursor: pointer;
1075
+ font-family: sans-serif;
1076
+ font-size: 12px;
1077
+ }
1078
+
1079
+ .filename {
1080
+ font-size: 13px;
1081
+ }
1082
+
1083
+ .tag_div {
1084
+ background-clip: padding-box;
1085
+ background-color: #F3F3F3;
1086
+ border: 1px solid #AAAAAA;
1087
+ border-radius: 3px 3px 3px 3px;
1088
+ box-shadow: 0 0 2px #FFFFFF inset, 0 1px 0 rgba(0, 0, 0, 0.05);
1089
+ color: #666666;
1090
+ line-height: 13px;
1091
+ margin: 2px 0;
1092
+ padding: 2px 5px 2px 5px;
1093
+ width: 132px;
1094
+ }
1095
+
1096
+ .tags_div {
1097
+ overflow-y: auto;
1098
+ height: 65px;
1099
+ }
1100
+
1101
+ .tag_name {
1102
+ width: 118px;
1103
+ }
1104
+
1105
+ .edit_thumb {
1106
+ cursor: pointer;
1107
+ }
1108
+
1109
+ .wdi_spider_rotate {
1110
+ border-radius: 2px;
1111
+ border: 1px solid #FFFFFF;
1112
+ height: 30px;
1113
+ }
1114
+
1115
+ .wdi_spider_search_value {
1116
+ height: 2em;
1117
+ margin: 0 0 4px;
1118
+ }
1119
+
1120
+ #th_order,
1121
+ .wdi_spider_order {
1122
+ display: none;
1123
+ }
1124
+
1125
+ .wds_add_video,
1126
+ .wds_resize_image,
1127
+ .wds_import,
1128
+ .wds_exports {
1129
+ display: none;
1130
+ padding: 10px;
1131
+ height: 60px;
1132
+ background-color: #FFFFFF;
1133
+ border: 1px solid #999999;
1134
+ top: 50%;
1135
+ position: fixed;
1136
+ left: 50%;
1137
+ text-align: left;
1138
+ z-index: 100000;
1139
+ border-radius: 3px;
1140
+ margin-top: -45px;
1141
+ }
1142
+
1143
+ .wds_add_video,
1144
+ .wds_resize_image {
1145
+ margin-left: -340px;
1146
+ }
1147
+
1148
+ .wds_exports {
1149
+ margin-left: -240px;
1150
+ }
1151
+
1152
+ .wds_import {
1153
+ margin-left: -185px;
1154
+ }
1155
+
1156
+ .wds_add_video input[type="text"],
1157
+ .wds_resize_image input[type="text"] {
1158
+ width: 500px;
1159
+ }
1160
+
1161
+
1162
+ .wds_opacity_video,
1163
+ .wds_opacity_import,
1164
+ .wds_opacity_export {
1165
+ background-color: #000000;
1166
+ display: none;
1167
+ opacity: 0.75;
1168
+ filter: Alpha(opacity=75);
1169
+ position: fixed;
1170
+ top: 0;
1171
+ left: 0;
1172
+ width: 100%;
1173
+ height: 100%;
1174
+ z-index: 99998;
1175
+ }
1176
+
1177
+ .widefat .check-column {
1178
+ text-align: center;
1179
+ }
1180
+
1181
+ .wds_tabs {
1182
+ clear: both;
1183
+ display: none;
1184
+ position: relative;
1185
+ z-index: 1;
1186
+ }
1187
+
1188
+ .wds_tabs a.wds_sub_active,
1189
+ .wds_tabs a.wds_active {
1190
+ background-color: #F5F5F5;
1191
+ border-bottom: 1px solid #F5F5F5;
1192
+ color: #333;
1193
+ }
1194
+
1195
+ .wds_tabs a {
1196
+ background-color: #f9f9f9;
1197
+ border: 1px solid #dfdfdf;
1198
+ border-top-left-radius: 3px;
1199
+ border-top-right-radius: 3px;
1200
+ color: #c7c7c7;
1201
+ display: block !important;
1202
+ float: left;
1203
+ font: bold 17px/32px Arial,serif;
1204
+ height: 30px;
1205
+ margin: 3px 3px 0 0;
1206
+ padding: 0 10px;
1207
+ position: relative;
1208
+ text-decoration: none;
1209
+ width: 130px;
1210
+ }
1211
+
1212
+ .wbs_subtab a {
1213
+ font: bold 14px/26px Arial,serif;
1214
+ height: 26px;
1215
+ padding: 0 5px;
1216
+ width: 105px;
1217
+ }
1218
+
1219
+ .wds_add_layer {
1220
+ font: normal 20px/28px Arial,serif !important;
1221
+ width: initial !important;
1222
+ padding: 0 9px !important;
1223
+ }
1224
+
1225
+ .wds_tab_title {
1226
+ background: none repeat scroll 0 0 transparent !important;
1227
+ border: none !important;
1228
+ cursor: pointer;
1229
+ opacity: 0.5;
1230
+ filter: Alpha(opacity=50);
1231
+ padding: 1px;
1232
+ vertical-align: middle;
1233
+ width: 50px;
1234
+ }
1235
+
1236
+ .wds_sub_active .wds_tab_title,
1237
+ .wds_layer_title {
1238
+ background-color: #FFFFFF !important;
1239
+ border-color: #DFDFDF !important;
1240
+ border-radius: 3px !important;
1241
+ border-style: solid !important;
1242
+ border-width: 1px !important;
1243
+ cursor: pointer;
1244
+ opacity: 1;
1245
+ filter: Alpha(opacity=100);
1246
+ }
1247
+
1248
+ .wds_tab_remove {
1249
+ background-image: url("../images/close.png");
1250
+ background-repeat: no-repeat;
1251
+ background-size: 100% 100%;
1252
+ display: inline-block;
1253
+ width: 9px;
1254
+ height: 9px;
1255
+ opacity: 0.5;
1256
+ filter: Alpha(opacity=50);
1257
+ vertical-align: middle;
1258
+ }
1259
+
1260
+ .wds_layer_remove {
1261
+ background-image: url("../images/close.png");
1262
+ background-repeat: no-repeat;
1263
+ background-size: 100% 100%;
1264
+ display: inline-block;
1265
+ width: 15px;
1266
+ height: 15px;
1267
+ margin: 5px;
1268
+ float: right;
1269
+ }
1270
+
1271
+ .wds_layer_dublicate {
1272
+ background-image: url("../images/duplicate.png");
1273
+ background-repeat: no-repeat;
1274
+ background-size: 100% 100%;
1275
+ display: inline-block;
1276
+ width: 15px;
1277
+ height: 15px;
1278
+ margin: 5px;
1279
+ float: right;
1280
+ }
1281
+
1282
+ .wds_slide_dublicate {
1283
+ background-image: url("../images/duplicate.png");
1284
+ background-repeat: no-repeat;
1285
+ background-size: 100% 100%;
1286
+ display: inline-block;
1287
+ width: 12px;
1288
+ height: 12px;
1289
+ vertical-align: middle;
1290
+ }
1291
+
1292
+ .wds_layer_depth {
1293
+ float: right;
1294
+ font-size: 13px;
1295
+ line-height: 15px;
1296
+ margin: 1px 5px;
1297
+ text-align: left;
1298
+ width: 40px;
1299
+ }
1300
+
1301
+ .wds_layer_label {
1302
+ display: inline-block;
1303
+ font-size: 13px;
1304
+ width: 80%;
1305
+ }
1306
+
1307
+ .wds_sub_active .wds_tab_remove {
1308
+ cursor: pointer !important;
1309
+ opacity: 1;
1310
+ filter: Alpha(opacity=100);
1311
+ }
1312
+
1313
+ .wds_box.wds_sub_active,
1314
+ .wds_box.wds_active {
1315
+ display: block;
1316
+ }
1317
+
1318
+ .wds_tab_label {
1319
+ display: block;
1320
+ width: inherit;
1321
+ }
1322
+
1323
+ .wds_box {
1324
+ display: none;
1325
+ margin-top: 0 !important;
1326
+ position: relative;
1327
+ top: -1px;
1328
+ }
1329
+
1330
+ .wds_box {
1331
+ border: 1px solid #dfdfdf;
1332
+ border-radius: 3px;
1333
+ box-shadow: 0 0 10px #f2f2f2;
1334
+ margin-top: 15px;
1335
+ position: relative;
1336
+ }
1337
+
1338
+ .wds_clear {
1339
+ clear: both;
1340
+ float: none !important;
1341
+ }
1342
+
1343
+ .wds_box thead td {
1344
+ border-bottom: 0 none !important;
1345
+ }
1346
+
1347
+ .wds_box tbody {
1348
+ background-color: #FFFFFF;
1349
+ border-top: 0 none;
1350
+ padding-left: 10px;
1351
+ }
1352
+
1353
+ .wds_box thead {
1354
+ background: -webkit-linear-gradient(#F5F5F5, #FFFFFF);
1355
+ background: -o-linear-gradient(#F5F5F5, #FFFFFF);
1356
+ background: -moz-linear-gradient(#F5F5F5, #FFFFFF);
1357
+ background: linear-gradient(#F5F5F5, #FFFFFF);
1358
+ border-top: 0 none;
1359
+ border-bottom: 0 none;
1360
+ color: #333;
1361
+ font: bold 12px/29px Arial,serif;
1362
+ height: 29px;
1363
+ margin: 0;
1364
+ padding: 0 10px;
1365
+ text-align: left;
1366
+ text-shadow: 0 1px 0 #fff;
1367
+ }
1368
+
1369
+ .wds_box table {
1370
+ border-collapse: collapse;
1371
+ border-spacing: 0;
1372
+ width: 100%;
1373
+ }
1374
+
1375
+ .wds_nav_tabs {
1376
+ background-color: #F5F5F5;
1377
+ border-right: 1px solid #DFDFDF;
1378
+ float: left;
1379
+ height: 640px;
1380
+ margin: 0;
1381
+ width: 150px;
1382
+ }
1383
+
1384
+ .wds_nav_tabs ul {
1385
+ list-style: none outside none;
1386
+ margin: 10px 0;
1387
+ padding: 0;
1388
+ }
1389
+
1390
+ .wds_nav_tabs .wds_sub_active,
1391
+ .wds_nav_tabs .wds_sub_active a,
1392
+ .wds_nav_tabs .wds_sub_active a:hover,
1393
+ .wds_nav_tabs .wds_active,
1394
+ .wds_nav_tabs .wds_active a,
1395
+ .wds_nav_tabs .wds_active a:hover {
1396
+ background: none repeat scroll 0 0 #fff;
1397
+ color: #333;
1398
+ }
1399
+
1400
+ .wds_nav_tabs .wds_active {
1401
+ border-color: #DFDFDF;
1402
+ border-width: 1px 0 1px 1px;
1403
+ border-style: solid;
1404
+ margin: 0 -1px 0 -4px;
1405
+ padding: 0;
1406
+ }
1407
+
1408
+ .wds_nav_tabs li {
1409
+ border-color: transparent;
1410
+ border-style: solid;
1411
+ border-width: 1px 0;
1412
+ list-style-type: none;
1413
+ margin-bottom: 0;
1414
+ }
1415
+
1416
+ .wds_nav_tabs a {
1417
+ display: block;
1418
+ line-height: 18px;
1419
+ padding: 5px 5px 5px 12px;
1420
+ text-decoration: none;
1421
+ }
1422
+
1423
+ .wds_nav_box {
1424
+ background: none repeat scroll 0 0 #fff;
1425
+ display: none;
1426
+ height: 610px;
1427
+ overflow: auto;
1428
+ padding: 15px;
1429
+ }
1430
+
1431
+ .wds_nav_box.wds_active {
1432
+ display: block;
1433
+ }
1434
+
1435
+ .wds_layer_head {
1436
+ background-color: #F5F5F5;
1437
+ border-bottom: 1px solid #DFDFDF;
1438
+ border-top: 1px solid #DFDFDF;
1439
+ cursor: pointer;
1440
+ padding: 5px;
1441
+ }
1442
+
1443
+ .wds_layer_head .handle {
1444
+ cursor: move;
1445
+ display: inline-block;
1446
+ margin: 5px;
1447
+ }
1448
+
1449
+ .wds_box td {
1450
+ padding: 10px !important;
1451
+ }
1452
+
1453
+ .wds_draggable {
1454
+ box-sizing: border-box;
1455
+ cursor: move;
1456
+ }
1457
+
1458
+ .wds_box .color {
1459
+ width: 60px;
1460
+ }
1461
+
1462
+ .wds_active_layer {
1463
+ box-shadow: rgb(44, 36, 36) 0px 0px 5px;
1464
+ border-radius: 3px;
1465
+ }
1466
+
1467
+ .wds_draggable a,
1468
+ .wds_draggable a:hover {
1469
+ color: inherit !important;
1470
+ font-size: inherit !important;
1471
+ font-style: inherit !important;
1472
+ font-weight: inherit !important;
1473
+ text-decoration: none;
1474
+ }
1475
+
1476
+ #add_embed_help {
1477
+ height: 200px;
1478
+ width: 672px;
1479
+ top: 40%;
1480
+ }
1481
+
1482
+ #add_embed input[type="text"] {
1483
+ width: 500px;
1484
+ }
1485
+
1486
+ .wds_buttons {
1487
+ float: right;
1488
+ font-weight: normal;
1489
+ position: relative;
1490
+ }
1491
+
1492
+ .wds_reset_button {
1493
+ display: none;
1494
+ font-weight: normal;
1495
+ margin: 10px 0;
1496
+ position: absolute;
1497
+ right: 40px;
1498
+ z-index: 1;
1499
+ }
1500
+
1501
+ #wdi_save_feed .two .section_col {
1502
+ width: 47%;
1503
+ float: left;
1504
+ margin: 0 1.5% 18px;
1505
+ }
1506
+ #wdi_save_feed .wdi_element {
1507
+ margin: 0 0 18px;
1508
+ }
1509
+ #wdi_save_feed .half .wdi_element {
1510
+ width: 96%;
1511
+ float: none;
1512
+ margin: 0 2% 20px;
1513
+ }
1514
+ #wdi_save_feed .wdi_element p {
1515
+ margin: 2px 0 0;
1516
+ }
1517
+ .wdi_section_name {
1518
+ font-size: 19px;
1519
+ margin: 0 auto 15px;
1520
+ width: 97%;
1521
+ box-sizing: border-box;
1522
+ padding: 15px 0 15px;
1523
+ border-bottom: 1px solid #f1f1f1;
1524
+ color: #444;
1525
+ }
1526
+ .wdi_section {
1527
+ border: 1px solid #dedede;
1528
+ margin-bottom: 20px;
1529
+ background:#fff;
1530
+ }
1531
+ .wdi_section .optioninput * {
1532
+ text-align: left;
1533
+ }
1534
+ .wdi_section.half {
1535
+ width: 49%;
1536
+ float: left;
1537
+ -webkit-box-sizing:border-box;
1538
+ -moz-box-sizing:border-box;
1539
+ box-sizing:border-box;
1540
+ }
1541
+ .wdi_buttons{
1542
+ text-align:right;
1543
+ margin-top: 7px;
1544
+ }
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%;
1551
+ display: block;
1552
+ }
1553
+ .wdi_border_wrapper .wdi_element_title{
1554
+ display: block;
1555
+ }
1556
+ .wdi_border_wrapper .wdi_element_content input[type=text]:not(.wp-color-picker){
1557
+ width: calc(100% - 30px);
1558
+ height: 28px;
1559
+ }
1560
+ .wdi_border_wrapper .wdi_element_content input#wdi_add_user_ajax_input{
1561
+ width: calc(100% - 78px);
1562
+ }
1563
+ .wdi_border_wrapper .wdi_element_content input[type=number]{
1564
+ width: calc(100% - 30px);
1565
+ }
1566
+ .wdi_border_wrapper .wdi_element_content select{
1567
+ width: calc(100% - 30px);
1568
+ }
1569
+ }
1570
+ @media (max-width: 768px) {
1571
+ #wdi_save_feed .two .section_col {
1572
+ width: 96%;
1573
+ float: none;
1574
+ margin: 0 2% 18px;
1575
+ }
1576
+ .wdi_section.half {
1577
+ width: 100%;
1578
+ float: none;
1579
+ margin:0 0 20px 0 !important;
1580
+ }
1581
+ }
1582
+ .wdi_demo_img{
1583
+ margin-top: 20px;
1584
  }
css/wdi_backend.min.css CHANGED
@@ -1 +1 @@
1
- .wdi_clear{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%}.wdi_tooltip,.wdi_settings_link{text-decoration:none;line-height:16.9px;font-size:13px;color:#23282d;padding-bottom:2px;padding-left:2px;padding-right:2px;padding-top:2px}.wdi_tooltip:hover,.wdi_settings_link:hover{color:#23282d;position:relative}.wdi_tooltip:hover:after{content:attr(wdi-tooltip);padding:4px 8px;color:#271f21;position:absolute;left:0;top:100%;white-space:nowrap;z-index:20;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;-moz-box-shadow:0 0 4px #222;-webkit-box-shadow:0 0 4px #222;box-shadow:0 0 4px #222;background-image:-moz-linear-gradient(top,#eee,#ccc);background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0,#eee),color-stop(1,#ccc));background-image:-webkit-linear-gradient(top,#eee,#ccc);background-image:-moz-linear-gradient(top,#eee,#ccc);background-image:-ms-linear-gradient(top,#eee,#ccc);background-image:-o-linear-gradient(top,#eee,#ccc)}.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%}#wdi_feed_tabs .wdi_feed_tabs:hover{cursor:pointer;background-color:#f0f0f0;border-bottom:0;margin-bottom:1px}#wdi_feed_tabs .wdi_feed_tabs{font-size:20px;float:left;padding:10px;background-color:#e4e4e4;border:1px solid #ccc;border-bottom:0;margin-right:2px;position:relative;z-index:2;top:2px}.wdi_feed_tab_active{background-color:#f0f0f0 !important;margin-bottom:1px !important;border-bottom:1px solid #f0f0f0 !important;top:0}.wdi_border_wrapper{border:1px solid #ccc;padding:5px}.wdi_border_wrapper [scope='row']+td,.wdi_border_wrapper [scope='row']{padding:8px}.wdi_user{border:1px solid #b9b9b9;background-color:#d7d7d7;margin:3px;border-radius:5px;height:28px;position:relative;width:60%;min-width:200px}.wdi_user:hover{border:1px solid #bebebe;background-color:#f7efef}.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}.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:#f9f9f9;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}
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}
css/wdi_frontend.css CHANGED
@@ -154,6 +154,9 @@
154
  font-family: FontAwesome !important;
155
  font-style: normal;
156
  }
 
 
 
157
 
158
  /**************************************************************/
159
 
@@ -356,7 +359,10 @@ div[id^="wdi_container"] p {
356
  -ms-transform: rotate(180deg);
357
  transform: rotate(180deg);
358
  }
359
-
 
 
 
360
  .wdi_js_error {
361
  text-align: center;
362
 
@@ -462,7 +468,7 @@ div[id^="wdi_container"] p {
462
 
463
  .wdi_layout_th .wdi_header_user_text h3 {
464
  display: inline-block;
465
- text-transform: none;
466
  }
467
 
468
  .wdi_layout_th .wdi_header_user_text h3:hover {
@@ -478,6 +484,7 @@ div[id^="wdi_container"] p {
478
  .wdi_layout_th .wdi_header_user_text h3 {
479
  margin-left: 10px;
480
  margin-bottom: 0px;
 
481
  }
482
 
483
  .wdi_layout_th .wdi_media_info p {
@@ -496,7 +503,7 @@ div[id^="wdi_container"] p {
496
  }
497
 
498
  .wdi_layout_th .wdi_followers {
499
- margin-left: 5px;
500
  }
501
 
502
  .wdi_layout_th .wdi_filter_overlay {
@@ -762,6 +769,7 @@ div[id^="wdi_container"] p {
762
  .wdi_layout_ib .wdi_header_user_text h3 {
763
  margin-left: 10px;
764
  margin-bottom: 0;
 
765
  }
766
 
767
  .wdi_layout_ib .wdi_media_info p {
@@ -780,7 +788,7 @@ div[id^="wdi_container"] p {
780
  }
781
 
782
  .wdi_layout_ib .wdi_followers {
783
- margin-left: 5px;
784
  }
785
 
786
  .wdi_layout_ib .wdi_filter_overlay {
154
  font-family: FontAwesome !important;
155
  font-style: normal;
156
  }
157
+ .wdi_media_info .fa:before {
158
+ margin-right: 6px;
159
+ }
160
 
161
  /**************************************************************/
162
 
359
  -ms-transform: rotate(180deg);
360
  transform: rotate(180deg);
361
  }
362
+ .wdi_js_error_no_animate,.wdi_token_error{
363
+ text-align: center;
364
+ font-size: 14px;
365
+ }
366
  .wdi_js_error {
367
  text-align: center;
368
 
468
 
469
  .wdi_layout_th .wdi_header_user_text h3 {
470
  display: inline-block;
471
+ text-transform: none;
472
  }
473
 
474
  .wdi_layout_th .wdi_header_user_text h3:hover {
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 {
503
  }
504
 
505
  .wdi_layout_th .wdi_followers {
506
+ margin-left: 10px;
507
  }
508
 
509
  .wdi_layout_th .wdi_filter_overlay {
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 p {
788
  }
789
 
790
  .wdi_layout_ib .wdi_followers {
791
+ margin-left: 10px;
792
  }
793
 
794
  .wdi_layout_ib .wdi_filter_overlay {
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_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{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}.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:5px}.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}.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:5px}.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}.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}
css/wdi_tables.css DELETED
@@ -1,947 +0,0 @@
1
- #bullets_images_type,
2
- #bullets_images_color,
3
- #bull_style,
4
- #rl_butt_type,
5
- #rl_butt_color,
6
- #rl_butt_style {
7
- margin: 0 10px 0 0;
8
- width: 100px;
9
- }
10
-
11
- .wds_ctrl_btn_upload {
12
- display: block !important;
13
- margin: 5px 0 !important;
14
- text-align: center;
15
- vertical-align: middle;
16
- width: 95%;
17
- }
18
-
19
- .wds_reverse {
20
- margin: 0 5px !important;
21
- }
22
-
23
- .wds_free_button,
24
- .wds_free_button:hover {
25
- background: linear-gradient(to bottom, #E5E5E5, #E5E5E5) repeat scroll 0 0 #f3f3f3 !important;
26
- border-color: #bbb !important;
27
- color: #888888 !important;
28
- }
29
-
30
- .wdi_spider_free_version_label,
31
- .wdi_spider_free_version_label * {
32
- color: #808080 !important;
33
- }
34
-
35
- .wdi_spider_free_version {
36
- background-color: #DFDFDF;
37
- border: 1px solid #797979;
38
- border-radius: 2px;
39
- padding: 2px;
40
- width: 210px;
41
- }
42
-
43
- .wds_more {
44
- font-size: 12px;
45
- }
46
-
47
- .wrap .button {
48
- border-radius: 3px !important;
49
- text-shadow: none !important;
50
- }
51
-
52
- .wdi_spider_message_cont {
53
- display: none;
54
- width: 99%;
55
- }
56
-
57
- .wdi_spider_load {
58
- display: none;
59
- }
60
-
61
- .wdi_spider_load_cont {
62
- background-color: rgba(0, 0, 0, 0.2);
63
- left: 0;
64
- height: 100%;
65
- position: fixed;
66
- top: 0;
67
- width: 100%;
68
- z-index: 99998;
69
- }
70
-
71
- .wdi_spider_load_icon {
72
- left: 0;
73
- height: 100%;
74
- position: fixed;
75
- text-align: center;
76
- top: 0;
77
- width: 100%;
78
- z-index: 99999;
79
- }
80
-
81
- .wdi_spider_ajax_loading {
82
- border: none !important;
83
- margin-top: 200px;
84
- width: 50px;
85
- -webkit-animation: spin 2.5s infinite linear;
86
- -moz-animation: spin 2.5s infinite linear;
87
- -o-animation: spin 2.5s infinite linear;
88
- animation: spin 2.5s infinite linear;
89
- }
90
-
91
- @-moz-keyframes spin {
92
- 0% {
93
- -moz-transform: rotate(0deg);
94
- }
95
- 100% {
96
- -moz-transform: rotate(359deg);
97
- }
98
- }
99
- @-webkit-keyframes spin {
100
- 0% {
101
- -webkit-transform: rotate(0deg);
102
- }
103
- 100% {
104
- -webkit-transform: rotate(359deg);
105
- }
106
- }
107
- @-o-keyframes spin {
108
- 0% {
109
- -o-transform: rotate(0deg);
110
- }
111
- 100% {
112
- -o-transform: rotate(359deg);
113
- }
114
- }
115
- @-ms-keyframes spin {
116
- 0% {
117
- -ms-transform: rotate(0deg);
118
- }
119
- 100% {
120
- -ms-transform: rotate(359deg);
121
- }
122
- }
123
- @keyframes spin {
124
- 0% {
125
- transform: rotate(0deg);
126
- }
127
- 100% {
128
- transform: rotate(359deg);
129
- }
130
- }
131
-
132
- #TB_window,
133
- #TB_iframeContent {
134
- width: 800px !important;
135
- height: 500px !important;
136
- }
137
-
138
- #TB_window {
139
- margin-left: -400px !important;
140
- }
141
-
142
- .wrap * {
143
- font-size: 12px;
144
- font-family: sans-serif;
145
- }
146
-
147
- .input_th {
148
- margin-left: 0px !important;
149
- width: 160px !important;
150
- font-family: sans-serif;
151
- }
152
- .input_th2 {
153
- margin-left: 0px !important;
154
- width: 160px !important;
155
- margin-top:5px;
156
- height: 19px;
157
- }
158
-
159
- .edit_input {
160
- height: 28px !important;
161
- padding-bottom: 7px !important;
162
- }
163
-
164
- .add_tag_th {
165
- padding-left: 21px;
166
- font-size: 12px;
167
- font-family: sans-serif;
168
- }
169
-
170
- .pointer{
171
- cursor: pointer;
172
- }
173
-
174
- .non_selectable {
175
- -webkit-touch-callout: none;
176
- -webkit-user-select: none;
177
- -khtml-user-select: none;
178
- -moz-user-select: none;
179
- -ms-user-select: none;
180
- user-select: none;
181
- }
182
-
183
- .wds_position_table td,
184
- .wds_position_table input{
185
- border: 1px solid #CCCCCC;
186
- margin: 2px;
187
- }
188
-
189
- .wds_position_table .wds_position_td {
190
- background-color: #f4f4f4;
191
- display: inline-block;
192
- line-height: 1;
193
- padding: 0 !important;
194
- }
195
-
196
- .wdi_spider_div_options {
197
- background: none repeat scroll 0 0 #F4F4F4;
198
- border: 1px solid #8F8D8D;
199
- border-radius: 8px 8px 8px 8px;
200
- display: none;
201
- margin: 2px 0 0 190px;
202
- padding: 13px;
203
- min-height: 300px;
204
- min-width: 600px;
205
- vertical-align: top;
206
- }
207
-
208
- .table_small_col {
209
- text-align: center !important;
210
- width: 45px;
211
- }
212
-
213
- .table_medium_col {
214
- text-align: center !important;
215
- width: 70px;
216
- }
217
-
218
- .table_big_col {
219
- text-align: center !important;
220
- width: 80px;
221
- }
222
-
223
- .table_large_col {
224
- text-align: center !important;
225
- width: 140px;
226
- }
227
-
228
- .table_medium_col_uncenter {
229
- width: 80px;
230
- }
231
-
232
- .table_extra_large_col {
233
- padding: 4px !important;
234
- width: 150px !important;
235
- }
236
-
237
- .first-page,
238
- .prev-page,
239
- .next-page,
240
- .last-page,
241
- .table_extra_large_col a,
242
- .table_medium_col a,
243
- .table_big_col a,
244
- .table_small_col a {
245
- cursor: pointer;
246
- }
247
-
248
- .wdi_spider_word_wrap {
249
- word-wrap: normal;
250
- }
251
-
252
- .wdi_spider_description {
253
- color: #666666;
254
- font-size: 0.923em;
255
- line-height: 1.231em;
256
- }
257
-
258
- .handle {
259
- background: url("../images/draggable.png") no-repeat transparent;
260
- border: none;
261
- cursor: move;
262
- display: inline-block;
263
- height: 15px;
264
- margin: 0 auto;
265
- vertical-align: middle;
266
- width: 15px;
267
- }
268
-
269
- .slider-icon {
270
- background-image: url("../images/slider-icon.png");
271
- background-repeat: no-repeat;
272
- border: none;
273
- float: left;
274
- height: 32px;
275
- margin: 7px 8px 0 0;
276
- width: 32px;
277
- }
278
- .uninstall-icon {
279
- background-image: url("../images/uninstall-icon.png");
280
- background-repeat: no-repeat;
281
- border: none;
282
- float: left;
283
- height: 32px;
284
- margin: 7px 8px 0 0;
285
- width: 32px;
286
- }
287
-
288
- .wdi_spider_label {
289
- font-weight: bold;
290
- width: 100px;
291
- }
292
-
293
- .wdi_spider_label_top {
294
- font-weight: bold;
295
- padding-top: 3px;
296
- vertical-align: top;
297
- width: 100px;
298
- }
299
-
300
- .wdi_spider_fieldset .wdi_spider_label {
301
- font-weight: bold;
302
- vertical-align: top;
303
- width: 150px;
304
- }
305
-
306
- .wdi_spider_label_options {
307
- font-weight: bold;
308
- vertical-align: top;
309
- width: 150px;
310
- }
311
-
312
- .wdi_spider_choose_option {
313
- display: table;
314
- box-shadow: 0px 0px 1px 1px #D2D2D2;
315
- margin-bottom: 5px;
316
- border-radius: 2px;
317
- padding: 2px;
318
- box-sizing: border-box;
319
- cursor: pointer;
320
- width: 100%;
321
- }
322
-
323
- .wdi_spider_options_cont,
324
- .wdi_spider_bull_options_cont,
325
- .wdi_spider_pp_options_cont,
326
- .wdi_spider_options_color_cont,
327
- .wdi_spider_bull_options_color_cont,
328
- .wdi_spider_pp_options_color_cont {
329
- display: none;
330
- width: 180px;
331
- height: 150px;
332
- overflow: scroll;
333
- overflow-x: hidden;
334
- overflow-y: scroll;
335
- }
336
-
337
- .wdi_spider_option_cont {
338
- display: block;
339
- border-bottom: 1px solid #D3D3D3;
340
- padding: 3px 0px 3px 0px;
341
- box-sizing: content-box;
342
- width: 98%;
343
- border-radius: 0px;
344
- cursor: pointer;
345
- }
346
-
347
- .wdi_spider_option_cont_title {
348
- display: table-cell;
349
- vertical-align: middle;
350
- padding: 0px 0px 0px 4px;
351
- }
352
-
353
- .wdi_spider_option_cont_img {
354
- display: table-cell;
355
- width: 23%;
356
- height: 15px;
357
- text-align: right;
358
- padding: 5px 4px 0px 0px;
359
- box-sizing: border-box;
360
- background-color: #EEEEEE;
361
- }
362
-
363
- .wdi_spider_option_main_title {
364
- display: table-cell;
365
- width: 65%;
366
- vertical-align: middle;
367
- padding: 0px 0px 0px 4px;
368
- color: #555;
369
- }
370
-
371
- .wdi_spider_sel_option_ic {
372
- display: table-cell;
373
- width: 20%;
374
- height: 15px;
375
- text-align: right;
376
- padding: 0px 6px 0px 0px;
377
- box-sizing: border-box;
378
- }
379
-
380
- .wdi_spider_int_input {
381
- width: 45px;
382
- }
383
-
384
- .wdi_spider_char_input {
385
- width: 115px;
386
- }
387
-
388
- .wdi_spider_text_input {
389
- width: 190px;
390
- }
391
-
392
- .wdi_spider_slider_div {
393
- display: inline-block;
394
- vertical-align: middle;
395
- width: 140px;
396
- }
397
-
398
- .wdi_spider_slider_percentage,
399
- .wdi_spider_slider_percentage input,
400
- .wdi_spider_slider_percentage input :focus {
401
- background: transparent;
402
- border: none;
403
- color: #00AEEF;
404
- display: inline;
405
- font-weight: bold;
406
- text-align: right;
407
- vertical-align: middle;
408
- width: 30px;
409
- }
410
-
411
- .updated,
412
- .error {
413
- margin: 5px 0 2px !important;
414
- }
415
-
416
- .buttons_div {
417
- clear: both;
418
- float: right;
419
- margin: 5px 0;
420
- }
421
-
422
- .buttons_div_left {
423
- float: left;
424
- margin: 5px 0;
425
- }
426
-
427
- .buttons_div_right {
428
- float: right;
429
- margin: 5px 0;
430
- }
431
-
432
- .wdi_spider_delete_img {
433
- background-image: url("../images/delete.png");
434
- border: none;
435
- cursor: pointer;
436
- display: inline-block;
437
- vertical-align: middle;
438
- height: 14px;
439
- width: 14px;
440
- }
441
-
442
- .wdi_spider_delete_img_small {
443
- background-image: url("../images/delete.png");
444
- background-size: 10px auto;
445
- border: medium none;
446
- cursor: pointer;
447
- display: inline-block;
448
- height: 10px;
449
- margin-top: 2px;
450
- vertical-align: middle;
451
- width: 10px;
452
- }
453
-
454
- .wdi_spider_fieldset {
455
- background: none repeat scroll 0 0 #F4F4F4;
456
- border: 1px solid #8F8D8D;
457
- border-radius: 8px 8px 8px 8px;
458
- display: none;
459
- float: left;
460
- margin: 4px;
461
- padding: 13px;
462
- width: 97%;
463
- }
464
-
465
- .wdi_spider_type_fieldset {
466
- background: none repeat scroll 0 0 #F4F4F4;
467
- border-radius: 8px 8px 8px 8px;
468
- display: none;
469
- float: left;
470
- width: 100%;
471
- }
472
-
473
- .wdi_spider_child_fieldset {
474
- background: none repeat scroll 0 0 #F4F4F4;
475
- border: 1px solid #8F8D8D;
476
- border-radius: 8px 8px 8px 8px;
477
- float: left;
478
- margin: 4px;
479
- width: 30%;
480
- padding: 13px;
481
- display: block;
482
- }
483
-
484
- .wdi_spider_table td {
485
- padding: 0;
486
- vertical-align: middle;
487
- }
488
-
489
- .wdi_spider_ctrls {
490
- padding: 4px;
491
- text-align: center;
492
- width: 40px;
493
- }
494
-
495
- .theme_type {
496
- background-color: #F4F4F4;
497
- border: 1px solid #8F8D8D;
498
- border-radius: 8px 8px 8px 8px;
499
- cursor: pointer;
500
- display: inline-block;
501
- font-size: 16px;
502
- height: 24px;
503
- padding-top: 5px;
504
- text-align: center;
505
- vertical-align: middle;
506
- width: 123px;
507
- margin: 2px 0px 2px 0px;
508
- }
509
-
510
- .ui-slider-handle {
511
- cursor: pointer !important;
512
- }
513
-
514
- .thumb {
515
- border: 1px solid #CCCCCC;
516
- max-height: 120px;
517
- max-width: 120px;
518
- }
519
-
520
- .fileDescription {
521
- color: #666666;
522
- cursor: pointer;
523
- font-family: sans-serif;
524
- font-size: 12px;
525
- }
526
-
527
- .filename {
528
- font-size: 13px;
529
- }
530
-
531
- .tag_div {
532
- background-clip: padding-box;
533
- background-color: #F3F3F3;
534
- border: 1px solid #AAAAAA;
535
- border-radius: 3px 3px 3px 3px;
536
- box-shadow: 0 0 2px #FFFFFF inset, 0 1px 0 rgba(0, 0, 0, 0.05);
537
- color: #666666;
538
- line-height: 13px;
539
- margin: 2px 0;
540
- padding: 2px 5px 2px 5px;
541
- width: 132px;
542
- }
543
-
544
- .tags_div {
545
- overflow-y: auto;
546
- height: 65px;
547
- }
548
-
549
- .tag_name {
550
- width: 118px;
551
- }
552
-
553
- .edit_thumb {
554
- cursor: pointer;
555
- }
556
-
557
- .wdi_spider_rotate {
558
- border-radius: 2px;
559
- border: 1px solid #FFFFFF;
560
- height: 30px;
561
- }
562
-
563
- .wdi_spider_search_value {
564
- height: 2em;
565
- margin: 0 0 4px;
566
- }
567
-
568
- #th_order,
569
- .wdi_spider_order {
570
- display: none;
571
- }
572
-
573
- .wds_add_video,
574
- .wds_resize_image,
575
- .wds_import,
576
- .wds_exports {
577
- display: none;
578
- padding: 10px;
579
- height: 60px;
580
- background-color: #FFFFFF;
581
- border: 1px solid #999999;
582
- top: 50%;
583
- position: fixed;
584
- left: 50%;
585
- text-align: left;
586
- z-index: 100000;
587
- border-radius: 3px;
588
- margin-top: -45px;
589
- }
590
-
591
- .wds_add_video,
592
- .wds_resize_image {
593
- margin-left: -340px;
594
- }
595
-
596
- .wds_exports {
597
- margin-left: -240px;
598
- }
599
-
600
- .wds_import {
601
- margin-left: -185px;
602
- }
603
-
604
- .wds_add_video input[type="text"],
605
- .wds_resize_image input[type="text"] {
606
- width: 500px;
607
- }
608
-
609
-
610
- .wds_opacity_video,
611
- .wds_opacity_import,
612
- .wds_opacity_export {
613
- background-color: #000000;
614
- display: none;
615
- opacity: 0.75;
616
- filter: Alpha(opacity=75);
617
- position: fixed;
618
- top: 0;
619
- left: 0;
620
- width: 100%;
621
- height: 100%;
622
- z-index: 99998;
623
- }
624
-
625
- .widefat .check-column {
626
- text-align: center;
627
- }
628
-
629
- .wds_tabs {
630
- clear: both;
631
- display: none;
632
- position: relative;
633
- z-index: 1;
634
- }
635
-
636
- .wds_tabs a.wds_sub_active,
637
- .wds_tabs a.wds_active {
638
- background-color: #F5F5F5;
639
- border-bottom: 1px solid #F5F5F5;
640
- color: #333;
641
- }
642
-
643
- .wds_tabs a {
644
- background-color: #f9f9f9;
645
- border: 1px solid #dfdfdf;
646
- border-top-left-radius: 3px;
647
- border-top-right-radius: 3px;
648
- color: #c7c7c7;
649
- display: block !important;
650
- float: left;
651
- font: bold 17px/32px Arial,serif;
652
- height: 30px;
653
- margin: 3px 3px 0 0;
654
- padding: 0 10px;
655
- position: relative;
656
- text-decoration: none;
657
- width: 130px;
658
- }
659
-
660
- .wbs_subtab a {
661
- font: bold 14px/26px Arial,serif;
662
- height: 26px;
663
- padding: 0 5px;
664
- width: 105px;
665
- }
666
-
667
- .wds_add_layer {
668
- font: normal 20px/28px Arial,serif !important;
669
- width: initial !important;
670
- padding: 0 9px !important;
671
- }
672
-
673
- .wds_tab_title {
674
- background: none repeat scroll 0 0 transparent !important;
675
- border: none !important;
676
- cursor: pointer;
677
- opacity: 0.5;
678
- filter: Alpha(opacity=50);
679
- padding: 1px;
680
- vertical-align: middle;
681
- width: 50px;
682
- }
683
-
684
- .wds_sub_active .wds_tab_title,
685
- .wds_layer_title {
686
- background-color: #FFFFFF !important;
687
- border-color: #DFDFDF !important;
688
- border-radius: 3px !important;
689
- border-style: solid !important;
690
- border-width: 1px !important;
691
- cursor: pointer;
692
- opacity: 1;
693
- filter: Alpha(opacity=100);
694
- }
695
-
696
- .wds_tab_remove {
697
- background-image: url("../images/close.png");
698
- background-repeat: no-repeat;
699
- background-size: 100% 100%;
700
- display: inline-block;
701
- width: 9px;
702
- height: 9px;
703
- opacity: 0.5;
704
- filter: Alpha(opacity=50);
705
- vertical-align: middle;
706
- }
707
-
708
- .wds_layer_remove {
709
- background-image: url("../images/close.png");
710
- background-repeat: no-repeat;
711
- background-size: 100% 100%;
712
- display: inline-block;
713
- width: 15px;
714
- height: 15px;
715
- margin: 5px;
716
- float: right;
717
- }
718
-
719
- .wds_layer_dublicate {
720
- background-image: url("../images/duplicate.png");
721
- background-repeat: no-repeat;
722
- background-size: 100% 100%;
723
- display: inline-block;
724
- width: 15px;
725
- height: 15px;
726
- margin: 5px;
727
- float: right;
728
- }
729
-
730
- .wds_slide_dublicate {
731
- background-image: url("../images/duplicate.png");
732
- background-repeat: no-repeat;
733
- background-size: 100% 100%;
734
- display: inline-block;
735
- width: 12px;
736
- height: 12px;
737
- vertical-align: middle;
738
- }
739
-
740
- .wds_layer_depth {
741
- float: right;
742
- font-size: 13px;
743
- line-height: 15px;
744
- margin: 1px 5px;
745
- text-align: left;
746
- width: 40px;
747
- }
748
-
749
- .wds_layer_label {
750
- display: inline-block;
751
- font-size: 13px;
752
- width: 80%;
753
- }
754
-
755
- .wds_sub_active .wds_tab_remove {
756
- cursor: pointer !important;
757
- opacity: 1;
758
- filter: Alpha(opacity=100);
759
- }
760
-
761
- .wds_box.wds_sub_active,
762
- .wds_box.wds_active {
763
- display: block;
764
- }
765
-
766
- .wds_tab_label {
767
- display: block;
768
- width: inherit;
769
- }
770
-
771
- .wds_box {
772
- display: none;
773
- margin-top: 0 !important;
774
- position: relative;
775
- top: -1px;
776
- }
777
-
778
- .wds_box {
779
- border: 1px solid #dfdfdf;
780
- border-radius: 3px;
781
- box-shadow: 0 0 10px #f2f2f2;
782
- margin-top: 15px;
783
- position: relative;
784
- }
785
-
786
- .wds_clear {
787
- clear: both;
788
- float: none !important;
789
- }
790
-
791
- .wds_box thead td {
792
- border-bottom: 0 none !important;
793
- }
794
-
795
- .wds_box tbody {
796
- background-color: #FFFFFF;
797
- border-top: 0 none;
798
- padding-left: 10px;
799
- }
800
-
801
- .wds_box thead {
802
- background: -webkit-linear-gradient(#F5F5F5, #FFFFFF);
803
- background: -o-linear-gradient(#F5F5F5, #FFFFFF);
804
- background: -moz-linear-gradient(#F5F5F5, #FFFFFF);
805
- background: linear-gradient(#F5F5F5, #FFFFFF);
806
- border-top: 0 none;
807
- border-bottom: 0 none;
808
- color: #333;
809
- font: bold 12px/29px Arial,serif;
810
- height: 29px;
811
- margin: 0;
812
- padding: 0 10px;
813
- text-align: left;
814
- text-shadow: 0 1px 0 #fff;
815
- }
816
-
817
- .wds_box table {
818
- border-collapse: collapse;
819
- border-spacing: 0;
820
- width: 100%;
821
- }
822
-
823
- .wds_nav_tabs {
824
- background-color: #F5F5F5;
825
- border-right: 1px solid #DFDFDF;
826
- float: left;
827
- height: 640px;
828
- margin: 0;
829
- width: 150px;
830
- }
831
-
832
- .wds_nav_tabs ul {
833
- list-style: none outside none;
834
- margin: 10px 0;
835
- padding: 0;
836
- }
837
-
838
- .wds_nav_tabs .wds_sub_active,
839
- .wds_nav_tabs .wds_sub_active a,
840
- .wds_nav_tabs .wds_sub_active a:hover,
841
- .wds_nav_tabs .wds_active,
842
- .wds_nav_tabs .wds_active a,
843
- .wds_nav_tabs .wds_active a:hover {
844
- background: none repeat scroll 0 0 #fff;
845
- color: #333;
846
- }
847
-
848
- .wds_nav_tabs .wds_active {
849
- border-color: #DFDFDF;
850
- border-width: 1px 0 1px 1px;
851
- border-style: solid;
852
- margin: 0 -1px 0 -4px;
853
- padding: 0;
854
- }
855
-
856
- .wds_nav_tabs li {
857
- border-color: transparent;
858
- border-style: solid;
859
- border-width: 1px 0;
860
- list-style-type: none;
861
- margin-bottom: 0;
862
- }
863
-
864
- .wds_nav_tabs a {
865
- display: block;
866
- line-height: 18px;
867
- padding: 5px 5px 5px 12px;
868
- text-decoration: none;
869
- }
870
-
871
- .wds_nav_box {
872
- background: none repeat scroll 0 0 #fff;
873
- display: none;
874
- height: 610px;
875
- overflow: auto;
876
- padding: 15px;
877
- }
878
-
879
- .wds_nav_box.wds_active {
880
- display: block;
881
- }
882
-
883
- .wds_layer_head {
884
- background-color: #F5F5F5;
885
- border-bottom: 1px solid #DFDFDF;
886
- border-top: 1px solid #DFDFDF;
887
- cursor: pointer;
888
- padding: 5px;
889
- }
890
-
891
- .wds_layer_head .handle {
892
- cursor: move;
893
- display: inline-block;
894
- margin: 5px;
895
- }
896
-
897
- .wds_box td {
898
- padding: 10px !important;
899
- }
900
-
901
- .wds_draggable {
902
- box-sizing: border-box;
903
- cursor: move;
904
- }
905
-
906
- .wds_box .color {
907
- width: 60px;
908
- }
909
-
910
- .wds_active_layer {
911
- box-shadow: rgb(44, 36, 36) 0px 0px 5px;
912
- border-radius: 3px;
913
- }
914
-
915
- .wds_draggable a,
916
- .wds_draggable a:hover {
917
- color: inherit !important;
918
- font-size: inherit !important;
919
- font-style: inherit !important;
920
- font-weight: inherit !important;
921
- text-decoration: none;
922
- }
923
-
924
- #add_embed_help {
925
- height: 200px;
926
- width: 672px;
927
- top: 40%;
928
- }
929
-
930
- #add_embed input[type="text"] {
931
- width: 500px;
932
- }
933
-
934
- .wds_buttons {
935
- float: right;
936
- font-weight: normal;
937
- position: relative;
938
- }
939
-
940
- .wds_reset_button {
941
- display: none;
942
- font-weight: normal;
943
- margin: 10px 0;
944
- position: absolute;
945
- right: 40px;
946
- z-index: 1;
947
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/wdi_tables.min.css DELETED
@@ -1 +0,0 @@
1
- #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}
 
demo_images/1.png CHANGED
Binary file
demo_images/2.png CHANGED
Binary file
demo_images/3.png CHANGED
Binary file
demo_images/4.png CHANGED
Binary file
demo_images/5.png CHANGED
Binary file
demo_images/6.png CHANGED
Binary file
demo_images/7.png CHANGED
Binary file
demo_images/8.png CHANGED
Binary file
demo_images/filters.png CHANGED
Binary file
demo_images/l1.png CHANGED
Binary file
demo_images/l2.png CHANGED
Binary file
demo_images/l3.png CHANGED
Binary file
demo_images/l4.png CHANGED
Binary file
demo_images/l5.png CHANGED
Binary file
demo_images/l6.png CHANGED
Binary file
demo_images/l7.png CHANGED
Binary file
framework/WDI_form_builder.php CHANGED
@@ -50,7 +50,7 @@ public function __construct() {
50
  ?>
51
  <div class="wdwt_param" id="WDI_wrap_<?php echo $element['name']; ?>">
52
  <div class="block">
53
- <div class="optioninput" style="text-align:center;">
54
 
55
  <?php
56
  if($label!='' && $label['place']=='before'){
@@ -103,7 +103,8 @@ public function __construct() {
103
  $width = isset($element['width']) ? ($element['width']) : '';
104
  $options = isset($element['valid_options']) ? $element['valid_options'] : '';
105
  $switched = (isset($element['switched']) && $element['switched'] === 'off') ? 'disabled' : '';
106
- //$disabled_text = (isset($element['disabled']) && isset($element['disabled']['text'])) ? $element['disabled']['text'] : '';
 
107
  $disabled_options = isset($element['disabled_options']) ? $element['disabled_options'] : array();
108
  $defaults = $element['defaults'];
109
  $current_settings = isset($feed_row) ? $feed_row : '';
@@ -120,7 +121,9 @@ public function __construct() {
120
  $attr = $attrs;
121
 
122
 
123
-
 
 
124
 
125
  ?>
126
 
@@ -152,7 +155,9 @@ public function __construct() {
152
  <label class="<?php echo isset($label['class']) ? $label['class'] : '';?>" for="<?php echo $id; ?>"><?php echo $label['text']; ?></label>
153
  <?php
154
  }
155
-
 
 
156
  //echo disable text if need label & disable text
157
 
158
  ?>
@@ -161,6 +166,42 @@ public function __construct() {
161
  </div>
162
  </div>
163
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
164
  }
165
 
166
 
@@ -176,6 +217,7 @@ public function __construct() {
176
  * $element['CONST'] //variable to store data in array
177
  */
178
  public function radio($element,$feed_row=''){
 
179
  $name = $element['CONST'] . '[' . (isset($element['name']) ? $element['name'] : 'NOT_SET') . ']';
180
  $id = isset($element['id']) ? $element['id'] : 'WDI_'.$element['name'];
181
  //$attr = isset($element['attr']) ? $element['attr']['name'] . '="' . $element['attr']['value'].'"' : '';
@@ -223,7 +265,7 @@ public function __construct() {
223
  }
224
  }
225
  ?>
226
- <input <?php echo $disable;?> style="margin:2px;" type="radio" name="<?php echo $name ?>" value="<?php echo esc_attr($key); ?>" <?php checked($key,$opt_value); ?> <?php echo $attr; ?> /> <?php echo esc_html($option); ?>
227
 
228
  <?php if($disable_text != '') : ?>
229
  <?php if(isset($disabled_options['br'])) : ?>
50
  ?>
51
  <div class="wdwt_param" id="WDI_wrap_<?php echo $element['name']; ?>">
52
  <div class="block">
53
+ <div class="optioninput">
54
 
55
  <?php
56
  if($label!='' && $label['place']=='before'){
103
  $width = isset($element['width']) ? ($element['width']) : '';
104
  $options = isset($element['valid_options']) ? $element['valid_options'] : '';
105
  $switched = (isset($element['switched']) && $element['switched'] === 'off') ? 'disabled' : '';
106
+ $hide_ids = isset($element['hide_ids']) ? $element['hide_ids'] : '';
107
+ $disabled_text = (isset($element['disabled']) && isset($element['disabled']['text'])) ? $element['disabled']['text'] : '';
108
  $disabled_options = isset($element['disabled_options']) ? $element['disabled_options'] : array();
109
  $defaults = $element['defaults'];
110
  $current_settings = isset($feed_row) ? $feed_row : '';
121
  $attr = $attrs;
122
 
123
 
124
+ /*if($element["name"] === "feed_display_view"){
125
+ echo "<pre>" ; var_dump($hide_ids);die;
126
+ }*/
127
 
128
  ?>
129
 
155
  <label class="<?php echo isset($label['class']) ? $label['class'] : '';?>" for="<?php echo $id; ?>"><?php echo $label['text']; ?></label>
156
  <?php
157
  }
158
+ if($disabled_text != ''){
159
+ ?><span class="wdi_pro_only"><?php echo $disabled_text?></span> <?php
160
+ }
161
  //echo disable text if need label & disable text
162
 
163
  ?>
166
  </div>
167
  </div>
168
  <?php
169
+
170
+
171
+ if($hide_ids != ''){
172
+ ?>
173
+ <style>
174
+ .<?php echo $id.'_hide_ids_hidden';?>{
175
+ display:none !important;
176
+ }
177
+ </style>
178
+ <script>
179
+ jQuery(document).ready(function(){
180
+ var <?php echo $id.'_hide_ids';?> = <?php echo json_encode($hide_ids);?>;
181
+ jQuery("#WDI_wrap_<?php echo $element['name'];?> select").on('change',function(){
182
+ jQuery('.<?php echo $id.'_hide_ids_hidden';?>').each(function(){
183
+ jQuery(this).removeClass('<?php echo $id.'_hide_ids_hidden';?>');
184
+ });
185
+ var selected = jQuery(this).val();
186
+ for (var opt in <?php echo $id.'_hide_ids'?>){
187
+ if(opt == selected){
188
+ var ids = <?php echo $id.'_hide_ids'?>[opt].split(',');
189
+ for (var i in ids){
190
+ jQuery('#WDI_wrap_'+ids[i]).parent().parent().addClass("<?php echo $id.'_hide_ids_hidden';?>");
191
+ }
192
+ }
193
+ }
194
+ });
195
+ jQuery("#WDI_wrap_<?php echo $element['name'];?> select").each(function(){
196
+ var currentOption = "<?php echo $opt_value?>";
197
+ if(jQuery(this).val() == currentOption){
198
+ jQuery(this).trigger('change');
199
+ }
200
+ });
201
+ });
202
+ </script>
203
+ <?php }
204
+
205
  }
206
 
207
 
217
  * $element['CONST'] //variable to store data in array
218
  */
219
  public function radio($element,$feed_row=''){
220
+ $option_name = isset($element['name']) ? $element['name'] : 'NOT_SET';
221
  $name = $element['CONST'] . '[' . (isset($element['name']) ? $element['name'] : 'NOT_SET') . ']';
222
  $id = isset($element['id']) ? $element['id'] : 'WDI_'.$element['name'];
223
  //$attr = isset($element['attr']) ? $element['attr']['name'] . '="' . $element['attr']['value'].'"' : '';
265
  }
266
  }
267
  ?>
268
+ <input <?php echo $disable;?> style="margin:2px;" type="radio" name="<?php echo $name ?>" value="<?php echo esc_attr($key); ?>" <?php checked($key,$opt_value); ?> <?php echo $attr; ?> id="<?php echo $option_name . "_" . $key;?>" /><label for="<?php echo $option_name . "_" . $key;?>"> <?php echo esc_html($option); ?></label>
269
 
270
  <?php if($disable_text != '') : ?>
271
  <?php if(isset($disabled_options['br'])) : ?>
frontend/shortcode.php CHANGED
@@ -162,13 +162,14 @@ function wdi_load_frontend_scripts()
162
  wp_enqueue_script('wdi_responsive', WDI_URL . '/js/wdi_responsive.js', array("jquery", "wdi_frontend"), WDI_VERSION, true);
163
  }
164
 
 
165
 
166
  wp_localize_script("wdi_frontend", 'wdi_ajax', array('ajax_url' => admin_url('admin-ajax.php')), WDI_VERSION);
167
  wp_localize_script("wdi_frontend", 'wdi_url', array('plugin_url' => plugin_dir_url(__FILE__),
168
  'ajax_url' => admin_url('admin-ajax.php')), WDI_VERSION);
169
 
170
  $user_is_admin = current_user_can('manage_options');
171
-
172
  wp_localize_script("wdi_frontend", 'wdi_front_messages',
173
  array('connection_error' => __('Connection Error, try again later :(', 'wd-instagram-feed'),
174
  'user_not_found' => __('Username not found', 'wd-instagram-feed'),
@@ -179,12 +180,31 @@ function wdi_load_frontend_scripts()
179
  'feed_nomedia' => __('There is no media in this feed', 'wd-instagram-feed'),
180
  'follow' => __('Follow', 'wd-instagram-feed'),
181
  'show_alerts' => $user_is_admin,
 
 
182
  ), WDI_VERSION);
183
 
184
 
185
  wdi_front_end_scripts();
186
  }
187
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
188
  function wdi_load_frontend_styles()
189
  {
190
  if(WDI_MINIFY === true){
@@ -215,15 +235,15 @@ function wdi_front_end_scripts()
215
  */
216
  // Styles/Scripts for popup.
217
  wp_enqueue_script('jquery-mobile', WDI_FRONT_URL . '/js/gallerybox/jquery.mobile.js', array('jquery'), WDI_VERSION);
218
- wp_enqueue_script('jquery-mCustomScrollbar', WDI_FRONT_URL . '/js/gallerybox/jquery.mCustomScrollbar.concat.min.js', array('jquery'), WDI_VERSION);
219
  wp_enqueue_script('jquery-fullscreen', WDI_FRONT_URL . '/js/gallerybox/jquery.fullscreen-0.4.1.js', array('jquery'), WDI_VERSION);
220
 
221
  if(WDI_MINIFY === true){
222
- wp_enqueue_style('wdi_mCustomScrollbar', WDI_FRONT_URL . '/css/gallerybox/jquery.mCustomScrollbar.min.css', array(), WDI_VERSION);
223
  /*ttt!!! gallery fullscreeni het conflict chka ?? arje stugel ete fullscreen script ka, apa el chavelacnel*/
224
  wp_enqueue_script('wdi_gallery_box', WDI_FRONT_URL . '/js/gallerybox/wdi_gallery_box.min.js', array('jquery'), WDI_VERSION);
225
  }else{
226
- wp_enqueue_style('wdi_mCustomScrollbar', WDI_FRONT_URL . '/css/gallerybox/jquery.mCustomScrollbar.css', array(), WDI_VERSION);
227
  /*ttt!!! gallery fullscreeni het conflict chka ?? arje stugel ete fullscreen script ka, apa el chavelacnel*/
228
  wp_enqueue_script('wdi_gallery_box', WDI_FRONT_URL . '/js/gallerybox/wdi_gallery_box.js', array('jquery'), WDI_VERSION);
229
  }
@@ -279,15 +299,15 @@ function wdi_load_frontend_scripts_styles_ajax()
279
 
280
  // Styles/Scripts for popup.
281
  wp_enqueue_script('jquery-mobile', WDI_FRONT_URL . '/js/gallerybox/jquery.mobile.js', array(), WDI_VERSION);
282
- wp_enqueue_script('jquery-mCustomScrollbar', WDI_FRONT_URL . '/js/gallerybox/jquery.mCustomScrollbar.concat.min.js', array(), WDI_VERSION);
283
  wp_enqueue_script('jquery-fullscreen', WDI_FRONT_URL . '/js/gallerybox/jquery.fullscreen-0.4.1.js', array(), WDI_VERSION);
284
 
285
  if(WDI_MINIFY === true) {
286
- wp_enqueue_style('wdi_mCustomScrollbar', WDI_FRONT_URL . '/css/gallerybox/jquery.mCustomScrollbar.min.css', array(), WDI_VERSION);
287
  /*ttt!!! gallery fullscreeni het conflict chka ?? arje stugel ete fullscreen script ka, apa el chavelacnel*/
288
  wp_enqueue_script('wdi_gallery_box', WDI_FRONT_URL . '/js/gallerybox/wdi_gallery_box.min.js', array(), WDI_VERSION);
289
  } else {
290
- wp_enqueue_style('wdi_mCustomScrollbar', WDI_FRONT_URL . '/css/gallerybox/jquery.mCustomScrollbar.css', array(), WDI_VERSION);
291
  /*ttt!!! gallery fullscreeni het conflict chka ?? arje stugel ete fullscreen script ka, apa el chavelacnel*/
292
  wp_enqueue_script('wdi_gallery_box', WDI_FRONT_URL . '/js/gallerybox/wdi_gallery_box.js', array(), WDI_VERSION);
293
  }
@@ -305,12 +325,23 @@ function wdi_load_frontend_scripts_styles_ajax()
305
 
306
 
307
  function wdi_feed_frontend_messages(){
 
 
 
 
 
 
 
 
 
 
 
 
 
308
 
309
- $class = current_user_can('manage_options') ? '' : 'wdi_hidden';
310
- $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.", "wd-instagram-feed");
311
  $ajax_error_message = (defined('DOING_AJAX') && DOING_AJAX) ? __("Warning: Instagram Feed is loaded using AJAX request. It might not display properly.", "wd-instagram-feed") : '';
312
 
313
- echo '<div class="wdi_js_error '.$class.'">'.
314
  $js_error_message ."<br/>". $ajax_error_message .'</div>';
315
-
316
  }
162
  wp_enqueue_script('wdi_responsive', WDI_URL . '/js/wdi_responsive.js', array("jquery", "wdi_frontend"), WDI_VERSION, true);
163
  }
164
 
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' => plugin_dir_url(__FILE__),
169
  'ajax_url' => admin_url('admin-ajax.php')), WDI_VERSION);
170
 
171
  $user_is_admin = current_user_can('manage_options');
172
+ $wdi_token_error_flag = get_option("wdi_token_error_flag");
173
  wp_localize_script("wdi_frontend", 'wdi_front_messages',
174
  array('connection_error' => __('Connection Error, try again later :(', 'wd-instagram-feed'),
175
  'user_not_found' => __('Username not found', 'wd-instagram-feed'),
180
  'feed_nomedia' => __('There is no media in this feed', 'wd-instagram-feed'),
181
  'follow' => __('Follow', 'wd-instagram-feed'),
182
  'show_alerts' => $user_is_admin,
183
+ 'wdi_token_flag_nonce' => wp_create_nonce(''),
184
+ 'wdi_token_error_flag' => $wdi_token_error_flag
185
  ), WDI_VERSION);
186
 
187
 
188
  wdi_front_end_scripts();
189
  }
190
 
191
+
192
+
193
+ add_action('wp_ajax_wdi_token_flag', 'wdi_token_flag');
194
+ add_action('wp_ajax_nopriv_wdi_token_flag', 'wdi_token_flag');
195
+ function wdi_token_flag() {
196
+ if (check_ajax_referer('', 'wdi_token_flag_nonce', false)){
197
+ add_option("wdi_token_error_flag", 1);
198
+ }
199
+ }
200
+ add_action('wp_ajax_wdi_delete_token_flag', 'wdi_delete_token_flag');
201
+ add_action('wp_ajax_nopriv_wdi_delete_token_flag', 'wdi_delete_token_flag');
202
+ function wdi_delete_token_flag() {
203
+ if (check_ajax_referer('', 'wdi_token_flag_nonce', false)){
204
+ delete_option("wdi_token_error_flag");
205
+ }
206
+ }
207
+
208
  function wdi_load_frontend_styles()
209
  {
210
  if(WDI_MINIFY === true){
235
  */
236
  // Styles/Scripts for popup.
237
  wp_enqueue_script('jquery-mobile', WDI_FRONT_URL . '/js/gallerybox/jquery.mobile.js', array('jquery'), WDI_VERSION);
238
+ //wp_enqueue_script('jquery-mCustomScrollbar', WDI_FRONT_URL . '/js/gallerybox/jquery.mCustomScrollbar.concat.min.js', array('jquery'), WDI_VERSION);
239
  wp_enqueue_script('jquery-fullscreen', WDI_FRONT_URL . '/js/gallerybox/jquery.fullscreen-0.4.1.js', array('jquery'), WDI_VERSION);
240
 
241
  if(WDI_MINIFY === true){
242
+ //wp_enqueue_style('wdi_mCustomScrollbar', WDI_FRONT_URL . '/css/gallerybox/jquery.mCustomScrollbar.min.css', array(), WDI_VERSION);
243
  /*ttt!!! gallery fullscreeni het conflict chka ?? arje stugel ete fullscreen script ka, apa el chavelacnel*/
244
  wp_enqueue_script('wdi_gallery_box', WDI_FRONT_URL . '/js/gallerybox/wdi_gallery_box.min.js', array('jquery'), WDI_VERSION);
245
  }else{
246
+ //wp_enqueue_style('wdi_mCustomScrollbar', WDI_FRONT_URL . '/css/gallerybox/jquery.mCustomScrollbar.css', array(), WDI_VERSION);
247
  /*ttt!!! gallery fullscreeni het conflict chka ?? arje stugel ete fullscreen script ka, apa el chavelacnel*/
248
  wp_enqueue_script('wdi_gallery_box', WDI_FRONT_URL . '/js/gallerybox/wdi_gallery_box.js', array('jquery'), WDI_VERSION);
249
  }
299
 
300
  // Styles/Scripts for popup.
301
  wp_enqueue_script('jquery-mobile', WDI_FRONT_URL . '/js/gallerybox/jquery.mobile.js', array(), WDI_VERSION);
302
+ //wp_enqueue_script('jquery-mCustomScrollbar', WDI_FRONT_URL . '/js/gallerybox/jquery.mCustomScrollbar.concat.min.js', array(), WDI_VERSION);
303
  wp_enqueue_script('jquery-fullscreen', WDI_FRONT_URL . '/js/gallerybox/jquery.fullscreen-0.4.1.js', array(), WDI_VERSION);
304
 
305
  if(WDI_MINIFY === true) {
306
+ //wp_enqueue_style('wdi_mCustomScrollbar', WDI_FRONT_URL . '/css/gallerybox/jquery.mCustomScrollbar.min.css', array(), WDI_VERSION);
307
  /*ttt!!! gallery fullscreeni het conflict chka ?? arje stugel ete fullscreen script ka, apa el chavelacnel*/
308
  wp_enqueue_script('wdi_gallery_box', WDI_FRONT_URL . '/js/gallerybox/wdi_gallery_box.min.js', array(), WDI_VERSION);
309
  } else {
310
+ //wp_enqueue_style('wdi_mCustomScrollbar', WDI_FRONT_URL . '/css/gallerybox/jquery.mCustomScrollbar.css', array(), WDI_VERSION);
311
  /*ttt!!! gallery fullscreeni het conflict chka ?? arje stugel ete fullscreen script ka, apa el chavelacnel*/
312
  wp_enqueue_script('wdi_gallery_box', WDI_FRONT_URL . '/js/gallerybox/wdi_gallery_box.js', array(), WDI_VERSION);
313
  }
325
 
326
 
327
  function wdi_feed_frontend_messages(){
328
+ $manage_options_user = current_user_can('manage_options');
329
+ //$class = $manage_options_user ? '' : '';
330
+
331
+
332
+ $js_error_message = __("Something is wrong.", "wd-instagram-feed");
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
  }
frontend/views/WDIViewGalleryBox.php CHANGED
@@ -1893,7 +1893,7 @@ class WDIViewGalleryBox {
1893
  //setting max-heigth for custom scrollbar
1894
  var wdi_desc_max_height = jQuery('.wdi_image_info_container1').height()-jQuery(".wdi_ctrl_btn_container").height()-parseInt(jQuery('.wdi_image_info').css('margin-bottom'))-parseInt(jQuery('.wdi_image_info').css('padding-bottom'));
1895
  jQuery('.wdi_image_info').css('max-height',wdi_desc_max_height);
1896
- jQuery('.wdi_image_info').mCustomScrollbar({scrollInertia: 250});
1897
 
1898
 
1899
 
@@ -2456,12 +2456,12 @@ class WDIViewGalleryBox {
2456
  jQuery(".wdi_info").attr("title", "<?php echo __('Hide info', "wd-instagram-feed"); ?>");
2457
 
2458
 
2459
-
2460
- if(!jQuery('.wdi_image_info').hasClass('mCustomScrollbar')){
2461
  var wdi_desc_max_height = <?php echo $image_height - ($filmstrip_direction == 'horizontal' ? $image_filmstrip_height : 0); ?> -jQuery(".wdi_ctrl_btn_container").height()-parseInt(jQuery('.wdi_image_info').css('margin-bottom'))-parseInt(jQuery('.wdi_image_info').css('padding-bottom'));
2462
  jQuery('.wdi_image_info').css('max-height',wdi_desc_max_height+"px");
2463
  jQuery('.wdi_image_info').mCustomScrollbar({scrollInertia: 250});
2464
- }
2465
 
2466
 
2467
  }
1893
  //setting max-heigth for custom scrollbar
1894
  var wdi_desc_max_height = jQuery('.wdi_image_info_container1').height()-jQuery(".wdi_ctrl_btn_container").height()-parseInt(jQuery('.wdi_image_info').css('margin-bottom'))-parseInt(jQuery('.wdi_image_info').css('padding-bottom'));
1895
  jQuery('.wdi_image_info').css('max-height',wdi_desc_max_height);
1896
+ //jQuery('.wdi_image_info').mCustomScrollbar({scrollInertia: 250});
1897
 
1898
 
1899
 
2456
  jQuery(".wdi_info").attr("title", "<?php echo __('Hide info', "wd-instagram-feed"); ?>");
2457
 
2458
 
2459
+ /* for free version */
2460
+ /* if(!jQuery('.wdi_image_info').hasClass('mCustomScrollbar')){
2461
  var wdi_desc_max_height = <?php echo $image_height - ($filmstrip_direction == 'horizontal' ? $image_filmstrip_height : 0); ?> -jQuery(".wdi_ctrl_btn_container").height()-parseInt(jQuery('.wdi_image_info').css('margin-bottom'))-parseInt(jQuery('.wdi_image_info').css('padding-bottom'));
2462
  jQuery('.wdi_image_info').css('max-height',wdi_desc_max_height+"px");
2463
  jQuery('.wdi_image_info').mCustomScrollbar({scrollInertia: 250});
2464
+ }*/
2465
 
2466
 
2467
  }
js/gallerybox/wdi_gallery_box.js CHANGED
@@ -304,13 +304,15 @@ wdi_comments_manager = {
304
  jQuery('.wdi_comments').append(wdi_comments);
305
  jQuery('.wdi_comments').append(wdi_added_comments);
306
 
307
- if (typeof jQuery().mCustomScrollbar !== 'undefined') {
 
 
308
  if (jQuery.isFunction(jQuery().mCustomScrollbar)) {
309
  jQuery(".wdi_comments").mCustomScrollbar({
310
  scrollInertia: 250
311
  });
312
  }
313
- }
314
 
315
  ////
316
  jQuery('.wdi_comments_close_btn').on('click', wdi_comment);
304
  jQuery('.wdi_comments').append(wdi_comments);
305
  jQuery('.wdi_comments').append(wdi_added_comments);
306
 
307
+ /* for free version */
308
+
309
+ /* if (typeof jQuery().mCustomScrollbar !== 'undefined') {
310
  if (jQuery.isFunction(jQuery().mCustomScrollbar)) {
311
  jQuery(".wdi_comments").mCustomScrollbar({
312
  scrollInertia: 250
313
  });
314
  }
315
+ }*/
316
 
317
  ////
318
  jQuery('.wdi_comments_close_btn').on('click', wdi_comment);
js/gallerybox/wdi_gallery_box.min.js CHANGED
@@ -1 +1 @@
1
- var isPopUpOpened=false;function wdi_spider_createpopup(d,c,f,b,h,g,a,e){d=d.replace(/&#038;/g,"&");if(isPopUpOpened){return}isPopUpOpened=true;if(wdi_spider_hasalreadyreceivedpopup(g)||wdi_spider_isunsupporteduseragent()){return}jQuery("html").attr("style","overflow:hidden !important;");jQuery("#wdi_spider_popup_loading_"+c).css({display:"block"});jQuery("#wdi_spider_popup_overlay_"+c).css({display:"block"});jQuery.ajax({type:"POST",url:d,dataType:"text",data:{action:"WDIGalleryBox",image_rows:JSON.stringify(e.parsedData),feed_id:e.feed_row.id,feed_counter:e.feed_row.wdi_feed_counter},success:function(k){var j=jQuery('<div id="wdi_spider_popup_wrap" class="wdi_spider_popup_wrap" style=" width:'+f+"px; height:"+b+"px; margin-top:-"+b/2+"px; margin-left: -"+f/2+'px; ">'+k+"</div>").hide().appendTo("body");wdi_spider_showpopup(g,a,j,h);jQuery("#wdi_spider_popup_loading_"+c).css({display:"none !important;"})}})}function wdi_spider_showpopup(c,a,b,d){isPopUpOpened=true;b.show();wdi_spider_receivedpopup(c,a)}function wdi_spider_hasalreadyreceivedpopup(a){if(document.cookie.indexOf(a)>-1){delete document.cookie[document.cookie.indexOf(a)]}return false}function wdi_spider_receivedpopup(c,a){var b=new Date();b.setDate(b.getDate()+a);document.cookie=c+"=true;expires="+b.toUTCString()+";path=/"}function wdi_spider_isunsupporteduseragent(){return(!window.XMLHttpRequest)}function wdi_spider_destroypopup(d){if(document.getElementById("wdi_spider_popup_wrap")!=null){wdi_comments_manager.popup_destroyed();if(typeof jQuery().fullscreen!=="undefined"&&jQuery.isFunction(jQuery().fullscreen)){if(jQuery.fullscreen.isFullScreen()){jQuery.fullscreen.exit()}}if(typeof enable_addthis!="undefined"&&enable_addthis){jQuery(".at4-share-outer").hide()}setTimeout(function(){jQuery(".wdi_spider_popup_wrap").remove();jQuery(".wdi_spider_popup_loading").css({display:"none"});jQuery(".wdi_spider_popup_overlay").css({display:"none"});jQuery(document).off("keydown");jQuery("html").attr("style","")},20)}isPopUpOpened=false;var a=(/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));var c=document.querySelector('meta[name="viewport"]');if(a&&c){c.content="width=device-width, initial-scale=1"}var b=jQuery(document).scrollTop();window.location.hash="";jQuery(document).scrollTop(b);if(typeof wdi_playInterval!="undefined"){clearInterval(wdi_playInterval)}}Object.size=function(c){var b=0,a;for(a in c){if(c.hasOwnProperty(a)){b++}}return b};function wdi_spider_ajax_save(a,b){wdi_comments_manager.init(b);return false}wdi_comments_manager={media_id:"",mediaComments:[],load_more_count:10,commentCounter:0,currentKey:-1,init:function(a){this.instagram=new WDIInstagram();this.instagram.addToken(wdi_front.access_token);if(this.currentKey!=a){this.currentKey=a;this.reset_comments()}else{}},reset_comments:function(){jQuery("#wdi_load_more_comments").remove();jQuery("#wdi_added_comments").html("");this.commentCounter=0;this.media_id=wdi_data[this.currentKey]["id"];this.getAjaxComments(this.currentKey)},popup_destroyed:function(){this.media_id="";this.mediaComments=[];this.commentCounter=0;this.currentKey=-1},showComments:function(f,e){if(Object.size(f)-this.commentCounter-e<0||e===undefined){e=Object.size(f)-this.commentCounter}var b=this.commentCounter;for(i=Object.size(f)-b-1;i>=Object.size(f)-b-e;i--){this.commentCounter++;var d=(f[i]["text"]);d=this.filterCommentText(d);var g=(f[i]["from"]["username"]);var c=(f[i]["from"]["profile_picture"]);var a=jQuery('<div class="wdi_single_comment"></div>');a.append(jQuery('<p class="wdi_comment_header_p"><span class="wdi_comment_header"><a target="_blank" href="//instagram.com/'+g+'"><img style="height:25px;width:25px;border-radius:25px" src="'+c+'"> '+g+'</a></span><span class="wdi_comment_date">'+wdi_front.convertUnixDate(f[i]["created_time"])+"</span></p>"));a.append(jQuery('<div class="wdi_comment_body_p"><span class="wdi_comment_body"><p>'+d+"</p></span></div>"));jQuery("#wdi_added_comments").prepend(a)}this.updateScrollbar()},updateScrollbar:function(){var b=jQuery("#wdi_comments");var a=jQuery("#wdi_added_comments");jQuery(".wdi_comments").attr("class","wdi_comments");jQuery(".wdi_comments").html("");jQuery(".wdi_comments").append(b);jQuery(".wdi_comments").append(a);if(typeof jQuery().mCustomScrollbar!=="undefined"){if(jQuery.isFunction(jQuery().mCustomScrollbar)){jQuery(".wdi_comments").mCustomScrollbar({scrollInertia:250})}}jQuery(".wdi_comments_close_btn").on("click",wdi_comment)},getAjaxComments:function(){this.instagram.getRecentMediaComments(this.media_id,{success:function(a){if(a==""||a==undefined||a==null){errorMessage="Network Error, please try again later :(";wdi_front.show_alert(errorMessage);return}if(a.meta["code"]!=200){errorMessage=a.meta["error_message"];wdi_front.show_alert(errorMessage);return}wdi_comments_manager.mediaComments=a.data;var b=wdi_data[wdi_comments_manager.currentKey];b.comments_data=a.data;wdi_comments_manager.showComments(b.comments_data,wdi_comments_manager.load_more_count);wdi_comments_manager.ajax_comments_ready(a.data)}})},ajax_comments_ready:function(a){this.createLoadMoreAndBindEvent()},createLoadMoreAndBindEvent:function(){jQuery("#wdi_added_comments").prepend(jQuery('<p id="wdi_load_more_comments" class="wdi_load_more_comments">load more comments</p>'));jQuery(".wdi_comment_container #wdi_load_more_comments").on("click",function(){jQuery(this).remove();wdi_comments_manager.showComments(wdi_comments_manager.mediaComments,wdi_comments_manager.load_more_count);wdi_comments_manager.createLoadMoreAndBindEvent()})},filterCommentText:function(d){var c=d.split(" ");var b="";for(var a=0;a<c.length;a++){switch(c[a][0]){case"@":b+='<a target="blank" class="wdi_comm_text_link" href="//instagram.com/'+c[a].substring(1,c[a].length)+'">'+c[a]+"</a> ";break;case"#":b+='<a target="blank" class="wdi_comm_text_link" href="//instagram.com/explore/tags/'+c[a].substring(1,c[a].length)+'">'+c[a]+"</a> ";break;default:b+=c[a]+" "}}b=b.substring(0,b.length-1);return b}};function wdi_spider_set_input_value(b,a){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_required(b,a){if(jQuery("#"+b).val()==""){wdi_front.show_alert(a+"* "+wdi_objectL10n.wdi_field_required);jQuery("#"+b).attr("style","border-color: #FF0000;");jQuery("#"+b).focus();return true}else{return false}}function wdi_spider_check_email(b){if(jQuery("#"+b).val()!=""){var a=jQuery("#"+b).val().replace(/^\s+|\s+$/g,"");if(a.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/)==-1){wdi_front.show_alert(wdi_objectL10n.wdi_mail_validation);return true}return false}}function wdi_captcha_refresh(a){if(document.getElementById(a+"_img")&&document.getElementById(a+"_input")){srcArr=document.getElementById(a+"_img").src.split("&r=");document.getElementById(a+"_img").src=srcArr[0]+"&r="+Math.floor(Math.random()*100);document.getElementById(a+"_img").style.display="inline-block";document.getElementById(a+"_input").value=""}}function wdi_play_pause(d){var c=d.get(0);var b=/firefox/i;var a=false;if(navigator.userAgent.match(b)){a=true}if(!a){if(!c.paused){c.pause()}else{c.play()}}}function wdi_spider_display_embed(k,l,g){var b="";switch(k){case"EMBED_OEMBED_YOUTUBE_VIDEO":var h="<iframe ";if(l!=""){h+=' src="//www.youtube.com/embed/'+l+'?enablejsapi=1&wmode=transparent"'}for(attr in g){if(!(/src/i).test(attr)){if(attr!=""&&g[attr]!=""){h+=" "+attr+'="'+g[attr]+'"'}}}h+=" ></iframe>";b+=h;break;case"EMBED_OEMBED_VIMEO_VIDEO":var e="<iframe ";if(l!=""){e+=' src="//player.vimeo.com/video/'+l+'?enablejsapi=1"'}for(attr in g){if(!(/src/i).test(attr)){if(attr!=""&&g[attr]!=""){e+=" "+attr+'="'+g[attr]+'"'}}}e+=" ></iframe>";b+=e;break;case"EMBED_OEMBED_FLICKR_IMAGE":var c="<div ";for(attr in g){if(!(/src/i).test(attr)){if(attr!=""&&g[attr]!=""){c+=" "+attr+'="'+g[attr]+'"'}}}c+=" >";if(l!=""){c+='<img src="'+l+'" style="max-width:100% !important; max-height:100% !important; width:auto !important; height:auto !important;">'}c+="</div>";b+=c;break;case"EMBED_OEMBED_FLICKR_VIDEO":break;case"EMBED_OEMBED_INSTAGRAM_VIDEO":var d="<div ";for(attr in g){if(!(/src/i).test(attr)){if(attr!=""&&g[attr]!=""){d+=" "+attr+'="'+g[attr]+'"'}}}d+=" >";if(l!=""){d+='<video onclick="wdi_play_pause(jQuery(this));" style="width:auto !important; height:auto !important; max-width:100% !important; max-height:100% !important; margin:0 !important;" controls><source src="'+l+'" type="video/mp4"> Your browser does not support the video tag. </video>'}d+="</div>";b+=d;break;case"EMBED_OEMBED_INSTAGRAM_IMAGE":var d="<div ";for(attr in g){if(!(/src/i).test(attr)){if(attr!=""&&g[attr]!=""){d+=" "+attr+'="'+g[attr]+'"'}}}d+=" >";if(l!=""){d+='<img src="//instagram.com/p/'+l+'/media/?size=l" style=" max-width:100% !important; max-height:100% !important; width:auto; height:auto;">'}d+="</div>";b+=d;break;case"EMBED_OEMBED_INSTAGRAM_POST":var d="<div ";var a="";for(attr in g){if(!(/src/i).test(attr)){if(attr!=""&&g[attr]!=""){d+=" "+attr+'="'+g[attr]+'"';if(attr=="CLASS"||attr=="class"||attr=="Class"){obj_class=g[attr]}}}}d+=" >";if(l!=""){d+='<iframe class="inner_instagram_iframe_'+obj_class+'" src="//instagr.am/p/'+l+'/embed/?enablejsapi=1" style="max-width:100% !important; max-height:100% !important; width:100%; height:100%; margin:0; display:table-cell; vertical-align:middle;"frameborder="0" scrolling="no" allowtransparency="false" allowfullscreen></iframe>'}d+="</div>";b+=d;break;case"EMBED_OEMBED_DAILYMOTION_VIDEO":var j="<iframe ";if(l!=""){j+=' src="//www.dailymotion.com/embed/video/'+l+'?api=postMessage"'}for(attr in g){if(!(/src/i).test(attr)){if(attr!=""&&g[attr]!=""){j+=" "+attr+'="'+g[attr]+'"'}}}j+=" ></iframe>";b+=j;break;case"EMBED_OEMBED_IMGUR":var f="<div ";for(attr in g){if(!(/src/i).test(attr)){if(attr!=""&&g[attr]!=""){d+=" "+attr+'="'+g[attr]+'"'}}}f+=" >";if(l!=""){f+='<img src="'+l+'" style="max-width:100% !important; max-height:100% !important; width:auto; height:auto !important;">'}f+="</div>";b+=f;break;default:}return b};
1
+ var isPopUpOpened=false;function wdi_spider_createpopup(d,c,f,b,h,g,a,e){d=d.replace(/&#038;/g,"&");if(isPopUpOpened){return}isPopUpOpened=true;if(wdi_spider_hasalreadyreceivedpopup(g)||wdi_spider_isunsupporteduseragent()){return}jQuery("html").attr("style","overflow:hidden !important;");jQuery("#wdi_spider_popup_loading_"+c).css({display:"block"});jQuery("#wdi_spider_popup_overlay_"+c).css({display:"block"});jQuery.ajax({type:"POST",url:d,dataType:"text",data:{action:"WDIGalleryBox",image_rows:JSON.stringify(e.parsedData),feed_id:e.feed_row.id,feed_counter:e.feed_row.wdi_feed_counter},success:function(k){var j=jQuery('<div id="wdi_spider_popup_wrap" class="wdi_spider_popup_wrap" style=" width:'+f+"px; height:"+b+"px; margin-top:-"+b/2+"px; margin-left: -"+f/2+'px; ">'+k+"</div>").hide().appendTo("body");wdi_spider_showpopup(g,a,j,h);jQuery("#wdi_spider_popup_loading_"+c).css({display:"none !important;"})}})}function wdi_spider_showpopup(c,a,b,d){isPopUpOpened=true;b.show();wdi_spider_receivedpopup(c,a)}function wdi_spider_hasalreadyreceivedpopup(a){if(document.cookie.indexOf(a)>-1){delete document.cookie[document.cookie.indexOf(a)]}return false}function wdi_spider_receivedpopup(c,a){var b=new Date();b.setDate(b.getDate()+a);document.cookie=c+"=true;expires="+b.toUTCString()+";path=/"}function wdi_spider_isunsupporteduseragent(){return(!window.XMLHttpRequest)}function wdi_spider_destroypopup(d){if(document.getElementById("wdi_spider_popup_wrap")!=null){wdi_comments_manager.popup_destroyed();if(typeof jQuery().fullscreen!=="undefined"&&jQuery.isFunction(jQuery().fullscreen)){if(jQuery.fullscreen.isFullScreen()){jQuery.fullscreen.exit()}}if(typeof enable_addthis!="undefined"&&enable_addthis){jQuery(".at4-share-outer").hide()}setTimeout(function(){jQuery(".wdi_spider_popup_wrap").remove();jQuery(".wdi_spider_popup_loading").css({display:"none"});jQuery(".wdi_spider_popup_overlay").css({display:"none"});jQuery(document).off("keydown");jQuery("html").attr("style","")},20)}isPopUpOpened=false;var a=(/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));var c=document.querySelector('meta[name="viewport"]');if(a&&c){c.content="width=device-width, initial-scale=1"}var b=jQuery(document).scrollTop();window.location.hash="";jQuery(document).scrollTop(b);if(typeof wdi_playInterval!="undefined"){clearInterval(wdi_playInterval)}}Object.size=function(c){var b=0,a;for(a in c){if(c.hasOwnProperty(a)){b++}}return b};function wdi_spider_ajax_save(a,b){wdi_comments_manager.init(b);return false}wdi_comments_manager={media_id:"",mediaComments:[],load_more_count:10,commentCounter:0,currentKey:-1,init:function(a){this.instagram=new WDIInstagram();this.instagram.addToken(wdi_front.access_token);if(this.currentKey!=a){this.currentKey=a;this.reset_comments()}else{}},reset_comments:function(){jQuery("#wdi_load_more_comments").remove();jQuery("#wdi_added_comments").html("");this.commentCounter=0;this.media_id=wdi_data[this.currentKey]["id"];this.getAjaxComments(this.currentKey)},popup_destroyed:function(){this.media_id="";this.mediaComments=[];this.commentCounter=0;this.currentKey=-1},showComments:function(f,e){if(Object.size(f)-this.commentCounter-e<0||e===undefined){e=Object.size(f)-this.commentCounter}var b=this.commentCounter;for(i=Object.size(f)-b-1;i>=Object.size(f)-b-e;i--){this.commentCounter++;var d=(f[i]["text"]);d=this.filterCommentText(d);var g=(f[i]["from"]["username"]);var c=(f[i]["from"]["profile_picture"]);var a=jQuery('<div class="wdi_single_comment"></div>');a.append(jQuery('<p class="wdi_comment_header_p"><span class="wdi_comment_header"><a target="_blank" href="//instagram.com/'+g+'"><img style="height:25px;width:25px;border-radius:25px" src="'+c+'"> '+g+'</a></span><span class="wdi_comment_date">'+wdi_front.convertUnixDate(f[i]["created_time"])+"</span></p>"));a.append(jQuery('<div class="wdi_comment_body_p"><span class="wdi_comment_body"><p>'+d+"</p></span></div>"));jQuery("#wdi_added_comments").prepend(a)}this.updateScrollbar()},updateScrollbar:function(){var b=jQuery("#wdi_comments");var a=jQuery("#wdi_added_comments");jQuery(".wdi_comments").attr("class","wdi_comments");jQuery(".wdi_comments").html("");jQuery(".wdi_comments").append(b);jQuery(".wdi_comments").append(a);jQuery(".wdi_comments_close_btn").on("click",wdi_comment)},getAjaxComments:function(){this.instagram.getRecentMediaComments(this.media_id,{success:function(a){if(a==""||a==undefined||a==null){errorMessage="Network Error, please try again later :(";wdi_front.show_alert(errorMessage);return}if(a.meta["code"]!=200){errorMessage=a.meta["error_message"];wdi_front.show_alert(errorMessage);return}wdi_comments_manager.mediaComments=a.data;var b=wdi_data[wdi_comments_manager.currentKey];b.comments_data=a.data;wdi_comments_manager.showComments(b.comments_data,wdi_comments_manager.load_more_count);wdi_comments_manager.ajax_comments_ready(a.data)}})},ajax_comments_ready:function(a){this.createLoadMoreAndBindEvent()},createLoadMoreAndBindEvent:function(){jQuery("#wdi_added_comments").prepend(jQuery('<p id="wdi_load_more_comments" class="wdi_load_more_comments">load more comments</p>'));jQuery(".wdi_comment_container #wdi_load_more_comments").on("click",function(){jQuery(this).remove();wdi_comments_manager.showComments(wdi_comments_manager.mediaComments,wdi_comments_manager.load_more_count);wdi_comments_manager.createLoadMoreAndBindEvent()})},filterCommentText:function(d){var c=d.split(" ");var b="";for(var a=0;a<c.length;a++){switch(c[a][0]){case"@":b+='<a target="blank" class="wdi_comm_text_link" href="//instagram.com/'+c[a].substring(1,c[a].length)+'">'+c[a]+"</a> ";break;case"#":b+='<a target="blank" class="wdi_comm_text_link" href="//instagram.com/explore/tags/'+c[a].substring(1,c[a].length)+'">'+c[a]+"</a> ";break;default:b+=c[a]+" "}}b=b.substring(0,b.length-1);return b}};function wdi_spider_set_input_value(b,a){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_required(b,a){if(jQuery("#"+b).val()==""){wdi_front.show_alert(a+"* "+wdi_objectL10n.wdi_field_required);jQuery("#"+b).attr("style","border-color: #FF0000;");jQuery("#"+b).focus();return true}else{return false}}function wdi_spider_check_email(b){if(jQuery("#"+b).val()!=""){var a=jQuery("#"+b).val().replace(/^\s+|\s+$/g,"");if(a.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/)==-1){wdi_front.show_alert(wdi_objectL10n.wdi_mail_validation);return true}return false}}function wdi_captcha_refresh(a){if(document.getElementById(a+"_img")&&document.getElementById(a+"_input")){srcArr=document.getElementById(a+"_img").src.split("&r=");document.getElementById(a+"_img").src=srcArr[0]+"&r="+Math.floor(Math.random()*100);document.getElementById(a+"_img").style.display="inline-block";document.getElementById(a+"_input").value=""}}function wdi_play_pause(d){var c=d.get(0);var b=/firefox/i;var a=false;if(navigator.userAgent.match(b)){a=true}if(!a){if(!c.paused){c.pause()}else{c.play()}}}function wdi_spider_display_embed(k,l,g){var b="";switch(k){case"EMBED_OEMBED_YOUTUBE_VIDEO":var h="<iframe ";if(l!=""){h+=' src="//www.youtube.com/embed/'+l+'?enablejsapi=1&wmode=transparent"'}for(attr in g){if(!(/src/i).test(attr)){if(attr!=""&&g[attr]!=""){h+=" "+attr+'="'+g[attr]+'"'}}}h+=" ></iframe>";b+=h;break;case"EMBED_OEMBED_VIMEO_VIDEO":var e="<iframe ";if(l!=""){e+=' src="//player.vimeo.com/video/'+l+'?enablejsapi=1"'}for(attr in g){if(!(/src/i).test(attr)){if(attr!=""&&g[attr]!=""){e+=" "+attr+'="'+g[attr]+'"'}}}e+=" ></iframe>";b+=e;break;case"EMBED_OEMBED_FLICKR_IMAGE":var c="<div ";for(attr in g){if(!(/src/i).test(attr)){if(attr!=""&&g[attr]!=""){c+=" "+attr+'="'+g[attr]+'"'}}}c+=" >";if(l!=""){c+='<img src="'+l+'" style="max-width:100% !important; max-height:100% !important; width:auto !important; height:auto !important;">'}c+="</div>";b+=c;break;case"EMBED_OEMBED_FLICKR_VIDEO":break;case"EMBED_OEMBED_INSTAGRAM_VIDEO":var d="<div ";for(attr in g){if(!(/src/i).test(attr)){if(attr!=""&&g[attr]!=""){d+=" "+attr+'="'+g[attr]+'"'}}}d+=" >";if(l!=""){d+='<video onclick="wdi_play_pause(jQuery(this));" style="width:auto !important; height:auto !important; max-width:100% !important; max-height:100% !important; margin:0 !important;" controls><source src="'+l+'" type="video/mp4"> Your browser does not support the video tag. </video>'}d+="</div>";b+=d;break;case"EMBED_OEMBED_INSTAGRAM_IMAGE":var d="<div ";for(attr in g){if(!(/src/i).test(attr)){if(attr!=""&&g[attr]!=""){d+=" "+attr+'="'+g[attr]+'"'}}}d+=" >";if(l!=""){d+='<img src="//instagram.com/p/'+l+'/media/?size=l" style=" max-width:100% !important; max-height:100% !important; width:auto; height:auto;">'}d+="</div>";b+=d;break;case"EMBED_OEMBED_INSTAGRAM_POST":var d="<div ";var a="";for(attr in g){if(!(/src/i).test(attr)){if(attr!=""&&g[attr]!=""){d+=" "+attr+'="'+g[attr]+'"';if(attr=="CLASS"||attr=="class"||attr=="Class"){obj_class=g[attr]}}}}d+=" >";if(l!=""){d+='<iframe class="inner_instagram_iframe_'+obj_class+'" src="//instagr.am/p/'+l+'/embed/?enablejsapi=1" style="max-width:100% !important; max-height:100% !important; width:100%; height:100%; margin:0; display:table-cell; vertical-align:middle;"frameborder="0" scrolling="no" allowtransparency="false" allowfullscreen></iframe>'}d+="</div>";b+=d;break;case"EMBED_OEMBED_DAILYMOTION_VIDEO":var j="<iframe ";if(l!=""){j+=' src="//www.dailymotion.com/embed/video/'+l+'?api=postMessage"'}for(attr in g){if(!(/src/i).test(attr)){if(attr!=""&&g[attr]!=""){j+=" "+attr+'="'+g[attr]+'"'}}}j+=" ></iframe>";b+=j;break;case"EMBED_OEMBED_IMGUR":var f="<div ";for(attr in g){if(!(/src/i).test(attr)){if(attr!=""&&g[attr]!=""){d+=" "+attr+'="'+g[attr]+'"'}}}f+=" >";if(l!=""){f+='<img src="'+l+'" style="max-width:100% !important; max-height:100% !important; width:auto; height:auto !important;">'}f+="</div>";b+=f;break;default:}return b};
js/wdi_admin.js CHANGED
@@ -1,7 +1,6 @@
1
  jQuery(document).ready(function() {
2
 
3
 
4
-
5
  /*Feeds page*/
6
  wdi_controller.bindSaveFeedEvent();
7
  wdi_controller.bindAddNewUserOrHashtagEvent();
@@ -111,17 +110,20 @@ wdi_controller.switchFeedTabs = function(tabname, section) {
111
  jQuery('#wdi_refresh_tab').attr('value', tabname);
112
 
113
  //hiding options of other tabs
114
- jQuery('[tab]').each(function() {
115
- if (jQuery(this).attr('tab') != tabname) {
116
- jQuery(this).parent().parent().parent().parent().parent().filter('tr').css('display', 'none');
117
- } else {
118
- jQuery(this).parent().parent().parent().parent().parent().filter('tr').css('display', 'block');
119
- }
120
- });
121
  //hiding all display_type elements
122
  jQuery('.display_type').css('display', 'none');
123
  //showing only requested display_type tab elements
124
  jQuery('.display_type[tab="' + tabname + '"]').css('display', 'block');
 
 
 
 
 
 
 
125
 
126
  //swap active tab class
127
  jQuery('.wdi_feed_tabs').filter('.wdi_feed_tab_active').each(function() {
@@ -195,11 +197,9 @@ wdi_controller.displaySettingsSection = function($this) {
195
  var i = 0,
196
  j = 0;
197
  var sectionFlag = false;
198
- formTable.find('tr').each(function() {
199
  i++;
200
-
201
- var sectionStr = jQuery(this).children().children().children().children().children().attr('section');
202
-
203
  if (sectionStr !== undefined) {
204
  sectionFlag = false;
205
  var sections = sectionStr.toLowerCase().trim().split(',');
1
  jQuery(document).ready(function() {
2
 
3
 
 
4
  /*Feeds page*/
5
  wdi_controller.bindSaveFeedEvent();
6
  wdi_controller.bindAddNewUserOrHashtagEvent();
110
  jQuery('#wdi_refresh_tab').attr('value', tabname);
111
 
112
  //hiding options of other tabs
113
+ jQuery('.wdi_tab').hide();
114
+ jQuery('#' + tabname + '_tab').show();
115
+
 
 
 
 
116
  //hiding all display_type elements
117
  jQuery('.display_type').css('display', 'none');
118
  //showing only requested display_type tab elements
119
  jQuery('.display_type[tab="' + tabname + '"]').css('display', 'block');
120
+
121
+ jQuery('.display_type[tab="' + tabname + '"]').css('display', 'block');
122
+ if(!jQuery('.display_type[tab="' + tabname + '"]').length){
123
+ jQuery('.display_type_content').hide();
124
+ } else {
125
+ jQuery('.display_type_content').show();
126
+ }
127
 
128
  //swap active tab class
129
  jQuery('.wdi_feed_tabs').filter('.wdi_feed_tab_active').each(function() {
197
  var i = 0,
198
  j = 0;
199
  var sectionFlag = false;
200
+ formTable.find('.wdi_element').each(function() {
201
  i++;
202
+ var sectionStr = jQuery(this).find(".wdwt_param").children().children().children().attr('section');
 
 
203
  if (sectionStr !== undefined) {
204
  sectionFlag = false;
205
  var sections = sectionStr.toLowerCase().trim().split(',');
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("[tab]").each(function(){if(jQuery(this).attr("tab")!=d){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="'+d+'"]').css("display","block");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("tr").each(function(){e++;var j=jQuery(this).children().children().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()}});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}};
js/wdi_frontend.js CHANGED
@@ -1,3 +1,4 @@
 
1
  if (typeof wdi_front == 'undefined') {
2
  wdi_front = {
3
  type: 'not_declared'
@@ -15,14 +16,54 @@ wdi_front.detectEvent = function ()
15
  }
16
  }
17
 
18
- wdi_front.show_alert = function (message)
 
 
 
19
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  if (wdi_front_messages.show_alerts) {
21
- alert(message);
22
  }
23
  else {
24
  console.log('%c' + message, "color:#cc0000;");
25
  }
 
 
 
26
  }
27
 
28
 
@@ -197,8 +238,7 @@ wdi_front.globalInit = function ()
197
 
198
  wdi_front.init = function (currentFeed)
199
  {
200
-
201
- jQuery('.wdi_js_error').remove();
202
  //some varables used in code
203
  currentFeed.photoCounter = currentFeed.feed_row["number_of_photos"];
204
 
@@ -226,7 +266,7 @@ wdi_front.init = function (currentFeed)
226
 
227
 
228
  } else {
229
- wdi_front.show_alert(wdi_front_messages.invalid_users_format);
230
  return;
231
  }
232
 
@@ -234,7 +274,9 @@ wdi_front.init = function (currentFeed)
234
  //wdi_front.loadInstagramMedia( currentFeed, currentFeed.feed_row.number_of_photos);
235
 
236
  currentFeed.dataCount = currentFeed.feed_users.length; //1 in case of self feed
237
-
 
 
238
 
239
  for (var i = 0; i < currentFeed.dataCount; i++) {
240
  wdi_front.instagramRequest(i, currentFeed);
@@ -257,6 +299,52 @@ wdi_front.init = function (currentFeed)
257
 
258
  }
259
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
260
 
261
  /**
262
  * Checks if given string is JSON string
@@ -290,9 +378,13 @@ wdi_front.instagramRequest = function (id, currentFeed)
290
  currentFeed.instagram.getRecentLikedMedia({
291
  success: function (response)
292
  {
 
 
 
 
293
  currentFeed.mediaRequestsDone = true;
294
 
295
- response = _this.checkMediaResponse(response);
296
  if (response != false) {
297
  _this.saveSelfUserData(response, currentFeed);
298
  }
@@ -304,9 +396,12 @@ wdi_front.instagramRequest = function (id, currentFeed)
304
  currentFeed.instagram.getTagRecentMedia(this.stripHashtag(feed_users[id]['username']), {
305
  success: function (response)
306
  {
 
 
 
307
  currentFeed.mediaRequestsDone = true;
308
 
309
- response = _this.checkMediaResponse(response);
310
  if (response != false) {
311
  _this.saveUserData(response, currentFeed.feed_users[id], currentFeed);
312
  }
@@ -318,9 +413,13 @@ wdi_front.instagramRequest = function (id, currentFeed)
318
  currentFeed.instagram.getUserRecentMedia(feed_users[id]['id'], {
319
  success: function (response)
320
  {
 
 
 
 
321
  currentFeed.mediaRequestsDone = true;
322
 
323
- response = _this.checkMediaResponse(response);
324
  if (response != false) {
325
  _this.saveUserData(response, currentFeed.feed_users[id], currentFeed);
326
  }
@@ -1267,41 +1366,13 @@ wdi_front.createObject = function (obj, currentFeed)
1267
  {
1268
 
1269
  var caption = (obj['caption'] != null) ? obj['caption']['text'] : '&nbsp';
1270
-
1271
- var image_url = '';
1272
  var videoUrl = '';
1273
 
1274
- if (window.innerWidth >= currentFeed.feed_row.mobile_breakpoint) {
1275
- image_url = obj['images']['standard_resolution']['url'];
1276
- if (currentFeed.feed_row.feed_type == 'blog_style' || currentFeed.feed_row.feed_type == 'image_browser') {
1277
- image_url = obj['link'] + 'media?size=l';
1278
- }
1279
- if (obj['type'] == 'video') {
1280
- /*if pure video, not carousel*/
1281
- videoUrl = obj.hasOwnProperty('videos') ? obj['videos']['standard_resolution']['url'] : '';
1282
- }
1283
- }
1284
- if (window.innerWidth >= currentFeed.feed_row.mobile_breakpoint / 4 && window.innerWidth < currentFeed.feed_row.mobile_breakpoint) {
1285
- image_url = obj['images']['low_resolution']['url'];
1286
- if (currentFeed.feed_row.feed_type == 'blog_style' || currentFeed.feed_row.feed_type == 'image_browser') {
1287
- image_url = obj['link'] + 'media?size=l';
1288
- }
1289
- if (obj['type'] == 'video') {
1290
- /*if pure video, not carousel*/
1291
- videoUrl = obj.hasOwnProperty('videos') ? obj['videos']['low_bandwidth']['url'] : '';
1292
- }
1293
- }
1294
- if (window.innerWidth < currentFeed.feed_row.mobile_breakpoint / 4) {
1295
- image_url = obj['images']['thumbnail']['url'];
1296
- if (currentFeed.feed_row.feed_type == 'blog_style' || currentFeed.feed_row.feed_type == 'image_browser') {
1297
- image_url = obj['link'] + 'media?size=m';
1298
- }
1299
- if (obj['type'] == 'video') {
1300
- /*if pure video, not carousel*/
1301
- videoUrl = obj.hasOwnProperty('videos') ? obj['videos']['low_resolution']['url'] : '';
1302
- }
1303
  }
1304
 
 
1305
 
1306
  var imageIndex = currentFeed.imageIndex;
1307
 
@@ -2035,17 +2106,19 @@ wdi_front.loadMoreRequest = function (user, next_url, currentFeed, button)
2035
  success: function (response)
2036
  {
2037
 
2038
-
 
 
2039
  if (response === '' || typeof response == 'undefined' || response == null) {
2040
  errorMessage = wdi_front_messages.network_error;
2041
  currentFeed.loadMoreDataCount--;
2042
- wdi_front.show_alert(errorMessage);
2043
  return;
2044
  }
2045
  if (response['meta']['code'] != 200) {
2046
  errorMessage = response['meta']['error_message'];
2047
  currentFeed.loadMoreDataCount--;
2048
- wdi_front.show_alert(errorMessage);
2049
  return;
2050
  }
2051
 
@@ -2333,7 +2406,11 @@ wdi_front.show = function (name, currentFeed)
2333
  currentFeed.instagram.getSelfInfo({
2334
  success: function (response)
2335
  {
2336
- response = _this.checkMediaResponse(response);
 
 
 
 
2337
  if (response != false) {
2338
  var obj = {
2339
  id: response['data']['id'],
@@ -2360,7 +2437,10 @@ wdi_front.show = function (name, currentFeed)
2360
  /*currentFeed.instagram.getTagRecentMedia(_this.stripHashtag(_user.username), {*/
2361
  success: function (response)
2362
  {
2363
- response = _this.checkMediaResponse(response);
 
 
 
2364
  if (response != false) {
2365
  if (response['data'].length == 0) {
2366
  var thumb_img = '';
@@ -2391,7 +2471,12 @@ wdi_front.show = function (name, currentFeed)
2391
  currentFeed.instagram.getUserInfo(_user.id, {
2392
  success: function (response)
2393
  {
2394
- response = _this.checkMediaResponse(response);
 
 
 
 
 
2395
  if (response != false) {
2396
  var obj = {
2397
  id: response['data']['id'],
@@ -2806,17 +2891,17 @@ wdi_front.activeUsersCount = function (currentFeed)
2806
  * @param {Object} response [instagram API response]
2807
  * @return {Object or Boolean} [false: if invalid response, object: if valid]
2808
  */
2809
- wdi_front.checkMediaResponse = function (response)
2810
  {
2811
 
2812
  if (response == '' || typeof response == 'undefined' || response == null) {
2813
  errorMessage = wdi_front_messages.connection_error;
2814
- wdi_front.show_alert(errorMessage);
2815
  return false;
2816
  }
2817
  if (response['meta']['code'] != 200) {
2818
  errorMessage = response['meta']['error_message'];
2819
- wdi_front.show_alert(errorMessage);
2820
  return false;
2821
  }
2822
  return response;
@@ -2969,7 +3054,6 @@ var WDIFeed = function (obj)
2969
  {
2970
  window.addEventListener('load', function ()
2971
  {
2972
- //debugger;
2973
  _this.nowLoadingImages = false;
2974
  });
2975
  }
@@ -3537,6 +3621,10 @@ wdi_front.updateUsersIfNecessary = function (currentFeed)
3537
  currentFeed.instagram.searchForUsersByName(users[i].username, {
3538
  success: function (res)
3539
  {
 
 
 
 
3540
  if (res.meta.code == 200 && res.data.length > 0) {
3541
 
3542
  var found = false;
1
+
2
  if (typeof wdi_front == 'undefined') {
3
  wdi_front = {
4
  type: 'not_declared'
16
  }
17
  }
18
 
19
+ var wdi_error_show = false;
20
+
21
+
22
+ wdi_front.show_alert = function (message, response, wdi_current_feed)
23
  {
24
+ if(typeof wdi_current_feed != "undefined"){
25
+ wdi_current_feed = jQuery('#wdi_feed_' + wdi_current_feed.feed_row.wdi_feed_counter);
26
+
27
+ wdi_current_feed.find(".wdi_spinner").remove();
28
+ /* if(wdi_error_show){
29
+ return;
30
+ }*/
31
+ wdi_error_show = true;
32
+
33
+ var wdi_js_error = wdi_current_feed.find(".wdi_js_error");
34
+ var wdi_token_error = wdi_current_feed.find(".wdi_token_error");
35
+
36
+ if(response!=false && typeof response.meta!= undefined && response.meta.error_type === "OAuthAccessTokenException"){
37
+ wdi_token_error.removeClass("wdi_hidden");
38
+ if(wdi_front_messages.wdi_token_error_flag != "1"){
39
+ jQuery.ajax({
40
+ type: "POST",
41
+ url: wdi_url.ajax_url,
42
+ dataType: 'json',
43
+ data: {
44
+ action: "wdi_token_flag",
45
+ wdi_token_flag_nonce: wdi_front_messages.wdi_token_flag_nonce,
46
+ },
47
+ success: function(data){
48
+
49
+ }
50
+ });
51
+ }
52
+ }else{
53
+ wdi_js_error.removeClass("wdi_js_error");
54
+ wdi_js_error.addClass("wdi_js_error_no_animate");
55
+ jQuery('.wdi_js_error_no_animate').show();
56
+ }
57
+
58
  if (wdi_front_messages.show_alerts) {
59
+ //alert(message);
60
  }
61
  else {
62
  console.log('%c' + message, "color:#cc0000;");
63
  }
64
+ }
65
+
66
+ wdi_error_show = true;
67
  }
68
 
69
 
238
 
239
  wdi_front.init = function (currentFeed)
240
  {
241
+ jQuery('.wdi_js_error').hide();
 
242
  //some varables used in code
243
  currentFeed.photoCounter = currentFeed.feed_row["number_of_photos"];
244
 
266
 
267
 
268
  } else {
269
+ wdi_front.show_alert(wdi_front_messages.invalid_users_format, false ,currentFeed);
270
  return;
271
  }
272
 
274
  //wdi_front.loadInstagramMedia( currentFeed, currentFeed.feed_row.number_of_photos);
275
 
276
  currentFeed.dataCount = currentFeed.feed_users.length; //1 in case of self feed
277
+ var feedResolution = wdi_front.getFeedItemResolution(currentFeed);
278
+ currentFeed.feedImageResolution = feedResolution.image;
279
+ currentFeed.feedVideoResolution = feedResolution.video;
280
 
281
  for (var i = 0; i < currentFeed.dataCount; i++) {
282
  wdi_front.instagramRequest(i, currentFeed);
299
 
300
  }
301
 
302
+ wdi_front.getFeedItemResolution = function (currentFeed) {
303
+ var defaultResolution = {
304
+ "image": "standard_resolution",
305
+ "video": "standard_resolution"
306
+ };
307
+
308
+ if (currentFeed.feed_row.feed_resolution === "thumbnail") {
309
+ return {"image": "thumbnail", "video": "low_bandwidth"};
310
+ } else if (currentFeed.feed_row.feed_resolution === "low") {
311
+ return {"image": "low_resolution", "video": "low_resolution"};
312
+ } else if (currentFeed.feed_row.feed_resolution === "standard") {
313
+ return {"image": "standard_resolution", "video": "standard_resolution"};
314
+ }
315
+
316
+ var container = jQuery("#wdi_feed_" + currentFeed.feed_row.wdi_feed_counter).find('.wdi_feed_wrapper');
317
+ container.append('<div class="wdi_feed_item" id="wdi_feed_item_example"></div>');
318
+
319
+ wdi_responsive.columnControl(currentFeed, 1);
320
+ var attr = container.attr('wdi-res').split('wdi_col_');
321
+ container.find('#wdi_feed_item_example').remove();
322
+ if(attr.length !== 2){
323
+ return defaultResolution;
324
+ }
325
+
326
+ var itemsCount = parseInt(attr[1]);
327
+ if(itemsCount <= 0){
328
+ return defaultResolution;
329
+ }
330
+
331
+ var size = (container.width() / itemsCount) - 10;
332
+
333
+ var resolution = defaultResolution;
334
+
335
+ if(size <= 150){
336
+ resolution.image = "thumbnail";
337
+ resolution.video = "low_bandwidth";
338
+ }else if(size > 150 && size <= 320){
339
+ resolution.image = "low_resolution";
340
+ resolution.video = "low_resolution";
341
+ }else{
342
+ resolution.image = "standard_resolution";
343
+ resolution.video = "standard_resolution";
344
+ }
345
+
346
+ return resolution;
347
+ };
348
 
349
  /**
350
  * Checks if given string is JSON string
378
  currentFeed.instagram.getRecentLikedMedia({
379
  success: function (response)
380
  {
381
+
382
+ if(typeof response.meta!= "undefined" && typeof response.meta.error_type != "undefined"){
383
+ wdi_front.show_alert(false, response, currentFeed);
384
+ }
385
  currentFeed.mediaRequestsDone = true;
386
 
387
+ response = _this.checkMediaResponse(response, currentFeed);
388
  if (response != false) {
389
  _this.saveSelfUserData(response, currentFeed);
390
  }
396
  currentFeed.instagram.getTagRecentMedia(this.stripHashtag(feed_users[id]['username']), {
397
  success: function (response)
398
  {
399
+ if(typeof response.meta!= "undefined" && typeof response.meta.error_type != "undefined"){
400
+ wdi_front.show_alert(false, response, currentFeed);
401
+ }
402
  currentFeed.mediaRequestsDone = true;
403
 
404
+ response = _this.checkMediaResponse(response, currentFeed);
405
  if (response != false) {
406
  _this.saveUserData(response, currentFeed.feed_users[id], currentFeed);
407
  }
413
  currentFeed.instagram.getUserRecentMedia(feed_users[id]['id'], {
414
  success: function (response)
415
  {
416
+
417
+ if(typeof response.meta!= "undefined" && typeof response.meta.error_type != "undefined"){
418
+ wdi_front.show_alert(false, response, currentFeed);
419
+ }
420
  currentFeed.mediaRequestsDone = true;
421
 
422
+ response = _this.checkMediaResponse(response, currentFeed);
423
  if (response != false) {
424
  _this.saveUserData(response, currentFeed.feed_users[id], currentFeed);
425
  }
1366
  {
1367
 
1368
  var caption = (obj['caption'] != null) ? obj['caption']['text'] : '&nbsp';
 
 
1369
  var videoUrl = '';
1370
 
1371
+ if (obj['type'] == 'video') {
1372
+ videoUrl = obj.hasOwnProperty('videos') ? obj['videos'][currentFeed.feedVideoResolution]['url'] : '';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1373
  }
1374
 
1375
+ var image_url = obj.images[currentFeed.feedImageResolution].url;
1376
 
1377
  var imageIndex = currentFeed.imageIndex;
1378
 
2106
  success: function (response)
2107
  {
2108
 
2109
+ if(typeof response.meta!= "undefined" && typeof response.meta.error_type != "undefined"){
2110
+ wdi_front.show_alert(false, response, currentFeed);
2111
+ }
2112
  if (response === '' || typeof response == 'undefined' || response == null) {
2113
  errorMessage = wdi_front_messages.network_error;
2114
  currentFeed.loadMoreDataCount--;
2115
+ wdi_front.show_alert(errorMessage, response, currentFeed);
2116
  return;
2117
  }
2118
  if (response['meta']['code'] != 200) {
2119
  errorMessage = response['meta']['error_message'];
2120
  currentFeed.loadMoreDataCount--;
2121
+ wdi_front.show_alert(errorMessage ,response, currentFeed);
2122
  return;
2123
  }
2124
 
2406
  currentFeed.instagram.getSelfInfo({
2407
  success: function (response)
2408
  {
2409
+
2410
+ if(typeof response.meta!= "undefined" && typeof response.meta.error_type != "undefined"){
2411
+ wdi_front.show_alert(false, response, currentFeed);
2412
+ }
2413
+ response = _this.checkMediaResponse(response, currentFeed);
2414
  if (response != false) {
2415
  var obj = {
2416
  id: response['data']['id'],
2437
  /*currentFeed.instagram.getTagRecentMedia(_this.stripHashtag(_user.username), {*/
2438
  success: function (response)
2439
  {
2440
+ if(typeof response.meta!= "undefined" && typeof response.meta.error_type != "undefined"){
2441
+ wdi_front.show_alert(false, response, currentFeed);
2442
+ }
2443
+ response = _this.checkMediaResponse(response, currentFeed);
2444
  if (response != false) {
2445
  if (response['data'].length == 0) {
2446
  var thumb_img = '';
2471
  currentFeed.instagram.getUserInfo(_user.id, {
2472
  success: function (response)
2473
  {
2474
+
2475
+
2476
+ if(typeof response.meta!= "undefined" && typeof response.meta.error_type != "undefined"){
2477
+ wdi_front.show_alert(false, response, currentFeed);
2478
+ }
2479
+ response = _this.checkMediaResponse(response, currentFeed);
2480
  if (response != false) {
2481
  var obj = {
2482
  id: response['data']['id'],
2891
  * @param {Object} response [instagram API response]
2892
  * @return {Object or Boolean} [false: if invalid response, object: if valid]
2893
  */
2894
+ wdi_front.checkMediaResponse = function (response,currentFeed)
2895
  {
2896
 
2897
  if (response == '' || typeof response == 'undefined' || response == null) {
2898
  errorMessage = wdi_front_messages.connection_error;
2899
+ wdi_front.show_alert(errorMessage, response, currentFeed);
2900
  return false;
2901
  }
2902
  if (response['meta']['code'] != 200) {
2903
  errorMessage = response['meta']['error_message'];
2904
+ wdi_front.show_alert(errorMessage, response, currentFeed);
2905
  return false;
2906
  }
2907
  return response;
3054
  {
3055
  window.addEventListener('load', function ()
3056
  {
 
3057
  _this.nowLoadingImages = false;
3058
  });
3059
  }
3621
  currentFeed.instagram.searchForUsersByName(users[i].username, {
3622
  success: function (res)
3623
  {
3624
+
3625
+ if(typeof res.meta!= "undefined" && typeof res.meta.error_type != "undefined"){
3626
+ wdi_front.show_alert(false, res, currentFeed);
3627
+ }
3628
  if (res.meta.code == 200 && res.data.length > 0) {
3629
 
3630
  var found = 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"}};wdi_front.show_alert=function(a){if(wdi_front_messages.show_alerts){alert(a)}else{console.log("%c"+a,"color:#cc0000;")}};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++){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(b){jQuery(".wdi_js_error").remove();b.photoCounter=b.feed_row.number_of_photos;if(b.feed_row.liked_feed=="liked"){b.feed_users=["self"]}else{if(wdi_front.isJsonString(b.feed_row.feed_users)){b.feed_users=JSON.parse(b.feed_row.feed_users);if(wdi_front.updateUsersIfNecessary(b)){return}}else{wdi_front.show_alert(wdi_front_messages.invalid_users_format);return}}b.dataCount=b.feed_users.length;for(var a=0;a<b.dataCount;a++){wdi_front.instagramRequest(a,b)}if(b.feed_row.number_of_photos>0){wdi_front.ajaxLoader(b)}if(b.feed_row["display_header"]==="1"){wdi_front.show("header",b)}if(b.feed_row["show_usernames"]==="1"){wdi_front.show("users",b)}};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){b.mediaRequestsDone=true;e=c.checkMediaResponse(e);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){b.mediaRequestsDone=true;e=c.checkMediaResponse(e);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){b.mediaRequestsDone=true;e=c.checkMediaResponse(e);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"]:"&nbsp";var f="";var i="";if(window.innerWidth>=h.feed_row.mobile_breakpoint){f=e.images["standard_resolution"]["url"];if(h.feed_row.feed_type=="blog_style"||h.feed_row.feed_type=="image_browser"){f=e.link+"media?size=l"}if(e.type=="video"){i=e.hasOwnProperty("videos")?e.videos["standard_resolution"]["url"]:""}}if(window.innerWidth>=h.feed_row.mobile_breakpoint/4&&window.innerWidth<h.feed_row.mobile_breakpoint){f=e.images["low_resolution"]["url"];if(h.feed_row.feed_type=="blog_style"||h.feed_row.feed_type=="image_browser"){f=e.link+"media?size=l"}if(e.type=="video"){i=e.hasOwnProperty("videos")?e.videos["low_bandwidth"]["url"]:""}}if(window.innerWidth<h.feed_row.mobile_breakpoint/4){f=e.images["thumbnail"]["url"];if(h.feed_row.feed_type=="blog_style"||h.feed_row.feed_type=="image_browser"){f=e.link+"media?size=m"}if(e.type=="video"){i=e.hasOwnProperty("videos")?e.videos["low_resolution"]["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">&nbsp;<%= likes%></i></div>'}if(g.feed_row["show_comments"]==="1"){a+='<div class="wdi_thumb_comments"><i class="fa fa-comment-o">&nbsp;<%= 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">&nbsp;<%= likes%></i></div>'}if(g.feed_row["show_comments"]==="1"){a+='<div class="wdi_thumb_comments"><i class="fa fa-comment-o">&nbsp;<%= 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">&nbsp;<%= likes%></i></div>'}if(h.feed_row["show_comments"]==="1"){a+='<div class="wdi_thumb_comments"><i class="fa fa-comment-o">&nbsp;<%= 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(g===""||typeof g=="undefined"||g==null){c=wdi_front_messages.network_error;e.loadMoreDataCount--;wdi_front.show_alert(c);return}if(g.meta["code"]!=200){c=g.meta["error_message"];e.loadMoreDataCount--;wdi_front.show_alert(c);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){o=g.checkMediaResponse(o);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){o=g.checkMediaResponse(o);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){o=g.checkMediaResponse(o);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){if(a==""||typeof a=="undefined"||a==null){errorMessage=wdi_front_messages.connection_error;wdi_front.show_alert(errorMessage);return false}if(a.meta["code"]!=200){errorMessage=a.meta["error_message"];wdi_front.show_alert(errorMessage);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(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(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++){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"]:"&nbsp";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">&nbsp;<%= likes%></i></div>'}if(g.feed_row["show_comments"]==="1"){a+='<div class="wdi_thumb_comments"><i class="fa fa-comment-o">&nbsp;<%= 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">&nbsp;<%= likes%></i></div>'}if(g.feed_row["show_comments"]==="1"){a+='<div class="wdi_thumb_comments"><i class="fa fa-comment-o">&nbsp;<%= 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">&nbsp;<%= likes%></i></div>'}if(h.feed_row["show_comments"]==="1"){a+='<div class="wdi_thumb_comments"><i class="fa fa-comment-o">&nbsp;<%= 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}})};
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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.11
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -19,86 +19,177 @@ Instagram Feed WD is a user-friendly plugin to display user or hashtag-based Ins
19
 
20
  https://www.youtube.com/watch?v=KU4LJFxw0BY
21
 
22
- Are you looking for a free Instagram feed plugin for WordPress ? Do you want to show Instagram posts, photos and images on your WordPress website? Do you want a simple integration, responsive Instagram gallery, beautiful and custom-styled feeds?
23
- Instagram Feed WD is the best Instagram plugin for WordPress to go with. It is a simple Instagram plugin that comes with a user-friendly management and easy setup, and lets you embed custom Instagram feeds of hashtags and users to your website in just a couple of minutes. You can embed Instagram galleries and entire timelines to your posts using a shortcode or using the plugin’s Instagram widget on your sidebar. You don’t need to install Instagram widget, or add any Instagram code. 0ur plugin comes with a free Instagram widget letting you display Instagram social feeds, photos, images as well as Instagram video feeds.
24
 
25
- It’s fully customizable and the most feature-packed simple Instagram feed plugin for WordPress . It’s a simple WordPress plugin for Instagram designed for users who want to bring this widely popular social network to their websites and share Instagram pics with their visitors.
26
 
27
- Instagram Feed WD allows displaying custom feeds based on public Instagram accounts and hashtags. You can create mixed feeds based on multiple accounts, multiple hashtags or any combination of both with the Pro version. This WordPress Instagram plugin uses 4 layouts – 2 layouts for smaller thumbnail display (Thumbnail and Masonry views) and 2 for larger images (Blog Style and Image Browser views). Thumbnail view displays images with their metadata (Pro): caption, number of likes and comments. Image Browser displays single image with navigation possibility, metadata (Pro): image caption, number of likes and comments. Masonry layout (Pro) displays images in beautiful Instagram masonry view combining the image and its metadata (Pro). Blog Style layout (Pro)combines large image with its data similar creating a blog style display. All the layouts can display feed username and its metadata (bio, number of posts and followers).Also the plugin supports Instagram grid view which will give a distinct style to your website. It would be a perfect fit for photography websites, and for users who want to showcase beautiful Instagram galleries ,latest images and videos in their posts and pages.
 
 
 
 
 
 
 
 
28
 
29
- Use Conditional Filters to display filtered feeds (Pro). This feature will let you filter out images and photos from the feeds based on the conditions you specify. Setting a filter is simple.Set up a filter logic (to hide or display posts), choose condition type (username, hashtag, mention,description, Instagram media link), fill in the condition and display filtered feeds. Feeds can have multiple filters. It’s a great way to show only those Instagram posts and images that your visitors would like to scroll through.
30
 
31
- Images can be redirected to Instagram page or opened in a lightbox. You can set sorting for the images (date, likes, comments, random) as well as define the order (ascending/descending). In case of combined feeds you can use front-end filtering by clicking on specific hashtag or username. The lightbox displays Instagram pictures as a slideshow with different transition effects (Pro). In the Pro version of the plugin its Instagram lightbox also supports media caption, comments, social share buttons and filmstrip,making it an elegant advanced tool for viewing Instagram feed.
32
 
33
- Theme section (available with Pro version) allows to customize colors, sizes and display styles. Each layout uses its own theme which makes this section even more compelling.
 
 
 
34
 
35
- The plugin is responsive and scales perfectly for mobile Instagram users.
 
36
 
37
- No feed data is stored in the database. All the images, videos (Pro), captions and comments are retrieved directly from the Instagram in the front-end, which makes this WordPress Instagram gallery plugin fast and very easy to use.
 
38
 
 
 
39
 
40
- ###IMPORTANT:
41
- If you think you found a bug in Instagram Feed WD or wonder how to add Instagram to your website, or how to get Instagram plugin up and running, please check out [Support Forum](https://wordpress.org/support/plugin/wd-instagram-feed) . Additional information on how to download Instagram plugin to your website you can find in our user manual If you do not find a solution in the forum, do not hesitate to [click here to contact us](https://web-dorado.com/support/contact-us.html).
 
 
 
 
 
 
 
 
 
 
 
42
 
 
 
 
 
 
 
43
 
44
  = Instagram Feed main features include: =
45
 
46
- * Responsive Instagram feeds
47
- * SEO-friendly
48
- * Unlimited Instagram feeds
49
- * Hashtag-based Instagram feed
50
- * Instagram account-based feed
51
- * Instagram User meta data (image, bio, followers and posts number) display
52
- * Thumbnail Layout Instagram feeds
53
- * Image Browser Layout Instagram feeds
54
- * Sorting by options
55
- * Load More and pagination options for Instagram feeds
56
- * Elegant lightbox with media captions
57
- * 1 Lightbox transition effect
58
- * Instagram icon for redirecting to Instagram account/Instagram hashtag feed
59
  * Simple Instagram WordPress shortcode
60
- * Instagram WD PHP shortcode support
61
- * Instagram redirection possibility
62
- * Instagram Feed WD Widget
63
- * Original Instagram Image download
64
-
65
- Upgrade to [Instagram Feed Pro](https://web-dorado.com/products/wordpress-instagram-feed-wd.html) to add features:
66
-
67
- * Masonry Layout Instagram feeds
68
- * Blog Style Layout Instagram feeds
69
- * Image meta data (Instagram tag,image caption, comments, like) display
70
- * Mixed and multiple feeds (several Instagram hashtags and Instagram public accounts)
71
- * Fully Customizable Themes
72
- * Vertical/horizontal filmstrip in lightbox
73
- * HTML5 Video Support in Lightbox, Blog Style and Image Browser views for displaying Instagram videos
74
- * 15 Lightbox transition effects
75
- * Social sharing buttons (Facebook, Twitter, Google+, LinkedIn and Pinterest)
76
- * Infinite scroll for the feed (Similar to Instagram standard)
77
- * Instagram Comments display in Lightbox
78
- * Instagram Hashtag/ Instagram User account filtering options
79
- * Conditional Filters
 
 
 
 
80
 
81
  == Installation ==
82
 
83
  #### Thank you for your interest in Instagram Feed WD.
84
 
85
- ### Minimum requirements.
86
- * Wordpress 3.9+
87
- * PHP 5.2+
88
- * MySQL 5.x
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
 
90
- ### Perform a new installation
 
91
 
92
- After downloading the ZIP file of the Instagram Feed WD plugin,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
 
94
- 1. Log in to the administrator panel.
95
- 2. Go to Plugins Add > New > Upload.
96
- 3. Click "Choose file" ("Browse") and select the downloaded zip file of the Instagram Feed plugin.
97
- *For Mac Users*
98
- *Go to your Downloads folder and locate the folder with the Instagram Feed WD. Right-click on the folder and select Compress. Now you have a newly created .zip file which can be installed as described here.*
99
- 4. Click "Install Now" button.
100
- 5. Click "Activate Plugin" button for activating the Instagram Feed WD.
101
- 6. If the installation does not succeed, please contact us at [info@web-dorado.com](mailto:info@web-dorado.com).
102
 
103
  == Screenshots ==
104
 
@@ -110,6 +201,14 @@ After downloading the ZIP file of the Instagram Feed WD plugin,
110
 
111
  == Changelog ==
112
 
 
 
 
 
 
 
 
 
113
  = 1.2.11 =
114
  Changed: Scripts and styles are minified by default
115
  Changed: Font-Awesome has been updated to version 4.7.0 and loaded from CDN
@@ -328,194 +427,6 @@ Changed: User info styles
328
  = 1.0.0 =
329
  Initial version
330
 
331
- == Instagram Feed WD User Manual ==
332
-
333
- = Installation =
334
- Here are two ways of installing Instagram Feed WD: via WordPress backend and via FTP. Let’s discuss each case individually:
335
-
336
- Installing via WordPress
337
- Login to the WordPress Administrator Panel.
338
- Go to Plugins> Add New>Upload.
339
- Click Choose file button and select the zip folder of Instagram Feed WD plugin and press Install now button.
340
- Click Activate button.
341
-
342
- Installing via FTP
343
- Login to your hosting space via an FTP software, e.g. FileZilla.
344
- Unzip the downloaded Instagram Feed WD plugin folder without making any changes to the folder.
345
- Upload the Instagram plugin into the following location wp-content>wp-plugins.
346
- Login to the WordPress Administrator Panel.
347
- Activate Instagram Feed WD by going to Plugins and pressing Activate button.
348
-
349
- = Getting Instagram Access Token =
350
- In this section you can add FAQs.
351
-
352
- To start using Instagram Feed you will be required to first fill in Settings section. Go to Instagram Feed>Settings tab. Press Sign in with Instagram. Pressing the button Access Token and Username will be automatically generated for the current logged-in Instagram account (if user is not logged-in, a popup offering to sign in to Instagram will appear).
353
-
354
- Reset access token and username button resets default user data in plugin. Use that button to get access token for other Instagram user.
355
-
356
- = Creating an Instagram Feed =
357
- Creating a responsive Instagram feed is simple and easy with this user-friendly Instagram importer plugin.Go to Instagram Feed WD > Feed and press Add New. Here you can choose Instagram feed layout and manage lightbox options.From the lightbox options you can enable filmstrip, slideshow, and take full control how custom feed images, image galleries,pictures,Instagram gallery, and videos of this social network are displayed within the lightbox. You can enable autoplay to play photos and Instagram group images similar to an image slider. To get an Instagram slider appearance in the lightbox you’ll need to adjust the lightbox and image display settings.Lightbox works great with Instagram touch.The feed will be automatically updated once users share Instagram new images.The feeds support new Instagram carousel feature, and display the images of the responsive carousel.
358
-
359
-
360
- Create an Instagram feed based on one of the available layouts- Thumbnail, Masonry, Blog Style, Image Browser.
361
-
362
- = Thumbnails and Masonry Layouts =
363
- Since Thumbnails and Masonry Layout Instagram Feeds use identical set of properties we will discuss them jointly. When using Thumbnail view, which is almost the same as grid Instagram view, images get identical dimensions, whereas with Masonry view Instagram images and their properties (description, caption, hashtags) get displayed as a masonry feed. This is the option to display Instagram grids for WordPress powered websites.Feed Name. Provide a title for the Instagram feed. It will be useful to provide unique title since you will need it when inserting the Instagram feed or timeline into a page or post.
364
- Theme. Select one of the existing themes for the Instagram feed. All theme styling parameters will be applied.
365
- Feed Usernames and Hashtags. Provide all Instagram usernames and hashtags of the Instagram page you want to use within the Instagram feed. All all them using add button. Instagram Usernames should be provided within the following format: “webdorado”, whereas for Instagram hashtags you need to use the following format: #webdorado.
366
- Featured Image. One of the Instagram user avatars can be used as a featured image, select the relevant Instagram user in case you have more than one image. If you use Instagram hashtag feeds, you can set hashtag image as featured image.
367
- Feed Display Type. Select the pagination style.
368
- Pagination. Uses standard pagination with “next” and “previous” buttons with the styles set in corresponding theme.
369
- Load More. Loads specified number of images with Load More button. You can specify the number of image for further loads.
370
- Infinite Scroll. Uses Instagram standard. Images are being loaded as you scroll.
371
- Sort Images By. Choosing sorting option for the feed.
372
- Date- based on the date when images are uploaded to Instagram
373
- Likes- number of Instagram likes
374
- Comments- number of Instagram comments
375
- Random- randomizes displayed Instagram images.
376
- Order By. Choose between ascending and descending options.
377
- Follow on Instagram Button. Choose whether to display follow button next to Instagram usernames or not.
378
-
379
- Display Header. Displays featured Instagram image and feed title.
380
- Number of Photos to Display. Define the number of Instagram images which will be displayed before using loading/pagination options.
381
- Number of Photos to Load. Define the number of images which will be displayed with each Instagram Feed load/page.
382
- Number of Columns. Set a default number of image columns.
383
- Resort After Loading New Images(Load More and Infinite Scroll only). If this option is disabled, only newly loaded images will be sorted according to the value of Sort Images By field. If enabled, both newly loaded and already shown images will be resorted together.
384
- Show Likes. Choose whether to display the number of Instagram likes or not.
385
- Show Description. Check to display image descriptions.
386
- Show Comments. Check to display image Instagram comments.
387
- Show User info. Check to display a block with Instagram user information (username, profile image, etc.).
388
- Display User Bio. Check to display Instagram account-related bio.
389
- Display User Posts and Followers count. Check to display the number of Instagram posts and follower for each used Instagram account.
390
- Disable Mobile Layout. If you disable mobile layout the images will be displayed with defined number of columns regardless of the device in use. Otherwise the feed column number will be decreased for the smaller screen devices.
391
- Image Onclick. Select the action type when hitting the Instagram image. It can be redirected to Instagram (Instagram app for mobile Instagram users) or opened with a lightbox.
392
-
393
- = Blog Style Layout =Blog style layout is a perfect option if you want to post in Instagram and repost the content to WordPress website as a photography blog.With this Instagram HTML plugin the images get displayed with larger dimension with their captions, descriptions and Instagram hashtags below .
394
- Feed Name. Provide a title for the Instagram feed. It will be useful to provide unique title since you will need it when inserting the feed within a page or post.
395
- Theme. Select one of the existing themes for the feed. All theme styling parameters will be applied.
396
- Feed Usernames and Hashtags. Provide all Instagram usernames and Instagram hashtags you want to use within the feed. All all them using add button. Usernames should be provided within the following format: “webdorado”, whereas for hashtags you need to use the following format: #webdorado.
397
- Featured Image. One of the Instagram user avatars can be used as a featured image, select the relevant user in case you have more than one image. If you use hashtag feeds, you can set hashtag image as featured image.
398
- Feed Display Type. Select the pagination style.
399
- Pagination. Uses standard pagination with the styles set in corresponding theme.
400
- Load More. Loads specified number of images with Load More button. You can specify the number of images for further loads.
401
- Infinite Scroll. Uses Instagram standard. Images gets loaded as you scroll.
402
- Sort Images By. Choosing sorting option for the feed.
403
- Date- based on the date when images are uploaded to Instagram
404
- Likes- number of Instagram likes
405
- Comments- number of Instagram comments
406
- Random- randomizes displayed Instagram images.
407
- Order By. Choose between ascending and descending options.
408
- Follow on Instagram Button. Choose whether to display follow button next to Instagram usernames or not.
409
- Display Header. Displays featured image and feed title.
410
- Number of Photos to Display. Define the number of images which will be displayed before using loading/pagination options.
411
- Number of Photos to Load. Define the number of Instagram wall photos which will be displayed with each load/page.
412
- Resort After Loading New Images (Load More and Infinite Scroll only). If this option is disabled, only newly loaded images will be sorted according to the value of Sort Images By field. If enabled, both newly loaded and already shown images will be resorted together.
413
- Show Likes. Choose whether to display the number of Instagram likes or not.
414
- Show Description. Check to display image descriptions.
415
- Show Comments. Check to display Instagram image comments.
416
- Show User info. Check to display a block with Instagram user information (username, profile image, etc.).
417
- Display User Bio. Check to display Instagram account-related bio.
418
- Display User Posts and Followers count. Check to display the number of Instagram posts and follower for each used Instagram account.
419
- Image Onclick. Select the action type when hitting the image. It can be redirected to Instagram (Instagram app for website) or opened with a lightbox.
420
-
421
- = Image Browser =
422
- Image Browser displays a single large Instagram image with navigation buttons. You can display image properties below or above the image.
423
-
424
- Feed Name.Provide a title for the Instagram feed. It will be useful to provide unique title since you will need it when inserting the feed within a page or post.
425
- Theme. Select one of the existing themes for the Instagram feed. All theme styling parameters will be applied.
426
- Feed Usernames and Hashtags. Provide all Instagram usernames and Instagram hashtags you want to use within the feed. All all them using add button. Usernames should be provided within the following format: “webdorado”, whereas for hashtags you need to use the following format: #webdorado.
427
- Featured Image. One of the Instagram user avatars can be used as a featured image, select the relevant Instagram user in case you have more than one image.If you use hashtag feeds, you can set hashtag image as featured image.
428
- Sort Images By. Choosing sorting option for the feed.
429
- Date- based on the date when images are uploaded to Instagram
430
- Likes- number of Instagram likes
431
- Comments- number of Instagram comments
432
- Random- randomizes displayed Instagram images.
433
- Order By. Choose between ascending and descending options.
434
- Follow on Instagram Button. Choose whether to display follow button next to social media Instagram usernames or not.
435
-
436
- Display Header. Displays featured image and feed title.
437
- Number of Images To Preload. Define the number of images which will be preloaded for this view.
438
- Number of Images To Load Each Time. Define the number of images to be loaded after the first load.
439
- Show Likes. Choose whether to display the number of Instagram likes or not.
440
- Show Description. Check to display image descriptions.
441
- Show Comments. Check to display image Instagram comments.
442
- Show User info. Check to display a block with Instagram user information (username, profile image, etc.).
443
- Display User Bio. Check to display Instagram account-related bio.
444
- Display User Posts and Followers count. Check to display the number of Instagram posts and follower for each used Instagram account.
445
- Image Onclick. Select the action type when hitting the image. It can be redirected to Instagram or opened with a lightbox.
446
-
447
- = Lightbox Settings =
448
- Note: Lightbox shows only already loaded Instagram images. For viewing entire feeds of Instagram on website, you need to load all beautiful Instagram pictures and photos included within the Instagram Feed.
449
-
450
- Full width lightbox. Check to enable full width button.
451
- Lightbox Width. Set the lightbox width. Note that it will be used for the entire display, thus when you press to view the comment image will be resized to fit this width.
452
- Lightbox Height. Set the lightbox height.
453
- Lightbox Effect. Select a lightbox Instagram slide transition effect. Each lightbox can use only one effect. Or choose random to display random effect for every transition.
454
- Lightbox autoplay. Choose whether use slideshow autoplay or not. If you decide not to use, you can instead set up control buttons.
455
- Time Interval. Define the time interval between each slide when autoplay is turned on.
456
- Enable filmstrip in lightbox. Choose whether to enable filmstrip within the lightbox or not. Filmstrip alignment and styling can be edited in Themes section.
457
- Filmstrip size. Define the filmstrip height/width (depending whether you have horizontal or vertical view, the stated dimension will be applied to one property only).
458
- Show Next / Previous Buttons. Choose whether to display Next/Previous buttons for the slideshow or not.
459
- Display info by default. Choose whether to display image/video caption,Instagram tag, and author profile by default or not.
460
- Full width info. Enable the option to display image/video information within entire width of the lightbox otherwise it will be displayed based on the image container width.
461
- Enable Loop. When loop is enabled the user the slideshow will continue to the first image/video when pressing Next button.
462
- Enable Right Click Protection. When enabled user will not be able to Save images or videos using Right-click and pressing Save as button.
463
- Enable control buttons. Enable to display Play,Full Width, Instagram Comments and other buttons within lightbox.
464
- Enable info button. Enable to allow the user to read image metadata (caption and hashtags) when clicking on the button.
465
- Enable fullscreen. Enable button to display Instagram images in fullscreen mode.
466
- Enable comments. Enable a button to show or hide Instagram comments.
467
- Enable Original Image Display Button. Shows a link to the original Instagram post opened in the new window.
468
- Enable Download Button. Enable direct image/video download from lightbox.
469
- Enable Share Buttons. Enable social sharing buttons (Google+, Twitter, Facebook, Pinterest).
470
-
471
- = Publishing in a Page/Post =
472
- To import the created Instagram responsive feeds to a page or post you should use the shortcode. Open the page/post from the back end. Press on the Add Instagram Feed button within the editor. Then select the Instagram feed and press Insert button. You can also embed Instagram feeds to your posts or pages with an easier option. An alternative will be copying the shortcode from Instagram Feed WD> Feeds toolbar and pasting it within post/page. For non tech Instagram feed users this is a go-to option.CONDITIONAL FILTERS Conditional filters are used in cases if you want to insert filtered feeds of certain user(s) or hashtag(s). Conditional filters can be used for both displaying or skipping certain images. Filters are also applicable to mixed feeds. This is a a good way to display Instagram stream content that your users are most interested in to scroll through.
473
- Enable Conditional Filters. Enabling the option you will be able to add condition to the feed.Source of filtering. When creating a feed you provide username(s) and/or hashtag(s). All provided usernames and/or hashtags will be used as initial source. Filters will be applied to feed generated on this selection.Filter Logic. Filter logic allows displaying one of the options:
474
- And - Displays Instagram posts which correspond to all filters. Or - Displays Instagram posts which correspond to at least one of the filters.Nor - Hides Instagram posts which correspond to at least one of the filters. Add Condition. Write your condition, select condition type and click on Add New Condition. You can add as many conditions as you want repeating the process. You can add different condition types mixed together as well. Condition might be username (use @ before the username), hashtag (use # before the keyword), text or link (provide full URL) depending on condition type. Let’s discuss each condition type separately:
475
- Username. Useful when you have a feed based on hashtags. It will allow displaying feeds of only certain accounts using that hashtag. Let’s consider you have #panda and #animal hashtags, you can set @natgeo and @instapandacool to display images from these two accounts. Hashtag. Useful when you have a feed based on usernames. It will allow displaying feeds using only certain hashtag, e.g. if you have @bmw and @instacars as users and want to display only posts containing #bmw hashtag. Mention. This can be used both in cases of hashtag and usernames, e.g. displaying posts where @moby is mentioned. Description. This can be used both with hashtags and usernames. This can be a single keyword or word combination which should be used within the Instagram post description. Instagram Media Link. This is the shareable link of the Instagram post. The entire URL should be used for serving as a filter.Result. Here you will see all of the added filters which will be applied to your feed.This feature is widely used on Instagram for eCommerce websites, as it serves like an Instagram feed with analytics.
476
-
477
- = Publishing as a Widget =
478
- Go to Appearance > Widgets toolbar.
479
-
480
- Find Instagram Feed WD widget and assign it to a custom widget position on your site’s sidebar. Fill in the details below:
481
-
482
- Title. Provide a title for your Instagram Feed.
483
- Feed. Select the Instagram social feed which will be displayed as a widget.
484
- Number of Columns. Set the number of Instagram image columns (for thumbnail and masonry view).
485
- Number of images to display. Set a constant number of Instagram images which will be displayed with widget.
486
- Show Likes and Comments. Check the box to display Instagram likes and comments below view thumbnails.You can display Instagram widgets to as many widget areas as your theme supports.
487
-
488
- = Publishing by PHP function =
489
- It is also possible to insert the created Instagram feeds into the theme by calling it with PHP function. This feature is commonly used for adding the code to header.php for displaying Instagram feeds within header or footer position of the website. You can find the function located in Instagram Feed>Feeds section under PHP function column.
490
-
491
-
492
- = Styling with Themes =
493
- By default Instagram Feed WD comes with two default themes- Instagram and Elegant. You can use one of them or create your own theme. Newly created theme will be based on Default theme.
494
-
495
- General. Here you can add an Instagram theme title, change feed container and feed wrapper colors and styles.
496
- Feed Header. Edit styling of feed header(Instagram feed title and Instagram feed thumbnail)
497
- User data. Edit colors and styles of elements in Instagram users/hashtags section: Instagram usernames, profile images, bio text, number of posts and followers, follow button.
498
- Pagination. Change Load More button and Next/Previous button colors and styles. This does not apply to Instagram-like infinite load.
499
- Thumbnails. Edit standard Instagram thumbnail styles, Instagram image wrapper styles, image metadata styles, Instagram comments and likes styles.
500
- Masonry. Edit masonry view thumbnail styles, Instagram image wrapper styles, image metadata styles, Instagram comments and likes styles.
501
- Blog Style. Change blog view thumbnail and wrapper styles, Instagram image caption colors, comments and likes styles.
502
- Image Browser. Change Image Browser image and wrapper styles, Instagram image caption colors, comments and likes styles.
503
-
504
- = Advanced customizing options =
505
- Instagram Feed WD comes with detailed themes section, but if you want to make specific style changes you can also use
506
- Custom CSS field located in Instagram Feed> Settings.
507
- Custom Javascript can be found within the same location of Instagram WD.
508
-
509
- A Custom Javascript event is available for scripts to run after all Instagram feed images are loaded.
510
- Suppose you have feed with thumbnails view and besides displaying your feed you want to open up captions for some photos. You can achieve this by assigning our custom wdi_feed_loaded event to feed container and set callback function for that event.
511
- Here is quick example how to open up captions for images with 0,1,2,3 indexes.
512
- jQuery('#wdi_feed_0').on('wdi_feed_loaded',function(){
513
- jQuery('.wdi_photo_title').eq(0).trigger('click');
514
- jQuery('.wdi_photo_title').eq(1).trigger('click');
515
- jQuery('.wdi_photo_title').eq(2).trigger('click');
516
- jQuery('.wdi_photo_title').eq(3).trigger('click');
517
- });
518
-
519
 
520
 
521
 
4
  Requires at least: 3.9
5
  Requires PHP: 5.2
6
  Tested up to: 4.9
7
+ Stable tag: 1.2.12
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
19
 
20
  https://www.youtube.com/watch?v=KU4LJFxw0BY
21
 
22
+ 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. Instagram Feed WD’s settings and features will allow you to take full control over how to display the feeds and the content on your website.
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
 
26
+ == Benefits ==
27
+ * **Increase user engagement** - Engagement on Instagram is higher than on any other social platform. Keep your visitors engaged and significantly increase surfing time and visitor retention on your website.
28
+ * **Increase brand/blog awareness** - Let your site visitors get into conversation and connect with your blog or brand. Keep your visitors tuned and increase your blog’s/brand’s awareness.
29
+ * **Save your time** – Keep your posts authentic with content from Instagram without any manual work involved. Your feeds will be fresh and up to date and synced automatically.
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** - The team behind Instagram Feed WD provides timely and effective support to all its users. We keep standards high and response time low.
34
+ * **Resource efficient** - WordPress Instagram Feed WD 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.
35
 
 
36
 
 
37
 
38
+ == What’s in it ==
39
+
40
+ = CUSTOMIZABLE LAYOUTS =
41
+ Display the feeds in one of the available layouts Thumbnail, Image Browser, Masonry (Premium version), Blog Style(Premium version). Whether you want to have small sized image thumbnails or larger images displayed you’ll find the right layout for that. Customize layouts to get exactly what you need and display the metadata that’s most relevant for your niche.
42
 
43
+ = INSTAGRAM GALLERY =
44
+ Create Instagram galleries on your website by embedding entire timelines to your posts using a shortcode or the plugin’s Instagram widget on your sidebar.
45
 
46
+ = INDIVIDUAL AND MIXED FEEDS =
47
+ You can choose to show a single feed on your pages and posts, but you can make things more interesting and create mixed feeds (Premium version). With single feeds you can show posts from public Instagram accounts and single hashtag. Mixed feeds, on the other hand can contain multiple public Instagram accounts and multiple hashtags. A front end filter is available for mixed feeds (Premium version).
48
 
49
+ = FILTERED FEEDS =
50
+ Use Conditional Filters of the Instagram Feed WD plugin to display or skip certain content from the feeds by setting up a filter logic and condition types. Add custom condition types if necessary and fine-tune your feeds. Conditional Filters option is available for Premium version only.
51
 
52
+ = INSTAGRAM WIDGET =
53
+ Want to show Instagram feeds on your website sidebar? Do it quick and easy with the help of the Instagram Feed Widget.
54
+
55
+ = LIGHTBOX =
56
+ Instagram Feed WD features a powerful lightbox. It provides support for HTML5 video,15 transition effects (Premium version), filmstrip (Premium version) and carousel features. The lightbox works great with Instagram touch as well.
57
+
58
+ = SCROLL AND PAGINATION =
59
+ The plugin comes with a classic pagination with next and previous buttons. You can also choose the infinite scroll option (Premium version) to bring better user experience. This allows to view more images when scrolling the page down. You can set the the number of images you want to show per page.
60
+
61
+ = THEMES =
62
+ Choose from the two default themes offered by the plugin or create multifarious themes (Premium version) by customizing the colors, sizes and display styles. Instagram Feed WD allows you to have separate layout settings for each theme with custom settings for header, user data and pagination.
63
+
64
+ = SETTINGS/CUSTOMIZATION =
65
 
66
+ *Some customizations described here are available in Premium version. Please refer to feature summary for additional info.
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
97
+ * Blog Style Layout feeds
98
+ * Image metadata (Instagram tag,image caption, comments, like) display
99
+ * Mixed and multiple feeds (several hashtags and Instagram public accounts)
100
+ * Fully Customizable Themes
101
+ * Vertical/horizontal filmstrip in lightbox
102
+ * HTML5 Video Support in Lightbox
103
+ * Blog Style and Image Browser views for displaying Instagram videos
104
+ * 15 Lightbox transition effects
105
+ * Social sharing buttons (Facebook, Twitter, Google+, LinkedIn and Pinterest)
106
+ * Infinite scroll for the feed (Similar to Instagram standard)
107
+ * Instagram Comments display in Lightbox
108
+ * Instagram Hashtag/ User account filtering options
109
+ * Conditional Filters
110
+
111
+ ###IMPORTANT:
112
+ If you think you found a bug in Instagram Feed WD or wonder how to add Instagram to your website, or how to get Instagram plugin up and running, please check out [Support Forum](https://wordpress.org/support/plugin/wd-instagram-feed) . Additional information on how to download Instagram plugin to your website you can find in our user manual If you do not find a solution in the forum, do not hesitate to [click here to contact us](https://web-dorado.com/support/contact-us.html).
113
 
114
  == Installation ==
115
 
116
  #### Thank you for your interest in Instagram Feed WD.
117
 
118
+ Here are two ways of installing Instagram Feed WD: via WordPress backend and via FTP. Let’s discuss each case individually:
119
+
120
+ **Installing via WordPress**
121
+
122
+ Login to the WordPress Administrator Panel.
123
+ Go to Plugins> Add New>Upload.
124
+ Click Choose file button and select the zip folder of Instagram Feed WD plugin and press Install now button.
125
+ Click Activate button.
126
+
127
+ **Installing via FTP**
128
+
129
+ Login to your hosting space via an FTP software, e.g. FileZilla.
130
+ Unzip the downloaded Instagram Feed WD plugin folder without making any changes to the folder.
131
+ Upload the Instagram plugin into the following location wp-content>wp-plugins.
132
+ Login to the WordPress Administrator Panel.
133
+ Activate Instagram Feed WD by going to Plugins and pressing Activate button.
134
+
135
+ **Creating an Instagram Feed**
136
+
137
+ Creating a responsive Instagram feed is simple and easy with this user-friendly Instagram importer plugin.Go to Instagram Feed WD > Feed and press Add New. Here you can choose Instagram feed layout and manage lightbox options.From the lightbox options you can enable filmstrip, slideshow, and take full control how custom feed images, image galleries,pictures,Instagram gallery, and videos of this social network are displayed within the lightbox. You can enable autoplay to play photos and Instagram group images similar to an image slider. To get an Instagram slider appearance in the lightbox you’ll need to adjust the lightbox and image display settings.Lightbox works great with Instagram touch.The feed will be automatically updated once users share Instagram new images.The feeds support new Instagram carousel feature, and display the images of the responsive carousel.
138
+ Create an Instagram feed based on one of the available layouts- Thumbnail, Masonry, Blog Style, Image Browser.
139
+
140
+
141
+
142
+ == Frequently Asked Questions ==
143
+
144
+
145
+ = 1. How can i get my Instagram Access Token? =
146
 
147
+ To start using Instagram Feed you will be required to first fill in Settings section. Go to Instagram Feed>Settings tab. Press Sign in with Instagram. Pressing the button Access Token and Username will be automatically generated for the current logged-in Instagram account (if user is not logged-in, a popup offering to sign in to Instagram will appear).
148
+ Reset access token and username button resets default user data in plugin. Use that button to get access token for other Instagram user.
149
 
150
+ = 2. Can I display more than one feed on my website? =
151
+
152
+ Yes, you can add as many feeds as you want to your website and show them on posts and pages. Add the feeds to posts and pages by using the shortcode provided or choosing from the list by clicking on the Instagram Feed WD button.
153
+
154
+ = 3. Can I create mixed feeds with multiple accounts or hashtags? =
155
+
156
+ Yes, you can add as many feeds as you want to your website and show them on posts and pages. Add the feeds to posts and pages by using the shortcode provided or choosing from the list by clicking on the Instagram Feed WD button.
157
+
158
+ = 4. I see an invalid access Token error. What should I do? =
159
+
160
+ If you are seeing this alert message on your Instagram Feed WD plugin, please note, that Instagram access tokens expire from time to time. Therefore you need to get new from your Instagram account again.
161
+ Please sign in to your account and get a new token. Add it to Instagram Feed WD > Settings page, and if the token will still cause "Invalid access token" error, revoke access for the plugin here: www.instagram.com/accounts/manage_access/
162
+ and sign in again from Settings page.
163
+
164
+ = 5. I would like to display only the Instagram posts which have a certain hashtags. How can this be done? =
165
+
166
+ You can definitely do this! Please, go to the Instagram Feed WD > Feeds > Conditional Filters configure the settings by changing the “Filter Logic” and “Add Condition” options
167
+ Conditional filters are used in cases if you want to insert filtered feeds of certain user(s) or hashtag(s). Conditional filters can be used for both displaying or skipping certain images. Filters are also applicable to mixed feeds. This is a a good way to display Instagram stream content that your users are most interested in to scroll through.
168
+ Enabling the option you will be able to add condition to the feed.Source of filtering. When creating a feed you provide username(s) and/or hashtag(s). All provided usernames and/or hashtags will be used as initial source. Filters will be applied to feed generated on this selection.
169
+ Filter logic allows displaying one of the options:
170
+ And – Displays Instagram posts which correspond to all filters.
171
+ Or – Displays Instagram posts which correspond to at least one of the filters.
172
+ Nor – Hides Instagram posts which correspond to at least one of the filters.
173
+ Write your condition, select condition type and click on Add New Condition. You can add as many conditions as you want repeating the process. You can add different condition types mixed together as well. Condition might be username (use @ before the username), hashtag (use # before the keyword), text or link (provide full URL) depending on condition type.
174
+ Let’s discuss each condition type separately:
175
+ **Username.** Useful when you have a feed based on hashtags. It will allow displaying feeds of only certain accounts using that hashtag. Let’s consider you have #panda and #animal hashtags, you can set @natgeo and @instapandacool to display images from these two accounts.
176
+ **Hashtag.** Useful when you have a feed based on usernames. It will allow displaying feeds using only certain hashtag, e.g. if you have @bmw and @instacars as users and want to display only posts containing #bmw hashtag.
177
+ **Mention.** This can be used both in cases of hashtag and usernames, e.g. displaying posts where @moby is mentioned.
178
+ **Description.** This can be used both with hashtags and usernames. This can be a single keyword or word combination which should be used within the Instagram post description.
179
+ **Instagram Media Link.** This is the shareable link of the Instagram post. The entire URL should be used for serving as a filter.
180
+ **Result.** Here you will see all of the added filters which will be applied to your feed.This feature is widely used on Instagram for eCommerce websites, as it serves like an Instagram feed with analytics.
181
+
182
+
183
+ = 6. How can I publish the Instagram Feed widget on my website? =
184
+
185
+ Go to Appearance > Widgets toolbar.
186
+ Find Instagram Feed WD widget and assign it to a custom widget position on your site’s sidebar. Fill in the details below:
187
+ Title. Provide a title for your Instagram Feed.
188
+ Feed. Select the Instagram social feed which will be displayed as a widget.
189
+ Number of Columns. Set the number of Instagram image columns (for thumbnail and masonry view).
190
+ Number of images to display. Set a constant number of Instagram images which will be displayed with widget.
191
+ Show Likes and Comments. Check the box to display Instagram likes and comments below view thumbnails.You can display Instagram widgets to as many widget areas as your theme supports.
192
 
 
 
 
 
 
 
 
 
193
 
194
  == Screenshots ==
195
 
201
 
202
  == Changelog ==
203
 
204
+ = 1.2.12 =
205
+ New: Customize feed media resolution. Choose between optimal or custom resolutions, fast loading and higher quality.
206
+ Improved: Redesigned feed and theme editor screens.
207
+ Improved: More user-friendly names and descriptions of feed settings.
208
+ Improved: UX when access token is expired or have not been obtained yet.
209
+ Improved: UX when there are JS errors on front-end.
210
+ Fixed: Minor: do not include custom scroll bar JS if feed does not have popup.
211
+
212
  = 1.2.11 =
213
  Changed: Scripts and styles are minified by default
214
  Changed: Font-Awesome has been updated to version 4.7.0 and loaded from CDN
427
  = 1.0.0 =
428
  Initial version
429
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
430
 
431
 
432
 
update/wdi_update.php CHANGED
@@ -91,6 +91,9 @@ function wdi_update_diff($new_v, $old_v = 0.0){
91
  if(version_compare($old_v, "2.8", '<')){
92
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . WDI_FEED_TABLE . " MODIFY `feed_users` VARCHAR(2000) NOT NULL");
93
  }
 
 
 
94
 
95
 
96
 
91
  if(version_compare($old_v, "2.8", '<')){
92
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . WDI_FEED_TABLE . " MODIFY `feed_users` VARCHAR(2000) NOT NULL");
93
  }
94
+ if(version_compare($old_v, "2.12", '<')){
95
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . WDI_FEED_TABLE . " ADD `feed_resolution` varchar(30) NOT NULL DEFAULT 'optimal'");
96
+ }
97
 
98
 
99
 
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.11
7
  Author: WebDorado
8
  Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
9
  License: GPLv2 or later
@@ -21,7 +21,7 @@ define("WDI_META", "_".WDI_VAR."_meta");
21
  //define("wdi",'wdi');
22
  define('WDI_FEED_TABLE','wdi_feeds');
23
  define('WDI_THEME_TABLE','wdi_themes');
24
- define('WDI_VERSION','1.2.11');
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);
@@ -215,11 +215,11 @@ function wdi_register_settings(){
215
  $settings = wdi_get_settings();
216
 
217
  //adding configure section
218
- add_settings_section('wdi_configure_section',__('Configure', "wd-instagram-feed"),'wdi_configure_section_callback','settings_wdi');
219
 
220
  //adding customize section
221
 
222
- add_settings_section('wdi_customize_section', __('Customize', "wd-instagram-feed"), 'wdi_customize_section_callback', 'settings_wdi');
223
 
224
  //adding settings fileds form getted settings
225
  foreach($settings as $setting_name => $setting){
@@ -247,23 +247,41 @@ function wdi_register_settings(){
247
  add_action('admin_menu', 'WDI_instagram_menu', 9);
248
  add_action('admin_head-toplevel_page_wdi_feeds', 'wdi_check_necessary_params');
249
  function WDI_instagram_menu() {
 
 
250
  $menu_icon = WDI_URL .'/images/menu_icon.png';
251
  $min_feeds_capability = wdi_get_create_feeds_cap();
252
 
253
 
254
 
255
  $parent_slug = null;
256
- if( get_option( "wdi_subscribe_done" ) == 1 ){
257
- $parent_slug = "wdi_feeds";
258
- $settings_page = add_menu_page(__('Instagram Feed WD',"wd-instagram-feed"), __('Instagram Feed WD',"wd-instagram-feed"),$min_feeds_capability,'wdi_feeds','WDI_instagram_feeds_page',$menu_icon);
259
- }
260
- add_submenu_page($parent_slug,__('Feeds',"wd-instagram-feed"),__('Feeds',"wd-instagram-feed"),$min_feeds_capability,'wdi_feeds','WDI_instagram_feeds_page');
261
- add_submenu_page($parent_slug,__('Themes',"wd-instagram-feed"),__('Themes',"wd-instagram-feed"),$min_feeds_capability,'wdi_themes','WDI_instagram_themes_page');
262
- add_submenu_page($parent_slug,__('Settings',"wd-instagram-feed"),__('Settings',"wd-instagram-feed"),'manage_options','wdi_settings','WDI_instagram_settings_page');
263
- //add_submenu_page('overview_wdi',__('Featured Themes',"wd-instagram-feed"),__('Featured Themes',"wd-instagram-feed"),$min_feeds_capability,'wdi_featured_themes','wdi_featured_themes');
264
- //add_submenu_page('overview_wdi',__('Featured Plugins',"wd-instagram-feed"),__('Featured Plugins',"wd-instagram-feed"),$min_feeds_capability,'wdi_featured_plugins','wdi_featured_plugins');
265
- add_submenu_page($parent_slug,__('Pro Version',"wd-instagram-feed"),__('Pro Version',"wd-instagram-feed"),$min_feeds_capability,'wdi_licensing','WDI_instagram_licensing_page');
266
- add_submenu_page($parent_slug,__('Uninstall',"wd-instagram-feed"),__('Uninstall',"wd-instagram-feed"),'manage_options','wdi_uninstall','WDI_instagram_uninstall_page');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
267
  }
268
 
269
 
@@ -363,9 +381,9 @@ function wdi_load_scripts($hook){
363
  'invalid_hashtag' => __('Invalid hashtag', "wd-instagram-feed"),
364
  'hashtag_no_data' => __('This hashtag currently has no posts. Are you sure you want to add it?','wd-instagram-feed'),
365
  'only_one_user_or_hashtag'=> __('You can add only one username or hashtag in FREE Version', "wd-instagram-feed"),
366
- 'available_in_pro' => __('Available in PRO','wd-instagram-feed'),
367
- 'username_hashtag_multiple' => __('Combined Usernames/Hashtags are available only in PRO version'),
368
- 'theme_save_message_free' => __('Customizing Themes is available only in PRO version','wd-instagram-feed'),
369
  'invalid_url' => __('URL is not valid','wd-instagram-feed'),
370
  'selectConditionType' => __('Please Select Condition Type','wd-instagram-feed'),
371
  'and_descr' => __('Show Posts Which Have All Of The Conditions','wd-instagram-feed'),
@@ -406,10 +424,8 @@ function wdi_load_styles() {
406
  if($page === 'wdi_themes' || $page === 'wdi_feeds' || $page === 'wdi_settings' || $page==='wdi_uninstall'){
407
  if(WDI_MINIFY === true){
408
  wp_enqueue_style('wdi_backend', plugins_url('css/wdi_backend.min.css', __FILE__), array(), WDI_VERSION);
409
- wp_enqueue_style('wdi_tables', plugins_url('css/wdi_tables.min.css', __FILE__), array(), WDI_VERSION);
410
  }else{
411
  wp_enqueue_style('wdi_backend', plugins_url('css/wdi_backend.css', __FILE__), array(), WDI_VERSION);
412
- wp_enqueue_style('wdi_tables', plugins_url('css/wdi_tables.css', __FILE__), array(), WDI_VERSION);
413
  }
414
  }
415
  if($page === 'wdi_licensing'){
@@ -547,6 +563,13 @@ add_action('init', 'wdi_wd_lib_init', 9);
547
 
548
 
549
  function wdi_wd_lib_init(){
 
 
 
 
 
 
 
550
  if(!isset($_REQUEST['ajax']) && is_admin()){
551
 
552
  if( !class_exists("DoradoWeb") ){
@@ -662,7 +685,7 @@ function wdi_wd_lib_init(){
662
  "plugin_menu_icon" => WDI_URL . '/images/menu_icon.png',
663
  "deactivate" => true,
664
  "subscribe" => true,
665
- "custom_post" => 'wdi_feeds', // if true => edit.php?post_type=contact
666
  "menu_capability" => wdi_get_create_feeds_cap()
667
  );
668
 
@@ -674,9 +697,12 @@ function wdi_wd_lib_init(){
674
  }
675
  if (!function_exists('wdi_wd_bp_install_notice')) {
676
 
677
- if(get_option('wds_bk_notice_status')==='' || get_option('wds_bk_notice_status')==='1'){
678
- return;
 
 
679
  }
 
680
 
681
  function wdi_wd_bp_script_style() {
682
  $wd_bp_plugin_url = WDI_URL;
@@ -688,7 +714,6 @@ if (!function_exists('wdi_wd_bp_install_notice')) {
688
  wp_enqueue_style('wd_bck_install', $wd_bp_plugin_url . '/css/wd_bp_install.css');
689
  }
690
  }
691
- add_action('admin_enqueue_scripts', 'wdi_wd_bp_script_style');
692
 
693
  /**
694
  * Show notice to install backup plugin
@@ -746,6 +771,24 @@ if (!function_exists('wdi_wd_bp_install_notice')) {
746
 
747
  add_filter("plugin_row_meta", 'wdi_add_plugin_meta_links', 10, 2);
748
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
749
  function wdi_add_plugin_meta_links($meta_fields, $file){
750
 
751
  if(plugin_basename(__FILE__) == $file) {
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.12
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.12');
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);
215
  $settings = wdi_get_settings();
216
 
217
  //adding configure section
218
+ add_settings_section('wdi_configure_section',__('', "wd-instagram-feed"),'wdi_configure_section_callback','settings_wdi');
219
 
220
  //adding customize section
221
 
222
+ add_settings_section('wdi_customize_section', __('', "wd-instagram-feed"), 'wdi_customize_section_callback', 'settings_wdi');
223
 
224
  //adding settings fileds form getted settings
225
  foreach($settings as $setting_name => $setting){
247
  add_action('admin_menu', 'WDI_instagram_menu', 9);
248
  add_action('admin_head-toplevel_page_wdi_feeds', 'wdi_check_necessary_params');
249
  function WDI_instagram_menu() {
250
+ $wdi_options = wdi_get_options();
251
+
252
  $menu_icon = WDI_URL .'/images/menu_icon.png';
253
  $min_feeds_capability = wdi_get_create_feeds_cap();
254
 
255
 
256
 
257
  $parent_slug = null;
258
+ $wdi_uninstall = true;
259
+ $wdi_uninstall_success = get_option(WDI_OPT);
260
+ if(isset($wdi_uninstall_success["wdi_plugin_uninstalled"]) && $wdi_uninstall_success["wdi_plugin_uninstalled"]==="true"){
261
+ $wdi_uninstall = false;
262
+ }
263
+ if((!isset($wdi_options['wdi_access_token']) || empty($wdi_options['wdi_access_token'])) && $wdi_uninstall) {
264
+ if( get_option( "wdi_subscribe_done" ) == 1 ) {
265
+ $parent_slug = "wdi_feeds";
266
+ $settings_page = add_menu_page(__('Instagram Feed WD', "wd-instagram-feed"), __('Instagram Feed WD', "wd-instagram-feed"), $min_feeds_capability, 'wdi_settings', 'WDI_instagram_settings_page', $menu_icon);
267
+ }
268
+ add_submenu_page("wdi_settings", __('Settings', "wd-instagram-feed"), __('Settings', "wd-instagram-feed"), 'manage_options', 'wdi_settings', 'WDI_instagram_settings_page');
269
+ }else{
270
+ if( get_option( "wdi_subscribe_done" ) == 1 ){
271
+ $parent_slug = "wdi_feeds";
272
+ $settings_page = add_menu_page(__('Instagram Feed WD',"wd-instagram-feed"), __('Instagram Feed WD',"wd-instagram-feed"),$min_feeds_capability,'wdi_feeds','WDI_instagram_feeds_page',$menu_icon);
273
+ }
274
+
275
+
276
+ add_submenu_page($parent_slug,__('Feeds',"wd-instagram-feed"),__('Feeds',"wd-instagram-feed"),$min_feeds_capability,'wdi_feeds','WDI_instagram_feeds_page');
277
+ add_submenu_page($parent_slug,__('Themes',"wd-instagram-feed"),__('Themes',"wd-instagram-feed"),$min_feeds_capability,'wdi_themes','WDI_instagram_themes_page');
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,__('Pro Version',"wd-instagram-feed"),__('Pro Version',"wd-instagram-feed"),$min_feeds_capability,'wdi_licensing','WDI_instagram_licensing_page');
282
+ add_submenu_page($parent_slug,__('Uninstall',"wd-instagram-feed"),__('Uninstall',"wd-instagram-feed"),'manage_options','wdi_uninstall','WDI_instagram_uninstall_page');
283
+ }
284
+
285
  }
286
 
287
 
381
  'invalid_hashtag' => __('Invalid hashtag', "wd-instagram-feed"),
382
  'hashtag_no_data' => __('This hashtag currently has no posts. Are you sure you want to add it?','wd-instagram-feed'),
383
  'only_one_user_or_hashtag'=> __('You can add only one username or hashtag in FREE Version', "wd-instagram-feed"),
384
+ 'available_in_pro' => __('Available in Paid','wd-instagram-feed'),
385
+ 'username_hashtag_multiple' => __('Combined Usernames/Hashtags are available only in paid version'),
386
+ 'theme_save_message_free' => __('Customizing Themes is available only in Paid version','wd-instagram-feed'),
387
  'invalid_url' => __('URL is not valid','wd-instagram-feed'),
388
  'selectConditionType' => __('Please Select Condition Type','wd-instagram-feed'),
389
  'and_descr' => __('Show Posts Which Have All Of The Conditions','wd-instagram-feed'),
424
  if($page === 'wdi_themes' || $page === 'wdi_feeds' || $page === 'wdi_settings' || $page==='wdi_uninstall'){
425
  if(WDI_MINIFY === true){
426
  wp_enqueue_style('wdi_backend', plugins_url('css/wdi_backend.min.css', __FILE__), array(), WDI_VERSION);
 
427
  }else{
428
  wp_enqueue_style('wdi_backend', plugins_url('css/wdi_backend.css', __FILE__), array(), WDI_VERSION);
 
429
  }
430
  }
431
  if($page === 'wdi_licensing'){
563
 
564
 
565
  function wdi_wd_lib_init(){
566
+ $wdi_options = wdi_get_options();
567
+ $parent_slug = "wdi_feeds";
568
+ if(!isset($wdi_options['wdi_access_token']) || empty($wdi_options['wdi_access_token'])){
569
+ $parent_slug = "wdi_settings";
570
+ }
571
+
572
+
573
  if(!isset($_REQUEST['ajax']) && is_admin()){
574
 
575
  if( !class_exists("DoradoWeb") ){
685
  "plugin_menu_icon" => WDI_URL . '/images/menu_icon.png',
686
  "deactivate" => true,
687
  "subscribe" => true,
688
+ "custom_post" => $parent_slug, // if true => edit.php?post_type=contact
689
  "menu_capability" => wdi_get_create_feeds_cap()
690
  );
691
 
697
  }
698
  if (!function_exists('wdi_wd_bp_install_notice')) {
699
 
700
+ if(get_option('wd_bk_notice_status') !=='' && get_option('wd_bk_notice_status')!=='1') {
701
+
702
+ add_action('admin_enqueue_scripts', 'wdi_wd_bp_script_style');
703
+
704
  }
705
+
706
 
707
  function wdi_wd_bp_script_style() {
708
  $wd_bp_plugin_url = WDI_URL;
714
  wp_enqueue_style('wd_bck_install', $wd_bp_plugin_url . '/css/wd_bp_install.css');
715
  }
716
  }
 
717
 
718
  /**
719
  * Show notice to install backup plugin
771
 
772
  add_filter("plugin_row_meta", 'wdi_add_plugin_meta_links', 10, 2);
773
 
774
+ $wdi_token_error_flag = get_option("wdi_token_error_flag");
775
+ if($wdi_token_error_flag === "1"){
776
+ add_action('admin_notices', 'wdi_token_error_flag_notice');
777
+ }
778
+
779
+ function wdi_token_error_flag_notice(){
780
+ $screen_base = get_current_screen()->base;
781
+ if($screen_base === "dashboard" || $screen_base === "toplevel_page_wdi_feeds" || $screen_base === "instagram-feed-wd_page_wdi_themes" || $screen_base === "instagram-feed-wd_page_wdi_settings" || $screen_base === "instagram-feed-wd_page_wdi_uninstall" || $screen_base === "instagram-feed-wd_page_overview_wdi" || $screen_base === "instagram-feed-wd_page_wdi_updates" ){
782
+ $link_to_reset = "<a href='".site_url()."/wp-admin/admin.php?page=wdi_settings' >reset token</a>";
783
+ if($screen_base === "instagram-feed-wd_page_wdi_settings"){
784
+ $link_to_reset = "reset token";
785
+ }
786
+ echo "<div class='notice notice-error '>
787
+ <p>Instagram token is invalid or expired. Please ".$link_to_reset." and sign-in again to get new one.</p>
788
+ </div>";
789
+ }
790
+ }
791
+
792
  function wdi_add_plugin_meta_links($meta_fields, $file){
793
 
794
  if(plugin_basename(__FILE__) == $file) {