WordPress Infinite Scroll – Ajax Load More - Version 2.6.3

Version Description

  • NEW - Added new shortcode parameter 'custom_args' which will let users pass custom query params. e.g. custom_args="order:custom_meta_key, tag_slug__and:array(design,development)"
  • NEW - Added setting for implementing WP nonce for added security of Ajax functionality.
  • Update - Removed WP nonce for ALM query as this was causing issues with various caching plugins.
  • Update - Various UI improvements and enhancements
Download this release

Release Info

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

Code changes from version 2.6.2 to 2.6.3

README.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: dcooney
3
  Donate link: http://connekthq.com/donate/
4
  Tags: ajax, query, loop, paging, filter, infinite scroll, infinite, dynamic, jquery, shortcode builder, shortcode, search, tags, category, post types, taxonomy, meta_query, post format, wmpl, archives, date
5
  Requires at least: 3.6
6
- Tested up to: 4.1.1
7
- Stable tag: 2.6.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -52,6 +52,7 @@ Ajax Load More accepts a number of parameters that are passed to the WordPress q
52
  * **post__in** - Comma separated list of post ID’s to include in query. Default = null
53
  * **exclude** - Comma separated list of post ID’s to exclude from query. Default = null
54
  * **search** - Query search term (‘s’). Default = null
 
55
  * **post_status** - Select status of the post. Default = 'publish'
56
  * **order** - Display posts in ASC(ascending) or DESC(descending) order. Default = ‘DESC’
57
  * **orderby** - Order posts by date, title, name, menu order, random, author, post ID or comment count. Default = ‘date’
@@ -251,6 +252,12 @@ How to install Ajax Load More.
251
  == Changelog ==
252
 
253
 
 
 
 
 
 
 
254
  = 2.6.2 =
255
  * NEW - Adding new ALM setting to move user to top of page on window load.
256
  * FIX - Fixed issue with Cache + SEO where initial user might end up caching multiple pages in a single query if the page requested was greater than 1.
3
  Donate link: http://connekthq.com/donate/
4
  Tags: ajax, query, loop, paging, filter, infinite scroll, infinite, dynamic, jquery, shortcode builder, shortcode, search, tags, category, post types, taxonomy, meta_query, post format, wmpl, archives, date
5
  Requires at least: 3.6
6
+ Tested up to: 4.2
7
+ Stable tag: 2.6.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
52
  * **post__in** - Comma separated list of post ID’s to include in query. Default = null
53
  * **exclude** - Comma separated list of post ID’s to exclude from query. Default = null
54
  * **search** - Query search term (‘s’). Default = null
55
+ * **custom_args** - A comma separated list of custom value:pair arguments. e.g. tag_slug__and:array(design), event_display:upcoming. Default = null
56
  * **post_status** - Select status of the post. Default = 'publish'
57
  * **order** - Display posts in ASC(ascending) or DESC(descending) order. Default = ‘DESC’
58
  * **orderby** - Order posts by date, title, name, menu order, random, author, post ID or comment count. Default = ‘date’
252
  == Changelog ==
253
 
254
 
255
+ = 2.6.3 =
256
+ * NEW - Added new shortcode parameter 'custom_args' which will let users pass custom query params. e.g. custom_args="order:custom_meta_key, tag_slug__and:array(design,development)"
257
+ * NEW - Added setting for implementing WP nonce for added security of Ajax functionality.
258
+ * Update - Removed WP nonce for ALM query as this was causing issues with various caching plugins.
259
+ * Update - Various UI improvements and enhancements
260
+
261
  = 2.6.2 =
262
  * NEW - Adding new ALM setting to move user to top of page on window load.
263
  * FIX - Fixed issue with Cache + SEO where initial user might end up caching multiple pages in a single query if the page requested was greater than 1.
admin/admin.php CHANGED
@@ -4,13 +4,9 @@
4
 
5
  add_action( 'admin_head', 'alm_admin_vars' );
6
  add_action( 'wp_ajax_alm_save_repeater', 'alm_save_repeater' ); // Ajax Save Repeater
7
- add_action( 'wp_ajax_nopriv_alm_save_repeater', 'alm_save_repeater' );
8
  add_action( 'wp_ajax_alm_update_repeater', 'alm_update_repeater' ); // Ajax Update Repeater
9
- add_action( 'wp_ajax_nopriv_alm_update_repeater', 'alm_update_repeater' );
10
  add_action( 'wp_ajax_alm_get_tax_terms', 'alm_get_tax_terms' ); // Ajax Get Taxonomy Terms
11
- add_action( 'wp_ajax_nopriv_alm_get_tax_terms', 'alm_get_tax_terms' );
12
  add_action( 'wp_ajax_alm_delete_cache', 'alm_delete_cache' ); // Delete Cache
13
- add_action( 'wp_ajax_nopriv_alm_delete_cache', 'alm_delete_cache' );
14
 
15
 
16
  /*
@@ -42,6 +38,15 @@ function alm_admin_vars() { ?>
42
 
43
  add_action('admin_init', 'alm_core_update');
44
  function alm_core_update() {
 
 
 
 
 
 
 
 
 
45
  global $wpdb;
46
  $table_name = $wpdb->prefix . "alm";
47
  // **********************************************
@@ -528,6 +533,14 @@ function alm_admin_init(){
528
  'alm_general_settings'
529
  );
530
 
 
 
 
 
 
 
 
 
531
  add_settings_field( // Scroll to top on load
532
  '_alm_scroll_top',
533
  __('Top of Page', ALM_NAME ),
@@ -843,13 +856,16 @@ function alm_btn_class_callback(){
843
  // Check if Disable CSS === true
844
  if(jQuery('input#alm_disable_css_input').is(":checked")){
845
  jQuery('select#alm_settings_btn_color').parent().parent().hide(); // Hide button color
 
846
  }
847
  jQuery('input#alm_disable_css_input').change(function() {
848
  var el = jQuery(this);
849
  if(el.is(":checked")) {
850
  el.parent().parent('tr').next('tr').hide(); // Hide button color
 
851
  }else{
852
  el.parent().parent('tr').next('tr').show(); // show button color
 
853
  }
854
  });
855
 
@@ -873,7 +889,28 @@ function _alm_scroll_top_callback(){
873
 
874
  $html = '<input type="hidden" name="alm_settings[_alm_scroll_top]" value="0" />';
875
  $html .= '<input type="checkbox" name="alm_settings[_alm_scroll_top]" id="_alm_scroll_top" value="1"'. (($options['_alm_scroll_top']) ? ' checked="checked"' : '') .' />';
876
- $html .= '<label for="_alm_scroll_top">'.__('On initial page load, move the user\'s browser window to the top of the screen.<span style="display:block">This <u>may</u> help prevent the loading of unnecessary posts.', ALM_NAME).'</label>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
877
 
878
  echo $html;
879
  }
4
 
5
  add_action( 'admin_head', 'alm_admin_vars' );
6
  add_action( 'wp_ajax_alm_save_repeater', 'alm_save_repeater' ); // Ajax Save Repeater
 
7
  add_action( 'wp_ajax_alm_update_repeater', 'alm_update_repeater' ); // Ajax Update Repeater
 
8
  add_action( 'wp_ajax_alm_get_tax_terms', 'alm_get_tax_terms' ); // Ajax Get Taxonomy Terms
 
9
  add_action( 'wp_ajax_alm_delete_cache', 'alm_delete_cache' ); // Delete Cache
 
10
 
11
 
12
  /*
38
 
39
  add_action('admin_init', 'alm_core_update');
40
  function alm_core_update() {
41
+
42
+
43
+ if( !get_option( 'alm_version' ) )
44
+ add_option( 'alm_version', ALM_VERSION ); // Add 'alm_version' to WP options table
45
+ else
46
+ update_option( 'alm_version', ALM_VERSION ); // Update 'alm_version'
47
+
48
+
49
+
50
  global $wpdb;
51
  $table_name = $wpdb->prefix . "alm";
52
  // **********************************************
533
  'alm_general_settings'
534
  );
535
 
536
+ add_settings_field( // Nonce security
537
+ '_alm_nonce_security',
538
+ __('Ajax Security', ALM_NAME ),
539
+ '_alm_nonce_security_callback',
540
+ 'ajax-load-more',
541
+ 'alm_general_settings'
542
+ );
543
+
544
  add_settings_field( // Scroll to top on load
545
  '_alm_scroll_top',
546
  __('Top of Page', ALM_NAME ),
856
  // Check if Disable CSS === true
857
  if(jQuery('input#alm_disable_css_input').is(":checked")){
858
  jQuery('select#alm_settings_btn_color').parent().parent().hide(); // Hide button color
859
+ jQuery('input.btn-classes').parent().parent().hide(); // Hide Button Classes
860
  }
861
  jQuery('input#alm_disable_css_input').change(function() {
862
  var el = jQuery(this);
863
  if(el.is(":checked")) {
864
  el.parent().parent('tr').next('tr').hide(); // Hide button color
865
+ el.parent().parent('tr').next('tr').next('tr').hide(); // Hide Button Classes
866
  }else{
867
  el.parent().parent('tr').next('tr').show(); // show button color
868
+ el.parent().parent('tr').next('tr').next('tr').show(); // show Button Classes
869
  }
870
  });
871
 
889
 
890
  $html = '<input type="hidden" name="alm_settings[_alm_scroll_top]" value="0" />';
891
  $html .= '<input type="checkbox" name="alm_settings[_alm_scroll_top]" id="_alm_scroll_top" value="1"'. (($options['_alm_scroll_top']) ? ' checked="checked"' : '') .' />';
892
+ $html .= '<label for="_alm_scroll_top">'.__('On initial page load, move the user\'s browser window to the top of the screen.<span style="display:block">This <u>may</u> help prevent the loading of unnecessary posts.</span>', ALM_NAME).'</label>';
893
+
894
+ echo $html;
895
+ }
896
+
897
+
898
+
899
+ /*
900
+ * _alm_nonce_security_callback
901
+ * Move window to top of screen on page load
902
+ *
903
+ * @since 2.6.3
904
+ */
905
+
906
+ function _alm_nonce_security_callback(){
907
+ $options = get_option( 'alm_settings' );
908
+ if(!isset($options['_alm_nonce_security']))
909
+ $options['_alm_nonce_security'] = '0';
910
+
911
+ $html = '<input type="hidden" name="alm_settings[_alm_nonce_security]" value="0" />';
912
+ $html .= '<input type="checkbox" name="alm_settings[_alm_nonce_security]" id="_alm_nonce_security" value="1"'. (($options['_alm_nonce_security']) ? ' checked="checked"' : '') .' />';
913
+ $html .= '<label for="_alm_nonce_security">'.__('Enable <a href="https://codex.wordpress.org/WordPress_Nonces" target="_blank">WP nonce</a> verification to help protect URLs against certain types of misuse, malicious or otherwise on each Ajax Load More query.', ALM_NAME).'</label>';
914
 
915
  echo $html;
916
  }
admin/css/admin.css CHANGED
@@ -316,6 +316,9 @@
316
 
317
  .ajax-load-more label{
318
  padding: 5px 0;
 
 
 
319
  }
320
 
321
 
@@ -1405,6 +1408,9 @@ table.highlight{
1405
  float: right;
1406
  opacity: 0;
1407
  transition: all 0.2s ease;
 
 
 
1408
  }
1409
  .repeaters .alm-delete a{
1410
  border-radius: 2px;
316
 
317
  .ajax-load-more label{
318
  padding: 5px 0;
319
+ -webkit-border-radius: 0;
320
+ -moz-border-radius: 0;
321
+ border-radius: 0;
322
  }
323
 
324
 
1408
  float: right;
1409
  opacity: 0;
1410
  transition: all 0.2s ease;
1411
+ position: absolute;
1412
+ right: 15px;
1413
+ bottom: 15px;
1414
  }
1415
  .repeaters .alm-delete a{
1416
  border-radius: 2px;
admin/css/select2.css CHANGED
@@ -140,7 +140,7 @@
140
 
141
  /* Search */
142
  .select2-search {
143
- /* display: none; */
144
  padding: 2px;
145
  display: block;
146
  background-color: #fff;
140
 
141
  /* Search */
142
  .select2-search {
143
+ display: none !important;
144
  padding: 2px;
145
  display: block;
146
  background-color: #fff;
admin/editor/editor-build.php CHANGED
@@ -2,11 +2,11 @@
2
  <html xmlns="http://www.w3.org/1999/xhtml">
3
  <head>
4
  <title>Ajax Load More: Shortcode Builder</title>
5
- <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
6
  <link rel="stylesheet" src="<?php echo includes_url($path); ?>js/tinymce/themes/advanced/skins/wp_theme/dialog.css"></link>
7
  <link rel="stylesheet" href="<?php echo ALM_ADMIN_URL; ?>css/admin.css" />
8
  <link rel="stylesheet" href="<?php echo ALM_ADMIN_URL; ?>css/select2.css" />
9
- <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.js"></script>
10
  <script type="text/javascript" src="<?php echo includes_url('/js/tinymce/tiny_mce_popup.js'); ?>"></script>
11
  <script type="text/javascript">
12
  // ****** Build Button Shortcode ****** //
2
  <html xmlns="http://www.w3.org/1999/xhtml">
3
  <head>
4
  <title>Ajax Load More: Shortcode Builder</title>
5
+ <link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
6
  <link rel="stylesheet" src="<?php echo includes_url($path); ?>js/tinymce/themes/advanced/skins/wp_theme/dialog.css"></link>
7
  <link rel="stylesheet" href="<?php echo ALM_ADMIN_URL; ?>css/admin.css" />
8
  <link rel="stylesheet" href="<?php echo ALM_ADMIN_URL; ?>css/select2.css" />
9
+ <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.js"></script>
10
  <script type="text/javascript" src="<?php echo includes_url('/js/tinymce/tiny_mce_popup.js'); ?>"></script>
11
  <script type="text/javascript">
12
  // ****** Build Button Shortcode ****** //
admin/editor/editor.php CHANGED
@@ -12,7 +12,7 @@ function alm_editor_init() {
12
 
13
 
14
  //Check for permissions
15
- add_action('wp_ajax_fscb', 'alm_ajax_tinymce' );
16
  function alm_ajax_tinymce(){
17
  // check for rights
18
  if ( ! current_user_can('edit_pages') && ! current_user_can('edit_posts') )
12
 
13
 
14
  //Check for permissions
15
+ add_action('wp_ajax_alm_lightbox', 'alm_ajax_tinymce' );
16
  function alm_ajax_tinymce(){
17
  // check for rights
18
  if ( ! current_user_can('edit_pages') && ! current_user_can('edit_posts') )
admin/editor/js/editor-btn.js CHANGED
@@ -6,10 +6,10 @@
6
  h = document.body.clientHeight / 1.3;
7
  if(w > 900) w = 900;
8
  if(h > 600) h = 600;
9
- editor.addCommand('mcebutton', function () {
10
  editor.windowManager.open({
11
  title: "Ajax Load More: Shortcode Builder",
12
- file: ajaxurl + '?action=fscb', // file that contains HTML for our modal window
13
  width: w, // size of our window
14
  height: h , // size of our window
15
  inline: 1
@@ -21,7 +21,7 @@
21
  // Register Shortcode Button
22
  editor.addButton('alm_shortcode_button', {
23
  title: 'Insert Ajax load More',
24
- cmd: 'mcebutton',
25
  classes: 'widget btn ajax-load-more-btn',
26
  image: url + '/../../img/add.png'
27
  });
6
  h = document.body.clientHeight / 1.3;
7
  if(w > 900) w = 900;
8
  if(h > 600) h = 600;
9
+ editor.addCommand('alm_mcebutton', function () {
10
  editor.windowManager.open({
11
  title: "Ajax Load More: Shortcode Builder",
12
+ file: ajaxurl + '?action=alm_lightbox', // file that contains HTML for our modal window
13
  width: w, // size of our window
14
  height: h , // size of our window
15
  inline: 1
21
  // Register Shortcode Button
22
  editor.addButton('alm_shortcode_button', {
23
  title: 'Insert Ajax load More',
24
+ cmd: 'alm_mcebutton',
25
  classes: 'widget btn ajax-load-more-btn',
26
  image: url + '/../../img/add.png'
27
  });
admin/img/bkg-chkbox_off.png CHANGED
Binary file
admin/img/bkg-chkbox_on.png CHANGED
Binary file
admin/img/bkg-chkbox_selected.png CHANGED
Binary file
admin/img/bkg-radio_off.png CHANGED
Binary file
admin/img/bkg-radio_on.png CHANGED
Binary file
admin/img/bkg-radio_selected.png CHANGED
Binary file
admin/shortcode-builder/js/shortcode-builder.js CHANGED
@@ -275,6 +275,16 @@ jQuery(document).ready(function($) {
275
  output += ' search="'+search+'"';
276
 
277
 
 
 
 
 
 
 
 
 
 
 
278
  // ---------------------------
279
  // - Meta Key
280
  // ---------------------------
275
  output += ' search="'+search+'"';
276
 
277
 
278
+ // ---------------------------
279
+ // - Custom Arguments
280
+ // ---------------------------
281
+
282
+ var custom_args = $('.custom-arguments input').val();
283
+ custom_args = $.trim(custom_args);
284
+ if(custom_args !== '')
285
+ output += ' custom_args="'+custom_args+'"';
286
+
287
+
288
  // ---------------------------
289
  // - Meta Key
290
  // ---------------------------
admin/shortcode-builder/shortcode-builder.php CHANGED
@@ -481,6 +481,21 @@
481
  </div>
482
  </div>
483
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
484
  </div>
485
 
486
  <!-- Post Parameters -->
@@ -554,7 +569,6 @@
554
  <option value="title">Title</option>
555
  <option value="name">Name (slug)</option>
556
  <option value="menu_order">Menu Order</option>
557
- <option value="rand">Random</option>
558
  <option value="author">Author</option>
559
  <option value="ID">ID</option>
560
  <option value="comment_count">Comment Count</option>
481
  </div>
482
  </div>
483
  </div>
484
+ </div>
485
+
486
+ <!-- Custom Arguments -->
487
+ <div class="row input custom-arguments" id="alm-custom-args">
488
+ <h3 class="heading"><?php _e('Custom Arguments', ALM_NAME); ?></h3>
489
+ <div class="expand-wrap">
490
+ <div class="section-title">
491
+ <p><?php _e('A comma separated list of custom value:pair arguments.<br/><br/>e.g. tag_slug__and:array(design), event_display:upcoming', ALM_NAME); ?></p>
492
+ </div>
493
+ <div class="wrap">
494
+ <div class="inner">
495
+ <input name="custom-args" class="alm_element" type="text" id="custom-args" value="" placeholder="<?php _e('event_display:upcoming', ALM_NAME); ?>">
496
+ </div>
497
+ </div>
498
+ </div>
499
  </div>
500
 
501
  <!-- Post Parameters -->
569
  <option value="title">Title</option>
570
  <option value="name">Name (slug)</option>
571
  <option value="menu_order">Menu Order</option>
 
572
  <option value="author">Author</option>
573
  <option value="ID">ID</option>
574
  <option value="comment_count">Comment Count</option>
ajax-load-more.php CHANGED
@@ -6,13 +6,13 @@ Description: A simple solution for lazy loading WordPress posts and pages with A
6
  Author: Darren Cooney
7
  Twitter: @KaptonKaos
8
  Author URI: http://connekthq.com
9
- Version: 2.6.2
10
  License: GPL
11
  Copyright: Darren Cooney & Connekt Media
12
  */
13
 
14
- define('ALM_VERSION', '2.6.2');
15
- define('ALM_RELEASE', 'April 8, 2015');
16
 
17
  /*
18
  * alm_install
@@ -184,6 +184,7 @@ if( !class_exists('AjaxLoadMore') ):
184
  'day' => '',
185
  'author' => '',
186
  'search' => '',
 
187
  'post_status' => '',
188
  'order' => 'DESC',
189
  'orderby' => 'date',
@@ -197,7 +198,7 @@ if( !class_exists('AjaxLoadMore') ):
197
  'pause' => 'false',
198
  'destroy_after' => '',
199
  'transition' => 'slide',
200
- 'button_label' => 'Older Posts',
201
  ), $atts));
202
 
203
  // Get container elements (ul | div)
@@ -265,7 +266,8 @@ if( !class_exists('AjaxLoadMore') ):
265
  'day' => $day,
266
  'author' => $author,
267
  'post__in' => $post__in,
268
- 'search' => $search,
 
269
  'post_status' => $post_status,
270
  'order' => $order,
271
  'orderby' => $orderby,
@@ -347,6 +349,7 @@ if( !class_exists('AjaxLoadMore') ):
347
  $ajaxloadmore .= ' data-post-in="'.$post__in.'"';
348
  $ajaxloadmore .= ' data-exclude="'.$exclude.'"';
349
  $ajaxloadmore .= ' data-search="'.$search.'"';
 
350
  $ajaxloadmore .= ' data-post-status="'.$post_status.'"';
351
  $ajaxloadmore .= ' data-order="'.$order.'"';
352
  $ajaxloadmore .= ' data-orderby="'.$orderby.'"';
@@ -434,10 +437,20 @@ if( !class_exists('AjaxLoadMore') ):
434
  function alm_query_posts() {
435
 
436
  $nonce = $_GET['nonce'];
437
- if(!is_user_logged_in()){ // Skip nonce verification if user is logged in
438
- // Check our nonce, if they don't match then bounce!
439
- if (! wp_verify_nonce( $nonce, 'ajax_load_more_nonce' )) die('Error, could not verify WP nonce.');
 
 
 
 
 
 
 
 
 
440
  }
 
441
 
442
  $cache_id = (isset($_GET['cache_id'])) ? $_GET['cache_id'] : '';
443
 
@@ -470,7 +483,8 @@ if( !class_exists('AjaxLoadMore') ):
470
  $meta_compare = $_GET['meta_compare'];
471
  if($meta_compare == '') $meta_compare = 'IN';
472
 
473
- $s = (isset($_GET['search'])) ? $_GET['search'] : '';
 
474
  $author_id = (isset($_GET['author'])) ? $_GET['author'] : '';
475
 
476
  // Ordering
@@ -585,6 +599,16 @@ if( !class_exists('AjaxLoadMore') ):
585
  if(!empty($s)){
586
  $args['s'] = $s;
587
  }
 
 
 
 
 
 
 
 
 
 
588
 
589
  // Meta_key, used for ordering by meta value
590
  if(!empty($meta_key)){
@@ -647,7 +671,7 @@ if( !class_exists('AjaxLoadMore') ):
647
  // If cache is enabled and seo_start_page is 1 (meaning, a user has not requested /page/12/)
648
  // - Only create cached files if the user visits pages in order 1, 2, 3 etc.
649
 
650
- if(!empty($cache_id) && has_action('alm_cache_file') && $seo_start_page == 1){
651
  apply_filters('alm_cache_file', $cache_id, $page, $page_cache);
652
  }
653
 
6
  Author: Darren Cooney
7
  Twitter: @KaptonKaos
8
  Author URI: http://connekthq.com
9
+ Version: 2.6.3
10
  License: GPL
11
  Copyright: Darren Cooney & Connekt Media
12
  */
13
 
14
+ define('ALM_VERSION', '2.6.3');
15
+ define('ALM_RELEASE', 'April 26, 2015');
16
 
17
  /*
18
  * alm_install
184
  'day' => '',
185
  'author' => '',
186
  'search' => '',
187
+ 'custom_args' => '',
188
  'post_status' => '',
189
  'order' => 'DESC',
190
  'orderby' => 'date',
198
  'pause' => 'false',
199
  'destroy_after' => '',
200
  'transition' => 'slide',
201
+ 'button_label' => __('Older Posts', ALM_NAME),
202
  ), $atts));
203
 
204
  // Get container elements (ul | div)
266
  'day' => $day,
267
  'author' => $author,
268
  'post__in' => $post__in,
269
+ 'search' => $search,
270
+ 'custom_args' => $custom_args,
271
  'post_status' => $post_status,
272
  'order' => $order,
273
  'orderby' => $orderby,
349
  $ajaxloadmore .= ' data-post-in="'.$post__in.'"';
350
  $ajaxloadmore .= ' data-exclude="'.$exclude.'"';
351
  $ajaxloadmore .= ' data-search="'.$search.'"';
352
+ $ajaxloadmore .= ' data-custom-args="'.$custom_args.'"';
353
  $ajaxloadmore .= ' data-post-status="'.$post_status.'"';
354
  $ajaxloadmore .= ' data-order="'.$order.'"';
355
  $ajaxloadmore .= ' data-orderby="'.$orderby.'"';
437
  function alm_query_posts() {
438
 
439
  $nonce = $_GET['nonce'];
440
+
441
+ $options = get_option( 'alm_settings' );
442
+
443
+ if(!is_user_logged_in()){ // Skip nonce verification if user is logged in
444
+
445
+ $options = get_option( 'alm_settings' );
446
+
447
+ // check alm_settings for _alm_nonce_security
448
+ if(isset($options['_alm_nonce_security']) & $options['_alm_nonce_security'] == '1'){
449
+ if (! wp_verify_nonce( $nonce, 'ajax_load_more_nonce' )) // Check our nonce, if they don't match then bounce!
450
+ die('Error, could not verify WP nonce.');
451
+ }
452
  }
453
+
454
 
455
  $cache_id = (isset($_GET['cache_id'])) ? $_GET['cache_id'] : '';
456
 
483
  $meta_compare = $_GET['meta_compare'];
484
  if($meta_compare == '') $meta_compare = 'IN';
485
 
486
+ $s = (isset($_GET['search'])) ? $_GET['search'] : '';
487
+ $custom_args = (isset($_GET['custom_args'])) ? $_GET['custom_args'] : '';
488
  $author_id = (isset($_GET['author'])) ? $_GET['author'] : '';
489
 
490
  // Ordering
599
  if(!empty($s)){
600
  $args['s'] = $s;
601
  }
602
+
603
+ // Custom Args
604
+
605
+ if(!empty($custom_args)){
606
+ $custom_args_array = explode(",",$custom_args); // Split the $custom_args at ','
607
+ foreach($custom_args_array as $argument){ // Loop the $custom_args
608
+ $argument = explode(":",$argument); // Split the $custom_args at ':'
609
+ $args[$argument[0]] = $argument[1];
610
+ }
611
+ }
612
 
613
  // Meta_key, used for ordering by meta value
614
  if(!empty($meta_key)){
671
  // If cache is enabled and seo_start_page is 1 (meaning, a user has not requested /page/12/)
672
  // - Only create cached files if the user visits pages in order 1, 2, 3 etc.
673
 
674
+ if(!empty($cache_id) && has_action('alm_cache_installed') && $seo_start_page == 1){
675
  apply_filters('alm_cache_file', $cache_id, $page, $page_cache);
676
  }
677
 
core/js/ajax-load-more.js CHANGED
@@ -267,6 +267,7 @@
267
  post__in: alm.content.attr('data-post-in'),
268
  exclude: alm.content.attr('data-exclude'),
269
  search: alm.content.attr('data-search'),
 
270
  posts_per_page: alm.posts_per_page,
271
  pageNumber: alm.page,
272
  offset: alm.offset,
267
  post__in: alm.content.attr('data-post-in'),
268
  exclude: alm.content.attr('data-exclude'),
269
  search: alm.content.attr('data-search'),
270
+ custom_args: alm.content.attr('data-custom-args'),
271
  posts_per_page: alm.posts_per_page,
272
  pageNumber: alm.page,
273
  offset: alm.offset,
core/js/ajax-load-more.min.js CHANGED
@@ -39,7 +39,7 @@ alm.button_class='';else
39
  alm.button_class=' '+alm.content.attr('data-button-class');if(alm.content.attr('data-scroll')===undefined)
40
  alm.scroll=true;else if(alm.content.attr('data-scroll')==='false')
41
  alm.scroll=false;else
42
- alm.scroll=true;alm.post_type=alm.content.attr('data-post-type');alm.post_type=alm.post_type.split(",");alm.el.append('<div class="'+alm.prefix+'btn-wrap"><button id="load-more" class="'+alm.prefix+'load-more-btn more'+alm.button_class+'">'+alm.button_label+'</button></div>');alm.button=$('.alm-load-more-btn',alm.el);alm.AjaxLoadMore.loadPosts=function(){if(!alm.disable_ajax){alm.button.addClass('loading');alm.loading=true;if(alm.cache==='true'&&!alm.cache_logged_in){if(alm.init&&alm.seo&&alm.isPaged){alm.AjaxLoadMore.ajax();}else{var cachePage=alm.cache_path+'/page-'+alm.page+'.html';$.get(cachePage,function(data){alm.AjaxLoadMore.success(data);}).fail(function(){alm.AjaxLoadMore.ajax();});}}else{alm.AjaxLoadMore.ajax();}}};alm.AjaxLoadMore.ajax=function(){$.ajax({type:"GET",url:alm_localize.ajaxurl,data:{action:'ajax_load_more_init',nonce:alm_localize.alm_nonce,cache_id:alm.cache_id,repeater:alm.repeater,postType: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'),meta_key:alm.content.attr('data-meta-key'),meta_value:alm.content.attr('data-meta-value'),meta_compare:alm.content.attr('data-meta-compare'),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'),exclude:alm.content.attr('data-exclude'),search:alm.content.attr('data-search'),posts_per_page:alm.posts_per_page,pageNumber:alm.page,offset:alm.offset,preloaded:alm.preloaded,preloaded_amount:alm.preloaded_amount,seo_start_page:alm.start_page,lang:alm.lang},dataType:"html",beforeSend:function(){if(alm.page!=1){alm.button.addClass('loading');}},success:function(data){alm.AjaxLoadMore.success(data);},error:function(jqXHR,textStatus,errorThrown){alm.AjaxLoadMore.error(jqXHR,textStatus,errorThrown);}});};alm.AjaxLoadMore.success=function(data){alm.data=$(data);if(alm.init){alm.button.text(alm.button_label);alm.init=false;if(!alm.data.length>0){if($.isFunction($.fn.almEmpty)){$.fn.almEmpty(alm);}}
43
  if(alm.isPaged){alm.posts_per_page=alm.content.attr('data-posts-per-page');alm.page=alm.start_page-1;}}
44
  if(alm.data.length>0){alm.el=$('<div class="'+alm.prefix+'reveal"/>');alm.el.append(alm.data).hide();alm.content.append(alm.el);if(alm.transition==='fade'){alm.el.fadeIn(alm.speed,'alm_easeInOutQuad',function(){alm.loading=false;alm.button.delay(alm.speed).removeClass('loading');if(alm.data.length<alm.posts_per_page){alm.finished=true;alm.button.addClass('done');}});}else if(alm.transition==='none'){alm.el.show();alm.loading=false;alm.button.delay(alm.speed).removeClass('loading');if(alm.data.length<alm.posts_per_page){alm.finished=true;alm.button.addClass('done');}}else{alm.el.slideDown(alm.speed,'alm_easeInOutQuad',function(){alm.loading=false;alm.button.delay(alm.speed).removeClass('loading');if(alm.data.length<alm.posts_per_page){alm.finished=true;alm.button.addClass('done');}});}
45
  if($.isFunction($.fn.almComplete)){$.fn.almComplete(alm);}
39
  alm.button_class=' '+alm.content.attr('data-button-class');if(alm.content.attr('data-scroll')===undefined)
40
  alm.scroll=true;else if(alm.content.attr('data-scroll')==='false')
41
  alm.scroll=false;else
42
+ alm.scroll=true;alm.post_type=alm.content.attr('data-post-type');alm.post_type=alm.post_type.split(",");alm.el.append('<div class="'+alm.prefix+'btn-wrap"><button id="load-more" class="'+alm.prefix+'load-more-btn more'+alm.button_class+'">'+alm.button_label+'</button></div>');alm.button=$('.alm-load-more-btn',alm.el);alm.AjaxLoadMore.loadPosts=function(){if(!alm.disable_ajax){alm.button.addClass('loading');alm.loading=true;if(alm.cache==='true'&&!alm.cache_logged_in){if(alm.init&&alm.seo&&alm.isPaged){alm.AjaxLoadMore.ajax();}else{var cachePage=alm.cache_path+'/page-'+alm.page+'.html';$.get(cachePage,function(data){alm.AjaxLoadMore.success(data);}).fail(function(){alm.AjaxLoadMore.ajax();});}}else{alm.AjaxLoadMore.ajax();}}};alm.AjaxLoadMore.ajax=function(){$.ajax({type:"GET",url:alm_localize.ajaxurl,data:{action:'ajax_load_more_init',nonce:alm_localize.alm_nonce,cache_id:alm.cache_id,repeater:alm.repeater,postType: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'),meta_key:alm.content.attr('data-meta-key'),meta_value:alm.content.attr('data-meta-value'),meta_compare:alm.content.attr('data-meta-compare'),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'),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,pageNumber:alm.page,offset:alm.offset,preloaded:alm.preloaded,preloaded_amount:alm.preloaded_amount,seo_start_page:alm.start_page,lang:alm.lang},dataType:"html",beforeSend:function(){if(alm.page!=1){alm.button.addClass('loading');}},success:function(data){alm.AjaxLoadMore.success(data);},error:function(jqXHR,textStatus,errorThrown){alm.AjaxLoadMore.error(jqXHR,textStatus,errorThrown);}});};alm.AjaxLoadMore.success=function(data){alm.data=$(data);if(alm.init){alm.button.text(alm.button_label);alm.init=false;if(!alm.data.length>0){if($.isFunction($.fn.almEmpty)){$.fn.almEmpty(alm);}}
43
  if(alm.isPaged){alm.posts_per_page=alm.content.attr('data-posts-per-page');alm.page=alm.start_page-1;}}
44
  if(alm.data.length>0){alm.el=$('<div class="'+alm.prefix+'reveal"/>');alm.el.append(alm.data).hide();alm.content.append(alm.el);if(alm.transition==='fade'){alm.el.fadeIn(alm.speed,'alm_easeInOutQuad',function(){alm.loading=false;alm.button.delay(alm.speed).removeClass('loading');if(alm.data.length<alm.posts_per_page){alm.finished=true;alm.button.addClass('done');}});}else if(alm.transition==='none'){alm.el.show();alm.loading=false;alm.button.delay(alm.speed).removeClass('loading');if(alm.data.length<alm.posts_per_page){alm.finished=true;alm.button.addClass('done');}}else{alm.el.slideDown(alm.speed,'alm_easeInOutQuad',function(){alm.loading=false;alm.button.delay(alm.speed).removeClass('loading');if(alm.data.length<alm.posts_per_page){alm.finished=true;alm.button.addClass('done');}});}
45
  if($.isFunction($.fn.almComplete)){$.fn.almComplete(alm);}
lang/ajax-load-more.pot CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Ajax Load More\n"
4
- "POT-Creation-Date: 2015-04-08 09:43-0500\n"
5
- "PO-Revision-Date: 2015-04-08 09:43-0500\n"
6
  "Last-Translator: Darren Cooney <darren.cooney@gmail.com>\n"
7
  "Language-Team: \n"
8
  "Language: en_CA\n"
@@ -15,195 +15,206 @@ msgstr ""
15
  "X-Poedit-KeywordsList: __;_e\n"
16
  "X-Poedit-SearchPath-0: ..\n"
17
 
18
- #: ../admin/admin.php:80
19
  msgid "Unable to open the default repeater template."
20
  msgstr ""
21
 
22
- #: ../admin/admin.php:81
23
  msgid "Unable to save the default repeater."
24
  msgstr ""
25
 
26
- #: ../admin/admin.php:352
27
  msgid "Error Opening File"
28
  msgstr ""
29
 
30
- #: ../admin/admin.php:354 ../admin/admin.php:358
31
  msgid ""
32
  "Please check your file path and ensure your server is configured to allow "
33
  "Ajax Load More to read and write files within the /ajax-load-more/ plugin "
34
  "directory"
35
  msgstr ""
36
 
37
- #: ../admin/admin.php:356
38
  msgid "Error Saving File"
39
  msgstr ""
40
 
41
- #: ../admin/admin.php:393
42
  msgid "Error Writing File"
43
  msgstr ""
44
 
45
- #: ../admin/admin.php:501
46
  msgid "Container Type"
47
  msgstr ""
48
 
49
- #: ../admin/admin.php:509
50
  msgid "Container Classes"
51
  msgstr ""
52
 
53
- #: ../admin/admin.php:517
54
  msgid "Editor Button"
55
  msgstr ""
56
 
57
- #: ../admin/admin.php:525
58
  msgid "Dynamic Content"
59
  msgstr ""
60
 
61
- #: ../admin/admin.php:533
 
 
 
 
62
  msgid "Top of Page"
63
  msgstr ""
64
 
65
- #: ../admin/admin.php:541
66
  msgid "Disable CSS"
67
  msgstr ""
68
 
69
- #: ../admin/admin.php:549
70
  msgid "Button Color"
71
  msgstr ""
72
 
73
- #: ../admin/admin.php:557
74
  msgid "Button Classes"
75
  msgstr ""
76
 
77
- #: ../admin/admin.php:573
78
  msgid "Published Posts"
79
  msgstr ""
80
 
81
- #: ../admin/admin.php:580
82
  msgid "Known Users"
83
  msgstr ""
84
 
85
- #: ../admin/admin.php:599
86
  msgid "SEO Permalinks"
87
  msgstr ""
88
 
89
- #: ../admin/admin.php:606
90
  msgid "Scroll to Page"
91
  msgstr ""
92
 
93
- #: ../admin/admin.php:613
94
  msgid "Scroll Speed"
95
  msgstr ""
96
 
97
- #: ../admin/admin.php:620
98
  msgid "Scroll Top"
99
  msgstr ""
100
 
101
- #: ../admin/admin.php:639
102
  msgid "Customize your version of Ajax Load More by updating the fields below."
103
  msgstr ""
104
 
105
- #: ../admin/admin.php:670
106
  msgid "I want to use my own CSS styles."
107
  msgstr ""
108
 
109
- #: ../admin/admin.php:670
110
  msgid "View Ajax Load More CSS"
111
  msgstr ""
112
 
113
- #: ../admin/admin.php:690
114
  msgid "Hide shortcode button in WYSIWYG editor."
115
  msgstr ""
116
 
117
- #: ../admin/admin.php:711
118
  msgid ""
119
  "Disable dynamic population of categories, tags and authors in the Shortcode "
120
  "Builder.<span style=\"display:block\">Recommended if you have an "
121
  "extraordinary number of categories, tags and/or authors."
122
  msgstr ""
123
 
124
- #: ../admin/admin.php:727
125
  msgid "Add classes to Ajax Load More container."
126
  msgstr ""
127
 
128
- #: ../admin/admin.php:749 ../admin/admin.php:752
129
  msgid "Ajax Posts Here"
130
  msgstr ""
131
 
132
- #: ../admin/admin.php:796
133
  msgid "Choose your <strong>Load More</strong> button color"
134
  msgstr ""
135
 
136
- #: ../admin/admin.php:807
137
  msgid "Preview"
138
  msgstr ""
139
 
140
- #: ../admin/admin.php:826
141
  msgid "Add classes to your <strong>Load More</strong> button"
142
  msgstr ""
143
 
144
- #: ../admin/admin.php:876
145
  msgid ""
146
  "On initial page load, move the user's browser window to the top of the "
147
  "screen.<span style=\"display:block\">This <u>may</u> help prevent the "
148
- "loading of unnecessary posts."
149
  msgstr ""
150
 
151
- #: ../admin/admin.php:891
 
 
 
 
 
 
 
152
  msgid ""
153
  "Customize your installation of the <a href=\"http://connekthq.com/plugins/"
154
  "ajax-load-more/cache/\">Cache</a> add-on."
155
  msgstr ""
156
 
157
- #: ../admin/admin.php:913
158
  msgid "Delete cache when new posts are published."
159
  msgstr ""
160
 
161
- #: ../admin/admin.php:914
162
  msgid ""
163
  "Cache will be fully cleared whenever a post, page or Custom Post Type is "
164
  "published or updated."
165
  msgstr ""
166
 
167
- #: ../admin/admin.php:939
168
  msgid "Don't cache files for logged in users."
169
  msgstr ""
170
 
171
- #: ../admin/admin.php:940
172
  msgid ""
173
  "Logged in users will retrieve content directly from the database and will "
174
  "not view any cached content."
175
  msgstr ""
176
 
177
- #: ../admin/admin.php:957
178
  msgid ""
179
  "Customize your installation of the <a href=\"http://connekthq.com/plugins/"
180
  "ajax-load-more/seo/\">Search Engine Optimization</a> add-on."
181
  msgstr ""
182
 
183
- #: ../admin/admin.php:981
184
  msgid ""
185
  "Pretty Permalinks (mod_rewrite) <br/><span>http://example.com/2012/post-name/"
186
  "</span>"
187
  msgstr ""
188
 
189
- #: ../admin/admin.php:984
190
  msgid "Default (Ugly) <br/><span>http://example.com/?p=N</span>"
191
  msgstr ""
192
 
193
- #: ../admin/admin.php:1008
194
  msgid ""
195
  "Enable window scrolling.<br/><span>If scrolling is enabled, the users window "
196
  "will scroll to the current page on 'Load More' button click and while "
197
  "interacting with the forward and back browser buttons.</span>"
198
  msgstr ""
199
 
200
- #: ../admin/admin.php:1030
201
  msgid ""
202
  "Set the scrolling speed of the page in milliseconds. <br/><span>e.g. 1 "
203
  "second = 1000</span>"
204
  msgstr ""
205
 
206
- #: ../admin/admin.php:1051
207
  msgid "Set the scrolltop position of the window when scrolling to post."
208
  msgstr ""
209
 
@@ -370,16 +381,16 @@ msgstr ""
370
  #: ../admin/shortcode-builder/shortcode-builder.php:27
371
  #: ../admin/shortcode-builder/shortcode-builder.php:69
372
  #: ../admin/shortcode-builder/shortcode-builder.php:110
373
- #: ../admin/shortcode-builder/shortcode-builder.php:609
374
- #: ../admin/shortcode-builder/shortcode-builder.php:634
375
  msgid "True"
376
  msgstr ""
377
 
378
  #: ../admin/shortcode-builder/shortcode-builder.php:31
379
  #: ../admin/shortcode-builder/shortcode-builder.php:73
380
  #: ../admin/shortcode-builder/shortcode-builder.php:114
381
- #: ../admin/shortcode-builder/shortcode-builder.php:613
382
- #: ../admin/shortcode-builder/shortcode-builder.php:638
383
  msgid "False"
384
  msgstr ""
385
 
@@ -590,119 +601,134 @@ msgid "Enter search term"
590
  msgstr ""
591
 
592
  #: ../admin/shortcode-builder/shortcode-builder.php:488
 
 
 
 
 
 
 
 
 
 
 
 
 
 
593
  msgid "Post Parameters"
594
  msgstr ""
595
 
596
- #: ../admin/shortcode-builder/shortcode-builder.php:492
597
  msgid "A comma separated list of post ID's to query."
598
  msgstr ""
599
 
600
- #: ../admin/shortcode-builder/shortcode-builder.php:496
601
  msgid "225, 340, 818, etc..."
602
  msgstr ""
603
 
604
- #: ../admin/shortcode-builder/shortcode-builder.php:503
605
  msgid "A comma separated list of post ID's to exclude from query."
606
  msgstr ""
607
 
608
- #: ../admin/shortcode-builder/shortcode-builder.php:515
609
  msgid "Post Status"
610
  msgstr ""
611
 
612
- #: ../admin/shortcode-builder/shortcode-builder.php:518
613
  msgid "Select status of the post."
614
  msgstr ""
615
 
616
- #: ../admin/shortcode-builder/shortcode-builder.php:537
617
  msgid "Ordering"
618
  msgstr ""
619
 
620
- #: ../admin/shortcode-builder/shortcode-builder.php:540
621
  msgid "Sort posts by Order and Orderby parameters."
622
  msgstr ""
623
 
624
- #: ../admin/shortcode-builder/shortcode-builder.php:569
625
  msgid "Offset"
626
  msgstr ""
627
 
628
- #: ../admin/shortcode-builder/shortcode-builder.php:572
629
  msgid "Offset the initial WordPress query by <em>'n'</em> number of posts"
630
  msgstr ""
631
 
632
- #: ../admin/shortcode-builder/shortcode-builder.php:584
633
  msgid "Posts Per Page"
634
  msgstr ""
635
 
636
- #: ../admin/shortcode-builder/shortcode-builder.php:587
637
  msgid "Select the number of posts to load with each request."
638
  msgstr ""
639
 
640
- #: ../admin/shortcode-builder/shortcode-builder.php:599
641
  msgid "Pause"
642
  msgstr ""
643
 
644
- #: ../admin/shortcode-builder/shortcode-builder.php:602
645
  msgid ""
646
  "Do <u>NOT</u> load any posts until user the clicks <em>Load More</em> button."
647
  msgstr ""
648
 
649
- #: ../admin/shortcode-builder/shortcode-builder.php:623
650
  msgid "Scrolling"
651
  msgstr ""
652
 
653
- #: ../admin/shortcode-builder/shortcode-builder.php:627
654
  msgid "Load more posts as the user scrolls the page."
655
  msgstr ""
656
 
657
- #: ../admin/shortcode-builder/shortcode-builder.php:649
658
  msgid ""
659
  "The distance from the bottom of the screen to trigger the loading of posts "
660
  "while scrolling. (Default = 150)"
661
  msgstr ""
662
 
663
- #: ../admin/shortcode-builder/shortcode-builder.php:662
664
  msgid "Maximum number of pages to load while scrolling. (0 = unlimited)"
665
  msgstr ""
666
 
667
- #: ../admin/shortcode-builder/shortcode-builder.php:675
668
  msgid "Transition"
669
  msgstr ""
670
 
671
- #: ../admin/shortcode-builder/shortcode-builder.php:678
672
  msgid "Select a loading transition."
673
  msgstr ""
674
 
675
- #: ../admin/shortcode-builder/shortcode-builder.php:685
676
  msgid "Slide"
677
  msgstr ""
678
 
679
- #: ../admin/shortcode-builder/shortcode-builder.php:689
680
  msgid "Fade"
681
  msgstr ""
682
 
683
- #: ../admin/shortcode-builder/shortcode-builder.php:693
684
  msgid "None"
685
  msgstr ""
686
 
687
- #: ../admin/shortcode-builder/shortcode-builder.php:703
688
  msgid "Destroy After"
689
  msgstr ""
690
 
691
- #: ../admin/shortcode-builder/shortcode-builder.php:706
692
  msgid ""
693
  "Remove ajax load more functionality after '<em>n</em>' number of pages have "
694
  "been loaded."
695
  msgstr ""
696
 
697
- #: ../admin/shortcode-builder/shortcode-builder.php:718
698
  msgid "Button Label"
699
  msgstr ""
700
 
701
- #: ../admin/shortcode-builder/shortcode-builder.php:721
702
  msgid "Customize the <em>Load More</em> button label."
703
  msgstr ""
704
 
705
- #: ../admin/shortcode-builder/shortcode-builder.php:725
 
706
  msgid "Older Posts"
707
  msgstr ""
708
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Ajax Load More\n"
4
+ "POT-Creation-Date: 2015-04-26 11:54-0500\n"
5
+ "PO-Revision-Date: 2015-04-26 11:54-0500\n"
6
  "Last-Translator: Darren Cooney <darren.cooney@gmail.com>\n"
7
  "Language-Team: \n"
8
  "Language: en_CA\n"
15
  "X-Poedit-KeywordsList: __;_e\n"
16
  "X-Poedit-SearchPath-0: ..\n"
17
 
18
+ #: ../admin/admin.php:85
19
  msgid "Unable to open the default repeater template."
20
  msgstr ""
21
 
22
+ #: ../admin/admin.php:86
23
  msgid "Unable to save the default repeater."
24
  msgstr ""
25
 
26
+ #: ../admin/admin.php:357
27
  msgid "Error Opening File"
28
  msgstr ""
29
 
30
+ #: ../admin/admin.php:359 ../admin/admin.php:363
31
  msgid ""
32
  "Please check your file path and ensure your server is configured to allow "
33
  "Ajax Load More to read and write files within the /ajax-load-more/ plugin "
34
  "directory"
35
  msgstr ""
36
 
37
+ #: ../admin/admin.php:361
38
  msgid "Error Saving File"
39
  msgstr ""
40
 
41
+ #: ../admin/admin.php:398
42
  msgid "Error Writing File"
43
  msgstr ""
44
 
45
+ #: ../admin/admin.php:506
46
  msgid "Container Type"
47
  msgstr ""
48
 
49
+ #: ../admin/admin.php:514
50
  msgid "Container Classes"
51
  msgstr ""
52
 
53
+ #: ../admin/admin.php:522
54
  msgid "Editor Button"
55
  msgstr ""
56
 
57
+ #: ../admin/admin.php:530
58
  msgid "Dynamic Content"
59
  msgstr ""
60
 
61
+ #: ../admin/admin.php:538
62
+ msgid "Ajax Security"
63
+ msgstr ""
64
+
65
+ #: ../admin/admin.php:546
66
  msgid "Top of Page"
67
  msgstr ""
68
 
69
+ #: ../admin/admin.php:554
70
  msgid "Disable CSS"
71
  msgstr ""
72
 
73
+ #: ../admin/admin.php:562
74
  msgid "Button Color"
75
  msgstr ""
76
 
77
+ #: ../admin/admin.php:570
78
  msgid "Button Classes"
79
  msgstr ""
80
 
81
+ #: ../admin/admin.php:586
82
  msgid "Published Posts"
83
  msgstr ""
84
 
85
+ #: ../admin/admin.php:593
86
  msgid "Known Users"
87
  msgstr ""
88
 
89
+ #: ../admin/admin.php:612
90
  msgid "SEO Permalinks"
91
  msgstr ""
92
 
93
+ #: ../admin/admin.php:619
94
  msgid "Scroll to Page"
95
  msgstr ""
96
 
97
+ #: ../admin/admin.php:626
98
  msgid "Scroll Speed"
99
  msgstr ""
100
 
101
+ #: ../admin/admin.php:633
102
  msgid "Scroll Top"
103
  msgstr ""
104
 
105
+ #: ../admin/admin.php:652
106
  msgid "Customize your version of Ajax Load More by updating the fields below."
107
  msgstr ""
108
 
109
+ #: ../admin/admin.php:683
110
  msgid "I want to use my own CSS styles."
111
  msgstr ""
112
 
113
+ #: ../admin/admin.php:683
114
  msgid "View Ajax Load More CSS"
115
  msgstr ""
116
 
117
+ #: ../admin/admin.php:703
118
  msgid "Hide shortcode button in WYSIWYG editor."
119
  msgstr ""
120
 
121
+ #: ../admin/admin.php:724
122
  msgid ""
123
  "Disable dynamic population of categories, tags and authors in the Shortcode "
124
  "Builder.<span style=\"display:block\">Recommended if you have an "
125
  "extraordinary number of categories, tags and/or authors."
126
  msgstr ""
127
 
128
+ #: ../admin/admin.php:740
129
  msgid "Add classes to Ajax Load More container."
130
  msgstr ""
131
 
132
+ #: ../admin/admin.php:762 ../admin/admin.php:765
133
  msgid "Ajax Posts Here"
134
  msgstr ""
135
 
136
+ #: ../admin/admin.php:809
137
  msgid "Choose your <strong>Load More</strong> button color"
138
  msgstr ""
139
 
140
+ #: ../admin/admin.php:820
141
  msgid "Preview"
142
  msgstr ""
143
 
144
+ #: ../admin/admin.php:839
145
  msgid "Add classes to your <strong>Load More</strong> button"
146
  msgstr ""
147
 
148
+ #: ../admin/admin.php:892
149
  msgid ""
150
  "On initial page load, move the user's browser window to the top of the "
151
  "screen.<span style=\"display:block\">This <u>may</u> help prevent the "
152
+ "loading of unnecessary posts.</span>"
153
  msgstr ""
154
 
155
+ #: ../admin/admin.php:913
156
+ msgid ""
157
+ "Enable <a href=\"https://codex.wordpress.org/WordPress_Nonces\" target="
158
+ "\"_blank\">WP nonce</a> verification to help protect URLs against certain "
159
+ "types of misuse, malicious or otherwise on each Ajax Load More query."
160
+ msgstr ""
161
+
162
+ #: ../admin/admin.php:928
163
  msgid ""
164
  "Customize your installation of the <a href=\"http://connekthq.com/plugins/"
165
  "ajax-load-more/cache/\">Cache</a> add-on."
166
  msgstr ""
167
 
168
+ #: ../admin/admin.php:950
169
  msgid "Delete cache when new posts are published."
170
  msgstr ""
171
 
172
+ #: ../admin/admin.php:951
173
  msgid ""
174
  "Cache will be fully cleared whenever a post, page or Custom Post Type is "
175
  "published or updated."
176
  msgstr ""
177
 
178
+ #: ../admin/admin.php:976
179
  msgid "Don't cache files for logged in users."
180
  msgstr ""
181
 
182
+ #: ../admin/admin.php:977
183
  msgid ""
184
  "Logged in users will retrieve content directly from the database and will "
185
  "not view any cached content."
186
  msgstr ""
187
 
188
+ #: ../admin/admin.php:994
189
  msgid ""
190
  "Customize your installation of the <a href=\"http://connekthq.com/plugins/"
191
  "ajax-load-more/seo/\">Search Engine Optimization</a> add-on."
192
  msgstr ""
193
 
194
+ #: ../admin/admin.php:1018
195
  msgid ""
196
  "Pretty Permalinks (mod_rewrite) <br/><span>http://example.com/2012/post-name/"
197
  "</span>"
198
  msgstr ""
199
 
200
+ #: ../admin/admin.php:1021
201
  msgid "Default (Ugly) <br/><span>http://example.com/?p=N</span>"
202
  msgstr ""
203
 
204
+ #: ../admin/admin.php:1045
205
  msgid ""
206
  "Enable window scrolling.<br/><span>If scrolling is enabled, the users window "
207
  "will scroll to the current page on 'Load More' button click and while "
208
  "interacting with the forward and back browser buttons.</span>"
209
  msgstr ""
210
 
211
+ #: ../admin/admin.php:1067
212
  msgid ""
213
  "Set the scrolling speed of the page in milliseconds. <br/><span>e.g. 1 "
214
  "second = 1000</span>"
215
  msgstr ""
216
 
217
+ #: ../admin/admin.php:1088
218
  msgid "Set the scrolltop position of the window when scrolling to post."
219
  msgstr ""
220
 
381
  #: ../admin/shortcode-builder/shortcode-builder.php:27
382
  #: ../admin/shortcode-builder/shortcode-builder.php:69
383
  #: ../admin/shortcode-builder/shortcode-builder.php:110
384
+ #: ../admin/shortcode-builder/shortcode-builder.php:623
385
+ #: ../admin/shortcode-builder/shortcode-builder.php:648
386
  msgid "True"
387
  msgstr ""
388
 
389
  #: ../admin/shortcode-builder/shortcode-builder.php:31
390
  #: ../admin/shortcode-builder/shortcode-builder.php:73
391
  #: ../admin/shortcode-builder/shortcode-builder.php:114
392
+ #: ../admin/shortcode-builder/shortcode-builder.php:627
393
+ #: ../admin/shortcode-builder/shortcode-builder.php:652
394
  msgid "False"
395
  msgstr ""
396
 
601
  msgstr ""
602
 
603
  #: ../admin/shortcode-builder/shortcode-builder.php:488
604
+ msgid "Custom Arguments"
605
+ msgstr ""
606
+
607
+ #: ../admin/shortcode-builder/shortcode-builder.php:491
608
+ msgid ""
609
+ "A comma separated list of custom value:pair arguments.<br/><br/>e.g. "
610
+ "tag_slug__and:array(design), event_display:upcoming"
611
+ msgstr ""
612
+
613
+ #: ../admin/shortcode-builder/shortcode-builder.php:495
614
+ msgid "event_display:upcoming"
615
+ msgstr ""
616
+
617
+ #: ../admin/shortcode-builder/shortcode-builder.php:503
618
  msgid "Post Parameters"
619
  msgstr ""
620
 
621
+ #: ../admin/shortcode-builder/shortcode-builder.php:507
622
  msgid "A comma separated list of post ID's to query."
623
  msgstr ""
624
 
625
+ #: ../admin/shortcode-builder/shortcode-builder.php:511
626
  msgid "225, 340, 818, etc..."
627
  msgstr ""
628
 
629
+ #: ../admin/shortcode-builder/shortcode-builder.php:518
630
  msgid "A comma separated list of post ID's to exclude from query."
631
  msgstr ""
632
 
633
+ #: ../admin/shortcode-builder/shortcode-builder.php:530
634
  msgid "Post Status"
635
  msgstr ""
636
 
637
+ #: ../admin/shortcode-builder/shortcode-builder.php:533
638
  msgid "Select status of the post."
639
  msgstr ""
640
 
641
+ #: ../admin/shortcode-builder/shortcode-builder.php:552
642
  msgid "Ordering"
643
  msgstr ""
644
 
645
+ #: ../admin/shortcode-builder/shortcode-builder.php:555
646
  msgid "Sort posts by Order and Orderby parameters."
647
  msgstr ""
648
 
649
+ #: ../admin/shortcode-builder/shortcode-builder.php:583
650
  msgid "Offset"
651
  msgstr ""
652
 
653
+ #: ../admin/shortcode-builder/shortcode-builder.php:586
654
  msgid "Offset the initial WordPress query by <em>'n'</em> number of posts"
655
  msgstr ""
656
 
657
+ #: ../admin/shortcode-builder/shortcode-builder.php:598
658
  msgid "Posts Per Page"
659
  msgstr ""
660
 
661
+ #: ../admin/shortcode-builder/shortcode-builder.php:601
662
  msgid "Select the number of posts to load with each request."
663
  msgstr ""
664
 
665
+ #: ../admin/shortcode-builder/shortcode-builder.php:613
666
  msgid "Pause"
667
  msgstr ""
668
 
669
+ #: ../admin/shortcode-builder/shortcode-builder.php:616
670
  msgid ""
671
  "Do <u>NOT</u> load any posts until user the clicks <em>Load More</em> button."
672
  msgstr ""
673
 
674
+ #: ../admin/shortcode-builder/shortcode-builder.php:637
675
  msgid "Scrolling"
676
  msgstr ""
677
 
678
+ #: ../admin/shortcode-builder/shortcode-builder.php:641
679
  msgid "Load more posts as the user scrolls the page."
680
  msgstr ""
681
 
682
+ #: ../admin/shortcode-builder/shortcode-builder.php:663
683
  msgid ""
684
  "The distance from the bottom of the screen to trigger the loading of posts "
685
  "while scrolling. (Default = 150)"
686
  msgstr ""
687
 
688
+ #: ../admin/shortcode-builder/shortcode-builder.php:676
689
  msgid "Maximum number of pages to load while scrolling. (0 = unlimited)"
690
  msgstr ""
691
 
692
+ #: ../admin/shortcode-builder/shortcode-builder.php:689
693
  msgid "Transition"
694
  msgstr ""
695
 
696
+ #: ../admin/shortcode-builder/shortcode-builder.php:692
697
  msgid "Select a loading transition."
698
  msgstr ""
699
 
700
+ #: ../admin/shortcode-builder/shortcode-builder.php:699
701
  msgid "Slide"
702
  msgstr ""
703
 
704
+ #: ../admin/shortcode-builder/shortcode-builder.php:703
705
  msgid "Fade"
706
  msgstr ""
707
 
708
+ #: ../admin/shortcode-builder/shortcode-builder.php:707
709
  msgid "None"
710
  msgstr ""
711
 
712
+ #: ../admin/shortcode-builder/shortcode-builder.php:717
713
  msgid "Destroy After"
714
  msgstr ""
715
 
716
+ #: ../admin/shortcode-builder/shortcode-builder.php:720
717
  msgid ""
718
  "Remove ajax load more functionality after '<em>n</em>' number of pages have "
719
  "been loaded."
720
  msgstr ""
721
 
722
+ #: ../admin/shortcode-builder/shortcode-builder.php:732
723
  msgid "Button Label"
724
  msgstr ""
725
 
726
+ #: ../admin/shortcode-builder/shortcode-builder.php:735
727
  msgid "Customize the <em>Load More</em> button label."
728
  msgstr ""
729
 
730
+ #: ../admin/shortcode-builder/shortcode-builder.php:739
731
+ #: ../ajax-load-more.php:201
732
  msgid "Older Posts"
733
  msgstr ""
734