WordPress Infinite Scroll – Ajax Load More - Version 2.12.0

Version Description

  • September 5, 2016 =
  • NEW - Completed integration of new Call to Actions add-on.
  • NEW - Added $.fn.almTriggerClick() public function that will easily allow users to trigger Ajax Load More from any object on the screen.
  • UPDATE - Allow for post_status="inherit" for use with attachments.
  • UPDATE - Adding Media (attachment) post type to the Shortcode Builder.
  • UPDATE - Allow for Author slug or ID within shortcode.
  • UPDATE - Updating Ajax Load More menu icon.
  • UPDATE - Updating license notifications on License page.
  • UPDATE - Removed blocking of SEO add-on when using multiple instances of the plugin on the same page. Users must ensure to only set seo="true" on one element if using multiple instances of Ajax load More.
  • UPDATE - Updated default repeater template display on admin screen if Local Template is in use. Users will now see the contents on the Local Template but will not be able to modify the template directly.
  • FIX - URL/paging issue with Polylang and SEO plugins.
  • FIX - Updated code used to split pages with Search Engine Optimization add-on.
Download this release

Release Info

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

Code changes from version 2.11.2 to 2.12.0

README.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Ajax Load More - Infinite Scroll ===
2
  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.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
 
@@ -103,7 +103,8 @@ Ajax Load More accepts a number of parameters that are passed to the WordPress q
103
  ***
104
 
105
  = Demos =
106
- * **[Default](https://connekthq.com/plugins/ajax-load-more/)** - Out of the box functionality and styling
 
107
  * **[Destroy After](https://connekthq.com/plugins/ajax-load-more/examples/destroy-after/)** - Remove Ajax Load More functionality after 'n' number of pages
108
  * **[Fade Transition](https://connekthq.com/plugins/ajax-load-more/examples/fade-transition/)** - Elements fade in as posts are loaded
109
  * **[Filtering](https://connekthq.com/plugins/ajax-load-more/examples/filtering/)** - Reset and filter an Ajax Load More instance
@@ -134,6 +135,10 @@ Ajax Load More accepts a number of parameters that are passed to the WordPress q
134
  > The **[Cache](https://connekthq.com/plugins/ajax-load-more/cache/)** add-oncreates static HTML files of Ajax Load More requests then serves those static pages to your visitors without querying the database.<br />
135
  > [Get More Information](https://connekthq.com/plugins/ajax-load-more/cache/)
136
  >
 
 
 
 
137
  > #### Comments
138
  > The **[Comments](https://connekthq.com/plugins/ajax-load-more/add-ons/comments/)** add-on will load and display blog comments using the core Ajax Load More infinite scroll functionality.<br />
139
  > [Get More Information](https://connekthq.com/plugins/ajax-load-more/add-ons/comments/)
@@ -318,6 +323,19 @@ How to install Ajax Load More.
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.
1
  === Ajax Load More - Infinite Scroll ===
2
  Contributors: dcooney
3
  Donate link: https://connekthq.com/donate/
4
+ Tags: infinite scroll, infinite scrolling, scroll, infinite, lazy load, lazy loading, pagination, ajax pagination, ajax, ajax posts, ajax load posts, search, tags, category, post types, taxonomy, meta_query, woocommerce
5
  Requires at least: 3.6
6
  Tested up to: 4.6
7
+ Stable tag: 2.12.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
103
  ***
104
 
105
  = Demos =
106
+ * **[Default](https://connekthq.com/plugins/ajax-load-more/examples/default/)** - Out of the box functionality and styling
107
+ * **[Attachments](https://connekthq.com/plugins/ajax-load-more/examples/attachments/)** - Infinite scroll post attachments
108
  * **[Destroy After](https://connekthq.com/plugins/ajax-load-more/examples/destroy-after/)** - Remove Ajax Load More functionality after 'n' number of pages
109
  * **[Fade Transition](https://connekthq.com/plugins/ajax-load-more/examples/fade-transition/)** - Elements fade in as posts are loaded
110
  * **[Filtering](https://connekthq.com/plugins/ajax-load-more/examples/filtering/)** - Reset and filter an Ajax Load More instance
135
  > The **[Cache](https://connekthq.com/plugins/ajax-load-more/cache/)** add-oncreates static HTML files of Ajax Load More requests then serves those static pages to your visitors without querying the database.<br />
136
  > [Get More Information](https://connekthq.com/plugins/ajax-load-more/cache/)
137
  >
138
+ > #### Call to Actions
139
+ > The **[Call to Actions](https://connekthq.com/plugins/ajax-load-more/add-ons/call-to-actions/)** add-on will provide functionality to inject a custom CTA template within an Ajax Load More query.<br />
140
+ > [Get More Information](https://connekthq.com/plugins/ajax-load-more/add-ons/call-to-actions/)
141
+ >
142
  > #### Comments
143
  > The **[Comments](https://connekthq.com/plugins/ajax-load-more/add-ons/comments/)** add-on will load and display blog comments using the core Ajax Load More infinite scroll functionality.<br />
144
  > [Get More Information](https://connekthq.com/plugins/ajax-load-more/add-ons/comments/)
323
 
324
  == Changelog ==
325
 
326
+ = 2.12.0 - September 5, 2016 =
327
+ * NEW - Completed integration of new Call to Actions add-on.
328
+ * NEW - Added $.fn.almTriggerClick() public function that will easily allow users to trigger Ajax Load More from any object on the screen.
329
+ * UPDATE - Allow for post_status="inherit" for use with attachments.
330
+ * UPDATE - Adding Media (attachment) post type to the Shortcode Builder.
331
+ * UPDATE - Allow for Author slug or ID within shortcode.
332
+ * UPDATE - Updating Ajax Load More menu icon.
333
+ * UPDATE - Updating license notifications on License page.
334
+ * UPDATE - Removed blocking of SEO add-on when using multiple instances of the plugin on the same page. Users must ensure to only set seo="true" on one element if using multiple instances of Ajax load More.
335
+ * UPDATE - Updated default repeater template display on admin screen if Local Template is in use. Users will now see the contents on the Local Template but will not be able to modify the template directly.
336
+ * FIX - URL/paging issue with Polylang and SEO plugins.
337
+ * FIX - Updated code used to split pages with Search Engine Optimization add-on.
338
+
339
  = 2.11.2 - August 4, 2016 =
340
  * SECURITY - Security fix for Custom Repeaters and Theme Repeaters include file path.
341
  * 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.
admin/admin-functions.php ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /*
4
+ * alm_is_admin_screen
5
+ * Determine whether user is on an ALM admin screen
6
+ *
7
+ * @return boolean
8
+ * @since 2.12.0
9
+ */
10
+
11
+ function alm_is_admin_screen(){
12
+ $return = false;
13
+ $screen = get_current_screen();
14
+ if($screen->parent_base === 'ajax-load-more'){
15
+ $return = true;
16
+ }
17
+ return $return;
18
+ }
19
+
20
+
admin/admin.php CHANGED
@@ -9,6 +9,8 @@ add_action( 'wp_ajax_alm_layouts_dismiss', 'alm_layouts_dismiss' ); // Dismiss L
9
  add_action( 'wp_ajax_alm_license_activation', 'alm_license_activation' ); // Activate Add-on
10
  add_action( 'alm_get_layouts', 'alm_get_layouts' ); // Add layout selection
11
  add_action( 'wp_ajax_alm_layouts_get', 'alm_layouts_get' ); // Get layout
 
 
12
 
13
 
14
 
@@ -823,7 +825,25 @@ function alm_dismiss_sharing(){
823
  die();
824
  }
825
  }
826
- add_action( 'wp_ajax_alm_dismiss_sharing', 'alm_dismiss_sharing' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
827
 
828
 
829
  /*
9
  add_action( 'wp_ajax_alm_license_activation', 'alm_license_activation' ); // Activate Add-on
10
  add_action( 'alm_get_layouts', 'alm_get_layouts' ); // Add layout selection
11
  add_action( 'wp_ajax_alm_layouts_get', 'alm_layouts_get' ); // Get layout
12
+ add_action( 'wp_ajax_alm_dismiss_sharing', 'alm_dismiss_sharing' ); // Dismiss sharing
13
+ add_filter( 'admin_footer_text', 'alm_filter_admin_footer_text'); // Admin menu text
14
 
15
 
16
 
825
  die();
826
  }
827
  }
828
+
829
+
830
+
831
+ /*
832
+ * alm_filter_admin_footer_text
833
+ * Filter the WP Admin footer text only on ALM pages
834
+ *
835
+ * @since 2.12.0
836
+ */
837
+
838
+ function alm_filter_admin_footer_text( $text ) {
839
+ $screen = alm_is_admin_screen();
840
+ if(!$screen){
841
+ return;
842
+ }
843
+
844
+ echo 'Ajax Load More is made with <span style="color: #e25555;">♥</span> by <a href="https://connekthq.com" target="_blank" style="font-weight: 500;">Connekt</a> | <a href="https://connekthq.com/plugins/ajax-load-more/support/" target="_blank" style="font-weight: 500;">Get Support</a>';
845
+ }
846
+
847
 
848
 
849
  /*
admin/css/admin.css CHANGED
@@ -520,15 +520,16 @@ a.layout-hover{
520
 
521
  .ajax-load-more p.warning-callout{
522
  background-color: #cbecf7;
 
523
  color: #333;
524
  font-size: 13px;
525
  margin: 0;
526
  display: block;
527
- padding: 10px;
528
  border-radius: 3px;
529
  margin: 10px;
530
  width: auto;
531
- line-height: 1.75;
532
  }
533
  .ajax-load-more p.warning-callout strong{
534
  display: inline-block;
@@ -541,6 +542,7 @@ a.layout-hover{
541
  }
542
  .ajax-load-more p.warning-callout.notify{
543
  background-color: #ad4141;
 
544
  color: #fff;
545
  }
546
 
@@ -1229,6 +1231,7 @@ a.layout-hover{
1229
  }
1230
  .ajax-load-more h2.addon-title{
1231
  font-size: 19px !important;
 
1232
  font-weight: 600 !important;
1233
  color: #444 !important;
1234
  padding: 0;
@@ -1482,7 +1485,9 @@ table.highlight{
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;
1488
  }
@@ -1677,6 +1682,23 @@ table.highlight{
1677
  border-color: transparent !important;
1678
  }
1679
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1680
 
1681
 
1682
  .license .loading{
@@ -1939,6 +1961,13 @@ table.highlight{
1939
  color: #999;
1940
  line-height: 1.3;
1941
  }
 
 
 
 
 
 
 
1942
  .ajax-load-more .CodeMirror.loading {
1943
  background: #f7f7f7 url("../img/loader-unlimited.gif") no-repeat center center;
1944
  opacity: 0.6;
520
 
521
  .ajax-load-more p.warning-callout{
522
  background-color: #cbecf7;
523
+ border-left: 5px solid #5e99ac;
524
  color: #333;
525
  font-size: 13px;
526
  margin: 0;
527
  display: block;
528
+ padding: 12px 12px 12px 17px;
529
  border-radius: 3px;
530
  margin: 10px;
531
  width: auto;
532
+ line-height: 1.55;
533
  }
534
  .ajax-load-more p.warning-callout strong{
535
  display: inline-block;
542
  }
543
  .ajax-load-more p.warning-callout.notify{
544
  background-color: #ad4141;
545
+ border-color: #903030;
546
  color: #fff;
547
  }
548
 
1231
  }
1232
  .ajax-load-more h2.addon-title{
1233
  font-size: 19px !important;
1234
+ line-height: 24px;
1235
  font-weight: 600 !important;
1236
  color: #444 !important;
1237
  padding: 0;
1485
  .ajax-load-more .cnkt-main .group.installed{
1486
  opacity: 0.7;
1487
  }
1488
+ .ajax-load-more .cnkt-main .group.installed p:before{
1489
+ display: none !important;
1490
+ }
1491
  #alm-add-ons .group img{
1492
  padding: 12px 18px 12px;
1493
  }
1682
  border-color: transparent !important;
1683
  }
1684
 
1685
+ .license .no-license{
1686
+ display: block;
1687
+ padding: 12px 10px 12px 20px;
1688
+ margin: 0 0 15px 0;
1689
+ border: 1px solid #e7e7c6;
1690
+ border-left: 5px solid #e7e7c6;
1691
+ background-color: #ffffe5;
1692
+ border-radius: 3px;
1693
+ }
1694
+ .license .no-license h4{
1695
+ margin: 0 0 3px;
1696
+ }
1697
+ .license .no-license p{
1698
+ margin: 5px 0 0;
1699
+ padding: 0;
1700
+ }
1701
+
1702
 
1703
 
1704
  .license .loading{
1961
  color: #999;
1962
  line-height: 1.3;
1963
  }
1964
+ .ajax-load-more .cm-readonly .CodeMirror{
1965
+ margin: 0 0 20px;
1966
+ opacity: 0.7;
1967
+ }
1968
+ .ajax-load-more .cm-readonly p.warning-callout{
1969
+ margin: 0 0 10px;
1970
+ }
1971
  .ajax-load-more .CodeMirror.loading {
1972
  background: #f7f7f7 url("../img/loader-unlimited.gif") no-repeat center center;
1973
  opacity: 0.6;
admin/img/add.png CHANGED
Binary file
admin/img/alm-logo-16x16.png CHANGED
Binary file
admin/includes/cta/add-ons.php CHANGED
@@ -3,7 +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/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>
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/js/admin.js CHANGED
@@ -242,12 +242,14 @@ jQuery(document).ready(function($) {
242
  $('.license-title .status', parent).addClass('valid').removeClass('invalid');
243
  $('.activate.license-btn', parent).addClass('hide');
244
  $('.deactivate.license-btn', parent).removeClass('hide');
 
245
 
246
  }else{
247
  $('.license-key-field .status', parent).removeClass('active').addClass('inactive').text(alm_admin_localize.inactive);
248
  $('.license-title .status', parent).removeClass('valid').addClass('invalid');
249
  $('.activate.license-btn', parent).removeClass('hide');
250
- $('.deactivate.license-btn', parent).addClass('hide');
 
251
  }
252
 
253
  $('.loading', parent).delay(250).fadeOut(300);
242
  $('.license-title .status', parent).addClass('valid').removeClass('invalid');
243
  $('.activate.license-btn', parent).addClass('hide');
244
  $('.deactivate.license-btn', parent).removeClass('hide');
245
+ $('.no-license', parent).slideUp(200);
246
 
247
  }else{
248
  $('.license-key-field .status', parent).removeClass('active').addClass('inactive').text(alm_admin_localize.inactive);
249
  $('.license-title .status', parent).removeClass('valid').addClass('invalid');
250
  $('.activate.license-btn', parent).removeClass('hide');
251
+ $('.deactivate.license-btn', parent).addClass('hide');
252
+ $('.no-license', parent).slideDown(200);
253
  }
254
 
255
  $('.loading', parent).delay(250).fadeOut(300);
admin/shortcode-builder/js/shortcode-builder.js CHANGED
@@ -182,7 +182,6 @@ jQuery(document).ready(function($) {
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
 
@@ -191,21 +190,17 @@ jQuery(document).ready(function($) {
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
  }
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_repeater = $('select[name=cta-repeater-select]', cta_container).val();
186
  var cta_theme_repeater = $('select[name=theme-repeater-select]', cta_container).val();
187
 
190
  // Standard repeater
191
  if(cta_repeater != '' && cta_repeater != undefined && cta_position != '' && cta_position != null){
192
  output += ' cta="'+cta+'"';
193
+ output += ' cta_position="'+cta_before_after+':'+cta_position;
194
  output += ' cta_repeater="'+cta_repeater+'"';
195
  }
196
  // Theme repeater
197
  if(cta_theme_repeater != '' && cta_theme_repeater != undefined && cta_position != '' && cta_position != null){
198
  output += ' cta="'+cta+'"';
199
+ output += ' cta_position="'+cta_before_after+':'+cta_position;
200
  output += ' cta_theme_repeater="'+cta_theme_repeater+'"';
201
  }
202
  $('#sequence-update').text(cta_position);
203
+ $('#sequence-update-before-after').text(cta_before_after);
 
 
 
 
204
  }else{
205
  $('.cta_template_wrap').slideUp(100, 'alm_easeInOutQuad');
206
  }
admin/shortcode-builder/shortcode-builder.php CHANGED
@@ -84,7 +84,7 @@
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">
@@ -98,10 +98,6 @@
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>
@@ -721,7 +717,7 @@
721
  foreach( $types as $type ){
722
  $typeobj = get_post_type_object( $type );
723
  $name = $typeobj->name;
724
- if( $name != 'revision' && $name != 'attachment' && $name != 'nav_menu_item' && $name != 'acf'){
725
  echo '<li><input class="alm_element" type="checkbox" name="chk-'.$typeobj->name.'" id="chk-'.$typeobj->name.'" data-type="'.$typeobj->name.'"><label for="chk-'.$typeobj->name.'">'.$typeobj->labels->singular_name.'</label></li>';
726
  }
727
  }
@@ -1050,7 +1046,7 @@
1050
  <div class="clear"></div>
1051
  <hr/>
1052
  <div class="section-title">
1053
- <h4><?php _e('Post Status', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Post Status parameters are only available for logged in (admin) users. Non logged in users will only have access to view content in a \'publish\' state. ','ajax-load-more'); ?>"></a></h4>
1054
  <p><?php _e('Select status of the post.', 'ajax-load-more'); ?></p>
1055
  </div>
1056
  <div class="wrap">
@@ -1063,6 +1059,7 @@
1063
  <option value="pending">Pending</option>
1064
  <option value="private">Private</option>
1065
  <option value="trash">Trash</option>
 
1066
  </select>
1067
  </div>
1068
  </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>', 'ajax-load-more'); ?>.</p>
88
  </div>
89
  <div class="wrap">
90
  <div class="inner">
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
 
102
  </div>
103
  </div>
717
  foreach( $types as $type ){
718
  $typeobj = get_post_type_object( $type );
719
  $name = $typeobj->name;
720
+ if( $name != 'revision' && $name != 'nav_menu_item' && $name != 'acf'){
721
  echo '<li><input class="alm_element" type="checkbox" name="chk-'.$typeobj->name.'" id="chk-'.$typeobj->name.'" data-type="'.$typeobj->name.'"><label for="chk-'.$typeobj->name.'">'.$typeobj->labels->singular_name.'</label></li>';
722
  }
723
  }
1046
  <div class="clear"></div>
1047
  <hr/>
1048
  <div class="section-title">
1049
+ <h4><?php _e('Post Status', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Post Status parameters are only available for logged in (admin) users. Non logged in users will only have access to view content in a \'publish\' or \'inherit\' state. ','ajax-load-more'); ?>"></a></h4>
1050
  <p><?php _e('Select status of the post.', 'ajax-load-more'); ?></p>
1051
  </div>
1052
  <div class="wrap">
1059
  <option value="pending">Pending</option>
1060
  <option value="private">Private</option>
1061
  <option value="trash">Trash</option>
1062
+ <option value="inherit">Inherit</option>
1063
  </select>
1064
  </div>
1065
  </div>
admin/views/add-ons.php CHANGED
@@ -5,22 +5,21 @@
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>';
@@ -31,23 +30,23 @@
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'; } ?>">
39
  <div class="row no-brd">
40
  <?php
41
- $cache_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/cache/?utm_source=WP%20Admin&utm_medium=ALM%20Add-ons&utm_campaign=Cache'; ?>
42
 
43
- <a href="<?php echo $cache_url; ?>">
44
  <div class="expand-wrap">
45
- <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/cache-add-on.jpg" alt="">
46
- <h2 class="addon-title"><?php _e('Cache', 'ajax-load-more'); ?></h2>
47
- <p class="addon-intro"><?php _e('Improve performance with the Ajax Load More caching engine.', 'ajax-load-more'); ?></p>
48
- <p><?php _e('The Cache add-on creates static HTML files of Ajax Load More requests then delivers those static files to your visitors.', 'ajax-load-more'); ?></p>
49
  <?php
50
- if (has_action('alm_cache_installed')){
51
  echo '<span class="cnkt-button installed"><i class="fa fa-check-square"></i> Installed</span> ';
52
  }else{
53
  echo '<span class="cnkt-button"><i class="fa fa-download"></i> Purchase &amp; Install</span>';
@@ -58,7 +57,8 @@
58
  </div>
59
 
60
  </div>
61
- <!-- End Cache -->
 
62
 
63
  <!-- Comments -->
64
  <div class="group<?php if (has_action('alm_comments_installed')){echo ' installed'; } ?>">
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'; } ?>">
 
11
  <div class="row no-brd">
12
  <?php
13
+ $cache_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/cache/?utm_source=WP%20Admin&utm_medium=ALM%20Add-ons&utm_campaign=Cache'; ?>
14
 
15
+ <a href="<?php echo $cache_url; ?>">
16
  <div class="expand-wrap">
17
+ <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/cache-add-on.jpg" alt="">
18
+ <h2 class="addon-title"><?php _e('Cache', 'ajax-load-more'); ?></h2>
19
+ <p class="addon-intro"><?php _e('Improve performance with the Ajax Load More caching engine.', 'ajax-load-more'); ?></p>
20
+ <p><?php _e('The Cache add-on creates static HTML files of Ajax Load More requests then delivers those static files to your visitors.', 'ajax-load-more'); ?></p>
21
  <?php
22
+ if (has_action('alm_cache_installed')){
23
  echo '<span class="cnkt-button installed"><i class="fa fa-check-square"></i> Installed</span> ';
24
  }else{
25
  echo '<span class="cnkt-button"><i class="fa fa-download"></i> Purchase &amp; Install</span>';
30
  </div>
31
 
32
  </div>
33
+ <!-- End Cache -->
34
+
35
+
36
+ <!-- Call to Actions -->
37
+ <div class="group<?php if (has_action('alm_cta_installed')){echo ' installed'; } ?>">
38
  <div class="row no-brd">
39
  <?php
40
+ $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'; ?>
41
 
42
+ <a href="<?php echo $cta_url; ?>">
43
  <div class="expand-wrap">
44
+ <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/cta-add-on.jpg" alt="">
45
+ <h2 class="addon-title"><?php _e('Call to Actions', 'ajax-load-more'); ?></h2>
46
+ <p class="addon-intro"><?php _e('Ajax Load More extension for displaying advertisements and call to actions.', 'ajax-load-more'); ?></p>
47
+ <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>
48
  <?php
49
+ if (has_action('alm_cta_installed')){
50
  echo '<span class="cnkt-button installed"><i class="fa fa-check-square"></i> Installed</span> ';
51
  }else{
52
  echo '<span class="cnkt-button"><i class="fa fa-download"></i> Purchase &amp; Install</span>';
57
  </div>
58
 
59
  </div>
60
+ <!-- End Call to Actions -->
61
+
62
 
63
  <!-- Comments -->
64
  <div class="group<?php if (has_action('alm_comments_installed')){echo ' installed'; } ?>">
admin/views/licenses.php CHANGED
@@ -34,6 +34,7 @@
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">
@@ -43,7 +44,17 @@
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'); ?>" />
@@ -64,7 +75,7 @@
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>
@@ -88,6 +99,7 @@
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">
@@ -95,9 +107,19 @@
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'); ?>" />
@@ -118,7 +140,7 @@
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>
@@ -142,6 +164,7 @@
142
  // Comments
143
  $alm_comments_license = get_option( 'alm_comments_license_key' );
144
  $alm_comments_status = get_option( 'alm_comments_license_status' );
 
145
  ?>
146
  <div class="license" id="license-comments">
147
  <div class="license-title">
@@ -149,9 +172,19 @@
149
  <h2><?php _e('Comments', 'ajax-load-more'); ?></h2>
150
  </div>
151
  <div class="license-wrap">
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'); ?>" />
@@ -172,7 +205,7 @@
172
  data-url="<?php echo ALM_STORE_URL; ?>"
173
  data-option-status="alm_comments_license_status"
174
  data-option-key="alm_comments_license_key"
175
- data-upgrade-url="https://connekthq.com/plugins/ajax-load-more/add-ons/comments/">
176
  <button type="button" class="activate license-btn <?php if($alm_comments_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
177
  <?php _e('Activate License', 'ajax-load-more'); ?>
178
  </button>
@@ -197,6 +230,7 @@
197
  // Custom Repeaters
198
  $alm_unlimited_license = get_option( 'alm_unlimited_license_key' );
199
  $alm_unlimited_status = get_option( 'alm_unlimited_license_status' );
 
200
  ?>
201
  <div class="license" id="license-repeaters">
202
  <div class="license-title">
@@ -206,7 +240,17 @@
206
  <div class="license-wrap">
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'); ?>" />
@@ -227,7 +271,7 @@
227
  data-url="<?php echo ALM_STORE_URL; ?>"
228
  data-option-status="alm_unlimited_license_status"
229
  data-option-key="alm_unlimited_license_key"
230
- data-upgrade-url="https://connekthq.com/plugins/ajax-load-more/add-ons/custom-repeaters/">
231
  <button type="button" class="activate license-btn <?php if($alm_unlimited_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
232
  <?php _e('Activate License', 'ajax-load-more'); ?>
233
  </button>
@@ -253,6 +297,7 @@
253
  // LAYOUTS
254
  $alm_layouts_license = get_option( 'alm_layouts_license_key' );
255
  $alm_layouts_status = get_option( 'alm_layouts_license_status' );
 
256
  ?>
257
  <div class="license" id="license-layouts">
258
  <div class="license-title">
@@ -260,9 +305,19 @@
260
  <h2><?php _e('Layouts', 'ajax-load-more'); ?></h2>
261
  </div>
262
  <div class="license-wrap">
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'); ?>" />
@@ -283,7 +338,7 @@
283
  data-url="<?php echo ALM_STORE_URL; ?>"
284
  data-option-status="alm_layouts_license_status"
285
  data-option-key="alm_layouts_license_key"
286
- data-upgrade-url="https://connekthq.com/plugins/ajax-load-more/add-ons/layouts/">
287
  <button type="button" class="activate license-btn <?php if($alm_layouts_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
288
  <?php _e('Activate License', 'ajax-load-more'); ?>
289
  </button>
@@ -309,6 +364,7 @@
309
  // PAGING
310
  $alm_paging_license = get_option( 'alm_paging_license_key' );
311
  $alm_paging_status = get_option( 'alm_paging_license_status' );
 
312
  ?>
313
  <div class="license" id="license-paging">
314
  <div class="license-title">
@@ -317,8 +373,18 @@
317
  </div>
318
  <div class="license-wrap">
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'); ?>" />
@@ -339,7 +405,7 @@
339
  data-url="<?php echo ALM_STORE_URL; ?>"
340
  data-option-status="alm_paging_license_status"
341
  data-option-key="alm_paging_license_key"
342
- data-upgrade-url="https://connekthq.com/plugins/ajax-load-more/add-ons/paging/">
343
  <button type="button" class="activate license-btn <?php if($alm_paging_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
344
  <?php _e('Activate License', 'ajax-load-more'); ?>
345
  </button>
@@ -363,6 +429,7 @@
363
  // PRELOADED
364
  $alm_preloaded_license = get_option( 'alm_preloaded_license_key' );
365
  $alm_preloaded_status = get_option( 'alm_preloaded_license_status' );
 
366
  ?>
367
  <div class="license" id="license-preloaded">
368
  <div class="license-title">
@@ -372,7 +439,17 @@
372
  <div class="license-wrap">
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'); ?>" />
@@ -392,7 +469,7 @@
392
  data-url="<?php echo ALM_STORE_URL; ?>"
393
  data-option-status="alm_preloaded_license_status"
394
  data-option-key="alm_preloaded_license_key"
395
- data-upgrade-url="https://connekthq.com/plugins/ajax-load-more/add-ons/preloaded/">
396
  <button type="button" class="activate license-btn <?php if($alm_preloaded_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
397
  <?php _e('Activate License', 'ajax-load-more'); ?>
398
  </button>
@@ -416,6 +493,7 @@
416
  // PREVIOUS POST
417
  $alm_prev_post_license = get_option( 'alm_prev_post_license_key' );
418
  $alm_prev_post_status = get_option( 'alm_prev_post_license_status' );
 
419
  ?>
420
  <div class="license" id="license-previous-post">
421
  <div class="license-title">
@@ -423,9 +501,19 @@
423
  <h2><?php _e('Previous Post', 'ajax-load-more'); ?></h2>
424
  </div>
425
  <div class="license-wrap">
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'); ?>" />
@@ -446,7 +534,7 @@
446
  data-url="<?php echo ALM_STORE_URL; ?>"
447
  data-option-status="alm_prev_post_license_status"
448
  data-option-key="alm_prev_post_license_key"
449
- data-upgrade-url="https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/">
450
  <button type="button" class="activate license-btn <?php if($alm_prev_post_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
451
  <?php _e('Activate License', 'ajax-load-more'); ?>
452
  </button>
@@ -471,6 +559,7 @@
471
  // REST API
472
  $alm_restapi_license = get_option( 'alm_rest_api_license_key' );
473
  $alm_restapi_status = get_option( 'alm_rest_api_license_status' );
 
474
  ?>
475
  <div class="license" id="license-rest">
476
  <div class="license-title">
@@ -479,8 +568,18 @@
479
  </div>
480
  <div class="license-wrap">
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'); ?>" />
@@ -501,7 +600,7 @@
501
  data-url="<?php echo ALM_STORE_URL; ?>"
502
  data-option-status="alm_rest_api_license_status"
503
  data-option-key="alm_rest_api_license_key"
504
- data-upgrade-url="https://connekthq.com/plugins/ajax-load-more/add-ons/rest-api/">
505
  <button type="button" class="activate license-btn <?php if($alm_restapi_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
506
  <?php _e('Activate License', 'ajax-load-more'); ?>
507
  </button>
@@ -526,6 +625,7 @@
526
  // SEO
527
  $alm_seo_license = get_option( 'alm_seo_license_key' );
528
  $alm_seo_status = get_option( 'alm_seo_license_status' );
 
529
  ?>
530
  <div class="license" id="license-seo">
531
  <div class="license-title">
@@ -533,9 +633,19 @@
533
  <h2><?php _e('Search Engine Optimization', 'ajax-load-more'); ?></h2>
534
  </div>
535
  <div class="license-wrap">
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'); ?>" />
@@ -556,7 +666,7 @@
556
  data-url="<?php echo ALM_STORE_URL; ?>"
557
  data-option-status="alm_seo_license_status"
558
  data-option-key="alm_seo_license_key"
559
- data-upgrade-url="https://connekthq.com/plugins/ajax-load-more/add-ons/search-engine-optimization/">
560
  <button type="button" class="activate license-btn <?php if($alm_seo_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
561
  <?php _e('Activate License', 'ajax-load-more'); ?>
562
  </button>
@@ -583,6 +693,7 @@
583
 
584
  $alm_theme_repeaters_license = get_option( 'alm_theme_repeaters_license_key' );
585
  $alm_theme_repeaters_status = get_option( 'alm_theme_repeaters_license_status' );
 
586
  ?>
587
  <div class="license" id="license-theme_repeaters">
588
  <div class="license-title">
@@ -591,8 +702,18 @@
591
  </div>
592
  <div class="license-wrap">
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'); ?>" />
@@ -611,7 +732,7 @@
611
  <div class="license-btn-wrap"
612
  data-name="<?php echo ALM_THEME_REPEATERS_ITEM_NAME; ?>"
613
  data-url="<?php echo ALM_STORE_URL; ?>"
614
- data-upgrade-url="http://connekthq.com/plugins/ajax-load-more/add-ons/theme-repeaters/"
615
  data-option-status="alm_theme_repeaters_license_status"
616
  data-option-key="alm_theme_repeaters_license_key"
617
  >
34
  // CACHE
35
  $alm_cache_license = get_option( 'alm_cache_license_key' );
36
  $alm_cache_status = get_option( 'alm_cache_license_status' );
37
+ $alm_cache_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/cache/';
38
  ?>
39
  <div class="license" id="license-cache">
40
  <div class="license-title">
44
  <div class="license-wrap">
45
  <form method="post" action="options.php">
46
 
47
+ <?php if( $alm_cache_status !== false && $alm_cache_status == 'valid' ) { ?>
48
+ <!-- nothing -->
49
+ <?php } else { ?>
50
+ <div class="no-license">
51
+ <h4><?php _e('Don\'t have a license?', 'ajax-load-more'); ?></h4>
52
+ <p><?php _e('A valid license is required to activate and receive plugin updates directly in your WordPress dashboard', 'ajax-load-more'); ?> &rarr; <a href="<?php echo $alm_cache_url; ?>?utm_source=WP%20Admin&utm_medium=Licenses&utm_campaign=Cache" target="blank"><strong><?php _e('Purchase Now', 'ajax-load-more'); ?>!</strong></a></p>
53
+ </div>
54
+ <?php } ?>
55
+
56
+ <?php settings_fields('alm_cache_license'); ?>
57
+
58
  <label class="description offscreen" for="alm_cache_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
59
  <div class="license-key-field">
60
  <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'); ?>" />
75
  data-url="<?php echo ALM_STORE_URL; ?>"
76
  data-option-status="alm_cache_license_status"
77
  data-option-key="alm_cache_license_key"
78
+ data-upgrade-url="<?php echo $alm_cache_url; ?>">
79
  <button type="button" class="activate license-btn <?php if($alm_cache_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
80
  <?php _e('Activate License', 'ajax-load-more'); ?>
81
  </button>
99
  // Call to Actions
100
  $alm_cta_license = get_option( 'alm_cta_license_key' );
101
  $alm_cta_status = get_option( 'alm_cta_license_status' );
102
+ $alm_cta_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/call-to-actions/';
103
  ?>
104
  <div class="license" id="license-cta">
105
  <div class="license-title">
107
  <h2><?php _e('Call to Actions', 'ajax-load-more'); ?></h2>
108
  </div>
109
  <div class="license-wrap">
110
+ <form method="post" action="options.php">
111
+
112
+ <?php if( $alm_cta_status !== false && $alm_cta_status == 'valid' ) { ?>
113
+ <!-- nothing -->
114
+ <?php } else { ?>
115
+ <div class="no-license">
116
+ <h4><?php _e('Don\'t have a license?', 'ajax-load-more'); ?></h4>
117
+ <p><?php _e('A valid license is required to activate and receive plugin updates directly in your WordPress dashboard', 'ajax-load-more'); ?> &rarr; <a href="<?php echo $alm_cta_url; ?>?utm_source=WP%20Admin&utm_medium=Licenses&utm_campaign=CTA" target="blank"><strong><?php _e('Purchase Now', 'ajax-load-more'); ?>!</strong></a></p>
118
+ </div>
119
+ <?php } ?>
120
 
121
+ <?php settings_fields('alm_cta_license'); ?>
122
+
123
  <label class="description offscreen" for="alm_cta_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
124
  <div class="license-key-field">
125
  <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'); ?>" />
140
  data-url="<?php echo ALM_STORE_URL; ?>"
141
  data-option-status="alm_cta_license_status"
142
  data-option-key="alm_cta_license_key"
143
+ data-upgrade-url="<?php echo $alm_cta_url; ?>">
144
  <button type="button" class="activate license-btn <?php if($alm_cta_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
145
  <?php _e('Activate License', 'ajax-load-more'); ?>
146
  </button>
164
  // Comments
165
  $alm_comments_license = get_option( 'alm_comments_license_key' );
166
  $alm_comments_status = get_option( 'alm_comments_license_status' );
167
+ $alm_comments_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/comments/';
168
  ?>
169
  <div class="license" id="license-comments">
170
  <div class="license-title">
172
  <h2><?php _e('Comments', 'ajax-load-more'); ?></h2>
173
  </div>
174
  <div class="license-wrap">
175
+ <form method="post" action="options.php">
176
+
177
+ <?php if( $alm_comments_status !== false && $alm_comments_status == 'valid' ) { ?>
178
+ <!-- nothing -->
179
+ <?php } else { ?>
180
+ <div class="no-license">
181
+ <h4><?php _e('Don\'t have a license?', 'ajax-load-more'); ?></h4>
182
+ <p><?php _e('A valid license is required to activate and receive plugin updates directly in your WordPress dashboard', 'ajax-load-more'); ?> &rarr; <a href="<?php echo $alm_comments_url; ?>?utm_source=WP%20Admin&utm_medium=Licenses&utm_campaign=Comments" target="blank"><strong><?php _e('Purchase Now', 'ajax-load-more'); ?>!</strong></a></p>
183
+ </div>
184
+ <?php } ?>
185
 
186
+ <?php settings_fields('alm_comments_license'); ?>
187
+
188
  <label class="description offscreen" for="alm_comments_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
189
  <div class="license-key-field">
190
  <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'); ?>" />
205
  data-url="<?php echo ALM_STORE_URL; ?>"
206
  data-option-status="alm_comments_license_status"
207
  data-option-key="alm_comments_license_key"
208
+ data-upgrade-url="<?php echo $alm_comments_url; ?>">
209
  <button type="button" class="activate license-btn <?php if($alm_comments_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
210
  <?php _e('Activate License', 'ajax-load-more'); ?>
211
  </button>
230
  // Custom Repeaters
231
  $alm_unlimited_license = get_option( 'alm_unlimited_license_key' );
232
  $alm_unlimited_status = get_option( 'alm_unlimited_license_status' );
233
+ $alm_unlimited_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/custom-repeaters/';
234
  ?>
235
  <div class="license" id="license-repeaters">
236
  <div class="license-title">
240
  <div class="license-wrap">
241
  <form method="post" action="options.php">
242
 
243
+ <?php if( $alm_unlimited_status !== false && $alm_unlimited_status == 'valid' ) { ?>
244
+ <!-- nothing -->
245
+ <?php } else { ?>
246
+ <div class="no-license">
247
+ <h4><?php _e('Don\'t have a license?', 'ajax-load-more'); ?></h4>
248
+ <p><?php _e('A valid license is required to activate and receive plugin updates directly in your WordPress dashboard', 'ajax-load-more'); ?> &rarr; <a href="<?php echo $alm_unlimited_url; ?>?utm_source=WP%20Admin&utm_medium=Licenses&utm_campaign=Custom Repeaters" target="blank"><strong><?php _e('Purchase Now', 'ajax-load-more'); ?>!</strong></a></p>
249
+ </div>
250
+ <?php } ?>
251
+
252
  <?php settings_fields('alm_unlimited_license'); ?>
253
+
254
  <label class="description offscreen" for="alm_unlimited_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
255
  <div class="license-key-field">
256
  <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'); ?>" />
271
  data-url="<?php echo ALM_STORE_URL; ?>"
272
  data-option-status="alm_unlimited_license_status"
273
  data-option-key="alm_unlimited_license_key"
274
+ data-upgrade-url="<?php echo $alm_unlimited_url; ?>">
275
  <button type="button" class="activate license-btn <?php if($alm_unlimited_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
276
  <?php _e('Activate License', 'ajax-load-more'); ?>
277
  </button>
297
  // LAYOUTS
298
  $alm_layouts_license = get_option( 'alm_layouts_license_key' );
299
  $alm_layouts_status = get_option( 'alm_layouts_license_status' );
300
+ $alm_layouts_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/layouts/';
301
  ?>
302
  <div class="license" id="license-layouts">
303
  <div class="license-title">
305
  <h2><?php _e('Layouts', 'ajax-load-more'); ?></h2>
306
  </div>
307
  <div class="license-wrap">
308
+ <form method="post" action="options.php">
309
+
310
+ <?php if( $alm_layouts_status !== false && $alm_layouts_status == 'valid' ) { ?>
311
+ <!-- nothing -->
312
+ <?php } else { ?>
313
+ <div class="no-license">
314
+ <h4><?php _e('Don\'t have a license?', 'ajax-load-more'); ?></h4>
315
+ <p><?php _e('A valid license is required to activate and receive plugin updates directly in your WordPress dashboard', 'ajax-load-more'); ?> &rarr; <a href="<?php echo $alm_layouts_url; ?>?utm_source=WP%20Admin&utm_medium=Licenses&utm_campaign=Layouts" target="blank"><strong><?php _e('Purchase Now', 'ajax-load-more'); ?>!</strong></a></p>
316
+ </div>
317
+ <?php } ?>
318
+
319
  <?php settings_fields('alm_layouts_license'); ?>
320
+
321
  <label class="description offscreen" for="alm_layouts_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
322
  <div class="license-key-field">
323
  <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'); ?>" />
338
  data-url="<?php echo ALM_STORE_URL; ?>"
339
  data-option-status="alm_layouts_license_status"
340
  data-option-key="alm_layouts_license_key"
341
+ data-upgrade-url="<?php echo $alm_layouts_url; ?>">
342
  <button type="button" class="activate license-btn <?php if($alm_layouts_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
343
  <?php _e('Activate License', 'ajax-load-more'); ?>
344
  </button>
364
  // PAGING
365
  $alm_paging_license = get_option( 'alm_paging_license_key' );
366
  $alm_paging_status = get_option( 'alm_paging_license_status' );
367
+ $alm_paging_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/paging/';
368
  ?>
369
  <div class="license" id="license-paging">
370
  <div class="license-title">
373
  </div>
374
  <div class="license-wrap">
375
  <form method="post" action="options.php">
376
+
377
+ <?php if( $alm_paging_status !== false && $alm_paging_status == 'valid' ) { ?>
378
+ <!-- nothing -->
379
+ <?php } else { ?>
380
+ <div class="no-license">
381
+ <h4><?php _e('Don\'t have a license?', 'ajax-load-more'); ?></h4>
382
+ <p><?php _e('A valid license is required to activate and receive plugin updates directly in your WordPress dashboard', 'ajax-load-more'); ?> &rarr; <a href="<?php echo $alm_paging_url; ?>?utm_source=WP%20Admin&utm_medium=Licenses&utm_campaign=Paging" target="blank"><strong><?php _e('Purchase Now', 'ajax-load-more'); ?>!</strong></a></p>
383
+ </div>
384
+ <?php } ?>
385
 
386
+ <?php settings_fields('alm_paging_license'); ?>
387
+
388
  <label class="description offscreen" for="alm_paging_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
389
  <div class="license-key-field">
390
  <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'); ?>" />
405
  data-url="<?php echo ALM_STORE_URL; ?>"
406
  data-option-status="alm_paging_license_status"
407
  data-option-key="alm_paging_license_key"
408
+ data-upgrade-url="<?php echo $alm_paging_url; ?>">
409
  <button type="button" class="activate license-btn <?php if($alm_paging_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
410
  <?php _e('Activate License', 'ajax-load-more'); ?>
411
  </button>
429
  // PRELOADED
430
  $alm_preloaded_license = get_option( 'alm_preloaded_license_key' );
431
  $alm_preloaded_status = get_option( 'alm_preloaded_license_status' );
432
+ $alm_preloaded_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/preloaded/';
433
  ?>
434
  <div class="license" id="license-preloaded">
435
  <div class="license-title">
439
  <div class="license-wrap">
440
  <form method="post" action="options.php">
441
 
442
+ <?php if( $alm_preloaded_status !== false && $alm_preloaded_status == 'valid' ) { ?>
443
+ <!-- nothing -->
444
+ <?php } else { ?>
445
+ <div class="no-license">
446
+ <h4><?php _e('Don\'t have a license?', 'ajax-load-more'); ?></h4>
447
+ <p><?php _e('A valid license is required to activate and receive plugin updates directly in your WordPress dashboard', 'ajax-load-more'); ?> &rarr; <a href="<?php echo $alm_preloaded_url; ?>?utm_source=WP%20Admin&utm_medium=Licenses&utm_campaign=Preloaded" target="blank"><strong><?php _e('Purchase Now', 'ajax-load-more'); ?>!</strong></a></p>
448
+ </div>
449
+ <?php } ?>
450
+
451
  <?php settings_fields('alm_preloaded_license'); ?>
452
+
453
  <label class="description offscreen" for="alm_preloaded_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
454
  <div class="license-key-field">
455
  <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'); ?>" />
469
  data-url="<?php echo ALM_STORE_URL; ?>"
470
  data-option-status="alm_preloaded_license_status"
471
  data-option-key="alm_preloaded_license_key"
472
+ data-upgrade-url="<?php echo $alm_preloaded_url; ?>">
473
  <button type="button" class="activate license-btn <?php if($alm_preloaded_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
474
  <?php _e('Activate License', 'ajax-load-more'); ?>
475
  </button>
493
  // PREVIOUS POST
494
  $alm_prev_post_license = get_option( 'alm_prev_post_license_key' );
495
  $alm_prev_post_status = get_option( 'alm_prev_post_license_status' );
496
+ $alm_prev_post_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/';
497
  ?>
498
  <div class="license" id="license-previous-post">
499
  <div class="license-title">
501
  <h2><?php _e('Previous Post', 'ajax-load-more'); ?></h2>
502
  </div>
503
  <div class="license-wrap">
504
+ <form method="post" action="options.php">
505
+
506
+ <?php if( $alm_prev_post_status !== false && $alm_prev_post_status == 'valid' ) { ?>
507
+ <!-- nothing -->
508
+ <?php } else { ?>
509
+ <div class="no-license">
510
+ <h4><?php _e('Don\'t have a license?', 'ajax-load-more'); ?></h4>
511
+ <p><?php _e('A valid license is required to activate and receive plugin updates directly in your WordPress dashboard', 'ajax-load-more'); ?> &rarr; <a href="<?php echo $alm_prev_post_url; ?>?utm_source=WP%20Admin&utm_medium=Licenses&utm_campaign=Previous Post" target="blank"><strong><?php _e('Purchase Now', 'ajax-load-more'); ?>!</strong></a></p>
512
+ </div>
513
+ <?php } ?>
514
+
515
+ <?php settings_fields('alm_prev_post_license'); ?>
516
+
517
  <label class="description offscreen" for="alm_prev_post_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
518
  <div class="license-key-field">
519
  <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'); ?>" />
534
  data-url="<?php echo ALM_STORE_URL; ?>"
535
  data-option-status="alm_prev_post_license_status"
536
  data-option-key="alm_prev_post_license_key"
537
+ data-upgrade-url="<?php echo $alm_prev_post_url; ?>">
538
  <button type="button" class="activate license-btn <?php if($alm_prev_post_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
539
  <?php _e('Activate License', 'ajax-load-more'); ?>
540
  </button>
559
  // REST API
560
  $alm_restapi_license = get_option( 'alm_rest_api_license_key' );
561
  $alm_restapi_status = get_option( 'alm_rest_api_license_status' );
562
+ $alm_restapi_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/rest-api/';
563
  ?>
564
  <div class="license" id="license-rest">
565
  <div class="license-title">
568
  </div>
569
  <div class="license-wrap">
570
  <form method="post" action="options.php">
571
+
572
+ <?php if( $alm_restapi_status !== false && $alm_restapi_status == 'valid' ) { ?>
573
+ <!-- nothing -->
574
+ <?php } else { ?>
575
+ <div class="no-license">
576
+ <h4><?php _e('Don\'t have a license?', 'ajax-load-more'); ?></h4>
577
+ <p><?php _e('A valid license is required to activate and receive plugin updates directly in your WordPress dashboard', 'ajax-load-more'); ?> &rarr; <a href="<?php echo $alm_restapi_url; ?>?utm_source=WP%20Admin&utm_medium=Licenses&utm_campaign=RESTAPI" target="blank"><strong><?php _e('Purchase Now', 'ajax-load-more'); ?>!</strong></a></p>
578
+ </div>
579
+ <?php } ?>
580
+
581
  <?php settings_fields('alm_rest_api_license'); ?>
582
+
583
  <label class="description offscreen" for="alm_rest_api_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
584
  <div class="license-key-field">
585
  <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'); ?>" />
600
  data-url="<?php echo ALM_STORE_URL; ?>"
601
  data-option-status="alm_rest_api_license_status"
602
  data-option-key="alm_rest_api_license_key"
603
+ data-upgrade-url="<?php echo $alm_restapi_url; ?>">
604
  <button type="button" class="activate license-btn <?php if($alm_restapi_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
605
  <?php _e('Activate License', 'ajax-load-more'); ?>
606
  </button>
625
  // SEO
626
  $alm_seo_license = get_option( 'alm_seo_license_key' );
627
  $alm_seo_status = get_option( 'alm_seo_license_status' );
628
+ $alm_seo_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/search-engine-optimization/';
629
  ?>
630
  <div class="license" id="license-seo">
631
  <div class="license-title">
633
  <h2><?php _e('Search Engine Optimization', 'ajax-load-more'); ?></h2>
634
  </div>
635
  <div class="license-wrap">
636
+ <form method="post" action="options.php">
637
+
638
+ <?php if( $alm_seo_status !== false && $alm_seo_status == 'valid' ) { ?>
639
+ <!-- nothing -->
640
+ <?php } else { ?>
641
+ <div class="no-license">
642
+ <h4><?php _e('Don\'t have a license?', 'ajax-load-more'); ?></h4>
643
+ <p><?php _e('A valid license is required to activate and receive plugin updates directly in your WordPress dashboard', 'ajax-load-more'); ?> &rarr; <a href="<?php echo $alm_seo_url; ?>?utm_source=WP%20Admin&utm_medium=Licenses&utm_campaign=SEO" target="blank"><strong><?php _e('Purchase Now', 'ajax-load-more'); ?>!</strong></a></p>
644
+ </div>
645
+ <?php } ?>
646
+
647
  <?php settings_fields('alm_seo_license'); ?>
648
+
649
  <label class="description offscreen" for="alm_seo_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
650
  <div class="license-key-field">
651
  <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'); ?>" />
666
  data-url="<?php echo ALM_STORE_URL; ?>"
667
  data-option-status="alm_seo_license_status"
668
  data-option-key="alm_seo_license_key"
669
+ data-upgrade-url="<?php echo $alm_seo_url; ?>">
670
  <button type="button" class="activate license-btn <?php if($alm_seo_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
671
  <?php _e('Activate License', 'ajax-load-more'); ?>
672
  </button>
693
 
694
  $alm_theme_repeaters_license = get_option( 'alm_theme_repeaters_license_key' );
695
  $alm_theme_repeaters_status = get_option( 'alm_theme_repeaters_license_status' );
696
+ $alm_theme_repeaters_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/theme-repeaters/';
697
  ?>
698
  <div class="license" id="license-theme_repeaters">
699
  <div class="license-title">
702
  </div>
703
  <div class="license-wrap">
704
  <form method="post" action="options.php">
705
+
706
+ <?php if( $alm_theme_repeaters_status !== false && $alm_theme_repeaters_status == 'valid' ) { ?>
707
+ <!-- nothing -->
708
+ <?php } else { ?>
709
+ <div class="no-license">
710
+ <h4><?php _e('Don\'t have a license?', 'ajax-load-more'); ?></h4>
711
+ <p><?php _e('A valid license is required to activate and receive plugin updates directly in your WordPress dashboard', 'ajax-load-more'); ?> &rarr; <a href="<?php echo $alm_theme_repeaters_url; ?>?utm_source=WP%20Admin&utm_medium=Licenses&utm_campaign=Theme Repeaters" target="blank"><strong><?php _e('Purchase Now', 'ajax-load-more'); ?>!</strong></a></p>
712
+ </div>
713
+ <?php } ?>
714
+
715
+ <?php settings_fields('alm_theme_repeaters_license'); ?>
716
+
717
  <label class="description offscreen" for="alm_theme_repeaters_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
718
  <div class="license-key-field">
719
  <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'); ?>" />
732
  <div class="license-btn-wrap"
733
  data-name="<?php echo ALM_THEME_REPEATERS_ITEM_NAME; ?>"
734
  data-url="<?php echo ALM_STORE_URL; ?>"
735
+ data-upgrade-url="<?php echo $alm_theme_repeaters_url; ?>"
736
  data-option-status="alm_theme_repeaters_license_status"
737
  data-option-key="alm_theme_repeaters_license_key"
738
  >
admin/views/repeater-templates.php CHANGED
@@ -7,28 +7,44 @@
7
  <div class="cnkt-main form-table repeaters">
8
  <!-- Repeaters -->
9
  <div class="group">
10
- <?php
11
- if (has_action('alm_custom_repeaters') || has_action('alm_unlimited_repeaters')){ ?>
 
12
  <span class="toggle-all">
13
  <span class="inner-wrap">
14
  <em class="collapse"><?php _e('Collapse All', 'ajax-load-more'); ?></em>
15
  <em class="expand"><?php _e('Expand All', 'ajax-load-more'); ?></em>
16
  </span>
17
  </span>
18
- <?php } ?>
 
19
  <!-- Default Template -->
20
  <div class="row template default-repeater">
21
- <?php
22
- global $wpdb;
23
- $table_name = $wpdb->prefix . "alm";
24
- $blog_id = $wpdb->blogid;
25
- if($blog_id > 1){
26
- $filename = ALM_PATH. 'core/repeater/'. $blog_id .'/default.php';
27
- }else{
28
- $filename = ALM_PATH. 'core/repeater/default.php';
29
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
 
31
- $handle = fopen ($filename, "r");
32
  $contents = '';
33
  if(filesize ($filename) != 0){
34
  $contents = fread ($handle, filesize ($filename));
@@ -37,7 +53,7 @@
37
  ?>
38
  <h3 class="heading"><?php _e('Default Template', 'ajax-load-more'); ?></h3>
39
  <div class="expand-wrap">
40
- <div class="wrap repeater-wrap" data-name="default" data-type="default">
41
  <label class="template-title" for="template-default">
42
  <?php _e('Enter the HTML and PHP code for the default template', 'ajax-load-more'); ?>:
43
  </label>
@@ -53,16 +69,22 @@
53
  lineWrapping: true,
54
  indentUnit: 0,
55
  matchBrackets: true,
 
56
  viewportMargin: Infinity,
57
  extraKeys: {"Ctrl-Space": "autocomplete"},
58
  });
59
- </script>
 
60
  <input type="submit" value="<?php _e('Save Template', 'ajax-load-more'); ?>" class="button button-primary save-repeater" data-editor-id="template-default">
61
  <div class="saved-response">&nbsp;</div>
62
- <?php include( ALM_PATH . 'admin/includes/components/repeater-options.php'); ?>
 
 
 
63
  </div>
64
  </div>
65
  </div>
 
66
  <!-- End Default Template -->
67
 
68
  <?php
@@ -73,11 +95,12 @@
73
  echo '</div>';
74
  }
75
 
76
- if (has_action('alm_custom_repeaters')) // List custom repeaters v1
77
  do_action('alm_custom_repeaters');
78
-
79
- if (has_action('alm_unlimited_repeaters')) // List custom repeaters v2
80
  do_action('alm_unlimited_repeaters');
 
81
  ?>
82
 
83
  <script>
7
  <div class="cnkt-main form-table repeaters">
8
  <!-- Repeaters -->
9
  <div class="group">
10
+
11
+ <?php
12
+ if (has_action('alm_custom_repeaters') || has_action('alm_unlimited_repeaters')){ ?>
13
  <span class="toggle-all">
14
  <span class="inner-wrap">
15
  <em class="collapse"><?php _e('Collapse All', 'ajax-load-more'); ?></em>
16
  <em class="expand"><?php _e('Expand All', 'ajax-load-more'); ?></em>
17
  </span>
18
  </span>
19
+ <?php } ?>
20
+
21
  <!-- Default Template -->
22
  <div class="row template default-repeater">
23
+
24
+ <?php
25
+
26
+ // Check for local repeater template
27
+ $local_template = false;
28
+ $readOnly = 'false';
29
+ $template_dir = 'alm_templates';
30
+ if(is_child_theme()){
31
+ $template_theme_file = get_stylesheet_directory().'/'. $template_dir .'/default.php';
32
+ if(!file_exists($template_theme_file)){
33
+ $template_theme_file = get_template_directory().'/'. $template_dir .'/default.php';
34
+ }
35
+ }
36
+ else{
37
+ $template_theme_file = get_template_directory().'/'. $template_dir .'/default.php';
38
+ }
39
+ // if theme or child theme contains the template, use that file
40
+ if(file_exists($template_theme_file)){
41
+ $local_template = true;
42
+ $readOnly = true;
43
+ }
44
+
45
+ $filename = alm_get_default_repeater(); // Get default repeater template
46
 
47
+ $handle = fopen ($filename, "r"); // Open file
48
  $contents = '';
49
  if(filesize ($filename) != 0){
50
  $contents = fread ($handle, filesize ($filename));
53
  ?>
54
  <h3 class="heading"><?php _e('Default Template', 'ajax-load-more'); ?></h3>
55
  <div class="expand-wrap">
56
+ <div class="wrap repeater-wrap<?php if($local_template){ echo ' cm-readonly'; } ?>" data-name="default" data-type="default">
57
  <label class="template-title" for="template-default">
58
  <?php _e('Enter the HTML and PHP code for the default template', 'ajax-load-more'); ?>:
59
  </label>
69
  lineWrapping: true,
70
  indentUnit: 0,
71
  matchBrackets: true,
72
+ readOnly: <?php echo $readOnly; ?>,
73
  viewportMargin: Infinity,
74
  extraKeys: {"Ctrl-Space": "autocomplete"},
75
  });
76
+ </script>
77
+ <?php if(!$local_template){ ?>
78
  <input type="submit" value="<?php _e('Save Template', 'ajax-load-more'); ?>" class="button button-primary save-repeater" data-editor-id="template-default">
79
  <div class="saved-response">&nbsp;</div>
80
+ <?php include( ALM_PATH . 'admin/includes/components/repeater-options.php'); ?>
81
+ <?php } else { ?>
82
+ <p class="warning-callout"><?php _e('It appears you are loading the <a href="https://connekthq.com/plugins/ajax-load-more/docs/repeater-templates/#default-template" target="_blank"><b>default template</b></a> (<em>default.php</em>) from your current theme directory. To modify this template, you must edit the file directly on your server.', 'ajax-load-more'); ?></p>
83
+ <?php } ?>
84
  </div>
85
  </div>
86
  </div>
87
+
88
  <!-- End Default Template -->
89
 
90
  <?php
95
  echo '</div>';
96
  }
97
 
98
+ if (has_action('alm_custom_repeaters')){ // List custom repeaters v1
99
  do_action('alm_custom_repeaters');
100
+ }
101
+ if (has_action('alm_unlimited_repeaters')){ // List custom repeaters v2
102
  do_action('alm_unlimited_repeaters');
103
+ }
104
  ?>
105
 
106
  <script>
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.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
 
@@ -178,6 +178,7 @@ if( !class_exists('AjaxLoadMore') ):
178
  if( is_admin() ){
179
  include_once('admin/editor/editor.php');
180
  include_once('admin/admin.php');
 
181
  }
182
 
183
  }
@@ -319,7 +320,7 @@ if( !class_exists('AjaxLoadMore') ):
319
 
320
  $queryType = (isset($_GET['query_type'])) ? $_GET['query_type'] : 'standard'; // 'standard' or 'totalposts'; totalposts returns $alm_found_posts
321
 
322
- $cache_id = (isset($_GET['cache_id'])) ? $_GET['cache_id'] : '';
323
 
324
  $repeater = (isset($_GET['repeater'])) ? $_GET['repeater'] : 'default';
325
  $type = alm_get_repeater_type($repeater);
@@ -360,7 +361,19 @@ if( !class_exists('AjaxLoadMore') ):
360
 
361
  $s = (isset($_GET['search'])) ? $_GET['search'] : '';
362
  $custom_args = (isset($_GET['custom_args'])) ? $_GET['custom_args'] : '';
363
- $author_id = (isset($_GET['author'])) ? $_GET['author'] : '';
 
 
 
 
 
 
 
 
 
 
 
 
364
 
365
  // Ordering
366
  $order = (isset($_GET['order'])) ? $_GET['order'] : 'DESC';
@@ -373,8 +386,8 @@ if( !class_exists('AjaxLoadMore') ):
373
  $offset = (isset($_GET['offset'])) ? $_GET['offset'] : 0;
374
  $post_status = $_GET['post_status'];
375
  if($post_status == '') $post_status = 'publish';
376
- if($post_status != 'publish'){
377
- // If not 'publish', confirm user has rights to view these old posts.
378
  if (current_user_can( 'edit_theme_options' )){
379
  $post_status = $post_status;
380
  } else {
@@ -401,17 +414,10 @@ if( !class_exists('AjaxLoadMore') ):
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
  }
@@ -640,17 +646,40 @@ if( !class_exists('AjaxLoadMore') ):
640
  }
641
 
642
 
643
- // Previous Post Add-on
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'){
655
  $alm_total_posts = $alm_query->found_posts - $offset + $preloaded_amount;
656
  if($old_offset > 0)
@@ -662,7 +691,8 @@ if( !class_exists('AjaxLoadMore') ):
662
  $alm_loop_count = 0;
663
  }
664
 
665
- // Create cache directory
 
666
  if(!empty($cache_id) && has_action('alm_cache_create_dir')){
667
  apply_filters('alm_cache_create_dir', $cache_id, $canonical_url);
668
  $page_cache = ''; // set our page cache variable
@@ -672,9 +702,10 @@ if( !class_exists('AjaxLoadMore') ):
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;
@@ -682,23 +713,26 @@ if( !class_exists('AjaxLoadMore') ):
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
@@ -710,13 +744,14 @@ if( !class_exists('AjaxLoadMore') ):
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();
@@ -733,20 +768,21 @@ if( !class_exists('AjaxLoadMore') ):
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
 
7
  Author: Darren Cooney
8
  Twitter: @KaptonKaos
9
  Author URI: http://connekthq.com
10
+ Version: 2.12.0
11
  License: GPL
12
  Copyright: Darren Cooney & Connekt Media
13
  */
14
 
15
 
16
+ define('ALM_VERSION', '2.12.0');
17
+ define('ALM_RELEASE', 'September 5, 2016');
18
  define('ALM_STORE_URL', 'https://connekthq.com');
19
 
20
 
178
  if( is_admin() ){
179
  include_once('admin/editor/editor.php');
180
  include_once('admin/admin.php');
181
+ include_once('admin/admin-functions.php');
182
  }
183
 
184
  }
320
 
321
  $queryType = (isset($_GET['query_type'])) ? $_GET['query_type'] : 'standard'; // 'standard' or 'totalposts'; totalposts returns $alm_found_posts
322
 
323
+ $cache_id = (isset($_GET['cache_id'])) ? $_GET['cache_id'] : '';
324
 
325
  $repeater = (isset($_GET['repeater'])) ? $_GET['repeater'] : 'default';
326
  $type = alm_get_repeater_type($repeater);
361
 
362
  $s = (isset($_GET['search'])) ? $_GET['search'] : '';
363
  $custom_args = (isset($_GET['custom_args'])) ? $_GET['custom_args'] : '';
364
+
365
+ // Author
366
+ $author = (isset($_GET['author'])) ? $_GET['author'] : '';
367
+ if(!is_numeric($author) && $author !== '') {
368
+ $author = get_user_by('slug', $author); // Allow access to authors via slug
369
+ if($author){
370
+ $author_id = (isset($author)) ? $author->ID : '';
371
+ }else{
372
+ $author_id = '';
373
+ }
374
+ } else {
375
+ $author_id = $author;
376
+ }
377
 
378
  // Ordering
379
  $order = (isset($_GET['order'])) ? $_GET['order'] : 'DESC';
386
  $offset = (isset($_GET['offset'])) ? $_GET['offset'] : 0;
387
  $post_status = $_GET['post_status'];
388
  if($post_status == '') $post_status = 'publish';
389
+ if($post_status != 'publish' || $post_status != 'inherit'){
390
+ // If not 'publish', OR 'inherit' confirm user has rights to view these old posts.
391
  if (current_user_can( 'edit_theme_options' )){
392
  $post_status = $post_status;
393
  } else {
414
  $ctaData = (isset($_GET['cta'])) ? $_GET['cta'] : '';
415
  if($ctaData){
416
  $cta = true;
417
+ $cta_position = (isset($ctaData['cta_position'])) ? $ctaData['cta_position'] : 'before:1';
418
  $cta_position_array = explode(":", $cta_position);
419
  $cta_pos = (string)$cta_position_array[0];
420
  $cta_val = (string)$cta_position_array[1];
 
 
 
 
 
 
 
421
  if($cta_pos != 'after'){
422
  $cta_pos = 'before';
423
  }
646
  }
647
 
648
 
649
+ /*
650
+ * alm_prev_post_args
651
+ *
652
+ * Hijack $args and and return previous post only $args
653
+ *
654
+ * @return $args;
655
+ */
656
  if($is_previous_post == 'true' && has_action('alm_prev_post_installed')){
657
  $args = apply_filters('alm_prev_post_args', $previous_post_id, $postType);
658
+ }
659
+
660
+
661
+
662
+ /*
663
+ * alm_modify_query_args
664
+ *
665
+ * ALM Core Filter Hook
666
+ *
667
+ * @return $args;
668
+ */
669
  $args = apply_filters('alm_modify_query_args', $args, $slug); // ALM Core Filter Hook
670
 
671
+
672
+ /*
673
+ * WP_Query
674
+ *
675
+ * ALM Query
676
+ *
677
+ * @return $alm_query;
678
+ */
679
  $alm_query = new WP_Query( $args ); // WP_Query()
680
 
681
+
682
+ // If preload, update our loop count and total posts
683
  if(has_action('alm_preload_installed') && $preloaded === 'true'){
684
  $alm_total_posts = $alm_query->found_posts - $offset + $preloaded_amount;
685
  if($old_offset > 0)
691
  $alm_loop_count = 0;
692
  }
693
 
694
+
695
+ // Create cache directory + meta .txt file
696
  if(!empty($cache_id) && has_action('alm_cache_create_dir')){
697
  apply_filters('alm_cache_create_dir', $cache_id, $canonical_url);
698
  $page_cache = ''; // set our page cache variable
702
  if($queryType === 'standard'){
703
 
704
  // Run the loop
705
+
706
+ if ($alm_query->have_posts()) {
707
 
708
+ $alm_found_posts = $alm_total_posts;
709
  $alm_post_count = $alm_query->post_count;
710
  $alm_current = 0;
711
  $alm_has_cta = false;
713
  $cta_array = Array();
714
  if($cta && has_action('alm_cta_pos_array')){ // Build CTA Position Array
715
  $cta_array = apply_filters('alm_cta_pos_array', $seo_start_page, $page, $posts_per_page, $alm_post_count, $cta_val, $cta_repeat);
716
+ }
717
 
718
  ob_start();
719
 
720
+ // ALM Loop
721
+
722
  while ($alm_query->have_posts()): $alm_query->the_post();
723
 
724
  $alm_loop_count++;
725
  $alm_current++;
726
  $alm_page = $alm_page_count; // Get page number
727
  $alm_item = ($alm_page_count * $posts_per_page) - $posts_per_page + $alm_loop_count; // Get current item
728
+
729
+
730
  // Call to Action [Before]
731
+ if($cta && has_action('alm_cta_inc') && $cta_pos === 'before' && in_array($alm_current, $cta_array)){
732
+ do_action('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, false);
733
  $alm_has_cta = true;
734
+ }
735
+
736
 
737
  // Repeater Template
738
  if($theme_repeater != 'null' && has_action('alm_get_theme_repeater')){ // Theme Repeater
744
 
745
 
746
  // Call to Action [After]
747
+ if($cta && has_action('alm_cta_inc') && $cta_pos === 'after' && in_array($alm_current, $cta_array)){
748
+ do_action('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, false);
749
  $alm_has_cta = true;
750
  }
751
 
752
 
753
  endwhile; wp_reset_query();
754
+
755
  // End ALM Loop
756
 
757
  $data = ob_get_clean();
768
  'postcount' => $alm_post_count,
769
  'totalposts' => $alm_found_posts
770
  )
771
+ );
 
772
  wp_send_json($return);
773
 
774
+ } else {
775
 
776
  $return = array(
777
  'html' => null,
778
+ 'meta' => array(
779
+ 'postcount' => null,
780
+ 'totalposts' => null
781
+ )
782
+ );
783
  wp_send_json($return);
784
 
785
+ }
786
 
787
  }elseif($queryType === 'totalposts'){
788
 
core/classes/class.alm-shortcode.php CHANGED
@@ -79,7 +79,7 @@ if( !class_exists('ALM_SHORTCODE') ):
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',
@@ -124,7 +124,8 @@ if( !class_exists('ALM_SHORTCODE') ):
124
  'button_label' => apply_filters('alm_button_label', __('Older Posts', 'ajax-load-more')),
125
  'button_loading_label' => '',
126
  'container_type' => '',
127
- 'css_classes' => '',
 
128
  ), $atts));
129
 
130
 
@@ -145,11 +146,13 @@ if( !class_exists('ALM_SHORTCODE') ):
145
  //wp_enqueue_script( 'ajax-load-more-layouts' ); // Not yet :)
146
  }
147
 
148
- if($previous_post === 'true')
149
  $previous_post === true;
 
150
 
151
- if($seo === "true" || $previous_post)
152
  $transition_container = "true";
 
153
 
154
  if($restapi === 'true'){
155
  $restapi = true;
@@ -159,15 +162,16 @@ if( !class_exists('ALM_SHORTCODE') ):
159
  // Get container elements (ul | div)
160
 
161
  $container_element = 'ul';
162
- if($options['_alm_container_type'] == '2' || $previous_post)
163
  $container_element = 'div';
 
164
 
165
  // override shortcode param
166
  if($container_type){
167
  $container_element = $container_type;
168
  }
169
 
170
- // Previous post override
171
  if($previous_post){
172
  $posts_per_page = 1;
173
  $container_element = 'div';
@@ -180,29 +184,33 @@ if( !class_exists('ALM_SHORTCODE') ):
180
 
181
  // Get extra classnames
182
  $classname = '';
183
- if(isset($options['_alm_classname']))
184
  $classname = ' '.$options['_alm_classname'];
 
185
 
186
  // Get button color
187
  $btn_color = '';
188
- if(isset($options['_alm_btn_color']))
189
  $btn_color = ' '.$options['_alm_btn_color'];
 
190
 
191
  // Get paging color
192
  $paging_color = '';
193
- if(isset($options['_alm_paging_color']) && has_action('alm_paging_installed'))
194
  $paging_color = ' paging-'.$options['_alm_paging_color'];
 
195
 
196
  // Get Layouts activated
197
  $alm_layouts = '';
198
- if(has_action('alm_layouts_installed'))
199
  $alm_layouts = ' alm-layouts';
 
200
 
201
  // Get btn classnames
202
  $button_classname = '';
203
- if(isset($options['_alm_btn_classname']))
204
  $button_classname = $options['_alm_btn_classname'];
205
-
206
 
207
  // Language support
208
  $lang = defined('ICL_LANGUAGE_CODE') ? ICL_LANGUAGE_CODE : ''; // WPML - http://wpml.org
@@ -218,12 +226,20 @@ if( !class_exists('ALM_SHORTCODE') ):
218
  $posts_per_page = $wp_posts_per_page;
219
 
220
 
 
221
  $paging_container_class = '';
222
  if($paging === 'true'){
223
- $paging_container_class = ' alm-paging-wrap';
224
- $preloaded = "false";
225
- }
226
-
 
 
 
 
 
 
 
227
 
228
  // Start ALM object
229
  $ajaxloadmore = '';
@@ -235,12 +251,12 @@ if( !class_exists('ALM_SHORTCODE') ):
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
244
  // - Set other add-on params to false
245
  if($previous_post){
246
  $preloaded = false;
@@ -250,21 +266,20 @@ if( !class_exists('ALM_SHORTCODE') ):
250
  $comments = false;
251
  }
252
 
253
- // Comments
 
254
  // - Set other add-on params to false
255
  if($comments){
256
  $previous_post = false;
257
- //$preloaded = false; // Fixed in Comments v1.1
258
  $seo = false;
259
  $paging = false;
260
  $cache = false;
261
- }
262
-
263
 
264
 
265
- // ********************************
266
  // Preloaded Add-on
267
- // Retreive preloaded posts and append to ajax load more object
268
  if(has_action('alm_preload_installed') && $preloaded === 'true'){
269
 
270
  $preloaded_output = '';
@@ -275,16 +290,18 @@ if( !class_exists('ALM_SHORTCODE') ):
275
  $preloaded_amount = $posts_per_page;
276
  }
277
 
278
- // If Paging, set $preloaded_amount to $posts_per_page
 
279
  if($paging === 'true'){
280
  $preloaded_amount = $posts_per_page;
281
  $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
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];
@@ -360,7 +377,7 @@ if( !class_exists('ALM_SHORTCODE') ):
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
 
@@ -369,7 +386,7 @@ if( !class_exists('ALM_SHORTCODE') ):
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
 
@@ -384,13 +401,19 @@ if( !class_exists('ALM_SHORTCODE') ):
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
 
@@ -420,7 +443,8 @@ if( !class_exists('ALM_SHORTCODE') ):
420
  $ajaxloadmore .= $preloaded_output; // Add $preloaded_output data to $ajaxloadmore
421
  }
422
  // End Preload Posts
423
- // ********************************
 
424
 
425
  $listing_class = 'alm-listing';
426
 
@@ -433,7 +457,7 @@ if( !class_exists('ALM_SHORTCODE') ):
433
 
434
 
435
  // Cache Add-on
436
- if(has_action('alm_cache_installed') && $cache === 'true'){
437
  $cache_return = apply_filters(
438
  'alm_cache_shortcode',
439
  $cache,
@@ -581,6 +605,9 @@ if( !class_exists('ALM_SHORTCODE') ):
581
  $ajaxloadmore .= ' data-transition-container="'.$transition_container.'"';
582
  $ajaxloadmore .= ' data-images-loaded="'.$images_loaded.'"';
583
 
 
 
 
584
  $ajaxloadmore .= '>';
585
 
586
 
79
  'repeater' => 'default',
80
  'theme_repeater' => 'null',
81
  'cta' => false,
82
+ 'cta_position' => 'before:1',
83
  'cta_repeater' => 'null',
84
  'cta_theme_repeater' => 'null',
85
  'post_type' => 'post',
124
  'button_label' => apply_filters('alm_button_label', __('Older Posts', 'ajax-load-more')),
125
  'button_loading_label' => '',
126
  'container_type' => '',
127
+ 'css_classes' => '',
128
+ 'primary' => false
129
  ), $atts));
130
 
131
 
146
  //wp_enqueue_script( 'ajax-load-more-layouts' ); // Not yet :)
147
  }
148
 
149
+ if($previous_post === 'true'){
150
  $previous_post === true;
151
+ }
152
 
153
+ if($seo === "true" || $previous_post){
154
  $transition_container = "true";
155
+ }
156
 
157
  if($restapi === 'true'){
158
  $restapi = true;
162
  // Get container elements (ul | div)
163
 
164
  $container_element = 'ul';
165
+ if($options['_alm_container_type'] == '2' || $previous_post){
166
  $container_element = 'div';
167
+ }
168
 
169
  // override shortcode param
170
  if($container_type){
171
  $container_element = $container_type;
172
  }
173
 
174
+ // Previous Post
175
  if($previous_post){
176
  $posts_per_page = 1;
177
  $container_element = 'div';
184
 
185
  // Get extra classnames
186
  $classname = '';
187
+ if(isset($options['_alm_classname'])){
188
  $classname = ' '.$options['_alm_classname'];
189
+ }
190
 
191
  // Get button color
192
  $btn_color = '';
193
+ if(isset($options['_alm_btn_color'])){
194
  $btn_color = ' '.$options['_alm_btn_color'];
195
+ }
196
 
197
  // Get paging color
198
  $paging_color = '';
199
+ if(isset($options['_alm_paging_color']) && has_action('alm_paging_installed')){
200
  $paging_color = ' paging-'.$options['_alm_paging_color'];
201
+ }
202
 
203
  // Get Layouts activated
204
  $alm_layouts = '';
205
+ if(has_action('alm_layouts_installed')){
206
  $alm_layouts = ' alm-layouts';
207
+ }
208
 
209
  // Get btn classnames
210
  $button_classname = '';
211
+ if(isset($options['_alm_btn_classname'])){
212
  $button_classname = $options['_alm_btn_classname'];
213
+ }
214
 
215
  // Language support
216
  $lang = defined('ICL_LANGUAGE_CODE') ? ICL_LANGUAGE_CODE : ''; // WPML - http://wpml.org
226
  $posts_per_page = $wp_posts_per_page;
227
 
228
 
229
+ // Paging
230
  $paging_container_class = '';
231
  if($paging === 'true'){
232
+ $paging_container_class = ' alm-paging-wrap';
233
+
234
+ $preloaded = false;
235
+ // If Preloaded & Paging, pause loading by default.
236
+ // Still work to do here with SEO add-on
237
+ if($preloaded === 'true'){
238
+ $pause = 'true';
239
+ $pause_override = 'false';
240
+ }
241
+
242
+ }
243
 
244
  // Start ALM object
245
  $ajaxloadmore = '';
251
  // ALM Wrapper
252
  $id = 'ajax-load-more';
253
  if(self::$counter > 1){
254
+ $id = 'ajax-load-more-'.self::$counter; // Update ID to include counter value
255
  }
256
  $ajaxloadmore .= '<div id="'. $id .'" class="ajax-load-more-wrap'. $btn_color .''. $paging_color .''. $alm_layouts .'" data-id="" data-canonical-url="'. $canonicalURL .'" data-slug="'. $slug .'">';
257
 
258
 
259
+ // Previous Post Add-on
260
  // - Set other add-on params to false
261
  if($previous_post){
262
  $preloaded = false;
266
  $comments = false;
267
  }
268
 
269
+
270
+ // Comments Add-on
271
  // - Set other add-on params to false
272
  if($comments){
273
  $previous_post = false;
 
274
  $seo = false;
275
  $paging = false;
276
  $cache = false;
277
+ }
 
278
 
279
 
280
+ // ********************************
281
  // Preloaded Add-on
282
+ // - Get preloaded posts and append to ajax load more object
283
  if(has_action('alm_preload_installed') && $preloaded === 'true'){
284
 
285
  $preloaded_output = '';
290
  $preloaded_amount = $posts_per_page;
291
  }
292
 
293
+ // Paging Add-on
294
+ // - Set $preloaded_amount to $posts_per_page
295
  if($paging === 'true'){
296
  $preloaded_amount = $posts_per_page;
297
  $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
298
  if($paged > 1){
299
+ $preload_offset = $preloaded_amount * ($paged - 1);
300
  }
301
  }
302
 
303
+ // CTA Add-on
304
+ // - Parse $cta_position
305
  if($cta){
306
  $cta_pos_array = explode(":", $cta_position);
307
  $cta_pos = (string)$cta_pos_array[0];
377
  // Call to Action [Before]
378
  if($cta && has_action('alm_cta_inc') && $cta_pos == 'before'){
379
  if($alm_current == $cta_val){
380
+ $output .= apply_filters('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, true);
381
  }
382
  }
383
 
386
  // Call to Action [After]
387
  if($cta && has_action('alm_cta_inc') && $cta_pos == 'after'){
388
  if($alm_current == $cta_val){
389
+ $output .= apply_filters('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, true);
390
  }
391
  }
392
 
401
 
402
  $preloaded_output .= '<'.$container_element.' class="alm-listing alm-preloaded'. $classname .' '. $css_classes .'" data-total-posts="'. $alm_total_posts .'">';
403
 
404
+ if($seo === "true" && $paging === 'false'){
405
  $preloaded_output .= '<div class="alm-reveal alm-seo" data-page="1" data-url="'.$canonicalURL.'">';
406
  }
407
+ if($seo === "false" && $paging === 'true' || $seo === "true" && $paging === 'true'){
408
+ $preloaded_output .= '<div class="alm-reveal">';
409
+ }
410
 
411
  $preloaded_output .= $output;
412
 
413
+ if($seo === "false" && $paging === 'true'){
414
+ $preloaded_output .= '</div>';
415
+ }
416
+ if($seo === "true" && $paging === 'false' || $seo === "true" && $paging === 'true'){
417
  $preloaded_output .= '</div>';
418
  }
419
 
443
  $ajaxloadmore .= $preloaded_output; // Add $preloaded_output data to $ajaxloadmore
444
  }
445
  // End Preload Posts
446
+ // ********************************
447
+
448
 
449
  $listing_class = 'alm-listing';
450
 
457
 
458
 
459
  // Cache Add-on
460
+ if(has_action('alm_cache_installed') && $cache === 'true'){
461
  $cache_return = apply_filters(
462
  'alm_cache_shortcode',
463
  $cache,
605
  $ajaxloadmore .= ' data-transition-container="'.$transition_container.'"';
606
  $ajaxloadmore .= ' data-images-loaded="'.$images_loaded.'"';
607
 
608
+ if($primary !== false)
609
+ $ajaxloadmore .= ' data-primary="true"';
610
+
611
  $ajaxloadmore .= '>';
612
 
613
 
core/functions.php CHANGED
@@ -18,8 +18,9 @@ function alm_get_current_repeater($repeater, $type) {
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();
 
23
 
24
  }
25
  // If is Unlimited Repeaters (Custom Repeaters v2)
@@ -33,9 +34,9 @@ function alm_get_current_repeater($repeater, $type) {
33
  $include = ALM_UNLIMITED_PATH. 'repeaters/'.$template .'.php';
34
  }
35
 
36
- if(!file_exists($include)) //confirm file exists
37
  $include = alm_get_default_repeater();
38
-
39
  }
40
  // Default repeater
41
  else{
@@ -45,7 +46,7 @@ function alm_get_current_repeater($repeater, $type) {
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;
@@ -63,6 +64,7 @@ function alm_get_current_repeater($repeater, $type) {
63
  */
64
 
65
  function alm_get_default_repeater() {
 
66
  global $wpdb;
67
  $file = null;
68
  $template_dir = 'alm_templates';
@@ -390,11 +392,15 @@ function alm_get_canonical_url(){
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
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();
23
+ }
24
 
25
  }
26
  // If is Unlimited Repeaters (Custom Repeaters v2)
34
  $include = ALM_UNLIMITED_PATH. 'repeaters/'.$template .'.php';
35
  }
36
 
37
+ if(!file_exists($include)){ //confirm file exists
38
  $include = alm_get_default_repeater();
39
+ }
40
  }
41
  // Default repeater
42
  else{
46
  // Security check
47
  // check if $template contains relative path. So, set include to default
48
  if ( false !== strpos( $template, './' ) ) {
49
+ $include = alm_get_default_repeater();
50
  }
51
 
52
  return $include;
64
  */
65
 
66
  function alm_get_default_repeater() {
67
+
68
  global $wpdb;
69
  $file = null;
70
  $template_dir = 'alm_templates';
392
  }
393
  }
394
  // Frontpage
395
+ elseif(is_front_page()){
396
+ if(function_exists('pll_home_url')){ // Polylang support
397
+ $canonicalURL = pll_home_url();
398
+ }else{
399
+ $canonicalURL = get_home_url().'/';
400
+ }
401
  }
402
  // Home (Blog Default)
403
+ elseif(is_home()){
404
  $canonicalURL = get_permalink(get_option('page_for_posts'));
405
  }
406
  // Category
core/js/ajax-load-more.js CHANGED
@@ -24,6 +24,8 @@
24
  var alm = this;
25
  alm.AjaxLoadMore = {};
26
  alm.page = 0;
 
 
27
  alm.proceed = false;
28
  alm.disable_ajax = false;
29
  alm.init = true;
@@ -44,8 +46,7 @@
44
  alm.cache_id = alm.content.attr('data-cache-id'); // cache value
45
  alm.cache_path = alm.content.attr('data-cache-path'); // cache path
46
  alm.cache_logged_in = alm.content.attr('data-cache-logged-in'); // cache logged in (settings)
47
- alm.repeater = alm.content.attr('data-repeater');
48
-
49
  alm.theme_repeater = alm.content.attr('data-theme-repeater');
50
 
51
  alm.scroll_distance = parseInt(alm.content.attr('data-scroll-distance'));
@@ -91,15 +92,17 @@
91
  alm.restapi_template_id = alm.content.attr('data-restapi-template-id');
92
  alm.restapi_debug = alm.content.attr('data-restapi-debug');
93
 
94
- alm.seo = alm.content.attr('data-seo'); // true | false
95
 
96
  alm.preloaded = alm.content.attr('data-preloaded'); // true | false
97
- alm.preloaded_amount = alm.content.attr('data-preloaded-amount'); // 0 - ?
98
 
99
  alm.paging = alm.content.attr('data-paging'); // is paging enabled
100
  alm.paging_controls = alm.content.attr('data-paging-controls');
101
  alm.paging_show_at_most = alm.content.attr('data-paging-show-at-most');
102
- alm.paging_classes = alm.content.attr('data-paging-classes');
 
 
103
 
104
  /* REST API */
105
  if(alm.restapi === 'true'){
@@ -115,7 +118,8 @@
115
  }else{
116
  alm.restapi = false;
117
  }
118
- /* /end REST API */
 
119
 
120
  /* Paging */
121
  if(alm.paging === 'true'){
@@ -136,7 +140,7 @@
136
  }else{
137
  alm.paging_controls = false;
138
  }
139
- /* /end Paging */
140
 
141
 
142
  /* Cache */
@@ -147,29 +151,31 @@
147
  if (alm.cache_logged_in === undefined){
148
  alm.cache_logged_in = false;
149
  }
150
- /* /end Cache */
 
151
 
152
  /* Comments */
153
  if (alm.comments_per_page === undefined){
154
  alm.comments_per_page = '5';
155
  }
156
- /* /end Comments
 
157
 
158
  /* Preloaded */
159
- /* Check preloaded posts to ensure posts_per_page > alm.total_posts - if posts_per_page <= total_posts disable ajax load more */
160
  if (alm.preloaded === 'true'){
161
  alm.preload_wrap = alm.content.prev('.alm-preloaded');
162
- alm.total_posts = parseInt(alm.preload_wrap.attr('data-total-posts'));
163
  if (alm.preloaded_amount === undefined){
164
  alm.preloaded_amount = false;
165
  }
166
- if (alm.total_posts <= alm.preloaded_amount){
167
  alm.disable_ajax = true;
168
  }
169
  }else{
170
  alm.preloaded = 'false';
171
  }
172
- /* /end Preloaded */
173
 
174
 
175
  /* SEO */
@@ -178,10 +184,7 @@
178
  }
179
  if (alm.seo === 'true'){
180
  alm.seo = true; // Convert string to boolean
181
- }
182
- if($(".ajax-load-more-wrap").length > 1){
183
- alm.seo = false;
184
- }
185
 
186
  alm.permalink = alm.content.attr('data-seo-permalink');
187
  alm.pageview = alm.content.attr('data-seo-pageview');
@@ -207,7 +210,7 @@
207
  }else{
208
  alm.start_page = 1;
209
  }
210
- /* /end SEO */
211
 
212
 
213
  /* Previous Post */
@@ -231,7 +234,7 @@
231
  alm.previous_post_scroll = alm.content.attr('data-previous-post-scroll');
232
  alm.previous_post_scroll_speed = alm.content.attr('data-previous-post-scroll-speed');
233
  alm.previous_post_scroll_top = alm.content.attr('data-previous-post-scrolltop');
234
- /* /end Previous Post */
235
 
236
 
237
  /* Define offset */
@@ -249,6 +252,9 @@
249
  }
250
  if (alm.preloaded === 'true' && alm.seo && alm.start_page > 0){ // SEO + Preloaded
251
  alm.pause = false;
 
 
 
252
  }
253
 
254
 
@@ -264,8 +270,7 @@
264
  /* Max number of pages to load while scrolling */
265
  if (alm.max_pages === undefined){
266
  alm.max_pages = 5;
267
- }
268
-
269
  if (alm.max_pages === 0){
270
  alm.max_pages = 10000;
271
  }
@@ -331,6 +336,7 @@
331
  }else{
332
  alm.button_class = ' ' + alm.content.attr('data-button-class');
333
  }
 
334
 
335
  /* Define scroll event */
336
  if (alm.content.attr('data-scroll') === undefined){
@@ -340,6 +346,7 @@
340
  }else{
341
  alm.scroll = true;
342
  }
 
343
 
344
  /* Parse multiple Post Types */
345
  alm.post_type = alm.content.attr('data-post-type');
@@ -363,7 +370,7 @@
363
 
364
 
365
 
366
- /* alm.AjaxLoadMore.loadPosts()
367
  *
368
  * The function to get posts via Ajax
369
  * @since 2.0.0
@@ -409,7 +416,7 @@
409
 
410
 
411
 
412
- /* alm.AjaxLoadMore.ajax()
413
  *
414
  * Ajax Load Moe Ajax function
415
  * @since 2.6.0
@@ -502,23 +509,37 @@
502
  alm.button.addClass('loading');
503
  }
504
  },
505
- success: function (results) {
506
- var data;
 
 
 
 
 
507
  // loop results to get data from each
508
- $.each(results, function(e){
509
- var result = results[e];
510
  if(alm.restapi_debug === 'true'){ // If debug
511
  console.log(result);
512
  }
513
  data += alm_template(result);
514
- });
515
- alm.AjaxLoadMore.success(data, true); // Send data to alm object
 
 
 
 
 
 
 
 
 
516
  }
517
  });
518
  }
519
 
520
  // Standard ALM
521
- else{
522
  $.ajax({
523
  type: "GET",
524
  url: alm_localize.ajaxurl,
@@ -592,12 +613,16 @@
592
  }
593
 
594
  },
 
595
  error: function (jqXHR, textStatus, errorThrown) {
596
  alm.AjaxLoadMore.error(jqXHR, textStatus, errorThrown);
597
  }
 
598
  });
599
  }
600
- };
 
 
601
 
602
  // If pagination enabled, run totalposts query
603
  if(alm.paging){
@@ -606,43 +631,47 @@
606
 
607
 
608
 
609
- /* alm.AjaxLoadMore.success()
610
  *
611
  * Success function after loading data
612
  * @since 2.6.0
613
  */
614
 
615
  alm.AjaxLoadMore.success = function (data, is_cache) {
616
-
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);
643
-
644
- } else {
645
-
646
  // Is pagination
647
  if (total > 0) {
648
  alm.el = $('<div class="alm-reveal"/>');
@@ -650,7 +679,7 @@
650
  $('.alm-paging-content', alm.el).append(alm.data).hide();
651
  alm.content.append(alm.el);
652
  alm.content.parent().removeClass('loading'); // Remove loading class from main container
653
- alm.resetBtnText();
654
 
655
  $('.alm-paging-content', alm.el).fadeIn( alm.speed, 'alm_easeInOutQuad', function(){
656
  var paddingT = parseInt(alm.content.css('padding-top')),
@@ -660,11 +689,10 @@
660
  $.fn.almFadePageControls(alm.btnWrap);
661
  }
662
  });
663
- }
664
-
665
  }
666
 
667
- // ALM Empty - triggers if zero results were returned
668
  if(total === 0){
669
  if ($.isFunction($.fn.almEmpty)) {
670
  $.fn.almEmpty(alm);
@@ -675,12 +703,14 @@
675
  if(alm.isPaged){
676
  alm.posts_per_page = alm.content.attr('data-posts-per-page'); // Reset our posts per page variable
677
  alm.page = alm.start_page - 1; // Set our new page #
678
- }
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
@@ -688,28 +718,27 @@
688
  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+'"/>');
689
  alm.el.append(alm.data).hide();
690
 
691
- }else{
692
 
693
  if(!alm.transition_container){
694
- // If transiton container == false
 
695
  alm.data.hide();
696
  alm.el = alm.data;
697
 
698
- }else{
699
- // Standard transition container
700
 
701
- // if start_page is > 1
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
@@ -741,6 +770,7 @@
741
  alm.el.append(div).hide(); // Add data to .alm-listing wrapper
742
  }
743
  }
 
744
 
745
  else {
746
  // If is SEO and paged, or preloaded.
@@ -759,7 +789,7 @@
759
  alm.el = $('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+'page/'+ pagenum +'/" data-page="'+ pagenum +'" />');
760
  }
761
  }else{
762
- // Basic ALM ****
763
  alm.el = $('<div class="alm-reveal" />');
764
  }
765
 
@@ -768,7 +798,7 @@
768
  // SEO [Page 1]
769
  alm.el = $('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+'" data-page="1" />');
770
  }else{
771
- // Basic ALM ****
772
  alm.el = $('<div class="alm-reveal" />');
773
  }
774
  }
@@ -778,24 +808,20 @@
778
  }
779
  }
780
 
 
781
  alm.content.append(alm.el);
782
 
783
- if (alm.transition === 'fade') { // Fade transition
 
784
  if(alm.images_loaded === 'true'){
785
  alm.el.almWaitForImages().done(function(){
786
  alm.el.fadeIn(alm.speed, 'alm_easeInOutQuad', function () {
787
  alm.loading = false;
788
  if(!alm.paging){
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');
796
- }
797
- }
798
- if ($.isFunction($.fn.almSEO) && alm.seo) { // ALM SEO
799
  $.fn.almSEO(alm);
800
  }
801
  });
@@ -805,62 +831,44 @@
805
  alm.loading = false;
806
  if(!alm.paging){
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');
814
- }
815
- }
816
- if ($.isFunction($.fn.almSEO) && alm.seo) { // ALM SEO
817
  $.fn.almSEO(alm);
818
  }
819
  });
820
  }
821
 
822
- }else if(alm.transition === 'none') { // No transition
823
  if(alm.images_loaded === 'true'){
824
  alm.el.almWaitForImages().done(function(){
825
  alm.el.show();
826
- if ($.isFunction($.fn.almSEO) && alm.seo) { // ALM SEO
827
  $.fn.almSEO(alm);
828
  }
829
  });
830
  }else{
831
  alm.el.show();
832
- if ($.isFunction($.fn.almSEO) && alm.seo) { // ALM SEO
833
  $.fn.almSEO(alm);
834
  }
835
  }
836
  alm.loading = false;
837
  if(!alm.paging){
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');
845
- }
846
- }
847
 
848
- }else { // Slide transition
849
  if(alm.images_loaded === 'true'){
850
  alm.el.almWaitForImages().done(function(){
851
  alm.el.slideDown(alm.speed, 'alm_easeInOutQuad', function () {
852
  alm.loading = false;
853
  if(!alm.paging){
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');
861
- }
862
- }
863
- if ($.isFunction($.fn.almSEO) && alm.seo) { // ALM SEO
864
  $.fn.almSEO(alm);
865
  }
866
  });
@@ -870,23 +878,19 @@
870
  alm.loading = false;
871
  if(!alm.paging){
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');
879
- }
880
- }
881
- if ($.isFunction($.fn.almSEO) && alm.seo) { // ALM SEO
882
  $.fn.almSEO(alm);
883
  }
884
  });
885
  }
886
  }
 
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
@@ -901,7 +905,9 @@
901
  if ($.isFunction($.fn.almSEO) && alm.seo) { // ALM SEO
902
  $.fn.almSEO(alm);
903
  }
904
- }
 
 
905
  }
906
 
907
  // ALM Complete
@@ -914,42 +920,40 @@
914
  $.fn.almComplete(alm);
915
  }
916
  }
 
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(){
924
- $.fn.almDone(alm)
925
- }, alm.speed + 10);
926
- }
927
- }
 
 
928
 
929
  } else {
 
 
930
 
931
  if(!alm.paging){
932
  alm.button.delay(alm.speed).removeClass('loading').addClass('done');
933
- alm.resetBtnText();
934
- }
935
-
936
- // ALM Done
937
- if ($.isFunction($.fn.almDone) && !alm.init) {
938
- $.fn.almDone(alm);
939
- }
940
 
941
- alm.loading = false;
942
- alm.finished = true;
943
  }
944
 
945
- // Destroy After param
 
946
  if (alm.destroy_after !== undefined && alm.destroy_after !== '') {
947
- var currentPage = alm.page + 1; // Add 1 because alm.page starts at 0
948
-
949
  if(alm.preload){
950
  currentPage++;
951
- }
952
-
953
  if(currentPage == alm.destroy_after){ // - Disable ALM is page = alm.destroy_after value
954
  alm.disable_ajax = true;
955
  if(!alm.paging){
@@ -957,18 +961,46 @@
957
  }
958
  }
959
  }
960
- alm.init = false;
961
-
 
 
962
  };
963
 
964
 
965
 
966
- /* alm.AjaxLoadMore.getPreviousPost()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
967
  *
968
  * Get the previous post ID via ajax
969
  * @since 2.7.4
970
  */
971
  alm.fetchingPreviousPost = false;
 
972
  alm.AjaxLoadMore.getPreviousPost = function () {
973
  alm.fetchingPreviousPost = true;
974
  $.ajax({
@@ -987,11 +1019,7 @@
987
  alm.previous_post_title = data.prev_title;
988
  }else{
989
  if(!data.has_previous_post){
990
- alm.finished = true;
991
- alm.button.addClass('done');
992
- if ($.isFunction($.fn.almDone)) { // ALM Done
993
- $.fn.almDone(alm);
994
- }
995
  }
996
  }
997
  if($.isFunction($.fn.almSetPreviousPost)){
@@ -1009,12 +1037,33 @@
1009
 
1010
 
1011
 
1012
- /* alm.resetBtnText()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1013
  *
1014
  * Resets the loading button text after loading has completed
1015
  * @since 2.8.4
1016
  */
1017
- alm.resetBtnText = function(){
1018
  if(alm.button_loading_label !== false){ // Reset button text
1019
  if(!alm.paging){
1020
  alm.button.text(alm.button_label);
@@ -1024,7 +1073,7 @@
1024
 
1025
 
1026
 
1027
- /* alm.AjaxLoadMore.error()
1028
  *
1029
  * Error function after failed data
1030
  * @since 2.6.0
@@ -1034,7 +1083,7 @@
1034
  alm.loading = false;
1035
  if(!alm.paging){
1036
  alm.button.removeClass('loading');
1037
- alm.resetBtnText();
1038
  }
1039
  console.log(errorThrown);
1040
  };
@@ -1132,7 +1181,7 @@
1132
  alm.button.addClass('done');
1133
  }else{
1134
  if (alm.pause === 'true') {
1135
- alm.button.text(alm.button_label);
1136
  alm.loading = false;
1137
  } else {
1138
  alm.AjaxLoadMore.loadPosts();
@@ -1163,21 +1212,24 @@
1163
  alm.page = current;
1164
 
1165
  // We will eventually use this function to combine Paging + Preloaded add-ons
1166
- var alm_paging_init = false;
1167
  // If is paging init and preloaded, grab preloaded data, and append it .alm-reveal
1168
- if(alm_paging_init && alm.preloaded === 'true'){
1169
 
1170
- var data = $('.alm-preloaded', alm.el).html(); // Content of preloaded page
1171
  $('.alm-preloaded', alm.el).remove();
1172
  alm.preloaded_amount = 0; // Reset
1173
- alm.AjaxLoadMore.success(data, false); // Skip post loading and go right to success() for display
 
 
 
1174
 
1175
  }else{
1176
-
1177
  alm.AjaxLoadMore.loadPosts();
1178
 
1179
  }
1180
- };
1181
 
1182
 
1183
 
@@ -1205,6 +1257,19 @@
1205
  return alm; // Return the entire alm object
1206
  };
1207
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1208
 
1209
 
1210
  //Custom easing function
@@ -1311,6 +1376,7 @@
1311
 
1312
 
1313
 
 
1314
  /*! almWaitForImages
1315
  jQuery Plugin
1316
  v2.0.2
24
  var alm = this;
25
  alm.AjaxLoadMore = {};
26
  alm.page = 0;
27
+ alm.posts = 0;
28
+ alm.totalposts = 0;
29
  alm.proceed = false;
30
  alm.disable_ajax = false;
31
  alm.init = true;
46
  alm.cache_id = alm.content.attr('data-cache-id'); // cache value
47
  alm.cache_path = alm.content.attr('data-cache-path'); // cache path
48
  alm.cache_logged_in = alm.content.attr('data-cache-logged-in'); // cache logged in (settings)
49
+ alm.repeater = alm.content.attr('data-repeater');
 
50
  alm.theme_repeater = alm.content.attr('data-theme-repeater');
51
 
52
  alm.scroll_distance = parseInt(alm.content.attr('data-scroll-distance'));
92
  alm.restapi_template_id = alm.content.attr('data-restapi-template-id');
93
  alm.restapi_debug = alm.content.attr('data-restapi-debug');
94
 
95
+ alm.seo = alm.content.attr('data-seo'); // true | false
96
 
97
  alm.preloaded = alm.content.attr('data-preloaded'); // true | false
98
+ alm.preloaded_amount = alm.content.attr('data-preloaded-amount'); // 0
99
 
100
  alm.paging = alm.content.attr('data-paging'); // is paging enabled
101
  alm.paging_controls = alm.content.attr('data-paging-controls');
102
  alm.paging_show_at_most = alm.content.attr('data-paging-show-at-most');
103
+ alm.paging_classes = alm.content.attr('data-paging-classes');
104
+ alm.paging_init = true;
105
+
106
 
107
  /* REST API */
108
  if(alm.restapi === 'true'){
118
  }else{
119
  alm.restapi = false;
120
  }
121
+ /* End REST API */
122
+
123
 
124
  /* Paging */
125
  if(alm.paging === 'true'){
140
  }else{
141
  alm.paging_controls = false;
142
  }
143
+ /* End Paging */
144
 
145
 
146
  /* Cache */
151
  if (alm.cache_logged_in === undefined){
152
  alm.cache_logged_in = false;
153
  }
154
+ /* End Cache */
155
+
156
 
157
  /* Comments */
158
  if (alm.comments_per_page === undefined){
159
  alm.comments_per_page = '5';
160
  }
161
+ /* End Comments */
162
+
163
 
164
  /* Preloaded */
165
+ /* If posts_per_page <= preloaded_total_posts disable ajax load more */
166
  if (alm.preloaded === 'true'){
167
  alm.preload_wrap = alm.content.prev('.alm-preloaded');
168
+ alm.preloaded_total_posts = parseInt(alm.preload_wrap.attr('data-total-posts'));
169
  if (alm.preloaded_amount === undefined){
170
  alm.preloaded_amount = false;
171
  }
172
+ if (alm.preloaded_total_posts <= alm.preloaded_amount){
173
  alm.disable_ajax = true;
174
  }
175
  }else{
176
  alm.preloaded = 'false';
177
  }
178
+ /* End Preloaded */
179
 
180
 
181
  /* SEO */
184
  }
185
  if (alm.seo === 'true'){
186
  alm.seo = true; // Convert string to boolean
187
+ }
 
 
 
188
 
189
  alm.permalink = alm.content.attr('data-seo-permalink');
190
  alm.pageview = alm.content.attr('data-seo-pageview');
210
  }else{
211
  alm.start_page = 1;
212
  }
213
+ /* End SEO */
214
 
215
 
216
  /* Previous Post */
234
  alm.previous_post_scroll = alm.content.attr('data-previous-post-scroll');
235
  alm.previous_post_scroll_speed = alm.content.attr('data-previous-post-scroll-speed');
236
  alm.previous_post_scroll_top = alm.content.attr('data-previous-post-scrolltop');
237
+ /* End Previous Post */
238
 
239
 
240
  /* Define offset */
252
  }
253
  if (alm.preloaded === 'true' && alm.seo && alm.start_page > 0){ // SEO + Preloaded
254
  alm.pause = false;
255
+ }
256
+ if(alm.preloaded === 'true' && alm.paging){
257
+ alm.pause = true;
258
  }
259
 
260
 
270
  /* Max number of pages to load while scrolling */
271
  if (alm.max_pages === undefined){
272
  alm.max_pages = 5;
273
+ }
 
274
  if (alm.max_pages === 0){
275
  alm.max_pages = 10000;
276
  }
336
  }else{
337
  alm.button_class = ' ' + alm.content.attr('data-button-class');
338
  }
339
+
340
 
341
  /* Define scroll event */
342
  if (alm.content.attr('data-scroll') === undefined){
346
  }else{
347
  alm.scroll = true;
348
  }
349
+
350
 
351
  /* Parse multiple Post Types */
352
  alm.post_type = alm.content.attr('data-post-type');
370
 
371
 
372
 
373
+ /* loadPosts()
374
  *
375
  * The function to get posts via Ajax
376
  * @since 2.0.0
416
 
417
 
418
 
419
+ /* ajax()
420
  *
421
  * Ajax Load Moe Ajax function
422
  * @since 2.6.0
509
  alm.button.addClass('loading');
510
  }
511
  },
512
+ success: function (results) {
513
+ var data,
514
+ html = results.html,
515
+ meta = results.meta,
516
+ postcount = meta.postcount,
517
+ totalposts = meta.totalposts;
518
+
519
  // loop results to get data from each
520
+ $.each(html, function(e){
521
+ var result = html[e];
522
  if(alm.restapi_debug === 'true'){ // If debug
523
  console.log(result);
524
  }
525
  data += alm_template(result);
526
+ });
527
+
528
+ // Create object to pass to success()
529
+ var obj = {
530
+ 'html' : data,
531
+ 'meta' : {
532
+ 'postcount' : postcount,
533
+ 'totalposts' : totalposts
534
+ },
535
+ }
536
+ alm.AjaxLoadMore.success(obj, false); // Send data
537
  }
538
  });
539
  }
540
 
541
  // Standard ALM
542
+ else {
543
  $.ajax({
544
  type: "GET",
545
  url: alm_localize.ajaxurl,
613
  }
614
 
615
  },
616
+
617
  error: function (jqXHR, textStatus, errorThrown) {
618
  alm.AjaxLoadMore.error(jqXHR, textStatus, errorThrown);
619
  }
620
+
621
  });
622
  }
623
+ };
624
+
625
+
626
 
627
  // If pagination enabled, run totalposts query
628
  if(alm.paging){
631
 
632
 
633
 
634
+ /* success()
635
  *
636
  * Success function after loading data
637
  * @since 2.6.0
638
  */
639
 
640
  alm.AjaxLoadMore.success = function (data, is_cache) {
641
+
642
  if(alm.previous_post){ // Get previous page data
643
  alm.AjaxLoadMore.getPreviousPost();
644
+ }
645
+
646
  var html, meta, total;
647
 
648
+ if(is_cache){
649
+ // If content is cached don't look for json data - we won't be querying the DB.
650
+ html = data;
651
+ }else{
652
+ // Standard ALM query results
653
  html = data.html;
654
  meta = data.meta;
655
+ alm.posts = alm.posts + meta.postcount;
656
+ total = meta.postcount;
657
+ alm.totalposts = meta.totalposts;
658
+ if(alm.preloaded === 'true'){
659
+ alm.totalposts = alm.totalposts - alm.preloaded_amount;
660
+ }
661
  }
662
 
663
+ alm.data = $(html); // data converted to an object
664
+
665
+ if(is_cache){ // If cache, get the length of the data object
666
+ total = alm.data.length;
667
+ }
668
 
669
+ // First Run
670
+ if (alm.init) {
 
 
 
 
 
671
 
672
+ if(!alm.paging){
673
+ alm.button.text(alm.button_label);
674
+ } else {
 
 
 
675
  // Is pagination
676
  if (total > 0) {
677
  alm.el = $('<div class="alm-reveal"/>');
679
  $('.alm-paging-content', alm.el).append(alm.data).hide();
680
  alm.content.append(alm.el);
681
  alm.content.parent().removeClass('loading'); // Remove loading class from main container
682
+ alm.AjaxLoadMore.resetBtnText();
683
 
684
  $('.alm-paging-content', alm.el).fadeIn( alm.speed, 'alm_easeInOutQuad', function(){
685
  var paddingT = parseInt(alm.content.css('padding-top')),
689
  $.fn.almFadePageControls(alm.btnWrap);
690
  }
691
  });
692
+ }
 
693
  }
694
 
695
+ // ALM Empty
696
  if(total === 0){
697
  if ($.isFunction($.fn.almEmpty)) {
698
  $.fn.almEmpty(alm);
703
  if(alm.isPaged){
704
  alm.posts_per_page = alm.content.attr('data-posts-per-page'); // Reset our posts per page variable
705
  alm.page = alm.start_page - 1; // Set our new page #
706
+ }
707
+
708
+ }
709
+
710
 
 
711
  if (total > 0) {
712
 
713
+ // Results!
714
  if(!alm.paging){
715
 
716
  if(alm.previous_post){ // If Previous Post, create container and append data
718
  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+'"/>');
719
  alm.el.append(alm.data).hide();
720
 
721
+ } else {
722
 
723
  if(!alm.transition_container){
724
+ // No transiton container
725
+
726
  alm.data.hide();
727
  alm.el = alm.data;
728
 
729
+ } else {
730
+ // Standard container
731
 
732
+ // SEO
 
733
  if (alm.init && alm.start_page > 1){
734
+ // loop through items and break into separate alm-reveal divs for paging
735
 
736
  var data = [],
737
  posts_per_page = parseInt(alm.posts_per_page);
738
 
739
+ if(alm.cta === 'true'){
740
  // If CTA, +1 to posts_per_page to offset the CTA template and correct the display
741
+ posts_per_page = posts_per_page + 1;
 
 
742
  }
743
 
744
  var pages = Math.ceil(total/posts_per_page); // slice data array into pages
770
  alm.el.append(div).hide(); // Add data to .alm-listing wrapper
771
  }
772
  }
773
+ // End SEO -- /
774
 
775
  else {
776
  // If is SEO and paged, or preloaded.
789
  alm.el = $('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+'page/'+ pagenum +'/" data-page="'+ pagenum +'" />');
790
  }
791
  }else{
792
+ // Basic ALM
793
  alm.el = $('<div class="alm-reveal" />');
794
  }
795
 
798
  // SEO [Page 1]
799
  alm.el = $('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+'" data-page="1" />');
800
  }else{
801
+ // Basic ALM
802
  alm.el = $('<div class="alm-reveal" />');
803
  }
804
  }
808
  }
809
  }
810
 
811
+ // Append alm.el to ALM container
812
  alm.content.append(alm.el);
813
 
814
+ // Transition
815
+ if (alm.transition === 'fade') { // Fade
816
  if(alm.images_loaded === 'true'){
817
  alm.el.almWaitForImages().done(function(){
818
  alm.el.fadeIn(alm.speed, 'alm_easeInOutQuad', function () {
819
  alm.loading = false;
820
  if(!alm.paging){
821
  alm.button.delay(alm.speed).removeClass('loading');
822
+ alm.AjaxLoadMore.resetBtnText();
823
  }
824
+ if ($.isFunction($.fn.almSEO) && alm.seo) {
 
 
 
 
 
 
825
  $.fn.almSEO(alm);
826
  }
827
  });
831
  alm.loading = false;
832
  if(!alm.paging){
833
  alm.button.delay(alm.speed).removeClass('loading');
834
+ alm.AjaxLoadMore.resetBtnText();
835
+ }
836
+ if ($.isFunction($.fn.almSEO) && alm.seo) {
 
 
 
 
 
 
837
  $.fn.almSEO(alm);
838
  }
839
  });
840
  }
841
 
842
+ }else if(alm.transition === 'none') { // None
843
  if(alm.images_loaded === 'true'){
844
  alm.el.almWaitForImages().done(function(){
845
  alm.el.show();
846
+ if ($.isFunction($.fn.almSEO) && alm.seo) {
847
  $.fn.almSEO(alm);
848
  }
849
  });
850
  }else{
851
  alm.el.show();
852
+ if ($.isFunction($.fn.almSEO) && alm.seo) {
853
  $.fn.almSEO(alm);
854
  }
855
  }
856
  alm.loading = false;
857
  if(!alm.paging){
858
  alm.button.delay(alm.speed).removeClass('loading');
859
+ alm.AjaxLoadMore.resetBtnText();
860
+ }
 
 
 
 
 
 
861
 
862
+ }else { // Slide
863
  if(alm.images_loaded === 'true'){
864
  alm.el.almWaitForImages().done(function(){
865
  alm.el.slideDown(alm.speed, 'alm_easeInOutQuad', function () {
866
  alm.loading = false;
867
  if(!alm.paging){
868
  alm.button.delay(alm.speed).removeClass('loading');
869
+ alm.AjaxLoadMore.resetBtnText();
870
+ }
871
+ if ($.isFunction($.fn.almSEO) && alm.seo) {
 
 
 
 
 
 
872
  $.fn.almSEO(alm);
873
  }
874
  });
878
  alm.loading = false;
879
  if(!alm.paging){
880
  alm.button.delay(alm.speed).removeClass('loading');
881
+ alm.AjaxLoadMore.resetBtnText();
882
+ }
883
+ if ($.isFunction($.fn.almSEO) && alm.seo) {
 
 
 
 
 
 
884
  $.fn.almSEO(alm);
885
  }
886
  });
887
  }
888
  }
889
+ // End Transition -- /
890
 
891
+ } else {
892
+
893
+ // Paging
894
  if(!alm.init){
895
  $('.alm-paging-content', alm.el).html('').append(alm.data).almWaitForImages().done(function(){ // Remove loading class and append data
896
  $('.alm-paging-loading', alm.el).fadeOut(alm.speed); // Fade out loader
905
  if ($.isFunction($.fn.almSEO) && alm.seo) { // ALM SEO
906
  $.fn.almSEO(alm);
907
  }
908
+ }
909
+ // End Paging -- /
910
+
911
  }
912
 
913
  // ALM Complete
920
  $.fn.almComplete(alm);
921
  }
922
  }
923
+ // End ALM Complete -- /
924
 
925
  // ALM Done
926
+ if(!alm.cache){
927
+ // Not Cache & Previous Post
928
+ if(alm.posts >= alm.totalposts && !alm.previous_post){
929
+ alm.AjaxLoadMore.triggerDone();
930
+ }
931
+ }else{ // Cache
932
+ if(total < alm.posts_per_page){
933
+ alm.AjaxLoadMore.triggerDone();
934
+ }
935
+ }
936
+ // End ALM Done -- /
937
 
938
  } else {
939
+
940
+ // No Results!
941
 
942
  if(!alm.paging){
943
  alm.button.delay(alm.speed).removeClass('loading').addClass('done');
944
+ alm.AjaxLoadMore.resetBtnText();
945
+ }
946
+ alm.AjaxLoadMore.triggerDone(); // ALM Done
 
 
 
 
947
 
 
 
948
  }
949
 
950
+
951
+ // Destroy After
952
  if (alm.destroy_after !== undefined && alm.destroy_after !== '') {
953
+ var currentPage = alm.page + 1; // Add 1 because alm.page starts at 0
 
954
  if(alm.preload){
955
  currentPage++;
956
+ }
 
957
  if(currentPage == alm.destroy_after){ // - Disable ALM is page = alm.destroy_after value
958
  alm.disable_ajax = true;
959
  if(!alm.paging){
961
  }
962
  }
963
  }
964
+ // End Destroy After -- /
965
+
966
+ alm.init = false;
967
+
968
  };
969
 
970
 
971
 
972
+ /* pagingPreloadedInit()
973
+ *
974
+ * First run for Paging + Preloaded add-ons
975
+ * Moves preloaded content into ajax container
976
+ * @since 2.11.3
977
+ */
978
+ alm.AjaxLoadMore.pagingPreloadedInit = function(data){
979
+ alm.el = $('<div class="alm-reveal"/>');
980
+ alm.el.append('<div class="alm-paging-content">'+data+'</div><div class="alm-paging-loading"></div>');
981
+ alm.content.append(alm.el);
982
+ alm.content.parent().removeClass('loading'); // Remove loading class from main container
983
+ alm.AjaxLoadMore.resetBtnText();
984
+
985
+ var paddingT = parseInt(alm.content.css('padding-top')),
986
+ paddingB = parseInt(alm.content.css('padding-bottom'));
987
+ alm.content.css('height', alm.el.height() + paddingT + paddingB + 'px');
988
+
989
+ if ($.isFunction($.fn.almFadePageControls)){
990
+ $.fn.almFadePageControls(alm.btnWrap);
991
+ }
992
+ }
993
+
994
+
995
+
996
+
997
+ /* getPreviousPost()
998
  *
999
  * Get the previous post ID via ajax
1000
  * @since 2.7.4
1001
  */
1002
  alm.fetchingPreviousPost = false;
1003
+
1004
  alm.AjaxLoadMore.getPreviousPost = function () {
1005
  alm.fetchingPreviousPost = true;
1006
  $.ajax({
1019
  alm.previous_post_title = data.prev_title;
1020
  }else{
1021
  if(!data.has_previous_post){
1022
+ alm.AjaxLoadMore.triggerDone();
 
 
 
 
1023
  }
1024
  }
1025
  if($.isFunction($.fn.almSetPreviousPost)){
1037
 
1038
 
1039
 
1040
+ /* triggerDone()
1041
+ *
1042
+ * Fires the almDone() function (if available).
1043
+ * @since 2.11.3
1044
+ */
1045
+ alm.AjaxLoadMore.triggerDone = function(){
1046
+ alm.loading = false;
1047
+ alm.finished = true;
1048
+ if(!alm.paging){
1049
+ alm.button.addClass('done');
1050
+ }
1051
+ if ($.isFunction($.fn.almDone)) {
1052
+ // Delay done until after animation
1053
+ setTimeout(function(){
1054
+ $.fn.almDone(alm)
1055
+ }, alm.speed + 10);
1056
+ }
1057
+ };
1058
+
1059
+
1060
+
1061
+ /* resetBtnText()
1062
  *
1063
  * Resets the loading button text after loading has completed
1064
  * @since 2.8.4
1065
  */
1066
+ alm.AjaxLoadMore.resetBtnText = function(){
1067
  if(alm.button_loading_label !== false){ // Reset button text
1068
  if(!alm.paging){
1069
  alm.button.text(alm.button_label);
1073
 
1074
 
1075
 
1076
+ /* error()
1077
  *
1078
  * Error function after failed data
1079
  * @since 2.6.0
1083
  alm.loading = false;
1084
  if(!alm.paging){
1085
  alm.button.removeClass('loading');
1086
+ alm.AjaxLoadMore.resetBtnText();
1087
  }
1088
  console.log(errorThrown);
1089
  };
1181
  alm.button.addClass('done');
1182
  }else{
1183
  if (alm.pause === 'true') {
1184
+ alm.button.text(alm.button_label);
1185
  alm.loading = false;
1186
  } else {
1187
  alm.AjaxLoadMore.loadPosts();
1212
  alm.page = current;
1213
 
1214
  // We will eventually use this function to combine Paging + Preloaded add-ons
1215
+ //var alm_paging_init = false;
1216
  // If is paging init and preloaded, grab preloaded data, and append it .alm-reveal
1217
+ if(alm.paging_init && alm.preloaded === 'true'){
1218
 
1219
+ var data = $('.alm-preloaded .alm-reveal', alm.el).html(); // Content of preloaded page
1220
  $('.alm-preloaded', alm.el).remove();
1221
  alm.preloaded_amount = 0; // Reset
1222
+ //alm.AjaxLoadMore.success(data, true); // Skip post loading and go right to success() for display
1223
+ alm.AjaxLoadMore.pagingPreloadedInit(data);
1224
+ alm.paging_init = false;
1225
+ alm.init = false;
1226
 
1227
  }else{
1228
+
1229
  alm.AjaxLoadMore.loadPosts();
1230
 
1231
  }
1232
+ };
1233
 
1234
 
1235
 
1257
  return alm; // Return the entire alm object
1258
  };
1259
 
1260
+
1261
+
1262
+ /* $.fn.almTriggerClick()
1263
+ *
1264
+ * Trigger ajaxloadmore from any element on page
1265
+ *
1266
+ * @since 2.12.0
1267
+ * @return null
1268
+ */
1269
+ $.fn.almTriggerClick = function(){
1270
+ alm.button.trigger('click');
1271
+ };
1272
+
1273
 
1274
 
1275
  //Custom easing function
1376
 
1377
 
1378
 
1379
+
1380
  /*! almWaitForImages
1381
  jQuery Plugin
1382
  v2.0.2
core/js/ajax-load-more.min.js CHANGED
@@ -1,6 +1,6 @@
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;}
6
  if(alm.preloaded==='true'){alm.pause=true;}}else{alm.paging=false;}
@@ -8,11 +8,10 @@ if(alm.paging_controls==='true'){alm.paging_controls=true;}else{alm.paging_contr
8
  if(alm.cache===undefined){alm.cache=false;}
9
  if(alm.cache_logged_in===undefined){alm.cache_logged_in=false;}
10
  if(alm.comments_per_page===undefined){alm.comments_per_page='5';}
11
- if(alm.preloaded==='true'){alm.preload_wrap=alm.content.prev('.alm-preloaded');alm.total_posts=parseInt(alm.preload_wrap.attr('data-total-posts'));if(alm.preloaded_amount===undefined){alm.preloaded_amount=false;}
12
- if(alm.total_posts<=alm.preloaded_amount){alm.disable_ajax=true;}}else{alm.preloaded='false';}
13
  if(alm.seo===undefined){alm.seo=false;}
14
  if(alm.seo==='true'){alm.seo=true;}
15
- if($(".ajax-load-more-wrap").length>1){alm.seo=false;}
16
  alm.permalink=alm.content.attr('data-seo-permalink');alm.pageview=alm.content.attr('data-seo-pageview');alm.start_page=alm.content.attr('data-seo-start-page');if(alm.start_page){alm.seo_scroll=alm.content.attr('data-seo-scroll');alm.seo_scroll_speed=alm.content.attr('data-seo-scroll-speed');alm.seo_scrolltop=alm.content.attr('data-seo-scrolltop');alm.isPaged=false;if(alm.start_page>1){alm.isPaged=true;alm.posts_per_page=alm.start_page*alm.posts_per_page;}
17
  if(alm.paging){alm.posts_per_page=alm.orginal_posts_per_page;}}else{alm.start_page=1;}
18
  if(alm.previous_post==='true'){alm.previous_post=true;alm.previous_post_permalink='';alm.previous_post_title='';}else{alm.previous_post=false;}
@@ -21,6 +20,7 @@ if(alm.previous_post_taxonomy===undefined){alm.previous_post_taxonomy='';}
21
  alm.previous_post_title_template=alm.content.attr('data-previous-post-title-template');alm.siteTitle=alm.content.attr('data-previous-post-site-title');alm.siteTagline=alm.content.attr('data-previous-post-site-tagline');alm.previous_post_pageview=alm.content.attr('data-previous-post-pageview');alm.previous_post_scroll=alm.content.attr('data-previous-post-scroll');alm.previous_post_scroll_speed=alm.content.attr('data-previous-post-scroll-speed');alm.previous_post_scroll_top=alm.content.attr('data-previous-post-scrolltop');if(alm.content.attr('data-offset')===undefined){alm.offset=0;}else{alm.offset=alm.content.attr('data-offset');}
22
  if(alm.pause===undefined||(alm.seo&&alm.start_page>1)){alm.pause=false;}
23
  if(alm.preloaded==='true'&&alm.seo&&alm.start_page>0){alm.pause=false;}
 
24
  if(alm.repeater===undefined){alm.repeater='default';}
25
  if(alm.theme_repeater===undefined){alm.theme_repeater='null';}
26
  if(alm.max_pages===undefined){alm.max_pages=5;}
@@ -40,17 +40,18 @@ alm.AjaxLoadMore.loadPosts=function(){if(!alm.disable_ajax){if(!alm.paging){alm.
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" />');}
@@ -58,27 +59,23 @@ div.append(data[k]);div=$(div);alm.el.append(div).hide();}}
58
  else{if(alm.seo&&alm.page>0||alm.preloaded==='true'){var p=0;if(alm.preloaded==='true'){p=1;}
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++;}
78
  if(currentPage==alm.destroy_after){alm.disable_ajax=true;if(!alm.paging){alm.button.delay(alm.speed).fadeOut(alm.speed);}}}
79
- alm.init=false;};alm.fetchingPreviousPost=false;alm.AjaxLoadMore.getPreviousPost=function(){alm.fetchingPreviousPost=true;$.ajax({type:"GET",dataType:"JSON",url:alm_localize.ajaxurl,data:{action:'alm_query_previous_post',id:alm.previous_post_id,taxonomy:alm.previous_post_taxonomy},success:function(data){if(data.has_previous_post){alm.content.attr('data-previous-post-id',data.prev_id);alm.previous_post_permalink=data.prev_permalink;alm.previous_post_title=data.prev_title;}else{if(!data.has_previous_post){alm.finished=true;alm.button.addClass('done');if($.isFunction($.fn.almDone)){$.fn.almDone(alm);}}}
 
80
  if($.isFunction($.fn.almSetPreviousPost)){$.fn.almSetPreviousPost(alm,data.current_id,data.permalink,data.title);}
81
- alm.fetchingPreviousPost=false;},error:function(jqXHR,textStatus,errorThrown){alm.AjaxLoadMore.error(jqXHR,textStatus,errorThrown);alm.fetchingPreviousPost=false;}});};alm.resetBtnText=function(){if(alm.button_loading_label!==false){if(!alm.paging){alm.button.text(alm.button_label);}}};alm.AjaxLoadMore.error=function(jqXHR,textStatus,errorThrown){alm.loading=false;if(!alm.paging){alm.button.removeClass('loading');alm.resetBtnText();}
 
82
  console.log(errorThrown);};if(!alm.paging&&!alm.fetchingPreviousPost){alm.button.on('click',function(){if(alm.pause==='true'){alm.pause=false;alm.pause_override=false;alm.AjaxLoadMore.loadPosts();}
83
  if(!alm.loading&&!alm.finished&&!$(this).hasClass('done')){alm.loading=true;alm.page++;alm.AjaxLoadMore.loadPosts();}});}
84
  if(alm.paging){alm.window.resize(function(){if($.isFunction($.fn.almOnWindowResize)){setTimeout(function(){$.fn.almOnWindowResize(alm);},250);}});}
@@ -87,7 +84,7 @@ return alm.visible;};if(alm.scroll&&!alm.paging){alm.window.bind("scroll touchst
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];}}
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.posts=0;alm.totalposts=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');alm.paging_init=true;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;}
6
  if(alm.preloaded==='true'){alm.pause=true;}}else{alm.paging=false;}
8
  if(alm.cache===undefined){alm.cache=false;}
9
  if(alm.cache_logged_in===undefined){alm.cache_logged_in=false;}
10
  if(alm.comments_per_page===undefined){alm.comments_per_page='5';}
11
+ if(alm.preloaded==='true'){alm.preload_wrap=alm.content.prev('.alm-preloaded');alm.preloaded_total_posts=parseInt(alm.preload_wrap.attr('data-total-posts'));if(alm.preloaded_amount===undefined){alm.preloaded_amount=false;}
12
+ if(alm.preloaded_total_posts<=alm.preloaded_amount){alm.disable_ajax=true;}}else{alm.preloaded='false';}
13
  if(alm.seo===undefined){alm.seo=false;}
14
  if(alm.seo==='true'){alm.seo=true;}
 
15
  alm.permalink=alm.content.attr('data-seo-permalink');alm.pageview=alm.content.attr('data-seo-pageview');alm.start_page=alm.content.attr('data-seo-start-page');if(alm.start_page){alm.seo_scroll=alm.content.attr('data-seo-scroll');alm.seo_scroll_speed=alm.content.attr('data-seo-scroll-speed');alm.seo_scrolltop=alm.content.attr('data-seo-scrolltop');alm.isPaged=false;if(alm.start_page>1){alm.isPaged=true;alm.posts_per_page=alm.start_page*alm.posts_per_page;}
16
  if(alm.paging){alm.posts_per_page=alm.orginal_posts_per_page;}}else{alm.start_page=1;}
17
  if(alm.previous_post==='true'){alm.previous_post=true;alm.previous_post_permalink='';alm.previous_post_title='';}else{alm.previous_post=false;}
20
  alm.previous_post_title_template=alm.content.attr('data-previous-post-title-template');alm.siteTitle=alm.content.attr('data-previous-post-site-title');alm.siteTagline=alm.content.attr('data-previous-post-site-tagline');alm.previous_post_pageview=alm.content.attr('data-previous-post-pageview');alm.previous_post_scroll=alm.content.attr('data-previous-post-scroll');alm.previous_post_scroll_speed=alm.content.attr('data-previous-post-scroll-speed');alm.previous_post_scroll_top=alm.content.attr('data-previous-post-scrolltop');if(alm.content.attr('data-offset')===undefined){alm.offset=0;}else{alm.offset=alm.content.attr('data-offset');}
21
  if(alm.pause===undefined||(alm.seo&&alm.start_page>1)){alm.pause=false;}
22
  if(alm.preloaded==='true'&&alm.seo&&alm.start_page>0){alm.pause=false;}
23
+ if(alm.preloaded==='true'&&alm.paging){alm.pause=true;}
24
  if(alm.repeater===undefined){alm.repeater='default';}
25
  if(alm.theme_repeater===undefined){alm.theme_repeater='null';}
26
  if(alm.max_pages===undefined){alm.max_pages=5;}
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,html=results.html,meta=results.meta,postcount=meta.postcount,totalposts=meta.totalposts;$.each(html,function(e){var result=html[e];if(alm.restapi_debug==='true'){console.log(result);}
44
+ data+=alm_template(result);});var obj={'html':data,'meta':{'postcount':postcount,'totalposts':totalposts},}
45
+ alm.AjaxLoadMore.success(obj,false);}});}
46
  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);}
47
  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');}
48
  alm.AjaxLoadMore.success=function(data,is_cache){if(alm.previous_post){alm.AjaxLoadMore.getPreviousPost();}
49
+ var html,meta,total;if(is_cache){html=data;}else{html=data.html;meta=data.meta;alm.posts=alm.posts+meta.postcount;total=meta.postcount;alm.totalposts=meta.totalposts;if(alm.preloaded==='true'){alm.totalposts=alm.totalposts-alm.preloaded_amount;}}
50
+ alm.data=$(html);if(is_cache){total=alm.data.length;}
51
+ 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.AjaxLoadMore.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);}});}}
52
  if(total===0){if($.isFunction($.fn.almEmpty)){$.fn.almEmpty(alm);}}
53
  if(alm.isPaged){alm.posts_per_page=alm.content.attr('data-posts-per-page');alm.page=alm.start_page-1;}}
54
+ 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(alm.cta==='true'){posts_per_page=posts_per_page+1;}
55
  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));}
56
  alm.el=alm.content;for(var k=0;k<data.length;k++){var p=0;if(alm.preloaded==='true'){p=1;}
57
  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" />');}
59
  else{if(alm.seo&&alm.page>0||alm.preloaded==='true'){var p=0;if(alm.preloaded==='true'){p=1;}
60
  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" />');}}
61
  alm.el.append(alm.data).hide();}}}
62
+ 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.AjaxLoadMore.resetBtnText();}
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.AjaxLoadMore.resetBtnText();}
 
 
64
  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);}}
65
+ alm.loading=false;if(!alm.paging){alm.button.delay(alm.speed).removeClass('loading');alm.AjaxLoadMore.resetBtnText();}}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.AjaxLoadMore.resetBtnText();}
66
+ 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.AjaxLoadMore.resetBtnText();}
 
 
 
67
  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);}
68
  if($.isFunction($.fn.almSEO)&&alm.seo){$.fn.almSEO(alm);}});}else{if($.isFunction($.fn.almSEO)&&alm.seo){$.fn.almSEO(alm);}}}
69
  if($.isFunction($.fn.almComplete)){if(alm.images_loaded==='true'){alm.el.almWaitForImages().done(function(){$.fn.almComplete(alm);});}else{$.fn.almComplete(alm);}}
70
+ if(!alm.cache){if(alm.posts>=alm.totalposts&&!alm.previous_post){alm.AjaxLoadMore.triggerDone();}}else{if(total<alm.posts_per_page){alm.AjaxLoadMore.triggerDone();}}}else{if(!alm.paging){alm.button.delay(alm.speed).removeClass('loading').addClass('done');alm.AjaxLoadMore.resetBtnText();}
71
+ alm.AjaxLoadMore.triggerDone();}
 
72
  if(alm.destroy_after!==undefined&&alm.destroy_after!==''){var currentPage=alm.page+1;if(alm.preload){currentPage++;}
73
  if(currentPage==alm.destroy_after){alm.disable_ajax=true;if(!alm.paging){alm.button.delay(alm.speed).fadeOut(alm.speed);}}}
74
+ alm.init=false;};alm.AjaxLoadMore.pagingPreloadedInit=function(data){alm.el=$('<div class="alm-reveal"/>');alm.el.append('<div class="alm-paging-content">'+data+'</div><div class="alm-paging-loading"></div>');alm.content.append(alm.el);alm.content.parent().removeClass('loading');alm.AjaxLoadMore.resetBtnText();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);}}
75
+ alm.fetchingPreviousPost=false;alm.AjaxLoadMore.getPreviousPost=function(){alm.fetchingPreviousPost=true;$.ajax({type:"GET",dataType:"JSON",url:alm_localize.ajaxurl,data:{action:'alm_query_previous_post',id:alm.previous_post_id,taxonomy:alm.previous_post_taxonomy},success:function(data){if(data.has_previous_post){alm.content.attr('data-previous-post-id',data.prev_id);alm.previous_post_permalink=data.prev_permalink;alm.previous_post_title=data.prev_title;}else{if(!data.has_previous_post){alm.AjaxLoadMore.triggerDone();}}
76
  if($.isFunction($.fn.almSetPreviousPost)){$.fn.almSetPreviousPost(alm,data.current_id,data.permalink,data.title);}
77
+ alm.fetchingPreviousPost=false;},error:function(jqXHR,textStatus,errorThrown){alm.AjaxLoadMore.error(jqXHR,textStatus,errorThrown);alm.fetchingPreviousPost=false;}});};alm.AjaxLoadMore.triggerDone=function(){alm.loading=false;alm.finished=true;if(!alm.paging){alm.button.addClass('done');}
78
+ if($.isFunction($.fn.almDone)){setTimeout(function(){$.fn.almDone(alm)},alm.speed+10);}};alm.AjaxLoadMore.resetBtnText=function(){if(alm.button_loading_label!==false){if(!alm.paging){alm.button.text(alm.button_label);}}};alm.AjaxLoadMore.error=function(jqXHR,textStatus,errorThrown){alm.loading=false;if(!alm.paging){alm.button.removeClass('loading');alm.AjaxLoadMore.resetBtnText();}
79
  console.log(errorThrown);};if(!alm.paging&&!alm.fetchingPreviousPost){alm.button.on('click',function(){if(alm.pause==='true'){alm.pause=false;alm.pause_override=false;alm.AjaxLoadMore.loadPosts();}
80
  if(!alm.loading&&!alm.finished&&!$(this).hasClass('done')){alm.loading=true;alm.page++;alm.AjaxLoadMore.loadPosts();}});}
81
  if(alm.paging){alm.window.resize(function(){if($.isFunction($.fn.almOnWindowResize)){setTimeout(function(){$.fn.almOnWindowResize(alm);},250);}});}
84
  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();}}}});}
85
  if(!alm.paging&&!alm.previous_post){if(alm.disable_ajax){alm.finished=true;alm.button.addClass('done');}else{if(alm.pause==='true'){alm.button.text(alm.button_label);alm.loading=false;}else{alm.AjaxLoadMore.loadPosts();}}}
86
  if(alm.previous_post){alm.AjaxLoadMore.getPreviousPost();alm.loading=false;}
87
+ setTimeout(function(){alm.proceed=true;},300);$.fn.almUpdateCurrentPage=function(current,obj,alm){alm.page=current;if(alm.paging_init&&alm.preloaded==='true'){var data=$('.alm-preloaded .alm-reveal',alm.el).html();$('.alm-preloaded',alm.el).remove();alm.preloaded_amount=0;alm.AjaxLoadMore.pagingPreloadedInit(data);alm.paging_init=false;alm.init=false;}else{alm.AjaxLoadMore.loadPosts();}};$.fn.almGetParentContainer=function(){return alm.el.closest('#ajax-load-more');};$.fn.almGetObj=function(){return alm;};$.fn.almTriggerClick=function(){alm.button.trigger('click');};$.easing.alm_easeInOutQuad=function(x,t,b,c,d){if((t/=d/2)<1){return c/2*t*t+b;}
88
  return-c/2*((--t)*(t-2)-1)+b;};};$.fn.almFilter=function(transition,speed,data){$(".ajax-load-more-wrap").each(function(e){var el=$(this);if(transition==='slide'){el.slideUp(speed,function(){$('.alm-listing',el).html('');$('.alm-btn-wrap',el).remove();el.fadeIn(speed);$.fn.almSetFilters(el,data);});}else if(transition==='fade'){el.fadeOut(speed,function(){$('.alm-listing',el).html('');$('.alm-btn-wrap',el).remove();el.fadeIn(speed);$.fn.almSetFilters(el,data);});}else{$('.alm-listing',el).html('');$('.alm-btn-wrap',el).remove();el.fadeIn(speed);$.fn.almSetFilters(el,data);}});};$.fn.almSetFilters=function(el,data){$.each(data,function(key,value){key=key.replace(/\W+/g,'-').replace(/([a-z\d])([A-Z])/g,'$1-$2');$('.alm-listing',el).attr('data-'+key,value);});if($.isFunction($.fn.almFilterComplete)){$.fn.almFilterComplete();}
89
  $(".ajax-load-more-wrap").ajaxloadmore();};$.fn.ajaxloadmore=function(){return this.each(function(e){$(this).data('alm',new $.ajaxloadmore($(this),e));});};if($(".ajax-load-more-wrap").length){$(".ajax-load-more-wrap").ajaxloadmore();}})(jQuery);;(function(factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory);}else if(typeof exports==='object'){module.exports=factory(require('jquery'));}else{factory(jQuery);}}(function($){var eventNamespace='almWaitForImages';$.almWaitForImages={hasImageProperties:['backgroundImage','listStyleImage','borderImage','borderCornerImage','cursor'],hasImageAttributes:['srcset']};$.expr[':']['has-src']=function(obj){return $(obj).is('img[src][src!=""]');};$.expr[':'].uncached=function(obj){if(!$(obj).is(':has-src')){return false;}
90
  return!obj.complete;};$.fn.almWaitForImages=function(){var allImgsLength=0;var allImgsLoaded=0;var deferred=$.Deferred();var finishedCallback;var eachCallback;var waitForAll;if($.isPlainObject(arguments[0])){waitForAll=arguments[0].waitForAll;eachCallback=arguments[0].each;finishedCallback=arguments[0].finished;}else{if(arguments.length===1&&$.type(arguments[0])==='boolean'){waitForAll=arguments[0];}else{finishedCallback=arguments[0];eachCallback=arguments[1];waitForAll=arguments[2];}}
lang/ajax-load-more.pot CHANGED
@@ -1,198 +1,198 @@
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"
16
  "X-Poedit-SearchPath-0: ..\n"
17
 
18
- #: ../admin/admin.php:92 ../admin/admin.php:123 ../admin/admin.php:681
19
- #: ../admin/admin.php:725 ../admin/admin.php:775
20
  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: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
 
43
- #: ../admin/admin.php:155
44
  msgid "Applying layout"
45
  msgstr ""
46
 
47
- #: ../admin/admin.php:156 ../admin/views/repeater-templates.php:220
48
  msgid "Template Updated"
49
  msgstr ""
50
 
51
- #: ../admin/admin.php:266
52
  msgid ""
53
  "[Ajax Load More] Error opening default repeater template - Please check your "
54
  "file path and ensure your server is configured to allow Ajax Load More to "
55
  "read and write files within the /ajax-load-more/core/repeater directory"
56
  msgstr ""
57
 
58
- #: ../admin/admin.php:270
59
  msgid ""
60
  "[Ajax Load More] Error updating default repeater template - Please check "
61
  "your file path and ensure your server is configured to allow Ajax Load More "
62
  "to read and write files within the /ajax-load-more/core/repeater directory."
63
  msgstr ""
64
 
65
- #: ../admin/admin.php:639
66
  msgid "[Ajax Load More] Unable to open repeater template - "
67
  msgstr ""
68
 
69
- #: ../admin/admin.php:643
70
  msgid "[Ajax Load More] Error saving repeater template - "
71
  msgstr ""
72
 
73
- #: ../admin/admin.php:676
74
  msgid "Error Writing File"
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
 
87
- #: ../admin/admin.php:877
88
  msgid "Disable CSS"
89
  msgstr ""
90
 
91
- #: ../admin/admin.php:885
92
  msgid "Button/Loading Style"
93
  msgstr ""
94
 
95
- #: ../admin/admin.php:893
96
  msgid "Button Classes"
97
  msgstr ""
98
 
99
- #: ../admin/admin.php:901
100
  msgid "Ajax Security"
101
  msgstr ""
102
 
103
- #: ../admin/admin.php:909
104
  msgid "Top of Page"
105
  msgstr ""
106
 
107
- #: ../admin/admin.php:917
108
  msgid "Dynamic Content"
109
  msgstr ""
110
 
111
- #: ../admin/admin.php:925
112
  msgid "Editor Button"
113
  msgstr ""
114
 
115
- #: ../admin/admin.php:933
116
  msgid "Error Notices"
117
  msgstr ""
118
 
119
- #: ../admin/admin.php:1004
120
  msgid ""
121
  "Customize the user experience of Ajax Load More by updating the fields below."
122
  msgstr ""
123
 
124
- #: ../admin/admin.php:1017
125
  msgid "The following settings affect the WordPress admin area only."
126
  msgstr ""
127
 
128
- #: ../admin/admin.php:1048
129
  msgid "I want to use my own CSS styles."
130
  msgstr ""
131
 
132
- #: ../admin/admin.php:1048
133
  msgid "View Ajax Load More CSS"
134
  msgstr ""
135
 
136
- #: ../admin/admin.php:1068
137
  msgid "Hide shortcode button in WYSIWYG editor."
138
  msgstr ""
139
 
140
- #: ../admin/admin.php:1089
141
  msgid ""
142
  "Display error messaging regarding repeater template updates in the browser "
143
  "console."
144
  msgstr ""
145
 
146
- #: ../admin/admin.php:1110
147
  msgid ""
148
  "Disable dynamic population of categories, tags and authors in the Shortcode "
149
  "Builder.<span style=\"display:block\">Recommended if you have an "
150
  "extraordinary number of categories, tags and/or authors."
151
  msgstr ""
152
 
153
- #: ../admin/admin.php:1131 ../admin/admin.php:1134
154
  msgid "Ajax Posts Here"
155
  msgstr ""
156
 
157
- #: ../admin/admin.php:1136
158
  msgid "You can modify the container type when building a shortcode."
159
  msgstr ""
160
 
161
- #: ../admin/admin.php:1153
162
  msgid ""
163
  "Add classes to Ajax Load More container - classes are applied globally and "
164
  "will appear with every instance of Ajax Load More. <span style=\"display:"
165
  "block\">You can also add classes when building a shortcode.</span>"
166
  msgstr ""
167
 
168
- #: ../admin/admin.php:1215
169
  msgid ""
170
  "Select an Ajax loading style - you can choose between a <strong>button</"
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,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:481
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:944
478
  msgid "Relation:"
479
  msgstr ""
480
 
@@ -484,17 +484,17 @@ msgid ""
484
  msgstr ""
485
 
486
  #: ../admin/shortcode-builder/shortcode-builder.php:1
487
- #: ../admin/views/examples.php:9 ../admin/views/repeater-templates.php:14
488
  msgid "Collapse All"
489
  msgstr ""
490
 
491
  #: ../admin/shortcode-builder/shortcode-builder.php:1
492
- #: ../admin/views/examples.php:9 ../admin/views/repeater-templates.php:15
493
  msgid "Expand All"
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 ""
@@ -505,6 +505,23 @@ 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
@@ -513,27 +530,10 @@ msgstr ""
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
 
@@ -552,7 +552,7 @@ 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
 
@@ -568,8 +568,7 @@ msgstr ""
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
@@ -588,147 +587,139 @@ msgstr ""
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,94 +728,94 @@ msgid ""
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,78 +824,78 @@ msgid ""
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,415 +903,416 @@ msgid ""
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,25 +1328,25 @@ msgid ""
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
@@ -1367,7 +1359,7 @@ msgid ""
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
 
@@ -1381,7 +1373,7 @@ msgid ""
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 ""
@@ -1436,7 +1428,7 @@ msgid ""
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
 
@@ -1450,7 +1442,7 @@ msgid ""
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 ""
@@ -1561,68 +1553,97 @@ msgid ""
1561
  "href=\"plugins.php\">WP Plugins dashboard</a>."
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
 
@@ -1634,60 +1655,69 @@ msgstr ""
1634
  msgid "The library of editable templates for use within your theme"
1635
  msgstr ""
1636
 
1637
- #: ../admin/views/repeater-templates.php:38
1638
  msgid "Default Template"
1639
  msgstr ""
1640
 
1641
- #: ../admin/views/repeater-templates.php:42
1642
  msgid "Enter the HTML and PHP code for the default template"
1643
  msgstr ""
1644
 
1645
- #: ../admin/views/repeater-templates.php:60
1646
  msgid "Save Template"
1647
  msgstr ""
1648
 
1649
- #: ../admin/views/repeater-templates.php:128
 
 
 
 
 
 
 
 
 
1650
  msgid "Saving template..."
1651
  msgstr ""
1652
 
1653
- #: ../admin/views/repeater-templates.php:161
1654
  msgid "Something went wrong and the data could not be saved."
1655
  msgstr ""
1656
 
1657
- #: ../admin/views/repeater-templates.php:199
1658
  msgid "Updating template..."
1659
  msgstr ""
1660
 
1661
- #: ../admin/views/repeater-templates.php:251
1662
  msgid "Templating Help"
1663
  msgstr ""
1664
 
1665
- #: ../admin/views/repeater-templates.php:253
1666
  msgid "What is a repeater template?"
1667
  msgstr ""
1668
 
1669
- #: ../admin/views/repeater-templates.php:254
1670
  msgid ""
1671
  "A repeater template is a snippet of code that will execute over and over "
1672
  "within a <a href=\"http://codex.wordpress.org/The_Loop\" target=\"_blank"
1673
  "\">WordPress loop</a>.</p>"
1674
  msgstr ""
1675
 
1676
- #: ../admin/views/repeater-templates.php:257
1677
  msgid "Can I include PHP in the repeater template?"
1678
  msgstr ""
1679
 
1680
- #: ../admin/views/repeater-templates.php:258
1681
  msgid ""
1682
  "Yes, PHP and core WordPress functions such as, <code>the_title()</code> and "
1683
  "<code>the_permalink()</code> are required.</p>"
1684
  msgstr ""
1685
 
1686
- #: ../admin/views/repeater-templates.php:261
1687
  msgid "Tips and Tricks"
1688
  msgstr ""
1689
 
1690
- #: ../admin/views/repeater-templates.php:263
1691
  msgid ""
1692
  "Always open and close your templates with an HTML element. In some rare "
1693
  "cases data may not be displayed if not wrapped in HTML.<br/>e.g. <code>&lt;"
@@ -1763,11 +1793,11 @@ msgstr ""
1763
  msgid "Clear all Shortcode Builder settings"
1764
  msgstr ""
1765
 
1766
- #: ../ajax-load-more.php:195
1767
  msgid "Settings"
1768
  msgstr ""
1769
 
1770
- #: ../core/functions.php:471
1771
  msgid "Pages:"
1772
  msgstr ""
1773
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Ajax Load More\n"
4
+ "POT-Creation-Date: 2016-09-05 21:37-0500\n"
5
+ "PO-Revision-Date: 2016-09-05 21:37-0500\n"
6
+ "Last-Translator: Darren Cooney <darren.cooney@gmail.com>\n"
7
  "Language-Team: \n"
8
  "Language: en_CA\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.6.7\n"
13
  "X-Poedit-Basepath: .\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Poedit-KeywordsList: __;_e\n"
16
  "X-Poedit-SearchPath-0: ..\n"
17
 
18
+ #: ../admin/admin.php:94 ../admin/admin.php:125 ../admin/admin.php:683
19
+ #: ../admin/admin.php:727 ../admin/admin.php:777
20
  msgid "You don't belong here."
21
  msgstr ""
22
 
23
+ #: ../admin/admin.php:155 ../admin/editor/editor-build.php:67
24
+ #: ../admin/views/licenses.php:63 ../admin/views/licenses.php:128
25
+ #: ../admin/views/licenses.php:193 ../admin/views/licenses.php:259
26
+ #: ../admin/views/licenses.php:326 ../admin/views/licenses.php:393
27
+ #: ../admin/views/licenses.php:458 ../admin/views/licenses.php:522
28
+ #: ../admin/views/licenses.php:588 ../admin/views/licenses.php:654
29
+ #: ../admin/views/licenses.php:722
30
  msgid "Active"
31
  msgstr ""
32
 
33
+ #: ../admin/admin.php:156 ../admin/editor/editor-build.php:68
34
+ #: ../admin/views/licenses.php:67 ../admin/views/licenses.php:132
35
+ #: ../admin/views/licenses.php:197 ../admin/views/licenses.php:263
36
+ #: ../admin/views/licenses.php:330 ../admin/views/licenses.php:397
37
+ #: ../admin/views/licenses.php:462 ../admin/views/licenses.php:526
38
+ #: ../admin/views/licenses.php:592 ../admin/views/licenses.php:658
39
+ #: ../admin/views/licenses.php:726
40
  msgid "Inactive"
41
  msgstr ""
42
 
43
+ #: ../admin/admin.php:157
44
  msgid "Applying layout"
45
  msgstr ""
46
 
47
+ #: ../admin/admin.php:158 ../admin/views/repeater-templates.php:243
48
  msgid "Template Updated"
49
  msgstr ""
50
 
51
+ #: ../admin/admin.php:268
52
  msgid ""
53
  "[Ajax Load More] Error opening default repeater template - Please check your "
54
  "file path and ensure your server is configured to allow Ajax Load More to "
55
  "read and write files within the /ajax-load-more/core/repeater directory"
56
  msgstr ""
57
 
58
+ #: ../admin/admin.php:272
59
  msgid ""
60
  "[Ajax Load More] Error updating default repeater template - Please check "
61
  "your file path and ensure your server is configured to allow Ajax Load More "
62
  "to read and write files within the /ajax-load-more/core/repeater directory."
63
  msgstr ""
64
 
65
+ #: ../admin/admin.php:641
66
  msgid "[Ajax Load More] Unable to open repeater template - "
67
  msgstr ""
68
 
69
+ #: ../admin/admin.php:645
70
  msgid "[Ajax Load More] Error saving repeater template - "
71
  msgstr ""
72
 
73
+ #: ../admin/admin.php:678
74
  msgid "Error Writing File"
75
  msgstr ""
76
 
77
+ #: ../admin/admin.php:881
78
+ #: ../admin/shortcode-builder/shortcode-builder.php:1367
79
  msgid "Container Type"
80
  msgstr ""
81
 
82
+ #: ../admin/admin.php:889
83
+ #: ../admin/shortcode-builder/shortcode-builder.php:1393
84
  msgid "Container Classes"
85
  msgstr ""
86
 
87
+ #: ../admin/admin.php:897
88
  msgid "Disable CSS"
89
  msgstr ""
90
 
91
+ #: ../admin/admin.php:905
92
  msgid "Button/Loading Style"
93
  msgstr ""
94
 
95
+ #: ../admin/admin.php:913
96
  msgid "Button Classes"
97
  msgstr ""
98
 
99
+ #: ../admin/admin.php:921
100
  msgid "Ajax Security"
101
  msgstr ""
102
 
103
+ #: ../admin/admin.php:929
104
  msgid "Top of Page"
105
  msgstr ""
106
 
107
+ #: ../admin/admin.php:937
108
  msgid "Dynamic Content"
109
  msgstr ""
110
 
111
+ #: ../admin/admin.php:945
112
  msgid "Editor Button"
113
  msgstr ""
114
 
115
+ #: ../admin/admin.php:953
116
  msgid "Error Notices"
117
  msgstr ""
118
 
119
+ #: ../admin/admin.php:1024
120
  msgid ""
121
  "Customize the user experience of Ajax Load More by updating the fields below."
122
  msgstr ""
123
 
124
+ #: ../admin/admin.php:1037
125
  msgid "The following settings affect the WordPress admin area only."
126
  msgstr ""
127
 
128
+ #: ../admin/admin.php:1068
129
  msgid "I want to use my own CSS styles."
130
  msgstr ""
131
 
132
+ #: ../admin/admin.php:1068
133
  msgid "View Ajax Load More CSS"
134
  msgstr ""
135
 
136
+ #: ../admin/admin.php:1088
137
  msgid "Hide shortcode button in WYSIWYG editor."
138
  msgstr ""
139
 
140
+ #: ../admin/admin.php:1109
141
  msgid ""
142
  "Display error messaging regarding repeater template updates in the browser "
143
  "console."
144
  msgstr ""
145
 
146
+ #: ../admin/admin.php:1130
147
  msgid ""
148
  "Disable dynamic population of categories, tags and authors in the Shortcode "
149
  "Builder.<span style=\"display:block\">Recommended if you have an "
150
  "extraordinary number of categories, tags and/or authors."
151
  msgstr ""
152
 
153
+ #: ../admin/admin.php:1151 ../admin/admin.php:1154
154
  msgid "Ajax Posts Here"
155
  msgstr ""
156
 
157
+ #: ../admin/admin.php:1156
158
  msgid "You can modify the container type when building a shortcode."
159
  msgstr ""
160
 
161
+ #: ../admin/admin.php:1173
162
  msgid ""
163
  "Add classes to Ajax Load More container - classes are applied globally and "
164
  "will appear with every instance of Ajax Load More. <span style=\"display:"
165
  "block\">You can also add classes when building a shortcode.</span>"
166
  msgstr ""
167
 
168
+ #: ../admin/admin.php:1235
169
  msgid ""
170
  "Select an Ajax loading style - you can choose between a <strong>button</"
171
  "strong> or <strong>infinite scroll</strong>"
172
  msgstr ""
173
 
174
+ #: ../admin/admin.php:1256
175
  msgid "Preview"
176
  msgstr ""
177
 
178
+ #: ../admin/admin.php:1256
179
+ #: ../admin/shortcode-builder/shortcode-builder.php:1341
180
  #: ../core/classes/class.alm-shortcode.php:124
181
  msgid "Older Posts"
182
  msgstr ""
183
 
184
+ #: ../admin/admin.php:1275
185
  msgid "Add classes to your <strong>Load More</strong> button"
186
  msgstr ""
187
 
188
+ #: ../admin/admin.php:1318
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:1339
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:477
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:940
478
  msgid "Relation:"
479
  msgstr ""
480
 
484
  msgstr ""
485
 
486
  #: ../admin/shortcode-builder/shortcode-builder.php:1
487
+ #: ../admin/views/examples.php:9 ../admin/views/repeater-templates.php:15
488
  msgid "Collapse All"
489
  msgstr ""
490
 
491
  #: ../admin/shortcode-builder/shortcode-builder.php:1
492
+ #: ../admin/views/examples.php:9 ../admin/views/repeater-templates.php:16
493
  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:42
498
  #: ../admin/views/settings.php:52
499
  msgid "Cache"
500
  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:164
509
+ #: ../admin/shortcode-builder/shortcode-builder.php:318
510
+ #: ../admin/shortcode-builder/shortcode-builder.php:341
511
+ #: ../admin/shortcode-builder/shortcode-builder.php:395
512
+ #: ../admin/shortcode-builder/shortcode-builder.php:436
513
+ #: ../admin/shortcode-builder/shortcode-builder.php:530
514
+ #: ../admin/shortcode-builder/shortcode-builder.php:610
515
+ #: ../admin/shortcode-builder/shortcode-builder.php:644
516
+ #: ../admin/shortcode-builder/shortcode-builder.php:1144
517
+ #: ../admin/shortcode-builder/shortcode-builder.php:1169
518
+ #: ../admin/shortcode-builder/shortcode-builder.php:1216
519
+ #: ../admin/shortcode-builder/shortcode-builder.php:1302
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:168
526
  #: ../admin/shortcode-builder/shortcode-builder.php:322
527
  #: ../admin/shortcode-builder/shortcode-builder.php:345
530
  #: ../admin/shortcode-builder/shortcode-builder.php:534
531
  #: ../admin/shortcode-builder/shortcode-builder.php:614
532
  #: ../admin/shortcode-builder/shortcode-builder.php:648
533
+ #: ../admin/shortcode-builder/shortcode-builder.php:1148
534
+ #: ../admin/shortcode-builder/shortcode-builder.php:1173
535
+ #: ../admin/shortcode-builder/shortcode-builder.php:1220
536
+ #: ../admin/shortcode-builder/shortcode-builder.php:1306
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
537
  msgid "False"
538
  msgstr ""
539
 
552
  msgstr ""
553
 
554
  #: ../admin/shortcode-builder/shortcode-builder.php:58
555
+ #: ../admin/views/add-ons.php:45 ../admin/views/licenses.php:107
556
  msgid "Call to Actions"
557
  msgstr ""
558
 
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>"
 
572
  msgstr ""
573
 
574
  #: ../admin/shortcode-builder/shortcode-builder.php:92
587
  msgid "Post #"
588
  msgstr ""
589
 
590
+ #: ../admin/shortcode-builder/shortcode-builder.php:110
591
+ #: ../admin/shortcode-builder/shortcode-builder.php:661
 
 
 
 
 
 
 
 
592
  msgid "Template"
593
  msgstr ""
594
 
595
+ #: ../admin/shortcode-builder/shortcode-builder.php:112
596
  msgid ""
597
  "Select the <a href=\"admin.php?page=ajax-load-more-repeaters\" target="
598
  "\"_parent\">repeater template</a> that will display your call to action."
599
  msgstr ""
600
 
601
+ #: ../admin/shortcode-builder/shortcode-builder.php:119
602
  #, fuzzy
603
  msgid "-- Select Repeater --"
604
  msgstr "Sélectionnez province"
605
 
606
+ #: ../admin/shortcode-builder/shortcode-builder.php:140
607
  msgid ""
608
  "Call to actions do NOT count as a post within an Ajax Load More loop.<br/>\n"
609
  " For example, if you set <strong>posts_per_page=\"5\"</strong> "
610
  "in your shortcode, 6 items will be displayed."
611
  msgstr ""
612
 
613
+ #: ../admin/shortcode-builder/shortcode-builder.php:154
614
+ #: ../admin/views/add-ons.php:72 ../admin/views/licenses.php:172
615
  msgid "Comments"
616
  msgstr ""
617
 
618
+ #: ../admin/shortcode-builder/shortcode-builder.php:157
619
  msgid "Enable Ajax Load More to display blog comments."
620
  msgstr ""
621
 
622
+ #: ../admin/shortcode-builder/shortcode-builder.php:180
623
+ #: ../admin/shortcode-builder/shortcode-builder.php:450
624
  msgid "Post ID"
625
  msgstr ""
626
 
627
+ #: ../admin/shortcode-builder/shortcode-builder.php:181
628
+ #: ../admin/shortcode-builder/shortcode-builder.php:451
629
  msgid "The ID of the current single post."
630
  msgstr ""
631
 
632
+ #: ../admin/shortcode-builder/shortcode-builder.php:193
633
  msgid "Comments Per Page"
634
  msgstr ""
635
 
636
+ #: ../admin/shortcode-builder/shortcode-builder.php:194
637
  msgid "The number of top level items to show for each page of comments."
638
  msgstr ""
639
 
640
+ #: ../admin/shortcode-builder/shortcode-builder.php:202
641
  msgid ""
642
  "<strong>Note</strong>: The amount selected does NOT include comment replies."
643
  msgstr ""
644
 
645
+ #: ../admin/shortcode-builder/shortcode-builder.php:208
646
  msgid "Comment Type"
647
  msgstr ""
648
 
649
+ #: ../admin/shortcode-builder/shortcode-builder.php:209
650
  msgid "The type of comment(s) to display."
651
  msgstr ""
652
 
653
+ #: ../admin/shortcode-builder/shortcode-builder.php:214
654
  msgid "Comment"
655
  msgstr ""
656
 
657
+ #: ../admin/shortcode-builder/shortcode-builder.php:215
658
  msgid "All"
659
  msgstr ""
660
 
661
+ #: ../admin/shortcode-builder/shortcode-builder.php:216
662
  msgid "Trackback"
663
  msgstr ""
664
 
665
+ #: ../admin/shortcode-builder/shortcode-builder.php:217
666
  msgid "Pingback"
667
  msgstr ""
668
 
669
+ #: ../admin/shortcode-builder/shortcode-builder.php:218
670
  msgid "Pings"
671
  msgstr ""
672
 
673
+ #: ../admin/shortcode-builder/shortcode-builder.php:227
674
  msgid "Comment Style"
675
  msgstr ""
676
 
677
+ #: ../admin/shortcode-builder/shortcode-builder.php:228
678
  msgid "Select the HTML container style for your comments."
679
  msgstr ""
680
 
681
+ #: ../admin/shortcode-builder/shortcode-builder.php:254
682
  msgid "Comment Template"
683
  msgstr ""
684
 
685
+ #: ../admin/shortcode-builder/shortcode-builder.php:255
686
  msgid "Select a repeater template that will display comment data."
687
  msgstr ""
688
 
689
+ #: ../admin/shortcode-builder/shortcode-builder.php:261
690
+ #: ../admin/shortcode-builder/shortcode-builder.php:1249
691
  msgid "None"
692
  msgstr ""
693
 
694
+ #: ../admin/shortcode-builder/shortcode-builder.php:262
695
  msgid "Default"
696
  msgstr ""
697
 
698
+ #: ../admin/shortcode-builder/shortcode-builder.php:274
699
  msgid ""
700
  "<strong>Note</strong>: <span>None</span> will use the default WordPress "
701
  "comment layout."
702
  msgstr ""
703
 
704
+ #: ../admin/shortcode-builder/shortcode-builder.php:283
705
  msgid "Callback Function"
706
  msgstr ""
707
 
708
+ #: ../admin/shortcode-builder/shortcode-builder.php:284
709
  msgid ""
710
  "A custom <a href=\"https://codex.wordpress.org/Function_Reference/"
711
  "wp_list_comments#Arguments\" target=\"_blank\">callback</a> function that "
712
  "will display each comment."
713
  msgstr ""
714
 
715
+ #: ../admin/shortcode-builder/shortcode-builder.php:292
716
  msgid ""
717
  "<strong>Note</strong>: The majority of premium themes have a custom callback "
718
  "function for displaying comments. Please see comments.php or functions.php "
719
  "within your theme directory to locate the callback function for your theme."
720
  msgstr ""
721
 
722
+ #: ../admin/shortcode-builder/shortcode-builder.php:297
723
  msgid ""
724
  "You must add the comments shortcode directly to your single template file "
725
  "using the <a href=\"https://developer.wordpress.org/reference/functions/"
728
  "\"_blank\">View documentation</a>"
729
  msgstr ""
730
 
731
+ #: ../admin/shortcode-builder/shortcode-builder.php:309
732
+ #: ../admin/views/add-ons.php:151 ../admin/views/licenses.php:372
733
  #: ../admin/views/settings.php:56
734
  msgid "Paging"
735
  msgstr ""
736
 
737
+ #: ../admin/shortcode-builder/shortcode-builder.php:311
738
  msgid "Replace infinite scrolling with a paged ajax navigation system."
739
  msgstr ""
740
 
741
+ #: ../admin/shortcode-builder/shortcode-builder.php:333
742
  msgid "Paging Controls"
743
  msgstr ""
744
 
745
+ #: ../admin/shortcode-builder/shortcode-builder.php:334
746
  msgid "Show (&laquo;)previous and next(&raquo;) buttons."
747
  msgstr ""
748
 
749
+ #: ../admin/shortcode-builder/shortcode-builder.php:354
750
  msgid "Paging Navigation Classes"
751
  msgstr ""
752
 
753
+ #: ../admin/shortcode-builder/shortcode-builder.php:355
754
  msgid "Add custom CSS classes to the paging navigation menu."
755
  msgstr ""
756
 
757
+ #: ../admin/shortcode-builder/shortcode-builder.php:366
758
  msgid "Show at Most"
759
  msgstr ""
760
 
761
+ #: ../admin/shortcode-builder/shortcode-builder.php:367
762
  msgid ""
763
  "The maximum amount of page menu items to show at a time. <br/.>0 = no maximum"
764
  msgstr ""
765
 
766
+ #: ../admin/shortcode-builder/shortcode-builder.php:385
767
+ #: ../admin/views/add-ons.php:178 ../admin/views/licenses.php:437
768
  msgid "Preloaded"
769
  msgstr ""
770
 
771
+ #: ../admin/shortcode-builder/shortcode-builder.php:388
772
  msgid "Preload posts prior to making Ajax requests."
773
  msgstr ""
774
 
775
+ #: ../admin/shortcode-builder/shortcode-builder.php:409
776
  msgid "Preload Amount"
777
  msgstr ""
778
 
779
+ #: ../admin/shortcode-builder/shortcode-builder.php:410
780
  msgid "Enter the number of posts to preload."
781
  msgstr ""
782
 
783
+ #: ../admin/shortcode-builder/shortcode-builder.php:426
784
+ #: ../admin/views/add-ons.php:204 ../admin/views/licenses.php:501
785
  #: ../admin/views/settings.php:58
786
  msgid "Previous Post"
787
  msgstr ""
788
 
789
+ #: ../admin/shortcode-builder/shortcode-builder.php:429
790
  msgid "Enable the infinite scrolling of single posts."
791
  msgstr ""
792
 
793
+ #: ../admin/shortcode-builder/shortcode-builder.php:463
794
+ #: ../admin/shortcode-builder/shortcode-builder.php:880
795
  msgid "Taxonomy"
796
  msgstr ""
797
 
798
+ #: ../admin/shortcode-builder/shortcode-builder.php:463
799
  msgid ""
800
  "Selecting a taxonomy means only previous posts from the same taxonomy will "
801
  "be returned"
802
  msgstr ""
803
 
804
+ #: ../admin/shortcode-builder/shortcode-builder.php:464
805
  msgid "Query previous posts from the same taxonomy."
806
  msgstr ""
807
 
808
+ #: ../admin/shortcode-builder/shortcode-builder.php:478
809
+ #: ../admin/shortcode-builder/shortcode-builder.php:762
810
  msgid "Category"
811
  msgstr ""
812
 
813
+ #: ../admin/shortcode-builder/shortcode-builder.php:479
814
+ #: ../admin/shortcode-builder/shortcode-builder.php:822
815
  msgid "Tag"
816
  msgstr ""
817
 
818
+ #: ../admin/shortcode-builder/shortcode-builder.php:493
819
  msgid ""
820
  "You must add the Previous Post shortcode directly to your single template "
821
  "file using the <a href=\"https://developer.wordpress.org/reference/functions/"
824
  "target=\"_blank\">View documentation</a>"
825
  msgstr ""
826
 
827
+ #: ../admin/shortcode-builder/shortcode-builder.php:520
828
+ #: ../admin/views/add-ons.php:230 ../admin/views/licenses.php:567
829
  #: ../admin/views/settings.php:60
830
  msgid "REST API"
831
  msgstr ""
832
 
833
+ #: ../admin/shortcode-builder/shortcode-builder.php:523
834
  msgid "Enable the WordPress REST API."
835
  msgstr ""
836
 
837
+ #: ../admin/shortcode-builder/shortcode-builder.php:547
838
  msgid "Base URL"
839
  msgstr ""
840
 
841
+ #: ../admin/shortcode-builder/shortcode-builder.php:548
842
  msgid "Set a default Base URL in the Ajax Load More settings panel"
843
  msgstr ""
844
 
845
+ #: ../admin/shortcode-builder/shortcode-builder.php:549
846
  msgid "Enter the base URL to your installation of the REST API."
847
  msgstr ""
848
 
849
+ #: ../admin/shortcode-builder/shortcode-builder.php:561
850
  msgid "Namespace"
851
  msgstr ""
852
 
853
+ #: ../admin/shortcode-builder/shortcode-builder.php:562
854
  msgid "Set a default Namespace in the Ajax Load More settings panel"
855
  msgstr ""
856
 
857
+ #: ../admin/shortcode-builder/shortcode-builder.php:563
858
  msgid "Enter the custom namespace for this Ajax Load More query."
859
  msgstr ""
860
 
861
+ #: ../admin/shortcode-builder/shortcode-builder.php:575
862
  msgid "Endpoint"
863
  msgstr ""
864
 
865
+ #: ../admin/shortcode-builder/shortcode-builder.php:576
866
  msgid "Set a default Endpoint in the Ajax Load More settings panel"
867
  msgstr ""
868
 
869
+ #: ../admin/shortcode-builder/shortcode-builder.php:577
870
  msgid "Enter your custom endpoint for this Ajax Load More query."
871
  msgstr ""
872
 
873
+ #: ../admin/shortcode-builder/shortcode-builder.php:589
874
  msgid "Template ID"
875
  msgstr ""
876
 
877
+ #: ../admin/shortcode-builder/shortcode-builder.php:589
878
  msgid ""
879
  "Ajax Load More references this ID while looping and displaying your data. "
880
  "You must still select a repeater template for this instance of Ajax Load More"
881
  msgstr ""
882
 
883
+ #: ../admin/shortcode-builder/shortcode-builder.php:590
884
  msgid ""
885
  "Enter the ID of your javascript template.<br/><br/>e.g. <em>tmpl-alm-"
886
  "template</em> = <em>alm-template</em>"
887
  msgstr ""
888
 
889
+ #: ../admin/shortcode-builder/shortcode-builder.php:602
890
  msgid "Debug Mode"
891
  msgstr ""
892
 
893
+ #: ../admin/shortcode-builder/shortcode-builder.php:603
894
  msgid ""
895
  "Enable debugging (console.log) of REST API responses in the browser console. "
896
  msgstr ""
897
 
898
+ #: ../admin/shortcode-builder/shortcode-builder.php:621
899
  msgid ""
900
  "Visit <a href=\"http://v2.wp-api.org/\" target=\"_blank\">http://v2.wp-api."
901
  "org</a> for documentation on creating custom <a href=\"http://v2.wp-api.org/"
903
  "More."
904
  msgstr ""
905
 
906
+ #: ../admin/shortcode-builder/shortcode-builder.php:634
907
  msgid "SEO (Search Engine Optimization)"
908
  msgstr ""
909
 
910
+ #: ../admin/shortcode-builder/shortcode-builder.php:637
911
  msgid ""
912
  "Enable address bar URL rewrites as users page through ajax loaded content."
913
  msgstr ""
914
 
915
+ #: ../admin/shortcode-builder/shortcode-builder.php:665
916
  msgid "Repeater Template"
917
  msgstr ""
918
 
919
+ #: ../admin/shortcode-builder/shortcode-builder.php:667
920
  msgid ""
921
  "Select which <a href=\"admin.php?page=ajax-load-more-repeaters\" target="
922
  "\"_parent\">repeater template</a> you would like to use."
923
  msgstr ""
924
 
925
+ #: ../admin/shortcode-builder/shortcode-builder.php:711
926
  msgid "Post Types"
927
  msgstr ""
928
 
929
+ #: ../admin/shortcode-builder/shortcode-builder.php:714
930
  msgid "Select Post Types to query."
931
  msgstr ""
932
 
933
+ #: ../admin/shortcode-builder/shortcode-builder.php:735
934
  msgid "Post Format"
935
  msgstr ""
936
 
937
+ #: ../admin/shortcode-builder/shortcode-builder.php:738
938
  msgid ""
939
  "Select a <a href=\"http://codex.wordpress.org/Post_Formats\" target=\"_blank"
940
  "\">Post Format</a> to query."
941
  msgstr ""
942
 
943
+ #: ../admin/shortcode-builder/shortcode-builder.php:741
944
  msgid "Select Post Format"
945
  msgstr ""
946
 
947
+ #: ../admin/shortcode-builder/shortcode-builder.php:742
948
  msgid "Standard"
949
  msgstr ""
950
 
951
+ #: ../admin/shortcode-builder/shortcode-builder.php:766
952
  msgid ""
953
  "A comma separated list of categories to include by slug. (design, research "
954
  "etc...)"
955
  msgstr ""
956
 
957
+ #: ../admin/shortcode-builder/shortcode-builder.php:768
958
+ #: ../admin/shortcode-builder/shortcode-builder.php:1039
959
  msgid "view example"
960
  msgstr ""
961
 
962
+ #: ../admin/shortcode-builder/shortcode-builder.php:790
963
+ #: ../admin/shortcode-builder/shortcode-builder.php:847
964
+ #: ../admin/shortcode-builder/shortcode-builder.php:1038
965
  msgid "Exclude"
966
  msgstr ""
967
 
968
+ #: ../admin/shortcode-builder/shortcode-builder.php:791
969
  msgid ""
970
  "A comma separated list of categories to exclude by ID. (3, 12, 35 etc..)"
971
  msgstr ""
972
 
973
+ #: ../admin/shortcode-builder/shortcode-builder.php:825
974
+ #: ../admin/shortcode-builder/shortcode-builder.php:1027
975
  msgid "Include"
976
  msgstr ""
977
 
978
+ #: ../admin/shortcode-builder/shortcode-builder.php:826
979
  msgid ""
980
  "A comma separated list of tags to include by slug. (toronto, canada etc...)"
981
  msgstr ""
982
 
983
+ #: ../admin/shortcode-builder/shortcode-builder.php:848
984
  msgid "A comma separated list of tags to exclude by ID. (30, 12, 99 etc..)"
985
  msgstr ""
986
 
987
+ #: ../admin/shortcode-builder/shortcode-builder.php:883
988
  msgid "Select a taxonomy then select the terms and an operator."
989
  msgstr ""
990
 
991
+ #: ../admin/shortcode-builder/shortcode-builder.php:898
992
  msgid "Date"
993
  msgstr ""
994
 
995
+ #: ../admin/shortcode-builder/shortcode-builder.php:901
996
  msgid ""
997
  "Enter a year, month(number) and day to query by date archive.<br/>&raquo; <a "
998
  "href=\"admin.php?page=ajax-load-more-examples#example-date\">view example</a>"
999
  msgstr ""
1000
 
1001
+ #: ../admin/shortcode-builder/shortcode-builder.php:907
1002
  msgid "Year:"
1003
  msgstr ""
1004
 
1005
+ #: ../admin/shortcode-builder/shortcode-builder.php:911
1006
  msgid "Month:"
1007
  msgstr ""
1008
 
1009
+ #: ../admin/shortcode-builder/shortcode-builder.php:915
1010
  msgid "Day:"
1011
  msgstr ""
1012
 
1013
+ #: ../admin/shortcode-builder/shortcode-builder.php:926
1014
  msgid "Custom Fields (Meta_Query)"
1015
  msgstr ""
1016
 
1017
+ #: ../admin/shortcode-builder/shortcode-builder.php:929
1018
  msgid ""
1019
  "Query for <a href=\"http://codex.wordpress.org/Class_Reference/WP_Meta_Query"
1020
  "\" target=\"_blank\">custom field</a> by entering a custom field key, value "
1021
  "and operator."
1022
  msgstr ""
1023
 
1024
+ #: ../admin/shortcode-builder/shortcode-builder.php:940
1025
  msgid ""
1026
  "The logical relationship between each custom field when there is more than "
1027
  "one."
1028
  msgstr ""
1029
 
1030
+ #: ../admin/shortcode-builder/shortcode-builder.php:954
1031
  msgid "Add Another"
1032
  msgstr ""
1033
 
1034
+ #: ../admin/shortcode-builder/shortcode-builder.php:970
1035
  msgid "Author"
1036
  msgstr ""
1037
 
1038
+ #: ../admin/shortcode-builder/shortcode-builder.php:973
1039
  msgid "Select an Author to query(by ID)."
1040
  msgstr ""
1041
 
1042
+ #: ../admin/shortcode-builder/shortcode-builder.php:978
1043
  msgid "Select Author"
1044
  msgstr ""
1045
 
1046
+ #: ../admin/shortcode-builder/shortcode-builder.php:994
1047
  msgid "Search Term"
1048
  msgstr ""
1049
 
1050
+ #: ../admin/shortcode-builder/shortcode-builder.php:997
1051
  msgid "Enter a search term to query."
1052
  msgstr ""
1053
 
1054
+ #: ../admin/shortcode-builder/shortcode-builder.php:1001
1055
  msgid "Enter search term"
1056
  msgstr ""
1057
 
1058
+ #: ../admin/shortcode-builder/shortcode-builder.php:1009
1059
  msgid "Custom Arguments"
1060
  msgstr ""
1061
 
1062
+ #: ../admin/shortcode-builder/shortcode-builder.php:1012
1063
  msgid ""
1064
  "A semicolon separated list of custom value:pair arguments.<br/><br/>e.g. "
1065
  "tag_slug__and:design,development; event_display:upcoming. Default"
1066
  msgstr ""
1067
 
1068
+ #: ../admin/shortcode-builder/shortcode-builder.php:1016
1069
  msgid "event_display:upcoming"
1070
  msgstr ""
1071
 
1072
+ #: ../admin/shortcode-builder/shortcode-builder.php:1024
1073
  msgid "Post Parameters"
1074
  msgstr ""
1075
 
1076
+ #: ../admin/shortcode-builder/shortcode-builder.php:1028
1077
  msgid "A comma separated list of post ID's to query."
1078
  msgstr ""
1079
 
1080
+ #: ../admin/shortcode-builder/shortcode-builder.php:1032
1081
  msgid "225, 340, 818, etc..."
1082
  msgstr ""
1083
 
1084
+ #: ../admin/shortcode-builder/shortcode-builder.php:1039
1085
  msgid "A comma separated list of post ID's to exclude from query."
1086
  msgstr ""
1087
 
1088
+ #: ../admin/shortcode-builder/shortcode-builder.php:1049
1089
  msgid "Post Status"
1090
  msgstr ""
1091
 
1092
+ #: ../admin/shortcode-builder/shortcode-builder.php:1049
1093
  msgid ""
1094
  "Post Status parameters are only available for logged in (admin) users. Non "
1095
+ "logged in users will only have access to view content in a 'publish' or "
1096
+ "'inherit' state. "
1097
  msgstr ""
1098
 
1099
+ #: ../admin/shortcode-builder/shortcode-builder.php:1050
1100
  msgid "Select status of the post."
1101
  msgstr ""
1102
 
1103
+ #: ../admin/shortcode-builder/shortcode-builder.php:1055
1104
  msgid "Published"
1105
  msgstr ""
1106
 
1107
+ #: ../admin/shortcode-builder/shortcode-builder.php:1071
1108
  msgid "Ordering"
1109
  msgstr ""
1110
 
1111
+ #: ../admin/shortcode-builder/shortcode-builder.php:1074
1112
  msgid "Sort posts by Order and Orderby parameters."
1113
  msgstr ""
1114
 
1115
+ #: ../admin/shortcode-builder/shortcode-builder.php:1078
1116
  msgid "Order"
1117
  msgstr ""
1118
 
1119
+ #: ../admin/shortcode-builder/shortcode-builder.php:1085
1120
  msgid "Order By"
1121
  msgstr ""
1122
 
1123
+ #: ../admin/shortcode-builder/shortcode-builder.php:1104
1124
  msgid "Offset"
1125
  msgstr ""
1126
 
1127
+ #: ../admin/shortcode-builder/shortcode-builder.php:1107
1128
  msgid "Offset the initial query by <em>'n'</em> number of posts"
1129
  msgstr ""
1130
 
1131
+ #: ../admin/shortcode-builder/shortcode-builder.php:1119
1132
  msgid "Posts Per Page"
1133
  msgstr ""
1134
 
1135
+ #: ../admin/shortcode-builder/shortcode-builder.php:1122
1136
  msgid "Select the number of posts to load with each request."
1137
  msgstr ""
1138
 
1139
+ #: ../admin/shortcode-builder/shortcode-builder.php:1134
1140
  msgid "Pause"
1141
  msgstr ""
1142
 
1143
+ #: ../admin/shortcode-builder/shortcode-builder.php:1137
1144
  msgid ""
1145
  "Do <u>NOT</u> load any posts until user the clicks <em>Load More</em> button."
1146
  msgstr ""
1147
 
1148
+ #: ../admin/shortcode-builder/shortcode-builder.php:1158
1149
  msgid "Scrolling"
1150
  msgstr ""
1151
 
1152
+ #: ../admin/shortcode-builder/shortcode-builder.php:1161
1153
  msgid "Enable Scrolling"
1154
  msgstr ""
1155
 
1156
+ #: ../admin/shortcode-builder/shortcode-builder.php:1162
1157
  msgid "Load more posts as the user scrolls the page."
1158
  msgstr ""
1159
 
1160
+ #: ../admin/shortcode-builder/shortcode-builder.php:1183
1161
  msgid "Scroll Distance"
1162
  msgstr ""
1163
 
1164
+ #: ../admin/shortcode-builder/shortcode-builder.php:1183
1165
  msgid ""
1166
  "Distance is based on the position of the loading button from the bottom of "
1167
  "the screen"
1168
  msgstr ""
1169
 
1170
+ #: ../admin/shortcode-builder/shortcode-builder.php:1184
1171
  msgid ""
1172
  "The distance from the bottom of the screen to trigger loading of posts. "
1173
  "(Default = 150)"
1174
  msgstr ""
1175
 
1176
+ #: ../admin/shortcode-builder/shortcode-builder.php:1196
1177
  msgid "Maximum Pages"
1178
  msgstr ""
1179
 
1180
+ #: ../admin/shortcode-builder/shortcode-builder.php:1196
1181
  msgid "If using an Infinite Scroll button style you should set this to 0"
1182
  msgstr ""
1183
 
1184
+ #: ../admin/shortcode-builder/shortcode-builder.php:1197
1185
  msgid "Maximum number of pages to load while scrolling. (0 = unlimited)"
1186
  msgstr ""
1187
 
1188
+ #: ../admin/shortcode-builder/shortcode-builder.php:1209
1189
  msgid "Pause Override"
1190
  msgstr ""
1191
 
1192
+ #: ../admin/shortcode-builder/shortcode-builder.php:1210
1193
  msgid ""
1194
  "Allow scrolling to override the Pause parameter and trigger the loading of "
1195
  "posts on scroll."
1196
  msgstr ""
1197
 
1198
+ #: ../admin/shortcode-builder/shortcode-builder.php:1230
1199
  msgid "Transition"
1200
  msgstr ""
1201
 
1202
+ #: ../admin/shortcode-builder/shortcode-builder.php:1233
1203
  msgid "Transition Type"
1204
  msgstr ""
1205
 
1206
+ #: ../admin/shortcode-builder/shortcode-builder.php:1234
1207
  msgid "Select a loading transition style."
1208
  msgstr ""
1209
 
1210
+ #: ../admin/shortcode-builder/shortcode-builder.php:1241
1211
  msgid "Slide"
1212
  msgstr ""
1213
 
1214
+ #: ../admin/shortcode-builder/shortcode-builder.php:1245
1215
  msgid "Fade"
1216
  msgstr ""
1217
 
1218
+ #: ../admin/shortcode-builder/shortcode-builder.php:1259
1219
  msgid "Transition Speed"
1220
  msgstr ""
1221
 
1222
+ #: ../admin/shortcode-builder/shortcode-builder.php:1259
1223
  msgid "0.5 seconds = 500, 1 second = 1000 etc."
1224
  msgstr ""
1225
 
1226
+ #: ../admin/shortcode-builder/shortcode-builder.php:1260
1227
  msgid "The speed of the loading transition in milliseconds"
1228
  msgstr ""
1229
 
1230
+ #: ../admin/shortcode-builder/shortcode-builder.php:1272
1231
  msgid "Transition Container"
1232
  msgstr ""
1233
 
1234
+ #: ../admin/shortcode-builder/shortcode-builder.php:1272
1235
  msgid ""
1236
  "Removing the transition container may have undesired results and is not "
1237
  "recommended."
1238
  msgstr ""
1239
 
1240
+ #: ../admin/shortcode-builder/shortcode-builder.php:1273
1241
  msgid "Remove the Ajax Load More (.alm-reveal) loading container."
1242
  msgstr ""
1243
 
1244
+ #: ../admin/shortcode-builder/shortcode-builder.php:1290
1245
  msgid "Images Loaded"
1246
  msgstr ""
1247
 
1248
+ #: ../admin/shortcode-builder/shortcode-builder.php:1293
1249
  msgid "Wait for all images to load before displaying ajax loaded content"
1250
  msgstr ""
1251
 
1252
+ #: ../admin/shortcode-builder/shortcode-builder.php:1294
1253
  msgid "Background images are currently not supported"
1254
  msgstr ""
1255
 
1256
+ #: ../admin/shortcode-builder/shortcode-builder.php:1316
1257
  msgid "Destroy After"
1258
  msgstr ""
1259
 
1260
+ #: ../admin/shortcode-builder/shortcode-builder.php:1319
1261
  msgid ""
1262
  "Remove ajax load more functionality after '<em>n</em>' number of pages have "
1263
  "been loaded."
1264
  msgstr ""
1265
 
1266
+ #: ../admin/shortcode-builder/shortcode-builder.php:1331
1267
  msgid "Button Options"
1268
  msgstr ""
1269
 
1270
+ #: ../admin/shortcode-builder/shortcode-builder.php:1336
1271
  msgid "Button Label"
1272
  msgstr ""
1273
 
1274
+ #: ../admin/shortcode-builder/shortcode-builder.php:1337
1275
  msgid "Customize the text of the <em>Load More</em> button."
1276
  msgstr ""
1277
 
1278
+ #: ../admin/shortcode-builder/shortcode-builder.php:1349
1279
  msgid "Button Loading Label"
1280
  msgstr ""
1281
 
1282
+ #: ../admin/shortcode-builder/shortcode-builder.php:1349
1283
  msgid "Leave field empty to not update text while loading content"
1284
  msgstr ""
1285
 
1286
+ #: ../admin/shortcode-builder/shortcode-builder.php:1350
1287
  msgid ""
1288
  "Update the text of the <em>Load More</em> button while content is loading."
1289
  msgstr ""
1290
 
1291
+ #: ../admin/shortcode-builder/shortcode-builder.php:1354
1292
  msgid "Loading Posts..."
1293
  msgstr ""
1294
 
1295
+ #: ../admin/shortcode-builder/shortcode-builder.php:1363
1296
  msgid "Container Options"
1297
  msgstr ""
1298
 
1299
+ #: ../admin/shortcode-builder/shortcode-builder.php:1367
1300
  msgid ""
1301
  "You can define a global container type on the Ajax Load More settings screen"
1302
  msgstr ""
1303
 
1304
+ #: ../admin/shortcode-builder/shortcode-builder.php:1368
1305
  msgid ""
1306
  "Override the global Container Type that was set on <a href=\"admin.php?"
1307
  "page=ajax-load-more\">ALM Settings page</a>."
1308
  msgstr ""
1309
 
1310
+ #: ../admin/shortcode-builder/shortcode-builder.php:1393
1311
  msgid ""
1312
  "You can define global container classes on the Ajax Load More settings screen"
1313
  msgstr ""
1314
 
1315
+ #: ../admin/shortcode-builder/shortcode-builder.php:1394
1316
  msgid ""
1317
  "Add custom CSS classes to the Ajax Load More container. <br/><br/> e.g. "
1318
  "portfolio-listing large-12 etc"
1328
  "Load More"
1329
  msgstr ""
1330
 
1331
+ #: ../admin/views/add-ons.php:19
1332
+ msgid "Improve performance with the Ajax Load More caching engine."
1333
+ msgstr ""
1334
+
1335
  #: ../admin/views/add-ons.php:20
1336
  msgid ""
1337
+ "The Cache add-on creates static HTML files of Ajax Load More requests then "
1338
+ "delivers those static files to your visitors."
1339
  msgstr ""
1340
 
1341
+ #: ../admin/views/add-ons.php:46
1342
  msgid ""
1343
+ "Ajax Load More extension for displaying advertisements and call to actions."
 
1344
  msgstr ""
1345
 
1346
  #: ../admin/views/add-ons.php:47
 
 
 
 
1347
  msgid ""
1348
+ "The Call to Actions add-on will provide the ability to inject a custom CTA "
1349
+ "template within each Ajax Load More loop."
1350
  msgstr ""
1351
 
1352
  #: ../admin/views/add-ons.php:73
1359
  "infinite scroll functionality."
1360
  msgstr ""
1361
 
1362
+ #: ../admin/views/add-ons.php:97 ../admin/views/licenses.php:238
1363
  msgid "Custom Repeaters"
1364
  msgstr ""
1365
 
1373
  "absolutely zero restrictions."
1374
  msgstr ""
1375
 
1376
+ #: ../admin/views/add-ons.php:125 ../admin/views/licenses.php:305
1377
  #: ../admin/views/settings.php:54
1378
  msgid "Layouts"
1379
  msgstr ""
1428
  "WP REST API plugins.</p>"
1429
  msgstr ""
1430
 
1431
+ #: ../admin/views/add-ons.php:258 ../admin/views/licenses.php:633
1432
  msgid "Search Engine Optimization"
1433
  msgstr ""
1434
 
1442
  "generating unique URLs with every query.</p>"
1443
  msgstr ""
1444
 
1445
+ #: ../admin/views/add-ons.php:284 ../admin/views/licenses.php:701
1446
  #: ../admin/views/settings.php:64
1447
  msgid "Theme Repeaters"
1448
  msgstr ""
1553
  "href=\"plugins.php\">WP Plugins dashboard</a>."
1554
  msgstr ""
1555
 
1556
+ #: ../admin/views/licenses.php:51 ../admin/views/licenses.php:116
1557
+ #: ../admin/views/licenses.php:181 ../admin/views/licenses.php:247
1558
+ #: ../admin/views/licenses.php:314 ../admin/views/licenses.php:381
1559
+ #: ../admin/views/licenses.php:446 ../admin/views/licenses.php:510
1560
+ #: ../admin/views/licenses.php:576 ../admin/views/licenses.php:642
1561
+ #: ../admin/views/licenses.php:710
1562
+ msgid "Don't have a license?"
1563
+ msgstr ""
1564
+
1565
+ #: ../admin/views/licenses.php:52 ../admin/views/licenses.php:117
1566
+ #: ../admin/views/licenses.php:182 ../admin/views/licenses.php:248
1567
+ #: ../admin/views/licenses.php:315 ../admin/views/licenses.php:382
1568
+ #: ../admin/views/licenses.php:447 ../admin/views/licenses.php:511
1569
+ #: ../admin/views/licenses.php:577 ../admin/views/licenses.php:643
1570
+ #: ../admin/views/licenses.php:711
1571
+ msgid ""
1572
+ "A valid license is required to activate and receive plugin updates directly "
1573
+ "in your WordPress dashboard"
1574
+ msgstr ""
1575
+
1576
+ #: ../admin/views/licenses.php:52 ../admin/views/licenses.php:117
1577
+ #: ../admin/views/licenses.php:182 ../admin/views/licenses.php:248
1578
+ #: ../admin/views/licenses.php:315 ../admin/views/licenses.php:382
1579
+ #: ../admin/views/licenses.php:447 ../admin/views/licenses.php:511
1580
+ #: ../admin/views/licenses.php:577 ../admin/views/licenses.php:643
1581
+ #: ../admin/views/licenses.php:711
1582
+ msgid "Purchase Now"
1583
+ msgstr ""
1584
+
1585
+ #: ../admin/views/licenses.php:58 ../admin/views/licenses.php:60
1586
+ #: ../admin/views/licenses.php:123 ../admin/views/licenses.php:125
1587
+ #: ../admin/views/licenses.php:188 ../admin/views/licenses.php:190
1588
+ #: ../admin/views/licenses.php:254 ../admin/views/licenses.php:256
1589
+ #: ../admin/views/licenses.php:321 ../admin/views/licenses.php:323
1590
+ #: ../admin/views/licenses.php:388 ../admin/views/licenses.php:390
1591
+ #: ../admin/views/licenses.php:453 ../admin/views/licenses.php:455
1592
+ #: ../admin/views/licenses.php:517 ../admin/views/licenses.php:519
1593
+ #: ../admin/views/licenses.php:583 ../admin/views/licenses.php:585
1594
+ #: ../admin/views/licenses.php:649 ../admin/views/licenses.php:651
1595
+ #: ../admin/views/licenses.php:717 ../admin/views/licenses.php:719
1596
  msgid "Enter License Key"
1597
  msgstr ""
1598
 
1599
+ #: ../admin/views/licenses.php:80 ../admin/views/licenses.php:145
1600
+ #: ../admin/views/licenses.php:210 ../admin/views/licenses.php:276
1601
+ #: ../admin/views/licenses.php:343 ../admin/views/licenses.php:410
1602
+ #: ../admin/views/licenses.php:474 ../admin/views/licenses.php:539
1603
+ #: ../admin/views/licenses.php:605 ../admin/views/licenses.php:671
1604
+ #: ../admin/views/licenses.php:740
1605
  msgid "Activate License"
1606
  msgstr ""
1607
 
1608
+ #: ../admin/views/licenses.php:84 ../admin/views/licenses.php:149
1609
+ #: ../admin/views/licenses.php:214 ../admin/views/licenses.php:280
1610
+ #: ../admin/views/licenses.php:347 ../admin/views/licenses.php:414
1611
+ #: ../admin/views/licenses.php:478 ../admin/views/licenses.php:543
1612
+ #: ../admin/views/licenses.php:609 ../admin/views/licenses.php:675
1613
+ #: ../admin/views/licenses.php:744
1614
  msgid "Deactivate License"
1615
  msgstr ""
1616
 
1617
+ #: ../admin/views/licenses.php:762
1618
  msgid "You do not have any Ajax Load More add-ons installed"
1619
  msgstr ""
1620
 
1621
+ #: ../admin/views/licenses.php:762
1622
  msgid "Browse Add-ons"
1623
  msgstr ""
1624
 
1625
+ #: ../admin/views/licenses.php:773
1626
  msgid "About Licenses"
1627
  msgstr ""
1628
 
1629
+ #: ../admin/views/licenses.php:776
1630
  msgid "Add-on licenses will enable updates directly in your WP dashboard."
1631
  msgstr ""
1632
 
1633
+ #: ../admin/views/licenses.php:777
1634
  msgid ""
1635
  "License keys are found in the purchase receipt email that was sent "
1636
  "immediately after your successful purchase."
1637
  msgstr ""
1638
 
1639
+ #: ../admin/views/licenses.php:778
1640
  msgid ""
1641
  "If you cannot locate your key please use the <a href=\"https://connekthq.com/"
1642
  "contact/\">contact form</a> on our website and reference the email address "
1643
  "used when you completed the purchase."
1644
  msgstr ""
1645
 
1646
+ #: ../admin/views/licenses.php:783
1647
  msgid "Legacy Users"
1648
  msgstr ""
1649
 
1655
  msgid "The library of editable templates for use within your theme"
1656
  msgstr ""
1657
 
1658
+ #: ../admin/views/repeater-templates.php:54
1659
  msgid "Default Template"
1660
  msgstr ""
1661
 
1662
+ #: ../admin/views/repeater-templates.php:58
1663
  msgid "Enter the HTML and PHP code for the default template"
1664
  msgstr ""
1665
 
1666
+ #: ../admin/views/repeater-templates.php:78
1667
  msgid "Save Template"
1668
  msgstr ""
1669
 
1670
+ #: ../admin/views/repeater-templates.php:82
1671
+ msgid ""
1672
+ "It appears you are loading the <a href=\"https://connekthq.com/plugins/ajax-"
1673
+ "load-more/docs/repeater-templates/#default-template\" target=\"_blank"
1674
+ "\"><b>default template</b></a> (<em>default.php</em>) from your current "
1675
+ "theme directory. To modify this template, you must edit the file directly on "
1676
+ "your server."
1677
+ msgstr ""
1678
+
1679
+ #: ../admin/views/repeater-templates.php:151
1680
  msgid "Saving template..."
1681
  msgstr ""
1682
 
1683
+ #: ../admin/views/repeater-templates.php:184
1684
  msgid "Something went wrong and the data could not be saved."
1685
  msgstr ""
1686
 
1687
+ #: ../admin/views/repeater-templates.php:222
1688
  msgid "Updating template..."
1689
  msgstr ""
1690
 
1691
+ #: ../admin/views/repeater-templates.php:274
1692
  msgid "Templating Help"
1693
  msgstr ""
1694
 
1695
+ #: ../admin/views/repeater-templates.php:276
1696
  msgid "What is a repeater template?"
1697
  msgstr ""
1698
 
1699
+ #: ../admin/views/repeater-templates.php:277
1700
  msgid ""
1701
  "A repeater template is a snippet of code that will execute over and over "
1702
  "within a <a href=\"http://codex.wordpress.org/The_Loop\" target=\"_blank"
1703
  "\">WordPress loop</a>.</p>"
1704
  msgstr ""
1705
 
1706
+ #: ../admin/views/repeater-templates.php:280
1707
  msgid "Can I include PHP in the repeater template?"
1708
  msgstr ""
1709
 
1710
+ #: ../admin/views/repeater-templates.php:281
1711
  msgid ""
1712
  "Yes, PHP and core WordPress functions such as, <code>the_title()</code> and "
1713
  "<code>the_permalink()</code> are required.</p>"
1714
  msgstr ""
1715
 
1716
+ #: ../admin/views/repeater-templates.php:284
1717
  msgid "Tips and Tricks"
1718
  msgstr ""
1719
 
1720
+ #: ../admin/views/repeater-templates.php:286
1721
  msgid ""
1722
  "Always open and close your templates with an HTML element. In some rare "
1723
  "cases data may not be displayed if not wrapped in HTML.<br/>e.g. <code>&lt;"
1793
  msgid "Clear all Shortcode Builder settings"
1794
  msgstr ""
1795
 
1796
+ #: ../ajax-load-more.php:196
1797
  msgid "Settings"
1798
  msgstr ""
1799
 
1800
+ #: ../core/functions.php:477
1801
  msgid "Pages:"
1802
  msgstr ""
1803