WordPress Infinite Scroll – Ajax Load More - Version 3.5.1

Version Description

  • June 20, 2018 =
  • NEW - Adding columnWidth support for Masonry.
  • NEW - Adding support and backwards compatibility for Custom Repeaters < v2.5
  • UPDATE - Added transition_container_classes parameter option to .alm-paging-content div for paging add-on.
  • FIX - Added fix for WPML taxonomy archive pages.
  • FIX - Fixed issue with transition_container="false" and new loading transition.
  • FIX - Updated ACF Relationship field function to return null if field is not present on the post ID page.
Download this release

Release Info

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

Code changes from version 3.5 to 3.5.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, woocommerce, ajax load more, masonry
5
  Requires at least: 3.6
6
- Tested up to: 4.9.5
7
- Stable tag: 3.5.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -369,8 +369,17 @@ How to install Ajax Load More.
369
 
370
  == Changelog ==
371
 
372
- = 3.5.0 - April 17, 2018 =
373
 
 
 
 
 
 
 
 
 
 
 
374
  ### Notice
375
  This Ajax Load More update contains a major change to how the default repeater template is saved and displayed.
376
  On update, your default repeater template will be moved from `/plugins/ajax-load-more/core/repeater` to an `alm_templates` directory created within `/wp-content/uploads`.
3
  Donate link: https://connekthq.com/donate/
4
  Tags: infinite scroll, infinite scrolling, scroll, infinite, lazy load, lazy loading, endless scroll, pagination, ajax pagination, ajax, ajax posts, woocommerce, ajax load more, masonry
5
  Requires at least: 3.6
6
+ Tested up to: 4.9.6
7
+ Stable tag: 3.5.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
369
 
370
  == Changelog ==
371
 
 
372
 
373
+ = 3.5.1 - June 20, 2018 =
374
+ * NEW - Adding `columnWidth` support for Masonry.
375
+ * NEW - Adding support and backwards compatibility for Custom Repeaters < v2.5
376
+ * UPDATE - Added `transition_container_classes` parameter option to .alm-paging-content div for paging add-on.
377
+ * FIX - Added fix for WPML taxonomy archive pages.
378
+ * FIX - Fixed issue with `transition_container="false"` and new loading transition.
379
+ * FIX - Updated ACF Relationship field function to return null if field is not present on the post ID page.
380
+
381
+
382
+ = 3.5.0 - April 17, 2018 =
383
  ### Notice
384
  This Ajax Load More update contains a major change to how the default repeater template is saved and displayed.
385
  On update, your default repeater template will be moved from `/plugins/ajax-load-more/core/repeater` to an `alm_templates` directory created within `/wp-content/uploads`.
admin/admin-functions.php CHANGED
@@ -145,7 +145,7 @@ function alm_get_addons(){
145
  'status' => 'alm_prev_post_license_status',
146
  'settings_field' => 'alm_prev_post_license',
147
  'img' => 'img/add-ons/prev-post-add-on.jpg',
148
- 'url' => 'https://connekthq.com/plugins/ajax-load-more/add-ons/preloaded/',
149
  'item_id' => ALM_PREV_POST_ITEM_NAME
150
  ),
151
  array(
145
  'status' => 'alm_prev_post_license_status',
146
  'settings_field' => 'alm_prev_post_license',
147
  'img' => 'img/add-ons/prev-post-add-on.jpg',
148
+ 'url' => 'https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/',
149
  'item_id' => ALM_PREV_POST_ITEM_NAME
150
  ),
151
  array(
admin/admin.php CHANGED
@@ -729,23 +729,30 @@ function alm_save_repeater(){
729
 
730
  }
731
 
732
- // Unlimited (Custom Repeaters v2)
733
  elseif($t === 'unlimited'){
734
- if($blog_id > 1){
735
- $dir = ALM_UNLIMITED_PATH. 'repeaters/'. $blog_id;
736
- if( !is_dir($dir) ){
737
- mkdir($dir);
738
- }
739
- $f = ALM_UNLIMITED_PATH. 'repeaters/'. $blog_id .'/'.$n .'.php';
740
- }else{
741
- $f = ALM_UNLIMITED_PATH. 'repeaters/'.$n .'.php';
742
- }
743
-
 
 
 
 
 
744
  }
745
 
746
  // Custom Repeaters v1
747
  else{
 
748
  $f = ALM_REPEATER_PATH. 'repeaters/'.$n .'.php';
 
749
  }
750
 
751
 
@@ -767,6 +774,7 @@ function alm_save_repeater(){
767
  echo '<script>console.log("' .$e->getMessage(). '");</script>';
768
  }
769
  }
 
770
 
771
  // Save to database
772
 
@@ -774,7 +782,7 @@ function alm_save_repeater(){
774
  $data_update = array('repeaterDefault' => "$c", 'pluginVersion' => ALM_VERSION);
775
  $data_where = array('name' => "default");
776
  }
777
- elseif($t === 'unlimited'){ // Unlimited Repeaters
778
  $table_name = $wpdb->prefix . "alm_unlimited";
779
  $data_update = array('repeaterDefault' => "$c", 'alias' => "$a", 'pluginVersion' => ALM_UNLIMITED_VERSION);
780
  $data_where = array('name' => $n);
@@ -793,7 +801,7 @@ function alm_save_repeater(){
793
  echo '<span class="saved-error"><b>'. __('Error Writing File', 'ajax-load-more') .'</b></span><br/>'. __('Something went wrong and the data could not be saved.', 'ajax-load-more');
794
  }
795
 
796
- die();
797
 
798
  }else {
799
  echo __('You don\'t belong here.', 'ajax-load-more');
729
 
730
  }
731
 
732
+ // Custom Repeaters v2
733
  elseif($t === 'unlimited'){
734
+
735
+ // Custom Repeaters 2.5+
736
+ if(ALM_UNLIMITED_VERSION >= '2.5'){
737
+
738
+ // Get path to repeater dir (alm_templates)
739
+ $base_dir = AjaxLoadMore::alm_get_repeater_path();
740
+ AjaxLoadMore::alm_mkdir($base_dir);
741
+ $f = $base_dir .'/'. $n .'.php';
742
+
743
+ } else {
744
+
745
+ $f = ($blog_id > 1) ? ALM_UNLIMITED_PATH. 'repeaters/'. $blog_id .'/'. $n .'.php' : ALM_UNLIMITED_PATH. 'repeaters/'. $n .'.php';
746
+
747
+ }
748
+
749
  }
750
 
751
  // Custom Repeaters v1
752
  else{
753
+
754
  $f = ALM_REPEATER_PATH. 'repeaters/'.$n .'.php';
755
+
756
  }
757
 
758
 
774
  echo '<script>console.log("' .$e->getMessage(). '");</script>';
775
  }
776
  }
777
+
778
 
779
  // Save to database
780
 
782
  $data_update = array('repeaterDefault' => "$c", 'pluginVersion' => ALM_VERSION);
783
  $data_where = array('name' => "default");
784
  }
785
+ elseif($t === 'unlimited'){ // Custom Repeaters v2
786
  $table_name = $wpdb->prefix . "alm_unlimited";
787
  $data_update = array('repeaterDefault' => "$c", 'alias' => "$a", 'pluginVersion' => ALM_UNLIMITED_VERSION);
788
  $data_where = array('name' => $n);
801
  echo '<span class="saved-error"><b>'. __('Error Writing File', 'ajax-load-more') .'</b></span><br/>'. __('Something went wrong and the data could not be saved.', 'ajax-load-more');
802
  }
803
 
804
+ wp_die();
805
 
806
  }else {
807
  echo __('You don\'t belong here.', 'ajax-load-more');
admin/dist/css/admin.css CHANGED
@@ -403,7 +403,7 @@
403
  position: relative;
404
  overflow-x: hidden;
405
  overflow-y: auto;
406
- -webkit-tap-highlight-color: transparent; }
407
 
408
  .select2-result-sub {
409
  margin: 0;
@@ -940,21 +940,21 @@ a.layout-hover:hover img {
940
 
941
  /* Expand Collapse Headings */
942
  .ajax-load-more h3.heading {
943
- font-weight: 700;
944
- padding: 15px 10px 15px 40px !important;
945
  line-height: normal !important;
946
  margin: 0 !important;
947
  color: #555;
948
  cursor: pointer;
949
  width: 100%;
950
  position: relative;
951
- font-size: 17px;
952
  background: #f7f7f7;
953
  border-bottom: 1px solid #e1e1e1; }
954
 
955
  .ajax-load-more h3.heading:hover:after,
956
  .ajax-load-more .add-on h3.heading:hover:after {
957
- color: #f05452; }
958
 
959
  .ajax-load-more h3.heading:hover {
960
  color: #222; }
@@ -962,11 +962,10 @@ a.layout-hover:hover img {
962
  .ajax-load-more h3.heading:after {
963
  font-family: 'FontAwesome';
964
  content: '\f056';
965
- color: #ccc;
966
- font-size: 18px;
967
  position: absolute;
968
  left: 13px;
969
- top: 17px;
970
  height: 20px;
971
  width: 20px; }
972
 
@@ -977,7 +976,7 @@ a.layout-hover:hover img {
977
  border-bottom-color: transparent; }
978
 
979
  .ajax-load-more .add-on h3.heading:after {
980
- color: #999; }
981
 
982
  .ajax-load-more .add-on h3.heading {
983
  background-color: #fefeed; }
@@ -1391,7 +1390,7 @@ a.layout-hover:hover img {
1391
  /* --------------------------------------------------------------------------- */
1392
  .ajax-load-more .row {
1393
  padding: 0 !important;
1394
- margin: 20px 0 0;
1395
  height: auto;
1396
  width: 100%;
1397
  display: block;
@@ -1483,26 +1482,27 @@ a.layout-hover:hover img {
1483
  border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
1484
 
1485
  hr.indented {
1486
- width: calc(100% - 72px);
1487
- margin-left: 36px; }
1488
 
1489
  .ajax-load-more .section-title {
1490
  float: left;
1491
- padding: 22px 0 20px 36px;
1492
- width: 40%; }
1493
 
1494
  .ajax-load-more .section-title.full {
1495
  width: 100%;
1496
  float: none; }
1497
 
1498
  .ajax-load-more .section-title h4 {
1499
- font-size: 16px;
1500
- margin-bottom: 13px; }
 
1501
 
1502
  .ajax-load-more .section-title p,
1503
  .ajax-load-more .wrap p.descriptor {
1504
- font-size: 13px;
1505
- line-height: 20px;
1506
  color: #999; }
1507
 
1508
  .ajax-load-more .wrap p.descriptor {
@@ -1576,10 +1576,10 @@ hr.indented {
1576
  display: none; }
1577
 
1578
  .ajax-load-more .row .wrap {
1579
- padding: 20px 0 0 5%;
1580
  margin: 0;
1581
  border: none;
1582
- width: 58%;
1583
  float: left;
1584
  position: relative; }
1585
 
@@ -2328,7 +2328,7 @@ span.cnkt-button.installed i,
2328
  .license-title {
2329
  border-radius: 3px 3px 0 0;
2330
  border: 1px solid #e1e1e1;
2331
- background-color: #efefef;
2332
  position: relative; }
2333
 
2334
  .license-title .status {
@@ -2422,7 +2422,7 @@ span.cnkt-button.installed i,
2422
  padding: 15px;
2423
  border: 1px solid #e1e1e1;
2424
  border-top: none;
2425
- background-color: #f7f7f7;
2426
  border-radius: 0 0 3px 3px; }
2427
 
2428
  .license-wrap label {
@@ -2433,7 +2433,7 @@ span.cnkt-button.installed i,
2433
  background-color: #fff;
2434
  margin: 0 0 15px;
2435
  width: 100% !important;
2436
- border-color: #ccc;
2437
  padding: 14px; }
2438
 
2439
  .license-wrap input[type=text]:focus {
@@ -2763,7 +2763,7 @@ span.cnkt-button.installed i,
2763
  overflow: visible; }
2764
 
2765
  .admin.ajax-load-more .row.unlimited:first-of-type {
2766
- margin-top: 15px; }
2767
 
2768
  .repeaters .row,
2769
  .shortcode-builder .row {
@@ -2820,7 +2820,7 @@ span.cnkt-button.installed i,
2820
 
2821
  .alm-add-template {
2822
  text-align: center;
2823
- margin: 15px 0 0 !important;
2824
  display: block;
2825
  font-size: 15px !important;
2826
  font-weight: 700;
@@ -2837,7 +2837,7 @@ span.cnkt-button.installed i,
2837
  border-radius: 3px;
2838
  text-decoration: none;
2839
  -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.07);
2840
- box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.07);
2841
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4); }
2842
 
2843
  .alm-add-template a.active {
@@ -2852,12 +2852,12 @@ span.cnkt-button.installed i,
2852
  border-color: #ff5a58;
2853
  color: #fff;
2854
  -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 0 rgba(0, 0, 0, 0.07);
2855
- box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 0 rgba(0, 0, 0, 0.07);
2856
  text-shadow: none; }
2857
 
2858
  .alm-add-template a:focus {
2859
  -webkit-box-shadow: none;
2860
- box-shadow: none;
2861
  text-shadow: none; }
2862
 
2863
  .alm-add-template a:active {
@@ -2865,7 +2865,7 @@ span.cnkt-button.installed i,
2865
  background: #ec4745;
2866
  border-color: #ec4745;
2867
  -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
2868
- box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
2869
  text-shadow: none; }
2870
 
2871
  .alm-add-template a i {
@@ -2887,7 +2887,6 @@ span.cnkt-button.installed i,
2887
 
2888
  /*
2889
  * Cache
2890
- *
2891
  * @since 2.6.0
2892
  */
2893
  .generate-id {
@@ -3192,7 +3191,7 @@ p.cache-stats {
3192
  border-bottom: 1px solid #e1e1e1;
3193
  background-color: #f7f7f7;
3194
  border-radius: 2px 2px 0 0;
3195
- color: #23282d;
3196
  position: relative; }
3197
  #alm-shortcode-builder-form .shortcode-parameter-wrap h2 i {
3198
  position: absolute;
@@ -3227,10 +3226,9 @@ p.cache-stats {
3227
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1); }
3228
 
3229
  /*
3230
- * Repeater Template options dropdown
3231
- *
3232
- * @since 2.4.1
3233
- */
3234
  .ajax-load-more .row.template {
3235
  position: relative; }
3236
 
@@ -3239,8 +3237,8 @@ p.cache-stats {
3239
 
3240
  .alm-drop-btn.alm-repeater-options {
3241
  position: absolute;
3242
- top: -43px;
3243
- right: 11px;
3244
  z-index: 99; }
3245
 
3246
  .alm-drop-btn a.target {
@@ -3248,7 +3246,7 @@ p.cache-stats {
3248
  position: relative;
3249
  color: #999;
3250
  text-decoration: none !important;
3251
- padding: 8px 12px 8px 32px;
3252
  border: 1px solid #e1e1e1;
3253
  border-radius: 3px;
3254
  font-size: 13px;
@@ -3259,7 +3257,7 @@ p.cache-stats {
3259
 
3260
  .alm-drop-btn a.target > i {
3261
  color: #999;
3262
- font-size: 16px;
3263
  position: absolute;
3264
  top: 9px;
3265
  left: 10px; }
@@ -3279,8 +3277,8 @@ p.cache-stats {
3279
  .alm-repeater-options.active a.target {
3280
  background-color: #fff;
3281
  border-color: #c9c9c9;
3282
- -webkit-box-shadow: inset 0 1px 1px #ccc !important;
3283
- box-shadow: inset 0 1px 1px #ccc !important; }
3284
 
3285
  .alm-repeater-options.active a.target,
3286
  .alm-repeater-options.active a.target i.fa-cog {
@@ -3320,7 +3318,7 @@ p.cache-stats {
3320
  .alm-drop-btn.alm-layout-selection li.type .col-select a {
3321
  width: 32px;
3322
  height: 30px;
3323
- margin: 3px 3px 0 0;
3324
  padding: 0;
3325
  float: left;
3326
  text-align: center;
@@ -3362,16 +3360,17 @@ p.cache-stats {
3362
  .alm-drop-btn.alm-layout-selection a.external,
3363
  .alm-drop-btn.alm-layout-selection a.add-on {
3364
  background-color: #f7f7f7;
3365
- padding: 13px 10px 13px 42px;
3366
  display: block; }
3367
 
3368
  .alm-drop-btn.alm-layout-selection a.external {
3369
- padding: 0 10px 0 42px; }
3370
 
3371
  .alm-drop-btn.alm-layout-selection a.external i {
3372
  color: #999;
3373
  border-color: #ccc;
3374
- top: 10px; }
 
3375
 
3376
  .alm-drop-btn.alm-layout-selection a.external:hover i {
3377
  color: #666; }
@@ -3413,8 +3412,8 @@ p.cache-stats {
3413
  color: #222;
3414
  background-color: #fff;
3415
  border-color: #ccc;
3416
- -webkit-box-shadow: 0 0 3px #efefef;
3417
- box-shadow: 0 0 3px #efefef;
3418
  opacity: 1; }
3419
 
3420
  .alm-drop-btn.alm-layout-selection.active a.target,
@@ -3489,10 +3488,10 @@ span.dismiss a {
3489
  -webkit-box-shadow: 0 0 4px #ccc;
3490
  box-shadow: 0 0 4px #ccc;
3491
  padding: 8px;
3492
- width: 260px; }
3493
 
3494
  .alm-layout-selection .alm-dropdown .alm-drop-inner {
3495
- width: 280px; }
3496
 
3497
  .alm-drop-inner:after,
3498
  .alm-drop-inner:before {
@@ -3523,8 +3522,6 @@ span.dismiss a {
3523
  .alm-dropdown ul {
3524
  padding: 0;
3525
  margin: 0;
3526
- border-radius: 2px;
3527
- border: 1px solid #efefef;
3528
  overflow: hidden; }
3529
 
3530
  .alm-dropdown ul li {
@@ -3543,7 +3540,7 @@ span.dismiss a {
3543
  border: none; }
3544
 
3545
  .alm-dropdown ul li a {
3546
- padding: 0 10px 0 42px;
3547
  line-height: 37px;
3548
  height: 36px;
3549
  display: block;
@@ -3568,7 +3565,6 @@ span.dismiss a {
3568
  width: 32px;
3569
  height: 16px;
3570
  line-height: 16px;
3571
- border-right: 1px solid #e1e1e1;
3572
  display: inline-block;
3573
  text-align: center; }
3574
 
@@ -3909,7 +3905,7 @@ span.dismiss a {
3909
 
3910
  .ajax-load-more .alm-toggle-switch li a {
3911
  display: block;
3912
- padding: 16px 26px;
3913
  line-height: 1;
3914
  border-radius: 2px;
3915
  text-decoration: none;
403
  position: relative;
404
  overflow-x: hidden;
405
  overflow-y: auto;
406
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
407
 
408
  .select2-result-sub {
409
  margin: 0;
940
 
941
  /* Expand Collapse Headings */
942
  .ajax-load-more h3.heading {
943
+ font-weight: 600;
944
+ padding: 15px 10px 15px 38px !important;
945
  line-height: normal !important;
946
  margin: 0 !important;
947
  color: #555;
948
  cursor: pointer;
949
  width: 100%;
950
  position: relative;
951
+ font-size: 16px;
952
  background: #f7f7f7;
953
  border-bottom: 1px solid #e1e1e1; }
954
 
955
  .ajax-load-more h3.heading:hover:after,
956
  .ajax-load-more .add-on h3.heading:hover:after {
957
+ color: #ccc; }
958
 
959
  .ajax-load-more h3.heading:hover {
960
  color: #222; }
962
  .ajax-load-more h3.heading:after {
963
  font-family: 'FontAwesome';
964
  content: '\f056';
965
+ color: #e1e1e1;
 
966
  position: absolute;
967
  left: 13px;
968
+ top: 16px;
969
  height: 20px;
970
  width: 20px; }
971
 
976
  border-bottom-color: transparent; }
977
 
978
  .ajax-load-more .add-on h3.heading:after {
979
+ color: #e8e8d3; }
980
 
981
  .ajax-load-more .add-on h3.heading {
982
  background-color: #fefeed; }
1390
  /* --------------------------------------------------------------------------- */
1391
  .ajax-load-more .row {
1392
  padding: 0 !important;
1393
+ margin: 10px 0 0;
1394
  height: auto;
1395
  width: 100%;
1396
  display: block;
1482
  border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
1483
 
1484
  hr.indented {
1485
+ width: calc(100% - 40px);
1486
+ margin-left: 20px; }
1487
 
1488
  .ajax-load-more .section-title {
1489
  float: left;
1490
+ padding: 20px 0 20px 20px;
1491
+ width: 35%; }
1492
 
1493
  .ajax-load-more .section-title.full {
1494
  width: 100%;
1495
  float: none; }
1496
 
1497
  .ajax-load-more .section-title h4 {
1498
+ font-size: 15px;
1499
+ font-weight: 600;
1500
+ margin-bottom: 15px; }
1501
 
1502
  .ajax-load-more .section-title p,
1503
  .ajax-load-more .wrap p.descriptor {
1504
+ font-size: 14px;
1505
+ line-height: 22px;
1506
  color: #999; }
1507
 
1508
  .ajax-load-more .wrap p.descriptor {
1576
  display: none; }
1577
 
1578
  .ajax-load-more .row .wrap {
1579
+ padding: 20px 20px 0 5%;
1580
  margin: 0;
1581
  border: none;
1582
+ width: 65%;
1583
  float: left;
1584
  position: relative; }
1585
 
2328
  .license-title {
2329
  border-radius: 3px 3px 0 0;
2330
  border: 1px solid #e1e1e1;
2331
+ background-color: #f7f7f7;
2332
  position: relative; }
2333
 
2334
  .license-title .status {
2422
  padding: 15px;
2423
  border: 1px solid #e1e1e1;
2424
  border-top: none;
2425
+ background-color: #fff;
2426
  border-radius: 0 0 3px 3px; }
2427
 
2428
  .license-wrap label {
2433
  background-color: #fff;
2434
  margin: 0 0 15px;
2435
  width: 100% !important;
2436
+ border-color: #e7e7e7;
2437
  padding: 14px; }
2438
 
2439
  .license-wrap input[type=text]:focus {
2763
  overflow: visible; }
2764
 
2765
  .admin.ajax-load-more .row.unlimited:first-of-type {
2766
+ margin-top: 10px; }
2767
 
2768
  .repeaters .row,
2769
  .shortcode-builder .row {
2820
 
2821
  .alm-add-template {
2822
  text-align: center;
2823
+ margin: 20px 0 5px !important;
2824
  display: block;
2825
  font-size: 15px !important;
2826
  font-weight: 700;
2837
  border-radius: 3px;
2838
  text-decoration: none;
2839
  -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.07);
2840
+ box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.07);
2841
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4); }
2842
 
2843
  .alm-add-template a.active {
2852
  border-color: #ff5a58;
2853
  color: #fff;
2854
  -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 0 rgba(0, 0, 0, 0.07);
2855
+ box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 0 rgba(0, 0, 0, 0.07);
2856
  text-shadow: none; }
2857
 
2858
  .alm-add-template a:focus {
2859
  -webkit-box-shadow: none;
2860
+ box-shadow: none;
2861
  text-shadow: none; }
2862
 
2863
  .alm-add-template a:active {
2865
  background: #ec4745;
2866
  border-color: #ec4745;
2867
  -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
2868
+ box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
2869
  text-shadow: none; }
2870
 
2871
  .alm-add-template a i {
2887
 
2888
  /*
2889
  * Cache
 
2890
  * @since 2.6.0
2891
  */
2892
  .generate-id {
3191
  border-bottom: 1px solid #e1e1e1;
3192
  background-color: #f7f7f7;
3193
  border-radius: 2px 2px 0 0;
3194
+ color: #555;
3195
  position: relative; }
3196
  #alm-shortcode-builder-form .shortcode-parameter-wrap h2 i {
3197
  position: absolute;
3226
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1); }
3227
 
3228
  /*
3229
+ * Repeater Template options dropdown
3230
+ * @since 2.4.1
3231
+ */
 
3232
  .ajax-load-more .row.template {
3233
  position: relative; }
3234
 
3237
 
3238
  .alm-drop-btn.alm-repeater-options {
3239
  position: absolute;
3240
+ top: -42px;
3241
+ right: 7px;
3242
  z-index: 99; }
3243
 
3244
  .alm-drop-btn a.target {
3246
  position: relative;
3247
  color: #999;
3248
  text-decoration: none !important;
3249
+ padding: 8px 12px 8px 30px;
3250
  border: 1px solid #e1e1e1;
3251
  border-radius: 3px;
3252
  font-size: 13px;
3257
 
3258
  .alm-drop-btn a.target > i {
3259
  color: #999;
3260
+ font-size: 15px;
3261
  position: absolute;
3262
  top: 9px;
3263
  left: 10px; }
3277
  .alm-repeater-options.active a.target {
3278
  background-color: #fff;
3279
  border-color: #c9c9c9;
3280
+ -webkit-box-shadow: inset 0 1px 1px #efefef !important;
3281
+ box-shadow: inset 0 1px 1px #efefef !important; }
3282
 
3283
  .alm-repeater-options.active a.target,
3284
  .alm-repeater-options.active a.target i.fa-cog {
3318
  .alm-drop-btn.alm-layout-selection li.type .col-select a {
3319
  width: 32px;
3320
  height: 30px;
3321
+ margin: 3px 0 0 0;
3322
  padding: 0;
3323
  float: left;
3324
  text-align: center;
3360
  .alm-drop-btn.alm-layout-selection a.external,
3361
  .alm-drop-btn.alm-layout-selection a.add-on {
3362
  background-color: #f7f7f7;
3363
+ padding: 13px 10px 13px 38px;
3364
  display: block; }
3365
 
3366
  .alm-drop-btn.alm-layout-selection a.external {
3367
+ padding: 0 10px 0 38px; }
3368
 
3369
  .alm-drop-btn.alm-layout-selection a.external i {
3370
  color: #999;
3371
  border-color: #ccc;
3372
+ top: 11px;
3373
+ width: 38px; }
3374
 
3375
  .alm-drop-btn.alm-layout-selection a.external:hover i {
3376
  color: #666; }
3412
  color: #222;
3413
  background-color: #fff;
3414
  border-color: #ccc;
3415
+ -webkit-box-shadow: 0 0 3px #e7e7e7;
3416
+ box-shadow: 0 0 3px #e7e7e7;
3417
  opacity: 1; }
3418
 
3419
  .alm-drop-btn.alm-layout-selection.active a.target,
3488
  -webkit-box-shadow: 0 0 4px #ccc;
3489
  box-shadow: 0 0 4px #ccc;
3490
  padding: 8px;
3491
+ width: 220px; }
3492
 
3493
  .alm-layout-selection .alm-dropdown .alm-drop-inner {
3494
+ width: 250px; }
3495
 
3496
  .alm-drop-inner:after,
3497
  .alm-drop-inner:before {
3522
  .alm-dropdown ul {
3523
  padding: 0;
3524
  margin: 0;
 
 
3525
  overflow: hidden; }
3526
 
3527
  .alm-dropdown ul li {
3540
  border: none; }
3541
 
3542
  .alm-dropdown ul li a {
3543
+ padding: 0 10px 0 32px;
3544
  line-height: 37px;
3545
  height: 36px;
3546
  display: block;
3565
  width: 32px;
3566
  height: 16px;
3567
  line-height: 16px;
 
3568
  display: inline-block;
3569
  text-align: center; }
3570
 
3905
 
3906
  .ajax-load-more .alm-toggle-switch li a {
3907
  display: block;
3908
+ padding: 15px 22px;
3909
  line-height: 1;
3910
  border-radius: 2px;
3911
  text-decoration: none;
admin/includes/components/layout-list.php CHANGED
@@ -1,6 +1,6 @@
1
  <div class="clear"></div>
2
  <div class="alm-drop-btn alm-layout-selection">
3
- <a href="javascript:void(0);" class="target"><i class="fa fa-caret-down"></i> <?php _e('Apply Layout', 'ajax-load-more'); ?></a>
4
  <div class="alm-dropdown">
5
  <div class="alm-drop-inner">
6
  <ul>
1
  <div class="clear"></div>
2
  <div class="alm-drop-btn alm-layout-selection">
3
+ <a href="javascript:void(0);" class="target"><i class="fa fa-caret-down"></i> <?php _e('Layouts', 'ajax-load-more'); ?></a>
4
  <div class="alm-dropdown">
5
  <div class="alm-drop-inner">
6
  <ul>
admin/includes/components/repeater-options.php CHANGED
@@ -3,7 +3,7 @@
3
  <div class="alm-dropdown">
4
  <div class="alm-drop-inner">
5
  <ul>
6
- <li class="option-update"><a href="javascript:void(0);" title="<?php _e('Update Template from Database', 'ajax-load-more'); ?>"><i class="fa fa-download"></i> <?php _e('Update Template from Database', 'ajax-load-more'); ?></a></li>
7
  <li class="copy"><a href="javascript:void(0);" title="<?php _e('Copy Template Data', 'ajax-load-more'); ?>"><i class="fa fa-file"></i> <?php _e('Copy Template Data', 'ajax-load-more'); ?></a></li>
8
  </ul>
9
  </div>
3
  <div class="alm-dropdown">
4
  <div class="alm-drop-inner">
5
  <ul>
6
+ <li class="option-update"><a href="javascript:void(0);" title="<?php _e('Update Template from Database', 'ajax-load-more'); ?>"><i class="fa fa-download"></i> <?php _e('Update from Database', 'ajax-load-more'); ?></a></li>
7
  <li class="copy"><a href="javascript:void(0);" title="<?php _e('Copy Template Data', 'ajax-load-more'); ?>"><i class="fa fa-file"></i> <?php _e('Copy Template Data', 'ajax-load-more'); ?></a></li>
8
  </ul>
9
  </div>
admin/includes/cta/about.php CHANGED
@@ -1,7 +1,8 @@
1
  <div class="cta">
2
  <h3><?php _e('Other Plugins', 'ajax-load-more'); ?></h3>
3
  <div class="cta-inner">
4
- <ul class="project-listing">
 
5
  <li>
6
  <a target="blank" href="https://connekthq.com/plugins/broadcast/">
7
  <img src="<?php echo ALM_ADMIN_URL; ?>img/logos/broadcast-48x48.png" alt="">
@@ -9,6 +10,7 @@
9
  <span>Manage and display WordPress call to actions with Broadcast.</span>
10
  </a>
11
  </li>
 
12
  <li>
13
  <a target="blank" href="https://connekthq.com/plugins/easy-query/">
14
  <img src="<?php echo ALM_ADMIN_URL; ?>img/logos/eq-48x48.png" alt="">
1
  <div class="cta">
2
  <h3><?php _e('Other Plugins', 'ajax-load-more'); ?></h3>
3
  <div class="cta-inner">
4
+ <ul class="project-listing"><!--
5
+
6
  <li>
7
  <a target="blank" href="https://connekthq.com/plugins/broadcast/">
8
  <img src="<?php echo ALM_ADMIN_URL; ?>img/logos/broadcast-48x48.png" alt="">
10
  <span>Manage and display WordPress call to actions with Broadcast.</span>
11
  </a>
12
  </li>
13
+ -->
14
  <li>
15
  <a target="blank" href="https://connekthq.com/plugins/easy-query/">
16
  <img src="<?php echo ALM_ADMIN_URL; ?>img/logos/eq-48x48.png" alt="">
admin/shortcode-builder/js/shortcode-builder.js CHANGED
@@ -47,7 +47,7 @@ jQuery(document).ready(function($) {
47
 
48
 
49
 
50
- //
51
  var total_tax_query = 0,
52
  max_tax_query = 2;
53
  $('#add-tax-query').on('click', function(e){
@@ -1019,10 +1019,14 @@ jQuery(document).ready(function($) {
1019
  $('.masonry-options').slideDown(150, 'alm_easeInOutQuad');
1020
  $('.masonry-options-hide').slideUp(150, 'alm_easeInOutQuad');
1021
  var masonry_selector = $('.transition input#masonry-item').val();
 
1022
  var masonry_animation = $('input[name=masonry-animation]:checked').val();
1023
  var masonry_horizontalorder = $('input[name=masonry-horizontalorder]:checked').val();
1024
  if(masonry_selector !== ''){
1025
  output += ' masonry_selector="'+ masonry_selector +'"';
 
 
 
1026
  }
1027
  if(masonry_animation !== '' && masonry_animation !== 'default'){
1028
  output += ' masonry_animation="'+ masonry_animation +'"';
47
 
48
 
49
 
50
+ // Taxonomy Query
51
  var total_tax_query = 0,
52
  max_tax_query = 2;
53
  $('#add-tax-query').on('click', function(e){
1019
  $('.masonry-options').slideDown(150, 'alm_easeInOutQuad');
1020
  $('.masonry-options-hide').slideUp(150, 'alm_easeInOutQuad');
1021
  var masonry_selector = $('.transition input#masonry-item').val();
1022
+ var masonry_columnwidth = $('.transition input#masonry-columnwidth').val();
1023
  var masonry_animation = $('input[name=masonry-animation]:checked').val();
1024
  var masonry_horizontalorder = $('input[name=masonry-horizontalorder]:checked').val();
1025
  if(masonry_selector !== ''){
1026
  output += ' masonry_selector="'+ masonry_selector +'"';
1027
+ }
1028
+ if(masonry_columnwidth !== ''){
1029
+ output += ' masonry_columnwidth="'+ masonry_columnwidth +'"';
1030
  }
1031
  if(masonry_animation !== '' && masonry_animation !== 'default'){
1032
  output += ' masonry_animation="'+ masonry_animation +'"';
admin/shortcode-builder/shortcode-builder.php CHANGED
@@ -317,6 +317,21 @@
317
  <div class="clear"></div>
318
  <hr class="indented" />
319
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
320
  <div class="section-title">
321
  <h4><?php _e('Animation Type', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('All Masonry animations include a fade-in effect as items are loaded','ajax-load-more'); ?>."></a></h4>
322
  <p><?php _e('Select a loading transition for Masonry items', 'ajax-load-more'); ?>.</p>
317
  <div class="clear"></div>
318
  <hr class="indented" />
319
 
320
+ <div class="section-title">
321
+ <h4><?php _e('Column Width', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('If columnWidth is not set, Masonry will use the outer width of the first Item Selector','ajax-load-more'); ?>."></a></h4>
322
+ <p><?php _e('Enter the <a href="https://masonry.desandro.com/options.html#columnwidth" target="_blank">columnWidth</a> of the masonry items', 'ajax-load-more'); ?>.<br/>
323
+ e.g <span>80</span>
324
+ </p>
325
+ </div>
326
+ <div class="wrap">
327
+ <div class="inner">
328
+ <input type="number" class="alm_element numbers-only" name="masonry-columnwidth" id="masonry-columnwidth" placeholder="80" min="0" step="1">
329
+ </div>
330
+ </div>
331
+
332
+ <div class="clear"></div>
333
+ <hr class="indented" />
334
+
335
  <div class="section-title">
336
  <h4><?php _e('Animation Type', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('All Masonry animations include a fade-in effect as items are loaded','ajax-load-more'); ?>."></a></h4>
337
  <p><?php _e('Select a loading transition for Masonry items', 'ajax-load-more'); ?>.</p>
admin/src/scss/_variables.scss CHANGED
@@ -1 +1,2 @@
1
- $gutter: 25px;
 
1
+ $gutter: 25px;
2
+ $grey: #555;
admin/src/scss/admin.scss CHANGED
@@ -263,34 +263,32 @@ a.layout-hover{
263
 
264
  /* Expand Collapse Headings */
265
  .ajax-load-more h3.heading{
266
- font-weight: 700;
267
- padding: 15px 10px 15px 40px !important;
268
  line-height: normal !important;
269
  margin: 0 !important;
270
- color: #555;
271
  cursor: pointer;
272
  width: 100%;
273
  position: relative;
274
- font-size: 17px;
275
  background: #f7f7f7;
276
- border-bottom: 1px solid #e1e1e1;
277
  }
278
  .ajax-load-more h3.heading:hover:after,
279
  .ajax-load-more .add-on h3.heading:hover:after{
280
- color: #f05452;
281
- }
282
  .ajax-load-more h3.heading:hover{
283
  color: #222;
284
  }
285
-
286
  .ajax-load-more h3.heading:after{
287
  font-family: 'FontAwesome';
288
  content: '\f056';
289
- color: #ccc;
290
- font-size: 18px;
291
  position: absolute;
292
  left: 13px;
293
- top: 17px;
294
  height: 20px;
295
  width: 20px;
296
  }
@@ -302,7 +300,7 @@ a.layout-hover{
302
  }
303
 
304
  .ajax-load-more .add-on h3.heading:after{
305
- color: #999;
306
  }
307
  .ajax-load-more .add-on h3.heading{
308
  background-color: #fefeed;
@@ -753,7 +751,7 @@ a.layout-hover{
753
 
754
  .ajax-load-more .row{
755
  padding: 0 !important;
756
- margin: 20px 0 0;
757
  height: auto;
758
  width: 100%;
759
  display: block;
@@ -855,14 +853,13 @@ a.layout-hover{
855
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
856
  }
857
  hr.indented{ // Indented as fake padding in shortcode builder
858
- width: calc(100% - 72px);
859
- margin-left: 36px;
860
  }
861
-
862
  .ajax-load-more .section-title {
863
  float: left;
864
- padding: 22px 0 20px 36px;
865
- width: 40%;
866
  }
867
 
868
  .ajax-load-more .section-title.full {
@@ -870,13 +867,14 @@ hr.indented{ // Indented as fake padding in shortcode builder
870
  float: none;
871
  }
872
  .ajax-load-more .section-title h4{
873
- font-size: 16px;
874
- margin-bottom: 13px;
 
875
  }
876
  .ajax-load-more .section-title p,
877
  .ajax-load-more .wrap p.descriptor{
878
- font-size: 13px;
879
- line-height: 20px;
880
  color: #999;
881
  }
882
  .ajax-load-more .wrap p.descriptor{
@@ -945,7 +943,7 @@ hr.indented{ // Indented as fake padding in shortcode builder
945
  .cta_template_wrap,
946
  .restapi_options,
947
  .filters_options,
948
- .next-page-content,
949
  .acf-options,
950
  .masonry-options,
951
  .progress-bar-options{
@@ -953,10 +951,10 @@ hr.indented{ // Indented as fake padding in shortcode builder
953
  }
954
 
955
  .ajax-load-more .row .wrap{
956
- padding: 20px 0 0 5%;
957
  margin: 0;
958
  border: none;
959
- width: 58%;
960
  float: left;
961
  position: relative;
962
  }
@@ -1748,7 +1746,7 @@ table.highlight{
1748
  .license-title{
1749
  border-radius: 3px 3px 0 0;
1750
  border: 1px solid #e1e1e1;
1751
- background-color: #efefef;
1752
  position: relative;
1753
  }
1754
  .license-title .status{
@@ -1823,7 +1821,7 @@ table.highlight{
1823
  display: none;
1824
  }
1825
  .license-btn.hide{
1826
- display: none;
1827
  }
1828
  .license-btn-wrap{
1829
  display: block;
@@ -1835,7 +1833,7 @@ table.highlight{
1835
  line-height: 18px;
1836
  }
1837
  .license-btn-wrap .msg strong{
1838
- display: block;
1839
  }
1840
  .license-btn-wrap .msg em{
1841
  opacity: 0.7;
@@ -1849,7 +1847,7 @@ table.highlight{
1849
  padding: 15px;
1850
  border: 1px solid #e1e1e1;
1851
  border-top: none;
1852
- background-color: #f7f7f7;
1853
  border-radius: 0 0 3px 3px;
1854
  }
1855
  .license-wrap label{
@@ -1860,7 +1858,7 @@ table.highlight{
1860
  background-color: #fff;
1861
  margin: 0 0 15px;
1862
  width: 100% !important;
1863
- border-color: #ccc;
1864
  padding: 14px;
1865
  }
1866
  .license-wrap input[type=text]:focus{
@@ -2210,7 +2208,7 @@ table.highlight{
2210
  overflow: visible;
2211
  }
2212
  .admin.ajax-load-more .row.unlimited:first-of-type{
2213
- margin-top: 15px;
2214
  }
2215
 
2216
  .repeaters .row,
@@ -2268,7 +2266,7 @@ table.highlight{
2268
 
2269
  .alm-add-template{
2270
  text-align: center;
2271
- margin: 15px 0 0 !important;
2272
  display: block;
2273
  font-size: 15px !important;
2274
  font-weight: 700;
@@ -2282,12 +2280,8 @@ table.highlight{
2282
  display: inline-block;
2283
  padding: 11px 16px 13px;
2284
  line-height: 1;
2285
- -webkit-border-radius: 3px;
2286
- -moz-border-radius: 3px;
2287
  border-radius: 3px;
2288
  text-decoration: none;
2289
- -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.07);
2290
- -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.07);
2291
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.07);
2292
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4);
2293
  }
@@ -2302,14 +2296,10 @@ table.highlight{
2302
  background: #ff5a58;
2303
  border-color: #ff5a58;
2304
  color: #fff;
2305
- -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 0 rgba(0, 0, 0, 0.07);
2306
- -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 0 rgba(0, 0, 0, 0.07);
2307
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 0 rgba(0, 0, 0, 0.07);
2308
  text-shadow: none;
2309
  }
2310
  .alm-add-template a:focus{
2311
- -webkit-box-shadow: none;
2312
- -moz-box-shadow: none;
2313
  box-shadow: none;
2314
  text-shadow: none;
2315
  }
@@ -2317,8 +2307,6 @@ table.highlight{
2317
  color: #fff;
2318
  background: #ec4745;
2319
  border-color: #ec4745;
2320
- -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
2321
- -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
2322
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
2323
  text-shadow: none;
2324
  }
@@ -2335,6 +2323,7 @@ table.highlight{
2335
  .alm-add-template a:active i{
2336
  color: #fff;
2337
  }
 
2338
  .spacer{
2339
  height:10px;
2340
  clear:both;
@@ -2344,7 +2333,6 @@ table.highlight{
2344
 
2345
  /*
2346
  * Cache
2347
- *
2348
  * @since 2.6.0
2349
  */
2350
 
@@ -2691,7 +2679,7 @@ p.cache-stats{
2691
  border-bottom: 1px solid #e1e1e1;
2692
  background-color: #f7f7f7;
2693
  border-radius: 2px 2px 0 0;
2694
- color: #23282d;
2695
  position: relative;
2696
  i{
2697
  position: absolute;
@@ -2728,13 +2716,12 @@ p.cache-stats{
2728
 
2729
 
2730
  /*
2731
- * Repeater Template options dropdown
2732
- *
2733
- * @since 2.4.1
2734
- */
2735
 
2736
  .ajax-load-more .row.template{
2737
- position: relative;
2738
  }
2739
  .ajax-load-more .row.template:hover .alm-repeater-options{
2740
  opacity: 1;
@@ -2742,16 +2729,16 @@ p.cache-stats{
2742
 
2743
  .alm-drop-btn.alm-repeater-options{
2744
  position: absolute;
2745
- top: -43px;
2746
- right: 11px;
2747
- z-index:99;
2748
  }
2749
  .alm-drop-btn a.target{
2750
  font-weight: 500;
2751
  position: relative;
2752
  color: #999;
2753
  text-decoration: none !important;
2754
- padding: 8px 12px 8px 32px;
2755
  border: 1px solid #e1e1e1;
2756
  border-radius: 3px;
2757
  font-size: 13px;
@@ -2761,7 +2748,7 @@ p.cache-stats{
2761
  }
2762
  .alm-drop-btn a.target > i{
2763
  color: #999;
2764
- font-size: 16px;
2765
  position: absolute;
2766
  top:9px;
2767
  left: 10px;
@@ -2781,7 +2768,7 @@ p.cache-stats{
2781
  .alm-repeater-options.active a.target{
2782
  background-color: #fff;
2783
  border-color: #c9c9c9;
2784
- box-shadow: inset 0 1px 1px #ccc !important;
2785
  }
2786
  .alm-repeater-options.active a.target,
2787
  .alm-repeater-options.active a.target i.fa-cog{
@@ -2798,13 +2785,12 @@ p.cache-stats{
2798
  .alm-drop-btn.alm-layout-selection a.target{
2799
  background-color: #f7f7f7;
2800
  border-color: #e1e1e1;
2801
- color: #555;
2802
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2);
2803
  }
2804
  .alm-drop-btn.alm-layout-selection > a > i{
2805
  left: 12px;
2806
  }
2807
-
2808
  .alm-drop-btn.alm-layout-selection li.type{
2809
  height: 36px;
2810
  line-height: 36px;
@@ -2824,7 +2810,7 @@ p.cache-stats{
2824
  .alm-drop-btn.alm-layout-selection li.type .col-select a{
2825
  width: 32px;
2826
  height: 30px;
2827
- margin: 3px 3px 0 0;
2828
  padding: 0;
2829
  float: left;
2830
  text-align: center;
@@ -2867,16 +2853,17 @@ p.cache-stats{
2867
  .alm-drop-btn.alm-layout-selection a.external,
2868
  .alm-drop-btn.alm-layout-selection a.add-on{
2869
  background-color: #f7f7f7;
2870
- padding: 13px 10px 13px 42px;
2871
  display: block;
2872
  }
2873
  .alm-drop-btn.alm-layout-selection a.external{
2874
- padding: 0 10px 0 42px;
2875
  }
2876
  .alm-drop-btn.alm-layout-selection a.external i{
2877
  color: #999;
2878
  border-color: #ccc;
2879
- top: 10px;
 
2880
  }
2881
  .alm-drop-btn.alm-layout-selection a.external:hover i{
2882
  color: #666;
@@ -2910,7 +2897,7 @@ p.cache-stats{
2910
  }
2911
  .alm-drop-btn.alm-layout-selection a.add-on i{
2912
  color: #fff !important;
2913
- border-color: rgba(255, 255, 255, 0.3);
2914
  }
2915
 
2916
  .alm-drop-btn.alm-layout-selection a.target:hover,
@@ -2919,7 +2906,7 @@ p.cache-stats{
2919
  color: #222;
2920
  background-color: #fff;
2921
  border-color: #ccc;
2922
- box-shadow: 0 0 3px #efefef;
2923
  opacity: 1;
2924
  }
2925
  .alm-drop-btn.alm-layout-selection.active a.target,
@@ -2998,10 +2985,10 @@ p.cache-stats{
2998
  border: 1px solid #ccc;
2999
  box-shadow: 0 0 4px #ccc;
3000
  padding: 8px;
3001
- width: 260px;
3002
  }
3003
  .alm-layout-selection .alm-dropdown .alm-drop-inner{
3004
- width: 280px;
3005
  }
3006
  .alm-drop-inner:after,
3007
  .alm-drop-inner:before {
@@ -3021,7 +3008,6 @@ p.cache-stats{
3021
  border-width:7px;
3022
  margin-left:-7px;
3023
  }
3024
-
3025
  .alm-drop-inner:before {
3026
  border-color:rgba(204,204,204,0);
3027
  border-bottom-color:#ccc;
@@ -3035,8 +3021,6 @@ p.cache-stats{
3035
  .alm-dropdown ul{
3036
  padding:0;
3037
  margin:0;
3038
- border-radius: 2px;
3039
- border: 1px solid #efefef;
3040
  overflow: hidden;
3041
  }
3042
  .alm-dropdown ul li{
@@ -3055,7 +3039,7 @@ p.cache-stats{
3055
  border: none;
3056
  }
3057
  .alm-dropdown ul li a{
3058
- padding: 0 10px 0 42px;
3059
  line-height: 37px;
3060
  height: 36px;
3061
  display: block;
@@ -3080,7 +3064,6 @@ p.cache-stats{
3080
  width: 32px;
3081
  height: 16px;
3082
  line-height: 16px;
3083
- border-right: 1px solid #e1e1e1;
3084
  display: inline-block;
3085
  text-align: center;
3086
  }
@@ -3094,7 +3077,6 @@ p.cache-stats{
3094
  }
3095
 
3096
 
3097
-
3098
  /*
3099
  * Mailchimp Sign-up
3100
  *
@@ -3452,12 +3434,12 @@ p.cache-stats{
3452
  float: left;
3453
  margin: 0 2px 0 0;
3454
  padding: 0;
3455
- background: none;
3456
  list-style: none;
3457
  }
3458
  .ajax-load-more .alm-toggle-switch li a{
3459
  display: block;
3460
- padding: 16px 26px;
3461
  line-height: 1;
3462
  border-radius: 2px;
3463
  text-decoration: none;
263
 
264
  /* Expand Collapse Headings */
265
  .ajax-load-more h3.heading{
266
+ font-weight: 600;
267
+ padding: 15px 10px 15px 38px !important;
268
  line-height: normal !important;
269
  margin: 0 !important;
270
+ color: $grey;
271
  cursor: pointer;
272
  width: 100%;
273
  position: relative;
274
+ font-size: 16px;
275
  background: #f7f7f7;
276
+ border-bottom: 1px solid #e1e1e1;
277
  }
278
  .ajax-load-more h3.heading:hover:after,
279
  .ajax-load-more .add-on h3.heading:hover:after{
280
+ color: #ccc;
281
+ }
282
  .ajax-load-more h3.heading:hover{
283
  color: #222;
284
  }
 
285
  .ajax-load-more h3.heading:after{
286
  font-family: 'FontAwesome';
287
  content: '\f056';
288
+ color: #e1e1e1;
 
289
  position: absolute;
290
  left: 13px;
291
+ top: 16px;
292
  height: 20px;
293
  width: 20px;
294
  }
300
  }
301
 
302
  .ajax-load-more .add-on h3.heading:after{
303
+ color: #e8e8d3;
304
  }
305
  .ajax-load-more .add-on h3.heading{
306
  background-color: #fefeed;
751
 
752
  .ajax-load-more .row{
753
  padding: 0 !important;
754
+ margin: 10px 0 0;
755
  height: auto;
756
  width: 100%;
757
  display: block;
853
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
854
  }
855
  hr.indented{ // Indented as fake padding in shortcode builder
856
+ width: calc(100% - 40px);
857
+ margin-left: 20px;
858
  }
 
859
  .ajax-load-more .section-title {
860
  float: left;
861
+ padding: 20px 0 20px 20px;
862
+ width: 35%;
863
  }
864
 
865
  .ajax-load-more .section-title.full {
867
  float: none;
868
  }
869
  .ajax-load-more .section-title h4{
870
+ font-size: 15px;
871
+ font-weight: 600;
872
+ margin-bottom: 15px;
873
  }
874
  .ajax-load-more .section-title p,
875
  .ajax-load-more .wrap p.descriptor{
876
+ font-size: 14px;
877
+ line-height: 22px;
878
  color: #999;
879
  }
880
  .ajax-load-more .wrap p.descriptor{
943
  .cta_template_wrap,
944
  .restapi_options,
945
  .filters_options,
946
+ .next-page-content,
947
  .acf-options,
948
  .masonry-options,
949
  .progress-bar-options{
951
  }
952
 
953
  .ajax-load-more .row .wrap{
954
+ padding: 20px 20px 0 5%;
955
  margin: 0;
956
  border: none;
957
+ width: 65%;
958
  float: left;
959
  position: relative;
960
  }
1746
  .license-title{
1747
  border-radius: 3px 3px 0 0;
1748
  border: 1px solid #e1e1e1;
1749
+ background-color: #f7f7f7;
1750
  position: relative;
1751
  }
1752
  .license-title .status{
1821
  display: none;
1822
  }
1823
  .license-btn.hide{
1824
+ display: none;
1825
  }
1826
  .license-btn-wrap{
1827
  display: block;
1833
  line-height: 18px;
1834
  }
1835
  .license-btn-wrap .msg strong{
1836
+ display: block;
1837
  }
1838
  .license-btn-wrap .msg em{
1839
  opacity: 0.7;
1847
  padding: 15px;
1848
  border: 1px solid #e1e1e1;
1849
  border-top: none;
1850
+ background-color: #fff;
1851
  border-radius: 0 0 3px 3px;
1852
  }
1853
  .license-wrap label{
1858
  background-color: #fff;
1859
  margin: 0 0 15px;
1860
  width: 100% !important;
1861
+ border-color: #e7e7e7;
1862
  padding: 14px;
1863
  }
1864
  .license-wrap input[type=text]:focus{
2208
  overflow: visible;
2209
  }
2210
  .admin.ajax-load-more .row.unlimited:first-of-type{
2211
+ margin-top: 10px;
2212
  }
2213
 
2214
  .repeaters .row,
2266
 
2267
  .alm-add-template{
2268
  text-align: center;
2269
+ margin: 20px 0 5px !important;
2270
  display: block;
2271
  font-size: 15px !important;
2272
  font-weight: 700;
2280
  display: inline-block;
2281
  padding: 11px 16px 13px;
2282
  line-height: 1;
 
 
2283
  border-radius: 3px;
2284
  text-decoration: none;
 
 
2285
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.07);
2286
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4);
2287
  }
2296
  background: #ff5a58;
2297
  border-color: #ff5a58;
2298
  color: #fff;
 
 
2299
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 0 rgba(0, 0, 0, 0.07);
2300
  text-shadow: none;
2301
  }
2302
  .alm-add-template a:focus{
 
 
2303
  box-shadow: none;
2304
  text-shadow: none;
2305
  }
2307
  color: #fff;
2308
  background: #ec4745;
2309
  border-color: #ec4745;
 
 
2310
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
2311
  text-shadow: none;
2312
  }
2323
  .alm-add-template a:active i{
2324
  color: #fff;
2325
  }
2326
+
2327
  .spacer{
2328
  height:10px;
2329
  clear:both;
2333
 
2334
  /*
2335
  * Cache
 
2336
  * @since 2.6.0
2337
  */
2338
 
2679
  border-bottom: 1px solid #e1e1e1;
2680
  background-color: #f7f7f7;
2681
  border-radius: 2px 2px 0 0;
2682
+ color: $grey;
2683
  position: relative;
2684
  i{
2685
  position: absolute;
2716
 
2717
 
2718
  /*
2719
+ * Repeater Template options dropdown
2720
+ * @since 2.4.1
2721
+ */
 
2722
 
2723
  .ajax-load-more .row.template{
2724
+ position: relative;
2725
  }
2726
  .ajax-load-more .row.template:hover .alm-repeater-options{
2727
  opacity: 1;
2729
 
2730
  .alm-drop-btn.alm-repeater-options{
2731
  position: absolute;
2732
+ top: -42px;
2733
+ right: 7px;
2734
+ z-index: 99;
2735
  }
2736
  .alm-drop-btn a.target{
2737
  font-weight: 500;
2738
  position: relative;
2739
  color: #999;
2740
  text-decoration: none !important;
2741
+ padding: 8px 12px 8px 30px;
2742
  border: 1px solid #e1e1e1;
2743
  border-radius: 3px;
2744
  font-size: 13px;
2748
  }
2749
  .alm-drop-btn a.target > i{
2750
  color: #999;
2751
+ font-size: 15px;
2752
  position: absolute;
2753
  top:9px;
2754
  left: 10px;
2768
  .alm-repeater-options.active a.target{
2769
  background-color: #fff;
2770
  border-color: #c9c9c9;
2771
+ box-shadow: inset 0 1px 1px #efefef !important;
2772
  }
2773
  .alm-repeater-options.active a.target,
2774
  .alm-repeater-options.active a.target i.fa-cog{
2785
  .alm-drop-btn.alm-layout-selection a.target{
2786
  background-color: #f7f7f7;
2787
  border-color: #e1e1e1;
2788
+ color: $grey;
2789
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2);
2790
  }
2791
  .alm-drop-btn.alm-layout-selection > a > i{
2792
  left: 12px;
2793
  }
 
2794
  .alm-drop-btn.alm-layout-selection li.type{
2795
  height: 36px;
2796
  line-height: 36px;
2810
  .alm-drop-btn.alm-layout-selection li.type .col-select a{
2811
  width: 32px;
2812
  height: 30px;
2813
+ margin: 3px 0 0 0;
2814
  padding: 0;
2815
  float: left;
2816
  text-align: center;
2853
  .alm-drop-btn.alm-layout-selection a.external,
2854
  .alm-drop-btn.alm-layout-selection a.add-on{
2855
  background-color: #f7f7f7;
2856
+ padding: 13px 10px 13px 38px;
2857
  display: block;
2858
  }
2859
  .alm-drop-btn.alm-layout-selection a.external{
2860
+ padding: 0 10px 0 38px;
2861
  }
2862
  .alm-drop-btn.alm-layout-selection a.external i{
2863
  color: #999;
2864
  border-color: #ccc;
2865
+ top: 11px;
2866
+ width: 38px;
2867
  }
2868
  .alm-drop-btn.alm-layout-selection a.external:hover i{
2869
  color: #666;
2897
  }
2898
  .alm-drop-btn.alm-layout-selection a.add-on i{
2899
  color: #fff !important;
2900
+ border-color: rgba(255, 255, 255, 0.3);
2901
  }
2902
 
2903
  .alm-drop-btn.alm-layout-selection a.target:hover,
2906
  color: #222;
2907
  background-color: #fff;
2908
  border-color: #ccc;
2909
+ box-shadow: 0 0 3px #e7e7e7;
2910
  opacity: 1;
2911
  }
2912
  .alm-drop-btn.alm-layout-selection.active a.target,
2985
  border: 1px solid #ccc;
2986
  box-shadow: 0 0 4px #ccc;
2987
  padding: 8px;
2988
+ width: 220px;
2989
  }
2990
  .alm-layout-selection .alm-dropdown .alm-drop-inner{
2991
+ width: 250px;
2992
  }
2993
  .alm-drop-inner:after,
2994
  .alm-drop-inner:before {
3008
  border-width:7px;
3009
  margin-left:-7px;
3010
  }
 
3011
  .alm-drop-inner:before {
3012
  border-color:rgba(204,204,204,0);
3013
  border-bottom-color:#ccc;
3021
  .alm-dropdown ul{
3022
  padding:0;
3023
  margin:0;
 
 
3024
  overflow: hidden;
3025
  }
3026
  .alm-dropdown ul li{
3039
  border: none;
3040
  }
3041
  .alm-dropdown ul li a{
3042
+ padding: 0 10px 0 32px;
3043
  line-height: 37px;
3044
  height: 36px;
3045
  display: block;
3064
  width: 32px;
3065
  height: 16px;
3066
  line-height: 16px;
 
3067
  display: inline-block;
3068
  text-align: center;
3069
  }
3077
  }
3078
 
3079
 
 
3080
  /*
3081
  * Mailchimp Sign-up
3082
  *
3434
  float: left;
3435
  margin: 0 2px 0 0;
3436
  padding: 0;
3437
+ background: none;
3438
  list-style: none;
3439
  }
3440
  .ajax-load-more .alm-toggle-switch li a{
3441
  display: block;
3442
+ padding: 15px 22px;
3443
  line-height: 1;
3444
  border-radius: 2px;
3445
  text-decoration: none;
ajax-load-more.php CHANGED
@@ -7,15 +7,14 @@ Text Domain: ajax-load-more
7
  Author: Darren Cooney
8
  Twitter: @KaptonKaos
9
  Author URI: https://connekthq.com
10
- Version: 3.5.0
11
  License: GPL
12
  Copyright: Darren Cooney & Connekt Media
13
  */
14
 
15
 
16
-
17
- define('ALM_VERSION', '3.5.0');
18
- define('ALM_RELEASE', 'April 17, 2018');
19
  define('ALM_STORE_URL', 'https://connekthq.com');
20
 
21
 
@@ -364,8 +363,8 @@ if( !class_exists('AjaxLoadMore') ):
364
 
365
  $options = get_option( 'alm_settings' );
366
 
367
- // WPML fix for category/tag archives
368
- if ( isset( $_GET['category'] ) && $_GET['category'] ) {
369
  unset($_REQUEST['post_id']);
370
  }
371
 
@@ -700,6 +699,8 @@ if( !class_exists('AjaxLoadMore') ):
700
  $acf_post_ids = get_field($acf_field_name, $acf_post_id); // Get field value from ACF
701
  if($acf_post_ids){
702
  $args['post__in'] = $acf_post_ids;
 
 
703
  }
704
  }
705
  }
7
  Author: Darren Cooney
8
  Twitter: @KaptonKaos
9
  Author URI: https://connekthq.com
10
+ Version: 3.5.1
11
  License: GPL
12
  Copyright: Darren Cooney & Connekt Media
13
  */
14
 
15
 
16
+ define('ALM_VERSION', '3.5.1');
17
+ define('ALM_RELEASE', 'June 20, 2018');
 
18
  define('ALM_STORE_URL', 'https://connekthq.com');
19
 
20
 
363
 
364
  $options = get_option( 'alm_settings' );
365
 
366
+ // WPML fix for category/tag/taxonomy archives
367
+ if ( (isset( $_GET['category'] ) && $_GET['category']) || (isset($_GET['taxonomy']) && $_GET['taxonomy']) ) {
368
  unset($_REQUEST['post_id']);
369
  }
370
 
699
  $acf_post_ids = get_field($acf_field_name, $acf_post_id); // Get field value from ACF
700
  if($acf_post_ids){
701
  $args['post__in'] = $acf_post_ids;
702
+ } else {
703
+ $args['post__in'] = array(0);
704
  }
705
  }
706
  }
core/classes/class.alm-shortcode.php CHANGED
@@ -143,6 +143,7 @@ if( !class_exists('ALM_SHORTCODE') ):
143
  'transition_container' => 'true',
144
  'transition_container_classes' => '',
145
  'masonry_selector' => '',
 
146
  'masonry_animation' => '',
147
  'masonry_horizontalorder' => '',
148
  'progress_bar' => 'false',
@@ -653,6 +654,9 @@ if( !class_exists('ALM_SHORTCODE') ):
653
  }
654
  if(!empty($masonry_selector)){
655
  $ajaxloadmore .= ' data-masonry-selector="'.$masonry_selector.'"';
 
 
 
656
  }
657
  if(!empty($masonry_animation)){
658
  $ajaxloadmore .= ' data-masonry-animation="'.$masonry_animation.'"';
143
  'transition_container' => 'true',
144
  'transition_container_classes' => '',
145
  'masonry_selector' => '',
146
+ 'masonry_columnwidth' => '',
147
  'masonry_animation' => '',
148
  'masonry_horizontalorder' => '',
149
  'progress_bar' => 'false',
654
  }
655
  if(!empty($masonry_selector)){
656
  $ajaxloadmore .= ' data-masonry-selector="'.$masonry_selector.'"';
657
+ }
658
+ if(!empty($masonry_columnwidth)){
659
+ $ajaxloadmore .= ' data-masonry-columnwidth="'.$masonry_columnwidth.'"';
660
  }
661
  if(!empty($masonry_animation)){
662
  $ajaxloadmore .= ' data-masonry-animation="'.$masonry_animation.'"';
core/dist/js/ajax-load-more.js CHANGED
@@ -219,6 +219,7 @@ var alm_is_filtering = false; // Global Masonry/Filtering var
219
  @param container object
220
  @param items object
221
  @param selector string
 
222
  @param animation string
223
  @param speed int
224
  @param masonry_init boolean
@@ -228,7 +229,7 @@ var alm_is_filtering = false; // Global Masonry/Filtering var
228
  @updated 3.3.2
229
  */
230
 
231
- var almMasonry = function almMasonry(container, items, selector, animation, horizontalOrder, speed, masonry_init, init, filtering) {
232
 
233
  var duration = (speed + 100) / 1000 + 's'; // Add 100 for some delay
234
  var hidden = 'scale(0.5)';
@@ -254,6 +255,18 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
254
  visible = 'translateY(0)';
255
  }
256
 
 
 
 
 
 
 
 
 
 
 
 
 
257
  horizontalOrder = horizontalOrder === 'true' ? true : false;
258
 
259
  if (!filtering) {
@@ -264,7 +277,7 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
264
  container.masonry({
265
  itemSelector: selector,
266
  transitionDuration: duration,
267
- columnWidth: selector,
268
  horizontalOrder: horizontalOrder,
269
  hiddenStyle: {
270
  transform: hidden,
@@ -281,9 +294,7 @@ var almMasonry = function almMasonry(container, items, selector, animation, hori
281
 
282
  // Standard
283
  else {
284
- //container.append( items ); // Append new items
285
  items.imagesLoaded(function () {
286
- //items.show();
287
  container.append(items).masonry('appended', items);
288
  });
289
  }
@@ -689,6 +700,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
689
  if (alm.transition === 'masonry') {
690
  alm.masonry_init = true;
691
  alm.masonry_selector = alm.content.attr('data-masonry-selector');
 
692
  alm.masonry_animation = alm.content.attr('data-masonry-animation');
693
  alm.masonry_horizontalorder = alm.content.attr('data-masonry-horizontalorder');
694
  if (alm.masonry_animation === undefined) {
@@ -1124,7 +1136,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
1124
  // Is pagination
1125
  if (total > 0) {
1126
  alm.el = $('<div class="alm-reveal' + alm.tcc + '" ' + loadingStyle + '/>');
1127
- alm.el.append('<div class="alm-paging-content"></div><div class="alm-paging-loading"></div>');
1128
  $('.alm-paging-content', alm.el).append(alm.data);
1129
  alm.content.append(alm.el);
1130
  alm.AjaxLoadMore.fadeIn(alm.el.get(0), alm.speed);
@@ -1301,7 +1313,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
1301
 
1302
  // Masonry
1303
  if (alm.transition === 'masonry') {
1304
- almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector, alm.masonry_animation, alm.masonry_horizontalorder, alm.speed, alm.masonry_init, alm.init, alm_is_filtering);
1305
  alm.masonry_init = false;
1306
  alm.AjaxLoadMore.transitionEnd();
1307
  }
@@ -1314,11 +1326,15 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
1314
  else {
1315
  if (alm.images_loaded === 'true') {
1316
  alm.el.almWaitForImages().done(function () {
1317
- alm.AjaxLoadMore.fadeIn(alm.el.get(0), alm.speed);
 
 
1318
  alm.AjaxLoadMore.transitionEnd();
1319
  });
1320
  } else {
1321
- alm.AjaxLoadMore.fadeIn(alm.el.get(0), alm.speed);
 
 
1322
  alm.AjaxLoadMore.transitionEnd();
1323
  }
1324
  }
@@ -1817,7 +1833,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
1817
  // Masonry + Preloaded
1818
  alm.window.bind('load', function () {
1819
  if (alm.is_masonry_preloaded) {
1820
- almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector, alm.masonry_animation, alm.masonry_horizontalorder, alm.speed, alm.masonry_init, true, false);
1821
  alm.masonry_init = false;
1822
  }
1823
  });
219
  @param container object
220
  @param items object
221
  @param selector string
222
+ @param columnWidth string
223
  @param animation string
224
  @param speed int
225
  @param masonry_init boolean
229
  @updated 3.3.2
230
  */
231
 
232
+ var almMasonry = function almMasonry(container, items, selector, columnWidth, animation, horizontalOrder, speed, masonry_init, init, filtering) {
233
 
234
  var duration = (speed + 100) / 1000 + 's'; // Add 100 for some delay
235
  var hidden = 'scale(0.5)';
255
  visible = 'translateY(0)';
256
  }
257
 
258
+ // Set default columnWidth
259
+ if (columnWidth) {
260
+ if (!isNaN(columnWidth)) {
261
+ // Check if number
262
+ columnWidth = parseInt(columnWidth);
263
+ }
264
+ } else {
265
+ // No columnWidth, use the selector
266
+ columnWidth = selector;
267
+ }
268
+
269
+ // Set horizontalOrder
270
  horizontalOrder = horizontalOrder === 'true' ? true : false;
271
 
272
  if (!filtering) {
277
  container.masonry({
278
  itemSelector: selector,
279
  transitionDuration: duration,
280
+ columnWidth: columnWidth,
281
  horizontalOrder: horizontalOrder,
282
  hiddenStyle: {
283
  transform: hidden,
294
 
295
  // Standard
296
  else {
 
297
  items.imagesLoaded(function () {
 
298
  container.append(items).masonry('appended', items);
299
  });
300
  }
700
  if (alm.transition === 'masonry') {
701
  alm.masonry_init = true;
702
  alm.masonry_selector = alm.content.attr('data-masonry-selector');
703
+ alm.masonry_columnwidth = alm.content.attr('data-masonry-columnwidth');
704
  alm.masonry_animation = alm.content.attr('data-masonry-animation');
705
  alm.masonry_horizontalorder = alm.content.attr('data-masonry-horizontalorder');
706
  if (alm.masonry_animation === undefined) {
1136
  // Is pagination
1137
  if (total > 0) {
1138
  alm.el = $('<div class="alm-reveal' + alm.tcc + '" ' + loadingStyle + '/>');
1139
+ alm.el.append('<div class="alm-paging-content' + alm.tcc + '"></div><div class="alm-paging-loading"></div>');
1140
  $('.alm-paging-content', alm.el).append(alm.data);
1141
  alm.content.append(alm.el);
1142
  alm.AjaxLoadMore.fadeIn(alm.el.get(0), alm.speed);
1313
 
1314
  // Masonry
1315
  if (alm.transition === 'masonry') {
1316
+ almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector, alm.masonry_columnwidth, alm.masonry_animation, alm.masonry_horizontalorder, alm.speed, alm.masonry_init, alm.init, alm_is_filtering);
1317
  alm.masonry_init = false;
1318
  alm.AjaxLoadMore.transitionEnd();
1319
  }
1326
  else {
1327
  if (alm.images_loaded === 'true') {
1328
  alm.el.almWaitForImages().done(function () {
1329
+ if (alm.transition_container) {
1330
+ alm.AjaxLoadMore.fadeIn(alm.el.get(0), alm.speed);
1331
+ }
1332
  alm.AjaxLoadMore.transitionEnd();
1333
  });
1334
  } else {
1335
+ if (alm.transition_container) {
1336
+ alm.AjaxLoadMore.fadeIn(alm.el.get(0), alm.speed);
1337
+ }
1338
  alm.AjaxLoadMore.transitionEnd();
1339
  }
1340
  }
1833
  // Masonry + Preloaded
1834
  alm.window.bind('load', function () {
1835
  if (alm.is_masonry_preloaded) {
1836
+ almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector, alm.masonry_columnwidth, alm.masonry_animation, alm.masonry_horizontalorder, alm.speed, alm.masonry_init, true, false);
1837
  alm.masonry_init = false;
1838
  }
1839
  });
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),p=a(e)?Object(new e(l)):new Array(l),d=0;d<l;)i=o[d],p[d]=s?void 0===r?s(i,d):s.call(r,i,d):i,d+=1;return p.length=l,p}}());var almGetParameterByName=function(t,a){a||(a=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");var e=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(a);return e?e[2]?decodeURIComponent(e[2].replace(/\+/g," ")):"":null},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(),"function"==typeof almFiltersAddonComplete&&almFiltersAddonComplete(o),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 almMasonry=function t(a,e,o,n,r,s,i,l,p){var d=(s+100)/1e3+"s",c="scale(0.5)",_="scale(1)";"zoom-out"===n&&(c="translateY(-20px) scale(1.25)",_="translateY(0) scale(1)"),"slide-up"===n&&(c="translateY(50px)",_="translateY(0)"),"slide-down"===n&&(c="translateY(-50px)",_="translateY(0)"),"none"===n&&(c="translateY(0)",_="translateY(0)"),r="true"===r,p?(a.masonry("destroy"),a.append(e),t(a,e,o,n,r,s,!0,!0,!1)):i&&l?a.imagesLoaded(function(){a.masonry({itemSelector:o,transitionDuration:d,columnWidth:o,horizontalOrder:r,hiddenStyle:{transform:c,opacity:0},visibleStyle:{transform:_,opacity:1}}),almMasonryFadeIn(a[0].parentNode,s)}):e.imagesLoaded(function(){a.append(e).masonry("appended",e)})},almMasonryFadeIn=function(t,a){a/=10;var e=parseInt(t.style.opacity),o=setInterval(function(){e>.9&&(t.style.opacity=1,clearInterval(o)),t.style.opacity=e,e+=.1},a)};!function(t){t.ajaxloadmore=function(a,e){"true"===alm_localize.scrolltop&&t(window).scrollTop(0);var o=this;if(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.prefix="alm-",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.id=o.el.attr("data-id")?o.el.attr("data-id"):"",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=o.content.attr("data-scroll-distance"),o.scroll_distance=o.scroll_distance?parseInt(o.scroll_distance):150,o.scroll_container=o.content.attr("data-scroll-container"),o.max_pages=o.content.attr("data-max-pages"),o.max_pages=o.max_pages?parseInt(o.max_pages):0,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=250,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.filters=o.content.attr("data-filters"),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.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.filters){o.filters=!0,o.filters_analtyics=o.content.attr("data-filters-analtyics"),o.filters_debug=o.content.attr("data-filters-debug"),o.filters_startpage=0;var n=almGetParameterByName("pg");null!==n&&(o.filters_startpage=parseInt(n),o.page=o.filters_startpage),o.isPaged=!1,o.filters_startpage>0&&(o.isPaged=!0,o.page=o.filters_startpage-1)}else o.filters=!1;"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,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.paging_show_at_most=void 0===o.paging_show_at_most?7:o.paging_show_at_most,"true"===o.preloaded&&(o.pause=!0)):o.paging=!1,void 0===o.cache&&(o.cache=!1),void 0===o.cache_logged_in&&(o.cache_logged_in=!1),void 0===o.comments_per_page&&(o.comments_per_page="5"),"true"===o.preloaded?(o.preload_wrap=o.content.prev(".alm-preloaded"),o.preloaded_total_posts=parseInt(o.preload_wrap.attr("data-total-posts")),void 0===o.preloaded_amount&&(o.preloaded_amount=!1),o.preloaded_total_posts<=o.preloaded_amount&&(o.disable_ajax=!0)):o.preloaded="false",void 0===o.seo&&(o.seo=!1),"true"===o.seo&&(o.seo=!0),void 0===o.is_search&&(o.is_search=!1),o.search_value="true"===o.is_search?o.slug:"",o.permalink=o.content.attr("data-seo-permalink"),o.pageview=o.content.attr("data-seo-pageview"),o.start_page=o.content.attr("data-seo-start-page"),o.seo_trailing_slash="false"===o.content.attr("data-seo-trailing-slash")?"":"/",o.seo_leading_slash="true"===o.content.attr("data-seo-leading-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?"fade":o.transition,o.tcc=void 0===o.tcc?"":o.tcc,o.is_masonry_preloaded=!1,"masonry"===o.transition&&(o.masonry_init=!0,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)),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 p={html:e,meta:{postcount:i,totalposts:l}};o.AjaxLoadMore.success(p,!1)}})}else t.ajax({type:"GET",url:alm_localize.ajaxurl,dataType:"JSON",data:{action:n,nonce:alm_localize.alm_nonce,query_type:e,id:a.attr("data-id"),post_id:o.post_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,i='style="opacity: 0; height: 0;"';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+'" '+i+"/>"),o.el.append('<div class="alm-paging-content"></div><div class="alm-paging-loading"></div>'),t(".alm-paging-content",o.el).append(o.data),o.content.append(o.el),o.AjaxLoadMore.fadeIn(o.el.get(0),o.speed),o.content.parent().removeClass("loading"),o.AjaxLoadMore.resetBtnText(),setTimeout(function(){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.speed)):o.button.html(o.button_label),0===s&&(o.paging&&t.isFunction(t.fn.almPagingEmpty)&&t.fn.almPagingEmpty(o),t.isFunction(t.fn.almEmpty)&&t.fn.almEmpty(o)),o.isPaged&&(o.posts_per_page=o.users?o.content.attr("data-users-per-page"):o.content.attr("data-posts-per-page"),o.start_page&&(o.page=o.start_page-1),o.filters&&o.filters_startpage&&(o.page=o.filters_startpage-1,o.posts_per_page=o.content.attr("data-posts-per-page")))),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+'" '+i+' 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);else if(o.transition_container){var l=void 0,p=window.location.search;if(o.init&&o.start_page>1){var d=[],c=parseInt(o.posts_per_page);"true"===o.cta&&(c+=1);Math.ceil(s/c);for(var _=0;_<s;_+=c)d.push(o.data.slice(_,c+_));o.el=o.content;for(var g=0;g<d.length;g++){var u="true"===o.preloaded?1:0,m=void 0;g>0||"true"===o.preloaded?(l=g+1+u,m=t("default"===o.permalink?'<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+o.search_value+"&paged="+l+'" data-page="'+l+'" />':'<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+o.seo_leading_slash+"page/"+l+o.seo_trailing_slash+o.search_value+'" data-page="'+l+'" />')):m=t('<div class="alm-reveal alm-seo'+o.tcc+'" data-url="'+o.canonical_url+o.search_value+'" data-page="1" />'),m.append(d[g]),m=t(m),o.el.append(m)}}else{if(o.seo&&o.page>0||"true"===o.preloaded){var f="true"===o.preloaded?1:0;l=o.page+1+f,o.seo?"default"===o.permalink?o.el=t('<div class="alm-reveal alm-seo'+o.tcc+'" '+i+' data-url="'+o.canonical_url+o.search_value+"&paged="+l+'" data-page="'+l+'" />'):o.el=t('<div class="alm-reveal alm-seo'+o.tcc+'" '+i+' data-url="'+o.canonical_url+o.seo_leading_slash+"page/"+l+o.seo_trailing_slash+o.search_value+'" data-page="'+l+'" />'):o.filters?o.el=t('<div class="alm-reveal alm-filters'+o.tcc+'" '+i+' data-url="'+o.canonical_url+p+'" data-page="'+l+'" />'):o.el=t('<div class="alm-reveal'+o.tcc+'" '+i+" />")}else o.filters?o.el=t('<div class="alm-reveal alm-filters'+o.tcc+'" '+i+' data-url="'+o.canonical_url+p+'" data-page="'+(o.page+1)+'" />'):o.seo?o.el=t('<div class="alm-reveal alm-seo'+o.tcc+'" '+i+' data-url="'+o.canonical_url+o.search_value+'" data-page="1" />'):o.el=t('<div class="alm-reveal'+o.tcc+'" '+i+" />");o.el.append(o.data)}}else o.el=o.data;("masonry"!==o.transition||o.init&&!o.is_masonry_preloaded)&&o.content.append(o.el),"masonry"===o.transition?(almMasonry(o.masonry_wrap,o.el,o.masonry_selector,o.masonry_animation,o.masonry_horizontalorder,o.speed,o.masonry_init,o.init,alm_is_filtering),o.masonry_init=!1,o.AjaxLoadMore.transitionEnd()):"none"===o.transition?(o.AjaxLoadMore.fadeIn(o.el.get(0),0),o.AjaxLoadMore.transitionEnd()):"true"===o.images_loaded?o.el.almWaitForImages().done(function(){o.AjaxLoadMore.fadeIn(o.el.get(0),o.speed),o.AjaxLoadMore.transitionEnd()}):(o.AjaxLoadMore.fadeIn(o.el.get(0),o.speed),o.AjaxLoadMore.transitionEnd())}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 v=o.page+1;"true"===o.preloaded&&v++,v==o.destroy_after&&o.AjaxLoadMore.destroyed()}alm_is_filtering=!1,o.init=!1},o.AjaxLoadMore.pagingPreloadedInit=function(a){a=null==a?"":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"),""===a&&(t.isFunction(t.fn.almPagingEmpty)&&t.fn.almPagingEmpty(o),t.isFunction(t.fn.almEmpty)&&t.fn.almEmpty(o)),setTimeout(function(){t.isFunction(t.fn.almFadePageControls)&&t.fn.almFadePageControls(o.btnWrap)},o.speed)},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)},o.speed)},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.filters&&"function"==typeof almFiltersPaged&&almFiltersPaged(o)})),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")},o.speed)})),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.button.trigger("click")}})),o.AjaxLoadMore.destroyed=function(){o.disable_ajax=!0,o.paging||(o.button.delay(o.speed).fadeOut(o.speed),t.isFunction(t.fn.almDestroyed)&&t.fn.almDestroyed(o))},o.AjaxLoadMore.fadeIn=function(t,a){if(0==a)t.style.opacity=1,t.style.height="auto";else{a/=10;var e=0,o=setInterval(function(){e>.9&&(t.style.opacity=1,clearInterval(o)),t.style.opacity=e,e+=.1},a);t.style.height="auto"}},o.AjaxLoadMore.transitionEnd=function(){setTimeout(function(){o.loading=!1,o.container.removeClass("alm-loading"),o.AjaxLoadMore.triggerAddons(o),o.paging||(o.button.delay(o.speed).removeClass("loading"),o.AjaxLoadMore.resetBtnText())},o.speed)},o.AjaxLoadMore.init=function(){"true"===o.preloaded&&1==o.destroy_after&&o.AjaxLoadMore.destroyed(),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)},o.speed),"true"!==o.preloaded||o.paging||setTimeout(function(){o.preloaded_total_posts<=parseInt(o.preloaded_amount)&&o.AjaxLoadMore.triggerDone(),0==o.preloaded_total_posts&&t.isFunction(t.fn.almEmpty)&&t.fn.almEmpty(o)},o.speed),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,o.masonry_init,!0,!1),o.masonry_init=!1)})},o.AjaxLoadMore.init(),setTimeout(function(){o.proceed=!0},150),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=[],p=t.almWaitForImages.hasImageProperties||[],d=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(p,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(d,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 p=new Image,d="load.almWaitForImages error.almWaitForImages";t(p).one(d,function o(p){var c=[r,n,"load"==p.type];if(r++,e.apply(l.element,c),s.notifyWith(l.element,c),t(this).off(d,o),r==n)return a.call(i[0]),s.resolveWith(i[0]),!1}),p.src=l.src})}),s.promise()}});
1
+ "use strict";Array.from||(Array.from=function(){var a=Object.prototype.toString,l=function(t){return"function"==typeof t||"[object Function]"===a.call(t)},o=Math.pow(2,53)-1,d=function(t){var a,e=(a=Number(t),isNaN(a)?0:0!==a&&isFinite(a)?(0<a?1:-1)*Math.floor(Math.abs(a)):a);return Math.min(Math.max(e,0),o)};return function(t){var a=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var e,o=1<arguments.length?arguments[1]:void 0;if(void 0!==o){if(!l(o))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(e=arguments[2])}for(var n,r=d(a.length),s=l(this)?Object(new this(r)):new Array(r),i=0;i<r;)n=a[i],s[i]=o?void 0===e?o(n,i):o.call(e,n,i):n,i+=1;return s.length=r,s}}());var almGetParameterByName=function(t,a){a||(a=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");var e=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(a);return e?e[2]?decodeURIComponent(e[2].replace(/\+/g," ")):"":null};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)}var alm_is_filtering=!1;!function(r){r.fn.almFilter=function(e,o,n){n.target?r(".ajax-load-more-wrap[data-id='"+n.target+"']").each(function(t){var a=r(this);r.fn.almFilterTransition(e,o,n,a)}):r(".ajax-load-more-wrap").each(function(t){var a=r(this);r.fn.almFilterTransition(e,o,n,a)})},r.fn.almFilterTransition=function(t,a,e,o){"slide"===t?o.slideUp(a,function(){n(a,e,o)}):"fade"===t||"masonry"===t?o.fadeOut(a,function(){n(a,e,o)}):n(a,e,o)};var n=function(t,a,e){var o=e.get(0),n=o.querySelectorAll(".alm-listing");[].concat(_toConsumableArray(n)).forEach(function(t){t.innerHTML=""});var r=o.querySelector(".alm-load-more-btn");r&&r.classList.remove("done"),s(t,a,e)},s=function(t,a,e){r.each(a,function(t,a){t=t.replace(/\W+/g,"-").replace(/([a-z\d])([A-Z])/g,"$1-$2"),r(".alm-listing",e).attr("data-"+t,a)}),r.isFunction(r.fn.almFilterComplete)&&r.fn.almFilterComplete(),"function"==typeof almFiltersAddonComplete&&almFiltersAddonComplete(e),alm_is_filtering=!0,e.fadeIn(t),a.target?r(".ajax-load-more-wrap[data-id="+a.target+"]").ajaxloadmore():r(".ajax-load-more-wrap").ajaxloadmore()}}(jQuery);var almMasonry=function t(a,e,o,n,r,s,i,l,d,p){var c=(i+100)/1e3+"s",_="scale(0.5)",g="scale(1)";"zoom-out"===r&&(_="translateY(-20px) scale(1.25)",g="translateY(0) scale(1)"),"slide-up"===r&&(_="translateY(50px)",g="translateY(0)"),"slide-down"===r&&(_="translateY(-50px)",g="translateY(0)"),"none"===r&&(g=_="translateY(0)"),n?isNaN(n)||(n=parseInt(n)):n=o,s="true"===s,p?(a.masonry("destroy"),a.append(e),t(a,e,o,r,s,i,!0,!0,!1)):l&&d?a.imagesLoaded(function(){a.masonry({itemSelector:o,transitionDuration:c,columnWidth:n,horizontalOrder:s,hiddenStyle:{transform:_,opacity:0},visibleStyle:{transform:g,opacity:1}}),almMasonryFadeIn(a[0].parentNode,i)}):e.imagesLoaded(function(){a.append(e).masonry("appended",e)})},almMasonryFadeIn=function(t,a){a/=10;var e=parseInt(t.style.opacity),o=setInterval(function(){.9<e&&(t.style.opacity=1,clearInterval(o)),t.style.opacity=e,e+=.1},a)};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(v){v.ajaxloadmore=function(n,t){"true"===alm_localize.scrolltop&&v(window).scrollTop(0);var f=this;if(f.AjaxLoadMore={},f.window=v(window),f.page=0,f.posts=0,f.totalposts=0,f.proceed=!1,f.disable_ajax=!1,f.init=!0,f.loading=!0,f.finished=!1,f.prefix="alm-",f.el=n,f.container=n,f.container.addClass("alm-"+t).attr("data-alm-id",t),f.content=v(".alm-ajax",f.container),f.content_preloaded=v(".alm-listing.alm-preloaded",f.container),f.canonical_url=f.el.attr("data-canonical-url"),f.is_search=f.el.attr("data-search"),f.slug=f.el.attr("data-slug"),f.post_id=f.el.attr("data-post-id"),f.id=f.el.attr("data-id")?f.el.attr("data-id"):"",f.repeater=f.content.attr("data-repeater"),f.theme_repeater=f.content.attr("data-theme-repeater"),f.post_type=f.content.attr("data-post-type"),f.post_type=f.post_type.split(","),f.sticky_posts=f.content.attr("data-sticky-posts"),f.btnWrap=v(".alm-btn-wrap",f.container),f.button_label=f.content.attr("data-button-label"),f.button_loading_label=f.content.attr("data-button-loading-label"),f.scroll_distance=f.content.attr("data-scroll-distance"),f.scroll_distance=f.scroll_distance?parseInt(f.scroll_distance):150,f.scroll_container=f.content.attr("data-scroll-container"),f.max_pages=f.content.attr("data-max-pages"),f.max_pages=f.max_pages?parseInt(f.max_pages):0,f.pause_override=f.content.attr("data-pause-override"),f.pause=f.content.attr("data-pause"),f.transition=f.content.attr("data-transition"),f.transition_container=f.content.attr("data-transition-container"),f.tcc=f.content.attr("data-transition-container-classes"),f.speed=250,f.images_loaded=f.content.attr("data-images-loaded"),f.destroy_after=f.content.attr("data-destroy-after"),f.lang=f.content.attr("data-lang"),f.orginal_posts_per_page=f.content.attr("data-posts-per-page"),f.posts_per_page=f.content.attr("data-posts-per-page"),f.offset=f.content.attr("data-offset"),f.cache=f.content.attr("data-cache"),f.cache_id=f.content.attr("data-cache-id"),f.cache_path=f.content.attr("data-cache-path"),f.cache_logged_in=f.content.attr("data-cache-logged-in"),f.cta=f.content.attr("data-cta"),f.cta_position=f.content.attr("data-cta-position"),f.cta_repeater=f.content.attr("data-cta-repeater"),f.cta_theme_repeater=f.content.attr("data-cta-theme-repeater"),f.acf=f.content.attr("data-acf"),f.acf_field_type=f.content.attr("data-acf-field-type"),f.acf_field_name=f.content.attr("data-acf-field-name"),f.acf_post_id=f.content.attr("data-acf-post-id"),f.nextpage=f.content.attr("data-nextpage"),f.nextpage_urls=f.content.attr("data-nextpage-urls"),f.nextpage_scroll=f.content.attr("data-nextpage-scroll"),f.nextpage_pageviews=f.content.attr("data-nextpage-pageviews"),f.nextpage_post_id=f.content.attr("data-nextpage-post-id"),f.nextpage_startpage=f.content.attr("data-nextpage-startpage"),f.previous_post=f.content.attr("data-previous-post"),f.previous_post_id=f.content.attr("data-previous-post-id"),f.previous_post_taxonomy=f.content.attr("data-previous-post-taxonomy"),f.previous_post_excluded_terms=f.content.attr("data-previous-post-excluded-terms"),f.comments=f.content.attr("data-comments"),"true"===f.comments&&(f.content=v(".alm-comments",f.container)),f.comments_post_id=f.content.attr("data-comments_post_id"),f.comments_per_page=f.content.attr("data-comments_per_page"),f.comments_type=f.content.attr("data-comments_type"),f.comments_style=f.content.attr("data-comments_style"),f.comments_template=f.content.attr("data-comments_template"),f.comments_callback=f.content.attr("data-comments_callback"),f.filters=f.content.attr("data-filters"),f.restapi=f.content.attr("data-restapi"),f.restapi_base_url=f.content.attr("data-restapi-base-url"),f.restapi_namespace=f.content.attr("data-restapi-namespace"),f.restapi_endpoint=f.content.attr("data-restapi-endpoint"),f.restapi_template_id=f.content.attr("data-restapi-template-id"),f.restapi_debug=f.content.attr("data-restapi-debug"),f.seo=f.content.attr("data-seo"),f.preloaded=f.content.attr("data-preloaded"),f.preloaded_amount=f.content.attr("data-preloaded-amount"),f.paging=f.content.attr("data-paging"),f.users="true"===f.content.attr("data-users"),f.users&&(f.orginal_posts_per_page=f.content.attr("data-users-per-page"),f.posts_per_page=f.content.attr("data-users-per-page")),"true"===f.filters){f.filters=!0,f.filters_analtyics=f.content.attr("data-filters-analtyics"),f.filters_debug=f.content.attr("data-filters-debug"),f.filters_startpage=0;var a=almGetParameterByName("pg");null!==a&&(f.filters_startpage=parseInt(a),f.page=f.filters_startpage),f.isPaged=!1,0<f.filters_startpage&&(f.isPaged=!0,f.page=f.filters_startpage-1)}else f.filters=!1;"true"===f.restapi?(f.restapi=!0,void 0===f.restapi_debug&&(f.restapi_debug=!1),""===f.restapi_template_id&&(f.restapi=!1)):f.restapi=!1,"true"===f.paging?(f.paging=!0,f.paging_controls=!!f.content.attr("data-paging-controls"),f.paging_show_at_most=f.content.attr("data-paging-show-at-most"),f.paging_classes=f.content.attr("data-paging-classes"),f.paging_init=!0,f.paging_show_at_most=void 0===f.paging_show_at_most?7:f.paging_show_at_most,"true"===f.preloaded&&(f.pause=!0)):f.paging=!1,void 0===f.cache&&(f.cache=!1),void 0===f.cache_logged_in&&(f.cache_logged_in=!1),void 0===f.comments_per_page&&(f.comments_per_page="5"),"true"===f.preloaded?(f.preload_wrap=f.content.prev(".alm-preloaded"),f.preloaded_total_posts=parseInt(f.preload_wrap.attr("data-total-posts")),void 0===f.preloaded_amount&&(f.preloaded_amount=!1),f.preloaded_total_posts<=f.preloaded_amount&&(f.disable_ajax=!0)):f.preloaded="false",void 0===f.seo&&(f.seo=!1),"true"===f.seo&&(f.seo=!0),void 0===f.is_search&&(f.is_search=!1),f.search_value="true"===f.is_search?f.slug:"",f.permalink=f.content.attr("data-seo-permalink"),f.pageview=f.content.attr("data-seo-pageview"),f.start_page=f.content.attr("data-seo-start-page"),f.seo_trailing_slash="false"===f.content.attr("data-seo-trailing-slash")?"":"/",f.seo_leading_slash="true"===f.content.attr("data-seo-leading-slash")?"/":"",f.start_page?(f.seo_scroll=f.content.attr("data-seo-scroll"),f.seo_scroll_speed=f.content.attr("data-seo-scroll-speed"),f.seo_scrolltop=f.content.attr("data-seo-scrolltop"),f.seo_controls=f.content.attr("data-seo-controls"),f.isPaged=!1,1<f.start_page&&(f.isPaged=!0,f.posts_per_page=f.start_page*f.posts_per_page),f.paging&&(f.posts_per_page=f.orginal_posts_per_page)):f.start_page=1,"true"===f.nextpage?(f.nextpage=!0,f.posts_per_page=1):f.nextpage=!1,void 0===f.nextpage_urls&&(f.nextpage_urls="true"),void 0===f.nextpage_scroll&&(f.nextpage_scroll="250:30"),void 0===f.nextpage_pageviews&&(f.nextpage_pageviews="true"),void 0===f.nextpage_post_id&&(f.nextpage=!1,f.nextpage_post_id=null),void 0===f.nextpage_startpage&&(f.nextpage_startpage=1),1<f.nextpage_startpage&&(f.isPaged=!0),f.acf="true"===f.acf,void 0!==f.acf_field_type&&void 0!==f.acf_field_name&&void 0!==f.acf_post_id||(f.acf=!1),"true"===f.previous_post?(f.previous_post=!0,f.previous_post_permalink="",f.previous_post_title="",f.previous_post_slug=""):f.previous_post=!1,void 0===f.previous_post_id&&(f.previous_post_id=""),void 0===f.previous_post_taxonomy&&(f.previous_post_taxonomy=""),void 0===f.previous_post_excluded_terms&&(f.previous_post_excluded_terms=""),f.previous_post_title_template=f.content.attr("data-previous-post-title-template"),f.siteTitle=f.content.attr("data-previous-post-site-title"),f.siteTagline=f.content.attr("data-previous-post-site-tagline"),f.previous_post_pageview=f.content.attr("data-previous-post-pageview"),f.previous_post_scroll=f.content.attr("data-previous-post-scroll"),f.previous_post_scroll_speed=f.content.attr("data-previous-post-scroll-speed"),f.previous_post_scroll_top=f.content.attr("data-previous-post-scrolltop"),f.previous_post_controls=f.content.attr("data-previous-post-controls"),f.offset=void 0===f.offset?0:f.offset,(void 0===f.pause||f.seo&&1<f.start_page)&&(f.pause=!1),"true"===f.preloaded&&f.seo&&0<f.start_page&&(f.pause=!1),"true"===f.preloaded&&f.paging&&(f.pause=!0),void 0===f.repeater&&(f.repeater="default"),void 0===f.theme_repeater&&(f.theme_repeater="null"),f.max_pages=void 0===f.max_pages||0===f.max_pages?1e4:f.max_pages,f.scroll_distance=void 0===f.scroll_distance?150:f.scroll_distance,f.scroll_container=void 0===f.scroll_container?"":f.scroll_container,f.transition=void 0===f.transition?"fade":f.transition,f.tcc=void 0===f.tcc?"":f.tcc,f.is_masonry_preloaded=!1,"masonry"===f.transition&&(f.masonry_init=!0,f.masonry_selector=f.content.attr("data-masonry-selector"),f.masonry_columnwidth=f.content.attr("data-masonry-columnwidth"),f.masonry_animation=f.content.attr("data-masonry-animation"),f.masonry_horizontalorder=f.content.attr("data-masonry-horizontalorder"),void 0===f.masonry_animation&&(f.masonry_animation="standard"),void 0===f.masonry_horizontalorder&&(f.masonry_horizontalorder="true"),f.masonry_wrap=f.content,f.transition_container=!1,document.body.contains(f.content_preloaded.get(0))&&(f.masonry_wrap=f.content_preloaded,f.is_masonry_preloaded=!0)),void 0===f.content.attr("data-scroll")?f.scroll=!0:"false"===f.content.attr("data-scroll")?f.scroll=!1:f.scroll=!0,f.transition_container=void 0===f.transition_container||"true"===f.transition_container,f.images_loaded=void 0===f.images_loaded?"false":f.images_loaded,f.button_label=void 0===f.button_label?"Older Posts":f.button_label,f.button_loading_label=void 0!==f.button_loading_label&&f.button_loading_label,f.paging?f.content.parent().addClass("loading"):f.button=v(".alm-load-more-btn",f.container),f.AjaxLoadMore.loadPosts=function(){if(!f.disable_ajax)if(f.paging||(f.button.addClass("loading"),!1!==f.button_loading_label&&f.button.html(f.button_loading_label)),f.container.addClass("alm-loading"),f.loading=!0,"true"!==f.cache||f.cache_logged_in)f.AjaxLoadMore.ajax("standard");else{var t;if(f.init&&f.seo&&f.isPaged){t=f.cache_path+f.cache_id+"/page-1-"+f.start_page+".html"}else if(f.nextpage){var a;f.paging?a=parseInt(f.page)+1:(a=parseInt(f.page)+2,f.isPaged&&(a=parseInt(f.page)+parseInt(f.nextpage_startpage)+1)),t=f.cache_path+f.cache_id+"/page-"+a+".html"}else t=f.previous_post?f.cache_path+f.cache_id+"/"+f.previous_post_id+".html":f.cache_path+f.cache_id+"/page-"+(f.page+1)+".html";v.get(t,function(t){f.AjaxLoadMore.success(t,!0)}).fail(function(){f.AjaxLoadMore.ajax("standard")})}},f.AjaxLoadMore.ajax=function(a){var t="alm_query_posts";if(f.acf_array="",f.acf&&("relationship"!==f.acf_field_type&&(t="alm_acf_query"),f.acf_array={acf:"true",post_id:f.acf_post_id,field_type:f.acf_field_type,field_name:f.acf_field_name}),f.nextpage_array="",f.nextpage&&(t="alm_nextpage_query",f.nextpage_array={nextpage:"true",urls:f.nextpage_urls,scroll:f.nextpage_scroll,pageviews:f.nextpage_pageviews,post_id:f.nextpage_post_id,startpage:f.nextpage_startpage}),f.previous_post_array="",f.previous_post&&(f.previous_post_array={previous_post:"true",id:f.previous_post_id,slug:f.previous_post_slug}),f.comments_array="","true"===f.comments&&(t="alm_comments_query",f.posts_per_page=f.comments_per_page,f.comments_array={comments:"true",post_id:f.comments_post_id,per_page:f.comments_per_page,type:f.comments_type,style:f.comments_style,template:f.comments_template,callback:f.comments_callback}),f.users_array="",f.users&&(t="alm_users_query",f.users_array={users:"true",role:f.content.attr("data-users-role"),include:f.content.attr("data-users-include"),exclude:f.content.attr("data-users-exclude"),per_page:f.posts_per_page,order:f.content.attr("data-users-order"),orderby:f.content.attr("data-users-orderby")}),f.cta_array="","true"===f.cta&&(f.cta_array={cta:"true",cta_position:f.cta_position,cta_repeater:f.cta_repeater,cta_theme_repeater:f.cta_theme_repeater}),f.restapi){var i=wp.template(f.restapi_template_id),e=f.restapi_base_url+"/"+f.restapi_namespace+"/"+f.restapi_endpoint,o={id:n.attr("data-id"),post_id:f.post_id,posts_per_page:f.posts_per_page,page:f.page,offset:f.offset,slug:f.slug,canonical_url:f.canonical_url,post_type:f.post_type,post_format:f.content.attr("data-post-format"),category:f.content.attr("data-category"),category__not_in:f.content.attr("data-category-not-in"),tag:f.content.attr("data-tag"),tag__not_in:f.content.attr("data-tag-not-in"),taxonomy:f.content.attr("data-taxonomy"),taxonomy_terms:f.content.attr("data-taxonomy-terms"),taxonomy_operator:f.content.attr("data-taxonomy-operator"),taxonomy_relation:f.content.attr("data-taxonomy-relation"),meta_key:f.content.attr("data-meta-key"),meta_value:f.content.attr("data-meta-value"),meta_compare:f.content.attr("data-meta-compare"),meta_relation:f.content.attr("data-meta-relation"),meta_type:f.content.attr("data-meta-type"),author:f.content.attr("data-author"),year:f.content.attr("data-year"),month:f.content.attr("data-month"),day:f.content.attr("data-day"),post_status:f.content.attr("data-post-status"),order:f.content.attr("data-order"),orderby:f.content.attr("data-orderby"),post__in:f.content.attr("data-post-in"),post__not_in:f.content.attr("data-post-not-in"),search:f.content.attr("data-search"),custom_args:f.content.attr("data-custom-args"),lang:f.lang,preloaded:f.preloaded,preloaded_amount:f.preloaded_amount,seo_start_page:f.start_page};v.ajax({type:"GET",url:e,data:o,dataType:"JSON",beforeSend:function(){1==f.page||f.paging||f.button.addClass("loading")},success:function(t){var e="",o=t.html,a=t.meta,n=a.postcount,r=a.totalposts;v.each(o,function(t){var a=o[t];"true"===f.restapi_debug&&console.log(a),e+=i(a)});var s={html:e,meta:{postcount:n,totalposts:r}};f.AjaxLoadMore.success(s,!1)}})}else v.ajax({type:"GET",url:alm_localize.ajaxurl,dataType:"JSON",data:{action:t,nonce:alm_localize.alm_nonce,query_type:a,id:n.attr("data-id"),post_id:f.post_id,slug:f.slug,canonical_url:f.canonical_url,cache_id:f.cache_id,cache_logged_in:f.cache_logged_in,repeater:f.repeater,theme_repeater:f.theme_repeater,acf:f.acf_array,nextpage:f.nextpage_array,cta:f.cta_array,comments:f.comments_array,users:f.users_array,post_type:f.post_type,sticky_posts:f.sticky_posts,post_format:f.content.attr("data-post-format"),category:f.content.attr("data-category"),category__not_in:f.content.attr("data-category-not-in"),tag:f.content.attr("data-tag"),tag__not_in:f.content.attr("data-tag-not-in"),taxonomy:f.content.attr("data-taxonomy"),taxonomy_terms:f.content.attr("data-taxonomy-terms"),taxonomy_operator:f.content.attr("data-taxonomy-operator"),taxonomy_relation:f.content.attr("data-taxonomy-relation"),meta_key:f.content.attr("data-meta-key"),meta_value:f.content.attr("data-meta-value"),meta_compare:f.content.attr("data-meta-compare"),meta_relation:f.content.attr("data-meta-relation"),meta_type:f.content.attr("data-meta-type"),author:f.content.attr("data-author"),year:f.content.attr("data-year"),month:f.content.attr("data-month"),day:f.content.attr("data-day"),post_status:f.content.attr("data-post-status"),order:f.content.attr("data-order"),orderby:f.content.attr("data-orderby"),post__in:f.content.attr("data-post-in"),post__not_in:f.content.attr("data-post-not-in"),exclude:f.content.attr("data-exclude"),search:f.content.attr("data-search"),custom_args:f.content.attr("data-custom-args"),posts_per_page:f.posts_per_page,page:f.page,offset:f.offset,preloaded:f.preloaded,preloaded_amount:f.preloaded_amount,seo_start_page:f.start_page,paging:f.paging,previous_post:f.previous_post_array,lang:f.lang},beforeSend:function(){1==f.page||f.paging||f.button.addClass("loading")},success:function(t){"standard"===a?f.AjaxLoadMore.success(t,!1):"totalpages"===a&&f.paging&&f.nextpage?v.isFunction(v.fn.almBuildPagination)&&v.fn.almBuildPagination(t,f):"totalposts"===a&&f.paging&&v.isFunction(v.fn.almBuildPagination)&&v.fn.almBuildPagination(t,f)},error:function(t,a,e){f.AjaxLoadMore.error(t,a,e)}})},f.paging&&(f.nextpage?f.AjaxLoadMore.ajax("totalpages"):f.AjaxLoadMore.ajax("totalposts")),f.AjaxLoadMore.success=function(t,a){f.previous_post&&f.AjaxLoadMore.getPreviousPost();var e,o,n,r='style="opacity: 0; height: 0;"';if(a?e=t:(e=t.html,o=t.meta,f.posts=f.posts+o.postcount,n=o.postcount,f.totalposts=o.totalposts,"true"===f.preloaded&&(f.totalposts=f.totalposts-f.preloaded_amount)),f.data=v(e),a&&(n=f.data.length),f.init&&(f.paging?0<n&&(f.el=v('<div class="alm-reveal'+f.tcc+'" '+r+"/>"),f.el.append('<div class="alm-paging-content'+f.tcc+'"></div><div class="alm-paging-loading"></div>'),v(".alm-paging-content",f.el).append(f.data),f.content.append(f.el),f.AjaxLoadMore.fadeIn(f.el.get(0),f.speed),f.content.parent().removeClass("loading"),f.AjaxLoadMore.resetBtnText(),setTimeout(function(){v(".alm-paging-content",f.el).fadeIn(f.speed,"alm_easeInOutQuad",function(){var t=parseInt(f.content.css("padding-top")),a=parseInt(f.content.css("padding-bottom"));f.content.css("height",f.el.height()+t+a+"px"),v.isFunction(v.fn.almFadePageControls)&&v.fn.almFadePageControls(f.btnWrap)})},f.speed)):f.button.html(f.button_label),0===n&&(f.paging&&v.isFunction(v.fn.almPagingEmpty)&&v.fn.almPagingEmpty(f),v.isFunction(v.fn.almEmpty)&&v.fn.almEmpty(f)),f.isPaged&&(f.posts_per_page=f.users?f.content.attr("data-users-per-page"):f.content.attr("data-posts-per-page"),f.start_page&&(f.page=f.start_page-1),f.filters&&f.filters_startpage&&(f.page=f.filters_startpage-1,f.posts_per_page=f.content.attr("data-posts-per-page")))),0<n){if(f.paging)f.init?(f.container.removeClass("alm-loading"),f.AjaxLoadMore.triggerAddons(f)):v(".alm-paging-content",f.el).html("").append(f.data).almWaitForImages().done(function(){v(".alm-paging-loading",f.el).fadeOut(f.speed),v.isFunction(v.fn.almOnPagingComplete)&&v.fn.almOnPagingComplete(f),f.container.removeClass("alm-loading"),f.AjaxLoadMore.triggerAddons(f)});else{if(f.previous_post)f.el=v('<div class="alm-reveal alm-previous-post post-'+f.previous_post_id+'" '+r+' data-id="'+f.previous_post_id+'" data-title="'+f.previous_post_title+'" data-url="'+f.previous_post_permalink+'" data-page="'+f.page+'"/>'),f.el.append(f.data);else if(f.transition_container){var s=void 0,i=window.location.search;if(f.init&&1<f.start_page){var l=[],d=parseInt(f.posts_per_page);"true"===f.cta&&(d+=1);Math.ceil(n/d);for(var p=0;p<n;p+=d)l.push(f.data.slice(p,d+p));f.el=f.content;for(var c=0;c<l.length;c++){var _="true"===f.preloaded?1:0,g=void 0;0<c||"true"===f.preloaded?(s=c+1+_,g="default"===f.permalink?v('<div class="alm-reveal alm-seo'+f.tcc+'" data-url="'+f.canonical_url+f.search_value+"&paged="+s+'" data-page="'+s+'" />'):v('<div class="alm-reveal alm-seo'+f.tcc+'" data-url="'+f.canonical_url+f.seo_leading_slash+"page/"+s+f.seo_trailing_slash+f.search_value+'" data-page="'+s+'" />')):g=v('<div class="alm-reveal alm-seo'+f.tcc+'" data-url="'+f.canonical_url+f.search_value+'" data-page="1" />'),g.append(l[c]),g=v(g),f.el.append(g)}}else{if(f.seo&&0<f.page||"true"===f.preloaded){var u="true"===f.preloaded?1:0;s=f.page+1+u,f.seo?"default"===f.permalink?f.el=v('<div class="alm-reveal alm-seo'+f.tcc+'" '+r+' data-url="'+f.canonical_url+f.search_value+"&paged="+s+'" data-page="'+s+'" />'):f.el=v('<div class="alm-reveal alm-seo'+f.tcc+'" '+r+' data-url="'+f.canonical_url+f.seo_leading_slash+"page/"+s+f.seo_trailing_slash+f.search_value+'" data-page="'+s+'" />'):f.filters?f.el=v('<div class="alm-reveal alm-filters'+f.tcc+'" '+r+' data-url="'+f.canonical_url+i+'" data-page="'+s+'" />'):f.el=v('<div class="alm-reveal'+f.tcc+'" '+r+" />")}else f.filters?f.el=v('<div class="alm-reveal alm-filters'+f.tcc+'" '+r+' data-url="'+f.canonical_url+i+'" data-page="'+(f.page+1)+'" />'):f.seo?f.el=v('<div class="alm-reveal alm-seo'+f.tcc+'" '+r+' data-url="'+f.canonical_url+f.search_value+'" data-page="1" />'):f.el=v('<div class="alm-reveal'+f.tcc+'" '+r+" />");f.el.append(f.data)}}else f.el=f.data;("masonry"!==f.transition||f.init&&!f.is_masonry_preloaded)&&f.content.append(f.el),"masonry"===f.transition?(almMasonry(f.masonry_wrap,f.el,f.masonry_selector,f.masonry_columnwidth,f.masonry_animation,f.masonry_horizontalorder,f.speed,f.masonry_init,f.init,alm_is_filtering),f.masonry_init=!1,f.AjaxLoadMore.transitionEnd()):"none"===f.transition?(f.AjaxLoadMore.fadeIn(f.el.get(0),0),f.AjaxLoadMore.transitionEnd()):"true"===f.images_loaded?f.el.almWaitForImages().done(function(){f.transition_container&&f.AjaxLoadMore.fadeIn(f.el.get(0),f.speed),f.AjaxLoadMore.transitionEnd()}):(f.transition_container&&f.AjaxLoadMore.fadeIn(f.el.get(0),f.speed),f.AjaxLoadMore.transitionEnd())}v.isFunction(v.fn.almComplete)&&("true"===f.images_loaded?f.el.almWaitForImages().done(function(){v.fn.almComplete(f)}):v.fn.almComplete(f)),f.cache?n<f.posts_per_page&&f.AjaxLoadMore.triggerDone():f.posts>=f.totalposts&&!f.previous_post&&f.AjaxLoadMore.triggerDone()}else f.paging||(f.button.delay(f.speed).removeClass("loading").addClass("done"),f.AjaxLoadMore.resetBtnText()),f.AjaxLoadMore.triggerDone();if(void 0!==f.destroy_after&&""!==f.destroy_after){var m=f.page+1;"true"===f.preloaded&&m++,m==f.destroy_after&&f.AjaxLoadMore.destroyed()}alm_is_filtering=!1,f.init=!1},f.AjaxLoadMore.pagingPreloadedInit=function(t){t=null==t?"":t,f.el=v('<div class="alm-reveal'+f.tcc+'"/>'),f.el.append('<div class="alm-paging-content">'+t+'</div><div class="alm-paging-loading"></div>'),f.content.append(f.el),f.content.parent().removeClass("loading"),f.AjaxLoadMore.resetBtnText();var a=parseInt(f.content.css("padding-top")),e=parseInt(f.content.css("padding-bottom"));f.content.css("height",f.el.height()+a+e+"px"),""===t&&(v.isFunction(v.fn.almPagingEmpty)&&v.fn.almPagingEmpty(f),v.isFunction(v.fn.almEmpty)&&v.fn.almEmpty(f)),setTimeout(function(){v.isFunction(v.fn.almFadePageControls)&&v.fn.almFadePageControls(f.btnWrap)},f.speed)},f.AjaxLoadMore.pagingNextpageInit=function(t){f.el=v('<div class="alm-reveal alm-nextpage"/>'),f.el.append('<div class="alm-paging-content">'+t+'</div><div class="alm-paging-loading"></div>'),f.el.appendTo(f.content),f.content.parent().removeClass("loading"),f.AjaxLoadMore.resetBtnText();var a=parseInt(f.content.css("padding-top")),e=parseInt(f.content.css("padding-bottom"));f.content.css("height",f.el.height()+a+e+"px"),v.isFunction(v.fn.almSetNextPageVars)&&v.fn.almSetNextPageVars(f),setTimeout(function(){v.isFunction(v.fn.almFadePageControls)&&v.fn.almFadePageControls(f.btnWrap),v.isFunction(v.fn.almOnWindowResize)&&v.fn.almOnWindowResize(f)},f.speed)},f.fetchingPreviousPost=!1,f.AjaxLoadMore.getPreviousPost=function(){f.fetchingPreviousPost=!0;var t={action:"alm_query_previous_post",id:f.previous_post_id,taxonomy:f.previous_post_taxonomy,excluded_terms:f.previous_post_excluded_terms};v.ajax({type:"GET",dataType:"JSON",url:alm_localize.ajaxurl,data:t,success:function(t){t.has_previous_post?(f.content.attr("data-previous-post-id",t.prev_id),f.previous_post_id=t.prev_id,f.previous_post_permalink=t.prev_permalink,f.previous_post_title=t.prev_title,f.previous_post_slug=t.prev_slug):t.has_previous_post||f.AjaxLoadMore.triggerDone(),v.isFunction(v.fn.almSetPreviousPost)&&v.fn.almSetPreviousPost(f,t.current_id,t.permalink,t.title),f.fetchingPreviousPost=!1},error:function(t,a,e){f.AjaxLoadMore.error(t,a,e),f.fetchingPreviousPost=!1}})},f.AjaxLoadMore.triggerAddons=function(t){v.isFunction(v.fn.almSEO)&&t.seo&&v.fn.almSEO(t,!1),v.isFunction(v.fn.almSetNextPage)&&v.fn.almSetNextPage(t)},f.AjaxLoadMore.triggerDone=function(){f.loading=!1,f.finished=!0,f.paging||f.button.addClass("done"),v.isFunction(v.fn.almDone)&&setTimeout(function(){v.fn.almDone(f)},f.speed+10)},f.AjaxLoadMore.resetBtnText=function(){!1===f.button_loading_label||f.paging||f.button.html(f.button_label)},f.AjaxLoadMore.error=function(t,a,e){f.loading=!1,f.paging||(f.button.removeClass("loading"),f.AjaxLoadMore.resetBtnText()),console.log(e)},f.paging||f.fetchingPreviousPost||(f.button.unbind("click"),f.button.on("click",function(t){t.preventDefault(),"true"===f.pause&&(f.pause=!1,f.pause_override=!1,f.AjaxLoadMore.loadPosts()),f.loading||f.finished||v(this).hasClass("done")||(f.loading=!0,f.page++,f.AjaxLoadMore.loadPosts()),f.filters&&"function"==typeof almFiltersPaged&&almFiltersPaged(f)})),f.paging&&(f.window.unbind("resizeEnd"),f.window.bind("resizeEnd",function(){v.isFunction(v.fn.almOnWindowResize)&&v.fn.almOnWindowResize(f)}),f.window.unbind("resize"),f.window.bind("resize",function(){this.resizeTO&&clearTimeout(this.resizeTO),this.resizeTO=setTimeout(function(){v(this).trigger("resizeEnd")},f.speed)})),f.AjaxLoadMore.isVisible=function(){return f.visible=!1,f.el.is(":visible")&&(f.visible=!0),f.visible},f.scroll&&!f.paging&&(""!==f.scroll_container&&(f.window=v(f.scroll_container)),f.window.bind("scroll touchstart",function(){if(f.AjaxLoadMore.isVisible()&&!f.fetchingPreviousPost){var t=f.button.offset().top,a=Math.round(t-(f.window.height()-f.scroll_distance)),e=f.window.scrollTop()>=a;""!==f.scroll_container&&(e=f.button.offset().top-(f.window.height()-f.scroll_distance)<f.window.offset().top),!f.loading&&!f.finished&&e&&f.page<f.max_pages-1&&f.proceed&&"true"===f.pause&&"true"===f.pause_override?f.button.trigger("click"):!f.loading&&!f.finished&&e&&f.page<f.max_pages-1&&f.proceed&&"true"!==f.pause&&f.button.trigger("click")}})),f.AjaxLoadMore.destroyed=function(){f.disable_ajax=!0,f.paging||(f.button.delay(f.speed).fadeOut(f.speed),v.isFunction(v.fn.almDestroyed)&&v.fn.almDestroyed(f))},f.AjaxLoadMore.fadeIn=function(t,a){if(0==a)t.style.opacity=1,t.style.height="auto";else{a/=10;var e=0,o=setInterval(function(){.9<e&&(t.style.opacity=1,clearInterval(o)),t.style.opacity=e,e+=.1},a);t.style.height="auto"}},f.AjaxLoadMore.transitionEnd=function(){setTimeout(function(){f.loading=!1,f.container.removeClass("alm-loading"),f.AjaxLoadMore.triggerAddons(f),f.paging||(f.button.delay(f.speed).removeClass("loading"),f.AjaxLoadMore.resetBtnText())},f.speed)},f.AjaxLoadMore.init=function(){("true"===f.preloaded&&1==f.destroy_after&&f.AjaxLoadMore.destroyed(),f.paging||f.previous_post||(f.disable_ajax?(f.finished=!0,f.button.addClass("done")):"true"===f.pause?(f.button.html(f.button_label),f.loading=!1):f.AjaxLoadMore.loadPosts()),f.previous_post&&(f.AjaxLoadMore.getPreviousPost(),f.loading=!1),"true"===f.preloaded&&f.seo&&!f.paging&&setTimeout(function(){v.isFunction(v.fn.almSEO)&&f.start_page<1&&v.fn.almSEO(f,!0)},f.speed),"true"!==f.preloaded||f.paging||setTimeout(function(){f.preloaded_total_posts<=parseInt(f.preloaded_amount)&&f.AjaxLoadMore.triggerDone(),0==f.preloaded_total_posts&&v.isFunction(v.fn.almEmpty)&&v.fn.almEmpty(f)},f.speed),f.nextpage)&&(1<v(".alm-nextpage").length&&v(".alm-nextpage").length==v(".alm-nextpage").eq(0).data("total-pages")&&f.AjaxLoadMore.triggerDone());f.window.bind("load",function(){f.is_masonry_preloaded&&(almMasonry(f.masonry_wrap,f.el,f.masonry_selector,f.masonry_columnwidth,f.masonry_animation,f.masonry_horizontalorder,f.speed,f.masonry_init,!0,!1),f.masonry_init=!1)})},f.AjaxLoadMore.init(),setTimeout(function(){f.proceed=!0},150),v.fn.almUpdateCurrentPage=function(t,a,e){e.page=t,e.nextpage&&!e.paging&&(e.page=e.page-1);var o="";e.paging_init&&"true"===e.preloaded?(o=v(".alm-preloaded .alm-reveal",e.el).html(),v(".alm-preloaded",e.el).remove(),e.preloaded_amount=0,e.AjaxLoadMore.pagingPreloadedInit(o),e.paging_init=!1,e.init=!1):e.paging_init&&e.nextpage?(o=v(".alm-nextpage",e.el).html(),v(".alm-nextpage",e.el).remove(),e.AjaxLoadMore.pagingNextpageInit(o),e.paging_init=!1,e.init=!1):e.AjaxLoadMore.loadPosts()},v.fn.almGetParentContainer=function(){return f.el.closest("#ajax-load-more")},v.fn.almGetObj=function(){return f},v.fn.almTriggerClick=function(){f.button.trigger("click")},v.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}},v.fn.ajaxloadmore=function(){return this.each(function(t){new v.ajaxloadmore(v(this),t)})};var t=document.querySelectorAll(".ajax-load-more-wrap");t.length&&[].concat(_toConsumableArray(t)).forEach(function(t,a){new v.ajaxloadmore(v(t),a)})}(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(g){var u="almWaitForImages";g.almWaitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage","cursor"],hasImageAttributes:["srcset"]},g.expr[":"]["has-src"]=function(t){return g(t).is('img[src][src!=""]')},g.expr[":"].uncached=function(t){return!!g(t).is(":has-src")&&!t.complete},g.fn.almWaitForImages=function(){var l,d,e,p=0,c=0,_=g.Deferred();if(g.isPlainObject(arguments[0])?(e=arguments[0].waitForAll,d=arguments[0].each,l=arguments[0].finished):1===arguments.length&&"boolean"===g.type(arguments[0])?e=arguments[0]:(l=arguments[0],d=arguments[1],e=arguments[2]),l=l||g.noop,d=d||g.noop,e=!!e,!g.isFunction(l)||!g.isFunction(d))throw new TypeError("An invalid callback was supplied.");return this.each(function(){var r=g(this),s=[],t=g.almWaitForImages.hasImageProperties||[],a=g.almWaitForImages.hasImageAttributes||[],i=/url\(\s*(['"]?)(.*?)\1\s*\)/g;e?r.find("*").addBack().each(function(){var n=g(this);n.is("img:has-src")&&s.push({src:n.attr("src"),element:n[0]}),g.each(t,function(t,a){var e,o=n.css(a);if(!o)return!0;for(;e=i.exec(o);)s.push({src:e[2],element:n[0]})}),g.each(a,function(t,a){var e,o=n.attr(a);if(!o)return!0;e=o.split(","),g.each(e,function(t,a){a=g.trim(a).split(" ")[0],s.push({src:a,element:n[0]})})})}):r.find("img:has-src").each(function(){s.push({src:this.src,element:this})}),p=s.length,(c=0)===p&&(l.call(r[0]),_.resolveWith(r[0])),g.each(s,function(t,o){var a=new Image,n="load."+u+" error."+u;g(a).one(n,function t(a){var e=[c,p,"load"==a.type];if(c++,d.apply(o.element,e),_.notifyWith(o.element,e),g(this).off(n,t),c==p)return l.call(r[0]),_.resolveWith(r[0]),!1}),a.src=o.src})}),_.promise()}});
core/functions.php CHANGED
@@ -42,27 +42,9 @@ function alm_progress_css($counter, $progress_bar, $progress_bar_color){
42
  if($counter == 1 && $progress_bar === 'true'){
43
  $style = '
44
  <style>
45
- .pace {
46
- -webkit-pointer-events: none;
47
- pointer-events: none;
48
- -webkit-user-select: none;
49
- -moz-user-select: none;
50
- user-select: none;
51
- }
52
- .pace-inactive {
53
- display: none;
54
- }
55
- .pace .pace-progress {
56
- background: #'. $progress_bar_color .';
57
- position: fixed;
58
- z-index: 2000;
59
- top: 0;
60
- right: 100%;
61
- width: 100%;
62
- height: 5px;
63
- -webkit-box-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
64
- box-shadow: 0 0 2px rgba(255, 255, 255, 0.3);
65
- }
66
  </style>';
67
  return $style;
68
  }
@@ -116,10 +98,12 @@ function alm_do_inline_css($setting) {
116
  * alm_get_current_repeater
117
  * Get the current repeater template file
118
  *
119
- * @param $repeater string current repater name*
120
- * @param $type string The type of template
 
121
  * @return $include (file path)
122
  * @since 2.5.0
 
123
  */
124
 
125
  function alm_get_current_repeater($repeater, $type) {
@@ -127,7 +111,7 @@ function alm_get_current_repeater($repeater, $type) {
127
  $template = $repeater;
128
  $include = '';
129
 
130
- // If is Custom Repeaters (Custom Repeaters v1)
131
  if( $type == 'repeater' && has_action('alm_repeater_installed' )){
132
  $include = ALM_REPEATER_PATH . 'repeaters/'. $template .'.php';
133
 
@@ -136,34 +120,44 @@ function alm_get_current_repeater($repeater, $type) {
136
  }
137
 
138
  }
139
- // If is Unlimited Repeaters (Custom Repeaters v2)
 
140
  elseif( $type == 'template_' && has_action('alm_unlimited_installed' )){
141
- global $wpdb;
142
- $blog_id = $wpdb->blogid;
143
-
144
- if($blog_id > 1){
145
- $include = ALM_UNLIMITED_PATH. 'repeaters/'. $blog_id .'/'.$template .'.php';
146
- }else{
147
- $include = ALM_UNLIMITED_PATH. 'repeaters/'.$template .'.php';
 
 
 
 
 
 
 
 
 
148
  }
149
 
150
  if(!file_exists($include)){ //confirm file exists
151
  $include = alm_get_default_repeater();
152
  }
153
  }
 
154
  // Default repeater
155
  else{
156
  $include = alm_get_default_repeater();
157
  }
158
 
159
  // Security check
160
- // check if $template contains relative path. So, set include to default
161
  if ( false !== strpos( $template, './' ) ) {
162
  $include = alm_get_default_repeater();
163
  }
164
 
165
  return $include;
166
-
167
  }
168
 
169
 
42
  if($counter == 1 && $progress_bar === 'true'){
43
  $style = '
44
  <style>
45
+ .pace { -webkit-pointer-events: none; pointer-events: none; -webkit-user-select: none; -moz-user-select: none; user-select: none; }
46
+ .pace-inactive { display: none; }
47
+ .pace .pace-progress { background: #'. $progress_bar_color .'; position: fixed; z-index: 2000; top: 0; right: 100%; width: 100%; height: 5px; -webkit-box-shadow: 0 0 3px rgba(255, 255, 255, 0.3); box-shadow: 0 0 2px rgba(255, 255, 255, 0.3); }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  </style>';
49
  return $style;
50
  }
98
  * alm_get_current_repeater
99
  * Get the current repeater template file
100
  *
101
+ * @param string $repeater current repater name
102
+ * @param string $type Type of template
103
+ *
104
  * @return $include (file path)
105
  * @since 2.5.0
106
+ * @updated 3.5.1
107
  */
108
 
109
  function alm_get_current_repeater($repeater, $type) {
111
  $template = $repeater;
112
  $include = '';
113
 
114
+ // Custom Repeaters v1
115
  if( $type == 'repeater' && has_action('alm_repeater_installed' )){
116
  $include = ALM_REPEATER_PATH . 'repeaters/'. $template .'.php';
117
 
120
  }
121
 
122
  }
123
+
124
+ // Custom Repeaters v2
125
  elseif( $type == 'template_' && has_action('alm_unlimited_installed' )){
126
+
127
+
128
+ // Custom Repeaters 2.5+
129
+ if(ALM_UNLIMITED_VERSION >= '2.5'){
130
+
131
+ // Get path to repeater (alm_templates)
132
+ $base_dir = AjaxLoadMore::alm_get_repeater_path();
133
+ $include = $base_dir .'/'. $template .'.php';
134
+
135
+ } else {
136
+
137
+ global $wpdb;
138
+ $blog_id = $wpdb->blogid;
139
+
140
+ $include = ($blog_id > 1) ? ALM_UNLIMITED_PATH. 'repeaters/'. $blog_id .'/'. $template .'.php' : ALM_UNLIMITED_PATH. 'repeaters/'. $template .'.php';
141
+
142
  }
143
 
144
  if(!file_exists($include)){ //confirm file exists
145
  $include = alm_get_default_repeater();
146
  }
147
  }
148
+
149
  // Default repeater
150
  else{
151
  $include = alm_get_default_repeater();
152
  }
153
 
154
  // Security check
155
+ // Confirm $template does NOT contains relative path
156
  if ( false !== strpos( $template, './' ) ) {
157
  $include = alm_get_default_repeater();
158
  }
159
 
160
  return $include;
 
161
  }
162
 
163
 
core/src/js/ajax-load-more.js CHANGED
@@ -380,6 +380,7 @@
380
  if(alm.transition === 'masonry'){
381
  alm.masonry_init = true;
382
  alm.masonry_selector = alm.content.attr('data-masonry-selector');
 
383
  alm.masonry_animation = alm.content.attr('data-masonry-animation');
384
  alm.masonry_horizontalorder = alm.content.attr('data-masonry-horizontalorder');
385
  if (alm.masonry_animation === undefined){
@@ -832,7 +833,7 @@
832
  // Is pagination
833
  if (total > 0) {
834
  alm.el = $('<div class="alm-reveal'+alm.tcc+'" '+ loadingStyle +'/>');
835
- alm.el.append('<div class="alm-paging-content"></div><div class="alm-paging-loading"></div>');
836
  $('.alm-paging-content', alm.el).append(alm.data);
837
  alm.content.append(alm.el);
838
  alm.AjaxLoadMore.fadeIn(alm.el.get(0), alm.speed);
@@ -1025,7 +1026,7 @@
1025
 
1026
  // Masonry
1027
  if(alm.transition === 'masonry') {
1028
- almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector, alm.masonry_animation, alm.masonry_horizontalorder, alm.speed, alm.masonry_init, alm.init, alm_is_filtering);
1029
  alm.masonry_init = false;
1030
  alm.AjaxLoadMore.transitionEnd();
1031
 
@@ -1040,11 +1041,15 @@
1040
  else {
1041
  if(alm.images_loaded === 'true'){
1042
  alm.el.almWaitForImages().done(function(){
1043
- alm.AjaxLoadMore.fadeIn(alm.el.get(0), alm.speed);
 
 
1044
  alm.AjaxLoadMore.transitionEnd();
1045
  });
1046
  }else{
1047
- alm.AjaxLoadMore.fadeIn(alm.el.get(0), alm.speed);
 
 
1048
  alm.AjaxLoadMore.transitionEnd();
1049
  }
1050
  }
@@ -1590,7 +1595,7 @@
1590
  // Masonry + Preloaded
1591
  alm.window.bind('load', function(){
1592
  if(alm.is_masonry_preloaded){
1593
- almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector, alm.masonry_animation, alm.masonry_horizontalorder, alm.speed, alm.masonry_init, true, false);
1594
  alm.masonry_init = false;
1595
  }
1596
  });
380
  if(alm.transition === 'masonry'){
381
  alm.masonry_init = true;
382
  alm.masonry_selector = alm.content.attr('data-masonry-selector');
383
+ alm.masonry_columnwidth = alm.content.attr('data-masonry-columnwidth');
384
  alm.masonry_animation = alm.content.attr('data-masonry-animation');
385
  alm.masonry_horizontalorder = alm.content.attr('data-masonry-horizontalorder');
386
  if (alm.masonry_animation === undefined){
833
  // Is pagination
834
  if (total > 0) {
835
  alm.el = $('<div class="alm-reveal'+alm.tcc+'" '+ loadingStyle +'/>');
836
+ alm.el.append('<div class="alm-paging-content'+alm.tcc+'"></div><div class="alm-paging-loading"></div>');
837
  $('.alm-paging-content', alm.el).append(alm.data);
838
  alm.content.append(alm.el);
839
  alm.AjaxLoadMore.fadeIn(alm.el.get(0), alm.speed);
1026
 
1027
  // Masonry
1028
  if(alm.transition === 'masonry') {
1029
+ almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector, alm.masonry_columnwidth, alm.masonry_animation, alm.masonry_horizontalorder, alm.speed, alm.masonry_init, alm.init, alm_is_filtering);
1030
  alm.masonry_init = false;
1031
  alm.AjaxLoadMore.transitionEnd();
1032
 
1041
  else {
1042
  if(alm.images_loaded === 'true'){
1043
  alm.el.almWaitForImages().done(function(){
1044
+ if(alm.transition_container){
1045
+ alm.AjaxLoadMore.fadeIn(alm.el.get(0), alm.speed);
1046
+ }
1047
  alm.AjaxLoadMore.transitionEnd();
1048
  });
1049
  }else{
1050
+ if(alm.transition_container){
1051
+ alm.AjaxLoadMore.fadeIn(alm.el.get(0), alm.speed);
1052
+ }
1053
  alm.AjaxLoadMore.transitionEnd();
1054
  }
1055
  }
1595
  // Masonry + Preloaded
1596
  alm.window.bind('load', function(){
1597
  if(alm.is_masonry_preloaded){
1598
+ almMasonry(alm.masonry_wrap, alm.el, alm.masonry_selector, alm.masonry_columnwidth, alm.masonry_animation, alm.masonry_horizontalorder, alm.speed, alm.masonry_init, true, false);
1599
  alm.masonry_init = false;
1600
  }
1601
  });
core/src/js/modules/masonry.js CHANGED
@@ -6,6 +6,7 @@
6
  @param container object
7
  @param items object
8
  @param selector string
 
9
  @param animation string
10
  @param speed int
11
  @param masonry_init boolean
@@ -16,7 +17,7 @@
16
  */
17
 
18
 
19
- let almMasonry = (container, items, selector, animation, horizontalOrder, speed, masonry_init, init, filtering) => {
20
 
21
  let duration = (speed+100)/1000 +'s'; // Add 100 for some delay
22
  let hidden = 'scale(0.5)';
@@ -35,13 +36,23 @@ let almMasonry = (container, items, selector, animation, horizontalOrder, speed,
35
  if(animation === 'slide-down'){
36
  hidden = 'translateY(-50px)';
37
  visible = 'translateY(0)';
38
- }
39
 
40
  if(animation === 'none'){
41
- hidden = 'translateY(0)';
42
  visible = 'translateY(0)';
43
  }
44
 
 
 
 
 
 
 
 
 
 
 
45
  horizontalOrder = (horizontalOrder === 'true') ? true : false;
46
 
47
  if(!filtering){
@@ -52,7 +63,7 @@ let almMasonry = (container, items, selector, animation, horizontalOrder, speed,
52
  container.masonry({
53
  itemSelector: selector,
54
  transitionDuration: duration,
55
- columnWidth: selector,
56
  horizontalOrder: horizontalOrder,
57
  hiddenStyle: {
58
  transform: hidden,
@@ -69,9 +80,7 @@ let almMasonry = (container, items, selector, animation, horizontalOrder, speed,
69
 
70
  // Standard
71
  else{
72
- //container.append( items ); // Append new items
73
  items.imagesLoaded( () => {
74
- //items.show();
75
  container.append(items).masonry( 'appended', items );
76
  });
77
  }
6
  @param container object
7
  @param items object
8
  @param selector string
9
+ @param columnWidth string
10
  @param animation string
11
  @param speed int
12
  @param masonry_init boolean
17
  */
18
 
19
 
20
+ let almMasonry = (container, items, selector, columnWidth, animation, horizontalOrder, speed, masonry_init, init, filtering) => {
21
 
22
  let duration = (speed+100)/1000 +'s'; // Add 100 for some delay
23
  let hidden = 'scale(0.5)';
36
  if(animation === 'slide-down'){
37
  hidden = 'translateY(-50px)';
38
  visible = 'translateY(0)';
39
+ }
40
 
41
  if(animation === 'none'){
42
+ hidden = 'translateY(0)';
43
  visible = 'translateY(0)';
44
  }
45
 
46
+ // Set default columnWidth
47
+ if(columnWidth){
48
+ if(!isNaN(columnWidth)){// Check if number
49
+ columnWidth = parseInt(columnWidth);
50
+ }
51
+ } else { // No columnWidth, use the selector
52
+ columnWidth = selector;
53
+ }
54
+
55
+ // Set horizontalOrder
56
  horizontalOrder = (horizontalOrder === 'true') ? true : false;
57
 
58
  if(!filtering){
63
  container.masonry({
64
  itemSelector: selector,
65
  transitionDuration: duration,
66
+ columnWidth: columnWidth,
67
  horizontalOrder: horizontalOrder,
68
  hiddenStyle: {
69
  transform: hidden,
80
 
81
  // Standard
82
  else{
 
83
  items.imagesLoaded( () => {
 
84
  container.append(items).masonry( 'appended', items );
85
  });
86
  }
lang/ajax-load-more.pot CHANGED
@@ -2,418 +2,416 @@
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Ajax Load More\n"
5
- "POT-Creation-Date: 2018-04-17 19:26-0400\n"
6
- "PO-Revision-Date: 2017-10-05 16:14-0500\n"
7
  "Last-Translator: Darren Cooney <darren@connekthq.com>\n"
8
  "Language-Team: \n"
9
  "Language: en_CA\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.6\n"
14
- "X-Poedit-Basepath: .\n"
15
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
  "X-Poedit-KeywordsList: __;_e\n"
17
- "X-Poedit-SearchPath-0: ..\n"
 
 
18
 
19
- #: ../admin/admin-functions.php:32 ../admin/admin.php:443
20
- #: ../admin/admin.php:444 ../admin/shortcode-builder/components/cache.php:3
21
- #: ../admin/views/settings.php:60
22
  msgid "Cache"
23
  msgstr ""
24
 
25
- #: ../admin/admin-functions.php:33
26
  msgid "Improve performance with the Ajax Load More caching engine."
27
  msgstr ""
28
 
29
- #: ../admin/admin-functions.php:34
30
  msgid ""
31
  "The Cache add-on creates static HTML files of Ajax Load More requests then "
32
  "delivers those static files to your visitors."
33
  msgstr ""
34
 
35
- #: ../admin/admin-functions.php:44
36
- #: ../admin/shortcode-builder/components/cta.php:3
37
  msgid "Call to Actions"
38
  msgstr ""
39
 
40
- #: ../admin/admin-functions.php:45
41
  msgid ""
42
  "Ajax Load More extension for displaying advertisements and call to actions."
43
  msgstr ""
44
 
45
- #: ../admin/admin-functions.php:46
46
  msgid ""
47
  "The Call to Actions add-on will provide the ability to inject a custom CTA "
48
  "template within each Ajax Load More loop."
49
  msgstr ""
50
 
51
- #: ../admin/admin-functions.php:56
52
- #: ../admin/shortcode-builder/components/comments.php:3
53
  msgid "Comments"
54
  msgstr ""
55
 
56
- #: ../admin/admin-functions.php:57
57
  msgid "Load blog comments on demand with Ajax Load More."
58
  msgstr ""
59
 
60
- #: ../admin/admin-functions.php:58
61
  msgid ""
62
  "The Comments add-on will display your blog comments with Ajax Load More's "
63
  "infinite scroll functionality."
64
  msgstr ""
65
 
66
- #: ../admin/admin-functions.php:68
67
  msgid "Custom Repeaters"
68
  msgstr ""
69
 
70
- #: ../admin/admin-functions.php:69
71
  msgid "Extend Ajax Load More with unlimited repeater templates."
72
  msgstr ""
73
 
74
- #: ../admin/admin-functions.php:70
75
  msgid ""
76
  "Create, delete and modify repeater templates as you need them with "
77
  "absolutely zero restrictions."
78
  msgstr ""
79
 
80
- #: ../admin/admin-functions.php:80 ../admin/admin.php:462
81
- #: ../admin/admin.php:463 ../admin/shortcode-builder/components/filters.php:3
82
- #: ../admin/views/settings.php:62
83
  msgid "Filters"
84
  msgstr ""
85
 
86
- #: ../admin/admin-functions.php:81
87
  msgid "Create custom Ajax Load More filters in seconds."
88
  msgstr ""
89
 
90
- #: ../admin/admin-functions.php:82
91
  msgid ""
92
  "The Filters add-on provides front-end and admin functionality for building "
93
  "and managing Ajax filters."
94
  msgstr ""
95
 
96
- #: ../admin/admin-functions.php:92 ../admin/views/settings.php:64
 
97
  msgid "Layouts"
98
  msgstr ""
99
 
100
- #: ../admin/admin-functions.php:93
101
  msgid "Predefined layouts for repeater templates."
102
  msgstr ""
103
 
104
- #: ../admin/admin-functions.php:94
105
  msgid ""
106
  "The Layouts add-on provides a collection of unique, well designed and fully "
107
  "responsive templates."
108
  msgstr ""
109
 
110
- #: ../admin/admin-functions.php:104
111
- #: ../admin/shortcode-builder/components/nextpage.php:3
112
  msgid "Next Page"
113
  msgstr ""
114
 
115
- #: ../admin/admin-functions.php:105
116
  msgid "Load and display multipage WordPress content."
117
  msgstr ""
118
 
119
- #: ../admin/admin-functions.php:106
120
  msgid ""
121
  "The Next Page add-on will provide functionality for infinite scrolling "
122
  "paginated posts and pages."
123
  msgstr ""
124
 
125
- #: ../admin/admin-functions.php:116
126
- #: ../admin/shortcode-builder/components/paging.php:3
127
- #: ../admin/views/settings.php:66
128
  msgid "Paging"
129
  msgstr ""
130
 
131
- #: ../admin/admin-functions.php:117
132
  msgid "Extend Ajax Load More with a numbered navigation."
133
  msgstr ""
134
 
135
- #: ../admin/admin-functions.php:118
136
  msgid ""
137
  "The Paging add-on will transform the default infinite scroll functionality "
138
  "into a robust ajax powered navigation system."
139
  msgstr ""
140
 
141
- #: ../admin/admin-functions.php:128
142
- #: ../admin/shortcode-builder/components/preloaded.php:3
143
  msgid "Preloaded"
144
  msgstr ""
145
 
146
- #: ../admin/admin-functions.php:129
147
  msgid "Load an initial set of posts before making Ajax requests to the server."
148
  msgstr ""
149
 
150
- #: ../admin/admin-functions.php:130
151
  msgid ""
152
  "The Preloaded add-on will display content quicker and allow caching of the "
153
  "initial query which can reduce stress on your server."
154
  msgstr ""
155
 
156
- #: ../admin/admin-functions.php:140
157
- #: ../admin/shortcode-builder/components/previous-post.php:3
158
- #: ../admin/views/settings.php:68
159
  msgid "Previous Post"
160
  msgstr ""
161
 
162
- #: ../admin/admin-functions.php:141
163
  msgid "An add-on to enable infinite scrolling of single posts."
164
  msgstr ""
165
 
166
- #: ../admin/admin-functions.php:142
167
  msgid ""
168
  "The Previous Post add-on will load single posts as you scroll and update the "
169
  "browser URL to the current post."
170
  msgstr ""
171
 
172
- #: ../admin/admin-functions.php:152
173
  msgid "Search Engine Optimization"
174
  msgstr ""
175
 
176
- #: ../admin/admin-functions.php:153
177
  msgid "Generate unique paging URLs with every Ajax Load More query."
178
  msgstr ""
179
 
180
- #: ../admin/admin-functions.php:154
181
  msgid ""
182
  "The SEO add-on will optimize your ajax loaded content for search engines by "
183
  "generating unique URLs with every query."
184
  msgstr ""
185
 
186
- #: ../admin/admin-functions.php:164 ../admin/views/repeater-templates.php:31
187
- #: ../admin/views/settings.php:74
188
  msgid "Theme Repeaters"
189
  msgstr ""
190
 
191
- #: ../admin/admin-functions.php:165
192
  msgid "Manage repeater templates within your current theme directory."
193
  msgstr ""
194
 
195
- #: ../admin/admin-functions.php:166
196
  msgid ""
197
  "The Theme Repeater add-on will allow you load, edit and maintain templates "
198
  "from your current theme directory."
199
  msgstr ""
200
 
201
- #: ../admin/admin-functions.php:176
202
- #: ../admin/shortcode-builder/components/users.php:3
203
  msgid "Users"
204
  msgstr ""
205
 
206
- #: ../admin/admin-functions.php:177
207
  msgid "Enable infinite scrolling of WordPress users."
208
  msgstr ""
209
 
210
- #: ../admin/admin-functions.php:178
211
  msgid ""
212
  "The Users add-on will allow lazy loading of users by role using a "
213
  "WP_User_Query."
214
  msgstr ""
215
 
216
- #: ../admin/admin.php:47
217
  msgid ""
218
  "You have invalid <a href=\"admin.php?page=ajax-load-more\"><b>Ajax Load "
219
  "More</b></a> license keys - please visit the <a href=\"admin.php?page=ajax-"
220
  "load-more-licenses\">Licenses</a> section and input your license keys."
221
  msgstr ""
222
 
223
- #: ../admin/admin.php:125 ../admin/admin.php:185 ../admin/admin.php:799
224
- #: ../admin/admin.php:844 ../admin/admin.php:894
225
  msgid "You don't belong here."
226
  msgstr ""
227
 
228
- #: ../admin/admin.php:214
229
  msgid "Ajax Load More"
230
  msgstr ""
231
 
232
- #: ../admin/admin.php:215 ../admin/editor/editor-build.php:69
233
- #: ../admin/views/licenses.php:64
234
  msgid "Active"
235
  msgstr ""
236
 
237
- #: ../admin/admin.php:216 ../admin/editor/editor-build.php:70
238
- #: ../admin/views/licenses.php:68
239
  msgid "Inactive"
240
  msgstr ""
241
 
242
- #: ../admin/admin.php:217 ../admin/editor/editor-build.php:71
243
  msgid "Applying layout"
244
  msgstr ""
245
 
246
- #: ../admin/admin.php:218 ../admin/editor/editor-build.php:72
247
- #: ../admin/views/repeater-templates.php:376
248
  msgid "Template Updated"
249
  msgstr ""
250
 
251
- #: ../admin/admin.php:220 ../admin/editor/editor-build.php:74
252
  msgid "Select Author(s)"
253
  msgstr ""
254
 
255
- #: ../admin/admin.php:221 ../admin/editor/editor-build.php:75
256
  msgid "Select Categories"
257
  msgstr ""
258
 
259
- #: ../admin/admin.php:222 ../admin/editor/editor-build.php:76
260
  msgid "Select Tags"
261
  msgstr ""
262
 
263
- #: ../admin/admin.php:223 ../admin/editor/editor-build.php:41
264
- #: ../admin/editor/editor-build.php:77
265
  msgid "Jump to Option"
266
  msgstr ""
267
 
268
- #: ../admin/admin.php:224 ../admin/editor/editor-build.php:78
269
  msgid "Jump to Template"
270
  msgstr ""
271
 
272
- #: ../admin/admin.php:225
273
  msgid "Are you sure you want to install this Ajax Load More extension?"
274
  msgstr ""
275
 
276
- #: ../admin/admin.php:226
277
- #: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:51
278
- #: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:379
279
  msgid "Install Now"
280
  msgstr ""
281
 
282
- #: ../admin/admin.php:227
283
- #: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:90
284
- #: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:380
285
  msgid "Activate"
286
  msgstr ""
287
 
288
- #: ../admin/admin.php:228
289
  msgid "Saving Settings"
290
  msgstr ""
291
 
292
- #: ../admin/admin.php:229
293
  msgid "Settings Saved Successfully"
294
  msgstr ""
295
 
296
- #: ../admin/admin.php:230
297
  msgid "Error Saving Settings"
298
  msgstr ""
299
 
300
- #: ../admin/admin.php:330
301
  msgid ""
302
  "[Ajax Load More] Error opening default repeater template - Please check your "
303
  "file path and ensure your server is configured to allow Ajax Load More to "
304
  "read and write files within the /ajax-load-more/core/repeater directory"
305
  msgstr ""
306
 
307
- #: ../admin/admin.php:334
308
  msgid ""
309
  "[Ajax Load More] Error updating default repeater template - Please check "
310
  "your file path and ensure your server is configured to allow Ajax Load More "
311
  "to read and write files within the /ajax-load-more/core/repeater directory."
312
  msgstr ""
313
 
314
- #: ../admin/admin.php:756
315
  msgid "[Ajax Load More] Unable to open repeater template - "
316
  msgstr ""
317
 
318
- #: ../admin/admin.php:760
319
  msgid "[Ajax Load More] Error saving repeater template - "
320
  msgstr ""
321
 
322
- #: ../admin/admin.php:791
323
  msgid "Template Saved Successfully"
324
  msgstr ""
325
 
326
- #: ../admin/admin.php:793
327
  msgid "Error Writing File"
328
  msgstr ""
329
 
330
- #: ../admin/admin.php:793 ../admin/views/repeater-templates.php:317
331
  msgid "Something went wrong and the data could not be saved."
332
  msgstr ""
333
 
334
- #: ../admin/admin.php:998 ../admin/shortcode-builder/shortcode-builder.php:113
335
  msgid "Container Type"
336
  msgstr ""
337
 
338
- #: ../admin/admin.php:1006 ../admin/shortcode-builder/shortcode-builder.php:144
339
  msgid "Container Classes"
340
  msgstr ""
341
 
342
- #: ../admin/admin.php:1014
343
  msgid "Disable CSS"
344
  msgstr ""
345
 
346
- #: ../admin/admin.php:1022
347
  msgid "Button/Loading Style"
348
  msgstr ""
349
 
350
- #: ../admin/admin.php:1030
351
  msgid "Button Classes"
352
  msgstr ""
353
 
354
- #: ../admin/admin.php:1038
355
  msgid "Load CSS Inline"
356
  msgstr ""
357
 
358
- #: ../admin/admin.php:1046
359
  msgid "Top of Page"
360
  msgstr ""
361
 
362
- #: ../admin/admin.php:1054
363
  msgid "Dynamic Content"
364
  msgstr ""
365
 
366
- #: ../admin/admin.php:1062
367
  msgid "Editor Button"
368
  msgstr ""
369
 
370
- #: ../admin/admin.php:1070
371
  msgid "Error Notices"
372
  msgstr ""
373
 
374
- #: ../admin/admin.php:1147
375
  msgid ""
376
  "Customize the user experience of Ajax Load More by updating the fields below."