WordPress Infinite Scroll – Ajax Load More - Version 3.0

Version Description

  • May 4, 2017 =

  • NEW - Added required functionality for new Advanced Custom Fields extension

  • NEW - New interface for displaying Theme Repeater Templates inside template admin.

  • NEW - Added new .alm-loading class to #ajax-load-more container while content is loading. This class will allow for added transition states without needing to bake into core.

  • NEW - Adding post__in to orderby param in shortcode builder

  • NEW - Added new data-post-id attribute to ALM container to get current post ID.

  • NEW - Add Extensions page to ALM admin for installs extensions with a single click.

  • Updated - Added support for > 4 meta_query queries.

  • Updated - Updated cache directory path to reside in uploads/alm-cache directory vs ALM cache directory.

  • Updated - Updated styling (font size and family) on Load More button.

  • FIX - JS error when using multiple filters in Safari (Missing closing ] bracket on data attribute).

  • FIX - Missing quote in shortcode builder when using call to actions and theme repater add-ons.

  • UPDATE - Various UI and UX enhancements.

Download this release

Release Info

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

Code changes from version 2.14.1 to 3.0

README.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: dcooney, connekthq
3
  Donate link: https://connekthq.com/donate/
4
  Tags: infinite scroll, infinite scrolling, scroll, infinite, lazy load, lazy loading, pagination, ajax pagination, ajax, ajax posts, ajax load posts, search, tags, category, post types, taxonomy, meta_query, woocommerce, ajax load more
5
  Requires at least: 3.6
6
- Tested up to: 4.7.3
7
- Stable tag: 2.14.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -184,6 +184,10 @@ Ajax Load More accepts a number of parameters that are passed to the WordPress q
184
  = Extensions =
185
  The following [extensions](https://connekthq.com/plugins/ajax-load-more/extensions/) are available to provide compatibility with popular WordPress plugins and core features.
186
 
 
 
 
 
187
  > #### Relvanssi
188
  > The **[Relevanssi](https://connekthq.com/plugins/ajax-load-more/extensions/relevanssi/)** extension provides the functionality for returning Relevanssi query results to Ajax Load More.
189
  >
@@ -348,6 +352,21 @@ How to install Ajax Load More.
348
 
349
  == Changelog ==
350
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
351
  = 2.14.1 - March 24, 2017 =
352
 
353
  * NEW - Adding built in support for sticky posts (sticky_posts="true").
3
  Donate link: https://connekthq.com/donate/
4
  Tags: infinite scroll, infinite scrolling, scroll, infinite, lazy load, lazy loading, pagination, ajax pagination, ajax, ajax posts, ajax load posts, search, tags, category, post types, taxonomy, meta_query, woocommerce, ajax load more
5
  Requires at least: 3.6
6
+ Tested up to: 4.7.4
7
+ Stable tag: 3.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
184
  = Extensions =
185
  The following [extensions](https://connekthq.com/plugins/ajax-load-more/extensions/) are available to provide compatibility with popular WordPress plugins and core features.
186
 
187
+ > #### Advanced Custom Fields
188
+ > The **[Advanced Custom Fields](https://connekthq.com/plugins/ajax-load-more/extensions/advanced-custom fields/)** extension provides additional functionality for infinite scrolling Repeater and Relationship field data with Ajax Load More.
189
+ >
190
+
191
  > #### Relvanssi
192
  > The **[Relevanssi](https://connekthq.com/plugins/ajax-load-more/extensions/relevanssi/)** extension provides the functionality for returning Relevanssi query results to Ajax Load More.
193
  >
352
 
353
  == Changelog ==
354
 
355
+ = 3.0 - May 4, 2017 =
356
+
357
+ * NEW - Added required functionality for new [Advanced Custom Fields extension](https://connekthq.com/plugins/ajax-load-more/extensions/advanced-custom-fields/)
358
+ * NEW - New interface for displaying Theme Repeater Templates inside template admin.
359
+ * NEW - Added new `.alm-loading` class to `#ajax-load-more` container while content is loading. This class will allow for added transition states without needing to bake into core.
360
+ * NEW - Adding `post__in` to `orderby` param in shortcode builder
361
+ * NEW - Added new `data-post-id` attribute to ALM container to get current post ID.
362
+ * NEW - Add Extensions page to ALM admin for installs extensions with a single click.
363
+ * Updated - Added support for > 4 meta_query queries.
364
+ * Updated - Updated cache directory path to reside in `uploads/alm-cache` directory vs ALM cache directory.
365
+ * Updated - Updated styling (font size and family) on Load More button.
366
+ * FIX - JS error when using multiple filters in Safari (Missing closing `]` bracket on data attribute).
367
+ * FIX - Missing quote in shortcode builder when using call to actions and theme repater add-ons.
368
+ * UPDATE - Various UI and UX enhancements.
369
+
370
  = 2.14.1 - March 24, 2017 =
371
 
372
  * NEW - Adding built in support for sticky posts (sticky_posts="true").
admin/admin-functions.php CHANGED
@@ -28,7 +28,7 @@ function alm_is_admin_screen(){
28
  */
29
 
30
  function alm_has_addon(){
31
- if(has_action('alm_cache_installed') || has_action('alm_cta_installed') || has_action('alm_comments_installed') || has_action('alm_unlimited_installed') || has_action('alm_layouts_installed') || has_action('alm_nextpage_installed') || has_action('alm_preload_installed') || has_action('alm_paging_installed') || has_action('alm_prev_post_installed') || has_action('alm_rest_api_installed') || has_action('alm_seo_installed') || has_action('alm_theme_repeaters_installed')) {
32
  return true;
33
  } else {
34
  return false;
@@ -46,7 +46,7 @@ function alm_has_addon(){
46
  */
47
 
48
  function alm_has_addon_shortcodes(){
49
- if(has_action('alm_cache_installed') || has_action('alm_cta_installed') || has_action('alm_comments_installed') || has_action('alm_unlimited_installed') || has_action('alm_nextpage_installed') || has_action('alm_preload_installed') || has_action('alm_paging_installed') || has_action('alm_prev_post_installed') || has_action('alm_rest_api_installed') || has_action('alm_seo_installed') || has_action('alm_theme_repeaters_installed')) {
50
  return true;
51
  } else {
52
  return false;
28
  */
29
 
30
  function alm_has_addon(){
31
+ if(has_action('alm_acf_installed') || has_action('alm_cta_installed') || has_action('alm_comments_installed') || has_action('alm_unlimited_installed') || has_action('alm_layouts_installed') || has_action('alm_nextpage_installed') || has_action('alm_preload_installed') || has_action('alm_paging_installed') || has_action('alm_prev_post_installed') || has_action('alm_rest_api_installed') || has_action('alm_seo_installed') || has_action('alm_theme_repeaters_installed')) {
32
  return true;
33
  } else {
34
  return false;
46
  */
47
 
48
  function alm_has_addon_shortcodes(){
49
+ if(has_action('alm_acf_installed') || has_action('alm_cache_installed') || has_action('alm_cache_installed') || has_action('alm_cta_installed') || has_action('alm_comments_installed') || has_action('alm_unlimited_installed') || has_action('alm_nextpage_installed') || has_action('alm_preload_installed') || has_action('alm_paging_installed') || has_action('alm_prev_post_installed') || has_action('alm_rest_api_installed') || has_action('alm_seo_installed') || has_action('alm_theme_repeaters_installed')) {
50
  return true;
51
  } else {
52
  return false;
admin/admin.php CHANGED
@@ -188,7 +188,11 @@ function alm_admin_vars() { ?>
188
  'select_cats' => __('Select Categories', 'ajax-load-more'),
189
  'select_tags' => __('Select Tags', 'ajax-load-more'),
190
  'jump_to_option' => __('Jump to Option', 'ajax-load-more'),
191
- 'jump_to_template' => __('Jump to Template', 'ajax-load-more')
 
 
 
 
192
  )); ?>
193
  /* ]]> */
194
  </script>
@@ -378,13 +382,13 @@ function alm_admin_menu() {
378
  'alm_add_ons_page'
379
  );
380
 
381
- $alm_examples_page = add_submenu_page(
382
  'ajax-load-more',
383
- 'Examples',
384
- 'Examples',
385
  'edit_theme_options',
386
- 'ajax-load-more-examples',
387
- 'alm_examples_page'
388
  );
389
 
390
  $alm_help_page = add_submenu_page(
@@ -426,84 +430,18 @@ function alm_admin_menu() {
426
  add_action( 'load-' . $alm_template_page, 'alm_set_admin_nonce' );
427
  add_action( 'load-' . $alm_shortcode_page, 'alm_load_admin_js' );
428
  add_action( 'load-' . $alm_shortcode_page, 'alm_set_admin_nonce' );
429
- add_action( 'load-' . $alm_examples_page, 'alm_load_admin_js' );
430
- add_action( 'load-' . $alm_examples_page, 'alm_set_admin_nonce' );
431
  add_action( 'load-' . $alm_help_page, 'alm_load_admin_js' );
432
  add_action( 'load-' . $alm_help_page, 'alm_set_admin_nonce' );
433
  add_action( 'load-' . $alm_addons_page, 'alm_load_admin_js' );
434
  add_action( 'load-' . $alm_addons_page, 'alm_set_admin_nonce' );
 
 
435
  add_action( 'load-' . $alm_licenses_page, 'alm_load_admin_js' );
436
  add_action( 'load-' . $alm_licenses_page, 'alm_set_admin_nonce' );
437
  }
438
 
439
 
440
 
441
- /**
442
- * alm_load_admin_js
443
- * Load Admin JS
444
- *
445
- * @since 2.0.15
446
- */
447
-
448
- function alm_load_admin_js(){
449
- add_action( 'admin_enqueue_scripts', 'alm_enqueue_admin_scripts' );
450
- }
451
- function alm_load_cache_admin_js(){
452
- if(class_exists('ALMCache')){
453
- ALMCache::alm_enqueue_cache_admin_scripts();
454
- }
455
- }
456
-
457
-
458
-
459
- /**
460
- * alm_enqueue_admin_scripts
461
- * Enqueue Admin JS
462
- *
463
- * @since 2.0.15
464
- */
465
-
466
- function alm_enqueue_admin_scripts(){
467
-
468
- //Load Admin CSS
469
- wp_enqueue_style( 'alm-admin', ALM_ADMIN_URL. 'css/admin.css');
470
- wp_enqueue_style( 'alm-select2', ALM_ADMIN_URL. 'css/select2.css');
471
- wp_enqueue_style( 'alm-tooltipster', ALM_ADMIN_URL. 'css/tooltipster/tooltipster.css');
472
- wp_enqueue_style( 'alm-core', ALM_URL. '/core/css/ajax-load-more.css');
473
- wp_enqueue_style( 'alm-font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css');
474
-
475
- wp_dequeue_style( 'acf-input' );
476
-
477
- //Load CodeMirror Syntax Highlighting if on Repater Template page
478
- $screen = get_current_screen();
479
- if ( in_array( $screen->id, array( 'ajax-load-more_page_ajax-load-more-repeaters') ) ){
480
-
481
- //CodeMirror CSS
482
- wp_enqueue_style( 'alm-codemirror-css', ALM_ADMIN_URL. 'codemirror/lib/codemirror.css' );
483
-
484
- //CodeMirror JS
485
- wp_enqueue_script( 'alm-codemirror', ALM_ADMIN_URL. 'codemirror/lib/codemirror.js');
486
- wp_enqueue_script( 'alm-codemirror-matchbrackets', ALM_ADMIN_URL. 'codemirror/addon/edit/matchbrackets.js' );
487
- wp_enqueue_script( 'alm-codemirror-htmlmixed', ALM_ADMIN_URL. 'codemirror/mode/htmlmixed/htmlmixed.js' );
488
- wp_enqueue_script( 'alm-codemirror-xml', ALM_ADMIN_URL. 'codemirror/mode/xml/xml.js' );
489
- wp_enqueue_script( 'alm-codemirror-javascript', ALM_ADMIN_URL. 'codemirror/mode/javascript/javascript.js' );
490
- wp_enqueue_script( 'alm-codemirror-mode-css', ALM_ADMIN_URL. 'codemirror/mode/css/css.js' );
491
- wp_enqueue_script( 'alm-codemirror-clike', ALM_ADMIN_URL. 'codemirror/mode/clike/clike.js' );
492
- wp_enqueue_script( 'alm-codemirror-php', ALM_ADMIN_URL. 'codemirror/mode/php/php.js' );
493
-
494
- }
495
-
496
- //Load JS
497
- wp_enqueue_script( 'jquery-form' );
498
- wp_enqueue_script( 'alm-select2', ALM_ADMIN_URL. 'js/libs/select2.min.js', array( 'jquery' ));
499
- wp_enqueue_script( 'alm-drops', ALM_ADMIN_URL. 'js/libs/jquery.drops.js', array( 'jquery' ));
500
- wp_enqueue_script( 'alm-tipster', ALM_ADMIN_URL. 'js/libs/jquery.tooltipster.min.js', array( 'jquery' ));
501
- wp_enqueue_script( 'alm-admin', ALM_ADMIN_URL. 'js/admin.js', array( 'jquery' ));
502
- wp_enqueue_script( 'alm-shortcode-builder', ALM_ADMIN_URL. 'shortcode-builder/js/shortcode-builder.js', array( 'jquery' ));
503
- }
504
-
505
-
506
-
507
 
508
  /*
509
  * alm_settings_page
@@ -545,40 +483,53 @@ function alm_shortcode_builder_page(){
545
 
546
 
547
  /*
548
- * alm_example_page
549
- * Examples Page
550
  *
551
  * @since 2.0.0
552
  */
553
 
554
- function alm_examples_page(){
555
- include_once( ALM_PATH . 'admin/views/examples.php');
556
  }
557
 
558
 
559
 
560
  /*
561
- * alm_help_page
562
- * Help Page (Implementation Inforgraphic)
563
  *
564
- * @since 2.8.7
565
  */
566
 
567
- function alm_help_page(){
568
- include_once( ALM_PATH . 'admin/views/help.php');
569
  }
570
 
571
 
572
 
573
  /*
574
- * alm_add_ons_page
575
- * Ajax Load More Add-ons
576
  *
577
  * @since 2.0.0
578
  */
579
 
580
- function alm_add_ons_page(){
581
- include_once( ALM_PATH . 'admin/views/add-ons.php');
 
 
 
 
 
 
 
 
 
 
 
 
 
582
  }
583
 
584
 
@@ -603,7 +554,73 @@ function alm_licenses_page(){
603
  */
604
 
605
  function alm_cache_page(){
606
- include_once( ALM_CACHE_PATH . 'admin/views/cache.php');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
607
  }
608
 
609
 
@@ -1270,18 +1287,20 @@ function alm_btn_color_callback() {
1270
  $selected12 = '';
1271
  if($type == 'infinite chasing-arrows') $selected12 = 'selected="selected"';
1272
 
1273
- $html = '<label for="alm_settings_btn_color">'.__('Select an Ajax loading style - you can choose between a <strong>button</strong> or <strong>infinite scroll</strong>', 'ajax-load-more');
1274
- $html .= '.<br/><span style="display:block">Selecting an Infinite Scroll button style will remove the click interaction and load content on scroll only.</span>';
1275
  $html .= '</label>';
1276
  $html .= '<select id="alm_settings_btn_color" name="alm_settings[_alm_btn_color]">';
1277
- $html .= '<optgroup label="Buttons">';
 
1278
  $html .= '<option value="default" class="alm-color default" ' . $selected0 .'>Default</option>';
1279
  $html .= '<option value="blue" class="alm-color blue" ' . $selected1 .'>Blue</option>';
1280
  $html .= '<option value="green" class="alm-color green" ' . $selected2 .'>Green</option>';
1281
  $html .= '<option value="purple" class="alm-color purple" ' . $selected4 .'>Purple</option>';
1282
  $html .= '<option value="grey" class="alm-color grey" ' . $selected5 .'>Grey</option>';
1283
  $html .= '</optgroup>';
1284
- $html .= '<optgroup label="Infinite Scroll (no button)">';
 
1285
  $html .= '<option value="infinite classic" class="infinite classic" ' . $selected7 .'>Classic</option>';
1286
  $html .= '<option value="infinite skype" class="infinite skype" ' . $selected8 .'>Skype</option>';
1287
  $html .= '<option value="infinite ring" class="infinite ring" ' . $selected9 .'>Circle Fill</option>';
@@ -1289,6 +1308,7 @@ function alm_btn_color_callback() {
1289
  $html .= '<option value="infinite fading-circles" class="infinite fading-circles" ' . $selected11 .'>Fading Circles</option>';
1290
  $html .= '<option value="infinite chasing-arrows" class="infinite chasing-arrows" ' . $selected12 .'>Chasing Arrows</option>';
1291
  $html .= '</optgroup>';
 
1292
  $html .= '</select>';
1293
 
1294
  $html .= '<div class="clear"></div><div class="ajax-load-more-wrap core '.$type.'"><span>'.__('Preview', 'ajax-load-more') .'</span><button class="alm-load-more-btn loading" disabled="disabled">'.apply_filters('alm_button_label', __('Older Posts', 'ajax-load-more')).'</button></div>';
188
  'select_cats' => __('Select Categories', 'ajax-load-more'),
189
  'select_tags' => __('Select Tags', 'ajax-load-more'),
190
  'jump_to_option' => __('Jump to Option', 'ajax-load-more'),
191
+ 'jump_to_template' => __('Jump to Template', 'ajax-load-more'),
192
+ 'install_now' => __('Are you sure you want to install this Ajax Load More extension?', 'ajax-load-more'),
193
+ 'install_btn' => __('Install Now', 'ajax-load-more'),
194
+ 'activate_btn' => __('Activate', 'ajax-load-more'),
195
+ 'installed_btn' => __('Installed', 'ajax-load-more')
196
  )); ?>
197
  /* ]]> */
198
  </script>
382
  'alm_add_ons_page'
383
  );
384
 
385
+ $alm_extensions_page = add_submenu_page(
386
  'ajax-load-more',
387
+ 'Extensions',
388
+ 'Extensions',
389
  'edit_theme_options',
390
+ 'ajax-load-more-extensions',
391
+ 'alm_extensions_page'
392
  );
393
 
394
  $alm_help_page = add_submenu_page(
430
  add_action( 'load-' . $alm_template_page, 'alm_set_admin_nonce' );
431
  add_action( 'load-' . $alm_shortcode_page, 'alm_load_admin_js' );
432
  add_action( 'load-' . $alm_shortcode_page, 'alm_set_admin_nonce' );
 
 
433
  add_action( 'load-' . $alm_help_page, 'alm_load_admin_js' );
434
  add_action( 'load-' . $alm_help_page, 'alm_set_admin_nonce' );
435
  add_action( 'load-' . $alm_addons_page, 'alm_load_admin_js' );
436
  add_action( 'load-' . $alm_addons_page, 'alm_set_admin_nonce' );
437
+ add_action( 'load-' . $alm_extensions_page, 'alm_load_admin_js' );
438
+ add_action( 'load-' . $alm_extensions_page, 'alm_set_admin_nonce' );
439
  add_action( 'load-' . $alm_licenses_page, 'alm_load_admin_js' );
440
  add_action( 'load-' . $alm_licenses_page, 'alm_set_admin_nonce' );
441
  }
442
 
443
 
444
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
445
 
446
  /*
447
  * alm_settings_page
483
 
484
 
485
  /*
486
+ * alm_add_ons_page
487
+ * Ajax Load More Add-ons
488
  *
489
  * @since 2.0.0
490
  */
491
 
492
+ function alm_add_ons_page(){
493
+ include_once( ALM_PATH . 'admin/views/add-ons.php');
494
  }
495
 
496
 
497
 
498
  /*
499
+ * alm_extensions_ons_page
500
+ * Ajax Load More Add-ons
501
  *
502
+ * @since 3.0.0
503
  */
504
 
505
+ function alm_extensions_page(){
506
+ include_once( ALM_PATH . 'admin/views/extensions.php');
507
  }
508
 
509
 
510
 
511
  /*
512
+ * alm_example_page
513
+ * Examples Page
514
  *
515
  * @since 2.0.0
516
  */
517
 
518
+ function alm_examples_page(){
519
+ include_once( ALM_PATH . 'admin/views/examples.php');
520
+ }
521
+
522
+
523
+
524
+ /*
525
+ * alm_help_page
526
+ * Help Page (Implementation Inforgraphic)
527
+ *
528
+ * @since 2.8.7
529
+ */
530
+
531
+ function alm_help_page(){
532
+ include_once( ALM_PATH . 'admin/views/help.php');
533
  }
534
 
535
 
554
  */
555
 
556
  function alm_cache_page(){
557
+ include_once( ALM_CACHE_ADMIN_PATH . 'admin/views/cache.php');
558
+ }
559
+
560
+
561
+
562
+ /**
563
+ * alm_load_admin_js
564
+ * Load Admin JS
565
+ *
566
+ * @since 2.0.15
567
+ */
568
+
569
+ function alm_load_admin_js(){
570
+ add_action( 'admin_enqueue_scripts', 'alm_enqueue_admin_scripts' );
571
+ }
572
+ function alm_load_cache_admin_js(){
573
+ if(class_exists('ALMCache')){
574
+ ALMCache::alm_enqueue_cache_admin_scripts();
575
+ }
576
+ }
577
+
578
+
579
+
580
+ /**
581
+ * alm_enqueue_admin_scripts
582
+ * Enqueue Admin JS
583
+ *
584
+ * @since 2.0.15
585
+ */
586
+
587
+ function alm_enqueue_admin_scripts(){
588
+
589
+ //Load Admin CSS
590
+ wp_enqueue_style( 'alm-admin', ALM_ADMIN_URL. 'css/admin.css');
591
+ wp_enqueue_style( 'alm-select2', ALM_ADMIN_URL. 'css/select2.css');
592
+ wp_enqueue_style( 'alm-tooltipster', ALM_ADMIN_URL. 'css/tooltipster/tooltipster.css');
593
+ wp_enqueue_style( 'alm-core', ALM_URL. '/core/css/ajax-load-more.css');
594
+ wp_enqueue_style( 'alm-font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css');
595
+
596
+ wp_dequeue_style( 'acf-input' );
597
+
598
+ //Load CodeMirror Syntax Highlighting if on Repater Template page
599
+ $screen = get_current_screen();
600
+ if ( in_array( $screen->id, array( 'ajax-load-more_page_ajax-load-more-repeaters') ) ){
601
+
602
+ //CodeMirror CSS
603
+ wp_enqueue_style( 'alm-codemirror-css', ALM_ADMIN_URL. 'codemirror/lib/codemirror.css' );
604
+
605
+ //CodeMirror JS
606
+ wp_enqueue_script( 'alm-codemirror', ALM_ADMIN_URL. 'codemirror/lib/codemirror.js');
607
+ wp_enqueue_script( 'alm-codemirror-matchbrackets', ALM_ADMIN_URL. 'codemirror/addon/edit/matchbrackets.js' );
608
+ wp_enqueue_script( 'alm-codemirror-htmlmixed', ALM_ADMIN_URL. 'codemirror/mode/htmlmixed/htmlmixed.js' );
609
+ wp_enqueue_script( 'alm-codemirror-xml', ALM_ADMIN_URL. 'codemirror/mode/xml/xml.js' );
610
+ wp_enqueue_script( 'alm-codemirror-javascript', ALM_ADMIN_URL. 'codemirror/mode/javascript/javascript.js' );
611
+ wp_enqueue_script( 'alm-codemirror-mode-css', ALM_ADMIN_URL. 'codemirror/mode/css/css.js' );
612
+ wp_enqueue_script( 'alm-codemirror-clike', ALM_ADMIN_URL. 'codemirror/mode/clike/clike.js' );
613
+ wp_enqueue_script( 'alm-codemirror-php', ALM_ADMIN_URL. 'codemirror/mode/php/php.js' );
614
+
615
+ }
616
+
617
+ //Load JS
618
+ wp_enqueue_script( 'jquery-form' );
619
+ wp_enqueue_script( 'alm-select2', ALM_ADMIN_URL. 'js/libs/select2.min.js', array( 'jquery' ));
620
+ wp_enqueue_script( 'alm-drops', ALM_ADMIN_URL. 'js/libs/jquery.drops.js', array( 'jquery' ));
621
+ wp_enqueue_script( 'alm-tipster', ALM_ADMIN_URL. 'js/libs/jquery.tooltipster.min.js', array( 'jquery' ));
622
+ wp_enqueue_script( 'alm-admin', ALM_ADMIN_URL. 'js/admin.js', array( 'jquery' ));
623
+ wp_enqueue_script( 'alm-shortcode-builder', ALM_ADMIN_URL. 'shortcode-builder/js/shortcode-builder.js', array( 'jquery' ));
624
  }
625
 
626
 
1287
  $selected12 = '';
1288
  if($type == 'infinite chasing-arrows') $selected12 = 'selected="selected"';
1289
 
1290
+ $html = '<label for="alm_settings_btn_color">'.__('Select an Ajax loading style - you can choose between a <strong>Button</strong> or <strong>Infinite Scroll</strong>', 'ajax-load-more');
1291
+ $html .= '.<br/><span style="display:block">Selecting an Infinite Scroll style will remove the click interaction and load content on scroll <u>only</u>.</span>';
1292
  $html .= '</label>';
1293
  $html .= '<select id="alm_settings_btn_color" name="alm_settings[_alm_btn_color]">';
1294
+
1295
+ $html .= '<optgroup label="'. __('Button', 'ajax-load-more') .'">';
1296
  $html .= '<option value="default" class="alm-color default" ' . $selected0 .'>Default</option>';
1297
  $html .= '<option value="blue" class="alm-color blue" ' . $selected1 .'>Blue</option>';
1298
  $html .= '<option value="green" class="alm-color green" ' . $selected2 .'>Green</option>';
1299
  $html .= '<option value="purple" class="alm-color purple" ' . $selected4 .'>Purple</option>';
1300
  $html .= '<option value="grey" class="alm-color grey" ' . $selected5 .'>Grey</option>';
1301
  $html .= '</optgroup>';
1302
+
1303
+ $html .= '<optgroup label="'. __('Infinite Scroll (No Button)', 'ajax-load-more') .'">';
1304
  $html .= '<option value="infinite classic" class="infinite classic" ' . $selected7 .'>Classic</option>';
1305
  $html .= '<option value="infinite skype" class="infinite skype" ' . $selected8 .'>Skype</option>';
1306
  $html .= '<option value="infinite ring" class="infinite ring" ' . $selected9 .'>Circle Fill</option>';
1308
  $html .= '<option value="infinite fading-circles" class="infinite fading-circles" ' . $selected11 .'>Fading Circles</option>';
1309
  $html .= '<option value="infinite chasing-arrows" class="infinite chasing-arrows" ' . $selected12 .'>Chasing Arrows</option>';
1310
  $html .= '</optgroup>';
1311
+
1312
  $html .= '</select>';
1313
 
1314
  $html .= '<div class="clear"></div><div class="ajax-load-more-wrap core '.$type.'"><span>'.__('Preview', 'ajax-load-more') .'</span><button class="alm-load-more-btn loading" disabled="disabled">'.apply_filters('alm_button_label', __('Older Posts', 'ajax-load-more')).'</button></div>';
admin/css/admin.css CHANGED
@@ -114,9 +114,8 @@
114
  #alm-settings .admin-select{
115
  width: 100%;
116
  display: block;
117
- padding: 0 0 20px;
118
- margin: -10px 0 20px;
119
- border-bottom: 1px solid #efefef;
120
  }
121
  #alm-settings .admin-select .select2-container{
122
  width: 48%;
@@ -128,20 +127,37 @@
128
  padding-bottom: 5px !important;
129
  }
130
 
131
- #alm-settings form h2{
132
- padding: 12px 0 6px 12px;
133
- border-left: 7px solid #ff5a58;
134
- margin: 0;
 
 
135
  font-weight: 600;
136
- font-size: 1.35em;
 
137
  }
 
 
 
138
  #alm-settings form h2 + p{
139
  color: #999;
140
- padding: 0 0 10px 12px;
141
- border-left: 7px solid #ff5a58;
142
- margin: 0 0 24px;
143
- font-size: 14px;
144
- font-style: italic;
 
 
 
 
 
 
 
 
 
 
 
145
  }
146
  .ajax-load-more code{
147
  background: #fcf3d0;
@@ -288,7 +304,7 @@ a.layout-hover{
288
  height: 31px;
289
  line-height: 30px;
290
  background: #fff;
291
- border:1px solid #e7e7e7;
292
  color: #777;
293
  cursor: pointer;
294
  z-index: 2;
@@ -614,9 +630,9 @@ a.layout-hover{
614
  }
615
  .ajax-load-more input[type=text],
616
  .ajax-load-more input[type=number]{
617
- padding: 14px;
618
  line-height: 1.3;
619
- border: 1px solid #e7e7e7;
620
  width: 60%;
621
  }
622
  .ajax-load-more input[type=text].full{
@@ -897,7 +913,8 @@ a.layout-hover{
897
  .alternate_template_wrap,
898
  .cta_template_wrap,
899
  .restapi_options,
900
- .next-page-content{
 
901
  display: none;
902
  }
903
 
@@ -1112,8 +1129,8 @@ a.layout-hover{
1112
 
1113
  .form-table .template-tags{
1114
  overflow: hidden;
1115
- border: 1px solid #dfd8c2;;
1116
- padding: 15px;
1117
  background: #fff9ea;
1118
  margin: 10px 0 0;
1119
  border-radius: 2px;
@@ -1171,7 +1188,7 @@ a.layout-hover{
1171
  .admin.ajax-load-more .ajax-load-more-wrap {
1172
  position: relative;
1173
  top: 10px;
1174
- padding: 10px;
1175
  border: 1px dashed #ccc;
1176
  display: inline-block;
1177
  margin-top:10px;
@@ -1204,11 +1221,14 @@ a.layout-hover{
1204
  /* Table Overrides */
1205
  .admin.ajax-load-more.settings .form-table td,
1206
  .admin.ajax-load-more.settings .form-table th{
1207
- padding: 24px 0 20px;
1208
  line-height: 1.5;
1209
  }
 
 
 
1210
  .admin.ajax-load-more.settings .form-table th{
1211
- padding-left: 17px;
1212
  }
1213
  .admin.ajax-load-more.settings .form-table p{
1214
  margin-top: 0;
@@ -1222,7 +1242,7 @@ a.layout-hover{
1222
  }
1223
  .header-wrap{
1224
  overflow: hidden;
1225
- padding: 10px 0 3px;
1226
  }
1227
  .ajax-load-more .header-wrap h1{
1228
  padding-left: 60px;
@@ -1234,13 +1254,16 @@ a.layout-hover{
1234
  .ajax-load-more .header-wrap h1 em{
1235
  display: block;
1236
  position: relative;
1237
- margin-top: -4px;
1238
  font-size: 14px;
1239
  opacity: 0.7;
1240
  font-style: normal;
1241
  font-weight: 400;
 
1242
  }
1243
-
 
 
1244
  .ajax-load-more h1 span{
1245
  color: #999;
1246
  font-weight: 300;
@@ -1402,7 +1425,7 @@ table.highlight{
1402
  .ajax-load-more .cnkt-main .group,
1403
  .ajax-load-more .cnkt-sidebar .cta,
1404
  .call-out.light{
1405
- border: 1px solid #e7e7e7;
1406
  -webkit-border-radius: 3px;
1407
  -moz-border-radius: 3px;
1408
  border-radius: 3px;
@@ -1420,8 +1443,8 @@ table.highlight{
1420
  border-top: 1px solid #efefef;
1421
  }
1422
  .form-table {
1423
- border-bottom: 1px solid #efefef;
1424
- margin: 0 0 20px;
1425
  }
1426
 
1427
  .ajax-load-more .cnkt-main .group a.dismiss{
@@ -1436,7 +1459,7 @@ table.highlight{
1436
  text-align: center;
1437
  background: #f7f7f7;
1438
  color: #777;
1439
- border: 1px solid #e7e7e7;
1440
  border-right: none;
1441
  border-top: none;
1442
  display: block;
@@ -1476,7 +1499,17 @@ table.highlight{
1476
  }
1477
 
1478
 
1479
- /* Add-ons */
 
 
 
 
 
 
 
 
 
 
1480
  #alm-add-ons {}
1481
  #alm-add-ons .group{
1482
  overflow: hidden;
@@ -1490,7 +1523,7 @@ table.highlight{
1490
  }
1491
  #alm-add-ons .group .expand-wrap{
1492
  display: block;
1493
- padding-bottom: 40px;
1494
  position: relative;
1495
  word-spacing : 0;
1496
  }
@@ -1501,7 +1534,8 @@ table.highlight{
1501
  width: 100%;
1502
  display: block;
1503
  font-size: 14px;
1504
- padding: 8px 14px;
 
1505
  }
1506
  .ajax-load-more .cnkt-main .group.installed{
1507
  opacity: 0.85;
@@ -1518,9 +1552,12 @@ table.highlight{
1518
  display: block;
1519
  padding: 15px;
1520
  }
1521
- #alm-add-ons .group.installed:hover{
1522
  border-color: #ccc;
1523
  }
 
 
 
1524
  #alm-add-ons .group a:hover h2{
1525
  color: #ff5a58 !important;
1526
  }
@@ -1531,7 +1568,7 @@ table.highlight{
1531
 
1532
  /* Add-on Callout! */
1533
  .call-out{
1534
- background: #5acfb2;
1535
  padding: 18px 100px 18px 18px;
1536
  border-radius: 3px;
1537
  margin: 0;
@@ -1568,7 +1605,7 @@ table.highlight{
1568
  padding: 6px 8px;
1569
  display: inline-block;
1570
  background: #fff;
1571
- border: 1px solid #5da592;
1572
  border-radius: 3px;
1573
  position: absolute;
1574
  right: 11px;
@@ -1590,10 +1627,9 @@ table.highlight{
1590
  padding: 6px 10px;
1591
  display: inline-block;
1592
  background: #5acfb2;
1593
- border: 1px solid #5da592;
1594
  border-radius: 3px;
1595
  position: static;
1596
- box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
1597
  text-decoration: none !important;
1598
  color: #fff !important;
1599
  font-size: 14px;
@@ -1608,12 +1644,11 @@ table.highlight{
1608
  color:#fff !important;
1609
  box-shadow: none;
1610
  }
1611
- a.cnkt-button:active,
1612
- .group:active span.cnkt-button{
1613
  background-color: #83519d;
1614
  border-color: #935eaf;
1615
  color:#fff !important;
1616
- box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.1);
1617
  outline: none;
1618
  }
1619
  a.cnkt-button i,
@@ -1623,6 +1658,7 @@ table.highlight{
1623
  position: relative;
1624
  top:1px;
1625
  background: none !important;
 
1626
  }
1627
  a.cnkt-button.installed,
1628
  span.cnkt-button.installed,
@@ -1774,6 +1810,7 @@ table.highlight{
1774
  margin: 0 0 15px;
1775
  width: 100% !important;
1776
  border-color: #ccc;
 
1777
  }
1778
  .license-wrap input[type=text]:focus{
1779
  background-color: #fff;
@@ -1865,11 +1902,12 @@ table.highlight{
1865
  }
1866
  .ajax-load-more .cnkt-sidebar h3{
1867
  padding: 15px 20px;
1868
- border-bottom: 1px solid #efefef;
1869
  background: #f7f7f7;
1870
  margin: 0;
1871
  display: block;
1872
- font-size: 15px;
 
1873
  -webkit-border-radius: 2px 2px 0 0;
1874
  -moz-border-radius: 2px 2px 0 0;
1875
  border-radius: 2px 2px 0 0;
@@ -1893,7 +1931,9 @@ table.highlight{
1893
  margin: 0 0 5px;
1894
  font-size: 14px;
1895
  }
1896
- .ajax-load-more .cnkt-sidebar .cta.dyk img{}
 
 
1897
  .ajax-load-more .cnkt-sidebar .cta.dyk p{
1898
  margin: 15px 0 0;
1899
  display: block;
@@ -1901,7 +1941,7 @@ table.highlight{
1901
  }
1902
  .ajax-load-more .cnkt-sidebar ul{
1903
  padding: 5px 0 0;
1904
- margin: 0 0 10px;
1905
  overflow: hidden;
1906
  }
1907
  .ajax-load-more .cnkt-sidebar li{
@@ -1958,8 +1998,8 @@ table.highlight{
1958
 
1959
 
1960
  .ajax-load-more .cnkt-sidebar a.visit{
1961
- background: #1e8cbe;
1962
- padding: 18px 20px 19px 44px;
1963
  position: absolute;
1964
  bottom: 0;
1965
  left: 0;
@@ -1975,23 +2015,20 @@ table.highlight{
1975
  }
1976
  .ajax-load-more .cnkt-sidebar a.visit i{
1977
  font-size: 20px;
1978
- opacity: 0.4;
1979
  margin: 0 5px 0 0;
1980
  position: absolute;
1981
- top: 15px;
1982
  left: 18px;
1983
  display: inline-block;
1984
  }
1985
- .ajax-load-more .cnkt-sidebar a.visit:hover{
1986
- background: #2fa2d6;
 
1987
  }
1988
  .ajax-load-more .cnkt-sidebar a.visit:hover i{
1989
- opacity: 0.8;
1990
  }
1991
- .ajax-load-more .cnkt-sidebar a.visit:active{
1992
- background: #42aedf;
1993
- box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.1);
1994
- }
1995
 
1996
  .ajax-load-more .cnkt-sidebar .project-listing {
1997
  padding: 0;
@@ -1999,29 +2036,27 @@ table.highlight{
1999
  .ajax-load-more .cnkt-sidebar .project-listing li{
2000
  margin: 20px 0 0;
2001
  padding: 0;
2002
- font-size: 13px;
2003
  position: relative;
2004
  clear: both;
2005
  }
2006
  .ajax-load-more .cnkt-sidebar .project-listing li a{
2007
  display: block;
2008
  position: static;
2009
- padding-left: 50px;
2010
- min-height: 48px;
2011
  text-decoration: none;
2012
  }
2013
  .ajax-load-more .cnkt-sidebar .project-listing li:first-of-type{
2014
  margin-top: 0;
2015
  }
2016
  .ajax-load-more .cnkt-sidebar .project-listing img {
2017
- height: 38px;
2018
  left: 0;
2019
  position: absolute;
2020
  top: 2px;
2021
- width: 38px;
2022
  }
2023
  .ajax-load-more .cnkt-sidebar .project-listing li strong{
2024
- font-size: 14px;
2025
  display: block;
2026
  }
2027
  .ajax-load-more .cnkt-sidebar .project-listing li span{
@@ -2043,13 +2078,19 @@ table.highlight{
2043
  border-radius: 3px;
2044
  padding: 8px;
2045
  background: #f7f7f7;
2046
- border: 1px solid #e7e7e7;
2047
  color: #999;
2048
  line-height: 1.3;
2049
  }
2050
  .ajax-load-more .cm-readonly .CodeMirror{
2051
  margin: 0 0 20px;
2052
- opacity: 0.7;
 
 
 
 
 
 
2053
  }
2054
  .ajax-load-more .cm-readonly p.warning-callout{
2055
  margin: 0 0 10px;
@@ -2310,22 +2351,24 @@ table.highlight{
2310
 
2311
  /* Live Search */
2312
 
2313
- .alm-cache-search-wrap{
2314
  position: relative;
2315
  display: block;
2316
  margin: -5px 0 25px;
2317
  }
2318
- .alm-cache-search-wrap input{
2319
  width: 100% !important;
2320
  margin: 0 !important;
 
2321
  display: block;
 
2322
  }
2323
- .alm-cache-search-wrap i{
2324
  position: absolute;
2325
- right: 14px;
2326
- top: 14px;
2327
  color: #ccc;
2328
- font-size: 20px;
2329
  z-index: 1;
2330
  }
2331
 
@@ -2638,7 +2681,7 @@ form#delete-all-cache{
2638
  padding: 0 20px 20px;
2639
  display: block;
2640
  background: #fff;
2641
- border: 1px solid #e7e7e7;
2642
  -webkit-border-radius: 3px;
2643
  -moz-border-radius: 3px;
2644
  border-radius: 3px;
@@ -2691,7 +2734,7 @@ form#delete-all-cache{
2691
  color: #999;
2692
  text-decoration: none !important;
2693
  padding: 8px 12px 8px 32px;
2694
- border: 1px solid #e7e7e7;
2695
  -webkit-border-radius: 3px;
2696
  -moz-border-radius: 3px;
2697
  border-radius: 3px;
@@ -2744,7 +2787,7 @@ form#delete-all-cache{
2744
  }
2745
  .alm-drop-btn.alm-layout-selection a.target{
2746
  background-color: #f7f7f7;
2747
- border-color: #e7e7e7;
2748
  color: #555;
2749
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2);
2750
  }
@@ -2829,11 +2872,11 @@ form#delete-all-cache{
2829
  color: #666;
2830
  }
2831
  .alm-drop-btn.alm-layout-selection a.add-on{
2832
- line-height: 1.6;
2833
- background-color: #5acfb2;
2834
  border: none;
2835
  color: #fff;
2836
- font-weight: 300;
2837
  text-overflow: inherit;
2838
  height: auto;
2839
  white-space: normal;
@@ -2905,7 +2948,7 @@ form#delete-all-cache{
2905
 
2906
  .add-layout-cta{
2907
  border-radius: 2px;
2908
- border: 1px solid #e7e7e7;
2909
  background-color: #fefeed;
2910
  padding: 10px 100px 10px 10px;
2911
  display: block;
@@ -3035,7 +3078,7 @@ form#delete-all-cache{
3035
  width: 32px;
3036
  height: 16px;
3037
  line-height: 16px;
3038
- border-right: 1px solid #e7e7e7;
3039
  display: inline-block;
3040
  text-align: center;
3041
  }
@@ -3104,7 +3147,7 @@ form#delete-all-cache{
3104
  #alm-mailing-list .form-wrap{
3105
  background-color: #fff;
3106
  padding: 12px;
3107
- border: 1px solid #e7e7e7;
3108
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.025);
3109
  position: relative;
3110
  border-radius: 2px;
@@ -3214,12 +3257,14 @@ form#delete-all-cache{
3214
  .dotted{
3215
  border: 1px dashed #ccc;
3216
  background: #f7f7f7;
3217
- padding: 20px;
3218
  }
3219
  .share-alm .dotted{
3220
- border: none;
 
3221
  background: none;
3222
- padding: 5px 10px 0;
 
3223
  }
3224
  .share-alm h3,
3225
  .share-alm h4{
@@ -3265,12 +3310,10 @@ ul.share{
3265
  }
3266
  ul.share li{
3267
  background: none;
3268
- padding:9px 0;
3269
- margin: 0 3px;
3270
  float: left;
3271
  vertical-align: top;
3272
- height: 34px;
3273
- line-height: 34px;
3274
  font-size: 13px;
3275
  width: auto;
3276
  position: relative;
@@ -3278,10 +3321,10 @@ ul.share{
3278
  text-align: left;
3279
  background: none;
3280
  color: #787878;
3281
- width: 46%;
3282
  text-align: center;
3283
  height: 36px;
3284
- margin: 5px 3% 0 0;
3285
  padding: 0;
3286
  }
3287
  ul.share li i{
@@ -3292,10 +3335,10 @@ ul.share{
3292
  }
3293
  ul.share li a{
3294
  display: block;
3295
- line-height: 39px;
3296
  height: 40px;
3297
  width: auto;
3298
- padding: 0 2px;
3299
  text-decoration: none;
3300
  color: #fff;
3301
  background: none;
@@ -3303,17 +3346,15 @@ ul.share{
3303
  position: relative;
3304
  font-weight: 600;
3305
  background: #33cf92;
3306
- /* box-shadow: inset 0 -10px 10px rgba(0, 0, 0, 0.05); */
3307
  }
3308
  ul.share li a:hover{
3309
  background-color: #45dfa3;
3310
- }
3311
-
3312
  ul.share li i{
3313
- font-size: 18px;
3314
- line-height: 36px;
3315
- height: 36px;
3316
- width: 32px;
3317
  position: absolute;
3318
  top: 0;
3319
  left: 0;
@@ -3321,8 +3362,7 @@ ul.share{
3321
  border-right: 1px solid rgba(0, 0, 0, 0.1);
3322
  background-color: rgba(0, 0, 0, 0.1);
3323
  border-radius: 2px 0 0 2px;
3324
- }
3325
-
3326
  ul.share li a:hover,
3327
  ul.share li a:hover i{
3328
  text-decoration: none;
@@ -3373,7 +3413,7 @@ ul.share li.facebook a:hover{
3373
  -moz-border-radius: 100%;
3374
  border-radius: 100%;
3375
  text-transform: uppercase;
3376
- border: 1px solid #e7e7e7;
3377
  font-size: 13px;
3378
  }
3379
 
@@ -3393,6 +3433,50 @@ ul.share li.facebook a:hover{
3393
  .alm-template-section-nav li.active a{
3394
  background: #ff0000;
3395
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3396
 
3397
 
3398
  /*
@@ -3431,8 +3515,11 @@ ul.share li.facebook a:hover{
3431
  }
3432
 
3433
  .admin.ajax-load-more.settings .form-table th{
3434
- padding-left: 0;
3435
  }
 
 
 
3436
  #alm-add-ons .group{
3437
  width: 48%;
3438
  }
@@ -3538,8 +3625,4 @@ ul.share li.facebook a:hover{
3538
  display: block;
3539
  font-size: 12px;
3540
  }
3541
- }
3542
-
3543
-
3544
-
3545
-
114
  #alm-settings .admin-select{
115
  width: 100%;
116
  display: block;
117
+ padding: 0 0 25px;
118
+ margin: -10px 0 0;
 
119
  }
120
  #alm-settings .admin-select .select2-container{
121
  width: 48%;
127
  padding-bottom: 5px !important;
128
  }
129
 
130
+ #alm-settings form h2{
131
+ background: #f7f7f7;
132
+ border: 1px solid #efefef;
133
+ border-bottom: none;
134
+ padding: 20px 20px 6px;
135
+ margin: 40px 0 0;
136
  font-weight: 600;
137
+ font-size: 20px;
138
+ border-radius: 2px 2px 0 0;
139
  }
140
+ #alm-settings form h2:first-of-type{
141
+ margin: 0;
142
+ }
143
  #alm-settings form h2 + p{
144
  color: #999;
145
+ padding: 0 20px 17px;
146
+ border-right: 1px solid #efefef;
147
+ border-left: 1px solid #efefef;
148
+ background: #f7f7f7;
149
+ margin: 0;
150
+ font-size: 13px;
151
+ }
152
+ .ajax-load-more p.file-location{
153
+ border: 1px solid #efefef;
154
+ background: #fff;
155
+ margin: 0 0 10px;
156
+ padding: 15px;
157
+ line-height: 1;
158
+ display: block;
159
+ font-family: Consolas, Monaco, monospace;
160
+ border-radius: 3px;
161
  }
162
  .ajax-load-more code{
163
  background: #fcf3d0;
304
  height: 31px;
305
  line-height: 30px;
306
  background: #fff;
307
+ border:1px solid #e1e1e1;
308
  color: #777;
309
  cursor: pointer;
310
  z-index: 2;
630
  }
631
  .ajax-load-more input[type=text],
632
  .ajax-load-more input[type=number]{
633
+ padding: 10px 12px;
634
  line-height: 1.3;
635
+ border: 1px solid #e1e1e1;
636
  width: 60%;
637
  }
638
  .ajax-load-more input[type=text].full{
913
  .alternate_template_wrap,
914
  .cta_template_wrap,
915
  .restapi_options,
916
+ .next-page-content,
917
+ .acf-options{
918
  display: none;
919
  }
920
 
1129
 
1130
  .form-table .template-tags{
1131
  overflow: hidden;
1132
+ border-left: 5px solid #dfd8c2;
1133
+ padding: 16px;
1134
  background: #fff9ea;
1135
  margin: 10px 0 0;
1136
  border-radius: 2px;
1188
  .admin.ajax-load-more .ajax-load-more-wrap {
1189
  position: relative;
1190
  top: 10px;
1191
+ padding: 20px;
1192
  border: 1px dashed #ccc;
1193
  display: inline-block;
1194
  margin-top:10px;
1221
  /* Table Overrides */
1222
  .admin.ajax-load-more.settings .form-table td,
1223
  .admin.ajax-load-more.settings .form-table th{
1224
+ padding: 30px 0;
1225
  line-height: 1.5;
1226
  }
1227
+ .admin.ajax-load-more.settings .form-table td{
1228
+ padding-right: 20px;
1229
+ }
1230
  .admin.ajax-load-more.settings .form-table th{
1231
+ padding-left: 20px;
1232
  }
1233
  .admin.ajax-load-more.settings .form-table p{
1234
  margin-top: 0;
1242
  }
1243
  .header-wrap{
1244
  overflow: hidden;
1245
+ padding: 10px 0;
1246
  }
1247
  .ajax-load-more .header-wrap h1{
1248
  padding-left: 60px;
1254
  .ajax-load-more .header-wrap h1 em{
1255
  display: block;
1256
  position: relative;
1257
+ margin-top: 1px;
1258
  font-size: 14px;
1259
  opacity: 0.7;
1260
  font-style: normal;
1261
  font-weight: 400;
1262
+ line-height: 1.35;
1263
  }
1264
+ .ajax-load-more .header-wrap h1 strong{
1265
+ font-weight: 700;
1266
+ }
1267
  .ajax-load-more h1 span{
1268
  color: #999;
1269
  font-weight: 300;
1425
  .ajax-load-more .cnkt-main .group,
1426
  .ajax-load-more .cnkt-sidebar .cta,
1427
  .call-out.light{
1428
+ border: 1px solid #e1e1e1;
1429
  -webkit-border-radius: 3px;
1430
  -moz-border-radius: 3px;
1431
  border-radius: 3px;
1443
  border-top: 1px solid #efefef;
1444
  }
1445
  .form-table {
1446
+ border: 1px solid #efefef;
1447
+ margin: 0 0 25px;
1448
  }
1449
 
1450
  .ajax-load-more .cnkt-main .group a.dismiss{
1459
  text-align: center;
1460
  background: #f7f7f7;
1461
  color: #777;
1462
+ border: 1px solid #e1e1e1;
1463
  border-right: none;
1464
  border-top: none;
1465
  display: block;
1499
  }
1500
 
1501
 
1502
+ /* Add-ons & Extensions */
1503
+
1504
+ .flexbox-wrap{
1505
+ display: -webkit-box;
1506
+ display: -moz-box;
1507
+ display: -ms-flexbox;
1508
+ display: -webkit-flex;
1509
+ display: flex;
1510
+ flex-wrap: wrap;
1511
+ }
1512
+
1513
  #alm-add-ons {}
1514
  #alm-add-ons .group{
1515
  overflow: hidden;
1523
  }
1524
  #alm-add-ons .group .expand-wrap{
1525
  display: block;
1526
+ padding-bottom: 50px;
1527
  position: relative;
1528
  word-spacing : 0;
1529
  }
1534
  width: 100%;
1535
  display: block;
1536
  font-size: 14px;
1537
+ padding: 10px 14px;
1538
+ transition: all 0.15s ease;
1539
  }
1540
  .ajax-load-more .cnkt-main .group.installed{
1541
  opacity: 0.85;
1552
  display: block;
1553
  padding: 15px;
1554
  }
1555
+ #alm-add-ons .group:hover{
1556
  border-color: #ccc;
1557
  }
1558
+ #alm-add-ons .group a h2{
1559
+ transition: all 0.15s ease;
1560
+ }
1561
  #alm-add-ons .group a:hover h2{
1562
  color: #ff5a58 !important;
1563
  }
1568
 
1569
  /* Add-on Callout! */
1570
  .call-out{
1571
+ background: #63ddbf;
1572
  padding: 18px 100px 18px 18px;
1573
  border-radius: 3px;
1574
  margin: 0;
1605
  padding: 6px 8px;
1606
  display: inline-block;
1607
  background: #fff;
1608
+ border: none;
1609
  border-radius: 3px;
1610
  position: absolute;
1611
  right: 11px;
1627
  padding: 6px 10px;
1628
  display: inline-block;
1629
  background: #5acfb2;
1630
+ border: 1px solid #5acfb2;
1631
  border-radius: 3px;
1632
  position: static;
 
1633
  text-decoration: none !important;
1634
  color: #fff !important;
1635
  font-size: 14px;
1644
  color:#fff !important;
1645
  box-shadow: none;
1646
  }
1647
+ a.cnkt-button:focus,
1648
+ .group:focus span.cnkt-button{
1649
  background-color: #83519d;
1650
  border-color: #935eaf;
1651
  color:#fff !important;
 
1652
  outline: none;
1653
  }
1654
  a.cnkt-button i,
1658
  position: relative;
1659
  top:1px;
1660
  background: none !important;
1661
+ transition: all 0.15s ease;
1662
  }
1663
  a.cnkt-button.installed,
1664
  span.cnkt-button.installed,
1810
  margin: 0 0 15px;
1811
  width: 100% !important;
1812
  border-color: #ccc;
1813
+ padding: 14px;
1814
  }
1815
  .license-wrap input[type=text]:focus{
1816
  background-color: #fff;
1902
  }
1903
  .ajax-load-more .cnkt-sidebar h3{
1904
  padding: 15px 20px;
1905
+ border-bottom: 1px solid #e1e1e1;
1906
  background: #f7f7f7;
1907
  margin: 0;
1908
  display: block;
1909
+ font-size: 14px;
1910
+ text-transform: uppercase;
1911
  -webkit-border-radius: 2px 2px 0 0;
1912
  -moz-border-radius: 2px 2px 0 0;
1913
  border-radius: 2px 2px 0 0;
1931
  margin: 0 0 5px;
1932
  font-size: 14px;
1933
  }
1934
+ .ajax-load-more .cnkt-sidebar .cta.dyk img{
1935
+ padding: 0 20px;
1936
+ }
1937
  .ajax-load-more .cnkt-sidebar .cta.dyk p{
1938
  margin: 15px 0 0;
1939
  display: block;
1941
  }
1942
  .ajax-load-more .cnkt-sidebar ul{
1943
  padding: 5px 0 0;
1944
+ margin: 0;
1945
  overflow: hidden;
1946
  }
1947
  .ajax-load-more .cnkt-sidebar li{
1998
 
1999
 
2000
  .ajax-load-more .cnkt-sidebar a.visit{
2001
+ background: #5795da;
2002
+ padding: 16px 20px 17px 44px;
2003
  position: absolute;
2004
  bottom: 0;
2005
  left: 0;
2015
  }
2016
  .ajax-load-more .cnkt-sidebar a.visit i{
2017
  font-size: 20px;
2018
+ opacity: 0.6;
2019
  margin: 0 5px 0 0;
2020
  position: absolute;
2021
+ top: 12px;
2022
  left: 18px;
2023
  display: inline-block;
2024
  }
2025
+ .ajax-load-more .cnkt-sidebar a.visit:hover,
2026
+ .ajax-load-more .cnkt-sidebar a.visit:focus{
2027
+ background: #61a2eb;
2028
  }
2029
  .ajax-load-more .cnkt-sidebar a.visit:hover i{
2030
+ opacity: 1;
2031
  }
 
 
 
 
2032
 
2033
  .ajax-load-more .cnkt-sidebar .project-listing {
2034
  padding: 0;
2036
  .ajax-load-more .cnkt-sidebar .project-listing li{
2037
  margin: 20px 0 0;
2038
  padding: 0;
 
2039
  position: relative;
2040
  clear: both;
2041
  }
2042
  .ajax-load-more .cnkt-sidebar .project-listing li a{
2043
  display: block;
2044
  position: static;
2045
+ padding-left: 60px;
2046
+ min-height: 58px;
2047
  text-decoration: none;
2048
  }
2049
  .ajax-load-more .cnkt-sidebar .project-listing li:first-of-type{
2050
  margin-top: 0;
2051
  }
2052
  .ajax-load-more .cnkt-sidebar .project-listing img {
2053
+ height: 48px;
2054
  left: 0;
2055
  position: absolute;
2056
  top: 2px;
2057
+ width: 48px;
2058
  }
2059
  .ajax-load-more .cnkt-sidebar .project-listing li strong{
 
2060
  display: block;
2061
  }
2062
  .ajax-load-more .cnkt-sidebar .project-listing li span{
2078
  border-radius: 3px;
2079
  padding: 8px;
2080
  background: #f7f7f7;
2081
+ border: 1px solid #e1e1e1;
2082
  color: #999;
2083
  line-height: 1.3;
2084
  }
2085
  .ajax-load-more .cm-readonly .CodeMirror{
2086
  margin: 0 0 20px;
2087
+ opacity: 0.8;
2088
+ }
2089
+ .ajax-load-more .cm-readonly .CodeMirror pre{
2090
+ cursor: default !important;
2091
+ }
2092
+ .ajax-load-more .cm-readonly.sm-margin .CodeMirror{
2093
+ margin: 0 0 10px;
2094
  }
2095
  .ajax-load-more .cm-readonly p.warning-callout{
2096
  margin: 0 0 10px;
2351
 
2352
  /* Live Search */
2353
 
2354
+ .ajax-load-more .alm-cache-search-wrap{
2355
  position: relative;
2356
  display: block;
2357
  margin: -5px 0 25px;
2358
  }
2359
+ .ajax-load-more .alm-cache-search-wrap input{
2360
  width: 100% !important;
2361
  margin: 0 !important;
2362
+ padding: 16px;
2363
  display: block;
2364
+ font-size: 16px;
2365
  }
2366
+ .ajax-load-more .alm-cache-search-wrap i{
2367
  position: absolute;
2368
+ right: 18px;
2369
+ top: 15px;
2370
  color: #ccc;
2371
+ font-size: 24px;
2372
  z-index: 1;
2373
  }
2374
 
2681
  padding: 0 20px 20px;
2682
  display: block;
2683
  background: #fff;
2684
+ border: 1px solid #e1e1e1;
2685
  -webkit-border-radius: 3px;
2686
  -moz-border-radius: 3px;
2687
  border-radius: 3px;
2734
  color: #999;
2735
  text-decoration: none !important;
2736
  padding: 8px 12px 8px 32px;
2737
+ border: 1px solid #e1e1e1;
2738
  -webkit-border-radius: 3px;
2739
  -moz-border-radius: 3px;
2740
  border-radius: 3px;
2787
  }
2788
  .alm-drop-btn.alm-layout-selection a.target{
2789
  background-color: #f7f7f7;
2790
+ border-color: #e1e1e1;
2791
  color: #555;
2792
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2);
2793
  }
2872
  color: #666;
2873
  }
2874
  .alm-drop-btn.alm-layout-selection a.add-on{
2875
+ line-height: 1.5;
2876
+ background-color: #63ddbf;
2877
  border: none;
2878
  color: #fff;
2879
+ font-weight: 400;
2880
  text-overflow: inherit;
2881
  height: auto;
2882
  white-space: normal;
2948
 
2949
  .add-layout-cta{
2950
  border-radius: 2px;
2951
+ border: 1px solid #e1e1e1;
2952
  background-color: #fefeed;
2953
  padding: 10px 100px 10px 10px;
2954
  display: block;
3078
  width: 32px;
3079
  height: 16px;
3080
  line-height: 16px;
3081
+ border-right: 1px solid #e1e1e1;
3082
  display: inline-block;
3083
  text-align: center;
3084
  }
3147
  #alm-mailing-list .form-wrap{
3148
  background-color: #fff;
3149
  padding: 12px;
3150
+ border: 1px solid #e1e1e1;
3151
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.025);
3152
  position: relative;
3153
  border-radius: 2px;
3257
  .dotted{
3258
  border: 1px dashed #ccc;
3259
  background: #f7f7f7;
3260
+ padding: 20px 20px 25px;
3261
  }
3262
  .share-alm .dotted{
3263
+ border: none;
3264
+ border-bottom: 1px dashed #ccc;
3265
  background: none;
3266
+ margin: 0 0 20px;
3267
+ padding: 0 0 15px;
3268
  }
3269
  .share-alm h3,
3270
  .share-alm h4{
3310
  }
3311
  ul.share li{
3312
  background: none;
 
 
3313
  float: left;
3314
  vertical-align: top;
3315
+ height: 40px;
3316
+ line-height: 40px;
3317
  font-size: 13px;
3318
  width: auto;
3319
  position: relative;
3321
  text-align: left;
3322
  background: none;
3323
  color: #787878;
3324
+ width: auto;
3325
  text-align: center;
3326
  height: 36px;
3327
+ margin: 5px 10px 0 0;
3328
  padding: 0;
3329
  }
3330
  ul.share li i{
3335
  }
3336
  ul.share li a{
3337
  display: block;
3338
+ line-height: 40px;
3339
  height: 40px;
3340
  width: auto;
3341
+ padding: 0 25px 0 50px;
3342
  text-decoration: none;
3343
  color: #fff;
3344
  background: none;
3346
  position: relative;
3347
  font-weight: 600;
3348
  background: #33cf92;
 
3349
  }
3350
  ul.share li a:hover{
3351
  background-color: #45dfa3;
3352
+ }
 
3353
  ul.share li i{
3354
+ font-size: 17px;
3355
+ line-height: 41px;
3356
+ height: 40px;
3357
+ width: 36px;
3358
  position: absolute;
3359
  top: 0;
3360
  left: 0;
3362
  border-right: 1px solid rgba(0, 0, 0, 0.1);
3363
  background-color: rgba(0, 0, 0, 0.1);
3364
  border-radius: 2px 0 0 2px;
3365
+ }
 
3366
  ul.share li a:hover,
3367
  ul.share li a:hover i{
3368
  text-decoration: none;
3413
  -moz-border-radius: 100%;
3414
  border-radius: 100%;
3415
  text-transform: uppercase;
3416
+ border: 1px solid #e1e1e1;
3417
  font-size: 13px;
3418
  }
3419
 
3433
  .alm-template-section-nav li.active a{
3434
  background: #ff0000;
3435
  }
3436
+
3437
+ /*
3438
+ * Toggle Switch
3439
+ *
3440
+ * @since 2.14.0
3441
+ */
3442
+ .ajax-load-more .alm-toggle-switch{
3443
+ display: block;
3444
+ clear: both;
3445
+ margin: 0;
3446
+ padding: 0 10px;
3447
+ overflow: hidden;
3448
+ position: relative;
3449
+ top: 1px;
3450
+ z-index: 9;
3451
+ }
3452
+ .ajax-load-more .alm-toggle-switch li{
3453
+ float: left;
3454
+ margin: 0 2px 0 0;
3455
+ padding: 0;
3456
+ background: none;
3457
+ list-style: none;
3458
+ }
3459
+ .ajax-load-more .alm-toggle-switch li a{
3460
+ display: block;
3461
+ padding: 16px 26px;
3462
+ line-height: 1;
3463
+ border-radius: 2px;
3464
+ text-decoration: none;
3465
+ border: 1px solid #e1e1e1;
3466
+ border-radius: 2px 2px 0 0;
3467
+ background: #f7f7f7;
3468
+ color: #666;
3469
+ }
3470
+ .ajax-load-more .alm-toggle-switch li a:hover{
3471
+ color: #222;
3472
+ background-color: #fff;
3473
+ }
3474
+ .ajax-load-more .alm-toggle-switch li a.active{
3475
+ background: #fff;
3476
+ font-weight: 600;
3477
+ border-bottom-color: #fff;
3478
+ color: #111;
3479
+ }
3480
 
3481
 
3482
  /*
3515
  }
3516
 
3517
  .admin.ajax-load-more.settings .form-table th{
3518
+ /* padding-left: 0; */
3519
  }
3520
+ .admin.ajax-load-more.settings .form-table td{
3521
+ padding: 24px 17px 20px
3522
+ }
3523
  #alm-add-ons .group{
3524
  width: 48%;
3525
  }
3625
  display: block;
3626
  font-size: 12px;
3627
  }
3628
+ }
 
 
 
 
admin/css/select2.css CHANGED
@@ -23,12 +23,12 @@
23
  .select2-container a.select2-choice {
24
  display: block;
25
  height: 40px;
 
26
  padding: 0 10px;
27
  overflow: hidden;
28
  position: relative;
29
  border: 1px solid #e7e7e7;
30
  white-space: nowrap;
31
- line-height: 40px;
32
  color: #333;
33
  text-decoration: none;
34
  background: #fff;
23
  .select2-container a.select2-choice {
24
  display: block;
25
  height: 40px;
26
+ line-height: 38px;
27
  padding: 0 10px;
28
  overflow: hidden;
29
  position: relative;
30
  border: 1px solid #e7e7e7;
31
  white-space: nowrap;
 
32
  color: #333;
33
  text-decoration: none;
34
  background: #fff;
admin/img/logos/broadcast-48x48.png ADDED
Binary file
admin/includes/components/example-list.php ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="group">
2
+ <span class="toggle-all"><span class="inner-wrap"><em class="collapse"><?php _e('Collapse All', 'ajax-load-more'); ?></em><em class="expand"><?php _e('Expand All', 'ajax-load-more'); ?></em></span></span>
3
+
4
+ <div class="row gist" id="example-archive">
5
+ <h3 class="heading"><?php _e('Archive.php', 'ajax-load-more'); ?></h3>
6
+ <div class="expand-wrap">
7
+ <p><?php _e('Shortcode for use on generic archive page.', 'ajax-load-more'); ?></p>
8
+ <div class="inner">
9
+ <script src="https://gist.github.com/dcooney/ebe912c7772e669f1370.js"></script>
10
+ </div>
11
+ </div>
12
+ </div>
13
+
14
+ <div class="row gist" id="example-author">
15
+ <h3 class="heading"><?php _e('Author.php', 'ajax-load-more'); ?></h3>
16
+ <div class="expand-wrap">
17
+ <p><?php _e('Shortcode for use on author archive pages.', 'ajax-load-more'); ?></p>
18
+ <div class="inner">
19
+ <script src="https://gist.github.com/dcooney/4d07ff95f7274f38fd3a.js"></script>
20
+ </div>
21
+ </div>
22
+ </div>
23
+ <div class="row gist" id="example-category">
24
+ <h3 class="heading"><?php _e('Category.php', 'ajax-load-more'); ?></h3>
25
+ <div class="expand-wrap">
26
+ <p><?php _e('Shortcode for use on category archive pages.', 'ajax-load-more'); ?></p>
27
+ <div class="inner">
28
+ <script src="https://gist.github.com/dcooney/ae4caec3f9061dd47627.js"></script>
29
+ </div>
30
+ </div>
31
+ </div>
32
+ <div class="row gist" id="example-date">
33
+ <h3 class="heading"><?php _e('Date Archives', 'ajax-load-more'); ?></h3>
34
+ <div class="expand-wrap">
35
+ <p><?php _e('Shortcode for use for archiving by date.', 'ajax-load-more'); ?></p>
36
+ <div class="inner">
37
+ <script src="https://gist.github.com/dcooney/6f74bebdd40cad9e3ee7.js"></script>
38
+ </div>
39
+ </div>
40
+ </div>
41
+ <div class="row gist" id="example-exclude">
42
+ <h3 class="heading"><?php _e('Excluding Posts', 'ajax-load-more'); ?></h3>
43
+ <div class="expand-wrap">
44
+ <p><?php _e('Shortcode for excluding an array of posts.', 'ajax-load-more'); ?></p>
45
+ <script src="https://gist.github.com/dcooney/9b037efbd166b4dba5ae.js"></script>
46
+ </div>
47
+ </div>
48
+
49
+ <div class="row gist" id="example-tag">
50
+ <h3 class="heading"><?php _e('Tag.php', 'ajax-load-more'); ?></h3>
51
+ <div class="expand-wrap">
52
+ <p><?php _e('Shortcode for use on tag archive pages.', 'ajax-load-more'); ?></p>
53
+ <div class="inner">
54
+ <script src="https://gist.github.com/dcooney/fc4276bebbdd05af64d1.js"></script>
55
+ </div>
56
+ </div>
57
+ </div>
58
+ </div>
admin/includes/cta/about.php CHANGED
@@ -1,28 +1,28 @@
1
  <div class="cta">
2
- <h3>Other Projects</h3>
3
  <div class="cta-inner">
4
  <ul class="project-listing">
 
 
 
 
 
 
 
5
  <li>
6
  <a target="blank" href="https://connekthq.com/plugins/easy-query/">
7
  <img src="<?php echo ALM_ADMIN_URL; ?>img/logos/eq-48x48.png" alt="">
8
  <strong>Easy Query</strong>
9
- <span>A simple solution to build and display WordPress queries without touching a single line of code.</span>
10
  </a>
11
  </li>
12
  <li>
13
  <a target="blank" href="https://connekthq.com/plugins/instant-images/">
14
  <img src="<?php echo ALM_ADMIN_URL; ?>img/logos/instant-images-48x48.png" alt="">
15
  <strong>Instant Images</strong>
16
- <span>Upload quality, high resolution photos directly to your media library without leaving WordPress.</span>
17
  </a>
18
  </li>
19
- <li>
20
- <a target="blank" href="https://connekthq.com/plugins/post-explorer/">
21
- <img src="<?php echo ALM_ADMIN_URL; ?>img/logos/post-explorer-48x48.png" alt="">
22
- <strong>Post Explorer</strong>
23
- <span>A premium WordPress plugin for loading single posts and custom post types with Ajax.</span>
24
- </a>
25
- </li>
26
  <li>
27
  <a target="blank" href="https://connekthq.com/plugins/velocity/">
28
  <img src="<?php echo ALM_ADMIN_URL; ?>img/logos/velocity-48x48.png" alt="">
1
  <div class="cta">
2
+ <h3>Other Plugins</h3>
3
  <div class="cta-inner">
4
  <ul class="project-listing">
5
+ <li>
6
+ <a target="blank" href="https://connekthq.com/plugins/broadcast/">
7
+ <img src="<?php echo ALM_ADMIN_URL; ?>img/logos/broadcast-48x48.png" alt="">
8
+ <strong>Broadcast</strong>
9
+ <span>Manage and display WordPress call to actions with Broadcast.</span>
10
+ </a>
11
+ </li>
12
  <li>
13
  <a target="blank" href="https://connekthq.com/plugins/easy-query/">
14
  <img src="<?php echo ALM_ADMIN_URL; ?>img/logos/eq-48x48.png" alt="">
15
  <strong>Easy Query</strong>
16
+ <span>Build and display WordPress queries without touching a single line of code.</span>
17
  </a>
18
  </li>
19
  <li>
20
  <a target="blank" href="https://connekthq.com/plugins/instant-images/">
21
  <img src="<?php echo ALM_ADMIN_URL; ?>img/logos/instant-images-48x48.png" alt="">
22
  <strong>Instant Images</strong>
23
+ <span>Upload Unsplash.com photos directly to your media library without leaving WordPress.</span>
24
  </a>
25
  </li>
 
 
 
 
 
 
 
26
  <li>
27
  <a target="blank" href="https://connekthq.com/plugins/velocity/">
28
  <img src="<?php echo ALM_ADMIN_URL; ?>img/logos/velocity-48x48.png" alt="">
admin/includes/cta/add-ons.php CHANGED
@@ -4,5 +4,5 @@
4
  <p style="padding-bottom: 10px;">Ajax Load More offers a variety of unique <a href="admin.php?page=ajax-load-more-add-ons">add-ons</a> that will extend and enhance the core functionality of the plugin.</p>
5
  <p>Add-ons can be purchased individually or in a <a href="https://connekthq.com/plugins/ajax-load-more/add-ons/bundle/?utm_source=WP%20Admin&utm_medium=ALM%20Dashboard&utm_campaign=Bundle" target="_blank">bundle</a> which gives you access all of the Ajax Load More add-ons at over 50% off the regular price!</p>
6
  </div>
7
- <a href="admin.php?page=ajax-load-more-add-ons" class="visit" target="_blank"><i class="fa fa-chevron-circle-right"></i> View Add-ons</a>
8
  </div>
4
  <p style="padding-bottom: 10px;">Ajax Load More offers a variety of unique <a href="admin.php?page=ajax-load-more-add-ons">add-ons</a> that will extend and enhance the core functionality of the plugin.</p>
5
  <p>Add-ons can be purchased individually or in a <a href="https://connekthq.com/plugins/ajax-load-more/add-ons/bundle/?utm_source=WP%20Admin&utm_medium=ALM%20Dashboard&utm_campaign=Bundle" target="_blank">bundle</a> which gives you access all of the Ajax Load More add-ons at over 50% off the regular price!</p>
6
  </div>
7
+ <a href="admin.php?page=ajax-load-more-add-ons" class="visit"><i class="fa fa-chevron-circle-right"></i> View Add-ons</a>
8
  </div>
admin/includes/cta/sharing.php CHANGED
@@ -2,7 +2,7 @@
2
  <p><?php _e('Help <a href="https://twitter.com/KaptonKaos" target="_blank">me</a> spread the word by sharing with your friends and colleagues on Twitter and Facebook.', 'ajax-load-more'); ?></p>
3
  <ul class="share">
4
  <li class="twitter">
5
- <a target="blank" title="Share on Twitter" href="//twitter.com/home?status=Ajax Load More - WordPress plugin for infinite scrolling posts with Ajax - https://connekthq.com/plugins/ajax-load-more/" class="share-twitter">Twitter</a>
6
  </li>
7
  <li class="facebook">
8
  <a target="blank" title="Share on Facebook" href="//facebook.com/share.php?u=https://connekthq.com/plugins/ajax-load-more/" class="share-facebook">Facebook</a>
2
  <p><?php _e('Help <a href="https://twitter.com/KaptonKaos" target="_blank">me</a> spread the word by sharing with your friends and colleagues on Twitter and Facebook.', 'ajax-load-more'); ?></p>
3
  <ul class="share">
4
  <li class="twitter">
5
+ <a target="blank" title="Share on Twitter" href="//twitter.com/home?status=I'm infinite scrolling with Ajax Load More for WordPress - https://connekthq.com/plugins/ajax-load-more/" class="share-twitter">Twitter</a>
6
  </li>
7
  <li class="facebook">
8
  <a target="blank" title="Share on Facebook" href="//facebook.com/share.php?u=https://connekthq.com/plugins/ajax-load-more/" class="share-facebook">Facebook</a>
admin/shortcode-builder/js/shortcode-builder.js CHANGED
@@ -185,6 +185,35 @@ jQuery(document).ready(function($) {
185
  output += ' css_classes="'+container_classes+'"';
186
 
187
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
188
  // ---------------------------
189
  // - Cache
190
  // ---------------------------
@@ -226,7 +255,7 @@ jQuery(document).ready(function($) {
226
  // Theme repeater
227
  if(cta_theme_repeater != '' && cta_theme_repeater != undefined && cta_position != '' && cta_position != null){
228
  output += ' cta="'+cta+'"';
229
- output += ' cta_position="'+cta_before_after+':'+cta_position;
230
  output += ' cta_theme_repeater="'+cta_theme_repeater+'"';
231
  }
232
  $('#sequence-update').text(cta_position);
185
  output += ' css_classes="'+container_classes+'"';
186
 
187
 
188
+ // ---------------------------
189
+ // - Advacned Custom Fields
190
+ // ---------------------------
191
+
192
+ var acf = $('#alm-acf input[name=acf]:checked').val();
193
+
194
+ if(acf !== 'false' && acf != undefined){
195
+
196
+
197
+ var acf_post_id = $('#acf_post_id').val(),
198
+ acf_field_type = $('#acf_field_type').val(),
199
+ acf_field_name = $('#acf_field_name').val();
200
+
201
+ $('.acf-options').slideDown(150, 'alm_easeInOutQuad');
202
+
203
+ if(acf_field_type !== '' && acf_field_name !== ''){
204
+ output += ' acf="'+acf+'"';
205
+ if(acf_post_id !== ''){
206
+ output += ' acf_post_id="\'.'+ acf_post_id +'.\'"';
207
+ }
208
+ output += ' acf_field_type="'+ acf_field_type +'"';
209
+ output += ' acf_field_name="'+ acf_field_name +'"';
210
+ }
211
+
212
+ }else{
213
+ $('.acf-options').slideUp(150, 'alm_easeInOutQuad')
214
+ }
215
+
216
+
217
  // ---------------------------
218
  // - Cache
219
  // ---------------------------
255
  // Theme repeater
256
  if(cta_theme_repeater != '' && cta_theme_repeater != undefined && cta_position != '' && cta_position != null){
257
  output += ' cta="'+cta+'"';
258
+ output += ' cta_position="'+cta_before_after+':'+cta_position+'"';
259
  output += ' cta_theme_repeater="'+cta_theme_repeater+'"';
260
  }
261
  $('#sequence-update').text(cta_position);
admin/shortcode-builder/shortcode-builder.php CHANGED
@@ -13,7 +13,85 @@
13
  <?php if(alm_has_addon_shortcodes()) : ?>
14
 
15
  <div class="shortcode-parameter-wrap">
16
- <h2 class="shortcode-title"><?php _e('Add-ons', 'ajax-load-more'); ?></h2>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
 
18
  <?php if(has_action('alm_cache_installed')){ ?>
19
  <!-- CACHE -->
@@ -1567,6 +1645,7 @@
1567
  <option value="ID">ID</option>
1568
  <option value="comment_count">Comment Count</option>
1569
  <option value="modified">Modified</option>
 
1570
  <option value="meta_value_num">meta_value_num</option>
1571
  </select>
1572
  </div>
13
  <?php if(alm_has_addon_shortcodes()) : ?>
14
 
15
  <div class="shortcode-parameter-wrap">
16
+ <h2 class="shortcode-title"><?php _e('Add-ons & Extensions', 'ajax-load-more'); ?></h2>
17
+
18
+ <?php if(has_action('alm_acf_installed')){ ?>
19
+ <!-- ACF -->
20
+ <div class="row input cache add-on" id="alm-acf">
21
+ <h3 class="heading"><?php _e('Advanced Custom Fields', 'ajax-load-more'); ?></h3>
22
+ <div class="expand-wrap">
23
+ <div class="section-title">
24
+ <p><?php _e('Enable compatibility with Advanced Custom Fields.', 'ajax-load-more'); ?></p>
25
+ </div>
26
+ <div class="wrap">
27
+ <div class="inner">
28
+ <ul>
29
+ <li>
30
+ <input class="alm_element" type="radio" name="acf" value="true" id="acf-true" >
31
+ <label for="acf-true"><?php _e('True', 'ajax-load-more'); ?></label>
32
+ </li>
33
+ <li>
34
+ <input class="alm_element" type="radio" name="acf" value="false" id="acf-false" checked="checked">
35
+ <label for="acf-false"><?php _e('False', 'ajax-load-more'); ?></label>
36
+ </li>
37
+ </ul>
38
+ </div>
39
+ </div>
40
+ <div class="clear"></div>
41
+
42
+ <div class="acf-options">
43
+
44
+ <div class="clear"></div>
45
+ <hr>
46
+ <div class="section-title">
47
+ <h4><?php _e('Post ID', 'ajax-load-more'); ?> <a href="javascript:void(0)" class="fa fa-question-circle tooltip" title="<?php _e('Leave this field blank and Ajax Load More will get the ID from the global $post object','ajax-load-more'); ?>"></a></h4>
48
+ <p><?php _e('The ID of the current page/post.', 'ajax-load-more'); ?></p>
49
+ </div>
50
+ <div class="wrap">
51
+ <div class="inner">
52
+ <input type="text" value="" id="acf_post_id" class="alm_element">
53
+ </div>
54
+ </div>
55
+
56
+ <div class="clear"></div>
57
+ <hr/>
58
+ <div class="spacer"></div>
59
+
60
+ <div class="section-title">
61
+ <h4><?php _e('Field Type', 'ajax-load-more'); ?></h4>
62
+ <p><?php _e('Select the type of ACF field', 'ajax-load-more'); ?>.</p>
63
+ </div>
64
+ <div class="wrap">
65
+ <div class="inner">
66
+ <label class="offscreen" for="acf_field_type"><?php _e('Field Type', 'ajax-load-more'); ?>:</label>
67
+ <select class="alm_element" name="acf_field_type" id="acf_field_type">
68
+ <option value="" selected="selected">-- <?php _e('Select Field Type', 'ajax-load-more'); ?> --</option>
69
+ <option value="relationship"><?php _e('Relationship', 'ajax-load-more'); ?></option>
70
+ <option value="repeater"><?php _e('Repeater', 'ajax-load-more'); ?></option>
71
+ </select>
72
+ </div>
73
+ </div>
74
+
75
+ <div class="clear"></div>
76
+ <hr/>
77
+ <div class="spacer"></div>
78
+
79
+ <div class="section-title">
80
+ <h4><?php _e('Field Name', 'ajax-load-more'); ?></h4>
81
+ <p><?php _e('Enter the name of the ACF field', 'ajax-load-more'); ?>.</p>
82
+ </div>
83
+ <div class="wrap">
84
+ <div class="inner">
85
+ <label class="offscreen" for="acf_field_name"><?php _e('Field Type', 'ajax-load-more'); ?>:</label>
86
+ <input type="text" class="alm_element" name="acf_field_name" id="acf_field_name" placeholder="{your_field_name}">
87
+ </div>
88
+ </div>
89
+
90
+ </div>
91
+ </div>
92
+ </div>
93
+ <?php } ?>
94
+
95
 
96
  <?php if(has_action('alm_cache_installed')){ ?>
97
  <!-- CACHE -->
1645
  <option value="ID">ID</option>
1646
  <option value="comment_count">Comment Count</option>
1647
  <option value="modified">Modified</option>
1648
+ <option value="post__in">Post In</option>
1649
  <option value="meta_value_num">meta_value_num</option>
1650
  </select>
1651
  </div>
admin/views/add-ons.php CHANGED
@@ -10,7 +10,7 @@
10
  <div class="cnkt-main full">
11
 
12
  <!-- Cache -->
13
- <div class="group<?php if (has_action('alm_cache_installed')){echo ' installed'; } ?>">
14
  <div class="row no-brd">
15
  <?php
16
  $cache_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/cache/?utm_source=WP%20Admin&utm_medium=ALM%20Add-ons&utm_campaign=Cache'; ?>
@@ -37,7 +37,7 @@
37
 
38
 
39
  <!-- Call to Actions -->
40
- <div class="group<?php if (has_action('alm_cta_installed')){echo ' installed'; } ?>">
41
  <div class="row no-brd">
42
  <?php
43
  $cta_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/call-to-actions/?utm_source=WP%20Admin&utm_medium=ALM%20Add-ons&utm_campaign=Call to Actions'; ?>
@@ -64,7 +64,7 @@
64
 
65
 
66
  <!-- Comments -->
67
- <div class="group<?php if (has_action('alm_comments_installed')){echo ' installed'; } ?>">
68
  <div class="row no-brd">
69
  <?php
70
  $comments_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/comments/?utm_source=WP%20Admin&utm_medium=ALM%20Add-ons&utm_campaign=Comments'; ?>
@@ -91,7 +91,7 @@
91
 
92
 
93
  <!-- Custom Repeaters -->
94
- <div class="group<?php if (has_action('alm_unlimited_installed')){echo ' installed'; } ?>">
95
  <div class="row no-brd">
96
  <?php $cr_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/custom-repeaters/?utm_source=WP%20Admin&utm_medium=ALM%20Add-ons&utm_campaign=Custom%20Repeaters'; ?>
97
  <a href="<?php echo $cr_url; ?>" <?php echo $target; ?>>
@@ -117,7 +117,7 @@
117
 
118
 
119
  <!-- Layouts -->
120
- <div class="group<?php if (has_action('alm_layouts_installed')){echo ' installed'; } ?>">
121
  <div class="row no-brd">
122
  <?php
123
  $layout_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/layouts/?utm_source=WP%20Admin&utm_medium=ALM%20Add-ons&utm_campaign=Layouts';
@@ -143,7 +143,7 @@
143
 
144
 
145
  <!-- Layouts -->
146
- <div class="group<?php if (has_action('alm_nextpage_installed')){echo ' installed'; } ?>">
147
  <div class="row no-brd">
148
  <?php
149
  $layout_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/next-page/?utm_source=WP%20Admin&utm_medium=ALM%20Add-ons&utm_campaign=Next Page';
@@ -169,7 +169,7 @@
169
 
170
 
171
  <!-- Paging -->
172
- <div class="group<?php if (has_action('alm_paging_installed')){echo ' installed'; } ?>">
173
  <div class="row no-brd">
174
  <?php
175
  $paging_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/paging/?utm_source=WP%20Admin&utm_medium=ALM%20Add-ons&utm_campaign=Paging';
@@ -196,7 +196,7 @@
196
 
197
 
198
  <!-- Preloaded -->
199
- <div class="group<?php if (has_action('alm_preload_installed')){echo ' installed'; } ?>">
200
  <div class="row no-brd">
201
  <?php
202
  $preload_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/preloaded/?utm_source=WP%20Admin&utm_medium=ALM%20Add-ons&utm_campaign=Preloaded';
@@ -222,7 +222,7 @@
222
 
223
 
224
  <!-- Previous Post -->
225
- <div class="group<?php if (has_action('alm_prev_post_installed')){echo ' installed'; } ?>">
226
  <div class="row no-brd">
227
  <?php
228
  $prev_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/?utm_source=WP%20Admin&utm_medium=ALM%20Add-ons&utm_campaign=Previous Post';
@@ -248,7 +248,7 @@
248
 
249
 
250
  <!-- SEO -->
251
- <div class="group<?php if (has_action('alm_seo_installed')){echo ' installed'; } ?>">
252
  <div class="row no-brd">
253
  <?php
254
  $seo_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/search-engine-optimization/?utm_source=WP%20Admin&utm_medium=ALM%20Add-ons&utm_campaign=SEO';
@@ -276,7 +276,7 @@
276
 
277
 
278
  <!-- Theme Repeaters -->
279
- <div class="group<?php if (has_action('alm_theme_repeaters_installed')){echo ' installed'; } ?>">
280
  <div class="row no-brd">
281
  <?php $themer_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/theme-repeaters/?utm_source=WP%20Admin&utm_medium=ALM%20Add-ons&utm_campaign=Theme Repeaters'; ?>
282
  <a href="<?php echo $themer_url; ?>" <?php echo $target; ?>>
10
  <div class="cnkt-main full">
11
 
12
  <!-- Cache -->
13
+ <div class="group<?php if (has_action('alm_cache_installed')){ echo ' installed'; } ?>">
14
  <div class="row no-brd">
15
  <?php
16
  $cache_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/cache/?utm_source=WP%20Admin&utm_medium=ALM%20Add-ons&utm_campaign=Cache'; ?>
37
 
38
 
39
  <!-- Call to Actions -->
40
+ <div class="group<?php if (has_action('alm_cta_installed')){ echo ' installed'; } ?>">
41
  <div class="row no-brd">
42
  <?php
43
  $cta_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/call-to-actions/?utm_source=WP%20Admin&utm_medium=ALM%20Add-ons&utm_campaign=Call to Actions'; ?>
64
 
65
 
66
  <!-- Comments -->
67
+ <div class="group<?php if (has_action('alm_comments_installed')){ echo ' installed'; } ?>">
68
  <div class="row no-brd">
69
  <?php
70
  $comments_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/comments/?utm_source=WP%20Admin&utm_medium=ALM%20Add-ons&utm_campaign=Comments'; ?>
91
 
92
 
93
  <!-- Custom Repeaters -->
94
+ <div class="group<?php if (has_action('alm_unlimited_installed')){ echo ' installed'; } ?>">
95
  <div class="row no-brd">
96
  <?php $cr_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/custom-repeaters/?utm_source=WP%20Admin&utm_medium=ALM%20Add-ons&utm_campaign=Custom%20Repeaters'; ?>
97
  <a href="<?php echo $cr_url; ?>" <?php echo $target; ?>>
117
 
118
 
119
  <!-- Layouts -->
120
+ <div class="group<?php if (has_action('alm_layouts_installed')){ echo ' installed'; } ?>">
121
  <div class="row no-brd">
122
  <?php
123
  $layout_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/layouts/?utm_source=WP%20Admin&utm_medium=ALM%20Add-ons&utm_campaign=Layouts';
143
 
144
 
145
  <!-- Layouts -->
146
+ <div class="group<?php if (has_action('alm_nextpage_installed')){ echo ' installed'; } ?>">
147
  <div class="row no-brd">
148
  <?php
149
  $layout_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/next-page/?utm_source=WP%20Admin&utm_medium=ALM%20Add-ons&utm_campaign=Next Page';
169
 
170
 
171
  <!-- Paging -->
172
+ <div class="group<?php if (has_action('alm_paging_installed')){ echo ' installed'; } ?>">
173
  <div class="row no-brd">
174
  <?php
175
  $paging_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/paging/?utm_source=WP%20Admin&utm_medium=ALM%20Add-ons&utm_campaign=Paging';
196
 
197
 
198
  <!-- Preloaded -->
199
+ <div class="group<?php if (has_action('alm_preload_installed')){ echo ' installed'; } ?>">
200
  <div class="row no-brd">
201
  <?php
202
  $preload_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/preloaded/?utm_source=WP%20Admin&utm_medium=ALM%20Add-ons&utm_campaign=Preloaded';
222
 
223
 
224
  <!-- Previous Post -->
225
+ <div class="group<?php if (has_action('alm_prev_post_installed')){ echo ' installed'; } ?>">
226
  <div class="row no-brd">
227
  <?php
228
  $prev_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/?utm_source=WP%20Admin&utm_medium=ALM%20Add-ons&utm_campaign=Previous Post';
248
 
249
 
250
  <!-- SEO -->
251
+ <div class="group<?php if (has_action('alm_seo_installed')){ echo ' installed'; } ?>">
252
  <div class="row no-brd">
253
  <?php
254
  $seo_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/search-engine-optimization/?utm_source=WP%20Admin&utm_medium=ALM%20Add-ons&utm_campaign=SEO';
276
 
277
 
278
  <!-- Theme Repeaters -->
279
+ <div class="group<?php if (has_action('alm_theme_repeaters_installed')){ echo ' installed'; } ?>">
280
  <div class="row no-brd">
281
  <?php $themer_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/theme-repeaters/?utm_source=WP%20Admin&utm_medium=ALM%20Add-ons&utm_campaign=Theme Repeaters'; ?>
282
  <a href="<?php echo $themer_url; ?>" <?php echo $target; ?>>
admin/views/examples.php DELETED
@@ -1,85 +0,0 @@
1
- <div class="admin ajax-load-more" id="alm-examples">
2
- <div class="wrap">
3
- <div class="header-wrap">
4
- <h1>
5
- <?php echo ALM_TITLE; ?>: <strong><?php _e('Examples', 'ajax-load-more'); ?></strong>
6
- <em><?php _e('A collection of everyday shortcode usages and implementation examples', 'ajax-load-more'); ?></em>
7
- </h1>
8
- </div>
9
- <div class="cnkt-main forceColors">
10
- <div class="group">
11
- <span class="toggle-all"><span class="inner-wrap"><em class="collapse"><?php _e('Collapse All', 'ajax-load-more'); ?></em><em class="expand"><?php _e('Expand All', 'ajax-load-more'); ?></em></span></span>
12
-
13
- <div class="row gist" id="example-archive">
14
- <h3 class="heading"><?php _e('Archive.php', 'ajax-load-more'); ?></h3>
15
- <div class="expand-wrap">
16
- <p><?php _e('Shortcode for use on generic archive page.', 'ajax-load-more'); ?></p>
17
- <div class="inner">
18
- <script src="https://gist.github.com/dcooney/ebe912c7772e669f1370.js"></script>
19
- </div>
20
- </div>
21
- </div>
22
-
23
- <div class="row gist" id="example-author">
24
- <h3 class="heading"><?php _e('Author.php', 'ajax-load-more'); ?></h3>
25
- <div class="expand-wrap">
26
- <p><?php _e('Shortcode for use on author archive pages.', 'ajax-load-more'); ?></p>
27
- <div class="inner">
28
- <script src="https://gist.github.com/dcooney/4d07ff95f7274f38fd3a.js"></script>
29
- </div>
30
- </div>
31
- </div>
32
- <div class="row gist" id="example-category">
33
- <h3 class="heading"><?php _e('Category.php', 'ajax-load-more'); ?></h3>
34
- <div class="expand-wrap">
35
- <p><?php _e('Shortcode for use on category archive pages.', 'ajax-load-more'); ?></p>
36
- <div class="inner">
37
- <script src="https://gist.github.com/dcooney/ae4caec3f9061dd47627.js"></script>
38
- </div>
39
- </div>
40
- </div>
41
- <div class="row gist" id="example-date">
42
- <h3 class="heading"><?php _e('Date Archives', 'ajax-load-more'); ?></h3>
43
- <div class="expand-wrap">
44
- <p><?php _e('Shortcode for use for archiving by date.', 'ajax-load-more'); ?></p>
45
- <div class="inner">
46
- <script src="https://gist.github.com/dcooney/6f74bebdd40cad9e3ee7.js"></script>
47
- </div>
48
- </div>
49
- </div>
50
- <div class="row gist" id="example-exclude">
51
- <h3 class="heading"><?php _e('Excluding Posts', 'ajax-load-more'); ?></h3>
52
- <div class="expand-wrap">
53
- <p><?php _e('Shortcode for excluding an array of posts.', 'ajax-load-more'); ?></p>
54
- <script src="https://gist.github.com/dcooney/9b037efbd166b4dba5ae.js"></script>
55
- </div>
56
- </div>
57
-
58
- <div class="row gist" id="example-tag">
59
- <h3 class="heading"><?php _e('Tag.php', 'ajax-load-more'); ?></h3>
60
- <div class="expand-wrap">
61
- <p><?php _e('Shortcode for use on tag archive pages.', 'ajax-load-more'); ?></p>
62
- <div class="inner">
63
- <script src="https://gist.github.com/dcooney/fc4276bebbdd05af64d1.js"></script>
64
- </div>
65
- </div>
66
- </div>
67
- </div>
68
-
69
- <p class="back2top"><a href="#wpcontent" class="group"><i class="fa fa-angle-up"></i> Back to Top</a></p>
70
-
71
- </div>
72
- <div class="cnkt-sidebar">
73
- <div class="cta padding-bottom">
74
- <h3>Example Library</h3>
75
- <div class="cta-inner">
76
- <p style="padding-bottom: 10px;">We have a collection of over 20 real-world Ajax Load More <a href="https://connekthq.com/plugins/ajax-load-more/examples/" target="_blank">examples</a> available on the plugin website.</p>
77
- </div>
78
- <a href="https://connekthq.com/plugins/ajax-load-more/examples/" class="visit" target="_blank"><i class="fa fa-chevron-circle-right"></i> <?php _e('View All Examples', 'ajax-load-more'); ?></a>
79
- </div>
80
- <?php include_once( ALM_PATH . 'admin/includes/cta/dyk.php'); ?>
81
- <?php include_once( ALM_PATH . 'admin/includes/cta/resources.php'); ?>
82
- </div>
83
-
84
- </div>
85
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/views/extensions.php ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="admin ajax-load-more" id="alm-add-ons">
2
+ <div class="wrap">
3
+ <div class="header-wrap">
4
+ <h1>
5
+ <?php echo ALM_TITLE; ?>: <strong><?php _e('Extensions', 'ajax-load-more'); ?></strong>
6
+ <em><?php _e('Free extensions that provide compatibility with popular plugins and core WordPress functionality', 'ajax-load-more'); ?>.</em>
7
+ </h1>
8
+ </div>
9
+
10
+ <div class="cnkt-main full">
11
+
12
+ <?php
13
+
14
+ $plugin_array = array(
15
+ array(
16
+ 'slug' => 'ajax-load-more-for-acf',
17
+ ),
18
+ array(
19
+ 'slug' => 'ajax-load-more-for-relevanssi',
20
+ ),
21
+ array(
22
+ 'slug' => 'ajax-load-more-rest-api'
23
+ ),
24
+ array(
25
+ 'slug' => 'ajax-load-more-for-searchwp'
26
+ )
27
+ );
28
+
29
+ if(class_exists('Connekt_Plugin_Installer')){
30
+ Connekt_Plugin_Installer::init($plugin_array);
31
+ }
32
+
33
+ ?>
34
+
35
+
36
+ </div>
37
+
38
+ <div class="call-out light" style="width: 100%;">
39
+ <p><?php _e('Extensions are installed as stand alone plugins and receive update notifications in the <a href="plugins.php">plugin dashboard</a>.', 'ajax-load-more'); ?></p>
40
+ </div>
41
+
42
+ </div>
43
+ </div>
admin/views/help.php CHANGED
@@ -1,21 +1,78 @@
1
- <div class="admin ajax-load-more" id="alm-help">
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  <div class="wrap">
3
  <div class="header-wrap">
4
  <h1>
5
  <?php echo ALM_TITLE; ?>: <strong><?php _e('Help', 'ajax-load-more'); ?></strong>
6
- <em><?php _e('Get started with our four step guide to painless implementation!', 'ajax-load-more'); ?></em>
7
  </h1>
8
  </div>
9
- <div class="cnkt-main forceColors">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  <div class="group">
11
-
12
  <img src="<?php echo ALM_ADMIN_URL; ?>img/infographic.png">
13
-
14
  </div>
 
 
 
 
 
 
 
15
  </div>
 
16
  <div class="cnkt-sidebar">
17
- <?php include_once( ALM_PATH . 'admin/includes/cta/resources.php'); ?>
18
- <?php include_once( ALM_PATH . 'admin/includes/cta/dyk.php'); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  </div>
20
 
21
  </div>
1
+ <?php
2
+ $id = 'alm-help';
3
+ $examples = false;
4
+ $subtitle = __('Get started with our four step guide to painless implementation!', 'ajax-load-more');
5
+ if (isset($_GET['section'])) {
6
+ $the_section = $_GET['section'];
7
+ if($the_section == 'examples'){
8
+ $examples = true;
9
+ $subtitle = __('A collection of everyday shortcode usages and implementation examples', 'ajax-load-more') .'.';
10
+ $id = 'alm-examples';
11
+ }
12
+ }
13
+ ?>
14
+ <div class="admin ajax-load-more" id="<?php echo $id; ?>">
15
  <div class="wrap">
16
  <div class="header-wrap">
17
  <h1>
18
  <?php echo ALM_TITLE; ?>: <strong><?php _e('Help', 'ajax-load-more'); ?></strong>
19
+ <em><?php echo $subtitle; ?></em>
20
  </h1>
21
  </div>
22
+ <div class="cnkt-main">
23
+
24
+ <ul class="alm-toggle-switch">
25
+ <li>
26
+ <a href="?page=ajax-load-more-help" class="<?php if(!$examples){ echo 'active';} ?>">
27
+ <?php _e('Implementation Guide', 'ajax-load-more'); ?>
28
+ </a>
29
+ </li>
30
+ <li>
31
+ <a href="?page=ajax-load-more-help&section=examples" class="<?php if($examples){ echo 'active';} ?>">
32
+ <?php _e('Examples', 'ajax-load-more'); ?>
33
+ </a>
34
+ </li>
35
+ </ul>
36
+
37
+ <?php
38
+ if(!$examples){
39
+ // Implementation Guide
40
+ ?>
41
+
42
  <div class="group">
 
43
  <img src="<?php echo ALM_ADMIN_URL; ?>img/infographic.png">
 
44
  </div>
45
+
46
+ <?php } else {
47
+ // Examples
48
+ include_once( ALM_PATH . 'admin/includes/components/example-list.php');
49
+
50
+ } ?>
51
+
52
  </div>
53
+
54
  <div class="cnkt-sidebar">
55
+ <?php
56
+ if(!$examples){
57
+ // Implementation Guide
58
+ include_once( ALM_PATH . 'admin/includes/cta/resources.php');
59
+ include_once( ALM_PATH . 'admin/includes/cta/dyk.php');
60
+
61
+ } else {
62
+ // Examples
63
+ ?>
64
+ <div class="cta padding-bottom">
65
+ <h3><?php _e('Example Library', 'ajax-load-more'); ?></h3>
66
+ <div class="cta-inner">
67
+ <p style="padding-bottom: 10px;"><?php _e('We have a collection of over 20 real-world Ajax Load More <a href="https://connekthq.com/plugins/ajax-load-more/examples/" target="_blank">examples</a> available on the plugin website', 'ajax-load-more'); ?>.</p>
68
+ </div>
69
+ <a href="https://connekthq.com/plugins/ajax-load-more/examples/" class="visit" target="_blank"><i class="fa fa-chevron-circle-right"></i> <?php _e('View All Examples', 'ajax-load-more'); ?></a>
70
+ </div>
71
+ <?php
72
+ include_once( ALM_PATH . 'admin/includes/cta/dyk.php');
73
+ include_once( ALM_PATH . 'admin/includes/cta/resources.php');
74
+ }
75
+ ?>
76
  </div>
77
 
78
  </div>
admin/views/licenses.php CHANGED
@@ -13,6 +13,7 @@
13
  <p><?php _e('Manage your Ajax Load More license key\'s below - enter a key for each of your add-ons to receive plugin update notifications directly within the <a href="plugins.php">WP Plugins dashboard</a>.', 'ajax-load-more'); ?></p>
14
 
15
  <?php
 
16
  // alm_cache_installed
17
  // alm_cta_installed
18
  // alm_comments_installed
@@ -29,8 +30,74 @@
29
  <?php
30
  // Check if any add ons are installed. /admin/admin-functions.php
31
  if(alm_has_addon()) : ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
 
 
 
 
 
33
 
 
 
 
 
 
 
 
 
 
 
34
  <?php
35
  if (has_action('alm_cache_installed')){
36
  // CACHE
@@ -771,7 +838,7 @@
771
  </div>
772
 
773
  <div class="cnkt-sidebar">
774
- <div class="cta padding-bottom">
775
  <h3><?php _e('About Licenses', 'ajax-load-more'); ?></h3>
776
  <div class="cta-inner">
777
  <ul>
@@ -779,8 +846,8 @@
779
  <li><?php _e('License keys are found in the purchase receipt email that was sent immediately after your successful purchase and in the <a target="_blank" href="https://connekthq.com/account/">Account</a> section on our website', 'ajax-load-more');?></li>
780
  <li><?php _e('If you cannot locate your key please open a support ticket by filling out the <a href="https://connekthq.com/contact/">form</a> on our website and reference the email address used when you completed the purchase.', 'ajax-load-more'); ?></li>
781
  </ul>
782
- </div>
783
- <a class="visit" target="_blank" href="https://connekthq.com/account/"><i class="fa fa-chevron-circle-right"></i> Sign Into Your Account</a>
784
  </div>
785
  <div class="cta">
786
  <h3><?php _e('Legacy Users', 'ajax-load-more'); ?></h3>
13
  <p><?php _e('Manage your Ajax Load More license key\'s below - enter a key for each of your add-ons to receive plugin update notifications directly within the <a href="plugins.php">WP Plugins dashboard</a>.', 'ajax-load-more'); ?></p>
14
 
15
  <?php
16
+ // alm_acf_installed
17
  // alm_cache_installed
18
  // alm_cta_installed
19
  // alm_comments_installed
30
  <?php
31
  // Check if any add ons are installed. /admin/admin-functions.php
32
  if(alm_has_addon()) : ?>
33
+
34
+
35
+ <?php
36
+ if (has_action('alm_acf_installed')){
37
+ // ACF
38
+ $alm_acf_license = get_option( 'alm_acf_license_key' );
39
+ $alm_acf_status = get_option( 'alm_acf_license_status' );
40
+ $alm_acf_url = 'https://connekthq.com/plugins/ajax-load-more/add-ons/advacned-custom-fields/';
41
+ ?>
42
+ <div class="license" id="license-acf">
43
+ <div class="license-title">
44
+ <div class="status <?php if($alm_acf_status == 'valid'){echo 'valid';}else{echo 'invalid';} ?> "></div>
45
+ <h2><?php _e('Advanced Custom Fields', 'ajax-load-more'); ?></h2>
46
+ </div>
47
+ <div class="license-wrap">
48
+ <form method="post" action="options.php">
49
+
50
+ <?php if( $alm_acf_status !== false && $alm_acf_status == 'valid' ) { ?>
51
+ <!-- nothing -->
52
+ <?php } else { ?>
53
+ <div class="no-license">
54
+ <h4><?php _e('Don\'t have a license?', 'ajax-load-more'); ?></h4>
55
+ <p><?php _e('A valid license is required to activate and receive plugin updates directly in your WordPress dashboard', 'ajax-load-more'); ?> &rarr; <a href="<?php echo $alm_acf_url; ?>?utm_source=WP%20Admin&utm_medium=Licenses&utm_campaign=ACF" target="blank"><strong><?php _e('Purchase Now', 'ajax-load-more'); ?>!</strong></a></p>
56
+ </div>
57
+ <?php } ?>
58
+
59
+ <?php settings_fields('alm_acf_license'); ?>
60
+
61
+ <label class="description offscreen" for="alm_acf_license_key"><?php _e('Enter License Key', 'ajax-load-more'); ?></label>
62
+ <div class="license-key-field">
63
+ <input id="alm_acf_license_key" name="alm_acf_license_key" type="text" class="regular-text" value="<?php esc_attr_e( $alm_acf_license ); ?>" placeholder="<?php _e('Enter License Key', 'ajax-load-more'); ?>" />
64
+ <?php if( $alm_acf_status !== false && $alm_acf_status == 'valid' ) { ?>
65
+ <span class="status active">
66
+ <?php _e('Active', 'ajax-load-more'); ?>
67
+ </span>
68
+ <?php } else { ?>
69
+ <span class="status inactive">
70
+ <?php _e('Inactive', 'ajax-load-more'); ?>
71
+ </span>
72
+ <?php } ?>
73
+ </div>
74
+
75
+ <?php wp_nonce_field( 'alm_acf_license_nonce', 'alm_acf_license_nonce' ); ?>
76
+ <div class="license-btn-wrap"
77
+ data-name="<?php echo ALM_ACF_ITEM_NAME; ?>"
78
+ data-url="<?php echo ALM_STORE_URL; ?>"
79
+ data-option-status="alm_acf_license_status"
80
+ data-option-key="alm_acf_license_key"
81
+ data-upgrade-url="<?php echo $alm_acf_url; ?>">
82
+ <button type="button" class="activate license-btn <?php if($alm_acf_status === 'valid'){ echo 'hide'; } ?> button-primary" data-type="activate">
83
+ <?php _e('Activate License', 'ajax-load-more'); ?>
84
+ </button>
85
 
86
+ <button type="button" class="deactivate license-btn <?php if($alm_acf_status !== 'valid'){ echo 'hide'; } ?> button-secondary" data-type="deactivate">
87
+ <?php _e('Deactivate License', 'ajax-load-more'); ?>
88
+ </button>
89
+ </div>
90
 
91
+ </form>
92
+ </div>
93
+ <div class="loading"></div>
94
+ </div>
95
+ <?php
96
+ }
97
+ // End ACF
98
+ ?>
99
+
100
+
101
  <?php
102
  if (has_action('alm_cache_installed')){
103
  // CACHE
838
  </div>
839
 
840
  <div class="cnkt-sidebar">
841
+ <div class="cta">
842
  <h3><?php _e('About Licenses', 'ajax-load-more'); ?></h3>
843
  <div class="cta-inner">
844
  <ul>
846
  <li><?php _e('License keys are found in the purchase receipt email that was sent immediately after your successful purchase and in the <a target="_blank" href="https://connekthq.com/account/">Account</a> section on our website', 'ajax-load-more');?></li>
847
  <li><?php _e('If you cannot locate your key please open a support ticket by filling out the <a href="https://connekthq.com/contact/">form</a> on our website and reference the email address used when you completed the purchase.', 'ajax-load-more'); ?></li>
848
  </ul>
849
+ <p><a class="button button-primary button-large" target="_blank" href="https://connekthq.com/account/"><i class="fa fa-chevron-circle-right"></i> Sign Into Your Account</a></p>
850
+ </div>
851
  </div>
852
  <div class="cta">
853
  <h3><?php _e('Legacy Users', 'ajax-load-more'); ?></h3>
admin/views/repeater-templates.php CHANGED
@@ -1,3 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <div class="admin ajax-load-more" id="alm-repeaters">
2
  <div class="wrap">
3
  <div class="header-wrap">
@@ -6,7 +19,111 @@
6
  <em><?php _e('The library of editable templates for use within your theme', 'ajax-load-more'); ?></em>
7
  </h1>
8
  </div>
9
- <div class="cnkt-main form-table repeaters">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  <!-- Repeaters -->
11
  <div class="group">
12
 
@@ -55,12 +172,17 @@
55
  <h3 class="heading"><?php _e('Default Template', 'ajax-load-more'); ?></h3>
56
  <div class="expand-wrap">
57
  <div class="wrap repeater-wrap<?php if($local_template){ echo ' cm-readonly'; } ?>" data-name="default" data-type="default">
58
- <label class="template-title" for="template-default">
59
- <?php _e('Enter the HTML and PHP code for the default template', 'ajax-load-more'); ?>:
60
- </label>
61
-
62
- <?php
63
- do_action('alm_get_layouts'); // Layouts - Template Selection
 
 
 
 
 
64
  ?>
65
  <textarea rows="10" id="template-default" class="_alm_repeater"><?php echo $contents; ?></textarea>
66
  <script>
@@ -274,12 +396,15 @@
274
 
275
  </div>
276
  <!-- End Repeaters -->
 
 
277
 
278
  </div>
279
 
280
  <div class="cnkt-sidebar">
281
- <?php if (has_action('alm_unlimited_repeaters')){
282
  // Add TOC if users has Custom Repeaters
 
283
  ?>
284
  <div class="table-of-contents repeaters-toc">
285
  <div class="cta">
@@ -296,7 +421,12 @@
296
  </div>
297
  <a class="visit" href="https://connekthq.com/plugins/ajax-load-more/docs/repeater-templates/" target="_blank"><i class="fa fa-chevron-circle-right"></i> <?php _e('More About Templating', 'ajax-load-more'); ?></a>
298
  </div>
299
- <?php include_once( ALM_PATH . 'admin/includes/cta/writeable.php'); ?>
 
 
 
 
 
300
 
301
  <?php if (has_action('alm_unlimited_repeaters')){ ?>
302
  </div>
1
+ <?php
2
+ $theme_repeaters = false;
3
+ if (isset($_GET['theme-repeaters'])) {
4
+ $theme_repeaters = $_GET['theme-repeaters'];
5
+
6
+ if($theme_repeaters == 'true' && has_action('alm_get_theme_repeater')){
7
+ $theme_repeaters = true;
8
+ }else{
9
+ $theme_repeaters = false;
10
+ }
11
+ }
12
+ ?>
13
+
14
  <div class="admin ajax-load-more" id="alm-repeaters">
15
  <div class="wrap">
16
  <div class="header-wrap">
19
  <em><?php _e('The library of editable templates for use within your theme', 'ajax-load-more'); ?></em>
20
  </h1>
21
  </div>
22
+
23
+ <div class="cnkt-main form-table repeaters">
24
+
25
+ <?php if(has_action('alm_get_theme_repeater')){ ?>
26
+ <ul class="alm-toggle-switch">
27
+ <li><a href="?page=ajax-load-more-repeaters" class="<?php if(!$theme_repeaters){ echo 'active'; } ?>"><?php _e('Repeater Templates', 'ajax-load-more'); ?></a></li>
28
+ <li><a href="?page=ajax-load-more-repeaters&theme-repeaters=true" class="<?php if($theme_repeaters){ echo 'active'; } ?>"><?php _e('Theme Repeaters', 'ajax-load-more'); ?></a></li>
29
+ </ul>
30
+ <?php } ?>
31
+
32
+
33
+ <?php
34
+ // List Theme Repeaters
35
+
36
+ if($theme_repeaters){ ?>
37
+ <div class="group">
38
+
39
+ <?php
40
+ $options = get_option( 'alm_settings' );
41
+
42
+ if(!isset($options['_alm_theme_repeaters_dir']))
43
+ $options['_alm_theme_repeaters_dir'] = 'alm_templates';
44
+
45
+ // Get template location
46
+ if(is_child_theme()){
47
+ $dir = get_stylesheet_directory() . '/' . $options['_alm_theme_repeaters_dir'];
48
+ }else{
49
+ $dir = get_template_directory() . '/' . $options['_alm_theme_repeaters_dir'];
50
+ }
51
+
52
+ $count = 0;
53
+
54
+ foreach (glob($dir.'/*') as $file) {
55
+ $count++;
56
+ $file = realpath($file);
57
+ $link = substr($file, strlen($dir) + 1);
58
+
59
+ $file_extension = strtolower(substr(basename($file), strrpos(basename($file), '.') + 1));
60
+ $file_directory = get_option('stylesheet') .'/'. strtolower(substr(basename($dir), strrpos(basename($dir), '/')));
61
+
62
+ $id = preg_replace('/\\.[^.\\s]{3,4}$/', '', $link);
63
+
64
+ if($file_extension == 'php'){ // Only display .php files files ?>
65
+
66
+ <div class="row template" id="tr-<?php echo $id; ?>">
67
+ <h3 class="heading"><?php echo basename($file); ?></h3>
68
+ <div class="expand-wrap">
69
+ <div class="wrap repeater-wrap cm-readonly">
70
+ <?php
71
+ $template = fopen ($file, "r"); // Open file
72
+ $tr_contents = '';
73
+ if(filesize ($file) != 0){
74
+ $tr_contents = fread ($template, filesize ($file));
75
+ }
76
+ fclose ($template);
77
+ ?>
78
+ <textarea rows="10" id="template-tr-<?php echo $id; ?>" class="_alm_repeater"><?php echo $tr_contents; ?></textarea>
79
+ <script>
80
+ var editorDefault = CodeMirror.fromTextArea(document.getElementById("template-tr-<?php echo $id; ?>"), {
81
+ mode: "application/x-httpd-php",
82
+ lineNumbers: true,
83
+ lineWrapping: true,
84
+ indentUnit: 0,
85
+ matchBrackets: true,
86
+ readOnly: true,
87
+ viewportMargin: Infinity,
88
+ extraKeys: {"Ctrl-Space": "autocomplete"},
89
+ });
90
+ </script>
91
+ <p class="file-location" title="<?php echo $file; ?>"><?php _e('File Location', 'ajax-load-more'); ?>:<code><?php echo $file_directory; ?>/<?php echo basename($file); ?></code></p>
92
+ </div>
93
+ </div>
94
+ </div>
95
+ <?php
96
+ unset($template);
97
+ unset($file);
98
+ }
99
+ }
100
+
101
+ if($count > 1){?>
102
+ <span class="toggle-all">
103
+ <span class="inner-wrap">
104
+ <em class="collapse"><?php _e('Collapse All', 'ajax-load-more'); ?></em>
105
+ <em class="expand"><?php _e('Expand All', 'ajax-load-more'); ?></em>
106
+ </span>
107
+ </span>
108
+ <?php
109
+ }
110
+
111
+ if($count == 0){ ?>
112
+ <div style="padding: 20px;">
113
+ <h3><?php _e('Templates Not Found', 'ajax-load-more'); ?></h3>
114
+ <p>
115
+ <?php _e('Oh no - looks like you haven\'t added any Theme Repeater templates - you need to create and upload templates to your theme directory before you can access them in Ajax Load More', 'ajax-load-more'); ?>.
116
+ </p>
117
+ <p style="margin: 20px 0 0;">
118
+ <a href="https://connekthq.com/plugins/ajax-load-more/add-ons/theme-repeaters/" class="button button-primary button-large" target="_blank"><?php _e('Learn More About Theme Repeaters', 'ajax-load-more'); ?></a>
119
+ </p>
120
+ </div>
121
+ <?php }
122
+ ?>
123
+ </div>
124
+
125
+ <?php } else { ?>
126
+
127
  <!-- Repeaters -->
128
  <div class="group">
129
 
172
  <h3 class="heading"><?php _e('Default Template', 'ajax-load-more'); ?></h3>
173
  <div class="expand-wrap">
174
  <div class="wrap repeater-wrap<?php if($local_template){ echo ' cm-readonly'; } ?>" data-name="default" data-type="default">
175
+ <?php
176
+ if(!$local_template){
177
+
178
+ // Add Label
179
+ echo '<label class="template-title" for="template-default">';
180
+ _e('Enter the HTML and PHP code for the default template', 'ajax-load-more');
181
+ echo ':</label>';
182
+
183
+ // Layouts - Template Selection
184
+ do_action('alm_get_layouts');
185
+ }
186
  ?>
187
  <textarea rows="10" id="template-default" class="_alm_repeater"><?php echo $contents; ?></textarea>
188
  <script>
396
 
397
  </div>
398
  <!-- End Repeaters -->
399
+
400
+ <?php } ?>
401
 
402
  </div>
403
 
404
  <div class="cnkt-sidebar">
405
+ <?php
406
  // Add TOC if users has Custom Repeaters
407
+ if (has_action('alm_unlimited_repeaters') || $theme_repeaters){
408
  ?>
409
  <div class="table-of-contents repeaters-toc">
410
  <div class="cta">
421
  </div>
422
  <a class="visit" href="https://connekthq.com/plugins/ajax-load-more/docs/repeater-templates/" target="_blank"><i class="fa fa-chevron-circle-right"></i> <?php _e('More About Templating', 'ajax-load-more'); ?></a>
423
  </div>
424
+
425
+ <?php
426
+ if(!$theme_repeaters){
427
+ include_once( ALM_PATH . 'admin/includes/cta/writeable.php');
428
+ }
429
+ ?>
430
 
431
  <?php if (has_action('alm_unlimited_repeaters')){ ?>
432
  </div>
admin/views/settings.php CHANGED
@@ -10,27 +10,32 @@
10
  <div class="cnkt-main">
11
 
12
  <?php
13
- $alm_dismiss_sharing = get_transient( 'alm_dismiss_sharing');
14
- if(!isset($alm_dismiss_sharing) || empty($alm_dismiss_sharing)){
15
  // If transient has not been set - display this notice.
16
  ?>
17
  <div class="group share-alm">
18
- <div class="dotted">
19
- <!--
20
- <h2 style="padding: 0; margin: 0 0 10px;"><?php _e('Thanks for using Ajax Load More', 'ajax-load-more'); ?>...</h2>
21
- <p style="padding: 0 0 15px; margin: 0 0 20px; border-bottom: 1px dashed #ccc; font-size: 14px;">
22
- <?php _e('Please consider helping <a href="https://twitter.com/KaptonKaos" target="_blank">me</a> spread the word by sharing with your networks and/or leaving a review on <a href="https://wordpress.org/support/view/plugin-reviews/ajax-load-more" target="_blank">wordpress.org</a> forums.', 'ajax-load-more'); ?></p>
23
- -->
24
- <div class="one_half sharing">
25
- <?php include_once( ALM_PATH . 'admin/includes/cta/sharing.php'); ?>
26
- </div>
27
 
28
- <div class="one_half mailing">
29
- <?php include_once( ALM_PATH . 'admin/includes/cta/reviews.php'); ?>
30
- </div>
31
- </div>
 
 
 
 
 
32
  <div class="clear"></div>
 
33
  <a href="javascript: void(0);" class="dismiss" id="alm_dismiss_sharing" title="<?php _e('Don\'t show me this again!', 'ajax-load-more');?>">&times;</a>
 
34
  </div>
35
  <?php } ?>
36
 
@@ -40,7 +45,7 @@
40
  if(has_action('alm_cache_settings') || has_action('alm_layouts_installed') || has_action('alm_prev_post_settings') || has_action('alm_paging_settings') || has_action('alm_seo_settings') || has_action('alm_theme_repeaters_settings')) {
41
  ?>
42
  <div class="admin-select">
43
- <label fo"alm-settings-nav" class="offscreen">
44
  <?php _e('Jump to Setting', 'ajax-load-more'); ?>
45
  </label>
46
  <select id="alm-settings-nav">
10
  <div class="cnkt-main">
11
 
12
  <?php
13
+ $alm_share_notification = get_transient( 'alm_dismiss_sharing');
14
+ if(!isset($alm_share_notification) || empty($alm_share_notification)){
15
  // If transient has not been set - display this notice.
16
  ?>
17
  <div class="group share-alm">
18
+ <div class="dotted">
19
+ <h2 style="padding: 0; margin: 0 0 20px;">
20
+ 👋 &nbsp;<?php _e('Thanks for installing Ajax Load More 3.0!', 'ajax-load-more'); ?>
21
+ </h2>
22
+ <p>Version 3 is a big step forward for Ajax Load More and I really hope you like the changes and new features - be sure to check out the new <a href="admin.php?page=ajax-load-more-extensions">Extensions</a> section for 1-click installs of all currently available extensions for Ajax Load More.</p>
23
+ </div>
24
+ <p>Please consider helping <a href="https://twitter.com/KaptonKaos" target="_blank">me</a> widen the reach of Ajax Load More by sharing with your networks.</p>
 
 
25
 
26
+ <ul class="share">
27
+ <li class="twitter">
28
+ <a target="blank" title="Share on Twitter" href="//twitter.com/home?status=I'm infinite scrolling with Ajax Load More for #WordPress - https://connekthq.com/plugins/ajax-load-more/" class="share-twitter"><i class="fa fa-twitter"></i> Twitter</a>
29
+ </li>
30
+ <li class="facebook">
31
+ <a target="blank" title="Share on Facebook" href="//facebook.com/share.php?u=https://connekthq.com/plugins/ajax-load-more/" class="share-facebook"><i class="fa fa-facebook"></i> Facebook</a>
32
+ </li>
33
+ </ul>
34
+
35
  <div class="clear"></div>
36
+
37
  <a href="javascript: void(0);" class="dismiss" id="alm_dismiss_sharing" title="<?php _e('Don\'t show me this again!', 'ajax-load-more');?>">&times;</a>
38
+
39
  </div>
40
  <?php } ?>
41
 
45
  if(has_action('alm_cache_settings') || has_action('alm_layouts_installed') || has_action('alm_prev_post_settings') || has_action('alm_paging_settings') || has_action('alm_seo_settings') || has_action('alm_theme_repeaters_settings')) {
46
  ?>
47
  <div class="admin-select">
48
+ <label for="alm-settings-nav" class="offscreen">
49
  <?php _e('Jump to Setting', 'ajax-load-more'); ?>
50
  </label>
51
  <select id="alm-settings-nav">
ajax-load-more.php CHANGED
@@ -7,13 +7,13 @@ Text Domain: ajax-load-more
7
  Author: Darren Cooney
8
  Twitter: @KaptonKaos
9
  Author URI: http://connekthq.com
10
- Version: 2.14.1
11
  License: GPL
12
  Copyright: Darren Cooney & Connekt Media
13
  */
14
 
15
- define('ALM_VERSION', '2.14.1');
16
- define('ALM_RELEASE', 'March 24, 2017');
17
  define('ALM_STORE_URL', 'https://connekthq.com');
18
 
19
 
@@ -170,7 +170,6 @@ if( !class_exists('AjaxLoadMore') ):
170
  */
171
 
172
  public function alm_includes(){
173
-
174
  include_once( ALM_PATH . 'core/functions.php'); // Functions
175
  include_once( ALM_PATH . 'core/classes/class.alm-shortcode.php'); // Shortcode
176
  include_once( ALM_PATH . 'core/classes/class.alm-enqueue.php'); // Enqueue
@@ -179,8 +178,8 @@ if( !class_exists('AjaxLoadMore') ):
179
  include_once('admin/editor/editor.php');
180
  include_once('admin/admin.php');
181
  include_once('admin/admin-functions.php');
 
182
  }
183
-
184
  }
185
 
186
 
@@ -252,7 +251,7 @@ if( !class_exists('AjaxLoadMore') ):
252
  *
253
  * ALM Core Filter
254
  *
255
- * @return bool
256
  */
257
  $dependencies = apply_filters( 'alm_js_dependencies', array('jquery') );
258
 
@@ -404,6 +403,16 @@ if( !class_exists('AjaxLoadMore') ):
404
  $page = (isset($_GET['page'])) ? $_GET['page'] : 0;
405
 
406
 
 
 
 
 
 
 
 
 
 
 
407
  // Preload Add-on
408
  $preloaded = (isset($_GET['preloaded'])) ? $_GET['preloaded'] : 'false';
409
  $preloaded_amount = (isset($_GET['preloaded_amount'])) ? $_GET['preloaded_amount'] : '5';
@@ -542,35 +551,13 @@ if( !class_exists('AjaxLoadMore') ):
542
  $meta_compare = explode(":", $meta_compare); // convert to array
543
  $meta_type = explode(":", $meta_type); // convert to array
544
 
545
- if($meta_query_total == 1){
546
- $args['meta_query'] = array(
547
- alm_get_meta_query($meta_keys[0], $meta_value[0], $meta_compare[0], $meta_type[0]),
548
- );
549
- }
550
- if($meta_query_total == 2){
551
- $args['meta_query'] = array(
552
- 'relation' => $meta_relation,
553
- alm_get_meta_query($meta_keys[0], $meta_value[0], $meta_compare[0], $meta_type[0]),
554
- alm_get_meta_query($meta_keys[1], $meta_value[1], $meta_compare[1], $meta_type[1]),
555
- );
556
- }
557
- if($meta_query_total == 3){
558
- $args['meta_query'] = array(
559
- 'relation' => $meta_relation,
560
- alm_get_meta_query($meta_keys[0], $meta_value[0], $meta_compare[0], $meta_type[0]),
561
- alm_get_meta_query($meta_keys[1], $meta_value[1], $meta_compare[1], $meta_type[1]),
562
- alm_get_meta_query($meta_keys[2], $meta_value[2], $meta_compare[2], $meta_type[2]),
563
- );
564
- }
565
- if($meta_query_total == 4){
566
- $args['meta_query'] = array(
567
- 'relation' => $meta_relation,
568
- alm_get_meta_query($meta_keys[0], $meta_value[0], $meta_compare[0], $meta_type[0]),
569
- alm_get_meta_query($meta_keys[1], $meta_value[1], $meta_compare[1], $meta_type[1]),
570
- alm_get_meta_query($meta_keys[2], $meta_value[2], $meta_compare[2], $meta_type[2]),
571
- alm_get_meta_query($meta_keys[3], $meta_value[3], $meta_compare[3], $meta_type[3]),
572
- );
573
- }
574
 
575
  }
576
 
@@ -587,13 +574,13 @@ if( !class_exists('AjaxLoadMore') ):
587
  $args['author'] = $author;
588
  }
589
 
590
- // Include posts
591
  if(!empty($post__in)){
592
  $post__in = explode(",",$post__in);
593
  $args['post__in'] = $post__in;
594
  }
595
 
596
- // Exclude posts
597
  if(!empty($post__not_in)){
598
  $post__not_in = explode(",",$post__not_in);
599
  $args['post__not_in'] = $post__not_in;
@@ -651,6 +638,16 @@ if( !class_exists('AjaxLoadMore') ):
651
  }
652
  }
653
 
 
 
 
 
 
 
 
 
 
 
654
 
655
  // Set current page number for determining item number
656
  if($page == 0){
@@ -687,7 +684,7 @@ if( !class_exists('AjaxLoadMore') ):
687
 
688
 
689
  /*
690
- * alm_query_args_[id]
691
  *
692
  * ALM Core Filter Hook
693
  *
7
  Author: Darren Cooney
8
  Twitter: @KaptonKaos
9
  Author URI: http://connekthq.com
10
+ Version: 3.0
11
  License: GPL
12
  Copyright: Darren Cooney & Connekt Media
13
  */
14
 
15
+ define('ALM_VERSION', '3.0');
16
+ define('ALM_RELEASE', 'May 4, 2017');
17
  define('ALM_STORE_URL', 'https://connekthq.com');
18
 
19
 
170
  */
171
 
172
  public function alm_includes(){
 
173
  include_once( ALM_PATH . 'core/functions.php'); // Functions
174
  include_once( ALM_PATH . 'core/classes/class.alm-shortcode.php'); // Shortcode
175
  include_once( ALM_PATH . 'core/classes/class.alm-enqueue.php'); // Enqueue
178
  include_once('admin/editor/editor.php');
179
  include_once('admin/admin.php');
180
  include_once('admin/admin-functions.php');
181
+ include_once('vendor/connekt-plugin-installer/class-connekt-plugin-installer.php');
182
  }
 
183
  }
184
 
185
 
251
  *
252
  * ALM Core Filter
253
  *
254
+ * @return Boolean
255
  */
256
  $dependencies = apply_filters( 'alm_js_dependencies', array('jquery') );
257
 
403
  $page = (isset($_GET['page'])) ? $_GET['page'] : 0;
404
 
405
 
406
+ // Advanced Custom Fields
407
+ $acfData = (isset($_GET['acf'])) ? $_GET['acf'] : false;
408
+ if($acfData){
409
+ $acf = (isset($acfData['acf'])) ? $acfData['acf'] : false; // true / false
410
+ $acf_post_id = (isset($acfData['post_id'])) ? $acfData['post_id'] : ''; // Post ID
411
+ $acf_field_type = (isset($acfData['field_type'])) ? $acfData['field_type'] : ''; // ACF Field Type
412
+ $acf_field_name = (isset($acfData['field_name'])) ? $acfData['field_name'] : ''; // ACF Field Type
413
+ }
414
+
415
+
416
  // Preload Add-on
417
  $preloaded = (isset($_GET['preloaded'])) ? $_GET['preloaded'] : 'false';
418
  $preloaded_amount = (isset($_GET['preloaded_amount'])) ? $_GET['preloaded_amount'] : '5';
551
  $meta_compare = explode(":", $meta_compare); // convert to array
552
  $meta_type = explode(":", $meta_type); // convert to array
553
 
554
+ // Loop Meta Query
555
+ $args['meta_query'] = array(
556
+ 'relation' => $meta_relation
557
+ );
558
+ for($mq_i = 0; $mq_i < $meta_query_total; $mq_i++){
559
+ $args['meta_query'][] = alm_get_meta_query($meta_keys[$mq_i], $meta_value[$mq_i], $meta_compare[$mq_i], $meta_type[$mq_i]);
560
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
561
 
562
  }
563
 
574
  $args['author'] = $author;
575
  }
576
 
577
+ // Include Posts
578
  if(!empty($post__in)){
579
  $post__in = explode(",",$post__in);
580
  $args['post__in'] = $post__in;
581
  }
582
 
583
+ // Exclude Posts
584
  if(!empty($post__not_in)){
585
  $post__not_in = explode(",",$post__not_in);
586
  $args['post__not_in'] = $post__not_in;
638
  }
639
  }
640
 
641
+ // Advanced Custom Fields
642
+ if(!empty($acf) && !empty($acf_post_id) && !empty($acf_field_type) && !empty($acf_field_name)){
643
+ if($acf_field_type === 'relationship'){ // Relationship Field
644
+ $acf_post_ids = get_field($acf_field_name, $acf_post_id); // Get field value from ACF
645
+ if($acf_post_ids){
646
+ $args['post__in'] = $acf_post_ids;
647
+ }
648
+ }
649
+ }
650
+
651
 
652
  // Set current page number for determining item number
653
  if($page == 0){
684
 
685
 
686
  /*
687
+ * alm_query_args_{id}
688
  *
689
  * ALM Core Filter Hook
690
  *
core/classes/class.alm-shortcode.php CHANGED
@@ -23,8 +23,9 @@ if( !class_exists('ALM_SHORTCODE') ):
23
  *
24
  * Parse & Render ALM Shortcode.
25
  *
26
- * @since 2.10.1
27
- * @return $ajaxloadmore
 
28
  */
29
 
30
  public static function alm_render_shortcode($atts){
@@ -37,12 +38,20 @@ if( !class_exists('ALM_SHORTCODE') ):
37
  // Define page slug
38
  $slug = alm_get_page_slug($post);
39
 
 
 
 
 
40
  // Custom CSS for Layouts - Only run this once.
41
  if(has_action('alm_layouts_custom_css')){
42
  do_action('alm_layouts_custom_css', self::$counter);
43
  }
44
 
45
  extract(shortcode_atts(array(
 
 
 
 
46
  'restapi' => false,
47
  'restapi_base' => '/wp-json',
48
  'restapi_namespace' => 'ajaxloadmore',
@@ -128,7 +137,7 @@ if( !class_exists('ALM_SHORTCODE') ):
128
  'id' => '',
129
  'primary' => false
130
  ), $atts));
131
-
132
 
133
  // Enqueue core Ajax Load More JS
134
  wp_enqueue_script( 'ajax-load-more' );
@@ -160,7 +169,7 @@ if( !class_exists('ALM_SHORTCODE') ):
160
 
161
 
162
  if($previous_post === 'true'){
163
- $previous_post === true;
164
  }
165
 
166
  if($seo === "true" || $previous_post){
@@ -279,7 +288,7 @@ if( !class_exists('ALM_SHORTCODE') ):
279
  $is_search = 'data-search="true"'; // set attr for use with SEO
280
  }
281
 
282
- $ajaxloadmore .= '<div id="'. $div_id .'" class="ajax-load-more-wrap'. $btn_color .''. $paging_color .''. $alm_layouts .'" '.$the_id.' data-alm-id="" data-canonical-url="'. $canonicalURL .'" data-slug="'. $slug .'" '. $is_search .'>';
283
 
284
 
285
  // Previous Post Add-on
@@ -290,6 +299,7 @@ if( !class_exists('ALM_SHORTCODE') ):
290
  $paging = false;
291
  $cache = false;
292
  $comments = false;
 
293
  }
294
 
295
 
@@ -298,8 +308,8 @@ if( !class_exists('ALM_SHORTCODE') ):
298
  if($comments){
299
  $previous_post = false;
300
  $seo = false;
301
- //$paging = false;
302
  $cache = false;
 
303
  $posts_per_page = $comments_per_page;
304
  }
305
 
@@ -309,8 +319,9 @@ if( !class_exists('ALM_SHORTCODE') ):
309
  if($nextpage){
310
  $previous_post = false;
311
  $seo = false;
312
- $cache = false;
313
  $comments = false;
 
314
  $pause = 'true';
315
  }
316
 
@@ -350,6 +361,11 @@ if( !class_exists('ALM_SHORTCODE') ):
350
  }
351
 
352
  $preloaded_arr = array( // Create preload data array
 
 
 
 
 
353
  'comments' => $comments,
354
  'comments_per_page' => $comments_per_page,
355
  'comments_type' => $comments_type,
@@ -393,7 +409,61 @@ if( !class_exists('ALM_SHORTCODE') ):
393
 
394
  $type = alm_get_repeater_type($repeater);
395
 
396
- if(!$comments){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
397
 
398
 
399
  /*
@@ -499,22 +569,6 @@ if( !class_exists('ALM_SHORTCODE') ):
499
  }
500
  }
501
 
502
- // Preloaded Comments
503
- else {
504
-
505
- if(has_action('alm_comments_installed') && $comments){
506
- $preloaded_comments = apply_filters('alm_comments_preloaded', $preloaded_arr); //[located in comments add-on]
507
- $preloaded_output .= '<'.$comments_style.' class="alm-listing alm-preloaded commentlist alm-comments-preloaded '. $classname .' '. $css_classes .'">';
508
- if($seo === "true") $preloaded_output .= '<div class="alm-reveal alm-seo" data-page="1" data-url="'.$canonicalURL.'">';
509
-
510
- $preloaded_output .= $preloaded_comments;
511
-
512
- if($seo === "true") $preloaded_output .= '</div>';
513
- $preloaded_output .= '</'.$container_element.'>';
514
- }
515
-
516
- }
517
-
518
  $ajaxloadmore .= $preloaded_output; // Add $preloaded_output data to $ajaxloadmore
519
  }
520
  // End Preload Posts
@@ -554,6 +608,19 @@ if( !class_exists('ALM_SHORTCODE') ):
554
  $ajaxloadmore .= $cta_return;
555
  }
556
 
 
 
 
 
 
 
 
 
 
 
 
 
 
557
  // Comments Add-on
558
  if(has_action('alm_comments_installed') && $comments === 'true'){
559
  $comments_return = apply_filters(
@@ -690,15 +757,17 @@ if( !class_exists('ALM_SHORTCODE') ):
690
  $ajaxloadmore .= ' data-button-class="'.$button_classname.'"';
691
  $ajaxloadmore .= ' data-destroy-after="'.$destroy_after.'"';
692
  $ajaxloadmore .= ' data-transition="'.$transition.'"';
693
- if($transition_speed !== '250')
694
  $ajaxloadmore .= ' data-transition-speed="'.$transition_speed.'"';
695
- if($transition_container === 'false')
 
696
  $ajaxloadmore .= ' data-transition-container="'.$transition_container.'"';
 
697
  $ajaxloadmore .= ' data-images-loaded="'.$images_loaded.'"';
698
 
699
- if($primary !== false)
700
  $ajaxloadmore .= ' data-primary="true"';
701
-
702
  $ajaxloadmore .= '>';
703
 
704
 
23
  *
24
  * Parse & Render ALM Shortcode.
25
  *
26
+ * @since 2.10.1
27
+ * @param $atts Shortcode attributes
28
+ * @return $ajaxloadmore
29
  */
30
 
31
  public static function alm_render_shortcode($atts){
38
  // Define page slug
39
  $slug = alm_get_page_slug($post);
40
 
41
+ // Define Post ID
42
+ $post_id = $post->ID;
43
+
44
+
45
  // Custom CSS for Layouts - Only run this once.
46
  if(has_action('alm_layouts_custom_css')){
47
  do_action('alm_layouts_custom_css', self::$counter);
48
  }
49
 
50
  extract(shortcode_atts(array(
51
+ 'acf' => false,
52
+ 'acf_post_id' => '',
53
+ 'acf_field_type' => 'repeater',
54
+ 'acf_field_name' => '',
55
  'restapi' => false,
56
  'restapi_base' => '/wp-json',
57
  'restapi_namespace' => 'ajaxloadmore',
137
  'id' => '',
138
  'primary' => false
139
  ), $atts));
140
+
141
 
142
  // Enqueue core Ajax Load More JS
143
  wp_enqueue_script( 'ajax-load-more' );
169
 
170
 
171
  if($previous_post === 'true'){
172
+ $previous_post = true;
173
  }
174
 
175
  if($seo === "true" || $previous_post){
288
  $is_search = 'data-search="true"'; // set attr for use with SEO
289
  }
290
 
291
+ $ajaxloadmore .= '<div id="'. $div_id .'" class="ajax-load-more-wrap'. $btn_color .''. $paging_color .''. $alm_layouts .'" '.$the_id.' data-alm-id="" data-canonical-url="'. $canonicalURL .'" data-slug="'. $slug .'" data-post-id="'. $post_id .'" '. $is_search .'>';
292
 
293
 
294
  // Previous Post Add-on
299
  $paging = false;
300
  $cache = false;
301
  $comments = false;
302
+ $acf = false;
303
  }
304
 
305
 
308
  if($comments){
309
  $previous_post = false;
310
  $seo = false;
 
311
  $cache = false;
312
+ $acf = false;
313
  $posts_per_page = $comments_per_page;
314
  }
315
 
319
  if($nextpage){
320
  $previous_post = false;
321
  $seo = false;
322
+ $preloaded = false;
323
  $comments = false;
324
+ $acf = false;
325
  $pause = 'true';
326
  }
327
 
361
  }
362
 
363
  $preloaded_arr = array( // Create preload data array
364
+ 'post_id' => $post_id,
365
+ 'acf' => $acf,
366
+ 'acf_post_id' => $acf_post_id,
367
+ 'acf_field_type' => $acf_field_type,
368
+ 'acf_field_name' => $acf_field_name,
369
  'comments' => $comments,
370
  'comments_per_page' => $comments_per_page,
371
  'comments_type' => $comments_type,
409
 
410
  $type = alm_get_repeater_type($repeater);
411
 
412
+ if($comments){ // Comments
413
+
414
+ if(has_action('alm_comments_installed') && $comments){
415
+
416
+ /*
417
+ * alm_comments_preloaded
418
+ *
419
+ * Preloaded Comments Filter
420
+ *
421
+ * @return $preloaded_comments;
422
+ */
423
+ $preloaded_comments = apply_filters('alm_comments_preloaded', $preloaded_arr); // located in comments add-on
424
+ $preloaded_output .= '<'.$comments_style.' class="alm-listing alm-preloaded commentlist alm-comments-preloaded '. $classname .' '. $css_classes .'">';
425
+ if($seo === "true") $preloaded_output .= '<div class="alm-reveal alm-seo" data-page="1" data-url="'.$canonicalURL.'">';
426
+
427
+ $preloaded_output .= $preloaded_comments;
428
+
429
+ if($seo === "true"){
430
+ $preloaded_output .= '</div>';
431
+ }
432
+
433
+ $preloaded_output .= '</'.$container_element.'>';
434
+ }
435
+
436
+ }
437
+
438
+ elseif($acf && $acf_field_type === 'repeater'){ // Advanced Custom Fields
439
+
440
+ if(has_action('alm_acf_installed') && $acf){
441
+
442
+ /* alm_acf_preloaded
443
+ *
444
+ * Preloaded ACF Filter
445
+ *
446
+ * @return $preloaded_acf;
447
+ */
448
+ $preloaded_acf = apply_filters('alm_acf_preloaded', $preloaded_arr, $repeater, $theme_repeater); //located in ACF add-on
449
+
450
+ $preloaded_output .= '<'.$container_element.' class="alm-listing alm-preloaded alm-acf-preloaded '. $classname .' '. $css_classes .'" data-total-posts="'. apply_filters('alm_acf_total_rows', $preloaded_arr) .'">';
451
+ if($seo === "true"){
452
+ $preloaded_output .= '<div class="alm-reveal alm-seo" data-page="1" data-url="'.$canonicalURL.'">';
453
+ }
454
+
455
+ $preloaded_output .= $preloaded_acf;
456
+
457
+ if($seo === "true"){
458
+ $preloaded_output .= '</div>';
459
+ }
460
+
461
+ $preloaded_output .= '</'.$container_element.'>';
462
+ }
463
+
464
+ }
465
+
466
+ else { // Standard
467
 
468
 
469
  /*
569
  }
570
  }
571
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
572
  $ajaxloadmore .= $preloaded_output; // Add $preloaded_output data to $ajaxloadmore
573
  }
574
  // End Preload Posts
608
  $ajaxloadmore .= $cta_return;
609
  }
610
 
611
+ // Advanced Custom Fields Add-on
612
+ if(has_action('alm_acf_installed') && $acf === 'true'){
613
+ $acf_return = apply_filters(
614
+ 'alm_acf_shortcode',
615
+ $acf,
616
+ $acf_field_type,
617
+ $acf_field_name,
618
+ $acf_post_id,
619
+ $post_id
620
+ );
621
+ $ajaxloadmore .= $acf_return;
622
+ }
623
+
624
  // Comments Add-on
625
  if(has_action('alm_comments_installed') && $comments === 'true'){
626
  $comments_return = apply_filters(
757
  $ajaxloadmore .= ' data-button-class="'.$button_classname.'"';
758
  $ajaxloadmore .= ' data-destroy-after="'.$destroy_after.'"';
759
  $ajaxloadmore .= ' data-transition="'.$transition.'"';
760
+ if($transition_speed !== '250'){
761
  $ajaxloadmore .= ' data-transition-speed="'.$transition_speed.'"';
762
+ }
763
+ if($transition_container === 'false'){
764
  $ajaxloadmore .= ' data-transition-container="'.$transition_container.'"';
765
+ }
766
  $ajaxloadmore .= ' data-images-loaded="'.$images_loaded.'"';
767
 
768
+ if($primary !== false){
769
  $ajaxloadmore .= ' data-primary="true"';
770
+ }
771
  $ajaxloadmore .= '>';
772
 
773
 
core/css/ajax-load-more.css CHANGED
@@ -2,7 +2,7 @@
2
  * Ajax Load More
3
  * http://wordpress.org/plugins/ajax-load-more/
4
  *
5
- * Copyright 2016 Connekt Media - https://connekthq.com
6
  * Free to use under the GPLv2 license.
7
  * http://www.gnu.org/licenses/gpl-2.0.html
8
  *
@@ -11,12 +11,11 @@
11
  */
12
 
13
  button.alm-load-more-btn{
14
- font-family: Helvetica, Arial, sans-serif;
15
- font-size:16px;
16
  font-weight: 600;
17
  width:auto;
18
  height: 42px;
19
- line-height: 44px;
20
  background: #ed7070;
21
  color:#fff;
22
  border: none;
@@ -99,10 +98,10 @@ button.alm-load-more-btn{
99
  }
100
 
101
  .alm-btn-wrap{
 
102
  text-align: center;
103
- padding: 10px 10px 30px;
104
  overflow: hidden;
105
- display: block;
106
  }
107
 
108
  /* Blue */
@@ -169,6 +168,15 @@ button.alm-load-more-btn{
169
  .ajax-load-more-wrap.infinite button.alm-load-more-btn {
170
  width: 100%;
171
  background-color: transparent !important;
 
 
 
 
 
 
 
 
 
172
  -webkit-box-shadow: none !important;
173
  -moz-box-shadow: none !important;
174
  -o-box-shadow: none !important;
@@ -181,31 +189,16 @@ button.alm-load-more-btn{
181
  }
182
  .ajax-load-more-wrap.infinite button.alm-load-more-btn:before {
183
  display: none !important;
184
- }
185
- .ajax-load-more-wrap.infinite button.alm-load-more-btn.done {
186
- opacity: 0;
187
- filter: alpha(opacity=0);
188
- }
189
  .ajax-load-more-wrap.infinite button.alm-load-more-btn:active{
190
  -webkit-box-shadow: none;
191
  -moz-box-shadow: none;
192
  box-shadow: none;
193
  }
194
-
195
- .ajax-load-more-wrap.infinite button.alm-load-more-btn {
196
- background-color: transparent;
197
- background-position: center center;
198
- background-repeat: no-repeat;
199
- background-image: url("../../core/img/spinner.gif");
200
- border: none !important;
201
  opacity: 0;
202
  filter: alpha(opacity=0);
203
- }
204
- .ajax-load-more-wrap.infinite button.alm-load-more-btn {
205
- -webkit-transition: opacity 0.25s ease;
206
- -moz-transition: opacity 0.25s ease;
207
- transition: opacity 0.25s ease;
208
- }
209
  .ajax-load-more-wrap.infinite button.alm-load-more-btn.loading {
210
  opacity: 1;
211
  filter: alpha(opacity=100);
@@ -236,29 +229,29 @@ button.alm-load-more-btn{
236
  margin: 0;
237
  padding: 0;
238
  }
239
- .alm-listing li{
240
- background: none;
241
- margin: 0 0 30px;
242
- padding: 0 0 0 170px;
243
- overflow: hidden;
244
- position: relative;
245
- list-style: none;
246
- }
247
- .alm-listing li.no-img{
248
- padding: 0;
249
- }
250
- .alm-listing li a{}
251
- .alm-listing li p{
252
- margin: 0;
253
- }
254
- .alm-listing li h3{
255
- margin: 0 0 10px;
256
- }
257
- .alm-listing li img{
258
- position: absolute;
259
- left: 0;
260
- top: 0;
261
- -webkit-border-radius:3px;
262
- -moz-border-radius:3px;
263
- border-radius:3px;
264
- }
2
  * Ajax Load More
3
  * http://wordpress.org/plugins/ajax-load-more/
4
  *
5
+ * Copyright 2015-2017 Connekt Media - https://connekthq.com
6
  * Free to use under the GPLv2 license.
7
  * http://www.gnu.org/licenses/gpl-2.0.html
8
  *
11
  */
12
 
13
  button.alm-load-more-btn{
14
+ font-size:15px;
 
15
  font-weight: 600;
16
  width:auto;
17
  height: 42px;
18
+ line-height: 42px;
19
  background: #ed7070;
20
  color:#fff;
21
  border: none;
98
  }
99
 
100
  .alm-btn-wrap{
101
+ display: block;
102
  text-align: center;
103
+ padding: 10px 0 30px;
104
  overflow: hidden;
 
105
  }
106
 
107
  /* Blue */
168
  .ajax-load-more-wrap.infinite button.alm-load-more-btn {
169
  width: 100%;
170
  background-color: transparent !important;
171
+ background-position: center center;
172
+ background-repeat: no-repeat;
173
+ background-image: url("../../core/img/spinner.gif");
174
+ border: none !important;
175
+ opacity: 0;
176
+ filter: alpha(opacity=0);
177
+ -webkit-transition: opacity 0.25s ease;
178
+ -moz-transition: opacity 0.25s ease;
179
+ transition: opacity 0.25s ease;
180
  -webkit-box-shadow: none !important;
181
  -moz-box-shadow: none !important;
182
  -o-box-shadow: none !important;
189
  }
190
  .ajax-load-more-wrap.infinite button.alm-load-more-btn:before {
191
  display: none !important;
192
+ }
 
 
 
 
193
  .ajax-load-more-wrap.infinite button.alm-load-more-btn:active{
194
  -webkit-box-shadow: none;
195
  -moz-box-shadow: none;
196
  box-shadow: none;
197
  }
198
+ .ajax-load-more-wrap.infinite button.alm-load-more-btn.done {
 
 
 
 
 
 
199
  opacity: 0;
200
  filter: alpha(opacity=0);
201
+ }
 
 
 
 
 
202
  .ajax-load-more-wrap.infinite button.alm-load-more-btn.loading {
203
  opacity: 1;
204
  filter: alpha(opacity=100);
229
  margin: 0;
230
  padding: 0;
231
  }
232
+ .alm-listing li{
233
+ background: none;
234
+ margin: 0 0 30px;
235
+ padding: 0 0 0 170px;
236
+ overflow: hidden;
237
+ position: relative;
238
+ list-style: none;
239
+ }
240
+ .alm-listing li.no-img{
241
+ padding: 0;
242
+ }
243
+ .alm-listing li a{}
244
+ .alm-listing li p{
245
+ margin: 0;
246
+ }
247
+ .alm-listing li h3{
248
+ margin: 0 0 10px;
249
+ }
250
+ .alm-listing li img{
251
+ position: absolute;
252
+ left: 0;
253
+ top: 0;
254
+ -webkit-border-radius: 2px;
255
+ -moz-border-radius: 2px;
256
+ border-radius: 2px;
257
+ }
core/css/ajax-load-more.min.css CHANGED
@@ -1 +1 @@
1
- button.alm-load-more-btn{font-family:Helvetica, Arial, sans-serif;font-size:16px;font-weight:600;width:auto;height:42px;line-height:44px;background:#ed7070;color:#fff;border:none;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;margin:0 0 4px;padding:0 20px;display:inline-block;position:relative;-webkit-transition:padding 0.25s ease-in-out, width 0.25s ease-in-out;-moz-transition:padding 0.25s ease-in-out, width 0.25s ease-in-out;transition:padding 0.25s ease-in-out, width 0.25s ease-in-out;text-align:center;text-decoration:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:-moz-none;-ms-user-select:none;user-select:none;cursor:pointer}button.alm-load-more-btn:hover{background-color:#e06464;color:#fff;text-decoration:none}button.alm-load-more-btn:active{-webkit-box-shadow:inset 0 2px 1px rgba(0, 0, 0, 0.1);-moz-box-shadow:inset 0 2px 1px rgba(0, 0, 0, 0.1);box-shadow:inset 0 2px 1px rgba(0, 0, 0, 0.1);text-decoration:none}button.alm-load-more-btn.loading{padding-left:44px}button.alm-load-more-btn.done{cursor:default;opacity:0.2;filter:alpha(opacity=20);background-color:#ed7070;-webkit-box-shadow:none !important;-moz-box-shadow:none !important;box-shadow:none !important}button.alm-load-more-btn:before,button.alm-load-more-btn.done:before{background:none;width:0}button.alm-load-more-btn.loading:before{background:#fff url("../../core/img/ajax-loader.gif") no-repeat center center;width:30px;height:30px;margin:6px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:2px;display:inline-block;z-index:0;content:'';position:absolute;left:0;top:0;overflow:hidden;-webkit-transition:width 0.5s ease-in-out;-moz-transition:width 0.5s ease-in-out;transition:width 0.5s ease-in-out}.alm-btn-wrap{text-align:center;padding:10px 10px 30px;overflow:hidden;display:block}.ajax-load-more-wrap.blue button.alm-load-more-btn{background-color:#0081bf}.ajax-load-more-wrap.blue button.alm-load-more-btn:hover,.ajax-load-more-wrap.blue button.alm-load-more-btn.done{background-color:#0073aa}.ajax-load-more-wrap.green button.alm-load-more-btn{background-color:#6fca68}.ajax-load-more-wrap.green button.alm-load-more-btn:hover,.ajax-load-more-wrap.green button.alm-load-more-btn.done{background-color:#64b95e}.ajax-load-more-wrap.red button.alm-load-more-btn{background-color:#ca4b4b}.ajax-load-more-wrap.red button.alm-load-more-btn:hover,.ajax-load-more-wrap.red button.alm-load-more-btn.done{background-color:#b13b3b}.ajax-load-more-wrap.purple button.alm-load-more-btn{background-color:#a86bb9}.ajax-load-more-wrap.purple button.alm-load-more-btn:hover,.ajax-load-more-wrap.purple button.alm-load-more-btn.done{background-color:#9963a8}.ajax-load-more-wrap.grey button.alm-load-more-btn{background-color:#888}.ajax-load-more-wrap.grey button.alm-load-more-btn:hover,.ajax-load-more-wrap.grey button.alm-load-more-btn.done{background-color:#777}.ajax-load-more-wrap.white button.alm-load-more-btn{background-color:#fff;color:#666;border:1px solid #efefef}.ajax-load-more-wrap.white button.alm-load-more-btn:hover,.ajax-load-more-wrap.white button.alm-load-more-btn.done{background-color:#efefef;color:#333}.ajax-load-more-wrap.white button.alm-load-more-btn.done{border-color:#fff}.ajax-load-more-wrap.infinite button.alm-load-more-btn{width:100%;background-color:transparent !important;-webkit-box-shadow:none !important;-moz-box-shadow:none !important;-o-box-shadow:none !important;-ms-box-shadow:none !important;box-shadow:none !important;overflow:hidden;text-indent:-9999px;cursor:default !important;outline:none !important}.ajax-load-more-wrap.infinite button.alm-load-more-btn:before{display:none !important}.ajax-load-more-wrap.infinite button.alm-load-more-btn.done{opacity:0;filter:alpha(opacity=0)}.ajax-load-more-wrap.infinite button.alm-load-more-btn:active{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.ajax-load-more-wrap.infinite button.alm-load-more-btn{background-color:transparent;background-position:center center;background-repeat:no-repeat;background-image:url("../../core/img/spinner.gif");border:none !important;opacity:0;filter:alpha(opacity=0)}.ajax-load-more-wrap.infinite button.alm-load-more-btn{-webkit-transition:opacity 0.25s ease;-moz-transition:opacity 0.25s ease;transition:opacity 0.25s ease}.ajax-load-more-wrap.infinite button.alm-load-more-btn.loading{opacity:1;filter:alpha(opacity=100)}.ajax-load-more-wrap.infinite.skype button.alm-load-more-btn{background-image:url("../../core/img/spinner-skype.gif")}.ajax-load-more-wrap.infinite.ring button.alm-load-more-btn{background-image:url("../../core/img/spinner-ring.gif")}.ajax-load-more-wrap.infinite.fading-blocks button.alm-load-more-btn{background-image:url("../../core/img/loader-fading-blocks.gif")}.ajax-load-more-wrap.infinite.fading-circles button.alm-load-more-btn{background-image:url("../../core/img/loader-fading-circles.gif")}.ajax-load-more-wrap.infinite.chasing-arrows button.alm-load-more-btn{background-image:url("../../core/img/spinner-chasing-arrows.gif")}.alm-listing{margin:0;padding:0}.alm-listing li{background:none;margin:0 0 30px;padding:0 0 0 170px;overflow:hidden;position:relative;list-style:none}.alm-listing li.no-img{padding:0}.alm-listing li p{margin:0}.alm-listing li h3{margin:0 0 10px}.alm-listing li img{position:absolute;left:0;top:0;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}
1
+ button.alm-load-more-btn{font-size:15px;font-weight:600;width:auto;height:42px;line-height:42px;background:#ed7070;color:#fff;border:none;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;margin:0 0 4px;padding:0 20px;display:inline-block;position:relative;-webkit-transition:padding 0.25s ease-in-out, width 0.25s ease-in-out;-moz-transition:padding 0.25s ease-in-out, width 0.25s ease-in-out;transition:padding 0.25s ease-in-out, width 0.25s ease-in-out;text-align:center;text-decoration:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:-moz-none;-ms-user-select:none;user-select:none;cursor:pointer}button.alm-load-more-btn:hover{background-color:#e06464;color:#fff;text-decoration:none}button.alm-load-more-btn:active{-webkit-box-shadow:inset 0 2px 1px rgba(0, 0, 0, 0.1);-moz-box-shadow:inset 0 2px 1px rgba(0, 0, 0, 0.1);box-shadow:inset 0 2px 1px rgba(0, 0, 0, 0.1);text-decoration:none}button.alm-load-more-btn.loading{padding-left:44px}button.alm-load-more-btn.done{cursor:default;opacity:0.2;filter:alpha(opacity=20);background-color:#ed7070;-webkit-box-shadow:none !important;-moz-box-shadow:none !important;box-shadow:none !important}button.alm-load-more-btn:before,button.alm-load-more-btn.done:before{background:none;width:0}button.alm-load-more-btn.loading:before{background:#fff url("../../core/img/ajax-loader.gif") no-repeat center center;width:30px;height:30px;margin:6px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:2px;display:inline-block;z-index:0;content:'';position:absolute;left:0;top:0;overflow:hidden;-webkit-transition:width 0.5s ease-in-out;-moz-transition:width 0.5s ease-in-out;transition:width 0.5s ease-in-out}.alm-btn-wrap{display:block;text-align:center;padding:10px 0 30px;overflow:hidden}.ajax-load-more-wrap.blue button.alm-load-more-btn{background-color:#0081bf}.ajax-load-more-wrap.blue button.alm-load-more-btn:hover,.ajax-load-more-wrap.blue button.alm-load-more-btn.done{background-color:#0073aa}.ajax-load-more-wrap.green button.alm-load-more-btn{background-color:#6fca68}.ajax-load-more-wrap.green button.alm-load-more-btn:hover,.ajax-load-more-wrap.green button.alm-load-more-btn.done{background-color:#64b95e}.ajax-load-more-wrap.red button.alm-load-more-btn{background-color:#ca4b4b}.ajax-load-more-wrap.red button.alm-load-more-btn:hover,.ajax-load-more-wrap.red button.alm-load-more-btn.done{background-color:#b13b3b}.ajax-load-more-wrap.purple button.alm-load-more-btn{background-color:#a86bb9}.ajax-load-more-wrap.purple button.alm-load-more-btn:hover,.ajax-load-more-wrap.purple button.alm-load-more-btn.done{background-color:#9963a8}.ajax-load-more-wrap.grey button.alm-load-more-btn{background-color:#888}.ajax-load-more-wrap.grey button.alm-load-more-btn:hover,.ajax-load-more-wrap.grey button.alm-load-more-btn.done{background-color:#777}.ajax-load-more-wrap.white button.alm-load-more-btn{background-color:#fff;color:#666;border:1px solid #efefef}.ajax-load-more-wrap.white button.alm-load-more-btn:hover,.ajax-load-more-wrap.white button.alm-load-more-btn.done{background-color:#efefef;color:#333}.ajax-load-more-wrap.white button.alm-load-more-btn.done{border-color:#fff}.ajax-load-more-wrap.infinite button.alm-load-more-btn{width:100%;background-color:transparent !important;background-position:center center;background-repeat:no-repeat;background-image:url("../../core/img/spinner.gif");border:none !important;opacity:0;filter:alpha(opacity=0);-webkit-transition:opacity 0.25s ease;-moz-transition:opacity 0.25s ease;transition:opacity 0.25s ease;-webkit-box-shadow:none !important;-moz-box-shadow:none !important;-o-box-shadow:none !important;-ms-box-shadow:none !important;box-shadow:none !important;overflow:hidden;text-indent:-9999px;cursor:default !important;outline:none !important}.ajax-load-more-wrap.infinite button.alm-load-more-btn:before{display:none !important}.ajax-load-more-wrap.infinite button.alm-load-more-btn:active{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.ajax-load-more-wrap.infinite button.alm-load-more-btn.done{opacity:0;filter:alpha(opacity=0)}.ajax-load-more-wrap.infinite button.alm-load-more-btn.loading{opacity:1;filter:alpha(opacity=100)}.ajax-load-more-wrap.infinite.skype button.alm-load-more-btn{background-image:url("../../core/img/spinner-skype.gif")}.ajax-load-more-wrap.infinite.ring button.alm-load-more-btn{background-image:url("../../core/img/spinner-ring.gif")}.ajax-load-more-wrap.infinite.fading-blocks button.alm-load-more-btn{background-image:url("../../core/img/loader-fading-blocks.gif")}.ajax-load-more-wrap.infinite.fading-circles button.alm-load-more-btn{background-image:url("../../core/img/loader-fading-circles.gif")}.ajax-load-more-wrap.infinite.chasing-arrows button.alm-load-more-btn{background-image:url("../../core/img/spinner-chasing-arrows.gif")}.alm-listing{margin:0;padding:0}.alm-listing li{background:none;margin:0 0 30px;padding:0 0 0 170px;overflow:hidden;position:relative;list-style:none}.alm-listing li.no-img{padding:0}.alm-listing li p{margin:0}.alm-listing li h3{margin:0 0 10px}.alm-listing li img{position:absolute;left:0;top:0;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}
core/js/ajax-load-more.js CHANGED
@@ -20,6 +20,7 @@
20
  if(alm_localize.scrolltop === 'true'){
21
  $(window).scrollTop(0);
22
  }
 
23
  //Set variables
24
  var alm = this;
25
  alm.AjaxLoadMore = {};
@@ -42,6 +43,7 @@
42
  alm.canonical_url = alm.el.attr('data-canonical-url');
43
  alm.is_search = alm.el.attr('data-search');
44
  alm.slug = alm.el.attr('data-slug');
 
45
  alm.prefix = 'alm-';
46
 
47
  alm.cache = alm.content.attr('data-cache'); // Cache add-on
@@ -63,7 +65,7 @@
63
  alm.destroy_after = alm.content.attr('data-destroy-after');
64
  alm.lang = alm.content.attr('data-lang');
65
  alm.orginal_posts_per_page = alm.content.attr('data-posts-per-page'); // Used for paging add-on
66
- alm.posts_per_page = alm.content.attr('data-posts-per-page');
67
 
68
  alm.cta_array = '';
69
  alm.cta = alm.content.attr('data-cta'); // CTA add-on
@@ -71,6 +73,12 @@
71
  alm.cta_repeater = alm.content.attr('data-cta-repeater');
72
  alm.cta_theme_repeater = alm.content.attr('data-cta-theme-repeater');
73
 
 
 
 
 
 
 
74
  alm.nextpage_array = '';
75
  alm.nextpage = alm.content.attr('data-nextpage'); // Nextpage add-on
76
  alm.nextpage_urls = alm.content.attr('data-nextpage-urls'); // Update url
@@ -231,7 +239,8 @@
231
  /* Nextpage */
232
 
233
  if (alm.nextpage === 'true'){
234
- alm.nextpage = true;
 
235
  }else{
236
  alm.nextpage = false;
237
  }
@@ -251,8 +260,25 @@
251
  if (alm.nextpage_startpage === undefined){
252
  alm.nextpage_startpage = 1;
253
  }
 
 
 
254
 
255
  /* End Nextpage */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
256
 
257
 
258
  /* Previous Post */
@@ -394,6 +420,7 @@
394
  alm.post_type = alm.content.attr('data-post-type');
395
  alm.post_type = alm.post_type.split(",");
396
 
 
397
  /* Sticky Posts */
398
  alm.sticky_posts = alm.content.attr('data-sticky-posts');
399
 
@@ -401,6 +428,7 @@
401
  /* Append 'load More' button to .ajax-load-more-wrap */
402
  alm.container.append('<div class="' + alm.prefix + 'btn-wrap"/>');
403
  alm.btnWrap = $('.' + alm.prefix + 'btn-wrap', alm.container);
 
404
  if(alm.paging){
405
 
406
  // Paging add-on
@@ -408,8 +436,8 @@
408
 
409
  }else{
410
 
411
- // If paging is false
412
- $('.'+ alm.prefix + 'btn-wrap', alm.container).append('<button id="load-more" class="' + alm.prefix + 'load-more-btn more'+ alm.button_class +'">' + alm.button_label + '</button>');
413
  alm.button = $('.alm-load-more-btn', alm.container);
414
  }
415
 
@@ -425,6 +453,7 @@
425
  if(!alm.disable_ajax){ // Check for ajax blocker
426
  if(!alm.paging){
427
  alm.button.addClass('loading');
 
428
  if(alm.button_loading_label !== false){
429
  alm.button.text(alm.button_loading_label);
430
  }
@@ -437,14 +466,30 @@
437
  var cache_page;
438
 
439
  if(alm.init && alm.seo && alm.isPaged){
 
440
  // If the request a paged URL (/page/3/)
441
  var firstpage = '1';
442
- cache_page = alm.cache_path + '/page-' + firstpage +'-'+ alm.start_page +'.html';
443
-
444
- } else {
445
- // standard request url
446
- cache_page = alm.cache_path + '/page-' + (alm.page + 1) +'.html';
447
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
448
  }
449
 
450
  $.get(cache_page, function( data ) {
@@ -467,13 +512,32 @@
467
  /* ajax()
468
  *
469
  * Ajax Load Moe Ajax function
 
 
470
  * @since 2.6.0
471
  */
472
 
473
  alm.AjaxLoadMore.ajax = function (queryType) {
474
 
 
475
  var action = 'alm_query_posts';
476
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
477
 
478
  // Nextpage Params
479
  if(alm.nextpage){
@@ -618,6 +682,7 @@
618
  cache_id : alm.cache_id,
619
  repeater : alm.repeater,
620
  theme_repeater : alm.theme_repeater,
 
621
  nextpage : alm.nextpage_array,
622
  cta : alm.cta_array,
623
  comments : alm.comments_array,
@@ -702,18 +767,12 @@
702
 
703
 
704
  // If pagination enabled, run totalposts query
705
- if(alm.paging){
706
-
707
- if(alm.nextpage){
708
-
709
- alm.AjaxLoadMore.ajax('totalpages'); // Create paging menu and query for total pages
710
-
711
- } else {
712
-
713
- alm.AjaxLoadMore.ajax('totalposts'); // Create paging menu and query for total posts
714
-
715
- }
716
-
717
  }
718
 
719
 
@@ -721,6 +780,9 @@
721
  /* success()
722
  *
723
  * Success function after loading data
 
 
 
724
  * @since 2.6.0
725
  */
726
 
@@ -728,7 +790,7 @@
728
 
729
  if(alm.previous_post){ // Get previous page data
730
  alm.AjaxLoadMore.getPreviousPost();
731
- }
732
 
733
  var html, meta, total;
734
 
@@ -906,6 +968,7 @@
906
  alm.loading = false;
907
  if(!alm.paging){
908
  alm.button.delay(alm.speed).removeClass('loading');
 
909
  alm.AjaxLoadMore.resetBtnText();
910
  }
911
  alm.AjaxLoadMore.triggerAddons(alm);
@@ -916,6 +979,7 @@
916
  alm.loading = false;
917
  if(!alm.paging){
918
  alm.button.delay(alm.speed).removeClass('loading');
 
919
  alm.AjaxLoadMore.resetBtnText();
920
  }
921
  alm.AjaxLoadMore.triggerAddons(alm);
@@ -935,6 +999,7 @@
935
  alm.loading = false;
936
  if(!alm.paging){
937
  alm.button.delay(alm.speed).removeClass('loading');
 
938
  alm.AjaxLoadMore.resetBtnText();
939
  }
940
 
@@ -945,6 +1010,7 @@
945
  alm.loading = false;
946
  if(!alm.paging){
947
  alm.button.delay(alm.speed).removeClass('loading');
 
948
  alm.AjaxLoadMore.resetBtnText();
949
  }
950
  alm.AjaxLoadMore.triggerAddons(alm);
@@ -955,13 +1021,14 @@
955
  alm.loading = false;
956
  if(!alm.paging){
957
  alm.button.delay(alm.speed).removeClass('loading');
 
958
  alm.AjaxLoadMore.resetBtnText();
959
  }
960
  alm.AjaxLoadMore.triggerAddons(alm);
961
  });
962
  }
963
  }
964
- // End Transition -- /
965
 
966
  } else {
967
 
@@ -977,9 +1044,10 @@
977
  } else {
978
  alm.AjaxLoadMore.triggerAddons(alm);
979
  }
980
- // End Paging -- /
 
 
981
 
982
- }
983
 
984
  // ALM Complete
985
  if ($.isFunction($.fn.almComplete)) {
@@ -991,7 +1059,8 @@
991
  $.fn.almComplete(alm);
992
  }
993
  }
994
- // End ALM Complete -- /
 
995
 
996
  // ALM Done
997
  if(!alm.cache){
@@ -1004,12 +1073,12 @@
1004
  alm.AjaxLoadMore.triggerDone();
1005
  }
1006
  }
1007
- // End ALM Done -- /
 
1008
 
1009
  } else {
1010
 
1011
- // No Results!
1012
-
1013
  if(!alm.paging){
1014
  alm.button.delay(alm.speed).removeClass('loading').addClass('done');
1015
  alm.AjaxLoadMore.resetBtnText();
@@ -1032,7 +1101,7 @@
1032
  }
1033
  }
1034
  }
1035
- // End Destroy After -- /
1036
 
1037
  alm.init = false;
1038
 
@@ -1044,6 +1113,8 @@
1044
  *
1045
  * First run for Paging + Preloaded add-ons
1046
  * Moves preloaded content into ajax container
 
 
1047
  * @since 2.11.3
1048
  */
1049
  alm.AjaxLoadMore.pagingPreloadedInit = function(data){
@@ -1069,6 +1140,8 @@
1069
  *
1070
  * First run for Paging + Next Page add-ons
1071
  * Moves .alm-nextpage content into ajax container
 
 
1072
  * @since 2.14.0
1073
  */
1074
  alm.AjaxLoadMore.pagingNextpageInit = function(data){
@@ -1187,11 +1260,13 @@
1187
  * @since 2.8.4
1188
  */
1189
  alm.AjaxLoadMore.resetBtnText = function(){
 
1190
  if(alm.button_loading_label !== false){ // Reset button text
1191
  if(!alm.paging){
1192
  alm.button.text(alm.button_label);
1193
  }
1194
- }
 
1195
  };
1196
 
1197
 
@@ -1540,7 +1615,7 @@
1540
 
1541
  if(data.target){
1542
  // if a target has been specified
1543
- $(".ajax-load-more-wrap[data-id="+data.target+"").ajaxloadmore(); // re-initiate Ajax Load More
1544
  } else {
1545
  // Target not specified
1546
  $(".ajax-load-more-wrap").ajaxloadmore(); // re-initiate Ajax Load More
20
  if(alm_localize.scrolltop === 'true'){
21
  $(window).scrollTop(0);
22
  }
23
+
24
  //Set variables
25
  var alm = this;
26
  alm.AjaxLoadMore = {};
43
  alm.canonical_url = alm.el.attr('data-canonical-url');
44
  alm.is_search = alm.el.attr('data-search');
45
  alm.slug = alm.el.attr('data-slug');
46
+ alm.post_id = alm.el.attr('data-post-id');
47
  alm.prefix = 'alm-';
48
 
49
  alm.cache = alm.content.attr('data-cache'); // Cache add-on
65
  alm.destroy_after = alm.content.attr('data-destroy-after');
66
  alm.lang = alm.content.attr('data-lang');
67
  alm.orginal_posts_per_page = alm.content.attr('data-posts-per-page'); // Used for paging add-on
68
+ alm.posts_per_page = alm.content.attr('data-posts-per-page');
69
 
70
  alm.cta_array = '';
71
  alm.cta = alm.content.attr('data-cta'); // CTA add-on
73
  alm.cta_repeater = alm.content.attr('data-cta-repeater');
74
  alm.cta_theme_repeater = alm.content.attr('data-cta-theme-repeater');
75
 
76
+ alm.acf_array = '';
77
+ alm.acf = alm.content.attr('data-acf'); // ACF add-on
78
+ alm.acf_field_type = alm.content.attr('data-acf-field-type'); // Field Type
79
+ alm.acf_field_name = alm.content.attr('data-acf-field-name'); // Field Name
80
+ alm.acf_post_id = alm.content.attr('data-acf-post-id'); // Get the Post ID
81
+
82
  alm.nextpage_array = '';
83
  alm.nextpage = alm.content.attr('data-nextpage'); // Nextpage add-on
84
  alm.nextpage_urls = alm.content.attr('data-nextpage-urls'); // Update url
239
  /* Nextpage */
240
 
241
  if (alm.nextpage === 'true'){
242
+ alm.nextpage = true;
243
+ alm.posts_per_page = 1;
244
  }else{
245
  alm.nextpage = false;
246
  }
260
  if (alm.nextpage_startpage === undefined){
261
  alm.nextpage_startpage = 1;
262
  }
263
+ if (alm.nextpage_startpage > 1) {
264
+ alm.isPaged = true;
265
+ }
266
 
267
  /* End Nextpage */
268
+
269
+
270
+ /* Advanced Custom Fields */
271
+
272
+ if (alm.acf === 'true'){
273
+ alm.acf = true;
274
+ }else{
275
+ alm.acf = false;
276
+ }
277
+ if (alm.acf_field_type === undefined || alm.acf_field_name === undefined || alm.acf_post_id === undefined){
278
+ alm.acf = false;
279
+ }
280
+
281
+ /* End Advanced Custom Fields */
282
 
283
 
284
  /* Previous Post */
420
  alm.post_type = alm.content.attr('data-post-type');
421
  alm.post_type = alm.post_type.split(",");
422
 
423
+
424
  /* Sticky Posts */
425
  alm.sticky_posts = alm.content.attr('data-sticky-posts');
426
 
428
  /* Append 'load More' button to .ajax-load-more-wrap */
429
  alm.container.append('<div class="' + alm.prefix + 'btn-wrap"/>');
430
  alm.btnWrap = $('.' + alm.prefix + 'btn-wrap', alm.container);
431
+
432
  if(alm.paging){
433
 
434
  // Paging add-on
436
 
437
  }else{
438
 
439
+ // If paging is false
440
+ $('.'+ alm.prefix + 'btn-wrap', alm.container).append('<button id="load-more" class="' + alm.prefix + 'load-more-btn more'+ alm.button_class +'">' + alm.button_label + '</button>');
441
  alm.button = $('.alm-load-more-btn', alm.container);
442
  }
443
 
453
  if(!alm.disable_ajax){ // Check for ajax blocker
454
  if(!alm.paging){
455
  alm.button.addClass('loading');
456
+ alm.container.addClass('alm-loading');
457
  if(alm.button_loading_label !== false){
458
  alm.button.text(alm.button_loading_label);
459
  }
466
  var cache_page;
467
 
468
  if(alm.init && alm.seo && alm.isPaged){
469
+ // SEO Add-on
470
  // If the request a paged URL (/page/3/)
471
  var firstpage = '1';
472
+ cache_page = alm.cache_path + '/page-' + firstpage +'-'+ alm.start_page +'.html';
473
+ }
474
+
475
+ else if(alm.nextpage){
476
+ // Nextpage add-on
477
+ var nextpage_cache_page;
478
+ if(alm.paging){
479
+ nextpage_cache_page = parseInt(alm.page) + 1;
480
+ }else{
481
+ nextpage_cache_page = parseInt(alm.page) + 2;
482
+ if(alm.isPaged){
483
+ // If the request a paged URL (/page/3/)
484
+ nextpage_cache_page = parseInt(alm.page) + parseInt(alm.nextpage_startpage) + 1;
485
+ }
486
+ }
487
+ cache_page = alm.cache_path + '/page' +'-'+ nextpage_cache_page +'.html';
488
+ }
489
+
490
+ else {
491
+ // Standard ALM URL request
492
+ cache_page = alm.cache_path + '/page-' + (alm.page + 1) +'.html';
493
  }
494
 
495
  $.get(cache_page, function( data ) {
512
  /* ajax()
513
  *
514
  * Ajax Load Moe Ajax function
515
+ *
516
+ * @param queryType The type of Ajax request (standard/totalposts)
517
  * @since 2.6.0
518
  */
519
 
520
  alm.AjaxLoadMore.ajax = function (queryType) {
521
 
522
+ // Default action
523
  var action = 'alm_query_posts';
524
 
525
+
526
+ // ACF Params
527
+ if(alm.acf){
528
+
529
+ // Custom query for the repeater field
530
+ if(alm.acf_field_type === 'repeater'){
531
+ action = 'alm_acf_query';
532
+ }
533
+ alm.acf_array = {
534
+ 'acf' : 'true',
535
+ 'post_id' : alm.acf_post_id,
536
+ 'field_type' : alm.acf_field_type,
537
+ 'field_name' : alm.acf_field_name
538
+ };
539
+ }
540
+
541
 
542
  // Nextpage Params
543
  if(alm.nextpage){
682
  cache_id : alm.cache_id,
683
  repeater : alm.repeater,
684
  theme_repeater : alm.theme_repeater,
685
+ acf : alm.acf_array,
686
  nextpage : alm.nextpage_array,
687
  cta : alm.cta_array,
688
  comments : alm.comments_array,
767
 
768
 
769
  // If pagination enabled, run totalposts query
770
+ if(alm.paging){
771
+ if(alm.nextpage){
772
+ alm.AjaxLoadMore.ajax('totalpages'); // Create paging menu and query for total pages
773
+ } else {
774
+ alm.AjaxLoadMore.ajax('totalposts'); // Create paging menu and query for total posts
775
+ }
 
 
 
 
 
 
776
  }
777
 
778
 
780
  /* success()
781
  *
782
  * Success function after loading data
783
+ *
784
+ * @param data The results of the Ajax request
785
+ * @param is_cache Are results of the Ajax request coming from cache
786
  * @since 2.6.0
787
  */
788
 
790
 
791
  if(alm.previous_post){ // Get previous page data
792
  alm.AjaxLoadMore.getPreviousPost();
793
+ }
794
 
795
  var html, meta, total;
796
 
968
  alm.loading = false;
969
  if(!alm.paging){
970
  alm.button.delay(alm.speed).removeClass('loading');
971
+ alm.container.delay(alm.speed).removeClass('alm-loading');
972
  alm.AjaxLoadMore.resetBtnText();
973
  }
974
  alm.AjaxLoadMore.triggerAddons(alm);
979
  alm.loading = false;
980
  if(!alm.paging){
981
  alm.button.delay(alm.speed).removeClass('loading');
982
+ alm.container.delay(alm.speed).removeClass('loading');
983
  alm.AjaxLoadMore.resetBtnText();
984
  }
985
  alm.AjaxLoadMore.triggerAddons(alm);
999
  alm.loading = false;
1000
  if(!alm.paging){
1001
  alm.button.delay(alm.speed).removeClass('loading');
1002
+ alm.container.delay(alm.speed).removeClass('loading');
1003
  alm.AjaxLoadMore.resetBtnText();
1004
  }
1005
 
1010
  alm.loading = false;
1011
  if(!alm.paging){
1012
  alm.button.delay(alm.speed).removeClass('loading');
1013
+ alm.container.delay(alm.speed).removeClass('loading');
1014
  alm.AjaxLoadMore.resetBtnText();
1015
  }
1016
  alm.AjaxLoadMore.triggerAddons(alm);
1021
  alm.loading = false;
1022
  if(!alm.paging){
1023
  alm.button.delay(alm.speed).removeClass('loading');
1024
+ alm.container.delay(alm.speed).removeClass('loading');
1025
  alm.AjaxLoadMore.resetBtnText();
1026
  }
1027
  alm.AjaxLoadMore.triggerAddons(alm);
1028
  });
1029
  }
1030
  }
1031
+ // End Transition
1032
 
1033
  } else {
1034
 
1044
  } else {
1045
  alm.AjaxLoadMore.triggerAddons(alm);
1046
  }
1047
+ // End Paging
1048
+
1049
+ }
1050
 
 
1051
 
1052
  // ALM Complete
1053
  if ($.isFunction($.fn.almComplete)) {
1059
  $.fn.almComplete(alm);
1060
  }
1061
  }
1062
+ // End ALM Complete
1063
+
1064
 
1065
  // ALM Done
1066
  if(!alm.cache){
1073
  alm.AjaxLoadMore.triggerDone();
1074
  }
1075
  }
1076
+ // End ALM Done
1077
+
1078
 
1079
  } else {
1080
 
1081
+ // No Results!
 
1082
  if(!alm.paging){
1083
  alm.button.delay(alm.speed).removeClass('loading').addClass('done');
1084
  alm.AjaxLoadMore.resetBtnText();
1101
  }
1102
  }
1103
  }
1104
+ // End Destroy After
1105
 
1106
  alm.init = false;
1107
 
1113
  *
1114
  * First run for Paging + Preloaded add-ons
1115
  * Moves preloaded content into ajax container
1116
+ *
1117
+ * @param data The results of the Ajax request
1118
  * @since 2.11.3
1119
  */
1120
  alm.AjaxLoadMore.pagingPreloadedInit = function(data){
1140
  *
1141
  * First run for Paging + Next Page add-ons
1142
  * Moves .alm-nextpage content into ajax container
1143
+ *
1144
+ * @param data The results of the Ajax request
1145
  * @since 2.14.0
1146
  */
1147
  alm.AjaxLoadMore.pagingNextpageInit = function(data){
1260
  * @since 2.8.4
1261
  */
1262
  alm.AjaxLoadMore.resetBtnText = function(){
1263
+
1264
  if(alm.button_loading_label !== false){ // Reset button text
1265
  if(!alm.paging){
1266
  alm.button.text(alm.button_label);
1267
  }
1268
+ }
1269
+
1270
  };
1271
 
1272
 
1615
 
1616
  if(data.target){
1617
  // if a target has been specified
1618
+ $(".ajax-load-more-wrap[data-id="+data.target+"]").ajaxloadmore(); // re-initiate Ajax Load More
1619
  } else {
1620
  // Target not specified
1621
  $(".ajax-load-more-wrap").ajaxloadmore(); // re-initiate Ajax Load More
core/js/ajax-load-more.min.js CHANGED
@@ -1,5 +1,5 @@
1
  (function($){"use strict";$.ajaxloadmore=function(el,e){if(alm_localize.scrolltop==='true'){$(window).scrollTop(0);}
2
- var alm=this;alm.AjaxLoadMore={};alm.page=0;alm.posts=0;alm.totalposts=0;alm.proceed=false;alm.disable_ajax=false;alm.init=true;alm.loading=true;alm.finished=false;alm.window=$(window);alm.button_label='';alm.data;alm.el=el;alm.container=el;alm.container.addClass('alm-'+e).attr('data-alm-id',e);alm.content=$('.alm-ajax',alm.container);alm.content_preloaded=$('.alm-listing.alm-preloaded',alm.container);alm.canonical_url=alm.el.attr('data-canonical-url');alm.is_search=alm.el.attr('data-search');alm.slug=alm.el.attr('data-slug');alm.prefix='alm-';alm.cache=alm.content.attr('data-cache');alm.cache_id=alm.content.attr('data-cache-id');alm.cache_path=alm.content.attr('data-cache-path');alm.cache_logged_in=alm.content.attr('data-cache-logged-in');alm.repeater=alm.content.attr('data-repeater');alm.theme_repeater=alm.content.attr('data-theme-repeater');alm.scroll_distance=parseInt(alm.content.attr('data-scroll-distance'));alm.max_pages=parseInt(alm.content.attr('data-max-pages'));alm.pause_override=alm.content.attr('data-pause-override');alm.pause=alm.content.attr('data-pause');alm.transition=alm.content.attr('data-transition');alm.transition_container=alm.content.attr('data-transition-container');alm.speed=alm.content.attr('data-transition-speed');alm.images_loaded=alm.content.attr('data-images-loaded');alm.destroy_after=alm.content.attr('data-destroy-after');alm.lang=alm.content.attr('data-lang');alm.orginal_posts_per_page=alm.content.attr('data-posts-per-page');alm.posts_per_page=alm.content.attr('data-posts-per-page');alm.cta_array='';alm.cta=alm.content.attr('data-cta');alm.cta_position=alm.content.attr('data-cta-position');alm.cta_repeater=alm.content.attr('data-cta-repeater');alm.cta_theme_repeater=alm.content.attr('data-cta-theme-repeater');alm.nextpage_array='';alm.nextpage=alm.content.attr('data-nextpage');alm.nextpage_urls=alm.content.attr('data-nextpage-urls');alm.nextpage_scroll=alm.content.attr('data-nextpage-scroll');alm.nextpage_pageviews=alm.content.attr('data-nextpage-pageviews');alm.nextpage_post_id=alm.content.attr('data-nextpage-post-id');alm.nextpage_startpage=alm.content.attr('data-nextpage-startpage');alm.previous_post=alm.content.attr('data-previous-post');alm.previous_post_id=alm.content.attr('data-previous-post-id');alm.previous_post_taxonomy=alm.content.attr('data-previous-post-taxonomy');alm.comments=alm.content.attr('data-comments');if(alm.comments==='true'){alm.content=$('.alm-comments',alm.container);}
3
  alm.comments_array='';alm.comments_post_id=alm.content.attr('data-comments_post_id');alm.comments_per_page=alm.content.attr('data-comments_per_page');alm.comments_type=alm.content.attr('data-comments_type');alm.comments_style=alm.content.attr('data-comments_style');alm.comments_template=alm.content.attr('data-comments_template');alm.comments_callback=alm.content.attr('data-comments_callback');alm.restapi=alm.content.attr('data-restapi');alm.restapi_base_url=alm.content.attr('data-restapi-base-url');alm.restapi_namespace=alm.content.attr('data-restapi-namespace');alm.restapi_endpoint=alm.content.attr('data-restapi-endpoint');alm.restapi_template_id=alm.content.attr('data-restapi-template-id');alm.restapi_debug=alm.content.attr('data-restapi-debug');alm.seo=alm.content.attr('data-seo');alm.preloaded=alm.content.attr('data-preloaded');alm.preloaded_amount=alm.content.attr('data-preloaded-amount');alm.paging=alm.content.attr('data-paging');alm.paging_controls=alm.content.attr('data-paging-controls');alm.paging_show_at_most=alm.content.attr('data-paging-show-at-most');alm.paging_classes=alm.content.attr('data-paging-classes');alm.paging_init=true;if(alm.restapi==='true'){alm.restapi=true;if(alm.restapi_debug===undefined){alm.restapi_debug=false;}
4
  if(alm.restapi_template_id===''){alm.restapi=false;}}else{alm.restapi=false;}
5
  if(alm.paging==='true'){alm.paging=true;if(alm.paging_show_at_most===undefined){alm.paging_show_at_most=7;}
@@ -15,12 +15,15 @@ if(alm.seo==='true'){alm.seo=true;}
15
  if(alm.is_search===undefined){alm.is_search=false;}
16
  alm.search_value=(alm.is_search==='true')?alm.slug:'';alm.permalink=alm.content.attr('data-seo-permalink');alm.pageview=alm.content.attr('data-seo-pageview');alm.start_page=alm.content.attr('data-seo-start-page');if(alm.start_page){alm.seo_scroll=alm.content.attr('data-seo-scroll');alm.seo_scroll_speed=alm.content.attr('data-seo-scroll-speed');alm.seo_scrolltop=alm.content.attr('data-seo-scrolltop');alm.isPaged=false;if(alm.start_page>1){alm.isPaged=true;alm.posts_per_page=alm.start_page*alm.posts_per_page;}
17
  if(alm.paging){alm.posts_per_page=alm.orginal_posts_per_page;}}else{alm.start_page=1;}
18
- if(alm.nextpage==='true'){alm.nextpage=true;}else{alm.nextpage=false;}
19
  if(alm.nextpage_urls===undefined){alm.nextpage='true';}
20
  if(alm.nextpage_scroll===undefined){alm.nextpage_scroll='250:30';}
21
  if(alm.nextpage_pageviews===undefined){alm.nextpage_pageviews='true';}
22
  if(alm.nextpage_post_id===undefined){alm.nextpage=false;alm.nextpage_post_id=null;}
23
  if(alm.nextpage_startpage===undefined){alm.nextpage_startpage=1;}
 
 
 
24
  if(alm.previous_post==='true'){alm.previous_post=true;alm.previous_post_permalink='';alm.previous_post_title='';}else{alm.previous_post=false;}
25
  if(alm.previous_post_id===undefined){alm.previous_post_id='';}
26
  if(alm.previous_post_taxonomy===undefined){alm.previous_post_taxonomy='';}
@@ -43,16 +46,21 @@ alm.button_loading_label=alm.content.attr('data-button-loading-label');if(alm.bu
43
  if(alm.content.attr('data-button-class')===undefined){alm.button_class='';}else{alm.button_class=' '+alm.content.attr('data-button-class');}
44
  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;}
45
  alm.post_type=alm.content.attr('data-post-type');alm.post_type=alm.post_type.split(",");alm.sticky_posts=alm.content.attr('data-sticky-posts');alm.container.append('<div class="'+alm.prefix+'btn-wrap"/>');alm.btnWrap=$('.'+alm.prefix+'btn-wrap',alm.container);if(alm.paging){alm.content.parent().addClass('loading');}else{$('.'+alm.prefix+'btn-wrap',alm.container).append('<button id="load-more" class="'+alm.prefix+'load-more-btn more'+alm.button_class+'">'+alm.button_label+'</button>');alm.button=$('.alm-load-more-btn',alm.container);}
46
- alm.AjaxLoadMore.loadPosts=function(){if(!alm.disable_ajax){if(!alm.paging){alm.button.addClass('loading');if(alm.button_loading_label!==false){alm.button.text(alm.button_loading_label);}}
47
- alm.loading=true;if(alm.cache==='true'&&!alm.cache_logged_in){var cache_page;if(alm.init&&alm.seo&&alm.isPaged){var firstpage='1';cache_page=alm.cache_path+'/page-'+firstpage+'-'+alm.start_page+'.html';}else{cache_page=alm.cache_path+'/page-'+(alm.page+1)+'.html';}
48
- $.get(cache_page,function(data){alm.AjaxLoadMore.success(data,true);}).fail(function(){alm.AjaxLoadMore.ajax('standard');});}else{alm.AjaxLoadMore.ajax('standard');}}};alm.AjaxLoadMore.ajax=function(queryType){var action='alm_query_posts';if(alm.nextpage){action='alm_nextpage_query';alm.nextpage_array={'nextpage':'true','urls':alm.nextpage_urls,'scroll':alm.nextpage_scroll,'pageviews':alm.nextpage_pageviews,'post_id':alm.nextpage_post_id,'startpage':alm.nextpage_startpage};}
 
 
 
 
 
49
  if(alm.previous_post){alm.previous_post_id=alm.content.attr('data-previous-post-id');alm.previous_post_taxonomy=alm.content.attr('data-previous-post-taxonomy');}
50
  if(alm.comments==='true'){action='alm_comments_query';alm.posts_per_page=alm.comments_per_page;alm.comments_array={'comments':'true','post_id':alm.comments_post_id,'per_page':alm.comments_per_page,'type':alm.comments_type,'style':alm.comments_style,'template':alm.comments_template,'callback':alm.comments_callback,};}
51
  if(alm.cta==='true'){alm.cta_array={'cta':'true','cta_position':alm.cta_position,'cta_repeater':alm.cta_repeater,'cta_theme_repeater':alm.cta_theme_repeater,};}
52
  if(alm.restapi){var alm_template=wp.template(alm.restapi_template_id),rest_url=alm.restapi_base_url+'/'+alm.restapi_namespace+'/'+alm.restapi_endpoint,rest_data={posts_per_page:alm.posts_per_page,page:alm.page,offset:alm.offset,slug:alm.slug,canonical_url:alm.canonical_url,post_type:alm.post_type,post_format:alm.content.attr('data-post-format'),category:alm.content.attr('data-category'),category__not_in:alm.content.attr('data-category-not-in'),tag:alm.content.attr('data-tag'),tag__not_in:alm.content.attr('data-tag-not-in'),taxonomy:alm.content.attr('data-taxonomy'),taxonomy_terms:alm.content.attr('data-taxonomy-terms'),taxonomy_operator:alm.content.attr('data-taxonomy-operator'),taxonomy_relation:alm.content.attr('data-taxonomy-relation'),meta_key:alm.content.attr('data-meta-key'),meta_value:alm.content.attr('data-meta-value'),meta_compare:alm.content.attr('data-meta-compare'),meta_relation:alm.content.attr('data-meta-relation'),meta_type:alm.content.attr('data-meta-type'),author:alm.content.attr('data-author'),year:alm.content.attr('data-year'),month:alm.content.attr('data-month'),day:alm.content.attr('data-day'),post_status:alm.content.attr('data-post-status'),order:alm.content.attr('data-order'),orderby:alm.content.attr('data-orderby'),post__in:alm.content.attr('data-post-in'),post__not_in:alm.content.attr('data-post-not-in'),search:alm.content.attr('data-search'),custom_args:alm.content.attr('data-custom-args'),lang:alm.lang,preloaded:alm.preloaded,preloaded_amount:alm.preloaded_amount,seo_start_page:alm.start_page,id:el.attr('data-id')};$.ajax({type:"GET",url:rest_url,data:rest_data,dataType:"JSON",beforeSend:function(){if(alm.page!=1&&!alm.paging){alm.button.addClass('loading');}},success:function(results){var data,html=results.html,meta=results.meta,postcount=meta.postcount,totalposts=meta.totalposts;$.each(html,function(e){var result=html[e];if(alm.restapi_debug==='true'){console.log(result);}
53
  data+=alm_template(result);});var obj={'html':data,'meta':{'postcount':postcount,'totalposts':totalposts},}
54
  alm.AjaxLoadMore.success(obj,false);}});}
55
- else{$.ajax({type:"GET",url:alm_localize.ajaxurl,dataType:"JSON",data:{action:action,query_type:queryType,nonce:alm_localize.alm_nonce,cache_id:alm.cache_id,repeater:alm.repeater,theme_repeater:alm.theme_repeater,nextpage:alm.nextpage_array,cta:alm.cta_array,comments:alm.comments_array,post_type:alm.post_type,sticky_posts:alm.sticky_posts,post_format:alm.content.attr('data-post-format'),category:alm.content.attr('data-category'),category__not_in:alm.content.attr('data-category-not-in'),tag:alm.content.attr('data-tag'),tag__not_in:alm.content.attr('data-tag-not-in'),taxonomy:alm.content.attr('data-taxonomy'),taxonomy_terms:alm.content.attr('data-taxonomy-terms'),taxonomy_operator:alm.content.attr('data-taxonomy-operator'),taxonomy_relation:alm.content.attr('data-taxonomy-relation'),meta_key:alm.content.attr('data-meta-key'),meta_value:alm.content.attr('data-meta-value'),meta_compare:alm.content.attr('data-meta-compare'),meta_relation:alm.content.attr('data-meta-relation'),meta_type:alm.content.attr('data-meta-type'),author:alm.content.attr('data-author'),year:alm.content.attr('data-year'),month:alm.content.attr('data-month'),day:alm.content.attr('data-day'),post_status:alm.content.attr('data-post-status'),order:alm.content.attr('data-order'),orderby:alm.content.attr('data-orderby'),post__in:alm.content.attr('data-post-in'),post__not_in:alm.content.attr('data-post-not-in'),exclude:alm.content.attr('data-exclude'),search:alm.content.attr('data-search'),custom_args:alm.content.attr('data-custom-args'),posts_per_page:alm.posts_per_page,page:alm.page,offset:alm.offset,preloaded:alm.preloaded,preloaded_amount:alm.preloaded_amount,seo_start_page:alm.start_page,paging:alm.paging,previous_post:alm.previous_post,previous_post_id:alm.previous_post_id,previous_post_taxonomy:alm.previous_post_taxonomy,lang:alm.lang,slug:alm.slug,canonical_url:alm.canonical_url,id:el.attr('data-id')},beforeSend:function(){if(alm.page!=1&&!alm.paging){alm.button.addClass('loading');}},success:function(data){if(queryType==='standard'){alm.AjaxLoadMore.success(data,false);}
56
  else if(queryType==='totalpages'&&alm.paging&&alm.nextpage){if($.isFunction($.fn.almBuildPagination)){$.fn.almBuildPagination(data,alm);}}
57
  else if(queryType==='totalposts'&&alm.paging){if($.isFunction($.fn.almBuildPagination)){$.fn.almBuildPagination(data,alm);}}},error:function(jqXHR,textStatus,errorThrown){alm.AjaxLoadMore.error(jqXHR,textStatus,errorThrown);}});}};if(alm.paging){if(alm.nextpage){alm.AjaxLoadMore.ajax('totalpages');}else{alm.AjaxLoadMore.ajax('totalposts');}}
58
  alm.AjaxLoadMore.success=function(data,is_cache){if(alm.previous_post){alm.AjaxLoadMore.getPreviousPost();}
@@ -69,11 +77,11 @@ div.append(data[k]);div=$(div);alm.el.append(div).hide();}}
69
  else{if(alm.seo&&alm.page>0||alm.preloaded==='true'){var p=0;if(alm.preloaded==='true'){p=1;}
70
  var pagenum=(alm.page+1+p);if(alm.seo){if(alm.permalink==='default'){alm.el=$('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+''+alm.search_value+'&paged='+pagenum+'" data-page="'+pagenum+'" />');}else{alm.el=$('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+'page/'+pagenum+'/'+alm.search_value+'" data-page="'+pagenum+'" />');}}else{alm.el=$('<div class="alm-reveal" />');}}else{if(alm.seo){alm.el=$('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+''+alm.search_value+'" data-page="1" />');}else{alm.el=$('<div class="alm-reveal" />');}}
71
  alm.el.append(alm.data).hide();}}}
72
- alm.content.append(alm.el);if(alm.transition==='fade'){if(alm.images_loaded==='true'){alm.el.almWaitForImages().done(function(){alm.el.fadeIn(alm.speed,'alm_easeInOutQuad',function(){alm.loading=false;if(!alm.paging){alm.button.delay(alm.speed).removeClass('loading');alm.AjaxLoadMore.resetBtnText();}
73
- alm.AjaxLoadMore.triggerAddons(alm);});});}else{alm.el.fadeIn(alm.speed,'alm_easeInOutQuad',function(){alm.loading=false;if(!alm.paging){alm.button.delay(alm.speed).removeClass('loading');alm.AjaxLoadMore.resetBtnText();}
74
  alm.AjaxLoadMore.triggerAddons(alm);});}}else if(alm.transition==='none'){if(alm.images_loaded==='true'){alm.el.almWaitForImages().done(function(){alm.el.show();alm.AjaxLoadMore.triggerAddons(alm);});}else{alm.el.show();alm.AjaxLoadMore.triggerAddons(alm);}
75
- alm.loading=false;if(!alm.paging){alm.button.delay(alm.speed).removeClass('loading');alm.AjaxLoadMore.resetBtnText();}}else{if(alm.images_loaded==='true'){alm.el.almWaitForImages().done(function(){alm.el.slideDown(alm.speed,'alm_easeInOutQuad',function(){alm.loading=false;if(!alm.paging){alm.button.delay(alm.speed).removeClass('loading');alm.AjaxLoadMore.resetBtnText();}
76
- alm.AjaxLoadMore.triggerAddons(alm);});});}else{alm.el.slideDown(alm.speed,'alm_easeInOutQuad',function(){alm.loading=false;if(!alm.paging){alm.button.delay(alm.speed).removeClass('loading');alm.AjaxLoadMore.resetBtnText();}
77
  alm.AjaxLoadMore.triggerAddons(alm);});}}}else{if(!alm.init){$('.alm-paging-content',alm.el).html('').append(alm.data).almWaitForImages().done(function(){$('.alm-paging-loading',alm.el).fadeOut(alm.speed);if($.isFunction($.fn.almOnPagingComplete)){$.fn.almOnPagingComplete(alm);}
78
  alm.AjaxLoadMore.triggerAddons(alm);});}else{alm.AjaxLoadMore.triggerAddons(alm);}}
79
  if($.isFunction($.fn.almComplete)){if(alm.images_loaded==='true'){alm.el.almWaitForImages().done(function(){$.fn.almComplete(alm);});}else{$.fn.almComplete(alm);}}
@@ -105,7 +113,7 @@ var data='';if(alm.paging_init&&alm.preloaded==='true'){data=$('.alm-preloaded .
105
  else if(alm.paging_init&&alm.nextpage){data=$('.alm-nextpage',alm.el).html();$('.alm-nextpage',alm.el).remove();alm.AjaxLoadMore.pagingNextpageInit(data);alm.paging_init=false;alm.init=false;}
106
  else{alm.AjaxLoadMore.loadPosts();}};$.fn.almGetParentContainer=function(){return alm.el.closest('#ajax-load-more');};$.fn.almGetObj=function(){return alm;};$.fn.almTriggerClick=function(){alm.button.trigger('click');};$.easing.alm_easeInOutQuad=function(x,t,b,c,d){if((t/=d/2)<1){return c/2*t*t+b;}
107
  return-c/2*((--t)*(t-2)-1)+b;};};$.fn.almFilter=function(transition,speed,data){if(data.target){$(".ajax-load-more-wrap[data-id='"+data.target+"']").each(function(e){var el=$(this);$.fn.almFilterTransition(transition,speed,data,el);});}else{$(".ajax-load-more-wrap").each(function(e){var el=$(this);$.fn.almFilterTransition(transition,speed,data,el);});}};$.fn.almFilterTransition=function(transition,speed,data,el){if(transition==='slide'){el.slideUp(speed,function(){$('.alm-listing',el).html('');$('.alm-btn-wrap',el).remove();el.fadeIn(speed);$.fn.almSetFilters(el,data);});}else if(transition==='fade'){el.fadeOut(speed,function(){$('.alm-listing',el).html('');$('.alm-btn-wrap',el).remove();el.fadeIn(speed);$.fn.almSetFilters(el,data);});}else{$('.alm-listing',el).html('');$('.alm-btn-wrap',el).remove();el.fadeIn(speed);$.fn.almSetFilters(el,data);}};$.fn.almSetFilters=function(el,data){$.each(data,function(key,value){key=key.replace(/\W+/g,'-').replace(/([a-z\d])([A-Z])/g,'$1-$2');$('.alm-listing',el).attr('data-'+key,value);});if($.isFunction($.fn.almFilterComplete)){$.fn.almFilterComplete();}
108
- if(data.target){$(".ajax-load-more-wrap[data-id="+data.target+"").ajaxloadmore();}else{$(".ajax-load-more-wrap").ajaxloadmore();}};$.fn.ajaxloadmore=function(){return this.each(function(e){$(this).data('alm',new $.ajaxloadmore($(this),e));});};if($(".ajax-load-more-wrap").length){$(".ajax-load-more-wrap").ajaxloadmore();}})(jQuery);;(function(factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory);}else if(typeof exports==='object'){module.exports=factory(require('jquery'));}else{factory(jQuery);}}(function($){var eventNamespace='almWaitForImages';$.almWaitForImages={hasImageProperties:['backgroundImage','listStyleImage','borderImage','borderCornerImage','cursor'],hasImageAttributes:['srcset']};$.expr[':']['has-src']=function(obj){return $(obj).is('img[src][src!=""]');};$.expr[':'].uncached=function(obj){if(!$(obj).is(':has-src')){return false;}
109
  return!obj.complete;};$.fn.almWaitForImages=function(){var allImgsLength=0;var allImgsLoaded=0;var deferred=$.Deferred();var finishedCallback;var eachCallback;var waitForAll;if($.isPlainObject(arguments[0])){waitForAll=arguments[0].waitForAll;eachCallback=arguments[0].each;finishedCallback=arguments[0].finished;}else{if(arguments.length===1&&$.type(arguments[0])==='boolean'){waitForAll=arguments[0];}else{finishedCallback=arguments[0];eachCallback=arguments[1];waitForAll=arguments[2];}}
110
  finishedCallback=finishedCallback||$.noop;eachCallback=eachCallback||$.noop;waitForAll=!!waitForAll;if(!$.isFunction(finishedCallback)||!$.isFunction(eachCallback)){throw new TypeError('An invalid callback was supplied.');}
111
  this.each(function(){var obj=$(this);var allImgs=[];var hasImgProperties=$.almWaitForImages.hasImageProperties||[];var hasImageAttributes=$.almWaitForImages.hasImageAttributes||[];var matchUrl=/url\(\s*(['"]?)(.*?)\1\s*\)/g;if(waitForAll){obj.find('*').addBack().each(function(){var element=$(this);if(element.is('img:has-src')){allImgs.push({src:element.attr('src'),element:element[0]});}
1
  (function($){"use strict";$.ajaxloadmore=function(el,e){if(alm_localize.scrolltop==='true'){$(window).scrollTop(0);}
2
+ var alm=this;alm.AjaxLoadMore={};alm.page=0;alm.posts=0;alm.totalposts=0;alm.proceed=false;alm.disable_ajax=false;alm.init=true;alm.loading=true;alm.finished=false;alm.window=$(window);alm.button_label='';alm.data;alm.el=el;alm.container=el;alm.container.addClass('alm-'+e).attr('data-alm-id',e);alm.content=$('.alm-ajax',alm.container);alm.content_preloaded=$('.alm-listing.alm-preloaded',alm.container);alm.canonical_url=alm.el.attr('data-canonical-url');alm.is_search=alm.el.attr('data-search');alm.slug=alm.el.attr('data-slug');alm.post_id=alm.el.attr('data-post-id');alm.prefix='alm-';alm.cache=alm.content.attr('data-cache');alm.cache_id=alm.content.attr('data-cache-id');alm.cache_path=alm.content.attr('data-cache-path');alm.cache_logged_in=alm.content.attr('data-cache-logged-in');alm.repeater=alm.content.attr('data-repeater');alm.theme_repeater=alm.content.attr('data-theme-repeater');alm.scroll_distance=parseInt(alm.content.attr('data-scroll-distance'));alm.max_pages=parseInt(alm.content.attr('data-max-pages'));alm.pause_override=alm.content.attr('data-pause-override');alm.pause=alm.content.attr('data-pause');alm.transition=alm.content.attr('data-transition');alm.transition_container=alm.content.attr('data-transition-container');alm.speed=alm.content.attr('data-transition-speed');alm.images_loaded=alm.content.attr('data-images-loaded');alm.destroy_after=alm.content.attr('data-destroy-after');alm.lang=alm.content.attr('data-lang');alm.orginal_posts_per_page=alm.content.attr('data-posts-per-page');alm.posts_per_page=alm.content.attr('data-posts-per-page');alm.cta_array='';alm.cta=alm.content.attr('data-cta');alm.cta_position=alm.content.attr('data-cta-position');alm.cta_repeater=alm.content.attr('data-cta-repeater');alm.cta_theme_repeater=alm.content.attr('data-cta-theme-repeater');alm.acf_array='';alm.acf=alm.content.attr('data-acf');alm.acf_field_type=alm.content.attr('data-acf-field-type');alm.acf_field_name=alm.content.attr('data-acf-field-name');alm.acf_post_id=alm.content.attr('data-acf-post-id');alm.nextpage_array='';alm.nextpage=alm.content.attr('data-nextpage');alm.nextpage_urls=alm.content.attr('data-nextpage-urls');alm.nextpage_scroll=alm.content.attr('data-nextpage-scroll');alm.nextpage_pageviews=alm.content.attr('data-nextpage-pageviews');alm.nextpage_post_id=alm.content.attr('data-nextpage-post-id');alm.nextpage_startpage=alm.content.attr('data-nextpage-startpage');alm.previous_post=alm.content.attr('data-previous-post');alm.previous_post_id=alm.content.attr('data-previous-post-id');alm.previous_post_taxonomy=alm.content.attr('data-previous-post-taxonomy');alm.comments=alm.content.attr('data-comments');if(alm.comments==='true'){alm.content=$('.alm-comments',alm.container);}
3
  alm.comments_array='';alm.comments_post_id=alm.content.attr('data-comments_post_id');alm.comments_per_page=alm.content.attr('data-comments_per_page');alm.comments_type=alm.content.attr('data-comments_type');alm.comments_style=alm.content.attr('data-comments_style');alm.comments_template=alm.content.attr('data-comments_template');alm.comments_callback=alm.content.attr('data-comments_callback');alm.restapi=alm.content.attr('data-restapi');alm.restapi_base_url=alm.content.attr('data-restapi-base-url');alm.restapi_namespace=alm.content.attr('data-restapi-namespace');alm.restapi_endpoint=alm.content.attr('data-restapi-endpoint');alm.restapi_template_id=alm.content.attr('data-restapi-template-id');alm.restapi_debug=alm.content.attr('data-restapi-debug');alm.seo=alm.content.attr('data-seo');alm.preloaded=alm.content.attr('data-preloaded');alm.preloaded_amount=alm.content.attr('data-preloaded-amount');alm.paging=alm.content.attr('data-paging');alm.paging_controls=alm.content.attr('data-paging-controls');alm.paging_show_at_most=alm.content.attr('data-paging-show-at-most');alm.paging_classes=alm.content.attr('data-paging-classes');alm.paging_init=true;if(alm.restapi==='true'){alm.restapi=true;if(alm.restapi_debug===undefined){alm.restapi_debug=false;}
4
  if(alm.restapi_template_id===''){alm.restapi=false;}}else{alm.restapi=false;}
5
  if(alm.paging==='true'){alm.paging=true;if(alm.paging_show_at_most===undefined){alm.paging_show_at_most=7;}
15
  if(alm.is_search===undefined){alm.is_search=false;}
16
  alm.search_value=(alm.is_search==='true')?alm.slug:'';alm.permalink=alm.content.attr('data-seo-permalink');alm.pageview=alm.content.attr('data-seo-pageview');alm.start_page=alm.content.attr('data-seo-start-page');if(alm.start_page){alm.seo_scroll=alm.content.attr('data-seo-scroll');alm.seo_scroll_speed=alm.content.attr('data-seo-scroll-speed');alm.seo_scrolltop=alm.content.attr('data-seo-scrolltop');alm.isPaged=false;if(alm.start_page>1){alm.isPaged=true;alm.posts_per_page=alm.start_page*alm.posts_per_page;}
17
  if(alm.paging){alm.posts_per_page=alm.orginal_posts_per_page;}}else{alm.start_page=1;}
18
+ if(alm.nextpage==='true'){alm.nextpage=true;alm.posts_per_page=1;}else{alm.nextpage=false;}
19
  if(alm.nextpage_urls===undefined){alm.nextpage='true';}
20
  if(alm.nextpage_scroll===undefined){alm.nextpage_scroll='250:30';}
21
  if(alm.nextpage_pageviews===undefined){alm.nextpage_pageviews='true';}
22
  if(alm.nextpage_post_id===undefined){alm.nextpage=false;alm.nextpage_post_id=null;}
23
  if(alm.nextpage_startpage===undefined){alm.nextpage_startpage=1;}
24
+ if(alm.nextpage_startpage>1){alm.isPaged=true;}
25
+ if(alm.acf==='true'){alm.acf=true;}else{alm.acf=false;}
26
+ if(alm.acf_field_type===undefined||alm.acf_field_name===undefined||alm.acf_post_id===undefined){alm.acf=false;}
27
  if(alm.previous_post==='true'){alm.previous_post=true;alm.previous_post_permalink='';alm.previous_post_title='';}else{alm.previous_post=false;}
28
  if(alm.previous_post_id===undefined){alm.previous_post_id='';}
29
  if(alm.previous_post_taxonomy===undefined){alm.previous_post_taxonomy='';}
46
  if(alm.content.attr('data-button-class')===undefined){alm.button_class='';}else{alm.button_class=' '+alm.content.attr('data-button-class');}
47
  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;}
48
  alm.post_type=alm.content.attr('data-post-type');alm.post_type=alm.post_type.split(",");alm.sticky_posts=alm.content.attr('data-sticky-posts');alm.container.append('<div class="'+alm.prefix+'btn-wrap"/>');alm.btnWrap=$('.'+alm.prefix+'btn-wrap',alm.container);if(alm.paging){alm.content.parent().addClass('loading');}else{$('.'+alm.prefix+'btn-wrap',alm.container).append('<button id="load-more" class="'+alm.prefix+'load-more-btn more'+alm.button_class+'">'+alm.button_label+'</button>');alm.button=$('.alm-load-more-btn',alm.container);}
49
+ alm.AjaxLoadMore.loadPosts=function(){if(!alm.disable_ajax){if(!alm.paging){alm.button.addClass('loading');alm.container.addClass('alm-loading');if(alm.button_loading_label!==false){alm.button.text(alm.button_loading_label);}}
50
+ alm.loading=true;if(alm.cache==='true'&&!alm.cache_logged_in){var cache_page;if(alm.init&&alm.seo&&alm.isPaged){var firstpage='1';cache_page=alm.cache_path+'/page-'+firstpage+'-'+alm.start_page+'.html';}
51
+ else if(alm.nextpage){var nextpage_cache_page;if(alm.paging){nextpage_cache_page=parseInt(alm.page)+1;}else{nextpage_cache_page=parseInt(alm.page)+2;if(alm.isPaged){nextpage_cache_page=parseInt(alm.page)+parseInt(alm.nextpage_startpage)+1;}}
52
+ cache_page=alm.cache_path+'/page'+'-'+nextpage_cache_page+'.html';}
53
+ else{cache_page=alm.cache_path+'/page-'+(alm.page+1)+'.html';}
54
+ $.get(cache_page,function(data){alm.AjaxLoadMore.success(data,true);}).fail(function(){alm.AjaxLoadMore.ajax('standard');});}else{alm.AjaxLoadMore.ajax('standard');}}};alm.AjaxLoadMore.ajax=function(queryType){var action='alm_query_posts';if(alm.acf){if(alm.acf_field_type==='repeater'){action='alm_acf_query';}
55
+ alm.acf_array={'acf':'true','post_id':alm.acf_post_id,'field_type':alm.acf_field_type,'field_name':alm.acf_field_name};}
56
+ if(alm.nextpage){action='alm_nextpage_query';alm.nextpage_array={'nextpage':'true','urls':alm.nextpage_urls,'scroll':alm.nextpage_scroll,'pageviews':alm.nextpage_pageviews,'post_id':alm.nextpage_post_id,'startpage':alm.nextpage_startpage};}
57
  if(alm.previous_post){alm.previous_post_id=alm.content.attr('data-previous-post-id');alm.previous_post_taxonomy=alm.content.attr('data-previous-post-taxonomy');}
58
  if(alm.comments==='true'){action='alm_comments_query';alm.posts_per_page=alm.comments_per_page;alm.comments_array={'comments':'true','post_id':alm.comments_post_id,'per_page':alm.comments_per_page,'type':alm.comments_type,'style':alm.comments_style,'template':alm.comments_template,'callback':alm.comments_callback,};}
59
  if(alm.cta==='true'){alm.cta_array={'cta':'true','cta_position':alm.cta_position,'cta_repeater':alm.cta_repeater,'cta_theme_repeater':alm.cta_theme_repeater,};}
60
  if(alm.restapi){var alm_template=wp.template(alm.restapi_template_id),rest_url=alm.restapi_base_url+'/'+alm.restapi_namespace+'/'+alm.restapi_endpoint,rest_data={posts_per_page:alm.posts_per_page,page:alm.page,offset:alm.offset,slug:alm.slug,canonical_url:alm.canonical_url,post_type:alm.post_type,post_format:alm.content.attr('data-post-format'),category:alm.content.attr('data-category'),category__not_in:alm.content.attr('data-category-not-in'),tag:alm.content.attr('data-tag'),tag__not_in:alm.content.attr('data-tag-not-in'),taxonomy:alm.content.attr('data-taxonomy'),taxonomy_terms:alm.content.attr('data-taxonomy-terms'),taxonomy_operator:alm.content.attr('data-taxonomy-operator'),taxonomy_relation:alm.content.attr('data-taxonomy-relation'),meta_key:alm.content.attr('data-meta-key'),meta_value:alm.content.attr('data-meta-value'),meta_compare:alm.content.attr('data-meta-compare'),meta_relation:alm.content.attr('data-meta-relation'),meta_type:alm.content.attr('data-meta-type'),author:alm.content.attr('data-author'),year:alm.content.attr('data-year'),month:alm.content.attr('data-month'),day:alm.content.attr('data-day'),post_status:alm.content.attr('data-post-status'),order:alm.content.attr('data-order'),orderby:alm.content.attr('data-orderby'),post__in:alm.content.attr('data-post-in'),post__not_in:alm.content.attr('data-post-not-in'),search:alm.content.attr('data-search'),custom_args:alm.content.attr('data-custom-args'),lang:alm.lang,preloaded:alm.preloaded,preloaded_amount:alm.preloaded_amount,seo_start_page:alm.start_page,id:el.attr('data-id')};$.ajax({type:"GET",url:rest_url,data:rest_data,dataType:"JSON",beforeSend:function(){if(alm.page!=1&&!alm.paging){alm.button.addClass('loading');}},success:function(results){var data,html=results.html,meta=results.meta,postcount=meta.postcount,totalposts=meta.totalposts;$.each(html,function(e){var result=html[e];if(alm.restapi_debug==='true'){console.log(result);}
61
  data+=alm_template(result);});var obj={'html':data,'meta':{'postcount':postcount,'totalposts':totalposts},}
62
  alm.AjaxLoadMore.success(obj,false);}});}
63
+ else{$.ajax({type:"GET",url:alm_localize.ajaxurl,dataType:"JSON",data:{action:action,query_type:queryType,nonce:alm_localize.alm_nonce,cache_id:alm.cache_id,repeater:alm.repeater,theme_repeater:alm.theme_repeater,acf:alm.acf_array,nextpage:alm.nextpage_array,cta:alm.cta_array,comments:alm.comments_array,post_type:alm.post_type,sticky_posts:alm.sticky_posts,post_format:alm.content.attr('data-post-format'),category:alm.content.attr('data-category'),category__not_in:alm.content.attr('data-category-not-in'),tag:alm.content.attr('data-tag'),tag__not_in:alm.content.attr('data-tag-not-in'),taxonomy:alm.content.attr('data-taxonomy'),taxonomy_terms:alm.content.attr('data-taxonomy-terms'),taxonomy_operator:alm.content.attr('data-taxonomy-operator'),taxonomy_relation:alm.content.attr('data-taxonomy-relation'),meta_key:alm.content.attr('data-meta-key'),meta_value:alm.content.attr('data-meta-value'),meta_compare:alm.content.attr('data-meta-compare'),meta_relation:alm.content.attr('data-meta-relation'),meta_type:alm.content.attr('data-meta-type'),author:alm.content.attr('data-author'),year:alm.content.attr('data-year'),month:alm.content.attr('data-month'),day:alm.content.attr('data-day'),post_status:alm.content.attr('data-post-status'),order:alm.content.attr('data-order'),orderby:alm.content.attr('data-orderby'),post__in:alm.content.attr('data-post-in'),post__not_in:alm.content.attr('data-post-not-in'),exclude:alm.content.attr('data-exclude'),search:alm.content.attr('data-search'),custom_args:alm.content.attr('data-custom-args'),posts_per_page:alm.posts_per_page,page:alm.page,offset:alm.offset,preloaded:alm.preloaded,preloaded_amount:alm.preloaded_amount,seo_start_page:alm.start_page,paging:alm.paging,previous_post:alm.previous_post,previous_post_id:alm.previous_post_id,previous_post_taxonomy:alm.previous_post_taxonomy,lang:alm.lang,slug:alm.slug,canonical_url:alm.canonical_url,id:el.attr('data-id')},beforeSend:function(){if(alm.page!=1&&!alm.paging){alm.button.addClass('loading');}},success:function(data){if(queryType==='standard'){alm.AjaxLoadMore.success(data,false);}
64
  else if(queryType==='totalpages'&&alm.paging&&alm.nextpage){if($.isFunction($.fn.almBuildPagination)){$.fn.almBuildPagination(data,alm);}}
65
  else if(queryType==='totalposts'&&alm.paging){if($.isFunction($.fn.almBuildPagination)){$.fn.almBuildPagination(data,alm);}}},error:function(jqXHR,textStatus,errorThrown){alm.AjaxLoadMore.error(jqXHR,textStatus,errorThrown);}});}};if(alm.paging){if(alm.nextpage){alm.AjaxLoadMore.ajax('totalpages');}else{alm.AjaxLoadMore.ajax('totalposts');}}
66
  alm.AjaxLoadMore.success=function(data,is_cache){if(alm.previous_post){alm.AjaxLoadMore.getPreviousPost();}
77
  else{if(alm.seo&&alm.page>0||alm.preloaded==='true'){var p=0;if(alm.preloaded==='true'){p=1;}
78
  var pagenum=(alm.page+1+p);if(alm.seo){if(alm.permalink==='default'){alm.el=$('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+''+alm.search_value+'&paged='+pagenum+'" data-page="'+pagenum+'" />');}else{alm.el=$('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+'page/'+pagenum+'/'+alm.search_value+'" data-page="'+pagenum+'" />');}}else{alm.el=$('<div class="alm-reveal" />');}}else{if(alm.seo){alm.el=$('<div class="alm-reveal alm-seo" data-url="'+alm.canonical_url+''+alm.search_value+'" data-page="1" />');}else{alm.el=$('<div class="alm-reveal" />');}}
79
  alm.el.append(alm.data).hide();}}}
80
+ alm.content.append(alm.el);if(alm.transition==='fade'){if(alm.images_loaded==='true'){alm.el.almWaitForImages().done(function(){alm.el.fadeIn(alm.speed,'alm_easeInOutQuad',function(){alm.loading=false;if(!alm.paging){alm.button.delay(alm.speed).removeClass('loading');alm.container.delay(alm.speed).removeClass('alm-loading');alm.AjaxLoadMore.resetBtnText();}
81
+ alm.AjaxLoadMore.triggerAddons(alm);});});}else{alm.el.fadeIn(alm.speed,'alm_easeInOutQuad',function(){alm.loading=false;if(!alm.paging){alm.button.delay(alm.speed).removeClass('loading');alm.container.delay(alm.speed).removeClass('loading');alm.AjaxLoadMore.resetBtnText();}
82
  alm.AjaxLoadMore.triggerAddons(alm);});}}else if(alm.transition==='none'){if(alm.images_loaded==='true'){alm.el.almWaitForImages().done(function(){alm.el.show();alm.AjaxLoadMore.triggerAddons(alm);});}else{alm.el.show();alm.AjaxLoadMore.triggerAddons(alm);}
83
+ alm.loading=false;if(!alm.paging){alm.button.delay(alm.speed).removeClass('loading');alm.container.delay(alm.speed).removeClass('loading');alm.AjaxLoadMore.resetBtnText();}}else{if(alm.images_loaded==='true'){alm.el.almWaitForImages().done(function(){alm.el.slideDown(alm.speed,'alm_easeInOutQuad',function(){alm.loading=false;if(!alm.paging){alm.button.delay(alm.speed).removeClass('loading');alm.container.delay(alm.speed).removeClass('loading');alm.AjaxLoadMore.resetBtnText();}
84
+ alm.AjaxLoadMore.triggerAddons(alm);});});}else{alm.el.slideDown(alm.speed,'alm_easeInOutQuad',function(){alm.loading=false;if(!alm.paging){alm.button.delay(alm.speed).removeClass('loading');alm.container.delay(alm.speed).removeClass('loading');alm.AjaxLoadMore.resetBtnText();}
85
  alm.AjaxLoadMore.triggerAddons(alm);});}}}else{if(!alm.init){$('.alm-paging-content',alm.el).html('').append(alm.data).almWaitForImages().done(function(){$('.alm-paging-loading',alm.el).fadeOut(alm.speed);if($.isFunction($.fn.almOnPagingComplete)){$.fn.almOnPagingComplete(alm);}
86
  alm.AjaxLoadMore.triggerAddons(alm);});}else{alm.AjaxLoadMore.triggerAddons(alm);}}
87
  if($.isFunction($.fn.almComplete)){if(alm.images_loaded==='true'){alm.el.almWaitForImages().done(function(){$.fn.almComplete(alm);});}else{$.fn.almComplete(alm);}}
113
  else if(alm.paging_init&&alm.nextpage){data=$('.alm-nextpage',alm.el).html();$('.alm-nextpage',alm.el).remove();alm.AjaxLoadMore.pagingNextpageInit(data);alm.paging_init=false;alm.init=false;}
114
  else{alm.AjaxLoadMore.loadPosts();}};$.fn.almGetParentContainer=function(){return alm.el.closest('#ajax-load-more');};$.fn.almGetObj=function(){return alm;};$.fn.almTriggerClick=function(){alm.button.trigger('click');};$.easing.alm_easeInOutQuad=function(x,t,b,c,d){if((t/=d/2)<1){return c/2*t*t+b;}
115
  return-c/2*((--t)*(t-2)-1)+b;};};$.fn.almFilter=function(transition,speed,data){if(data.target){$(".ajax-load-more-wrap[data-id='"+data.target+"']").each(function(e){var el=$(this);$.fn.almFilterTransition(transition,speed,data,el);});}else{$(".ajax-load-more-wrap").each(function(e){var el=$(this);$.fn.almFilterTransition(transition,speed,data,el);});}};$.fn.almFilterTransition=function(transition,speed,data,el){if(transition==='slide'){el.slideUp(speed,function(){$('.alm-listing',el).html('');$('.alm-btn-wrap',el).remove();el.fadeIn(speed);$.fn.almSetFilters(el,data);});}else if(transition==='fade'){el.fadeOut(speed,function(){$('.alm-listing',el).html('');$('.alm-btn-wrap',el).remove();el.fadeIn(speed);$.fn.almSetFilters(el,data);});}else{$('.alm-listing',el).html('');$('.alm-btn-wrap',el).remove();el.fadeIn(speed);$.fn.almSetFilters(el,data);}};$.fn.almSetFilters=function(el,data){$.each(data,function(key,value){key=key.replace(/\W+/g,'-').replace(/([a-z\d])([A-Z])/g,'$1-$2');$('.alm-listing',el).attr('data-'+key,value);});if($.isFunction($.fn.almFilterComplete)){$.fn.almFilterComplete();}
116
+ if(data.target){$(".ajax-load-more-wrap[data-id="+data.target+"]").ajaxloadmore();}else{$(".ajax-load-more-wrap").ajaxloadmore();}};$.fn.ajaxloadmore=function(){return this.each(function(e){$(this).data('alm',new $.ajaxloadmore($(this),e));});};if($(".ajax-load-more-wrap").length){$(".ajax-load-more-wrap").ajaxloadmore();}})(jQuery);;(function(factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory);}else if(typeof exports==='object'){module.exports=factory(require('jquery'));}else{factory(jQuery);}}(function($){var eventNamespace='almWaitForImages';$.almWaitForImages={hasImageProperties:['backgroundImage','listStyleImage','borderImage','borderCornerImage','cursor'],hasImageAttributes:['srcset']};$.expr[':']['has-src']=function(obj){return $(obj).is('img[src][src!=""]');};$.expr[':'].uncached=function(obj){if(!$(obj).is(':has-src')){return false;}
117
  return!obj.complete;};$.fn.almWaitForImages=function(){var allImgsLength=0;var allImgsLoaded=0;var deferred=$.Deferred();var finishedCallback;var eachCallback;var waitForAll;if($.isPlainObject(arguments[0])){waitForAll=arguments[0].waitForAll;eachCallback=arguments[0].each;finishedCallback=arguments[0].finished;}else{if(arguments.length===1&&$.type(arguments[0])==='boolean'){waitForAll=arguments[0];}else{finishedCallback=arguments[0];eachCallback=arguments[1];waitForAll=arguments[2];}}
118
  finishedCallback=finishedCallback||$.noop;eachCallback=eachCallback||$.noop;waitForAll=!!waitForAll;if(!$.isFunction(finishedCallback)||!$.isFunction(eachCallback)){throw new TypeError('An invalid callback was supplied.');}
119
  this.each(function(){var obj=$(this);var allImgs=[];var hasImgProperties=$.almWaitForImages.hasImageProperties||[];var hasImageAttributes=$.almWaitForImages.hasImageAttributes||[];var matchUrl=/url\(\s*(['"]?)(.*?)\1\s*\)/g;if(waitForAll){obj.find('*').addBack().each(function(){var element=$(this);if(element.is('img:has-src')){allImgs.push({src:element.attr('src'),element:element[0]});}
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: 2017-03-24 16:54-0500\n"
5
- "PO-Revision-Date: 2017-03-24 16:54-0500\n"
6
  "Last-Translator: Darren Cooney <dcooney@ecentricarts.com>\n"
7
  "Language-Team: \n"
8
  "Language: en_CA\n"
@@ -15,28 +15,28 @@ msgstr ""
15
  "X-Poedit-KeywordsList: __;_e\n"
16
  "X-Poedit-SearchPath-0: ..\n"
17
 
18
- #: ../admin/admin.php:94 ../admin/admin.php:153 ../admin/admin.php:721
19
- #: ../admin/admin.php:765 ../admin/admin.php:815
20
  msgid "You don't belong here."
21
  msgstr ""
22
 
23
  #: ../admin/admin.php:182 ../admin/editor/editor-build.php:72
24
- #: ../admin/views/licenses.php:65 ../admin/views/licenses.php:130
25
- #: ../admin/views/licenses.php:195 ../admin/views/licenses.php:261
26
- #: ../admin/views/licenses.php:328 ../admin/views/licenses.php:394
27
- #: ../admin/views/licenses.php:461 ../admin/views/licenses.php:526
28
- #: ../admin/views/licenses.php:590 ../admin/views/licenses.php:656
29
- #: ../admin/views/licenses.php:724
30
  msgid "Active"
31
  msgstr ""
32
 
33
  #: ../admin/admin.php:183 ../admin/editor/editor-build.php:73
34
- #: ../admin/views/licenses.php:69 ../admin/views/licenses.php:134
35
- #: ../admin/views/licenses.php:199 ../admin/views/licenses.php:265
36
- #: ../admin/views/licenses.php:332 ../admin/views/licenses.php:398
37
- #: ../admin/views/licenses.php:465 ../admin/views/licenses.php:530
38
- #: ../admin/views/licenses.php:594 ../admin/views/licenses.php:660
39
- #: ../admin/views/licenses.php:728
40
  msgid "Inactive"
41
  msgstr ""
42
 
@@ -45,7 +45,7 @@ msgid "Applying layout"
45
  msgstr ""
46
 
47
  #: ../admin/admin.php:185 ../admin/editor/editor-build.php:75
48
- #: ../admin/views/repeater-templates.php:250
49
  msgid "Template Updated"
50
  msgstr ""
51
 
@@ -70,149 +70,177 @@ msgstr ""
70
  msgid "Jump to Template"
71
  msgstr ""
72
 
73
- #: ../admin/admin.php:301
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  msgid ""
75
  "[Ajax Load More] Error opening default repeater template - Please check your "
76
  "file path and ensure your server is configured to allow Ajax Load More to "
77
  "read and write files within the /ajax-load-more/core/repeater directory"
78
  msgstr ""
79
 
80
- #: ../admin/admin.php:305
81
  msgid ""
82
  "[Ajax Load More] Error updating default repeater template - Please check "
83
  "your file path and ensure your server is configured to allow Ajax Load More "
84
  "to read and write files within the /ajax-load-more/core/repeater directory."
85
  msgstr ""
86
 
87
- #: ../admin/admin.php:679
88
  msgid "[Ajax Load More] Unable to open repeater template - "
89
  msgstr ""
90
 
91
- #: ../admin/admin.php:683
92
  msgid "[Ajax Load More] Error saving repeater template - "
93
  msgstr ""
94
 
95
- #: ../admin/admin.php:716
96
  msgid "Error Writing File"
97
  msgstr ""
98
 
99
- #: ../admin/admin.php:919 ../admin/shortcode-builder/shortcode-builder.php:848
100
  msgid "Container Type"
101
  msgstr ""
102
 
103
- #: ../admin/admin.php:927 ../admin/shortcode-builder/shortcode-builder.php:878
104
  msgid "Container Classes"
105
  msgstr ""
106
 
107
- #: ../admin/admin.php:935
108
  msgid "Disable CSS"
109
  msgstr ""
110
 
111
- #: ../admin/admin.php:943
112
  msgid "Button/Loading Style"
113
  msgstr ""
114
 
115
- #: ../admin/admin.php:951
116
  msgid "Button Classes"
117
  msgstr ""
118
 
119
- #: ../admin/admin.php:959
120
  msgid "Ajax Security"
121
  msgstr ""
122
 
123
- #: ../admin/admin.php:967
124
  msgid "Top of Page"
125
  msgstr ""
126
 
127
- #: ../admin/admin.php:975
128
  msgid "Dynamic Content"
129
  msgstr ""
130
 
131
- #: ../admin/admin.php:983
132
  msgid "Editor Button"
133
  msgstr ""
134
 
135
- #: ../admin/admin.php:991
136
  msgid "Error Notices"
137
  msgstr ""
138
 
139
- #: ../admin/admin.php:1062
140
  msgid ""
141
  "Customize the user experience of Ajax Load More by updating the fields below."
142
  msgstr ""
143
 
144
- #: ../admin/admin.php:1075
145
  msgid "The following settings affect the WordPress admin area only."
146
  msgstr ""
147
 
148
- #: ../admin/admin.php:1106
149
  msgid "I want to use my own CSS styles."
150
  msgstr ""
151
 
152
- #: ../admin/admin.php:1106
153
  msgid "View Ajax Load More CSS"
154
  msgstr ""
155
 
156
- #: ../admin/admin.php:1126
157
  msgid "Hide shortcode button in WYSIWYG editor."
158
  msgstr ""
159
 
160
- #: ../admin/admin.php:1147
161
  msgid ""
162
  "Display error messaging regarding repeater template updates in the browser "
163
  "console."
164
  msgstr ""
165
 
166
- #: ../admin/admin.php:1168
167
  msgid ""
168
  "Disable dynamic population of categories, tags and authors in the Shortcode "
169
  "Builder.<span style=\"display:block\">Recommended if you have an "
170
  "extraordinary number of categories, tags and/or authors."
171
  msgstr ""
172
 
173
- #: ../admin/admin.php:1189 ../admin/admin.php:1192
174
  msgid "Ajax Posts Here"
175
  msgstr ""
176
 
177
- #: ../admin/admin.php:1194
178
  msgid "You can modify the container type when building a shortcode."
179
  msgstr ""
180
 
181
- #: ../admin/admin.php:1211
182
  msgid ""
183
  "Add classes to Ajax Load More container - classes are applied globally and "
184
  "will appear with every instance of Ajax Load More. <span style=\"display:"
185
  "block\">You can also add classes when building a shortcode.</span>"
186
  msgstr ""
187
 
188
- #: ../admin/admin.php:1273
189
  msgid ""
190
- "Select an Ajax loading style - you can choose between a <strong>button</"
191
- "strong> or <strong>infinite scroll</strong>"
 
 
 
 
 
 
 
 
192
  msgstr ""
193
 
194
- #: ../admin/admin.php:1294
195
  msgid "Preview"
196
  msgstr ""
197
 
198
- #: ../admin/admin.php:1294
199
- #: ../admin/shortcode-builder/shortcode-builder.php:903
200
- #: ../core/classes/class.alm-shortcode.php:124
201
  msgid "Older Posts"
202
  msgstr ""
203
 
204
- #: ../admin/admin.php:1313
205
  msgid "Add classes to your <strong>Load More</strong> button"
206
  msgstr ""
207
 
208
- #: ../admin/admin.php:1356
209
  msgid ""
210
  "On initial page load, move the user's browser window to the top of the "
211
  "screen.<span style=\"display:block\">This <u>may</u> help prevent the "
212
  "loading of unnecessary posts.</span>"
213
  msgstr ""
214
 
215
- #: ../admin/admin.php:1377
216
  msgid ""
217
  "Enable <a href=\"https://codex.wordpress.org/WordPress_Nonces\" target="
218
  "\"_blank\">WP nonce</a> verification to help protect URLs against certain "
@@ -236,6 +264,68 @@ msgstr ""
236
  msgid "You are not allowed to be here"
237
  msgstr ""
238
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
239
  #: ../admin/includes/components/layout-list.php:3
240
  msgid "Apply Layout"
241
  msgstr ""
@@ -250,7 +340,7 @@ msgid ""
250
  msgstr ""
251
 
252
  #: ../admin/includes/components/repeater-options.php:2
253
- #: ../admin/shortcode-builder/shortcode-builder.php:828
254
  msgid "Options"
255
  msgstr ""
256
 
@@ -461,7 +551,7 @@ msgstr ""
461
  #: ../admin/shortcode-builder/includes/tax-query-options.php:5
462
  #: ../admin/shortcode-builder/includes/tax-query-options.php:50
463
  #: ../admin/shortcode-builder/includes/tax-query-options.php:81
464
- #: ../admin/shortcode-builder/shortcode-builder.php:596
465
  msgid "Select Taxonomy"
466
  msgstr ""
467
 
@@ -478,7 +568,7 @@ msgid "Taxonomy Operator:"
478
  msgstr ""
479
 
480
  #: ../admin/shortcode-builder/includes/tax-query-options.php:36
481
- #: ../admin/shortcode-builder/shortcode-builder.php:1428
482
  msgid "Relation:"
483
  msgstr ""
484
 
@@ -487,251 +577,293 @@ msgid ""
487
  "The logical relationship between each taxonomy when there is more than one."
488
  msgstr ""
489
 
490
- #: ../admin/shortcode-builder/shortcode-builder.php:1
491
- #: ../admin/views/examples.php:11 ../admin/views/repeater-templates.php:17
492
- msgid "Collapse All"
493
- msgstr ""
494
-
495
- #: ../admin/shortcode-builder/shortcode-builder.php:1
496
- #: ../admin/views/examples.php:11 ../admin/views/repeater-templates.php:18
497
- msgid "Expand All"
498
- msgstr ""
499
-
500
  #: ../admin/shortcode-builder/shortcode-builder.php:16
501
- #: ../admin/views/add-ons.php:6
502
- msgid "Add-ons"
503
  msgstr ""
504
 
505
  #: ../admin/shortcode-builder/shortcode-builder.php:21
506
- #: ../admin/views/add-ons.php:21 ../admin/views/licenses.php:44
507
- #: ../admin/views/settings.php:52
508
- msgid "Cache"
509
  msgstr ""
510
 
511
  #: ../admin/shortcode-builder/shortcode-builder.php:24
512
- msgid "Turn on content caching."
513
  msgstr ""
514
 
515
  #: ../admin/shortcode-builder/shortcode-builder.php:31
516
- #: ../admin/shortcode-builder/shortcode-builder.php:75
517
- #: ../admin/shortcode-builder/shortcode-builder.php:169
518
- #: ../admin/shortcode-builder/shortcode-builder.php:320
519
- #: ../admin/shortcode-builder/shortcode-builder.php:437
520
- #: ../admin/shortcode-builder/shortcode-builder.php:460
521
- #: ../admin/shortcode-builder/shortcode-builder.php:514
522
- #: ../admin/shortcode-builder/shortcode-builder.php:555
523
- #: ../admin/shortcode-builder/shortcode-builder.php:648
524
- #: ../admin/shortcode-builder/shortcode-builder.php:728
525
- #: ../admin/shortcode-builder/shortcode-builder.php:762
526
- #: ../admin/shortcode-builder/shortcode-builder.php:938
527
- #: ../admin/shortcode-builder/shortcode-builder.php:963
528
- #: ../admin/shortcode-builder/shortcode-builder.php:989
529
- #: ../admin/shortcode-builder/shortcode-builder.php:1036
 
530
  msgid "True"
531
  msgstr ""
532
 
533
  #: ../admin/shortcode-builder/shortcode-builder.php:35
534
- #: ../admin/shortcode-builder/shortcode-builder.php:79
535
- #: ../admin/shortcode-builder/shortcode-builder.php:173
536
- #: ../admin/shortcode-builder/shortcode-builder.php:324
537
- #: ../admin/shortcode-builder/shortcode-builder.php:441
538
- #: ../admin/shortcode-builder/shortcode-builder.php:464
539
- #: ../admin/shortcode-builder/shortcode-builder.php:518
540
- #: ../admin/shortcode-builder/shortcode-builder.php:559
541
- #: ../admin/shortcode-builder/shortcode-builder.php:652
542
- #: ../admin/shortcode-builder/shortcode-builder.php:732
543
- #: ../admin/shortcode-builder/shortcode-builder.php:766
544
- #: ../admin/shortcode-builder/shortcode-builder.php:942
545
- #: ../admin/shortcode-builder/shortcode-builder.php:967
546
- #: ../admin/shortcode-builder/shortcode-builder.php:993
547
- #: ../admin/shortcode-builder/shortcode-builder.php:1040
 
548
  msgid "False"
549
  msgstr ""
550
 
551
- #: ../admin/shortcode-builder/shortcode-builder.php:45
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
552
  msgid "Cache ID"
553
  msgstr ""
554
 
555
- #: ../admin/shortcode-builder/shortcode-builder.php:46
556
  msgid ""
557
  "You <u>must</u> generate a unique ID for this cached query - this unique ID "
558
  "will be used as a content identifier."
559
  msgstr ""
560
 
561
- #: ../admin/shortcode-builder/shortcode-builder.php:52
562
  msgid "Generate Cache ID"
563
  msgstr ""
564
 
565
- #: ../admin/shortcode-builder/shortcode-builder.php:64
566
- #: ../admin/views/add-ons.php:48 ../admin/views/licenses.php:109
567
  msgid "Call to Actions"
568
  msgstr ""
569
 
570
- #: ../admin/shortcode-builder/shortcode-builder.php:68
571
  msgid "Insert call to action block."
572
  msgstr ""
573
 
574
- #: ../admin/shortcode-builder/shortcode-builder.php:92
575
  msgid "CTA Positioning"
576
  msgstr ""
577
 
578
- #: ../admin/shortcode-builder/shortcode-builder.php:93
579
  msgid ""
580
  "Insert call to action <strong><em id=\"sequence-update-before-after"
581
  "\">before</em></strong> post #<strong><em id=\"sequence-update\">1</em></"
582
  "strong>"
583
  msgstr ""
584
 
585
- #: ../admin/shortcode-builder/shortcode-builder.php:98
586
  msgid "Before / After"
587
  msgstr ""
588
 
589
- #: ../admin/shortcode-builder/shortcode-builder.php:100
590
  msgid "Before"
591
  msgstr ""
592
 
593
- #: ../admin/shortcode-builder/shortcode-builder.php:101
594
  msgid "After"
595
  msgstr ""
596
 
597
- #: ../admin/shortcode-builder/shortcode-builder.php:105
598
  msgid "Post #"
599
  msgstr ""
600
 
601
- #: ../admin/shortcode-builder/shortcode-builder.php:116
602
- #: ../admin/shortcode-builder/shortcode-builder.php:788
603
  msgid "Template"
604
  msgstr ""
605
 
606
- #: ../admin/shortcode-builder/shortcode-builder.php:118
607
  msgid ""
608
  "Select the <a href=\"admin.php?page=ajax-load-more-repeaters\" target="
609
  "\"_parent\">repeater template</a> that will display your call to action."
610
  msgstr ""
611
 
612
- #: ../admin/shortcode-builder/shortcode-builder.php:125
613
  #, fuzzy
614
  msgid "-- Select Repeater --"
615
  msgstr "Sélectionnez province"
616
 
617
- #: ../admin/shortcode-builder/shortcode-builder.php:145
618
  msgid ""
619
  "Call to actions do NOT count as a post within an Ajax Load More loop.<br/>\n"
620
  " For example, if you set <strong>posts_per_page=\"5\"</"
621
  "strong> in your shortcode, 6 items will be displayed."
622
  msgstr ""
623
 
624
- #: ../admin/shortcode-builder/shortcode-builder.php:159
625
- #: ../admin/views/add-ons.php:75 ../admin/views/licenses.php:174
626
  msgid "Comments"
627
  msgstr ""
628
 
629
- #: ../admin/shortcode-builder/shortcode-builder.php:162
630
  msgid "Enable Ajax Load More to display blog comments."
631
  msgstr ""
632
 
633
- #: ../admin/shortcode-builder/shortcode-builder.php:184
634
- #: ../admin/shortcode-builder/shortcode-builder.php:337
635
- #: ../admin/shortcode-builder/shortcode-builder.php:569
636
- msgid "Post ID"
637
- msgstr ""
638
-
639
- #: ../admin/shortcode-builder/shortcode-builder.php:185
640
- #: ../admin/shortcode-builder/shortcode-builder.php:570
641
  msgid "The ID of the current single post."
642
  msgstr ""
643
 
644
- #: ../admin/shortcode-builder/shortcode-builder.php:196
645
  msgid "Comments Per Page"
646
  msgstr ""
647
 
648
- #: ../admin/shortcode-builder/shortcode-builder.php:197
649
  msgid "The number of top level items to show for each page of comments."
650
  msgstr ""
651
 
652
- #: ../admin/shortcode-builder/shortcode-builder.php:205
653
  msgid ""
654
  "<strong>Note</strong>: The amount selected does NOT include comment replies."
655
  msgstr ""
656
 
657
- #: ../admin/shortcode-builder/shortcode-builder.php:211
658
  msgid "Comment Type"
659
  msgstr ""
660
 
661
- #: ../admin/shortcode-builder/shortcode-builder.php:212
662
  msgid "The type of comment(s) to display."
663
  msgstr ""
664
 
665
- #: ../admin/shortcode-builder/shortcode-builder.php:217
666
  msgid "Comment"
667
  msgstr ""
668
 
669
- #: ../admin/shortcode-builder/shortcode-builder.php:218
670
  msgid "All"
671
  msgstr ""
672
 
673
- #: ../admin/shortcode-builder/shortcode-builder.php:219
674
  msgid "Trackback"
675
  msgstr ""
676
 
677
- #: ../admin/shortcode-builder/shortcode-builder.php:220
678
  msgid "Pingback"
679
  msgstr ""
680
 
681
- #: ../admin/shortcode-builder/shortcode-builder.php:221
682
  msgid "Pings"
683
  msgstr ""
684
 
685
- #: ../admin/shortcode-builder/shortcode-builder.php:229
686
  msgid "Comment Style"
687
  msgstr ""
688
 
689
- #: ../admin/shortcode-builder/shortcode-builder.php:230
690
  msgid "Select the HTML container style for your comments."
691
  msgstr ""
692
 
693
- #: ../admin/shortcode-builder/shortcode-builder.php:255
694
  msgid "Comment Template"
695
  msgstr ""
696
 
697
- #: ../admin/shortcode-builder/shortcode-builder.php:256
698
  msgid "Select a repeater template that will display comment data."
699
  msgstr ""
700
 
701
- #: ../admin/shortcode-builder/shortcode-builder.php:262
702
- #: ../admin/shortcode-builder/shortcode-builder.php:1070
703
  msgid "None"
704
  msgstr ""
705
 
706
- #: ../admin/shortcode-builder/shortcode-builder.php:263
707
  msgid "Default"
708
  msgstr ""
709
 
710
- #: ../admin/shortcode-builder/shortcode-builder.php:275
711
  msgid ""
712
  "<strong>Note</strong>: <span>None</span> will use the default WordPress "
713
  "comment layout."
714
  msgstr ""
715
 
716
- #: ../admin/shortcode-builder/shortcode-builder.php:284
717
  msgid "Callback Function"
718
  msgstr ""
719
 
720
- #: ../admin/shortcode-builder/shortcode-builder.php:285
721
  msgid ""
722
  "A custom <a href=\"https://codex.wordpress.org/Function_Reference/"
723
  "wp_list_comments#Arguments\" target=\"_blank\">callback</a> function that "
724
  "will display each comment."
725
  msgstr ""
726
 
727
- #: ../admin/shortcode-builder/shortcode-builder.php:293
728
  msgid ""
729
  "<strong>Note</strong>: The majority of premium themes have a custom callback "
730
  "function for displaying comments. Please see comments.php or functions.php "
731
  "within your theme directory to locate the callback function for your theme."
732
  msgstr ""
733
 
734
- #: ../admin/shortcode-builder/shortcode-builder.php:298
735
  msgid ""
736
  "You must add the comments shortcode directly to your single template file "
737
  "using the <a href=\"https://developer.wordpress.org/reference/functions/"
@@ -740,85 +872,81 @@ msgid ""
740
  "\"_blank\">View documentation</a>"
741
  msgstr ""
742
 
743
- #: ../admin/shortcode-builder/shortcode-builder.php:310
744
- #: ../admin/views/add-ons.php:154 ../admin/views/licenses.php:373
745
  #, fuzzy
746
  msgid "Next Page"
747
  msgstr "Imprimer cette page"
748
 
749
- #: ../admin/shortcode-builder/shortcode-builder.php:313
750
  msgid "Enable the infinite scrolling of multipage WordPress content using the"
751
  msgstr ""
752
 
753
- #: ../admin/shortcode-builder/shortcode-builder.php:313
754
  msgid "Quicktag"
755
  msgstr ""
756
 
757
- #: ../admin/shortcode-builder/shortcode-builder.php:338
758
- msgid "The ID of the current page/post."
759
- msgstr ""
760
-
761
- #: ../admin/shortcode-builder/shortcode-builder.php:350
762
  msgid "URL Rewrite"
763
  msgstr ""
764
 
765
- #: ../admin/shortcode-builder/shortcode-builder.php:351
766
  msgid "Update the browser address bar as pages come into view"
767
  msgstr ""
768
 
769
- #: ../admin/shortcode-builder/shortcode-builder.php:358
770
  msgid "Yes, update the URL"
771
  msgstr ""
772
 
773
- #: ../admin/shortcode-builder/shortcode-builder.php:370
774
  msgid "Google Analytics"
775
  msgstr ""
776
 
777
- #: ../admin/shortcode-builder/shortcode-builder.php:371
778
  msgid ""
779
  "You must have a reference to your Google Analytics tracking code already on "
780
  "the page"
781
  msgstr ""
782
 
783
- #: ../admin/shortcode-builder/shortcode-builder.php:373
784
  msgid "Each time a page is loaded it will count as a pageview"
785
  msgstr ""
786
 
787
- #: ../admin/shortcode-builder/shortcode-builder.php:380
788
  msgid "Yes, send pageviews to Google Analytics"
789
  msgstr ""
790
 
791
- #: ../admin/shortcode-builder/shortcode-builder.php:391
792
  msgid "Scroll to Page"
793
  msgstr ""
794
 
795
- #: ../admin/shortcode-builder/shortcode-builder.php:392
796
  msgid "Set Scroll Speed to 0 to disable scrolling to page"
797
  msgstr ""
798
 
799
- #: ../admin/shortcode-builder/shortcode-builder.php:395
800
  msgid "Scroll users automatically to the next page on 'Load More' button click"
801
  msgstr ""
802
 
803
- #: ../admin/shortcode-builder/shortcode-builder.php:401
804
  msgid "Scroll Speed"
805
  msgstr ""
806
 
807
- #: ../admin/shortcode-builder/shortcode-builder.php:402
808
  msgid "Scrolling speed in milliseconds (e.g. 1 second = 1000)"
809
  msgstr ""
810
 
811
- #: ../admin/shortcode-builder/shortcode-builder.php:408
812
  msgid "Scroll Top"
813
  msgstr ""
814
 
815
- #: ../admin/shortcode-builder/shortcode-builder.php:409
816
  msgid ""
817
  "The scrolltop position of the window (used with scrolling and fwd/back "
818
  "browser buttons)"
819
  msgstr ""
820
 
821
- #: ../admin/shortcode-builder/shortcode-builder.php:416
822
  msgid ""
823
  "You must add the Next Page shortcode directly to your single template file "
824
  "using the <a href=\"https://developer.wordpress.org/reference/functions/"
@@ -827,94 +955,94 @@ msgid ""
827
  "\"_blank\">View documentation</a>"
828
  msgstr ""
829
 
830
- #: ../admin/shortcode-builder/shortcode-builder.php:428
831
- #: ../admin/views/add-ons.php:180 ../admin/views/licenses.php:440
832
- #: ../admin/views/settings.php:56
833
  msgid "Paging"
834
  msgstr ""
835
 
836
- #: ../admin/shortcode-builder/shortcode-builder.php:430
837
  msgid "Replace infinite scrolling with a paged ajax navigation system."
838
  msgstr ""
839
 
840
- #: ../admin/shortcode-builder/shortcode-builder.php:452
841
  msgid "Paging Controls"
842
  msgstr ""
843
 
844
- #: ../admin/shortcode-builder/shortcode-builder.php:453
845
  msgid "Show (&laquo;)previous and next(&raquo;) buttons."
846
  msgstr ""
847
 
848
- #: ../admin/shortcode-builder/shortcode-builder.php:473
849
  msgid "Paging Navigation Classes"
850
  msgstr ""
851
 
852
- #: ../admin/shortcode-builder/shortcode-builder.php:474
853
  msgid "Add custom CSS classes to the paging navigation menu."
854
  msgstr ""
855
 
856
- #: ../admin/shortcode-builder/shortcode-builder.php:485
857
  msgid "Show at Most"
858
  msgstr ""
859
 
860
- #: ../admin/shortcode-builder/shortcode-builder.php:486
861
  msgid ""
862
  "The maximum amount of page menu items to show at a time. <br/.>0 = no maximum"
863
  msgstr ""
864
 
865
- #: ../admin/shortcode-builder/shortcode-builder.php:504
866
- #: ../admin/views/add-ons.php:207 ../admin/views/licenses.php:505
867
  msgid "Preloaded"
868
  msgstr ""
869
 
870
- #: ../admin/shortcode-builder/shortcode-builder.php:507
871
  msgid "Preload posts prior to making Ajax requests."
872
  msgstr ""
873
 
874
- #: ../admin/shortcode-builder/shortcode-builder.php:528
875
  msgid "Preload Amount"
876
  msgstr ""
877
 
878
- #: ../admin/shortcode-builder/shortcode-builder.php:529
879
  msgid "Enter the number of posts to preload."
880
  msgstr ""
881
 
882
- #: ../admin/shortcode-builder/shortcode-builder.php:545
883
- #: ../admin/views/add-ons.php:233 ../admin/views/licenses.php:569
884
- #: ../admin/views/settings.php:58
885
  msgid "Previous Post"
886
  msgstr ""
887
 
888
- #: ../admin/shortcode-builder/shortcode-builder.php:548
889
  msgid "Enable the infinite scrolling of single posts."
890
  msgstr ""
891
 
892
- #: ../admin/shortcode-builder/shortcode-builder.php:582
893
- #: ../admin/shortcode-builder/shortcode-builder.php:1368
894
  msgid "Taxonomy"
895
  msgstr ""
896
 
897
- #: ../admin/shortcode-builder/shortcode-builder.php:582
898
  msgid ""
899
  "Selecting a taxonomy means only previous posts from the same taxonomy will "
900
  "be returned"
901
  msgstr ""
902
 
903
- #: ../admin/shortcode-builder/shortcode-builder.php:583
904
  msgid "Query previous posts from the same taxonomy."
905
  msgstr ""
906
 
907
- #: ../admin/shortcode-builder/shortcode-builder.php:597
908
- #: ../admin/shortcode-builder/shortcode-builder.php:1249
909
  msgid "Category"
910
  msgstr ""
911
 
912
- #: ../admin/shortcode-builder/shortcode-builder.php:598
913
- #: ../admin/shortcode-builder/shortcode-builder.php:1309
914
  msgid "Tag"
915
  msgstr ""
916
 
917
- #: ../admin/shortcode-builder/shortcode-builder.php:612
918
  msgid ""
919
  "You must add the Previous Post shortcode directly to your single template "
920
  "file using the <a href=\"https://developer.wordpress.org/reference/functions/"
@@ -923,84 +1051,84 @@ msgid ""
923
  "target=\"_blank\">View documentation</a>"
924
  msgstr ""
925
 
926
- #: ../admin/shortcode-builder/shortcode-builder.php:638
927
- #: ../admin/views/settings.php:60
928
  msgid "REST API"
929
  msgstr ""
930
 
931
- #: ../admin/shortcode-builder/shortcode-builder.php:641
932
  msgid "Enable the WordPress REST API."
933
  msgstr ""
934
 
935
- #: ../admin/shortcode-builder/shortcode-builder.php:665
936
  msgid "Base URL"
937
  msgstr ""
938
 
939
- #: ../admin/shortcode-builder/shortcode-builder.php:666
940
  msgid "Set a default Base URL in the Ajax Load More settings panel"
941
  msgstr ""
942
 
943
- #: ../admin/shortcode-builder/shortcode-builder.php:667
944
  msgid "Enter the base URL to your installation of the REST API."
945
  msgstr ""
946
 
947
- #: ../admin/shortcode-builder/shortcode-builder.php:679
948
  msgid "Namespace"
949
  msgstr ""
950
 
951
- #: ../admin/shortcode-builder/shortcode-builder.php:680
952
  msgid "Set a default Namespace in the Ajax Load More settings panel"
953
  msgstr ""
954
 
955
- #: ../admin/shortcode-builder/shortcode-builder.php:681
956
  msgid "Enter the custom namespace for this Ajax Load More query."
957
  msgstr ""
958
 
959
- #: ../admin/shortcode-builder/shortcode-builder.php:693
960
  msgid "Endpoint"
961
  msgstr ""
962
 
963
- #: ../admin/shortcode-builder/shortcode-builder.php:694
964
  msgid "Set a default Endpoint in the Ajax Load More settings panel"
965
  msgstr ""
966
 
967
- #: ../admin/shortcode-builder/shortcode-builder.php:695
968
  msgid "Enter your custom endpoint for this Ajax Load More query."
969
  msgstr ""
970
 
971
- #: ../admin/shortcode-builder/shortcode-builder.php:707
972
  msgid "Template ID"
973
  msgstr ""
974
 
975
- #: ../admin/shortcode-builder/shortcode-builder.php:707
976
  msgid ""
977
  "Ajax Load More references this ID while looping and displaying your data. "
978
  "You must still select a repeater template for this instance of Ajax Load More"
979
  msgstr ""
980
 
981
- #: ../admin/shortcode-builder/shortcode-builder.php:708
982
  msgid ""
983
  "Enter the ID of your javascript template.<br/><br/>e.g. <em>tmpl-alm-"
984
  "template</em> = <em>alm-template</em>"
985
  msgstr ""
986
 
987
- #: ../admin/shortcode-builder/shortcode-builder.php:708
988
- #: ../admin/shortcode-builder/shortcode-builder.php:1254
989
- #: ../admin/shortcode-builder/shortcode-builder.php:1313
990
- #: ../admin/shortcode-builder/shortcode-builder.php:1513
991
  msgid "View Example"
992
  msgstr ""
993
 
994
- #: ../admin/shortcode-builder/shortcode-builder.php:720
995
  msgid "Debug Mode"
996
  msgstr ""
997
 
998
- #: ../admin/shortcode-builder/shortcode-builder.php:721
999
  msgid ""
1000
  "Enable debugging (console.log) of REST API responses in the browser console. "
1001
  msgstr ""
1002
 
1003
- #: ../admin/shortcode-builder/shortcode-builder.php:739
1004
  msgid ""
1005
  "Visit <a href=\"http://v2.wp-api.org/\" target=\"_blank\">http://v2.wp-api."
1006
  "org</a> for documentation on creating custom <a href=\"http://v2.wp-api.org/"
@@ -1008,465 +1136,469 @@ msgid ""
1008
  "More."
1009
  msgstr ""
1010
 
1011
- #: ../admin/shortcode-builder/shortcode-builder.php:752
1012
  msgid "SEO (Search Engine Optimization)"
1013
  msgstr ""
1014
 
1015
- #: ../admin/shortcode-builder/shortcode-builder.php:755
1016
  msgid ""
1017
  "Enable address bar URL rewrites as users page through ajax loaded content."
1018
  msgstr ""
1019
 
1020
- #: ../admin/shortcode-builder/shortcode-builder.php:783
1021
  msgid "Display Settings"
1022
  msgstr ""
1023
 
1024
- #: ../admin/shortcode-builder/shortcode-builder.php:792
1025
  msgid "Repeater Template"
1026
  msgstr ""
1027
 
1028
- #: ../admin/shortcode-builder/shortcode-builder.php:794
1029
  msgid ""
1030
  "Select which <a href=\"admin.php?page=ajax-load-more-repeaters\" target="
1031
  "\"_parent\">repeater template</a> you would like to use."
1032
  msgstr ""
1033
 
1034
- #: ../admin/shortcode-builder/shortcode-builder.php:832
1035
  msgid "ID"
1036
  msgstr ""
1037
 
1038
- #: ../admin/shortcode-builder/shortcode-builder.php:832
1039
  msgid ""
1040
  "Adding a unique ID will allow you target this specific Ajax Load More "
1041
  "instance with the alm_query_args_id() filter."
1042
  msgstr ""
1043
 
1044
- #: ../admin/shortcode-builder/shortcode-builder.php:833
1045
  msgid "Set a unique ID for this Ajax Load More instance."
1046
  msgstr ""
1047
 
1048
- #: ../admin/shortcode-builder/shortcode-builder.php:840
1049
  msgid "Generate Unique ID"
1050
  msgstr ""
1051
 
1052
- #: ../admin/shortcode-builder/shortcode-builder.php:848
1053
  msgid ""
1054
  "You can define a global container type on the Ajax Load More settings screen"
1055
  msgstr ""
1056
 
1057
- #: ../admin/shortcode-builder/shortcode-builder.php:849
1058
  msgid ""
1059
  "Override the global Container Type that was set on <a href=\"admin.php?"
1060
  "page=ajax-load-more\">ALM Settings page</a>."
1061
  msgstr ""
1062
 
1063
- #: ../admin/shortcode-builder/shortcode-builder.php:878
1064
  msgid ""
1065
  "You can define global container classes on the Ajax Load More settings screen"
1066
  msgstr ""
1067
 
1068
- #: ../admin/shortcode-builder/shortcode-builder.php:879
1069
  msgid ""
1070
  "Add custom CSS classes to the Ajax Load More container. <br/><br/> e.g. "
1071
  "portfolio-listing large-12 etc"
1072
  msgstr ""
1073
 
1074
- #: ../admin/shortcode-builder/shortcode-builder.php:893
1075
  msgid "Button Labels"
1076
  msgstr ""
1077
 
1078
- #: ../admin/shortcode-builder/shortcode-builder.php:898
1079
  msgid "Label"
1080
  msgstr ""
1081
 
1082
- #: ../admin/shortcode-builder/shortcode-builder.php:899
1083
  msgid "Customize the text of the <em>Load More</em> button."
1084
  msgstr ""
1085
 
1086
- #: ../admin/shortcode-builder/shortcode-builder.php:911
1087
  msgid "Loading Label"
1088
  msgstr ""
1089
 
1090
- #: ../admin/shortcode-builder/shortcode-builder.php:911
1091
  msgid "Leave field empty to not update text while loading content"
1092
  msgstr ""
1093
 
1094
- #: ../admin/shortcode-builder/shortcode-builder.php:912
1095
  msgid ""
1096
  "Update the text of the <em>Load More</em> button while content is loading."
1097
  msgstr ""
1098
 
1099
- #: ../admin/shortcode-builder/shortcode-builder.php:916
1100
  msgid "Loading Posts..."
1101
  msgstr ""
1102
 
1103
- #: ../admin/shortcode-builder/shortcode-builder.php:926
1104
  msgid "Images Loaded"
1105
  msgstr ""
1106
 
1107
- #: ../admin/shortcode-builder/shortcode-builder.php:929
1108
  msgid "Wait for all images to load before displaying ajax loaded content"
1109
  msgstr ""
1110
 
1111
- #: ../admin/shortcode-builder/shortcode-builder.php:930
1112
  msgid "Background images are currently not supported"
1113
  msgstr ""
1114
 
1115
- #: ../admin/shortcode-builder/shortcode-builder.php:953
1116
  msgid "Pause"
1117
  msgstr ""
1118
 
1119
- #: ../admin/shortcode-builder/shortcode-builder.php:956
1120
  msgid ""
1121
  "Do <u>NOT</u> load any posts until user clicks the <em>Load More</em> button."
1122
  msgstr ""
1123
 
1124
- #: ../admin/shortcode-builder/shortcode-builder.php:978
1125
  msgid "Scrolling"
1126
  msgstr ""
1127
 
1128
- #: ../admin/shortcode-builder/shortcode-builder.php:981
1129
  msgid "Enable Scrolling"
1130
  msgstr ""
1131
 
1132
- #: ../admin/shortcode-builder/shortcode-builder.php:982
1133
  msgid "Load more posts as the user scrolls the page."
1134
  msgstr ""
1135
 
1136
- #: ../admin/shortcode-builder/shortcode-builder.php:1003
1137
  msgid "Scroll Distance"
1138
  msgstr ""
1139
 
1140
- #: ../admin/shortcode-builder/shortcode-builder.php:1003
1141
  msgid ""
1142
  "Distance is based on the position of the loading button from the bottom of "
1143
  "the screen"
1144
  msgstr ""
1145
 
1146
- #: ../admin/shortcode-builder/shortcode-builder.php:1004
1147
  msgid ""
1148
  "The distance from the bottom of the screen to trigger loading of posts. "
1149
  "(Default = 150)"
1150
  msgstr ""
1151
 
1152
- #: ../admin/shortcode-builder/shortcode-builder.php:1016
1153
  msgid "Maximum Pages"
1154
  msgstr ""
1155
 
1156
- #: ../admin/shortcode-builder/shortcode-builder.php:1016
1157
  msgid "If using an Infinite Scroll button style you should set this to 0"
1158
  msgstr ""
1159
 
1160
- #: ../admin/shortcode-builder/shortcode-builder.php:1017
1161
  msgid "Maximum number of pages to load while scrolling. (0 = unlimited)"
1162
  msgstr ""
1163
 
1164
- #: ../admin/shortcode-builder/shortcode-builder.php:1029
1165
  msgid "Pause Override"
1166
  msgstr ""
1167
 
1168
- #: ../admin/shortcode-builder/shortcode-builder.php:1030
1169
  msgid ""
1170
  "Allow scrolling to override the Pause parameter and trigger the loading of "
1171
  "posts on scroll."
1172
  msgstr ""
1173
 
1174
- #: ../admin/shortcode-builder/shortcode-builder.php:1051
1175
  msgid "Transition"
1176
  msgstr ""
1177
 
1178
- #: ../admin/shortcode-builder/shortcode-builder.php:1054
1179
  msgid "Transition Type"
1180
  msgstr ""
1181
 
1182
- #: ../admin/shortcode-builder/shortcode-builder.php:1055
1183
  msgid "Select a loading transition style."
1184
  msgstr ""
1185
 
1186
- #: ../admin/shortcode-builder/shortcode-builder.php:1062
1187
  msgid "Slide"
1188
  msgstr ""
1189
 
1190
- #: ../admin/shortcode-builder/shortcode-builder.php:1066
1191
  msgid "Fade"
1192
  msgstr ""
1193
 
1194
- #: ../admin/shortcode-builder/shortcode-builder.php:1080
1195
  msgid "Transition Speed"
1196
  msgstr ""
1197
 
1198
- #: ../admin/shortcode-builder/shortcode-builder.php:1080
1199
  msgid "0.5 seconds = 500, 1 second = 1000 etc."
1200
  msgstr ""
1201
 
1202
- #: ../admin/shortcode-builder/shortcode-builder.php:1081
1203
  msgid "The speed of the loading transition in milliseconds"
1204
  msgstr ""
1205
 
1206
- #: ../admin/shortcode-builder/shortcode-builder.php:1093
1207
  msgid "Transition Container"
1208
  msgstr ""
1209
 
1210
- #: ../admin/shortcode-builder/shortcode-builder.php:1093
1211
  msgid ""
1212
  "Removing the transition container may have undesired results and is not "
1213
  "recommended."
1214
  msgstr ""
1215
 
1216
- #: ../admin/shortcode-builder/shortcode-builder.php:1094
1217
  msgid "Remove the Ajax Load More (.alm-reveal) loading container."
1218
  msgstr ""
1219
 
1220
- #: ../admin/shortcode-builder/shortcode-builder.php:1101
1221
  msgid "Remove Container"
1222
  msgstr ""
1223
 
1224
- #: ../admin/shortcode-builder/shortcode-builder.php:1112
1225
  msgid "Destroy After"
1226
  msgstr ""
1227
 
1228
- #: ../admin/shortcode-builder/shortcode-builder.php:1115
1229
  msgid ""
1230
  "Remove ajax load more functionality after '<em>n</em>' number of pages have "
1231
  "been loaded."
1232
  msgstr ""
1233
 
1234
- #: ../admin/shortcode-builder/shortcode-builder.php:1133
1235
  msgid "Query Parameters"
1236
  msgstr ""
1237
 
1238
- #: ../admin/shortcode-builder/shortcode-builder.php:1137
1239
  msgid "Posts Per Page"
1240
  msgstr ""
1241
 
1242
- #: ../admin/shortcode-builder/shortcode-builder.php:1140
1243
  msgid "Select the number of posts to load with each request."
1244
  msgstr ""
1245
 
1246
- #: ../admin/shortcode-builder/shortcode-builder.php:1159
1247
  msgid "Post Type"
1248
  msgstr ""
1249
 
1250
- #: ../admin/shortcode-builder/shortcode-builder.php:1164
1251
  msgid "Select the Post Types to include in this Ajax Load More query."
1252
  msgstr ""
1253
 
1254
- #: ../admin/shortcode-builder/shortcode-builder.php:1178
1255
  msgid "Any"
1256
  msgstr ""
1257
 
1258
- #: ../admin/shortcode-builder/shortcode-builder.php:1190
1259
  msgid "Sticky Posts"
1260
  msgstr ""
1261
 
1262
- #: ../admin/shortcode-builder/shortcode-builder.php:1190
1263
  msgid "Sticky posts are only available for Posts."
1264
  msgstr ""
1265
 
1266
- #: ../admin/shortcode-builder/shortcode-builder.php:1191
1267
  msgid ""
1268
  "Preserve the ordering of sticky posts by having them appear first in the "
1269
  "Ajax listing."
1270
  msgstr ""
1271
 
1272
- #: ../admin/shortcode-builder/shortcode-builder.php:1198
1273
  msgid "Enable Sticky Posts"
1274
  msgstr ""
1275
 
1276
- #: ../admin/shortcode-builder/shortcode-builder.php:1220
1277
  msgid "Post Format"
1278
  msgstr ""
1279
 
1280
- #: ../admin/shortcode-builder/shortcode-builder.php:1223
1281
  msgid ""
1282
  "Select a <a href=\"http://codex.wordpress.org/Post_Formats\" target=\"_blank"
1283
  "\">Post Format</a> to query."
1284
  msgstr ""
1285
 
1286
- #: ../admin/shortcode-builder/shortcode-builder.php:1226
1287
  msgid "Select Post Format"
1288
  msgstr ""
1289
 
1290
- #: ../admin/shortcode-builder/shortcode-builder.php:1227
1291
  msgid "Standard"
1292
  msgstr ""
1293
 
1294
- #: ../admin/shortcode-builder/shortcode-builder.php:1253
1295
  msgid ""
1296
  "A comma separated list of categories to include by slug. (design, research "
1297
  "etc...)"
1298
  msgstr ""
1299
 
1300
- #: ../admin/shortcode-builder/shortcode-builder.php:1276
1301
- #: ../admin/shortcode-builder/shortcode-builder.php:1334
1302
- #: ../admin/shortcode-builder/shortcode-builder.php:1512
1303
  msgid "Exclude"
1304
  msgstr ""
1305
 
1306
- #: ../admin/shortcode-builder/shortcode-builder.php:1277
1307
  msgid ""
1308
  "A comma separated list of categories to exclude by ID. (3, 12, 35 etc..)"
1309
  msgstr ""
1310
 
1311
- #: ../admin/shortcode-builder/shortcode-builder.php:1312
1312
- #: ../admin/shortcode-builder/shortcode-builder.php:1501
1313
  msgid "Include"
1314
  msgstr ""
1315
 
1316
- #: ../admin/shortcode-builder/shortcode-builder.php:1313
1317
  msgid ""
1318
  "A comma separated list of tags to include by slug. (toronto, canada etc...)"
1319
  msgstr ""
1320
 
1321
- #: ../admin/shortcode-builder/shortcode-builder.php:1335
1322
  msgid "A comma separated list of tags to exclude by ID. (30, 12, 99 etc..)"
1323
  msgstr ""
1324
 
1325
- #: ../admin/shortcode-builder/shortcode-builder.php:1371
1326
  msgid "Select a taxonomy then select the terms and an operator."
1327
  msgstr ""
1328
 
1329
- #: ../admin/shortcode-builder/shortcode-builder.php:1376
1330
- #: ../admin/shortcode-builder/shortcode-builder.php:1442
1331
  msgid "Add Another"
1332
  msgstr ""
1333
 
1334
- #: ../admin/shortcode-builder/shortcode-builder.php:1386
1335
  msgid "Date"
1336
  msgstr ""
1337
 
1338
- #: ../admin/shortcode-builder/shortcode-builder.php:1389
1339
  msgid ""
1340
  "Enter a year, month(number) and day to query by date archive.<br/>&raquo; <a "
1341
  "href=\"admin.php?page=ajax-load-more-examples#example-date\">View Example</a>"
1342
  msgstr ""
1343
 
1344
- #: ../admin/shortcode-builder/shortcode-builder.php:1395
1345
  msgid "Year:"
1346
  msgstr ""
1347
 
1348
- #: ../admin/shortcode-builder/shortcode-builder.php:1399
1349
  msgid "Month:"
1350
  msgstr ""
1351
 
1352
- #: ../admin/shortcode-builder/shortcode-builder.php:1403
1353
  msgid "Day:"
1354
  msgstr ""
1355
 
1356
- #: ../admin/shortcode-builder/shortcode-builder.php:1414
1357
  msgid "Custom Fields (Meta_Query)"
1358
  msgstr ""
1359
 
1360
- #: ../admin/shortcode-builder/shortcode-builder.php:1417
1361
  msgid ""
1362
  "Query for <a href=\"http://codex.wordpress.org/Class_Reference/WP_Meta_Query"
1363
  "\" target=\"_blank\">custom field</a> by entering a custom field key, value "
1364
  "and operator."
1365
  msgstr ""
1366
 
1367
- #: ../admin/shortcode-builder/shortcode-builder.php:1428
1368
  msgid ""
1369
  "The logical relationship between each custom field when there is more than "
1370
  "one."
1371
  msgstr ""
1372
 
1373
- #: ../admin/shortcode-builder/shortcode-builder.php:1458
1374
  msgid "Author"
1375
  msgstr ""
1376
 
1377
- #: ../admin/shortcode-builder/shortcode-builder.php:1461
1378
  msgid "Select an Author to query(by ID)."
1379
  msgstr ""
1380
 
1381
- #: ../admin/shortcode-builder/shortcode-builder.php:1482
1382
  msgid "Search Term"
1383
  msgstr ""
1384
 
1385
- #: ../admin/shortcode-builder/shortcode-builder.php:1485
1386
  msgid "Enter a search term to query."
1387
  msgstr ""
1388
 
1389
- #: ../admin/shortcode-builder/shortcode-builder.php:1489
1390
  msgid "Enter search term"
1391
  msgstr ""
1392
 
1393
- #: ../admin/shortcode-builder/shortcode-builder.php:1498
1394
  msgid "Post Parameters"
1395
  msgstr ""
1396
 
1397
- #: ../admin/shortcode-builder/shortcode-builder.php:1502
1398
  msgid "A comma separated list of post ID's to query."
1399
  msgstr ""
1400
 
1401
- #: ../admin/shortcode-builder/shortcode-builder.php:1506
1402
  msgid "225, 340, 818, etc..."
1403
  msgstr ""
1404
 
1405
- #: ../admin/shortcode-builder/shortcode-builder.php:1513
1406
  msgid "A comma separated list of post ID's to exclude from query."
1407
  msgstr ""
1408
 
1409
- #: ../admin/shortcode-builder/shortcode-builder.php:1523
1410
  msgid "Post Status"
1411
  msgstr ""
1412
 
1413
- #: ../admin/shortcode-builder/shortcode-builder.php:1523
1414
  msgid ""
1415
  "Post Status parameters are only available for logged in (admin) users. Non "
1416
  "logged in users will only have access to view content in a 'publish' or "
1417
  "'inherit' state. "
1418
  msgstr ""
1419
 
1420
- #: ../admin/shortcode-builder/shortcode-builder.php:1524
1421
  msgid "Select status of the post."
1422
  msgstr ""
1423
 
1424
- #: ../admin/shortcode-builder/shortcode-builder.php:1529
1425
  msgid "Published"
1426
  msgstr ""
1427
 
1428
- #: ../admin/shortcode-builder/shortcode-builder.php:1546
1429
  msgid "Ordering"
1430
  msgstr ""
1431
 
1432
- #: ../admin/shortcode-builder/shortcode-builder.php:1549
1433
  msgid "Sort posts by Order and Orderby parameters."
1434
  msgstr ""
1435
 
1436
- #: ../admin/shortcode-builder/shortcode-builder.php:1553
1437
  msgid "Order"
1438
  msgstr ""
1439
 
1440
- #: ../admin/shortcode-builder/shortcode-builder.php:1560
1441
  msgid "Order By"
1442
  msgstr ""
1443
 
1444
- #: ../admin/shortcode-builder/shortcode-builder.php:1580
1445
  msgid "Offset"
1446
  msgstr ""
1447
 
1448
- #: ../admin/shortcode-builder/shortcode-builder.php:1583
1449
  msgid "Offset the initial query by <em>'n'</em> number of posts"
1450
  msgstr ""
1451
 
1452
- #: ../admin/shortcode-builder/shortcode-builder.php:1596
1453
  msgid "Custom Arguments"
1454
  msgstr ""
1455
 
1456
- #: ../admin/shortcode-builder/shortcode-builder.php:1599
1457
  msgid "A semicolon separated list of custom value:pair arguments."
1458
  msgstr ""
1459
 
1460
- #: ../admin/shortcode-builder/shortcode-builder.php:1599
1461
  msgid ""
1462
  "Custom Arguments can be used to query by parameters not available in the "
1463
  "Shortcode Builder."
1464
  msgstr ""
1465
 
1466
- #: ../admin/shortcode-builder/shortcode-builder.php:1603
1467
  msgid "event_display:upcoming"
1468
  msgstr ""
1469
 
 
 
 
 
1470
  #: ../admin/views/add-ons.php:7
1471
  msgid ""
1472
  "Add-ons are available to extend and enhance the core functionality of Ajax "
@@ -1504,7 +1636,7 @@ msgid ""
1504
  "infinite scroll functionality."
1505
  msgstr ""
1506
 
1507
- #: ../admin/views/add-ons.php:100 ../admin/views/licenses.php:240
1508
  msgid "Custom Repeaters"
1509
  msgstr ""
1510
 
@@ -1518,8 +1650,8 @@ msgid ""
1518
  "absolutely zero restrictions."
1519
  msgstr ""
1520
 
1521
- #: ../admin/views/add-ons.php:128 ../admin/views/licenses.php:307
1522
- #: ../admin/views/settings.php:54
1523
  msgid "Layouts"
1524
  msgstr ""
1525
 
@@ -1573,7 +1705,7 @@ msgid ""
1573
  "browser URL to the current post."
1574
  msgstr ""
1575
 
1576
- #: ../admin/views/add-ons.php:259 ../admin/views/licenses.php:635
1577
  msgid "Search Engine Optimization"
1578
  msgstr ""
1579
 
@@ -1587,8 +1719,8 @@ msgid ""
1587
  "generating unique URLs with every query.</p>"
1588
  msgstr ""
1589
 
1590
- #: ../admin/views/add-ons.php:285 ../admin/views/licenses.php:703
1591
- #: ../admin/views/settings.php:64
1592
  msgid "Theme Repeaters"
1593
  msgstr ""
1594
 
@@ -1609,74 +1741,57 @@ msgid ""
1609
  "\"plugins.php\">WordPress plugin dashboard</a>."
1610
  msgstr ""
1611
 
1612
- #: ../admin/views/examples.php:5
1613
- msgid "Examples"
1614
- msgstr ""
1615
-
1616
- #: ../admin/views/examples.php:6
1617
- msgid "A collection of everyday shortcode usages and implementation examples"
1618
- msgstr ""
1619
-
1620
- #: ../admin/views/examples.php:14
1621
- msgid "Archive.php"
1622
- msgstr ""
1623
-
1624
- #: ../admin/views/examples.php:16
1625
- msgid "Shortcode for use on generic archive page."
1626
- msgstr ""
1627
-
1628
- #: ../admin/views/examples.php:24
1629
- msgid "Author.php"
1630
  msgstr ""
1631
 
1632
- #: ../admin/views/examples.php:26
1633
- msgid "Shortcode for use on author archive pages."
 
 
1634
  msgstr ""
1635
 
1636
- #: ../admin/views/examples.php:33
1637
- msgid "Category.php"
 
 
1638
  msgstr ""
1639
 
1640
- #: ../admin/views/examples.php:35
1641
- msgid "Shortcode for use on category archive pages."
1642
  msgstr ""
1643
 
1644
- #: ../admin/views/examples.php:42
1645
- msgid "Date Archives"
1646
  msgstr ""
1647
 
1648
- #: ../admin/views/examples.php:44
1649
- msgid "Shortcode for use for archiving by date."
1650
  msgstr ""
1651
 
1652
- #: ../admin/views/examples.php:51
1653
- msgid "Excluding Posts"
1654
  msgstr ""
1655
 
1656
- #: ../admin/views/examples.php:53
1657
- msgid "Shortcode for excluding an array of posts."
1658
  msgstr ""
1659
 
1660
- #: ../admin/views/examples.php:59
1661
- msgid "Tag.php"
1662
  msgstr ""
1663
 
1664
- #: ../admin/views/examples.php:61
1665
- msgid "Shortcode for use on tag archive pages."
 
 
 
1666
  msgstr ""
1667
 
1668
- #: ../admin/views/examples.php:78
1669
  msgid "View All Examples"
1670
  msgstr ""
1671
 
1672
- #: ../admin/views/help.php:5
1673
- msgid "Help"
1674
- msgstr ""
1675
-
1676
- #: ../admin/views/help.php:6
1677
- msgid "Get started with our four step guide to painless implementation!"
1678
- msgstr ""
1679
-
1680
  #: ../admin/views/licenses.php:5
1681
  msgid "Licenses"
1682
  msgstr ""
@@ -1698,122 +1813,143 @@ msgid ""
1698
  "href=\"plugins.php\">WP Plugins dashboard</a>."
1699
  msgstr ""
1700
 
1701
- #: ../admin/views/licenses.php:53 ../admin/views/licenses.php:118
1702
- #: ../admin/views/licenses.php:183 ../admin/views/licenses.php:249
1703
- #: ../admin/views/licenses.php:316 ../admin/views/licenses.php:382
1704
- #: ../admin/views/licenses.php:449 ../admin/views/licenses.php:514
1705
- #: ../admin/views/licenses.php:578 ../admin/views/licenses.php:644
1706
- #: ../admin/views/licenses.php:712
1707
  msgid "Don't have a license?"
1708
  msgstr ""
1709
 
1710
- #: ../admin/views/licenses.php:54 ../admin/views/licenses.php:119
1711
- #: ../admin/views/licenses.php:184 ../admin/views/licenses.php:250
1712
- #: ../admin/views/licenses.php:317 ../admin/views/licenses.php:383
1713
- #: ../admin/views/licenses.php:450 ../admin/views/licenses.php:515
1714
- #: ../admin/views/licenses.php:579 ../admin/views/licenses.php:645
1715
- #: ../admin/views/licenses.php:713
1716
  msgid ""
1717
  "A valid license is required to activate and receive plugin updates directly "
1718
  "in your WordPress dashboard"
1719
  msgstr ""
1720
 
1721
- #: ../admin/views/licenses.php:54 ../admin/views/licenses.php:119
1722
- #: ../admin/views/licenses.php:184 ../admin/views/licenses.php:250
1723
- #: ../admin/views/licenses.php:317 ../admin/views/licenses.php:383
1724
- #: ../admin/views/licenses.php:450 ../admin/views/licenses.php:515
1725
- #: ../admin/views/licenses.php:579 ../admin/views/licenses.php:645
1726
- #: ../admin/views/licenses.php:713
1727
  msgid "Purchase Now"
1728
  msgstr ""
1729
 
1730
- #: ../admin/views/licenses.php:60 ../admin/views/licenses.php:62
1731
- #: ../admin/views/licenses.php:125 ../admin/views/licenses.php:127
1732
- #: ../admin/views/licenses.php:190 ../admin/views/licenses.php:192
1733
- #: ../admin/views/licenses.php:256 ../admin/views/licenses.php:258
1734
  #: ../admin/views/licenses.php:323 ../admin/views/licenses.php:325
1735
- #: ../admin/views/licenses.php:389 ../admin/views/licenses.php:391
1736
  #: ../admin/views/licenses.php:456 ../admin/views/licenses.php:458
1737
- #: ../admin/views/licenses.php:521 ../admin/views/licenses.php:523
1738
- #: ../admin/views/licenses.php:585 ../admin/views/licenses.php:587
1739
- #: ../admin/views/licenses.php:651 ../admin/views/licenses.php:653
1740
- #: ../admin/views/licenses.php:719 ../admin/views/licenses.php:721
 
1741
  msgid "Enter License Key"
1742
  msgstr ""
1743
 
1744
- #: ../admin/views/licenses.php:82 ../admin/views/licenses.php:147
1745
- #: ../admin/views/licenses.php:212 ../admin/views/licenses.php:278
1746
- #: ../admin/views/licenses.php:345 ../admin/views/licenses.php:411
1747
- #: ../admin/views/licenses.php:478 ../admin/views/licenses.php:542
1748
- #: ../admin/views/licenses.php:607 ../admin/views/licenses.php:673
1749
- #: ../admin/views/licenses.php:742
1750
  msgid "Activate License"
1751
  msgstr ""
1752
 
1753
- #: ../admin/views/licenses.php:86 ../admin/views/licenses.php:151
1754
- #: ../admin/views/licenses.php:216 ../admin/views/licenses.php:282
1755
- #: ../admin/views/licenses.php:349 ../admin/views/licenses.php:415
1756
- #: ../admin/views/licenses.php:482 ../admin/views/licenses.php:546
1757
- #: ../admin/views/licenses.php:611 ../admin/views/licenses.php:677
1758
- #: ../admin/views/licenses.php:746
1759
  msgid "Deactivate License"
1760
  msgstr ""
1761
 
1762
- #: ../admin/views/licenses.php:764
1763
  msgid "You do not have any Ajax Load More add-ons installed"
1764
  msgstr ""
1765
 
1766
- #: ../admin/views/licenses.php:764
1767
  msgid "Browse Add-ons"
1768
  msgstr ""
1769
 
1770
- #: ../admin/views/licenses.php:775
1771
  msgid "About Licenses"
1772
  msgstr ""
1773
 
1774
- #: ../admin/views/licenses.php:778
1775
  msgid "Add-on licenses will enable updates directly in your WP dashboard."
1776
  msgstr ""
1777
 
1778
- #: ../admin/views/licenses.php:779
1779
  msgid ""
1780
  "License keys are found in the purchase receipt email that was sent "
1781
  "immediately after your successful purchase and in the <a target=\"_blank\" "
1782
  "href=\"https://connekthq.com/account/\">Account</a> section on our website"
1783
  msgstr ""
1784
 
1785
- #: ../admin/views/licenses.php:780
1786
  msgid ""
1787
  "If you cannot locate your key please open a support ticket by filling out "
1788
  "the <a href=\"https://connekthq.com/contact/\">form</a> on our website and "
1789
  "reference the email address used when you completed the purchase."
1790
  msgstr ""
1791
 
1792
- #: ../admin/views/licenses.php:786
1793
  msgid "Legacy Users"
1794
  msgstr ""
1795
 
1796
- #: ../admin/views/repeater-templates.php:5
 
1797
  msgid "Repeater Templates"
1798
  msgstr ""
1799
 
1800
- #: ../admin/views/repeater-templates.php:6
1801
  msgid "The library of editable templates for use within your theme"
1802
  msgstr ""
1803
 
1804
- #: ../admin/views/repeater-templates.php:55
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1805
  msgid "Default Template"
1806
  msgstr ""
1807
 
1808
- #: ../admin/views/repeater-templates.php:59
1809
  msgid "Enter the HTML and PHP code for the default template"
1810
  msgstr ""
1811
 
1812
- #: ../admin/views/repeater-templates.php:80
1813
  msgid "Save Template"
1814
  msgstr ""
1815
 
1816
- #: ../admin/views/repeater-templates.php:86
1817
  msgid ""
1818
  "It appears you are loading the <a href=\"https://connekthq.com/plugins/ajax-"
1819
  "load-more/docs/repeater-templates/#default-template\" target=\"_blank"
@@ -1822,27 +1958,27 @@ msgid ""
1822
  "your server."
1823
  msgstr ""
1824
 
1825
- #: ../admin/views/repeater-templates.php:158
1826
  msgid "Saving template..."
1827
  msgstr ""
1828
 
1829
- #: ../admin/views/repeater-templates.php:191
1830
  msgid "Something went wrong and the data could not be saved."
1831
  msgstr ""
1832
 
1833
- #: ../admin/views/repeater-templates.php:229
1834
  msgid "Updating template..."
1835
  msgstr ""
1836
 
1837
- #: ../admin/views/repeater-templates.php:292
1838
  msgid "Repeater Template Help"
1839
  msgstr ""
1840
 
1841
- #: ../admin/views/repeater-templates.php:294
1842
  msgid "What is a repeater template?"
1843
  msgstr ""
1844
 
1845
- #: ../admin/views/repeater-templates.php:295
1846
  msgid ""
1847
  "A <a href=\"https://connekthq.com/plugins/ajax-load-more/docs/repeater-"
1848
  "templates/\" target=\"_blank\">repeater template</a> is a snippet of code "
@@ -1850,7 +1986,7 @@ msgid ""
1850
  "org/The_Loop\" target=\"_blank\">WordPress loop</a>"
1851
  msgstr ""
1852
 
1853
- #: ../admin/views/repeater-templates.php:297
1854
  msgid "More About Templating"
1855
  msgstr ""
1856
 
@@ -1859,34 +1995,26 @@ msgid "A powerful plugin to add infinite scroll functionality to your website."
1859
  msgstr ""
1860
 
1861
  #: ../admin/views/settings.php:20
1862
- msgid "Thanks for using Ajax Load More"
1863
- msgstr ""
1864
-
1865
- #: ../admin/views/settings.php:22
1866
- msgid ""
1867
- "Please consider helping <a href=\"https://twitter.com/KaptonKaos\" target="
1868
- "\"_blank\">me</a> spread the word by sharing with your networks and/or "
1869
- "leaving a review on <a href=\"https://wordpress.org/support/view/plugin-"
1870
- "reviews/ajax-load-more\" target=\"_blank\">wordpress.org</a> forums."
1871
  msgstr ""
1872
 
1873
- #: ../admin/views/settings.php:33
1874
  msgid "Don't show me this again!"
1875
  msgstr ""
1876
 
1877
- #: ../admin/views/settings.php:44 ../admin/views/settings.php:47
1878
  msgid "Jump to Setting"
1879
  msgstr ""
1880
 
1881
- #: ../admin/views/settings.php:48
1882
  msgid "Global Settings"
1883
  msgstr ""
1884
 
1885
- #: ../admin/views/settings.php:49
1886
  msgid "Admin"
1887
  msgstr ""
1888
 
1889
- #: ../admin/views/settings.php:62
1890
  msgid "SEO"
1891
  msgstr ""
1892
 
@@ -1918,7 +2046,7 @@ msgstr ""
1918
  msgid "Reset Shortcode Builder"
1919
  msgstr ""
1920
 
1921
- #: ../ajax-load-more.php:196
1922
  msgid "Settings"
1923
  msgstr ""
1924
 
@@ -1926,6 +2054,36 @@ msgstr ""
1926
  msgid "Pages:"
1927
  msgstr ""
1928
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1929
  #~ msgid "404 Error"
1930
  #~ msgstr "Erreur 404 "
1931
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Ajax Load More\n"
4
+ "POT-Creation-Date: 2017-05-04 13:26-0500\n"
5
+ "PO-Revision-Date: 2017-05-04 13:26-0500\n"
6
  "Last-Translator: Darren Cooney <dcooney@ecentricarts.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:94 ../admin/admin.php:153 ../admin/admin.php:738
19
+ #: ../admin/admin.php:782 ../admin/admin.php:832
20
  msgid "You don't belong here."
21
  msgstr ""
22
 
23
  #: ../admin/admin.php:182 ../admin/editor/editor-build.php:72
24
+ #: ../admin/views/licenses.php:66 ../admin/views/licenses.php:132
25
+ #: ../admin/views/licenses.php:197 ../admin/views/licenses.php:262
26
+ #: ../admin/views/licenses.php:328 ../admin/views/licenses.php:395
27
+ #: ../admin/views/licenses.php:461 ../admin/views/licenses.php:528
28
+ #: ../admin/views/licenses.php:593 ../admin/views/licenses.php:657
29
+ #: ../admin/views/licenses.php:723 ../admin/views/licenses.php:791
30
  msgid "Active"
31
  msgstr ""
32
 
33
  #: ../admin/admin.php:183 ../admin/editor/editor-build.php:73
34
+ #: ../admin/views/licenses.php:70 ../admin/views/licenses.php:136
35
+ #: ../admin/views/licenses.php:201 ../admin/views/licenses.php:266
36
+ #: ../admin/views/licenses.php:332 ../admin/views/licenses.php:399
37
+ #: ../admin/views/licenses.php:465 ../admin/views/licenses.php:532
38
+ #: ../admin/views/licenses.php:597 ../admin/views/licenses.php:661
39
+ #: ../admin/views/licenses.php:727 ../admin/views/licenses.php:795
40
  msgid "Inactive"
41
  msgstr ""
42
 
45
  msgstr ""
46
 
47
  #: ../admin/admin.php:185 ../admin/editor/editor-build.php:75
48
+ #: ../admin/views/repeater-templates.php:372
49
  msgid "Template Updated"
50
  msgstr ""
51
 
70
  msgid "Jump to Template"
71
  msgstr ""
72
 
73
+ #: ../admin/admin.php:192
74
+ msgid "Are you sure you want to install this Ajax Load More extension?"
75
+ msgstr ""
76
+
77
+ #: ../admin/admin.php:193
78
+ #: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:51
79
+ #: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:379
80
+ msgid "Install Now"
81
+ msgstr ""
82
+
83
+ #: ../admin/admin.php:194
84
+ #: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:90
85
+ #: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:380
86
+ msgid "Activate"
87
+ msgstr ""
88
+
89
+ #: ../admin/admin.php:195
90
+ msgid "Installed"
91
+ msgstr ""
92
+
93
+ #: ../admin/admin.php:305
94
  msgid ""
95
  "[Ajax Load More] Error opening default repeater template - Please check your "
96
  "file path and ensure your server is configured to allow Ajax Load More to "
97
  "read and write files within the /ajax-load-more/core/repeater directory"
98
  msgstr ""
99
 
100
+ #: ../admin/admin.php:309
101
  msgid ""
102
  "[Ajax Load More] Error updating default repeater template - Please check "
103
  "your file path and ensure your server is configured to allow Ajax Load More "
104
  "to read and write files within the /ajax-load-more/core/repeater directory."
105
  msgstr ""
106
 
107
+ #: ../admin/admin.php:696
108
  msgid "[Ajax Load More] Unable to open repeater template - "
109
  msgstr ""
110
 
111
+ #: ../admin/admin.php:700
112
  msgid "[Ajax Load More] Error saving repeater template - "
113
  msgstr ""
114
 
115
+ #: ../admin/admin.php:733
116
  msgid "Error Writing File"
117
  msgstr ""
118
 
119
+ #: ../admin/admin.php:936 ../admin/shortcode-builder/shortcode-builder.php:926
120
  msgid "Container Type"
121
  msgstr ""
122
 
123
+ #: ../admin/admin.php:944 ../admin/shortcode-builder/shortcode-builder.php:956
124
  msgid "Container Classes"
125
  msgstr ""
126
 
127
+ #: ../admin/admin.php:952
128
  msgid "Disable CSS"
129
  msgstr ""
130
 
131
+ #: ../admin/admin.php:960
132
  msgid "Button/Loading Style"
133
  msgstr ""
134
 
135
+ #: ../admin/admin.php:968
136
  msgid "Button Classes"
137
  msgstr ""
138
 
139
+ #: ../admin/admin.php:976
140
  msgid "Ajax Security"
141
  msgstr ""
142
 
143
+ #: ../admin/admin.php:984
144
  msgid "Top of Page"
145
  msgstr ""
146
 
147
+ #: ../admin/admin.php:992
148
  msgid "Dynamic Content"
149
  msgstr ""
150
 
151
+ #: ../admin/admin.php:1000
152
  msgid "Editor Button"
153
  msgstr ""
154
 
155
+ #: ../admin/admin.php:1008
156
  msgid "Error Notices"
157
  msgstr ""
158
 
159
+ #: ../admin/admin.php:1079
160
  msgid ""
161
  "Customize the user experience of Ajax Load More by updating the fields below."
162
  msgstr ""
163
 
164
+ #: ../admin/admin.php:1092
165
  msgid "The following settings affect the WordPress admin area only."
166
  msgstr ""
167
 
168
+ #: ../admin/admin.php:1123
169
  msgid "I want to use my own CSS styles."
170
  msgstr ""
171
 
172
+ #: ../admin/admin.php:1123
173
  msgid "View Ajax Load More CSS"
174
  msgstr ""
175
 
176
+ #: ../admin/admin.php:1143
177
  msgid "Hide shortcode button in WYSIWYG editor."
178
  msgstr ""
179
 
180
+ #: ../admin/admin.php:1164
181
  msgid ""
182
  "Display error messaging regarding repeater template updates in the browser "
183
  "console."
184
  msgstr ""
185
 
186
+ #: ../admin/admin.php:1185
187
  msgid ""
188
  "Disable dynamic population of categories, tags and authors in the Shortcode "
189
  "Builder.<span style=\"display:block\">Recommended if you have an "
190
  "extraordinary number of categories, tags and/or authors."
191
  msgstr ""
192
 
193
+ #: ../admin/admin.php:1206 ../admin/admin.php:1209
194
  msgid "Ajax Posts Here"
195
  msgstr ""
196
 
197
+ #: ../admin/admin.php:1211
198
  msgid "You can modify the container type when building a shortcode."
199
  msgstr ""
200
 
201
+ #: ../admin/admin.php:1228
202
  msgid ""
203
  "Add classes to Ajax Load More container - classes are applied globally and "
204
  "will appear with every instance of Ajax Load More. <span style=\"display:"
205
  "block\">You can also add classes when building a shortcode.</span>"
206
  msgstr ""
207
 
208
+ #: ../admin/admin.php:1290
209
  msgid ""
210
+ "Select an Ajax loading style - you can choose between a <strong>Button</"
211
+ "strong> or <strong>Infinite Scroll</strong>"
212
+ msgstr ""
213
+
214
+ #: ../admin/admin.php:1295
215
+ msgid "Button"
216
+ msgstr ""
217
+
218
+ #: ../admin/admin.php:1303
219
+ msgid "Infinite Scroll (No Button)"
220
  msgstr ""
221
 
222
+ #: ../admin/admin.php:1314
223
  msgid "Preview"
224
  msgstr ""
225
 
226
+ #: ../admin/admin.php:1314
227
+ #: ../admin/shortcode-builder/shortcode-builder.php:981
228
+ #: ../core/classes/class.alm-shortcode.php:133
229
  msgid "Older Posts"
230
  msgstr ""
231
 
232
+ #: ../admin/admin.php:1333
233
  msgid "Add classes to your <strong>Load More</strong> button"
234
  msgstr ""
235
 
236
+ #: ../admin/admin.php:1376
237
  msgid ""
238
  "On initial page load, move the user's browser window to the top of the "
239
  "screen.<span style=\"display:block\">This <u>may</u> help prevent the "
240
  "loading of unnecessary posts.</span>"
241
  msgstr ""
242
 
243
+ #: ../admin/admin.php:1397
244
  msgid ""
245
  "Enable <a href=\"https://codex.wordpress.org/WordPress_Nonces\" target="
246
  "\"_blank\">WP nonce</a> verification to help protect URLs against certain "
264
  msgid "You are not allowed to be here"
265
  msgstr ""
266
 
267
+ #: ../admin/includes/components/example-list.php:2
268
+ #: ../admin/shortcode-builder/shortcode-builder.php:1
269
+ #: ../admin/views/repeater-templates.php:104
270
+ #: ../admin/views/repeater-templates.php:134
271
+ msgid "Collapse All"
272
+ msgstr ""
273
+
274
+ #: ../admin/includes/components/example-list.php:2
275
+ #: ../admin/shortcode-builder/shortcode-builder.php:1
276
+ #: ../admin/views/repeater-templates.php:105
277
+ #: ../admin/views/repeater-templates.php:135
278
+ msgid "Expand All"
279
+ msgstr ""
280
+
281
+ #: ../admin/includes/components/example-list.php:5
282
+ msgid "Archive.php"
283
+ msgstr ""
284
+
285
+ #: ../admin/includes/components/example-list.php:7
286
+ msgid "Shortcode for use on generic archive page."
287
+ msgstr ""
288
+
289
+ #: ../admin/includes/components/example-list.php:15
290
+ msgid "Author.php"
291
+ msgstr ""
292
+
293
+ #: ../admin/includes/components/example-list.php:17
294
+ msgid "Shortcode for use on author archive pages."
295
+ msgstr ""
296
+
297
+ #: ../admin/includes/components/example-list.php:24
298
+ msgid "Category.php"
299
+ msgstr ""
300
+
301
+ #: ../admin/includes/components/example-list.php:26
302
+ msgid "Shortcode for use on category archive pages."
303
+ msgstr ""
304
+
305
+ #: ../admin/includes/components/example-list.php:33
306
+ msgid "Date Archives"
307
+ msgstr ""
308
+
309
+ #: ../admin/includes/components/example-list.php:35
310
+ msgid "Shortcode for use for archiving by date."
311
+ msgstr ""
312
+
313
+ #: ../admin/includes/components/example-list.php:42
314
+ msgid "Excluding Posts"
315
+ msgstr ""
316
+
317
+ #: ../admin/includes/components/example-list.php:44
318
+ msgid "Shortcode for excluding an array of posts."
319
+ msgstr ""
320
+
321
+ #: ../admin/includes/components/example-list.php:50
322
+ msgid "Tag.php"
323
+ msgstr ""
324
+
325
+ #: ../admin/includes/components/example-list.php:52
326
+ msgid "Shortcode for use on tag archive pages."
327
+ msgstr ""
328
+
329
  #: ../admin/includes/components/layout-list.php:3
330
  msgid "Apply Layout"
331
  msgstr ""
340
  msgstr ""
341
 
342
  #: ../admin/includes/components/repeater-options.php:2
343
+ #: ../admin/shortcode-builder/shortcode-builder.php:906
344
  msgid "Options"
345
  msgstr ""
346
 
551
  #: ../admin/shortcode-builder/includes/tax-query-options.php:5
552
  #: ../admin/shortcode-builder/includes/tax-query-options.php:50
553
  #: ../admin/shortcode-builder/includes/tax-query-options.php:81
554
+ #: ../admin/shortcode-builder/shortcode-builder.php:674
555
  msgid "Select Taxonomy"
556
  msgstr ""
557
 
568
  msgstr ""
569
 
570
  #: ../admin/shortcode-builder/includes/tax-query-options.php:36
571
+ #: ../admin/shortcode-builder/shortcode-builder.php:1506
572
  msgid "Relation:"
573
  msgstr ""
574
 
577
  "The logical relationship between each taxonomy when there is more than one."
578
  msgstr ""
579
 
 
 
 
 
 
 
 
 
 
 
580
  #: ../admin/shortcode-builder/shortcode-builder.php:16
581
+ msgid "Add-ons & Extensions"
 
582
  msgstr ""
583
 
584
  #: ../admin/shortcode-builder/shortcode-builder.php:21
585
+ #: ../admin/views/licenses.php:45
586
+ msgid "Advanced Custom Fields"
 
587
  msgstr ""
588
 
589
  #: ../admin/shortcode-builder/shortcode-builder.php:24
590
+ msgid "Enable compatibility with Advanced Custom Fields."
591
  msgstr ""
592
 
593
  #: ../admin/shortcode-builder/shortcode-builder.php:31
594
+ #: ../admin/shortcode-builder/shortcode-builder.php:109
595
+ #: ../admin/shortcode-builder/shortcode-builder.php:153
596
+ #: ../admin/shortcode-builder/shortcode-builder.php:247
597
+ #: ../admin/shortcode-builder/shortcode-builder.php:398
598
+ #: ../admin/shortcode-builder/shortcode-builder.php:515
599
+ #: ../admin/shortcode-builder/shortcode-builder.php:538
600
+ #: ../admin/shortcode-builder/shortcode-builder.php:592
601
+ #: ../admin/shortcode-builder/shortcode-builder.php:633
602
+ #: ../admin/shortcode-builder/shortcode-builder.php:726
603
+ #: ../admin/shortcode-builder/shortcode-builder.php:806
604
+ #: ../admin/shortcode-builder/shortcode-builder.php:840
605
+ #: ../admin/shortcode-builder/shortcode-builder.php:1016
606
+ #: ../admin/shortcode-builder/shortcode-builder.php:1041
607
+ #: ../admin/shortcode-builder/shortcode-builder.php:1067
608
+ #: ../admin/shortcode-builder/shortcode-builder.php:1114
609
  msgid "True"
610
  msgstr ""
611
 
612
  #: ../admin/shortcode-builder/shortcode-builder.php:35
613
+ #: ../admin/shortcode-builder/shortcode-builder.php:113
614
+ #: ../admin/shortcode-builder/shortcode-builder.php:157
615
+ #: ../admin/shortcode-builder/shortcode-builder.php:251
616
+ #: ../admin/shortcode-builder/shortcode-builder.php:402
617
+ #: ../admin/shortcode-builder/shortcode-builder.php:519
618
+ #: ../admin/shortcode-builder/shortcode-builder.php:542
619
+ #: ../admin/shortcode-builder/shortcode-builder.php:596
620
+ #: ../admin/shortcode-builder/shortcode-builder.php:637
621
+ #: ../admin/shortcode-builder/shortcode-builder.php:730
622
+ #: ../admin/shortcode-builder/shortcode-builder.php:810
623
+ #: ../admin/shortcode-builder/shortcode-builder.php:844
624
+ #: ../admin/shortcode-builder/shortcode-builder.php:1020
625
+ #: ../admin/shortcode-builder/shortcode-builder.php:1045
626
+ #: ../admin/shortcode-builder/shortcode-builder.php:1071
627
+ #: ../admin/shortcode-builder/shortcode-builder.php:1118
628
  msgid "False"
629
  msgstr ""
630
 
631
+ #: ../admin/shortcode-builder/shortcode-builder.php:47
632
+ #: ../admin/shortcode-builder/shortcode-builder.php:262
633
+ #: ../admin/shortcode-builder/shortcode-builder.php:415
634
+ #: ../admin/shortcode-builder/shortcode-builder.php:647
635
+ msgid "Post ID"
636
+ msgstr ""
637
+
638
+ #: ../admin/shortcode-builder/shortcode-builder.php:47
639
+ msgid ""
640
+ "Leave this field blank and Ajax Load More will get the ID from the global "
641
+ "$post object"
642
+ msgstr ""
643
+
644
+ #: ../admin/shortcode-builder/shortcode-builder.php:48
645
+ #: ../admin/shortcode-builder/shortcode-builder.php:416
646
+ msgid "The ID of the current page/post."
647
+ msgstr ""
648
+
649
+ #: ../admin/shortcode-builder/shortcode-builder.php:61
650
+ #: ../admin/shortcode-builder/shortcode-builder.php:66
651
+ #: ../admin/shortcode-builder/shortcode-builder.php:85
652
+ msgid "Field Type"
653
+ msgstr ""
654
+
655
+ #: ../admin/shortcode-builder/shortcode-builder.php:62
656
+ msgid "Select the type of ACF field"
657
+ msgstr ""
658
+
659
+ #: ../admin/shortcode-builder/shortcode-builder.php:68
660
+ msgid "Select Field Type"
661
+ msgstr ""
662
+
663
+ #: ../admin/shortcode-builder/shortcode-builder.php:69
664
+ msgid "Relationship"
665
+ msgstr ""
666
+
667
+ #: ../admin/shortcode-builder/shortcode-builder.php:70
668
+ msgid "Repeater"
669
+ msgstr ""
670
+
671
+ #: ../admin/shortcode-builder/shortcode-builder.php:80
672
+ msgid "Field Name"
673
+ msgstr ""
674
+
675
+ #: ../admin/shortcode-builder/shortcode-builder.php:81
676
+ msgid "Enter the name of the ACF field"
677
+ msgstr ""
678
+
679
+ #: ../admin/shortcode-builder/shortcode-builder.php:99
680
+ #: ../admin/views/add-ons.php:21 ../admin/views/licenses.php:111
681
+ #: ../admin/views/settings.php:57
682
+ msgid "Cache"
683
+ msgstr ""
684
+
685
+ #: ../admin/shortcode-builder/shortcode-builder.php:102
686
+ msgid "Turn on content caching."
687
+ msgstr ""
688
+
689
+ #: ../admin/shortcode-builder/shortcode-builder.php:123
690
  msgid "Cache ID"
691
  msgstr ""
692
 
693
+ #: ../admin/shortcode-builder/shortcode-builder.php:124
694
  msgid ""
695
  "You <u>must</u> generate a unique ID for this cached query - this unique ID "
696
  "will be used as a content identifier."
697
  msgstr ""
698
 
699
+ #: ../admin/shortcode-builder/shortcode-builder.php:130
700
  msgid "Generate Cache ID"
701
  msgstr ""
702
 
703
+ #: ../admin/shortcode-builder/shortcode-builder.php:142
704
+ #: ../admin/views/add-ons.php:48 ../admin/views/licenses.php:176
705
  msgid "Call to Actions"
706
  msgstr ""
707
 
708
+ #: ../admin/shortcode-builder/shortcode-builder.php:146
709
  msgid "Insert call to action block."
710
  msgstr ""
711
 
712
+ #: ../admin/shortcode-builder/shortcode-builder.php:170
713
  msgid "CTA Positioning"
714
  msgstr ""
715
 
716
+ #: ../admin/shortcode-builder/shortcode-builder.php:171
717
  msgid ""
718
  "Insert call to action <strong><em id=\"sequence-update-before-after"
719
  "\">before</em></strong> post #<strong><em id=\"sequence-update\">1</em></"
720
  "strong>"
721
  msgstr ""
722
 
723
+ #: ../admin/shortcode-builder/shortcode-builder.php:176
724
  msgid "Before / After"
725
  msgstr ""
726
 
727
+ #: ../admin/shortcode-builder/shortcode-builder.php:178
728
  msgid "Before"
729
  msgstr ""
730
 
731
+ #: ../admin/shortcode-builder/shortcode-builder.php:179
732
  msgid "After"
733
  msgstr ""
734
 
735
+ #: ../admin/shortcode-builder/shortcode-builder.php:183
736
  msgid "Post #"
737
  msgstr ""
738
 
739
+ #: ../admin/shortcode-builder/shortcode-builder.php:194
740
+ #: ../admin/shortcode-builder/shortcode-builder.php:866
741
  msgid "Template"
742
  msgstr ""
743
 
744
+ #: ../admin/shortcode-builder/shortcode-builder.php:196
745
  msgid ""
746
  "Select the <a href=\"admin.php?page=ajax-load-more-repeaters\" target="
747
  "\"_parent\">repeater template</a> that will display your call to action."
748
  msgstr ""
749
 
750
+ #: ../admin/shortcode-builder/shortcode-builder.php:203
751
  #, fuzzy
752
  msgid "-- Select Repeater --"
753
  msgstr "Sélectionnez province"
754
 
755
+ #: ../admin/shortcode-builder/shortcode-builder.php:223
756
  msgid ""
757
  "Call to actions do NOT count as a post within an Ajax Load More loop.<br/>\n"
758
  " For example, if you set <strong>posts_per_page=\"5\"</"
759
  "strong> in your shortcode, 6 items will be displayed."
760
  msgstr ""
761
 
762
+ #: ../admin/shortcode-builder/shortcode-builder.php:237
763
+ #: ../admin/views/add-ons.php:75 ../admin/views/licenses.php:241
764
  msgid "Comments"
765
  msgstr ""
766
 
767
+ #: ../admin/shortcode-builder/shortcode-builder.php:240
768
  msgid "Enable Ajax Load More to display blog comments."
769
  msgstr ""
770
 
771
+ #: ../admin/shortcode-builder/shortcode-builder.php:263
772
+ #: ../admin/shortcode-builder/shortcode-builder.php:648
 
 
 
 
 
 
773
  msgid "The ID of the current single post."
774
  msgstr ""
775
 
776
+ #: ../admin/shortcode-builder/shortcode-builder.php:274
777
  msgid "Comments Per Page"
778
  msgstr ""
779
 
780
+ #: ../admin/shortcode-builder/shortcode-builder.php:275
781
  msgid "The number of top level items to show for each page of comments."
782
  msgstr ""
783
 
784
+ #: ../admin/shortcode-builder/shortcode-builder.php:283
785
  msgid ""
786
  "<strong>Note</strong>: The amount selected does NOT include comment replies."
787
  msgstr ""
788
 
789
+ #: ../admin/shortcode-builder/shortcode-builder.php:289
790
  msgid "Comment Type"
791
  msgstr ""
792
 
793
+ #: ../admin/shortcode-builder/shortcode-builder.php:290
794
  msgid "The type of comment(s) to display."
795
  msgstr ""
796
 
797
+ #: ../admin/shortcode-builder/shortcode-builder.php:295
798
  msgid "Comment"
799
  msgstr ""
800
 
801
+ #: ../admin/shortcode-builder/shortcode-builder.php:296
802
  msgid "All"
803
  msgstr ""
804
 
805
+ #: ../admin/shortcode-builder/shortcode-builder.php:297
806
  msgid "Trackback"
807
  msgstr ""
808
 
809
+ #: ../admin/shortcode-builder/shortcode-builder.php:298
810
  msgid "Pingback"
811
  msgstr ""
812
 
813
+ #: ../admin/shortcode-builder/shortcode-builder.php:299
814
  msgid "Pings"
815
  msgstr ""
816
 
817
+ #: ../admin/shortcode-builder/shortcode-builder.php:307
818
  msgid "Comment Style"
819
  msgstr ""
820
 
821
+ #: ../admin/shortcode-builder/shortcode-builder.php:308
822
  msgid "Select the HTML container style for your comments."
823
  msgstr ""
824
 
825
+ #: ../admin/shortcode-builder/shortcode-builder.php:333
826
  msgid "Comment Template"
827
  msgstr ""
828
 
829
+ #: ../admin/shortcode-builder/shortcode-builder.php:334
830
  msgid "Select a repeater template that will display comment data."
831
  msgstr ""
832
 
833
+ #: ../admin/shortcode-builder/shortcode-builder.php:340
834
+ #: ../admin/shortcode-builder/shortcode-builder.php:1148
835
  msgid "None"
836
  msgstr ""
837
 
838
+ #: ../admin/shortcode-builder/shortcode-builder.php:341
839
  msgid "Default"
840
  msgstr ""
841
 
842
+ #: ../admin/shortcode-builder/shortcode-builder.php:353
843
  msgid ""
844
  "<strong>Note</strong>: <span>None</span> will use the default WordPress "
845
  "comment layout."
846
  msgstr ""
847
 
848
+ #: ../admin/shortcode-builder/shortcode-builder.php:362
849
  msgid "Callback Function"
850
  msgstr ""
851
 
852
+ #: ../admin/shortcode-builder/shortcode-builder.php:363
853
  msgid ""
854
  "A custom <a href=\"https://codex.wordpress.org/Function_Reference/"
855
  "wp_list_comments#Arguments\" target=\"_blank\">callback</a> function that "
856
  "will display each comment."
857
  msgstr ""
858
 
859
+ #: ../admin/shortcode-builder/shortcode-builder.php:371
860
  msgid ""
861
  "<strong>Note</strong>: The majority of premium themes have a custom callback "
862
  "function for displaying comments. Please see comments.php or functions.php "
863
  "within your theme directory to locate the callback function for your theme."
864
  msgstr ""
865
 
866
+ #: ../admin/shortcode-builder/shortcode-builder.php:376
867
  msgid ""
868
  "You must add the comments shortcode directly to your single template file "
869
  "using the <a href=\"https://developer.wordpress.org/reference/functions/"
872
  "\"_blank\">View documentation</a>"
873
  msgstr ""
874
 
875
+ #: ../admin/shortcode-builder/shortcode-builder.php:388
876
+ #: ../admin/views/add-ons.php:154 ../admin/views/licenses.php:440
877
  #, fuzzy
878
  msgid "Next Page"
879
  msgstr "Imprimer cette page"
880
 
881
+ #: ../admin/shortcode-builder/shortcode-builder.php:391
882
  msgid "Enable the infinite scrolling of multipage WordPress content using the"
883
  msgstr ""
884
 
885
+ #: ../admin/shortcode-builder/shortcode-builder.php:391
886
  msgid "Quicktag"
887
  msgstr ""
888
 
889
+ #: ../admin/shortcode-builder/shortcode-builder.php:428
 
 
 
 
890
  msgid "URL Rewrite"
891
  msgstr ""
892
 
893
+ #: ../admin/shortcode-builder/shortcode-builder.php:429
894
  msgid "Update the browser address bar as pages come into view"
895
  msgstr ""
896
 
897
+ #: ../admin/shortcode-builder/shortcode-builder.php:436
898
  msgid "Yes, update the URL"
899
  msgstr ""
900
 
901
+ #: ../admin/shortcode-builder/shortcode-builder.php:448
902
  msgid "Google Analytics"
903
  msgstr ""
904
 
905
+ #: ../admin/shortcode-builder/shortcode-builder.php:449
906
  msgid ""
907
  "You must have a reference to your Google Analytics tracking code already on "
908
  "the page"
909
  msgstr ""
910
 
911
+ #: ../admin/shortcode-builder/shortcode-builder.php:451
912
  msgid "Each time a page is loaded it will count as a pageview"
913
  msgstr ""
914
 
915
+ #: ../admin/shortcode-builder/shortcode-builder.php:458
916
  msgid "Yes, send pageviews to Google Analytics"
917
  msgstr ""
918
 
919
+ #: ../admin/shortcode-builder/shortcode-builder.php:469
920
  msgid "Scroll to Page"
921
  msgstr ""
922
 
923
+ #: ../admin/shortcode-builder/shortcode-builder.php:470
924
  msgid "Set Scroll Speed to 0 to disable scrolling to page"
925
  msgstr ""
926
 
927
+ #: ../admin/shortcode-builder/shortcode-builder.php:473
928
  msgid "Scroll users automatically to the next page on 'Load More' button click"
929
  msgstr ""
930
 
931
+ #: ../admin/shortcode-builder/shortcode-builder.php:479
932
  msgid "Scroll Speed"
933
  msgstr ""
934
 
935
+ #: ../admin/shortcode-builder/shortcode-builder.php:480
936
  msgid "Scrolling speed in milliseconds (e.g. 1 second = 1000)"
937
  msgstr ""
938
 
939
+ #: ../admin/shortcode-builder/shortcode-builder.php:486
940
  msgid "Scroll Top"
941
  msgstr ""
942
 
943
+ #: ../admin/shortcode-builder/shortcode-builder.php:487
944
  msgid ""
945
  "The scrolltop position of the window (used with scrolling and fwd/back "
946
  "browser buttons)"
947
  msgstr ""
948
 
949
+ #: ../admin/shortcode-builder/shortcode-builder.php:494
950
  msgid ""
951
  "You must add the Next Page shortcode directly to your single template file "
952
  "using the <a href=\"https://developer.wordpress.org/reference/functions/"
955
  "\"_blank\">View documentation</a>"
956
  msgstr ""
957
 
958
+ #: ../admin/shortcode-builder/shortcode-builder.php:506
959
+ #: ../admin/views/add-ons.php:180 ../admin/views/licenses.php:507
960
+ #: ../admin/views/settings.php:61
961
  msgid "Paging"
962
  msgstr ""
963
 
964
+ #: ../admin/shortcode-builder/shortcode-builder.php:508
965
  msgid "Replace infinite scrolling with a paged ajax navigation system."
966
  msgstr ""
967
 
968
+ #: ../admin/shortcode-builder/shortcode-builder.php:530
969
  msgid "Paging Controls"
970
  msgstr ""
971
 
972
+ #: ../admin/shortcode-builder/shortcode-builder.php:531
973
  msgid "Show (&laquo;)previous and next(&raquo;) buttons."
974
  msgstr ""
975
 
976
+ #: ../admin/shortcode-builder/shortcode-builder.php:551
977
  msgid "Paging Navigation Classes"
978
  msgstr ""
979
 
980
+ #: ../admin/shortcode-builder/shortcode-builder.php:552
981
  msgid "Add custom CSS classes to the paging navigation menu."
982
  msgstr ""
983
 
984
+ #: ../admin/shortcode-builder/shortcode-builder.php:563
985
  msgid "Show at Most"
986
  msgstr ""
987
 
988
+ #: ../admin/shortcode-builder/shortcode-builder.php:564
989
  msgid ""
990
  "The maximum amount of page menu items to show at a time. <br/.>0 = no maximum"
991
  msgstr ""
992
 
993
+ #: ../admin/shortcode-builder/shortcode-builder.php:582
994
+ #: ../admin/views/add-ons.php:207 ../admin/views/licenses.php:572
995
  msgid "Preloaded"
996
  msgstr ""
997
 
998
+ #: ../admin/shortcode-builder/shortcode-builder.php:585
999
  msgid "Preload posts prior to making Ajax requests."
1000
  msgstr ""
1001
 
1002
+ #: ../admin/shortcode-builder/shortcode-builder.php:606
1003
  msgid "Preload Amount"
1004
  msgstr ""
1005
 
1006
+ #: ../admin/shortcode-builder/shortcode-builder.php:607
1007
  msgid "Enter the number of posts to preload."
1008
  msgstr ""
1009
 
1010
+ #: ../admin/shortcode-builder/shortcode-builder.php:623
1011
+ #: ../admin/views/add-ons.php:233 ../admin/views/licenses.php:636
1012
+ #: ../admin/views/settings.php:63
1013
  msgid "Previous Post"
1014
  msgstr ""
1015
 
1016
+ #: ../admin/shortcode-builder/shortcode-builder.php:626
1017
  msgid "Enable the infinite scrolling of single posts."
1018
  msgstr ""
1019
 
1020
+ #: ../admin/shortcode-builder/shortcode-builder.php:660
1021
+ #: ../admin/shortcode-builder/shortcode-builder.php:1446
1022
  msgid "Taxonomy"
1023
  msgstr ""
1024
 
1025
+ #: ../admin/shortcode-builder/shortcode-builder.php:660
1026
  msgid ""
1027
  "Selecting a taxonomy means only previous posts from the same taxonomy will "
1028
  "be returned"
1029
  msgstr ""
1030
 
1031
+ #: ../admin/shortcode-builder/shortcode-builder.php:661
1032
  msgid "Query previous posts from the same taxonomy."
1033
  msgstr ""
1034
 
1035
+ #: ../admin/shortcode-builder/shortcode-builder.php:675
1036
+ #: ../admin/shortcode-builder/shortcode-builder.php:1327
1037
  msgid "Category"
1038
  msgstr ""
1039
 
1040
+ #: ../admin/shortcode-builder/shortcode-builder.php:676
1041
+ #: ../admin/shortcode-builder/shortcode-builder.php:1387
1042
  msgid "Tag"
1043
  msgstr ""
1044
 
1045
+ #: ../admin/shortcode-builder/shortcode-builder.php:690
1046
  msgid ""
1047
  "You must add the Previous Post shortcode directly to your single template "
1048
  "file using the <a href=\"https://developer.wordpress.org/reference/functions/"
1051
  "target=\"_blank\">View documentation</a>"
1052
  msgstr ""
1053
 
1054
+ #: ../admin/shortcode-builder/shortcode-builder.php:716
1055
+ #: ../admin/views/settings.php:65
1056
  msgid "REST API"
1057
  msgstr ""
1058
 
1059
+ #: ../admin/shortcode-builder/shortcode-builder.php:719
1060
  msgid "Enable the WordPress REST API."
1061
  msgstr ""
1062
 
1063
+ #: ../admin/shortcode-builder/shortcode-builder.php:743
1064
  msgid "Base URL"
1065
  msgstr ""
1066
 
1067
+ #: ../admin/shortcode-builder/shortcode-builder.php:744
1068
  msgid "Set a default Base URL in the Ajax Load More settings panel"
1069
  msgstr ""
1070
 
1071
+ #: ../admin/shortcode-builder/shortcode-builder.php:745
1072
  msgid "Enter the base URL to your installation of the REST API."
1073
  msgstr ""
1074
 
1075
+ #: ../admin/shortcode-builder/shortcode-builder.php:757
1076
  msgid "Namespace"
1077
  msgstr ""
1078
 
1079
+ #: ../admin/shortcode-builder/shortcode-builder.php:758
1080
  msgid "Set a default Namespace in the Ajax Load More settings panel"
1081
  msgstr ""
1082
 
1083
+ #: ../admin/shortcode-builder/shortcode-builder.php:759
1084
  msgid "Enter the custom namespace for this Ajax Load More query."
1085
  msgstr ""
1086
 
1087
+ #: ../admin/shortcode-builder/shortcode-builder.php:771
1088
  msgid "Endpoint"
1089
  msgstr ""
1090
 
1091
+ #: ../admin/shortcode-builder/shortcode-builder.php:772
1092
  msgid "Set a default Endpoint in the Ajax Load More settings panel"
1093
  msgstr ""
1094
 
1095
+ #: ../admin/shortcode-builder/shortcode-builder.php:773
1096
  msgid "Enter your custom endpoint for this Ajax Load More query."
1097
  msgstr ""
1098
 
1099
+ #: ../admin/shortcode-builder/shortcode-builder.php:785
1100
  msgid "Template ID"
1101
  msgstr ""
1102
 
1103
+ #: ../admin/shortcode-builder/shortcode-builder.php:785
1104
  msgid ""
1105
  "Ajax Load More references this ID while looping and displaying your data. "
1106
  "You must still select a repeater template for this instance of Ajax Load More"
1107
  msgstr ""
1108
 
1109
+ #: ../admin/shortcode-builder/shortcode-builder.php:786
1110
  msgid ""
1111
  "Enter the ID of your javascript template.<br/><br/>e.g. <em>tmpl-alm-"
1112
  "template</em> = <em>alm-template</em>"
1113
  msgstr ""
1114
 
1115
+ #: ../admin/shortcode-builder/shortcode-builder.php:786
1116
+ #: ../admin/shortcode-builder/shortcode-builder.php:1332
1117
+ #: ../admin/shortcode-builder/shortcode-builder.php:1391
1118
+ #: ../admin/shortcode-builder/shortcode-builder.php:1591
1119
  msgid "View Example"
1120
  msgstr ""
1121
 
1122
+ #: ../admin/shortcode-builder/shortcode-builder.php:798
1123
  msgid "Debug Mode"
1124
  msgstr ""
1125
 
1126
+ #: ../admin/shortcode-builder/shortcode-builder.php:799
1127
  msgid ""
1128
  "Enable debugging (console.log) of REST API responses in the browser console. "
1129
  msgstr ""
1130
 
1131
+ #: ../admin/shortcode-builder/shortcode-builder.php:817
1132
  msgid ""
1133
  "Visit <a href=\"http://v2.wp-api.org/\" target=\"_blank\">http://v2.wp-api."
1134
  "org</a> for documentation on creating custom <a href=\"http://v2.wp-api.org/"
1136
  "More."
1137
  msgstr ""
1138
 
1139
+ #: ../admin/shortcode-builder/shortcode-builder.php:830
1140
  msgid "SEO (Search Engine Optimization)"
1141
  msgstr ""
1142
 
1143
+ #: ../admin/shortcode-builder/shortcode-builder.php:833
1144
  msgid ""
1145
  "Enable address bar URL rewrites as users page through ajax loaded content."
1146
  msgstr ""
1147
 
1148
+ #: ../admin/shortcode-builder/shortcode-builder.php:861
1149
  msgid "Display Settings"
1150
  msgstr ""
1151
 
1152
+ #: ../admin/shortcode-builder/shortcode-builder.php:870
1153
  msgid "Repeater Template"
1154
  msgstr ""
1155
 
1156
+ #: ../admin/shortcode-builder/shortcode-builder.php:872
1157
  msgid ""
1158
  "Select which <a href=\"admin.php?page=ajax-load-more-repeaters\" target="
1159
  "\"_parent\">repeater template</a> you would like to use."
1160
  msgstr ""
1161
 
1162
+ #: ../admin/shortcode-builder/shortcode-builder.php:910
1163
  msgid "ID"
1164
  msgstr ""
1165
 
1166
+ #: ../admin/shortcode-builder/shortcode-builder.php:910
1167
  msgid ""
1168
  "Adding a unique ID will allow you target this specific Ajax Load More "
1169
  "instance with the alm_query_args_id() filter."
1170
  msgstr ""
1171
 
1172
+ #: ../admin/shortcode-builder/shortcode-builder.php:911
1173
  msgid "Set a unique ID for this Ajax Load More instance."
1174
  msgstr ""
1175
 
1176
+ #: ../admin/shortcode-builder/shortcode-builder.php:918
1177
  msgid "Generate Unique ID"
1178
  msgstr ""
1179
 
1180
+ #: ../admin/shortcode-builder/shortcode-builder.php:926
1181
  msgid ""
1182
  "You can define a global container type on the Ajax Load More settings screen"
1183
  msgstr ""
1184
 
1185
+ #: ../admin/shortcode-builder/shortcode-builder.php:927
1186
  msgid ""
1187
  "Override the global Container Type that was set on <a href=\"admin.php?"
1188
  "page=ajax-load-more\">ALM Settings page</a>."
1189
  msgstr ""
1190
 
1191
+ #: ../admin/shortcode-builder/shortcode-builder.php:956
1192
  msgid ""
1193
  "You can define global container classes on the Ajax Load More settings screen"
1194
  msgstr ""
1195
 
1196
+ #: ../admin/shortcode-builder/shortcode-builder.php:957
1197
  msgid ""
1198
  "Add custom CSS classes to the Ajax Load More container. <br/><br/> e.g. "
1199
  "portfolio-listing large-12 etc"
1200
  msgstr ""
1201
 
1202
+ #: ../admin/shortcode-builder/shortcode-builder.php:971
1203
  msgid "Button Labels"
1204
  msgstr ""
1205
 
1206
+ #: ../admin/shortcode-builder/shortcode-builder.php:976
1207
  msgid "Label"
1208
  msgstr ""
1209
 
1210
+ #: ../admin/shortcode-builder/shortcode-builder.php:977
1211
  msgid "Customize the text of the <em>Load More</em> button."
1212
  msgstr ""
1213
 
1214
+ #: ../admin/shortcode-builder/shortcode-builder.php:989
1215
  msgid "Loading Label"
1216
  msgstr ""
1217
 
1218
+ #: ../admin/shortcode-builder/shortcode-builder.php:989
1219
  msgid "Leave field empty to not update text while loading content"
1220
  msgstr ""
1221
 
1222
+ #: ../admin/shortcode-builder/shortcode-builder.php:990
1223
  msgid ""
1224
  "Update the text of the <em>Load More</em> button while content is loading."
1225
  msgstr ""
1226
 
1227
+ #: ../admin/shortcode-builder/shortcode-builder.php:994
1228
  msgid "Loading Posts..."
1229
  msgstr ""
1230
 
1231
+ #: ../admin/shortcode-builder/shortcode-builder.php:1004
1232
  msgid "Images Loaded"
1233
  msgstr ""
1234
 
1235
+ #: ../admin/shortcode-builder/shortcode-builder.php:1007
1236
  msgid "Wait for all images to load before displaying ajax loaded content"
1237
  msgstr ""
1238
 
1239
+ #: ../admin/shortcode-builder/shortcode-builder.php:1008
1240
  msgid "Background images are currently not supported"
1241
  msgstr ""
1242
 
1243
+ #: ../admin/shortcode-builder/shortcode-builder.php:1031
1244
  msgid "Pause"
1245
  msgstr ""
1246
 
1247
+ #: ../admin/shortcode-builder/shortcode-builder.php:1034
1248
  msgid ""
1249
  "Do <u>NOT</u> load any posts until user clicks the <em>Load More</em> button."
1250
  msgstr ""
1251
 
1252
+ #: ../admin/shortcode-builder/shortcode-builder.php:1056
1253
  msgid "Scrolling"
1254
  msgstr ""
1255
 
1256
+ #: ../admin/shortcode-builder/shortcode-builder.php:1059
1257
  msgid "Enable Scrolling"
1258
  msgstr ""
1259
 
1260
+ #: ../admin/shortcode-builder/shortcode-builder.php:1060
1261
  msgid "Load more posts as the user scrolls the page."
1262
  msgstr ""
1263
 
1264
+ #: ../admin/shortcode-builder/shortcode-builder.php:1081
1265
  msgid "Scroll Distance"
1266
  msgstr ""
1267
 
1268
+ #: ../admin/shortcode-builder/shortcode-builder.php:1081
1269
  msgid ""
1270
  "Distance is based on the position of the loading button from the bottom of "
1271
  "the screen"
1272
  msgstr ""
1273
 
1274
+ #: ../admin/shortcode-builder/shortcode-builder.php:1082
1275
  msgid ""
1276
  "The distance from the bottom of the screen to trigger loading of posts. "
1277
  "(Default = 150)"
1278
  msgstr ""
1279
 
1280
+ #: ../admin/shortcode-builder/shortcode-builder.php:1094
1281
  msgid "Maximum Pages"
1282
  msgstr ""
1283
 
1284
+ #: ../admin/shortcode-builder/shortcode-builder.php:1094
1285
  msgid "If using an Infinite Scroll button style you should set this to 0"
1286
  msgstr ""
1287
 
1288
+ #: ../admin/shortcode-builder/shortcode-builder.php:1095
1289
  msgid "Maximum number of pages to load while scrolling. (0 = unlimited)"
1290
  msgstr ""
1291
 
1292
+ #: ../admin/shortcode-builder/shortcode-builder.php:1107
1293
  msgid "Pause Override"
1294
  msgstr ""
1295
 
1296
+ #: ../admin/shortcode-builder/shortcode-builder.php:1108
1297
  msgid ""
1298
  "Allow scrolling to override the Pause parameter and trigger the loading of "
1299
  "posts on scroll."
1300
  msgstr ""
1301
 
1302
+ #: ../admin/shortcode-builder/shortcode-builder.php:1129
1303
  msgid "Transition"
1304
  msgstr ""
1305
 
1306
+ #: ../admin/shortcode-builder/shortcode-builder.php:1132
1307
  msgid "Transition Type"
1308
  msgstr ""
1309
 
1310
+ #: ../admin/shortcode-builder/shortcode-builder.php:1133
1311
  msgid "Select a loading transition style."
1312
  msgstr ""
1313
 
1314
+ #: ../admin/shortcode-builder/shortcode-builder.php:1140
1315
  msgid "Slide"
1316
  msgstr ""
1317
 
1318
+ #: ../admin/shortcode-builder/shortcode-builder.php:1144
1319
  msgid "Fade"
1320
  msgstr ""
1321
 
1322
+ #: ../admin/shortcode-builder/shortcode-builder.php:1158
1323
  msgid "Transition Speed"
1324
  msgstr ""
1325
 
1326
+ #: ../admin/shortcode-builder/shortcode-builder.php:1158
1327
  msgid "0.5 seconds = 500, 1 second = 1000 etc."
1328
  msgstr ""
1329
 
1330
+ #: ../admin/shortcode-builder/shortcode-builder.php:1159
1331
  msgid "The speed of the loading transition in milliseconds"
1332
  msgstr ""
1333
 
1334
+ #: ../admin/shortcode-builder/shortcode-builder.php:1171
1335
  msgid "Transition Container"
1336
  msgstr ""
1337
 
1338
+ #: ../admin/shortcode-builder/shortcode-builder.php:1171
1339
  msgid ""
1340
  "Removing the transition container may have undesired results and is not "
1341
  "recommended."
1342
  msgstr ""
1343
 
1344
+ #: ../admin/shortcode-builder/shortcode-builder.php:1172
1345
  msgid "Remove the Ajax Load More (.alm-reveal) loading container."
1346
  msgstr ""
1347
 
1348
+ #: ../admin/shortcode-builder/shortcode-builder.php:1179
1349
  msgid "Remove Container"
1350
  msgstr ""
1351
 
1352
+ #: ../admin/shortcode-builder/shortcode-builder.php:1190
1353
  msgid "Destroy After"
1354
  msgstr ""
1355
 
1356
+ #: ../admin/shortcode-builder/shortcode-builder.php:1193
1357
  msgid ""
1358
  "Remove ajax load more functionality after '<em>n</em>' number of pages have "
1359
  "been loaded."
1360
  msgstr ""
1361
 
1362
+ #: ../admin/shortcode-builder/shortcode-builder.php:1211
1363
  msgid "Query Parameters"
1364
  msgstr ""
1365
 
1366
+ #: ../admin/shortcode-builder/shortcode-builder.php:1215
1367
  msgid "Posts Per Page"
1368
  msgstr ""
1369
 
1370
+ #: ../admin/shortcode-builder/shortcode-builder.php:1218
1371
  msgid "Select the number of posts to load with each request."
1372
  msgstr ""
1373
 
1374
+ #: ../admin/shortcode-builder/shortcode-builder.php:1237
1375
  msgid "Post Type"
1376
  msgstr ""
1377
 
1378
+ #: ../admin/shortcode-builder/shortcode-builder.php:1242
1379
  msgid "Select the Post Types to include in this Ajax Load More query."
1380
  msgstr ""
1381
 
1382
+ #: ../admin/shortcode-builder/shortcode-builder.php:1256
1383
  msgid "Any"
1384
  msgstr ""
1385
 
1386
+ #: ../admin/shortcode-builder/shortcode-builder.php:1268
1387
  msgid "Sticky Posts"
1388
  msgstr ""
1389
 
1390
+ #: ../admin/shortcode-builder/shortcode-builder.php:1268
1391
  msgid "Sticky posts are only available for Posts."
1392
  msgstr ""
1393
 
1394
+ #: ../admin/shortcode-builder/shortcode-builder.php:1269
1395
  msgid ""
1396
  "Preserve the ordering of sticky posts by having them appear first in the "
1397
  "Ajax listing."
1398
  msgstr ""
1399
 
1400
+ #: ../admin/shortcode-builder/shortcode-builder.php:1276
1401
  msgid "Enable Sticky Posts"
1402
  msgstr ""
1403
 
1404
+ #: ../admin/shortcode-builder/shortcode-builder.php:1298
1405
  msgid "Post Format"
1406
  msgstr ""
1407
 
1408
+ #: ../admin/shortcode-builder/shortcode-builder.php:1301
1409
  msgid ""
1410
  "Select a <a href=\"http://codex.wordpress.org/Post_Formats\" target=\"_blank"
1411
  "\">Post Format</a> to query."
1412
  msgstr ""
1413
 
1414
+ #: ../admin/shortcode-builder/shortcode-builder.php:1304
1415
  msgid "Select Post Format"
1416
  msgstr ""
1417
 
1418
+ #: ../admin/shortcode-builder/shortcode-builder.php:1305
1419
  msgid "Standard"
1420
  msgstr ""
1421
 
1422
+ #: ../admin/shortcode-builder/shortcode-builder.php:1331
1423
  msgid ""
1424
  "A comma separated list of categories to include by slug. (design, research "
1425
  "etc...)"
1426
  msgstr ""
1427
 
1428
+ #: ../admin/shortcode-builder/shortcode-builder.php:1354
1429
+ #: ../admin/shortcode-builder/shortcode-builder.php:1412
1430
+ #: ../admin/shortcode-builder/shortcode-builder.php:1590
1431
  msgid "Exclude"
1432
  msgstr ""
1433
 
1434
+ #: ../admin/shortcode-builder/shortcode-builder.php:1355
1435
  msgid ""
1436
  "A comma separated list of categories to exclude by ID. (3, 12, 35 etc..)"
1437
  msgstr ""
1438
 
1439
+ #: ../admin/shortcode-builder/shortcode-builder.php:1390
1440
+ #: ../admin/shortcode-builder/shortcode-builder.php:1579
1441
  msgid "Include"
1442
  msgstr ""
1443
 
1444
+ #: ../admin/shortcode-builder/shortcode-builder.php:1391
1445
  msgid ""
1446
  "A comma separated list of tags to include by slug. (toronto, canada etc...)"
1447
  msgstr ""
1448
 
1449
+ #: ../admin/shortcode-builder/shortcode-builder.php:1413
1450
  msgid "A comma separated list of tags to exclude by ID. (30, 12, 99 etc..)"
1451
  msgstr ""
1452
 
1453
+ #: ../admin/shortcode-builder/shortcode-builder.php:1449
1454
  msgid "Select a taxonomy then select the terms and an operator."
1455
  msgstr ""
1456
 
1457
+ #: ../admin/shortcode-builder/shortcode-builder.php:1454
1458
+ #: ../admin/shortcode-builder/shortcode-builder.php:1520
1459
  msgid "Add Another"
1460
  msgstr ""
1461
 
1462
+ #: ../admin/shortcode-builder/shortcode-builder.php:1464
1463
  msgid "Date"
1464
  msgstr ""
1465
 
1466
+ #: ../admin/shortcode-builder/shortcode-builder.php:1467
1467
  msgid ""
1468
  "Enter a year, month(number) and day to query by date archive.<br/>&raquo; <a "
1469
  "href=\"admin.php?page=ajax-load-more-examples#example-date\">View Example</a>"
1470
  msgstr ""
1471
 
1472
+ #: ../admin/shortcode-builder/shortcode-builder.php:1473
1473
  msgid "Year:"
1474
  msgstr ""
1475
 
1476
+ #: ../admin/shortcode-builder/shortcode-builder.php:1477
1477
  msgid "Month:"
1478
  msgstr ""
1479
 
1480
+ #: ../admin/shortcode-builder/shortcode-builder.php:1481
1481
  msgid "Day:"
1482
  msgstr ""
1483
 
1484
+ #: ../admin/shortcode-builder/shortcode-builder.php:1492
1485
  msgid "Custom Fields (Meta_Query)"
1486
  msgstr ""
1487
 
1488
+ #: ../admin/shortcode-builder/shortcode-builder.php:1495
1489
  msgid ""
1490
  "Query for <a href=\"http://codex.wordpress.org/Class_Reference/WP_Meta_Query"
1491
  "\" target=\"_blank\">custom field</a> by entering a custom field key, value "
1492
  "and operator."
1493
  msgstr ""
1494
 
1495
+ #: ../admin/shortcode-builder/shortcode-builder.php:1506
1496
  msgid ""
1497
  "The logical relationship between each custom field when there is more than "
1498
  "one."
1499
  msgstr ""
1500
 
1501
+ #: ../admin/shortcode-builder/shortcode-builder.php:1536
1502
  msgid "Author"
1503
  msgstr ""
1504
 
1505
+ #: ../admin/shortcode-builder/shortcode-builder.php:1539
1506
  msgid "Select an Author to query(by ID)."
1507
  msgstr ""
1508
 
1509
+ #: ../admin/shortcode-builder/shortcode-builder.php:1560
1510
  msgid "Search Term"
1511
  msgstr ""
1512
 
1513
+ #: ../admin/shortcode-builder/shortcode-builder.php:1563
1514
  msgid "Enter a search term to query."
1515
  msgstr ""
1516
 
1517
+ #: ../admin/shortcode-builder/shortcode-builder.php:1567
1518
  msgid "Enter search term"
1519
  msgstr ""
1520
 
1521
+ #: ../admin/shortcode-builder/shortcode-builder.php:1576
1522
  msgid "Post Parameters"
1523
  msgstr ""
1524
 
1525
+ #: ../admin/shortcode-builder/shortcode-builder.php:1580
1526
  msgid "A comma separated list of post ID's to query."
1527
  msgstr ""
1528
 
1529
+ #: ../admin/shortcode-builder/shortcode-builder.php:1584
1530
  msgid "225, 340, 818, etc..."
1531
  msgstr ""
1532
 
1533
+ #: ../admin/shortcode-builder/shortcode-builder.php:1591
1534
  msgid "A comma separated list of post ID's to exclude from query."
1535
  msgstr ""
1536
 
1537
+ #: ../admin/shortcode-builder/shortcode-builder.php:1601
1538
  msgid "Post Status"
1539
  msgstr ""
1540
 
1541
+ #: ../admin/shortcode-builder/shortcode-builder.php:1601
1542
  msgid ""
1543
  "Post Status parameters are only available for logged in (admin) users. Non "
1544
  "logged in users will only have access to view content in a 'publish' or "
1545
  "'inherit' state. "
1546
  msgstr ""
1547
 
1548
+ #: ../admin/shortcode-builder/shortcode-builder.php:1602
1549
  msgid "Select status of the post."
1550
  msgstr ""
1551
 
1552
+ #: ../admin/shortcode-builder/shortcode-builder.php:1607
1553
  msgid "Published"
1554
  msgstr ""
1555
 
1556
+ #: ../admin/shortcode-builder/shortcode-builder.php:1624
1557
  msgid "Ordering"
1558
  msgstr ""
1559
 
1560
+ #: ../admin/shortcode-builder/shortcode-builder.php:1627
1561
  msgid "Sort posts by Order and Orderby parameters."
1562
  msgstr ""
1563
 
1564
+ #: ../admin/shortcode-builder/shortcode-builder.php:1631
1565
  msgid "Order"
1566
  msgstr ""
1567
 
1568
+ #: ../admin/shortcode-builder/shortcode-builder.php:1638
1569
  msgid "Order By"
1570
  msgstr ""
1571
 
1572
+ #: ../admin/shortcode-builder/shortcode-builder.php:1659
1573
  msgid "Offset"
1574
  msgstr ""
1575
 
1576
+ #: ../admin/shortcode-builder/shortcode-builder.php:1662
1577
  msgid "Offset the initial query by <em>'n'</em> number of posts"
1578
  msgstr ""
1579
 
1580
+ #: ../admin/shortcode-builder/shortcode-builder.php:1675
1581
  msgid "Custom Arguments"
1582
  msgstr ""
1583
 
1584
+ #: ../admin/shortcode-builder/shortcode-builder.php:1678
1585
  msgid "A semicolon separated list of custom value:pair arguments."
1586
  msgstr ""
1587
 
1588
+ #: ../admin/shortcode-builder/shortcode-builder.php:1678
1589
  msgid ""
1590
  "Custom Arguments can be used to query by parameters not available in the "
1591
  "Shortcode Builder."
1592
  msgstr ""
1593
 
1594
+ #: ../admin/shortcode-builder/shortcode-builder.php:1682
1595
  msgid "event_display:upcoming"
1596
  msgstr ""
1597
 
1598
+ #: ../admin/views/add-ons.php:6
1599
+ msgid "Add-ons"
1600
+ msgstr ""
1601
+
1602
  #: ../admin/views/add-ons.php:7
1603
  msgid ""
1604
  "Add-ons are available to extend and enhance the core functionality of Ajax "
1636
  "infinite scroll functionality."
1637
  msgstr ""
1638
 
1639
+ #: ../admin/views/add-ons.php:100 ../admin/views/licenses.php:307
1640
  msgid "Custom Repeaters"
1641
  msgstr ""
1642
 
1650
  "absolutely zero restrictions."
1651
  msgstr ""
1652
 
1653
+ #: ../admin/views/add-ons.php:128 ../admin/views/licenses.php:374
1654
+ #: ../admin/views/settings.php:59
1655
  msgid "Layouts"
1656
  msgstr ""
1657
 
1705
  "browser URL to the current post."
1706
  msgstr ""
1707
 
1708
+ #: ../admin/views/add-ons.php:259 ../admin/views/licenses.php:702
1709
  msgid "Search Engine Optimization"
1710
  msgstr ""
1711
 
1719
  "generating unique URLs with every query.</p>"
1720
  msgstr ""
1721
 
1722
+ #: ../admin/views/add-ons.php:285 ../admin/views/licenses.php:770
1723
+ #: ../admin/views/repeater-templates.php:28 ../admin/views/settings.php:69
1724
  msgid "Theme Repeaters"
1725
  msgstr ""
1726
 
1741
  "\"plugins.php\">WordPress plugin dashboard</a>."
1742
  msgstr ""
1743
 
1744
+ #: ../admin/views/extensions.php:5
1745
+ msgid "Extensions"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1746
  msgstr ""
1747
 
1748
+ #: ../admin/views/extensions.php:6
1749
+ msgid ""
1750
+ "Free extensions that provide compatibility with popular plugins and core "
1751
+ "WordPress functionality"
1752
  msgstr ""
1753
 
1754
+ #: ../admin/views/extensions.php:39
1755
+ msgid ""
1756
+ "Extensions are installed as stand alone plugins and receive update "
1757
+ "notifications in the <a href=\"plugins.php\">plugin dashboard</a>."
1758
  msgstr ""
1759
 
1760
+ #: ../admin/views/help.php:4
1761
+ msgid "Get started with our four step guide to painless implementation!"
1762
  msgstr ""
1763
 
1764
+ #: ../admin/views/help.php:9
1765
+ msgid "A collection of everyday shortcode usages and implementation examples"
1766
  msgstr ""
1767
 
1768
+ #: ../admin/views/help.php:18
1769
+ msgid "Help"
1770
  msgstr ""
1771
 
1772
+ #: ../admin/views/help.php:27
1773
+ msgid "Implementation Guide"
1774
  msgstr ""
1775
 
1776
+ #: ../admin/views/help.php:32
1777
+ msgid "Examples"
1778
  msgstr ""
1779
 
1780
+ #: ../admin/views/help.php:65
1781
+ msgid "Example Library"
1782
  msgstr ""
1783
 
1784
+ #: ../admin/views/help.php:67
1785
+ msgid ""
1786
+ "We have a collection of over 20 real-world Ajax Load More <a href=\"https://"
1787
+ "connekthq.com/plugins/ajax-load-more/examples/\" target=\"_blank"
1788
+ "\">examples</a> available on the plugin website"
1789
  msgstr ""
1790
 
1791
+ #: ../admin/views/help.php:69
1792
  msgid "View All Examples"
1793
  msgstr ""
1794
 
 
 
 
 
 
 
 
 
1795
  #: ../admin/views/licenses.php:5
1796
  msgid "Licenses"
1797
  msgstr ""
1813
  "href=\"plugins.php\">WP Plugins dashboard</a>."
1814
  msgstr ""
1815
 
1816
+ #: ../admin/views/licenses.php:54 ../admin/views/licenses.php:120
1817
+ #: ../admin/views/licenses.php:185 ../admin/views/licenses.php:250
1818
+ #: ../admin/views/licenses.php:316 ../admin/views/licenses.php:383
1819
+ #: ../admin/views/licenses.php:449 ../admin/views/licenses.php:516
1820
+ #: ../admin/views/licenses.php:581 ../admin/views/licenses.php:645
1821
+ #: ../admin/views/licenses.php:711 ../admin/views/licenses.php:779
1822
  msgid "Don't have a license?"
1823
  msgstr ""
1824
 
1825
+ #: ../admin/views/licenses.php:55 ../admin/views/licenses.php:121
1826
+ #: ../admin/views/licenses.php:186 ../admin/views/licenses.php:251
1827
+ #: ../admin/views/licenses.php:317 ../admin/views/licenses.php:384
1828
+ #: ../admin/views/licenses.php:450 ../admin/views/licenses.php:517
1829
+ #: ../admin/views/licenses.php:582 ../admin/views/licenses.php:646
1830
+ #: ../admin/views/licenses.php:712 ../admin/views/licenses.php:780
1831
  msgid ""
1832
  "A valid license is required to activate and receive plugin updates directly "
1833
  "in your WordPress dashboard"
1834
  msgstr ""
1835
 
1836
+ #: ../admin/views/licenses.php:55 ../admin/views/licenses.php:121
1837
+ #: ../admin/views/licenses.php:186 ../admin/views/licenses.php:251
1838
+ #: ../admin/views/licenses.php:317 ../admin/views/licenses.php:384
1839
+ #: ../admin/views/licenses.php:450 ../admin/views/licenses.php:517
1840
+ #: ../admin/views/licenses.php:582 ../admin/views/licenses.php:646
1841
+ #: ../admin/views/licenses.php:712 ../admin/views/licenses.php:780
1842
  msgid "Purchase Now"
1843
  msgstr ""
1844
 
1845
+ #: ../admin/views/licenses.php:61 ../admin/views/licenses.php:63
1846
+ #: ../admin/views/licenses.php:127 ../admin/views/licenses.php:129
1847
+ #: ../admin/views/licenses.php:192 ../admin/views/licenses.php:194
1848
+ #: ../admin/views/licenses.php:257 ../admin/views/licenses.php:259
1849
  #: ../admin/views/licenses.php:323 ../admin/views/licenses.php:325
1850
+ #: ../admin/views/licenses.php:390 ../admin/views/licenses.php:392
1851
  #: ../admin/views/licenses.php:456 ../admin/views/licenses.php:458
1852
+ #: ../admin/views/licenses.php:523 ../admin/views/licenses.php:525
1853
+ #: ../admin/views/licenses.php:588 ../admin/views/licenses.php:590
1854
+ #: ../admin/views/licenses.php:652 ../admin/views/licenses.php:654
1855
+ #: ../admin/views/licenses.php:718 ../admin/views/licenses.php:720
1856
+ #: ../admin/views/licenses.php:786 ../admin/views/licenses.php:788
1857
  msgid "Enter License Key"
1858
  msgstr ""
1859
 
1860
+ #: ../admin/views/licenses.php:83 ../admin/views/licenses.php:149
1861
+ #: ../admin/views/licenses.php:214 ../admin/views/licenses.php:279
1862
+ #: ../admin/views/licenses.php:345 ../admin/views/licenses.php:412
1863
+ #: ../admin/views/licenses.php:478 ../admin/views/licenses.php:545
1864
+ #: ../admin/views/licenses.php:609 ../admin/views/licenses.php:674
1865
+ #: ../admin/views/licenses.php:740 ../admin/views/licenses.php:809
1866
  msgid "Activate License"
1867
  msgstr ""
1868
 
1869
+ #: ../admin/views/licenses.php:87 ../admin/views/licenses.php:153
1870
+ #: ../admin/views/licenses.php:218 ../admin/views/licenses.php:283
1871
+ #: ../admin/views/licenses.php:349 ../admin/views/licenses.php:416
1872
+ #: ../admin/views/licenses.php:482 ../admin/views/licenses.php:549
1873
+ #: ../admin/views/licenses.php:613 ../admin/views/licenses.php:678
1874
+ #: ../admin/views/licenses.php:744 ../admin/views/licenses.php:813
1875
  msgid "Deactivate License"
1876
  msgstr ""
1877
 
1878
+ #: ../admin/views/licenses.php:831
1879
  msgid "You do not have any Ajax Load More add-ons installed"
1880
  msgstr ""
1881
 
1882
+ #: ../admin/views/licenses.php:831
1883
  msgid "Browse Add-ons"
1884
  msgstr ""
1885
 
1886
+ #: ../admin/views/licenses.php:842
1887
  msgid "About Licenses"
1888
  msgstr ""
1889
 
1890
+ #: ../admin/views/licenses.php:845
1891
  msgid "Add-on licenses will enable updates directly in your WP dashboard."
1892
  msgstr ""
1893
 
1894
+ #: ../admin/views/licenses.php:846
1895
  msgid ""
1896
  "License keys are found in the purchase receipt email that was sent "
1897
  "immediately after your successful purchase and in the <a target=\"_blank\" "
1898
  "href=\"https://connekthq.com/account/\">Account</a> section on our website"
1899
  msgstr ""
1900
 
1901
+ #: ../admin/views/licenses.php:847
1902
  msgid ""
1903
  "If you cannot locate your key please open a support ticket by filling out "
1904
  "the <a href=\"https://connekthq.com/contact/\">form</a> on our website and "
1905
  "reference the email address used when you completed the purchase."
1906
  msgstr ""
1907
 
1908
+ #: ../admin/views/licenses.php:853
1909
  msgid "Legacy Users"
1910
  msgstr ""
1911
 
1912
+ #: ../admin/views/repeater-templates.php:18
1913
+ #: ../admin/views/repeater-templates.php:27
1914
  msgid "Repeater Templates"
1915
  msgstr ""
1916
 
1917
+ #: ../admin/views/repeater-templates.php:19
1918
  msgid "The library of editable templates for use within your theme"
1919
  msgstr ""
1920
 
1921
+ #: ../admin/views/repeater-templates.php:91
1922
+ msgid "File Location"
1923
+ msgstr ""
1924
+
1925
+ #: ../admin/views/repeater-templates.php:113
1926
+ msgid "Templates Not Found"
1927
+ msgstr ""
1928
+
1929
+ #: ../admin/views/repeater-templates.php:115
1930
+ msgid ""
1931
+ "Oh no - looks like you haven't added any Theme Repeater templates - you need "
1932
+ "to create and upload templates to your theme directory before you can access "
1933
+ "them in Ajax Load More"
1934
+ msgstr ""
1935
+
1936
+ #: ../admin/views/repeater-templates.php:118
1937
+ msgid "Learn More About Theme Repeaters"
1938
+ msgstr ""
1939
+
1940
+ #: ../admin/views/repeater-templates.php:172
1941
  msgid "Default Template"
1942
  msgstr ""
1943
 
1944
+ #: ../admin/views/repeater-templates.php:180
1945
  msgid "Enter the HTML and PHP code for the default template"
1946
  msgstr ""
1947
 
1948
+ #: ../admin/views/repeater-templates.php:202
1949
  msgid "Save Template"
1950
  msgstr ""
1951
 
1952
+ #: ../admin/views/repeater-templates.php:208
1953
  msgid ""
1954
  "It appears you are loading the <a href=\"https://connekthq.com/plugins/ajax-"
1955
  "load-more/docs/repeater-templates/#default-template\" target=\"_blank"
1958
  "your server."
1959
  msgstr ""
1960
 
1961
+ #: ../admin/views/repeater-templates.php:280
1962
  msgid "Saving template..."
1963
  msgstr ""
1964
 
1965
+ #: ../admin/views/repeater-templates.php:313
1966
  msgid "Something went wrong and the data could not be saved."
1967
  msgstr ""
1968
 
1969
+ #: ../admin/views/repeater-templates.php:351
1970
  msgid "Updating template..."
1971
  msgstr ""
1972
 
1973
+ #: ../admin/views/repeater-templates.php:417
1974
  msgid "Repeater Template Help"
1975
  msgstr ""
1976
 
1977
+ #: ../admin/views/repeater-templates.php:419
1978
  msgid "What is a repeater template?"
1979
  msgstr ""
1980
 
1981
+ #: ../admin/views/repeater-templates.php:420
1982
  msgid ""
1983
  "A <a href=\"https://connekthq.com/plugins/ajax-load-more/docs/repeater-"
1984
  "templates/\" target=\"_blank\">repeater template</a> is a snippet of code "
1986
  "org/The_Loop\" target=\"_blank\">WordPress loop</a>"
1987
  msgstr ""
1988
 
1989
+ #: ../admin/views/repeater-templates.php:422
1990
  msgid "More About Templating"
1991
  msgstr ""
1992
 
1995
  msgstr ""
1996
 
1997
  #: ../admin/views/settings.php:20
1998
+ msgid "Thanks for installing Ajax Load More 3.0!"
 
 
 
 
 
 
 
 
1999
  msgstr ""
2000
 
2001
+ #: ../admin/views/settings.php:37
2002
  msgid "Don't show me this again!"
2003
  msgstr ""
2004
 
2005
+ #: ../admin/views/settings.php:49 ../admin/views/settings.php:52
2006
  msgid "Jump to Setting"
2007
  msgstr ""
2008
 
2009
+ #: ../admin/views/settings.php:53
2010
  msgid "Global Settings"
2011
  msgstr ""
2012
 
2013
+ #: ../admin/views/settings.php:54
2014
  msgid "Admin"
2015
  msgstr ""
2016
 
2017
+ #: ../admin/views/settings.php:67
2018
  msgid "SEO"
2019
  msgstr ""
2020
 
2046
  msgid "Reset Shortcode Builder"
2047
  msgstr ""
2048
 
2049
+ #: ../ajax-load-more.php:236
2050
  msgid "Settings"
2051
  msgstr ""
2052
 
2054
  msgid "Pages:"
2055
  msgstr ""
2056
 
2057
+ #: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:86
2058
+ #: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:381
2059
+ msgid "Activated"
2060
+ msgstr ""
2061
+
2062
+ #: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:128
2063
+ msgid "By"
2064
+ msgstr ""
2065
+
2066
+ #: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:141
2067
+ msgid "More Details"
2068
+ msgstr ""
2069
+
2070
+ #: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:163
2071
+ msgid "Sorry, you are not allowed to install plugins on this site."
2072
+ msgstr ""
2073
+
2074
+ #: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:170
2075
+ #: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:241
2076
+ msgid "Error - unable to verify nonce, please try again."
2077
+ msgstr ""
2078
+
2079
+ #: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:234
2080
+ msgid "Sorry, you are not allowed to activate plugins on this site."
2081
+ msgstr ""
2082
+
2083
+ #: ../vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:378
2084
+ msgid "Are you sure you want to install this plugin?"
2085
+ msgstr ""
2086
+
2087
  #~ msgid "404 Error"
2088
  #~ msgstr "Erreur 404 "
2089
 
vendor/connekt-plugin-installer/.editorconfig ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # EditorConfig helps developers define and maintain consistent
2
+ # coding styles between different editors and IDEs
3
+ # editorconfig.org
4
+
5
+ # PHP PSR-2 Coding Standards
6
+ # http://www.php-fig.org/psr/psr-2/
7
+
8
+ root = true
9
+
10
+ [*.php]
11
+ charset = utf-8
12
+ end_of_line = lf
13
+ insert_final_newline = true
14
+ trim_trailing_whitespace = true
15
+ indent_style = tab
16
+ indent_size = 3
vendor/connekt-plugin-installer/assets/installer.css ADDED
@@ -0,0 +1,129 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .cnkt-plugin-installer{
2
+ box-sizing: border-box;
3
+ display: -webkit-box;
4
+ display: -moz-box;
5
+ display: -ms-flexbox;
6
+ display: -webkit-flex;
7
+ display: flex;
8
+ -webkit-flex-wrap: wrap;
9
+ flex-wrap: wrap;
10
+ flex-flow: row wrap;
11
+ -webkit-flex-flow: row wrap;
12
+ justify-content: space-between;
13
+ width: 102%;
14
+ position: relative;
15
+ left: -1%;
16
+ }
17
+ .cnkt-plugin-installer:after {
18
+ content: "";
19
+ flex: auto;
20
+ }
21
+ .cnkt-plugin-installer * {
22
+ box-sizing: border-box;
23
+ }
24
+ .cnkt-plugin-installer .plugin{
25
+ width: 31.333%;
26
+ margin: 0 1% 30px;
27
+ padding: 0;
28
+ overflow: hidden;
29
+ text-align: left;
30
+ border: 1px solid #e1e1e1;
31
+ background: #fff;
32
+ position: relative;
33
+ border-radius: 2px;
34
+ }
35
+ .cnkt-plugin-installer .plugin:hover{
36
+ border-color: #cecece;
37
+ }
38
+
39
+ .cnkt-plugin-installer .plugin-wrap{
40
+ padding: 20px 20px 95px 145px;
41
+ min-height: 214px;
42
+ display: block;
43
+ position: relative;
44
+ }
45
+ .cnkt-plugin-installer li a,
46
+ .cnkt-plugin-installer .plugin-wrap a{
47
+ text-decoration: none;
48
+ }
49
+ .cnkt-plugin-installer .plugin-wrap img{
50
+ display: block;
51
+ position: absolute;
52
+ left: 20px;
53
+ top: 20px;
54
+ max-width: 108px;
55
+ max-height: 108px;
56
+ border: 1px solid #f7f7f7;
57
+ }
58
+ .cnkt-plugin-installer .plugin-wrap h2,
59
+ .cnkt-plugin-installer .plugin-wrap p{
60
+ padding: 0;
61
+ margin: 0;
62
+ font-size: 17px;
63
+ font-weight: 600;
64
+ color: #333;
65
+ line-height: 1.4;
66
+ }
67
+ .cnkt-plugin-installer .plugin-wrap p{
68
+ padding: 10px 0 0;
69
+ margin: 0;
70
+ font-size: 14px;
71
+ font-weight: 400;
72
+ color: #777;
73
+ }
74
+ .cnkt-plugin-installer .plugin-wrap p.plugin-author{
75
+ font-size: 13px;
76
+ padding-top: 20px;
77
+ font-style: italic;
78
+ }
79
+
80
+ .cnkt-plugin-installer .activation-row{
81
+ display: block;
82
+ margin: 0;
83
+ padding: 20px;
84
+ background: #f7f7f7;
85
+ border-top: 1px solid #e1e1e1;
86
+ border-radius: 0 0 2px 2px;
87
+ position: absolute;
88
+ bottom: 0;
89
+ width: 100%;
90
+ overflow: hidden;
91
+ border-radius: 0 0 2px 2px;
92
+ text-align: left;
93
+ }
94
+ .cnkt-plugin-installer .activation-row li{
95
+ display: inline-block;
96
+ vertical-align: top;
97
+ margin: 0 10px 0 0;
98
+ font-size: 13px;
99
+ line-height: 27px;
100
+ }
101
+
102
+ @media screen and (max-width: 1170px){
103
+ .cnkt-plugin-installer .plugin{
104
+ width: 48%;
105
+ margin: 0 1% 15px;
106
+ }
107
+ }
108
+ @media screen and (max-width: 960px){
109
+ .cnkt-plugin-installer .plugin-wrap{
110
+ padding: 20px 20px 95px 115px;
111
+ min-height: 214px;
112
+ }
113
+ .cnkt-plugin-installer .plugin-wrap img{
114
+ max-width: 78px;
115
+ max-height: 78px;
116
+ }
117
+ }
118
+ @media screen and (max-width: 640px){
119
+ .cnkt-plugin-installer{
120
+ width: 100%;
121
+ position: static;
122
+ }
123
+ .cnkt-plugin-installer .plugin{
124
+ width: 100%;
125
+ margin: 0 0 20px;
126
+ }
127
+ }
128
+
129
+
vendor/connekt-plugin-installer/assets/installer.js ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var cnkt_installer = cnkt_installer || {};
2
+
3
+ jQuery(document).ready(function($) {
4
+
5
+ "use strict";
6
+
7
+ var is_loading = false;
8
+
9
+
10
+
11
+ /*
12
+ * install_plugin
13
+ * Install the plugin
14
+ *
15
+ *
16
+ * @param el object Button element
17
+ * @param plugin string Plugin slug
18
+ * @since 1.0
19
+ */
20
+
21
+ cnkt_installer.install_plugin = function(el, plugin){
22
+
23
+ // Confirm activation
24
+ var r = confirm(cnkt_installer_localize.install_now);
25
+
26
+ if (r) {
27
+
28
+ is_loading = true;
29
+ el.addClass('installing');
30
+
31
+ $.ajax({
32
+ type: 'POST',
33
+ url: cnkt_installer_localize.ajax_url,
34
+ data: {
35
+ action: 'cnkt_plugin_installer',
36
+ plugin: plugin,
37
+ nonce: cnkt_installer_localize.admin_nonce,
38
+ dataType: 'json'
39
+ },
40
+ success: function(data) {
41
+ if(data){
42
+ if(data.status === 'success'){
43
+ el.attr('class', 'activate button button-primary');
44
+ el.html(cnkt_installer_localize.activate_btn);
45
+ } else {
46
+ el.removeClass('installing');
47
+ }
48
+ } else {
49
+ el.removeClass('installing');
50
+ }
51
+ is_loading = false;
52
+ },
53
+ error: function(xhr, status, error) {
54
+ console.log(status);
55
+ el.removeClass('installing');
56
+ is_loading = false;
57
+ }
58
+ });
59
+
60
+ }
61
+ }
62
+
63
+
64
+
65
+ /*
66
+ * activate_plugin
67
+ * Activate the plugin
68
+ *
69
+ *
70
+ * @param el object Button element
71
+ * @param plugin string Plugin slug
72
+ * @since 1.0
73
+ */
74
+
75
+ cnkt_installer.activate_plugin = function(el, plugin){
76
+
77
+ $.ajax({
78
+ type: 'POST',
79
+ url: cnkt_installer_localize.ajax_url,
80
+ data: {
81
+ action: 'cnkt_plugin_activation',
82
+ plugin: plugin,
83
+ nonce: cnkt_installer_localize.admin_nonce,
84
+ dataType: 'json'
85
+ },
86
+ success: function(data) {
87
+ if(data){
88
+ if(data.status === 'success'){
89
+ el.attr('class', 'installed button disabled');
90
+ el.html(cnkt_installer_localize.installed_btn);
91
+ }
92
+ }
93
+ is_loading = false;
94
+ },
95
+ error: function(xhr, status, error) {
96
+ console.log(status);
97
+ is_loading = false;
98
+ }
99
+ });
100
+
101
+ };
102
+
103
+
104
+
105
+ /*
106
+ * Install/Activate Button Click
107
+ *
108
+ * @since 1.0
109
+ */
110
+
111
+ $(document).on('click', '.cnkt-plugin-installer a.button', function(e){
112
+ var el = $(this),
113
+ plugin = el.data('slug');
114
+
115
+ e.preventDefault();
116
+
117
+ if(!el.hasClass('disabled')){
118
+
119
+ if(is_loading) return false;
120
+
121
+ // Installation
122
+ if(el.hasClass('install')){
123
+ cnkt_installer.install_plugin(el, plugin);
124
+ }
125
+
126
+ // Activation
127
+ if(el.hasClass('activate')){
128
+ cnkt_installer.activate_plugin(el, plugin);
129
+ }
130
+ }
131
+ });
132
+
133
+
134
+ });
vendor/connekt-plugin-installer/class-connekt-plugin-installer.php ADDED
@@ -0,0 +1,393 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Connekt_Plugin_Installer
4
+ *
5
+ * @author Darren Cooney
6
+ * @repo https://github.com/dcooney/connekt-plugin-installer/
7
+ * @site https://connekthq.com
8
+ * @version 1.0
9
+ */
10
+
11
+
12
+ if (!defined('ABSPATH')) exit;
13
+
14
+
15
+
16
+ if( !class_exists('Connekt_Plugin_Installer') ) {
17
+
18
+ class Connekt_Plugin_Installer {
19
+
20
+ public function start(){
21
+
22
+ define('CNKT_INSTALLER_PATH', plugins_url('/', __FILE__));
23
+ add_action( 'admin_enqueue_scripts', array(&$this, 'enqueue_scripts' )); // Enqueue scripts
24
+ add_action( 'admin_head', array(&$this, 'localize_admin' )); // Localization scripts
25
+ add_action( 'wp_ajax_cnkt_plugin_installer', array(&$this, 'cnkt_plugin_installer' )); // Install plugin
26
+ add_action( 'wp_ajax_cnkt_plugin_activation', array(&$this, 'cnkt_plugin_activation' )); // Activate
27
+
28
+ }
29
+
30
+
31
+
32
+
33
+ /*
34
+ * init
35
+ * Initialize the display of the plugins.
36
+ *
37
+ *
38
+ * @param $plugin Array - plugin data
39
+ *
40
+ * @since 1.0
41
+ */
42
+ public static function init($plugins){ ?>
43
+
44
+ <div class="cnkt-plugin-installer">
45
+ <?php
46
+ require_once( ABSPATH . 'wp-admin/includes/plugin-install.php' );
47
+
48
+ foreach($plugins as $plugin) :
49
+
50
+ $button_classes = 'install button';
51
+ $button_text = __('Install Now', 'framework');
52
+
53
+ $api = plugins_api( 'plugin_information',
54
+ array(
55
+ 'slug' => sanitize_file_name($plugin['slug']),
56
+ 'fields' => array(
57
+ 'short_description' => true,
58
+ 'sections' => false,
59
+ 'requires' => false,
60
+ 'downloaded' => true,
61
+ 'last_updated' => false,
62
+ 'added' => false,
63
+ 'tags' => false,
64
+ 'compatibility' => false,
65
+ 'homepage' => false,
66
+ 'donate_link' => false,
67
+ 'icons' => true,
68
+ 'banners' => true,
69
+ ),
70
+ )
71
+ );
72
+
73
+ //echo '<pre>';
74
+ //print_r($api);
75
+ //echo '</pre>';
76
+
77
+
78
+ if ( !is_wp_error( $api ) ) { // confirm error free
79
+
80
+ $main_plugin_file = Connekt_Plugin_Installer::get_plugin_file($plugin['slug']); // Get main plugin file
81
+ //echo $main_plugin_file;
82
+ if(self::check_file_extension($main_plugin_file)){ // check file extension
83
+ if(is_plugin_active($main_plugin_file)){
84
+ // plugin activation confirmed
85
+ $button_classes = 'button disabled';
86
+ $button_text = __('Activated', 'framework');
87
+ } else {
88
+ // It's installed, let's activate it
89
+ $button_classes = 'activate button button-primary';
90
+ $button_text = __('Activate', 'framework');
91
+ }
92
+ }
93
+
94
+ // Send plugin data to template
95
+ self::render_template($plugin, $api, $button_text, $button_classes);
96
+
97
+ }
98
+
99
+ endforeach;
100
+ ?>
101
+ </div>
102
+ <?php
103
+ }
104
+
105
+
106
+
107
+
108
+ /*
109
+ * render_template
110
+ * Render display template for each plugin.
111
+ *
112
+ *
113
+ * @param $plugin Array - Original data passed to init()
114
+ * @param $api Array - Results from plugins_api
115
+ * @param $button_text String - text for the button
116
+ * @param $button_classes String - classnames for the button
117
+ *
118
+ * @since 1.0
119
+ */
120
+ public static function render_template($plugin, $api, $button_text, $button_classes){
121
+ ?>
122
+ <div class="plugin">
123
+ <div class="plugin-wrap">
124
+ <img src="<?php echo $api->icons['1x']; ?>" alt="">
125
+ <h2><?php echo $api->name; ?></h2>
126
+ <p><?php echo $api->short_description; ?></p>
127
+
128
+ <p class="plugin-author"><?php _e('By', 'ajax-load-more'); ?> <?php echo $api->author; ?></p>
129
+ </div>
130
+ <ul class="activation-row">
131
+ <li>
132
+ <a class="<?php echo $button_classes; ?>"
133
+ data-slug="<?php echo $api->slug; ?>"
134
+ data-name="<?php echo $api->name; ?>"
135
+ href="<?php echo get_admin_url(); ?>/update.php?action=install-plugin&amp;plugin=<?php echo $api->slug; ?>&amp;_wpnonce=<?php echo wp_create_nonce('install-plugin_'. $api->slug) ?>">
136
+ <?php echo $button_text; ?>
137
+ </a>
138
+ </li>
139
+ <li>
140
+ <a href="https://wordpress.org/plugins/<?php echo $api->slug; ?>/" target="_blank">
141
+ <?php _e('More Details', 'ajax-load-more'); ?>
142
+ </a>
143
+ </li>
144
+ </ul>
145
+ </div>
146
+ <?php
147
+ }
148
+
149
+
150
+
151
+
152
+ /*
153
+ * cnkt_plugin_installer
154
+ * An Ajax method for installing plugin.
155
+ *
156
+ * @return $json
157
+ *
158
+ * @since 1.0
159
+ */
160
+ public function cnkt_plugin_installer(){
161
+
162
+ if ( ! current_user_can('install_plugins') )
163
+ wp_die( __( 'Sorry, you are not allowed to install plugins on this site.', 'framework' ) );
164
+
165
+ $nonce = $_POST["nonce"];
166
+ $plugin = $_POST["plugin"];
167
+
168
+ // Check our nonce, if they don't match then bounce!
169
+ if (! wp_verify_nonce( $nonce, 'cnkt_installer_nonce' ))
170
+ wp_die( __( 'Error - unable to verify nonce, please try again.', 'framework') );
171
+
172
+
173
+ // Include required libs for installation
174
+ require_once( ABSPATH . 'wp-admin/includes/plugin-install.php' );
175
+ require_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
176
+ require_once( ABSPATH . 'wp-admin/includes/class-wp-ajax-upgrader-skin.php' );
177
+ require_once( ABSPATH . 'wp-admin/includes/class-plugin-upgrader.php' );
178
+
179
+ // Get Plugin Info
180
+ $api = plugins_api( 'plugin_information',
181
+ array(
182
+ 'slug' => $plugin,
183
+ 'fields' => array(
184
+ 'short_description' => false,
185
+ 'sections' => false,
186
+ 'requires' => false,
187
+ 'rating' => false,
188
+ 'ratings' => false,
189
+ 'downloaded' => false,
190
+ 'last_updated' => false,
191
+ 'added' => false,
192
+ 'tags' => false,
193
+ 'compatibility' => false,
194
+ 'homepage' => false,
195
+ 'donate_link' => false,
196
+ ),
197
+ )
198
+ );
199
+
200
+ $skin = new WP_Ajax_Upgrader_Skin();
201
+ $upgrader = new Plugin_Upgrader( $skin );
202
+ $upgrader->install($api->download_link);
203
+
204
+ if($api->name){
205
+ $status = 'success';
206
+ $msg = $api->name .' successfully installed.';
207
+ } else {
208
+ $status = 'failed';
209
+ $msg = 'There was an error installing '. $api->name .'.';
210
+ }
211
+
212
+ $json = array(
213
+ 'status' => $status,
214
+ 'msg' => $msg,
215
+ );
216
+
217
+ wp_send_json($json);
218
+
219
+ }
220
+
221
+
222
+
223
+
224
+ /*
225
+ * cnkt_plugin_activation
226
+ * Activate plugin via Ajax.
227
+ *
228
+ * @return $json
229
+ *
230
+ * @since 1.0
231
+ */
232
+ public function cnkt_plugin_activation(){
233
+ if ( ! current_user_can('install_plugins') )
234
+ wp_die( __( 'Sorry, you are not allowed to activate plugins on this site.', 'framework' ) );
235
+
236
+ $nonce = $_POST["nonce"];
237
+ $plugin = $_POST["plugin"];
238
+
239
+ // Check our nonce, if they don't match then bounce!
240
+ if (! wp_verify_nonce( $nonce, 'cnkt_installer_nonce' ))
241
+ die( __( 'Error - unable to verify nonce, please try again.', 'framework' ) );
242
+
243
+
244
+ // Include required libs for activation
245
+ require_once( ABSPATH . 'wp-admin/includes/plugin-install.php' );
246
+ require_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
247
+ require_once( ABSPATH . 'wp-admin/includes/class-plugin-upgrader.php' );
248
+
249
+
250
+ // Get Plugin Info
251
+ $api = plugins_api( 'plugin_information',
252
+ array(
253
+ 'slug' => $plugin,
254
+ 'fields' => array(
255
+ 'short_description' => false,
256
+ 'sections' => false,
257
+ 'requires' => false,
258
+ 'rating' => false,
259
+ 'ratings' => false,
260
+ 'downloaded' => false,
261
+ 'last_updated' => false,
262
+ 'added' => false,
263
+ 'tags' => false,
264
+ 'compatibility' => false,
265
+ 'homepage' => false,
266
+ 'donate_link' => false,
267
+ ),
268
+ )
269
+ );
270
+
271
+
272
+ if($api->name){
273
+ $main_plugin_file = Connekt_Plugin_Installer::get_plugin_file($plugin);
274
+ $status = 'success';
275
+ if($main_plugin_file){
276
+ activate_plugin($main_plugin_file);
277
+ $msg = $api->name .' successfully activated.';
278
+ }
279
+ } else {
280
+ $status = 'failed';
281
+ $msg = 'There was an error activating '. $api->name .'.';
282
+ }
283
+
284
+ $json = array(
285
+ 'status' => $status,
286
+ 'msg' => $msg,
287
+ );
288
+
289
+ wp_send_json($json);
290
+
291
+ }
292
+
293
+
294
+
295
+
296
+ /*
297
+ * get_plugin_file
298
+ * A method to get the main plugin file.
299
+ *
300
+ *
301
+ * @param $plugin_slug String - The slug of the plugin
302
+ * @return $plugin_file
303
+ *
304
+ * @since 1.0
305
+ */
306
+
307
+ public static function get_plugin_file( $plugin_slug ) {
308
+ require_once( ABSPATH . '/wp-admin/includes/plugin.php' ); // Load plugin lib
309
+ $plugins = get_plugins();
310
+
311
+ foreach( $plugins as $plugin_file => $plugin_info ) {
312
+
313
+ // Get the basename of the plugin e.g. [askismet]/askismet.php
314
+ $slug = dirname( plugin_basename( $plugin_file ) );
315
+
316
+ if($slug){
317
+ if ( $slug == $plugin_slug ) {
318
+ return $plugin_file; // If $slug = $plugin_name
319
+ }
320
+ }
321
+ }
322
+ return null;
323
+ }
324
+
325
+
326
+
327
+
328
+ /*
329
+ * check_file_extension
330
+ * A helper to check file extension
331
+ *
332
+ *
333
+ * @param $filename String - The filename of the plugin
334
+ * @return boolean
335
+ *
336
+ * @since 1.0
337
+ */
338
+ public static function check_file_extension( $filename ) {
339
+ if( substr( strrchr($filename, '.' ), 1 ) === 'php' ){
340
+ // has .php exension
341
+ return true;
342
+ } else {
343
+ // ./wp-content/plugins
344
+ return false;
345
+ }
346
+ }
347
+
348
+
349
+
350
+
351
+ /*
352
+ * enqueue_scripts
353
+ * Enqueue admin scripts
354
+ *
355
+ *
356
+ * @since 1.0
357
+ */
358
+ public function enqueue_scripts(){
359
+ wp_enqueue_script( 'plugin-installer', CNKT_INSTALLER_PATH. 'assets/installer.js', array( 'jquery' ));
360
+ wp_enqueue_style( 'plugin-installer', CNKT_INSTALLER_PATH. 'assets/installer.css');
361
+ }
362
+
363
+
364
+
365
+
366
+ /*
367
+ * localize_admin
368
+ * Create admin variables and ajax nonce
369
+ *
370
+ * @since 1.0
371
+ */
372
+ public function localize_admin() { ?>
373
+ <script type='text/javascript'>
374
+ /* <![CDATA[ */
375
+ var cnkt_installer_localize = <?php echo json_encode( array(
376
+ 'ajax_url' => admin_url('admin-ajax.php'),
377
+ 'admin_nonce' => wp_create_nonce('cnkt_installer_nonce'),
378
+ 'install_now' => __('Are you sure you want to install this plugin?', 'framework'),
379
+ 'install_btn' => __('Install Now', 'framework'),
380
+ 'activate_btn' => __('Activate', 'framework'),
381
+ 'installed_btn' => __('Activated', 'framework')
382
+ )); ?>
383
+ /* ]]> */
384
+ </script>
385
+ <?php }
386
+
387
+ }
388
+
389
+
390
+ // initialize
391
+ $connekt_plugin_installer = new Connekt_Plugin_Installer();
392
+ $connekt_plugin_installer->start();
393
+ }