WordPress Infinite Scroll – Ajax Load More - Version 5.1.6

Version Description

  • October 22, 2019 =
  • NEW - Added support for ACF Sub Fields in the ACF extension.
  • FIX - Fixed issue with ALM not starting if the global settings were not saved previously .
  • UPDATE - Improved the functionality of the alm_debug filter hook. Query args are now displayed in the browser console under it's own entry.
Download this release

Release Info

Developer dcooney
Plugin Icon 128x128 WordPress Infinite Scroll – Ajax Load More
Version 5.1.6
Comparing to
See all releases

Code changes from version 5.1.5 to 5.1.6

README.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: dcooney, connekthq
3
  Donate link: https://connekthq.com/donate/
4
  Tags: infinite scroll, infinite scrolling, scroll, infinite, lazy load, lazy loading, endless scroll, pagination, ajax pagination, ajax, ajax posts, woocommerce, ajax load more, masonry
5
  Requires at least: 4.0
6
- Tested up to: 5.2.3
7
- Stable tag: 5.1.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -381,6 +381,12 @@ How to install Ajax Load More.
381
 
382
  == Changelog ==
383
 
 
 
 
 
 
 
384
  = 5.1.5 - October 1, 2019 =
385
  * NEW - Added new `loading_style` parameter that allows users to override the global button style at the shortcode level.
386
  * NEW - Added mousewheel detection, 'end' and 'page down' keyup listeners for loading posts. In some rare cases users would not be able to load posts unless the user scroll back up the page. This will hopefully solve that issue.
3
  Donate link: https://connekthq.com/donate/
4
  Tags: infinite scroll, infinite scrolling, scroll, infinite, lazy load, lazy loading, endless scroll, pagination, ajax pagination, ajax, ajax posts, woocommerce, ajax load more, masonry
5
  Requires at least: 4.0
6
+ Tested up to: 5.3
7
+ Stable tag: 5.1.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
381
 
382
  == Changelog ==
383
 
384
+ = 5.1.6 - October 22, 2019 =
385
+ * NEW - Added support for ACF Sub Fields in the [ACF extension](https://connekthq.com/plugins/ajax-load-more/extensions/advanced-custom-fields/).
386
+ * FIX - Fixed issue with ALM not starting if the global settings were not saved previously 😔.
387
+ * UPDATE - Improved the functionality of the [alm_debug](https://connekthq.com/plugins/ajax-load-more/docs/filter-hooks/#alm_debug) filter hook. Query args are now displayed in the browser console under it's own entry.
388
+
389
+
390
  = 5.1.5 - October 1, 2019 =
391
  * NEW - Added new `loading_style` parameter that allows users to override the global button style at the shortcode level.
392
  * NEW - Added mousewheel detection, 'end' and 'page down' keyup listeners for loading posts. In some rare cases users would not be able to load posts unless the user scroll back up the page. This will hopefully solve that issue.
admin/shortcode-builder/components/acf.php CHANGED
@@ -25,7 +25,7 @@
25
  <div class="nested-component--inner">
26
 
27
  <div class="section-title">
28
- <h4><?php _e('Post ID', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Leave this field blank and Ajax Load More will retrieve the ID from the global $post object','ajax-load-more'); ?>."></a></h4>
29
  <p><?php _e('The ID of the current page/post.', 'ajax-load-more'); ?></p>
30
  </div>
31
  <div class="wrap">
@@ -39,7 +39,7 @@
39
 
40
  <div class="section-title">
41
  <h4><?php _e('Field Type', 'ajax-load-more'); ?></h4>
42
- <p><?php _e('Select the type of ACF field', 'ajax-load-more'); ?>.</p>
43
  </div>
44
  <div class="wrap">
45
  <div class="inner">
@@ -59,12 +59,29 @@
59
 
60
  <div class="section-title">
61
  <h4><?php _e('Field Name', 'ajax-load-more'); ?></h4>
62
- <p><?php _e('Enter the name of the ACF field', 'ajax-load-more'); ?>.</p>
63
  </div>
64
  <div class="wrap">
65
  <div class="inner">
66
  <label class="offscreen" for="acf_field_name"><?php _e('Field Type', 'ajax-load-more'); ?>:</label>
67
- <input type="text" class="alm_element" name="acf_field_name" id="acf_field_name" placeholder="{your_field_name}">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  </div>
69
  </div>
70
  </div>
25
  <div class="nested-component--inner">
26
 
27
  <div class="section-title">
28
+ <h4><?php _e('Post ID', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Leave this field blank and Ajax Load More will retrieve the ID from the global $post object.','ajax-load-more'); ?>"></a></h4>
29
  <p><?php _e('The ID of the current page/post.', 'ajax-load-more'); ?></p>
30
  </div>
31
  <div class="wrap">
39
 
40
  <div class="section-title">
41
  <h4><?php _e('Field Type', 'ajax-load-more'); ?></h4>
42
+ <p><?php _e('Select the type of ACF field.', 'ajax-load-more'); ?></p>
43
  </div>
44
  <div class="wrap">
45
  <div class="inner">
59
 
60
  <div class="section-title">
61
  <h4><?php _e('Field Name', 'ajax-load-more'); ?></h4>
62
+ <p><?php _e('Enter the name of the ACF field.', 'ajax-load-more'); ?></p>
63
  </div>
64
  <div class="wrap">
65
  <div class="inner">
66
  <label class="offscreen" for="acf_field_name"><?php _e('Field Type', 'ajax-load-more'); ?>:</label>
67
+ <input type="text" class="alm_element" name="acf_field_name" id="acf_field_name" placeholder="field_name">
68
+ </div>
69
+ </div>
70
+
71
+ <div class="clear"></div>
72
+ <hr>
73
+
74
+ <div class="section-title">
75
+ <h4><?php _e('Parent Field Name', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('This option is only relevant when trying to access content in sub fields.','ajax-load-more'); ?>"></a></h4>
76
+ <p>
77
+ <?php _e('If this a nested ACF <a href="https://www.advancedcustomfields.com/resources/get_sub_field/" target="_blank">sub_field</a>, enter the parent field names.', 'ajax-load-more'); ?>
78
+ <br/><small><?php _e('Access fields up to the three levels deep by colon separating the field names.', 'ajax-load-more'); ?><br/>e.g. top_parent:second_level</small>
79
+ </p>
80
+ </div>
81
+ <div class="wrap">
82
+ <div class="inner">
83
+ <label class="offscreen" for="acf_parent_field_name"><?php _e('Field Name', 'ajax-load-more'); ?>:</label>
84
+ <input type="text" class="alm_element" name="acf_parent_field_name" id="acf_parent_field_name" placeholder="top_parent:second_level">
85
  </div>
86
  </div>
87
  </div>
admin/shortcode-builder/js/shortcode-builder.js CHANGED
@@ -208,7 +208,8 @@ jQuery(document).ready(function($) {
208
 
209
  var acf_post_id = $('#acf_post_id').val(),
210
  acf_field_type = $('#acf_field_type').val(),
211
- acf_field_name = $('#acf_field_name').val();
 
212
 
213
  $('.acf-options').slideDown(250, 'alm_easeInOutQuad');
214
 
@@ -219,6 +220,10 @@ jQuery(document).ready(function($) {
219
  }
220
  output += ' acf_field_type="'+ acf_field_type +'"';
221
  output += ' acf_field_name="'+ acf_field_name +'"';
 
 
 
 
222
  }
223
 
224
  }else{
208
 
209
  var acf_post_id = $('#acf_post_id').val(),
210
  acf_field_type = $('#acf_field_type').val(),
211
+ acf_field_name = $('#acf_field_name').val(),
212
+ acf_parent_field_name = $('#acf_parent_field_name').val();
213
 
214
  $('.acf-options').slideDown(250, 'alm_easeInOutQuad');
215
 
220
  }
221
  output += ' acf_field_type="'+ acf_field_type +'"';
222
  output += ' acf_field_name="'+ acf_field_name +'"';
223
+
224
+ if(acf_parent_field_name){
225
+ output += ' acf_parent_field_name="'+ acf_parent_field_name +'"';
226
+ }
227
  }
228
 
229
  }else{
ajax-load-more.php CHANGED
@@ -6,15 +6,15 @@ Description: The ultimate solution to add infinite scroll functionality to your
6
  Text Domain: ajax-load-more
7
  Author: Darren Cooney
8
  Twitter: @KaptonKaos
9
- Author URI: https://connekthq.com
10
- Version: 5.1.5
11
  License: GPL
12
  Copyright: Darren Cooney & Connekt Media
13
  */
14
 
15
 
16
- define('ALM_VERSION', '5.1.5');
17
- define('ALM_RELEASE', 'October 1, 2019');
18
  define('ALM_STORE_URL', 'https://connekthq.com');
19
 
20
 
@@ -27,7 +27,7 @@ define('ALM_STORE_URL', 'https://connekthq.com');
27
  */
28
 
29
  function alm_install($network_wide) {
30
-
31
  global $wpdb;
32
  add_option( "alm_version", ALM_VERSION ); // Add to WP Option tbl
33
  if ( is_multisite() && $network_wide ) {
@@ -41,7 +41,7 @@ function alm_install($network_wide) {
41
  } else {
42
  alm_create_table();
43
  }
44
-
45
  }
46
  register_activation_hook( __FILE__, 'alm_install' );
47
  add_action( 'wpmu_new_blog', 'alm_install' );
@@ -73,7 +73,7 @@ function alm_create_table(){
73
  $w = fwrite($tmp, $defaultRepeater);
74
  fclose($tmp);
75
  }
76
-
77
  // Exit if Repeater Templates are disbaled, we don't want to create the table
78
  if( defined('ALM_DISABLE_REPEATER_TEMPLATES') && ALM_DISABLE_REPEATER_TEMPLATES ){
79
  return false;
@@ -94,7 +94,7 @@ function alm_create_table(){
94
  // Insert the default data in created table
95
  $wpdb->insert($table_name , array('name' => 'default', 'repeaterDefault' => $defaultRepeater, 'repeaterType' => 'default', 'pluginVersion' => ALM_VERSION));
96
  }
97
-
98
  }
99
 
100
 
@@ -122,7 +122,7 @@ if( !class_exists('AjaxLoadMore') ):
122
 
123
  $this->alm_define_constants();
124
  $this->alm_includes();
125
-
126
  add_action( 'wp_ajax_alm_get_posts', array(&$this, 'alm_query_posts') );
127
  add_action( 'wp_ajax_nopriv_alm_get_posts', array(&$this, 'alm_query_posts') );
128
  add_action( 'wp_enqueue_scripts', array(&$this, 'alm_enqueue_scripts') );
@@ -168,7 +168,7 @@ if( !class_exists('AjaxLoadMore') ):
168
  if (!defined('ALM_PREV_POST_ITEM_NAME')) define('ALM_PREV_POST_ITEM_NAME', '9686');
169
  if (!defined('ALM_RESTAPI_ITEM_NAME')) define('ALM_RESTAPI_ITEM_NAME', '17105'); // Deprecated
170
  if (!defined('ALM_SEO_ITEM_NAME')) define('ALM_SEO_ITEM_NAME', '3482');
171
- if (!defined('ALM_TABS_ITEM_NAME')) define('ALM_TABS_ITEM_NAME', '54855');
172
  if (!defined('ALM_THEME_REPEATERS_ITEM_NAME')) define('ALM_THEME_REPEATERS_ITEM_NAME', '8860');
173
  if (!defined('ALM_USERS_ITEM_NAME')) define('ALM_USERS_ITEM_NAME', '32311');
174
  if (!defined('ALM_PRO_ITEM_NAME')) define('ALM_PRO_ITEM_NAME', '42166');
@@ -261,9 +261,8 @@ if( !class_exists('AjaxLoadMore') ):
261
  *
262
  * @since 2.0.0
263
  */
264
-
265
  public function alm_includes(){
266
-
267
  include_once( ALM_PATH . 'core/functions.php'); // Load Core Functions
268
  include_once( ALM_PATH . 'core/classes/class.alm-shortcode.php'); // Load Shortcode Class
269
  include_once( ALM_PATH . 'core/classes/class.alm-enqueue.php'); // Load Enqueue Class
@@ -279,7 +278,7 @@ if( !class_exists('AjaxLoadMore') ):
279
  include( dirname( __FILE__ ) . '/vendor/EDD_SL_Plugin_Updater.php' );
280
  }
281
  }
282
-
283
  }
284
 
285
 
@@ -369,7 +368,7 @@ if( !class_exists('AjaxLoadMore') ):
369
 
370
  // Callback Helpers
371
  wp_register_script( 'ajax-load-more-legacy-callbacks', plugins_url( '/vendor/js/alm/legacy-callbacks.js', __FILE__ ), 'jquery', '', false);
372
-
373
 
374
  // Core CSS
375
  if( !alm_do_inline_css('_alm_inline_css') && !alm_css_disabled('_alm_disable_css')){ // Not inline or disabled
@@ -379,8 +378,8 @@ if( !class_exists('AjaxLoadMore') ):
379
 
380
  // Prevent loading of unnessasry posts - move user to top of page
381
  $scrolltop = (!isset($options['_alm_scroll_top']) || $options['_alm_scroll_top'] != '1') ? 'false' : 'true';
382
-
383
-
384
  // Localized JS variables
385
  wp_localize_script(
386
  'ajax-load-more',
@@ -393,10 +392,11 @@ if( !class_exists('AjaxLoadMore') ):
393
  'speed' => apply_filters('alm_speed', 200),
394
  'ga_debug' => apply_filters('alm_ga_debug', 'false'),
395
  'results_text' => apply_filters('alm_display_results', __('Displaying page {num} of {total}.', 'ajax-load-more')),
396
- 'no_results_text' => apply_filters('alm_no_results_text', __('No results found.', 'ajax-load-more'))
 
397
  )
398
  );
399
-
400
  }
401
 
402
 
@@ -424,57 +424,57 @@ if( !class_exists('AjaxLoadMore') ):
424
  public static function alm_return_shortcode_atts(){
425
  return self::$shortcode_atts;
426
  }
427
-
428
-
429
-
430
  /**
431
  * alm_query_posts
432
  * Core Ajax Load More Query
433
  *
434
  * @since 2.0.0
435
- */
436
- public function alm_query_posts() {
437
-
438
  // WPML fix for category/tag/taxonomy archives
439
  if ( (isset( $_GET['category'] ) && $_GET['category']) || (isset($_GET['taxonomy']) && $_GET['taxonomy']) || (isset($_GET['tag']) && $_GET['tag']) ) {
440
  unset($_REQUEST['post_id']);
441
  }
442
-
443
  $id = (isset($_GET['id'])) ? $_GET['id'] : '';
444
  $post_id = (isset($_GET['post_id'])) ? $_GET['post_id'] : '';
445
  $slug = (isset($_GET['slug'])) ? $_GET['slug'] : '';
446
  $canonical_url = (isset($_GET['canonical_url'])) ? esc_url($_GET['canonical_url']) : esc_url($_SERVER['HTTP_REFERER']);
447
-
448
-
449
  // Ajax Query Type
450
  $queryType = (isset($_GET['query_type'])) ? $_GET['query_type'] : 'standard'; // 'standard' or 'totalposts'; totalposts returns $alm_found_posts
451
-
452
-
453
  // Cache
454
  $cache_id = (isset($_GET['cache_id'])) ? $_GET['cache_id'] : '';
455
  $cache_logged_in = (isset($_GET['cache_logged_in'])) ? $_GET['cache_logged_in'] : false;
456
  $do_create_cache = ($cache_logged_in === 'true' && is_user_logged_in()) ? false : true;
457
-
458
-
459
  // Offset
460
  $offset = (isset($_GET['offset'])) ? $_GET['offset'] : 0;
461
-
462
-
463
  // Repeater Templates
464
  $repeater = (isset($_GET['repeater'])) ? $_GET['repeater'] : 'default';
465
  $type = alm_get_repeater_type($repeater);
466
  $theme_repeater = (isset($_GET['theme_repeater'])) ? $_GET['theme_repeater'] : 'null';
467
-
468
-
469
  // Post Type
470
  $postType = (isset($_GET['post_type'])) ? $_GET['post_type'] : 'post';
471
-
472
-
473
  // Page Parameters
474
  $posts_per_page = (isset($_GET['posts_per_page'])) ? $_GET['posts_per_page'] : 5;
475
  $page = (isset($_GET['page'])) ? $_GET['page'] : 0;
476
-
477
-
478
  // Advanced Custom Fields
479
  $acfData = (isset($_GET['acf'])) ? $_GET['acf'] : false;
480
  if($acfData){
@@ -483,12 +483,12 @@ if( !class_exists('AjaxLoadMore') ):
483
  $acf_field_type = (isset($acfData['field_type'])) ? $acfData['field_type'] : ''; // ACF Field Type
484
  $acf_field_name = (isset($acfData['field_name'])) ? $acfData['field_name'] : ''; // ACF Field Type
485
  }
486
-
487
-
488
  // Paging Add-on
489
  $paging = (isset($_GET['paging'])) ? $_GET['paging'] : 'false';
490
-
491
-
492
  // Preload Add-on
493
  $preloaded = (isset($_GET['preloaded'])) ? $_GET['preloaded'] : 'false';
494
  $preloaded_amount = (isset($_GET['preloaded_amount'])) ? $_GET['preloaded_amount'] : '5';
@@ -497,8 +497,8 @@ if( !class_exists('AjaxLoadMore') ):
497
  $old_offset = $preloaded_amount;
498
  $offset = $offset + $preloaded_amount;
499
  }
500
-
501
-
502
  // CTA Add-on
503
  $cta = false;
504
  $ctaData = (isset($_GET['cta'])) ? $_GET['cta'] : false;
@@ -512,8 +512,8 @@ if( !class_exists('AjaxLoadMore') ):
512
  $cta_repeater = (isset($ctaData['cta_repeater'])) ? $ctaData['cta_repeater'] : 'null';
513
  $cta_theme_repeater = (isset($ctaData['cta_theme_repeater'])) ? $ctaData['cta_theme_repeater'] : 'null';
514
  }
515
-
516
-
517
  // Single Post Add-on
518
  $single_post = false;
519
  $single_post_data = (isset($_GET['single_post'])) ? $_GET['single_post'] : false;
@@ -522,22 +522,22 @@ if( !class_exists('AjaxLoadMore') ):
522
  $single_post_id = (isset($single_post_data['id'])) ? $single_post_data['id'] : '';
523
  $single_post_slug = (isset($single_post_data['slug'])) ? $single_post_data['slug'] : '';
524
  }
525
-
526
-
527
  // SEO Add-on
528
  $seo_start_page = (isset($_GET['seo_start_page'])) ? $_GET['seo_start_page'] : 1;
529
-
530
-
531
  // Set up initial WP_Query $args
532
- $args = ALM_QUERY_ARGS::alm_build_queryargs($_GET, true);
533
  $args['paged'] = (get_query_var('paged')) ? get_query_var('paged') : 1;
534
  $args['offset'] = $offset + ($posts_per_page*$page);
535
-
536
-
537
  // Get current page number for determining item number
538
  $alm_page_count = ($page == 0) ? 1 : $page + 1;
539
-
540
-
541
  /*
542
  * alm_single_post_args
543
  *
@@ -547,9 +547,9 @@ if( !class_exists('AjaxLoadMore') ):
547
  * @return $args;
548
  */
549
  $args = ($single_post && has_action('alm_single_post_installed')) ? apply_filters('alm_single_post_args', $single_post_id, $postType) : $args;
550
-
551
-
552
-
553
  /*
554
  * alm_modify_query_args
555
  *
@@ -559,9 +559,9 @@ if( !class_exists('AjaxLoadMore') ):
559
  * Deprecated 2.10
560
  */
561
  $args = apply_filters('alm_modify_query_args', $args, $slug); // ALM Core Filter Hook
562
-
563
-
564
-
565
  /*
566
  * alm_query_args_{id}
567
  *
@@ -570,25 +570,25 @@ if( !class_exists('AjaxLoadMore') ):
570
  * @return $args;
571
  */
572
  $args = apply_filters('alm_query_args_'.$id, $args, $post_id); // ALM Core Filter Hook
573
-
574
-
575
-
576
  /*
577
  * Set custom `alm_action` parameter in the WP_Query
578
  * Value is accessed elsewhere for filters & hooks etc.
579
- */
580
  $args['alm_query'] = ($single_post) ? 'single_posts' : 'alm';
581
-
582
-
583
-
584
  /*
585
  * WP_Query || ALM Query
586
  *
587
  * @return $alm_query;
588
  */
589
  $alm_query = new WP_Query( $args );
590
-
591
-
592
  // If preloaded, update our loop count and total posts
593
  if(has_action('alm_preload_installed') && $preloaded === 'true'){
594
  $alm_total_posts = $alm_query->found_posts - $offset + $preloaded_amount;
@@ -600,9 +600,9 @@ if( !class_exists('AjaxLoadMore') ):
600
  $alm_total_posts = $alm_query->found_posts - $offset;
601
  $alm_loop_count = 0;
602
  }
603
-
604
-
605
-
606
  /*
607
  * alm_cache_create_dir
608
  *
@@ -613,41 +613,50 @@ if( !class_exists('AjaxLoadMore') ):
613
  */
614
  if(!empty($cache_id) && has_action('alm_cache_create_dir') && $do_create_cache){
615
  apply_filters('alm_cache_create_dir', $cache_id, $canonical_url);
616
- }
617
-
618
-
619
  if($queryType === 'standard'){
620
-
 
 
 
 
 
 
 
 
 
621
  // Run the loop
622
-
623
  if ($alm_query->have_posts()) {
624
-
625
  $alm_found_posts = $alm_total_posts;
626
  $alm_post_count = $alm_query->post_count;
627
  $alm_current = 0;
628
  $alm_has_cta = false;
629
-
630
  $cta_array = Array();
631
  if($cta && has_action('alm_cta_pos_array')){ // Build CTA Position Array
632
  $cta_array = apply_filters('alm_cta_pos_array', $seo_start_page, $page, $posts_per_page, $alm_post_count, $cta_val, $paging);
633
  }
634
-
635
  ob_start();
636
-
637
  // ALM Loop
638
  while ($alm_query->have_posts()): $alm_query->the_post();
639
-
640
  $alm_loop_count++;
641
  $alm_current++; // Current item in loop
642
  $alm_page = $alm_page_count; // Get page number
643
- $alm_item = ($alm_page_count * $posts_per_page) - $posts_per_page + $alm_loop_count; // Get current item
644
-
645
  // Call to Action [Before]
646
  if($cta && has_action('alm_cta_inc') && $cta_pos === 'before' && in_array($alm_current, $cta_array)){
647
  do_action('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, false);
648
  $alm_has_cta = true;
649
  }
650
-
651
  // Repeater Template
652
  if($theme_repeater != 'null' && has_action('alm_get_theme_repeater')){ // Theme Repeater
653
  do_action('alm_get_theme_repeater', $theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current);
@@ -655,19 +664,19 @@ if( !class_exists('AjaxLoadMore') ):
655
  include(alm_get_current_repeater( $repeater, $type )); // Repeater
656
  }
657
  // End Repeater Template
658
-
659
  // Call to Action [After]
660
  if($cta && has_action('alm_cta_inc') && $cta_pos === 'after' && in_array($alm_current, $cta_array)){
661
  do_action('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, false);
662
  $alm_has_cta = true;
663
  }
664
-
665
  endwhile; wp_reset_query();
666
  // End ALM Loop
667
-
668
  $data = ob_get_clean();
669
-
670
-
671
  /*
672
  * alm_cache_file
673
  *
@@ -688,21 +697,9 @@ if( !class_exists('AjaxLoadMore') ):
688
  // Standard Cache
689
  apply_filters('alm_cache_file', $cache_id, $page, $seo_start_page, $data, $preloaded);
690
  }
691
- }
692
-
693
-
694
-
695
- /*
696
- * alm_debug
697
- *
698
- * ALM Core Filter Hook
699
- *
700
- * @return $alm_query/false;
701
- */
702
- $debug = (apply_filters('alm_debug', false)) ? $alm_query : false;
703
-
704
-
705
- $return = array(
706
  'html' => $data,
707
  'meta' => array(
708
  'postcount' => $alm_post_count,
@@ -711,39 +708,39 @@ if( !class_exists('AjaxLoadMore') ):
711
  )
712
  );
713
  wp_send_json($return);
714
-
715
  } else {
716
-
717
  $return = array(
718
  'html' => null,
719
  'meta' => array(
720
  'postcount' => 0,
721
  'totalposts' => 0,
722
- 'debug' => null
723
  )
724
  );
725
-
726
  wp_send_json($return);
727
-
728
  }
729
-
730
  }
731
-
732
  elseif($queryType === 'totalposts'){ // Paging add-on
733
-
734
  // Paging add-on
735
  wp_send_json(array(
736
  'totalposts' => $alm_total_posts
737
  ));
738
-
739
  }
740
-
741
  wp_die();
742
-
743
- }
744
 
745
  }
746
-
747
 
748
 
749
  /**
@@ -760,9 +757,9 @@ if( !class_exists('AjaxLoadMore') ):
760
  }
761
  return $ajax_load_more;
762
  }
763
-
764
  AjaxLoadMore(); // initialize
765
-
766
-
767
 
768
  endif; // class_exists check
6
  Text Domain: ajax-load-more
7
  Author: Darren Cooney
8
  Twitter: @KaptonKaos
9
+ Author URI: https://connekthq.com
10
+ Version: 5.1.6
11
  License: GPL
12
  Copyright: Darren Cooney & Connekt Media
13
  */
14
 
15
 
16
+ define('ALM_VERSION', '5.1.6');
17
+ define('ALM_RELEASE', 'October 22, 2019');
18
  define('ALM_STORE_URL', 'https://connekthq.com');
19
 
20
 
27
  */
28
 
29
  function alm_install($network_wide) {
30
+
31
  global $wpdb;
32
  add_option( "alm_version", ALM_VERSION ); // Add to WP Option tbl
33
  if ( is_multisite() && $network_wide ) {
41
  } else {
42
  alm_create_table();
43
  }
44
+
45
  }
46
  register_activation_hook( __FILE__, 'alm_install' );
47
  add_action( 'wpmu_new_blog', 'alm_install' );
73
  $w = fwrite($tmp, $defaultRepeater);
74
  fclose($tmp);
75
  }
76
+
77
  // Exit if Repeater Templates are disbaled, we don't want to create the table
78
  if( defined('ALM_DISABLE_REPEATER_TEMPLATES') && ALM_DISABLE_REPEATER_TEMPLATES ){
79
  return false;
94
  // Insert the default data in created table
95
  $wpdb->insert($table_name , array('name' => 'default', 'repeaterDefault' => $defaultRepeater, 'repeaterType' => 'default', 'pluginVersion' => ALM_VERSION));
96
  }
97
+
98
  }
99
 
100
 
122
 
123
  $this->alm_define_constants();
124
  $this->alm_includes();
125
+
126
  add_action( 'wp_ajax_alm_get_posts', array(&$this, 'alm_query_posts') );
127
  add_action( 'wp_ajax_nopriv_alm_get_posts', array(&$this, 'alm_query_posts') );
128
  add_action( 'wp_enqueue_scripts', array(&$this, 'alm_enqueue_scripts') );
168
  if (!defined('ALM_PREV_POST_ITEM_NAME')) define('ALM_PREV_POST_ITEM_NAME', '9686');
169
  if (!defined('ALM_RESTAPI_ITEM_NAME')) define('ALM_RESTAPI_ITEM_NAME', '17105'); // Deprecated
170
  if (!defined('ALM_SEO_ITEM_NAME')) define('ALM_SEO_ITEM_NAME', '3482');
171
+ if (!defined('ALM_TABS_ITEM_NAME')) define('ALM_TABS_ITEM_NAME', '54855');
172
  if (!defined('ALM_THEME_REPEATERS_ITEM_NAME')) define('ALM_THEME_REPEATERS_ITEM_NAME', '8860');
173
  if (!defined('ALM_USERS_ITEM_NAME')) define('ALM_USERS_ITEM_NAME', '32311');
174
  if (!defined('ALM_PRO_ITEM_NAME')) define('ALM_PRO_ITEM_NAME', '42166');
261
  *
262
  * @since 2.0.0
263
  */
 
264
  public function alm_includes(){
265
+
266
  include_once( ALM_PATH . 'core/functions.php'); // Load Core Functions
267
  include_once( ALM_PATH . 'core/classes/class.alm-shortcode.php'); // Load Shortcode Class
268
  include_once( ALM_PATH . 'core/classes/class.alm-enqueue.php'); // Load Enqueue Class
278
  include( dirname( __FILE__ ) . '/vendor/EDD_SL_Plugin_Updater.php' );
279
  }
280
  }
281
+
282
  }
283
 
284
 
368
 
369
  // Callback Helpers
370
  wp_register_script( 'ajax-load-more-legacy-callbacks', plugins_url( '/vendor/js/alm/legacy-callbacks.js', __FILE__ ), 'jquery', '', false);
371
+
372
 
373
  // Core CSS
374
  if( !alm_do_inline_css('_alm_inline_css') && !alm_css_disabled('_alm_disable_css')){ // Not inline or disabled
378
 
379
  // Prevent loading of unnessasry posts - move user to top of page
380
  $scrolltop = (!isset($options['_alm_scroll_top']) || $options['_alm_scroll_top'] != '1') ? 'false' : 'true';
381
+
382
+
383
  // Localized JS variables
384
  wp_localize_script(
385
  'ajax-load-more',
392
  'speed' => apply_filters('alm_speed', 200),
393
  'ga_debug' => apply_filters('alm_ga_debug', 'false'),
394
  'results_text' => apply_filters('alm_display_results', __('Displaying page {num} of {total}.', 'ajax-load-more')),
395
+ 'no_results_text' => apply_filters('alm_no_results_text', __('No results found.', 'ajax-load-more')),
396
+ 'alm_debug' => apply_filters('alm_debug', false)
397
  )
398
  );
399
+
400
  }
401
 
402
 
424
  public static function alm_return_shortcode_atts(){
425
  return self::$shortcode_atts;
426
  }
427
+
428
+
429
+
430
  /**
431
  * alm_query_posts
432
  * Core Ajax Load More Query
433
  *
434
  * @since 2.0.0
435
+ */
436
+ public function alm_query_posts() {
437
+
438
  // WPML fix for category/tag/taxonomy archives
439
  if ( (isset( $_GET['category'] ) && $_GET['category']) || (isset($_GET['taxonomy']) && $_GET['taxonomy']) || (isset($_GET['tag']) && $_GET['tag']) ) {
440
  unset($_REQUEST['post_id']);
441
  }
442
+
443
  $id = (isset($_GET['id'])) ? $_GET['id'] : '';
444
  $post_id = (isset($_GET['post_id'])) ? $_GET['post_id'] : '';
445
  $slug = (isset($_GET['slug'])) ? $_GET['slug'] : '';
446
  $canonical_url = (isset($_GET['canonical_url'])) ? esc_url($_GET['canonical_url']) : esc_url($_SERVER['HTTP_REFERER']);
447
+
448
+
449
  // Ajax Query Type
450
  $queryType = (isset($_GET['query_type'])) ? $_GET['query_type'] : 'standard'; // 'standard' or 'totalposts'; totalposts returns $alm_found_posts
451
+
452
+
453
  // Cache
454
  $cache_id = (isset($_GET['cache_id'])) ? $_GET['cache_id'] : '';
455
  $cache_logged_in = (isset($_GET['cache_logged_in'])) ? $_GET['cache_logged_in'] : false;
456
  $do_create_cache = ($cache_logged_in === 'true' && is_user_logged_in()) ? false : true;
457
+
458
+
459
  // Offset
460
  $offset = (isset($_GET['offset'])) ? $_GET['offset'] : 0;
461
+
462
+
463
  // Repeater Templates
464
  $repeater = (isset($_GET['repeater'])) ? $_GET['repeater'] : 'default';
465
  $type = alm_get_repeater_type($repeater);
466
  $theme_repeater = (isset($_GET['theme_repeater'])) ? $_GET['theme_repeater'] : 'null';
467
+
468
+
469
  // Post Type
470
  $postType = (isset($_GET['post_type'])) ? $_GET['post_type'] : 'post';
471
+
472
+
473
  // Page Parameters
474
  $posts_per_page = (isset($_GET['posts_per_page'])) ? $_GET['posts_per_page'] : 5;
475
  $page = (isset($_GET['page'])) ? $_GET['page'] : 0;
476
+
477
+
478
  // Advanced Custom Fields
479
  $acfData = (isset($_GET['acf'])) ? $_GET['acf'] : false;
480
  if($acfData){
483
  $acf_field_type = (isset($acfData['field_type'])) ? $acfData['field_type'] : ''; // ACF Field Type
484
  $acf_field_name = (isset($acfData['field_name'])) ? $acfData['field_name'] : ''; // ACF Field Type
485
  }
486
+
487
+
488
  // Paging Add-on
489
  $paging = (isset($_GET['paging'])) ? $_GET['paging'] : 'false';
490
+
491
+
492
  // Preload Add-on
493
  $preloaded = (isset($_GET['preloaded'])) ? $_GET['preloaded'] : 'false';
494
  $preloaded_amount = (isset($_GET['preloaded_amount'])) ? $_GET['preloaded_amount'] : '5';
497
  $old_offset = $preloaded_amount;
498
  $offset = $offset + $preloaded_amount;
499
  }
500
+
501
+
502
  // CTA Add-on
503
  $cta = false;
504
  $ctaData = (isset($_GET['cta'])) ? $_GET['cta'] : false;
512
  $cta_repeater = (isset($ctaData['cta_repeater'])) ? $ctaData['cta_repeater'] : 'null';
513
  $cta_theme_repeater = (isset($ctaData['cta_theme_repeater'])) ? $ctaData['cta_theme_repeater'] : 'null';
514
  }
515
+
516
+
517
  // Single Post Add-on
518
  $single_post = false;
519
  $single_post_data = (isset($_GET['single_post'])) ? $_GET['single_post'] : false;
522
  $single_post_id = (isset($single_post_data['id'])) ? $single_post_data['id'] : '';
523
  $single_post_slug = (isset($single_post_data['slug'])) ? $single_post_data['slug'] : '';
524
  }
525
+
526
+
527
  // SEO Add-on
528
  $seo_start_page = (isset($_GET['seo_start_page'])) ? $_GET['seo_start_page'] : 1;
529
+
530
+
531
  // Set up initial WP_Query $args
532
+ $args = ALM_QUERY_ARGS::alm_build_queryargs($_GET, true);
533
  $args['paged'] = (get_query_var('paged')) ? get_query_var('paged') : 1;
534
  $args['offset'] = $offset + ($posts_per_page*$page);
535
+
536
+
537
  // Get current page number for determining item number
538
  $alm_page_count = ($page == 0) ? 1 : $page + 1;
539
+
540
+
541
  /*
542
  * alm_single_post_args
543
  *
547
  * @return $args;
548
  */
549
  $args = ($single_post && has_action('alm_single_post_installed')) ? apply_filters('alm_single_post_args', $single_post_id, $postType) : $args;
550
+
551
+
552
+
553
  /*
554
  * alm_modify_query_args
555
  *
559
  * Deprecated 2.10
560
  */
561
  $args = apply_filters('alm_modify_query_args', $args, $slug); // ALM Core Filter Hook
562
+
563
+
564
+
565
  /*
566
  * alm_query_args_{id}
567
  *
570
  * @return $args;
571
  */
572
  $args = apply_filters('alm_query_args_'.$id, $args, $post_id); // ALM Core Filter Hook
573
+
574
+
575
+
576
  /*
577
  * Set custom `alm_action` parameter in the WP_Query
578
  * Value is accessed elsewhere for filters & hooks etc.
579
+ */
580
  $args['alm_query'] = ($single_post) ? 'single_posts' : 'alm';
581
+
582
+
583
+
584
  /*
585
  * WP_Query || ALM Query
586
  *
587
  * @return $alm_query;
588
  */
589
  $alm_query = new WP_Query( $args );
590
+
591
+
592
  // If preloaded, update our loop count and total posts
593
  if(has_action('alm_preload_installed') && $preloaded === 'true'){
594
  $alm_total_posts = $alm_query->found_posts - $offset + $preloaded_amount;
600
  $alm_total_posts = $alm_query->found_posts - $offset;
601
  $alm_loop_count = 0;
602
  }
603
+
604
+
605
+
606
  /*
607
  * alm_cache_create_dir
608
  *
613
  */
614
  if(!empty($cache_id) && has_action('alm_cache_create_dir') && $do_create_cache){
615
  apply_filters('alm_cache_create_dir', $cache_id, $canonical_url);
616
+ }
617
+
618
+
619
  if($queryType === 'standard'){
620
+
621
+ /*
622
+ * alm_debug
623
+ *
624
+ * ALM Core Filter Hook
625
+ *
626
+ * @return $alm_query/false;
627
+ */
628
+ $debug = (apply_filters('alm_debug', false)) ? $args : false;
629
+
630
  // Run the loop
631
+
632
  if ($alm_query->have_posts()) {
633
+
634
  $alm_found_posts = $alm_total_posts;
635
  $alm_post_count = $alm_query->post_count;
636
  $alm_current = 0;
637
  $alm_has_cta = false;
638
+
639
  $cta_array = Array();
640
  if($cta && has_action('alm_cta_pos_array')){ // Build CTA Position Array
641
  $cta_array = apply_filters('alm_cta_pos_array', $seo_start_page, $page, $posts_per_page, $alm_post_count, $cta_val, $paging);
642
  }
643
+
644
  ob_start();
645
+
646
  // ALM Loop
647
  while ($alm_query->have_posts()): $alm_query->the_post();
648
+
649
  $alm_loop_count++;
650
  $alm_current++; // Current item in loop
651
  $alm_page = $alm_page_count; // Get page number
652
+ $alm_item = ($alm_page_count * $posts_per_page) - $posts_per_page + $alm_loop_count; // Get current item
653
+
654
  // Call to Action [Before]
655
  if($cta && has_action('alm_cta_inc') && $cta_pos === 'before' && in_array($alm_current, $cta_array)){
656
  do_action('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, false);
657
  $alm_has_cta = true;
658
  }
659
+
660
  // Repeater Template
661
  if($theme_repeater != 'null' && has_action('alm_get_theme_repeater')){ // Theme Repeater
662
  do_action('alm_get_theme_repeater', $theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current);
664
  include(alm_get_current_repeater( $repeater, $type )); // Repeater
665
  }
666
  // End Repeater Template
667
+
668
  // Call to Action [After]
669
  if($cta && has_action('alm_cta_inc') && $cta_pos === 'after' && in_array($alm_current, $cta_array)){
670
  do_action('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, false);
671
  $alm_has_cta = true;
672
  }
673
+
674
  endwhile; wp_reset_query();
675
  // End ALM Loop
676
+
677
  $data = ob_get_clean();
678
+
679
+
680
  /*
681
  * alm_cache_file
682
  *
697
  // Standard Cache
698
  apply_filters('alm_cache_file', $cache_id, $page, $seo_start_page, $data, $preloaded);
699
  }
700
+ }
701
+
702
+ $return = array(
 
 
 
 
 
 
 
 
 
 
 
 
703
  'html' => $data,
704
  'meta' => array(
705
  'postcount' => $alm_post_count,
708
  )
709
  );
710
  wp_send_json($return);
711
+
712
  } else {
713
+
714
  $return = array(
715
  'html' => null,
716
  'meta' => array(
717
  'postcount' => 0,
718
  'totalposts' => 0,
719
+ 'debug' => $debug
720
  )
721
  );
722
+
723
  wp_send_json($return);
724
+
725
  }
726
+
727
  }
728
+
729
  elseif($queryType === 'totalposts'){ // Paging add-on
730
+
731
  // Paging add-on
732
  wp_send_json(array(
733
  'totalposts' => $alm_total_posts
734
  ));
735
+
736
  }
737
+
738
  wp_die();
739
+
740
+ }
741
 
742
  }
743
+
744
 
745
 
746
  /**
757
  }
758
  return $ajax_load_more;
759
  }
760
+
761
  AjaxLoadMore(); // initialize
762
+
763
+
764
 
765
  endif; // class_exists check
core/classes/class.alm-queryargs.php CHANGED
@@ -72,17 +72,15 @@ if(!class_exists('ALM_QUERY_ARGS')):
72
  // Custom Fields
73
  $meta_key = (isset($a['meta_key'])) ? $a['meta_key'] : '';
74
  $meta_value = (isset($a['meta_value'])) ? $a['meta_value'] : '';
75
- $meta_compare = (isset($a['meta_compare'])) ? $a['meta_compare'] : '';
76
- if(empty($meta_compare))
77
- $meta_compare = 'IN';
78
- if($meta_compare === 'lessthan') $meta_compare = '<'; // do_shortcode fix (shortcode was rendering as HTML)
79
- if($meta_compare === 'lessthanequalto') $meta_compare = '<='; // do_shortcode fix (shortcode was rendering as HTML)
80
- $meta_relation = (isset($a['meta_relation'])) ? $a['meta_relation'] : '';
81
- if(empty($meta_relation))
82
- $meta_relation = 'AND';
83
  $meta_type = (isset($a['meta_type'])) ? $a['meta_type'] : '';
84
- if(empty($meta_type))
85
- $meta_type = 'CHAR';
 
 
86
 
87
  // Search
88
  $s = (isset($a['search'])) ? $a['search'] : '';
@@ -131,8 +129,9 @@ if(!class_exists('ALM_QUERY_ARGS')):
131
  $acf = (isset($a['acf'])) ? true : false;
132
  if($acf){
133
  $acf_post_id = (isset($a['acf']['post_id'])) ? $a['acf']['post_id'] : ''; // Post ID
134
- $acf_field_type = (isset($a['acf']['field_type'])) ? $a['acf']['field_type'] : ''; // ACF Field Type
135
- $acf_field_name = (isset($a['acf']['field_name'])) ? $a['acf']['field_name'] : ''; // ACF Field Type
 
136
  }
137
 
138
  } else {
@@ -140,8 +139,9 @@ if(!class_exists('ALM_QUERY_ARGS')):
140
  if(isset($a['acf'])){
141
  if($a['acf'] === 'true'){
142
  $acf_post_id = (isset($a['acf_post_id'])) ? $a['acf_post_id'] : ''; // Post ID
143
- $acf_field_type = (isset($a['acf_field_type'])) ? $a['acf_field_type'] : ''; // ACF Field Type
144
- $acf_field_name = (isset($a['acf_field_name'])) ? $a['acf_field_name'] : ''; // ACF Field Type
 
145
  }
146
  }
147
  }
@@ -373,22 +373,28 @@ if(!class_exists('ALM_QUERY_ARGS')):
373
  // Advanced Custom Fields
374
  if(!empty($acf_field_type) && !empty($acf_field_name) && function_exists('get_field')){
375
  if($acf_field_type === 'relationship'){ // Relationship Field
376
- if(empty($acf_post_id)){
377
- $acf_post_id = $post_id;
378
- }
379
- $acf_post_ids = get_field($acf_field_name, $acf_post_id); // Get field value from ACF
380
- if($acf_post_ids){
381
- $args['post__in'] = $acf_post_ids;
382
  } else {
383
- $args['post__in'] = array(0);
384
- }
 
 
 
 
 
385
  }
386
- }
387
-
 
 
 
388
  return $args;
389
 
390
- }
391
-
392
- }
393
-
394
  endif;
72
  // Custom Fields
73
  $meta_key = (isset($a['meta_key'])) ? $a['meta_key'] : '';
74
  $meta_value = (isset($a['meta_value'])) ? $a['meta_value'] : '';
75
+
76
+ $meta_compare = (isset($a['meta_compare'])) ? $a['meta_compare'] : '';
77
+ $meta_compare = (empty($meta_compare)) ? 'IN' : $meta_compare;
78
+
 
 
 
 
79
  $meta_type = (isset($a['meta_type'])) ? $a['meta_type'] : '';
80
+ $meta_type = (empty($meta_type)) ? 'CHAR' : $meta_type;
81
+
82
+ $meta_relation = (isset($a['meta_relation'])) ? $a['meta_relation'] : '';
83
+ $meta_relation = (empty($meta_relation)) ? 'AND' : $meta_relation;
84
 
85
  // Search
86
  $s = (isset($a['search'])) ? $a['search'] : '';
129
  $acf = (isset($a['acf'])) ? true : false;
130
  if($acf){
131
  $acf_post_id = (isset($a['acf']['post_id'])) ? $a['acf']['post_id'] : ''; // Post ID
132
+ $acf_field_type = (isset($a['acf']['field_type'])) ? $a['acf']['field_type'] : ''; // Field Type
133
+ $acf_field_name = (isset($a['acf']['field_name'])) ? $a['acf']['field_name'] : ''; // Field Name
134
+ $acf_parent_field_name = (isset($a['acf']['parent_field_name'])) ? $a['acf']['parent_field_name'] : ''; // Parent Field Name
135
  }
136
 
137
  } else {
139
  if(isset($a['acf'])){
140
  if($a['acf'] === 'true'){
141
  $acf_post_id = (isset($a['acf_post_id'])) ? $a['acf_post_id'] : ''; // Post ID
142
+ $acf_field_type = (isset($a['acf_field_type'])) ? $a['acf_field_type'] : ''; // Field Type
143
+ $acf_field_name = (isset($a['acf_field_name'])) ? $a['acf_field_name'] : ''; // Field Name
144
+ $acf_parent_field_name = (isset($a['acf_parent_field_name'])) ? $a['acf_parent_field_name'] : ''; // Parent Field Name
145
  }
146
  }
147
  }
373
  // Advanced Custom Fields
374
  if(!empty($acf_field_type) && !empty($acf_field_name) && function_exists('get_field')){
375
  if($acf_field_type === 'relationship'){ // Relationship Field
376
+ $acf_post_id = (empty($acf_post_id)) ? $post_id : $acf_post_id;
377
+ $acf_post_ids = [];
378
+
379
+ if(empty($acf_parent_field_name)){
380
+ // Get field value from ACF
381
+ $acf_post_ids = get_field($acf_field_name, $acf_post_id);
382
  } else {
383
+ // Call function in ACF extension
384
+ if(function_exists('alm_acf_loop_gallery_rows')){
385
+ // Sub Fields
386
+ $acf_post_ids = alm_acf_loop_relationship_rows($acf_parent_field_name, $acf_field_name, $acf_post_id);
387
+ }
388
+ }
389
+ $args['post__in'] = ($acf_post_ids) ? $acf_post_ids : array(0);
390
  }
391
+ }
392
+
393
+ //alm_pretty_print($args);
394
+
395
+ // Return $args
396
  return $args;
397
 
398
+ }
399
+ }
 
 
400
  endif;
core/classes/class.alm-shortcode.php CHANGED
@@ -29,16 +29,16 @@ if( !class_exists('ALM_SHORTCODE') ):
29
  */
30
 
31
  public static function alm_render_shortcode($atts){
32
-
33
-
34
  // Get global $post obj
35
  global $post;
36
 
37
 
38
  // Get ALM options
39
  $options = get_option( 'alm_settings' );
40
-
41
-
42
  /*
43
  * alm_settings
44
  * Override default ALM Settings
@@ -48,8 +48,8 @@ if( !class_exists('ALM_SHORTCODE') ):
48
  * @return $options;
49
  */
50
  $options = (has_filter('alm_settings')) ? apply_filters('alm_settings', $options) : $options;
51
-
52
-
53
  // Add count
54
  self::$counter++;
55
 
@@ -62,10 +62,10 @@ if( !class_exists('ALM_SHORTCODE') ):
62
  // Custom CSS for Layouts - Only run this once.
63
  if(has_action('alm_layouts_custom_css')){
64
  do_action('alm_layouts_custom_css', self::$counter);
65
- }
66
-
67
-
68
-
69
  /*
70
  * alm_shortcode_defaults
71
  * Set default shortcode values that can be over written via shortcode atts
@@ -74,13 +74,13 @@ if( !class_exists('ALM_SHORTCODE') ):
74
  *
75
  * @return $atts;
76
  */
77
- $default_atts = apply_filters('alm_shortcode_defaults', '');
78
-
79
  // Merge arrays. Allows for defaults to be overwritten by the actual shortcode.
80
  $atts = ($default_atts) ? array_merge($default_atts, $atts) : $atts;
81
-
82
-
83
-
84
  // Extact shortcode arrtibutes
85
  extract(shortcode_atts(array(
86
  'nested' => false,
@@ -98,6 +98,7 @@ if( !class_exists('ALM_SHORTCODE') ):
98
  'acf_post_id' => '',
99
  'acf_field_type' => 'repeater',
100
  'acf_field_name' => '',
 
101
  'restapi' => false,
102
  'restapi_base' => '/wp-json',
103
  'restapi_namespace' => 'ajaxloadmore',
@@ -214,10 +215,9 @@ if( !class_exists('ALM_SHORTCODE') ):
214
  'primary' => false,
215
  'woocommerce' => false,
216
  'no_results_text' => ''
217
- ), $atts));
218
-
219
-
220
-
221
  // Backwards compat
222
  // If $previous_post_ is true, set the $single_post_{value} params
223
  if($previous_post === 'true'){
@@ -230,8 +230,8 @@ if( !class_exists('ALM_SHORTCODE') ):
230
 
231
 
232
  // Start Enqueue Scripts
233
-
234
-
235
  // Inline Core CSS
236
  if( !is_admin() && alm_do_inline_css('_alm_inline_css') && !alm_css_disabled('_alm_disable_css') && self::$counter === 1 ){
237
  $file = ALM_PATH . '/core/dist/css/'. ALM_SLUG .'.min.css'; // Core Ajax Load More
@@ -242,13 +242,13 @@ if( !class_exists('ALM_SHORTCODE') ):
242
  if(isset($options['_alm_legacy_callbacks']) && $options['_alm_legacy_callbacks'] == '1'){ // Load if active
243
  wp_enqueue_script( 'ajax-load-more-legacy-callbacks' );
244
  }
245
-
246
  // Core ALM
247
  wp_enqueue_script( 'ajax-load-more' );
248
 
249
  // Layouts
250
- if(has_action('alm_layouts_installed')){
251
- // Inline Layouts CSS
252
  if( !is_admin() && alm_do_inline_css('_alm_inline_css') && self::$counter === 1 ){
253
  if(defined('ALM_LAYOUTS_PATH') && defined('ALM_LAYOUTS_URL')){
254
  $file = ALM_LAYOUTS_PATH.'/core/css/ajax-load-more-layouts.min.css';
@@ -256,7 +256,7 @@ if( !class_exists('ALM_SHORTCODE') ):
256
  }
257
  }
258
  }
259
-
260
  // Masonry
261
  if($transition === 'masonry'){
262
  wp_enqueue_script( 'ajax-load-more-masonry' ); // Enqueue before core ALM
@@ -271,8 +271,8 @@ if( !class_exists('ALM_SHORTCODE') ):
271
  if(has_action('alm_paging_installed') && $paging === 'true'){
272
  wp_enqueue_script( 'ajax-load-more-paging' );
273
  wp_enqueue_script( 'ajax-load-more-images-loaded' ); // Required for Paging
274
-
275
- // Inline paging CSS
276
  if( !is_admin() && alm_do_inline_css('_alm_inline_css') && !alm_css_disabled('_alm_paging_disable_css') ){
277
  if(defined('ALM_PAGING_PATH') && defined('ALM_PAGING_URL')){
278
  $file = ALM_PAGING_PATH.'/core/css/ajax-load-more-paging.min.css';
@@ -300,8 +300,8 @@ if( !class_exists('ALM_SHORTCODE') ):
300
  // Tabs
301
  if(has_action('alm_tabs_installed') && $tabs === 'true'){
302
  wp_enqueue_script( 'ajax-load-more-tabs' );
303
-
304
- // Inline tabs CSS
305
  if( !is_admin() && alm_do_inline_css('_alm_inline_css') && !alm_css_disabled('_alm_tabs_disable_css') ){
306
  if(defined('ALM_TABS_PATH') && defined('ALM_TABS_URL')){
307
  $file = ALM_TABS_PATH.'/core/css/ajax-load-more-tabs.min.css';
@@ -309,7 +309,7 @@ if( !class_exists('ALM_SHORTCODE') ):
309
  }
310
  }
311
  }
312
-
313
 
314
 
315
  /*
@@ -323,26 +323,26 @@ if( !class_exists('ALM_SHORTCODE') ):
323
 
324
 
325
  // End Enqueue Scripts
326
-
327
-
328
  // Filters - Set initial shortcode state
329
  $filters = ($filters === 'true' && class_exists('ALMFilters')) ? true : false;
330
- if($filters){
331
  $single_post = $seo = false;
332
  $transition_container = "true"; // required
333
  if(defined('ALM_FILTERS_PATH')){
334
  include(ALM_FILTERS_PATH .'includes/initial-state-params.php');
335
  }
336
- }
337
-
338
- $single_post = ($single_post === 'true') ? true : false;
339
 
340
  $transition_container = ($seo === "true" || $single_post || $filters) ? 'true' : $transition_container;
341
-
342
  // Transition Container Classes
343
  $transition_container_classes = (!empty($transition_container_classes)) ? ' '. $transition_container_classes : '';
344
-
345
-
346
  // REST API
347
  if($restapi === 'true'){
348
  $restapi = true;
@@ -354,7 +354,7 @@ if( !class_exists('ALM_SHORTCODE') ):
354
  if($options['_alm_container_type'] == '2' || $single_post){
355
  $container_element = 'div';
356
  }
357
-
358
  // CSS Classes
359
  $css_classes = (!empty($css_classes)) ? ' ' . $css_classes : '';
360
 
@@ -365,10 +365,11 @@ if( !class_exists('ALM_SHORTCODE') ):
365
  if($single_post){
366
  $posts_per_page = 1;
367
  $container_element = 'div';
 
368
  }
369
-
370
  // Users
371
- $users = ($users === 'true') ? true : false;
372
 
373
  // Comments
374
  $container_element = ($comments === 'true') ? $comments_style : $container_element;
@@ -404,7 +405,7 @@ if( !class_exists('ALM_SHORTCODE') ):
404
  if (function_exists('qtrans_getLanguage')){ // qTranslate - https://wordpress.org/plugins/qtranslate/
405
  $lang = qtrans_getLanguage();
406
  }
407
-
408
  // Global Posts Per Page
409
  $wp_posts_per_page = get_option( 'posts_per_page' ); // Posts per page - settings -> reading
410
 
@@ -426,12 +427,12 @@ if( !class_exists('ALM_SHORTCODE') ):
426
  $pause_override = 'false';
427
  }
428
  }
429
-
430
 
431
  // Start ALM object
432
  $ajaxloadmore = '';
433
-
434
-
435
 
436
  /*
437
  * alm_before_container
@@ -447,13 +448,13 @@ if( !class_exists('ALM_SHORTCODE') ):
447
 
448
  // Generate ALM ID
449
  $div_id = (self::$counter > 1) ? 'ajax-load-more-'.self::$counter : 'ajax-load-more';
450
-
451
  // Localized ID - ID used for storin glocalized variables
452
  $localize_id = (empty($id)) ? $div_id : 'ajax-load-more-'.$id;
453
-
454
  // Master ID - Manual or generated ALM ID
455
  $master_id = (empty($id)) ? $div_id : $id;
456
-
457
  // Custom unique ALM ID (shortcode)
458
  $unique_id = (!empty($id)) ? 'data-id="'.$id.'"' : '';
459
 
@@ -470,8 +471,8 @@ if( !class_exists('ALM_SHORTCODE') ):
470
 
471
  // Masonry Hook (Before)
472
  $ajaxloadmore .= apply_filters('alm_masonry_before', $transition);
473
-
474
-
475
  // WooCommerce
476
  // - Set required WooCommerce config options
477
  if($woocommerce === 'true'){
@@ -527,20 +528,20 @@ if( !class_exists('ALM_SHORTCODE') ):
527
  $acf = false;
528
  $pause = 'true';
529
  }
530
-
531
  // If SEO, set preloaded_amount to posts_per_page
532
  if($seo === 'true' || $filters){
533
  $preloaded_amount = $posts_per_page;
534
  }
535
-
536
  // If Filters & Filters Paging, set preloaded_amount to posts_per_page
537
  if($filters && $filters_paging === 'true'){
538
  $preloaded_amount = $posts_per_page;
539
  }
540
-
541
-
542
  // $query_args array to store global ALM variables
543
- $query_args = array(
544
  'post_id' => $post_id,
545
  'preloaded' => $preloaded,
546
  'preloaded_amount' => $preloaded_amount,
@@ -548,6 +549,7 @@ if( !class_exists('ALM_SHORTCODE') ):
548
  'acf_post_id' => $acf_post_id,
549
  'acf_field_type' => $acf_field_type,
550
  'acf_field_name' => $acf_field_name,
 
551
  'nextpage' => $nextpage,
552
  'users' => $users,
553
  'users_role' => $users_role,
@@ -602,14 +604,14 @@ if( !class_exists('ALM_SHORTCODE') ):
602
  'theme_repeater' => $theme_repeater,
603
  'paged' => (get_query_var('paged')) ? get_query_var('paged') : 1
604
  );
605
-
606
-
607
  $listing_class = ($comments === 'true') ? 'commentlist alm-comments' : 'alm-listing'; // If Comments
608
-
609
-
610
  // Open #ajax-load-more
611
-
612
- $ajaxloadmore .= '<'.$container_element.' aria-live="polite" aria-atomic="true"';
613
  $ajaxloadmore .= ' class="'.$listing_class.' alm-ajax'. $paging_container_class . $classname . $css_classes .'"'.$paging_transition.'';
614
 
615
  // Build container data atts
@@ -622,12 +624,13 @@ if( !class_exists('ALM_SHORTCODE') ):
622
  $acf_field_type,
623
  $acf_field_name,
624
  $acf_post_id,
625
- $post_id
 
626
  );
627
  $ajaxloadmore .= $acf_return;
628
  }
629
-
630
-
631
  // Cache Add-on
632
  if(has_action('alm_cache_installed') && $cache === 'true'){
633
  $cache_return = apply_filters(
@@ -638,8 +641,8 @@ if( !class_exists('ALM_SHORTCODE') ):
638
  );
639
  $ajaxloadmore .= $cache_return;
640
  }
641
-
642
-
643
  // CTA Add-on
644
  if(has_action('alm_cta_installed') && $cta === 'true'){
645
  $cta_return = apply_filters(
@@ -651,8 +654,8 @@ if( !class_exists('ALM_SHORTCODE') ):
651
  );
652
  $ajaxloadmore .= $cta_return;
653
  }
654
-
655
-
656
  // Comments Add-on
657
  if(has_action('alm_comments_installed') && $comments === 'true'){
658
  $comments_return = apply_filters(
@@ -667,8 +670,8 @@ if( !class_exists('ALM_SHORTCODE') ):
667
  );
668
  $ajaxloadmore .= $comments_return;
669
  }
670
-
671
-
672
  // Filters Add-on
673
  if(has_action('alm_filters_installed') && $filters){
674
  $filters_return = apply_filters(
@@ -685,8 +688,8 @@ if( !class_exists('ALM_SHORTCODE') ):
685
  );
686
  $ajaxloadmore .= $filters_return;
687
  }
688
-
689
-
690
  // Paging Add-on
691
  if(has_action('alm_paging_installed') && $paging === 'true'){
692
  $paging_return = apply_filters(
@@ -694,7 +697,7 @@ if( !class_exists('ALM_SHORTCODE') ):
694
  $paging,
695
  $paging_controls,
696
  $paging_show_at_most,
697
- $paging_classes,
698
  $paging_first_label,
699
  $paging_last_label,
700
  $paging_previous_label,
@@ -703,35 +706,35 @@ if( !class_exists('ALM_SHORTCODE') ):
703
  );
704
  $ajaxloadmore .= $paging_return;
705
  }
706
-
707
-
708
- // Tabs Add-on
709
  if(has_action('alm_tabs_installed') && $tabs === 'true'){
710
  $tabs_return = apply_filters(
711
  'alm_tabs_shortcode',
712
  $tabs,
713
- $tab_template,
714
  $options
715
  );
716
  $ajaxloadmore .= $tabs_return;
717
-
718
  $transition_container = "true"; // required
719
-
720
  // Set `pause` true for tabs and preloaded
721
  if($preloaded === 'true'){
722
  $pause = "true";
723
  }
724
  }
725
-
726
-
727
  // Preloaded Add-on
728
- if(has_action('alm_preload_installed') && $preloaded === 'true'){
729
-
730
- $preloaded = ($seo === 'true' && (int)$query_args['paged'] < 1 && $paging !== 'true') ? 'true' : $preloaded; // SEO page 1
731
-
732
  // SEO > page 1
733
  $preloaded = ($seo === 'true' && $query_args['paged'] > 1 && $paging !== 'true') ? false : $preloaded; // SEO page > 1
734
-
735
  // Filters
736
  if($filters && $_SERVER['QUERY_STRING']){
737
  $querystring = $_SERVER['QUERY_STRING'];
@@ -741,16 +744,16 @@ if( !class_exists('ALM_SHORTCODE') ):
741
  $ajaxloadmore .= ' data-is-preloaded="true"';
742
  }
743
  }
744
-
745
  // Set `is-preloaded` attribute to add `.alm-preloaded` class to first `.alm-reveal` div
746
  $ajaxloadmore .= ($seo === 'true' && $query_args['paged'] > 1) ? ' data-is-preloaded="true"' : '';
747
-
748
- // Add `preloaded` atts
749
- $ajaxloadmore .= ' data-preloaded="'.$preloaded.'"';
750
- $ajaxloadmore .= ' data-preloaded-amount="'.$preloaded_amount.'"';
751
  }
752
-
753
-
754
  // REST API Extension
755
  if(has_action('alm_rest_api_installed') && $restapi === true){
756
  $restapi_return = apply_filters(
@@ -764,8 +767,8 @@ if( !class_exists('ALM_SHORTCODE') ):
764
  );
765
  $ajaxloadmore .= $restapi_return;
766
  }
767
-
768
-
769
  // SEO Add-on
770
  if(has_action('alm_seo_installed') && $seo === 'true'){
771
  $seo_return = apply_filters(
@@ -776,8 +779,8 @@ if( !class_exists('ALM_SHORTCODE') ):
776
  );
777
  $ajaxloadmore .= $seo_return;
778
  }
779
-
780
-
781
  // Single Posts Add-on
782
  if(has_action('alm_single_post_installed') && $single_post){
783
  $single_post_return = apply_filters(
@@ -791,8 +794,8 @@ if( !class_exists('ALM_SHORTCODE') ):
791
  );
792
  $ajaxloadmore .= $single_post_return;
793
  }
794
-
795
-
796
  // Nextpage Post Add-on
797
  if(has_action('alm_nextpage_installed') && $nextpage){
798
  $nextpage_return = apply_filters(
@@ -805,11 +808,11 @@ if( !class_exists('ALM_SHORTCODE') ):
805
  );
806
  $ajaxloadmore .= $nextpage_return;
807
  }
808
-
809
-
810
  // Users Add-on
811
- if(has_action('alm_users_installed') && $users){
812
- $posts_per_page = $users_per_page; // Update $posts_per_page var to be $users_per_page
813
  $users_return = apply_filters(
814
  'alm_users_shortcode',
815
  $users_role,
@@ -820,82 +823,82 @@ if( !class_exists('ALM_SHORTCODE') ):
820
  $users_orderby,
821
  $options
822
  );
823
- $ajaxloadmore .= $users_return;
824
  }
825
-
826
- $ajaxloadmore .= ' data-container-type="'.$container_element.'"';
827
-
828
-
829
- $ajaxloadmore .= ' data-repeater="'.$repeater.'"';
830
- $ajaxloadmore .= ($theme_repeater != 'null') ? ' data-theme-repeater="'.$theme_repeater.'"' : '';
831
-
832
- // Post Type
833
  $ajaxloadmore .= ' data-post-type="'.$post_type.'"';
834
-
835
  // Sticky posts
836
  $ajaxloadmore .= ($sticky_posts === 'true') ? ' data-sticky-posts="'.$sticky_posts.'"' : '';
837
-
838
  // Post Format
839
  $ajaxloadmore .= (!empty($post_format)) ? ' data-post-format="'.$post_format.'"' : '';
840
-
841
  // Category
842
  $ajaxloadmore .= (!empty($category)) ? ' data-category="'.$category.'"' : '';
843
  $ajaxloadmore .= (!empty($category__and)) ? ' data-category-and="'.$category__and.'"' : '';
844
  $ajaxloadmore .= (!empty($category__not_in)) ? ' data-category-not-in="'.$category__not_in.'"' : '';
845
-
846
  // Tag
847
  $ajaxloadmore .= (!empty($tag)) ? ' data-tag="'.$tag.'"' : '';
848
  $ajaxloadmore .= (!empty($tag__and)) ? ' data-tag-and="'.$tag__and.'"' : '';
849
  $ajaxloadmore .= (!empty($tag__not_in)) ? ' data-tag-not-in="'.$tag__not_in.'"' : '';
850
-
851
  // Taxonomy
852
  $ajaxloadmore .= (!empty($taxonomy)) ? ' data-taxonomy="'.$taxonomy.'"' : '';
853
  $ajaxloadmore .= (!empty($taxonomy_terms)) ? ' data-taxonomy-terms="'.$taxonomy_terms.'"' : '';
854
  $ajaxloadmore .= (!empty($taxonomy_operator)) ? ' data-taxonomy-operator="'.$taxonomy_operator.'"' : '';
855
  $ajaxloadmore .= (!empty($taxonomy_relation)) ? ' data-taxonomy-relation="'.$taxonomy_relation.'"' : '';
856
-
857
  // Meta Query
858
  $ajaxloadmore .= (!empty($meta_key)) ? ' data-meta-key="'.$meta_key.'"' : '';
859
  $ajaxloadmore .= (!empty($meta_value) || $meta_value === '0') ? ' data-meta-value="'.$meta_value.'"' : '';
860
  $ajaxloadmore .= (!empty($meta_compare)) ? ' data-meta-compare="'.$meta_compare.'"' : '';
861
  $ajaxloadmore .= (!empty($meta_relation)) ? ' data-meta-relation="'.$meta_relation.'"' : '';
862
  $ajaxloadmore .= (!empty($meta_type)) ? ' data-meta-type="'.$meta_type.'"' : '';
863
-
864
  // Dates
865
  $ajaxloadmore .= (!empty($year)) ? ' data-year="'.$year.'"' : '';
866
  $ajaxloadmore .= (!empty($month)) ? ' data-month="'.$month.'"' : '';
867
  $ajaxloadmore .= (!empty($day)) ? ' data-day="'.$day.'"' : '';
868
-
869
  // Author
870
  $ajaxloadmore .= (!empty($author)) ? ' data-author="'.$author.'"' : '';
871
-
872
  // Post Parameters
873
  $ajaxloadmore .= (!empty($post__in)) ? ' data-post-in="'.$post__in.'"' : '';
874
  $ajaxloadmore .= (!empty($post__not_in)) ? ' data-post-not-in="'.$post__not_in.'"' : '';
875
  $ajaxloadmore .= (!empty($exclude)) ? ' data-exclude="'.$exclude.'"' : '';
876
-
877
  // Search
878
  $ajaxloadmore .= (!empty($search)) ? ' data-search="'.$search.'"' : '';
879
-
880
  // Custom Args
881
  $ajaxloadmore .= (!empty($custom_args)) ? ' data-custom-args="'.$custom_args.'"' : '';
882
-
883
  // Status
884
  $ajaxloadmore .= (!empty($post_status)) ? ' data-post-status="'.$post_status.'"' : '';
885
-
886
  // Order
887
  $ajaxloadmore .= ' data-order="'.$order.'"';
888
  $ajaxloadmore .= ' data-orderby="'.$orderby.'"';
889
-
890
  // Offset
891
  $ajaxloadmore .= ' data-offset="'.$offset.'"';
892
-
893
  // Posts Per Page
894
  $ajaxloadmore .= ' data-posts-per-page="'.$posts_per_page.'"';
895
-
896
  // Lang
897
  $ajaxloadmore .= (!empty($lang)) ? ' data-lang="'.$lang.'"' : '';
898
-
899
  // Scroll
900
  $ajaxloadmore .= ' data-scroll="'.$scroll.'"';
901
  if($scroll === 'true'){
@@ -904,54 +907,54 @@ if( !class_exists('ALM_SHORTCODE') ):
904
  $ajaxloadmore .= ' data-max-pages="'.$max_pages.'"';
905
  $ajaxloadmore .= (!empty($pause_override)) ? ' data-pause-override="'.$pause_override.'"' : '';
906
  }
907
-
908
  // Pause
909
  $ajaxloadmore .= ' data-pause="'.$pause.'"';
910
-
911
  // Button
912
- $ajaxloadmore .= ' data-button-label="'.$button_label.'"';
913
  $ajaxloadmore .= (!empty($button_loading_label)) ? ' data-button-loading-label="'.$button_loading_label.'"' : '';
914
-
915
  // Destroy After
916
  $ajaxloadmore .= (!empty($destroy_after)) ? ' data-destroy-after="'.$destroy_after.'"' : '';
917
-
918
  // Transition
919
  $ajaxloadmore .= ' data-transition="'.$transition.'"';
920
  $ajaxloadmore .= ($transition_container === 'false') ? ' data-transition-container="'.$transition_container.'"' : '';
921
  $ajaxloadmore .= (!empty($transition_container_classes)) ? ' data-transition-container-classes="'.$transition_container_classes.'"' : '';
922
-
923
  // Masonry
924
  $ajaxloadmore .= (!empty($masonry_selector)) ? ' data-masonry-selector="'.$masonry_selector.'"' : '';
925
  $ajaxloadmore .= (!empty($masonry_columnwidth)) ? ' data-masonry-columnwidth="'.$masonry_columnwidth.'"' : '';
926
  $ajaxloadmore .= (!empty($masonry_animation)) ? ' data-masonry-animation="'.$masonry_animation.'"' : '';
927
  $ajaxloadmore .= (!empty($masonry_horizontalorder)) ? ' data-masonry-horizontalorder="'.$masonry_horizontalorder.'"' : '';
928
-
929
  // Images Loaded
930
  $ajaxloadmore .= (!empty($images_loaded)) ? ' data-images-loaded="'.$images_loaded.'"' : '';
931
-
932
  // Primary
933
  $ajaxloadmore .= ($primary !== false) ? ' data-primary="true"' : '';
934
-
935
  $ajaxloadmore .= '>';
936
  // End .alm-listing
937
-
938
-
939
- // Preloaded
940
  // Add Preloaded Posts
941
  $noscript_pagingnav = '';
942
  if(has_action('alm_preload_installed') && $preloaded === 'true'){
943
  include(ALM_PATH .'core/classes/includes/preloaded.php');
944
  }
945
-
946
 
947
  // Single Post
948
  // Get first post and append to alm object
949
  if(has_action('alm_single_post_installed') && $single_post){
950
-
951
-
952
  $repeater_type = preg_split('/(?=\d)/', $repeater, 2); // split $repeater at number to retrieve type
953
  $repeater_type = $repeater_type[0]; // (default | repeater | template_)
954
-
955
  if($theme_repeater != 'null' && has_filter('alm_get_theme_repeater')){
956
  $repeater_type = null;
957
  }
@@ -968,12 +971,12 @@ if( !class_exists('ALM_SHORTCODE') ):
968
  *
969
  * @return $args;
970
  */
971
-
972
  if($offset < 1){
973
  // Only render include if offset is zero
974
  $single_post_output .= apply_filters('alm_single_post_inc', $repeater, $repeater_type, $theme_repeater, $single_post_id, $post_type);
975
  }
976
-
977
 
978
  $single_post_output .= '</div>';
979
  $ajaxloadmore .= $single_post_output; // Add $single_post_output data to $ajaxloadmore
@@ -990,7 +993,7 @@ if( !class_exists('ALM_SHORTCODE') ):
990
  $nextpage_is_paged = ($nextpage_start > 1) ? true : false;
991
 
992
  $alm_nextpage_output = apply_filters('alm_init_nextpage', $nextpage_post_id, $nextpage_start,$nextpage_is_paged, $paging, $div_id, $id);
993
-
994
  $ajaxloadmore .= $alm_nextpage_output;
995
 
996
  }
@@ -999,22 +1002,25 @@ if( !class_exists('ALM_SHORTCODE') ):
999
 
1000
  // Masonry Hook (After)
1001
  $ajaxloadmore .= apply_filters('alm_masonry_after', $transition);
1002
-
1003
-
1004
  // Close ALM container element
1005
- $ajaxloadmore .= '</'.$container_element.'>';
1006
-
1007
-
1008
- /*
1009
  * alm_noscript (Generates <noscript/> element of current query)
1010
  *
1011
- * ALM Core Filter Hook
1012
  *
1013
  * @return html;
1014
  */
1015
  if(($seo === 'true' || $filters) && $preloaded !== 'true' && !$restapi){
1016
  $ajaxloadmore .= apply_filters('alm_noscript', $query_args, $container_element, $css_classes, $transition_container_classes);
1017
  }
 
 
 
1018
 
1019
 
1020
  /*
@@ -1024,30 +1030,37 @@ if( !class_exists('ALM_SHORTCODE') ):
1024
  *
1025
  * @return html;
1026
  */
1027
- $ajaxloadmore .= apply_filters('alm_before_button', '');
1028
-
1029
-
1030
  // Create Load More button
1031
- $ajaxloadmore .= self::alm_render_button($seo, $paging, $button_classname, $button_label, $canonicalURL);
1032
-
1033
-
1034
- // Render <noscript> pagination for SEO and Preloaded (./preloaded.php)
1035
- $ajaxloadmore .= (!empty($noscript_pagingnav)) ? $noscript_pagingnav : '';
1036
-
1037
 
1038
- // Render <noscript> pagination for Nextpage addon
1039
- if(has_action('alm_nextpage_installed') && $nextpage){
1040
- $ajaxloadmore .= apply_filters( 'alm_nextpage_noscript_paging', $query_args['post_id'], $query_args['id'] ); // located in Nextpage add-on
1041
- }
1042
 
 
 
 
 
 
 
 
 
 
 
1043
  // No results text
1044
  if($no_results_text !== '' && !empty($no_results_text)){
1045
  $ajaxloadmore .= '<div class="alm-no-results" style="display: none;">'. $no_results_text .'</div>';
1046
  }
1047
-
1048
-
 
 
 
 
 
 
1049
  // Close #ajax-load-more
1050
- $ajaxloadmore .= '</div>';
1051
 
1052
 
1053
  /*
@@ -1065,7 +1078,7 @@ if( !class_exists('ALM_SHORTCODE') ):
1065
 
1066
 
1067
  // REST API Add-on
1068
- // - add <script> template to page
1069
  if(has_action('alm_rest_api_installed') && $restapi){
1070
  if($theme_repeater != 'null' && has_action('alm_get_rest_theme_repeater')){
1071
  do_action('alm_get_rest_theme_repeater', $theme_repeater);
@@ -1075,14 +1088,14 @@ if( !class_exists('ALM_SHORTCODE') ):
1075
  }
1076
  }
1077
  // End REST API Add-on
1078
-
1079
-
1080
-
1081
  // Add localized vars
1082
  ALM_LOCALIZE::add_localized_var('id', $master_id, $localize_id);
1083
-
1084
-
1085
-
1086
  /*
1087
  * alm_create_script_vars
1088
  *
@@ -1090,16 +1103,15 @@ if( !class_exists('ALM_SHORTCODE') ):
1090
  *
1091
  * @return <script>
1092
  */
1093
- ALM_LOCALIZE::create_script_vars($localize_id);
1094
-
1095
-
1096
-
1097
  return $ajaxloadmore; // End $ajaxloadmore object
1098
-
1099
  }
1100
-
1101
-
1102
-
1103
  /**
1104
  * alm_render_button
1105
  * Render the load more button.
@@ -1108,21 +1120,21 @@ if( !class_exists('ALM_SHORTCODE') ):
1108
  * @return $html
1109
  */
1110
  public static function alm_render_button($seo, $paging, $button_classname, $button_label, $canonicalURL){
1111
-
1112
- $html = '<div class="alm-btn-wrap" style="visibility: hidden;">';
1113
- if($paging !== 'true'){
1114
  $btn_element = 'button';
1115
  $btn_href = '';
1116
- $btn_rel = ' rel="next"';
1117
- $html .= '<'. $btn_element .' class="alm-load-more-btn more'. $button_classname .'"'. $btn_href . $btn_rel .'>'. $button_label .'</'. $btn_element .'>';
1118
- }
1119
  $html .= '</div>';
1120
-
1121
- return $html;
1122
-
1123
- }
1124
 
1125
  }
1126
-
1127
  endif;
1128
 
29
  */
30
 
31
  public static function alm_render_shortcode($atts){
32
+
33
+
34
  // Get global $post obj
35
  global $post;
36
 
37
 
38
  // Get ALM options
39
  $options = get_option( 'alm_settings' );
40
+
41
+
42
  /*
43
  * alm_settings
44
  * Override default ALM Settings
48
  * @return $options;
49
  */
50
  $options = (has_filter('alm_settings')) ? apply_filters('alm_settings', $options) : $options;
51
+
52
+
53
  // Add count
54
  self::$counter++;
55
 
62
  // Custom CSS for Layouts - Only run this once.
63
  if(has_action('alm_layouts_custom_css')){
64
  do_action('alm_layouts_custom_css', self::$counter);
65
+ }
66
+
67
+
68
+
69
  /*
70
  * alm_shortcode_defaults
71
  * Set default shortcode values that can be over written via shortcode atts
74
  *
75
  * @return $atts;
76
  */
77
+ $default_atts = apply_filters('alm_shortcode_defaults', '');
78
+
79
  // Merge arrays. Allows for defaults to be overwritten by the actual shortcode.
80
  $atts = ($default_atts) ? array_merge($default_atts, $atts) : $atts;
81
+
82
+
83
+
84
  // Extact shortcode arrtibutes
85
  extract(shortcode_atts(array(
86
  'nested' => false,
98
  'acf_post_id' => '',
99
  'acf_field_type' => 'repeater',
100
  'acf_field_name' => '',
101
+ 'acf_parent_field_name' => '',
102
  'restapi' => false,
103
  'restapi_base' => '/wp-json',
104
  'restapi_namespace' => 'ajaxloadmore',
215
  'primary' => false,
216
  'woocommerce' => false,
217
  'no_results_text' => ''
218
+ ), $atts));
219
+
220
+
 
221
  // Backwards compat
222
  // If $previous_post_ is true, set the $single_post_{value} params
223
  if($previous_post === 'true'){
230
 
231
 
232
  // Start Enqueue Scripts
233
+
234
+
235
  // Inline Core CSS
236
  if( !is_admin() && alm_do_inline_css('_alm_inline_css') && !alm_css_disabled('_alm_disable_css') && self::$counter === 1 ){
237
  $file = ALM_PATH . '/core/dist/css/'. ALM_SLUG .'.min.css'; // Core Ajax Load More
242
  if(isset($options['_alm_legacy_callbacks']) && $options['_alm_legacy_callbacks'] == '1'){ // Load if active
243
  wp_enqueue_script( 'ajax-load-more-legacy-callbacks' );
244
  }
245
+
246
  // Core ALM
247
  wp_enqueue_script( 'ajax-load-more' );
248
 
249
  // Layouts
250
+ if(has_action('alm_layouts_installed')){
251
+ // Inline Layouts CSS
252
  if( !is_admin() && alm_do_inline_css('_alm_inline_css') && self::$counter === 1 ){
253
  if(defined('ALM_LAYOUTS_PATH') && defined('ALM_LAYOUTS_URL')){
254
  $file = ALM_LAYOUTS_PATH.'/core/css/ajax-load-more-layouts.min.css';
256
  }
257
  }
258
  }
259
+
260
  // Masonry
261
  if($transition === 'masonry'){
262
  wp_enqueue_script( 'ajax-load-more-masonry' ); // Enqueue before core ALM
271
  if(has_action('alm_paging_installed') && $paging === 'true'){
272
  wp_enqueue_script( 'ajax-load-more-paging' );
273
  wp_enqueue_script( 'ajax-load-more-images-loaded' ); // Required for Paging
274
+
275
+ // Inline paging CSS
276
  if( !is_admin() && alm_do_inline_css('_alm_inline_css') && !alm_css_disabled('_alm_paging_disable_css') ){
277
  if(defined('ALM_PAGING_PATH') && defined('ALM_PAGING_URL')){
278
  $file = ALM_PAGING_PATH.'/core/css/ajax-load-more-paging.min.css';
300
  // Tabs
301
  if(has_action('alm_tabs_installed') && $tabs === 'true'){
302
  wp_enqueue_script( 'ajax-load-more-tabs' );
303
+
304
+ // Inline tabs CSS
305
  if( !is_admin() && alm_do_inline_css('_alm_inline_css') && !alm_css_disabled('_alm_tabs_disable_css') ){
306
  if(defined('ALM_TABS_PATH') && defined('ALM_TABS_URL')){
307
  $file = ALM_TABS_PATH.'/core/css/ajax-load-more-tabs.min.css';
309
  }
310
  }
311
  }
312
+
313
 
314
 
315
  /*
323
 
324
 
325
  // End Enqueue Scripts
326
+
327
+
328
  // Filters - Set initial shortcode state
329
  $filters = ($filters === 'true' && class_exists('ALMFilters')) ? true : false;
330
+ if($filters){
331
  $single_post = $seo = false;
332
  $transition_container = "true"; // required
333
  if(defined('ALM_FILTERS_PATH')){
334
  include(ALM_FILTERS_PATH .'includes/initial-state-params.php');
335
  }
336
+ }
337
+
338
+ $single_post = ($single_post === 'true') ? true : false;
339
 
340
  $transition_container = ($seo === "true" || $single_post || $filters) ? 'true' : $transition_container;
341
+
342
  // Transition Container Classes
343
  $transition_container_classes = (!empty($transition_container_classes)) ? ' '. $transition_container_classes : '';
344
+
345
+
346
  // REST API
347
  if($restapi === 'true'){
348
  $restapi = true;
354
  if($options['_alm_container_type'] == '2' || $single_post){
355
  $container_element = 'div';
356
  }
357
+
358
  // CSS Classes
359
  $css_classes = (!empty($css_classes)) ? ' ' . $css_classes : '';
360
 
365
  if($single_post){
366
  $posts_per_page = 1;
367
  $container_element = 'div';
368
+ $seo = false;
369
  }
370
+
371
  // Users
372
+ $users = ($users === 'true') ? true : false;
373
 
374
  // Comments
375
  $container_element = ($comments === 'true') ? $comments_style : $container_element;
405
  if (function_exists('qtrans_getLanguage')){ // qTranslate - https://wordpress.org/plugins/qtranslate/
406
  $lang = qtrans_getLanguage();
407
  }
408
+
409
  // Global Posts Per Page
410
  $wp_posts_per_page = get_option( 'posts_per_page' ); // Posts per page - settings -> reading
411
 
427
  $pause_override = 'false';
428
  }
429
  }
430
+
431
 
432
  // Start ALM object
433
  $ajaxloadmore = '';
434
+
435
+
436
 
437
  /*
438
  * alm_before_container
448
 
449
  // Generate ALM ID
450
  $div_id = (self::$counter > 1) ? 'ajax-load-more-'.self::$counter : 'ajax-load-more';
451
+
452
  // Localized ID - ID used for storin glocalized variables
453
  $localize_id = (empty($id)) ? $div_id : 'ajax-load-more-'.$id;
454
+
455
  // Master ID - Manual or generated ALM ID
456
  $master_id = (empty($id)) ? $div_id : $id;
457
+
458
  // Custom unique ALM ID (shortcode)
459
  $unique_id = (!empty($id)) ? 'data-id="'.$id.'"' : '';
460
 
471
 
472
  // Masonry Hook (Before)
473
  $ajaxloadmore .= apply_filters('alm_masonry_before', $transition);
474
+
475
+
476
  // WooCommerce
477
  // - Set required WooCommerce config options
478
  if($woocommerce === 'true'){
528
  $acf = false;
529
  $pause = 'true';
530
  }
531
+
532
  // If SEO, set preloaded_amount to posts_per_page
533
  if($seo === 'true' || $filters){
534
  $preloaded_amount = $posts_per_page;
535
  }
536
+
537
  // If Filters & Filters Paging, set preloaded_amount to posts_per_page
538
  if($filters && $filters_paging === 'true'){
539
  $preloaded_amount = $posts_per_page;
540
  }
541
+
542
+
543
  // $query_args array to store global ALM variables
544
+ $query_args = array(
545
  'post_id' => $post_id,
546
  'preloaded' => $preloaded,
547
  'preloaded_amount' => $preloaded_amount,
549
  'acf_post_id' => $acf_post_id,
550
  'acf_field_type' => $acf_field_type,
551
  'acf_field_name' => $acf_field_name,
552
+ 'acf_parent_field_name' => $acf_parent_field_name,
553
  'nextpage' => $nextpage,
554
  'users' => $users,
555
  'users_role' => $users_role,
604
  'theme_repeater' => $theme_repeater,
605
  'paged' => (get_query_var('paged')) ? get_query_var('paged') : 1
606
  );
607
+
608
+
609
  $listing_class = ($comments === 'true') ? 'commentlist alm-comments' : 'alm-listing'; // If Comments
610
+
611
+
612
  // Open #ajax-load-more
613
+
614
+ $ajaxloadmore .= '<'.$container_element.' aria-live="polite" aria-atomic="true"';
615
  $ajaxloadmore .= ' class="'.$listing_class.' alm-ajax'. $paging_container_class . $classname . $css_classes .'"'.$paging_transition.'';
616
 
617
  // Build container data atts
624
  $acf_field_type,
625
  $acf_field_name,
626
  $acf_post_id,
627
+ $post_id,
628
+ $acf_parent_field_name
629
  );
630
  $ajaxloadmore .= $acf_return;
631
  }
632
+
633
+
634
  // Cache Add-on
635
  if(has_action('alm_cache_installed') && $cache === 'true'){
636
  $cache_return = apply_filters(
641
  );
642
  $ajaxloadmore .= $cache_return;
643
  }
644
+
645
+
646
  // CTA Add-on
647
  if(has_action('alm_cta_installed') && $cta === 'true'){
648
  $cta_return = apply_filters(
654
  );
655
  $ajaxloadmore .= $cta_return;
656
  }
657
+
658
+
659
  // Comments Add-on
660
  if(has_action('alm_comments_installed') && $comments === 'true'){
661
  $comments_return = apply_filters(
670
  );
671
  $ajaxloadmore .= $comments_return;
672
  }
673
+
674
+
675
  // Filters Add-on
676
  if(has_action('alm_filters_installed') && $filters){
677
  $filters_return = apply_filters(
688
  );
689
  $ajaxloadmore .= $filters_return;
690
  }
691
+
692
+
693
  // Paging Add-on
694
  if(has_action('alm_paging_installed') && $paging === 'true'){
695
  $paging_return = apply_filters(
697
  $paging,
698
  $paging_controls,
699
  $paging_show_at_most,
700
+ $paging_classes,
701
  $paging_first_label,
702
  $paging_last_label,
703
  $paging_previous_label,
706
  );
707
  $ajaxloadmore .= $paging_return;
708
  }
709
+
710
+
711
+ // Tabs Add-on
712
  if(has_action('alm_tabs_installed') && $tabs === 'true'){
713
  $tabs_return = apply_filters(
714
  'alm_tabs_shortcode',
715
  $tabs,
716
+ $tab_template,
717
  $options
718
  );
719
  $ajaxloadmore .= $tabs_return;
720
+
721
  $transition_container = "true"; // required
722
+
723
  // Set `pause` true for tabs and preloaded
724
  if($preloaded === 'true'){
725
  $pause = "true";
726
  }
727
  }
728
+
729
+
730
  // Preloaded Add-on
731
+ if(has_action('alm_preload_installed') && $preloaded === 'true'){
732
+
733
+ $preloaded = ($seo === 'true' && (int)$query_args['paged'] < 1 && $paging !== 'true') ? 'true' : $preloaded; // SEO page 1
734
+
735
  // SEO > page 1
736
  $preloaded = ($seo === 'true' && $query_args['paged'] > 1 && $paging !== 'true') ? false : $preloaded; // SEO page > 1
737
+
738
  // Filters
739
  if($filters && $_SERVER['QUERY_STRING']){
740
  $querystring = $_SERVER['QUERY_STRING'];
744
  $ajaxloadmore .= ' data-is-preloaded="true"';
745
  }
746
  }
747
+
748
  // Set `is-preloaded` attribute to add `.alm-preloaded` class to first `.alm-reveal` div
749
  $ajaxloadmore .= ($seo === 'true' && $query_args['paged'] > 1) ? ' data-is-preloaded="true"' : '';
750
+
751
+ // Add `preloaded` atts
752
+ $ajaxloadmore .= ' data-preloaded="'.$preloaded.'"';
753
+ $ajaxloadmore .= ' data-preloaded-amount="'.$preloaded_amount.'"';
754
  }
755
+
756
+
757
  // REST API Extension
758
  if(has_action('alm_rest_api_installed') && $restapi === true){
759
  $restapi_return = apply_filters(
767
  );
768
  $ajaxloadmore .= $restapi_return;
769
  }
770
+
771
+
772
  // SEO Add-on
773
  if(has_action('alm_seo_installed') && $seo === 'true'){
774
  $seo_return = apply_filters(
779
  );
780
  $ajaxloadmore .= $seo_return;
781
  }
782
+
783
+
784
  // Single Posts Add-on
785
  if(has_action('alm_single_post_installed') && $single_post){
786
  $single_post_return = apply_filters(
794
  );
795
  $ajaxloadmore .= $single_post_return;
796
  }
797
+
798
+
799
  // Nextpage Post Add-on
800
  if(has_action('alm_nextpage_installed') && $nextpage){
801
  $nextpage_return = apply_filters(
808
  );
809
  $ajaxloadmore .= $nextpage_return;
810
  }
811
+
812
+
813
  // Users Add-on
814
+ if(has_action('alm_users_installed') && $users){
815
+ $posts_per_page = $users_per_page; // Update $posts_per_page var to be $users_per_page
816
  $users_return = apply_filters(
817
  'alm_users_shortcode',
818
  $users_role,
823
  $users_orderby,
824
  $options
825
  );
826
+ $ajaxloadmore .= $users_return;
827
  }
828
+
829
+ $ajaxloadmore .= ' data-container-type="'.$container_element.'"';
830
+
831
+
832
+ $ajaxloadmore .= ' data-repeater="'.$repeater.'"';
833
+ $ajaxloadmore .= ($theme_repeater != 'null') ? ' data-theme-repeater="'.$theme_repeater.'"' : '';
834
+
835
+ // Post Type
836
  $ajaxloadmore .= ' data-post-type="'.$post_type.'"';
837
+
838
  // Sticky posts
839
  $ajaxloadmore .= ($sticky_posts === 'true') ? ' data-sticky-posts="'.$sticky_posts.'"' : '';
840
+
841
  // Post Format
842
  $ajaxloadmore .= (!empty($post_format)) ? ' data-post-format="'.$post_format.'"' : '';
843
+
844
  // Category
845
  $ajaxloadmore .= (!empty($category)) ? ' data-category="'.$category.'"' : '';
846
  $ajaxloadmore .= (!empty($category__and)) ? ' data-category-and="'.$category__and.'"' : '';
847
  $ajaxloadmore .= (!empty($category__not_in)) ? ' data-category-not-in="'.$category__not_in.'"' : '';
848
+
849
  // Tag
850
  $ajaxloadmore .= (!empty($tag)) ? ' data-tag="'.$tag.'"' : '';
851
  $ajaxloadmore .= (!empty($tag__and)) ? ' data-tag-and="'.$tag__and.'"' : '';
852
  $ajaxloadmore .= (!empty($tag__not_in)) ? ' data-tag-not-in="'.$tag__not_in.'"' : '';
853
+
854
  // Taxonomy
855
  $ajaxloadmore .= (!empty($taxonomy)) ? ' data-taxonomy="'.$taxonomy.'"' : '';
856
  $ajaxloadmore .= (!empty($taxonomy_terms)) ? ' data-taxonomy-terms="'.$taxonomy_terms.'"' : '';
857
  $ajaxloadmore .= (!empty($taxonomy_operator)) ? ' data-taxonomy-operator="'.$taxonomy_operator.'"' : '';
858
  $ajaxloadmore .= (!empty($taxonomy_relation)) ? ' data-taxonomy-relation="'.$taxonomy_relation.'"' : '';
859
+
860
  // Meta Query
861
  $ajaxloadmore .= (!empty($meta_key)) ? ' data-meta-key="'.$meta_key.'"' : '';
862
  $ajaxloadmore .= (!empty($meta_value) || $meta_value === '0') ? ' data-meta-value="'.$meta_value.'"' : '';
863
  $ajaxloadmore .= (!empty($meta_compare)) ? ' data-meta-compare="'.$meta_compare.'"' : '';
864
  $ajaxloadmore .= (!empty($meta_relation)) ? ' data-meta-relation="'.$meta_relation.'"' : '';
865
  $ajaxloadmore .= (!empty($meta_type)) ? ' data-meta-type="'.$meta_type.'"' : '';
866
+
867
  // Dates
868
  $ajaxloadmore .= (!empty($year)) ? ' data-year="'.$year.'"' : '';
869
  $ajaxloadmore .= (!empty($month)) ? ' data-month="'.$month.'"' : '';
870
  $ajaxloadmore .= (!empty($day)) ? ' data-day="'.$day.'"' : '';
871
+
872
  // Author
873
  $ajaxloadmore .= (!empty($author)) ? ' data-author="'.$author.'"' : '';
874
+
875
  // Post Parameters
876
  $ajaxloadmore .= (!empty($post__in)) ? ' data-post-in="'.$post__in.'"' : '';
877
  $ajaxloadmore .= (!empty($post__not_in)) ? ' data-post-not-in="'.$post__not_in.'"' : '';
878
  $ajaxloadmore .= (!empty($exclude)) ? ' data-exclude="'.$exclude.'"' : '';
879
+
880
  // Search
881
  $ajaxloadmore .= (!empty($search)) ? ' data-search="'.$search.'"' : '';
882
+
883
  // Custom Args
884
  $ajaxloadmore .= (!empty($custom_args)) ? ' data-custom-args="'.$custom_args.'"' : '';
885
+
886
  // Status
887
  $ajaxloadmore .= (!empty($post_status)) ? ' data-post-status="'.$post_status.'"' : '';
888
+
889
  // Order
890
  $ajaxloadmore .= ' data-order="'.$order.'"';
891
  $ajaxloadmore .= ' data-orderby="'.$orderby.'"';
892
+
893
  // Offset
894
  $ajaxloadmore .= ' data-offset="'.$offset.'"';
895
+
896
  // Posts Per Page
897
  $ajaxloadmore .= ' data-posts-per-page="'.$posts_per_page.'"';
898
+
899
  // Lang
900
  $ajaxloadmore .= (!empty($lang)) ? ' data-lang="'.$lang.'"' : '';
901
+
902
  // Scroll
903
  $ajaxloadmore .= ' data-scroll="'.$scroll.'"';
904
  if($scroll === 'true'){
907
  $ajaxloadmore .= ' data-max-pages="'.$max_pages.'"';
908
  $ajaxloadmore .= (!empty($pause_override)) ? ' data-pause-override="'.$pause_override.'"' : '';
909
  }
910
+
911
  // Pause
912
  $ajaxloadmore .= ' data-pause="'.$pause.'"';
913
+
914
  // Button
915
+ $ajaxloadmore .= ' data-button-label="'.$button_label.'"';
916
  $ajaxloadmore .= (!empty($button_loading_label)) ? ' data-button-loading-label="'.$button_loading_label.'"' : '';
917
+
918
  // Destroy After
919
  $ajaxloadmore .= (!empty($destroy_after)) ? ' data-destroy-after="'.$destroy_after.'"' : '';
920
+
921
  // Transition
922
  $ajaxloadmore .= ' data-transition="'.$transition.'"';
923
  $ajaxloadmore .= ($transition_container === 'false') ? ' data-transition-container="'.$transition_container.'"' : '';
924
  $ajaxloadmore .= (!empty($transition_container_classes)) ? ' data-transition-container-classes="'.$transition_container_classes.'"' : '';
925
+
926
  // Masonry
927
  $ajaxloadmore .= (!empty($masonry_selector)) ? ' data-masonry-selector="'.$masonry_selector.'"' : '';
928
  $ajaxloadmore .= (!empty($masonry_columnwidth)) ? ' data-masonry-columnwidth="'.$masonry_columnwidth.'"' : '';
929
  $ajaxloadmore .= (!empty($masonry_animation)) ? ' data-masonry-animation="'.$masonry_animation.'"' : '';
930
  $ajaxloadmore .= (!empty($masonry_horizontalorder)) ? ' data-masonry-horizontalorder="'.$masonry_horizontalorder.'"' : '';
931
+
932
  // Images Loaded
933
  $ajaxloadmore .= (!empty($images_loaded)) ? ' data-images-loaded="'.$images_loaded.'"' : '';
934
+
935
  // Primary
936
  $ajaxloadmore .= ($primary !== false) ? ' data-primary="true"' : '';
937
+
938
  $ajaxloadmore .= '>';
939
  // End .alm-listing
940
+
941
+
942
+ // Preloaded
943
  // Add Preloaded Posts
944
  $noscript_pagingnav = '';
945
  if(has_action('alm_preload_installed') && $preloaded === 'true'){
946
  include(ALM_PATH .'core/classes/includes/preloaded.php');
947
  }
948
+
949
 
950
  // Single Post
951
  // Get first post and append to alm object
952
  if(has_action('alm_single_post_installed') && $single_post){
953
+
954
+
955
  $repeater_type = preg_split('/(?=\d)/', $repeater, 2); // split $repeater at number to retrieve type
956
  $repeater_type = $repeater_type[0]; // (default | repeater | template_)
957
+
958
  if($theme_repeater != 'null' && has_filter('alm_get_theme_repeater')){
959
  $repeater_type = null;
960
  }
971
  *
972
  * @return $args;
973
  */
974
+
975
  if($offset < 1){
976
  // Only render include if offset is zero
977
  $single_post_output .= apply_filters('alm_single_post_inc', $repeater, $repeater_type, $theme_repeater, $single_post_id, $post_type);
978
  }
979
+
980
 
981
  $single_post_output .= '</div>';
982
  $ajaxloadmore .= $single_post_output; // Add $single_post_output data to $ajaxloadmore
993
  $nextpage_is_paged = ($nextpage_start > 1) ? true : false;
994
 
995
  $alm_nextpage_output = apply_filters('alm_init_nextpage', $nextpage_post_id, $nextpage_start,$nextpage_is_paged, $paging, $div_id, $id);
996
+
997
  $ajaxloadmore .= $alm_nextpage_output;
998
 
999
  }
1002
 
1003
  // Masonry Hook (After)
1004
  $ajaxloadmore .= apply_filters('alm_masonry_after', $transition);
1005
+
1006
+
1007
  // Close ALM container element
1008
+ $ajaxloadmore .= '</'.$container_element.'>';
1009
+
1010
+
1011
+ /*
1012
  * alm_noscript (Generates <noscript/> element of current query)
1013
  *
1014
+ * ALM Core Filter Hook
1015
  *
1016
  * @return html;
1017
  */
1018
  if(($seo === 'true' || $filters) && $preloaded !== 'true' && !$restapi){
1019
  $ajaxloadmore .= apply_filters('alm_noscript', $query_args, $container_element, $css_classes, $transition_container_classes);
1020
  }
1021
+
1022
+ // Render <noscript> pagination for SEO and Preloaded (./preloaded.php)
1023
+ $ajaxloadmore .= (!empty($noscript_pagingnav)) ? $noscript_pagingnav : '';
1024
 
1025
 
1026
  /*
1030
  *
1031
  * @return html;
1032
  */
1033
+ $ajaxloadmore .= apply_filters('alm_before_button', '');
1034
+
1035
+
1036
  // Create Load More button
1037
+ $ajaxloadmore .= self::alm_render_button($seo, $paging, $button_classname, $button_label, $canonicalURL);
 
 
 
 
 
1038
 
 
 
 
 
1039
 
1040
+ /*
1041
+ * alm_after_button
1042
+ *
1043
+ * ALM Core Filter Hook
1044
+ *
1045
+ * @return html;
1046
+ */
1047
+ $ajaxloadmore .= apply_filters('alm_after_button', '');
1048
+
1049
+
1050
  // No results text
1051
  if($no_results_text !== '' && !empty($no_results_text)){
1052
  $ajaxloadmore .= '<div class="alm-no-results" style="display: none;">'. $no_results_text .'</div>';
1053
  }
1054
+
1055
+
1056
+ // Render <noscript> pagination for Nextpage addon
1057
+ if(has_action('alm_nextpage_installed') && $nextpage){
1058
+ $ajaxloadmore .= apply_filters( 'alm_nextpage_noscript_paging', $query_args['post_id'], $query_args['id'] ); // located in Nextpage add-on
1059
+ }
1060
+
1061
+
1062
  // Close #ajax-load-more
1063
+ $ajaxloadmore .= '</div>';
1064
 
1065
 
1066
  /*
1078
 
1079
 
1080
  // REST API Add-on
1081
+ // - add <script/> template to page
1082
  if(has_action('alm_rest_api_installed') && $restapi){
1083
  if($theme_repeater != 'null' && has_action('alm_get_rest_theme_repeater')){
1084
  do_action('alm_get_rest_theme_repeater', $theme_repeater);
1088
  }
1089
  }
1090
  // End REST API Add-on
1091
+
1092
+
1093
+
1094
  // Add localized vars
1095
  ALM_LOCALIZE::add_localized_var('id', $master_id, $localize_id);
1096
+
1097
+
1098
+
1099
  /*
1100
  * alm_create_script_vars
1101
  *
1103
  *
1104
  * @return <script>
1105
  */
1106
+ ALM_LOCALIZE::create_script_vars($localize_id);
1107
+
1108
+
 
1109
  return $ajaxloadmore; // End $ajaxloadmore object
1110
+
1111
  }
1112
+
1113
+
1114
+
1115
  /**
1116
  * alm_render_button
1117
  * Render the load more button.
1120
  * @return $html
1121
  */
1122
  public static function alm_render_button($seo, $paging, $button_classname, $button_label, $canonicalURL){
1123
+
1124
+ $html = '<div class="alm-btn-wrap" style="visibility: hidden;">';
1125
+ if($paging !== 'true'){
1126
  $btn_element = 'button';
1127
  $btn_href = '';
1128
+ $btn_rel = ' rel="next"';
1129
+ $html .= '<'. $btn_element .' class="alm-load-more-btn more'. $button_classname .'"'. $btn_href . $btn_rel .'>'. $button_label .'</'. $btn_element .'>';
1130
+ }
1131
  $html .= '</div>';
1132
+
1133
+ return $html;
1134
+
1135
+ }
1136
 
1137
  }
1138
+
1139
  endif;
1140
 
core/dist/js/ajax-load-more.js CHANGED
@@ -180,6 +180,10 @@ var _noResults = __webpack_require__(/*! ./modules/noResults */ "./core/src/js/m
180
 
181
  var _noResults2 = _interopRequireDefault(_noResults);
182
 
 
 
 
 
183
  var _srcsetPolyfill = __webpack_require__(/*! ./helpers/srcsetPolyfill */ "./core/src/js/helpers/srcsetPolyfill.js");
184
 
185
  var _srcsetPolyfill2 = _interopRequireDefault(_srcsetPolyfill);
@@ -398,6 +402,7 @@ var alm_is_filtering = false;
398
  alm.extensions.acf = alm.listing.dataset.acf; // ACF
399
  alm.extensions.acf_field_type = alm.listing.dataset.acfFieldType;
400
  alm.extensions.acf_field_name = alm.listing.dataset.acfFieldName;
 
401
  alm.extensions.acf_post_id = alm.listing.dataset.acfPostId;
402
  alm.extensions.acf = alm.extensions.acf === 'true' ? true : false;
403
  // if field type, name or post ID is empty
@@ -755,7 +760,8 @@ var alm_is_filtering = false;
755
  'acf': 'true',
756
  'post_id': alm.extensions.acf_post_id,
757
  'field_type': alm.extensions.acf_field_type,
758
- 'field_name': alm.extensions.acf_field_name
 
759
  };
760
  }
761
 
@@ -1063,6 +1069,7 @@ var alm_is_filtering = false;
1063
  total = meta.postcount;
1064
  alm.totalposts = meta.totalposts;
1065
  alm.totalposts = alm.addons.preloaded === 'true' ? alm.totalposts - alm.addons.preloaded_amount : alm.totalposts;
 
1066
  }
1067
 
1068
  // Set alm.html as plain text return
@@ -1113,6 +1120,11 @@ var alm_is_filtering = false;
1113
  }
1114
  }
1115
 
 
 
 
 
 
1116
  /*
1117
  * Set localized variables
1118
  */
@@ -3491,6 +3503,37 @@ exports.default = stripEmptyNodes;
3491
 
3492
  /***/ }),
3493
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3494
  /***/ "./core/src/js/modules/fadeIn.js":
3495
  /*!***************************************!*\
3496
  !*** ./core/src/js/modules/fadeIn.js ***!
180
 
181
  var _noResults2 = _interopRequireDefault(_noResults);
182
 
183
+ var _almDebug = __webpack_require__(/*! ./modules/almDebug */ "./core/src/js/modules/almDebug.js");
184
+
185
+ var _almDebug2 = _interopRequireDefault(_almDebug);
186
+
187
  var _srcsetPolyfill = __webpack_require__(/*! ./helpers/srcsetPolyfill */ "./core/src/js/helpers/srcsetPolyfill.js");
188
 
189
  var _srcsetPolyfill2 = _interopRequireDefault(_srcsetPolyfill);
402
  alm.extensions.acf = alm.listing.dataset.acf; // ACF
403
  alm.extensions.acf_field_type = alm.listing.dataset.acfFieldType;
404
  alm.extensions.acf_field_name = alm.listing.dataset.acfFieldName;
405
+ alm.extensions.acf_parent_field_name = alm.listing.dataset.acfParentFieldName;
406
  alm.extensions.acf_post_id = alm.listing.dataset.acfPostId;
407
  alm.extensions.acf = alm.extensions.acf === 'true' ? true : false;
408
  // if field type, name or post ID is empty
760
  'acf': 'true',
761
  'post_id': alm.extensions.acf_post_id,
762
  'field_type': alm.extensions.acf_field_type,
763
+ 'field_name': alm.extensions.acf_field_name,
764
+ 'parent_field_name': alm.extensions.acf_parent_field_name
765
  };
766
  }
767
 
1069
  total = meta.postcount;
1070
  alm.totalposts = meta.totalposts;
1071
  alm.totalposts = alm.addons.preloaded === 'true' ? alm.totalposts - alm.addons.preloaded_amount : alm.totalposts;
1072
+ alm.debug = meta.debug ? meta.debug : '';
1073
  }
1074
 
1075
  // Set alm.html as plain text return
1120
  }
1121
  }
1122
 
1123
+ /*
1124
+ * Display alm_debug results
1125
+ */
1126
+ (0, _almDebug2.default)(alm);
1127
+
1128
  /*
1129
  * Set localized variables
1130
  */
3503
 
3504
  /***/ }),
3505
 
3506
+ /***/ "./core/src/js/modules/almDebug.js":
3507
+ /*!*****************************************!*\
3508
+ !*** ./core/src/js/modules/almDebug.js ***!
3509
+ \*****************************************/
3510
+ /*! no static exports found */
3511
+ /***/ (function(module, exports, __webpack_require__) {
3512
+
3513
+ "use strict";
3514
+
3515
+
3516
+ Object.defineProperty(exports, "__esModule", {
3517
+ value: true
3518
+ });
3519
+ /**
3520
+ * Display alm_debug results
3521
+ * https://connekthq.com/plugins/ajax-load-more/docs/filter-hooks/#alm_debug
3522
+ *
3523
+ * @param {object} alm Global alm object
3524
+ * @since 5.1.6
3525
+ */
3526
+
3527
+ var almDebug = function almDebug(alm) {
3528
+ if (alm && alm.debug) {
3529
+ console.log('alm_debug info:', alm.debug);
3530
+ }
3531
+ };
3532
+
3533
+ exports.default = almDebug;
3534
+
3535
+ /***/ }),
3536
+
3537
  /***/ "./core/src/js/modules/fadeIn.js":
3538
  /*!***************************************!*\
3539
  !*** ./core/src/js/modules/fadeIn.js ***!
core/dist/js/ajax-load-more.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack://ajaxloadmore/webpack/bootstrap","webpack://ajaxloadmore/./core/src/js/ajax-load-more.js","webpack://ajaxloadmore/./core/src/js/helpers/almAppendChild.js","webpack://ajaxloadmore/./core/src/js/helpers/almAppendChildren.js","webpack://ajaxloadmore/./core/src/js/helpers/almDomParser.js","webpack://ajaxloadmore/./core/src/js/helpers/almGetCacheUrl.js","webpack://ajaxloadmore/./core/src/js/helpers/almTableWrap.js","webpack://ajaxloadmore/./core/src/js/helpers/commentReplyFix.js","webpack://ajaxloadmore/./core/src/js/helpers/getParameterByName.js","webpack://ajaxloadmore/./core/src/js/helpers/helpers.js","webpack://ajaxloadmore/./core/src/js/helpers/polyfills.js","webpack://ajaxloadmore/./core/src/js/helpers/queryParams.js","webpack://ajaxloadmore/./core/src/js/helpers/srcsetPolyfill.js","webpack://ajaxloadmore/./core/src/js/helpers/stripEmptyNodes.js","webpack://ajaxloadmore/./core/src/js/modules/fadeIn.js","webpack://ajaxloadmore/./core/src/js/modules/fadeOut.js","webpack://ajaxloadmore/./core/src/js/modules/filtering.js","webpack://ajaxloadmore/./core/src/js/modules/insertScript.js","webpack://ajaxloadmore/./core/src/js/modules/masonry.js","webpack://ajaxloadmore/./core/src/js/modules/noResults.js","webpack://ajaxloadmore/./core/src/js/modules/resultsText.js","webpack://ajaxloadmore/./core/src/js/modules/setFocus.js","webpack://ajaxloadmore/./core/src/js/modules/setLocalizedVars.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/lib/noConflict.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/noConflict.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/es6/index.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/fn/array/includes.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/fn/object/entries.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/fn/object/get-own-property-descriptors.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/fn/object/values.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/fn/promise/finally.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/fn/string/pad-end.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/fn/string/pad-start.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/fn/symbol/async-iterator.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_a-function.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_a-number-value.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_add-to-unscopables.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_advance-string-index.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_an-instance.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_an-object.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_array-copy-within.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_array-fill.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_array-includes.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_array-methods.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_array-reduce.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_array-species-constructor.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_array-species-create.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_bind.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_classof.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_cof.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_collection-strong.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_collection-weak.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_collection.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_core.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_create-property.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_ctx.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_date-to-iso-string.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_date-to-primitive.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_defined.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_descriptors.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_dom-create.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_enum-bug-keys.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_enum-keys.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_export.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_fails-is-regexp.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_fails.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_fix-re-wks.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_flags.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_for-of.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_function-to-string.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_global.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_has.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_hide.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_html.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_ie8-dom-define.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_inherit-if-required.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_invoke.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_iobject.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_is-array-iter.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_is-array.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_is-integer.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_is-object.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_is-regexp.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_iter-call.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_iter-create.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_iter-define.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_iter-detect.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_iter-step.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_iterators.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_library.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_math-expm1.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_math-fround.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_math-log1p.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_math-sign.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_meta.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_microtask.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_new-promise-capability.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_object-assign.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_object-create.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_object-dp.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_object-dps.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_object-gopd.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_object-gopn-ext.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_object-gopn.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_object-gops.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_object-gpo.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_object-keys-internal.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_object-keys.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_object-pie.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_object-sap.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_object-to-array.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_own-keys.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_parse-float.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_parse-int.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_perform.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_promise-resolve.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_property-desc.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_redefine-all.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_redefine.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_regexp-exec-abstract.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_regexp-exec.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_same-value.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_set-proto.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_set-species.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_set-to-string-tag.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_shared-key.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_shared.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_species-constructor.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_strict-method.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_string-at.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_string-context.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_string-html.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_string-pad.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_string-repeat.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_string-trim.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_string-ws.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_task.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_to-absolute-index.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_to-index.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_to-integer.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_to-iobject.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_to-length.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_to-object.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_to-primitive.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_typed-array.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_typed-buffer.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_typed.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_uid.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_user-agent.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_validate-collection.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_wks-define.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_wks-ext.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/_wks.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/core.get-iterator-method.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.array.copy-within.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.array.every.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.array.fill.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.array.filter.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.array.find-index.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.array.find.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.array.for-each.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.array.from.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.array.index-of.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.array.is-array.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.array.iterator.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.array.join.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.array.last-index-of.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.array.map.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.array.of.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.array.reduce-right.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.array.reduce.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.array.slice.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.array.some.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.array.sort.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.array.species.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.date.now.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.date.to-iso-string.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.date.to-json.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.date.to-primitive.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.date.to-string.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.function.bind.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.function.has-instance.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.function.name.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.map.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.math.acosh.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.math.asinh.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.math.atanh.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.math.cbrt.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.math.clz32.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.math.cosh.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.math.expm1.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.math.fround.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.math.hypot.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.math.imul.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.math.log10.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.math.log1p.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.math.log2.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.math.sign.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.math.sinh.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.math.tanh.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.math.trunc.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.number.constructor.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.number.epsilon.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.number.is-finite.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.number.is-integer.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.number.is-nan.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.number.is-safe-integer.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.number.max-safe-integer.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.number.min-safe-integer.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.number.parse-float.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.number.parse-int.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.number.to-fixed.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.number.to-precision.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.object.assign.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.object.create.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.object.define-properties.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.object.define-property.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.object.freeze.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.object.get-own-property-descriptor.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.object.get-own-property-names.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.object.get-prototype-of.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.object.is-extensible.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.object.is-frozen.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.object.is-sealed.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.object.is.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.object.keys.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.object.prevent-extensions.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.object.seal.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.object.set-prototype-of.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.object.to-string.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.parse-float.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.parse-int.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.promise.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.reflect.apply.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.reflect.construct.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.reflect.define-property.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.reflect.delete-property.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.reflect.enumerate.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.reflect.get-own-property-descriptor.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.reflect.get-prototype-of.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.reflect.get.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.reflect.has.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.reflect.is-extensible.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.reflect.own-keys.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.reflect.prevent-extensions.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.reflect.set-prototype-of.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.reflect.set.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.regexp.constructor.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.regexp.exec.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.regexp.flags.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.regexp.match.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.regexp.replace.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.regexp.search.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.regexp.split.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.regexp.to-string.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.set.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.string.anchor.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.string.big.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.string.blink.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.string.bold.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.string.code-point-at.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.string.ends-with.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.string.fixed.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.string.fontcolor.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.string.fontsize.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.string.from-code-point.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.string.includes.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.string.italics.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.string.iterator.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.string.link.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.string.raw.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.string.repeat.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.string.small.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.string.starts-with.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.string.strike.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.string.sub.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.string.sup.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.string.trim.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.symbol.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.typed.array-buffer.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.typed.data-view.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.typed.float32-array.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.typed.float64-array.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.typed.int16-array.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.typed.int32-array.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.typed.int8-array.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.typed.uint16-array.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.typed.uint32-array.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.typed.uint8-array.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.typed.uint8-clamped-array.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.weak-map.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.weak-set.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es7.array.includes.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es7.object.entries.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es7.object.get-own-property-descriptors.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es7.object.values.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es7.promise.finally.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es7.string.pad-end.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es7.string.pad-start.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/es7.symbol.async-iterator.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/web.dom.iterable.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/web.immediate.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/modules/web.timers.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/core-js/web/index.js","webpack://ajaxloadmore/./node_modules/@babel/polyfill/node_modules/regenerator-runtime/runtime.js","webpack://ajaxloadmore/./node_modules/axios/index.js","webpack://ajaxloadmore/./node_modules/axios/lib/adapters/xhr.js","webpack://ajaxloadmore/./node_modules/axios/lib/axios.js","webpack://ajaxloadmore/./node_modules/axios/lib/cancel/Cancel.js","webpack://ajaxloadmore/./node_modules/axios/lib/cancel/CancelToken.js","webpack://ajaxloadmore/./node_modules/axios/lib/cancel/isCancel.js","webpack://ajaxloadmore/./node_modules/axios/lib/core/Axios.js","webpack://ajaxloadmore/./node_modules/axios/lib/core/InterceptorManager.js","webpack://ajaxloadmore/./node_modules/axios/lib/core/createError.js","webpack://ajaxloadmore/./node_modules/axios/lib/core/dispatchRequest.js","webpack://ajaxloadmore/./node_modules/axios/lib/core/enhanceError.js","webpack://ajaxloadmore/./node_modules/axios/lib/core/settle.js","webpack://ajaxloadmore/./node_modules/axios/lib/core/transformData.js","webpack://ajaxloadmore/./node_modules/axios/lib/defaults.js","webpack://ajaxloadmore/./node_modules/axios/lib/helpers/bind.js","webpack://ajaxloadmore/./node_modules/axios/lib/helpers/btoa.js","webpack://ajaxloadmore/./node_modules/axios/lib/helpers/buildURL.js","webpack://ajaxloadmore/./node_modules/axios/lib/helpers/combineURLs.js","webpack://ajaxloadmore/./node_modules/axios/lib/helpers/cookies.js","webpack://ajaxloadmore/./node_modules/axios/lib/helpers/isAbsoluteURL.js","webpack://ajaxloadmore/./node_modules/axios/lib/helpers/isURLSameOrigin.js","webpack://ajaxloadmore/./node_modules/axios/lib/helpers/normalizeHeaderName.js","webpack://ajaxloadmore/./node_modules/axios/lib/helpers/parseHeaders.js","webpack://ajaxloadmore/./node_modules/axios/lib/helpers/spread.js","webpack://ajaxloadmore/./node_modules/axios/lib/utils.js","webpack://ajaxloadmore/./node_modules/ev-emitter/ev-emitter.js","webpack://ajaxloadmore/./node_modules/imagesloaded/imagesloaded.js","webpack://ajaxloadmore/./node_modules/is-buffer/index.js","webpack://ajaxloadmore/./node_modules/process/browser.js","webpack://ajaxloadmore/./node_modules/qs/lib/formats.js","webpack://ajaxloadmore/./node_modules/qs/lib/index.js","webpack://ajaxloadmore/./node_modules/qs/lib/parse.js","webpack://ajaxloadmore/./node_modules/qs/lib/stringify.js","webpack://ajaxloadmore/./node_modules/qs/lib/utils.js","webpack://ajaxloadmore/./node_modules/smoothscroll-polyfill/dist/smoothscroll.js"],"names":["queryParams","resultsText","require","qs","imagesLoaded","smoothscroll","alm_is_filtering","ajaxloadmore","alm_localize","window","alm","el","alm_no_results","Array","parseInt","page","setTimeout","almChildren","almChildArray","btnWrap","element","container","document","cache_page","axios","response","action","acf_field_name","nextpage_startpage","single_post_slug","comments_callback","usersOrderby","cta_theme_repeater","config","arrayFormat","encode","ajaxURL","params","data","queryType","alm_rest_url","post_id","template","tab_template","results","html","obj","alm_rest_template","wp","meta","postcount","totalposts","i","result","console","isPaged","reveal","pagingContent","total","pagenum","querystring","seo_class","filters_class","preloaded_class","return_data","container_array","posts_per_page","pages","Math","k","p","alm_reveal","p2","insertScript","currentPage","classes","content","loader","styles","pTop","pBtm","h","nested","id","initial_id","order","taxonomy","excluded_terms","post_type","init","location","error","button","e","resize","clearTimeout","trigger","btnPos","scrollTrigger","scrollInstance","scrollHeight","scrollPosition","direction","code","name","value","query","vars","pair","decodeURIComponent","alm_nextpage_pages","alm_nextpage_total","target","alm_instances","filter","transition","speed","tab","url","tracking","gtag","path","ga","__gaTracker","start","almScroll","top","behavior","getOffset","rect","scrollLeft","scrollTop","left","render","options","nodeNameArray","almAppendChild","almAppendChildren","array","almDomParser","type","parser","almGetCacheUrl","cache_url","ext","firstpage","nextpage_cache_url","almTableWrap","table_reveal","table_reveal_array","commentReplyFix","listing","replyLinks","link","commId","parentId","respondId","postId","follow","event","getParameterByName","regex","Object","ownProps","resArray","toStr","isCallable","toInteger","number","Number","isNaN","isFinite","maxSafeInteger","toLength","len","C","items","arrayLike","mapFn","arguments","T","A","kValue","NodeList","thisArg","callback","arr","item","configurable","enumerable","writable","Element","CharacterData","DocumentType","Function","aArgs","fToBind","FNOP","fBound","ObjectProto","defineGetter","defineSetter","lookupGetter","lookupSetter","hasOwnProp","prop","descriptor","getter","setter","props","propDescriptor","get","that","attributes","attsLength","toUpperCase","n0","HTML5_DOMStringMap","attribute","attrVal","attrName","propName","set","almGetAjaxParams","almGetRestParams","slug","canonical_url","encodeURIComponent","offset","repeater","seo_start_page","start_page","post_format","category","category__not_in","tag","tag__not_in","taxonomy_terms","taxonomy_operator","taxonomy_relation","meta_key","meta_value","meta_compare","meta_relation","meta_type","author","year","month","day","post_status","orderby","post__in","post__not_in","search","s","custom_args","lang","preloaded","preloaded_amount","srcsetPolyfill","ua","imgs","img","stripEmptyNodes","nodes","node","almFadeIn","op","timer","clearInterval","almFadeOut","fadeEffect","almFilter","almFilterTransition","new_el","almCompleteFilterTransition","paging","almSetFilters","key","almFilterComplete","almFiltersAddonComplete","almTabsComplete","children","replace","isScript","clone","script","msnry","almMasonry","selector","columnWidth","animation","horizontalOrder","masonry_init","duration","hidden","visible","defaults","itemSelector","transitionDuration","hiddenStyle","transform","opacity","visibleStyle","alm_masonry_vars","almNoResults","almResultsText","almGetResultsText","almInitResultsText","resultsType","current","almRenderResultsText","text","setFocus","parent","scrollContainer","x","y","setLocalizedVars"],"mappings":";;AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,kDAA0C,gCAAgC;AAC1E;AACA;;AAEA;AACA;AACA;AACA,gEAAwD,kBAAkB;AAC1E;AACA,yDAAiD,cAAc;AAC/D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAyC,iCAAiC;AAC1E,wHAAgH,mBAAmB,EAAE;AACrI;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAs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