WordPress Infinite Scroll – Ajax Load More - Version 3.1.1

Version Description

  • July 10, 2017 =

  • UPGRADE NOTICE - Version 3.1.1 drops support for IE8.

  • Update - Added support for ALM Filtering + Masonry.

  • Update - Added support for Preloaded + Masonry.

  • Update - Started transitioning Ajax Load More away from jQuery. This will be a long process but hopefully will be able to remove dependency in the near future.

  • FIX - Fixed issue where .alm-loading class was not being removed after Ajax post load.

  • FIX - Removed Advanced Custom Fields from licenses section - this extension does NOT require a license key.

Download this release

Release Info

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

Code changes from version 3.1.0 to 3.1.1

.babelrc ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ {
2
+ "presets": ["es2015"]
3
+ }
README.txt CHANGED
@@ -4,7 +4,7 @@ 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, ajax load posts, woocommerce, ajax load more
5
  Requires at least: 3.6
6
  Tested up to: 4.8
7
- Stable tag: 3.1.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -56,6 +56,7 @@ Check out the examples below:
56
  * [Multipage Posts & Pages](https://connekthq.com/plugins/ajax-load-more/add-ons/next-page/next-page-default/) **
57
  * [Single Posts](https://connekthq.com/ajax-load-more-posts/alm-post-example/) **
58
  * [Comments](http://examples.connekthq.com/alm-comments/example-post/) **
 
59
 
60
  ** Add-on required
61
 
@@ -353,6 +354,15 @@ How to install Ajax Load More.
353
 
354
  == Changelog ==
355
 
 
 
 
 
 
 
 
 
 
356
  = 3.1.0 - May 30, 2017 =
357
 
358
  * UPGRADE NOTICE - Ajax Load More has changed the directory from which the core CSS and JS are loaded. Core CSS and JS is now loaded from the `/ajax-load-more/core/dist/` directory - you may need to clear your browser and site cache after update.
4
  Tags: infinite scroll, infinite scrolling, scroll, infinite, lazy load, lazy loading, endless scroll, pagination, ajax pagination, ajax, ajax posts, ajax load posts, woocommerce, ajax load more
5
  Requires at least: 3.6
6
  Tested up to: 4.8
7
+ Stable tag: 3.1.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
56
  * [Multipage Posts & Pages](https://connekthq.com/plugins/ajax-load-more/add-ons/next-page/next-page-default/) **
57
  * [Single Posts](https://connekthq.com/ajax-load-more-posts/alm-post-example/) **
58
  * [Comments](http://examples.connekthq.com/alm-comments/example-post/) **
59
+ * [Advanced Custom Fields](https://connekthq.com/plugins/ajax-load-more/examples/advanced-custom-fields/)
60
 
61
  ** Add-on required
62
 
354
 
355
  == Changelog ==
356
 
357
+ = 3.1.1 - July 10, 2017 =
358
+
359
+ * UPGRADE NOTICE - Version 3.1.1 drops support for IE8.
360
+ * Update - Added support for ALM Filtering + Masonry.
361
+ * Update - Added support for Preloaded + Masonry.
362
+ * Update - Started transitioning Ajax Load More away from jQuery. This will be a long process but hopefully will be able to remove dependency in the near future.
363
+ * FIX - Fixed issue where .alm-loading class was not being removed after Ajax post load.
364
+ * FIX - Removed Advanced Custom Fields from licenses section - this extension does NOT require a license key.
365
+
366
  = 3.1.0 - May 30, 2017 =
367
 
368
  * UPGRADE NOTICE - Ajax Load More has changed the directory from which the core CSS and JS are loaded. Core CSS and JS is now loaded from the `/ajax-load-more/core/dist/` directory - you may need to clear your browser and site cache after update.
admin/admin-functions.php CHANGED
@@ -28,7 +28,7 @@ function alm_is_admin_screen(){
28
  */
29
 
30
  function alm_has_addon(){
31
- if(has_action('alm_acf_installed') || has_action('alm_cta_installed') || has_action('alm_comments_installed') || has_action('alm_unlimited_installed') || has_action('alm_layouts_installed') || has_action('alm_nextpage_installed') || has_action('alm_preload_installed') || has_action('alm_paging_installed') || has_action('alm_prev_post_installed') || has_action('alm_rest_api_installed') || has_action('alm_seo_installed') || has_action('alm_theme_repeaters_installed')) {
32
  return true;
33
  } else {
34
  return false;
@@ -46,7 +46,7 @@ function alm_has_addon(){
46
  */
47
 
48
  function alm_has_addon_shortcodes(){
49
- if(has_action('alm_acf_installed') || has_action('alm_cache_installed') || has_action('alm_cache_installed') || has_action('alm_cta_installed') || has_action('alm_comments_installed') || has_action('alm_unlimited_installed') || has_action('alm_nextpage_installed') || has_action('alm_preload_installed') || has_action('alm_paging_installed') || has_action('alm_prev_post_installed') || has_action('alm_rest_api_installed') || has_action('alm_seo_installed') || has_action('alm_theme_repeaters_installed')) {
50
  return true;
51
  } else {
52
  return false;
28
  */
29
 
30
  function alm_has_addon(){
31
+ if(has_action('alm_cta_installed') || has_action('alm_comments_installed') || has_action('alm_unlimited_installed') || has_action('alm_layouts_installed') || has_action('alm_nextpage_installed') || has_action('alm_preload_installed') || has_action('alm_paging_installed') || has_action('alm_prev_post_installed') || has_action('alm_rest_api_installed') || has_action('alm_seo_installed') || has_action('alm_theme_repeaters_installed')) {
32
  return true;
33
  } else {
34
  return false;
46
  */
47
 
48
  function alm_has_addon_shortcodes(){
49
+ if(has_action('alm_cache_installed') || has_action('alm_cache_installed') || has_action('alm_cta_installed') || has_action('alm_comments_installed') || has_action('alm_unlimited_installed') || has_action('alm_nextpage_installed') || has_action('alm_preload_installed') || has_action('alm_paging_installed') || has_action('alm_prev_post_installed') || has_action('alm_rest_api_installed') || has_action('alm_seo_installed') || has_action('alm_theme_repeaters_installed')) {
50
  return true;
51
  } else {
52
  return false;
admin/views/licenses.php CHANGED
@@ -13,7 +13,6 @@
13
  <p><?php _e('Manage your Ajax Load More license key\'s below - enter a key for each of your add-ons to receive plugin update notifications directly within the <a href="plugins.php">WP Plugins dashboard</a>.', 'ajax-load-more'); ?></p>
14
 
15
  <?php
16
- // alm_acf_installed
17
  // alm_cache_installed
18
  // alm_cta_installed
19
  // alm_comments_installed
@@ -30,74 +29,8 @@
30
  <?php
31
  // Check if any add ons are installed. /admin/admin-functions.php
32
  if(alm_has_addon()) : ?>
33
-
34
-
35
- <?php
36
- if (has_action('alm_acf_installed')){
37
- // ACF
38
- $alm_acf_license = get_option( 'alm_acf_license_key' );
39
- $alm_acf_status = get_option( 'alm_acf_license_status' );
40
- $alm_acf_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/advacned-custom-fields/';
41
- ?>
42
- <div class="license" id="license-acf">
43
- <div class="license-title">
44
- <div class="status <?php if($alm_acf_status == 'valid'){echo 'valid';}else{echo 'invalid';} ?> "></div>
45
- <h2><?php _e('Advanced Custom Fields', 'ajax-load-more'); ?></h2>
46
- </div>
47
- <div class="license-wrap">
48
- <form method="post" action="options.php">
49
-
50
- <?php if( $alm_acf_status !== false && $alm_acf_status == 'valid' ) { ?>
51
- <!-- nothing -->
52
- <?php } else { ?>
53
- <div class="no-license">
54
- <h4><?php _e('Don\'t have a license?', 'ajax-load-more'); ?></h4>
55
- <p><?php _e('A valid license is required to activate and receive plugin updates directly in your WordPress dashboard', 'ajax-load-more'); ?> &rarr; <a href="<?php echo $alm_acf_url; ?>?utm_source=WP%20Admin&utm_medium=Licenses&utm_campaign=ACF" target="blank"><strong><?php _e('Purchase Now', 'ajax-load-more'); ?>!</strong></a></p>
56
- </div>
57
- <?php } ?>
58
 
59
- <?php settings_fields('alm_acf_license'); ?>
60
 
61
- <label class="description offscreen" for="alm_acf_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
62
- <div class="license-key-field">
63
- <input id="alm_acf_license_key" name="alm_acf_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_acf_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
64
- <?php if( $alm_acf_status !== false && $alm_acf_status == 'valid' ) { ?>
65
- <span class="status active">
66
- <?php _e('Active', 'ajax-load-more'); ?>
67
- </span>
68
- <?php } else { ?>
69
- <span class="status inactive">
70
- <?php _e('Inactive', 'ajax-load-more'); ?>
71
- </span>
72
- <?php } ?>
73
- </div>
74
-
75
- <?php wp_nonce_field( 'alm_acf_license_nonce', 'alm_acf_license_nonce' ); ?>
76
- <div class="license-btn-wrap"
77
- data-name="<?php echo ALM_ACF_ITEM_NAME; ?>"
78
- data-url="<?php echo ALM_STORE_URL; ?>"
79
- data-option-status="alm_acf_license_status"
80
- data-option-key="alm_acf_license_key"
81
- data-upgrade-url="<?php echo $alm_acf_url; ?>">
82
- <button type="button" class="activate license-btn <?php if($alm_acf_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
83
- <?php _e('Activate License', 'ajax-load-more'); ?>
84
- </button>
85
-
86
- <button type="button" class="deactivate license-btn <?php if($alm_acf_status !== 'valid'){ echo 'hide'; } ?> button-secondary" data-type="deactivate">
87
- <?php _e('Deactivate License', 'ajax-load-more'); ?>
88
- </button>
89
- </div>
90
-
91
- </form>
92
- </div>
93
- <div class="loading"></div>
94
- </div>
95
- <?php
96
- }
97
- // End ACF
98
- ?>
99
-
100
-
101
  <?php
102
  if (has_action('alm_cache_installed')){
103
  // CACHE
@@ -846,15 +779,11 @@
846
  <li><?php _e('License keys are found in the purchase receipt email that was sent immediately after your successful purchase and in the <a target="_blank" href="https://connekthq.com/account/">Account</a> section on our website', 'ajax-load-more');?></li>
847
  <li><?php _e('If you cannot locate your key please open a support ticket by filling out the <a href="https://connekthq.com/contact/">form</a> on our website and reference the email address used when you completed the purchase.', 'ajax-load-more'); ?></li>
848
  </ul>
849
- <p><a class="button button-primary button-large" target="_blank" href="https://connekthq.com/account/"><i class="fa fa-chevron-circle-right"></i> Sign Into Your Account</a></p>
850
- </div>
851
- </div>
852
- <div class="cta">
853
- <h3><?php _e('Legacy Users', 'ajax-load-more'); ?></h3>
854
- <div class="cta-inner">
855
- <ul>
856
- <li>If you have made a purchase prior to <u>July 6, 2015</u> you will require a license after updating your add-ons. Please <a href="https://connekthq.com/plugins/ajax-load-more/support/#contact-form" target="_blank">email us</a> with a reference to the email address used when you completed the add-on purchase and we will send your license key.</li>
857
- </ul>
858
  </div>
859
  </div>
860
  </div>
13
  <p><?php _e('Manage your Ajax Load More license key\'s below - enter a key for each of your add-ons to receive plugin update notifications directly within the <a href="plugins.php">WP Plugins dashboard</a>.', 'ajax-load-more'); ?></p>
14
 
15
  <?php
 
16
  // alm_cache_installed
17
  // alm_cta_installed
18
  // alm_comments_installed
29
  <?php
30
  // Check if any add ons are installed. /admin/admin-functions.php
31
  if(alm_has_addon()) : ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
 
 
33
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  <?php
35
  if (has_action('alm_cache_installed')){
36
  // CACHE
779
  <li><?php _e('License keys are found in the purchase receipt email that was sent immediately after your successful purchase and in the <a target="_blank" href="https://connekthq.com/account/">Account</a> section on our website', 'ajax-load-more');?></li>
780
  <li><?php _e('If you cannot locate your key please open a support ticket by filling out the <a href="https://connekthq.com/contact/">form</a> on our website and reference the email address used when you completed the purchase.', 'ajax-load-more'); ?></li>
781
  </ul>
782
+ <p style="padding-top: 10px;">
783
+ <a class="button button-primary button-large" target="_blank" href="https://connekthq.com/account/">
784
+ <i class="fa fa-chevron-circle-right"></i> <?php _e('Sign Into Your Account', 'ajax-load-more'); ?>
785
+ </a>
786
+ </p>
 
 
 
 
787
  </div>
788
  </div>
789
  </div>
ajax-load-more.php CHANGED
@@ -1,19 +1,21 @@
1
  <?php
2
  /*
3
  Plugin Name: Ajax Load More
4
- Plugin URI: http://connekthq.com/plugins/ajax-load-more
5
  Description: The ultimate solution to add infinite scroll functionality to your website.
6
  Text Domain: ajax-load-more
7
  Author: Darren Cooney
8
  Twitter: @KaptonKaos
9
- Author URI: http://connekthq.com
10
- Version: 3.1.0
11
  License: GPL
12
  Copyright: Darren Cooney & Connekt Media
13
  */
14
 
15
- define('ALM_VERSION', '3.1.0');
16
- define('ALM_RELEASE', 'May 30, 2017');
 
 
17
  define('ALM_STORE_URL', 'https://connekthq.com');
18
 
19
 
1
  <?php
2
  /*
3
  Plugin Name: Ajax Load More
4
+ Plugin URI: https://connekthq.com/plugins/ajax-load-more
5
  Description: The ultimate solution to add infinite scroll functionality to your website.
6
  Text Domain: ajax-load-more
7
  Author: Darren Cooney
8
  Twitter: @KaptonKaos
9
+ Author URI: https://connekthq.com
10
+ Version: 3.1.1
11
  License: GPL
12
  Copyright: Darren Cooney & Connekt Media
13
  */
14
 
15
+
16
+
17
+ define('ALM_VERSION', '3.1.1');
18
+ define('ALM_RELEASE', 'July 10, 2017');
19
  define('ALM_STORE_URL', 'https://connekthq.com');
20
 
21
 
core/dist/js/ajax-load-more.js CHANGED
@@ -3,32 +3,48 @@
3
  /*
4
  almMasonry
5
 
6
- Function to trigger built-in Ajax Load More masonry
7
 
8
  @param container object
9
  @param items object
10
  @param selector string
 
 
11
  @since 3.1
12
  */
13
 
14
  var almMasonryInit = true; // flag
15
 
16
- var almMasonry = function almMasonry(container, items, selector) {
17
 
18
- if (almMasonryInit) {
19
- container.imagesLoaded(function () {
20
- items.fadeIn(250);
21
- container.masonry({
22
- itemSelector: selector
23
- });
24
  almMasonryInit = false;
25
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  } else {
 
 
 
27
  container.append(items);
28
- container.imagesLoaded(function () {
29
- items.show();
30
- container.masonry('appended', items);
31
- });
32
  }
33
  };
34
  'use strict';
@@ -43,12 +59,14 @@ var almMasonry = function almMasonry(container, items, selector) {
43
  * http://www.gnu.org/licenses/gpl-2.0.html
44
  *
45
  * Author: Darren Cooney
46
- * Twitter: @KaptonKaos
47
  */
48
 
49
  (function ($) {
50
  "use strict";
51
 
 
 
52
  $.ajaxloadmore = function (el, e) {
53
 
54
  //Prevent loading of unnessasry posts - move user to top of page
@@ -468,11 +486,11 @@ var almMasonry = function almMasonry(container, items, selector) {
468
  // Check for ajax blocker
469
  if (!alm.paging) {
470
  alm.button.addClass('loading');
471
- alm.container.addClass('alm-loading');
472
  if (alm.button_loading_label !== false) {
473
  alm.button.text(alm.button_loading_label);
474
  }
475
  }
 
476
  alm.loading = true;
477
 
478
  // If cache = true && cache_logged_in setting is false
@@ -743,7 +761,7 @@ var almMasonry = function almMasonry(container, items, selector) {
743
  },
744
 
745
  success: function success(data) {
746
- //console.log(data);
747
  if (queryType === 'standard') {
748
  alm.AjaxLoadMore.success(data, false);
749
  } else if (queryType === 'totalpages' && alm.paging && alm.nextpage) {
@@ -973,9 +991,9 @@ var almMasonry = function almMasonry(container, items, selector) {
973
  alm.loading = false;
974
  if (!alm.paging) {
975
  alm.button.delay(alm.speed).removeClass('loading');
976
- alm.container.delay(alm.speed).removeClass('alm-loading');
977
  alm.AjaxLoadMore.resetBtnText();
978
  }
 
979
  alm.AjaxLoadMore.triggerAddons(alm);
980
  });
981
  });
@@ -984,23 +1002,23 @@ var almMasonry = function almMasonry(container, items, selector) {
984
  alm.loading = false;
985
  if (!alm.paging) {
986
  alm.button.delay(alm.speed).removeClass('loading');
987
- alm.container.delay(alm.speed).removeClass('loading');
988
  alm.AjaxLoadMore.resetBtnText();
989
  }
 
990
  alm.AjaxLoadMore.triggerAddons(alm);
991
  });
992
  }
993
  } else if (alm.transition === 'masonry') {
994
  // masonry
995
 
996
- almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector);
997
 
998
  if (!alm.paging) {
999
  alm.button.delay(alm.speed).removeClass('loading');
1000
- alm.container.delay(alm.speed).removeClass('loading');
1001
  alm.AjaxLoadMore.resetBtnText();
1002
  }
1003
  alm.loading = false;
 
1004
  alm.AjaxLoadMore.triggerAddons(alm);
1005
  } else if (alm.transition === 'none') {
1006
  // None
@@ -1016,7 +1034,6 @@ var almMasonry = function almMasonry(container, items, selector) {
1016
  alm.loading = false;
1017
  if (!alm.paging) {
1018
  alm.button.delay(alm.speed).removeClass('loading');
1019
- alm.container.delay(alm.speed).removeClass('loading');
1020
  alm.AjaxLoadMore.resetBtnText();
1021
  }
1022
  } else {
@@ -1027,9 +1044,9 @@ var almMasonry = function almMasonry(container, items, selector) {
1027
  alm.loading = false;
1028
  if (!alm.paging) {
1029
  alm.button.delay(alm.speed).removeClass('loading');
1030
- alm.container.delay(alm.speed).removeClass('loading');
1031
  alm.AjaxLoadMore.resetBtnText();
1032
  }
 
1033
  alm.AjaxLoadMore.triggerAddons(alm);
1034
  });
1035
  });
@@ -1038,9 +1055,9 @@ var almMasonry = function almMasonry(container, items, selector) {
1038
  alm.loading = false;
1039
  if (!alm.paging) {
1040
  alm.button.delay(alm.speed).removeClass('loading');
1041
- alm.container.delay(alm.speed).removeClass('loading');
1042
  alm.AjaxLoadMore.resetBtnText();
1043
  }
 
1044
  alm.AjaxLoadMore.triggerAddons(alm);
1045
  });
1046
  }
@@ -1056,9 +1073,11 @@ var almMasonry = function almMasonry(container, items, selector) {
1056
  if ($.isFunction($.fn.almOnPagingComplete)) {
1057
  $.fn.almOnPagingComplete(alm);
1058
  }
 
1059
  alm.AjaxLoadMore.triggerAddons(alm);
1060
  });
1061
  } else {
 
1062
  alm.AjaxLoadMore.triggerAddons(alm);
1063
  }
1064
  // End Paging
@@ -1117,6 +1136,7 @@ var almMasonry = function almMasonry(container, items, selector) {
1117
  }
1118
  // End Destroy After
1119
 
 
1120
  alm.init = false;
1121
  };
1122
 
@@ -1415,7 +1435,7 @@ var almMasonry = function almMasonry(container, items, selector) {
1415
  // Masonry + Preloaded
1416
  alm.window.bind('load', function () {
1417
  if (alm.is_masonry_preloaded) {
1418
- almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector);
1419
  }
1420
  });
1421
  };
@@ -1557,7 +1577,7 @@ var almMasonry = function almMasonry(container, items, selector) {
1557
  $('.alm-btn-wrap', el).remove(); // remove buttons
1558
  el.fadeIn(speed);
1559
 
1560
- $.fn.almSetFilters(el, data);
1561
  });
1562
  } else if (transition === 'fade') {
1563
  // Fade transition
@@ -1566,24 +1586,34 @@ var almMasonry = function almMasonry(container, items, selector) {
1566
  $('.alm-btn-wrap', el).remove(); // remove buttons
1567
  el.fadeIn(speed);
1568
 
1569
- $.fn.almSetFilters(el, data);
 
 
 
 
 
 
 
 
 
1570
  });
1571
  } else {
1572
  $('.alm-listing', el).html(''); // Clear listings
1573
  $('.alm-btn-wrap', el).remove(); // remove buttons
1574
  el.fadeIn(speed);
1575
 
1576
- $.fn.almSetFilters(el, data);
1577
  }
1578
  };
1579
 
1580
- /* $.fn.almSetFilters(el, data)
1581
  *
1582
  * Set filter parameters on .alm-listing element
1583
  *
 
1584
  * @since 2.6.1
1585
  */
1586
- $.fn.almSetFilters = function (el, data) {
1587
  $.each(data, function (key, value) {
1588
  key = key.replace(/\W+/g, '-').replace(/([a-z\d])([A-Z])/g, '$1-$2'); // Convert camelCase data() object back to dash (-)
1589
  $('.alm-listing', el).attr('data-' + key, value);
@@ -1593,6 +1623,8 @@ var almMasonry = function almMasonry(container, items, selector) {
1593
  $.fn.almFilterComplete();
1594
  }
1595
 
 
 
1596
  if (data.target) {
1597
  // if a target has been specified
1598
  $(".ajax-load-more-wrap[data-id=" + data.target + "]").ajaxloadmore(); // re-initiate Ajax Load More
@@ -1604,21 +1636,26 @@ var almMasonry = function almMasonry(container, items, selector) {
1604
 
1605
  /* $.fn.ajaxloadmore()
1606
  *
1607
- * Initiate all instances of Ajax load More
1608
  * @since 2.1.2
1609
  */
1610
  $.fn.ajaxloadmore = function () {
1611
- return this.each(function (e) {
1612
- $(this).data('alm', new $.ajaxloadmore($(this), e));
1613
- });
1614
  };
1615
 
1616
  /*
1617
- * Initiate Ajax load More if div is present on screen
 
 
1618
  * @since 2.1.2
1619
  */
1620
- if ($(".ajax-load-more-wrap").length) {
1621
- $(".ajax-load-more-wrap").ajaxloadmore();
 
 
 
 
 
1622
  }
1623
  })(jQuery);
1624
  'use strict';
3
  /*
4
  almMasonry
5
 
6
+ Function to trigger built-in Ajax Load More Masonry
7
 
8
  @param container object
9
  @param items object
10
  @param selector string
11
+ @param init boolean
12
+ @param filtering boolean
13
  @since 3.1
14
  */
15
 
16
  var almMasonryInit = true; // flag
17
 
18
+ var almMasonry = function almMasonry(container, items, selector, init, filtering) {
19
 
20
+ if (!filtering) {
21
+
22
+ // First Run
23
+ if (almMasonryInit && init) {
 
 
24
  almMasonryInit = false;
25
+ container.imagesLoaded(function () {
26
+ items.fadeIn(250);
27
+ container.masonry({
28
+ itemSelector: selector
29
+ });
30
+ container.masonry('reloadItems');
31
+ });
32
+ }
33
+
34
+ // Standard
35
+ else {
36
+ container.append(items); // Append new items
37
+ container.imagesLoaded(function () {
38
+ items.show();
39
+ container.masonry('appended', items);
40
+ });
41
+ }
42
  } else {
43
+ // Filtering Reset
44
+ container.masonry('destroy'); // destroy masonry
45
+ almMasonryInit = true; // reset almMasonryInit
46
  container.append(items);
47
+ almMasonry(container, items, selector, true, false);
 
 
 
48
  }
49
  };
50
  'use strict';
59
  * http://www.gnu.org/licenses/gpl-2.0.html
60
  *
61
  * Author: Darren Cooney
62
+ * Twitter: @KaptonKaos, @ajaxloadmore, @connekthq
63
  */
64
 
65
  (function ($) {
66
  "use strict";
67
 
68
+ var alm_is_filtering = false; // Global Masonry var
69
+
70
  $.ajaxloadmore = function (el, e) {
71
 
72
  //Prevent loading of unnessasry posts - move user to top of page
486
  // Check for ajax blocker
487
  if (!alm.paging) {
488
  alm.button.addClass('loading');
 
489
  if (alm.button_loading_label !== false) {
490
  alm.button.text(alm.button_loading_label);
491
  }
492
  }
493
+ alm.container.addClass('alm-loading');
494
  alm.loading = true;
495
 
496
  // If cache = true && cache_logged_in setting is false
761
  },
762
 
763
  success: function success(data) {
764
+ // Standard Query
765
  if (queryType === 'standard') {
766
  alm.AjaxLoadMore.success(data, false);
767
  } else if (queryType === 'totalpages' && alm.paging && alm.nextpage) {
991
  alm.loading = false;
992
  if (!alm.paging) {
993
  alm.button.delay(alm.speed).removeClass('loading');
 
994
  alm.AjaxLoadMore.resetBtnText();
995
  }
996
+ alm.container.removeClass('alm-loading');
997
  alm.AjaxLoadMore.triggerAddons(alm);
998
  });
999
  });
1002
  alm.loading = false;
1003
  if (!alm.paging) {
1004
  alm.button.delay(alm.speed).removeClass('loading');
 
1005
  alm.AjaxLoadMore.resetBtnText();
1006
  }
1007
+ alm.container.removeClass('alm-loading');
1008
  alm.AjaxLoadMore.triggerAddons(alm);
1009
  });
1010
  }
1011
  } else if (alm.transition === 'masonry') {
1012
  // masonry
1013
 
1014
+ almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector, alm.init, alm_is_filtering);
1015
 
1016
  if (!alm.paging) {
1017
  alm.button.delay(alm.speed).removeClass('loading');
 
1018
  alm.AjaxLoadMore.resetBtnText();
1019
  }
1020
  alm.loading = false;
1021
+ alm.container.removeClass('alm-loading');
1022
  alm.AjaxLoadMore.triggerAddons(alm);
1023
  } else if (alm.transition === 'none') {
1024
  // None
1034
  alm.loading = false;
1035
  if (!alm.paging) {
1036
  alm.button.delay(alm.speed).removeClass('loading');
 
1037
  alm.AjaxLoadMore.resetBtnText();
1038
  }
1039
  } else {
1044
  alm.loading = false;
1045
  if (!alm.paging) {
1046
  alm.button.delay(alm.speed).removeClass('loading');
 
1047
  alm.AjaxLoadMore.resetBtnText();
1048
  }
1049
+ alm.container.removeClass('alm-loading');
1050
  alm.AjaxLoadMore.triggerAddons(alm);
1051
  });
1052
  });
1055
  alm.loading = false;
1056
  if (!alm.paging) {
1057
  alm.button.delay(alm.speed).removeClass('loading');
 
1058
  alm.AjaxLoadMore.resetBtnText();
1059
  }
1060
+ alm.container.removeClass('alm-loading');
1061
  alm.AjaxLoadMore.triggerAddons(alm);
1062
  });
1063
  }
1073
  if ($.isFunction($.fn.almOnPagingComplete)) {
1074
  $.fn.almOnPagingComplete(alm);
1075
  }
1076
+ alm.container.removeClass('alm-loading');
1077
  alm.AjaxLoadMore.triggerAddons(alm);
1078
  });
1079
  } else {
1080
+ alm.container.removeClass('alm-loading');
1081
  alm.AjaxLoadMore.triggerAddons(alm);
1082
  }
1083
  // End Paging
1136
  }
1137
  // End Destroy After
1138
 
1139
+ alm_is_filtering = false;
1140
  alm.init = false;
1141
  };
1142
 
1435
  // Masonry + Preloaded
1436
  alm.window.bind('load', function () {
1437
  if (alm.is_masonry_preloaded) {
1438
+ almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector, true, false);
1439
  }
1440
  });
1441
  };
1577
  $('.alm-btn-wrap', el).remove(); // remove buttons
1578
  el.fadeIn(speed);
1579
 
1580
+ almSetFilters(el, data);
1581
  });
1582
  } else if (transition === 'fade') {
1583
  // Fade transition
1586
  $('.alm-btn-wrap', el).remove(); // remove buttons
1587
  el.fadeIn(speed);
1588
 
1589
+ almSetFilters(el, data);
1590
+ });
1591
+ } else if (transition === 'masonry') {
1592
+ // Masonry transition
1593
+ el.fadeOut(speed, function () {
1594
+ $('.alm-listing', el).html(''); // Clear listings
1595
+ $('.alm-btn-wrap', el).remove(); // remove buttons
1596
+ el.fadeIn(speed);
1597
+
1598
+ almSetFilters(el, data);
1599
  });
1600
  } else {
1601
  $('.alm-listing', el).html(''); // Clear listings
1602
  $('.alm-btn-wrap', el).remove(); // remove buttons
1603
  el.fadeIn(speed);
1604
 
1605
+ almSetFilters(el, data);
1606
  }
1607
  };
1608
 
1609
+ /* almSetFilters(el, data)
1610
  *
1611
  * Set filter parameters on .alm-listing element
1612
  *
1613
+ * @updated 3.1.1
1614
  * @since 2.6.1
1615
  */
1616
+ var almSetFilters = function almSetFilters(el, data) {
1617
  $.each(data, function (key, value) {
1618
  key = key.replace(/\W+/g, '-').replace(/([a-z\d])([A-Z])/g, '$1-$2'); // Convert camelCase data() object back to dash (-)
1619
  $('.alm-listing', el).attr('data-' + key, value);
1623
  $.fn.almFilterComplete();
1624
  }
1625
 
1626
+ alm_is_filtering = true;
1627
+
1628
  if (data.target) {
1629
  // if a target has been specified
1630
  $(".ajax-load-more-wrap[data-id=" + data.target + "]").ajaxloadmore(); // re-initiate Ajax Load More
1636
 
1637
  /* $.fn.ajaxloadmore()
1638
  *
1639
+ * Initiate instances of Ajax load More via filters or external functions
1640
  * @since 2.1.2
1641
  */
1642
  $.fn.ajaxloadmore = function () {
1643
+ $(this).data('alm', new $.ajaxloadmore($(this), 0));
 
 
1644
  };
1645
 
1646
  /*
1647
+ * Initiate Ajax load More instances
1648
+ *
1649
+ * @updated 3.1.1
1650
  * @since 2.1.2
1651
  */
1652
+
1653
+ var alm = document.querySelectorAll('.ajax-load-more-wrap');
1654
+ if (alm) {
1655
+ // Loop each alm element
1656
+ alm.forEach(function (alm, e) {
1657
+ $(alm).data('alm', new $.ajaxloadmore($(alm), e));
1658
+ });
1659
  }
1660
  })(jQuery);
1661
  'use strict';
core/dist/js/ajax-load-more.min.js CHANGED
@@ -1 +1 @@
1
- "use strict";var almMasonryInit=!0,almMasonry=function(t,a,e){almMasonryInit?t.imagesLoaded(function(){a.fadeIn(250),t.masonry({itemSelector:e}),almMasonryInit=!1}):(t.append(a),t.imagesLoaded(function(){a.show(),t.masonry("appended",a)}))};!function(t){t.ajaxloadmore=function(a,e){"true"===alm_localize.scrolltop&&t(window).scrollTop(0);var o=this;o.AjaxLoadMore={},o.window=t(window),o.page=0,o.posts=0,o.totalposts=0,o.proceed=!1,o.disable_ajax=!1,o.init=!0,o.loading=!0,o.finished=!1,o.button_label="",o.el=a,o.container=a,o.container.addClass("alm-"+e).attr("data-alm-id",e),o.content=t(".alm-ajax",o.container),o.content_preloaded=t(".alm-listing.alm-preloaded",o.container),o.canonical_url=o.el.attr("data-canonical-url"),o.is_search=o.el.attr("data-search"),o.slug=o.el.attr("data-slug"),o.post_id=o.el.attr("data-post-id"),o.prefix="alm-",o.cache=o.content.attr("data-cache"),o.cache_id=o.content.attr("data-cache-id"),o.cache_path=o.content.attr("data-cache-path"),o.cache_logged_in=o.content.attr("data-cache-logged-in"),o.repeater=o.content.attr("data-repeater"),o.theme_repeater=o.content.attr("data-theme-repeater"),o.scroll_distance=parseInt(o.content.attr("data-scroll-distance")),o.max_pages=parseInt(o.content.attr("data-max-pages")),o.pause_override=o.content.attr("data-pause-override"),o.pause=o.content.attr("data-pause"),o.transition=o.content.attr("data-transition"),o.transition_container=o.content.attr("data-transition-container"),o.speed=o.content.attr("data-transition-speed"),o.images_loaded=o.content.attr("data-images-loaded"),o.destroy_after=o.content.attr("data-destroy-after"),o.lang=o.content.attr("data-lang"),o.orginal_posts_per_page=o.content.attr("data-posts-per-page"),o.posts_per_page=o.content.attr("data-posts-per-page"),o.cta_array="",o.cta=o.content.attr("data-cta"),o.cta_position=o.content.attr("data-cta-position"),o.cta_repeater=o.content.attr("data-cta-repeater"),o.cta_theme_repeater=o.content.attr("data-cta-theme-repeater"),o.acf_array="",o.acf=o.content.attr("data-acf"),o.acf_field_type=o.content.attr("data-acf-field-type"),o.acf_field_name=o.content.attr("data-acf-field-name"),o.acf_post_id=o.content.attr("data-acf-post-id"),o.nextpage_array="",o.nextpage=o.content.attr("data-nextpage"),o.nextpage_urls=o.content.attr("data-nextpage-urls"),o.nextpage_scroll=o.content.attr("data-nextpage-scroll"),o.nextpage_pageviews=o.content.attr("data-nextpage-pageviews"),o.nextpage_post_id=o.content.attr("data-nextpage-post-id"),o.nextpage_startpage=o.content.attr("data-nextpage-startpage"),o.previous_post=o.content.attr("data-previous-post"),o.previous_post_id=o.content.attr("data-previous-post-id"),o.previous_post_taxonomy=o.content.attr("data-previous-post-taxonomy"),o.comments=o.content.attr("data-comments"),"true"===o.comments&&(o.content=t(".alm-comments",o.container)),o.comments_array="",o.comments_post_id=o.content.attr("data-comments_post_id"),o.comments_per_page=o.content.attr("data-comments_per_page"),o.comments_type=o.content.attr("data-comments_type"),o.comments_style=o.content.attr("data-comments_style"),o.comments_template=o.content.attr("data-comments_template"),o.comments_callback=o.content.attr("data-comments_callback"),o.restapi=o.content.attr("data-restapi"),o.restapi_base_url=o.content.attr("data-restapi-base-url"),o.restapi_namespace=o.content.attr("data-restapi-namespace"),o.restapi_endpoint=o.content.attr("data-restapi-endpoint"),o.restapi_template_id=o.content.attr("data-restapi-template-id"),o.restapi_debug=o.content.attr("data-restapi-debug"),o.seo=o.content.attr("data-seo"),o.preloaded=o.content.attr("data-preloaded"),o.preloaded_amount=o.content.attr("data-preloaded-amount"),o.paging=o.content.attr("data-paging"),o.paging_controls=o.content.attr("data-paging-controls"),o.paging_show_at_most=o.content.attr("data-paging-show-at-most"),o.paging_classes=o.content.attr("data-paging-classes"),o.paging_init=!0,"true"===o.restapi?(o.restapi=!0,void 0===o.restapi_debug&&(o.restapi_debug=!1),""===o.restapi_template_id&&(o.restapi=!1)):o.restapi=!1,"true"===o.paging?(o.paging=!0,void 0===o.paging_show_at_most&&(o.paging_show_at_most=7),"true"===o.preloaded&&(o.pause=!0)):o.paging=!1,"true"===o.paging_controls?o.paging_controls=!0:o.paging_controls=!1,void 0===o.cache&&(o.cache=!1),void 0===o.cache_logged_in&&(o.cache_logged_in=!1),void 0===o.comments_per_page&&(o.comments_per_page="5"),"true"===o.preloaded?(o.preload_wrap=o.content.prev(".alm-preloaded"),o.preloaded_total_posts=parseInt(o.preload_wrap.attr("data-total-posts")),void 0===o.preloaded_amount&&(o.preloaded_amount=!1),o.preloaded_total_posts<=o.preloaded_amount&&(o.disable_ajax=!0)):o.preloaded="false",void 0===o.seo&&(o.seo=!1),"true"===o.seo&&(o.seo=!0),void 0===o.is_search&&(o.is_search=!1),o.search_value="true"===o.is_search?o.slug:"",o.permalink=o.content.attr("data-seo-permalink"),o.pageview=o.content.attr("data-seo-pageview"),o.start_page=o.content.attr("data-seo-start-page"),o.start_page?(o.seo_scroll=o.content.attr("data-seo-scroll"),o.seo_scroll_speed=o.content.attr("data-seo-scroll-speed"),o.seo_scrolltop=o.content.attr("data-seo-scrolltop"),o.isPaged=!1,o.start_page>1&&(o.isPaged=!0,o.posts_per_page=o.start_page*o.posts_per_page),o.paging&&(o.posts_per_page=o.orginal_posts_per_page)):o.start_page=1,"true"===o.nextpage?(o.nextpage=!0,o.posts_per_page=1):o.nextpage=!1,void 0===o.nextpage_urls&&(o.nextpage="true"),void 0===o.nextpage_scroll&&(o.nextpage_scroll="250:30"),void 0===o.nextpage_pageviews&&(o.nextpage_pageviews="true"),void 0===o.nextpage_post_id&&(o.nextpage=!1,o.nextpage_post_id=null),void 0===o.nextpage_startpage&&(o.nextpage_startpage=1),o.nextpage_startpage>1&&(o.isPaged=!0),"true"===o.acf?o.acf=!0:o.acf=!1,void 0!==o.acf_field_type&&void 0!==o.acf_field_name&&void 0!==o.acf_post_id||(o.acf=!1),"true"===o.previous_post?(o.previous_post=!0,o.previous_post_permalink="",o.previous_post_title="",o.previous_post_slug=""):o.previous_post=!1,void 0===o.previous_post_id&&(o.previous_post_id=""),void 0===o.previous_post_taxonomy&&(o.previous_post_taxonomy=""),o.previous_post_title_template=o.content.attr("data-previous-post-title-template"),o.siteTitle=o.content.attr("data-previous-post-site-title"),o.siteTagline=o.content.attr("data-previous-post-site-tagline"),o.previous_post_pageview=o.content.attr("data-previous-post-pageview"),o.previous_post_scroll=o.content.attr("data-previous-post-scroll"),o.previous_post_scroll_speed=o.content.attr("data-previous-post-scroll-speed"),o.previous_post_scroll_top=o.content.attr("data-previous-post-scrolltop"),void 0===o.content.attr("data-offset")?o.offset=0:o.offset=o.content.attr("data-offset"),(void 0===o.pause||o.seo&&o.start_page>1)&&(o.pause=!1),"true"===o.preloaded&&o.seo&&o.start_page>0&&(o.pause=!1),"true"===o.preloaded&&o.paging&&(o.pause=!0),void 0===o.repeater&&(o.repeater="default"),void 0===o.theme_repeater&&(o.theme_repeater="null"),void 0===o.max_pages&&(o.max_pages=0),0===o.max_pages&&(o.max_pages=1e4),void 0===o.scroll_distance&&(o.scroll_distance=150),void 0===o.transition&&(o.transition="slide"),o.is_masonry_preloaded=!1,"masonry"===o.transition&&(o.masonry_selector=o.content.attr("data-masonry-selector"),o.masonry_wrap=o.content,o.transition_container=!1,document.body.contains(o.content_preloaded.get(0))&&(o.masonry_wrap=o.content_preloaded,o.is_masonry_preloaded=!0)),void 0===o.speed?o.speed=250:o.speed=parseInt(o.speed),void 0===o.transition_container||"true"===o.transition_container?o.transition_container=!0:o.transition_container=!1,void 0===o.images_loaded&&(o.images_loaded="false"),o.destroy_after,void 0===o.content.attr("data-button-label")?o.button_label="Older Posts":o.button_label=o.content.attr("data-button-label"),o.button_loading_label=o.content.attr("data-button-loading-label"),void 0===o.button_loading_label&&(o.button_loading_label=!1),void 0===o.content.attr("data-button-class")?o.button_class="":o.button_class=" "+o.content.attr("data-button-class"),void 0===o.content.attr("data-scroll")?o.scroll=!0:"false"===o.content.attr("data-scroll")?o.scroll=!1:o.scroll=!0,o.post_type=o.content.attr("data-post-type"),o.post_type=o.post_type.split(","),o.sticky_posts=o.content.attr("data-sticky-posts"),o.container.append('<div class="'+o.prefix+'btn-wrap"/>'),o.btnWrap=t("."+o.prefix+"btn-wrap",o.container),o.paging?o.content.parent().addClass("loading"):(t("."+o.prefix+"btn-wrap",o.container).append('<button id="load-more" class="'+o.prefix+"load-more-btn more"+o.button_class+'">'+o.button_label+"</button>"),o.button=t(".alm-load-more-btn",o.container)),o.AjaxLoadMore.loadPosts=function(){if(!o.disable_ajax)if(o.paging||(o.button.addClass("loading"),o.container.addClass("alm-loading"),!1!==o.button_loading_label&&o.button.text(o.button_loading_label)),o.loading=!0,"true"!==o.cache||o.cache_logged_in)o.AjaxLoadMore.ajax("standard");else{var a;if(o.init&&o.seo&&o.isPaged){a=o.cache_path+o.cache_id+"/page-1-"+o.start_page+".html"}else if(o.nextpage){var e;o.paging?e=parseInt(o.page)+1:(e=parseInt(o.page)+2,o.isPaged&&(e=parseInt(o.page)+parseInt(o.nextpage_startpage)+1)),a=o.cache_path+o.cache_id+"/page-"+e+".html"}else a=o.previous_post?o.cache_path+o.cache_id+"/"+o.previous_post_slug+".html":o.cache_path+o.cache_id+"/page-"+(o.page+1)+".html";t.get(a,function(t){o.AjaxLoadMore.success(t,!0)}).fail(function(){o.AjaxLoadMore.ajax("standard")})}},o.AjaxLoadMore.ajax=function(e){var n="alm_query_posts";if(o.acf&&("relationship"!==o.acf_field_type&&(n="alm_acf_query"),o.acf_array={acf:"true",post_id:o.acf_post_id,field_type:o.acf_field_type,field_name:o.acf_field_name}),o.nextpage&&(n="alm_nextpage_query",o.nextpage_array={nextpage:"true",urls:o.nextpage_urls,scroll:o.nextpage_scroll,pageviews:o.nextpage_pageviews,post_id:o.nextpage_post_id,startpage:o.nextpage_startpage}),o.previous_post&&(o.previous_post_array={previous_post:"true",id:o.previous_post_id,slug:o.previous_post_slug}),"true"===o.comments&&(n="alm_comments_query",o.posts_per_page=o.comments_per_page,o.comments_array={comments:"true",post_id:o.comments_post_id,per_page:o.comments_per_page,type:o.comments_type,style:o.comments_style,template:o.comments_template,callback:o.comments_callback}),"true"===o.cta&&(o.cta_array={cta:"true",cta_position:o.cta_position,cta_repeater:o.cta_repeater,cta_theme_repeater:o.cta_theme_repeater}),o.restapi){var r=wp.template(o.restapi_template_id),s=o.restapi_base_url+"/"+o.restapi_namespace+"/"+o.restapi_endpoint,i={posts_per_page:o.posts_per_page,page:o.page,offset:o.offset,slug:o.slug,canonical_url:o.canonical_url,post_type:o.post_type,post_format:o.content.attr("data-post-format"),category:o.content.attr("data-category"),category__not_in:o.content.attr("data-category-not-in"),tag:o.content.attr("data-tag"),tag__not_in:o.content.attr("data-tag-not-in"),taxonomy:o.content.attr("data-taxonomy"),taxonomy_terms:o.content.attr("data-taxonomy-terms"),taxonomy_operator:o.content.attr("data-taxonomy-operator"),taxonomy_relation:o.content.attr("data-taxonomy-relation"),meta_key:o.content.attr("data-meta-key"),meta_value:o.content.attr("data-meta-value"),meta_compare:o.content.attr("data-meta-compare"),meta_relation:o.content.attr("data-meta-relation"),meta_type:o.content.attr("data-meta-type"),author:o.content.attr("data-author"),year:o.content.attr("data-year"),month:o.content.attr("data-month"),day:o.content.attr("data-day"),post_status:o.content.attr("data-post-status"),order:o.content.attr("data-order"),orderby:o.content.attr("data-orderby"),post__in:o.content.attr("data-post-in"),post__not_in:o.content.attr("data-post-not-in"),search:o.content.attr("data-search"),custom_args:o.content.attr("data-custom-args"),lang:o.lang,preloaded:o.preloaded,preloaded_amount:o.preloaded_amount,seo_start_page:o.start_page,id:a.attr("data-id")};t.ajax({type:"GET",url:s,data:i,dataType:"JSON",beforeSend:function(){1==o.page||o.paging||o.button.addClass("loading")},success:function(a){var e,n=a.html,s=a.meta,i=s.postcount,d=s.totalposts;t.each(n,function(t){var a=n[t];"true"===o.restapi_debug&&console.log(a),e+=r(a)});var p={html:e,meta:{postcount:i,totalposts:d}};o.AjaxLoadMore.success(p,!1)}})}else t.ajax({type:"GET",url:alm_localize.ajaxurl,dataType:"JSON",data:{action:n,query_type:e,nonce:alm_localize.alm_nonce,cache_id:o.cache_id,repeater:o.repeater,theme_repeater:o.theme_repeater,acf:o.acf_array,nextpage:o.nextpage_array,cta:o.cta_array,comments:o.comments_array,post_type:o.post_type,sticky_posts:o.sticky_posts,post_format:o.content.attr("data-post-format"),category:o.content.attr("data-category"),category__not_in:o.content.attr("data-category-not-in"),tag:o.content.attr("data-tag"),tag__not_in:o.content.attr("data-tag-not-in"),taxonomy:o.content.attr("data-taxonomy"),taxonomy_terms:o.content.attr("data-taxonomy-terms"),taxonomy_operator:o.content.attr("data-taxonomy-operator"),taxonomy_relation:o.content.attr("data-taxonomy-relation"),meta_key:o.content.attr("data-meta-key"),meta_value:o.content.attr("data-meta-value"),meta_compare:o.content.attr("data-meta-compare"),meta_relation:o.content.attr("data-meta-relation"),meta_type:o.content.attr("data-meta-type"),author:o.content.attr("data-author"),year:o.content.attr("data-year"),month:o.content.attr("data-month"),day:o.content.attr("data-day"),post_status:o.content.attr("data-post-status"),order:o.content.attr("data-order"),orderby:o.content.attr("data-orderby"),post__in:o.content.attr("data-post-in"),post__not_in:o.content.attr("data-post-not-in"),exclude:o.content.attr("data-exclude"),search:o.content.attr("data-search"),custom_args:o.content.attr("data-custom-args"),posts_per_page:o.posts_per_page,page:o.page,offset:o.offset,preloaded:o.preloaded,preloaded_amount:o.preloaded_amount,seo_start_page:o.start_page,paging:o.paging,previous_post:o.previous_post_array,lang:o.lang,slug:o.slug,canonical_url:o.canonical_url,id:a.attr("data-id")},beforeSend:function(){1==o.page||o.paging||o.button.addClass("loading")},success:function(a){"standard"===e?o.AjaxLoadMore.success(a,!1):"totalpages"===e&&o.paging&&o.nextpage?t.isFunction(t.fn.almBuildPagination)&&t.fn.almBuildPagination(a,o):"totalposts"===e&&o.paging&&t.isFunction(t.fn.almBuildPagination)&&t.fn.almBuildPagination(a,o)},error:function(t,a,e){o.AjaxLoadMore.error(t,a,e)}})},o.paging&&(o.nextpage?o.AjaxLoadMore.ajax("totalpages"):o.AjaxLoadMore.ajax("totalposts")),o.AjaxLoadMore.success=function(a,e){o.previous_post&&o.AjaxLoadMore.getPreviousPost();var n,r,s;if(e?n=a:(n=a.html,r=a.meta,o.posts=o.posts+r.postcount,s=r.postcount,o.totalposts=r.totalposts,"true"===o.preloaded&&(o.totalposts=o.totalposts-o.preloaded_amount)),o.data=t(n),e&&(s=o.data.length),o.init&&(o.paging?s>0&&(o.el=t('<div class="alm-reveal"/>'),o.el.append('<div class="alm-paging-content"></div><div class="alm-paging-loading"></div>'),t(".alm-paging-content",o.el).append(o.data).hide(),o.content.append(o.el),o.content.parent().removeClass("loading"),o.AjaxLoadMore.resetBtnText(),t(".alm-paging-content",o.el).fadeIn(o.speed,"alm_easeInOutQuad",function(){var a=parseInt(o.content.css("padding-top")),e=parseInt(o.content.css("padding-bottom"));o.content.css("height",o.el.height()+a+e+"px"),t.isFunction(t.fn.almFadePageControls)&&t.fn.almFadePageControls(o.btnWrap)})):o.button.text(o.button_label),0===s&&t.isFunction(t.fn.almEmpty)&&t.fn.almEmpty(o),o.isPaged&&(o.posts_per_page=o.content.attr("data-posts-per-page"),o.page=o.start_page-1)),s>0){if(o.paging)o.init?o.AjaxLoadMore.triggerAddons(o):t(".alm-paging-content",o.el).html("").append(o.data).almWaitForImages().done(function(){t(".alm-paging-loading",o.el).fadeOut(o.speed),t.isFunction(t.fn.almOnPagingComplete)&&t.fn.almOnPagingComplete(o),o.AjaxLoadMore.triggerAddons(o)});else{if(o.previous_post)o.el=t('<div class="alm-reveal alm-previous-post post-'+o.previous_post_id+'" data-id="'+o.previous_post_id+'" data-title="'+o.previous_post_title+'" data-url="'+o.previous_post_permalink+'" data-page="'+o.page+'"/>'),o.el.append(o.data).hide();else if(o.transition_container){var i;if(o.init&&o.start_page>1){var d=[],p=parseInt(o.posts_per_page);"true"===o.cta&&(p+=1);Math.ceil(s/p);for(var l=0;l<s;l+=p)d.push(o.data.slice(l,p+l));o.el=o.content;for(var c=0;c<d.length;c++){var g,_="true"===o.preloaded?1:0;c>0||"true"===o.preloaded?(i=c+1+_,g=t("default"===o.permalink?'<div class="alm-reveal alm-seo" data-url="'+o.canonical_url+o.search_value+"&paged="+i+'" data-page="'+i+'" />':'<div class="alm-reveal alm-seo" data-url="'+o.canonical_url+"page/"+i+"/"+o.search_value+'" data-page="'+i+'" />')):g=t('<div class="alm-reveal alm-seo" data-url="'+o.canonical_url+o.search_value+'" data-page="1" />'),g.append(d[c]),g=t(g),o.el.append(g).hide()}}else{if(o.seo&&o.page>0||"true"===o.preloaded){var m="true"===o.preloaded?1:0;i=o.page+1+m,o.seo?"default"===o.permalink?o.el=t('<div class="alm-reveal alm-seo" data-url="'+o.canonical_url+o.search_value+"&paged="+i+'" data-page="'+i+'" />'):o.el=t('<div class="alm-reveal alm-seo" data-url="'+o.canonical_url+"page/"+i+"/"+o.search_value+'" data-page="'+i+'" />'):o.el=t('<div class="alm-reveal" />')}else o.seo?o.el=t('<div class="alm-reveal alm-seo" data-url="'+o.canonical_url+o.search_value+'" data-page="1" />'):o.el=t('<div class="alm-reveal" />');o.el.append(o.data).hide()}}else o.data.hide(),o.el=o.data;("masonry"!==o.transition||o.init&&!o.is_masonry_preloaded)&&o.content.append(o.el),"fade"===o.transition?"true"===o.images_loaded?o.el.almWaitForImages().done(function(){o.el.fadeIn(o.speed,"alm_easeInOutQuad",function(){o.loading=!1,o.paging||(o.button.delay(o.speed).removeClass("loading"),o.container.delay(o.speed).removeClass("alm-loading"),o.AjaxLoadMore.resetBtnText()),o.AjaxLoadMore.triggerAddons(o)})}):o.el.fadeIn(o.speed,"alm_easeInOutQuad",function(){o.loading=!1,o.paging||(o.button.delay(o.speed).removeClass("loading"),o.container.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText()),o.AjaxLoadMore.triggerAddons(o)}):"masonry"===o.transition?(almMasonry(o.masonry_wrap,o.el,o.masonry_selector),o.paging||(o.button.delay(o.speed).removeClass("loading"),o.container.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText()),o.loading=!1,o.AjaxLoadMore.triggerAddons(o)):"none"===o.transition?("true"===o.images_loaded?o.el.almWaitForImages().done(function(){o.el.show(),o.AjaxLoadMore.triggerAddons(o)}):(o.el.show(),o.AjaxLoadMore.triggerAddons(o)),o.loading=!1,o.paging||(o.button.delay(o.speed).removeClass("loading"),o.container.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText())):"true"===o.images_loaded?o.el.almWaitForImages().done(function(){o.el.slideDown(o.speed,"alm_easeInOutQuad",function(){o.loading=!1,o.paging||(o.button.delay(o.speed).removeClass("loading"),o.container.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText()),o.AjaxLoadMore.triggerAddons(o)})}):o.el.slideDown(o.speed,"alm_easeInOutQuad",function(){o.loading=!1,o.paging||(o.button.delay(o.speed).removeClass("loading"),o.container.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText()),o.AjaxLoadMore.triggerAddons(o)})}t.isFunction(t.fn.almComplete)&&("true"===o.images_loaded?o.el.almWaitForImages().done(function(){t.fn.almComplete(o)}):t.fn.almComplete(o)),o.cache?s<o.posts_per_page&&o.AjaxLoadMore.triggerDone():o.posts>=o.totalposts&&!o.previous_post&&o.AjaxLoadMore.triggerDone()}else o.paging||(o.button.delay(o.speed).removeClass("loading").addClass("done"),o.AjaxLoadMore.resetBtnText()),o.AjaxLoadMore.triggerDone();if(void 0!==o.destroy_after&&""!==o.destroy_after){var u=o.page+1;o.preload&&u++,u==o.destroy_after&&(o.disable_ajax=!0,o.paging||o.button.delay(o.speed).fadeOut(o.speed))}o.init=!1},o.AjaxLoadMore.pagingPreloadedInit=function(a){o.el=t('<div class="alm-reveal"/>'),o.el.append('<div class="alm-paging-content">'+a+'</div><div class="alm-paging-loading"></div>'),o.content.append(o.el),o.content.parent().removeClass("loading"),o.AjaxLoadMore.resetBtnText();var e=parseInt(o.content.css("padding-top")),n=parseInt(o.content.css("padding-bottom"));o.content.css("height",o.el.height()+e+n+"px"),t.isFunction(t.fn.almFadePageControls)&&t.fn.almFadePageControls(o.btnWrap)},o.AjaxLoadMore.pagingNextpageInit=function(a){o.el=t('<div class="alm-reveal alm-nextpage"/>'),o.el.append('<div class="alm-paging-content">'+a+'</div><div class="alm-paging-loading"></div>'),o.el.appendTo(o.content),o.content.parent().removeClass("loading"),o.AjaxLoadMore.resetBtnText();var e=parseInt(o.content.css("padding-top")),n=parseInt(o.content.css("padding-bottom"));o.content.css("height",o.el.height()+e+n+"px"),t.isFunction(t.fn.almSetNextPageVars)&&t.fn.almSetNextPageVars(o),setTimeout(function(){t.isFunction(t.fn.almFadePageControls)&&t.fn.almFadePageControls(o.btnWrap),t.isFunction(t.fn.almOnWindowResize)&&t.fn.almOnWindowResize(o)},200)},o.fetchingPreviousPost=!1,o.AjaxLoadMore.getPreviousPost=function(){o.fetchingPreviousPost=!0,t.ajax({type:"GET",dataType:"JSON",url:alm_localize.ajaxurl,data:{action:"alm_query_previous_post",id:o.previous_post_id,taxonomy:o.previous_post_taxonomy},success:function(a){a.has_previous_post?(o.content.attr("data-previous-post-id",a.prev_id),o.previous_post_id=a.prev_id,o.previous_post_permalink=a.prev_permalink,o.previous_post_title=a.prev_title,o.previous_post_slug=a.prev_slug):a.has_previous_post||o.AjaxLoadMore.triggerDone(),t.isFunction(t.fn.almSetPreviousPost)&&t.fn.almSetPreviousPost(o,a.current_id,a.permalink,a.title),o.fetchingPreviousPost=!1},error:function(t,a,e){o.AjaxLoadMore.error(t,a,e),o.fetchingPreviousPost=!1}})},o.AjaxLoadMore.triggerAddons=function(a){t.isFunction(t.fn.almSEO)&&a.seo&&t.fn.almSEO(a),t.isFunction(t.fn.almSetNextPage)&&t.fn.almSetNextPage(a)},o.AjaxLoadMore.triggerDone=function(){o.loading=!1,o.finished=!0,o.paging||o.button.addClass("done"),t.isFunction(t.fn.almDone)&&setTimeout(function(){t.fn.almDone(o)},o.speed+10)},o.AjaxLoadMore.resetBtnText=function(){!1!==o.button_loading_label&&(o.paging||o.button.text(o.button_label))},o.AjaxLoadMore.error=function(t,a,e){o.loading=!1,o.paging||(o.button.removeClass("loading"),o.AjaxLoadMore.resetBtnText()),console.log(e)},o.paging||o.fetchingPreviousPost||o.button.on("click",function(){"true"===o.pause&&(o.pause=!1,o.pause_override=!1,o.AjaxLoadMore.loadPosts()),o.loading||o.finished||t(this).hasClass("done")||(o.loading=!0,o.page++,o.AjaxLoadMore.loadPosts())}),o.paging&&(o.window.bind("resizeEnd",function(){t.isFunction(t.fn.almOnWindowResize)&&t.fn.almOnWindowResize(o)}),o.window.resize(function(){this.resizeTO&&clearTimeout(this.resizeTO),this.resizeTO=setTimeout(function(){t(this).trigger("resizeEnd")},250)})),o.AjaxLoadMore.isVisible=function(){return o.visible=!1,o.el.is(":visible")&&(o.visible=!0),o.visible},o.scroll&&!o.paging&&o.window.bind("scroll touchstart",function(){if(o.AjaxLoadMore.isVisible()&&!o.fetchingPreviousPost){var t=o.button.offset(),a=Math.round(t.top-(o.window.height()-o.scroll_distance));!o.loading&&!o.finished&&o.window.scrollTop()>=a&&o.page<o.max_pages-1&&o.proceed&&"true"===o.pause&&"true"===o.pause_override?o.button.trigger("click"):!o.loading&&!o.finished&&o.window.scrollTop()>=a&&o.page<o.max_pages-1&&o.proceed&&"true"!==o.pause&&(o.page++,o.AjaxLoadMore.loadPosts())}}),o.AjaxLoadMore.init=function(){o.paging||o.previous_post||(o.disable_ajax?(o.finished=!0,o.button.addClass("done")):"true"===o.pause?(o.button.text(o.button_label),o.loading=!1):o.AjaxLoadMore.loadPosts()),o.previous_post&&(o.AjaxLoadMore.getPreviousPost(),o.loading=!1),o.nextpage&&t(".alm-nextpage").length>1&&t(".alm-nextpage").length==t(".alm-nextpage").eq(0).data("total-pages")&&o.AjaxLoadMore.triggerDone(),o.window.bind("load",function(){o.is_masonry_preloaded&&almMasonry(o.masonry_wrap,o.el,o.masonry_selector)})},o.AjaxLoadMore.init(),setTimeout(function(){o.proceed=!0},300),t.fn.almUpdateCurrentPage=function(a,e,o){o.page=a,o.nextpage&&!o.paging&&(o.page=o.page-1);var n="";o.paging_init&&"true"===o.preloaded?(n=t(".alm-preloaded .alm-reveal",o.el).html(),t(".alm-preloaded",o.el).remove(),o.preloaded_amount=0,o.AjaxLoadMore.pagingPreloadedInit(n),o.paging_init=!1,o.init=!1):o.paging_init&&o.nextpage?(n=t(".alm-nextpage",o.el).html(),t(".alm-nextpage",o.el).remove(),o.AjaxLoadMore.pagingNextpageInit(n),o.paging_init=!1,o.init=!1):o.AjaxLoadMore.loadPosts()},t.fn.almGetParentContainer=function(){return o.el.closest("#ajax-load-more")},t.fn.almGetObj=function(){return o},t.fn.almTriggerClick=function(){o.button.trigger("click")},t.easing.alm_easeInOutQuad=function(t,a,e,o,n){return(a/=n/2)<1?o/2*a*a+e:-o/2*(--a*(a-2)-1)+e}},t.fn.almFilter=function(a,e,o){o.target?t(".ajax-load-more-wrap[data-id='"+o.target+"']").each(function(n){var r=t(this);t.fn.almFilterTransition(a,e,o,r)}):t(".ajax-load-more-wrap").each(function(n){var r=t(this);t.fn.almFilterTransition(a,e,o,r)})},t.fn.almFilterTransition=function(a,e,o,n){"slide"===a?n.slideUp(e,function(){t(".alm-listing",n).html(""),t(".alm-btn-wrap",n).remove(),n.fadeIn(e),t.fn.almSetFilters(n,o)}):"fade"===a?n.fadeOut(e,function(){t(".alm-listing",n).html(""),t(".alm-btn-wrap",n).remove(),n.fadeIn(e),t.fn.almSetFilters(n,o)}):(t(".alm-listing",n).html(""),t(".alm-btn-wrap",n).remove(),n.fadeIn(e),t.fn.almSetFilters(n,o))},t.fn.almSetFilters=function(a,e){t.each(e,function(e,o){e=e.replace(/\W+/g,"-").replace(/([a-z\d])([A-Z])/g,"$1-$2"),t(".alm-listing",a).attr("data-"+e,o)}),t.isFunction(t.fn.almFilterComplete)&&t.fn.almFilterComplete(),e.target?t(".ajax-load-more-wrap[data-id="+e.target+"]").ajaxloadmore():t(".ajax-load-more-wrap").ajaxloadmore()},t.fn.ajaxloadmore=function(){return this.each(function(a){t(this).data("alm",new t.ajaxloadmore(t(this),a))})},t(".ajax-load-more-wrap").length&&t(".ajax-load-more-wrap").ajaxloadmore()}(jQuery);var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"===("undefined"==typeof exports?"undefined":_typeof(exports))?module.exports=t(require("jquery")):t(jQuery)}(function(t){t.almWaitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage","cursor"],hasImageAttributes:["srcset"]},t.expr[":"]["has-src"]=function(a){return t(a).is('img[src][src!=""]')},t.expr[":"].uncached=function(a){return!!t(a).is(":has-src")&&!a.complete},t.fn.almWaitForImages=function(){var a,e,o,n=0,r=0,s=t.Deferred();if(t.isPlainObject(arguments[0])?(o=arguments[0].waitForAll,e=arguments[0].each,a=arguments[0].finished):1===arguments.length&&"boolean"===t.type(arguments[0])?o=arguments[0]:(a=arguments[0],e=arguments[1],o=arguments[2]),a=a||t.noop,e=e||t.noop,o=!!o,!t.isFunction(a)||!t.isFunction(e))throw new TypeError("An invalid callback was supplied.");return this.each(function(){var i=t(this),d=[],p=t.almWaitForImages.hasImageProperties||[],l=t.almWaitForImages.hasImageAttributes||[],c=/url\(\s*(['"]?)(.*?)\1\s*\)/g;o?i.find("*").addBack().each(function(){var a=t(this);a.is("img:has-src")&&d.push({src:a.attr("src"),element:a[0]}),t.each(p,function(t,e){var o,n=a.css(e);if(!n)return!0;for(;o=c.exec(n);)d.push({src:o[2],element:a[0]})}),t.each(l,function(e,o){var n,r=a.attr(o);if(!r)return!0;n=r.split(","),t.each(n,function(e,o){o=t.trim(o).split(" ")[0],d.push({src:o,element:a[0]})})})}):i.find("img:has-src").each(function(){d.push({src:this.src,element:this})}),n=d.length,r=0,0===n&&(a.call(i[0]),s.resolveWith(i[0])),t.each(d,function(o,d){var p=new Image,l="load.almWaitForImages error.almWaitForImages";t(p).one(l,function o(p){var c=[r,n,"load"==p.type];if(r++,e.apply(d.element,c),s.notifyWith(d.element,c),t(this).off(l,o),r==n)return a.call(i[0]),s.resolveWith(i[0]),!1}),p.src=d.src})}),s.promise()}});
1
+ "use strict";var almMasonryInit=!0,almMasonry=function t(a,e,o,n,r){r?(a.masonry("destroy"),almMasonryInit=!0,a.append(e),t(a,e,o,!0,!1)):almMasonryInit&&n?(almMasonryInit=!1,a.imagesLoaded(function(){e.fadeIn(250),a.masonry({itemSelector:o}),a.masonry("reloadItems")})):(a.append(e),a.imagesLoaded(function(){e.show(),a.masonry("appended",e)}))};!function(t){var a=!1;t.ajaxloadmore=function(e,o){"true"===alm_localize.scrolltop&&t(window).scrollTop(0);var n=this;n.AjaxLoadMore={},n.window=t(window),n.page=0,n.posts=0,n.totalposts=0,n.proceed=!1,n.disable_ajax=!1,n.init=!0,n.loading=!0,n.finished=!1,n.button_label="",n.el=e,n.container=e,n.container.addClass("alm-"+o).attr("data-alm-id",o),n.content=t(".alm-ajax",n.container),n.content_preloaded=t(".alm-listing.alm-preloaded",n.container),n.canonical_url=n.el.attr("data-canonical-url"),n.is_search=n.el.attr("data-search"),n.slug=n.el.attr("data-slug"),n.post_id=n.el.attr("data-post-id"),n.prefix="alm-",n.cache=n.content.attr("data-cache"),n.cache_id=n.content.attr("data-cache-id"),n.cache_path=n.content.attr("data-cache-path"),n.cache_logged_in=n.content.attr("data-cache-logged-in"),n.repeater=n.content.attr("data-repeater"),n.theme_repeater=n.content.attr("data-theme-repeater"),n.scroll_distance=parseInt(n.content.attr("data-scroll-distance")),n.max_pages=parseInt(n.content.attr("data-max-pages")),n.pause_override=n.content.attr("data-pause-override"),n.pause=n.content.attr("data-pause"),n.transition=n.content.attr("data-transition"),n.transition_container=n.content.attr("data-transition-container"),n.speed=n.content.attr("data-transition-speed"),n.images_loaded=n.content.attr("data-images-loaded"),n.destroy_after=n.content.attr("data-destroy-after"),n.lang=n.content.attr("data-lang"),n.orginal_posts_per_page=n.content.attr("data-posts-per-page"),n.posts_per_page=n.content.attr("data-posts-per-page"),n.cta_array="",n.cta=n.content.attr("data-cta"),n.cta_position=n.content.attr("data-cta-position"),n.cta_repeater=n.content.attr("data-cta-repeater"),n.cta_theme_repeater=n.content.attr("data-cta-theme-repeater"),n.acf_array="",n.acf=n.content.attr("data-acf"),n.acf_field_type=n.content.attr("data-acf-field-type"),n.acf_field_name=n.content.attr("data-acf-field-name"),n.acf_post_id=n.content.attr("data-acf-post-id"),n.nextpage_array="",n.nextpage=n.content.attr("data-nextpage"),n.nextpage_urls=n.content.attr("data-nextpage-urls"),n.nextpage_scroll=n.content.attr("data-nextpage-scroll"),n.nextpage_pageviews=n.content.attr("data-nextpage-pageviews"),n.nextpage_post_id=n.content.attr("data-nextpage-post-id"),n.nextpage_startpage=n.content.attr("data-nextpage-startpage"),n.previous_post=n.content.attr("data-previous-post"),n.previous_post_id=n.content.attr("data-previous-post-id"),n.previous_post_taxonomy=n.content.attr("data-previous-post-taxonomy"),n.comments=n.content.attr("data-comments"),"true"===n.comments&&(n.content=t(".alm-comments",n.container)),n.comments_array="",n.comments_post_id=n.content.attr("data-comments_post_id"),n.comments_per_page=n.content.attr("data-comments_per_page"),n.comments_type=n.content.attr("data-comments_type"),n.comments_style=n.content.attr("data-comments_style"),n.comments_template=n.content.attr("data-comments_template"),n.comments_callback=n.content.attr("data-comments_callback"),n.restapi=n.content.attr("data-restapi"),n.restapi_base_url=n.content.attr("data-restapi-base-url"),n.restapi_namespace=n.content.attr("data-restapi-namespace"),n.restapi_endpoint=n.content.attr("data-restapi-endpoint"),n.restapi_template_id=n.content.attr("data-restapi-template-id"),n.restapi_debug=n.content.attr("data-restapi-debug"),n.seo=n.content.attr("data-seo"),n.preloaded=n.content.attr("data-preloaded"),n.preloaded_amount=n.content.attr("data-preloaded-amount"),n.paging=n.content.attr("data-paging"),n.paging_controls=n.content.attr("data-paging-controls"),n.paging_show_at_most=n.content.attr("data-paging-show-at-most"),n.paging_classes=n.content.attr("data-paging-classes"),n.paging_init=!0,"true"===n.restapi?(n.restapi=!0,void 0===n.restapi_debug&&(n.restapi_debug=!1),""===n.restapi_template_id&&(n.restapi=!1)):n.restapi=!1,"true"===n.paging?(n.paging=!0,void 0===n.paging_show_at_most&&(n.paging_show_at_most=7),"true"===n.preloaded&&(n.pause=!0)):n.paging=!1,"true"===n.paging_controls?n.paging_controls=!0:n.paging_controls=!1,void 0===n.cache&&(n.cache=!1),void 0===n.cache_logged_in&&(n.cache_logged_in=!1),void 0===n.comments_per_page&&(n.comments_per_page="5"),"true"===n.preloaded?(n.preload_wrap=n.content.prev(".alm-preloaded"),n.preloaded_total_posts=parseInt(n.preload_wrap.attr("data-total-posts")),void 0===n.preloaded_amount&&(n.preloaded_amount=!1),n.preloaded_total_posts<=n.preloaded_amount&&(n.disable_ajax=!0)):n.preloaded="false",void 0===n.seo&&(n.seo=!1),"true"===n.seo&&(n.seo=!0),void 0===n.is_search&&(n.is_search=!1),n.search_value="true"===n.is_search?n.slug:"",n.permalink=n.content.attr("data-seo-permalink"),n.pageview=n.content.attr("data-seo-pageview"),n.start_page=n.content.attr("data-seo-start-page"),n.start_page?(n.seo_scroll=n.content.attr("data-seo-scroll"),n.seo_scroll_speed=n.content.attr("data-seo-scroll-speed"),n.seo_scrolltop=n.content.attr("data-seo-scrolltop"),n.isPaged=!1,n.start_page>1&&(n.isPaged=!0,n.posts_per_page=n.start_page*n.posts_per_page),n.paging&&(n.posts_per_page=n.orginal_posts_per_page)):n.start_page=1,"true"===n.nextpage?(n.nextpage=!0,n.posts_per_page=1):n.nextpage=!1,void 0===n.nextpage_urls&&(n.nextpage="true"),void 0===n.nextpage_scroll&&(n.nextpage_scroll="250:30"),void 0===n.nextpage_pageviews&&(n.nextpage_pageviews="true"),void 0===n.nextpage_post_id&&(n.nextpage=!1,n.nextpage_post_id=null),void 0===n.nextpage_startpage&&(n.nextpage_startpage=1),n.nextpage_startpage>1&&(n.isPaged=!0),"true"===n.acf?n.acf=!0:n.acf=!1,void 0!==n.acf_field_type&&void 0!==n.acf_field_name&&void 0!==n.acf_post_id||(n.acf=!1),"true"===n.previous_post?(n.previous_post=!0,n.previous_post_permalink="",n.previous_post_title="",n.previous_post_slug=""):n.previous_post=!1,void 0===n.previous_post_id&&(n.previous_post_id=""),void 0===n.previous_post_taxonomy&&(n.previous_post_taxonomy=""),n.previous_post_title_template=n.content.attr("data-previous-post-title-template"),n.siteTitle=n.content.attr("data-previous-post-site-title"),n.siteTagline=n.content.attr("data-previous-post-site-tagline"),n.previous_post_pageview=n.content.attr("data-previous-post-pageview"),n.previous_post_scroll=n.content.attr("data-previous-post-scroll"),n.previous_post_scroll_speed=n.content.attr("data-previous-post-scroll-speed"),n.previous_post_scroll_top=n.content.attr("data-previous-post-scrolltop"),void 0===n.content.attr("data-offset")?n.offset=0:n.offset=n.content.attr("data-offset"),(void 0===n.pause||n.seo&&n.start_page>1)&&(n.pause=!1),"true"===n.preloaded&&n.seo&&n.start_page>0&&(n.pause=!1),"true"===n.preloaded&&n.paging&&(n.pause=!0),void 0===n.repeater&&(n.repeater="default"),void 0===n.theme_repeater&&(n.theme_repeater="null"),void 0===n.max_pages&&(n.max_pages=0),0===n.max_pages&&(n.max_pages=1e4),void 0===n.scroll_distance&&(n.scroll_distance=150),void 0===n.transition&&(n.transition="slide"),n.is_masonry_preloaded=!1,"masonry"===n.transition&&(n.masonry_selector=n.content.attr("data-masonry-selector"),n.masonry_wrap=n.content,n.transition_container=!1,document.body.contains(n.content_preloaded.get(0))&&(n.masonry_wrap=n.content_preloaded,n.is_masonry_preloaded=!0)),void 0===n.speed?n.speed=250:n.speed=parseInt(n.speed),void 0===n.transition_container||"true"===n.transition_container?n.transition_container=!0:n.transition_container=!1,void 0===n.images_loaded&&(n.images_loaded="false"),n.destroy_after,void 0===n.content.attr("data-button-label")?n.button_label="Older Posts":n.button_label=n.content.attr("data-button-label"),n.button_loading_label=n.content.attr("data-button-loading-label"),void 0===n.button_loading_label&&(n.button_loading_label=!1),void 0===n.content.attr("data-button-class")?n.button_class="":n.button_class=" "+n.content.attr("data-button-class"),void 0===n.content.attr("data-scroll")?n.scroll=!0:"false"===n.content.attr("data-scroll")?n.scroll=!1:n.scroll=!0,n.post_type=n.content.attr("data-post-type"),n.post_type=n.post_type.split(","),n.sticky_posts=n.content.attr("data-sticky-posts"),n.container.append('<div class="'+n.prefix+'btn-wrap"/>'),n.btnWrap=t("."+n.prefix+"btn-wrap",n.container),n.paging?n.content.parent().addClass("loading"):(t("."+n.prefix+"btn-wrap",n.container).append('<button id="load-more" class="'+n.prefix+"load-more-btn more"+n.button_class+'">'+n.button_label+"</button>"),n.button=t(".alm-load-more-btn",n.container)),n.AjaxLoadMore.loadPosts=function(){if(!n.disable_ajax)if(n.paging||(n.button.addClass("loading"),!1!==n.button_loading_label&&n.button.text(n.button_loading_label)),n.container.addClass("alm-loading"),n.loading=!0,"true"!==n.cache||n.cache_logged_in)n.AjaxLoadMore.ajax("standard");else{var a;if(n.init&&n.seo&&n.isPaged){a=n.cache_path+n.cache_id+"/page-1-"+n.start_page+".html"}else if(n.nextpage){var e;n.paging?e=parseInt(n.page)+1:(e=parseInt(n.page)+2,n.isPaged&&(e=parseInt(n.page)+parseInt(n.nextpage_startpage)+1)),a=n.cache_path+n.cache_id+"/page-"+e+".html"}else a=n.previous_post?n.cache_path+n.cache_id+"/"+n.previous_post_slug+".html":n.cache_path+n.cache_id+"/page-"+(n.page+1)+".html";t.get(a,function(t){n.AjaxLoadMore.success(t,!0)}).fail(function(){n.AjaxLoadMore.ajax("standard")})}},n.AjaxLoadMore.ajax=function(a){var o="alm_query_posts";if(n.acf&&("relationship"!==n.acf_field_type&&(o="alm_acf_query"),n.acf_array={acf:"true",post_id:n.acf_post_id,field_type:n.acf_field_type,field_name:n.acf_field_name}),n.nextpage&&(o="alm_nextpage_query",n.nextpage_array={nextpage:"true",urls:n.nextpage_urls,scroll:n.nextpage_scroll,pageviews:n.nextpage_pageviews,post_id:n.nextpage_post_id,startpage:n.nextpage_startpage}),n.previous_post&&(n.previous_post_array={previous_post:"true",id:n.previous_post_id,slug:n.previous_post_slug}),"true"===n.comments&&(o="alm_comments_query",n.posts_per_page=n.comments_per_page,n.comments_array={comments:"true",post_id:n.comments_post_id,per_page:n.comments_per_page,type:n.comments_type,style:n.comments_style,template:n.comments_template,callback:n.comments_callback}),"true"===n.cta&&(n.cta_array={cta:"true",cta_position:n.cta_position,cta_repeater:n.cta_repeater,cta_theme_repeater:n.cta_theme_repeater}),n.restapi){var r=wp.template(n.restapi_template_id),s=n.restapi_base_url+"/"+n.restapi_namespace+"/"+n.restapi_endpoint,i={posts_per_page:n.posts_per_page,page:n.page,offset:n.offset,slug:n.slug,canonical_url:n.canonical_url,post_type:n.post_type,post_format:n.content.attr("data-post-format"),category:n.content.attr("data-category"),category__not_in:n.content.attr("data-category-not-in"),tag:n.content.attr("data-tag"),tag__not_in:n.content.attr("data-tag-not-in"),taxonomy:n.content.attr("data-taxonomy"),taxonomy_terms:n.content.attr("data-taxonomy-terms"),taxonomy_operator:n.content.attr("data-taxonomy-operator"),taxonomy_relation:n.content.attr("data-taxonomy-relation"),meta_key:n.content.attr("data-meta-key"),meta_value:n.content.attr("data-meta-value"),meta_compare:n.content.attr("data-meta-compare"),meta_relation:n.content.attr("data-meta-relation"),meta_type:n.content.attr("data-meta-type"),author:n.content.attr("data-author"),year:n.content.attr("data-year"),month:n.content.attr("data-month"),day:n.content.attr("data-day"),post_status:n.content.attr("data-post-status"),order:n.content.attr("data-order"),orderby:n.content.attr("data-orderby"),post__in:n.content.attr("data-post-in"),post__not_in:n.content.attr("data-post-not-in"),search:n.content.attr("data-search"),custom_args:n.content.attr("data-custom-args"),lang:n.lang,preloaded:n.preloaded,preloaded_amount:n.preloaded_amount,seo_start_page:n.start_page,id:e.attr("data-id")};t.ajax({type:"GET",url:s,data:i,dataType:"JSON",beforeSend:function(){1==n.page||n.paging||n.button.addClass("loading")},success:function(a){var e,o=a.html,s=a.meta,i=s.postcount,p=s.totalposts;t.each(o,function(t){var a=o[t];"true"===n.restapi_debug&&console.log(a),e+=r(a)});var d={html:e,meta:{postcount:i,totalposts:p}};n.AjaxLoadMore.success(d,!1)}})}else t.ajax({type:"GET",url:alm_localize.ajaxurl,dataType:"JSON",data:{action:o,query_type:a,nonce:alm_localize.alm_nonce,cache_id:n.cache_id,repeater:n.repeater,theme_repeater:n.theme_repeater,acf:n.acf_array,nextpage:n.nextpage_array,cta:n.cta_array,comments:n.comments_array,post_type:n.post_type,sticky_posts:n.sticky_posts,post_format:n.content.attr("data-post-format"),category:n.content.attr("data-category"),category__not_in:n.content.attr("data-category-not-in"),tag:n.content.attr("data-tag"),tag__not_in:n.content.attr("data-tag-not-in"),taxonomy:n.content.attr("data-taxonomy"),taxonomy_terms:n.content.attr("data-taxonomy-terms"),taxonomy_operator:n.content.attr("data-taxonomy-operator"),taxonomy_relation:n.content.attr("data-taxonomy-relation"),meta_key:n.content.attr("data-meta-key"),meta_value:n.content.attr("data-meta-value"),meta_compare:n.content.attr("data-meta-compare"),meta_relation:n.content.attr("data-meta-relation"),meta_type:n.content.attr("data-meta-type"),author:n.content.attr("data-author"),year:n.content.attr("data-year"),month:n.content.attr("data-month"),day:n.content.attr("data-day"),post_status:n.content.attr("data-post-status"),order:n.content.attr("data-order"),orderby:n.content.attr("data-orderby"),post__in:n.content.attr("data-post-in"),post__not_in:n.content.attr("data-post-not-in"),exclude:n.content.attr("data-exclude"),search:n.content.attr("data-search"),custom_args:n.content.attr("data-custom-args"),posts_per_page:n.posts_per_page,page:n.page,offset:n.offset,preloaded:n.preloaded,preloaded_amount:n.preloaded_amount,seo_start_page:n.start_page,paging:n.paging,previous_post:n.previous_post_array,lang:n.lang,slug:n.slug,canonical_url:n.canonical_url,id:e.attr("data-id")},beforeSend:function(){1==n.page||n.paging||n.button.addClass("loading")},success:function(e){"standard"===a?n.AjaxLoadMore.success(e,!1):"totalpages"===a&&n.paging&&n.nextpage?t.isFunction(t.fn.almBuildPagination)&&t.fn.almBuildPagination(e,n):"totalposts"===a&&n.paging&&t.isFunction(t.fn.almBuildPagination)&&t.fn.almBuildPagination(e,n)},error:function(t,a,e){n.AjaxLoadMore.error(t,a,e)}})},n.paging&&(n.nextpage?n.AjaxLoadMore.ajax("totalpages"):n.AjaxLoadMore.ajax("totalposts")),n.AjaxLoadMore.success=function(e,o){n.previous_post&&n.AjaxLoadMore.getPreviousPost();var r,s,i;if(o?r=e:(r=e.html,s=e.meta,n.posts=n.posts+s.postcount,i=s.postcount,n.totalposts=s.totalposts,"true"===n.preloaded&&(n.totalposts=n.totalposts-n.preloaded_amount)),n.data=t(r),o&&(i=n.data.length),n.init&&(n.paging?i>0&&(n.el=t('<div class="alm-reveal"/>'),n.el.append('<div class="alm-paging-content"></div><div class="alm-paging-loading"></div>'),t(".alm-paging-content",n.el).append(n.data).hide(),n.content.append(n.el),n.content.parent().removeClass("loading"),n.AjaxLoadMore.resetBtnText(),t(".alm-paging-content",n.el).fadeIn(n.speed,"alm_easeInOutQuad",function(){var a=parseInt(n.content.css("padding-top")),e=parseInt(n.content.css("padding-bottom"));n.content.css("height",n.el.height()+a+e+"px"),t.isFunction(t.fn.almFadePageControls)&&t.fn.almFadePageControls(n.btnWrap)})):n.button.text(n.button_label),0===i&&t.isFunction(t.fn.almEmpty)&&t.fn.almEmpty(n),n.isPaged&&(n.posts_per_page=n.content.attr("data-posts-per-page"),n.page=n.start_page-1)),i>0){if(n.paging)n.init?(n.container.removeClass("alm-loading"),n.AjaxLoadMore.triggerAddons(n)):t(".alm-paging-content",n.el).html("").append(n.data).almWaitForImages().done(function(){t(".alm-paging-loading",n.el).fadeOut(n.speed),t.isFunction(t.fn.almOnPagingComplete)&&t.fn.almOnPagingComplete(n),n.container.removeClass("alm-loading"),n.AjaxLoadMore.triggerAddons(n)});else{if(n.previous_post)n.el=t('<div class="alm-reveal alm-previous-post post-'+n.previous_post_id+'" data-id="'+n.previous_post_id+'" data-title="'+n.previous_post_title+'" data-url="'+n.previous_post_permalink+'" data-page="'+n.page+'"/>'),n.el.append(n.data).hide();else if(n.transition_container){var p;if(n.init&&n.start_page>1){var d=[],l=parseInt(n.posts_per_page);"true"===n.cta&&(l+=1);Math.ceil(i/l);for(var c=0;c<i;c+=l)d.push(n.data.slice(c,l+c));n.el=n.content;for(var g=0;g<d.length;g++){var _,m="true"===n.preloaded?1:0;g>0||"true"===n.preloaded?(p=g+1+m,_=t("default"===n.permalink?'<div class="alm-reveal alm-seo" data-url="'+n.canonical_url+n.search_value+"&paged="+p+'" data-page="'+p+'" />':'<div class="alm-reveal alm-seo" data-url="'+n.canonical_url+"page/"+p+"/"+n.search_value+'" data-page="'+p+'" />')):_=t('<div class="alm-reveal alm-seo" data-url="'+n.canonical_url+n.search_value+'" data-page="1" />'),_.append(d[g]),_=t(_),n.el.append(_).hide()}}else{if(n.seo&&n.page>0||"true"===n.preloaded){var u="true"===n.preloaded?1:0;p=n.page+1+u,n.seo?"default"===n.permalink?n.el=t('<div class="alm-reveal alm-seo" data-url="'+n.canonical_url+n.search_value+"&paged="+p+'" data-page="'+p+'" />'):n.el=t('<div class="alm-reveal alm-seo" data-url="'+n.canonical_url+"page/"+p+"/"+n.search_value+'" data-page="'+p+'" />'):n.el=t('<div class="alm-reveal" />')}else n.seo?n.el=t('<div class="alm-reveal alm-seo" data-url="'+n.canonical_url+n.search_value+'" data-page="1" />'):n.el=t('<div class="alm-reveal" />');n.el.append(n.data).hide()}}else n.data.hide(),n.el=n.data;("masonry"!==n.transition||n.init&&!n.is_masonry_preloaded)&&n.content.append(n.el),"fade"===n.transition?"true"===n.images_loaded?n.el.almWaitForImages().done(function(){n.el.fadeIn(n.speed,"alm_easeInOutQuad",function(){n.loading=!1,n.paging||(n.button.delay(n.speed).removeClass("loading"),n.AjaxLoadMore.resetBtnText()),n.container.removeClass("alm-loading"),n.AjaxLoadMore.triggerAddons(n)})}):n.el.fadeIn(n.speed,"alm_easeInOutQuad",function(){n.loading=!1,n.paging||(n.button.delay(n.speed).removeClass("loading"),n.AjaxLoadMore.resetBtnText()),n.container.removeClass("alm-loading"),n.AjaxLoadMore.triggerAddons(n)}):"masonry"===n.transition?(almMasonry(n.masonry_wrap,n.el,n.masonry_selector,n.init,a),n.paging||(n.button.delay(n.speed).removeClass("loading"),n.AjaxLoadMore.resetBtnText()),n.loading=!1,n.container.removeClass("alm-loading"),n.AjaxLoadMore.triggerAddons(n)):"none"===n.transition?("true"===n.images_loaded?n.el.almWaitForImages().done(function(){n.el.show(),n.AjaxLoadMore.triggerAddons(n)}):(n.el.show(),n.AjaxLoadMore.triggerAddons(n)),n.loading=!1,n.paging||(n.button.delay(n.speed).removeClass("loading"),n.AjaxLoadMore.resetBtnText())):"true"===n.images_loaded?n.el.almWaitForImages().done(function(){n.el.slideDown(n.speed,"alm_easeInOutQuad",function(){n.loading=!1,n.paging||(n.button.delay(n.speed).removeClass("loading"),n.AjaxLoadMore.resetBtnText()),n.container.removeClass("alm-loading"),n.AjaxLoadMore.triggerAddons(n)})}):n.el.slideDown(n.speed,"alm_easeInOutQuad",function(){n.loading=!1,n.paging||(n.button.delay(n.speed).removeClass("loading"),n.AjaxLoadMore.resetBtnText()),n.container.removeClass("alm-loading"),n.AjaxLoadMore.triggerAddons(n)})}t.isFunction(t.fn.almComplete)&&("true"===n.images_loaded?n.el.almWaitForImages().done(function(){t.fn.almComplete(n)}):t.fn.almComplete(n)),n.cache?i<n.posts_per_page&&n.AjaxLoadMore.triggerDone():n.posts>=n.totalposts&&!n.previous_post&&n.AjaxLoadMore.triggerDone()}else n.paging||(n.button.delay(n.speed).removeClass("loading").addClass("done"),n.AjaxLoadMore.resetBtnText()),n.AjaxLoadMore.triggerDone();if(void 0!==n.destroy_after&&""!==n.destroy_after){var f=n.page+1;n.preload&&f++,f==n.destroy_after&&(n.disable_ajax=!0,n.paging||n.button.delay(n.speed).fadeOut(n.speed))}a=!1,n.init=!1},n.AjaxLoadMore.pagingPreloadedInit=function(a){n.el=t('<div class="alm-reveal"/>'),n.el.append('<div class="alm-paging-content">'+a+'</div><div class="alm-paging-loading"></div>'),n.content.append(n.el),n.content.parent().removeClass("loading"),n.AjaxLoadMore.resetBtnText();var e=parseInt(n.content.css("padding-top")),o=parseInt(n.content.css("padding-bottom"));n.content.css("height",n.el.height()+e+o+"px"),t.isFunction(t.fn.almFadePageControls)&&t.fn.almFadePageControls(n.btnWrap)},n.AjaxLoadMore.pagingNextpageInit=function(a){n.el=t('<div class="alm-reveal alm-nextpage"/>'),n.el.append('<div class="alm-paging-content">'+a+'</div><div class="alm-paging-loading"></div>'),n.el.appendTo(n.content),n.content.parent().removeClass("loading"),n.AjaxLoadMore.resetBtnText();var e=parseInt(n.content.css("padding-top")),o=parseInt(n.content.css("padding-bottom"));n.content.css("height",n.el.height()+e+o+"px"),t.isFunction(t.fn.almSetNextPageVars)&&t.fn.almSetNextPageVars(n),setTimeout(function(){t.isFunction(t.fn.almFadePageControls)&&t.fn.almFadePageControls(n.btnWrap),t.isFunction(t.fn.almOnWindowResize)&&t.fn.almOnWindowResize(n)},200)},n.fetchingPreviousPost=!1,n.AjaxLoadMore.getPreviousPost=function(){n.fetchingPreviousPost=!0,t.ajax({type:"GET",dataType:"JSON",url:alm_localize.ajaxurl,data:{action:"alm_query_previous_post",id:n.previous_post_id,taxonomy:n.previous_post_taxonomy},success:function(a){a.has_previous_post?(n.content.attr("data-previous-post-id",a.prev_id),n.previous_post_id=a.prev_id,n.previous_post_permalink=a.prev_permalink,n.previous_post_title=a.prev_title,n.previous_post_slug=a.prev_slug):a.has_previous_post||n.AjaxLoadMore.triggerDone(),t.isFunction(t.fn.almSetPreviousPost)&&t.fn.almSetPreviousPost(n,a.current_id,a.permalink,a.title),n.fetchingPreviousPost=!1},error:function(t,a,e){n.AjaxLoadMore.error(t,a,e),n.fetchingPreviousPost=!1}})},n.AjaxLoadMore.triggerAddons=function(a){t.isFunction(t.fn.almSEO)&&a.seo&&t.fn.almSEO(a),t.isFunction(t.fn.almSetNextPage)&&t.fn.almSetNextPage(a)},n.AjaxLoadMore.triggerDone=function(){n.loading=!1,n.finished=!0,n.paging||n.button.addClass("done"),t.isFunction(t.fn.almDone)&&setTimeout(function(){t.fn.almDone(n)},n.speed+10)},n.AjaxLoadMore.resetBtnText=function(){!1!==n.button_loading_label&&(n.paging||n.button.text(n.button_label))},n.AjaxLoadMore.error=function(t,a,e){n.loading=!1,n.paging||(n.button.removeClass("loading"),n.AjaxLoadMore.resetBtnText()),console.log(e)},n.paging||n.fetchingPreviousPost||n.button.on("click",function(){"true"===n.pause&&(n.pause=!1,n.pause_override=!1,n.AjaxLoadMore.loadPosts()),n.loading||n.finished||t(this).hasClass("done")||(n.loading=!0,n.page++,n.AjaxLoadMore.loadPosts())}),n.paging&&(n.window.bind("resizeEnd",function(){t.isFunction(t.fn.almOnWindowResize)&&t.fn.almOnWindowResize(n)}),n.window.resize(function(){this.resizeTO&&clearTimeout(this.resizeTO),this.resizeTO=setTimeout(function(){t(this).trigger("resizeEnd")},250)})),n.AjaxLoadMore.isVisible=function(){return n.visible=!1,n.el.is(":visible")&&(n.visible=!0),n.visible},n.scroll&&!n.paging&&n.window.bind("scroll touchstart",function(){if(n.AjaxLoadMore.isVisible()&&!n.fetchingPreviousPost){var t=n.button.offset(),a=Math.round(t.top-(n.window.height()-n.scroll_distance));!n.loading&&!n.finished&&n.window.scrollTop()>=a&&n.page<n.max_pages-1&&n.proceed&&"true"===n.pause&&"true"===n.pause_override?n.button.trigger("click"):!n.loading&&!n.finished&&n.window.scrollTop()>=a&&n.page<n.max_pages-1&&n.proceed&&"true"!==n.pause&&(n.page++,n.AjaxLoadMore.loadPosts())}}),n.AjaxLoadMore.init=function(){n.paging||n.previous_post||(n.disable_ajax?(n.finished=!0,n.button.addClass("done")):"true"===n.pause?(n.button.text(n.button_label),n.loading=!1):n.AjaxLoadMore.loadPosts()),n.previous_post&&(n.AjaxLoadMore.getPreviousPost(),n.loading=!1),n.nextpage&&t(".alm-nextpage").length>1&&t(".alm-nextpage").length==t(".alm-nextpage").eq(0).data("total-pages")&&n.AjaxLoadMore.triggerDone(),n.window.bind("load",function(){n.is_masonry_preloaded&&almMasonry(n.masonry_wrap,n.el,n.masonry_selector,!0,!1)})},n.AjaxLoadMore.init(),setTimeout(function(){n.proceed=!0},300),t.fn.almUpdateCurrentPage=function(a,e,o){o.page=a,o.nextpage&&!o.paging&&(o.page=o.page-1);var n="";o.paging_init&&"true"===o.preloaded?(n=t(".alm-preloaded .alm-reveal",o.el).html(),t(".alm-preloaded",o.el).remove(),o.preloaded_amount=0,o.AjaxLoadMore.pagingPreloadedInit(n),o.paging_init=!1,o.init=!1):o.paging_init&&o.nextpage?(n=t(".alm-nextpage",o.el).html(),t(".alm-nextpage",o.el).remove(),o.AjaxLoadMore.pagingNextpageInit(n),o.paging_init=!1,o.init=!1):o.AjaxLoadMore.loadPosts()},t.fn.almGetParentContainer=function(){return n.el.closest("#ajax-load-more")},t.fn.almGetObj=function(){return n},t.fn.almTriggerClick=function(){n.button.trigger("click")},t.easing.alm_easeInOutQuad=function(t,a,e,o,n){return(a/=n/2)<1?o/2*a*a+e:-o/2*(--a*(a-2)-1)+e}},t.fn.almFilter=function(a,e,o){o.target?t(".ajax-load-more-wrap[data-id='"+o.target+"']").each(function(n){var r=t(this);t.fn.almFilterTransition(a,e,o,r)}):t(".ajax-load-more-wrap").each(function(n){var r=t(this);t.fn.almFilterTransition(a,e,o,r)})},t.fn.almFilterTransition=function(a,o,n,r){"slide"===a?r.slideUp(o,function(){t(".alm-listing",r).html(""),t(".alm-btn-wrap",r).remove(),r.fadeIn(o),e(r,n)}):"fade"===a?r.fadeOut(o,function(){t(".alm-listing",r).html(""),t(".alm-btn-wrap",r).remove(),r.fadeIn(o),e(r,n)}):"masonry"===a?r.fadeOut(o,function(){t(".alm-listing",r).html(""),t(".alm-btn-wrap",r).remove(),r.fadeIn(o),e(r,n)}):(t(".alm-listing",r).html(""),t(".alm-btn-wrap",r).remove(),r.fadeIn(o),e(r,n))};var e=function(e,o){t.each(o,function(a,o){a=a.replace(/\W+/g,"-").replace(/([a-z\d])([A-Z])/g,"$1-$2"),t(".alm-listing",e).attr("data-"+a,o)}),t.isFunction(t.fn.almFilterComplete)&&t.fn.almFilterComplete(),a=!0,o.target?t(".ajax-load-more-wrap[data-id="+o.target+"]").ajaxloadmore():t(".ajax-load-more-wrap").ajaxloadmore()};t.fn.ajaxloadmore=function(){t(this).data("alm",new t.ajaxloadmore(t(this),0))};var o=document.querySelectorAll(".ajax-load-more-wrap");o&&o.forEach(function(a,e){t(a).data("alm",new t.ajaxloadmore(t(a),e))})}(jQuery);var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"===("undefined"==typeof exports?"undefined":_typeof(exports))?module.exports=t(require("jquery")):t(jQuery)}(function(t){t.almWaitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage","cursor"],hasImageAttributes:["srcset"]},t.expr[":"]["has-src"]=function(a){return t(a).is('img[src][src!=""]')},t.expr[":"].uncached=function(a){return!!t(a).is(":has-src")&&!a.complete},t.fn.almWaitForImages=function(){var a,e,o,n=0,r=0,s=t.Deferred();if(t.isPlainObject(arguments[0])?(o=arguments[0].waitForAll,e=arguments[0].each,a=arguments[0].finished):1===arguments.length&&"boolean"===t.type(arguments[0])?o=arguments[0]:(a=arguments[0],e=arguments[1],o=arguments[2]),a=a||t.noop,e=e||t.noop,o=!!o,!t.isFunction(a)||!t.isFunction(e))throw new TypeError("An invalid callback was supplied.");return this.each(function(){var i=t(this),p=[],d=t.almWaitForImages.hasImageProperties||[],l=t.almWaitForImages.hasImageAttributes||[],c=/url\(\s*(['"]?)(.*?)\1\s*\)/g;o?i.find("*").addBack().each(function(){var a=t(this);a.is("img:has-src")&&p.push({src:a.attr("src"),element:a[0]}),t.each(d,function(t,e){var o,n=a.css(e);if(!n)return!0;for(;o=c.exec(n);)p.push({src:o[2],element:a[0]})}),t.each(l,function(e,o){var n,r=a.attr(o);if(!r)return!0;n=r.split(","),t.each(n,function(e,o){o=t.trim(o).split(" ")[0],p.push({src:o,element:a[0]})})})}):i.find("img:has-src").each(function(){p.push({src:this.src,element:this})}),n=p.length,r=0,0===n&&(a.call(i[0]),s.resolveWith(i[0])),t.each(p,function(o,p){var d=new Image,l="load.almWaitForImages error.almWaitForImages";t(d).one(l,function o(d){var c=[r,n,"load"==d.type];if(r++,e.apply(p.element,c),s.notifyWith(p.element,c),t(this).off(l,o),r==n)return a.call(i[0]),s.resolveWith(i[0]),!1}),d.src=p.src})}),s.promise()}});
core/js/ajax-load-more.js CHANGED
@@ -8,12 +8,14 @@
8
  * http://www.gnu.org/licenses/gpl-2.0.html
9
  *
10
  * Author: Darren Cooney
11
- * Twitter: @KaptonKaos
12
  */
13
 
14
  (function ($) {
15
  "use strict";
16
 
 
 
17
  $.ajaxloadmore = function (el, e) {
18
 
19
  //Prevent loading of unnessasry posts - move user to top of page
@@ -456,11 +458,11 @@
456
  if(!alm.disable_ajax){ // Check for ajax blocker
457
  if(!alm.paging){
458
  alm.button.addClass('loading');
459
- alm.container.addClass('alm-loading');
460
  if(alm.button_loading_label !== false){
461
  alm.button.text(alm.button_loading_label);
462
  }
463
  }
 
464
  alm.loading = true;
465
 
466
  // If cache = true && cache_logged_in setting is false
@@ -746,7 +748,7 @@
746
  },
747
 
748
  success: function (data) {
749
- //console.log(data);
750
  if(queryType === 'standard'){
751
  alm.AjaxLoadMore.success(data, false);
752
  }
@@ -983,9 +985,9 @@
983
  alm.loading = false;
984
  if(!alm.paging){
985
  alm.button.delay(alm.speed).removeClass('loading');
986
- alm.container.delay(alm.speed).removeClass('alm-loading');
987
  alm.AjaxLoadMore.resetBtnText();
988
  }
 
989
  alm.AjaxLoadMore.triggerAddons(alm);
990
  });
991
  });
@@ -994,23 +996,23 @@
994
  alm.loading = false;
995
  if(!alm.paging){
996
  alm.button.delay(alm.speed).removeClass('loading');
997
- alm.container.delay(alm.speed).removeClass('loading');
998
  alm.AjaxLoadMore.resetBtnText();
999
  }
 
1000
  alm.AjaxLoadMore.triggerAddons(alm);
1001
  });
1002
  }
1003
 
1004
  }else if(alm.transition === 'masonry') { // masonry
1005
 
1006
- almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector);
1007
 
1008
  if(!alm.paging){
1009
  alm.button.delay(alm.speed).removeClass('loading');
1010
- alm.container.delay(alm.speed).removeClass('loading');
1011
  alm.AjaxLoadMore.resetBtnText();
1012
  }
1013
  alm.loading = false;
 
1014
  alm.AjaxLoadMore.triggerAddons(alm);
1015
 
1016
  }else if(alm.transition === 'none') { // None
@@ -1026,7 +1028,6 @@
1026
  alm.loading = false;
1027
  if(!alm.paging){
1028
  alm.button.delay(alm.speed).removeClass('loading');
1029
- alm.container.delay(alm.speed).removeClass('loading');
1030
  alm.AjaxLoadMore.resetBtnText();
1031
  }
1032
 
@@ -1037,9 +1038,9 @@
1037
  alm.loading = false;
1038
  if(!alm.paging){
1039
  alm.button.delay(alm.speed).removeClass('loading');
1040
- alm.container.delay(alm.speed).removeClass('loading');
1041
  alm.AjaxLoadMore.resetBtnText();
1042
  }
 
1043
  alm.AjaxLoadMore.triggerAddons(alm);
1044
  });
1045
  });
@@ -1048,9 +1049,9 @@
1048
  alm.loading = false;
1049
  if(!alm.paging){
1050
  alm.button.delay(alm.speed).removeClass('loading');
1051
- alm.container.delay(alm.speed).removeClass('loading');
1052
  alm.AjaxLoadMore.resetBtnText();
1053
  }
 
1054
  alm.AjaxLoadMore.triggerAddons(alm);
1055
  });
1056
  }
@@ -1066,9 +1067,11 @@
1066
  if ($.isFunction($.fn.almOnPagingComplete)){
1067
  $.fn.almOnPagingComplete(alm);
1068
  }
 
1069
  alm.AjaxLoadMore.triggerAddons(alm);
1070
  });
1071
  } else {
 
1072
  alm.AjaxLoadMore.triggerAddons(alm);
1073
  }
1074
  // End Paging
@@ -1130,6 +1133,7 @@
1130
  }
1131
  // End Destroy After
1132
 
 
1133
  alm.init = false;
1134
 
1135
  };
@@ -1458,7 +1462,7 @@
1458
  // Masonry + Preloaded
1459
  alm.window.bind('load', function(){
1460
  if(alm.is_masonry_preloaded){
1461
- almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector);
1462
  }
1463
  });
1464
 
@@ -1622,7 +1626,7 @@
1622
  $('.alm-btn-wrap', el).remove(); // remove buttons
1623
  el.fadeIn(speed);
1624
 
1625
- $.fn.almSetFilters(el, data);
1626
 
1627
  });
1628
  }else if(transition === 'fade'){ // Fade transition
@@ -1631,7 +1635,16 @@
1631
  $('.alm-btn-wrap', el).remove(); // remove buttons
1632
  el.fadeIn(speed);
1633
 
1634
- $.fn.almSetFilters(el, data);
 
 
 
 
 
 
 
 
 
1635
 
1636
  });
1637
  }else{
@@ -1639,19 +1652,21 @@
1639
  $('.alm-btn-wrap', el).remove(); // remove buttons
1640
  el.fadeIn(speed);
1641
 
1642
- $.fn.almSetFilters(el, data);
1643
 
1644
  }
1645
  };
1646
 
1647
 
1648
- /* $.fn.almSetFilters(el, data)
 
1649
  *
1650
  * Set filter parameters on .alm-listing element
1651
  *
 
1652
  * @since 2.6.1
1653
  */
1654
- $.fn.almSetFilters = function(el, data){
1655
  $.each(data, function(key, value) {
1656
  key = key.replace(/\W+/g, '-').replace(/([a-z\d])([A-Z])/g, '$1-$2'); // Convert camelCase data() object back to dash (-)
1657
  $('.alm-listing', el).attr('data-'+key, value);
@@ -1661,6 +1676,8 @@
1661
  $.fn.almFilterComplete();
1662
  }
1663
 
 
 
1664
  if(data.target){
1665
  // if a target has been specified
1666
  $(".ajax-load-more-wrap[data-id="+data.target+"]").ajaxloadmore(); // re-initiate Ajax Load More
@@ -1674,24 +1691,30 @@
1674
 
1675
  /* $.fn.ajaxloadmore()
1676
  *
1677
- * Initiate all instances of Ajax load More
1678
  * @since 2.1.2
1679
  */
1680
  $.fn.ajaxloadmore = function () {
1681
- return this.each(function (e) {
1682
- $(this).data('alm', new $.ajaxloadmore($(this), e));
1683
- });
1684
  };
1685
 
1686
 
1687
 
1688
  /*
1689
- * Initiate Ajax load More if div is present on screen
 
 
1690
  * @since 2.1.2
1691
  */
1692
- if ($(".ajax-load-more-wrap").length){
1693
- $(".ajax-load-more-wrap").ajaxloadmore();
1694
- }
 
 
 
 
 
 
1695
 
1696
 
1697
  })(jQuery);
8
  * http://www.gnu.org/licenses/gpl-2.0.html
9
  *
10
  * Author: Darren Cooney
11
+ * Twitter: @KaptonKaos, @ajaxloadmore, @connekthq
12
  */
13
 
14
  (function ($) {
15
  "use strict";
16
 
17
+ var alm_is_filtering = false; // Global Masonry var
18
+
19
  $.ajaxloadmore = function (el, e) {
20
 
21
  //Prevent loading of unnessasry posts - move user to top of page
458
  if(!alm.disable_ajax){ // Check for ajax blocker
459
  if(!alm.paging){
460
  alm.button.addClass('loading');
 
461
  if(alm.button_loading_label !== false){
462
  alm.button.text(alm.button_loading_label);
463
  }
464
  }
465
+ alm.container.addClass('alm-loading');
466
  alm.loading = true;
467
 
468
  // If cache = true && cache_logged_in setting is false
748
  },
749
 
750
  success: function (data) {
751
+ // Standard Query
752
  if(queryType === 'standard'){
753
  alm.AjaxLoadMore.success(data, false);
754
  }
985
  alm.loading = false;
986
  if(!alm.paging){
987
  alm.button.delay(alm.speed).removeClass('loading');
 
988
  alm.AjaxLoadMore.resetBtnText();
989
  }
990
+ alm.container.removeClass('alm-loading');
991
  alm.AjaxLoadMore.triggerAddons(alm);
992
  });
993
  });
996
  alm.loading = false;
997
  if(!alm.paging){
998
  alm.button.delay(alm.speed).removeClass('loading');
 
999
  alm.AjaxLoadMore.resetBtnText();
1000
  }
1001
+ alm.container.removeClass('alm-loading');
1002
  alm.AjaxLoadMore.triggerAddons(alm);
1003
  });
1004
  }
1005
 
1006
  }else if(alm.transition === 'masonry') { // masonry
1007
 
1008
+ almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector, alm.init, alm_is_filtering);
1009
 
1010
  if(!alm.paging){
1011
  alm.button.delay(alm.speed).removeClass('loading');
 
1012
  alm.AjaxLoadMore.resetBtnText();
1013
  }
1014
  alm.loading = false;
1015
+ alm.container.removeClass('alm-loading');
1016
  alm.AjaxLoadMore.triggerAddons(alm);
1017
 
1018
  }else if(alm.transition === 'none') { // None
1028
  alm.loading = false;
1029
  if(!alm.paging){
1030
  alm.button.delay(alm.speed).removeClass('loading');
 
1031
  alm.AjaxLoadMore.resetBtnText();
1032
  }
1033
 
1038
  alm.loading = false;
1039
  if(!alm.paging){
1040
  alm.button.delay(alm.speed).removeClass('loading');
 
1041
  alm.AjaxLoadMore.resetBtnText();
1042
  }
1043
+ alm.container.removeClass('alm-loading');
1044
  alm.AjaxLoadMore.triggerAddons(alm);
1045
  });
1046
  });
1049
  alm.loading = false;
1050
  if(!alm.paging){
1051
  alm.button.delay(alm.speed).removeClass('loading');
 
1052
  alm.AjaxLoadMore.resetBtnText();
1053
  }
1054
+ alm.container.removeClass('alm-loading');
1055
  alm.AjaxLoadMore.triggerAddons(alm);
1056
  });
1057
  }
1067
  if ($.isFunction($.fn.almOnPagingComplete)){
1068
  $.fn.almOnPagingComplete(alm);
1069
  }
1070
+ alm.container.removeClass('alm-loading');
1071
  alm.AjaxLoadMore.triggerAddons(alm);
1072
  });
1073
  } else {
1074
+ alm.container.removeClass('alm-loading');
1075
  alm.AjaxLoadMore.triggerAddons(alm);
1076
  }
1077
  // End Paging
1133
  }
1134
  // End Destroy After
1135
 
1136
+ alm_is_filtering = false;
1137
  alm.init = false;
1138
 
1139
  };
1462
  // Masonry + Preloaded
1463
  alm.window.bind('load', function(){
1464
  if(alm.is_masonry_preloaded){
1465
+ almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector, true, false);
1466
  }
1467
  });
1468
 
1626
  $('.alm-btn-wrap', el).remove(); // remove buttons
1627
  el.fadeIn(speed);
1628
 
1629
+ almSetFilters(el, data);
1630
 
1631
  });
1632
  }else if(transition === 'fade'){ // Fade transition
1635
  $('.alm-btn-wrap', el).remove(); // remove buttons
1636
  el.fadeIn(speed);
1637
 
1638
+ almSetFilters(el, data);
1639
+
1640
+ });
1641
+ }else if(transition === 'masonry'){ // Masonry transition
1642
+ el.fadeOut(speed, function(){
1643
+ $('.alm-listing', el).html(''); // Clear listings
1644
+ $('.alm-btn-wrap', el).remove(); // remove buttons
1645
+ el.fadeIn(speed);
1646
+
1647
+ almSetFilters(el, data);
1648
 
1649
  });
1650
  }else{
1652
  $('.alm-btn-wrap', el).remove(); // remove buttons
1653
  el.fadeIn(speed);
1654
 
1655
+ almSetFilters(el, data);
1656
 
1657
  }
1658
  };
1659
 
1660
 
1661
+
1662
+ /* almSetFilters(el, data)
1663
  *
1664
  * Set filter parameters on .alm-listing element
1665
  *
1666
+ * @updated 3.1.1
1667
  * @since 2.6.1
1668
  */
1669
+ let almSetFilters = function(el, data){
1670
  $.each(data, function(key, value) {
1671
  key = key.replace(/\W+/g, '-').replace(/([a-z\d])([A-Z])/g, '$1-$2'); // Convert camelCase data() object back to dash (-)
1672
  $('.alm-listing', el).attr('data-'+key, value);
1676
  $.fn.almFilterComplete();
1677
  }
1678
 
1679
+ alm_is_filtering = true;
1680
+
1681
  if(data.target){
1682
  // if a target has been specified
1683
  $(".ajax-load-more-wrap[data-id="+data.target+"]").ajaxloadmore(); // re-initiate Ajax Load More
1691
 
1692
  /* $.fn.ajaxloadmore()
1693
  *
1694
+ * Initiate instances of Ajax load More via filters or external functions
1695
  * @since 2.1.2
1696
  */
1697
  $.fn.ajaxloadmore = function () {
1698
+ $(this).data('alm', new $.ajaxloadmore($(this), 0));
 
 
1699
  };
1700
 
1701
 
1702
 
1703
  /*
1704
+ * Initiate Ajax load More instances
1705
+ *
1706
+ * @updated 3.1.1
1707
  * @since 2.1.2
1708
  */
1709
+
1710
+ let alm = document.querySelectorAll('.ajax-load-more-wrap');
1711
+ if(alm){
1712
+ // Loop each alm element
1713
+ alm.forEach((alm, e) => {
1714
+ $(alm).data('alm', new $.ajaxloadmore($(alm), e));
1715
+ });
1716
+ }
1717
+
1718
 
1719
 
1720
  })(jQuery);
core/js/modules/almMasonry.js CHANGED
@@ -1,32 +1,50 @@
1
  /*
2
  almMasonry
3
 
4
- Function to trigger built-in Ajax Load More masonry
5
 
6
  @param container object
7
  @param items object
8
  @param selector string
 
 
9
  @since 3.1
10
  */
11
 
12
  let almMasonryInit = true; // flag
13
 
14
- let almMasonry = (container, items, selector) => {
15
 
16
- if(almMasonryInit){
17
- container.imagesLoaded( () => {
18
- items.fadeIn(250);
19
- container.masonry({
20
- itemSelector: selector,
21
- });
22
  almMasonryInit = false;
23
- });
24
- }
25
- else{
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  container.append( items );
27
- container.imagesLoaded( () => {
28
- items.show();
29
- container.masonry( 'appended', items );
30
- });
31
  }
 
32
  };
1
  /*
2
  almMasonry
3
 
4
+ Function to trigger built-in Ajax Load More Masonry
5
 
6
  @param container object
7
  @param items object
8
  @param selector string
9
+ @param init boolean
10
+ @param filtering boolean
11
  @since 3.1
12
  */
13
 
14
  let almMasonryInit = true; // flag
15
 
16
+ let almMasonry = (container, items, selector, init, filtering) => {
17
 
18
+ if(!filtering){
19
+
20
+ // First Run
21
+ if(almMasonryInit && init){
 
 
22
  almMasonryInit = false;
23
+ container.imagesLoaded( () => {
24
+ items.fadeIn(250);
25
+ container.masonry({
26
+ itemSelector: selector,
27
+ });
28
+ container.masonry('reloadItems');
29
+ });
30
+ }
31
+
32
+ // Standard
33
+ else{
34
+ container.append( items ); // Append new items
35
+ container.imagesLoaded( () => {
36
+ items.show();
37
+ container.masonry( 'appended', items );
38
+ });
39
+ }
40
+
41
+ } else{
42
+ // Filtering Reset
43
+ container.masonry('destroy'); // destroy masonry
44
+ almMasonryInit = true; // reset almMasonryInit
45
  container.append( items );
46
+ almMasonry(container, items, selector, true, false);
47
+
 
 
48
  }
49
+
50
  };
gulpfile.js CHANGED
@@ -36,7 +36,7 @@ gulp.task('scripts', () => {
36
  './core/js/'+ appname +'.js',
37
  './core/js/libs/*.js',
38
  ])
39
- .pipe(babel({presets: ['es2015']}))
40
  .pipe(concat(appname +'.js'))
41
  .pipe(gulp.dest( dist +'/js/'))
42
  .pipe(rename({ suffix: '.min' }))
36
  './core/js/'+ appname +'.js',
37
  './core/js/libs/*.js',
38
  ])
39
+ .pipe(babel())
40
  .pipe(concat(appname +'.js'))
41
  .pipe(gulp.dest( dist +'/js/'))
42
  .pipe(rename({ suffix: '.min' }))
lang/ajax-load-more.pot CHANGED
@@ -1,15 +1,15 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Ajax Load More\n"
4
- "POT-Creation-Date: 2017-05-30 15:48-0500\n"
5
- "PO-Revision-Date: 2017-05-30 15:48-0500\n"
6
  "Last-Translator: Darren Cooney <dcooney@ecentricarts.com>\n"
7
  "Language-Team: \n"
8
  "Language: en_CA\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.6.4\n"
13
  "X-Poedit-Basepath: .\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Poedit-KeywordsList: __;_e\n"
@@ -21,22 +21,22 @@ msgid "You don't belong here."
21
  msgstr ""
22
 
23
  #: ../admin/admin.php:182 ../admin/editor/editor-build.php:72
24
- #: ../admin/views/licenses.php:66 ../admin/views/licenses.php:132
25
- #: ../admin/views/licenses.php:197 ../admin/views/licenses.php:262
26
- #: ../admin/views/licenses.php:328 ../admin/views/licenses.php:395
27
- #: ../admin/views/licenses.php:461 ../admin/views/licenses.php:528
28
- #: ../admin/views/licenses.php:593 ../admin/views/licenses.php:657
29
- #: ../admin/views/licenses.php:723 ../admin/views/licenses.php:791
30
  msgid "Active"
31
  msgstr ""
32
 
33
  #: ../admin/admin.php:183 ../admin/editor/editor-build.php:73
34
- #: ../admin/views/licenses.php:70 ../admin/views/licenses.php:136
35
- #: ../admin/views/licenses.php:201 ../admin/views/licenses.php:266
36
- #: ../admin/views/licenses.php:332 ../admin/views/licenses.php:399
37
- #: ../admin/views/licenses.php:465 ../admin/views/licenses.php:532
38
- #: ../admin/views/licenses.php:597 ../admin/views/licenses.php:661
39
- #: ../admin/views/licenses.php:727 ../admin/views/licenses.php:795
40
  msgid "Inactive"
41
  msgstr ""
42
 
@@ -582,7 +582,6 @@ msgid "Add-ons & Extensions"
582
  msgstr ""
583
 
584
  #: ../admin/shortcode-builder/shortcode-builder.php:26
585
- #: ../admin/views/licenses.php:45
586
  msgid "Advanced Custom Fields"
587
  msgstr ""
588
 
@@ -687,7 +686,7 @@ msgid "Enter the name of the ACF field"
687
  msgstr ""
688
 
689
  #: ../admin/shortcode-builder/shortcode-builder.php:106
690
- #: ../admin/views/add-ons.php:21 ../admin/views/licenses.php:111
691
  #: ../admin/views/settings.php:57
692
  msgid "Cache"
693
  msgstr ""
@@ -711,7 +710,7 @@ msgid "Generate Cache ID"
711
  msgstr ""
712
 
713
  #: ../admin/shortcode-builder/shortcode-builder.php:149
714
- #: ../admin/views/add-ons.php:48 ../admin/views/licenses.php:176
715
  msgid "Call to Actions"
716
  msgstr ""
717
 
@@ -770,7 +769,7 @@ msgid ""
770
  msgstr ""
771
 
772
  #: ../admin/shortcode-builder/shortcode-builder.php:244
773
- #: ../admin/views/add-ons.php:75 ../admin/views/licenses.php:241
774
  msgid "Comments"
775
  msgstr ""
776
 
@@ -883,7 +882,7 @@ msgid ""
883
  msgstr ""
884
 
885
  #: ../admin/shortcode-builder/shortcode-builder.php:395
886
- #: ../admin/views/add-ons.php:154 ../admin/views/licenses.php:440
887
  #, fuzzy
888
  msgid "Next Page"
889
  msgstr "Imprimer cette page"
@@ -966,7 +965,7 @@ msgid ""
966
  msgstr ""
967
 
968
  #: ../admin/shortcode-builder/shortcode-builder.php:513
969
- #: ../admin/views/add-ons.php:180 ../admin/views/licenses.php:507
970
  #: ../admin/views/settings.php:61
971
  msgid "Paging"
972
  msgstr ""
@@ -1001,7 +1000,7 @@ msgid ""
1001
  msgstr ""
1002
 
1003
  #: ../admin/shortcode-builder/shortcode-builder.php:589
1004
- #: ../admin/views/add-ons.php:207 ../admin/views/licenses.php:572
1005
  msgid "Preloaded"
1006
  msgstr ""
1007
 
@@ -1018,7 +1017,7 @@ msgid "Enter the number of posts to preload."
1018
  msgstr ""
1019
 
1020
  #: ../admin/shortcode-builder/shortcode-builder.php:630
1021
- #: ../admin/views/add-ons.php:233 ../admin/views/licenses.php:636
1022
  #: ../admin/views/settings.php:63
1023
  msgid "Previous Post"
1024
  msgstr ""
@@ -1683,7 +1682,7 @@ msgid ""
1683
  "infinite scroll functionality."
1684
  msgstr ""
1685
 
1686
- #: ../admin/views/add-ons.php:100 ../admin/views/licenses.php:307
1687
  msgid "Custom Repeaters"
1688
  msgstr ""
1689
 
@@ -1697,7 +1696,7 @@ msgid ""
1697
  "absolutely zero restrictions."
1698
  msgstr ""
1699
 
1700
- #: ../admin/views/add-ons.php:128 ../admin/views/licenses.php:374
1701
  #: ../admin/views/settings.php:59
1702
  msgid "Layouts"
1703
  msgstr ""
@@ -1752,7 +1751,7 @@ msgid ""
1752
  "browser URL to the current post."
1753
  msgstr ""
1754
 
1755
- #: ../admin/views/add-ons.php:259 ../admin/views/licenses.php:702
1756
  msgid "Search Engine Optimization"
1757
  msgstr ""
1758
 
@@ -1766,7 +1765,7 @@ msgid ""
1766
  "generating unique URLs with every query.</p>"
1767
  msgstr ""
1768
 
1769
- #: ../admin/views/add-ons.php:285 ../admin/views/licenses.php:770
1770
  #: ../admin/views/repeater-templates.php:28 ../admin/views/settings.php:69
1771
  msgid "Theme Repeaters"
1772
  msgstr ""
@@ -1860,100 +1859,99 @@ msgid ""
1860
  "href=\"plugins.php\">WP Plugins dashboard</a>."
1861
  msgstr ""
1862
 
1863
- #: ../admin/views/licenses.php:54 ../admin/views/licenses.php:120
1864
- #: ../admin/views/licenses.php:185 ../admin/views/licenses.php:250
1865
- #: ../admin/views/licenses.php:316 ../admin/views/licenses.php:383
1866
- #: ../admin/views/licenses.php:449 ../admin/views/licenses.php:516
1867
- #: ../admin/views/licenses.php:581 ../admin/views/licenses.php:645
1868
- #: ../admin/views/licenses.php:711 ../admin/views/licenses.php:779
1869
  msgid "Don't have a license?"
1870
  msgstr ""
1871
 
1872
- #: ../admin/views/licenses.php:55 ../admin/views/licenses.php:121
1873
- #: ../admin/views/licenses.php:186 ../admin/views/licenses.php:251
1874
- #: ../admin/views/licenses.php:317 ../admin/views/licenses.php:384
1875
- #: ../admin/views/licenses.php:450 ../admin/views/licenses.php:517
1876
- #: ../admin/views/licenses.php:582 ../admin/views/licenses.php:646
1877
- #: ../admin/views/licenses.php:712 ../admin/views/licenses.php:780
1878
  msgid ""
1879
  "A valid license is required to activate and receive plugin updates directly "
1880
  "in your WordPress dashboard"
1881
  msgstr ""
1882
 
1883
- #: ../admin/views/licenses.php:55 ../admin/views/licenses.php:121
1884
- #: ../admin/views/licenses.php:186 ../admin/views/licenses.php:251
1885
- #: ../admin/views/licenses.php:317 ../admin/views/licenses.php:384
1886
- #: ../admin/views/licenses.php:450 ../admin/views/licenses.php:517
1887
- #: ../admin/views/licenses.php:582 ../admin/views/licenses.php:646
1888
- #: ../admin/views/licenses.php:712 ../admin/views/licenses.php:780
1889
  msgid "Purchase Now"
1890
  msgstr ""
1891
 
1892
- #: ../admin/views/licenses.php:61 ../admin/views/licenses.php:63
1893
- #: ../admin/views/licenses.php:127 ../admin/views/licenses.php:129
1894
- #: ../admin/views/licenses.php:192 ../admin/views/licenses.php:194
1895
- #: ../admin/views/licenses.php:257 ../admin/views/licenses.php:259
1896
  #: ../admin/views/licenses.php:323 ../admin/views/licenses.php:325
1897
- #: ../admin/views/licenses.php:390 ../admin/views/licenses.php:392
1898
  #: ../admin/views/licenses.php:456 ../admin/views/licenses.php:458
1899
- #: ../admin/views/licenses.php:523 ../admin/views/licenses.php:525
1900
- #: ../admin/views/licenses.php:588 ../admin/views/licenses.php:590
1901
- #: ../admin/views/licenses.php:652 ../admin/views/licenses.php:654
1902
- #: ../admin/views/licenses.php:718 ../admin/views/licenses.php:720
1903
- #: ../admin/views/licenses.php:786 ../admin/views/licenses.php:788
1904
  msgid "Enter License Key"
1905
  msgstr ""
1906
 
1907
- #: ../admin/views/licenses.php:83 ../admin/views/licenses.php:149
1908
- #: ../admin/views/licenses.php:214 ../admin/views/licenses.php:279
1909
- #: ../admin/views/licenses.php:345 ../admin/views/licenses.php:412
1910
- #: ../admin/views/licenses.php:478 ../admin/views/licenses.php:545
1911
- #: ../admin/views/licenses.php:609 ../admin/views/licenses.php:674
1912
- #: ../admin/views/licenses.php:740 ../admin/views/licenses.php:809
1913
  msgid "Activate License"
1914
  msgstr ""
1915
 
1916
- #: ../admin/views/licenses.php:87 ../admin/views/licenses.php:153
1917
- #: ../admin/views/licenses.php:218 ../admin/views/licenses.php:283
1918
- #: ../admin/views/licenses.php:349 ../admin/views/licenses.php:416
1919
- #: ../admin/views/licenses.php:482 ../admin/views/licenses.php:549
1920
- #: ../admin/views/licenses.php:613 ../admin/views/licenses.php:678
1921
- #: ../admin/views/licenses.php:744 ../admin/views/licenses.php:813
1922
  msgid "Deactivate License"
1923
  msgstr ""
1924
 
1925
- #: ../admin/views/licenses.php:831
1926
  msgid "You do not have any Ajax Load More add-ons installed"
1927
  msgstr ""
1928
 
1929
- #: ../admin/views/licenses.php:831
1930
  msgid "Browse Add-ons"
1931
  msgstr ""
1932
 
1933
- #: ../admin/views/licenses.php:842
1934
  msgid "About Licenses"
1935
  msgstr ""
1936
 
1937
- #: ../admin/views/licenses.php:845
1938
  msgid "Add-on licenses will enable updates directly in your WP dashboard."
1939
  msgstr ""
1940
 
1941
- #: ../admin/views/licenses.php:846
1942
  msgid ""
1943
  "License keys are found in the purchase receipt email that was sent "
1944
  "immediately after your successful purchase and in the <a target=\"_blank\" "
1945
  "href=\"https://connekthq.com/account/\">Account</a> section on our website"
1946
  msgstr ""
1947
 
1948
- #: ../admin/views/licenses.php:847
1949
  msgid ""
1950
  "If you cannot locate your key please open a support ticket by filling out "
1951
  "the <a href=\"https://connekthq.com/contact/\">form</a> on our website and "
1952
  "reference the email address used when you completed the purchase."
1953
  msgstr ""
1954
 
1955
- #: ../admin/views/licenses.php:853
1956
- msgid "Legacy Users"
1957
  msgstr ""
1958
 
1959
  #: ../admin/views/repeater-templates.php:18
@@ -2093,7 +2091,7 @@ msgstr ""
2093
  msgid "Reset Shortcode Builder"
2094
  msgstr ""
2095
 
2096
- #: ../ajax-load-more.php:195
2097
  msgid "Settings"
2098
  msgstr ""
2099
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Ajax Load More\n"
4
+ "POT-Creation-Date: 2017-07-10 09:24-0500\n"
5
+ "PO-Revision-Date: 2017-07-10 09:24-0500\n"
6
  "Last-Translator: Darren Cooney <dcooney@ecentricarts.com>\n"
7
  "Language-Team: \n"
8
  "Language: en_CA\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.6.7\n"
13
  "X-Poedit-Basepath: .\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Poedit-KeywordsList: __;_e\n"
21
  msgstr ""
22
 
23
  #: ../admin/admin.php:182 ../admin/editor/editor-build.php:72
24
+ #: ../admin/views/licenses.php:65 ../admin/views/licenses.php:130
25
+ #: ../admin/views/licenses.php:195 ../admin/views/licenses.php:261
26
+ #: ../admin/views/licenses.php:328 ../admin/views/licenses.php:394
27
+ #: ../admin/views/licenses.php:461 ../admin/views/licenses.php:526
28
+ #: ../admin/views/licenses.php:590 ../admin/views/licenses.php:656
29
+ #: ../admin/views/licenses.php:724
30
  msgid "Active"
31
  msgstr ""
32
 
33
  #: ../admin/admin.php:183 ../admin/editor/editor-build.php:73
34
+ #: ../admin/views/licenses.php:69 ../admin/views/licenses.php:134
35
+ #: ../admin/views/licenses.php:199 ../admin/views/licenses.php:265
36
+ #: ../admin/views/licenses.php:332 ../admin/views/licenses.php:398
37
+ #: ../admin/views/licenses.php:465 ../admin/views/licenses.php:530
38
+ #: ../admin/views/licenses.php:594 ../admin/views/licenses.php:660
39
+ #: ../admin/views/licenses.php:728
40
  msgid "Inactive"
41
  msgstr ""
42
 
582
  msgstr ""
583
 
584
  #: ../admin/shortcode-builder/shortcode-builder.php:26
 
585
  msgid "Advanced Custom Fields"
586
  msgstr ""
587
 
686
  msgstr ""
687
 
688
  #: ../admin/shortcode-builder/shortcode-builder.php:106
689
+ #: ../admin/views/add-ons.php:21 ../admin/views/licenses.php:44
690
  #: ../admin/views/settings.php:57
691
  msgid "Cache"
692
  msgstr ""
710
  msgstr ""
711
 
712
  #: ../admin/shortcode-builder/shortcode-builder.php:149
713
+ #: ../admin/views/add-ons.php:48 ../admin/views/licenses.php:109
714
  msgid "Call to Actions"
715
  msgstr ""
716
 
769
  msgstr ""
770
 
771
  #: ../admin/shortcode-builder/shortcode-builder.php:244
772
+ #: ../admin/views/add-ons.php:75 ../admin/views/licenses.php:174
773
  msgid "Comments"
774
  msgstr ""
775
 
882
  msgstr ""
883
 
884
  #: ../admin/shortcode-builder/shortcode-builder.php:395
885
+ #: ../admin/views/add-ons.php:154 ../admin/views/licenses.php:373
886
  #, fuzzy
887
  msgid "Next Page"
888
  msgstr "Imprimer cette page"
965
  msgstr ""
966
 
967
  #: ../admin/shortcode-builder/shortcode-builder.php:513
968
+ #: ../admin/views/add-ons.php:180 ../admin/views/licenses.php:440
969
  #: ../admin/views/settings.php:61
970
  msgid "Paging"
971
  msgstr ""
1000
  msgstr ""
1001
 
1002
  #: ../admin/shortcode-builder/shortcode-builder.php:589
1003
+ #: ../admin/views/add-ons.php:207 ../admin/views/licenses.php:505
1004
  msgid "Preloaded"
1005
  msgstr ""
1006
 
1017
  msgstr ""
1018
 
1019
  #: ../admin/shortcode-builder/shortcode-builder.php:630
1020
+ #: ../admin/views/add-ons.php:233 ../admin/views/licenses.php:569
1021
  #: ../admin/views/settings.php:63
1022
  msgid "Previous Post"
1023
  msgstr ""
1682
  "infinite scroll functionality."
1683
  msgstr ""
1684
 
1685
+ #: ../admin/views/add-ons.php:100 ../admin/views/licenses.php:240
1686
  msgid "Custom Repeaters"
1687
  msgstr ""
1688
 
1696
  "absolutely zero restrictions."
1697
  msgstr ""
1698
 
1699
+ #: ../admin/views/add-ons.php:128 ../admin/views/licenses.php:307
1700
  #: ../admin/views/settings.php:59
1701
  msgid "Layouts"
1702
  msgstr ""
1751
  "browser URL to the current post."
1752
  msgstr ""
1753
 
1754
+ #: ../admin/views/add-ons.php:259 ../admin/views/licenses.php:635
1755
  msgid "Search Engine Optimization"
1756
  msgstr ""
1757
 
1765
  "generating unique URLs with every query.</p>"
1766
  msgstr ""
1767
 
1768
+ #: ../admin/views/add-ons.php:285 ../admin/views/licenses.php:703
1769
  #: ../admin/views/repeater-templates.php:28 ../admin/views/settings.php:69
1770
  msgid "Theme Repeaters"
1771
  msgstr ""
1859
  "href=\"plugins.php\">WP Plugins dashboard</a>."
1860
  msgstr ""
1861
 
1862
+ #: ../admin/views/licenses.php:53 ../admin/views/licenses.php:118
1863
+ #: ../admin/views/licenses.php:183 ../admin/views/licenses.php:249
1864
+ #: ../admin/views/licenses.php:316 ../admin/views/licenses.php:382
1865
+ #: ../admin/views/licenses.php:449 ../admin/views/licenses.php:514
1866
+ #: ../admin/views/licenses.php:578 ../admin/views/licenses.php:644
1867
+ #: ../admin/views/licenses.php:712
1868
  msgid "Don't have a license?"
1869
  msgstr ""
1870
 
1871
+ #: ../admin/views/licenses.php:54 ../admin/views/licenses.php:119
1872
+ #: ../admin/views/licenses.php:184 ../admin/views/licenses.php:250
1873
+ #: ../admin/views/licenses.php:317 ../admin/views/licenses.php:383
1874
+ #: ../admin/views/licenses.php:450 ../admin/views/licenses.php:515
1875
+ #: ../admin/views/licenses.php:579 ../admin/views/licenses.php:645
1876
+ #: ../admin/views/licenses.php:713
1877
  msgid ""
1878
  "A valid license is required to activate and receive plugin updates directly "
1879
  "in your WordPress dashboard"
1880
  msgstr ""
1881
 
1882
+ #: ../admin/views/licenses.php:54 ../admin/views/licenses.php:119
1883
+ #: ../admin/views/licenses.php:184 ../admin/views/licenses.php:250
1884
+ #: ../admin/views/licenses.php:317 ../admin/views/licenses.php:383
1885
+ #: ../admin/views/licenses.php:450 ../admin/views/licenses.php:515
1886
+ #: ../admin/views/licenses.php:579 ../admin/views/licenses.php:645
1887
+ #: ../admin/views/licenses.php:713
1888
  msgid "Purchase Now"
1889
  msgstr ""
1890
 
1891
+ #: ../admin/views/licenses.php:60 ../admin/views/licenses.php:62
1892
+ #: ../admin/views/licenses.php:125 ../admin/views/licenses.php:127
1893
+ #: ../admin/views/licenses.php:190 ../admin/views/licenses.php:192
1894
+ #: ../admin/views/licenses.php:256 ../admin/views/licenses.php:258
1895
  #: ../admin/views/licenses.php:323 ../admin/views/licenses.php:325
1896
+ #: ../admin/views/licenses.php:389 ../admin/views/licenses.php:391
1897
  #: ../admin/views/licenses.php:456 ../admin/views/licenses.php:458
1898
+ #: ../admin/views/licenses.php:521 ../admin/views/licenses.php:523
1899
+ #: ../admin/views/licenses.php:585 ../admin/views/licenses.php:587
1900
+ #: ../admin/views/licenses.php:651 ../admin/views/licenses.php:653
1901
+ #: ../admin/views/licenses.php:719 ../admin/views/licenses.php:721
 
1902
  msgid "Enter License Key"
1903
  msgstr ""
1904
 
1905
+ #: ../admin/views/licenses.php:82 ../admin/views/licenses.php:147
1906
+ #: ../admin/views/licenses.php:212 ../admin/views/licenses.php:278
1907
+ #: ../admin/views/licenses.php:345 ../admin/views/licenses.php:411
1908
+ #: ../admin/views/licenses.php:478 ../admin/views/licenses.php:542
1909
+ #: ../admin/views/licenses.php:607 ../admin/views/licenses.php:673
1910
+ #: ../admin/views/licenses.php:742
1911
  msgid "Activate License"
1912
  msgstr ""
1913
 
1914
+ #: ../admin/views/licenses.php:86 ../admin/views/licenses.php:151
1915
+ #: ../admin/views/licenses.php:216 ../admin/views/licenses.php:282
1916
+ #: ../admin/views/licenses.php:349 ../admin/views/licenses.php:415
1917
+ #: ../admin/views/licenses.php:482 ../admin/views/licenses.php:546
1918
+ #: ../admin/views/licenses.php:611 ../admin/views/licenses.php:677
1919
+ #: ../admin/views/licenses.php:746
1920
  msgid "Deactivate License"
1921
  msgstr ""
1922
 
1923
+ #: ../admin/views/licenses.php:764
1924
  msgid "You do not have any Ajax Load More add-ons installed"
1925
  msgstr ""
1926
 
1927
+ #: ../admin/views/licenses.php:764
1928
  msgid "Browse Add-ons"
1929
  msgstr ""
1930
 
1931
+ #: ../admin/views/licenses.php:775
1932
  msgid "About Licenses"
1933
  msgstr ""
1934
 
1935
+ #: ../admin/views/licenses.php:778
1936
  msgid "Add-on licenses will enable updates directly in your WP dashboard."
1937
  msgstr ""
1938
 
1939
+ #: ../admin/views/licenses.php:779
1940
  msgid ""
1941
  "License keys are found in the purchase receipt email that was sent "
1942
  "immediately after your successful purchase and in the <a target=\"_blank\" "
1943
  "href=\"https://connekthq.com/account/\">Account</a> section on our website"
1944
  msgstr ""
1945
 
1946
+ #: ../admin/views/licenses.php:780
1947
  msgid ""
1948
  "If you cannot locate your key please open a support ticket by filling out "
1949
  "the <a href=\"https://connekthq.com/contact/\">form</a> on our website and "
1950
  "reference the email address used when you completed the purchase."
1951
  msgstr ""
1952
 
1953
+ #: ../admin/views/licenses.php:784
1954
+ msgid "Sign Into Your Account"
1955
  msgstr ""
1956
 
1957
  #: ../admin/views/repeater-templates.php:18
2091
  msgid "Reset Shortcode Builder"
2092
  msgstr ""
2093
 
2094
+ #: ../ajax-load-more.php:212
2095
  msgid "Settings"
2096
  msgstr ""
2097