WordPress Infinite Scroll – Ajax Load More - Version 3.3.1

Version Description

  • December 7, 2017 =

Notice

This Ajax Load More release contains fundamental changes to the way ALM loads CSS. After update, if you run into issues visit the Ajax Load More settings screen and deselect the Load CSS Inline option.

  • NEW - Updated the default loading of Ajax Load More CSS. CSS Will now be inlined to improve site overall performance. A new setting has been added to allow for disabling of this inline CSS update.
  • NEW - New filters added for hooking the post ID, slug and canonical URL.
  • FIX - Updated shortcode builder JS to remove unwanted references to the Users add-on.
  • FIX - Fixed bug with searching and the Preloaded add-on.
  • FIX - Fixed for REST API returning null results do to unset data variable.
  • Update - Updated Previous Post cache to reference the post ID vs post slug. This fixes an issue with special characters in post URLs causing 404 errors.
Download this release

Release Info

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

Code changes from version 3.3.0.1 to 3.3.1

README.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: dcooney, connekthq
3
  Donate link: https://connekthq.com/donate/
4
  Tags: infinite scroll, infinite scrolling, scroll, infinite, lazy load, lazy loading, endless scroll, pagination, ajax pagination, ajax, ajax posts, ajax load posts, woocommerce, ajax load more
5
  Requires at least: 3.6
6
- Tested up to: 4.9
7
- Stable tag: 3.3.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -369,6 +369,18 @@ How to install Ajax Load More.
369
 
370
  == Changelog ==
371
 
 
 
 
 
 
 
 
 
 
 
 
 
372
 
373
  = 3.3.0.1 - November 22, 2017 =
374
 
3
  Donate link: https://connekthq.com/donate/
4
  Tags: infinite scroll, infinite scrolling, scroll, infinite, lazy load, lazy loading, endless scroll, pagination, ajax pagination, ajax, ajax posts, ajax load posts, woocommerce, ajax load more
5
  Requires at least: 3.6
6
+ Tested up to: 4.9.1
7
+ Stable tag: 3.3.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
369
 
370
  == Changelog ==
371
 
372
+ = 3.3.1 - December 7, 2017 =
373
+
374
+ ### Notice
375
+ This Ajax Load More release contains fundamental changes to the way ALM loads CSS. After update, if you run into issues visit the Ajax Load More settings screen and deselect the `Load CSS Inline` option.
376
+
377
+ * NEW - Updated the default loading of Ajax Load More CSS. CSS Will now be inlined to improve site overall performance. A new setting has been added to allow for disabling of this inline CSS update.
378
+ * NEW - New filters added for hooking the post ID, slug and canonical URL.
379
+ * FIX - Updated shortcode builder JS to remove unwanted references to the Users add-on.
380
+ * FIX - Fixed bug with searching and the Preloaded add-on.
381
+ * FIX - Fixed for REST API returning null results do to unset data variable.
382
+ * Update - Updated Previous Post cache to reference the post ID vs post slug. This fixes an issue with special characters in post URLs causing 404 errors.
383
+
384
 
385
  = 3.3.0.1 - November 22, 2017 =
386
 
admin/admin.php CHANGED
@@ -993,6 +993,14 @@ function alm_admin_init(){
993
  'alm_general_settings'
994
  );
995
 
 
 
 
 
 
 
 
 
996
  add_settings_field( // Button classes
997
  '_alm_btn_classname',
998
  __('Button Classes', 'ajax-load-more' ),
@@ -1354,6 +1362,26 @@ function alm_btn_color_callback() {
1354
 
1355
 
1356
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1357
  /*
1358
  * alm_btn_class_callback
1359
  * Add classes to the Ajax Load More button
@@ -1377,16 +1405,16 @@ function alm_btn_class_callback(){
1377
  // Check if Disable CSS === true
1378
  if(jQuery('input#alm_disable_css_input').is(":checked")){
1379
  jQuery('select#alm_settings_btn_color').parent().parent().hide(); // Hide button color
1380
- //jQuery('input.btn-classes').parent().parent().hide(); // Hide Button Classes
1381
  }
1382
  jQuery('input#alm_disable_css_input').change(function() {
1383
  var el = jQuery(this);
1384
  if(el.is(":checked")) {
1385
  el.parent().parent('tr').next('tr').hide(); // Hide button color
1386
- //el.parent().parent('tr').next('tr').next('tr').hide(); // Hide Button Classes
1387
  }else{
1388
  el.parent().parent('tr').next('tr').show(); // show button color
1389
- //el.parent().parent('tr').next('tr').next('tr').show(); // show Button Classes
1390
  }
1391
  });
1392
 
993
  'alm_general_settings'
994
  );
995
 
996
+ add_settings_field( // Inline CSS
997
+ '_alm_inline_css',
998
+ __('Load CSS Inline', 'ajax-load-more' ),
999
+ 'alm_inline_css_callback',
1000
+ 'ajax-load-more',
1001
+ 'alm_general_settings'
1002
+ );
1003
+
1004
  add_settings_field( // Button classes
1005
  '_alm_btn_classname',
1006
  __('Button Classes', 'ajax-load-more' ),
1362
 
1363
 
1364
 
1365
+ /*
1366
+ * alm_inline_css_callback
1367
+ * Load CSS Inline vs the head
1368
+ *
1369
+ * @since 3.3.1
1370
+ */
1371
+ function alm_inline_css_callback(){
1372
+ $options = get_option( 'alm_settings' );
1373
+ if(!isset($options['_alm_inline_css']))
1374
+ $options['_alm_inline_css'] = '1';
1375
+
1376
+ $html = '<input type="hidden" name="alm_settings[_alm_inline_css]" value="0" />';
1377
+ $html .= '<input type="checkbox" name="alm_settings[_alm_inline_css]" id="alm_inline_css" value="1"'. (($options['_alm_inline_css']) ? ' checked="checked"' : '') .' />';
1378
+ $html .= '<label for="alm_inline_css">'.__('Improve site performance by loading Ajax Load More CSS inline', 'ajax-load-more').'.</label>';
1379
+
1380
+ echo $html;
1381
+ }
1382
+
1383
+
1384
+
1385
  /*
1386
  * alm_btn_class_callback
1387
  * Add classes to the Ajax Load More button
1405
  // Check if Disable CSS === true
1406
  if(jQuery('input#alm_disable_css_input').is(":checked")){
1407
  jQuery('select#alm_settings_btn_color').parent().parent().hide(); // Hide button color
1408
+ jQuery('input#alm_inline_css').parent().parent().hide(); // Hide inline css
1409
  }
1410
  jQuery('input#alm_disable_css_input').change(function() {
1411
  var el = jQuery(this);
1412
  if(el.is(":checked")) {
1413
  el.parent().parent('tr').next('tr').hide(); // Hide button color
1414
+ el.parent().parent('tr').next('tr').next('tr').hide(); // Hide inline css
1415
  }else{
1416
  el.parent().parent('tr').next('tr').show(); // show button color
1417
+ el.parent().parent('tr').next('tr').next('tr').show(); // show inline css
1418
  }
1419
  });
1420
 
admin/dist/css/admin.css CHANGED
@@ -3110,18 +3110,18 @@ p.cache-stats {
3110
  .ajax-load-more .form-table input[type=radio] + label {
3111
  background: #fff url("../../img/bkg-chkbox_off.png") no-repeat left 1px;
3112
  height: auto;
3113
- min-height: 22px;
3114
  width: 100%;
3115
  display: inline-block;
3116
  padding: 1px 0 0 30px;
3117
  margin: 0 0 5px;
3118
  font-size: 14px;
3119
- line-height: 1.42;
3120
  cursor: pointer !important; }
3121
 
3122
  .shortcode-builder input[type=radio] + label,
3123
  .ajax-load-more .form-table input[type=radio] + label {
3124
- background: #fff url("../../img/bkg-radio_off.png") no-repeat left 1px; }
3125
 
3126
  .shortcode-builder input[type=checkbox]:hover + label,
3127
  .ajax-load-more .form-table input[type=checkbox]:hover + label {
3110
  .ajax-load-more .form-table input[type=radio] + label {
3111
  background: #fff url("../../img/bkg-chkbox_off.png") no-repeat left 1px;
3112
  height: auto;
3113
+ min-height: 23px;
3114
  width: 100%;
3115
  display: inline-block;
3116
  padding: 1px 0 0 30px;
3117
  margin: 0 0 5px;
3118
  font-size: 14px;
3119
+ line-height: 1.5;
3120
  cursor: pointer !important; }
3121
 
3122
  .shortcode-builder input[type=radio] + label,
3123
  .ajax-load-more .form-table input[type=radio] + label {
3124
+ background: #fff url("../../img/bkg-radio_off.png") no-repeat left 2px; }
3125
 
3126
  .shortcode-builder input[type=checkbox]:hover + label,
3127
  .ajax-load-more .form-table input[type=checkbox]:hover + label {
admin/src/scss/admin.scss CHANGED
@@ -2628,19 +2628,19 @@ p.cache-stats{
2628
  .shortcode-builder input[type=radio] + label,
2629
  .ajax-load-more .form-table input[type=radio] + label{
2630
  background: #fff url('../../img/bkg-chkbox_off.png') no-repeat left 1px;
2631
- height: auto;
2632
- min-height: 22px;
2633
  width: 100%;
2634
  display:inline-block;
2635
  padding: 1px 0 0 30px;
2636
  margin: 0 0 5px;
2637
  font-size: 14px;
2638
- line-height: 1.42;
2639
  cursor: pointer !important;
2640
  }
2641
  .shortcode-builder input[type=radio] + label,
2642
  .ajax-load-more .form-table input[type=radio] + label{
2643
- background: #fff url('../../img/bkg-radio_off.png') no-repeat left 1px;
2644
  }
2645
 
2646
  .shortcode-builder input[type=checkbox]:hover + label,
2628
  .shortcode-builder input[type=radio] + label,
2629
  .ajax-load-more .form-table input[type=radio] + label{
2630
  background: #fff url('../../img/bkg-chkbox_off.png') no-repeat left 1px;
2631
+ height: auto;
2632
+ min-height: 23px;
2633
  width: 100%;
2634
  display:inline-block;
2635
  padding: 1px 0 0 30px;
2636
  margin: 0 0 5px;
2637
  font-size: 14px;
2638
+ line-height: 1.5;
2639
  cursor: pointer !important;
2640
  }
2641
  .shortcode-builder input[type=radio] + label,
2642
  .ajax-load-more .form-table input[type=radio] + label{
2643
+ background: #fff url('../../img/bkg-radio_off.png') no-repeat left 2px;
2644
  }
2645
 
2646
  .shortcode-builder input[type=checkbox]:hover + label,
ajax-load-more.php CHANGED
@@ -7,15 +7,15 @@ Text Domain: ajax-load-more
7
  Author: Darren Cooney
8
  Twitter: @KaptonKaos
9
  Author URI: https://connekthq.com
10
- Version: 3.3.0.1
11
  License: GPL
12
  Copyright: Darren Cooney & Connekt Media
13
  */
14
 
15
 
16
 
17
- define('ALM_VERSION', '3.3.0.1');
18
- define('ALM_RELEASE', 'November 22, 2017');
19
  define('ALM_STORE_URL', 'https://connekthq.com');
20
 
21
 
@@ -147,6 +147,7 @@ if( !class_exists('AjaxLoadMore') ):
147
  define('ALM_ADMIN_URL', plugins_url('admin/', __FILE__));
148
  define('ALM_NAME', '_ajax_load_more');
149
  define('ALM_TITLE', 'Ajax Load More');
 
150
 
151
  if (!defined('ALM_CACHE_ITEM_NAME')) define('ALM_CACHE_ITEM_NAME', '4878');
152
  if (!defined('ALM_CTA_ITEM_NAME')) define('ALM_CTA_ITEM_NAME', '14456');
@@ -260,16 +261,16 @@ if( !class_exists('AjaxLoadMore') ):
260
  $dependencies = apply_filters( 'alm_js_dependencies', array('jquery') );
261
 
262
 
263
- // Load Core JS
264
  wp_register_script( 'ajax-load-more', plugins_url( '/core/dist/js/ajax-load-more.min.js', __FILE__ ), $dependencies, ALM_VERSION, true );
265
 
266
- // Load Progress Bar JS
267
  wp_register_script( 'ajax-load-more-progress', plugins_url( '/core/src/js/vendor/pace/pace.min.js', __FILE__ ), 'ajax-load-more', ALM_VERSION, true );
268
 
269
  // Load Core CSS
270
- if(!isset($options['_alm_disable_css']) || $options['_alm_disable_css'] != '1'){
271
- $file = plugins_url('/core/dist/css/ajax-load-more.min.css', __FILE__ );
272
- ALM_ENQUEUE::alm_enqueue_css('ajax-load-more', $file);
273
  }
274
 
275
  // Prevent loading of unnessasry posts - move user to top of page
@@ -809,7 +810,7 @@ if( !class_exists('AjaxLoadMore') ):
809
  if(!empty($cache_id) && has_action('alm_cache_installed') && $do_create_cache){
810
  if($previous_post){
811
  // Previous Post Cache
812
- apply_filters('alm_previous_post_cache_file', $cache_id, $previous_post_slug, $data);
813
  }else{
814
  // Standard Cache
815
  apply_filters('alm_cache_file', $cache_id, $page, $seo_start_page, $data, $preloaded);
7
  Author: Darren Cooney
8
  Twitter: @KaptonKaos
9
  Author URI: https://connekthq.com
10
+ Version: 3.3.1
11
  License: GPL
12
  Copyright: Darren Cooney & Connekt Media
13
  */
14
 
15
 
16
 
17
+ define('ALM_VERSION', '3.3.1');
18
+ define('ALM_RELEASE', 'December 7, 2017');
19
  define('ALM_STORE_URL', 'https://connekthq.com');
20
 
21
 
147
  define('ALM_ADMIN_URL', plugins_url('admin/', __FILE__));
148
  define('ALM_NAME', '_ajax_load_more');
149
  define('ALM_TITLE', 'Ajax Load More');
150
+ define('ALM_SLUG', 'ajax-load-more');
151
 
152
  if (!defined('ALM_CACHE_ITEM_NAME')) define('ALM_CACHE_ITEM_NAME', '4878');
153
  if (!defined('ALM_CTA_ITEM_NAME')) define('ALM_CTA_ITEM_NAME', '14456');
261
  $dependencies = apply_filters( 'alm_js_dependencies', array('jquery') );
262
 
263
 
264
+ // Core ALM JS
265
  wp_register_script( 'ajax-load-more', plugins_url( '/core/dist/js/ajax-load-more.min.js', __FILE__ ), $dependencies, ALM_VERSION, true );
266
 
267
+ // Progress Bar JS
268
  wp_register_script( 'ajax-load-more-progress', plugins_url( '/core/src/js/vendor/pace/pace.min.js', __FILE__ ), 'ajax-load-more', ALM_VERSION, true );
269
 
270
  // Load Core CSS
271
+ if( !alm_do_inline_css('_alm_inline_css') && !alm_css_disabled('_alm_disable_css')){ // Not inline or disabled
272
+ $file = plugins_url('/core/dist/css/'. ALM_SLUG .'.min.css', __FILE__ );
273
+ ALM_ENQUEUE::alm_enqueue_css(ALM_SLUG, $file);
274
  }
275
 
276
  // Prevent loading of unnessasry posts - move user to top of page
810
  if(!empty($cache_id) && has_action('alm_cache_installed') && $do_create_cache){
811
  if($previous_post){
812
  // Previous Post Cache
813
+ apply_filters('alm_previous_post_cache_file', $cache_id, $previous_post_id, $data);
814
  }else{
815
  // Standard Cache
816
  apply_filters('alm_cache_file', $cache_id, $page, $seo_start_page, $data, $preloaded);
core/classes/class.alm-enqueue.php CHANGED
@@ -56,6 +56,71 @@ if( !class_exists('ALM_ENQUEUE') ):
56
  // Enqueue $file
57
  wp_enqueue_style( $name, $file );
58
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
 
60
  }
61
 
56
  // Enqueue $file
57
  wp_enqueue_style( $name, $file );
58
  }
59
+
60
+
61
+
62
+ /**
63
+ * alm_inline_css
64
+ *
65
+ * Load ALM CSS Inline
66
+ *
67
+ *
68
+ * @param $name Enqueue filename
69
+ * @param $file Path to file
70
+ * @param $url_path URL to plugin directory
71
+ * @since 2.3.1
72
+ * @return $contents
73
+ */
74
+ public static function alm_inline_css($name, $file, $url_path){
75
+
76
+ $css = '';
77
+ $css_path = '';
78
+ $dir = 'alm';
79
+ $file_css = $name.'.css';
80
+ $contents = '';
81
+ $core_alm_css = true;
82
+
83
+ // - Check theme for local ajax-load-more.css, if found, load that file
84
+ if(is_child_theme()){
85
+ $css = get_stylesheet_directory_uri().'/'. $dir .'/' .$file_css;
86
+ $css_path = get_stylesheet_directory().'/'. $dir .'/' .$file_css;
87
+ // if child theme does not have CSS, check the parent theme
88
+ if(!file_exists($css_path)){
89
+ $css = get_template_directory_uri().'/'. $dir .'/' .$file_css;
90
+ $css_path = get_template_directory().'/'. $dir .'/' .$file_css;
91
+ }
92
+ }
93
+ else{
94
+ $css = get_template_directory_uri().'/'. $dir .'/' .$file_css;
95
+ $css_path = get_template_directory().'/'. $dir .'/' .$file_css;
96
+ }
97
+
98
+ if($css_path !== ''){ // If $css_path has been
99
+ if(file_exists($css_path)){
100
+ $file = $css_path;
101
+ $core_alm_css = false;
102
+ }
103
+ }
104
+
105
+ if(file_exists($file)){
106
+ $css_file = file_get_contents( $file );
107
+
108
+ // If using core CSS, replace the `../..` path in the CSS file.
109
+ if($core_alm_css){
110
+
111
+ $new_img_path = $url_path .'/core';
112
+
113
+ // Find and replace strings in CSS
114
+ $css_file = str_replace('../..', $new_img_path, $css_file);
115
+
116
+ }
117
+
118
+ $contents = '<style type="text/css">' . $css_file . '</style>';
119
+ }
120
+
121
+ return $contents;
122
+
123
+ }
124
 
125
  }
126
 
core/classes/class.alm-shortcode.php CHANGED
@@ -36,10 +36,10 @@ if( !class_exists('ALM_SHORTCODE') ):
36
  self::$counter++;
37
 
38
  // Define page slug
39
- $slug = alm_get_page_slug($post);
40
 
41
- // Define Post ID
42
- $post_id = alm_get_page_id($post);
43
 
44
  // Custom CSS for Layouts - Only run this once.
45
  if(has_action('alm_layouts_custom_css')){
@@ -154,7 +154,13 @@ if( !class_exists('ALM_SHORTCODE') ):
154
 
155
 
156
  // Start Enqueue Scripts
157
-
 
 
 
 
 
 
158
 
159
  // Masonry
160
  if($transition === 'masonry'){
@@ -179,6 +185,14 @@ if( !class_exists('ALM_SHORTCODE') ):
179
  // Paging
180
  if(has_action('alm_paging_installed') && $paging === 'true'){
181
  wp_enqueue_script( 'ajax-load-more-paging' );
 
 
 
 
 
 
 
 
182
  }
183
 
184
  // Previous Post
@@ -325,7 +339,8 @@ if( !class_exists('ALM_SHORTCODE') ):
325
  */
326
  $ajaxloadmore .= apply_filters('alm_before_container', '');
327
 
328
- $canonicalURL = alm_get_canonical_url(); // Build Canonical URL
 
329
 
330
  // Generate ALM ID
331
  $div_id = (self::$counter > 1) ? 'ajax-load-more-'.self::$counter : 'ajax-load-more';
@@ -455,7 +470,7 @@ if( !class_exists('ALM_SHORTCODE') ):
455
  'author' => $author,
456
  'post__in' => $post__in,
457
  'post__not_in' => $post__not_in,
458
- 'search' => $search,
459
  'custom_args' => $custom_args,
460
  'post_status' => $post_status,
461
  'order' => $order,
@@ -495,6 +510,7 @@ if( !class_exists('ALM_SHORTCODE') ):
495
  }
496
 
497
  elseif($users){ // Users
 
498
  if(has_action('alm_users_preloaded') && $users){
499
 
500
  // Encrypt User Role
@@ -590,6 +606,7 @@ if( !class_exists('ALM_SHORTCODE') ):
590
 
591
 
592
  $alm_preload_query = new WP_Query($args);
 
593
  $alm_total_posts = $alm_preload_query->found_posts - $offset;
594
  $output = '';
595
  $noscript = '';
@@ -973,7 +990,7 @@ if( !class_exists('ALM_SHORTCODE') ):
973
  $btn_href = '';
974
  if($seo === 'true'){
975
  $btn_element = 'a'; // Convert to link for SEO
976
- $btn_href = 'href="'.$canonicalURL.'"';
977
  }
978
 
979
 
36
  self::$counter++;
37
 
38
  // Define page slug
39
+ $slug = apply_filters('alm_page_slug', alm_get_page_slug($post));
40
 
41
+ // Define post ID
42
+ $post_id = apply_filters('alm_page_id', alm_get_page_id($post));
43
 
44
  // Custom CSS for Layouts - Only run this once.
45
  if(has_action('alm_layouts_custom_css')){
154
 
155
 
156
  // Start Enqueue Scripts
157
+
158
+
159
+ // Inline CSS
160
+ if( !is_admin() && alm_do_inline_css('_alm_inline_css') && !alm_css_disabled('_alm_disable_css') && self::$counter === 1 ){
161
+ $file = ALM_PATH . '/core/dist/css/'. ALM_SLUG .'.min.css'; // Core Ajax Load More
162
+ echo ALM_ENQUEUE::alm_inline_css(ALM_SLUG, $file, ALM_URL);
163
+ }
164
 
165
  // Masonry
166
  if($transition === 'masonry'){
185
  // Paging
186
  if(has_action('alm_paging_installed') && $paging === 'true'){
187
  wp_enqueue_script( 'ajax-load-more-paging' );
188
+
189
+ // Inline paging CSS
190
+ if( !is_admin() && alm_do_inline_css('_alm_inline_css') && !alm_css_disabled('_alm_paging_disable_css') && self::$counter === 1 ){
191
+ if(defined('ALM_PAGING_PATH') && defined('ALM_PAGING_URL')){
192
+ $file = ALM_PAGING_PATH.'/core/css/ajax-load-more-paging.min.css';
193
+ echo ALM_ENQUEUE::alm_inline_css('ajax-load-more-paging', $file, ALM_PAGING_URL);
194
+ }
195
+ }
196
  }
197
 
198
  // Previous Post
339
  */
340
  $ajaxloadmore .= apply_filters('alm_before_container', '');
341
 
342
+ // Build Canonical URL
343
+ $canonicalURL = apply_filters('alm_canonical_url', alm_get_canonical_url());
344
 
345
  // Generate ALM ID
346
  $div_id = (self::$counter > 1) ? 'ajax-load-more-'.self::$counter : 'ajax-load-more';
470
  'author' => $author,
471
  'post__in' => $post__in,
472
  'post__not_in' => $post__not_in,
473
+ 's' => $search,
474
  'custom_args' => $custom_args,
475
  'post_status' => $post_status,
476
  'order' => $order,
510
  }
511
 
512
  elseif($users){ // Users
513
+
514
  if(has_action('alm_users_preloaded') && $users){
515
 
516
  // Encrypt User Role
606
 
607
 
608
  $alm_preload_query = new WP_Query($args);
609
+
610
  $alm_total_posts = $alm_preload_query->found_posts - $offset;
611
  $output = '';
612
  $noscript = '';
990
  $btn_href = '';
991
  if($seo === 'true'){
992
  $btn_element = 'a'; // Convert to link for SEO
993
+ $btn_href = ' href="'.$canonicalURL.'"';
994
  }
995
 
996
 
core/dist/css/ajax-load-more.css CHANGED
@@ -62,7 +62,7 @@
62
  background: none;
63
  width: 0; }
64
  .alm-btn-wrap .alm-load-more-btn.loading:before {
65
- background: #fff url("../../../core/img/ajax-loader.gif") no-repeat center center;
66
  width: 30px;
67
  height: 30px;
68
  margin: 6px;
@@ -134,7 +134,7 @@
134
  background-color: transparent !important;
135
  background-position: center center;
136
  background-repeat: no-repeat;
137
- background-image: url("../../../core/img/spinner.gif");
138
  border: none !important;
139
  opacity: 0;
140
  -webkit-transition: opacity 0.25s ease;
@@ -156,19 +156,19 @@
156
  opacity: 1; }
157
 
158
  .ajax-load-more-wrap.infinite.skype .alm-load-more-btn {
159
- background-image: url("../../../core/img/spinner-skype.gif"); }
160
 
161
  .ajax-load-more-wrap.infinite.ring .alm-load-more-btn {
162
- background-image: url("../../../core/img/spinner-ring.gif"); }
163
 
164
  .ajax-load-more-wrap.infinite.fading-blocks .alm-load-more-btn {
165
- background-image: url("../../../core/img/loader-fading-blocks.gif"); }
166
 
167
  .ajax-load-more-wrap.infinite.fading-circles .alm-load-more-btn {
168
- background-image: url("../../../core/img/loader-fading-circles.gif"); }
169
 
170
  .ajax-load-more-wrap.infinite.chasing-arrows .alm-load-more-btn {
171
- background-image: url("../../../core/img/spinner-chasing-arrows.gif"); }
172
 
173
  /*
174
  * Generic alm-listing styles
62
  background: none;
63
  width: 0; }
64
  .alm-btn-wrap .alm-load-more-btn.loading:before {
65
+ background: #fff url("../../img/ajax-loader.gif") no-repeat center center;
66
  width: 30px;
67
  height: 30px;
68
  margin: 6px;
134
  background-color: transparent !important;
135
  background-position: center center;
136
  background-repeat: no-repeat;
137
+ background-image: url("../../img/spinner.gif");
138
  border: none !important;
139
  opacity: 0;
140
  -webkit-transition: opacity 0.25s ease;
156
  opacity: 1; }
157
 
158
  .ajax-load-more-wrap.infinite.skype .alm-load-more-btn {
159
+ background-image: url("../../img/spinner-skype.gif"); }
160
 
161
  .ajax-load-more-wrap.infinite.ring .alm-load-more-btn {
162
+ background-image: url("../../img/spinner-ring.gif"); }
163
 
164
  .ajax-load-more-wrap.infinite.fading-blocks .alm-load-more-btn {
165
+ background-image: url("../../img/loader-fading-blocks.gif"); }
166
 
167
  .ajax-load-more-wrap.infinite.fading-circles .alm-load-more-btn {
168
+ background-image: url("../../img/loader-fading-circles.gif"); }
169
 
170
  .ajax-load-more-wrap.infinite.chasing-arrows .alm-load-more-btn {
171
+ background-image: url("../../img/spinner-chasing-arrows.gif"); }
172
 
173
  /*
174
  * Generic alm-listing styles
core/dist/js/ajax-load-more.js CHANGED
@@ -580,6 +580,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
580
  alm.previous_post_scroll = alm.content.attr('data-previous-post-scroll');
581
  alm.previous_post_scroll_speed = alm.content.attr('data-previous-post-scroll-speed');
582
  alm.previous_post_scroll_top = alm.content.attr('data-previous-post-scrolltop');
 
583
  /* End Previous Post */
584
 
585
  /* Offset */
@@ -713,7 +714,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
713
  cache_page = alm.cache_path + alm.cache_id + '/page' + '-' + nextpage_cache_page + '.html';
714
  } else if (alm.previous_post) {
715
  // Previous Post
716
- cache_page = alm.cache_path + alm.cache_id + '/' + alm.previous_post_slug + '.html';
717
  } else {
718
  // Standard ALM URL request
719
  cache_page = alm.cache_path + alm.cache_id + '/page-' + (alm.page + 1) + '.html';
@@ -880,7 +881,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
880
  }
881
  },
882
  success: function success(results) {
883
- var data,
884
  html = results.html,
885
  meta = results.meta,
886
  postcount = meta.postcount,
580
  alm.previous_post_scroll = alm.content.attr('data-previous-post-scroll');
581
  alm.previous_post_scroll_speed = alm.content.attr('data-previous-post-scroll-speed');
582
  alm.previous_post_scroll_top = alm.content.attr('data-previous-post-scrolltop');
583
+ alm.previous_post_controls = alm.content.attr('data-previous-post-controls');
584
  /* End Previous Post */
585
 
586
  /* Offset */
714
  cache_page = alm.cache_path + alm.cache_id + '/page' + '-' + nextpage_cache_page + '.html';
715
  } else if (alm.previous_post) {
716
  // Previous Post
717
+ cache_page = alm.cache_path + alm.cache_id + '/' + alm.previous_post_id + '.html';
718
  } else {
719
  // Standard ALM URL request
720
  cache_page = alm.cache_path + alm.cache_id + '/page-' + (alm.page + 1) + '.html';
881
  }
882
  },
883
  success: function success(results) {
884
+ var data = '',
885
  html = results.html,
886
  meta = results.meta,
887
  postcount = meta.postcount,
core/dist/js/ajax-load-more.min.js CHANGED
@@ -1 +1 @@
1
- "use strict";function _toConsumableArray(t){if(Array.isArray(t)){for(var a=0,e=Array(t.length);a<t.length;a++)e[a]=t[a];return e}return Array.from(t)}function _toConsumableArray(t){if(Array.isArray(t)){for(var a=0,e=Array(t.length);a<t.length;a++)e[a]=t[a];return e}return Array.from(t)}Array.from||(Array.from=function(){var t=Object.prototype.toString,a=function(a){return"function"==typeof a||"[object Function]"===t.call(a)},e=function(t){var a=Number(t);return isNaN(a)?0:0!==a&&isFinite(a)?(a>0?1:-1)*Math.floor(Math.abs(a)):a},o=Math.pow(2,53)-1,n=function(t){var a=e(t);return Math.min(Math.max(a,0),o)};return function(t){var e=this,o=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r,s=arguments.length>1?arguments[1]:void 0;if(void 0!==s){if(!a(s))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(r=arguments[2])}for(var i,l=n(o.length),d=a(e)?Object(new e(l)):new Array(l),p=0;p<l;)i=o[p],d[p]=s?void 0===r?s(i,p):s.call(r,i,p):i,p+=1;return d.length=l,d}}());var alm_is_filtering=!1;!function(t){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(t,e,o,n){"slide"===t?n.slideUp(e,function(){a(e,o,n)}):"fade"===t||"masonry"===t?n.fadeOut(e,function(){a(e,o,n)}):a(e,o,n)};var a=function(t,a,o){var n=o.get(0),r=n.querySelectorAll(".alm-listing");[].concat(_toConsumableArray(r)).forEach(function(t){t.innerHTML=""});var s=n.querySelector(".alm-load-more-btn");s&&s.classList.remove("done"),e(t,a,o)},e=function(a,e,o){t.each(e,function(a,e){a=a.replace(/\W+/g,"-").replace(/([a-z\d])([A-Z])/g,"$1-$2"),t(".alm-listing",o).attr("data-"+a,e)}),t.isFunction(t.fn.almFilterComplete)&&t.fn.almFilterComplete(),alm_is_filtering=!0,o.fadeIn(a),e.target?t(".ajax-load-more-wrap[data-id="+e.target+"]").ajaxloadmore():t(".ajax-load-more-wrap").ajaxloadmore()}}(jQuery);var almMasonryInit=!0,almMasonry=function t(a,e,o,n,r,s,i,l){var d=(s+100)/1e3+"s",p="scale(0.5)",c="scale(1)";"zoom-out"===n&&(p="translateY(-20px) scale(1.25)",c="translateY(0) scale(1)"),"slide-up"===n&&(p="translateY(50px)",c="translateY(0)"),"slide-down"===n&&(p="translateY(-50px)",c="translateY(0)"),"none"===n&&(p="translateY(0)",c="translateY(0)"),r="true"===r,l?(a.masonry("destroy"),almMasonryInit=!0,a.append(e),t(a,e,o,n,r,s,!0,!1)):almMasonryInit&&i?(almMasonryInit=!1,a.imagesLoaded(function(){e.fadeIn(s),a.masonry({itemSelector:o,transitionDuration:d,columnWidth:o,horizontalOrder:r,hiddenStyle:{transform:p,opacity:0},visibleStyle:{transform:c,opacity:1}}),a.masonry("reloadItems")})):(a.append(e),a.imagesLoaded(function(){e.show(),a.masonry("appended",e)}))};!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.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.repeater=o.content.attr("data-repeater"),o.theme_repeater=o.content.attr("data-theme-repeater"),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.btnWrap=t(".alm-btn-wrap",o.container),o.button_label=o.content.attr("data-button-label"),o.button_loading_label=o.content.attr("data-button-loading-label"),o.scroll_distance=parseInt(o.content.attr("data-scroll-distance")),o.scroll_container=o.content.attr("data-scroll-container"),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.tcc=o.content.attr("data-transition-container-classes"),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.offset=o.content.attr("data-offset"),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.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=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=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.previous_post_excluded_terms=o.content.attr("data-previous-post-excluded-terms"),o.comments=o.content.attr("data-comments"),"true"===o.comments&&(o.content=t(".alm-comments",o.container)),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,o.users="true"===o.content.attr("data-users"),o.users&&(o.orginal_posts_per_page=o.content.attr("data-users-per-page"),o.posts_per_page=o.content.attr("data-users-per-page")),"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,o.paging_controls="true"===o.paging_controls,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.trailing_slash="false"===o.content.attr("data-seo-trailing-slash")?"":"/",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.seo_controls=o.content.attr("data-seo-controls"),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_urls="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),o.acf="true"===o.acf,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=""),void 0===o.previous_post_excluded_terms&&(o.previous_post_excluded_terms=""),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"),o.offset=void 0===o.offset?0:o.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"),o.max_pages=void 0===o.max_pages||0===o.max_pages?1e4:o.max_pages,o.scroll_distance=void 0===o.scroll_distance?150:o.scroll_distance,o.scroll_container=void 0===o.scroll_container?"":o.scroll_container,o.transition=void 0===o.transition?"slide":o.transition,o.tcc=void 0===o.tcc?"":o.tcc,o.is_masonry_preloaded=!1,"masonry"===o.transition&&(o.masonry_selector=o.content.attr("data-masonry-selector"),o.masonry_animation=o.content.attr("data-masonry-animation"),o.masonry_horizontalorder=o.content.attr("data-masonry-horizontalorder"),void 0===o.masonry_animation&&(o.masonry_animation="standard"),void 0===o.masonry_horizontalorder&&(o.masonry_horizontalorder="true"),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)),o.speed=void 0===o.speed||""===o.speed?250:parseInt(o.speed),void 0===o.content.attr("data-scroll")?o.scroll=!0:"false"===o.content.attr("data-scroll")?o.scroll=!1:o.scroll=!0,o.transition_container=void 0===o.transition_container||"true"===o.transition_container,o.images_loaded=void 0===o.images_loaded?"false":o.images_loaded,o.button_label=void 0===o.button_label?"Older Posts":o.button_label,o.button_loading_label=void 0!==o.button_loading_label&&o.button_loading_label,o.paging?o.content.parent().addClass("loading"):o.button=t(".alm-load-more-btn",o.container),o.AjaxLoadMore.loadPosts=function(){if(!o.disable_ajax)if(o.paging||(o.button.addClass("loading"),!1!==o.button_loading_label&&o.button.html(o.button_loading_label)),o.container.addClass("alm-loading"),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_array="",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_array="",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_array="",o.previous_post&&(o.previous_post_array={previous_post:"true",id:o.previous_post_id,slug:o.previous_post_slug}),o.comments_array="","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}),o.users_array="",o.users&&(n="alm_users_query",o.users_array={users:"true",role:o.content.attr("data-users-role"),include:o.content.attr("data-users-include"),exclude:o.content.attr("data-users-exclude"),per_page:o.posts_per_page,order:o.content.attr("data-users-order"),orderby:o.content.attr("data-users-orderby")}),o.cta_array="","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={id:a.attr("data-id"),post_id:o.post_id,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};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,l=s.totalposts;t.each(n,function(t){var a=n[t];"true"===o.restapi_debug&&console.log(a),e+=r(a)});var d={html:e,meta:{postcount:i,totalposts:l}};o.AjaxLoadMore.success(d,!1)}})}else t.ajax({type:"GET",url:alm_localize.ajaxurl,dataType:"JSON",data:{action:n,nonce:alm_localize.alm_nonce,query_type:e,post_id:o.post_id,id:a.attr("data-id"),slug:o.slug,canonical_url:o.canonical_url,cache_id:o.cache_id,cache_logged_in:o.cache_logged_in,repeater:o.repeater,theme_repeater:o.theme_repeater,acf:o.acf_array,nextpage:o.nextpage_array,cta:o.cta_array,comments:o.comments_array,users:o.users_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},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.tcc+'"/>'),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.html(o.button_label),0===s&&t.isFunction(t.fn.almEmpty)&&t.fn.almEmpty(o),o.isPaged&&(o.users?o.posts_per_page=o.content.attr("data-users-per-page"):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.container.removeClass("alm-loading"),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.container.removeClass("alm-loading"),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 l=[],d=parseInt(o.posts_per_page);"true"===o.cta&&(d+=1);Math.ceil(s/d);for(var p=0;p<s;p+=d)l.push(o.data.slice(p,d+p));o.el=o.content;for(var c=0;c<l.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'+o.tcc+'" data-url="'+o.canonical_url+o.search_value+"&paged="+i+'" data-page="'+i+'" />':'<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+"page/"+i+o.trailing_slash+o.search_value+'" data-page="'+i+'" />')):g=t('<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+o.search_value+'" data-page="1" />'),g.append(l[c]),g=t(g),o.el.append(g).hide()}}else{if(o.seo&&o.page>0||"true"===o.preloaded){var u="true"===o.preloaded?1:0;i=o.page+1+u,o.seo?"default"===o.permalink?o.el=t('<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+o.search_value+"&paged="+i+'" data-page="'+i+'" />'):o.el=t('<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+"page/"+i+o.trailing_slash+o.search_value+'" data-page="'+i+'" />'):o.el=t('<div class="alm-reveal'+o.tcc+'" />')}else o.seo?o.el=t('<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+o.search_value+'" data-page="1" />'):o.el=t('<div class="alm-reveal'+o.tcc+'" />');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.AjaxLoadMore.resetBtnText()),o.container.removeClass("alm-loading"),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.AjaxLoadMore.resetBtnText()),o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o)}):"masonry"===o.transition?(almMasonry(o.masonry_wrap,o.el,o.masonry_selector,o.masonry_animation,o.masonry_horizontalorder,o.speed,o.init,alm_is_filtering),o.paging||(o.button.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText()),o.loading=!1,o.container.removeClass("alm-loading"),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.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.AjaxLoadMore.resetBtnText()),o.container.removeClass("alm-loading"),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.AjaxLoadMore.resetBtnText()),o.container.removeClass("alm-loading"),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 m=o.page+1;o.preload&&m++,m==o.destroy_after&&(o.disable_ajax=!0,o.paging||(o.button.delay(o.speed).fadeOut(o.speed),t.isFunction(t.fn.almDestroyed)&&t.fn.almDestroyed(o)))}alm_is_filtering=!1,o.init=!1},o.AjaxLoadMore.pagingPreloadedInit=function(a){o.el=t('<div class="alm-reveal'+o.tcc+'"/>'),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;var a={action:"alm_query_previous_post",id:o.previous_post_id,taxonomy:o.previous_post_taxonomy,excluded_terms:o.previous_post_excluded_terms};t.ajax({type:"GET",dataType:"JSON",url:alm_localize.ajaxurl,data:a,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,!1),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.html(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.unbind("click"),o.button.on("click",function(a){a.preventDefault(),"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.unbind("resizeEnd"),o.window.bind("resizeEnd",function(){t.isFunction(t.fn.almOnWindowResize)&&t.fn.almOnWindowResize(o)}),o.window.unbind("resize"),o.window.bind("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.scroll_container&&(o.window=t(o.scroll_container)),o.window.bind("scroll touchstart",function(){if(o.AjaxLoadMore.isVisible()&&!o.fetchingPreviousPost){var t=o.button.offset().top,a=Math.round(t-(o.window.height()-o.scroll_distance)),e=o.window.scrollTop()>=a;""!==o.scroll_container&&(e=o.button.offset().top-(o.window.height()-o.scroll_distance)<o.window.offset().top),!o.loading&&!o.finished&&e&&o.page<o.max_pages-1&&o.proceed&&"true"===o.pause&&"true"===o.pause_override?o.button.trigger("click"):!o.loading&&!o.finished&&e&&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.html(o.button_label),o.loading=!1):o.AjaxLoadMore.loadPosts()),o.previous_post&&(o.AjaxLoadMore.getPreviousPost(),o.loading=!1),"true"===o.preloaded&&o.seo&&!o.paging&&setTimeout(function(){t.isFunction(t.fn.almSEO)&&o.start_page<1&&t.fn.almSEO(o,!0)},300),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.masonry_animation,o.masonry_horizontalorder,o.speed,!0,!1)})},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.ajaxloadmore=function(){return this.each(function(a){new t.ajaxloadmore(t(this),a)})};var a=document.querySelectorAll(".ajax-load-more-wrap");a.length&&[].concat(_toConsumableArray(a)).forEach(function(a,e){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),l=[],d=t.almWaitForImages.hasImageProperties||[],p=t.almWaitForImages.hasImageAttributes||[],c=/url\(\s*(['"]?)(.*?)\1\s*\)/g;o?i.find("*").addBack().each(function(){var a=t(this);a.is("img:has-src")&&l.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);)l.push({src:o[2],element:a[0]})}),t.each(p,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],l.push({src:o,element:a[0]})})})}):i.find("img:has-src").each(function(){l.push({src:this.src,element:this})}),n=l.length,r=0,0===n&&(a.call(i[0]),s.resolveWith(i[0])),t.each(l,function(o,l){var d=new Image,p="load.almWaitForImages error.almWaitForImages";t(d).one(p,function o(d){var c=[r,n,"load"==d.type];if(r++,e.apply(l.element,c),s.notifyWith(l.element,c),t(this).off(p,o),r==n)return a.call(i[0]),s.resolveWith(i[0]),!1}),d.src=l.src})}),s.promise()}});
1
+ "use strict";function _toConsumableArray(t){if(Array.isArray(t)){for(var a=0,e=Array(t.length);a<t.length;a++)e[a]=t[a];return e}return Array.from(t)}function _toConsumableArray(t){if(Array.isArray(t)){for(var a=0,e=Array(t.length);a<t.length;a++)e[a]=t[a];return e}return Array.from(t)}Array.from||(Array.from=function(){var t=Object.prototype.toString,a=function(a){return"function"==typeof a||"[object Function]"===t.call(a)},e=function(t){var a=Number(t);return isNaN(a)?0:0!==a&&isFinite(a)?(a>0?1:-1)*Math.floor(Math.abs(a)):a},o=Math.pow(2,53)-1,n=function(t){var a=e(t);return Math.min(Math.max(a,0),o)};return function(t){var e=this,o=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r,s=arguments.length>1?arguments[1]:void 0;if(void 0!==s){if(!a(s))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(r=arguments[2])}for(var i,l=n(o.length),d=a(e)?Object(new e(l)):new Array(l),p=0;p<l;)i=o[p],d[p]=s?void 0===r?s(i,p):s.call(r,i,p):i,p+=1;return d.length=l,d}}());var alm_is_filtering=!1;!function(t){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(t,e,o,n){"slide"===t?n.slideUp(e,function(){a(e,o,n)}):"fade"===t||"masonry"===t?n.fadeOut(e,function(){a(e,o,n)}):a(e,o,n)};var a=function(t,a,o){var n=o.get(0),r=n.querySelectorAll(".alm-listing");[].concat(_toConsumableArray(r)).forEach(function(t){t.innerHTML=""});var s=n.querySelector(".alm-load-more-btn");s&&s.classList.remove("done"),e(t,a,o)},e=function(a,e,o){t.each(e,function(a,e){a=a.replace(/\W+/g,"-").replace(/([a-z\d])([A-Z])/g,"$1-$2"),t(".alm-listing",o).attr("data-"+a,e)}),t.isFunction(t.fn.almFilterComplete)&&t.fn.almFilterComplete(),alm_is_filtering=!0,o.fadeIn(a),e.target?t(".ajax-load-more-wrap[data-id="+e.target+"]").ajaxloadmore():t(".ajax-load-more-wrap").ajaxloadmore()}}(jQuery);var almMasonryInit=!0,almMasonry=function t(a,e,o,n,r,s,i,l){var d=(s+100)/1e3+"s",p="scale(0.5)",c="scale(1)";"zoom-out"===n&&(p="translateY(-20px) scale(1.25)",c="translateY(0) scale(1)"),"slide-up"===n&&(p="translateY(50px)",c="translateY(0)"),"slide-down"===n&&(p="translateY(-50px)",c="translateY(0)"),"none"===n&&(p="translateY(0)",c="translateY(0)"),r="true"===r,l?(a.masonry("destroy"),almMasonryInit=!0,a.append(e),t(a,e,o,n,r,s,!0,!1)):almMasonryInit&&i?(almMasonryInit=!1,a.imagesLoaded(function(){e.fadeIn(s),a.masonry({itemSelector:o,transitionDuration:d,columnWidth:o,horizontalOrder:r,hiddenStyle:{transform:p,opacity:0},visibleStyle:{transform:c,opacity:1}}),a.masonry("reloadItems")})):(a.append(e),a.imagesLoaded(function(){e.show(),a.masonry("appended",e)}))};!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.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.repeater=o.content.attr("data-repeater"),o.theme_repeater=o.content.attr("data-theme-repeater"),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.btnWrap=t(".alm-btn-wrap",o.container),o.button_label=o.content.attr("data-button-label"),o.button_loading_label=o.content.attr("data-button-loading-label"),o.scroll_distance=parseInt(o.content.attr("data-scroll-distance")),o.scroll_container=o.content.attr("data-scroll-container"),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.tcc=o.content.attr("data-transition-container-classes"),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.offset=o.content.attr("data-offset"),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.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=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=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.previous_post_excluded_terms=o.content.attr("data-previous-post-excluded-terms"),o.comments=o.content.attr("data-comments"),"true"===o.comments&&(o.content=t(".alm-comments",o.container)),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,o.users="true"===o.content.attr("data-users"),o.users&&(o.orginal_posts_per_page=o.content.attr("data-users-per-page"),o.posts_per_page=o.content.attr("data-users-per-page")),"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,o.paging_controls="true"===o.paging_controls,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.trailing_slash="false"===o.content.attr("data-seo-trailing-slash")?"":"/",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.seo_controls=o.content.attr("data-seo-controls"),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_urls="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),o.acf="true"===o.acf,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=""),void 0===o.previous_post_excluded_terms&&(o.previous_post_excluded_terms=""),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"),o.previous_post_controls=o.content.attr("data-previous-post-controls"),o.offset=void 0===o.offset?0:o.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"),o.max_pages=void 0===o.max_pages||0===o.max_pages?1e4:o.max_pages,o.scroll_distance=void 0===o.scroll_distance?150:o.scroll_distance,o.scroll_container=void 0===o.scroll_container?"":o.scroll_container,o.transition=void 0===o.transition?"slide":o.transition,o.tcc=void 0===o.tcc?"":o.tcc,o.is_masonry_preloaded=!1,"masonry"===o.transition&&(o.masonry_selector=o.content.attr("data-masonry-selector"),o.masonry_animation=o.content.attr("data-masonry-animation"),o.masonry_horizontalorder=o.content.attr("data-masonry-horizontalorder"),void 0===o.masonry_animation&&(o.masonry_animation="standard"),void 0===o.masonry_horizontalorder&&(o.masonry_horizontalorder="true"),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)),o.speed=void 0===o.speed||""===o.speed?250:parseInt(o.speed),void 0===o.content.attr("data-scroll")?o.scroll=!0:"false"===o.content.attr("data-scroll")?o.scroll=!1:o.scroll=!0,o.transition_container=void 0===o.transition_container||"true"===o.transition_container,o.images_loaded=void 0===o.images_loaded?"false":o.images_loaded,o.button_label=void 0===o.button_label?"Older Posts":o.button_label,o.button_loading_label=void 0!==o.button_loading_label&&o.button_loading_label,o.paging?o.content.parent().addClass("loading"):o.button=t(".alm-load-more-btn",o.container),o.AjaxLoadMore.loadPosts=function(){if(!o.disable_ajax)if(o.paging||(o.button.addClass("loading"),!1!==o.button_loading_label&&o.button.html(o.button_loading_label)),o.container.addClass("alm-loading"),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_id+".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_array="",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_array="",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_array="",o.previous_post&&(o.previous_post_array={previous_post:"true",id:o.previous_post_id,slug:o.previous_post_slug}),o.comments_array="","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}),o.users_array="",o.users&&(n="alm_users_query",o.users_array={users:"true",role:o.content.attr("data-users-role"),include:o.content.attr("data-users-include"),exclude:o.content.attr("data-users-exclude"),per_page:o.posts_per_page,order:o.content.attr("data-users-order"),orderby:o.content.attr("data-users-orderby")}),o.cta_array="","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={id:a.attr("data-id"),post_id:o.post_id,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};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,l=s.totalposts;t.each(n,function(t){var a=n[t];"true"===o.restapi_debug&&console.log(a),e+=r(a)});var d={html:e,meta:{postcount:i,totalposts:l}};o.AjaxLoadMore.success(d,!1)}})}else t.ajax({type:"GET",url:alm_localize.ajaxurl,dataType:"JSON",data:{action:n,nonce:alm_localize.alm_nonce,query_type:e,post_id:o.post_id,id:a.attr("data-id"),slug:o.slug,canonical_url:o.canonical_url,cache_id:o.cache_id,cache_logged_in:o.cache_logged_in,repeater:o.repeater,theme_repeater:o.theme_repeater,acf:o.acf_array,nextpage:o.nextpage_array,cta:o.cta_array,comments:o.comments_array,users:o.users_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},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.tcc+'"/>'),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.html(o.button_label),0===s&&t.isFunction(t.fn.almEmpty)&&t.fn.almEmpty(o),o.isPaged&&(o.users?o.posts_per_page=o.content.attr("data-users-per-page"):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.container.removeClass("alm-loading"),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.container.removeClass("alm-loading"),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 l=[],d=parseInt(o.posts_per_page);"true"===o.cta&&(d+=1);Math.ceil(s/d);for(var p=0;p<s;p+=d)l.push(o.data.slice(p,d+p));o.el=o.content;for(var c=0;c<l.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'+o.tcc+'" data-url="'+o.canonical_url+o.search_value+"&paged="+i+'" data-page="'+i+'" />':'<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+"page/"+i+o.trailing_slash+o.search_value+'" data-page="'+i+'" />')):g=t('<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+o.search_value+'" data-page="1" />'),g.append(l[c]),g=t(g),o.el.append(g).hide()}}else{if(o.seo&&o.page>0||"true"===o.preloaded){var u="true"===o.preloaded?1:0;i=o.page+1+u,o.seo?"default"===o.permalink?o.el=t('<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+o.search_value+"&paged="+i+'" data-page="'+i+'" />'):o.el=t('<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+"page/"+i+o.trailing_slash+o.search_value+'" data-page="'+i+'" />'):o.el=t('<div class="alm-reveal'+o.tcc+'" />')}else o.seo?o.el=t('<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+o.search_value+'" data-page="1" />'):o.el=t('<div class="alm-reveal'+o.tcc+'" />');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.AjaxLoadMore.resetBtnText()),o.container.removeClass("alm-loading"),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.AjaxLoadMore.resetBtnText()),o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o)}):"masonry"===o.transition?(almMasonry(o.masonry_wrap,o.el,o.masonry_selector,o.masonry_animation,o.masonry_horizontalorder,o.speed,o.init,alm_is_filtering),o.paging||(o.button.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText()),o.loading=!1,o.container.removeClass("alm-loading"),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.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.AjaxLoadMore.resetBtnText()),o.container.removeClass("alm-loading"),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.AjaxLoadMore.resetBtnText()),o.container.removeClass("alm-loading"),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 m=o.page+1;o.preload&&m++,m==o.destroy_after&&(o.disable_ajax=!0,o.paging||(o.button.delay(o.speed).fadeOut(o.speed),t.isFunction(t.fn.almDestroyed)&&t.fn.almDestroyed(o)))}alm_is_filtering=!1,o.init=!1},o.AjaxLoadMore.pagingPreloadedInit=function(a){o.el=t('<div class="alm-reveal'+o.tcc+'"/>'),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;var a={action:"alm_query_previous_post",id:o.previous_post_id,taxonomy:o.previous_post_taxonomy,excluded_terms:o.previous_post_excluded_terms};t.ajax({type:"GET",dataType:"JSON",url:alm_localize.ajaxurl,data:a,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,!1),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.html(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.unbind("click"),o.button.on("click",function(a){a.preventDefault(),"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.unbind("resizeEnd"),o.window.bind("resizeEnd",function(){t.isFunction(t.fn.almOnWindowResize)&&t.fn.almOnWindowResize(o)}),o.window.unbind("resize"),o.window.bind("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.scroll_container&&(o.window=t(o.scroll_container)),o.window.bind("scroll touchstart",function(){if(o.AjaxLoadMore.isVisible()&&!o.fetchingPreviousPost){var t=o.button.offset().top,a=Math.round(t-(o.window.height()-o.scroll_distance)),e=o.window.scrollTop()>=a;""!==o.scroll_container&&(e=o.button.offset().top-(o.window.height()-o.scroll_distance)<o.window.offset().top),!o.loading&&!o.finished&&e&&o.page<o.max_pages-1&&o.proceed&&"true"===o.pause&&"true"===o.pause_override?o.button.trigger("click"):!o.loading&&!o.finished&&e&&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.html(o.button_label),o.loading=!1):o.AjaxLoadMore.loadPosts()),o.previous_post&&(o.AjaxLoadMore.getPreviousPost(),o.loading=!1),"true"===o.preloaded&&o.seo&&!o.paging&&setTimeout(function(){t.isFunction(t.fn.almSEO)&&o.start_page<1&&t.fn.almSEO(o,!0)},300),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.masonry_animation,o.masonry_horizontalorder,o.speed,!0,!1)})},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.ajaxloadmore=function(){return this.each(function(a){new t.ajaxloadmore(t(this),a)})};var a=document.querySelectorAll(".ajax-load-more-wrap");a.length&&[].concat(_toConsumableArray(a)).forEach(function(a,e){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),l=[],d=t.almWaitForImages.hasImageProperties||[],p=t.almWaitForImages.hasImageAttributes||[],c=/url\(\s*(['"]?)(.*?)\1\s*\)/g;o?i.find("*").addBack().each(function(){var a=t(this);a.is("img:has-src")&&l.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);)l.push({src:o[2],element:a[0]})}),t.each(p,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],l.push({src:o,element:a[0]})})})}):i.find("img:has-src").each(function(){l.push({src:this.src,element:this})}),n=l.length,r=0,0===n&&(a.call(i[0]),s.resolveWith(i[0])),t.each(l,function(o,l){var d=new Image,p="load.almWaitForImages error.almWaitForImages";t(d).one(p,function o(d){var c=[r,n,"load"==d.type];if(r++,e.apply(l.element,c),s.notifyWith(l.element,c),t(this).off(p,o),r==n)return a.call(i[0]),s.resolveWith(i[0]),!1}),d.src=l.src})}),s.promise()}});
core/functions.php CHANGED
@@ -71,6 +71,47 @@ add_filter('alm_progress_css', 'alm_progress_css', 10, 3);
71
 
72
 
73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  /*
75
  * alm_get_current_repeater
76
  * Get the current repeater template file
71
 
72
 
73
 
74
+ /*
75
+ * alm_css_disabled
76
+ * Has core ALM CSS disabled?
77
+ *
78
+ * @param $setting name of the setting field
79
+ * @return boolean
80
+ * @since 3.3.1
81
+ */
82
+
83
+ function alm_css_disabled($setting) {
84
+ $options = get_option( 'alm_settings' );
85
+ $disabled = true;
86
+ if(!isset($options[$setting]) || $options[$setting] != '1'){
87
+ $disabled = false;
88
+ }
89
+ return $disabled;
90
+ }
91
+
92
+
93
+
94
+ /*
95
+ * alm_do_inline_css
96
+ * Load ALM CSS inline
97
+ *
98
+ *
99
+ * @param $setting name of the setting field
100
+ * @return boolean
101
+ * @since 3.3.1
102
+ */
103
+
104
+ function alm_do_inline_css($setting) {
105
+ $options = get_option( 'alm_settings' );
106
+ $inline = false;
107
+ if(!isset($options[$setting]) || $options[$setting] === '1'){
108
+ $inline = true;
109
+ }
110
+ return $inline;
111
+ }
112
+
113
+
114
+
115
  /*
116
  * alm_get_current_repeater
117
  * Get the current repeater template file
core/src/js/ajax-load-more.js CHANGED
@@ -300,6 +300,7 @@
300
  alm.previous_post_scroll = alm.content.attr('data-previous-post-scroll');
301
  alm.previous_post_scroll_speed = alm.content.attr('data-previous-post-scroll-speed');
302
  alm.previous_post_scroll_top = alm.content.attr('data-previous-post-scrolltop');
 
303
  /* End Previous Post */
304
 
305
  /* Offset */
@@ -437,7 +438,7 @@
437
 
438
  else if(alm.previous_post){
439
  // Previous Post
440
- cache_page = alm.cache_path + alm.cache_id + '/' + alm.previous_post_slug +'.html';
441
  }
442
 
443
  else {
@@ -610,7 +611,7 @@
610
  }
611
  },
612
  success: function (results) {
613
- var data,
614
  html = results.html,
615
  meta = results.meta,
616
  postcount = meta.postcount,
300
  alm.previous_post_scroll = alm.content.attr('data-previous-post-scroll');
301
  alm.previous_post_scroll_speed = alm.content.attr('data-previous-post-scroll-speed');
302
  alm.previous_post_scroll_top = alm.content.attr('data-previous-post-scrolltop');
303
+ alm.previous_post_controls = alm.content.attr('data-previous-post-controls');
304
  /* End Previous Post */
305
 
306
  /* Offset */
438
 
439
  else if(alm.previous_post){
440
  // Previous Post
441
+ cache_page = alm.cache_path + alm.cache_id + '/' + alm.previous_post_id +'.html';
442
  }
443
 
444
  else {
611
  }
612
  },
613
  success: function (results) {
614
+ var data = '',
615
  html = results.html,
616
  meta = results.meta,
617
  postcount = meta.postcount,
core/src/scss/ajax-load-more.scss CHANGED
@@ -70,7 +70,7 @@
70
 
71
  /* Loading :before */
72
  &.loading:before {
73
- background: #fff url("../../../core/img/ajax-loader.gif") no-repeat center center;
74
  width: 30px;
75
  height: 30px;
76
  margin: 6px;
@@ -164,7 +164,7 @@
164
  background-color: transparent !important;
165
  background-position: center center;
166
  background-repeat: no-repeat;
167
- background-image: url("../../../core/img/spinner.gif");
168
  border: none !important;
169
  opacity: 0;
170
  transition: opacity 0.25s ease;
@@ -187,19 +187,19 @@
187
  }
188
  }
189
  &.skype .alm-load-more-btn {
190
- background-image: url("../../../core/img/spinner-skype.gif");
191
  }
192
  &.ring .alm-load-more-btn {
193
- background-image: url("../../../core/img/spinner-ring.gif");
194
  }
195
  &.fading-blocks .alm-load-more-btn {
196
- background-image: url("../../../core/img/loader-fading-blocks.gif");
197
  }
198
  &.fading-circles .alm-load-more-btn {
199
- background-image: url("../../../core/img/loader-fading-circles.gif");
200
  }
201
  &.chasing-arrows .alm-load-more-btn {
202
- background-image: url("../../../core/img/spinner-chasing-arrows.gif");
203
  }
204
  }
205
 
70
 
71
  /* Loading :before */
72
  &.loading:before {
73
+ background: #fff url("../../img/ajax-loader.gif") no-repeat center center;
74
  width: 30px;
75
  height: 30px;
76
  margin: 6px;
164
  background-color: transparent !important;
165
  background-position: center center;
166
  background-repeat: no-repeat;
167
+ background-image: url("../../img/spinner.gif");
168
  border: none !important;
169
  opacity: 0;
170
  transition: opacity 0.25s ease;
187
  }
188
  }
189
  &.skype .alm-load-more-btn {
190
+ background-image: url("../../img/spinner-skype.gif");
191
  }
192
  &.ring .alm-load-more-btn {
193
+ background-image: url("../../img/spinner-ring.gif");
194
  }
195
  &.fading-blocks .alm-load-more-btn {
196
+ background-image: url("../../img/loader-fading-blocks.gif");
197
  }
198
  &.fading-circles .alm-load-more-btn {
199
+ background-image: url("../../img/loader-fading-circles.gif");
200
  }
201
  &.chasing-arrows .alm-load-more-btn {
202
+ background-image: url("../../img/spinner-chasing-arrows.gif");
203
  }
204
  }
205
 
lang/ajax-load-more.pot CHANGED
@@ -2,7 +2,7 @@
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Ajax Load More\n"
5
- "POT-Creation-Date: 2017-11-16 13:26-0500\n"
6
  "PO-Revision-Date: 2017-10-05 16:14-0500\n"
7
  "Last-Translator: Darren Cooney <dcooney@ecentricarts.com>\n"
8
  "Language-Team: \n"
@@ -10,7 +10,7 @@ msgstr ""
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
- "X-Generator: Poedit 2.0.4\n"
14
  "X-Poedit-Basepath: .\n"
15
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
  "X-Poedit-KeywordsList: __;_e\n"
@@ -324,68 +324,72 @@ msgid "Button/Loading Style"
324
  msgstr ""
325
 
326
  #: ../admin/admin.php:998
 
 
 
 
327
  msgid "Button Classes"
328
  msgstr ""
329
 
330
- #: ../admin/admin.php:1017
331
  msgid "Top of Page"
332
  msgstr ""
333
 
334
- #: ../admin/admin.php:1025
335
  msgid "Dynamic Content"
336
  msgstr ""
337
 
338
- #: ../admin/admin.php:1033
339
  msgid "Editor Button"
340
  msgstr ""
341
 
342
- #: ../admin/admin.php:1041
343
  msgid "Error Notices"
344
  msgstr ""
345
 
346
- #: ../admin/admin.php:1112
347
  msgid ""
348
  "Customize the user experience of Ajax Load More by updating the fields below."
349
  msgstr ""
350
 
351
- #: ../admin/admin.php:1125
352
  msgid "The following settings affect the WordPress admin area only."
353
  msgstr ""
354
 
355
- #: ../admin/admin.php:1156
356
  msgid "I want to use my own CSS styles."
357
  msgstr ""
358
 
359
- #: ../admin/admin.php:1156
360
  msgid "View Ajax Load More CSS"
361
  msgstr ""
362
 
363
- #: ../admin/admin.php:1176
364
  msgid "Hide shortcode button in WYSIWYG editor."
365
  msgstr ""
366
 
367
- #: ../admin/admin.php:1197
368
  msgid ""
369
  "Display error messaging regarding repeater template updates in the browser "
370
  "console."
371
  msgstr ""
372
 
373
- #: ../admin/admin.php:1218
374
  msgid ""
375
  "Disable dynamic population of categories, tags and authors in the Shortcode "
376
  "Builder.<span style=\"display:block\">Recommended if you have a large number "
377
  "of categories, tags and/or authors."
378
  msgstr ""
379
 
380
- #: ../admin/admin.php:1239 ../admin/admin.php:1242
381
  msgid "Ajax Posts Here"
382
  msgstr ""
383
 
384
- #: ../admin/admin.php:1244
385
  msgid "You can modify the container type when building a shortcode."
386
  msgstr ""
387
 
388
- #: ../admin/admin.php:1261
389
  msgid ""
390
  "Add custom classes to the <i>.alm-listing</i> container - classes are "
391
  "applied globally and will appear with every instance of Ajax Load More. "
@@ -393,41 +397,45 @@ msgid ""
393
  "shortcode.</span>"
394
  msgstr ""
395
 
396
- #: ../admin/admin.php:1323
397
  msgid ""
398
  "Select an Ajax loading style - you can choose between a <strong>Button</"
399
  "strong> or <strong>Infinite Scroll</strong>"
400
  msgstr ""
401
 
402
- #: ../admin/admin.php:1328
403
  msgid "Button"
404
  msgstr ""
405
 
406
- #: ../admin/admin.php:1336
407
  msgid "Infinite Scroll (No Button)"
408
  msgstr ""
409
 
410
- #: ../admin/admin.php:1349
411
  msgid "Preview"
412
  msgstr ""
413
 
414
- #: ../admin/admin.php:1349 ../admin/shortcode-builder/shortcode-builder.php:167
415
  #: ../core/classes/class.alm-shortcode.php:147
416
  msgid "Older Posts"
417
  msgstr ""
418
 
419
- #: ../admin/admin.php:1370
 
 
 
 
420
  msgid "Add classes to your <strong>Load More</strong> button"
421
  msgstr ""
422
 
423
- #: ../admin/admin.php:1413
424
  msgid ""
425
  "On initial page load, move the user's browser window to the top of the "
426
  "screen.<span style=\"display:block\">This <u>may</u> help prevent the "
427
  "loading of unnecessary posts.</span>"
428
  msgstr ""
429
 
430
- #: ../admin/admin.php:1434
431
  msgid ""
432
  "Enable <a href=\"https://codex.wordpress.org/WordPress_Nonces\" target="
433
  "\"_blank\">WP nonce</a> verification to help protect URLs against certain "
@@ -2236,11 +2244,11 @@ msgstr ""
2236
  msgid "Copy Shortcode"
2237
  msgstr ""
2238
 
2239
- #: ../ajax-load-more.php:248
2240
  msgid "Settings"
2241
  msgstr ""
2242
 
2243
- #: ../core/functions.php:706
2244
  msgid "Pages:"
2245
  msgstr ""
2246
 
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Ajax Load More\n"
5
+ "POT-Creation-Date: 2017-12-07 11:56-0500\n"
6
  "PO-Revision-Date: 2017-10-05 16:14-0500\n"
7
  "Last-Translator: Darren Cooney <dcooney@ecentricarts.com>\n"
8
  "Language-Team: \n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
+ "X-Generator: Poedit 2.0.5\n"
14
  "X-Poedit-Basepath: .\n"
15
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
  "X-Poedit-KeywordsList: __;_e\n"
324
  msgstr ""
325
 
326
  #: ../admin/admin.php:998
327
+ msgid "Load CSS Inline"
328
+ msgstr ""
329
+
330
+ #: ../admin/admin.php:1006
331
  msgid "Button Classes"
332
  msgstr ""
333
 
334
+ #: ../admin/admin.php:1025
335
  msgid "Top of Page"
336
  msgstr ""
337
 
338
+ #: ../admin/admin.php:1033
339
  msgid "Dynamic Content"
340
  msgstr ""
341
 
342
+ #: ../admin/admin.php:1041
343
  msgid "Editor Button"
344
  msgstr ""
345
 
346
+ #: ../admin/admin.php:1049
347
  msgid "Error Notices"
348
  msgstr ""
349
 
350
+ #: ../admin/admin.php:1120
351
  msgid ""
352
  "Customize the user experience of Ajax Load More by updating the fields below."
353
  msgstr ""
354
 
355
+ #: ../admin/admin.php:1133
356
  msgid "The following settings affect the WordPress admin area only."
357
  msgstr ""
358
 
359
+ #: ../admin/admin.php:1164
360
  msgid "I want to use my own CSS styles."
361
  msgstr ""
362
 
363
+ #: ../admin/admin.php:1164
364
  msgid "View Ajax Load More CSS"
365
  msgstr ""
366
 
367
+ #: ../admin/admin.php:1184
368
  msgid "Hide shortcode button in WYSIWYG editor."
369
  msgstr ""
370
 
371
+ #: ../admin/admin.php:1205
372
  msgid ""
373
  "Display error messaging regarding repeater template updates in the browser "
374
  "console."
375
  msgstr ""
376
 
377
+ #: ../admin/admin.php:1226
378
  msgid ""
379
  "Disable dynamic population of categories, tags and authors in the Shortcode "
380
  "Builder.<span style=\"display:block\">Recommended if you have a large number "
381
  "of categories, tags and/or authors."
382
  msgstr ""
383
 
384
+ #: ../admin/admin.php:1247 ../admin/admin.php:1250
385
  msgid "Ajax Posts Here"
386
  msgstr ""
387
 
388
+ #: ../admin/admin.php:1252
389
  msgid "You can modify the container type when building a shortcode."
390
  msgstr ""
391
 
392
+ #: ../admin/admin.php:1269
393
  msgid ""
394
  "Add custom classes to the <i>.alm-listing</i> container - classes are "
395
  "applied globally and will appear with every instance of Ajax Load More. "
397
  "shortcode.</span>"
398
  msgstr ""
399
 
400
+ #: ../admin/admin.php:1331
401
  msgid ""
402
  "Select an Ajax loading style - you can choose between a <strong>Button</"
403
  "strong> or <strong>Infinite Scroll</strong>"
404
  msgstr ""
405
 
406
+ #: ../admin/admin.php:1336
407
  msgid "Button"
408
  msgstr ""
409
 
410
+ #: ../admin/admin.php:1344
411
  msgid "Infinite Scroll (No Button)"
412
  msgstr ""
413
 
414
+ #: ../admin/admin.php:1357
415
  msgid "Preview"
416
  msgstr ""
417
 
418
+ #: ../admin/admin.php:1357 ../admin/shortcode-builder/shortcode-builder.php:167
419
  #: ../core/classes/class.alm-shortcode.php:147
420
  msgid "Older Posts"
421
  msgstr ""
422
 
423
+ #: ../admin/admin.php:1378
424
+ msgid "Improve site performance by loading Ajax Load More CSS inline"
425
+ msgstr ""
426
+
427
+ #: ../admin/admin.php:1398
428
  msgid "Add classes to your <strong>Load More</strong> button"
429
  msgstr ""
430
 
431
+ #: ../admin/admin.php:1441
432
  msgid ""
433
  "On initial page load, move the user's browser window to the top of the "
434
  "screen.<span style=\"display:block\">This <u>may</u> help prevent the "
435
  "loading of unnecessary posts.</span>"
436
  msgstr ""
437
 
438
+ #: ../admin/admin.php:1462
439
  msgid ""
440
  "Enable <a href=\"https://codex.wordpress.org/WordPress_Nonces\" target="
441
  "\"_blank\">WP nonce</a> verification to help protect URLs against certain "
2244
  msgid "Copy Shortcode"
2245
  msgstr ""
2246
 
2247
+ #: ../ajax-load-more.php:224
2248
  msgid "Settings"
2249
  msgstr ""
2250
 
2251
+ #: ../core/functions.php:747
2252
  msgid "Pages:"
2253
  msgstr ""
2254