Version Description
Download this release
Release Info
Developer | giucu91 |
Plugin | Strong Testimonials |
Version | 2.50.0 |
Comparing to | |
See all releases |
Code changes from version 2.41.1 to 2.50.0
- admin/class-strong-testimonials-defaults.php +2 -0
- admin/class-strong-testimonials-upsell.php +690 -167
- admin/js/admin-form.js +1 -2
- admin/js/views.js +1 -1
- admin/menu/class-strong-testimonials-menu-fields.php +2 -2
- admin/partials/views/option-pagination.php +6 -6
- admin/settings/class-strong-testimonials-settings-form.php +1 -1
- admin/settings/class-strong-testimonials-settings.php +21 -16
- admin/settings/partials/form.php +6 -1
- admin/views.php +1 -0
- assets/css/admin-global.css +40 -1
- changelog.txt +6 -2
- includes/class-strong-form.php +1 -1
- includes/class-strong-testimonials-privacy.php +5 -6
- includes/functions-template-form.php +8 -0
- public/css/slider-controls-simple-buttons2-pager-text.css +9 -3
- public/js/lib/actual/jquery-actual.min.js +1 -1
- public/js/lib/actual/jquery.min.js +1 -1
- public/js/lib/form-validation/form-validation.min.js +1 -1
- public/js/lib/imagesloaded/imagesloaded.min.js +2 -1
- public/js/lib/lozad/lozad-load.min.js +1 -1
- public/js/lib/lozad/lozad.min.js +1 -1
- public/js/lib/randomjs/random.min.js +1 -1
- public/js/lib/readmore/readmore.min.js +1 -1
- public/js/lib/strongpager/jquery-strongpager.min.js +1 -1
- public/js/lib/strongslider/jquery-strongslider.js +1 -1
- public/js/lib/strongslider/jquery-strongslider.min.js +1 -3
- public/js/lib/validate/additional-methods.min.js +1 -3
- public/js/lib/validate/jquery-validate.min.js +1 -3
- public/js/lib/verge/verge.min.js +1 -1
- readme.txt +1 -1
- strong-testimonials.php +2 -2
- templates/bold/content.css +4 -0
- templates/default-form/form.php +17 -11
- templates/default/content.css +5 -1
- templates/default/content.php +1 -1
- templates/modern/content.css +4 -0
- templates/modern/content.php +1 -1
- templates/simple-form/form.php +15 -10
- templates/simple/content.css +3 -0
- templates/simple/content.php +1 -1
- templates/small-widget/content.css +4 -0
- templates/small-widget/content.php +1 -1
- templates/unstyled-form/form.php +15 -9
- templates/unstyled/content.css +4 -0
- templates/unstyled/content.php +1 -1
admin/class-strong-testimonials-defaults.php
CHANGED
@@ -473,6 +473,8 @@ class Strong_Testimonials_Defaults {
|
|
473 |
Â
'success_action' => 'message', // message | id | url
|
474 |
Â
'success_redirect_id' => '',
|
475 |
Â
'success_redirect_url' => '',
|
Â
|
|
Â
|
|
476 |
Â
);
|
477 |
Â
|
478 |
Â
return apply_filters( 'wpmtst_default_form_options', $default_form_options );
|
473 |
Â
'success_action' => 'message', // message | id | url
|
474 |
Â
'success_redirect_id' => '',
|
475 |
Â
'success_redirect_url' => '',
|
476 |
+
'members_only' => false,
|
477 |
+
'members_only_message' => __( 'You need to be logged in to access this form.', 'strong-testimonials' ),
|
478 |
Â
);
|
479 |
Â
|
480 |
Â
return apply_filters( 'wpmtst_default_form_options', $default_form_options );
|
admin/class-strong-testimonials-upsell.php
CHANGED
@@ -10,16 +10,87 @@ class Strong_Testimonials_Upsell {
|
|
10 |
Â
|
11 |
Â
public function __construct() {
|
12 |
Â
$this->set_store_upgrade_url();
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
23 |
Â
|
24 |
Â
add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ) );
|
25 |
Â
}
|
@@ -40,9 +111,21 @@ class Strong_Testimonials_Upsell {
|
|
40 |
Â
|
41 |
Â
}
|
42 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
43 |
Â
public function output_importer_upsell() {
|
44 |
Â
?>
|
45 |
-
<div class="wpmtst-alert"
|
46 |
Â
<h2><?php esc_html_e( 'Automatically pull in & display new reviews as your customers leave their feedback on external platforms', 'strong-testimonials' ) ?></h2>
|
47 |
Â
<p><?php esc_html_e( 'Upgrade today and get the ability to import testimonials from:', 'strong-testimonials' ) ?></p>
|
48 |
Â
<ul>
|
@@ -60,171 +143,328 @@ class Strong_Testimonials_Upsell {
|
|
60 |
Â
<?php
|
61 |
Â
}
|
62 |
Â
|
63 |
-
public function
|
64 |
Â
|
65 |
-
$
|
66 |
Â
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
71 |
Â
}
|
Â
|
|
72 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
73 |
Â
}
|
74 |
Â
|
75 |
-
public function
|
Â
|
|
Â
|
|
Â
|
|
76 |
Â
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
<?php esc_html_e( 'Want to know where are your customers located?', 'strong-testimonials' ); ?>
|
81 |
-
<br/>
|
82 |
-
<?php
|
83 |
-
printf(
|
84 |
-
esc_html__( 'Install the %s extension', 'strong-testimonials' ),
|
85 |
-
sprintf(
|
86 |
-
'<a href="%s" target="_blank">%s</a>',
|
87 |
-
esc_url( WPMTST_STORE_URL . '/extensions/country-selector?utm_source=st-lite&utm_campaign=upsell&utm_medium=fields-country-selector-upsell' ),
|
88 |
-
esc_html__( 'Strong Testimonials: Country Selector', 'strong-testimonials' )
|
89 |
-
)
|
90 |
-
);
|
91 |
-
?>
|
92 |
-
<p>
|
93 |
-
|
94 |
-
<a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=fields-country-selector-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
|
95 |
-
</p>
|
96 |
-
</div>
|
97 |
Â
<?php
|
98 |
-
|
99 |
-
|
100 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
101 |
Â
?>
|
102 |
-
<
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
esc_html__( 'Install the %s extension', 'strong-testimonials' ),
|
108 |
-
sprintf(
|
109 |
-
'<a href="%s" target="_blank">%s</a>',
|
110 |
-
esc_url( WPMTST_STORE_URL . '/extensions/custom-fields?utm_source=st-lite&utm_campaign=upsell&utm_medium=fields-custom-fields-upsell' ),
|
111 |
-
esc_html__( 'Strong Testimonials: Custom Fields', 'strong-testimonials' )
|
112 |
-
)
|
113 |
-
);
|
114 |
-
?>
|
115 |
-
<p>
|
116 |
-
|
117 |
-
<a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=fields-custom-fields-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
|
118 |
-
</p>
|
119 |
-
</div>
|
120 |
-
<?php
|
121 |
-
endif;
|
122 |
Â
}
|
123 |
Â
|
124 |
-
public function
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
Â
|
|
Â
|
|
Â
|
|
143 |
Â
<?php
|
144 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
145 |
Â
}
|
146 |
Â
|
147 |
-
|
148 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
149 |
Â
?>
|
150 |
-
<
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
168 |
Â
<?php
|
169 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
170 |
Â
}
|
171 |
Â
|
172 |
-
|
173 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
174 |
Â
?>
|
175 |
-
<div class="wpmtst-alert" style="margin-top: 1.5rem">
|
176 |
-
<?php
|
177 |
-
printf(
|
178 |
-
esc_html__( 'With the %s extension you can:', 'strong-testimonials' ),
|
179 |
-
sprintf(
|
180 |
-
'<a href="%s" target="_blank">%s</a>',
|
181 |
-
esc_url( WPMTST_STORE_URL . '/extensions/advanced-views?utm_source=st-lite&utm_campaign=upsell&utm_medium=views-advanced-views-upsell' ),
|
182 |
-
esc_html__( 'Strong Testimonials: Advanced Views', 'strong-testimonials' )
|
183 |
-
)
|
184 |
-
);
|
185 |
-
|
186 |
-
?>
|
187 |
Â
<ul>
|
188 |
-
|
189 |
-
<li><?php esc_html_e( '- easily define the display order of your testimonial fields. Re-order the name, image, url and testimonial content fields through drag & drop.', 'strong-testimonials' ); ?></li>
|
190 |
-
<li><?php esc_html_e( '- edit, in real time, the way your testimonials will look on your site. Stop loosing clients because of poor design.', 'strong-testimonials' ); ?></li>
|
191 |
-
|
192 |
Â
</ul>
|
193 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
194 |
Â
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
200 |
Â
}
|
201 |
Â
|
202 |
-
|
203 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
204 |
Â
?>
|
205 |
-
<
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
220 |
Â
<?php
|
221 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
222 |
Â
}
|
223 |
Â
|
224 |
-
public function
|
225 |
-
if ( defined( 'WPMTST_CAPTCHA_VERSION' ) ) {
|
226 |
-
return;
|
227 |
-
}
|
228 |
Â
?>
|
229 |
Â
<hr>
|
230 |
Â
|
@@ -233,7 +473,7 @@ class Strong_Testimonials_Upsell {
|
|
233 |
Â
<div class="wpmtst-alert">
|
234 |
Â
<?php
|
235 |
Â
printf(
|
236 |
-
esc_html__( 'Protect your form against spam. Add Google
|
237 |
Â
sprintf(
|
238 |
Â
'<a href="%s" target="_blank">%s</a>',
|
239 |
Â
esc_url( WPMTST_STORE_URL . '/extensions/captcha?utm_source=st-lite&utm_campaign=upsell&utm_medium=form-settings-upsell' ),
|
@@ -278,26 +518,309 @@ class Strong_Testimonials_Upsell {
|
|
278 |
Â
<?php
|
279 |
Â
}
|
280 |
Â
|
281 |
-
public function
|
282 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
283 |
Â
?>
|
284 |
-
<
|
285 |
-
<?php
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
<
|
296 |
-
|
297 |
-
|
298 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
299 |
Â
<?php
|
300 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
301 |
Â
}
|
302 |
Â
|
303 |
Â
}
|
10 |
Â
|
11 |
Â
public function __construct() {
|
12 |
Â
$this->set_store_upgrade_url();
|
13 |
+
$options = get_option( 'wpmtst_options' );
|
14 |
+
if ( isset( $options['upsells'] ) && $options['upsells'] == false) {
|
15 |
+
|
16 |
+
add_action( 'wpmtst_admin_after_settings_form', array( $this, 'general_upsell' ) );
|
17 |
+
|
18 |
+
if ( ! defined( 'WPMTST_ROLE_MANAGEMENT_VERSION' ) ) {
|
19 |
+
add_action( 'wpmtst_settings_tabs', array( $this, 'register_role_manager' ), 4, 2 );
|
20 |
+
add_filter( 'wpmtst_settings_callbacks', array( $this, 'register_rm_settings_page' ) );
|
21 |
+
add_filter( 'wpmtst_general_upsell_items', array( $this, 'add_role_upsell' ), 20 );
|
22 |
+
}
|
23 |
+
|
24 |
+
if ( ! defined( 'WPMTST_COUNTRY_SELECTOR_VERSION' ) ) {
|
25 |
+
add_action( 'wpmtst_after_form_type_selection', array( $this, 'output_country_selector_upsell' ) );
|
26 |
+
add_filter( 'wpmtst_general_upsell_items', array( $this, 'add_country_selector_upsell' ), 95 );
|
27 |
+
}
|
28 |
+
|
29 |
+
if ( ! defined( 'WPMTST_CUSTOM_FIELDS_VERSION' ) ) {
|
30 |
+
add_action( 'wpmtst_after_form_type_selection', array( $this, 'output_custom_fields_upsell' ) );
|
31 |
+
add_filter( 'wpmtst_general_upsell_items', array( $this, 'add_custom_fields_upsell' ), 90 );
|
32 |
+
}
|
33 |
+
|
34 |
+
if ( ! defined( 'WPMTST_MULTIPLE_FORMS_VERSION' ) ) {
|
35 |
+
add_action( 'wpmtst_before_fields_settings', array( $this, 'output_multiple_form_upsell' ) );
|
36 |
+
add_filter( 'wpmtst_general_upsell_items', array( $this, 'add_multiple_form_upsell' ), 30 );
|
37 |
+
}
|
38 |
+
|
39 |
+
if ( ! defined( 'WPMTST_REVIEW_MARKUP_VERSION' ) ) {
|
40 |
+
add_action( 'wpmtst_view_editor_after_groups', array( $this, 'output_review_markup_upsell' ) );
|
41 |
+
add_filter( 'wpmtst_general_upsell_items', array( $this, 'add_review_markup_upsell' ), 15 );
|
42 |
+
add_action( 'wpmtst_settings_tabs', array( $this, 'register_review_markup' ), 4, 2 );
|
43 |
+
add_filter( 'wpmtst_settings_callbacks', array( $this, 'register_review_markup_settings_page' ) );
|
44 |
+
}
|
45 |
+
|
46 |
+
if ( ! defined( 'WPMTST_ADVANCED_VIEWS_VERSION' ) ) {
|
47 |
+
add_action( 'wpmtst_view_editor_after_group_select', array( $this, 'output_advanced_views_upsell' ) );
|
48 |
+
add_filter( 'wpmtst_general_upsell_items', array( $this, 'add_advanced_views_upsell' ), 35 );
|
49 |
+
}
|
50 |
+
|
51 |
+
if ( ! defined( 'WPMTST_CAPTCHA_VERSION' ) ) {
|
52 |
+
add_action( 'wpmtst_fields_before_fields_editor_preview', array( $this, 'output_captcha_editor_upsell' ) );
|
53 |
+
add_action( 'wpmtst_after_form_settings', array( $this, 'output_captcha_form_settings_upsell' ) );
|
54 |
+
add_filter( 'wpmtst_general_upsell_items', array( $this, 'add_captcha_upsell' ), 40 );
|
55 |
+
}
|
56 |
+
|
57 |
+
if ( ! defined( 'WPMTST_PRO_TEMPLATES_VERSION' ) ) {
|
58 |
+
add_action( 'wpmtst_views_after_template_list', array( $this, 'output_pro_templates_upsell' ) );
|
59 |
+
add_filter( 'wpmtst_general_upsell_items', array( $this, 'add_pro_templates_upsell' ), 20 );
|
60 |
+
}
|
61 |
+
|
62 |
+
if ( ! defined( 'WPMTST_EMAILS_VERSION' ) ) {
|
63 |
+
add_action( 'wpmtst_after_mail_notification_settings', array( $this, 'output_enhanced_emails_upsell' ) );
|
64 |
+
add_filter( 'wpmtst_general_upsell_items', array( $this, 'add_enhanced_emails_upsell' ), 45 );
|
65 |
+
}
|
66 |
+
|
67 |
+
if ( ! defined( 'WPMTST_INFINITE_SCROLL_VERSION' ) ) {
|
68 |
+
add_action( 'wpmtst_view_editor_pagination_row_end', array( $this, 'output_infinite_scroll_upsell' ) );
|
69 |
+
add_filter( 'wpmtst_general_upsell_items', array( $this, 'add_infinite_scroll_upsell' ), 50 );
|
70 |
+
}
|
71 |
+
|
72 |
+
if ( ! defined( 'WPMTST_FILTERS_VERSION' ) ) {
|
73 |
+
add_action( 'wpmtst_after_style_view_section', array( $this, 'output_filters_upsell' ) );
|
74 |
+
add_filter( 'wpmtst_general_upsell_items', array( $this, 'add_filters_upsell' ), 15 );
|
75 |
+
}
|
76 |
+
|
77 |
+
if ( ! defined( 'WPMTST_PRO_VERSION' ) ) {
|
78 |
+
add_action( 'wpmtst_settings_tabs', array( $this, 'register_st_pro_tab' ), 4, 2 );
|
79 |
+
add_filter( 'wpmtst_settings_callbacks', array( $this, 'register_st_pro_page' ) );
|
80 |
+
add_filter( 'wpmtst_general_upsell_items', array( $this, 'add_pro_upsell' ), 10 );
|
81 |
+
}
|
82 |
+
|
83 |
+
if ( ! defined( 'WPMTST_ASSIGNMENT_VERSION' ) ) {
|
84 |
+
add_action( 'wpmtst_settings_tabs', array( $this, 'register_assigment_tab' ), 4, 2 );
|
85 |
+
add_filter( 'wpmtst_settings_callbacks', array( $this, 'register_assigment_settings_page' ) );
|
86 |
+
}
|
87 |
+
|
88 |
+
if ( ! defined( 'WPMTST_PROPERTIES_VERSION' ) ) {
|
89 |
+
add_action( 'wpmtst_settings_tabs', array( $this, 'register_properties_tab' ), 4, 2 );
|
90 |
+
add_filter( 'wpmtst_settings_callbacks', array( $this, 'register_properties_page' ) );
|
91 |
+
}
|
92 |
+
|
93 |
+
}
|
94 |
Â
|
95 |
Â
add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ) );
|
96 |
Â
}
|
111 |
Â
|
112 |
Â
}
|
113 |
Â
|
114 |
+
public function set_store_upgrade_url() {
|
115 |
+
|
116 |
+
$this->store_upgrade_url = WPMTST_STORE_UPGRADE_URL . '?utm_source=st-lite&utm_campaign=upsell';
|
117 |
+
|
118 |
+
//append license key
|
119 |
+
$license = trim( get_option( 'strong_testimonials_license_key' ) );
|
120 |
+
if ( $license ) {
|
121 |
+
$this->store_upgrade_url .= '&license=' . $license;
|
122 |
+
}
|
123 |
+
|
124 |
+
}
|
125 |
+
|
126 |
Â
public function output_importer_upsell() {
|
127 |
Â
?>
|
128 |
+
<div class="wpmtst-alert">
|
129 |
Â
<h2><?php esc_html_e( 'Automatically pull in & display new reviews as your customers leave their feedback on external platforms', 'strong-testimonials' ) ?></h2>
|
130 |
Â
<p><?php esc_html_e( 'Upgrade today and get the ability to import testimonials from:', 'strong-testimonials' ) ?></p>
|
131 |
Â
<ul>
|
143 |
Â
<?php
|
144 |
Â
}
|
145 |
Â
|
146 |
+
public function general_upsell(){
|
147 |
Â
|
148 |
+
$general_upsells = apply_filters( 'wpmtst_general_upsell_items', array() );
|
149 |
Â
|
150 |
+
if ( ! empty( $general_upsells ) ) {
|
151 |
+
|
152 |
+
?>
|
153 |
+
|
154 |
+
<div class="wpmtst-settings-upsell">
|
155 |
+
<div class="wpmtst-alert">
|
156 |
+
<h3>Upgrade to PRO</h3>
|
157 |
+
<ul>
|
158 |
+
<?php foreach ( $general_upsells as $general_upsell ) { ?>
|
159 |
+
<li>
|
160 |
+
<span class="dashicons dashicons-yes"></span>
|
161 |
+
<span>
|
162 |
+
<?php echo $general_upsell ?>
|
163 |
+
</span>
|
164 |
+
</li>
|
165 |
+
<?php } ?>
|
166 |
+
</ul>
|
167 |
+
|
168 |
+
<a href="<?php echo esc_url( WPMTST_STORE_URL . '/pricing?utm_source=st-lite&utm_campaign=upsell&utm_medium=general-settings-upsell' ) ?>" target="_blank" class="button button-primary button-hero" style="width:100%;display:block;margin-top:20px;text-align:center;">Upgrade to PRO</a>
|
169 |
+
|
170 |
+
</div>
|
171 |
+
</div>
|
172 |
+
|
173 |
+
<?php
|
174 |
Â
}
|
175 |
+
}
|
176 |
Â
|
177 |
+
// Role Manager upsell
|
178 |
+
public function register_role_manager( $active_tab, $url ) {
|
179 |
+
$tab = isset( $_GET['tab'] ) ? $_GET['tab'] : '';
|
180 |
+
printf( '<a href="%s" class="nav-tab %s">%s%s</a>',
|
181 |
+
esc_url( add_query_arg( 'tab', 'access', $url ) ),
|
182 |
+
esc_attr( $tab == 'access' ? 'nav-tab-active' : '' ),
|
183 |
+
_x( 'Role Management', 'adjective', 'strong-testimonials' ),
|
184 |
+
'<span class="wpmtst-upsell-badge">PRO</span>'
|
185 |
+
);
|
186 |
Â
}
|
187 |
Â
|
188 |
+
public static function register_rm_settings_page( $pages ) {
|
189 |
+
$pages[ 'access' ] = array( $this, 'output_role_manager_page' );
|
190 |
+
return $pages;
|
191 |
+
}
|
192 |
Â
|
193 |
+
public function output_role_manager_page(){
|
194 |
+
?>
|
195 |
+
<div class="wpmtst-alert">
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
196 |
Â
<?php
|
197 |
+
printf(
|
198 |
+
esc_html__( 'Control who approves testimonials or who has access to the plugins’ settings panel with %s extension. Get total granular control over who has access to your testimonials.', 'strong-testimonials' ),
|
199 |
+
sprintf(
|
200 |
+
'<a href="%s" target="_blank">%s</a>',
|
201 |
+
esc_url( WPMTST_STORE_URL . '/extensions/role-management?utm_source=st-lite&utm_campaign=upsell&utm_medium=role-management-tab-upsell' ),
|
202 |
+
esc_html__( 'Role Management', 'strong-testimonials' )
|
203 |
+
)
|
204 |
+
);
|
205 |
Â
?>
|
206 |
+
<p>
|
207 |
+
<a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=role-management-tab-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
|
208 |
+
</p>
|
209 |
+
</div>
|
210 |
+
<?php
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
211 |
Â
}
|
212 |
Â
|
213 |
+
public function add_role_upsell( $upsells ) {
|
214 |
+
$upsell = sprintf(
|
215 |
+
esc_html__( 'Control who approves testimonials or who has access to the plugins’ settings panel with %s extension. Get total granular control over who has access to your testimonials.', 'strong-testimonials' ),
|
216 |
+
sprintf(
|
217 |
+
'<a href="%s" target="_blank">%s</a>',
|
218 |
+
esc_url( WPMTST_STORE_URL . '/extensions/role-management?utm_source=st-lite&utm_campaign=upsell&utm_medium=role-management-general-upsell' ),
|
219 |
+
esc_html__( 'Role Management', 'strong-testimonials' )
|
220 |
+
)
|
221 |
+
);
|
222 |
+
|
223 |
+
$upsells[] = $upsell;
|
224 |
+
return $upsells;
|
225 |
+
}
|
226 |
+
|
227 |
+
/*
|
228 |
+
Country Selector
|
229 |
+
*/
|
230 |
+
public function output_country_selector_upsell() {
|
231 |
+
?>
|
232 |
+
<div class="wpmtst-alert" style="margin-top: 10px">
|
233 |
+
<?php esc_html_e( 'Want to know where are your customers located?', 'strong-testimonials' ); ?>
|
234 |
+
<br/>
|
235 |
Â
<?php
|
236 |
+
printf(
|
237 |
+
esc_html__( 'Install the %s extension', 'strong-testimonials' ),
|
238 |
+
sprintf(
|
239 |
+
'<a href="%s" target="_blank">%s</a>',
|
240 |
+
esc_url( WPMTST_STORE_URL . '/extensions/country-selector?utm_source=st-lite&utm_campaign=upsell&utm_medium=fields-country-selector-upsell' ),
|
241 |
+
esc_html__( 'Strong Testimonials: Country Selector', 'strong-testimonials' )
|
242 |
+
)
|
243 |
+
);
|
244 |
+
?>
|
245 |
+
<p>
|
246 |
+
|
247 |
+
<a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=fields-country-selector-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
|
248 |
+
</p>
|
249 |
+
</div>
|
250 |
+
<?php
|
251 |
+
}
|
252 |
+
|
253 |
+
public function add_country_selector_upsell( $upsells ) {
|
254 |
+
$upsell = sprintf(
|
255 |
+
esc_html__( 'Show where your customers are located with the %s extension. ', 'strong-testimonials' ),
|
256 |
+
sprintf(
|
257 |
+
'<a href="%s" target="_blank">%s</a>',
|
258 |
+
esc_url( WPMTST_STORE_URL . '/extensions/country-selector?utm_source=st-lite&utm_campaign=upsell&utm_medium=country-selector-general-upsell' ),
|
259 |
+
esc_html__( 'Country Selector', 'strong-testimonials' )
|
260 |
+
)
|
261 |
+
);
|
262 |
+
|
263 |
+
$upsells[] = $upsell;
|
264 |
+
return $upsells;
|
265 |
Â
}
|
266 |
Â
|
267 |
+
/*
|
268 |
+
Custom fields
|
269 |
+
*/
|
270 |
+
public function output_custom_fields_upsell() {
|
271 |
+
?>
|
272 |
+
<div class="wpmtst-alert" style="margin-top: 10px">
|
273 |
+
<?php esc_html_e( 'Know your customers by having access to more advanced custom fields.', 'strong-testimonials' ); ?>
|
274 |
+
<br/>
|
275 |
+
<?php
|
276 |
+
printf(
|
277 |
+
esc_html__( 'Install the %s extension', 'strong-testimonials' ),
|
278 |
+
sprintf(
|
279 |
+
'<a href="%s" target="_blank">%s</a>',
|
280 |
+
esc_url( WPMTST_STORE_URL . '/extensions/custom-fields?utm_source=st-lite&utm_campaign=upsell&utm_medium=fields-custom-fields-upsell' ),
|
281 |
+
esc_html__( 'Strong Testimonials: Custom Fields', 'strong-testimonials' )
|
282 |
+
)
|
283 |
+
);
|
284 |
Â
?>
|
285 |
+
<p>
|
286 |
+
|
287 |
+
<a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=fields-custom-fields-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
|
288 |
+
</p>
|
289 |
+
</div>
|
290 |
+
<?php
|
291 |
+
}
|
292 |
+
|
293 |
+
public function add_custom_fields_upsell( $upsells ) {
|
294 |
+
$upsell = sprintf(
|
295 |
+
esc_html__( 'Get to know your customers by installing our %s extension.', 'strong-testimonials' ),
|
296 |
+
sprintf(
|
297 |
+
'<a href="%s" target="_blank">%s</a>',
|
298 |
+
esc_url( WPMTST_STORE_URL . '/extensions/custom-fields?utm_source=st-lite&utm_campaign=upsell&utm_medium=custom-fields-general-upsell' ),
|
299 |
+
esc_html__( 'Custom Fields', 'strong-testimonials' )
|
300 |
+
)
|
301 |
+
);
|
302 |
+
|
303 |
+
$upsells[] = $upsell;
|
304 |
+
return $upsells;
|
305 |
+
}
|
306 |
+
|
307 |
+
/*
|
308 |
+
* Multiple forms
|
309 |
+
*/
|
310 |
+
public function output_multiple_form_upsell() {
|
311 |
+
?>
|
312 |
+
<div class="wpmtst-alert" style="margin-top: 10px">
|
313 |
Â
<?php
|
314 |
+
printf(
|
315 |
+
esc_html__( 'Create multiple submission forms by installing the %s extension.', 'strong-testimonials' ),
|
316 |
+
sprintf(
|
317 |
+
'<a href="%s" target="_blank">%s</a>',
|
318 |
+
esc_url( WPMTST_STORE_URL . '/extensions/multiple-forms?utm_source=st-lite&utm_campaign=upsell&utm_medium=fields-multiple-forms-upsell' ),
|
319 |
+
esc_html__( 'Strong Testimonials: Multiple Forms', 'strong-testimonials' )
|
320 |
+
)
|
321 |
+
);
|
322 |
+
?>
|
323 |
+
<p>
|
324 |
+
|
325 |
+
<a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=fields-multiple-forms-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
|
326 |
+
</p>
|
327 |
+
</div>
|
328 |
+
<?php
|
329 |
+
}
|
330 |
+
|
331 |
+
public function add_multiple_form_upsell( $upsells ) {
|
332 |
+
$upsell = sprintf(
|
333 |
+
esc_html__( 'Create multiple submission forms by installing the %s extension.', 'strong-testimonials' ),
|
334 |
+
sprintf(
|
335 |
+
'<a href="%s" target="_blank">%s</a>',
|
336 |
+
esc_url( WPMTST_STORE_URL . '/extensions/multiple-forms?utm_source=st-lite&utm_campaign=upsell&utm_medium=multiple-forms-general-upsell' ),
|
337 |
+
esc_html__( 'Multiple Forms', 'strong-testimonials' )
|
338 |
+
)
|
339 |
+
);
|
340 |
+
|
341 |
+
$upsells[] = $upsell;
|
342 |
+
return $upsells;
|
343 |
Â
}
|
344 |
Â
|
345 |
+
/*
|
346 |
+
* Review Markup
|
347 |
+
*/
|
348 |
+
public function register_review_markup( $active_tab, $url ) {
|
349 |
+
$tab = isset( $_GET['tab'] ) ? $_GET['tab'] : '';
|
350 |
+
printf( '<a href="%s" class="nav-tab %s">%s%s</a>',
|
351 |
+
esc_url( add_query_arg( 'tab', 'review-markup', $url ) ),
|
352 |
+
esc_attr( $tab == 'review-markup' ? 'nav-tab-active' : '' ),
|
353 |
+
_x( 'Review Markup', 'adjective', 'strong-testimonials' ),
|
354 |
+
'<span class="wpmtst-upsell-badge">PRO</span>'
|
355 |
+
);
|
356 |
+
}
|
357 |
+
public static function register_review_markup_settings_page( $pages ) {
|
358 |
+
$pages[ 'review-markup' ] = array( $this, 'output_review_markup_upsell' );
|
359 |
+
return $pages;
|
360 |
+
}
|
361 |
+
public function output_review_markup_upsell() {
|
362 |
+
?>
|
363 |
+
<div class="wpmtst-alert" style="margin-top: 10px">
|
364 |
+
<?php
|
365 |
+
printf(
|
366 |
+
esc_html__( 'Add SEO-friendly & Schema.org compliant Testimonials with our %s extension.', 'strong-testimonials' ),
|
367 |
+
sprintf(
|
368 |
+
'<a href="%s" target="_blank">%s</a>',
|
369 |
+
esc_url( WPMTST_STORE_URL . '/extensions/review-markup?utm_source=st-lite&utm_campaign=upsell&utm_medium=views-review-markup-upsell' ),
|
370 |
+
esc_html__( 'Strong Testimonials: Review Markup', 'strong-testimonials' )
|
371 |
+
)
|
372 |
+
);
|
373 |
Â
?>
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
374 |
Â
<ul>
|
375 |
+
<li><?php esc_html_e( 'With this extensions, search engines will display star ratings in search results for your site.', 'strong-testimonials' ); ?></li>
|
Â
|
|
Â
|
|
Â
|
|
376 |
Â
</ul>
|
377 |
+
<p>
|
378 |
+
<a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=views-review-markup-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
|
379 |
+
</p>
|
380 |
+
</div>
|
381 |
+
<?php
|
382 |
+
}
|
383 |
Â
|
384 |
+
public function add_review_markup_upsell( $upsells ) {
|
385 |
+
$upsell = sprintf(
|
386 |
+
esc_html__( 'Add SEO-friendly & Schema.org compliant Testimonials with our %s extension.', 'strong-testimonials' ),
|
387 |
+
sprintf(
|
388 |
+
'<a href="%s" target="_blank">%s</a>',
|
389 |
+
esc_url( WPMTST_STORE_URL . '/extensions/review-markup?utm_source=st-lite&utm_campaign=upsell&utm_medium=review-markup-general-upsell' ),
|
390 |
+
esc_html__( 'Review Markup', 'strong-testimonials' )
|
391 |
+
)
|
392 |
+
);
|
393 |
+
|
394 |
+
$upsells[] = $upsell;
|
395 |
+
return $upsells;
|
396 |
Â
}
|
397 |
Â
|
398 |
+
/*
|
399 |
+
Advanced Views
|
400 |
+
*/
|
401 |
+
public function output_advanced_views_upsell() {
|
402 |
+
?>
|
403 |
+
<div class="wpmtst-alert" style="margin-top: 1.5rem">
|
404 |
+
<?php
|
405 |
+
printf(
|
406 |
+
esc_html__( 'With the %s extension you can:', 'strong-testimonials' ),
|
407 |
+
sprintf(
|
408 |
+
'<a href="%s" target="_blank">%s</a>',
|
409 |
+
esc_url( WPMTST_STORE_URL . '/extensions/advanced-views?utm_source=st-lite&utm_campaign=upsell&utm_medium=views-advanced-views-upsell' ),
|
410 |
+
esc_html__( 'Strong Testimonials: Advanced Views', 'strong-testimonials' )
|
411 |
+
)
|
412 |
+
);
|
413 |
+
|
414 |
Â
?>
|
415 |
+
<ul>
|
416 |
+
<li><?php esc_html_e( 'filter & display testimonials based on their rating or on a pre-defined condition.', 'strong-testimonials' ); ?></li>
|
417 |
+
<li><?php esc_html_e( 'easily define the display order of your testimonial fields. Re-order the name, image, url and testimonial content fields through drag & drop.', 'strong-testimonials' ); ?></li>
|
418 |
+
<li><?php esc_html_e( 'edit, in real time, the way your testimonials will look on your site. Stop loosing clients because of poor design.', 'strong-testimonials' ); ?></li>
|
419 |
+
|
420 |
+
</ul>
|
421 |
+
<p>
|
422 |
+
|
423 |
+
<a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=views-advanced-views-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
|
424 |
+
</p>
|
425 |
+
</div>
|
426 |
+
<?php
|
427 |
+
}
|
428 |
+
|
429 |
+
public function add_advanced_views_upsell( $upsells ) {
|
430 |
+
$upsell = sprintf(
|
431 |
+
esc_html__( 'Start filtering, changing the order, or even editing your testimonials in real-time with the %s extension.', 'strong-testimonials' ),
|
432 |
+
sprintf(
|
433 |
+
'<a href="%s" target="_blank">%s</a>',
|
434 |
+
esc_url( WPMTST_STORE_URL . '/extensions/advanced-views?utm_source=st-lite&utm_campaign=upsell&utm_medium=advanced-views-general-upsell' ),
|
435 |
+
esc_html__( 'Advanced Views', 'strong-testimonials' )
|
436 |
+
)
|
437 |
+
);
|
438 |
+
|
439 |
+
$upsells[] = $upsell;
|
440 |
+
return $upsells;
|
441 |
+
|
442 |
+
}
|
443 |
+
|
444 |
+
/*
|
445 |
+
Captcha extensio
|
446 |
+
*/
|
447 |
+
public function output_captcha_editor_upsell() {
|
448 |
+
?>
|
449 |
+
<div class="wpmtst-alert">
|
450 |
Â
<?php
|
451 |
+
printf(
|
452 |
+
esc_html__( 'Protect your form against spam with the %s extension.', 'strong-testimonials' ),
|
453 |
+
sprintf(
|
454 |
+
'<a href="%s" target="_blank">%s</a>',
|
455 |
+
esc_url( WPMTST_STORE_URL . '/extensions/captcha?utm_source=st-lite&utm_campaign=upsell&utm_medium=form-settings-upsell' ),
|
456 |
+
esc_html__( 'Strong Testimonials: Captcha', 'strong-testimonials' )
|
457 |
+
)
|
458 |
+
);
|
459 |
+
?>
|
460 |
+
<p>
|
461 |
+
<a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=form-settings-captcha-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
|
462 |
+
</p>
|
463 |
+
</div>
|
464 |
+
<?php
|
465 |
Â
}
|
466 |
Â
|
467 |
+
public function output_captcha_form_settings_upsell() {
|
Â
|
|
Â
|
|
Â
|
|
468 |
Â
?>
|
469 |
Â
<hr>
|
470 |
Â
|
473 |
Â
<div class="wpmtst-alert">
|
474 |
Â
<?php
|
475 |
Â
printf(
|
476 |
+
esc_html__( 'Protect your form against spam. Add Google reCAPTCHA or honeypot anti-spam with the %s extension.', 'strong-testimonials' ),
|
477 |
Â
sprintf(
|
478 |
Â
'<a href="%s" target="_blank">%s</a>',
|
479 |
Â
esc_url( WPMTST_STORE_URL . '/extensions/captcha?utm_source=st-lite&utm_campaign=upsell&utm_medium=form-settings-upsell' ),
|
518 |
Â
<?php
|
519 |
Â
}
|
520 |
Â
|
521 |
+
public function add_captcha_upsell( $upsells ) {
|
522 |
+
$upsell = sprintf(
|
523 |
+
esc_html__( 'Protect your form against spam. Add Google ReCaptcha or honeypot anti-spam with the %s extension.', 'strong-testimonials' ),
|
524 |
+
sprintf(
|
525 |
+
'<a href="%s" target="_blank">%s</a>',
|
526 |
+
esc_url( WPMTST_STORE_URL . '/extensions/captcha?utm_source=st-lite&utm_campaign=upsell&utm_medium=form-settings-captcha-general-upsell' ),
|
527 |
+
esc_html__( 'Captcha', 'strong-testimonials' )
|
528 |
+
)
|
529 |
+
);
|
530 |
+
|
531 |
+
$upsells[] = $upsell;
|
532 |
+
return $upsells;
|
533 |
+
|
534 |
+
}
|
535 |
+
|
536 |
+
/*
|
537 |
+
PRO Templates
|
538 |
+
*/
|
539 |
+
public function output_pro_templates_upsell() {
|
540 |
+
?>
|
541 |
+
<div class="wpmtst-alert">
|
542 |
+
<?php
|
543 |
+
echo esc_html__( 'Impress your potential clients with profesionally designed, pixel-perfect templates that increase your chances of standing out and landing more clients.', 'strong-testimonials' )
|
544 |
Â
?>
|
545 |
+
<p>
|
546 |
+
<a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=views-pro-templates-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
|
547 |
+
</p>
|
548 |
+
</div>
|
549 |
+
<?php
|
550 |
+
}
|
551 |
+
|
552 |
+
public function add_pro_templates_upsell( $upsells ) {
|
553 |
+
$upsell = sprintf(
|
554 |
+
esc_html__( 'Get access to professionally designed testimonial templates with the %s extension.', 'strong-testimonials' ),
|
555 |
+
sprintf(
|
556 |
+
'<a href="%s" target="_blank">%s</a>',
|
557 |
+
esc_url( WPMTST_STORE_URL . '/extensions/pro-templates?utm_source=st-lite&utm_campaign=upsell&utm_medium=pro-templates-general-upsell' ),
|
558 |
+
esc_html__( 'Pro Templates', 'strong-testimonials' )
|
559 |
+
)
|
560 |
+
);
|
561 |
+
|
562 |
+
$upsells[] = $upsell;
|
563 |
+
return $upsells;
|
564 |
+
|
565 |
+
}
|
566 |
+
|
567 |
+
/*
|
568 |
+
Enhanced Emails
|
569 |
+
*/
|
570 |
+
public function output_enhanced_emails_upsell() {
|
571 |
+
?>
|
572 |
+
<div class="wpmtst-alert" style="margin-top: 10px">
|
573 |
+
<?php
|
574 |
+
printf(
|
575 |
+
esc_html__( 'Use the %s extension to:', 'strong-testimonials' ),
|
576 |
+
sprintf(
|
577 |
+
'<a href="%s" target="_blank">%s</a>',
|
578 |
+
esc_url( WPMTST_STORE_URL . '/extensions/enhanced-emails?utm_source=st-lite&utm_campaign=upsell&utm_medium=enhanced-emails-upsell' ),
|
579 |
+
esc_html__( 'Strong Testimonials: Enhanced Emails', 'strong-testimonials' )
|
580 |
+
)
|
581 |
+
);
|
582 |
+
?>
|
583 |
+
<ul>
|
584 |
+
<li><?php esc_html_e( 'send a thank you email to your client once his testimonial\'s approved', 'strong-testimonials' ); ?></li>
|
585 |
+
<li><?php esc_html_e( 'increase brand loyalty by showing you really care about your clients', 'strong-testimonials' ); ?></li>
|
586 |
+
<li><?php esc_html_e( 'keep your clients engaged and increase your chances of selling more', 'strong-testimonials' ); ?></li>
|
587 |
+
</ul>
|
588 |
+
<p>
|
589 |
+
<a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=enhanced-emails-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
|
590 |
+
</p>
|
591 |
+
</div>
|
592 |
+
<?php
|
593 |
+
}
|
594 |
+
|
595 |
+
public function add_enhanced_emails_upsell( $upsells ) {
|
596 |
+
$upsell = sprintf(
|
597 |
+
esc_html__( 'Send a thank-you email to your clients once their testimonial is approved using %s extension. This way, you increase brand loyalty and grow your chances of seeling more. ', 'strong-testimonials' ),
|
598 |
+
sprintf(
|
599 |
+
'<a href="%s" target="_blank">%s</a>',
|
600 |
+
esc_url( WPMTST_STORE_URL . '/extensions/enhanced-emails?utm_source=st-lite&utm_campaign=upsell&utm_medium=enhanced-emails-general-upsell' ),
|
601 |
+
esc_html__( 'Enhanced Emails', 'strong-testimonials' )
|
602 |
+
)
|
603 |
+
);
|
604 |
+
|
605 |
+
$upsells[] = $upsell;
|
606 |
+
return $upsells;
|
607 |
+
|
608 |
+
}
|
609 |
+
|
610 |
+
/*
|
611 |
+
Inifinite Scroll
|
612 |
+
*/
|
613 |
+
public function output_infinite_scroll_upsell() {
|
614 |
+
?>
|
615 |
+
<div class="wpmtst-alert" style="margin-top: 10px">
|
616 |
+
<?php
|
617 |
+
printf(
|
618 |
+
esc_html__( 'With the %s extension you can:', 'strong-testimonials' ),
|
619 |
+
sprintf(
|
620 |
+
'<a href="%s" target="_blank">%s</a>',
|
621 |
+
esc_url( WPMTST_STORE_URL . '/extensions/infinite-scroll?utm_source=st-lite&utm_campaign=upsell&utm_medium=infinite-scroll-upsell' ),
|
622 |
+
esc_html__( 'Strong Testimonials: Infinite Scroll', 'strong-testimonials' )
|
623 |
+
)
|
624 |
+
);
|
625 |
+
?>
|
626 |
+
<ul>
|
627 |
+
<li><?php esc_html_e( 'display a fixed number of testimonials on first view and have more of them load when the user starts scrolling', 'strong-testimonials' ); ?></li>
|
628 |
+
<li><?php esc_html_e( 'reduce your page\'s initial load time, making your site faster in the process and not driving clients away because of a slow loading website', 'strong-testimonials' ); ?></li>
|
629 |
+
</ul>
|
630 |
+
<p>
|
631 |
+
<a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=infinite-scroll-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
|
632 |
+
</p>
|
633 |
+
</div>
|
634 |
+
<?php
|
635 |
+
}
|
636 |
+
|
637 |
+
public function add_infinite_scroll_upsell( $upsells ) {
|
638 |
+
$upsell = sprintf(
|
639 |
+
esc_html__( 'Reduce your page’s initial load time - display a fixed number of testimonials on the first view and have more loading when you scroll down with %s extension.', 'strong-testimonials' ),
|
640 |
+
sprintf(
|
641 |
+
'<a href="%s" target="_blank">%s</a>',
|
642 |
+
esc_url( WPMTST_STORE_URL . '/extensions/infinite-scroll?utm_source=st-lite&utm_campaign=upsell&utm_medium=infinite-scroll-general-upsell' ),
|
643 |
+
esc_html__( 'Infinite Scroll', 'strong-testimonials' )
|
644 |
+
)
|
645 |
+
);
|
646 |
+
|
647 |
+
$upsells[] = $upsell;
|
648 |
+
return $upsells;
|
649 |
+
|
650 |
+
}
|
651 |
+
|
652 |
+
/*
|
653 |
+
Filters
|
654 |
+
*/
|
655 |
+
public function output_filters_upsell() {
|
656 |
+
?>
|
657 |
+
<div class="wpmtst-alert" style="margin-top:1.5rem;">
|
658 |
+
<?php
|
659 |
+
printf(
|
660 |
+
esc_html__( 'Use the %s extensions to:', 'strong-testimonials' ),
|
661 |
+
sprintf(
|
662 |
+
'<a href="%s" target="_blank">%s</a>',
|
663 |
+
esc_url( WPMTST_STORE_URL . '/extensions/filters?utm_source=st-lite&utm_campaign=upsell&utm_medium=views-filters-upsell' ),
|
664 |
+
esc_html__( 'Strong Testimonials: Filters', 'strong-testimonials' )
|
665 |
+
)
|
666 |
+
);
|
667 |
+
?>
|
668 |
+
<ul>
|
669 |
+
<li><?php esc_html_e( 'create category-like filters for your testimonials', 'strong-testimonials' ); ?></li>
|
670 |
+
<li><?php esc_html_e( 'group testimonials by associated product or service', 'strong-testimonials' ); ?></li>
|
671 |
+
<li><?php esc_html_e( 'help potential clients appreciate the great work you do by showcasing reviews from other clients', 'strong-testimonials' ); ?></li>
|
672 |
+
</ul>
|
673 |
+
<p>
|
674 |
+
<a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=filters-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
|
675 |
+
</p>
|
676 |
+
</div>
|
677 |
+
<?php
|
678 |
+
}
|
679 |
+
public function add_filters_upsell( $upsells ) {
|
680 |
+
$upsell = sprintf(
|
681 |
+
esc_html__( 'Add category-like filters for testimonials, group testimonials by associated product/service, and help potential clients appreciate the great work you do by showcasing reviews from other clients with %s extension.', 'strong-testimonials' ),
|
682 |
+
sprintf(
|
683 |
+
'<a href="%s" target="_blank">%s</a>',
|
684 |
+
esc_url( WPMTST_STORE_URL . '/extensions/filters?utm_source=st-lite&utm_campaign=upsell&utm_medium=filters-general-upsell' ),
|
685 |
+
esc_html__( 'Filters', 'strong-testimonials' )
|
686 |
+
)
|
687 |
+
);
|
688 |
+
|
689 |
+
$upsells[] = $upsell;
|
690 |
+
return $upsells;
|
691 |
+
|
692 |
+
}
|
693 |
+
|
694 |
+
/*
|
695 |
+
Assigments
|
696 |
+
*/
|
697 |
+
public function register_assigment_tab( $active_tab, $url ) {
|
698 |
+
$tab = isset( $_GET['tab'] ) ? $_GET['tab'] : '';
|
699 |
+
printf( '<a href="%s" class="nav-tab %s">%s%s</a>',
|
700 |
+
esc_url( add_query_arg( 'tab', 'assignment', $url ) ),
|
701 |
+
esc_attr( $tab == 'assignment' ? 'nav-tab-active' : '' ),
|
702 |
+
_x( 'Assignment', 'adjective', 'strong-testimonials' ),
|
703 |
+
'<span class="wpmtst-upsell-badge">PRO</span>'
|
704 |
+
);
|
705 |
+
}
|
706 |
+
public static function register_assigment_settings_page( $pages ) {
|
707 |
+
$pages[ 'assignment' ] = array( $this, 'output_assigment_upsell' );
|
708 |
+
return $pages;
|
709 |
+
}
|
710 |
+
public static function output_assigment_upsell() {
|
711 |
+
?>
|
712 |
+
|
713 |
+
<div class="wpmtst-alert" style="margin-top:1.5rem;">
|
714 |
+
<?php
|
715 |
+
printf(
|
716 |
+
esc_html__( 'The %s extension is perfect if you want to easily assign testimonials to certain custom post types.', 'strong-testimonials' ),
|
717 |
+
sprintf(
|
718 |
+
'<a href="%s" target="_blank">%s</a>',
|
719 |
+
esc_url( WPMTST_STORE_URL . '/extensions/assignment?utm_source=st-lite&utm_campaign=upsell&utm_medium=settings-tab-assigment-upsell' ),
|
720 |
+
esc_html__( 'Strong Testimonials: Assignment', 'strong-testimonials' )
|
721 |
+
)
|
722 |
+
);
|
723 |
+
?>
|
724 |
+
<p>
|
725 |
+
<a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=assigment-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
|
726 |
+
</p>
|
727 |
+
</div>
|
728 |
+
|
729 |
+
<?php
|
730 |
+
}
|
731 |
+
|
732 |
+
/*
|
733 |
+
Strong Testimonials PRO
|
734 |
+
*/
|
735 |
+
public function register_st_pro_tab( $active_tab, $url ) {
|
736 |
+
$tab = isset( $_GET['tab'] ) ? $_GET['tab'] : '';
|
737 |
+
printf( '<a href="%s" class="nav-tab %s">%s%s</a>',
|
738 |
+
esc_url( add_query_arg( 'tab', 'single_testiomonial_template', $url ) ),
|
739 |
+
esc_attr( $tab == 'single_testiomonial_template' ? 'nav-tab-active' : '' ),
|
740 |
+
_x( 'Single Testimonial Template', 'adjective', 'strong-testimonials' ),
|
741 |
+
'<span class="wpmtst-upsell-badge">PRO</span>'
|
742 |
+
);
|
743 |
+
}
|
744 |
+
public static function register_st_pro_page( $pages ) {
|
745 |
+
$pages[ 'single_testiomonial_template' ] = array( $this, 'output_st_pro_upsell' );
|
746 |
+
return $pages;
|
747 |
+
}
|
748 |
+
public static function output_st_pro_upsell() {
|
749 |
+
?>
|
750 |
+
<div class="wpmtst-alert" style="margin-top:1.5rem;">
|
751 |
+
<?php
|
752 |
+
printf(
|
753 |
+
esc_html__( 'With %s you can:', 'strong-testimonials' ),
|
754 |
+
sprintf(
|
755 |
+
'<a href="%s" target="_blank">%s</a>',
|
756 |
+
esc_url( WPMTST_STORE_URL . '/extensions/strong-testimonials-pro?utm_source=st-lite&utm_campaign=upsell&utm_medium=setting-tab-st-pro-upsell' ),
|
757 |
+
esc_html__( 'Strong Testimonials PRO', 'strong-testimonials' )
|
758 |
+
)
|
759 |
+
);
|
760 |
+
?>
|
761 |
+
<ul>
|
762 |
+
<li><?php esc_html_e( 'Display a default image when no image has been provided for the testimonial;', 'strong-testimonials' ); ?></li>
|
763 |
+
<li><?php esc_html_e( 'Use author initials as the testimonial image;', 'strong-testimonials' ); ?></li>
|
764 |
+
<li><?php esc_html_e( 'Choose the HTML tag you’d like to use for your testimonial titles;', 'strong-testimonials' ); ?></li>
|
765 |
+
<li><?php esc_html_e( 'Choose the Single Testimonial Template settings;', 'strong-testimonials' ); ?></li>
|
766 |
+
<li><?php esc_html_e( 'Prefill testimonial forms from $_GET parameters;', 'strong-testimonials' ); ?></li>
|
767 |
+
<li><?php esc_html_e( 'Show testimonial form only for logged-in users.', 'strong-testimonials' ); ?></li>
|
768 |
+
</ul>
|
769 |
+
<p>
|
770 |
+
<a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=setting-tab-st-pro-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
|
771 |
+
</p>
|
772 |
+
</div>
|
773 |
+
<?php
|
774 |
+
}
|
775 |
+
public function add_pro_upsell( $upsells ) {
|
776 |
+
$upsell = sprintf(
|
777 |
+
esc_html__( '%s provides you with a lot of new functionalities in one plugin, such as choosing the HTML tag you’d like to display for your testimonial titles or prefilling the forms from $_GET parameters. Moreover, if no image is provided for your testimonial, you can display the author’s initials or a default picture. Get started with Strong Testimonials Pro today!', 'strong-testimonials' ),
|
778 |
+
sprintf(
|
779 |
+
'<a href="%s" target="_blank">%s</a>',
|
780 |
+
esc_url( WPMTST_STORE_URL . '/extensions/strong-testimonials-pro?utm_source=st-lite&utm_campaign=upsell&utm_medium=st-pro-general-upsell' ),
|
781 |
+
esc_html__( 'Strong Testimonials PRO', 'strong-testimonials' )
|
782 |
+
)
|
783 |
+
);
|
784 |
+
|
785 |
+
$upsells[] = $upsell;
|
786 |
+
return $upsells;
|
787 |
+
|
788 |
+
}
|
789 |
+
|
790 |
+
/*
|
791 |
+
Properties
|
792 |
+
*/
|
793 |
+
public function register_properties_tab( $active_tab, $url ) {
|
794 |
+
$tab = isset( $_GET['tab'] ) ? $_GET['tab'] : '';
|
795 |
+
printf( '<a href="%s" class="nav-tab %s">%s%s</a>',
|
796 |
+
esc_url( add_query_arg( 'tab', 'properties', $url ) ),
|
797 |
+
esc_attr( $tab == 'properties' ? 'nav-tab-active' : '' ),
|
798 |
+
_x( 'Properties', 'adjective', 'strong-testimonials' ),
|
799 |
+
'<span class="wpmtst-upsell-badge">PRO</span>'
|
800 |
+
);
|
801 |
+
}
|
802 |
+
public static function register_properties_page( $pages ) {
|
803 |
+
$pages[ 'properties' ] = array( $this, 'output_properties_upsell' );
|
804 |
+
return $pages;
|
805 |
+
}
|
806 |
+
public static function output_properties_upsell() {
|
807 |
+
?>
|
808 |
+
<div class="wpmtst-alert" style="margin-top:1.5rem;">
|
809 |
Â
<?php
|
810 |
+
printf(
|
811 |
+
esc_html__( 'Easily customize default testimonial attributes such as labels, permalink structure, icons and more with the %s extension.', 'strong-testimonials' ),
|
812 |
+
sprintf(
|
813 |
+
'<a href="%s" target="_blank">%s</a>',
|
814 |
+
esc_url( WPMTST_STORE_URL . '/extensions/properties?utm_source=st-lite&utm_campaign=upsell&utm_medium=settings-tab-properties-upsell' ),
|
815 |
+
esc_html__( 'Strong Testimonials: Properties', 'strong-testimonials' )
|
816 |
+
)
|
817 |
+
);
|
818 |
+
?>
|
819 |
+
<p>
|
820 |
+
<a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=properties-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
|
821 |
+
</p>
|
822 |
+
</div>
|
823 |
+
<?php
|
824 |
Â
}
|
825 |
Â
|
826 |
Â
}
|
admin/js/admin-form.js
CHANGED
@@ -54,11 +54,10 @@ jQuery(document).ready(function ($) {
|
|
54 |
Â
*/
|
55 |
Â
|
56 |
Â
var $tagListItems = $('#wpmtst-tags-list li');
|
57 |
-
|
58 |
Â
$tagListItems.attr('title', wpmtst_admin.templateTagTitle);
|
59 |
Â
|
60 |
Â
$tagListItems.on('click', function () {
|
61 |
-
$('#wpmtst-option-email-message').insertAtCaret($(this).text());
|
62 |
Â
return false;
|
63 |
Â
});
|
64 |
Â
|
54 |
Â
*/
|
55 |
Â
|
56 |
Â
var $tagListItems = $('#wpmtst-tags-list li');
|
Â
|
|
57 |
Â
$tagListItems.attr('title', wpmtst_admin.templateTagTitle);
|
58 |
Â
|
59 |
Â
$tagListItems.on('click', function () {
|
60 |
+
$(this).closest('.email-container').find('#wpmtst-option-email-message').insertAtCaret($(this).text());
|
61 |
Â
return false;
|
62 |
Â
});
|
63 |
Â
|
admin/js/views.js
CHANGED
@@ -611,7 +611,7 @@ jQuery(document).ready(function ($) {
|
|
611 |
Â
* Template change listener
|
612 |
Â
*/
|
613 |
Â
// TODO Use ID
|
614 |
-
var templateRadios = $('input[type=radio]
|
615 |
Â
|
616 |
Â
function templateDescriptions () {
|
617 |
Â
var templateRadioOff, templateRadioOn, template;
|
611 |
Â
* Template change listener
|
612 |
Â
*/
|
613 |
Â
// TODO Use ID
|
614 |
+
var templateRadios = $('.template-list input[type=radio]');
|
615 |
Â
|
616 |
Â
function templateDescriptions () {
|
617 |
Â
var templateRadioOff, templateRadioOn, template;
|
admin/menu/class-strong-testimonials-menu-fields.php
CHANGED
@@ -42,8 +42,8 @@ class Strong_Testimonials_Menu_Fields {
|
|
42 |
Â
*/
|
43 |
Â
public static function get_submenu() {
|
44 |
Â
return array(
|
45 |
-
'page_title' => apply_filters( 'wpmtst_fields_page_title', __( '
|
46 |
-
'menu_title' => apply_filters( 'wpmtst_fields_menu_title', __( '
|
47 |
Â
'capability' => 'strong_testimonials_fields',
|
48 |
Â
'menu_slug' => 'testimonial-fields',
|
49 |
Â
'function' => 'wpmtst_form_admin',
|
42 |
Â
*/
|
43 |
Â
public static function get_submenu() {
|
44 |
Â
return array(
|
45 |
+
'page_title' => apply_filters( 'wpmtst_fields_page_title', __( 'Form', 'strong-testimonials' ) ),
|
46 |
+
'menu_title' => apply_filters( 'wpmtst_fields_menu_title', __( 'Form', 'strong-testimonials' ) ),
|
47 |
Â
'capability' => 'strong_testimonials_fields',
|
48 |
Â
'menu_slug' => 'testimonial-fields',
|
49 |
Â
'function' => 'wpmtst_form_admin',
|
admin/partials/views/option-pagination.php
CHANGED
@@ -28,13 +28,13 @@ $links .= '</span>';
|
|
28 |
Â
</select>
|
29 |
Â
</label>
|
30 |
Â
</div>
|
31 |
-
<div class="inline then fast then_simple then_not_standard" style="display: none;">
|
32 |
Â
<p class="description">
|
33 |
Â
<?php _e( 'Using JavaScript. Intended for small scale.', 'strong-testimonials' ); ?>
|
34 |
Â
<?php echo $links; ?>
|
35 |
Â
</p>
|
36 |
Â
</div>
|
37 |
-
<div class="inline then fast then_not_simple then_standard" style="display: none;">
|
38 |
Â
<p class="description">
|
39 |
Â
<?php _e( 'Using paged URLs: /page/2, /page/3, etc. Best for large scale.', 'strong-testimonials' ); ?>
|
40 |
Â
<?php echo $links; ?>
|
@@ -55,7 +55,7 @@ $links .= '</span>';
|
|
55 |
Â
value="<?php echo $view['pagination_settings']['per_page']; ?>"/>
|
56 |
Â
</div>
|
57 |
Â
|
58 |
-
<div class="inline">
|
59 |
Â
<label for="view-nav">
|
60 |
Â
<?php _e( 'Navigation', 'strong-testimonials' ); ?>
|
61 |
Â
</label>
|
@@ -73,7 +73,7 @@ $links .= '</span>';
|
|
73 |
Â
</div>
|
74 |
Â
</div>
|
75 |
Â
|
76 |
-
<div class="row then then_not_simple then_standard" style="display: none;">
|
77 |
Â
<div class="row-inner">
|
78 |
Â
<div class="inline">
|
79 |
Â
<label for="view-pagination-show_all">
|
@@ -112,7 +112,7 @@ $links .= '</span>';
|
|
112 |
Â
</div>
|
113 |
Â
</div>
|
114 |
Â
|
115 |
-
<div class="row then then_not_simple then_standard" style="display: none;">
|
116 |
Â
<div class="row-inner">
|
117 |
Â
<div class="inline inline-middle">
|
118 |
Â
<input class="if toggle checkbox" id="view-pagination-prev_next"
|
@@ -141,7 +141,7 @@ $links .= '</span>';
|
|
141 |
Â
</div>
|
142 |
Â
</div>
|
143 |
Â
|
144 |
-
<div class="row then then_not_simple then_standard" style="display: none;">
|
145 |
Â
<div class="row-inner">
|
146 |
Â
<div class="inline">
|
147 |
Â
<label for="view-pagination-before_page_number">
|
28 |
Â
</select>
|
29 |
Â
</label>
|
30 |
Â
</div>
|
31 |
+
<div class="inline then fast then_simple then_not_standard then_not_infinitescroll" style="display: none;">
|
32 |
Â
<p class="description">
|
33 |
Â
<?php _e( 'Using JavaScript. Intended for small scale.', 'strong-testimonials' ); ?>
|
34 |
Â
<?php echo $links; ?>
|
35 |
Â
</p>
|
36 |
Â
</div>
|
37 |
+
<div class="inline then fast then_not_simple then_standard then_not_infinitescroll" style="display: none;">
|
38 |
Â
<p class="description">
|
39 |
Â
<?php _e( 'Using paged URLs: /page/2, /page/3, etc. Best for large scale.', 'strong-testimonials' ); ?>
|
40 |
Â
<?php echo $links; ?>
|
55 |
Â
value="<?php echo $view['pagination_settings']['per_page']; ?>"/>
|
56 |
Â
</div>
|
57 |
Â
|
58 |
+
<div class="inline then then_simple then_standard then_not_infinitescroll">
|
59 |
Â
<label for="view-nav">
|
60 |
Â
<?php _e( 'Navigation', 'strong-testimonials' ); ?>
|
61 |
Â
</label>
|
73 |
Â
</div>
|
74 |
Â
</div>
|
75 |
Â
|
76 |
+
<div class="row then then_not_simple then_standard then_not_infinitescroll" style="display: none;">
|
77 |
Â
<div class="row-inner">
|
78 |
Â
<div class="inline">
|
79 |
Â
<label for="view-pagination-show_all">
|
112 |
Â
</div>
|
113 |
Â
</div>
|
114 |
Â
|
115 |
+
<div class="row then then_not_simple then_standard then_not_infinitescroll" style="display: none;">
|
116 |
Â
<div class="row-inner">
|
117 |
Â
<div class="inline inline-middle">
|
118 |
Â
<input class="if toggle checkbox" id="view-pagination-prev_next"
|
141 |
Â
</div>
|
142 |
Â
</div>
|
143 |
Â
|
144 |
+
<div class="row then then_not_simple then_standard then_not_infinitescroll" style="display: none;">
|
145 |
Â
<div class="row-inner">
|
146 |
Â
<div class="inline">
|
147 |
Â
<label for="view-pagination-before_page_number">
|
admin/settings/class-strong-testimonials-settings-form.php
CHANGED
@@ -46,7 +46,7 @@ class Strong_Testimonials_Settings_Form {
|
|
46 |
Â
printf( '<a href="%s" class="nav-tab %s">%s</a>',
|
47 |
Â
esc_url( add_query_arg( 'tab', self::TAB_NAME, $url ) ),
|
48 |
Â
esc_attr( $active_tab == self::TAB_NAME ? 'nav-tab-active' : '' ),
|
49 |
-
__( 'Form', 'strong-testimonials' )
|
50 |
Â
);
|
51 |
Â
}
|
52 |
Â
|
46 |
Â
printf( '<a href="%s" class="nav-tab %s">%s</a>',
|
47 |
Â
esc_url( add_query_arg( 'tab', self::TAB_NAME, $url ) ),
|
48 |
Â
esc_attr( $active_tab == self::TAB_NAME ? 'nav-tab-active' : '' ),
|
49 |
+
__( 'Form & Email', 'strong-testimonials' )
|
50 |
Â
);
|
51 |
Â
}
|
52 |
Â
|
admin/settings/class-strong-testimonials-settings.php
CHANGED
@@ -49,7 +49,9 @@ class Strong_Testimonials_Settings {
|
|
49 |
Â
<div class="wrap wpmtst">
|
50 |
Â
|
51 |
Â
<h1><?php echo wp_kses_post( apply_filters( 'wpmtst_cpt_singular_name', esc_html__( 'Testimonial', 'strong-testimonials' ) ) ); ?> <?php esc_html_e( 'Settings', 'strong-testimonials' ); ?></h1>
|
52 |
-
|
Â
|
|
Â
|
|
53 |
Â
<?php if ( isset( $_GET['settings-updated'] ) ) : ?>
|
54 |
Â
<div id="message" class="updated notice is-dismissible">
|
55 |
Â
<p><?php esc_html_e( 'Settings saved.', 'strong-testimonials' ); ?></p>
|
@@ -60,21 +62,24 @@ class Strong_Testimonials_Settings {
|
|
60 |
Â
<?php do_action( 'wpmtst_settings_tabs', $tab, $url ); ?>
|
61 |
Â
</h2>
|
62 |
Â
|
63 |
-
<
|
64 |
-
<?php
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
Â
|
|
Â
|
|
Â
|
|
78 |
Â
|
79 |
Â
</div><!-- .wrap -->
|
80 |
Â
<?php
|
49 |
Â
<div class="wrap wpmtst">
|
50 |
Â
|
51 |
Â
<h1><?php echo wp_kses_post( apply_filters( 'wpmtst_cpt_singular_name', esc_html__( 'Testimonial', 'strong-testimonials' ) ) ); ?> <?php esc_html_e( 'Settings', 'strong-testimonials' ); ?></h1>
|
52 |
+
|
53 |
+
<?php do_action( 'wpmtst_testimonials_settings' ); ?>
|
54 |
+
|
55 |
Â
<?php if ( isset( $_GET['settings-updated'] ) ) : ?>
|
56 |
Â
<div id="message" class="updated notice is-dismissible">
|
57 |
Â
<p><?php esc_html_e( 'Settings saved.', 'strong-testimonials' ); ?></p>
|
62 |
Â
<?php do_action( 'wpmtst_settings_tabs', $tab, $url ); ?>
|
63 |
Â
</h2>
|
64 |
Â
|
65 |
+
<div class="wpmts-settings-columns">
|
66 |
+
<form id="<?php echo esc_attr( $tab ); ?>-form" method="post" action="options.php" enctype="multipart/form-data">
|
67 |
+
<?php
|
68 |
+
if ( isset( self::$callbacks[ $tab ] ) && wpmtst_callback_exists( self::$callbacks[ $tab ] ) ) {
|
69 |
+
call_user_func( self::$callbacks[ $tab ] );
|
70 |
+
} else {
|
71 |
+
call_user_func( self::$callbacks[ self::DEFAULT_TAB ] );
|
72 |
+
}
|
73 |
+
|
74 |
+
if ( has_action( 'wpmtst_settings_submit_row' ) ) {
|
75 |
+
echo '<p class="submit-buttons">';
|
76 |
+
do_action( 'wpmtst_settings_submit_row' );
|
77 |
+
echo '</p>';
|
78 |
+
}
|
79 |
+
?>
|
80 |
+
</form>
|
81 |
+
<?php do_action( 'wpmtst_admin_after_settings_form' ) ?>
|
82 |
+
</div>
|
83 |
Â
|
84 |
Â
</div><!-- .wrap -->
|
85 |
Â
<?php
|
admin/settings/partials/form.php
CHANGED
@@ -123,6 +123,9 @@ $form_options = get_option( 'wpmtst_form_options' );
|
|
123 |
Â
<h3><?php _e( 'Form Actions', 'strong-testimonials' ); ?></h3>
|
124 |
Â
|
125 |
Â
<table class="form-table" cellpadding="0" cellspacing="0">
|
Â
|
|
Â
|
|
Â
|
|
126 |
Â
<tr>
|
127 |
Â
<th scope="row">
|
128 |
Â
<label for="redirect-page">
|
@@ -215,7 +218,7 @@ $form_options = get_option( 'wpmtst_form_options' );
|
|
215 |
Â
<fieldset>
|
216 |
Â
<label for="wpmtst-options-admin-notify">
|
217 |
Â
<input id="wpmtst-options-admin-notify" type="checkbox" name="wpmtst_form_options[admin_notify]" <?php checked( $form_options['admin_notify'] ); ?>/>
|
218 |
-
<?php esc_html_e( '
|
219 |
Â
</label>
|
220 |
Â
</fieldset>
|
221 |
Â
</div>
|
@@ -228,9 +231,11 @@ $form_options = get_option( 'wpmtst_form_options' );
|
|
228 |
Â
?>
|
229 |
Â
</div>
|
230 |
Â
<?php do_action('wpmtst_after_notification_options', $form_options); ?>
|
Â
|
|
231 |
Â
|
232 |
Â
</td>
|
233 |
Â
</tr>
|
Â
|
|
234 |
Â
</table>
|
235 |
Â
|
236 |
Â
<?php do_action( 'wpmtst_after_form_settings', $form_options, 'wpmtst_form_options' ); ?>
|
123 |
Â
<h3><?php _e( 'Form Actions', 'strong-testimonials' ); ?></h3>
|
124 |
Â
|
125 |
Â
<table class="form-table" cellpadding="0" cellspacing="0">
|
126 |
+
|
127 |
+
<?php do_action('wpmtst_before_form_actions', $form_options); ?>
|
128 |
+
|
129 |
Â
<tr>
|
130 |
Â
<th scope="row">
|
131 |
Â
<label for="redirect-page">
|
218 |
Â
<fieldset>
|
219 |
Â
<label for="wpmtst-options-admin-notify">
|
220 |
Â
<input id="wpmtst-options-admin-notify" type="checkbox" name="wpmtst_form_options[admin_notify]" <?php checked( $form_options['admin_notify'] ); ?>/>
|
221 |
+
<?php esc_html_e( 'Receive an email when new testimonials are submitted and waiting for approval.', 'strong-testimonials' ); ?>
|
222 |
Â
</label>
|
223 |
Â
</fieldset>
|
224 |
Â
</div>
|
231 |
Â
?>
|
232 |
Â
</div>
|
233 |
Â
<?php do_action('wpmtst_after_notification_options', $form_options); ?>
|
234 |
+
<?php do_action( 'wpmtst_after_mail_notification_settings' ); ?>
|
235 |
Â
|
236 |
Â
</td>
|
237 |
Â
</tr>
|
238 |
+
|
239 |
Â
</table>
|
240 |
Â
|
241 |
Â
<?php do_action( 'wpmtst_after_form_settings', $form_options, 'wpmtst_form_options' ); ?>
|
admin/views.php
CHANGED
@@ -249,6 +249,7 @@ function wpmtst_view_settings( $action = '', $view_id = null ) {
|
|
249 |
Â
|
250 |
Â
do_action( 'wpmtst_view_editor_before_group_style' );
|
251 |
Â
include( 'partials/views/group-style.php' );
|
Â
|
|
252 |
Â
|
253 |
Â
do_action( 'wpmtst_view_editor_before_group_compat' );
|
254 |
Â
include( 'partials/views/group-compat.php' );
|
249 |
Â
|
250 |
Â
do_action( 'wpmtst_view_editor_before_group_style' );
|
251 |
Â
include( 'partials/views/group-style.php' );
|
252 |
+
do_action( 'wpmtst_after_style_view_section' );
|
253 |
Â
|
254 |
Â
do_action( 'wpmtst_view_editor_before_group_compat' );
|
255 |
Â
include( 'partials/views/group-compat.php' );
|
assets/css/admin-global.css
CHANGED
@@ -45,4 +45,43 @@
|
|
45 |
Â
|
46 |
Â
.wpmtst-inline-block {
|
47 |
Â
display:inline-block;
|
48 |
-
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
45 |
Â
|
46 |
Â
.wpmtst-inline-block {
|
47 |
Â
display:inline-block;
|
48 |
+
}
|
49 |
+
|
50 |
+
.wpmts-settings-columns {
|
51 |
+
display: flex;
|
52 |
+
}
|
53 |
+
|
54 |
+
.wpmts-settings-columns > form {
|
55 |
+
flex-grow: 1;
|
56 |
+
}
|
57 |
+
|
58 |
+
.wpmts-settings-columns .wpmtst-settings-upsell {
|
59 |
+
width: 25%;
|
60 |
+
padding-left: 30px;
|
61 |
+
flex-grow: 0;
|
62 |
+
flex-shrink: 0;
|
63 |
+
}
|
64 |
+
|
65 |
+
.wpmtst-settings-upsell .wpmtst-alert ul {
|
66 |
+
list-style: none;
|
67 |
+
padding: 0;
|
68 |
+
margin: 0;
|
69 |
+
}
|
70 |
+
.wpmtst-settings-upsell .wpmtst-alert ul li {
|
71 |
+
margin-bottom: 10px;
|
72 |
+
}
|
73 |
+
|
74 |
+
.wpmtst-alert {
|
75 |
+
padding: 20px;
|
76 |
+
background: #f4daa4;
|
77 |
+
color: #8d6e30;
|
78 |
+
position: relative;
|
79 |
+
}
|
80 |
+
span.wpmtst-upsell-badge {
|
81 |
+
font-size: 10px;
|
82 |
+
background: #f4daa4;
|
83 |
+
padding: 2px 5px;
|
84 |
+
display: inline-block;
|
85 |
+
margin-left: 10px;
|
86 |
+
border-radius: 10px;
|
87 |
+
}
|
changelog.txt
CHANGED
@@ -1,3 +1,9 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1 |
Â
= 2.41.1 =
|
2 |
Â
* Fixed title option bug from views
|
3 |
Â
* Fixed continous sliding behavior bug
|
@@ -17,8 +23,6 @@
|
|
17 |
Â
* Fixed incompatibility with WP Rocket to randomize testimonials
|
18 |
Â
* Fixed font color bug
|
19 |
Â
|
20 |
-
= 2.40.2 - Feb. 26, 2020 =
|
21 |
-
|
22 |
Â
= 2.40.7 - May 25, 2020 =
|
23 |
Â
* Fixed pagination buttons
|
24 |
Â
* Fixed spinner for submitted form
|
1 |
+
= 2.50.0 =
|
2 |
+
* Fixed read more bug
|
3 |
+
* Added integration with the new addons
|
4 |
+
* Changed email's content type
|
5 |
+
* Fixed slider navigation and pagination bug
|
6 |
+
|
7 |
Â
= 2.41.1 =
|
8 |
Â
* Fixed title option bug from views
|
9 |
Â
* Fixed continous sliding behavior bug
|
23 |
Â
* Fixed incompatibility with WP Rocket to randomize testimonials
|
24 |
Â
* Fixed font color bug
|
25 |
Â
|
Â
|
|
Â
|
|
26 |
Â
= 2.40.7 - May 25, 2020 =
|
27 |
Â
* Fixed pagination buttons
|
28 |
Â
* Fixed spinner for submitted form
|
includes/class-strong-form.php
CHANGED
@@ -504,7 +504,7 @@ class Strong_Testimonials_Form {
|
|
504 |
Â
}
|
505 |
Â
|
506 |
Â
// Headers
|
507 |
-
$headers = 'Content-Type: text/
|
508 |
Â
if ( $form_options['sender_name'] ) {
|
509 |
Â
$headers .= sprintf( 'From: %s <%s>', $form_options['sender_name'], $sender_email ) . "\n";
|
510 |
Â
}
|
504 |
Â
}
|
505 |
Â
|
506 |
Â
// Headers
|
507 |
+
$headers = 'Content-Type: text/html; charset="' . get_option( 'blog_charset' ) . '"' . "\n";
|
508 |
Â
if ( $form_options['sender_name'] ) {
|
509 |
Â
$headers .= sprintf( 'From: %s <%s>', $form_options['sender_name'], $sender_email ) . "\n";
|
510 |
Â
}
|
includes/class-strong-testimonials-privacy.php
CHANGED
@@ -186,12 +186,11 @@ class Strong_Testimonials_Privacy {
|
|
186 |
Â
}
|
187 |
Â
|
188 |
Â
$content = wp_kses_post( apply_filters( 'wpmtst_privacy_policy_content', __( '
|
189 |
-
We collect information about you when you fill
|
190 |
-
|
191 |
-
- Send
|
192 |
-
- Send
|
193 |
-
- Set up and administer your account, provide technical
|
194 |
-
', 'strong-testimonial-downloads' ) ) );
|
195 |
Â
|
196 |
Â
wp_add_privacy_policy_content( 'Strong Testimonial Privacy Policy', wpautop( $content ) );
|
197 |
Â
}
|
186 |
Â
}
|
187 |
Â
|
188 |
Â
$content = wp_kses_post( apply_filters( 'wpmtst_privacy_policy_content', __( '
|
189 |
+
We collect certain pieces of information about you when you fill one of our testimonial forms. This includes your full name, e-mail address, photo, company name, and website.
|
190 |
+
By agreeing to these terms, you also allow us to::
|
191 |
+
- Send a confirmation e-mail, to let you know your testimonial was received and approved;
|
192 |
+
- Send important account/ product/ service information;
|
193 |
+
- Set up and administer your account, provide technical/customer support, and verify your identity.', 'strong-testimonial-downloads' ) ) );
|
Â
|
|
194 |
Â
|
195 |
Â
wp_add_privacy_policy_content( 'Strong Testimonial Privacy Policy', wpautop( $content ) );
|
196 |
Â
}
|
includes/functions-template-form.php
CHANGED
@@ -64,6 +64,7 @@ function wpmtst_form_field( $field_name ) {
|
|
64 |
Â
|
65 |
Â
function wpmtst_single_form_field( $field ) {
|
66 |
Â
$form_values = WPMST()->form->get_form_values();
|
Â
|
|
67 |
Â
|
68 |
Â
echo '<div class="' . wpmtst_field_group_classes( $field['input_type'], $field['name'] ) . '">';
|
69 |
Â
|
@@ -154,10 +155,17 @@ function wpmtst_single_form_field( $field ) {
|
|
154 |
Â
break;
|
155 |
Â
|
156 |
Â
case 'rating':
|
Â
|
|
Â
|
|
Â
|
|
157 |
Â
wpmtst_star_rating_form( $field, $field['default_form_value'], 'in-form' );
|
158 |
Â
break;
|
159 |
Â
|
160 |
Â
case 'checkbox':
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
161 |
Â
if ( ! isset( $field['show_label'] ) || $field['show_label'] ) {
|
162 |
Â
printf(
|
163 |
Â
'<label for="wpmtst_%s" class="%s">%s</label>',
|
64 |
Â
|
65 |
Â
function wpmtst_single_form_field( $field ) {
|
66 |
Â
$form_values = WPMST()->form->get_form_values();
|
67 |
+
$form_values = apply_filters('get_predefined_values', $form_values, $field);
|
68 |
Â
|
69 |
Â
echo '<div class="' . wpmtst_field_group_classes( $field['input_type'], $field['name'] ) . '">';
|
70 |
Â
|
155 |
Â
break;
|
156 |
Â
|
157 |
Â
case 'rating':
|
158 |
+
if (isset($form_values[$field['name']]) && !empty($form_values[$field['name']])) {
|
159 |
+
$field['default_form_value'] = $form_values[$field['name']];
|
160 |
+
}
|
161 |
Â
wpmtst_star_rating_form( $field, $field['default_form_value'], 'in-form' );
|
162 |
Â
break;
|
163 |
Â
|
164 |
Â
case 'checkbox':
|
165 |
+
if (isset($form_values[$field['name']]) && !empty($form_values[$field['name']]) ) {
|
166 |
+
$field['default_form_value'] = $form_values[$field['name']];
|
167 |
+
}
|
168 |
+
|
169 |
Â
if ( ! isset( $field['show_label'] ) || $field['show_label'] ) {
|
170 |
Â
printf(
|
171 |
Â
'<label for="wpmtst_%s" class="%s">%s</label>',
|
public/css/slider-controls-simple-buttons2-pager-text.css
CHANGED
@@ -101,16 +101,22 @@
|
|
101 |
Â
background:#fff;
|
102 |
Â
position: relative;
|
103 |
Â
left: -1px;
|
104 |
-
|
Â
|
|
Â
|
|
Â
|
|
105 |
Â
}
|
106 |
Â
.strong-view.controls-style-buttons2:not(.rtl) .wpmslider-next:before {
|
107 |
Â
content: "";
|
108 |
Â
-webkit-mask: url('../svg/chevron-right-solid.svg') center center no-repeat;
|
109 |
Â
mask: url('../svg/chevron-right-solid.svg') center center no-repeat;
|
110 |
-
background:#fff;
|
111 |
Â
position: relative;
|
112 |
Â
left: 1px;
|
113 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
114 |
Â
}
|
115 |
Â
.strong-view.controls-style-buttons2.rtl .wpmslider-prev:before {
|
116 |
Â
content: "";
|
101 |
Â
background:#fff;
|
102 |
Â
position: relative;
|
103 |
Â
left: -1px;
|
104 |
+
display: inline-block;
|
105 |
+
width: 20px;
|
106 |
+
height: 20px;
|
107 |
+
top: 3px;
|
108 |
Â
}
|
109 |
Â
.strong-view.controls-style-buttons2:not(.rtl) .wpmslider-next:before {
|
110 |
Â
content: "";
|
111 |
Â
-webkit-mask: url('../svg/chevron-right-solid.svg') center center no-repeat;
|
112 |
Â
mask: url('../svg/chevron-right-solid.svg') center center no-repeat;
|
Â
|
|
113 |
Â
position: relative;
|
114 |
Â
left: 1px;
|
115 |
+
display: inline-block;
|
116 |
+
width: 20px;
|
117 |
+
background: #fff;
|
118 |
+
height: 20px;
|
119 |
+
top: 3px;
|
120 |
Â
}
|
121 |
Â
.strong-view.controls-style-buttons2.rtl .wpmslider-prev:before {
|
122 |
Â
content: "";
|
public/js/lib/actual/jquery-actual.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){t.fn.addBack=t.fn.addBack||t.fn.andSelf,t.fn.extend({actual:function(e,n){if(!this[e])throw'$.actual => The jQuery method "'+e+'" you called does not exist';var i,a,o=t.extend({absolute:!1,clone:!1,includeMargin:!1,display:"block"},n),d=this.eq(0);if(!0===o.clone)i=function(){d=d.clone().attr("style","position: absolute !important; top: -1000 !important; ").appendTo("body")},a=function(){d.remove()};else{var r,l=[],s="";i=function(){r=d.parents().addBack().filter(":hidden"),s+="visibility: hidden !important; display: "+o.display+" !important; ",!0===o.absolute&&(s+="position: absolute !important; "),r.each(function(){var e=t(this),n=e.attr("style");l.push(n),e.attr("style",n?n+";"+s:s)})},a=function(){r.each(function(e){var n=t(this),i=l[e];void 0===i?n.removeAttr("style"):n.attr("style",i)})}}i();var u=/(outer)/.test(e)?d[e](o.includeMargin):d[e]();return a(),u}})});
|
public/js/lib/actual/jquery.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){a.fn.addBack=a.fn.addBack||a.fn.andSelf,a.fn.extend({actual:function(b,c){if(!this[b])throw'$.actual => The jQuery method "'+b+'" you called does not exist';var d,e,f={absolute:!1,clone:!1,includeMargin:!1,display:"block"},g=a.extend(f,c),h=this.eq(0);if(g.clone===!0)d=function(){var a="position: absolute !important; top: -1000 !important; ";h=h.clone().attr("style",a).appendTo("body")},e=function(){h.remove()};else{var i,j=[],k="";d=function(){i=h.parents().addBack().filter(":hidden"),k+="visibility: hidden !important; display: "+g.display+" !important; ",g.absolute===!0&&(k+="position: absolute !important; "),i.each(function(){var b=a(this),c=b.attr("style");j.push(c),b.attr("style",c?c+";"+k:k)})},e=function(){i.each(function(b){var c=a(this),d=j[b];void 0===d?c.removeAttr("style"):c.attr("style",d)})}}d();var l=/(outer)/.test(b)?h[b](g.includeMargin):h[b]();return e(),l}})}),!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){a.fn.addBack=a.fn.addBack||a.fn.andSelf,a.fn.extend({actual:function(b,c){if(!this[b])throw'$.actual => The jQuery method "'+b+'" you called does not exist';var d,e,f={absolute:!1,clone:!1,includeMargin:!1,display:"block"},g=a.extend(f,c),h=this.eq(0);if(g.clone===!0)d=function(){var a="position: absolute !important; top: -1000 !important; ";h=h.clone().attr("style",a).appendTo("body")},e=function(){h.remove()};else{var i,j=[],k="";d=function(){i=h.parents().addBack().filter(":hidden"),k+="visibility: hidden !important; display: "+g.display+" !important; ",g.absolute===!0&&(k+="position: absolute !important; "),i.each(function(){var b=a(this),c=b.attr("style");j.push(c),b.attr("style",c?c+";"+k:k)})},e=function(){i.each(function(b){var c=a(this),d=j[b];void 0===d?c.removeAttr("style"):c.attr("style",d)})}}d();var l=/(outer)/.test(b)?h[b](g.includeMargin):h[b]();return e(),l}})});
|
1 |
+
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){a.fn.addBack=a.fn.addBack||a.fn.andSelf,a.fn.extend({actual:function(b,c){if(!this[b])throw'$.actual => The jQuery method "'+b+'" you called does not exist';var d,e,f={absolute:!1,clone:!1,includeMargin:!1,display:"block"},g=a.extend(f,c),h=this.eq(0);if(g.clone===!0)d=function(){var a="position: absolute !important; top: -1000 !important; ";h=h.clone().attr("style",a).appendTo("body")},e=function(){h.remove()};else{var i,j=[],k="";d=function(){i=h.parents().addBack().filter(":hidden"),k+="visibility: hidden !important; display: "+g.display+" !important; ",g.absolute===!0&&(k+="position: absolute !important; "),i.each(function(){var b=a(this),c=b.attr("style");j.push(c),b.attr("style",c?c+";"+k:k)})},e=function(){i.each(function(b){var c=a(this),d=j[b];void 0===d?c.removeAttr("style"):c.attr("style",d)})}}d();var l=/(outer)/.test(b)?h[b](g.includeMargin):h[b]();return e(),l}})}),!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){a.fn.addBack=a.fn.addBack||a.fn.andSelf,a.fn.extend({actual:function(b,c){if(!this[b])throw'$.actual => The jQuery method "'+b+'" you called does not exist';var d,e,f={absolute:!1,clone:!1,includeMargin:!1,display:"block"},g=a.extend(f,c),h=this.eq(0);if(g.clone===!0)d=function(){var a="position: absolute !important; top: -1000 !important; ";h=h.clone().attr("style",a).appendTo("body")},e=function(){h.remove()};else{var i,j=[],k="";d=function(){i=h.parents().addBack().filter(":hidden"),k+="visibility: hidden !important; display: "+g.display+" !important; ",g.absolute===!0&&(k+="position: absolute !important; "),i.each(function(){var b=a(this),c=b.attr("style");j.push(c),b.attr("style",c?c+";"+k:k)})},e=function(){i.each(function(b){var c=a(this),d=j[b];void 0===d?c.removeAttr("style"):c.attr("style",d)})}}d();var l=/(outer)/.test(b)?h[b](g.includeMargin):h[b]();return e(),l}})}),!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){a.fn.addBack=a.fn.addBack||a.fn.andSelf,a.fn.extend({actual:function(b,c){if(!this[b])throw'$.actual => The jQuery method "'+b+'" you called does not exist';var d,e,f={absolute:!1,clone:!1,includeMargin:!1,display:"block"},g=a.extend(f,c),h=this.eq(0);if(g.clone===!0)d=function(){var a="position: absolute !important; top: -1000 !important; ";h=h.clone().attr("style",a).appendTo("body")},e=function(){h.remove()};else{var i,j=[],k="";d=function(){i=h.parents().addBack().filter(":hidden"),k+="visibility: hidden !important; display: "+g.display+" !important; ",g.absolute===!0&&(k+="position: absolute !important; "),i.each(function(){var b=a(this),c=b.attr("style");j.push(c),b.attr("style",c?c+";"+k:k)})},e=function(){i.each(function(b){var c=a(this),d=j[b];void 0===d?c.removeAttr("style"):c.attr("style",d)})}}d();var l=/(outer)/.test(b)?h[b](g.includeMargin):h[b]();return e(),l}})});
|
public/js/lib/form-validation/form-validation.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
var strongValidation={defaults:{ajaxUrl:"",display:{successMessage:!1},scroll:{onError:!0,onErrorOffset:100,onSuccess:!0,onSuccessOffset:100},fields:{}},settings:{},setOpts:function(a){this.settings=jQuery.extend({},this.defaults,a)},rules:{},setRules:function(){for(var a=0;a<this.settings.fields.length;a++)"rating"===this.settings.fields[a].type&&1===this.settings.fields[a].required&&(this.rules[this.settings.fields[a].name]={ratingRequired:!0})},init:function(){var a={};"undefined"!=typeof window.strongForm&&(a=window.strongForm),this.setOpts(a),this.settings.display.successMessage?this.scrollOnSuccess():(this.setRules(),this.changeEvents(),this.customValidators(),this.validateForm())},changeEvents:function(){jQuery('input[type="text"], input[type="url"], input[type="email"], textarea',"#wpmtst-submission-form").on("change blur",function(a){a.target.value=a.target.value.trim()}),jQuery("input[type=url]").change(function(){this.value.length&&!/^https*:\/\//.test(this.value)&&(this.value="https://"+this.value)});for(var a=document.getElementsByClassName("strong-rating"),b=0;b<a.length;b++)a[b].addEventListener("click",this.handleRadioEvent,!0),a[b].addEventListener("keyup",this.handleRadioEvent,!0),a[b].addEventListener("change",function(){jQuery(this).valid()},!0)},handleRadioEvent:function(a){if(a.keyCode>=48&&a.keyCode<=53){var b=a.keyCode-48;jQuery(this).find('input[type="radio"][value='+b+"]").click()}},customValidators:function(){jQuery.validator.addMethod("ratingRequired",function(a,b){return jQuery(b).find("input:checked").val()>0},jQuery.validator.messages.required)},validateForm:function(){var a=jQuery("#wpmtst-submission-form");a.validate({onfocusout:!1,focusInvalid:!1,invalidHandler:function(a,b){var c=b.numberOfInvalids();if(c)if(strongValidation.settings.scroll.onError){if("undefined"!=typeof b.errorList[0]){var d=jQuery(b.errorList[0].element),e=d.closest(".form-field").offset(),f=e.top-strongValidation.settings.scroll.onErrorOffset;jQuery("html, body").animate({scrollTop:f},800,function(){d.focus()})}}else b.errorList[0].element.focus()},submitHandler:function(a){if(strongValidation.disableForm(),""!==strongValidation.settings.ajaxUrl){window.onbeforeunload=function(){return"Please wait while the form is submitted."};var b={url:strongValidation.settings.ajaxUrl,data:{action:"wpmtst_form2"},success:strongValidation.showResponse};jQuery(a).ajaxSubmit(b)}else a.submit()},rules:strongValidation.rules,errorPlacement:function(a,b){a.appendTo(b.closest("div.form-field"))},highlight:function(a,b,c){"checkbox"===a.type?jQuery(a).closest(".field-wrap").addClass(b).removeClass(c):"rating"===jQuery(a).data("fieldType")?jQuery(a).closest(".field-wrap").addClass(b).removeClass(c):jQuery(a).addClass(b).removeClass(c)},unhighlight:function(a,b,c){"checkbox"===a.type?jQuery(a).closest(".field-wrap").removeClass(b).addClass(c):"rating"===jQuery(a).data("fieldType")?jQuery(a).closest(".field-wrap").removeClass(b).addClass(c):jQuery(a).removeClass(b).addClass(c)}})},showResponse:function(a){window.onbeforeunload=null,strongValidation.enableForm();var b=JSON.parse(a);if(b.success)jQuery("#wpmtst-form").html(b.message),strongValidation.scrollOnSuccess();else for(var c in b.errors)b.errors.hasOwnProperty(c)&&jQuery("#wpmtst-submission-form").children(".field-"+c).find("span.error").remove().end().append('<span class="error">'+b.errors[c]+"</span>")},scrollOnSuccess:function(){if(strongValidation.settings.scroll.onSuccess){var a,b;a=jQuery(".wpmtst-testimonial-success").offset(),a&&(b=a.top-strongValidation.settings.scroll.onSuccessOffset,jQuery("#wpadminbar").length&&(b-=32),jQuery("html, body").animate({scrollTop:b},800))}},disableForm:function(){jQuery(".strong-form-wait").show(),jQuery("#wpmtst_submit_testimonial").prop("disabled",!0)},enableForm:function(){jQuery(".strong-form-wait").hide(),jQuery("#wpmtst_submit_testimonial").prop("disabled",!1)}},strongValidation={defaults:{ajaxUrl:"",display:{successMessage:!1},scroll:{onError:!0,onErrorOffset:100,onSuccess:!0,onSuccessOffset:100},fields:{}},settings:{},setOpts:function(a){this.settings=jQuery.extend({},this.defaults,a)},rules:{},setRules:function(){for(var a=0;a<this.settings.fields.length;a++)"rating"===this.settings.fields[a].type&&1===this.settings.fields[a].required&&(this.rules[this.settings.fields[a].name]={ratingRequired:!0})},init:function(){var a={};"undefined"!=typeof window.strongForm&&(a=window.strongForm),this.setOpts(a),this.settings.display.successMessage?this.scrollOnSuccess():(this.setRules(),this.changeEvents(),this.customValidators(),this.validateForm())},changeEvents:function(){jQuery('input[type="text"], input[type="url"], input[type="email"], textarea',"#wpmtst-submission-form").on("change blur",function(a){a.target.value=a.target.value.trim()}),jQuery("input[type=url]").change(function(){this.value.length&&!/^https*:\/\//.test(this.value)&&(this.value="https://"+this.value)});for(var a=document.getElementsByClassName("strong-rating"),b=0;b<a.length;b++)a[b].addEventListener("click",this.handleRadioEvent,!0),a[b].addEventListener("keyup",this.handleRadioEvent,!0),a[b].addEventListener("change",function(){jQuery(this).valid()},!0)},handleRadioEvent:function(a){if(a.keyCode>=48&&a.keyCode<=53){var b=a.keyCode-48;jQuery(this).find('input[type="radio"][value='+b+"]").click()}},customValidators:function(){jQuery.validator.addMethod("ratingRequired",function(a,b){return jQuery(b).find("input:checked").val()>0},jQuery.validator.messages.required)},validateForm:function(){var a=jQuery("#wpmtst-submission-form");a.validate({onfocusout:!1,focusInvalid:!1,invalidHandler:function(a,b){var c=b.numberOfInvalids();if(c)if(strongValidation.settings.scroll.onError){if("undefined"!=typeof b.errorList[0]){var d=jQuery(b.errorList[0].element),e=d.closest(".form-field").offset(),f=e.top-strongValidation.settings.scroll.onErrorOffset;jQuery("html, body").animate({scrollTop:f},800,function(){d.focus()})}}else b.errorList[0].element.focus()},submitHandler:function(a){if(strongValidation.disableForm(),""!==strongValidation.settings.ajaxUrl){window.onbeforeunload=function(){return"Please wait while the form is submitted."};var b={url:strongValidation.settings.ajaxUrl,data:{action:"wpmtst_form2"},success:strongValidation.showResponse};jQuery(a).ajaxSubmit(b)}else a.submit()},rules:strongValidation.rules,errorPlacement:function(a,b){a.appendTo(b.closest("div.form-field"))},highlight:function(a,b,c){"checkbox"===a.type?jQuery(a).closest(".field-wrap").addClass(b).removeClass(c):"rating"===jQuery(a).data("fieldType")?jQuery(a).closest(".field-wrap").addClass(b).removeClass(c):jQuery(a).addClass(b).removeClass(c)},unhighlight:function(a,b,c){"checkbox"===a.type?jQuery(a).closest(".field-wrap").removeClass(b).addClass(c):"rating"===jQuery(a).data("fieldType")?jQuery(a).closest(".field-wrap").removeClass(b).addClass(c):jQuery(a).removeClass(b).addClass(c)}})},showResponse:function(a){window.onbeforeunload=null,strongValidation.enableForm();var b=JSON.parse(a);if(b.success)jQuery("#wpmtst-form").html(b.message),strongValidation.scrollOnSuccess();else for(var c in b.errors)b.errors.hasOwnProperty(c)&&jQuery("#wpmtst-submission-form").children(".field-"+c).find("span.error").remove().end().append('<span class="error">'+b.errors[c]+"</span>")},scrollOnSuccess:function(){if(strongValidation.settings.scroll.onSuccess){var a,b;a=jQuery(".wpmtst-testimonial-success").offset(),a&&(b=a.top-strongValidation.settings.scroll.onSuccessOffset,jQuery("#wpadminbar").length&&(b-=32),jQuery("html, body").animate({scrollTop:b},800))}},disableForm:function(){jQuery(".strong-form-wait").show(),jQuery("#wpmtst_submit_testimonial").prop("disabled",!0)},enableForm:function(){jQuery(".strong-form-wait").hide(),jQuery("#wpmtst_submit_testimonial").prop("disabled",!1)}},strongValidation={defaults:{ajaxUrl:"",display:{successMessage:!1},scroll:{onError:!0,onErrorOffset:100,onSuccess:!0,onSuccessOffset:100},fields:{}},settings:{},setOpts:function(a){this.settings=jQuery.extend({},this.defaults,a)},rules:{},setRules:function(){for(var a=0;a<this.settings.fields.length;a++)"rating"===this.settings.fields[a].type&&1===this.settings.fields[a].required&&(this.rules[this.settings.fields[a].name]={ratingRequired:!0})},init:function(){var a={};"undefined"!=typeof window.strongForm&&(a=window.strongForm),this.setOpts(a),this.settings.display.successMessage?this.scrollOnSuccess():(this.setRules(),this.changeEvents(),this.customValidators(),this.validateForm())},changeEvents:function(){jQuery('input[type="text"], input[type="url"], input[type="email"], textarea',"#wpmtst-submission-form").on("change blur",function(a){a.target.value=a.target.value.trim()}),jQuery("input[type=url]").change(function(){this.value.length&&!/^https*:\/\//.test(this.value)&&(this.value="https://"+this.value)});for(var a=document.getElementsByClassName("strong-rating"),b=0;b<a.length;b++)a[b].addEventListener("click",this.handleRadioEvent,!0),a[b].addEventListener("keyup",this.handleRadioEvent,!0),a[b].addEventListener("change",function(){jQuery(this).valid()},!0)},handleRadioEvent:function(a){if(a.keyCode>=48&&a.keyCode<=53){var b=a.keyCode-48;jQuery(this).find('input[type="radio"][value='+b+"]").click()}},customValidators:function(){jQuery.validator.addMethod("ratingRequired",function(a,b){return jQuery(b).find("input:checked").val()>0},jQuery.validator.messages.required)},validateForm:function(){var a=jQuery("#wpmtst-submission-form");a.validate({onfocusout:!1,focusInvalid:!1,invalidHandler:function(a,b){var c=b.numberOfInvalids();if(c)if(strongValidation.settings.scroll.onError){if("undefined"!=typeof b.errorList[0]){var d=jQuery(b.errorList[0].element),e=d.closest(".form-field").offset(),f=e.top-strongValidation.settings.scroll.onErrorOffset;jQuery("html, body").animate({scrollTop:f},800,function(){d.focus()})}}else b.errorList[0].element.focus()},submitHandler:function(a){if(strongValidation.disableForm(),""!==strongValidation.settings.ajaxUrl){window.onbeforeunload=function(){return"Please wait while the form is submitted."};var b={url:strongValidation.settings.ajaxUrl,data:{action:"wpmtst_form2"},success:strongValidation.showResponse};jQuery(a).ajaxSubmit(b)}else a.submit()},rules:strongValidation.rules,errorPlacement:function(a,b){a.appendTo(b.closest("div.form-field"))},highlight:function(a,b,c){"checkbox"===a.type?jQuery(a).closest(".field-wrap").addClass(b).removeClass(c):"rating"===jQuery(a).data("fieldType")?jQuery(a).closest(".field-wrap").addClass(b).removeClass(c):jQuery(a).addClass(b).removeClass(c)},unhighlight:function(a,b,c){"checkbox"===a.type?jQuery(a).closest(".field-wrap").removeClass(b).addClass(c):"rating"===jQuery(a).data("fieldType")?jQuery(a).closest(".field-wrap").removeClass(b).addClass(c):jQuery(a).removeClass(b).addClass(c)}})},showResponse:function(a){window.onbeforeunload=null,strongValidation.enableForm();var b=JSON.parse(a);if(b.success)jQuery("#wpmtst-form").html(b.message),strongValidation.scrollOnSuccess();else for(var c in b.errors)b.errors.hasOwnProperty(c)&&jQuery("#wpmtst-submission-form").children(".field-"+c).find("span.error").remove().end().append('<span class="error">'+b.errors[c]+"</span>")},scrollOnSuccess:function(){if(strongValidation.settings.scroll.onSuccess){var a,b;a=jQuery(".wpmtst-testimonial-success").offset(),a&&(b=a.top-strongValidation.settings.scroll.onSuccessOffset,jQuery("#wpadminbar").length&&(b-=32),jQuery("html, body").animate({scrollTop:b},800))}},disableForm:function(){jQuery(".strong-form-wait").show(),jQuery("#wpmtst_submit_testimonial").prop("disabled",!0)},enableForm:function(){jQuery(".strong-form-wait").hide(),jQuery("#wpmtst_submit_testimonial").prop("disabled",!1)}},strongValidation={defaults:{ajaxUrl:"",display:{successMessage:!1},scroll:{onError:!0,onErrorOffset:100,onSuccess:!0,onSuccessOffset:100},fields:{}},settings:{},setOpts:function(a){this.settings=jQuery.extend({},this.defaults,a)},rules:{},setRules:function(){for(var a=0;a<this.settings.fields.length;a++)"rating"===this.settings.fields[a].type&&1===this.settings.fields[a].required&&(this.rules[this.settings.fields[a].name]={ratingRequired:!0})},init:function(){var a={};"undefined"!=typeof window.strongForm&&(a=window.strongForm),this.setOpts(a),this.settings.display.successMessage?this.scrollOnSuccess():(this.setRules(),this.changeEvents(),this.customValidators(),this.validateForm())},changeEvents:function(){jQuery('input[type="text"], input[type="url"], input[type="email"], textarea',"#wpmtst-submission-form").on("change blur",function(a){a.target.value=a.target.value.trim()}),jQuery("input[type=url]").change(function(){this.value.length&&!/^https*:\/\//.test(this.value)&&(this.value="https://"+this.value)});for(var a=document.getElementsByClassName("strong-rating"),b=0;b<a.length;b++)a[b].addEventListener("click",this.handleRadioEvent,!0),a[b].addEventListener("keyup",this.handleRadioEvent,!0),a[b].addEventListener("change",function(){jQuery(this).valid()},!0)},handleRadioEvent:function(a){if(a.keyCode>=48&&a.keyCode<=53){var b=a.keyCode-48;jQuery(this).find('input[type="radio"][value='+b+"]").click()}},customValidators:function(){jQuery.validator.addMethod("ratingRequired",function(a,b){return jQuery(b).find("input:checked").val()>0},jQuery.validator.messages.required)},validateForm:function(){var a=jQuery("#wpmtst-submission-form");a.validate({onfocusout:!1,focusInvalid:!1,invalidHandler:function(a,b){var c=b.numberOfInvalids();if(c)if(strongValidation.settings.scroll.onError){if("undefined"!=typeof b.errorList[0]){var d=jQuery(b.errorList[0].element),e=d.closest(".form-field").offset(),f=e.top-strongValidation.settings.scroll.onErrorOffset;jQuery("html, body").animate({scrollTop:f},800,function(){d.focus()})}}else b.errorList[0].element.focus()},submitHandler:function(a){if(strongValidation.disableForm(),""!==strongValidation.settings.ajaxUrl){window.onbeforeunload=function(){return"Please wait while the form is submitted."};var b={url:strongValidation.settings.ajaxUrl,data:{action:"wpmtst_form2"},success:strongValidation.showResponse};jQuery(a).ajaxSubmit(b)}else a.submit()},rules:strongValidation.rules,errorPlacement:function(a,b){a.appendTo(b.closest("div.form-field"))},highlight:function(a,b,c){"checkbox"===a.type?jQuery(a).closest(".field-wrap").addClass(b).removeClass(c):"rating"===jQuery(a).data("fieldType")?jQuery(a).closest(".field-wrap").addClass(b).removeClass(c):jQuery(a).addClass(b).removeClass(c)},unhighlight:function(a,b,c){"checkbox"===a.type?jQuery(a).closest(".field-wrap").removeClass(b).addClass(c):"rating"===jQuery(a).data("fieldType")?jQuery(a).closest(".field-wrap").removeClass(b).addClass(c):jQuery(a).removeClass(b).addClass(c)}})},showResponse:function(a){window.onbeforeunload=null,strongValidation.enableForm();var b=JSON.parse(a);if(b.success)jQuery("#wpmtst-form").html(b.message),strongValidation.scrollOnSuccess();else for(var c in b.errors)b.errors.hasOwnProperty(c)&&jQuery("#wpmtst-submission-form").children(".field-"+c).find("span.error").remove().end().append('<span class="error">'+b.errors[c]+"</span>")},scrollOnSuccess:function(){if(strongValidation.settings.scroll.onSuccess){var a,b;a=jQuery(".wpmtst-testimonial-success").offset(),a&&(b=a.top-strongValidation.settings.scroll.onSuccessOffset,jQuery("#wpadminbar").length&&(b-=32),jQuery("html, body").animate({scrollTop:b},800))}},disableForm:function(){jQuery(".strong-form-wait").show(),jQuery("#wpmtst_submit_testimonial").prop("disabled",!0)},enableForm:function(){jQuery(".strong-form-wait").hide(),jQuery("#wpmtst_submit_testimonial").prop("disabled",!1)}},strongValidation={defaults:{ajaxUrl:"",display:{successMessage:!1},scroll:{onError:!0,onErrorOffset:100,onSuccess:!0,onSuccessOffset:100},fields:{}},settings:{},setOpts:function(a){this.settings=jQuery.extend({},this.defaults,a)},rules:{},setRules:function(){for(var a=0;a<this.settings.fields.length;a++)"rating"===this.settings.fields[a].type&&1===this.settings.fields[a].required&&(this.rules[this.settings.fields[a].name]={ratingRequired:!0})},init:function(){var a={};void 0!==window.strongForm&&(a=window.strongForm),this.setOpts(a),this.settings.display.successMessage?this.scrollOnSuccess():(this.setRules(),this.changeEvents(),this.customValidators(),this.validateForm())},changeEvents:function(){jQuery('input[type="text"], input[type="url"], input[type="email"], textarea',"#wpmtst-submission-form").on("change blur",function(a){a.target.value=a.target.value.trim()}),jQuery("input[type=url]").change(function(){this.value.length&&!/^https*:\/\//.test(this.value)&&(this.value="https://"+this.value)});for(var a=document.getElementsByClassName("strong-rating"),b=0;b<a.length;b++)a[b].addEventListener("click",this.handleRadioEvent,!0),a[b].addEventListener("keyup",this.handleRadioEvent,!0),a[b].addEventListener("change",function(){jQuery(this).valid()},!0)},handleRadioEvent:function(a){if(48<=a.keyCode&&a.keyCode<=53){var b=a.keyCode-48;jQuery(this).find('input[type="radio"][value='+b+"]").click()}},customValidators:function(){jQuery.validator.addMethod("ratingRequired",function(a,b){return 0<jQuery(b).find("input:checked").val()},jQuery.validator.messages.required)},validateForm:function(){jQuery("#wpmtst-submission-form").validate({onfocusout:!1,focusInvalid:!1,invalidHandler:function(a,b){if(b.numberOfInvalids())if(strongValidation.settings.scroll.onError){if(void 0!==b.errorList[0]){var c=jQuery(b.errorList[0].element),d=c.closest(".form-field").offset().top-strongValidation.settings.scroll.onErrorOffset;jQuery("html, body").animate({scrollTop:d},800,function(){c.focus()})}}else b.errorList[0].element.focus()},submitHandler:function(a){if(strongValidation.disableForm(),""!==strongValidation.settings.ajaxUrl){window.onbeforeunload=function(){return"Please wait while the form is submitted."};var b={url:strongValidation.settings.ajaxUrl,data:{action:"wpmtst_form2"},success:strongValidation.showResponse};jQuery(a).ajaxSubmit(b)}else a.submit()},rules:strongValidation.rules,errorPlacement:function(a,b){a.appendTo(b.closest("div.form-field"))},highlight:function(a,b,c){"checkbox"===a.type?jQuery(a).closest(".field-wrap").addClass(b).removeClass(c):"rating"===jQuery(a).data("fieldType")?jQuery(a).closest(".field-wrap").addClass(b).removeClass(c):jQuery(a).addClass(b).removeClass(c)},unhighlight:function(a,b,c){"checkbox"===a.type?jQuery(a).closest(".field-wrap").removeClass(b).addClass(c):"rating"===jQuery(a).data("fieldType")?jQuery(a).closest(".field-wrap").removeClass(b).addClass(c):jQuery(a).removeClass(b).addClass(c)}})},showResponse:function(a){window.onbeforeunload=null,strongValidation.enableForm();var b=JSON.parse(a);if(b.success)jQuery("#wpmtst-form").html(b.message),strongValidation.scrollOnSuccess();else for(var c in b.errors)b.errors.hasOwnProperty(c)&&jQuery("#wpmtst-submission-form").children(".field-"+c).find("span.error").remove().end().append('<span class="error">'+b.errors[c]+"</span>")},scrollOnSuccess:function(){var a,b;strongValidation.settings.scroll.onSuccess&&(a=jQuery(".wpmtst-testimonial-success").offset())&&(b=a.top-strongValidation.settings.scroll.onSuccessOffset,jQuery("#wpadminbar").length&&(b-=32),jQuery("html, body").animate({scrollTop:b},800))},disableForm:function(){jQuery(".strong-form-wait").show(),jQuery("#wpmtst_submit_testimonial").prop("disabled",!0)},enableForm:function(){jQuery(".strong-form-wait").hide(),jQuery("#wpmtst_submit_testimonial").prop("disabled",!1)}};
|
1 |
+
var strongValidation={defaults:{ajaxUrl:"",display:{successMessage:!1},scroll:{onError:!0,onErrorOffset:100,onSuccess:!0,onSuccessOffset:100},fields:{}},settings:{},setOpts:function(e){this.settings=jQuery.extend({},this.defaults,e)},rules:{},setRules:function(){for(var e=0;e<this.settings.fields.length;e++)"rating"===this.settings.fields[e].type&&1===this.settings.fields[e].required&&(this.rules[this.settings.fields[e].name]={ratingRequired:!0})},init:function(){var e={};void 0!==window.strongForm&&(e=window.strongForm),this.setOpts(e),this.settings.display.successMessage?this.scrollOnSuccess():(this.setRules(),this.changeEvents(),this.customValidators(),this.validateForm())},changeEvents:function(){jQuery('input[type="text"], input[type="url"], input[type="email"], textarea',"#wpmtst-submission-form").on("change blur",function(e){e.target.value=e.target.value.trim()}),jQuery("input[type=url]").change(function(){this.value.length&&!/^https*:\/\//.test(this.value)&&(this.value="https://"+this.value)});for(var e=document.getElementsByClassName("strong-rating"),s=0;s<e.length;s++)e[s].addEventListener("click",this.handleRadioEvent,!0),e[s].addEventListener("keyup",this.handleRadioEvent,!0),e[s].addEventListener("change",function(){jQuery(this).valid()},!0)},handleRadioEvent:function(e){if(e.keyCode>=48&&e.keyCode<=53){var s=e.keyCode-48;jQuery(this).find('input[type="radio"][value='+s+"]").click()}},customValidators:function(){jQuery.validator.addMethod("ratingRequired",function(e,s){return jQuery(s).find("input:checked").val()>0},jQuery.validator.messages.required)},validateForm:function(){jQuery("#wpmtst-submission-form").validate({onfocusout:!1,focusInvalid:!1,invalidHandler:function(e,s){if(s.numberOfInvalids())if(strongValidation.settings.scroll.onError){if(void 0!==s.errorList[0]){var t=jQuery(s.errorList[0].element),i=t.closest(".form-field").offset().top-strongValidation.settings.scroll.onErrorOffset;jQuery("html, body").animate({scrollTop:i},800,function(){t.focus()})}}else s.errorList[0].element.focus()},submitHandler:function(e){if(strongValidation.disableForm(),""!==strongValidation.settings.ajaxUrl){window.onbeforeunload=function(){return"Please wait while the form is submitted."};var s={url:strongValidation.settings.ajaxUrl,data:{action:"wpmtst_form2"},success:strongValidation.showResponse};jQuery(e).ajaxSubmit(s)}else e.submit()},rules:strongValidation.rules,errorPlacement:function(e,s){e.appendTo(s.closest("div.form-field"))},highlight:function(e,s,t){"checkbox"===e.type?jQuery(e).closest(".field-wrap").addClass(s).removeClass(t):"rating"===jQuery(e).data("fieldType")?jQuery(e).closest(".field-wrap").addClass(s).removeClass(t):jQuery(e).addClass(s).removeClass(t)},unhighlight:function(e,s,t){"checkbox"===e.type?jQuery(e).closest(".field-wrap").removeClass(s).addClass(t):"rating"===jQuery(e).data("fieldType")?jQuery(e).closest(".field-wrap").removeClass(s).addClass(t):jQuery(e).removeClass(s).addClass(t)}})},showResponse:function(e){window.onbeforeunload=null,strongValidation.enableForm();var s=JSON.parse(e);if(s.success)jQuery("#wpmtst-form").html(s.message),strongValidation.scrollOnSuccess();else for(var t in s.errors)s.errors.hasOwnProperty(t)&&jQuery("#wpmtst-submission-form").children(".field-"+t).find("span.error").remove().end().append('<span class="error">'+s.errors[t]+"</span>")},scrollOnSuccess:function(){var e,s;strongValidation.settings.scroll.onSuccess&&((e=jQuery(".wpmtst-testimonial-success").offset())&&(s=e.top-strongValidation.settings.scroll.onSuccessOffset,jQuery("#wpadminbar").length&&(s-=32),jQuery("html, body").animate({scrollTop:s},800)))},disableForm:function(){jQuery(".strong-form-wait").show(),jQuery("#wpmtst_submit_testimonial").prop("disabled",!0)},enableForm:function(){jQuery(".strong-form-wait").hide(),jQuery("#wpmtst_submit_testimonial").prop("disabled",!1)}};
|
public/js/lib/imagesloaded/imagesloaded.min.js
CHANGED
@@ -1 +1,2 @@
|
|
1 |
-
(function(){"use strict";function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if("object"==typeof a){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;b<a.length;b+=1)c.push(a[b].listener);return c},d.getListenersAsObject=function(a){var b,c=this.getListeners(a);return c instanceof Array&&(b={},b[a]=c),b||c},d.addListener=function(a,c){var d,e=this.getListenersAsObject(a),f="object"==typeof c;for(d in e)e.hasOwnProperty(d)&&-1===b(e[d],c)&&e[d].push(f?c:{listener:c,once:!1});return this},d.on=c("addListener"),d.addOnceListener=function(a,b){return this.addListener(a,{listener:b,once:!0})},d.once=c("addOnceListener"),d.defineEvent=function(a){return this.getListeners(a),this},d.defineEvents=function(a){for(var b=0;b<a.length;b+=1)this.defineEvent(a[b]);return this},d.removeListener=function(a,c){var d,e,f=this.getListenersAsObject(a);for(e in f)f.hasOwnProperty(e)&&(d=b(f[e],c),-1!==d&&f[e].splice(d,1));return this},d.off=c("removeListener"),d.addListeners=function(a,b){return this.manipulateListeners(!1,a,b)},d.removeListeners=function(a,b){return this.manipulateListeners(!0,a,b)},d.manipulateListeners=function(a,b,c){var d,e,f=a?this.removeListener:this.addListener,g=a?this.removeListeners:this.addListeners;if("object"!=typeof b||b instanceof RegExp)for(d=c.length;d--;)f.call(this,b,c[d]);else for(d in b)b.hasOwnProperty(d)&&(e=b[d])&&("function"==typeof e?f.call(this,d,e):g.call(this,d,e));return this},d.removeEvent=function(a){var b,c=typeof a,d=this._getEvents();if("string"===c)delete d[a];else if("object"===c)for(b in d)d.hasOwnProperty(b)&&a.test(b)&&delete d[b];else delete this._events;return this},d.removeAllListeners=c("removeEvent"),d.emitEvent=function(a,b){var c,d,e,f,g=this.getListenersAsObject(a);for(e in g)if(g.hasOwnProperty(e))for(d=g[e].length;d--;)c=g[e][d],c.once===!0&&this.removeListener(a,c.listener),f=c.listener.apply(this,b||[]),f===this._getOnceReturnValue()&&this.removeListener(a,c.listener);return this},d.trigger=c("emitEvent"),d.emit=function(a){var b=Array.prototype.slice.call(arguments,1);return this.emitEvent(a,b)},d.setOnceReturnValue=function(a){return this._onceReturnValue=a,this},d._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},d._getEvents=function(){return this._events||(this._events={})},a.noConflict=function(){return e.EventEmitter=f,a},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return a}):"object"==typeof module&&module.exports?module.exports=a:this.EventEmitter=a}).call(this),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):a.eventie=f}(this),function(a,b){"use strict";"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(c,d){return b(a,c,d)}):"object"==typeof module&&module.exports?module.exports=b(a,require("wolfy87-eventemitter"),require("eventie")):a.imagesLoaded=b(a,a.EventEmitter,a.eventie)}(window,function(a,b,c){function d(a,b){for(var c in b)a[c]=b[c];return a}function e(a){return"[object Array]"==l.call(a)}function f(a){var b=[];if(e(a))b=a;else if("number"==typeof a.length)for(var c=0;c<a.length;c++)b.push(a[c]);else b.push(a);return b}function g(a,b,c){if(!(this instanceof g))return new g(a,b,c);"string"==typeof a&&(a=document.querySelectorAll(a)),this.elements=f(a),this.options=d({},this.options),"function"==typeof b?c=b:d(this.options,b),c&&this.on("always",c),this.getImages(),j&&(this.jqDeferred=new j.Deferred);var e=this;setTimeout(function(){e.check()})}function h(a){this.img=a}function i(a,b){this.url=a,this.element=b,this.img=new Image}var j=a.jQuery,k=a.console,l=Object.prototype.toString;g.prototype=new b,g.prototype.options={},g.prototype.getImages=function(){this.images=[];for(var a=0;a<this.elements.length;a++){var b=this.elements[a];this.addElementImages(b)}},g.prototype.addElementImages=function(a){"IMG"==a.nodeName&&this.addImage(a),this.options.background===!0&&this.addElementBackgroundImages(a);var b=a.nodeType;if(b&&m[b]){for(var c=a.querySelectorAll("img"),d=0;d<c.length;d++){var e=c[d];this.addImage(e)}if("string"==typeof this.options.background){var f=a.querySelectorAll(this.options.background);for(d=0;d<f.length;d++){var g=f[d];this.addElementBackgroundImages(g)}}}};var m={1:!0,9:!0,11:!0};g.prototype.addElementBackgroundImages=function(a){for(var b=n(a),c=/url\(['"]*([^'"\)]+)['"]*\)/gi,d=c.exec(b.backgroundImage);null!==d;){var e=d&&d[1];e&&this.addBackground(e,a),d=c.exec(b.backgroundImage)}};var n=a.getComputedStyle||function(a){return a.currentStyle};return g.prototype.addImage=function(a){var b=new h(a);this.images.push(b)},g.prototype.addBackground=function(a,b){var c=new i(a,b);this.images.push(c)},g.prototype.check=function(){function a(a,c,d){setTimeout(function(){b.progress(a,c,d)})}var b=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();for(var c=0;c<this.images.length;c++){var d=this.images[c];d.once("progress",a),d.check()}},g.prototype.progress=function(a,b,c){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!a.isLoaded,this.emit("progress",this,a,b),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,a),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&k&&k.log("progress: "+c,a,b)},g.prototype.complete=function(){var a=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emit(a,this),this.emit("always",this),this.jqDeferred){var b=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[b](this)}},h.prototype=new b,h.prototype.check=function(){var a=this.getIsImageComplete();return a?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,c.bind(this.proxyImage,"load",this),c.bind(this.proxyImage,"error",this),c.bind(this.img,"load",this),c.bind(this.img,"error",this),void(this.proxyImage.src=this.img.src))},h.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},h.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.img,b)},h.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){c.unbind(this.proxyImage,"load",this),c.unbind(this.proxyImage,"error",this),c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype=new h,i.prototype.check=function(){c.bind(this.img,"load",this),c.bind(this.img,"error",this),this.img.src=this.url;var a=this.getIsImageComplete();a&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},i.prototype.unbindEvents=function(){c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.element,b)},g.makeJQueryPlugin=function(b){b=b||a.jQuery,b&&(j=b,j.fn.imagesLoaded=function(a,b){var c=new g(this,a,b);return c.jqDeferred.promise(j(this))})},g.makeJQueryPlugin(),g}),function(){"use strict";function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if("object"==typeof a){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;b<a.length;b+=1)c.push(a[b].listener);return c},d.getListenersAsObject=function(a){var b,c=this.getListeners(a);return c instanceof Array&&(b={},b[a]=c),b||c},d.addListener=function(a,c){var d,e=this.getListenersAsObject(a),f="object"==typeof c;for(d in e)e.hasOwnProperty(d)&&-1===b(e[d],c)&&e[d].push(f?c:{listener:c,once:!1});return this},d.on=c("addListener"),d.addOnceListener=function(a,b){return this.addListener(a,{listener:b,once:!0})},d.once=c("addOnceListener"),d.defineEvent=function(a){return this.getListeners(a),this},d.defineEvents=function(a){for(var b=0;b<a.length;b+=1)this.defineEvent(a[b]);return this},d.removeListener=function(a,c){var d,e,f=this.getListenersAsObject(a);for(e in f)f.hasOwnProperty(e)&&(d=b(f[e],c),-1!==d&&f[e].splice(d,1));return this},d.off=c("removeListener"),d.addListeners=function(a,b){return this.manipulateListeners(!1,a,b)},d.removeListeners=function(a,b){return this.manipulateListeners(!0,a,b)},d.manipulateListeners=function(a,b,c){var d,e,f=a?this.removeListener:this.addListener,g=a?this.removeListeners:this.addListeners;if("object"!=typeof b||b instanceof RegExp)for(d=c.length;d--;)f.call(this,b,c[d]);else for(d in b)b.hasOwnProperty(d)&&(e=b[d])&&("function"==typeof e?f.call(this,d,e):g.call(this,d,e));return this},d.removeEvent=function(a){var b,c=typeof a,d=this._getEvents();if("string"===c)delete d[a];else if("object"===c)for(b in d)d.hasOwnProperty(b)&&a.test(b)&&delete d[b];else delete this._events;return this},d.removeAllListeners=c("removeEvent"),d.emitEvent=function(a,b){var c,d,e,f,g=this.getListenersAsObject(a);for(e in g)if(g.hasOwnProperty(e))for(d=g[e].length;d--;)c=g[e][d],c.once===!0&&this.removeListener(a,c.listener),f=c.listener.apply(this,b||[]),f===this._getOnceReturnValue()&&this.removeListener(a,c.listener);return this},d.trigger=c("emitEvent"),d.emit=function(a){var b=Array.prototype.slice.call(arguments,1);return this.emitEvent(a,b)},d.setOnceReturnValue=function(a){return this._onceReturnValue=a,this},d._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},d._getEvents=function(){return this._events||(this._events={})},a.noConflict=function(){return e.EventEmitter=f,a},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return a}):"object"==typeof module&&module.exports?module.exports=a:this.EventEmitter=a}.call(this),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):a.eventie=f}(this),function(a,b){"use strict";"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(c,d){return b(a,c,d)}):"object"==typeof module&&module.exports?module.exports=b(a,require("wolfy87-eventemitter"),require("eventie")):a.imagesLoaded=b(a,a.EventEmitter,a.eventie)}(window,function(a,b,c){function d(a,b){for(var c in b)a[c]=b[c];return a}function e(a){return"[object Array]"==l.call(a)}function f(a){var b=[];if(e(a))b=a;else if("number"==typeof a.length)for(var c=0;c<a.length;c++)b.push(a[c]);else b.push(a);return b}function g(a,b,c){if(!(this instanceof g))return new g(a,b,c);"string"==typeof a&&(a=document.querySelectorAll(a)),this.elements=f(a),this.options=d({},this.options),"function"==typeof b?c=b:d(this.options,b),c&&this.on("always",c),this.getImages(),j&&(this.jqDeferred=new j.Deferred);var e=this;setTimeout(function(){e.check()})}function h(a){this.img=a}function i(a,b){this.url=a,this.element=b,this.img=new Image}var j=a.jQuery,k=a.console,l=Object.prototype.toString;g.prototype=new b,g.prototype.options={},g.prototype.getImages=function(){this.images=[];for(var a=0;a<this.elements.length;a++){var b=this.elements[a];this.addElementImages(b)}},g.prototype.addElementImages=function(a){"IMG"==a.nodeName&&this.addImage(a),this.options.background===!0&&this.addElementBackgroundImages(a);var b=a.nodeType;if(b&&m[b]){for(var c=a.querySelectorAll("img"),d=0;d<c.length;d++){var e=c[d];this.addImage(e)}if("string"==typeof this.options.background){var f=a.querySelectorAll(this.options.background);for(d=0;d<f.length;d++){var g=f[d];this.addElementBackgroundImages(g)}}}};var m={1:!0,9:!0,11:!0};g.prototype.addElementBackgroundImages=function(a){for(var b=n(a),c=/url\(['"]*([^'"\)]+)['"]*\)/gi,d=c.exec(b.backgroundImage);null!==d;){var e=d&&d[1];e&&this.addBackground(e,a),d=c.exec(b.backgroundImage)}};var n=a.getComputedStyle||function(a){return a.currentStyle};return g.prototype.addImage=function(a){var b=new h(a);this.images.push(b)},g.prototype.addBackground=function(a,b){var c=new i(a,b);this.images.push(c)},g.prototype.check=function(){function a(a,c,d){setTimeout(function(){b.progress(a,c,d)})}var b=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();for(var c=0;c<this.images.length;c++){var d=this.images[c];d.once("progress",a),d.check()}},g.prototype.progress=function(a,b,c){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!a.isLoaded,this.emit("progress",this,a,b),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,a),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&k&&k.log("progress: "+c,a,b)},g.prototype.complete=function(){var a=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emit(a,this),this.emit("always",this),this.jqDeferred){var b=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[b](this)}},h.prototype=new b,h.prototype.check=function(){var a=this.getIsImageComplete();return a?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,c.bind(this.proxyImage,"load",this),c.bind(this.proxyImage,"error",this),c.bind(this.img,"load",this),c.bind(this.img,"error",this),void(this.proxyImage.src=this.img.src))},h.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},h.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.img,b)},h.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){c.unbind(this.proxyImage,"load",this),c.unbind(this.proxyImage,"error",this),c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype=new h,i.prototype.check=function(){c.bind(this.img,"load",this),c.bind(this.img,"error",this),this.img.src=this.url;var a=this.getIsImageComplete();a&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},i.prototype.unbindEvents=function(){c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.element,b)},g.makeJQueryPlugin=function(b){b=b||a.jQuery,b&&(j=b,j.fn.imagesLoaded=function(a,b){var c=new g(this,a,b);return c.jqDeferred.promise(j(this))})},g.makeJQueryPlugin(),g}),function(){"use strict";function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if("object"==typeof a){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;b<a.length;b+=1)c.push(a[b].listener);return c},d.getListenersAsObject=function(a){var b,c=this.getListeners(a);return c instanceof Array&&(b={},b[a]=c),b||c},d.addListener=function(a,c){var d,e=this.getListenersAsObject(a),f="object"==typeof c;for(d in e)e.hasOwnProperty(d)&&-1===b(e[d],c)&&e[d].push(f?c:{listener:c,once:!1});return this},d.on=c("addListener"),d.addOnceListener=function(a,b){return this.addListener(a,{listener:b,once:!0})},d.once=c("addOnceListener"),d.defineEvent=function(a){return this.getListeners(a),this},d.defineEvents=function(a){for(var b=0;b<a.length;b+=1)this.defineEvent(a[b]);return this},d.removeListener=function(a,c){var d,e,f=this.getListenersAsObject(a);for(e in f)f.hasOwnProperty(e)&&(d=b(f[e],c),-1!==d&&f[e].splice(d,1));return this},d.off=c("removeListener"),d.addListeners=function(a,b){return this.manipulateListeners(!1,a,b)},d.removeListeners=function(a,b){return this.manipulateListeners(!0,a,b)},d.manipulateListeners=function(a,b,c){var d,e,f=a?this.removeListener:this.addListener,g=a?this.removeListeners:this.addListeners;if("object"!=typeof b||b instanceof RegExp)for(d=c.length;d--;)f.call(this,b,c[d]);else for(d in b)b.hasOwnProperty(d)&&(e=b[d])&&("function"==typeof e?f.call(this,d,e):g.call(this,d,e));return this},d.removeEvent=function(a){var b,c=typeof a,d=this._getEvents();if("string"===c)delete d[a];else if("object"===c)for(b in d)d.hasOwnProperty(b)&&a.test(b)&&delete d[b];else delete this._events;return this},d.removeAllListeners=c("removeEvent"),d.emitEvent=function(a,b){var c,d,e,f,g=this.getListenersAsObject(a);for(e in g)if(g.hasOwnProperty(e))for(d=g[e].length;d--;)c=g[e][d],c.once===!0&&this.removeListener(a,c.listener),f=c.listener.apply(this,b||[]),f===this._getOnceReturnValue()&&this.removeListener(a,c.listener);return this},d.trigger=c("emitEvent"),d.emit=function(a){var b=Array.prototype.slice.call(arguments,1);return this.emitEvent(a,b)},d.setOnceReturnValue=function(a){return this._onceReturnValue=a,this},d._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},d._getEvents=function(){return this._events||(this._events={})},a.noConflict=function(){return e.EventEmitter=f,a},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return a}):"object"==typeof module&&module.exports?module.exports=a:this.EventEmitter=a}.call(this),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):a.eventie=f}(this),function(a,b){"use strict";"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(c,d){return b(a,c,d)}):"object"==typeof module&&module.exports?module.exports=b(a,require("wolfy87-eventemitter"),require("eventie")):a.imagesLoaded=b(a,a.EventEmitter,a.eventie)}(window,function(a,b,c){function d(a,b){for(var c in b)a[c]=b[c];return a}function e(a){return"[object Array]"==l.call(a)}function f(a){var b=[];if(e(a))b=a;else if("number"==typeof a.length)for(var c=0;c<a.length;c++)b.push(a[c]);else b.push(a);return b}function g(a,b,c){if(!(this instanceof g))return new g(a,b,c);"string"==typeof a&&(a=document.querySelectorAll(a)),this.elements=f(a),this.options=d({},this.options),"function"==typeof b?c=b:d(this.options,b),c&&this.on("always",c),this.getImages(),j&&(this.jqDeferred=new j.Deferred);var e=this;setTimeout(function(){e.check()})}function h(a){this.img=a}function i(a,b){this.url=a,this.element=b,this.img=new Image}var j=a.jQuery,k=a.console,l=Object.prototype.toString;g.prototype=new b,g.prototype.options={},g.prototype.getImages=function(){this.images=[];for(var a=0;a<this.elements.length;a++){var b=this.elements[a];this.addElementImages(b)}},g.prototype.addElementImages=function(a){"IMG"==a.nodeName&&this.addImage(a),this.options.background===!0&&this.addElementBackgroundImages(a);var b=a.nodeType;if(b&&m[b]){for(var c=a.querySelectorAll("img"),d=0;d<c.length;d++){var e=c[d];this.addImage(e)}if("string"==typeof this.options.background){var f=a.querySelectorAll(this.options.background);for(d=0;d<f.length;d++){var g=f[d];this.addElementBackgroundImages(g)}}}};var m={1:!0,9:!0,11:!0};g.prototype.addElementBackgroundImages=function(a){for(var b=n(a),c=/url\(['"]*([^'"\)]+)['"]*\)/gi,d=c.exec(b.backgroundImage);null!==d;){var e=d&&d[1];e&&this.addBackground(e,a),d=c.exec(b.backgroundImage)}};var n=a.getComputedStyle||function(a){return a.currentStyle};return g.prototype.addImage=function(a){var b=new h(a);this.images.push(b)},g.prototype.addBackground=function(a,b){var c=new i(a,b);this.images.push(c)},g.prototype.check=function(){function a(a,c,d){setTimeout(function(){b.progress(a,c,d)})}var b=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();for(var c=0;c<this.images.length;c++){var d=this.images[c];d.once("progress",a),d.check()}},g.prototype.progress=function(a,b,c){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!a.isLoaded,this.emit("progress",this,a,b),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,a),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&k&&k.log("progress: "+c,a,b)},g.prototype.complete=function(){var a=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emit(a,this),this.emit("always",this),this.jqDeferred){var b=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[b](this)}},h.prototype=new b,h.prototype.check=function(){var a=this.getIsImageComplete();return a?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,c.bind(this.proxyImage,"load",this),c.bind(this.proxyImage,"error",this),c.bind(this.img,"load",this),c.bind(this.img,"error",this),void(this.proxyImage.src=this.img.src))},h.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},h.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.img,b)},h.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){c.unbind(this.proxyImage,"load",this),c.unbind(this.proxyImage,"error",this),c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype=new h,i.prototype.check=function(){c.bind(this.img,"load",this),c.bind(this.img,"error",this),this.img.src=this.url;var a=this.getIsImageComplete();a&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},i.prototype.unbindEvents=function(){c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.element,b)},g.makeJQueryPlugin=function(b){b=b||a.jQuery,b&&(j=b,j.fn.imagesLoaded=function(a,b){var c=new g(this,a,b);return c.jqDeferred.promise(j(this))})},g.makeJQueryPlugin(),g}),function(){"use strict";function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if("object"==typeof a){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;b<a.length;b+=1)c.push(a[b].listener);return c},d.getListenersAsObject=function(a){var b,c=this.getListeners(a);return c instanceof Array&&(b={},b[a]=c),b||c},d.addListener=function(a,c){var d,e=this.getListenersAsObject(a),f="object"==typeof c;for(d in e)e.hasOwnProperty(d)&&-1===b(e[d],c)&&e[d].push(f?c:{listener:c,once:!1});return this},d.on=c("addListener"),d.addOnceListener=function(a,b){return this.addListener(a,{listener:b,once:!0})},d.once=c("addOnceListener"),d.defineEvent=function(a){return this.getListeners(a),this},d.defineEvents=function(a){for(var b=0;b<a.length;b+=1)this.defineEvent(a[b]);return this},d.removeListener=function(a,c){var d,e,f=this.getListenersAsObject(a);for(e in f)f.hasOwnProperty(e)&&(d=b(f[e],c),-1!==d&&f[e].splice(d,1));return this},d.off=c("removeListener"),d.addListeners=function(a,b){return this.manipulateListeners(!1,a,b)},d.removeListeners=function(a,b){return this.manipulateListeners(!0,a,b)},d.manipulateListeners=function(a,b,c){var d,e,f=a?this.removeListener:this.addListener,g=a?this.removeListeners:this.addListeners;if("object"!=typeof b||b instanceof RegExp)for(d=c.length;d--;)f.call(this,b,c[d]);else for(d in b)b.hasOwnProperty(d)&&(e=b[d])&&("function"==typeof e?f.call(this,d,e):g.call(this,d,e));return this},d.removeEvent=function(a){var b,c=typeof a,d=this._getEvents();if("string"===c)delete d[a];else if("object"===c)for(b in d)d.hasOwnProperty(b)&&a.test(b)&&delete d[b];else delete this._events;return this},d.removeAllListeners=c("removeEvent"),d.emitEvent=function(a,b){var c,d,e,f,g=this.getListenersAsObject(a);for(e in g)if(g.hasOwnProperty(e))for(d=g[e].length;d--;)c=g[e][d],c.once===!0&&this.removeListener(a,c.listener),f=c.listener.apply(this,b||[]),f===this._getOnceReturnValue()&&this.removeListener(a,c.listener);return this},d.trigger=c("emitEvent"),d.emit=function(a){var b=Array.prototype.slice.call(arguments,1);return this.emitEvent(a,b)},d.setOnceReturnValue=function(a){return this._onceReturnValue=a,this},d._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},d._getEvents=function(){return this._events||(this._events={})},a.noConflict=function(){return e.EventEmitter=f,a},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return a}):"object"==typeof module&&module.exports?module.exports=a:this.EventEmitter=a}.call(this),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):a.eventie=f}(this),function(a,b){"use strict";"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(c,d){return b(a,c,d)}):"object"==typeof module&&module.exports?module.exports=b(a,require("wolfy87-eventemitter"),require("eventie")):a.imagesLoaded=b(a,a.EventEmitter,a.eventie)}(window,function(a,b,c){function d(a,b){for(var c in b)a[c]=b[c];return a}function e(a){return"[object Array]"==l.call(a)}function f(a){var b=[];if(e(a))b=a;else if("number"==typeof a.length)for(var c=0;c<a.length;c++)b.push(a[c]);else b.push(a);return b}function g(a,b,c){if(!(this instanceof g))return new g(a,b,c);"string"==typeof a&&(a=document.querySelectorAll(a)),this.elements=f(a),this.options=d({},this.options),"function"==typeof b?c=b:d(this.options,b),c&&this.on("always",c),this.getImages(),j&&(this.jqDeferred=new j.Deferred);var e=this;setTimeout(function(){e.check()})}function h(a){this.img=a}function i(a,b){this.url=a,this.element=b,this.img=new Image}var j=a.jQuery,k=a.console,l=Object.prototype.toString;g.prototype=new b,g.prototype.options={},g.prototype.getImages=function(){this.images=[];for(var a=0;a<this.elements.length;a++){var b=this.elements[a];this.addElementImages(b)}},g.prototype.addElementImages=function(a){"IMG"==a.nodeName&&this.addImage(a),this.options.background===!0&&this.addElementBackgroundImages(a);var b=a.nodeType;if(b&&m[b]){for(var c=a.querySelectorAll("img"),d=0;d<c.length;d++){var e=c[d];this.addImage(e)}if("string"==typeof this.options.background){var f=a.querySelectorAll(this.options.background);for(d=0;d<f.length;d++){var g=f[d];this.addElementBackgroundImages(g)}}}};var m={1:!0,9:!0,11:!0};g.prototype.addElementBackgroundImages=function(a){for(var b=n(a),c=/url\(['"]*([^'"\)]+)['"]*\)/gi,d=c.exec(b.backgroundImage);null!==d;){var e=d&&d[1];e&&this.addBackground(e,a),d=c.exec(b.backgroundImage)}};var n=a.getComputedStyle||function(a){return a.currentStyle};return g.prototype.addImage=function(a){var b=new h(a);this.images.push(b)},g.prototype.addBackground=function(a,b){var c=new i(a,b);this.images.push(c)},g.prototype.check=function(){function a(a,c,d){setTimeout(function(){b.progress(a,c,d)})}var b=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();for(var c=0;c<this.images.length;c++){var d=this.images[c];d.once("progress",a),d.check()}},g.prototype.progress=function(a,b,c){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!a.isLoaded,this.emit("progress",this,a,b),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,a),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&k&&k.log("progress: "+c,a,b)},g.prototype.complete=function(){var a=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emit(a,this),this.emit("always",this),this.jqDeferred){var b=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[b](this)}},h.prototype=new b,h.prototype.check=function(){var a=this.getIsImageComplete();return a?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,c.bind(this.proxyImage,"load",this),c.bind(this.proxyImage,"error",this),c.bind(this.img,"load",this),c.bind(this.img,"error",this),void(this.proxyImage.src=this.img.src))},h.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},h.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.img,b)},h.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){c.unbind(this.proxyImage,"load",this),c.unbind(this.proxyImage,"error",this),c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype=new h,i.prototype.check=function(){c.bind(this.img,"load",this),c.bind(this.img,"error",this),this.img.src=this.url;var a=this.getIsImageComplete();a&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},i.prototype.unbindEvents=function(){c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.element,b)},g.makeJQueryPlugin=function(b){b=b||a.jQuery,b&&(j=b,j.fn.imagesLoaded=function(a,b){var c=new g(this,a,b);return c.jqDeferred.promise(j(this))})},g.makeJQueryPlugin(),g});
|
Â
|
1 |
+
(function(){"use strict";function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if("object"==typeof a){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;b<a.length;b+=1)c.push(a[b].listener);return c},d.getListenersAsObject=function(a){var b,c=this.getListeners(a);return c instanceof Array&&(b={},b[a]=c),b||c},d.addListener=function(a,c){var d,e=this.getListenersAsObject(a),f="object"==typeof c;for(d in e)e.hasOwnProperty(d)&&-1===b(e[d],c)&&e[d].push(f?c:{listener:c,once:!1});return this},d.on=c("addListener"),d.addOnceListener=function(a,b){return this.addListener(a,{listener:b,once:!0})},d.once=c("addOnceListener"),d.defineEvent=function(a){return this.getListeners(a),this},d.defineEvents=function(a){for(var b=0;b<a.length;b+=1)this.defineEvent(a[b]);return this},d.removeListener=function(a,c){var d,e,f=this.getListenersAsObject(a);for(e in f)f.hasOwnProperty(e)&&(d=b(f[e],c),-1!==d&&f[e].splice(d,1));return this},d.off=c("removeListener"),d.addListeners=function(a,b){return this.manipulateListeners(!1,a,b)},d.removeListeners=function(a,b){return this.manipulateListeners(!0,a,b)},d.manipulateListeners=function(a,b,c){var d,e,f=a?this.removeListener:this.addListener,g=a?this.removeListeners:this.addListeners;if("object"!=typeof b||b instanceof RegExp)for(d=c.length;d--;)f.call(this,b,c[d]);else for(d in b)b.hasOwnProperty(d)&&(e=b[d])&&("function"==typeof e?f.call(this,d,e):g.call(this,d,e));return this},d.removeEvent=function(a){var b,c=typeof a,d=this._getEvents();if("string"===c)delete d[a];else if("object"===c)for(b in d)d.hasOwnProperty(b)&&a.test(b)&&delete d[b];else delete this._events;return this},d.removeAllListeners=c("removeEvent"),d.emitEvent=function(a,b){var c,d,e,f,g=this.getListenersAsObject(a);for(e in g)if(g.hasOwnProperty(e))for(d=g[e].length;d--;)c=g[e][d],c.once===!0&&this.removeListener(a,c.listener),f=c.listener.apply(this,b||[]),f===this._getOnceReturnValue()&&this.removeListener(a,c.listener);return this},d.trigger=c("emitEvent"),d.emit=function(a){var b=Array.prototype.slice.call(arguments,1);return this.emitEvent(a,b)},d.setOnceReturnValue=function(a){return this._onceReturnValue=a,this},d._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},d._getEvents=function(){return this._events||(this._events={})},a.noConflict=function(){return e.EventEmitter=f,a},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return a}):"object"==typeof module&&module.exports?module.exports=a:this.EventEmitter=a}).call(this),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):a.eventie=f}(this),function(a,b){"use strict";"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(c,d){return b(a,c,d)}):"object"==typeof module&&module.exports?module.exports=b(a,require("wolfy87-eventemitter"),require("eventie")):a.imagesLoaded=b(a,a.EventEmitter,a.eventie)}(window,function(a,b,c){function d(a,b){for(var c in b)a[c]=b[c];return a}function e(a){return"[object Array]"==l.call(a)}function f(a){var b=[];if(e(a))b=a;else if("number"==typeof a.length)for(var c=0;c<a.length;c++)b.push(a[c]);else b.push(a);return b}function g(a,b,c){if(!(this instanceof g))return new g(a,b,c);"string"==typeof a&&(a=document.querySelectorAll(a)),this.elements=f(a),this.options=d({},this.options),"function"==typeof b?c=b:d(this.options,b),c&&this.on("always",c),this.getImages(),j&&(this.jqDeferred=new j.Deferred);var e=this;setTimeout(function(){e.check()})}function h(a){this.img=a}function i(a,b){this.url=a,this.element=b,this.img=new Image}var j=a.jQuery,k=a.console,l=Object.prototype.toString;g.prototype=new b,g.prototype.options={},g.prototype.getImages=function(){this.images=[];for(var a=0;a<this.elements.length;a++){var b=this.elements[a];this.addElementImages(b)}},g.prototype.addElementImages=function(a){"IMG"==a.nodeName&&this.addImage(a),this.options.background===!0&&this.addElementBackgroundImages(a);var b=a.nodeType;if(b&&m[b]){for(var c=a.querySelectorAll("img"),d=0;d<c.length;d++){var e=c[d];this.addImage(e)}if("string"==typeof this.options.background){var f=a.querySelectorAll(this.options.background);for(d=0;d<f.length;d++){var g=f[d];this.addElementBackgroundImages(g)}}}};var m={1:!0,9:!0,11:!0};g.prototype.addElementBackgroundImages=function(a){for(var b=n(a),c=/url\(['"]*([^'"\)]+)['"]*\)/gi,d=c.exec(b.backgroundImage);null!==d;){var e=d&&d[1];e&&this.addBackground(e,a),d=c.exec(b.backgroundImage)}};var n=a.getComputedStyle||function(a){return a.currentStyle};return g.prototype.addImage=function(a){var b=new h(a);this.images.push(b)},g.prototype.addBackground=function(a,b){var c=new i(a,b);this.images.push(c)},g.prototype.check=function(){function a(a,c,d){setTimeout(function(){b.progress(a,c,d)})}var b=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();for(var c=0;c<this.images.length;c++){var d=this.images[c];d.once("progress",a),d.check()}},g.prototype.progress=function(a,b,c){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!a.isLoaded,this.emit("progress",this,a,b),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,a),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&k&&k.log("progress: "+c,a,b)},g.prototype.complete=function(){var a=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emit(a,this),this.emit("always",this),this.jqDeferred){var b=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[b](this)}},h.prototype=new b,h.prototype.check=function(){var a=this.getIsImageComplete();return a?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,c.bind(this.proxyImage,"load",this),c.bind(this.proxyImage,"error",this),c.bind(this.img,"load",this),c.bind(this.img,"error",this),void(this.proxyImage.src=this.img.src))},h.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},h.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.img,b)},h.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){c.unbind(this.proxyImage,"load",this),c.unbind(this.proxyImage,"error",this),c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype=new h,i.prototype.check=function(){c.bind(this.img,"load",this),c.bind(this.img,"error",this),this.img.src=this.url;var a=this.getIsImageComplete();a&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},i.prototype.unbindEvents=function(){c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.element,b)},g.makeJQueryPlugin=function(b){b=b||a.jQuery,b&&(j=b,j.fn.imagesLoaded=function(a,b){var c=new g(this,a,b);return c.jqDeferred.promise(j(this))})},g.makeJQueryPlugin(),g}),function(){"use strict";function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if("object"==typeof a){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;b<a.length;b+=1)c.push(a[b].listener);return c},d.getListenersAsObject=function(a){var b,c=this.getListeners(a);return c instanceof Array&&(b={},b[a]=c),b||c},d.addListener=function(a,c){var d,e=this.getListenersAsObject(a),f="object"==typeof c;for(d in e)e.hasOwnProperty(d)&&-1===b(e[d],c)&&e[d].push(f?c:{listener:c,once:!1});return this},d.on=c("addListener"),d.addOnceListener=function(a,b){return this.addListener(a,{listener:b,once:!0})},d.once=c("addOnceListener"),d.defineEvent=function(a){return this.getListeners(a),this},d.defineEvents=function(a){for(var b=0;b<a.length;b+=1)this.defineEvent(a[b]);return this},d.removeListener=function(a,c){var d,e,f=this.getListenersAsObject(a);for(e in f)f.hasOwnProperty(e)&&(d=b(f[e],c),-1!==d&&f[e].splice(d,1));return this},d.off=c("removeListener"),d.addListeners=function(a,b){return this.manipulateListeners(!1,a,b)},d.removeListeners=function(a,b){return this.manipulateListeners(!0,a,b)},d.manipulateListeners=function(a,b,c){var d,e,f=a?this.removeListener:this.addListener,g=a?this.removeListeners:this.addListeners;if("object"!=typeof b||b instanceof RegExp)for(d=c.length;d--;)f.call(this,b,c[d]);else for(d in b)b.hasOwnProperty(d)&&(e=b[d])&&("function"==typeof e?f.call(this,d,e):g.call(this,d,e));return this},d.removeEvent=function(a){var b,c=typeof a,d=this._getEvents();if("string"===c)delete d[a];else if("object"===c)for(b in d)d.hasOwnProperty(b)&&a.test(b)&&delete d[b];else delete this._events;return this},d.removeAllListeners=c("removeEvent"),d.emitEvent=function(a,b){var c,d,e,f,g=this.getListenersAsObject(a);for(e in g)if(g.hasOwnProperty(e))for(d=g[e].length;d--;)c=g[e][d],c.once===!0&&this.removeListener(a,c.listener),f=c.listener.apply(this,b||[]),f===this._getOnceReturnValue()&&this.removeListener(a,c.listener);return this},d.trigger=c("emitEvent"),d.emit=function(a){var b=Array.prototype.slice.call(arguments,1);return this.emitEvent(a,b)},d.setOnceReturnValue=function(a){return this._onceReturnValue=a,this},d._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},d._getEvents=function(){return this._events||(this._events={})},a.noConflict=function(){return e.EventEmitter=f,a},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return a}):"object"==typeof module&&module.exports?module.exports=a:this.EventEmitter=a}.call(this),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):a.eventie=f}(this),function(a,b){"use strict";"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(c,d){return b(a,c,d)}):"object"==typeof module&&module.exports?module.exports=b(a,require("wolfy87-eventemitter"),require("eventie")):a.imagesLoaded=b(a,a.EventEmitter,a.eventie)}(window,function(a,b,c){function d(a,b){for(var c in b)a[c]=b[c];return a}function e(a){return"[object Array]"==l.call(a)}function f(a){var b=[];if(e(a))b=a;else if("number"==typeof a.length)for(var c=0;c<a.length;c++)b.push(a[c]);else b.push(a);return b}function g(a,b,c){if(!(this instanceof g))return new g(a,b,c);"string"==typeof a&&(a=document.querySelectorAll(a)),this.elements=f(a),this.options=d({},this.options),"function"==typeof b?c=b:d(this.options,b),c&&this.on("always",c),this.getImages(),j&&(this.jqDeferred=new j.Deferred);var e=this;setTimeout(function(){e.check()})}function h(a){this.img=a}function i(a,b){this.url=a,this.element=b,this.img=new Image}var j=a.jQuery,k=a.console,l=Object.prototype.toString;g.prototype=new b,g.prototype.options={},g.prototype.getImages=function(){this.images=[];for(var a=0;a<this.elements.length;a++){var b=this.elements[a];this.addElementImages(b)}},g.prototype.addElementImages=function(a){"IMG"==a.nodeName&&this.addImage(a),this.options.background===!0&&this.addElementBackgroundImages(a);var b=a.nodeType;if(b&&m[b]){for(var c=a.querySelectorAll("img"),d=0;d<c.length;d++){var e=c[d];this.addImage(e)}if("string"==typeof this.options.background){var f=a.querySelectorAll(this.options.background);for(d=0;d<f.length;d++){var g=f[d];this.addElementBackgroundImages(g)}}}};var m={1:!0,9:!0,11:!0};g.prototype.addElementBackgroundImages=function(a){for(var b=n(a),c=/url\(['"]*([^'"\)]+)['"]*\)/gi,d=c.exec(b.backgroundImage);null!==d;){var e=d&&d[1];e&&this.addBackground(e,a),d=c.exec(b.backgroundImage)}};var n=a.getComputedStyle||function(a){return a.currentStyle};return g.prototype.addImage=function(a){var b=new h(a);this.images.push(b)},g.prototype.addBackground=function(a,b){var c=new i(a,b);this.images.push(c)},g.prototype.check=function(){function a(a,c,d){setTimeout(function(){b.progress(a,c,d)})}var b=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();for(var c=0;c<this.images.length;c++){var d=this.images[c];d.once("progress",a),d.check()}},g.prototype.progress=function(a,b,c){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!a.isLoaded,this.emit("progress",this,a,b),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,a),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&k&&k.log("progress: "+c,a,b)},g.prototype.complete=function(){var a=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emit(a,this),this.emit("always",this),this.jqDeferred){var b=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[b](this)}},h.prototype=new b,h.prototype.check=function(){var a=this.getIsImageComplete();return a?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,c.bind(this.proxyImage,"load",this),c.bind(this.proxyImage,"error",this),c.bind(this.img,"load",this),c.bind(this.img,"error",this),void(this.proxyImage.src=this.img.src))},h.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},h.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.img,b)},h.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){c.unbind(this.proxyImage,"load",this),c.unbind(this.proxyImage,"error",this),c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype=new h,i.prototype.check=function(){c.bind(this.img,"load",this),c.bind(this.img,"error",this),this.img.src=this.url;var a=this.getIsImageComplete();a&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},i.prototype.unbindEvents=function(){c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.element,b)},g.makeJQueryPlugin=function(b){b=b||a.jQuery,b&&(j=b,j.fn.imagesLoaded=function(a,b){var c=new g(this,a,b);return c.jqDeferred.promise(j(this))})},g.makeJQueryPlugin(),g}),function(){"use strict";function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if("object"==typeof a){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;b<a.length;b+=1)c.push(a[b].listener);return c},d.getListenersAsObject=function(a){var b,c=this.getListeners(a);return c instanceof Array&&(b={},b[a]=c),b||c},d.addListener=function(a,c){var d,e=this.getListenersAsObject(a),f="object"==typeof c;for(d in e)e.hasOwnProperty(d)&&-1===b(e[d],c)&&e[d].push(f?c:{listener:c,once:!1});return this},d.on=c("addListener"),d.addOnceListener=function(a,b){return this.addListener(a,{listener:b,once:!0})},d.once=c("addOnceListener"),d.defineEvent=function(a){return this.getListeners(a),this},d.defineEvents=function(a){for(var b=0;b<a.length;b+=1)this.defineEvent(a[b]);return this},d.removeListener=function(a,c){var d,e,f=this.getListenersAsObject(a);for(e in f)f.hasOwnProperty(e)&&(d=b(f[e],c),-1!==d&&f[e].splice(d,1));return this},d.off=c("removeListener"),d.addListeners=function(a,b){return this.manipulateListeners(!1,a,b)},d.removeListeners=function(a,b){return this.manipulateListeners(!0,a,b)},d.manipulateListeners=function(a,b,c){var d,e,f=a?this.removeListener:this.addListener,g=a?this.removeListeners:this.addListeners;if("object"!=typeof b||b instanceof RegExp)for(d=c.length;d--;)f.call(this,b,c[d]);else for(d in b)b.hasOwnProperty(d)&&(e=b[d])&&("function"==typeof e?f.call(this,d,e):g.call(this,d,e));return this},d.removeEvent=function(a){var b,c=typeof a,d=this._getEvents();if("string"===c)delete d[a];else if("object"===c)for(b in d)d.hasOwnProperty(b)&&a.test(b)&&delete d[b];else delete this._events;return this},d.removeAllListeners=c("removeEvent"),d.emitEvent=function(a,b){var c,d,e,f,g=this.getListenersAsObject(a);for(e in g)if(g.hasOwnProperty(e))for(d=g[e].length;d--;)c=g[e][d],c.once===!0&&this.removeListener(a,c.listener),f=c.listener.apply(this,b||[]),f===this._getOnceReturnValue()&&this.removeListener(a,c.listener);return this},d.trigger=c("emitEvent"),d.emit=function(a){var b=Array.prototype.slice.call(arguments,1);return this.emitEvent(a,b)},d.setOnceReturnValue=function(a){return this._onceReturnValue=a,this},d._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},d._getEvents=function(){return this._events||(this._events={})},a.noConflict=function(){return e.EventEmitter=f,a},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return a}):"object"==typeof module&&module.exports?module.exports=a:this.EventEmitter=a}.call(this),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):a.eventie=f}(this),function(a,b){"use strict";"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(c,d){return b(a,c,d)}):"object"==typeof module&&module.exports?module.exports=b(a,require("wolfy87-eventemitter"),require("eventie")):a.imagesLoaded=b(a,a.EventEmitter,a.eventie)}(window,function(a,b,c){function d(a,b){for(var c in b)a[c]=b[c];return a}function e(a){return"[object Array]"==l.call(a)}function f(a){var b=[];if(e(a))b=a;else if("number"==typeof a.length)for(var c=0;c<a.length;c++)b.push(a[c]);else b.push(a);return b}function g(a,b,c){if(!(this instanceof g))return new g(a,b,c);"string"==typeof a&&(a=document.querySelectorAll(a)),this.elements=f(a),this.options=d({},this.options),"function"==typeof b?c=b:d(this.options,b),c&&this.on("always",c),this.getImages(),j&&(this.jqDeferred=new j.Deferred);var e=this;setTimeout(function(){e.check()})}function h(a){this.img=a}function i(a,b){this.url=a,this.element=b,this.img=new Image}var j=a.jQuery,k=a.console,l=Object.prototype.toString;g.prototype=new b,g.prototype.options={},g.prototype.getImages=function(){this.images=[];for(var a=0;a<this.elements.length;a++){var b=this.elements[a];this.addElementImages(b)}},g.prototype.addElementImages=function(a){"IMG"==a.nodeName&&this.addImage(a),this.options.background===!0&&this.addElementBackgroundImages(a);var b=a.nodeType;if(b&&m[b]){for(var c=a.querySelectorAll("img"),d=0;d<c.length;d++){var e=c[d];this.addImage(e)}if("string"==typeof this.options.background){var f=a.querySelectorAll(this.options.background);for(d=0;d<f.length;d++){var g=f[d];this.addElementBackgroundImages(g)}}}};var m={1:!0,9:!0,11:!0};g.prototype.addElementBackgroundImages=function(a){for(var b=n(a),c=/url\(['"]*([^'"\)]+)['"]*\)/gi,d=c.exec(b.backgroundImage);null!==d;){var e=d&&d[1];e&&this.addBackground(e,a),d=c.exec(b.backgroundImage)}};var n=a.getComputedStyle||function(a){return a.currentStyle};return g.prototype.addImage=function(a){var b=new h(a);this.images.push(b)},g.prototype.addBackground=function(a,b){var c=new i(a,b);this.images.push(c)},g.prototype.check=function(){function a(a,c,d){setTimeout(function(){b.progress(a,c,d)})}var b=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();for(var c=0;c<this.images.length;c++){var d=this.images[c];d.once("progress",a),d.check()}},g.prototype.progress=function(a,b,c){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!a.isLoaded,this.emit("progress",this,a,b),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,a),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&k&&k.log("progress: "+c,a,b)},g.prototype.complete=function(){var a=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emit(a,this),this.emit("always",this),this.jqDeferred){var b=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[b](this)}},h.prototype=new b,h.prototype.check=function(){var a=this.getIsImageComplete();return a?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,c.bind(this.proxyImage,"load",this),c.bind(this.proxyImage,"error",this),c.bind(this.img,"load",this),c.bind(this.img,"error",this),void(this.proxyImage.src=this.img.src))},h.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},h.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.img,b)},h.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){c.unbind(this.proxyImage,"load",this),c.unbind(this.proxyImage,"error",this),c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype=new h,i.prototype.check=function(){c.bind(this.img,"load",this),c.bind(this.img,"error",this),this.img.src=this.url;var a=this.getIsImageComplete();a&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},i.prototype.unbindEvents=function(){c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.element,b)},g.makeJQueryPlugin=function(b){b=b||a.jQuery,b&&(j=b,j.fn.imagesLoaded=function(a,b){var c=new g(this,a,b);return c.jqDeferred.promise(j(this))})},g.makeJQueryPlugin(),g}),function(){"use strict";function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if("object"==typeof a){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;b<a.length;b+=1)c.push(a[b].listener);return c},d.getListenersAsObject=function(a){var b,c=this.getListeners(a);return c instanceof Array&&(b={},b[a]=c),b||c},d.addListener=function(a,c){var d,e=this.getListenersAsObject(a),f="object"==typeof c;for(d in e)e.hasOwnProperty(d)&&-1===b(e[d],c)&&e[d].push(f?c:{listener:c,once:!1});return this},d.on=c("addListener"),d.addOnceListener=function(a,b){return this.addListener(a,{listener:b,once:!0})},d.once=c("addOnceListener"),d.defineEvent=function(a){return this.getListeners(a),this},d.defineEvents=function(a){for(var b=0;b<a.length;b+=1)this.defineEvent(a[b]);return this},d.removeListener=function(a,c){var d,e,f=this.getListenersAsObject(a);for(e in f)f.hasOwnProperty(e)&&(d=b(f[e],c),-1!==d&&f[e].splice(d,1));return this},d.off=c("removeListener"),d.addListeners=function(a,b){return this.manipulateListeners(!1,a,b)},d.removeListeners=function(a,b){return this.manipulateListeners(!0,a,b)},d.manipulateListeners=function(a,b,c){var d,e,f=a?this.removeListener:this.addListener,g=a?this.removeListeners:this.addListeners;if("object"!=typeof b||b instanceof RegExp)for(d=c.length;d--;)f.call(this,b,c[d]);else for(d in b)b.hasOwnProperty(d)&&(e=b[d])&&("function"==typeof e?f.call(this,d,e):g.call(this,d,e));return this},d.removeEvent=function(a){var b,c=typeof a,d=this._getEvents();if("string"===c)delete d[a];else if("object"===c)for(b in d)d.hasOwnProperty(b)&&a.test(b)&&delete d[b];else delete this._events;return this},d.removeAllListeners=c("removeEvent"),d.emitEvent=function(a,b){var c,d,e,f,g=this.getListenersAsObject(a);for(e in g)if(g.hasOwnProperty(e))for(d=g[e].length;d--;)c=g[e][d],c.once===!0&&this.removeListener(a,c.listener),f=c.listener.apply(this,b||[]),f===this._getOnceReturnValue()&&this.removeListener(a,c.listener);return this},d.trigger=c("emitEvent"),d.emit=function(a){var b=Array.prototype.slice.call(arguments,1);return this.emitEvent(a,b)},d.setOnceReturnValue=function(a){return this._onceReturnValue=a,this},d._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},d._getEvents=function(){return this._events||(this._events={})},a.noConflict=function(){return e.EventEmitter=f,a},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return a}):"object"==typeof module&&module.exports?module.exports=a:this.EventEmitter=a}.call(this),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):a.eventie=f}(this),function(a,b){"use strict";"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(c,d){return b(a,c,d)}):"object"==typeof module&&module.exports?module.exports=b(a,require("wolfy87-eventemitter"),require("eventie")):a.imagesLoaded=b(a,a.EventEmitter,a.eventie)}(window,function(a,b,c){function d(a,b){for(var c in b)a[c]=b[c];return a}function e(a){return"[object Array]"==l.call(a)}function f(a){var b=[];if(e(a))b=a;else if("number"==typeof a.length)for(var c=0;c<a.length;c++)b.push(a[c]);else b.push(a);return b}function g(a,b,c){if(!(this instanceof g))return new g(a,b,c);"string"==typeof a&&(a=document.querySelectorAll(a)),this.elements=f(a),this.options=d({},this.options),"function"==typeof b?c=b:d(this.options,b),c&&this.on("always",c),this.getImages(),j&&(this.jqDeferred=new j.Deferred);var e=this;setTimeout(function(){e.check()})}function h(a){this.img=a}function i(a,b){this.url=a,this.element=b,this.img=new Image}var j=a.jQuery,k=a.console,l=Object.prototype.toString;g.prototype=new b,g.prototype.options={},g.prototype.getImages=function(){this.images=[];for(var a=0;a<this.elements.length;a++){var b=this.elements[a];this.addElementImages(b)}},g.prototype.addElementImages=function(a){"IMG"==a.nodeName&&this.addImage(a),this.options.background===!0&&this.addElementBackgroundImages(a);var b=a.nodeType;if(b&&m[b]){for(var c=a.querySelectorAll("img"),d=0;d<c.length;d++){var e=c[d];this.addImage(e)}if("string"==typeof this.options.background){var f=a.querySelectorAll(this.options.background);for(d=0;d<f.length;d++){var g=f[d];this.addElementBackgroundImages(g)}}}};var m={1:!0,9:!0,11:!0};g.prototype.addElementBackgroundImages=function(a){for(var b=n(a),c=/url\(['"]*([^'"\)]+)['"]*\)/gi,d=c.exec(b.backgroundImage);null!==d;){var e=d&&d[1];e&&this.addBackground(e,a),d=c.exec(b.backgroundImage)}};var n=a.getComputedStyle||function(a){return a.currentStyle};return g.prototype.addImage=function(a){var b=new h(a);this.images.push(b)},g.prototype.addBackground=function(a,b){var c=new i(a,b);this.images.push(c)},g.prototype.check=function(){function a(a,c,d){setTimeout(function(){b.progress(a,c,d)})}var b=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();for(var c=0;c<this.images.length;c++){var d=this.images[c];d.once("progress",a),d.check()}},g.prototype.progress=function(a,b,c){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!a.isLoaded,this.emit("progress",this,a,b),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,a),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&k&&k.log("progress: "+c,a,b)},g.prototype.complete=function(){var a=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emit(a,this),this.emit("always",this),this.jqDeferred){var b=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[b](this)}},h.prototype=new b,h.prototype.check=function(){var a=this.getIsImageComplete();return a?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,c.bind(this.proxyImage,"load",this),c.bind(this.proxyImage,"error",this),c.bind(this.img,"load",this),c.bind(this.img,"error",this),void(this.proxyImage.src=this.img.src))},h.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},h.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.img,b)},h.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){c.unbind(this.proxyImage,"load",this),c.unbind(this.proxyImage,"error",this),c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype=new h,i.prototype.check=function(){c.bind(this.img,"load",this),c.bind(this.img,"error",this),this.img.src=this.url;var a=this.getIsImageComplete();a&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},i.prototype.unbindEvents=function(){c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.element,b)},g.makeJQueryPlugin=function(b){b=b||a.jQuery,b&&(j=b,j.fn.imagesLoaded=function(a,b){var c=new g(this,a,b);return c.jqDeferred.promise(j(this))})},g.makeJQueryPlugin(),g}),function(){"use strict";
|
2 |
+
function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if("object"==typeof a){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;b<a.length;b+=1)c.push(a[b].listener);return c},d.getListenersAsObject=function(a){var b,c=this.getListeners(a);return c instanceof Array&&(b={},b[a]=c),b||c},d.addListener=function(a,c){var d,e=this.getListenersAsObject(a),f="object"==typeof c;for(d in e)e.hasOwnProperty(d)&&-1===b(e[d],c)&&e[d].push(f?c:{listener:c,once:!1});return this},d.on=c("addListener"),d.addOnceListener=function(a,b){return this.addListener(a,{listener:b,once:!0})},d.once=c("addOnceListener"),d.defineEvent=function(a){return this.getListeners(a),this},d.defineEvents=function(a){for(var b=0;b<a.length;b+=1)this.defineEvent(a[b]);return this},d.removeListener=function(a,c){var d,e,f=this.getListenersAsObject(a);for(e in f)f.hasOwnProperty(e)&&(d=b(f[e],c),-1!==d&&f[e].splice(d,1));return this},d.off=c("removeListener"),d.addListeners=function(a,b){return this.manipulateListeners(!1,a,b)},d.removeListeners=function(a,b){return this.manipulateListeners(!0,a,b)},d.manipulateListeners=function(a,b,c){var d,e,f=a?this.removeListener:this.addListener,g=a?this.removeListeners:this.addListeners;if("object"!=typeof b||b instanceof RegExp)for(d=c.length;d--;)f.call(this,b,c[d]);else for(d in b)b.hasOwnProperty(d)&&(e=b[d])&&("function"==typeof e?f.call(this,d,e):g.call(this,d,e));return this},d.removeEvent=function(a){var b,c=typeof a,d=this._getEvents();if("string"===c)delete d[a];else if("object"===c)for(b in d)d.hasOwnProperty(b)&&a.test(b)&&delete d[b];else delete this._events;return this},d.removeAllListeners=c("removeEvent"),d.emitEvent=function(a,b){var c,d,e,f,g=this.getListenersAsObject(a);for(e in g)if(g.hasOwnProperty(e))for(d=g[e].length;d--;)c=g[e][d],c.once===!0&&this.removeListener(a,c.listener),f=c.listener.apply(this,b||[]),f===this._getOnceReturnValue()&&this.removeListener(a,c.listener);return this},d.trigger=c("emitEvent"),d.emit=function(a){var b=Array.prototype.slice.call(arguments,1);return this.emitEvent(a,b)},d.setOnceReturnValue=function(a){return this._onceReturnValue=a,this},d._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},d._getEvents=function(){return this._events||(this._events={})},a.noConflict=function(){return e.EventEmitter=f,a},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return a}):"object"==typeof module&&module.exports?module.exports=a:this.EventEmitter=a}.call(this),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):a.eventie=f}(this),function(a,b){"use strict";"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(c,d){return b(a,c,d)}):"object"==typeof module&&module.exports?module.exports=b(a,require("wolfy87-eventemitter"),require("eventie")):a.imagesLoaded=b(a,a.EventEmitter,a.eventie)}(window,function(a,b,c){function d(a,b){for(var c in b)a[c]=b[c];return a}function e(a){return"[object Array]"==l.call(a)}function f(a){var b=[];if(e(a))b=a;else if("number"==typeof a.length)for(var c=0;c<a.length;c++)b.push(a[c]);else b.push(a);return b}function g(a,b,c){if(!(this instanceof g))return new g(a,b,c);"string"==typeof a&&(a=document.querySelectorAll(a)),this.elements=f(a),this.options=d({},this.options),"function"==typeof b?c=b:d(this.options,b),c&&this.on("always",c),this.getImages(),j&&(this.jqDeferred=new j.Deferred);var e=this;setTimeout(function(){e.check()})}function h(a){this.img=a}function i(a,b){this.url=a,this.element=b,this.img=new Image}var j=a.jQuery,k=a.console,l=Object.prototype.toString;g.prototype=new b,g.prototype.options={},g.prototype.getImages=function(){this.images=[];for(var a=0;a<this.elements.length;a++){var b=this.elements[a];this.addElementImages(b)}},g.prototype.addElementImages=function(a){"IMG"==a.nodeName&&this.addImage(a),this.options.background===!0&&this.addElementBackgroundImages(a);var b=a.nodeType;if(b&&m[b]){for(var c=a.querySelectorAll("img"),d=0;d<c.length;d++){var e=c[d];this.addImage(e)}if("string"==typeof this.options.background){var f=a.querySelectorAll(this.options.background);for(d=0;d<f.length;d++){var g=f[d];this.addElementBackgroundImages(g)}}}};var m={1:!0,9:!0,11:!0};g.prototype.addElementBackgroundImages=function(a){for(var b=n(a),c=/url\(['"]*([^'"\)]+)['"]*\)/gi,d=c.exec(b.backgroundImage);null!==d;){var e=d&&d[1];e&&this.addBackground(e,a),d=c.exec(b.backgroundImage)}};var n=a.getComputedStyle||function(a){return a.currentStyle};return g.prototype.addImage=function(a){var b=new h(a);this.images.push(b)},g.prototype.addBackground=function(a,b){var c=new i(a,b);this.images.push(c)},g.prototype.check=function(){function a(a,c,d){setTimeout(function(){b.progress(a,c,d)})}var b=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();for(var c=0;c<this.images.length;c++){var d=this.images[c];d.once("progress",a),d.check()}},g.prototype.progress=function(a,b,c){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!a.isLoaded,this.emit("progress",this,a,b),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,a),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&k&&k.log("progress: "+c,a,b)},g.prototype.complete=function(){var a=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emit(a,this),this.emit("always",this),this.jqDeferred){var b=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[b](this)}},h.prototype=new b,h.prototype.check=function(){var a=this.getIsImageComplete();return a?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,c.bind(this.proxyImage,"load",this),c.bind(this.proxyImage,"error",this),c.bind(this.img,"load",this),c.bind(this.img,"error",this),void(this.proxyImage.src=this.img.src))},h.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},h.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.img,b)},h.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){c.unbind(this.proxyImage,"load",this),c.unbind(this.proxyImage,"error",this),c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype=new h,i.prototype.check=function(){c.bind(this.img,"load",this),c.bind(this.img,"error",this),this.img.src=this.url;var a=this.getIsImageComplete();a&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},i.prototype.unbindEvents=function(){c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.element,b)},g.makeJQueryPlugin=function(b){b=b||a.jQuery,b&&(j=b,j.fn.imagesLoaded=function(a,b){var c=new g(this,a,b);return c.jqDeferred.promise(j(this))})},g.makeJQueryPlugin(),g});
|
public/js/lib/lozad/lozad-load.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
lozad(".lazy-load",{rootMargin:"300px 0px",loaded:function(a){a.classList.add("is-loaded")}}).observe()
|
1 |
+
lozad(".lazy-load",{rootMargin:"300px 0px",loaded:function(a){a.classList.add("is-loaded")}}).observe();
|
public/js/lib/lozad/lozad.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).lozad=e()}(this,function(){"use strict";var t="undefined"!=typeof document&&document.documentMode,e={rootMargin:"0px",threshold:0,load:function(e){if("picture"===e.nodeName.toLowerCase()){var r=document.createElement("img");t&&e.getAttribute("data-iesrc")&&(r.src=e.getAttribute("data-iesrc")),e.getAttribute("data-alt")&&(r.alt=e.getAttribute("data-alt")),e.append(r)}if("video"===e.nodeName.toLowerCase()&&!e.getAttribute("data-src")&&e.children){for(var a=e.children,o=void 0,i=0;i<=a.length-1;i++)(o=a[i].getAttribute("data-src"))&&(a[i].src=o);e.load()}if(e.getAttribute("data-src")&&(e.src=e.getAttribute("data-src")),e.getAttribute("data-srcset")&&e.setAttribute("srcset",e.getAttribute("data-srcset")),e.getAttribute("data-background-image"))e.style.backgroundImage="url('"+e.getAttribute("data-background-image").split(",").join("'),url('")+"')";else if(e.getAttribute("data-background-image-set")){var n=e.getAttribute("data-background-image-set").split(","),d=n[0].substr(0,n[0].indexOf(" "))||n[0];d=-1===d.indexOf("url(")?"url("+d+")":d,1===n.length?e.style.backgroundImage=d:e.setAttribute("style",(e.getAttribute("style")||"")+"background-image: "+d+"; background-image: -webkit-image-set("+n+"); background-image: image-set("+n+")")}e.getAttribute("data-toggle-class")&&e.classList.toggle(e.getAttribute("data-toggle-class"))},loaded:function(){}};function r(t){t.setAttribute("data-loaded",!0)}var a=function(t){return"true"===t.getAttribute("data-loaded")};return function(){var t,o,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:".lozad",n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},d=Object.assign({},e,n),u=d.root,s=d.rootMargin,g=d.threshold,c=d.load,l=d.loaded,b=void 0;return"undefined"!=typeof window&&window.IntersectionObserver&&(b=new IntersectionObserver((t=c,o=l,function(e,i){e.forEach(function(e){(0<e.intersectionRatio||e.isIntersecting)&&(i.unobserve(e.target),a(e.target)||(t(e.target),r(e.target),o(e.target)))})}),{root:u,rootMargin:s,threshold:g})),{observe:function(){for(var t=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document;return t instanceof Element?[t]:t instanceof NodeList?t:e.querySelectorAll(t)}(i,u),e=0;e<t.length;e++)a(t[e])||(b?b.observe(t[e]):(c(t[e]),r(t[e]),l(t[e])))},triggerLoad:function(t){a(t)||(c(t),r(t),l(t))},observer:b}}});
|
public/js/lib/randomjs/random.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(document).ready(function(){jQuery(".strong-view").randomize(".wpmtst-testimonial")}),jQuery.fn.randomize=function(
|
1 |
+
jQuery(document).ready(function(){jQuery(".strong-view").randomize(".wpmtst-testimonial")}),jQuery.fn.randomize=function(n){return(n?this.find(n):this).parent().each(function(){jQuery(this).children(n).sort(function(){return Math.random()-.5}).detach().appendTo(this)}),this};
|
public/js/lib/readmore/readmore.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(){var
|
1 |
+
!function(){var e=function(e){if("animationend"===e.type&&"fadeOutUp"===e.animationName){e.target.setAttribute("hidden","true"),e.target.parentElement.querySelector(".readmore-toggle").style.display="inline";var n=e.target.parentElement.querySelector(".ellipsis");n&&(n.style.display="inline"),t()}},t=function(){window.dispatchEvent(new Event("toggleFullContent"))};"querySelector"in document&&"addEventListener"in window&&(document.addEventListener("transitionend",function(t){t.target.matches(".readmore-content")&&e(t)},!1),document.addEventListener("animationend",function(t){t.target.matches(".readmore-content")&&e(t)},!1),document.addEventListener("click",function(e){if(e.target.matches(".readmore-text")){var n=e.target,a=n.parentElement,r=n.parentElement.parentElement.querySelector(".readmore-excerpt"),i=n.parentElement.parentElement.querySelector(".readmore-content"),s=n.parentElement.parentElement.querySelector(".ellipsis"),d=!1;if(r.classList.contains("all-html"))d=!0;i&&(i.hasAttribute("hidden")?(i.removeAttribute("hidden"),n.innerText=n.dataset.lessText,a.setAttribute("aria-expanded",!0),s&&(s.style.display="none"),i.classList.add("fadeInDown"),i.classList.remove("fadeOutUp"),i.classList.remove("faster"),d&&(r.style.display="none"),t()):(a.style.display="none",a.setAttribute("aria-expanded",!1),n.innerText=n.dataset.moreText,i.classList.add("fadeOutUp"),i.classList.add("faster"),i.classList.remove("fadeInDown"),d&&(r.style.display="block")))}},!1))}();
|
public/js/lib/strongpager/jquery-strongpager.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e){var t={pageSize:10,currentPage:1,pagerLocation:"after",scrollTop:1,offset:40,div:".strong-content",imagesLoaded:!0};e.fn.strongPager=function(a){if(0===this.length)return this;var r={},i=this,n=function(e){r.div.children().hide(),i.show();var t=r.div.children(".simplePagerPage"+r.currentPage);e?t.fadeIn():t.show()},s=function(){i.find(".simplePagerNav a").click(function(t){var a,i=e(t.target);return a=i.closest(".simplePagerContainer"),r.currentPage=i.attr("rel"),a.find("li.currentPage").removeClass("currentPage"),a.find('a[rel="'+r.currentPage+'"]').parent("li").addClass("currentPage"),n(!0),r.settings.scrollTop&&e("html, body").animate({scrollTop:r.scrollto},800),!1})},o=function(){var e;i.is(":visible")&&(clearInterval(r.visibilityInterval),e=i.closest(".woocommerce-tabs").length?i.closest(".woocommerce-tabs").offset():i.find(".simplePagerContainer").offset(),r.scrollto=~~(e.top-r.settings.offset),document.getElementById("#wpadminbar")&&(r.scrollto-=32))},l=function(){var t;t=1,r.div.wrap('<div class="simplePagerContainer"></div>'),r.div.children().each(function(a){a>t*r.settings.pageSize-1&&t++,e(this).addClass("simplePagerPage"+t)}),r.pageCounter=t,r.pageCounter>1&&(!function(){for(var e,t='<ul class="simplePagerNav">',a=1;a<=r.pageCounter;a++)e="",a===r.currentPage&&(e="currentPage "),t+='<li class="'+e+"simplePageNav"+a+'"><a rel="'+a+'" href="#">'+a+"</a></li>";switch(t='<div class="simplePagerList">'+(t+="</ul>")+"</div>",r.settings.pagerLocation){case"before":r.div.before(t);break;case"both":r.div.before(t),r.div.after(t);brea |