WD Instagram Feed – Instagram Gallery - Version 1.3.8

Version Description

Changed: Links to docs
Fixed: Compatibility with Elementor
Added: wdi_display_shortcode_button filter

Download this release

Release Info

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

Code changes from version 1.3.7 to 1.3.8

admin-functions.php CHANGED
@@ -694,7 +694,7 @@ function wdi_set_options_defaults()
694
  $settings = wdi_get_settings();
695
  foreach ($settings as $setting) {
696
  $settingDefault = isset($setting['default']) ? $setting['default'] : '';
697
- $db_options[$setting['name']] = $setting['default'];
698
  }
699
 
700
 
694
  $settings = wdi_get_settings();
695
  foreach ($settings as $setting) {
696
  $settingDefault = isset($setting['default']) ? $setting['default'] : '';
697
+ $db_options[$setting['name']] = $settingDefault;
698
  }
699
 
700
 
admin/views/WDIViewFeeds_wdi.php CHANGED
@@ -58,7 +58,7 @@ class WDIViewFeeds_wdi
58
  <span class="wdi_help_bar_text">
59
  <?php _e('This section allows you to create, edit and delete Feeds.', "wd-instagram-feed"); ?>
60
  <a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" class="wdi_hb_t_link" target="_blank"
61
- href="https://docs.10web.io/docs/wd-instagram-feed/creating-feed/creating-instagram-feed.html"><?php _e('Read More in User Guide', "wd-instagram-feed"); ?></a>
62
  </span>
63
  <div class="wdi_hb_buy_pro">
64
  <a class="wdi_support_link" href="https://wordpress.org/support/plugin/wd-instagram-feed" target="_blank">
@@ -525,7 +525,7 @@ public function genarateFeedViews()
525
  <span class="wdi_help_bar_text">
526
  <?php _e('Here You Can Change Feed Parameters.', "wd-instagram-feed"); ?>
527
  <a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" class="wdi_hb_t_link" target="_blank"
528
- href="https://docs.10web.io/docs/wd-instagram-feed/creating-feed/creating-instagram-feed.html"><?php _e('Read More in User Guide', "wd-instagram-feed"); ?></a>
529
  </span>
530
  <div class="wdi_hb_buy_pro">
531
  <a class="wdi_support_link" href="https://wordpress.org/support/plugin/wd-instagram-feed" target="_blank">
58
  <span class="wdi_help_bar_text">
59
  <?php _e('This section allows you to create, edit and delete Feeds.', "wd-instagram-feed"); ?>
60
  <a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" class="wdi_hb_t_link" target="_blank"
61
+ href="https://help.10web.io/hc/en-us/articles/360016497251-Creating-Instagram-Feed"><?php _e('Read More in User Guide', "wd-instagram-feed"); ?></a>
62
  </span>
63
  <div class="wdi_hb_buy_pro">
64
  <a class="wdi_support_link" href="https://wordpress.org/support/plugin/wd-instagram-feed" target="_blank">
525
  <span class="wdi_help_bar_text">
526
  <?php _e('Here You Can Change Feed Parameters.', "wd-instagram-feed"); ?>
527
  <a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" class="wdi_hb_t_link" target="_blank"
528
+ href="https://help.10web.io/hc/en-us/articles/360016497251-Creating-Instagram-Feed"><?php _e('Read More in User Guide', "wd-instagram-feed"); ?></a>
529
  </span>
530
  <div class="wdi_hb_buy_pro">
531
  <a class="wdi_support_link" href="https://wordpress.org/support/plugin/wd-instagram-feed" target="_blank">
admin/views/WDIViewSettings_wdi.php CHANGED
@@ -48,7 +48,7 @@ private $model;
48
  <span class="wdi_help_bar_text">
49
  <?php _e('This section allows you to set API parameters.', "wd-instagram-feed"); ?>
50
  <a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" class="wdi_hb_t_link" target="_blank"
51
- href="https://docs.10web.io/docs/wd-instagram-feed/getting-access-token"><?php _e('Read More in User Guide', "wd-instagram-feed"); ?></a>
52
  </span>
53
  <div class="wdi_hb_buy_pro">
54
  <a class="wdi_support_link" href="https://wordpress.org/support/plugin/wd-instagram-feed" target="_blank">
48
  <span class="wdi_help_bar_text">
49
  <?php _e('This section allows you to set API parameters.', "wd-instagram-feed"); ?>
50
  <a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" class="wdi_hb_t_link" target="_blank"
51
+ href="https://help.10web.io/hc/en-us/articles/360016277532-Configuring-Instagram-Access-Token"><?php _e('Read More in User Guide', "wd-instagram-feed"); ?></a>
52
  </span>
53
  <div class="wdi_hb_buy_pro">
54
  <a class="wdi_support_link" href="https://wordpress.org/support/plugin/wd-instagram-feed" target="_blank">
admin/views/WDIViewThemes_wdi.php CHANGED
@@ -28,7 +28,7 @@ class WDIViewThemes_wdi {
28
  <span class="wdi_help_bar_text">
29
  <?php _e('This section allows you to create, edit and delete Themes.', "wd-instagram-feed"); ?>
30
  <a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" class="wdi_hb_t_link" target="_blank"
31
- href="https://docs.10web.io/docs/wd-instagram-feed/theme-options"><?php _e('Read More in User Guide', "wd-instagram-feed"); ?></a>
32
  </span>
33
  <div class="wdi_hb_buy_pro">
34
  <a class="wdi_support_link" href="https://wordpress.org/support/plugin/wd-instagram-feed" target="_blank">
28
  <span class="wdi_help_bar_text">
29
  <?php _e('This section allows you to create, edit and delete Themes.', "wd-instagram-feed"); ?>
30
  <a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" class="wdi_hb_t_link" target="_blank"
31
+ href="https://help.10web.io/hc/en-us/articles/360016277832"><?php _e('Read More in User Guide', "wd-instagram-feed"); ?></a>
32
  </span>
33
  <div class="wdi_hb_buy_pro">
34
  <a class="wdi_support_link" href="https://wordpress.org/support/plugin/wd-instagram-feed" target="_blank">
admin/views/WDIViewWidget.php CHANGED
@@ -29,7 +29,7 @@ class WDIViewWidget {
29
  extract($args);
30
  $title = (isset($instance['title']) ? $instance['title'] : "");
31
  $feed_id = (isset($instance['feed_id']) ? $instance['feed_id'] : 0);
32
- $img_number = (isset($instance['img_number']) ? $instance['img_number'] : 2);
33
  $show_likes_comments = (isset($instance['show_likes_comments']) ? $instance['show_likes_comments'] : 0);
34
  $number_of_columns = (isset($instance['number_of_columns']) ? $instance['number_of_columns'] : 1);
35
  $enable_loading_buttons = (isset($instance['enable_loading_buttons']) ? $instance['enable_loading_buttons'] : 0);
29
  extract($args);
30
  $title = (isset($instance['title']) ? $instance['title'] : "");
31
  $feed_id = (isset($instance['feed_id']) ? $instance['feed_id'] : 0);
32
+ $img_number = (isset($instance['img_number']) ? $instance['img_number'] : 4);
33
  $show_likes_comments = (isset($instance['show_likes_comments']) ? $instance['show_likes_comments'] : 0);
34
  $number_of_columns = (isset($instance['number_of_columns']) ? $instance['number_of_columns'] : 1);
35
  $enable_loading_buttons = (isset($instance['enable_loading_buttons']) ? $instance['enable_loading_buttons'] : 0);
changelog.txt CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  = 1.3.7 =
2
  New: Option to disable loading of Font-Awesome by the plugin
3
  Fixed: PHP notice in feed preview
1
+ = 1.3.8 =
2
+ Changed: Links to docs
3
+ Fixed: Compatibility with Elementor
4
+ Added: wdi_display_shortcode_button filter
5
+
6
  = 1.3.7 =
7
  New: Option to disable loading of Font-Awesome by the plugin
8
  Fixed: PHP notice in feed preview
css/wdi_frontend.css CHANGED
@@ -953,4 +953,13 @@ div[id^="wdi_container"] p {
953
  box-shadow:none !important;
954
  color: #003569;
955
  text-decoration: none;
956
- }
 
 
 
 
 
 
 
 
 
953
  box-shadow:none !important;
954
  color: #003569;
955
  text-decoration: none;
956
+ }
957
+
958
+ .elementor-editor-active .wdi_front_overlay{
959
+ position: absolute;
960
+ top:0;
961
+ left: 0;
962
+ width: 100%;
963
+ height: 100%;
964
+ background-color: rgba(0,0,0,0.2);
965
+ }
css/wdi_frontend.min.css CHANGED
@@ -1 +1 @@
1
- .wdi_clear{clear:both}.wdi_feed_main_container .table{display:table}.wdi_feed_main_container .table-cell{display:table-cell}.wdi_feed_main_container .table-row{display:table-row}.wdi_feed_main_container{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.wdi_follow_button:hover{cursor:pointer}.wdi_hidden{display:none !important}.wdi_hover_off:hover{background-color:transparent !important}.wdi_cursor_off:hover{cursor:auto !important}.wdi_filter_active span{color:white}.wdi_disabled{visibility:hidden}.wdi_ajax_loading{position:absolute;width:50px;height:50px;left:0;right:0;bottom:-50px;margin:auto;z-index:100}.wdi_feed_main_container{width:100%;position:relative}.wdi_feed_main_container .wdi_img{margin:0}.wdi_feed_main_container .wdi_follow_btn{display:inline-block;background:0;border-style:solid;border-width:1px;font-weight:500;outline:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-appearance:none;vertical-align:text-bottom}.wdi_feed_main_container .wdi_follow_btn:hover{cursor:pointer}.wdi_feed_main_container .wdi_pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.wdi_feed_main_container .wdi_pagination_ctrl{display:inline-block}.wdi_feed_main_container .wdi_pagination_ctrl:hover{cursor:pointer}.wdi_feed_main_container .wdi_filter_icon span{display:block;font-size:25px;color:white}.wdi_feed_main_container .wdi_filter_icon span::before{width:20px;height:20px;position:absolute;opacity:1;right:0;left:0;top:0;bottom:0;margin:auto}.wdi_photo_img{position:relative;overflow:hidden}.wdi_photo_overlay{width:100%;height:100%;position:absolute;top:0;left:0;background-color:transparent;transition:all .1s ease}.wdi_thumb_icon i{display:none;transition:all .1s ease}.wdi_photo_overlay:hover .wdi_thumb_icon i{display:block}.wdi_feed_main_container .fa{font-family:FontAwesome !important;font-style:normal;width:auto}.wdi_media_info .fa:before{margin-right:6px}.wdi_spider_popup_loading{background-image:url("../images/ajax_loader.png");background-color:rgba(0,0,0,0);background-repeat:no-repeat;background-position:0 0;background-size:50px 50px;border:none !important;display:none;height:50px;left:50%;margin-left:-20px;margin-top:-20px;overflow:hidden;position:fixed;top:50%;width:50px;z-index:10102;-moz-animation:spin 2.5s infinite linear;-o-animation:spin 2.5s infinite linear;-webkit-animation:spin 2.5s infinite linear;animation:spin 2.5s infinite linear}.wdi_spider_popup_overlay{cursor:pointer;background-color:rgba(0,0,0,0.5);display:none;height:100%;left:0;position:fixed;top:0;width:100%;z-index:10100}div[id^="wdi_container"] p{padding:0 !important;margin:0 !important}.wdi_spider_popup_loading,.footer-list-block .bwp_gallery .wdi_spider_popup_loading,.footer-list-block .bwp_gallery_tags .wdi_spider_popup_loading{background-image:url("../images/ajax_loader.png");background-color:rgba(0,0,0,0);background-repeat:no-repeat;background-position:0 0;background-size:50px 50px;border:none !important;display:none;height:50px;left:50%;margin-left:-20px;margin-top:-20px;overflow:hidden;position:fixed;top:50%;width:50px;z-index:10102;-moz-animation:spin 2.5s infinite linear;-o-animation:spin 2.5s infinite linear;-webkit-animation:spin 2.5s infinite linear;animation:spin 2.5s infinite linear}.wdi_spider_ajax_loading{border:none !important;-moz-animation:spin 2.5s infinite linear;-o-animation:spin 2.5s infinite linear;-webkit-animation:spin 2.5s infinite linear;animation:spin 2.5s infinite linear}.wdi_spider_popup_overlay,.footer-list-block .bwp_gallery .wdi_spider_popup_overlay,.footer-list-block .bwp_gallery_tags .wdi_spider_popup_overlay{cursor:pointer;display:none;height:100%;left:0;position:fixed;top:0;width:100%;z-index:10100}.wdi_spider_popup_close,.wdi_spider_popup_close_fullscreen{-moz-box-sizing:content-box !important;box-sizing:content-box !important;cursor:pointer;display:table;line-height:0;position:absolute;z-index:11100}#wdi_spider_popup_left{left:0}#wdi_spider_popup_right{right:0}#wdi_spider_popup_left:hover,#wdi_spider_popup_right:hover{visibility:visible}#wdi_spider_popup_left:hover span{left:20px}#wdi_spider_popup_right:hover span{left:auto;right:20px}#wdi_spider_popup_left,#wdi_spider_popup_right{background:transparent url("../images/blank.gif") repeat scroll 0 0;bottom:35%;cursor:pointer;display:inline;height:30%;outline:medium none;position:absolute;width:35%;z-index:10130}#wdi_spider_popup_left-ico,#wdi_spider_popup_right-ico{-moz-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:table;left:-9999px;line-height:0;margin-top:-15px;position:absolute;top:50%;z-index:10135}.wdi_image_info_container1{height:100%;margin:0 auto;position:absolute;width:100%}.wdi_image_info_container2{display:table;height:100%;margin:0 auto;position:absolute;width:100%}.wdi_image_info_spun{display:table-cell;height:100%;left:0;top:0;width:100%;overflow:hidden;position:relative}.wdi_image_info{display:inline-block;position:relative;text-decoration:none;word-wrap:break-word;z-index:11}.wdi_photo_wrap_inner{text-align:center}.wdi_feed_item[wdi_type="slideshow"] .fa-clone{-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-o-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.wdi_js_error_no_animate,.wdi_token_error{text-align:center;font-size:14px}.wdi_js_error{text-align:center;-webkit-animation-name:wdi_js_error;-moz-animation-name:wdi_js_error;-o-animation-name:wdi_js_error;animation-name:wdi_js_error;-webkit-animation-duration:.5s;-moz-animation-duration:.5s;-o-animation-duration:.5s;animation-duration:.5s;-webkit-animation-delay:20s;-moz-animation-delay:20s;-o-animation-delay:20s;animation-delay:20s;-webkit-animation-fill-mode:forwards;-moz-animation-fill-mode:forwards;-o-animation-fill-mode:forwards;animation-fill-mode:forwards;color:#c00;-webkit-transform:scale(0);-moz-transform:scale(0);-ms-transform:scale(0);-o-transform:scale(0);transform:scale(0);font-size:12px}@keyframes wdi_js_error{from{visibility:hidden;-webkit-transform:scale(0);-moz-transform:scale(0);-ms-transform:scale(0);-o-transform:scale(0);transform:scale(0)}to{visibility:visible;-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1)}}.wdi_layout_th .wdi_feed_container{min-width:160px;margin:0 auto}.wdi_layout_th .wdi_feed_wrapper{margin:0 auto}.wdi_layout_th .wdi_header_wrapper{display:inline-table}.wdi_layout_th .wdi_header_img_wrap,.wdi_users_img_wrap{overflow:hidden}.wdi_layout_th .wdi_header_text{display:table-cell;vertical-align:middle}.wdi_layout_th .wdi_single_user{display:inline-block;float:left}.wdi_layout_th .wdi_user_img_wrap{display:inline-block;float:left;position:relative}.wdi_layout_th .wdi_header_user_text{display:inline-block;float:left;width:100%}.wdi_layout_th .wdi_followers,.wdi_layout_th .wdi_posts{display:inline-block}.wdi_layout_th .wdi_feed_container .wdi_feed_info .wdi_header_user_text h3{display:inline-block;text-transform:none}.wdi_layout_th .wdi_header_user_text h3:hover{cursor:pointer}.wdi_layout_th .wdi_user_img_wrap img{overflow:hidden;display:block;margin:0}.wdi_layout_th .wdi_feed_container .wdi_feed_info .wdi_header_user_text h3{margin-left:10px;margin-bottom:0;padding:0}.wdi_layout_th .wdi_feed_container .wdi_feed_info .wdi_media_info p{margin-top:0;margin-bottom:0}.wdi_layout_th .wdi_user_controls{margin-left:0;display:inline-block;vertical-align:middle}.wdi_layout_th .wdi_bio{float:left}.wdi_layout_th .wdi_feed_container .wdi_feed_info .wdi_header_user_text .wdi_followers{margin-left:10px}.wdi_layout_th .wdi_filter_overlay{position:absolute;z-index:2;top:0;left:0;opacity:0;transition:opacity .1s ease}.wdi_layout_th .wdi_filter_overlay:hover{opacity:.9;cursor:pointer}.wdi_layout_th .wdi_photo_wrap{position:relative;display:inline-block;overflow:hidden;box-sizing:content-box}.wdi_layout_th .wdi_photo_wrap:after{padding-top:100%;display:block;content:""}.wdi_layout_th .wdi_photo_wrap_inner{position:absolute;top:0;bottom:0;left:0;right:0}.wdi_layout_th .wdi_photo_img{width:100%;height:100%}.wdi_layout_th .wdi_img{display:block;position:absolute;top:50%;left:50%;max-width:none;-webkit-transform:translateX(-50%) translateY(-50%);-moz-transform:translateX(-50%) translateY(-50%);-ms-transform:translateX(-50%) translateY(-50%);-o-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}.wdi_layout_th .wdi_shape_portrait .wdi_img,.wdi_layout_th .wdi_shape_square .wdi_img{width:100%;height:auto}.wdi_layout_th .wdi_shape_landscape .wdi_img{height:100% !important;width:auto}.wdi_layout_th .wdi_feed_item{display:inline-block;vertical-align:top;overflow:hidden}.wdi_layout_th .wdi_photo_meta{text-align:center;padding-bottom:10px;line-height:1.4}.wdi_layout_th .wdi_thumb_comments i,.wdi_layout_th .wdi_thumb_likes i{width:100%}.wdi_layout_th .wdi_photo_title{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:90%;margin-left:5%;margin-right:5%;text-align:center}.wdi_layout_th .wdi_photo_title:hover{cursor:pointer}@-moz-keyframes wdi_rotate{from{transform:rotate(0)}to{transform:rotate(360deg)}}@-o-keyframes wdi_rotate{from{transform:rotate(0)}to{transform:rotate(360deg)}}@-ms-keyframes wdi_rotate{from{transform:rotate(0)}to{transform:rotate(360deg)}}@-webkit-keyframes wdi_rotate{from{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes wdi_rotate{from{transform:rotate(0)}to{transform:rotate(360deg)}}.wdi_layout_th .wdi_load_more_spinner{display:table-cell;vertical-align:middle;-webkit-animation:wdi_rotate 1.5s infinite;-moz-animation:wdi_rotate 1.5s infinite;-o-animation:wdi_rotate 1.5s infinite;animation:wdi_rotate 1.5s infinite}.wdi_layout_th .wdi_load_more,.wdi_layout_th .wdi_spinner{padding:10px;transition:all .2s ease}.wdi_layout_th .wdi_load_more_wrap,.wdi_layout_th .wdi_spinner_wrap{display:inline-table;box-sizing:border-box}.wdi_layout_th .wdi_load_more_wrap_inner,.wdi_layout_th .wdi_spinner_wrap_inner{display:table-row;text-align:center}.wdi_layout_th .wdi_load_more_text{display:table-cell;vertical-align:middle}.wdi_layout_th .wdi_load_more_text img{float:left}.wdi_layout_th .wdi_load_more_wrap:hover{cursor:pointer}.wdi_layout_th .wdi_photo_overlay:hover{cursor:pointer}.wdi_layout_th .wdi_photo_overlay i{opacity:1}.wdi_layout_th .wdi_load_more_container{display:inline-block}.wdi_layout_ib .wdi_feed_container{min-width:160px;margin:0 auto}.wdi_layout_ib .wdi_feed_wrapper{margin:0 auto}.wdi_layout_ib .wdi_header_wrapper{display:inline-table}.wdi_layout_ib .wdi_header_img_wrap,.wdi_layout_ib .wdi_users_img_wrap{overflow:hidden}.wdi_layout_ib .wdi_header_text{display:table-cell;vertical-align:middle}.wdi_layout_ib .wdi_single_user{display:inline-block;float:left}.wdi_layout_ib .wdi_user_img_wrap{display:inline-block;float:left;position:relative}.wdi_layout_ib .wdi_header_user_text{display:inline-block;float:left;width:100%}.wdi_layout_ib .wdi_followers,.wdi_layout_ib .wdi_posts{display:inline-block}.wdi_layout_ib .wdi_feed_container .wdi_feed_info .wdi_header_user_text h3{display:inline-block;text-transform:none}.wdi_layout_ib .wdi_header_user_text h3:hover{cursor:pointer}.wdi_layout_ib .wdi_user_img_wrap img{overflow:hidden;display:block;margin:0}.wdi_layout_ib .wdi_feed_container .wdi_feed_info .wdi_header_user_text h3{margin-left:10px;margin-bottom:0;padding:0}.wdi_layout_ib .wdi_feed_container .wdi_feed_info .wdi_media_info p{margin-top:0;margin-bottom:0}.wdi_layout_ib .wdi_user_controls{margin-left:0;display:inline-block;vertical-align:middle}.wdi_layout_ib .wdi_bio{float:left}.wdi_layout_ib .wdi_feed_container .wdi_feed_info .wdi_header_user_text .wdi_followers{margin-left:10px}.wdi_layout_ib .wdi_filter_overlay{position:absolute;z-index:2;top:0;left:0;opacity:0;transition:opacity .1s ease}.wdi_layout_ib .wdi_filter_overlay:hover{opacity:.9;cursor:pointer}.wdi_layout_ib .wdi_photo_wrap{overflow:hidden;box-sizing:content-box}.wdi_layout_ib .wdi_img{width:100%;display:block}.wdi_layout_ib .wdi_feed_item{display:inline-block;overflow:hidden}.wdi_layout_ib .wdi_photo_meta{text-align:center;padding-bottom:10px}.wdi_layout_ib .wdi_thumb_comments i,.wdi_layout_ib .wdi_thumb_likes i{width:100%}.wdi_layout_ib .wdi_photo_title{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:90%;margin-left:5%;margin-right:5%;text-align:center}.wdi_layout_ib .wdi_photo_title:hover{cursor:pointer}.wdi_layout_ib .wdi_load_more{padding:10px;transition:all .2s ease}.wdi_layout_ib .wdi_load_more_wrap{display:inline-table;box-sizing:border-box}.wdi_layout_ib .wdi_load_more_wrap_inner{display:table-row;text-align:center}.wdi_layout_ib .wdi_load_more_text{display:table-cell;vertical-align:middle}.wdi_layout_ib .wdi_load_more_text img{float:left}.wdi_layout_ib .wdi_load_more_wrap:hover{cursor:pointer}.wdi_layout_ib .wdi_photo_overlay:hover{cursor:pointer}.wdi_layout_ib .wdi_load_more_container{display:inline-block}.wdi_embed_frame video{display:inline-block}.wdi_image_container img{display:inline}.wdi_carousel_btn_container{height:20px;position:absolute;width:100%;bottom:65px;z-index:10150;font-size:0}.wdi_carousel_btn_container span{background:rgba(255,255,255,0.5);width:10px;height:10px;display:inline-block;border-radius:5px;cursor:pointer;margin-right:9px;position:relative;left:0;transition:left .3s;-webkit-transition:left .3s;-moz-transition:left .3s}.wdi_carousel_btn_container span:last-child{margin-right:0}.wdi_carousel_btn_container span.active{background:#fff}.wdi_carousel_btn_container span.small{width:7px;height:7px;margin-right:12px;top:-2px}.wdi_carousel_btn_content{display:inline-block;overflow:hidden;white-space:nowrap;position:relative;padding:8px 9px;background:rgba(0,0,0,0.17);border-radius:21px}.wdi_image_container .carousel_media:not(.active){display:none}.wdi_website{width:100%;display:block;float:left}.wdi_website a{box-shadow:none !important;color:#003569;text-decoration:none}
1
+ .wdi_clear{clear:both}.wdi_feed_main_container .table{display:table}.wdi_feed_main_container .table-cell{display:table-cell}.wdi_feed_main_container .table-row{display:table-row}.wdi_feed_main_container{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.wdi_follow_button:hover{cursor:pointer}.wdi_hidden{display:none !important}.wdi_hover_off:hover{background-color:transparent !important}.wdi_cursor_off:hover{cursor:auto !important}.wdi_filter_active span{color:white}.wdi_disabled{visibility:hidden}.wdi_ajax_loading{position:absolute;width:50px;height:50px;left:0;right:0;bottom:-50px;margin:auto;z-index:100}.wdi_feed_main_container{width:100%;position:relative}.wdi_feed_main_container .wdi_img{margin:0}.wdi_feed_main_container .wdi_follow_btn{display:inline-block;background:0;border-style:solid;border-width:1px;font-weight:500;outline:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-appearance:none;vertical-align:text-bottom}.wdi_feed_main_container .wdi_follow_btn:hover{cursor:pointer}.wdi_feed_main_container .wdi_pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.wdi_feed_main_container .wdi_pagination_ctrl{display:inline-block}.wdi_feed_main_container .wdi_pagination_ctrl:hover{cursor:pointer}.wdi_feed_main_container .wdi_filter_icon span{display:block;font-size:25px;color:white}.wdi_feed_main_container .wdi_filter_icon span::before{width:20px;height:20px;position:absolute;opacity:1;right:0;left:0;top:0;bottom:0;margin:auto}.wdi_photo_img{position:relative;overflow:hidden}.wdi_photo_overlay{width:100%;height:100%;position:absolute;top:0;left:0;background-color:transparent;transition:all .1s ease}.wdi_thumb_icon i{display:none;transition:all .1s ease}.wdi_photo_overlay:hover .wdi_thumb_icon i{display:block}.wdi_feed_main_container .fa{font-family:FontAwesome !important;font-style:normal;width:auto}.wdi_media_info .fa:before{margin-right:6px}.wdi_spider_popup_loading{background-image:url("../images/ajax_loader.png");background-color:rgba(0,0,0,0);background-repeat:no-repeat;background-position:0 0;background-size:50px 50px;border:none !important;display:none;height:50px;left:50%;margin-left:-20px;margin-top:-20px;overflow:hidden;position:fixed;top:50%;width:50px;z-index:10102;-moz-animation:spin 2.5s infinite linear;-o-animation:spin 2.5s infinite linear;-webkit-animation:spin 2.5s infinite linear;animation:spin 2.5s infinite linear}.wdi_spider_popup_overlay{cursor:pointer;background-color:rgba(0,0,0,0.5);display:none;height:100%;left:0;position:fixed;top:0;width:100%;z-index:10100}div[id^="wdi_container"] p{padding:0 !important;margin:0 !important}.wdi_spider_popup_loading,.footer-list-block .bwp_gallery .wdi_spider_popup_loading,.footer-list-block .bwp_gallery_tags .wdi_spider_popup_loading{background-image:url("../images/ajax_loader.png");background-color:rgba(0,0,0,0);background-repeat:no-repeat;background-position:0 0;background-size:50px 50px;border:none !important;display:none;height:50px;left:50%;margin-left:-20px;margin-top:-20px;overflow:hidden;position:fixed;top:50%;width:50px;z-index:10102;-moz-animation:spin 2.5s infinite linear;-o-animation:spin 2.5s infinite linear;-webkit-animation:spin 2.5s infinite linear;animation:spin 2.5s infinite linear}.wdi_spider_ajax_loading{border:none !important;-moz-animation:spin 2.5s infinite linear;-o-animation:spin 2.5s infinite linear;-webkit-animation:spin 2.5s infinite linear;animation:spin 2.5s infinite linear}.wdi_spider_popup_overlay,.footer-list-block .bwp_gallery .wdi_spider_popup_overlay,.footer-list-block .bwp_gallery_tags .wdi_spider_popup_overlay{cursor:pointer;display:none;height:100%;left:0;position:fixed;top:0;width:100%;z-index:10100}.wdi_spider_popup_close,.wdi_spider_popup_close_fullscreen{-moz-box-sizing:content-box !important;box-sizing:content-box !important;cursor:pointer;display:table;line-height:0;position:absolute;z-index:11100}#wdi_spider_popup_left{left:0}#wdi_spider_popup_right{right:0}#wdi_spider_popup_left:hover,#wdi_spider_popup_right:hover{visibility:visible}#wdi_spider_popup_left:hover span{left:20px}#wdi_spider_popup_right:hover span{left:auto;right:20px}#wdi_spider_popup_left,#wdi_spider_popup_right{background:transparent url("../images/blank.gif") repeat scroll 0 0;bottom:35%;cursor:pointer;display:inline;height:30%;outline:medium none;position:absolute;width:35%;z-index:10130}#wdi_spider_popup_left-ico,#wdi_spider_popup_right-ico{-moz-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:table;left:-9999px;line-height:0;margin-top:-15px;position:absolute;top:50%;z-index:10135}.wdi_image_info_container1{height:100%;margin:0 auto;position:absolute;width:100%}.wdi_image_info_container2{display:table;height:100%;margin:0 auto;position:absolute;width:100%}.wdi_image_info_spun{display:table-cell;height:100%;left:0;top:0;width:100%;overflow:hidden;position:relative}.wdi_image_info{display:inline-block;position:relative;text-decoration:none;word-wrap:break-word;z-index:11}.wdi_photo_wrap_inner{text-align:center}.wdi_feed_item[wdi_type="slideshow"] .fa-clone{-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-o-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.wdi_js_error_no_animate,.wdi_token_error{text-align:center;font-size:14px}.wdi_js_error{text-align:center;-webkit-animation-name:wdi_js_error;-moz-animation-name:wdi_js_error;-o-animation-name:wdi_js_error;animation-name:wdi_js_error;-webkit-animation-duration:.5s;-moz-animation-duration:.5s;-o-animation-duration:.5s;animation-duration:.5s;-webkit-animation-delay:20s;-moz-animation-delay:20s;-o-animation-delay:20s;animation-delay:20s;-webkit-animation-fill-mode:forwards;-moz-animation-fill-mode:forwards;-o-animation-fill-mode:forwards;animation-fill-mode:forwards;color:#c00;-webkit-transform:scale(0);-moz-transform:scale(0);-ms-transform:scale(0);-o-transform:scale(0);transform:scale(0);font-size:12px}@keyframes wdi_js_error{from{visibility:hidden;-webkit-transform:scale(0);-moz-transform:scale(0);-ms-transform:scale(0);-o-transform:scale(0);transform:scale(0)}to{visibility:visible;-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1)}}.wdi_layout_th .wdi_feed_container{min-width:160px;margin:0 auto}.wdi_layout_th .wdi_feed_wrapper{margin:0 auto}.wdi_layout_th .wdi_header_wrapper{display:inline-table}.wdi_layout_th .wdi_header_img_wrap,.wdi_users_img_wrap{overflow:hidden}.wdi_layout_th .wdi_header_text{display:table-cell;vertical-align:middle}.wdi_layout_th .wdi_single_user{display:inline-block;float:left}.wdi_layout_th .wdi_user_img_wrap{display:inline-block;float:left;position:relative}.wdi_layout_th .wdi_header_user_text{display:inline-block;float:left;width:100%}.wdi_layout_th .wdi_followers,.wdi_layout_th .wdi_posts{display:inline-block}.wdi_layout_th .wdi_feed_container .wdi_feed_info .wdi_header_user_text h3{display:inline-block;text-transform:none}.wdi_layout_th .wdi_header_user_text h3:hover{cursor:pointer}.wdi_layout_th .wdi_user_img_wrap img{overflow:hidden;display:block;margin:0}.wdi_layout_th .wdi_feed_container .wdi_feed_info .wdi_header_user_text h3{margin-left:10px;margin-bottom:0;padding:0}.wdi_layout_th .wdi_feed_container .wdi_feed_info .wdi_media_info p{margin-top:0;margin-bottom:0}.wdi_layout_th .wdi_user_controls{margin-left:0;display:inline-block;vertical-align:middle}.wdi_layout_th .wdi_bio{float:left}.wdi_layout_th .wdi_feed_container .wdi_feed_info .wdi_header_user_text .wdi_followers{margin-left:10px}.wdi_layout_th .wdi_filter_overlay{position:absolute;z-index:2;top:0;left:0;opacity:0;transition:opacity .1s ease}.wdi_layout_th .wdi_filter_overlay:hover{opacity:.9;cursor:pointer}.wdi_layout_th .wdi_photo_wrap{position:relative;display:inline-block;overflow:hidden;box-sizing:content-box}.wdi_layout_th .wdi_photo_wrap:after{padding-top:100%;display:block;content:""}.wdi_layout_th .wdi_photo_wrap_inner{position:absolute;top:0;bottom:0;left:0;right:0}.wdi_layout_th .wdi_photo_img{width:100%;height:100%}.wdi_layout_th .wdi_img{display:block;position:absolute;top:50%;left:50%;max-width:none;-webkit-transform:translateX(-50%) translateY(-50%);-moz-transform:translateX(-50%) translateY(-50%);-ms-transform:translateX(-50%) translateY(-50%);-o-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}.wdi_layout_th .wdi_shape_portrait .wdi_img,.wdi_layout_th .wdi_shape_square .wdi_img{width:100%;height:auto}.wdi_layout_th .wdi_shape_landscape .wdi_img{height:100% !important;width:auto}.wdi_layout_th .wdi_feed_item{display:inline-block;vertical-align:top;overflow:hidden}.wdi_layout_th .wdi_photo_meta{text-align:center;padding-bottom:10px;line-height:1.4}.wdi_layout_th .wdi_thumb_comments i,.wdi_layout_th .wdi_thumb_likes i{width:100%}.wdi_layout_th .wdi_photo_title{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:90%;margin-left:5%;margin-right:5%;text-align:center}.wdi_layout_th .wdi_photo_title:hover{cursor:pointer}@-moz-keyframes wdi_rotate{from{transform:rotate(0)}to{transform:rotate(360deg)}}@-o-keyframes wdi_rotate{from{transform:rotate(0)}to{transform:rotate(360deg)}}@-ms-keyframes wdi_rotate{from{transform:rotate(0)}to{transform:rotate(360deg)}}@-webkit-keyframes wdi_rotate{from{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes wdi_rotate{from{transform:rotate(0)}to{transform:rotate(360deg)}}.wdi_layout_th .wdi_load_more_spinner{display:table-cell;vertical-align:middle;-webkit-animation:wdi_rotate 1.5s infinite;-moz-animation:wdi_rotate 1.5s infinite;-o-animation:wdi_rotate 1.5s infinite;animation:wdi_rotate 1.5s infinite}.wdi_layout_th .wdi_load_more,.wdi_layout_th .wdi_spinner{padding:10px;transition:all .2s ease}.wdi_layout_th .wdi_load_more_wrap,.wdi_layout_th .wdi_spinner_wrap{display:inline-table;box-sizing:border-box}.wdi_layout_th .wdi_load_more_wrap_inner,.wdi_layout_th .wdi_spinner_wrap_inner{display:table-row;text-align:center}.wdi_layout_th .wdi_load_more_text{display:table-cell;vertical-align:middle}.wdi_layout_th .wdi_load_more_text img{float:left}.wdi_layout_th .wdi_load_more_wrap:hover{cursor:pointer}.wdi_layout_th .wdi_photo_overlay:hover{cursor:pointer}.wdi_layout_th .wdi_photo_overlay i{opacity:1}.wdi_layout_th .wdi_load_more_container{display:inline-block}.wdi_layout_ib .wdi_feed_container{min-width:160px;margin:0 auto}.wdi_layout_ib .wdi_feed_wrapper{margin:0 auto}.wdi_layout_ib .wdi_header_wrapper{display:inline-table}.wdi_layout_ib .wdi_header_img_wrap,.wdi_layout_ib .wdi_users_img_wrap{overflow:hidden}.wdi_layout_ib .wdi_header_text{display:table-cell;vertical-align:middle}.wdi_layout_ib .wdi_single_user{display:inline-block;float:left}.wdi_layout_ib .wdi_user_img_wrap{display:inline-block;float:left;position:relative}.wdi_layout_ib .wdi_header_user_text{display:inline-block;float:left;width:100%}.wdi_layout_ib .wdi_followers,.wdi_layout_ib .wdi_posts{display:inline-block}.wdi_layout_ib .wdi_feed_container .wdi_feed_info .wdi_header_user_text h3{display:inline-block;text-transform:none}.wdi_layout_ib .wdi_header_user_text h3:hover{cursor:pointer}.wdi_layout_ib .wdi_user_img_wrap img{overflow:hidden;display:block;margin:0}.wdi_layout_ib .wdi_feed_container .wdi_feed_info .wdi_header_user_text h3{margin-left:10px;margin-bottom:0;padding:0}.wdi_layout_ib .wdi_feed_container .wdi_feed_info .wdi_media_info p{margin-top:0;margin-bottom:0}.wdi_layout_ib .wdi_user_controls{margin-left:0;display:inline-block;vertical-align:middle}.wdi_layout_ib .wdi_bio{float:left}.wdi_layout_ib .wdi_feed_container .wdi_feed_info .wdi_header_user_text .wdi_followers{margin-left:10px}.wdi_layout_ib .wdi_filter_overlay{position:absolute;z-index:2;top:0;left:0;opacity:0;transition:opacity .1s ease}.wdi_layout_ib .wdi_filter_overlay:hover{opacity:.9;cursor:pointer}.wdi_layout_ib .wdi_photo_wrap{overflow:hidden;box-sizing:content-box}.wdi_layout_ib .wdi_img{width:100%;display:block}.wdi_layout_ib .wdi_feed_item{display:inline-block;overflow:hidden}.wdi_layout_ib .wdi_photo_meta{text-align:center;padding-bottom:10px}.wdi_layout_ib .wdi_thumb_comments i,.wdi_layout_ib .wdi_thumb_likes i{width:100%}.wdi_layout_ib .wdi_photo_title{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:90%;margin-left:5%;margin-right:5%;text-align:center}.wdi_layout_ib .wdi_photo_title:hover{cursor:pointer}.wdi_layout_ib .wdi_load_more{padding:10px;transition:all .2s ease}.wdi_layout_ib .wdi_load_more_wrap{display:inline-table;box-sizing:border-box}.wdi_layout_ib .wdi_load_more_wrap_inner{display:table-row;text-align:center}.wdi_layout_ib .wdi_load_more_text{display:table-cell;vertical-align:middle}.wdi_layout_ib .wdi_load_more_text img{float:left}.wdi_layout_ib .wdi_load_more_wrap:hover{cursor:pointer}.wdi_layout_ib .wdi_photo_overlay:hover{cursor:pointer}.wdi_layout_ib .wdi_load_more_container{display:inline-block}.wdi_embed_frame video{display:inline-block}.wdi_image_container img{display:inline}.wdi_carousel_btn_container{height:20px;position:absolute;width:100%;bottom:65px;z-index:10150;font-size:0}.wdi_carousel_btn_container span{background:rgba(255,255,255,0.5);width:10px;height:10px;display:inline-block;border-radius:5px;cursor:pointer;margin-right:9px;position:relative;left:0;transition:left .3s;-webkit-transition:left .3s;-moz-transition:left .3s}.wdi_carousel_btn_container span:last-child{margin-right:0}.wdi_carousel_btn_container span.active{background:#fff}.wdi_carousel_btn_container span.small{width:7px;height:7px;margin-right:12px;top:-2px}.wdi_carousel_btn_content{display:inline-block;overflow:hidden;white-space:nowrap;position:relative;padding:8px 9px;background:rgba(0,0,0,0.17);border-radius:21px}.wdi_image_container .carousel_media:not(.active){display:none}.wdi_website{width:100%;display:block;float:left}.wdi_website a{box-shadow:none !important;color:#003569;text-decoration:none}.elementor-editor-active .wdi_front_overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,0.2)}
elementor/elementor.php ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Created by PhpStorm.
4
+ * User: mher
5
+ * Date: 10/19/18
6
+ * Time: 4:41 PM
7
+ */
8
+
9
+ class WDIElementor {
10
+
11
+ protected static $instance = null;
12
+
13
+ private function __construct(){
14
+ // Register widget for Elementor builder.
15
+ add_action('elementor/widgets/widgets_registered', array($this, 'register_elementor_widgets'));
16
+
17
+ if(!defined('TWBB_VERSION')) {
18
+ //fires after elementor editor styles and scripts are enqueued.
19
+ add_action('elementor/editor/after_enqueue_styles', array($this, 'enqueue_editor_styles'), 1);
20
+
21
+ // Register 10Web category for Elementor widget if 10Web builder doesn't installed.
22
+ add_action('elementor/elements/categories_registered', array($this, 'register_widget_category'), 1, 1);
23
+ }
24
+
25
+ }
26
+
27
+ public function register_elementor_widgets(){
28
+ if(defined('ELEMENTOR_PATH') && class_exists('Elementor\Widget_Base')) {
29
+ $file_path = plugin_dir_path(__FILE__) . '/widget.php';
30
+ if(is_file($file_path)) {
31
+ include_once $file_path;
32
+ }
33
+ }
34
+ }
35
+
36
+ public function enqueue_editor_styles(){
37
+ wp_enqueue_style('twbb-editor-styles', plugin_dir_url(__FILE__) . 'styles/editor.css', array(), '1.0.0');
38
+ }
39
+
40
+ public function register_widget_category($elements_manager){
41
+ $elements_manager->add_category('tenweb-widgets', array(
42
+ 'title' => __('10WEB', 'tenweb-builder'),
43
+ 'icon' => 'fa fa-plug',
44
+ ));
45
+ }
46
+
47
+ public static function get_instance(){
48
+ if(self::$instance === null) {
49
+ self::$instance = new self();
50
+ }
51
+ return self::$instance;
52
+ }
53
+
54
+ }
elementor/styles/editor.css ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @font-face {
2
+ font-family: 'twbb-icons';
3
+ src: url('fonts/twbb-icons.eot');
4
+ src: url('fonts/twbb-icons.eot') format('embedded-opentype'),
5
+ url('fonts/twbb-icons.ttf') format('truetype'),
6
+ url('fonts/twbb-icons.woff') format('woff'),
7
+ url('fonts/twbb-icons.svg') format('svg');
8
+ font-weight: normal;
9
+ font-style: normal;
10
+ }
11
+
12
+ .twbb-widget-icon {
13
+ /* use !important to prevent issues with browser extensions that change fonts */
14
+ font-family: 'twbb-icons' !important;
15
+ speak: none;
16
+ font-style: normal;
17
+ font-weight: normal;
18
+ font-variant: normal;
19
+ text-transform: none;
20
+ line-height: 1;
21
+
22
+ /* Better Font Rendering =========== */
23
+ -webkit-font-smoothing: antialiased;
24
+ -moz-osx-font-smoothing: grayscale;
25
+ }
26
+
27
+ .twbb-widget-icon:before {
28
+ color: #556068;
29
+ }
30
+
31
+ .elementor-element:hover .twbb-widget-icon:before {
32
+ color: #d30c5c;
33
+ }
34
+
35
+ /*ICONS*/
36
+
37
+ .twbb-wd-facebook-feed.twbb-widget-icon:before {
38
+ content: "\e909";
39
+ color: #556068;
40
+ }
41
+
42
+ .twbb-wd-instagram-feed.twbb-widget-icon:before {
43
+ content: "\e90a";
44
+ color: #556068;
45
+ }
46
+
47
+ .twbb-photo-gallery.twbb-widget-icon:before {
48
+ content: "\e906";
49
+ color: #556068;
50
+ }
51
+
52
+ .twbb-slider-wd.twbb-widget-icon:before {
53
+ content: "\e907";
54
+ color: #556068;
55
+ }
56
+
57
+ .twbb-form-maker.twbb-widget-icon:before {
58
+ content: "\e908";
59
+ color: #556068;
60
+ }
61
+
62
+ .twbb-share-buttons.twbb-widget-icon:before {
63
+ content: "\e900";
64
+ }
65
+
66
+ .twbb-pricing-table.twbb-widget-icon:before {
67
+ content: "\e901";
68
+ }
69
+
70
+ .twbb-posts.twbb-widget-icon:before {
71
+ content: "\e902";
72
+ }
73
+
74
+ .twbb-flip-box.twbb-widget-icon:before {
75
+ content: "\e903";
76
+ }
77
+
78
+ .twbb-countdown.twbb-widget-icon:before {
79
+ content: "\e904";
80
+ }
81
+
82
+ .twbb-call-to-action.twbb-widget-icon:before {
83
+ content: "\e905";
84
+ }
elementor/styles/fonts/twbb-icons.eot ADDED
Binary file
elementor/styles/fonts/twbb-icons.svg ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
+ <svg xmlns="http://www.w3.org/2000/svg">
4
+ <metadata>Generated by IcoMoon</metadata>
5
+ <defs>
6
+ <font id="twbb-icons" horiz-adv-x="1024">
7
+ <font-face units-per-em="1024" ascent="960" descent="-64" />
8
+ <missing-glyph horiz-adv-x="1024" />
9
+ <glyph unicode="&#x20;" horiz-adv-x="512" d="" />
10
+ <glyph unicode="&#xe900;" glyph-name="share-buttons" horiz-adv-x="663" d="M420.793 222.473c-7.286 3.871-15.914 6.184-25.074 6.285h-0.032c-15.75-1.033-29.684-8.054-39.692-18.785l-0.032-0.035-50.176 29.272c3.967 7.634 6.293 16.668 6.293 26.245 0 0.332-0.003 0.663-0.008 0.994l0.001-0.050c-0.199 8.291-1.709 16.165-4.33 23.512l0.163-0.525 50.176 29.272c9.006-11.070 22.431-18.245 37.547-18.818l0.094-0.003c9.191 0.104 17.819 2.417 25.409 6.431l-0.303-0.146c10.769 6.738 18.873 16.877 22.877 28.89l0.11 0.382c1.319 4.179 2.078 8.986 2.078 13.969 0 8.704-2.317 16.866-6.368 23.904l0.124-0.233c-8.559 14.651-23.969 24.485-41.722 25.103l-0.086 0.002c-9.191-0.099-17.82-2.413-25.408-6.431l0.302 0.146c-10.771-6.736-18.876-16.876-22.877-28.891l-0.11-0.382c-0.933-3.708-1.468-7.965-1.468-12.347 0-6.838 1.304-13.371 3.676-19.365l-0.124 0.356-50.176-29.272c-11.552 16.494-30.468 27.145-51.872 27.145-34.716 0-62.888-28.021-63.133-62.679v-0.023c0.864-34.301 28.445-61.883 62.665-62.745l0.081-0.002c20.353 0.442 38.361 10.106 50.070 24.966l0.106 0.139 52.259-29.272c-2.081-5.29-3.287-11.416-3.287-17.824 0-18.073 9.596-33.906 23.971-42.679l0.22-0.125c7.285-3.872 15.914-6.186 25.074-6.285h0.031c18.32 1.091 34.186 10.709 43.798 24.906l0.128 0.2c2.599 5.983 4.111 12.952 4.111 20.275 0 18.78-9.947 35.237-24.859 44.39l-0.227 0.129zM362.249 358.382c2.498 9.148 8.557 16.567 16.557 20.816l0.18 0.087c4.899 2.247 10.593 3.739 16.582 4.158l0.155 0.009c0.139 0.002 0.304 0.003 0.469 0.003 12.875 0 24.208-6.6 30.801-16.602l0.086-0.138c3.139-5.567 4.988-12.222 4.988-19.309 0-2.789-0.286-5.511-0.831-8.138l0.045 0.258c-2.493-9.15-8.554-16.571-16.557-20.817l-0.18-0.087c-5.137-3.229-11.382-5.145-18.075-5.145-12.847 0-24.045 7.058-29.928 17.508l-0.089 0.172c-3.896 4.559-6.267 10.524-6.267 17.043 0 3.689 0.759 7.201 2.131 10.388l-0.065-0.171zM247.243 216.188c-27.711 0-50.176 22.465-50.176 50.176s22.465 50.176 50.176 50.176c27.711 0 50.176-22.465 50.176-50.176v0c-0.411-27.537-22.636-49.749-50.139-50.14h-0.037zM427.079 161.81c-5.972-10.622-17.171-17.68-30.017-17.68-6.693 0-12.939 1.916-18.218 5.229l0.143-0.084c-10.538 6.1-17.514 17.321-17.514 30.171 0 6.62 1.852 12.808 5.065 18.074l-0.087-0.153c6.678 10.14 18.012 16.74 30.887 16.74 0.165 0 0.33-0.001 0.494-0.003h-0.025c0.104 0.001 0.228 0.002 0.351 0.002 18.858 0 34.145-15.287 34.145-34.145 0-6.729-1.946-13.003-5.307-18.29l0.082 0.139zM496.040 960h-496.040v-1024h662.599v836.22zM499.571 928.221l131.107-155.895h-131.072zM646.638-42.814h-628.983v985.159h460.694v-187.78h159.462l5.332-797.237zM46.045 758.060h325.985v-21.257h-325.985v21.257zM46.045 843.087h191.347v-21.257h-191.347v21.257zM46.045 683.626h435.836v-21.257h-435.836v21.257zM46.045 612.793h566.908v-21.257h-566.908v21.257zM46.045 474.589v-418.11h566.908v418.11zM591.695 453.402v-375.596h-524.465v375.596z" />
11
+ <glyph unicode="&#xe901;" glyph-name="pricing-table" horiz-adv-x="1439" d="M1439.214 175.298v0 721.355h-457.587v63.347h-524.182v-66.842h-457.446v-890.315h457.446v-66.842h524.182v66.842h457.587zM28.142 175.298h429.303v-147.809h-429.197zM1414.603 200.015h-432.975v668.495h429.444v-668.601zM482.092 935.283h475.065v-756.489h-475.065v756.489zM457.375 199.839h-429.127v668.672h429.197v-668.601zM482.092 2.772v0 151.411h475.065v-193.465h-475.065zM981.628 175.298h429.444v-147.809h-429.444zM70.374 769.995h337.814v-21.116h-337.814v21.116zM87.993 678.471h302.61v-21.116h-302.61v21.116zM133.72 590.513h211.121v-21.116h-211.121v21.116zM1027.531 769.995h337.814v-21.116h-337.814v21.116zM1045.116 678.471h302.61v-21.116h-302.61v21.116zM1090.878 590.513h211.121v-21.116h-211.121v21.116zM548.935 850.926h337.814v-21.116h-337.814v21.116zM566.554 759.437h302.61v-21.116h-302.61v21.116zM612.281 674.975h211.121v-21.116h-211.121v21.116zM1104.967 122.509h182.978v-45.762h-182.978v45.762zM147.809 122.509h182.978v-45.762h-182.978v45.762zM626.37 69.72h182.978v-45.762h-182.978v45.762zM711.362 382.146c1.126-0.11 2.433-0.173 3.756-0.173 7.739 0 14.975 2.152 21.143 5.89l-0.182-0.102c4.305 3.206 7.063 8.281 7.063 14 0 0.044 0 0.087 0 0.13v-0.007c0.005 0.17 0.008 0.369 0.008 0.569 0 3.871-1.149 7.474-3.125 10.485l0.045-0.073c-2.221 3.186-4.958 5.844-8.115 7.911l-0.112 0.069c-3.405 2.27-7.31 4.343-11.419 6.019l-0.446 0.161q-6.744 2.754-13.806 5.261t-13.594 5.614c-4.586 2.096-8.538 4.623-12.082 7.619l0.076-0.063c-3.471 2.929-6.341 6.441-8.487 10.404l-0.094 0.189c-2.104 4.202-3.336 9.155-3.336 14.396 0 0.364 0.006 0.726 0.018 1.088l-0.001-0.053c-0.018 0.43-0.028 0.935-0.028 1.442 0 9.712 3.699 18.56 9.765 25.212l-0.027-0.030c7.375 7.25 17.167 12.062 28.058 13.12l0.19 0.015v26.271h18.962v-25.6c6.794-0.274 13.226-1.173 19.437-2.644l-0.687 0.137c5.548-1.249 10.131-2.585 14.602-4.161l-0.901 0.277-4.343-17.655q-5.473 2.048-13.7 4.237c-5.638 1.381-12.111 2.173-18.769 2.173-0.627 0-1.252-0.007-1.875-0.021l0.093 0.002c-0.678 0.045-1.47 0.071-2.267 0.071-6.999 0-13.534-1.985-19.073-5.422l0.155 0.089c-4.513-3.129-7.432-8.283-7.432-14.118 0-0.263 0.006-0.525 0.018-0.785l-0.001 0.037c-0.006-0.166-0.009-0.362-0.009-0.558 0-3.062 0.802-5.937 2.207-8.426l-0.044 0.086c1.635-2.617 3.738-4.786 6.209-6.449l0.076-0.048c2.797-1.93 5.994-3.66 9.373-5.034l0.337-0.121q5.614-2.295 12.465-4.802 8.898-3.531 16.914-7.062c5.396-2.429 10.047-5.372 14.218-8.869l-0.094 0.076c3.959-3.364 7.214-7.42 9.606-11.997l0.105-0.22c2.243-4.63 3.554-10.070 3.554-15.817 0-0.46-0.008-0.919-0.025-1.375l0.002 0.066c0.022-0.473 0.035-1.027 0.035-1.584 0-9.54-3.753-18.204-9.864-24.595l0.013 0.013c-8.107-7.183-18.642-11.791-30.233-12.458l-0.134-0.006v-29.484h-18.962v28.778c-9.285 0.037-18.254 1.324-26.768 3.7l0.709-0.169c-5.813 1.654-10.817 3.638-15.566 6.051l0.488-0.225 5.72 17.126c4.552-2.129 10.018-4.152 15.666-5.742l0.789-0.19c6.458-1.7 13.872-2.676 21.514-2.676 0.779 0 1.555 0.010 2.329 0.030l-0.114-0.002zM233.225 346.165c0.881-0.087 1.905-0.136 2.941-0.136 6.005 0 11.62 1.665 16.41 4.559l-0.142-0.080c3.358 2.497 5.51 6.453 5.51 10.912 0 0.074-0.001 0.148-0.002 0.222v-0.011c0.004 0.126 0.006 0.275 0.006 0.425 0 3.020-0.898 5.829-2.442 8.177l0.035-0.056c-1.726 2.48-3.851 4.549-6.304 6.161l-0.087 0.054c-2.655 1.765-5.7 3.377-8.904 4.677l-0.348 0.125q-5.261 2.119-10.593 4.096t-10.593 4.343c-3.575 1.625-6.655 3.586-9.418 5.912l0.061-0.050c-2.709 2.313-4.944 5.088-6.6 8.217l-0.073 0.152c-1.634 3.269-2.59 7.121-2.59 11.197 0 0.284 0.005 0.568 0.014 0.85l-0.001-0.041c-0.014 0.333-0.021 0.723-0.021 1.116 0 7.562 2.878 14.452 7.599 19.635l-0.021-0.023c5.735 5.641 13.346 9.391 21.813 10.228l0.15 0.012v20.48h14.76v-19.915c5.283-0.211 10.286-0.908 15.118-2.049l-0.535 0.106c4.297-0.982 7.839-2.026 11.294-3.254l-0.701 0.217-3.531-13.877q-4.273 1.589-10.593 3.284c-4.412 1.086-9.478 1.709-14.689 1.709-0.472 0-0.942-0.005-1.412-0.015l0.070 0.001c-0.514 0.033-1.114 0.052-1.718 0.052-5.451 0-10.541-1.544-14.857-4.218l0.121 0.070c-3.524-2.438-5.803-6.458-5.803-11.011 0-0.201 0.004-0.401 0.013-0.599l-0.001 0.028c-0.007-0.157-0.010-0.34-0.010-0.525 0-2.401 0.632-4.655 1.74-6.603l-0.035 0.066c1.275-2.049 2.917-3.747 4.849-5.047l0.059-0.037c2.176-1.493 4.664-2.833 7.293-3.896l0.263-0.094q4.343-1.766 9.71-3.743 7.062-2.684 13.171-5.508c4.182-1.896 7.786-4.188 11.017-6.909l-0.071 0.058c3.082-2.625 5.616-5.79 7.475-9.362l0.081-0.172c1.812-3.664 2.871-7.978 2.871-12.539 0-0.284-0.004-0.567-0.012-0.85l0.001 0.041c0.017-0.362 0.027-0.787 0.027-1.213 0-7.438-2.93-14.192-7.698-19.171l0.009 0.010c-6.315-5.597-14.523-9.187-23.554-9.706l-0.104-0.005v-22.952h-14.76v22.422c-7.235 0.030-14.222 1.033-20.856 2.886l0.552-0.132c-4.521 1.333-8.408 2.918-12.093 4.836l0.37-0.175 4.449 13.347c3.546-1.66 7.804-3.237 12.203-4.478l0.615-0.148c5.053-1.336 10.853-2.104 16.833-2.104 0.587 0 1.173 0.007 1.756 0.022l-0.086-0.002zM1197.374 346.165c0.881-0.087 1.905-0.136 2.941-0.136 6.005 0 11.62 1.665 16.41 4.559l-0.142-0.080c3.358 2.497 5.51 6.453 5.51 10.912 0 0.074-0.001 0.148-0.002 0.222v-0.011c0.004 0.126 0.006 0.275 0.006 0.425 0 3.020-0.898 5.829-2.442 8.177l0.035-0.056c-1.726 2.48-3.851 4.549-6.304 6.161l-0.087 0.054c-2.655 1.765-5.7 3.377-8.904 4.677l-0.348 0.125q-5.261 2.119-10.593 4.096t-10.593 4.343c-3.575 1.625-6.655 3.586-9.418 5.912l0.061-0.050c-2.709 2.313-4.944 5.088-6.6 8.217l-0.073 0.152c-1.634 3.269-2.59 7.121-2.59 11.197 0 0.284 0.005 0.568 0.014 0.85l-0.001-0.041c-0.014 0.333-0.021 0.723-0.021 1.116 0 7.562 2.878 14.452 7.599 19.635l-0.021-0.023c5.735 5.641 13.346 9.391 21.813 10.228l0.15 0.012v20.48h14.76v-19.915c5.283-0.211 10.286-0.908 15.118-2.049l-0.535 0.106c4.297-0.982 7.839-2.026 11.294-3.254l-0.701 0.217-3.531-13.877q-4.273 1.589-10.593 3.284c-4.412 1.086-9.478 1.709-14.689 1.709-0.472 0-0.942-0.005-1.412-0.015l0.070 0.001c-0.514 0.033-1.114 0.052-1.718 0.052-5.451 0-10.541-1.544-14.857-4.218l0.121 0.070c-3.524-2.438-5.803-6.458-5.803-11.011 0-0.201 0.004-0.401 0.013-0.599l-0.001 0.028c-0.007-0.157-0.010-0.34-0.010-0.525 0-2.401 0.632-4.655 1.74-6.603l-0.035 0.066c1.275-2.049 2.917-3.747 4.849-5.047l0.059-0.037c2.176-1.493 4.664-2.833 7.293-3.896l0.263-0.094q4.343-1.766 9.71-3.743 7.062-2.684 13.171-5.508c4.182-1.896 7.786-4.188 11.017-6.909l-0.071 0.058c3.082-2.625 5.616-5.79 7.475-9.362l0.081-0.172c1.812-3.664 2.871-7.978 2.871-12.539 0-0.284-0.004-0.567-0.012-0.85l0.001 0.041c0.017-0.362 0.027-0.787 0.027-1.213 0-7.438-2.93-14.192-7.698-19.171l0.009 0.010c-6.315-5.597-14.523-9.187-23.554-9.706l-0.104-0.005v-22.952h-14.76v22.422c-7.235 0.030-14.222 1.033-20.856 2.886l0.552-0.132c-4.521 1.333-8.408 2.918-12.093 4.836l0.37-0.175 4.449 13.347c3.546-1.66 7.804-3.237 12.203-4.478l0.615-0.148c5.053-1.336 10.853-2.104 16.833-2.104 0.587 0 1.173 0.007 1.756 0.022l-0.086-0.002z" />
12
+ <glyph unicode="&#xe902;" glyph-name="posts" horiz-adv-x="670" d="M496.040 573.775h173.621v-46.045h-173.621v46.045zM248.020 605.661h226.763v-21.257h-226.763v21.257zM248.020 665.9h421.641v-21.257h-421.641v21.257zM248.020 548.988h226.763v-21.257h-226.763v21.257zM3.531 662.369v0l-3.531-138.169h152.364v138.169zM24.717 545.457v95.726h109.85v-95.656zM496.040 867.875h173.621v-46.045h-173.621v46.045zM248.020 903.292h226.763v-21.257h-226.763v21.257zM248.020 960h421.641v-21.257h-421.641v21.257zM248.020 843.087h226.763v-21.257h-226.763v21.257zM3.531 818.264h152.364v141.736h-152.364zM134.638 938.743v-95.656h-109.921v95.726zM496.040 279.711h173.621v-46.045h-173.621v46.045zM248.020 311.596h226.763v-21.257h-226.763v21.257zM248.020 371.836h421.641v-21.257h-421.641v21.257zM248.020 254.888h226.763v-21.257h-226.763v21.257zM3.531 368.269v0l-3.531-138.169h152.364v138.169zM24.717 251.357v95.726h109.85v-95.656zM496.040-14.389h173.621v-46.045h-173.621v46.045zM248.020 17.496h226.763v-21.257h-226.763v21.257zM248.020 77.736h421.641v-21.257h-421.641v21.257zM248.020-39.212h226.763v-21.257h-226.763v21.257zM3.531 74.169v0l-3.531-138.169h152.364v138.169zM24.717-42.743v95.726h109.85v-95.656z" />
13
+ <glyph unicode="&#xe903;" glyph-name="flip-box" horiz-adv-x="663" d="M499.606 960h-499.606v-1024h662.599v832.653zM637.775 750.963v-790.246h-620.12v978.097h460.694v-187.851zM499.606 772.149v156.072l131.107-155.895zM347.242 414.349h53.142v-17.726h-53.142v17.726zM449.995 414.349h53.142v-17.726h-53.142v17.726zM152.364 414.349h53.142v-17.726h-53.142v17.726zM109.85 414.349h17.726v-17.726h-17.726v17.726zM527.96 414.349h21.257v-17.726h-21.257v17.726zM248.020 414.349h53.142v-17.726h-53.142v17.726zM325.985 354.11l-223.232-205.506-3.531-3.531h457.092l-230.294 209.037zM155.895 169.86l170.090 155.895 170.090-155.895zM106.284 658.838l219.666-201.975 205.506 187.78 21.186 21.186-446.358-6.991zM325.95 485.217l-170.055 155.966h340.145z" />
14
+ <glyph unicode="&#xe904;" glyph-name="countdown" horiz-adv-x="3050" d="M1491.957 558.108h60.559v-44.043h-60.559v44.043zM1491.957 381.935h60.559v-44.043h-60.559v44.043zM44.043 514.065h44.043v-132.129h-44.043v132.129zM589.075 514.065h44.043v-132.129h-44.043v132.129zM765.247 514.065h44.043v-132.129h-44.043v132.129zM1310.28 514.065h44.043v-132.129h-44.043v132.129zM1690.151 514.065h44.043v-132.129h-44.043v132.129zM2235.183 514.065h44.043v-132.129h-44.043v132.129zM2416.86 514.065h44.043v-132.129h-44.043v132.129zM2961.892 514.065h44.043v-132.129h-44.043v132.129zM649.634-41.978h-627.613v467.957h-22.022v-489.978h666.151v489.978h-16.516v-467.957zM22.022 937.978h627.613v-467.957h22.022v489.978h-666.151v-489.978h16.516v467.957zM1370.839-41.978h-627.613v467.957h-16.516v-489.978h666.151v489.978h-22.022zM743.226 937.978h627.613v-467.957h22.022v489.978h-666.151v-489.978h16.516v467.957zM2301.247-41.978h-627.613v467.957h-16.516v-489.978h666.151v489.978h-22.022zM1679.14 937.978h627.613v-467.957h22.022v489.978h-666.151v-489.978h16.516v467.957zM2400.344 937.978h627.613v-467.957h22.022v489.978h-666.151v-489.978h16.516v467.957zM3022.452-41.978h-627.613v467.957h-16.516v-489.978h666.151v489.978h-22.022zM22.022 470.022h627.613v-44.043h-627.613v44.043zM2400.344 470.022h627.613v-44.043h-627.613v44.043zM743.226 470.022h627.613v-44.043h-627.613v44.043zM1679.14 470.022h627.613v-44.043h-627.613v44.043zM924.903 492.043c-0.903 9.645-1.419 20.856-1.419 32.188 0 56.273 12.704 109.579 35.399 157.206l-0.949-2.211c16.626 36.298 52.639 61.059 94.435 61.059 3.581 0 7.119-0.182 10.606-0.536l-0.438 0.036c0.446 0.006 0.973 0.010 1.501 0.010 44.086 0 82.528-24.17 102.796-59.981l0.306-0.587c20.922-55.080 33.036-118.767 33.036-185.284 0-0.668-0.001-1.335-0.004-2.002v0.103h71.57c0.346 6.26 0.543 13.586 0.543 20.959 0 75.481-20.656 146.138-56.623 206.626l1.026-1.864c-29.245 49.918-82.62 82.91-143.701 82.91-3.676 0-7.325-0.12-10.942-0.355l0.492 0.026c-3.083 0.197-6.684 0.309-10.312 0.309-59.827 0-112.535-30.479-143.444-76.757l-0.394-0.627c-31.822-58.531-50.531-128.172-50.531-202.183 0-10.219 0.357-20.355 1.058-30.396l-0.076 1.353zM1194.667 409.462c0.002-0.481 0.003-1.050 0.003-1.619 0-59.052-12.149-115.267-34.083-166.282l1.048 2.74c-20.108-36.861-58.583-61.451-102.802-61.451-18.694 0-36.361 4.395-52.025 12.208l0.676-0.305c-21.657 10.759-38.789 27.892-49.266 48.921l-0.283 0.627c-20.897 49.982-33.035 108.057-33.035 168.968 0 0.597 0.001 1.194 0.003 1.791v-0.092h-71.57c-0.044-2.213-0.070-4.822-0.070-7.436 0-74.42 20.486-144.055 56.126-203.574l-1.002 1.806c35.526-50.865 93.79-83.723 159.729-83.723 41.129 0 79.273 12.784 110.674 34.595l-0.64-0.42c17.427 11.986 32.056 26.616 43.676 43.479l0.367 0.564c31.354 56.135 49.816 123.159 49.816 194.495 0 5.173-0.097 10.323-0.29 15.449l0.022-0.74h-77.075zM1849.806 492.043c-0.903 9.645-1.419 20.856-1.419 32.188 0 56.273 12.704 109.579 35.399 157.206l-0.949-2.211c16.626 36.298 52.639 61.059 94.435 61.059 3.581 0 7.119-0.182 10.606-0.536l-0.438 0.036c0.446 0.006 0.973 0.010 1.501 0.010 44.086 0 82.528-24.17 102.796-59.981l0.306-0.587c20.922-55.080 33.036-118.767 33.036-185.284 0-0.668-0.001-1.335-0.004-2.002v0.103h71.57c0.346 6.26 0.543 13.586 0.543 20.959 0 75.481-20.656 146.138-56.623 206.626l1.026-1.864c-29.245 49.918-82.62 82.91-143.701 82.91-3.676 0-7.325-0.12-10.942-0.355l0.492 0.026c-3.083 0.197-6.684 0.309-10.312 0.309-59.827 0-112.535-30.479-143.444-76.757l-0.394-0.627c-31.822-58.531-50.531-128.172-50.531-202.183 0-10.219 0.357-20.355 1.058-30.396l-0.076 1.353zM2119.57 409.462c0.002-0.481 0.003-1.050 0.003-1.619 0-59.052-12.149-115.267-34.083-166.282l1.048 2.74c-20.108-36.861-58.583-61.451-102.802-61.451-18.694 0-36.361 4.395-52.025 12.208l0.676-0.305c-21.657 10.759-38.789 27.892-49.266 48.921l-0.283 0.627c-20.897 49.982-33.035 108.057-33.035 168.968 0 0.597 0.001 1.194 0.003 1.791v-0.092h-71.57c-0.044-2.213-0.070-4.822-0.070-7.436 0-74.42 20.486-144.055 56.126-203.574l-1.002 1.806c35.526-50.865 93.79-83.723 159.729-83.723 41.129 0 79.273 12.784 110.674 34.595l-0.64-0.42c17.427 11.986 32.056 26.616 43.676 43.479l0.367 0.564c31.354 56.135 49.816 123.159 49.816 194.495 0 5.173-0.097 10.323-0.29 15.449l0.022-0.74h-77.075zM2576.516 492.043c-0.903 9.645-1.419 20.856-1.419 32.188 0 56.273 12.704 109.579 35.399 157.206l-0.949-2.211c16.626 36.298 52.639 61.059 94.435 61.059 3.581 0 7.119-0.182 10.606-0.536l-0.438 0.036c0.446 0.006 0.973 0.010 1.501 0.010 44.086 0 82.528-24.17 102.796-59.981l0.306-0.587c20.922-55.080 33.036-118.767 33.036-185.284 0-0.668-0.001-1.335-0.004-2.002v0.103h71.57c0.346 6.26 0.543 13.586 0.543 20.959 0 75.481-20.656 146.138-56.623 206.626l1.026-1.864c-29.245 49.918-82.62 82.91-143.701 82.91-3.676 0-7.325-0.12-10.942-0.355l0.492 0.026c-3.083 0.197-6.684 0.309-10.312 0.309-59.827 0-112.535-30.479-143.444-76.757l-0.394-0.627c-31.822-58.531-50.531-128.172-50.531-202.183 0-10.219 0.357-20.355 1.058-30.396l-0.076 1.353zM2846.28 409.462c0.002-0.481 0.003-1.050 0.003-1.619 0-59.052-12.149-115.267-34.083-166.282l1.048 2.74c-20.108-36.861-58.583-61.451-102.802-61.451-18.694 0-36.361 4.395-52.025 12.208l0.676-0.305c-21.657 10.759-38.789 27.892-49.266 48.921l-0.283 0.627c-20.897 49.982-33.035 108.057-33.035 168.968 0 0.597 0.001 1.194 0.003 1.791v-0.092h-71.57c-0.044-2.213-0.070-4.822-0.070-7.436 0-74.42 20.486-144.055 56.126-203.574l-1.002 1.806c35.526-50.865 93.79-83.723 159.729-83.723 41.129 0 79.273 12.784 110.674 34.595l-0.64-0.42c17.427 11.986 32.056 26.616 43.676 43.479l0.367 0.564c31.354 56.135 49.816 123.159 49.816 194.495 0 5.173-0.097 10.323-0.29 15.449l0.022-0.74h-77.075zM313.806 409.462h71.57v-291.785h-71.57v291.785zM297.29 706.753c5.505 5.505 16.516 11.011 22.022 16.516 0-33.032-5.505-71.57-5.505-104.602v-132.129h71.57v313.806h-60.559l-165.161-126.624 38.538-49.548c29.979 29.099 62.32 56.2 96.552 80.838l2.545 1.743z" />
15
+ <glyph unicode="&#xe905;" glyph-name="call-to-action" horiz-adv-x="665" d="M0 960v-1024h665.070v1024zM21.186-39.283v974.566h619.343v-974.566h-619.343zM112.605 643.302h429.303v-21.116h-429.303v21.116zM112.605 544.786h429.303v-21.116h-429.303v21.116zM112.605 432.181h429.303v-21.116h-429.303v21.116zM214.652 769.995h232.236v-21.116h-232.236v21.116zM239.298 168.271h175.951v-45.762h-175.951v45.762zM555.502 100.97l-209.178 109.003 61.864-226.834 38.276 61.864 47.139-58.933 41.242 32.415-47.139 58.933zM511.294 21.416l-17.655-14.724-52.966 64.794-29.449-50.070-41.242 159.073 147.315-76.588-55.967-17.655zM369.876 180.524l147.279-76.588-55.967-17.655 50.070-64.83-17.655-14.724-50.070 64.794-32.38-50.070z" />
16
+ <glyph unicode="&#xe906;" glyph-name="photo-gallery" horiz-adv-x="1209" d="M120.139 1.925c-0.597-0.011-1.301-0.017-2.007-0.017-65.153 0-117.97 52.817-117.97 117.97 0 1.264 0.020 2.524 0.059 3.779l-0.005-0.183v484.080c-0.13 2.562-0.204 5.564-0.204 8.583 0 91.281 67.543 166.787 155.377 179.266l0.963 0.112 4.879 0.976c4.494 0.581 8.573 1.762 12.363 3.472l-0.274-0.11c0.564 1.459 0.891 3.148 0.891 4.913 0 0.677-0.048 1.342-0.141 1.993l0.009-0.075c-0.083 0.834-0.13 1.802-0.13 2.781 0 7.761 2.976 14.826 7.848 20.118l-0.019-0.021c6.765 5.9 15.672 9.498 25.419 9.498 1.934 0 3.836-0.142 5.694-0.415l-0.211 0.025h126.59c2.184 0.32 4.706 0.503 7.271 0.503 12.394 0 23.79-4.274 32.793-11.429l-0.108 0.083c7.257-7.803 11.711-18.299 11.711-29.834 0-0.051 0-0.103 0-0.154v0.008c3.376-0.834 7.252-1.312 11.239-1.312 10.56 0 20.337 3.355 28.323 9.057l-0.148-0.101c20.039 25.414 39.526 53.938 57.042 83.76l1.944 3.58c21.248 40.183 62.778 67.098 110.594 67.098 2.786 0 5.55-0.091 8.291-0.271l-0.372 0.020c108.429-0.867 224.773-0.922 336.454 0 2.578 0.201 5.584 0.315 8.615 0.315 46.146 0 86.101-26.507 105.468-65.126l0.309-0.68c13.228-27.107 33.288-66.738 52.967-105.718 35.619-70.479 52.967-104.959 59.636-122.85v-0.325c6.126-16.264 3.036-18.812-3.036-23.15-2.668-1.9-5.994-3.037-9.586-3.037-4.599 0-8.762 1.865-11.775 4.881v0c-0.457 0.493-0.901 1.023-1.318 1.575l-0.038 0.052c-87.298 113.335-223.049 185.641-375.687 185.641-108.035 0-207.61-36.222-287.242-97.184l1.135 0.834q-17.728-13.499-34.101-28.625c-161.017-155.975-212.412-446.401 9.921-676.757 2.812-2.919 4.544-6.896 4.544-11.277 0-8.979-7.276-16.259-16.254-16.264h-0.001zM206.882 806.302c0.027-0.552 0.043-1.198 0.043-1.848 0-21.823-17.52-39.555-39.262-39.897h-0.032l-5.421-1.030c-73.56-10.028-129.64-72.444-129.64-147.958 0-2.553 0.064-5.091 0.191-7.612l-0.014 0.354v-484.893c-0.053-1.124-0.083-2.441-0.083-3.765 0-47.098 38.181-85.279 85.279-85.279 0.716 0 1.429 0.009 2.14 0.026l-0.105-0.002h291.022c-82.729 88.69-133.517 208.111-133.517 339.394 0 139.474 57.322 265.559 149.693 355.982l0.088 0.086c11.981 10.843 24.071 21.252 36.757 30.848 83.952 64.372 190.475 103.155 306.055 103.155 125.606 0 240.514-45.802 328.933-121.615l-0.681 0.57-15.505 30.74c-19.68 39.089-39.793 78.936-52.967 105.772-14.17 28.685-43.222 48.067-76.8 48.067-2.297 0-4.573-0.091-6.825-0.269l0.297 0.019h-1.898c-111.953-1.084-228.784-1.084-337.864 0-1.63 0.1-3.535 0.157-5.453 0.157-35.95 0-67.221-20.029-83.265-49.537l-0.248-0.498c-20.363-35.081-40.784-65.041-63.1-93.442l1.296 1.711c-13.752-13.38-32.554-21.63-53.283-21.63-7.734 0-15.2 1.149-22.237 3.285l0.541-0.141c-12.154 2.439-21.362 12.494-22.491 24.884l-0.008 0.109c0.109 0.828 0.172 1.786 0.172 2.758 0 3.619-0.865 7.035-2.399 10.054l0.058-0.126c-3.693 1.137-7.939 1.792-12.338 1.792-1.536 0-3.053-0.080-4.547-0.235l0.187 0.016h-124.097c-3.578 0-6.723 0-8.945 0zM771.253-64h-4.283c-239.762 1.124-433.692 195.748-433.692 435.666 0 240.614 195.056 435.671 435.671 435.671 0.696 0 1.391-0.002 2.086-0.005h3.037c169.409-0.715 315.772-98.666 386.23-240.897l1.131-2.525c1.046-2.089 1.659-4.551 1.659-7.156 0-8.983-7.282-16.264-16.264-16.264-0.011 0-0.023 0-0.034 0h-263.588c-0.080-0.001-0.175-0.002-0.27-0.002-4.047 0-7.749 1.478-10.595 3.924l0.022-0.018c-23.665 20.668-54.836 33.272-88.95 33.272-2.599 0-5.181-0.073-7.744-0.218l0.355 0.016c-1.903 0.065-4.14 0.102-6.385 0.102-54.786 0-104.428-22.023-140.556-57.698l0.021 0.021c-38.484-37.259-62.373-89.392-62.373-147.106 0-111.972 89.922-202.942 201.49-204.635l0.159-0.002h7.427c3.639-0.262 7.885-0.412 12.166-0.412 53.089 0 100.808 22.991 133.744 59.56l0.143 0.162h-148.439c-8.983 0-16.264 7.282-16.264 16.264v0 179.992c0 8.983 7.282 16.264 16.264 16.264v0h418.426c0.012 0 0.026 0 0.040 0 4.522 0 8.612-1.845 11.56-4.824l0.001-0.001c5.421-5.421 5.421-5.421 4.879-68.147v0c-3.181-238.713-197.437-431.004-436.606-431.004-0.165 0-0.33 0-0.495 0h0.025zM770.928 774.804c-221.776-1.031-401.161-181.052-401.161-402.971 0-222.557 180.418-402.975 402.975-402.975 220.974 0 400.406 177.86 402.948 398.231l0.002 0.24v40.119h-386.060v-147.463h164.757c8.982-0.001 16.263-7.282 16.263-16.264 0-3.172-0.908-6.132-2.478-8.634l0.040 0.068c-37.923-60.404-104.174-99.969-179.667-99.969-4.749 0-9.462 0.157-14.133 0.465l0.635-0.034h-7.102c-129.427 2.041-233.563 107.439-233.563 237.16 0 66.854 27.659 127.249 72.159 170.363l0.062 0.060c43.026 41.346 101.581 66.808 166.084 66.808 0.982 0 1.963-0.006 2.943-0.018l-0.149 0.001c2.639 0.149 5.728 0.234 8.836 0.234 39.808 0 76.363-13.93 105.055-37.182l-0.312 0.245h230.682c-70.048 120.854-198.577 200.971-345.863 201.514h-0.078z" />
17
+ <glyph unicode="&#xe907;" glyph-name="slider-wd" horiz-adv-x="1481" d="M370.188 316.518c-0.153-0.006-0.333-0.009-0.514-0.009-7.749 0-14.032 6.282-14.032 14.032 0 7.569 5.992 13.738 13.492 14.021l0.026 0.001c24.603 4.927 44.377 21.855 53.209 44.289l0.169 0.488c6.59 24.726-15.705 45.946-35.57 59.408-31.27 21.174-45.759 43.89-43.282 67.26 4.347 39.356 56.463 60.763 62.399 63.334 1.43 0.538 3.082 0.85 4.807 0.85 7.744 0 14.022-6.278 14.022-14.022 0-5.767-3.481-10.72-8.456-12.874l-0.091-0.035c-10.937-4.347-42.721-21.174-44.825-40.478-1.636-15.144 16.032-30.475 31.129-40.711 49.639-33.56 52.957-67.354 46.741-89.836-12.12-34.32-41.691-59.595-77.773-65.363l-0.565-0.074zM580.896 316.518h-98.156c-7.744 0-14.022 6.278-14.022 14.022v0 235.574c0 7.744 6.278 14.022 14.022 14.022s14.022-6.278 14.022-14.022v-221.552h84.134c7.744 0 14.022-6.278 14.022-14.022s-6.278-14.022-14.022-14.022v0zM621.654 316.518c-7.744 0-14.022 6.278-14.022 14.022v0 235.574c0 7.744 6.278 14.022 14.022 14.022s14.022-6.278 14.022-14.022v0-235.574c0-7.744-6.278-14.022-14.022-14.022v0zM674.892 316.518c-7.744 0-14.022 6.278-14.022 14.022v0 235.574c0.051 4.084 1.84 7.741 4.661 10.271l0.013 0.012c2.631 2.33 6.113 3.753 9.926 3.753 0.224 0 0.447-0.005 0.669-0.015l-0.032 0.001c71.039-2.285 127.768-60.388 127.836-131.756v-0.007c-1.042-70.859-56.999-128.315-127.152-131.751l-0.31-0.012zM688.914 549.708v-202.528c49.372 7.858 86.658 50.13 86.658 101.111 0 0.013 0 0.026 0 0.039v-0.002c0.007 0.452 0.011 0.985 0.011 1.518 0 50.699-37.404 92.661-86.122 99.797l-0.547 0.066zM965.948 316.518h-1.449c-0.643-0.012-1.4-0.019-2.16-0.019-65.891 0-119.632 52.019-122.396 117.229l-0.008 0.25v132.137c0 7.744 6.278 14.022 14.022 14.022v0h112.178c7.744 0 14.022-6.278 14.022-14.022s-6.278-14.022-14.022-14.022h-98.156v-118.395c0-3.459 0-79.132 99.371-89.228 7.446-0.384 13.339-6.515 13.339-14.022 0-7.754-6.286-14.040-14.040-14.040-0.247 0-0.492 0.006-0.735 0.019l0.034-0.001zM965.901 482.448h-142.046c-7.744 0-14.022 6.278-14.022 14.022s6.278 14.022 14.022 14.022h142.046c7.744 0 14.022-6.278 14.022-14.022s-6.278-14.022-14.022-14.022v0zM1113.976 315.957c-36.605 0.871-68.526 20.142-86.964 48.888l-0.254 0.423v-34.729c0-7.744-6.278-14.022-14.022-14.022s-14.022 6.278-14.022 14.022v0 235.574c0 0.033 0 0.072 0 0.111 0 4.147 1.8 7.873 4.661 10.44l0.013 0.012c2.398 2.162 5.591 3.485 9.091 3.485 0.634 0 1.259-0.043 1.87-0.127l-0.071 0.008c37.393-4.674 108.579-32.999 109.841-104.232 0.038-0.992 0.059-2.158 0.059-3.328 0-44.864-31.604-82.346-73.763-91.398l-0.614-0.11c13.635-22.201 37.784-36.785 65.339-36.785 2.487 0 4.946 0.119 7.372 0.351l-0.309-0.024c0.561 0.082 1.208 0.128 1.866 0.128 7.155 0 13.024-5.506 13.602-12.512l0.003-0.049c0.050-0.445 0.079-0.961 0.079-1.484 0-7.212-5.445-13.153-12.448-13.935l-0.064-0.006c-3.419-0.428-7.395-0.682-11.426-0.701h-0.026zM1026.758 548.727v-143.448h0.654c2.851 0 70.111 6.404 68.99 70.111-0.841 47.255-45.152 66.325-69.644 73.336zM740.75-64c-0.028 0-0.060 0-0.093 0-282.77 0-512 229.23-512 512s229.23 512 512 512c282.77 0 512-229.23 512-512 0-0.016 0-0.033 0-0.049v0.002c-0.026-282.717-229.193-511.9-511.901-511.953h-0.005zM740.75 932.002c-0.042 0-0.091 0-0.14 0-267.307 0-484.002-216.695-484.002-484.002s216.695-484.002 484.002-484.002c267.307 0 484.002 216.695 484.002 484.002 0 0.016 0 0.033 0 0.049v-0.002c-0.026 267.237-216.632 483.876-483.854 483.955h-0.008zM1217.601 124.74c-7.739 0.007-14.011 6.282-14.011 14.022 0 3.193 1.067 6.137 2.865 8.494l-0.025-0.034c63.267 82.503 101.383 187.189 101.383 300.778s-38.117 218.274-102.257 301.965l0.873-1.187c-1.778 2.325-2.849 5.274-2.849 8.472 0 7.744 6.278 14.022 14.022 14.022 1.009 0 1.992-0.106 2.941-0.309l-0.092 0.016c150.228-33.093 260.97-165.092 260.97-322.956s-110.742-289.863-258.778-322.55l-2.192-0.406c-0.856-0.208-1.839-0.327-2.85-0.327-0.001 0-0.001 0-0.002 0v0zM1251.768 733.073c52.728-80.52 84.099-179.156 84.099-285.12s-31.371-204.6-85.332-287.129l1.233 2.010c118.558 42.685 201.8 154.181 201.8 285.12s-83.242 242.435-199.694 284.456l-2.106 0.664zM263.899 124.74c-0.014 0-0.031 0-0.048 0-1.011 0-1.994 0.119-2.936 0.345l0.086-0.017c-150.228 33.093-260.97 165.092-260.97 322.956s110.742 289.863 258.778 322.55l2.192 0.406c0.856 0.186 1.84 0.292 2.849 0.292 7.744 0 14.022-6.278 14.022-14.022 0-3.198-1.071-6.147-2.874-8.506l0.025 0.034c-63.267-82.503-101.383-187.189-101.383-300.778s38.117-218.274 102.257-301.965l-0.873 1.187c1.772-2.323 2.84-5.267 2.84-8.46 0-7.74-6.271-14.016-14.010-14.022h-0.001zM229.685 733.073c-118.558-42.685-201.8-154.181-201.8-285.12s83.242-242.435 199.694-284.456l2.106-0.664c-52.728 80.52-84.099 179.156-84.099 285.12s31.371 204.6 85.332 287.129l-1.233-2.010zM1380.306 480.204l-9.348-9.348 28.045-23.37-28.045-23.37 9.348-9.348 37.393 32.719zM66.419 448.047l37.393-32.719 9.348 9.348-28.045 23.37 28.045 23.37-9.348 9.348z" />
18
+ <glyph unicode="&#xe908;" glyph-name="form-maker" horiz-adv-x="1101" d="M385.133 479.717h-267.327v249.204h262.796v-249.204zM140.46 502.372h222.018v203.894h-222.018v-203.894zM987.752 348.319h-869.947v95.15h869.947v-95.15zM140.46 370.973h824.637v45.31h-824.637v-45.31zM987.752 99.115h-869.947v212.956h869.947v-212.956zM140.46 121.77h824.637v167.646h-824.637v-167.646zM987.752 620.177h-262.796v108.743h267.327v-108.743zM747.611 642.832h222.018v63.434h-222.018v-63.434zM693.239 620.177h-267.327v108.743h267.327v-108.743zM448.566 642.832h222.018v63.434h-222.018v-63.434zM987.752 479.717h-262.796v99.681h267.327v-99.681zM747.611 502.372h222.018v54.372h-222.018v-54.372zM693.239 479.717h-267.327v99.681h267.327v-99.681zM448.566 502.372h222.018v54.372h-222.018v-54.372zM22.655 3.965h1055.717v838.23h-1055.717v-838.23zM1046.655 810.478v-774.796h-992.283v774.796h992.283z" />
19
+ <glyph unicode="&#xe909;" glyph-name="wd-facebook-feed" d="M625.778 709.689c5.689 5.689 17.067 11.378 39.822 11.378h85.333c22.756 0 39.822 17.067 39.822 39.822v147.911c0 22.756-17.067 39.822-39.822 39.822h-125.156c-73.956 0-136.533-22.756-182.044-68.267-45.511-51.2-68.267-113.778-68.267-187.733v-85.333h-102.4c-22.756-5.689-39.822-22.756-39.822-45.511v-159.289c0-22.756 17.067-39.822 39.822-39.822h102.4v-375.467c0-22.756 17.067-39.822 39.822-39.822h164.978c22.756 0 39.822 17.067 39.822 39.822v375.467h125.156c22.756 0 39.822 17.067 39.822 39.822v159.289c0 17.067-5.689 28.444-22.756 34.133-5.689 5.689-11.378 5.689-22.756 5.689h-125.156v73.956c5.689 22.756 11.378 28.444 11.378 34.133zM750.933 897.422v0 0zM603.022 561.778h142.222v-153.6h-142.222c-11.378 0-22.756-11.378-22.756-22.756v-392.533h-159.289v392.533c0 11.378-11.378 22.756-22.756 22.756h-125.156v153.6h119.467c11.378 0 22.756 11.378 22.756 22.756v108.089c5.689 130.844 85.333 210.489 210.489 210.489h125.156v-142.222h-79.644c-22.756 0-51.2 0-73.956-22.756-17.067-17.067-17.067-39.822-17.067-62.578v-91.022c0-11.378 11.378-22.756 22.756-22.756z" />
20
+ <glyph unicode="&#xe90a;" glyph-name="wd-instagram-feed" d="M711.111 954.311h-403.911c-164.978 0-307.2-136.533-307.2-307.2v-403.911c0-170.667 136.533-307.2 307.2-307.2h403.911c170.667 0 307.2 136.533 307.2 307.2v403.911c0 170.667-136.533 307.2-307.2 307.2zM972.8 243.2c0-147.911-119.467-261.689-261.689-261.689h-403.911c-147.911 0-261.689 119.467-261.689 261.689v403.911c0 147.911 119.467 261.689 261.689 261.689h403.911c147.911 0 261.689-119.467 261.689-261.689v-403.911zM512 686.933c-130.844 0-238.933-108.089-238.933-238.933s108.089-238.933 238.933-238.933c130.844 0 238.933 108.089 238.933 238.933s-108.089 238.933-238.933 238.933zM512 248.889c-108.089 0-193.422 85.333-193.422 193.422s85.333 199.111 193.422 199.111 193.422-85.333 193.422-193.422-85.333-199.111-193.422-199.111zM836.267 738.133c0-18.851-15.282-34.133-34.133-34.133s-34.133 15.282-34.133 34.133c0 18.851 15.282 34.133 34.133 34.133s34.133-15.282 34.133-34.133z" />
21
+ </font></defs></svg>
elementor/styles/fonts/twbb-icons.ttf ADDED
Binary file
elementor/styles/fonts/twbb-icons.woff ADDED
Binary file
elementor/widget.php ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Created by PhpStorm.
4
+ * User: mher
5
+ * Date: 10/19/18
6
+ * Time: 4:00 PM
7
+ */
8
+
9
+ class WDIElementorWidget extends \Elementor\Widget_Base {
10
+ private $feed_options = array();
11
+ private $default_feed = '0';
12
+
13
+ /**
14
+ * Get widget name.
15
+ *
16
+ * @return string Widget name.
17
+ */
18
+ public function get_name(){
19
+ return 'wdi-elementor';
20
+ }
21
+
22
+ /**
23
+ * Get widget title.
24
+ *
25
+ * @return string Widget title.
26
+ */
27
+ public function get_title(){
28
+ return __('Instagram Feed', 'wd-instagram-feed');
29
+ }
30
+
31
+ /**
32
+ * Get widget icon.
33
+ *
34
+ * @return string Widget icon.
35
+ */
36
+ public function get_icon(){
37
+ return 'twbb-wd-instagram-feed twbb-widget-icon';
38
+ }
39
+
40
+ /**
41
+ * Get widget categories.
42
+ *
43
+ * @return array Widget categories.
44
+ */
45
+ public function get_categories(){
46
+ return ['tenweb-widgets'];
47
+ }
48
+
49
+ /**
50
+ * Register widget controls.
51
+ */
52
+ protected function _register_controls(){
53
+ $this->set_options();
54
+ $this->start_controls_section(
55
+ 'wdi_general',
56
+ [
57
+ 'label' => __('General', 'wd-instagram-feed'),
58
+ ]
59
+ );
60
+
61
+ $this->add_control(
62
+ 'wdi_feeds',
63
+ [
64
+ 'label' => __('Select Feed', 'wd-instagram-feed'),
65
+ 'label_block' => true,
66
+ 'description' => __('', 'wd-instagram-feed'),
67
+ 'type' => \Elementor\Controls_Manager::SELECT,
68
+ 'default' => $this->default_feed,
69
+ 'options' => $this->feed_options
70
+ ]
71
+ );
72
+
73
+ $this->end_controls_section();
74
+ }
75
+
76
+ /**
77
+ * Render widget output on the frontend.
78
+ */
79
+ protected function render(){
80
+ $settings = $this->get_settings_for_display();
81
+ if(!empty($settings['wdi_feeds'])) {
82
+ echo wdi_feed(array('id' => $settings['wdi_feeds']));
83
+ } else {
84
+ echo __('No feed. Create and publish a feed to display it.', "wd-instagram-feed");
85
+ }
86
+ }
87
+
88
+ public function set_options(){
89
+ require_once WDI_DIR . "/admin/models/WDIModelEditorShortcode.php";
90
+ $model = new WDIModelEditorShortcode();
91
+ $rows = $model->get_row_data();
92
+ if(!empty($rows)) {
93
+ foreach($rows as $row) {
94
+ $this->feed_options[$row->id] = $row->feed_name;
95
+ }
96
+ } else {
97
+ $this->feed_options = array('0' => 'No Feed');
98
+ }
99
+
100
+ reset($this->feed_options);
101
+ $this->default_feed = key($this->feed_options);
102
+ }
103
+ }
104
+
105
+ \Elementor\Plugin::instance()->widgets_manager->register_widget_type(new WDIElementorWidget());
framework/WDILibrary.php CHANGED
@@ -1153,6 +1153,40 @@ class WDILibrary {
1153
 
1154
  return $wdi_options['wdi_access_token'];
1155
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1156
  ////////////////////////////////////////////////////////////////////////////////////////
1157
  // Private Methods //
1158
  ////////////////////////////////////////////////////////////////////////////////////////
1153
 
1154
  return $wdi_options['wdi_access_token'];
1155
  }
1156
+
1157
+
1158
+ public static function localize_script($object_name, $l10n){
1159
+ foreach ( (array) $l10n as $key => $value ) {
1160
+ if ( !is_scalar($value) )
1161
+ continue;
1162
+
1163
+ $l10n[$key] = html_entity_decode( (string) $value, ENT_QUOTES, 'UTF-8');
1164
+ }
1165
+
1166
+ $script = "var $object_name = " . wp_json_encode( $l10n ) . ';';
1167
+ $script = "<script>" . $script . "</script>";
1168
+ echo $script;
1169
+ }
1170
+
1171
+ public static function elementor_is_active(){
1172
+
1173
+ if((isset($_REQUEST['action']) && in_array($_REQUEST['action'], array('elementor', 'elementor_ajax'))) || (isset($_REQUEST['elementor-preview']))) {
1174
+ return true;
1175
+ }
1176
+
1177
+ return false;
1178
+ }
1179
+
1180
+ public static function is_ajax(){
1181
+
1182
+ //todo add themes
1183
+ if(defined('DOING_AJAX') && DOING_AJAX) {
1184
+ return true;
1185
+ }
1186
+
1187
+ return false;
1188
+ }
1189
+
1190
  ////////////////////////////////////////////////////////////////////////////////////////
1191
  // Private Methods //
1192
  ////////////////////////////////////////////////////////////////////////////////////////
frontend/shortcode.php CHANGED
@@ -20,8 +20,12 @@ function wdi_feed($atts, $widget_params = '')
20
 
21
  ob_start();
22
  global $wdi_feed_counter;
 
 
 
 
 
23
 
24
- if (defined('DOING_AJAX') && DOING_AJAX) {
25
  if ($wdi_feed_counter == 0) {
26
 
27
  $wdi_feed_counter = rand(1000, 9999);
@@ -29,11 +33,9 @@ function wdi_feed($atts, $widget_params = '')
29
  $wdi_feed_counter_init = $wdi_feed_counter;
30
  }
31
 
32
- wdi_load_frontend_scripts_styles_ajax();
33
  } else {
34
-
35
  wdi_load_frontend_scripts();
36
- wdi_load_frontend_styles();
37
  }
38
 
39
 
@@ -165,186 +167,179 @@ function wdi_feed($atts, $widget_params = '')
165
  }
166
 
167
 
168
- function wdi_load_frontend_scripts()
169
- {
170
- wp_enqueue_script('underscore');
171
-
172
- if(WDI_MINIFY === true){
173
- wp_enqueue_script('wdi_instagram', WDI_URL . '/js/wdi_instagram.min.js', array("jquery"), WDI_VERSION, true);
174
- wp_enqueue_script('wdi_frontend', WDI_URL . '/js/wdi_frontend.min.js', array("jquery", 'wdi_instagram', 'underscore'), WDI_VERSION, true);
175
- wp_enqueue_script('wdi_responsive', WDI_URL . '/js/wdi_responsive.min.js', array("jquery", "wdi_frontend"), WDI_VERSION, true);
176
- }else{
177
- wp_enqueue_script('wdi_instagram', WDI_URL . '/js/wdi_instagram.js', array("jquery"), WDI_VERSION, true);
178
- wp_enqueue_script('wdi_frontend', WDI_URL . '/js/wdi_frontend.js', array("jquery", 'wdi_instagram', 'underscore'), WDI_VERSION, true);
179
- wp_enqueue_script('wdi_responsive', WDI_URL . '/js/wdi_responsive.js', array("jquery", "wdi_frontend"), WDI_VERSION, true);
180
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
181
 
182
  $wdi_token_error_flag = get_option("wdi_token_error_flag");
183
  wp_localize_script("wdi_frontend", 'wdi_ajax', array(
184
  'ajax_url' => admin_url('admin-ajax.php'),
185
  'wdi_nonce' => wp_create_nonce("wdi_cache"),
186
- 'WDI_MINIFY'=>(WDI_MINIFY) ? 'true' : 'false',
187
- ), WDI_VERSION);
188
  wp_localize_script("wdi_frontend", 'wdi_url', array('plugin_url' => WDI_URL . '/',
189
- 'ajax_url' => admin_url('admin-ajax.php')), WDI_VERSION);
190
 
191
  $user_is_admin = current_user_can('manage_options');
192
- $wdi_token_error_flag = get_option("wdi_token_error_flag");
193
  wp_localize_script("wdi_frontend", 'wdi_front_messages',
194
  array('connection_error' => __('Connection Error, try again later :(', 'wd-instagram-feed'),
195
  'user_not_found' => __('Username not found', 'wd-instagram-feed'),
196
  'network_error' => __('Network error, please try again later :(', 'wd-instagram-feed'),
197
  'hashtag_nodata' => __('There is no data for that hashtag', 'wd-instagram-feed'),
198
  'filter_title' => __('Click to filter images by this user', 'wd-instagram-feed'),
199
- 'invalid_users_format' => __('Provided feed users are invalid or obsolete for this version of plugin','wd-instagram-feed'),
200
  'feed_nomedia' => __('There is no media in this feed', 'wd-instagram-feed'),
201
  'follow' => __('Follow', 'wd-instagram-feed'),
202
  'show_alerts' => $user_is_admin,
203
  'wdi_token_flag_nonce' => wp_create_nonce(''),
204
  'wdi_token_error_flag' => $wdi_token_error_flag
205
- ), WDI_VERSION);
206
-
207
-
208
- wdi_front_end_scripts();
209
- }
210
 
211
-
212
-
213
- add_action('wp_ajax_wdi_token_flag', 'wdi_token_flag');
214
- add_action('wp_ajax_nopriv_wdi_token_flag', 'wdi_token_flag');
215
- function wdi_token_flag() {
216
- if (check_ajax_referer('', 'wdi_token_flag_nonce', false)){
217
- add_option("wdi_token_error_flag", 1);
218
- }
219
- }
220
- add_action('wp_ajax_wdi_delete_token_flag', 'wdi_delete_token_flag');
221
- add_action('wp_ajax_nopriv_wdi_delete_token_flag', 'wdi_delete_token_flag');
222
- function wdi_delete_token_flag() {
223
- if (check_ajax_referer('', 'wdi_token_flag_nonce', false)){
224
- delete_option("wdi_token_error_flag");
225
  }
 
226
  }
227
 
228
- function wdi_load_frontend_styles()
229
- {
230
  global $wdi_options;
231
- if(WDI_MINIFY === true){
232
- wp_register_style('wdi_frontend_thumbnails', WDI_URL . '/css/wdi_frontend.min.css', array(), WDI_VERSION);
233
- }else{
234
- wp_register_style('wdi_frontend_thumbnails', WDI_URL . '/css/wdi_frontend.css', array(), WDI_VERSION);
235
- }
236
 
237
 
238
  wp_enqueue_style('wdi_frontend_thumbnails');
 
239
  if(empty($wdi_options['wdi_disable_fa'])) {
240
  wp_register_style('font-awesome', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css', array(), WDI_VERSION);
241
  wp_enqueue_style('font-awesome');
242
  }
243
- }
244
-
245
-
246
- ////////////////////////////GALLERY BOX//////////////////////////////
247
- function wdi_front_end_scripts()
248
- {
249
- /* ttt!!! petq chi*/
250
- /*
251
- global $wp_scripts;
252
- if (isset($wp_scripts->registered['jquery'])) {
253
- $jquery = $wp_scripts->registered['jquery'];
254
- if (!isset($jquery->ver) OR version_compare($jquery->ver, '1.8.2', '<')) {
255
- wp_deregister_script('jquery');
256
- wp_register_script('jquery', FALSE, array('jquery-core', 'jquery-migrate'), '1.10.2' );
257
- }
258
- }
259
- */
260
- // Styles/Scripts for popup.
261
- wp_enqueue_script('jquery-mobile', WDI_FRONT_URL . '/js/gallerybox/jquery.mobile.js', array('jquery'), WDI_VERSION);
262
- //wp_enqueue_script('jquery-mCustomScrollbar', WDI_FRONT_URL . '/js/gallerybox/jquery.mCustomScrollbar.concat.min.js', array('jquery'), WDI_VERSION);
263
- wp_enqueue_script('jquery-fullscreen', WDI_FRONT_URL . '/js/gallerybox/jquery.fullscreen-0.4.1.js', array('jquery'), WDI_VERSION);
264
 
265
- if(WDI_MINIFY === true){
266
- //wp_enqueue_style('wdi_mCustomScrollbar', WDI_FRONT_URL . '/css/gallerybox/jquery.mCustomScrollbar.min.css', array(), WDI_VERSION);
267
- /*ttt!!! gallery fullscreeni het conflict chka ?? arje stugel ete fullscreen script ka, apa el chavelacnel*/
268
- wp_enqueue_script('wdi_gallery_box', WDI_FRONT_URL . '/js/gallerybox/wdi_gallery_box.min.js', array('jquery'), WDI_VERSION);
269
- }else{
270
- //wp_enqueue_style('wdi_mCustomScrollbar', WDI_FRONT_URL . '/css/gallerybox/jquery.mCustomScrollbar.css', array(), WDI_VERSION);
271
- /*ttt!!! gallery fullscreeni het conflict chka ?? arje stugel ete fullscreen script ka, apa el chavelacnel*/
272
- wp_enqueue_script('wdi_gallery_box', WDI_FRONT_URL . '/js/gallerybox/wdi_gallery_box.js', array('jquery'), WDI_VERSION);
273
- }
274
 
275
- wp_localize_script('wdi_gallery_box', 'wdi_objectL10n', array(
276
- 'wdi_field_required' => __('Field is required.', "wd-instagram-feed"),
277
- 'wdi_mail_validation' => __('This is not a valid email address.', "wd-instagram-feed"),
278
- 'wdi_search_result' => __('There are no images matching your search.', "wd-instagram-feed"),
279
- ));
 
 
 
280
 
 
 
281
  }
282
 
283
  /*load all scripts and styles directly without dependency on jquery*/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
284
 
285
- function wdi_load_frontend_scripts_styles_ajax()
286
- {
287
-
288
- wp_dequeue_script('jquery');
289
- wp_enqueue_script('underscore');
290
 
291
- if(WDI_MINIFY === true){
292
- wp_enqueue_script('wdi_instagram', WDI_FRONT_URL . '/js/wdi_instagram.min.js', array(), WDI_VERSION, true);
293
- wp_enqueue_script('wdi_frontend', WDI_FRONT_URL . '/js/wdi_frontend.min.js', array('wdi_instagram', 'underscore'), WDI_VERSION, true);
294
- wp_enqueue_script('wdi_responsive', WDI_FRONT_URL . '/js/wdi_responsive.min.js', array("wdi_instagram"), WDI_VERSION, true);
295
- }else{
296
- wp_enqueue_script('wdi_instagram', WDI_FRONT_URL . '/js/wdi_instagram.js', array(), WDI_VERSION, true);
297
- wp_enqueue_script('wdi_frontend', WDI_FRONT_URL . '/js/wdi_frontend.js', array('wdi_instagram', 'underscore'), WDI_VERSION, true);
298
- wp_enqueue_script('wdi_responsive', WDI_FRONT_URL . '/js/wdi_responsive.js', array("wdi_instagram"), WDI_VERSION, true);
299
  }
300
 
 
 
 
 
301
 
302
- global $wdi_feed_counter_init;
303
- $wdi_feed_counter_init = isset($wdi_feed_counter_init) ? $wdi_feed_counter_init : 0;
304
- wp_localize_script("wdi_frontend", 'wdi_feed_counter_init', array('wdi_feed_counter_init' => $wdi_feed_counter_init), WDI_VERSION);
305
-
306
- wp_localize_script("wdi_frontend", 'wdi_ajax', array('ajax_url' => admin_url('admin-ajax.php'), 'ajax_response' => 1), WDI_VERSION);
307
- wp_localize_script("wdi_frontend", 'wdi_url', array('plugin_url' => WDI_URL . '/',
308
- 'ajax_url' => admin_url('admin-ajax.php')), WDI_VERSION);
309
-
310
- $user_is_admin = current_user_can('manage_options');
311
 
312
- wp_localize_script("wdi_frontend", 'wdi_front_messages',
313
- array('connection_error' => __('Connection Error, try again later :(', 'wd-instagram-feed'),
314
- 'user_not_found' => __('Username not found', 'wd-instagram-feed'),
315
- 'network_error' => __('Network error, please try again later :(', 'wd-instagram-feed'),
316
- 'hashtag_nodata' => __('There is no data for that hashtag', 'wd-instagram-feed'),
317
- 'filter_title' => __('Click to filter images by this user', 'wd-instagram-feed'),
318
- 'invalid_users_format' => __('Provided feed users are invalid or obsolete for this version of plugin','wd-instagram-feed'),
319
- 'feed_nomedia' => __('There is no media in this feed', 'wd-instagram-feed'),
320
- 'follow' => __('Follow', 'wd-instagram-feed'),
321
- 'show_alerts' => $user_is_admin,
322
- ), WDI_VERSION);
323
 
324
- // Styles/Scripts for popup.
325
- wp_enqueue_script('jquery-mobile', WDI_FRONT_URL . '/js/gallerybox/jquery.mobile.js', array(), WDI_VERSION);
326
- //wp_enqueue_script('jquery-mCustomScrollbar', WDI_FRONT_URL . '/js/gallerybox/jquery.mCustomScrollbar.concat.min.js', array(), WDI_VERSION);
327
- wp_enqueue_script('jquery-fullscreen', WDI_FRONT_URL . '/js/gallerybox/jquery.fullscreen-0.4.1.js', array(), WDI_VERSION);
328
 
329
- if(WDI_MINIFY === true) {
330
- //wp_enqueue_style('wdi_mCustomScrollbar', WDI_FRONT_URL . '/css/gallerybox/jquery.mCustomScrollbar.min.css', array(), WDI_VERSION);
331
- /*ttt!!! gallery fullscreeni het conflict chka ?? arje stugel ete fullscreen script ka, apa el chavelacnel*/
332
- wp_enqueue_script('wdi_gallery_box', WDI_FRONT_URL . '/js/gallerybox/wdi_gallery_box.min.js', array(), WDI_VERSION);
333
- } else {
334
- //wp_enqueue_style('wdi_mCustomScrollbar', WDI_FRONT_URL . '/css/gallerybox/jquery.mCustomScrollbar.css', array(), WDI_VERSION);
335
- /*ttt!!! gallery fullscreeni het conflict chka ?? arje stugel ete fullscreen script ka, apa el chavelacnel*/
336
- wp_enqueue_script('wdi_gallery_box', WDI_FRONT_URL . '/js/gallerybox/wdi_gallery_box.js', array(), WDI_VERSION);
337
  }
338
 
339
- wp_localize_script('wdi_gallery_box', 'wdi_objectL10n', array(
340
- 'wdi_field_required' => __('Field is required.', "wd-instagram-feed"),
341
- 'wdi_mail_validation' => __('This is not a valid email address.', "wd-instagram-feed"),
342
- 'wdi_search_result' => __('There are no images matching your search.', "wd-instagram-feed"),
343
- ));
344
 
345
 
346
- wdi_load_frontend_styles();
347
 
 
 
 
 
 
 
 
 
 
 
 
 
 
348
  }
349
 
350
 
20
 
21
  ob_start();
22
  global $wdi_feed_counter;
23
+ require_once(WDI_DIR . '/framework/WDILibrary.php');
24
+
25
+ wdi_register_frontend_scripts();
26
+
27
+ if(WDILibrary::is_ajax() || WDILibrary::elementor_is_active()) {
28
 
 
29
  if ($wdi_feed_counter == 0) {
30
 
31
  $wdi_feed_counter = rand(1000, 9999);
33
  $wdi_feed_counter_init = $wdi_feed_counter;
34
  }
35
 
36
+ //load scripts and styles from view files
37
  } else {
 
38
  wdi_load_frontend_scripts();
 
39
  }
40
 
41
 
167
  }
168
 
169
 
170
+ function wdi_register_frontend_scripts(){
171
+
172
+ if(WDI_MINIFY === true) {
173
+ wp_register_script('wdi_instagram', WDI_URL . '/js/wdi_instagram.min.js', array("jquery"), WDI_VERSION, true);
174
+ wp_register_script('wdi_frontend', WDI_URL . '/js/wdi_frontend.min.js', array("jquery", 'wdi_instagram', 'underscore'), WDI_VERSION, true);
175
+ wp_register_script('wdi_responsive', WDI_URL . '/js/wdi_responsive.min.js', array("jquery", "wdi_frontend"), WDI_VERSION, true);
176
+ } else {
177
+ wp_register_script('wdi_instagram', WDI_URL . '/js/wdi_instagram.js', array("jquery"), WDI_VERSION, true);
178
+ wp_register_script('wdi_frontend', WDI_URL . '/js/wdi_frontend.js', array("jquery", 'wdi_instagram', 'underscore'), WDI_VERSION, true);
179
+ wp_register_script('wdi_responsive', WDI_URL . '/js/wdi_responsive.js', array("jquery", "wdi_frontend"), WDI_VERSION, true);
180
+ }
181
+
182
+ ////////////////////////////GALLERY BOX//////////////////////////////
183
+ // Styles/Scripts for popup.
184
+ wp_register_script('jquery-mobile', WDI_FRONT_URL . '/js/gallerybox/jquery.mobile.js', array('jquery'), WDI_VERSION);
185
+ //wp_enqueue_script('jquery-mCustomScrollbar', WDI_FRONT_URL . '/js/gallerybox/jquery.mCustomScrollbar.concat.min.js', array('jquery'), WDI_VERSION);
186
+ wp_register_script('jquery-fullscreen', WDI_FRONT_URL . '/js/gallerybox/jquery.fullscreen-0.4.1.js', array('jquery'), WDI_VERSION);
187
+
188
+ if(WDI_MINIFY === true) {
189
+ //wp_enqueue_style('wdi_mCustomScrollbar', WDI_FRONT_URL . '/css/gallerybox/jquery.mCustomScrollbar.min.css', array(), WDI_VERSION);
190
+ /*ttt!!! gallery fullscreeni het conflict chka ?? arje stugel ete fullscreen script ka, apa el chavelacnel*/
191
+ wp_register_script('wdi_gallery_box', WDI_FRONT_URL . '/js/gallerybox/wdi_gallery_box.min.js', array('jquery'), WDI_VERSION);
192
+ } else {
193
+ //wp_enqueue_style('wdi_mCustomScrollbar', WDI_FRONT_URL . '/css/gallerybox/jquery.mCustomScrollbar.css', array(), WDI_VERSION);
194
+ /*ttt!!! gallery fullscreeni het conflict chka ?? arje stugel ete fullscreen script ka, apa el chavelacnel*/
195
+ wp_register_script('wdi_gallery_box', WDI_FRONT_URL . '/js/gallerybox/wdi_gallery_box.js', array('jquery'), WDI_VERSION);
196
+ }
197
+
198
+ wp_localize_script('wdi_gallery_box', 'wdi_objectL10n', array(
199
+ 'wdi_field_required' => __('Field is required.', "wd-instagram-feed"),
200
+ 'wdi_mail_validation' => __('This is not a valid email address.', "wd-instagram-feed"),
201
+ 'wdi_search_result' => __('There are no images matching your search.', "wd-instagram-feed"),
202
+ ));
203
 
204
  $wdi_token_error_flag = get_option("wdi_token_error_flag");
205
  wp_localize_script("wdi_frontend", 'wdi_ajax', array(
206
  'ajax_url' => admin_url('admin-ajax.php'),
207
  'wdi_nonce' => wp_create_nonce("wdi_cache"),
208
+ 'WDI_MINIFY' => (WDI_MINIFY) ? 'true' : 'false',
209
+ ));
210
  wp_localize_script("wdi_frontend", 'wdi_url', array('plugin_url' => WDI_URL . '/',
211
+ 'ajax_url' => admin_url('admin-ajax.php')));
212
 
213
  $user_is_admin = current_user_can('manage_options');
 
214
  wp_localize_script("wdi_frontend", 'wdi_front_messages',
215
  array('connection_error' => __('Connection Error, try again later :(', 'wd-instagram-feed'),
216
  'user_not_found' => __('Username not found', 'wd-instagram-feed'),
217
  'network_error' => __('Network error, please try again later :(', 'wd-instagram-feed'),
218
  'hashtag_nodata' => __('There is no data for that hashtag', 'wd-instagram-feed'),
219
  'filter_title' => __('Click to filter images by this user', 'wd-instagram-feed'),
220
+ 'invalid_users_format' => __('Provided feed users are invalid or obsolete for this version of plugin', 'wd-instagram-feed'),
221
  'feed_nomedia' => __('There is no media in this feed', 'wd-instagram-feed'),
222
  'follow' => __('Follow', 'wd-instagram-feed'),
223
  'show_alerts' => $user_is_admin,
224
  'wdi_token_flag_nonce' => wp_create_nonce(''),
225
  'wdi_token_error_flag' => $wdi_token_error_flag
226
+ ));
 
 
 
 
227
 
228
+ //styles
229
+ if(WDI_MINIFY === true) {
230
+ wp_register_style('wdi_frontend_thumbnails', WDI_URL . '/css/wdi_frontend.min.css', array(), WDI_VERSION);
231
+ } else {
232
+ wp_register_style('wdi_frontend_thumbnails', WDI_URL . '/css/wdi_frontend.css', array(), WDI_VERSION);
 
 
 
 
 
 
 
 
 
233
  }
234
+ wdi_load_frontend_styles();
235
  }
236
 
237
+ function wdi_load_frontend_styles(){
 
238
  global $wdi_options;
239
+ if(WDI_MINIFY === true) {
240
+ wp_register_style('wdi_frontend_thumbnails', WDI_URL . '/css/wdi_frontend.min.css', array(), WDI_VERSION);
241
+ } else {
242
+ wp_register_style('wdi_frontend_thumbnails', WDI_URL . '/css/wdi_frontend.css', array(), WDI_VERSION);
243
+ }
244
 
245
 
246
  wp_enqueue_style('wdi_frontend_thumbnails');
247
+
248
  if(empty($wdi_options['wdi_disable_fa'])) {
249
  wp_register_style('font-awesome', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css', array(), WDI_VERSION);
250
  wp_enqueue_style('font-awesome');
251
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
252
 
253
+ }
 
 
 
 
 
 
 
 
254
 
255
+ function wdi_load_frontend_scripts(){
256
+ wp_enqueue_script('underscore');
257
+ wp_enqueue_script('wdi_instagram');
258
+ wp_enqueue_script('wdi_frontend');
259
+ wp_enqueue_script('wdi_responsive');
260
+ wp_enqueue_script('wdi_gallery_box');
261
+ wp_enqueue_script('jquery-mobile');
262
+ wp_enqueue_script('jquery-fullscreen');
263
 
264
+ wp_enqueue_style('wdi_frontend_thumbnails');
265
+ wp_enqueue_style('font-awesome');
266
  }
267
 
268
  /*load all scripts and styles directly without dependency on jquery*/
269
+ function wdi_load_frontend_scripts_ajax($additional_scripts = array(), $additional_styles = array()){
270
+ global $wp_scripts;
271
+ global $wp_styles;
272
+
273
+ $scripts_handles = array(
274
+ 'underscore',
275
+ 'wdi_instagram',
276
+ 'wdi_responsive',
277
+ 'wdi_frontend',
278
+ 'wdi_gallery_box',
279
+ 'jquery-mobile',
280
+ 'jquery-fullscreen'
281
+ );
282
+
283
+ $scripts_handles = array_merge($scripts_handles, $additional_scripts);
284
+ $script_tag = '<script src="%s?ver=%s"></script>';
285
+
286
+ foreach($scripts_handles as $handle) {
287
+ if(!isset($wp_scripts->registered[$handle])) {
288
+ continue;
289
+ }
290
 
291
+ if(!empty($wp_scripts->registered[$handle]->extra['data'])) {
292
+ echo '<script>' . $wp_scripts->registered[$handle]->extra['data'] . '</script>';
293
+ }
 
 
294
 
295
+ if(strpos($wp_scripts->registered[$handle]->src, '/wp-includes/js/') === 0) {
296
+ echo sprintf($script_tag, $wp_scripts->base_url . $wp_scripts->registered[$handle]->src, $wp_scripts->registered[$handle]->ver);
297
+ } else {
298
+ echo sprintf($script_tag, $wp_scripts->registered[$handle]->src, $wp_scripts->registered[$handle]->ver);
299
+ }
 
 
 
300
  }
301
 
302
+ $styles_handles = array(
303
+ 'font-awesome',
304
+ 'wdi_frontend_thumbnails'
305
+ );
306
 
307
+ $styles_handles = array_merge($styles_handles, $additional_styles);
308
+ $style_tag = "<link rel='stylesheet' id='%s' href='%s?ver=%s' type='text/css' media='all' />";
 
 
 
 
 
 
 
309
 
310
+ foreach($styles_handles as $handle) {
311
+ if(!isset($wp_styles->registered[$handle])) {
312
+ continue;
313
+ }
 
 
 
 
 
 
 
314
 
315
+ if(!empty($wp_styles->registered[$handle]->extra['data'])) {
316
+ echo '<script>' . $wp_styles->registered[$handle]->extra['data'] . '</script>';
317
+ }
 
318
 
319
+ if(strpos($wp_styles->registered[$handle]->src, '/wp-includes/js/') === 0) {
320
+ echo sprintf($style_tag, $handle, $wp_styles->base_url . $wp_styles->registered[$handle]->src, $wp_styles->registered[$handle]->ver);
321
+ } else {
322
+ echo sprintf($style_tag, $handle, $wp_styles->registered[$handle]->src, $wp_styles->registered[$handle]->ver);
323
+ }
 
 
 
324
  }
325
 
326
+ }
 
 
 
 
327
 
328
 
 
329
 
330
+ add_action('wp_ajax_wdi_token_flag', 'wdi_token_flag');
331
+ add_action('wp_ajax_nopriv_wdi_token_flag', 'wdi_token_flag');
332
+ function wdi_token_flag() {
333
+ if (check_ajax_referer('', 'wdi_token_flag_nonce', false)){
334
+ add_option("wdi_token_error_flag", 1);
335
+ }
336
+ }
337
+ add_action('wp_ajax_wdi_delete_token_flag', 'wdi_delete_token_flag');
338
+ add_action('wp_ajax_nopriv_wdi_delete_token_flag', 'wdi_delete_token_flag');
339
+ function wdi_delete_token_flag() {
340
+ if (check_ajax_referer('', 'wdi_token_flag_nonce', false)){
341
+ delete_option("wdi_token_error_flag");
342
+ }
343
  }
344
 
345
 
frontend/views/WDIViewGalleryBox.php CHANGED
@@ -615,7 +615,7 @@ continue;
615
  <i class="wdi_comments_close_btn fa fa-arrow-<?php echo $theme_row->lightbox_comment_pos; ?>"></i>
616
  </div>
617
 
618
- <form id="wdi_comment_form" style="display:none !important;"> method="post" action="<?php echo $popup_url; ?>"><!--Deprecated-->
619
  <p><label for="wdi_name"><?php echo __('Name', "wd-instagram-feed"); ?> * </label></p>
620
  <p><input type="text" name="wdi_name" id="wdi_name" <?php echo ((get_current_user_id() != 0) ? 'readonly="readonly"' : ''); ?>
621
  value="<?php echo ((get_current_user_id() != 0) ? get_userdata(get_current_user_id())->display_name : $wdi_name); ?>" /></p>
615
  <i class="wdi_comments_close_btn fa fa-arrow-<?php echo $theme_row->lightbox_comment_pos; ?>"></i>
616
  </div>
617
 
618
+ <form id="wdi_comment_form" style="display:none !important;" method="post" action="<?php echo $popup_url; ?>"><!--Deprecated-->
619
  <p><label for="wdi_name"><?php echo __('Name', "wd-instagram-feed"); ?> * </label></p>
620
  <p><input type="text" name="wdi_name" id="wdi_name" <?php echo ((get_current_user_id() != 0) ? 'readonly="readonly"' : ''); ?>
621
  value="<?php echo ((get_current_user_id() != 0) ? get_userdata(get_current_user_id())->display_name : $wdi_name); ?>" /></p>
frontend/views/WDIViewImageBrowser_view.php CHANGED
@@ -65,6 +65,7 @@ class WDIViewImageBrowser_view{
65
  }
66
  ?>
67
  </div>
 
68
  </div>
69
  <?php
70
 
@@ -79,17 +80,28 @@ class WDIViewImageBrowser_view{
79
  }
80
 
81
  $wdi_feed_counter = $this->model->wdi_feed_counter;
82
- $feed_row['access_token'] = WDILibrary::get_user_access_token($users);
83
  $feed_row['wdi_feed_counter'] = $wdi_feed_counter;
84
 
85
  wp_localize_script("wdi_frontend", 'wdi_feed_'.$wdi_feed_counter,array('feed_row'=>$feed_row,'data'=>array(),'usersData'=>array(),'dataCount'=>0));
86
  wp_localize_script("wdi_frontend", 'wdi_theme_' . $this->model->theme_row['id'], $this->model->theme_row);
87
  wp_localize_script("wdi_frontend", 'wdi_front',array('feed_counter'=>$wdi_feed_counter));
 
 
 
 
88
  }
89
 
90
 
91
  private function add_theme_styles(){
92
- wp_enqueue_style("wdi_default_theme",WDI_URL . '/css/default_theme.css',array(),WDI_VERSION);
 
 
 
 
 
 
 
93
  /*THIS METHOD FOR PAID VERSION*/
94
  }
95
 
65
  }
66
  ?>
67
  </div>
68
+ <div class="wdi_front_overlay"></div>
69
  </div>
70
  <?php
71
 
80
  }
81
 
82
  $wdi_feed_counter = $this->model->wdi_feed_counter;
83
+ $feed_row['access_token'] = WDILibrary::get_user_access_token($users);
84
  $feed_row['wdi_feed_counter'] = $wdi_feed_counter;
85
 
86
  wp_localize_script("wdi_frontend", 'wdi_feed_'.$wdi_feed_counter,array('feed_row'=>$feed_row,'data'=>array(),'usersData'=>array(),'dataCount'=>0));
87
  wp_localize_script("wdi_frontend", 'wdi_theme_' . $this->model->theme_row['id'], $this->model->theme_row);
88
  wp_localize_script("wdi_frontend", 'wdi_front',array('feed_counter'=>$wdi_feed_counter));
89
+
90
+ if(WDILibrary::is_ajax() || WDILibrary::elementor_is_active()) {
91
+ wdi_load_frontend_scripts_ajax();
92
+ }
93
  }
94
 
95
 
96
  private function add_theme_styles(){
97
+
98
+ if(WDILibrary::is_ajax() || WDILibrary::elementor_is_active()) {
99
+ $style_tag = "<link rel='stylesheet' id='%s' href='%s' type='text/css' media='all' />";
100
+ echo sprintf($style_tag, 'wdi_default_theme', WDI_URL . '/css/default_theme.css' . '?ver=' . WDI_VERSION);
101
+ } else {
102
+ wp_enqueue_style("wdi_default_theme",WDI_URL . '/css/default_theme.css',array(),WDI_VERSION);
103
+ }
104
+
105
  /*THIS METHOD FOR PAID VERSION*/
106
  }
107
 
frontend/views/WDIViewThumbnails_view.php CHANGED
@@ -113,6 +113,7 @@ class WDIViewThumbnails_view
113
  }
114
  ?>
115
  </div>
 
116
  </div>
117
  <?php
118
 
@@ -137,10 +138,21 @@ class WDIViewThumbnails_view
137
  wp_localize_script("wdi_frontend", 'wdi_feed_' . $wdi_feed_counter, array('feed_row' => $feed_row, 'data' => array(), 'usersData' => array(), 'dataCount' => 0));
138
  wp_localize_script("wdi_frontend", 'wdi_theme_' . $this->model->theme_row['id'], $this->model->theme_row);
139
  wp_localize_script("wdi_frontend", 'wdi_front', array('feed_counter' => $wdi_feed_counter));
 
 
 
 
140
  }
141
 
142
  private function add_theme_styles(){
143
- wp_enqueue_style("wdi_default_theme",WDI_URL . '/css/default_theme.css',array(),WDI_VERSION);
 
 
 
 
 
 
 
144
  /*THIS METHOD FOR PAID VERSION*/
145
  }
146
 
113
  }
114
  ?>
115
  </div>
116
+ <div class="wdi_front_overlay"></div>
117
  </div>
118
  <?php
119
 
138
  wp_localize_script("wdi_frontend", 'wdi_feed_' . $wdi_feed_counter, array('feed_row' => $feed_row, 'data' => array(), 'usersData' => array(), 'dataCount' => 0));
139
  wp_localize_script("wdi_frontend", 'wdi_theme_' . $this->model->theme_row['id'], $this->model->theme_row);
140
  wp_localize_script("wdi_frontend", 'wdi_front', array('feed_counter' => $wdi_feed_counter));
141
+
142
+ if(WDILibrary::is_ajax() || WDILibrary::elementor_is_active()) {
143
+ wdi_load_frontend_scripts_ajax();
144
+ }
145
  }
146
 
147
  private function add_theme_styles(){
148
+
149
+ if(WDILibrary::is_ajax() || WDILibrary::elementor_is_active()) {
150
+ $style_tag = "<link rel='stylesheet' id='%s' href='%s' type='text/css' media='all' />";
151
+ echo sprintf($style_tag, 'wdi_default_theme', WDI_URL . '/css/default_theme.css' . '?ver=' . WDI_VERSION);
152
+ } else {
153
+ wp_enqueue_style("wdi_default_theme",WDI_URL . '/css/default_theme.css',array(),WDI_VERSION);
154
+ }
155
+
156
  /*THIS METHOD FOR PAID VERSION*/
157
  }
158
 
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.3.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -502,6 +502,11 @@ Please make sure you don't have any important information before you proceed.
502
 
503
  == Changelog ==
504
 
 
 
 
 
 
505
  = 1.3.7 =
506
  New: Option to disable loading of Font-Awesome by the plugin
507
  Fixed: PHP notice in feed preview
4
  Requires at least: 3.9
5
  Requires PHP: 5.2
6
  Tested up to: 4.9
7
+ Stable tag: 1.3.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
502
 
503
  == Changelog ==
504
 
505
+ = 1.3.8 =
506
+ Changed: Links to docs
507
+ Fixed: Compatibility with Elementor
508
+ Added: wdi_display_shortcode_button filter
509
+
510
  = 1.3.7 =
511
  New: Option to disable loading of Font-Awesome by the plugin
512
  Fixed: PHP notice in feed preview
wd-instagram-feed.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Instagram Feed by 10Web
4
  Plugin URI: https://10web.io/plugins/wordpress-instagram-feed/
5
  Description: Instagram Feed by 10Web 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.3.7
7
  Author: 10Web
8
  Author URI: https://10Web.io
9
  License: GPLv2 or later
@@ -20,7 +20,7 @@ define("WDI_META", "_".WDI_VAR."_meta");
20
  //define("wdi",'wdi');
21
  define('WDI_FEED_TABLE','wdi_feeds');
22
  define('WDI_THEME_TABLE','wdi_themes');
23
- define('WDI_VERSION','1.3.7');
24
  define('WDI_IS_PRO','false');
25
  $wdi_minify = ((isset($_GET['wdi_no_minify']) && $_GET['wdi_no_minify'] == "true") ? false : true);
26
  define('WDI_MINIFY', $wdi_minify);
@@ -620,6 +620,11 @@ function wdi_register_widget(){
620
  add_filter('media_buttons_context', 'wdi_add_editor_button');
621
 
622
  function wdi_add_editor_button($context) {
 
 
 
 
 
623
  global $pagenow;
624
  if (in_array($pagenow, array('post.php', 'page.php', 'post-new.php', 'post-edit.php'))) {
625
  $context .= '
@@ -797,64 +802,59 @@ function wdi_wd_lib_init(){
797
  "titles" => array(
798
  array(
799
  "title" => __("Getting Instagram Access Token", "wd-instagram-feed"),
800
- "url" => "https://docs.10web.io/docs/wd-instagram-feed/getting-access-token"
801
  )
802
  )
803
  ),
804
  1 => array(
805
  "main_title" => __("Creating an Instagram Feed", "wd-instagram-feed"),
806
- "url" => "https://docs.10web.io/docs/wd-instagram-feed/creating-feed/creating-instagram-feed.html",
807
  "titles" => array(
808
  array(
809
  "title" => __("Thumbnails and Masonry Layouts", "wd-instagram-feed"),
810
- "url" => "https://docs.10web.io/docs/wd-instagram-feed/creating-feed/feed-layouts.html",
811
  ),
812
  array(
813
  "title" => __("Blog Style Layout", "wd-instagram-feed"),
814
- "url" => "https://docs.10web.io/docs/wd-instagram-feed/creating-feed/feed-layouts.html",
815
  ),
816
  array(
817
  "title" => __("Image Browser", "wd-instagram-feed"),
818
- "url" => "https://docs.10web.io/docs/wd-instagram-feed/creating-feed/feed-layouts.html",
819
  ),
820
  array(
821
  "title" => __("Lightbox Settings", "wd-instagram-feed"),
822
- "url" => "https://docs.10web.io/docs/wd-instagram-feed/creating-feed/lightbox-settings.html",
823
  ),
824
  array(
825
  "title" => __("Conditional Filters", "wd-instagram-feed"),
826
- "url" => "https://docs.10web.io/docs/wd-instagram-feed/creating-feed/conditional-filters.html",
827
  ),
828
  )
829
  ),
830
  2 => array(
831
  "main_title" => __("Publishing Instagram Feed", "wd-instagram-feed"),
832
- "url" => "https://docs.10web.io/docs/wd-instagram-feed/publishing-instagram-feed",
833
  "titles" => array(
834
  array(
835
  "title" => __("Publishing in a Page/Post", "wd-instagram-feed"),
836
- "url" => "https://docs.10web.io/docs/wd-instagram-feed/publishing-instagram-feed",
837
  ),
838
  array(
839
  "title" => __("Publishing as a Widget", "wd-instagram-feed"),
840
- "url" => "https://docs.10web.io/docs/wd-instagram-feed/publishing-instagram-feed",
841
  ),
842
  array(
843
  "title" => __("Publishing by PHP function", "wd-instagram-feed"),
844
- "url" => "https://docs.10web.io/docs/wd-instagram-feed/publishing-instagram-feed",
845
  ),
846
  )
847
  ),
848
  3 => array(
849
  "main_title" => __("Styling with Themes", "wd-instagram-feed"),
850
- "url" => "https://docs.10web.io/docs/wd-instagram-feed/theme-options",
851
- "titles" => array()
852
- ),
853
- 4 => array(
854
- "main_title" => __("Advanced customizing options", "wd-instagram-feed"),
855
- "url" => "https://docs.10web.io/docs/wd-instagram-feed/advanced-options",
856
  "titles" => array()
857
- ),
858
  ),
859
  "overview_welcome_image" => null,
860
  "video_youtube_id" => "ijdrpkVAfEw", // e.g. https://www.youtube.com/watch?v=ijdrpkVAfEw youtube id is the ijdrpkVAfEw
@@ -873,7 +873,7 @@ function wdi_wd_lib_init(){
873
  "display_overview" => false,
874
  );
875
 
876
- ten_web_init($wdi_wd_plugin_options);
877
 
878
  }
879
 
@@ -1027,4 +1027,14 @@ function wdi_privacy_policy($content){
1027
 
1028
  $content .= $pp_text;
1029
  return $content;
 
 
 
 
 
 
 
 
 
 
1030
  }
3
  Plugin Name: Instagram Feed by 10Web
4
  Plugin URI: https://10web.io/plugins/wordpress-instagram-feed/
5
  Description: Instagram Feed by 10Web 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.3.8
7
  Author: 10Web
8
  Author URI: https://10Web.io
9
  License: GPLv2 or later
20
  //define("wdi",'wdi');
21
  define('WDI_FEED_TABLE','wdi_feeds');
22
  define('WDI_THEME_TABLE','wdi_themes');
23
+ define('WDI_VERSION','1.3.8');
24
  define('WDI_IS_PRO','false');
25
  $wdi_minify = ((isset($_GET['wdi_no_minify']) && $_GET['wdi_no_minify'] == "true") ? false : true);
26
  define('WDI_MINIFY', $wdi_minify);
620
  add_filter('media_buttons_context', 'wdi_add_editor_button');
621
 
622
  function wdi_add_editor_button($context) {
623
+ $display = apply_filters('wdi_display_shortcode_button', true);
624
+ if($display === false){
625
+ return $context;
626
+ }
627
+
628
  global $pagenow;
629
  if (in_array($pagenow, array('post.php', 'page.php', 'post-new.php', 'post-edit.php'))) {
630
  $context .= '
802
  "titles" => array(
803
  array(
804
  "title" => __("Getting Instagram Access Token", "wd-instagram-feed"),
805
+ "url" => "https://help.10web.io/hc/en-us/articles/360016277532-Configuring-Instagram-Access-Token"
806
  )
807
  )
808
  ),
809
  1 => array(
810
  "main_title" => __("Creating an Instagram Feed", "wd-instagram-feed"),
811
+ "url" => "https://help.10web.io/hc/en-us/articles/360016497251-Creating-Instagram-Feed",
812
  "titles" => array(
813
  array(
814
  "title" => __("Thumbnails and Masonry Layouts", "wd-instagram-feed"),
815
+ "url" => "https://help.10web.io/hc/en-us/articles/360016277632",
816
  ),
817
  array(
818
  "title" => __("Blog Style Layout", "wd-instagram-feed"),
819
+ "url" => "https://help.10web.io/hc/en-us/articles/360016277632",
820
  ),
821
  array(
822
  "title" => __("Image Browser", "wd-instagram-feed"),
823
+ "url" => "https://help.10web.io/hc/en-us/articles/360016277632",
824
  ),
825
  array(
826
  "title" => __("Lightbox Settings", "wd-instagram-feed"),
827
+ "url" => "https://help.10web.io/hc/en-us/articles/360016277752",
828
  ),
829
  array(
830
  "title" => __("Conditional Filters", "wd-instagram-feed"),
831
+ "url" => "https://help.10web.io/hc/en-us/articles/360016497371",
832
  ),
833
  )
834
  ),
835
  2 => array(
836
  "main_title" => __("Publishing Instagram Feed", "wd-instagram-feed"),
837
+ "url" => "https://help.10web.io/hc/en-us/articles/360016497391",
838
  "titles" => array(
839
  array(
840
  "title" => __("Publishing in a Page/Post", "wd-instagram-feed"),
841
+ "url" => "https://help.10web.io/hc/en-us/articles/360016497391",
842
  ),
843
  array(
844
  "title" => __("Publishing as a Widget", "wd-instagram-feed"),
845
+ "url" => "https://help.10web.io/hc/en-us/articles/360016497391",
846
  ),
847
  array(
848
  "title" => __("Publishing by PHP function", "wd-instagram-feed"),
849
+ "url" => "https://help.10web.io/hc/en-us/articles/360016497391",
850
  ),
851
  )
852
  ),
853
  3 => array(
854
  "main_title" => __("Styling with Themes", "wd-instagram-feed"),
855
+ "url" => "https://help.10web.io/hc/en-us/articles/360016277832",
 
 
 
 
 
856
  "titles" => array()
857
+ )
858
  ),
859
  "overview_welcome_image" => null,
860
  "video_youtube_id" => "ijdrpkVAfEw", // e.g. https://www.youtube.com/watch?v=ijdrpkVAfEw youtube id is the ijdrpkVAfEw
873
  "display_overview" => false,
874
  );
875
 
876
+ ten_web_lib_init($wdi_wd_plugin_options);
877
 
878
  }
879
 
1027
 
1028
  $content .= $pp_text;
1029
  return $content;
1030
+ }
1031
+
1032
+
1033
+ /*ELEMENTOR*/
1034
+ add_action('plugins_loaded', 'wdi_elementor');
1035
+ function wdi_elementor(){
1036
+ if(defined('ELEMENTOR_VERSION')) {
1037
+ include_once 'elementor/elementor.php';
1038
+ WDIElementor::get_instance();
1039
+ }
1040
  }
wd/.gitignore ADDED
@@ -0,0 +1,2 @@
 
 
1
+ # Created by .ignore support plugin (hsz.mobi)
2
+ .idea/*
wd/README.md CHANGED
@@ -5,10 +5,26 @@ Version: 1.0.13
5
  Usage:
6
 
7
  Copy and paste wd library into your plugin folder.
8
- In your plugin main file check if library main TenWeb class doesn't exist, include it
9
- if( !class_exists("TenWeb") ){
10
- require_once(PATH_TO_YOUR_PLUGIN_DIR . '/wd/start.php');
11
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
 
13
  Then call dorado_web_init($options) function.
14
  $options = array (
5
  Usage:
6
 
7
  Copy and paste wd library into your plugin folder.
8
+ add_action('init', array($this, 'init_free_users_lib'), 8);
9
+ public function init_free_users_lib() {
10
+ add_filter('tenweb_free_users_lib_path', array($this, 'tenweb_lib_path'));
11
+ }
12
+
13
+ public function tenweb_lib_path($path) {
14
+ // The version of WD Lib
15
+ $version = '1.1.0';
16
+ if (!isset($path['version']) || version_compare($path['version'], $version) === -1) {
17
+ $path['version'] = $version;
18
+ $path['path'] = $this->plugin_dir;
19
+ }
20
+ return $path;
21
+ }
22
+
23
+ In your plugin main file check if library main TenWebLib class doesn't exist, include it
24
+ if (!class_exists("TenWebLib")) {
25
+ $plugin_dir = apply_filters('tenweb_free_users_lib_path', array('version' => '1.1.0', 'path' => $this->plugin_dir));
26
+ require_once($plugin_dir['path'] . '/wd/start.php');
27
+ }
28
 
29
  Then call dorado_web_init($options) function.
30
  $options = array (
wd/assets/css/deactivate_popup.css CHANGED
@@ -1,8 +1,4 @@
1
- .wd-bwg-reasons:nth-child(3) {
2
- display: none;
3
- }
4
-
5
- .wd-opacity{
6
  position: fixed;
7
  top: 0px;
8
  bottom: 0px;
@@ -14,7 +10,7 @@
14
  display: none;
15
  }
16
 
17
- .wd-deactivate-popup{
18
  position: fixed;
19
  top: 0px;
20
  bottom: 0px;
@@ -30,24 +26,24 @@
30
  }
31
 
32
 
33
- .wd-deactivate-popup-header{
34
  border-bottom: 1px solid #ccc;
35
  padding: 18px 40px;
36
  font-size: 16px;
37
  background: rgba(221, 221, 221, 0.14);
38
  }
39
- .wd-deactivate-popup-body{
40
  padding: 20px 40px;
41
  border-bottom: 1px solid #ccc;
42
  }
43
- .wd-deactivate-popup-body input[type=text]{
44
  width: 220px;
45
  }
46
- .wd-deactivate-popup-body textarea{
47
  width: 100%;
48
  }
49
 
50
- .wd-btns{
51
  position: absolute;
52
  bottom: 19px;
53
  right: 19px
@@ -57,27 +53,23 @@
57
  margin-top: 20px;
58
  }
59
 
60
- .wd-additional-active{
61
  background: rgba(204, 204, 204, 0.18);
62
  padding: 15px;
63
  margin: 14px 0px 5px;
64
  }
65
- .wd-popup-active1{
66
  height: 583px !important;
67
  }
68
 
69
- .wd-popup-active2{
70
  height: 426px !important
71
  }
72
 
73
- .wd-popup-active3{
74
- height: 479px !important
75
- }
76
-
77
- .wd-popup-active4{
78
  height: 340px !important
79
  }
80
- .wd-deactivate-popup-opacity{
81
  width: 100%;
82
  height: 100%;
83
  background: #D9D9D9;
@@ -87,7 +79,7 @@
87
  display: none;
88
  }
89
 
90
- .wd-deactivate-popup-opacity .wd-img-loader{
91
  position: absolute;
92
  top: 0;
93
  left: 0;
@@ -97,7 +89,7 @@
97
  z-index: 63;
98
  }
99
 
100
- .wd-deactivate-popup-close-btn{
101
  background-image: url(img/close.svg);
102
  background-repeat: no-repeat;
103
  background-size: 16px;
1
+ .tenweb-opacity{
 
 
 
 
2
  position: fixed;
3
  top: 0px;
4
  bottom: 0px;
10
  display: none;
11
  }
12
 
13
+ .tenweb-deactivate-popup{
14
  position: fixed;
15
  top: 0px;
16
  bottom: 0px;
26
  }
27
 
28
 
29
+ .tenweb-deactivate-popup-header{
30
  border-bottom: 1px solid #ccc;
31
  padding: 18px 40px;
32
  font-size: 16px;
33
  background: rgba(221, 221, 221, 0.14);
34
  }
35
+ .tenweb-deactivate-popup-body{
36
  padding: 20px 40px;
37
  border-bottom: 1px solid #ccc;
38
  }
39
+ .tenweb-deactivate-popup-body input[type=text]{
40
  width: 220px;
41
  }
42
+ .tenweb-deactivate-popup-body textarea{
43
  width: 100%;
44
  }
45
 
46
+ .tenweb-btns{
47
  position: absolute;
48
  bottom: 19px;
49
  right: 19px
53
  margin-top: 20px;
54
  }
55
 
56
+ .tenweb-additional-active{
57
  background: rgba(204, 204, 204, 0.18);
58
  padding: 15px;
59
  margin: 14px 0px 5px;
60
  }
61
+ .tenweb-popup-active1{
62
  height: 583px !important;
63
  }
64
 
65
+ .tenweb-popup-active2{
66
  height: 426px !important
67
  }
68
 
69
+ .tenweb-popup-active4{
 
 
 
 
70
  height: 340px !important
71
  }
72
+ .tenweb-deactivate-popup-opacity{
73
  width: 100%;
74
  height: 100%;
75
  background: #D9D9D9;
79
  display: none;
80
  }
81
 
82
+ .tenweb-deactivate-popup-opacity .tenweb-img-loader{
83
  position: absolute;
84
  top: 0;
85
  left: 0;
89
  z-index: 63;
90
  }
91
 
92
+ .tenweb-deactivate-popup-close-btn{
93
  background-image: url(img/close.svg);
94
  background-repeat: no-repeat;
95
  background-size: 16px;
wd/assets/js/deactivate_popup.js CHANGED
@@ -19,17 +19,17 @@ var btnVal = 3;
19
  ////////////////////////////////////////////////////////////////////////////////////////
20
  // Public Methods //
21
  ////////////////////////////////////////////////////////////////////////////////////////
22
- function wdReady( prefix ) {
23
 
24
  var agree_with_pp = false;
25
  reset_popup();
26
  jQuery( document ).on( "click", "." + window[prefix + "WDDeactivateVars"].deactivate_class, function () {
27
  agree_with_pp = false;
28
- if ( !jQuery( '#wd-' + prefix + '-submit-and-deactivate' ).hasClass( 'button-primary-disabled' ) ) {
29
- jQuery( '#wd-' + prefix + '-submit-and-deactivate' ).addClass( 'button-primary-disabled' )
30
  }
31
- jQuery( ".wd-" + prefix + "-opacity" ).show();
32
- jQuery( ".wd-" + prefix + "-deactivate-popup" ).show();
33
  if ( jQuery( this ).attr( "data-uninstall" ) == "1" ) {
34
  btnVal = 2;
35
  }
@@ -41,35 +41,27 @@ function wdReady( prefix ) {
41
  var disabled_class = ( agree_with_pp === false ) ? "button-primary-disabled" : "";
42
 
43
  jQuery( "." + prefix + "_additional_details_wrap" ).html( "" );
44
- jQuery( ".wd-" + prefix + "-deactivate-popup" ).removeClass( "wd-popup-active1 wd-popup-active2 wd-popup-active3 wd-popup-active4" );
45
  if ( jQuery( this ).val() == "reason_plugin_is_hard_to_use_technical_problems" ) {
46
 
47
- additionalInfo = '<div class="wd-additional-active"><div><strong>Please describe your issue.</strong></div><br>' +
48
  '<textarea name="' + prefix + '_additional_details" rows = "4"></textarea><br>' +
49
  '<div>Our support will contact <input type="text" name="' + prefix + '_email" value="' + window[prefix + "WDDeactivateVars"].email + '"> shortly.</div>' +
50
- '<br><div><button class="button button-primary ' + disabled_class + ' wd-' + prefix + '-deactivate" data-val="' + btnVal + '">Submit support ticket</button></div></div>';
51
  jQuery( "." + prefix + "_additional_details_wrap" ).append( additionalInfo );
52
- jQuery( ".wd-" + prefix + "-deactivate-popup" ).addClass( "wd-popup-active1" );
53
 
54
  }
55
  else if ( jQuery( this ).val() == "reason_free_version_limited" ) {
56
- additionalInfo = '<div class="wd-additional-active">' +
57
  '<div><strong>We believe our premium version will fit your needs.</strong></div>' +
58
  '<div><a href="' + window[prefix + "WDDeactivateVars"].plugin_wd_url + '" target="_blank">Try with 30 day money back guarantee.</a></div>';
59
 
60
  jQuery( "." + prefix + "_additional_details_wrap" ).append( additionalInfo );
61
- jQuery( ".wd-" + prefix + "-deactivate-popup" ).addClass( "wd-popup-active2" );
62
  }
63
- else if ( jQuery( this ).val() == "reason_premium_expensive" ) {
64
- additionalInfo = '<div class="wd-additional-active">' +
65
- '<div><strong>We have a special offer for you.</strong></div>' +
66
- '<div>Submit this form to get the offer to <input type="text" name="' + prefix + '_email" value="' + window[prefix + "WDDeactivateVars"].email + '"></div>' +
67
- '<br><div><button class="button button-primary ' + disabled_class + ' wd-' + prefix + '-deactivate" data-val="' + btnVal + '">Submit</button></div></div>';
68
-
69
- jQuery( "." + prefix + "_additional_details_wrap" ).append( additionalInfo );
70
- jQuery( ".wd-" + prefix + "-deactivate-popup" ).addClass( "wd-popup-active3" );
71
- } else {
72
- jQuery( ".wd-" + prefix + "-deactivate-popup" ).addClass( "wd-popup-active4" );
73
  }
74
 
75
  var checked = ( agree_with_pp === true ) ? "checked" : "";
@@ -80,28 +72,28 @@ function wdReady( prefix ) {
80
  "</div>";
81
  jQuery( "." + prefix + "_additional_details_wrap" ).prepend( agree_checkbox );
82
 
83
- jQuery( "#wd-" + prefix + "-submit-and-deactivate" ).show();
84
  } );
85
  jQuery( document ).on( "keyup", "[name=" + prefix + "_additional_details]", function () {
86
  if ( jQuery( this ).val().trim() || jQuery( "[name=" + prefix + "_reasons]:checked" ).length > 0 ) {
87
- jQuery( "#wd-" + prefix + "-submit-and-deactivate" ).show();
88
  }
89
  else {
90
- jQuery( "#wd-" + prefix + "-submit-and-deactivate" ).hide();
91
  }
92
  } );
93
 
94
  jQuery( document ).on( "change", "[name=" + prefix + "_agree_with_pp]", function () {
95
  if ( jQuery( this ).prop( 'checked' ) ) {
96
- jQuery( ".wd-" + prefix + "-deactivate" ).removeClass( 'button-primary-disabled' );
97
  agree_with_pp = true;
98
  } else {
99
- jQuery( ".wd-" + prefix + "-deactivate" ).addClass( 'button-primary-disabled' );
100
  agree_with_pp = false;
101
  }
102
  } );
103
 
104
- jQuery( document ).on( "click", ".wd-" + prefix + "-deactivate", function ( e ) {
105
  var data_val = jQuery( this ).data( 'val' );
106
  var checkbox = jQuery( "#" + prefix + "_agree_with_pp" );
107
 
@@ -109,18 +101,18 @@ function wdReady( prefix ) {
109
  return false;
110
  }
111
 
112
- jQuery( ".wd-deactivate-popup-opacity-" + prefix ).show();
113
- if ( jQuery( this ).hasClass( "wd-clicked" ) == false ) {
114
- jQuery( this ).addClass( "wd-clicked" );
115
  jQuery( "[name=" + prefix + "_submit_and_deactivate]" ).val( jQuery( this ).attr( "data-val" ) );
116
  jQuery( "#" + prefix + "_deactivate_form" ).submit();
117
  }
118
  return false;
119
  } );
120
 
121
- jQuery( document ).on( "click", ".wd-" + prefix + "-cancel, .wd-opacity, .wd-deactivate-popup-close-btn", function () {
122
- jQuery( ".wd-" + prefix + "-opacity" ).hide();
123
- jQuery( ".wd-" + prefix + "-deactivate-popup" ).hide();
124
  reset_popup();
125
 
126
  return false;
@@ -128,9 +120,9 @@ function wdReady( prefix ) {
128
 
129
  function reset_popup() {
130
  jQuery( "." + prefix + "_additional_details_wrap" ).html( "" );
131
- jQuery( ".wd-" + prefix + "-deactivate-popup" ).removeClass( "wd-popup-active1 wd-popup-active2 wd-popup-active3 wd-popup-active4" );
132
 
133
- jQuery( "#wd-" + prefix + "-submit-and-deactivate" ).hide();
134
  jQuery( '#' + prefix + '_deactivate_form input[name="' + prefix + '_reasons' + '"]' ).prop( 'checked', false );
135
  }
136
 
19
  ////////////////////////////////////////////////////////////////////////////////////////
20
  // Public Methods //
21
  ////////////////////////////////////////////////////////////////////////////////////////
22
+ function tenwebReady( prefix ) {
23
 
24
  var agree_with_pp = false;
25
  reset_popup();
26
  jQuery( document ).on( "click", "." + window[prefix + "WDDeactivateVars"].deactivate_class, function () {
27
  agree_with_pp = false;
28
+ if ( !jQuery( '#tenweb-' + prefix + '-submit-and-deactivate' ).hasClass( 'button-primary-disabled' ) ) {
29
+ jQuery( '#tenweb-' + prefix + '-submit-and-deactivate' ).addClass( 'button-primary-disabled' )
30
  }
31
+ jQuery( ".tenweb-" + prefix + "-opacity" ).show();
32
+ jQuery( ".tenweb-" + prefix + "-deactivate-popup" ).show();
33
  if ( jQuery( this ).attr( "data-uninstall" ) == "1" ) {
34
  btnVal = 2;
35
  }
41
  var disabled_class = ( agree_with_pp === false ) ? "button-primary-disabled" : "";
42
 
43
  jQuery( "." + prefix + "_additional_details_wrap" ).html( "" );
44
+ jQuery( ".tenweb-" + prefix + "-deactivate-popup" ).removeClass( "tenweb-popup-active1 tenweb-popup-active2 tenweb-popup-active4" );
45
  if ( jQuery( this ).val() == "reason_plugin_is_hard_to_use_technical_problems" ) {
46
 
47
+ additionalInfo = '<div class="tenweb-additional-active"><div><strong>Please describe your issue.</strong></div><br>' +
48
  '<textarea name="' + prefix + '_additional_details" rows = "4"></textarea><br>' +
49
  '<div>Our support will contact <input type="text" name="' + prefix + '_email" value="' + window[prefix + "WDDeactivateVars"].email + '"> shortly.</div>' +
50
+ '<br><div><button class="button button-primary ' + disabled_class + ' tenweb-' + prefix + '-deactivate" data-val="' + btnVal + '">Submit support ticket</button></div></div>';
51
  jQuery( "." + prefix + "_additional_details_wrap" ).append( additionalInfo );
52
+ jQuery( ".tenweb-" + prefix + "-deactivate-popup" ).addClass( "tenweb-popup-active1" );
53
 
54
  }
55
  else if ( jQuery( this ).val() == "reason_free_version_limited" ) {
56
+ additionalInfo = '<div class="tenweb-additional-active">' +
57
  '<div><strong>We believe our premium version will fit your needs.</strong></div>' +
58
  '<div><a href="' + window[prefix + "WDDeactivateVars"].plugin_wd_url + '" target="_blank">Try with 30 day money back guarantee.</a></div>';
59
 
60
  jQuery( "." + prefix + "_additional_details_wrap" ).append( additionalInfo );
61
+ jQuery( ".tenweb-" + prefix + "-deactivate-popup" ).addClass( "tenweb-popup-active2" );
62
  }
63
+ else {
64
+ jQuery( ".tenweb-" + prefix + "-deactivate-popup" ).addClass( "tenweb-popup-active4" );
 
 
 
 
 
 
 
 
65
  }
66
 
67
  var checked = ( agree_with_pp === true ) ? "checked" : "";
72
  "</div>";
73
  jQuery( "." + prefix + "_additional_details_wrap" ).prepend( agree_checkbox );
74
 
75
+ jQuery( "#tenweb-" + prefix + "-submit-and-deactivate" ).show();
76
  } );
77
  jQuery( document ).on( "keyup", "[name=" + prefix + "_additional_details]", function () {
78
  if ( jQuery( this ).val().trim() || jQuery( "[name=" + prefix + "_reasons]:checked" ).length > 0 ) {
79
+ jQuery( "#tenweb-" + prefix + "-submit-and-deactivate" ).show();
80
  }
81
  else {
82
+ jQuery( "#tenweb-" + prefix + "-submit-and-deactivate" ).hide();
83
  }
84
  } );
85
 
86
  jQuery( document ).on( "change", "[name=" + prefix + "_agree_with_pp]", function () {
87
  if ( jQuery( this ).prop( 'checked' ) ) {
88
+ jQuery( ".tenweb-" + prefix + "-deactivate" ).removeClass( 'button-primary-disabled' );
89
  agree_with_pp = true;
90
  } else {
91
+ jQuery( ".tenweb-" + prefix + "-deactivate" ).addClass( 'button-primary-disabled' );
92
  agree_with_pp = false;
93
  }
94
  } );
95
 
96
+ jQuery( document ).on( "click", ".tenweb-" + prefix + "-deactivate", function ( e ) {
97
  var data_val = jQuery( this ).data( 'val' );
98
  var checkbox = jQuery( "#" + prefix + "_agree_with_pp" );
99
 
101
  return false;
102
  }
103
 
104
+ jQuery( ".tenweb-deactivate-popup-opacity-" + prefix ).show();
105
+ if ( jQuery( this ).hasClass( "tenweb-clicked" ) == false ) {
106
+ jQuery( this ).addClass( "tenweb-clicked" );
107
  jQuery( "[name=" + prefix + "_submit_and_deactivate]" ).val( jQuery( this ).attr( "data-val" ) );
108
  jQuery( "#" + prefix + "_deactivate_form" ).submit();
109
  }
110
  return false;
111
  } );
112
 
113
+ jQuery( document ).on( "click", ".tenweb-" + prefix + "-cancel, .tenweb-opacity, .tenweb-deactivate-popup-close-btn", function () {
114
+ jQuery( ".tenweb-" + prefix + "-opacity" ).hide();
115
+ jQuery( ".tenweb-" + prefix + "-deactivate-popup" ).hide();
116
  reset_popup();
117
 
118
  return false;
120
 
121
  function reset_popup() {
122
  jQuery( "." + prefix + "_additional_details_wrap" ).html( "" );
123
+ jQuery( ".tenweb-" + prefix + "-deactivate-popup" ).removeClass( "tenweb-popup-active1 tenweb-popup-active2 tenweb-popup-active4" );
124
 
125
+ jQuery( "#tenweb-" + prefix + "-submit-and-deactivate" ).hide();
126
  jQuery( '#' + prefix + '_deactivate_form input[name="' + prefix + '_reasons' + '"]' ).prop( 'checked', false );
127
  }
128
 
wd/config.php CHANGED
@@ -3,7 +3,7 @@
3
  exit;
4
  }
5
 
6
- class TenWebConfig {
7
  public static $instance;
8
 
9
  public $prefix = null;
3
  exit;
4
  }
5
 
6
+ class TenWebLibConfig {
7
  public static $instance;
8
 
9
  public $prefix = null;
wd/includes/api.php CHANGED
@@ -3,7 +3,7 @@
3
  exit;
4
  }
5
 
6
- class TenWebApi{
7
  ////////////////////////////////////////////////////////////////////////////////////////
8
  // Events //
9
  ////////////////////////////////////////////////////////////////////////////////////////
@@ -31,7 +31,7 @@
31
 
32
 
33
  public function get_remote_data( $id ) {
34
- $remote_data_path = TEN_WEB_API_PLUGIN_DATA_PATH . '/' . $this->userhash;
35
  $request = wp_remote_get( ( str_replace( '_id_', $id, $remote_data_path ) ) );
36
 
37
  if ( !is_wp_error($request) || wp_remote_retrieve_response_code($request) === 200 ) {
3
  exit;
4
  }
5
 
6
+ class TenWebLibApi{
7
  ////////////////////////////////////////////////////////////////////////////////////////
8
  // Events //
9
  ////////////////////////////////////////////////////////////////////////////////////////
31
 
32
 
33
  public function get_remote_data( $id ) {
34
+ $remote_data_path = TEN_WEB_LIB_API_PLUGIN_DATA_PATH . '/' . $this->userhash;
35
  $request = wp_remote_get( ( str_replace( '_id_', $id, $remote_data_path ) ) );
36
 
37
  if ( !is_wp_error($request) || wp_remote_retrieve_response_code($request) === 200 ) {
wd/includes/deactivate.php CHANGED
@@ -3,7 +3,7 @@ if (!defined('ABSPATH')) {
3
  exit;
4
  }
5
 
6
- class TenWebDeactivate
7
  {
8
  ////////////////////////////////////////////////////////////////////////////////////////
9
  // Events //
@@ -41,14 +41,10 @@ class TenWebDeactivate
41
  'text' => __('Free version is limited', $wd_options->prefix),
42
  ),
43
  3 => array(
44
- 'id' => self::REASON_PRO_EXPENSIVE,
45
- 'text' => __('Premium is expensive', $wd_options->prefix),
46
- ),
47
- 4 => array(
48
  'id' => self::REASON_UPGRADING_TO_PAID_VERSION,
49
  'text' => __('Upgrading to paid version', $wd_options->prefix),
50
  ),
51
- 5 => array(
52
  'id' => self::REASON_TEMPORARY_DEACTIVATION,
53
  'text' => __('Temporary deactivation', $wd_options->prefix),
54
  ),
@@ -58,8 +54,9 @@ class TenWebDeactivate
58
  add_action('admin_init', array($this, 'submit_and_deactivate'));
59
 
60
 
61
- add_action('admin_enqueue_scripts', array($this, 'scripts'));
62
-
 
63
 
64
  }
65
  ////////////////////////////////////////////////////////////////////////////////////////
@@ -73,7 +70,7 @@ class TenWebDeactivate
73
  ?>
74
  <script>
75
  jQuery(document).ready(function () {
76
- wdReady("<?php echo $wd_options->prefix; ?>");
77
  });
78
  </script>
79
  <?php
@@ -95,11 +92,11 @@ class TenWebDeactivate
95
  public function scripts()
96
  {
97
  $wd_options = $this->config;
98
- wp_enqueue_style('wd-deactivate-popup', $wd_options->wd_url_css . '/deactivate_popup.css', array(), get_option($wd_options->prefix . "_version"));
99
- wp_enqueue_script('wd-deactivate-popup', $wd_options->wd_url_js . '/deactivate_popup.js', array(), get_option($wd_options->prefix . "_version"));
100
 
101
  $admin_data = wp_get_current_user();
102
- wp_localize_script('wd-deactivate-popup', $wd_options->prefix . 'WDDeactivateVars', array(
103
  "prefix" => $wd_options->prefix,
104
  "deactivate_class" => $wd_options->prefix . '_deactivate_link',
105
  "email" => $admin_data->data->user_email,
@@ -115,7 +112,7 @@ class TenWebDeactivate
115
  if (isset($_POST[$wd_options->prefix . "_submit_and_deactivate"])) {
116
 
117
  if ($_POST[$wd_options->prefix . "_submit_and_deactivate"] == 2 || $_POST[$wd_options->prefix . "_submit_and_deactivate"] == 3) {
118
- //$api = new TenWebApi( $wd_options );
119
 
120
  $data = array();
121
 
@@ -131,7 +128,7 @@ class TenWebDeactivate
131
 
132
  $data["name"] = $user_first_name || $user_last_name ? $user_first_name . " " . $user_last_name : $admin_data->data->user_login;
133
 
134
- $response = wp_remote_post(TEN_WEB_DEACTIVATION_URL, array(
135
  'method' => 'POST',
136
  'timeout' => 45,
137
  'redirection' => 5,
3
  exit;
4
  }
5
 
6
+ class TenWebLibDeactivate
7
  {
8
  ////////////////////////////////////////////////////////////////////////////////////////
9
  // Events //
41
  'text' => __('Free version is limited', $wd_options->prefix),
42
  ),
43
  3 => array(
 
 
 
 
44
  'id' => self::REASON_UPGRADING_TO_PAID_VERSION,
45
  'text' => __('Upgrading to paid version', $wd_options->prefix),
46
  ),
47
+ 4 => array(
48
  'id' => self::REASON_TEMPORARY_DEACTIVATION,
49
  'text' => __('Temporary deactivation', $wd_options->prefix),
50
  ),
54
  add_action('admin_init', array($this, 'submit_and_deactivate'));
55
 
56
 
57
+ // add_action('admin_enqueue_scripts', array($this, 'scripts'));
58
+ // Just enqueue styles/scripts and they will be in the footer.
59
+ $this->scripts();
60
 
61
  }
62
  ////////////////////////////////////////////////////////////////////////////////////////
70
  ?>
71
  <script>
72
  jQuery(document).ready(function () {
73
+ tenwebReady("<?php echo $wd_options->prefix; ?>");
74
  });
75
  </script>
76
  <?php
92
  public function scripts()
93
  {
94
  $wd_options = $this->config;
95
+ wp_enqueue_style('tenweb-deactivate-popup', $wd_options->wd_url_css . '/deactivate_popup.css', array(), get_option($wd_options->prefix . "_version"));
96
+ wp_enqueue_script('tenweb-deactivate-popup', $wd_options->wd_url_js . '/deactivate_popup.js', array(), get_option($wd_options->prefix . "_version"));
97
 
98
  $admin_data = wp_get_current_user();
99
+ wp_localize_script('tenweb-deactivate-popup', $wd_options->prefix . 'WDDeactivateVars', array(
100
  "prefix" => $wd_options->prefix,
101
  "deactivate_class" => $wd_options->prefix . '_deactivate_link',
102
  "email" => $admin_data->data->user_email,
112
  if (isset($_POST[$wd_options->prefix . "_submit_and_deactivate"])) {
113
 
114
  if ($_POST[$wd_options->prefix . "_submit_and_deactivate"] == 2 || $_POST[$wd_options->prefix . "_submit_and_deactivate"] == 3) {
115
+ //$api = new TenWebLibApi( $wd_options );
116
 
117
  $data = array();
118
 
128
 
129
  $data["name"] = $user_first_name || $user_last_name ? $user_first_name . " " . $user_last_name : $admin_data->data->user_login;
130
 
131
+ $response = wp_remote_post(TEN_WEB_LIB_DEACTIVATION_URL, array(
132
  'method' => 'POST',
133
  'timeout' => 45,
134
  'redirection' => 5,
wd/includes/notices.php CHANGED
@@ -3,7 +3,7 @@ if ( !defined( 'ABSPATH' ) ) {
3
  exit;
4
  }
5
 
6
- class TenWebNotices {
7
 
8
  protected $promo_link = '';
9
 
3
  exit;
4
  }
5
 
6
+ class TenWebLibNotices {
7
 
8
  protected $promo_link = '';
9
 
wd/includes/overview.php CHANGED
@@ -3,7 +3,7 @@
3
  exit;
4
  }
5
 
6
- class TenWebOverview{
7
  ////////////////////////////////////////////////////////////////////////////////////////
8
  // Events //
9
  ////////////////////////////////////////////////////////////////////////////////////////
3
  exit;
4
  }
5
 
6
+ class TenWebLibOverview{
7
  ////////////////////////////////////////////////////////////////////////////////////////
8
  // Events //
9
  ////////////////////////////////////////////////////////////////////////////////////////
wd/includes/subscribe.php CHANGED
@@ -3,7 +3,7 @@ if (!defined('ABSPATH')) {
3
  exit;
4
  }
5
 
6
- class TenWebSubscribe
7
  {
8
  // //////////////////////////////////////////////////////////////////////////////////////
9
  // Events //
@@ -54,7 +54,7 @@ class TenWebSubscribe
54
  if (isset($_GET[$wd_options->prefix . "_sub_action"])) {
55
 
56
  if ($_GET[$wd_options->prefix . "_sub_action"] == "allow") {
57
- //$api = new TenWebApi($wd_options);
58
  $all_plugins = array();
59
  $plugins = get_plugins();
60
  foreach ($plugins as $slug => $data) {
@@ -83,7 +83,7 @@ class TenWebSubscribe
83
  $data["all_plugins"] = json_encode($all_plugins);
84
 
85
 
86
- $response = wp_remote_post(TEN_WEB_SUBSCRIBE_URL, array(
87
  'method' => 'POST',
88
  'timeout' => 45,
89
  'redirection' => 5,
3
  exit;
4
  }
5
 
6
+ class TenWebLibSubscribe
7
  {
8
  // //////////////////////////////////////////////////////////////////////////////////////
9
  // Events //
54
  if (isset($_GET[$wd_options->prefix . "_sub_action"])) {
55
 
56
  if ($_GET[$wd_options->prefix . "_sub_action"] == "allow") {
57
+ //$api = new TenWebLibApi($wd_options);
58
  $all_plugins = array();
59
  $plugins = get_plugins();
60
  foreach ($plugins as $slug => $data) {
83
  $data["all_plugins"] = json_encode($all_plugins);
84
 
85
 
86
+ $response = wp_remote_post(TEN_WEB_LIB_SUBSCRIBE_URL, array(
87
  'method' => 'POST',
88
  'timeout' => 45,
89
  'redirection' => 5,
wd/start.php CHANGED
@@ -2,9 +2,9 @@
2
  if ( ! defined( 'ABSPATH' ) ) {
3
  exit;
4
  }
5
- define( 'TEN_WEB_API_PLUGIN_DATA_PATH', 'https://api.web-dorado.com/v2/_id_/plugindata' );
6
- define( 'TEN_WEB_SUBSCRIBE_URL', 'https://core.10web.io/api/wp-subscribe' );
7
- define( 'TEN_WEB_DEACTIVATION_URL', 'https://core.10web.io/api/deactivation_reasons' );
8
 
9
  require_once dirname( __FILE__ ) . '/config.php';
10
 
@@ -28,12 +28,12 @@
28
  * custom_post;
29
  */
30
 
31
- function ten_web_init( $options ) {
32
 
33
  // load files
34
  require_once dirname( __FILE__ ) . '/wd.php';
35
 
36
- $wd = new TenWeb();
37
  $wd->wd_init( $options );
38
 
39
  }
2
  if ( ! defined( 'ABSPATH' ) ) {
3
  exit;
4
  }
5
+ define( 'TEN_WEB_LIB_API_PLUGIN_DATA_PATH', 'https://api.web-dorado.com/v2/_id_/plugindata' );
6
+ define( 'TEN_WEB_LIB_SUBSCRIBE_URL', 'https://core.10web.io/api/wp-subscribe' );
7
+ define( 'TEN_WEB_LIB_DEACTIVATION_URL', 'https://core.10web.io/api/deactivation_reasons' );
8
 
9
  require_once dirname( __FILE__ ) . '/config.php';
10
 
28
  * custom_post;
29
  */
30
 
31
+ function ten_web_lib_init( $options ) {
32
 
33
  // load files
34
  require_once dirname( __FILE__ ) . '/wd.php';
35
 
36
+ $wd = new TenWebLib();
37
  $wd->wd_init( $options );
38
 
39
  }
wd/templates/display_deactivation_popup.php CHANGED
@@ -1,26 +1,26 @@
1
- <div class="wd-opacity wd-<?php echo $wd_options->prefix; ?>-opacity"></div>
2
- <div class="wd-deactivate-popup wd-<?php echo $wd_options->prefix; ?>-deactivate-popup">
3
- <div class="wd-deactivate-popup-opacity wd-deactivate-popup-opacity-<?php echo $wd_options->prefix; ?>">
4
- <img src="<?php echo $wd_options->wd_url_img . '/spinner.gif'; ?>" class="wd-img-loader" >
5
  </div>
6
  <form method="post" id="<?php echo $wd_options->prefix; ?>_deactivate_form">
7
- <div class="wd-deactivate-popup-header">
8
  <?php _e( "Please let us know why you are deactivating. Your answer will help us to provide you support or sometimes offer discounts. (Optional)", $wd_options->prefix ); ?>:
9
- <span class="wd-deactivate-popup-close-btn"></span>
10
  </div>
11
 
12
- <div class="wd-deactivate-popup-body">
13
  <?php foreach( $deactivate_reasons as $deactivate_reason_slug => $deactivate_reason ) { ?>
14
- <div class="wd-<?php echo $wd_options->prefix; ?>-reasons">
15
  <input type="radio" value="<?php echo $deactivate_reason["id"];?>" id="<?php echo $wd_options->prefix . "-" .$deactivate_reason["id"]; ?>" name="<?php echo $wd_options->prefix; ?>_reasons" >
16
  <label for="<?php echo $wd_options->prefix . "-" . $deactivate_reason["id"]; ?>"><?php echo $deactivate_reason["text"];?></label>
17
  </div>
18
  <?php } ?>
19
  <div class="<?php echo $wd_options->prefix; ?>_additional_details_wrap"></div>
20
  </div>
21
- <div class="wd-btns">
22
- <a href="<?php echo $deactivate_url; ?>" data-val="1" class="button button-secondary button-close" id="wd-<?php echo $wd_options->prefix; ?>-deactivate"><?php _e( "Skip and Deactivate" , $wd_options->prefix ); ?></a>
23
- <a href="<?php echo $deactivate_url; ?>" data-val="2" class="button button-primary button-primary-disabled button-close wd-<?php echo $wd_options->prefix; ?>-deactivate" id="wd-<?php echo $wd_options->prefix; ?>-submit-and-deactivate"><?php _e( "Submit and Deactivate" , $wd_options->prefix ); ?></a>
24
  </div>
25
  <input type="hidden" name="<?php echo $wd_options->prefix . "_submit_and_deactivate"; ?>" value="" >
26
  <?php wp_nonce_field( $wd_options->prefix . '_save_form', $wd_options->prefix . '_save_form_fild'); ?>
1
+ <div class="tenweb-opacity tenweb-<?php echo $wd_options->prefix; ?>-opacity"></div>
2
+ <div class="tenweb-deactivate-popup tenweb-<?php echo $wd_options->prefix; ?>-deactivate-popup">
3
+ <div class="tenweb-deactivate-popup-opacity tenweb-deactivate-popup-opacity-<?php echo $wd_options->prefix; ?>">
4
+ <img src="<?php echo $wd_options->wd_url_img . '/spinner.gif'; ?>" class="tenweb-img-loader" >
5
  </div>
6
  <form method="post" id="<?php echo $wd_options->prefix; ?>_deactivate_form">
7
+ <div class="tenweb-deactivate-popup-header">
8
  <?php _e( "Please let us know why you are deactivating. Your answer will help us to provide you support or sometimes offer discounts. (Optional)", $wd_options->prefix ); ?>:
9
+ <span class="tenweb-deactivate-popup-close-btn"></span>
10
  </div>
11
 
12
+ <div class="tenweb-deactivate-popup-body">
13
  <?php foreach( $deactivate_reasons as $deactivate_reason_slug => $deactivate_reason ) { ?>
14
+ <div class="tenweb-<?php echo $wd_options->prefix; ?>-reasons">
15
  <input type="radio" value="<?php echo $deactivate_reason["id"];?>" id="<?php echo $wd_options->prefix . "-" .$deactivate_reason["id"]; ?>" name="<?php echo $wd_options->prefix; ?>_reasons" >
16
  <label for="<?php echo $wd_options->prefix . "-" . $deactivate_reason["id"]; ?>"><?php echo $deactivate_reason["text"];?></label>
17
  </div>
18
  <?php } ?>
19
  <div class="<?php echo $wd_options->prefix; ?>_additional_details_wrap"></div>
20
  </div>
21
+ <div class="tenweb-btns">
22
+ <a href="<?php echo $deactivate_url; ?>" data-val="1" class="button button-secondary button-close" id="tenweb-<?php echo $wd_options->prefix; ?>-deactivate"><?php _e( "Skip and Deactivate" , $wd_options->prefix ); ?></a>
23
+ <a href="<?php echo $deactivate_url; ?>" data-val="2" class="button button-primary button-primary-disabled button-close tenweb-<?php echo $wd_options->prefix; ?>-deactivate" id="tenweb-<?php echo $wd_options->prefix; ?>-submit-and-deactivate"><?php _e( "Submit and Deactivate" , $wd_options->prefix ); ?></a>
24
  </div>
25
  <input type="hidden" name="<?php echo $wd_options->prefix . "_submit_and_deactivate"; ?>" value="" >
26
  <?php wp_nonce_field( $wd_options->prefix . '_save_form', $wd_options->prefix . '_save_form_fild'); ?>
wd/templates/display_subscribe.php CHANGED
@@ -3,9 +3,9 @@
3
  <div class="texts">
4
  <div class="hi_there"></div>
5
  <h2><?php _e( "Hi there!", $wd_options->prefix ); ?></h2>
6
- <h5><?php _e( "Allow 10web to collect some usage data", $wd_options->prefix ); ?></h5>
7
  <p>
8
- <?php echo sprintf( __( "This will allow you to get more out of your plugin experience - get awesome customer support, receive exclusive deals and discounts on premium products and more. You can choose to skip this step, %s will stil work just fine.", $wd_options->prefix ), $wd_options->plugin_title ); ?>
9
  </p>
10
  </div>
11
  <div class="permissions"><?php _e( "What data is being collected?" , $wd_options->prefix ); ?></div>
3
  <div class="texts">
4
  <div class="hi_there"></div>
5
  <h2><?php _e( "Hi there!", $wd_options->prefix ); ?></h2>
6
+ <h5><?php _e( "Allow 10Web to collect some usage data", $wd_options->prefix ); ?></h5>
7
  <p>
8
+ <?php echo sprintf( __( "This will allow you to get more out of your plugin experience - get awesome customer support, receive exclusive deals and discounts on premium products and more. You can choose to skip this step, %s will still work just fine.", $wd_options->prefix ), $wd_options->plugin_title ); ?>
9
  </p>
10
  </div>
11
  <div class="permissions"><?php _e( "What data is being collected?" , $wd_options->prefix ); ?></div>
wd/wd.php CHANGED
@@ -3,7 +3,7 @@
3
  exit;
4
  }
5
 
6
- class TenWeb {
7
  ////////////////////////////////////////////////////////////////////////////////////////
8
  // Events //
9
  ////////////////////////////////////////////////////////////////////////////////////////
@@ -17,7 +17,7 @@
17
  public $overview_instance;
18
  public $subscribe_instance;
19
  public $config;
20
- private $version = "1.0.13";
21
 
22
  ////////////////////////////////////////////////////////////////////////////////////////
23
  // Constructor & Destructor //
@@ -37,10 +37,10 @@
37
  if(!is_array($options)){
38
  return false;
39
  }
40
- $config = new TenWebConfig();
41
  $config->set_options( $options );
42
  $this->config = $config;
43
- if( !class_exists("TenWebApi") ){
44
  $this->wd_includes();
45
  }
46
 
@@ -61,7 +61,7 @@
61
 
62
  $subscribe_page = add_menu_page( $wd_options->plugin_menu_title, $wd_options->plugin_menu_title, "manage_options", $wd_options->prefix . '_subscribe' , array( $this, 'display_subscribew_page' ), $wd_options->plugin_menu_icon, $wd_options->menu_position );
63
 
64
- $subscribe_instance = new TenWebSubscribe($this->config);
65
  $this->subscribe_instance = $subscribe_instance;
66
  add_action( 'admin_print_styles-' . $subscribe_page, array( $subscribe_instance, 'subscribe_styles' ) );
67
  add_action( 'admin_print_scripts-' . $subscribe_page, array( $subscribe_instance, 'subscribe_scripts' ) );
@@ -76,7 +76,7 @@
76
  $overview_page = add_submenu_page( $parent_slug, __( 'Premium', $wd_options->prefix ), '<span style="color:#4481ea;">' . $title . '</span>', $capability, 'overview_' . $wd_options->prefix, array( $this, 'display_overview_page' ) );
77
 
78
 
79
- $overview_instance = new TenWebOverview( $this->config );
80
  $this->overview_instance = $overview_instance;
81
  add_action( 'admin_print_styles-' . $overview_page, array( $overview_instance, 'overview_styles' ) );
82
  add_action( 'admin_print_scripts-' . $overview_page, array( $overview_instance, 'overview_scripts' ) );
@@ -111,11 +111,11 @@
111
  $current_url = $_SERVER['REQUEST_URI'];
112
  if( $wd_options->deactivate === true ){
113
  if(strpos( $current_url, "plugins.php" ) !== false ){
114
- new TenWebDeactivate( $this->config );
115
  }
116
  }
117
 
118
- new TenWebNotices( $this->config );
119
 
120
  }
121
 
3
  exit;
4
  }
5
 
6
+ class TenWebLib {
7
  ////////////////////////////////////////////////////////////////////////////////////////
8
  // Events //
9
  ////////////////////////////////////////////////////////////////////////////////////////
17
  public $overview_instance;
18
  public $subscribe_instance;
19
  public $config;
20
+ private $version = "1.1.1";
21
 
22
  ////////////////////////////////////////////////////////////////////////////////////////
23
  // Constructor & Destructor //
37
  if(!is_array($options)){
38
  return false;
39
  }
40
+ $config = new TenWebLibConfig();
41
  $config->set_options( $options );
42
  $this->config = $config;
43
+ if( !class_exists("TenWebLibApi") ){
44
  $this->wd_includes();
45
  }
46
 
61
 
62
  $subscribe_page = add_menu_page( $wd_options->plugin_menu_title, $wd_options->plugin_menu_title, "manage_options", $wd_options->prefix . '_subscribe' , array( $this, 'display_subscribew_page' ), $wd_options->plugin_menu_icon, $wd_options->menu_position );
63
 
64
+ $subscribe_instance = new TenWebLibSubscribe($this->config);
65
  $this->subscribe_instance = $subscribe_instance;
66
  add_action( 'admin_print_styles-' . $subscribe_page, array( $subscribe_instance, 'subscribe_styles' ) );
67
  add_action( 'admin_print_scripts-' . $subscribe_page, array( $subscribe_instance, 'subscribe_scripts' ) );
76
  $overview_page = add_submenu_page( $parent_slug, __( 'Premium', $wd_options->prefix ), '<span style="color:#4481ea;">' . $title . '</span>', $capability, 'overview_' . $wd_options->prefix, array( $this, 'display_overview_page' ) );
77
 
78
 
79
+ $overview_instance = new TenWebLibOverview( $this->config );
80
  $this->overview_instance = $overview_instance;
81
  add_action( 'admin_print_styles-' . $overview_page, array( $overview_instance, 'overview_styles' ) );
82
  add_action( 'admin_print_scripts-' . $overview_page, array( $overview_instance, 'overview_scripts' ) );
111
  $current_url = $_SERVER['REQUEST_URI'];
112
  if( $wd_options->deactivate === true ){
113
  if(strpos( $current_url, "plugins.php" ) !== false ){
114
+ new TenWebLibDeactivate( $this->config );
115
  }
116
  }
117
 
118
+ new TenWebLibNotices( $this->config );
119
 
120
  }
121