Skip to content

Commit 19c98de

Browse files
committed
v2.1.2
1. General Fixes. 2. Added Loading animation to Elementor Products widget infinite scroll.
1 parent 37d278b commit 19c98de

File tree

5 files changed

+17
-112
lines changed

5 files changed

+17
-112
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
**Requires at least:** 5.0\
55
**Tested up to:** 5.5.1\
66
**Requires PHP:** 5.6\
7-
**Stable tag:** 2.1.1\
7+
**Stable tag:** 2.1.2\
88
**License:** GPLv3\
99
**License URI:** https://www.gnu.org/licenses/gpl-3.0.html
1010

@@ -21,9 +21,8 @@ Infinite Scroll Elementor pulls the next posts automatically when the reader app
2121
### Pagination applicable to ###
2222

2323
1. Elementor Posts
24-
2. Elementor Products
25-
3. Elementor Posts Archive
26-
4. Elementor Products Archive
24+
2. Elementor Posts Archive
25+
3. Elementor WooCommerce Products
2726
5. Add Custom Selectors
2827

2928
### Options ###
@@ -37,6 +36,10 @@ For tutorial check [documentation](https://joychetry.com/infinite-scroll-element
3736
## Changelog ##
3837

3938

39+
### 2.1.2 - 2020-09-10 ###
40+
* Tweak: General Fixes.
41+
* Tweak: Added Loading animation to Elementor Products widget infinite scroll.
42+
4043
### 2.1.1 - 2020-09-06 ###
4144
* Tweak: Grammar slam.
4245

includes/widgets/infinite-scroll-elementor-ise.php

Lines changed: 2 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ protected function _register_controls() {
6363
'elementor-pro-posts' => __( 'Elementor Posts', 'infinite-scroll-elementor-td' ),
6464
'elementor-pro-products' => __( 'Elementor Products', 'infinite-scroll-elementor-td' ),
6565
'elementor-pro-archive-posts' => __( 'Elementor Archive Posts', 'infinite-scroll-elementor-td' ),
66-
'elementor-pro-archive-products' => __( 'Elementor Archive Products', 'infinite-scroll-elementor-td' ),
6766
'use-custom-selectors' => __( 'Add Custom Selectors', 'infinite-scroll-elementor-td' ),
6867
],
6968
'condition' => [
@@ -270,110 +269,7 @@ protected function render() {
270269
}
271270

272271
}
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-
}
288272

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-
}
377273
// Elementor Products
378274
elseif( $settings['pagination_for_setting'] == 'elementor-pro-products' ) {
379275

@@ -469,6 +365,7 @@ protected function render() {
469365
path: 'a.page-numbers.next',
470366
hideNav: 'nav.woocommerce-pagination',
471367
history: false,
368+
status: '.page-load-status',
472369
});
473370

474371
});
@@ -578,6 +475,7 @@ protected function render() {
578475
path: '<?php echo $path_custom ?>',
579476
hideNav: '<?php echo $hideNav_custom ?>',
580477
history: false,
478+
status: '.page-load-status',
581479
});
582480
});
583481
</script>

infinite-scroll-elementor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Description: Infinite Scroll Elementor pulls the next posts automatically when the reader approaches the bottom of the page.
55
* Tags: infinite scroll, load more, pagination, paginate, scroll, infinite, infinity, ajax, posts, products, elementor, woocommerce, facetwp, jetsmartfilters
66
* Plugin URI: https://joychetry.com/infinite-scroll-elementor/
7-
* Version: 2.1.1
7+
* Version: 2.1.2
88
* Author: Joy Chetry
99
* Author URI: https://joychetry.com/
1010
* Text Domain: infinite-scroll-elementor
@@ -14,7 +14,7 @@
1414

1515
final class infinite_scroll_elementor_Final {
1616

17-
const VERSION = '2.1.1';
17+
const VERSION = '2.1.2';
1818
const MINIMUM_ELEMENTOR_VERSION = '2.0.0';
1919
const MINIMUM_PHP_VERSION = '5.6';
2020

plugin-update-checker/vendor/PucReadmeParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function parse_readme_contents( $file_contents ) {
4646
$requires_at_least = NULL;
4747

4848

49-
// Tested up to: 2.1.1
49+
// Tested up to: 2.1.0
5050
if ( preg_match('|Tested up to:(.*)|i', $file_contents, $_tested_up_to) )
5151
$tested_up_to = $this->sanitize_text( $_tested_up_to[1] );
5252
else

readme.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Tags: infinite scroll, load more, pagination, paginate, scroll, infinite, infini
66
Requires at least: 5.0
77
Tested up to: 5.5.1
88
Requires PHP: 5.6
9-
Stable tag: 2.1.1
9+
Stable tag: 2.1.2
1010
License: GPLv3
1111
License URI: https://www.gnu.org/licenses/gpl-3.0.html
1212

@@ -52,6 +52,10 @@ You canPlease create a support request in the official [support forum](https://w
5252

5353
== Changelog ==
5454

55+
= 2.1.2 - 2020-09-10 =
56+
* Tweak: General Fixes.
57+
* Tweak: Added Loading animation to Elementor Products widget infinite scroll.
58+
5559
= 2.1.1 - 2020-09-06 =
5660
* Tweak: Grammar slam.
5761

0 commit comments

Comments
 (0)