@@ -63,7 +63,6 @@ protected function _register_controls() {
63
63
'elementor-pro-posts ' => __ ( 'Elementor Posts ' , 'infinite-scroll-elementor-td ' ),
64
64
'elementor-pro-products ' => __ ( 'Elementor Products ' , 'infinite-scroll-elementor-td ' ),
65
65
'elementor-pro-archive-posts ' => __ ( 'Elementor Archive Posts ' , 'infinite-scroll-elementor-td ' ),
66
- 'elementor-pro-archive-products ' => __ ( 'Elementor Archive Products ' , 'infinite-scroll-elementor-td ' ),
67
66
'use-custom-selectors ' => __ ( 'Add Custom Selectors ' , 'infinite-scroll-elementor-td ' ),
68
67
],
69
68
'condition ' => [
@@ -270,110 +269,7 @@ protected function render() {
270
269
}
271
270
272
271
}
273
-
274
- // Elementor Archive Products
275
- elseif ( $ settings ['pagination_for_setting ' ] == 'elementor-pro-archive-products ' ) {
276
-
277
- if ( \Elementor \Plugin::$ instance ->editor ->is_edit_mode () ) {
278
- echo "<strong>Infinite Scroll Elementor: </strong>Executed fine, please check preview or page for results. " ;
279
- }
280
- else {
281
- ?>
282
- <style>
283
- .page-load-status {
284
- display:none; /* hidden by default */
285
- text-align: center;
286
- color: #000428;
287
- }
288
272
289
- .loader-ellips {
290
- font-size: 12px; /* change size here */
291
- position: relative;
292
- width: 4em;
293
- height: 1em;
294
- margin: 10px auto;
295
- }
296
-
297
- .loader-ellips__dot {
298
- display: block;
299
- width: 1em;
300
- height: 1em;
301
- border-radius: 0.5em;
302
- background: #a1a1a1; /* change color here */
303
- position: absolute;
304
- animation-duration: 0.5s;
305
- animation-timing-function: ease;
306
- animation-iteration-count: infinite;
307
- }
308
-
309
- .loader-ellips__dot:nth-child(1),
310
- .loader-ellips__dot:nth-child(2) {
311
- left: 0;
312
- }
313
- .loader-ellips__dot:nth-child(3) { left: 1.5em; }
314
- .loader-ellips__dot:nth-child(4) { left: 3em; }
315
-
316
- @keyframes reveal {
317
- from { transform: scale(0.001); }
318
- to { transform: scale(1); }
319
- }
320
-
321
- @keyframes slide {
322
- to { transform: translateX(1.5em) }
323
- }
324
-
325
- .loader-ellips__dot:nth-child(1) {
326
- animation-name: reveal;
327
- }
328
-
329
- .loader-ellips__dot:nth-child(2),
330
- .loader-ellips__dot:nth-child(3) {
331
- animation-name: slide;
332
- }
333
-
334
- .loader-ellips__dot:nth-child(4) {
335
- animation-name: reveal;
336
- animation-direction: reverse;
337
- }
338
- .vmBtn {
339
- text-align:center;
340
- margin-top:0px;
341
- }
342
- .view-more-button{
343
- background-color:#a1a1a1;
344
- border-style:none;
345
- color:#fff;
346
- font-size:18px;
347
- padding:8px 16px;
348
- border-radius:3px;
349
- cursor: pointer;
350
- }
351
- </style>
352
- <div class="page-load-status">
353
- <div class="loader-ellips infinite-scroll-request">
354
- <span class="loader-ellips__dot"></span>
355
- <span class="loader-ellips__dot"></span>
356
- <span class="loader-ellips__dot"></span>
357
- <span class="loader-ellips__dot"></span>
358
- </div>
359
- <p class="infinite-scroll-last">You have made it till the end!</p>
360
- <p class="infinite-scroll-error">No more posts left!</p>
361
- </div>
362
- <script type="text/javascript">
363
- jQuery(document).ready(function($) {
364
- $('ul.products').infiniteScroll({
365
- path: 'a.page-numbers.next',
366
- append: 'li.product',
367
- history: false,
368
- hideNav: 'nav.woocommerce-pagination',
369
- });
370
-
371
- });
372
- </script>
373
- <?php
374
- }
375
-
376
- }
377
273
// Elementor Products
378
274
elseif ( $ settings ['pagination_for_setting ' ] == 'elementor-pro-products ' ) {
379
275
@@ -469,6 +365,7 @@ protected function render() {
469
365
path: 'a.page-numbers.next',
470
366
hideNav: 'nav.woocommerce-pagination',
471
367
history: false,
368
+ status: '.page-load-status',
472
369
});
473
370
474
371
});
@@ -578,6 +475,7 @@ protected function render() {
578
475
path: '<?php echo $ path_custom ?> ',
579
476
hideNav: '<?php echo $ hideNav_custom ?> ',
580
477
history: false,
478
+ status: '.page-load-status',
581
479
});
582
480
});
583
481
</script>
0 commit comments