WordPress Infinite Scroll – Ajax Load More - Version 4.0

Version Description

  • November 5, 2018 =
  • NEW - Introducing Ajax Load More Pro! Access to every Ajax Load More add-on in a single installation.
  • NEW - Adding category__and and tag__and support for querying categories and tags.
  • UPDATE - Adding fix for permission error on repeater template directory by replacing mkdir() with WordPress core function wp_mkdir_p.
  • FIX - Fixed issue with Filters onComplete functions triggering before Ajax results were rendered on the screen.
  • FIX - Adding fix for alm_get_canonical_url function when getting URLs of child category and tag archives.
Download this release

Release Info

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

Code changes from version 3.7.1 to 4.0

.babelrc ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ {
2
+ "presets": ["es2015"]
3
+ }
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, endless scroll, pagination, ajax pagination, ajax, ajax posts, woocommerce, ajax load more, masonry
5
  Requires at least: 3.6
6
- Tested up to: 4.9.8
7
- Stable tag: 3.7.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -75,8 +75,10 @@ Ajax Load More accepts a number of parameters that are passed to the WordPress q
75
  * **sticky_posts** - Preserve sticky post ordering in Ajax listing. Default = false
76
  * **post_format** - Query by post format. Default = null
77
  * **category** - A comma separated list of categories to include by slug. Default = null
 
78
  * **category__not_in** - A comma separated list of categories to exclude by ID. Default = null
79
  * **tag** - A comma separated list of tags to include by slug. Default = null
 
80
  * **tag__not_in** - A comma separated list of tags to exclude by ID. Default = null
81
  * **taxonomy** - Query by custom taxonomy name. Default = null
82
  * **taxonomy_terms** - Comma separated list of custom taxonomy terms(slug). Default = null
@@ -369,11 +371,19 @@ How to install Ajax Load More.
369
 
370
  == Changelog ==
371
 
 
 
 
 
 
 
 
 
372
  = 3.7.1 - October 3, 2018 =
373
  Minor point release that affects Preloaded and Search Engine Optimization add-on users only. This release fixes 2 critical bugs in Ajax Load More 3.7.
374
 
375
- * FIX - Fix for Preloaded add-on not parsing multiple Post Types (I'm sorry about that!).
376
- * FIX - Adding `.alm-reveal` div and `css_classes` to NO_SCRIPT render to keep styling and layouts consistent.
377
 
378
 
379
  = 3.7 - September 19, 2018 =
3
  Donate link: https://connekthq.com/donate/
4
  Tags: infinite scroll, infinite scrolling, scroll, infinite, lazy load, lazy loading, endless scroll, pagination, ajax pagination, ajax, ajax posts, woocommerce, ajax load more, masonry
5
  Requires at least: 3.6
6
+ Tested up to: 5.0
7
+ Stable tag: 4.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
75
  * **sticky_posts** - Preserve sticky post ordering in Ajax listing. Default = false
76
  * **post_format** - Query by post format. Default = null
77
  * **category** - A comma separated list of categories to include by slug. Default = null
78
+ * **category__and** - A comma separated list of categories to include by ID. Default = null
79
  * **category__not_in** - A comma separated list of categories to exclude by ID. Default = null
80
  * **tag** - A comma separated list of tags to include by slug. Default = null
81
+ * **tag__and** - A comma separated list of tags to include by ID. Default = null
82
  * **tag__not_in** - A comma separated list of tags to exclude by ID. Default = null
83
  * **taxonomy** - Query by custom taxonomy name. Default = null
84
  * **taxonomy_terms** - Comma separated list of custom taxonomy terms(slug). Default = null
371
 
372
  == Changelog ==
373
 
374
+ = 4.0 - November 5, 2018 =
375
+ * NEW - Introducing [Ajax Load More Pro](https://connekthq.com/plugins/ajax-load-more/pro/)! Access to every Ajax Load More add-on in a single installation.
376
+ * NEW - Adding `category__and` and `tag__and` support for querying categories and tags.
377
+ * UPDATE - Adding fix for permission error on repeater template directory by replacing `mkdir()` with WordPress core function `wp_mkdir_p`.
378
+ * FIX - Fixed issue with Filters onComplete functions triggering before Ajax results were rendered on the screen.
379
+ * FIX - Adding fix for `alm_get_canonical_url` function when getting URLs of child category and tag archives.
380
+
381
+
382
  = 3.7.1 - October 3, 2018 =
383
  Minor point release that affects Preloaded and Search Engine Optimization add-on users only. This release fixes 2 critical bugs in Ajax Load More 3.7.
384
 
385
+ * FIX - Fix for Preloaded not parsing multiple Post Types (Sorry about that)
386
+ * FIX - Adding `.alm-reveal` div and `css_classes` to NO_SCRIPT render.
387
 
388
 
389
  = 3.7 - September 19, 2018 =
admin/admin.php CHANGED
@@ -9,10 +9,81 @@ add_action( 'wp_ajax_alm_license_activation', 'alm_license_activation' ); // Act
9
  add_action( 'alm_get_layouts', 'alm_get_layouts' ); // Add layout selection
10
  add_action( 'wp_ajax_alm_get_layout', 'alm_get_layout' ); // Get layout
11
  add_action( 'wp_ajax_alm_dismiss_sharing', 'alm_dismiss_sharing' ); // Dismiss sharing
 
12
  add_filter( 'admin_footer_text', 'alm_filter_admin_footer_text'); // Admin menu text
13
 
14
 
15
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  /*
17
  * alm_repeaters_export
18
  * This function will export a repeater template and force download
@@ -57,7 +128,7 @@ function alm_admin_notice_errors() {
57
 
58
  if(has_action('alm_pro_installed')){ // Pro
59
  $addons = alm_get_pro_addon();
60
- $message = __( 'You have an invalid <a href="admin.php?page=ajax-load-more"><b>Ajax Load More Pro</b></a> license key - please visit the <a href="admin.php?page=ajax-load-more-licenses">License</a> section to input your key or <a href="https://connekthq.com/plugins/ajax-load-more/pro/" target="_blank">purchase</a> one now.', 'ajax-load-more' );
61
 
62
  } else {
63
  $addons = alm_get_addons();
@@ -257,6 +328,7 @@ function alm_admin_vars() { ?>
257
  'select_authors' => __('Select Author(s)', 'ajax-load-more'),
258
  'select_cats' => __('Select Categories', 'ajax-load-more'),
259
  'select_tags' => __('Select Tags', 'ajax-load-more'),
 
260
  'jump_to_option' => __('Jump to Option', 'ajax-load-more'),
261
  'jump_to_template' => __('Jump to Template', 'ajax-load-more'),
262
  'install_now' => __('Are you sure you want to install this Ajax Load More extension?', 'ajax-load-more'),
@@ -462,11 +534,11 @@ function alm_admin_menu() {
462
  'alm_help_page'
463
  );
464
 
465
- $license_ttl = (has_action('alm_pro_installed')) ? __('License', 'ajax-load-more') : __('Licenses', 'ajax-load-more');
466
  $alm_licenses_page = add_submenu_page(
467
  'ajax-load-more',
468
- $license_ttl,
469
- $license_ttl,
470
  'edit_theme_options',
471
  'ajax-load-more-licenses',
472
  'alm_licenses_page'
@@ -488,6 +560,15 @@ function alm_admin_menu() {
488
  'ajax-load-more-pro',
489
  'alm_pro_page'
490
  );
 
 
 
 
 
 
 
 
 
491
  }
492
 
493
 
@@ -537,7 +618,8 @@ function alm_admin_menu() {
537
  add_action( 'load-' . $alm_help_page, 'alm_load_admin_js' );
538
  add_action( 'load-' . $alm_help_page, 'alm_set_admin_nonce' );
539
 
540
- if(has_action('alm_pro_installed')){ // Pro
 
541
  add_action( 'load-' . $alm_pro_page, 'alm_load_admin_js' );
542
  add_action( 'load-' . $alm_pro_page, 'alm_load_pro_admin_js' );
543
  add_action( 'load-' . $alm_pro_page, 'alm_set_admin_nonce' );
@@ -545,7 +627,8 @@ function alm_admin_menu() {
545
  } else {
546
  add_action( 'load-' . $alm_addons_page, 'alm_load_admin_js' );
547
  add_action( 'load-' . $alm_addons_page, 'alm_set_admin_nonce' );
548
-
 
549
  }
550
  add_action( 'load-' . $alm_extensions_page, 'alm_load_admin_js' );
551
  add_action( 'load-' . $alm_extensions_page, 'alm_set_admin_nonce' );
@@ -622,6 +705,19 @@ function alm_extensions_page(){
622
 
623
 
624
 
 
 
 
 
 
 
 
 
 
 
 
 
 
625
  /*
626
  * alm_example_page
627
  * Examples Page
@@ -998,7 +1094,6 @@ function alm_get_tax_terms(){
998
  */
999
  function alm_layouts_dismiss(){
1000
  if (current_user_can( 'edit_theme_options' )){
1001
-
1002
  $nonce = $_POST["nonce"];
1003
 
1004
  // Check our nonce, if they don't match then bounce!
@@ -1053,6 +1148,10 @@ function alm_filter_admin_footer_text( $text ) {
1053
  }
1054
 
1055
  echo '<strong>Ajax Load More</strong> is made with <span style="color: #e25555;">♥</span> by <a href="https://connekthq.com" target="_blank" style="font-weight: 500;">Connekt</a> | <a href="https://wordpress.org/support/plugin/ajax-load-more/reviews/" target="_blank" style="font-weight: 500;">Leave a Review</a> | <a href="https://connekthq.com/plugins/ajax-load-more/support/" target="_blank" style="font-weight: 500;">Get Support</a>';
 
 
 
 
1056
  }
1057
 
1058
 
9
  add_action( 'alm_get_layouts', 'alm_get_layouts' ); // Add layout selection
10
  add_action( 'wp_ajax_alm_get_layout', 'alm_get_layout' ); // Get layout
11
  add_action( 'wp_ajax_alm_dismiss_sharing', 'alm_dismiss_sharing' ); // Dismiss sharing
12
+ add_action( 'wp_ajax_alm_set_transient', 'alm_set_transient' ); // Set transient
13
  add_filter( 'admin_footer_text', 'alm_filter_admin_footer_text'); // Admin menu text
14
 
15
 
16
 
17
+
18
+ /*
19
+ * alm_render_transient_notification
20
+ * Render a notification in the dashboard
21
+ *
22
+ * @since 4.0
23
+ */
24
+ function alm_render_transient_notification(){
25
+ if(!has_action('alm_pro_installed')){
26
+
27
+ $msg = '🔥 Introducing <strong><a href="https://connekthq.com/plugins/ajax-load-more/pro/" target="_blank">Ajax Load More Pro</a></strong> - get instant access to all 13 add-ons in a single installation! &nbsp; <strong><a href="https://connekthq.com/plugins/ajax-load-more/pro/" target="_blank" class="button button-primary">Upgrade Now</a></strong>';
28
+
29
+ alm_transient_notification($msg, 'alm_pro_upgrade', 'YEAR_IN_SECONDS', true);
30
+ }
31
+ }
32
+
33
+
34
+
35
+ /*
36
+ * alm_transient_notification
37
+ * Display a notification on pages with transient
38
+ *
39
+ * @since 4.0
40
+ */
41
+ function alm_transient_notification($message = '', $transient = '', $duration = 'YEAR_IN_SECONDS', $dismissible = true, $type = 'info'){
42
+ if(!empty($transient)){
43
+ $transient_value = get_transient( $transient );
44
+ $dismissible = ($dismissible) ? ' is-dismissible' : '';
45
+ if(!isset($transient_value) || empty($transient_value) && !empty($message)){
46
+ ?>
47
+ <div class="alm-admin-notice notice-<?php echo $type; ?> notice<?php echo $dismissible; ?> alm-transient" data-transient="<?php echo $transient; ?>" data-duration="<?php echo $duration; ?>"><p><?php echo $message; ?></p></div>
48
+ <?php
49
+ }
50
+ }
51
+ }
52
+
53
+
54
+
55
+ /*
56
+ * alm_set_transient
57
+ * Set transient via Ajax.
58
+ *
59
+ * @since 4.0
60
+ */
61
+ function alm_set_transient(){
62
+
63
+ if (current_user_can( 'edit_theme_options' )){
64
+
65
+ $nonce = $_POST["nonce"];
66
+ $transient = $_POST["transient_name"];
67
+ $duration = $_POST["duration"];
68
+
69
+ $duration = (!isset($duration)) ? 'YEAR_IN_SECONDS' : $duration;
70
+
71
+ // Check our nonce, if they don't match then bounce!
72
+ if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' ))
73
+ die(__('Error - unable to verify nonce, please try again.', 'ajax-load-more'));
74
+
75
+ if($transient){
76
+ set_transient( $transient, 'true', constant($duration) );
77
+ echo __('Transient set successfully', 'ajax-load-more');
78
+ }
79
+
80
+ wp_die();
81
+ }
82
+ }
83
+
84
+
85
+
86
+
87
  /*
88
  * alm_repeaters_export
89
  * This function will export a repeater template and force download
128
 
129
  if(has_action('alm_pro_installed')){ // Pro
130
  $addons = alm_get_pro_addon();
131
+ $message = __( 'You have an invalid or expired <a href="admin.php?page=ajax-load-more"><b>Ajax Load More Pro</b></a> license key - please visit the <a href="admin.php?page=ajax-load-more-licenses">License</a> section to input your key or <a href="https://connekthq.com/plugins/ajax-load-more/pro/" target="_blank">purchase</a> one now.', 'ajax-load-more' );
132
 
133
  } else {
134
  $addons = alm_get_addons();
328
  'select_authors' => __('Select Author(s)', 'ajax-load-more'),
329
  'select_cats' => __('Select Categories', 'ajax-load-more'),
330
  'select_tags' => __('Select Tags', 'ajax-load-more'),
331
+ 'select' => __('Select', 'ajax-load-more'),
332
  'jump_to_option' => __('Jump to Option', 'ajax-load-more'),
333
  'jump_to_template' => __('Jump to Template', 'ajax-load-more'),
334
  'install_now' => __('Are you sure you want to install this Ajax Load More extension?', 'ajax-load-more'),
534
  'alm_help_page'
535
  );
536
 
537
+ $license_title = (has_action('alm_pro_installed')) ? __('License', 'ajax-load-more') : __('Licenses', 'ajax-load-more');
538
  $alm_licenses_page = add_submenu_page(
539
  'ajax-load-more',
540
+ $license_title,
541
+ $license_title,
542
  'edit_theme_options',
543
  'ajax-load-more-licenses',
544
  'alm_licenses_page'
560
  'ajax-load-more-pro',
561
  'alm_pro_page'
562
  );
563
+ } else {
564
+ $alm_go_pro_page = add_submenu_page(
565
+ 'ajax-load-more',
566
+ __('Pro', 'ajax-load-more'),
567
+ $before_link . '<span class="dashicons dashicons-plus-alt" '.$style_link_icon.'></span> '. __('Go Pro', 'ajax-load-more') . $after_link,
568
+ 'edit_theme_options',
569
+ 'ajax-load-more-go-pro',
570
+ 'alm_go_pro_page'
571
+ );
572
  }
573
 
574
 
618
  add_action( 'load-' . $alm_help_page, 'alm_load_admin_js' );
619
  add_action( 'load-' . $alm_help_page, 'alm_set_admin_nonce' );
620
 
621
+ // Pro
622
+ if(has_action('alm_pro_installed')){
623
  add_action( 'load-' . $alm_pro_page, 'alm_load_admin_js' );
624
  add_action( 'load-' . $alm_pro_page, 'alm_load_pro_admin_js' );
625
  add_action( 'load-' . $alm_pro_page, 'alm_set_admin_nonce' );
627
  } else {
628
  add_action( 'load-' . $alm_addons_page, 'alm_load_admin_js' );
629
  add_action( 'load-' . $alm_addons_page, 'alm_set_admin_nonce' );
630
+ add_action( 'load-' . $alm_go_pro_page, 'alm_load_admin_js' );
631
+ add_action( 'load-' . $alm_go_pro_page, 'alm_set_admin_nonce' );
632
  }
633
  add_action( 'load-' . $alm_extensions_page, 'alm_load_admin_js' );
634
  add_action( 'load-' . $alm_extensions_page, 'alm_set_admin_nonce' );
705
 
706
 
707
 
708
+ /*
709
+ * alm_extensions_ons_page
710
+ * Ajax Load More Add-ons
711
+ *
712
+ * @since 4.0.0
713
+ */
714
+
715
+ function alm_go_pro_page(){
716
+ include_once( ALM_PATH . 'admin/views/go-pro.php');
717
+ }
718
+
719
+
720
+
721
  /*
722
  * alm_example_page
723
  * Examples Page
1094
  */
1095
  function alm_layouts_dismiss(){
1096
  if (current_user_can( 'edit_theme_options' )){
 
1097
  $nonce = $_POST["nonce"];
1098
 
1099
  // Check our nonce, if they don't match then bounce!
1148
  }
1149
 
1150
  echo '<strong>Ajax Load More</strong> is made with <span style="color: #e25555;">♥</span> by <a href="https://connekthq.com" target="_blank" style="font-weight: 500;">Connekt</a> | <a href="https://wordpress.org/support/plugin/ajax-load-more/reviews/" target="_blank" style="font-weight: 500;">Leave a Review</a> | <a href="https://connekthq.com/plugins/ajax-load-more/support/" target="_blank" style="font-weight: 500;">Get Support</a>';
1151
+
1152
+ if(!has_action('alm_pro_installed')){
1153
+ echo ' | <a href="https://connekthq.com/plugins/ajax-load-more/pro/" target="_blank" style="font-weight: 500;">Go Pro</a>';
1154
+ }
1155
  }
1156
 
1157
 
admin/dist/css/admin.css CHANGED
@@ -553,6 +553,208 @@ disabled look for disabled choices in the results dropdown
553
  top: -2px;
554
  left: 5px; }
555
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
556
  .ajax-load-more .cnkt-sidebar {
557
  width: 33%;
558
  float: right;
@@ -697,7 +899,8 @@ body.ajax-load-more_page_ajax-load-more-help,
697
  body.ajax-load-more_page_ajax-load-more-licenses,
698
  body.ajax-load-more_page_ajax-load-more-cache,
699
  body.ajax-load-more_page_ajax-load-more-filters,
700
- body.ajax-load-more_page_ajax-load-more-pro {
 
701
  background-color: #f7f7f7; }
702
  body.toplevel_page_ajax-load-more #wpcontent,
703
  body.ajax-load-more_page_ajax-load-more-repeaters #wpcontent,
@@ -708,7 +911,8 @@ body.ajax-load-more_page_ajax-load-more-pro {
708
  body.ajax-load-more_page_ajax-load-more-licenses #wpcontent,
709
  body.ajax-load-more_page_ajax-load-more-cache #wpcontent,
710
  body.ajax-load-more_page_ajax-load-more-filters #wpcontent,
711
- body.ajax-load-more_page_ajax-load-more-pro #wpcontent {
 
712
  padding-left: 0;
713
  padding-bottom: 40px;
714
  background-color: #efefef; }
@@ -721,7 +925,8 @@ body.ajax-load-more_page_ajax-load-more-pro {
721
  body.ajax-load-more_page_ajax-load-more-licenses #wpbody-content,
722
  body.ajax-load-more_page_ajax-load-more-cache #wpbody-content,
723
  body.ajax-load-more_page_ajax-load-more-filters #wpbody-content,
724
- body.ajax-load-more_page_ajax-load-more-pro #wpbody-content {
 
725
  padding-bottom: 0; }
726
 
727
  body.toplevel_page_ajax-load-more,
@@ -733,7 +938,8 @@ body.ajax-load-more_page_ajax-load-more-help,
733
  body.ajax-load-more_page_ajax-load-more-licenses,
734
  body.ajax-load-more_page_ajax-load-more-cache,
735
  body.ajax-load-more_page_ajax-load-more-filters,
736
- body.ajax-load-more_page_ajax-load-more-pro {
 
737
  background: #efefef; }
738
  body.toplevel_page_ajax-load-more #wpfooter,
739
  body.ajax-load-more_page_ajax-load-more-repeaters #wpfooter,
@@ -744,7 +950,8 @@ body.ajax-load-more_page_ajax-load-more-pro {
744
  body.ajax-load-more_page_ajax-load-more-licenses #wpfooter,
745
  body.ajax-load-more_page_ajax-load-more-cache #wpfooter,
746
  body.ajax-load-more_page_ajax-load-more-filters #wpfooter,
747
- body.ajax-load-more_page_ajax-load-more-pro #wpfooter {
 
748
  padding-top: 0;
749
  padding-bottom: 0;
750
  line-height: 40px;
@@ -762,7 +969,8 @@ body.ajax-load-more_page_ajax-load-more-pro {
762
  body.ajax-load-more_page_ajax-load-more-licenses #wpfooter p,
763
  body.ajax-load-more_page_ajax-load-more-cache #wpfooter p,
764
  body.ajax-load-more_page_ajax-load-more-filters #wpfooter p,
765
- body.ajax-load-more_page_ajax-load-more-pro #wpfooter p {
 
766
  line-height: 40px; }
767
  @media screen and (min-width: 901px) {
768
  body.toplevel_page_ajax-load-more .ajax-load-more .cnkt-main,
@@ -774,7 +982,8 @@ body.ajax-load-more_page_ajax-load-more-pro {
774
  body.ajax-load-more_page_ajax-load-more-licenses .ajax-load-more .cnkt-main,
775
  body.ajax-load-more_page_ajax-load-more-cache .ajax-load-more .cnkt-main,
776
  body.ajax-load-more_page_ajax-load-more-filters .ajax-load-more .cnkt-main,
777
- body.ajax-load-more_page_ajax-load-more-pro .ajax-load-more .cnkt-main {
 
778
  min-height: 100vh; } }
779
 
780
  body.ajax-load-more_page_ajax-load-more-extensions,
@@ -795,6 +1004,21 @@ body.ajax-load-more_page_ajax-load-more-pro {
795
  max-width: 1440px;
796
  position: relative; }
797
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
798
  /*
799
  * Admin - Popup Generator
800
  *
@@ -1561,20 +1785,26 @@ hr.indented {
1561
  float: left;
1562
  padding: 20px 0 20px 20px;
1563
  width: 35%; }
 
 
 
 
 
 
1564
 
1565
  .ajax-load-more .section-title.full {
1566
  width: 100%;
1567
  float: none; }
1568
 
1569
  .ajax-load-more .section-title h4 {
1570
- font-size: 15px;
1571
  font-weight: 600;
1572
  margin-bottom: 15px; }
1573
 
1574
  .ajax-load-more .section-title p,
1575
  .ajax-load-more .wrap p.descriptor {
1576
- font-size: 14px;
1577
- line-height: 22px;
1578
  color: #999; }
1579
 
1580
  .ajax-load-more .wrap p.descriptor {
@@ -1844,11 +2074,11 @@ hr.indented {
1844
 
1845
  .form-table .template-tags {
1846
  overflow: hidden;
1847
- border-left: 5px solid #dfd8c2;
1848
- padding: 16px;
1849
  background: #fff9ea;
1850
  margin: 20px 0 0;
1851
- border-radius: 2px; }
1852
 
1853
  .form-table .template-tags h4,
1854
  .form-table .template-tags li {
@@ -2196,6 +2426,49 @@ table.highlight {
2196
  border-radius: 0;
2197
  border-top: none;
2198
  border-left: none; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2199
  #alm-add-ons .group.installed {
2200
  opacity: 0.85;
2201
  -webkit-filter: grayscale(1);
@@ -2214,7 +2487,7 @@ table.highlight {
2214
  width: calc(100% - 40px);
2215
  display: block;
2216
  font-size: 14px;
2217
- padding: 10px 14px;
2218
  -webkit-transition: all 0.15s ease;
2219
  transition: all 0.15s ease;
2220
  border-bottom: none;
@@ -2230,6 +2503,9 @@ table.highlight {
2230
  padding: 25px 25px 70px;
2231
  position: relative; }
2232
 
 
 
 
2233
  #alm-add-ons .group:hover h2 {
2234
  text-decoration: underline; }
2235
 
@@ -2243,189 +2519,6 @@ table.highlight {
2243
  #alm-add-ons .group.installed a:hover h2 {
2244
  color: #444 !important; }
2245
 
2246
- /* Pro Add-on Listing */
2247
- .alm-pro-listing {
2248
- padding: 0;
2249
- border-top: none;
2250
- position: relative;
2251
- padding-bottom: 20px; }
2252
- .alm-pro-listing .loader {
2253
- position: absolute;
2254
- left: 0;
2255
- top: 0;
2256
- width: 100%;
2257
- height: 100%;
2258
- z-index: 99;
2259
- display: none; }
2260
- .alm-pro-listing.loading .loader {
2261
- display: block; }
2262
- .alm-pro-listing--header {
2263
- border: 1px solid #e1e1e1;
2264
- background: #f7f7f7;
2265
- padding: 15px;
2266
- font-size: 13px;
2267
- font-weight: 600;
2268
- text-transform: uppercase;
2269
- color: #23282d;
2270
- position: relative;
2271
- margin-bottom: 30px;
2272
- border-radius: 2px; }
2273
- .alm-pro-listing--header div {
2274
- position: absolute;
2275
- right: 15px;
2276
- top: 50%;
2277
- -webkit-transform: translateY(-50%);
2278
- -ms-transform: translateY(-50%);
2279
- transform: translateY(-50%);
2280
- font-size: 13px;
2281
- opacity: 0.7;
2282
- font-weight: normal;
2283
- text-transform: none;
2284
- font-style: italic; }
2285
- @media screen and (max-width: 480px) {
2286
- .alm-pro-listing--header div {
2287
- display: none; } }
2288
- .alm-pro-listing--wrap {
2289
- display: -webkit-box;
2290
- display: -ms-flexbox;
2291
- display: flex;
2292
- -ms-flex-wrap: wrap;
2293
- flex-wrap: wrap;
2294
- -webkit-box-pack: justify;
2295
- -ms-flex-pack: justify;
2296
- justify-content: space-between; }
2297
- .alm-pro-listing .item {
2298
- width: 49.5%;
2299
- display: -webkit-box;
2300
- display: -ms-flexbox;
2301
- display: flex;
2302
- margin-bottom: 10px; }
2303
- @media screen and (min-width: 1500px) {
2304
- .alm-pro-listing .item {
2305
- width: 32.775%; } }
2306
- @media screen and (max-width: 480px) {
2307
- .alm-pro-listing .item {
2308
- width: 100%; } }
2309
- .alm-pro-listing .item h2, .alm-pro-listing .item p, .alm-pro-listing .item img, .alm-pro-listing .item .state {
2310
- -webkit-transition: all 0.15s ease;
2311
- transition: all 0.15s ease; }
2312
- .alm-pro-listing .item a {
2313
- text-decoration: none !important;
2314
- padding: 0 55px 0 0;
2315
- position: relative;
2316
- display: -webkit-box;
2317
- display: -ms-flexbox;
2318
- display: flex;
2319
- border: 1px solid #e1e1e1;
2320
- -webkit-transition: all 0.15s ease;
2321
- transition: all 0.15s ease;
2322
- border-radius: 2px; }
2323
- .alm-pro-listing .item a:hover, .alm-pro-listing .item a:focus {
2324
- border-color: #bbb; }
2325
- .alm-pro-listing .item a:hover h2, .alm-pro-listing .item a:focus h2 {
2326
- text-decoration: underline; }
2327
- .alm-pro-listing .item--detail {
2328
- padding: 15px 20px;
2329
- position: relative;
2330
- min-height: 110px;
2331
- display: -webkit-box;
2332
- display: -ms-flexbox;
2333
- display: flex;
2334
- -webkit-box-align: center;
2335
- -ms-flex-align: center;
2336
- align-items: center; }
2337
- .alm-pro-listing .item--detail div {
2338
- padding: 0; }
2339
- .alm-pro-listing .item--detail img {
2340
- width: 95px;
2341
- height: auto;
2342
- margin-right: 20px; }
2343
- @media screen and (max-width: 768px) {
2344
- .alm-pro-listing .item--detail img {
2345
- display: none; } }
2346
- .alm-pro-listing .item--detail a {
2347
- text-decoration: none; }
2348
- .alm-pro-listing .item--detail a:hover {
2349
- text-decoration: underline; }
2350
- .alm-pro-listing .item--detail h2 {
2351
- margin: 0 0 7px;
2352
- font-size: 16px;
2353
- line-height: 1;
2354
- -webkit-transition: all 0.15s ease;
2355
- transition: all 0.15s ease; }
2356
- .alm-pro-listing .item--detail p {
2357
- margin: 0;
2358
- padding: 0;
2359
- font-size: 14px; }
2360
- .alm-pro-listing .item--detail p.link {
2361
- font-size: 13px;
2362
- padding-top: 2px;
2363
- opacity: 0;
2364
- -webkit-transition: opacity 0.15s ease;
2365
- transition: opacity 0.15s ease; }
2366
- .alm-pro-listing .item .result {
2367
- position: absolute;
2368
- right: 8px;
2369
- bottom: 8px;
2370
- font-size: 12px;
2371
- opacity: 0;
2372
- -webkit-transition: all 0.25s ease;
2373
- transition: all 0.25s ease; }
2374
- .alm-pro-listing .item .result.in-view {
2375
- opacity: 0.7; }
2376
- .alm-pro-listing .item .result .type {
2377
- background: #47bd79;
2378
- color: #fff;
2379
- display: none;
2380
- border-radius: 2px;
2381
- padding: 3px 6px;
2382
- display: inline-block; }
2383
- .alm-pro-listing .item .result .type.inactive {
2384
- background: #c54545;
2385
- display: none; }
2386
- .alm-pro-listing .item .state {
2387
- width: 22px;
2388
- height: 22px;
2389
- position: absolute;
2390
- right: 8px;
2391
- top: 8px;
2392
- border-radius: 2px;
2393
- background: #57d48c;
2394
- color: #fff;
2395
- display: -webkit-box;
2396
- display: -ms-flexbox;
2397
- display: flex;
2398
- -webkit-box-align: center;
2399
- -ms-flex-align: center;
2400
- align-items: center;
2401
- -webkit-box-pack: center;
2402
- -ms-flex-pack: center;
2403
- justify-content: center;
2404
- text-decoration: none !important;
2405
- font-size: 12px;
2406
- -webkit-transition: all 0.15s ease;
2407
- transition: all 0.15s ease; }
2408
- .alm-pro-listing .item .state:before {
2409
- font-family: 'FontAwesome';
2410
- content: '\f00c';
2411
- display: block; }
2412
- .alm-pro-listing .item.active a {
2413
- border-color: #57d48c; }
2414
- .alm-pro-listing .item.active:hover .state {
2415
- opacity: 0.9; }
2416
- .alm-pro-listing .item.inactive h2, .alm-pro-listing .item.inactive p, .alm-pro-listing .item.inactive img, .alm-pro-listing .item.inactive .state {
2417
- opacity: 0.5; }
2418
- .alm-pro-listing .item.inactive .state {
2419
- background: #e1e1e1; }
2420
- .alm-pro-listing .item.inactive .state:before {
2421
- opacity: 0; }
2422
- .alm-pro-listing .item.inactive:hover h2, .alm-pro-listing .item.inactive:hover p, .alm-pro-listing .item.inactive:hover img, .alm-pro-listing .item.inactive:hover .state {
2423
- opacity: 0.8; }
2424
- .alm-pro-listing .item.inactive:hover .state {
2425
- background: #ccc; }
2426
- .alm-pro-listing .item.inactive:hover .state:before {
2427
- opacity: 1; }
2428
-
2429
  /* Add-on Callout! */
2430
  .call-out {
2431
  background: #63ccb2;
@@ -2649,7 +2742,7 @@ span.cnkt-button.installed i,
2649
  .license-no-addons {
2650
  overflow: hidden;
2651
  display: block;
2652
- padding: 15px;
2653
  border: 1px solid #e1e1e1;
2654
  border-top: none;
2655
  background-color: #fff;
@@ -2792,10 +2885,29 @@ span.cnkt-button.installed i,
2792
  .ajax-load-more .cnkt-sidebar .cta.dyk .cta-inner {
2793
  overflow: hidden; }
2794
 
2795
- .ajax-load-more .cnkt-sidebar .cta.dyk img {
2796
- padding: 0 20px 10px 0;
2797
- max-width: 40%;
2798
- float: left; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2799
 
2800
  .ajax-load-more .cnkt-sidebar .cta.dyk p {
2801
  margin: 0 0 15px;
@@ -2803,7 +2915,8 @@ span.cnkt-button.installed i,
2803
  .ajax-load-more .cnkt-sidebar .cta.dyk p:last-child {
2804
  margin: 0; }
2805
  .ajax-load-more .cnkt-sidebar .cta.dyk p.addon-intro {
2806
- margin-top: -3px; }
 
2807
 
2808
  .ajax-load-more .cnkt-sidebar ul {
2809
  padding: 5px 0 0;
@@ -3144,6 +3257,21 @@ span.cnkt-button.installed i,
3144
  height: 10px;
3145
  clear: both;
3146
  display: block; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3147
 
3148
  /*
3149
  * Cache
@@ -3152,11 +3280,6 @@ span.cnkt-button.installed i,
3152
  .alm-cache {
3153
  /* Live Search */
3154
  /* Directory Listing */ }
3155
- .alm-cache .generate-id {
3156
- margin: 10px 0 0 !important;
3157
- font-size: 12px !important; }
3158
- .alm-cache .generate-cache-id i {
3159
- margin: 0 5px 0 0; }
3160
  .alm-cache .row:first-of-type {
3161
  margin-top: 0 !important; }
3162
  .alm-cache .alm-cache-search-wrap {
@@ -3187,10 +3310,6 @@ span.cnkt-button.installed i,
3187
  border: none;
3188
  padding: 0;
3189
  margin: 0; }
3190
- .alm-cache .alm-dir-listing.theme-repeaters p.theme-title {
3191
- font-weight: 600;
3192
- margin: 0 0 15px;
3193
- padding: 0 5px; }
3194
  .alm-cache .alm-dir-listing.theme-repeaters i {
3195
  color: #ccc;
3196
  font-size: 1.1em; }
@@ -3230,36 +3349,6 @@ span.cnkt-button.installed i,
3230
  .alm-cache .alm-dir-listing .dir-title .delete:active {
3231
  -webkit-box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.2);
3232
  box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.2); }
3233
- .alm-cache .alm-dir-listing ul {
3234
- padding: 20px 0 0;
3235
- margin: 10px 0 0;
3236
- border-top: 1px solid #efefef; }
3237
- .alm-cache .alm-dir-listing ul li {
3238
- margin: 0 -2px;
3239
- padding: 7px 0 7px 40px;
3240
- display: inline-block;
3241
- vertical-align: top;
3242
- overflow: hidden;
3243
- width: 47%;
3244
- font-size: 14px;
3245
- background: transparent url(../../img/directory-list.gif) no-repeat left center; }
3246
- .alm-cache .alm-dir-listing.theme-repeaters ul li {
3247
- display: block;
3248
- width: 100%;
3249
- padding-top: 12px; }
3250
- .alm-cache .alm-dir-listing.theme-repeaters ul li label {
3251
- display: block;
3252
- width: 100%; }
3253
- .alm-cache .alm-dir-listing ul li:last-child,
3254
- .alm-cache .alm-dir-listing ul li:nth-last-child(2) {
3255
- background-image: url(../../img/directory-list-btm.gif); }
3256
- .alm-cache .alm-dir-listing.theme-repeaters ul li:nth-last-child(2) {
3257
- background: transparent url(../../img/directory-list.gif) no-repeat left center; }
3258
- .alm-cache .alm-dir-listing ul li a {
3259
- text-decoration: none; }
3260
- .alm-cache .alm-dir-listing li i {
3261
- color: #999;
3262
- padding: 0 5px 0 0; }
3263
  .alm-cache .cache-page-title {
3264
  font-size: 14px;
3265
  display: block;
@@ -3333,6 +3422,49 @@ span.cnkt-button.installed i,
3333
  color: #fff;
3334
  text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.1); }
3335
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3336
  /*
3337
  * Error Handling
3338
  *
@@ -3364,11 +3496,19 @@ span.cnkt-button.installed i,
3364
  min-height: 23px;
3365
  width: 100%;
3366
  display: inline-block;
3367
- padding: 1px 0 0 30px;
3368
  margin: 0 0 5px;
3369
  font-size: 14px;
3370
  line-height: 1.5;
3371
  cursor: pointer !important; }
 
 
 
 
 
 
 
 
3372
 
3373
  .shortcode-builder input[type=radio] + label,
3374
  .ajax-load-more .form-table input[type=radio] + label {
@@ -4242,7 +4382,8 @@ span.dismiss a {
4242
  clear: both;
4243
  margin: 0;
4244
  width: 100%;
4245
- position: static !important; }
 
4246
  .admin.ajax-load-more.settings .form-table td {
4247
  padding: 24px 17px 20px; }
4248
  .call-out.light {
553
  top: -2px;
554
  left: 5px; }
555
 
556
+ /* Pro Add-on Listing */
557
+ .alm-pro-listing {
558
+ padding: 0;
559
+ border-top: none;
560
+ position: relative;
561
+ padding-bottom: 20px; }
562
+ .alm-pro-listing .loader {
563
+ position: absolute;
564
+ left: 0;
565
+ top: 0;
566
+ width: 100%;
567
+ height: 100%;
568
+ z-index: 99;
569
+ display: none; }
570
+ .alm-pro-listing.loading .loader {
571
+ display: block; }
572
+ .alm-pro-listing--header {
573
+ border: 1px solid #e1e1e1;
574
+ background: #f7f7f7;
575
+ padding: 18px;
576
+ font-size: 13px;
577
+ font-weight: 600;
578
+ text-transform: uppercase;
579
+ color: #23282d;
580
+ position: relative;
581
+ margin-bottom: 30px;
582
+ border-radius: 2px; }
583
+ .alm-pro-listing--header div {
584
+ position: absolute;
585
+ right: 15px;
586
+ top: 50%;
587
+ -webkit-transform: translateY(-50%);
588
+ -ms-transform: translateY(-50%);
589
+ transform: translateY(-50%);
590
+ font-size: 13px;
591
+ opacity: 0.7;
592
+ font-weight: normal;
593
+ text-transform: none;
594
+ font-style: italic; }
595
+ @media screen and (max-width: 480px) {
596
+ .alm-pro-listing--header div {
597
+ display: none; } }
598
+ .alm-pro-listing--wrap {
599
+ display: -webkit-box;
600
+ display: -ms-flexbox;
601
+ display: flex;
602
+ -ms-flex-wrap: wrap;
603
+ flex-wrap: wrap;
604
+ -webkit-box-pack: justify;
605
+ -ms-flex-pack: justify;
606
+ justify-content: space-between; }
607
+ .alm-pro-listing .item {
608
+ width: 49.5%;
609
+ display: -webkit-box;
610
+ display: -ms-flexbox;
611
+ display: flex;
612
+ margin-bottom: 10px; }
613
+ @media screen and (min-width: 1500px) {
614
+ .alm-pro-listing .item {
615
+ width: 32.775%; } }
616
+ @media screen and (max-width: 480px) {
617
+ .alm-pro-listing .item {
618
+ width: 100%; } }
619
+ .alm-pro-listing .item h2, .alm-pro-listing .item p, .alm-pro-listing .item img, .alm-pro-listing .item .state {
620
+ -webkit-transition: all 0.15s ease;
621
+ transition: all 0.15s ease; }
622
+ .alm-pro-listing .item a {
623
+ text-decoration: none !important;
624
+ padding: 0 55px 0 0;
625
+ position: relative;
626
+ display: -webkit-box;
627
+ display: -ms-flexbox;
628
+ display: flex;
629
+ border: 1px solid #e1e1e1;
630
+ -webkit-transition: all 0.15s ease;
631
+ transition: all 0.15s ease;
632
+ border-radius: 2px; }
633
+ @media screen and (min-width: 768px) and (max-width: 1100px) {
634
+ .alm-pro-listing .item a {
635
+ padding: 0 40px; } }
636
+ .alm-pro-listing .item a:hover, .alm-pro-listing .item a:focus {
637
+ border-color: #bbb; }
638
+ .alm-pro-listing .item a:hover h2, .alm-pro-listing .item a:focus h2 {
639
+ text-decoration: none; }
640
+ .alm-pro-listing .item--detail {
641
+ padding: 20px;
642
+ position: relative;
643
+ min-height: 110px;
644
+ display: -webkit-box;
645
+ display: -ms-flexbox;
646
+ display: flex;
647
+ -webkit-box-align: center;
648
+ -ms-flex-align: center;
649
+ align-items: center; }
650
+ @media screen and (min-width: 768px) and (max-width: 1100px) {
651
+ .alm-pro-listing .item--detail {
652
+ display: block;
653
+ text-align: center; }
654
+ .alm-pro-listing .item--detail img {
655
+ padding-bottom: 20px; } }
656
+ .alm-pro-listing .item--detail div {
657
+ padding: 0; }
658
+ .alm-pro-listing .item--detail img {
659
+ width: 110px;
660
+ height: auto;
661
+ margin-right: 15px; }
662
+ @media screen and (max-width: 768px) {
663
+ .alm-pro-listing .item--detail img {
664
+ display: none; } }
665
+ .alm-pro-listing .item--detail a {
666
+ text-decoration: none; }
667
+ .alm-pro-listing .item--detail a:hover, .alm-pro-listing .item--detail a:focus {
668
+ text-decoration: none; }
669
+ .alm-pro-listing .item--detail a:hover h2, .alm-pro-listing .item--detail a:focus h2 {
670
+ text-decoration: none; }
671
+ .alm-pro-listing .item--detail h2 {
672
+ margin: 0 0 7px;
673
+ font-size: 16px;
674
+ line-height: 1;
675
+ -webkit-transition: all 0.15s ease;
676
+ transition: all 0.15s ease; }
677
+ .alm-pro-listing .item--detail h2 span {
678
+ font-weight: 400;
679
+ opacity: 0.4;
680
+ font-size: 12px;
681
+ position: relative;
682
+ top: 0;
683
+ left: 3px;
684
+ text-decoration: none !important; }
685
+ .alm-pro-listing .item--detail p {
686
+ margin: 0;
687
+ padding: 0;
688
+ font-size: 14px; }
689
+ .alm-pro-listing .item--detail p.link {
690
+ font-size: 13px;
691
+ padding-top: 2px;
692
+ opacity: 0;
693
+ -webkit-transition: opacity 0.15s ease;
694
+ transition: opacity 0.15s ease; }
695
+ .alm-pro-listing .item .result {
696
+ position: absolute;
697
+ right: 6px;
698
+ bottom: 6px;
699
+ font-size: 12px;
700
+ opacity: 0;
701
+ -webkit-transition: all 0.25s ease;
702
+ transition: all 0.25s ease; }
703
+ .alm-pro-listing .item .result.in-view {
704
+ opacity: 0.7; }
705
+ .alm-pro-listing .item .result .type {
706
+ background: #47bd79;
707
+ color: #fff;
708
+ display: none;
709
+ border-radius: 2px;
710
+ padding: 3px 6px;
711
+ display: inline-block; }
712
+ .alm-pro-listing .item .result .type.inactive {
713
+ background: #c54545;
714
+ display: none; }
715
+ .alm-pro-listing .item .state {
716
+ width: 22px;
717
+ height: 22px;
718
+ position: absolute;
719
+ right: 6px;
720
+ top: 6px;
721
+ border-radius: 2px;
722
+ background: #57d48c;
723
+ color: #fff;
724
+ display: -webkit-box;
725
+ display: -ms-flexbox;
726
+ display: flex;
727
+ -webkit-box-align: center;
728
+ -ms-flex-align: center;
729
+ align-items: center;
730
+ -webkit-box-pack: center;
731
+ -ms-flex-pack: center;
732
+ justify-content: center;
733
+ text-decoration: none !important;
734
+ font-size: 12px;
735
+ -webkit-transition: all 0.15s ease;
736
+ transition: all 0.15s ease; }
737
+ .alm-pro-listing .item .state:before {
738
+ font-family: 'FontAwesome';
739
+ content: '\f00c';
740
+ display: block; }
741
+ .alm-pro-listing .item.active a {
742
+ border-color: #57d48c; }
743
+ .alm-pro-listing .item.active:hover .state {
744
+ opacity: 0.9; }
745
+ .alm-pro-listing .item.inactive h2, .alm-pro-listing .item.inactive p, .alm-pro-listing .item.inactive img, .alm-pro-listing .item.inactive .state {
746
+ opacity: 0.5; }
747
+ .alm-pro-listing .item.inactive .state {
748
+ background: #e1e1e1; }
749
+ .alm-pro-listing .item.inactive .state:before {
750
+ opacity: 0; }
751
+ .alm-pro-listing .item.inactive:hover h2, .alm-pro-listing .item.inactive:hover p, .alm-pro-listing .item.inactive:hover img, .alm-pro-listing .item.inactive:hover .state {
752
+ opacity: 0.8; }
753
+ .alm-pro-listing .item.inactive:hover .state {
754
+ background: #ccc; }
755
+ .alm-pro-listing .item.inactive:hover .state:before {
756
+ opacity: 1; }
757
+
758
  .ajax-load-more .cnkt-sidebar {
759
  width: 33%;
760
  float: right;
899
  body.ajax-load-more_page_ajax-load-more-licenses,
900
  body.ajax-load-more_page_ajax-load-more-cache,
901
  body.ajax-load-more_page_ajax-load-more-filters,
902
+ body.ajax-load-more_page_ajax-load-more-pro,
903
+ body.ajax-load-more_page_ajax-load-more-go-pro {
904
  background-color: #f7f7f7; }
905
  body.toplevel_page_ajax-load-more #wpcontent,
906
  body.ajax-load-more_page_ajax-load-more-repeaters #wpcontent,
911
  body.ajax-load-more_page_ajax-load-more-licenses #wpcontent,
912
  body.ajax-load-more_page_ajax-load-more-cache #wpcontent,
913
  body.ajax-load-more_page_ajax-load-more-filters #wpcontent,
914
+ body.ajax-load-more_page_ajax-load-more-pro #wpcontent,
915
+ body.ajax-load-more_page_ajax-load-more-go-pro #wpcontent {
916
  padding-left: 0;
917
  padding-bottom: 40px;
918
  background-color: #efefef; }
925
  body.ajax-load-more_page_ajax-load-more-licenses #wpbody-content,
926
  body.ajax-load-more_page_ajax-load-more-cache #wpbody-content,
927
  body.ajax-load-more_page_ajax-load-more-filters #wpbody-content,
928
+ body.ajax-load-more_page_ajax-load-more-pro #wpbody-content,
929
+ body.ajax-load-more_page_ajax-load-more-go-pro #wpbody-content {
930
  padding-bottom: 0; }
931
 
932
  body.toplevel_page_ajax-load-more,
938
  body.ajax-load-more_page_ajax-load-more-licenses,
939
  body.ajax-load-more_page_ajax-load-more-cache,
940
  body.ajax-load-more_page_ajax-load-more-filters,
941
+ body.ajax-load-more_page_ajax-load-more-pro,
942
+ body.ajax-load-more_page_ajax-load-more-go-pro {
943
  background: #efefef; }
944
  body.toplevel_page_ajax-load-more #wpfooter,
945
  body.ajax-load-more_page_ajax-load-more-repeaters #wpfooter,
950
  body.ajax-load-more_page_ajax-load-more-licenses #wpfooter,
951
  body.ajax-load-more_page_ajax-load-more-cache #wpfooter,
952
  body.ajax-load-more_page_ajax-load-more-filters #wpfooter,
953
+ body.ajax-load-more_page_ajax-load-more-pro #wpfooter,
954
+ body.ajax-load-more_page_ajax-load-more-go-pro #wpfooter {
955
  padding-top: 0;
956
  padding-bottom: 0;
957
  line-height: 40px;
969
  body.ajax-load-more_page_ajax-load-more-licenses #wpfooter p,
970
  body.ajax-load-more_page_ajax-load-more-cache #wpfooter p,
971
  body.ajax-load-more_page_ajax-load-more-filters #wpfooter p,
972
+ body.ajax-load-more_page_ajax-load-more-pro #wpfooter p,
973
+ body.ajax-load-more_page_ajax-load-more-go-pro #wpfooter p {
974
  line-height: 40px; }
975
  @media screen and (min-width: 901px) {
976
  body.toplevel_page_ajax-load-more .ajax-load-more .cnkt-main,
982
  body.ajax-load-more_page_ajax-load-more-licenses .ajax-load-more .cnkt-main,
983
  body.ajax-load-more_page_ajax-load-more-cache .ajax-load-more .cnkt-main,
984
  body.ajax-load-more_page_ajax-load-more-filters .ajax-load-more .cnkt-main,
985
+ body.ajax-load-more_page_ajax-load-more-pro .ajax-load-more .cnkt-main,
986
+ body.ajax-load-more_page_ajax-load-more-go-pro .ajax-load-more .cnkt-main {
987
  min-height: 100vh; } }
988
 
989
  body.ajax-load-more_page_ajax-load-more-extensions,
1004
  max-width: 1440px;
1005
  position: relative; }
1006
 
1007
+ .ajax-load-more .alm-transient {
1008
+ padding: 6px 12px; }
1009
+ .ajax-load-more .alm-transient p {
1010
+ margin: 0.5em 0; }
1011
+ .ajax-load-more .alm-transient p a {
1012
+ font-weight: 600; }
1013
+ .ajax-load-more .alm-transient a.button {
1014
+ position: static;
1015
+ vertical-align: inherit !important; }
1016
+ .ajax-load-more .alm-transient button {
1017
+ -webkit-transform: translateY(-50%);
1018
+ -ms-transform: translateY(-50%);
1019
+ transform: translateY(-50%);
1020
+ top: 50%; }
1021
+
1022
  /*
1023
  * Admin - Popup Generator
1024
  *
1785
  float: left;
1786
  padding: 20px 0 20px 20px;
1787
  width: 35%; }
1788
+ .ajax-load-more .section-title p:last-of-type {
1789
+ margin-bottom: 0; }
1790
+ .ajax-load-more .section-title small {
1791
+ font-size: 11px;
1792
+ padding-top: 8px;
1793
+ display: block; }
1794
 
1795
  .ajax-load-more .section-title.full {
1796
  width: 100%;
1797
  float: none; }
1798
 
1799
  .ajax-load-more .section-title h4 {
1800
+ font-size: 14px;
1801
  font-weight: 600;
1802
  margin-bottom: 15px; }
1803
 
1804
  .ajax-load-more .section-title p,
1805
  .ajax-load-more .wrap p.descriptor {
1806
+ font-size: 13px;
1807
+ line-height: 20px;
1808
  color: #999; }
1809
 
1810
  .ajax-load-more .wrap p.descriptor {
2074
 
2075
  .form-table .template-tags {
2076
  overflow: hidden;
2077
+ border-left: 6px solid #dfd8c2;
2078
+ padding: 15px;
2079
  background: #fff9ea;
2080
  margin: 20px 0 0;
2081
+ border-radius: 3px; }
2082
 
2083
  .form-table .template-tags h4,
2084
  .form-table .template-tags li {
2426
  border-radius: 0;
2427
  border-top: none;
2428
  border-left: none; }
2429
+ #alm-add-ons .group.highlighted {
2430
+ width: 100%; }
2431
+ #alm-add-ons .group.highlighted a {
2432
+ background: #f7f7f7;
2433
+ border: 10px solid rgba(0, 0, 0, 0.025); }
2434
+ #alm-add-ons .group.highlighted img {
2435
+ padding: 10px; }
2436
+ @media screen and (min-width: 768px) {
2437
+ #alm-add-ons .group.highlighted {
2438
+ text-align: left; }
2439
+ #alm-add-ons .group.highlighted a {
2440
+ padding: 25px;
2441
+ overflow: hidden;
2442
+ display: -webkit-box;
2443
+ display: -ms-flexbox;
2444
+ display: flex;
2445
+ -ms-flex-wrap: nowrap;
2446
+ flex-wrap: nowrap;
2447
+ -webkit-box-align: center;
2448
+ -ms-flex-align: center;
2449
+ align-items: center; }
2450
+ #alm-add-ons .group.highlighted .pro-img,
2451
+ #alm-add-ons .group.highlighted .pro-details {
2452
+ -webkit-box-flex: 1;
2453
+ -ms-flex: 1;
2454
+ flex: 1; }
2455
+ #alm-add-ons .group.highlighted .pro-img {
2456
+ max-width: 355px; }
2457
+ #alm-add-ons .group.highlighted .pro-details {
2458
+ padding: 0 15px 0 35px; }
2459
+ #alm-add-ons .group.highlighted img {
2460
+ position: static; }
2461
+ #alm-add-ons .group.highlighted span.cnkt-button {
2462
+ position: static;
2463
+ width: auto;
2464
+ display: inline-block;
2465
+ padding: 13px 30px;
2466
+ text-align: center;
2467
+ margin-top: 15px;
2468
+ font-size: 14px; } }
2469
+ @media screen and (min-width: 769px) and (max-width: 1270px) {
2470
+ #alm-add-ons .group.highlighted .pro-desc {
2471
+ display: none; } }
2472
  #alm-add-ons .group.installed {
2473
  opacity: 0.85;
2474
  -webkit-filter: grayscale(1);
2487
  width: calc(100% - 40px);
2488
  display: block;
2489
  font-size: 14px;
2490
+ padding: 11px 14px;
2491
  -webkit-transition: all 0.15s ease;
2492
  transition: all 0.15s ease;
2493
  border-bottom: none;
2503
  padding: 25px 25px 70px;
2504
  position: relative; }
2505
 
2506
+ #alm-add-ons .group--pro a {
2507
+ padding-bottom: 17px; }
2508
+
2509
  #alm-add-ons .group:hover h2 {
2510
  text-decoration: underline; }
2511
 
2519
  #alm-add-ons .group.installed a:hover h2 {
2520
  color: #444 !important; }
2521
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2522
  /* Add-on Callout! */
2523
  .call-out {
2524
  background: #63ccb2;
2742
  .license-no-addons {
2743
  overflow: hidden;
2744
  display: block;
2745
+ padding: 18px 15px;
2746
  border: 1px solid #e1e1e1;
2747
  border-top: none;
2748
  background-color: #fff;
2885
  .ajax-load-more .cnkt-sidebar .cta.dyk .cta-inner {
2886
  overflow: hidden; }
2887
 
2888
+ .ajax-load-more .cnkt-sidebar .cta.dyk .img {
2889
+ float: left;
2890
+ width: 40%;
2891
+ padding: 0 10px 10px 0; }
2892
+
2893
+ .ajax-load-more .cnkt-sidebar .cta.dyk .text {
2894
+ float: left;
2895
+ width: 60%;
2896
+ padding: 0 0 10px 10px; }
2897
+
2898
+ @media screen and (min-width: 900px) and (max-width: 1300px) {
2899
+ .ajax-load-more .cnkt-sidebar .cta.dyk .img,
2900
+ .ajax-load-more .cnkt-sidebar .cta.dyk .text {
2901
+ float: none;
2902
+ padding: 0 0 10px;
2903
+ width: 100%; } }
2904
+
2905
+ @media screen and (max-width: 480px) {
2906
+ .ajax-load-more .cnkt-sidebar .cta.dyk .img,
2907
+ .ajax-load-more .cnkt-sidebar .cta.dyk .text {
2908
+ float: none;
2909
+ padding: 0 0 10px;
2910
+ width: 100%; } }
2911
 
2912
  .ajax-load-more .cnkt-sidebar .cta.dyk p {
2913
  margin: 0 0 15px;
2915
  .ajax-load-more .cnkt-sidebar .cta.dyk p:last-child {
2916
  margin: 0; }
2917
  .ajax-load-more .cnkt-sidebar .cta.dyk p.addon-intro {
2918
+ margin-top: -1px;
2919
+ font-size: 16px; }
2920
 
2921
  .ajax-load-more .cnkt-sidebar ul {
2922
  padding: 5px 0 0;
3257
  height: 10px;
3258
  clear: both;
3259
  display: block; }
3260
+ .spacer.lg {
3261
+ height: 20px; }
3262
+
3263
+ .alm-text-center {
3264
+ text-align: center; }
3265
+
3266
+ .ajax-load-more p.generate-id {
3267
+ margin: 5px 0 0 !important;
3268
+ padding: 0 0 0 5px;
3269
+ font-size: 12px !important; }
3270
+ .ajax-load-more p.generate-id i {
3271
+ margin: 0 2px 0 0;
3272
+ color: #999; }
3273
+ .ajax-load-more p.generate-id a {
3274
+ text-decoration: none; }
3275
 
3276
  /*
3277
  * Cache
3280
  .alm-cache {
3281
  /* Live Search */
3282
  /* Directory Listing */ }
 
 
 
 
 
3283
  .alm-cache .row:first-of-type {
3284
  margin-top: 0 !important; }
3285
  .alm-cache .alm-cache-search-wrap {
3310
  border: none;
3311
  padding: 0;
3312
  margin: 0; }
 
 
 
 
3313
  .alm-cache .alm-dir-listing.theme-repeaters i {
3314
  color: #ccc;
3315
  font-size: 1.1em; }
3349
  .alm-cache .alm-dir-listing .dir-title .delete:active {
3350
  -webkit-box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.2);
3351
  box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.2); }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3352
  .alm-cache .cache-page-title {
3353
  font-size: 14px;
3354
  display: block;
3422
  color: #fff;
3423
  text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.1); }
3424
 
3425
+ .alm-dir-listing ul {
3426
+ padding: 20px 0 0;
3427
+ margin: 10px 0 0;
3428
+ border-top: 1px solid #efefef; }
3429
+
3430
+ p.theme-title {
3431
+ font-weight: 600;
3432
+ margin: 0 0 15px !important;
3433
+ padding: 0 5px; }
3434
+
3435
+ .alm-dir-listing ul li {
3436
+ margin: 0 -2px;
3437
+ padding: 7px 0 7px 40px;
3438
+ display: inline-block;
3439
+ vertical-align: top;
3440
+ overflow: hidden;
3441
+ width: 47%;
3442
+ font-size: 14px;
3443
+ background: transparent url(../../img/directory-list.gif) no-repeat left center; }
3444
+
3445
+ .alm-dir-listing.theme-repeaters ul li {
3446
+ display: block;
3447
+ width: 100%;
3448
+ padding-top: 12px; }
3449
+
3450
+ .alm-dir-listing.theme-repeaters ul li label {
3451
+ display: block;
3452
+ width: 100%; }
3453
+
3454
+ .alm-dir-listing ul li:last-child,
3455
+ .alm-dir-listing ul li:nth-last-child(2) {
3456
+ background-image: url(../../img/directory-list-btm.gif); }
3457
+
3458
+ .alm-dir-listing.theme-repeaters ul li:nth-last-child(2) {
3459
+ background: transparent url(../../img/directory-list.gif) no-repeat left center; }
3460
+
3461
+ .alm-dir-listing ul li a {
3462
+ text-decoration: none; }
3463
+
3464
+ .alm-dir-listing li i {
3465
+ color: #999;
3466
+ padding: 0 5px 0 0; }
3467
+
3468
  /*
3469
  * Error Handling
3470
  *
3496
  min-height: 23px;
3497
  width: 100%;
3498
  display: inline-block;
3499
+ padding: 0 0 0 30px;
3500
  margin: 0 0 5px;
3501
  font-size: 14px;
3502
  line-height: 1.5;
3503
  cursor: pointer !important; }
3504
+ .shortcode-builder input[type=checkbox] + label span,
3505
+ .ajax-load-more .form-table input[type=checkbox] + label span,
3506
+ .shortcode-builder input[type=radio] + label span,
3507
+ .ajax-load-more .form-table input[type=radio] + label span {
3508
+ display: inline-block;
3509
+ padding-left: 4px;
3510
+ font-size: 12px;
3511
+ color: #999; }
3512
 
3513
  .shortcode-builder input[type=radio] + label,
3514
  .ajax-load-more .form-table input[type=radio] + label {
4382
  clear: both;
4383
  margin: 0;
4384
  width: 100%;
4385
+ position: static !important;
4386
+ border: none; }
4387
  .admin.ajax-load-more.settings .form-table td {
4388
  padding: 24px 17px 20px; }
4389
  .call-out.light {
admin/dist/js/admin.js CHANGED
@@ -1321,7 +1321,7 @@ jQuery(document).ready(function ($) {
1321
  setTimeout(function () {
1322
  settingsTarget.classList.remove('--saved');
1323
  }, 2500);
1324
- }, 1000);
1325
  },
1326
 
1327
  // Error
@@ -1339,7 +1339,7 @@ jQuery(document).ready(function ($) {
1339
  setTimeout(function () {
1340
  settingsTarget.classList.remove('--error');
1341
  }, 2500);
1342
- }, 1000);
1343
  }
1344
  });
1345
  return false;
@@ -1686,6 +1686,36 @@ jQuery(document).ready(function ($) {
1686
  });
1687
  });
1688
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1689
  /*
1690
  * Scroll to setting section
1691
  * @since 2.7.3
1321
  setTimeout(function () {
1322
  settingsTarget.classList.remove('--saved');
1323
  }, 2500);
1324
+ }, 500);
1325
  },
1326
 
1327
  // Error
1339
  setTimeout(function () {
1340
  settingsTarget.classList.remove('--error');
1341
  }, 2500);
1342
+ }, 500);
1343
  }
1344
  });
1345
  return false;
1686
  });
1687
  });
1688
 
1689
+ /*
1690
+ * Set Transient (Transient)
1691
+ * @since 4.0
1692
+ */
1693
+ $(document).on('click', '.alm-transient button.notice-dismiss', function (e) {
1694
+ e.preventDefault();
1695
+ var el = $(this),
1696
+ container = el.parent('.alm-transient'),
1697
+ transient_name = container.data('transient'),
1698
+ duration = container.data('duration');
1699
+
1700
+ // Get value from Ajax
1701
+ $.ajax({
1702
+ type: 'POST',
1703
+ url: alm_admin_localize.ajax_admin_url,
1704
+ data: {
1705
+ action: 'alm_set_transient',
1706
+ nonce: alm_admin_localize.alm_admin_nonce,
1707
+ transient_name: transient_name,
1708
+ duration: duration
1709
+ },
1710
+ success: function success(data) {
1711
+ container.fadeOut();
1712
+ },
1713
+ error: function error(xhr, status, _error4) {
1714
+ console.log(status);
1715
+ }
1716
+ });
1717
+ });
1718
+
1719
  /*
1720
  * Scroll to setting section
1721
  * @since 2.7.3
admin/img/add-ons/pro-bundle-add-on.png ADDED
Binary file
admin/includes/cta/add-ons.php CHANGED
@@ -1,10 +1,10 @@
1
  <div class="cta">
2
- <h3><?php _e('About ALM Add-ons', 'ajax-load-more'); ?></h3>
3
  <div class="cta-inner">
4
  <p style="padding-bottom: 10px;">Ajax Load More offers a variety of unique <a href="https://connekthq.com/plugins/ajax-load-more/add-ons/" target="_blank">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 to nine Ajax Load More add-ons at over 50% off the regular price!</p>
6
  </div>
7
  <div class="major-publishing-actions">
8
- <a href="https://connekthq.com/plugins/ajax-load-more/add-ons/" class="button button-primary" target="_blank">View Add-ons</a>
9
  </div>
10
  </div>
1
  <div class="cta">
2
+ <h3><?php _e('About the Add-ons', 'ajax-load-more'); ?></h3>
3
  <div class="cta-inner">
4
  <p style="padding-bottom: 10px;">Ajax Load More offers a variety of unique <a href="https://connekthq.com/plugins/ajax-load-more/add-ons/" target="_blank">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/pro/?utm_source=WP%20Admin&utm_medium=Addons%20Dashboard&utm_campaign=Pro%20Bundle" target="_blank">Pro bundle</a> which gives you access to all current and future Ajax Load More add-ons at over 50% off the regular price!</p>
6
  </div>
7
  <div class="major-publishing-actions">
8
+ <a href="https://connekthq.com/plugins/ajax-load-more/add-ons/" class="button" target="_blank"><?php _e('View Add-ons', 'ajax-load-more'); ?></a>
9
  </div>
10
  </div>
admin/includes/cta/dyk.php CHANGED
@@ -1,56 +1,93 @@
 
1
  <div class="cta dyk">
2
  <h3><?php _e('Did You Know?', 'ajax-load-more'); ?></h3>
3
- <?php $random = rand(1, 5); ?>
4
  <?php if($random == 1){ ?>
5
  <div class="cta-inner">
6
- <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/shortcode-editor.jpg">
7
- <p class="addon-intro">You can generate shortcodes while editing pages!</p>
8
- <p>Click the Ajax Load More icon in the content editor toolbar and the <a href="?page=ajax-load-more-shortcode-builder">shortcode builder</a> will open up in a lightbox window.</p>
 
 
 
 
9
  </div>
10
  <?php } ?>
11
 
12
  <?php if($random == 2){ ?>
13
  <div class="cta-inner">
 
14
  <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/cache-add-on.jpg">
15
- <p class="addon-intro">You can cache your server requests with Ajax Load More!</p>
16
- <p>The <a target="blank" style="font-weight: 600;" href="https://connekthq.com/plugins/ajax-load-more/add-ons/cache/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Cache">Cache</a> add-on creates static HTML files of Ajax Load More requests then delivers those static files to your visitors.</p>
 
 
 
17
  </div>
18
  <div class="major-publishing-actions">
19
- <a target="blank" class="button button-primary" href="https://connekthq.com/plugins/ajax-load-more/add-ons/cache/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Cache">Learn More</a>
20
  </div>
21
  <?php } ?>
22
 
23
  <?php if($random == 3){ ?>
24
  <div class="cta-inner">
 
25
  <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/prev-post-add-on.jpg">
26
- <p class="addon-intro">You can lazy load single posts with Ajax Load More!</p>
27
- <p>The <a target="blank" style="font-weight: 600;" href="https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=PreviousPost">Previous Post</a> add-on will load single posts as you scroll and update the browser URL to the current post.</p>
 
 
 
28
  </div>
29
  <div class="major-publishing-actions">
30
- <a target="blank" class="button button-primary" href="https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=PreviousPost">Learn More</a>
31
  </div>
32
  <?php } ?>
33
 
34
  <?php if($random == 4){ ?>
35
  <div class="cta-inner">
36
- <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/comments-add-on.jpg">
37
- <p class="addon-intro">You can lazy load blog comments with Ajax Load More!</p>
38
- <p>The <a target="blank" style="font-weight: 600;" href="https://connekthq.com/plugins/ajax-load-more/add-ons/comments/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Comments">Comments</a> add-on will load and display blog comments using the core Ajax Load More infinite scroll functionality.</p>
 
 
 
 
39
  </div>
40
  <div class="major-publishing-actions">
41
- <a target="blank" class="button button-primary" href="https://connekthq.com/plugins/ajax-load-more/add-ons/comments/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Comments">Learn More</a>
42
  </div>
43
  <?php } ?>
44
 
45
  <?php if($random == 5){ ?>
46
  <div class="cta-inner">
 
47
  <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/next-page-add-on.jpg">
48
- <p class="addon-intro">You can infinite scroll just about anything with the Next Page add-on!</p>
49
- <p>The <a target="blank" style="font-weight: 600;" href="https://connekthq.com/plugins/ajax-load-more/add-ons/next-page/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Next Page">Next Page</a> add-on will allow you to split post content into pages using the <span style="display: inline-block; font-style: italic; color: #999;">&lt;!--nextpage--&gt;</span> <a href="https://codex.wordpress.org/Write_Post_SubPanel#Quicktags" target="_blank">Quicktag</a> and load the generated pages on demand.</p>
 
 
 
50
  </div>
51
  <div class="major-publishing-actions">
52
- <a target="blank" class="button button-primary" href="https://connekthq.com/plugins/ajax-load-more/add-ons/next-page/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Next Page">Learn More</a>
53
  </div>
54
  <?php } ?>
55
 
56
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if(!has_action('alm_pro_installed')){ ?>
2
  <div class="cta dyk">
3
  <h3><?php _e('Did You Know?', 'ajax-load-more'); ?></h3>
4
+ <?php $random = rand(1, 6); ?>
5
  <?php if($random == 1){ ?>
6
  <div class="cta-inner">
7
+ <div class="img">
8
+ <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/shortcode-editor.jpg">
9
+ </div>
10
+ <div class="text">
11
+ <p class="addon-intro">You can generate shortcodes while editing pages!</p>
12
+ <p>Click the Ajax Load More icon in the content editor toolbar and the <a href="?page=ajax-load-more-shortcode-builder">shortcode builder</a> will open up in a lightbox window.</p>
13
+ </div>
14
  </div>
15
  <?php } ?>
16
 
17
  <?php if($random == 2){ ?>
18
  <div class="cta-inner">
19
+ <div class="img">
20
  <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/cache-add-on.jpg">
21
+ </div>
22
+ <div class="text">
23
+ <p class="addon-intro">You can cache your server requests with Ajax Load More!</p>
24
+ <p>The <a target="blank" style="font-weight: 600;" href="https://connekthq.com/plugins/ajax-load-more/add-ons/cache/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Cache">Cache</a> add-on creates static HTML files of Ajax Load More requests then delivers those static files to your visitors.</p>
25
+ </div>
26
  </div>
27
  <div class="major-publishing-actions">
28
+ <a target="blank" class="button button-primary" href="https://connekthq.com/plugins/ajax-load-more/add-ons/cache/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Cache">Learn More</a>
29
  </div>
30
  <?php } ?>
31
 
32
  <?php if($random == 3){ ?>
33
  <div class="cta-inner">
34
+ <div class="img">
35
  <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/prev-post-add-on.jpg">
36
+ </div>
37
+ <div class="text">
38
+ <p class="addon-intro">You can lazy load single posts with Ajax Load More!</p>
39
+ <p>The <a target="blank" style="font-weight: 600;" href="https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=PreviousPost">Previous Post</a> add-on will load single posts as you scroll and update the browser URL to the current post.</p>
40
+ </div>
41
  </div>
42
  <div class="major-publishing-actions">
43
+ <a target="blank" class="button button-primary" href="https://connekthq.com/plugins/ajax-load-more/add-ons/previous-post/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=PreviousPost">Learn More</a>
44
  </div>
45
  <?php } ?>
46
 
47
  <?php if($random == 4){ ?>
48
  <div class="cta-inner">
49
+ <div class="img">
50
+ <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/comments-add-on.jpg">
51
+ </div>
52
+ <div class="text">
53
+ <p class="addon-intro">You can lazy load blog comments with Ajax Load More!</p>
54
+ <p>The <a target="blank" style="font-weight: 600;" href="https://connekthq.com/plugins/ajax-load-more/add-ons/comments/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Comments">Comments</a> add-on will load and display blog comments using the core Ajax Load More infinite scroll functionality.</p>
55
+ </div>
56
  </div>
57
  <div class="major-publishing-actions">
58
+ <a target="blank" class="button button-primary" href="https://connekthq.com/plugins/ajax-load-more/add-ons/comments/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Comments">Learn More</a>
59
  </div>
60
  <?php } ?>
61
 
62
  <?php if($random == 5){ ?>
63
  <div class="cta-inner">
64
+ <div class="img">
65
  <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/next-page-add-on.jpg">
66
+ </div>
67
+ <div class="text">
68
+ <p class="addon-intro">You can infinite scroll just about anything with the Next Page add-on!</p>
69
+ <p>The <a target="blank" style="font-weight: 600;" href="https://connekthq.com/plugins/ajax-load-more/add-ons/next-page/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Next Page">Next Page</a> add-on will allow you to split post content into pages using the <span style="display: inline-block; font-style: italic; color: #999;">&lt;!--nextpage--&gt;</span> <a href="https://codex.wordpress.org/Write_Post_SubPanel#Quicktags" target="_blank">Quicktag</a> and load the generated pages on demand.</p>
70
+ </div>
71
  </div>
72
  <div class="major-publishing-actions">
73
+ <a target="blank" class="button button-primary" href="https://connekthq.com/plugins/ajax-load-more/add-ons/next-page/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Next Page">Learn More</a>
74
  </div>
75
  <?php } ?>
76
 
77
+ <?php if($random == 6){ ?>
78
+ <div class="cta-inner">
79
+ <div class="img">
80
+ <img src="<?php echo ALM_ADMIN_URL; ?>img/add-ons/pro-bundle-add-on.png">
81
+ </div>
82
+ <div class="text">
83
+ <p class="addon-intro">Ajax Load More PRO</p>
84
+ <p>The <a target="blank" style="font-weight: 600;" href="https://connekthq.com/plugins/ajax-load-more/pro/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Pro">Pro</a> add-on bundle provides access to all current and future Ajax Load More add-ons in a single installation!</p>
85
+ </div>
86
+ </div>
87
+ <div class="major-publishing-actions">
88
+ <a target="blank" class="button button-primary" href="https://connekthq.com/plugins/ajax-load-more/pro/?utm_source=WP%20Admin&utm_medium=ALM%20DYK&utm_campaign=Pro">Learn More</a>
89
+ </div>
90
+ <?php } ?>
91
+
92
+ </div>
93
+ <?php } ?>
admin/includes/cta/pro-hero.php ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if(!has_action('alm_pro_installed')){
3
+ $pro_addon = alm_get_pro_addon();
4
+ foreach($pro_addon as $pro){
5
+ $name = $pro['name'];
6
+ $intro = $pro['intro'];
7
+ $desc = $pro['desc'];
8
+ $action = $pro['action'];
9
+ $key = $pro['key'];
10
+ $status = $pro['status'];
11
+ $settings_field = $pro['settings_field'];
12
+ $url = $pro['url'];
13
+ $img = $pro['img'];
14
+ ?>
15
+ <div class="group no-shadow highlighted">
16
+ <a href="<?php echo $url; ?>?utm_source=WP%20Admin&utm_medium=ALM%20Add-ons&utm_campaign=<?php echo $name; ?>" <?php echo $target; ?>>
17
+ <div class="pro-img">
18
+ <img src="<?php echo ALM_ADMIN_URL; ?><?php echo $img; ?>" alt="">
19
+ </div>
20
+ <div class="pro-details">
21
+ <h2 class="addon-title"><?php echo $name; ?></h2>
22
+ <p class="addon-intro"><?php echo $intro; ?></p>
23
+ <p class="pro-desc"><?php echo $desc; ?></p>
24
+ <?php
25
+ if (has_action($action)){
26
+ echo '<span class="cnkt-button installed"><i class="fa fa-check-square"></i> '. __('Installed', 'ajax-load-more') .'</span>';
27
+ }else{
28
+ echo '<span class="cnkt-button">'. __('Upgrade to Pro', 'ajax-load-more') .'</span>';
29
+ }
30
+ ?>
31
+
32
+ </div>
33
+ </a>
34
+ </div>
35
+ <?php
36
+ }
37
+ }
38
+ ?>
admin/includes/cta/resources.php CHANGED
@@ -4,7 +4,11 @@
4
  <ul>
5
  <li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/"><i class="fa fa-mouse-pointer"></i> <?php _e('Ajax Load More Demo Site', 'ajax-load-more'); ?></a></li>
6
  <li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/docs/"><i class="fa fa-pencil"></i> <?php _e('Documentation', 'ajax-load-more'); ?></a></li>
 
7
  <li><a target="blank" href="http://wordpress.org/support/plugin/ajax-load-more"><i class="fa fa-question-circle"></i> <?php _e('Support and Issues', 'ajax-load-more'); ?></a></li>
 
 
 
8
  <li><a target="blank" href="https://wordpress.org/support/view/plugin-reviews/ajax-load-more"><i class="fa fa-star"></i> <?php _e('Reviews', 'ajax-load-more'); ?></a></li>
9
  <li><a target="blank" href="https://wordpress.org/plugins/ajax-load-more/"><i class="fa fa-wordpress"></i> <?php _e('WordPress', 'ajax-load-more'); ?></a></li>
10
  <li><a target="blank" href="https://github.com/dcooney/wordpress-ajax-load-more"><i class="fa fa-github"></i> <?php _e('Github', 'ajax-load-more'); ?></a></li>
4
  <ul>
5
  <li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/"><i class="fa fa-mouse-pointer"></i> <?php _e('Ajax Load More Demo Site', 'ajax-load-more'); ?></a></li>
6
  <li><a target="blank" href="https://connekthq.com/plugins/ajax-load-more/docs/"><i class="fa fa-pencil"></i> <?php _e('Documentation', 'ajax-load-more'); ?></a></li>
7
+ <?php if(!has_action('alm_pro_installed')){ ?>
8
  <li><a target="blank" href="http://wordpress.org/support/plugin/ajax-load-more"><i class="fa fa-question-circle"></i> <?php _e('Support and Issues', 'ajax-load-more'); ?></a></li>
9
+ <?php } else { ?>
10
+ <li><a target="blank" href="https://connekthq.com/support/?product=Ajax%20Load%20More"><i class="fa fa-question-circle"></i> <?php _e('Support and Issues', 'ajax-load-more'); ?></a></li>
11
+ <?php } ?>
12
  <li><a target="blank" href="https://wordpress.org/support/view/plugin-reviews/ajax-load-more"><i class="fa fa-star"></i> <?php _e('Reviews', 'ajax-load-more'); ?></a></li>
13
  <li><a target="blank" href="https://wordpress.org/plugins/ajax-load-more/"><i class="fa fa-wordpress"></i> <?php _e('WordPress', 'ajax-load-more'); ?></a></li>
14
  <li><a target="blank" href="https://github.com/dcooney/wordpress-ajax-load-more"><i class="fa fa-github"></i> <?php _e('Github', 'ajax-load-more'); ?></a></li>
admin/shortcode-builder/components/users.php CHANGED
@@ -30,8 +30,7 @@
30
  </div>
31
  <div class="wrap">
32
  <div class="inner">
33
- <select class="alm_element" id="users-role" name="users-role">
34
- <option value="" selected="selected">-- <?php _e('Select Role', 'ajax-load-more'); ?> --</option>
35
  <option value="all"><?php _e('All Roles', 'ajax-load-more'); ?></option>
36
  <?php
37
  if(function_exists('alm_role_encrypt')) :
30
  </div>
31
  <div class="wrap">
32
  <div class="inner">
33
+ <select class="alm_element multiple" id="users-role" name="users-role" multiple="multiple">
 
34
  <option value="all"><?php _e('All Roles', 'ajax-load-more'); ?></option>
35
  <?php
36
  if(function_exists('alm_role_encrypt')) :
admin/shortcode-builder/js/shortcode-builder.js CHANGED
@@ -16,19 +16,15 @@ jQuery(document).ready(function($) {
16
  * @since 2.5.0
17
  */
18
  _alm.select2 = function(){
 
19
  // Default Select2
20
  $('.row select, .cnkt-main select, select.jump-menu').not('.multiple, .meta-compare, .meta-type, .alm-filter-select').select2({});
21
 
22
- // multiple
23
- $('.ajax-load-more .categories select.multiple').select2({
24
- placeholder : '-- '+ alm_admin_localize.select_cats +' --',
25
- });
26
- $('.ajax-load-more .tags select.multiple').select2({
27
- placeholder : '-- '+ alm_admin_localize.select_tags +' --'
28
- });
29
- $('.ajax-load-more .authors select.multiple').select2({
30
- placeholder : '-- '+ alm_admin_localize.select_authors +' --'
31
  });
 
32
  };
33
  _alm.select2();
34
 
@@ -320,28 +316,28 @@ jQuery(document).ready(function($) {
320
 
321
  $('.filters_options').slideDown(150, 'alm_easeInOutQuad');
322
 
323
-
324
  var filters_id = $('#alm-filters select');
325
  if(filters_id.length){
326
  if(filters_id.val() !== ''){
327
  output += ' target="'+filters_id.val().trim()+'"';
328
  }
329
  }
330
-
331
- output += ' filters="'+filters+'"';
332
-
333
  var filters_analytics = $('#alm-filters input[name=filters-analytics]:checked').val().trim();
334
  if(filters_analytics !== '' && filters_analytics !== 'true')
335
  output += ' filters_analytics="'+filters_analytics+'"';
336
-
337
  var filters_debug = $('#alm-filters input[name=filters-debug]:checked').val().trim();
338
  if(filters_debug !== '' && filters_debug !== 'false')
339
  output += ' filters_debug="'+filters_debug+'"';
340
 
341
  }else{
342
-
343
  $('.filters_options').slideUp(150, 'alm_easeInOutQuad');
344
-
345
  }
346
 
347
 
@@ -393,8 +389,8 @@ jQuery(document).ready(function($) {
393
  var paging_classes = $('#alm-paging input#paging-classes').val();
394
  if(paging !== 'false' && paging != undefined){
395
  output += ' paging="'+paging+'"';
396
- output += ' paging_controls="'+paging_controls+'"';
397
- if(paging_show_at_most !== ''){
398
  output += ' paging_show_at_most="'+paging_show_at_most+'"';
399
  }
400
  if(paging_classes !== ''){
@@ -519,11 +515,30 @@ jQuery(document).ready(function($) {
519
  var users_per_page = $('#alm-users input#users-per-page').val();
520
  var users_order = $('#alm-users select#users-order').val();
521
  var users_orderby = $('#alm-users select#users-orderby').val();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
522
  $('#users-extended').slideDown(150, 'alm_easeInOutQuad');
523
 
524
  output += ' users="'+users+'"';
525
-
526
- if(users_role !== ''){
527
  output += ' users_role="'+ users_role +'"';
528
  }
529
  if(users_include !== ''){
@@ -541,8 +556,8 @@ jQuery(document).ready(function($) {
541
  if(users_orderby !== 'login'){
542
  output += ' users_orderby="'+ users_orderby +'"';
543
  }
544
-
545
-
546
  }else{
547
  $('#users-extended').slideUp(150, 'alm_easeInOutQuad');
548
  }
@@ -629,10 +644,37 @@ jQuery(document).ready(function($) {
629
  // - Categories
630
  // ---------------------------
631
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
632
  // IN
633
  var cat = $('.categories #category-select').val();
634
- if(cat !== '' && cat !== undefined && cat !== null)
635
  output += ' category="'+cat+'"';
 
 
 
 
 
 
 
636
 
637
  // NOT_IN
638
  var cat_not_in = $('.categories #category-exclude-select').val();
@@ -644,9 +686,38 @@ jQuery(document).ready(function($) {
644
  // - Tags
645
  // ---------------------------
646
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
647
  var tag = $('.tags #tag-select').val();
648
- if(tag !== '' && tag !== undefined && tag !== null)
649
  output += ' tag="'+tag+'"';
 
 
 
 
 
 
 
650
 
651
  // NOT_IN
652
  var tag_not_in = $('.tags #tag-exclude-select').val();
@@ -978,19 +1049,19 @@ jQuery(document).ready(function($) {
978
 
979
  var scroll_load = $('.scroll_load input[name=scroll]:checked').val();
980
  if(scroll_load === 'f'){
981
-
982
  $('.max_pages, .scroll_distance, .pause_override, .scroll_container').slideUp(150, 'alm_easeInOutQuad');
983
  if($('.scroll_load input').hasClass('changed'))
984
  output += ' scroll="false"';
985
-
986
  }else{
987
-
988
  $('.max_pages, .scroll_distance, .pause_override, .scroll_container').slideDown(150, 'alm_easeInOutQuad');
989
 
990
  var scroll_distance = $('.scroll_distance input').val();
991
  if(scroll_distance != 150)
992
  output += ' scroll_distance="'+$('.scroll_distance input').val()+'"';
993
-
994
  var scroll_container = $('.scroll_container input').val();
995
  if(scroll_container != '')
996
  output += ' scroll_container="'+$('.scroll_container input').val()+'"';
@@ -1015,7 +1086,7 @@ jQuery(document).ready(function($) {
1015
  output += ' transition="'+transition+'"';
1016
 
1017
  if(transition === 'masonry'){
1018
-
1019
  $('.masonry-options').slideDown(150, 'alm_easeInOutQuad');
1020
  $('.masonry-options-hide').slideUp(150, 'alm_easeInOutQuad');
1021
  var masonry_selector = $('.transition input#masonry-item').val();
@@ -1034,9 +1105,9 @@ jQuery(document).ready(function($) {
1034
  if(masonry_horizontalorder !== 't'){
1035
  output += ' masonry_horizontalorder="false"';
1036
  }
1037
-
1038
  }else{
1039
-
1040
  $('.masonry-options').slideUp(150, 'alm_easeInOutQuad');
1041
  $('.masonry-options-hide').slideDown(150, 'alm_easeInOutQuad');
1042
 
@@ -1049,12 +1120,12 @@ jQuery(document).ready(function($) {
1049
  }else{
1050
  $('.transition-container-classes-wrap').slideDown(150, 'alm_easeInOutQuad');
1051
  }
1052
-
1053
  // Hide transition_container_classes if Previous Post or Next Page is true.
1054
  if(transition_container_classes !== '' && transition_container !== 'f' && previous !== 'true' && nextpage !== 'true'){
1055
  output += ' transition_container_classes="'+ transition_container_classes +'"';
1056
  }
1057
-
1058
  }
1059
 
1060
 
@@ -1262,7 +1333,7 @@ jQuery(document).ready(function($) {
1262
  } else {
1263
  $('.table-of-contents .toc').append('<option value="#">-- '+ alm_admin_localize.jump_to_option +' --</option>');
1264
  }
1265
-
1266
  $('.table-of-contents .toc').append(jumpMenuOptions).select2();
1267
 
1268
  $('.table-of-contents .toc').change(function() {
@@ -1273,7 +1344,7 @@ jQuery(document).ready(function($) {
1273
  }, 500, 'alm_easeInOutQuad');
1274
  }
1275
  });
1276
-
1277
 
1278
 
1279
  /*
16
  * @since 2.5.0
17
  */
18
  _alm.select2 = function(){
19
+
20
  // Default Select2
21
  $('.row select, .cnkt-main select, select.jump-menu').not('.multiple, .meta-compare, .meta-type, .alm-filter-select').select2({});
22
 
23
+ // Set placeholder
24
+ $('.ajax-load-more select.multiple').select2({
25
+ placeholder : '-- '+ alm_admin_localize.select +' --'
 
 
 
 
 
 
26
  });
27
+
28
  };
29
  _alm.select2();
30
 
316
 
317
  $('.filters_options').slideDown(150, 'alm_easeInOutQuad');
318
 
319
+
320
  var filters_id = $('#alm-filters select');
321
  if(filters_id.length){
322
  if(filters_id.val() !== ''){
323
  output += ' target="'+filters_id.val().trim()+'"';
324
  }
325
  }
326
+
327
+ output += ' filters="'+filters+'"';
328
+
329
  var filters_analytics = $('#alm-filters input[name=filters-analytics]:checked').val().trim();
330
  if(filters_analytics !== '' && filters_analytics !== 'true')
331
  output += ' filters_analytics="'+filters_analytics+'"';
332
+
333
  var filters_debug = $('#alm-filters input[name=filters-debug]:checked').val().trim();
334
  if(filters_debug !== '' && filters_debug !== 'false')
335