WordPress Infinite Scroll – Ajax Load More - Version 2.1.3

Version Description

  • Fixed issue with causing the Ajax Load More menu to not show on admin screen do to location conflict.
  • Adding column 'alias' to wp_alm table to allow for repeater alias (Only for the custom repeater add-on).
  • Remove legasy column 'test' from wp_alm table.
  • Updating styles in admin.css.
Download this release

Release Info

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

Code changes from version 2.1.1 to 2.1.3

README.txt CHANGED
@@ -4,11 +4,11 @@ Donate link: http://connekthq.com/donate/
4
  Tags: ajax, query, loop, paging, filter, jquery, shortcode builder, shortcode, search, tags, category
5
  Requires at least: 3.6
6
  Tested up to: 3.9.1
7
- Stable tag: 2.1.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
- Ajax Load More is simple solution for lazy loading your WordPress posts and pages with Ajax.
12
 
13
  == Description ==
14
 
@@ -19,6 +19,7 @@ Build complex WordPress queries using our shortcode builder then add the shortco
19
 
20
  = Features =
21
 
 
22
  * **Shortcode Builder** - create your own Ajax Load More shortcode by adjusting the various WordPress query parameters (see Shortcode Parameters).
23
  * **Query Parameters** - You can query WordPress for so many different content types it may be difficult to keep track! Query by Post type, Category, Tags, Custom Taxonomies, Search Term, Authors and more!!
24
  * **Customizable Repeater Templates** - edit and extend the functionality of Ajax Load More by adjusting the repeater template (see screenshots).
@@ -162,6 +163,18 @@ How to install Ajax Load More.
162
 
163
  == Changelog ==
164
 
 
 
 
 
 
 
 
 
 
 
 
 
165
  = 2.1.1 =
166
  * Adding Order and Orderby query parameters, you can now set these values within the Shortcode Builder
167
  * Updating core javascript code
4
  Tags: ajax, query, loop, paging, filter, jquery, shortcode builder, shortcode, search, tags, category
5
  Requires at least: 3.6
6
  Tested up to: 3.9.1
7
+ Stable tag: 2.1.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
+ A simple solution for lazy loading your WordPress posts and pages with Ajax.
12
 
13
  == Description ==
14
 
19
 
20
  = Features =
21
 
22
+ * **Multiple Instances** - you can now include multiple instances of Ajax Load More on a single page.
23
  * **Shortcode Builder** - create your own Ajax Load More shortcode by adjusting the various WordPress query parameters (see Shortcode Parameters).
24
  * **Query Parameters** - You can query WordPress for so many different content types it may be difficult to keep track! Query by Post type, Category, Tags, Custom Taxonomies, Search Term, Authors and more!!
25
  * **Customizable Repeater Templates** - edit and extend the functionality of Ajax Load More by adjusting the repeater template (see screenshots).
163
 
164
  == Changelog ==
165
 
166
+ = 2.1.3 =
167
+ * Fixed issue with causing the Ajax Load More menu to not show on admin screen do to location conflict.
168
+ * Adding column 'alias' to wp_alm table to allow for repeater alias (Only for the custom repeater add-on).
169
+ * Remove legasy column 'test' from wp_alm table.
170
+ * Updating styles in admin.css.
171
+
172
+ = 2.1.2 =
173
+ * Adding ability to have multiple instances of script on a single page
174
+ * Adding global class name('.ajax-load-more-wrap') to Ajax Load More container. I plan to remove the #ajax-load-more naming convention in upcoming releases, but need time for users to update their code.
175
+ * Small styling enhancements to admin panel.
176
+ * Updated .pot language file.
177
+
178
  = 2.1.1 =
179
  * Adding Order and Orderby query parameters, you can now set these values within the Shortcode Builder
180
  * Updating core javascript code
admin/admin.php CHANGED
@@ -53,14 +53,19 @@ function alm_core_update() {
53
  $wpdb->query("ALTER TABLE $table_name ADD name TEXT NOT NULL");
54
  $wpdb->update($table_name , array('name' => 'default'), array('id' => 1));
55
  }
56
-
57
  // ********
58
  // @TO-DO - Upgrade test, will remove in future versions
 
59
  // ********
60
  $test = $wpdb->get_col("Show columns from $table_name like 'test'");
61
- if(empty($test)){
62
- $wpdb->query("ALTER TABLE $table_name ADD test TEXT NOT NULL");
63
- $wpdb->update($table_name , array('test' => 'test value'), array('id' => 1));
 
 
 
 
 
64
  }
65
 
66
  // Compare versions of repeaters, if template versions do not match, update the repeater with value from DB
@@ -109,7 +114,7 @@ add_action( 'admin_menu', 'alm_admin_menu' );
109
  function alm_admin_menu() {
110
  $icon = 'dashicons-plus-alt';
111
  $icon = ALM_ADMIN_URL . "/img/alm-logo-16x16.png";
112
- $alm_page = add_menu_page( 'Ajax Load More', 'Ajax Load More', 'edit_theme_options', 'ajax-load-more', 'alm_settings_page', $icon, 81 );
113
  $alm_settings_page = add_submenu_page( 'ajax-load-more', 'Settings', 'Settings', 'edit_theme_options', 'ajax-load-more', 'alm_settings_page');
114
  $alm_template_page = add_submenu_page( 'ajax-load-more', 'Repeater Templates', 'Repeater Templates', 'edit_theme_options', 'ajax-load-more-repeaters', 'alm_repeater_page');
115
  $alm_shortcode_page = add_submenu_page( 'ajax-load-more', 'Shortcode Builder', 'Shortcode Builder', 'edit_theme_options', 'ajax-load-more-shortcode-builder', 'alm_shortcode_builder_page');
@@ -190,7 +195,6 @@ function alm_settings_page(){ ?>
190
  </div>
191
  <aside class="alm-sidebar">
192
  <?php include( plugin_dir_path( __FILE__ ) . 'includes/cta/resources.php'); ?>
193
- <?php //include( plugin_dir_path( __FILE__ ) . 'includes/cta/writeable.php'); ?>
194
  <?php include( plugin_dir_path( __FILE__ ) . 'includes/cta/about.php'); ?>
195
  </aside>
196
 
@@ -226,7 +230,7 @@ function alm_repeater_page(){ ?>
226
  $contents = fread ($handle, filesize ($filename));
227
  fclose ($handle);
228
  ?>
229
- <h3 class="heading"><?php _e('Default Repeater Template', ALM_NAME); ?></h3>
230
  <div class="expand-wrap">
231
  <div class="wrap repeater-wrap" data-name="default">
232
  <label class="template-title" for="default_repeater"><?php _e('Enter the HTML and PHP for the default template', ALM_NAME); ?></label>
@@ -267,6 +271,7 @@ function alm_repeater_page(){ ?>
267
  value = el.val(),
268
  btn = btn,
269
  repeater = container.data('name'),
 
270
  responseText = $(".saved-response", container);
271
 
272
  //If submit button has changed class.
@@ -279,6 +284,7 @@ function alm_repeater_page(){ ?>
279
  action: 'alm_save_repeater',
280
  value: value,
281
  repeater: repeater,
 
282
  nonce: alm_admin_localize.alm_admin_nonce,
283
  },
284
  success: function(e) {
@@ -312,13 +318,6 @@ function alm_repeater_page(){ ?>
312
  <aside class="alm-sidebar">
313
  <div class="cta">
314
  <h3><?php _e('Templating Help', ALM_NAME); ?></h3>
315
- <?php
316
- global $wpdb;
317
-
318
- //$table_name = $wpdb->prefix . "alm";
319
- //$value = $wpdb->get_var("SELECT repeaterDefault FROM $table_name WHERE id = 1");
320
-
321
- ?>
322
  <div class="item">
323
  <p><strong><?php _e('What is a repeater template?', ALM_NAME); ?></strong></p>
324
  <p><?php _e('A repeater template is a snippet of code that will execute over and over within a <a href="http://codex.wordpress.org/The_Loop" target="_blank">WordPress loop</a>.</p>', ALM_NAME); ?></p>
@@ -359,6 +358,7 @@ function alm_save_repeater(){
359
  //Write to repeater file
360
  $c = Trim(stripslashes($_POST["value"])); // Repeater Value
361
  $n = Trim(stripslashes($_POST["repeater"])); // Repeater name
 
362
  if($n === 'default')
363
  $f = ALM_PATH. '/core/repeater/'.$n .'.php'; // File
364
  else
@@ -366,8 +366,7 @@ function alm_save_repeater(){
366
  $o = fopen($f, 'w+'); //Open file
367
  $w = fwrite($o, $c); //Save the file
368
  $r = fread($o, 100000); //Read it
369
- fclose($o); //now close it
370
-
371
 
372
  //Save to database
373
  global $wpdb;
@@ -376,7 +375,7 @@ function alm_save_repeater(){
376
  $data_update = array('repeaterDefault' => "$c", 'pluginVersion' => ALM_VERSION);
377
  $data_where = array('name' => "default");
378
  }else{
379
- $data_update = array('repeaterDefault' => "$c", 'pluginVersion' => ALM_REPEATER_VERSION);
380
  $data_where = array('name' => $n);
381
  }
382
  $wpdb->update($table_name , $data_update, $data_where);
53
  $wpdb->query("ALTER TABLE $table_name ADD name TEXT NOT NULL");
54
  $wpdb->update($table_name , array('name' => 'default'), array('id' => 1));
55
  }
 
56
  // ********
57
  // @TO-DO - Upgrade test, will remove in future versions
58
+ // REMOVED - 2.1.3
59
  // ********
60
  $test = $wpdb->get_col("Show columns from $table_name like 'test'");
61
+ if(!empty($test)){
62
+ $wpdb->query("ALTER TABLE $table_name DROP test");
63
+ }
64
+
65
+ //Add column for repeater template alias
66
+ $alias = $wpdb->get_col("Show columns from $table_name like 'alias'");
67
+ if(empty($alias)){
68
+ $wpdb->query("ALTER TABLE $table_name ADD alias TEXT NOT NULL");
69
  }
70
 
71
  // Compare versions of repeaters, if template versions do not match, update the repeater with value from DB
114
  function alm_admin_menu() {
115
  $icon = 'dashicons-plus-alt';
116
  $icon = ALM_ADMIN_URL . "/img/alm-logo-16x16.png";
117
+ $alm_page = add_menu_page( 'Ajax Load More', 'Ajax Load More', 'edit_theme_options', 'ajax-load-more', 'alm_settings_page', $icon );
118
  $alm_settings_page = add_submenu_page( 'ajax-load-more', 'Settings', 'Settings', 'edit_theme_options', 'ajax-load-more', 'alm_settings_page');
119
  $alm_template_page = add_submenu_page( 'ajax-load-more', 'Repeater Templates', 'Repeater Templates', 'edit_theme_options', 'ajax-load-more-repeaters', 'alm_repeater_page');
120
  $alm_shortcode_page = add_submenu_page( 'ajax-load-more', 'Shortcode Builder', 'Shortcode Builder', 'edit_theme_options', 'ajax-load-more-shortcode-builder', 'alm_shortcode_builder_page');
195
  </div>
196
  <aside class="alm-sidebar">
197
  <?php include( plugin_dir_path( __FILE__ ) . 'includes/cta/resources.php'); ?>
 
198
  <?php include( plugin_dir_path( __FILE__ ) . 'includes/cta/about.php'); ?>
199
  </aside>
200
 
230
  $contents = fread ($handle, filesize ($filename));
231
  fclose ($handle);
232
  ?>
233
+ <h3 class="heading"><?php _e('Default Template', ALM_NAME); ?></h3>
234
  <div class="expand-wrap">
235
  <div class="wrap repeater-wrap" data-name="default">
236
  <label class="template-title" for="default_repeater"><?php _e('Enter the HTML and PHP for the default template', ALM_NAME); ?></label>
271
  value = el.val(),
272
  btn = btn,
273
  repeater = container.data('name'),
274
+ alias = ($('input._alm_repeater_alias', container).length) ? $('input._alm_repeater_alias', container).val() : '',
275
  responseText = $(".saved-response", container);
276
 
277
  //If submit button has changed class.
284
  action: 'alm_save_repeater',
285
  value: value,
286
  repeater: repeater,
287
+ alias: alias,
288
  nonce: alm_admin_localize.alm_admin_nonce,
289
  },
290
  success: function(e) {
318
  <aside class="alm-sidebar">
319
  <div class="cta">
320
  <h3><?php _e('Templating Help', ALM_NAME); ?></h3>
 
 
 
 
 
 
 
321
  <div class="item">
322
  <p><strong><?php _e('What is a repeater template?', ALM_NAME); ?></strong></p>
323
  <p><?php _e('A repeater template is a snippet of code that will execute over and over within a <a href="http://codex.wordpress.org/The_Loop" target="_blank">WordPress loop</a>.</p>', ALM_NAME); ?></p>
358
  //Write to repeater file
359
  $c = Trim(stripslashes($_POST["value"])); // Repeater Value
360
  $n = Trim(stripslashes($_POST["repeater"])); // Repeater name
361
+ $a = Trim(stripslashes($_POST["alias"])); // Repeater alias
362
  if($n === 'default')
363
  $f = ALM_PATH. '/core/repeater/'.$n .'.php'; // File
364
  else
366
  $o = fopen($f, 'w+'); //Open file
367
  $w = fwrite($o, $c); //Save the file
368
  $r = fread($o, 100000); //Read it
369
+ fclose($o); //now close it
 
370
 
371
  //Save to database
372
  global $wpdb;
375
  $data_update = array('repeaterDefault' => "$c", 'pluginVersion' => ALM_VERSION);
376
  $data_where = array('name' => "default");
377
  }else{
378
+ $data_update = array('repeaterDefault' => "$c", 'alias' => "$a", 'pluginVersion' => ALM_REPEATER_VERSION);
379
  $data_where = array('name' => $n);
380
  }
381
  $wpdb->update($table_name , $data_update, $data_where);
admin/css/admin.css CHANGED
@@ -82,7 +82,7 @@
82
  font-weight: 600;
83
  padding: 0 0 0 25px !important;
84
  line-height: normal !important;
85
- margin: 0 0 5px !important;
86
  color: #444;
87
  cursor: pointer;
88
  width: 100%;
@@ -228,8 +228,22 @@
228
  display: inline-block;
229
  clear: both;
230
  border-radius: 3px;
231
- color: #666;
 
 
 
 
 
 
 
 
 
 
232
  }
 
 
 
 
233
  .ajax-load-more label{
234
  padding: 5px 0;
235
  }
@@ -251,8 +265,13 @@
251
  }
252
  .ajax-load-more input[type=text]{
253
  padding: 10px;
 
254
  border: 1px solid #ccc;
255
- width: 50%;
 
 
 
 
256
  }
257
  .ajax-load-more input[type=text]:focus,
258
  .ajax-load-more textarea:focus{
@@ -264,20 +283,28 @@
264
  margin-right: 5px;
265
  }
266
 
 
 
 
 
 
 
 
 
267
 
268
  /* --------------------------------------------------------------------------- */
269
  /* Row */
270
  /* --------------------------------------------------------------------------- */
271
 
272
  .ajax-load-more .row{
273
- padding: 15px 0 0;
274
- margin: 15px 0 0;
275
- height: auto;
276
- width: 100%;
277
- display: block;
278
- overflow: visible;
279
- clear: both;
280
- border-top: 1px solid #efefef;
281
  }
282
 
283
  .admin.ajax-load-more .row{
@@ -312,6 +339,7 @@
312
 
313
  .ajax-load-more .section-title{
314
  width: 35%;
 
315
  float: left;
316
  }
317
  .ajax-load-more .section-title p{
@@ -343,11 +371,10 @@
343
 
344
 
345
  .ajax-load-more .row .wrap{
346
- padding: 0;
347
  margin: 0;
348
  border: none;
349
  width: 65%;
350
- padding-left: 5%;
351
  float: left;
352
  position: relative;
353
  }
@@ -388,7 +415,7 @@
388
  }
389
  .ajax-load-more .row .wrap .inner.half{
390
  padding:0 0 20px;
391
- width: 49.5%;
392
  display: inline-block;
393
  }
394
 
@@ -670,7 +697,7 @@ input.save-repeater{
670
  .restore-default a{
671
  text-decoration: none;
672
  }
673
-
674
 
675
  table.highlight{
676
  background: #fff !important;
@@ -980,7 +1007,7 @@ a.btn{
980
  zoom: 1;
981
  *display: inline;
982
  vertical-align: middle;
983
- min-width: 50%;
984
  }
985
  .inner.half .select2-container{
986
  min-width: 90%;
82
  font-weight: 600;
83
  padding: 0 0 0 25px !important;
84
  line-height: normal !important;
85
+ margin: 0 !important;
86
  color: #444;
87
  cursor: pointer;
88
  width: 100%;
228
  display: inline-block;
229
  clear: both;
230
  border-radius: 3px;
231
+ color: #444;
232
+ -webkit-box-shadow: none;
233
+ -moz-box-shadow: none;
234
+ box-shadow: none;
235
+ }
236
+
237
+ .ajax-load-more textarea._alm_repeater{
238
+ font-family: Consolas, monaco, monospace;
239
+ font-size: 13px;
240
+ line-height: 19px;
241
+ padding: 10px;
242
  }
243
+ .ajax-load-more textarea._alm_repeater:focus{
244
+ color: #222;
245
+ }
246
+
247
  .ajax-load-more label{
248
  padding: 5px 0;
249
  }
265
  }
266
  .ajax-load-more input[type=text]{
267
  padding: 10px;
268
+ line-height: 1.3;
269
  border: 1px solid #ccc;
270
+ width: 60%;
271
+ }
272
+ .ajax-load-more input.disabled-input{
273
+ opacity: 0.5;
274
+ filter: alpha(opacity=50);
275
  }
276
  .ajax-load-more input[type=text]:focus,
277
  .ajax-load-more textarea:focus{
283
  margin-right: 5px;
284
  }
285
 
286
+ .ajax-load-more .one_half{
287
+ display: inline-block;
288
+ width: 47.333%;
289
+ margin: 0 0 1% 2%;
290
+ }
291
+ .ajax-load-more .one_half:first-child{
292
+ margin: 0 2% 1% 0;
293
+ }
294
 
295
  /* --------------------------------------------------------------------------- */
296
  /* Row */
297
  /* --------------------------------------------------------------------------- */
298
 
299
  .ajax-load-more .row{
300
+ padding: 15px 0 0;
301
+ margin: 15px 0 0;
302
+ height: auto;
303
+ width: 100%;
304
+ display: block;
305
+ overflow: hidden;
306
+ clear: both;
307
+ border-top: 2px solid #efefef;
308
  }
309
 
310
  .admin.ajax-load-more .row{
339
 
340
  .ajax-load-more .section-title{
341
  width: 35%;
342
+ padding-top: 5px;
343
  float: left;
344
  }
345
  .ajax-load-more .section-title p{
371
 
372
 
373
  .ajax-load-more .row .wrap{
374
+ padding: 5px 0 0 5%;
375
  margin: 0;
376
  border: none;
377
  width: 65%;
 
378
  float: left;
379
  position: relative;
380
  }
415
  }
416
  .ajax-load-more .row .wrap .inner.half{
417
  padding:0 0 20px;
418
+ width: 49.333%;
419
  display: inline-block;
420
  }
421
 
697
  .restore-default a{
698
  text-decoration: none;
699
  }
700
+
701
 
702
  table.highlight{
703
  background: #fff !important;
1007
  zoom: 1;
1008
  *display: inline;
1009
  vertical-align: middle;
1010
+ min-width: 60%;
1011
  }
1012
  .inner.half .select2-container{
1013
  min-width: 90%;
admin/includes/shortcode-builder.php CHANGED
@@ -25,7 +25,10 @@
25
 
26
 
27
  // List registered post_types
28
- $types = get_post_types();
 
 
 
29
  if($types){
30
  echo '<div class="row checkboxes post_types" id="alm-post-types">';
31
  echo '<h3 class="heading">'.__('Post Types', ALM_NAME). '</h3>';
@@ -352,7 +355,7 @@
352
  <h3 class="heading"><?php _e('Transition', ALM_NAME); ?></h3>
353
  <div class="expand-wrap">
354
  <div class="section-title">
355
- <p><?php _e('Select a loading transition from the drop menu.', ALM_NAME); ?></p>
356
  </div>
357
  <div class="wrap">
358
  <div class="inner">
25
 
26
 
27
  // List registered post_types
28
+ $pt_args = array(
29
+ 'public' => true
30
+ );
31
+ $types = get_post_types($pt_args);
32
  if($types){
33
  echo '<div class="row checkboxes post_types" id="alm-post-types">';
34
  echo '<h3 class="heading">'.__('Post Types', ALM_NAME). '</h3>';
355
  <h3 class="heading"><?php _e('Transition', ALM_NAME); ?></h3>
356
  <div class="expand-wrap">
357
  <div class="section-title">
358
+ <p><?php _e('Select a loading transition.', ALM_NAME); ?></p>
359
  </div>
360
  <div class="wrap">
361
  <div class="inner">
ajax-load-more.php CHANGED
@@ -6,14 +6,14 @@ Description: A simple yet powerful solution for lazy loading WordPress posts and
6
  Author: Darren Cooney
7
  Twitter: @KaptonKaos
8
  Author URI: http://connekthq.com
9
- Version: 2.1.1
10
  License: GPL
11
  Copyright: Darren Cooney & Connekt Media
12
  */
13
 
14
 
15
- define('ALM_VERSION', '2.1.1');
16
- define('ALM_RELEASE', 'July 20, 2014');
17
 
18
  /*
19
  * alm_install
6
  Author: Darren Cooney
7
  Twitter: @KaptonKaos
8
  Author URI: http://connekthq.com
9
+ Version: 2.1.3
10
  License: GPL
11
  Copyright: Darren Cooney & Connekt Media
12
  */
13
 
14
 
15
+ define('ALM_VERSION', '2.1.3');
16
+ define('ALM_RELEASE', 'August 6, 2014');
17
 
18
  /*
19
  * alm_install
core/css/ajax-load-more.css CHANGED
@@ -1,5 +1,7 @@
1
  /*
2
  * WordPress Ajax Load More
 
 
3
  * https://github.com/dcooney/wordpress-ajax-load-more
4
  *
5
  * Copyright 2014 Connekt Media - http://connekthq.com/
@@ -10,13 +12,13 @@
10
  * Twitter: @KaptonKaos
11
  */
12
 
13
- button#load-more{
14
  font-family: Helvetica, Arial, sans-serif;
15
  font-size:16px;
16
  font-weight: 600;
17
  width:auto;
18
  height: 42px;
19
- line-height: 42px;
20
  background: #FF5A58;
21
  color:#fff;
22
  border: none;
@@ -34,7 +36,7 @@ button#load-more{
34
  text-decoration: none;
35
  -webkit-appearance: none;
36
  -moz-appearance: none;
37
- appearance: none;
38
  /* Prevents text selection */
39
  -webkit-touch-callout: none;
40
  -webkit-user-select: none;
@@ -45,12 +47,12 @@ button#load-more{
45
  user-select: none;
46
  cursor: pointer;
47
  }
48
- button#load-more:hover{
49
  background-color: #ec4745;
50
  color: #fff;
51
  text-decoration: none;
52
  }
53
- button#load-more:active{
54
  -webkit-box-shadow: inset 0 4px 3px rgba(0, 0, 0, 0.15);
55
  -moz-box-shadow: inset 0 4px 3px rgba(0, 0, 0, 0.15);
56
  box-shadow: inset 0 4px 3px rgba(0, 0, 0, 0.15);
@@ -59,12 +61,12 @@ button#load-more{
59
 
60
 
61
  /* Loading */
62
- button#load-more.loading{
63
- padding-left: 42px;
64
  }
65
 
66
  /* Loaded / Done */
67
- button#load-more.done{
68
  cursor: default;
69
  opacity: 0.2;
70
  filter: alpha(opacity=20);
@@ -75,18 +77,18 @@ button#load-more{
75
  }
76
 
77
  /* Loading Icon */
78
- button #load-more:before,
79
- button#load-more.done:before{
80
  background: none;
81
  width: 0;
82
  }
83
 
84
  /* Loading :before */
85
- button#load-more.loading:before {
86
  background: #fff url(../../core/img/ajax-loader.gif) no-repeat center center;
87
  width: 30px;
88
  height: 30px;
89
- margin: 5px;
90
  -webkit-border-radius:3px;
91
  -moz-border-radius:3px;
92
  border-radius:3px;
@@ -109,50 +111,50 @@ button#load-more{
109
  }
110
 
111
  /* Blue */
112
- #ajax-load-more.blue button#load-more{
113
  background-color: #529ecf;
114
  }
115
- #ajax-load-more.blue button#load-more:hover,
116
- #ajax-load-more.blue button#load-more.done{
117
  background-color: #468ebb;
118
  }
119
 
120
  /* green */
121
- #ajax-load-more.green button#load-more{
122
  background-color: #80bb46;
123
  }
124
- #ajax-load-more.green button#load-more:hover,
125
- #ajax-load-more.green button#load-more.done{
126
  background-color: #6fa43c;
127
  }
128
 
129
 
130
  /* red */
131
- #ajax-load-more.red button#load-more{
132
  background-color: #ca4b4b;
133
  }
134
- #ajax-load-more.red button#load-more:hover,
135
- #ajax-load-more.red button#load-more.done{
136
  background-color: #b13b3b;
137
  }
138
 
139
 
140
  /* purple */
141
- #ajax-load-more.purple button#load-more{
142
  background-color: #b14fae;
143
  }
144
- #ajax-load-more.purple button#load-more:hover,
145
- #ajax-load-more.purple button#load-more.done{
146
  background-color: #9c4399;
147
  }
148
 
149
 
150
  /* grey */
151
- #ajax-load-more.grey button#load-more{
152
  background-color: #999;
153
  }
154
- #ajax-load-more.grey button#load-more:hover,
155
- #ajax-load-more.grey button#load-more.done{
156
  background-color: #666;
157
  }
158
 
1
  /*
2
  * WordPress Ajax Load More
3
+ * http://wordpress.org/plugins/ajax-load-more/
4
+
5
  * https://github.com/dcooney/wordpress-ajax-load-more
6
  *
7
  * Copyright 2014 Connekt Media - http://connekthq.com/
12
  * Twitter: @KaptonKaos
13
  */
14
 
15
+ button.alm-load-more-btn{
16
  font-family: Helvetica, Arial, sans-serif;
17
  font-size:16px;
18
  font-weight: 600;
19
  width:auto;
20
  height: 42px;
21
+ line-height: 44px;
22
  background: #FF5A58;
23
  color:#fff;
24
  border: none;
36
  text-decoration: none;
37
  -webkit-appearance: none;
38
  -moz-appearance: none;
39
+ appearance: none;
40
  /* Prevents text selection */
41
  -webkit-touch-callout: none;
42
  -webkit-user-select: none;
47
  user-select: none;
48
  cursor: pointer;
49
  }
50
+ button.alm-load-more-btn:hover{
51
  background-color: #ec4745;
52
  color: #fff;
53
  text-decoration: none;
54
  }
55
+ button.alm-load-more-btn:active{
56
  -webkit-box-shadow: inset 0 4px 3px rgba(0, 0, 0, 0.15);
57
  -moz-box-shadow: inset 0 4px 3px rgba(0, 0, 0, 0.15);
58
  box-shadow: inset 0 4px 3px rgba(0, 0, 0, 0.15);
61
 
62
 
63
  /* Loading */
64
+ button.alm-load-more-btn.loading{
65
+ padding-left: 44px;
66
  }
67
 
68
  /* Loaded / Done */
69
+ button.alm-load-more-btn.done{
70
  cursor: default;
71
  opacity: 0.2;
72
  filter: alpha(opacity=20);
77
  }
78
 
79
  /* Loading Icon */
80
+ button.alm-load-more-btn:before,
81
+ button.alm-load-more-btn.done:before{
82
  background: none;
83
  width: 0;
84
  }
85
 
86
  /* Loading :before */
87
+ button.alm-load-more-btn.loading:before {
88
  background: #fff url(../../core/img/ajax-loader.gif) no-repeat center center;
89
  width: 30px;
90
  height: 30px;
91
+ margin: 6px;
92
  -webkit-border-radius:3px;
93
  -moz-border-radius:3px;
94
  border-radius:3px;
111
  }
112
 
113
  /* Blue */
114
+ .ajax-load-more-wrap.blue button#load-more{
115
  background-color: #529ecf;
116
  }
117
+ .ajax-load-more-wrap.blue button#load-more:hover,
118
+ .ajax-load-more-wrap.blue button#load-more.done{
119
  background-color: #468ebb;
120
  }
121
 
122
  /* green */
123
+ .ajax-load-more-wrap.green button#load-more{
124
  background-color: #80bb46;
125
  }
126
+ .ajax-load-more-wrap.green button#load-more:hover,
127
+ .ajax-load-more-wrap.green button#load-more.done{
128
  background-color: #6fa43c;
129
  }
130
 
131
 
132
  /* red */
133
+ .ajax-load-more-wrap.red button#load-more{
134
  background-color: #ca4b4b;
135
  }
136
+ .ajax-load-more-wrap.red button#load-more:hover,
137
+ .ajax-load-more-wrap.red button#load-more.done{
138
  background-color: #b13b3b;
139
  }
140
 
141
 
142
  /* purple */
143
+ .ajax-load-more-wrap.purple button#load-more{
144
  background-color: #b14fae;
145
  }
146
+ .ajax-load-more-wrap.purple button#load-more:hover,
147
+ .ajax-load-more-wrap.purple button#load-more.done{
148
  background-color: #9c4399;
149
  }
150
 
151
 
152
  /* grey */
153
+ .ajax-load-more-wrap.grey button#load-more{
154
  background-color: #999;
155
  }
156
+ .ajax-load-more-wrap.grey button#load-more:hover,
157
+ .ajax-load-more-wrap.grey button#load-more.done{
158
  background-color: #666;
159
  }
160
 
core/js/ajax-load-more.js CHANGED
@@ -1,5 +1,6 @@
1
  /*
2
  * WordPress Ajax Load More
 
3
  * https://github.com/dcooney/wordpress-ajax-load-more
4
  *
5
  * Copyright 2014 Connekt Media - http://cnkt.ca/ajax-load-more/
@@ -8,34 +9,35 @@
8
  *
9
  * Author: Darren Cooney
10
  * Twitter: @KaptonKaos
11
- */
 
12
  (function($) {
13
- "use strict";
14
- var AjaxLoadMore = {};
15
- //Set vars
16
- var page = 0,
17
- speed = 300,
18
- proceed = false,
19
- $init = true,
20
- $loading = true,
21
- $finished = false,
22
- $window = $(window),
23
- $button_label = '',
24
- $data,
25
- $el = $('#ajax-load-more'),
26
- $content = $('.alm-listing', $el),
27
- $scroll = true,
28
- $prefix = 'alm-',
29
- $repeater = $content.data('repeater'),
30
- $max_pages = $content.data('max-pages'),
31
- $pause = $content.data('pause'),
32
- $offset = $content.data('offset'),
33
- $transition = $content.data('transition'),
34
- $posts_per_page = $content.data('posts-per-page');
35
-
36
- AjaxLoadMore.init = function() {
37
 
38
  $(window).scrollTop(0); //Prevent loading of unnessasry posts - move user to top of page
 
39
  // Check for pause on init
40
  // Pause could be used to hold the loading of posts for a button click.
41
  if ($pause === undefined) {
@@ -83,16 +85,23 @@
83
  $scroll = true;
84
  }
85
 
86
- // Add load more button
87
- $el.append('<div class="alm-btn-wrap"><button id="load-more" class="more">' + $button_label + '</button></div>');
88
- var $button = $('#load-more');
89
- //Parse Post Type for multiples
 
90
  var $post_type = $content.data('post-type');
91
  $post_type = $post_type.split(",");
92
- $('#load-more').text("Loading...");
93
- // Load posts function
 
 
 
 
 
94
  AjaxLoadMore.loadPosts = function() {
95
  $button.addClass('loading');
 
96
  $.ajax({
97
  type: "GET",
98
  url: alm_localize.ajaxurl,
@@ -160,12 +169,13 @@
160
  }
161
  },
162
  error: function(jqXHR, textStatus, errorThrown) {
 
163
  $button.removeClass('loading');
164
- //alert(jqXHR + " :: " + textStatus + " :: " + errorThrown);
165
  }
166
  });
167
  };
168
 
 
169
  // Button click event
170
  $button.click(function() {
171
  if($pause === true){
@@ -179,38 +189,78 @@
179
  }
180
  });
181
 
182
- // Window scroll event
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
183
  if ($scroll) {
184
  $window.scroll(function() {
185
- var content_offset = $button.offset();
186
- if (!$loading && !$finished && $window.scrollTop() >= Math.round(content_offset.top - ($window.height() - 150)) && page < ($max_pages - 1) && proceed) {
187
- $loading = true;
188
- page++;
189
- AjaxLoadMore.loadPosts();
 
 
190
  }
191
  });
192
  }
193
 
 
194
  //Check for pause variable
195
  if($pause === true){
196
- $button.text($button_label);
 
197
  }else{
198
  AjaxLoadMore.loadPosts();
199
- }
200
 
201
 
202
  //flag to prevent unnecessary loading of post on init. Hold for 2 seconds.
203
  setTimeout(function() {
204
  proceed = true;
205
- }, 2000);
 
 
 
 
 
 
 
206
  };
207
- //Init Ajax load More
208
- if ($("#ajax-load-more").length) {
209
- AjaxLoadMore.init();
 
 
 
 
 
 
 
210
  }
211
- //Custom easing function
212
- $.easing.alm_easeInOutQuad = function(x, t, b, c, d) {
213
- if ((t /= d / 2) < 1) return c / 2 * t * t + b;
214
- return -c / 2 * ((--t) * (t - 2) - 1) + b;
215
- };
 
 
 
216
  })(jQuery);
1
  /*
2
  * WordPress Ajax Load More
3
+ * http://wordpress.org/plugins/ajax-load-more/
4
  * https://github.com/dcooney/wordpress-ajax-load-more
5
  *
6
  * Copyright 2014 Connekt Media - http://cnkt.ca/ajax-load-more/
9
  *
10
  * Author: Darren Cooney
11
  * Twitter: @KaptonKaos
12
+ */
13
+
14
  (function($) {
15
+ "use strict";
16
+ $.ajaxloadmore = function(el) {
17
+ //Set variables
18
+ var AjaxLoadMore = {},
19
+ page = 0,
20
+ speed = 300,
21
+ proceed = false,
22
+ $init = true,
23
+ $loading = true,
24
+ $finished = false,
25
+ $window = $(window),
26
+ $button_label = '',
27
+ $data,
28
+ $el = el,
29
+ $content = $('.alm-listing', $el),
30
+ $scroll = true,
31
+ $prefix = 'alm-',
32
+ $repeater = $content.data('repeater'),
33
+ $max_pages = $content.data('max-pages'),
34
+ $pause = $content.data('pause'),
35
+ $offset = $content.data('offset'),
36
+ $transition = $content.data('transition'),
37
+ $posts_per_page = $content.data('posts-per-page');
 
38
 
39
  $(window).scrollTop(0); //Prevent loading of unnessasry posts - move user to top of page
40
+
41
  // Check for pause on init
42
  // Pause could be used to hold the loading of posts for a button click.
43
  if ($pause === undefined) {
85
  $scroll = true;
86
  }
87
 
88
+ // Append load more button tp .ajax-load-more
89
+ $el.append('<div class="'+$prefix+'btn-wrap"><button id="load-more" class="'+$prefix+'load-more-btn more">' + $button_label + '</button></div>');
90
+ var $button = $('.alm-load-more-btn', $el);
91
+
92
+ //Parse Post Type for multiple entries
93
  var $post_type = $content.data('post-type');
94
  $post_type = $post_type.split(",");
95
+
96
+
97
+ /* AjaxLoadMore.loadPosts()
98
+ *
99
+ * The function to get posts via Ajax
100
+ * @since 2.0.0
101
+ */
102
  AjaxLoadMore.loadPosts = function() {
103
  $button.addClass('loading');
104
+ $loading = true;
105
  $.ajax({
106
  type: "GET",
107
  url: alm_localize.ajaxurl,
169
  }
170
  },
171
  error: function(jqXHR, textStatus, errorThrown) {
172
+ $loading = false;
173
  $button.removeClass('loading');
 
174
  }
175
  });
176
  };
177
 
178
+
179
  // Button click event
180
  $button.click(function() {
181
  if($pause === true){
189
  }
190
  });
191
 
192
+
193
+ /* AjaxLoadMore.isVisible()
194
+ *
195
+ * Check to see if element is visible before loading posts
196
+ * @since 2.1.2
197
+ */
198
+ AjaxLoadMore.isVisible = function(){
199
+ var visible = false;
200
+ if($el.is(":visible")){
201
+ visible = true;
202
+ }
203
+ return visible;
204
+ }
205
+
206
+
207
+ /* AjaxLoadMore.isVisible()
208
+ *
209
+ * Check to see if element is visible before loading posts
210
+ * @since 2.1.2
211
+ */
212
  if ($scroll) {
213
  $window.scroll(function() {
214
+ if(AjaxLoadMore.isVisible()){
215
+ var content_offset = $button.offset();
216
+ if (!$loading && !$finished && $window.scrollTop() >= Math.round(content_offset.top - ($window.height() - 150)) && page < ($max_pages - 1) && proceed) {
217
+ $loading = true;
218
+ page++;
219
+ AjaxLoadMore.loadPosts();
220
+ }
221
  }
222
  });
223
  }
224
 
225
+
226
  //Check for pause variable
227
  if($pause === true){
228
+ $button.text($button_label);
229
+ $loading = false;
230
  }else{
231
  AjaxLoadMore.loadPosts();
232
+ }
233
 
234
 
235
  //flag to prevent unnecessary loading of post on init. Hold for 2 seconds.
236
  setTimeout(function() {
237
  proceed = true;
238
+ }, 1000);
239
+
240
+
241
+ //Custom easing function
242
+ $.easing.alm_easeInOutQuad = function(x, t, b, c, d) {
243
+ if ((t /= d / 2) < 1) return c / 2 * t * t + b;
244
+ return -c / 2 * ((--t) * (t - 2) - 1) + b;
245
+ };
246
  };
247
+
248
+ /* ajaxloadmore()
249
+ *
250
+ * Initiate all instances of Ajax load More
251
+ * @since 2.1.2
252
+ */
253
+ $.fn.ajaxloadmore = function() {
254
+ return this.each(function() {
255
+ new $.ajaxloadmore($(this));
256
+ });
257
  }
258
+
259
+ /*
260
+ * Init Ajax load More if div is present on screen
261
+ * @since 2.1.2
262
+ */
263
+ if($(".ajax-load-more-wrap").length)
264
+ $(".ajax-load-more-wrap").ajaxloadmore();
265
+
266
  })(jQuery);
lang/ajax-load-more.pot CHANGED
@@ -1,121 +1,121 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Ajax Load More\n"
4
- "POT-Creation-Date: 2014-06-09 10:53-0500\n"
5
- "PO-Revision-Date: 2014-06-09 10:53-0500\n"
6
- "Last-Translator: Darren Cooney <darren.cooney@gmail.com>\n"
7
  "Language-Team: \n"
8
  "Language: en_CA\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.6.3\n"
13
  "X-Poedit-Basepath: .\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Poedit-KeywordsList: __;_e\n"
16
  "X-Poedit-SearchPath-0: ..\n"
17
 
18
- #: ../admin/admin.php:102
19
- msgid "Ajax load More: Repeaters"
20
  msgstr ""
21
 
22
- #: ../admin/admin.php:103
23
- msgid "The library of available repeaters"
24
  msgstr ""
25
 
26
- #: ../admin/admin.php:116
27
- msgid "Default Repeater"
28
  msgstr ""
29
 
30
- #: ../admin/admin.php:119
31
- msgid "Enter the HTML and PHP for the default repeater."
32
  msgstr ""
33
 
34
- #: ../admin/admin.php:127
35
- msgid "Restore Default"
36
  msgstr ""
37
 
38
- #: ../admin/admin.php:167
39
  msgid "Saving data..."
40
  msgstr ""
41
 
42
- #: ../admin/admin.php:179
43
  msgid "Custom repeater value saved."
44
  msgstr ""
45
 
46
- #: ../admin/admin.php:187
47
  msgid "Something went wrong and the data could not be saved."
48
  msgstr ""
49
 
50
- #: ../admin/admin.php:208
51
- msgid "Repeater Help"
52
  msgstr ""
53
 
54
- #: ../admin/admin.php:210
55
- msgid "What is a repeater?"
56
  msgstr ""
57
 
58
- #: ../admin/admin.php:211
59
  msgid ""
60
- "A repeater is a snippet of code that will execute over and over within a <a "
61
- "href=\"http://codex.wordpress.org/The_Loop\" target=\"_blank\">WordPress "
62
- "loop</a>.</p>"
63
  msgstr ""
64
 
65
- #: ../admin/admin.php:214
66
- msgid "Can I include PHP in the repeater?"
67
  msgstr ""
68
 
69
- #: ../admin/admin.php:215
70
  msgid ""
71
  "Yes, PHP and core WordPress functions such as, <code>the_title()</code> and "
72
  "<code>the_permalink()</code> are required.</p>"
73
  msgstr ""
74
 
75
- #: ../admin/admin.php:218
76
  msgid "Tips and Tricks"
77
  msgstr ""
78
 
79
- #: ../admin/admin.php:220
80
  msgid ""
81
- "Always open and close your repeater with an HTML element. In some rare cases "
82
- "data may not be displayed.<br/>e.g. <code>&lt;li> &lt;/li></code> or "
83
- "<code>&lt;div> &lt;/div></code>"
84
  msgstr ""
85
 
86
- #: ../admin/admin.php:277
87
  msgid "Ajax load More: Shortcode Builder"
88
  msgstr ""
89
 
90
- #: ../admin/admin.php:278
91
  msgid ""
92
  "Create your own Ajax Load More <a href=\"http://en.support.wordpress.com/"
93
  "shortcodes/\" target=\"_blank\">shortcode</a> by adjusting the values below"
94
  msgstr ""
95
 
96
- #: ../admin/admin.php:284 ../admin/admin.php:361
97
  msgid "Back to Top"
98
  msgstr ""
99
 
100
- #: ../admin/admin.php:290
101
  msgid "Shortcode Output"
102
  msgstr ""
103
 
104
- #: ../admin/admin.php:291
105
  msgid ""
106
  "Copy and paste the following shortcode into the content editor or widget "
107
  "area of your theme."
108
  msgstr ""
109
 
110
- #: ../admin/admin.php:294 ../admin/editor-build.php:44
111
  msgid "Copy"
112
  msgstr ""
113
 
114
- #: ../admin/admin.php:298
115
  msgid "Did you know?"
116
  msgstr ""
117
 
118
- #: ../admin/admin.php:300
119
  msgid ""
120
  "<p class=\"addon-intro\">You can generate shortcodes while editing pages!</"
121
  "p><p>Look for the Ajax Load More [+] icon in the content editor toolbar and "
@@ -123,147 +123,203 @@ msgid ""
123
  "will pop open."
124
  msgstr ""
125
 
126
- #: ../admin/admin.php:320
127
  msgid "Ajax load More: Examples"
128
  msgstr ""
129
 
130
- #: ../admin/admin.php:321
131
  msgid "A collection of everyday shortcode usages and implementation examples"
132
  msgstr ""
133
 
134
- #: ../admin/admin.php:326
135
  msgid "Author.php"
136
  msgstr ""
137
 
138
- #: ../admin/admin.php:328
139
- msgid "Example shortcode for use on author archive pages."
140
  msgstr ""
141
 
142
- #: ../admin/admin.php:335
143
  msgid "Category.php"
144
  msgstr ""
145
 
146
- #: ../admin/admin.php:337
147
- msgid "Example shortcode for use on category archive pages."
148
  msgstr ""
149
 
150
- #: ../admin/admin.php:344
151
  msgid "Excluding Posts"
152
  msgstr ""
153
 
154
- #: ../admin/admin.php:346
155
- msgid "Example shortcode for excluding an array of posts."
156
  msgstr ""
157
 
158
- #: ../admin/admin.php:352
159
  msgid "Tag.php"
160
  msgstr ""
161
 
162
- #: ../admin/admin.php:354
163
- msgid "Example shortcode for use on tag archive pages."
164
  msgstr ""
165
 
166
- #: ../admin/admin.php:367
167
  msgid "Request Examples"
168
  msgstr ""
169
 
170
- #: ../admin/admin.php:368
171
  msgid ""
172
  "If you're having issue's with functionality, please submit example requests "
173
  "through the <a href=\"https://github.com/dcooney/wordpress-ajax-load-more\" "
174
  "target=\"_blank\">GitHub repository</a>. "
175
  msgstr ""
176
 
177
- #: ../admin/admin.php:392
178
  msgid "Ajax load More: Add-ons"
179
  msgstr ""
180
 
181
- #: ../admin/admin.php:393
182
  msgid ""
183
  "The following Add-ons are available to increase the functionality of Ajax "
184
  "Load More."
185
  msgstr ""
186
 
187
- #: ../admin/admin.php:399
188
  msgid "Custom Repeaters"
189
  msgstr ""
190
 
191
- #: ../admin/admin.php:405
192
- msgid "Unlock additional repeaters and keep your site looking fresh!"
 
 
193
  msgstr ""
194
 
195
- #: ../admin/admin.php:406
196
  msgid ""
197
  "The Custom Repeaters add-on will add <strong>five</strong> additional <a "
198
  "href=\"?page=ajax-load-more-repeaters\">repeaters</a> and allow you to "
199
  "select unique repeaters for different content types throughout your theme.</"
200
  "p> \n"
201
- " <p>It's easy! Just build each <a href=\"?page=ajax-load-"
202
- "more-repeaters\">repeater</a> and then choose from the list of repeaters "
203
- "while building your <a href=\"?page=ajax-load-more-shortcode-builder"
204
- "\">shortcode</a>.</p><p><strong>Read/Write Access is required!</strong></p>"
 
205
  msgstr ""
206
 
207
- #: ../admin/admin.php:424
208
  msgid "About Add-ons"
209
  msgstr ""
210
 
211
- #: ../admin/admin.php:425
212
  msgid ""
213
  "Add-ons are installed as a separate plugin and will receive plug-in update "
214
  "notifications. "
215
  msgstr ""
216
 
217
- #: ../admin/admin.php:479
218
  msgid "Disable CSS"
219
  msgstr ""
220
 
221
- #: ../admin/admin.php:486
222
  msgid "HTML5 Elements"
223
  msgstr ""
224
 
225
- #: ../admin/admin.php:493
226
  msgid "Container Type"
227
  msgstr ""
228
 
229
- #: ../admin/admin.php:500
230
  msgid "Container Class"
231
  msgstr ""
232
 
233
- #: ../admin/admin.php:507
234
  msgid "Button Color"
235
  msgstr ""
236
 
237
- #: ../admin/admin.php:524
238
  msgid ""
239
  "Customize your version of Ajax Load More by updating the fields below.</p><p "
240
  "class=\"small\">All changes will be applied globally accross your theme."
241
  msgstr ""
242
 
243
- #: ../admin/editor-build.php:36
244
  msgid "Jump to section"
245
  msgstr ""
246
 
247
- #: ../admin/editor-build.php:38
248
  msgid "Create your own Ajax Load More shortcode by adjusting the values below:"
249
  msgstr ""
250
 
251
- #: ../admin/editor-build.php:41
252
  msgid "Insert Shortcode"
253
  msgstr ""
254
 
255
- #: ../admin/editor.php:15
256
  msgid "You are not allowed to be here"
257
  msgstr ""
258
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
259
  #: ../admin/includes/shortcode-builder.php:6
260
  msgid "Repeater"
261
  msgstr ""
262
 
263
  #: ../admin/includes/shortcode-builder.php:9
264
  msgid ""
265
- "Select a <a href=\"?page=ajax-load-more-repeaters\">repeater</a> from drop "
266
- "menu."
267
  msgstr ""
268
 
269
  #: ../admin/includes/shortcode-builder.php:31
@@ -279,7 +335,7 @@ msgid "Category"
279
  msgstr ""
280
 
281
  #: ../admin/includes/shortcode-builder.php:56
282
- msgid "Select a Category to query(by slug) from the drop menu."
283
  msgstr ""
284
 
285
  #: ../admin/includes/shortcode-builder.php:59
@@ -291,178 +347,155 @@ msgid "Tag"
291
  msgstr ""
292
 
293
  #: ../admin/includes/shortcode-builder.php:75
294
- msgid "Select a Tag to query(by slug) from the drop menu."
295
  msgstr ""
296
 
297
  #: ../admin/includes/shortcode-builder.php:78
298
  msgid "Select Tag"
299
  msgstr ""
300
 
301
- #: ../admin/includes/shortcode-builder.php:91
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
302
  msgid "Author"
303
  msgstr ""
304
 
305
- #: ../admin/includes/shortcode-builder.php:94
306
- msgid "Select an Author to query(by ID) from the drop menu."
307
  msgstr ""
308
 
309
- #: ../admin/includes/shortcode-builder.php:97
310
  msgid "Select Author"
311
  msgstr ""
312
 
313
- #: ../admin/includes/shortcode-builder.php:109
314
  msgid "Search Term"
315
  msgstr ""
316
 
317
- #: ../admin/includes/shortcode-builder.php:112
318
  msgid "Enter a search term to query."
319
  msgstr ""
320
 
321
- #: ../admin/includes/shortcode-builder.php:116
322
  msgid "Enter search term"
323
  msgstr ""
324
 
325
- #: ../admin/includes/shortcode-builder.php:124
326
- msgid "Exclude Posts"
327
  msgstr ""
328
 
329
- #: ../admin/includes/shortcode-builder.php:127
 
 
 
 
 
 
 
 
330
  msgid "A comma separated list of post ID's to exclude from query."
331
  msgstr ""
332
 
333
- #: ../admin/includes/shortcode-builder.php:139
334
- msgid "Post Offset"
335
  msgstr ""
336
 
337
- #: ../admin/includes/shortcode-builder.php:142
338
- msgid "Offset the initial query by selecting a value from the drop menu."
339
  msgstr ""
340
 
341
- #: ../admin/includes/shortcode-builder.php:163
342
  msgid "Posts Per Page"
343
  msgstr ""
344
 
345
- #: ../admin/includes/shortcode-builder.php:166
346
  msgid "Select the number of posts to load with each request."
347
  msgstr ""
348
 
349
- #: ../admin/includes/shortcode-builder.php:192
350
  msgid "Load Posts on Scroll"
351
  msgstr ""
352
 
353
- #: ../admin/includes/shortcode-builder.php:195
354
  msgid "Load more posts as the user scrolls the page."
355
  msgstr ""
356
 
357
- #: ../admin/includes/shortcode-builder.php:202
358
- #: ../admin/includes/shortcode-builder.php:257
359
  msgid "True"
360
  msgstr ""
361
 
362
- #: ../admin/includes/shortcode-builder.php:206
363
- #: ../admin/includes/shortcode-builder.php:261
364
  msgid "False"
365
  msgstr ""
366
 
367
- #: ../admin/includes/shortcode-builder.php:217
368
  msgid "Max Pages"
369
  msgstr ""
370
 
371
- #: ../admin/includes/shortcode-builder.php:220
372
  msgid "Maximum number of pages to load while scrolling."
373
  msgstr ""
374
 
375
- #: ../admin/includes/shortcode-builder.php:235
376
  msgid "Unlimited"
377
  msgstr ""
378
 
379
- #: ../admin/includes/shortcode-builder.php:247
380
  msgid "Pause Loading of Posts"
381
  msgstr ""
382
 
383
- #: ../admin/includes/shortcode-builder.php:250
384
  msgid "Do not load posts until user clicks <em>load</em> button."
385
  msgstr ""
386
 
387
- #: ../admin/includes/shortcode-builder.php:272
388
  msgid "Transition"
389
  msgstr ""
390
 
391
- #: ../admin/includes/shortcode-builder.php:275
392
  msgid "Select a loading transition from the drop menu."
393
  msgstr ""
394
 
395
- #: ../admin/includes/shortcode-builder.php:280
396
  msgid "Slide"
397
  msgstr ""
398
 
399
- #: ../admin/includes/shortcode-builder.php:281
400
  msgid "Fade"
401
  msgstr ""
402
 
403
- #: ../admin/includes/shortcode-builder.php:291
404
  msgid "Button Label"
405
  msgstr ""
406
 
407
- #: ../admin/includes/shortcode-builder.php:294
408
  msgid "Customize the <em>Load More</em> button label."
409
  msgstr ""
410
 
411
- #: ../admin/includes/shortcode-builder.php:298
412
  msgid "Older Posts"
413
  msgstr ""
414
 
415
- #: ../admin/includes/cta/about.php:13
416
- msgid ""
417
- "<a href=\"http://twitter.com/kaptonkaos\" target=\"blank\" class=\"visit"
418
- "\"><i class=\"fa fa-twitter\"></i> Follow on Twitter</a>"
419
- msgstr ""
420
-
421
- #: ../admin/includes/cta/config.php:2
422
- msgid "Plugin Configurations"
423
- msgstr ""
424
-
425
- #: ../admin/includes/cta/config.php:4
426
- msgid "Plugin Version"
427
- msgstr ""
428
-
429
- #: ../admin/includes/cta/config.php:10
430
- msgid "Release Date"
431
- msgstr ""
432
-
433
- #: ../admin/includes/cta/extend.php:1
434
- msgid ""
435
- "Unlock additional repeaters with the <a href=\"?page=ajax-load-more-add-ons"
436
- "\" target=\"_parent\">Custom Repeaters add-on</a>"
437
- msgstr ""
438
-
439
- #: ../admin/includes/cta/extend.php:1
440
- msgid "More Info"
441
- msgstr ""
442
-
443
- #: ../admin/includes/cta/resources.php:2
444
- msgid "Help/Resources"
445
- msgstr ""
446
-
447
- #: ../admin/includes/cta/resources.php:8
448
- msgid ""
449
- "<a href=\"https://github.com/dcooney/wordpress-ajax-load-more\" target="
450
- "\"blank\" class=\"visit\"><i class=\"fa fa-github\"></i> Latest build on "
451
- "Github</a>"
452
- msgstr ""
453
-
454
- #: ../admin/includes/cta/writeable.php:2
455
- msgid "Read/Write Access"
456
- msgstr ""
457
-
458
- #: ../admin/includes/cta/writeable.php:8
459
- msgid "Write Access Enabled!"
460
- msgstr ""
461
-
462
- #: ../admin/includes/cta/writeable.php:10
463
- msgid "Write Access Denied!"
464
- msgstr ""
465
-
466
  #~ msgid "404 Error"
467
  #~ msgstr "Erreur 404 "
468
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Ajax Load More\n"
4
+ "POT-Creation-Date: 2014-07-29 10:46-0500\n"
5
+ "PO-Revision-Date: 2014-07-29 10:47-0500\n"
6
+ "Last-Translator: Darren Cooney <dcooney@ecentricarts.com>\n"
7
  "Language-Team: \n"
8
  "Language: en_CA\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.6.4\n"
13
  "X-Poedit-Basepath: .\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Poedit-KeywordsList: __;_e\n"
16
  "X-Poedit-SearchPath-0: ..\n"
17
 
18
+ #: ../admin/admin.php:215
19
+ msgid "Ajax load More: Repeater Templates"
20
  msgstr ""
21
 
22
+ #: ../admin/admin.php:216
23
+ msgid "The library of available templates to use throughout your theme"
24
  msgstr ""
25
 
26
+ #: ../admin/admin.php:229
27
+ msgid "Default Repeater Template"
28
  msgstr ""
29
 
30
+ #: ../admin/admin.php:232
31
+ msgid "Enter the HTML and PHP for the default template"
32
  msgstr ""
33
 
34
+ #: ../admin/admin.php:234
35
+ msgid "Save Template"
36
  msgstr ""
37
 
38
+ #: ../admin/admin.php:274
39
  msgid "Saving data..."
40
  msgstr ""
41
 
42
+ #: ../admin/admin.php:286
43
  msgid "Custom repeater value saved."
44
  msgstr ""
45
 
46
+ #: ../admin/admin.php:294
47
  msgid "Something went wrong and the data could not be saved."
48
  msgstr ""
49
 
50
+ #: ../admin/admin.php:314
51
+ msgid "Templating Help"
52
  msgstr ""
53
 
54
+ #: ../admin/admin.php:323
55
+ msgid "What is a repeater template?"
56
  msgstr ""
57
 
58
+ #: ../admin/admin.php:324
59
  msgid ""
60
+ "A repeater template is a snippet of code that will execute over and over "
61
+ "within a <a href=\"http://codex.wordpress.org/The_Loop\" target=\"_blank"
62
+ "\">WordPress loop</a>.</p>"
63
  msgstr ""
64
 
65
+ #: ../admin/admin.php:327
66
+ msgid "Can I include PHP in the repeater template?"
67
  msgstr ""
68
 
69
+ #: ../admin/admin.php:328
70
  msgid ""
71
  "Yes, PHP and core WordPress functions such as, <code>the_title()</code> and "
72
  "<code>the_permalink()</code> are required.</p>"
73
  msgstr ""
74
 
75
+ #: ../admin/admin.php:331
76
  msgid "Tips and Tricks"
77
  msgstr ""
78
 
79
+ #: ../admin/admin.php:333
80
  msgid ""
81
+ "Always open and close your templates with an HTML element. In some rare "
82
+ "cases data may not be displayed if not wrapped in HTML.<br/>e.g. <code>&lt;"
83
+ "li> &lt;/li></code> or <code>&lt;div> &lt;/div></code>"
84
  msgstr ""
85
 
86
+ #: ../admin/admin.php:404
87
  msgid "Ajax load More: Shortcode Builder"
88
  msgstr ""
89
 
90
+ #: ../admin/admin.php:405
91
  msgid ""
92
  "Create your own Ajax Load More <a href=\"http://en.support.wordpress.com/"
93
  "shortcodes/\" target=\"_blank\">shortcode</a> by adjusting the values below"
94
  msgstr ""
95
 
96
+ #: ../admin/admin.php:411 ../admin/admin.php:525
97
  msgid "Back to Top"
98
  msgstr ""
99
 
100
+ #: ../admin/admin.php:417
101
  msgid "Shortcode Output"
102
  msgstr ""
103
 
104
+ #: ../admin/admin.php:418
105
  msgid ""
106
  "Copy and paste the following shortcode into the content editor or widget "
107
  "area of your theme."
108
  msgstr ""
109
 
110
+ #: ../admin/admin.php:421 ../admin/editor-build.php:45
111
  msgid "Copy"
112
  msgstr ""
113
 
114
+ #: ../admin/admin.php:425
115
  msgid "Did you know?"
116
  msgstr ""
117
 
118
+ #: ../admin/admin.php:427
119
  msgid ""
120
  "<p class=\"addon-intro\">You can generate shortcodes while editing pages!</"
121
  "p><p>Look for the Ajax Load More [+] icon in the content editor toolbar and "
123
  "will pop open."
124
  msgstr ""
125
 
126
+ #: ../admin/admin.php:484
127
  msgid "Ajax load More: Examples"
128
  msgstr ""
129
 
130
+ #: ../admin/admin.php:485
131
  msgid "A collection of everyday shortcode usages and implementation examples"
132
  msgstr ""
133
 
134
+ #: ../admin/admin.php:490
135
  msgid "Author.php"
136
  msgstr ""
137
 
138
+ #: ../admin/admin.php:492
139
+ msgid "Shortcode for use on author archive pages."
140
  msgstr ""
141
 
142
+ #: ../admin/admin.php:499
143
  msgid "Category.php"
144
  msgstr ""
145
 
146
+ #: ../admin/admin.php:501
147
+ msgid "Shortcode for use on category archive pages."
148
  msgstr ""
149
 
150
+ #: ../admin/admin.php:508
151
  msgid "Excluding Posts"
152
  msgstr ""
153
 
154
+ #: ../admin/admin.php:510
155
+ msgid "Shortcode for excluding an array of posts."
156
  msgstr ""
157
 
158
+ #: ../admin/admin.php:516
159
  msgid "Tag.php"
160
  msgstr ""
161
 
162
+ #: ../admin/admin.php:518
163
+ msgid "Shortcode for use on tag archive pages."
164
  msgstr ""
165
 
166
+ #: ../admin/admin.php:531
167
  msgid "Request Examples"
168
  msgstr ""
169
 
170
+ #: ../admin/admin.php:532
171
  msgid ""
172
  "If you're having issue's with functionality, please submit example requests "
173
  "through the <a href=\"https://github.com/dcooney/wordpress-ajax-load-more\" "
174
  "target=\"_blank\">GitHub repository</a>. "
175
  msgstr ""
176
 
177
+ #: ../admin/admin.php:556
178
  msgid "Ajax load More: Add-ons"
179
  msgstr ""
180
 
181
+ #: ../admin/admin.php:557
182
  msgid ""
183
  "The following Add-ons are available to increase the functionality of Ajax "
184
  "Load More."
185
  msgstr ""
186
 
187
+ #: ../admin/admin.php:563
188
  msgid "Custom Repeaters"
189
  msgstr ""
190
 
191
+ #: ../admin/admin.php:569
192
+ msgid ""
193
+ "Unlock additional repeater templates and keep your site looking and feeling "
194
+ "fresh!"
195
  msgstr ""
196
 
197
+ #: ../admin/admin.php:570
198
  msgid ""
199
  "The Custom Repeaters add-on will add <strong>five</strong> additional <a "
200
  "href=\"?page=ajax-load-more-repeaters\">repeaters</a> and allow you to "
201
  "select unique repeaters for different content types throughout your theme.</"
202
  "p> \n"
203
+ " <p>It's easy, seriously! Simply build each <a href=\"?"
204
+ "page=ajax-load-more-repeaters\">repeater</a> just the way you want them, "
205
+ "then select a template from the list of available templates while building "
206
+ "your <a href=\"?page=ajax-load-more-shortcode-builder\">shortcode</a>.</"
207
+ "p><p><strong>Read/Write Access is required!</strong></p>"
208
  msgstr ""
209
 
210
+ #: ../admin/admin.php:588
211
  msgid "About Add-ons"
212
  msgstr ""
213
 
214
+ #: ../admin/admin.php:589
215
  msgid ""
216
  "Add-ons are installed as a separate plugin and will receive plug-in update "
217
  "notifications. "
218
  msgstr ""
219
 
220
+ #: ../admin/admin.php:622
221
  msgid "Disable CSS"
222
  msgstr ""
223
 
224
+ #: ../admin/admin.php:629
225
  msgid "HTML5 Elements"
226
  msgstr ""
227
 
228
+ #: ../admin/admin.php:636
229
  msgid "Container Type"
230
  msgstr ""
231
 
232
+ #: ../admin/admin.php:643
233
  msgid "Container Class"
234
  msgstr ""
235
 
236
+ #: ../admin/admin.php:650
237
  msgid "Button Color"
238
  msgstr ""
239
 
240
+ #: ../admin/admin.php:667
241
  msgid ""
242
  "Customize your version of Ajax Load More by updating the fields below.</p><p "
243
  "class=\"small\">All changes will be applied globally accross your theme."
244
  msgstr ""
245
 
246
+ #: ../admin/editor-build.php:37
247
  msgid "Jump to section"
248
  msgstr ""
249
 
250
+ #: ../admin/editor-build.php:39
251
  msgid "Create your own Ajax Load More shortcode by adjusting the values below:"
252
  msgstr ""
253
 
254
+ #: ../admin/editor-build.php:42
255
  msgid "Insert Shortcode"
256
  msgstr ""
257
 
258
+ #: ../admin/editor.php:14
259
  msgid "You are not allowed to be here"
260
  msgstr ""
261
 
262
+ #: ../admin/includes/cta/config.php:2
263
+ msgid "Plugin Configurations"
264
+ msgstr ""
265
+
266
+ #: ../admin/includes/cta/config.php:4
267
+ msgid "Plugin Version"
268
+ msgstr ""
269
+
270
+ #: ../admin/includes/cta/config.php:10
271
+ msgid "Release Date"
272
+ msgstr ""
273
+
274
+ #: ../admin/includes/cta/extend.php:1
275
+ msgid ""
276
+ "Unlock additional repeaters with the <a href=\"?page=ajax-load-more-add-ons"
277
+ "\" target=\"_parent\">Custom Repeaters add-on</a>"
278
+ msgstr ""
279
+
280
+ #: ../admin/includes/cta/extend.php:1
281
+ msgid "More Info"
282
+ msgstr ""
283
+
284
+ #: ../admin/includes/cta/resources.php:2
285
+ msgid "Help/Resources"
286
+ msgstr ""
287
+
288
+ #: ../admin/includes/cta/resources.php:9
289
+ msgid ""
290
+ "<a href=\"https://github.com/dcooney/wordpress-ajax-load-more\" target="
291
+ "\"blank\" class=\"visit\"><i class=\"fa fa-github\"></i> Latest development "
292
+ "build on Github</a>"
293
+ msgstr ""
294
+
295
+ #: ../admin/includes/cta/writeable.php:2
296
+ msgid "Read/Write Access"
297
+ msgstr ""
298
+
299
+ #: ../admin/includes/cta/writeable.php:8
300
+ msgid "Write Access Enabled!"
301
+ msgstr ""
302
+
303
+ #: ../admin/includes/cta/writeable.php:10
304
+ msgid "Write Access Denied!"
305
+ msgstr ""
306
+
307
+ #: ../admin/includes/shortcode-builder.php:1
308
+ msgid "Collapse All"
309
+ msgstr ""
310
+
311
+ #: ../admin/includes/shortcode-builder.php:1
312
+ msgid "Expand All"
313
+ msgstr ""
314
+
315
  #: ../admin/includes/shortcode-builder.php:6
316
  msgid "Repeater"
317
  msgstr ""
318
 
319
  #: ../admin/includes/shortcode-builder.php:9
320
  msgid ""
321
+ "Choose your <a href=\"admin.php?page=ajax-load-more-repeaters\" target="
322
+ "\"_parent\">repeater</a>."
323
  msgstr ""
324
 
325
  #: ../admin/includes/shortcode-builder.php:31
335
  msgstr ""
336
 
337
  #: ../admin/includes/shortcode-builder.php:56
338
+ msgid "Select a Category to query(by slug)."
339
  msgstr ""
340
 
341
  #: ../admin/includes/shortcode-builder.php:59
347
  msgstr ""
348
 
349
  #: ../admin/includes/shortcode-builder.php:75
350
+ msgid "Select a Tag to query(by slug)."
351
  msgstr ""
352
 
353
  #: ../admin/includes/shortcode-builder.php:78
354
  msgid "Select Tag"
355
  msgstr ""
356
 
357
+ #: ../admin/includes/shortcode-builder.php:97
358
+ msgid "Taxonomy"
359
+ msgstr ""
360
+
361
+ #: ../admin/includes/shortcode-builder.php:100
362
+ msgid "Select your custom taxonomy then select the terms and operator."
363
+ msgstr ""
364
+
365
+ #: ../admin/includes/shortcode-builder.php:107
366
+ msgid "Select Taxonomy"
367
+ msgstr ""
368
+
369
+ #: ../admin/includes/shortcode-builder.php:116
370
+ msgid "Taxonomy Terms:"
371
+ msgstr ""
372
+
373
+ #: ../admin/includes/shortcode-builder.php:121
374
+ msgid "Taxonomy Operator:"
375
+ msgstr ""
376
+
377
+ #: ../admin/includes/shortcode-builder.php:139
378
  msgid "Author"
379
  msgstr ""
380
 
381
+ #: ../admin/includes/shortcode-builder.php:142
382
+ msgid "Select an Author to query(by ID)."
383
  msgstr ""
384
 
385
+ #: ../admin/includes/shortcode-builder.php:145
386
  msgid "Select Author"
387
  msgstr ""
388
 
389
+ #: ../admin/includes/shortcode-builder.php:157
390
  msgid "Search Term"
391
  msgstr ""
392
 
393
+ #: ../admin/includes/shortcode-builder.php:160
394
  msgid "Enter a search term to query."
395
  msgstr ""
396
 
397
+ #: ../admin/includes/shortcode-builder.php:164
398
  msgid "Enter search term"
399
  msgstr ""
400
 
401
+ #: ../admin/includes/shortcode-builder.php:172
402
+ msgid "Ordering"
403
  msgstr ""
404
 
405
+ #: ../admin/includes/shortcode-builder.php:175
406
+ msgid "Sort retrieved posts by Order and Orderby parameters."
407
+ msgstr ""
408
+
409
+ #: ../admin/includes/shortcode-builder.php:204
410
+ msgid "Exclude"
411
+ msgstr ""
412
+
413
+ #: ../admin/includes/shortcode-builder.php:207
414
  msgid "A comma separated list of post ID's to exclude from query."
415
  msgstr ""
416
 
417
+ #: ../admin/includes/shortcode-builder.php:219
418
+ msgid "Offset"
419
  msgstr ""
420
 
421
+ #: ../admin/includes/shortcode-builder.php:222
422
+ msgid "Offset the initial WordPress query by <em>'n'</em> number of posts"
423
  msgstr ""
424
 
425
+ #: ../admin/includes/shortcode-builder.php:243
426
  msgid "Posts Per Page"
427
  msgstr ""
428
 
429
+ #: ../admin/includes/shortcode-builder.php:246
430
  msgid "Select the number of posts to load with each request."
431
  msgstr ""
432
 
433
+ #: ../admin/includes/shortcode-builder.php:272
434
  msgid "Load Posts on Scroll"
435
  msgstr ""
436
 
437
+ #: ../admin/includes/shortcode-builder.php:275
438
  msgid "Load more posts as the user scrolls the page."
439
  msgstr ""
440
 
441
+ #: ../admin/includes/shortcode-builder.php:282
442
+ #: ../admin/includes/shortcode-builder.php:337
443
  msgid "True"
444
  msgstr ""
445
 
446
+ #: ../admin/includes/shortcode-builder.php:286
447
+ #: ../admin/includes/shortcode-builder.php:341
448
  msgid "False"
449
  msgstr ""
450
 
451
+ #: ../admin/includes/shortcode-builder.php:297
452
  msgid "Max Pages"
453
  msgstr ""
454
 
455
+ #: ../admin/includes/shortcode-builder.php:300
456
  msgid "Maximum number of pages to load while scrolling."
457
  msgstr ""
458
 
459
+ #: ../admin/includes/shortcode-builder.php:315
460
  msgid "Unlimited"
461
  msgstr ""
462
 
463
+ #: ../admin/includes/shortcode-builder.php:327
464
  msgid "Pause Loading of Posts"
465
  msgstr ""
466
 
467
+ #: ../admin/includes/shortcode-builder.php:330
468
  msgid "Do not load posts until user clicks <em>load</em> button."
469
  msgstr ""
470
 
471
+ #: ../admin/includes/shortcode-builder.php:352
472
  msgid "Transition"
473
  msgstr ""
474
 
475
+ #: ../admin/includes/shortcode-builder.php:355
476
  msgid "Select a loading transition from the drop menu."
477
  msgstr ""
478
 
479
+ #: ../admin/includes/shortcode-builder.php:362
480
  msgid "Slide"
481
  msgstr ""
482
 
483
+ #: ../admin/includes/shortcode-builder.php:366
484
  msgid "Fade"
485
  msgstr ""
486
 
487
+ #: ../admin/includes/shortcode-builder.php:377
488
  msgid "Button Label"
489
  msgstr ""
490
 
491
+ #: ../admin/includes/shortcode-builder.php:380
492
  msgid "Customize the <em>Load More</em> button label."
493
  msgstr ""
494
 
495
+ #: ../admin/includes/shortcode-builder.php:384
496
  msgid "Older Posts"
497
  msgstr ""
498
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
499
  #~ msgid "404 Error"
500
  #~ msgstr "Erreur 404 "
501