WordPress Infinite Scroll – Ajax Load More - Version 2.6.3.1

Version Description

  • FIX - Fixed/updated error handling of repeater templates. Errors are now being reported in the browser console and do not interfere with the WP admin.
  • FIX - Fixed javascript issue with shorthand if statements and script concatenation.
  • REMOVED - Legacy code for creating 'alias' table columns.
Download this release

Release Info

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

Code changes from version 2.6.3 to 2.6.3.1

README.txt CHANGED
@@ -4,7 +4,7 @@ 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
 
@@ -252,6 +252,11 @@ How to install Ajax Load More.
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.
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.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
252
  == Changelog ==
253
 
254
 
255
+ = 2.6.3.1 =
256
+ * FIX - Fixed/updated error handling of repeater templates. Errors are now being reported in the browser console and do not interfere with the WP admin.
257
+ * FIX - Fixed javascript issue with shorthand if statements and script concatenation.
258
+ * REMOVED - Legacy code for creating 'alias' table columns.
259
+
260
  = 2.6.3 =
261
  * 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)"
262
  * NEW - Added setting for implementing WP nonce for added security of Ajax functionality.
admin/admin.php CHANGED
@@ -2,13 +2,15 @@
2
 
3
  /* Admin function */
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
  /*
13
  * alm_admin_vars
14
  * Create admin variables and ajax nonce
@@ -36,56 +38,44 @@ function alm_admin_vars() { ?>
36
  * @since 2.0.5
37
  */
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
  // **********************************************
53
  // If table exists
54
  // **********************************************
55
- if($wpdb->get_var("SHOW TABLES LIKE '$table_name'") == $table_name) {
56
-
57
- // Updated 2.0.5
58
- // Check column 'name' exists in $wpdb - this is an upgrade checker.
59
- $row = $wpdb->get_col("Show columns from $table_name like 'name'");
60
- if(empty($row)){
61
- $wpdb->query("ALTER TABLE $table_name ADD name TEXT NOT NULL");
62
- $wpdb->update($table_name , array('name' => 'default'), array('id' => 1));
63
- }
64
- // ********
65
- // @TO-DO - Upgrade test, will remove in future versions
66
- // REMOVED - 2.1.3
67
- // ********
68
- $test = $wpdb->get_col("Show columns from $table_name like 'test'");
69
- if(!empty($test)){
70
- $wpdb->query("ALTER TABLE $table_name DROP test");
71
- }
72
-
73
- //Add column for repeater template alias
74
- $alias = $wpdb->get_col("Show columns from $table_name like 'alias'");
75
- if(empty($alias)){
76
- $wpdb->query("ALTER TABLE $table_name ADD alias TEXT NOT NULL");
77
- }
78
 
79
  // Compare versions of repeaters, if template versions do not match, update the repeater with value from DB
80
  $version = $wpdb->get_var("SELECT pluginVersion FROM $table_name WHERE name = 'default'");
81
  if($version != ALM_VERSION){ // First, make sure versions do not match.
 
82
  //Write to repeater file
83
  $data = $wpdb->get_var("SELECT repeaterDefault FROM $table_name WHERE name = 'default'");
84
  $f = ALM_PATH. 'core/repeater/default.php'; // File
85
- $o = fopen($f, 'w+') or die(__('Unable to open the default repeater template.', ALM_NAME)); //Open file
86
- $w = fwrite($o, $data) or die(__('Unable to save the default repeater.', ALM_NAME)); //Save the file
87
- $r = fread($o, 100000); //Read it
88
- fclose($o); //now close it
 
 
 
 
 
 
 
 
 
 
 
89
  }
90
  }
91
 
@@ -104,7 +94,7 @@ function alm_core_update() {
104
  require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
105
  dbDelta( $sql );
106
 
107
- //Insert default data in newly created table
108
  $wpdb->insert($table_name , array('name' => 'default', 'repeaterDefault' => $createRepeater, 'pluginVersion' => ALM_VERSION));
109
  }
110
  }
@@ -353,23 +343,22 @@ function alm_save_repeater(){
353
  $f = ALM_REPEATER_PATH. 'repeaters/'.$n .'.php'; // File
354
  }
355
 
356
-
357
- $o_error = '<span class="saved-error"><b>'. __('Error Opening File', ALM_NAME) .'</b></span>';
358
- $o_error .= '<em>'. $f .'</em>';
359
- $o_error .= __('Please check your file path and ensure your server is configured to allow Ajax Load More to read and write files within the /ajax-load-more/ plugin directory', ALM_NAME);
360
-
361
- $w_error = '<span class="saved-error"><b>'. __('Error Saving File', ALM_NAME) .'</b></span>';
362
- $w_error .= '<em>'. $f .'</em>';
363
- $w_error .= __('Please check your file path and ensure your server is configured to allow Ajax Load More to read and write files within the /ajax-load-more/ plugin directory', ALM_NAME);
364
-
365
- // Open file
366
- $o = fopen($f, 'w+') or die($o_error);
367
 
368
- // Save/Write the file
369
- $w = fwrite($o, $c) or die($w_error);
370
-
371
- // $r = fread($o, 100000); //Read it
372
- fclose($o); //now close it
 
 
 
 
 
 
 
 
 
 
373
 
374
  //Save to database
375
  global $wpdb;
2
 
3
  /* Admin function */
4
 
5
+ add_action( 'plugins_loaded', 'alm_core_update' ); // Core Update
6
+ add_action( 'admin_head', 'alm_admin_vars' ); // Localized Vars
7
  add_action( 'wp_ajax_alm_save_repeater', 'alm_save_repeater' ); // Ajax Save Repeater
8
  add_action( 'wp_ajax_alm_update_repeater', 'alm_update_repeater' ); // Ajax Update Repeater
9
  add_action( 'wp_ajax_alm_get_tax_terms', 'alm_get_tax_terms' ); // Ajax Get Taxonomy Terms
10
  add_action( 'wp_ajax_alm_delete_cache', 'alm_delete_cache' ); // Delete Cache
11
 
12
 
13
+
14
  /*
15
  * alm_admin_vars
16
  * Create admin variables and ajax nonce
38
  * @since 2.0.5
39
  */
40
 
 
41
  function alm_core_update() {
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
+ //$installed_ver = get_option( "alm_version" ); // Get value from WP Option tbl
49
+
50
  global $wpdb;
51
  $table_name = $wpdb->prefix . "alm";
52
  // **********************************************
53
  // If table exists
54
  // **********************************************
55
+ if($wpdb->get_var("SHOW TABLES LIKE '$table_name'") == $table_name) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
 
57
  // Compare versions of repeaters, if template versions do not match, update the repeater with value from DB
58
  $version = $wpdb->get_var("SELECT pluginVersion FROM $table_name WHERE name = 'default'");
59
  if($version != ALM_VERSION){ // First, make sure versions do not match.
60
+
61
  //Write to repeater file
62
  $data = $wpdb->get_var("SELECT repeaterDefault FROM $table_name WHERE name = 'default'");
63
  $f = ALM_PATH. 'core/repeater/default.php'; // File
64
+
65
+ try {
66
+ $o = fopen($f, 'w+'); //Open file
67
+ if ( !$o ) {
68
+ throw new Exception(__('[Ajax Load More] Unable to open the default repeater template (/core/repeater/default.php).', ALM_NAME));
69
+ }
70
+ $w = fwrite($o, $data); //Save the file
71
+ if ( !$w ) {
72
+ throw new Exception(__('[Ajax Load More] Unable to save the default repeater (/core/repeater/default.php).', ALM_NAME));
73
+ }
74
+ fclose($o); //now close it
75
+
76
+ } catch ( Exception $e ) {
77
+ echo '<script>console.log("' .$e->getMessage(). '");</script>';
78
+ }
79
  }
80
  }
81
 
94
  require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
95
  dbDelta( $sql );
96
 
97
+ //Insert default data into created table
98
  $wpdb->insert($table_name , array('name' => 'default', 'repeaterDefault' => $createRepeater, 'pluginVersion' => ALM_VERSION));
99
  }
100
  }
343
  $f = ALM_REPEATER_PATH. 'repeaters/'.$n .'.php'; // File
344
  }
345
 
 
 
 
 
 
 
 
 
 
 
 
346
 
347
+ try {
348
+ $o = fopen($f, 'w+'); //Open file
349
+ if ( !$o ) {
350
+ throw new Exception(__('[Ajax Load More] Error opening repeater template - Please check your file path and ensure your server is configured to allow Ajax Load More to read and write files within the /ajax-load-more/core/repeater directory', ALM_NAME));
351
+ }
352
+ $w = fwrite($o, $c); //Save the file
353
+ if ( !$w ) {
354
+ throw new Exception(__('[Ajax Load More]Error saving repeater template - Please check your file path and ensure your server is configured to allow Ajax Load More to read and write files within the /ajax-load-more/core/repeater directory.', ALM_NAME));
355
+ }
356
+ fclose($o); //now close it
357
+
358
+ } catch ( Exception $e ) {
359
+ //echo $e;
360
+ echo '<script>console.log("' .$e->getMessage(). '");</script>';
361
+ }
362
 
363
  //Save to database
364
  global $wpdb;
admin/css/admin.css CHANGED
@@ -1,4 +1,4 @@
1
- @import url(http://fonts.googleapis.com/css?family=Open+Sans:400,700,600);
2
 
3
 
4
  /*
@@ -1737,6 +1737,20 @@ p.cache-stats{
1737
  color: #fff;
1738
  text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.1);
1739
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1740
 
1741
 
1742
  /*
1
+ @import url(//fonts.googleapis.com/css?family=Open+Sans:400,700,600);
2
 
3
 
4
  /*
1737
  color: #fff;
1738
  text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.1);
1739
  }
1740
+
1741
+
1742
+ /*
1743
+ * Error Handling
1744
+ *
1745
+ * @since 2.6
1746
+ */
1747
+
1748
+ .alm-error{
1749
+ position: absolute;
1750
+ z-index: 9999;
1751
+ background: #fff;
1752
+ padding: 10px;
1753
+ }
1754
 
1755
 
1756
  /*
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.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
@@ -41,7 +41,13 @@ function alm_install() {
41
 
42
  //Insert the default data in created table
43
  $wpdb->insert($table_name , array('name' => 'default', 'repeaterDefault' => $defaultRepeater, 'pluginVersion' => ALM_VERSION));
44
- }
 
 
 
 
 
 
45
  }
46
 
47
 
6
  Author: Darren Cooney
7
  Twitter: @KaptonKaos
8
  Author URI: http://connekthq.com
9
+ Version: 2.6.3.1
10
  License: GPL
11
  Copyright: Darren Cooney & Connekt Media
12
  */
13
 
14
+ define('ALM_VERSION', '2.6.3.1');
15
+ define('ALM_RELEASE', 'May 4, 2015');
16
 
17
  /*
18
  * alm_install
41
 
42
  //Insert the default data in created table
43
  $wpdb->insert($table_name , array('name' => 'default', 'repeaterDefault' => $defaultRepeater, 'pluginVersion' => ALM_VERSION));
44
+ }
45
+
46
+ if( !get_option( 'alm_version' ) )
47
+ add_option( 'alm_version', ALM_VERSION ); // Add 'alm_version' to WP options table
48
+ else
49
+ update_option( 'alm_version', ALM_VERSION ); // Update 'alm_version'
50
+
51
  }
52
 
53
 
core/js/ajax-load-more.js CHANGED
@@ -55,38 +55,43 @@
55
 
56
 
57
  /* Define offset */
58
- if (alm.content.attr('data-offset') === undefined)
59
  alm.offset = 0;
60
- else
61
  alm.offset = alm.content.attr('data-offset');
62
-
63
 
64
  /* Cache */
65
- if (alm.cache === undefined)
66
  alm.cache = false;
 
67
 
68
- if (alm.cache_logged_in === undefined)
69
  alm.cache_logged_in = false;
 
70
 
71
 
72
  /* Preloaded */
73
  /* Check preloaded posts to ensure posts_per_page > alm.total_posts - if posts_per_page <= total_posts disable ajax load more */
74
- if(alm.preloaded === 'true'){
75
  alm.preload_wrap = alm.content.prev('.alm-preloaded');
76
  alm.total_posts = parseInt(alm.preload_wrap.attr('data-total-posts'));
77
- if (alm.preloaded_amount === undefined)
78
  alm.preloaded_amount = false;
79
- if(alm.total_posts <= alm.preloaded_amount){
 
80
  alm.disable_ajax = true;
81
  }
82
  }
83
 
84
 
85
  /* SEO */
86
- if (alm.seo === undefined)
87
  alm.seo = false;
88
- if (alm.seo === 'true')
89
- alm.seo = true; // Convert string to boolean
 
 
90
 
91
  alm.permalink = alm.content.attr('data-seo-permalink');
92
  alm.start_page = alm.content.attr('data-seo-start-page');
@@ -99,7 +104,7 @@
99
 
100
  alm.isPaged = false;
101
 
102
- if(alm.start_page > 1) {
103
  alm.isPaged = true; // Is this a $paged page > 1 ?
104
  alm.posts_per_page = alm.start_page * alm.posts_per_page;
105
  }
@@ -110,37 +115,44 @@
110
  /* Check for pause on init
111
  * Pause could be used to hold the loading of posts for a button click.
112
  */
113
- if (alm.pause === undefined || (alm.seo && alm.start_page > 1)) // SEO only
114
- alm.pause = false;
115
- if (alm.preloaded && alm.start_page >= 1) // SEO + Preloaded
 
116
  alm.pause = false;
 
117
 
118
 
119
  /* Select the repeater template */
120
- if (alm.repeater === undefined)
121
  alm.repeater = 'default';
 
122
 
123
 
124
  /* Max number of pages to load while scrolling */
125
- if (alm.max_pages === undefined)
126
  alm.max_pages = 5;
 
127
 
128
- if (alm.max_pages === 0)
129
  alm.max_pages = 1000;
 
130
 
131
- if (alm.scroll_distance === undefined)
132
  alm.scroll_distance = 150;
 
133
 
134
 
135
  /* Select the transition */
136
- if (alm.transition === undefined)
137
  alm.transition = 'slide';
138
- else if (alm.transition === "fade")
139
  alm.transition = 'fade';
140
- else if (alm.transition === "none")
141
  alm.transition = 'none';
142
- else
143
  alm.transition = 'slide';
 
144
 
145
 
146
  /* Destroy After */
@@ -148,27 +160,27 @@
148
 
149
 
150
  /* Button Label */
151
- if (alm.content.attr('data-button-label') === undefined)
152
  alm.button_label = 'Older Posts';
153
- else
154
  alm.button_label = alm.content.attr('data-button-label');
155
-
156
 
157
  /* Button Class */
158
- if (alm.content.attr('data-button-class') === undefined)
159
  alm.button_class = '';
160
- else
161
  alm.button_class = ' ' + alm.content.attr('data-button-class');
162
-
163
 
164
  /* Define scroll event */
165
- if (alm.content.attr('data-scroll') === undefined)
166
  alm.scroll = true;
167
- else if (alm.content.attr('data-scroll') === 'false')
168
  alm.scroll = false;
169
- else
170
  alm.scroll = true;
171
-
172
 
173
  /* Parse multiple Post Types */
174
  alm.post_type = alm.content.attr('data-post-type');
@@ -350,12 +362,14 @@
350
  }
351
  });
352
  }
 
353
 
354
  // ALM Complete
355
  if ($.isFunction($.fn.almComplete)) {
356
  $.fn.almComplete(alm);
357
  }
358
 
 
359
  // ALM SEO
360
  // - Only run if a single instance is on the page.
361
  if($(".ajax-load-more-wrap").length === 1){
@@ -374,7 +388,9 @@
374
  if (alm.destroy_after !== undefined && alm.destroy_after !== '') {
375
  var currentPage = alm.page + 1; // Add 1 because alm.page starts at 0
376
 
377
- if(alm.preload) currentPage++;
 
 
378
 
379
  if(currentPage == alm.destroy_after){ // - Disable ALM is page = alm.destroy_after value
380
  alm.disable_ajax = true;
@@ -571,9 +587,9 @@
571
  * Initiate Ajax load More if div is present on screen
572
  * @since 2.1.2
573
  */
574
- if ($(".ajax-load-more-wrap").length)
575
  $(".ajax-load-more-wrap").ajaxloadmore();
576
-
577
 
578
 
579
  })(jQuery);
55
 
56
 
57
  /* Define offset */
58
+ if (alm.content.attr('data-offset') === undefined){
59
  alm.offset = 0;
60
+ }else{
61
  alm.offset = alm.content.attr('data-offset');
62
+ }
63
 
64
  /* Cache */
65
+ if (alm.cache === undefined){
66
  alm.cache = false;
67
+ }
68
 
69
+ if (alm.cache_logged_in === undefined){
70
  alm.cache_logged_in = false;
71
+ }
72
 
73
 
74
  /* Preloaded */
75
  /* Check preloaded posts to ensure posts_per_page > alm.total_posts - if posts_per_page <= total_posts disable ajax load more */
76
+ if (alm.preloaded === 'true'){
77
  alm.preload_wrap = alm.content.prev('.alm-preloaded');
78
  alm.total_posts = parseInt(alm.preload_wrap.attr('data-total-posts'));
79
+ if (alm.preloaded_amount === undefined){
80
  alm.preloaded_amount = false;
81
+ }
82
+ if (alm.total_posts <= alm.preloaded_amount){
83
  alm.disable_ajax = true;
84
  }
85
  }
86
 
87
 
88
  /* SEO */
89
+ if (alm.seo === undefined){
90
  alm.seo = false;
91
+ }
92
+ if (alm.seo === 'true'){
93
+ alm.seo = true; // Convert string to boolean
94
+ }
95
 
96
  alm.permalink = alm.content.attr('data-seo-permalink');
97
  alm.start_page = alm.content.attr('data-seo-start-page');
104
 
105
  alm.isPaged = false;
106
 
107
+ if (alm.start_page > 1) {
108
  alm.isPaged = true; // Is this a $paged page > 1 ?
109
  alm.posts_per_page = alm.start_page * alm.posts_per_page;
110
  }
115
  /* Check for pause on init
116
  * Pause could be used to hold the loading of posts for a button click.
117
  */
118
+ if (alm.pause === undefined || (alm.seo && alm.start_page > 1)){// SEO only
119
+ alm.pause = false;
120
+ }
121
+ if (alm.preloaded && alm.start_page >= 1){ // SEO + Preloaded
122
  alm.pause = false;
123
+ }
124
 
125
 
126
  /* Select the repeater template */
127
+ if (alm.repeater === undefined){
128
  alm.repeater = 'default';
129
+ }
130
 
131
 
132
  /* Max number of pages to load while scrolling */
133
+ if (alm.max_pages === undefined){
134
  alm.max_pages = 5;
135
+ }
136
 
137
+ if (alm.max_pages === 0){
138
  alm.max_pages = 1000;
139
+ }
140
 
141
+ if (alm.scroll_distance === undefined){
142
  alm.scroll_distance = 150;
143
+ }
144
 
145
 
146
  /* Select the transition */
147
+ if (alm.transition === undefined){
148
  alm.transition = 'slide';
149
+ }else if (alm.transition === "fade"){
150
  alm.transition = 'fade';
151
+ }else if (alm.transition === "none"){
152
  alm.transition = 'none';
153
+ }else {
154
  alm.transition = 'slide';
155
+ }
156
 
157
 
158
  /* Destroy After */
160
 
161
 
162
  /* Button Label */
163
+ if (alm.content.attr('data-button-label') === undefined){
164
  alm.button_label = 'Older Posts';
165
+ }else{
166
  alm.button_label = alm.content.attr('data-button-label');
167
+ }
168
 
169
  /* Button Class */
170
+ if (alm.content.attr('data-button-class') === undefined){
171
  alm.button_class = '';
172
+ }else{
173
  alm.button_class = ' ' + alm.content.attr('data-button-class');
174
+ }
175
 
176
  /* Define scroll event */
177
+ if (alm.content.attr('data-scroll') === undefined){
178
  alm.scroll = true;
179
+ }else if (alm.content.attr('data-scroll') === 'false'){
180
  alm.scroll = false;
181
+ }else{
182
  alm.scroll = true;
183
+ }
184
 
185
  /* Parse multiple Post Types */
186
  alm.post_type = alm.content.attr('data-post-type');
362
  }
363
  });
364
  }
365
+
366
 
367
  // ALM Complete
368
  if ($.isFunction($.fn.almComplete)) {
369
  $.fn.almComplete(alm);
370
  }
371
 
372
+
373
  // ALM SEO
374
  // - Only run if a single instance is on the page.
375
  if($(".ajax-load-more-wrap").length === 1){
388
  if (alm.destroy_after !== undefined && alm.destroy_after !== '') {
389
  var currentPage = alm.page + 1; // Add 1 because alm.page starts at 0
390
 
391
+ if(alm.preload){
392
+ currentPage++;
393
+ }
394
 
395
  if(currentPage == alm.destroy_after){ // - Disable ALM is page = alm.destroy_after value
396
  alm.disable_ajax = true;
587
  * Initiate Ajax load More if div is present on screen
588
  * @since 2.1.2
589
  */
590
+ if ($(".ajax-load-more-wrap").length){
591
  $(".ajax-load-more-wrap").ajaxloadmore();
592
+ }
593
 
594
 
595
  })(jQuery);
core/js/ajax-load-more.min.js CHANGED
@@ -12,42 +12,34 @@
12
  */
13
 
14
  (function($){"use strict";$.ajaxloadmore=function(el){if(alm_localize.scrolltop==='true'){$(window).scrollTop(0);}
15
- var alm=this;alm.AjaxLoadMore={};alm.page=0;alm.speed=300;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.content=$('.alm-listing.alm-ajax',alm.el);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.scroll_distance=parseInt(alm.content.attr('data-scroll-distance'));alm.max_pages=parseInt(alm.content.attr('data-max-pages'));alm.pause=alm.content.attr('data-pause');alm.transition=alm.content.attr('data-transition');alm.destroy_after=alm.content.attr('data-destroy-after');alm.lang=alm.content.attr('data-lang');alm.posts_per_page=alm.content.attr('data-posts-per-page');alm.seo=alm.content.attr('data-seo');alm.preloaded=alm.content.attr('data-preloaded');alm.preloaded_amount=alm.content.attr('data-preloaded-amount');if(alm.content.attr('data-offset')===undefined)
16
- alm.offset=0;else
17
- alm.offset=alm.content.attr('data-offset');if(alm.cache===undefined)
18
- alm.cache=false;if(alm.cache_logged_in===undefined)
19
- alm.cache_logged_in=false;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)
20
- alm.preloaded_amount=false;if(alm.total_posts<=alm.preloaded_amount){alm.disable_ajax=true;}}
21
- if(alm.seo===undefined)
22
- alm.seo=false;if(alm.seo==='true')
23
- alm.seo=true;alm.permalink=alm.content.attr('data-seo-permalink');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;}}
24
- if(alm.pause===undefined||(alm.seo&&alm.start_page>1))
25
- alm.pause=false;if(alm.preloaded&&alm.start_page>=1)
26
- alm.pause=false;if(alm.repeater===undefined)
27
- alm.repeater='default';if(alm.max_pages===undefined)
28
- alm.max_pages=5;if(alm.max_pages===0)
29
- alm.max_pages=1000;if(alm.scroll_distance===undefined)
30
- alm.scroll_distance=150;if(alm.transition===undefined)
31
- alm.transition='slide';else if(alm.transition==="fade")
32
- alm.transition='fade';else if(alm.transition==="none")
33
- alm.transition='none';else
34
- alm.transition='slide';if(alm.destroy_after!==undefined){}
35
- if(alm.content.attr('data-button-label')===undefined)
36
- alm.button_label='Older Posts';else
37
- alm.button_label=alm.content.attr('data-button-label');if(alm.content.attr('data-button-class')===undefined)
38
- 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'),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);}
46
  if($(".ajax-load-more-wrap").length===1){if($.isFunction($.fn.almSEO)&&alm.seo){$.fn.almSEO(alm);}}}else{alm.button.delay(alm.speed).removeClass('loading').addClass('done');alm.loading=false;alm.finished=true;}
47
- if(alm.destroy_after!==undefined&&alm.destroy_after!==''){var currentPage=alm.page+1;if(alm.preload)currentPage++;if(currentPage==alm.destroy_after){alm.disable_ajax=true;alm.button.delay(alm.speed).fadeOut(alm.speed);}}};alm.AjaxLoadMore.error=function(jqXHR,textStatus,errorThrown){alm.loading=false;alm.button.removeClass('loading');console.log(errorThrown);};alm.button.on('click',function(){if(alm.pause==='true'){alm.pause=false;alm.AjaxLoadMore.loadPosts();}
 
48
  if(!alm.loading&&!alm.finished&&!$(this).hasClass('done')){alm.loading=true;alm.page++;alm.AjaxLoadMore.loadPosts();}});alm.AjaxLoadMore.isVisible=function(){alm.visible=false;if(alm.el.is(":visible")){alm.visible=true;}
49
  return alm.visible;};if(alm.scroll){alm.window.bind("scroll touchstart",function(){if(alm.AjaxLoadMore.isVisible()){var content_offset=alm.button.offset();if(!alm.loading&&!alm.finished&&(alm.window.scrollTop()>=Math.round(content_offset.top-(alm.window.height()-alm.scroll_distance)))&&alm.page<(alm.max_pages-1)&&alm.proceed&&alm.pause!=='true'){alm.page++;alm.AjaxLoadMore.loadPosts();}}});}
50
  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();}}
51
  setTimeout(function(){alm.proceed=true;},1000);$.easing.alm_easeInOutQuad=function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;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))
52
- $.fn.almFilterComplete();$(".ajax-load-more-wrap").ajaxloadmore();};$.fn.ajaxloadmore=function(){return this.each(function(){$(this).data('alm',new $.ajaxloadmore($(this)));});};if($(".ajax-load-more-wrap").length)
53
- $(".ajax-load-more-wrap").ajaxloadmore();})(jQuery);
12
  */
13
 
14
  (function($){"use strict";$.ajaxloadmore=function(el){if(alm_localize.scrolltop==='true'){$(window).scrollTop(0);}
15
+ var alm=this;alm.AjaxLoadMore={};alm.page=0;alm.speed=300;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.content=$('.alm-listing.alm-ajax',alm.el);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.scroll_distance=parseInt(alm.content.attr('data-scroll-distance'));alm.max_pages=parseInt(alm.content.attr('data-max-pages'));alm.pause=alm.content.attr('data-pause');alm.transition=alm.content.attr('data-transition');alm.destroy_after=alm.content.attr('data-destroy-after');alm.lang=alm.content.attr('data-lang');alm.posts_per_page=alm.content.attr('data-posts-per-page');alm.seo=alm.content.attr('data-seo');alm.preloaded=alm.content.attr('data-preloaded');alm.preloaded_amount=alm.content.attr('data-preloaded-amount');if(alm.content.attr('data-offset')===undefined){alm.offset=0;}else{alm.offset=alm.content.attr('data-offset');}
16
+ if(alm.cache===undefined){alm.cache=false;}
17
+ if(alm.cache_logged_in===undefined){alm.cache_logged_in=false;}
18
+ 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;}
19
+ if(alm.total_posts<=alm.preloaded_amount){alm.disable_ajax=true;}}
20
+ if(alm.seo===undefined){alm.seo=false;}
21
+ if(alm.seo==='true'){alm.seo=true;}
22
+ alm.permalink=alm.content.attr('data-seo-permalink');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;}}
23
+ if(alm.pause===undefined||(alm.seo&&alm.start_page>1)){alm.pause=false;}
24
+ if(alm.preloaded&&alm.start_page>=1){alm.pause=false;}
25
+ if(alm.repeater===undefined){alm.repeater='default';}
26
+ if(alm.max_pages===undefined){alm.max_pages=5;}
27
+ if(alm.max_pages===0){alm.max_pages=1000;}
28
+ if(alm.scroll_distance===undefined){alm.scroll_distance=150;}
29
+ if(alm.transition===undefined){alm.transition='slide';}else if(alm.transition==="fade"){alm.transition='fade';}else if(alm.transition==="none"){alm.transition='none';}else{alm.transition='slide';}
30
+ if(alm.destroy_after!==undefined){}
31
+ if(alm.content.attr('data-button-label')===undefined){alm.button_label='Older Posts';}else{alm.button_label=alm.content.attr('data-button-label');}
32
+ if(alm.content.attr('data-button-class')===undefined){alm.button_class='';}else{alm.button_class=' '+alm.content.attr('data-button-class');}
33
+ if(alm.content.attr('data-scroll')===undefined){alm.scroll=true;}else if(alm.content.attr('data-scroll')==='false'){alm.scroll=false;}else{alm.scroll=true;}
34
+ 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);}}
 
 
 
 
 
 
 
 
35
  if(alm.isPaged){alm.posts_per_page=alm.content.attr('data-posts-per-page');alm.page=alm.start_page-1;}}
36
  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');}});}
37
  if($.isFunction($.fn.almComplete)){$.fn.almComplete(alm);}
38
  if($(".ajax-load-more-wrap").length===1){if($.isFunction($.fn.almSEO)&&alm.seo){$.fn.almSEO(alm);}}}else{alm.button.delay(alm.speed).removeClass('loading').addClass('done');alm.loading=false;alm.finished=true;}
39
+ if(alm.destroy_after!==undefined&&alm.destroy_after!==''){var currentPage=alm.page+1;if(alm.preload){currentPage++;}
40
+ if(currentPage==alm.destroy_after){alm.disable_ajax=true;alm.button.delay(alm.speed).fadeOut(alm.speed);}}};alm.AjaxLoadMore.error=function(jqXHR,textStatus,errorThrown){alm.loading=false;alm.button.removeClass('loading');console.log(errorThrown);};alm.button.on('click',function(){if(alm.pause==='true'){alm.pause=false;alm.AjaxLoadMore.loadPosts();}
41
  if(!alm.loading&&!alm.finished&&!$(this).hasClass('done')){alm.loading=true;alm.page++;alm.AjaxLoadMore.loadPosts();}});alm.AjaxLoadMore.isVisible=function(){alm.visible=false;if(alm.el.is(":visible")){alm.visible=true;}
42
  return alm.visible;};if(alm.scroll){alm.window.bind("scroll touchstart",function(){if(alm.AjaxLoadMore.isVisible()){var content_offset=alm.button.offset();if(!alm.loading&&!alm.finished&&(alm.window.scrollTop()>=Math.round(content_offset.top-(alm.window.height()-alm.scroll_distance)))&&alm.page<(alm.max_pages-1)&&alm.proceed&&alm.pause!=='true'){alm.page++;alm.AjaxLoadMore.loadPosts();}}});}
43
  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();}}
44
  setTimeout(function(){alm.proceed=true;},1000);$.easing.alm_easeInOutQuad=function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;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))
45
+ $.fn.almFilterComplete();$(".ajax-load-more-wrap").ajaxloadmore();};$.fn.ajaxloadmore=function(){return this.each(function(){$(this).data('alm',new $.ajaxloadmore($(this)));});};if($(".ajax-load-more-wrap").length){$(".ajax-load-more-wrap").ajaxloadmore();}})(jQuery);
 
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-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,206 +15,209 @@ msgstr ""
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
 
@@ -728,7 +731,7 @@ 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
 
@@ -985,11 +988,11 @@ msgstr ""
985
  msgid "Clear all Shortcode Builder settings"
986
  msgstr ""
987
 
988
- #: ../ajax-load-more.php:104
989
  msgid "Settings"
990
  msgstr ""
991
 
992
- #: ../ajax-load-more.php:105
993
  msgid "Shortcode Builder"
994
  msgstr ""
995
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Ajax Load More\n"
4
+ "POT-Creation-Date: 2015-05-04 15:22-0500\n"
5
+ "PO-Revision-Date: 2015-05-04 15:22-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:68
19
+ msgid ""
20
+ "[Ajax Load More] Unable to open the default repeater template (/core/"
21
+ "repeater/default.php)."
 
 
22
  msgstr ""
23
 
24
+ #: ../admin/admin.php:72
25
+ msgid ""
26
+ "[Ajax Load More] Unable to save the default repeater (/core/repeater/default."
27
+ "php)."
28
  msgstr ""
29
 
30
+ #: ../admin/admin.php:350
31
  msgid ""
32
+ "[Ajax Load More] Error opening repeater template - Please check your file "
33
+ "path and ensure your server is configured to allow Ajax Load More to read "
34
+ "and write files within the /ajax-load-more/core/repeater directory"
35
  msgstr ""
36
 
37
+ #: ../admin/admin.php:354
38
+ msgid ""
39
+ "[Ajax Load More]Error saving repeater template - Please check your file path "
40
+ "and ensure your server is configured to allow Ajax Load More to read and "
41
+ "write files within the /ajax-load-more/core/repeater directory."
42
  msgstr ""
43
 
44
+ #: ../admin/admin.php:387
45
  msgid "Error Writing File"
46
  msgstr ""
47
 
48
+ #: ../admin/admin.php:495
49
  msgid "Container Type"
50
  msgstr ""
51
 
52
+ #: ../admin/admin.php:503
53
  msgid "Container Classes"
54
  msgstr ""
55
 
56
+ #: ../admin/admin.php:511
57
  msgid "Editor Button"
58
  msgstr ""
59
 
60
+ #: ../admin/admin.php:519
61
  msgid "Dynamic Content"
62
  msgstr ""
63
 
64
+ #: ../admin/admin.php:527
65
  msgid "Ajax Security"
66
  msgstr ""
67
 
68
+ #: ../admin/admin.php:535
69
  msgid "Top of Page"
70
  msgstr ""
71
 
72
+ #: ../admin/admin.php:543
73
  msgid "Disable CSS"
74
  msgstr ""
75
 
76
+ #: ../admin/admin.php:551
77
  msgid "Button Color"
78
  msgstr ""
79
 
80
+ #: ../admin/admin.php:559
81
  msgid "Button Classes"
82
  msgstr ""
83
 
84
+ #: ../admin/admin.php:575
85
  msgid "Published Posts"
86
  msgstr ""
87
 
88
+ #: ../admin/admin.php:582
89
  msgid "Known Users"
90
  msgstr ""
91
 
92
+ #: ../admin/admin.php:601
93
  msgid "SEO Permalinks"
94
  msgstr ""
95
 
96
+ #: ../admin/admin.php:608
97
  msgid "Scroll to Page"
98
  msgstr ""
99
 
100
+ #: ../admin/admin.php:615
101
  msgid "Scroll Speed"
102
  msgstr ""
103
 
104
+ #: ../admin/admin.php:622
105
  msgid "Scroll Top"
106
  msgstr ""
107
 
108
+ #: ../admin/admin.php:641
109
  msgid "Customize your version of Ajax Load More by updating the fields below."
110
  msgstr ""
111
 
112
+ #: ../admin/admin.php:672
113
  msgid "I want to use my own CSS styles."
114
  msgstr ""
115
 
116
+ #: ../admin/admin.php:672
117
  msgid "View Ajax Load More CSS"
118
  msgstr ""
119
 
120
+ #: ../admin/admin.php:692
121
  msgid "Hide shortcode button in WYSIWYG editor."
122
  msgstr ""
123
 
124
+ #: ../admin/admin.php:713
125
  msgid ""
126
  "Disable dynamic population of categories, tags and authors in the Shortcode "
127
  "Builder.<span style=\"display:block\">Recommended if you have an "
128
  "extraordinary number of categories, tags and/or authors."
129
  msgstr ""
130
 
131
+ #: ../admin/admin.php:729
132
  msgid "Add classes to Ajax Load More container."
133
  msgstr ""
134
 
135
+ #: ../admin/admin.php:751 ../admin/admin.php:754
136
  msgid "Ajax Posts Here"
137
  msgstr ""
138
 
139
+ #: ../admin/admin.php:798
140
  msgid "Choose your <strong>Load More</strong> button color"
141
  msgstr ""
142
 
143
+ #: ../admin/admin.php:809
144
  msgid "Preview"
145
  msgstr ""
146
 
147
+ #: ../admin/admin.php:828
148
  msgid "Add classes to your <strong>Load More</strong> button"
149
  msgstr ""
150
 
151
+ #: ../admin/admin.php:881
152
  msgid ""
153
  "On initial page load, move the user's browser window to the top of the "
154
  "screen.<span style=\"display:block\">This <u>may</u> help prevent the "
155
  "loading of unnecessary posts.</span>"
156
  msgstr ""
157
 
158
+ #: ../admin/admin.php:902
159
  msgid ""
160
  "Enable <a href=\"https://codex.wordpress.org/WordPress_Nonces\" target="
161
  "\"_blank\">WP nonce</a> verification to help protect URLs against certain "
162
  "types of misuse, malicious or otherwise on each Ajax Load More query."
163
  msgstr ""
164
 
165
+ #: ../admin/admin.php:917
166
  msgid ""
167
  "Customize your installation of the <a href=\"http://connekthq.com/plugins/"
168
  "ajax-load-more/cache/\">Cache</a> add-on."
169
  msgstr ""
170
 
171
+ #: ../admin/admin.php:939
172
  msgid "Delete cache when new posts are published."
173
  msgstr ""
174
 
175
+ #: ../admin/admin.php:940
176
  msgid ""
177
  "Cache will be fully cleared whenever a post, page or Custom Post Type is "
178
  "published or updated."
179
  msgstr ""
180
 
181
+ #: ../admin/admin.php:965
182
  msgid "Don't cache files for logged in users."
183
  msgstr ""
184
 
185
+ #: ../admin/admin.php:966
186
  msgid ""
187
  "Logged in users will retrieve content directly from the database and will "
188
  "not view any cached content."
189
  msgstr ""
190
 
191
+ #: ../admin/admin.php:983
192
  msgid ""
193
  "Customize your installation of the <a href=\"http://connekthq.com/plugins/"
194
  "ajax-load-more/seo/\">Search Engine Optimization</a> add-on."
195
  msgstr ""
196
 
197
+ #: ../admin/admin.php:1007
198
  msgid ""
199
  "Pretty Permalinks (mod_rewrite) <br/><span>http://example.com/2012/post-name/"
200
  "</span>"
201
  msgstr ""
202
 
203
+ #: ../admin/admin.php:1010
204
  msgid "Default (Ugly) <br/><span>http://example.com/?p=N</span>"
205
  msgstr ""
206
 
207
+ #: ../admin/admin.php:1034
208
  msgid ""
209
  "Enable window scrolling.<br/><span>If scrolling is enabled, the users window "
210
  "will scroll to the current page on 'Load More' button click and while "
211
  "interacting with the forward and back browser buttons.</span>"
212
  msgstr ""
213
 
214
+ #: ../admin/admin.php:1056
215
  msgid ""
216
  "Set the scrolling speed of the page in milliseconds. <br/><span>e.g. 1 "
217
  "second = 1000</span>"
218
  msgstr ""
219
 
220
+ #: ../admin/admin.php:1077
221
  msgid "Set the scrolltop position of the window when scrolling to post."
222
  msgstr ""
223
 
731
  msgstr ""
732
 
733
  #: ../admin/shortcode-builder/shortcode-builder.php:739
734
+ #: ../ajax-load-more.php:207
735
  msgid "Older Posts"
736
  msgstr ""
737
 
988
  msgid "Clear all Shortcode Builder settings"
989
  msgstr ""
990
 
991
+ #: ../ajax-load-more.php:110
992
  msgid "Settings"
993
  msgstr ""
994
 
995
+ #: ../ajax-load-more.php:111
996
  msgid "Shortcode Builder"
997
  msgstr ""
998