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">