WordPress Infinite Scroll – Ajax Load More - Version 2.11.2

Version Description

  • August 4, 2016 =
  • SECURITY - Security fix for Custom Repeaters and Theme Repeaters include file path.
  • FIX - Removed duplicate #ajax-load-more id's being generated when using multiple instances. #ajax-load-more will now only be attached to the 1st instance of the shortcode - please update your CSS if you are targeting the #ajax-load-more ID.
  • FIX - Updated code used to split pages with Search Engine Optimization add-on.
  • FIX - Issue where SEO License key input was not displaying for some users.
  • FIX - Issue for double popstate trigger with Paging + SEO add-on.
  • UPDATE - Various code improvements.
  • NEW - Adding functionality for upcoming Call to Actions add-on.
Download this release

Release Info

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

Code changes from version 2.11.1 to 2.11.2

README.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: dcooney
3
  Donate link: https://connekthq.com/donate/
4
  Tags: infinite scroll, scroll, infinite, lazy load, lazy loading, pagination, ajax pagination, ajax, ajax posts, ajax load posts, loop, query, dynamic, shortcode builder, wp_query, search, tags, category, post types, taxonomy, meta_query, archives, date, infinite scrolling, woocommerce
5
  Requires at least: 3.6
6
- Tested up to: 4.5.2
7
- Stable tag: 2.11.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -51,7 +51,6 @@ Check out the examples below:
51
  Ajax Load More accepts a number of parameters that are passed to the WordPress query. These parameters are transferred via shortcode - don't worry, creating your custom shortcode is simple with the intuitive [Shortcode Builder](https://connekthq.com/plugins/ajax-load-more/screenshots/#shortcode-builder)
52
 
53
  * **repeater** - Choose a repeater template (<a href="https://connekthq.com/plugins/ajax-load-more/custom-repeaters/">Add-on available</a>). Default = ‘default’
54
- * **theme_repeater** - Select from a list of template files in your current theme directory (<a href="https://connekthq.com/plugins/ajax-load-more/add-ons/theme-repeaters/">Add-on only</a>). Default = null
55
  * **post_type** - Comma separated list of post types. Default = ‘post’
56
  * **post_format** - Query by post format. Default = null
57
  * **category** - A comma separated list of categories to include by slug. Default = null
@@ -95,17 +94,6 @@ Ajax Load More accepts a number of parameters that are passed to the WordPress q
95
  * **button_loading_label** - Update the text of the Load More button while content is loading. Default = null
96
  * **container_type** - Override the global Container Type that was set on ALM Settings page. Default = null
97
  * **css_classes** - Add custom CSS classes to the Ajax Load More container. Default = null
98
- * **cache** - Turn on content caching for the specific Ajax Load More query. <a href="https://connekthq.com/plugins/ajax-load-more/cache/">add-on only</a> - (true/false). Default = ‘false’
99
- * **cache_id** - A unique 10 digit ID for the cached query. <a href="https://connekthq.com/plugins/ajax-load-more/cache/">add-on only</a> - Default = A random 10 digit integer
100
- * **seo** - Enable address bar URL rewrites as users page through content - <a href="https://connekthq.com/plugins/ajax-load-more/search-engine-optimization/">add-on only</a> (true/false). Default = ‘false’
101
- * **preloaded** - Should Ajax Load More preload posts? <a href="https://connekthq.com/plugins/ajax-load-more/preloaded/">add-on only</a> - (true/false). Default = ‘false’
102
- * **preloaded_amount** - The amount of posts to preload. <a href="https://connekthq.com/plugins/ajax-load-more/preloaded/">add-on only</a> - Default = ‘5’
103
- * **paging** - Replace infinite scrolling with a paged navigation system. <a href="https://connekthq.com/plugins/ajax-load-more/paging/">add-on only</a> (true/false). Default = ‘false’
104
- * **paging_controls** - Show previous(«) and next(») buttons (true/false). Default = ‘false’
105
- * **paging_classes** - Add classes to the paging navigation menu for CSS styling.
106
- * **paging_show_at_most** - Maximum amount of pages to show at a time. 0 = no maximum. Default = ‘0’
107
-
108
-
109
  ***
110
 
111
  = Example Shortcode =
@@ -330,10 +318,20 @@ How to install Ajax Load More.
330
 
331
  == Changelog ==
332
 
 
 
 
 
 
 
 
 
 
 
333
  = 2.11.1 - May 30, 2016 =
334
  * SECURITY - Security fix for posts_status parameter. posts_status is now only available for logged in (admin) users. Non logged in users will only have access to view content in a 'publish' state.
335
  * UPDATE - Added support for preloading comments with the Comments and Preloaded add-ons.
336
- * Shortcode Builder UI improvments
337
 
338
 
339
  = 2.11.0 - May 25, 2016 =
3
  Donate link: https://connekthq.com/donate/
4
  Tags: infinite scroll, scroll, infinite, lazy load, lazy loading, pagination, ajax pagination, ajax, ajax posts, ajax load posts, loop, query, dynamic, shortcode builder, wp_query, search, tags, category, post types, taxonomy, meta_query, archives, date, infinite scrolling, woocommerce
5
  Requires at least: 3.6
6
+ Tested up to: 4.6
7
+ Stable tag: 2.11.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
51
  Ajax Load More accepts a number of parameters that are passed to the WordPress query. These parameters are transferred via shortcode - don't worry, creating your custom shortcode is simple with the intuitive [Shortcode Builder](https://connekthq.com/plugins/ajax-load-more/screenshots/#shortcode-builder)
52
 
53
  * **repeater** - Choose a repeater template (<a href="https://connekthq.com/plugins/ajax-load-more/custom-repeaters/">Add-on available</a>). Default = ‘default’
 
54
  * **post_type** - Comma separated list of post types. Default = ‘post’
55
  * **post_format** - Query by post format. Default = null
56
  * **category** - A comma separated list of categories to include by slug. Default = null
94
  * **button_loading_label** - Update the text of the Load More button while content is loading. Default = null
95
  * **container_type** - Override the global Container Type that was set on ALM Settings page. Default = null
96
  * **css_classes** - Add custom CSS classes to the Ajax Load More container. Default = null
 
 
 
 
 
 
 
 
 
 
 
97
  ***
98
 
99
  = Example Shortcode =
318
 
319
  == Changelog ==
320
 
321
+ = 2.11.2 - August 4, 2016 =
322
+ * SECURITY - Security fix for Custom Repeaters and Theme Repeaters include file path.
323
+ * FIX - Removed duplicate #ajax-load-more id's being generated when using multiple instances. #ajax-load-more will now only be attached to the 1st instance of the shortcode - please update your CSS if you are targeting the #ajax-load-more ID.
324
+ * FIX - Updated code used to split pages with Search Engine Optimization add-on.
325
+ * FIX - Issue where SEO License key input was not displaying for some users.
326
+ * FIX - Issue for double popstate trigger with Paging + SEO add-on.
327
+ * UPDATE - Various code improvements.
328
+ * NEW - Adding functionality for upcoming Call to Actions add-on.
329
+
330
+
331
  = 2.11.1 - May 30, 2016 =
332
  * SECURITY - Security fix for posts_status parameter. posts_status is now only available for logged in (admin) users. Non logged in users will only have access to view content in a 'publish' state.
333
  * UPDATE - Added support for preloading comments with the Comments and Preloaded add-ons.
334
+ * Shortcode Builder UI improvements
335
 
336
 
337
  = 2.11.0 - May 25, 2016 =
admin/admin.php CHANGED
@@ -1220,10 +1220,8 @@ function alm_btn_color_callback() {
1220
  $html .= '<option value="default" class="alm-color default" ' . $selected0 .'>Default</option>';
1221
  $html .= '<option value="blue" class="alm-color blue" ' . $selected1 .'>Blue</option>';
1222
  $html .= '<option value="green" class="alm-color green" ' . $selected2 .'>Green</option>';
1223
- //$html .= '<option value="red" ' . $selected3 .'>Red</option>';
1224
  $html .= '<option value="purple" class="alm-color purple" ' . $selected4 .'>Purple</option>';
1225
  $html .= '<option value="grey" class="alm-color grey" ' . $selected5 .'>Grey</option>';
1226
- //$html .= '<option value="white" ' . $selected6 .'>White (Button)</option>';
1227
  $html .= '</optgroup>';
1228
  $html .= '<optgroup label="Infinite Scroll (no button)">';
1229
  $html .= '<option value="infinite classic" class="infinite classic" ' . $selected7 .'>Classic</option>';
1220
  $html .= '<option value="default" class="alm-color default" ' . $selected0 .'>Default</option>';
1221
  $html .= '<option value="blue" class="alm-color blue" ' . $selected1 .'>Blue</option>';
1222
  $html .= '<option value="green" class="alm-color green" ' . $selected2 .'>Green</option>';
 
1223
  $html .= '<option value="purple" class="alm-color purple" ' . $selected4 .'>Purple</option>';
1224
  $html .= '<option value="grey" class="alm-color grey" ' . $selected5 .'>Grey</option>';
 
1225
  $html .= '</optgroup>';
1226
  $html .= '<optgroup label="Infinite Scroll (no button)">';
1227
  $html .= '<option value="infinite classic" class="infinite classic" ' . $selected7 .'>Classic</option>';
admin/css/admin.css CHANGED
@@ -138,7 +138,7 @@
138
  color: #999;
139
  padding: 0 0 0 12px;
140
  border-left: 5px solid #ff5a58;
141
- margin: 0 0 16px;
142
  font-size: 13px;
143
  }
144
  .ajax-load-more code{
@@ -877,6 +877,7 @@ a.layout-hover{
877
  .preload_amount,
878
  .cache_id,
879
  .alternate_template_wrap,
 
880
  .restapi_options{
881
  display: none;
882
  }
@@ -1478,7 +1479,9 @@ table.highlight{
1478
  font-size: 14px;
1479
  padding: 8px 14px;
1480
  }
1481
- .ajax-load-more .cnkt-main .group.installed{ }
 
 
1482
 
1483
  #alm-add-ons .group img{
1484
  padding: 12px 18px 12px;
@@ -1488,17 +1491,8 @@ table.highlight{
1488
  display: block;
1489
  padding: 15px;
1490
  }
1491
- #alm-add-ons .group:hover{
1492
- border-color: #999;
1493
- -webkit-box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
1494
- -moz-box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
1495
- box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
1496
- }
1497
  #alm-add-ons .group.installed:hover{
1498
  border-color: #ccc;
1499
- -webkit-box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
1500
- -moz-box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
1501
- box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
1502
  }
1503
  #alm-add-ons .group a:hover h2{
1504
  color: #ff5a58 !important;
@@ -1727,13 +1721,14 @@ table.highlight{
1727
  }
1728
  .license-wrap label{
1729
  font-weight: 600;
1730
- position: relative;
1731
  top:-3px;
1732
  }
1733
  .license-wrap input[type=text]{
1734
  background-color: #fff;
1735
  margin: 0 0 15px;
1736
  width: 100% !important;
 
1737
  }
1738
  .license-wrap input[type=text]:focus{
1739
  background-color: #fff;
138
  color: #999;
139
  padding: 0 0 0 12px;
140
  border-left: 5px solid #ff5a58;
141
+ margin: 0 0 30px;
142
  font-size: 13px;
143
  }
144
  .ajax-load-more code{
877
  .preload_amount,
878
  .cache_id,
879
  .alternate_template_wrap,
880
+ .cta_template_wrap,
881
  .restapi_options{
882
  display: none;
883
  }
1479
  font-size: 14px;
1480
  padding: 8px 14px;
1481
  }
1482
+ .ajax-load-more .cnkt-main .group.installed{
1483
+ opacity: 0.7;
1484
+ }
1485
 
1486
  #alm-add-ons .group img{
1487
  padding: 12px 18px 12px;
1491
  display: block;
1492
  padding: 15px;
1493
  }
 
 
 
 
 
 
1494
  #alm-add-ons .group.installed:hover{
1495
  border-color: #ccc;
 
 
 
1496
  }
1497
  #alm-add-ons .group a:hover h2{
1498
  color: #ff5a58 !important;
1721
  }
1722
  .license-wrap label{
1723
  font-weight: 600;
1724
+ /* position: relative; */
1725
  top:-3px;
1726
  }
1727
  .license-wrap input[type=text]{
1728
  background-color: #fff;
1729
  margin: 0 0 15px;
1730
  width: 100% !important;
1731
+ border-color: #ccc;
1732
  }
1733
  .license-wrap input[type=text]:focus{
1734
  background-color: #fff;
admin/img/add-ons/cta-add-on.jpg ADDED
Binary file
admin/includes/cta/about.php CHANGED
@@ -4,8 +4,7 @@
4
  <li><strong><a target="blank" href="https://connekthq.com/plugins/easy-query/">Easy Query</a></strong><br>A simple solution to build and display WordPress queries without touching a single line of code.</li>
5
  <li><strong><a target="blank" href="https://connekthq.com/plugins/velocity/">Velocity</a></strong><br>Improve website performance by lazy loading and customizing your embedded media with Velocity.</li>
6
  <li><strong><a target="blank" href="https://connekthq.com/plugins/unsplash-wp/">Unsplash WP</a></strong><br>The fastest way to upload high quality stock photos from unsplash.com directly to your media library.</li>
7
- <li><strong><a target="blank" href="https://github.com/dcooney/flexpanel">FlexPanel</a></strong><br>A responsive scrolling panel navigation for mobile and desktop.</li>
8
- <li><strong><a target="blank" href="https://connekthq.com">Connekt Media</a></strong><br>A digital creation company.</li>
9
  </ul>
10
  </div>
11
 
4
  <li><strong><a target="blank" href="https://connekthq.com/plugins/easy-query/">Easy Query</a></strong><br>A simple solution to build and display WordPress queries without touching a single line of code.</li>
5
  <li><strong><a target="blank" href="https://connekthq.com/plugins/velocity/">Velocity</a></strong><br>Improve website performance by lazy loading and customizing your embedded media with Velocity.</li>
6
  <li><strong><a target="blank" href="https://connekthq.com/plugins/unsplash-wp/">Unsplash WP</a></strong><br>The fastest way to upload high quality stock photos from unsplash.com directly to your media library.</li>
7
+ <li><strong><a target="blank" href="https://connekthq.com">Connekt Media</a></strong><br>Handcrafted digital products.</li>
 
8
  </ul>
9
  </div>
10
 
admin/includes/cta/add-ons.php CHANGED
@@ -3,6 +3,7 @@
3
  <p>Ajax Load More offers a variety of unique add-ons 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/comments/?utm_source=WP%20Admin&utm_medium=ALM%20Settings&utm_campaign=Comments">Comments</a></li>
7
  <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>
8
  <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>
3
  <p>Ajax Load More offers a variety of unique add-ons 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>
admin/shortcode-builder/js/shortcode-builder.js CHANGED
@@ -171,6 +171,43 @@ jQuery(document).ready(function($) {
171
  output += ' cache_id="'+cache_id+'"';
172
  }else{
173
  $('.cache_id').slideUp(100, 'alm_easeInOutQuad')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
174
  }
175
 
176
 
@@ -221,7 +258,7 @@ jQuery(document).ready(function($) {
221
 
222
 
223
  // ---------------------------
224
- // - PAGING
225
  // ---------------------------
226
 
227
  var paging = $('#alm-paging input[name=paging]:checked').val();
@@ -320,8 +357,7 @@ jQuery(document).ready(function($) {
320
 
321
  }else{
322
  $('.restapi_options').slideUp(100, 'alm_easeInOutQuad')
323
- }
324
-
325
 
326
 
327
  // ---------------------------
@@ -334,63 +370,24 @@ jQuery(document).ready(function($) {
334
 
335
  output += ' seo="'+seo+'"';
336
  }
337
-
338
-
339
 
340
  // ---------------------------
341
  // - Repeater
342
  // ---------------------------
343
 
344
- var repeater = $('.repeater select[name=repeater-select]').val(),
345
- theme_repeater = $('.select-theme-repeater select[name=theme-repeater-select]').val();
346
-
347
  if(theme_repeater != 'null' && theme_repeater != '' && theme_repeater != undefined){
348
  output += ' theme_repeater="'+theme_repeater+'"';
349
  }else{
350
  if(repeater != '' && repeater != undefined && repeater != 'default'){
351
  output += ' repeater="'+repeater+'"';
352
  }
353
- }
354
-
355
-
356
-
357
- // ---------------------------
358
- // - Alternate Repeater
359
- // ---------------------------
360
-
361
- var alternate_container = $('#alm-alternate');
362
- var alternate = $('input[name=alternate]:checked', alternate_container).val();
363
- var alternate_sequence = $('input[name=alternate-sequence]', alternate_container).val();
364
- var alternate_sequence_max = $('input[name=alternate-sequence-max]', alternate_container).val();
365
- var alternate_repeater = $('select[name=alternate-repeater-select]', alternate_container).val();
366
- var alternate_theme_repeater = $('select[name=theme-repeater-select]', alternate_container).val();
367
- if(alternate !== 'false' && alternate != undefined){
368
-
369
- $('.alternate_template_wrap').slideDown(100, 'alm_easeInOutQuad');
370
-
371
- // Standard repeater
372
- if(alternate_repeater != '' && alternate_repeater != undefined && alternate_sequence != '' && alternate_sequence != null){
373
- output += ' alternate="'+alternate+'"';
374
- output += ' alternate_repeater="'+alternate_repeater+'"';
375
- output += ' alternate_sequence="'+alternate_sequence+'"';
376
- output += ' alternate_sequence_max="'+alternate_sequence_max+'"';
377
- }
378
- // Theme repeater
379
- if(alternate_theme_repeater != '' && alternate_theme_repeater != undefined && alternate_sequence != '' && alternate_sequence != null){
380
- output += ' alternate="'+alternate+'"';
381
- output += ' alternate_theme_repeater="'+alternate_theme_repeater+'"';
382
- output += ' alternate_sequence="'+alternate_sequence+'"';
383
- output += ' alternate_sequence_max="'+alternate_sequence_max+'"';
384
- }
385
-
386
- }else{
387
-
388
- $('.alternate_template_wrap').slideUp(100, 'alm_easeInOutQuad');
389
-
390
- }
391
-
392
 
393
-
394
  // ---------------------------
395
  // - Post Types
396
  // ---------------------------
@@ -413,8 +410,7 @@ jQuery(document).ready(function($) {
413
  if(post_type_count>0){
414
  output += '"';
415
  }
416
- }
417
-
418
 
419
 
420
  // ---------------------------
@@ -856,8 +852,7 @@ jQuery(document).ready(function($) {
856
  output += ' button_label="'+button_label+'"';
857
 
858
  if(button_loading_label !== '')
859
- output += ' button_loading_label="'+button_loading_label+'"';
860
-
861
 
862
 
863
 
171
  output += ' cache_id="'+cache_id+'"';
172
  }else{
173
  $('.cache_id').slideUp(100, 'alm_easeInOutQuad')
174
+ }
175
+
176
+
177
+ // ---------------------------
178
+ // - Call to Actions
179
+ // ---------------------------
180
+
181
+ var cta_container = $('#alm-cta');
182
+ var cta = $('input[name=cta]:checked', cta_container).val();
183
+ var cta_position = $('input[name=cta-position]', cta_container).val();
184
+ var cta_before_after = $('select[name=cta-before-after]', cta_container).val();
185
+ var cta_repeat = $('input[name=cta-repeat]', cta_container).val();
186
+ var cta_repeater = $('select[name=cta-repeater-select]', cta_container).val();
187
+ var cta_theme_repeater = $('select[name=theme-repeater-select]', cta_container).val();
188
+
189
+ if(cta !== 'false' && cta != undefined){
190
+ $('.cta_template_wrap').slideDown(100, 'alm_easeInOutQuad');
191
+ // Standard repeater
192
+ if(cta_repeater != '' && cta_repeater != undefined && cta_position != '' && cta_position != null){
193
+ output += ' cta="'+cta+'"';
194
+ output += ' cta_position="'+cta_before_after+':'+cta_position+':'+cta_repeat+'"';
195
+ output += ' cta_repeater="'+cta_repeater+'"';
196
+ }
197
+ // Theme repeater
198
+ if(cta_theme_repeater != '' && cta_theme_repeater != undefined && cta_position != '' && cta_position != null){
199
+ output += ' cta="'+cta+'"';
200
+ output += ' cta_position="'+cta_before_after+':'+cta_position+':'+cta_repeat+'"';
201
+ output += ' cta_theme_repeater="'+cta_theme_repeater+'"';
202
+ }
203
+ $('#sequence-update').text(cta_position);
204
+ $('#sequence-update-before-after').text(cta_before_after);
205
+ if(cta_repeat == 0){
206
+ cta_repeat = 'unlimited';
207
+ }
208
+ $('#sequence-repeat, #cta-repeat-label').text(cta_repeat);
209
+ }else{
210
+ $('.cta_template_wrap').slideUp(100, 'alm_easeInOutQuad');
211
  }
212
 
213
 
258
 
259
 
260
  // ---------------------------
261
+ // - Paging
262
  // ---------------------------
263
 
264
  var paging = $('#alm-paging input[name=paging]:checked').val();
357
 
358
  }else{
359
  $('.restapi_options').slideUp(100, 'alm_easeInOutQuad')
360
+ }
 
361
 
362
 
363
  // ---------------------------
370
 
371
  output += ' seo="'+seo+'"';
372
  }
373
+
 
374
 
375
  // ---------------------------
376
  // - Repeater
377
  // ---------------------------
378
 
379
+ var repeater = $('#alm-repeaters select[name=repeater-select]').val(),
380
+ theme_repeater = $('#alm-repeaters .select-theme-repeater select[name=theme-repeater-select]').val();
381
+
382
  if(theme_repeater != 'null' && theme_repeater != '' && theme_repeater != undefined){
383
  output += ' theme_repeater="'+theme_repeater+'"';
384
  }else{
385
  if(repeater != '' && repeater != undefined && repeater != 'default'){
386
  output += ' repeater="'+repeater+'"';
387
  }
388
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
389
 
390
+
391
  // ---------------------------
392
  // - Post Types
393
  // ---------------------------
410
  if(post_type_count>0){
411
  output += '"';
412
  }
413
+ }
 
414
 
415
 
416
  // ---------------------------
852
  output += ' button_label="'+button_label+'"';
853
 
854
  if(button_loading_label !== '')
855
+ output += ' button_loading_label="'+button_loading_label+'"';
 
856
 
857
 
858
 
admin/shortcode-builder/shortcode-builder.php CHANGED
@@ -15,7 +15,6 @@
15
  <h3 class="heading"><?php _e('Cache', 'ajax-load-more'); ?></h3>
16
  <div class="expand-wrap">
17
  <div class="section-title">
18
- <h4><?php _e('Enable Caching', 'ajax-load-more'); ?></h4>
19
  <p><?php _e('Turn on content caching.', 'ajax-load-more'); ?></p>
20
  </div>
21
  <div class="wrap">
@@ -53,13 +52,112 @@
53
  <?php } ?>
54
 
55
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  <?php if(has_action('alm_comments_installed')){ ?>
57
  <!-- COMMENTS -->
58
  <div class="row input comments add-on" id="alm-comments">
59
  <h3 class="heading"><?php _e('Comments', 'ajax-load-more'); ?></h3>
60
  <div class="expand-wrap">
61
  <div class="section-title">
62
- <h4><?php _e('Comments', 'ajax-load-more'); ?></h4>
63
  <p><?php _e('Enable Ajax Load More to display blog comments.', 'ajax-load-more'); ?></p>
64
  </div>
65
  <div class="wrap">
@@ -214,8 +312,7 @@
214
  <div class="row input paging add-on" id="alm-paging">
215
  <h3 class="heading"><?php _e('Paging', 'ajax-load-more'); ?></h3>
216
  <div class="expand-wrap">
217
- <div class="section-title">
218
- <p><?php _e('Replace infinite scrolling with a paged ajax navigation system.', 'ajax-load-more'); ?></p>
219
  </div>
220
  <div class="wrap">
221
  <div class="inner">
@@ -604,105 +701,7 @@
604
  echo '</div>';
605
  echo '</div>';
606
 
607
- ?>
608
-
609
- <?php if(has_action('alm_alternating_installed')){ ?>
610
- <div class="row alternating add-on" id="alm-alternate">
611
- <h3 class="heading"><?php _e('Alternating Templates', 'ajax-load-more'); ?></h3>
612
- <div class="expand-wrap">
613
-
614
- <div class="section-title">
615
- <p><?php _e('Select an alternate repeater template to be display every <em>x</em> number of posts.', 'ajax-load-more'); ?></p>
616
- </div>
617
- <div class="wrap">
618
- <div class="inner">
619
- <ul>
620
- <li>
621
- <input class="alm_element" type="radio" name="alternate" value="true" id="alternate-true" >
622
- <label for="alternate-true"><?php _e('True', 'ajax-load-more'); ?></label>
623
- </li>
624
- <li>
625
- <input class="alm_element" type="radio" name="alternate" value="false" id="alternate-false" checked="checked">
626
- <label for="alternate-false"><?php _e('False', 'ajax-load-more'); ?></label>
627
- </li>
628
- </ul>
629
- </div>
630
- </div>
631
- <div class="clear"></div>
632
-
633
- <div class="alternate_template_wrap">
634
-
635
- <hr/>
636
- <div class="spacer"></div>
637
-
638
- <div class="section-title">
639
- <h4><?php _e('Template Sequencing', 'ajax-load-more'); ?></h4>
640
- <p><?php _e('A comma separated list of post position values. Posts in these positions will be replaced by the alternate template', 'ajax-load-more'); ?>.<br/><br/>
641
- <strong><?php _e('Pro-Tip', 'ajax-load-more'); ?></strong> -
642
- <?php _e('Use sequence "even" to use an alternate template for every even result', 'ajax-load-more'); ?>.</p>
643
- </div>
644
- <div class="wrap">
645
- <div class="inner">
646
- <input type="text" placeholder="3, 4, 7, 8" id="alternate-sequence-max" class="alm_element sm" name="alternate-sequence">
647
- </div>
648
- </div>
649
-
650
- <div class="clear"></div>
651
- <hr/>
652
- <div class="spacer"></div>
653
-
654
- <div class="section-title">
655
- <h4><?php _e('Sequence Loop', 'ajax-load-more'); ?></h4>
656
- <p>
657
- <?php _e('Select the maximum number of loops to repeat alternate template sequence.', 'ajax-load-more'); ?><br/><br/>
658
- <?php _e('0 = no maximum', 'ajax-load-more'); ?>
659
- </p>
660
- </div>
661
- <div class="wrap">
662
- <div class="inner">
663
- <input type="number" placeholder="0" id="alternate-sequence-max" class="alm_element sm numbers-only" name="alternate-sequence-max" value="0" step="1" min="0">
664
-
665
- </div>
666
- </div>
667
-
668
- <div class="clear"></div>
669
- <hr/>
670
- <div class="spacer"></div>
671
-
672
- <div class="section-title">
673
- <h4><?php _e('Repeater Template', 'ajax-load-more'); ?></h4>
674
- <?php
675
- echo '<p>'.__('Select an alternate <a href="admin.php?page=ajax-load-more-repeaters" target="_parent">repeater template</a>.', 'ajax-load-more'). '</p>';
676
- ?>
677
- </div>
678
- <div class="wrap">
679
- <div class="inner">
680
- <?php
681
- echo '<select name="alternate-repeater-select" class="alm_element">';
682
- echo '<option name="" value="" selected="selected">'.__('-- Select Repeater --', 'ajax-load-more').'</option>';
683
- echo '<option name="default" value="default">Default</option>';
684
- if (has_action('alm_get_custom_repeaters')) {
685
- do_action('alm_get_custom_repeaters');
686
- }
687
- if (has_action('alm_get_unlimited_repeaters')) {
688
- do_action('alm_get_unlimited_repeaters');
689
- }
690
- echo '</select>';
691
- ?>
692
- </div>
693
- </div>
694
- <?php
695
- // Get Theme Repeaters
696
- if (has_action('alm_theme_repeaters_selection')){
697
- do_action('alm_theme_repeaters_selection');
698
- }
699
- ?>
700
-
701
- </div>
702
-
703
- </div>
704
- </div>
705
- <?php } ?>
706
 
707
 
708
  <?php
@@ -1332,7 +1331,7 @@
1332
 
1333
  <!-- Button Text -->
1334
  <div class="row input btn-label" id="alm-btn-label">
1335
- <h3 class="heading"><?php _e('Button Labels', 'ajax-load-more'); ?></h3>
1336
 
1337
  <div class="expand-wrap">
1338
 
@@ -1357,7 +1356,7 @@
1357
  <div class="inner">
1358
  <input class="alm_element" name="button-loading-label" type="text" id="button-loading-label" value="" placeholder="<?php _e('Loading Posts...', 'ajax-load-more'); ?>">
1359
  </div>
1360
- </div>
1361
 
1362
  </div>
1363
  </div>
@@ -1389,8 +1388,10 @@
1389
  </ul>
1390
  </div>
1391
  </div>
 
1392
  <div class="clear"></div>
1393
  <hr/>
 
1394
  <div class="section-title">
1395
  <h4><?php _e('Container Classes', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('You can define global container classes on the Ajax Load More settings screen','ajax-load-more'); ?>"></a></h4>
1396
  <p><?php _e('Add custom CSS classes to the Ajax Load More container. <br/><br/> e.g. portfolio-listing large-12 etc', 'ajax-load-more'); ?></p>
15
  <h3 class="heading"><?php _e('Cache', 'ajax-load-more'); ?></h3>
16
  <div class="expand-wrap">
17
  <div class="section-title">
 
18
  <p><?php _e('Turn on content caching.', 'ajax-load-more'); ?></p>
19
  </div>
20
  <div class="wrap">
52
  <?php } ?>
53
 
54
 
55
+ <?php if(has_action('alm_cta_installed')){ ?>
56
+ <!-- Call to Actions -->
57
+ <div class="row cta add-on" id="alm-cta">
58
+ <h3 class="heading"><?php _e('Call to Actions', 'ajax-load-more'); ?></h3>
59
+ <div class="expand-wrap">
60
+
61
+ <div class="section-title">
62
+ <p><?php _e('Insert call to action block.', 'ajax-load-more'); ?></p>
63
+ </div>
64
+ <div class="wrap">
65
+ <div class="inner">
66
+ <ul>
67
+ <li>
68
+ <input class="alm_element" type="radio" name="cta" value="true" id="cta-true" >
69
+ <label for="cta-true"><?php _e('True', 'ajax-load-more'); ?></label>
70
+ </li>
71
+ <li>
72
+ <input class="alm_element" type="radio" name="cta" value="false" id="cta-false" checked="checked">
73
+ <label for="cta-false"><?php _e('False', 'ajax-load-more'); ?></label>
74
+ </li>
75
+ </ul>
76
+ </div>
77
+ </div>
78
+ <div class="clear"></div>
79
+
80
+ <div class="cta_template_wrap">
81
+
82
+ <hr/>
83
+ <div class="spacer"></div>
84
+
85
+ <div class="section-title">
86
+ <h4><?php _e('CTA Positioning', 'ajax-load-more'); ?></h4>
87
+ <p><?php _e('Insert call to action <strong><em id="sequence-update-before-after">before</em></strong> post #<strong><em id="sequence-update">1</em></strong> for <strong><em id="sequence-repeat">unlimited</em></strong> page(s)', 'ajax-load-more'); ?>.</p>
88
+ </div>
89
+ <div class="wrap">
90
+ <div class="inner">
91
+
92
+ <label class="full"><?php _e('Before / After', 'ajax-load-more'); ?>:</label>
93
+ <select class="alm_element cta-before-after" name="cta-before-after" id="cta-before-after">
94
+ <option value="before" selected="selected"><?php _e('Before', 'ajax-load-more'); ?></option>
95
+ <option value="after"><?php _e('After', 'ajax-load-more'); ?></option>
96
+ </select>
97
+ <div class="clear"></div>
98
+ <div class="spacer" style="height: 30px;"></div>
99
+ <label class="full" for="cta-position"><?php _e('Post #', 'ajax-load-more'); ?>:</label>
100
+ <input type="number" min="1" step="1" value="1" placeholder="1" id="cta-position" class="alm_element numbers-only" name="cta-position">
101
+ <div class="clear"></div>
102
+ <div class="spacer" style="height: 30px;"></div>
103
+ <label class="full" for="cta-repeat"><?php _e('Repeat for', 'ajax-load-more'); ?> <strong id="cta-repeat-label">unlimited</strong> <?php _e('page(s)', 'ajax-load-more'); ?>:</label>
104
+ <input type="number" min="0" step="1" value="0" placeholder="0" value="0" id="cta-repeat" class="alm_element numbers-only" name="cta-repeat">
105
+
106
+ </div>
107
+ </div>
108
+
109
+ <div class="clear"></div>
110
+ <hr/>
111
+ <div class="spacer"></div>
112
+
113
+ <div class="section-title">
114
+ <h4><?php _e('Template', 'ajax-load-more'); ?></h4>
115
+ <?php
116
+ echo '<p>'.__('Select the <a href="admin.php?page=ajax-load-more-repeaters" target="_parent">repeater template</a> that will display your call to action.', 'ajax-load-more'). '</p>';
117
+ ?>
118
+ </div>
119
+ <div class="wrap">
120
+ <div class="inner">
121
+ <?php
122
+ echo '<select name="cta-repeater-select" class="alm_element">';
123
+ echo '<option name="" value="" selected="selected">'.__('-- Select Repeater --', 'ajax-load-more').'</option>';
124
+ echo '<option name="default" value="default">Default</option>';
125
+ if (has_action('alm_get_custom_repeaters')) {
126
+ do_action('alm_get_custom_repeaters');
127
+ }
128
+ if (has_action('alm_get_unlimited_repeaters')) {
129
+ do_action('alm_get_unlimited_repeaters');
130
+ }
131
+ echo '</select>';
132
+ ?>
133
+ </div>
134
+ </div>
135
+ <?php
136
+ // Get Theme Repeaters
137
+ if (has_action('alm_theme_repeaters_selection')){
138
+ do_action('alm_theme_repeaters_selection');
139
+ }
140
+ ?>
141
+
142
+
143
+ <p class="warning-callout">
144
+ <?php _e('Call to actions do NOT count as a post within an Ajax Load More loop.<br/>
145
+ For example, if you set <strong>posts_per_page="5"</strong> in your shortcode, 6 items will be displayed.', 'ajax-load-more'); ?>
146
+ </p>
147
+
148
+ </div>
149
+
150
+ </div>
151
+ </div>
152
+ <?php } ?>
153
+
154
+
155
  <?php if(has_action('alm_comments_installed')){ ?>
156
  <!-- COMMENTS -->
157
  <div class="row input comments add-on" id="alm-comments">
158
  <h3 class="heading"><?php _e('Comments', 'ajax-load-more'); ?></h3>
159
  <div class="expand-wrap">
160
  <div class="section-title">
 
161
  <p><?php _e('Enable Ajax Load More to display blog comments.', 'ajax-load-more'); ?></p>
162
  </div>
163
  <div class="wrap">
312
  <div class="row input paging add-on" id="alm-paging">
313
  <h3 class="heading"><?php _e('Paging', 'ajax-load-more'); ?></h3>
314
  <div class="expand-wrap">
315
+ <div class="section-title"> <p><?php _e('Replace infinite scrolling with a paged ajax navigation system.', 'ajax-load-more'); ?></p>
 
316
  </div>
317
  <div class="wrap">
318
  <div class="inner">
701
  echo '</div>';
702
  echo '</div>';
703
 
704
+ ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
705
 
706
 
707
  <?php
1331
 
1332
  <!-- Button Text -->
1333
  <div class="row input btn-label" id="alm-btn-label">
1334
+ <h3 class="heading"><?php _e('Button Options', 'ajax-load-more'); ?></h3>
1335
 
1336
  <div class="expand-wrap">
1337
 
1356
  <div class="inner">
1357
  <input class="alm_element" name="button-loading-label" type="text" id="button-loading-label" value="" placeholder="<?php _e('Loading Posts...', 'ajax-load-more'); ?>">
1358
  </div>
1359
+ </div>
1360
 
1361
  </div>
1362
  </div>
1388
  </ul>
1389
  </div>
1390
  </div>
1391
+
1392
  <div class="clear"></div>
1393
  <hr/>
1394
+
1395
  <div class="section-title">
1396
  <h4><?php _e('Container Classes', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('You can define global container classes on the Ajax Load More settings screen','ajax-load-more'); ?>"></a></h4>
1397
  <p><?php _e('Add custom CSS classes to the Ajax Load More container. <br/><br/> e.g. portfolio-listing large-12 etc', 'ajax-load-more'); ?></p>
admin/views/add-ons.php CHANGED
@@ -5,6 +5,34 @@
5
  <p><?php _e('Add-ons are available to extend and enhance the core functionality of Ajax Load More', 'ajax-load-more'); ?>.</p>
6
  </div>
7
  <div class="cnkt-main full">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
 
9
  <!-- Cache -->
10
  <div class="group<?php if (has_action('alm_cache_installed')){echo ' installed'; } ?>">
@@ -30,8 +58,7 @@
30
  </div>
31
 
32
  </div>
33
- <!-- End Cache -->
34
-
35
 
36
  <!-- Comments -->
37
  <div class="group<?php if (has_action('alm_comments_installed')){echo ' installed'; } ?>">
@@ -57,7 +84,7 @@
57
  </div>
58
 
59
  </div>
60
- <!-- End Cache -->
61
 
62
 
63
  <!-- Custom Repeaters -->
5
  <p><?php _e('Add-ons are available to extend and enhance the core functionality of Ajax Load More', 'ajax-load-more'); ?>.</p>
6
  </div>
7
  <div class="cnkt-main full">
8
+
9
+
10
+ <!-- Call to Actions -->
11
+ <div style="display:none !important;" class="group<?php if (has_action('alm_cta_installed')){echo ' installed'; } ?>">
12
+ <div class="row no-brd">
13
+ <?php
14
+ $cta_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/call-to-actions/?utm_source=WP%20Admin&utm_medium=ALM%20Add-ons&utm_campaign=Call to Actions'; ?>
15
+
16
+ <a href="<?php echo $cta_url; ?>">
17
+ <div class="expand-wrap">
18
+ <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/cta-add-on.jpg" alt="">
19
+ <h2 class="addon-title"><?php _e('Call to Actions', 'ajax-load-more'); ?></h2>
20
+ <p class="addon-intro"><?php _e('Ajax Load More extension for displaying advertisements and call to actions.', 'ajax-load-more'); ?></p>
21
+ <p><?php _e('The Call to Actions add-on will provide the ability to inject a custom CTA template within each Ajax Load More loop.', 'ajax-load-more'); ?></p>
22
+ <?php
23
+ if (has_action('alm_cta_installed')){
24
+ echo '<span class="cnkt-button installed"><i class="fa fa-check-square"></i> Installed</span> ';
25
+ }else{
26
+ echo '<span class="cnkt-button"><i class="fa fa-download"></i> Purchase &amp; Install</span>';
27
+ }
28
+ ?>
29
+ </div>
30
+ </a>
31
+ </div>
32
+
33
+ </div>
34
+ <!-- End Call to Actions -->
35
+
36
 
37
  <!-- Cache -->
38
  <div class="group<?php if (has_action('alm_cache_installed')){echo ' installed'; } ?>">
58
  </div>
59
 
60
  </div>
61
+ <!-- End Cache -->
 
62
 
63
  <!-- Comments -->
64
  <div class="group<?php if (has_action('alm_comments_installed')){echo ' installed'; } ?>">
84
  </div>
85
 
86
  </div>
87
+ <!-- End Comments -->
88
 
89
 
90
  <!-- Custom Repeaters -->
admin/views/licenses.php CHANGED
@@ -11,8 +11,8 @@
11
  <p><?php _e('Manage your Ajax Load More license key\'s below - enter a key for each of your add-ons to receive plugin update notifications directly within the <a href="plugins.php">WP Plugins dashboard</a>.', 'ajax-load-more'); ?></p>
12
 
13
  <?php
14
- // alm_alternating_installed
15
  // alm_cache_installed
 
16
  // alm_comments_installed
17
  // alm_unlimited_installed
18
  // alm_layouts_installed
@@ -26,28 +26,28 @@
26
 
27
  <?php
28
  // Check if any add ons are installed.
29
- if(has_action('alm_alternating_installed') || has_action('alm_cache_installed') || has_action('alm_comments_installed') || has_action('alm_unlimited_installed') || has_action('alm_layouts_installed') || has_action('alm_preload_installed') || has_action('alm_paging_installed') || has_action('alm_prev_post_installed') || has_action('alm_rest_api_installed') || has_action('alm_seo_installed') || has_action('alm_theme_repeaters_installed')) : ?>
30
-
31
 
32
  <?php
33
- if (has_action('alm_alternating_installed')){
34
  // CACHE
35
- $alm_alternating_license = get_option( 'alm_alternating_license_key' );
36
- $alm_alternating_status = get_option( 'alm_alternating_license_status' );
37
  ?>
38
- <div class="license" id="license-alternating">
39
  <div class="license-title">
40
- <div class="status <?php if($alm_alternating_status == 'valid'){echo 'valid';}else{echo 'invalid';} ?> "></div>
41
- <h2><?php _e('Alternating Templates', 'ajax-load-more'); ?></h2>
42
  </div>
43
  <div class="license-wrap">
44
  <form method="post" action="options.php">
45
 
46
- <?php settings_fields('alm_alternating_license'); ?>
47
- <label class="description" for="alm_alternating_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
48
  <div class="license-key-field">
49
- <input id="alm_alternating_license_key" name="alm_alternating_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_alternating_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
50
- <?php if( $alm_alternating_status !== false && $alm_alternating_status == 'valid' ) { ?>
51
  <span class="status active">
52
  <?php _e('Active', 'ajax-load-more'); ?>
53
  </span>
@@ -58,18 +58,18 @@
58
  <?php } ?>
59
  </div>
60
 
61
- <?php wp_nonce_field( 'alm_alternating_license_nonce', 'alm_alternating_license_nonce' ); ?>
62
  <div class="license-btn-wrap"
63
- data-name="<?php echo ALM_ALTERNATING_ITEM_NAME; ?>"
64
  data-url="<?php echo ALM_STORE_URL; ?>"
65
- data-option-status="alm_alternating_license_status"
66
- data-option-key="alm_alternating_license_key"
67
- data-upgrade-url="https://connekthq.com/plugins/ajax-load-more/add-ons/alternating-templates/">
68
- <button type="button" class="activate license-btn <?php if($alm_alternating_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
69
  <?php _e('Activate License', 'ajax-load-more'); ?>
70
  </button>
71
 
72
- <button type="button" class="deactivate license-btn <?php if($alm_alternating_status !== 'valid'){ echo 'hide'; } ?> button-secondary" data-type="deactivate">
73
  <?php _e('Deactivate License', 'ajax-load-more'); ?>
74
  </button>
75
  </div>
@@ -80,29 +80,28 @@
80
  </div>
81
  <?php
82
  }
83
- // End alternating
84
  ?>
85
 
86
-
87
  <?php
88
- if (has_action('alm_cache_installed')){
89
- // CACHE
90
- $alm_cache_license = get_option( 'alm_cache_license_key' );
91
- $alm_cache_status = get_option( 'alm_cache_license_status' );
92
  ?>
93
- <div class="license" id="license-cache">
94
  <div class="license-title">
95
- <div class="status <?php if($alm_cache_status == 'valid'){echo 'valid';}else{echo 'invalid';} ?> "></div>
96
- <h2><?php _e('Cache', 'ajax-load-more'); ?></h2>
97
  </div>
98
  <div class="license-wrap">
99
  <form method="post" action="options.php">
100
 
101
- <?php settings_fields('alm_cache_license'); ?>
102
- <label class="description" for="alm_cache_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
103
  <div class="license-key-field">
104
- <input id="alm_cache_license_key" name="alm_cache_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_cache_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
105
- <?php if( $alm_cache_status !== false && $alm_cache_status == 'valid' ) { ?>
106
  <span class="status active">
107
  <?php _e('Active', 'ajax-load-more'); ?>
108
  </span>
@@ -113,18 +112,18 @@
113
  <?php } ?>
114
  </div>
115
 
116
- <?php wp_nonce_field( 'alm_cache_license_nonce', 'alm_cache_license_nonce' ); ?>
117
  <div class="license-btn-wrap"
118
- data-name="<?php echo ALM_CACHE_ITEM_NAME; ?>"
119
  data-url="<?php echo ALM_STORE_URL; ?>"
120
- data-option-status="alm_cache_license_status"
121
- data-option-key="alm_cache_license_key"
122
- data-upgrade-url="https://connekthq.com/plugins/ajax-load-more/add-ons/cache/">
123
- <button type="button" class="activate license-btn <?php if($alm_cache_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
124
  <?php _e('Activate License', 'ajax-load-more'); ?>
125
  </button>
126
 
127
- <button type="button" class="deactivate license-btn <?php if($alm_cache_status !== 'valid'){ echo 'hide'; } ?> button-secondary" data-type="deactivate">
128
  <?php _e('Deactivate License', 'ajax-load-more'); ?>
129
  </button>
130
  </div>
@@ -135,7 +134,7 @@
135
  </div>
136
  <?php
137
  }
138
- // End CACHE
139
  ?>
140
 
141
  <?php
@@ -153,7 +152,7 @@
153
  <form method="post" action="options.php">
154
 
155
  <?php settings_fields('alm_comments_license'); ?>
156
- <label class="description" for="alm_comments_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
157
  <div class="license-key-field">
158
  <input id="alm_comments_license_key" name="alm_comments_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_comments_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
159
  <?php if( $alm_comments_status !== false && $alm_comments_status == 'valid' ) { ?>
@@ -208,7 +207,7 @@
208
  <form method="post" action="options.php">
209
 
210
  <?php settings_fields('alm_unlimited_license'); ?>
211
- <label class="description" for="alm_unlimited_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
212
  <div class="license-key-field">
213
  <input id="alm_unlimited_license_key" name="alm_unlimited_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_unlimited_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
214
  <?php if( $alm_unlimited_status !== false && $alm_unlimited_status == 'valid' ) { ?>
@@ -264,7 +263,7 @@
264
  <form method="post" action="options.php">
265
 
266
  <?php settings_fields('alm_layouts_license'); ?>
267
- <label class="description" for="alm_layouts_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
268
  <div class="license-key-field">
269
  <input id="alm_layouts_license_key" name="alm_layouts_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_layouts_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
270
  <?php if( $alm_layouts_status !== false && $alm_layouts_status == 'valid' ) { ?>
@@ -320,7 +319,7 @@
320
  <form method="post" action="options.php">
321
 
322
  <?php settings_fields('alm_paging_license'); ?>
323
- <label class="description" for="alm_paging_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
324
  <div class="license-key-field">
325
  <input id="alm_paging_license_key" name="alm_paging_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_paging_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
326
  <?php if( $alm_paging_status !== false && $alm_paging_status == 'valid' ) { ?>
@@ -374,7 +373,7 @@
374
  <form method="post" action="options.php">
375
 
376
  <?php settings_fields('alm_preloaded_license'); ?>
377
- <label class="description" for="alm_preloaded_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
378
  <div class="license-key-field">
379
  <input id="alm_preloaded_license_key" name="alm_preloaded_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_preloaded_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
380
  <?php if( $alm_preloaded_status !== false && $alm_preloaded_status == 'valid' ) { ?>
@@ -427,7 +426,7 @@
427
  <form method="post" action="options.php">
428
 
429
  <?php settings_fields('alm_prev_post_license'); ?>
430
- <label class="description" for="alm_prev_post_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
431
  <div class="license-key-field">
432
  <input id="alm_prev_post_license_key" name="alm_prev_post_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_prev_post_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
433
  <?php if( $alm_prev_post_status !== false && $alm_prev_post_status == 'valid' ) { ?>
@@ -482,7 +481,7 @@
482
  <form method="post" action="options.php">
483
 
484
  <?php settings_fields('alm_rest_api_license'); ?>
485
- <label class="description" for="alm_rest_api_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
486
  <div class="license-key-field">
487
  <input id="alm_rest_api_license_key" name="alm_rest_api_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_restapi_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
488
  <?php if( $alm_restapi_status !== false && $alm_restapi_status == 'valid' ) { ?>
@@ -537,7 +536,7 @@
537
  <form method="post" action="options.php">
538
 
539
  <?php settings_fields('alm_seo_license'); ?>
540
- <label class="description" for="alm_seo_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
541
  <div class="license-key-field">
542
  <input id="alm_seo_license_key" name="alm_seo_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_seo_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
543
  <?php if( $alm_seo_status !== false && $alm_seo_status == 'valid' ) { ?>
@@ -594,7 +593,7 @@
594
  <form method="post" action="options.php">
595
 
596
  <?php settings_fields('alm_theme_repeaters_license'); ?>
597
- <label class="description" for="alm_theme_repeaters_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
598
  <div class="license-key-field">
599
  <input id="alm_theme_repeaters_license_key" name="alm_theme_repeaters_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_theme_repeaters_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
600
  <?php if( $alm_theme_repeaters_status !== false && $alm_theme_repeaters_status == 'valid' ) { ?>
11
  <p><?php _e('Manage your Ajax Load More license key\'s below - enter a key for each of your add-ons to receive plugin update notifications directly within the <a href="plugins.php">WP Plugins dashboard</a>.', 'ajax-load-more'); ?></p>
12
 
13
  <?php
 
14
  // alm_cache_installed
15
+ // alm_cta_installed
16
  // alm_comments_installed
17
  // alm_unlimited_installed
18
  // alm_layouts_installed
26
 
27
  <?php
28
  // Check if any add ons are installed.
29
+ if(has_action('alm_cache_installed') || has_action('alm_cta_installed') || has_action('alm_comments_installed') || has_action('alm_unlimited_installed') || has_action('alm_layouts_installed') || has_action('alm_preload_installed') || has_action('alm_paging_installed') || has_action('alm_prev_post_installed') || has_action('alm_rest_api_installed') || has_action('alm_seo_installed') || has_action('alm_theme_repeaters_installed')) : ?>
30
+
31
 
32
  <?php
33
+ if (has_action('alm_cache_installed')){
34
  // CACHE
35
+ $alm_cache_license = get_option( 'alm_cache_license_key' );
36
+ $alm_cache_status = get_option( 'alm_cache_license_status' );
37
  ?>
38
+ <div class="license" id="license-cache">
39
  <div class="license-title">
40
+ <div class="status <?php if($alm_cache_status == 'valid'){echo 'valid';}else{echo 'invalid';} ?> "></div>
41
+ <h2><?php _e('Cache', 'ajax-load-more'); ?></h2>
42
  </div>
43
  <div class="license-wrap">
44
  <form method="post" action="options.php">
45
 
46
+ <?php settings_fields('alm_cache_license'); ?>
47
+ <label class="description offscreen" for="alm_cache_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
48
  <div class="license-key-field">
49
+ <input id="alm_cache_license_key" name="alm_cache_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_cache_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
50
+ <?php if( $alm_cache_status !== false && $alm_cache_status == 'valid' ) { ?>
51
  <span class="status active">
52
  <?php _e('Active', 'ajax-load-more'); ?>
53
  </span>
58
  <?php } ?>
59
  </div>
60
 
61
+ <?php wp_nonce_field( 'alm_cache_license_nonce', 'alm_cache_license_nonce' ); ?>
62
  <div class="license-btn-wrap"
63
+ data-name="<?php echo ALM_CACHE_ITEM_NAME; ?>"
64
  data-url="<?php echo ALM_STORE_URL; ?>"
65
+ data-option-status="alm_cache_license_status"
66
+ data-option-key="alm_cache_license_key"
67
+ data-upgrade-url="https://connekthq.com/plugins/ajax-load-more/add-ons/cache/">
68
+ <button type="button" class="activate license-btn <?php if($alm_cache_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
69
  <?php _e('Activate License', 'ajax-load-more'); ?>
70
  </button>
71
 
72
+ <button type="button" class="deactivate license-btn <?php if($alm_cache_status !== 'valid'){ echo 'hide'; } ?> button-secondary" data-type="deactivate">
73
  <?php _e('Deactivate License', 'ajax-load-more'); ?>
74
  </button>
75
  </div>
80
  </div>
81
  <?php
82
  }
83
+ // End CACHE
84
  ?>
85
 
 
86
  <?php
87
+ if (has_action('alm_cta_installed')){
88
+ // Call to Actions
89
+ $alm_cta_license = get_option( 'alm_cta_license_key' );
90
+ $alm_cta_status = get_option( 'alm_cta_license_status' );
91
  ?>
92
+ <div class="license" id="license-cta">
93
  <div class="license-title">
94
+ <div class="status <?php if($alm_cta_status == 'valid'){echo 'valid';}else{echo 'invalid';} ?> "></div>
95
+ <h2><?php _e('Call to Actions', 'ajax-load-more'); ?></h2>
96
  </div>
97
  <div class="license-wrap">
98
  <form method="post" action="options.php">
99
 
100
+ <?php settings_fields('alm_cta_license'); ?>
101
+ <label class="description offscreen" for="alm_cta_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
102
  <div class="license-key-field">
103
+ <input id="alm_cta_license_key" name="alm_cta_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_cta_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
104
+ <?php if( $alm_cta_status !== false && $alm_cta_status == 'valid' ) { ?>
105
  <span class="status active">
106
  <?php _e('Active', 'ajax-load-more'); ?>
107
  </span>
112
  <?php } ?>
113
  </div>
114
 
115
+ <?php wp_nonce_field( 'alm_cta_license_nonce', 'alm_cta_license_nonce' ); ?>
116
  <div class="license-btn-wrap"
117
+ data-name="<?php echo ALM_CTA_ITEM_NAME; ?>"
118
  data-url="<?php echo ALM_STORE_URL; ?>"
119
+ data-option-status="alm_cta_license_status"
120
+ data-option-key="alm_cta_license_key"
121
+ data-upgrade-url="https://connekthq.com/plugins/ajax-load-more/add-ons/call-to-actions/">
122
+ <button type="button" class="activate license-btn <?php if($alm_cta_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
123
  <?php _e('Activate License', 'ajax-load-more'); ?>
124
  </button>
125
 
126
+ <button type="button" class="deactivate license-btn <?php if($alm_cta_status !== 'valid'){ echo 'hide'; } ?> button-secondary" data-type="deactivate">
127
  <?php _e('Deactivate License', 'ajax-load-more'); ?>
128
  </button>
129
  </div>
134
  </div>
135
  <?php
136
  }
137
+ // End Call to Actions
138
  ?>
139
 
140
  <?php
152
  <form method="post" action="options.php">
153
 
154
  <?php settings_fields('alm_comments_license'); ?>
155
+ <label class="description offscreen" for="alm_comments_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
156
  <div class="license-key-field">
157
  <input id="alm_comments_license_key" name="alm_comments_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_comments_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
158
  <?php if( $alm_comments_status !== false && $alm_comments_status == 'valid' ) { ?>
207
  <form method="post" action="options.php">
208
 
209
  <?php settings_fields('alm_unlimited_license'); ?>
210
+ <label class="description offscreen" for="alm_unlimited_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
211
  <div class="license-key-field">
212
  <input id="alm_unlimited_license_key" name="alm_unlimited_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_unlimited_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
213
  <?php if( $alm_unlimited_status !== false && $alm_unlimited_status == 'valid' ) { ?>
263
  <form method="post" action="options.php">
264
 
265
  <?php settings_fields('alm_layouts_license'); ?>
266
+ <label class="description offscreen" for="alm_layouts_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
267
  <div class="license-key-field">
268
  <input id="alm_layouts_license_key" name="alm_layouts_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_layouts_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
269
  <?php if( $alm_layouts_status !== false && $alm_layouts_status == 'valid' ) { ?>
319
  <form method="post" action="options.php">
320
 
321
  <?php settings_fields('alm_paging_license'); ?>
322
+ <label class="description offscreen" for="alm_paging_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
323
  <div class="license-key-field">
324
  <input id="alm_paging_license_key" name="alm_paging_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_paging_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
325
  <?php if( $alm_paging_status !== false && $alm_paging_status == 'valid' ) { ?>
373
  <form method="post" action="options.php">
374
 
375
  <?php settings_fields('alm_preloaded_license'); ?>
376
+ <label class="description offscreen" for="alm_preloaded_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
377
  <div class="license-key-field">
378
  <input id="alm_preloaded_license_key" name="alm_preloaded_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_preloaded_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
379
  <?php if( $alm_preloaded_status !== false && $alm_preloaded_status == 'valid' ) { ?>
426
  <form method="post" action="options.php">
427
 
428
  <?php settings_fields('alm_prev_post_license'); ?>
429
+ <label class="description offscreen" for="alm_prev_post_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
430
  <div class="license-key-field">
431
  <input id="alm_prev_post_license_key" name="alm_prev_post_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_prev_post_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
432
  <?php if( $alm_prev_post_status !== false && $alm_prev_post_status == 'valid' ) { ?>
481
  <form method="post" action="options.php">
482
 
483
  <?php settings_fields('alm_rest_api_license'); ?>
484
+ <label class="description offscreen" for="alm_rest_api_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
485
  <div class="license-key-field">
486
  <input id="alm_rest_api_license_key" name="alm_rest_api_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_restapi_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
487
  <?php if( $alm_restapi_status !== false && $alm_restapi_status == 'valid' ) { ?>
536
  <form method="post" action="options.php">
537
 
538
  <?php settings_fields('alm_seo_license'); ?>
539
+ <label class="description offscreen" for="alm_seo_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
540
  <div class="license-key-field">
541
  <input id="alm_seo_license_key" name="alm_seo_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_seo_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
542
  <?php if( $alm_seo_status !== false && $alm_seo_status == 'valid' ) { ?>
593
  <form method="post" action="options.php">
594
 
595
  <?php settings_fields('alm_theme_repeaters_license'); ?>
596
+ <label class="description offscreen" for="alm_theme_repeaters_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
597
  <div class="license-key-field">
598
  <input id="alm_theme_repeaters_license_key" name="alm_theme_repeaters_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_theme_repeaters_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
599
  <?php if( $alm_theme_repeaters_status !== false && $alm_theme_repeaters_status == 'valid' ) { ?>
admin/views/settings.php CHANGED
@@ -12,8 +12,9 @@
12
  <div class="cnkt-main">
13
 
14
  <?php
15
- $alm_dismiss_sharing = get_transient( 'alm_dismiss_sharing');
16
- if($alm_dismiss_sharing !== 'true'){
 
17
  ?>
18
  <div class="group share-alm">
19
  <div class="dotted">
12
  <div class="cnkt-main">
13
 
14
  <?php
15
+ $alm_dismiss_sharing = get_transient( 'alm_dismiss_sharing');
16
+ if(!isset($alm_dismiss_sharing)){
17
+ // If transient has not been set - display this notice.
18
  ?>
19
  <div class="group share-alm">
20
  <div class="dotted">
ajax-load-more.php CHANGED
@@ -7,14 +7,14 @@ Text Domain: ajax-load-more
7
  Author: Darren Cooney
8
  Twitter: @KaptonKaos
9
  Author URI: http://connekthq.com
10
- Version: 2.11.1
11
  License: GPL
12
  Copyright: Darren Cooney & Connekt Media
13
  */
14
 
15
 
16
- define('ALM_VERSION', '2.11.1');
17
- define('ALM_RELEASE', 'May 30, 2016');
18
  define('ALM_STORE_URL', 'https://connekthq.com');
19
 
20
 
@@ -147,8 +147,8 @@ if( !class_exists('AjaxLoadMore') ):
147
  define('ALM_NAME', '_ajax_load_more');
148
  define('ALM_TITLE', 'Ajax Load More');
149
 
150
- if (!defined('ALM_ALTERNATING_ITEM_NAME')) define('ALM_ALTERNATING_ITEM_NAME', '14456');
151
  if (!defined('ALM_CACHE_ITEM_NAME')) define('ALM_CACHE_ITEM_NAME', '4878');
 
152
  if (!defined('ALM_COMMENTS_ITEM_NAME')) define('ALM_COMMENTS_ITEM_NAME', '12172');
153
  if (!defined('ALM_UNLIMITED_ITEM_NAME')) define('ALM_UNLIMITED_ITEM_NAME', '3118');
154
  if (!defined('ALM_LAYOUTS_ITEM_NAME')) define('ALM_LAYOUTS_ITEM_NAME', '11398');
@@ -253,9 +253,7 @@ if( !class_exists('AjaxLoadMore') ):
253
 
254
  //$file = plugins_url('/core/css/ajax-load-more.css', __FILE__ );
255
  $file = plugins_url('/core/css/ajax-load-more.min.css', __FILE__ );
256
-
257
- $filename = 'ajax-load-more';
258
- ALM_ENQUEUE::alm_enqueue_css($filename, $file);
259
 
260
  }
261
 
@@ -327,19 +325,6 @@ if( !class_exists('AjaxLoadMore') ):
327
  $type = alm_get_repeater_type($repeater);
328
  $theme_repeater = (isset($_GET['theme_repeater'])) ? $_GET['theme_repeater'] : 'null';
329
 
330
- // Alternate Template data array - from ajax-load-more.js
331
- $alternate = false;
332
- $alternateData = (isset($_GET['alternate'])) ? $_GET['alternate'] : '';
333
- if($alternateData){
334
- $alternate = true;
335
- $alternate_sequence = (isset($alternateData['alternate_sequence'])) ? $alternateData['alternate_sequence'] : '';
336
- $alternate_sequence_max = (isset($alternateData['alternate_sequence_max'])) ? $alternateData['alternate_sequence_max'] : '9999';
337
- if($alternate_sequence_max === '0')
338
- $alternate_sequence_max = '9999';
339
- $alternate_repeater = (isset($alternateData['alternate_repeater'])) ? $alternateData['alternate_repeater'] : 'null';
340
- $alternate_theme_repeater = (isset($alternateData['alternate_theme_repeater'])) ? $alternateData['alternate_theme_repeater'] : 'null';
341
- }
342
-
343
  $postType = (isset($_GET['post_type'])) ? $_GET['post_type'] : 'post';
344
  $post_format = (isset($_GET['post_format'])) ? $_GET['post_format'] : '';
345
 
@@ -398,9 +383,9 @@ if( !class_exists('AjaxLoadMore') ):
398
  }
399
 
400
 
401
- // Page
402
  $posts_per_page = (isset($_GET['posts_per_page'])) ? $_GET['posts_per_page'] : 5;
403
- $page = (isset($_GET['page'])) ? $_GET['page'] : 0;
404
 
405
  // Preload Add-on
406
  $preloaded = (isset($_GET['preloaded'])) ? $_GET['preloaded'] : 'false';
@@ -411,20 +396,43 @@ if( !class_exists('AjaxLoadMore') ):
411
  $offset = $offset + $preloaded_amount;
412
  }
413
 
414
- //Previous Post Add-on
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
415
  $is_previous_post = (isset($_GET['previous_post'])) ? $_GET['previous_post'] : false;
416
  $previous_post_id = (isset($_GET['previous_post_id'])) ? $_GET['previous_post_id'] : '';
417
 
418
  // Paging Add-on
419
  $paging = (isset($_GET['paging'])) ? $_GET['paging'] : false;
420
 
421
- //SEO Add-on
422
  $seo_start_page = (isset($_GET['seo_start_page'])) ? $_GET['seo_start_page'] : 1;
423
 
424
- // Language (Is this needed?)
425
  $lang = (isset($_GET['lang'])) ? $_GET['lang'] : '';
426
 
427
- // Set up initial args
428
  $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
429
  $args = array(
430
  'post_type' => $postType,
@@ -636,12 +644,11 @@ if( !class_exists('AjaxLoadMore') ):
636
  // Hijack $args and and return previous post only
637
  if($is_previous_post == 'true' && has_action('alm_prev_post_installed')){
638
  $args = apply_filters('alm_prev_post_args', $previous_post_id, $postType);
639
- }
640
 
641
- $args = apply_filters('alm_modify_query_args', $args, $slug); // ALM Core Filter Hook
642
-
643
- // WP_Query()
644
- $alm_query = new WP_Query( $args );
645
 
646
  // If preload, set our loop count and total posts to
647
  if(has_action('alm_preload_installed') && $preloaded === 'true'){
@@ -661,61 +668,56 @@ if( !class_exists('AjaxLoadMore') ):
661
  $page_cache = ''; // set our page cache variable
662
  }
663
 
664
- // Alternating Templates
665
- if($alternate && has_action('alm_alternating_installed')){
666
- $alternate_sequence_array = '';
667
- if($alternate_sequence === 'even'){
668
- $alternate_sequence_array = 'even';
669
- }else{
670
- $alternate_sequence_array = explode(',', $alternate_sequence);
671
- }
672
- $global_repeater = $repeater;
673
- $global_type = $type;
674
- $global_theme_repeater = $theme_repeater;
675
- }
676
-
677
 
678
  if($queryType === 'standard'){
679
 
680
  // Run the loop
681
  if ($alm_query->have_posts()) :
682
- $alm_found_posts = $alm_total_posts;
683
- $alm_current = 0;
 
 
 
 
 
 
 
 
684
 
685
  ob_start();
686
-
 
687
  while ($alm_query->have_posts()): $alm_query->the_post();
688
 
689
  $alm_loop_count++;
690
  $alm_current++;
691
  $alm_page = $alm_page_count; // Get page number
692
- $alm_item = ($alm_page_count * $posts_per_page) - $posts_per_page + $alm_loop_count; // Get current item
693
-
694
- // Alternating Templates
695
- if($alternate && has_action('alm_alternating_installed') && $alm_page <= $alternate_sequence_max){
696
- if (function_exists('alm_alternate_is_in_array')) {
697
- if(alm_alternate_is_in_array($alm_current, $alternate_sequence_array)){ // If $alm_current is found in array
698
- if($alternate_theme_repeater != 'null' && has_filter('alm_get_theme_repeater')){
699
- $theme_repeater = $alternate_theme_repeater;
700
- }else{
701
- $repeater = $alternate_repeater;
702
- $type = alm_get_repeater_type($repeater);
703
- }
704
- }else{ // Reset $repeater values
705
- $repeater = $global_repeater;
706
- $type = $global_type;
707
- $theme_repeater = $global_theme_repeater;
708
- }
709
- }
710
- }
711
-
712
- if($theme_repeater != 'null' && has_action('alm_get_theme_repeater')){
713
- do_action('alm_get_theme_repeater', $theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current); // Theme Repeater
714
  }else{
715
- include( alm_get_current_repeater($repeater, $type) ); //Include repeater template
716
  }
 
 
 
 
 
 
 
 
 
717
 
718
  endwhile; wp_reset_query();
 
719
 
720
  $data = ob_get_clean();
721
 
@@ -726,22 +728,30 @@ if( !class_exists('AjaxLoadMore') ):
726
  }
727
 
728
  $return = array(
729
- 'html' => $data
 
 
 
 
730
  );
731
-
732
  wp_send_json($return);
733
 
734
  else :
735
 
736
  $return = array(
737
- 'html' => null
 
738
  );
 
739
  wp_send_json($return);
740
 
741
  endif;
742
 
743
  }elseif($queryType === 'totalposts'){
744
- echo $alm_total_posts;
 
 
745
  }
746
 
747
  wp_die();
@@ -764,9 +774,8 @@ if( !class_exists('AjaxLoadMore') ):
764
  $ajax_load_more = new AjaxLoadMore();
765
 
766
  return $ajax_load_more;
767
- }
768
- // initialize
769
- AjaxLoadMore();
770
 
771
 
772
  endif; // class_exists check
7
  Author: Darren Cooney
8
  Twitter: @KaptonKaos
9
  Author URI: http://connekthq.com
10
+ Version: 2.11.2
11
  License: GPL
12
  Copyright: Darren Cooney & Connekt Media
13
  */
14
 
15
 
16
+ define('ALM_VERSION', '2.11.2');
17
+ define('ALM_RELEASE', 'August 4, 2016');
18
  define('ALM_STORE_URL', 'https://connekthq.com');
19
 
20
 
147
  define('ALM_NAME', '_ajax_load_more');
148
  define('ALM_TITLE', 'Ajax Load More');
149
 
 
150
  if (!defined('ALM_CACHE_ITEM_NAME')) define('ALM_CACHE_ITEM_NAME', '4878');
151
+ if (!defined('ALM_CTA_ITEM_NAME')) define('ALM_CTA_ITEM_NAME', '14456');
152
  if (!defined('ALM_COMMENTS_ITEM_NAME')) define('ALM_COMMENTS_ITEM_NAME', '12172');
153
  if (!defined('ALM_UNLIMITED_ITEM_NAME')) define('ALM_UNLIMITED_ITEM_NAME', '3118');
154
  if (!defined('ALM_LAYOUTS_ITEM_NAME')) define('ALM_LAYOUTS_ITEM_NAME', '11398');
253
 
254
  //$file = plugins_url('/core/css/ajax-load-more.css', __FILE__ );
255
  $file = plugins_url('/core/css/ajax-load-more.min.css', __FILE__ );
256
+ ALM_ENQUEUE::alm_enqueue_css('ajax-load-more', $file);
 
 
257
 
258
  }
259
 
325
  $type = alm_get_repeater_type($repeater);
326
  $theme_repeater = (isset($_GET['theme_repeater'])) ? $_GET['theme_repeater'] : 'null';
327
 
 
 
 
 
 
 
 
 
 
 
 
 
 
328
  $postType = (isset($_GET['post_type'])) ? $_GET['post_type'] : 'post';
329
  $post_format = (isset($_GET['post_format'])) ? $_GET['post_format'] : '';
330
 
383
  }
384
 
385
 
386
+ // Page Parameters
387
  $posts_per_page = (isset($_GET['posts_per_page'])) ? $_GET['posts_per_page'] : 5;
388
+ $page = (isset($_GET['page'])) ? $_GET['page'] : 0;
389
 
390
  // Preload Add-on
391
  $preloaded = (isset($_GET['preloaded'])) ? $_GET['preloaded'] : 'false';
396
  $offset = $offset + $preloaded_amount;
397
  }
398
 
399
+ // CTA Add-on
400
+ $cta = false;
401
+ $ctaData = (isset($_GET['cta'])) ? $_GET['cta'] : '';
402
+ if($ctaData){
403
+ $cta = true;
404
+ $cta_position = (isset($ctaData['cta_position'])) ? $ctaData['cta_position'] : 'before:1:0';
405
+ $cta_position_array = explode(":", $cta_position);
406
+ $cta_pos = (string)$cta_position_array[0];
407
+ $cta_val = (string)$cta_position_array[1];
408
+ $cta_repeat = (string)$cta_position_array[2];
409
+ if($cta_repeat == 0){
410
+ $cta_repeat = 9999;
411
+ }
412
+ if($preloaded == 'true'){
413
+ $cta_repeat = $cta_repeat - 1;
414
+ }
415
+ if($cta_pos != 'after'){
416
+ $cta_pos = 'before';
417
+ }
418
+ $cta_repeater = (isset($ctaData['cta_repeater'])) ? $ctaData['cta_repeater'] : 'null';
419
+ $cta_theme_repeater = (isset($ctaData['cta_theme_repeater'])) ? $ctaData['cta_theme_repeater'] : 'null';
420
+ }
421
+
422
+ // Previous Post Add-on
423
  $is_previous_post = (isset($_GET['previous_post'])) ? $_GET['previous_post'] : false;
424
  $previous_post_id = (isset($_GET['previous_post_id'])) ? $_GET['previous_post_id'] : '';
425
 
426
  // Paging Add-on
427
  $paging = (isset($_GET['paging'])) ? $_GET['paging'] : false;
428
 
429
+ // SEO Add-on
430
  $seo_start_page = (isset($_GET['seo_start_page'])) ? $_GET['seo_start_page'] : 1;
431
 
432
+ // Language (Is this required?)
433
  $lang = (isset($_GET['lang'])) ? $_GET['lang'] : '';
434
 
435
+ // Set up initial query arguments
436
  $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
437
  $args = array(
438
  'post_type' => $postType,
644
  // Hijack $args and and return previous post only
645
  if($is_previous_post == 'true' && has_action('alm_prev_post_installed')){
646
  $args = apply_filters('alm_prev_post_args', $previous_post_id, $postType);
647
+ }
648
 
649
+ $args = apply_filters('alm_modify_query_args', $args, $slug); // ALM Core Filter Hook
650
+
651
+ $alm_query = new WP_Query( $args ); // WP_Query()
 
652
 
653
  // If preload, set our loop count and total posts to
654
  if(has_action('alm_preload_installed') && $preloaded === 'true'){
668
  $page_cache = ''; // set our page cache variable
669
  }
670
 
 
 
 
 
 
 
 
 
 
 
 
 
 
671
 
672
  if($queryType === 'standard'){
673
 
674
  // Run the loop
675
  if ($alm_query->have_posts()) :
676
+
677
+ $alm_found_posts = $alm_total_posts;
678
+ $alm_post_count = $alm_query->post_count;
679
+ $alm_current = 0;
680
+ $alm_has_cta = false;
681
+
682
+ $cta_array = Array();
683
+ if($cta && has_action('alm_cta_pos_array')){ // Build CTA Position Array
684
+ $cta_array = apply_filters('alm_cta_pos_array', $seo_start_page, $page, $posts_per_page, $alm_post_count, $cta_val, $cta_repeat);
685
+ }
686
 
687
  ob_start();
688
+
689
+ // ALM Loop
690
  while ($alm_query->have_posts()): $alm_query->the_post();
691
 
692
  $alm_loop_count++;
693
  $alm_current++;
694
  $alm_page = $alm_page_count; // Get page number
695
+ $alm_item = ($alm_page_count * $posts_per_page) - $posts_per_page + $alm_loop_count; // Get current item
696
+
697
+ // Call to Action [Before]
698
+ if($cta && has_action('alm_cta_inc') && $cta_pos == 'before' && in_array($alm_current, $cta_array)){
699
+ do_action('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $type, $alm_found_posts, $alm_page, $alm_item, $alm_current);
700
+ $alm_has_cta = true;
701
+ }
702
+
703
+ // Repeater Template
704
+ if($theme_repeater != 'null' && has_action('alm_get_theme_repeater')){ // Theme Repeater
705
+ do_action('alm_get_theme_repeater', $theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current);
 
 
 
 
 
 
 
 
 
 
 
706
  }else{
707
+ include(alm_get_current_repeater( $repeater, $type )); //Include repeater template
708
  }
709
+ // End Repeater Template
710
+
711
+
712
+ // Call to Action [After]
713
+ if($cta && has_action('alm_cta_inc') && $cta_pos == 'after' && in_array($alm_current, $cta_array)){
714
+ do_action('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $type, $alm_found_posts, $alm_page, $alm_item, $alm_current);
715
+ $alm_has_cta = true;
716
+ }
717
+
718
 
719
  endwhile; wp_reset_query();
720
+ // End ALM Loop
721
 
722
  $data = ob_get_clean();
723
 
728
  }
729
 
730
  $return = array(
731
+ 'html' => $data,
732
+ 'meta' => array(
733
+ 'postcount' => $alm_post_count,
734
+ 'totalposts' => $alm_found_posts
735
+ )
736
  );
737
+
738
  wp_send_json($return);
739
 
740
  else :
741
 
742
  $return = array(
743
+ 'html' => null,
744
+ 'meta' => null
745
  );
746
+
747
  wp_send_json($return);
748
 
749
  endif;
750
 
751
  }elseif($queryType === 'totalposts'){
752
+
753
+ echo $alm_total_posts; // Paging add-on
754
+
755
  }
756
 
757
  wp_die();
774
  $ajax_load_more = new AjaxLoadMore();
775
 
776
  return $ajax_load_more;
777
+ }
778
+ AjaxLoadMore(); // initialize
 
779
 
780
 
781
  endif; // class_exists check
core/classes/class.alm-shortcode.php CHANGED
@@ -15,10 +15,8 @@ if ( ! defined( 'ABSPATH' ) ) {
15
  if( !class_exists('ALM_SHORTCODE') ):
16
 
17
  class ALM_SHORTCODE {
18
-
19
-
20
- static $counter = 0;
21
-
22
 
23
  /**
24
  * alm_render_shortcode
@@ -80,11 +78,10 @@ if( !class_exists('ALM_SHORTCODE') ):
80
  'seo' => 'false',
81
  'repeater' => 'default',
82
  'theme_repeater' => 'null',
83
- 'alternate' => false,
84
- 'alternate_sequence' => '',
85
- 'alternate_sequence_max' => '0',
86
- 'alternate_repeater' => 'null',
87
- 'alternate_theme_repeater' => 'null',
88
  'post_type' => 'post',
89
  'post_format' => '',
90
  'category' => '',
@@ -155,8 +152,7 @@ if( !class_exists('ALM_SHORTCODE') ):
155
  $transition_container = "true";
156
 
157
  if($restapi === 'true'){
158
- $restapi = true;
159
-
160
  $preloaded = false;
161
  }
162
 
@@ -225,7 +221,7 @@ if( !class_exists('ALM_SHORTCODE') ):
225
  $paging_container_class = '';
226
  if($paging === 'true'){
227
  $paging_container_class = ' alm-paging-wrap';
228
- $preloaded = "false";
229
  }
230
 
231
 
@@ -233,68 +229,15 @@ if( !class_exists('ALM_SHORTCODE') ):
233
  $ajaxloadmore = '';
234
 
235
  $ajaxloadmore .= apply_filters('alm_before_container', ''); // ALM Core Filter Hook
236
-
237
- // Build canonical URL
238
- // - Check the page/post type and then get the correct base url for the page.
239
-
240
- // Date
241
- if(is_date()){
242
- // Is archive page
243
- $archive_year = get_the_date('Y');
244
- $archive_month = get_the_date('m');
245
- $archive_day = get_the_date('d');
246
- if(is_year()){
247
- $canonicalURL = get_year_link( $archive_year );
248
- }
249
- if(is_month()){
250
- $canonicalURL = get_month_link( $archive_year, $archive_month );
251
- }
252
- if(is_day()){
253
- $canonicalURL = get_month_link( $archive_year, $archive_month, $archive_day );
254
- }
255
- }
256
- // Frontpage
257
- elseif(is_front_page()){
258
- $canonicalURL = get_home_url().'/';
259
- }
260
- // Home (Blog Default)
261
- elseif(is_home()){
262
- $canonicalURL = get_permalink(get_option('page_for_posts'));
263
- }
264
- // Category
265
- elseif(is_category()){
266
- $cur_cat_id = get_cat_id( single_cat_title('',false) );
267
- $canonicalURL = get_category_link($cur_cat_id);
268
- }
269
- // Tag
270
- elseif(is_tag()){
271
- $cur_tag_id = get_query_var('tag_id');
272
- $canonicalURL = get_tag_link($cur_tag_id);
273
- }
274
- // Author
275
- elseif(is_author()){
276
- $author_id = get_the_author_meta('ID');
277
- $canonicalURL = get_author_posts_url($author_id);
278
- }
279
- // Taxonomy
280
- elseif(is_tax()){
281
- $tax_term = get_term_by('slug', get_query_var('term'), get_query_var('taxonomy' ));
282
- $tax_id = $tax_term->term_id;
283
- $canonicalURL = get_term_link($tax_id);
284
- }
285
- // post_type
286
- elseif(is_post_type_archive()){
287
- $post_type_archive = get_post_type();
288
- $canonicalURL = get_post_type_archive_link($post_type_archive);
289
- }
290
- else{
291
- $canonicalURL = get_permalink();
292
- }
293
- // End build canonical URL
294
-
295
 
296
  // ALM Wrapper
297
- $ajaxloadmore .= '<div id="ajax-load-more" class="ajax-load-more-wrap'. $btn_color .''. $paging_color .''. $alm_layouts .'" data-id="" data-canonical-url="'. $canonicalURL .'" data-slug="'. $slug .'">';
 
 
 
 
298
 
299
 
300
  // Previous Post
@@ -339,7 +282,17 @@ if( !class_exists('ALM_SHORTCODE') ):
339
  if($paged > 1){
340
  $preload_offset = $preloaded_amount * ($paged-2);
341
  }
342
- }
 
 
 
 
 
 
 
 
 
 
343
 
344
  $preloaded_arr = array( // Create preload data array
345
  'comments' => $comments,
@@ -391,20 +344,7 @@ if( !class_exists('ALM_SHORTCODE') ):
391
  $alm_preload_query = new WP_Query($args);
392
  $alm_total_posts = $alm_preload_query->found_posts - $offset;
393
  $output = '';
394
- $noscript = '';
395
-
396
- // Alternating Templates
397
- if($alternate === 'true' && has_action('alm_alternating_installed')){
398
- $alternate_sequence_array = '';
399
- if($alternate_sequence === 'even'){
400
- $alternate_sequence_array = 'even';
401
- }else{
402
- $alternate_sequence_array = explode(',', $alternate_sequence);
403
- }
404
- $global_repeater = $repeater;
405
- $global_type = $type;
406
- $global_theme_repeater = $theme_repeater;
407
- }
408
 
409
  if ($alm_preload_query->have_posts()) :
410
  $alm_loop_count = 0; // Count var
@@ -412,30 +352,27 @@ if( !class_exists('ALM_SHORTCODE') ):
412
  $alm_found_posts = $alm_total_posts;
413
  $alm_current = 0;
414
  while ($alm_preload_query->have_posts()) : $alm_preload_query->the_post();
 
415
  $alm_loop_count++;
416
  $alm_current++;
417
- $alm_item = $alm_loop_count; // Get current item in loop
418
-
419
- // Alternating Templates
420
- if($alternate === 'true' && has_action('alm_alternating_installed')){
421
- if (function_exists('alm_alternate_is_in_array')) {
422
- if(alm_alternate_is_in_array($alm_current, $alternate_sequence_array)){ // If $alm_current is found in array
423
- if($alternate_theme_repeater != 'null' && has_filter('alm_get_theme_repeater')){
424
- $theme_repeater = $alternate_theme_repeater;
425
- }else{
426
- $repeater = $alternate_repeater;
427
- $type = alm_get_repeater_type($repeater);
428
- }
429
- }else{ // Reset $repeater values
430
- $repeater = $global_repeater;
431
- $type = $global_type;
432
- $theme_repeater = $global_theme_repeater;
433
- }
434
- }
435
- }
436
-
437
- $output .= apply_filters('alm_preload_inc', $repeater, $type, $theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current);
438
-
439
  endwhile; wp_reset_query();
440
 
441
  if(has_action('alm_seo_installed') && $seo === 'true'){ // If SEO, add noscript paging
@@ -446,23 +383,22 @@ if( !class_exists('ALM_SHORTCODE') ):
446
  endif;
447
 
448
  $preloaded_output .= '<'.$container_element.' class="alm-listing alm-preloaded'. $classname .' '. $css_classes .'" data-total-posts="'. $alm_total_posts .'">';
449
- if($seo === "true") $preloaded_output .= '<div class="alm-reveal alm-seo" data-page="1" data-url="'.$canonicalURL.'">';
 
 
 
450
 
451
  $preloaded_output .= $output;
452
 
453
- if($seo === "true") $preloaded_output .= '</div>';
 
 
 
454
  $preloaded_output .= '</'.$container_element.'>';
455
 
456
  if(has_action('alm_seo_installed')){ // If SEO, add noscript paging
457
  $preloaded_output .= $noscript;
458
  }
459
-
460
- // Reset templates (custom and theme) if $alternate is true
461
- if($alternate === 'true' && has_action('alm_alternating_installed')){
462
- $repeater = $global_repeater;
463
- $type = $global_type;
464
- $theme_repeater = $theme_repeater;
465
- }
466
  }
467
 
468
  // Preloaded Comments
@@ -496,19 +432,6 @@ if( !class_exists('ALM_SHORTCODE') ):
496
  $ajaxloadmore .= '<'.$container_element.' class="'.$listing_class.' alm-ajax'. $paging_container_class .' '. $classname . ' '. $css_classes .'"'; // Build ALM container
497
 
498
 
499
- // Alternating Templates Add-on
500
- if(has_action('alm_alternating_installed') && $alternate === 'true'){
501
- $alternate_return = apply_filters(
502
- 'alm_alternating_templates_shortcode',
503
- $alternate,
504
- $alternate_sequence,
505
- $alternate_sequence_max,
506
- $alternate_repeater,
507
- $alternate_theme_repeater
508
- );
509
- $ajaxloadmore .= $alternate_return;
510
- }
511
-
512
  // Cache Add-on
513
  if(has_action('alm_cache_installed') && $cache === 'true'){
514
  $cache_return = apply_filters(
@@ -518,6 +441,18 @@ if( !class_exists('ALM_SHORTCODE') ):
518
  $options
519
  );
520
  $ajaxloadmore .= $cache_return;
 
 
 
 
 
 
 
 
 
 
 
 
521
  }
522
 
523
  // Comments Add-on
@@ -664,7 +599,7 @@ if( !class_exists('ALM_SHORTCODE') ):
664
  $ajaxloadmore .= $previous_post_output; // Add $next_post_output data to $ajaxloadmore
665
 
666
  }
667
- // End Previous Post
668
 
669
 
670
  $ajaxloadmore .= '</'.$container_element.'>';
15
  if( !class_exists('ALM_SHORTCODE') ):
16
 
17
  class ALM_SHORTCODE {
18
+
19
+ static $counter = 0;
 
 
20
 
21
  /**
22
  * alm_render_shortcode
78
  'seo' => 'false',
79
  'repeater' => 'default',
80
  'theme_repeater' => 'null',
81
+ 'cta' => false,
82
+ 'cta_position' => 'before:1:0',
83
+ 'cta_repeater' => 'null',
84
+ 'cta_theme_repeater' => 'null',
 
85
  'post_type' => 'post',
86
  'post_format' => '',
87
  'category' => '',
152
  $transition_container = "true";
153
 
154
  if($restapi === 'true'){
155
+ $restapi = true;
 
156
  $preloaded = false;
157
  }
158
 
221
  $paging_container_class = '';
222
  if($paging === 'true'){
223
  $paging_container_class = ' alm-paging-wrap';
224
+ $preloaded = "false";
225
  }
226
 
227
 
229
  $ajaxloadmore = '';
230
 
231
  $ajaxloadmore .= apply_filters('alm_before_container', ''); // ALM Core Filter Hook
232
+
233
+ $canonicalURL = alm_get_canonical_url(); // Build canonical URL
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
234
 
235
  // ALM Wrapper
236
+ $id = 'ajax-load-more';
237
+ if(self::$counter > 1){
238
+ $id = '';
239
+ }
240
+ $ajaxloadmore .= '<div id="'. $id .'" class="ajax-load-more-wrap'. $btn_color .''. $paging_color .''. $alm_layouts .'" data-id="" data-canonical-url="'. $canonicalURL .'" data-slug="'. $slug .'">';
241
 
242
 
243
  // Previous Post
282
  if($paged > 1){
283
  $preload_offset = $preloaded_amount * ($paged-2);
284
  }
285
+ }
286
+
287
+ // If CTA, parse $cta_position
288
+ if($cta){
289
+ $cta_pos_array = explode(":", $cta_position);
290
+ $cta_pos = (string)$cta_pos_array[0];
291
+ $cta_val = (string)$cta_pos_array[1];
292
+ if($cta_pos != 'after'){
293
+ $cta_pos = 'before';
294
+ }
295
+ }
296
 
297
  $preloaded_arr = array( // Create preload data array
298
  'comments' => $comments,
344
  $alm_preload_query = new WP_Query($args);
345
  $alm_total_posts = $alm_preload_query->found_posts - $offset;
346
  $output = '';
347
+ $noscript = '';
 
 
 
 
 
 
 
 
 
 
 
 
 
348
 
349
  if ($alm_preload_query->have_posts()) :
350
  $alm_loop_count = 0; // Count var
352
  $alm_found_posts = $alm_total_posts;
353
  $alm_current = 0;
354
  while ($alm_preload_query->have_posts()) : $alm_preload_query->the_post();
355
+
356
  $alm_loop_count++;
357
  $alm_current++;
358
+ $alm_item = $alm_loop_count; // Get current item in loop
359
+
360
+ // Call to Action [Before]
361
+ if($cta && has_action('alm_cta_inc') && $cta_pos == 'before'){
362
+ if($alm_current == $cta_val){
363
+ $output .= apply_filters('alm_cta_preloaded_inc', $cta_repeater, $cta_theme_repeater, $type, $alm_found_posts, $alm_page, $alm_item, $alm_current);
364
+ }
365
+ }
366
+
367
+ $output .= apply_filters('alm_preload_inc', $repeater, $type, $theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current);
368
+
369
+ // Call to Action [After]
370
+ if($cta && has_action('alm_cta_inc') && $cta_pos == 'after'){
371
+ if($alm_current == $cta_val){
372
+ $output .= apply_filters('alm_cta_preloaded_inc', $cta_repeater, $cta_theme_repeater, $type, $alm_found_posts, $alm_page, $alm_item, $alm_current);
373
+ }
374
+ }
375
+
 
 
 
 
376
  endwhile; wp_reset_query();
377
 
378
  if(has_action('alm_seo_installed') && $seo === 'true'){ // If SEO, add noscript paging
383
  endif;
384
 
385
  $preloaded_output .= '<'.$container_element.' class="alm-listing alm-preloaded'. $classname .' '. $css_classes .'" data-total-posts="'. $alm_total_posts .'">';
386
+
387
+ if($seo === "true"){
388
+ $preloaded_output .= '<div class="alm-reveal alm-seo" data-page="1" data-url="'.$canonicalURL.'">';
389
+ }
390
 
391
  $preloaded_output .= $output;
392
 
393
+ if($seo === "true"){
394
+ $preloaded_output .= '</div>';
395
+ }
396
+
397
  $preloaded_output .= '</'.$container_element.'>';
398
 
399
  if(has_action('alm_seo_installed')){ // If SEO, add noscript paging
400
  $preloaded_output .= $noscript;
401
  }
 
 
 
 
 
 
 
402
  }
403
 
404
  // Preloaded Comments
432
  $ajaxloadmore .= '<'.$container_element.' class="'.$listing_class.' alm-ajax'. $paging_container_class .' '. $classname . ' '. $css_classes .'"'; // Build ALM container
433
 
434
 
 
 
 
 
 
 
 
 
 
 
 
 
 
435
  // Cache Add-on
436
  if(has_action('alm_cache_installed') && $cache === 'true'){
437
  $cache_return = apply_filters(
441
  $options
442
  );
443
  $ajaxloadmore .= $cache_return;
444
+ }
445
+
446
+ // CTA Add-on
447
+ if(has_action('alm_cta_installed') && $cta === 'true'){
448
+ $cta_return = apply_filters(
449
+ 'alm_cta_shortcode',
450
+ $cta,
451
+ $cta_position,
452
+ $cta_repeater,
453
+ $cta_theme_repeater
454
+ );
455
+ $ajaxloadmore .= $cta_return;
456
  }
457
 
458
  // Comments Add-on
599
  $ajaxloadmore .= $previous_post_output; // Add $next_post_output data to $ajaxloadmore
600
 
601
  }
602
+ // / Previous Post Add-on
603
 
604
 
605
  $ajaxloadmore .= '</'.$container_element.'>';
core/functions.php CHANGED
@@ -16,7 +16,7 @@ function alm_get_current_repeater($repeater, $type) {
16
 
17
  // If is Custom Repeaters (Custom Repeaters v1)
18
  if( $type == 'repeater' && has_action('alm_repeater_installed' )){
19
- $include = ALM_REPEATER_PATH . 'repeaters/'. $template .'.php';
20
 
21
  if(!file_exists($include)) //confirm file exists
22
  alm_get_default_repeater();
@@ -40,6 +40,12 @@ function alm_get_current_repeater($repeater, $type) {
40
  // Default repeater
41
  else{
42
  $include = alm_get_default_repeater();
 
 
 
 
 
 
43
  }
44
 
45
  return $include;
@@ -295,11 +301,9 @@ function alm_get_tax_query($post_format, $taxonomy, $taxonomy_terms, $taxonomy_o
295
  * @since 2.5.0
296
  */
297
  function alm_get_meta_query($meta_key, $meta_value, $meta_compare, $meta_type){
298
- if(!empty($meta_key)){
299
-
300
  $meta_values = alm_parse_meta_value($meta_value, $meta_compare);
301
- if(!empty($meta_values)){
302
-
303
  $return = array(
304
  'key' => $meta_key,
305
  'value' => $meta_values,
@@ -312,14 +316,10 @@ function alm_get_meta_query($meta_key, $meta_value, $meta_compare, $meta_type){
312
  'key' => $meta_key,
313
  'compare' => $meta_compare,
314
  'type' => $meta_type
315
- );
316
-
317
- }
318
-
319
- return $return;
320
-
321
- }
322
-
323
  }
324
 
325
 
@@ -362,6 +362,76 @@ function alm_get_repeater_type($repeater){
362
 
363
 
364
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
365
  /*
366
  * alm_paging_no_script
367
  * Create paging navigation
@@ -416,9 +486,6 @@ function alm_paging_no_script($alm_preload_query){
416
  }
417
  $content .= '</div>';
418
  $content .= '</noscript>';
419
- }
420
-
421
  return $content;
422
  }
423
-
424
-
16
 
17
  // If is Custom Repeaters (Custom Repeaters v1)
18
  if( $type == 'repeater' && has_action('alm_repeater_installed' )){
19
+ $include = ALM_REPEATER_PATH . 'repeaters/'. $template .'.php';
20
 
21
  if(!file_exists($include)) //confirm file exists
22
  alm_get_default_repeater();
40
  // Default repeater
41
  else{
42
  $include = alm_get_default_repeater();
43
+ }
44
+
45
+ // Security check
46
+ // check if $template contains relative path. So, set include to default
47
+ if ( false !== strpos( $template, './' ) ) {
48
+ $include = alm_get_default_repeater();
49
  }
50
 
51
  return $include;
301
  * @since 2.5.0
302
  */
303
  function alm_get_meta_query($meta_key, $meta_value, $meta_compare, $meta_type){
304
+ if(!empty($meta_key)){
 
305
  $meta_values = alm_parse_meta_value($meta_value, $meta_compare);
306
+ if(!empty($meta_values)){
 
307
  $return = array(
308
  'key' => $meta_key,
309
  'value' => $meta_values,
316
  'key' => $meta_key,
317
  'compare' => $meta_compare,
318
  'type' => $meta_type
319
+ );
320
+ }
321
+ return $return;
322
+ }
 
 
 
 
323
  }
324
 
325
 
362
 
363
 
364
 
365
+ /*
366
+ * alm_get_canonical_url
367
+ * Get current page base URL
368
+ *
369
+ * @return $canonicalURL;
370
+ * @since 2.12
371
+ */
372
+ function alm_get_canonical_url(){
373
+
374
+ $canonicalURL = '';
375
+
376
+ // Date
377
+ if(is_date()){
378
+ // Is archive page
379
+ $archive_year = get_the_date('Y');
380
+ $archive_month = get_the_date('m');
381
+ $archive_day = get_the_date('d');
382
+ if(is_year()){
383
+ $canonicalURL = get_year_link( $archive_year );
384
+ }
385
+ if(is_month()){
386
+ $canonicalURL = get_month_link( $archive_year, $archive_month );
387
+ }
388
+ if(is_day()){
389
+ $canonicalURL = get_month_link( $archive_year, $archive_month, $archive_day );
390
+ }
391
+ }
392
+ // Frontpage
393
+ elseif(is_front_page()){
394
+ $canonicalURL = get_home_url().'/';
395
+ }
396
+ // Home (Blog Default)
397
+ elseif(is_home()){
398
+ $canonicalURL = get_permalink(get_option('page_for_posts'));
399
+ }
400
+ // Category
401
+ elseif(is_category()){
402
+ $cur_cat_id = get_cat_id( single_cat_title('',false) );
403
+ $canonicalURL = get_category_link($cur_cat_id);
404
+ }
405
+ // Tag
406
+ elseif(is_tag()){
407
+ $cur_tag_id = get_query_var('tag_id');
408
+ $canonicalURL = get_tag_link($cur_tag_id);
409
+ }
410
+ // Author
411
+ elseif(is_author()){
412
+ $author_id = get_the_author_meta('ID');
413
+ $canonicalURL = get_author_posts_url($author_id);
414
+ }
415
+ // Taxonomy
416
+ elseif(is_tax()){
417
+ $tax_term = get_term_by('slug', get_query_var('term'), get_query_var('taxonomy' ));
418
+ $tax_id = $tax_term->term_id;
419
+ $canonicalURL = get_term_link($tax_id);
420
+ }
421
+ // post_type
422
+ elseif(is_post_type_archive()){
423
+ $post_type_archive = get_post_type();
424
+ $canonicalURL = get_post_type_archive_link($post_type_archive);
425
+ }
426
+ else{
427
+ $canonicalURL = get_permalink();
428
+ }
429
+
430
+ return $canonicalURL;
431
+ }
432
+
433
+
434
+
435
  /*
436
  * alm_paging_no_script
437
  * Create paging navigation
486
  }
487
  $content .= '</div>';
488
  $content .= '</noscript>';
489
+ }
 
490
  return $content;
491
  }
 
 
core/js/ajax-load-more.js CHANGED
@@ -61,12 +61,11 @@
61
  alm.orginal_posts_per_page = alm.content.attr('data-posts-per-page'); // Used for paging add-on
62
  alm.posts_per_page = alm.content.attr('data-posts-per-page');
63
 
64
- alm.alternate_array = '';
65
- alm.alternate = alm.content.attr('data-alternate'); // is Alternating Templates enabled?
66
- alm.alternate_sequence = alm.content.attr('data-alternate-sequence');
67
- alm.alternate_sequence_max = alm.content.attr('data-alternate-sequence-max');
68
- alm.alternate_repeater = alm.content.attr('data-alternate-repeater');
69
- alm.alternate_theme_repeater = alm.content.attr('data-alternate-theme-repeater');
70
 
71
  alm.previous_post = alm.content.attr('data-previous-post'); // Next Post add-on
72
  alm.previous_post_id = alm.content.attr('data-previous-post-id'); // Get the post id
@@ -351,10 +350,11 @@
351
  alm.container.append('<div class="' + alm.prefix + 'btn-wrap"/>');
352
  alm.btnWrap = $('.' + alm.prefix + 'btn-wrap', alm.container);
353
  if(alm.paging){
 
354
  // Paging add-on
355
  alm.content.parent().addClass('loading'); // add loading class to main container
356
- }else{
357
 
 
358
 
359
  // If paging is false
360
  $('.'+ 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>');
@@ -440,14 +440,13 @@
440
 
441
  }
442
 
443
- // Alternate Query params
444
- if(alm.alternate === 'true'){
445
- alm.alternate_array = {
446
- 'alternate': 'true',
447
- 'alternate_sequence': alm.alternate_sequence,
448
- 'alternate_sequence_max': alm.alternate_sequence_max,
449
- 'alternate_repeater': alm.alternate_repeater,
450
- 'alternate_theme_repeater': alm.alternate_theme_repeater,
451
  };
452
  }
453
 
@@ -531,7 +530,7 @@
531
  cache_id : alm.cache_id,
532
  repeater : alm.repeater,
533
  theme_repeater : alm.theme_repeater,
534
- alternate : alm.alternate_array,
535
  comments : alm.comments_array,
536
  post_type : alm.post_type,
537
  post_format : alm.content.attr('data-post-format'),
@@ -618,17 +617,26 @@
618
  if(alm.previous_post){ // Get previous page data
619
  alm.AjaxLoadMore.getPreviousPost();
620
  }
621
- var html;
622
 
623
  if(!is_cache){
624
  html = data.html;
 
625
  }else{
626
  html = data; // If is cache, don't look for json data
627
  }
628
 
629
- alm.data = $(html); // Convert data to an object
 
630
 
631
- if (alm.init) {
 
 
 
 
 
 
 
632
  if(!alm.paging){
633
 
634
  alm.button.text(alm.button_label);
@@ -636,7 +644,7 @@
636
  } else {
637
 
638
  // Is pagination
639
- if (alm.data.length > 0) {
640
  alm.el = $('<div class="alm-reveal"/>');
641
  alm.el.append('<div class="alm-paging-content"></div><div class="alm-paging-loading"></div>');
642
  $('.alm-paging-content', alm.el).append(alm.data).hide();
@@ -657,7 +665,7 @@
657
  }
658
 
659
  // ALM Empty - triggers if zero results were returned
660
- if(alm.data.length === 0){
661
  if ($.isFunction($.fn.almEmpty)) {
662
  $.fn.almEmpty(alm);
663
  }
@@ -671,7 +679,8 @@
671
  }
672
 
673
  // We have results!
674
- if (alm.data.length > 0) {
 
675
  if(!alm.paging){
676
 
677
  if(alm.previous_post){ // If Previous Post, create container and append data
@@ -693,11 +702,19 @@
693
  // - loop through items and break them separate alm-reveal divs
694
  if (alm.init && alm.start_page > 1){
695
 
696
- var data = [];
697
- var size = Math.ceil(alm.data.length/alm.start_page); // slice data array into pages
698
- //console.log(size);
699
- for (var i = 0; i < alm.data.length; i += size) {
700
- data.push(alm.data.slice(i, size + i));
 
 
 
 
 
 
 
 
701
  }
702
 
703
  alm.el = alm.content; // Set alm.el to be alm-listing div
@@ -772,7 +789,7 @@
772
  alm.button.delay(alm.speed).removeClass('loading');
773
  alm.resetBtnText();
774
  }
775
- if (alm.data.length < alm.posts_per_page) {
776
  alm.finished = true;
777
  if(!alm.paging){
778
  alm.button.addClass('done');
@@ -790,7 +807,7 @@
790
  alm.button.delay(alm.speed).removeClass('loading');
791
  alm.resetBtnText();
792
  }
793
- if (alm.data.length < alm.posts_per_page) {
794
  alm.finished = true;
795
  if(!alm.paging){
796
  alm.button.addClass('done');
@@ -821,7 +838,7 @@
821
  alm.button.delay(alm.speed).removeClass('loading');
822
  alm.resetBtnText();
823
  }
824
- if (alm.data.length < alm.posts_per_page) {
825
  alm.finished = true;
826
  if(!alm.paging){
827
  alm.button.addClass('done');
@@ -837,7 +854,7 @@
837
  alm.button.delay(alm.speed).removeClass('loading');
838
  alm.resetBtnText();
839
  }
840
- if (alm.data.length < alm.posts_per_page) {
841
  alm.finished = true;
842
  if(!alm.paging){
843
  alm.button.addClass('done');
@@ -855,7 +872,7 @@
855
  alm.button.delay(alm.speed).removeClass('loading');
856
  alm.resetBtnText();
857
  }
858
- if (alm.data.length < alm.posts_per_page) {
859
  alm.finished = true;
860
  if(!alm.paging){
861
  alm.button.addClass('done');
@@ -870,8 +887,7 @@
870
 
871
  } else {
872
  // Is Paging
873
- if(!alm.init){
874
-
875
  $('.alm-paging-content', alm.el).html('').append(alm.data).almWaitForImages().done(function(){ // Remove loading class and append data
876
  $('.alm-paging-loading', alm.el).fadeOut(alm.speed); // Fade out loader
877
  if ($.isFunction($.fn.almOnPagingComplete)){
@@ -881,6 +897,10 @@
881
  $.fn.almSEO(alm);
882
  }
883
  });
 
 
 
 
884
  }
885
  }
886
 
@@ -897,7 +917,7 @@
897
 
898
  // ALM Done
899
  // - If data is returned but it's less than the posts per page.
900
- if(alm.data.length < alm.posts_per_page){
901
  if ($.isFunction($.fn.almDone)) {
902
  // Delay done until after animation
903
  setTimeout(function(){
@@ -1079,24 +1099,20 @@
1079
  */
1080
  if (alm.scroll && !alm.paging) {
1081
  alm.window.bind("scroll touchstart", function () {
1082
- if (alm.AjaxLoadMore.isVisible() && !alm.fetchingPreviousPost) {
1083
-
1084
  var content_offset = alm.button.offset(),
1085
- top = Math.round(content_offset.top - (alm.window.height() - alm.scroll_distance));
1086
 
1087
- // Pause Override
1088
- if(!alm.loading && !alm.finished && (alm.window.scrollTop() >= top) && alm.page < (alm.max_pages - 1) && alm.proceed && alm.pause === 'true' && alm.pause_override === 'true'){
1089
- // If Pause && Pause Override
1090
- alm.button.trigger('click');
1091
-
1092
  }
 
1093
  // Standard Scroll event
1094
  else{
1095
- if (!alm.loading && !alm.finished && (alm.window.scrollTop() >= top) && alm.page < (alm.max_pages - 1) && alm.proceed && alm.pause !== 'true') {
1096
-
1097
  alm.page++;
1098
- alm.AjaxLoadMore.loadPosts();
1099
-
1100
  }
1101
  }
1102
  }
@@ -1130,10 +1146,10 @@
1130
 
1131
 
1132
 
1133
- //flag to prevent unnecessary loading of post on init. Hold for 1 second
1134
  setTimeout(function () {
1135
  alm.proceed = true;
1136
- }, 500);
1137
 
1138
 
1139
 
61
  alm.orginal_posts_per_page = alm.content.attr('data-posts-per-page'); // Used for paging add-on
62
  alm.posts_per_page = alm.content.attr('data-posts-per-page');
63
 
64
+ alm.cta_array = '';
65
+ alm.cta = alm.content.attr('data-cta'); // is Alternating Templates enabled?
66
+ alm.cta_position = alm.content.attr('data-cta-position');
67
+ alm.cta_repeater = alm.content.attr('data-cta-repeater');
68
+ alm.cta_theme_repeater = alm.content.attr('data-cta-theme-repeater');
 
69
 
70
  alm.previous_post = alm.content.attr('data-previous-post'); // Next Post add-on
71
  alm.previous_post_id = alm.content.attr('data-previous-post-id'); // Get the post id
350
  alm.container.append('<div class="' + alm.prefix + 'btn-wrap"/>');
351
  alm.btnWrap = $('.' + alm.prefix + 'btn-wrap', alm.container);
352
  if(alm.paging){
353
+
354
  // Paging add-on
355
  alm.content.parent().addClass('loading'); // add loading class to main container
 
356
 
357
+ }else{
358
 
359
  // If paging is false
360
  $('.'+ 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>');
440
 
441
  }
442
 
443
+ // CTA Add-on Query params
444
+ if(alm.cta === 'true'){
445
+ alm.cta_array = {
446
+ 'cta': 'true',
447
+ 'cta_position': alm.cta_position,
448
+ 'cta_repeater': alm.cta_repeater,
449
+ 'cta_theme_repeater': alm.cta_theme_repeater,
 
450
  };
451
  }
452
 
530
  cache_id : alm.cache_id,
531
  repeater : alm.repeater,
532
  theme_repeater : alm.theme_repeater,
533
+ cta : alm.cta_array,
534
  comments : alm.comments_array,
535
  post_type : alm.post_type,
536
  post_format : alm.content.attr('data-post-format'),
617
  if(alm.previous_post){ // Get previous page data
618
  alm.AjaxLoadMore.getPreviousPost();
619
  }
620
+ var html, meta, total;
621
 
622
  if(!is_cache){
623
  html = data.html;
624
+ meta = data.meta;
625
  }else{
626
  html = data; // If is cache, don't look for json data
627
  }
628
 
629
+ alm.data = $(html); // Convert data to an object
630
+ total = alm.data.length;
631
 
632
+ if(meta){
633
+ if(meta.cta){
634
+ total = total - 1; // If has CTA then minus 1 post from the totalposts.
635
+ }
636
+ }
637
+
638
+ if (alm.init) { // First Run
639
+
640
  if(!alm.paging){
641
 
642
  alm.button.text(alm.button_label);
644
  } else {
645
 
646
  // Is pagination
647
+ if (total > 0) {
648
  alm.el = $('<div class="alm-reveal"/>');
649
  alm.el.append('<div class="alm-paging-content"></div><div class="alm-paging-loading"></div>');
650
  $('.alm-paging-content', alm.el).append(alm.data).hide();
665
  }
666
 
667
  // ALM Empty - triggers if zero results were returned
668
+ if(total === 0){
669
  if ($.isFunction($.fn.almEmpty)) {
670
  $.fn.almEmpty(alm);
671
  }
679
  }
680
 
681
  // We have results!
682
+ if (total > 0) {
683
+
684
  if(!alm.paging){
685
 
686
  if(alm.previous_post){ // If Previous Post, create container and append data
702
  // - loop through items and break them separate alm-reveal divs
703
  if (alm.init && alm.start_page > 1){
704
 
705
+ var data = [],
706
+ posts_per_page = parseInt(alm.posts_per_page);
707
+
708
+ if(meta){
709
+ // If CTA, +1 to posts_per_page to offset the CTA template and correct the display
710
+ if(meta.cta){
711
+ posts_per_page = posts_per_page + 1;
712
+ }
713
+ }
714
+
715
+ var pages = Math.ceil(total/posts_per_page); // slice data array into pages
716
+ for (var i = 0; i < total; i += posts_per_page) {
717
+ data.push(alm.data.slice(i, posts_per_page + i));
718
  }
719
 
720
  alm.el = alm.content; // Set alm.el to be alm-listing div
789
  alm.button.delay(alm.speed).removeClass('loading');
790
  alm.resetBtnText();
791
  }
792
+ if (total < alm.posts_per_page) {
793
  alm.finished = true;
794
  if(!alm.paging){
795
  alm.button.addClass('done');
807
  alm.button.delay(alm.speed).removeClass('loading');
808
  alm.resetBtnText();
809
  }
810
+ if (total < alm.posts_per_page) {
811
  alm.finished = true;
812
  if(!alm.paging){
813
  alm.button.addClass('done');
838
  alm.button.delay(alm.speed).removeClass('loading');
839
  alm.resetBtnText();
840
  }
841
+ if (total < alm.posts_per_page) {
842
  alm.finished = true;
843
  if(!alm.paging){
844
  alm.button.addClass('done');
854
  alm.button.delay(alm.speed).removeClass('loading');
855
  alm.resetBtnText();
856
  }
857
+ if (total < alm.posts_per_page) {
858
  alm.finished = true;
859
  if(!alm.paging){
860
  alm.button.addClass('done');
872
  alm.button.delay(alm.speed).removeClass('loading');
873
  alm.resetBtnText();
874
  }
875
+ if (total < alm.posts_per_page) {
876
  alm.finished = true;
877
  if(!alm.paging){
878
  alm.button.addClass('done');
887
 
888
  } else {
889
  // Is Paging
890
+ if(!alm.init){
 
891
  $('.alm-paging-content', alm.el).html('').append(alm.data).almWaitForImages().done(function(){ // Remove loading class and append data
892
  $('.alm-paging-loading', alm.el).fadeOut(alm.speed); // Fade out loader
893
  if ($.isFunction($.fn.almOnPagingComplete)){
897
  $.fn.almSEO(alm);
898
  }
899
  });
900
+ } else {
901
+ if ($.isFunction($.fn.almSEO) && alm.seo) { // ALM SEO
902
+ $.fn.almSEO(alm);
903
+ }
904
  }
905
  }
906
 
917
 
918
  // ALM Done
919
  // - If data is returned but it's less than the posts per page.
920
+ if(total < alm.posts_per_page){
921
  if ($.isFunction($.fn.almDone)) {
922
  // Delay done until after animation
923
  setTimeout(function(){
1099
  */
1100
  if (alm.scroll && !alm.paging) {
1101
  alm.window.bind("scroll touchstart", function () {
1102
+ if (alm.AjaxLoadMore.isVisible() && !alm.fetchingPreviousPost) {
 
1103
  var content_offset = alm.button.offset(),
1104
+ top = Math.round(content_offset.top - (alm.window.height() - alm.scroll_distance));
1105
 
1106
+ // If Pause && Pause Override
1107
+ if(!alm.loading && !alm.finished && (alm.window.scrollTop() >= top) && alm.page < (alm.max_pages - 1) && alm.proceed && alm.pause === 'true' && alm.pause_override === 'true'){
1108
+ alm.button.trigger('click');
 
 
1109
  }
1110
+
1111
  // Standard Scroll event
1112
  else{
1113
+ if (!alm.loading && !alm.finished && (alm.window.scrollTop() >= top) && alm.page < (alm.max_pages - 1) && alm.proceed && alm.pause !== 'true') {
 
1114
  alm.page++;
1115
+ alm.AjaxLoadMore.loadPosts();
 
1116
  }
1117
  }
1118
  }
1146
 
1147
 
1148
 
1149
+ //flag to prevent unnecessary loading of post on init. Hold for 3/10 of a second
1150
  setTimeout(function () {
1151
  alm.proceed = true;
1152
+ }, 300);
1153
 
1154
 
1155
 
core/js/ajax-load-more.min.js CHANGED
@@ -1,5 +1,5 @@
1
  (function($){"use strict";$.ajaxloadmore=function(el,e){if(alm_localize.scrolltop==='true'){$(window).scrollTop(0);}
2
- var alm=this;alm.AjaxLoadMore={};alm.page=0;alm.proceed=false;alm.disable_ajax=false;alm.init=true;alm.loading=true;alm.finished=false;alm.window=$(window);alm.button_label='';alm.data;alm.el=el;alm.container=el;alm.container.addClass('alm-'+e).attr('data-id',e);alm.content=$('.alm-ajax',alm.container);alm.content_preloaded=$('.alm-listing.alm-preloaded',alm.container);alm.canonical_url=alm.el.attr('data-canonical-url');alm.slug=alm.el.attr('data-slug');alm.prefix='alm-';alm.cache=alm.content.attr('data-cache');alm.cache_id=alm.content.attr('data-cache-id');alm.cache_path=alm.content.attr('data-cache-path');alm.cache_logged_in=alm.content.attr('data-cache-logged-in');alm.repeater=alm.content.attr('data-repeater');alm.theme_repeater=alm.content.attr('data-theme-repeater');alm.scroll_distance=parseInt(alm.content.attr('data-scroll-distance'));alm.max_pages=parseInt(alm.content.attr('data-max-pages'));alm.pause_override=alm.content.attr('data-pause-override');alm.pause=alm.content.attr('data-pause');alm.transition=alm.content.attr('data-transition');alm.transition_container=alm.content.attr('data-transition-container');alm.speed=alm.content.attr('data-transition-speed');alm.images_loaded=alm.content.attr('data-images-loaded');alm.destroy_after=alm.content.attr('data-destroy-after');alm.lang=alm.content.attr('data-lang');alm.orginal_posts_per_page=alm.content.attr('data-posts-per-page');alm.posts_per_page=alm.content.attr('data-posts-per-page');alm.alternate_array='';alm.alternate=alm.content.attr('data-alternate');alm.alternate_sequence=alm.content.attr('data-alternate-sequence');alm.alternate_sequence_max=alm.content.attr('data-alternate-sequence-max');alm.alternate_repeater=alm.content.attr('data-alternate-repeater');alm.alternate_theme_repeater=alm.content.attr('data-alternate-theme-repeater');alm.previous_post=alm.content.attr('data-previous-post');alm.previous_post_id=alm.content.attr('data-previous-post-id');alm.previous_post_taxonomy=alm.content.attr('data-previous-post-taxonomy');alm.comments=alm.content.attr('data-comments');if(alm.comments==='true'){alm.content=$('.alm-comments',alm.container);}
3
  alm.comments_array='';alm.comments_post_id=alm.content.attr('data-comments_post_id');alm.comments_per_page=alm.content.attr('data-comments_per_page');alm.comments_type=alm.content.attr('data-comments_type');alm.comments_style=alm.content.attr('data-comments_style');alm.comments_template=alm.content.attr('data-comments_template');alm.comments_callback=alm.content.attr('data-comments_callback');alm.restapi=alm.content.attr('data-restapi');alm.restapi_base_url=alm.content.attr('data-restapi-base-url');alm.restapi_namespace=alm.content.attr('data-restapi-namespace');alm.restapi_endpoint=alm.content.attr('data-restapi-endpoint');alm.restapi_template_id=alm.content.attr('data-restapi-template-id');alm.restapi_debug=alm.content.attr('data-restapi-debug');alm.seo=alm.content.attr('data-seo');alm.preloaded=alm.content.attr('data-preloaded');alm.preloaded_amount=alm.content.attr('data-preloaded-amount');alm.paging=alm.content.attr('data-paging');alm.paging_controls=alm.content.attr('data-paging-controls');alm.paging_show_at_most=alm.content.attr('data-paging-show-at-most');alm.paging_classes=alm.content.attr('data-paging-classes');if(alm.restapi==='true'){alm.restapi=true;if(alm.restapi_debug===undefined){alm.restapi_debug=false;}
4
  if(alm.restapi_template_id===''){alm.restapi=false;}}else{alm.restapi=false;}
5
  if(alm.paging==='true'){alm.paging=true;if(alm.paging_show_at_most===undefined){alm.paging_show_at_most=7;}
@@ -39,17 +39,19 @@ alm.post_type=alm.content.attr('data-post-type');alm.post_type=alm.post_type.spl
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.alternate==='true'){alm.alternate_array={'alternate':'true','alternate_sequence':alm.alternate_sequence,'alternate_sequence_max':alm.alternate_sequence_max,'alternate_repeater':alm.alternate_repeater,'alternate_theme_repeater':alm.alternate_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};$.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;$.each(results,function(e){var result=results[e];if(alm.restapi_debug==='true'){console.log(result);}
44
  data+=alm_template(result);});alm.AjaxLoadMore.success(data,true);}});}
45
- else{$.ajax({type:"GET",url:alm_localize.ajaxurl,dataType:"JSON",data:{action:action,query_type:queryType,nonce:alm_localize.alm_nonce,cache_id:alm.cache_id,repeater:alm.repeater,theme_repeater:alm.theme_repeater,alternate:alm.alternate_array,comments:alm.comments_array,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'),exclude:alm.content.attr('data-exclude'),search:alm.content.attr('data-search'),custom_args:alm.content.attr('data-custom-args'),posts_per_page:alm.posts_per_page,page:alm.page,offset:alm.offset,preloaded:alm.preloaded,preloaded_amount:alm.preloaded_amount,seo_start_page:alm.start_page,paging:alm.paging,previous_post:alm.previous_post,previous_post_id:alm.previous_post_id,previous_post_taxonomy:alm.previous_post_taxonomy,lang:alm.lang,slug:alm.slug,canonical_url:alm.canonical_url},beforeSend:function(){if(alm.page!=1&&!alm.paging){alm.button.addClass('loading');}},success:function(data){if(queryType==='standard'){alm.AjaxLoadMore.success(data,false);}
46
  else if(queryType==='totalposts'&&alm.paging){if($.isFunction($.fn.almBuildPagination)){$.fn.almBuildPagination(data,alm);}}},error:function(jqXHR,textStatus,errorThrown){alm.AjaxLoadMore.error(jqXHR,textStatus,errorThrown);}});}};if(alm.paging){alm.AjaxLoadMore.ajax('totalposts');}
47
  alm.AjaxLoadMore.success=function(data,is_cache){if(alm.previous_post){alm.AjaxLoadMore.getPreviousPost();}
48
- var html;if(!is_cache){html=data.html;}else{html=data;}
49
- alm.data=$(html);if(alm.init){if(!alm.paging){alm.button.text(alm.button_label);}else{if(alm.data.length>0){alm.el=$('<div class="alm-reveal"/>');alm.el.append('<div class="alm-paging-content"></div><div class="alm-paging-loading"></div>');$('.alm-paging-content',alm.el).append(alm.data).hide();alm.content.append(alm.el);alm.content.parent().removeClass('loading');alm.resetBtnText();$('.alm-paging-content',alm.el).fadeIn(alm.speed,'alm_easeInOutQuad',function(){var paddingT=parseInt(alm.content.css('padding-top')),paddingB=parseInt(alm.content.css('padding-bottom'));alm.content.css('height',alm.el.height()+paddingT+paddingB+'px');if($.isFunction($.fn.almFadePageControls)){$.fn.almFadePageControls(alm.btnWrap);}});}}
50
- if(alm.data.length===0){if($.isFunction($.fn.almEmpty)){$.fn.almEmpty(alm);}}
 
51
  if(alm.isPaged){alm.posts_per_page=alm.content.attr('data-posts-per-page');alm.page=alm.start_page-1;}}
52
- if(alm.data.length>0){if(!alm.paging){if(alm.previous_post){alm.el=$('<div class="alm-reveal alm-previous-post post-'+alm.previous_post_id+'" data-id="'+alm.previous_post_id+'" data-title="'+alm.previous_post_title+'" data-url="'+alm.previous_post_permalink+'"/>');alm.el.append(alm.data).hide();}else{if(!alm.transition_container){alm.data.hide();alm.el=alm.data;}else{if(alm.init&&alm.start_page>1){var data=[];var size=Math.ceil(alm.data.length/alm.start_page);for(var i=0;i<alm.data.length;i+=size){data.push(alm.data.slice(i,size+i));}
 
53
  alm.el=alm.content;for(var k=0;k<data.length;k++){var p=0;if(alm.preloaded==='true'){p=1;}
54
  var div;if(k>0||alm.preloaded==='true'){var pagenum=(k+1+p);if(alm.permalink==='default'){div=$('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+'&paged='+pagenum+'" data-page="'+pagenum+'" />');}else{div=$('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+'page/'+pagenum+'/" data-page="'+pagenum+'" />');}}else{div=$('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+'" data-page="1" />');}
55
  div.append(data[k]);div=$(div);alm.el.append(div).hide();}}
@@ -57,19 +59,19 @@ else{if(alm.seo&&alm.page>0||alm.preloaded==='true'){var p=0;if(alm.preloaded===
57
  var pagenum=(alm.page+1+p);if(alm.seo){if(alm.permalink==='default'){alm.el=$('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+'&paged='+pagenum+'" data-page="'+pagenum+'" />');}else{alm.el=$('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+'page/'+pagenum+'/" data-page="'+pagenum+'" />');}}else{alm.el=$('<div class="alm-reveal" />');}}else{if(alm.seo){alm.el=$('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+'" data-page="1" />');}else{alm.el=$('<div class="alm-reveal" />');}}
58
  alm.el.append(alm.data).hide();}}}
59
  alm.content.append(alm.el);if(alm.transition==='fade'){if(alm.images_loaded==='true'){alm.el.almWaitForImages().done(function(){alm.el.fadeIn(alm.speed,'alm_easeInOutQuad',function(){alm.loading=false;if(!alm.paging){alm.button.delay(alm.speed).removeClass('loading');alm.resetBtnText();}
60
- if(alm.data.length<alm.posts_per_page){alm.finished=true;if(!alm.paging){alm.button.addClass('done');}}
61
  if($.isFunction($.fn.almSEO)&&alm.seo){$.fn.almSEO(alm);}});});}else{alm.el.fadeIn(alm.speed,'alm_easeInOutQuad',function(){alm.loading=false;if(!alm.paging){alm.button.delay(alm.speed).removeClass('loading');alm.resetBtnText();}
62
- if(alm.data.length<alm.posts_per_page){alm.finished=true;if(!alm.paging){alm.button.addClass('done');}}
63
  if($.isFunction($.fn.almSEO)&&alm.seo){$.fn.almSEO(alm);}});}}else if(alm.transition==='none'){if(alm.images_loaded==='true'){alm.el.almWaitForImages().done(function(){alm.el.show();if($.isFunction($.fn.almSEO)&&alm.seo){$.fn.almSEO(alm);}});}else{alm.el.show();if($.isFunction($.fn.almSEO)&&alm.seo){$.fn.almSEO(alm);}}
64
  alm.loading=false;if(!alm.paging){alm.button.delay(alm.speed).removeClass('loading');alm.resetBtnText();}
65
- if(alm.data.length<alm.posts_per_page){alm.finished=true;if(!alm.paging){alm.button.addClass('done');}}}else{if(alm.images_loaded==='true'){alm.el.almWaitForImages().done(function(){alm.el.slideDown(alm.speed,'alm_easeInOutQuad',function(){alm.loading=false;if(!alm.paging){alm.button.delay(alm.speed).removeClass('loading');alm.resetBtnText();}
66
- if(alm.data.length<alm.posts_per_page){alm.finished=true;if(!alm.paging){alm.button.addClass('done');}}
67
  if($.isFunction($.fn.almSEO)&&alm.seo){$.fn.almSEO(alm);}});});}else{alm.el.slideDown(alm.speed,'alm_easeInOutQuad',function(){alm.loading=false;if(!alm.paging){alm.button.delay(alm.speed).removeClass('loading');alm.resetBtnText();}
68
- if(alm.data.length<alm.posts_per_page){alm.finished=true;if(!alm.paging){alm.button.addClass('done');}}
69
  if($.isFunction($.fn.almSEO)&&alm.seo){$.fn.almSEO(alm);}});}}}else{if(!alm.init){$('.alm-paging-content',alm.el).html('').append(alm.data).almWaitForImages().done(function(){$('.alm-paging-loading',alm.el).fadeOut(alm.speed);if($.isFunction($.fn.almOnPagingComplete)){$.fn.almOnPagingComplete(alm);}
70
- if($.isFunction($.fn.almSEO)&&alm.seo){$.fn.almSEO(alm);}});}}
71
  if($.isFunction($.fn.almComplete)){if(alm.images_loaded==='true'){alm.el.almWaitForImages().done(function(){$.fn.almComplete(alm);});}else{$.fn.almComplete(alm);}}
72
- if(alm.data.length<alm.posts_per_page){if($.isFunction($.fn.almDone)){setTimeout(function(){$.fn.almDone(alm)},alm.speed+10);}}}else{if(!alm.paging){alm.button.delay(alm.speed).removeClass('loading').addClass('done');alm.resetBtnText();}
73
  if($.isFunction($.fn.almDone)&&!alm.init){$.fn.almDone(alm);}
74
  alm.loading=false;alm.finished=true;}
75
  if(alm.destroy_after!==undefined&&alm.destroy_after!==''){var currentPage=alm.page+1;if(alm.preload){currentPage++;}
@@ -85,7 +87,7 @@ return alm.visible;};if(alm.scroll&&!alm.paging){alm.window.bind("scroll touchst
85
  else{if(!alm.loading&&!alm.finished&&(alm.window.scrollTop()>=top)&&alm.page<(alm.max_pages-1)&&alm.proceed&&alm.pause!=='true'){alm.page++;alm.AjaxLoadMore.loadPosts();}}}});}
86
  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
- setTimeout(function(){alm.proceed=true;},500);$.fn.almUpdateCurrentPage=function(current,obj,alm){alm.page=current;var alm_paging_init=false;if(alm_paging_init&&alm.preloaded==='true'){var data=$('.alm-preloaded',alm.el).html();$('.alm-preloaded',alm.el).remove();alm.preloaded_amount=0;alm.AjaxLoadMore.success(data,false);}else{alm.AjaxLoadMore.loadPosts();}};$.fn.almGetParentContainer=function(){return alm.el.closest('#ajax-load-more');};$.fn.almGetObj=function(){return alm;};$.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){$(".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();}
90
  $(".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];}}
1
  (function($){"use strict";$.ajaxloadmore=function(el,e){if(alm_localize.scrolltop==='true'){$(window).scrollTop(0);}
2
+ var alm=this;alm.AjaxLoadMore={};alm.page=0;alm.proceed=false;alm.disable_ajax=false;alm.init=true;alm.loading=true;alm.finished=false;alm.window=$(window);alm.button_label='';alm.data;alm.el=el;alm.container=el;alm.container.addClass('alm-'+e).attr('data-id',e);alm.content=$('.alm-ajax',alm.container);alm.content_preloaded=$('.alm-listing.alm-preloaded',alm.container);alm.canonical_url=alm.el.attr('data-canonical-url');alm.slug=alm.el.attr('data-slug');alm.prefix='alm-';alm.cache=alm.content.attr('data-cache');alm.cache_id=alm.content.attr('data-cache-id');alm.cache_path=alm.content.attr('data-cache-path');alm.cache_logged_in=alm.content.attr('data-cache-logged-in');alm.repeater=alm.content.attr('data-repeater');alm.theme_repeater=alm.content.attr('data-theme-repeater');alm.scroll_distance=parseInt(alm.content.attr('data-scroll-distance'));alm.max_pages=parseInt(alm.content.attr('data-max-pages'));alm.pause_override=alm.content.attr('data-pause-override');alm.pause=alm.content.attr('data-pause');alm.transition=alm.content.attr('data-transition');alm.transition_container=alm.content.attr('data-transition-container');alm.speed=alm.content.attr('data-transition-speed');alm.images_loaded=alm.content.attr('data-images-loaded');alm.destroy_after=alm.content.attr('data-destroy-after');alm.lang=alm.content.attr('data-lang');alm.orginal_posts_per_page=alm.content.attr('data-posts-per-page');alm.posts_per_page=alm.content.attr('data-posts-per-page');alm.cta_array='';alm.cta=alm.content.attr('data-cta');alm.cta_position=alm.content.attr('data-cta-position');alm.cta_repeater=alm.content.attr('data-cta-repeater');alm.cta_theme_repeater=alm.content.attr('data-cta-theme-repeater');alm.previous_post=alm.content.attr('data-previous-post');alm.previous_post_id=alm.content.attr('data-previous-post-id');alm.previous_post_taxonomy=alm.content.attr('data-previous-post-taxonomy');alm.comments=alm.content.attr('data-comments');if(alm.comments==='true'){alm.content=$('.alm-comments',alm.container);}
3
  alm.comments_array='';alm.comments_post_id=alm.content.attr('data-comments_post_id');alm.comments_per_page=alm.content.attr('data-comments_per_page');alm.comments_type=alm.content.attr('data-comments_type');alm.comments_style=alm.content.attr('data-comments_style');alm.comments_template=alm.content.attr('data-comments_template');alm.comments_callback=alm.content.attr('data-comments_callback');alm.restapi=alm.content.attr('data-restapi');alm.restapi_base_url=alm.content.attr('data-restapi-base-url');alm.restapi_namespace=alm.content.attr('data-restapi-namespace');alm.restapi_endpoint=alm.content.attr('data-restapi-endpoint');alm.restapi_template_id=alm.content.attr('data-restapi-template-id');alm.restapi_debug=alm.content.attr('data-restapi-debug');alm.seo=alm.content.attr('data-seo');alm.preloaded=alm.content.attr('data-preloaded');alm.preloaded_amount=alm.content.attr('data-preloaded-amount');alm.paging=alm.content.attr('data-paging');alm.paging_controls=alm.content.attr('data-paging-controls');alm.paging_show_at_most=alm.content.attr('data-paging-show-at-most');alm.paging_classes=alm.content.attr('data-paging-classes');if(alm.restapi==='true'){alm.restapi=true;if(alm.restapi_debug===undefined){alm.restapi_debug=false;}
4
  if(alm.restapi_template_id===''){alm.restapi=false;}}else{alm.restapi=false;}
5
  if(alm.paging==='true'){alm.paging=true;if(alm.paging_show_at_most===undefined){alm.paging_show_at_most=7;}
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};$.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;$.each(results,function(e){var result=results[e];if(alm.restapi_debug==='true'){console.log(result);}
44
  data+=alm_template(result);});alm.AjaxLoadMore.success(data,true);}});}
45
+ else{$.ajax({type:"GET",url:alm_localize.ajaxurl,dataType:"JSON",data:{action:action,query_type:queryType,nonce:alm_localize.alm_nonce,cache_id:alm.cache_id,repeater:alm.repeater,theme_repeater:alm.theme_repeater,cta:alm.cta_array,comments:alm.comments_array,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'),exclude:alm.content.attr('data-exclude'),search:alm.content.attr('data-search'),custom_args:alm.content.attr('data-custom-args'),posts_per_page:alm.posts_per_page,page:alm.page,offset:alm.offset,preloaded:alm.preloaded,preloaded_amount:alm.preloaded_amount,seo_start_page:alm.start_page,paging:alm.paging,previous_post:alm.previous_post,previous_post_id:alm.previous_post_id,previous_post_taxonomy:alm.previous_post_taxonomy,lang:alm.lang,slug:alm.slug,canonical_url:alm.canonical_url},beforeSend:function(){if(alm.page!=1&&!alm.paging){alm.button.addClass('loading');}},success:function(data){if(queryType==='standard'){alm.AjaxLoadMore.success(data,false);}
46
  else if(queryType==='totalposts'&&alm.paging){if($.isFunction($.fn.almBuildPagination)){$.fn.almBuildPagination(data,alm);}}},error:function(jqXHR,textStatus,errorThrown){alm.AjaxLoadMore.error(jqXHR,textStatus,errorThrown);}});}};if(alm.paging){alm.AjaxLoadMore.ajax('totalposts');}
47
  alm.AjaxLoadMore.success=function(data,is_cache){if(alm.previous_post){alm.AjaxLoadMore.getPreviousPost();}
48
+ var html,meta,total;if(!is_cache){html=data.html;meta=data.meta;}else{html=data;}
49
+ alm.data=$(html);total=alm.data.length;if(meta){if(meta.cta){total=total-1;}}
50
+ if(alm.init){if(!alm.paging){alm.button.text(alm.button_label);}else{if(total>0){alm.el=$('<div class="alm-reveal"/>');alm.el.append('<div class="alm-paging-content"></div><div class="alm-paging-loading"></div>');$('.alm-paging-content',alm.el).append(alm.data).hide();alm.content.append(alm.el);alm.content.parent().removeClass('loading');alm.resetBtnText();$('.alm-paging-content',alm.el).fadeIn(alm.speed,'alm_easeInOutQuad',function(){var paddingT=parseInt(alm.content.css('padding-top')),paddingB=parseInt(alm.content.css('padding-bottom'));alm.content.css('height',alm.el.height()+paddingT+paddingB+'px');if($.isFunction($.fn.almFadePageControls)){$.fn.almFadePageControls(alm.btnWrap);}});}}
51
+ if(total===0){if($.isFunction($.fn.almEmpty)){$.fn.almEmpty(alm);}}
52
  if(alm.isPaged){alm.posts_per_page=alm.content.attr('data-posts-per-page');alm.page=alm.start_page-1;}}
53
+ if(total>0){if(!alm.paging){if(alm.previous_post){alm.el=$('<div class="alm-reveal alm-previous-post post-'+alm.previous_post_id+'" data-id="'+alm.previous_post_id+'" data-title="'+alm.previous_post_title+'" data-url="'+alm.previous_post_permalink+'"/>');alm.el.append(alm.data).hide();}else{if(!alm.transition_container){alm.data.hide();alm.el=alm.data;}else{if(alm.init&&alm.start_page>1){var data=[],posts_per_page=parseInt(alm.posts_per_page);if(meta){if(meta.cta){posts_per_page=posts_per_page+1;}}
54
+ var pages=Math.ceil(total/posts_per_page);for(var i=0;i<total;i+=posts_per_page){data.push(alm.data.slice(i,posts_per_page+i));}
55
  alm.el=alm.content;for(var k=0;k<data.length;k++){var p=0;if(alm.preloaded==='true'){p=1;}
56
  var div;if(k>0||alm.preloaded==='true'){var pagenum=(k+1+p);if(alm.permalink==='default'){div=$('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+'&paged='+pagenum+'" data-page="'+pagenum+'" />');}else{div=$('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+'page/'+pagenum+'/" data-page="'+pagenum+'" />');}}else{div=$('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+'" data-page="1" />');}
57
  div.append(data[k]);div=$(div);alm.el.append(div).hide();}}
59
  var pagenum=(alm.page+1+p);if(alm.seo){if(alm.permalink==='default'){alm.el=$('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+'&paged='+pagenum+'" data-page="'+pagenum+'" />');}else{alm.el=$('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+'page/'+pagenum+'/" data-page="'+pagenum+'" />');}}else{alm.el=$('<div class="alm-reveal" />');}}else{if(alm.seo){alm.el=$('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+'" data-page="1" />');}else{alm.el=$('<div class="alm-reveal" />');}}
60
  alm.el.append(alm.data).hide();}}}
61
  alm.content.append(alm.el);if(alm.transition==='fade'){if(alm.images_loaded==='true'){alm.el.almWaitForImages().done(function(){alm.el.fadeIn(alm.speed,'alm_easeInOutQuad',function(){alm.loading=false;if(!alm.paging){alm.button.delay(alm.speed).removeClass('loading');alm.resetBtnText();}
62
+ if(total<alm.posts_per_page){alm.finished=true;if(!alm.paging){alm.button.addClass('done');}}
63
  if($.isFunction($.fn.almSEO)&&alm.seo){$.fn.almSEO(alm);}});});}else{alm.el.fadeIn(alm.speed,'alm_easeInOutQuad',function(){alm.loading=false;if(!alm.paging){alm.button.delay(alm.speed).removeClass('loading');alm.resetBtnText();}
64
+ if(total<alm.posts_per_page){alm.finished=true;if(!alm.paging){alm.button.addClass('done');}}
65
  if($.isFunction($.fn.almSEO)&&alm.seo){$.fn.almSEO(alm);}});}}else if(alm.transition==='none'){if(alm.images_loaded==='true'){alm.el.almWaitForImages().done(function(){alm.el.show();if($.isFunction($.fn.almSEO)&&alm.seo){$.fn.almSEO(alm);}});}else{alm.el.show();if($.isFunction($.fn.almSEO)&&alm.seo){$.fn.almSEO(alm);}}
66
  alm.loading=false;if(!alm.paging){alm.button.delay(alm.speed).removeClass('loading');alm.resetBtnText();}
67
+ if(total<alm.posts_per_page){alm.finished=true;if(!alm.paging){alm.button.addClass('done');}}}else{if(alm.images_loaded==='true'){alm.el.almWaitForImages().done(function(){alm.el.slideDown(alm.speed,'alm_easeInOutQuad',function(){alm.loading=false;if(!alm.paging){alm.button.delay(alm.speed).removeClass('loading');alm.resetBtnText();}
68
+ if(total<alm.posts_per_page){alm.finished=true;if(!alm.paging){alm.button.addClass('done');}}
69
  if($.isFunction($.fn.almSEO)&&alm.seo){$.fn.almSEO(alm);}});});}else{alm.el.slideDown(alm.speed,'alm_easeInOutQuad',function(){alm.loading=false;if(!alm.paging){alm.button.delay(alm.speed).removeClass('loading');alm.resetBtnText();}
70
+ if(total<alm.posts_per_page){alm.finished=true;if(!alm.paging){alm.button.addClass('done');}}
71
  if($.isFunction($.fn.almSEO)&&alm.seo){$.fn.almSEO(alm);}});}}}else{if(!alm.init){$('.alm-paging-content',alm.el).html('').append(alm.data).almWaitForImages().done(function(){$('.alm-paging-loading',alm.el).fadeOut(alm.speed);if($.isFunction($.fn.almOnPagingComplete)){$.fn.almOnPagingComplete(alm);}
72
+ if($.isFunction($.fn.almSEO)&&alm.seo){$.fn.almSEO(alm);}});}else{if($.isFunction($.fn.almSEO)&&alm.seo){$.fn.almSEO(alm);}}}
73
  if($.isFunction($.fn.almComplete)){if(alm.images_loaded==='true'){alm.el.almWaitForImages().done(function(){$.fn.almComplete(alm);});}else{$.fn.almComplete(alm);}}
74
+ if(total<alm.posts_per_page){if($.isFunction($.fn.almDone)){setTimeout(function(){$.fn.almDone(alm)},alm.speed+10);}}}else{if(!alm.paging){alm.button.delay(alm.speed).removeClass('loading').addClass('done');alm.resetBtnText();}
75
  if($.isFunction($.fn.almDone)&&!alm.init){$.fn.almDone(alm);}
76
  alm.loading=false;alm.finished=true;}
77
  if(alm.destroy_after!==undefined&&alm.destroy_after!==''){var currentPage=alm.page+1;if(alm.preload){currentPage++;}
87
  else{if(!alm.loading&&!alm.finished&&(alm.window.scrollTop()>=top)&&alm.page<(alm.max_pages-1)&&alm.proceed&&alm.pause!=='true'){alm.page++;alm.AjaxLoadMore.loadPosts();}}}});}
88
  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();}}}
89
  if(alm.previous_post){alm.AjaxLoadMore.getPreviousPost();alm.loading=false;}
90
+ setTimeout(function(){alm.proceed=true;},300);$.fn.almUpdateCurrentPage=function(current,obj,alm){alm.page=current;var alm_paging_init=false;if(alm_paging_init&&alm.preloaded==='true'){var data=$('.alm-preloaded',alm.el).html();$('.alm-preloaded',alm.el).remove();alm.preloaded_amount=0;alm.AjaxLoadMore.success(data,false);}else{alm.AjaxLoadMore.loadPosts();}};$.fn.almGetParentContainer=function(){return alm.el.closest('#ajax-load-more');};$.fn.almGetObj=function(){return alm;};$.easing.alm_easeInOutQuad=function(x,t,b,c,d){if((t/=d/2)<1){return c/2*t*t+b;}
91
  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();}
92
  $(".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;}
93
  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];}}
lang/ajax-load-more.pot CHANGED
@@ -1,15 +1,15 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Ajax Load More\n"
4
- "POT-Creation-Date: 2016-05-30 15:03-0500\n"
5
- "PO-Revision-Date: 2016-05-30 15:03-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"
@@ -21,22 +21,22 @@ msgid "You don't belong here."
21
  msgstr ""
22
 
23
  #: ../admin/admin.php:153 ../admin/editor/editor-build.php:67
24
- #: ../admin/views/licenses.php:52 ../admin/views/licenses.php:107
25
- #: ../admin/views/licenses.php:161 ../admin/views/licenses.php:216
26
- #: ../admin/views/licenses.php:272 ../admin/views/licenses.php:328
27
- #: ../admin/views/licenses.php:382 ../admin/views/licenses.php:435
28
- #: ../admin/views/licenses.php:490 ../admin/views/licenses.php:545
29
- #: ../admin/views/licenses.php:602
30
  msgid "Active"
31
  msgstr ""
32
 
33
  #: ../admin/admin.php:154 ../admin/editor/editor-build.php:68
34
- #: ../admin/views/licenses.php:56 ../admin/views/licenses.php:111
35
- #: ../admin/views/licenses.php:165 ../admin/views/licenses.php:220
36
- #: ../admin/views/licenses.php:276 ../admin/views/licenses.php:332
37
- #: ../admin/views/licenses.php:386 ../admin/views/licenses.php:439
38
- #: ../admin/views/licenses.php:494 ../admin/views/licenses.php:549
39
- #: ../admin/views/licenses.php:606
40
  msgid "Inactive"
41
  msgstr ""
42
 
@@ -75,12 +75,12 @@ msgid "Error Writing File"
75
  msgstr ""
76
 
77
  #: ../admin/admin.php:861
78
- #: ../admin/shortcode-builder/shortcode-builder.php:1371
79
  msgid "Container Type"
80
  msgstr ""
81
 
82
  #: ../admin/admin.php:869
83
- #: ../admin/shortcode-builder/shortcode-builder.php:1395
84
  msgid "Container Classes"
85
  msgstr ""
86
 
@@ -171,28 +171,28 @@ msgid ""
171
  "strong> or <strong>infinite scroll</strong>"
172
  msgstr ""
173
 
174
- #: ../admin/admin.php:1238
175
  msgid "Preview"
176
  msgstr ""
177
 
178
- #: ../admin/admin.php:1238
179
- #: ../admin/shortcode-builder/shortcode-builder.php:1345
180
- #: ../core/classes/class.alm-shortcode.php:127
181
  msgid "Older Posts"
182
  msgstr ""
183
 
184
- #: ../admin/admin.php:1257
185
  msgid "Add classes to your <strong>Load More</strong> button"
186
  msgstr ""
187
 
188
- #: ../admin/admin.php:1300
189
  msgid ""
190
  "On initial page load, move the user's browser window to the top of the "
191
  "screen.<span style=\"display:block\">This <u>may</u> help prevent the "
192
  "loading of unnecessary posts.</span>"
193
  msgstr ""
194
 
195
- #: ../admin/admin.php:1321
196
  msgid ""
197
  "Enable <a href=\"https://codex.wordpress.org/WordPress_Nonces\" target="
198
  "\"_blank\">WP nonce</a> verification to help protect URLs against certain "
@@ -457,7 +457,7 @@ msgstr ""
457
  #: ../admin/shortcode-builder/includes/tax-query-options.php:5
458
  #: ../admin/shortcode-builder/includes/tax-query-options.php:50
459
  #: ../admin/shortcode-builder/includes/tax-query-options.php:81
460
- #: ../admin/shortcode-builder/shortcode-builder.php:384
461
  msgid "Select Taxonomy"
462
  msgstr ""
463
 
@@ -474,7 +474,7 @@ msgid "Taxonomy Operator:"
474
  msgstr ""
475
 
476
  #: ../admin/shortcode-builder/includes/tax-query-options.php:36
477
- #: ../admin/shortcode-builder/shortcode-builder.php:945
478
  msgid "Relation:"
479
  msgstr ""
480
 
@@ -494,178 +494,241 @@ msgid "Expand All"
494
  msgstr ""
495
 
496
  #: ../admin/shortcode-builder/shortcode-builder.php:15
497
- #: ../admin/views/add-ons.php:18 ../admin/views/licenses.php:96
498
- #: ../admin/views/settings.php:51
499
  msgid "Cache"
500
  msgstr ""
501
 
502
  #: ../admin/shortcode-builder/shortcode-builder.php:18
503
- msgid "Enable Caching"
504
- msgstr ""
505
-
506
- #: ../admin/shortcode-builder/shortcode-builder.php:19
507
  msgid "Turn on content caching."
508
  msgstr ""
509
 
510
- #: ../admin/shortcode-builder/shortcode-builder.php:26
511
- #: ../admin/shortcode-builder/shortcode-builder.php:70
512
- #: ../admin/shortcode-builder/shortcode-builder.php:225
513
- #: ../admin/shortcode-builder/shortcode-builder.php:248
514
- #: ../admin/shortcode-builder/shortcode-builder.php:302
515
- #: ../admin/shortcode-builder/shortcode-builder.php:343
516
- #: ../admin/shortcode-builder/shortcode-builder.php:437
517
- #: ../admin/shortcode-builder/shortcode-builder.php:517
518
- #: ../admin/shortcode-builder/shortcode-builder.php:551
519
- #: ../admin/shortcode-builder/shortcode-builder.php:622
520
- #: ../admin/shortcode-builder/shortcode-builder.php:1148
521
- #: ../admin/shortcode-builder/shortcode-builder.php:1173
522
- #: ../admin/shortcode-builder/shortcode-builder.php:1220
523
- #: ../admin/shortcode-builder/shortcode-builder.php:1306
524
  msgid "True"
525
  msgstr ""
526
 
527
- #: ../admin/shortcode-builder/shortcode-builder.php:30
528
- #: ../admin/shortcode-builder/shortcode-builder.php:74
529
- #: ../admin/shortcode-builder/shortcode-builder.php:229
530
- #: ../admin/shortcode-builder/shortcode-builder.php:252
531
- #: ../admin/shortcode-builder/shortcode-builder.php:306
532
- #: ../admin/shortcode-builder/shortcode-builder.php:347
533
- #: ../admin/shortcode-builder/shortcode-builder.php:441
534
- #: ../admin/shortcode-builder/shortcode-builder.php:521
535
- #: ../admin/shortcode-builder/shortcode-builder.php:555
536
- #: ../admin/shortcode-builder/shortcode-builder.php:626
537
- #: ../admin/shortcode-builder/shortcode-builder.php:1152
538
- #: ../admin/shortcode-builder/shortcode-builder.php:1177
539
- #: ../admin/shortcode-builder/shortcode-builder.php:1224
540
- #: ../admin/shortcode-builder/shortcode-builder.php:1310
541
  msgid "False"
542
  msgstr ""
543
 
544
- #: ../admin/shortcode-builder/shortcode-builder.php:40
545
  msgid "Cache ID"
546
  msgstr ""
547
 
548
- #: ../admin/shortcode-builder/shortcode-builder.php:41
549
  msgid ""
550
  "You <u>must</u> generate a unique ID for this cached query - this unique ID "
551
  "will be used as a content identifier."
552
  msgstr ""
553
 
554
- #: ../admin/shortcode-builder/shortcode-builder.php:47
555
  msgid "Generate New ID"
556
  msgstr ""
557
 
558
- #: ../admin/shortcode-builder/shortcode-builder.php:59
 
 
 
 
559
  #: ../admin/shortcode-builder/shortcode-builder.php:62
560
- #: ../admin/views/add-ons.php:45 ../admin/views/licenses.php:150
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
561
  msgid "Comments"
562
  msgstr ""
563
 
564
- #: ../admin/shortcode-builder/shortcode-builder.php:63
565
  msgid "Enable Ajax Load More to display blog comments."
566
  msgstr ""
567
 
568
- #: ../admin/shortcode-builder/shortcode-builder.php:86
569
- #: ../admin/shortcode-builder/shortcode-builder.php:357
570
  msgid "Post ID"
571
  msgstr ""
572
 
573
- #: ../admin/shortcode-builder/shortcode-builder.php:87
574
- #: ../admin/shortcode-builder/shortcode-builder.php:358
575
  msgid "The ID of the current single post."
576
  msgstr ""
577
 
578
- #: ../admin/shortcode-builder/shortcode-builder.php:99
579
  msgid "Comments Per Page"
580
  msgstr ""
581
 
582
- #: ../admin/shortcode-builder/shortcode-builder.php:100
583
  msgid "The number of top level items to show for each page of comments."
584
  msgstr ""
585
 
586
- #: ../admin/shortcode-builder/shortcode-builder.php:108
587
  msgid ""
588
  "<strong>Note</strong>: The amount selected does NOT include comment replies."
589
  msgstr ""
590
 
591
- #: ../admin/shortcode-builder/shortcode-builder.php:114
592
  msgid "Comment Type"
593
  msgstr ""
594
 
595
- #: ../admin/shortcode-builder/shortcode-builder.php:115
596
  msgid "The type of comment(s) to display."
597
  msgstr ""
598
 
599
- #: ../admin/shortcode-builder/shortcode-builder.php:120
600
  msgid "Comment"
601
  msgstr ""
602
 
603
- #: ../admin/shortcode-builder/shortcode-builder.php:121
604
  msgid "All"
605
  msgstr ""
606
 
607
- #: ../admin/shortcode-builder/shortcode-builder.php:122
608
  msgid "Trackback"
609
  msgstr ""
610
 
611
- #: ../admin/shortcode-builder/shortcode-builder.php:123
612
  msgid "Pingback"
613
  msgstr ""
614
 
615
- #: ../admin/shortcode-builder/shortcode-builder.php:124
616
  msgid "Pings"
617
  msgstr ""
618
 
619
- #: ../admin/shortcode-builder/shortcode-builder.php:133
620
  msgid "Comment Style"
621
  msgstr ""
622
 
623
- #: ../admin/shortcode-builder/shortcode-builder.php:134
624
  msgid "Select the HTML container style for your comments."
625
  msgstr ""
626
 
627
- #: ../admin/shortcode-builder/shortcode-builder.php:160
628
  msgid "Comment Template"
629
  msgstr ""
630
 
631
- #: ../admin/shortcode-builder/shortcode-builder.php:161
632
  msgid "Select a repeater template that will display comment data."
633
  msgstr ""
634
 
635
- #: ../admin/shortcode-builder/shortcode-builder.php:167
636
- #: ../admin/shortcode-builder/shortcode-builder.php:1253
637
  msgid "None"
638
  msgstr ""
639
 
640
- #: ../admin/shortcode-builder/shortcode-builder.php:168
641
  msgid "Default"
642
  msgstr ""
643
 
644
- #: ../admin/shortcode-builder/shortcode-builder.php:180
645
  msgid ""
646
  "<strong>Note</strong>: <span>None</span> will use the default WordPress "
647
  "comment layout."
648
  msgstr ""
649
 
650
- #: ../admin/shortcode-builder/shortcode-builder.php:189
651
  msgid "Callback Function"
652
  msgstr ""
653
 
654
- #: ../admin/shortcode-builder/shortcode-builder.php:190
655
  msgid ""
656
  "A custom <a href=\"https://codex.wordpress.org/Function_Reference/"
657
  "wp_list_comments#Arguments\" target=\"_blank\">callback</a> function that "
658
  "will display each comment."
659
  msgstr ""
660
 
661
- #: ../admin/shortcode-builder/shortcode-builder.php:198
662
  msgid ""
663
  "<strong>Note</strong>: The majority of premium themes have a custom callback "
664
  "function for displaying comments. Please see comments.php or functions.php "
665
  "within your theme directory to locate the callback function for your theme."
666
  msgstr ""
667
 
668
- #: ../admin/shortcode-builder/shortcode-builder.php:203
669
  msgid ""
670
  "You must add the comments shortcode directly to your single template file "
671
  "using the <a href=\"https://developer.wordpress.org/reference/functions/"
@@ -674,94 +737,94 @@ msgid ""
674
  "\"_blank\">View documentation</a>"
675
  msgstr ""
676
 
677
- #: ../admin/shortcode-builder/shortcode-builder.php:215
678
- #: ../admin/views/add-ons.php:124 ../admin/views/licenses.php:317
679
- #: ../admin/views/settings.php:55
680
  msgid "Paging"
681
  msgstr ""
682
 
683
- #: ../admin/shortcode-builder/shortcode-builder.php:218
684
  msgid "Replace infinite scrolling with a paged ajax navigation system."
685
  msgstr ""
686
 
687
- #: ../admin/shortcode-builder/shortcode-builder.php:240
688
  msgid "Paging Controls"
689
  msgstr ""
690
 
691
- #: ../admin/shortcode-builder/shortcode-builder.php:241
692
  msgid "Show (&laquo;)previous and next(&raquo;) buttons."
693
  msgstr ""
694
 
695
- #: ../admin/shortcode-builder/shortcode-builder.php:261
696
  msgid "Paging Navigation Classes"
697
  msgstr ""
698
 
699
- #: ../admin/shortcode-builder/shortcode-builder.php:262
700
  msgid "Add custom CSS classes to the paging navigation menu."
701
  msgstr ""
702
 
703
- #: ../admin/shortcode-builder/shortcode-builder.php:273
704
  msgid "Show at Most"
705
  msgstr ""
706
 
707
- #: ../admin/shortcode-builder/shortcode-builder.php:274
708
  msgid ""
709
  "The maximum amount of page menu items to show at a time. <br/.>0 = no maximum"
710
  msgstr ""
711
 
712
- #: ../admin/shortcode-builder/shortcode-builder.php:292
713
- #: ../admin/views/add-ons.php:151 ../admin/views/licenses.php:371
714
  msgid "Preloaded"
715
  msgstr ""
716
 
717
- #: ../admin/shortcode-builder/shortcode-builder.php:295
718
  msgid "Preload posts prior to making Ajax requests."
719
  msgstr ""
720
 
721
- #: ../admin/shortcode-builder/shortcode-builder.php:316
722
  msgid "Preload Amount"
723
  msgstr ""
724
 
725
- #: ../admin/shortcode-builder/shortcode-builder.php:317
726
  msgid "Enter the number of posts to preload."
727
  msgstr ""
728
 
729
- #: ../admin/shortcode-builder/shortcode-builder.php:333
730
- #: ../admin/views/add-ons.php:177 ../admin/views/licenses.php:424
731
- #: ../admin/views/settings.php:57
732
  msgid "Previous Post"
733
  msgstr ""
734
 
735
- #: ../admin/shortcode-builder/shortcode-builder.php:336
736
  msgid "Enable the infinite scrolling of single posts."
737
  msgstr ""
738
 
739
- #: ../admin/shortcode-builder/shortcode-builder.php:370
740
- #: ../admin/shortcode-builder/shortcode-builder.php:885
741
  msgid "Taxonomy"
742
  msgstr ""
743
 
744
- #: ../admin/shortcode-builder/shortcode-builder.php:370
745
  msgid ""
746
  "Selecting a taxonomy means only previous posts from the same taxonomy will "
747
  "be returned"
748
  msgstr ""
749
 
750
- #: ../admin/shortcode-builder/shortcode-builder.php:371
751
  msgid "Query previous posts from the same taxonomy."
752
  msgstr ""
753
 
754
- #: ../admin/shortcode-builder/shortcode-builder.php:385
755
- #: ../admin/shortcode-builder/shortcode-builder.php:767
756
  msgid "Category"
757
  msgstr ""
758
 
759
- #: ../admin/shortcode-builder/shortcode-builder.php:386
760
- #: ../admin/shortcode-builder/shortcode-builder.php:827
761
  msgid "Tag"
762
  msgstr ""
763
 
764
- #: ../admin/shortcode-builder/shortcode-builder.php:400
765
  msgid ""
766
  "You must add the Previous Post shortcode directly to your single template "
767
  "file using the <a href=\"https://developer.wordpress.org/reference/functions/"
@@ -770,78 +833,78 @@ msgid ""
770
  "target=\"_blank\">View documentation</a>"
771
  msgstr ""
772
 
773
- #: ../admin/shortcode-builder/shortcode-builder.php:427
774
- #: ../admin/views/add-ons.php:203 ../admin/views/licenses.php:479
775
- #: ../admin/views/settings.php:59
776
  msgid "REST API"
777
  msgstr ""
778
 
779
- #: ../admin/shortcode-builder/shortcode-builder.php:430
780
  msgid "Enable the WordPress REST API."
781
  msgstr ""
782
 
783
- #: ../admin/shortcode-builder/shortcode-builder.php:454
784
  msgid "Base URL"
785
  msgstr ""
786
 
787
- #: ../admin/shortcode-builder/shortcode-builder.php:455
788
  msgid "Set a default Base URL in the Ajax Load More settings panel"
789
  msgstr ""
790
 
791
- #: ../admin/shortcode-builder/shortcode-builder.php:456
792
  msgid "Enter the base URL to your installation of the REST API."
793
  msgstr ""
794
 
795
- #: ../admin/shortcode-builder/shortcode-builder.php:468
796
  msgid "Namespace"
797
  msgstr ""
798
 
799
- #: ../admin/shortcode-builder/shortcode-builder.php:469
800
  msgid "Set a default Namespace in the Ajax Load More settings panel"
801
  msgstr ""
802
 
803
- #: ../admin/shortcode-builder/shortcode-builder.php:470
804
  msgid "Enter the custom namespace for this Ajax Load More query."
805
  msgstr ""
806
 
807
- #: ../admin/shortcode-builder/shortcode-builder.php:482
808
  msgid "Endpoint"
809
  msgstr ""
810
 
811
- #: ../admin/shortcode-builder/shortcode-builder.php:483
812
  msgid "Set a default Endpoint in the Ajax Load More settings panel"
813
  msgstr ""
814
 
815
- #: ../admin/shortcode-builder/shortcode-builder.php:484
816
  msgid "Enter your custom endpoint for this Ajax Load More query."
817
  msgstr ""
818
 
819
- #: ../admin/shortcode-builder/shortcode-builder.php:496
820
  msgid "Template ID"
821
  msgstr ""
822
 
823
- #: ../admin/shortcode-builder/shortcode-builder.php:496
824
  msgid ""
825
  "Ajax Load More references this ID while looping and displaying your data. "
826
  "You must still select a repeater template for this instance of Ajax Load More"
827
  msgstr ""
828
 
829
- #: ../admin/shortcode-builder/shortcode-builder.php:497
830
  msgid ""
831
  "Enter the ID of your javascript template.<br/><br/>e.g. <em>tmpl-alm-"
832
  "template</em> = <em>alm-template</em>"
833
  msgstr ""
834
 
835
- #: ../admin/shortcode-builder/shortcode-builder.php:509
836
  msgid "Debug Mode"
837
  msgstr ""
838
 
839
- #: ../admin/shortcode-builder/shortcode-builder.php:510
840
  msgid ""
841
  "Enable debugging (console.log) of REST API responses in the browser console. "
842
  msgstr ""
843
 
844
- #: ../admin/shortcode-builder/shortcode-builder.php:528
845
  msgid ""
846
  "Visit <a href=\"http://v2.wp-api.org/\" target=\"_blank\">http://v2.wp-api."
847
  "org</a> for documentation on creating custom <a href=\"http://v2.wp-api.org/"
@@ -849,474 +912,415 @@ msgid ""
849
  "More."
850
  msgstr ""
851
 
852
- #: ../admin/shortcode-builder/shortcode-builder.php:541
853
  msgid "SEO (Search Engine Optimization)"
854
  msgstr ""
855
 
856
- #: ../admin/shortcode-builder/shortcode-builder.php:544
857
  msgid ""
858
  "Enable address bar URL rewrites as users page through ajax loaded content."
859
  msgstr ""
860
 
861
- #: ../admin/shortcode-builder/shortcode-builder.php:568
862
- msgid "Template"
863
- msgstr ""
864
-
865
- #: ../admin/shortcode-builder/shortcode-builder.php:572
866
- #: ../admin/shortcode-builder/shortcode-builder.php:673
867
  msgid "Repeater Template"
868
  msgstr ""
869
 
870
- #: ../admin/shortcode-builder/shortcode-builder.php:574
871
  msgid ""
872
  "Select which <a href=\"admin.php?page=ajax-load-more-repeaters\" target="
873
  "\"_parent\">repeater template</a> you would like to use."
874
  msgstr ""
875
 
876
- #: ../admin/shortcode-builder/shortcode-builder.php:611
877
- #: ../admin/views/licenses.php:41
878
- msgid "Alternating Templates"
879
- msgstr ""
880
-
881
- #: ../admin/shortcode-builder/shortcode-builder.php:615
882
- msgid ""
883
- "Select an alternate repeater template to be display every <em>x</em> number "
884
- "of posts."
885
- msgstr ""
886
-
887
- #: ../admin/shortcode-builder/shortcode-builder.php:639
888
- msgid "Template Sequencing"
889
- msgstr ""
890
-
891
- #: ../admin/shortcode-builder/shortcode-builder.php:640
892
- msgid ""
893
- "A comma separated list of post position values. Posts in these positions "
894
- "will be replaced by the alternate template"
895
- msgstr ""
896
-
897
- #: ../admin/shortcode-builder/shortcode-builder.php:641
898
- msgid "Pro-Tip"
899
- msgstr ""
900
-
901
- #: ../admin/shortcode-builder/shortcode-builder.php:642
902
- msgid ""
903
- "Use sequence \"even\" to use an alternate template for every even result"
904
- msgstr ""
905
-
906
- #: ../admin/shortcode-builder/shortcode-builder.php:655
907
- msgid "Sequence Loop"
908
- msgstr ""
909
-
910
- #: ../admin/shortcode-builder/shortcode-builder.php:657
911
- msgid ""
912
- "Select the maximum number of loops to repeat alternate template sequence."
913
- msgstr ""
914
-
915
- #: ../admin/shortcode-builder/shortcode-builder.php:658
916
- msgid "0 = no maximum"
917
- msgstr ""
918
-
919
- #: ../admin/shortcode-builder/shortcode-builder.php:675
920
- msgid ""
921
- "Select an alternate <a href=\"admin.php?page=ajax-load-more-repeaters\" "
922
- "target=\"_parent\">repeater template</a>."
923
- msgstr ""
924
-
925
- #: ../admin/shortcode-builder/shortcode-builder.php:682
926
- #, fuzzy
927
- msgid "-- Select Repeater --"
928
- msgstr "Sélectionnez province"
929
-
930
- #: ../admin/shortcode-builder/shortcode-builder.php:716
931
  msgid "Post Types"
932
  msgstr ""
933
 
934
- #: ../admin/shortcode-builder/shortcode-builder.php:719
935
  msgid "Select Post Types to query."
936
  msgstr ""
937
 
938
- #: ../admin/shortcode-builder/shortcode-builder.php:740
939
  msgid "Post Format"
940
  msgstr ""
941
 
942
- #: ../admin/shortcode-builder/shortcode-builder.php:743
943
  msgid ""
944
  "Select a <a href=\"http://codex.wordpress.org/Post_Formats\" target=\"_blank"
945
  "\">Post Format</a> to query."
946
  msgstr ""
947
 
948
- #: ../admin/shortcode-builder/shortcode-builder.php:746
949
  msgid "Select Post Format"
950
  msgstr ""
951
 
952
- #: ../admin/shortcode-builder/shortcode-builder.php:747
953
  msgid "Standard"
954
  msgstr ""
955
 
956
- #: ../admin/shortcode-builder/shortcode-builder.php:771
957
  msgid ""
958
  "A comma separated list of categories to include by slug. (design, research "
959
  "etc...)"
960
  msgstr ""
961
 
962
- #: ../admin/shortcode-builder/shortcode-builder.php:773
963
- #: ../admin/shortcode-builder/shortcode-builder.php:1044
964
  msgid "view example"
965
  msgstr ""
966
 
967
- #: ../admin/shortcode-builder/shortcode-builder.php:795
968
- #: ../admin/shortcode-builder/shortcode-builder.php:852
969
- #: ../admin/shortcode-builder/shortcode-builder.php:1043
970
  msgid "Exclude"
971
  msgstr ""
972
 
973
- #: ../admin/shortcode-builder/shortcode-builder.php:796
974
  msgid ""
975
  "A comma separated list of categories to exclude by ID. (3, 12, 35 etc..)"
976
  msgstr ""
977
 
978
- #: ../admin/shortcode-builder/shortcode-builder.php:830
979
- #: ../admin/shortcode-builder/shortcode-builder.php:1032
980
  msgid "Include"
981
  msgstr ""
982
 
983
- #: ../admin/shortcode-builder/shortcode-builder.php:831
984
  msgid ""
985
  "A comma separated list of tags to include by slug. (toronto, canada etc...)"
986
  msgstr ""
987
 
988
- #: ../admin/shortcode-builder/shortcode-builder.php:853
989
  msgid "A comma separated list of tags to exclude by ID. (30, 12, 99 etc..)"
990
  msgstr ""
991
 
992
- #: ../admin/shortcode-builder/shortcode-builder.php:888
993
  msgid "Select a taxonomy then select the terms and an operator."
994
  msgstr ""
995
 
996
- #: ../admin/shortcode-builder/shortcode-builder.php:903
997
  msgid "Date"
998
  msgstr ""
999
 
1000
- #: ../admin/shortcode-builder/shortcode-builder.php:906
1001
  msgid ""
1002
  "Enter a year, month(number) and day to query by date archive.<br/>&raquo; <a "
1003
  "href=\"admin.php?page=ajax-load-more-examples#example-date\">view example</a>"
1004
  msgstr ""
1005
 
1006
- #: ../admin/shortcode-builder/shortcode-builder.php:912
1007
  msgid "Year:"
1008
  msgstr ""
1009
 
1010
- #: ../admin/shortcode-builder/shortcode-builder.php:916
1011
  msgid "Month:"
1012
  msgstr ""
1013
 
1014
- #: ../admin/shortcode-builder/shortcode-builder.php:920
1015
  msgid "Day:"
1016
  msgstr ""
1017
 
1018
- #: ../admin/shortcode-builder/shortcode-builder.php:931
1019
  msgid "Custom Fields (Meta_Query)"
1020
  msgstr ""
1021
 
1022
- #: ../admin/shortcode-builder/shortcode-builder.php:934
1023
  msgid ""
1024
  "Query for <a href=\"http://codex.wordpress.org/Class_Reference/WP_Meta_Query"
1025
  "\" target=\"_blank\">custom field</a> by entering a custom field key, value "
1026
  "and operator."
1027
  msgstr ""
1028
 
1029
- #: ../admin/shortcode-builder/shortcode-builder.php:945
1030
  msgid ""
1031
  "The logical relationship between each custom field when there is more than "
1032
  "one."
1033
  msgstr ""
1034
 
1035
- #: ../admin/shortcode-builder/shortcode-builder.php:959
1036
  msgid "Add Another"
1037
  msgstr ""
1038
 
1039
- #: ../admin/shortcode-builder/shortcode-builder.php:975
1040
  msgid "Author"
1041
  msgstr ""
1042
 
1043
- #: ../admin/shortcode-builder/shortcode-builder.php:978
1044
  msgid "Select an Author to query(by ID)."
1045
  msgstr ""
1046
 
1047
- #: ../admin/shortcode-builder/shortcode-builder.php:983
1048
  msgid "Select Author"
1049
  msgstr ""
1050
 
1051
- #: ../admin/shortcode-builder/shortcode-builder.php:999
1052
  msgid "Search Term"
1053
  msgstr ""
1054
 
1055
- #: ../admin/shortcode-builder/shortcode-builder.php:1002
1056
  msgid "Enter a search term to query."
1057
  msgstr ""
1058
 
1059
- #: ../admin/shortcode-builder/shortcode-builder.php:1006
1060
  msgid "Enter search term"
1061
  msgstr ""
1062
 
1063
- #: ../admin/shortcode-builder/shortcode-builder.php:1014
1064
  msgid "Custom Arguments"
1065
  msgstr ""
1066
 
1067
- #: ../admin/shortcode-builder/shortcode-builder.php:1017
1068
  msgid ""
1069
  "A semicolon separated list of custom value:pair arguments.<br/><br/>e.g. "
1070
  "tag_slug__and:design,development; event_display:upcoming. Default"
1071
  msgstr ""
1072
 
1073
- #: ../admin/shortcode-builder/shortcode-builder.php:1021
1074
  msgid "event_display:upcoming"
1075
  msgstr ""
1076
 
1077
- #: ../admin/shortcode-builder/shortcode-builder.php:1029
1078
  msgid "Post Parameters"
1079
  msgstr ""
1080
 
1081
- #: ../admin/shortcode-builder/shortcode-builder.php:1033
1082
  msgid "A comma separated list of post ID's to query."
1083
  msgstr ""
1084
 
1085
- #: ../admin/shortcode-builder/shortcode-builder.php:1037
1086
  msgid "225, 340, 818, etc..."
1087
  msgstr ""
1088
 
1089
- #: ../admin/shortcode-builder/shortcode-builder.php:1044
1090
  msgid "A comma separated list of post ID's to exclude from query."
1091
  msgstr ""
1092
 
1093
- #: ../admin/shortcode-builder/shortcode-builder.php:1054
1094
  msgid "Post Status"
1095
  msgstr ""
1096
 
1097
- #: ../admin/shortcode-builder/shortcode-builder.php:1054
1098
  msgid ""
1099
  "Post Status parameters are only available for logged in (admin) users. Non "
1100
  "logged in users will only have access to view content in a 'publish' state. "
1101
  msgstr ""
1102
 
1103
- #: ../admin/shortcode-builder/shortcode-builder.php:1055
1104
  msgid "Select status of the post."
1105
  msgstr ""
1106
 
1107
- #: ../admin/shortcode-builder/shortcode-builder.php:1060
1108
  msgid "Published"
1109
  msgstr ""
1110
 
1111
- #: ../admin/shortcode-builder/shortcode-builder.php:1075
1112
  msgid "Ordering"
1113
  msgstr ""
1114
 
1115
- #: ../admin/shortcode-builder/shortcode-builder.php:1078
1116
  msgid "Sort posts by Order and Orderby parameters."
1117
  msgstr ""
1118
 
1119
- #: ../admin/shortcode-builder/shortcode-builder.php:1082
1120
  msgid "Order"
1121
  msgstr ""
1122
 
1123
- #: ../admin/shortcode-builder/shortcode-builder.php:1089
1124
  msgid "Order By"
1125
  msgstr ""
1126
 
1127
- #: ../admin/shortcode-builder/shortcode-builder.php:1108
1128
  msgid "Offset"
1129
  msgstr ""
1130
 
1131
- #: ../admin/shortcode-builder/shortcode-builder.php:1111
1132
  msgid "Offset the initial query by <em>'n'</em> number of posts"
1133
  msgstr ""
1134
 
1135
- #: ../admin/shortcode-builder/shortcode-builder.php:1123
1136
  msgid "Posts Per Page"
1137
  msgstr ""
1138
 
1139
- #: ../admin/shortcode-builder/shortcode-builder.php:1126
1140
  msgid "Select the number of posts to load with each request."
1141
  msgstr ""
1142
 
1143
- #: ../admin/shortcode-builder/shortcode-builder.php:1138
1144
  msgid "Pause"
1145
  msgstr ""
1146
 
1147
- #: ../admin/shortcode-builder/shortcode-builder.php:1141
1148
  msgid ""
1149
  "Do <u>NOT</u> load any posts until user the clicks <em>Load More</em> button."
1150
  msgstr ""
1151
 
1152
- #: ../admin/shortcode-builder/shortcode-builder.php:1162
1153
  msgid "Scrolling"
1154
  msgstr ""
1155
 
1156
- #: ../admin/shortcode-builder/shortcode-builder.php:1165
1157
  msgid "Enable Scrolling"
1158
  msgstr ""
1159
 
1160
- #: ../admin/shortcode-builder/shortcode-builder.php:1166
1161
  msgid "Load more posts as the user scrolls the page."
1162
  msgstr ""
1163
 
1164
- #: ../admin/shortcode-builder/shortcode-builder.php:1187
1165
  msgid "Scroll Distance"
1166
  msgstr ""
1167
 
1168
- #: ../admin/shortcode-builder/shortcode-builder.php:1187
1169
  msgid ""
1170
  "Distance is based on the position of the loading button from the bottom of "
1171
  "the screen"
1172
  msgstr ""
1173
 
1174
- #: ../admin/shortcode-builder/shortcode-builder.php:1188
1175
  msgid ""
1176
  "The distance from the bottom of the screen to trigger loading of posts. "
1177
  "(Default = 150)"
1178
  msgstr ""
1179
 
1180
- #: ../admin/shortcode-builder/shortcode-builder.php:1200
1181
  msgid "Maximum Pages"
1182
  msgstr ""
1183
 
1184
- #: ../admin/shortcode-builder/shortcode-builder.php:1200
1185
  msgid "If using an Infinite Scroll button style you should set this to 0"
1186
  msgstr ""
1187
 
1188
- #: ../admin/shortcode-builder/shortcode-builder.php:1201
1189
  msgid "Maximum number of pages to load while scrolling. (0 = unlimited)"
1190
  msgstr ""
1191
 
1192
- #: ../admin/shortcode-builder/shortcode-builder.php:1213
1193
  msgid "Pause Override"
1194
  msgstr ""
1195
 
1196
- #: ../admin/shortcode-builder/shortcode-builder.php:1214
1197
  msgid ""
1198
  "Allow scrolling to override the Pause parameter and trigger the loading of "
1199
  "posts on scroll."
1200
  msgstr ""
1201
 
1202
- #: ../admin/shortcode-builder/shortcode-builder.php:1234
1203
  msgid "Transition"
1204
  msgstr ""
1205
 
1206
- #: ../admin/shortcode-builder/shortcode-builder.php:1237
1207
  msgid "Transition Type"
1208
  msgstr ""
1209
 
1210
- #: ../admin/shortcode-builder/shortcode-builder.php:1238
1211
  msgid "Select a loading transition style."
1212
  msgstr ""
1213
 
1214
- #: ../admin/shortcode-builder/shortcode-builder.php:1245
1215
  msgid "Slide"
1216
  msgstr ""
1217
 
1218
- #: ../admin/shortcode-builder/shortcode-builder.php:1249
1219
  msgid "Fade"
1220
  msgstr ""
1221
 
1222
- #: ../admin/shortcode-builder/shortcode-builder.php:1263
1223
  msgid "Transition Speed"
1224
  msgstr ""
1225
 
1226
- #: ../admin/shortcode-builder/shortcode-builder.php:1263
1227
  msgid "0.5 seconds = 500, 1 second = 1000 etc."
1228
  msgstr ""
1229
 
1230
- #: ../admin/shortcode-builder/shortcode-builder.php:1264
1231
  msgid "The speed of the loading transition in milliseconds"
1232
  msgstr ""
1233
 
1234
- #: ../admin/shortcode-builder/shortcode-builder.php:1276
1235
  msgid "Transition Container"
1236
  msgstr ""
1237
 
1238
- #: ../admin/shortcode-builder/shortcode-builder.php:1276
1239
  msgid ""
1240
  "Removing the transition container may have undesired results and is not "
1241
  "recommended."
1242
  msgstr ""
1243
 
1244
- #: ../admin/shortcode-builder/shortcode-builder.php:1277
1245
  msgid "Remove the Ajax Load More (.alm-reveal) loading container."
1246
  msgstr ""
1247
 
1248
- #: ../admin/shortcode-builder/shortcode-builder.php:1294
1249
  msgid "Images Loaded"
1250
  msgstr ""
1251
 
1252
- #: ../admin/shortcode-builder/shortcode-builder.php:1297
1253
  msgid "Wait for all images to load before displaying ajax loaded content"
1254
  msgstr ""
1255
 
1256
- #: ../admin/shortcode-builder/shortcode-builder.php:1298
1257
  msgid "Background images are currently not supported"
1258
  msgstr ""
1259
 
1260
- #: ../admin/shortcode-builder/shortcode-builder.php:1320
1261
  msgid "Destroy After"
1262
  msgstr ""
1263
 
1264
- #: ../admin/shortcode-builder/shortcode-builder.php:1323
1265
  msgid ""
1266
  "Remove ajax load more functionality after '<em>n</em>' number of pages have "
1267
  "been loaded."
1268
  msgstr ""
1269
 
1270
- #: ../admin/shortcode-builder/shortcode-builder.php:1335
1271
- msgid "Button Labels"
1272
  msgstr ""
1273
 
1274
- #: ../admin/shortcode-builder/shortcode-builder.php:1340
1275
  msgid "Button Label"
1276
  msgstr ""
1277
 
1278
- #: ../admin/shortcode-builder/shortcode-builder.php:1341
1279
  msgid "Customize the text of the <em>Load More</em> button."
1280
  msgstr ""
1281
 
1282
- #: ../admin/shortcode-builder/shortcode-builder.php:1353
1283
  msgid "Button Loading Label"
1284
  msgstr ""
1285
 
1286
- #: ../admin/shortcode-builder/shortcode-builder.php:1353
1287
  msgid "Leave field empty to not update text while loading content"
1288
  msgstr ""
1289
 
1290
- #: ../admin/shortcode-builder/shortcode-builder.php:1354
1291
  msgid ""
1292
  "Update the text of the <em>Load More</em> button while content is loading."
1293
  msgstr ""
1294
 
1295
- #: ../admin/shortcode-builder/shortcode-builder.php:1358
1296
  msgid "Loading Posts..."
1297
  msgstr ""
1298
 
1299
- #: ../admin/shortcode-builder/shortcode-builder.php:1367
1300
  msgid "Container Options"
1301
  msgstr ""
1302
 
1303
- #: ../admin/shortcode-builder/shortcode-builder.php:1371
1304
  msgid ""
1305
  "You can define a global container type on the Ajax Load More settings screen"
1306
  msgstr ""
1307
 
1308
- #: ../admin/shortcode-builder/shortcode-builder.php:1372
1309
  msgid ""
1310
  "Override the global Container Type that was set on <a href=\"admin.php?"
1311
  "page=ajax-load-more\">ALM Settings page</a>."
1312
  msgstr ""
1313
 
1314
- #: ../admin/shortcode-builder/shortcode-builder.php:1395
1315
  msgid ""
1316
  "You can define global container classes on the Ajax Load More settings screen"
1317
  msgstr ""
1318
 
1319
- #: ../admin/shortcode-builder/shortcode-builder.php:1396
1320
  msgid ""
1321
  "Add custom CSS classes to the Ajax Load More container. <br/><br/> e.g. "
1322
  "portfolio-listing large-12 etc"
@@ -1332,125 +1336,136 @@ msgid ""
1332
  "Load More"
1333
  msgstr ""
1334
 
1335
- #: ../admin/views/add-ons.php:19
 
 
 
 
 
 
 
 
 
 
 
1336
  msgid "Improve performance with the Ajax Load More caching engine."
1337
  msgstr ""
1338
 
1339
- #: ../admin/views/add-ons.php:20
1340
  msgid ""
1341
  "The Cache add-on creates static HTML files of Ajax Load More requests then "
1342
  "delivers those static files to your visitors."
1343
  msgstr ""
1344
 
1345
- #: ../admin/views/add-ons.php:46
1346
  msgid "Load blog comments on demand with Ajax Load More."
1347
  msgstr ""
1348
 
1349
- #: ../admin/views/add-ons.php:47
1350
  msgid ""
1351
  "The Comments add-on will display your blog comments with Ajax Load More's "
1352
  "infinite scroll functionality."
1353
  msgstr ""
1354
 
1355
- #: ../admin/views/add-ons.php:70 ../admin/views/licenses.php:205
1356
  msgid "Custom Repeaters"
1357
  msgstr ""
1358
 
1359
- #: ../admin/views/add-ons.php:71
1360
  msgid "Extend Ajax Load More with unlimited repeater templates."
1361
  msgstr ""
1362
 
1363
- #: ../admin/views/add-ons.php:72
1364
  msgid ""
1365
  "Create, delete and modify repeater templates as you need them with "
1366
  "absolutely zero restrictions."
1367
  msgstr ""
1368
 
1369
- #: ../admin/views/add-ons.php:98 ../admin/views/licenses.php:261
1370
- #: ../admin/views/settings.php:53
1371
  msgid "Layouts"
1372
  msgstr ""
1373
 
1374
- #: ../admin/views/add-ons.php:99
1375
  msgid "Predefined layouts for your repeater templates."
1376
  msgstr ""
1377
 
1378
- #: ../admin/views/add-ons.php:100
1379
  msgid ""
1380
  "The Layouts add-on provides a collection of unique, well designed and fully "
1381
  "responsive templates."
1382
  msgstr ""
1383
 
1384
- #: ../admin/views/add-ons.php:125
1385
  msgid "Extend Ajax Load More with a numbered navigation."
1386
  msgstr ""
1387
 
1388
- #: ../admin/views/add-ons.php:126
1389
  msgid ""
1390
  "The Paging add-on will transform the default infinite scroll functionality "
1391
  "into a robust ajax powered navigation system."
1392
  msgstr ""
1393
 
1394
- #: ../admin/views/add-ons.php:152
1395
  msgid "Load an initial set of posts before making Ajax requests to the server."
1396
  msgstr ""
1397
 
1398
- #: ../admin/views/add-ons.php:153
1399
  msgid ""
1400
  "The Preloaded add-on will display content quicker and allow caching of the "
1401
  "initial query which can reduce stress on your server."
1402
  msgstr ""
1403
 
1404
- #: ../admin/views/add-ons.php:178
1405
  msgid "An extension to enable infinite scrolling of single posts."
1406
  msgstr ""
1407
 
1408
- #: ../admin/views/add-ons.php:179
1409
  msgid ""
1410
  "The Previous Post add-on will load single posts as you scroll and update the "
1411
  "browser URL to the current post."
1412
  msgstr ""
1413
 
1414
- #: ../admin/views/add-ons.php:204
1415
  msgid "Infinite scroll with the WP REST API and Ajax Load More plugins."
1416
  msgstr ""
1417
 
1418
- #: ../admin/views/add-ons.php:205
1419
  msgid ""
1420
  "The REST API add-on will enable compatibility between Ajax Load More and the "
1421
  "WP REST API plugins.</p>"
1422
  msgstr ""
1423
 
1424
- #: ../admin/views/add-ons.php:231 ../admin/views/licenses.php:534
1425
  msgid "Search Engine Optimization"
1426
  msgstr ""
1427
 
1428
- #: ../admin/views/add-ons.php:232
1429
  msgid "Generate unique paging URLs with every Ajax Load More query."
1430
  msgstr ""
1431
 
1432
- #: ../admin/views/add-ons.php:233
1433
  msgid ""
1434
  "The SEO add-on will optimize your ajax loaded content for search engines by "
1435
  "generating unique URLs with every query.</p>"
1436
  msgstr ""
1437
 
1438
- #: ../admin/views/add-ons.php:257 ../admin/views/licenses.php:591
1439
- #: ../admin/views/settings.php:63
1440
  msgid "Theme Repeaters"
1441
  msgstr ""
1442
 
1443
- #: ../admin/views/add-ons.php:258
1444
  msgid "Manage repeater templates within your current theme directory."
1445
  msgstr ""
1446
 
1447
- #: ../admin/views/add-ons.php:259
1448
  msgid ""
1449
  "The Theme Repeater add-on will allow you load, edit and maintain templates "
1450
  "from your current theme directory.</p>"
1451
  msgstr ""
1452
 
1453
- #: ../admin/views/add-ons.php:278
1454
  msgid ""
1455
  "All add-ons are installed as stand alone plugins and with a valid license "
1456
  "key will receive plugin update notifications directly within the <a href="
@@ -1547,67 +1562,67 @@ msgid ""
1547
  msgstr ""
1548
 
1549
  #: ../admin/views/licenses.php:47 ../admin/views/licenses.php:49
1550
- #: ../admin/views/licenses.php:102 ../admin/views/licenses.php:104
1551
- #: ../admin/views/licenses.php:156 ../admin/views/licenses.php:158
1552
- #: ../admin/views/licenses.php:211 ../admin/views/licenses.php:213
1553
- #: ../admin/views/licenses.php:267 ../admin/views/licenses.php:269
1554
- #: ../admin/views/licenses.php:323 ../admin/views/licenses.php:325
1555
- #: ../admin/views/licenses.php:377 ../admin/views/licenses.php:379
1556
- #: ../admin/views/licenses.php:430 ../admin/views/licenses.php:432
1557
- #: ../admin/views/licenses.php:485 ../admin/views/licenses.php:487
1558
- #: ../admin/views/licenses.php:540 ../admin/views/licenses.php:542
1559
- #: ../admin/views/licenses.php:597 ../admin/views/licenses.php:599
1560
  msgid "Enter License Key"
1561
  msgstr ""
1562
 
1563
- #: ../admin/views/licenses.php:69 ../admin/views/licenses.php:124
1564
- #: ../admin/views/licenses.php:178 ../admin/views/licenses.php:233
1565
- #: ../admin/views/licenses.php:289 ../admin/views/licenses.php:345
1566
- #: ../admin/views/licenses.php:398 ../admin/views/licenses.php:452
1567
- #: ../admin/views/licenses.php:507 ../admin/views/licenses.php:562
1568
- #: ../admin/views/licenses.php:620
1569
  msgid "Activate License"
1570
  msgstr ""
1571
 
1572
- #: ../admin/views/licenses.php:73 ../admin/views/licenses.php:128
1573
- #: ../admin/views/licenses.php:182 ../admin/views/licenses.php:237
1574
- #: ../admin/views/licenses.php:293 ../admin/views/licenses.php:349
1575
- #: ../admin/views/licenses.php:402 ../admin/views/licenses.php:456
1576
- #: ../admin/views/licenses.php:511 ../admin/views/licenses.php:566
1577
- #: ../admin/views/licenses.php:624
1578
  msgid "Deactivate License"
1579
  msgstr ""
1580
 
1581
- #: ../admin/views/licenses.php:642
1582
  msgid "You do not have any Ajax Load More add-ons installed"
1583
  msgstr ""
1584
 
1585
- #: ../admin/views/licenses.php:642
1586
  msgid "Browse Add-ons"
1587
  msgstr ""
1588
 
1589
- #: ../admin/views/licenses.php:653
1590
  msgid "About Licenses"
1591
  msgstr ""
1592
 
1593
- #: ../admin/views/licenses.php:656
1594
  msgid "Add-on licenses will enable updates directly in your WP dashboard."
1595
  msgstr ""
1596
 
1597
- #: ../admin/views/licenses.php:657
1598
  msgid ""
1599
  "License keys are found in the purchase receipt email that was sent "
1600
  "immediately after your successful purchase."
1601
  msgstr ""
1602
 
1603
- #: ../admin/views/licenses.php:658
1604
  msgid ""
1605
  "If you cannot locate your key please use the <a href=\"https://connekthq.com/"
1606
  "contact/\">contact form</a> on our website and reference the email address "
1607
  "used when you completed the purchase."
1608
  msgstr ""
1609
 
1610
- #: ../admin/views/licenses.php:663
1611
  msgid "Legacy Users"
1612
  msgstr ""
1613
 
@@ -1687,11 +1702,11 @@ msgstr ""
1687
  msgid "Ajax Load More settings have been saved."
1688
  msgstr ""
1689
 
1690
- #: ../admin/views/settings.php:20
1691
  msgid "A small favor to ask"
1692
  msgstr ""
1693
 
1694
- #: ../admin/views/settings.php:22
1695
  msgid ""
1696
  "If you're an Ajax Load More user, please consider helping <a href=\"https://"
1697
  "twitter.com/KaptonKaos\" target=\"_blank\">me</a> spread the word by sharing "
@@ -1700,27 +1715,27 @@ msgid ""
1700
  "org</a> forums."
1701
  msgstr ""
1702
 
1703
- #: ../admin/views/settings.php:32
1704
  msgid "Don't show me this again!"
1705
  msgstr ""
1706
 
1707
- #: ../admin/views/settings.php:43 ../admin/views/settings.php:46
1708
  msgid "Jump to Setting"
1709
  msgstr ""
1710
 
1711
- #: ../admin/views/settings.php:47
1712
  msgid "Global Settings"
1713
  msgstr ""
1714
 
1715
- #: ../admin/views/settings.php:48
1716
  msgid "Admin"
1717
  msgstr ""
1718
 
1719
- #: ../admin/views/settings.php:61
1720
  msgid "SEO"
1721
  msgstr ""
1722
 
1723
- #: ../admin/views/settings.php:92
1724
  msgid "Sorry, settings could not be saved."
1725
  msgstr ""
1726
 
@@ -1752,7 +1767,7 @@ msgstr ""
1752
  msgid "Settings"
1753
  msgstr ""
1754
 
1755
- #: ../core/functions.php:401
1756
  msgid "Pages:"
1757
  msgstr ""
1758
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Ajax Load More\n"
4
+ "POT-Creation-Date: 2016-08-04 09:50-0500\n"
5
+ "PO-Revision-Date: 2016-08-04 09:50-0500\n"
6
+ "Last-Translator: Darren Cooney <dcooney@ecentricarts.com>\n"
7
  "Language-Team: \n"
8
  "Language: en_CA\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.6.4\n"
13
  "X-Poedit-Basepath: .\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Poedit-KeywordsList: __;_e\n"
21
  msgstr ""
22
 
23
  #: ../admin/admin.php:153 ../admin/editor/editor-build.php:67
24
+ #: ../admin/views/licenses.php:52 ../admin/views/licenses.php:106
25
+ #: ../admin/views/licenses.php:160 ../admin/views/licenses.php:215
26
+ #: ../admin/views/licenses.php:271 ../admin/views/licenses.php:327
27
+ #: ../admin/views/licenses.php:381 ../admin/views/licenses.php:434
28
+ #: ../admin/views/licenses.php:489 ../admin/views/licenses.php:544
29
+ #: ../admin/views/licenses.php:601
30
  msgid "Active"
31
  msgstr ""
32
 
33
  #: ../admin/admin.php:154 ../admin/editor/editor-build.php:68
34
+ #: ../admin/views/licenses.php:56 ../admin/views/licenses.php:110
35
+ #: ../admin/views/licenses.php:164 ../admin/views/licenses.php:219
36
+ #: ../admin/views/licenses.php:275 ../admin/views/licenses.php:331
37
+ #: ../admin/views/licenses.php:385 ../admin/views/licenses.php:438
38
+ #: ../admin/views/licenses.php:493 ../admin/views/licenses.php:548
39
+ #: ../admin/views/licenses.php:605
40
  msgid "Inactive"
41
  msgstr ""
42
 
75
  msgstr ""
76
 
77
  #: ../admin/admin.php:861
78
+ #: ../admin/shortcode-builder/shortcode-builder.php:1370
79
  msgid "Container Type"
80
  msgstr ""
81
 
82
  #: ../admin/admin.php:869
83
+ #: ../admin/shortcode-builder/shortcode-builder.php:1396
84
  msgid "Container Classes"
85
  msgstr ""
86
 
171
  "strong> or <strong>infinite scroll</strong>"
172
  msgstr ""
173
 
174
+ #: ../admin/admin.php:1236
175
  msgid "Preview"
176
  msgstr ""
177
 
178
+ #: ../admin/admin.php:1236
179
+ #: ../admin/shortcode-builder/shortcode-builder.php:1344
180
+ #: ../core/classes/class.alm-shortcode.php:124
181
  msgid "Older Posts"
182
  msgstr ""
183
 
184
+ #: ../admin/admin.php:1255
185
  msgid "Add classes to your <strong>Load More</strong> button"
186
  msgstr ""
187
 
188
+ #: ../admin/admin.php:1298
189
  msgid ""
190
  "On initial page load, move the user's browser window to the top of the "
191
  "screen.<span style=\"display:block\">This <u>may</u> help prevent the "
192
  "loading of unnecessary posts.</span>"
193
  msgstr ""
194
 
195
+ #: ../admin/admin.php:1319
196
  msgid ""
197
  "Enable <a href=\"https://codex.wordpress.org/WordPress_Nonces\" target="
198
  "\"_blank\">WP nonce</a> verification to help protect URLs against certain "
457
  #: ../admin/shortcode-builder/includes/tax-query-options.php:5
458
  #: ../admin/shortcode-builder/includes/tax-query-options.php:50
459
  #: ../admin/shortcode-builder/includes/tax-query-options.php:81
460
+ #: ../admin/shortcode-builder/shortcode-builder.php:481
461
  msgid "Select Taxonomy"
462
  msgstr ""
463
 
474
  msgstr ""
475
 
476
  #: ../admin/shortcode-builder/includes/tax-query-options.php:36
477
+ #: ../admin/shortcode-builder/shortcode-builder.php:944
478
  msgid "Relation:"
479
  msgstr ""
480
 
494
  msgstr ""
495
 
496
  #: ../admin/shortcode-builder/shortcode-builder.php:15
497
+ #: ../admin/views/add-ons.php:46 ../admin/views/licenses.php:41
498
+ #: ../admin/views/settings.php:52
499
  msgid "Cache"
500
  msgstr ""
501
 
502
  #: ../admin/shortcode-builder/shortcode-builder.php:18
 
 
 
 
503
  msgid "Turn on content caching."
504
  msgstr ""
505
 
506
+ #: ../admin/shortcode-builder/shortcode-builder.php:25
507
+ #: ../admin/shortcode-builder/shortcode-builder.php:69
508
+ #: ../admin/shortcode-builder/shortcode-builder.php:168
509
+ #: ../admin/shortcode-builder/shortcode-builder.php:322
510
+ #: ../admin/shortcode-builder/shortcode-builder.php:345
511
+ #: ../admin/shortcode-builder/shortcode-builder.php:399
512
+ #: ../admin/shortcode-builder/shortcode-builder.php:440
513
+ #: ../admin/shortcode-builder/shortcode-builder.php:534
514
+ #: ../admin/shortcode-builder/shortcode-builder.php:614
515
+ #: ../admin/shortcode-builder/shortcode-builder.php:648
516
+ #: ../admin/shortcode-builder/shortcode-builder.php:1147
517
+ #: ../admin/shortcode-builder/shortcode-builder.php:1172
518
+ #: ../admin/shortcode-builder/shortcode-builder.php:1219
519
+ #: ../admin/shortcode-builder/shortcode-builder.php:1305
520
  msgid "True"
521
  msgstr ""
522
 
523
+ #: ../admin/shortcode-builder/shortcode-builder.php:29
524
+ #: ../admin/shortcode-builder/shortcode-builder.php:73
525
+ #: ../admin/shortcode-builder/shortcode-builder.php:172
526
+ #: ../admin/shortcode-builder/shortcode-builder.php:326
527
+ #: ../admin/shortcode-builder/shortcode-builder.php:349
528
+ #: ../admin/shortcode-builder/shortcode-builder.php:403
529
+ #: ../admin/shortcode-builder/shortcode-builder.php:444
530
+ #: ../admin/shortcode-builder/shortcode-builder.php:538
531
+ #: ../admin/shortcode-builder/shortcode-builder.php:618
532
+ #: ../admin/shortcode-builder/shortcode-builder.php:652
533
+ #: ../admin/shortcode-builder/shortcode-builder.php:1151
534
+ #: ../admin/shortcode-builder/shortcode-builder.php:1176
535
+ #: ../admin/shortcode-builder/shortcode-builder.php:1223
536
+ #: ../admin/shortcode-builder/shortcode-builder.php:1309
537
  msgid "False"
538
  msgstr ""
539
 
540
+ #: ../admin/shortcode-builder/shortcode-builder.php:39
541
  msgid "Cache ID"
542
  msgstr ""
543
 
544
+ #: ../admin/shortcode-builder/shortcode-builder.php:40
545
  msgid ""
546
  "You <u>must</u> generate a unique ID for this cached query - this unique ID "
547
  "will be used as a content identifier."
548
  msgstr ""
549
 
550
+ #: ../admin/shortcode-builder/shortcode-builder.php:46
551
  msgid "Generate New ID"
552
  msgstr ""
553
 
554
+ #: ../admin/shortcode-builder/shortcode-builder.php:58
555
+ #: ../admin/views/add-ons.php:19 ../admin/views/licenses.php:95
556
+ msgid "Call to Actions"
557
+ msgstr ""
558
+
559
  #: ../admin/shortcode-builder/shortcode-builder.php:62
560
+ msgid "Insert call to action block."
561
+ msgstr ""
562
+
563
+ #: ../admin/shortcode-builder/shortcode-builder.php:86
564
+ msgid "CTA Positioning"
565
+ msgstr ""
566
+
567
+ #: ../admin/shortcode-builder/shortcode-builder.php:87
568
+ msgid ""
569
+ "Insert call to action <strong><em id=\"sequence-update-before-after"
570
+ "\">before</em></strong> post #<strong><em id=\"sequence-update\">1</em></"
571
+ "strong> for <strong><em id=\"sequence-repeat\">unlimited</em></strong> "
572
+ "page(s)"
573
+ msgstr ""
574
+
575
+ #: ../admin/shortcode-builder/shortcode-builder.php:92
576
+ msgid "Before / After"
577
+ msgstr ""
578
+
579
+ #: ../admin/shortcode-builder/shortcode-builder.php:94
580
+ msgid "Before"
581
+ msgstr ""
582
+
583
+ #: ../admin/shortcode-builder/shortcode-builder.php:95
584
+ msgid "After"
585
+ msgstr ""
586
+
587
+ #: ../admin/shortcode-builder/shortcode-builder.php:99
588
+ msgid "Post #"
589
+ msgstr ""
590
+
591
+ #: ../admin/shortcode-builder/shortcode-builder.php:103
592
+ msgid "Repeat for"
593
+ msgstr ""
594
+
595
+ #: ../admin/shortcode-builder/shortcode-builder.php:103
596
+ msgid "page(s)"
597
+ msgstr ""
598
+
599
+ #: ../admin/shortcode-builder/shortcode-builder.php:114
600
+ #: ../admin/shortcode-builder/shortcode-builder.php:665
601
+ msgid "Template"
602
+ msgstr ""
603
+
604
+ #: ../admin/shortcode-builder/shortcode-builder.php:116
605
+ msgid ""
606
+ "Select the <a href=\"admin.php?page=ajax-load-more-repeaters\" target="
607
+ "\"_parent\">repeater template</a> that will display your call to action."
608
+ msgstr ""
609
+
610
+ #: ../admin/shortcode-builder/shortcode-builder.php:123
611
+ #, fuzzy
612
+ msgid "-- Select Repeater --"
613
+ msgstr "Sélectionnez province"
614
+
615
+ #: ../admin/shortcode-builder/shortcode-builder.php:144
616
+ msgid ""
617
+ "Call to actions do NOT count as a post within an Ajax Load More loop.<br/>\n"
618
+ " For example, if you set <strong>posts_per_page=\"5\"</strong> "
619
+ "in your shortcode, 6 items will be displayed."
620
+ msgstr ""
621
+
622
+ #: ../admin/shortcode-builder/shortcode-builder.php:158
623
+ #: ../admin/views/add-ons.php:72 ../admin/views/licenses.php:149
624
  msgid "Comments"
625
  msgstr ""
626
 
627
+ #: ../admin/shortcode-builder/shortcode-builder.php:161
628
  msgid "Enable Ajax Load More to display blog comments."
629
  msgstr ""
630
 
631
+ #: ../admin/shortcode-builder/shortcode-builder.php:184
632
+ #: ../admin/shortcode-builder/shortcode-builder.php:454
633
  msgid "Post ID"
634
  msgstr ""
635
 
636
+ #: ../admin/shortcode-builder/shortcode-builder.php:185
637
+ #: ../admin/shortcode-builder/shortcode-builder.php:455
638
  msgid "The ID of the current single post."
639
  msgstr ""
640
 
641
+ #: ../admin/shortcode-builder/shortcode-builder.php:197
642
  msgid "Comments Per Page"
643
  msgstr ""
644
 
645
+ #: ../admin/shortcode-builder/shortcode-builder.php:198
646
  msgid "The number of top level items to show for each page of comments."
647
  msgstr ""
648
 
649
+ #: ../admin/shortcode-builder/shortcode-builder.php:206
650
  msgid ""
651
  "<strong>Note</strong>: The amount selected does NOT include comment replies."
652
  msgstr ""
653
 
654
+ #: ../admin/shortcode-builder/shortcode-builder.php:212
655
  msgid "Comment Type"
656
  msgstr ""
657
 
658
+ #: ../admin/shortcode-builder/shortcode-builder.php:213
659
  msgid "The type of comment(s) to display."
660
  msgstr ""
661
 
662
+ #: ../admin/shortcode-builder/shortcode-builder.php:218
663
  msgid "Comment"
664
  msgstr ""
665
 
666
+ #: ../admin/shortcode-builder/shortcode-builder.php:219
667
  msgid "All"
668
  msgstr ""
669
 
670
+ #: ../admin/shortcode-builder/shortcode-builder.php:220
671
  msgid "Trackback"
672
  msgstr ""
673
 
674
+ #: ../admin/shortcode-builder/shortcode-builder.php:221
675
  msgid "Pingback"
676
  msgstr ""
677
 
678
+ #: ../admin/shortcode-builder/shortcode-builder.php:222
679
  msgid "Pings"
680
  msgstr ""
681
 
682
+ #: ../admin/shortcode-builder/shortcode-builder.php:231
683
  msgid "Comment Style"
684
  msgstr ""
685
 
686
+ #: ../admin/shortcode-builder/shortcode-builder.php:232
687
  msgid "Select the HTML container style for your comments."
688
  msgstr ""
689
 
690
+ #: ../admin/shortcode-builder/shortcode-builder.php:258
691
  msgid "Comment Template"
692
  msgstr ""
693
 
694
+ #: ../admin/shortcode-builder/shortcode-builder.php:259
695
  msgid "Select a repeater template that will display comment data."
696
  msgstr ""
697
 
698
+ #: ../admin/shortcode-builder/shortcode-builder.php:265
699
+ #: ../admin/shortcode-builder/shortcode-builder.php:1252
700
  msgid "None"
701
  msgstr ""
702
 
703
+ #: ../admin/shortcode-builder/shortcode-builder.php:266
704
  msgid "Default"
705
  msgstr ""
706
 
707
+ #: ../admin/shortcode-builder/shortcode-builder.php:278
708
  msgid ""
709
  "<strong>Note</strong>: <span>None</span> will use the default WordPress "
710
  "comment layout."
711
  msgstr ""
712
 
713
+ #: ../admin/shortcode-builder/shortcode-builder.php:287
714
  msgid "Callback Function"
715
  msgstr ""
716
 
717
+ #: ../admin/shortcode-builder/shortcode-builder.php:288
718
  msgid ""
719
  "A custom <a href=\"https://codex.wordpress.org/Function_Reference/"
720
  "wp_list_comments#Arguments\" target=\"_blank\">callback</a> function that "
721
  "will display each comment."
722
  msgstr ""
723
 
724
+ #: ../admin/shortcode-builder/shortcode-builder.php:296
725
  msgid ""
726
  "<strong>Note</strong>: The majority of premium themes have a custom callback "
727
  "function for displaying comments. Please see comments.php or functions.php "
728
  "within your theme directory to locate the callback function for your theme."
729
  msgstr ""
730
 
731
+ #: ../admin/shortcode-builder/shortcode-builder.php:301
732
  msgid ""
733
  "You must add the comments shortcode directly to your single template file "
734
  "using the <a href=\"https://developer.wordpress.org/reference/functions/"
737
  "\"_blank\">View documentation</a>"
738
  msgstr ""
739
 
740
+ #: ../admin/shortcode-builder/shortcode-builder.php:313
741
+ #: ../admin/views/add-ons.php:151 ../admin/views/licenses.php:316
742
+ #: ../admin/views/settings.php:56
743
  msgid "Paging"
744
  msgstr ""
745
 
746
+ #: ../admin/shortcode-builder/shortcode-builder.php:315
747
  msgid "Replace infinite scrolling with a paged ajax navigation system."
748
  msgstr ""
749
 
750
+ #: ../admin/shortcode-builder/shortcode-builder.php:337
751
  msgid "Paging Controls"
752
  msgstr ""
753
 
754
+ #: ../admin/shortcode-builder/shortcode-builder.php:338
755
  msgid "Show (&laquo;)previous and next(&raquo;) buttons."
756
  msgstr ""
757
 
758
+ #: ../admin/shortcode-builder/shortcode-builder.php:358
759
  msgid "Paging Navigation Classes"
760
  msgstr ""
761
 
762
+ #: ../admin/shortcode-builder/shortcode-builder.php:359
763
  msgid "Add custom CSS classes to the paging navigation menu."
764
  msgstr ""
765
 
766
+ #: ../admin/shortcode-builder/shortcode-builder.php:370
767
  msgid "Show at Most"
768
  msgstr ""
769
 
770
+ #: ../admin/shortcode-builder/shortcode-builder.php:371
771
  msgid ""
772
  "The maximum amount of page menu items to show at a time. <br/.>0 = no maximum"
773
  msgstr ""
774
 
775
+ #: ../admin/shortcode-builder/shortcode-builder.php:389
776
+ #: ../admin/views/add-ons.php:178 ../admin/views/licenses.php:370
777
  msgid "Preloaded"
778
  msgstr ""
779
 
780
+ #: ../admin/shortcode-builder/shortcode-builder.php:392
781
  msgid "Preload posts prior to making Ajax requests."
782
  msgstr ""
783
 
784
+ #: ../admin/shortcode-builder/shortcode-builder.php:413
785
  msgid "Preload Amount"
786
  msgstr ""
787
 
788
+ #: ../admin/shortcode-builder/shortcode-builder.php:414
789
  msgid "Enter the number of posts to preload."
790
  msgstr ""
791
 
792
+ #: ../admin/shortcode-builder/shortcode-builder.php:430
793
+ #: ../admin/views/add-ons.php:204 ../admin/views/licenses.php:423
794
+ #: ../admin/views/settings.php:58
795
  msgid "Previous Post"
796
  msgstr ""
797
 
798
+ #: ../admin/shortcode-builder/shortcode-builder.php:433
799
  msgid "Enable the infinite scrolling of single posts."
800
  msgstr ""
801
 
802
+ #: ../admin/shortcode-builder/shortcode-builder.php:467
803
+ #: ../admin/shortcode-builder/shortcode-builder.php:884
804
  msgid "Taxonomy"
805
  msgstr ""
806
 
807
+ #: ../admin/shortcode-builder/shortcode-builder.php:467
808
  msgid ""
809
  "Selecting a taxonomy means only previous posts from the same taxonomy will "
810
  "be returned"
811
  msgstr ""
812
 
813
+ #: ../admin/shortcode-builder/shortcode-builder.php:468
814
  msgid "Query previous posts from the same taxonomy."
815
  msgstr ""
816
 
817
+ #: ../admin/shortcode-builder/shortcode-builder.php:482
818
+ #: ../admin/shortcode-builder/shortcode-builder.php:766
819
  msgid "Category"
820
  msgstr ""
821
 
822
+ #: ../admin/shortcode-builder/shortcode-builder.php:483
823
+ #: ../admin/shortcode-builder/shortcode-builder.php:826
824
  msgid "Tag"
825
  msgstr ""
826
 
827
+ #: ../admin/shortcode-builder/shortcode-builder.php:497
828
  msgid ""
829
  "You must add the Previous Post shortcode directly to your single template "
830
  "file using the <a href=\"https://developer.wordpress.org/reference/functions/"
833
  "target=\"_blank\">View documentation</a>"
834
  msgstr ""
835
 
836
+ #: ../admin/shortcode-builder/shortcode-builder.php:524
837
+ #: ../admin/views/add-ons.php:230 ../admin/views/licenses.php:478
838
+ #: ../admin/views/settings.php:60
839
  msgid "REST API"
840
  msgstr ""
841
 
842
+ #: ../admin/shortcode-builder/shortcode-builder.php:527
843
  msgid "Enable the WordPress REST API."
844
  msgstr ""
845
 
846
+ #: ../admin/shortcode-builder/shortcode-builder.php:551
847
  msgid "Base URL"
848
  msgstr ""
849
 
850
+ #: ../admin/shortcode-builder/shortcode-builder.php:552
851
  msgid "Set a default Base URL in the Ajax Load More settings panel"
852
  msgstr ""
853
 
854
+ #: ../admin/shortcode-builder/shortcode-builder.php:553
855
  msgid "Enter the base URL to your installation of the REST API."
856
  msgstr ""
857
 
858
+ #: ../admin/shortcode-builder/shortcode-builder.php:565
859
  msgid "Namespace"
860
  msgstr ""
861
 
862
+ #: ../admin/shortcode-builder/shortcode-builder.php:566
863
  msgid "Set a default Namespace in the Ajax Load More settings panel"
864
  msgstr ""
865
 
866
+ #: ../admin/shortcode-builder/shortcode-builder.php:567
867
  msgid "Enter the custom namespace for this Ajax Load More query."
868
  msgstr ""
869
 
870
+ #: ../admin/shortcode-builder/shortcode-builder.php:579
871
  msgid "Endpoint"
872
  msgstr ""
873
 
874
+ #: ../admin/shortcode-builder/shortcode-builder.php:580
875
  msgid "Set a default Endpoint in the Ajax Load More settings panel"
876
  msgstr ""
877
 
878
+ #: ../admin/shortcode-builder/shortcode-builder.php:581
879
  msgid "Enter your custom endpoint for this Ajax Load More query."
880
  msgstr ""
881
 
882
+ #: ../admin/shortcode-builder/shortcode-builder.php:593
883
  msgid "Template ID"
884
  msgstr ""
885
 
886
+ #: ../admin/shortcode-builder/shortcode-builder.php:593
887
  msgid ""
888
  "Ajax Load More references this ID while looping and displaying your data. "
889
  "You must still select a repeater template for this instance of Ajax Load More"
890
  msgstr ""
891
 
892
+ #: ../admin/shortcode-builder/shortcode-builder.php:594
893
  msgid ""
894
  "Enter the ID of your javascript template.<br/><br/>e.g. <em>tmpl-alm-"
895
  "template</em> = <em>alm-template</em>"
896
  msgstr ""
897
 
898
+ #: ../admin/shortcode-builder/shortcode-builder.php:606
899
  msgid "Debug Mode"
900
  msgstr ""
901
 
902
+ #: ../admin/shortcode-builder/shortcode-builder.php:607
903
  msgid ""
904
  "Enable debugging (console.log) of REST API responses in the browser console. "
905
  msgstr ""
906
 
907
+ #: ../admin/shortcode-builder/shortcode-builder.php:625
908
  msgid ""
909
  "Visit <a href=\"http://v2.wp-api.org/\" target=\"_blank\">http://v2.wp-api."
910
  "org</a> for documentation on creating custom <a href=\"http://v2.wp-api.org/"
912
  "More."
913
  msgstr ""
914
 
915
+ #: ../admin/shortcode-builder/shortcode-builder.php:638
916
  msgid "SEO (Search Engine Optimization)"
917
  msgstr ""
918
 
919
+ #: ../admin/shortcode-builder/shortcode-builder.php:641
920
  msgid ""
921
  "Enable address bar URL rewrites as users page through ajax loaded content."
922
  msgstr ""
923
 
924
+ #: ../admin/shortcode-builder/shortcode-builder.php:669
 
 
 
 
 
925
  msgid "Repeater Template"
926
  msgstr ""
927
 
928
+ #: ../admin/shortcode-builder/shortcode-builder.php:671
929
  msgid ""
930
  "Select which <a href=\"admin.php?page=ajax-load-more-repeaters\" target="
931
  "\"_parent\">repeater template</a> you would like to use."
932
  msgstr ""
933
 
934
+ #: ../admin/shortcode-builder/shortcode-builder.php:715
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
935
  msgid "Post Types"
936
  msgstr ""
937
 
938
+ #: ../admin/shortcode-builder/shortcode-builder.php:718
939
  msgid "Select Post Types to query."
940
  msgstr ""
941
 
942
+ #: ../admin/shortcode-builder/shortcode-builder.php:739
943
  msgid "Post Format"
944
  msgstr ""
945
 
946
+ #: ../admin/shortcode-builder/shortcode-builder.php:742
947
  msgid ""
948
  "Select a <a href=\"http://codex.wordpress.org/Post_Formats\" target=\"_blank"
949
  "\">Post Format</a> to query."
950
  msgstr ""
951
 
952
+ #: ../admin/shortcode-builder/shortcode-builder.php:745
953
  msgid "Select Post Format"
954
  msgstr ""
955
 
956
+ #: ../admin/shortcode-builder/shortcode-builder.php:746
957
  msgid "Standard"
958
  msgstr ""
959
 
960
+ #: ../admin/shortcode-builder/shortcode-builder.php:770
961
  msgid ""
962
  "A comma separated list of categories to include by slug. (design, research "
963
  "etc...)"
964
  msgstr ""
965
 
966
+ #: ../admin/shortcode-builder/shortcode-builder.php:772
967
+ #: ../admin/shortcode-builder/shortcode-builder.php:1043
968
  msgid "view example"
969
  msgstr ""
970
 
971
+ #: ../admin/shortcode-builder/shortcode-builder.php:794
972
+ #: ../admin/shortcode-builder/shortcode-builder.php:851
973
+ #: ../admin/shortcode-builder/shortcode-builder.php:1042
974
  msgid "Exclude"
975
  msgstr ""
976
 
977
+ #: ../admin/shortcode-builder/shortcode-builder.php:795
978
  msgid ""
979
  "A comma separated list of categories to exclude by ID. (3, 12, 35 etc..)"
980
  msgstr ""
981
 
982
+ #: ../admin/shortcode-builder/shortcode-builder.php:829
983
+ #: ../admin/shortcode-builder/shortcode-builder.php:1031
984
  msgid "Include"
985
  msgstr ""
986
 
987
+ #: ../admin/shortcode-builder/shortcode-builder.php:830
988
  msgid ""
989
  "A comma separated list of tags to include by slug. (toronto, canada etc...)"
990
  msgstr ""
991
 
992
+ #: ../admin/shortcode-builder/shortcode-builder.php:852
993
  msgid "A comma separated list of tags to exclude by ID. (30, 12, 99 etc..)"
994
  msgstr ""
995
 
996
+ #: ../admin/shortcode-builder/shortcode-builder.php:887
997
  msgid "Select a taxonomy then select the terms and an operator."
998
  msgstr ""
999
 
1000
+ #: ../admin/shortcode-builder/shortcode-builder.php:902
1001
  msgid "Date"
1002
  msgstr ""
1003
 
1004
+ #: ../admin/shortcode-builder/shortcode-builder.php:905
1005
  msgid ""
1006
  "Enter a year, month(number) and day to query by date archive.<br/>&raquo; <a "
1007
  "href=\"admin.php?page=ajax-load-more-examples#example-date\">view example</a>"
1008
  msgstr ""
1009
 
1010
+ #: ../admin/shortcode-builder/shortcode-builder.php:911
1011
  msgid "Year:"
1012
  msgstr ""
1013
 
1014
+ #: ../admin/shortcode-builder/shortcode-builder.php:915
1015
  msgid "Month:"
1016
  msgstr ""
1017
 
1018
+ #: ../admin/shortcode-builder/shortcode-builder.php:919
1019
  msgid "Day:"
1020
  msgstr ""
1021
 
1022
+ #: ../admin/shortcode-builder/shortcode-builder.php:930
1023
  msgid "Custom Fields (Meta_Query)"
1024
  msgstr ""
1025
 
1026
+ #: ../admin/shortcode-builder/shortcode-builder.php:933
1027
  msgid ""
1028
  "Query for <a href=\"http://codex.wordpress.org/Class_Reference/WP_Meta_Query"
1029
  "\" target=\"_blank\">custom field</a> by entering a custom field key, value "
1030
  "and operator."
1031
  msgstr ""
1032
 
1033
+ #: ../admin/shortcode-builder/shortcode-builder.php:944
1034
  msgid ""
1035
  "The logical relationship between each custom field when there is more than "
1036
  "one."
1037
  msgstr ""
1038
 
1039
+ #: ../admin/shortcode-builder/shortcode-builder.php:958
1040
  msgid "Add Another"
1041
  msgstr ""
1042
 
1043
+ #: ../admin/shortcode-builder/shortcode-builder.php:974
1044
  msgid "Author"
1045
  msgstr ""
1046
 
1047
+ #: ../admin/shortcode-builder/shortcode-builder.php:977
1048
  msgid "Select an Author to query(by ID)."
1049
  msgstr ""
1050
 
1051
+ #: ../admin/shortcode-builder/shortcode-builder.php:982
1052
  msgid "Select Author"
1053
  msgstr ""
1054
 
1055
+ #: ../admin/shortcode-builder/shortcode-builder.php:998
1056
  msgid "Search Term"
1057
  msgstr ""
1058
 
1059
+ #: ../admin/shortcode-builder/shortcode-builder.php:1001
1060
  msgid "Enter a search term to query."
1061
  msgstr ""
1062
 
1063
+ #: ../admin/shortcode-builder/shortcode-builder.php:1005
1064
  msgid "Enter search term"
1065
  msgstr ""
1066
 
1067
+ #: ../admin/shortcode-builder/shortcode-builder.php:1013
1068
  msgid "Custom Arguments"
1069
  msgstr ""
1070
 
1071
+ #: ../admin/shortcode-builder/shortcode-builder.php:1016
1072
  msgid ""
1073
  "A semicolon separated list of custom value:pair arguments.<br/><br/>e.g. "
1074
  "tag_slug__and:design,development; event_display:upcoming. Default"
1075
  msgstr ""
1076
 
1077
+ #: ../admin/shortcode-builder/shortcode-builder.php:1020
1078
  msgid "event_display:upcoming"
1079
  msgstr ""
1080
 
1081
+ #: ../admin/shortcode-builder/shortcode-builder.php:1028
1082
  msgid "Post Parameters"
1083
  msgstr ""
1084
 
1085
+ #: ../admin/shortcode-builder/shortcode-builder.php:1032
1086
  msgid "A comma separated list of post ID's to query."
1087
  msgstr ""
1088
 
1089
+ #: ../admin/shortcode-builder/shortcode-builder.php:1036
1090
  msgid "225, 340, 818, etc..."
1091
  msgstr ""
1092
 
1093
+ #: ../admin/shortcode-builder/shortcode-builder.php:1043
1094
  msgid "A comma separated list of post ID's to exclude from query."
1095
  msgstr ""
1096
 
1097
+ #: ../admin/shortcode-builder/shortcode-builder.php:1053
1098
  msgid "Post Status"
1099
  msgstr ""
1100
 
1101
+ #: ../admin/shortcode-builder/shortcode-builder.php:1053
1102
  msgid ""
1103
  "Post Status parameters are only available for logged in (admin) users. Non "
1104
  "logged in users will only have access to view content in a 'publish' state. "
1105
  msgstr ""
1106
 
1107
+ #: ../admin/shortcode-builder/shortcode-builder.php:1054
1108
  msgid "Select status of the post."
1109
  msgstr ""
1110
 
1111
+ #: ../admin/shortcode-builder/shortcode-builder.php:1059
1112
  msgid "Published"
1113
  msgstr ""
1114
 
1115
+ #: ../admin/shortcode-builder/shortcode-builder.php:1074
1116
  msgid "Ordering"
1117
  msgstr ""
1118
 
1119
+ #: ../admin/shortcode-builder/shortcode-builder.php:1077
1120
  msgid "Sort posts by Order and Orderby parameters."
1121
  msgstr ""
1122
 
1123
+ #: ../admin/shortcode-builder/shortcode-builder.php:1081
1124
  msgid "Order"
1125
  msgstr ""
1126
 
1127
+ #: ../admin/shortcode-builder/shortcode-builder.php:1088
1128
  msgid "Order By"
1129
  msgstr ""
1130
 
1131
+ #: ../admin/shortcode-builder/shortcode-builder.php:1107
1132
  msgid "Offset"
1133
  msgstr ""
1134
 
1135
+ #: ../admin/shortcode-builder/shortcode-builder.php:1110
1136
  msgid "Offset the initial query by <em>'n'</em> number of posts"
1137
  msgstr ""
1138
 
1139
+ #: ../admin/shortcode-builder/shortcode-builder.php:1122
1140
  msgid "Posts Per Page"
1141
  msgstr ""
1142
 
1143
+ #: ../admin/shortcode-builder/shortcode-builder.php:1125
1144
  msgid "Select the number of posts to load with each request."
1145
  msgstr ""
1146
 
1147
+ #: ../admin/shortcode-builder/shortcode-builder.php:1137
1148
  msgid "Pause"
1149
  msgstr ""
1150
 
1151
+ #: ../admin/shortcode-builder/shortcode-builder.php:1140
1152
  msgid ""
1153
  "Do <u>NOT</u> load any posts until user the clicks <em>Load More</em> button."
1154
  msgstr ""
1155
 
1156
+ #: ../admin/shortcode-builder/shortcode-builder.php:1161
1157
  msgid "Scrolling"
1158
  msgstr ""
1159
 
1160
+ #: ../admin/shortcode-builder/shortcode-builder.php:1164
1161
  msgid "Enable Scrolling"
1162
  msgstr ""
1163
 
1164
+ #: ../admin/shortcode-builder/shortcode-builder.php:1165
1165
  msgid "Load more posts as the user scrolls the page."
1166
  msgstr ""
1167
 
1168
+ #: ../admin/shortcode-builder/shortcode-builder.php:1186
1169
  msgid "Scroll Distance"
1170
  msgstr ""
1171
 
1172
+ #: ../admin/shortcode-builder/shortcode-builder.php:1186
1173
  msgid ""
1174
  "Distance is based on the position of the loading button from the bottom of "
1175
  "the screen"
1176
  msgstr ""
1177
 
1178
+ #: ../admin/shortcode-builder/shortcode-builder.php:1187
1179
  msgid ""
1180
  "The distance from the bottom of the screen to trigger loading of posts. "
1181
  "(Default = 150)"
1182
  msgstr ""
1183
 
1184
+ #: ../admin/shortcode-builder/shortcode-builder.php:1199
1185
  msgid "Maximum Pages"
1186
  msgstr ""
1187
 
1188
+ #: ../admin/shortcode-builder/shortcode-builder.php:1199
1189
  msgid "If using an Infinite Scroll button style you should set this to 0"
1190
  msgstr ""
1191
 
1192
+ #: ../admin/shortcode-builder/shortcode-builder.php:1200
1193
  msgid "Maximum number of pages to load while scrolling. (0 = unlimited)"
1194
  msgstr ""
1195
 
1196
+ #: ../admin/shortcode-builder/shortcode-builder.php:1212
1197
  msgid "Pause Override"
1198
  msgstr ""
1199
 
1200
+ #: ../admin/shortcode-builder/shortcode-builder.php:1213
1201
  msgid ""
1202
  "Allow scrolling to override the Pause parameter and trigger the loading of "
1203
  "posts on scroll."
1204
  msgstr ""
1205
 
1206
+ #: ../admin/shortcode-builder/shortcode-builder.php:1233
1207
  msgid "Transition"
1208
  msgstr ""
1209
 
1210
+ #: ../admin/shortcode-builder/shortcode-builder.php:1236
1211
  msgid "Transition Type"
1212
  msgstr ""
1213
 
1214
+ #: ../admin/shortcode-builder/shortcode-builder.php:1237
1215
  msgid "Select a loading transition style."
1216
  msgstr ""
1217
 
1218
+ #: ../admin/shortcode-builder/shortcode-builder.php:1244
1219
  msgid "Slide"
1220
  msgstr ""
1221
 
1222
+ #: ../admin/shortcode-builder/shortcode-builder.php:1248
1223
  msgid "Fade"
1224
  msgstr ""
1225
 
1226
+ #: ../admin/shortcode-builder/shortcode-builder.php:1262
1227
  msgid "Transition Speed"
1228
  msgstr ""
1229
 
1230
+ #: ../admin/shortcode-builder/shortcode-builder.php:1262
1231
  msgid "0.5 seconds = 500, 1 second = 1000 etc."
1232
  msgstr ""
1233
 
1234
+ #: ../admin/shortcode-builder/shortcode-builder.php:1263
1235
  msgid "The speed of the loading transition in milliseconds"
1236
  msgstr ""
1237
 
1238
+ #: ../admin/shortcode-builder/shortcode-builder.php:1275
1239
  msgid "Transition Container"
1240
  msgstr ""
1241
 
1242
+ #: ../admin/shortcode-builder/shortcode-builder.php:1275
1243
  msgid ""
1244
  "Removing the transition container may have undesired results and is not "
1245
  "recommended."
1246
  msgstr ""
1247
 
1248
+ #: ../admin/shortcode-builder/shortcode-builder.php:1276
1249
  msgid "Remove the Ajax Load More (.alm-reveal) loading container."
1250
  msgstr ""
1251
 
1252
+ #: ../admin/shortcode-builder/shortcode-builder.php:1293
1253
  msgid "Images Loaded"
1254
  msgstr ""
1255
 
1256
+ #: ../admin/shortcode-builder/shortcode-builder.php:1296
1257
  msgid "Wait for all images to load before displaying ajax loaded content"
1258
  msgstr ""
1259
 
1260
+ #: ../admin/shortcode-builder/shortcode-builder.php:1297
1261
  msgid "Background images are currently not supported"
1262
  msgstr ""
1263
 
1264
+ #: ../admin/shortcode-builder/shortcode-builder.php:1319
1265
  msgid "Destroy After"
1266
  msgstr ""
1267
 
1268
+ #: ../admin/shortcode-builder/shortcode-builder.php:1322
1269
  msgid ""
1270
  "Remove ajax load more functionality after '<em>n</em>' number of pages have "
1271
  "been loaded."
1272
  msgstr ""
1273
 
1274
+ #: ../admin/shortcode-builder/shortcode-builder.php:1334
1275
+ msgid "Button Options"
1276
  msgstr ""
1277
 
1278
+ #: ../admin/shortcode-builder/shortcode-builder.php:1339
1279
  msgid "Button Label"
1280
  msgstr ""
1281
 
1282
+ #: ../admin/shortcode-builder/shortcode-builder.php:1340
1283
  msgid "Customize the text of the <em>Load More</em> button."
1284
  msgstr ""
1285
 
1286
+ #: ../admin/shortcode-builder/shortcode-builder.php:1352
1287
  msgid "Button Loading Label"
1288
  msgstr ""
1289
 
1290
+ #: ../admin/shortcode-builder/shortcode-builder.php:1352
1291
  msgid "Leave field empty to not update text while loading content"
1292
  msgstr ""
1293
 
1294
+ #: ../admin/shortcode-builder/shortcode-builder.php:1353
1295
  msgid ""
1296
  "Update the text of the <em>Load More</em> button while content is loading."
1297
  msgstr ""
1298
 
1299
+ #: ../admin/shortcode-builder/shortcode-builder.php:1357
1300
  msgid "Loading Posts..."
1301
  msgstr ""
1302
 
1303
+ #: ../admin/shortcode-builder/shortcode-builder.php:1366
1304
  msgid "Container Options"
1305
  msgstr ""
1306
 
1307
+ #: ../admin/shortcode-builder/shortcode-builder.php:1370
1308
  msgid ""
1309
  "You can define a global container type on the Ajax Load More settings screen"
1310
  msgstr ""
1311
 
1312
+ #: ../admin/shortcode-builder/shortcode-builder.php:1371
1313
  msgid ""
1314
  "Override the global Container Type that was set on <a href=\"admin.php?"
1315
  "page=ajax-load-more\">ALM Settings page</a>."
1316
  msgstr ""
1317
 
1318
+ #: ../admin/shortcode-builder/shortcode-builder.php:1396
1319
  msgid ""
1320
  "You can define global container classes on the Ajax Load More settings screen"
1321
  msgstr ""
1322
 
1323
+ #: ../admin/shortcode-builder/shortcode-builder.php:1397
1324
  msgid ""
1325
  "Add custom CSS classes to the Ajax Load More container. <br/><br/> e.g. "
1326
  "portfolio-listing large-12 etc"
1336
  "Load More"
1337
  msgstr ""
1338
 
1339
+ #: ../admin/views/add-ons.php:20
1340
+ msgid ""
1341
+ "Ajax Load More extension for displaying advertisements and call to actions."
1342
+ msgstr ""
1343
+
1344
+ #: ../admin/views/add-ons.php:21
1345
+ msgid ""
1346
+ "The Call to Actions add-on will provide the ability to inject a custom CTA "
1347
+ "template within each Ajax Load More loop."
1348
+ msgstr ""
1349
+
1350
+ #: ../admin/views/add-ons.php:47
1351
  msgid "Improve performance with the Ajax Load More caching engine."
1352
  msgstr ""
1353
 
1354
+ #: ../admin/views/add-ons.php:48
1355
  msgid ""
1356
  "The Cache add-on creates static HTML files of Ajax Load More requests then "
1357
  "delivers those static files to your visitors."
1358
  msgstr ""
1359
 
1360
+ #: ../admin/views/add-ons.php:73
1361
  msgid "Load blog comments on demand with Ajax Load More."
1362
  msgstr ""
1363
 
1364
+ #: ../admin/views/add-ons.php:74
1365
  msgid ""
1366
  "The Comments add-on will display your blog comments with Ajax Load More's "
1367
  "infinite scroll functionality."
1368
  msgstr ""
1369
 
1370
+ #: ../admin/views/add-ons.php:97 ../admin/views/licenses.php:204
1371
  msgid "Custom Repeaters"
1372
  msgstr ""
1373
 
1374
+ #: ../admin/views/add-ons.php:98
1375
  msgid "Extend Ajax Load More with unlimited repeater templates."
1376
  msgstr ""
1377
 
1378
+ #: ../admin/views/add-ons.php:99
1379
  msgid ""
1380
  "Create, delete and modify repeater templates as you need them with "
1381
  "absolutely zero restrictions."
1382
  msgstr ""
1383
 
1384
+ #: ../admin/views/add-ons.php:125 ../admin/views/licenses.php:260
1385
+ #: ../admin/views/settings.php:54
1386
  msgid "Layouts"
1387
  msgstr ""
1388
 
1389
+ #: ../admin/views/add-ons.php:126
1390
  msgid "Predefined layouts for your repeater templates."
1391
  msgstr ""
1392
 
1393
+ #: ../admin/views/add-ons.php:127
1394
  msgid ""
1395
  "The Layouts add-on provides a collection of unique, well designed and fully "
1396
  "responsive templates."
1397
  msgstr ""
1398
 
1399
+ #: ../admin/views/add-ons.php:152
1400
  msgid "Extend Ajax Load More with a numbered navigation."
1401
  msgstr ""
1402
 
1403
+ #: ../admin/views/add-ons.php:153
1404
  msgid ""
1405
  "The Paging add-on will transform the default infinite scroll functionality "
1406
  "into a robust ajax powered navigation system."
1407
  msgstr ""
1408
 
1409
+ #: ../admin/views/add-ons.php:179
1410
  msgid "Load an initial set of posts before making Ajax requests to the server."
1411
  msgstr ""
1412
 
1413
+ #: ../admin/views/add-ons.php:180
1414
  msgid ""
1415
  "The Preloaded add-on will display content quicker and allow caching of the "
1416
  "initial query which can reduce stress on your server."
1417
  msgstr ""
1418
 
1419
+ #: ../admin/views/add-ons.php:205
1420
  msgid "An extension to enable infinite scrolling of single posts."
1421
  msgstr ""
1422
 
1423
+ #: ../admin/views/add-ons.php:206
1424
  msgid ""
1425
  "The Previous Post add-on will load single posts as you scroll and update the "
1426
  "browser URL to the current post."
1427
  msgstr ""
1428
 
1429
+ #: ../admin/views/add-ons.php:231
1430
  msgid "Infinite scroll with the WP REST API and Ajax Load More plugins."
1431
  msgstr ""
1432
 
1433
+ #: ../admin/views/add-ons.php:232
1434
  msgid ""
1435
  "The REST API add-on will enable compatibility between Ajax Load More and the "
1436
  "WP REST API plugins.</p>"
1437
  msgstr ""
1438
 
1439
+ #: ../admin/views/add-ons.php:258 ../admin/views/licenses.php:533
1440
  msgid "Search Engine Optimization"
1441
  msgstr ""
1442
 
1443
+ #: ../admin/views/add-ons.php:259
1444
  msgid "Generate unique paging URLs with every Ajax Load More query."
1445
  msgstr ""
1446
 
1447
+ #: ../admin/views/add-ons.php:260
1448
  msgid ""
1449
  "The SEO add-on will optimize your ajax loaded content for search engines by "
1450
  "generating unique URLs with every query.</p>"
1451
  msgstr ""
1452
 
1453
+ #: ../admin/views/add-ons.php:284 ../admin/views/licenses.php:590
1454
+ #: ../admin/views/settings.php:64
1455
  msgid "Theme Repeaters"
1456
  msgstr ""
1457
 
1458
+ #: ../admin/views/add-ons.php:285
1459
  msgid "Manage repeater templates within your current theme directory."
1460
  msgstr ""
1461
 
1462
+ #: ../admin/views/add-ons.php:286
1463
  msgid ""
1464
  "The Theme Repeater add-on will allow you load, edit and maintain templates "
1465
  "from your current theme directory.</p>"
1466
  msgstr ""
1467
 
1468
+ #: ../admin/views/add-ons.php:305
1469
  msgid ""
1470
  "All add-ons are installed as stand alone plugins and with a valid license "
1471
  "key will receive plugin update notifications directly within the <a href="
1562
  msgstr ""
1563
 
1564
  #: ../admin/views/licenses.php:47 ../admin/views/licenses.php:49
1565
+ #: ../admin/views/licenses.php:101 ../admin/views/licenses.php:103
1566
+ #: ../admin/views/licenses.php:155 ../admin/views/licenses.php:157
1567
+ #: ../admin/views/licenses.php:210 ../admin/views/licenses.php:212
1568
+ #: ../admin/views/licenses.php:266 ../admin/views/licenses.php:268
1569
+ #: ../admin/views/licenses.php:322 ../admin/views/licenses.php:324
1570
+ #: ../admin/views/licenses.php:376 ../admin/views/licenses.php:378
1571
+ #: ../admin/views/licenses.php:429 ../admin/views/licenses.php:431
1572
+ #: ../admin/views/licenses.php:484 ../admin/views/licenses.php:486
1573
+ #: ../admin/views/licenses.php:539 ../admin/views/licenses.php:541
1574
+ #: ../admin/views/licenses.php:596 ../admin/views/licenses.php:598
1575
  msgid "Enter License Key"
1576
  msgstr ""
1577
 
1578
+ #: ../admin/views/licenses.php:69 ../admin/views/licenses.php:123
1579
+ #: ../admin/views/licenses.php:177 ../admin/views/licenses.php:232
1580
+ #: ../admin/views/licenses.php:288 ../admin/views/licenses.php:344
1581
+ #: ../admin/views/licenses.php:397 ../admin/views/licenses.php:451
1582
+ #: ../admin/views/licenses.php:506 ../admin/views/licenses.php:561
1583
+ #: ../admin/views/licenses.php:619
1584
  msgid "Activate License"
1585
  msgstr ""
1586
 
1587
+ #: ../admin/views/licenses.php:73 ../admin/views/licenses.php:127
1588
+ #: ../admin/views/licenses.php:181 ../admin/views/licenses.php:236
1589
+ #: ../admin/views/licenses.php:292 ../admin/views/licenses.php:348
1590
+ #: ../admin/views/licenses.php:401 ../admin/views/licenses.php:455
1591
+ #: ../admin/views/licenses.php:510 ../admin/views/licenses.php:565
1592
+ #: ../admin/views/licenses.php:623
1593
  msgid "Deactivate License"
1594
  msgstr ""
1595
 
1596
+ #: ../admin/views/licenses.php:641
1597
  msgid "You do not have any Ajax Load More add-ons installed"
1598
  msgstr ""
1599
 
1600
+ #: ../admin/views/licenses.php:641
1601
  msgid "Browse Add-ons"
1602
  msgstr ""
1603
 
1604
+ #: ../admin/views/licenses.php:652
1605
  msgid "About Licenses"
1606
  msgstr ""
1607
 
1608
+ #: ../admin/views/licenses.php:655
1609
  msgid "Add-on licenses will enable updates directly in your WP dashboard."
1610
  msgstr ""
1611
 
1612
+ #: ../admin/views/licenses.php:656
1613
  msgid ""
1614
  "License keys are found in the purchase receipt email that was sent "
1615
  "immediately after your successful purchase."
1616
  msgstr ""
1617
 
1618
+ #: ../admin/views/licenses.php:657
1619
  msgid ""
1620
  "If you cannot locate your key please use the <a href=\"https://connekthq.com/"
1621
  "contact/\">contact form</a> on our website and reference the email address "
1622
  "used when you completed the purchase."
1623
  msgstr ""
1624
 
1625
+ #: ../admin/views/licenses.php:662
1626
  msgid "Legacy Users"
1627
  msgstr ""
1628
 
1702
  msgid "Ajax Load More settings have been saved."
1703
  msgstr ""
1704
 
1705
+ #: ../admin/views/settings.php:21
1706
  msgid "A small favor to ask"
1707
  msgstr ""
1708
 
1709
+ #: ../admin/views/settings.php:23
1710
  msgid ""
1711
  "If you're an Ajax Load More user, please consider helping <a href=\"https://"
1712
  "twitter.com/KaptonKaos\" target=\"_blank\">me</a> spread the word by sharing "
1715
  "org</a> forums."
1716
  msgstr ""
1717
 
1718
+ #: ../admin/views/settings.php:33
1719
  msgid "Don't show me this again!"
1720
  msgstr ""
1721
 
1722
+ #: ../admin/views/settings.php:44 ../admin/views/settings.php:47
1723
  msgid "Jump to Setting"
1724
  msgstr ""
1725
 
1726
+ #: ../admin/views/settings.php:48
1727
  msgid "Global Settings"
1728
  msgstr ""
1729
 
1730
+ #: ../admin/views/settings.php:49
1731
  msgid "Admin"
1732
  msgstr ""
1733
 
1734
+ #: ../admin/views/settings.php:62
1735
  msgid "SEO"
1736
  msgstr ""
1737
 
1738
+ #: ../admin/views/settings.php:93
1739
  msgid "Sorry, settings could not be saved."
1740
  msgstr ""
1741
 
1767
  msgid "Settings"
1768
  msgstr ""
1769
 
1770
+ #: ../core/functions.php:471
1771
  msgid "Pages:"
1772
  msgstr ""
1773