WordPress Infinite Scroll – Ajax Load More - Version 2.13.1

Version Description

  • December 5, 2016 =

  • NEW - Adding support for multiple instances of filtering.

  • NEW - Adding caching support for initial requests if page > 1. e.g. /page/10/ will now be cached and served to visitors as page-1-10.html

  • NEW - Added new filter for creating and listing custom layouts within repeater template admin (docs coming soon).

  • Update - Adding Post Type 'any' to shortcode builder.

  • Update - Updating max_pages parameter to be '0' as the plugin default.

  • Update - Various UI updates and enhancements.

  • FIX - Updated post_status parameter to support inherit for attachments.

  • FIX - Undefined variables in Shortcode Builder pop up.

  • FIX - Shortcode Builder UI and copy updates.

  • FIX - JS error on Examples page within plugin.

  • FIX - JS errors on with ALM Cache admin page.

  • FIX - Support for preserving querystring parameters in Previous Post add-on.

Download this release

Release Info

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

Code changes from version 2.13.0.1 to 2.13.1

README.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: dcooney
3
  Donate link: https://connekthq.com/donate/
4
  Tags: infinite scroll, infinite scrolling, scroll, infinite, lazy load, lazy loading, pagination, ajax pagination, ajax, ajax posts, ajax load posts, search, tags, category, post types, taxonomy, meta_query, woocommerce
5
  Requires at least: 3.6
6
- Tested up to: 4.7
7
- Stable tag: 2.13.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -82,7 +82,7 @@ Ajax Load More accepts a number of parameters that are passed to the WordPress q
82
  * **posts_per_page** - Number of posts to load with each Ajax request. Default = ’5′
83
  * **scroll** - Load more posts as the user scrolls the page (true/false). Default = ‘true’
84
  * **scroll_distance** - The distance from the bottom of the screen to trigger the loading of posts while scrolling. Default = '150'
85
- * **max_pages** - Maximum number of pages to load while user is scrolling (activated on when scroll = true). Default = '5'
86
  * **pause_override** - Allow scrolling to override the Pause parameter and trigger the loading of posts on scroll. Default = null
87
  * **pause** - Do not load posts until user clicks the Load More button (true/false). Default = 'false'
88
  * **transition** - Choose a posts reveal transition (slide/fade/none). Default = 'slide'
@@ -329,6 +329,24 @@ How to install Ajax Load More.
329
 
330
  == Changelog ==
331
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
332
  = 2.13.0.1 - November 10, 2016 =
333
 
334
  * FIX - almEmpty() callback function not firing because of updated return value of empty query.
3
  Donate link: https://connekthq.com/donate/
4
  Tags: infinite scroll, infinite scrolling, scroll, infinite, lazy load, lazy loading, pagination, ajax pagination, ajax, ajax posts, ajax load posts, search, tags, category, post types, taxonomy, meta_query, woocommerce
5
  Requires at least: 3.6
6
+ Tested up to: 4.7.1
7
+ Stable tag: 2.13.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
82
  * **posts_per_page** - Number of posts to load with each Ajax request. Default = ’5′
83
  * **scroll** - Load more posts as the user scrolls the page (true/false). Default = ‘true’
84
  * **scroll_distance** - The distance from the bottom of the screen to trigger the loading of posts while scrolling. Default = '150'
85
+ * **max_pages** - Maximum number of pages to load while user is scrolling (activated on when scroll = true). Default = '0'
86
  * **pause_override** - Allow scrolling to override the Pause parameter and trigger the loading of posts on scroll. Default = null
87
  * **pause** - Do not load posts until user clicks the Load More button (true/false). Default = 'false'
88
  * **transition** - Choose a posts reveal transition (slide/fade/none). Default = 'slide'
329
 
330
  == Changelog ==
331
 
332
+
333
+ = 2.13.1 - December 5, 2016 =
334
+
335
+ * NEW - Adding support for multiple instances of filtering.
336
+ * NEW - Adding caching support for initial requests if page > 1. e.g. /page/10/ will now be cached and served to visitors as page-1-10.html
337
+ * NEW - Added new filter for creating and listing custom layouts within repeater template admin (docs coming soon).
338
+ * Update - Adding Post Type 'any' to shortcode builder.
339
+ * Update - Updating max_pages parameter to be '0' as the plugin default.
340
+ * Update - Various UI updates and enhancements.
341
+ * FIX - Updated post_status parameter to support inherit for attachments.
342
+ * FIX - Undefined variables in Shortcode Builder pop up.
343
+ * FIX - Shortcode Builder UI and copy updates.
344
+ * FIX - JS error on Examples page within plugin.
345
+ * FIX - JS errors on with ALM Cache admin page.
346
+ * FIX - Support for preserving querystring parameters in Previous Post add-on.
347
+
348
+
349
+
350
  = 2.13.0.1 - November 10, 2016 =
351
 
352
  * FIX - almEmpty() callback function not firing because of updated return value of empty query.
admin/admin.php CHANGED
@@ -8,7 +8,7 @@ add_action( 'wp_ajax_alm_delete_cache', 'alm_delete_cache' ); // Delete Cache
8
  add_action( 'wp_ajax_alm_layouts_dismiss', 'alm_layouts_dismiss' ); // Dismiss Layouts CTA
9
  add_action( 'wp_ajax_alm_license_activation', 'alm_license_activation' ); // Activate Add-on
10
  add_action( 'alm_get_layouts', 'alm_get_layouts' ); // Add layout selection
11
- add_action( 'wp_ajax_alm_layouts_get', 'alm_layouts_get' ); // Get layout
12
  add_action( 'wp_ajax_alm_dismiss_sharing', 'alm_dismiss_sharing' ); // Dismiss sharing
13
  add_filter( 'admin_footer_text', 'alm_filter_admin_footer_text'); // Admin menu text
14
 
@@ -98,26 +98,54 @@ function alm_license_activation(){
98
 
99
 
100
  /*
101
- * alm_layouts_get
102
  * Get layout and return value to repeater template
103
  *
104
  * @since 2.8.3
 
105
  */
106
 
107
- function alm_layouts_get(){
108
  if (current_user_can( 'edit_theme_options' )){
109
 
110
- $nonce = $_GET["nonce"];
111
- $type = $_GET["type"];
 
 
112
  // Check our nonce, if they don't match then bounce!
113
  if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' ))
114
  die('Error - unable to verify nonce, please try again.');
115
 
116
  if($type === 'default'){
 
 
117
  $content = file_get_contents(ALM_PATH.'admin/includes/layout/'.$type.'.php');
 
118
  }else{
119
- $content = file_get_contents(ALM_LAYOUTS_PATH.'layouts/'.$type.'.php');
120
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121
 
122
  $return["value"] = $content;
123
  echo json_encode($return);
@@ -389,6 +417,7 @@ function alm_admin_menu() {
389
  );
390
  add_action( 'load-' . $alm_cache_page, 'alm_load_admin_js' );
391
  add_action( 'load-' . $alm_cache_page, 'alm_load_cache_admin_js' );
 
392
  }
393
 
394
  //Add our admin scripts
@@ -399,6 +428,7 @@ function alm_admin_menu() {
399
  add_action( 'load-' . $alm_shortcode_page, 'alm_load_admin_js' );
400
  add_action( 'load-' . $alm_shortcode_page, 'alm_set_admin_nonce' );
401
  add_action( 'load-' . $alm_examples_page, 'alm_load_admin_js' );
 
402
  add_action( 'load-' . $alm_help_page, 'alm_load_admin_js' );
403
  add_action( 'load-' . $alm_addons_page, 'alm_load_admin_js' );
404
  add_action( 'load-' . $alm_licenses_page, 'alm_load_admin_js' );
@@ -847,7 +877,7 @@ function alm_filter_admin_footer_text( $text ) {
847
  return;
848
  }
849
 
850
- echo 'Ajax Load More is made with <span style="color: #e25555;">♥</span> by <a href="https://connekthq.com" target="_blank" style="font-weight: 500;">Connekt</a> | <a href="https://wordpress.org/support/plugin/ajax-load-more/reviews/" target="_blank" style="font-weight: 500;">Leave a Review</a> | <a href="https://connekthq.com/plugins/ajax-load-more/support/" target="_blank" style="font-weight: 500;">Get Support</a>';
851
  }
852
 
853
 
8
  add_action( 'wp_ajax_alm_layouts_dismiss', 'alm_layouts_dismiss' ); // Dismiss Layouts CTA
9
  add_action( 'wp_ajax_alm_license_activation', 'alm_license_activation' ); // Activate Add-on
10
  add_action( 'alm_get_layouts', 'alm_get_layouts' ); // Add layout selection
11
+ add_action( 'wp_ajax_alm_get_layout', 'alm_get_layout' ); // Get layout
12
  add_action( 'wp_ajax_alm_dismiss_sharing', 'alm_dismiss_sharing' ); // Dismiss sharing
13
  add_filter( 'admin_footer_text', 'alm_filter_admin_footer_text'); // Admin menu text
14
 
98
 
99
 
100
  /*
101
+ * alm_get_layout
102
  * Get layout and return value to repeater template
103
  *
104
  * @since 2.8.3
105
+ * @updated 2.14.0
106
  */
107
 
108
+ function alm_get_layout(){
109
  if (current_user_can( 'edit_theme_options' )){
110
 
111
+ $nonce = sanitize_text_field($_GET["nonce"]);
112
+ $type = sanitize_text_field($_GET["type"]);
113
+ $custom = sanitize_text_field($_GET["custom"]);
114
+
115
  // Check our nonce, if they don't match then bounce!
116
  if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' ))
117
  die('Error - unable to verify nonce, please try again.');
118
 
119
  if($type === 'default'){
120
+
121
+ // Default Layout
122
  $content = file_get_contents(ALM_PATH.'admin/includes/layout/'.$type.'.php');
123
+
124
  }else{
125
+
126
+ // Custom Layout
127
+ if($custom == 'true'){
128
+ $dir = 'alm_layouts';
129
+
130
+ if(is_child_theme()){
131
+ $path = get_stylesheet_directory().'/'. $dir .'/' .$type;
132
+ // if child theme does not have the layout, check the parent theme
133
+ if(!file_exists($path)){
134
+ $path = get_template_directory().'/'. $dir .'/' .$type;
135
+ }
136
+ }
137
+ else{
138
+ $path = get_template_directory().'/'. $dir .'/' .$type;
139
+ }
140
+ $content = file_get_contents($path);
141
+
142
+ }
143
+
144
+ // Layouts Add-on
145
+ else {
146
+ $content = file_get_contents(ALM_LAYOUTS_PATH.'layouts/'.$type.'.php');
147
+ }
148
+ }
149
 
150
  $return["value"] = $content;
151
  echo json_encode($return);
417
  );
418
  add_action( 'load-' . $alm_cache_page, 'alm_load_admin_js' );
419
  add_action( 'load-' . $alm_cache_page, 'alm_load_cache_admin_js' );
420
+ add_action( 'load-' . $alm_cache_page, 'alm_set_admin_nonce' );
421
  }
422
 
423
  //Add our admin scripts
428
  add_action( 'load-' . $alm_shortcode_page, 'alm_load_admin_js' );
429
  add_action( 'load-' . $alm_shortcode_page, 'alm_set_admin_nonce' );
430
  add_action( 'load-' . $alm_examples_page, 'alm_load_admin_js' );
431
+ add_action( 'load-' . $alm_examples_page, 'alm_set_admin_nonce' );
432
  add_action( 'load-' . $alm_help_page, 'alm_load_admin_js' );
433
  add_action( 'load-' . $alm_addons_page, 'alm_load_admin_js' );
434
  add_action( 'load-' . $alm_licenses_page, 'alm_load_admin_js' );
877
  return;
878
  }
879
 
880
+ echo '<strong>Ajax Load More</strong> is made with <span style="color: #e25555;">♥</span> by <a href="https://connekthq.com" target="_blank" style="font-weight: 500;">Connekt</a> | <a href="https://wordpress.org/support/plugin/ajax-load-more/reviews/" target="_blank" style="font-weight: 500;">Leave a Review</a> | <a href="https://connekthq.com/plugins/ajax-load-more/support/" target="_blank" style="font-weight: 500;">Get Support</a>';
881
  }
882
 
883
 
admin/css/admin.css CHANGED
@@ -75,6 +75,11 @@
75
  * @since 1.0
76
  */
77
 
 
 
 
 
 
78
  .forceColors{
79
  background: #fff !important;
80
  }
@@ -97,12 +102,6 @@
97
  box-shadow: none;
98
  }
99
 
100
- .ajax-load-more *{
101
- -webkit-box-sizing: border-box;
102
- -moz-box-sizing: border-box;
103
- box-sizing: border-box;
104
- }
105
-
106
  .ajax-load-more img{
107
  max-width: 100%;
108
  }
@@ -610,7 +609,7 @@ a.layout-hover{
610
  }
611
  .ajax-load-more input[type=text],
612
  .ajax-load-more input[type=number]{
613
- padding: 10px;
614
  line-height: 1.3;
615
  border: 1px solid #e7e7e7;
616
  width: 60%;
@@ -874,7 +873,7 @@ a.layout-hover{
874
  .ajax-load-more label.template-title{
875
  padding: 10px 0;
876
  margin: 0;
877
- font-size: 14px;
878
  color: #888;
879
  }
880
 
@@ -1212,25 +1211,25 @@ a.layout-hover{
1212
  }
1213
 
1214
  .header-wrap{
1215
- background: url(../img/alm-logo-48x48.png) no-repeat left 12px;
1216
- background: url(../img/alm-logo-48x48.svg) no-repeat left 12px;
1217
- padding-left: 60px;
1218
- min-height: 48px;
1219
  overflow: hidden;
1220
- padding-top: 11px;
1221
  }
1222
  .ajax-load-more .header-wrap h1{
1223
- padding-top: 0;
1224
- }
1225
- .ajax-load-more .header-wrap h1 em{
1226
- display: block;
1227
- position: relative;
1228
- margin-top: -4px;
1229
- font-size: 14px;
1230
- opacity: 0.7;
1231
- font-style: normal;
1232
- font-weight: 400;
1233
  }
 
 
 
 
 
 
 
 
 
1234
 
1235
  .ajax-load-more h1 span{
1236
  color: #999;
@@ -1264,7 +1263,8 @@ a.layout-hover{
1264
  border-bottom: 1px solid #efefef;
1265
  }
1266
  .ajax-load-more .cnkt-sidebar h3{
1267
- font-size: 17px;
 
1268
  }
1269
  .ajax-load-more h3{
1270
  margin-bottom: 10px;
@@ -1280,8 +1280,8 @@ a.layout-hover{
1280
  padding: 0 0 2px 28px;
1281
  }
1282
  .ajax-load-more p.desc{
1283
- opacity: 0.85;
1284
  font-size: 13px !important;
 
1285
  }
1286
  .ajax-load-more p.writeable-title{
1287
  position: relative;
@@ -1347,7 +1347,7 @@ p.loading{
1347
  }
1348
 
1349
  input.save-repeater{
1350
- margin-bottom: 10px !important;
1351
  }
1352
  .restore-default{
1353
  float: right;
@@ -1430,9 +1430,9 @@ table.highlight{
1430
  top: 0;
1431
  text-decoration: none;
1432
  width: 40px;
1433
- height: auto;
1434
- line-height: 1;
1435
- padding: 10px;
1436
  text-align: center;
1437
  background: #f7f7f7;
1438
  color: #777;
@@ -1973,26 +1973,36 @@ table.highlight{
1973
  padding: 0;
1974
  }
1975
  .ajax-load-more .cnkt-sidebar .project-listing li{
1976
- margin: 10px 0;
 
1977
  font-size: 13px;
1978
- min-height: 48px;
1979
- padding-left: 53px;
1980
  position: relative;
 
1981
  }
 
 
 
 
 
 
 
1982
  .ajax-load-more .cnkt-sidebar .project-listing li:first-of-type{
1983
- margin: 0;
1984
  }
1985
  .ajax-load-more .cnkt-sidebar .project-listing img {
1986
- height: 40px;
1987
  left: 0;
1988
  position: absolute;
1989
  top: 2px;
1990
- width: 40px;
1991
  }
1992
  .ajax-load-more .cnkt-sidebar .project-listing li strong{
1993
  font-size: 14px;
1994
  display: block;
1995
  }
 
 
 
1996
 
1997
 
1998
 
@@ -2288,8 +2298,8 @@ table.highlight{
2288
  }
2289
  .alm-cache-search-wrap i{
2290
  position: absolute;
2291
- right: 10px;
2292
- top:10px;
2293
  color: #ccc;
2294
  font-size: 20px;
2295
  z-index: 1;
@@ -2343,7 +2353,8 @@ table.highlight{
2343
  .alm-dir-listing .dir-title .delete{
2344
  position: absolute;
2345
  right:8px;
2346
- top:7px;
 
2347
  font-size: 14px;
2348
  text-decoration: none;
2349
  padding: 5px 10px;
@@ -2707,7 +2718,6 @@ p.cache-stats{
2707
  border-color: #e7e7e7;
2708
  color: #555;
2709
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2);
2710
- opacity: 0.8;
2711
  }
2712
  .alm-drop-btn.alm-layout-selection > a > i{
2713
  left: 12px;
75
  * @since 1.0
76
  */
77
 
78
+ .ajax-load-more *{
79
+ -webkit-box-sizing: border-box;
80
+ -moz-box-sizing: border-box;
81
+ box-sizing: border-box;
82
+ }
83
  .forceColors{
84
  background: #fff !important;
85
  }
102
  box-shadow: none;
103
  }
104
 
 
 
 
 
 
 
105
  .ajax-load-more img{
106
  max-width: 100%;
107
  }
609
  }
610
  .ajax-load-more input[type=text],
611
  .ajax-load-more input[type=number]{
612
+ padding: 14px;
613
  line-height: 1.3;
614
  border: 1px solid #e7e7e7;
615
  width: 60%;
873
  .ajax-load-more label.template-title{
874
  padding: 10px 0;
875
  margin: 0;
876
+ font-size: 13px;
877
  color: #888;
878
  }
879
 
1211
  }
1212
 
1213
  .header-wrap{
 
 
 
 
1214
  overflow: hidden;
1215
+ padding: 10px 0 3px;
1216
  }
1217
  .ajax-load-more .header-wrap h1{
1218
+ padding-left: 60px;
1219
+ min-height: 48px;
1220
+ padding-top: 0;
1221
+ background: url(../img/alm-logo-48x48.png) no-repeat left 0;
1222
+ background: url(../img/alm-logo-48x48.svg) no-repeat left 0;
 
 
 
 
 
1223
  }
1224
+ .ajax-load-more .header-wrap h1 em{
1225
+ display: block;
1226
+ position: relative;
1227
+ margin-top: -4px;
1228
+ font-size: 14px;
1229
+ opacity: 0.7;
1230
+ font-style: normal;
1231
+ font-weight: 400;
1232
+ }
1233
 
1234
  .ajax-load-more h1 span{
1235
  color: #999;
1263
  border-bottom: 1px solid #efefef;
1264
  }
1265
  .ajax-load-more .cnkt-sidebar h3{
1266
+ font-size: 15px;
1267
+ padding: 0 0 15px !important;
1268
  }
1269
  .ajax-load-more h3{
1270
  margin-bottom: 10px;
1280
  padding: 0 0 2px 28px;
1281
  }
1282
  .ajax-load-more p.desc{
 
1283
  font-size: 13px !important;
1284
+ line-height: 19px !important;
1285
  }
1286
  .ajax-load-more p.writeable-title{
1287
  position: relative;
1347
  }
1348
 
1349
  input.save-repeater{
1350
+ margin-bottom: 5px !important;
1351
  }
1352
  .restore-default{
1353
  float: right;
1430
  top: 0;
1431
  text-decoration: none;
1432
  width: 40px;
1433
+ height: 40px;
1434
+ line-height: 38px;
1435
+ padding: 0;
1436
  text-align: center;
1437
  background: #f7f7f7;
1438
  color: #777;
1973
  padding: 0;
1974
  }
1975
  .ajax-load-more .cnkt-sidebar .project-listing li{
1976
+ margin: 20px 0 0;
1977
+ padding: 0;
1978
  font-size: 13px;
 
 
1979
  position: relative;
1980
+ clear: both;
1981
  }
1982
+ .ajax-load-more .cnkt-sidebar .project-listing li a{
1983
+ display: block;
1984
+ position: static;
1985
+ padding-left: 50px;
1986
+ min-height: 48px;
1987
+ text-decoration: none;
1988
+ }
1989
  .ajax-load-more .cnkt-sidebar .project-listing li:first-of-type{
1990
+ margin-top: 0;
1991
  }
1992
  .ajax-load-more .cnkt-sidebar .project-listing img {
1993
+ height: 38px;
1994
  left: 0;
1995
  position: absolute;
1996
  top: 2px;
1997
+ width: 38px;
1998
  }
1999
  .ajax-load-more .cnkt-sidebar .project-listing li strong{
2000
  font-size: 14px;
2001
  display: block;
2002
  }
2003
+ .ajax-load-more .cnkt-sidebar .project-listing li span{
2004
+ color: #777;
2005
+ }
2006
 
2007
 
2008
 
2298
  }
2299
  .alm-cache-search-wrap i{
2300
  position: absolute;
2301
+ right: 14px;
2302
+ top: 14px;
2303
  color: #ccc;
2304
  font-size: 20px;
2305
  z-index: 1;
2353
  .alm-dir-listing .dir-title .delete{
2354
  position: absolute;
2355
  right:8px;
2356
+ top:11px;
2357
+ font-weight: 400;
2358
  font-size: 14px;
2359
  text-decoration: none;
2360
  padding: 5px 10px;
2718
  border-color: #e7e7e7;
2719
  color: #555;
2720
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2);
 
2721
  }
2722
  .alm-drop-btn.alm-layout-selection > a > i{
2723
  left: 12px;
admin/editor/editor-build.php CHANGED
@@ -65,17 +65,23 @@ tinyMCEPopup.onInit.add(AjaxLoadMoreModal.init, AjaxLoadMoreModal);
65
  <script type="text/javascript" src="<?php echo ALM_ADMIN_URL; ?>js/libs/select2.min.js"></script>
66
  <script type="text/javascript" src="<?php echo ALM_ADMIN_URL; ?>shortcode-builder/js/shortcode-builder.js"></script>
67
  <script type="text/javascript" src="<?php echo ALM_ADMIN_URL; ?>js/libs/jquery.tooltipster.min.js"></script>
68
- <script type='text/javascript'>
69
- /* <![CDATA[ */
70
- var alm_admin_localize = <?php echo json_encode( array(
71
  'ajax_admin_url' => admin_url( 'admin-ajax.php' ),
72
  'active' => __('Active', 'ajax-load-more'),
73
  'inactive' => __('Inactive', 'ajax-load-more'),
74
- 'alm_admin_nonce' => wp_create_nonce( 'alm_repeater_nonce' )
75
- )); ?>
76
- /* ]]> */
77
- </script>
78
-
 
 
 
 
 
 
79
  <script type="text/javascript" src="<?php echo ALM_ADMIN_URL; ?>js/libs/jquery.tooltipster.min.js"></script>
80
  <script type="text/javascript" src="<?php echo ALM_ADMIN_URL; ?>js/admin.js"></script>
81
  </body>
65
  <script type="text/javascript" src="<?php echo ALM_ADMIN_URL; ?>js/libs/select2.min.js"></script>
66
  <script type="text/javascript" src="<?php echo ALM_ADMIN_URL; ?>shortcode-builder/js/shortcode-builder.js"></script>
67
  <script type="text/javascript" src="<?php echo ALM_ADMIN_URL; ?>js/libs/jquery.tooltipster.min.js"></script>
68
+ <script type='text/javascript'>
69
+ /* <![CDATA[ */
70
+ var alm_admin_localize = <?php echo json_encode( array(
71
  'ajax_admin_url' => admin_url( 'admin-ajax.php' ),
72
  'active' => __('Active', 'ajax-load-more'),
73
  'inactive' => __('Inactive', 'ajax-load-more'),
74
+ 'applying_layout' => __('Applying layout', 'ajax-load-more'),
75
+ 'template_updated' => __('Template Updated', 'ajax-load-more'),
76
+ 'alm_admin_nonce' => wp_create_nonce( 'alm_repeater_nonce' ),
77
+ 'select_authors' => __('Select Author(s)', 'ajax-load-more'),
78
+ 'select_cats' => __('Select Categories', 'ajax-load-more'),
79
+ 'select_tags' => __('Select Tags', 'ajax-load-more'),
80
+ 'jump_to_option' => __('Jump to Option', 'ajax-load-more'),
81
+ 'jump_to_template' => __('Jump to Template', 'ajax-load-more')
82
+ )); ?>
83
+ /* ]]> */
84
+ </script>
85
  <script type="text/javascript" src="<?php echo ALM_ADMIN_URL; ?>js/libs/jquery.tooltipster.min.js"></script>
86
  <script type="text/javascript" src="<?php echo ALM_ADMIN_URL; ?>js/admin.js"></script>
87
  </body>
admin/img/logos/post-explorer-48x48.png ADDED
Binary file
admin/includes/components/custom-layouts.php ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $custom_layouts = apply_filters('alm_custom_layouts', '');
3
+ if($custom_layouts){
4
+ foreach($custom_layouts as $layout){
5
+ echo '<li><a href="javascript:void(0);" class="layout custom" data-type="'.$layout['layout'].'"><i class="fa fa-list-alt"></i>'.$layout['name'].'</a></li>';
6
+ }
7
+ }
8
+ ?>
admin/includes/components/layout-list.php CHANGED
@@ -4,16 +4,22 @@
4
  <div class="alm-dropdown">
5
  <div class="alm-drop-inner">
6
  <ul>
7
- <?php if (has_action('alm_layouts_installed')){
8
- do_action('alm_get_layouts_add_on');
 
 
 
9
  } else { ?>
10
  <li>
11
  <a href="javascript:void(0);" class="layout" data-type="default">
12
  <i class="fa fa-list-alt"></i>
13
  <?php _e('Default Layout', 'ajax-load-more'); ?>
14
  </a>
15
- </li>
16
- <?php
 
 
 
17
  echo '<li><a href="https://connekthq.com/plugins/ajax-load-more/add-ons/layouts/?utm_source=WP%20Admin&utm_medium=Extend&utm_campaign=Layouts" class="add-on" target="_blank">';
18
  echo '<i class="fa fa-key"></i>';
19
  _e('Unlock additional layout templates with the <strong>Layouts add-on</strong>', 'ajax-load-more');
4
  <div class="alm-dropdown">
5
  <div class="alm-drop-inner">
6
  <ul>
7
+ <?php if (has_action('alm_layouts_installed')){
8
+
9
+ include( ALM_PATH . 'admin/includes/components/custom-layouts.php'); // Custom Layouts
10
+ do_action('alm_get_layouts_add_on'); // Get Layouts
11
+
12
  } else { ?>
13
  <li>
14
  <a href="javascript:void(0);" class="layout" data-type="default">
15
  <i class="fa fa-list-alt"></i>
16
  <?php _e('Default Layout', 'ajax-load-more'); ?>
17
  </a>
18
+ </li>
19
+ <?php
20
+
21
+ include( ALM_PATH . 'admin/includes/components/custom-layouts.php'); // Custom Layouts
22
+
23
  echo '<li><a href="https://connekthq.com/plugins/ajax-load-more/add-ons/layouts/?utm_source=WP%20Admin&utm_medium=Extend&utm_campaign=Layouts" class="add-on" target="_blank">';
24
  echo '<i class="fa fa-key"></i>';
25
  _e('Unlock additional layout templates with the <strong>Layouts add-on</strong>', 'ajax-load-more');
admin/includes/cta/about.php CHANGED
@@ -1,23 +1,34 @@
1
- <div class="cta padding-bottom">
2
  <h3>Other Projects</h3>
3
  <ul class="project-listing">
4
  <li>
5
- <img src="<?php echo ALM_ADMIN_URL; ?>img/logos/eq-48x48.png" alt="">
6
- <strong><a target="blank" href="https://connekthq.com/plugins/easy-query/">Easy Query</a></strong>
7
- A simple solution to build and display WordPress queries without touching a single line of code.
 
 
8
  </li>
9
  <li>
10
- <img src="<?php echo ALM_ADMIN_URL; ?>img/logos/instant-images-48x48.png" alt="">
11
- <strong><a target="blank" href="https://connekthq.com/plugins/instant-images/">Instant Images</a></strong>
12
- Upload quality, high resolution photos directly to your media library without leaving WordPress.
 
 
 
 
 
 
 
 
 
13
  </li>
14
  <li>
15
- <img src="<?php echo ALM_ADMIN_URL; ?>img/logos/velocity-48x48.png" alt="">
16
- <strong><a target="blank" href="https://connekthq.com/plugins/velocity/">Velocity</a></strong>
17
- Improve website performance by lazy loading and customizing your embedded media with Velocity.
 
 
18
  </li>
19
  </ul>
20
- <a href="https://connekthq.com" class="visit" target="_blank"><i class="fa fa-chevron-circle-right"></i> Connekt Media</a>
21
-
22
  </div>
23
 
1
+ <div class="cta">
2
  <h3>Other Projects</h3>
3
  <ul class="project-listing">
4
  <li>
5
+ <a target="blank" href="https://connekthq.com/plugins/easy-query/">
6
+ <img src="<?php echo ALM_ADMIN_URL; ?>img/logos/eq-48x48.png" alt="">
7
+ <strong>Easy Query</strong>
8
+ <span>A simple solution to build and display WordPress queries without touching a single line of code.</span>
9
+ </a>
10
  </li>
11
  <li>
12
+ <a target="blank" href="https://connekthq.com/plugins/instant-images/">
13
+ <img src="<?php echo ALM_ADMIN_URL; ?>img/logos/instant-images-48x48.png" alt="">
14
+ <strong>Instant Images</strong>
15
+ <span>Upload quality, high resolution photos directly to your media library without leaving WordPress.</span>
16
+ </a>
17
+ </li>
18
+ <li>
19
+ <a target="blank" href="https://connekthq.com/plugins/post-explorer/">
20
+ <img src="<?php echo ALM_ADMIN_URL; ?>img/logos/post-explorer-48x48.png" alt="">
21
+ <strong>Post Explorer</strong>
22
+ <span>A premium WordPress plugin for loading single posts and custom post types with Ajax.</span>
23
+ </a>
24
  </li>
25
  <li>
26
+ <a target="blank" href="https://connekthq.com/plugins/velocity/">
27
+ <img src="<?php echo ALM_ADMIN_URL; ?>img/logos/velocity-48x48.png" alt="">
28
+ <strong>Velocity</strong>
29
+ <span>Improve website performance by lazy loading and customizing your embedded media with Velocity.</span>
30
+ </a>
31
  </li>
32
  </ul>
 
 
33
  </div>
34
 
admin/includes/cta/add-ons.php CHANGED
@@ -1,17 +1,6 @@
1
- <div class="cta cta-add-on">
2
  <h3>Add-ons</h3>
3
- <p>Ajax Load More offers a variety of unique <a href="admin.php?page=ajax-load-more-add-ons">add-ons</a> that will extend and enhance the core functionality of the plugin.</p>
4
- <ul>
5
- <li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/add-ons/cache/?utm_source=WP%20Admin&utm_medium=ALM%20Settings&utm_campaign=Cache">Cache</a></li>
6
- <li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/add-ons/call-to-actions/?utm_source=WP%20Admin&utm_medium=ALM%20Settings&utm_campaign=Call to Actions">Call to Actions</a></li>
7
- <li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/add-ons/comments/?utm_source=WP%20Admin&utm_medium=ALM%20Settings&utm_campaign=Comments">Comments</a></li>
8
- <li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/add-ons/custom-repeaters/?utm_source=WP%20Admin&utm_medium=ALM%20Settings&utm_campaign=Custom%20Repeaters">Custom Repeaters</a></li>
9
- <li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/add-ons/layouts/?utm_source=WP%20Admin&utm_medium=ALM%20Settings&utm_campaign=Layouts">Layouts</a></li>
10
- <li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/add-ons/paging/?utm_source=WP%20Admin&utm_medium=ALM%20Settings&utm_campaign=Paging">Paging</a></li>
11
- <li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/add-ons/preloaded/?utm_source=WP%20Admin&utm_medium=ALM%20Settings&utm_campaign=Preloaded">Preloaded</a></li>
12
- <li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/?utm_source=WP%20Admin&utm_medium=ALM%20Settings&utm_campaign=Previous">Previous Post</a></li>
13
- <li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/add-ons/rest-api/?utm_source=WP%20Admin&utm_medium=ALM%20Settings&utm_campaign=REST">REST API</a></li>
14
- <li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/add-ons/search-engine-optimization/?utm_source=WP%20Admin&utm_medium=ALM%20Settings&utm_campaign=SEO">Search Engine Optimization</a></li>
15
- <li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/add-ons/theme-repeaters/?utm_source=WP%20Admin&utm_medium=ALM%20Settings&utm_campaign=Theme Repeaters">Theme Repeaters</a></li>
16
- </ul>
17
  </div>
1
+ <div class="cta padding-bottom">
2
  <h3>Add-ons</h3>
3
+ <p style="padding-bottom: 10px;">Ajax Load More offers a variety of unique <a href="admin.php?page=ajax-load-more-add-ons">add-ons</a> that will extend and enhance the core functionality of the plugin.</p>
4
+
5
+ <a href="admin.php?page=ajax-load-more-add-ons" class="visit" target="_blank"><i class="fa fa-chevron-circle-right"></i> View Add-ons</a>
 
 
 
 
 
 
 
 
 
 
 
6
  </div>
admin/js/admin.js CHANGED
@@ -277,6 +277,7 @@ jQuery(document).ready(function($) {
277
  e.preventDefault();
278
  var el = $(this),
279
  type = el.data('type'),
 
280
  textarea = el.closest('.repeater-wrap').find('.CodeMirror'),
281
  layout_btn_text = el.html(),
282
  name = el.closest('.repeater-wrap').data('name');
@@ -299,12 +300,14 @@ jQuery(document).ready(function($) {
299
  type: 'GET',
300
  url: alm_admin_localize.ajax_admin_url,
301
  data: {
302
- action: 'alm_layouts_get',
303
- type: type,
304
- nonce: alm_admin_localize.alm_admin_nonce,
 
305
  },
306
- dataType: "JSON",
307
  success: function(data) {
 
308
  eid.setValue(data.value);
309
 
310
  // Clear button styles
277
  e.preventDefault();
278
  var el = $(this),
279
  type = el.data('type'),
280
+ custom = (el.hasClass('custom')) ? 'true' : 'false',
281
  textarea = el.closest('.repeater-wrap').find('.CodeMirror'),
282
  layout_btn_text = el.html(),
283
  name = el.closest('.repeater-wrap').data('name');
300
  type: 'GET',
301
  url: alm_admin_localize.ajax_admin_url,
302
  data: {
303
+ action : 'alm_get_layout',
304
+ type : type,
305
+ custom : custom,
306
+ nonce : alm_admin_localize.alm_admin_nonce,
307
  },
308
+ dataType : "JSON",
309
  success: function(data) {
310
+
311
  eid.setValue(data.value);
312
 
313
  // Clear button styles
admin/shortcode-builder/js/shortcode-builder.js CHANGED
@@ -21,7 +21,7 @@ jQuery(document).ready(function($) {
21
 
22
  // multiple
23
  $('.ajax-load-more .categories select.multiple').select2({
24
- placeholder : '-- '+ alm_admin_localize.select_cats +' --',
25
  });
26
  $('.ajax-load-more .tags select.multiple').select2({
27
  placeholder : '-- '+ alm_admin_localize.select_tags +' --'
@@ -924,7 +924,7 @@ jQuery(document).ready(function($) {
924
  // If post type is not selected, select 'post'.
925
  if(!$('.post_types input[type=checkbox]:checked').length > 0){
926
  $('.post_types input[type=checkbox]#chk-post').prop('checked', true);
927
- }
928
 
929
  // If Tax Term Operator is not selected, select 'IN'.
930
  if(!$('#tax-operator-select input[type=radio]:checked').length > 0){
21
 
22
  // multiple
23
  $('.ajax-load-more .categories select.multiple').select2({
24
+ placeholder : '-- '+ alm_admin_localize.select_cats +' --',
25
  });
26
  $('.ajax-load-more .tags select.multiple').select2({
27
  placeholder : '-- '+ alm_admin_localize.select_tags +' --'
924
  // If post type is not selected, select 'post'.
925
  if(!$('.post_types input[type=checkbox]:checked').length > 0){
926
  $('.post_types input[type=checkbox]#chk-post').prop('checked', true);
927
+ }
928
 
929
  // If Tax Term Operator is not selected, select 'IN'.
930
  if(!$('#tax-operator-select input[type=radio]:checked').length > 0){
admin/shortcode-builder/shortcode-builder.php CHANGED
@@ -835,7 +835,7 @@
835
  <h3 class="heading"><?php _e('Pause', 'ajax-load-more'); ?></h3>
836
  <div class="expand-wrap">
837
  <div class="section-title">
838
- <p><?php _e('Do <u>NOT</u> load any posts until user the clicks <em>Load More</em> button.', 'ajax-load-more'); ?></p>
839
  </div>
840
  <div class="wrap">
841
  <div class="inner">
@@ -1051,6 +1051,7 @@
1051
  echo '<li><input class="alm_element" type="checkbox" name="chk-'.$typeobj->name.'" id="chk-'.$typeobj->name.'" data-type="'.$typeobj->name.'"><label for="chk-'.$typeobj->name.'">'.$typeobj->labels->singular_name.'</label></li>';
1052
  }
1053
  }
 
1054
  echo '</ul></div></div>';
1055
  echo '</div>';
1056
  echo '</div>';
@@ -1221,7 +1222,7 @@
1221
  <div class="wrap">
1222
  <?php include( ALM_PATH . 'admin/shortcode-builder/includes/tax-query-options.php'); ?>
1223
  <div class="controls">
1224
- <button id="add-tax-query" class="button button-primary">Add Another</button>
1225
  </div>
1226
  </div>
1227
  </div>
835
  <h3 class="heading"><?php _e('Pause', 'ajax-load-more'); ?></h3>
836
  <div class="expand-wrap">
837
  <div class="section-title">
838
+ <p><?php _e('Do <u>NOT</u> load any posts until user clicks the <em>Load More</em> button.', 'ajax-load-more'); ?></p>
839
  </div>
840
  <div class="wrap">
841
  <div class="inner">
1051
  echo '<li><input class="alm_element" type="checkbox" name="chk-'.$typeobj->name.'" id="chk-'.$typeobj->name.'" data-type="'.$typeobj->name.'"><label for="chk-'.$typeobj->name.'">'.$typeobj->labels->singular_name.'</label></li>';
1052
  }
1053
  }
1054
+ echo '<li><input class="alm_element chk-any" type="checkbox" name="chk-any" id="chk-any" data-type="any"><label for="chk-any">Any</label></li>';
1055
  echo '</ul></div></div>';
1056
  echo '</div>';
1057
  echo '</div>';
1222
  <div class="wrap">
1223
  <?php include( ALM_PATH . 'admin/shortcode-builder/includes/tax-query-options.php'); ?>
1224
  <div class="controls">
1225
+ <button id="add-tax-query" class="button button-primary"><?php _e('Add Another', 'ajax-load-more'); ?></button>
1226
  </div>
1227
  </div>
1228
  </div>
admin/views/examples.php CHANGED
@@ -64,14 +64,18 @@
64
  </div>
65
  </div>
66
  </div>
67
-
68
- <div class="row no-brd">
69
- <p class="back2top"><a href="#wpcontent"><i class="fa fa-chevron-up"></i> <?php _e('Back to Top', 'ajax-load-more'); ?></a></p>
70
- </div>
71
  </div>
72
 
 
 
73
  </div>
74
  <div class="cnkt-sidebar">
 
 
 
 
 
 
75
  <?php include_once( ALM_PATH . 'admin/includes/cta/dyk.php'); ?>
76
  <?php include_once( ALM_PATH . 'admin/includes/cta/resources.php'); ?>
77
  </div>
64
  </div>
65
  </div>
66
  </div>
 
 
 
 
67
  </div>
68
 
69
+ <p class="back2top"><a href="#wpcontent" class="group"><i class="fa fa-angle-up"></i> Back to Top</a></p>
70
+
71
  </div>
72
  <div class="cnkt-sidebar">
73
+ <div class="cta padding-bottom">
74
+ <h3>Example Library</h3>
75
+ <p style="padding-bottom: 10px;">We have a collection of over 20 real-world Ajax Load More <a href="https://connekthq.com/plugins/ajax-load-more/examples/" target="_blank">examples</a> available on the plugin website.</p>
76
+
77
+ <a href="https://connekthq.com/plugins/ajax-load-more/examples/" class="visit" target="_blank"><i class="fa fa-chevron-circle-right"></i> <?php _e('View All Examples', 'ajax-load-more'); ?></a>
78
+ </div>
79
  <?php include_once( ALM_PATH . 'admin/includes/cta/dyk.php'); ?>
80
  <?php include_once( ALM_PATH . 'admin/includes/cta/resources.php'); ?>
81
  </div>
admin/views/repeater-templates.php CHANGED
@@ -286,7 +286,7 @@
286
  <h3><?php _e('Repeater Template Help', 'ajax-load-more'); ?></h3>
287
  <div class="item">
288
  <p><strong><?php _e('What is a repeater template?', 'ajax-load-more'); ?></strong></p>
289
- <p><?php _e('A <a href="https://connekthq.com/plugins/ajax-load-more/docs/repeater-templates/" target="_blank">repeater template</a> is a snippet of code that will execute over and over within a <a href="http://codex.wordpress.org/The_Loop" target="_blank">WordPress loop</a>.</p>', 'ajax-load-more'); ?></p>
290
  </div>
291
  <a class="visit" href="https://connekthq.com/plugins/ajax-load-more/docs/repeater-templates/" target="_blank"><i class="fa fa-chevron-circle-right"></i> <?php _e('More About Templating', 'ajax-load-more'); ?></a>
292
  </div>
286
  <h3><?php _e('Repeater Template Help', 'ajax-load-more'); ?></h3>
287
  <div class="item">
288
  <p><strong><?php _e('What is a repeater template?', 'ajax-load-more'); ?></strong></p>
289
+ <p><?php _e('A <a href="https://connekthq.com/plugins/ajax-load-more/docs/repeater-templates/" target="_blank">repeater template</a> is a snippet of code that will execute over and over within a <a href="http://codex.wordpress.org/The_Loop" target="_blank">WordPress loop</a>', 'ajax-load-more'); ?>.</p>
290
  </div>
291
  <a class="visit" href="https://connekthq.com/plugins/ajax-load-more/docs/repeater-templates/" target="_blank"><i class="fa fa-chevron-circle-right"></i> <?php _e('More About Templating', 'ajax-load-more'); ?></a>
292
  </div>
ajax-load-more.php CHANGED
@@ -7,15 +7,15 @@ Text Domain: ajax-load-more
7
  Author: Darren Cooney
8
  Twitter: @KaptonKaos
9
  Author URI: http://connekthq.com
10
- Version: 2.13.0.1
11
  License: GPL
12
  Copyright: Darren Cooney & Connekt Media
13
-
14
  */
15
 
 
16
 
17
- define('ALM_VERSION', '2.13.0.1');
18
- define('ALM_RELEASE', 'November 10, 2016');
19
  define('ALM_STORE_URL', 'https://connekthq.com');
20
 
21
 
@@ -386,6 +386,7 @@ if( !class_exists('AjaxLoadMore') ):
386
  $post_status = 'publish';
387
  }
388
  }
 
389
 
390
 
391
  // Page Parameters
@@ -623,6 +624,7 @@ if( !class_exists('AjaxLoadMore') ):
623
  /*
624
  * alm_prev_post_args
625
  *
 
626
  * Hijack $args and and return previous post only $args
627
  *
628
  * @return $args;
@@ -677,7 +679,15 @@ if( !class_exists('AjaxLoadMore') ):
677
  }
678
 
679
 
680
- // Create cache directory + meta .txt file
 
 
 
 
 
 
 
 
681
  if(!empty($cache_id) && has_action('alm_cache_create_dir')){
682
  apply_filters('alm_cache_create_dir', $cache_id, $canonical_url);
683
  $page_cache = ''; // set our page cache variable
@@ -741,10 +751,17 @@ if( !class_exists('AjaxLoadMore') ):
741
 
742
  $data = ob_get_clean();
743
 
744
- // If Cache is enabled and seo_start_page is 1 (meaning, a user has not requested /page/12/)
745
- // - Only create cached files if the user visits pages in order 1, 2, 3 etc.
746
- if(!empty($cache_id) && has_action('alm_cache_installed') && $seo_start_page <= 1){
747
- apply_filters('alm_cache_file', $cache_id, $page, $data);
 
 
 
 
 
 
 
748
  }
749
 
750
 
7
  Author: Darren Cooney
8
  Twitter: @KaptonKaos
9
  Author URI: http://connekthq.com
10
+ Version: 2.13.1
11
  License: GPL
12
  Copyright: Darren Cooney & Connekt Media
 
13
  */
14
 
15
+
16
 
17
+ define('ALM_VERSION', '2.13.1');
18
+ define('ALM_RELEASE', 'December 5, 2016');
19
  define('ALM_STORE_URL', 'https://connekthq.com');
20
 
21
 
386
  $post_status = 'publish';
387
  }
388
  }
389
+
390
 
391
 
392
  // Page Parameters
624
  /*
625
  * alm_prev_post_args
626
  *
627
+ * Previous Post Add-on hook
628
  * Hijack $args and and return previous post only $args
629
  *
630
  * @return $args;
679
  }
680
 
681
 
682
+
683
+ /*
684
+ * alm_cache_create_dir
685
+ *
686
+ * Cache Add-on hook
687
+ * Create cache directory + meta .txt file
688
+ *
689
+ * @return null
690
+ */
691
  if(!empty($cache_id) && has_action('alm_cache_create_dir')){
692
  apply_filters('alm_cache_create_dir', $cache_id, $canonical_url);
693
  $page_cache = ''; // set our page cache variable
751
 
752
  $data = ob_get_clean();
753
 
754
+
755
+ /*
756
+ * alm_cache_file
757
+ *
758
+ * Cache Add-on hook
759
+ * If Cache is enabled, check the cache file
760
+ *
761
+ * @return null
762
+ */
763
+ if(!empty($cache_id) && has_action('alm_cache_installed')){
764
+ apply_filters('alm_cache_file', $cache_id, $page, $seo_start_page, $data, $preloaded);
765
  }
766
 
767
 
core/classes/class.alm-shortcode.php CHANGED
@@ -105,7 +105,7 @@ if( !class_exists('ALM_SHORTCODE') ):
105
  'posts_per_page' => '5',
106
  'scroll' => 'true',
107
  'scroll_distance' => '150',
108
- 'max_pages' => '5',
109
  'pause_override' => 'false',
110
  'pause' => 'false',
111
  'destroy_after' => '',
@@ -650,12 +650,24 @@ if( !class_exists('ALM_SHORTCODE') ):
650
  $repeater_type = $repeater_type[0]; // (default | repeater | template_)
651
  if($theme_repeater != 'null' && has_filter('alm_get_theme_repeater')){
652
  $repeater_type = null;
653
- }
654
- // Get next post include and build the output from the next post filter
655
- $previous_post_output = '<div class="alm-reveal alm-previous-post post-'. $previous_post_id .'" data-url="'. get_permalink($previous_post_id) .'" data-title="'. get_the_title($previous_post_id) .'" data-id="'. $previous_post_id .'">'; // Set the post id .alm-reveal div
 
 
 
 
 
 
 
 
 
 
 
656
  $previous_post_output .= apply_filters('alm_prev_post_inc', $repeater, $repeater_type, $theme_repeater, $previous_post_id, $post_type);
 
657
  $previous_post_output .= '</div>';
658
- $ajaxloadmore .= $previous_post_output; // Add $next_post_output data to $ajaxloadmore
659
 
660
  }
661
  // / Previous Post Add-on
105
  'posts_per_page' => '5',
106
  'scroll' => 'true',
107
  'scroll_distance' => '150',
108
+ 'max_pages' => '0',
109
  'pause_override' => 'false',
110
  'pause' => 'false',
111
  'destroy_after' => '',
650
  $repeater_type = $repeater_type[0]; // (default | repeater | template_)
651
  if($theme_repeater != 'null' && has_filter('alm_get_theme_repeater')){
652
  $repeater_type = null;
653
+ }
654
+ // Get current permalink - (including querystring)
655
+ $previous_post_permanlink = ($_SERVER["QUERY_STRING"]) ? get_permalink($previous_post_id) .'?'. $_SERVER["QUERY_STRING"] : get_permalink($previous_post_id);
656
+
657
+ // Get previous post include, build output from the next post filter
658
+ $previous_post_output = '<div class="alm-reveal alm-previous-post post-'. $previous_post_id .'" data-url="'. $previous_post_permanlink .'" data-title="'. get_the_title($previous_post_id) .'" data-id="'. $previous_post_id .'">'; // Set the post id .alm-reveal div
659
+
660
+ /*
661
+ * alm_prev_post_inc
662
+ *
663
+ * Previous Post Add-on hook
664
+ *
665
+ * @return $args;
666
+ */
667
  $previous_post_output .= apply_filters('alm_prev_post_inc', $repeater, $repeater_type, $theme_repeater, $previous_post_id, $post_type);
668
+
669
  $previous_post_output .= '</div>';
670
+ $ajaxloadmore .= $previous_post_output; // Add $previous_post_output data to $ajaxloadmore
671
 
672
  }
673
  // / Previous Post Add-on
core/functions.php CHANGED
@@ -432,7 +432,7 @@ function alm_get_canonical_url(){
432
  else{
433
  $canonicalURL = get_permalink();
434
  }
435
-
436
  return $canonicalURL;
437
  }
438
 
432
  else{
433
  $canonicalURL = get_permalink();
434
  }
435
+
436
  return $canonicalURL;
437
  }
438
 
core/js/ajax-load-more.js CHANGED
@@ -388,23 +388,26 @@
388
 
389
  // If cache = true && cache_logged_in setting is false
390
  if(alm.cache === 'true' && !alm.cache_logged_in){
 
 
 
391
  if(alm.init && alm.seo && alm.isPaged){
 
 
 
392
 
393
- // if alm.init = true, SEO = true and SEO page > 1
394
- // - skip cache build process because we can't build cache from multiple loaded queries
395
- alm.AjaxLoadMore.ajax('standard');
396
 
397
- } else {
398
- // Build and/or get cache
399
- var cachePage = alm.cache_path + '/page-' + alm.page +'.html';
400
-
401
- $.get(cachePage, function( data ) {
402
- alm.AjaxLoadMore.success(data, true); // data contains whatever the request has returned
403
- }).fail(function() {
404
- alm.AjaxLoadMore.ajax('standard');
405
- });
406
  }
407
 
 
 
 
 
 
 
408
  } else { // Standard ALM query
409
 
410
  alm.AjaxLoadMore.ajax('standard');
@@ -1305,41 +1308,59 @@
1305
  * @since 2.6.1
1306
  */
1307
  $.fn.almFilter = function (transition, speed, data) {
1308
-
1309
- $(".ajax-load-more-wrap").each(function (e) {
1310
- var el = $(this);
1311
- if(transition === 'slide'){ // Slide transition
1312
- el.slideUp(speed, function(){
1313
- $('.alm-listing', el).html(''); // Clear listings
1314
- $('.alm-btn-wrap', el).remove(); // remove buttons
1315
- el.fadeIn(speed);
1316
-
1317
- $.fn.almSetFilters(el, data);
1318
-
1319
- });
1320
- }else if(transition === 'fade'){ // Fade transition
1321
- el.fadeOut(speed, function(){
1322
- $('.alm-listing', el).html(''); // Clear listings
1323
- $('.alm-btn-wrap', el).remove(); // remove buttons
1324
- el.fadeIn(speed);
1325
-
1326
- $.fn.almSetFilters(el, data);
1327
-
1328
- });
1329
- }else{
 
 
 
 
1330
  $('.alm-listing', el).html(''); // Clear listings
1331
  $('.alm-btn-wrap', el).remove(); // remove buttons
 
 
 
 
 
 
 
 
 
1332
  el.fadeIn(speed);
1333
 
1334
  $.fn.almSetFilters(el, data);
1335
-
1336
- }
 
 
 
 
1337
 
1338
- });
 
 
1339
  };
1340
 
1341
 
1342
-
1343
  /* $.fn.almSetFilters(el, data)
1344
  *
1345
  * Set filter parameters on .alm-listing element
@@ -1355,8 +1376,14 @@
1355
  if ($.isFunction($.fn.almFilterComplete)){
1356
  $.fn.almFilterComplete();
1357
  }
1358
-
1359
- $(".ajax-load-more-wrap").ajaxloadmore(); // re-initiate Ajax Load More
 
 
 
 
 
 
1360
  };
1361
 
1362
 
388
 
389
  // If cache = true && cache_logged_in setting is false
390
  if(alm.cache === 'true' && !alm.cache_logged_in){
391
+
392
+ var cache_page;
393
+
394
  if(alm.init && alm.seo && alm.isPaged){
395
+ // If the request a paged URL (/page/3/)
396
+ var firstpage = '1';
397
+ cache_page = alm.cache_path + '/page-' + firstpage +'-'+ alm.start_page +'.html';
398
 
399
+ } else {
400
+ // standard request url
401
+ cache_page = alm.cache_path + '/page-' + (alm.page + 1) +'.html';
402
 
 
 
 
 
 
 
 
 
 
403
  }
404
 
405
+ $.get(cache_page, function( data ) {
406
+ alm.AjaxLoadMore.success(data, true); // data contains whatever the request has returned
407
+ }).fail(function() {
408
+ alm.AjaxLoadMore.ajax('standard');
409
+ });
410
+
411
  } else { // Standard ALM query
412
 
413
  alm.AjaxLoadMore.ajax('standard');
1308
  * @since 2.6.1
1309
  */
1310
  $.fn.almFilter = function (transition, speed, data) {
1311
+
1312
+ if(data.target){
1313
+ // if a target has been specified
1314
+ $(".ajax-load-more-wrap[data-id='" + data.target + "']").each(function (e) {
1315
+ var el = $(this);
1316
+ $.fn.almFilterTransition(transition, speed, data, el);
1317
+ });
1318
+ } else {
1319
+ // Target not specified
1320
+ $(".ajax-load-more-wrap").each(function (e) {
1321
+ var el = $(this);
1322
+ $.fn.almFilterTransition(transition, speed, data, el);
1323
+ });
1324
+ }
1325
+ };
1326
+
1327
+
1328
+ /* $.fn.almFilterTransition(transition, speed, data, el)
1329
+ *
1330
+ * Transition Ajax Load More
1331
+ *
1332
+ * @since 2.13.1
1333
+ */
1334
+ $.fn.almFilterTransition = function(transition, speed, data, el){
1335
+ if(transition === 'slide'){ // Slide transition
1336
+ el.slideUp(speed, function(){
1337
  $('.alm-listing', el).html(''); // Clear listings
1338
  $('.alm-btn-wrap', el).remove(); // remove buttons
1339
+ el.fadeIn(speed);
1340
+
1341
+ $.fn.almSetFilters(el, data);
1342
+
1343
+ });
1344
+ }else if(transition === 'fade'){ // Fade transition
1345
+ el.fadeOut(speed, function(){
1346
+ $('.alm-listing', el).html(''); // Clear listings
1347
+ $('.alm-btn-wrap', el).remove(); // remove buttons
1348
  el.fadeIn(speed);
1349
 
1350
  $.fn.almSetFilters(el, data);
1351
+
1352
+ });
1353
+ }else{
1354
+ $('.alm-listing', el).html(''); // Clear listings
1355
+ $('.alm-btn-wrap', el).remove(); // remove buttons
1356
+ el.fadeIn(speed);
1357
 
1358
+ $.fn.almSetFilters(el, data);
1359
+
1360
+ }
1361
  };
1362
 
1363
 
 
1364
  /* $.fn.almSetFilters(el, data)
1365
  *
1366
  * Set filter parameters on .alm-listing element
1376
  if ($.isFunction($.fn.almFilterComplete)){
1377
  $.fn.almFilterComplete();
1378
  }
1379
+
1380
+ if(data.target){
1381
+ // if a target has been specified
1382
+ $(".ajax-load-more-wrap[data-id="+data.target+"").ajaxloadmore(); // re-initiate Ajax Load More
1383
+ } else {
1384
+ // Target not specified
1385
+ $(".ajax-load-more-wrap").ajaxloadmore(); // re-initiate Ajax Load More
1386
+ }
1387
  };
1388
 
1389
 
core/js/ajax-load-more.min.js CHANGED
@@ -37,7 +37,8 @@ if(alm.content.attr('data-button-class')===undefined){alm.button_class='';}else{
37
  if(alm.content.attr('data-scroll')===undefined){alm.scroll=true;}else if(alm.content.attr('data-scroll')==='false'){alm.scroll=false;}else{alm.scroll=true;}
38
  alm.post_type=alm.content.attr('data-post-type');alm.post_type=alm.post_type.split(",");alm.container.append('<div class="'+alm.prefix+'btn-wrap"/>');alm.btnWrap=$('.'+alm.prefix+'btn-wrap',alm.container);if(alm.paging){alm.content.parent().addClass('loading');}else{$('.'+alm.prefix+'btn-wrap',alm.container).append('<button id="load-more" class="'+alm.prefix+'load-more-btn more'+alm.button_class+'">'+alm.button_label+'</button>');alm.button=$('.alm-load-more-btn',alm.container);}
39
  alm.AjaxLoadMore.loadPosts=function(){if(!alm.disable_ajax){if(!alm.paging){alm.button.addClass('loading');if(alm.button_loading_label!==false){alm.button.text(alm.button_loading_label);}}
40
- alm.loading=true;if(alm.cache==='true'&&!alm.cache_logged_in){if(alm.init&&alm.seo&&alm.isPaged){alm.AjaxLoadMore.ajax('standard');}else{var cachePage=alm.cache_path+'/page-'+alm.page+'.html';$.get(cachePage,function(data){alm.AjaxLoadMore.success(data,true);}).fail(function(){alm.AjaxLoadMore.ajax('standard');});}}else{alm.AjaxLoadMore.ajax('standard');}}};alm.AjaxLoadMore.ajax=function(queryType){var action='alm_query_posts';if(alm.previous_post){alm.previous_post_id=alm.content.attr('data-previous-post-id');alm.previous_post_taxonomy=alm.content.attr('data-previous-post-taxonomy');}
 
41
  if(alm.comments==='true'){action='alm_comments_query';alm.posts_per_page=alm.comments_per_page;alm.comments_array={'comments':'true','post_id':alm.comments_post_id,'per_page':alm.comments_per_page,'type':alm.comments_type,'style':alm.comments_style,'template':alm.comments_template,'callback':alm.comments_callback,};}
42
  if(alm.cta==='true'){alm.cta_array={'cta':'true','cta_position':alm.cta_position,'cta_repeater':alm.cta_repeater,'cta_theme_repeater':alm.cta_theme_repeater,};}
43
  if(alm.restapi){var alm_template=wp.template(alm.restapi_template_id),rest_url=alm.restapi_base_url+'/'+alm.restapi_namespace+'/'+alm.restapi_endpoint,rest_data={posts_per_page:alm.posts_per_page,page:alm.page,offset:alm.offset,slug:alm.slug,canonical_url:alm.canonical_url,post_type:alm.post_type,post_format:alm.content.attr('data-post-format'),category:alm.content.attr('data-category'),category__not_in:alm.content.attr('data-category-not-in'),tag:alm.content.attr('data-tag'),tag__not_in:alm.content.attr('data-tag-not-in'),taxonomy:alm.content.attr('data-taxonomy'),taxonomy_terms:alm.content.attr('data-taxonomy-terms'),taxonomy_operator:alm.content.attr('data-taxonomy-operator'),taxonomy_relation:alm.content.attr('data-taxonomy-relation'),meta_key:alm.content.attr('data-meta-key'),meta_value:alm.content.attr('data-meta-value'),meta_compare:alm.content.attr('data-meta-compare'),meta_relation:alm.content.attr('data-meta-relation'),meta_type:alm.content.attr('data-meta-type'),author:alm.content.attr('data-author'),year:alm.content.attr('data-year'),month:alm.content.attr('data-month'),day:alm.content.attr('data-day'),post_status:alm.content.attr('data-post-status'),order:alm.content.attr('data-order'),orderby:alm.content.attr('data-orderby'),post__in:alm.content.attr('data-post-in'),post__not_in:alm.content.attr('data-post-not-in'),search:alm.content.attr('data-search'),custom_args:alm.content.attr('data-custom-args'),lang:alm.lang,preloaded:alm.preloaded,preloaded_amount:alm.preloaded_amount,seo_start_page:alm.start_page,id:el.attr('data-id')};$.ajax({type:"GET",url:rest_url,data:rest_data,dataType:"JSON",beforeSend:function(){if(alm.page!=1&&!alm.paging){alm.button.addClass('loading');}},success:function(results){var data,html=results.html,meta=results.meta,postcount=meta.postcount,totalposts=meta.totalposts;$.each(html,function(e){var result=html[e];if(alm.restapi_debug==='true'){console.log(result);}
@@ -85,8 +86,8 @@ else{if(!alm.loading&&!alm.finished&&(alm.window.scrollTop()>=top)&&alm.page<(al
85
  alm.AjaxLoadMore.init=function(){if(!alm.paging&&!alm.previous_post){if(alm.disable_ajax){alm.finished=true;alm.button.addClass('done');}else{if(alm.pause==='true'){alm.button.text(alm.button_label);alm.loading=false;}else{alm.AjaxLoadMore.loadPosts();}}}
86
  if(alm.previous_post){alm.AjaxLoadMore.getPreviousPost();alm.loading=false;}}
87
  alm.AjaxLoadMore.init();setTimeout(function(){alm.proceed=true;},300);$.fn.almUpdateCurrentPage=function(current,obj,alm){alm.page=current;if(alm.paging_init&&alm.preloaded==='true'){var data=$('.alm-preloaded .alm-reveal',alm.el).html();$('.alm-preloaded',alm.el).remove();alm.preloaded_amount=0;alm.AjaxLoadMore.pagingPreloadedInit(data);alm.paging_init=false;alm.init=false;}else{alm.AjaxLoadMore.loadPosts();}};$.fn.almGetParentContainer=function(){return alm.el.closest('#ajax-load-more');};$.fn.almGetObj=function(){return alm;};$.fn.almTriggerClick=function(){alm.button.trigger('click');};$.easing.alm_easeInOutQuad=function(x,t,b,c,d){if((t/=d/2)<1){return c/2*t*t+b;}
88
- return-c/2*((--t)*(t-2)-1)+b;};};$.fn.almFilter=function(transition,speed,data){$(".ajax-load-more-wrap").each(function(e){var el=$(this);if(transition==='slide'){el.slideUp(speed,function(){$('.alm-listing',el).html('');$('.alm-btn-wrap',el).remove();el.fadeIn(speed);$.fn.almSetFilters(el,data);});}else if(transition==='fade'){el.fadeOut(speed,function(){$('.alm-listing',el).html('');$('.alm-btn-wrap',el).remove();el.fadeIn(speed);$.fn.almSetFilters(el,data);});}else{$('.alm-listing',el).html('');$('.alm-btn-wrap',el).remove();el.fadeIn(speed);$.fn.almSetFilters(el,data);}});};$.fn.almSetFilters=function(el,data){$.each(data,function(key,value){key=key.replace(/\W+/g,'-').replace(/([a-z\d])([A-Z])/g,'$1-$2');$('.alm-listing',el).attr('data-'+key,value);});if($.isFunction($.fn.almFilterComplete)){$.fn.almFilterComplete();}
89
- $(".ajax-load-more-wrap").ajaxloadmore();};$.fn.ajaxloadmore=function(){return this.each(function(e){$(this).data('alm',new $.ajaxloadmore($(this),e));});};if($(".ajax-load-more-wrap").length){$(".ajax-load-more-wrap").ajaxloadmore();}})(jQuery);;(function(factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory);}else if(typeof exports==='object'){module.exports=factory(require('jquery'));}else{factory(jQuery);}}(function($){var eventNamespace='almWaitForImages';$.almWaitForImages={hasImageProperties:['backgroundImage','listStyleImage','borderImage','borderCornerImage','cursor'],hasImageAttributes:['srcset']};$.expr[':']['has-src']=function(obj){return $(obj).is('img[src][src!=""]');};$.expr[':'].uncached=function(obj){if(!$(obj).is(':has-src')){return false;}
90
  return!obj.complete;};$.fn.almWaitForImages=function(){var allImgsLength=0;var allImgsLoaded=0;var deferred=$.Deferred();var finishedCallback;var eachCallback;var waitForAll;if($.isPlainObject(arguments[0])){waitForAll=arguments[0].waitForAll;eachCallback=arguments[0].each;finishedCallback=arguments[0].finished;}else{if(arguments.length===1&&$.type(arguments[0])==='boolean'){waitForAll=arguments[0];}else{finishedCallback=arguments[0];eachCallback=arguments[1];waitForAll=arguments[2];}}
91
  finishedCallback=finishedCallback||$.noop;eachCallback=eachCallback||$.noop;waitForAll=!!waitForAll;if(!$.isFunction(finishedCallback)||!$.isFunction(eachCallback)){throw new TypeError('An invalid callback was supplied.');}
92
  this.each(function(){var obj=$(this);var allImgs=[];var hasImgProperties=$.almWaitForImages.hasImageProperties||[];var hasImageAttributes=$.almWaitForImages.hasImageAttributes||[];var matchUrl=/url\(\s*(['"]?)(.*?)\1\s*\)/g;if(waitForAll){obj.find('*').addBack().each(function(){var element=$(this);if(element.is('img:has-src')){allImgs.push({src:element.attr('src'),element:element[0]});}
37
  if(alm.content.attr('data-scroll')===undefined){alm.scroll=true;}else if(alm.content.attr('data-scroll')==='false'){alm.scroll=false;}else{alm.scroll=true;}
38
  alm.post_type=alm.content.attr('data-post-type');alm.post_type=alm.post_type.split(",");alm.container.append('<div class="'+alm.prefix+'btn-wrap"/>');alm.btnWrap=$('.'+alm.prefix+'btn-wrap',alm.container);if(alm.paging){alm.content.parent().addClass('loading');}else{$('.'+alm.prefix+'btn-wrap',alm.container).append('<button id="load-more" class="'+alm.prefix+'load-more-btn more'+alm.button_class+'">'+alm.button_label+'</button>');alm.button=$('.alm-load-more-btn',alm.container);}
39
  alm.AjaxLoadMore.loadPosts=function(){if(!alm.disable_ajax){if(!alm.paging){alm.button.addClass('loading');if(alm.button_loading_label!==false){alm.button.text(alm.button_loading_label);}}
40
+ alm.loading=true;if(alm.cache==='true'&&!alm.cache_logged_in){var cache_page;if(alm.init&&alm.seo&&alm.isPaged){var firstpage='1';cache_page=alm.cache_path+'/page-'+firstpage+'-'+alm.start_page+'.html';}else{cache_page=alm.cache_path+'/page-'+(alm.page+1)+'.html';}
41
+ $.get(cache_page,function(data){alm.AjaxLoadMore.success(data,true);}).fail(function(){alm.AjaxLoadMore.ajax('standard');});}else{alm.AjaxLoadMore.ajax('standard');}}};alm.AjaxLoadMore.ajax=function(queryType){var action='alm_query_posts';if(alm.previous_post){alm.previous_post_id=alm.content.attr('data-previous-post-id');alm.previous_post_taxonomy=alm.content.attr('data-previous-post-taxonomy');}
42
  if(alm.comments==='true'){action='alm_comments_query';alm.posts_per_page=alm.comments_per_page;alm.comments_array={'comments':'true','post_id':alm.comments_post_id,'per_page':alm.comments_per_page,'type':alm.comments_type,'style':alm.comments_style,'template':alm.comments_template,'callback':alm.comments_callback,};}
43
  if(alm.cta==='true'){alm.cta_array={'cta':'true','cta_position':alm.cta_position,'cta_repeater':alm.cta_repeater,'cta_theme_repeater':alm.cta_theme_repeater,};}
44
  if(alm.restapi){var alm_template=wp.template(alm.restapi_template_id),rest_url=alm.restapi_base_url+'/'+alm.restapi_namespace+'/'+alm.restapi_endpoint,rest_data={posts_per_page:alm.posts_per_page,page:alm.page,offset:alm.offset,slug:alm.slug,canonical_url:alm.canonical_url,post_type:alm.post_type,post_format:alm.content.attr('data-post-format'),category:alm.content.attr('data-category'),category__not_in:alm.content.attr('data-category-not-in'),tag:alm.content.attr('data-tag'),tag__not_in:alm.content.attr('data-tag-not-in'),taxonomy:alm.content.attr('data-taxonomy'),taxonomy_terms:alm.content.attr('data-taxonomy-terms'),taxonomy_operator:alm.content.attr('data-taxonomy-operator'),taxonomy_relation:alm.content.attr('data-taxonomy-relation'),meta_key:alm.content.attr('data-meta-key'),meta_value:alm.content.attr('data-meta-value'),meta_compare:alm.content.attr('data-meta-compare'),meta_relation:alm.content.attr('data-meta-relation'),meta_type:alm.content.attr('data-meta-type'),author:alm.content.attr('data-author'),year:alm.content.attr('data-year'),month:alm.content.attr('data-month'),day:alm.content.attr('data-day'),post_status:alm.content.attr('data-post-status'),order:alm.content.attr('data-order'),orderby:alm.content.attr('data-orderby'),post__in:alm.content.attr('data-post-in'),post__not_in:alm.content.attr('data-post-not-in'),search:alm.content.attr('data-search'),custom_args:alm.content.attr('data-custom-args'),lang:alm.lang,preloaded:alm.preloaded,preloaded_amount:alm.preloaded_amount,seo_start_page:alm.start_page,id:el.attr('data-id')};$.ajax({type:"GET",url:rest_url,data:rest_data,dataType:"JSON",beforeSend:function(){if(alm.page!=1&&!alm.paging){alm.button.addClass('loading');}},success:function(results){var data,html=results.html,meta=results.meta,postcount=meta.postcount,totalposts=meta.totalposts;$.each(html,function(e){var result=html[e];if(alm.restapi_debug==='true'){console.log(result);}
86
  alm.AjaxLoadMore.init=function(){if(!alm.paging&&!alm.previous_post){if(alm.disable_ajax){alm.finished=true;alm.button.addClass('done');}else{if(alm.pause==='true'){alm.button.text(alm.button_label);alm.loading=false;}else{alm.AjaxLoadMore.loadPosts();}}}
87
  if(alm.previous_post){alm.AjaxLoadMore.getPreviousPost();alm.loading=false;}}
88
  alm.AjaxLoadMore.init();setTimeout(function(){alm.proceed=true;},300);$.fn.almUpdateCurrentPage=function(current,obj,alm){alm.page=current;if(alm.paging_init&&alm.preloaded==='true'){var data=$('.alm-preloaded .alm-reveal',alm.el).html();$('.alm-preloaded',alm.el).remove();alm.preloaded_amount=0;alm.AjaxLoadMore.pagingPreloadedInit(data);alm.paging_init=false;alm.init=false;}else{alm.AjaxLoadMore.loadPosts();}};$.fn.almGetParentContainer=function(){return alm.el.closest('#ajax-load-more');};$.fn.almGetObj=function(){return alm;};$.fn.almTriggerClick=function(){alm.button.trigger('click');};$.easing.alm_easeInOutQuad=function(x,t,b,c,d){if((t/=d/2)<1){return c/2*t*t+b;}
89
+ return-c/2*((--t)*(t-2)-1)+b;};};$.fn.almFilter=function(transition,speed,data){if(data.target){$(".ajax-load-more-wrap[data-id='"+data.target+"']").each(function(e){var el=$(this);$.fn.almFilterTransition(transition,speed,data,el);});}else{$(".ajax-load-more-wrap").each(function(e){var el=$(this);$.fn.almFilterTransition(transition,speed,data,el);});}};$.fn.almFilterTransition=function(transition,speed,data,el){if(transition==='slide'){el.slideUp(speed,function(){$('.alm-listing',el).html('');$('.alm-btn-wrap',el).remove();el.fadeIn(speed);$.fn.almSetFilters(el,data);});}else if(transition==='fade'){el.fadeOut(speed,function(){$('.alm-listing',el).html('');$('.alm-btn-wrap',el).remove();el.fadeIn(speed);$.fn.almSetFilters(el,data);});}else{$('.alm-listing',el).html('');$('.alm-btn-wrap',el).remove();el.fadeIn(speed);$.fn.almSetFilters(el,data);}};$.fn.almSetFilters=function(el,data){$.each(data,function(key,value){key=key.replace(/\W+/g,'-').replace(/([a-z\d])([A-Z])/g,'$1-$2');$('.alm-listing',el).attr('data-'+key,value);});if($.isFunction($.fn.almFilterComplete)){$.fn.almFilterComplete();}
90
+ if(data.target){$(".ajax-load-more-wrap[data-id="+data.target+"").ajaxloadmore();}else{$(".ajax-load-more-wrap").ajaxloadmore();}};$.fn.ajaxloadmore=function(){return this.each(function(e){$(this).data('alm',new $.ajaxloadmore($(this),e));});};if($(".ajax-load-more-wrap").length){$(".ajax-load-more-wrap").ajaxloadmore();}})(jQuery);;(function(factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory);}else if(typeof exports==='object'){module.exports=factory(require('jquery'));}else{factory(jQuery);}}(function($){var eventNamespace='almWaitForImages';$.almWaitForImages={hasImageProperties:['backgroundImage','listStyleImage','borderImage','borderCornerImage','cursor'],hasImageAttributes:['srcset']};$.expr[':']['has-src']=function(obj){return $(obj).is('img[src][src!=""]');};$.expr[':'].uncached=function(obj){if(!$(obj).is(':has-src')){return false;}
91
  return!obj.complete;};$.fn.almWaitForImages=function(){var allImgsLength=0;var allImgsLoaded=0;var deferred=$.Deferred();var finishedCallback;var eachCallback;var waitForAll;if($.isPlainObject(arguments[0])){waitForAll=arguments[0].waitForAll;eachCallback=arguments[0].each;finishedCallback=arguments[0].finished;}else{if(arguments.length===1&&$.type(arguments[0])==='boolean'){waitForAll=arguments[0];}else{finishedCallback=arguments[0];eachCallback=arguments[1];waitForAll=arguments[2];}}
92
  finishedCallback=finishedCallback||$.noop;eachCallback=eachCallback||$.noop;waitForAll=!!waitForAll;if(!$.isFunction(finishedCallback)||!$.isFunction(eachCallback)){throw new TypeError('An invalid callback was supplied.');}
93
  this.each(function(){var obj=$(this);var allImgs=[];var hasImgProperties=$.almWaitForImages.hasImageProperties||[];var hasImageAttributes=$.almWaitForImages.hasImageAttributes||[];var matchUrl=/url\(\s*(['"]?)(.*?)\1\s*\)/g;if(waitForAll){obj.find('*').addBack().each(function(){var element=$(this);if(element.is('img:has-src')){allImgs.push({src:element.attr('src'),element:element[0]});}
lang/ajax-load-more.pot CHANGED
@@ -1,26 +1,26 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Ajax Load More\n"
4
- "POT-Creation-Date: 2016-11-06 17:42-0500\n"
5
- "PO-Revision-Date: 2016-11-06 17:42-0500\n"
6
- "Last-Translator: Darren Cooney <dcooney@ecentricarts.com>\n"
7
  "Language-Team: \n"
8
  "Language: en_CA\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.6.4\n"
13
  "X-Poedit-Basepath: .\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Poedit-KeywordsList: __;_e\n"
16
  "X-Poedit-SearchPath-0: ..\n"
17
 
18
- #: ../admin/admin.php:94 ../admin/admin.php:125 ../admin/admin.php:689
19
- #: ../admin/admin.php:733 ../admin/admin.php:783
20
  msgid "You don't belong here."
21
  msgstr ""
22
 
23
- #: ../admin/admin.php:155 ../admin/editor/editor-build.php:72
24
  #: ../admin/views/licenses.php:65 ../admin/views/licenses.php:130
25
  #: ../admin/views/licenses.php:195 ../admin/views/licenses.php:261
26
  #: ../admin/views/licenses.php:328 ../admin/views/licenses.php:395
@@ -30,7 +30,7 @@ msgstr ""
30
  msgid "Active"
31
  msgstr ""
32
 
33
- #: ../admin/admin.php:156 ../admin/editor/editor-build.php:73
34
  #: ../admin/views/licenses.php:69 ../admin/views/licenses.php:134
35
  #: ../admin/views/licenses.php:199 ../admin/views/licenses.php:265
36
  #: ../admin/views/licenses.php:332 ../admin/views/licenses.php:399
@@ -40,177 +40,179 @@ msgstr ""
40
  msgid "Inactive"
41
  msgstr ""
42
 
43
- #: ../admin/admin.php:157
44
  msgid "Applying layout"
45
  msgstr ""
46
 
47
- #: ../admin/admin.php:158 ../admin/views/repeater-templates.php:246
 
48
  msgid "Template Updated"
49
  msgstr ""
50
 
51
- #: ../admin/admin.php:160
52
  msgid "Select Author(s)"
53
  msgstr ""
54
 
55
- #: ../admin/admin.php:161
56
  msgid "Select Categories"
57
  msgstr ""
58
 
59
- #: ../admin/admin.php:162
60
  msgid "Select Tags"
61
  msgstr ""
62
 
63
- #: ../admin/admin.php:163 ../admin/editor/editor-build.php:44
 
64
  msgid "Jump to Option"
65
  msgstr ""
66
 
67
- #: ../admin/admin.php:164
68
  msgid "Jump to Template"
69
  msgstr ""
70
 
71
- #: ../admin/admin.php:274
72
  msgid ""
73
  "[Ajax Load More] Error opening default repeater template - Please check your "
74
  "file path and ensure your server is configured to allow Ajax Load More to "
75
  "read and write files within the /ajax-load-more/core/repeater directory"
76
  msgstr ""
77
 
78
- #: ../admin/admin.php:278
79
  msgid ""
80
  "[Ajax Load More] Error updating default repeater template - Please check "
81
  "your file path and ensure your server is configured to allow Ajax Load More "
82
  "to read and write files within the /ajax-load-more/core/repeater directory."
83
  msgstr ""
84
 
85
- #: ../admin/admin.php:647
86
  msgid "[Ajax Load More] Unable to open repeater template - "
87
  msgstr ""
88
 
89
- #: ../admin/admin.php:651
90
  msgid "[Ajax Load More] Error saving repeater template - "
91
  msgstr ""
92
 
93
- #: ../admin/admin.php:684
94
  msgid "Error Writing File"
95
  msgstr ""
96
 
97
- #: ../admin/admin.php:887 ../admin/shortcode-builder/shortcode-builder.php:730
98
  msgid "Container Type"
99
  msgstr ""
100
 
101
- #: ../admin/admin.php:895 ../admin/shortcode-builder/shortcode-builder.php:760
102
  msgid "Container Classes"
103
  msgstr ""
104
 
105
- #: ../admin/admin.php:903
106
  msgid "Disable CSS"
107
  msgstr ""
108
 
109
- #: ../admin/admin.php:911
110
  msgid "Button/Loading Style"
111
  msgstr ""
112
 
113
- #: ../admin/admin.php:919
114
  msgid "Button Classes"
115
  msgstr ""
116
 
117
- #: ../admin/admin.php:927
118
  msgid "Ajax Security"
119
  msgstr ""
120
 
121
- #: ../admin/admin.php:935
122
  msgid "Top of Page"
123
  msgstr ""
124
 
125
- #: ../admin/admin.php:943
126
  msgid "Dynamic Content"
127
  msgstr ""
128
 
129
- #: ../admin/admin.php:951
130
  msgid "Editor Button"
131
  msgstr ""
132
 
133
- #: ../admin/admin.php:959
134
  msgid "Error Notices"
135
  msgstr ""
136
 
137
- #: ../admin/admin.php:1030
138
  msgid ""
139
  "Customize the user experience of Ajax Load More by updating the fields below."
140
  msgstr ""
141
 
142
- #: ../admin/admin.php:1043
143
  msgid "The following settings affect the WordPress admin area only."
144
  msgstr ""
145
 
146
- #: ../admin/admin.php:1074
147
  msgid "I want to use my own CSS styles."
148
  msgstr ""
149
 
150
- #: ../admin/admin.php:1074
151
  msgid "View Ajax Load More CSS"
152
  msgstr ""
153
 
154
- #: ../admin/admin.php:1094
155
  msgid "Hide shortcode button in WYSIWYG editor."
156
  msgstr ""
157
 
158
- #: ../admin/admin.php:1115
159
  msgid ""
160
  "Display error messaging regarding repeater template updates in the browser "
161
  "console."
162
  msgstr ""
163
 
164
- #: ../admin/admin.php:1136
165
  msgid ""
166
  "Disable dynamic population of categories, tags and authors in the Shortcode "
167
  "Builder.<span style=\"display:block\">Recommended if you have an "
168
  "extraordinary number of categories, tags and/or authors."
169
  msgstr ""
170
 
171
- #: ../admin/admin.php:1157 ../admin/admin.php:1160
172
  msgid "Ajax Posts Here"
173
  msgstr ""
174
 
175
- #: ../admin/admin.php:1162
176
  msgid "You can modify the container type when building a shortcode."
177
  msgstr ""
178
 
179
- #: ../admin/admin.php:1179
180
  msgid ""
181
  "Add classes to Ajax Load More container - classes are applied globally and "
182
  "will appear with every instance of Ajax Load More. <span style=\"display:"
183
  "block\">You can also add classes when building a shortcode.</span>"
184
  msgstr ""
185
 
186
- #: ../admin/admin.php:1241
187
  msgid ""
188
  "Select an Ajax loading style - you can choose between a <strong>button</"
189
  "strong> or <strong>infinite scroll</strong>"
190
  msgstr ""
191
 
192
- #: ../admin/admin.php:1262
193
  msgid "Preview"
194
  msgstr ""
195
 
196
- #: ../admin/admin.php:1262
197
  #: ../admin/shortcode-builder/shortcode-builder.php:785
198
  #: ../core/classes/class.alm-shortcode.php:116
199
  msgid "Older Posts"
200
  msgstr ""
201
 
202
- #: ../admin/admin.php:1281
203
  msgid "Add classes to your <strong>Load More</strong> button"
204
  msgstr ""
205
 
206
- #: ../admin/admin.php:1324
207
  msgid ""
208
  "On initial page load, move the user's browser window to the top of the "
209
  "screen.<span style=\"display:block\">This <u>may</u> help prevent the "
210
  "loading of unnecessary posts.</span>"
211
  msgstr ""
212
 
213
- #: ../admin/admin.php:1345
214
  msgid ""
215
  "Enable <a href=\"https://codex.wordpress.org/WordPress_Nonces\" target="
216
  "\"_blank\">WP nonce</a> verification to help protect URLs against certain "
@@ -238,11 +240,11 @@ msgstr ""
238
  msgid "Apply Layout"
239
  msgstr ""
240
 
241
- #: ../admin/includes/components/layout-list.php:13
242
  msgid "Default Layout"
243
  msgstr ""
244
 
245
- #: ../admin/includes/components/layout-list.php:19
246
  msgid ""
247
  "Unlock additional layout templates with the <strong>Layouts add-on</strong>"
248
  msgstr ""
@@ -489,7 +491,7 @@ msgid "Taxonomy Operator:"
489
  msgstr ""
490
 
491
  #: ../admin/shortcode-builder/includes/tax-query-options.php:36
492
- #: ../admin/shortcode-builder/shortcode-builder.php:1276
493
  msgid "Relation:"
494
  msgstr ""
495
 
@@ -811,7 +813,7 @@ msgid "Enable the infinite scrolling of single posts."
811
  msgstr ""
812
 
813
  #: ../admin/shortcode-builder/shortcode-builder.php:464
814
- #: ../admin/shortcode-builder/shortcode-builder.php:1216
815
  msgid "Taxonomy"
816
  msgstr ""
817
 
@@ -826,12 +828,12 @@ msgid "Query previous posts from the same taxonomy."
826
  msgstr ""
827
 
828
  #: ../admin/shortcode-builder/shortcode-builder.php:479
829
- #: ../admin/shortcode-builder/shortcode-builder.php:1097
830
  msgid "Category"
831
  msgstr ""
832
 
833
  #: ../admin/shortcode-builder/shortcode-builder.php:480
834
- #: ../admin/shortcode-builder/shortcode-builder.php:1157
835
  msgid "Tag"
836
  msgstr ""
837
 
@@ -907,9 +909,9 @@ msgid ""
907
  msgstr ""
908
 
909
  #: ../admin/shortcode-builder/shortcode-builder.php:590
910
- #: ../admin/shortcode-builder/shortcode-builder.php:1102
911
- #: ../admin/shortcode-builder/shortcode-builder.php:1161
912
- #: ../admin/shortcode-builder/shortcode-builder.php:1361
913
  msgid "View Example"
914
  msgstr ""
915
 
@@ -1040,7 +1042,7 @@ msgstr ""
1040
 
1041
  #: ../admin/shortcode-builder/shortcode-builder.php:838
1042
  msgid ""
1043
- "Do <u>NOT</u> load any posts until user the clicks <em>Load More</em> button."
1044
  msgstr ""
1045
 
1046
  #: ../admin/shortcode-builder/shortcode-builder.php:860
@@ -1169,196 +1171,197 @@ msgstr ""
1169
  msgid "Select Post Types to query."
1170
  msgstr ""
1171
 
1172
- #: ../admin/shortcode-builder/shortcode-builder.php:1068
1173
  msgid "Post Format"
1174
  msgstr ""
1175
 
1176
- #: ../admin/shortcode-builder/shortcode-builder.php:1071
1177
  msgid ""
1178
  "Select a <a href=\"http://codex.wordpress.org/Post_Formats\" target=\"_blank"
1179
  "\">Post Format</a> to query."
1180
  msgstr ""
1181
 
1182
- #: ../admin/shortcode-builder/shortcode-builder.php:1074
1183
  msgid "Select Post Format"
1184
  msgstr ""
1185
 
1186
- #: ../admin/shortcode-builder/shortcode-builder.php:1075
1187
  msgid "Standard"
1188
  msgstr ""
1189
 
1190
- #: ../admin/shortcode-builder/shortcode-builder.php:1101
1191
  msgid ""
1192
  "A comma separated list of categories to include by slug. (design, research "
1193
  "etc...)"
1194
  msgstr ""
1195
 
1196
- #: ../admin/shortcode-builder/shortcode-builder.php:1124
1197
- #: ../admin/shortcode-builder/shortcode-builder.php:1182
1198
- #: ../admin/shortcode-builder/shortcode-builder.php:1360
1199
  msgid "Exclude"
1200
  msgstr ""
1201
 
1202
- #: ../admin/shortcode-builder/shortcode-builder.php:1125
1203
  msgid ""
1204
  "A comma separated list of categories to exclude by ID. (3, 12, 35 etc..)"
1205
  msgstr ""
1206
 
1207
- #: ../admin/shortcode-builder/shortcode-builder.php:1160
1208
- #: ../admin/shortcode-builder/shortcode-builder.php:1349
1209
  msgid "Include"
1210
  msgstr ""
1211
 
1212
- #: ../admin/shortcode-builder/shortcode-builder.php:1161
1213
  msgid ""
1214
  "A comma separated list of tags to include by slug. (toronto, canada etc...)"
1215
  msgstr ""
1216
 
1217
- #: ../admin/shortcode-builder/shortcode-builder.php:1183
1218
  msgid "A comma separated list of tags to exclude by ID. (30, 12, 99 etc..)"
1219
  msgstr ""
1220
 
1221
- #: ../admin/shortcode-builder/shortcode-builder.php:1219
1222
  msgid "Select a taxonomy then select the terms and an operator."
1223
  msgstr ""
1224
 
1225
- #: ../admin/shortcode-builder/shortcode-builder.php:1234
 
 
 
 
 
1226
  msgid "Date"
1227
  msgstr ""
1228
 
1229
- #: ../admin/shortcode-builder/shortcode-builder.php:1237
1230
  msgid ""
1231
  "Enter a year, month(number) and day to query by date archive.<br/>&raquo; <a "
1232
  "href=\"admin.php?page=ajax-load-more-examples#example-date\">View Example</a>"
1233
  msgstr ""
1234
 
1235
- #: ../admin/shortcode-builder/shortcode-builder.php:1243
1236
  msgid "Year:"
1237
  msgstr ""
1238
 
1239
- #: ../admin/shortcode-builder/shortcode-builder.php:1247
1240
  msgid "Month:"
1241
  msgstr ""
1242
 
1243
- #: ../admin/shortcode-builder/shortcode-builder.php:1251
1244
  msgid "Day:"
1245
  msgstr ""
1246
 
1247
- #: ../admin/shortcode-builder/shortcode-builder.php:1262
1248
  msgid "Custom Fields (Meta_Query)"
1249
  msgstr ""
1250
 
1251
- #: ../admin/shortcode-builder/shortcode-builder.php:1265
1252
  msgid ""
1253
  "Query for <a href=\"http://codex.wordpress.org/Class_Reference/WP_Meta_Query"
1254
  "\" target=\"_blank\">custom field</a> by entering a custom field key, value "
1255
  "and operator."
1256
  msgstr ""
1257
 
1258
- #: ../admin/shortcode-builder/shortcode-builder.php:1276
1259
  msgid ""
1260
  "The logical relationship between each custom field when there is more than "
1261
  "one."
1262
  msgstr ""
1263
 
1264
- #: ../admin/shortcode-builder/shortcode-builder.php:1290
1265
- msgid "Add Another"
1266
- msgstr ""
1267
-
1268
- #: ../admin/shortcode-builder/shortcode-builder.php:1306
1269
  msgid "Author"
1270
  msgstr ""
1271
 
1272
- #: ../admin/shortcode-builder/shortcode-builder.php:1309
1273
  msgid "Select an Author to query(by ID)."
1274
  msgstr ""
1275
 
1276
- #: ../admin/shortcode-builder/shortcode-builder.php:1330
1277
  msgid "Search Term"
1278
  msgstr ""
1279
 
1280
- #: ../admin/shortcode-builder/shortcode-builder.php:1333
1281
  msgid "Enter a search term to query."
1282
  msgstr ""
1283
 
1284
- #: ../admin/shortcode-builder/shortcode-builder.php:1337
1285
  msgid "Enter search term"
1286
  msgstr ""
1287
 
1288
- #: ../admin/shortcode-builder/shortcode-builder.php:1346
1289
  msgid "Post Parameters"
1290
  msgstr ""
1291
 
1292
- #: ../admin/shortcode-builder/shortcode-builder.php:1350
1293
  msgid "A comma separated list of post ID's to query."
1294
  msgstr ""
1295
 
1296
- #: ../admin/shortcode-builder/shortcode-builder.php:1354
1297
  msgid "225, 340, 818, etc..."
1298
  msgstr ""
1299
 
1300
- #: ../admin/shortcode-builder/shortcode-builder.php:1361
1301
  msgid "A comma separated list of post ID's to exclude from query."
1302
  msgstr ""
1303
 
1304
- #: ../admin/shortcode-builder/shortcode-builder.php:1371
1305
  msgid "Post Status"
1306
  msgstr ""
1307
 
1308
- #: ../admin/shortcode-builder/shortcode-builder.php:1371
1309
  msgid ""
1310
  "Post Status parameters are only available for logged in (admin) users. Non "
1311
  "logged in users will only have access to view content in a 'publish' or "
1312
  "'inherit' state. "
1313
  msgstr ""
1314
 
1315
- #: ../admin/shortcode-builder/shortcode-builder.php:1372
1316
  msgid "Select status of the post."
1317
  msgstr ""
1318
 
1319
- #: ../admin/shortcode-builder/shortcode-builder.php:1377
1320
  msgid "Published"
1321
  msgstr ""
1322
 
1323
- #: ../admin/shortcode-builder/shortcode-builder.php:1394
1324
  msgid "Ordering"
1325
  msgstr ""
1326
 
1327
- #: ../admin/shortcode-builder/shortcode-builder.php:1397
1328
  msgid "Sort posts by Order and Orderby parameters."
1329
  msgstr ""
1330
 
1331
- #: ../admin/shortcode-builder/shortcode-builder.php:1401
1332
  msgid "Order"
1333
  msgstr ""
1334
 
1335
- #: ../admin/shortcode-builder/shortcode-builder.php:1408
1336
  msgid "Order By"
1337
  msgstr ""
1338
 
1339
- #: ../admin/shortcode-builder/shortcode-builder.php:1428
1340
  msgid "Offset"
1341
  msgstr ""
1342
 
1343
- #: ../admin/shortcode-builder/shortcode-builder.php:1431
1344
  msgid "Offset the initial query by <em>'n'</em> number of posts"
1345
  msgstr ""
1346
 
1347
- #: ../admin/shortcode-builder/shortcode-builder.php:1444
1348
  msgid "Custom Arguments"
1349
  msgstr ""
1350
 
1351
- #: ../admin/shortcode-builder/shortcode-builder.php:1447
1352
  msgid "A semicolon separated list of custom value:pair arguments."
1353
  msgstr ""
1354
 
1355
- #: ../admin/shortcode-builder/shortcode-builder.php:1447
1356
  msgid ""
1357
  "Custom Arguments can be used to query by parameters not available in the "
1358
  "Shortcode Builder."
1359
  msgstr ""
1360
 
1361
- #: ../admin/shortcode-builder/shortcode-builder.php:1451
1362
  msgid "event_display:upcoming"
1363
  msgstr ""
1364
 
@@ -1560,8 +1563,8 @@ msgstr ""
1560
  msgid "Shortcode for use on tag archive pages."
1561
  msgstr ""
1562
 
1563
- #: ../admin/views/examples.php:69 ../admin/views/shortcode-builder.php:13
1564
- msgid "Back to Top"
1565
  msgstr ""
1566
 
1567
  #: ../admin/views/help.php:5
@@ -1730,7 +1733,7 @@ msgid "Updating template..."
1730
  msgstr ""
1731
 
1732
  #: ../admin/views/repeater-templates.php:286
1733
- msgid "Templating Help"
1734
  msgstr ""
1735
 
1736
  #: ../admin/views/repeater-templates.php:288
@@ -1739,23 +1742,14 @@ msgstr ""
1739
 
1740
  #: ../admin/views/repeater-templates.php:289
1741
  msgid ""
1742
- "A repeater template is a snippet of code that will execute over and over "
1743
- "within a <a href=\"http://codex.wordpress.org/The_Loop\" target=\"_blank"
1744
- "\">WordPress loop</a>.</p>"
 
1745
  msgstr ""
1746
 
1747
- #: ../admin/views/repeater-templates.php:292
1748
- msgid "Can I include PHP in the repeater template?"
1749
- msgstr ""
1750
-
1751
- #: ../admin/views/repeater-templates.php:293
1752
- msgid ""
1753
- "Yes, PHP and core WordPress functions such as, <code>the_title()</code> and "
1754
- "<code>the_permalink()</code> are required.</p>"
1755
- msgstr ""
1756
-
1757
- #: ../admin/views/repeater-templates.php:295
1758
- msgid "Learn More"
1759
  msgstr ""
1760
 
1761
  #: ../admin/views/settings.php:5
@@ -1813,6 +1807,10 @@ msgid ""
1813
  "shortcodes/\" target=\"_blank\">shortcode</a> by adjusting the values below"
1814
  msgstr ""
1815
 
 
 
 
 
1816
  #: ../admin/views/shortcode-builder.php:21
1817
  msgid "Shortcode Output"
1818
  msgstr ""
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Ajax Load More\n"
4
+ "POT-Creation-Date: 2016-12-05 22:43-0500\n"
5
+ "PO-Revision-Date: 2016-12-05 22:43-0500\n"
6
+ "Last-Translator: Darren Cooney <darren.cooney@gmail.com>\n"
7
  "Language-Team: \n"
8
  "Language: en_CA\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.6.7\n"
13
  "X-Poedit-Basepath: .\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Poedit-KeywordsList: __;_e\n"
16
  "X-Poedit-SearchPath-0: ..\n"
17
 
18
+ #: ../admin/admin.php:94 ../admin/admin.php:153 ../admin/admin.php:719
19
+ #: ../admin/admin.php:763 ../admin/admin.php:813
20
  msgid "You don't belong here."
21
  msgstr ""
22
 
23
+ #: ../admin/admin.php:183 ../admin/editor/editor-build.php:72
24
  #: ../admin/views/licenses.php:65 ../admin/views/licenses.php:130
25
  #: ../admin/views/licenses.php:195 ../admin/views/licenses.php:261
26
  #: ../admin/views/licenses.php:328 ../admin/views/licenses.php:395
30
  msgid "Active"
31
  msgstr ""
32
 
33
+ #: ../admin/admin.php:184 ../admin/editor/editor-build.php:73
34
  #: ../admin/views/licenses.php:69 ../admin/views/licenses.php:134
35
  #: ../admin/views/licenses.php:199 ../admin/views/licenses.php:265
36
  #: ../admin/views/licenses.php:332 ../admin/views/licenses.php:399
40
  msgid "Inactive"
41
  msgstr ""
42
 
43
+ #: ../admin/admin.php:185 ../admin/editor/editor-build.php:74
44
  msgid "Applying layout"
45
  msgstr ""
46
 
47
+ #: ../admin/admin.php:186 ../admin/editor/editor-build.php:75
48
+ #: ../admin/views/repeater-templates.php:246
49
  msgid "Template Updated"
50
  msgstr ""
51
 
52
+ #: ../admin/admin.php:188 ../admin/editor/editor-build.php:77
53
  msgid "Select Author(s)"
54
  msgstr ""
55
 
56
+ #: ../admin/admin.php:189 ../admin/editor/editor-build.php:78
57
  msgid "Select Categories"
58
  msgstr ""
59
 
60
+ #: ../admin/admin.php:190 ../admin/editor/editor-build.php:79
61
  msgid "Select Tags"
62
  msgstr ""
63
 
64
+ #: ../admin/admin.php:191 ../admin/editor/editor-build.php:44
65
+ #: ../admin/editor/editor-build.php:80
66
  msgid "Jump to Option"
67
  msgstr ""
68
 
69
+ #: ../admin/admin.php:192 ../admin/editor/editor-build.php:81
70
  msgid "Jump to Template"
71
  msgstr ""
72
 
73
+ #: ../admin/admin.php:302
74
  msgid ""
75
  "[Ajax Load More] Error opening default repeater template - Please check your "
76
  "file path and ensure your server is configured to allow Ajax Load More to "
77
  "read and write files within the /ajax-load-more/core/repeater directory"
78
  msgstr ""
79
 
80
+ #: ../admin/admin.php:306
81
  msgid ""
82
  "[Ajax Load More] Error updating default repeater template - Please check "
83
  "your file path and ensure your server is configured to allow Ajax Load More "
84
  "to read and write files within the /ajax-load-more/core/repeater directory."
85
  msgstr ""
86
 
87
+ #: ../admin/admin.php:677
88
  msgid "[Ajax Load More] Unable to open repeater template - "
89
  msgstr ""
90
 
91
+ #: ../admin/admin.php:681
92
  msgid "[Ajax Load More] Error saving repeater template - "
93
  msgstr ""
94
 
95
+ #: ../admin/admin.php:714
96
  msgid "Error Writing File"
97
  msgstr ""
98
 
99
+ #: ../admin/admin.php:917 ../admin/shortcode-builder/shortcode-builder.php:730
100
  msgid "Container Type"
101
  msgstr ""
102
 
103
+ #: ../admin/admin.php:925 ../admin/shortcode-builder/shortcode-builder.php:760
104
  msgid "Container Classes"
105
  msgstr ""
106
 
107
+ #: ../admin/admin.php:933
108
  msgid "Disable CSS"
109
  msgstr ""
110
 
111
+ #: ../admin/admin.php:941
112
  msgid "Button/Loading Style"
113
  msgstr ""
114
 
115
+ #: ../admin/admin.php:949
116
  msgid "Button Classes"
117
  msgstr ""
118
 
119
+ #: ../admin/admin.php:957
120
  msgid "Ajax Security"
121
  msgstr ""
122
 
123
+ #: ../admin/admin.php:965
124
  msgid "Top of Page"
125
  msgstr ""
126
 
127
+ #: ../admin/admin.php:973
128
  msgid "Dynamic Content"
129
  msgstr ""
130
 
131
+ #: ../admin/admin.php:981
132
  msgid "Editor Button"
133
  msgstr ""
134
 
135
+ #: ../admin/admin.php:989
136
  msgid "Error Notices"
137
  msgstr ""
138
 
139
+ #: ../admin/admin.php:1060
140
  msgid ""
141
  "Customize the user experience of Ajax Load More by updating the fields below."
142
  msgstr ""
143
 
144
+ #: ../admin/admin.php:1073
145
  msgid "The following settings affect the WordPress admin area only."
146
  msgstr ""
147
 
148
+ #: ../admin/admin.php:1104
149
  msgid "I want to use my own CSS styles."
150
  msgstr ""
151
 
152
+ #: ../admin/admin.php:1104
153
  msgid "View Ajax Load More CSS"
154
  msgstr ""
155
 
156
+ #: ../admin/admin.php:1124
157
  msgid "Hide shortcode button in WYSIWYG editor."
158
  msgstr ""
159
 
160
+ #: ../admin/admin.php:1145
161
  msgid ""
162
  "Display error messaging regarding repeater template updates in the browser "
163
  "console."
164
  msgstr ""
165
 
166
+ #: ../admin/admin.php:1166
167
  msgid ""
168
  "Disable dynamic population of categories, tags and authors in the Shortcode "
169
  "Builder.<span style=\"display:block\">Recommended if you have an "
170
  "extraordinary number of categories, tags and/or authors."
171
  msgstr ""
172
 
173
+ #: ../admin/admin.php:1187 ../admin/admin.php:1190
174
  msgid "Ajax Posts Here"
175
  msgstr ""
176
 
177
+ #: ../admin/admin.php:1192
178
  msgid "You can modify the container type when building a shortcode."
179
  msgstr ""
180
 
181
+ #: ../admin/admin.php:1209
182
  msgid ""
183
  "Add classes to Ajax Load More container - classes are applied globally and "
184
  "will appear with every instance of Ajax Load More. <span style=\"display:"
185
  "block\">You can also add classes when building a shortcode.</span>"
186
  msgstr ""
187
 
188
+ #: ../admin/admin.php:1271
189
  msgid ""
190
  "Select an Ajax loading style - you can choose between a <strong>button</"
191
  "strong> or <strong>infinite scroll</strong>"
192
  msgstr ""
193
 
194
+ #: ../admin/admin.php:1292
195
  msgid "Preview"
196
  msgstr ""
197
 
198
+ #: ../admin/admin.php:1292
199
  #: ../admin/shortcode-builder/shortcode-builder.php:785
200
  #: ../core/classes/class.alm-shortcode.php:116
201
  msgid "Older Posts"
202
  msgstr ""
203
 
204
+ #: ../admin/admin.php:1311
205
  msgid "Add classes to your <strong>Load More</strong> button"
206
  msgstr ""
207
 
208
+ #: ../admin/admin.php:1354
209
  msgid ""
210
  "On initial page load, move the user's browser window to the top of the "
211
  "screen.<span style=\"display:block\">This <u>may</u> help prevent the "
212
  "loading of unnecessary posts.</span>"
213
  msgstr ""
214
 
215
+ #: ../admin/admin.php:1375
216
  msgid ""
217
  "Enable <a href=\"https://codex.wordpress.org/WordPress_Nonces\" target="
218
  "\"_blank\">WP nonce</a> verification to help protect URLs against certain "
240
  msgid "Apply Layout"
241
  msgstr ""
242
 
243
+ #: ../admin/includes/components/layout-list.php:16
244
  msgid "Default Layout"
245
  msgstr ""
246
 
247
+ #: ../admin/includes/components/layout-list.php:25
248
  msgid ""
249
  "Unlock additional layout templates with the <strong>Layouts add-on</strong>"
250
  msgstr ""
491
  msgstr ""
492
 
493
  #: ../admin/shortcode-builder/includes/tax-query-options.php:36
494
+ #: ../admin/shortcode-builder/shortcode-builder.php:1277
495
  msgid "Relation:"
496
  msgstr ""
497
 
813
  msgstr ""
814
 
815
  #: ../admin/shortcode-builder/shortcode-builder.php:464
816
+ #: ../admin/shortcode-builder/shortcode-builder.php:1217
817
  msgid "Taxonomy"
818
  msgstr ""
819
 
828
  msgstr ""
829
 
830
  #: ../admin/shortcode-builder/shortcode-builder.php:479
831
+ #: ../admin/shortcode-builder/shortcode-builder.php:1098
832
  msgid "Category"
833
  msgstr ""
834
 
835
  #: ../admin/shortcode-builder/shortcode-builder.php:480
836
+ #: ../admin/shortcode-builder/shortcode-builder.php:1158
837
  msgid "Tag"
838
  msgstr ""
839
 
909
  msgstr ""
910
 
911
  #: ../admin/shortcode-builder/shortcode-builder.php:590
912
+ #: ../admin/shortcode-builder/shortcode-builder.php:1103
913
+ #: ../admin/shortcode-builder/shortcode-builder.php:1162
914
+ #: ../admin/shortcode-builder/shortcode-builder.php:1362
915
  msgid "View Example"
916
  msgstr ""
917
 
1042
 
1043
  #: ../admin/shortcode-builder/shortcode-builder.php:838
1044
  msgid ""
1045
+ "Do <u>NOT</u> load any posts until user clicks the <em>Load More</em> button."
1046
  msgstr ""
1047
 
1048
  #: ../admin/shortcode-builder/shortcode-builder.php:860
1171
  msgid "Select Post Types to query."
1172
  msgstr ""
1173
 
1174
+ #: ../admin/shortcode-builder/shortcode-builder.php:1069
1175
  msgid "Post Format"
1176
  msgstr ""
1177
 
1178
+ #: ../admin/shortcode-builder/shortcode-builder.php:1072
1179
  msgid ""
1180
  "Select a <a href=\"http://codex.wordpress.org/Post_Formats\" target=\"_blank"
1181
  "\">Post Format</a> to query."
1182
  msgstr ""
1183
 
1184
+ #: ../admin/shortcode-builder/shortcode-builder.php:1075
1185
  msgid "Select Post Format"
1186
  msgstr ""
1187
 
1188
+ #: ../admin/shortcode-builder/shortcode-builder.php:1076
1189
  msgid "Standard"
1190
  msgstr ""
1191
 
1192
+ #: ../admin/shortcode-builder/shortcode-builder.php:1102
1193
  msgid ""
1194
  "A comma separated list of categories to include by slug. (design, research "
1195
  "etc...)"
1196
  msgstr ""
1197
 
1198
+ #: ../admin/shortcode-builder/shortcode-builder.php:1125
1199
+ #: ../admin/shortcode-builder/shortcode-builder.php:1183
1200
+ #: ../admin/shortcode-builder/shortcode-builder.php:1361
1201
  msgid "Exclude"
1202
  msgstr ""
1203
 
1204
+ #: ../admin/shortcode-builder/shortcode-builder.php:1126
1205
  msgid ""
1206
  "A comma separated list of categories to exclude by ID. (3, 12, 35 etc..)"
1207
  msgstr ""
1208
 
1209
+ #: ../admin/shortcode-builder/shortcode-builder.php:1161
1210
+ #: ../admin/shortcode-builder/shortcode-builder.php:1350
1211
  msgid "Include"
1212
  msgstr ""
1213
 
1214
+ #: ../admin/shortcode-builder/shortcode-builder.php:1162
1215
  msgid ""
1216
  "A comma separated list of tags to include by slug. (toronto, canada etc...)"
1217
  msgstr ""
1218
 
1219
+ #: ../admin/shortcode-builder/shortcode-builder.php:1184
1220
  msgid "A comma separated list of tags to exclude by ID. (30, 12, 99 etc..)"
1221
  msgstr ""
1222
 
1223
+ #: ../admin/shortcode-builder/shortcode-builder.php:1220
1224
  msgid "Select a taxonomy then select the terms and an operator."
1225
  msgstr ""
1226
 
1227
+ #: ../admin/shortcode-builder/shortcode-builder.php:1225
1228
+ #: ../admin/shortcode-builder/shortcode-builder.php:1291
1229
+ msgid "Add Another"
1230
+ msgstr ""
1231
+
1232
+ #: ../admin/shortcode-builder/shortcode-builder.php:1235
1233
  msgid "Date"
1234
  msgstr ""
1235
 
1236
+ #: ../admin/shortcode-builder/shortcode-builder.php:1238
1237
  msgid ""
1238
  "Enter a year, month(number) and day to query by date archive.<br/>&raquo; <a "
1239
  "href=\"admin.php?page=ajax-load-more-examples#example-date\">View Example</a>"
1240
  msgstr ""
1241
 
1242
+ #: ../admin/shortcode-builder/shortcode-builder.php:1244
1243
  msgid "Year:"
1244
  msgstr ""
1245
 
1246
+ #: ../admin/shortcode-builder/shortcode-builder.php:1248
1247
  msgid "Month:"
1248
  msgstr ""
1249
 
1250
+ #: ../admin/shortcode-builder/shortcode-builder.php:1252
1251
  msgid "Day:"
1252
  msgstr ""
1253
 
1254
+ #: ../admin/shortcode-builder/shortcode-builder.php:1263
1255
  msgid "Custom Fields (Meta_Query)"
1256
  msgstr ""
1257
 
1258
+ #: ../admin/shortcode-builder/shortcode-builder.php:1266
1259
  msgid ""
1260
  "Query for <a href=\"http://codex.wordpress.org/Class_Reference/WP_Meta_Query"
1261
  "\" target=\"_blank\">custom field</a> by entering a custom field key, value "
1262
  "and operator."
1263
  msgstr ""
1264
 
1265
+ #: ../admin/shortcode-builder/shortcode-builder.php:1277
1266
  msgid ""
1267
  "The logical relationship between each custom field when there is more than "
1268
  "one."
1269
  msgstr ""
1270
 
1271
+ #: ../admin/shortcode-builder/shortcode-builder.php:1307
 
 
 
 
1272
  msgid "Author"
1273
  msgstr ""
1274
 
1275
+ #: ../admin/shortcode-builder/shortcode-builder.php:1310
1276
  msgid "Select an Author to query(by ID)."
1277
  msgstr ""
1278
 
1279
+ #: ../admin/shortcode-builder/shortcode-builder.php:1331
1280
  msgid "Search Term"
1281
  msgstr ""
1282
 
1283
+ #: ../admin/shortcode-builder/shortcode-builder.php:1334
1284
  msgid "Enter a search term to query."
1285
  msgstr ""
1286
 
1287
+ #: ../admin/shortcode-builder/shortcode-builder.php:1338
1288
  msgid "Enter search term"
1289
  msgstr ""
1290
 
1291
+ #: ../admin/shortcode-builder/shortcode-builder.php:1347
1292
  msgid "Post Parameters"
1293
  msgstr ""
1294
 
1295
+ #: ../admin/shortcode-builder/shortcode-builder.php:1351
1296
  msgid "A comma separated list of post ID's to query."
1297
  msgstr ""
1298
 
1299
+ #: ../admin/shortcode-builder/shortcode-builder.php:1355
1300
  msgid "225, 340, 818, etc..."
1301
  msgstr ""
1302
 
1303
+ #: ../admin/shortcode-builder/shortcode-builder.php:1362
1304
  msgid "A comma separated list of post ID's to exclude from query."
1305
  msgstr ""
1306
 
1307
+ #: ../admin/shortcode-builder/shortcode-builder.php:1372
1308
  msgid "Post Status"
1309
  msgstr ""
1310
 
1311
+ #: ../admin/shortcode-builder/shortcode-builder.php:1372
1312
  msgid ""
1313
  "Post Status parameters are only available for logged in (admin) users. Non "
1314
  "logged in users will only have access to view content in a 'publish' or "
1315
  "'inherit' state. "
1316
  msgstr ""
1317
 
1318
+ #: ../admin/shortcode-builder/shortcode-builder.php:1373
1319
  msgid "Select status of the post."
1320
  msgstr ""
1321
 
1322
+ #: ../admin/shortcode-builder/shortcode-builder.php:1378
1323
  msgid "Published"
1324
  msgstr ""
1325
 
1326
+ #: ../admin/shortcode-builder/shortcode-builder.php:1395
1327
  msgid "Ordering"
1328
  msgstr ""
1329
 
1330
+ #: ../admin/shortcode-builder/shortcode-builder.php:1398
1331
  msgid "Sort posts by Order and Orderby parameters."
1332
  msgstr ""
1333
 
1334
+ #: ../admin/shortcode-builder/shortcode-builder.php:1402
1335
  msgid "Order"
1336
  msgstr ""
1337
 
1338
+ #: ../admin/shortcode-builder/shortcode-builder.php:1409
1339
  msgid "Order By"
1340
  msgstr ""
1341
 
1342
+ #: ../admin/shortcode-builder/shortcode-builder.php:1429
1343
  msgid "Offset"
1344
  msgstr ""
1345
 
1346
+ #: ../admin/shortcode-builder/shortcode-builder.php:1432
1347
  msgid "Offset the initial query by <em>'n'</em> number of posts"
1348
  msgstr ""
1349
 
1350
+ #: ../admin/shortcode-builder/shortcode-builder.php:1445
1351
  msgid "Custom Arguments"
1352
  msgstr ""
1353
 
1354
+ #: ../admin/shortcode-builder/shortcode-builder.php:1448
1355
  msgid "A semicolon separated list of custom value:pair arguments."
1356
  msgstr ""
1357
 
1358
+ #: ../admin/shortcode-builder/shortcode-builder.php:1448
1359
  msgid ""
1360
  "Custom Arguments can be used to query by parameters not available in the "
1361
  "Shortcode Builder."
1362
  msgstr ""
1363
 
1364
+ #: ../admin/shortcode-builder/shortcode-builder.php:1452
1365
  msgid "event_display:upcoming"
1366
  msgstr ""
1367
 
1563
  msgid "Shortcode for use on tag archive pages."
1564
  msgstr ""
1565
 
1566
+ #: ../admin/views/examples.php:77
1567
+ msgid "View All Examples"
1568
  msgstr ""
1569
 
1570
  #: ../admin/views/help.php:5
1733
  msgstr ""
1734
 
1735
  #: ../admin/views/repeater-templates.php:286
1736
+ msgid "Repeater Template Help"
1737
  msgstr ""
1738
 
1739
  #: ../admin/views/repeater-templates.php:288
1742
 
1743
  #: ../admin/views/repeater-templates.php:289
1744
  msgid ""
1745
+ "A <a href=\"https://connekthq.com/plugins/ajax-load-more/docs/repeater-"
1746
+ "templates/\" target=\"_blank\">repeater template</a> is a snippet of code "
1747
+ "that will execute over and over within a <a href=\"http://codex.wordpress."
1748
+ "org/The_Loop\" target=\"_blank\">WordPress loop</a>"
1749
  msgstr ""
1750
 
1751
+ #: ../admin/views/repeater-templates.php:291
1752
+ msgid "More About Templating"
 
 
 
 
 
 
 
 
 
 
1753
  msgstr ""
1754
 
1755
  #: ../admin/views/settings.php:5
1807
  "shortcodes/\" target=\"_blank\">shortcode</a> by adjusting the values below"
1808
  msgstr ""
1809
 
1810
+ #: ../admin/views/shortcode-builder.php:13
1811
+ msgid "Back to Top"
1812
+ msgstr ""
1813
+
1814
  #: ../admin/views/shortcode-builder.php:21
1815
  msgid "Shortcode Output"
1816
  msgstr ""