Version Description
Improved: Do not use Font Awesome. Fixed: Do not show username(no user) for hashtags.
Download this release
Release Info
Developer | webdorado |
Plugin | WD Instagram Feed – Instagram Gallery |
Version | 1.3.22 |
Comparing to | |
See all releases |
Code changes from version 1.3.21 to 1.3.22
- admin-functions.php +0 -1
- admin/models/WDIModelThemes_wdi.php +1 -1
- css/tenweb-fonts/fonts.css +132 -0
- css/tenweb-fonts/fonts/tenweb.eot +0 -0
- css/tenweb-fonts/fonts/tenweb.svg +45 -0
- css/tenweb-fonts/fonts/tenweb.ttf +0 -0
- css/tenweb-fonts/fonts/tenweb.woff +0 -0
- css/wdi_frontend.css +15 -5
- css/wdi_frontend.min.css +1 -1
- elementor/widget.php +1 -1
- framework/WDILibrary.php +2 -2
- frontend/shortcode.php +5 -7
- frontend/views/WDIViewGalleryBox.php +42 -50
- frontend/views/WDIViewImageBrowser_view.php +2 -2
- frontend/views/WDIViewThumbnails_view.php +9 -9
- js/gallerybox/wdi_gallery_box.js +5 -22
- js/gallerybox/wdi_gallery_box.min.js +1 -1
- js/wdi_admin.js +1 -1
- js/wdi_frontend.js +19 -28
- js/wdi_frontend.min.js +1 -1
- readme.txt +7 -3
- templates/default-themes.php +2 -2
- wd-instagram-feed.php +2 -2
admin-functions.php
CHANGED
@@ -674,7 +674,6 @@ function wdi_get_settings(){
|
|
674 |
'wdi_custom_css' => array('name' => 'wdi_custom_css', 'sanitize_type' => 'css', 'type' => 'textarea', 'section' => 'wdi_customize_section', 'field_or_not' => 'field', 'default' => '', 'title' => __('Custom CSS', "wd-instagram-feed")),
|
675 |
'wdi_custom_js' => array('name' => 'wdi_custom_js', 'sanitize_type' => 'css', 'type' => 'textarea', 'section' => 'wdi_customize_section', 'field_or_not' => 'field', 'default' => '', 'title' => __('Custom JavaScript', "wd-instagram-feed")),
|
676 |
//'wdi_preserve_settings_when_remove'=>array('name'=>'wdi_preserve_settings_when_remove','field_or_not'=>'field','type'=>'checkbox','default'=>'1', 'section'=>'wdi_configure_section','title'=>__('Preserve Settings When Remove',"wd-instagram-feed")),
|
677 |
-
'wdi_disable_fa' => array('name' => 'wdi_disable_fa', 'title' => __('Disable loading of font awesome', "wd-instagram-feed"), 'type' => 'checkbox', 'tooltip' => __('Disable loading of font awesome', "wd-instagram-feed"), 'sanitize_type' => 'number', 'field_or_not' => '', 'section' => 'wdi_customize_section'),
|
678 |
'wdi_plugin_uninstalled' => array('name' => 'wdi_plugin_uninstalled', 'sanitize_type' => 'bool', 'field_or_not' => 'field', 'type' => 'input', 'input_type' => 'hidden', 'section' => 'wdi_customize_section', 'title' => '', 'default' => 'false', 'value' => 'false'),
|
679 |
'fb_token' => array('name'=>'fb_token','sanitize_type'=>'','field_or_not'=>'field','type'=>'input','input_type'=>'hidden','section'=>'wdi_customize_section','title'=>'','default'=>''),
|
680 |
'business_account_id' => array('name'=>'business_account_id','sanitize_type'=>'','field_or_not'=>'field','type'=>'input','input_type'=>'hidden','section'=>'wdi_customize_section','title'=>'','default'=>''),
|
674 |
'wdi_custom_css' => array('name' => 'wdi_custom_css', 'sanitize_type' => 'css', 'type' => 'textarea', 'section' => 'wdi_customize_section', 'field_or_not' => 'field', 'default' => '', 'title' => __('Custom CSS', "wd-instagram-feed")),
|
675 |
'wdi_custom_js' => array('name' => 'wdi_custom_js', 'sanitize_type' => 'css', 'type' => 'textarea', 'section' => 'wdi_customize_section', 'field_or_not' => 'field', 'default' => '', 'title' => __('Custom JavaScript', "wd-instagram-feed")),
|
676 |
//'wdi_preserve_settings_when_remove'=>array('name'=>'wdi_preserve_settings_when_remove','field_or_not'=>'field','type'=>'checkbox','default'=>'1', 'section'=>'wdi_configure_section','title'=>__('Preserve Settings When Remove',"wd-instagram-feed")),
|
|
|
677 |
'wdi_plugin_uninstalled' => array('name' => 'wdi_plugin_uninstalled', 'sanitize_type' => 'bool', 'field_or_not' => 'field', 'type' => 'input', 'input_type' => 'hidden', 'section' => 'wdi_customize_section', 'title' => '', 'default' => 'false', 'value' => 'false'),
|
678 |
'fb_token' => array('name'=>'fb_token','sanitize_type'=>'','field_or_not'=>'field','type'=>'input','input_type'=>'hidden','section'=>'wdi_customize_section','title'=>'','default'=>''),
|
679 |
'business_account_id' => array('name'=>'business_account_id','sanitize_type'=>'','field_or_not'=>'field','type'=>'input','input_type'=>'hidden','section'=>'wdi_customize_section','title'=>'','default'=>''),
|
admin/models/WDIModelThemes_wdi.php
CHANGED
@@ -143,7 +143,7 @@ class WDIModelThemes_wdi {
|
|
143 |
'lightbox_close_btn_full_color'=>'#000000',
|
144 |
'lightbox_close_btn_hover_color'=>'#000000',
|
145 |
'lightbox_comment_share_button_color'=>'#ffffff',
|
146 |
-
'lightbox_rl_btn_style'=>'
|
147 |
'lightbox_rl_btn_bg_color'=>'#2a5b83',
|
148 |
'lightbox_rl_btn_transparent'=>'80',
|
149 |
'lightbox_rl_btn_box_shadow'=>'none',
|
143 |
'lightbox_close_btn_full_color'=>'#000000',
|
144 |
'lightbox_close_btn_hover_color'=>'#000000',
|
145 |
'lightbox_comment_share_button_color'=>'#ffffff',
|
146 |
+
'lightbox_rl_btn_style'=>'tenweb-i-chevron',
|
147 |
'lightbox_rl_btn_bg_color'=>'#2a5b83',
|
148 |
'lightbox_rl_btn_transparent'=>'80',
|
149 |
'lightbox_rl_btn_box_shadow'=>'none',
|
css/tenweb-fonts/fonts.css
ADDED
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@font-face {
|
2 |
+
font-family: 'tenweb';
|
3 |
+
src: url('fonts/tenweb.eot?4znsty');
|
4 |
+
src: url('fonts/tenweb.eot?4znsty#iefix') format('embedded-opentype'),
|
5 |
+
url('fonts/tenweb.ttf?4znsty') format('truetype'),
|
6 |
+
url('fonts/tenweb.woff?4znsty') format('woff'),
|
7 |
+
url('fonts/tenweb.svg?4znsty#tenweb') format('svg');
|
8 |
+
font-weight: normal;
|
9 |
+
font-style: normal;
|
10 |
+
font-display: block;
|
11 |
+
}
|
12 |
+
|
13 |
+
[class^="tenweb-i-"], [class*=" tenweb-i-"] {
|
14 |
+
/* use !important to prevent issues with browser extensions that change fonts */
|
15 |
+
font-family: 'tenweb' !important;
|
16 |
+
speak: none;
|
17 |
+
font-style: normal;
|
18 |
+
font-weight: normal;
|
19 |
+
font-variant: normal;
|
20 |
+
text-transform: none;
|
21 |
+
line-height: 1;
|
22 |
+
|
23 |
+
/* Better Font Rendering =========== */
|
24 |
+
-webkit-font-smoothing: antialiased;
|
25 |
+
-moz-osx-font-smoothing: grayscale;
|
26 |
+
}
|
27 |
+
|
28 |
+
.tenweb-i-arrow-right:before {
|
29 |
+
content: "\e904";
|
30 |
+
}
|
31 |
+
.tenweb-i-arrow-left:before {
|
32 |
+
content: "\e905";
|
33 |
+
}
|
34 |
+
.tenweb-i-instagram:before {
|
35 |
+
content: "\e938";
|
36 |
+
}
|
37 |
+
.tenweb-i-linkedin:before {
|
38 |
+
content: "\e939";
|
39 |
+
}
|
40 |
+
.tenweb-i-spinner:before {
|
41 |
+
content: "\e93a";
|
42 |
+
}
|
43 |
+
.tenweb-i-camera-retro:before {
|
44 |
+
content: "\e93b";
|
45 |
+
}
|
46 |
+
.tenweb-i-share:before {
|
47 |
+
content: "\e93c";
|
48 |
+
}
|
49 |
+
.tenweb-i-step-backward:before {
|
50 |
+
content: "\e93d";
|
51 |
+
}
|
52 |
+
.tenweb-i-step-forward:before {
|
53 |
+
content: "\e93e";
|
54 |
+
}
|
55 |
+
.tenweb-i-user:before {
|
56 |
+
content: "\e93f";
|
57 |
+
}
|
58 |
+
.tenweb-i-clone:before {
|
59 |
+
content: "\e940";
|
60 |
+
}
|
61 |
+
.tenweb-i-pinterest-square:before {
|
62 |
+
content: "\e900";
|
63 |
+
}
|
64 |
+
.tenweb-i-play:before {
|
65 |
+
content: "\e901";
|
66 |
+
}
|
67 |
+
.tenweb-i-refresh:before {
|
68 |
+
content: "\e902";
|
69 |
+
}
|
70 |
+
.tenweb-i-search:before {
|
71 |
+
content: "\e903";
|
72 |
+
}
|
73 |
+
.tenweb-i-star-o:before {
|
74 |
+
content: "\e907";
|
75 |
+
}
|
76 |
+
.tenweb-i-times:before {
|
77 |
+
content: "\e908";
|
78 |
+
}
|
79 |
+
.tenweb-i-tumblr-square:before {
|
80 |
+
content: "\e90a";
|
81 |
+
}
|
82 |
+
.tenweb-i-twitter-square:before {
|
83 |
+
content: "\e90b";
|
84 |
+
}
|
85 |
+
.tenweb-i-angle-down:before {
|
86 |
+
content: "\e90c";
|
87 |
+
}
|
88 |
+
.tenweb-i-angle-left:before {
|
89 |
+
content: "\e90e";
|
90 |
+
}
|
91 |
+
.tenweb-i-angle-right:before {
|
92 |
+
content: "\e910";
|
93 |
+
}
|
94 |
+
.tenweb-i-angle-up:before {
|
95 |
+
content: "\e912";
|
96 |
+
}
|
97 |
+
.tenweb-i-arrows-in:before {
|
98 |
+
content: "\e917";
|
99 |
+
}
|
100 |
+
.tenweb-i-arrows-out:before {
|
101 |
+
content: "\e918";
|
102 |
+
}
|
103 |
+
.tenweb-i-chevron-left-sm:before {
|
104 |
+
content: "\e921";
|
105 |
+
}
|
106 |
+
.tenweb-i-chevron-right-sm:before {
|
107 |
+
content: "\e923";
|
108 |
+
}
|
109 |
+
.tenweb-i-comment-square:before {
|
110 |
+
content: "\e928";
|
111 |
+
}
|
112 |
+
.tenweb-i-compress:before {
|
113 |
+
content: "\e929";
|
114 |
+
}
|
115 |
+
.tenweb-i-download:before {
|
116 |
+
content: "\e92c";
|
117 |
+
}
|
118 |
+
.tenweb-i-expand:before {
|
119 |
+
content: "\e92d";
|
120 |
+
}
|
121 |
+
.tenweb-i-facebook-square:before {
|
122 |
+
content: "\e92e";
|
123 |
+
}
|
124 |
+
.tenweb-i-heart-o:before {
|
125 |
+
content: "\e933";
|
126 |
+
}
|
127 |
+
.tenweb-i-info-circle:before {
|
128 |
+
content: "\e934";
|
129 |
+
}
|
130 |
+
.tenweb-i-pause:before {
|
131 |
+
content: "\e936";
|
132 |
+
}
|
css/tenweb-fonts/fonts/tenweb.eot
ADDED
Binary file
|
css/tenweb-fonts/fonts/tenweb.svg
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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="tenweb" 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=" " horiz-adv-x="512" d="" />
|
10 |
+
<glyph unicode="" glyph-name="pinterest-square" d="M853.333-64h-682.667c-94.506 1.152-170.674 78.032-170.674 172.703 0 0.57 0.003 1.139 0.008 1.708l-0.001-0.087v675.352c-0.005 0.482-0.008 1.051-0.008 1.621 0 94.67 76.168 171.55 170.565 172.702l0.109 0.001h682.667c94.506-1.152 170.674-78.032 170.674-172.703 0-0.57-0.003-1.139-0.008-1.708l0.001 0.087v-675.352c0.005-0.482 0.008-1.051 0.008-1.621 0-94.67-76.168-171.55-170.565-172.702l-0.109-0.001zM462.019 661.577c-41.545 0-74.021-44.568-74.021-101.474-0.006-0.517-0.010-1.127-0.010-1.739 0-21.792 4.505-42.531 12.635-61.338l-0.386 1.003-11.459-49.396c-12.971-56.271-33.061-143.214-38.181-164.279-4.442-23.301-6.983-50.102-6.983-77.496 0-24.671 2.061-48.861 6.019-72.406l-0.353 2.544v-1.56c0.279-2.452 2.343-4.34 4.847-4.34 0.010 0 0.021 0 0.031 0h-0.002c0 0 0 0 0 0 1.684 0 3.181 0.798 4.135 2.036l0.009 0.012 1.122 1.414c28.919 36.047 52.15 78.166 67.438 123.922l0.828 2.859c4.876 17.31 26.77 106.886 27.014 107.764 19.823-29.585 53.123-48.799 90.911-48.799 1.005 0 2.007 0.014 3.006 0.041l-0.147-0.003c121.905 0 207.141 110.494 207.141 268.727-2.474 65.097-30.892 123.106-75.147 164.344l-0.141 0.13c-40.316 37.536-94.566 60.574-154.197 60.574-4.748 0-9.461-0.146-14.136-0.434l0.641 0.032c-171.837 0-274.334-124.538-274.334-244.98-0.567-4.924-0.891-10.631-0.891-16.413 0-57.314 31.795-107.202 78.709-132.988l0.786-0.396c1.938-0.865 4.196-1.382 6.571-1.414h0.012c6.448 0.153 11.734 4.935 12.669 11.143l0.009 0.072c0.829 3.072 2.048 8.29 3.413 13.751 1.658 6.827 3.413 13.8 4.389 17.749 0.848 2.089 1.34 4.511 1.34 7.049 0 5.911-2.67 11.199-6.869 14.723l-0.030 0.024c-15.574 19.511-24.99 44.534-24.99 71.756 0 1.86 0.044 3.709 0.131 5.547l-0.010-0.26c-0.006 0.573-0.010 1.249-0.010 1.926 0 49.919 19.313 95.327 50.874 129.16l-0.103-0.112c33.685 35.048 80.958 56.822 133.317 56.822 1.697 0 3.388-0.023 5.074-0.068l-0.249 0.005c4.665 0.543 10.069 0.852 15.546 0.852 37.904 0 72.345-14.826 97.84-38.995l-0.064 0.060c28.652-27.173 46.479-65.517 46.479-108.024 0-1.452-0.021-2.898-0.062-4.34l0.005 0.212c0-118.882-52.517-208.506-121.905-208.506-0.344-0.007-0.75-0.011-1.156-0.011-19.798 0-37.45 9.189-48.923 23.535l-0.096 0.125c-7.711 10.079-12.356 22.86-12.356 36.726 0 5.386 0.701 10.608 2.016 15.581l-0.095-0.424c4.145 17.944 9.752 36.425 15.165 54.321 9.302 24.823 15.938 53.621 18.631 83.555l0.094 1.291c0.237 1.889 0.373 4.074 0.373 6.291 0 13.475-5.001 25.783-13.248 35.167l0.051-0.060c-9.39 10.725-23.109 17.46-38.4 17.46-0.214 0-0.428-0.001-0.642-0.004h0.032z" />
|
11 |
+
<glyph unicode="" glyph-name="play" d="M190.513 928.987c7.091 4.169 15.619 6.632 24.722 6.632s17.632-2.463 24.955-6.758l-0.233 0.126 589.141-428.081c14.879-8.697 24.716-24.594 24.716-42.789s-9.837-34.091-24.483-42.662l-0.234-0.126-589.141-428.081c-7.092-4.165-15.62-6.624-24.722-6.624-27.305 0-49.44 22.133-49.445 49.437v0 856.113c0.003 18.202 9.841 34.106 24.489 42.687l0.233 0.126z" />
|
12 |
+
<glyph unicode="" glyph-name="refresh" d="M934.619 369.981c-9.164 14.726-25.262 24.382-43.614 24.382-0.095 0-0.191 0-0.286-0.001h0.015c-2.618 0.371-5.641 0.583-8.714 0.583-32.168 0-58.91-23.228-64.37-53.826l-0.059-0.396c-24.056-142.706-145.282-250.522-292.255-253.557l-0.316-0.005h-4.876c-166.815 0.453-301.869 135.787-301.869 302.664 0 160.014 124.174 291.026 281.417 301.931l0.947 0.053v-97.524c-0.087-0.663-0.137-1.429-0.137-2.207 0-4.827 1.911-9.208 5.018-12.427l-0.005 0.005c4.876-14.629 24.381-14.629 34.133-9.752l214.552 160.914c4.876 0 4.876 4.876 9.752 9.752 4.876 14.629 4.876 29.257-9.752 34.133l-214.552 165.79c0 4.876-4.876 4.876-9.752 4.876-0.628 0.051-1.36 0.081-2.099 0.081-14.079 0-25.669-10.655-27.147-24.341l-0.011-0.121v-97.524c-216.127-6.907-391.569-172.24-414.31-383.32l-0.166-1.899c-1.993-15.616-3.131-33.682-3.131-52.015 0-221.815 166.544-404.731 381.407-430.526l2.066-0.202c14.629 0 34.133-4.876 48.762-4.876 215.652 0.135 394.577 157.206 428.758 363.181l0.347 2.533c1.371 4.942 2.159 10.616 2.159 16.475 0 13.944-4.464 26.845-12.041 37.352l0.13-0.189z" />
|
13 |
+
<glyph unicode="" glyph-name="search" d="M971.776 43.471v0l-229.181 238.933c55.081 68.606 88.402 156.733 88.402 252.643 0 123.082-54.876 233.348-141.497 307.664l-0.543 0.455c-69.546 57.518-159.64 92.409-257.884 92.409-122.797 0-232.861-54.51-307.317-140.653l-0.437-0.517c-58.497-69.347-94.048-159.711-94.048-258.378 0-122.973 55.224-233.047 142.225-306.777l0.585-0.483c70.103-56.823 160.111-91.588 258.204-92.646l0.234-0.002c83.582 0.912 161.063 26.265 225.849 69.23l-1.544-0.963 229.181-238.933c9.827-10.813 23.459-18.017 38.766-19.486l0.244-0.019h4.876c0.442-0.013 0.961-0.020 1.482-0.020 14.496 0 27.692 5.568 37.565 14.683l-0.038-0.034c10.813 9.827 18.017 23.459 19.486 38.766l0.019 0.244c0.933 3.29 1.47 7.070 1.47 10.974 0 13.337-6.263 25.212-16.008 32.843l-0.091 0.069zM430.519 253.147c-156.197 0-282.819 126.622-282.819 282.819s126.622 282.819 282.819 282.819c156.197 0 282.819-126.622 282.819-282.819v0c0-156.197-126.622-282.819-282.819-282.819v0z" />
|
14 |
+
<glyph unicode="" glyph-name="arrow-right" horiz-adv-x="1550" d="M1545.967 412.193c-0.2 0.888-0.314 1.907-0.314 2.953s0.115 2.066 0.332 3.046l-0.017-0.093c0.521 4.541 0.819 9.803 0.819 15.135s-0.297 10.594-0.877 15.771l0.058-0.636c0.521 4.431 0.818 9.563 0.818 14.766s-0.297 10.335-0.876 15.382l0.057-0.617c-0.158 0.888-0.248 1.91-0.248 2.953s0.090 2.065 0.263 3.059l-0.015-0.106c-2.399 8.922-4.92 16.292-7.854 23.448l0.472-1.299c-7.938 18.332-18.637 33.999-31.76 47.264l0.013-0.013-362.497 363.236c-27.142 27.051-64.59 43.775-105.944 43.775-82.892 0-150.088-67.197-150.088-150.088 0-41.537 16.874-79.134 44.14-106.309l105.579-105.579h-890.371c-83.587 0-151.348-67.761-151.348-151.348s67.761-151.348 151.348-151.348v0h885.941l-101.145-103.36c-27.113-27.113-43.883-64.57-43.883-105.944 0-82.747 67.080-149.827 149.827-149.827 41.374 0 78.83 16.77 105.944 43.883v0l362.497 361.759c13.109 13.251 23.809 28.918 31.366 46.269l0.381 0.981c2.953 8.121 5.168 15.504 7.383 22.887z" />
|
15 |
+
<glyph unicode="" glyph-name="arrow-left" horiz-adv-x="1550" d="M1402.74 598.241h-885.941l101.145 105.575c27.271 27.179 44.145 64.775 44.145 106.313 0 82.892-67.197 150.088-150.088 150.088-41.354 0-78.802-16.725-105.948-43.78l-362.493-362.493c-13.109-13.251-23.809-28.918-31.366-46.269l-0.381-0.981c0-8.121-5.168-15.504-7.383-22.887 0.2-0.888 0.314-1.907 0.314-2.953s-0.115-2.066-0.332-3.046l0.017 0.093c-0.521-4.431-0.818-9.563-0.818-14.766s0.297-10.335 0.876-15.382l-0.057 0.617c-0.521-4.541-0.819-9.803-0.819-15.135s0.297-10.594 0.877-15.771l-0.058 0.636c0.153-0.777 0.24-1.67 0.24-2.584s-0.087-1.807-0.254-2.672l0.014 0.088c2.41-9.253 4.934-16.876 7.873-24.29l-0.491 1.403c7.749-18.656 18.478-34.594 31.757-48l-0.011 0.011 362.497-361.759c27.113-27.113 64.57-43.883 105.944-43.883 82.747 0 149.827 67.080 149.827 149.827 0 41.374-16.77 78.83-43.883 105.944v0l-105.575 103.36h890.371c83.587 0 151.348 67.761 151.348 151.348s-67.761 151.348-151.348 151.348v0z" />
|
16 |
+
<glyph unicode="" glyph-name="star-o" d="M967.826 605.355c-16.528 15.79-37.705 26.845-61.274 30.912l-0.702 0.1-203.678 30.964-92.94 185.978c-12.756 25.216-34.682 44.237-61.285 52.893l-0.741 0.208c-10.017 2.967-21.526 4.674-33.433 4.674-16.677 0-32.571-3.349-47.048-9.41l0.804 0.299c-21.611-12.029-38.498-30.315-48.475-52.392l-0.287-0.709-92.891-181.541-203.63-31.013c-28.627-4.472-53.259-18.944-70.708-39.665l-0.143-0.174c-13.933-21.052-22.23-46.894-22.23-74.673 0-1.76 0.033-3.512 0.099-5.256l-0.008 0.251c4.167-24.271 15.222-45.448 31.055-62.022l-0.043 0.045 146.286-146.286-35.401-203.63c-0.598-4.635-0.939-9.996-0.939-15.436 0-27.382 8.641-52.745 23.344-73.513l-0.267 0.397c20.009-23.735 49.758-38.71 83.005-38.71 18.202 0 35.356 4.488 50.415 12.419l-0.592-0.284 181.492 97.524 181.492-97.524c13.32-8.338 29.504-13.284 46.843-13.284 0.675 0 1.348 0.007 2.019 0.022l-0.1-0.002c33.806 0.047 63.999 15.473 83.966 39.654l0.148 0.185c15.813 16.525 25.548 38.98 25.548 63.708 0 8.844-1.245 17.397-3.57 25.494l0.16-0.651-35.401 203.63 146.286 146.286c25.254 18.233 41.499 47.586 41.499 80.733 0 27.214-10.95 51.871-28.684 69.804l0.009-0.009zM901.413 516.803l-154.965-150.528c-14.125-12.647-22.973-30.938-22.973-51.295 0-3.771 0.304-7.471 0.888-11.076l-0.053 0.395 35.401-212.699c0.076-0.59 0.119-1.272 0.119-1.965 0-4.39-1.737-8.374-4.561-11.303l0.005 0.005c0-8.875-8.875-8.875-17.701-4.437l-190.171 101.815c-9.001 4.747-19.539 7.92-30.714 8.855l-0.299 0.020c-13.002-0.93-25.042-4.105-36.052-9.141l0.65 0.267-190.171-101.815c-8.875-4.437-17.701-4.437-22.138 4.437-2.819 2.924-4.556 6.908-4.556 11.298 0 0.693 0.043 1.375 0.127 2.045l-0.008-0.080 35.401 212.504c0.724 3.642 1.138 7.829 1.138 12.113 0 19.977-9.005 37.85-23.177 49.782l-0.099 0.081-150.723 150.723-8.972 8.777c0 8.875 0 13.263 4.437 13.263 0 4.437 4.437 4.437 13.263 8.875l212.504 31.013c23.656 3.768 43.119 18.844 52.919 39.412l0.183 0.427 92.989 194.706c0 4.437 4.437 4.437 8.875 8.875h17.701c4.702-0.444 8.408-4.167 8.823-8.837l0.003-0.037 92.989-190.171c9.983-20.994 29.445-36.071 52.699-39.785l0.403-0.053 212.504-31.013c3.5-0.495 6.557-2.098 8.873-4.436l0.001-0.001c13.263-13.263 13.263-22.235 4.437-31.013z" />
|
17 |
+
<glyph unicode="" glyph-name="times" d="M633.71 448l365.129 365.129c14.672 15.409 23.699 36.31 23.699 59.32 0 47.546-38.543 86.089-86.089 86.089-23.009 0-43.911-9.027-59.355-23.733l0.035 0.033-365.129-365.129-365.056 365.129c-15.409 14.672-36.31 23.699-59.32 23.699-47.546 0-86.089-38.543-86.089-86.089 0-23.009 9.027-43.911 23.733-59.355l-0.033 0.035 365.056-365.129-365.056-365.056c-16.505-15.715-26.769-37.854-26.769-62.39 0-47.546 38.543-86.089 86.089-86.089 24.536 0 46.675 10.265 62.357 26.734l0.033 0.035 365.056 365.129 365.129-365.129c15.409-14.672 36.31-23.699 59.32-23.699 47.546 0 86.089 38.543 86.089 86.089 0 23.009-9.027 43.911-23.733 59.355l0.033-0.035z" />
|
18 |
+
<glyph unicode="" glyph-name="tumblr-square" d="M853.285-64h-682.667c-94.506 1.152-170.674 78.032-170.674 172.703 0 0.57 0.003 1.139 0.008 1.708l-0.001-0.087v675.352c-0.005 0.482-0.008 1.051-0.008 1.621 0 94.67 76.168 171.55 170.565 172.702l0.109 0.001h682.667c94.506-1.152 170.674-78.032 170.674-172.703 0-0.57-0.003-1.139-0.008-1.708l0.001 0.087v-675.352c0.005-0.482 0.008-1.051 0.008-1.621 0-94.67-76.168-171.55-170.565-172.702l-0.109-0.001zM393.46 532.358v0c0.245 0.034 0.528 0.054 0.816 0.054 1.557 0 2.98-0.575 4.068-1.523l-0.007 0.006c0.826-1.11 1.322-2.508 1.322-4.021 0-0.301-0.020-0.598-0.058-0.889l0.004 0.034c0-8.777 0-17.701 0-26.331q0.439-42.959 0.78-85.918v-0.975c0.439-52.712 0.926-107.276 1.609-160.914 0.922-25.072 10.816-47.67 26.546-64.831l-0.068 0.075c27.716-33.163 68.743-54.403 114.757-55.439l0.175-0.003c8.094-0.341 17.506-0.683 26.819-0.683 1.695-0.051 3.69-0.080 5.691-0.080 20.915 0 41.086 3.184 60.054 9.095l-1.428-0.383c23.176 7.583 42.529 15.589 61.158 24.837l-2.644-1.187c3.755 1.853 6.632 3.657 6.632 9.167v95.281c0.013 0.3 0.021 0.652 0.021 1.006 0 1.141-0.078 2.264-0.23 3.364l0.014-0.127v0.39c-4.535-2.292-9.021-4.876-13.361-7.168-7.537-4.465-16.572-9.036-25.907-13.044l-1.595-0.609c-13.436-5.752-29.053-9.205-45.446-9.459l-0.098-0.001c-0.023 0-0.050 0-0.077 0-11.625 0-22.762 2.092-33.054 5.919l0.656-0.214c-19.62 5.797-34.206 22.361-37.028 42.687l-0.031 0.272c-1.615 12.093-2.537 26.073-2.537 40.269 0 0.277 0 0.555 0.001 0.832v-0.043c-0.293 48.762-0.39 97.768-0.439 145.408v55.394h133.754c5.803 0 7.802 2.097 7.802 8.387-0.098 30.476-0.098 61.391-0.098 91.819 0 6.632-2.097 8.631-8.875 8.631h-132.876v29.94c-0.439 44.861-0.683 90.21-0.975 134.095v1.073c0.066 0.391 0.103 0.841 0.103 1.3 0 1.695-0.512 3.271-1.39 4.581l0.019-0.030c-1.014 0.865-2.339 1.391-3.788 1.391-0.194 0-0.387-0.009-0.576-0.028l0.024 0.002h-72.85c-5.169 0-6.68-2.731-7.509-7.461l-0.488-1.707c-2.536-14.629-5.169-30.184-8.728-45.056-7.774-32.558-23.086-60.797-44.023-83.829l0.138 0.154c-16.206-17.405-35.79-31.426-57.736-41.058l-1.12-0.438c-4.224-1.133-7.282-4.926-7.282-9.434 0-0.525 0.042-1.041 0.122-1.544l-0.007 0.055v-90.795h0.78c0.287 0.006 0.625 0.009 0.964 0.009 2.343 0 4.647-0.163 6.903-0.478l-0.26 0.030h50.42z" />
|
19 |
+
<glyph unicode="" glyph-name="twitter-square" d="M853.333-64h-682.667c-94.506 1.152-170.674 78.032-170.674 172.703 0 0.57 0.003 1.139 0.008 1.708l-0.001-0.087v675.352c-0.005 0.482-0.008 1.051-0.008 1.621 0 94.67 76.168 171.55 170.565 172.702l0.109 0.001h682.667c94.506-1.152 170.674-78.032 170.674-172.703 0-0.57-0.003-1.139-0.008-1.708l0.001 0.087v-675.352c0.005-0.482 0.008-1.051 0.008-1.621 0-94.67-76.168-171.55-170.565-172.702l-0.109-0.001zM200.509 263.192v0c51.345-33.931 114.353-54.132 182.078-54.132 92.957 0 177.026 38.056 237.477 99.438l0.041 0.042c60.332 61.855 97.547 146.502 97.547 239.841 0 1.395-0.008 2.789-0.025 4.18l0.002-0.211c0 4.632 0 9.46-0.439 15.604 23.369 17.211 43.001 37.899 58.545 61.518l0.555 0.897c-19.857-9.092-42.893-15.791-67.046-18.936l-1.221-0.13c24.558 15.174 42.934 38.342 51.651 65.811l0.232 0.846c-21.52-13.297-46.589-23.442-73.34-28.995l-1.509-0.262c-21.418 22.895-51.813 37.164-85.541 37.164-20.478 0-39.728-5.26-56.472-14.502l0.603 0.305c-37.657-21.231-62.67-60.968-62.67-106.546 0-9.349 1.052-18.451 3.045-27.196l-0.157 0.818c-98.854 5.533-185.536 53.332-242.946 125.468l-0.522 0.679c-10.080-17.388-16.029-38.257-16.029-60.515 0-41.419 20.599-78.028 52.112-100.139l0.391-0.26c-19.669 0.463-37.988 5.831-53.906 14.923l0.56-0.295v-1.365c-0.001-0.196-0.002-0.428-0.002-0.66 0-57.381 40.062-105.405 93.742-117.628l0.809-0.155c-8.998-2.541-19.332-4.002-30.007-4.002-0.319 0-0.638 0.001-0.957 0.004h0.049c-0.606-0.013-1.32-0.021-2.036-0.021-7.205 0-14.23 0.771-20.997 2.236l0.651-0.118c15.188-47.912 58.539-82.325 110.161-83.963l0.187-0.005c-39.718-31.943-90.727-51.314-146.257-51.444h-0.029c-0.419-0.003-0.914-0.005-1.41-0.005-9.473 0-18.802 0.622-27.946 1.827l1.074-0.116z" />
|
20 |
+
<glyph unicode="" glyph-name="angle-down" d="M463.726 199.168l-419.352 404.724c-12.331 11.733-20.001 28.267-20.001 46.592s7.67 34.859 19.974 46.567l0.027 0.025c12.544 11.952 29.563 19.305 48.299 19.305s35.755-7.354 48.327-19.332l-0.028 0.027 371.029-358.156 371.029 357.912c12.544 11.952 29.563 19.305 48.299 19.305s35.755-7.354 48.327-19.332l-0.028 0.027c12.331-11.733 20.001-28.267 20.001-46.592s-7.67-34.859-19.974-46.567l-0.027-0.025-419.352-404.724c-12.536-11.948-29.547-19.3-48.274-19.3s-35.738 7.352-48.302 19.327l0.028-0.027z" />
|
21 |
+
<glyph unicode="" glyph-name="angle-left" d="M263.851 496.274l419.352 419.352c12.359 12.365 29.436 20.013 48.299 20.013 37.714 0 68.287-30.573 68.287-68.287 0-18.851-7.638-35.918-19.989-48.275l-371.078-371.078 371.029-371.029c12.361-12.361 20.006-29.437 20.006-48.299 0-37.724-30.581-68.305-68.305-68.305-18.862 0-35.938 7.645-48.299 20.006l-419.352 419.352c-12.355 12.354-19.997 29.422-19.997 48.274s7.642 35.92 19.997 48.274v0z" />
|
22 |
+
<glyph unicode="" glyph-name="angle-right" d="M760.149 399.726l-419.352-419.352c-12.359-12.365-29.436-20.013-48.299-20.013-37.714 0-68.287 30.573-68.287 68.287 0 18.851 7.638 35.918 19.989 48.275l371.078 371.078-371.029 371.029c-12.361 12.361-20.006 29.437-20.006 48.299 0 37.724 30.581 68.305 68.305 68.305 18.862 0 35.938-7.645 48.299-20.006l419.352-419.352c12.355-12.354 19.997-29.422 19.997-48.274s-7.642-35.92-19.997-48.274v0z" />
|
23 |
+
<glyph unicode="" glyph-name="angle-up" d="M560.274 696.832l419.352-404.724c12.331-11.733 20.001-28.267 20.001-46.592s-7.67-34.859-19.974-46.567l-0.027-0.025c-12.544-11.952-29.563-19.305-48.299-19.305s-35.755 7.354-48.327 19.332l0.028-0.027-371.029 358.156-371.029-357.912c-12.544-11.952-29.563-19.305-48.299-19.305s-35.755 7.354-48.327 19.332l0.028-0.027c-12.331 11.733-20.001 28.267-20.001 46.592s7.67 34.859 19.974 46.567l0.027 0.025 419.352 404.724c12.536 11.948 29.547 19.3 48.274 19.3s35.738-7.352 48.302-19.327l-0.028 0.027z" />
|
24 |
+
<glyph unicode="" glyph-name="arrows-in" d="M625.323 367.738h284.331c0.137 0.002 0.299 0.003 0.461 0.003 11.13 0 21.182-4.615 28.347-12.035l0.011-0.011c7.439-7.245 12.054-17.359 12.054-28.55s-4.615-21.305-12.045-28.542l-0.009-0.008-91.624-91.429 138.874-138.923c3.948-3.647 6.411-8.85 6.411-14.629s-2.464-10.982-6.398-14.616l-0.013-0.012-72.363-72.216c-3.658-3.899-8.829-6.342-14.571-6.388h-0.008c-0.006 0-0.014 0-0.022 0-5.767 0-10.962 2.454-14.595 6.375l-0.012 0.013-138.874 138.923-91.38-91.429c-7.245-7.439-17.359-12.054-28.55-12.054s-21.305 4.615-28.542 12.045l-0.008 0.009c-7.429 7.114-12.046 17.113-12.046 28.19 0 0.118 0.001 0.236 0.002 0.353v-0.018 284.379c0.272 22.296 18.274 40.298 40.544 40.57h0.026zM398.629 528.262h-284.233c-0.065 0-0.142-0.001-0.219-0.001-11.129 0-21.18 4.614-28.345 12.033l-0.011 0.011c-7.431 7.168-12.045 17.213-12.045 28.335 0 0.084 0 0.168 0.001 0.252v-0.013c-0.001 0.1-0.001 0.217-0.001 0.335 0 11.077 4.617 21.076 12.032 28.177l0.014 0.013 91.38 91.38-138.874 138.923c-3.934 3.653-6.388 8.854-6.388 14.628 0 0 0 0 0 0v0c0 0 0 0 0 0 0 5.774 2.454 10.975 6.375 14.617l0.013 0.011 72.363 72.314c3.669 3.911 8.86 6.357 14.623 6.388h0.006c0.006 0 0.014 0 0.022 0 5.767 0 10.962-2.454 14.595-6.375l0.012-0.013 138.923-138.923 91.38 91.429c7.114 7.429 17.113 12.046 28.191 12.046 0.135 0 0.27-0.001 0.404-0.002h-0.021c0.1 0.001 0.217 0.001 0.335 0.001 11.077 0 21.076-4.617 28.177-12.032l0.013-0.014c7.429-7.114 12.046-17.113 12.046-28.19 0-0.118-0.001-0.236-0.002-0.353v0.018-284.331c0.001-0.114 0.002-0.249 0.002-0.384 0-11.077-4.617-21.076-12.032-28.177l-0.014-0.013c-7.118-7.459-17.137-12.096-28.238-12.096-0.17 0-0.339 0.001-0.508 0.003h0.026zM431.738 334.677v-284.331c0.002-0.137 0.003-0.299 0.003-0.461 0-11.13-4.615-21.182-12.035-28.347l-0.011-0.011c-7.245-7.439-17.359-12.054-28.55-12.054s-21.305 4.615-28.542 12.045l-0.008 0.009-91.429 91.624-138.923-138.874c-3.647-3.948-8.85-6.411-14.629-6.411s-10.982 2.464-14.616 6.398l-0.012 0.013-72.216 72.363c-3.899 3.658-6.342 8.829-6.388 14.571v0.008c0 0.006 0 0.014 0 0.022 0 5.767 2.454 10.962 6.375 14.595l0.013 0.012 138.923 138.874-91.429 91.38c-7.439 7.245-12.054 17.359-12.054 28.55s4.615 21.305 12.045 28.542l0.009 0.008c7.114 7.429 17.113 12.046 28.19 12.046 0.118 0 0.236-0.001 0.353-0.002h284.361c22.296-0.272 40.298-18.274 40.57-40.544v-0.026zM592.262 561.371v284.331c-0.002 0.137-0.003 0.299-0.003 0.461 0 11.13 4.615 21.182 12.035 28.347l0.011 0.011c7.245 7.439 17.359 12.054 28.55 12.054s21.305-4.615 28.542-12.045l0.008-0.009 91.429-91.624 138.923 138.874c3.647 3.948 8.85 6.411 14.629 6.411s10.982-2.464 14.616-6.398l0.012-0.013 72.216-72.363c3.899-3.658 6.342-8.829 6.388-14.571v-0.008c0-0.006 0-0.014 0-0.022 0-5.767-2.454-10.962-6.375-14.595l-0.013-0.012-138.923-138.874 91.429-91.38c7.439-7.245 12.054-17.359 12.054-28.55s-4.615-21.305-12.045-28.542l-0.009-0.008c-7.114-7.429-17.113-12.046-28.19-12.046-0.118 0-0.236 0.001-0.353 0.002h-284.361c-22.296 0.272-40.298 18.274-40.57 40.544v0.026z" />
|
25 |
+
<glyph unicode="" glyph-name="arrows-out" d="M431.933 274.554c0-0.006 0-0.014 0-0.022 0-5.767-2.454-10.962-6.375-14.595l-0.013-0.012-138.971-138.971 91.429-91.429c7.264-7.336 11.751-17.432 11.751-28.576 0-22.33-18.019-40.452-40.31-40.618h-284.444c-22.312 0.298-40.321 18.307-40.618 40.59v284.456c-0.001 0.088-0.001 0.193-0.001 0.298 0 22.298 18.076 40.375 40.375 40.375 11.284 0 21.487-4.629 28.813-12.092l91.435-91.435 138.971 138.971c3.647 3.948 8.85 6.411 14.629 6.411s10.982-2.464 14.616-6.398l0.012-0.013 72.411-72.411c3.905-3.642 6.339-8.818 6.339-14.562 0-0.023 0-0.047 0-0.070v0.004zM999.668 894.952v-284.428c0.001-0.088 0.001-0.193 0.001-0.298 0-22.298-18.076-40.375-40.375-40.375-11.284 0-21.487 4.629-28.813 12.092l-91.435 91.435-138.971-138.971c-3.647-3.948-8.85-6.411-14.629-6.411s-10.982 2.464-14.616 6.398l-0.012 0.013-72.411 72.411c-3.948 3.647-6.411 8.85-6.411 14.629s2.464 10.982 6.398 14.616l0.013 0.012 138.971 138.971-91.429 91.429c-7.264 7.336-11.751 17.432-11.751 28.576 0 22.33 18.019 40.452 40.31 40.618h284.444c22.312-0.298 40.321-18.307 40.618-40.59v-0.028zM338.603 528.067c-0.006 0-0.014 0-0.022 0-5.767 0-10.962 2.454-14.595 6.375l-0.012 0.013-138.679 138.923-91.672-91.331c-7.341-7.292-17.456-11.8-28.624-11.8-22.347 0-40.479 18.046-40.618 40.361v284.344c-0.001 0.114-0.002 0.249-0.002 0.384 0 11.077 4.617 21.076 12.032 28.177l0.014 0.013c7.115 7.429 17.114 12.047 28.191 12.047 0.152 0 0.304-0.001 0.455-0.003h284.454c0.114 0.001 0.249 0.002 0.384 0.002 11.077 0 21.076-4.617 28.177-12.032l0.013-0.014c7.4-7.111 11.998-17.091 11.998-28.144 0-0.151-0.001-0.302-0.003-0.453v0.023c0.001-0.114 0.002-0.249 0.002-0.384 0-11.077-4.617-21.076-12.032-28.177l-0.014-0.013-91.429-91.429 138.971-138.971c3.948-3.647 6.411-8.85 6.411-14.629s-2.464-10.982-6.398-14.616l-0.013-0.012-72.411-72.411c-3.639-3.876-8.796-6.291-14.517-6.291-0.039 0-0.079 0-0.118 0h0.006zM959-39.668h-284.428c-0.088-0.001-0.193-0.001-0.298-0.001-22.298 0-40.375 18.076-40.375 40.375 0 11.284 4.629 21.487 12.092 28.813l0.006 0.006 91.429 91.721-138.923 138.971c-3.948 3.647-6.411 8.85-6.411 14.629s2.464 10.982 6.398 14.616l0.013 0.012 72.46 72.070c3.647 3.948 8.85 6.411 14.629 6.411s10.982-2.464 14.616-6.398l0.012-0.013 138.971-138.971 91.234 91.429c7.114 7.429 17.113 12.046 28.191 12.046 0.135 0 0.27-0.001 0.404-0.002h-0.021c0.114 0.001 0.249 0.002 0.384 0.002 11.077 0 21.076-4.617 28.177-12.032l0.013-0.014c7.429-7.114 12.046-17.113 12.046-28.19 0-0.118-0.001-0.236-0.002-0.353v0.018-284.428c0.001-0.114 0.002-0.249 0.002-0.384 0-11.077-4.617-21.076-12.032-28.177l-0.014-0.013c-7.122-7.486-17.159-12.143-28.283-12.143-0.103 0-0.205 0-0.307 0.001h0.016z" />
|
26 |
+
<glyph unicode="" glyph-name="chevron-left-sm" d="M466.651 424.692l202.167 202.216c9.010 9.819 14.532 22.965 14.532 37.4s-5.522 27.582-14.569 37.441l0.037-0.041c-9.819 9.010-22.965 14.532-37.4 14.532s-27.582-5.522-37.441-14.569l0.041 0.037-238.202-241.030c-9.010-9.819-14.532-22.965-14.532-37.4s5.522-27.582 14.569-37.441l-0.037 0.041 238.202-238.202c9.19-9.636 21.896-15.849 36.052-16.574l0.129-0.005c0.359-0.010 0.781-0.016 1.204-0.016 14.018 0 26.528 6.458 34.717 16.561l0.065 0.083c9.010 9.819 14.532 22.965 14.532 37.4s-5.522 27.582-14.569 37.441l0.037-0.041z" />
|
27 |
+
<glyph unicode="" glyph-name="chevron-right-sm" d="M558.031 422.546l-202.167-202.216c-9.010-9.819-14.532-22.965-14.532-37.4s5.522-27.582 14.569-37.441l-0.037 0.041c9.819-9.010 22.965-14.532 37.4-14.532s27.582 5.522 37.441 14.569l-0.041-0.037 238.202 241.030c9.010 9.819 14.532 22.965 14.532 37.4s-5.522 27.582-14.569 37.441l0.037-0.041-238.202 238.202c-9.19 9.636-21.896 15.849-36.052 16.574l-0.129 0.005c-0.359 0.010-0.781 0.016-1.204 0.016-14.018 0-26.528-6.458-34.717-16.561l-0.065-0.083c-9.010-9.819-14.532-22.965-14.532-37.4s5.522-27.582 14.569-37.441l-0.037 0.041z" />
|
28 |
+
<glyph unicode="" glyph-name="comment-square" d="M853.333 911.238h-682.667c-94.134-0.304-170.363-76.532-170.667-170.637v-426.696c0.304-94.134 76.532-170.363 170.637-170.667h0.029v-128.049c0.311-23.326 19.293-42.115 42.663-42.115 11.646 0 22.202 4.666 29.901 12.23l157.934 157.934h452.169c94.134 0.304 170.363 76.532 170.667 170.637v426.696c-0.304 94.134-76.532 170.363-170.637 170.667h-0.029z" />
|
29 |
+
<glyph unicode="" glyph-name="compress" d="M431.982 342.089v-284.477c0.002-0.137 0.003-0.299 0.003-0.461 0-11.13-4.615-21.182-12.035-28.347l-0.011-0.011c-7.253-7.442-17.375-12.058-28.574-12.058s-21.321 4.616-28.566 12.049l-0.008 0.008-91.429 91.672-138.971-138.923c-3.653-3.934-8.854-6.388-14.629-6.388s-10.975 2.454-14.617 6.376l-0.012 0.013-72.363 72.363c-3.948 3.647-6.411 8.85-6.411 14.629s2.464 10.982 6.398 14.616l0.013 0.012 138.971 138.971-91.38 91.331c-7.442 7.253-12.058 17.375-12.058 28.574s4.616 21.321 12.049 28.566l0.008 0.008c7.114 7.429 17.113 12.046 28.19 12.046 0.118 0 0.236-0.001 0.353-0.002h284.41c22.333-0.271 40.369-18.29 40.667-40.59v-0.028zM592.018 568.832v284.331c0 0.065-0.001 0.142-0.001 0.219 0 11.129 4.614 21.18 12.033 28.345l0.011 0.011c7.176 7.431 17.227 12.045 28.356 12.045 0.077 0 0.154 0 0.231-0.001h-0.012c0.1 0.001 0.217 0.001 0.335 0.001 11.077 0 21.076-4.617 28.177-12.032l0.013-0.014 91.429-91.429 138.971 138.923c3.638 3.933 8.825 6.388 14.586 6.388 0.015 0 0.030 0 0.045 0h-0.002c0 0 0 0 0 0 5.774 0 10.975-2.454 14.617-6.375l0.011-0.013 72.363-72.363c3.911-3.669 6.357-8.86 6.388-14.623v-0.006c-0.019-5.771-2.468-10.966-6.376-14.618l-0.012-0.011-138.971-138.971 91.429-91.429c7.429-7.114 12.046-17.113 12.046-28.191 0-0.135-0.001-0.27-0.002-0.404v0.021c0.001-0.1 0.001-0.217 0.001-0.335 0-11.077-4.617-21.076-12.032-28.177l-0.014-0.013c-7.114-7.429-17.113-12.046-28.19-12.046-0.118 0-0.236 0.001-0.353 0.002h-284.41c-0.114-0.001-0.249-0.002-0.384-0.002-11.077 0-21.076 4.617-28.177 12.032l-0.013 0.014c-7.459 7.118-12.096 17.137-12.096 28.238 0 0.17 0.001 0.339 0.003 0.508v-0.026z" />
|
30 |
+
<glyph unicode="" glyph-name="download" d="M989.867 277.333c-9.835 9.080-23.031 14.648-37.527 14.648-0.521 0-1.041-0.007-1.559-0.022l0.076 0.002c-29.513-0.273-53.365-24.125-53.638-53.612v-185.321h-789.943v185.295c-0.273 29.513-24.125 53.365-53.612 53.638h-0.026c-29.513-0.273-53.365-24.125-53.638-53.612v-238.959c-0.013-0.447-0.020-0.973-0.020-1.501 0-14.49 5.569-27.68 14.683-37.546l-0.034 0.037c9.828-9.080 23.018-14.649 37.509-14.649 0.528 0 1.054 0.007 1.578 0.022l-0.077-0.002h902.095c29.513 0.273 53.365 24.125 53.638 53.612v238.959c-2.563 15.289-9.527 28.632-19.528 39.034l0.023-0.024zM477.867 218.819l9.752-9.752c5.542-2.141 11.954-3.382 18.657-3.382 13.424 0 25.686 4.977 35.042 13.186l-0.060-0.052 238.933 253.562c8.816 9.26 14.239 21.819 14.239 35.646 0 28.573-23.163 51.736-51.736 51.736-13.826 0-26.386-5.424-35.667-14.259l0.021 0.020-146.286-156.038v507.124c-0.273 29.513-24.125 53.365-53.612 53.638h-0.026c-0.954 0.059-2.070 0.092-3.193 0.092-29.998 0-54.422-23.867-55.319-53.648l-0.002-0.083v-502.248l-141.41 156.038c-10.891 9.006-23.985 15.765-38.334 19.361l-0.676 0.143c-13.309-0.611-25.236-6.073-34.151-14.645l0.017 0.017c-11.7-10.041-19.066-24.846-19.066-41.371 0-14.137 5.39-27.014 14.228-36.69l-0.038 0.042z" />
|
31 |
+
<glyph unicode="" glyph-name="expand" d="M24.381 15.482v284.477c-0.002 0.137-0.003 0.299-0.003 0.461 0 11.13 4.615 21.182 12.035 28.347l0.011 0.011c7.253 7.442 17.375 12.058 28.574 12.058s21.321-4.616 28.566-12.049l0.008-0.008 91.429-91.672 138.971 138.923c3.653 3.934 8.854 6.388 14.629 6.388s10.975-2.454 14.617-6.376l0.012-0.013 72.363-72.363c3.948-3.647 6.411-8.85 6.411-14.629s-2.464-10.982-6.398-14.616l-0.013-0.012-138.971-138.971 91.38-91.331c7.442-7.253 12.058-17.375 12.058-28.574s-4.616-21.321-12.049-28.566l-0.008-0.008c-7.114-7.429-17.113-12.046-28.19-12.046-0.118 0-0.236 0.001-0.353 0.002h-284.41c-22.333 0.271-40.369 18.29-40.667 40.59v0.028zM999.717 894.854v-284.331c0-0.065 0.001-0.142 0.001-0.219 0-11.129-4.614-21.18-12.033-28.345l-0.011-0.011c-7.176-7.431-17.227-12.045-28.356-12.045-0.077 0-0.154 0-0.231 0.001h0.012c-0.1-0.001-0.217-0.001-0.335-0.001-11.077 0-21.076 4.617-28.177 12.032l-0.013 0.014-91.429 91.429-138.971-138.923c-3.638-3.933-8.825-6.388-14.586-6.388-0.015 0-0.030 0-0.045 0h0.002c0 0 0 0 0 0-5.774 0-10.975 2.454-14.617 6.375l-0.011 0.013-72.363 72.363c-3.911 3.669-6.357 8.86-6.388 14.623v0.006c0.019 5.771 2.468 10.966 6.376 14.618l0.012 0.011 138.971 138.971-91.429 91.429c-7.429 7.114-12.046 17.113-12.046 28.191 0 0.135 0.001 0.27 0.002 0.404v-0.021c-0.001 0.1-0.001 0.217-0.001 0.335 0 11.077 4.617 21.076 12.032 28.177l0.014 0.013c7.114 7.429 17.113 12.046 28.19 12.046 0.118 0 0.236-0.001 0.353-0.002h284.41c0.114 0.001 0.249 0.002 0.384 0.002 11.077 0 21.076-4.617 28.177-12.032l0.013-0.014c7.459-7.118 12.096-17.137 12.096-28.238 0-0.17-0.001-0.339-0.003-0.508v0.026z" />
|
32 |
+
<glyph unicode="" glyph-name="facebook-square" d="M853.333-64h-218.405v325.339h146.578v149.699h-146.578v59.928c0 22.869 14.921 39.936 28.379 39.936h118.248v149.65h-118.004c-93.143-8.972-165.383-86.838-165.383-181.577 0-3.521 0.1-7.018 0.297-10.49l-0.022 0.481v-57.88h-107.618v-149.699h107.276v-325.388h-327.436c-94.506 1.152-170.675 78.032-170.675 172.703 0 0.587 0.003 1.174 0.009 1.759l-0.001-0.089v675.352c-0.005 0.482-0.008 1.051-0.008 1.621 0 94.66 76.174 171.53 170.568 172.653l0.106 0.001h682.667c94.506-1.152 170.674-78.032 170.674-172.703 0-0.553-0.003-1.105-0.008-1.657l0.001 0.084v-675.352c0.005-0.482 0.008-1.052 0.008-1.622 0-94.68-76.162-171.571-170.563-172.75l-0.111-0.001z" />
|
33 |
+
<glyph unicode="" glyph-name="heart-o" d="M508.538 4.754c-1.051-0.062-2.281-0.097-3.519-0.097-18.072 0-34.391 7.511-46.003 19.581l-0.020 0.021-361.813 359.717c-20.49 18.818-38.472 39.837-53.733 62.819l-0.783 1.254c-26.677 42.911-42.492 94.985-42.492 150.754 0 105.182 56.254 197.225 140.317 247.684l1.307 0.728c43.607 26.818 96.43 42.705 152.963 42.705 86.613 0 164.516-37.288 218.533-96.688l0.215-0.24c54.237 59.523 131.622 97.145 217.813 98.545l0.25 0.003c0.131 0 0.287 0 0.442 0 160.843 0 291.327-129.988 292.129-290.643v-0.076c-0.117-87.94-38.259-166.947-98.862-221.481l-0.271-0.24-361.813-359.717c-15.729-9.027-34.544-14.429-54.604-14.628h-0.058zM290.475 822.735c-0.263 0.001-0.575 0.002-0.886 0.002-41.558 0-80.555-10.961-114.26-30.149l1.141 0.598c-63.376-39.716-104.896-109.178-104.896-188.338 0-41.379 11.345-80.108 31.095-113.247l-0.561 1.016c10.985-20.045 26.032-36.588 44.138-48.989l0.479-0.31 361.813-359.717 361.813 359.717c47.682 40.704 78.067 100.459 79.284 167.337l0.003 0.208c-1.478 119.578-98.381 216.036-217.99 216.795h-0.073c-78.751-0.346-147.907-41.107-187.835-102.599l-0.532-0.874-29.745-49.298-29.745 49.298c-45.612 57.889-114.672 95.543-192.617 98.533l-0.48 0.015z" />
|
34 |
+
<glyph unicode="" glyph-name="info-circle" d="M512 960c-282.77 0-512-229.23-512-512s229.23-512 512-512c282.77 0 512 229.23 512 512v0c0 282.77-229.23 512-512 512v0zM580.267 209.067c0-37.703-30.564-68.267-68.267-68.267s-68.267 30.564-68.267 68.267v0 238.933c0 37.703 30.564 68.267 68.267 68.267s68.267-30.564 68.267-68.267v0zM512 578.048c-41.284 0-74.752 33.468-74.752 74.752s33.468 74.752 74.752 74.752c41.284 0 74.752-33.468 74.752-74.752v0c0-41.284-33.468-74.752-74.752-74.752v0z" />
|
35 |
+
<glyph unicode="" glyph-name="pause" d="M347.038 960h-203.191c-33.865-0.917-60.968-28.588-60.968-62.589 0-0.488 0.006-0.974 0.017-1.459l-0.001 0.072v-896.049c-0.010-0.413-0.015-0.899-0.015-1.387 0-34.001 27.103-61.672 60.883-62.587l0.085-0.002h203.191c33.865 0.917 60.968 28.588 60.968 62.589 0 0.488-0.006 0.974-0.017 1.459l0.001-0.072v896c0.010 0.427 0.016 0.931 0.016 1.436 0 34.002-27.104 61.673-60.884 62.587l-0.085 0.002zM875.276 960h-203.191c-33.865-0.917-60.968-28.588-60.968-62.589 0-0.488 0.006-0.974 0.017-1.459l-0.001 0.072v-896.049c-0.010-0.413-0.015-0.899-0.015-1.387 0-34.001 27.103-61.672 60.883-62.587l0.085-0.002h203.191c33.865 0.917 60.968 28.588 60.968 62.589 0 0.488-0.006 0.974-0.017 1.459l0.001-0.072v896c0.010 0.427 0.016 0.931 0.016 1.436 0 34.002-27.104 61.673-60.884 62.587l-0.085 0.002z" />
|
36 |
+
<glyph unicode="" glyph-name="instagram" d="M1024 658.651c-0.862 44.894-9.552 87.508-24.755 126.882l0.862-2.539c-13.691 35.688-33.923 66.105-59.45 91.146l-0.040 0.039c-25.589 25.382-56.483 45.458-90.867 58.413l-1.78 0.588c-36.867 14.068-79.488 22.58-123.989 23.401l-0.354 0.005c-55.101 3.413-72.168 3.413-211.627 3.413s-156.038 0-210.651-2.926c-44.894-0.862-87.508-9.552-126.882-24.755l2.539 0.862c-35.605-13.713-65.992-33.76-91.181-58.998l-0.004-0.004c-25.025-25.165-45.032-55.35-58.374-88.908l-0.628-1.789c-14.068-36.867-22.58-79.488-23.401-123.989l-0.005-0.354c-3.413-55.101-3.413-72.168-3.413-211.139s0-156.526 2.926-211.139c0.862-44.894 9.552-87.508 24.755-126.882l-0.862 2.539c27.139-68.982 80.717-122.56 147.928-149.083l1.771-0.616c36.833-14.238 79.431-22.918 123.928-23.886l0.414-0.007c54.613 0 72.168-2.926 211.139-2.926s156.526 0 211.139 2.926c44.912 0.976 87.51 9.655 126.925 24.763l-2.582-0.87c68.949 27.192 122.507 80.75 149.081 147.926l0.618 1.773c14.294 36.834 22.98 79.44 23.887 123.956l0.006 0.387c0 54.613 2.926 71.68 2.926 211.139s0 156.038 0 210.651zM931.84 240.762c-0.376-34.274-6.963-66.9-18.685-96.958l0.643 1.872c-17.617-44.979-52.545-79.907-96.372-97.125l-1.152-0.399c-28.186-11.019-60.803-17.599-94.901-18.040l-0.185-0.002c-54.126 0-70.217-2.926-206.75-2.926s-153.112 0-206.75 2.926c-34.274 0.376-66.9 6.963-96.958 18.685l1.872-0.643c-23.201 8.346-42.953 21.349-58.955 37.985l-0.047 0.049c-16.685 16.049-29.689 35.801-37.699 57.942l-0.335 1.059c-11.277 28.181-17.886 60.84-18.042 95.022v0.063c-2.438 54.126-3.413 70.705-3.413 207.238s0 153.112 3.413 206.75c0.010 34.187 6.451 66.868 18.178 96.901l-0.624-1.815c8.466 23.158 21.449 42.887 37.997 58.966l0.037 0.036c16.329 16.246 35.985 29.164 57.854 37.643l1.148 0.391c27.876 10.177 60.058 16.071 93.614 16.091h0.009c54.126 2.438 70.217 2.926 206.75 2.926s153.112 0 207.238-2.926c34.061-0.324 66.528-6.734 96.5-18.193l-1.902 0.639c23.063-8.737 42.742-21.676 58.994-38.026l0.008-0.008c16.585-16.115 29.568-35.844 37.687-57.923l0.347-1.079c11.019-28.186 17.599-60.803 18.040-94.901l0.002-0.185c0-54.126 2.926-70.217 2.926-206.75s-0.975-151.162-2.926-205.288zM512 710.827c-145.424 0-263.314-117.89-263.314-263.314s117.89-263.314 263.314-263.314c145.424 0 263.314 117.89 263.314 263.314 0 0.171 0 0.343 0 0.514v-0.027c-0.278 145.215-118.061 262.827-263.314 262.827 0 0 0 0 0 0v0zM512 277.333c-94.257 0-170.667 76.41-170.667 170.667s76.41 170.667 170.667 170.667c94.257 0 170.667-76.41 170.667-170.667v0c0-94.257-76.41-170.667-170.667-170.667v0zM846.994 721.067c0-33.932-27.508-61.44-61.44-61.44s-61.44 27.508-61.44 61.44c0 33.932 27.508 61.44 61.44 61.44v0c0.145 0.001 0.317 0.002 0.49 0.002 33.663 0 60.952-27.289 60.952-60.952 0-0.172-0.001-0.344-0.002-0.516v0.026z" />
|
37 |
+
<glyph unicode="" glyph-name="linkedin" d="M560.274 500.663v0 0zM853.333 960h-682.667c-94.494-1.098-170.673-77.956-170.673-172.606 0-0.518 0.002-1.036 0.007-1.553l-0.001 0.079v-675.352c-0.007-0.583-0.011-1.272-0.011-1.961 0-94.652 76.182-171.511 170.574-172.605l0.103-0.001h682.667c94.496 1.096 170.678 77.954 170.678 172.606 0 0.69-0.004 1.378-0.012 2.066l0.001-0.105v675.352c0.004 0.438 0.006 0.956 0.006 1.474 0 94.65-76.179 171.508-170.569 172.605l-0.104 0.001zM320.366 105.204h-155.063v464.701h155.063zM243.81 630.857v0c-44.166 0-79.97 35.804-79.97 79.97s35.804 79.97 79.97 79.97v0c2.654 0.31 5.729 0.488 8.845 0.488 44.435 0 80.457-36.022 80.457-80.457s-36.022-80.457-80.457-80.457c-3.116 0-6.191 0.177-9.214 0.522l0.37-0.034zM877.714 105.204h-154.575v247.71c0 61.928-22.43 104.35-78.019 104.35-36.404-0.15-67.385-23.202-79.292-55.488l-0.19-0.588c-3.488-9.621-5.505-20.726-5.505-32.302 0-1.845 0.051-3.678 0.152-5.497l-0.011 0.253v-258.438h-154.575s0 419.352 0 462.75h154.575v-65.829c27.186 46.18 76.648 76.682 133.234 76.682 2.189 0 4.368-0.046 6.535-0.136l-0.31 0.010c101.912 0 178.469-66.316 178.469-208.213z" />
|
38 |
+
<glyph unicode="" glyph-name="spinner" horiz-adv-x="1026" d="M1026.444 633.493c0-70.186-56.897-127.084-127.084-127.084s-127.084 56.897-127.084 127.084c0 70.186 56.897 127.084 127.084 127.084s127.084-56.897 127.084-127.084zM200.89 211.674c0-42.112-34.138-76.25-76.25-76.25s-76.25 34.138-76.25 76.25c0 42.112 34.138 76.25 76.25 76.25s76.25-34.138 76.25-76.25zM751.259 845.625c0-63.168-51.208-114.375-114.375-114.375s-114.375 51.208-114.375 114.375c0 63.168 51.208 114.375 114.375 114.375s114.375-51.208 114.375-114.375zM450.658-0.458c0-35.093-28.449-63.542-63.542-63.542s-63.542 28.449-63.542 63.542c0 35.093 28.449 63.542 63.542 63.542s63.542-28.449 63.542-63.542zM402.757 810.432c0-56.149-45.518-101.667-101.667-101.667s-101.667 45.518-101.667 101.667c0 56.149 45.518 101.667 101.667 101.667s101.667-45.518 101.667-101.667zM773.743 35.223c0-28.075-22.759-50.833-50.833-50.833s-50.833 22.759-50.833 50.833c0 28.075 22.759 50.833 50.833 50.833s50.833-22.759 50.833-50.833zM113.886 633.004c-7.344 2.186-15.783 3.445-24.515 3.445-49.13 0-88.958-39.828-88.958-88.958s39.828-88.958 88.958-88.958c39.339 0 72.715 25.535 84.455 60.935l0.181 0.628c2.741 8.182 4.323 17.604 4.323 27.395 0 40.398-26.928 74.507-63.814 85.355l-0.629 0.159zM973.167 297.699c0-21.056-17.069-38.125-38.125-38.125s-38.125 17.069-38.125 38.125c0 21.056 17.069 38.125 38.125 38.125s38.125-17.069 38.125-38.125z" />
|
39 |
+
<glyph unicode="" glyph-name="camera-retro" d="M1002.545 865.402c-12.94 13.245-30.981 21.459-50.941 21.459-0.263 0-0.525-0.001-0.787-0.004h-877.674c-0.222 0.002-0.484 0.004-0.747 0.004-19.959 0-38-8.214-50.927-21.445l-0.013-0.014c-13.245-12.94-21.459-30.981-21.459-50.941 0-0.263 0.001-0.525 0.004-0.787v0.040-731.429c-0.002-0.222-0.004-0.484-0.004-0.747 0-19.959 8.214-38 21.445-50.927l0.014-0.013c12.94-13.245 30.981-21.459 50.941-21.459 0.263 0 0.525 0.001 0.787 0.004h877.674c40.396 0 73.143 32.747 73.143 73.143v0 731.429c0.002 0.222 0.004 0.484 0.004 0.747 0 19.959-8.214 38-21.445 50.927l-0.014 0.013zM146.286 850.286h219.429v-73.143h-219.429zM950.857 82.286h-877.714v73.143h877.714v-73.143zM292.571 410.453c-0.016 0.969-0.025 2.113-0.025 3.258 0 59.562 24.663 113.363 64.333 151.749l0.058 0.056c38.442 39.728 92.243 64.391 151.805 64.391 1.146 0 2.289-0.009 3.43-0.027l-0.172 0.002c0.969 0.016 2.113 0.025 3.258 0.025 59.562 0 113.363-24.663 151.749-64.333l0.056-0.058c39.728-38.442 64.391-92.243 64.391-151.805 0-1.146-0.009-2.289-0.027-3.43l0.002 0.172c0-0.145 0.001-0.316 0.001-0.488 0-120.918-98.023-218.941-218.941-218.941-0.172 0-0.343 0-0.515 0.001h0.026c-0.145 0-0.316-0.001-0.488-0.001-120.918 0-218.941 98.023-218.941 218.941 0 0.172 0 0.343 0.001 0.515v-0.026zM950.857 734.72v-67.291h-877.714v73.143h368.152l36.571 73.143h472.99v-78.994zM615.375 307.078c26.482 25.424 42.937 61.12 42.937 100.659 0 0.955-0.010 1.908-0.029 2.858l0.002-0.142c0 80.791-65.494 146.286-146.286 146.286v0c-80.791 0-146.286-65.494-146.286-146.286v0c0-80.791 65.494-146.286 146.286-146.286v0c0.808-0.017 1.761-0.026 2.716-0.026 39.539 0 75.235 16.455 100.614 42.889l0.045 0.047zM472.99 448c-9.935-9.668-16.099-23.168-16.099-38.107 0-0.317 0.003-0.634 0.008-0.95l-0.001 0.047c-0.193-10.084-8.414-18.185-18.526-18.185-4.911 0-9.375 1.91-12.691 5.028l0.010-0.009c-3.314 3.273-5.367 7.816-5.367 12.839 0 0.115 0.001 0.229 0.003 0.343v-0.017c-0.003 0.291-0.005 0.636-0.005 0.98 0 50.827 40.929 92.094 91.626 92.642h0.052c0.297 0.018 0.645 0.028 0.995 0.028 4.728 0 9.020-1.869 12.176-4.91l-0.005 0.005c3.391-3.359 5.491-8.018 5.491-13.166 0-10.234-8.296-18.53-18.53-18.53-0.045 0-0.090 0-0.134 0h0.007c-15.54-0.272-29.415-7.171-38.96-17.984l-0.050-0.057z" />
|
40 |
+
<glyph unicode="" glyph-name="share" d="M1013.272 607.939l-292.571 292.571c-6.617 6.609-15.753 10.695-25.844 10.695s-19.227-4.087-25.844-10.696v0c-6.623-6.47-10.73-15.491-10.73-25.47 0-0.131 0.001-0.262 0.002-0.393v0.020-146.286h-127.756c-272.091 0-438.857-76.556-500.297-230.156-19.277-52.494-30.428-113.11-30.428-176.331 0-5.039 0.071-10.061 0.212-15.065l-0.016 0.737c7.824-95.17 33.801-182.655 74.466-261.316l-1.811 3.853c0-2.926 2.926-7.314 5.851-13.653l7.802-17.067c2.377-4.909 4.811-9.063 7.528-13.006l-0.214 0.328c3.478-5.476 9.298-9.195 16.016-9.747l0.075-0.005c0.231-0.011 0.502-0.018 0.774-0.018 5.131 0 9.734 2.265 12.862 5.849l0.017 0.020c2.75 3.681 4.403 8.32 4.403 13.346 0 0.279-0.005 0.558-0.015 0.835l0.001-0.040c0.187 2.263 0.293 4.898 0.293 7.558s-0.107 5.295-0.315 7.902l0.022-0.343c-0.126 2.040-0.198 4.425-0.198 6.827s0.072 4.786 0.213 7.152l-0.016-0.326q-2.926 39.010-2.926 70.217c-0.010 1.198-0.016 2.614-0.016 4.031 0 35.153 3.556 69.476 10.329 102.628l-0.56-3.284c6.451 29.862 16.034 56.251 28.649 80.827l-0.855-1.833c11.954 22.514 27.291 41.586 45.58 57.324l0.256 0.215c17.296 15.566 37.039 28.918 58.476 39.327l1.501 0.658c20.949 10.018 45.387 18.419 70.89 23.97l2.253 0.411c24.629 5.178 54.813 9.496 85.509 12.009l2.751 0.181c29.257 2.438 62.903 3.413 100.45 3.413h128.244v-146.286c0.018-20.184 16.385-36.539 36.571-36.539 10.091 0 19.227 4.087 25.844 10.696v0l292.571 292.571c6.609 6.617 10.695 15.753 10.695 25.844s-4.087 19.227-10.696 25.844v0z" />
|
41 |
+
<glyph unicode="" glyph-name="step-backward" horiz-adv-x="875" d="M48.762-64h97.524c26.93 0 48.762 21.831 48.762 48.762v0 926.476c0 26.93-21.831 48.762-48.762 48.762v0h-97.524c-26.93 0-48.762-21.831-48.762-48.762v0-926.476c0-26.93 21.831-48.762 48.762-48.762v0zM325.242 482.621c-8.909-8.838-14.424-21.085-14.424-34.621s5.515-25.783 14.42-34.618l0.003-0.003 464.213-462.75c8.938-12.585 23.46-20.698 39.876-20.698 26.93 0 48.762 21.831 48.762 48.762 0 2.139-0.138 4.247-0.405 6.313l0.026-0.244v926.476c0.241 1.822 0.379 3.93 0.379 6.069 0 26.93-21.831 48.762-48.762 48.762-16.416 0-30.938-8.112-39.775-20.547l-0.102-0.15z" />
|
42 |
+
<glyph unicode="" glyph-name="step-forward" horiz-adv-x="875" d="M826.027 960h-97.524c-26.93 0-48.762-21.831-48.762-48.762v0-926.476c0-26.93 21.831-48.762 48.762-48.762v0h97.524c26.93 0 48.762 21.831 48.762 48.762v0 926.476c0 26.93-21.831 48.762-48.762 48.762v0zM550.034 413.379c8.909 8.838 14.424 21.085 14.424 34.621s-5.515 25.783-14.42 34.618l-0.003 0.003-464.213 462.75c-8.999 10.521-22.288 17.147-37.124 17.147-26.93 0-48.762-21.831-48.762-48.762 0-0.886 0.024-1.766 0.070-2.64l-0.005 0.122v-926.476c-0.083-1.069-0.131-2.314-0.131-3.571 0-26.93 21.831-48.762 48.762-48.762 14.872 0 28.189 6.658 37.133 17.156l0.057 0.068z" />
|
43 |
+
<glyph unicode="" glyph-name="user" horiz-adv-x="971" d="M487.619 960c-140.379-6.020-251.905-121.286-251.905-262.6 0-4.368 0.107-8.71 0.317-13.026l-0.024 0.608c-0.187-3.701-0.293-8.037-0.293-12.398 0-141.216 111.579-256.372 251.384-262.114l0.52-0.017c139.459 6.793 249.958 121.515 249.958 262.047 0 4.391-0.108 8.756-0.321 13.093l0.024-0.611c0.19 3.734 0.298 8.107 0.298 12.506 0 140.629-110.448 255.462-249.331 262.486l-0.627 0.025zM709.973 410.453c-62.38-43.101-138.983-69.864-221.665-72.637l-0.689-0.018c-84.047 2.48-161.368 29.286-225.722 73.577l1.417-0.922c-145.31 0-263.314-35.596-263.314-181.882v-195.048c133.154-61.929 289.047-98.058 453.379-98.058 12.041 0 24.036 0.194 35.983 0.579l-1.743-0.044c10.292-0.347 22.391-0.544 34.535-0.544 164.232 0 320.025 36.133 459.862 100.884l-6.778-2.816v195.048c-3.901 146.286-121.905 181.882-265.265 181.882z" />
|
44 |
+
<glyph unicode="" glyph-name="clone" d="M731.429 960h-585.143c-0.006 0-0.013 0-0.020 0-80.791 0-146.286-65.494-146.286-146.286 0-0.857 0.007-1.713 0.022-2.566l-0.002 0.128v-577.341c-0.063-1.6-0.098-3.478-0.098-5.364 0-80.791 65.494-146.286 146.286-146.286 0.035 0 0.069 0 0.104 0h585.137c0.009 0 0.019 0 0.029 0 80.791 0 146.286 65.494 146.286 146.286 0 1.029-0.011 2.055-0.032 3.079l0.002-0.153v579.779c0.013 0.725 0.020 1.581 0.020 2.438 0 80.791-65.494 146.286-146.286 146.286-0.007 0-0.014 0-0.021 0h0.001zM934.766 799.086c1.861-8.869 2.926-19.061 2.926-29.501 0-0.086 0-0.171 0-0.257v0.013-576.853c0.004-0.438 0.006-0.956 0.006-1.474 0-92.496-74.433-167.607-166.668-168.704l-0.104-0.001h-585.143c-9.646 0.248-18.882 1.301-27.85 3.098l1.031-0.172c22.675-52.558 73.856-88.772 133.549-89.234h585.202c0.009 0 0.019 0 0.029 0 80.791 0 146.286 65.494 146.286 146.286 0 1.029-0.011 2.055-0.032 3.079l0.002-0.153v576.853c0.012 0.687 0.018 1.498 0.018 2.311 0 60.192-36.354 111.894-88.304 134.345l-0.948 0.365z" />
|
45 |
+
</font></defs></svg>
|
css/tenweb-fonts/fonts/tenweb.ttf
ADDED
Binary file
|
css/tenweb-fonts/fonts/tenweb.woff
ADDED
Binary file
|
css/wdi_frontend.css
CHANGED
@@ -150,15 +150,25 @@
|
|
150 |
display: block;
|
151 |
}
|
152 |
|
153 |
-
.wdi_feed_main_container .
|
154 |
-
font-family:
|
155 |
font-style: normal;
|
156 |
width: auto;/*for Hueman theme*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
157 |
}
|
158 |
-
.wdi_media_info .
|
159 |
-
|
160 |
}
|
161 |
|
|
|
162 |
/**************************************************************/
|
163 |
|
164 |
/**
|
@@ -352,7 +362,7 @@ div[id^="wdi_container"] p {
|
|
352 |
text-align: center;
|
353 |
}
|
354 |
|
355 |
-
.wdi_feed_item[wdi_type="slideshow"] .
|
356 |
|
357 |
-webkit-transform: rotate(180deg);
|
358 |
-moz-transform: rotate(180deg);
|
150 |
display: block;
|
151 |
}
|
152 |
|
153 |
+
.wdi_feed_main_container .tenweb {
|
154 |
+
font-family: 'tenweb' !important;
|
155 |
font-style: normal;
|
156 |
width: auto;/*for Hueman theme*/
|
157 |
+
speak: none;
|
158 |
+
display:inline-block;
|
159 |
+
line-height: 1;
|
160 |
+
font-weight: normal;
|
161 |
+
font-variant: normal;
|
162 |
+
text-transform: none;
|
163 |
+
vertical-align: top;
|
164 |
+
-webkit-font-smoothing: antialiased;
|
165 |
+
-moz-osx-font-smoothing: grayscale;
|
166 |
}
|
167 |
+
.wdi_media_info .tenweb-i:before {
|
168 |
+
margin-right: 6px;
|
169 |
}
|
170 |
|
171 |
+
|
172 |
/**************************************************************/
|
173 |
|
174 |
/**
|
362 |
text-align: center;
|
363 |
}
|
364 |
|
365 |
+
.wdi_feed_item[wdi_type="slideshow"] .tenweb-i-clone {
|
366 |
|
367 |
-webkit-transform: rotate(180deg);
|
368 |
-moz-transform: rotate(180deg);
|
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}.elementor-editor-active .wdi_front_overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,0.2)}
|
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:#fff}.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 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:#fff}.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 .tenweb{font-family:tenweb!important;font-style:normal;width:auto;speak:none;display:inline-block;line-height:1;font-weight:400;font-variant:normal;text-transform:none;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wdi_media_info .tenweb-i: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,.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}.footer-list-block .bwp_gallery .wdi_spider_popup_loading,.footer-list-block .bwp_gallery_tags .wdi_spider_popup_loading,.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}.footer-list-block .bwp_gallery .wdi_spider_popup_overlay,.footer-list-block .bwp_gallery_tags .wdi_spider_popup_overlay,.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] .tenweb-i-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,.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,.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,.2)}
|
elementor/widget.php
CHANGED
@@ -76,7 +76,7 @@ class WDIElementorWidget extends \Elementor\Widget_Base {
|
|
76 |
'type' => \Elementor\Controls_Manager::SELECT,
|
77 |
'default' => $this->default_feed,
|
78 |
'options' => $this->feed_options,
|
79 |
-
'description' => __('Select the feed to display.', 'wd-instagram-feed') .' <a target="
|
80 |
]
|
81 |
);
|
82 |
|
76 |
'type' => \Elementor\Controls_Manager::SELECT,
|
77 |
'default' => $this->default_feed,
|
78 |
'options' => $this->feed_options,
|
79 |
+
'description' => __('Select the feed to display.', 'wd-instagram-feed') .' <a target="_blank" " href="' . $wdi_edit_link . '">' . __('Edit feed', 'wd-instagram-feed') . '</a>',
|
80 |
]
|
81 |
);
|
82 |
|
framework/WDILibrary.php
CHANGED
@@ -813,10 +813,10 @@ class WDILibrary {
|
|
813 |
<div class="wdi_search_container_1" id="wdi_search_container_1_<?php echo $current_view; ?>">
|
814 |
<div class="wdi_search_container_2" id="wdi_search_container_2_<?php echo $current_view; ?>">
|
815 |
<span class="wdi_search_reset_container" >
|
816 |
-
<i title="<?php echo __('Reset', 'wd-instagram-feed'); ?>" class="wdi_reset
|
817 |
</span>
|
818 |
<span class="wdi_search_loupe_container" >
|
819 |
-
<i title="<?php echo __('Search', 'wd-instagram-feed'); ?>" class="wdi_search
|
820 |
</span>
|
821 |
<span class="wdi_search_input_container">
|
822 |
<input id="wdi_search_input_<?php echo $current_view; ?>" class="wdi_search_input_<?php echo $current_view; ?>" type="text" onkeypress="return check_enter_key(event ,this)" name="wdi_search_<?php echo $current_view; ?>" value="<?php echo $wdi_search; ?>" >
|
813 |
<div class="wdi_search_container_1" id="wdi_search_container_1_<?php echo $current_view; ?>">
|
814 |
<div class="wdi_search_container_2" id="wdi_search_container_2_<?php echo $current_view; ?>">
|
815 |
<span class="wdi_search_reset_container" >
|
816 |
+
<i title="<?php echo __('Reset', 'wd-instagram-feed'); ?>" class="wdi_reset tenweb-i tenweb-i-times" onclick="clear_input_<?php echo $current_view; ?>('<?php echo $current_view; ?>'),wdi_spider_frontend_ajax('<?php echo $form_id; ?>', '<?php echo $current_view; ?>', '<?php echo $cur_gal_id; ?>', <?php echo $album_gallery_id; ?>, '', '<?php echo $type; ?>', 1)"></i>
|
817 |
</span>
|
818 |
<span class="wdi_search_loupe_container" >
|
819 |
+
<i title="<?php echo __('Search', 'wd-instagram-feed'); ?>" class="wdi_search tenweb-i tenweb-i-search" onclick="wdi_spider_frontend_ajax('<?php echo $form_id; ?>', '<?php echo $current_view; ?>', '<?php echo $cur_gal_id; ?>', <?php echo $album_gallery_id; ?>, '', '<?php echo $type; ?>', 1)"></i>
|
820 |
</span>
|
821 |
<span class="wdi_search_input_container">
|
822 |
<input id="wdi_search_input_<?php echo $current_view; ?>" class="wdi_search_input_<?php echo $current_view; ?>" type="text" onkeypress="return check_enter_key(event ,this)" name="wdi_search_<?php echo $current_view; ?>" value="<?php echo $wdi_search; ?>" >
|
frontend/shortcode.php
CHANGED
@@ -233,10 +233,9 @@ function wdi_load_frontend_styles(){
|
|
233 |
|
234 |
wp_enqueue_style('wdi_frontend_thumbnails');
|
235 |
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
}
|
240 |
|
241 |
}
|
242 |
|
@@ -250,7 +249,7 @@ function wdi_load_frontend_scripts(){
|
|
250 |
wp_enqueue_script('jquery-fullscreen');
|
251 |
|
252 |
wp_enqueue_style('wdi_frontend_thumbnails');
|
253 |
-
wp_enqueue_style('font-
|
254 |
}
|
255 |
|
256 |
/*load all scripts and styles directly without dependency on jquery*/
|
@@ -288,7 +287,6 @@ function wdi_load_frontend_scripts_ajax($additional_scripts = array(), $addition
|
|
288 |
}
|
289 |
|
290 |
$styles_handles = array(
|
291 |
-
'font-awesome',
|
292 |
'wdi_frontend_thumbnails'
|
293 |
);
|
294 |
|
@@ -360,5 +358,5 @@ function wdi_feed_frontend_messages(){
|
|
360 |
$js_error_message ."<br/>". $ajax_error_message .'</div>';
|
361 |
echo '<div '.$error_style.' class="wdi_token_error wdi_hidden">'. $token_error_message .'</div>';
|
362 |
echo '<div '.$error_style.' class="wdi_private_feed_error wdi_hidden"><span>'. $private_feed_error_1 . $private_feed_error_3 .$private_feed_error_2.'</span></div>';
|
363 |
-
echo '<div class="wdi_check_fontawesome wdi_hidden"><i class="
|
364 |
}
|
233 |
|
234 |
wp_enqueue_style('wdi_frontend_thumbnails');
|
235 |
|
236 |
+
wp_register_style('font-tenweb', WDI_URL . '/css/tenweb-fonts/fonts.css', array(), WDI_VERSION);
|
237 |
+
wp_enqueue_style('font-tenweb');
|
238 |
+
|
|
|
239 |
|
240 |
}
|
241 |
|
249 |
wp_enqueue_script('jquery-fullscreen');
|
250 |
|
251 |
wp_enqueue_style('wdi_frontend_thumbnails');
|
252 |
+
wp_enqueue_style('font-tenweb');
|
253 |
}
|
254 |
|
255 |
/*load all scripts and styles directly without dependency on jquery*/
|
287 |
}
|
288 |
|
289 |
$styles_handles = array(
|
|
|
290 |
'wdi_frontend_thumbnails'
|
291 |
);
|
292 |
|
358 |
$js_error_message ."<br/>". $ajax_error_message .'</div>';
|
359 |
echo '<div '.$error_style.' class="wdi_token_error wdi_hidden">'. $token_error_message .'</div>';
|
360 |
echo '<div '.$error_style.' class="wdi_private_feed_error wdi_hidden"><span>'. $private_feed_error_1 . $private_feed_error_3 .$private_feed_error_2.'</span></div>';
|
361 |
+
echo '<div class="wdi_check_fontawesome wdi_hidden"><i class="tenweb-i tenweb-i-instagram""></i></div>';
|
362 |
}
|
frontend/views/WDIViewGalleryBox.php
CHANGED
@@ -344,56 +344,49 @@ continue;
|
|
344 |
<?php
|
345 |
}
|
346 |
?>
|
347 |
-
<i title="<?php echo __('Play', "wd-instagram-feed"); ?>" class="wdi_ctrl_btn wdi_play_pause
|
348 |
<?php if ($enable_image_fullscreen) {
|
349 |
if (!$open_with_fullscreen) {
|
350 |
?>
|
351 |
-
<i title="<?php echo __('Maximize', "wd-instagram-feed"); ?>" class="wdi_ctrl_btn wdi_resize-full
|
352 |
<?php
|
353 |
}
|
354 |
?>
|
355 |
-
<i title="<?php echo __('Fullscreen', "wd-instagram-feed"); ?>" class="wdi_ctrl_btn wdi_fullscreen
|
356 |
<?php } if ($popup_enable_info) { ?>
|
357 |
-
<i title="<?php echo __('Show Caption', "wd-instagram-feed"); ?>" class="wdi_ctrl_btn wdi_info
|
358 |
<?php } if ($enable_comment_social) { ?>
|
359 |
-
<i title="<?php echo __('Show comments', "wd-instagram-feed"); ?>" class="wdi_ctrl_btn wdi_comment
|
360 |
<?php } if ($popup_enable_rate) { ?>
|
361 |
-
<i title="<?php echo __('Show rating', "wd-instagram-feed"); ?>" class="wdi_ctrl_btn wdi_rate
|
362 |
<?php }
|
363 |
$is_embed = preg_match('/EMBED/', $current_filetype) == 1 ? TRUE : FALSE;
|
364 |
$share_image_url = urlencode( $is_embed ? $current_thumb_url : site_url() . '/' . $WD_WDI_UPLOAD_DIR . $current_image_url);
|
365 |
if ($enable_image_facebook) {
|
366 |
?>
|
367 |
<a id="wdi_facebook_a" href="https://www.facebook.com/sharer/sharer.php?u=<?php echo urlencode($share_url); ?>" target="_blank" title="<?php echo __('Share on Facebook', "wd-instagram-feed"); ?>">
|
368 |
-
<i title="<?php echo __('Share on Facebook', "wd-instagram-feed"); ?>" class="wdi_ctrl_btn wdi_facebook
|
369 |
</a>
|
370 |
<?php
|
371 |
}
|
372 |
if ($enable_image_twitter) {
|
373 |
?>
|
374 |
<a id="wdi_twitter_a" href="https://twitter.com/share?url=<?php echo urlencode($share_url); ?>" target="_blank" title="<?php echo __('Share on Twitter', "wd-instagram-feed"); ?>">
|
375 |
-
<i title="<?php echo __('Share on Twitter', "wd-instagram-feed"); ?>" class="wdi_ctrl_btn wdi_twitter
|
376 |
-
</a>
|
377 |
-
<?php
|
378 |
-
}
|
379 |
-
if ($enable_image_google) {
|
380 |
-
?>
|
381 |
-
<a id="wdi_google_a" href="https://plus.google.com/share?url=<?php echo urlencode($share_url); ?>" target="_blank" title="<?php echo __('Share on Google+', "wd-instagram-feed"); ?>">
|
382 |
-
<i title="<?php echo __('Share on Google+', "wd-instagram-feed"); ?>" class="wdi_ctrl_btn wdi_google fa fa-google-plus"></i>
|
383 |
</a>
|
384 |
<?php
|
385 |
}
|
386 |
if ($enable_image_pinterest) {
|
387 |
?>
|
388 |
<a id="wdi_pinterest_a" href="http://pinterest.com/pin/create/button/?s=100&url=<?php echo urlencode($share_url); ?>&media=<?php echo $share_image_url; ?>&description=<?php echo $current_image_description; ?>" target="_blank" title="<?php echo __('Share on Pinterest', "wd-instagram-feed"); ?>">
|
389 |
-
<i title="<?php echo __('Share on Pinterest', "wd-instagram-feed"); ?>" class="wdi_ctrl_btn wdi_pinterest
|
390 |
</a>
|
391 |
<?php
|
392 |
}
|
393 |
if ($enable_image_tumblr) {
|
394 |
?>
|
395 |
<a id="wdi_tumblr_a" href="https://www.tumblr.com/share/photo?source=<?php echo $share_image_url; ?>&caption=<?php echo urlencode($current_image_alt); ?>&clickthru=<?php echo urlencode($share_url); ?>" target="_blank" title="<?php echo __('Share on Tumblr', "wd-instagram-feed"); ?>">
|
396 |
-
<i title="<?php echo __('Share on Tumblr', "wd-instagram-feed"); ?>" class="wdi_ctrl_btn wdi_tumblr
|
397 |
</a>
|
398 |
<?php
|
399 |
}
|
@@ -401,13 +394,12 @@ continue;
|
|
401 |
if ($enable_share_buttons) {
|
402 |
?>
|
403 |
<span class="wdi_share_btns_container">
|
404 |
-
<i onclick="jQuery(this).parent().find('.wdi_share_btns').toggleClass('wdi_share_toggler');jQuery(this).parent().find('.wdi_share_caret').toggleClass('wdi_share_toggler')" title="<?php echo __('Share', "wd-instagram-feed"); ?>" class="wdi_ctrl_btn
|
405 |
<p class="wdi_share_btns" style="display:none">
|
406 |
-
<a id="wdi_popup_fb" href="https://www.facebook.com/sharer/sharer.php?u=<?php echo $current_image_url;?>" target="_blank" class='wdi_share_popup_btn wdi_facebook
|
407 |
-
<a id="wdi_popup_tw" href="https://twitter.com/home?status=<?php echo $current_image_url;?>" target="_blank" class='wdi_share_popup_btn wdi_twitter
|
408 |
-
<a id="
|
409 |
-
<a id="
|
410 |
-
<a id="wdi_popup_pt" href="https://pinterest.com/pin/create/button/?url=<?php echo $current_image_url;?>&media=<?php echo $current_image_url;?>media/?size=l&description=<?php echo $current_image_description?>" target="_blank" class='wdi_share_popup_btn wdi_pinterest fa fa-pinterest'></a>
|
411 |
</p>
|
412 |
<i class="wdi_share_caret " style="display:none;"></i>
|
413 |
</span>
|
@@ -420,7 +412,7 @@ continue;
|
|
420 |
if ($option_row->popup_enable_fullsize_image) {
|
421 |
?>
|
422 |
<a id="wdi_fullsize_image" href="<?php echo !$is_embed ? site_url() . '/' . $WD_WDI_UPLOAD_DIR . $current_image_url : $current_image_url; ?>" target="_blank">
|
423 |
-
<i title="<?php echo __('Open image in Instagram.', "wd-instagram-feed"); ?>" class="wdi_ctrl_btn
|
424 |
</a>
|
425 |
<?php
|
426 |
}
|
@@ -448,14 +440,14 @@ continue;
|
|
448 |
}
|
449 |
?>
|
450 |
<a id="wdi_download" href="<?php echo $download_href; ?>" target="_blank" download="<?php echo end($current_image_arr); ?>" style="display: <?php echo $style; ?>;">
|
451 |
-
<i title="<?php echo __('Download original image', "wd-instagram-feed"); ?>" class="wdi_ctrl_btn
|
452 |
</a>
|
453 |
<?php
|
454 |
}
|
455 |
?>
|
456 |
</div>
|
457 |
<div class="wdi_toggle_container">
|
458 |
-
<i class="wdi_toggle_btn
|
459 |
</div>
|
460 |
<?php } ?>
|
461 |
</div>
|
@@ -548,8 +540,8 @@ continue;
|
|
548 |
</div>
|
549 |
</div>
|
550 |
</div>
|
551 |
-
<a id="wdi_spider_popup_left" <?php echo ($option_row->enable_loop == 0 && $current_key == 0) ? 'style="display: none;"' : ''; ?>><span id="wdi_spider_popup_left-ico"><span><i class="wdi_prev_btn
|
552 |
-
<a id="wdi_spider_popup_right" <?php echo ($option_row->enable_loop == 0 && $current_key == $image_rows_count - 1) ? 'style="display: none;"' : ''; ?>><span id="wdi_spider_popup_right-ico"><span><i class="wdi_next_btn
|
553 |
</div>
|
554 |
</div>
|
555 |
<?php if ($enable_comment_social) { ?>
|
@@ -592,7 +584,7 @@ continue;
|
|
592 |
?>
|
593 |
<div id="wdi_comments">
|
594 |
<div title="<?php echo __('Hide Comments', "wd-instagram-feed"); ?>" class="wdi_comments_close">
|
595 |
-
<i class="wdi_comments_close_btn
|
596 |
</div>
|
597 |
|
598 |
<form id="wdi_comment_form" style="display:none !important;" method="post" action="<?php echo $popup_url; ?>"><!--Deprecated-->
|
@@ -653,7 +645,7 @@ continue;
|
|
653 |
</div>
|
654 |
</div>
|
655 |
<?php } ?>
|
656 |
-
<a class="wdi_spider_popup_close" onclick="wdi_spider_destroypopup(1000); return false;" ontouchend="wdi_spider_destroypopup(1000); return false;"><span><i class="wdi_close_btn
|
657 |
<script>
|
658 |
var wdi_trans_in_progress = false;
|
659 |
var wdi_transition_duration = <?php echo (($slideshow_interval < 4) && ($slideshow_interval != 0)) ? ($slideshow_interval * 1000) / 4 : 800; ?>;
|
@@ -761,7 +753,7 @@ continue;
|
|
761 |
|
762 |
if (typeof wdi_data[key] != 'undefined') {
|
763 |
if (typeof wdi_data[current_key] != 'undefined') {
|
764 |
-
if (jQuery('.wdi_ctrl_btn').hasClass('
|
765 |
|
766 |
wdi_play();
|
767 |
}
|
@@ -1052,9 +1044,9 @@ continue;
|
|
1052 |
if (jQuery.isFunction(jQuery().fullscreen)) {
|
1053 |
if (!jQuery.fullscreen.isFullScreen()) {
|
1054 |
jQuery(".wdi_resize-full").show();
|
1055 |
-
jQuery(".wdi_resize-full").attr("class", "wdi_ctrl_btn wdi_resize-full
|
1056 |
jQuery(".wdi_resize-full").attr("title", "<?php echo __('Maximize', "wd-instagram-feed"); ?>");
|
1057 |
-
jQuery(".wdi_fullscreen").attr("class", "wdi_ctrl_btn wdi_fullscreen
|
1058 |
jQuery(".wdi_fullscreen").attr("title", "<?php echo __('Fullscreen', "wd-instagram-feed"); ?>");
|
1059 |
}
|
1060 |
}
|
@@ -1239,7 +1231,7 @@ continue;
|
|
1239 |
width: comment_container_width
|
1240 |
});
|
1241 |
jQuery(".wdi_spider_popup_close_fullscreen").hide();
|
1242 |
-
if (jQuery(".wdi_ctrl_btn").hasClass("
|
1243 |
var isMobile = (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));
|
1244 |
jQuery(".wdi_play_pause").trigger(isMobile ? 'touchend' : 'click');
|
1245 |
}
|
@@ -1494,8 +1486,8 @@ continue;
|
|
1494 |
/* Open/close control buttons.*/
|
1495 |
jQuery(".wdi_toggle_container").on(wdi_click, function () {
|
1496 |
|
1497 |
-
var wdi_open_toggle_btn_class = "<?php echo ($theme_row->lightbox_ctrl_btn_pos == 'top') ? '
|
1498 |
-
var wdi_close_toggle_btn_class = "<?php echo ($theme_row->lightbox_ctrl_btn_pos == 'top') ? '
|
1499 |
if (jQuery(".wdi_toggle_container i").hasClass(wdi_open_toggle_btn_class)) {
|
1500 |
/* Close controll buttons.*/
|
1501 |
<?php
|
@@ -1517,7 +1509,7 @@ continue;
|
|
1517 |
<?php echo $theme_row->lightbox_ctrl_btn_pos; ?>: 0
|
1518 |
}, {
|
1519 |
duration: 500,
|
1520 |
-
complete: function () { jQuery(".wdi_toggle_container i").attr("class", "wdi_toggle_btn
|
1521 |
});
|
1522 |
}
|
1523 |
else {
|
@@ -1541,7 +1533,7 @@ continue;
|
|
1541 |
<?php echo $theme_row->lightbox_ctrl_btn_pos; ?>: jQuery(".wdi_ctrl_btn_container").height()
|
1542 |
}, {
|
1543 |
duration: 500,
|
1544 |
-
complete: function () { jQuery(".wdi_toggle_container i").attr("class", "wdi_toggle_btn
|
1545 |
});
|
1546 |
}
|
1547 |
|
@@ -1556,7 +1548,7 @@ continue;
|
|
1556 |
if (jQuery(".wdi_comment_container").hasClass("wdi_open")) {
|
1557 |
comment_container_width = jQuery(".wdi_comment_container").width();
|
1558 |
}
|
1559 |
-
if (jQuery(".wdi_resize-full").hasClass("
|
1560 |
if (jQuery(window).width() > <?php echo $image_width; ?>) {
|
1561 |
wdi_popup_current_width = <?php echo $image_width; ?>;
|
1562 |
}
|
@@ -1608,7 +1600,7 @@ continue;
|
|
1608 |
jQuery(".wdi_filmstrip").animate({<?php echo $width_or_height; ?>: wdi_popup_current_<?php echo $width_or_height; ?> - <?php echo ($filmstrip_direction == 'horizontal' ? 'comment_container_width' : 0); ?> - 40}, 500);
|
1609 |
/* Set filmstrip initial position.*/
|
1610 |
wdi_set_filmstrip_pos(wdi_popup_current_<?php echo $width_or_height; ?> - 40);
|
1611 |
-
jQuery(".wdi_resize-full").attr("class", "wdi_ctrl_btn wdi_resize-full
|
1612 |
jQuery(".wdi_resize-full").attr("title", "<?php echo __('Maximize', "wd-instagram-feed"); ?>");
|
1613 |
}
|
1614 |
else {
|
@@ -1645,7 +1637,7 @@ continue;
|
|
1645 |
jQuery(".wdi_filmstrip").animate({<?php echo $width_or_height; ?>: jQuery(window).<?php echo $width_or_height; ?>() - <?php echo ($filmstrip_direction == 'horizontal' ? 'comment_container_width' : 0); ?> - 40}, 500);
|
1646 |
/* Set filmstrip initial position.*/
|
1647 |
wdi_set_filmstrip_pos(jQuery(window).<?php echo $width_or_height; ?>() - <?php echo ($filmstrip_direction == 'horizontal' ? 'comment_container_width' : 0); ?> - 40);
|
1648 |
-
jQuery(".wdi_resize-full").attr("class", "wdi_ctrl_btn wdi_resize-full
|
1649 |
jQuery(".wdi_resize-full").attr("title", "<?php echo __('Restore', "wd-instagram-feed"); ?>");
|
1650 |
jQuery(".wdi_spider_popup_close").attr("class", "wdi_ctrl_btn wdi_spider_popup_close_fullscreen");
|
1651 |
}
|
@@ -1704,9 +1696,9 @@ continue;
|
|
1704 |
/* Set filmstrip initial position.*/
|
1705 |
wdi_set_filmstrip_pos(wdi_popup_current_<?php echo $width_or_height; ?> - 40);
|
1706 |
jQuery(".wdi_resize-full").show();
|
1707 |
-
jQuery(".wdi_resize-full").attr("class", "wdi_ctrl_btn wdi_resize-full
|
1708 |
jQuery(".wdi_resize-full").attr("title", "<?php echo __('Maximize', "wd-instagram-feed"); ?>");
|
1709 |
-
jQuery(".wdi_fullscreen").attr("class", "wdi_ctrl_btn wdi_fullscreen
|
1710 |
jQuery(".wdi_fullscreen").attr("title", "<?php echo __('Fullscreen', "wd-instagram-feed"); ?>");
|
1711 |
if (jQuery("#wdi_spider_popup_wrap").width() < jQuery(window).width()) {
|
1712 |
if (jQuery("#wdi_spider_popup_wrap").height() < jQuery(window).height()) {
|
@@ -1759,7 +1751,7 @@ continue;
|
|
1759 |
/* Set filmstrip initial position.*/
|
1760 |
wdi_set_filmstrip_pos(screen_<?php echo $width_or_height; ?> - <?php echo ($filmstrip_direction == 'horizontal' ? 'comment_container_width' : 0); ?> - 40);
|
1761 |
jQuery(".wdi_resize-full").hide();
|
1762 |
-
jQuery(".wdi_fullscreen").attr("class", "wdi_ctrl_btn wdi_fullscreen
|
1763 |
jQuery(".wdi_fullscreen").attr("title", "<?php echo __('Exit Fullscreen', "wd-instagram-feed"); ?>");
|
1764 |
jQuery(".wdi_spider_popup_close").attr("class", "wdi_ctrl_btn wdi_spider_popup_close_fullscreen");
|
1765 |
/*});
|
@@ -1771,18 +1763,18 @@ continue;
|
|
1771 |
});
|
1772 |
/* Play/pause.*/
|
1773 |
jQuery(".wdi_play_pause, .wdi_popup_image").on(wdi_click, function () {
|
1774 |
-
if (jQuery(".wdi_ctrl_btn").hasClass("
|
1775 |
|
1776 |
/* PLay.*/
|
1777 |
wdi_play();
|
1778 |
jQuery(".wdi_play_pause").attr("title", "<?php echo __('Pause', "wd-instagram-feed"); ?>");
|
1779 |
-
jQuery(".wdi_play_pause").attr("class", "wdi_ctrl_btn wdi_play_pause
|
1780 |
}
|
1781 |
else {
|
1782 |
/* Pause.*/
|
1783 |
window.clearInterval(wdi_playInterval);
|
1784 |
jQuery(".wdi_play_pause").attr("title", "<?php echo __('Play', "wd-instagram-feed"); ?>");
|
1785 |
-
jQuery(".wdi_play_pause").attr("class", "wdi_ctrl_btn wdi_play_pause
|
1786 |
}
|
1787 |
});
|
1788 |
/* Open with autoplay.*/
|
@@ -1793,7 +1785,7 @@ continue;
|
|
1793 |
|
1794 |
wdi_play();
|
1795 |
jQuery(".wdi_play_pause").attr("title", "<?php echo __('Pause', "wd-instagram-feed"); ?>");
|
1796 |
-
jQuery(".wdi_play_pause").attr("class", "wdi_ctrl_btn wdi_play_pause
|
1797 |
<?php
|
1798 |
}
|
1799 |
?>
|
@@ -1863,7 +1855,7 @@ continue;
|
|
1863 |
/* Set filmstrip initial position.*/
|
1864 |
wdi_set_filmstrip_pos(jQuery(window).<?php echo $width_or_height; ?>() - <?php echo ($filmstrip_direction == 'horizontal' ? 'comment_container_width' : 0); ?> - 40);
|
1865 |
|
1866 |
-
jQuery(".wdi_resize-full").attr("class", "wdi_ctrl_btn wdi_resize-full
|
1867 |
jQuery(".wdi_resize-full").attr("title", "<?php echo __('Restore', "wd-instagram-feed"); ?>");
|
1868 |
jQuery(".wdi_spider_popup_close").attr("class", "wdi_ctrl_btn wdi_spider_popup_close_fullscreen");
|
1869 |
}
|
@@ -1921,7 +1913,7 @@ continue;
|
|
1921 |
jQuery(window).focus(function() {
|
1922 |
|
1923 |
/* event_stack = [];*/
|
1924 |
-
if (!jQuery(".wdi_ctrl_btn").hasClass("
|
1925 |
wdi_play();
|
1926 |
}
|
1927 |
/*var i = 0;
|
344 |
<?php
|
345 |
}
|
346 |
?>
|
347 |
+
<i title="<?php echo __('Play', "wd-instagram-feed"); ?>" class="wdi_ctrl_btn wdi_play_pause tenweb-i tenweb-i-play"></i>
|
348 |
<?php if ($enable_image_fullscreen) {
|
349 |
if (!$open_with_fullscreen) {
|
350 |
?>
|
351 |
+
<i title="<?php echo __('Maximize', "wd-instagram-feed"); ?>" class="wdi_ctrl_btn wdi_resize-full tenweb-i tenweb-i-expand "></i>
|
352 |
<?php
|
353 |
}
|
354 |
?>
|
355 |
+
<i title="<?php echo __('Fullscreen', "wd-instagram-feed"); ?>" class="wdi_ctrl_btn wdi_fullscreen tenweb-i tenweb-i-arrows-out"></i>
|
356 |
<?php } if ($popup_enable_info) { ?>
|
357 |
+
<i title="<?php echo __('Show Caption', "wd-instagram-feed"); ?>" class="wdi_ctrl_btn wdi_info tenweb-i tenweb-i-info"></i>
|
358 |
<?php } if ($enable_comment_social) { ?>
|
359 |
+
<i title="<?php echo __('Show comments', "wd-instagram-feed"); ?>" class="wdi_ctrl_btn wdi_comment tenweb-i tenweb-i-comment"></i>
|
360 |
<?php } if ($popup_enable_rate) { ?>
|
361 |
+
<i title="<?php echo __('Show rating', "wd-instagram-feed"); ?>" class="wdi_ctrl_btn wdi_rate tenweb-i tenweb-i-star"></i>
|
362 |
<?php }
|
363 |
$is_embed = preg_match('/EMBED/', $current_filetype) == 1 ? TRUE : FALSE;
|
364 |
$share_image_url = urlencode( $is_embed ? $current_thumb_url : site_url() . '/' . $WD_WDI_UPLOAD_DIR . $current_image_url);
|
365 |
if ($enable_image_facebook) {
|
366 |
?>
|
367 |
<a id="wdi_facebook_a" href="https://www.facebook.com/sharer/sharer.php?u=<?php echo urlencode($share_url); ?>" target="_blank" title="<?php echo __('Share on Facebook', "wd-instagram-feed"); ?>">
|
368 |
+
<i title="<?php echo __('Share on Facebook', "wd-instagram-feed"); ?>" class="wdi_ctrl_btn wdi_facebook tenweb-i tenweb-i-facebook-square"></i>
|
369 |
</a>
|
370 |
<?php
|
371 |
}
|
372 |
if ($enable_image_twitter) {
|
373 |
?>
|
374 |
<a id="wdi_twitter_a" href="https://twitter.com/share?url=<?php echo urlencode($share_url); ?>" target="_blank" title="<?php echo __('Share on Twitter', "wd-instagram-feed"); ?>">
|
375 |
+
<i title="<?php echo __('Share on Twitter', "wd-instagram-feed"); ?>" class="wdi_ctrl_btn wdi_twitter tenweb-i tenweb-i-twitter-square"></i>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
376 |
</a>
|
377 |
<?php
|
378 |
}
|
379 |
if ($enable_image_pinterest) {
|
380 |
?>
|
381 |
<a id="wdi_pinterest_a" href="http://pinterest.com/pin/create/button/?s=100&url=<?php echo urlencode($share_url); ?>&media=<?php echo $share_image_url; ?>&description=<?php echo $current_image_description; ?>" target="_blank" title="<?php echo __('Share on Pinterest', "wd-instagram-feed"); ?>">
|
382 |
+
<i title="<?php echo __('Share on Pinterest', "wd-instagram-feed"); ?>" class="wdi_ctrl_btn wdi_pinterest tenweb-i tenweb-i-pinterest-square"></i>
|
383 |
</a>
|
384 |
<?php
|
385 |
}
|
386 |
if ($enable_image_tumblr) {
|
387 |
?>
|
388 |
<a id="wdi_tumblr_a" href="https://www.tumblr.com/share/photo?source=<?php echo $share_image_url; ?>&caption=<?php echo urlencode($current_image_alt); ?>&clickthru=<?php echo urlencode($share_url); ?>" target="_blank" title="<?php echo __('Share on Tumblr', "wd-instagram-feed"); ?>">
|
389 |
+
<i title="<?php echo __('Share on Tumblr', "wd-instagram-feed"); ?>" class="wdi_ctrl_btn wdi_tumblr tenweb-i tenweb-i-tumblr-square"></i>
|
390 |
</a>
|
391 |
<?php
|
392 |
}
|
394 |
if ($enable_share_buttons) {
|
395 |
?>
|
396 |
<span class="wdi_share_btns_container">
|
397 |
+
<i onclick="jQuery(this).parent().find('.wdi_share_btns').toggleClass('wdi_share_toggler');jQuery(this).parent().find('.wdi_share_caret').toggleClass('wdi_share_toggler')" title="<?php echo __('Share', "wd-instagram-feed"); ?>" class="wdi_ctrl_btn tenweb-i tenweb-i-share"></i>
|
398 |
<p class="wdi_share_btns" style="display:none">
|
399 |
+
<a id="wdi_popup_fb" href="https://www.facebook.com/sharer/sharer.php?u=<?php echo $current_image_url;?>" target="_blank" class='wdi_share_popup_btn wdi_facebook tenweb-i tenweb-i-facebook-square'></a>
|
400 |
+
<a id="wdi_popup_tw" href="https://twitter.com/home?status=<?php echo $current_image_url;?>" target="_blank" class='wdi_share_popup_btn wdi_twitter tenweb-i tenweb-i-twitter-square'></a>
|
401 |
+
<a id="wdi_popup_li" href="https://www.linkedin.com/shareArticle?mini=true&url=<?php echo $current_image_url;?>&title=<?php echo $current_image_description?>" target="_blank" class='wdi_share_popup_btn wdi_linkedin tenweb-i tenweb-i-linkedin-square'></a>
|
402 |
+
<a id="wdi_popup_pt" href="https://pinterest.com/pin/create/button/?url=<?php echo $current_image_url;?>&media=<?php echo $current_image_url;?>media/?size=l&description=<?php echo $current_image_description?>" target="_blank" class='wdi_share_popup_btn wdi_pinterest tenweb-i tenweb-i-pinterest-square'></a>
|
|
|
403 |
</p>
|
404 |
<i class="wdi_share_caret " style="display:none;"></i>
|
405 |
</span>
|
412 |
if ($option_row->popup_enable_fullsize_image) {
|
413 |
?>
|
414 |
<a id="wdi_fullsize_image" href="<?php echo !$is_embed ? site_url() . '/' . $WD_WDI_UPLOAD_DIR . $current_image_url : $current_image_url; ?>" target="_blank">
|
415 |
+
<i title="<?php echo __('Open image in Instagram.', "wd-instagram-feed"); ?>" class="wdi_ctrl_btn tenweb-i tenweb-i-instagram"></i>
|
416 |
</a>
|
417 |
<?php
|
418 |
}
|
440 |
}
|
441 |
?>
|
442 |
<a id="wdi_download" href="<?php echo $download_href; ?>" target="_blank" download="<?php echo end($current_image_arr); ?>" style="display: <?php echo $style; ?>;">
|
443 |
+
<i title="<?php echo __('Download original image', "wd-instagram-feed"); ?>" class="wdi_ctrl_btn tenweb-i tenweb-i-download"></i>
|
444 |
</a>
|
445 |
<?php
|
446 |
}
|
447 |
?>
|
448 |
</div>
|
449 |
<div class="wdi_toggle_container">
|
450 |
+
<i class="wdi_toggle_btn tenweb-i <?php echo (($theme_row->lightbox_ctrl_btn_pos == 'top') ? 'tenweb-i-angle-up' : 'tenweb-i-angle-down'); ?>"></i>
|
451 |
</div>
|
452 |
<?php } ?>
|
453 |
</div>
|
540 |
</div>
|
541 |
</div>
|
542 |
</div>
|
543 |
+
<a id="wdi_spider_popup_left" <?php echo ($option_row->enable_loop == 0 && $current_key == 0) ? 'style="display: none;"' : ''; ?>><span id="wdi_spider_popup_left-ico"><span><i class="wdi_prev_btn tenweb-i <?php echo $theme_row->lightbox_rl_btn_style; ?>-left-sm"></i></span></span></a>
|
544 |
+
<a id="wdi_spider_popup_right" <?php echo ($option_row->enable_loop == 0 && $current_key == $image_rows_count - 1) ? 'style="display: none;"' : ''; ?>><span id="wdi_spider_popup_right-ico"><span><i class="wdi_next_btn tenweb-i <?php echo $theme_row->lightbox_rl_btn_style; ?>-right-sm"></i></span></span></a>
|
545 |
</div>
|
546 |
</div>
|
547 |
<?php if ($enable_comment_social) { ?>
|
584 |
?>
|
585 |
<div id="wdi_comments">
|
586 |
<div title="<?php echo __('Hide Comments', "wd-instagram-feed"); ?>" class="wdi_comments_close">
|
587 |
+
<i class="wdi_comments_close_btn tenweb-i tenweb-i-arrow-<?php echo $theme_row->lightbox_comment_pos; ?>"></i>
|
588 |
</div>
|
589 |
|
590 |
<form id="wdi_comment_form" style="display:none !important;" method="post" action="<?php echo $popup_url; ?>"><!--Deprecated-->
|
645 |
</div>
|
646 |
</div>
|
647 |
<?php } ?>
|
648 |
+
<a class="wdi_spider_popup_close" onclick="wdi_spider_destroypopup(1000); return false;" ontouchend="wdi_spider_destroypopup(1000); return false;"><span><i class="wdi_close_btn tenweb-i tenweb-i-times"></i></span></a>
|
649 |
<script>
|
650 |
var wdi_trans_in_progress = false;
|
651 |
var wdi_transition_duration = <?php echo (($slideshow_interval < 4) && ($slideshow_interval != 0)) ? ($slideshow_interval * 1000) / 4 : 800; ?>;
|
753 |
|
754 |
if (typeof wdi_data[key] != 'undefined') {
|
755 |
if (typeof wdi_data[current_key] != 'undefined') {
|
756 |
+
if (jQuery('.wdi_ctrl_btn').hasClass('tenweb-i-pause')) {
|
757 |
|
758 |
wdi_play();
|
759 |
}
|
1044 |
if (jQuery.isFunction(jQuery().fullscreen)) {
|
1045 |
if (!jQuery.fullscreen.isFullScreen()) {
|
1046 |
jQuery(".wdi_resize-full").show();
|
1047 |
+
jQuery(".wdi_resize-full").attr("class", "wdi_ctrl_btn wdi_resize-full tenweb-i tenweb-i-expand");
|
1048 |
jQuery(".wdi_resize-full").attr("title", "<?php echo __('Maximize', "wd-instagram-feed"); ?>");
|
1049 |
+
jQuery(".wdi_fullscreen").attr("class", "wdi_ctrl_btn wdi_fullscreen tenweb-i tenweb-i-arrows-out");
|
1050 |
jQuery(".wdi_fullscreen").attr("title", "<?php echo __('Fullscreen', "wd-instagram-feed"); ?>");
|
1051 |
}
|
1052 |
}
|
1231 |
width: comment_container_width
|
1232 |
});
|
1233 |
jQuery(".wdi_spider_popup_close_fullscreen").hide();
|
1234 |
+
if (jQuery(".wdi_ctrl_btn").hasClass("tenweb-i-pause")) {
|
1235 |
var isMobile = (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));
|
1236 |
jQuery(".wdi_play_pause").trigger(isMobile ? 'touchend' : 'click');
|
1237 |
}
|
1486 |
/* Open/close control buttons.*/
|
1487 |
jQuery(".wdi_toggle_container").on(wdi_click, function () {
|
1488 |
|
1489 |
+
var wdi_open_toggle_btn_class = "<?php echo ($theme_row->lightbox_ctrl_btn_pos == 'top') ? 'tenweb-i-angle-up' : 'tenweb-i-angle-down'; ?>";
|
1490 |
+
var wdi_close_toggle_btn_class = "<?php echo ($theme_row->lightbox_ctrl_btn_pos == 'top') ? 'tenweb-i-angle-down' : 'tenweb-i-angle-up'; ?>";
|
1491 |
if (jQuery(".wdi_toggle_container i").hasClass(wdi_open_toggle_btn_class)) {
|
1492 |
/* Close controll buttons.*/
|
1493 |
<?php
|
1509 |
<?php echo $theme_row->lightbox_ctrl_btn_pos; ?>: 0
|
1510 |
}, {
|
1511 |
duration: 500,
|
1512 |
+
complete: function () { jQuery(".wdi_toggle_container i").attr("class", "wdi_toggle_btn tenweb-i " + wdi_close_toggle_btn_class) }
|
1513 |
});
|
1514 |
}
|
1515 |
else {
|
1533 |
<?php echo $theme_row->lightbox_ctrl_btn_pos; ?>: jQuery(".wdi_ctrl_btn_container").height()
|
1534 |
}, {
|
1535 |
duration: 500,
|
1536 |
+
complete: function () { jQuery(".wdi_toggle_container i").attr("class", "wdi_toggle_btn tenweb-i " + wdi_open_toggle_btn_class) }
|
1537 |
});
|
1538 |
}
|
1539 |
|
1548 |
if (jQuery(".wdi_comment_container").hasClass("wdi_open")) {
|
1549 |
comment_container_width = jQuery(".wdi_comment_container").width();
|
1550 |
}
|
1551 |
+
if (jQuery(".wdi_resize-full").hasClass("tenweb-i-compress")) {
|
1552 |
if (jQuery(window).width() > <?php echo $image_width; ?>) {
|
1553 |
wdi_popup_current_width = <?php echo $image_width; ?>;
|
1554 |
}
|
1600 |
jQuery(".wdi_filmstrip").animate({<?php echo $width_or_height; ?>: wdi_popup_current_<?php echo $width_or_height; ?> - <?php echo ($filmstrip_direction == 'horizontal' ? 'comment_container_width' : 0); ?> - 40}, 500);
|
1601 |
/* Set filmstrip initial position.*/
|
1602 |
wdi_set_filmstrip_pos(wdi_popup_current_<?php echo $width_or_height; ?> - 40);
|
1603 |
+
jQuery(".wdi_resize-full").attr("class", "wdi_ctrl_btn wdi_resize-full tenweb-i tenweb-i-expand");
|
1604 |
jQuery(".wdi_resize-full").attr("title", "<?php echo __('Maximize', "wd-instagram-feed"); ?>");
|
1605 |
}
|
1606 |
else {
|
1637 |
jQuery(".wdi_filmstrip").animate({<?php echo $width_or_height; ?>: jQuery(window).<?php echo $width_or_height; ?>() - <?php echo ($filmstrip_direction == 'horizontal' ? 'comment_container_width' : 0); ?> - 40}, 500);
|
1638 |
/* Set filmstrip initial position.*/
|
1639 |
wdi_set_filmstrip_pos(jQuery(window).<?php echo $width_or_height; ?>() - <?php echo ($filmstrip_direction == 'horizontal' ? 'comment_container_width' : 0); ?> - 40);
|
1640 |
+
jQuery(".wdi_resize-full").attr("class", "wdi_ctrl_btn wdi_resize-full tenweb-i tenweb-i-compress");
|
1641 |
jQuery(".wdi_resize-full").attr("title", "<?php echo __('Restore', "wd-instagram-feed"); ?>");
|
1642 |
jQuery(".wdi_spider_popup_close").attr("class", "wdi_ctrl_btn wdi_spider_popup_close_fullscreen");
|
1643 |
}
|
1696 |
/* Set filmstrip initial position.*/
|
1697 |
wdi_set_filmstrip_pos(wdi_popup_current_<?php echo $width_or_height; ?> - 40);
|
1698 |
jQuery(".wdi_resize-full").show();
|
1699 |
+
jQuery(".wdi_resize-full").attr("class", "wdi_ctrl_btn wdi_resize-full tenweb-i tenweb-i-expand");
|
1700 |
jQuery(".wdi_resize-full").attr("title", "<?php echo __('Maximize', "wd-instagram-feed"); ?>");
|
1701 |
+
jQuery(".wdi_fullscreen").attr("class", "wdi_ctrl_btn wdi_fullscreen tenweb-i tenweb-i-arrows-out");
|
1702 |
jQuery(".wdi_fullscreen").attr("title", "<?php echo __('Fullscreen', "wd-instagram-feed"); ?>");
|
1703 |
if (jQuery("#wdi_spider_popup_wrap").width() < jQuery(window).width()) {
|
1704 |
if (jQuery("#wdi_spider_popup_wrap").height() < jQuery(window).height()) {
|
1751 |
/* Set filmstrip initial position.*/
|
1752 |
wdi_set_filmstrip_pos(screen_<?php echo $width_or_height; ?> - <?php echo ($filmstrip_direction == 'horizontal' ? 'comment_container_width' : 0); ?> - 40);
|
1753 |
jQuery(".wdi_resize-full").hide();
|
1754 |
+
jQuery(".wdi_fullscreen").attr("class", "wdi_ctrl_btn wdi_fullscreen tenweb-i tenweb-i-compress");
|
1755 |
jQuery(".wdi_fullscreen").attr("title", "<?php echo __('Exit Fullscreen', "wd-instagram-feed"); ?>");
|
1756 |
jQuery(".wdi_spider_popup_close").attr("class", "wdi_ctrl_btn wdi_spider_popup_close_fullscreen");
|
1757 |
/*});
|
1763 |
});
|
1764 |
/* Play/pause.*/
|
1765 |
jQuery(".wdi_play_pause, .wdi_popup_image").on(wdi_click, function () {
|
1766 |
+
if (jQuery(".wdi_ctrl_btn").hasClass("tenweb-i-play")) {
|
1767 |
|
1768 |
/* PLay.*/
|
1769 |
wdi_play();
|
1770 |
jQuery(".wdi_play_pause").attr("title", "<?php echo __('Pause', "wd-instagram-feed"); ?>");
|
1771 |
+
jQuery(".wdi_play_pause").attr("class", "wdi_ctrl_btn wdi_play_pause tenweb-i tenweb-i-pause");
|
1772 |
}
|
1773 |
else {
|
1774 |
/* Pause.*/
|
1775 |
window.clearInterval(wdi_playInterval);
|
1776 |
jQuery(".wdi_play_pause").attr("title", "<?php echo __('Play', "wd-instagram-feed"); ?>");
|
1777 |
+
jQuery(".wdi_play_pause").attr("class", "wdi_ctrl_btn wdi_play_pause tenweb-i tenweb-i-play");
|
1778 |
}
|
1779 |
});
|
1780 |
/* Open with autoplay.*/
|
1785 |
|
1786 |
wdi_play();
|
1787 |
jQuery(".wdi_play_pause").attr("title", "<?php echo __('Pause', "wd-instagram-feed"); ?>");
|
1788 |
+
jQuery(".wdi_play_pause").attr("class", "wdi_ctrl_btn wdi_play_pause tenweb-i tenweb-i-pause");
|
1789 |
<?php
|
1790 |
}
|
1791 |
?>
|
1855 |
/* Set filmstrip initial position.*/
|
1856 |
wdi_set_filmstrip_pos(jQuery(window).<?php echo $width_or_height; ?>() - <?php echo ($filmstrip_direction == 'horizontal' ? 'comment_container_width' : 0); ?> - 40);
|
1857 |
|
1858 |
+
jQuery(".wdi_resize-full").attr("class", "wdi_ctrl_btn wdi_resize-full tenweb-i tenweb-i-compress");
|
1859 |
jQuery(".wdi_resize-full").attr("title", "<?php echo __('Restore', "wd-instagram-feed"); ?>");
|
1860 |
jQuery(".wdi_spider_popup_close").attr("class", "wdi_ctrl_btn wdi_spider_popup_close_fullscreen");
|
1861 |
}
|
1913 |
jQuery(window).focus(function() {
|
1914 |
|
1915 |
/* event_stack = [];*/
|
1916 |
+
if (!jQuery(".wdi_ctrl_btn").hasClass("tenweb-i-play")) {
|
1917 |
wdi_play();
|
1918 |
}
|
1919 |
/*var i = 0;
|
frontend/views/WDIViewImageBrowser_view.php
CHANGED
@@ -42,7 +42,7 @@ class WDIViewImageBrowser_view{
|
|
42 |
</div>
|
43 |
<?php
|
44 |
if($feed_row['feed_display_view']==='pagination' && $style['pagination_position_vert']==='top'){
|
45 |
-
?><div id="wdi_pagination" class="wdi_pagination"><div class="wdi_pagination_container"><i id="wdi_first_page" title="<?php echo __('First Page',"wd-instagram-feed")?>" class="
|
46 |
}
|
47 |
?>
|
48 |
<div class="wdi_feed_wrapper <?php echo 'wdi_col_'.$feed_row['number_of_columns']?>" wdi-res='<?php echo 'wdi_col_'.$feed_row['number_of_columns']?>'></div>
|
@@ -54,7 +54,7 @@ class WDIViewImageBrowser_view{
|
|
54 |
}
|
55 |
case 'pagination':{
|
56 |
if($style['pagination_position_vert']==='bottom'){
|
57 |
-
?><div id="wdi_pagination" class="wdi_pagination"><div class="wdi_pagination_container"><i id="wdi_first_page" title="<?php echo __('First Page',"wd-instagram-feed")?>" class="
|
58 |
}
|
59 |
|
60 |
break;
|
42 |
</div>
|
43 |
<?php
|
44 |
if($feed_row['feed_display_view']==='pagination' && $style['pagination_position_vert']==='top'){
|
45 |
+
?><div id="wdi_pagination" class="wdi_pagination"><div class="wdi_pagination_container"><i id="wdi_first_page" title="<?php echo __('First Page',"wd-instagram-feed")?>" class="tenweb-i tenweb-i-step-backward wdi_pagination_ctrl wdi_disabled"></i><i id="wdi_prev" title="<?php echo __('Previous Page',"wd-instagram-feed")?>" class="tenweb-i tenweb-i-arrow-left wdi_pagination_ctrl"></i><i id="wdi_current_page" class="wdi_pagination_ctrl" style="font-style:normal">1</i><i id="wdi_next" title="<?php echo __('Next Page',"wd-instagram-feed")?>" class="tenweb-i tenweb-i-arrow-right wdi_pagination_ctrl"></i> <i id="wdi_last_page" title="<?php echo __('Last Page',"wd-instagram-feed")?>" class="tenweb-i tenweb-i-step-forward wdi_pagination_ctrl wdi_disabled"></i></div></div> <?php
|
46 |
}
|
47 |
?>
|
48 |
<div class="wdi_feed_wrapper <?php echo 'wdi_col_'.$feed_row['number_of_columns']?>" wdi-res='<?php echo 'wdi_col_'.$feed_row['number_of_columns']?>'></div>
|
54 |
}
|
55 |
case 'pagination':{
|
56 |
if($style['pagination_position_vert']==='bottom'){
|
57 |
+
?><div id="wdi_pagination" class="wdi_pagination"><div class="wdi_pagination_container"><i id="wdi_first_page" title="<?php echo __('First Page',"wd-instagram-feed")?>" class="tenweb-i tenweb-i-step-backward wdi_pagination_ctrl wdi_disabled"></i><i id="wdi_prev" title="<?php echo __('Previous Page',"wd-instagram-feed")?>" class="tenweb-i tenweb-i-arrow-left wdi_pagination_ctrl"></i><i id="wdi_current_page" class="wdi_pagination_ctrl" style="font-style:normal">1</i><i id="wdi_next" title="<?php echo __('Next Page',"wd-instagram-feed")?>" class="tenweb-i tenweb-i-arrow-right wdi_pagination_ctrl"></i> <i id="wdi_last_page" title="<?php echo __('Last Page',"wd-instagram-feed")?>" class="tenweb-i tenweb-i-step-forward wdi_pagination_ctrl wdi_disabled"></i></div></div> <?php
|
58 |
}
|
59 |
|
60 |
break;
|
frontend/views/WDIViewThumbnails_view.php
CHANGED
@@ -37,14 +37,14 @@ class WDIViewThumbnails_view
|
|
37 |
<div id="wdi_pagination" class="wdi_pagination">
|
38 |
<div class="wdi_pagination_container"><i id="wdi_first_page"
|
39 |
title="<?php echo __('First Page', "wd-instagram-feed") ?>"
|
40 |
-
class="
|
41 |
id="wdi_prev" title="<?php echo __('Previous Page', "wd-instagram-feed") ?>"
|
42 |
-
class="
|
43 |
style="font-style:normal">1</i><i id="wdi_next"
|
44 |
title="<?php echo __('Next Page', "wd-instagram-feed") ?>"
|
45 |
-
class="
|
46 |
<i id="wdi_last_page" title="<?php echo __('Last Page', "wd-instagram-feed") ?>"
|
47 |
-
class="
|
48 |
</div>
|
49 |
</div>
|
50 |
<?php
|
@@ -67,7 +67,7 @@ class WDIViewThumbnails_view
|
|
67 |
<div class="wdi_spinner ">
|
68 |
<div class="wdi_spinner_container">
|
69 |
<div class="wdi_spinner_wrap">
|
70 |
-
<div class="wdi_spinner_wrap_inner"><i class="wdi_load_more_spinner
|
71 |
</div>
|
72 |
</div>
|
73 |
</div>
|
@@ -80,14 +80,14 @@ class WDIViewThumbnails_view
|
|
80 |
<div id="wdi_pagination" class="wdi_pagination">
|
81 |
<div class="wdi_pagination_container"><i id="wdi_first_page"
|
82 |
title="<?php echo __('First Page', "wd-instagram-feed") ?>"
|
83 |
-
class="
|
84 |
id="wdi_prev" title="<?php echo __('Previous Page', "wd-instagram-feed") ?>"
|
85 |
-
class="
|
86 |
style="font-style:normal">1</i><i id="wdi_next"
|
87 |
title="<?php echo __('Next Page', "wd-instagram-feed") ?>"
|
88 |
-
class="
|
89 |
<i id="wdi_last_page" title="<?php echo __('Last Page', "wd-instagram-feed") ?>"
|
90 |
-
class="
|
91 |
}
|
92 |
|
93 |
break;
|
37 |
<div id="wdi_pagination" class="wdi_pagination">
|
38 |
<div class="wdi_pagination_container"><i id="wdi_first_page"
|
39 |
title="<?php echo __('First Page', "wd-instagram-feed") ?>"
|
40 |
+
class="tenweb-i tenweb-i-step-backward wdi_pagination_ctrl wdi_disabled"></i><i
|
41 |
id="wdi_prev" title="<?php echo __('Previous Page', "wd-instagram-feed") ?>"
|
42 |
+
class="tenweb-i tenweb-i-arrow-left wdi_pagination_ctrl"></i><i id="wdi_current_page" class="wdi_pagination_ctrl"
|
43 |
style="font-style:normal">1</i><i id="wdi_next"
|
44 |
title="<?php echo __('Next Page', "wd-instagram-feed") ?>"
|
45 |
+
class="tenweb-i tenweb-i-arrow-right wdi_pagination_ctrl"></i>
|
46 |
<i id="wdi_last_page" title="<?php echo __('Last Page', "wd-instagram-feed") ?>"
|
47 |
+
class="tenweb-i tenweb-i-step-forward wdi_pagination_ctrl wdi_disabled"></i>
|
48 |
</div>
|
49 |
</div>
|
50 |
<?php
|
67 |
<div class="wdi_spinner ">
|
68 |
<div class="wdi_spinner_container">
|
69 |
<div class="wdi_spinner_wrap">
|
70 |
+
<div class="wdi_spinner_wrap_inner"><i class="wdi_load_more_spinner tenweb-i tenweb-i-spinner"></i></div>
|
71 |
</div>
|
72 |
</div>
|
73 |
</div>
|
80 |
<div id="wdi_pagination" class="wdi_pagination">
|
81 |
<div class="wdi_pagination_container"><i id="wdi_first_page"
|
82 |
title="<?php echo __('First Page', "wd-instagram-feed") ?>"
|
83 |
+
class="tenweb-i tenweb-i-step-backward wdi_disabled wdi_pagination_ctrl"></i><i
|
84 |
id="wdi_prev" title="<?php echo __('Previous Page', "wd-instagram-feed") ?>"
|
85 |
+
class="tenweb-i tenweb-i-arrow-left wdi_pagination_ctrl"></i><i id="wdi_current_page" class="wdi_pagination_ctrl"
|
86 |
style="font-style:normal">1</i><i id="wdi_next"
|
87 |
title="<?php echo __('Next Page', "wd-instagram-feed") ?>"
|
88 |
+
class="tenweb-i tenweb-i-arrow-right wdi_pagination_ctrl"></i>
|
89 |
<i id="wdi_last_page" title="<?php echo __('Last Page', "wd-instagram-feed") ?>"
|
90 |
+
class="tenweb-i tenweb-i-step-forward wdi_pagination_ctrl wdi_disabled"></i></div></div> <?php
|
91 |
}
|
92 |
|
93 |
break;
|
js/gallerybox/wdi_gallery_box.js
CHANGED
@@ -104,8 +104,8 @@ var wdi_construct_popup = function (popup, currentFeed, image_rows, current_imag
|
|
104 |
filmstrip_direction = 'vertical';
|
105 |
}
|
106 |
|
107 |
-
var fa_class_name_1 = (filmstrip_direction === "horizontal") ? '
|
108 |
-
var fa_class_name_2 = (filmstrip_direction === "horizontal") ? '
|
109 |
|
110 |
// var thumb_width = 90;
|
111 |
// var thumb_height = 90;
|
@@ -168,13 +168,13 @@ var wdi_construct_popup = function (popup, currentFeed, image_rows, current_imag
|
|
168 |
}
|
169 |
|
170 |
var html = '' +
|
171 |
-
'<div class="wdi_filmstrip_left"><i class="
|
172 |
'<div class="wdi_filmstrip">' +
|
173 |
'<div class="wdi_filmstrip_thumbnails">' +
|
174 |
thumbnails_html +
|
175 |
'</div>' +
|
176 |
'</div>' +
|
177 |
-
'<div class="wdi_filmstrip_right"><i class="
|
178 |
|
179 |
popup.find('.wdi_filmstrip_container').append(html);
|
180 |
};
|
@@ -1226,21 +1226,4 @@ function wdi_reset_zoom() {
|
|
1226 |
viewportmeta.content = 'width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=0';
|
1227 |
}
|
1228 |
}
|
1229 |
-
}
|
1230 |
-
|
1231 |
-
|
1232 |
-
|
1233 |
-
|
1234 |
-
|
1235 |
-
|
1236 |
-
|
1237 |
-
|
1238 |
-
|
1239 |
-
|
1240 |
-
|
1241 |
-
|
1242 |
-
|
1243 |
-
|
1244 |
-
|
1245 |
-
|
1246 |
-
|
104 |
filmstrip_direction = 'vertical';
|
105 |
}
|
106 |
|
107 |
+
var fa_class_name_1 = (filmstrip_direction === "horizontal") ? 'tenweb-i-angle-left' : 'tenweb-i-angle-up';
|
108 |
+
var fa_class_name_2 = (filmstrip_direction === "horizontal") ? 'tenweb-i-angle-right' : 'tenweb-i-angle-down';
|
109 |
|
110 |
// var thumb_width = 90;
|
111 |
// var thumb_height = 90;
|
168 |
}
|
169 |
|
170 |
var html = '' +
|
171 |
+
'<div class="wdi_filmstrip_left"><i class="tenweb-i ' + fa_class_name_1 + '"></i></div>' +
|
172 |
'<div class="wdi_filmstrip">' +
|
173 |
'<div class="wdi_filmstrip_thumbnails">' +
|
174 |
thumbnails_html +
|
175 |
'</div>' +
|
176 |
'</div>' +
|
177 |
+
'<div class="wdi_filmstrip_right"><i class="tenweb-i ' + fa_class_name_2 + '"></i></div>';
|
178 |
|
179 |
popup.find('.wdi_filmstrip_container').append(html);
|
180 |
};
|
1226 |
viewportmeta.content = 'width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=0';
|
1227 |
}
|
1228 |
}
|
1229 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/gallerybox/wdi_gallery_box.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
var isPopUpOpened=false;var wdi_data=[];function wdi_spider_createpopup(a,k,b,m,e,l,f,j,h){a=a.replace(/&/g,"&");if(isPopUpOpened){return}isPopUpOpened=true;if(wdi_spider_hasalreadyreceivedpopup(l)||wdi_spider_isunsupporteduseragent()){return}jQuery("html").attr("style","overflow:hidden !important;");jQuery("#wdi_spider_popup_loading_"+k).css({display:"block"});jQuery("#wdi_spider_popup_overlay_"+k).css({display:"block"});var d=0;var c;for(var g=0;g<j.parsedData.length;g++){if(j.parsedData[g].id===h){d=g;c=[j.parsedData[g]];break}}jQuery.ajax({type:"POST",url:a,dataType:"text",data:{action:"WDIGalleryBox",image_rows:JSON.stringify(c),feed_id:j.feed_row.id,feed_counter:j.feed_row.wdi_feed_counter,current_image_index:d,image_rows_count:j.parsedData.length,carousel_media_row:JSON.stringify(c[0].carousel_media)},success:function(o){var n=jQuery('<div id="wdi_spider_popup_wrap" class="wdi_spider_popup_wrap wdi_lightbox_theme_'+j.feed_row.theme_id+'" style="width:'+b+"px;height:"+m+"px;margin-top:-"+(m/2)+"px;margin-left: -"+(b/2)+'px; ">'+o+"</div>");var p=new wdi_construct_popup(n,j,j.parsedData,h);p.construct();n.hide().appendTo("body");wdi_spider_showpopup(l,f,n,e);jQuery("#wdi_spider_popup_loading_"+k).css({display:"none !important;"})}})}var wdi_construct_popup=function(a,b,c,d){this.theme_row={};this.construct=function(){this.theme_row=window["wdi_theme_"+b.feed_row.theme_id];if(b.feed_row.popup_enable_filmstrip&&b.feed_row.popup_enable_filmstrip==="1"){this.add_filmstrip()}this.set_wdi_data()};this.add_filmstrip=function(){var l="horizontal";if(this.theme_row.lightbox_filmstrip_pos==="right"||this.theme_row.lightbox_filmstrip_pos==="left"){l="vertical"}var y=(l==="horizontal")?"fa-angle-left":"fa-angle-up";var x=(l==="horizontal")?"fa-angle-right":"fa-angle-down";var h="";var q,f;if(l==="horizontal"){f=q=(typeof b.feed_row.popup_filmstrip_height!=="undefined")?(b.feed_row.popup_filmstrip_height):"20"}else{f=q=(typeof b.feed_row.popup_filmstrip_height!=="undefined")?(b.feed_row.popup_filmstrip_height):"50"}q=f=parseInt(f);for(var w=0;w<c.length;w++){var e=c[w];var s,k,A;if(e.resolution&&e.resolution!==""){var n=e.resolution.split(" ");var p=intval($resolution_arr[0]);var z=intval($resolution_arr[2]);if(p!==0&&z!==0){A=Math.max(f/p,q/z);s=p*A;k=z*A}else{s=f;k=q}}else{s=f;k=q}A=Math.max(f/s,q/k);s*=A;k*=A;var g=(f-s)/2;var j=(q-k)/2;var u="wdi_filmstrip_thumbnail "+((parseInt(e.id)===parseInt(d))?"wdi_thumb_active":"wdi_thumb_deactive");var t="width:"+s+"px;height:"+k+"px;margin-left:"+g+"px;margin-top:"+j+"px;";var m=(typeof e.images[b.feedImageResolution]!=="undefined"&&typeof e.images[b.feedImageResolution]["url"]!=="undefined")?e.images[b.feedImageResolution]["url"]:e.thumb_url;var B="wdi_change_image(parseInt(jQuery('#wdi_current_image_key').val()), '"+w+"', wdi_data)";var v="wdi_change_image(parseInt(jQuery('#wdi_current_image_key').val()), '"+w+"', wdi_data)";var r='<img style="'+t+'" class="wdi_filmstrip_thumbnail_img" src="'+m+'" onclick="'+B+'" ontouchend="'+v+'" image_id="'+e.id+'" image_key="'+w+'" alt="'+e.alt+'" />';h+='<div id="wdi_filmstrip_thumbnail_'+w+'" class="'+u+'">'+r+"</div>"}var o='<div class="wdi_filmstrip_left"><i class="fa '+y+'"></i></div><div class="wdi_filmstrip"><div class="wdi_filmstrip_thumbnails">'+h+'</div></div><div class="wdi_filmstrip_right"><i class="fa '+x+'"></i></div>';a.find(".wdi_filmstrip_container").append(o)};this.set_wdi_data=function(){wdi_data=[];for(var e=0;e<c.length;e++){wdi_data[e]=[];wdi_data[e]["number"]=e+1;wdi_data[e]["id"]=c[e].id;wdi_data[e]["alt"]=c[e].alt;wdi_data[e]["description"]=wdi_front.escape_tags(c[e].description);wdi_data[e]["username"]=c[e].username;wdi_data[e]["profile_picture"]=c[e].profile_picture;wdi_data[e]["image_url"]=c[e].image_url;wdi_data[e]["thumb_url"]=c[e].thumb_url;wdi_data[e]["date"]=c[e].date;wdi_data[e]["comment_count"]=c[e].comment_count;wdi_data[e]["filetype"]=c[e].filetype;wdi_data[e]["filename"]=c[e].filename;wdi_data[e]["avg_rating"]=c[e].avg_rating;wdi_data[e]["rate"]=c[e].rate;wdi_data[e]["rate_count"]=c[e].rate_count;wdi_data[e]["hit_count"]=c[e].hit_count;wdi_data[e]["comments_data"]=(typeof c[e].comments_data!=="undefined")?c[e].comments_data:"null";wdi_data[e]["carousel_media"]=(typeof c[e]["carousel_media"]!=="undefined")?c[e]["carousel_media"]:null}}};function wdi_spider_showpopup(c,a,b,d){isPopUpOpened=true;b.show();wdi_spider_receivedpopup(c,a)}function wdi_spider_hasalreadyreceivedpopup(a){if(document.cookie.indexOf(a)>-1){delete document.cookie[document.cookie.indexOf(a)]}return false}function wdi_spider_receivedpopup(c,a){var b=new Date();b.setDate(b.getDate()+a);document.cookie=c+"=true;expires="+b.toUTCString()+";path=/"}function wdi_spider_isunsupporteduseragent(){return(!window.XMLHttpRequest)}function wdi_spider_destroypopup(d){if(document.getElementById("wdi_spider_popup_wrap")!=null){wdi_comments_manager.popup_destroyed();if(typeof jQuery().fullscreen!=="undefined"&&jQuery.isFunction(jQuery().fullscreen)){if(jQuery.fullscreen.isFullScreen()){jQuery.fullscreen.exit()}}setTimeout(function(){jQuery(".wdi_spider_popup_wrap").remove();jQuery(".wdi_spider_popup_loading").css({display:"none"});jQuery(".wdi_spider_popup_overlay").css({display:"none"});jQuery(document).off("keydown");jQuery("html").attr("style","")},20)}isPopUpOpened=false;var a=(/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));var c=document.querySelector('meta[name="viewport"]');if(a&&c){c.content="width=device-width, initial-scale=1"}var b=jQuery(document).scrollTop();window.location.hash="";jQuery(document).scrollTop(b);if(typeof wdi_playInterval!="undefined"){clearInterval(wdi_playInterval)}}Object.size=function(c){var b=0,a;for(a in c){if(c.hasOwnProperty(a)){b++}}return b};function wdi_spider_ajax_save(a,b){wdi_comments_manager.init(b);return false}wdi_comments_manager={media_id:"",mediaComments:[],load_more_count:10,commentCounter:0,currentKey:-1,init:function(a){this.instagram=new WDIInstagram();this.instagram.addToken(wdi_front.access_token);if(this.currentKey!=a){this.currentKey=a;this.reset_comments()}else{}},reset_comments:function(){jQuery("#wdi_load_more_comments").remove();jQuery("#wdi_added_comments").html("");this.commentCounter=0;this.media_id=wdi_data[this.currentKey]["id"];this.getAjaxComments(this.currentKey)},popup_destroyed:function(){this.media_id="";this.mediaComments=[];this.commentCounter=0;this.currentKey=-1},showComments:function(f,e){if(Object.size(f)-this.commentCounter-e<0||e===undefined){e=Object.size(f)-this.commentCounter}var b=this.commentCounter;for(i=Object.size(f)-b-1;i>=Object.size(f)-b-e;i--){this.commentCounter++;var d=(f[i]["text"]);d=wdi_front.escape_tags(d);d=this.filterCommentText(d);var g=(f[i]["from"]["username"]);var c=(f[i]["from"]["profile_picture"]);var a=jQuery('<div class="wdi_single_comment"></div>');a.append(jQuery('<p class="wdi_comment_header_p"><span class="wdi_comment_header"><a target="_blank" href="//instagram.com/'+g+'">'+g+'</a></span><span class="wdi_comment_date">'+wdi_front.convertUnixDate(f[i]["created_time"])+"</span></p>"));a.append(jQuery('<div class="wdi_comment_body_p"><span class="wdi_comment_body"><p>'+d+"</p></span></div>"));jQuery("#wdi_added_comments").prepend(a)}this.updateScrollbar()},updateScrollbar:function(){var b=jQuery("#wdi_comments");var a=jQuery("#wdi_added_comments");jQuery(".wdi_comments").attr("class","wdi_comments");jQuery(".wdi_comments").html("");jQuery(".wdi_comments").append(b);jQuery(".wdi_comments").append(a);jQuery(".wdi_comments_close_btn").on("click",wdi_comment)},getAjaxComments:function(){this.instagram.getRecentMediaComments(this.media_id,{success:function(a){if(a==""||a==undefined||a==null){errorMessage="Network Error, please try again later :(";console.log("%c"+errorMessage,"color:#cc0000;");return}if(a.meta["code"]!=200){errorMessage=a.meta["error_message"];console.log("%c"+errorMessage,"color:#cc0000;");return}wdi_comments_manager.mediaComments=a.data;var b=wdi_data[wdi_comments_manager.currentKey];b.comments_data=a.data;wdi_comments_manager.showComments(b.comments_data,wdi_comments_manager.load_more_count);wdi_comments_manager.ajax_comments_ready(a.data)}})},ajax_comments_ready:function(a){this.createLoadMoreAndBindEvent()},createLoadMoreAndBindEvent:function(){jQuery("#wdi_added_comments").prepend(jQuery('<p id="wdi_load_more_comments" class="wdi_load_more_comments">load more comments</p>'));jQuery(".wdi_comment_container #wdi_load_more_comments").on("click",function(){jQuery(this).remove();wdi_comments_manager.showComments(wdi_comments_manager.mediaComments,wdi_comments_manager.load_more_count);wdi_comments_manager.createLoadMoreAndBindEvent()})},filterCommentText:function(d){var c=d.split(" ");var b="";for(var a=0;a<c.length;a++){switch(c[a][0]){case"@":b+='<a target="blank" class="wdi_comm_text_link" href="//instagram.com/'+c[a].substring(1,c[a].length)+'">'+c[a]+"</a> ";break;case"#":b+='<a target="blank" class="wdi_comm_text_link" href="//instagram.com/explore/tags/'+c[a].substring(1,c[a].length)+'">'+c[a]+"</a> ";break;default:b+=c[a]+" "}}b=b.substring(0,b.length-1);return b}};function wdi_spider_set_input_value(b,a){if(document.getElementById(b)){document.getElementById(b).value=a}}function wdi_spider_form_submit(b,a){if(document.getElementById(a)){document.getElementById(a).submit()}if(b.preventDefault){b.preventDefault()}else{b.returnValue=false}}function wdi_spider_check_required(b,a){if(jQuery("#"+b).val()==""){wdi_front.show_alert(a+"* "+wdi_objectL10n.wdi_field_required);jQuery("#"+b).attr("style","border-color: #FF0000;");jQuery("#"+b).focus();return true}else{return false}}function wdi_spider_check_email(b){if(jQuery("#"+b).val()!=""){var a=jQuery("#"+b).val().replace(/^\s+|\s+$/g,"");if(a.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/)==-1){wdi_front.show_alert(wdi_objectL10n.wdi_mail_validation);return true}return false}}function wdi_captcha_refresh(a){if(document.getElementById(a+"_img")&&document.getElementById(a+"_input")){srcArr=document.getElementById(a+"_img").src.split("&r=");document.getElementById(a+"_img").src=srcArr[0]+"&r="+Math.floor(Math.random()*100);document.getElementById(a+"_img").style.display="inline-block";document.getElementById(a+"_input").value=""}}function wdi_play_pause(e){var f=navigator.userAgent.indexOf("Chrome")>-1;var d=navigator.userAgent.indexOf("Safari")>-1;if((f)&&(d)){d=false}if(d){return}var c=e.get(0);var b=/firefox/i;var a=false;if(navigator.userAgent.match(b)){a=true}if(!a){if(!c.paused){c.pause()}else{c.play()}}}function wdi_spider_display_embed(m,n,j,g){var b="";switch(m){case"EMBED_OEMBED_YOUTUBE_VIDEO":var k="<iframe ";if(n!=""){k+=' src="//www.youtube.com/embed/'+n+'?enablejsapi=1&wmode=transparent"'}for(attr in j){if(!(/src/i).test(attr)){if(attr!=""&&j[attr]!=""){k+=" "+attr+'="'+j[attr]+'"'}}}k+=" ></iframe>";b+=k;break;case"EMBED_OEMBED_VIMEO_VIDEO":var f="<iframe ";if(n!=""){f+=' src="//player.vimeo.com/video/'+n+'?enablejsapi=1"'}for(attr in j){if(!(/src/i).test(attr)){if(attr!=""&&j[attr]!=""){f+=" "+attr+'="'+j[attr]+'"'}}}f+=" ></iframe>";b+=f;break;case"EMBED_OEMBED_FLICKR_IMAGE":var d="<div ";for(attr in j){if(!(/src/i).test(attr)){if(attr!=""&&j[attr]!=""){d+=" "+attr+'="'+j[attr]+'"'}}}d+=" >";if(n!=""){d+='<img src="'+n+'" style="max-width:100% !important; max-height:100% !important; width:auto !important; height:auto !important;">'}d+="</div>";b+=d;break;case"EMBED_OEMBED_FLICKR_VIDEO":break;case"EMBED_OEMBED_INSTAGRAM_VIDEO":var e="<div ";for(attr in j){if(!(/src/i).test(attr)){if(attr!=""&&j[attr]!=""){e+=" "+attr+'="'+j[attr]+'"'}}}e+=" >";if(n!=""){e+='<video onclick="wdi_play_pause(jQuery(this));" style="width:auto !important; height:auto !important; max-width:100% !important; max-height:100% !important; margin:0 !important;" controls><source src="'+n+'" type="video/mp4"> Your browser does not support the video tag. </video>'}e+="</div>";b+=e;break;case"EMBED_OEMBED_INSTAGRAM_IMAGE":var e="<div ";for(attr in j){if(!(/src/i).test(attr)){if(attr!=""&&j[attr]!=""){e+=" "+attr+'="'+j[attr]+'"'}}}e+=" >";if(g!=null&&g.length){for(var c=0;c<g.length;c++){if(g[c]["type"]=="image"){e+='<img src="'+g[c]["images"]["standard_resolution"]["url"]+'" style="max-width:100% !important; max-height:100% !important; width:auto !important; height:auto !important;" data-id="'+c+'" class="carousel_media '+(c==0?"active":"")+'">'}else{if(g[c]["type"]=="video"){e+='<video onclick="wdi_play_pause(jQuery(this));" style="width:auto !important; height:auto !important; max-width:100% !important; max-height:100% !important; margin:0 !important;" controls data-id="'+c+'" class="carousel_media '+(c==0?"active":"")+'"><source src="'+g[c]["videos"]["standard_resolution"]["url"]+'" type="video/mp4"> Your browser does not support the video tag. </video>'}}}}else{if(n!=""){e+='<img src="//instagram.com/p/'+n+'/media/?size=l" style=" max-width:100% !important; max-height:100% !important; width:auto; height:auto;">'}}e+="</div>";b+=e;break;case"EMBED_OEMBED_INSTAGRAM_POST":var e="<div ";var a="";for(attr in j){if(!(/src/i).test(attr)){if(attr!=""&&j[attr]!=""){e+=" "+attr+'="'+j[attr]+'"';if(attr=="CLASS"||attr=="class"||attr=="Class"){obj_class=j[attr]}}}}e+=" >";if(n!=""){e+='<iframe class="inner_instagram_iframe_'+obj_class+'" src="//instagr.am/p/'+n+'/embed/?enablejsapi=1" style="max-width:100% !important; max-height:100% !important; width:100%; height:100%; margin:0; display:table-cell; vertical-align:middle;"frameborder="0" scrolling="no" allowtransparency="false" allowfullscreen></iframe>'}e+="</div>";b+=e;break;case"EMBED_OEMBED_DAILYMOTION_VIDEO":var l="<iframe ";if(n!=""){l+=' src="//www.dailymotion.com/embed/video/'+n+'?api=postMessage"'}for(attr in j){if(!(/src/i).test(attr)){if(attr!=""&&j[attr]!=""){l+=" "+attr+'="'+j[attr]+'"'}}}l+=" ></iframe>";b+=l;break;case"EMBED_OEMBED_IMGUR":var h="<div ";for(attr in j){if(!(/src/i).test(attr)){if(attr!=""&&j[attr]!=""){e+=" "+attr+'="'+j[attr]+'"'}}}h+=" >";if(n!=""){h+='<img src="'+n+'" style="max-width:100% !important; max-height:100% !important; width:auto; height:auto !important;">'}h+="</div>";b+=h;break;default:}return b}function wdi_testBrowser_cssTransitions(){return wdi_testDom("Transition")}function wdi_testBrowser_cssTransforms3d(){return wdi_testDom("Perspective")}function wdi_testDom(d){var a=["","-webkit-","-moz-","-ms-","-o-","-khtml-"];var c=["","Webkit","Moz","ms","O","Khtml"];var b=c.length;while(b--){if(typeof document.body.style[c[b]+d]!=="undefined"){return true}}return false}function wdi_cube(c,d,b,a,k,l,h,j,e,g){if(!wdi_testBrowser_cssTransitions()){return wdi_fallback(j,e,g)}if(!wdi_testBrowser_cssTransforms3d()){return wdi_fallback3d(j,e,g)}wdi_trans_in_progress=true;jQuery(".wdi_filmstrip_thumbnail").removeClass("wdi_thumb_active").addClass("wdi_thumb_deactive");jQuery("#wdi_filmstrip_thumbnail_"+wdi_current_key).removeClass("wdi_thumb_deactive").addClass("wdi_thumb_active");jQuery(".wdi_slide_bg").css("perspective",1000);jQuery(j).css({transform:"translateZ("+c+"px)",backfaceVisibility:"hidden"});jQuery(e).css({opacity:1,filter:"Alpha(opacity=100)",backfaceVisibility:"hidden",transform:"translateY("+b+"px) translateX("+d+"px) rotateY("+k+"deg) rotateX("+a+"deg)"});jQuery(".wdi_slider").css({transform:"translateZ(-"+c+"px)",transformStyle:"preserve-3d"});setTimeout(function(){jQuery(".wdi_slider").css({transition:"all "+wdi_transition_duration+"ms ease-in-out",transform:"translateZ(-"+c+"px) rotateX("+l+"deg) rotateY("+h+"deg)"})},20);jQuery(".wdi_slider").one("webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend",jQuery.proxy(f));function f(){jQuery(j).removeAttr("style");jQuery(e).removeAttr("style");jQuery(".wdi_slider").removeAttr("style");jQuery(j).css({opacity:0,filter:"Alpha(opacity=0)","z-index":1});jQuery(e).css({opacity:1,filter:"Alpha(opacity=100)","z-index":2});wdi_trans_in_progress=false;jQuery(j).html("");if(typeof event_stack!=="undefined"){if(event_stack.length>0){key=event_stack[0].split("-");event_stack.shift();wdi_change_image(key[0],key[1],wdi_data,true)}}wdi_change_watermark_container()}}function wdi_cubeH(b,a,d){var c=jQuery(b).width()/2;if(d=="right"){wdi_cube(c,c,0,0,90,0,-90,b,a,d)}else{if(d=="left"){wdi_cube(c,-c,0,0,-90,0,90,b,a,d)}}}function wdi_cubeV(b,a,d){var c=jQuery(b).height()/2;if(d=="right"){wdi_cube(c,0,-c,90,0,-90,0,b,a,d)}else{if(d=="left"){wdi_cube(c,0,c,-90,0,90,0,b,a,d)}}}function wdi_fallback(b,a,c){wdi_fade(b,a,c)}function wdi_fallback3d(b,a,c){wdi_sliceV(b,a,c)}function wdi_none(b,a,c){jQuery(b).css({opacity:0,"z-index":1});jQuery(a).css({opacity:1,"z-index":2});jQuery(".wdi_filmstrip_thumbnail").removeClass("wdi_thumb_active").addClass("wdi_thumb_deactive");jQuery("#wdi_filmstrip_thumbnail_"+wdi_current_key).removeClass("wdi_thumb_deactive").addClass("wdi_thumb_active");wdi_trans_in_progress=false;jQuery(b).html("");wdi_change_watermark_container()}function wdi_fade(b,a,c){jQuery(".wdi_filmstrip_thumbnail").removeClass("wdi_thumb_active").addClass("wdi_thumb_deactive");jQuery("#wdi_filmstrip_thumbnail_"+wdi_current_key).removeClass("wdi_thumb_deactive").addClass("wdi_thumb_active");if(wdi_testBrowser_cssTransitions()){jQuery(a).css("transition","opacity "+wdi_transition_duration+"ms linear");jQuery(b).css({opacity:0,"z-index":1});jQuery(a).css({opacity:1,"z-index":2});wdi_change_watermark_container()}else{jQuery(b).animate({opacity:0,"z-index":1},wdi_transition_duration);jQuery(a).animate({opacity:1,"z-index":2},{duration:wdi_transition_duration,complete:function(){wdi_trans_in_progress=false;jQuery(b).html("");wdi_change_watermark_container()}});jQuery(b).fadeTo(wdi_transition_duration,0);jQuery(a).fadeTo(wdi_transition_duration,1)}}function wdi_grid(k,L,w,I,H,o,u,A,M,g){if(!wdi_testBrowser_cssTransitions()){return wdi_fallback(A,M,g)}wdi_trans_in_progress=true;jQuery(".wdi_filmstrip_thumbnail").removeClass("wdi_thumb_active").addClass("wdi_thumb_deactive");jQuery("#wdi_filmstrip_thumbnail_"+wdi_current_key).removeClass("wdi_thumb_deactive").addClass("wdi_thumb_active");var F=(wdi_transition_duration)/(k+L);function x(P,Y,V,R,Q,X,O,W,U,T,j){var S=(T+j)*F;return jQuery('<span class="wdi_gridlet" />').css({display:"block",width:P,height:Y,top:V,left:Q,backgroundImage:'url("'+O+'")',backgroundColor:jQuery(".wdi_spider_popup_wrap").css("background-color"),backgroundRepeat:"no-repeat",backgroundPosition:X+"px "+R+"px",backgroundSize:W+"px "+U+"px",transition:"all "+wdi_transition_duration+"ms ease-in-out "+S+"ms",transform:"none"})}var v=jQuery(A).find("img");var D=jQuery('<span style="display: block;" />').addClass("wdi_grid");jQuery(A).prepend(D);var z=jQuery(".wdi_slide_bg");var n=v.width();var b=v.height();var C=z.width(),h=z.height(),q=Math.floor(C/k),e=Math.floor(h/L),d=C-(k*q),G=Math.ceil(d/k),p=h-(L*e),f=Math.ceil(p/L),t=0,y=Math.ceil((jQuery(".wdi_slide_bg").width()-v.width())/2);var E=typeof v.attr("src")=="undefined"?"":v.attr("src");I=I==="auto"?C:I;I=I==="min-auto"?-C:I;H=H==="auto"?h:H;H=H==="min-auto"?-h:H;for(var K=0;K<k;K++){var N=0,m=Math.floor((jQuery(".wdi_slide_bg").height()-v.height())/2),B=q;if(d>0){var c=d>=G?G:d;B+=c;d-=c}for(var J=0;J<L;J++){var r=e,s=p;if(s>0){c=s>=f?f:p;r+=c;s-=c}D.append(x(B,r,N,m,t,y,E,n,b,K,J));N+=r;m-=r}y-=B;t+=B}var a=D.children().last();D.show();v.css("opacity",0);D.children().first().addClass("rs-top-left");D.children().last().addClass("rs-bottom-right");D.children().eq(L-1).addClass("rs-bottom-left");D.children().eq(-L).addClass("rs-top-right");setTimeout(function(){D.children().css({opacity:u,transform:"rotate("+w+"deg) translateX("+I+"px) translateY("+H+"px) scale("+o+")"})},1);jQuery(M).css("opacity",1);jQuery(a).one("webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend",jQuery.proxy(l));function l(){jQuery(A).css({opacity:0,"z-index":1});jQuery(M).css({opacity:1,"z-index":2});v.css("opacity",1);D.remove();wdi_trans_in_progress=false;jQuery(A).html("");if(typeof event_stack!=="undefined"){if(event_stack.length>0){key=event_stack[0].split("-");event_stack.shift();wdi_change_image(key[0],key[1],wdi_data,true)}}wdi_change_watermark_container()}}function wdi_sliceH(b,a,c){if(c=="right"){var d="min-auto"}else{if(c=="left"){var d="auto"}}wdi_grid(1,8,0,d,0,1,0,b,a,c)}function wdi_sliceV(b,a,d){if(d=="right"){var c="min-auto"}else{if(d=="left"){var c="auto"}}wdi_grid(10,1,0,0,c,1,0,b,a,d)}function wdi_slideV(b,a,d){if(d=="right"){var c="auto"}else{if(d=="left"){var c="min-auto"}}wdi_grid(1,1,0,0,c,1,1,b,a,d)}function wdi_slideH(b,a,c){if(c=="right"){var d="min-auto"}else{if(c=="left"){var d="auto"}}wdi_grid(1,1,0,d,0,1,1,b,a,c)}function wdi_scaleOut(b,a,c){wdi_grid(1,1,0,0,0,1.5,0,b,a,c)}function wdi_scaleIn(b,a,c){wdi_grid(1,1,0,0,0,0.5,0,b,a,c)}function wdi_blockScale(b,a,c){wdi_grid(8,6,0,0,0,0.6,0,b,a,c)}function wdi_kaleidoscope(b,a,c){wdi_grid(10,8,0,0,0,1,0,b,a,c)}function wdi_fan(b,a,d){if(d=="right"){var c=45;var e=100}else{if(d=="left"){var c=-45;var e=-100}}wdi_grid(1,10,c,e,0,1,0,b,a,d)}function wdi_blindV(b,a,c){wdi_grid(1,8,0,0,0,0.7,0,b,a)}function wdi_blindH(b,a,c){wdi_grid(10,1,0,0,0,0.7,0,b,a)}function wdi_random(c,b,d){var a=["sliceH","sliceV","slideH","slideV","scaleOut","scaleIn","blockScale","kaleidoscope","fan","blindH","blindV"];this["wdi_"+a[Math.floor(Math.random()*a.length)]](c,b,d)}function wdi_pause_stream(a){jQuery(a).find("video").each(function(){jQuery(this).get(0).pause()})}function wdi_reset_zoom(){var a=(/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));var b=document.querySelector('meta[name="viewport"]');if(a){if(b){b.content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=0"}}};
|
1 |
+
var isPopUpOpened=!1,wdi_data=[];function wdi_spider_createpopup(e,t,i,a,r,n,d,o,s){if(e=e.replace(/&/g,"&"),!isPopUpOpened&&(isPopUpOpened=!0,!wdi_spider_hasalreadyreceivedpopup(n)&&!wdi_spider_isunsupporteduseragent())){jQuery("html").attr("style","overflow:hidden !important;"),jQuery("#wdi_spider_popup_loading_"+t).css({display:"block"}),jQuery("#wdi_spider_popup_overlay_"+t).css({display:"block"});for(var _,c=0,m=0;m<o.parsedData.length;m++)if(o.parsedData[m].id===s){c=m,_=[o.parsedData[m]];break}jQuery.ajax({type:"POST",url:e,dataType:"text",data:{action:"WDIGalleryBox",image_rows:JSON.stringify(_),feed_id:o.feed_row.id,feed_counter:o.feed_row.wdi_feed_counter,current_image_index:c,image_rows_count:o.parsedData.length,carousel_media_row:JSON.stringify(_[0].carousel_media)},success:function(e){var _=jQuery('<div id="wdi_spider_popup_wrap" class="wdi_spider_popup_wrap wdi_lightbox_theme_'+o.feed_row.theme_id+'" style="width:'+i+"px;height:"+a+"px;margin-top:-"+a/2+"px;margin-left: -"+i/2+'px; ">'+e+"</div>");new wdi_construct_popup(_,o,o.parsedData,s).construct(),_.hide().appendTo("body"),wdi_spider_showpopup(n,d,_,r),jQuery("#wdi_spider_popup_loading_"+t).css({display:"none !important;"})}})}}var wdi_construct_popup=function(e,t,i,a){this.theme_row={},this.construct=function(){this.theme_row=window["wdi_theme_"+t.feed_row.theme_id],t.feed_row.popup_enable_filmstrip&&"1"===t.feed_row.popup_enable_filmstrip&&this.add_filmstrip(),this.set_wdi_data()},this.add_filmstrip=function(){var r="horizontal";"right"!==this.theme_row.lightbox_filmstrip_pos&&"left"!==this.theme_row.lightbox_filmstrip_pos||(r="vertical");var n,d,o="horizontal"===r?"tenweb-i-angle-left":"tenweb-i-angle-up",s="horizontal"===r?"tenweb-i-angle-right":"tenweb-i-angle-down",_="";d=n="horizontal"===r?void 0!==t.feed_row.popup_filmstrip_height?t.feed_row.popup_filmstrip_height:"20":void 0!==t.feed_row.popup_filmstrip_height?t.feed_row.popup_filmstrip_height:"50",n=d=parseInt(d);for(var c=0;c<i.length;c++){var m,l,u,p=i[c];if(p.resolution&&""!==p.resolution){p.resolution.split(" ");var w=intval($resolution_arr[0]),h=intval($resolution_arr[2]);0!==w&&0!==h?(m=w*(u=Math.max(d/w,n/h)),l=h*u):(m=d,l=n)}else m=d,l=n;var f=(d-(m*=u=Math.max(d/m,n/l)))/2,g=(n-(l*=u))/2;_+='<div id="wdi_filmstrip_thumbnail_'+c+'" class="'+("wdi_filmstrip_thumbnail "+(parseInt(p.id)===parseInt(a)?"wdi_thumb_active":"wdi_thumb_deactive"))+'">'+('<img style="'+("width:"+m+"px;height:"+l+"px;margin-left:"+f+"px;margin-top:"+g+"px;")+'" class="wdi_filmstrip_thumbnail_img" src="'+(void 0!==p.images[t.feedImageResolution]&&void 0!==p.images[t.feedImageResolution].url?p.images[t.feedImageResolution].url:p.thumb_url)+'" onclick="'+("wdi_change_image(parseInt(jQuery('#wdi_current_image_key').val()), '"+c+"', wdi_data)")+'" ontouchend="'+("wdi_change_image(parseInt(jQuery('#wdi_current_image_key').val()), '"+c+"', wdi_data)")+'" image_id="'+p.id+'" image_key="'+c+'" alt="'+p.alt+'" />')+"</div>"}var y='<div class="wdi_filmstrip_left"><i class="tenweb-i '+o+'"></i></div><div class="wdi_filmstrip"><div class="wdi_filmstrip_thumbnails">'+_+'</div></div><div class="wdi_filmstrip_right"><i class="tenweb-i '+s+'"></i></div>';e.find(".wdi_filmstrip_container").append(y)},this.set_wdi_data=function(){wdi_data=[];for(var e=0;e<i.length;e++)wdi_data[e]=[],wdi_data[e].number=e+1,wdi_data[e].id=i[e].id,wdi_data[e].alt=i[e].alt,wdi_data[e].description=wdi_front.escape_tags(i[e].description),wdi_data[e].username=i[e].username,wdi_data[e].profile_picture=i[e].profile_picture,wdi_data[e].image_url=i[e].image_url,wdi_data[e].thumb_url=i[e].thumb_url,wdi_data[e].date=i[e].date,wdi_data[e].comment_count=i[e].comment_count,wdi_data[e].filetype=i[e].filetype,wdi_data[e].filename=i[e].filename,wdi_data[e].avg_rating=i[e].avg_rating,wdi_data[e].rate=i[e].rate,wdi_data[e].rate_count=i[e].rate_count,wdi_data[e].hit_count=i[e].hit_count,wdi_data[e].comments_data=void 0!==i[e].comments_data?i[e].comments_data:"null",wdi_data[e].carousel_media=void 0!==i[e].carousel_media?i[e].carousel_media:null}};function wdi_spider_showpopup(e,t,i,a){isPopUpOpened=!0,i.show(),wdi_spider_receivedpopup(e,t)}function wdi_spider_hasalreadyreceivedpopup(e){return document.cookie.indexOf(e)>-1&&delete document.cookie[document.cookie.indexOf(e)],!1}function wdi_spider_receivedpopup(e,t){var i=new Date;i.setDate(i.getDate()+t),document.cookie=e+"=true;expires="+i.toUTCString()+";path=/"}function wdi_spider_isunsupporteduseragent(){return!window.XMLHttpRequest}function wdi_spider_destroypopup(e){null!=document.getElementById("wdi_spider_popup_wrap")&&(wdi_comments_manager.popup_destroyed(),void 0!==jQuery().fullscreen&&jQuery.isFunction(jQuery().fullscreen)&&jQuery.fullscreen.isFullScreen()&&jQuery.fullscreen.exit(),setTimeout(function(){jQuery(".wdi_spider_popup_wrap").remove(),jQuery(".wdi_spider_popup_loading").css({display:"none"}),jQuery(".wdi_spider_popup_overlay").css({display:"none"}),jQuery(document).off("keydown"),jQuery("html").attr("style","")},20)),isPopUpOpened=!1;var t=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()),i=document.querySelector('meta[name="viewport"]');t&&i&&(i.content="width=device-width, initial-scale=1");var a=jQuery(document).scrollTop();window.location.hash="",jQuery(document).scrollTop(a),"undefined"!=typeof wdi_playInterval&&clearInterval(wdi_playInterval)}function wdi_spider_ajax_save(e,t){return wdi_comments_manager.init(t),!1}function wdi_spider_set_input_value(e,t){document.getElementById(e)&&(document.getElementById(e).value=t)}function wdi_spider_form_submit(e,t){document.getElementById(t)&&document.getElementById(t).submit(),e.preventDefault?e.preventDefault():e.returnValue=!1}function wdi_spider_check_required(e,t){return""==jQuery("#"+e).val()&&(wdi_front.show_alert(t+"* "+wdi_objectL10n.wdi_field_required),jQuery("#"+e).attr("style","border-color: #FF0000;"),jQuery("#"+e).focus(),!0)}function wdi_spider_check_email(e){if(""!=jQuery("#"+e).val())return-1==jQuery("#"+e).val().replace(/^\s+|\s+$/g,"").search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/)&&(wdi_front.show_alert(wdi_objectL10n.wdi_mail_validation),!0)}function wdi_captcha_refresh(e){document.getElementById(e+"_img")&&document.getElementById(e+"_input")&&(srcArr=document.getElementById(e+"_img").src.split("&r="),document.getElementById(e+"_img").src=srcArr[0]+"&r="+Math.floor(100*Math.random()),document.getElementById(e+"_img").style.display="inline-block",document.getElementById(e+"_input").value="")}function wdi_play_pause(e){var t=navigator.userAgent.indexOf("Chrome")>-1,i=navigator.userAgent.indexOf("Safari")>-1;if(t&&i&&(i=!1),!i){var a=e.get(0),r=!1;navigator.userAgent.match(/firefox/i)&&(r=!0),r||(a.paused?a.play():a.pause())}}function wdi_spider_display_embed(e,t,i,a){var r="";switch(e){case"EMBED_OEMBED_YOUTUBE_VIDEO":var n="<iframe ";for(attr in""!=t&&(n+=' src="//www.youtube.com/embed/'+t+'?enablejsapi=1&wmode=transparent"'),i)/src/i.test(attr)||""!=attr&&""!=i[attr]&&(n+=" "+attr+'="'+i[attr]+'"');r+=n+=" ></iframe>";break;case"EMBED_OEMBED_VIMEO_VIDEO":var d="<iframe ";for(attr in""!=t&&(d+=' src="//player.vimeo.com/video/'+t+'?enablejsapi=1"'),i)/src/i.test(attr)||""!=attr&&""!=i[attr]&&(d+=" "+attr+'="'+i[attr]+'"');r+=d+=" ></iframe>";break;case"EMBED_OEMBED_FLICKR_IMAGE":var o="<div ";for(attr in i)/src/i.test(attr)||""!=attr&&""!=i[attr]&&(o+=" "+attr+'="'+i[attr]+'"');o+=" >",""!=t&&(o+='<img src="'+t+'" style="max-width:100% !important; max-height:100% !important; width:auto !important; height:auto !important;">'),r+=o+="</div>";break;case"EMBED_OEMBED_FLICKR_VIDEO":break;case"EMBED_OEMBED_INSTAGRAM_VIDEO":var s="<div ";for(attr in i)/src/i.test(attr)||""!=attr&&""!=i[attr]&&(s+=" "+attr+'="'+i[attr]+'"');s+=" >",""!=t&&(s+='<video onclick="wdi_play_pause(jQuery(this));" style="width:auto !important; height:auto !important; max-width:100% !important; max-height:100% !important; margin:0 !important;" controls><source src="'+t+'" type="video/mp4"> Your browser does not support the video tag. </video>'),r+=s+="</div>";break;case"EMBED_OEMBED_INSTAGRAM_IMAGE":s="<div ";for(attr in i)/src/i.test(attr)||""!=attr&&""!=i[attr]&&(s+=" "+attr+'="'+i[attr]+'"');if(s+=" >",null!=a&&a.length)for(var _=0;_<a.length;_++)"image"==a[_].type?s+='<img src="'+a[_].images.standard_resolution.url+'" style="max-width:100% !important; max-height:100% !important; width:auto !important; height:auto !important;" data-id="'+_+'" class="carousel_media '+(0==_?"active":"")+'">':"video"==a[_].type&&(s+='<video onclick="wdi_play_pause(jQuery(this));" style="width:auto !important; height:auto !important; max-width:100% !important; max-height:100% !important; margin:0 !important;" controls data-id="'+_+'" class="carousel_media '+(0==_?"active":"")+'"><source src="'+a[_].videos.standard_resolution.url+'" type="video/mp4"> Your browser does not support the video tag. </video>');else""!=t&&(s+='<img src="//instagram.com/p/'+t+'/media/?size=l" style=" max-width:100% !important; max-height:100% !important; width:auto; height:auto;">');r+=s+="</div>";break;case"EMBED_OEMBED_INSTAGRAM_POST":s="<div ";for(attr in i)/src/i.test(attr)||""!=attr&&""!=i[attr]&&(s+=" "+attr+'="'+i[attr]+'"',"CLASS"!=attr&&"class"!=attr&&"Class"!=attr||(obj_class=i[attr]));s+=" >",""!=t&&(s+='<iframe class="inner_instagram_iframe_'+obj_class+'" src="//instagr.am/p/'+t+'/embed/?enablejsapi=1" style="max-width:100% !important; max-height:100% !important; width:100%; height:100%; margin:0; display:table-cell; vertical-align:middle;"frameborder="0" scrolling="no" allowtransparency="false" allowfullscreen></iframe>'),r+=s+="</div>";break;case"EMBED_OEMBED_DAILYMOTION_VIDEO":var c="<iframe ";for(attr in""!=t&&(c+=' src="//www.dailymotion.com/embed/video/'+t+'?api=postMessage"'),i)/src/i.test(attr)||""!=attr&&""!=i[attr]&&(c+=" "+attr+'="'+i[attr]+'"');r+=c+=" ></iframe>";break;case"EMBED_OEMBED_IMGUR":var m="<div ";for(attr in i)/src/i.test(attr)||""!=attr&&""!=i[attr]&&(s+=" "+attr+'="'+i[attr]+'"');m+=" >",""!=t&&(m+='<img src="'+t+'" style="max-width:100% !important; max-height:100% !important; width:auto; height:auto !important;">'),r+=m+="</div>"}return r}function wdi_testBrowser_cssTransitions(){return wdi_testDom("Transition")}function wdi_testBrowser_cssTransforms3d(){return wdi_testDom("Perspective")}function wdi_testDom(e){for(var t=["","Webkit","Moz","ms","O","Khtml"],i=t.length;i--;)if(void 0!==document.body.style[t[i]+e])return!0;return!1}function wdi_cube(e,t,i,a,r,n,d,o,s,_){if(!wdi_testBrowser_cssTransitions())return wdi_fallback(o,s,_);if(!wdi_testBrowser_cssTransforms3d())return wdi_fallback3d(o,s,_);wdi_trans_in_progress=!0,jQuery(".wdi_filmstrip_thumbnail").removeClass("wdi_thumb_active").addClass("wdi_thumb_deactive"),jQuery("#wdi_filmstrip_thumbnail_"+wdi_current_key).removeClass("wdi_thumb_deactive").addClass("wdi_thumb_active"),jQuery(".wdi_slide_bg").css("perspective",1e3),jQuery(o).css({transform:"translateZ("+e+"px)",backfaceVisibility:"hidden"}),jQuery(s).css({opacity:1,filter:"Alpha(opacity=100)",backfaceVisibility:"hidden",transform:"translateY("+i+"px) translateX("+t+"px) rotateY("+r+"deg) rotateX("+a+"deg)"}),jQuery(".wdi_slider").css({transform:"translateZ(-"+e+"px)",transformStyle:"preserve-3d"}),setTimeout(function(){jQuery(".wdi_slider").css({transition:"all "+wdi_transition_duration+"ms ease-in-out",transform:"translateZ(-"+e+"px) rotateX("+n+"deg) rotateY("+d+"deg)"})},20),jQuery(".wdi_slider").one("webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend",jQuery.proxy(function(){jQuery(o).removeAttr("style"),jQuery(s).removeAttr("style"),jQuery(".wdi_slider").removeAttr("style"),jQuery(o).css({opacity:0,filter:"Alpha(opacity=0)","z-index":1}),jQuery(s).css({opacity:1,filter:"Alpha(opacity=100)","z-index":2}),wdi_trans_in_progress=!1,jQuery(o).html(""),"undefined"!=typeof event_stack&&event_stack.length>0&&(key=event_stack[0].split("-"),event_stack.shift(),wdi_change_image(key[0],key[1],wdi_data,!0));wdi_change_watermark_container()}))}function wdi_cubeH(e,t,i){var a=jQuery(e).width()/2;"right"==i?wdi_cube(a,a,0,0,90,0,-90,e,t,i):"left"==i&&wdi_cube(a,-a,0,0,-90,0,90,e,t,i)}function wdi_cubeV(e,t,i){var a=jQuery(e).height()/2;"right"==i?wdi_cube(a,0,-a,90,0,-90,0,e,t,i):"left"==i&&wdi_cube(a,0,a,-90,0,90,0,e,t,i)}function wdi_fallback(e,t,i){wdi_fade(e,t,i)}function wdi_fallback3d(e,t,i){wdi_sliceV(e,t,i)}function wdi_none(e,t,i){jQuery(e).css({opacity:0,"z-index":1}),jQuery(t).css({opacity:1,"z-index":2}),jQuery(".wdi_filmstrip_thumbnail").removeClass("wdi_thumb_active").addClass("wdi_thumb_deactive"),jQuery("#wdi_filmstrip_thumbnail_"+wdi_current_key).removeClass("wdi_thumb_deactive").addClass("wdi_thumb_active"),wdi_trans_in_progress=!1,jQuery(e).html(""),wdi_change_watermark_container()}function wdi_fade(e,t,i){jQuery(".wdi_filmstrip_thumbnail").removeClass("wdi_thumb_active").addClass("wdi_thumb_deactive"),jQuery("#wdi_filmstrip_thumbnail_"+wdi_current_key).removeClass("wdi_thumb_deactive").addClass("wdi_thumb_active"),wdi_testBrowser_cssTransitions()?(jQuery(t).css("transition","opacity "+wdi_transition_duration+"ms linear"),jQuery(e).css({opacity:0,"z-index":1}),jQuery(t).css({opacity:1,"z-index":2}),wdi_change_watermark_container()):(jQuery(e).animate({opacity:0,"z-index":1},wdi_transition_duration),jQuery(t).animate({opacity:1,"z-index":2},{duration:wdi_transition_duration,complete:function(){wdi_trans_in_progress=!1,jQuery(e).html(""),wdi_change_watermark_container()}}),jQuery(e).fadeTo(wdi_transition_duration,0),jQuery(t).fadeTo(wdi_transition_duration,1))}function wdi_grid(e,t,i,a,r,n,d,o,s,_){if(!wdi_testBrowser_cssTransitions())return wdi_fallback(o,s,_);wdi_trans_in_progress=!0,jQuery(".wdi_filmstrip_thumbnail").removeClass("wdi_thumb_active").addClass("wdi_thumb_deactive"),jQuery("#wdi_filmstrip_thumbnail_"+wdi_current_key).removeClass("wdi_thumb_deactive").addClass("wdi_thumb_active");var c=wdi_transition_duration/(e+t);function m(e,t,i,a,r,n,d,o,s,_,m){var l=(_+m)*c;return jQuery('<span class="wdi_gridlet" />').css({display:"block",width:e,height:t,top:i,left:r,backgroundImage:'url("'+d+'")',backgroundColor:jQuery(".wdi_spider_popup_wrap").css("background-color"),backgroundRepeat:"no-repeat",backgroundPosition:n+"px "+a+"px",backgroundSize:o+"px "+s+"px",transition:"all "+wdi_transition_duration+"ms ease-in-out "+l+"ms",transform:"none"})}var l=jQuery(o).find("img"),u=jQuery('<span style="display: block;" />').addClass("wdi_grid");jQuery(o).prepend(u);var p=jQuery(".wdi_slide_bg"),w=l.width(),h=l.height(),f=p.width(),g=p.height(),y=Math.floor(f/e),v=Math.floor(g/t),b=f-e*y,j=Math.ceil(b/e),Q=g-t*v,k=Math.ceil(Q/t),x=0,E=Math.ceil((jQuery(".wdi_slide_bg").width()-l.width())/2),C=void 0===l.attr("src")?"":l.attr("src");a="min-auto"===(a="auto"===a?f:a)?-f:a,r="min-auto"===(r="auto"===r?g:r)?-g:r;for(var M=0;M<e;M++){var I=0,B=Math.floor((jQuery(".wdi_slide_bg").height()-l.height())/2),D=y;if(b>0){var O=b>=j?j:b;D+=O,b-=O}for(var A=0;A<t;A++){var T=v,z=Q;z>0&&(T+=O=z>=k?k:Q,z-=O),u.append(m(D,T,I,B,x,E,C,w,h,M,A)),I+=T,B-=T}E-=D,x+=D}var S=u.children().last();u.show(),l.css("opacity",0),u.children().first().addClass("rs-top-left"),u.children().last().addClass("rs-bottom-right"),u.children().eq(t-1).addClass("rs-bottom-left"),u.children().eq(-t).addClass("rs-top-right"),setTimeout(function(){u.children().css({opacity:d,transform:"rotate("+i+"deg) translateX("+a+"px) translateY("+r+"px) scale("+n+")"})},1),jQuery(s).css("opacity",1),jQuery(S).one("webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend",jQuery.proxy(function(){jQuery(o).css({opacity:0,"z-index":1}),jQuery(s).css({opacity:1,"z-index":2}),l.css("opacity",1),u.remove(),wdi_trans_in_progress=!1,jQuery(o).html(""),"undefined"!=typeof event_stack&&event_stack.length>0&&(key=event_stack[0].split("-"),event_stack.shift(),wdi_change_image(key[0],key[1],wdi_data,!0));wdi_change_watermark_container()}))}function wdi_sliceH(e,t,i){if("right"==i)var a="min-auto";else if("left"==i)a="auto";wdi_grid(1,8,0,a,0,1,0,e,t,i)}function wdi_sliceV(e,t,i){if("right"==i)var a="min-auto";else if("left"==i)a="auto";wdi_grid(10,1,0,0,a,1,0,e,t,i)}function wdi_slideV(e,t,i){if("right"==i)var a="auto";else if("left"==i)a="min-auto";wdi_grid(1,1,0,0,a,1,1,e,t,i)}function wdi_slideH(e,t,i){if("right"==i)var a="min-auto";else if("left"==i)a="auto";wdi_grid(1,1,0,a,0,1,1,e,t,i)}function wdi_scaleOut(e,t,i){wdi_grid(1,1,0,0,0,1.5,0,e,t,i)}function wdi_scaleIn(e,t,i){wdi_grid(1,1,0,0,0,.5,0,e,t,i)}function wdi_blockScale(e,t,i){wdi_grid(8,6,0,0,0,.6,0,e,t,i)}function wdi_kaleidoscope(e,t,i){wdi_grid(10,8,0,0,0,1,0,e,t,i)}function wdi_fan(e,t,i){if("right"==i)var a=45,r=100;else if("left"==i)a=-45,r=-100;wdi_grid(1,10,a,r,0,1,0,e,t,i)}function wdi_blindV(e,t,i){wdi_grid(1,8,0,0,0,.7,0,e,t)}function wdi_blindH(e,t,i){wdi_grid(10,1,0,0,0,.7,0,e,t)}function wdi_random(e,t,i){var a=["sliceH","sliceV","slideH","slideV","scaleOut","scaleIn","blockScale","kaleidoscope","fan","blindH","blindV"];this["wdi_"+a[Math.floor(Math.random()*a.length)]](e,t,i)}function wdi_pause_stream(e){jQuery(e).find("video").each(function(){jQuery(this).get(0).pause()})}function wdi_reset_zoom(){var e=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()),t=document.querySelector('meta[name="viewport"]');e&&t&&(t.content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=0")}Object.size=function(e){var t,i=0;for(t in e)e.hasOwnProperty(t)&&i++;return i},wdi_comments_manager={media_id:"",mediaComments:[],load_more_count:10,commentCounter:0,currentKey:-1,init:function(e){this.instagram=new WDIInstagram,this.instagram.addToken(wdi_front.access_token),this.currentKey!=e&&(this.currentKey=e,this.reset_comments())},reset_comments:function(){jQuery("#wdi_load_more_comments").remove(),jQuery("#wdi_added_comments").html(""),this.commentCounter=0,this.media_id=wdi_data[this.currentKey].id,this.getAjaxComments(this.currentKey)},popup_destroyed:function(){this.media_id="",this.mediaComments=[],this.commentCounter=0,this.currentKey=-1},showComments:function(e,t){(Object.size(e)-this.commentCounter-t<0||void 0===t)&&(t=Object.size(e)-this.commentCounter);var a=this.commentCounter;for(i=Object.size(e)-a-1;i>=Object.size(e)-a-t;i--){this.commentCounter++;var r=e[i].text;r=wdi_front.escape_tags(r),r=this.filterCommentText(r);var n=e[i].from.username,d=(e[i].from.profile_picture,jQuery('<div class="wdi_single_comment"></div>'));d.append(jQuery('<p class="wdi_comment_header_p"><span class="wdi_comment_header"><a target="_blank" href="//instagram.com/'+n+'">'+n+'</a></span><span class="wdi_comment_date">'+wdi_front.convertUnixDate(e[i].created_time)+"</span></p>")),d.append(jQuery('<div class="wdi_comment_body_p"><span class="wdi_comment_body"><p>'+r+"</p></span></div>")),jQuery("#wdi_added_comments").prepend(d)}this.updateScrollbar()},updateScrollbar:function(){var e=jQuery("#wdi_comments"),t=jQuery("#wdi_added_comments");jQuery(".wdi_comments").attr("class","wdi_comments"),jQuery(".wdi_comments").html(""),jQuery(".wdi_comments").append(e),jQuery(".wdi_comments").append(t),jQuery(".wdi_comments_close_btn").on("click",wdi_comment)},getAjaxComments:function(){this.instagram.getRecentMediaComments(this.media_id,{success:function(e){if(""==e||null==e||null==e)return errorMessage="Network Error, please try again later :(",void console.log("%c"+errorMessage,"color:#cc0000;");if(200!=e.meta.code)return errorMessage=e.meta.error_message,void console.log("%c"+errorMessage,"color:#cc0000;");wdi_comments_manager.mediaComments=e.data;var t=wdi_data[wdi_comments_manager.currentKey];t.comments_data=e.data,wdi_comments_manager.showComments(t.comments_data,wdi_comments_manager.load_more_count),wdi_comments_manager.ajax_comments_ready(e.data)}})},ajax_comments_ready:function(e){this.createLoadMoreAndBindEvent()},createLoadMoreAndBindEvent:function(){jQuery("#wdi_added_comments").prepend(jQuery('<p id="wdi_load_more_comments" class="wdi_load_more_comments">load more comments</p>')),jQuery(".wdi_comment_container #wdi_load_more_comments").on("click",function(){jQuery(this).remove(),wdi_comments_manager.showComments(wdi_comments_manager.mediaComments,wdi_comments_manager.load_more_count),wdi_comments_manager.createLoadMoreAndBindEvent()})},filterCommentText:function(e){for(var t=e.split(" "),i="",a=0;a<t.length;a++)switch(t[a][0]){case"@":i+='<a target="blank" class="wdi_comm_text_link" href="//instagram.com/'+t[a].substring(1,t[a].length)+'">'+t[a]+"</a> ";break;case"#":i+='<a target="blank" class="wdi_comm_text_link" href="//instagram.com/explore/tags/'+t[a].substring(1,t[a].length)+'">'+t[a]+"</a> ";break;default:i+=t[a]+" "}return i=i.substring(0,i.length-1)}};
|
js/wdi_admin.js
CHANGED
@@ -21,7 +21,7 @@ jQuery(document).ready(function() {
|
|
21 |
});
|
22 |
|
23 |
});
|
24 |
-
|
25 |
jQuery('#wdi_ask_question').parent().attr('target','_blank');
|
26 |
|
27 |
/*Feeds page*/
|
21 |
});
|
22 |
|
23 |
});
|
24 |
+
|
25 |
jQuery('#wdi_ask_question').parent().attr('target','_blank');
|
26 |
|
27 |
/*Feeds page*/
|
js/wdi_frontend.js
CHANGED
@@ -1518,7 +1518,7 @@ wdi_front.getPhotoTemplate = function (currentFeed)
|
|
1518 |
var pagination = '';
|
1519 |
var onclick = '';
|
1520 |
var overlayCustomClass = '';
|
1521 |
-
var thumbClass = '
|
1522 |
var showUsernameOnThumb = '';
|
1523 |
if (currentFeed.feed_row.feed_type == 'blog_style' || currentFeed.feed_row.feed_type == 'image_browser') {
|
1524 |
thumbClass = '';
|
@@ -1595,7 +1595,7 @@ wdi_front.getPhotoTemplate = function (currentFeed)
|
|
1595 |
'<div class="wdi_photo_overlay ' + overlayCustomClass + '" >' + showUsernameOnThumb +
|
1596 |
'<div class="wdi_thumb_icon" ' + onclick + ' style="display:table;width:100%;height:100%;">' +
|
1597 |
'<div style="display:table-cell;vertical-align:middle;text-align:center;color:white;">' +
|
1598 |
-
'<i class="
|
1599 |
'</div>' +
|
1600 |
'</div>' +
|
1601 |
'</div>' +
|
@@ -1605,10 +1605,10 @@ wdi_front.getPhotoTemplate = function (currentFeed)
|
|
1605 |
if (currentFeed['feed_row']['show_likes'] === '1' || currentFeed['feed_row']['show_comments'] === '1' || currentFeed['feed_row']['show_description'] === '1') {
|
1606 |
source += '<div class="wdi_photo_meta">';
|
1607 |
if (currentFeed['feed_row']['show_likes'] === '1') {
|
1608 |
-
source += '<div class="wdi_thumb_likes"><i class="
|
1609 |
}
|
1610 |
if (currentFeed['feed_row']['show_comments'] === '1') {
|
1611 |
-
source += '<div class="wdi_thumb_comments"><i class="
|
1612 |
}
|
1613 |
source += '<div class="wdi_clear"></div>';
|
1614 |
if (currentFeed['feed_row']['show_description'] === '1') {
|
@@ -1635,7 +1635,7 @@ wdi_front.getSliderTemplate = function (currentFeed)
|
|
1635 |
var pagination = '';
|
1636 |
var onclick = '';
|
1637 |
var overlayCustomClass = '';
|
1638 |
-
var thumbClass = '
|
1639 |
var showUsernameOnThumb = '';
|
1640 |
if (currentFeed.feed_row.feed_type == 'blog_style' || currentFeed.feed_row.feed_type == 'image_browser') {
|
1641 |
thumbClass = '';
|
@@ -1684,7 +1684,7 @@ wdi_front.getSliderTemplate = function (currentFeed)
|
|
1684 |
{
|
1685 |
onclick = 'onclick="window.open (\'<%= link%>\',\'_blank\')"';
|
1686 |
overlayCustomClass = 'wdi_hover_off';
|
1687 |
-
thumbClass = '
|
1688 |
break;
|
1689 |
}
|
1690 |
case 'custom_redirect':
|
@@ -1712,7 +1712,7 @@ wdi_front.getSliderTemplate = function (currentFeed)
|
|
1712 |
'<div class="wdi_photo_overlay ' + overlayCustomClass + '" >' + showUsernameOnThumb +
|
1713 |
'<div class="wdi_thumb_icon" ' + onclick + ' style="display:table;width:100%;height:100%;">' +
|
1714 |
'<div style="display:table-cell;vertical-align:middle;text-align:center;color:white;">' +
|
1715 |
-
'<i class="
|
1716 |
'</div>' +
|
1717 |
'</div>' +
|
1718 |
'</div>' +
|
@@ -1722,10 +1722,10 @@ wdi_front.getSliderTemplate = function (currentFeed)
|
|
1722 |
if (currentFeed['feed_row']['show_likes'] === '1' || currentFeed['feed_row']['show_comments'] === '1' || currentFeed['feed_row']['show_description'] === '1') {
|
1723 |
source += '<div class="wdi_photo_meta">';
|
1724 |
if (currentFeed['feed_row']['show_likes'] === '1') {
|
1725 |
-
source += '<div class="wdi_thumb_likes"><i class="
|
1726 |
}
|
1727 |
if (currentFeed['feed_row']['show_comments'] === '1') {
|
1728 |
-
source += '<div class="wdi_thumb_comments"><i class="
|
1729 |
}
|
1730 |
source += '<div class="wdi_clear"></div>';
|
1731 |
if (currentFeed['feed_row']['show_description'] === '1') {
|
@@ -1760,7 +1760,7 @@ wdi_front.getVideoTemplate = function (currentFeed)
|
|
1760 |
var page = wdi_front.setPage(currentFeed);
|
1761 |
var customClass = '';
|
1762 |
var pagination = '';
|
1763 |
-
var thumbClass = '
|
1764 |
var onclick = '';
|
1765 |
var overlayCustomClass = '';
|
1766 |
var sourceAttr;
|
@@ -1808,7 +1808,7 @@ wdi_front.getVideoTemplate = function (currentFeed)
|
|
1808 |
{
|
1809 |
onclick = 'onclick="window.open (\'<%= link%>\',\'_blank\')"';
|
1810 |
overlayCustomClass = 'wdi_hover_off';
|
1811 |
-
thumbClass = '
|
1812 |
break;
|
1813 |
}
|
1814 |
case 'custom_redirect':
|
@@ -1825,7 +1825,7 @@ wdi_front.getVideoTemplate = function (currentFeed)
|
|
1825 |
if (currentFeed.feed_row.feed_type == 'blog_style' || currentFeed.feed_row.feed_type == 'image_browser') {
|
1826 |
onclick = "onclick=wdi_front.replaceToVideo('<%= video_url%>','<%= wdi_index%>'," + currentFeed.feed_row.wdi_feed_counter + ")";
|
1827 |
overlayCustomClass = '';
|
1828 |
-
thumbClass = '
|
1829 |
}
|
1830 |
}
|
1831 |
}
|
@@ -1840,7 +1840,7 @@ wdi_front.getVideoTemplate = function (currentFeed)
|
|
1840 |
'<div class="wdi_photo_overlay ' + overlayCustomClass + '" ' + onclick + '>' + showUsernameOnThumb +
|
1841 |
'<div class="wdi_thumb_icon" style="display:table;width:100%;height:100%;">' +
|
1842 |
'<div style="display:table-cell;vertical-align:middle;text-align:center;color:white;">' +
|
1843 |
-
'<i class="
|
1844 |
'</div>' +
|
1845 |
'</div>' +
|
1846 |
'</div>' +
|
@@ -1850,10 +1850,10 @@ wdi_front.getVideoTemplate = function (currentFeed)
|
|
1850 |
if (currentFeed['feed_row']['show_likes'] === '1' || currentFeed['feed_row']['show_comments'] === '1' || currentFeed['feed_row']['show_description'] === '1') {
|
1851 |
source += '<div class="wdi_photo_meta">';
|
1852 |
if (currentFeed['feed_row']['show_likes'] === '1') {
|
1853 |
-
source += '<div class="wdi_thumb_likes"><i class="
|
1854 |
}
|
1855 |
if (currentFeed['feed_row']['show_comments'] === '1') {
|
1856 |
-
source += '<div class="wdi_thumb_comments"><i class="
|
1857 |
}
|
1858 |
source += '<div class="wdi_clear"></div>';
|
1859 |
if (currentFeed['feed_row']['show_description'] === '1') {
|
@@ -2703,7 +2703,7 @@ wdi_front.getUserTemplate = function (currentFeed, username)
|
|
2703 |
if (usersCount > 1) {
|
2704 |
source += '<div title="' + wdi_front_messages.filter_title + '" class="wdi_filter_overlay">' +
|
2705 |
'<div class="wdi_filter_icon">' +
|
2706 |
-
'<span onclick="wdi_front.addFilter(<%=user_index%>,<%=feed_counter%>);" class="
|
2707 |
'</div>' +
|
2708 |
'</div>';
|
2709 |
}
|
@@ -2717,14 +2717,14 @@ wdi_front.getUserTemplate = function (currentFeed, username)
|
|
2717 |
'</div>';
|
2718 |
}
|
2719 |
source += '<div class="wdi_media_info">' +
|
2720 |
-
'<p class="wdi_posts"><span class="
|
2721 |
-
'<p class="wdi_followers"><span class="
|
2722 |
'</div>';
|
2723 |
} else {
|
2724 |
source += '<div class="wdi_user_controls">' +
|
2725 |
'</div>' +
|
2726 |
'<div class="wdi_media_info">' +
|
2727 |
-
'<p class="wdi_posts"><span class="
|
2728 |
'<p class="wdi_followers"><span></span></p>' +
|
2729 |
'</div>';
|
2730 |
}
|
@@ -3833,15 +3833,6 @@ else {
|
|
3833 |
}
|
3834 |
|
3835 |
|
3836 |
-
jQuery(document).ready(function () {
|
3837 |
-
|
3838 |
-
setTimeout(function(){
|
3839 |
-
if(wdi_front_messages.show_alerts === '1' && jQuery('.wdi_check_fontawesome .fa-instagram').prop("tagName") !== 'I'){
|
3840 |
-
console.log('Font Awesome is not loaded properly. Please ask for support https://wordpress.org/support/plugin/wd-instagram-feed/');
|
3841 |
-
}
|
3842 |
-
}, 2000);
|
3843 |
-
|
3844 |
-
});
|
3845 |
function wdi_extractHostname(url) {
|
3846 |
if(typeof url === "undefined" || url===""){
|
3847 |
return "";
|
1518 |
var pagination = '';
|
1519 |
var onclick = '';
|
1520 |
var overlayCustomClass = '';
|
1521 |
+
var thumbClass = 'tenweb-i-arrows-out';
|
1522 |
var showUsernameOnThumb = '';
|
1523 |
if (currentFeed.feed_row.feed_type == 'blog_style' || currentFeed.feed_row.feed_type == 'image_browser') {
|
1524 |
thumbClass = '';
|
1595 |
'<div class="wdi_photo_overlay ' + overlayCustomClass + '" >' + showUsernameOnThumb +
|
1596 |
'<div class="wdi_thumb_icon" ' + onclick + ' style="display:table;width:100%;height:100%;">' +
|
1597 |
'<div style="display:table-cell;vertical-align:middle;text-align:center;color:white;">' +
|
1598 |
+
'<i class="tenweb-i ' + thumbClass + '"></i>' +
|
1599 |
'</div>' +
|
1600 |
'</div>' +
|
1601 |
'</div>' +
|
1605 |
if (currentFeed['feed_row']['show_likes'] === '1' || currentFeed['feed_row']['show_comments'] === '1' || currentFeed['feed_row']['show_description'] === '1') {
|
1606 |
source += '<div class="wdi_photo_meta">';
|
1607 |
if (currentFeed['feed_row']['show_likes'] === '1') {
|
1608 |
+
source += '<div class="wdi_thumb_likes"><i class="tenweb-i tenweb-i-heart-o"> <%= likes%></i></div>';
|
1609 |
}
|
1610 |
if (currentFeed['feed_row']['show_comments'] === '1') {
|
1611 |
+
source += '<div class="wdi_thumb_comments"><i class="tenweb-i tenweb-i-comment-square"> <%= comments%></i></div>';
|
1612 |
}
|
1613 |
source += '<div class="wdi_clear"></div>';
|
1614 |
if (currentFeed['feed_row']['show_description'] === '1') {
|
1635 |
var pagination = '';
|
1636 |
var onclick = '';
|
1637 |
var overlayCustomClass = '';
|
1638 |
+
var thumbClass = 'tenweb-i-clone';
|
1639 |
var showUsernameOnThumb = '';
|
1640 |
if (currentFeed.feed_row.feed_type == 'blog_style' || currentFeed.feed_row.feed_type == 'image_browser') {
|
1641 |
thumbClass = '';
|
1684 |
{
|
1685 |
onclick = 'onclick="window.open (\'<%= link%>\',\'_blank\')"';
|
1686 |
overlayCustomClass = 'wdi_hover_off';
|
1687 |
+
thumbClass = 'tenweb-i-clone';
|
1688 |
break;
|
1689 |
}
|
1690 |
case 'custom_redirect':
|
1712 |
'<div class="wdi_photo_overlay ' + overlayCustomClass + '" >' + showUsernameOnThumb +
|
1713 |
'<div class="wdi_thumb_icon" ' + onclick + ' style="display:table;width:100%;height:100%;">' +
|
1714 |
'<div style="display:table-cell;vertical-align:middle;text-align:center;color:white;">' +
|
1715 |
+
'<i class="tenweb-i ' + thumbClass + '"></i>' +
|
1716 |
'</div>' +
|
1717 |
'</div>' +
|
1718 |
'</div>' +
|
1722 |
if (currentFeed['feed_row']['show_likes'] === '1' || currentFeed['feed_row']['show_comments'] === '1' || currentFeed['feed_row']['show_description'] === '1') {
|
1723 |
source += '<div class="wdi_photo_meta">';
|
1724 |
if (currentFeed['feed_row']['show_likes'] === '1') {
|
1725 |
+
source += '<div class="wdi_thumb_likes"><i class="tenweb-i tenweb-i-heart-o"> <%= likes%></i></div>';
|
1726 |
}
|
1727 |
if (currentFeed['feed_row']['show_comments'] === '1') {
|
1728 |
+
source += '<div class="wdi_thumb_comments"><i class="tenweb-i tenweb-i-comment-square"> <%= comments%></i></div>';
|
1729 |
}
|
1730 |
source += '<div class="wdi_clear"></div>';
|
1731 |
if (currentFeed['feed_row']['show_description'] === '1') {
|
1760 |
var page = wdi_front.setPage(currentFeed);
|
1761 |
var customClass = '';
|
1762 |
var pagination = '';
|
1763 |
+
var thumbClass = 'tenweb-i-play';
|
1764 |
var onclick = '';
|
1765 |
var overlayCustomClass = '';
|
1766 |
var sourceAttr;
|
1808 |
{
|
1809 |
onclick = 'onclick="window.open (\'<%= link%>\',\'_blank\')"';
|
1810 |
overlayCustomClass = 'wdi_hover_off';
|
1811 |
+
thumbClass = 'tenweb-i-play';
|
1812 |
break;
|
1813 |
}
|
1814 |
case 'custom_redirect':
|
1825 |
if (currentFeed.feed_row.feed_type == 'blog_style' || currentFeed.feed_row.feed_type == 'image_browser') {
|
1826 |
onclick = "onclick=wdi_front.replaceToVideo('<%= video_url%>','<%= wdi_index%>'," + currentFeed.feed_row.wdi_feed_counter + ")";
|
1827 |
overlayCustomClass = '';
|
1828 |
+
thumbClass = 'tenweb-i-play';
|
1829 |
}
|
1830 |
}
|
1831 |
}
|
1840 |
'<div class="wdi_photo_overlay ' + overlayCustomClass + '" ' + onclick + '>' + showUsernameOnThumb +
|
1841 |
'<div class="wdi_thumb_icon" style="display:table;width:100%;height:100%;">' +
|
1842 |
'<div style="display:table-cell;vertical-align:middle;text-align:center;color:white;">' +
|
1843 |
+
'<i class="tenweb-i ' + thumbClass + '"></i>' +
|
1844 |
'</div>' +
|
1845 |
'</div>' +
|
1846 |
'</div>' +
|
1850 |
if (currentFeed['feed_row']['show_likes'] === '1' || currentFeed['feed_row']['show_comments'] === '1' || currentFeed['feed_row']['show_description'] === '1') {
|
1851 |
source += '<div class="wdi_photo_meta">';
|
1852 |
if (currentFeed['feed_row']['show_likes'] === '1') {
|
1853 |
+
source += '<div class="wdi_thumb_likes"><i class="tenweb-i tenweb-i-heart-o"> <%= likes%></i></div>';
|
1854 |
}
|
1855 |
if (currentFeed['feed_row']['show_comments'] === '1') {
|
1856 |
+
source += '<div class="wdi_thumb_comments"><i class="tenweb-i tenweb-i-comment-square"> <%= comments%></i></div>';
|
1857 |
}
|
1858 |
source += '<div class="wdi_clear"></div>';
|
1859 |
if (currentFeed['feed_row']['show_description'] === '1') {
|
2703 |
if (usersCount > 1) {
|
2704 |
source += '<div title="' + wdi_front_messages.filter_title + '" class="wdi_filter_overlay">' +
|
2705 |
'<div class="wdi_filter_icon">' +
|
2706 |
+
'<span onclick="wdi_front.addFilter(<%=user_index%>,<%=feed_counter%>);" class="tenweb-i tenweb-i-filter"></span>' +
|
2707 |
'</div>' +
|
2708 |
'</div>';
|
2709 |
}
|
2717 |
'</div>';
|
2718 |
}
|
2719 |
source += '<div class="wdi_media_info">' +
|
2720 |
+
'<p class="wdi_posts"><span class="tenweb-i tenweb-i-camera-retro"></span><%= counts.media%></p>' +
|
2721 |
+
'<p class="wdi_followers"><span class="tenweb-i tenweb-i-user"></span><%= counts.followed_by%></p>' +
|
2722 |
'</div>';
|
2723 |
} else {
|
2724 |
source += '<div class="wdi_user_controls">' +
|
2725 |
'</div>' +
|
2726 |
'<div class="wdi_media_info">' +
|
2727 |
+
'<p class="wdi_posts"><span class="tenweb-i tenweb-i-camera-retro"></span><%= counts.media%></p>' +
|
2728 |
'<p class="wdi_followers"><span></span></p>' +
|
2729 |
'</div>';
|
2730 |
}
|
3833 |
}
|
3834 |
|
3835 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3836 |
function wdi_extractHostname(url) {
|
3837 |
if(typeof url === "undefined" || url===""){
|
3838 |
return "";
|
js/wdi_frontend.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
if(typeof wdi_front=="undefined"){wdi_front={type:"not_declared"}}wdi_front.detectEvent=function(){var a=(/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));if(a){return"touchend"}else{return"click"}};var wdi_error_show=false;wdi_front.escape_tags=function(e){var b=/</g,c=/>/g,d=/'/g,a=/"/g;if(typeof e=="undefined"){e=""}e=e.toString().replace(b,"<").replace(c,">").replace(d,"'").replace(a,""");return e};wdi_front.show_alert=function(e,b,f){f=jQuery("#wdi_feed_"+f.feed_row.wdi_feed_counter);if(b.meta["code"]===400&&b.meta["error_type"]==="APINotAllowedError"){if(typeof b.wdi_current_feed_name!="undefined"){var a=b.wdi_current_feed_name;var d=f.find(".wdi_private_feed_names");d.html(a);f.find(".wdi_private_feed_error").removeClass("wdi_hidden")}f.find(".wdi_spinner").remove()}if(typeof f!="undefined"&&b.meta["error_type"]!="APINotAllowedError"){f.find(".wdi_spinner").remove();wdi_error_show=true;var c=f.find(".wdi_js_error");var g=f.find(".wdi_token_error");if(b!=false&&typeof b.meta!=undefined&&b.meta.error_type==="OAuthAccessTokenException"){g.removeClass("wdi_hidden");if(wdi_front_messages.wdi_token_error_flag!="1"){jQuery.ajax({type:"POST",url:wdi_url.ajax_url,dataType:"json",data:{action:"wdi_token_flag",wdi_token_flag_nonce:wdi_front_messages.wdi_token_flag_nonce},success:function(h){}})}}else{c.removeClass("wdi_js_error");c.addClass("wdi_js_error_no_animate");jQuery(".wdi_js_error_no_animate").show()}if(wdi_front_messages.show_alerts){}else{console.log("%c"+e,"color:#cc0000;")}}wdi_error_show=true};wdi_front.globalInit=function(){var a=wdi_front.feed_counter;if(typeof wdi_ajax.ajax_response!="undefined"){var c=wdi_feed_counter_init.wdi_feed_counter_init}else{var c=0}for(var b=c;b<=a;b++){if(jQuery("#wdi_feed_"+b).length===0){continue}var d=new WDIFeed(window["wdi_feed_"+b]);d.instagram=new WDIInstagram();d.instagram.filterArguments={feed:d};d.instagram.filters=[{where:"getUserRecentMedia",what:function(f,g,e){return g.feed.conditionalFilter(f,e)}},{where:"getTagRecentMedia",what:function(f,g,e){return g.feed.conditionalFilter(f,e)}},{where:"getRecentLikedMedia",what:function(f,g,e){return g.feed.conditionalFilter(f,e)}},{where:"requestByUrl",what:function(f,g,e){return g.feed.conditionalFilter(f,e)}}];d.instagram.addToken(d.feed_row["access_token"]);wdi_front.access_token=d.feed_row["access_token"];d.dataStorageRaw=[];d.dataStorage=[];d.dataStorageList=[];d.allResponseLength=0;d.currentResponseLength=0;d.temproraryUsersData=[];d.removedUsers=0;d.nowLoadingImages=true;d.imageIndex=0;d.resIndex=0;d.currentPage=1;d.userSortFlags=[];d.customFilterChanged=false;d.maxConditionalFiltersRequestCount=10;d.instagramRequestCounter=0;d.mediaRequestsDone=false;d.conditionalFilterBuffer=[];d.stopInfiniteScrollFlag=false;if(d.feed_row.feed_type=="masonry"){d.displayedData=[]}if(d.feed_row.feed_display_view=="pagination"){d.feed_row.resort_after_load_more=0;if(d.feed_row.feed_type!="image_browser"){d.feed_row.load_more_number=parseInt(d.feed_row.pagination_per_page_number);d.feed_row.number_of_photos=(1+parseInt(d.feed_row.pagination_preload_number))*d.feed_row.load_more_number}else{d.feed_row.number_of_photos=1+parseInt(d.feed_row.image_browser_preload_number);d.feed_row.load_more_number=parseInt(d.feed_row.image_browser_load_number)}d.freeSpaces=(Math.floor(d.feed_row.pagination_per_page_number/d.feed_row.number_of_columns)+1)*d.feed_row.number_of_columns-d.feed_row.pagination_per_page_number}else{d.freeSpaces=0}d.galleryBox=function(e){wdi_spider_createpopup(wdi_url.ajax_url+"?gallery_id="+this.feed_row.id+"&image_id="+e,this.feed_row.wdi_feed_counter,this.feed_row.lightbox_width,this.feed_row.lightbox_height,1,"testpopup",5,this,e)};wdi_responsive.columnControl(d);if(d.feed_row.feed_type=="masonry"){jQuery(window).trigger("resize")}wdi_front.bindEvents(d);window["wdi_feed_"+b]=d;wdi_front.init(d)}};wdi_front.init=function(d){jQuery(".wdi_js_error").hide();d.photoCounter=d.feed_row.number_of_photos;if(d.feed_row.liked_feed=="liked"){d.feed_users=["self"]}else{if(wdi_front.isJsonString(d.feed_row.feed_users)){d.feed_users=JSON.parse(d.feed_row.feed_users)}else{wdi_front.show_alert(wdi_front_messages.invalid_users_format,false,d);return}}var e=[];if(typeof window.wdi_all_tags!=="undefined"){e=window.wdi_all_tags}for(var a=0;a<d.feed_users.length;a++){if(d.feed_users[a].username[0]==="#"&&typeof d.feed_users[a].tag_id!=="undefined"){e[d.feed_users[a].tag_id]=d.feed_users[a]}}window.wdi_all_tags=e;d.dataCount=d.feed_users.length;var b=wdi_front.getFeedItemResolution(d);d.feedImageResolution=b.image;d.feedVideoResolution=b.video;for(var c=0;c<d.dataCount;c++){wdi_front.instagramRequest(c,d)}if(d.feed_row.number_of_photos>0){wdi_front.ajaxLoader(d)}if(d.feed_row["display_header"]==="1"){wdi_front.show("header",d)}if(d.feed_row["show_usernames"]==="1"){wdi_front.show("users",d)}};wdi_front.getFeedItemResolution=function(g){var d={image:"standard_resolution",video:"standard_resolution"};if(g.feed_row.feed_resolution==="thumbnail"){return{image:"thumbnail",video:"low_bandwidth"}}else{if(g.feed_row.feed_resolution==="low"){return{image:"low_resolution",video:"low_resolution"}}else{if(g.feed_row.feed_resolution==="standard"){return{image:"standard_resolution",video:"standard_resolution"}}}}var c=jQuery("#wdi_feed_"+g.feed_row.wdi_feed_counter).find(".wdi_feed_wrapper");c.append('<div class="wdi_feed_item" id="wdi_feed_item_example"></div>');wdi_responsive.columnControl(g,1);var b=c.attr("wdi-res").split("wdi_col_");c.find("#wdi_feed_item_example").remove();if(b.length!==2){return d}var a=parseInt(b[1]);if(a<=0){return d}var f=(c.width()/a)-10;var e=d;if(f<=150){e.image="thumbnail";e.video="low_bandwidth"}else{if(f>150&&f<=320){e.image="low_resolution";e.video="low_resolution"}else{e.image="standard_resolution";e.video="standard_resolution"}}return e};wdi_front.isJsonString=function(b){try{JSON.parse(b)}catch(a){return false}return true};wdi_front.instagramRequest=function(d,b){var a=b.feed_users,c=this;if(typeof a[d]==="string"&&a[d]==="self"){b.instagram.getRecentLikedMedia({success:function(e){if(typeof e.meta!="undefined"&&typeof e.meta.error_type!="undefined"){wdi_front.show_alert(false,e,b)}b.mediaRequestsDone=true;e=c.checkMediaResponse(e,b);if(e!=false){c.saveSelfUserData(e,b)}}})}else{if(this.getInputType(a[d]["username"])=="hashtag"){b.instagram.getTagRecentMedia(this.stripHashtag(a[d]["username"]),{success:function(e){if(typeof e.meta!="undefined"&&typeof e.meta.error_type!="undefined"){wdi_front.show_alert(false,e,b)}b.mediaRequestsDone=true;e=c.checkMediaResponse(e,b);if(e!=false){c.saveUserData(e,b.feed_users[d],b)}}},null,b.feed_row.hashtag_top_recent)}else{if(this.getInputType(a[d]["username"])=="user"){b.instagram.getSelfRecentMedia({success:function(e){if(typeof e.meta!="undefined"&&typeof e.meta.error_type!="undefined"){e.wdi_current_feed_name=a[d].username;wdi_front.show_alert(false,e,b)}b.mediaRequestsDone=true;e=c.checkMediaResponse(e,b);if(e!=false){c.saveUserData(e,b.feed_users[d],b)}}})}}}};wdi_front.isHashtag=function(a){return(a[0]==="#")};wdi_front.saveUserData=function(d,a,b){d.username=a.username;d.user_id=a.id;if(d.user_id[0]==="#"){d.data=wdi_front.appendRequestHashtag(d.data,d.user_id)}b.usersData.push(d);b.currentResponseLength=wdi_front.getArrayContentLength(b.usersData,"data");b.allResponseLength+=b.currentResponseLength;if(b.dataCount==b.usersData.length){if(b.currentResponseLength<b.feed_row.number_of_photos&&!wdi_front.userHasNoPhoto(b)){wdi_front.loadMore("initial-keep",b)}else{wdi_front.displayFeed(b);wdi_front.applyFilters(b);if(!wdi_front.activeUsersCount(b)){if(b.feed_row.feed_display_view=="load_more_btn"){var c=jQuery("#wdi_feed_"+b.feed_row.wdi_feed_counter);c.find(".wdi_load_more").addClass("wdi_hidden");c.find(".wdi_spinner").addClass("wdi_hidden")}}}}};wdi_front.saveSelfUserData=function(c,a){c.username="";c.user_id="";a.usersData.push(c);a.currentResponseLength=wdi_front.getArrayContentLength(a.usersData,"data");a.allResponseLength+=a.currentResponseLength;if(a.dataCount==a.usersData.length){if(a.currentResponseLength<a.feed_row.number_of_photos&&!wdi_front.userHasNoPhoto(a)){wdi_front.loadMore("initial-keep",a)}else{wdi_front.displayFeed(a);wdi_front.applyFilters(a);if(!wdi_front.activeUsersCount(a)){if(a.feed_row.feed_display_view=="load_more_btn"){var b=jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter);b.find(".wdi_load_more").addClass("wdi_hidden");b.find(".wdi_spinner").addClass("wdi_hidden")}}}}};wdi_front.userHasNoPhoto=function(c,e){var a=0;var d=c.usersData;if(typeof e!="undefined"){d=e}for(var b=0;b<d.length;b++){if(typeof d[b]["pagination"]=="undefined"){d[b]["pagination"]=[]}if(c.feed_row.liked_feed==="liked"){if(typeof d[b]["pagination"]["next_max_like_id"]=="undefined"){a++}}else{if(typeof d[b]["pagination"]["next_max_id"]=="undefined"){a++}}}if(a==d.length){return 1}else{return 0}};wdi_front.appendRequestHashtag=function(c,b){for(var a=0;a<c.length;a++){c[a]["wdi_hashtag"]=b}return c};wdi_front.displayFeed=function(c,b){if(c.customFilterChanged==false){var d=wdi_front.feedSort(c,b)}var a=c.customFilterChanged;if(c.customFilterChanged==true){var d=c.customFilteredData;c.parsedData=wdi_front.parseLighboxData(c,true)}if(c.feed_row.resort_after_load_more!="1"){if(c.customFilterChanged==false){c.dataStorageList=c.dataStorageList.concat(d)}}else{if(c.customFilterChanged==false){c.dataStorageList=d}}if(c.feed_row.feed_type=="masonry"){wdi_front.masonryDisplayFeedItems(d,c)}if(c.feed_row.feed_type=="thumbnails"||c.feed_row.feed_type=="blog_style"||c.feed_row.feed_type=="image_browser"){wdi_front.displayFeedItems(d,c)}var e=wdi_front.getDataLength(c);if(e<c.photoCounter&&!a&&c.instagramRequestCounter<=c.maxConditionalFiltersRequestCount&&!wdi_front.allDataHasFinished(c)){wdi_front.loadMore("",c)}else{wdi_front.allImagesLoaded(c)}if(c.instagramRequestCounter>c.maxConditionalFiltersRequestCount){wdi_front.allImagesLoaded(c);if(d.length==0){c.stopInfiniteScrollFlag=true}}if(c.feed_row.feed_display_view=="pagination"&&c.currentPage<c.paginator){jQuery("#wdi_feed_"+c.feed_row.wdi_feed_counter).find("#wdi_last_page").removeClass("wdi_disabled")}c.instagramRequestCounter=0;c.conditionalFilterBuffer=[];wdi_front.updateUsersImages(c)};wdi_front.updateUsersImages=function(a){var b=jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter).find(".wdi_single_user .wdi_user_img_wrap img");b.each(function(){if(jQuery(this).attr("src")==wdi_url.plugin_url+"images/missing.png"||jQuery(this).attr("src")==""){if(a.feed_row.liked_feed=="liked"){return}for(var c=0;c<a.usersData.length;c++){if(a.usersData[c]["username"]==jQuery(this).parent().parent().find("h3").text()){if(a.usersData[c]["data"].length!=0){jQuery(this).attr("src",a.usersData[c]["data"][0]["images"]["thumbnail"]["url"])}}}}})};wdi_front.masonryDisplayFeedItems=function(d,h){var b=[];var p=[];if(jQuery("#wdi_feed_"+h.feed_row.wdi_feed_counter+" .wdi_feed_wrapper").length==0){return}jQuery("#wdi_feed_"+h.feed_row.wdi_feed_counter+" .wdi_masonry_column").each(function(){if(h.feed_row.resort_after_load_more==1){jQuery(this).html("");h.imageIndex=0}if(h.customFilterChanged==true){jQuery(this).html("");h.imageIndex=0}if(h.feed_row.feed_display_view=="pagination"){b.push(0)}else{b.push(jQuery(this).height())}p.push(jQuery(this))});if(h.customFilterChanged==true){h.customFilterChanged=false}for(var e=0;e<d.length;e++){h.displayedData.push(d[e]);if(d[e]["type"]=="image"){var n=wdi_front.getPhotoTemplate(h)}else{if(d[e].hasOwnProperty("videos")||d[e]["type"]=="video"){var n=wdi_front.getVideoTemplate(h)}else{var n=wdi_front.getSliderTemplate(h)}}var g=d[e];var o=wdi_front.createObject(g,h);var f=n(o);var m=wdi_front.array_min(b);var l=wdi_front.getImageResolution(d[e]);p[m.index].html(p[m.index].html()+f);b[m.index]+=p[m.index].width()*l;h.imageIndex++;if(h.feed_row.feed_display_view=="pagination"){if((e+1)%h.feed_row.pagination_per_page_number===0){h.resIndex+=h.freeSpaces+1}else{h.resIndex++}}}h.wdi_loadedImages=0;var j=false;h.wdi_load_count=e;var a=h.feed_row.wdi_feed_counter;var k=jQuery("#wdi_feed_"+a+" img.wdi_img").on("load",function(){h.wdi_loadedImages++;c();if(j===false){wdi_responsive.columnControl(h,1);j=true}});c();function c(){if(h.wdi_load_count===h.wdi_loadedImages&&h.wdi_loadedImages!=0){h.loadedImages=0;h.wdi_load_count=0;wdi_front.allImagesLoaded(h)}}if(h.paginatorNextFlag==true){wdi_front.updatePagination(h,"next")}h.infiniteScrollFlag=false};wdi_front.getImageResolution=function(c){var d=c.images["standard_resolution"]["width"];var b=c.images["standard_resolution"]["height"];var a=b/d;return a};wdi_front.getDataLength=function(b,d){var c=0;if(typeof d==="undefined"){for(var a=0;a<b.dataStorage.length;a++){c+=b.dataStorage[a].length}}else{for(var a=0;a<d.length;a++){c+=d[a].length}}return c};wdi_front.getArrayContentLength=function(d,c){var b=0;for(var a=0;a<d.length;a++){if(d[a]["finished"]=="finished"){continue}b+=d[a][c].length}return b};wdi_front.displayFeedItems=function(d,j){if(jQuery("#wdi_feed_"+j.feed_row.wdi_feed_counter+" .wdi_feed_wrapper").length==0){return}var a=j.feed_row.wdi_feed_counter;var l=jQuery("#wdi_feed_"+a+" .wdi_feed_wrapper");if(j.feed_row.resort_after_load_more==="1"){l.html("");j.imageIndex=0}if(j.customFilterChanged==true){l.html("");j.imageIndex=0;j.customFilterChanged=false}var g=wdi_front.getImgCount(j)-d.length-1;if(j.feed_row.feed_display_view=="pagination"){var b=j.feed_row.load_more_number;if(j.feed_row.feed_type=="image_browser"){b=1}if(jQuery("#wdi_feed_"+j.feed_row.wdi_feed_counter+' [wdi_page="'+(j.currentPage-1)+'"]').length<b||d.length==0){j.currentPage=(--j.currentPage<=1)?1:j.currentPage}}for(var e=0;e<d.length;e++){if(d[e]["type"]=="image"){var m=wdi_front.getPhotoTemplate(j)}else{if(d[e].hasOwnProperty("videos")){var m=wdi_front.getVideoTemplate(j)}else{var m=wdi_front.getSliderTemplate(j)}}var h=d[e];var n=wdi_front.createObject(h,j);var f=m(n);l.html(l.html()+f);j.imageIndex++;if(j.feed_row.feed_display_view=="pagination"){if((e+1)%j.feed_row.pagination_per_page_number===0){j.resIndex+=j.freeSpaces+1}else{j.resIndex++}}}j.wdi_loadedImages=0;var k=false;j.wdi_load_count=e;var a=j.feed_row.wdi_feed_counter;var l=jQuery("#wdi_feed_"+a+" img.wdi_img").on("load",function(){j.wdi_loadedImages++;c();if(k===false){wdi_responsive.columnControl(j,1);k=true}});function c(){if(j.wdi_load_count===j.wdi_loadedImages&&j.wdi_loadedImages!=0){j.loadedImages=0;j.wdi_load_count=0;wdi_front.allImagesLoaded(j)}}if(j.paginatorNextFlag==true){wdi_front.updatePagination(j,"next")}j.infiniteScrollFlag=false};wdi_front.checkFeedFinished=function(b){for(var a=0;a<b.usersData.length;a++){if(typeof b.usersData[a]["finished"]=="undefined"){return false}}return true};wdi_front.sortingOperator=function(c,b){var a;switch(c){case"date":switch(b){case"asc":a=function(e,d){return(e.created_time>d.created_time)?1:-1};break;case"desc":a=function(e,d){return(e.created_time>d.created_time)?-1:1};break}break;case"likes":switch(b){case"asc":a=function(e,d){return(e.likes["count"]<d.likes["count"])?-1:1};break;case"desc":a=function(e,d){return(e.likes["count"]<d.likes["count"])?1:-1};break}break;case"comments":switch(b){case"asc":a=function(e,d){return(e.comments["count"]<d.comments["count"])?-1:1};break;case"desc":a=function(e,d){return(e.comments["count"]<d.comments["count"])?1:-1};break}break;case"random":a=function(e,d){var f=Math.random();return(f>0.5)?1:-1};break}return a};wdi_front.feedSort=function(e,b){var d=e.feed_row.sort_images_by;var c=e.feed_row.display_order;if(e.feed_row.resort_after_load_more==="1"){e.data=e.data.concat(wdi_front.smartPicker(e,b))}else{e.data=wdi_front.smartPicker(e,b)}var a=wdi_front.sortingOperator(d,c);e.data.sort(a);return e.data};wdi_front.smartPicker=function(l,c){var g=[];var a=0;var k=[];var f=Math.ceil(l.feed_row["number_of_photos"]/l.usersData.length);var b=parseInt(l.feed_row["number_of_photos"]);var n=0;if(c!=""&&typeof c!="undefined"&&c!=null){b=parseInt(c);f=Math.ceil(b/wdi_front.activeUsersCount(l))}var j=function(p,i){return(p.data.length>i.data.length)?1:-1};var e=function(p,i){return(p.length()>i.length())?1:-1};l.storeRawData(l.usersData,"dataStorageRaw");var o=l.dataStorageRaw.sort(e);var h=l.usersData.sort(j);for(var d=0;d<h.length;d++){n+=f;if(o[d].length()<=n){n-=o[d].length();g.push(o[d].getData(o[d].length()));a+=g[g.length-1].length}else{if(a+n>b){n=b-a}var m=[];if(l.auto_trigger===false){m=m.concat(o[d].getData(n))}else{if(m.length+wdi_front.getDataLength(l)+wdi_front.getDataLength(l,g)<l.feed_row["number_of_photos"]){m=m.concat(o[d].getData(n))}}n=0;a+=m.length;g.push(m)}}for(d=0;d<g.length;d++){if(typeof l.dataStorage[d]==="undefined"){l.dataStorage.push(g[d])}else{l.dataStorage[d]=l.dataStorage[d].concat(g[d])}}l.parsedData=wdi_front.parseLighboxData(l);for(d=0;d<g.length;d++){k=k.concat(g[d])}return k};wdi_front.createObject=function(e,i){var k=(e.caption!=null)?e.caption["text"]:" ";var j="";if(e.type=="video"){j=e.hasOwnProperty("videos")?e.videos[i.feedVideoResolution]["url"]:""}if(typeof e.images[i.feedImageResolution]=="undefined"){var f=wdi_url.plugin_url+"images/missing.png"}else{var f=e.images[i.feedImageResolution].url}var a=i.imageIndex;var b="square";var d=e.images["standard_resolution"]["height"];var h=e.images["standard_resolution"]["width"];if(d>h){b="portrait"}else{if(d<h){b="landscape"}}var g=e.user["username"];if(g===""){g="no_user"}var c={id:e.id,caption:wdi_front.escape_tags(k),image_url:f,likes:e.likes["count"],comments:e.comments["count"],wdi_index:a,wdi_res_index:i.resIndex,wdi_media_user:g,link:e.link,video_url:j,wdi_username:g,wdi_shape:b};return c};wdi_front.setPage=function(c){var b=c.feed_row.feed_display_view;var e=c.feed_row.feed_type;if(b!="pagination"){return""}var a=c.imageIndex;if(e=="image_browser"){var d=1}else{var d=Math.abs(c.feed_row.pagination_per_page_number)}c.paginator=Math.ceil((a+1)/d);return c.paginator};wdi_front.getPhotoTemplate=function(g){var e=wdi_front.setPage(g);var j="";var k="";var l="";var d="";var m="fa-arrows-alt";var c="";if(g.feed_row.feed_type=="blog_style"||g.feed_row.feed_type=="image_browser"){m=""}if(e!=""){k='wdi_page="'+e+'"';sourceAttr="src"}else{sourceAttr="src"}if(e!=""&&e!=1){j="wdi_hidden"}if(g.feed_row.show_username_on_thumb=="1"){c='<span class="wdi_media_user">@<%= wdi_username%></span>'}if(g.feed_row.show_full_description==1&&g.feed_row.feed_type=="masonry"){j+=" wdi_full_caption"}var f="";if(g.feed_row.feed_type!=="blog_style"){if(g.feed_row.feed_type=="masonry"){f="wdi_responsive.showMasonryCaption(jQuery(this),"+g.feed_row.wdi_feed_counter+");"}else{f="wdi_responsive.showCaption(jQuery(this),"+g.feed_row.wdi_feed_counter+");"}}switch(g.feed_row.feed_item_onclick){case"lightbox":l="onclick=wdi_feed_"+g.feed_row.wdi_feed_counter+".galleryBox('<%=id%>')";break;case"instagram":l="onclick=\"window.open ('<%= link%>','_blank')\"";d="wdi_hover_off";m="";break;case"custom_redirect":l="onclick=\"window.open ('"+g.feed_row.redirect_url+"','_self')\"";d="wdi_hover_off";m="";break;case"none":l="";d="wdi_cursor_off wdi_hover_off";m=""}var h="<%= wdi_shape == 'square' ? 'wdi_shape_square' : (wdi_shape == 'portrait' ? 'wdi_shape_portrait' : (wdi_shape == 'landscape' ? 'wdi_shape_landscape' : 'wdi_shape_square') ) %>";var b=g.feed_row.wdi_feed_counter;var a='<div class="wdi_feed_item '+j+'" wdi_index=<%= wdi_index%> wdi_res_index=<%= wdi_res_index%> wdi_media_user=<%= wdi_media_user%> '+k+' wdi_type="image" id="wdi_'+b+'_<%=id%>"><div class="wdi_photo_wrap"><div class="wdi_photo_wrap_inner"><div class="wdi_photo_img '+h+'"><img class="wdi_img" '+sourceAttr+'="<%=image_url%>" alt="feed_image" onerror="wdi_front.brokenImageHandler(this);"><div class="wdi_photo_overlay '+d+'" >'+c+'<div class="wdi_thumb_icon" '+l+' style="display:table;width:100%;height:100%;"><div style="display:table-cell;vertical-align:middle;text-align:center;color:white;"><i class="fa '+m+'"></i></div></div></div></div></div></div>';if(g.feed_row["show_likes"]==="1"||g.feed_row["show_comments"]==="1"||g.feed_row["show_description"]==="1"){a+='<div class="wdi_photo_meta">';if(g.feed_row["show_likes"]==="1"){a+='<div class="wdi_thumb_likes"><i class="fa fa-heart-o"> <%= likes%></i></div>'}if(g.feed_row["show_comments"]==="1"){a+='<div class="wdi_thumb_comments"><i class="fa fa-comment-o"> <%= comments%></i></div>'}a+='<div class="wdi_clear"></div>';if(g.feed_row["show_description"]==="1"){a+='<div class="wdi_photo_title" onclick='+f+" ><%=caption%></div>"}a+="</div>"}a+="</div>";var i=_.template(a);return i};wdi_front.getSliderTemplate=function(g){var e=wdi_front.setPage(g);var j="";var k="";var l="";var d="";var m="fa-clone";var c="";if(g.feed_row.feed_type=="blog_style"||g.feed_row.feed_type=="image_browser"){m=""}if(e!=""){k='wdi_page="'+e+'"';sourceAttr="src"}else{sourceAttr="src"}if(e!=""&&e!=1){j="wdi_hidden"}if(g.feed_row.show_username_on_thumb=="1"){c='<span class="wdi_media_user">@<%= wdi_username%></span>'}if(g.feed_row.show_full_description==1&&g.feed_row.feed_type=="masonry"){j+=" wdi_full_caption"}var f="";if(g.feed_row.feed_type!=="blog_style"){if(g.feed_row.feed_type=="masonry"){f="wdi_responsive.showMasonryCaption(jQuery(this),"+g.feed_row.wdi_feed_counter+");"}else{f="wdi_responsive.showCaption(jQuery(this),"+g.feed_row.wdi_feed_counter+");"}}switch(g.feed_row.feed_item_onclick){case"lightbox":l="onclick=wdi_feed_"+g.feed_row.wdi_feed_counter+".galleryBox('<%=id%>')";break;case"instagram":l="onclick=\"window.open ('<%= link%>','_blank')\"";d="wdi_hover_off";m="fa-clone";break;case"custom_redirect":l="onclick=\"window.open ('"+g.feed_row.redirect_url+"','_self')\"";d="wdi_hover_off";m="";break;case"none":l="";d="wdi_cursor_off wdi_hover_off";m=""}var h="<%= wdi_shape == 'square' ? 'wdi_shape_square' : (wdi_shape == 'portrait' ? 'wdi_shape_portrait' : (wdi_shape == 'landscape' ? 'wdi_shape_landscape' : 'wdi_shape_square') ) %>";var b=g.feed_row.wdi_feed_counter;var a='<div class="wdi_feed_item '+j+'" wdi_index=<%= wdi_index%> wdi_res_index=<%= wdi_res_index%> wdi_media_user=<%= wdi_media_user%> '+k+' wdi_type="slideshow" id="wdi_'+b+'_<%=id%>"><div class="wdi_photo_wrap"><div class="wdi_photo_wrap_inner"><div class="wdi_photo_img '+h+'"><img class="wdi_img" '+sourceAttr+'="<%=image_url%>" alt="feed_image" onerror="wdi_front.brokenImageHandler(this);"><div class="wdi_photo_overlay '+d+'" >'+c+'<div class="wdi_thumb_icon" '+l+' style="display:table;width:100%;height:100%;"><div style="display:table-cell;vertical-align:middle;text-align:center;color:white;"><i class="fa '+m+'"></i></div></div></div></div></div></div>';if(g.feed_row["show_likes"]==="1"||g.feed_row["show_comments"]==="1"||g.feed_row["show_description"]==="1"){a+='<div class="wdi_photo_meta">';if(g.feed_row["show_likes"]==="1"){a+='<div class="wdi_thumb_likes"><i class="fa fa-heart-o"> <%= likes%></i></div>'}if(g.feed_row["show_comments"]==="1"){a+='<div class="wdi_thumb_comments"><i class="fa fa-comment-o"> <%= comments%></i></div>'}a+='<div class="wdi_clear"></div>';if(g.feed_row["show_description"]==="1"){a+='<div class="wdi_photo_title" onclick='+f+" ><%=caption%></div>"}a+="</div>"}a+="</div>";var i=_.template(a);return i};wdi_front.replaceToVideo=function(b,a,c){overlayHtml="<video style='width:auto !important; height:auto !important; max-width:100% !important; max-height:100% !important; margin:0 !important;' controls=''><source src='"+b+"' type='video/mp4'>Your browser does not support the video tag. </video>";jQuery("#wdi_feed_"+c+' [wdi_index="'+a+'"] .wdi_photo_wrap_inner').html(overlayHtml);jQuery("#wdi_feed_"+c+' [wdi_index="'+a+'"] .wdi_photo_wrap_inner video').get(0).play()};wdi_front.getVideoTemplate=function(h){var f=wdi_front.setPage(h);var k="";var l="";var n="fa-play";var m="";var d="";var e;var c="";if(f!=""){l='wdi_page="'+f+'"';e="src"}else{e="src"}if(f!=""&&f!=1){k="wdi_hidden"}if(h.feed_row.show_username_on_thumb=="1"){c='<span class="wdi_media_user">@<%= wdi_username%></span>'}if(h.feed_row.show_full_description==1&&h.feed_row.feed_type=="masonry"){k+=" wdi_full_caption"}var g="";if(h.feed_row.feed_type!=="blog_style"){if(h.feed_row.feed_type=="masonry"){g="wdi_responsive.showMasonryCaption(jQuery(this),"+h.feed_row.wdi_feed_counter+");"}else{g="wdi_responsive.showCaption(jQuery(this),"+h.feed_row.wdi_feed_counter+");"}}switch(h.feed_row.feed_item_onclick){case"lightbox":m="onclick=wdi_feed_"+h.feed_row.wdi_feed_counter+".galleryBox('<%=id%>')";break;case"instagram":m="onclick=\"window.open ('<%= link%>','_blank')\"";d="wdi_hover_off";n="fa-play";break;case"custom_redirect":m="onclick=\"window.open ('"+h.feed_row.redirect_url+"','_self')\"";d="wdi_hover_off";n="";break;case"none":d="wdi_cursor_off wdi_hover_off";n="";if(h.feed_row.feed_type=="blog_style"||h.feed_row.feed_type=="image_browser"){m="onclick=wdi_front.replaceToVideo('<%= video_url%>','<%= wdi_index%>',"+h.feed_row.wdi_feed_counter+")";d="";n="fa-play"}}var i="<%= wdi_shape == 'square' ? 'wdi_shape_square' : (wdi_shape == 'portrait' ? 'wdi_shape_portrait' : (wdi_shape == 'landscape' ? 'wdi_shape_landscape' : 'wdi_shape_square') ) %>";var b=h.feed_row.wdi_feed_counter;var a='<div class="wdi_feed_item '+k+'" wdi_index=<%= wdi_index%> wdi_res_index=<%= wdi_res_index%> wdi_media_user=<%= wdi_media_user%> '+l+' wdi_type="image" id="wdi_'+b+'_<%=id%>"><div class="wdi_photo_wrap"><div class="wdi_photo_wrap_inner"><div class="wdi_photo_img '+i+'"><img class="wdi_img" '+e+'="<%=image_url%>" alt="feed_image" onerror="wdi_front.brokenImageHandler(this);"><div class="wdi_photo_overlay '+d+'" '+m+">"+c+'<div class="wdi_thumb_icon" style="display:table;width:100%;height:100%;"><div style="display:table-cell;vertical-align:middle;text-align:center;color:white;"><i class="fa '+n+'"></i></div></div></div></div></div></div>';if(h.feed_row["show_likes"]==="1"||h.feed_row["show_comments"]==="1"||h.feed_row["show_description"]==="1"){a+='<div class="wdi_photo_meta">';if(h.feed_row["show_likes"]==="1"){a+='<div class="wdi_thumb_likes"><i class="fa fa-heart-o"> <%= likes%></i></div>'}if(h.feed_row["show_comments"]==="1"){a+='<div class="wdi_thumb_comments"><i class="fa fa-comment-o"> <%= comments%></i></div>'}a+='<div class="wdi_clear"></div>';if(h.feed_row["show_description"]==="1"){a+='<div class="wdi_photo_title" onclick='+g+" ><%=caption%></div>"}a+="</div>"}a+="</div>";var j=_.template(a);return j};wdi_front.bindEvents=function(a){if(jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter+" .wdi_feed_wrapper").length==0){return}if(a.feed_row.feed_display_view=="load_more_btn"){jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter+" .wdi_load_more_container").on(wdi_front.clickOrTouch,function(){wdi_front.loadMore(jQuery(this).find(".wdi_load_more_wrap"))})}if(a.feed_row.feed_display_view=="pagination"){jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter+" #wdi_next").on(wdi_front.clickOrTouch,function(){wdi_front.paginatorNext(jQuery(this),a)});jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter+" #wdi_prev").on(wdi_front.clickOrTouch,function(){wdi_front.paginatorPrev(jQuery(this),a)});jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter+" #wdi_last_page").on(wdi_front.clickOrTouch,function(){wdi_front.paginationLastPage(jQuery(this),a)});jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter+" #wdi_first_page").on(wdi_front.clickOrTouch,function(){wdi_front.paginationFirstPage(jQuery(this),a)});a.paginatorNextFlag=false}if(a.feed_row.feed_display_view=="infinite_scroll"){jQuery(window).on("scroll",function(){wdi_front.infiniteScroll(a)});a.infiniteScrollFlag=false}};wdi_front.infiniteScroll=function(a){if((jQuery(window).scrollTop()+jQuery(window).height()-100)>=jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter+" #wdi_infinite_scroll").offset().top){if(a.infiniteScrollFlag===false&&a.stopInfiniteScrollFlag==false){a.infiniteScrollFlag=true;wdi_front.loadMore(jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter+" #wdi_infinite_scroll"),a)}else{if(a.stopInfiniteScrollFlag){wdi_front.allImagesLoaded(a)}}}};wdi_front.paginationFirstPage=function(b,c){if(c.paginator==1||c.currentPage==1){b.addClass("wdi_disabled");return}var d=c.currentPage;c.currentPage=1;wdi_front.updatePagination(c,"custom",d);var a=b.parent().find("#wdi_last_page");a.removeClass("wdi_disabled");b.addClass("wdi_disabled")};wdi_front.paginationLastPage=function(a,b){if(b.paginator==1||b.currentPage==b.paginator){return}var d=b.currentPage;b.currentPage=b.paginator;wdi_front.updatePagination(b,"custom",d);a.addClass("wdi_disabled");var c=a.parent().find("#wdi_first_page");c.removeClass("wdi_disabled")};wdi_front.paginatorNext=function(b,c){var a=b.parent().find("#wdi_last_page");var d=b.parent().find("#wdi_first_page");c.paginatorNextFlag=true;if(c.paginator==c.currentPage&&!wdi_front.checkFeedFinished(c)){c.currentPage++;var e=c.feed_row.number_of_photos;wdi_front.loadMore(b,c,e);a.addClass("wdi_disabled")}else{if(c.paginator>c.currentPage){c.currentPage++;wdi_front.updatePagination(c,"next");if(c.paginator>c.currentPage){a.removeClass("wdi_disabled")}else{a.addClass("wdi_disabled")}}}d.removeClass("wdi_disabled")};wdi_front.paginatorPrev=function(b,c){var a=b.parent().find("#wdi_last_page");var d=b.parent().find("#wdi_first_page");if(c.currentPage==1){d.addClass("wdi_disabled");return}c.currentPage--;wdi_front.updatePagination(c,"prev");a.removeClass("wdi_disabled");if(c.currentPage==1){d.addClass("wdi_disabled")}};wdi_front.updatePagination=function(b,a,d){var c="#wdi_feed_"+b.feed_row.wdi_feed_counter;jQuery(c+' [wdi_page="'+b.currentPage+'"]').each(function(){jQuery(this).removeClass("wdi_hidden")});switch(a){case"next":var d=b.currentPage-1;jQuery(c+" .wdi_feed_wrapper").height(jQuery(".wdi_feed_wrapper").height());jQuery(c+' [wdi_page="'+d+'"]').each(function(){jQuery(this).addClass("wdi_hidden")});break;case"prev":var d=b.currentPage+1;jQuery(c+" .wdi_feed_wrapper").height(jQuery(".wdi_feed_wrapper").height());jQuery(c+' [wdi_page="'+d+'"]').each(function(){jQuery(this).addClass("wdi_hidden")});break;case"custom":var d=d;if(d!=b.currentPage){jQuery(c+" .wdi_feed_wrapper").height(jQuery(".wdi_feed_wrapper").height());jQuery(c+' [wdi_page="'+d+'"]').each(function(){jQuery(this).addClass("wdi_hidden")})}break}b.paginatorNextFlag=false;jQuery(c+" .wdi_feed_wrapper").css("height","auto");jQuery(c+" #wdi_current_page").text(b.currentPage)};wdi_front.loadMore=function(f,k){var b=0;if(f!=""&&typeof f!="undefined"&&f!="initial"&&f!="initial-keep"){var l=window[f.parent().parent().parent().parent().attr("id")]}if(typeof k!="undefined"){var l=k}var n=0,g=0;for(var e=0;e<l.userSortFlags.length;e++){if(l.userSortFlags[e].flag===true){n++;for(var d=0;d<l.usersData.length;d++){if(l.userSortFlags[e]["id"]===l.usersData[d]["user_id"]){if(l.usersData[d]["finished"]==="finished"){g++}}}}}if(n===g&&n!=0){return}if(f===""){l.auto_trigger=true}else{l.auto_trigger=false}wdi_front.ajaxLoader(l);if(l.feed_row.feed_type==="masonry"&&l.feed_row.feed_display_view=="pagination"){jQuery("#wdi_feed_"+wdi_front.feed_counter+" .wdi_full_caption").each(function(){jQuery(this).find(".wdi_photo_title").trigger(wdi_front.clickOrTouch)})}for(var e=0;e<l.usersData.length;e++){if(l.usersData[e]["finished"]==="finished"){b++}}if(b===l.usersData.length){wdi_front.allImagesLoaded(l);jQuery("#wdi_feed_"+l.feed_row["wdi_feed_counter"]+" .wdi_load_more").remove()}var h=l.usersData;l.loadMoreDataCount=l.feed_users.length;for(var e=0;e<h.length;e++){var m=h[e]["pagination"];var c={user_id:h[e]["user_id"],username:h[e]["username"]};if(m.next_url!=""&&m.next_url!=null&&typeof m.next_url!="undefined"){var a=m.next_url;wdi_front.loadMoreRequest(c,a,l,f)}else{if(f=="initial-keep"){l.temproraryUsersData[e]=l.usersData[e]}l.loadMoreDataCount--;wdi_front.checkForLoadMoreDone(l,f);continue}}};wdi_front.loadMoreRequest=function(b,a,e,d){if(!e.mediaRequestsDone){return}var f=e.usersData;var c="";var g=function(h){if(typeof h.meta!="undefined"&&typeof h.meta.error_type!="undefined"){wdi_front.show_alert(false,h,e)}if(h===""||typeof h=="undefined"||h==null){c=wdi_front_messages.network_error;e.loadMoreDataCount--;wdi_front.show_alert(c,h,e);return}if(h.meta["code"]!=200){c=h.meta["error_message"];e.loadMoreDataCount--;wdi_front.show_alert(c,h,e);return}h.user_id=b.user_id;h.username=b.username;for(var j=0;j<e.usersData.length;j++){if(h.user_id===e.usersData[j]["user_id"]){if(h.user_id[0]==="#"){h.data=wdi_front.appendRequestHashtag(h.data,h.user_id)}if(d=="initial-keep"){e.temproraryUsersData[j]=e.usersData[j]}e.usersData[j]=h;e.loadMoreDataCount--}}wdi_front.checkForLoadMoreDone(e,d)};if(b.username[0]!=="#"){e.instagram.requestByUrl(a,{success:g})}else{e.instagram.getTagRecentMedia(b.username,{success:g},a,e.feed_row.hashtag_top_recent)}};wdi_front.checkForLoadMoreDone=function(c,b){var a=c.feed_row.load_more_number;var e=c.feed_row.number_of_photos;if(c.loadMoreDataCount==0){c.temproraryUsersData=wdi_front.mergeData(c.temproraryUsersData,c.usersData);var d=wdi_front.getArrayContentLength(c.temproraryUsersData,"data");if(b=="initial-keep"){b="initial"}if(b=="initial"){if(d<e&&!wdi_front.userHasNoPhoto(c,c.temproraryUsersData)&&c.instagramRequestCounter<=c.maxConditionalFiltersRequestCount){wdi_front.loadMore("initial",c)}else{c.usersData=c.temproraryUsersData;wdi_front.displayFeed(c);wdi_front.applyFilters(c);c.temproraryUsersData=[]}}else{if(d<a&&!wdi_front.userHasNoPhoto(c,c.temproraryUsersData)&&c.instagramRequestCounter<=c.maxConditionalFiltersRequestCount){wdi_front.loadMore(undefined,c)}else{c.usersData=c.temproraryUsersData;if(!wdi_front.activeUsersCount(c)){return}wdi_front.displayFeed(c,a);wdi_front.applyFilters(c);c.temproraryUsersData=[]}}}};wdi_front.allDataHasFinished=function(b){var d=0;for(var a=0;a<b.dataStorageRaw.length;a++){if(b.dataStorageRaw[a].length()==0&&b.dataStorageRaw[a].locked==true){d++}}return(d==b.dataStorageRaw.length)};wdi_front.mergeData=function(c,b){for(var a=0;a<b.length;a++){if(typeof c[a]!="undefined"){if(b[a]["finished"]=="finished"){continue}if(typeof c[a]["pagination"]["next_max_id"]=="undefined"&&typeof c[a]["pagination"]["next_max_like_id"]=="undefined"){continue}c[a]["data"]=c[a]["data"].concat(b[a]["data"]);c[a]["pagination"]=b[a]["pagination"];c[a]["user_id"]=b[a]["user_id"];c[a]["username"]=b[a]["username"];c[a]["meta"]=b[a]["meta"]}else{c.push(b[a])}}return c};wdi_front.brokenImageHandler=function(d){var b=d.src.split("/p/");if(typeof b[0]!=="undefined"&&typeof b[1]!=="undefined"&&b[0]!=="https://www.instagram.com"){var a=wdi_baseName(b[0]);var c=a+"/p/"+b[1];d.src=c}else{d.src=wdi_url.plugin_url+"images/missing.png"}d.onerror="";return true};function wdi_baseName(b){var a=b.substr(b.lastIndexOf("/"));return b.replace(a,"")}wdi_front.ajaxLoader=function(a){var d=a.feed_row.wdi_feed_counter;var c=jQuery("#wdi_feed_"+d);if(a.feed_row.feed_display_view=="load_more_btn"){c.find(".wdi_load_more").addClass("wdi_hidden");c.find(".wdi_spinner").removeClass("wdi_hidden")}if(a.feed_row.feed_display_view=="infinite_scroll"){var b;if(c.find(".wdi_ajax_loading").length==0){b=jQuery('<div class="wdi_ajax_loading"><div><div><img class="wdi_load_more_spinner" src="'+wdi_url.plugin_url+'images/ajax_loader.png"></div></div></div>');c.append(b)}else{b=c.find(".wdi_ajax_loading")}b.removeClass("wdi_hidden")}};wdi_front.allImagesLoaded=function(a){var d=wdi_front.getDataLength(a);if(!a.mediaRequestsDone){jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter+" .wdi_feed_wrapper").remove("wdi_nomedia")}if(d==0&&a.mediaRequestsDone&&(a.feed_row.conditional_filters.length==0||a.feed_row.conditional_filter_enable==0)){jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter+" .wdi_feed_wrapper").append("<p class='wdi_nomedia'>"+wdi_front_messages.feed_nomedia+"</p>")}var c=a.feed_row.wdi_feed_counter;var b=jQuery("#wdi_feed_"+c);if(a.feed_row.feed_display_view=="load_more_btn"){b.find(".wdi_load_more").removeClass("wdi_hidden");b.find(".wdi_spinner").addClass("wdi_hidden")}if(a.feed_row.feed_display_view=="infinite_scroll"){jQuery("#wdi_feed_"+a.feed_row.wdi_feed_counter+" .wdi_ajax_loading").addClass("wdi_hidden")}b.trigger("wdi_feed_loaded")};wdi_front.show=function(b,c){var e=c.feed_row.wdi_feed_counter;var d=jQuery("#wdi_feed_"+e+" .wdi_feed_container");var g=this;switch(b){case"header":f();break;case"users":a(c);break}function f(){var i={feed_thumb:c.feed_row["feed_thumb"],feed_name:c.feed_row["feed_name"]};var k=wdi_front.getHeaderTemplate(),h=k(i),j=d.find(".wdi_feed_header").html();d.find(".wdi_feed_header").html(j+h)}function a(j){d.find(".wdi_feed_users").html("");var n=j.feed_users;var m=j.feed_row["access_token"];var h=0;j.headerUserinfo=[];k();function k(){if(j.headerUserinfo.length==n.length){l(j.headerUserinfo,j);return}var i=n[j.headerUserinfo.length];if(typeof i==="string"&&i==="self"){j.instagram.getSelfInfo({success:function(o){if(typeof o.meta!="undefined"&&typeof o.meta.error_type!="undefined"){wdi_front.show_alert(false,o,j)}o=g.checkMediaResponse(o,j);if(o!=false&&o.meta["code"]===400&&o.meta["error_type"]==="APINotAllowedError"){var p=null;j.headerUserinfo.push(p);h++;k()}if(o!=false&&o.meta["code"]===200){var p={id:o.data["id"],name:o.data["username"],url:o.data["profile_picture"],bio:wdi_front.escape_tags(o.data["bio"]),counts:o.data["counts"],website:wdi_front.escape_tags(o.data["website"]),full_name:wdi_front.escape_tags(o.data["full_name"])};j.headerUserinfo.push(p);h++;k()}},args:{ignoreFiltering:true}})}else{if(false&&g.getInputType(i.username)=="hashtag"){j.instagram.searchForTagsByName(g.stripHashtag(i.username),{success:function(o){if(typeof o.meta!="undefined"&&typeof o.meta.error_type!="undefined"){wdi_front.show_alert(false,o,j)}o=g.checkMediaResponse(o,j);if(o!=false){if(o.data.length==0){var p="";var q={media:""}}else{var p="";var q={media:o.data[0]["media_count"]}}var r={name:n[h]["username"],url:p,counts:q};h++;j.headerUserinfo.push(r);k()}},args:{ignoreFiltering:true}})}else{if(g.getInputType(i.username)=="user"){j.instagram.getSelfInfo({success:function(o){if(typeof o.meta!="undefined"&&typeof o.meta.error_type!="undefined"){wdi_front.show_alert(false,o,j)}o=g.checkMediaResponse(o,j);if(o!=false&&o.meta["code"]===400&&o.meta["error_type"]==="APINotAllowedError"){var p=null;j.headerUserinfo.push(p);h++;k()}if(o!=false&&o.meta["code"]===200){var p={id:o.data["id"],name:o.data["username"],url:o.data["profile_picture"],bio:wdi_front.escape_tags(o.data["bio"]),counts:o.data["counts"],website:wdi_front.escape_tags(o.data["website"]),full_name:wdi_front.escape_tags(o.data["full_name"])};j.headerUserinfo.push(p);h++;k()}},args:{ignoreFiltering:true}})}}}}function l(i,t){d.find(".wdi_feed_users").html("");for(var q=0;q<i.length;q++){if(i[q]===null){continue}var v={flag:false,id:i[q]["id"],name:i[q]["name"]};var p=(i[q]["name"][0]=="#")?"wdi_header_hashtag":"";var u=wdi_extractHostname(i[q]["website"]);var o={user_index:q,user_img_url:i[q]["url"],counts:i[q]["counts"],feed_counter:t.feed_row.wdi_feed_counter,user_name:i[q]["name"],bio:wdi_front.escape_tags(i[q]["bio"]),website:u,website_url:i[q]["website"],usersCount:t.feed_row.feed_users.length,hashtagClass:p};var x=wdi_front.getUserTemplate(t,i[q]["name"]),r=x(o),s=d.find(".wdi_feed_users").html();d.find(".wdi_feed_users").html(s+r);t.userSortFlags.push(v);var w=jQuery('<div class="wdi_clear"></div>')}d.find(".wdi_feed_users").append(w);wdi_front.updateUsersImages(t)}}};wdi_front.getUserTemplate=function(c,h){var a=c.dataCount,d,f,g;switch(h[0]){case"#":d="//instagram.com/explore/tags/"+h.substr(1,h.length);break;default:d="//instagram.com/"+h;break}g='window.open("'+d+'","_blank")';f="onclick='"+g+"'";var e='<div class="wdi_single_user" user_index="<%=user_index%>"><div class="wdi_header_user_text <%=hashtagClass%>"><div class="wdi_user_img_wrap"><img onerror="wdi_front.brokenImageHandler(this);" src="<%= user_img_url%>">';if(a>1){e+='<div title="'+wdi_front_messages.filter_title+'" class="wdi_filter_overlay"><div class="wdi_filter_icon"><span onclick="wdi_front.addFilter(<%=user_index%>,<%=feed_counter%>);" class="fa fa-filter"></span></div></div>'}e+="</div>";e+="<h3 "+f+"><%= user_name%></h3>";if(h[0]!=="#"){if(c.feed_row.follow_on_instagram_btn=="1"){e+='<div class="wdi_user_controls"><div class="wdi_follow_btn" onclick="window.open(\'//instagram.com/<%= user_name%>\',\'_blank\')"><span> '+wdi_front_messages.follow+"</span></div></div>"}e+='<div class="wdi_media_info"><p class="wdi_posts"><span class="fa fa-camera-retro"></span><%= counts.media%></p><p class="wdi_followers"><span class="fa fa-user"></span><%= counts.followed_by%></p></div>'}else{e+='<div class="wdi_user_controls"></div><div class="wdi_media_info"><p class="wdi_posts"><span class="fa fa-camera-retro"></span><%= counts.media%></p><p class="wdi_followers"><span></span></p></div>'}e+='<div class="wdi_clear"></div>';if(a==1&&h[0]!=="#"&&c.feed_row.display_user_info=="1"){e+='<div class="wdi_bio"><%= bio%></div>';e+='<div class="wdi_website"><a target="_blank" href="<%= website_url%>" ><%= website%></a></div>'}e+="</div></div>";var b=_.template(e);return b};wdi_front.getHeaderTemplate=function(){var b='<div class="wdi_header_wrapper"><div class="wdi_header_img_wrap"><img src="<%=feed_thumb%>"></div><div class="wdi_header_text"><%=feed_name%></div><div class="wdi_clear"></div>';var a=_.template(b);return a};wdi_front.addFilter=function(e,g){var f=window["wdi_feed_"+g];var d=f.dataCount;if(d<2){return}if(f.nowLoadingImages!=false){return}else{var c=jQuery("#wdi_feed_"+f.feed_row.wdi_feed_counter+'_users [user_index="'+e+'"]');c.find(".wdi_filter_overlay").toggleClass("wdi_filter_active_bg");c.find(".wdi_header_user_text h3").toggleClass("wdi_filter_active_col");c.find(".wdi_media_info").toggleClass("wdi_filter_active_col");c.find(".wdi_follow_btn").toggleClass("wdi_filter_active_col");f.customFilterChanged=true;if(f.userSortFlags[e]["flag"]==false){f.userSortFlags[e]["flag"]=true}else{f.userSortFlags[e]["flag"]=false}var a=0;for(var b=0;b<f.userSortFlags.length;b++){if(f.userSortFlags[b]["flag"]==true){a++}}if(f.feed_row.feed_display_view=="pagination"){f.resIndex=0}if(a!=0){wdi_front.filterData(f);wdi_front.displayFeed(f)}else{f.customFilteredData=f.dataStorageList;wdi_front.displayFeed(f)}if(f.feed_row.feed_display_view=="pagination"){f.paginator=Math.ceil((f.imageIndex)/parseInt(f.feed_row.pagination_per_page_number));f.currentPage=f.paginator;wdi_front.updatePagination(f,"custom",1);jQuery("#wdi_first_page").removeClass("wdi_disabled");jQuery("#wdi_last_page").addClass("wdi_disabled")}}};wdi_front.filterData=function(c){var d=c.userSortFlags;c.customFilteredData=[];for(var b=0;b<c.dataStorageList.length;b++){for(var a=0;a<d.length;a++){if(((typeof c.dataStorageList[b]["user"]["id"]!="undefined"&&c.dataStorageList[b]["user"]["id"]==d[a]["id"])||c.dataStorageList[b]["wdi_hashtag"]==d[a]["name"])&&d[a]["flag"]==true){c.customFilteredData.push(c.dataStorageList[b])}}}};wdi_front.applyFilters=function(c){for(var b=0;b<c.userSortFlags.length;b++){if(c.userSortFlags[b]["flag"]==true){var a=jQuery("#wdi_feed_"+c.feed_row.wdi_feed_counter+'[user_index="'+b+'"]');wdi_front.addFilter(b,c.feed_row.wdi_feed_counter);wdi_front.addFilter(b,c.feed_row.wdi_feed_counter)}}};wdi_front.getImgCount=function(b){var d=b.dataStorage;var c=0;for(var a=0;a<d.length;a++){c+=d[a].length}return c};wdi_front.parseLighboxData=function(k,m){var g=k.dataStorage;var l=k.feed_row.sort_images_by;var a=k.feed_row.display_order;var h=wdi_front.sortingOperator(l,a);var f=[];var b=[];var e={};if(m==true){f=k.customFilteredData}else{for(var d=0;d<g.length;d++){for(var c=0;c<g[d].length;c++){f.push(g[d][c])}}f.sort(h)}for(d=0;d<f.length;d++){e={alt:"",avg_rating:"",comment_count:f[d]["comments"]["count"],date:wdi_front.convertUnixDate(f[d]["created_time"]),description:wdi_front.getDescription((f[d]["caption"]!==null)?wdi_front.escape_tags(f[d]["caption"]["text"]):""),filename:wdi_front.getFileName(f[d]),filetype:wdi_front.getFileType(f[d]),hit_count:"0",id:f[d]["id"],image_url:f[d]["link"],number:0,rate:"",rate_count:"0",username:f[d]["user"]["username"],profile_picture:f[d]["user"]["profile_picture"],thumb_url:f[d]["link"]+"media/?size=t",comments_data:f[d]["comments"]["data"],images:f[d]["images"],carousel_media:(typeof f[d]["carousel_media"]!=="undefined")?f[d]["carousel_media"]:null};b.push(e)}return b};wdi_front.convertUnixDate=function(b){var c=parseInt(b);var a=new Date(0);a.setUTCSeconds(c);var d=a.getFullYear()+"-"+a.getMonth()+"-"+a.getDate();d+=" "+a.getHours()+":"+a.getMinutes();return d};wdi_front.getDescription=function(a){a=a.replace(/\r?\n|\r/g," ");return a};wdi_front.getFileName=function(d){var c=d.link;var b=d.type;if(b==="video"&&d.hasOwnProperty("videos")){return d.videos["standard_resolution"]["url"]}else{var a=c.split("/");return a[a.length-2]}};wdi_front.getFileType=function(a){if(a.type=="video"&&a.hasOwnProperty("videos")){return"EMBED_OEMBED_INSTAGRAM_VIDEO"}else{return"EMBED_OEMBED_INSTAGRAM_IMAGE"}};wdi_front.array_max=function(d){var a=d[0];var b=0;for(var c=1;c<d.length;c++){if(a<d[c]){a=d[c];b=c}}return{value:a,index:b}};wdi_front.array_min=function(d){var c=d[0];var a=0;for(var b=1;b<d.length;b++){if(c>d[b]){c=d[b];a=b}}return{value:c,index:a}};wdi_front.activeUsersCount=function(c){var a=0;for(var b=0;b<c.usersData.length;b++){if(c.usersData[b].finished!="finished"){a++}}return a};wdi_front.checkMediaResponse=function(a,b){if(a!=""&&typeof a!="undefined"&&a!=null&&a.meta["code"]===400&&a.meta["error_type"]==="APINotAllowedError"){return a}if(a==""||typeof a=="undefined"||a==null){errorMessage=wdi_front_messages.connection_error;wdi_front.show_alert(errorMessage,a,b);return false}if(a.meta["code"]!=200){errorMessage=a.meta["error_message"];wdi_front.show_alert(errorMessage,a,b);return false}return a};wdi_front.stripHashtag=function(a){switch(a[0]){case"#":return a.substr(1,a.length);break;default:return a;break}};wdi_front.getInputType=function(a){switch(a[0]){case"#":return"hashtag";break;case"%":return"location";break;default:return"user";break}};wdi_front.regexpTestCaption=function(h,e){var d=false,b=false,f=[],g=e.replace(/[-[\]{}()*+?.,\\^$|]/g,"\\$&"),c=new RegExp("(?:^|\\s)"+g+"(?:^|\\s)"),a=new RegExp("(?:^|\\s)"+g,"g");if(c.exec(h)!=null){d=true}while((match=a.exec(h))!=null){if(match.index==h.length-e.length-1){b=true}}if(d==true||b==true){return true}else{return false}};wdi_front.replaceNewLines=function(c){var b="vUkCJvN2ps3t",a=[],g;c=c.replace(/\r?\n|\r/g,b);g=new RegExp(b,"g");while((match=g.exec(c))!=null){a.push(match.index)}var f=c.split(b);var e=0;for(var d=0;d<f.length;d++){if(f[d]==""){e++}else{e=0}if(e>0){f.splice(d,1);e--;d--}}c=f.join(" ");return c};wdi_front.isEmptyObject=function(a){for(var b in a){if(a.hasOwnProperty(b)){return false}}return true};var WDIFeed=function(a){this["data"]=a.data;this["dataCount"]=a.dataCount;this["feed_row"]=a.feed_row;this["usersData"]=a.usersData;_this=this;this.set_images_loading_flag=function(b){window.addEventListener("load",function(){b.nowLoadingImages=false})};this.set_images_loading_flag(_this)};WDIFeed.prototype.conditionalFilter=function(a,c){var d=this,b=d.feed_row.conditional_filter_type,e=d.feed_row.conditional_filters;if(c.ignoreFiltering==true){}else{a=this.avoidDuplicateMedia(a)}if(!wdi_front.isJsonString(e)){return a}else{e=JSON.parse(e);if(e.length==0){return a}}if(d.feed_row.conditional_filter_enable=="0"){return a}d.instagramRequestCounter++;switch(b){case"AND":a=this.applyANDLogic(a,e,d);break;case"OR":a=this.applyORLogic(a,e,d);break;case"NOR":a=this.applyNORLogic(a,e,d);break;default:break}return a};WDIFeed.prototype.applyANDLogic=function(a,d){var c=this;for(var b=0;b<d.length;b++){a=this.filterResponse(a,d[b])}return a};WDIFeed.prototype.applyORLogic=function(d,c){var h=this;var a=[],g,j=[],f,b;for(var e=0;e<c.length;e++){g=this.filterResponse(d,c[e]);a=a.concat(g.data);g={}}for(e=0;e<a.length;e++){b=a[e];if(!this.mediaExists(b,j)&&!this.mediaExists(b,h.dataStorageList)){j.push(b)}}f={data:j,meta:d.meta,pagination:d.pagination};return f};WDIFeed.prototype.applyNORLogic=function(c,h){var f=c,g=this,b=this.applyORLogic(c,h,g),d=[],a;for(var e=0;e<f.data.length;e++){if(!this.mediaExists(f.data[e],b.data)){d.push(f.data[e])}}a={data:d,meta:f.meta,pagination:f.pagination};return a};WDIFeed.prototype.mediaExists=function(b,c){for(var a=0;a<c.length;a++){if(b.id==c[a]["id"]){return true}}return false};WDIFeed.prototype.filterResponse=function(a,b){switch(b.filter_type){case"hashtag":return this.filterByHashtag(a,b);break;case"username":return this.filterByUsername(a,b);break;case"mention":return this.filterByMention(a,b);break;case"description":return this.filterByDescription(a,b);break;case"location":return this.filterByLocation(a,b);break;case"url":return this.filterByUrl(a,b);break}};WDIFeed.prototype.filterByHashtag=function(b,g){var d=[],f,h,a;for(var e=0;e<b.data.length;e++){h=b.data[e];for(var c=0;c<h.tags.length;c++){tag=h.tags[c];if(tag.toLowerCase()==g.filter_by.toLowerCase()){d.push(h)}}}a={data:d,meta:b.meta,pagination:b.pagination};return a};WDIFeed.prototype.filterByUsername=function(b,e){var c=[],f,a;for(var d=0;d<b.data.length;d++){f=b.data[d];if(f.user.username.toLowerCase()==e.filter_by.toLowerCase()){c.push(f)}}a={data:c,meta:b.meta,pagination:b.pagination};return a};WDIFeed.prototype.filterByMention=function(b,e){var c=[],f,g,a;for(var d=0;d<b.data.length;d++){f=b.data[d];if(f.caption!==null){g=f.caption["text"].toLowerCase();if(g.indexOf("@"+e.filter_by.toLowerCase())!=-1){c.push(f)}}}a={data:c,meta:b.meta,pagination:b.pagination};return a};WDIFeed.prototype.filterByDescription=function(c,f){var d=[],g,h,b;for(var e=0;e<c.data.length;e++){g=c.data[e];if(g.caption!==null){h=g.caption["text"].toLowerCase();h=wdi_front.replaceNewLines(h);var a=f.filter_by.toLowerCase();if(wdi_front.regexpTestCaption(h,a)){d.push(g)}}}b={data:d,meta:c.meta,pagination:c.pagination};return b};WDIFeed.prototype.filterByLocation=function(b,f){var c=[],g,e,a;for(var d=0;d<b.data.length;d++){g=b.data[d];if(g.location!==null){e=g.location["id"];if(e==f.filter_by){c.push(g)}}}a={data:c,meta:b.meta,pagination:b.pagination};return a};WDIFeed.prototype.filterByUrl=function(b,e){var c=[],g,h,a,f;e.filter_by=this.getIdFromUrl(e.filter_by);for(var d=0;d<b.data.length;d++){g=b.data[d];if(g.link!==null){h=this.getIdFromUrl(g.link);if(h==e.filter_by){c.push(g)}}}a={data:c,meta:b.meta,pagination:b.pagination};return a};WDIFeed.prototype.getIdFromUrl=function(a){var c=a.split("/"),d=false;for(var b=0;b<c.length;b++){if(c[b]=="p"){if(typeof c[b+1]!="undefined"){d=c[b+1];break}}}return d};WDIFeed.prototype.avoidDuplicateMedia=function(b){var e=b.data,d=[],a={};if(typeof e=="undefined"){e=[]}for(var c=0;c<e.length;c++){if(!this.mediaExists(e[c],this.dataStorageList)&&!this.mediaExists(e[c],d)&&!this.mediaExists(e[c],this.conditionalFilterBuffer)){d.push(e[c])}}this.conditionalFilterBuffer=this.conditionalFilterBuffer.concat(d);a={data:d,meta:b.meta,pagination:b.pagination};return a};WDIFeed.prototype.storeRawData=function(c,a){var e=this;if(typeof this[a]=="object"&&typeof this[a].length=="number"){for(var b=0;b<c.length;b++){var d="";if(wdi_front.isHashtag(c[b].user_id)){if(typeof c[b].pagination.cursors!=="undefined"){d=c[b].pagination.cursors.after}}else{if(e.feed_row.liked_feed=="liked"){d=c[b].pagination.next_max_like_id;if(typeof d=="undefined"){d=""}}else{if(c[b].pagination==null){c[b].pagination=[]}d=c[b].pagination.next_max_id;if(typeof d=="undefined"){d=""}}}if(typeof this[a][b]=="undefined"){this[a].push({data:c[b].data,index:0,locked:false,hash_id:d,usersDataFinished:false,userId:c[b].user_id,length:function(){return this.data.length-this.index},getData:function(g){var h=this.data.slice(this.index,this.index+g);this.index+=Math.min(g,this.length());if(this.index==this.data.length&&this.locked==true&&this.usersDataFinished==false){for(var f=0;f<e.usersData.length;f++){if(e.usersData[f]["user_id"]==this.userId){e.usersData[f].finished="finished";this.usersDataFinished=true;break}}}return h}})}else{if(this[a][b].locked==false){if(d!=this[a][b].hash_id){this[a][b].data=this[a][b].data.concat(c[b].data);this[a][b].hash_id=d}else{this[a][b].locked=true}}}}}};wdi_front.updateUsersIfNecessary=function(c){var d=c.feed_users;var a=false;for(var b=0;b<d.length;b++){if("#"==d[b].username.substr(0,1)){d[b].id=d[b].username;continue}if(""==d[b].id||"username"==d[b].id){a=true;c.instagram.searchForUsersByName(d[b].username,{success:function(i){if(typeof i.meta!="undefined"&&typeof i.meta.error_type!="undefined"){wdi_front.show_alert(false,i,c)}if(i.meta.code==200&&i.data.length>0){var l=false;for(var g=0;g<i.data.length;g++){if(i.data[g].username==i.args.username){l=true;break}}if(l){for(var h=0;h<d.length;h++){if(i.data[g].username==d[h].username){d[h].id=i.data[g].id}}}}var f=false;for(var e=0;e<d.length;e++){if(d[e].id==""||d[e].id=="username"){f=true;break}}if(!f){c.feed_row.feed_users=JSON.stringify(d);wdi_front.init(c)}},username:d[b].username})}}return a};if(typeof wdi_ajax.ajax_response!="undefined"){jQuery(document).one("ajaxStop",function(){if(wdi_front.type!="not_declared"){wdi_front.clickOrTouch=wdi_front.detectEvent();wdi_front.globalInit()}else{return}})}else{jQuery(document).ready(function(){if(wdi_front.type!="not_declared"){wdi_front.clickOrTouch=wdi_front.detectEvent();wdi_front.globalInit()}else{return}})}jQuery(document).ready(function(){setTimeout(function(){if(wdi_front_messages.show_alerts==="1"&&jQuery(".wdi_check_fontawesome .fa-instagram").prop("tagName")!=="I"){console.log("Font Awesome is not loaded properly. Please ask for support https://wordpress.org/support/plugin/wd-instagram-feed/")}},2000)});function wdi_extractHostname(b){if(typeof b==="undefined"||b===""){return""}var a=b.replace(/(^\w+:|^)\/\//,"");return a};
|
1 |
+
"undefined"==typeof wdi_front&&(wdi_front={type:"not_declared"}),wdi_front.detectEvent=function(){return/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase())?"touchend":"click"};var wdi_error_show=!1;function wdi_baseName(e){var i=e.substr(e.lastIndexOf("/"));return e.replace(i,"")}wdi_front.escape_tags=function(e){return void 0===e&&(e=""),e=e.toString().replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""")},wdi_front.show_alert=function(e,i,t){if(t=jQuery("#wdi_feed_"+t.feed_row.wdi_feed_counter),400===i.meta.code&&"APINotAllowedError"===i.meta.error_type){if(void 0!==i.wdi_current_feed_name){var r=i.wdi_current_feed_name;t.find(".wdi_private_feed_names").html(r),t.find(".wdi_private_feed_error").removeClass("wdi_hidden")}t.find(".wdi_spinner").remove()}if(void 0!==t&&"APINotAllowedError"!=i.meta.error_type){t.find(".wdi_spinner").remove(),wdi_error_show=!0;var a=t.find(".wdi_js_error"),d=t.find(".wdi_token_error");0!=i&&null!=typeof i.meta&&"OAuthAccessTokenException"===i.meta.error_type?(d.removeClass("wdi_hidden"),"1"!=wdi_front_messages.wdi_token_error_flag&&jQuery.ajax({type:"POST",url:wdi_url.ajax_url,dataType:"json",data:{action:"wdi_token_flag",wdi_token_flag_nonce:wdi_front_messages.wdi_token_flag_nonce},success:function(e){}})):(a.removeClass("wdi_js_error"),a.addClass("wdi_js_error_no_animate"),jQuery(".wdi_js_error_no_animate").show()),wdi_front_messages.show_alerts||console.log("%c"+e,"color:#cc0000;")}wdi_error_show=!0},wdi_front.globalInit=function(){var e=wdi_front.feed_counter;if(void 0!==wdi_ajax.ajax_response)var i=wdi_feed_counter_init.wdi_feed_counter_init;else i=0;for(var t=i;t<=e;t++)if(0!==jQuery("#wdi_feed_"+t).length){var r=new WDIFeed(window["wdi_feed_"+t]);r.instagram=new WDIInstagram,r.instagram.filterArguments={feed:r},r.instagram.filters=[{where:"getUserRecentMedia",what:function(e,i,t){return i.feed.conditionalFilter(e,t)}},{where:"getTagRecentMedia",what:function(e,i,t){return i.feed.conditionalFilter(e,t)}},{where:"getRecentLikedMedia",what:function(e,i,t){return i.feed.conditionalFilter(e,t)}},{where:"requestByUrl",what:function(e,i,t){return i.feed.conditionalFilter(e,t)}}],r.instagram.addToken(r.feed_row.access_token),wdi_front.access_token=r.feed_row.access_token,r.dataStorageRaw=[],r.dataStorage=[],r.dataStorageList=[],r.allResponseLength=0,r.currentResponseLength=0,r.temproraryUsersData=[],r.removedUsers=0,r.nowLoadingImages=!0,r.imageIndex=0,r.resIndex=0,r.currentPage=1,r.userSortFlags=[],r.customFilterChanged=!1,r.maxConditionalFiltersRequestCount=10,r.instagramRequestCounter=0,r.mediaRequestsDone=!1,r.conditionalFilterBuffer=[],r.stopInfiniteScrollFlag=!1,"masonry"==r.feed_row.feed_type&&(r.displayedData=[]),"pagination"==r.feed_row.feed_display_view?(r.feed_row.resort_after_load_more=0,"image_browser"!=r.feed_row.feed_type?(r.feed_row.load_more_number=parseInt(r.feed_row.pagination_per_page_number),r.feed_row.number_of_photos=(1+parseInt(r.feed_row.pagination_preload_number))*r.feed_row.load_more_number):(r.feed_row.number_of_photos=1+parseInt(r.feed_row.image_browser_preload_number),r.feed_row.load_more_number=parseInt(r.feed_row.image_browser_load_number)),r.freeSpaces=(Math.floor(r.feed_row.pagination_per_page_number/r.feed_row.number_of_columns)+1)*r.feed_row.number_of_columns-r.feed_row.pagination_per_page_number):r.freeSpaces=0,r.galleryBox=function(e){wdi_spider_createpopup(wdi_url.ajax_url+"?gallery_id="+this.feed_row.id+"&image_id="+e,this.feed_row.wdi_feed_counter,this.feed_row.lightbox_width,this.feed_row.lightbox_height,1,"testpopup",5,this,e)},wdi_responsive.columnControl(r),"masonry"==r.feed_row.feed_type&&jQuery(window).trigger("resize"),wdi_front.bindEvents(r),window["wdi_feed_"+t]=r,wdi_front.init(r)}},wdi_front.init=function(e){if(jQuery(".wdi_js_error").hide(),e.photoCounter=e.feed_row.number_of_photos,"liked"==e.feed_row.liked_feed)e.feed_users=["self"];else{if(!wdi_front.isJsonString(e.feed_row.feed_users))return void wdi_front.show_alert(wdi_front_messages.invalid_users_format,!1,e);e.feed_users=JSON.parse(e.feed_row.feed_users)}var i=[];void 0!==window.wdi_all_tags&&(i=window.wdi_all_tags);for(var t=0;t<e.feed_users.length;t++)"#"===e.feed_users[t].username[0]&&void 0!==e.feed_users[t].tag_id&&(i[e.feed_users[t].tag_id]=e.feed_users[t]);window.wdi_all_tags=i,e.dataCount=e.feed_users.length;var r=wdi_front.getFeedItemResolution(e);e.feedImageResolution=r.image,e.feedVideoResolution=r.video;for(var a=0;a<e.dataCount;a++)wdi_front.instagramRequest(a,e);e.feed_row.number_of_photos>0&&wdi_front.ajaxLoader(e),"1"===e.feed_row.display_header&&wdi_front.show("header",e),"1"===e.feed_row.show_usernames&&wdi_front.show("users",e)},wdi_front.getFeedItemResolution=function(e){var i={image:"standard_resolution",video:"standard_resolution"};if("thumbnail"===e.feed_row.feed_resolution)return{image:"thumbnail",video:"low_bandwidth"};if("low"===e.feed_row.feed_resolution)return{image:"low_resolution",video:"low_resolution"};if("standard"===e.feed_row.feed_resolution)return{image:"standard_resolution",video:"standard_resolution"};var t=jQuery("#wdi_feed_"+e.feed_row.wdi_feed_counter).find(".wdi_feed_wrapper");t.append('<div class="wdi_feed_item" id="wdi_feed_item_example"></div>'),wdi_responsive.columnControl(e,1);var r=t.attr("wdi-res").split("wdi_col_");if(t.find("#wdi_feed_item_example").remove(),2!==r.length)return i;var a=parseInt(r[1]);if(a<=0)return i;var d=t.width()/a-10,o=i;return d<=150?(o.image="thumbnail",o.video="low_bandwidth"):d>150&&d<=320?(o.image="low_resolution",o.video="low_resolution"):(o.image="standard_resolution",o.video="standard_resolution"),o},wdi_front.isJsonString=function(e){try{JSON.parse(e)}catch(e){return!1}return!0},wdi_front.instagramRequest=function(e,i){var t=i.feed_users,r=this;"string"==typeof t[e]&&"self"===t[e]?i.instagram.getRecentLikedMedia({success:function(e){void 0!==e.meta&&void 0!==e.meta.error_type&&wdi_front.show_alert(!1,e,i),i.mediaRequestsDone=!0,0!=(e=r.checkMediaResponse(e,i))&&r.saveSelfUserData(e,i)}}):"hashtag"==this.getInputType(t[e].username)?i.instagram.getTagRecentMedia(this.stripHashtag(t[e].username),{success:function(t){void 0!==t.meta&&void 0!==t.meta.error_type&&wdi_front.show_alert(!1,t,i),i.mediaRequestsDone=!0,0!=(t=r.checkMediaResponse(t,i))&&r.saveUserData(t,i.feed_users[e],i)}},null,i.feed_row.hashtag_top_recent):"user"==this.getInputType(t[e].username)&&i.instagram.getSelfRecentMedia({success:function(a){void 0!==a.meta&&void 0!==a.meta.error_type&&(a.wdi_current_feed_name=t[e].username,wdi_front.show_alert(!1,a,i)),i.mediaRequestsDone=!0,0!=(a=r.checkMediaResponse(a,i))&&r.saveUserData(a,i.feed_users[e],i)}})},wdi_front.isHashtag=function(e){return"#"===e[0]},wdi_front.saveUserData=function(e,i,t){if(e.username=i.username,e.user_id=i.id,"#"===e.user_id[0]&&(e.data=wdi_front.appendRequestHashtag(e.data,e.user_id)),t.usersData.push(e),t.currentResponseLength=wdi_front.getArrayContentLength(t.usersData,"data"),t.allResponseLength+=t.currentResponseLength,t.dataCount==t.usersData.length)if(t.currentResponseLength<t.feed_row.number_of_photos&&!wdi_front.userHasNoPhoto(t))wdi_front.loadMore("initial-keep",t);else if(wdi_front.displayFeed(t),wdi_front.applyFilters(t),!wdi_front.activeUsersCount(t)&&"load_more_btn"==t.feed_row.feed_display_view){var r=jQuery("#wdi_feed_"+t.feed_row.wdi_feed_counter);r.find(".wdi_load_more").addClass("wdi_hidden"),r.find(".wdi_spinner").addClass("wdi_hidden")}},wdi_front.saveSelfUserData=function(e,i){if(e.username="",e.user_id="",i.usersData.push(e),i.currentResponseLength=wdi_front.getArrayContentLength(i.usersData,"data"),i.allResponseLength+=i.currentResponseLength,i.dataCount==i.usersData.length)if(i.currentResponseLength<i.feed_row.number_of_photos&&!wdi_front.userHasNoPhoto(i))wdi_front.loadMore("initial-keep",i);else if(wdi_front.displayFeed(i),wdi_front.applyFilters(i),!wdi_front.activeUsersCount(i)&&"load_more_btn"==i.feed_row.feed_display_view){var t=jQuery("#wdi_feed_"+i.feed_row.wdi_feed_counter);t.find(".wdi_load_more").addClass("wdi_hidden"),t.find(".wdi_spinner").addClass("wdi_hidden")}},wdi_front.userHasNoPhoto=function(e,i){var t=0,r=e.usersData;void 0!==i&&(r=i);for(var a=0;a<r.length;a++)void 0===r[a].pagination&&(r[a].pagination=[]),"liked"===e.feed_row.liked_feed?void 0===r[a].pagination.next_max_like_id&&t++:void 0===r[a].pagination.next_max_id&&t++;return t==r.length?1:0},wdi_front.appendRequestHashtag=function(e,i){for(var t=0;t<e.length;t++)e[t].wdi_hashtag=i;return e},wdi_front.displayFeed=function(e,i){if(0==e.customFilterChanged)var t=wdi_front.feedSort(e,i);var r=e.customFilterChanged;if(1==e.customFilterChanged){t=e.customFilteredData;e.parsedData=wdi_front.parseLighboxData(e,!0)}"1"!=e.feed_row.resort_after_load_more?0==e.customFilterChanged&&(e.dataStorageList=e.dataStorageList.concat(t)):0==e.customFilterChanged&&(e.dataStorageList=t),"masonry"==e.feed_row.feed_type&&wdi_front.masonryDisplayFeedItems(t,e),"thumbnails"!=e.feed_row.feed_type&&"blog_style"!=e.feed_row.feed_type&&"image_browser"!=e.feed_row.feed_type||wdi_front.displayFeedItems(t,e),wdi_front.getDataLength(e)<e.photoCounter&&!r&&e.instagramRequestCounter<=e.maxConditionalFiltersRequestCount&&!wdi_front.allDataHasFinished(e)?wdi_front.loadMore("",e):wdi_front.allImagesLoaded(e),e.instagramRequestCounter>e.maxConditionalFiltersRequestCount&&(wdi_front.allImagesLoaded(e),0==t.length&&(e.stopInfiniteScrollFlag=!0)),"pagination"==e.feed_row.feed_display_view&&e.currentPage<e.paginator&&jQuery("#wdi_feed_"+e.feed_row.wdi_feed_counter).find("#wdi_last_page").removeClass("wdi_disabled"),e.instagramRequestCounter=0,e.conditionalFilterBuffer=[],wdi_front.updateUsersImages(e)},wdi_front.updateUsersImages=function(e){jQuery("#wdi_feed_"+e.feed_row.wdi_feed_counter).find(".wdi_single_user .wdi_user_img_wrap img").each(function(){if(jQuery(this).attr("src")==wdi_url.plugin_url+"images/missing.png"||""==jQuery(this).attr("src")){if("liked"==e.feed_row.liked_feed)return;for(var i=0;i<e.usersData.length;i++)e.usersData[i].username==jQuery(this).parent().parent().find("h3").text()&&0!=e.usersData[i].data.length&&jQuery(this).attr("src",e.usersData[i].data[0].images.thumbnail.url)}})},wdi_front.masonryDisplayFeedItems=function(e,i){var t=[],r=[];if(0!=jQuery("#wdi_feed_"+i.feed_row.wdi_feed_counter+" .wdi_feed_wrapper").length){jQuery("#wdi_feed_"+i.feed_row.wdi_feed_counter+" .wdi_masonry_column").each(function(){1==i.feed_row.resort_after_load_more&&(jQuery(this).html(""),i.imageIndex=0),1==i.customFilterChanged&&(jQuery(this).html(""),i.imageIndex=0),"pagination"==i.feed_row.feed_display_view?t.push(0):t.push(jQuery(this).height()),r.push(jQuery(this))}),1==i.customFilterChanged&&(i.customFilterChanged=!1);for(var a=0;a<e.length;a++){if(i.displayedData.push(e[a]),"image"==e[a].type)var d=wdi_front.getPhotoTemplate(i);else if(e[a].hasOwnProperty("videos")||"video"==e[a].type)d=wdi_front.getVideoTemplate(i);else d=wdi_front.getSliderTemplate(i);var o=e[a],n=d(wdi_front.createObject(o,i)),s=wdi_front.array_min(t),_=wdi_front.getImageResolution(e[a]);r[s.index].html(r[s.index].html()+n),t[s.index]+=r[s.index].width()*_,i.imageIndex++,"pagination"==i.feed_row.feed_display_view&&((a+1)%i.feed_row.pagination_per_page_number==0?i.resIndex+=i.freeSpaces+1:i.resIndex++)}i.wdi_loadedImages=0;var f=!1;i.wdi_load_count=a;var l=i.feed_row.wdi_feed_counter;jQuery("#wdi_feed_"+l+" img.wdi_img").on("load",function(){i.wdi_loadedImages++,w(),!1===f&&(wdi_responsive.columnControl(i,1),f=!0)});w(),1==i.paginatorNextFlag&&wdi_front.updatePagination(i,"next"),i.infiniteScrollFlag=!1}function w(){i.wdi_load_count===i.wdi_loadedImages&&0!=i.wdi_loadedImages&&(i.loadedImages=0,i.wdi_load_count=0,wdi_front.allImagesLoaded(i))}},wdi_front.getImageResolution=function(e){var i=e.images.standard_resolution.width;return e.images.standard_resolution.height/i},wdi_front.getDataLength=function(e,i){var t=0;if(void 0===i)for(var r=0;r<e.dataStorage.length;r++)t+=e.dataStorage[r].length;else for(r=0;r<i.length;r++)t+=i[r].length;return t},wdi_front.getArrayContentLength=function(e,i){for(var t=0,r=0;r<e.length;r++)"finished"!=e[r].finished&&(t+=e[r][i].length);return t},wdi_front.displayFeedItems=function(e,i){if(0!=jQuery("#wdi_feed_"+i.feed_row.wdi_feed_counter+" .wdi_feed_wrapper").length){var t=i.feed_row.wdi_feed_counter,r=jQuery("#wdi_feed_"+t+" .wdi_feed_wrapper");"1"===i.feed_row.resort_after_load_more&&(r.html(""),i.imageIndex=0),1==i.customFilterChanged&&(r.html(""),i.imageIndex=0,i.customFilterChanged=!1);wdi_front.getImgCount(i),e.length;if("pagination"==i.feed_row.feed_display_view){var a=i.feed_row.load_more_number;"image_browser"==i.feed_row.feed_type&&(a=1),(jQuery("#wdi_feed_"+i.feed_row.wdi_feed_counter+' [wdi_page="'+(i.currentPage-1)+'"]').length<a||0==e.length)&&(i.currentPage=--i.currentPage<=1?1:i.currentPage)}for(var d=0;d<e.length;d++){if("image"==e[d].type)var o=wdi_front.getPhotoTemplate(i);else if(e[d].hasOwnProperty("videos"))o=wdi_front.getVideoTemplate(i);else o=wdi_front.getSliderTemplate(i);var n=e[d],s=o(wdi_front.createObject(n,i));r.html(r.html()+s),i.imageIndex++,"pagination"==i.feed_row.feed_display_view&&((d+1)%i.feed_row.pagination_per_page_number==0?i.resIndex+=i.freeSpaces+1:i.resIndex++)}i.wdi_loadedImages=0;var _=!1;i.wdi_load_count=d;t=i.feed_row.wdi_feed_counter,r=jQuery("#wdi_feed_"+t+" img.wdi_img").on("load",function(){i.wdi_loadedImages++,i.wdi_load_count===i.wdi_loadedImages&&0!=i.wdi_loadedImages&&(i.loadedImages=0,i.wdi_load_count=0,wdi_front.allImagesLoaded(i)),!1===_&&(wdi_responsive.columnControl(i,1),_=!0)});1==i.paginatorNextFlag&&wdi_front.updatePagination(i,"next"),i.infiniteScrollFlag=!1}},wdi_front.checkFeedFinished=function(e){for(var i=0;i<e.usersData.length;i++)if(void 0===e.usersData[i].finished)return!1;return!0},wdi_front.sortingOperator=function(e,i){var t;switch(e){case"date":switch(i){case"asc":t=function(e,i){return e.created_time>i.created_time?1:-1};break;case"desc":t=function(e,i){return e.created_time>i.created_time?-1:1}}break;case"likes":switch(i){case"asc":t=function(e,i){return e.likes.count<i.likes.count?-1:1};break;case"desc":t=function(e,i){return e.likes.count<i.likes.count?1:-1}}break;case"comments":switch(i){case"asc":t=function(e,i){return e.comments.count<i.comments.count?-1:1};break;case"desc":t=function(e,i){return e.comments.count<i.comments.count?1:-1}}break;case"random":t=function(e,i){return Math.random()>.5?1:-1}}return t},wdi_front.feedSort=function(e,i){var t=e.feed_row.sort_images_by,r=e.feed_row.display_order;"1"===e.feed_row.resort_after_load_more?e.data=e.data.concat(wdi_front.smartPicker(e,i)):e.data=wdi_front.smartPicker(e,i);var a=wdi_front.sortingOperator(t,r);return e.data.sort(a),e.data},wdi_front.smartPicker=function(e,i){var t=[],r=0,a=[],d=Math.ceil(e.feed_row.number_of_photos/e.usersData.length),o=parseInt(e.feed_row.number_of_photos),n=0;""!=i&&void 0!==i&&null!=i&&(o=parseInt(i),d=Math.ceil(o/wdi_front.activeUsersCount(e)));e.storeRawData(e.usersData,"dataStorageRaw");for(var s=e.dataStorageRaw.sort(function(e,i){return e.length()>i.length()?1:-1}),_=e.usersData.sort(function(e,i){return e.data.length>i.data.length?1:-1}),f=0;f<_.length;f++)if(n+=d,s[f].length()<=n)n-=s[f].length(),t.push(s[f].getData(s[f].length())),r+=t[t.length-1].length;else{r+n>o&&(n=o-r);var l=[];!1===e.auto_trigger?l=l.concat(s[f].getData(n)):l.length+wdi_front.getDataLength(e)+wdi_front.getDataLength(e,t)<e.feed_row.number_of_photos&&(l=l.concat(s[f].getData(n))),n=0,r+=l.length,t.push(l)}for(f=0;f<t.length;f++)void 0===e.dataStorage[f]?e.dataStorage.push(t[f]):e.dataStorage[f]=e.dataStorage[f].concat(t[f]);for(e.parsedData=wdi_front.parseLighboxData(e),f=0;f<t.length;f++)a=a.concat(t[f]);return a},wdi_front.createObject=function(e,i){var t=null!=e.caption?e.caption.text:" ",r="";if("video"==e.type&&(r=e.hasOwnProperty("videos")?e.videos[i.feedVideoResolution].url:""),void 0===e.images[i.feedImageResolution])var a=wdi_url.plugin_url+"images/missing.png";else a=e.images[i.feedImageResolution].url;var d=i.imageIndex,o="square",n=e.images.standard_resolution.height,s=e.images.standard_resolution.width;n>s?o="portrait":n<s&&(o="landscape");var _=e.user.username;return""===_&&(_="no_user"),{id:e.id,caption:wdi_front.escape_tags(t),image_url:a,likes:e.likes.count,comments:e.comments.count,wdi_index:d,wdi_res_index:i.resIndex,wdi_media_user:_,link:e.link,video_url:r,wdi_username:_,wdi_shape:o}},wdi_front.setPage=function(e){var i=e.feed_row.feed_display_view,t=e.feed_row.feed_type;if("pagination"!=i)return"";var r=e.imageIndex;if("image_browser"==t)var a=1;else a=Math.abs(e.feed_row.pagination_per_page_number);return e.paginator=Math.ceil((r+1)/a),e.paginator},wdi_front.getPhotoTemplate=function(e){var i=wdi_front.setPage(e),t="",r="",a="",d="",o="tenweb-i-arrows-out",n="";"blog_style"!=e.feed_row.feed_type&&"image_browser"!=e.feed_row.feed_type||(o=""),""!=i?(r='wdi_page="'+i+'"',sourceAttr="src"):sourceAttr="src",""!=i&&1!=i&&(t="wdi_hidden"),"1"==e.feed_row.show_username_on_thumb&&(n='<span class="wdi_media_user">@<%= wdi_username%></span>'),1==e.feed_row.show_full_description&&"masonry"==e.feed_row.feed_type&&(t+=" wdi_full_caption");var s="";switch("blog_style"!==e.feed_row.feed_type&&(s="masonry"==e.feed_row.feed_type?"wdi_responsive.showMasonryCaption(jQuery(this),"+e.feed_row.wdi_feed_counter+");":"wdi_responsive.showCaption(jQuery(this),"+e.feed_row.wdi_feed_counter+");"),e.feed_row.feed_item_onclick){case"lightbox":a="onclick=wdi_feed_"+e.feed_row.wdi_feed_counter+".galleryBox('<%=id%>')";break;case"instagram":a="onclick=\"window.open ('<%= link%>','_blank')\"",d="wdi_hover_off",o="";break;case"custom_redirect":a="onclick=\"window.open ('"+e.feed_row.redirect_url+"','_self')\"",d="wdi_hover_off",o="";break;case"none":a="",d="wdi_cursor_off wdi_hover_off",o=""}var f='<div class="wdi_feed_item '+t+'" wdi_index=<%= wdi_index%> wdi_res_index=<%= wdi_res_index%> wdi_media_user=<%= wdi_media_user%> '+r+' wdi_type="image" id="wdi_'+e.feed_row.wdi_feed_counter+"_<%=id%>\"><div class=\"wdi_photo_wrap\"><div class=\"wdi_photo_wrap_inner\"><div class=\"wdi_photo_img <%= wdi_shape == 'square' ? 'wdi_shape_square' : (wdi_shape == 'portrait' ? 'wdi_shape_portrait' : (wdi_shape == 'landscape' ? 'wdi_shape_landscape' : 'wdi_shape_square') ) %>\"><img class=\"wdi_img\" "+sourceAttr+'="<%=image_url%>" alt="feed_image" onerror="wdi_front.brokenImageHandler(this);"><div class="wdi_photo_overlay '+d+'" >'+n+'<div class="wdi_thumb_icon" '+a+' style="display:table;width:100%;height:100%;"><div style="display:table-cell;vertical-align:middle;text-align:center;color:white;"><i class="tenweb-i '+o+'"></i></div></div></div></div></div></div>';return"1"!==e.feed_row.show_likes&&"1"!==e.feed_row.show_comments&&"1"!==e.feed_row.show_description||(f+='<div class="wdi_photo_meta">',"1"===e.feed_row.show_likes&&(f+='<div class="wdi_thumb_likes"><i class="tenweb-i tenweb-i-heart-o"> <%= likes%></i></div>'),"1"===e.feed_row.show_comments&&(f+='<div class="wdi_thumb_comments"><i class="tenweb-i tenweb-i-comment-square"> <%= comments%></i></div>'),f+='<div class="wdi_clear"></div>',"1"===e.feed_row.show_description&&(f+='<div class="wdi_photo_title" onclick='+s+" ><%=caption%></div>"),f+="</div>"),f+="</div>",_.template(f)},wdi_front.getSliderTemplate=function(e){var i=wdi_front.setPage(e),t="",r="",a="",d="",o="tenweb-i-clone",n="";"blog_style"!=e.feed_row.feed_type&&"image_browser"!=e.feed_row.feed_type||(o=""),""!=i?(r='wdi_page="'+i+'"',sourceAttr="src"):sourceAttr="src",""!=i&&1!=i&&(t="wdi_hidden"),"1"==e.feed_row.show_username_on_thumb&&(n='<span class="wdi_media_user">@<%= wdi_username%></span>'),1==e.feed_row.show_full_description&&"masonry"==e.feed_row.feed_type&&(t+=" wdi_full_caption");var s="";switch("blog_style"!==e.feed_row.feed_type&&(s="masonry"==e.feed_row.feed_type?"wdi_responsive.showMasonryCaption(jQuery(this),"+e.feed_row.wdi_feed_counter+");":"wdi_responsive.showCaption(jQuery(this),"+e.feed_row.wdi_feed_counter+");"),e.feed_row.feed_item_onclick){case"lightbox":a="onclick=wdi_feed_"+e.feed_row.wdi_feed_counter+".galleryBox('<%=id%>')";break;case"instagram":a="onclick=\"window.open ('<%= link%>','_blank')\"",d="wdi_hover_off",o="tenweb-i-clone";break;case"custom_redirect":a="onclick=\"window.open ('"+e.feed_row.redirect_url+"','_self')\"",d="wdi_hover_off",o="";break;case"none":a="",d="wdi_cursor_off wdi_hover_off",o=""}var f='<div class="wdi_feed_item '+t+'" wdi_index=<%= wdi_index%> wdi_res_index=<%= wdi_res_index%> wdi_media_user=<%= wdi_media_user%> '+r+' wdi_type="slideshow" id="wdi_'+e.feed_row.wdi_feed_counter+"_<%=id%>\"><div class=\"wdi_photo_wrap\"><div class=\"wdi_photo_wrap_inner\"><div class=\"wdi_photo_img <%= wdi_shape == 'square' ? 'wdi_shape_square' : (wdi_shape == 'portrait' ? 'wdi_shape_portrait' : (wdi_shape == 'landscape' ? 'wdi_shape_landscape' : 'wdi_shape_square') ) %>\"><img class=\"wdi_img\" "+sourceAttr+'="<%=image_url%>" alt="feed_image" onerror="wdi_front.brokenImageHandler(this);"><div class="wdi_photo_overlay '+d+'" >'+n+'<div class="wdi_thumb_icon" '+a+' style="display:table;width:100%;height:100%;"><div style="display:table-cell;vertical-align:middle;text-align:center;color:white;"><i class="tenweb-i '+o+'"></i></div></div></div></div></div></div>';return"1"!==e.feed_row.show_likes&&"1"!==e.feed_row.show_comments&&"1"!==e.feed_row.show_description||(f+='<div class="wdi_photo_meta">',"1"===e.feed_row.show_likes&&(f+='<div class="wdi_thumb_likes"><i class="tenweb-i tenweb-i-heart-o"> <%= likes%></i></div>'),"1"===e.feed_row.show_comments&&(f+='<div class="wdi_thumb_comments"><i class="tenweb-i tenweb-i-comment-square"> <%= comments%></i></div>'),f+='<div class="wdi_clear"></div>',"1"===e.feed_row.show_description&&(f+='<div class="wdi_photo_title" onclick='+s+" ><%=caption%></div>"),f+="</div>"),f+="</div>",_.template(f)},wdi_front.replaceToVideo=function(e,i,t){overlayHtml="<video style='width:auto !important; height:auto !important; max-width:100% !important; max-height:100% !important; margin:0 !important;' controls=''><source src='"+e+"' type='video/mp4'>Your browser does not support the video tag. </video>",jQuery("#wdi_feed_"+t+' [wdi_index="'+i+'"] .wdi_photo_wrap_inner').html(overlayHtml),jQuery("#wdi_feed_"+t+' [wdi_index="'+i+'"] .wdi_photo_wrap_inner video').get(0).play()},wdi_front.getVideoTemplate=function(e){var i,t=wdi_front.setPage(e),r="",a="",d="tenweb-i-play",o="",n="",s="";""!=t?(a='wdi_page="'+t+'"',i="src"):i="src",""!=t&&1!=t&&(r="wdi_hidden"),"1"==e.feed_row.show_username_on_thumb&&(s='<span class="wdi_media_user">@<%= wdi_username%></span>'),1==e.feed_row.show_full_description&&"masonry"==e.feed_row.feed_type&&(r+=" wdi_full_caption");var f="";switch("blog_style"!==e.feed_row.feed_type&&(f="masonry"==e.feed_row.feed_type?"wdi_responsive.showMasonryCaption(jQuery(this),"+e.feed_row.wdi_feed_counter+");":"wdi_responsive.showCaption(jQuery(this),"+e.feed_row.wdi_feed_counter+");"),e.feed_row.feed_item_onclick){case"lightbox":o="onclick=wdi_feed_"+e.feed_row.wdi_feed_counter+".galleryBox('<%=id%>')";break;case"instagram":o="onclick=\"window.open ('<%= link%>','_blank')\"",n="wdi_hover_off",d="tenweb-i-play";break;case"custom_redirect":o="onclick=\"window.open ('"+e.feed_row.redirect_url+"','_self')\"",n="wdi_hover_off",d="";break;case"none":n="wdi_cursor_off wdi_hover_off",d="","blog_style"!=e.feed_row.feed_type&&"image_browser"!=e.feed_row.feed_type||(o="onclick=wdi_front.replaceToVideo('<%= video_url%>','<%= wdi_index%>',"+e.feed_row.wdi_feed_counter+")",n="",d="tenweb-i-play")}var l='<div class="wdi_feed_item '+r+'" wdi_index=<%= wdi_index%> wdi_res_index=<%= wdi_res_index%> wdi_media_user=<%= wdi_media_user%> '+a+' wdi_type="image" id="wdi_'+e.feed_row.wdi_feed_counter+"_<%=id%>\"><div class=\"wdi_photo_wrap\"><div class=\"wdi_photo_wrap_inner\"><div class=\"wdi_photo_img <%= wdi_shape == 'square' ? 'wdi_shape_square' : (wdi_shape == 'portrait' ? 'wdi_shape_portrait' : (wdi_shape == 'landscape' ? 'wdi_shape_landscape' : 'wdi_shape_square') ) %>\"><img class=\"wdi_img\" "+i+'="<%=image_url%>" alt="feed_image" onerror="wdi_front.brokenImageHandler(this);"><div class="wdi_photo_overlay '+n+'" '+o+">"+s+'<div class="wdi_thumb_icon" style="display:table;width:100%;height:100%;"><div style="display:table-cell;vertical-align:middle;text-align:center;color:white;"><i class="tenweb-i '+d+'"></i></div></div></div></div></div></div>';return"1"!==e.feed_row.show_likes&&"1"!==e.feed_row.show_comments&&"1"!==e.feed_row.show_description||(l+='<div class="wdi_photo_meta">',"1"===e.feed_row.show_likes&&(l+='<div class="wdi_thumb_likes"><i class="tenweb-i tenweb-i-heart-o"> <%= likes%></i></div>'),"1"===e.feed_row.show_comments&&(l+='<div class="wdi_thumb_comments"><i class="tenweb-i tenweb-i-comment-square"> <%= comments%></i></div>'),l+='<div class="wdi_clear"></div>',"1"===e.feed_row.show_description&&(l+='<div class="wdi_photo_title" onclick='+f+" ><%=caption%></div>"),l+="</div>"),l+="</div>",_.template(l)},wdi_front.bindEvents=function(e){0!=jQuery("#wdi_feed_"+e.feed_row.wdi_feed_counter+" .wdi_feed_wrapper").length&&("load_more_btn"==e.feed_row.feed_display_view&&jQuery("#wdi_feed_"+e.feed_row.wdi_feed_counter+" .wdi_load_more_container").on(wdi_front.clickOrTouch,function(){wdi_front.loadMore(jQuery(this).find(".wdi_load_more_wrap"))}),"pagination"==e.feed_row.feed_display_view&&(jQuery("#wdi_feed_"+e.feed_row.wdi_feed_counter+" #wdi_next").on(wdi_front.clickOrTouch,function(){wdi_front.paginatorNext(jQuery(this),e)}),jQuery("#wdi_feed_"+e.feed_row.wdi_feed_counter+" #wdi_prev").on(wdi_front.clickOrTouch,function(){wdi_front.paginatorPrev(jQuery(this),e)}),jQuery("#wdi_feed_"+e.feed_row.wdi_feed_counter+" #wdi_last_page").on(wdi_front.clickOrTouch,function(){wdi_front.paginationLastPage(jQuery(this),e)}),jQuery("#wdi_feed_"+e.feed_row.wdi_feed_counter+" #wdi_first_page").on(wdi_front.clickOrTouch,function(){wdi_front.paginationFirstPage(jQuery(this),e)}),e.paginatorNextFlag=!1),"infinite_scroll"==e.feed_row.feed_display_view&&(jQuery(window).on("scroll",function(){wdi_front.infiniteScroll(e)}),e.infiniteScrollFlag=!1))},wdi_front.infiniteScroll=function(e){jQuery(window).scrollTop()+jQuery(window).height()-100>=jQuery("#wdi_feed_"+e.feed_row.wdi_feed_counter+" #wdi_infinite_scroll").offset().top&&(!1===e.infiniteScrollFlag&&0==e.stopInfiniteScrollFlag?(e.infiniteScrollFlag=!0,wdi_front.loadMore(jQuery("#wdi_feed_"+e.feed_row.wdi_feed_counter+" #wdi_infinite_scroll"),e)):e.stopInfiniteScrollFlag&&wdi_front.allImagesLoaded(e))},wdi_front.paginationFirstPage=function(e,i){if(1!=i.paginator&&1!=i.currentPage){var t=i.currentPage;i.currentPage=1,wdi_front.updatePagination(i,"custom",t),e.parent().find("#wdi_last_page").removeClass("wdi_disabled"),e.addClass("wdi_disabled")}else e.addClass("wdi_disabled")},wdi_front.paginationLastPage=function(e,i){if(1!=i.paginator&&i.currentPage!=i.paginator){var t=i.currentPage;i.currentPage=i.paginator,wdi_front.updatePagination(i,"custom",t),e.addClass("wdi_disabled"),e.parent().find("#wdi_first_page").removeClass("wdi_disabled")}},wdi_front.paginatorNext=function(e,i){var t=e.parent().find("#wdi_last_page"),r=e.parent().find("#wdi_first_page");if(i.paginatorNextFlag=!0,i.paginator!=i.currentPage||wdi_front.checkFeedFinished(i))i.paginator>i.currentPage&&(i.currentPage++,wdi_front.updatePagination(i,"next"),i.paginator>i.currentPage?t.removeClass("wdi_disabled"):t.addClass("wdi_disabled"));else{i.currentPage++;var a=i.feed_row.number_of_photos;wdi_front.loadMore(e,i,a),t.addClass("wdi_disabled")}r.removeClass("wdi_disabled")},wdi_front.paginatorPrev=function(e,i){var t=e.parent().find("#wdi_last_page"),r=e.parent().find("#wdi_first_page");1!=i.currentPage?(i.currentPage--,wdi_front.updatePagination(i,"prev"),t.removeClass("wdi_disabled"),1==i.currentPage&&r.addClass("wdi_disabled")):r.addClass("wdi_disabled")},wdi_front.updatePagination=function(e,i,t){var r="#wdi_feed_"+e.feed_row.wdi_feed_counter;switch(jQuery(r+' [wdi_page="'+e.currentPage+'"]').each(function(){jQuery(this).removeClass("wdi_hidden")}),i){case"next":t=e.currentPage-1;jQuery(r+" .wdi_feed_wrapper").height(jQuery(".wdi_feed_wrapper").height()),jQuery(r+' [wdi_page="'+t+'"]').each(function(){jQuery(this).addClass("wdi_hidden")});break;case"prev":t=e.currentPage+1;jQuery(r+" .wdi_feed_wrapper").height(jQuery(".wdi_feed_wrapper").height()),jQuery(r+' [wdi_page="'+t+'"]').each(function(){jQuery(this).addClass("wdi_hidden")});break;case"custom":(t=t)!=e.currentPage&&(jQuery(r+" .wdi_feed_wrapper").height(jQuery(".wdi_feed_wrapper").height()),jQuery(r+' [wdi_page="'+t+'"]').each(function(){jQuery(this).addClass("wdi_hidden")}))}e.paginatorNextFlag=!1,jQuery(r+" .wdi_feed_wrapper").css("height","auto"),jQuery(r+" #wdi_current_page").text(e.currentPage)},wdi_front.loadMore=function(e,i){var t=0;if(""!=e&&void 0!==e&&"initial"!=e&&"initial-keep"!=e)var r=window[e.parent().parent().parent().parent().attr("id")];if(void 0!==i)r=i;for(var a=0,d=0,o=0;o<r.userSortFlags.length;o++)if(!0===r.userSortFlags[o].flag){a++;for(var n=0;n<r.usersData.length;n++)r.userSortFlags[o].id===r.usersData[n].user_id&&"finished"===r.usersData[n].finished&&d++}if(a!==d||0==a){r.auto_trigger=""===e,wdi_front.ajaxLoader(r),"masonry"===r.feed_row.feed_type&&"pagination"==r.feed_row.feed_display_view&&jQuery("#wdi_feed_"+wdi_front.feed_counter+" .wdi_full_caption").each(function(){jQuery(this).find(".wdi_photo_title").trigger(wdi_front.clickOrTouch)});for(o=0;o<r.usersData.length;o++)"finished"===r.usersData[o].finished&&t++;t===r.usersData.length&&(wdi_front.allImagesLoaded(r),jQuery("#wdi_feed_"+r.feed_row.wdi_feed_counter+" .wdi_load_more").remove());var s=r.usersData;r.loadMoreDataCount=r.feed_users.length;for(o=0;o<s.length;o++){var _=s[o].pagination,f={user_id:s[o].user_id,username:s[o].username};if(""!=_.next_url&&null!=_.next_url&&void 0!==_.next_url){var l=_.next_url;wdi_front.loadMoreRequest(f,l,r,e)}else"initial-keep"==e&&(r.temproraryUsersData[o]=r.usersData[o]),r.loadMoreDataCount--,wdi_front.checkForLoadMoreDone(r,e)}}},wdi_front.loadMoreRequest=function(e,i,t,r){if(t.mediaRequestsDone){t.usersData;var a="",d=function(i){if(void 0!==i.meta&&void 0!==i.meta.error_type&&wdi_front.show_alert(!1,i,t),""===i||void 0===i||null==i)return a=wdi_front_messages.network_error,t.loadMoreDataCount--,void wdi_front.show_alert(a,i,t);if(200!=i.meta.code)return a=i.meta.error_message,t.loadMoreDataCount--,void wdi_front.show_alert(a,i,t);i.user_id=e.user_id,i.username=e.username;for(var d=0;d<t.usersData.length;d++)i.user_id===t.usersData[d].user_id&&("#"===i.user_id[0]&&(i.data=wdi_front.appendRequestHashtag(i.data,i.user_id)),"initial-keep"==r&&(t.temproraryUsersData[d]=t.usersData[d]),t.usersData[d]=i,t.loadMoreDataCount--);wdi_front.checkForLoadMoreDone(t,r)};"#"!==e.username[0]?t.instagram.requestByUrl(i,{success:d}):t.instagram.getTagRecentMedia(e.username,{success:d},i,t.feed_row.hashtag_top_recent)}},wdi_front.checkForLoadMoreDone=function(e,i){var t=e.feed_row.load_more_number,r=e.feed_row.number_of_photos;if(0==e.loadMoreDataCount){e.temproraryUsersData=wdi_front.mergeData(e.temproraryUsersData,e.usersData);var a=wdi_front.getArrayContentLength(e.temproraryUsersData,"data");if("initial-keep"==i&&(i="initial"),"initial"==i)a<r&&!wdi_front.userHasNoPhoto(e,e.temproraryUsersData)&&e.instagramRequestCounter<=e.maxConditionalFiltersRequestCount?wdi_front.loadMore("initial",e):(e.usersData=e.temproraryUsersData,wdi_front.displayFeed(e),wdi_front.applyFilters(e),e.temproraryUsersData=[]);else if(a<t&&!wdi_front.userHasNoPhoto(e,e.temproraryUsersData)&&e.instagramRequestCounter<=e.maxConditionalFiltersRequestCount)wdi_front.loadMore(void 0,e);else{if(e.usersData=e.temproraryUsersData,!wdi_front.activeUsersCount(e))return;wdi_front.displayFeed(e,t),wdi_front.applyFilters(e),e.temproraryUsersData=[]}}},wdi_front.allDataHasFinished=function(e){for(var i=0,t=0;t<e.dataStorageRaw.length;t++)0==e.dataStorageRaw[t].length()&&1==e.dataStorageRaw[t].locked&&i++;return i==e.dataStorageRaw.length},wdi_front.mergeData=function(e,i){for(var t=0;t<i.length;t++)if(void 0!==e[t]){if("finished"==i[t].finished)continue;if(void 0===e[t].pagination.next_max_id&&void 0===e[t].pagination.next_max_like_id)continue;e[t].data=e[t].data.concat(i[t].data),e[t].pagination=i[t].pagination,e[t].user_id=i[t].user_id,e[t].username=i[t].username,e[t].meta=i[t].meta}else e.push(i[t]);return e},wdi_front.brokenImageHandler=function(e){var i=e.src.split("/p/");if(void 0!==i[0]&&void 0!==i[1]&&"https://www.instagram.com"!==i[0]){var t=wdi_baseName(i[0])+"/p/"+i[1];e.src=t}else e.src=wdi_url.plugin_url+"images/missing.png";return e.onerror="",!0},wdi_front.ajaxLoader=function(e){var i,t=e.feed_row.wdi_feed_counter,r=jQuery("#wdi_feed_"+t);("load_more_btn"==e.feed_row.feed_display_view&&(r.find(".wdi_load_more").addClass("wdi_hidden"),r.find(".wdi_spinner").removeClass("wdi_hidden")),"infinite_scroll"==e.feed_row.feed_display_view)&&(0==r.find(".wdi_ajax_loading").length?(i=jQuery('<div class="wdi_ajax_loading"><div><div><img class="wdi_load_more_spinner" src="'+wdi_url.plugin_url+'images/ajax_loader.png"></div></div></div>'),r.append(i)):i=r.find(".wdi_ajax_loading"),i.removeClass("wdi_hidden"))},wdi_front.allImagesLoaded=function(e){var i=wdi_front.getDataLength(e);e.mediaRequestsDone||jQuery("#wdi_feed_"+e.feed_row.wdi_feed_counter+" .wdi_feed_wrapper").remove("wdi_nomedia"),0!=i||!e.mediaRequestsDone||0!=e.feed_row.conditional_filters.length&&0!=e.feed_row.conditional_filter_enable||jQuery("#wdi_feed_"+e.feed_row.wdi_feed_counter+" .wdi_feed_wrapper").append("<p class='wdi_nomedia'>"+wdi_front_messages.feed_nomedia+"</p>");var t=e.feed_row.wdi_feed_counter,r=jQuery("#wdi_feed_"+t);"load_more_btn"==e.feed_row.feed_display_view&&(r.find(".wdi_load_more").removeClass("wdi_hidden"),r.find(".wdi_spinner").addClass("wdi_hidden")),"infinite_scroll"==e.feed_row.feed_display_view&&jQuery("#wdi_feed_"+e.feed_row.wdi_feed_counter+" .wdi_ajax_loading").addClass("wdi_hidden"),r.trigger("wdi_feed_loaded")},wdi_front.show=function(e,i){var t,r,a,d=i.feed_row.wdi_feed_counter,o=jQuery("#wdi_feed_"+d+" .wdi_feed_container"),n=this;switch(e){case"header":t={feed_thumb:i.feed_row.feed_thumb,feed_name:i.feed_row.feed_name},r=wdi_front.getHeaderTemplate()(t),a=o.find(".wdi_feed_header").html(),o.find(".wdi_feed_header").html(a+r);break;case"users":!function(e){o.find(".wdi_feed_users").html("");var i=e.feed_users;e.feed_row.access_token;e.headerUserinfo=[],function t(){if(e.headerUserinfo.length==i.length)return void function(e,i){o.find(".wdi_feed_users").html("");for(var t=0;t<e.length;t++)if(null!==e[t]){var r={flag:!1,id:e[t].id,name:e[t].name},a="#"==e[t].name[0]?"wdi_header_hashtag":"",d=wdi_extractHostname(e[t].website),n={user_index:t,user_img_url:e[t].url,counts:e[t].counts,feed_counter:i.feed_row.wdi_feed_counter,user_name:e[t].name,bio:wdi_front.escape_tags(e[t].bio),website:d,website_url:e[t].website,usersCount:i.feed_row.feed_users.length,hashtagClass:a},s=wdi_front.getUserTemplate(i,e[t].name),_=s(n),f=o.find(".wdi_feed_users").html();o.find(".wdi_feed_users").html(f+_),i.userSortFlags.push(r);var l=jQuery('<div class="wdi_clear"></div>')}o.find(".wdi_feed_users").append(l),wdi_front.updateUsersImages(i)}(e.headerUserinfo,e);var r=i[e.headerUserinfo.length];"string"==typeof r&&"self"===r?e.instagram.getSelfInfo({success:function(i){if(void 0!==i.meta&&void 0!==i.meta.error_type&&wdi_front.show_alert(!1,i,e),0!=(i=n.checkMediaResponse(i,e))&&400===i.meta.code&&"APINotAllowedError"===i.meta.error_type){var r=null;e.headerUserinfo.push(r),0,t()}if(0!=i&&200===i.meta.code){var r={id:i.data.id,name:i.data.username,url:i.data.profile_picture,bio:wdi_front.escape_tags(i.data.bio),counts:i.data.counts,website:wdi_front.escape_tags(i.data.website),full_name:wdi_front.escape_tags(i.data.full_name)};e.headerUserinfo.push(r),0,t()}},args:{ignoreFiltering:!0}}):"user"==n.getInputType(r.username)&&e.instagram.getSelfInfo({success:function(i){if(void 0!==i.meta&&void 0!==i.meta.error_type&&wdi_front.show_alert(!1,i,e),0!=(i=n.checkMediaResponse(i,e))&&400===i.meta.code&&"APINotAllowedError"===i.meta.error_type){var r=null;e.headerUserinfo.push(r),0,t()}if(0!=i&&200===i.meta.code){var r={id:i.data.id,name:i.data.username,url:i.data.profile_picture,bio:wdi_front.escape_tags(i.data.bio),counts:i.data.counts,website:wdi_front.escape_tags(i.data.website),full_name:wdi_front.escape_tags(i.data.full_name)};e.headerUserinfo.push(r),0,t()}},args:{ignoreFiltering:!0}})}()}(i)}},wdi_front.getUserTemplate=function(e,i){var t,r,a=e.dataCount;switch(i[0]){case"#":t="//instagram.com/explore/tags/"+i.substr(1,i.length);break;default:t="//instagram.com/"+i}r="onclick='"+('window.open("'+t+'","_blank")')+"'";var d='<div class="wdi_single_user" user_index="<%=user_index%>"><div class="wdi_header_user_text <%=hashtagClass%>"><div class="wdi_user_img_wrap"><img onerror="wdi_front.brokenImageHandler(this);" src="<%= user_img_url%>">';return a>1&&(d+='<div title="'+wdi_front_messages.filter_title+'" class="wdi_filter_overlay"><div class="wdi_filter_icon"><span onclick="wdi_front.addFilter(<%=user_index%>,<%=feed_counter%>);" class="tenweb-i tenweb-i-filter"></span></div></div>'),d+="</div>",d+="<h3 "+r+"><%= user_name%></h3>","#"!==i[0]?("1"==e.feed_row.follow_on_instagram_btn&&(d+='<div class="wdi_user_controls"><div class="wdi_follow_btn" onclick="window.open(\'//instagram.com/<%= user_name%>\',\'_blank\')"><span> '+wdi_front_messages.follow+"</span></div></div>"),d+='<div class="wdi_media_info"><p class="wdi_posts"><span class="tenweb-i tenweb-i-camera-retro"></span><%= counts.media%></p><p class="wdi_followers"><span class="tenweb-i tenweb-i-user"></span><%= counts.followed_by%></p></div>'):d+='<div class="wdi_user_controls"></div><div class="wdi_media_info"><p class="wdi_posts"><span class="tenweb-i tenweb-i-camera-retro"></span><%= counts.media%></p><p class="wdi_followers"><span></span></p></div>',d+='<div class="wdi_clear"></div>',1==a&&"#"!==i[0]&&"1"==e.feed_row.display_user_info&&(d+='<div class="wdi_bio"><%= bio%></div>',d+='<div class="wdi_website"><a target="_blank" href="<%= website_url%>" ><%= website%></a></div>'),d+="</div></div>",_.template(d)},wdi_front.getHeaderTemplate=function(){return _.template('<div class="wdi_header_wrapper"><div class="wdi_header_img_wrap"><img src="<%=feed_thumb%>"></div><div class="wdi_header_text"><%=feed_name%></div><div class="wdi_clear"></div>')},wdi_front.addFilter=function(e,i){var t=window["wdi_feed_"+i];if(!(t.dataCount<2)&&0==t.nowLoadingImages){var r=jQuery("#wdi_feed_"+t.feed_row.wdi_feed_counter+'_users [user_index="'+e+'"]');r.find(".wdi_filter_overlay").toggleClass("wdi_filter_active_bg"),r.find(".wdi_header_user_text h3").toggleClass("wdi_filter_active_col"),r.find(".wdi_media_info").toggleClass("wdi_filter_active_col"),r.find(".wdi_follow_btn").toggleClass("wdi_filter_active_col"),t.customFilterChanged=!0,0==t.userSortFlags[e].flag?t.userSortFlags[e].flag=!0:t.userSortFlags[e].flag=!1;for(var a=0,d=0;d<t.userSortFlags.length;d++)1==t.userSortFlags[d].flag&&a++;"pagination"==t.feed_row.feed_display_view&&(t.resIndex=0),0!=a?(wdi_front.filterData(t),wdi_front.displayFeed(t)):(t.customFilteredData=t.dataStorageList,wdi_front.displayFeed(t)),"pagination"==t.feed_row.feed_display_view&&(t.paginator=Math.ceil(t.imageIndex/parseInt(t.feed_row.pagination_per_page_number)),t.currentPage=t.paginator,wdi_front.updatePagination(t,"custom",1),jQuery("#wdi_first_page").removeClass("wdi_disabled"),jQuery("#wdi_last_page").addClass("wdi_disabled"))}},wdi_front.filterData=function(e){var i=e.userSortFlags;e.customFilteredData=[];for(var t=0;t<e.dataStorageList.length;t++)for(var r=0;r<i.length;r++)(void 0!==e.dataStorageList[t].user.id&&e.dataStorageList[t].user.id==i[r].id||e.dataStorageList[t].wdi_hashtag==i[r].name)&&1==i[r].flag&&e.customFilteredData.push(e.dataStorageList[t])},wdi_front.applyFilters=function(e){for(var i=0;i<e.userSortFlags.length;i++)if(1==e.userSortFlags[i].flag){jQuery("#wdi_feed_"+e.feed_row.wdi_feed_counter+'[user_index="'+i+'"]');wdi_front.addFilter(i,e.feed_row.wdi_feed_counter),wdi_front.addFilter(i,e.feed_row.wdi_feed_counter)}},wdi_front.getImgCount=function(e){for(var i=e.dataStorage,t=0,r=0;r<i.length;r++)t+=i[r].length;return t},wdi_front.parseLighboxData=function(e,i){var t=e.dataStorage,r=e.feed_row.sort_images_by,a=e.feed_row.display_order,d=wdi_front.sortingOperator(r,a),o=[],n=[],s={};if(1==i)o=e.customFilteredData;else{for(var _=0;_<t.length;_++)for(var f=0;f<t[_].length;f++)o.push(t[_][f]);o.sort(d)}for(_=0;_<o.length;_++)s={alt:"",avg_rating:"",comment_count:o[_].comments.count,date:wdi_front.convertUnixDate(o[_].created_time),description:wdi_front.getDescription(null!==o[_].caption?wdi_front.escape_tags(o[_].caption.text):""),filename:wdi_front.getFileName(o[_]),filetype:wdi_front.getFileType(o[_]),hit_count:"0",id:o[_].id,image_url:o[_].link,number:0,rate:"",rate_count:"0",username:o[_].user.username,profile_picture:o[_].user.profile_picture,thumb_url:o[_].link+"media/?size=t",comments_data:o[_].comments.data,images:o[_].images,carousel_media:void 0!==o[_].carousel_media?o[_].carousel_media:null},n.push(s);return n},wdi_front.convertUnixDate=function(e){var i=parseInt(e),t=new Date(0);t.setUTCSeconds(i);var r=t.getFullYear()+"-"+t.getMonth()+"-"+t.getDate();return r+=" "+t.getHours()+":"+t.getMinutes()},wdi_front.getDescription=function(e){return e=e.replace(/\r?\n|\r/g," ")},wdi_front.getFileName=function(e){var i=e.link;if("video"===e.type&&e.hasOwnProperty("videos"))return e.videos.standard_resolution.url;var t=i.split("/");return t[t.length-2]},wdi_front.getFileType=function(e){return"video"==e.type&&e.hasOwnProperty("videos")?"EMBED_OEMBED_INSTAGRAM_VIDEO":"EMBED_OEMBED_INSTAGRAM_IMAGE"},wdi_front.array_max=function(e){for(var i=e[0],t=0,r=1;r<e.length;r++)i<e[r]&&(i=e[r],t=r);return{value:i,index:t}},wdi_front.array_min=function(e){for(var i=e[0],t=0,r=1;r<e.length;r++)i>e[r]&&(i=e[r],t=r);return{value:i,index:t}},wdi_front.activeUsersCount=function(e){for(var i=0,t=0;t<e.usersData.length;t++)"finished"!=e.usersData[t].finished&&i++;return i},wdi_front.checkMediaResponse=function(e,i){return""!=e&&void 0!==e&&null!=e&&400===e.meta.code&&"APINotAllowedError"===e.meta.error_type?e:""==e||void 0===e||null==e?(errorMessage=wdi_front_messages.connection_error,wdi_front.show_alert(errorMessage,e,i),!1):200!=e.meta.code?(errorMessage=e.meta.error_message,wdi_front.show_alert(errorMessage,e,i),!1):e},wdi_front.stripHashtag=function(e){switch(e[0]){case"#":return e.substr(1,e.length);default:return e}},wdi_front.getInputType=function(e){switch(e[0]){case"#":return"hashtag";case"%":return"location";default:return"user"}},wdi_front.regexpTestCaption=function(e,i){var t=!1,r=!1,a=i.replace(/[-[\]{}()*+?.,\\^$|]/g,"\\$&"),d=new RegExp("(?:^|\\s)"+a+"(?:^|\\s)"),o=new RegExp("(?:^|\\s)"+a,"g");for(null!=d.exec(e)&&(t=!0);null!=(match=o.exec(e));)match.index==e.length-i.length-1&&(r=!0);return 1==t||1==r},wdi_front.replaceNewLines=function(e){var i,t=[];for(e=e.replace(/\r?\n|\r/g,"vUkCJvN2ps3t"),i=new RegExp("vUkCJvN2ps3t","g");null!=(match=i.exec(e));)t.push(match.index);for(var r=e.split("vUkCJvN2ps3t"),a=0,d=0;d<r.length;d++)""==r[d]?a++:a=0,a>0&&(r.splice(d,1),a--,d--);return e=r.join(" ")},wdi_front.isEmptyObject=function(e){for(var i in e)if(e.hasOwnProperty(i))return!1;return!0};var WDIFeed=function(e){this.data=e.data,this.dataCount=e.dataCount,this.feed_row=e.feed_row,this.usersData=e.usersData,_this=this,this.set_images_loading_flag=function(e){window.addEventListener("load",function(){e.nowLoadingImages=!1})},this.set_images_loading_flag(_this)};function wdi_extractHostname(e){return void 0===e||""===e?"":e.replace(/(^\w+:|^)\/\//,"")}WDIFeed.prototype.conditionalFilter=function(e,i){var t=this.feed_row.conditional_filter_type,r=this.feed_row.conditional_filters;if(1==i.ignoreFiltering||(e=this.avoidDuplicateMedia(e)),!wdi_front.isJsonString(r))return e;if(0==(r=JSON.parse(r)).length)return e;if("0"==this.feed_row.conditional_filter_enable)return e;switch(this.instagramRequestCounter++,t){case"AND":e=this.applyANDLogic(e,r,this);break;case"OR":e=this.applyORLogic(e,r,this);break;case"NOR":e=this.applyNORLogic(e,r,this)}return e},WDIFeed.prototype.applyANDLogic=function(e,i){for(var t=0;t<i.length;t++)e=this.filterResponse(e,i[t]);return e},WDIFeed.prototype.applyORLogic=function(e,i){for(var t,r,a=[],d=[],o=0;o<i.length;o++)t=this.filterResponse(e,i[o]),a=a.concat(t.data),t={};for(o=0;o<a.length;o++)r=a[o],this.mediaExists(r,d)||this.mediaExists(r,this.dataStorageList)||d.push(r);return{data:d,meta:e.meta,pagination:e.pagination}},WDIFeed.prototype.applyNORLogic=function(e,i){for(var t=e,r=this.applyORLogic(e,i,this),a=[],d=0;d<t.data.length;d++)this.mediaExists(t.data[d],r.data)||a.push(t.data[d]);return{data:a,meta:t.meta,pagination:t.pagination}},WDIFeed.prototype.mediaExists=function(e,i){for(var t=0;t<i.length;t++)if(e.id==i[t].id)return!0;return!1},WDIFeed.prototype.filterResponse=function(e,i){switch(i.filter_type){case"hashtag":return this.filterByHashtag(e,i);case"username":return this.filterByUsername(e,i);case"mention":return this.filterByMention(e,i);case"description":return this.filterByDescription(e,i);case"location":return this.filterByLocation(e,i);case"url":return this.filterByUrl(e,i)}},WDIFeed.prototype.filterByHashtag=function(e,i){for(var t,r=[],a=0;a<e.data.length;a++){t=e.data[a];for(var d=0;d<t.tags.length;d++)tag=t.tags[d],tag.toLowerCase()==i.filter_by.toLowerCase()&&r.push(t)}return{data:r,meta:e.meta,pagination:e.pagination}},WDIFeed.prototype.filterByUsername=function(e,i){for(var t,r=[],a=0;a<e.data.length;a++)(t=e.data[a]).user.username.toLowerCase()==i.filter_by.toLowerCase()&&r.push(t);return{data:r,meta:e.meta,pagination:e.pagination}},WDIFeed.prototype.filterByMention=function(e,i){for(var t,r=[],a=0;a<e.data.length;a++)null!==(t=e.data[a]).caption&&-1!=t.caption.text.toLowerCase().indexOf("@"+i.filter_by.toLowerCase())&&r.push(t);return{data:r,meta:e.meta,pagination:e.pagination}},WDIFeed.prototype.filterByDescription=function(e,i){for(var t,r,a=[],d=0;d<e.data.length;d++)if(null!==(t=e.data[d]).caption){r=t.caption.text.toLowerCase(),r=wdi_front.replaceNewLines(r);var o=i.filter_by.toLowerCase();wdi_front.regexpTestCaption(r,o)&&a.push(t)}return{data:a,meta:e.meta,pagination:e.pagination}},WDIFeed.prototype.filterByLocation=function(e,i){for(var t,r=[],a=0;a<e.data.length;a++)null!==(t=e.data[a]).location&&t.location.id==i.filter_by&&r.push(t);return{data:r,meta:e.meta,pagination:e.pagination}},WDIFeed.prototype.filterByUrl=function(e,i){var t,r=[];i.filter_by=this.getIdFromUrl(i.filter_by);for(var a=0;a<e.data.length;a++)null!==(t=e.data[a]).link&&this.getIdFromUrl(t.link)==i.filter_by&&r.push(t);return{data:r,meta:e.meta,pagination:e.pagination}},WDIFeed.prototype.getIdFromUrl=function(e){for(var i=e.split("/"),t=!1,r=0;r<i.length;r++)if("p"==i[r]&&void 0!==i[r+1]){t=i[r+1];break}return t},WDIFeed.prototype.avoidDuplicateMedia=function(e){var i=e.data,t=[];void 0===i&&(i=[]);for(var r=0;r<i.length;r++)this.mediaExists(i[r],this.dataStorageList)||this.mediaExists(i[r],t)||this.mediaExists(i[r],this.conditionalFilterBuffer)||t.push(i[r]);return this.conditionalFilterBuffer=this.conditionalFilterBuffer.concat(t),{data:t,meta:e.meta,pagination:e.pagination}},WDIFeed.prototype.storeRawData=function(e,i){var t=this;if("object"==typeof this[i]&&"number"==typeof this[i].length)for(var r=0;r<e.length;r++){var a="";wdi_front.isHashtag(e[r].user_id)?void 0!==e[r].pagination.cursors&&(a=e[r].pagination.cursors.after):"liked"==t.feed_row.liked_feed?void 0===(a=e[r].pagination.next_max_like_id)&&(a=""):(null==e[r].pagination&&(e[r].pagination=[]),void 0===(a=e[r].pagination.next_max_id)&&(a="")),void 0===this[i][r]?this[i].push({data:e[r].data,index:0,locked:!1,hash_id:a,usersDataFinished:!1,userId:e[r].user_id,length:function(){return this.data.length-this.index},getData:function(e){var i=this.data.slice(this.index,this.index+e);if(this.index+=Math.min(e,this.length()),this.index==this.data.length&&1==this.locked&&0==this.usersDataFinished)for(var r=0;r<t.usersData.length;r++)if(t.usersData[r].user_id==this.userId){t.usersData[r].finished="finished",this.usersDataFinished=!0;break}return i}}):0==this[i][r].locked&&(a!=this[i][r].hash_id?(this[i][r].data=this[i][r].data.concat(e[r].data),this[i][r].hash_id=a):this[i][r].locked=!0)}},wdi_front.updateUsersIfNecessary=function(e){for(var i=e.feed_users,t=!1,r=0;r<i.length;r++)"#"!=i[r].username.substr(0,1)?""!=i[r].id&&"username"!=i[r].id||(t=!0,e.instagram.searchForUsersByName(i[r].username,{success:function(t){if(void 0!==t.meta&&void 0!==t.meta.error_type&&wdi_front.show_alert(!1,t,e),200==t.meta.code&&t.data.length>0){for(var r=!1,a=0;a<t.data.length;a++)if(t.data[a].username==t.args.username){r=!0;break}if(r)for(var d=0;d<i.length;d++)t.data[a].username==i[d].username&&(i[d].id=t.data[a].id)}for(var o=!1,n=0;n<i.length;n++)if(""==i[n].id||"username"==i[n].id){o=!0;break}o||(e.feed_row.feed_users=JSON.stringify(i),wdi_front.init(e))},username:i[r].username})):i[r].id=i[r].username;return t},void 0!==wdi_ajax.ajax_response?jQuery(document).one("ajaxStop",function(){"not_declared"!=wdi_front.type&&(wdi_front.clickOrTouch=wdi_front.detectEvent(),wdi_front.globalInit())}):jQuery(document).ready(function(){"not_declared"!=wdi_front.type&&(wdi_front.clickOrTouch=wdi_front.detectEvent(),wdi_front.globalInit())});
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: webdorado,10web,progmastery
|
|
3 |
Tags: custom instagram feed, feed, instagram, hashtag, Instagram feed, instagram gallery, instagram posts, Instagram images, Instagram photos, lightbox, photos,instagram account
|
4 |
Requires at least: 3.9
|
5 |
Requires PHP: 5.2
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 1.3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -12,7 +12,7 @@ Formerly "10Web Instagram Feed". 10Web Social Photo Feed for Instagram is the le
|
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
10Web Social Photo Feed for Instagram is the leading plugin for easily presenting a customizable Instagram feed on your website.
|
16 |
|
17 |
= Useful Links: =
|
18 |
|
@@ -506,6 +506,10 @@ Please make sure you don't have any important information before you proceed.
|
|
506 |
|
507 |
== Changelog ==
|
508 |
|
|
|
|
|
|
|
|
|
509 |
= 1.3.21 =
|
510 |
Added: Ask a question button.
|
511 |
|
3 |
Tags: custom instagram feed, feed, instagram, hashtag, Instagram feed, instagram gallery, instagram posts, Instagram images, Instagram photos, lightbox, photos,instagram account
|
4 |
Requires at least: 3.9
|
5 |
Requires PHP: 5.2
|
6 |
+
Tested up to: 5.3
|
7 |
+
Stable tag: 1.3.22
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
10Web Social Photo Feed for Instagram is the leading plugin for easily presenting a customizable Instagram feed on your website.
|
16 |
|
17 |
= Useful Links: =
|
18 |
|
506 |
|
507 |
== Changelog ==
|
508 |
|
509 |
+
= 1.3.22 =
|
510 |
+
Improved: Do not use Font Awesome.
|
511 |
+
Fixed: Do not show username(no user) for hashtags.
|
512 |
+
|
513 |
= 1.3.21 =
|
514 |
Added: Ask a question button.
|
515 |
|
templates/default-themes.php
CHANGED
@@ -84,7 +84,7 @@ function wdi_get_default_themes(){
|
|
84 |
'lightbox_close_btn_full_color'=>'#000000',
|
85 |
'lightbox_close_btn_hover_color'=>'#000000',
|
86 |
'lightbox_comment_share_button_color'=>'#ffffff',
|
87 |
-
'lightbox_rl_btn_style'=>'
|
88 |
'lightbox_rl_btn_bg_color'=>'#2a5b83',
|
89 |
'lightbox_rl_btn_transparent'=>'80',
|
90 |
'lightbox_rl_btn_box_shadow'=>'none',
|
@@ -331,7 +331,7 @@ function wdi_get_default_themes(){
|
|
331 |
'lightbox_close_btn_full_color'=>'#3cbac8',
|
332 |
'lightbox_close_btn_hover_color'=>'#2a5b83',
|
333 |
'lightbox_comment_share_button_color'=>'#ffffff',
|
334 |
-
'lightbox_rl_btn_style'=>'
|
335 |
'lightbox_rl_btn_bg_color'=>'#3cbac8',
|
336 |
'lightbox_rl_btn_transparent'=>'100',
|
337 |
'lightbox_rl_btn_box_shadow'=>'none',
|
84 |
'lightbox_close_btn_full_color'=>'#000000',
|
85 |
'lightbox_close_btn_hover_color'=>'#000000',
|
86 |
'lightbox_comment_share_button_color'=>'#ffffff',
|
87 |
+
'lightbox_rl_btn_style'=>'tenweb-i-chevron',
|
88 |
'lightbox_rl_btn_bg_color'=>'#2a5b83',
|
89 |
'lightbox_rl_btn_transparent'=>'80',
|
90 |
'lightbox_rl_btn_box_shadow'=>'none',
|
331 |
'lightbox_close_btn_full_color'=>'#3cbac8',
|
332 |
'lightbox_close_btn_hover_color'=>'#2a5b83',
|
333 |
'lightbox_comment_share_button_color'=>'#ffffff',
|
334 |
+
'lightbox_rl_btn_style'=>'tenweb-i-chevron',
|
335 |
'lightbox_rl_btn_bg_color'=>'#3cbac8',
|
336 |
'lightbox_rl_btn_transparent'=>'100',
|
337 |
'lightbox_rl_btn_box_shadow'=>'none',
|
wd-instagram-feed.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: 10Web Social Photo Feed
|
4 |
Plugin URI: https://10web.io/plugins/wordpress-instagram-feed/?utm_source=instagram_feed&utm_medium=free_plugin
|
5 |
Description: 10Web Social Photo Feed is a user-friendly tool for displaying user or hashtag-based feeds on your website. You can create feeds with one of the available layouts. It allows displaying image metadata, open up images in lightbox, download them and even share in social networking websites.
|
6 |
-
Version: 1.3.
|
7 |
Author: 10Web
|
8 |
Author URI: https://10Web.io/plugins/?utm_source=instagram_feed&utm_medium=free_plugin
|
9 |
License: GPLv2 or later
|
@@ -21,7 +21,7 @@ define("WDI_META", "_" . WDI_VAR . "_meta");
|
|
21 |
//define("wdi",'wdi');
|
22 |
define('WDI_FEED_TABLE', 'wdi_feeds');
|
23 |
define('WDI_THEME_TABLE', 'wdi_themes');
|
24 |
-
define('WDI_VERSION', '1.3.
|
25 |
define('WD_WDI_PREFIX', 'wdi' );
|
26 |
define('WDI_IS_PRO', false );
|
27 |
$wdi_minify = ( isset($_GET['wdi_no_minify']) && $_GET['wdi_no_minify'] == "true" ) ? FALSE : TRUE;
|
3 |
Plugin Name: 10Web Social Photo Feed
|
4 |
Plugin URI: https://10web.io/plugins/wordpress-instagram-feed/?utm_source=instagram_feed&utm_medium=free_plugin
|
5 |
Description: 10Web Social Photo Feed is a user-friendly tool for displaying user or hashtag-based feeds on your website. You can create feeds with one of the available layouts. It allows displaying image metadata, open up images in lightbox, download them and even share in social networking websites.
|
6 |
+
Version: 1.3.22
|
7 |
Author: 10Web
|
8 |
Author URI: https://10Web.io/plugins/?utm_source=instagram_feed&utm_medium=free_plugin
|
9 |
License: GPLv2 or later
|
21 |
//define("wdi",'wdi');
|
22 |
define('WDI_FEED_TABLE', 'wdi_feeds');
|
23 |
define('WDI_THEME_TABLE', 'wdi_themes');
|
24 |
+
define('WDI_VERSION', '1.3.22');
|
25 |
define('WD_WDI_PREFIX', 'wdi' );
|
26 |
define('WDI_IS_PRO', false );
|
27 |
$wdi_minify = ( isset($_GET['wdi_no_minify']) && $_GET['wdi_no_minify'] == "true" ) ? FALSE : TRUE;
|